@hebcal/rest-api 4.4.2 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v4.4.2 */
1
+ /*! @hebcal/rest-api v4.5.1 */
2
2
  var hebcal__rest_api = (function (exports, core, leyning, triennial) {
3
3
  'use strict';
4
4
 
@@ -9,7 +9,7 @@ var check = function (it) {
9
9
  };
10
10
 
11
11
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$g =
12
+ var global$h =
13
13
  // eslint-disable-next-line es/no-global-this -- safe
14
14
  check(typeof globalThis == 'object' && globalThis) ||
15
15
  check(typeof window == 'object' && window) ||
@@ -17,7 +17,7 @@ var global$g =
17
17
  check(typeof self == 'object' && self) ||
18
18
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
19
  // eslint-disable-next-line no-new-func -- fallback
20
- (function () { return this; })() || Function('return this')();
20
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
21
21
 
22
22
  var objectGetOwnPropertyDescriptor = {};
23
23
 
@@ -175,7 +175,7 @@ var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
175
175
  return typeof it == 'object' ? it !== null : isCallable$g(it);
176
176
  };
177
177
 
178
- var global$f = global$g;
178
+ var global$g = global$h;
179
179
  var isCallable$f = isCallable$h;
180
180
 
181
181
  var aFunction = function (argument) {
@@ -183,7 +183,7 @@ var aFunction = function (argument) {
183
183
  };
184
184
 
185
185
  var getBuiltIn$4 = function (namespace, method) {
186
- return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
186
+ return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
187
187
  };
188
188
 
189
189
  var uncurryThis$h = functionUncurryThis;
@@ -192,11 +192,11 @@ var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
192
192
 
193
193
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
194
194
 
195
- var global$e = global$g;
195
+ var global$f = global$h;
196
196
  var userAgent = engineUserAgent;
197
197
 
198
- var process = global$e.process;
199
- var Deno = global$e.Deno;
198
+ var process = global$f.process;
199
+ var Deno = global$f.Deno;
200
200
  var versions = process && process.versions || Deno && Deno.version;
201
201
  var v8 = versions && versions.v8;
202
202
  var match, version;
@@ -224,13 +224,18 @@ var engineV8Version = version;
224
224
 
225
225
  var V8_VERSION = engineV8Version;
226
226
  var fails$d = fails$h;
227
+ var global$e = global$h;
228
+
229
+ var $String$5 = global$e.String;
227
230
 
228
231
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
229
232
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
230
233
  var symbol = Symbol();
231
234
  // Chrome 38 Symbol has incorrect toString conversion
232
235
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
233
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
236
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
237
+ // of course, fail.
238
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
234
239
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
235
240
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
236
241
  });
@@ -304,15 +309,11 @@ var ordinaryToPrimitive$1 = function (input, pref) {
304
309
  throw $TypeError$8("Can't convert object to primitive value");
305
310
  };
306
311
 
307
- var sharedExports = {};
308
- var shared$4 = {
309
- get exports(){ return sharedExports; },
310
- set exports(v){ sharedExports = v; },
311
- };
312
+ var shared$4 = {exports: {}};
312
313
 
313
314
  var isPure = false;
314
315
 
315
- var global$d = global$g;
316
+ var global$d = global$h;
316
317
 
317
318
  // eslint-disable-next-line es/no-object-defineproperty -- safe
318
319
  var defineProperty$6 = Object.defineProperty;
@@ -325,7 +326,7 @@ var defineGlobalProperty$3 = function (key, value) {
325
326
  } return value;
326
327
  };
327
328
 
328
- var global$c = global$g;
329
+ var global$c = global$h;
329
330
  var defineGlobalProperty$2 = defineGlobalProperty$3;
330
331
 
331
332
  var SHARED = '__core-js_shared__';
@@ -338,13 +339,15 @@ var store$2 = sharedStore;
338
339
  (shared$4.exports = function (key, value) {
339
340
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
340
341
  })('versions', []).push({
341
- version: '3.29.0',
342
+ version: '3.30.2',
342
343
  mode: 'global',
343
344
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
344
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
345
+ license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
345
346
  source: 'https://github.com/zloirock/core-js'
346
347
  });
347
348
 
349
+ var sharedExports = shared$4.exports;
350
+
348
351
  var requireObjectCoercible$2 = requireObjectCoercible$4;
349
352
 
350
353
  var $Object$2 = Object;
@@ -377,7 +380,7 @@ var uid$2 = function (key) {
377
380
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
378
381
  };
379
382
 
380
- var global$b = global$g;
383
+ var global$b = global$h;
381
384
  var shared$3 = sharedExports;
382
385
  var hasOwn$b = hasOwnProperty_1;
383
386
  var uid$1 = uid$2;
@@ -432,7 +435,7 @@ var toPropertyKey$3 = function (argument) {
432
435
  return isSymbol(key) ? key : key + '';
433
436
  };
434
437
 
435
- var global$a = global$g;
438
+ var global$a = global$h;
436
439
  var isObject$5 = isObject$8;
437
440
 
438
441
  var document$1 = global$a.document;
@@ -559,11 +562,7 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$8 ? function (object, key, value
559
562
  return object;
560
563
  };
561
564
 
562
- var makeBuiltInExports = {};
563
- var makeBuiltIn$3 = {
564
- get exports(){ return makeBuiltInExports; },
565
- set exports(v){ makeBuiltInExports = v; },
566
- };
565
+ var makeBuiltIn$3 = {exports: {}};
567
566
 
568
567
  var DESCRIPTORS$7 = descriptors;
569
568
  var hasOwn$9 = hasOwnProperty_1;
@@ -598,7 +597,7 @@ if (!isCallable$b(store$1.inspectSource)) {
598
597
 
599
598
  var inspectSource$2 = store$1.inspectSource;
600
599
 
601
- var global$9 = global$g;
600
+ var global$9 = global$h;
602
601
  var isCallable$a = isCallable$h;
603
602
 
604
603
  var WeakMap$1 = global$9.WeakMap;
@@ -617,7 +616,7 @@ var sharedKey$3 = function (key) {
617
616
  var hiddenKeys$4 = {};
618
617
 
619
618
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
620
- var global$8 = global$g;
619
+ var global$8 = global$h;
621
620
  var isObject$3 = isObject$8;
622
621
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
623
622
  var hasOwn$8 = hasOwnProperty_1;
@@ -742,6 +741,8 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
742
741
  return isCallable$9(this) && getInternalState$3(this).source || inspectSource$1(this);
743
742
  }, 'toString');
744
743
 
744
+ var makeBuiltInExports = makeBuiltIn$3.exports;
745
+
745
746
  var isCallable$8 = isCallable$h;
746
747
  var definePropertyModule$3 = objectDefineProperty;
747
748
  var makeBuiltIn$1 = makeBuiltInExports;
@@ -961,7 +962,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
961
962
 
962
963
  var isForced_1 = isForced$1;
963
964
 
964
- var global$7 = global$g;
965
+ var global$7 = global$h;
965
966
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
966
967
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
967
968
  var defineBuiltIn$6 = defineBuiltIn$7;
@@ -1083,7 +1084,7 @@ var regexpFlags$1 = function () {
1083
1084
  };
1084
1085
 
1085
1086
  var fails$8 = fails$h;
1086
- var global$6 = global$g;
1087
+ var global$6 = global$h;
1087
1088
 
1088
1089
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1089
1090
  var $RegExp$2 = global$6.RegExp;
@@ -1236,7 +1237,7 @@ var objectCreate = Object.create || function create(O, Properties) {
1236
1237
  };
1237
1238
 
1238
1239
  var fails$7 = fails$h;
1239
- var global$5 = global$g;
1240
+ var global$5 = global$h;
1240
1241
 
1241
1242
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1242
1243
  var $RegExp$1 = global$5.RegExp;
@@ -1247,7 +1248,7 @@ var regexpUnsupportedDotAll = fails$7(function () {
1247
1248
  });
1248
1249
 
1249
1250
  var fails$6 = fails$h;
1250
- var global$4 = global$g;
1251
+ var global$4 = global$h;
1251
1252
 
1252
1253
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1253
1254
  var $RegExp = global$4.RegExp;
@@ -1769,7 +1770,7 @@ if (DESCRIPTORS$4 && values.name !== 'values') try {
1769
1770
  defineProperty$2(values, 'name', { value: 'values' });
1770
1771
  } catch (error) { /* empty */ }
1771
1772
 
1772
- var global$3 = global$g;
1773
+ var global$3 = global$h;
1773
1774
  var DOMIterables = domIterables;
1774
1775
  var DOMTokenListPrototype = domTokenListPrototype;
1775
1776
  var ArrayIteratorMethods = es_array_iterator;
@@ -2456,7 +2457,7 @@ var arraySort$1 = mergeSort;
2456
2457
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2457
2458
 
2458
2459
  var $$2 = _export;
2459
- var global$2 = global$g;
2460
+ var global$2 = global$h;
2460
2461
  var call$1 = functionCall;
2461
2462
  var uncurryThis$2 = functionUncurryThis;
2462
2463
  var DESCRIPTORS$1 = descriptors;
@@ -2865,7 +2866,7 @@ var web_urlSearchParams_constructor = {
2865
2866
  var $$1 = _export;
2866
2867
  var DESCRIPTORS = descriptors;
2867
2868
  var USE_NATIVE_URL = urlConstructorDetection;
2868
- var global$1 = global$g;
2869
+ var global$1 = global$h;
2869
2870
  var bind = functionBindContext;
2870
2871
  var uncurryThis$1 = functionUncurryThis;
2871
2872
  var defineBuiltIn$1 = defineBuiltIn$7;
@@ -4132,9 +4133,6 @@ function pad4(number) {
4132
4133
  function toISOString(d) {
4133
4134
  return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
4134
4135
  }
4135
- const flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [core.flags.CHANUKAH_CANDLES, 'holiday', 'major'], [core.flags.DAF_YOMI, 'dafyomi'], [core.flags.HEBREW_DATE, 'hebdate'], [core.flags.MINOR_FAST, 'holiday', 'fast'], [core.flags.MINOR_HOLIDAY, 'holiday', 'minor'], [core.flags.MISHNA_YOMI, 'mishnayomi'], [core.flags.NACH_YOMI, 'nachyomi'], [core.flags.YERUSHALMI_YOMI, 'yerushalmi'], [core.flags.MODERN_HOLIDAY, 'holiday', 'modern'], [core.flags.MOLAD, 'molad'], [core.flags.OMER_COUNT, 'omer'], [core.flags.PARSHA_HASHAVUA, 'parashat'],
4136
- // backwards-compat
4137
- [core.flags.ROSH_CHODESH, 'roshchodesh'], [core.flags.SHABBAT_MEVARCHIM, 'mevarchim'], [core.flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [core.flags.USER_EVENT, 'user']];
4138
4136
 
4139
4137
  /**
4140
4138
  * Returns a category and subcategory name
@@ -4143,45 +4141,10 @@ const flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [co
4143
4141
  */
4144
4142
  function getEventCategories(ev) {
4145
4143
  const desc = ev.getDesc();
4146
- switch (desc) {
4147
- // LIGHT_CANDLES or LIGHT_CANDLES_TZEIS
4148
- case 'Candle lighting':
4149
- return ['candles'];
4150
- // YOM_TOV_ENDS
4151
- case 'Havdalah':
4152
- return ['havdalah'];
4153
- // flags.MINOR_FAST or flags.MAJOR_FAST
4154
- case 'Fast begins':
4155
- case 'Fast ends':
4156
- return ['zmanim', 'fast'];
4157
- case 'Purim':
4158
- return ['holiday', 'major'];
4159
- }
4160
- if (ev.cholHaMoedDay) {
4161
- return ['holiday', 'major', 'cholhamoed'];
4162
- }
4163
- const mask = ev.getFlags();
4164
- for (let i = 0; i < flagToCategory.length; i++) {
4165
- const attrs = flagToCategory[i];
4166
- if (mask & attrs[0]) {
4167
- return attrs.slice(1);
4168
- }
4169
- }
4170
- // Don't depend on flags.MINOR_HOLIDAY always being set
4171
- switch (desc) {
4172
- case 'Lag BaOmer':
4173
- case 'Leil Selichot':
4174
- case 'Pesach Sheni':
4175
- case 'Erev Purim':
4176
- case 'Purim Katan':
4177
- case 'Shushan Purim':
4178
- case 'Tu B\'Av':
4179
- case 'Tu BiShvat':
4180
- case 'Rosh Hashana LaBehemot':
4181
- return ['holiday', 'minor'];
4182
- default:
4183
- return ['holiday', 'major'];
4144
+ if (desc === 'Purim' || desc === 'Erev Purim') {
4145
+ return ['holiday', 'major'];
4184
4146
  }
4147
+ return ev.getCategories();
4185
4148
  }
4186
4149
 
4187
4150
  /**
@@ -1,2 +1,2 @@
1
- /*! @hebcal/rest-api v4.4.2 */
2
- var hebcal__rest_api=function(e,t,r,n){"use strict";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof a&&a)||function(){return this}()||Function("return this")(),s={},h=function(e){try{return!!e()}catch(e){return!0}},c=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=l,f=Function.prototype.call,d=u?f.bind(f):function(){return f.apply(f,arguments)},g={},m={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y=p&&!m.call({1:2},1);g.f=y?function(e){var t=p(this,e);return!!t&&t.enumerable}:m;var b,v,S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w=l,A=Function.prototype,H=A.call,R=w&&A.bind.bind(H,H),T=w?R:function(e){return function(){return H.apply(e,arguments)}},C=T,I=C({}.toString),P=C("".slice),M=function(e){return P(I(e),8,-1)},O=h,k=M,E=Object,L=T("".split),B=O((function(){return!E("z").propertyIsEnumerable(0)}))?function(e){return"String"==k(e)?L(e,""):E(e)}:E,D=function(e){return null==e},F=D,U=TypeError,N=function(e){if(F(e))throw U("Can't call method on "+e);return e},j=B,x=N,_=function(e){return j(x(e))},G="object"==typeof document&&document.all,Y={all:G,IS_HTMLDDA:void 0===G&&void 0!==G},z=Y.all,K=Y.IS_HTMLDDA?function(e){return"function"==typeof e||e===z}:function(e){return"function"==typeof e},J=K,W=Y.all,q=Y.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===W}:function(e){return"object"==typeof e?null!==e:J(e)},V=i,Z=K,$=function(e){return Z(e)?e:void 0},Q=function(e,t){return arguments.length<2?$(V[e]):V[e]&&V[e][t]},X=T({}.isPrototypeOf),ee=i,te="undefined"!=typeof navigator&&String(navigator.userAgent)||"",re=ee.process,ne=ee.Deno,ae=re&&re.versions||ne&&ne.version,oe=ae&&ae.v8;oe&&(v=(b=oe.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!v&&te&&(!(b=te.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=te.match(/Chrome\/(\d+)/))&&(v=+b[1]);var ie=v,se=h,he=!!Object.getOwnPropertySymbols&&!se((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ie&&ie<41})),ce=he&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,le=Q,ue=K,fe=X,de=Object,ge=ce?function(e){return"symbol"==typeof e}:function(e){var t=le("Symbol");return ue(t)&&fe(t.prototype,de(e))},me=String,pe=function(e){try{return me(e)}catch(e){return"Object"}},ye=K,be=pe,ve=TypeError,Se=function(e){if(ye(e))return e;throw ve(be(e)+" is not a function")},we=Se,Ae=D,He=function(e,t){var r=e[t];return Ae(r)?void 0:we(r)},Re=d,Te=K,Ce=q,Ie=TypeError,Pe={},Me={get exports(){return Pe},set exports(e){Pe=e}},Oe=i,ke=Object.defineProperty,Ee=function(e,t){try{ke(Oe,e,{value:t,configurable:!0,writable:!0})}catch(r){Oe[e]=t}return t},Le=Ee,Be="__core-js_shared__",De=i[Be]||Le(Be,{}),Fe=De;(Me.exports=function(e,t){return Fe[e]||(Fe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=N,Ne=Object,je=function(e){return Ne(Ue(e))},xe=je,_e=T({}.hasOwnProperty),Ge=Object.hasOwn||function(e,t){return _e(xe(e),t)},Ye=T,ze=0,Ke=Math.random(),Je=Ye(1..toString),We=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Je(++ze+Ke,36)},qe=Pe,Ve=Ge,Ze=We,$e=he,Qe=ce,Xe=i.Symbol,et=qe("wks"),tt=Qe?Xe.for||Xe:Xe&&Xe.withoutSetter||Ze,rt=function(e){return Ve(et,e)||(et[e]=$e&&Ve(Xe,e)?Xe[e]:tt("Symbol."+e)),et[e]},nt=d,at=q,ot=ge,it=He,st=function(e,t){var r,n;if("string"===t&&Te(r=e.toString)&&!Ce(n=Re(r,e)))return n;if(Te(r=e.valueOf)&&!Ce(n=Re(r,e)))return n;if("string"!==t&&Te(r=e.toString)&&!Ce(n=Re(r,e)))return n;throw Ie("Can't convert object to primitive value")},ht=TypeError,ct=rt("toPrimitive"),lt=function(e,t){if(!at(e)||ot(e))return e;var r,n=it(e,ct);if(n){if(void 0===t&&(t="default"),r=nt(n,e,t),!at(r)||ot(r))return r;throw ht("Can't convert object to primitive value")}return void 0===t&&(t="number"),st(e,t)},ut=ge,ft=function(e){var t=lt(e,"string");return ut(t)?t:t+""},dt=q,gt=i.document,mt=dt(gt)&&dt(gt.createElement),pt=function(e){return mt?gt.createElement(e):{}},yt=pt,bt=!c&&!h((function(){return 7!=Object.defineProperty(yt("div"),"a",{get:function(){return 7}}).a})),vt=c,St=d,wt=g,At=S,Ht=_,Rt=ft,Tt=Ge,Ct=bt,It=Object.getOwnPropertyDescriptor;s.f=vt?It:function(e,t){if(e=Ht(e),t=Rt(t),Ct)try{return It(e,t)}catch(e){}if(Tt(e,t))return At(!St(wt.f,e,t),e[t])};var Pt={},Mt=c&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ot=q,kt=String,Et=TypeError,Lt=function(e){if(Ot(e))return e;throw Et(kt(e)+" is not an object")},Bt=c,Dt=bt,Ft=Mt,Ut=Lt,Nt=ft,jt=TypeError,xt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,Gt="enumerable",Yt="configurable",zt="writable";Pt.f=Bt?Ft?function(e,t,r){if(Ut(e),t=Nt(t),Ut(r),"function"==typeof e&&"prototype"===t&&"value"in r&&zt in r&&!r[zt]){var n=_t(e,t);n&&n[zt]&&(e[t]=r.value,r={configurable:Yt in r?r[Yt]:n[Yt],enumerable:Gt in r?r[Gt]:n[Gt],writable:!1})}return xt(e,t,r)}:xt:function(e,t,r){if(Ut(e),t=Nt(t),Ut(r),Dt)try{return xt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw jt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Kt=Pt,Jt=S,Wt=c?function(e,t,r){return Kt.f(e,t,Jt(1,r))}:function(e,t,r){return e[t]=r,e},qt={},Vt={get exports(){return qt},set exports(e){qt=e}},Zt=c,$t=Ge,Qt=Function.prototype,Xt=Zt&&Object.getOwnPropertyDescriptor,er=$t(Qt,"name"),tr={EXISTS:er,PROPER:er&&"something"===function(){}.name,CONFIGURABLE:er&&(!Zt||Zt&&Xt(Qt,"name").configurable)},rr=K,nr=De,ar=T(Function.toString);rr(nr.inspectSource)||(nr.inspectSource=function(e){return ar(e)});var or,ir,sr,hr=nr.inspectSource,cr=K,lr=i.WeakMap,ur=cr(lr)&&/native code/.test(String(lr)),fr=We,dr=Pe("keys"),gr=function(e){return dr[e]||(dr[e]=fr(e))},mr={},pr=ur,yr=i,br=q,vr=Wt,Sr=Ge,wr=De,Ar=gr,Hr=mr,Rr="Object already initialized",Tr=yr.TypeError,Cr=yr.WeakMap;if(pr||wr.state){var Ir=wr.state||(wr.state=new Cr);Ir.get=Ir.get,Ir.has=Ir.has,Ir.set=Ir.set,or=function(e,t){if(Ir.has(e))throw Tr(Rr);return t.facade=e,Ir.set(e,t),t},ir=function(e){return Ir.get(e)||{}},sr=function(e){return Ir.has(e)}}else{var Pr=Ar("state");Hr[Pr]=!0,or=function(e,t){if(Sr(e,Pr))throw Tr(Rr);return t.facade=e,vr(e,Pr,t),t},ir=function(e){return Sr(e,Pr)?e[Pr]:{}},sr=function(e){return Sr(e,Pr)}}var Mr={set:or,get:ir,has:sr,enforce:function(e){return sr(e)?ir(e):or(e,{})},getterFor:function(e){return function(t){var r;if(!br(t)||(r=ir(t)).type!==e)throw Tr("Incompatible receiver, "+e+" required");return r}}},Or=T,kr=h,Er=K,Lr=Ge,Br=c,Dr=tr.CONFIGURABLE,Fr=hr,Ur=Mr.enforce,Nr=Mr.get,jr=String,xr=Object.defineProperty,_r=Or("".slice),Gr=Or("".replace),Yr=Or([].join),zr=Br&&!kr((function(){return 8!==xr((function(){}),"length",{value:8}).length})),Kr=String(String).split("String"),Jr=Vt.exports=function(e,t,r){"Symbol("===_r(jr(t),0,7)&&(t="["+Gr(jr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Lr(e,"name")||Dr&&e.name!==t)&&(Br?xr(e,"name",{value:t,configurable:!0}):e.name=t),zr&&r&&Lr(r,"arity")&&e.length!==r.arity&&xr(e,"length",{value:r.arity});try{r&&Lr(r,"constructor")&&r.constructor?Br&&xr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Ur(e);return Lr(n,"source")||(n.source=Yr(Kr,"string"==typeof t?t:"")),e};Function.prototype.toString=Jr((function(){return Er(this)&&Nr(this).source||Fr(this)}),"toString");var Wr=K,qr=Pt,Vr=qt,Zr=Ee,$r=function(e,t,r,n){n||(n={});var a=n.enumerable,o=void 0!==n.name?n.name:t;if(Wr(r)&&Vr(r,o,n),n.global)a?e[t]=r:Zr(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:qr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Qr={},Xr=Math.ceil,en=Math.floor,tn=Math.trunc||function(e){var t=+e;return(t>0?en:Xr)(t)},rn=function(e){var t=+e;return t!=t||0===t?0:tn(t)},nn=rn,an=Math.max,on=Math.min,sn=function(e,t){var r=nn(e);return r<0?an(r+t,0):on(r,t)},hn=rn,cn=Math.min,ln=function(e){return e>0?cn(hn(e),9007199254740991):0},un=ln,fn=function(e){return un(e.length)},dn=_,gn=sn,mn=fn,pn=function(e){return function(t,r,n){var a,o=dn(t),i=mn(o),s=gn(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},yn={includes:pn(!0),indexOf:pn(!1)},bn=Ge,vn=_,Sn=yn.indexOf,wn=mr,An=T([].push),Hn=function(e,t){var r,n=vn(e),a=0,o=[];for(r in n)!bn(wn,r)&&bn(n,r)&&An(o,r);for(;t.length>a;)bn(n,r=t[a++])&&(~Sn(o,r)||An(o,r));return o},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tn=Hn,Cn=Rn.concat("length","prototype");Qr.f=Object.getOwnPropertyNames||function(e){return Tn(e,Cn)};var In={};In.f=Object.getOwnPropertySymbols;var Pn=Q,Mn=Qr,On=In,kn=Lt,En=T([].concat),Ln=Pn("Reflect","ownKeys")||function(e){var t=Mn.f(kn(e)),r=On.f;return r?En(t,r(e)):t},Bn=Ge,Dn=Ln,Fn=s,Un=Pt,Nn=h,jn=K,xn=/#|\.prototype\./,_n=function(e,t){var r=Yn[Gn(e)];return r==Kn||r!=zn&&(jn(t)?Nn(t):!!t)},Gn=_n.normalize=function(e){return String(e).replace(xn,".").toLowerCase()},Yn=_n.data={},zn=_n.NATIVE="N",Kn=_n.POLYFILL="P",Jn=_n,Wn=i,qn=s.f,Vn=Wt,Zn=$r,$n=Ee,Qn=function(e,t,r){for(var n=Dn(t),a=Un.f,o=Fn.f,i=0;i<n.length;i++){var s=n[i];Bn(e,s)||r&&Bn(r,s)||a(e,s,o(t,s))}},Xn=Jn,ea=function(e,t){var r,n,a,o,i,s=e.target,h=e.global,c=e.stat;if(r=h?Wn:c?Wn[s]||$n(s,{}):(Wn[s]||{}).prototype)for(n in t){if(o=t[n],a=e.dontCallGetSet?(i=qn(r,n))&&i.value:r[n],!Xn(h?n:s+(c?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Qn(o,a)}(e.sham||a&&a.sham)&&Vn(o,"sham",!0),Zn(r,n,o,e)}},ta={};ta[rt("toStringTag")]="z";var ra="[object z]"===String(ta),na=K,aa=M,oa=rt("toStringTag"),ia=Object,sa="Arguments"==aa(function(){return arguments}()),ha=ra?aa:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=ia(e),oa))?r:sa?aa(t):"Object"==(n=aa(t))&&na(t.callee)?"Arguments":n},ca=ha,la=String,ua=function(e){if("Symbol"===ca(e))throw TypeError("Cannot convert a Symbol value to a string");return la(e)},fa=Lt,da=function(){var e=fa(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ga=h,ma=i.RegExp,pa=ga((function(){var e=ma("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ya=pa||ga((function(){return!ma("a","y").sticky})),ba={BROKEN_CARET:pa||ga((function(){var e=ma("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ya,UNSUPPORTED_Y:pa},va={},Sa=Hn,wa=Rn,Aa=Object.keys||function(e){return Sa(e,wa)},Ha=c,Ra=Mt,Ta=Pt,Ca=Lt,Ia=_,Pa=Aa;va.f=Ha&&!Ra?Object.defineProperties:function(e,t){Ca(e);for(var r,n=Ia(t),a=Pa(t),o=a.length,i=0;o>i;)Ta.f(e,r=a[i++],n[r]);return e};var Ma,Oa=Q("document","documentElement"),ka=Lt,Ea=va,La=Rn,Ba=mr,Da=Oa,Fa=pt,Ua="prototype",Na="script",ja=gr("IE_PROTO"),xa=function(){},_a=function(e){return"<"+Na+">"+e+"</"+Na+">"},Ga=function(e){e.write(_a("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ya=function(){try{Ma=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Ya="undefined"!=typeof document?document.domain&&Ma?Ga(Ma):(t=Fa("iframe"),r="java"+Na+":",t.style.display="none",Da.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(_a("document.F=Object")),e.close(),e.F):Ga(Ma);for(var n=La.length;n--;)delete Ya[Ua][La[n]];return Ya()};Ba[ja]=!0;var za,Ka,Ja=Object.create||function(e,t){var r;return null!==e?(xa[Ua]=ka(e),r=new xa,xa[Ua]=null,r[ja]=e):r=Ya(),void 0===t?r:Ea.f(r,t)},Wa=h,qa=i.RegExp,Va=Wa((function(){var e=qa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Za=h,$a=i.RegExp,Qa=Za((function(){var e=$a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xa=d,eo=T,to=ua,ro=da,no=ba,ao=Ja,oo=Mr.get,io=Va,so=Qa,ho=Pe("native-string-replace",String.prototype.replace),co=RegExp.prototype.exec,lo=co,uo=eo("".charAt),fo=eo("".indexOf),go=eo("".replace),mo=eo("".slice),po=(Ka=/b*/g,Xa(co,za=/a/,"a"),Xa(co,Ka,"a"),0!==za.lastIndex||0!==Ka.lastIndex),yo=no.BROKEN_CARET,bo=void 0!==/()??/.exec("")[1];(po||bo||yo||io||so)&&(lo=function(e){var t,r,n,a,o,i,s,h=this,c=oo(h),l=to(e),u=c.raw;if(u)return u.lastIndex=h.lastIndex,t=Xa(lo,u,l),h.lastIndex=u.lastIndex,t;var f=c.groups,d=yo&&h.sticky,g=Xa(ro,h),m=h.source,p=0,y=l;if(d&&(g=go(g,"y",""),-1===fo(g,"g")&&(g+="g"),y=mo(l,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==uo(l,h.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,p++),r=new RegExp("^(?:"+m+")",g)),bo&&(r=new RegExp("^"+m+"$(?!\\s)",g)),po&&(n=h.lastIndex),a=Xa(co,d?r:h,y),d?a?(a.input=mo(a.input,p),a[0]=mo(a[0],p),a.index=h.lastIndex,h.lastIndex+=a[0].length):h.lastIndex=0:po&&a&&(h.lastIndex=h.global?a.index+a[0].length:n),bo&&a&&a.length>1&&Xa(ho,a[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=ao(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});ea({target:"RegExp",proto:!0,forced:/./.exec!==lo},{exec:lo});var vo=pt("span").classList,So=vo&&vo.constructor&&vo.constructor.prototype,wo=So===Object.prototype?void 0:So,Ao=rt,Ho=Ja,Ro=Pt.f,To=Ao("unscopables"),Co=Array.prototype;null==Co[To]&&Ro(Co,To,{configurable:!0,value:Ho(null)});var Io,Po,Mo,Oo={},ko=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Eo=Ge,Lo=K,Bo=je,Do=ko,Fo=gr("IE_PROTO"),Uo=Object,No=Uo.prototype,jo=Do?Uo.getPrototypeOf:function(e){var t=Bo(e);if(Eo(t,Fo))return t[Fo];var r=t.constructor;return Lo(r)&&t instanceof r?r.prototype:t instanceof Uo?No:null},xo=h,_o=K,Go=q,Yo=jo,zo=$r,Ko=rt("iterator"),Jo=!1;[].keys&&("next"in(Mo=[].keys())?(Po=Yo(Yo(Mo)))!==Object.prototype&&(Io=Po):Jo=!0);var Wo=!Go(Io)||xo((function(){var e={};return Io[Ko].call(e)!==e}));Wo&&(Io={}),_o(Io[Ko])||zo(Io,Ko,(function(){return this}));var qo={IteratorPrototype:Io,BUGGY_SAFARI_ITERATORS:Jo},Vo=Pt.f,Zo=Ge,$o=rt("toStringTag"),Qo=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Zo(e,$o)&&Vo(e,$o,{configurable:!0,value:t})},Xo=qo.IteratorPrototype,ei=Ja,ti=S,ri=Qo,ni=Oo,ai=function(){return this},oi=function(e,t,r,n){var a=t+" Iterator";return e.prototype=ei(Xo,{next:ti(+!n,r)}),ri(e,a,!1),ni[a]=ai,e},ii=T,si=Se,hi=K,ci=String,li=TypeError,ui=function(e,t,r){try{return ii(si(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},fi=Lt,di=function(e){if("object"==typeof e||hi(e))return e;throw li("Can't set "+ci(e)+" as a prototype")},gi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ui(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return fi(r),di(n),t?e(r,n):r.__proto__=n,r}}():void 0),mi=ea,pi=d,yi=K,bi=oi,vi=jo,Si=gi,wi=Qo,Ai=Wt,Hi=$r,Ri=Oo,Ti=tr.PROPER,Ci=tr.CONFIGURABLE,Ii=qo.IteratorPrototype,Pi=qo.BUGGY_SAFARI_ITERATORS,Mi=rt("iterator"),Oi="keys",ki="values",Ei="entries",Li=function(){return this},Bi=function(e,t,r,n,a,o,i){bi(r,t,n);var s,h,c,l=function(e){if(e===a&&m)return m;if(!Pi&&e in d)return d[e];switch(e){case Oi:case ki:case Ei:return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",f=!1,d=e.prototype,g=d[Mi]||d["@@iterator"]||a&&d[a],m=!Pi&&g||l(a),p="Array"==t&&d.entries||g;if(p&&(s=vi(p.call(new e)))!==Object.prototype&&s.next&&(vi(s)!==Ii&&(Si?Si(s,Ii):yi(s[Mi])||Hi(s,Mi,Li)),wi(s,u,!0)),Ti&&a==ki&&g&&g.name!==ki&&(Ci?Ai(d,"name",ki):(f=!0,m=function(){return pi(g,this)})),a)if(h={values:l(ki),keys:o?m:l(Oi),entries:l(Ei)},i)for(c in h)(Pi||f||!(c in d))&&Hi(d,c,h[c]);else mi({target:t,proto:!0,forced:Pi||f},h);return d[Mi]!==m&&Hi(d,Mi,m,{name:a}),Ri[t]=m,h},Di=function(e,t){return{value:e,done:t}},Fi=_,Ui=function(e){Co[To][e]=!0},Ni=Oo,ji=Mr,xi=Pt.f,_i=Bi,Gi=Di,Yi=c,zi="Array Iterator",Ki=ji.set,Ji=ji.getterFor(zi),Wi=_i(Array,"Array",(function(e,t){Ki(this,{type:zi,target:Fi(e),index:0,kind:t})}),(function(){var e=Ji(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Gi(void 0,!0)):Gi("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),qi=Ni.Arguments=Ni.Array;if(Ui("keys"),Ui("values"),Ui("entries"),Yi&&"values"!==qi.name)try{xi(qi,"name",{value:"values"})}catch(e){}var Vi=i,Zi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$i=wo,Qi=Wi,Xi=Wt,es=rt,ts=es("iterator"),rs=es("toStringTag"),ns=Qi.values,as=function(e,t){if(e){if(e[ts]!==ns)try{Xi(e,ts,ns)}catch(t){e[ts]=ns}if(e[rs]||Xi(e,rs,t),Zi[t])for(var r in Qi)if(e[r]!==Qi[r])try{Xi(e,r,Qi[r])}catch(t){e[r]=Qi[r]}}};for(var os in Zi)as(Vi[os]&&Vi[os].prototype,os);as($i,"DOMTokenList");var is=T,ss=rn,hs=ua,cs=N,ls=is("".charAt),us=is("".charCodeAt),fs=is("".slice),ds=function(e){return function(t,r){var n,a,o=hs(cs(t)),i=ss(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=us(o,i))<55296||n>56319||i+1===s||(a=us(o,i+1))<56320||a>57343?e?ls(o,i):n:e?fs(o,i,i+2):a-56320+(n-55296<<10)+65536}},gs={codeAt:ds(!1),charAt:ds(!0)},ms=gs.charAt,ps=ua,ys=Mr,bs=Bi,vs=Di,Ss="String Iterator",ws=ys.set,As=ys.getterFor(Ss);bs(String,"String",(function(e){ws(this,{type:Ss,string:ps(e),index:0})}),(function(){var e,t=As(this),r=t.string,n=t.index;return n>=r.length?vs(void 0,!0):(e=ms(r,n),t.index+=e.length,vs(e,!1))}));var Hs=h,Rs=c,Ts=rt("iterator"),Cs=!Hs((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.size&&!Rs||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Ts]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Is=M,Ps=T,Ms=function(e){if("Function"===Is(e))return Ps(e)},Os=Se,ks=l,Es=Ms(Ms.bind),Ls=function(e,t){return Os(e),void 0===t?e:ks?Es(e,t):function(){return e.apply(t,arguments)}},Bs=qt,Ds=Pt,Fs=function(e,t,r){return r.get&&Bs(r.get,t,{getter:!0}),r.set&&Bs(r.set,t,{setter:!0}),Ds.f(e,t,r)},Us=X,Ns=TypeError,js=function(e,t){if(Us(t,e))return e;throw Ns("Incorrect invocation")},xs=c,_s=T,Gs=d,Ys=h,zs=Aa,Ks=In,Js=g,Ws=je,qs=B,Vs=Object.assign,Zs=Object.defineProperty,$s=_s([].concat),Qs=!Vs||Ys((function(){if(xs&&1!==Vs({b:1},Vs(Zs({},"a",{enumerable:!0,get:function(){Zs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Vs({},e)[r]||zs(Vs({},t)).join("")!=n}))?function(e,t){for(var r=Ws(e),n=arguments.length,a=1,o=Ks.f,i=Js.f;n>a;)for(var s,h=qs(arguments[a++]),c=o?$s(zs(h),o(h)):zs(h),l=c.length,u=0;l>u;)s=c[u++],xs&&!Gs(i,h,s)||(r[s]=h[s]);return r}:Vs,Xs=d,eh=Lt,th=He,rh=Lt,nh=function(e,t,r){var n,a;eh(e);try{if(!(n=th(e,"return"))){if("throw"===t)throw r;return r}n=Xs(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return eh(n),r},ah=Oo,oh=rt("iterator"),ih=Array.prototype,sh=T,hh=h,ch=K,lh=ha,uh=hr,fh=function(){},dh=[],gh=Q("Reflect","construct"),mh=/^\s*(?:class|function)\b/,ph=sh(mh.exec),yh=!mh.exec(fh),bh=function(e){if(!ch(e))return!1;try{return gh(fh,dh,e),!0}catch(e){return!1}},vh=function(e){if(!ch(e))return!1;switch(lh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yh||!!ph(mh,uh(e))}catch(e){return!0}};vh.sham=!0;var Sh=!gh||hh((function(){var e;return bh(bh.call)||!bh(Object)||!bh((function(){e=!0}))||e}))?vh:bh,wh=ft,Ah=Pt,Hh=S,Rh=function(e,t,r){var n=wh(t);n in e?Ah.f(e,n,Hh(0,r)):e[n]=r},Th=ha,Ch=He,Ih=D,Ph=Oo,Mh=rt("iterator"),Oh=function(e){if(!Ih(e))return Ch(e,Mh)||Ch(e,"@@iterator")||Ph[Th(e)]},kh=d,Eh=Se,Lh=Lt,Bh=pe,Dh=Oh,Fh=TypeError,Uh=function(e,t){var r=arguments.length<2?Dh(e):t;if(Eh(r))return Lh(kh(r,e));throw Fh(Bh(e)+" is not iterable")},Nh=Ls,jh=d,xh=je,_h=function(e,t,r,n){try{return n?t(rh(r)[0],r[1]):t(r)}catch(t){nh(e,"throw",t)}},Gh=function(e){return void 0!==e&&(ah.Array===e||ih[oh]===e)},Yh=Sh,zh=fn,Kh=Rh,Jh=Uh,Wh=Oh,qh=Array,Vh=sn,Zh=fn,$h=Rh,Qh=Array,Xh=Math.max,ec=function(e,t,r){for(var n=Zh(e),a=Vh(t,n),o=Vh(void 0===r?n:r,n),i=Qh(Xh(o-a,0)),s=0;a<o;a++,s++)$h(i,s,e[a]);return i.length=s,i},tc=T,rc=2147483647,nc=/[^\0-\u007E]/,ac=/[.\u3002\uFF0E\uFF61]/g,oc="Overflow: input needs wider integers to process",ic=RangeError,sc=tc(ac.exec),hc=Math.floor,cc=String.fromCharCode,lc=tc("".charCodeAt),uc=tc([].join),fc=tc([].push),dc=tc("".replace),gc=tc("".split),mc=tc("".toLowerCase),pc=function(e){return e+22+75*(e<26)},yc=function(e,t,r){var n=0;for(e=r?hc(e/700):e>>1,e+=hc(e/t);e>455;)e=hc(e/35),n+=36;return hc(n+36*e/(e+38))},bc=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=lc(e,r++);if(a>=55296&&a<=56319&&r<n){var o=lc(e,r++);56320==(64512&o)?fc(t,((1023&a)<<10)+(1023&o)+65536):(fc(t,a),r--)}else fc(t,a)}return t}(e);var r,n,a=e.length,o=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&fc(t,cc(n));var h=t.length,c=h;for(h&&fc(t,"-");c<a;){var l=rc;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var u=c+1;if(l-o>hc((rc-i)/u))throw ic(oc);for(i+=(l-o)*u,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++i>rc)throw ic(oc);if(n==o){for(var f=i,d=36;;){var g=d<=s?1:d>=s+26?26:d-s;if(f<g)break;var m=f-g,p=36-g;fc(t,cc(pc(g+m%p))),f=hc(m/p),d+=36}fc(t,cc(pc(f))),s=yc(i,u,c==h),i=0,c++}}i++,o++}return uc(t,"")},vc=TypeError,Sc=function(e,t){if(e<t)throw vc("Not enough arguments");return e},wc=$r,Ac=ec,Hc=Math.floor,Rc=function(e,t){var r=e.length,n=Hc(r/2);return r<8?Tc(e,t):Cc(e,Rc(Ac(e,0,n),t),Rc(Ac(e,n),t),t)},Tc=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},Cc=function(e,t,r,n){for(var a=t.length,o=r.length,i=0,s=0;i<a||s<o;)e[i+s]=i<a&&s<o?n(t[i],r[s])<=0?t[i++]:r[s++]:i<a?t[i++]:r[s++];return e},Ic=ea,Pc=i,Mc=d,Oc=T,kc=c,Ec=Cs,Lc=$r,Bc=Fs,Dc=function(e,t,r){for(var n in t)wc(e,n,t[n],r);return e},Fc=Qo,Uc=oi,Nc=Mr,jc=js,xc=K,_c=Ge,Gc=Ls,Yc=ha,zc=Lt,Kc=q,Jc=ua,Wc=Ja,qc=S,Vc=Uh,Zc=Oh,$c=Sc,Qc=Rc,Xc=rt("iterator"),el="URLSearchParams",tl=el+"Iterator",rl=Nc.set,nl=Nc.getterFor(el),al=Nc.getterFor(tl),ol=Object.getOwnPropertyDescriptor,il=function(e){if(!kc)return Pc[e];var t=ol(Pc,e);return t&&t.value},sl=il("fetch"),hl=il("Request"),cl=il("Headers"),ll=hl&&hl.prototype,ul=cl&&cl.prototype,fl=Pc.RegExp,dl=Pc.TypeError,gl=Pc.decodeURIComponent,ml=Pc.encodeURIComponent,pl=Oc("".charAt),yl=Oc([].join),bl=Oc([].push),vl=Oc("".replace),Sl=Oc([].shift),wl=Oc([].splice),Al=Oc("".split),Hl=Oc("".slice),Rl=/\+/g,Tl=Array(4),Cl=function(e){return Tl[e-1]||(Tl[e-1]=fl("((?:%[\\da-f]{2}){"+e+"})","gi"))},Il=function(e){try{return gl(e)}catch(t){return e}},Pl=function(e){var t=vl(e,Rl," "),r=4;try{return gl(t)}catch(e){for(;r;)t=vl(t,Cl(r--),Il);return t}},Ml=/[!'()~]|%20/g,Ol={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},kl=function(e){return Ol[e]},El=function(e){return vl(ml(e),Ml,kl)},Ll=Uc((function(e,t){rl(this,{type:tl,iterator:Vc(nl(e).entries),kind:t})}),"Iterator",(function(){var e=al(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Bl=function(e){this.entries=[],this.url=null,void 0!==e&&(Kc(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===pl(e,0)?Hl(e,1):e:Jc(e)))};Bl.prototype={type:el,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,o,i,s,h=Zc(e);if(h)for(r=(t=Vc(e,h)).next;!(n=Mc(r,t)).done;){if(o=(a=Vc(zc(n.value))).next,(i=Mc(o,a)).done||(s=Mc(o,a)).done||!Mc(o,a).done)throw dl("Expected sequence with length 2");bl(this.entries,{key:Jc(i.value),value:Jc(s.value)})}else for(var c in e)_c(e,c)&&bl(this.entries,{key:c,value:Jc(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=Al(e,"&"),a=0;a<n.length;)(t=n[a++]).length&&(r=Al(t,"="),bl(this.entries,{key:Pl(Sl(r)),value:Pl(yl(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],bl(r,El(e.key)+"="+El(e.value));return yl(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Dl=function(){jc(this,Fl);var e=rl(this,new Bl(arguments.length>0?arguments[0]:void 0));kc||(this.length=e.entries.length)},Fl=Dl.prototype;if(Dc(Fl,{append:function(e,t){$c(arguments.length,2);var r=nl(this);bl(r.entries,{key:Jc(e),value:Jc(t)}),kc||this.length++,r.updateURL()},delete:function(e){$c(arguments.length,1);for(var t=nl(this),r=t.entries,n=Jc(e),a=0;a<r.length;)r[a].key===n?wl(r,a,1):a++;kc||(this.length=r.length),t.updateURL()},get:function(e){$c(arguments.length,1);for(var t=nl(this).entries,r=Jc(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){$c(arguments.length,1);for(var t=nl(this).entries,r=Jc(e),n=[],a=0;a<t.length;a++)t[a].key===r&&bl(n,t[a].value);return n},has:function(e){$c(arguments.length,1);for(var t=nl(this).entries,r=Jc(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){$c(arguments.length,1);for(var r,n=nl(this),a=n.entries,o=!1,i=Jc(e),s=Jc(t),h=0;h<a.length;h++)(r=a[h]).key===i&&(o?wl(a,h--,1):(o=!0,r.value=s));o||bl(a,{key:i,value:s}),kc||(this.length=a.length),n.updateURL()},sort:function(){var e=nl(this);Qc(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=nl(this).entries,n=Gc(e,arguments.length>1?arguments[1]:void 0),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new Ll(this,"keys")},values:function(){return new Ll(this,"values")},entries:function(){return new Ll(this,"entries")}},{enumerable:!0}),Lc(Fl,Xc,Fl.entries,{name:"entries"}),Lc(Fl,"toString",(function(){return nl(this).serialize()}),{enumerable:!0}),kc&&Bc(Fl,"size",{get:function(){return nl(this).entries.length},configurable:!0,enumerable:!0}),Fc(Dl,el),Ic({global:!0,constructor:!0,forced:!Ec},{URLSearchParams:Dl}),!Ec&&xc(cl)){var Ul=Oc(ul.has),Nl=Oc(ul.set),jl=function(e){if(Kc(e)){var t,r=e.body;if(Yc(r)===el)return t=e.headers?new cl(e.headers):new cl,Ul(t,"content-type")||Nl(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Wc(e,{body:qc(0,Jc(r)),headers:qc(0,t)})}return e};if(xc(sl)&&Ic({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return sl(e,arguments.length>1?jl(arguments[1]):{})}}),xc(hl)){var xl=function(e){return jc(this,ll),new hl(e,arguments.length>1?jl(arguments[1]):{})};ll.constructor=xl,xl.prototype=ll,Ic({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xl})}}var _l,Gl=ea,Yl=c,zl=Cs,Kl=i,Jl=Ls,Wl=T,ql=$r,Vl=Fs,Zl=js,$l=Ge,Ql=Qs,Xl=function(e){var t=xh(e),r=Yh(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=Nh(a,n>2?arguments[2]:void 0));var i,s,h,c,l,u,f=Wh(t),d=0;if(!f||this===qh&&Gh(f))for(i=zh(t),s=r?new this(i):qh(i);i>d;d++)u=o?a(t[d],d):t[d],Kh(s,d,u);else for(l=(c=Jh(t,f)).next,s=r?new this:[];!(h=jh(l,c)).done;d++)u=o?_h(c,a,[h.value,d],!0):h.value,Kh(s,d,u);return s.length=d,s},eu=ec,tu=gs.codeAt,ru=function(e){var t,r,n=[],a=gc(dc(mc(e),ac,"."),".");for(t=0;t<a.length;t++)r=a[t],fc(n,sc(nc,r)?"xn--"+bc(r):r);return uc(n,".")},nu=ua,au=Qo,ou=Sc,iu={URLSearchParams:Dl,getState:nl},su=Mr,hu=su.set,cu=su.getterFor("URL"),lu=iu.URLSearchParams,uu=iu.getState,fu=Kl.URL,du=Kl.TypeError,gu=Kl.parseInt,mu=Math.floor,pu=Math.pow,yu=Wl("".charAt),bu=Wl(/./.exec),vu=Wl([].join),Su=Wl(1..toString),wu=Wl([].pop),Au=Wl([].push),Hu=Wl("".replace),Ru=Wl([].shift),Tu=Wl("".split),Cu=Wl("".slice),Iu=Wl("".toLowerCase),Pu=Wl([].unshift),Mu="Invalid scheme",Ou="Invalid host",ku="Invalid port",Eu=/[a-z]/i,Lu=/[\d+-.a-z]/i,Bu=/\d/,Du=/^0x/i,Fu=/^[0-7]+$/,Uu=/^\d+$/,Nu=/^[\da-f]+$/i,ju=/[\0\t\n\r #%/:<>?@[\\\]^|]/,xu=/[\0\t\n\r #/:<>?@[\\\]^|]/,_u=/^[\u0000-\u0020]+/,Gu=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Yu=/[\t\n\r]/g,zu=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)Pu(t,e%256),e=mu(e/256);return vu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,o=0;o<8;o++)0!==e[o]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=o),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=Su(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Ku={},Ju=Ql({},Ku,{" ":1,'"':1,"<":1,">":1,"`":1}),Wu=Ql({},Ju,{"#":1,"?":1,"{":1,"}":1}),qu=Ql({},Wu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Vu=function(e,t){var r=tu(e,0);return r>32&&r<127&&!$l(t,e)?e:encodeURIComponent(e)},Zu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},$u=function(e,t){var r;return 2==e.length&&bu(Eu,yu(e,0))&&(":"==(r=yu(e,1))||!t&&"|"==r)},Qu=function(e){var t;return e.length>1&&$u(Cu(e,0,2))&&(2==e.length||"/"===(t=yu(e,2))||"\\"===t||"?"===t||"#"===t)},Xu=function(e){return"."===e||"%2e"===Iu(e)},ef={},tf={},rf={},nf={},af={},of={},sf={},hf={},cf={},lf={},uf={},ff={},df={},gf={},mf={},pf={},yf={},bf={},vf={},Sf={},wf={},Af=function(e,t,r){var n,a,o,i=nu(e);if(t){if(a=this.parse(i))throw du(a);this.searchParams=null}else{if(void 0!==r&&(n=new Af(r,!0)),a=this.parse(i,null,n))throw du(a);(o=uu(new lu)).bindURL(this),this.searchParams=o}};Af.prototype={type:"URL",parse:function(e,t,r){var n,a,o,i,s,h=this,c=t||ef,l=0,u="",f=!1,d=!1,g=!1;for(e=nu(e),t||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,e=Hu(e,_u,""),e=Hu(e,Gu,"$1")),e=Hu(e,Yu,""),n=Xl(e);l<=n.length;){switch(a=n[l],c){case ef:if(!a||!bu(Eu,a)){if(t)return Mu;c=rf;continue}u+=Iu(a),c=tf;break;case tf:if(a&&(bu(Lu,a)||"+"==a||"-"==a||"."==a))u+=Iu(a);else{if(":"!=a){if(t)return Mu;u="",c=rf,l=0;continue}if(t&&(h.isSpecial()!=$l(Zu,u)||"file"==u&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=u,t)return void(h.isSpecial()&&Zu[h.scheme]==h.port&&(h.port=null));u="","file"==h.scheme?c=gf:h.isSpecial()&&r&&r.scheme==h.scheme?c=nf:h.isSpecial()?c=hf:"/"==n[l+1]?(c=af,l++):(h.cannotBeABaseURL=!0,Au(h.path,""),c=vf)}break;case rf:if(!r||r.cannotBeABaseURL&&"#"!=a)return Mu;if(r.cannotBeABaseURL&&"#"==a){h.scheme=r.scheme,h.path=eu(r.path),h.query=r.query,h.fragment="",h.cannotBeABaseURL=!0,c=wf;break}c="file"==r.scheme?gf:of;continue;case nf:if("/"!=a||"/"!=n[l+1]){c=of;continue}c=cf,l++;break;case af:if("/"==a){c=lf;break}c=bf;continue;case of:if(h.scheme=r.scheme,a==_l)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.query=r.query;else if("/"==a||"\\"==a&&h.isSpecial())c=sf;else if("?"==a)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.query="",c=Sf;else{if("#"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.path.length--,c=bf;continue}h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.query=r.query,h.fragment="",c=wf}break;case sf:if(!h.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,c=bf;continue}c=lf}else c=cf;break;case hf:if(c=cf,"/"!=a||"/"!=yu(u,l+1))continue;l++;break;case cf:if("/"!=a&&"\\"!=a){c=lf;continue}break;case lf:if("@"==a){f&&(u="%40"+u),f=!0,o=Xl(u);for(var m=0;m<o.length;m++){var p=o[m];if(":"!=p||g){var y=Vu(p,qu);g?h.password+=y:h.username+=y}else g=!0}u=""}else if(a==_l||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(f&&""==u)return"Invalid authority";l-=Xl(u).length+1,u="",c=uf}else u+=a;break;case uf:case ff:if(t&&"file"==h.scheme){c=pf;continue}if(":"!=a||d){if(a==_l||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(h.isSpecial()&&""==u)return Ou;if(t&&""==u&&(h.includesCredentials()||null!==h.port))return;if(i=h.parseHost(u))return i;if(u="",c=yf,t)return;continue}"["==a?d=!0:"]"==a&&(d=!1),u+=a}else{if(""==u)return Ou;if(i=h.parseHost(u))return i;if(u="",c=df,t==ff)return}break;case df:if(!bu(Bu,a)){if(a==_l||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()||t){if(""!=u){var b=gu(u,10);if(b>65535)return ku;h.port=h.isSpecial()&&b===Zu[h.scheme]?null:b,u=""}if(t)return;c=yf;continue}return ku}u+=a;break;case gf:if(h.scheme="file","/"==a||"\\"==a)c=mf;else{if(!r||"file"!=r.scheme){c=bf;continue}if(a==_l)h.host=r.host,h.path=eu(r.path),h.query=r.query;else if("?"==a)h.host=r.host,h.path=eu(r.path),h.query="",c=Sf;else{if("#"!=a){Qu(vu(eu(n,l),""))||(h.host=r.host,h.path=eu(r.path),h.shortenPath()),c=bf;continue}h.host=r.host,h.path=eu(r.path),h.query=r.query,h.fragment="",c=wf}}break;case mf:if("/"==a||"\\"==a){c=pf;break}r&&"file"==r.scheme&&!Qu(vu(eu(n,l),""))&&($u(r.path[0],!0)?Au(h.path,r.path[0]):h.host=r.host),c=bf;continue;case pf:if(a==_l||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&$u(u))c=bf;else if(""==u){if(h.host="",t)return;c=yf}else{if(i=h.parseHost(u))return i;if("localhost"==h.host&&(h.host=""),t)return;u="",c=yf}continue}u+=a;break;case yf:if(h.isSpecial()){if(c=bf,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=_l&&(c=bf,"/"!=a))continue}else h.fragment="",c=wf;else h.query="",c=Sf;break;case bf:if(a==_l||"/"==a||"\\"==a&&h.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(s=Iu(s=u))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(h.shortenPath(),"/"==a||"\\"==a&&h.isSpecial()||Au(h.path,"")):Xu(u)?"/"==a||"\\"==a&&h.isSpecial()||Au(h.path,""):("file"==h.scheme&&!h.path.length&&$u(u)&&(h.host&&(h.host=""),u=yu(u,0)+":"),Au(h.path,u)),u="","file"==h.scheme&&(a==_l||"?"==a||"#"==a))for(;h.path.length>1&&""===h.path[0];)Ru(h.path);"?"==a?(h.query="",c=Sf):"#"==a&&(h.fragment="",c=wf)}else u+=Vu(a,Wu);break;case vf:"?"==a?(h.query="",c=Sf):"#"==a?(h.fragment="",c=wf):a!=_l&&(h.path[0]+=Vu(a,Ku));break;case Sf:t||"#"!=a?a!=_l&&("'"==a&&h.isSpecial()?h.query+="%27":h.query+="#"==a?"%23":Vu(a,Ku)):(h.fragment="",c=wf);break;case wf:a!=_l&&(h.fragment+=Vu(a,Ju))}l++}},parseHost:function(e){var t,r,n;if("["==yu(e,0)){if("]"!=yu(e,e.length-1))return Ou;if(t=function(e){var t,r,n,a,o,i,s,h=[0,0,0,0,0,0,0,0],c=0,l=null,u=0,f=function(){return yu(e,u)};if(":"==f()){if(":"!=yu(e,1))return;u+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&bu(Nu,f());)t=16*t+gu(f(),16),u++,r++;if("."==f()){if(0==r)return;if(u-=r,c>6)return;for(n=0;f();){if(a=null,n>0){if(!("."==f()&&n<4))return;u++}if(!bu(Bu,f()))return;for(;bu(Bu,f());){if(o=gu(f(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;u++}h[c]=256*h[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;h[c++]=t}else{if(null!==l)return;u++,l=++c}}if(null!==l)for(i=c-l,c=7;0!=c&&i>0;)s=h[c],h[c--]=h[l+i-1],h[l+--i]=s;else if(8!=c)return;return h}(Cu(e,1,-1)),!t)return Ou;this.host=t}else if(this.isSpecial()){if(e=ru(e),bu(ju,e))return Ou;if(t=function(e){var t,r,n,a,o,i,s,h=Tu(e,".");if(h.length&&""==h[h.length-1]&&h.length--,(t=h.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=h[n]))return e;if(o=10,a.length>1&&"0"==yu(a,0)&&(o=bu(Du,a)?16:8,a=Cu(a,8==o?1:2)),""===a)i=0;else{if(!bu(10==o?Uu:8==o?Fu:Nu,a))return e;i=gu(a,o)}Au(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=pu(256,5-t))return null}else if(i>255)return null;for(s=wu(r),n=0;n<r.length;n++)s+=r[n]*pu(256,3-n);return s}(e),null===t)return Ou;this.host=t}else{if(bu(xu,e))return Ou;for(t="",r=Xl(e),n=0;n<r.length;n++)t+=Vu(r[n],Ku);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return $l(Zu,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&$u(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,a=e.host,o=e.port,i=e.path,s=e.query,h=e.fragment,c=t+":";return null!==a?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=zu(a),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+vu(i,"/"):"",null!==s&&(c+="?"+s),null!==h&&(c+="#"+h),c},setHref:function(e){var t=this.parse(e);if(t)throw du(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Hf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+zu(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(nu(e)+":",ef)},getUsername:function(){return this.username},setUsername:function(e){var t=Xl(nu(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Vu(t[r],qu)}},getPassword:function(){return this.password},setPassword:function(e){var t=Xl(nu(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Vu(t[r],qu)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?zu(e):zu(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,uf)},getHostname:function(){var e=this.host;return null===e?"":zu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ff)},getPort:function(){var e=this.port;return null===e?"":nu(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=nu(e))?this.port=null:this.parse(e,df))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+vu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,yf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=nu(e))?this.query=null:("?"==yu(e,0)&&(e=Cu(e,1)),this.query="",this.parse(e,Sf)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=nu(e))?("#"==yu(e,0)&&(e=Cu(e,1)),this.fragment="",this.parse(e,wf)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Hf=function(e){var t=Zl(this,Rf),r=ou(arguments.length,1)>1?arguments[1]:void 0,n=hu(t,new Af(e,!1,r));Yl||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Rf=Hf.prototype,Tf=function(e,t){return{get:function(){return cu(this)[e]()},set:t&&function(e){return cu(this)[t](e)},configurable:!0,enumerable:!0}};if(Yl&&(Vl(Rf,"href",Tf("serialize","setHref")),Vl(Rf,"origin",Tf("getOrigin")),Vl(Rf,"protocol",Tf("getProtocol","setProtocol")),Vl(Rf,"username",Tf("getUsername","setUsername")),Vl(Rf,"password",Tf("getPassword","setPassword")),Vl(Rf,"host",Tf("getHost","setHost")),Vl(Rf,"hostname",Tf("getHostname","setHostname")),Vl(Rf,"port",Tf("getPort","setPort")),Vl(Rf,"pathname",Tf("getPathname","setPathname")),Vl(Rf,"search",Tf("getSearch","setSearch")),Vl(Rf,"searchParams",Tf("getSearchParams")),Vl(Rf,"hash",Tf("getHash","setHash"))),ql(Rf,"toJSON",(function(){return cu(this).serialize()}),{enumerable:!0}),ql(Rf,"toString",(function(){return cu(this).serialize()}),{enumerable:!0}),fu){var Cf=fu.createObjectURL,If=fu.revokeObjectURL;Cf&&ql(Hf,"createObjectURL",Jl(Cf,fu)),If&&ql(Hf,"revokeObjectURL",Jl(If,fu))}au(Hf,"URL"),Gl({global:!0,constructor:!0,forced:!zl,sham:!Yl},{URL:Hf});var Pf,Mf=q,Of=M,kf=rt("match"),Ef=function(e){var t;return Mf(e)&&(void 0!==(t=e[kf])?!!t:"RegExp"==Of(e))},Lf=TypeError,Bf=rt("match"),Df=ea,Ff=Ms,Uf=s.f,Nf=ln,jf=ua,xf=function(e){if(Ef(e))throw Lf("The method doesn't accept regular expressions");return e},_f=N,Gf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Bf]=!1,"/./"[e](t)}catch(e){}}return!1},Yf=Ff("".startsWith),zf=Ff("".slice),Kf=Math.min,Jf=Gf("startsWith");Df({target:"String",proto:!0,forced:!!(Jf||(Pf=Uf(String.prototype,"startsWith"),!Pf||Pf.writable))&&!Jf},{startsWith:function(e){var t=jf(_f(this));xf(e);var r=Nf(Kf(arguments.length>1?arguments[1]:void 0,t.length)),n=jf(e);return Yf?Yf(t,n,r):zf(t,r,r+n.length)===n}});var Wf=d,qf=Ge,Vf=X,Zf=da,$f=RegExp.prototype,Qf=tr.PROPER,Xf=$r,ed=Lt,td=ua,rd=h,nd=function(e){var t=e.flags;return void 0!==t||"flags"in $f||qf(e,"flags")||!Vf($f,e)?t:Wf(Zf,e)},ad="toString",od=RegExp.prototype[ad],id=rd((function(){return"/a/b"!=od.call({source:"a",flags:"b"})})),sd=Qf&&od.name!=ad;(id||sd)&&Xf(RegExp.prototype,ad,(function(){var e=ed(this);return"/"+td(e.source)+"/"+td(nd(e))}),{unsafe:!0});var hd={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"},cd={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function ld(e){if("object"==typeof e&&null!==e&&"string"==typeof e.name){const t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:cd[e.getCountryCode()]};return["admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((r=>{e[r]&&(t[r]=e[r])})),t}return{geo:"none"}}function ud(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function fd(e){return e<10?"0"+e:""+e}function dd(e){return e<0?"-00"+dd(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function gd(e){return dd(e.getFullYear())+"-"+fd(e.getMonth()+1)+"-"+fd(e.getDate())}const md=[[t.flags.MAJOR_FAST,"holiday","major","fast"],[t.flags.CHANUKAH_CANDLES,"holiday","major"],[t.flags.DAF_YOMI,"dafyomi"],[t.flags.HEBREW_DATE,"hebdate"],[t.flags.MINOR_FAST,"holiday","fast"],[t.flags.MINOR_HOLIDAY,"holiday","minor"],[t.flags.MISHNA_YOMI,"mishnayomi"],[t.flags.NACH_YOMI,"nachyomi"],[t.flags.YERUSHALMI_YOMI,"yerushalmi"],[t.flags.MODERN_HOLIDAY,"holiday","modern"],[t.flags.MOLAD,"molad"],[t.flags.OMER_COUNT,"omer"],[t.flags.PARSHA_HASHAVUA,"parashat"],[t.flags.ROSH_CHODESH,"roshchodesh"],[t.flags.SHABBAT_MEVARCHIM,"mevarchim"],[t.flags.SPECIAL_SHABBAT,"holiday","shabbat"],[t.flags.USER_EVENT,"user"]];function pd(e){const t=e.getDesc();switch(t){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"];case"Purim":return["holiday","major"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];const r=e.getFlags();for(let e=0;e<md.length;e++){const t=md[e];if(r&t[0])return t.slice(1)}switch(t){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}function yd(e,t){let r="Hebcal";const n=t.location;if(t.yahrzeit)r+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");r+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?r+=" Israel":r+=" Diaspora";if("1"==t.subscribe)return r;if(t.year&&(t.isHebrewYear||0==e.length))r+=" "+t.year;else if(e.length){const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())r+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){r+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else r+=" "+t.getFullYear()}return r}function bd(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=hd[e.getDesc()]||hd[e.basename()]||"";if(t&&r){const e=r.indexOf(".");if(-1!=e)return r.substring(0,e)}return r}const vd=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.NACH_YOMI|t.flags.HEBREW_DATE|t.flags.YERUSHALMI_YOMI;function Sd(e,n){const a=e.getFlags();if(a&vd)return"";if(void 0!==e.eventTime)return"";const o=a&t.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,n):r.getLeyningForHoliday(e,n);let i="";return o&&(o.summary||o.haftara)&&(o.summary&&(i+="Torah: ".concat(o.summary)),o.summary&&o.haftara&&(i+="\n"),o.haftara&&(i+="Haftarah: "+o.haftara,o.reason&&o.reason.haftara&&(i+=" | "+o.reason.haftara))),o&&o.sephardic&&(i+="\nHaftarah for Sephardim: "+o.sephardic),i}function wd(e,r){if(e.getFlags()&t.flags.PARSHA_HASHAVUA)try{const t=Sd(e,r);if(t)return t}catch(e){}return e.memo||hd[e.basename()]}function Ad(e,t,r,n,a){const o=new URL(e),i="www.hebcal.com"===o.host;if(i){t&&o.searchParams.set("i","on");const e=o.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return o.host="hebcal.com",o.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),a&&(a.startsWith("ical-")||a.startsWith("pdf-"))||(r&&o.searchParams.set("us",r),n&&o.searchParams.set("um",n)),a&&o.searchParams.set("uc",a),o.toString()}return(r=i?r:"hebcal.com")&&o.searchParams.set("utm_source",r),n&&o.searchParams.set("utm_medium",n),a&&o.searchParams.set("utm_campaign",a),o.toString()}function Hd(e){if(void 0!==e.eventTime)return!0;const r=e.getFlags();if(r&t.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(r&(t.flags.DAF_YOMI|t.flags.YERUSHALMI_YOMI))||(!!(r&t.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(r&t.flags.SHABBAT_MEVARCHIM))}const Rd='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',Td={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function Cd(e,r){const n=e.getDate().greg(),a=n.getDate(),o=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=r.euro?'"'.concat(a,"/").concat(o,"/").concat(i,'"'):'"'.concat(o,"/").concat(a,"/").concat(i,'"');let h="",c="",l="",u='"true"';const f=Boolean(e.eventTime);let d=Hd(e)?e.renderBrief(r.locale):e.render(r.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",r);c=h='"'.concat(n,'"'),l=s,u='"false"'}let g="Jewish Holidays";const m=e.getFlags();if(f&&"object"==typeof r.location){const e=r.location.getShortName(),t=e.indexOf(",");g=-1===t?e:e.substring(0,t)}else{const t=Td[pd(e)[0]];"string"==typeof t&&(g=t)}if(d=d.replace(/,/g,"").replace(/"/g,"''"),r.appendHebrewToSubject){const t=e.renderBrief("he");t&&(d+=" / ".concat(t))}let p=e.memo||bd(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(r.locale));const y=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),b=f||m&t.flags.CHAG?4:3;return'"'.concat(d,'",').concat(s,",").concat(h,",").concat(l,",").concat(c,",").concat(u,',"').concat(y,'","').concat(b,'","').concat(g,'"')}function Id(e){return gd(e.getDate().greg())}function Pd(e,a){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Boolean(e.eventTime),s=e.getDate(),h=s.greg(),c="object"==typeof a.location?a.location.getTzid():"UTC",l=i?t.Zmanim.formatISOWithTimeZone(c,e.eventTime):gd(h),u=pd(e),f=e.getFlags();let d=Hd(e)?e.renderBrief(a.locale):e.render(a.locale);const g=e.getDesc(),m="Havdalah"===g||"Candle lighting"===g;if(m){d+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a)}const p={title:d,date:l};i||(p.hdate=s.toString()),p.category=u[0],u.length>1&&(p.subcat=u[1]),"holiday"===u[0]&&f&t.flags.CHAG&&(p.yomtov=!0),d!=g&&(p.title_orig=g);const y=e.renderBrief("he");if(y&&(p.hebrew=t.Locale.hebrewStripNikkud(y)),!m){if(o){const o=a.il,i=f===t.flags.PARSHA_HASHAVUA,h=i?r.getLeyningForParshaHaShavua(e,o):r.getLeyningForHoliday(e,o);if(h){p.leyning=function(e){const t={};e.summary&&(t.torah=e.summary);e.haftara&&(t.haftarah=e.haftara);e.sephardic&&(t.haftarah_sephardic=e.sephardic);e.fullkriyah&&Md(t,e.fullkriyah);e.reason&&(["7","8","M"].forEach((r=>{if(e.reason[r]){t["M"==r?"maftir":r]+=" | "+e.reason[r]}})),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara));return t}(h);const t=s.getFullYear();if(i&&!o&&t>=5745){const t=n.getTriennialForParshaHaShavua(e);t&&(p.leyning.triennial=Md({},t.aliyot))}}}const i=e.url();if(i){const e=a.utmSource||"js",t=a.utmMedium||"api",r=a.utmCampaign;p.link=Ad(i,a.il,e,t,r)}}if(f&t.flags.OMER_COUNT&&(p.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),f&t.flags.MOLAD){const r=e.molad;p.molad={hy:r.year,hm:t.HDate.getMonthName(r.month,r.year),dow:r.dow,hour:r.hour,minutes:r.minutes,chalakim:r.chalakim},delete p.hebrew}if(a.heDateParts&&!i||f&t.flags.HEBREW_DATE){const e=s.getFullYear(),r=s.getMonthName(),n=s.getDate();p.heDateParts={y:t.gematriya(e),m:t.Locale.gettext(r,"he-x-NoNikud"),d:t.gematriya(n)}}const b=e.memo||hd[e.basename()];return b?p.memo=b:void 0!==e.linkedEvent&&(p.memo=e.linkedEvent.render(a.locale)),a.includeEvent&&(p.ev=e),p}function Md(e,t){return Object.keys(t).forEach((n=>{const a=t[n];if(void 0!==a){e["M"==n?"maftir":n]=r.formatAliyahWithBook(a)}})),e}const Od={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function kd(e,r){let n=e.render();const a=e.getDate().greg(),o=function(e,t,r,n){if(t){const t=e.eventTime;return t?t.toUTCString():r.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,r.evPubDate,a,r.lastBuildDate),i=r.location,s=!!i&&i.getIsrael(),h=i?i.getTzid():"UTC",c=r&&r.utmSource||"shabbat1c",l=r&&r.utmMedium||"rss",u=function(e,r,n,a,o,i){let s,h;const c=e.eventTime||e.getDate().greg(),l=t.Zmanim.formatISOWithTimeZone(n,c),u=l.substring(0,l.indexOf("T")),f=u.replace(/-/g,""),d=ud(e.getDesc()),g="".concat(f,"-").concat(d),m=e.url();if(m)s=Ad(m,r,o,i).replace(/&/g,"&amp;"),h="".concat(m,"#").concat(g);else{const e="".concat(a,"&dt=").concat(u),t=Ad(e,r,o,i).replace(/&/g,"&amp;");h=e.replace(/&/g,"&amp;")+"#".concat(g),s="".concat(t,"#").concat(g)}return[s,h]}(e,s,h,r.mainUrl,c,l),f=u[0],d=u[1],g=pd(e)[0],m=e.getDesc();let p;if("Havdalah"===m||"Candle lighting"===m){const r=n.indexOf(": ");if(-1!=r){const a={location:i,il:s,locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a);n=n.substring(0,r)+": "+o}}else p=wd(e,s);const y=r.dayFormat,b=p||y.format(a),v="candles"==g?"<geo:lat>".concat(i.getLatitude(),"</geo:lat>\n<geo:long>").concat(i.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(n,"</title>\n<link>").concat(f,'</link>\n<guid isPermaLink="false">').concat(d,"</guid>\n<description>").concat(b,"</description>\n<category>").concat(g,"</category>\n<pubDate>").concat(o,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=Ad,e.countryNames=cd,e.eventToClassicApiObject=Pd,e.eventToCsv=Cd,e.eventToFullCalendar=function(e,r,n){const a=pd(e),o=e.getFlags();"holiday"==a[0]&&o&t.flags.CHAG&&a.push("yomtov");const i=Boolean(e.eventTime),s={title:Hd(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(r,e.eventTime):gd(e.getDate().greg()),allDay:!i,className:a.join(" ")},h=e.renderBrief("he");h&&(s.hebrew=t.Locale.hebrewStripNikkud(h));const c=e.url();c&&(s.url=Ad(c,n,"js","fc"));const l=e.getDesc();if(!("Havdalah"===l||"Candle lighting"===l)){const t=wd(e,n);t?s.description=t:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem2=kd,e.eventsToClassicApi=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:yd(e,t),date:(new Date).toISOString()};return n.location=ld(t.location),e.length&&(n.range={start:Id(e[0]),end:Id(e[e.length-1])}),n.items=e.map((e=>Pd(e,t,r))),n},e.eventsToCsv=function(e,t){return[Rd].concat(e.map((e=>Cd(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,t){t.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const r=t.location,n=t.mainUrl,a=t.buildDate=t.buildDate||new Date,o=a.getFullYear(),i=t.lastBuildDate=a.toUTCString(),s=t.title||yd(e,t),h=t.description||s,c=t.utmSource||"shabbat1c",l=t.utmMedium||"rss",u=Ad(n,r&&r.getIsrael(),c,l,t.utmCampaign).replace(/&/g,"&amp;"),f=t.selfUrl.replace(/&/g,"&amp;"),d=t.lang||Od[t.locale]||t.locale||"en-US";let g='<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>'.concat(s,"</title>\n<link>").concat(u,'</link>\n<atom:link href="').concat(f,'" rel="self" type="application/rss+xml" />\n<description>').concat(h,"</description>\n<language>").concat(d,"</language>\n<copyright>Copyright (c) ").concat(o," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(i,"</lastBuildDate>\n");return e.forEach((e=>{g+=kd(e,t)})),g+="</channel>\n</rss>\n",g},e.getCalendarTitle=yd,e.getDownloadFilename=function(e){let r="hebcal";if(e.year)r+="_"+e.year,e.isHebrewYear&&(r+="h"),e.month&&(r+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const n=new t.HDate(e.start),a=new t.HDate(e.end),o=n.greg().getFullYear(),i=a.greg().getFullYear();r+=o===i?"_"+o:"_"+o+"_"+i}if("object"==typeof e.location){const t=e.location,n=t.zip||t.asciiname||t.getShortName();n&&(r+="_"+ud(n).replace(/[-]/g,"_"))}return r},e.getEventCategories=pd,e.getHolidayDescription=bd,e.holidayDescription=hd,e.locationToPlainObj=ld,e.makeAnchor=ud,e.makeMemo=wd,e.makeTorahMemoText=Sd,e.pad2=fd,e.pad4=dd,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=Hd,e.toISOString=gd,e}({},hebcal,hebcal__leyning,hebcal__triennial);
1
+ /*! @hebcal/rest-api v4.5.1 */
2
+ var hebcal__rest_api=function(e,t,r,n){"use strict";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof a&&a)||function(){return this}()||a||Function("return this")(),s={},h=function(e){try{return!!e()}catch(e){return!0}},c=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=l,f=Function.prototype.call,d=u?f.bind(f):function(){return f.apply(f,arguments)},g={},m={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y=p&&!m.call({1:2},1);g.f=y?function(e){var t=p(this,e);return!!t&&t.enumerable}:m;var b,v,S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w=l,A=Function.prototype,T=A.call,R=w&&A.bind.bind(T,T),H=w?R:function(e){return function(){return T.apply(e,arguments)}},C=H,P=C({}.toString),I=C("".slice),k=function(e){return I(P(e),8,-1)},M=h,O=k,L=Object,E=H("".split),B=M((function(){return!L("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?E(e,""):L(e)}:L,D=function(e){return null==e},F=D,U=TypeError,x=function(e){if(F(e))throw U("Can't call method on "+e);return e},N=B,j=x,G=function(e){return N(j(e))},Y="object"==typeof document&&document.all,_={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},z=_.all,K=_.IS_HTMLDDA?function(e){return"function"==typeof e||e===z}:function(e){return"function"==typeof e},J=K,W=_.all,q=_.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===W}:function(e){return"object"==typeof e?null!==e:J(e)},V=i,Z=K,$=function(e,t){return arguments.length<2?(r=V[e],Z(r)?r:void 0):V[e]&&V[e][t];var r},Q=H({}.isPrototypeOf),X=i,ee="undefined"!=typeof navigator&&String(navigator.userAgent)||"",te=X.process,re=X.Deno,ne=te&&te.versions||re&&re.version,ae=ne&&ne.v8;ae&&(v=(b=ae.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!v&&ee&&(!(b=ee.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=ee.match(/Chrome\/(\d+)/))&&(v=+b[1]);var oe=v,ie=h,se=i.String,he=!!Object.getOwnPropertySymbols&&!ie((function(){var e=Symbol();return!se(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})),ce=he&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,le=$,ue=K,fe=Q,de=Object,ge=ce?function(e){return"symbol"==typeof e}:function(e){var t=le("Symbol");return ue(t)&&fe(t.prototype,de(e))},me=String,pe=function(e){try{return me(e)}catch(e){return"Object"}},ye=K,be=pe,ve=TypeError,Se=function(e){if(ye(e))return e;throw ve(be(e)+" is not a function")},we=Se,Ae=D,Te=function(e,t){var r=e[t];return Ae(r)?void 0:we(r)},Re=d,He=K,Ce=q,Pe=TypeError,Ie={exports:{}},ke=i,Me=Object.defineProperty,Oe=function(e,t){try{Me(ke,e,{value:t,configurable:!0,writable:!0})}catch(r){ke[e]=t}return t},Le=Oe,Ee="__core-js_shared__",Be=i[Ee]||Le(Ee,{}),De=Be;(Ie.exports=function(e,t){return De[e]||(De[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Fe=Ie.exports,Ue=x,xe=Object,Ne=function(e){return xe(Ue(e))},je=Ne,Ge=H({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return Ge(je(e),t)},_e=H,ze=0,Ke=Math.random(),Je=_e(1..toString),We=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Je(++ze+Ke,36)},qe=Fe,Ve=Ye,Ze=We,$e=he,Qe=ce,Xe=i.Symbol,et=qe("wks"),tt=Qe?Xe.for||Xe:Xe&&Xe.withoutSetter||Ze,rt=function(e){return Ve(et,e)||(et[e]=$e&&Ve(Xe,e)?Xe[e]:tt("Symbol."+e)),et[e]},nt=d,at=q,ot=ge,it=Te,st=function(e,t){var r,n;if("string"===t&&He(r=e.toString)&&!Ce(n=Re(r,e)))return n;if(He(r=e.valueOf)&&!Ce(n=Re(r,e)))return n;if("string"!==t&&He(r=e.toString)&&!Ce(n=Re(r,e)))return n;throw Pe("Can't convert object to primitive value")},ht=TypeError,ct=rt("toPrimitive"),lt=function(e,t){if(!at(e)||ot(e))return e;var r,n=it(e,ct);if(n){if(void 0===t&&(t="default"),r=nt(n,e,t),!at(r)||ot(r))return r;throw ht("Can't convert object to primitive value")}return void 0===t&&(t="number"),st(e,t)},ut=ge,ft=function(e){var t=lt(e,"string");return ut(t)?t:t+""},dt=q,gt=i.document,mt=dt(gt)&&dt(gt.createElement),pt=function(e){return mt?gt.createElement(e):{}},yt=pt,bt=!c&&!h((function(){return 7!=Object.defineProperty(yt("div"),"a",{get:function(){return 7}}).a})),vt=c,St=d,wt=g,At=S,Tt=G,Rt=ft,Ht=Ye,Ct=bt,Pt=Object.getOwnPropertyDescriptor;s.f=vt?Pt:function(e,t){if(e=Tt(e),t=Rt(t),Ct)try{return Pt(e,t)}catch(e){}if(Ht(e,t))return At(!St(wt.f,e,t),e[t])};var It={},kt=c&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Mt=q,Ot=String,Lt=TypeError,Et=function(e){if(Mt(e))return e;throw Lt(Ot(e)+" is not an object")},Bt=c,Dt=bt,Ft=kt,Ut=Et,xt=ft,Nt=TypeError,jt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Yt="enumerable",_t="configurable",zt="writable";It.f=Bt?Ft?function(e,t,r){if(Ut(e),t=xt(t),Ut(r),"function"==typeof e&&"prototype"===t&&"value"in r&&zt in r&&!r[zt]){var n=Gt(e,t);n&&n[zt]&&(e[t]=r.value,r={configurable:_t in r?r[_t]:n[_t],enumerable:Yt in r?r[Yt]:n[Yt],writable:!1})}return jt(e,t,r)}:jt:function(e,t,r){if(Ut(e),t=xt(t),Ut(r),Dt)try{return jt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Nt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Kt=It,Jt=S,Wt=c?function(e,t,r){return Kt.f(e,t,Jt(1,r))}:function(e,t,r){return e[t]=r,e},qt={exports:{}},Vt=c,Zt=Ye,$t=Function.prototype,Qt=Vt&&Object.getOwnPropertyDescriptor,Xt=Zt($t,"name"),er={EXISTS:Xt,PROPER:Xt&&"something"===function(){}.name,CONFIGURABLE:Xt&&(!Vt||Vt&&Qt($t,"name").configurable)},tr=K,rr=Be,nr=H(Function.toString);tr(rr.inspectSource)||(rr.inspectSource=function(e){return nr(e)});var ar,or,ir,sr=rr.inspectSource,hr=K,cr=i.WeakMap,lr=hr(cr)&&/native code/.test(String(cr)),ur=We,fr=Fe("keys"),dr=function(e){return fr[e]||(fr[e]=ur(e))},gr={},mr=lr,pr=i,yr=q,br=Wt,vr=Ye,Sr=Be,wr=dr,Ar=gr,Tr="Object already initialized",Rr=pr.TypeError,Hr=pr.WeakMap;if(mr||Sr.state){var Cr=Sr.state||(Sr.state=new Hr);Cr.get=Cr.get,Cr.has=Cr.has,Cr.set=Cr.set,ar=function(e,t){if(Cr.has(e))throw Rr(Tr);return t.facade=e,Cr.set(e,t),t},or=function(e){return Cr.get(e)||{}},ir=function(e){return Cr.has(e)}}else{var Pr=wr("state");Ar[Pr]=!0,ar=function(e,t){if(vr(e,Pr))throw Rr(Tr);return t.facade=e,br(e,Pr,t),t},or=function(e){return vr(e,Pr)?e[Pr]:{}},ir=function(e){return vr(e,Pr)}}var Ir={set:ar,get:or,has:ir,enforce:function(e){return ir(e)?or(e):ar(e,{})},getterFor:function(e){return function(t){var r;if(!yr(t)||(r=or(t)).type!==e)throw Rr("Incompatible receiver, "+e+" required");return r}}},kr=H,Mr=h,Or=K,Lr=Ye,Er=c,Br=er.CONFIGURABLE,Dr=sr,Fr=Ir.enforce,Ur=Ir.get,xr=String,Nr=Object.defineProperty,jr=kr("".slice),Gr=kr("".replace),Yr=kr([].join),_r=Er&&!Mr((function(){return 8!==Nr((function(){}),"length",{value:8}).length})),zr=String(String).split("String"),Kr=qt.exports=function(e,t,r){"Symbol("===jr(xr(t),0,7)&&(t="["+Gr(xr(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Lr(e,"name")||Br&&e.name!==t)&&(Er?Nr(e,"name",{value:t,configurable:!0}):e.name=t),_r&&r&&Lr(r,"arity")&&e.length!==r.arity&&Nr(e,"length",{value:r.arity});try{r&&Lr(r,"constructor")&&r.constructor?Er&&Nr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Fr(e);return Lr(n,"source")||(n.source=Yr(zr,"string"==typeof t?t:"")),e};Function.prototype.toString=Kr((function(){return Or(this)&&Ur(this).source||Dr(this)}),"toString");var Jr=qt.exports,Wr=K,qr=It,Vr=Jr,Zr=Oe,$r=function(e,t,r,n){n||(n={});var a=n.enumerable,o=void 0!==n.name?n.name:t;if(Wr(r)&&Vr(r,o,n),n.global)a?e[t]=r:Zr(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:qr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Qr={},Xr=Math.ceil,en=Math.floor,tn=Math.trunc||function(e){var t=+e;return(t>0?en:Xr)(t)},rn=function(e){var t=+e;return t!=t||0===t?0:tn(t)},nn=rn,an=Math.max,on=Math.min,sn=function(e,t){var r=nn(e);return r<0?an(r+t,0):on(r,t)},hn=rn,cn=Math.min,ln=function(e){return e>0?cn(hn(e),9007199254740991):0},un=ln,fn=function(e){return un(e.length)},dn=G,gn=sn,mn=fn,pn=function(e){return function(t,r,n){var a,o=dn(t),i=mn(o),s=gn(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},yn={includes:pn(!0),indexOf:pn(!1)},bn=Ye,vn=G,Sn=yn.indexOf,wn=gr,An=H([].push),Tn=function(e,t){var r,n=vn(e),a=0,o=[];for(r in n)!bn(wn,r)&&bn(n,r)&&An(o,r);for(;t.length>a;)bn(n,r=t[a++])&&(~Sn(o,r)||An(o,r));return o},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hn=Tn,Cn=Rn.concat("length","prototype");Qr.f=Object.getOwnPropertyNames||function(e){return Hn(e,Cn)};var Pn={};Pn.f=Object.getOwnPropertySymbols;var In=$,kn=Qr,Mn=Pn,On=Et,Ln=H([].concat),En=In("Reflect","ownKeys")||function(e){var t=kn.f(On(e)),r=Mn.f;return r?Ln(t,r(e)):t},Bn=Ye,Dn=En,Fn=s,Un=It,xn=h,Nn=K,jn=/#|\.prototype\./,Gn=function(e,t){var r=_n[Yn(e)];return r==Kn||r!=zn&&(Nn(t)?xn(t):!!t)},Yn=Gn.normalize=function(e){return String(e).replace(jn,".").toLowerCase()},_n=Gn.data={},zn=Gn.NATIVE="N",Kn=Gn.POLYFILL="P",Jn=Gn,Wn=i,qn=s.f,Vn=Wt,Zn=$r,$n=Oe,Qn=function(e,t,r){for(var n=Dn(t),a=Un.f,o=Fn.f,i=0;i<n.length;i++){var s=n[i];Bn(e,s)||r&&Bn(r,s)||a(e,s,o(t,s))}},Xn=Jn,ea=function(e,t){var r,n,a,o,i,s=e.target,h=e.global,c=e.stat;if(r=h?Wn:c?Wn[s]||$n(s,{}):(Wn[s]||{}).prototype)for(n in t){if(o=t[n],a=e.dontCallGetSet?(i=qn(r,n))&&i.value:r[n],!Xn(h?n:s+(c?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Qn(o,a)}(e.sham||a&&a.sham)&&Vn(o,"sham",!0),Zn(r,n,o,e)}},ta={};ta[rt("toStringTag")]="z";var ra="[object z]"===String(ta),na=K,aa=k,oa=rt("toStringTag"),ia=Object,sa="Arguments"==aa(function(){return arguments}()),ha=ra?aa:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=ia(e),oa))?r:sa?aa(t):"Object"==(n=aa(t))&&na(t.callee)?"Arguments":n},ca=ha,la=String,ua=function(e){if("Symbol"===ca(e))throw TypeError("Cannot convert a Symbol value to a string");return la(e)},fa=Et,da=function(){var e=fa(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ga=h,ma=i.RegExp,pa=ga((function(){var e=ma("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ya=pa||ga((function(){return!ma("a","y").sticky})),ba={BROKEN_CARET:pa||ga((function(){var e=ma("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ya,UNSUPPORTED_Y:pa},va={},Sa=Tn,wa=Rn,Aa=Object.keys||function(e){return Sa(e,wa)},Ta=c,Ra=kt,Ha=It,Ca=Et,Pa=G,Ia=Aa;va.f=Ta&&!Ra?Object.defineProperties:function(e,t){Ca(e);for(var r,n=Pa(t),a=Ia(t),o=a.length,i=0;o>i;)Ha.f(e,r=a[i++],n[r]);return e};var ka,Ma=$("document","documentElement"),Oa=Et,La=va,Ea=Rn,Ba=gr,Da=Ma,Fa=pt,Ua="prototype",xa="script",Na=dr("IE_PROTO"),ja=function(){},Ga=function(e){return"<"+xa+">"+e+"</"+xa+">"},Ya=function(e){e.write(Ga("")),e.close();var t=e.parentWindow.Object;return e=null,t},_a=function(){try{ka=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;_a="undefined"!=typeof document?document.domain&&ka?Ya(ka):(t=Fa("iframe"),r="java"+xa+":",t.style.display="none",Da.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Ga("document.F=Object")),e.close(),e.F):Ya(ka);for(var n=Ea.length;n--;)delete _a[Ua][Ea[n]];return _a()};Ba[Na]=!0;var za,Ka,Ja=Object.create||function(e,t){var r;return null!==e?(ja[Ua]=Oa(e),r=new ja,ja[Ua]=null,r[Na]=e):r=_a(),void 0===t?r:La.f(r,t)},Wa=h,qa=i.RegExp,Va=Wa((function(){var e=qa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Za=h,$a=i.RegExp,Qa=Za((function(){var e=$a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xa=d,eo=H,to=ua,ro=da,no=ba,ao=Ja,oo=Ir.get,io=Va,so=Qa,ho=Fe("native-string-replace",String.prototype.replace),co=RegExp.prototype.exec,lo=co,uo=eo("".charAt),fo=eo("".indexOf),go=eo("".replace),mo=eo("".slice),po=(Ka=/b*/g,Xa(co,za=/a/,"a"),Xa(co,Ka,"a"),0!==za.lastIndex||0!==Ka.lastIndex),yo=no.BROKEN_CARET,bo=void 0!==/()??/.exec("")[1];(po||bo||yo||io||so)&&(lo=function(e){var t,r,n,a,o,i,s,h=this,c=oo(h),l=to(e),u=c.raw;if(u)return u.lastIndex=h.lastIndex,t=Xa(lo,u,l),h.lastIndex=u.lastIndex,t;var f=c.groups,d=yo&&h.sticky,g=Xa(ro,h),m=h.source,p=0,y=l;if(d&&(g=go(g,"y",""),-1===fo(g,"g")&&(g+="g"),y=mo(l,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==uo(l,h.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,p++),r=new RegExp("^(?:"+m+")",g)),bo&&(r=new RegExp("^"+m+"$(?!\\s)",g)),po&&(n=h.lastIndex),a=Xa(co,d?r:h,y),d?a?(a.input=mo(a.input,p),a[0]=mo(a[0],p),a.index=h.lastIndex,h.lastIndex+=a[0].length):h.lastIndex=0:po&&a&&(h.lastIndex=h.global?a.index+a[0].length:n),bo&&a&&a.length>1&&Xa(ho,a[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=ao(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});ea({target:"RegExp",proto:!0,forced:/./.exec!==lo},{exec:lo});var vo=pt("span").classList,So=vo&&vo.constructor&&vo.constructor.prototype,wo=So===Object.prototype?void 0:So,Ao=rt,To=Ja,Ro=It.f,Ho=Ao("unscopables"),Co=Array.prototype;null==Co[Ho]&&Ro(Co,Ho,{configurable:!0,value:To(null)});var Po,Io,ko,Mo={},Oo=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Lo=Ye,Eo=K,Bo=Ne,Do=Oo,Fo=dr("IE_PROTO"),Uo=Object,xo=Uo.prototype,No=Do?Uo.getPrototypeOf:function(e){var t=Bo(e);if(Lo(t,Fo))return t[Fo];var r=t.constructor;return Eo(r)&&t instanceof r?r.prototype:t instanceof Uo?xo:null},jo=h,Go=K,Yo=q,_o=No,zo=$r,Ko=rt("iterator"),Jo=!1;[].keys&&("next"in(ko=[].keys())?(Io=_o(_o(ko)))!==Object.prototype&&(Po=Io):Jo=!0);var Wo=!Yo(Po)||jo((function(){var e={};return Po[Ko].call(e)!==e}));Wo&&(Po={}),Go(Po[Ko])||zo(Po,Ko,(function(){return this}));var qo={IteratorPrototype:Po,BUGGY_SAFARI_ITERATORS:Jo},Vo=It.f,Zo=Ye,$o=rt("toStringTag"),Qo=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Zo(e,$o)&&Vo(e,$o,{configurable:!0,value:t})},Xo=qo.IteratorPrototype,ei=Ja,ti=S,ri=Qo,ni=Mo,ai=function(){return this},oi=function(e,t,r,n){var a=t+" Iterator";return e.prototype=ei(Xo,{next:ti(+!n,r)}),ri(e,a,!1),ni[a]=ai,e},ii=H,si=Se,hi=K,ci=String,li=TypeError,ui=function(e,t,r){try{return ii(si(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},fi=Et,di=function(e){if("object"==typeof e||hi(e))return e;throw li("Can't set "+ci(e)+" as a prototype")},gi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ui(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return fi(r),di(n),t?e(r,n):r.__proto__=n,r}}():void 0),mi=ea,pi=d,yi=K,bi=oi,vi=No,Si=gi,wi=Qo,Ai=Wt,Ti=$r,Ri=Mo,Hi=er.PROPER,Ci=er.CONFIGURABLE,Pi=qo.IteratorPrototype,Ii=qo.BUGGY_SAFARI_ITERATORS,ki=rt("iterator"),Mi="keys",Oi="values",Li="entries",Ei=function(){return this},Bi=function(e,t,r,n,a,o,i){bi(r,t,n);var s,h,c,l=function(e){if(e===a&&m)return m;if(!Ii&&e in d)return d[e];switch(e){case Mi:case Oi:case Li:return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",f=!1,d=e.prototype,g=d[ki]||d["@@iterator"]||a&&d[a],m=!Ii&&g||l(a),p="Array"==t&&d.entries||g;if(p&&(s=vi(p.call(new e)))!==Object.prototype&&s.next&&(vi(s)!==Pi&&(Si?Si(s,Pi):yi(s[ki])||Ti(s,ki,Ei)),wi(s,u,!0)),Hi&&a==Oi&&g&&g.name!==Oi&&(Ci?Ai(d,"name",Oi):(f=!0,m=function(){return pi(g,this)})),a)if(h={values:l(Oi),keys:o?m:l(Mi),entries:l(Li)},i)for(c in h)(Ii||f||!(c in d))&&Ti(d,c,h[c]);else mi({target:t,proto:!0,forced:Ii||f},h);return d[ki]!==m&&Ti(d,ki,m,{name:a}),Ri[t]=m,h},Di=function(e,t){return{value:e,done:t}},Fi=G,Ui=function(e){Co[Ho][e]=!0},xi=Mo,Ni=Ir,ji=It.f,Gi=Bi,Yi=Di,_i=c,zi="Array Iterator",Ki=Ni.set,Ji=Ni.getterFor(zi),Wi=Gi(Array,"Array",(function(e,t){Ki(this,{type:zi,target:Fi(e),index:0,kind:t})}),(function(){var e=Ji(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Yi(void 0,!0)):Yi("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),qi=xi.Arguments=xi.Array;if(Ui("keys"),Ui("values"),Ui("entries"),_i&&"values"!==qi.name)try{ji(qi,"name",{value:"values"})}catch(e){}var Vi=i,Zi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$i=wo,Qi=Wi,Xi=Wt,es=rt,ts=es("iterator"),rs=es("toStringTag"),ns=Qi.values,as=function(e,t){if(e){if(e[ts]!==ns)try{Xi(e,ts,ns)}catch(t){e[ts]=ns}if(e[rs]||Xi(e,rs,t),Zi[t])for(var r in Qi)if(e[r]!==Qi[r])try{Xi(e,r,Qi[r])}catch(t){e[r]=Qi[r]}}};for(var os in Zi)as(Vi[os]&&Vi[os].prototype,os);as($i,"DOMTokenList");var is=H,ss=rn,hs=ua,cs=x,ls=is("".charAt),us=is("".charCodeAt),fs=is("".slice),ds=function(e){return function(t,r){var n,a,o=hs(cs(t)),i=ss(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=us(o,i))<55296||n>56319||i+1===s||(a=us(o,i+1))<56320||a>57343?e?ls(o,i):n:e?fs(o,i,i+2):a-56320+(n-55296<<10)+65536}},gs={codeAt:ds(!1),charAt:ds(!0)},ms=gs.charAt,ps=ua,ys=Ir,bs=Bi,vs=Di,Ss="String Iterator",ws=ys.set,As=ys.getterFor(Ss);bs(String,"String",(function(e){ws(this,{type:Ss,string:ps(e),index:0})}),(function(){var e,t=As(this),r=t.string,n=t.index;return n>=r.length?vs(void 0,!0):(e=ms(r,n),t.index+=e.length,vs(e,!1))}));var Ts=h,Rs=c,Hs=rt("iterator"),Cs=!Ts((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.size&&!Rs||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Hs]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Ps=k,Is=H,ks=function(e){if("Function"===Ps(e))return Is(e)},Ms=Se,Os=l,Ls=ks(ks.bind),Es=function(e,t){return Ms(e),void 0===t?e:Os?Ls(e,t):function(){return e.apply(t,arguments)}},Bs=Jr,Ds=It,Fs=function(e,t,r){return r.get&&Bs(r.get,t,{getter:!0}),r.set&&Bs(r.set,t,{setter:!0}),Ds.f(e,t,r)},Us=Q,xs=TypeError,Ns=function(e,t){if(Us(t,e))return e;throw xs("Incorrect invocation")},js=c,Gs=H,Ys=d,_s=h,zs=Aa,Ks=Pn,Js=g,Ws=Ne,qs=B,Vs=Object.assign,Zs=Object.defineProperty,$s=Gs([].concat),Qs=!Vs||_s((function(){if(js&&1!==Vs({b:1},Vs(Zs({},"a",{enumerable:!0,get:function(){Zs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Vs({},e)[r]||zs(Vs({},t)).join("")!=n}))?function(e,t){for(var r=Ws(e),n=arguments.length,a=1,o=Ks.f,i=Js.f;n>a;)for(var s,h=qs(arguments[a++]),c=o?$s(zs(h),o(h)):zs(h),l=c.length,u=0;l>u;)s=c[u++],js&&!Ys(i,h,s)||(r[s]=h[s]);return r}:Vs,Xs=d,eh=Et,th=Te,rh=Et,nh=function(e,t,r){var n,a;eh(e);try{if(!(n=th(e,"return"))){if("throw"===t)throw r;return r}n=Xs(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return eh(n),r},ah=Mo,oh=rt("iterator"),ih=Array.prototype,sh=H,hh=h,ch=K,lh=ha,uh=sr,fh=function(){},dh=[],gh=$("Reflect","construct"),mh=/^\s*(?:class|function)\b/,ph=sh(mh.exec),yh=!mh.exec(fh),bh=function(e){if(!ch(e))return!1;try{return gh(fh,dh,e),!0}catch(e){return!1}},vh=function(e){if(!ch(e))return!1;switch(lh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yh||!!ph(mh,uh(e))}catch(e){return!0}};vh.sham=!0;var Sh=!gh||hh((function(){var e;return bh(bh.call)||!bh(Object)||!bh((function(){e=!0}))||e}))?vh:bh,wh=ft,Ah=It,Th=S,Rh=function(e,t,r){var n=wh(t);n in e?Ah.f(e,n,Th(0,r)):e[n]=r},Hh=ha,Ch=Te,Ph=D,Ih=Mo,kh=rt("iterator"),Mh=function(e){if(!Ph(e))return Ch(e,kh)||Ch(e,"@@iterator")||Ih[Hh(e)]},Oh=d,Lh=Se,Eh=Et,Bh=pe,Dh=Mh,Fh=TypeError,Uh=function(e,t){var r=arguments.length<2?Dh(e):t;if(Lh(r))return Eh(Oh(r,e));throw Fh(Bh(e)+" is not iterable")},xh=Es,Nh=d,jh=Ne,Gh=function(e,t,r,n){try{return n?t(rh(r)[0],r[1]):t(r)}catch(t){nh(e,"throw",t)}},Yh=function(e){return void 0!==e&&(ah.Array===e||ih[oh]===e)},_h=Sh,zh=fn,Kh=Rh,Jh=Uh,Wh=Mh,qh=Array,Vh=sn,Zh=fn,$h=Rh,Qh=Array,Xh=Math.max,ec=function(e,t,r){for(var n=Zh(e),a=Vh(t,n),o=Vh(void 0===r?n:r,n),i=Qh(Xh(o-a,0)),s=0;a<o;a++,s++)$h(i,s,e[a]);return i.length=s,i},tc=H,rc=2147483647,nc=/[^\0-\u007E]/,ac=/[.\u3002\uFF0E\uFF61]/g,oc="Overflow: input needs wider integers to process",ic=RangeError,sc=tc(ac.exec),hc=Math.floor,cc=String.fromCharCode,lc=tc("".charCodeAt),uc=tc([].join),fc=tc([].push),dc=tc("".replace),gc=tc("".split),mc=tc("".toLowerCase),pc=function(e){return e+22+75*(e<26)},yc=function(e,t,r){var n=0;for(e=r?hc(e/700):e>>1,e+=hc(e/t);e>455;)e=hc(e/35),n+=36;return hc(n+36*e/(e+38))},bc=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=lc(e,r++);if(a>=55296&&a<=56319&&r<n){var o=lc(e,r++);56320==(64512&o)?fc(t,((1023&a)<<10)+(1023&o)+65536):(fc(t,a),r--)}else fc(t,a)}return t}(e);var r,n,a=e.length,o=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&fc(t,cc(n));var h=t.length,c=h;for(h&&fc(t,"-");c<a;){var l=rc;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var u=c+1;if(l-o>hc((rc-i)/u))throw ic(oc);for(i+=(l-o)*u,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++i>rc)throw ic(oc);if(n==o){for(var f=i,d=36;;){var g=d<=s?1:d>=s+26?26:d-s;if(f<g)break;var m=f-g,p=36-g;fc(t,cc(pc(g+m%p))),f=hc(m/p),d+=36}fc(t,cc(pc(f))),s=yc(i,u,c==h),i=0,c++}}i++,o++}return uc(t,"")},vc=TypeError,Sc=function(e,t){if(e<t)throw vc("Not enough arguments");return e},wc=$r,Ac=ec,Tc=Math.floor,Rc=function(e,t){var r=e.length,n=Tc(r/2);return r<8?Hc(e,t):Cc(e,Rc(Ac(e,0,n),t),Rc(Ac(e,n),t),t)},Hc=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},Cc=function(e,t,r,n){for(var a=t.length,o=r.length,i=0,s=0;i<a||s<o;)e[i+s]=i<a&&s<o?n(t[i],r[s])<=0?t[i++]:r[s++]:i<a?t[i++]:r[s++];return e},Pc=ea,Ic=i,kc=d,Mc=H,Oc=c,Lc=Cs,Ec=$r,Bc=Fs,Dc=function(e,t,r){for(var n in t)wc(e,n,t[n],r);return e},Fc=Qo,Uc=oi,xc=Ir,Nc=Ns,jc=K,Gc=Ye,Yc=Es,_c=ha,zc=Et,Kc=q,Jc=ua,Wc=Ja,qc=S,Vc=Uh,Zc=Mh,$c=Sc,Qc=Rc,Xc=rt("iterator"),el="URLSearchParams",tl=el+"Iterator",rl=xc.set,nl=xc.getterFor(el),al=xc.getterFor(tl),ol=Object.getOwnPropertyDescriptor,il=function(e){if(!Oc)return Ic[e];var t=ol(Ic,e);return t&&t.value},sl=il("fetch"),hl=il("Request"),cl=il("Headers"),ll=hl&&hl.prototype,ul=cl&&cl.prototype,fl=Ic.RegExp,dl=Ic.TypeError,gl=Ic.decodeURIComponent,ml=Ic.encodeURIComponent,pl=Mc("".charAt),yl=Mc([].join),bl=Mc([].push),vl=Mc("".replace),Sl=Mc([].shift),wl=Mc([].splice),Al=Mc("".split),Tl=Mc("".slice),Rl=/\+/g,Hl=Array(4),Cl=function(e){return Hl[e-1]||(Hl[e-1]=fl("((?:%[\\da-f]{2}){"+e+"})","gi"))},Pl=function(e){try{return gl(e)}catch(t){return e}},Il=function(e){var t=vl(e,Rl," "),r=4;try{return gl(t)}catch(e){for(;r;)t=vl(t,Cl(r--),Pl);return t}},kl=/[!'()~]|%20/g,Ml={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ol=function(e){return Ml[e]},Ll=function(e){return vl(ml(e),kl,Ol)},El=Uc((function(e,t){rl(this,{type:tl,iterator:Vc(nl(e).entries),kind:t})}),"Iterator",(function(){var e=al(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Bl=function(e){this.entries=[],this.url=null,void 0!==e&&(Kc(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===pl(e,0)?Tl(e,1):e:Jc(e)))};Bl.prototype={type:el,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,o,i,s,h=Zc(e);if(h)for(r=(t=Vc(e,h)).next;!(n=kc(r,t)).done;){if(o=(a=Vc(zc(n.value))).next,(i=kc(o,a)).done||(s=kc(o,a)).done||!kc(o,a).done)throw dl("Expected sequence with length 2");bl(this.entries,{key:Jc(i.value),value:Jc(s.value)})}else for(var c in e)Gc(e,c)&&bl(this.entries,{key:c,value:Jc(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=Al(e,"&"),a=0;a<n.length;)(t=n[a++]).length&&(r=Al(t,"="),bl(this.entries,{key:Il(Sl(r)),value:Il(yl(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],bl(r,Ll(e.key)+"="+Ll(e.value));return yl(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Dl=function(){Nc(this,Fl);var e=rl(this,new Bl(arguments.length>0?arguments[0]:void 0));Oc||(this.length=e.entries.length)},Fl=Dl.prototype;if(Dc(Fl,{append:function(e,t){$c(arguments.length,2);var r=nl(this);bl(r.entries,{key:Jc(e),value:Jc(t)}),Oc||this.length++,r.updateURL()},delete:function(e){$c(arguments.length,1);for(var t=nl(this),r=t.entries,n=Jc(e),a=0;a<r.length;)r[a].key===n?wl(r,a,1):a++;Oc||(this.length=r.length),t.updateURL()},get:function(e){$c(arguments.length,1);for(var t=nl(this).entries,r=Jc(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){$c(arguments.length,1);for(var t=nl(this).entries,r=Jc(e),n=[],a=0;a<t.length;a++)t[a].key===r&&bl(n,t[a].value);return n},has:function(e){$c(arguments.length,1);for(var t=nl(this).entries,r=Jc(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){$c(arguments.length,1);for(var r,n=nl(this),a=n.entries,o=!1,i=Jc(e),s=Jc(t),h=0;h<a.length;h++)(r=a[h]).key===i&&(o?wl(a,h--,1):(o=!0,r.value=s));o||bl(a,{key:i,value:s}),Oc||(this.length=a.length),n.updateURL()},sort:function(){var e=nl(this);Qc(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=nl(this).entries,n=Yc(e,arguments.length>1?arguments[1]:void 0),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new El(this,"keys")},values:function(){return new El(this,"values")},entries:function(){return new El(this,"entries")}},{enumerable:!0}),Ec(Fl,Xc,Fl.entries,{name:"entries"}),Ec(Fl,"toString",(function(){return nl(this).serialize()}),{enumerable:!0}),Oc&&Bc(Fl,"size",{get:function(){return nl(this).entries.length},configurable:!0,enumerable:!0}),Fc(Dl,el),Pc({global:!0,constructor:!0,forced:!Lc},{URLSearchParams:Dl}),!Lc&&jc(cl)){var Ul=Mc(ul.has),xl=Mc(ul.set),Nl=function(e){if(Kc(e)){var t,r=e.body;if(_c(r)===el)return t=e.headers?new cl(e.headers):new cl,Ul(t,"content-type")||xl(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Wc(e,{body:qc(0,Jc(r)),headers:qc(0,t)})}return e};if(jc(sl)&&Pc({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return sl(e,arguments.length>1?Nl(arguments[1]):{})}}),jc(hl)){var jl=function(e){return Nc(this,ll),new hl(e,arguments.length>1?Nl(arguments[1]):{})};ll.constructor=jl,jl.prototype=ll,Pc({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:jl})}}var Gl,Yl=ea,_l=c,zl=Cs,Kl=i,Jl=Es,Wl=H,ql=$r,Vl=Fs,Zl=Ns,$l=Ye,Ql=Qs,Xl=function(e){var t=jh(e),r=_h(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=xh(a,n>2?arguments[2]:void 0));var i,s,h,c,l,u,f=Wh(t),d=0;if(!f||this===qh&&Yh(f))for(i=zh(t),s=r?new this(i):qh(i);i>d;d++)u=o?a(t[d],d):t[d],Kh(s,d,u);else for(l=(c=Jh(t,f)).next,s=r?new this:[];!(h=Nh(l,c)).done;d++)u=o?Gh(c,a,[h.value,d],!0):h.value,Kh(s,d,u);return s.length=d,s},eu=ec,tu=gs.codeAt,ru=function(e){var t,r,n=[],a=gc(dc(mc(e),ac,"."),".");for(t=0;t<a.length;t++)r=a[t],fc(n,sc(nc,r)?"xn--"+bc(r):r);return uc(n,".")},nu=ua,au=Qo,ou=Sc,iu={URLSearchParams:Dl,getState:nl},su=Ir,hu=su.set,cu=su.getterFor("URL"),lu=iu.URLSearchParams,uu=iu.getState,fu=Kl.URL,du=Kl.TypeError,gu=Kl.parseInt,mu=Math.floor,pu=Math.pow,yu=Wl("".charAt),bu=Wl(/./.exec),vu=Wl([].join),Su=Wl(1..toString),wu=Wl([].pop),Au=Wl([].push),Tu=Wl("".replace),Ru=Wl([].shift),Hu=Wl("".split),Cu=Wl("".slice),Pu=Wl("".toLowerCase),Iu=Wl([].unshift),ku="Invalid scheme",Mu="Invalid host",Ou="Invalid port",Lu=/[a-z]/i,Eu=/[\d+-.a-z]/i,Bu=/\d/,Du=/^0x/i,Fu=/^[0-7]+$/,Uu=/^\d+$/,xu=/^[\da-f]+$/i,Nu=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ju=/[\0\t\n\r #/:<>?@[\\\]^|]/,Gu=/^[\u0000-\u0020]+/,Yu=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,_u=/[\t\n\r]/g,zu=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)Iu(t,e%256),e=mu(e/256);return vu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,o=0;o<8;o++)0!==e[o]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=o),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=Su(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Ku={},Ju=Ql({},Ku,{" ":1,'"':1,"<":1,">":1,"`":1}),Wu=Ql({},Ju,{"#":1,"?":1,"{":1,"}":1}),qu=Ql({},Wu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Vu=function(e,t){var r=tu(e,0);return r>32&&r<127&&!$l(t,e)?e:encodeURIComponent(e)},Zu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},$u=function(e,t){var r;return 2==e.length&&bu(Lu,yu(e,0))&&(":"==(r=yu(e,1))||!t&&"|"==r)},Qu=function(e){var t;return e.length>1&&$u(Cu(e,0,2))&&(2==e.length||"/"===(t=yu(e,2))||"\\"===t||"?"===t||"#"===t)},Xu=function(e){return"."===e||"%2e"===Pu(e)},ef={},tf={},rf={},nf={},af={},of={},sf={},hf={},cf={},lf={},uf={},ff={},df={},gf={},mf={},pf={},yf={},bf={},vf={},Sf={},wf={},Af=function(e,t,r){var n,a,o,i=nu(e);if(t){if(a=this.parse(i))throw du(a);this.searchParams=null}else{if(void 0!==r&&(n=new Af(r,!0)),a=this.parse(i,null,n))throw du(a);(o=uu(new lu)).bindURL(this),this.searchParams=o}};Af.prototype={type:"URL",parse:function(e,t,r){var n,a,o,i,s,h=this,c=t||ef,l=0,u="",f=!1,d=!1,g=!1;for(e=nu(e),t||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,e=Tu(e,Gu,""),e=Tu(e,Yu,"$1")),e=Tu(e,_u,""),n=Xl(e);l<=n.length;){switch(a=n[l],c){case ef:if(!a||!bu(Lu,a)){if(t)return ku;c=rf;continue}u+=Pu(a),c=tf;break;case tf:if(a&&(bu(Eu,a)||"+"==a||"-"==a||"."==a))u+=Pu(a);else{if(":"!=a){if(t)return ku;u="",c=rf,l=0;continue}if(t&&(h.isSpecial()!=$l(Zu,u)||"file"==u&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=u,t)return void(h.isSpecial()&&Zu[h.scheme]==h.port&&(h.port=null));u="","file"==h.scheme?c=gf:h.isSpecial()&&r&&r.scheme==h.scheme?c=nf:h.isSpecial()?c=hf:"/"==n[l+1]?(c=af,l++):(h.cannotBeABaseURL=!0,Au(h.path,""),c=vf)}break;case rf:if(!r||r.cannotBeABaseURL&&"#"!=a)return ku;if(r.cannotBeABaseURL&&"#"==a){h.scheme=r.scheme,h.path=eu(r.path),h.query=r.query,h.fragment="",h.cannotBeABaseURL=!0,c=wf;break}c="file"==r.scheme?gf:of;continue;case nf:if("/"!=a||"/"!=n[l+1]){c=of;continue}c=cf,l++;break;case af:if("/"==a){c=lf;break}c=bf;continue;case of:if(h.scheme=r.scheme,a==Gl)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.query=r.query;else if("/"==a||"\\"==a&&h.isSpecial())c=sf;else if("?"==a)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.query="",c=Sf;else{if("#"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.path.length--,c=bf;continue}h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=eu(r.path),h.query=r.query,h.fragment="",c=wf}break;case sf:if(!h.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,c=bf;continue}c=lf}else c=cf;break;case hf:if(c=cf,"/"!=a||"/"!=yu(u,l+1))continue;l++;break;case cf:if("/"!=a&&"\\"!=a){c=lf;continue}break;case lf:if("@"==a){f&&(u="%40"+u),f=!0,o=Xl(u);for(var m=0;m<o.length;m++){var p=o[m];if(":"!=p||g){var y=Vu(p,qu);g?h.password+=y:h.username+=y}else g=!0}u=""}else if(a==Gl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(f&&""==u)return"Invalid authority";l-=Xl(u).length+1,u="",c=uf}else u+=a;break;case uf:case ff:if(t&&"file"==h.scheme){c=pf;continue}if(":"!=a||d){if(a==Gl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(h.isSpecial()&&""==u)return Mu;if(t&&""==u&&(h.includesCredentials()||null!==h.port))return;if(i=h.parseHost(u))return i;if(u="",c=yf,t)return;continue}"["==a?d=!0:"]"==a&&(d=!1),u+=a}else{if(""==u)return Mu;if(i=h.parseHost(u))return i;if(u="",c=df,t==ff)return}break;case df:if(!bu(Bu,a)){if(a==Gl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()||t){if(""!=u){var b=gu(u,10);if(b>65535)return Ou;h.port=h.isSpecial()&&b===Zu[h.scheme]?null:b,u=""}if(t)return;c=yf;continue}return Ou}u+=a;break;case gf:if(h.scheme="file","/"==a||"\\"==a)c=mf;else{if(!r||"file"!=r.scheme){c=bf;continue}if(a==Gl)h.host=r.host,h.path=eu(r.path),h.query=r.query;else if("?"==a)h.host=r.host,h.path=eu(r.path),h.query="",c=Sf;else{if("#"!=a){Qu(vu(eu(n,l),""))||(h.host=r.host,h.path=eu(r.path),h.shortenPath()),c=bf;continue}h.host=r.host,h.path=eu(r.path),h.query=r.query,h.fragment="",c=wf}}break;case mf:if("/"==a||"\\"==a){c=pf;break}r&&"file"==r.scheme&&!Qu(vu(eu(n,l),""))&&($u(r.path[0],!0)?Au(h.path,r.path[0]):h.host=r.host),c=bf;continue;case pf:if(a==Gl||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&$u(u))c=bf;else if(""==u){if(h.host="",t)return;c=yf}else{if(i=h.parseHost(u))return i;if("localhost"==h.host&&(h.host=""),t)return;u="",c=yf}continue}u+=a;break;case yf:if(h.isSpecial()){if(c=bf,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=Gl&&(c=bf,"/"!=a))continue}else h.fragment="",c=wf;else h.query="",c=Sf;break;case bf:if(a==Gl||"/"==a||"\\"==a&&h.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(s=Pu(s=u))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(h.shortenPath(),"/"==a||"\\"==a&&h.isSpecial()||Au(h.path,"")):Xu(u)?"/"==a||"\\"==a&&h.isSpecial()||Au(h.path,""):("file"==h.scheme&&!h.path.length&&$u(u)&&(h.host&&(h.host=""),u=yu(u,0)+":"),Au(h.path,u)),u="","file"==h.scheme&&(a==Gl||"?"==a||"#"==a))for(;h.path.length>1&&""===h.path[0];)Ru(h.path);"?"==a?(h.query="",c=Sf):"#"==a&&(h.fragment="",c=wf)}else u+=Vu(a,Wu);break;case vf:"?"==a?(h.query="",c=Sf):"#"==a?(h.fragment="",c=wf):a!=Gl&&(h.path[0]+=Vu(a,Ku));break;case Sf:t||"#"!=a?a!=Gl&&("'"==a&&h.isSpecial()?h.query+="%27":h.query+="#"==a?"%23":Vu(a,Ku)):(h.fragment="",c=wf);break;case wf:a!=Gl&&(h.fragment+=Vu(a,Ju))}l++}},parseHost:function(e){var t,r,n;if("["==yu(e,0)){if("]"!=yu(e,e.length-1))return Mu;if(t=function(e){var t,r,n,a,o,i,s,h=[0,0,0,0,0,0,0,0],c=0,l=null,u=0,f=function(){return yu(e,u)};if(":"==f()){if(":"!=yu(e,1))return;u+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&bu(xu,f());)t=16*t+gu(f(),16),u++,r++;if("."==f()){if(0==r)return;if(u-=r,c>6)return;for(n=0;f();){if(a=null,n>0){if(!("."==f()&&n<4))return;u++}if(!bu(Bu,f()))return;for(;bu(Bu,f());){if(o=gu(f(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;u++}h[c]=256*h[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;h[c++]=t}else{if(null!==l)return;u++,l=++c}}if(null!==l)for(i=c-l,c=7;0!=c&&i>0;)s=h[c],h[c--]=h[l+i-1],h[l+--i]=s;else if(8!=c)return;return h}(Cu(e,1,-1)),!t)return Mu;this.host=t}else if(this.isSpecial()){if(e=ru(e),bu(Nu,e))return Mu;if(t=function(e){var t,r,n,a,o,i,s,h=Hu(e,".");if(h.length&&""==h[h.length-1]&&h.length--,(t=h.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=h[n]))return e;if(o=10,a.length>1&&"0"==yu(a,0)&&(o=bu(Du,a)?16:8,a=Cu(a,8==o?1:2)),""===a)i=0;else{if(!bu(10==o?Uu:8==o?Fu:xu,a))return e;i=gu(a,o)}Au(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=pu(256,5-t))return null}else if(i>255)return null;for(s=wu(r),n=0;n<r.length;n++)s+=r[n]*pu(256,3-n);return s}(e),null===t)return Mu;this.host=t}else{if(bu(ju,e))return Mu;for(t="",r=Xl(e),n=0;n<r.length;n++)t+=Vu(r[n],Ku);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return $l(Zu,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&$u(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,a=e.host,o=e.port,i=e.path,s=e.query,h=e.fragment,c=t+":";return null!==a?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=zu(a),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+vu(i,"/"):"",null!==s&&(c+="?"+s),null!==h&&(c+="#"+h),c},setHref:function(e){var t=this.parse(e);if(t)throw du(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Tf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+zu(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(nu(e)+":",ef)},getUsername:function(){return this.username},setUsername:function(e){var t=Xl(nu(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Vu(t[r],qu)}},getPassword:function(){return this.password},setPassword:function(e){var t=Xl(nu(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Vu(t[r],qu)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?zu(e):zu(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,uf)},getHostname:function(){var e=this.host;return null===e?"":zu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ff)},getPort:function(){var e=this.port;return null===e?"":nu(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=nu(e))?this.port=null:this.parse(e,df))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+vu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,yf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=nu(e))?this.query=null:("?"==yu(e,0)&&(e=Cu(e,1)),this.query="",this.parse(e,Sf)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=nu(e))?("#"==yu(e,0)&&(e=Cu(e,1)),this.fragment="",this.parse(e,wf)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Tf=function(e){var t=Zl(this,Rf),r=ou(arguments.length,1)>1?arguments[1]:void 0,n=hu(t,new Af(e,!1,r));_l||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Rf=Tf.prototype,Hf=function(e,t){return{get:function(){return cu(this)[e]()},set:t&&function(e){return cu(this)[t](e)},configurable:!0,enumerable:!0}};if(_l&&(Vl(Rf,"href",Hf("serialize","setHref")),Vl(Rf,"origin",Hf("getOrigin")),Vl(Rf,"protocol",Hf("getProtocol","setProtocol")),Vl(Rf,"username",Hf("getUsername","setUsername")),Vl(Rf,"password",Hf("getPassword","setPassword")),Vl(Rf,"host",Hf("getHost","setHost")),Vl(Rf,"hostname",Hf("getHostname","setHostname")),Vl(Rf,"port",Hf("getPort","setPort")),Vl(Rf,"pathname",Hf("getPathname","setPathname")),Vl(Rf,"search",Hf("getSearch","setSearch")),Vl(Rf,"searchParams",Hf("getSearchParams")),Vl(Rf,"hash",Hf("getHash","setHash"))),ql(Rf,"toJSON",(function(){return cu(this).serialize()}),{enumerable:!0}),ql(Rf,"toString",(function(){return cu(this).serialize()}),{enumerable:!0}),fu){var Cf=fu.createObjectURL,Pf=fu.revokeObjectURL;Cf&&ql(Tf,"createObjectURL",Jl(Cf,fu)),Pf&&ql(Tf,"revokeObjectURL",Jl(Pf,fu))}au(Tf,"URL"),Yl({global:!0,constructor:!0,forced:!zl,sham:!_l},{URL:Tf});var If,kf=q,Mf=k,Of=rt("match"),Lf=function(e){var t;return kf(e)&&(void 0!==(t=e[Of])?!!t:"RegExp"==Mf(e))},Ef=TypeError,Bf=rt("match"),Df=ea,Ff=ks,Uf=s.f,xf=ln,Nf=ua,jf=function(e){if(Lf(e))throw Ef("The method doesn't accept regular expressions");return e},Gf=x,Yf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Bf]=!1,"/./"[e](t)}catch(e){}}return!1},_f=Ff("".startsWith),zf=Ff("".slice),Kf=Math.min,Jf=Yf("startsWith");Df({target:"String",proto:!0,forced:!!(Jf||(If=Uf(String.prototype,"startsWith"),!If||If.writable))&&!Jf},{startsWith:function(e){var t=Nf(Gf(this));jf(e);var r=xf(Kf(arguments.length>1?arguments[1]:void 0,t.length)),n=Nf(e);return _f?_f(t,n,r):zf(t,r,r+n.length)===n}});var Wf=d,qf=Ye,Vf=Q,Zf=da,$f=RegExp.prototype,Qf=er.PROPER,Xf=$r,ed=Et,td=ua,rd=h,nd=function(e){var t=e.flags;return void 0!==t||"flags"in $f||qf(e,"flags")||!Vf($f,e)?t:Wf(Zf,e)},ad="toString",od=RegExp.prototype[ad],id=rd((function(){return"/a/b"!=od.call({source:"a",flags:"b"})})),sd=Qf&&od.name!=ad;(id||sd)&&Xf(RegExp.prototype,ad,(function(){var e=ed(this);return"/"+td(e.source)+"/"+td(nd(e))}),{unsafe:!0});var hd={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"},cd={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function ld(e){if("object"==typeof e&&null!==e&&"string"==typeof e.name){const t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:cd[e.getCountryCode()]};return["admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((r=>{e[r]&&(t[r]=e[r])})),t}return{geo:"none"}}function ud(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function fd(e){return e<10?"0"+e:""+e}function dd(e){return e<0?"-00"+dd(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function gd(e){return dd(e.getFullYear())+"-"+fd(e.getMonth()+1)+"-"+fd(e.getDate())}function md(e){const t=e.getDesc();return"Purim"===t||"Erev Purim"===t?["holiday","major"]:e.getCategories()}function pd(e,t){let r="Hebcal";const n=t.location;if(t.yahrzeit)r+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");r+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?r+=" Israel":r+=" Diaspora";if("1"==t.subscribe)return r;if(t.year&&(t.isHebrewYear||0==e.length))r+=" "+t.year;else if(e.length){const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())r+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){r+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else r+=" "+t.getFullYear()}return r}function yd(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=hd[e.getDesc()]||hd[e.basename()]||"";if(t&&r){const e=r.indexOf(".");if(-1!=e)return r.substring(0,e)}return r}const bd=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.NACH_YOMI|t.flags.HEBREW_DATE|t.flags.YERUSHALMI_YOMI;function vd(e,n){const a=e.getFlags();if(a&bd)return"";if(void 0!==e.eventTime)return"";const o=a&t.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,n):r.getLeyningForHoliday(e,n);let i="";return o&&(o.summary||o.haftara)&&(o.summary&&(i+="Torah: ".concat(o.summary)),o.summary&&o.haftara&&(i+="\n"),o.haftara&&(i+="Haftarah: "+o.haftara,o.reason&&o.reason.haftara&&(i+=" | "+o.reason.haftara))),o&&o.sephardic&&(i+="\nHaftarah for Sephardim: "+o.sephardic),i}function Sd(e,r){if(e.getFlags()&t.flags.PARSHA_HASHAVUA)try{const t=vd(e,r);if(t)return t}catch(e){}return e.memo||hd[e.basename()]}function wd(e,t,r,n,a){const o=new URL(e),i="www.hebcal.com"===o.host;if(i){t&&o.searchParams.set("i","on");const e=o.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return o.host="hebcal.com",o.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),a&&(a.startsWith("ical-")||a.startsWith("pdf-"))||(r&&o.searchParams.set("us",r),n&&o.searchParams.set("um",n)),a&&o.searchParams.set("uc",a),o.toString()}return(r=i?r:"hebcal.com")&&o.searchParams.set("utm_source",r),n&&o.searchParams.set("utm_medium",n),a&&o.searchParams.set("utm_campaign",a),o.toString()}function Ad(e){if(void 0!==e.eventTime)return!0;const r=e.getFlags();if(r&t.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(r&(t.flags.DAF_YOMI|t.flags.YERUSHALMI_YOMI))||(!!(r&t.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(r&t.flags.SHABBAT_MEVARCHIM))}const Td='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',Rd={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function Hd(e,r){const n=e.getDate().greg(),a=n.getDate(),o=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=r.euro?'"'.concat(a,"/").concat(o,"/").concat(i,'"'):'"'.concat(o,"/").concat(a,"/").concat(i,'"');let h="",c="",l="",u='"true"';const f=Boolean(e.eventTime);let d=Ad(e)?e.renderBrief(r.locale):e.render(r.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",r);c=h='"'.concat(n,'"'),l=s,u='"false"'}let g="Jewish Holidays";const m=e.getFlags();if(f&&"object"==typeof r.location){const e=r.location.getShortName(),t=e.indexOf(",");g=-1===t?e:e.substring(0,t)}else{const t=Rd[md(e)[0]];"string"==typeof t&&(g=t)}if(d=d.replace(/,/g,"").replace(/"/g,"''"),r.appendHebrewToSubject){const t=e.renderBrief("he");t&&(d+=" / ".concat(t))}let p=e.memo||yd(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(r.locale));const y=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),b=f||m&t.flags.CHAG?4:3;return'"'.concat(d,'",').concat(s,",").concat(h,",").concat(l,",").concat(c,",").concat(u,',"').concat(y,'","').concat(b,'","').concat(g,'"')}function Cd(e){return gd(e.getDate().greg())}function Pd(e,a){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Boolean(e.eventTime),s=e.getDate(),h=s.greg(),c="object"==typeof a.location?a.location.getTzid():"UTC",l=i?t.Zmanim.formatISOWithTimeZone(c,e.eventTime):gd(h),u=md(e),f=e.getFlags();let d=Ad(e)?e.renderBrief(a.locale):e.render(a.locale);const g=e.getDesc(),m="Havdalah"===g||"Candle lighting"===g;if(m){d+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a)}const p={title:d,date:l};i||(p.hdate=s.toString()),p.category=u[0],u.length>1&&(p.subcat=u[1]),"holiday"===u[0]&&f&t.flags.CHAG&&(p.yomtov=!0),d!=g&&(p.title_orig=g);const y=e.renderBrief("he");if(y&&(p.hebrew=t.Locale.hebrewStripNikkud(y)),!m){if(o){const o=a.il,i=f===t.flags.PARSHA_HASHAVUA,h=i?r.getLeyningForParshaHaShavua(e,o):r.getLeyningForHoliday(e,o);if(h){p.leyning=function(e){const t={};e.summary&&(t.torah=e.summary);e.haftara&&(t.haftarah=e.haftara);e.sephardic&&(t.haftarah_sephardic=e.sephardic);e.fullkriyah&&Id(t,e.fullkriyah);e.reason&&(["7","8","M"].forEach((r=>{if(e.reason[r]){t["M"==r?"maftir":r]+=" | "+e.reason[r]}})),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara));return t}(h);const t=s.getFullYear();if(i&&!o&&t>=5745){const t=n.getTriennialForParshaHaShavua(e);t&&(p.leyning.triennial=Id({},t.aliyot))}}}const i=e.url();if(i){const e=a.utmSource||"js",t=a.utmMedium||"api",r=a.utmCampaign;p.link=wd(i,a.il,e,t,r)}}if(f&t.flags.OMER_COUNT&&(p.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),f&t.flags.MOLAD){const r=e.molad;p.molad={hy:r.year,hm:t.HDate.getMonthName(r.month,r.year),dow:r.dow,hour:r.hour,minutes:r.minutes,chalakim:r.chalakim},delete p.hebrew}if(a.heDateParts&&!i||f&t.flags.HEBREW_DATE){const e=s.getFullYear(),r=s.getMonthName(),n=s.getDate();p.heDateParts={y:t.gematriya(e),m:t.Locale.gettext(r,"he-x-NoNikud"),d:t.gematriya(n)}}const b=e.memo||hd[e.basename()];return b?p.memo=b:void 0!==e.linkedEvent&&(p.memo=e.linkedEvent.render(a.locale)),a.includeEvent&&(p.ev=e),p}function Id(e,t){return Object.keys(t).forEach((n=>{const a=t[n];if(void 0!==a){e["M"==n?"maftir":n]=r.formatAliyahWithBook(a)}})),e}const kd={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function Md(e,r){let n=e.render();const a=e.getDate().greg(),o=function(e,t,r,n){if(t){const t=e.eventTime;return t?t.toUTCString():r.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,r.evPubDate,a,r.lastBuildDate),i=r.location,s=!!i&&i.getIsrael(),h=i?i.getTzid():"UTC",c=r&&r.utmSource||"shabbat1c",l=r&&r.utmMedium||"rss",u=function(e,r,n,a,o,i){let s,h;const c=e.eventTime||e.getDate().greg(),l=t.Zmanim.formatISOWithTimeZone(n,c),u=l.substring(0,l.indexOf("T")),f=u.replace(/-/g,""),d=ud(e.getDesc()),g="".concat(f,"-").concat(d),m=e.url();if(m)s=wd(m,r,o,i).replace(/&/g,"&amp;"),h="".concat(m,"#").concat(g);else{const e="".concat(a,"&dt=").concat(u),t=wd(e,r,o,i).replace(/&/g,"&amp;");h=e.replace(/&/g,"&amp;")+"#".concat(g),s="".concat(t,"#").concat(g)}return[s,h]}(e,s,h,r.mainUrl,c,l),f=u[0],d=u[1],g=md(e)[0],m=e.getDesc();let p;if("Havdalah"===m||"Candle lighting"===m){const r=n.indexOf(": ");if(-1!=r){const a={location:i,il:s,locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a);n=n.substring(0,r)+": "+o}}else p=Sd(e,s);const y=r.dayFormat,b=p||y.format(a),v="candles"==g?"<geo:lat>".concat(i.getLatitude(),"</geo:lat>\n<geo:long>").concat(i.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(n,"</title>\n<link>").concat(f,'</link>\n<guid isPermaLink="false">').concat(d,"</guid>\n<description>").concat(b,"</description>\n<category>").concat(g,"</category>\n<pubDate>").concat(o,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=wd,e.countryNames=cd,e.eventToClassicApiObject=Pd,e.eventToCsv=Hd,e.eventToFullCalendar=function(e,r,n){const a=md(e),o=e.getFlags();"holiday"==a[0]&&o&t.flags.CHAG&&a.push("yomtov");const i=Boolean(e.eventTime),s={title:Ad(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(r,e.eventTime):gd(e.getDate().greg()),allDay:!i,className:a.join(" ")},h=e.renderBrief("he");h&&(s.hebrew=t.Locale.hebrewStripNikkud(h));const c=e.url();c&&(s.url=wd(c,n,"js","fc"));const l=e.getDesc();if(!("Havdalah"===l||"Candle lighting"===l)){const t=Sd(e,n);t?s.description=t:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem2=Md,e.eventsToClassicApi=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:pd(e,t),date:(new Date).toISOString()};return n.location=ld(t.location),e.length&&(n.range={start:Cd(e[0]),end:Cd(e[e.length-1])}),n.items=e.map((e=>Pd(e,t,r))),n},e.eventsToCsv=function(e,t){return[Td].concat(e.map((e=>Hd(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,t){t.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const r=t.location,n=t.mainUrl,a=t.buildDate=t.buildDate||new Date,o=a.getFullYear(),i=t.lastBuildDate=a.toUTCString(),s=t.title||pd(e,t),h=t.description||s,c=t.utmSource||"shabbat1c",l=t.utmMedium||"rss",u=wd(n,r&&r.getIsrael(),c,l,t.utmCampaign).replace(/&/g,"&amp;"),f=t.selfUrl.replace(/&/g,"&amp;"),d=t.lang||kd[t.locale]||t.locale||"en-US";let g='<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>'.concat(s,"</title>\n<link>").concat(u,'</link>\n<atom:link href="').concat(f,'" rel="self" type="application/rss+xml" />\n<description>').concat(h,"</description>\n<language>").concat(d,"</language>\n<copyright>Copyright (c) ").concat(o," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(i,"</lastBuildDate>\n");return e.forEach((e=>{g+=Md(e,t)})),g+="</channel>\n</rss>\n",g},e.getCalendarTitle=pd,e.getDownloadFilename=function(e){let r="hebcal";if(e.year)r+="_"+e.year,e.isHebrewYear&&(r+="h"),e.month&&(r+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const n=new t.HDate(e.start),a=new t.HDate(e.end),o=n.greg().getFullYear(),i=a.greg().getFullYear();r+=o===i?"_"+o:"_"+o+"_"+i}if("object"==typeof e.location){const t=e.location,n=t.zip||t.asciiname||t.getShortName();n&&(r+="_"+ud(n).replace(/[-]/g,"_"))}return r},e.getEventCategories=md,e.getHolidayDescription=yd,e.holidayDescription=hd,e.locationToPlainObj=ld,e.makeAnchor=ud,e.makeMemo=Sd,e.makeTorahMemoText=vd,e.pad2=fd,e.pad4=dd,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=Ad,e.toISOString=gd,e}({},hebcal,hebcal__leyning,hebcal__triennial);
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v4.4.2 */
1
+ /*! @hebcal/rest-api v4.5.1 */
2
2
  var hebcalFullCalendar = (function (exports, core, leyning) {
3
3
  'use strict';
4
4
 
@@ -40,9 +40,6 @@ function pad4(number) {
40
40
  function toISOString(d) {
41
41
  return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
42
42
  }
43
- var flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [core.flags.CHANUKAH_CANDLES, 'holiday', 'major'], [core.flags.DAF_YOMI, 'dafyomi'], [core.flags.HEBREW_DATE, 'hebdate'], [core.flags.MINOR_FAST, 'holiday', 'fast'], [core.flags.MINOR_HOLIDAY, 'holiday', 'minor'], [core.flags.MISHNA_YOMI, 'mishnayomi'], [core.flags.NACH_YOMI, 'nachyomi'], [core.flags.YERUSHALMI_YOMI, 'yerushalmi'], [core.flags.MODERN_HOLIDAY, 'holiday', 'modern'], [core.flags.MOLAD, 'molad'], [core.flags.OMER_COUNT, 'omer'], [core.flags.PARSHA_HASHAVUA, 'parashat'],
44
- // backwards-compat
45
- [core.flags.ROSH_CHODESH, 'roshchodesh'], [core.flags.SHABBAT_MEVARCHIM, 'mevarchim'], [core.flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [core.flags.USER_EVENT, 'user']];
46
43
 
47
44
  /**
48
45
  * Returns a category and subcategory name
@@ -51,45 +48,10 @@ var flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [core
51
48
  */
52
49
  function getEventCategories(ev) {
53
50
  var desc = ev.getDesc();
54
- switch (desc) {
55
- // LIGHT_CANDLES or LIGHT_CANDLES_TZEIS
56
- case 'Candle lighting':
57
- return ['candles'];
58
- // YOM_TOV_ENDS
59
- case 'Havdalah':
60
- return ['havdalah'];
61
- // flags.MINOR_FAST or flags.MAJOR_FAST
62
- case 'Fast begins':
63
- case 'Fast ends':
64
- return ['zmanim', 'fast'];
65
- case 'Purim':
66
- return ['holiday', 'major'];
67
- }
68
- if (ev.cholHaMoedDay) {
69
- return ['holiday', 'major', 'cholhamoed'];
70
- }
71
- var mask = ev.getFlags();
72
- for (var i = 0; i < flagToCategory.length; i++) {
73
- var attrs = flagToCategory[i];
74
- if (mask & attrs[0]) {
75
- return attrs.slice(1);
76
- }
77
- }
78
- // Don't depend on flags.MINOR_HOLIDAY always being set
79
- switch (desc) {
80
- case 'Lag BaOmer':
81
- case 'Leil Selichot':
82
- case 'Pesach Sheni':
83
- case 'Erev Purim':
84
- case 'Purim Katan':
85
- case 'Shushan Purim':
86
- case 'Tu B\'Av':
87
- case 'Tu BiShvat':
88
- case 'Rosh Hashana LaBehemot':
89
- return ['holiday', 'minor'];
90
- default:
91
- return ['holiday', 'major'];
51
+ if (desc === 'Purim' || desc === 'Erev Purim') {
52
+ return ['holiday', 'major'];
92
53
  }
54
+ return ev.getCategories();
93
55
  }
94
56
  var HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT | core.flags.NACH_YOMI | core.flags.HEBREW_DATE | core.flags.YERUSHALMI_YOMI;
95
57
 
@@ -1,2 +1,2 @@
1
- /*! @hebcal/rest-api v4.4.2 */
2
- var hebcalFullCalendar=function(e,a,o){"use strict";var t={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function r(e){return e<10?"0"+e:""+e}function h(e){return e<0?"-00"+h(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function n(e){return h(e.getFullYear())+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())}var s=[[a.flags.MAJOR_FAST,"holiday","major","fast"],[a.flags.CHANUKAH_CANDLES,"holiday","major"],[a.flags.DAF_YOMI,"dafyomi"],[a.flags.HEBREW_DATE,"hebdate"],[a.flags.MINOR_FAST,"holiday","fast"],[a.flags.MINOR_HOLIDAY,"holiday","minor"],[a.flags.MISHNA_YOMI,"mishnayomi"],[a.flags.NACH_YOMI,"nachyomi"],[a.flags.YERUSHALMI_YOMI,"yerushalmi"],[a.flags.MODERN_HOLIDAY,"holiday","modern"],[a.flags.MOLAD,"molad"],[a.flags.OMER_COUNT,"omer"],[a.flags.PARSHA_HASHAVUA,"parashat"],[a.flags.ROSH_CHODESH,"roshchodesh"],[a.flags.SHABBAT_MEVARCHIM,"mevarchim"],[a.flags.SPECIAL_SHABBAT,"holiday","shabbat"],[a.flags.USER_EVENT,"user"]];var i=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function d(e,r){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{var h=function(e,t){var r=e.getFlags();if(r&i)return"";if(void 0!==e.eventTime)return"";var h=r&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t),n="";return h&&(h.summary||h.haftara)&&(h.summary&&(n+="Torah: ".concat(h.summary)),h.summary&&h.haftara&&(n+="\n"),h.haftara&&(n+="Haftarah: "+h.haftara,h.reason&&h.reason.haftara&&(n+=" | "+h.reason.haftara))),h&&h.sephardic&&(n+="\nHaftarah for Sephardim: "+h.sephardic),n}(e,r);if(h)return h}catch(e){}return e.memo||t[e.basename()]}return e.eventToFullCalendar=function(e,o,t){var r=function(e){var a=e.getDesc();switch(a){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"];case"Purim":return["holiday","major"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];for(var o=e.getFlags(),t=0;t<s.length;t++){var r=s[t];if(o&r[0])return r.slice(1)}switch(a){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}(e),h=e.getFlags();"holiday"==r[0]&&h&a.flags.CHAG&&r.push("yomtov");var i=Boolean(e.eventTime),l={title:function(e){if(void 0!==e.eventTime)return!0;var o=e.getFlags();return o&a.flags.HEBREW_DATE?1!==e.getDate().getDate():!!(o&(a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),start:i?a.Zmanim.formatISOWithTimeZone(o,e.eventTime):n(e.getDate().greg()),allDay:!i,className:r.join(" ")},m=e.renderBrief("he");m&&(l.hebrew=a.Locale.hebrewStripNikkud(m));var f=e.url();f&&(l.url=function(e,a,o,t,r){var h=new URL(e),n="www.hebcal.com"===h.host;if(n){a&&h.searchParams.set("i","on");var s=h.pathname,i=s.startsWith("/holidays/"),d=s.startsWith("/sedrot/"),l=s.startsWith("/omer/");if(i||d||l)return h.host="hebcal.com",h.pathname=i?"/h/"+s.substring(10):d?"/s/"+s.substring(8):"/o/"+s.substring(6),r&&(r.startsWith("ical-")||r.startsWith("pdf-"))||(o&&h.searchParams.set("us",o),t&&h.searchParams.set("um",t)),r&&h.searchParams.set("uc",r),h.toString()}return(o=n?o:"hebcal.com")&&h.searchParams.set("utm_source",o),t&&h.searchParams.set("utm_medium",t),r&&h.searchParams.set("utm_campaign",r),h.toString()}(f,t,"js","fc"));var c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){var b=d(e,t);b?l.description=b:void 0!==e.linkedEvent&&(l.description=e.linkedEvent.render())}return l},e}({},hebcal,hebcal__leyning);
1
+ /*! @hebcal/rest-api v4.5.1 */
2
+ var hebcalFullCalendar=function(e,a,o){"use strict";var t={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shirah":"Shabbat of Song","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function r(e){return e<10?"0"+e:""+e}function h(e){return e<0?"-00"+h(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function n(e){return h(e.getFullYear())+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())}var s=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function i(e,r){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{var h=function(e,t){var r=e.getFlags();if(r&s)return"";if(void 0!==e.eventTime)return"";var h=r&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t),n="";return h&&(h.summary||h.haftara)&&(h.summary&&(n+="Torah: ".concat(h.summary)),h.summary&&h.haftara&&(n+="\n"),h.haftara&&(n+="Haftarah: "+h.haftara,h.reason&&h.reason.haftara&&(n+=" | "+h.reason.haftara))),h&&h.sephardic&&(n+="\nHaftarah for Sephardim: "+h.sephardic),n}(e,r);if(h)return h}catch(e){}return e.memo||t[e.basename()]}return e.eventToFullCalendar=function(e,o,t){var r=function(e){var a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),h=e.getFlags();"holiday"==r[0]&&h&a.flags.CHAG&&r.push("yomtov");var s=Boolean(e.eventTime),d={title:function(e){if(void 0!==e.eventTime)return!0;var o=e.getFlags();return o&a.flags.HEBREW_DATE?1!==e.getDate().getDate():!!(o&(a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(o,e.eventTime):n(e.getDate().greg()),allDay:!s,className:r.join(" ")},l=e.renderBrief("he");l&&(d.hebrew=a.Locale.hebrewStripNikkud(l));var m=e.url();m&&(d.url=function(e,a,o,t,r){var h=new URL(e),n="www.hebcal.com"===h.host;if(n){a&&h.searchParams.set("i","on");var s=h.pathname,i=s.startsWith("/holidays/"),d=s.startsWith("/sedrot/"),l=s.startsWith("/omer/");if(i||d||l)return h.host="hebcal.com",h.pathname=i?"/h/"+s.substring(10):d?"/s/"+s.substring(8):"/o/"+s.substring(6),r&&(r.startsWith("ical-")||r.startsWith("pdf-"))||(o&&h.searchParams.set("us",o),t&&h.searchParams.set("um",t)),r&&h.searchParams.set("uc",r),h.toString()}return(o=n?o:"hebcal.com")&&h.searchParams.set("utm_source",o),t&&h.searchParams.set("utm_medium",t),r&&h.searchParams.set("utm_campaign",r),h.toString()}(m,t,"js","fc"));var f=e.getDesc();if(!("Havdalah"===f||"Candle lighting"===f)){var c=i(e,t);c?d.description=c:void 0!==e.linkedEvent&&(d.description=e.linkedEvent.render())}return d},e}({},hebcal,hebcal__leyning);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v4.4.2 */
1
+ /*! @hebcal/rest-api v4.5.1 */
2
2
  'use strict';
3
3
 
4
4
  var core = require('@hebcal/core');
@@ -120,9 +120,6 @@ function pad4(number) {
120
120
  function toISOString(d) {
121
121
  return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
122
122
  }
123
- const flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [core.flags.CHANUKAH_CANDLES, 'holiday', 'major'], [core.flags.DAF_YOMI, 'dafyomi'], [core.flags.HEBREW_DATE, 'hebdate'], [core.flags.MINOR_FAST, 'holiday', 'fast'], [core.flags.MINOR_HOLIDAY, 'holiday', 'minor'], [core.flags.MISHNA_YOMI, 'mishnayomi'], [core.flags.NACH_YOMI, 'nachyomi'], [core.flags.YERUSHALMI_YOMI, 'yerushalmi'], [core.flags.MODERN_HOLIDAY, 'holiday', 'modern'], [core.flags.MOLAD, 'molad'], [core.flags.OMER_COUNT, 'omer'], [core.flags.PARSHA_HASHAVUA, 'parashat'],
124
- // backwards-compat
125
- [core.flags.ROSH_CHODESH, 'roshchodesh'], [core.flags.SHABBAT_MEVARCHIM, 'mevarchim'], [core.flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [core.flags.USER_EVENT, 'user']];
126
123
 
127
124
  /**
128
125
  * Returns a category and subcategory name
@@ -131,45 +128,10 @@ const flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [co
131
128
  */
132
129
  function getEventCategories(ev) {
133
130
  const desc = ev.getDesc();
134
- switch (desc) {
135
- // LIGHT_CANDLES or LIGHT_CANDLES_TZEIS
136
- case 'Candle lighting':
137
- return ['candles'];
138
- // YOM_TOV_ENDS
139
- case 'Havdalah':
140
- return ['havdalah'];
141
- // flags.MINOR_FAST or flags.MAJOR_FAST
142
- case 'Fast begins':
143
- case 'Fast ends':
144
- return ['zmanim', 'fast'];
145
- case 'Purim':
146
- return ['holiday', 'major'];
147
- }
148
- if (ev.cholHaMoedDay) {
149
- return ['holiday', 'major', 'cholhamoed'];
150
- }
151
- const mask = ev.getFlags();
152
- for (let i = 0; i < flagToCategory.length; i++) {
153
- const attrs = flagToCategory[i];
154
- if (mask & attrs[0]) {
155
- return attrs.slice(1);
156
- }
157
- }
158
- // Don't depend on flags.MINOR_HOLIDAY always being set
159
- switch (desc) {
160
- case 'Lag BaOmer':
161
- case 'Leil Selichot':
162
- case 'Pesach Sheni':
163
- case 'Erev Purim':
164
- case 'Purim Katan':
165
- case 'Shushan Purim':
166
- case 'Tu B\'Av':
167
- case 'Tu BiShvat':
168
- case 'Rosh Hashana LaBehemot':
169
- return ['holiday', 'minor'];
170
- default:
171
- return ['holiday', 'major'];
131
+ if (desc === 'Purim' || desc === 'Erev Purim') {
132
+ return ['holiday', 'major'];
172
133
  }
134
+ return ev.getCategories();
173
135
  }
174
136
 
175
137
  /**
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v4.4.2 */
1
+ /*! @hebcal/rest-api v4.5.1 */
2
2
  import { flags, HDate, HebrewCalendar, Zmanim, Locale, gematriya } from '@hebcal/core';
3
3
  import { getLeyningForParshaHaShavua, getLeyningForHoliday, formatAliyahWithBook } from '@hebcal/leyning';
4
4
  import { getTriennialForParshaHaShavua } from '@hebcal/triennial';
@@ -118,9 +118,6 @@ function pad4(number) {
118
118
  function toISOString(d) {
119
119
  return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
120
120
  }
121
- const flagToCategory = [[flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [flags.CHANUKAH_CANDLES, 'holiday', 'major'], [flags.DAF_YOMI, 'dafyomi'], [flags.HEBREW_DATE, 'hebdate'], [flags.MINOR_FAST, 'holiday', 'fast'], [flags.MINOR_HOLIDAY, 'holiday', 'minor'], [flags.MISHNA_YOMI, 'mishnayomi'], [flags.NACH_YOMI, 'nachyomi'], [flags.YERUSHALMI_YOMI, 'yerushalmi'], [flags.MODERN_HOLIDAY, 'holiday', 'modern'], [flags.MOLAD, 'molad'], [flags.OMER_COUNT, 'omer'], [flags.PARSHA_HASHAVUA, 'parashat'],
122
- // backwards-compat
123
- [flags.ROSH_CHODESH, 'roshchodesh'], [flags.SHABBAT_MEVARCHIM, 'mevarchim'], [flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [flags.USER_EVENT, 'user']];
124
121
 
125
122
  /**
126
123
  * Returns a category and subcategory name
@@ -129,45 +126,10 @@ const flagToCategory = [[flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [flags.C
129
126
  */
130
127
  function getEventCategories(ev) {
131
128
  const desc = ev.getDesc();
132
- switch (desc) {
133
- // LIGHT_CANDLES or LIGHT_CANDLES_TZEIS
134
- case 'Candle lighting':
135
- return ['candles'];
136
- // YOM_TOV_ENDS
137
- case 'Havdalah':
138
- return ['havdalah'];
139
- // flags.MINOR_FAST or flags.MAJOR_FAST
140
- case 'Fast begins':
141
- case 'Fast ends':
142
- return ['zmanim', 'fast'];
143
- case 'Purim':
144
- return ['holiday', 'major'];
145
- }
146
- if (ev.cholHaMoedDay) {
147
- return ['holiday', 'major', 'cholhamoed'];
148
- }
149
- const mask = ev.getFlags();
150
- for (let i = 0; i < flagToCategory.length; i++) {
151
- const attrs = flagToCategory[i];
152
- if (mask & attrs[0]) {
153
- return attrs.slice(1);
154
- }
155
- }
156
- // Don't depend on flags.MINOR_HOLIDAY always being set
157
- switch (desc) {
158
- case 'Lag BaOmer':
159
- case 'Leil Selichot':
160
- case 'Pesach Sheni':
161
- case 'Erev Purim':
162
- case 'Purim Katan':
163
- case 'Shushan Purim':
164
- case 'Tu B\'Av':
165
- case 'Tu BiShvat':
166
- case 'Rosh Hashana LaBehemot':
167
- return ['holiday', 'minor'];
168
- default:
169
- return ['holiday', 'major'];
129
+ if (desc === 'Purim' || desc === 'Erev Purim') {
130
+ return ['holiday', 'major'];
170
131
  }
132
+ return ev.getCategories();
171
133
  }
172
134
 
173
135
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/rest-api",
3
- "version": "4.4.2",
3
+ "version": "4.5.1",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal"
@@ -28,9 +28,9 @@
28
28
  "url": "https://github.com/hebcal/hebcal-rest-api/issues"
29
29
  },
30
30
  "dependencies": {
31
- "@hebcal/core": "^3.50.3",
32
- "@hebcal/leyning": "^7.2.1",
33
- "@hebcal/triennial": "^1.1.0"
31
+ "@hebcal/core": "^4.0.3",
32
+ "@hebcal/leyning": "^7.3.1",
33
+ "@hebcal/triennial": "^1.2.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "rollup -c",
@@ -41,23 +41,26 @@
41
41
  },
42
42
  "license": "BSD-2-Clause",
43
43
  "ava": {
44
- "require": ["@babel/register"]
44
+ "require": [
45
+ "@babel/register"
46
+ ]
45
47
  },
46
48
  "devDependencies": {
47
- "@babel/core": "^7.21.0",
48
- "@babel/preset-env": "^7.20.2",
49
+ "@babel/core": "^7.21.8",
50
+ "@babel/preset-env": "^7.21.5",
49
51
  "@babel/register": "^7.21.0",
52
+ "@hebcal/learning": "^1.3.2",
50
53
  "@rollup/plugin-babel": "^6.0.3",
51
- "@rollup/plugin-commonjs": "^24.0.1",
54
+ "@rollup/plugin-commonjs": "^25.0.0",
52
55
  "@rollup/plugin-json": "^6.0.0",
53
- "@rollup/plugin-node-resolve": "^15.0.1",
54
- "@rollup/plugin-terser": "^0.4.0",
56
+ "@rollup/plugin-node-resolve": "^15.0.2",
57
+ "@rollup/plugin-terser": "^0.4.1",
55
58
  "ava": "^5.2.0",
56
- "core-js": "^3.29.0",
57
- "eslint": "^8.35.0",
59
+ "core-js": "^3.30.2",
60
+ "eslint": "^8.40.0",
58
61
  "eslint-config-google": "^0.14.0",
59
62
  "jsdoc": "^4.0.2",
60
63
  "jsdoc-to-markdown": "^8.0.0",
61
- "rollup": "^3.17.3"
64
+ "rollup": "^3.21.7"
62
65
  }
63
66
  }