@hebcal/icalendar
Advanced tools
Comparing version 1.0.6 to 2.0.0
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@hebcal/core"),require("@hebcal/leyning"),require("fs")):"function"==typeof define&&define.amd?define(["@hebcal/core","@hebcal/leyning","fs"],t):(e=e||self).hebcal__icalendar=t(e.hebcal__core,e.hebcal__leyning,e.fs)}(this,(function(e,t,n){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof r&&r)||Function("return this")(),s=function(e){try{return!!e()}catch(e){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,h={f:u&&!l.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:l},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T={}.toString,d=function(e){return T.call(e).slice(8,-1)},g="".split,S=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?g.call(e,""):Object(e)}:Object,m=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},p=function(e){return S(m(e))},E=function(e){return"object"==typeof e?null!==e:"function"==typeof e},A=function(e,t){if(!E(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!E(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(e,t){return y.call(e,t)},v=i.document,R=E(v)&&E(v.createElement),O=function(e){return R?v.createElement(e):{}},D=!c&&!s((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,I={f:c?N:function(e,t){if(e=p(e),t=A(t,!0),D)try{return N(e,t)}catch(e){}if(b(e,t))return f(!h.f.call(e,t),e[t])}},M=function(e){if(!E(e))throw TypeError(String(e)+" is not an object");return e},F=Object.defineProperty,w={f:c?F:function(e,t,n){if(M(e),t=A(t,!0),M(n),D)try{return F(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},H=c?function(e,t,n){return w.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},C=function(e,t){try{H(i,e,t)}catch(n){i[e]=t}return t},B=i["__core-js_shared__"]||C("__core-js_shared__",{}),L=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(e){return L.call(e)});var Y,G,P,Z=B.inspectSource,x=i.WeakMap,U="function"==typeof x&&/native code/.test(Z(x)),_=a((function(e){(e.exports=function(e,t){return B[e]||(B[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),k=0,j=Math.random(),V=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++k+j).toString(36)},z=_("keys"),K=function(e){return z[e]||(z[e]=V(e))},W={},J=i.WeakMap;if(U){var Q=new J,$=Q.get,X=Q.has,q=Q.set;Y=function(e,t){return q.call(Q,e,t),t},G=function(e){return $.call(Q,e)||{}},P=function(e){return X.call(Q,e)}}else{var ee=K("state");W[ee]=!0,Y=function(e,t){return H(e,ee,t),t},G=function(e){return b(e,ee)?e[ee]:{}},P=function(e){return b(e,ee)}}var te={set:Y,get:G,has:P,enforce:function(e){return P(e)?G(e):Y(e,{})},getterFor:function(e){return function(t){var n;if(!E(t)||(n=G(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=a((function(e){var t=te.get,n=te.enforce,r=String(String).split("String");(e.exports=function(e,t,a,o){var s=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof a&&("string"!=typeof t||b(a,"name")||H(a,"name",t),n(a).source=r.join("string"==typeof t?t:"")),e!==i?(s?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=a:H(e,t,a)):c?e[t]=a:C(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Z(this)}))})),re=i,ae=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?ae(re[e])||ae(i[e]):re[e]&&re[e][t]||i[e]&&i[e][t]},ie=Math.ceil,se=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?se:ie)(e)},le=Math.min,ue=function(e){return e>0?le(ce(e),9007199254740991):0},he=Math.max,fe=Math.min,Te=function(e){return function(t,n,r){var a,o=p(t),i=ue(o.length),s=function(e,t){var n=ce(e);return n<0?he(n+t,0):fe(n,t)}(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},de={includes:Te(!0),indexOf:Te(!1)}.indexOf,ge=function(e,t){var n,r=p(e),a=0,o=[];for(n in r)!b(W,n)&&b(r,n)&&o.push(n);for(;t.length>a;)b(r,n=t[a++])&&(~de(o,n)||o.push(n));return o},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=Se.concat("length","prototype"),pe={f:Object.getOwnPropertyNames||function(e){return ge(e,me)}},Ee={f:Object.getOwnPropertySymbols},Ae=oe("Reflect","ownKeys")||function(e){var t=pe.f(M(e)),n=Ee.f;return n?t.concat(n(e)):t},ye=function(e,t){for(var n=Ae(t),r=w.f,a=I.f,o=0;o<n.length;o++){var i=n[o];b(e,i)||r(e,i,a(t,i))}},be=/#|\.prototype\./,ve=function(e,t){var n=Oe[Re(e)];return n==Ne||n!=De&&("function"==typeof t?s(t):!!t)},Re=ve.normalize=function(e){return String(e).replace(be,".").toLowerCase()},Oe=ve.data={},De=ve.NATIVE="N",Ne=ve.POLYFILL="P",Ie=ve,Me=I.f,Fe=function(e,t){var n,r,a,o,s,c=e.target,l=e.global,u=e.stat;if(n=l?i:u?i[c]||C(c,{}):(i[c]||{}).prototype)for(r in t){if(o=t[r],a=e.noTargetGet?(s=Me(n,r))&&s.value:n[r],!Ie(l?r:c+(u?".":"#")+r,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;ye(o,a)}(e.sham||a&&a.sham)&&H(o,"sham",!0),ne(n,r,o,e)}},we=function(){var e=M(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};function He(e,t){return RegExp(e,t)}var Ce,Be,Le={UNSUPPORTED_Y:s((function(){var e=He("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:s((function(){var e=He("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Ye=RegExp.prototype.exec,Ge=String.prototype.replace,Pe=Ye,Ze=(Ce=/a/,Be=/b*/g,Ye.call(Ce,"a"),Ye.call(Be,"a"),0!==Ce.lastIndex||0!==Be.lastIndex),xe=Le.UNSUPPORTED_Y||Le.BROKEN_CARET,Ue=void 0!==/()??/.exec("")[1];(Ze||Ue||xe)&&(Pe=function(e){var t,n,r,a,o=this,i=xe&&o.sticky,s=we.call(o),c=o.source,l=0,u=e;return i&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),Ue&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Ze&&(t=o.lastIndex),r=Ye.call(i?n:o,u),i?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Ze&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Ue&&r&&r.length>1&&Ge.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r});var _e=Pe;Fe({target:"RegExp",proto:!0,forced:/./.exec!==_e},{exec:_e});var ke=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),je=ke&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ve=_("wks"),ze=i.Symbol,Ke=je?ze:ze&&ze.withoutSetter||V,We=function(e){return b(Ve,e)||(ke&&b(ze,e)?Ve[e]=ze[e]:Ve[e]=Ke("Symbol."+e)),Ve[e]},Je=We("species"),Qe=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),$e="$0"==="a".replace(/./,"$0"),Xe=We("replace"),qe=!!/./[Xe]&&""===/./[Xe]("a","$0"),et=!s((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),tt=function(e,t,n,r){var a=We(e),o=!s((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),i=o&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Je]=function(){return n},n.flags="",n[a]=/./[a]),n.exec=function(){return t=!0,null},n[a](""),!t}));if(!o||!i||"replace"===e&&(!Qe||!$e||qe)||"split"===e&&!et){var c=/./[a],l=n(a,""[e],(function(e,t,n,r,a){return t.exec===_e?o&&!a?{done:!0,value:c.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:$e,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qe}),u=l[0],h=l[1];ne(String.prototype,e,u),ne(RegExp.prototype,a,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)})}r&&H(RegExp.prototype[a],"sham",!0)},nt=function(e){return Object(m(e))},rt=function(e){return function(t,n){var r,a,o=String(m(t)),i=ce(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=o.charCodeAt(i))<55296||r>56319||i+1===s||(a=o.charCodeAt(i+1))<56320||a>57343?e?o.charAt(i):r:e?o.slice(i,i+2):a-56320+(r-55296<<10)+65536}},at={codeAt:rt(!1),charAt:rt(!0)}.charAt,ot=function(e,t,n){return t+(n?at(e,t).length:1)},it=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==d(e))throw TypeError("RegExp#exec called on incompatible receiver");return _e.call(e,t)},st=Math.max,ct=Math.min,lt=Math.floor,ut=/\$([$&'`]|\d\d?|<[^>]*>)/g,ht=/\$([$&'`]|\d\d?)/g;tt("replace",2,(function(e,t,n,r){var a=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,i=a?"$":"$0";return[function(n,r){var a=m(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,a,r):t.call(String(a),n,r)},function(e,r){if(!a&&o||"string"==typeof r&&-1===r.indexOf(i)){var c=n(t,e,this,r);if(c.done)return c.value}var l=M(e),u=String(this),h="function"==typeof r;h||(r=String(r));var f=l.global;if(f){var T=l.unicode;l.lastIndex=0}for(var d=[];;){var g=it(l,u);if(null===g)break;if(d.push(g),!f)break;""===String(g[0])&&(l.lastIndex=ot(u,ue(l.lastIndex),T))}for(var S,m="",p=0,E=0;E<d.length;E++){g=d[E];for(var A=String(g[0]),y=st(ct(ce(g.index),u.length),0),b=[],v=1;v<g.length;v++)b.push(void 0===(S=g[v])?S:String(S));var R=g.groups;if(h){var O=[A].concat(b,y,u);void 0!==R&&O.push(R);var D=String(r.apply(void 0,O))}else D=s(A,u,y,b,R,r);y>=p&&(m+=u.slice(p,y)+D,p=y+A.length)}return m+u.slice(p)}];function s(e,n,r,a,o,i){var s=r+e.length,c=a.length,l=ht;return void 0!==o&&(o=nt(o),l=ut),t.call(i,l,(function(t,i){var l;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var h=lt(u/10);return 0===h?t:h<=c?void 0===a[h-1]?i.charAt(1):a[h-1]+i.charAt(1):t}l=a[u-1]}return void 0===l?"":l}))}}));var ft=We("match"),Tt=function(e){var t;return E(e)&&(void 0!==(t=e[ft])?!!t:"RegExp"==d(e))},dt=We("species"),gt=function(e,t){var n,r=M(e).constructor;return void 0===r||null==(n=M(r)[dt])?t:function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}(n)},St=[].push,mt=Math.min,pt=!s((function(){return!RegExp(4294967295,"y")}));tt("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(m(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!Tt(e))return t.call(r,e,a);for(var o,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=new RegExp(e.source,l+"g");(o=_e.call(h,r))&&!((i=h.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&St.apply(c,o.slice(1)),s=o[0].length,u=i,c.length>=a));)h.lastIndex===o.index&&h.lastIndex++;return u===r.length?!s&&h.test("")||c.push(""):c.push(r.slice(u)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var a=m(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,a,n):r.call(String(a),t,n)},function(e,a){var o=n(r,e,this,a,r!==t);if(o.done)return o.value;var i=M(e),s=String(this),c=gt(i,RegExp),l=i.unicode,u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(pt?"y":"g"),h=new c(pt?i:"^(?:"+i.source+")",u),f=void 0===a?4294967295:a>>>0;if(0===f)return[];if(0===s.length)return null===it(h,s)?[s]:[];for(var T=0,d=0,g=[];d<s.length;){h.lastIndex=pt?d:0;var S,m=it(h,pt?s:s.slice(d));if(null===m||(S=mt(ue(h.lastIndex+(pt?0:d)),s.length))===T)d=ot(s,d,l);else{if(g.push(s.slice(T,d)),g.length===f)return g;for(var p=1;p<=m.length-1;p++)if(g.push(m[p]),g.length===f)return g;d=T=S}}return g.push(s.slice(T)),g}]}),!pt);var Et,At=function(e){if(Tt(e))throw TypeError("The method doesn't accept regular expressions");return e},yt=We("match"),bt=I.f,vt="".startsWith,Rt=Math.min,Ot=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[yt]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith"),Dt=!(Ot||(Et=bt(String.prototype,"startsWith"),!Et||Et.writable));Fe({target:"String",proto:!0,forced:!Dt&&!Ot},{startsWith:function(e){var t=String(m(this));At(e);var n=ue(Rt(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return vt?vt.call(t,r,n):t.slice(n,n+r.length)===r}});var Nt,It={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},Mt=Object.keys||function(e){return ge(e,Se)},Ft=c?Object.defineProperties:function(e,t){M(e);for(var n,r=Mt(t),a=r.length,o=0;a>o;)w.f(e,n=r[o++],t[n]);return e},wt=oe("document","documentElement"),Ht=K("IE_PROTO"),Ct=function(){},Bt=function(e){return"<script>"+e+"<\/script>"},Lt=function(){try{Nt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Lt=Nt?function(e){e.write(Bt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Nt):((t=O("iframe")).style.display="none",wt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Bt("document.F=Object")),e.close(),e.F);for(var n=Se.length;n--;)delete Lt.prototype[Se[n]];return Lt()};W[Ht]=!0;var Yt=Object.create||function(e,t){var n;return null!==e?(Ct.prototype=M(e),n=new Ct,Ct.prototype=null,n[Ht]=e):n=Lt(),void 0===t?n:Ft(n,t)},Gt=We("unscopables"),Pt=Array.prototype;null==Pt[Gt]&&w.f(Pt,Gt,{configurable:!0,value:Yt(null)});var Zt,xt,Ut,_t=function(e){Pt[Gt][e]=!0},kt=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jt=K("IE_PROTO"),Vt=Object.prototype,zt=kt?Object.getPrototypeOf:function(e){return e=nt(e),b(e,jt)?e[jt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Vt:null},Kt=We("iterator"),Wt=!1;[].keys&&("next"in(Ut=[].keys())?(xt=zt(zt(Ut)))!==Object.prototype&&(Zt=xt):Wt=!0),null==Zt&&(Zt={}),b(Zt,Kt)||H(Zt,Kt,(function(){return this}));var Jt={IteratorPrototype:Zt,BUGGY_SAFARI_ITERATORS:Wt},Qt=w.f,$t=We("toStringTag"),Xt=function(e,t,n){e&&!b(e=n?e:e.prototype,$t)&&Qt(e,$t,{configurable:!0,value:t})},qt=Jt.IteratorPrototype,en=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return M(n),function(e){if(!E(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),tn=Jt.IteratorPrototype,nn=Jt.BUGGY_SAFARI_ITERATORS,rn=We("iterator"),an=function(){return this},on=te.set,sn=te.getterFor("Array Iterator"),cn=function(e,t,n,r,a,o,i){!function(e,t,n){var r=t+" Iterator";e.prototype=Yt(qt,{next:f(1,n)}),Xt(e,r,!1)}(n,t,r);var s,c,l,u=function(e){if(e===a&&S)return S;if(!nn&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",T=!1,d=e.prototype,g=d[rn]||d["@@iterator"]||a&&d[a],S=!nn&&g||u(a),m="Array"==t&&d.entries||g;if(m&&(s=zt(m.call(new e)),tn!==Object.prototype&&s.next&&(zt(s)!==tn&&(en?en(s,tn):"function"!=typeof s[rn]&&H(s,rn,an)),Xt(s,h,!0))),"values"==a&&g&&"values"!==g.name&&(T=!0,S=function(){return g.call(this)}),d[rn]!==S&&H(d,rn,S),a)if(c={values:u("values"),keys:o?S:u("keys"),entries:u("entries")},i)for(l in c)(nn||T||!(l in d))&&ne(d,l,c[l]);else Fe({target:t,proto:!0,forced:nn||T},c);return c}(Array,"Array",(function(e,t){on(this,{type:"Array Iterator",target:p(e),index:0,kind:t})}),(function(){var e=sn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");_t("keys"),_t("values"),_t("entries");var ln=We("iterator"),un=We("toStringTag"),hn=cn.values;for(var fn in It){var Tn=i[fn],dn=Tn&&Tn.prototype;if(dn){if(dn[ln]!==hn)try{H(dn,ln,hn)}catch(e){dn[ln]=hn}if(dn[un]||H(dn,un,fn),It[fn])for(var gn in cn)if(dn[gn]!==cn[gn])try{H(dn,gn,cn[gn])}catch(e){dn[gn]=cn[gn]}}}var Sn=a((function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var a=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?n.push(t.charAt(a>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,a=0;r<e.length;a=++r%4)0!=a&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(e.charAt(r))>>>6-2*a);return n}};e.exports=n}()})),mn={utf8:{stringToBytes:function(e){return mn.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(mn.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},pn=mn,En=function(e){return null!=e&&(An(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&An(e.slice(0,0))}(e)||!!e._isBuffer)};function An(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var yn=a((function(e){!function(){var t=Sn,n=pn.utf8,r=En,a=pn.bin,o=function(e,i){e.constructor==String?e=i&&"binary"===i.encoding?a.stringToBytes(e):n.stringToBytes(e):r(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var s=t.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,h=-1732584194,f=271733878,T=0;T<s.length;T++)s[T]=16711935&(s[T]<<8|s[T]>>>24)|4278255360&(s[T]<<24|s[T]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var d=o._ff,g=o._gg,S=o._hh,m=o._ii;for(T=0;T<s.length;T+=16){var p=l,E=u,A=h,y=f;l=d(l,u,h,f,s[T+0],7,-680876936),f=d(f,l,u,h,s[T+1],12,-389564586),h=d(h,f,l,u,s[T+2],17,606105819),u=d(u,h,f,l,s[T+3],22,-1044525330),l=d(l,u,h,f,s[T+4],7,-176418897),f=d(f,l,u,h,s[T+5],12,1200080426),h=d(h,f,l,u,s[T+6],17,-1473231341),u=d(u,h,f,l,s[T+7],22,-45705983),l=d(l,u,h,f,s[T+8],7,1770035416),f=d(f,l,u,h,s[T+9],12,-1958414417),h=d(h,f,l,u,s[T+10],17,-42063),u=d(u,h,f,l,s[T+11],22,-1990404162),l=d(l,u,h,f,s[T+12],7,1804603682),f=d(f,l,u,h,s[T+13],12,-40341101),h=d(h,f,l,u,s[T+14],17,-1502002290),l=g(l,u=d(u,h,f,l,s[T+15],22,1236535329),h,f,s[T+1],5,-165796510),f=g(f,l,u,h,s[T+6],9,-1069501632),h=g(h,f,l,u,s[T+11],14,643717713),u=g(u,h,f,l,s[T+0],20,-373897302),l=g(l,u,h,f,s[T+5],5,-701558691),f=g(f,l,u,h,s[T+10],9,38016083),h=g(h,f,l,u,s[T+15],14,-660478335),u=g(u,h,f,l,s[T+4],20,-405537848),l=g(l,u,h,f,s[T+9],5,568446438),f=g(f,l,u,h,s[T+14],9,-1019803690),h=g(h,f,l,u,s[T+3],14,-187363961),u=g(u,h,f,l,s[T+8],20,1163531501),l=g(l,u,h,f,s[T+13],5,-1444681467),f=g(f,l,u,h,s[T+2],9,-51403784),h=g(h,f,l,u,s[T+7],14,1735328473),l=S(l,u=g(u,h,f,l,s[T+12],20,-1926607734),h,f,s[T+5],4,-378558),f=S(f,l,u,h,s[T+8],11,-2022574463),h=S(h,f,l,u,s[T+11],16,1839030562),u=S(u,h,f,l,s[T+14],23,-35309556),l=S(l,u,h,f,s[T+1],4,-1530992060),f=S(f,l,u,h,s[T+4],11,1272893353),h=S(h,f,l,u,s[T+7],16,-155497632),u=S(u,h,f,l,s[T+10],23,-1094730640),l=S(l,u,h,f,s[T+13],4,681279174),f=S(f,l,u,h,s[T+0],11,-358537222),h=S(h,f,l,u,s[T+3],16,-722521979),u=S(u,h,f,l,s[T+6],23,76029189),l=S(l,u,h,f,s[T+9],4,-640364487),f=S(f,l,u,h,s[T+12],11,-421815835),h=S(h,f,l,u,s[T+15],16,530742520),l=m(l,u=S(u,h,f,l,s[T+2],23,-995338651),h,f,s[T+0],6,-198630844),f=m(f,l,u,h,s[T+7],10,1126891415),h=m(h,f,l,u,s[T+14],15,-1416354905),u=m(u,h,f,l,s[T+5],21,-57434055),l=m(l,u,h,f,s[T+12],6,1700485571),f=m(f,l,u,h,s[T+3],10,-1894986606),h=m(h,f,l,u,s[T+10],15,-1051523),u=m(u,h,f,l,s[T+1],21,-2054922799),l=m(l,u,h,f,s[T+8],6,1873313359),f=m(f,l,u,h,s[T+15],10,-30611744),h=m(h,f,l,u,s[T+6],15,-1560198380),u=m(u,h,f,l,s[T+13],21,1309151649),l=m(l,u,h,f,s[T+4],6,-145523070),f=m(f,l,u,h,s[T+11],10,-1120210379),h=m(h,f,l,u,s[T+2],15,718787259),u=m(u,h,f,l,s[T+9],21,-343485551),l=l+p>>>0,u=u+E>>>0,h=h+A>>>0,f=f+y>>>0}return t.endian([l,u,h,f])};o._ff=function(e,t,n,r,a,o,i){var s=e+(t&n|~t&r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._gg=function(e,t,n,r,a,o,i){var s=e+(t&r|n&~r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._hh=function(e,t,n,r,a,o,i){var s=e+(t^n^r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._ii=function(e,t,n,r,a,o,i){var s=e+(n^(t|~r))+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._blocksize=16,o._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(o(e,n));return n&&n.asBytes?r:n&&n.asString?a.bytesToString(r):t.bytesToHex(r)}}()}));const bn=new Map;const vn=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Rn(e,t){const n=function(e){const t=bn.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return bn.set(e,n),n}(e).format(t);let[,r,a,o,i,s,c]=vn.exec(n);return"24"==i&&(i="00"),"".concat(o,"-").concat(r,"-").concat(a,"T").concat(i,":").concat(s,":").concat(c,"Z")}function On(e){return e<10?"0"+e:String(e)}function Dn(e,t){const n=function(e,t){const n=Rn("UTC",t),r=Rn(e,t),a=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(a/1e3/60)}(e,t),r=Math.abs(n),a=r%60;return(Boolean(n<0)?"+":"-")+On(Math.floor(r/60))+":"+On(a)}function Nn(e){return e.getFullYear()+"-"+On(e.getMonth()+1)+"-"+On(e.getDate())}function In(e,t,n){const r=Nn(e);return t?r+"T"+t+":00"+Dn(n,e):r}function Mn(t){switch(t.getFlags()){case e.flags.OMER_COUNT:return["omer"];case e.flags.HEBREW_DATE:return["hebdate"];case e.flags.PARSHA_HASHAVUA:return["parashat"];case e.flags.DAF_YOMI:return["dafyomi"];case e.flags.ROSH_CHODESH:return["roshchodesh"];case e.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case e.flags.MINOR_FAST:return["holiday","fast"];case e.flags.MODERN_HOLIDAY:return["holiday","modern"];case e.flags.SHABBAT_MEVARCHIM:return["mevarchim"]}if(t.getAttrs().cholHaMoedDay)return["holiday","major","cholhamoed"];switch(t.getDesc()){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function Fn(e,t){let n="Hebcal";const r=t.location;if(t.yahrzeit)n+=" Yahrzeits and Anniversaries";else if(r&&r.name){const e=r.name.indexOf(",");n+=" "+(-1==e?r.name:r.name.substring(0,e))}else t.il?n+=" Israel":n+=" Diaspora";if(t.isHebrewYear)n+=" "+t.year;else{const t=e[0].getDate().greg(),r=e[e.length-1].getDate().greg();if(t.getFullYear()!=r.getFullYear())n+=" "+t.getFullYear()+"-"+r.getFullYear();else if(t.getMonth()==r.getMonth()){n+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else n+=" "+t.getFullYear()}return n}var wn={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"The Jewish festival of rededication, also known as the Festival of Lights. Sometimes spelled Hanukkah, Chanukkah, Hanukah, or Hannukah","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:"Purim is one of the most joyous and fun holidays on the Jewish calendar. It commemorates a time when the Jewish people living in Persia were saved from extermination","Rosh Chodesh Adar I":"Beginning of new Hebrew month of Adar I (on leap years). Adar I is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Adar II":'Beginning of new Hebrew month of Adar II (on leap years). Adar II (sometimes "Adar Bet" or "Adar Sheni") is the 13th month of the Hebrew year, ocurring only on leap years. Corresponds to February or March on the Gregorian calendar',"Rosh Chodesh Adar":"Beginning of new Hebrew month of Adar. Adar is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Av":"Beginning of new Hebrew month of Av. Av is the 5th month of the Hebrew year. Corresponds to July or August on the Gregorian calendar","Rosh Chodesh Cheshvan":"Beginning of new Hebrew month of Cheshvan. Cheshvan is the 8th month of the Hebrew year. Corresponds to October or November on the Gregorian calendar","Rosh Chodesh Elul":"Beginning of new Hebrew month of Elul. Elul is the 6th month of the Hebrew year. Corresponds to August or September on the Gregorian calendar","Rosh Chodesh Iyyar":"Beginning of new Hebrew month of Iyyar. Iyyar (somtimes transliterated Iyar) is the 2nd month of the Hebrew year. Corresponds to April or May on the Gregorian calendar","Rosh Chodesh Kislev":"Beginning of new Hebrew month of Kislev. Kislev is the 9th month of the Hebrew year. Corresponds to November or December on the Gregorian calendar","Rosh Chodesh Nisan":"Beginning of new Hebrew month of Nisan. Nisan (sometimes transliterated Nissan) is the 1st month of the Hebrew year. rresponds to March or April on the Gregorian calendar","Rosh Chodesh Sh'vat":"Beginning of new Hebrew month of Sh'vat. Sh'vat (sometimes transliterated Shevat) is the 11th month of the Hebrew year. Corresponds to January or February on the Gregorian calendar","Rosh Chodesh Sivan":"Beginning of new Hebrew month of Sivan. Sivan is the 3rd month of the Hebrew year. Corresponds to May or June on the Gregorian calendar","Rosh Chodesh Tamuz":"Beginning of new Hebrew month of Tamuz. Tamuz (sometimes transliterated Tammuz) is the 4th month of the Hebrew year. Corresponds to June or July on the Gregorian calendar","Rosh Chodesh Tevet":"Beginning of new Hebrew month of Tevet. Tevet is the 10th month of the Hebrew year. Corresponds to December or January on the Gregorian calendar","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","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 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 Tabernacles","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 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 preceeds 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"};const Hn={"US/Eastern":"BEGIN:VTIMEZONE\r\nTZID:US/Eastern\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0400\r\nTZNAME:EST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0400\r\nTZOFFSETFROM:-0500\r\nTZNAME:EDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Central":"BEGIN:VTIMEZONE\r\nTZID:US/Central\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0500\r\nTZNAME:CST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0600\r\nTZNAME:CDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Mountain":"BEGIN:VTIMEZONE\r\nTZID:US/Mountain\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0600\r\nTZNAME:MST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0700\r\nTZNAME:MDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Pacific":"BEGIN:VTIMEZONE\r\nTZID:US/Pacific\r\nX-MICROSOFT-CDO-TZID:13\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETFROM:-0700\r\nTZOFFSETTO:-0800\r\nTZNAME:PST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETFROM:-0800\r\nTZOFFSETTO:-0700\r\nTZNAME:PDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Alaska":"BEGIN:VTIMEZONE\r\nTZID:US/Alaska\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:+0000\r\nTZNAME:AKST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0800\r\nTZOFFSETFROM:-0900\r\nTZNAME:AKDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Hawaii":"BEGIN:VTIMEZONE\r\nTZID:US/Hawaii\r\nLAST-MODIFIED:20060309T044821Z\r\nBEGIN:DAYLIGHT\r\nDTSTART:19330430T123000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:+0000\r\nTZNAME:HDT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19330521T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19420209T020000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-1030\r\nTZNAME:HWT\r\nEND:DAYLIGHT\r\nBEGIN:DAYLIGHT\r\nDTSTART:19450814T133000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-0930\r\nTZNAME:HPT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19450930T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:STANDARD\r\nDTSTART:19470608T020000\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-1030\r\nTZNAME:HST\r\nEND:STANDARD\r\nEND:VTIMEZONE","US/Aleutian":"BEGIN:VTIMEZONE\r\nTZID:US/Aleutian\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-0900\r\nTZNAME:HAST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:-1000\r\nTZNAME:HADT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","America/Phoenix":"BEGIN:VTIMEZONE\r\nTZID:America/Phoenix\r\nBEGIN:STANDARD\r\nDTSTART:19700101T000000\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0700\r\nEND:STANDARD\r\nEND:VTIMEZONE"};function Cn(e){return String(e.getFullYear()).padStart(4,"0")+On(e.getMonth()+1)+On(e.getDate())}function Bn(e){const t=e.toISOString();return t.slice(0,4)+t.slice(5,7)+t.slice(8,13)+t.slice(14,16)+t.slice(17,19)+"Z"}function Ln(e,t,n){if(n){const r=n.replace(/,/g,"\\,").replace(/;/g,"\\;");e.push(t+":"+r)}}function Yn(n,r){const a=r.dtstamp||Bn(new Date);let o=n.render();const i=n.getDesc(),s=n.getAttrs(),c=n.getFlags(),l=Boolean(s.eventTime);let u=l?r.location.name:void 0;if(c&e.flags.DAF_YOMI){const e=o.indexOf(": ");-1!=e&&(u=o.substring(0,e),o=o.substring(e+2))}const h=function(e){if(e){if(e.startsWith("https://www.hebcal.com"))return e+"?utm_source=js&utm_medium=icalendar";{const t=-1==e.indexOf("?")?"?":"&";return e+t+"utm_source=hebcal.com&utm_medium=icalendar"}}return e}(n.url());let f;if(c&e.flags.PARSHA_HASHAVUA){const e=t.getLeyningForParshaHaShavua(n,r.il);if(f="Torah: ".concat(e.summary),e.reason)for(const n of["7","8","M"])if(e.reason[n]){const r=Number(n)?"".concat(n,"th aliyah"):"Maftir";f+="\\n".concat(r,": ")+t.formatAliyahWithBook(e.fullkriyah[n])+" | "+e.reason[n]}e.haftara&&(f+="\\nHaftarah: "+e.haftara,e.reason&&e.reason.haftara&&(f+=" | "+e.reason.haftara)),e.sephardic&&(f+="\\nHaftarah for Sephardim: "+e.sephardic),f+="\\n\\n"+h}else{f=s.memo||wn[n.basename()]||"";const e=t.getLeyningForHoliday(n,r.il);e&&(f+="\\nTorah: ".concat(e.summary),e.haftara&&(f+="\\nHaftarah: "+e.haftara)),h&&(f.length&&(f+="\\n\\n"),f+=h)}const T=Cn(n.getDate().greg());let d,g,S=T,m="TRANSPARENT",p="FREE";if(l){let[e,t]=s.eventTimeStr.split(":");Number(e)<12&&(e=12+Number(e)),S+="T"+function(e,t,n){return On(e)+On(t)+On(n)}(e,t,0),g=S,d=";TZID=".concat(r.location.tzid);const n=o.indexOf(": ");-1!=n&&(o=o.substring(0,n))}else g=Cn(n.getDate().next().greg()),d=";VALUE=DATE",c&e.flags.CHAG&&(m="OPAQUE",p="OOF");const E=yn(o);let A="hebcal-".concat(T,"-").concat(E);l&&r.location&&(r.location.geoid?A+="-".concat(r.location.geoid):r.location.name&&(A+="-"+e.hebcal.makeAnchor(r.location.name))),o=o.replace(/,/g,"\\,");const y=["BEGIN:VEVENT","DTSTAMP:".concat(a),"CATEGORIES:Holiday","CLASS:PUBLIC","SUMMARY:".concat(o),"DTSTART".concat(d,":").concat(S),"DTEND".concat(d,":").concat(g),"TRANSP:".concat(m),"X-MICROSOFT-CDO-BUSYSTATUS:".concat(p),"UID:".concat(A)];let b;return Ln(y,"DESCRIPTION",f),Ln(y,"LOCATION",u),l&&r.location&&y.push("GEO:"+r.location.latitude+";"+r.location.longitude),h&&y.push("URL:".concat(h)),n.getFlags()&e.flags.OMER_COUNT?b="3H":n.getFlags()&e.flags.USER_EVENT?b="12H":l&&i.startsWith("Candle lighting")&&(b="10M"),b&&y.push("BEGIN:VALARM","ACTION:DISPLAY","DESCRIPTION:REMINDER","TRIGGER;RELATED=START:-PT".concat(b),"END:VALARM"),y.push("END:VEVENT"),y.join("\r\n")}const Gn='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';function Pn(t,n){const r=t.getDate().greg(),a=r.getDate(),o=r.getMonth()+1,i=String(r.getFullYear()).padStart(4,"0"),s=n.euro?"".concat(a,"/").concat(o,"/").concat(i):"".concat(o,"/").concat(a,"/").concat(i);let c=t.render(),l="",u="",h="",f='"true"';const T=t.getAttrs(),d=Boolean(T.eventTime);if(d){const t=e.hebcal.reformatTimeStr(T.eventTimeStr," PM",n);u=l='"'.concat(t,'"'),h=s,f='"false"';const r=c.indexOf(": ");-1!=r&&(c=c.substring(0,r))}let g="Jewish Holidays";const S=t.getFlags();if(d&&n.location&&n.location.name)g=n.location.name;else if(S&e.flags.DAF_YOMI){const e=c.indexOf(": ");-1!=e&&(g=c.substring(0,e),c=c.substring(e+2))}c=c.replace(/,/g,"").replace(/"/g,"''");const m=(T.memo||"").replace(/,/g,";").replace(/"/g,"''"),p=d||S&e.flags.CHAG?4:3;return'"'.concat(c,'",').concat(s,",").concat(l,",").concat(h,",").concat(u,",").concat(f,',"').concat(m,'",').concat(p,',"').concat(g,'"')}var Zn=w.f,xn=i.Symbol;if(c&&"function"==typeof xn&&(!("description"in xn.prototype)||void 0!==xn().description)){var Un={},_n=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof _n?new xn(e):void 0===e?xn():xn(e);return""===e&&(Un[t]=!0),t};ye(_n,xn);var kn=_n.prototype=xn.prototype;kn.constructor=_n;var jn=kn.toString,Vn="Symbol(test)"==String(xn("test")),zn=/^Symbol\((.*)\)[^)]+$/;Zn(kn,"description",{configurable:!0,get:function(){var e=E(this)?this.valueOf():this,t=jn.call(e);if(b(Un,e))return"";var n=Vn?t.slice(7,-1):t.replace(zn,"$1");return""===n?void 0:n}}),Fe({global:!0,forced:!0},{Symbol:_n})}return{countryNames:{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"},eventToCsv:Pn,eventsToCsv:function(e,t){return[Gn].concat(e.map(e=>Pn(e,t))).join("\r\n")},eventToIcal:Yn,eventsToIcalendar:function(e,t){let r=[];r.push("BEGIN:VCALENDAR"),r.push("VERSION:2.0");const a=(t.locale||"en").toUpperCase();r.push("PRODID:-//hebcal.com/NONSGML Hebcal Calendar v7.0//".concat(a),"CALSCALE:GREGORIAN","METHOD:PUBLISH","X-LOTUS-CHARSET:UTF-8","X-PUBLISHED-TTL:PT7D");const o=Fn(e,t);r.push("X-WR-CALNAME:".concat(o));const i=t.yahrzeit?"Yahrzeits + Anniversaries from www.hebcal.com":"Jewish Holidays from www.hebcal.com";r.push("X-WR-CALDESC:".concat(i));const s=t.location;if(s&&s.tzid){const e=s.tzid;if(r.push("X-WR-TIMEZONE;VALUE=TEXT:".concat(e)),Hn[e])r.push(Hn[e]);else try{const t="./zoneinfo/".concat(e,".ics"),a=n.readFileSync(t,"utf-8").split("\r\n"),o=a.slice(3,a.length-2).join("\r\n");r.push(o),Hn[e]=o}catch(e){}}return t.dtstamp=Bn(new Date),r=r.concat(e.map(e=>Yn(e,t))),r.push("END:VCALENDAR"),r.join("\r\n")},eventToFullCalendar:function(n,r,a){const o=n.getAttrs(),i=Mn(n);"holiday"==i[0]&&n.getFlags()&e.flags.CHAG&&i.push("yomtov");let s=n.render();const c=n.getDesc();if("Havdalah"==c||"Candle lighting"==c){const e=s.indexOf(":");-1!=e&&(s=s.substring(0,e))}else if(n.getFlags()&e.flags.DAF_YOMI){const e=s.indexOf(":");-1!=e&&(s=s.substring(e+1))}const l={title:s,start:In(n.getDate().greg(),o.eventTimeStr,r),allDay:!Boolean(o.eventTime),className:i.join(" ")};let u=n.renderBrief("he");if(u){const t=u.indexOf(":");-1!=t&&n.getFlags()&e.flags.DAF_YOMI&&(u=u.substring(t+1)),l.hebrew=e.hebcal.hebrewStripNikkud(u)}const h=n.url();if(h)if(h.startsWith("https://www.hebcal.com"))l.url=h+"?utm_source=js&utm_medium=fc";else{const e=-1==h.indexOf("?")?"?":"&";l.url=h+e+"utm_source=hebcal.com&utm_medium=fc"}if(n.getFlags()&e.flags.PARSHA_HASHAVUA){const e=t.getLeyningForParshaHaShavua(n,a);if(e){let n="Torah: ".concat(e.summary);if(e.reason)for(const r of["7","8","M"])if(e.reason[r]){const a=Number(r)?"".concat(r,"th aliyah"):"Maftir";n+="\n<br>".concat(a,": ")+t.formatAliyahWithBook(e.fullkriyah[r])+" | "+e.reason[r]}e.haftara&&(n+="\n<br>Haftarah: "+e.haftara,e.reason&&e.reason.haftara&&(n+=" | "+e.reason.haftara)),e.sephardic&&(n+="\n<br>Haftarah for Sephardim: "+e.sephardic),l.description=n}}else{const e=o.memo||wn[n.basename()];e&&(l.description=e)}return l},getCalendarTitle:Fn,getDownloadFilename:function(e){let t="hebcal_"+e.year;return e.isHebrewYear&&(t+="H"),e.month&&(t+="_"+e.month),e.location&&e.location.name&&(t+="_"+makeAnchor(e.location.name)),t},getEventCategories:Mn,pad2:On,timeZoneOffsetStr:Dn,toISOString:Nn,toISOStringWithTimezone:In}})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@hebcal/core"),require("@hebcal/leyning"),require("fs")):"function"==typeof define&&define.amd?define(["@hebcal/core","@hebcal/leyning","fs"],t):(e=e||self).hebcal__icalendar=t(e.hebcal__core,e.hebcal__leyning,e.fs)}(this,(function(e,t,n){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof r&&r)||Function("return this")(),s=function(e){try{return!!e()}catch(e){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,h={f:u&&!l.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:l},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T={}.toString,d=function(e){return T.call(e).slice(8,-1)},g="".split,S=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?g.call(e,""):Object(e)}:Object,p=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},m=function(e){return S(p(e))},E=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!E(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!E(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},A={}.hasOwnProperty,b=function(e,t){return A.call(e,t)},v=i.document,R=E(v)&&E(v.createElement),O=function(e){return R?v.createElement(e):{}},D=!c&&!s((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,I={f:c?N:function(e,t){if(e=m(e),t=y(t,!0),D)try{return N(e,t)}catch(e){}if(b(e,t))return f(!h.f.call(e,t),e[t])}},M=function(e){if(!E(e))throw TypeError(String(e)+" is not an object");return e},F=Object.defineProperty,w={f:c?F:function(e,t,n){if(M(e),t=y(t,!0),M(n),D)try{return F(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},C=c?function(e,t,n){return w.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},H=function(e,t){try{C(i,e,t)}catch(n){i[e]=t}return t},B=i["__core-js_shared__"]||H("__core-js_shared__",{}),L=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(e){return L.call(e)});var Y,G,P,Z=B.inspectSource,x=i.WeakMap,U="function"==typeof x&&/native code/.test(Z(x)),_=a((function(e){(e.exports=function(e,t){return B[e]||(B[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),k=0,j=Math.random(),V=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++k+j).toString(36)},z=_("keys"),K=function(e){return z[e]||(z[e]=V(e))},W={},J=i.WeakMap;if(U){var Q=new J,$=Q.get,X=Q.has,q=Q.set;Y=function(e,t){return q.call(Q,e,t),t},G=function(e){return $.call(Q,e)||{}},P=function(e){return X.call(Q,e)}}else{var ee=K("state");W[ee]=!0,Y=function(e,t){return C(e,ee,t),t},G=function(e){return b(e,ee)?e[ee]:{}},P=function(e){return b(e,ee)}}var te={set:Y,get:G,has:P,enforce:function(e){return P(e)?G(e):Y(e,{})},getterFor:function(e){return function(t){var n;if(!E(t)||(n=G(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=a((function(e){var t=te.get,n=te.enforce,r=String(String).split("String");(e.exports=function(e,t,a,o){var s=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof a&&("string"!=typeof t||b(a,"name")||C(a,"name",t),n(a).source=r.join("string"==typeof t?t:"")),e!==i?(s?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=a:C(e,t,a)):c?e[t]=a:H(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Z(this)}))})),re=i,ae=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?ae(re[e])||ae(i[e]):re[e]&&re[e][t]||i[e]&&i[e][t]},ie=Math.ceil,se=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?se:ie)(e)},le=Math.min,ue=function(e){return e>0?le(ce(e),9007199254740991):0},he=Math.max,fe=Math.min,Te=function(e){return function(t,n,r){var a,o=m(t),i=ue(o.length),s=function(e,t){var n=ce(e);return n<0?he(n+t,0):fe(n,t)}(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},de={includes:Te(!0),indexOf:Te(!1)}.indexOf,ge=function(e,t){var n,r=m(e),a=0,o=[];for(n in r)!b(W,n)&&b(r,n)&&o.push(n);for(;t.length>a;)b(r,n=t[a++])&&(~de(o,n)||o.push(n));return o},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pe=Se.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(e){return ge(e,pe)}},Ee={f:Object.getOwnPropertySymbols},ye=oe("Reflect","ownKeys")||function(e){var t=me.f(M(e)),n=Ee.f;return n?t.concat(n(e)):t},Ae=function(e,t){for(var n=ye(t),r=w.f,a=I.f,o=0;o<n.length;o++){var i=n[o];b(e,i)||r(e,i,a(t,i))}},be=/#|\.prototype\./,ve=function(e,t){var n=Oe[Re(e)];return n==Ne||n!=De&&("function"==typeof t?s(t):!!t)},Re=ve.normalize=function(e){return String(e).replace(be,".").toLowerCase()},Oe=ve.data={},De=ve.NATIVE="N",Ne=ve.POLYFILL="P",Ie=ve,Me=I.f,Fe=function(e,t){var n,r,a,o,s,c=e.target,l=e.global,u=e.stat;if(n=l?i:u?i[c]||H(c,{}):(i[c]||{}).prototype)for(r in t){if(o=t[r],a=e.noTargetGet?(s=Me(n,r))&&s.value:n[r],!Ie(l?r:c+(u?".":"#")+r,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Ae(o,a)}(e.sham||a&&a.sham)&&C(o,"sham",!0),ne(n,r,o,e)}},we=function(){var e=M(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};function Ce(e,t){return RegExp(e,t)}var He,Be,Le={UNSUPPORTED_Y:s((function(){var e=Ce("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:s((function(){var e=Ce("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Ye=RegExp.prototype.exec,Ge=String.prototype.replace,Pe=Ye,Ze=(He=/a/,Be=/b*/g,Ye.call(He,"a"),Ye.call(Be,"a"),0!==He.lastIndex||0!==Be.lastIndex),xe=Le.UNSUPPORTED_Y||Le.BROKEN_CARET,Ue=void 0!==/()??/.exec("")[1];(Ze||Ue||xe)&&(Pe=function(e){var t,n,r,a,o=this,i=xe&&o.sticky,s=we.call(o),c=o.source,l=0,u=e;return i&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),Ue&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Ze&&(t=o.lastIndex),r=Ye.call(i?n:o,u),i?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Ze&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Ue&&r&&r.length>1&&Ge.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r});var _e=Pe;Fe({target:"RegExp",proto:!0,forced:/./.exec!==_e},{exec:_e});var ke=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),je=ke&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ve=_("wks"),ze=i.Symbol,Ke=je?ze:ze&&ze.withoutSetter||V,We=function(e){return b(Ve,e)||(ke&&b(ze,e)?Ve[e]=ze[e]:Ve[e]=Ke("Symbol."+e)),Ve[e]},Je=We("species"),Qe=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),$e="$0"==="a".replace(/./,"$0"),Xe=We("replace"),qe=!!/./[Xe]&&""===/./[Xe]("a","$0"),et=!s((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),tt=function(e,t,n,r){var a=We(e),o=!s((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),i=o&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Je]=function(){return n},n.flags="",n[a]=/./[a]),n.exec=function(){return t=!0,null},n[a](""),!t}));if(!o||!i||"replace"===e&&(!Qe||!$e||qe)||"split"===e&&!et){var c=/./[a],l=n(a,""[e],(function(e,t,n,r,a){return t.exec===_e?o&&!a?{done:!0,value:c.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:$e,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qe}),u=l[0],h=l[1];ne(String.prototype,e,u),ne(RegExp.prototype,a,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)})}r&&C(RegExp.prototype[a],"sham",!0)},nt=function(e){return Object(p(e))},rt=function(e){return function(t,n){var r,a,o=String(p(t)),i=ce(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=o.charCodeAt(i))<55296||r>56319||i+1===s||(a=o.charCodeAt(i+1))<56320||a>57343?e?o.charAt(i):r:e?o.slice(i,i+2):a-56320+(r-55296<<10)+65536}},at={codeAt:rt(!1),charAt:rt(!0)}.charAt,ot=function(e,t,n){return t+(n?at(e,t).length:1)},it=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==d(e))throw TypeError("RegExp#exec called on incompatible receiver");return _e.call(e,t)},st=Math.max,ct=Math.min,lt=Math.floor,ut=/\$([$&'`]|\d\d?|<[^>]*>)/g,ht=/\$([$&'`]|\d\d?)/g;tt("replace",2,(function(e,t,n,r){var a=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,i=a?"$":"$0";return[function(n,r){var a=p(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,a,r):t.call(String(a),n,r)},function(e,r){if(!a&&o||"string"==typeof r&&-1===r.indexOf(i)){var c=n(t,e,this,r);if(c.done)return c.value}var l=M(e),u=String(this),h="function"==typeof r;h||(r=String(r));var f=l.global;if(f){var T=l.unicode;l.lastIndex=0}for(var d=[];;){var g=it(l,u);if(null===g)break;if(d.push(g),!f)break;""===String(g[0])&&(l.lastIndex=ot(u,ue(l.lastIndex),T))}for(var S,p="",m=0,E=0;E<d.length;E++){g=d[E];for(var y=String(g[0]),A=st(ct(ce(g.index),u.length),0),b=[],v=1;v<g.length;v++)b.push(void 0===(S=g[v])?S:String(S));var R=g.groups;if(h){var O=[y].concat(b,A,u);void 0!==R&&O.push(R);var D=String(r.apply(void 0,O))}else D=s(y,u,A,b,R,r);A>=m&&(p+=u.slice(m,A)+D,m=A+y.length)}return p+u.slice(m)}];function s(e,n,r,a,o,i){var s=r+e.length,c=a.length,l=ht;return void 0!==o&&(o=nt(o),l=ut),t.call(i,l,(function(t,i){var l;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var h=lt(u/10);return 0===h?t:h<=c?void 0===a[h-1]?i.charAt(1):a[h-1]+i.charAt(1):t}l=a[u-1]}return void 0===l?"":l}))}}));var ft=We("match"),Tt=function(e){var t;return E(e)&&(void 0!==(t=e[ft])?!!t:"RegExp"==d(e))},dt=We("species"),gt=function(e,t){var n,r=M(e).constructor;return void 0===r||null==(n=M(r)[dt])?t:function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}(n)},St=[].push,pt=Math.min,mt=!s((function(){return!RegExp(4294967295,"y")}));tt("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(p(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!Tt(e))return t.call(r,e,a);for(var o,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=new RegExp(e.source,l+"g");(o=_e.call(h,r))&&!((i=h.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&St.apply(c,o.slice(1)),s=o[0].length,u=i,c.length>=a));)h.lastIndex===o.index&&h.lastIndex++;return u===r.length?!s&&h.test("")||c.push(""):c.push(r.slice(u)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var a=p(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,a,n):r.call(String(a),t,n)},function(e,a){var o=n(r,e,this,a,r!==t);if(o.done)return o.value;var i=M(e),s=String(this),c=gt(i,RegExp),l=i.unicode,u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mt?"y":"g"),h=new c(mt?i:"^(?:"+i.source+")",u),f=void 0===a?4294967295:a>>>0;if(0===f)return[];if(0===s.length)return null===it(h,s)?[s]:[];for(var T=0,d=0,g=[];d<s.length;){h.lastIndex=mt?d:0;var S,p=it(h,mt?s:s.slice(d));if(null===p||(S=pt(ue(h.lastIndex+(mt?0:d)),s.length))===T)d=ot(s,d,l);else{if(g.push(s.slice(T,d)),g.length===f)return g;for(var m=1;m<=p.length-1;m++)if(g.push(p[m]),g.length===f)return g;d=T=S}}return g.push(s.slice(T)),g}]}),!mt);var Et,yt=function(e){if(Tt(e))throw TypeError("The method doesn't accept regular expressions");return e},At=We("match"),bt=I.f,vt="".startsWith,Rt=Math.min,Ot=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[At]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith"),Dt=!(Ot||(Et=bt(String.prototype,"startsWith"),!Et||Et.writable));Fe({target:"String",proto:!0,forced:!Dt&&!Ot},{startsWith:function(e){var t=String(p(this));yt(e);var n=ue(Rt(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return vt?vt.call(t,r,n):t.slice(n,n+r.length)===r}});var Nt,It={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},Mt=Object.keys||function(e){return ge(e,Se)},Ft=c?Object.defineProperties:function(e,t){M(e);for(var n,r=Mt(t),a=r.length,o=0;a>o;)w.f(e,n=r[o++],t[n]);return e},wt=oe("document","documentElement"),Ct=K("IE_PROTO"),Ht=function(){},Bt=function(e){return"<script>"+e+"<\/script>"},Lt=function(){try{Nt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Lt=Nt?function(e){e.write(Bt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Nt):((t=O("iframe")).style.display="none",wt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Bt("document.F=Object")),e.close(),e.F);for(var n=Se.length;n--;)delete Lt.prototype[Se[n]];return Lt()};W[Ct]=!0;var Yt=Object.create||function(e,t){var n;return null!==e?(Ht.prototype=M(e),n=new Ht,Ht.prototype=null,n[Ct]=e):n=Lt(),void 0===t?n:Ft(n,t)},Gt=We("unscopables"),Pt=Array.prototype;null==Pt[Gt]&&w.f(Pt,Gt,{configurable:!0,value:Yt(null)});var Zt,xt,Ut,_t=function(e){Pt[Gt][e]=!0},kt=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jt=K("IE_PROTO"),Vt=Object.prototype,zt=kt?Object.getPrototypeOf:function(e){return e=nt(e),b(e,jt)?e[jt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Vt:null},Kt=We("iterator"),Wt=!1;[].keys&&("next"in(Ut=[].keys())?(xt=zt(zt(Ut)))!==Object.prototype&&(Zt=xt):Wt=!0),null==Zt&&(Zt={}),b(Zt,Kt)||C(Zt,Kt,(function(){return this}));var Jt={IteratorPrototype:Zt,BUGGY_SAFARI_ITERATORS:Wt},Qt=w.f,$t=We("toStringTag"),Xt=function(e,t,n){e&&!b(e=n?e:e.prototype,$t)&&Qt(e,$t,{configurable:!0,value:t})},qt=Jt.IteratorPrototype,en=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return M(n),function(e){if(!E(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),tn=Jt.IteratorPrototype,nn=Jt.BUGGY_SAFARI_ITERATORS,rn=We("iterator"),an=function(){return this},on=te.set,sn=te.getterFor("Array Iterator"),cn=function(e,t,n,r,a,o,i){!function(e,t,n){var r=t+" Iterator";e.prototype=Yt(qt,{next:f(1,n)}),Xt(e,r,!1)}(n,t,r);var s,c,l,u=function(e){if(e===a&&S)return S;if(!nn&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",T=!1,d=e.prototype,g=d[rn]||d["@@iterator"]||a&&d[a],S=!nn&&g||u(a),p="Array"==t&&d.entries||g;if(p&&(s=zt(p.call(new e)),tn!==Object.prototype&&s.next&&(zt(s)!==tn&&(en?en(s,tn):"function"!=typeof s[rn]&&C(s,rn,an)),Xt(s,h,!0))),"values"==a&&g&&"values"!==g.name&&(T=!0,S=function(){return g.call(this)}),d[rn]!==S&&C(d,rn,S),a)if(c={values:u("values"),keys:o?S:u("keys"),entries:u("entries")},i)for(l in c)(nn||T||!(l in d))&&ne(d,l,c[l]);else Fe({target:t,proto:!0,forced:nn||T},c);return c}(Array,"Array",(function(e,t){on(this,{type:"Array Iterator",target:m(e),index:0,kind:t})}),(function(){var e=sn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");_t("keys"),_t("values"),_t("entries");var ln=We("iterator"),un=We("toStringTag"),hn=cn.values;for(var fn in It){var Tn=i[fn],dn=Tn&&Tn.prototype;if(dn){if(dn[ln]!==hn)try{C(dn,ln,hn)}catch(e){dn[ln]=hn}if(dn[un]||C(dn,un,fn),It[fn])for(var gn in cn)if(dn[gn]!==cn[gn])try{C(dn,gn,cn[gn])}catch(e){dn[gn]=cn[gn]}}}var Sn=a((function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var a=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?n.push(t.charAt(a>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,a=0;r<e.length;a=++r%4)0!=a&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(e.charAt(r))>>>6-2*a);return n}};e.exports=n}()})),pn={utf8:{stringToBytes:function(e){return pn.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(pn.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},mn=pn,En=function(e){return null!=e&&(yn(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&yn(e.slice(0,0))}(e)||!!e._isBuffer)};function yn(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var An=a((function(e){!function(){var t=Sn,n=mn.utf8,r=En,a=mn.bin,o=function(e,i){e.constructor==String?e=i&&"binary"===i.encoding?a.stringToBytes(e):n.stringToBytes(e):r(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var s=t.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,h=-1732584194,f=271733878,T=0;T<s.length;T++)s[T]=16711935&(s[T]<<8|s[T]>>>24)|4278255360&(s[T]<<24|s[T]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var d=o._ff,g=o._gg,S=o._hh,p=o._ii;for(T=0;T<s.length;T+=16){var m=l,E=u,y=h,A=f;l=d(l,u,h,f,s[T+0],7,-680876936),f=d(f,l,u,h,s[T+1],12,-389564586),h=d(h,f,l,u,s[T+2],17,606105819),u=d(u,h,f,l,s[T+3],22,-1044525330),l=d(l,u,h,f,s[T+4],7,-176418897),f=d(f,l,u,h,s[T+5],12,1200080426),h=d(h,f,l,u,s[T+6],17,-1473231341),u=d(u,h,f,l,s[T+7],22,-45705983),l=d(l,u,h,f,s[T+8],7,1770035416),f=d(f,l,u,h,s[T+9],12,-1958414417),h=d(h,f,l,u,s[T+10],17,-42063),u=d(u,h,f,l,s[T+11],22,-1990404162),l=d(l,u,h,f,s[T+12],7,1804603682),f=d(f,l,u,h,s[T+13],12,-40341101),h=d(h,f,l,u,s[T+14],17,-1502002290),l=g(l,u=d(u,h,f,l,s[T+15],22,1236535329),h,f,s[T+1],5,-165796510),f=g(f,l,u,h,s[T+6],9,-1069501632),h=g(h,f,l,u,s[T+11],14,643717713),u=g(u,h,f,l,s[T+0],20,-373897302),l=g(l,u,h,f,s[T+5],5,-701558691),f=g(f,l,u,h,s[T+10],9,38016083),h=g(h,f,l,u,s[T+15],14,-660478335),u=g(u,h,f,l,s[T+4],20,-405537848),l=g(l,u,h,f,s[T+9],5,568446438),f=g(f,l,u,h,s[T+14],9,-1019803690),h=g(h,f,l,u,s[T+3],14,-187363961),u=g(u,h,f,l,s[T+8],20,1163531501),l=g(l,u,h,f,s[T+13],5,-1444681467),f=g(f,l,u,h,s[T+2],9,-51403784),h=g(h,f,l,u,s[T+7],14,1735328473),l=S(l,u=g(u,h,f,l,s[T+12],20,-1926607734),h,f,s[T+5],4,-378558),f=S(f,l,u,h,s[T+8],11,-2022574463),h=S(h,f,l,u,s[T+11],16,1839030562),u=S(u,h,f,l,s[T+14],23,-35309556),l=S(l,u,h,f,s[T+1],4,-1530992060),f=S(f,l,u,h,s[T+4],11,1272893353),h=S(h,f,l,u,s[T+7],16,-155497632),u=S(u,h,f,l,s[T+10],23,-1094730640),l=S(l,u,h,f,s[T+13],4,681279174),f=S(f,l,u,h,s[T+0],11,-358537222),h=S(h,f,l,u,s[T+3],16,-722521979),u=S(u,h,f,l,s[T+6],23,76029189),l=S(l,u,h,f,s[T+9],4,-640364487),f=S(f,l,u,h,s[T+12],11,-421815835),h=S(h,f,l,u,s[T+15],16,530742520),l=p(l,u=S(u,h,f,l,s[T+2],23,-995338651),h,f,s[T+0],6,-198630844),f=p(f,l,u,h,s[T+7],10,1126891415),h=p(h,f,l,u,s[T+14],15,-1416354905),u=p(u,h,f,l,s[T+5],21,-57434055),l=p(l,u,h,f,s[T+12],6,1700485571),f=p(f,l,u,h,s[T+3],10,-1894986606),h=p(h,f,l,u,s[T+10],15,-1051523),u=p(u,h,f,l,s[T+1],21,-2054922799),l=p(l,u,h,f,s[T+8],6,1873313359),f=p(f,l,u,h,s[T+15],10,-30611744),h=p(h,f,l,u,s[T+6],15,-1560198380),u=p(u,h,f,l,s[T+13],21,1309151649),l=p(l,u,h,f,s[T+4],6,-145523070),f=p(f,l,u,h,s[T+11],10,-1120210379),h=p(h,f,l,u,s[T+2],15,718787259),u=p(u,h,f,l,s[T+9],21,-343485551),l=l+m>>>0,u=u+E>>>0,h=h+y>>>0,f=f+A>>>0}return t.endian([l,u,h,f])};o._ff=function(e,t,n,r,a,o,i){var s=e+(t&n|~t&r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._gg=function(e,t,n,r,a,o,i){var s=e+(t&r|n&~r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._hh=function(e,t,n,r,a,o,i){var s=e+(t^n^r)+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._ii=function(e,t,n,r,a,o,i){var s=e+(n^(t|~r))+(a>>>0)+i;return(s<<o|s>>>32-o)+t},o._blocksize=16,o._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(o(e,n));return n&&n.asBytes?r:n&&n.asString?a.bytesToString(r):t.bytesToHex(r)}}()}));const bn=new Map;const vn=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Rn(e,t){const n=function(e){const t=bn.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return bn.set(e,n),n}(e).format(t);let[,r,a,o,i,s,c]=vn.exec(n);return"24"==i&&(i="00"),"".concat(o,"-").concat(r,"-").concat(a,"T").concat(i,":").concat(s,":").concat(c,"Z")}function On(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Dn(e){return e<10?"0"+e:String(e)}function Nn(e,t){const n=function(e,t){const n=Rn("UTC",t),r=Rn(e,t),a=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(a/1e3/60)}(e,t),r=Math.abs(n),a=r%60;return(Boolean(n<0)?"+":"-")+Dn(Math.floor(r/60))+":"+Dn(a)}function In(e){return e.getFullYear()+"-"+Dn(e.getMonth()+1)+"-"+Dn(e.getDate())}function Mn(e,t,n){const r=In(e);return t?r+"T"+t+":00"+Nn(n,e):r}function Fn(t){switch(t.getFlags()){case e.flags.OMER_COUNT:return["omer"];case e.flags.HEBREW_DATE:return["hebdate"];case e.flags.PARSHA_HASHAVUA:return["parashat"];case e.flags.DAF_YOMI:return["dafyomi"];case e.flags.ROSH_CHODESH:return["roshchodesh"];case e.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case e.flags.MINOR_FAST:return["holiday","fast"];case e.flags.MODERN_HOLIDAY:return["holiday","modern"];case e.flags.SHABBAT_MEVARCHIM:return["mevarchim"]}if(t.getAttrs().cholHaMoedDay)return["holiday","major","cholhamoed"];switch(t.getDesc()){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function wn(e,t){let n="Hebcal";const r=t.location;if(t.yahrzeit)n+=" Yahrzeits and Anniversaries";else if(r&&r.name){const e=r.name.indexOf(",");n+=" "+(-1==e?r.name:r.name.substring(0,e))}else t.il?n+=" Israel":n+=" Diaspora";if(t.isHebrewYear)n+=" "+t.year;else{const t=e[0].getDate().greg(),r=e[e.length-1].getDate().greg();if(t.getFullYear()!=r.getFullYear())n+=" "+t.getFullYear()+"-"+r.getFullYear();else if(t.getMonth()==r.getMonth()){n+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else n+=" "+t.getFullYear()}return n}var Cn={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"The Jewish festival of rededication, also known as the Festival of Lights. Sometimes spelled Hanukkah, Chanukkah, Hanukah, or Hannukah","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:"Purim is one of the most joyous and fun holidays on the Jewish calendar. It commemorates a time when the Jewish people living in Persia were saved from extermination","Rosh Chodesh Adar I":"Beginning of new Hebrew month of Adar I (on leap years). Adar I is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Adar II":'Beginning of new Hebrew month of Adar II (on leap years). Adar II (sometimes "Adar Bet" or "Adar Sheni") is the 13th month of the Hebrew year, ocurring only on leap years. Corresponds to February or March on the Gregorian calendar',"Rosh Chodesh Adar":"Beginning of new Hebrew month of Adar. Adar is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Av":"Beginning of new Hebrew month of Av. Av is the 5th month of the Hebrew year. Corresponds to July or August on the Gregorian calendar","Rosh Chodesh Cheshvan":"Beginning of new Hebrew month of Cheshvan. Cheshvan is the 8th month of the Hebrew year. Corresponds to October or November on the Gregorian calendar","Rosh Chodesh Elul":"Beginning of new Hebrew month of Elul. Elul is the 6th month of the Hebrew year. Corresponds to August or September on the Gregorian calendar","Rosh Chodesh Iyyar":"Beginning of new Hebrew month of Iyyar. Iyyar (somtimes transliterated Iyar) is the 2nd month of the Hebrew year. Corresponds to April or May on the Gregorian calendar","Rosh Chodesh Kislev":"Beginning of new Hebrew month of Kislev. Kislev is the 9th month of the Hebrew year. Corresponds to November or December on the Gregorian calendar","Rosh Chodesh Nisan":"Beginning of new Hebrew month of Nisan. Nisan (sometimes transliterated Nissan) is the 1st month of the Hebrew year. rresponds to March or April on the Gregorian calendar","Rosh Chodesh Sh'vat":"Beginning of new Hebrew month of Sh'vat. Sh'vat (sometimes transliterated Shevat) is the 11th month of the Hebrew year. Corresponds to January or February on the Gregorian calendar","Rosh Chodesh Sivan":"Beginning of new Hebrew month of Sivan. Sivan is the 3rd month of the Hebrew year. Corresponds to May or June on the Gregorian calendar","Rosh Chodesh Tamuz":"Beginning of new Hebrew month of Tamuz. Tamuz (sometimes transliterated Tammuz) is the 4th month of the Hebrew year. Corresponds to June or July on the Gregorian calendar","Rosh Chodesh Tevet":"Beginning of new Hebrew month of Tevet. Tevet is the 10th month of the Hebrew year. Corresponds to December or January on the Gregorian calendar","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","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 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 Tabernacles","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 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 preceeds 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"};const Hn={"US/Eastern":"BEGIN:VTIMEZONE\r\nTZID:US/Eastern\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0400\r\nTZNAME:EST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0400\r\nTZOFFSETFROM:-0500\r\nTZNAME:EDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Central":"BEGIN:VTIMEZONE\r\nTZID:US/Central\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0500\r\nTZNAME:CST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0600\r\nTZNAME:CDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Mountain":"BEGIN:VTIMEZONE\r\nTZID:US/Mountain\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0600\r\nTZNAME:MST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0700\r\nTZNAME:MDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Pacific":"BEGIN:VTIMEZONE\r\nTZID:US/Pacific\r\nX-MICROSOFT-CDO-TZID:13\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETFROM:-0700\r\nTZOFFSETTO:-0800\r\nTZNAME:PST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETFROM:-0800\r\nTZOFFSETTO:-0700\r\nTZNAME:PDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Alaska":"BEGIN:VTIMEZONE\r\nTZID:US/Alaska\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:+0000\r\nTZNAME:AKST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0800\r\nTZOFFSETFROM:-0900\r\nTZNAME:AKDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Hawaii":"BEGIN:VTIMEZONE\r\nTZID:US/Hawaii\r\nLAST-MODIFIED:20060309T044821Z\r\nBEGIN:DAYLIGHT\r\nDTSTART:19330430T123000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:+0000\r\nTZNAME:HDT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19330521T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19420209T020000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-1030\r\nTZNAME:HWT\r\nEND:DAYLIGHT\r\nBEGIN:DAYLIGHT\r\nDTSTART:19450814T133000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-0930\r\nTZNAME:HPT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19450930T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:STANDARD\r\nDTSTART:19470608T020000\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-1030\r\nTZNAME:HST\r\nEND:STANDARD\r\nEND:VTIMEZONE","US/Aleutian":"BEGIN:VTIMEZONE\r\nTZID:US/Aleutian\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-0900\r\nTZNAME:HAST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:-1000\r\nTZNAME:HADT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","America/Phoenix":"BEGIN:VTIMEZONE\r\nTZID:America/Phoenix\r\nBEGIN:STANDARD\r\nDTSTART:19700101T000000\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0700\r\nEND:STANDARD\r\nEND:VTIMEZONE"};function Bn(e){return String(e.getFullYear()).padStart(4,"0")+Dn(e.getMonth()+1)+Dn(e.getDate())}function Ln(e){const t=e.toISOString();return t.slice(0,4)+t.slice(5,7)+t.slice(8,13)+t.slice(14,16)+t.slice(17,19)+"Z"}function Yn(e,t,n){if(n){const r=n.replace(/,/g,"\\,").replace(/;/g,"\\;");e.push(t+":"+r)}}function Gn(n,r){const a=r.dtstamp||Ln(new Date);let o=n.render();const i=n.getDesc(),s=n.getAttrs(),c=n.getFlags(),l=Boolean(s.eventTime);let u;if(l&&r.location.name){const e=r.location.name.indexOf(",");u=-1==e?r.location.name:r.location.name.substring(0,e)}if(c&e.flags.DAF_YOMI){const e=o.indexOf(": ");-1!=e&&(u=o.substring(0,e),o=o.substring(e+2))}const h=function(e){if(e){if(e.startsWith("https://www.hebcal.com"))return e+"?utm_source=js&utm_medium=icalendar";{const t=-1==e.indexOf("?")?"?":"&";return e+t+"utm_source=hebcal.com&utm_medium=icalendar"}}return e}(n.url());let f;if(c&e.flags.PARSHA_HASHAVUA){const e=t.getLeyningForParshaHaShavua(n,r.il);if(f="Torah: ".concat(e.summary),e.reason)for(const n of["7","8","M"])if(e.reason[n]){const r=Number(n)?"".concat(n,"th aliyah"):"Maftir";f+="\\n".concat(r,": ")+t.formatAliyahWithBook(e.fullkriyah[n])+" | "+e.reason[n]}e.haftara&&(f+="\\nHaftarah: "+e.haftara,e.reason&&e.reason.haftara&&(f+=" | "+e.reason.haftara)),e.sephardic&&(f+="\\nHaftarah for Sephardim: "+e.sephardic),f+="\\n\\n"+h}else{f=s.memo||Cn[n.basename()]||"";const e=t.getLeyningForHoliday(n,r.il);e&&(f+="\\nTorah: ".concat(e.summary),e.haftara&&(f+="\\nHaftarah: "+e.haftara)),h&&(f.length&&(f+="\\n\\n"),f+=h)}const T=Bn(n.getDate().greg());let d,g,S=T,p="TRANSPARENT",m="FREE";if(l){let[e,t]=s.eventTimeStr.split(":");Number(e)<12&&(e=12+Number(e)),S+="T"+function(e,t,n){return Dn(e)+Dn(t)+Dn(n)}(e,t,0),g=S,d=";TZID=".concat(r.location.tzid);const n=o.indexOf(": ");-1!=n&&(o=o.substring(0,n))}else g=Bn(n.getDate().next().greg()),d=";VALUE=DATE",c&e.flags.CHAG&&(p="OPAQUE",m="OOF");const E=An(o);let y="hebcal-".concat(T,"-").concat(E);l&&r.location&&(r.location.geoid?y+="-".concat(r.location.geoid):r.location.name&&(y+="-"+On(r.location.name))),o=o.replace(/,/g,"\\,");const A=c&e.flags.USER_EVENT?"Personal":"Holiday",b=["BEGIN:VEVENT","DTSTAMP:".concat(a),"CATEGORIES:".concat(A),"CLASS:PUBLIC","SUMMARY:".concat(o),"DTSTART".concat(d,":").concat(S),"DTEND".concat(d,":").concat(g),"TRANSP:".concat(p),"X-MICROSOFT-CDO-BUSYSTATUS:".concat(m),"UID:".concat(y)];let v;return Yn(b,"DESCRIPTION",f),Yn(b,"LOCATION",u),l&&r.location&&b.push("GEO:"+r.location.latitude+";"+r.location.longitude),h&&b.push("URL:".concat(h)),n.getFlags()&e.flags.OMER_COUNT?v="3H":n.getFlags()&e.flags.USER_EVENT?v="12H":l&&i.startsWith("Candle lighting")&&(v="10M"),v&&b.push("BEGIN:VALARM","ACTION:DISPLAY","DESCRIPTION:REMINDER","TRIGGER;RELATED=START:-PT".concat(v),"END:VALARM"),b.push("END:VEVENT"),b.join("\r\n")}const Pn='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';function Zn(t,n){const r=t.getDate().greg(),a=r.getDate(),o=r.getMonth()+1,i=String(r.getFullYear()).padStart(4,"0"),s=n.euro?"".concat(a,"/").concat(o,"/").concat(i):"".concat(o,"/").concat(a,"/").concat(i);let c=t.render(),l="",u="",h="",f='"true"';const T=t.getAttrs(),d=Boolean(T.eventTime);if(d){const t=e.HebrewCalendar.reformatTimeStr(T.eventTimeStr," PM",n);u=l='"'.concat(t,'"'),h=s,f='"false"';const r=c.indexOf(": ");-1!=r&&(c=c.substring(0,r))}let g="Jewish Holidays";const S=t.getFlags();if(d&&n.location&&n.location.name){const e=n.location.name.indexOf(",");g=-1==e?n.location.name:n.location.name.substring(0,e)}else if(S&e.flags.DAF_YOMI){const e=c.indexOf(": ");-1!=e&&(g=c.substring(0,e),c=c.substring(e+2))}c=c.replace(/,/g,"").replace(/"/g,"''");const p=(T.memo||"").replace(/,/g,";").replace(/"/g,"''"),m=d||S&e.flags.CHAG?4:3;return'"'.concat(c,'",').concat(s,",").concat(l,",").concat(h,",").concat(u,",").concat(f,',"').concat(p,'",').concat(m,',"').concat(g,'"')}var xn=w.f,Un=i.Symbol;if(c&&"function"==typeof Un&&(!("description"in Un.prototype)||void 0!==Un().description)){var _n={},kn=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof kn?new Un(e):void 0===e?Un():Un(e);return""===e&&(_n[t]=!0),t};Ae(kn,Un);var jn=kn.prototype=Un.prototype;jn.constructor=kn;var Vn=jn.toString,zn="Symbol(test)"==String(Un("test")),Kn=/^Symbol\((.*)\)[^)]+$/;xn(jn,"description",{configurable:!0,get:function(){var e=E(this)?this.valueOf():this,t=Vn.call(e);if(b(_n,e))return"";var n=zn?t.slice(7,-1):t.replace(Kn,"$1");return""===n?void 0:n}}),Fe({global:!0,forced:!0},{Symbol:kn})}return{countryNames:{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"},eventToCsv:Zn,eventsToCsv:function(e,t){return[Pn].concat(e.map(e=>Zn(e,t))).join("\r\n")},eventToIcal:Gn,eventsToIcalendar:function(e,t){let r=[];r.push("BEGIN:VCALENDAR"),r.push("VERSION:2.0");const a=(t.locale||"en").toUpperCase();r.push("PRODID:-//hebcal.com/NONSGML Hebcal Calendar v7.0//".concat(a),"CALSCALE:GREGORIAN","METHOD:PUBLISH","X-LOTUS-CHARSET:UTF-8","X-PUBLISHED-TTL:PT7D");const o=wn(e,t);r.push("X-WR-CALNAME:".concat(o));const i=t.yahrzeit?"Yahrzeits + Anniversaries from www.hebcal.com":"Jewish Holidays from www.hebcal.com";r.push("X-WR-CALDESC:".concat(i));const s=t.location;if(s&&s.tzid){const e=s.tzid;if(r.push("X-WR-TIMEZONE;VALUE=TEXT:".concat(e)),Hn[e])r.push(Hn[e]);else try{const t="./zoneinfo/".concat(e,".ics"),a=n.readFileSync(t,"utf-8").split("\r\n"),o=a.slice(3,a.length-2).join("\r\n");r.push(o),Hn[e]=o}catch(e){}}return t.dtstamp=Ln(new Date),r=r.concat(e.map(e=>Gn(e,t))),r.push("END:VCALENDAR"),r.join("\r\n")},eventToFullCalendar:function(n,r,a){const o=n.getAttrs(),i=Fn(n);"holiday"==i[0]&&n.getFlags()&e.flags.CHAG&&i.push("yomtov");let s=n.render();const c=n.getDesc();if("Havdalah"==c||"Candle lighting"==c){const e=s.indexOf(":");-1!=e&&(s=s.substring(0,e))}else if(n.getFlags()&e.flags.DAF_YOMI){const e=s.indexOf(":");-1!=e&&(s=s.substring(e+1))}const l={title:s,start:Mn(n.getDate().greg(),o.eventTimeStr,r),allDay:!Boolean(o.eventTime),className:i.join(" ")};let u=n.renderBrief("he");if(u){const t=u.indexOf(":");-1!=t&&n.getFlags()&e.flags.DAF_YOMI&&(u=u.substring(t+1)),l.hebrew=e.Locale.hebrewStripNikkud(u)}const h=n.url();if(h)if(h.startsWith("https://www.hebcal.com"))l.url=h+"?utm_source=js&utm_medium=fc";else{const e=-1==h.indexOf("?")?"?":"&";l.url=h+e+"utm_source=hebcal.com&utm_medium=fc"}if(n.getFlags()&e.flags.PARSHA_HASHAVUA){const e=t.getLeyningForParshaHaShavua(n,a);if(e){let n="Torah: ".concat(e.summary);if(e.reason)for(const r of["7","8","M"])if(e.reason[r]){const a=Number(r)?"".concat(r,"th aliyah"):"Maftir";n+="\n<br>".concat(a,": ")+t.formatAliyahWithBook(e.fullkriyah[r])+" | "+e.reason[r]}e.haftara&&(n+="\n<br>Haftarah: "+e.haftara,e.reason&&e.reason.haftara&&(n+=" | "+e.reason.haftara)),e.sephardic&&(n+="\n<br>Haftarah for Sephardim: "+e.sephardic),l.description=n}}else{const e=o.memo||Cn[n.basename()];e&&(l.description=e)}return l},getCalendarTitle:wn,getDownloadFilename:function(e){let t="hebcal_"+e.year;return e.isHebrewYear&&(t+="H"),e.month&&(t+="_"+e.month),e.location&&e.location.name&&(t+="_"+On(e.location.name)),t},getEventCategories:Fn,makeAnchor:On,pad2:Dn,timeZoneOffsetStr:Nn,toISOString:In,toISOStringWithTimezone:Mn}})); |
{ | ||
"name": "@hebcal/icalendar", | ||
"version": "1.0.6", | ||
"version": "2.0.0", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@hebcal/core": "^1.2.2", | ||
"@hebcal/leyning": "^1.1.2" | ||
"@hebcal/core": "^2.0.0", | ||
"@hebcal/leyning": "^2.0.0" | ||
}, | ||
@@ -57,5 +57,5 @@ "scripts": { | ||
"@ava/babel": "^1.0.1", | ||
"@babel/core": "^7.10.3", | ||
"@babel/preset-env": "^7.10.3", | ||
"@babel/register": "^7.10.3", | ||
"@babel/core": "^7.10.4", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/register": "^7.10.4", | ||
"@rollup/plugin-babel": "^5.0.4", | ||
@@ -67,3 +67,3 @@ "@rollup/plugin-commonjs": "^12.0.0", | ||
"core-js": "^3.6.5", | ||
"eslint": "^7.3.0", | ||
"eslint": "^7.3.1", | ||
"eslint-config-google": "^0.14.0", | ||
@@ -70,0 +70,0 @@ "jsdoc": "^3.6.4", |
@@ -11,3 +11,3 @@ # hebcal-icalendar | ||
```javascript | ||
import {hebcal, Location} from '@hebcal/core'; | ||
import {HebrewCalendar, Location} from '@hebcal/core'; | ||
import icalendar from '@hebcal/icalendar'; | ||
@@ -22,3 +22,3 @@ | ||
}; | ||
const events = hebcal.hebrewCalendar(options); | ||
const events = HebrewCalendar.calendar(options); | ||
console.log(icalendar.eventsToIcalendar(ev, options)); | ||
@@ -25,0 +25,0 @@ ``` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158322
2528
+ Added@hebcal/core@2.13.0(transitive)
+ Added@hebcal/leyning@2.3.0(transitive)
- Removed@hebcal/core@1.5.0(transitive)
- Removed@hebcal/leyning@1.1.3(transitive)
Updated@hebcal/core@^2.0.0
Updated@hebcal/leyning@^2.0.0