@hebcal/rest-api 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- /*! @hebcal/rest-api v3.12.0 */
2
- var hebcal__rest_api=function(e,t,a){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var r=n(hebcal__leyning),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},h=function(e){try{return!!e()}catch(e){return!0}},l=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),d=u,f=Function.prototype.call,m=d?f.bind(f):function(){return f.apply(f,arguments)},g={},b={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,p=y&&!b.call({1:2},1);g.f=p?function(e){var t=y(this,e);return!!t&&t.enumerable}:b;var v,S,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},A=u,H=Function.prototype,T=H.bind,C=H.call,I=A&&T.bind(C,C),R=A?function(e){return e&&I(e)}:function(e){return e&&function(){return C.apply(e,arguments)}},O=R,M=O({}.toString),E=O("".slice),D=function(e){return E(M(e),8,-1)},P=R,B=h,k=D,F=s.Object,N=P("".split),L=B((function(){return!F("z").propertyIsEnumerable(0)}))?function(e){return"String"==k(e)?N(e,""):F(e)}:F,j=s.TypeError,x=function(e){if(null==e)throw j("Can't call method on "+e);return e},G=L,Y=x,_=function(e){return G(Y(e))},z=function(e){return"function"==typeof e},U=z,K=function(e){return"object"==typeof e?null!==e:U(e)},J=s,Z=z,W=function(e){return Z(e)?e:void 0},V=function(e,t){return arguments.length<2?W(J[e]):J[e]&&J[e][t]},$=R({}.isPrototypeOf),q=s,Q=V("navigator","userAgent")||"",X=q.process,ee=q.Deno,te=X&&X.versions||ee&&ee.version,ae=te&&te.v8;ae&&(S=(v=ae.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!S&&Q&&(!(v=Q.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=Q.match(/Chrome\/(\d+)/))&&(S=+v[1]);var ne=S,re=h,oe=!!Object.getOwnPropertySymbols&&!re((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ne&&ne<41})),ie=oe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,se=V,ce=z,he=$,le=ie,ue=s.Object,de=le?function(e){return"symbol"==typeof e}:function(e){var t=se("Symbol");return ce(t)&&he(t.prototype,ue(e))},fe=s.String,me=z,ge=function(e){try{return fe(e)}catch(e){return"Object"}},be=s.TypeError,ye=function(e){if(me(e))return e;throw be(ge(e)+" is not a function")},pe=m,ve=z,Se=K,we=s.TypeError,Ae={exports:{}},He=s,Te=Object.defineProperty,Ce=function(e,t){try{Te(He,e,{value:t,configurable:!0,writable:!0})}catch(a){He[e]=t}return t},Ie=Ce,Re="__core-js_shared__",Oe=s[Re]||Ie(Re,{}),Me=Oe;(Ae.exports=function(e,t){return Me[e]||(Me[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Ee=x,De=s.Object,Pe=function(e){return De(Ee(e))},Be=R({}.hasOwnProperty),ke=Object.hasOwn||function(e,t){return Be(Pe(e),t)},Fe=R,Ne=0,Le=Math.random(),je=Fe(1..toString),xe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+je(++Ne+Le,36)},Ge=s,Ye=Ae.exports,_e=ke,ze=xe,Ue=oe,Ke=ie,Je=Ye("wks"),Ze=Ge.Symbol,We=Ze&&Ze.for,Ve=Ke?Ze:Ze&&Ze.withoutSetter||ze,$e=function(e){if(!_e(Je,e)||!Ue&&"string"!=typeof Je[e]){var t="Symbol."+e;Ue&&_e(Ze,e)?Je[e]=Ze[e]:Je[e]=Ke&&We?We(t):Ve(t)}return Je[e]},qe=m,Qe=K,Xe=de,et=function(e,t){var a=e[t];return null==a?void 0:ye(a)},tt=function(e,t){var a,n;if("string"===t&&ve(a=e.toString)&&!Se(n=pe(a,e)))return n;if(ve(a=e.valueOf)&&!Se(n=pe(a,e)))return n;if("string"!==t&&ve(a=e.toString)&&!Se(n=pe(a,e)))return n;throw we("Can't convert object to primitive value")},at=$e,nt=s.TypeError,rt=at("toPrimitive"),ot=function(e,t){if(!Qe(e)||Xe(e))return e;var a,n=et(e,rt);if(n){if(void 0===t&&(t="default"),a=qe(n,e,t),!Qe(a)||Xe(a))return a;throw nt("Can't convert object to primitive value")}return void 0===t&&(t="number"),tt(e,t)},it=de,st=function(e){var t=ot(e,"string");return it(t)?t:t+""},ct=K,ht=s.document,lt=ct(ht)&&ct(ht.createElement),ut=function(e){return lt?ht.createElement(e):{}},dt=ut,ft=!l&&!h((function(){return 7!=Object.defineProperty(dt("div"),"a",{get:function(){return 7}}).a})),mt=l,gt=m,bt=g,yt=w,pt=_,vt=st,St=ke,wt=ft,At=Object.getOwnPropertyDescriptor;c.f=mt?At:function(e,t){if(e=pt(e),t=vt(t),wt)try{return At(e,t)}catch(e){}if(St(e,t))return yt(!gt(bt.f,e,t),e[t])};var Ht={},Tt=l&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=s,It=K,Rt=Ct.String,Ot=Ct.TypeError,Mt=function(e){if(It(e))return e;throw Ot(Rt(e)+" is not an object")},Et=l,Dt=ft,Pt=Tt,Bt=Mt,kt=st,Ft=s.TypeError,Nt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,jt="enumerable",xt="configurable",Gt="writable";Ht.f=Et?Pt?function(e,t,a){if(Bt(e),t=kt(t),Bt(a),"function"==typeof e&&"prototype"===t&&"value"in a&&Gt in a&&!a.writable){var n=Lt(e,t);n&&n.writable&&(e[t]=a.value,a={configurable:xt in a?a.configurable:n.configurable,enumerable:jt in a?a.enumerable:n.enumerable,writable:!1})}return Nt(e,t,a)}:Nt:function(e,t,a){if(Bt(e),t=kt(t),Bt(a),Dt)try{return Nt(e,t,a)}catch(e){}if("get"in a||"set"in a)throw Ft("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var Yt=Ht,_t=w,zt=l?function(e,t,a){return Yt.f(e,t,_t(1,a))}:function(e,t,a){return e[t]=a,e},Ut={exports:{}},Kt=z,Jt=Oe,Zt=R(Function.toString);Kt(Jt.inspectSource)||(Jt.inspectSource=function(e){return Zt(e)});var Wt,Vt,$t,qt=Jt.inspectSource,Qt=z,Xt=qt,ea=s.WeakMap,ta=Qt(ea)&&/native code/.test(Xt(ea)),aa=Ae.exports,na=xe,ra=aa("keys"),oa=function(e){return ra[e]||(ra[e]=na(e))},ia={},sa=ta,ca=s,ha=R,la=K,ua=zt,da=ke,fa=Oe,ma=oa,ga=ia,ba="Object already initialized",ya=ca.TypeError,pa=ca.WeakMap;if(sa||fa.state){var va=fa.state||(fa.state=new pa),Sa=ha(va.get),wa=ha(va.has),Aa=ha(va.set);Wt=function(e,t){if(wa(va,e))throw new ya(ba);return t.facade=e,Aa(va,e,t),t},Vt=function(e){return Sa(va,e)||{}},$t=function(e){return wa(va,e)}}else{var Ha=ma("state");ga[Ha]=!0,Wt=function(e,t){if(da(e,Ha))throw new ya(ba);return t.facade=e,ua(e,Ha,t),t},Vt=function(e){return da(e,Ha)?e[Ha]:{}},$t=function(e){return da(e,Ha)}}var Ta={set:Wt,get:Vt,has:$t,enforce:function(e){return $t(e)?Vt(e):Wt(e,{})},getterFor:function(e){return function(t){var a;if(!la(t)||(a=Vt(t)).type!==e)throw ya("Incompatible receiver, "+e+" required");return a}}},Ca=l,Ia=ke,Ra=Function.prototype,Oa=Ca&&Object.getOwnPropertyDescriptor,Ma=Ia(Ra,"name"),Ea=Ma&&"something"===function(){}.name,Da=Ma&&(!Ca||Ca&&Oa(Ra,"name").configurable),Pa=s,Ba=z,ka=ke,Fa=zt,Na=Ce,La=qt,ja={EXISTS:Ma,PROPER:Ea,CONFIGURABLE:Da}.CONFIGURABLE,xa=Ta.get,Ga=Ta.enforce,Ya=String(String).split("String");(Ut.exports=function(e,t,a,n){var r,o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:t;Ba(a)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ka(a,"name")||ja&&a.name!==c)&&Fa(a,"name",c),(r=Ga(a)).source||(r.source=Ya.join("string"==typeof c?c:""))),e!==Pa?(o?!s&&e[t]&&(i=!0):delete e[t],i?e[t]=a:Fa(e,t,a)):i?e[t]=a:Na(t,a)})(Function.prototype,"toString",(function(){return Ba(this)&&xa(this).source||La(this)}));var _a={},za=Math.ceil,Ua=Math.floor,Ka=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ua:za)(t)},Ja=Ka,Za=Math.max,Wa=Math.min,Va=Ka,$a=Math.min,qa=function(e){return e>0?$a(Va(e),9007199254740991):0},Qa=_,Xa=function(e,t){var a=Ja(e);return a<0?Za(a+t,0):Wa(a,t)},en=function(e){return qa(e.length)},tn=function(e){return function(t,a,n){var r,o=Qa(t),i=en(o),s=Xa(n,i);if(e&&a!=a){for(;i>s;)if((r=o[s++])!=r)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===a)return e||s||0;return!e&&-1}},an={includes:tn(!0),indexOf:tn(!1)},nn=ke,rn=_,on=an.indexOf,sn=ia,cn=R([].push),hn=function(e,t){var a,n=rn(e),r=0,o=[];for(a in n)!nn(sn,a)&&nn(n,a)&&cn(o,a);for(;t.length>r;)nn(n,a=t[r++])&&(~on(o,a)||cn(o,a));return o},ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],un=hn,dn=ln.concat("length","prototype");_a.f=Object.getOwnPropertyNames||function(e){return un(e,dn)};var fn={};fn.f=Object.getOwnPropertySymbols;var mn=V,gn=_a,bn=fn,yn=Mt,pn=R([].concat),vn=mn("Reflect","ownKeys")||function(e){var t=gn.f(yn(e)),a=bn.f;return a?pn(t,a(e)):t},Sn=ke,wn=vn,An=c,Hn=Ht,Tn=h,Cn=z,In=/#|\.prototype\./,Rn=function(e,t){var a=Mn[On(e)];return a==Dn||a!=En&&(Cn(t)?Tn(t):!!t)},On=Rn.normalize=function(e){return String(e).replace(In,".").toLowerCase()},Mn=Rn.data={},En=Rn.NATIVE="N",Dn=Rn.POLYFILL="P",Pn=Rn,Bn=s,kn=c.f,Fn=zt,Nn=Ut.exports,Ln=Ce,jn=function(e,t,a){for(var n=wn(t),r=Hn.f,o=An.f,i=0;i<n.length;i++){var s=n[i];Sn(e,s)||a&&Sn(a,s)||r(e,s,o(t,s))}},xn=Pn,Gn={};Gn[$e("toStringTag")]="z";var Yn=s,_n="[object z]"===String(Gn),zn=z,Un=D,Kn=$e("toStringTag"),Jn=Yn.Object,Zn="Arguments"==Un(function(){return arguments}()),Wn=_n?Un:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(t=Jn(e),Kn))?a:Zn?Un(t):"Object"==(n=Un(t))&&zn(t.callee)?"Arguments":n},Vn=s.String,$n=Mt,qn=h,Qn=s.RegExp,Xn=qn((function(){var e=Qn("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),er=Xn||qn((function(){return!Qn("a","y").sticky})),tr={BROKEN_CARET:Xn||qn((function(){var e=Qn("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:er,UNSUPPORTED_Y:Xn},ar={},nr=hn,rr=ln,or=Object.keys||function(e){return nr(e,rr)},ir=l,sr=Tt,cr=Ht,hr=Mt,lr=_,ur=or;ar.f=ir&&!sr?Object.defineProperties:function(e,t){hr(e);for(var a,n=lr(t),r=ur(t),o=r.length,i=0;o>i;)cr.f(e,a=r[i++],n[a]);return e};var dr,fr=V("document","documentElement"),mr=Mt,gr=ar,br=ln,yr=ia,pr=fr,vr=ut,Sr=oa("IE_PROTO"),wr=function(){},Ar=function(e){return"<script>"+e+"</"+"script>"},Hr=function(e){e.write(Ar("")),e.close();var t=e.parentWindow.Object;return e=null,t},Tr=function(){try{dr=new ActiveXObject("htmlfile")}catch(e){}var e,t;Tr="undefined"!=typeof document?document.domain&&dr?Hr(dr):((t=vr("iframe")).style.display="none",pr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ar("document.F=Object")),e.close(),e.F):Hr(dr);for(var a=br.length;a--;)delete Tr.prototype[br[a]];return Tr()};yr[Sr]=!0;var Cr,Ir,Rr=Object.create||function(e,t){var a;return null!==e?(wr.prototype=mr(e),a=new wr,wr.prototype=null,a[Sr]=e):a=Tr(),void 0===t?a:gr.f(a,t)},Or=h,Mr=s.RegExp,Er=Or((function(){var e=Mr(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Dr=h,Pr=s.RegExp,Br=Dr((function(){var e=Pr("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),kr=m,Fr=R,Nr=function(e){if("Symbol"===Wn(e))throw TypeError("Cannot convert a Symbol value to a string");return Vn(e)},Lr=function(){var e=$n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},jr=tr,xr=Ae.exports,Gr=Rr,Yr=Ta.get,_r=Er,zr=Br,Ur=xr("native-string-replace",String.prototype.replace),Kr=RegExp.prototype.exec,Jr=Kr,Zr=Fr("".charAt),Wr=Fr("".indexOf),Vr=Fr("".replace),$r=Fr("".slice),qr=(Ir=/b*/g,kr(Kr,Cr=/a/,"a"),kr(Kr,Ir,"a"),0!==Cr.lastIndex||0!==Ir.lastIndex),Qr=jr.BROKEN_CARET,Xr=void 0!==/()??/.exec("")[1];(qr||Xr||Qr||_r||zr)&&(Jr=function(e){var t,a,n,r,o,i,s,c=this,h=Yr(c),l=Nr(e),u=h.raw;if(u)return u.lastIndex=c.lastIndex,t=kr(Jr,u,l),c.lastIndex=u.lastIndex,t;var d=h.groups,f=Qr&&c.sticky,m=kr(Lr,c),g=c.source,b=0,y=l;if(f&&(m=Vr(m,"y",""),-1===Wr(m,"g")&&(m+="g"),y=$r(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Zr(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,b++),a=new RegExp("^(?:"+g+")",m)),Xr&&(a=new RegExp("^"+g+"$(?!\\s)",m)),qr&&(n=c.lastIndex),r=kr(Kr,f?a:c,y),f?r?(r.input=$r(r.input,b),r[0]=$r(r[0],b),r.index=c.lastIndex,c.lastIndex+=r[0].length):c.lastIndex=0:qr&&r&&(c.lastIndex=c.global?r.index+r[0].length:n),Xr&&r&&r.length>1&&kr(Ur,r[0],a,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&d)for(r.groups=i=Gr(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=r[s[1]];return r});(function(e,t){var a,n,r,o,i,s=e.target,c=e.global,h=e.stat;if(a=c?Bn:h?Bn[s]||Ln(s,{}):(Bn[s]||{}).prototype)for(n in t){if(o=t[n],r=e.noTargetGet?(i=kn(a,n))&&i.value:a[n],!xn(c?n:s+(h?".":"#")+n,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;jn(o,r)}(e.sham||r&&r.sham)&&Fn(o,"sham",!0),Nn(a,n,o,e)}})({target:"RegExp",proto:!0,forced:/./.exec!==Jr},{exec:Jr});var eo={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","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","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 before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","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","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","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","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","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. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. 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. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. 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","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function to(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function ao(e){return e<10?"0"+e:String(e)}function no(e){return e<0?"-00"+no(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function ro(e){return no(e.getFullYear())+"-"+ao(e.getMonth()+1)+"-"+ao(e.getDate())}function oo(e){const a=e.getDesc();if("Fast begins"===a||"Fast ends"===a)return["zmanim","fast"];switch(e.getFlags()){case t.flags.OMER_COUNT:return["omer"];case t.flags.HEBREW_DATE:return["hebdate"];case t.flags.PARSHA_HASHAVUA:return["parashat"];case t.flags.DAF_YOMI:return["dafyomi"];case t.flags.ROSH_CHODESH:return["roshchodesh"];case t.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case t.flags.MINOR_FAST:return["holiday","fast"];case t.flags.MAJOR_FAST:return["holiday","fast","major"];case t.flags.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case t.flags.MOLAD:return["molad"];case t.flags.USER_EVENT:return["user"];case t.flags.MINOR_HOLIDAY:return["holiday","minor"];case t.flags.MISHNA_YOMI:return["mishnayomi"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(a){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];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"];case"Erev Tish'a B'Av":return["holiday","fast","major"];default:return["holiday","major"]}}function io(e,t){let a="Hebcal";const n=t.location;if(t.yahrzeit)a+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");a+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?a+=" Israel":a+=" Diaspora";if("1"==t.subscribe)return a;if(t.isHebrewYear||0==e.length)a+=" "+t.year;else{const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())a+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){a+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else a+=" "+t.getFullYear()}return a}function so(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=eo[e.getDesc()]||eo[e.basename()]||"";if(t&&a){const e=a.indexOf(".");if(-1!=e)return a.substring(0,e)}return a}const co=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function ho(e,a){const n=e.getFlags();if(n&co)return"";const o=n&t.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,a):r.getLeyningForHoliday(e,a);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 lo(e,t,a,n,r){"https://www.hebcal.com"!==e.substring(0,22)?a="hebcal.com":t&&-1===e.indexOf("?")&&(e+="?i=on");const o=-1===e.indexOf("?")?"?":"&";return e+o+"utm_source=".concat(a,"&utm_medium=").concat(n)+(r?"&utm_campaign=".concat(r):"")}function uo(e){if(void 0!==e.eventTime)return!0;const a=e.getFlags();if(a&t.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(a&t.flags.DAF_YOMI)}const fo='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',mo={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function go(e,a){const n=e.getDate().greg(),r=n.getDate(),o=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=a.euro?'"'.concat(r,"/").concat(o,"/").concat(i,'"'):'"'.concat(o,"/").concat(r,"/").concat(i,'"');let c="",h="",l="",u='"true"';const d=Boolean(e.eventTime);let f=uo(e)?e.renderBrief(a.locale):e.render(a.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",a);h=c='"'.concat(n,'"'),l=s,u='"false"'}let m="Jewish Holidays";const g=e.getFlags();if(d&&a.location&&a.location.name){const e=a.location.name,t=e.indexOf(",");m=-1===t?e:e.substring(0,t)}else if(g&t.flags.DAF_YOMI){const e=f.indexOf(": ");-1!=e&&(m=f.substring(0,e),f=f.substring(e+2))}else{const t=mo[oo(e)[0]];t&&(m=t)}if(f=f.replace(/,/g,"").replace(/"/g,"''"),a.appendHebrewToSubject){const t=e.renderBrief("he");t&&(f+=" / ".concat(t))}let b=e.memo||so(e,!0);b||void 0===e.linkedEvent||(b=e.linkedEvent.render(a.locale));const y=b.replace(/,/g,";").replace(/"/g,"''"),p=d||g&t.flags.CHAG?4:3;return'"'.concat(f,'",').concat(s,",").concat(c,",").concat(l,",").concat(h,",").concat(u,',"').concat(y,'","').concat(p,'","').concat(m,'"')}var bo={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 yo(e,a){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),c="object"==typeof a.location?a.location.getTzid():"UTC",h=o?t.Zmanim.formatISOWithTimeZone(c,e.eventTime):ro(s),l=oo(e),u=e.getFlags();let d=uo(e)?e.renderBrief(a.locale):e.render(a.locale);const f=e.getDesc(),m="Havdalah"===f||"Candle lighting"===f;if(m){d+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a)}const g={title:d,date:h,category:l[0]};l.length>1&&(g.subcat=l[1]),"holiday"===l[0]&&u&t.flags.CHAG&&(g.yomtov=!0),d!=f&&(g.title_orig=f);const b=e.renderBrief("he");if(b&&(g.hebrew=t.Locale.hebrewStripNikkud(b)),!m){if(n){const n=a.il,o=u===t.flags.PARSHA_HASHAVUA,s=o?r.getLeyningForParshaHaShavua(e,n):r.getLeyningForHoliday(e,n);if(s){g.leyning=vo(s);const t=i.getFullYear();if(o&&!n&&t>=5745&&t<=5830){const t=r.getTriennialForParshaHaShavua(e);t&&(g.leyning.triennial=po({},t))}}}const o=e.url();if(o){const e=a.utmSource||"js",t=a.utmMedium||"api",n=a.utmCampaign;g.link=lo(o,a.il,e,t,n)}}const y=e.memo||eo[e.basename()];return y?g.memo=y:void 0!==e.linkedEvent&&(g.memo=e.linkedEvent.render(a.locale)),g}function po(e,t){return Object.keys(t).forEach((a=>{const n=t[a];if(void 0!==n){e["M"==a?"maftir":a]=r.formatAliyahWithBook(n)}})),e}function vo(e){const t={};return e.summary&&(t.torah=e.summary),e.haftara&&(t.haftarah=e.haftara),e.sephardic&&(t.haftarah_sephardic=e.sephardic),e.fullkriyah&&po(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach((a=>{if(e.reason[a]){t["M"==a?"maftir":a]+=" | "+e.reason[a]}})),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const So={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function wo(e,t){t.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const a=t.location,n=t.mainUrl,r=t.buildDate=t.buildDate||new Date,o=r.getFullYear(),i=t.lastBuildDate=r.toUTCString(),s=t.title||io(e,t),c=t.description||s,h=t.utmSource||"shabbat1c",l=t.utmMedium||"rss",u=lo(n,a&&a.getIsrael(),h,l,t.utmCampaign).replace(/&/g,"&amp;"),d=t.selfUrl.replace(/&/g,"&amp;"),f=t.lang||So[t.locale]||t.locale||"en-US";let m='<?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(d,'" rel="self" type="application/rss+xml" />\n<description>').concat(c,"</description>\n<language>").concat(f,"</language>\n<copyright>Copyright (c) ").concat(o," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(i,"</lastBuildDate>\n");return e.forEach((e=>{m+=Ao(e,t)})),m+="</channel>\n</rss>\n",m}function Ao(e,t){return Ho(e,t.evPubDate,t.lastBuildDate,t.dayFormat,t.location,t.mainUrl,t)}function Ho(e,a,n,r,o,i,s){let c=e.render();const h=e.getDate().greg(),l=function(e,t,a,n){if(t){const t=e.eventTime;return t?t.toUTCString():a.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,a,h,n),u=!!o&&o.getIsrael(),d=function(e,a,n,r,o,i){let s,c;const h=e.eventTime||e.getDate().greg(),l=t.Zmanim.formatISOWithTimeZone(n,h),u=l.substring(0,l.indexOf("T")),d=u.replace(/-/g,""),f=to(e.getDesc()),m="".concat(d,"-").concat(f),g=e.url();if(g)s=lo(g,a,o,i).replace(/&/g,"&amp;"),c="".concat(g,"#").concat(m);else{const e="".concat(r,"&dt=").concat(u),t=lo(e,a,o,i).replace(/&/g,"&amp;");c=e.replace(/&/g,"&amp;")+"#".concat(m),s="".concat(t,"#").concat(m)}return[s,c]}(e,u,o?o.getTzid():"UTC",i,s&&s.utmSource||"shabbat1c",s&&s.utmMedium||"rss"),f=d[0],m=d[1],g=oo(e)[0],b=e.getDesc();let y;if("Havdalah"===b||"Candle lighting"===b){const a=c.indexOf(": ");if(-1!=a){const n={location:o,il:u,locale:t.Locale.getLocaleName()},r=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);c=c.substring(0,a)+": "+r}}else y=e.getFlags()&t.flags.PARSHA_HASHAVUA?ho(e,u):e.memo||eo[e.basename()];const p=y||r.format(h),v="candles"==g?"<geo:lat>".concat(o.getLatitude(),"</geo:lat>\n<geo:long>").concat(o.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(c,"</title>\n<link>").concat(f,'</link>\n<guid isPermaLink="false">').concat(m,"</guid>\n<description>").concat(p,"</description>\n<category>").concat(g,"</category>\n<pubDate>").concat(l,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=lo,e.countryNames=bo,e.eventToClassicApiObject=yo,e.eventToCsv=go,e.eventToFullCalendar=function(e,a,n){const r=oo(e),o=e.getFlags();"holiday"==r[0]&&o&t.flags.CHAG&&r.push("yomtov");const i=Boolean(e.eventTime),s={title:uo(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(a,e.eventTime):ro(e.getDate().greg()),allDay:!i,className:r.join(" ")},c=e.renderBrief("he");c&&(s.hebrew=t.Locale.hebrewStripNikkud(c));const h=e.url();h&&(s.url=lo(h,n,"js","fc"));const l=e.getDesc();if(!("Havdalah"===l||"Candle lighting"===l)){const a=o&t.flags.PARSHA_HASHAVUA?ho(e,n):e.memo||eo[e.basename()];a?s.description=a:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem=Ho,e.eventToRssItem2=Ao,e.eventsToClassicApi=function(e,t){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:io(e,t),date:(new Date).toISOString()},r=t.location;return"object"==typeof r&&"string"==typeof r.name?(n.location={title:r.getName(),city:r.getShortName(),tzid:r.getTzid(),latitude:r.getLatitude(),longitude:r.getLongitude(),cc:r.getCountryCode(),country:bo[r.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach((e=>{r[e]&&(n.location[e]=r[e])}))):n.location={geo:"none"},n.items=e.map((e=>yo(e,t,a))),n},e.eventsToCsv=function(e,t){return[fo].concat(e.map((e=>go(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,a,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const s=a.getName(),c={location:a,mainUrl:n,selfUrl:r,lang:o,evPubDate:i,title:t.Locale.gettext("Shabbat")+" Times for ".concat(s),description:"Weekly Shabbat candle lighting times for ".concat(s),utmSource:"shabbat1c",utmMedium:"rss"};return wo(e,c)},e.eventsToRss2=wo,e.getCalendarTitle=io,e.getDownloadFilename=function(e){let t="hebcal_"+e.year;if(e.isHebrewYear&&(t+="h"),e.month&&(t+="_"+e.month),e.location){t+="_"+to(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[-]/g,"_")}return t},e.getEventCategories=oo,e.getHolidayDescription=so,e.holidayDescription=eo,e.makeAnchor=to,e.makeTorahMemoText=ho,e.pad2=ao,e.pad4=no,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=uo,e.timeZoneOffsetStr=function(e,a){return t.Zmanim.timeZoneOffset(e,a)},e.toISOString=ro,e.toISOStringWithTimezone=function(e,a,n){const r=ro(e);return a?r+"T"+a+":00"+t.Zmanim.timeZoneOffset(n,e):r},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal);
1
+ /*! @hebcal/rest-api v3.13.0 */
2
+ var hebcal__rest_api=function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=n(hebcal__leyning),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},h=function(e){try{return!!e()}catch(e){return!0}},u=!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")})),f=l,d=Function.prototype.call,m=f?d.bind(d):function(){return d.apply(d,arguments)},g={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);g.f=b?function(e){var t=y(this,e);return!!t&&t.enumerable}:p;var v,S,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},A=l,R=Function.prototype,H=R.bind,T=R.call,P=A&&H.bind(T,T),C=A?function(e){return e&&P(e)}:function(e){return e&&function(){return T.apply(e,arguments)}},I=C,O=I({}.toString),k=I("".slice),E=function(e){return k(O(e),8,-1)},L=C,M=h,B=E,U=s.Object,x=L("".split),D=M((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==B(e)?x(e,""):U(e)}:U,F=s.TypeError,j=function(e){if(null==e)throw F("Can't call method on "+e);return e},N=D,G=j,_=function(e){return N(G(e))},z=function(e){return"function"==typeof e},Y=z,K=function(e){return"object"==typeof e?null!==e:Y(e)},J=s,W=z,q=function(e){return W(e)?e:void 0},V=function(e,t){return arguments.length<2?q(J[e]):J[e]&&J[e][t]},Z=C({}.isPrototypeOf),$=s,Q=V("navigator","userAgent")||"",X=$.process,ee=$.Deno,te=X&&X.versions||ee&&ee.version,re=te&&te.v8;re&&(S=(v=re.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!S&&Q&&(!(v=Q.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=Q.match(/Chrome\/(\d+)/))&&(S=+v[1]);var ne=S,ae=h,oe=!!Object.getOwnPropertySymbols&&!ae((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ne&&ne<41})),ie=oe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,se=V,ce=z,he=Z,ue=ie,le=s.Object,fe=ue?function(e){return"symbol"==typeof e}:function(e){var t=se("Symbol");return ce(t)&&he(t.prototype,le(e))},de=s.String,me=function(e){try{return de(e)}catch(e){return"Object"}},ge=z,pe=me,ye=s.TypeError,be=function(e){if(ge(e))return e;throw ye(pe(e)+" is not a function")},ve=be,Se=function(e,t){var r=e[t];return null==r?void 0:ve(r)},we=m,Ae=z,Re=K,He=s.TypeError,Te={exports:{}},Pe=s,Ce=Object.defineProperty,Ie=function(e,t){try{Ce(Pe,e,{value:t,configurable:!0,writable:!0})}catch(r){Pe[e]=t}return t},Oe=Ie,ke="__core-js_shared__",Ee=s[ke]||Oe(ke,{}),Le=Ee;(Te.exports=function(e,t){return Le[e]||(Le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Me=j,Be=s.Object,Ue=function(e){return Be(Me(e))},xe=Ue,De=C({}.hasOwnProperty),Fe=Object.hasOwn||function(e,t){return De(xe(e),t)},je=C,Ne=0,Ge=Math.random(),_e=je(1..toString),ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_e(++Ne+Ge,36)},Ye=s,Ke=Te.exports,Je=Fe,We=ze,qe=oe,Ve=ie,Ze=Ke("wks"),$e=Ye.Symbol,Qe=$e&&$e.for,Xe=Ve?$e:$e&&$e.withoutSetter||We,et=function(e){if(!Je(Ze,e)||!qe&&"string"!=typeof Ze[e]){var t="Symbol."+e;qe&&Je($e,e)?Ze[e]=$e[e]:Ze[e]=Ve&&Qe?Qe(t):Xe(t)}return Ze[e]},tt=m,rt=K,nt=fe,at=Se,ot=function(e,t){var r,n;if("string"===t&&Ae(r=e.toString)&&!Re(n=we(r,e)))return n;if(Ae(r=e.valueOf)&&!Re(n=we(r,e)))return n;if("string"!==t&&Ae(r=e.toString)&&!Re(n=we(r,e)))return n;throw He("Can't convert object to primitive value")},it=et,st=s.TypeError,ct=it("toPrimitive"),ht=function(e,t){if(!rt(e)||nt(e))return e;var r,n=at(e,ct);if(n){if(void 0===t&&(t="default"),r=tt(n,e,t),!rt(r)||nt(r))return r;throw st("Can't convert object to primitive value")}return void 0===t&&(t="number"),ot(e,t)},ut=fe,lt=function(e){var t=ht(e,"string");return ut(t)?t:t+""},ft=K,dt=s.document,mt=ft(dt)&&ft(dt.createElement),gt=function(e){return mt?dt.createElement(e):{}},pt=gt,yt=!u&&!h((function(){return 7!=Object.defineProperty(pt("div"),"a",{get:function(){return 7}}).a})),bt=u,vt=m,St=g,wt=w,At=_,Rt=lt,Ht=Fe,Tt=yt,Pt=Object.getOwnPropertyDescriptor;c.f=bt?Pt:function(e,t){if(e=At(e),t=Rt(t),Tt)try{return Pt(e,t)}catch(e){}if(Ht(e,t))return wt(!vt(St.f,e,t),e[t])};var Ct={},It=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ot=s,kt=K,Et=Ot.String,Lt=Ot.TypeError,Mt=function(e){if(kt(e))return e;throw Lt(Et(e)+" is not an object")},Bt=u,Ut=yt,xt=It,Dt=Mt,Ft=lt,jt=s.TypeError,Nt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,_t="enumerable",zt="configurable",Yt="writable";Ct.f=Bt?xt?function(e,t,r){if(Dt(e),t=Ft(t),Dt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Yt in r&&!r.writable){var n=Gt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:zt in r?r.configurable:n.configurable,enumerable:_t in r?r.enumerable:n.enumerable,writable:!1})}return Nt(e,t,r)}:Nt:function(e,t,r){if(Dt(e),t=Ft(t),Dt(r),Ut)try{return Nt(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=Ct,Jt=w,Wt=u?function(e,t,r){return Kt.f(e,t,Jt(1,r))}:function(e,t,r){return e[t]=r,e},qt={exports:{}},Vt=z,Zt=Ee,$t=C(Function.toString);Vt(Zt.inspectSource)||(Zt.inspectSource=function(e){return $t(e)});var Qt,Xt,er,tr=Zt.inspectSource,rr=z,nr=tr,ar=s.WeakMap,or=rr(ar)&&/native code/.test(nr(ar)),ir=Te.exports,sr=ze,cr=ir("keys"),hr=function(e){return cr[e]||(cr[e]=sr(e))},ur={},lr=or,fr=s,dr=C,mr=K,gr=Wt,pr=Fe,yr=Ee,br=hr,vr=ur,Sr="Object already initialized",wr=fr.TypeError,Ar=fr.WeakMap;if(lr||yr.state){var Rr=yr.state||(yr.state=new Ar),Hr=dr(Rr.get),Tr=dr(Rr.has),Pr=dr(Rr.set);Qt=function(e,t){if(Tr(Rr,e))throw new wr(Sr);return t.facade=e,Pr(Rr,e,t),t},Xt=function(e){return Hr(Rr,e)||{}},er=function(e){return Tr(Rr,e)}}else{var Cr=br("state");vr[Cr]=!0,Qt=function(e,t){if(pr(e,Cr))throw new wr(Sr);return t.facade=e,gr(e,Cr,t),t},Xt=function(e){return pr(e,Cr)?e[Cr]:{}},er=function(e){return pr(e,Cr)}}var Ir={set:Qt,get:Xt,has:er,enforce:function(e){return er(e)?Xt(e):Qt(e,{})},getterFor:function(e){return function(t){var r;if(!mr(t)||(r=Xt(t)).type!==e)throw wr("Incompatible receiver, "+e+" required");return r}}},Or=u,kr=Fe,Er=Function.prototype,Lr=Or&&Object.getOwnPropertyDescriptor,Mr=kr(Er,"name"),Br={EXISTS:Mr,PROPER:Mr&&"something"===function(){}.name,CONFIGURABLE:Mr&&(!Or||Or&&Lr(Er,"name").configurable)},Ur=s,xr=z,Dr=Fe,Fr=Wt,jr=Ie,Nr=tr,Gr=Br.CONFIGURABLE,_r=Ir.get,zr=Ir.enforce,Yr=String(String).split("String");(qt.exports=function(e,t,r,n){var a,o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:t;xr(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dr(r,"name")||Gr&&r.name!==c)&&Fr(r,"name",c),(a=zr(r)).source||(a.source=Yr.join("string"==typeof c?c:""))),e!==Ur?(o?!s&&e[t]&&(i=!0):delete e[t],i?e[t]=r:Fr(e,t,r)):i?e[t]=r:jr(t,r)})(Function.prototype,"toString",(function(){return xr(this)&&_r(this).source||Nr(this)}));var Kr={},Jr=Math.ceil,Wr=Math.floor,qr=function(e){var t=+e;return t!=t||0===t?0:(t>0?Wr:Jr)(t)},Vr=qr,Zr=Math.max,$r=Math.min,Qr=function(e,t){var r=Vr(e);return r<0?Zr(r+t,0):$r(r,t)},Xr=qr,en=Math.min,tn=function(e){return e>0?en(Xr(e),9007199254740991):0},rn=tn,nn=function(e){return rn(e.length)},an=_,on=Qr,sn=nn,cn=function(e){return function(t,r,n){var a,o=an(t),i=sn(o),s=on(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}},hn={includes:cn(!0),indexOf:cn(!1)},un=Fe,ln=_,fn=hn.indexOf,dn=ur,mn=C([].push),gn=function(e,t){var r,n=ln(e),a=0,o=[];for(r in n)!un(dn,r)&&un(n,r)&&mn(o,r);for(;t.length>a;)un(n,r=t[a++])&&(~fn(o,r)||mn(o,r));return o},pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yn=gn,bn=pn.concat("length","prototype");Kr.f=Object.getOwnPropertyNames||function(e){return yn(e,bn)};var vn={};vn.f=Object.getOwnPropertySymbols;var Sn=V,wn=Kr,An=vn,Rn=Mt,Hn=C([].concat),Tn=Sn("Reflect","ownKeys")||function(e){var t=wn.f(Rn(e)),r=An.f;return r?Hn(t,r(e)):t},Pn=Fe,Cn=Tn,In=c,On=Ct,kn=h,En=z,Ln=/#|\.prototype\./,Mn=function(e,t){var r=Un[Bn(e)];return r==Dn||r!=xn&&(En(t)?kn(t):!!t)},Bn=Mn.normalize=function(e){return String(e).replace(Ln,".").toLowerCase()},Un=Mn.data={},xn=Mn.NATIVE="N",Dn=Mn.POLYFILL="P",Fn=Mn,jn=s,Nn=c.f,Gn=Wt,_n=qt.exports,zn=Ie,Yn=function(e,t,r){for(var n=Cn(t),a=On.f,o=In.f,i=0;i<n.length;i++){var s=n[i];Pn(e,s)||r&&Pn(r,s)||a(e,s,o(t,s))}},Kn=Fn,Jn=function(e,t){var r,n,a,o,i,s=e.target,c=e.global,h=e.stat;if(r=c?jn:h?jn[s]||zn(s,{}):(jn[s]||{}).prototype)for(n in t){if(o=t[n],a=e.noTargetGet?(i=Nn(r,n))&&i.value:r[n],!Kn(c?n:s+(h?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Yn(o,a)}(e.sham||a&&a.sham)&&Gn(o,"sham",!0),_n(r,n,o,e)}},Wn={};Wn[et("toStringTag")]="z";var qn=s,Vn="[object z]"===String(Wn),Zn=z,$n=E,Qn=et("toStringTag"),Xn=qn.Object,ea="Arguments"==$n(function(){return arguments}()),ta=Vn?$n: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=Xn(e),Qn))?r:ea?$n(t):"Object"==(n=$n(t))&&Zn(t.callee)?"Arguments":n},ra=ta,na=s.String,aa=function(e){if("Symbol"===ra(e))throw TypeError("Cannot convert a Symbol value to a string");return na(e)},oa=Mt,ia=function(){var e=oa(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},sa=h,ca=s.RegExp,ha=sa((function(){var e=ca("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ua=ha||sa((function(){return!ca("a","y").sticky})),la={BROKEN_CARET:ha||sa((function(){var e=ca("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ua,UNSUPPORTED_Y:ha},fa={},da=gn,ma=pn,ga=Object.keys||function(e){return da(e,ma)},pa=u,ya=It,ba=Ct,va=Mt,Sa=_,wa=ga;fa.f=pa&&!ya?Object.defineProperties:function(e,t){va(e);for(var r,n=Sa(t),a=wa(t),o=a.length,i=0;o>i;)ba.f(e,r=a[i++],n[r]);return e};var Aa,Ra=V("document","documentElement"),Ha=Mt,Ta=fa,Pa=pn,Ca=ur,Ia=Ra,Oa=gt,ka=hr("IE_PROTO"),Ea=function(){},La=function(e){return"<script>"+e+"</"+"script>"},Ma=function(e){e.write(La("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ba=function(){try{Aa=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ba="undefined"!=typeof document?document.domain&&Aa?Ma(Aa):((t=Oa("iframe")).style.display="none",Ia.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(La("document.F=Object")),e.close(),e.F):Ma(Aa);for(var r=Pa.length;r--;)delete Ba.prototype[Pa[r]];return Ba()};Ca[ka]=!0;var Ua,xa,Da=Object.create||function(e,t){var r;return null!==e?(Ea.prototype=Ha(e),r=new Ea,Ea.prototype=null,r[ka]=e):r=Ba(),void 0===t?r:Ta.f(r,t)},Fa=h,ja=s.RegExp,Na=Fa((function(){var e=ja(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ga=h,_a=s.RegExp,za=Ga((function(){var e=_a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ya=m,Ka=C,Ja=aa,Wa=ia,qa=la,Va=Te.exports,Za=Da,$a=Ir.get,Qa=Na,Xa=za,eo=Va("native-string-replace",String.prototype.replace),to=RegExp.prototype.exec,ro=to,no=Ka("".charAt),ao=Ka("".indexOf),oo=Ka("".replace),io=Ka("".slice),so=(xa=/b*/g,Ya(to,Ua=/a/,"a"),Ya(to,xa,"a"),0!==Ua.lastIndex||0!==xa.lastIndex),co=qa.BROKEN_CARET,ho=void 0!==/()??/.exec("")[1];(so||ho||co||Qa||Xa)&&(ro=function(e){var t,r,n,a,o,i,s,c=this,h=$a(c),u=Ja(e),l=h.raw;if(l)return l.lastIndex=c.lastIndex,t=Ya(ro,l,u),c.lastIndex=l.lastIndex,t;var f=h.groups,d=co&&c.sticky,m=Ya(Wa,c),g=c.source,p=0,y=u;if(d&&(m=oo(m,"y",""),-1===ao(m,"g")&&(m+="g"),y=io(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==no(u,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,p++),r=new RegExp("^(?:"+g+")",m)),ho&&(r=new RegExp("^"+g+"$(?!\\s)",m)),so&&(n=c.lastIndex),a=Ya(to,d?r:c,y),d?a?(a.input=io(a.input,p),a[0]=io(a[0],p),a.index=c.lastIndex,c.lastIndex+=a[0].length):c.lastIndex=0:so&&a&&(c.lastIndex=c.global?a.index+a[0].length:n),ho&&a&&a.length>1&&Ya(eo,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=Za(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});Jn({target:"RegExp",proto:!0,forced:/./.exec!==ro},{exec:ro});var uo=gt("span").classList,lo=uo&&uo.constructor&&uo.constructor.prototype,fo=lo===Object.prototype?void 0:lo,mo=Da,go=Ct,po=et("unscopables"),yo=Array.prototype;null==yo[po]&&go.f(yo,po,{configurable:!0,value:mo(null)});var bo,vo,So,wo={},Ao=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ro=s,Ho=Fe,To=z,Po=Ue,Co=Ao,Io=hr("IE_PROTO"),Oo=Ro.Object,ko=Oo.prototype,Eo=Co?Oo.getPrototypeOf:function(e){var t=Po(e);if(Ho(t,Io))return t[Io];var r=t.constructor;return To(r)&&t instanceof r?r.prototype:t instanceof Oo?ko:null},Lo=h,Mo=z,Bo=Eo,Uo=qt.exports,xo=et("iterator"),Do=!1;[].keys&&("next"in(So=[].keys())?(vo=Bo(Bo(So)))!==Object.prototype&&(bo=vo):Do=!0);var Fo=null==bo||Lo((function(){var e={};return bo[xo].call(e)!==e}));Fo&&(bo={}),Mo(bo[xo])||Uo(bo,xo,(function(){return this}));var jo={IteratorPrototype:bo,BUGGY_SAFARI_ITERATORS:Do},No=Ct.f,Go=Fe,_o=et("toStringTag"),zo=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Go(e,_o)&&No(e,_o,{configurable:!0,value:t})},Yo=jo.IteratorPrototype,Ko=Da,Jo=w,Wo=zo,qo=wo,Vo=function(){return this},Zo=function(e,t,r,n){var a=t+" Iterator";return e.prototype=Ko(Yo,{next:Jo(+!n,r)}),Wo(e,a,!1),qo[a]=Vo,e},$o=s,Qo=z,Xo=$o.String,ei=$o.TypeError,ti=C,ri=Mt,ni=function(e){if("object"==typeof e||Qo(e))return e;throw ei("Can't set "+Xo(e)+" as a prototype")},ai=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ti(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ri(r),ni(n),t?e(r,n):r.__proto__=n,r}}():void 0),oi=Jn,ii=m,si=Br,ci=z,hi=Zo,ui=Eo,li=ai,fi=zo,di=Wt,mi=qt.exports,gi=wo,pi=si.PROPER,yi=si.CONFIGURABLE,bi=jo.IteratorPrototype,vi=jo.BUGGY_SAFARI_ITERATORS,Si=et("iterator"),wi="keys",Ai="values",Ri="entries",Hi=function(){return this},Ti=function(e,t,r,n,a,o,i){hi(r,t,n);var s,c,h,u=function(e){if(e===a&&g)return g;if(!vi&&e in d)return d[e];switch(e){case wi:case Ai:case Ri:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,d=e.prototype,m=d[Si]||d["@@iterator"]||a&&d[a],g=!vi&&m||u(a),p="Array"==t&&d.entries||m;if(p&&(s=ui(p.call(new e)))!==Object.prototype&&s.next&&(ui(s)!==bi&&(li?li(s,bi):ci(s[Si])||mi(s,Si,Hi)),fi(s,l,!0)),pi&&a==Ai&&m&&m.name!==Ai&&(yi?di(d,"name",Ai):(f=!0,g=function(){return ii(m,this)})),a)if(c={values:u(Ai),keys:o?g:u(wi),entries:u(Ri)},i)for(h in c)(vi||f||!(h in d))&&mi(d,h,c[h]);else oi({target:t,proto:!0,forced:vi||f},c);return d[Si]!==g&&mi(d,Si,g,{name:a}),gi[t]=g,c},Pi=_,Ci=function(e){yo[po][e]=!0},Ii=wo,Oi=Ir,ki=Ct.f,Ei=Ti,Li=u,Mi="Array Iterator",Bi=Oi.set,Ui=Oi.getterFor(Mi),xi=Ei(Array,"Array",(function(e,t){Bi(this,{type:Mi,target:Pi(e),index:0,kind:t})}),(function(){var e=Ui(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),Di=Ii.Arguments=Ii.Array;if(Ci("keys"),Ci("values"),Ci("entries"),Li&&"values"!==Di.name)try{ki(Di,"name",{value:"values"})}catch(e){}var Fi=s,ji={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},Ni=fo,Gi=xi,_i=Wt,zi=et,Yi=zi("iterator"),Ki=zi("toStringTag"),Ji=Gi.values,Wi=function(e,t){if(e){if(e[Yi]!==Ji)try{_i(e,Yi,Ji)}catch(t){e[Yi]=Ji}if(e[Ki]||_i(e,Ki,t),ji[t])for(var r in Gi)if(e[r]!==Gi[r])try{_i(e,r,Gi[r])}catch(t){e[r]=Gi[r]}}};for(var qi in ji)Wi(Fi[qi]&&Fi[qi].prototype,qi);Wi(Ni,"DOMTokenList");var Vi=C,Zi=qr,$i=aa,Qi=j,Xi=Vi("".charAt),es=Vi("".charCodeAt),ts=Vi("".slice),rs=function(e){return function(t,r){var n,a,o=$i(Qi(t)),i=Zi(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=es(o,i))<55296||n>56319||i+1===s||(a=es(o,i+1))<56320||a>57343?e?Xi(o,i):n:e?ts(o,i,i+2):a-56320+(n-55296<<10)+65536}},ns={codeAt:rs(!1),charAt:rs(!0)},as=ns.charAt,os=aa,is=Ir,ss=Ti,cs="String Iterator",hs=is.set,us=is.getterFor(cs);ss(String,"String",(function(e){hs(this,{type:cs,string:os(e),index:0})}),(function(){var e,t=us(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=as(r,n),t.index+=e.length,{value:e,done:!1})}));var ls=h,fs=et("iterator"),ds=!ls((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.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[fs]||"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})),ms=be,gs=l,ps=C(C.bind),ys=function(e,t){return ms(e),void 0===t?e:gs?ps(e,t):function(){return e.apply(t,arguments)}},bs=Z,vs=s.TypeError,Ss=function(e,t){if(bs(t,e))return e;throw vs("Incorrect invocation")},ws=u,As=C,Rs=m,Hs=h,Ts=ga,Ps=vn,Cs=g,Is=Ue,Os=D,ks=Object.assign,Es=Object.defineProperty,Ls=As([].concat),Ms=!ks||Hs((function(){if(ws&&1!==ks({b:1},ks(Es({},"a",{enumerable:!0,get:function(){Es(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!=ks({},e)[r]||Ts(ks({},t)).join("")!=n}))?function(e,t){for(var r=Is(e),n=arguments.length,a=1,o=Ps.f,i=Cs.f;n>a;)for(var s,c=Os(arguments[a++]),h=o?Ls(Ts(c),o(c)):Ts(c),u=h.length,l=0;u>l;)s=h[l++],ws&&!Rs(i,c,s)||(r[s]=c[s]);return r}:ks,Bs=m,Us=Mt,xs=Se,Ds=Mt,Fs=function(e,t,r){var n,a;Us(e);try{if(!(n=xs(e,"return"))){if("throw"===t)throw r;return r}n=Bs(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return Us(n),r},js=wo,Ns=et("iterator"),Gs=Array.prototype,_s=C,zs=h,Ys=z,Ks=ta,Js=tr,Ws=function(){},qs=[],Vs=V("Reflect","construct"),Zs=/^\s*(?:class|function)\b/,$s=_s(Zs.exec),Qs=!Zs.exec(Ws),Xs=function(e){if(!Ys(e))return!1;try{return Vs(Ws,qs,e),!0}catch(e){return!1}},ec=function(e){if(!Ys(e))return!1;switch(Ks(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qs||!!$s(Zs,Js(e))}catch(e){return!0}};ec.sham=!0;var tc=!Vs||zs((function(){var e;return Xs(Xs.call)||!Xs(Object)||!Xs((function(){e=!0}))||e}))?ec:Xs,rc=lt,nc=Ct,ac=w,oc=function(e,t,r){var n=rc(t);n in e?nc.f(e,n,ac(0,r)):e[n]=r},ic=ta,sc=Se,cc=wo,hc=et("iterator"),uc=function(e){if(null!=e)return sc(e,hc)||sc(e,"@@iterator")||cc[ic(e)]},lc=m,fc=be,dc=Mt,mc=me,gc=uc,pc=s.TypeError,yc=function(e,t){var r=arguments.length<2?gc(e):t;if(fc(r))return dc(lc(r,e));throw pc(mc(e)+" is not iterable")},bc=ys,vc=m,Sc=Ue,wc=function(e,t,r,n){try{return n?t(Ds(r)[0],r[1]):t(r)}catch(t){Fs(e,"throw",t)}},Ac=function(e){return void 0!==e&&(js.Array===e||Gs[Ns]===e)},Rc=tc,Hc=nn,Tc=oc,Pc=yc,Cc=uc,Ic=s.Array,Oc=Qr,kc=nn,Ec=oc,Lc=s.Array,Mc=Math.max,Bc=function(e,t,r){for(var n=kc(e),a=Oc(t,n),o=Oc(void 0===r?n:r,n),i=Lc(Mc(o-a,0)),s=0;a<o;a++,s++)Ec(i,s,e[a]);return i.length=s,i},Uc=C,xc=2147483647,Dc=/[^\0-\u007E]/,Fc=/[.\u3002\uFF0E\uFF61]/g,jc="Overflow: input needs wider integers to process",Nc=s.RangeError,Gc=Uc(Fc.exec),_c=Math.floor,zc=String.fromCharCode,Yc=Uc("".charCodeAt),Kc=Uc([].join),Jc=Uc([].push),Wc=Uc("".replace),qc=Uc("".split),Vc=Uc("".toLowerCase),Zc=function(e){return e+22+75*(e<26)},$c=function(e,t,r){var n=0;for(e=r?_c(e/700):e>>1,e+=_c(e/t);e>455;)e=_c(e/35),n+=36;return _c(n+36*e/(e+38))},Qc=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=Yc(e,r++);if(a>=55296&&a<=56319&&r<n){var o=Yc(e,r++);56320==(64512&o)?Jc(t,((1023&a)<<10)+(1023&o)+65536):(Jc(t,a),r--)}else Jc(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&&Jc(t,zc(n));var c=t.length,h=c;for(c&&Jc(t,"-");h<a;){var u=xc;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var l=h+1;if(u-o>_c((xc-i)/l))throw Nc(jc);for(i+=(u-o)*l,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++i>xc)throw Nc(jc);if(n==o){for(var f=i,d=36;;){var m=d<=s?1:d>=s+26?26:d-s;if(f<m)break;var g=f-m,p=36-m;Jc(t,zc(Zc(m+g%p))),f=_c(g/p),d+=36}Jc(t,zc(Zc(f))),s=$c(i,l,h==c),i=0,h++}}i++,o++}return Kc(t,"")},Xc=s.TypeError,eh=function(e,t){if(e<t)throw Xc("Not enough arguments");return e},th=qt.exports,rh=Bc,nh=Math.floor,ah=function(e,t){var r=e.length,n=nh(r/2);return r<8?oh(e,t):ih(e,ah(rh(e,0,n),t),ah(rh(e,n),t),t)},oh=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},ih=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},sh=ah,ch=Jn,hh=s,uh=V,lh=m,fh=C,dh=ds,mh=qt.exports,gh=function(e,t,r){for(var n in t)th(e,n,t[n],r);return e},ph=zo,yh=Zo,bh=Ir,vh=Ss,Sh=z,wh=Fe,Ah=ys,Rh=ta,Hh=Mt,Th=K,Ph=aa,Ch=Da,Ih=w,Oh=yc,kh=uc,Eh=eh,Lh=sh,Mh=et("iterator"),Bh="URLSearchParams",Uh="URLSearchParamsIterator",xh=bh.set,Dh=bh.getterFor(Bh),Fh=bh.getterFor(Uh),jh=uh("fetch"),Nh=uh("Request"),Gh=uh("Headers"),_h=Nh&&Nh.prototype,zh=Gh&&Gh.prototype,Yh=hh.RegExp,Kh=hh.TypeError,Jh=hh.decodeURIComponent,Wh=hh.encodeURIComponent,qh=fh("".charAt),Vh=fh([].join),Zh=fh([].push),$h=fh("".replace),Qh=fh([].shift),Xh=fh([].splice),eu=fh("".split),tu=fh("".slice),ru=/\+/g,nu=Array(4),au=function(e){return nu[e-1]||(nu[e-1]=Yh("((?:%[\\da-f]{2}){"+e+"})","gi"))},ou=function(e){try{return Jh(e)}catch(t){return e}},iu=function(e){var t=$h(e,ru," "),r=4;try{return Jh(t)}catch(e){for(;r;)t=$h(t,au(r--),ou);return t}},su=/[!'()~]|%20/g,cu={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},hu=function(e){return cu[e]},uu=function(e){return $h(Wh(e),su,hu)},lu=yh((function(e,t){xh(this,{type:Uh,iterator:Oh(Dh(e).entries),kind:t})}),"Iterator",(function(){var e=Fh(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),fu=function(e){this.entries=[],this.url=null,void 0!==e&&(Th(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===qh(e,0)?tu(e,1):e:Ph(e)))};fu.prototype={type:Bh,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,o,i,s,c=kh(e);if(c)for(r=(t=Oh(e,c)).next;!(n=lh(r,t)).done;){if(o=(a=Oh(Hh(n.value))).next,(i=lh(o,a)).done||(s=lh(o,a)).done||!lh(o,a).done)throw Kh("Expected sequence with length 2");Zh(this.entries,{key:Ph(i.value),value:Ph(s.value)})}else for(var h in e)wh(e,h)&&Zh(this.entries,{key:h,value:Ph(e[h])})},parseQuery:function(e){if(e)for(var t,r,n=eu(e,"&"),a=0;a<n.length;)(t=n[a++]).length&&(r=eu(t,"="),Zh(this.entries,{key:iu(Qh(r)),value:iu(Vh(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Zh(r,uu(e.key)+"="+uu(e.value));return Vh(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var du=function(){vh(this,mu);var e=arguments.length>0?arguments[0]:void 0;xh(this,new fu(e))},mu=du.prototype;if(gh(mu,{append:function(e,t){Eh(arguments.length,2);var r=Dh(this);Zh(r.entries,{key:Ph(e),value:Ph(t)}),r.updateURL()},delete:function(e){Eh(arguments.length,1);for(var t=Dh(this),r=t.entries,n=Ph(e),a=0;a<r.length;)r[a].key===n?Xh(r,a,1):a++;t.updateURL()},get:function(e){Eh(arguments.length,1);for(var t=Dh(this).entries,r=Ph(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Eh(arguments.length,1);for(var t=Dh(this).entries,r=Ph(e),n=[],a=0;a<t.length;a++)t[a].key===r&&Zh(n,t[a].value);return n},has:function(e){Eh(arguments.length,1);for(var t=Dh(this).entries,r=Ph(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Eh(arguments.length,1);for(var r,n=Dh(this),a=n.entries,o=!1,i=Ph(e),s=Ph(t),c=0;c<a.length;c++)(r=a[c]).key===i&&(o?Xh(a,c--,1):(o=!0,r.value=s));o||Zh(a,{key:i,value:s}),n.updateURL()},sort:function(){var e=Dh(this);Lh(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Dh(this).entries,n=Ah(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 lu(this,"keys")},values:function(){return new lu(this,"values")},entries:function(){return new lu(this,"entries")}},{enumerable:!0}),mh(mu,Mh,mu.entries,{name:"entries"}),mh(mu,"toString",(function(){return Dh(this).serialize()}),{enumerable:!0}),ph(du,Bh),ch({global:!0,forced:!dh},{URLSearchParams:du}),!dh&&Sh(Gh)){var gu=fh(zh.has),pu=fh(zh.set),yu=function(e){if(Th(e)){var t,r=e.body;if(Rh(r)===Bh)return t=e.headers?new Gh(e.headers):new Gh,gu(t,"content-type")||pu(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ch(e,{body:Ih(0,Ph(r)),headers:Ih(0,t)})}return e};if(Sh(jh)&&ch({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return jh(e,arguments.length>1?yu(arguments[1]):{})}}),Sh(Nh)){var bu=function(e){return vh(this,_h),new Nh(e,arguments.length>1?yu(arguments[1]):{})};_h.constructor=bu,bu.prototype=_h,ch({global:!0,forced:!0},{Request:bu})}}var vu,Su={URLSearchParams:du,getState:Dh},wu=Jn,Au=u,Ru=ds,Hu=s,Tu=ys,Pu=C,Cu=fa.f,Iu=qt.exports,Ou=Ss,ku=Fe,Eu=Ms,Lu=function(e){var t=Sc(e),r=Rc(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=bc(a,n>2?arguments[2]:void 0));var i,s,c,h,u,l,f=Cc(t),d=0;if(!f||this==Ic&&Ac(f))for(i=Hc(t),s=r?new this(i):Ic(i);i>d;d++)l=o?a(t[d],d):t[d],Tc(s,d,l);else for(u=(h=Pc(t,f)).next,s=r?new this:[];!(c=vc(u,h)).done;d++)l=o?wc(h,a,[c.value,d],!0):c.value,Tc(s,d,l);return s.length=d,s},Mu=Bc,Bu=ns.codeAt,Uu=function(e){var t,r,n=[],a=qc(Wc(Vc(e),Fc,"."),".");for(t=0;t<a.length;t++)r=a[t],Jc(n,Gc(Dc,r)?"xn--"+Qc(r):r);return Kc(n,".")},xu=aa,Du=zo,Fu=eh,ju=Su,Nu=Ir,Gu=Nu.set,_u=Nu.getterFor("URL"),zu=ju.URLSearchParams,Yu=ju.getState,Ku=Hu.URL,Ju=Hu.TypeError,Wu=Hu.parseInt,qu=Math.floor,Vu=Math.pow,Zu=Pu("".charAt),$u=Pu(/./.exec),Qu=Pu([].join),Xu=Pu(1..toString),el=Pu([].pop),tl=Pu([].push),rl=Pu("".replace),nl=Pu([].shift),al=Pu("".split),ol=Pu("".slice),il=Pu("".toLowerCase),sl=Pu([].unshift),cl="Invalid scheme",hl="Invalid host",ul="Invalid port",ll=/[a-z]/i,fl=/[\d+-.a-z]/i,dl=/\d/,ml=/^0x/i,gl=/^[0-7]+$/,pl=/^\d+$/,yl=/^[\da-f]+$/i,bl=/[\0\t\n\r #%/:<>?@[\\\]^|]/,vl=/[\0\t\n\r #/:<>?@[\\\]^|]/,Sl=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,wl=/[\t\n\r]/g,Al=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)sl(t,e%256),e=qu(e/256);return Qu(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+=Xu(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Rl={},Hl=Eu({},Rl,{" ":1,'"':1,"<":1,">":1,"`":1}),Tl=Eu({},Hl,{"#":1,"?":1,"{":1,"}":1}),Pl=Eu({},Tl,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Cl=function(e,t){var r=Bu(e,0);return r>32&&r<127&&!ku(t,e)?e:encodeURIComponent(e)},Il={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ol=function(e,t){var r;return 2==e.length&&$u(ll,Zu(e,0))&&(":"==(r=Zu(e,1))||!t&&"|"==r)},kl=function(e){var t;return e.length>1&&Ol(ol(e,0,2))&&(2==e.length||"/"===(t=Zu(e,2))||"\\"===t||"?"===t||"#"===t)},El=function(e){return"."===e||"%2e"===il(e)},Ll={},Ml={},Bl={},Ul={},xl={},Dl={},Fl={},jl={},Nl={},Gl={},_l={},zl={},Yl={},Kl={},Jl={},Wl={},ql={},Vl={},Zl={},$l={},Ql={},Xl=function(e,t,r){var n,a,o,i=xu(e);if(t){if(a=this.parse(i))throw Ju(a);this.searchParams=null}else{if(void 0!==r&&(n=new Xl(r,!0)),a=this.parse(i,null,n))throw Ju(a);(o=Yu(new zu)).bindURL(this),this.searchParams=o}};Xl.prototype={type:"URL",parse:function(e,t,r){var n,a,o,i,s,c=this,h=t||Ll,u=0,l="",f=!1,d=!1,m=!1;for(e=xu(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=rl(e,Sl,"")),e=rl(e,wl,""),n=Lu(e);u<=n.length;){switch(a=n[u],h){case Ll:if(!a||!$u(ll,a)){if(t)return cl;h=Bl;continue}l+=il(a),h=Ml;break;case Ml:if(a&&($u(fl,a)||"+"==a||"-"==a||"."==a))l+=il(a);else{if(":"!=a){if(t)return cl;l="",h=Bl,u=0;continue}if(t&&(c.isSpecial()!=ku(Il,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&Il[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?h=Kl:c.isSpecial()&&r&&r.scheme==c.scheme?h=Ul:c.isSpecial()?h=jl:"/"==n[u+1]?(h=xl,u++):(c.cannotBeABaseURL=!0,tl(c.path,""),h=Zl)}break;case Bl:if(!r||r.cannotBeABaseURL&&"#"!=a)return cl;if(r.cannotBeABaseURL&&"#"==a){c.scheme=r.scheme,c.path=Mu(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,h=Ql;break}h="file"==r.scheme?Kl:Dl;continue;case Ul:if("/"!=a||"/"!=n[u+1]){h=Dl;continue}h=Nl,u++;break;case xl:if("/"==a){h=Gl;break}h=Vl;continue;case Dl:if(c.scheme=r.scheme,a==vu)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Mu(r.path),c.query=r.query;else if("/"==a||"\\"==a&&c.isSpecial())h=Fl;else if("?"==a)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Mu(r.path),c.query="",h=$l;else{if("#"!=a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Mu(r.path),c.path.length--,h=Vl;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=Mu(r.path),c.query=r.query,c.fragment="",h=Ql}break;case Fl:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,h=Vl;continue}h=Gl}else h=Nl;break;case jl:if(h=Nl,"/"!=a||"/"!=Zu(l,u+1))continue;u++;break;case Nl:if("/"!=a&&"\\"!=a){h=Gl;continue}break;case Gl:if("@"==a){f&&(l="%40"+l),f=!0,o=Lu(l);for(var g=0;g<o.length;g++){var p=o[g];if(":"!=p||m){var y=Cl(p,Pl);m?c.password+=y:c.username+=y}else m=!0}l=""}else if(a==vu||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(f&&""==l)return"Invalid authority";u-=Lu(l).length+1,l="",h=_l}else l+=a;break;case _l:case zl:if(t&&"file"==c.scheme){h=Wl;continue}if(":"!=a||d){if(a==vu||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==l)return hl;if(t&&""==l&&(c.includesCredentials()||null!==c.port))return;if(i=c.parseHost(l))return i;if(l="",h=ql,t)return;continue}"["==a?d=!0:"]"==a&&(d=!1),l+=a}else{if(""==l)return hl;if(i=c.parseHost(l))return i;if(l="",h=Yl,t==zl)return}break;case Yl:if(!$u(dl,a)){if(a==vu||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||t){if(""!=l){var b=Wu(l,10);if(b>65535)return ul;c.port=c.isSpecial()&&b===Il[c.scheme]?null:b,l=""}if(t)return;h=ql;continue}return ul}l+=a;break;case Kl:if(c.scheme="file","/"==a||"\\"==a)h=Jl;else{if(!r||"file"!=r.scheme){h=Vl;continue}if(a==vu)c.host=r.host,c.path=Mu(r.path),c.query=r.query;else if("?"==a)c.host=r.host,c.path=Mu(r.path),c.query="",h=$l;else{if("#"!=a){kl(Qu(Mu(n,u),""))||(c.host=r.host,c.path=Mu(r.path),c.shortenPath()),h=Vl;continue}c.host=r.host,c.path=Mu(r.path),c.query=r.query,c.fragment="",h=Ql}}break;case Jl:if("/"==a||"\\"==a){h=Wl;break}r&&"file"==r.scheme&&!kl(Qu(Mu(n,u),""))&&(Ol(r.path[0],!0)?tl(c.path,r.path[0]):c.host=r.host),h=Vl;continue;case Wl:if(a==vu||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&Ol(l))h=Vl;else if(""==l){if(c.host="",t)return;h=ql}else{if(i=c.parseHost(l))return i;if("localhost"==c.host&&(c.host=""),t)return;l="",h=ql}continue}l+=a;break;case ql:if(c.isSpecial()){if(h=Vl,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=vu&&(h=Vl,"/"!=a))continue}else c.fragment="",h=Ql;else c.query="",h=$l;break;case Vl:if(a==vu||"/"==a||"\\"==a&&c.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(s=il(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||tl(c.path,"")):El(l)?"/"==a||"\\"==a&&c.isSpecial()||tl(c.path,""):("file"==c.scheme&&!c.path.length&&Ol(l)&&(c.host&&(c.host=""),l=Zu(l,0)+":"),tl(c.path,l)),l="","file"==c.scheme&&(a==vu||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)nl(c.path);"?"==a?(c.query="",h=$l):"#"==a&&(c.fragment="",h=Ql)}else l+=Cl(a,Tl);break;case Zl:"?"==a?(c.query="",h=$l):"#"==a?(c.fragment="",h=Ql):a!=vu&&(c.path[0]+=Cl(a,Rl));break;case $l:t||"#"!=a?a!=vu&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":Cl(a,Rl)):(c.fragment="",h=Ql);break;case Ql:a!=vu&&(c.fragment+=Cl(a,Hl))}u++}},parseHost:function(e){var t,r,n;if("["==Zu(e,0)){if("]"!=Zu(e,e.length-1))return hl;if(t=function(e){var t,r,n,a,o,i,s,c=[0,0,0,0,0,0,0,0],h=0,u=null,l=0,f=function(){return Zu(e,l)};if(":"==f()){if(":"!=Zu(e,1))return;l+=2,u=++h}for(;f();){if(8==h)return;if(":"!=f()){for(t=r=0;r<4&&$u(yl,f());)t=16*t+Wu(f(),16),l++,r++;if("."==f()){if(0==r)return;if(l-=r,h>6)return;for(n=0;f();){if(a=null,n>0){if(!("."==f()&&n<4))return;l++}if(!$u(dl,f()))return;for(;$u(dl,f());){if(o=Wu(f(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;l++}c[h]=256*c[h]+a,2!=++n&&4!=n||h++}if(4!=n)return;break}if(":"==f()){if(l++,!f())return}else if(f())return;c[h++]=t}else{if(null!==u)return;l++,u=++h}}if(null!==u)for(i=h-u,h=7;0!=h&&i>0;)s=c[h],c[h--]=c[u+i-1],c[u+--i]=s;else if(8!=h)return;return c}(ol(e,1,-1)),!t)return hl;this.host=t}else if(this.isSpecial()){if(e=Uu(e),$u(bl,e))return hl;if(t=function(e){var t,r,n,a,o,i,s,c=al(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=c[n]))return e;if(o=10,a.length>1&&"0"==Zu(a,0)&&(o=$u(ml,a)?16:8,a=ol(a,8==o?1:2)),""===a)i=0;else{if(!$u(10==o?pl:8==o?gl:yl,a))return e;i=Wu(a,o)}tl(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=Vu(256,5-t))return null}else if(i>255)return null;for(s=el(r),n=0;n<r.length;n++)s+=r[n]*Vu(256,3-n);return s}(e),null===t)return hl;this.host=t}else{if($u(vl,e))return hl;for(t="",r=Lu(e),n=0;n<r.length;n++)t+=Cl(r[n],Rl);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return ku(Il,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Ol(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,c=e.fragment,h=t+":";return null!==a?(h+="//",e.includesCredentials()&&(h+=r+(n?":"+n:"")+"@"),h+=Al(a),null!==o&&(h+=":"+o)):"file"==t&&(h+="//"),h+=e.cannotBeABaseURL?i[0]:i.length?"/"+Qu(i,"/"):"",null!==s&&(h+="?"+s),null!==c&&(h+="#"+c),h},setHref:function(e){var t=this.parse(e);if(t)throw Ju(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new ef(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Al(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(xu(e)+":",Ll)},getUsername:function(){return this.username},setUsername:function(e){var t=Lu(xu(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Cl(t[r],Pl)}},getPassword:function(){return this.password},setPassword:function(e){var t=Lu(xu(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Cl(t[r],Pl)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Al(e):Al(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,_l)},getHostname:function(){var e=this.host;return null===e?"":Al(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,zl)},getPort:function(){var e=this.port;return null===e?"":xu(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=xu(e))?this.port=null:this.parse(e,Yl))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Qu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ql))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=xu(e))?this.query=null:("?"==Zu(e,0)&&(e=ol(e,1)),this.query="",this.parse(e,$l)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=xu(e))?("#"==Zu(e,0)&&(e=ol(e,1)),this.fragment="",this.parse(e,Ql)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var ef=function(e){var t=Ou(this,tf),r=Fu(arguments.length,1)>1?arguments[1]:void 0,n=Gu(t,new Xl(e,!1,r));Au||(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())},tf=ef.prototype,rf=function(e,t){return{get:function(){return _u(this)[e]()},set:t&&function(e){return _u(this)[t](e)},configurable:!0,enumerable:!0}};if(Au&&Cu(tf,{href:rf("serialize","setHref"),origin:rf("getOrigin"),protocol:rf("getProtocol","setProtocol"),username:rf("getUsername","setUsername"),password:rf("getPassword","setPassword"),host:rf("getHost","setHost"),hostname:rf("getHostname","setHostname"),port:rf("getPort","setPort"),pathname:rf("getPathname","setPathname"),search:rf("getSearch","setSearch"),searchParams:rf("getSearchParams"),hash:rf("getHash","setHash")}),Iu(tf,"toJSON",(function(){return _u(this).serialize()}),{enumerable:!0}),Iu(tf,"toString",(function(){return _u(this).serialize()}),{enumerable:!0}),Ku){var nf=Ku.createObjectURL,af=Ku.revokeObjectURL;nf&&Iu(ef,"createObjectURL",Tu(nf,Ku)),af&&Iu(ef,"revokeObjectURL",Tu(af,Ku))}Du(ef,"URL"),wu({global:!0,forced:!Ru,sham:!Au},{URL:ef});var of,sf=K,cf=E,hf=et("match"),uf=function(e){var t;return sf(e)&&(void 0!==(t=e[hf])?!!t:"RegExp"==cf(e))},lf=s.TypeError,ff=et("match"),df=Jn,mf=C,gf=c.f,pf=tn,yf=aa,bf=function(e){if(uf(e))throw lf("The method doesn't accept regular expressions");return e},vf=j,Sf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[ff]=!1,"/./"[e](t)}catch(e){}}return!1},wf=mf("".startsWith),Af=mf("".slice),Rf=Math.min,Hf=Sf("startsWith");df({target:"String",proto:!0,forced:!!(Hf||(of=gf(String.prototype,"startsWith"),!of||of.writable))&&!Hf},{startsWith:function(e){var t=yf(vf(this));bf(e);var r=pf(Rf(arguments.length>1?arguments[1]:void 0,t.length)),n=yf(e);return wf?wf(t,n,r):Af(t,r,r+n.length)===n}});var Tf=C,Pf=Br.PROPER,Cf=qt.exports,If=Mt,Of=Z,kf=aa,Ef=h,Lf=ia,Mf="toString",Bf=RegExp.prototype,Uf=Bf.toString,xf=Tf(Lf),Df=Ef((function(){return"/a/b"!=Uf.call({source:"a",flags:"b"})})),Ff=Pf&&Uf.name!=Mf;(Df||Ff)&&Cf(RegExp.prototype,Mf,(function(){var e=If(this),t=kf(e.source),r=e.flags;return"/"+t+"/"+kf(void 0===r&&Of(Bf,e)&&!("flags"in Bf)?xf(e):r)}),{unsafe:!0});var jf={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","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","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 before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","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","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","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","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","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. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. 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. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. 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","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function Nf(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Gf(e){return e<10?"0"+e:String(e)}function _f(e){return e<0?"-00"+_f(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function zf(e){return _f(e.getFullYear())+"-"+Gf(e.getMonth()+1)+"-"+Gf(e.getDate())}function Yf(e){const r=e.getDesc();if("Fast begins"===r||"Fast ends"===r)return["zmanim","fast"];switch(e.getFlags()){case t.flags.OMER_COUNT:return["omer"];case t.flags.HEBREW_DATE:return["hebdate"];case t.flags.PARSHA_HASHAVUA:return["parashat"];case t.flags.DAF_YOMI:return["dafyomi"];case t.flags.ROSH_CHODESH:return["roshchodesh"];case t.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case t.flags.MINOR_FAST:return["holiday","fast"];case t.flags.MAJOR_FAST:return["holiday","fast","major"];case t.flags.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case t.flags.MOLAD:return["molad"];case t.flags.USER_EVENT:return["user"];case t.flags.MINOR_HOLIDAY:return["holiday","minor"];case t.flags.MISHNA_YOMI:return["mishnayomi"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(r){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];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"];case"Erev Tish'a B'Av":return["holiday","fast","major"];default:return["holiday","major"]}}function Kf(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.isHebrewYear||0==e.length)r+=" "+t.year;else{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 Jf(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=jf[e.getDesc()]||jf[e.basename()]||"";if(t&&r){const e=r.indexOf(".");if(-1!=e)return r.substring(0,e)}return r}const Wf=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function qf(e,r){const n=e.getFlags();if(n&Wf)return"";const o=n&t.flags.PARSHA_HASHAVUA?a.getLeyningForParshaHaShavua(e,r):a.getLeyningForHoliday(e,r);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 Vf(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/");if(i||s)return o.host="hebcal.com",o.pathname=i?"/h/"+e.substring(10):"/s/"+e.substring(8),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 Zf(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)}const $f='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',Qf={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function Xf(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 c="",h="",u="",l='"true"';const f=Boolean(e.eventTime);let d=Zf(e)?e.renderBrief(r.locale):e.render(r.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",r);h=c='"'.concat(n,'"'),u=s,l='"false"'}let m="Jewish Holidays";const g=e.getFlags();if(f&&r.location&&r.location.name){const e=r.location.name,t=e.indexOf(",");m=-1===t?e:e.substring(0,t)}else if(g&t.flags.DAF_YOMI){const e=d.indexOf(": ");-1!=e&&(m=d.substring(0,e),d=d.substring(e+2))}else{const t=Qf[Yf(e)[0]];t&&(m=t)}if(d=d.replace(/,/g,"").replace(/"/g,"''"),r.appendHebrewToSubject){const t=e.renderBrief("he");t&&(d+=" / ".concat(t))}let p=e.memo||Jf(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(r.locale));const y=p.replace(/,/g,";").replace(/"/g,"''"),b=f||g&t.flags.CHAG?4:3;return'"'.concat(d,'",').concat(s,",").concat(c,",").concat(u,",").concat(h,",").concat(l,',"').concat(y,'","').concat(b,'","').concat(m,'"')}var ed={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 td(e,r){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),c="object"==typeof r.location?r.location.getTzid():"UTC",h=o?t.Zmanim.formatISOWithTimeZone(c,e.eventTime):zf(s),u=Yf(e),l=e.getFlags();let f=Zf(e)?e.renderBrief(r.locale):e.render(r.locale);const d=e.getDesc(),m="Havdalah"===d||"Candle lighting"===d;if(m){f+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",r)}const g={title:f,date:h,category:u[0]};u.length>1&&(g.subcat=u[1]),"holiday"===u[0]&&l&t.flags.CHAG&&(g.yomtov=!0),f!=d&&(g.title_orig=d);const p=e.renderBrief("he");if(p&&(g.hebrew=t.Locale.hebrewStripNikkud(p)),!m){if(n){const n=r.il,o=l===t.flags.PARSHA_HASHAVUA,s=o?a.getLeyningForParshaHaShavua(e,n):a.getLeyningForHoliday(e,n);if(s){g.leyning=nd(s);const t=i.getFullYear();if(o&&!n&&t>=5745&&t<=5830){const t=a.getTriennialForParshaHaShavua(e);t&&(g.leyning.triennial=rd({},t))}}}const o=e.url();if(o){const e=r.utmSource||"js",t=r.utmMedium||"api",n=r.utmCampaign;g.link=Vf(o,r.il,e,t,n)}}const y=e.memo||jf[e.basename()];return y?g.memo=y:void 0!==e.linkedEvent&&(g.memo=e.linkedEvent.render(r.locale)),g}function rd(e,t){return Object.keys(t).forEach((r=>{const n=t[r];if(void 0!==n){e["M"==r?"maftir":r]=a.formatAliyahWithBook(n)}})),e}function nd(e){const t={};return e.summary&&(t.torah=e.summary),e.haftara&&(t.haftarah=e.haftara),e.sephardic&&(t.haftarah_sephardic=e.sephardic),e.fullkriyah&&rd(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)),t}const ad={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function od(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||Kf(e,t),c=t.description||s,h=t.utmSource||"shabbat1c",u=t.utmMedium||"rss",l=Vf(n,r&&r.getIsrael(),h,u,t.utmCampaign).replace(/&/g,"&amp;"),f=t.selfUrl.replace(/&/g,"&amp;"),d=t.lang||ad[t.locale]||t.locale||"en-US";let m='<?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(l,'</link>\n<atom:link href="').concat(f,'" rel="self" type="application/rss+xml" />\n<description>').concat(c,"</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=>{m+=id(e,t)})),m+="</channel>\n</rss>\n",m}function id(e,t){return sd(e,t.evPubDate,t.lastBuildDate,t.dayFormat,t.location,t.mainUrl,t)}function sd(e,r,n,a,o,i,s){let c=e.render();const h=e.getDate().greg(),u=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,h,n),l=!!o&&o.getIsrael(),f=function(e,r,n,a,o,i){let s,c;const h=e.eventTime||e.getDate().greg(),u=t.Zmanim.formatISOWithTimeZone(n,h),l=u.substring(0,u.indexOf("T")),f=l.replace(/-/g,""),d=Nf(e.getDesc()),m="".concat(f,"-").concat(d),g=e.url();if(g)s=Vf(g,r,o,i).replace(/&/g,"&amp;"),c="".concat(g,"#").concat(m);else{const e="".concat(a,"&dt=").concat(l),t=Vf(e,r,o,i).replace(/&/g,"&amp;");c=e.replace(/&/g,"&amp;")+"#".concat(m),s="".concat(t,"#").concat(m)}return[s,c]}(e,l,o?o.getTzid():"UTC",i,s&&s.utmSource||"shabbat1c",s&&s.utmMedium||"rss"),d=f[0],m=f[1],g=Yf(e)[0],p=e.getDesc();let y;if("Havdalah"===p||"Candle lighting"===p){const r=c.indexOf(": ");if(-1!=r){const n={location:o,il:l,locale:t.Locale.getLocaleName()},a=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);c=c.substring(0,r)+": "+a}}else y=e.getFlags()&t.flags.PARSHA_HASHAVUA?qf(e,l):e.memo||jf[e.basename()];const b=y||a.format(h),v="candles"==g?"<geo:lat>".concat(o.getLatitude(),"</geo:lat>\n<geo:long>").concat(o.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(c,"</title>\n<link>").concat(d,'</link>\n<guid isPermaLink="false">').concat(m,"</guid>\n<description>").concat(b,"</description>\n<category>").concat(g,"</category>\n<pubDate>").concat(u,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=Vf,e.countryNames=ed,e.eventToClassicApiObject=td,e.eventToCsv=Xf,e.eventToFullCalendar=function(e,r,n){const a=Yf(e),o=e.getFlags();"holiday"==a[0]&&o&t.flags.CHAG&&a.push("yomtov");const i=Boolean(e.eventTime),s={title:Zf(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(r,e.eventTime):zf(e.getDate().greg()),allDay:!i,className:a.join(" ")},c=e.renderBrief("he");c&&(s.hebrew=t.Locale.hebrewStripNikkud(c));const h=e.url();h&&(s.url=Vf(h,n,"js","fc"));const u=e.getDesc();if(!("Havdalah"===u||"Candle lighting"===u)){const r=o&t.flags.PARSHA_HASHAVUA?qf(e,n):e.memo||jf[e.basename()];r?s.description=r:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem=sd,e.eventToRssItem2=id,e.eventsToClassicApi=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:Kf(e,t),date:(new Date).toISOString()},a=t.location;return"object"==typeof a&&"string"==typeof a.name?(n.location={title:a.getName(),city:a.getShortName(),tzid:a.getTzid(),latitude:a.getLatitude(),longitude:a.getLongitude(),cc:a.getCountryCode(),country:ed[a.getCountryCode()]},["admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((e=>{a[e]&&(n.location[e]=a[e])}))):n.location={geo:"none"},n.items=e.map((e=>td(e,t,r))),n},e.eventsToCsv=function(e,t){return[$f].concat(e.map((e=>Xf(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,r,n,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const s=r.getName(),c={location:r,mainUrl:n,selfUrl:a,lang:o,evPubDate:i,title:t.Locale.gettext("Shabbat")+" Times for ".concat(s),description:"Weekly Shabbat candle lighting times for ".concat(s),utmSource:"shabbat1c",utmMedium:"rss"};return od(e,c)},e.eventsToRss2=od,e.getCalendarTitle=Kf,e.getDownloadFilename=function(e){let t="hebcal_"+e.year;if(e.isHebrewYear&&(t+="h"),e.month&&(t+="_"+e.month),e.location){t+="_"+Nf(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[-]/g,"_")}return t},e.getEventCategories=Yf,e.getHolidayDescription=Jf,e.holidayDescription=jf,e.makeAnchor=Nf,e.makeTorahMemoText=qf,e.pad2=Gf,e.pad4=_f,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=Zf,e.timeZoneOffsetStr=function(e,r){return t.Zmanim.timeZoneOffset(e,r)},e.toISOString=zf,e.toISOStringWithTimezone=function(e,r,n){const a=zf(e);return r?a+"T"+r+":00"+t.Zmanim.timeZoneOffset(n,e):a},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v3.12.0 */
1
+ /*! @hebcal/rest-api v3.13.0 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -345,16 +345,60 @@ function makeTorahMemoText(ev, il) {
345
345
  */
346
346
 
347
347
  function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
348
- if (url.substring(0, 22) !== 'https://www.hebcal.com') {
349
- utmSource = 'hebcal.com';
350
- } else if (il && url.indexOf('?') === -1) {
351
- url += '?i=on';
348
+ const u = new URL(url);
349
+ const isHebcal = u.host === 'www.hebcal.com';
350
+
351
+ if (isHebcal) {
352
+ if (il) {
353
+ u.searchParams.set('i', 'on');
354
+ }
355
+
356
+ const path = u.pathname;
357
+ const isHolidays = path.startsWith('/holidays/');
358
+ const isSedrot = path.startsWith('/sedrot/');
359
+
360
+ if (isHolidays || isSedrot) {
361
+ u.host = 'hebcal.com';
362
+
363
+ if (isHolidays) {
364
+ u.pathname = '/h/' + path.substring(10);
365
+ } else {
366
+ u.pathname = '/s/' + path.substring(8);
367
+ }
368
+
369
+ if (!utmCampaign || !(utmCampaign.startsWith('ical-') || utmCampaign.startsWith('pdf-'))) {
370
+ if (utmSource) {
371
+ u.searchParams.set('us', utmSource);
372
+ }
373
+
374
+ if (utmMedium) {
375
+ u.searchParams.set('um', utmMedium);
376
+ }
377
+ }
378
+
379
+ if (utmCampaign) {
380
+ u.searchParams.set('uc', utmCampaign);
381
+ }
382
+
383
+ return u.toString();
384
+ }
385
+ }
386
+
387
+ utmSource = isHebcal ? utmSource : 'hebcal.com';
388
+
389
+ if (utmSource) {
390
+ u.searchParams.set('utm_source', utmSource);
391
+ }
392
+
393
+ if (utmMedium) {
394
+ u.searchParams.set('utm_medium', utmMedium);
395
+ }
396
+
397
+ if (utmCampaign) {
398
+ u.searchParams.set('utm_campaign', utmCampaign);
352
399
  }
353
400
 
354
- const sep = url.indexOf('?') === -1 ? '?' : '&';
355
- const utm = `utm_source=${utmSource}&utm_medium=${utmMedium}`;
356
- const campaign = utmCampaign ? `&utm_campaign=${utmCampaign}` : '';
357
- return url + sep + utm + campaign;
401
+ return u.toString();
358
402
  }
359
403
  /**
360
404
  * @private
@@ -494,7 +538,7 @@ function eventsToClassicApi(events, options, leyning = true) {
494
538
  cc: location.getCountryCode(),
495
539
  country: countryNames[location.getCountryCode()]
496
540
  };
497
- ['admin1', 'asciiname', 'geo', 'zip', 'state', 'geonameid'].forEach(k => {
541
+ ['admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
498
542
  if (location[k]) {
499
543
  result.location[k] = location[k];
500
544
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v3.12.0 */
1
+ /*! @hebcal/rest-api v3.13.0 */
2
2
  import { flags, Zmanim, HebrewCalendar, Locale } from '@hebcal/core';
3
3
  import * as leyn from '@hebcal/leyning';
4
4
 
@@ -321,16 +321,60 @@ function makeTorahMemoText(ev, il) {
321
321
  */
322
322
 
323
323
  function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
324
- if (url.substring(0, 22) !== 'https://www.hebcal.com') {
325
- utmSource = 'hebcal.com';
326
- } else if (il && url.indexOf('?') === -1) {
327
- url += '?i=on';
324
+ const u = new URL(url);
325
+ const isHebcal = u.host === 'www.hebcal.com';
326
+
327
+ if (isHebcal) {
328
+ if (il) {
329
+ u.searchParams.set('i', 'on');
330
+ }
331
+
332
+ const path = u.pathname;
333
+ const isHolidays = path.startsWith('/holidays/');
334
+ const isSedrot = path.startsWith('/sedrot/');
335
+
336
+ if (isHolidays || isSedrot) {
337
+ u.host = 'hebcal.com';
338
+
339
+ if (isHolidays) {
340
+ u.pathname = '/h/' + path.substring(10);
341
+ } else {
342
+ u.pathname = '/s/' + path.substring(8);
343
+ }
344
+
345
+ if (!utmCampaign || !(utmCampaign.startsWith('ical-') || utmCampaign.startsWith('pdf-'))) {
346
+ if (utmSource) {
347
+ u.searchParams.set('us', utmSource);
348
+ }
349
+
350
+ if (utmMedium) {
351
+ u.searchParams.set('um', utmMedium);
352
+ }
353
+ }
354
+
355
+ if (utmCampaign) {
356
+ u.searchParams.set('uc', utmCampaign);
357
+ }
358
+
359
+ return u.toString();
360
+ }
361
+ }
362
+
363
+ utmSource = isHebcal ? utmSource : 'hebcal.com';
364
+
365
+ if (utmSource) {
366
+ u.searchParams.set('utm_source', utmSource);
367
+ }
368
+
369
+ if (utmMedium) {
370
+ u.searchParams.set('utm_medium', utmMedium);
371
+ }
372
+
373
+ if (utmCampaign) {
374
+ u.searchParams.set('utm_campaign', utmCampaign);
328
375
  }
329
376
 
330
- const sep = url.indexOf('?') === -1 ? '?' : '&';
331
- const utm = `utm_source=${utmSource}&utm_medium=${utmMedium}`;
332
- const campaign = utmCampaign ? `&utm_campaign=${utmCampaign}` : '';
333
- return url + sep + utm + campaign;
377
+ return u.toString();
334
378
  }
335
379
  /**
336
380
  * @private
@@ -470,7 +514,7 @@ function eventsToClassicApi(events, options, leyning = true) {
470
514
  cc: location.getCountryCode(),
471
515
  country: countryNames[location.getCountryCode()]
472
516
  };
473
- ['admin1', 'asciiname', 'geo', 'zip', 'state', 'geonameid'].forEach(k => {
517
+ ['admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
474
518
  if (location[k]) {
475
519
  result.location[k] = location[k];
476
520
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/rest-api",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal"
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/hebcal/hebcal-rest-api/issues"
22
22
  },
23
23
  "dependencies": {
24
- "@hebcal/core": "^3.33.1",
24
+ "@hebcal/core": "^3.33.3",
25
25
  "@hebcal/leyning": "^4.12.1"
26
26
  },
27
27
  "scripts": {
@@ -39,32 +39,24 @@
39
39
  "require": [
40
40
  "@babel/register"
41
41
  ],
42
- "babel": {
43
- "testOptions": {
44
- "presets": [
45
- "@babel/env"
46
- ]
47
- }
48
- },
49
42
  "inherit": true,
50
43
  "verbose": true
51
44
  },
52
45
  "devDependencies": {
53
- "@ava/babel": "^2.0.0",
54
- "@babel/core": "^7.16.10",
46
+ "@babel/core": "^7.17.5",
55
47
  "@babel/preset-env": "^7.16.11",
56
- "@babel/register": "^7.16.9",
57
- "@rollup/plugin-babel": "^5.3.0",
58
- "@rollup/plugin-commonjs": "^21.0.1",
48
+ "@babel/register": "^7.17.0",
49
+ "@rollup/plugin-babel": "^5.3.1",
50
+ "@rollup/plugin-commonjs": "^21.0.2",
59
51
  "@rollup/plugin-json": "^4.1.0",
60
52
  "@rollup/plugin-node-resolve": "^13.1.3",
61
- "ava": "^3.15.0",
62
- "core-js": "^3.20.3",
63
- "eslint": "^8.7.0",
53
+ "ava": "^4.1.0",
54
+ "core-js": "^3.21.1",
55
+ "eslint": "^8.10.0",
64
56
  "eslint-config-google": "^0.14.0",
65
- "jsdoc": "^3.6.7",
66
- "jsdoc-to-markdown": "^7.1.0",
67
- "rollup": "^2.64.0",
57
+ "jsdoc": "^3.6.10",
58
+ "jsdoc-to-markdown": "^7.1.1",
59
+ "rollup": "^2.70.0",
68
60
  "rollup-plugin-terser": "^7.0.2"
69
61
  }
70
62
  }