@hebcal/core 5.3.0 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1933 -1908
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +1637 -1619
- package/dist/index.mjs +1637 -1619
- package/hebcal.d.ts +4 -0
- package/package.json +8 -8
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
2
|
-
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!=i&&4!=u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,d=10,f=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],p=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],w=new Map,v=-1373428,S=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function M(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=D(t,e);for(let n=a;n<t;n++)r+=D(n,e)}else for(let n=u;n<t;n++)r+=D(n,e);return v+N(e)+r-1}function I(e){return v+N(e)}function T(e){if(b(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/S);for(;I(t)<=e;)++t;--t;let n=e<M(t,1,1)?7:1;for(;e>M(t,n,D(n,t));)++n;return{yy:t,mm:n,dd:1+e-M(t,n,1)}}function A(e){return(1+7*e)%19<7}function E(e){return+A(e)+12}function D(e,t){switch(e){case i:case s:case c:case d:case g:return 29}return e===f&&!A(t)||e===h&&!k(t)||e===l&&H(t)?29:30}function C(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return p[+A(t)][e]}function N(e){const t=w.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!A(e)||1==i%7&&a>=16789&&A(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return w.set(e,n),n}function O(e){return N(e+1)-N(e)}function k(e){return O(e)%10==5}function H(e){return O(e)%10==3}const L=m.NISAN,R=m.CHESHVAN,P=m.KISLEV,Y=m.TEVET,j=m.SHVAT,F=m.ADAR_I,_=m.ADAR_II;function B(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const $={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},x=new Map,U=new Map;for(const[e,t]of Object.entries($))x.set(e,t),U.set(t,e);function Z(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function z(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=Z(r);for(const t of e)n+=U.get(t);n+="׳"}const o=Z(t%1e3);if(1==o.length)return n+U.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=U.get(o[e]);return n}function V(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*V(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=x.get(n);"number"==typeof e&&(t+=e)}return t}const K={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},J={h:"he",a:"ashkenazi",s:"en","":"en"},G=new Map;let W=null,q=null;class X{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&G.get(n)||W)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);G.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=G.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=G.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=G.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return q=J[t]||t,W=n,W}static getLocaleName(){return q}static getLocaleNames(){return Array.from(G.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||q;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function Q(e){throw new TypeError(e)}X.addLocale("en",K),X.addLocale("s",K),X.addLocale("",K),X.useLocale("en");const ee="day",te="week",ne="month",re="year",oe={d:ee,w:te,M:ne,y:re},ae={day:ee,week:te,month:ne,year:re};class ie{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:Q(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?T(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return A(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return D(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=ie.monthNum(e),se(this),this}setDate(e){return this.dd=e,se(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=M(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return M(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||X.getLocaleName(),n=this.getDate(),r=X.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${X.ordinal(n,t)}${ie.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=X.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=X.gettext(this.getMonthName(),n),o=this.getFullYear();return z(t)+" "+r+" "+z(o)}before(e){return ue(e,this,-1)}onOrBefore(e){return ue(e,this,0)}nearest(e){return ue(e,this,3)}onOrAfter(e){return ue(e,this,6)}after(e){return ue(e,this,7)}next(){return new ie(this.abs()+1)}prev(){return new ie(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ie(this);if(t=ie.standardizeUnits(t),t===ee)return new ie(this.abs()+e);if(t===te)return new ie(this.abs()+7*e);if(t===re)return new ie(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===ne){let t=new ie(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ie(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=oe[e]||String(e||"").toLowerCase().replace(/s$/,"");return ae[t]||Q(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!ie.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ie.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return A(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return D(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):ie.monthFromName(e)}static daysInYear(e){return O(e)}static longCheshvan(e){return k(e)}static shortKislev(e){return H(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(X.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" "),r=V(n[0]),o=ie.monthFromName(n[1]);let a=V(n[2]);return a<1e3&&(a+=t),new ie(r,o,a)}}function se(e){ce(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=D(e.mm,e.yy),e.mm-=1,se(e));e.dd>D(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=D(e.mm,e.yy),e.mm===E(e.yy)?e.mm=1:e.mm+=1,se(e));ce(e)}(e)}function ce(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,se(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,se(e)):(e.mm-=1,se(e)),delete e.rd}function ue(e,t,n){return new ie(ie.dayOnOrBefore(e,t.abs()+n))}const he={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304,YOM_KIPPUR_KATAN:8388608,YERUSHALMI_YOMI:16777216,NACH_YOMI:33554432,DAILY_LEARNING:67108864},le=[[he.MAJOR_FAST,"holiday","major","fast"],[he.CHANUKAH_CANDLES,"holiday","major"],[he.HEBREW_DATE,"hebdate"],[he.MINOR_FAST,"holiday","fast"],[he.MINOR_HOLIDAY,"holiday","minor"],[he.MODERN_HOLIDAY,"holiday","modern"],[he.MOLAD,"molad"],[he.OMER_COUNT,"omer"],[he.PARSHA_HASHAVUA,"parashat"],[he.ROSH_CHODESH,"roshchodesh"],[he.SHABBAT_MEVARCHIM,"mevarchim"],[he.SPECIAL_SHABBAT,"holiday","shabbat"],[he.USER_EVENT,"user"]];class de{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return X.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&he.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&he.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor;for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of le)if(e&t[0])return t.slice(1);return["unknown"]}}class fe extends de{constructor(e){super(e,e.toString(),he.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=X.gettext(t.getMonthName(),e);return z(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},me=function(e){return e&&e.Math===Math&&e},ye=me("object"==typeof globalThis&&globalThis)||me("object"==typeof window&&window)||me("object"==typeof self&&self)||me("object"==typeof ge&&ge)||me("object"==typeof ge&&ge)||function(){return this}()||Function("return this")(),pe={},we=function(e){try{return!!e()}catch(e){return!0}},ve=!we((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Se=!we((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),be=Se,Me=Function.prototype.call,Ie=be?Me.bind(Me):function(){return Me.apply(Me,arguments)},Te={},Ae={}.propertyIsEnumerable,Ee=Object.getOwnPropertyDescriptor,De=Ee&&!Ae.call({1:2},1);Te.f=De?function(e){var t=Ee(this,e);return!!t&&t.enumerable}:Ae;var Ce,Ne,Oe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ke=Se,He=Function.prototype,Le=He.call,Re=ke&&He.bind.bind(Le,Le),Pe=ke?Re:function(e){return function(){return Le.apply(e,arguments)}},Ye=Pe,je=Ye({}.toString),Fe=Ye("".slice),_e=we,Be=function(e){return Fe(je(e),8,-1)},$e=Object,xe=Pe("".split),Ue=_e((function(){return!$e("z").propertyIsEnumerable(0)}))?function(e){return"String"===Be(e)?xe(e,""):$e(e)}:$e,Ze=function(e){return null==e},ze=Ze,Ve=TypeError,Ke=function(e){if(ze(e))throw new Ve("Can't call method on "+e);return e},Je=Ue,Ge=Ke,We=function(e){return Je(Ge(e))},qe="object"==typeof document&&document.all,Xe=void 0===qe&&void 0!==qe?function(e){return"function"==typeof e||e===qe}:function(e){return"function"==typeof e},Qe=Xe,et=function(e){return"object"==typeof e?null!==e:Qe(e)},tt=ye,nt=Xe,rt=function(e,t){return arguments.length<2?(n=tt[e],nt(n)?n:void 0):tt[e]&&tt[e][t];var n},ot=Pe({}.isPrototypeOf),at=ye,it="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=at.process,ct=at.Deno,ut=st&&st.versions||ct&&ct.version,ht=ut&&ut.v8;ht&&(Ne=(Ce=ht.split("."))[0]>0&&Ce[0]<4?1:+(Ce[0]+Ce[1])),!Ne&&it&&(!(Ce=it.match(/Edge\/(\d+)/))||Ce[1]>=74)&&(Ce=it.match(/Chrome\/(\d+)/))&&(Ne=+Ce[1]);var lt=Ne,dt=we,ft=ye.String,gt=!!Object.getOwnPropertySymbols&&!dt((function(){var e=Symbol("symbol detection");return!ft(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&<&<<41})),mt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=rt,pt=Xe,wt=ot,vt=Object,St=mt?function(e){return"symbol"==typeof e}:function(e){var t=yt("Symbol");return pt(t)&&wt(t.prototype,vt(e))},bt=String,Mt=Xe,It=function(e){try{return bt(e)}catch(e){return"Object"}},Tt=TypeError,At=function(e){if(Mt(e))return e;throw new Tt(It(e)+" is not a function")},Et=Ze,Dt=Ie,Ct=Xe,Nt=et,Ot=TypeError,kt={exports:{}},Ht=ye,Lt=Object.defineProperty,Rt=function(e,t){try{Lt(Ht,e,{value:t,configurable:!0,writable:!0})}catch(n){Ht[e]=t}return t},Pt=ye,Yt=Rt,jt="__core-js_shared__",Ft=kt.exports=Pt[jt]||Yt(jt,{});(Ft.versions||(Ft.versions=[])).push({version:"3.36.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var _t=kt.exports,Bt=_t,$t=function(e,t){return Bt[e]||(Bt[e]=t||{})},xt=Ke,Ut=Object,Zt=function(e){return Ut(xt(e))},zt=Pe({}.hasOwnProperty),Vt=Object.hasOwn||function(e,t){return zt(Zt(e),t)},Kt=Pe,Jt=0,Gt=Math.random(),Wt=Kt(1..toString),qt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Wt(++Jt+Gt,36)},Xt=$t,Qt=Vt,en=qt,tn=gt,nn=mt,rn=ye.Symbol,on=Xt("wks"),an=nn?rn.for||rn:rn&&rn.withoutSetter||en,sn=function(e){return Qt(on,e)||(on[e]=tn&&Qt(rn,e)?rn[e]:an("Symbol."+e)),on[e]},cn=Ie,un=et,hn=St,ln=function(e,t){var n=e[t];return Et(n)?void 0:At(n)},dn=function(e,t){var n,r;if("string"===t&&Ct(n=e.toString)&&!Nt(r=Dt(n,e)))return r;if(Ct(n=e.valueOf)&&!Nt(r=Dt(n,e)))return r;if("string"!==t&&Ct(n=e.toString)&&!Nt(r=Dt(n,e)))return r;throw new Ot("Can't convert object to primitive value")},fn=TypeError,gn=sn("toPrimitive"),mn=function(e,t){if(!un(e)||hn(e))return e;var n,r=ln(e,gn);if(r){if(void 0===t&&(t="default"),n=cn(r,e,t),!un(n)||hn(n))return n;throw new fn("Can't convert object to primitive value")}return void 0===t&&(t="number"),dn(e,t)},yn=St,pn=function(e){var t=mn(e,"string");return yn(t)?t:t+""},wn=et,vn=ye.document,Sn=wn(vn)&&wn(vn.createElement),bn=function(e){return Sn?vn.createElement(e):{}},Mn=bn,In=!ve&&!we((function(){return 7!==Object.defineProperty(Mn("div"),"a",{get:function(){return 7}}).a})),Tn=ve,An=Ie,En=Te,Dn=Oe,Cn=We,Nn=pn,On=Vt,kn=In,Hn=Object.getOwnPropertyDescriptor;pe.f=Tn?Hn:function(e,t){if(e=Cn(e),t=Nn(t),kn)try{return Hn(e,t)}catch(e){}if(On(e,t))return Dn(!An(En.f,e,t),e[t])};var Ln={},Rn=ve&&we((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pn=et,Yn=String,jn=TypeError,Fn=function(e){if(Pn(e))return e;throw new jn(Yn(e)+" is not an object")},_n=ve,Bn=In,$n=Rn,xn=Fn,Un=pn,Zn=TypeError,zn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Kn="enumerable",Jn="configurable",Gn="writable";Ln.f=_n?$n?function(e,t,n){if(xn(e),t=Un(t),xn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Gn in n&&!n[Gn]){var r=Vn(e,t);r&&r[Gn]&&(e[t]=n.value,n={configurable:Jn in n?n[Jn]:r[Jn],enumerable:Kn in n?n[Kn]:r[Kn],writable:!1})}return zn(e,t,n)}:zn:function(e,t,n){if(xn(e),t=Un(t),xn(n),Bn)try{return zn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Zn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wn=Ln,qn=Oe,Xn=ve?function(e,t,n){return Wn.f(e,t,qn(1,n))}:function(e,t,n){return e[t]=n,e},Qn={exports:{}},er=ve,tr=Vt,nr=Function.prototype,rr=er&&Object.getOwnPropertyDescriptor,or=tr(nr,"name"),ar={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!er||er&&rr(nr,"name").configurable)},ir=Xe,sr=_t,cr=Pe(Function.toString);ir(sr.inspectSource)||(sr.inspectSource=function(e){return cr(e)});var ur,hr,lr,dr=sr.inspectSource,fr=Xe,gr=ye.WeakMap,mr=fr(gr)&&/native code/.test(String(gr)),yr=qt,pr=$t("keys"),wr=function(e){return pr[e]||(pr[e]=yr(e))},vr={},Sr=mr,br=ye,Mr=et,Ir=Xn,Tr=Vt,Ar=_t,Er=wr,Dr=vr,Cr="Object already initialized",Nr=br.TypeError,Or=br.WeakMap;if(Sr||Ar.state){var kr=Ar.state||(Ar.state=new Or);kr.get=kr.get,kr.has=kr.has,kr.set=kr.set,ur=function(e,t){if(kr.has(e))throw new Nr(Cr);return t.facade=e,kr.set(e,t),t},hr=function(e){return kr.get(e)||{}},lr=function(e){return kr.has(e)}}else{var Hr=Er("state");Dr[Hr]=!0,ur=function(e,t){if(Tr(e,Hr))throw new Nr(Cr);return t.facade=e,Ir(e,Hr,t),t},hr=function(e){return Tr(e,Hr)?e[Hr]:{}},lr=function(e){return Tr(e,Hr)}}var Lr={set:ur,get:hr,has:lr,enforce:function(e){return lr(e)?hr(e):ur(e,{})},getterFor:function(e){return function(t){var n;if(!Mr(t)||(n=hr(t)).type!==e)throw new Nr("Incompatible receiver, "+e+" required");return n}}},Rr=Pe,Pr=we,Yr=Xe,jr=Vt,Fr=ve,_r=ar.CONFIGURABLE,Br=dr,$r=Lr.enforce,xr=Lr.get,Ur=String,Zr=Object.defineProperty,zr=Rr("".slice),Vr=Rr("".replace),Kr=Rr([].join),Jr=Fr&&!Pr((function(){return 8!==Zr((function(){}),"length",{value:8}).length})),Gr=String(String).split("String"),Wr=Qn.exports=function(e,t,n){"Symbol("===zr(Ur(t),0,7)&&(t="["+Vr(Ur(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!jr(e,"name")||_r&&e.name!==t)&&(Fr?Zr(e,"name",{value:t,configurable:!0}):e.name=t),Jr&&n&&jr(n,"arity")&&e.length!==n.arity&&Zr(e,"length",{value:n.arity});try{n&&jr(n,"constructor")&&n.constructor?Fr&&Zr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=$r(e);return jr(r,"source")||(r.source=Kr(Gr,"string"==typeof t?t:"")),e};Function.prototype.toString=Wr((function(){return Yr(this)&&xr(this).source||Br(this)}),"toString");var qr=Qn.exports,Xr=Xe,Qr=Ln,eo=qr,to=Rt,no={},ro=Math.ceil,oo=Math.floor,ao=Math.trunc||function(e){var t=+e;return(t>0?oo:ro)(t)},io=ao,so=function(e){var t=+e;return t!=t||0===t?0:io(t)},co=so,uo=Math.max,ho=Math.min,lo=so,fo=Math.min,go=function(e){var t=lo(e);return t>0?fo(t,9007199254740991):0},mo=We,yo=function(e,t){var n=co(e);return n<0?uo(n+t,0):ho(n,t)},po=function(e){return go(e.length)},wo=function(e){return function(t,n,r){var o=mo(t),a=po(o);if(0===a)return!e&&-1;var i,s=yo(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},vo={includes:wo(!0),indexOf:wo(!1)},So=Vt,bo=We,Mo=vo.indexOf,Io=vr,To=Pe([].push),Ao=function(e,t){var n,r=bo(e),o=0,a=[];for(n in r)!So(Io,n)&&So(r,n)&&To(a,n);for(;t.length>o;)So(r,n=t[o++])&&(~Mo(a,n)||To(a,n));return a},Eo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Do=Ao,Co=Eo.concat("length","prototype");no.f=Object.getOwnPropertyNames||function(e){return Do(e,Co)};var No={};No.f=Object.getOwnPropertySymbols;var Oo=rt,ko=no,Ho=No,Lo=Fn,Ro=Pe([].concat),Po=Oo("Reflect","ownKeys")||function(e){var t=ko.f(Lo(e)),n=Ho.f;return n?Ro(t,n(e)):t},Yo=Vt,jo=Po,Fo=pe,_o=Ln,Bo=we,$o=Xe,xo=/#|\.prototype\./,Uo=function(e,t){var n=zo[Zo(e)];return n===Ko||n!==Vo&&($o(t)?Bo(t):!!t)},Zo=Uo.normalize=function(e){return String(e).replace(xo,".").toLowerCase()},zo=Uo.data={},Vo=Uo.NATIVE="N",Ko=Uo.POLYFILL="P",Jo=Uo,Go=ye,Wo=pe.f,qo=Xn,Xo=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(Xr(n)&&eo(n,a,r),r.global)o?e[t]=n:to(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Qr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Qo=Rt,ea=function(e,t,n){for(var r=jo(t),o=_o.f,a=Fo.f,i=0;i<r.length;i++){var s=r[i];Yo(e,s)||n&&Yo(n,s)||o(e,s,a(t,s))}},ta=Jo,na={},ra=Ao,oa=Eo,aa=Object.keys||function(e){return ra(e,oa)},ia=ve,sa=Rn,ca=Ln,ua=Fn,ha=We,la=aa;na.f=ia&&!sa?Object.defineProperties:function(e,t){ua(e);for(var n,r=ha(t),o=la(t),a=o.length,i=0;a>i;)ca.f(e,n=o[i++],r[n]);return e};var da,fa=rt("document","documentElement"),ga=Fn,ma=na,ya=Eo,pa=vr,wa=fa,va=bn,Sa="prototype",ba="script",Ma=wr("IE_PROTO"),Ia=function(){},Ta=function(e){return"<"+ba+">"+e+"</"+ba+">"},Aa=function(e){e.write(Ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{da=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ea="undefined"!=typeof document?document.domain&&da?Aa(da):(t=va("iframe"),n="java"+ba+":",t.style.display="none",wa.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Ta("document.F=Object")),e.close(),e.F):Aa(da);for(var r=ya.length;r--;)delete Ea[Sa][ya[r]];return Ea()};pa[Ma]=!0;var Da=Object.create||function(e,t){var n;return null!==e?(Ia[Sa]=ga(e),n=new Ia,Ia[Sa]=null,n[Ma]=e):n=Ea(),void 0===t?n:ma.f(n,t)},Ca=sn,Na=Da,Oa=Ln.f,ka=Ca("unscopables"),Ha=Array.prototype;void 0===Ha[ka]&&Oa(Ha,ka,{configurable:!0,value:Na(null)});var La=vo.includes,Ra=function(e){Ha[ka][e]=!0};function Pa(e,t,n,r,o){return Ya(t,ja(e,t),n,r,o)}function Ya(e,t,n,r,o,a){const i=ri(t,n,r);if(o&&t!==i)throw new RangeError(al(e,t,n,r,a));return i}function ja(e,t){const n=e[t];if(void 0===n)throw new TypeError(sl(t));return n}function Fa(e){return null!==e&&/object|function/.test(typeof e)}function _a(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Ba(e){return $a({name:e},1)}function $a(e,t){return za((e=>({value:e,configurable:1,writable:!t})),e)}function xa(e){return za((e=>({get:e,configurable:1})),e)}function Ua(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Za(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function za(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Va(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function Ka(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Ja(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Ga(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Wa(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function qa(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Xa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function Qa(e){return e[0].toUpperCase()+e.substring(1)}function ei(e){return e.slice().sort()}function ti(e,t){return String(t).padStart(e,"0")}function ni(e,t){return Math.sign(e-t)}function ri(e,t,n){return Math.min(Math.max(e,t),n)}function oi(e,t){return[Math.floor(e/t),ai(e,t)]}function ai(e,t){return(e%t+t)%t}function ii(e,t){return[si(e,t),ci(e,t)]}function si(e,t){return Math.trunc(e/t)||0}function ci(e,t){return e%t||0}function ui(e){return.5===Math.abs(e%1)}function hi(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=nd[a],s=td/i,[c,u]=ii(t,s);r+=u*i,o+=c}const[a,i]=ii(r,td);return[o+a,i]}function li(e,t,n){const r={};for(let o=t;o>=0;o--){const t=nd[o];r[n[o]]=si(e,t),e=ci(e,t)}return r}function di(e,t){let[n,r]=ii(t,td),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*td),[o,r]}function fi(e,t){return di(e[0],e[1]+t)}function gi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return di(e[0]+t[0]*n,e[1]+t[1]*n)}function mi(e,t){return gi(t,e,-1)}function yi(e,t){return ni(e[0],t[0])||ni(e[1],t[1])}function pi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(td/t);return[Number(e/n),Number(e%n)*t]}function wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=td/t,[r,o]=ii(e,n);return[r,o*t]}function vi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=td/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Si(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=ii(o,t);return r*(td/t)+(a+(n?i/t:0))}function bi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oi;const[r,o]=e,[a,i]=n(o,t);return[r*(td/t)+a,i]}function Mi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Ii(e){return Pa(e,"isoYear",Gd,Jd,1),e.isoYear===Gd?Pa(e,"isoMonth",4,12,1):e.isoYear===Jd&&Pa(e,"isoMonth",1,9,1),e}function Ti(e){return Ai({...e,...$d,isoHour:12}),e}function Ai(e){const t=Pa(e,"isoYear",Gd,Jd,1),n=t===Gd?1:t===Jd?-1:0;return n&&Ei(Li({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Ei(e){if(!e||-1===yi(e,Kd)||1===yi(e,Vd))throw new RangeError(Hl);return e}function Di(e){return hi(e,5,Pd)[1]}function Ci(e){const[t,n]=oi(e,td);return[li(n,5,Pd),t]}function Ni(e){return Oi(e)[0]}function Oi(e){return bi(e,Xl)}function ki(e){return bi(e,ql)[0]}function Hi(e){return Yi(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Li(e){const t=Hi(e);if(void 0!==t){const[n,r]=ii(t,Jl);return[n,r*ql+(e.isoMicrosecond||0)*Wl+(e.isoNanosecond||0)]}}function Ri(e,t){const[n,r]=Ci(Di(e)-t);return Ei(Li({...e,isoDay:e.isoDay+r,...n}))}function Pi(){return Yi(...arguments)/Gl}function Yi(){const[e,t]=ji(...arguments),n=e.getTime();if(!isNaN(n))return n-t*Jl}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Gd?1:e===Jd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function Fi(e,t){let[n,r]=fi(e,t);r<0&&(r+=td,n-=1);const[o,a]=oi(r,ql),[i,s]=oi(a,Wl);return{..._i(n*Jl+o),isoMicrosecond:i,isoNanosecond:s}}function _i(e){const t=Math.ceil(Math.max(0,Math.abs(e)-zd)/Jl)*Math.sign(e),n=new Date(e-t*Jl);return Za(jd,[n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate()+t,n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()])}function Bi(){return Xd}function $i(e,t){switch(t){case 2:return Ui(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function xi(e){return Ui(e)?366:365}function Ui(e){return e%4==0&&(e%100!=0||e%400==0)}function Zi(e){return Wu(Hi((e=>({...e,isoMonth:1,isoDay:1,...$d}))(e)),Hi({...e,...$d}))+1}function zi(e){const[t,n]=ji(e.isoYear,e.isoMonth,e.isoDay);return ai(t.getUTCDay()-n,7)||7}function Vi(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Ki(e){const t=Hi(e);if(t<Qd)return Vi(e);const n=Mi(dg(Id),t),{era:r,eraYear:o}=th(n,Id);return[r,o]}function Ji(e){return Gi(e),Xi(e,1),e}function Gi(e){return qi(e,1),e}function Wi(e){return qa(Yd,e,qi(e))}function qi(e,t){const{isoYear:n}=e,r=Pa(e,"isoMonth",1,Bi(),t);return{isoYear:n,isoMonth:r,isoDay:Pa(e,"isoDay",1,$i(n,r),t)}}function Xi(e,t){return Za(Pd,[Pa(e,"isoHour",0,23,t),Pa(e,"isoMinute",0,59,t),Pa(e,"isoSecond",0,59,t),Pa(e,"isoMillisecond",0,999,t),Pa(e,"isoMicrosecond",0,999,t),Pa(e,"isoNanosecond",0,999,t)])}function Qi(e){if(void 0!==e)return ts(e)}function es(e){return ss(ts(e))}function ts(e){return is(rf(e))}function ns(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function rs(e,t){if(null==t)throw new RangeError(sl(e));return t}function os(e){if(!Fa(e))throw new TypeError(ol);return e}function as(e,t){if(typeof t!==e)throw new TypeError(il(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Xh(t,e));return e||0}function ss(e){if(e<=0)throw new RangeError(Qh(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function cs(e){if("symbol"==typeof e)throw new TypeError(rl);return String(e)}function us(e,t){return Fa(e)?String(e):tf(e,t)}function hs(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(nl(e));return e}function ls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(tl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(el(t,e));return e}function ds(e,t){return Math.trunc(ls(e,t))||0}function fs(e,t){return is(ls(e,t),t)}function gs(e,t){return ss(ds(e,t),t)}function ms(e){return void 0===e?0:Mf(os(e))}function ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Ds(e);const n=If(e),r=Tf(e,t);return[Mf(e),r,n]}function ps(e){return If(Ds(e))}function ws(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Ds(t);let i=Sf(t,r,o),s=Ts(t),c=Cf(t,a);const u=vf(t,r,o,1);return null==i?i=Math.max(n,u):Ls(i,u),s=As(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function vs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=Ts(e=Cs(e,af));const o=Cf(e,7);let a=vf(e,t);return a=rs(af,a),r=As(r,a,void 0,n),[a,r,o]}function Ss(e){return Af(Ds(e))}function bs(e,t){return Ms(Ds(e),t)}function Ms(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Es(e);return[Cf(e,4),...Is(vf(e,t),n)]}function Is(e,t){return null!=e?[nd[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function Ts(e){const t=e[cf];return void 0===t?1:ds(t,cf)}function As(e,t,n,r){const o=r?td:nd[t+1];if(o){const n=nd[t];if(o%((e=Ya(cf,e,1,o/n-(r?0:1),1))*n))throw new RangeError(il(cf,e))}else e=Ya(cf,e,1,n?10**9:1,1);return e}function Es(e){let t=e[uf];if(void 0!==t){if("number"!=typeof t){if("auto"===cs(t))return;throw new RangeError(il(uf,t))}t=Ya(uf,Math.floor(t),0,9,1)}return t}function Ds(e){return void 0===e?{}:os(e)}function Cs(e,t){return"string"==typeof e?{[t]:e}:os(e)}function Ns(e){if(void 0!==e){if(Fa(e))return Object.assign(Object.create(null),e);throw new TypeError(ol)}}function Os(e,t){return e&&Object.assign(Object.create(null),e,{overflow:df[t]})}function ks(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=cs(a),"auto"===a)return o?r:null;let i=Vl[a];if(void 0===i&&(i=Hd[a]),void 0===i)throw new RangeError(ll(e,a,Vl));return Ya(e,i,r,n,1,Kl),i}function Hs(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=cs(o),i=t[a];if(void 0===i)throw new RangeError(ll(e,a,t));return i}function Ls(e,t){if(t>e)throw new RangeError(Fl)}function Rs(e){return{branding:Pf,epochNanoseconds:e}}function Ps(e,t,n){return{branding:Rf,calendar:n,timeZone:t,epochNanoseconds:e}}function Ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Hf,calendar:t,...Ja(Bd,e)}}function js(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:kf,calendar:t,...Ja(Fd,e)}}function Fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Nf,calendar:t,...Ja(Fd,e)}}function _s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Of,calendar:t,...Ja(Fd,e)}}function Bs(e){return{branding:Lf,...Ja(_d,e)}}function $s(e){return{branding:Yf,sign:Qc(e),...Ja(Cd,e)}}function xs(e){return"string"==typeof e?e:tf(e.id)}function Us(e,t){return e===t||xs(e)===xs(t)}function Zs(e,t,n){const r=e(n.calendar);return n.epochNanoseconds?[n,r,t(n.timeZone)]:[{...n,...$d},r]}function zs(e,t){return t?e.epochNanoseconds:Li(e)}function Vs(e,t){return Si(e,nd[t],1)}function Ks(e,t,n,r,o,a){const i={...Ld,[Dd[t]]:n},s=xc(e,r,o,a),c=xc(i,s,o,a);return[zs(s,a),zs(c,a)]}function Js(e,t,n){const r=Si(mi(e,t));if(!r)throw new RangeError(Il);return Si(mi(e,n))/r}function Gs(e,t,n,r,o){return 6===t?((e,t,n)=>{if(t){const r=Lc(t,e);return Ai({...Jc(e,nc(Di(e),r,n)/r),...$d})}return Ws(e,td,n)})(e,o,r):Ws(e,tc(t,n),r)}function Ws(e,t,n){const[r,o]=qs(e,t,n);return Ai({...Jc(e,o),...r})}function qs(e,t,n){return Ci(nc(Di(e),t,n))}function Xs(e,t,n,r,o){return ru(oc(nu(e),n,r,o),t)}function Qs(e,t,n,r){return ru(ac(nu(e,t),n,r),t)}function ec(e,t,n,r,o,a,i,s,c){const u=r>6?cc:c&&r<6?sc:ic;let[h,l,d]=u(e,t,n,r,o,a,i,s,c);return d&&(h=((e,t,n,r,o,a,i)=>{const s=Qc(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=au(e,c-1);r[Dd[c]]+=s;const u=Si(mi(zs(xc(r,o,a,i),i),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function tc(e,t){return nd[e]*t}function nc(e,t,n){return((e,t)=>jf[t](e))(e/t,n)*t}function rc(e){return nc(e,Ql,7)}function oc(e,t,n,r,o){return 6===t?[nc(Vs(e,6),n,r),0]:ac(e,tc(t,n),r,o)}function ac(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=td,o-=1);const[i,s]=oi(nc(a,t,n),td);return di(o+i,s)}function ic(e,t,n,r,o,a){const i=Qc(e),s=nu(e),c=oc(s,r,o,a),u=mi(s,c),h=Math.sign(c[0]-s[0])===i,l=ru(c,Math.min(n,6));return[{...e,...l},gi(t,u),h]}function sc(e,t,n,r,o,a,i,s,c){const u=Qc(e);let[h,l]=hi(e,5,Dd);const d=tc(r,o);let f=nc(l,d,a);const[g,m]=Ks({...e,...Rd},6,u,i,s,c),y=f-Si(mi(g,m));y&&Math.sign(y)!==u?t=fi(g,f):(h+=u,f=nc(y,d,a),t=fi(m,f));const p=ou(f);return[{...e,...p,days:e.days+h},t,Boolean(h)]}function cc(e,t,n,r,o,a,i,s,c){const u=Qc(e),h=Dd[r],l=au(e,r-1),d=si(e[h],o)*o;l[h]=d;const[f,g]=Ks(l,r,o*u,i,s,c),m=d+Js(f,g,t)*u*o,y=nc(m,o,a),p=Math.sign(y-m)===u;return l[h]=y,[l,p?g:f,p]}function uc(e,t,n,r){const[o,a,i,s]=(e=>{const t=Ms(e=Ds(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=ac(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return vc(Fi(n,i),a)+(e?Tc(rc(i)):"Z")})(c,t(c?e(o):Ff),n.epochNanoseconds,a,i,s)}function hc(e,t,n){return((e,t,n,r,o,a,i,s,c,u)=>{r=ac(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return vc(Fi(r,h),u)+Tc(rc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+xs(e)+"]":"")(n,a)+Ac(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,...(e=>{e=Ds(e);const t=Af(e),n=Es(e),r=Df(e),o=Cf(e,4),a=vf(e,4);return[t,Ef(e),r,o,...Is(a,n)]})(n))}function lc(e,t){return((e,t,n,r,o,a)=>vc(Ws(t,o,r),a)+Ac(e,n))(e.calendar,e,...(e=>(e=Ds(e),[Af(e),...Ms(e)]))(t))}function dc(e,t){return n=e.calendar,r=e,o=Ss(t),Sc(r)+Ac(n,o);var n,r,o}function fc(e,t){return pc(e.calendar,bc,e,Ss(t))}function gc(e,t){return pc(e.calendar,Mc,e,Ss(t))}function mc(e,t){return((e,t,n,r)=>Ic(qs(e,n,t)[0],r))(e,...bs(t))}function yc(e,t){const[n,r,o]=bs(t,3);return r>1&&(e={...e,...Qs(e,Math.min(su(e),6),r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Xc(e):e,{hours:o,minutes:a}=r,[i,s]=bi(hi(r,3,Dd),Xl,ii);tu(i);const c=Dc(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+wc({Y:Nc(r.years),M:Nc(r.months),W:Nc(r.weeks),D:Nc(r.days)})+(o||a||i||u?"T"+wc({H:Nc(o),M:Nc(a),S:Nc(i,u)+c}):"")})(e,o)}function pc(e,t,n,r){const o=xs(e),a=r>1||0===r&&o!==bd;return 1===r?o===bd?t(n):Sc(n):a?Sc(n)+Ec(o,2===r):t(n)}function wc(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function vc(e,t){return Sc(e)+"T"+Ic(e,t)}function Sc(e){return bc(e)+"-"+zl(e.isoDay)}function bc(e){const{isoYear:t}=e;return(t<0||t>9999?Cc(t)+ti(6,Math.abs(t)):ti(4,t))+"-"+zl(e.isoMonth)}function Mc(e){return zl(e.isoMonth)+"-"+zl(e.isoDay)}function Ic(e,t){const n=[zl(e.isoHour),zl(e.isoMinute)];return-1!==t&&n.push(zl(e.isoSecond)+((e,t,n,r)=>Dc(e*ql+t*Wl+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Tc(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=oi(Math.abs(e),ed),[r,o]=oi(n,Ql),[a,i]=oi(o,Xl);return Cc(e)+zl(t)+":"+zl(r)+(a||i?":"+zl(a)+Dc(i):"")}function Ac(e,t){if(1!==t){const n=xs(e);if(t>1||0===t&&n!==bd)return Ec(n,2===t)}return""}function Ec(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function Dc(e,t){let n=ti(9,e);return n=void 0===t?n.replace(xf,""):n.slice(0,t),n?"."+n:""}function Cc(e){return e<0?"-":"+"}function Nc(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Oc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=Fi(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function kc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return Ri(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Li(t);r&&(n=rc(n));for(const t of e){let e=Si(mi(t,o));if(r&&(e=rc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Ol)}return i?Li(t):Hc(e,t,o,s)}function Hc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(kl);if(r.length)return r[3===n?1:0];const o=Li(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(fi(t,-td));return Pc(e.getOffsetNanosecondsFor(fi(t,td))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(Fi(o,i)))[2===n?0:r.length-1]}function Lc(e,t,n){t={...t,...$d};const r=Si(mi(Hc(e,{...t,...$d}),Hc(e,{...Jc(t,1),...$d})),n,1);if(r<=0)throw new RangeError(Il);return r}function Rc(e){if(Math.abs(e)>=td)throw new RangeError(Cl);return e}function Pc(e){if(e>td)throw new RangeError(Nl);return e}function Yc(e,t,n){return Rs(Ei(gi(t.epochNanoseconds,(e=>{if(iu(e))throw new RangeError(Yl);return nu(e,5)})(e?Xc(n):n))))}function jc(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=Uc(e(r.calendar),i,r,n?Xc(o):o,a);return{...r,epochNanoseconds:s}}function Fc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Ys(Zc(e(a),n,t?Xc(r):r,o),a)}function _c(e,t,n,r,o){const{calendar:a}=n;return js(zc(e(a),n,t?Xc(r):r,o),a)}function Bc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=Vc(i,n);t&&(r=qc(r)),r.sign<0&&(s=i.dateAdd(s,{...Ld,months:1}),s=Jc(s,-1));const c=i.dateAdd(s,r,o);return Fs(Vc(i,c),a)}function $c(e,t,n){return Bs(Kc(t,e?Xc(n):n)[0])}function xc(e,t,n,r){return r?{epochNanoseconds:Uc(n,r,t,e)}:Zc(n,t,e)}function Uc(e,t,n,r,o){const a=nu(r,5);let i=n.epochNanoseconds;if(iu(r)){const s=Uf(n,t);i=gi(Hc(t,{...zc(e,s,{...r,...Rd},o),...Ja(Pd,s),calendar:bd}),a)}else i=gi(i,a),ms(o);return Ei(i)}function Zc(e,t,n,r){const[o,a]=Kc(t,n);return Ai({...zc(e,t,{...n,...Rd,days:n.days+a},r),...o})}function zc(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);ms(r);const o=n.days+hi(n,5,Dd)[0];return o?Ti(Jc(t,o)):t}function Vc(e,t){return Jc(t,1-e.day(t))}function Kc(e,t){const[n,r]=hi(t,5,Dd),[o,a]=Ci(Di(e)+r);return[o,n+a]}function Jc(e,t){return t&&(e=_i(Hi(e)+t*Jl)),e}function Gc(e,t,n,r,o,a){let i=xc(e,r,o,a);t&&(i=xc(t,i,o,a));const s=((e,t,n,r,o)=>o?((e,t,n,r,o)=>{const a=yi(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?Ku(n.epochNanoseconds,r.epochNanoseconds,o):Zu(e,t,a,n,r,o,void 0):Ld})(r,o,t,n,e):((e,t,n,r)=>{const o=Li(t),a=Li(n),i=yi(a,o);return i?r<=6?Ku(o,a,r):zu(e,i,t,n,r,void 0):Ld})(r,t,n,e))(n,r,i,o,a);return[s,zs(i,a)]}function Wc(e,t,n,r,o,a,i){const s=e(Ds(i).relativeTo),c=Math.max(su(o),su(a));if(c<6||6===c&&(!s||!s.epochNanoseconds))return $s(eu(((e,t,n,r)=>{const o=gi(nu(e),nu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Hl);return{...Ld,...ru(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(Pl);return r&&(a=Xc(a)),$s(Gc(o,a,c,...Zs(t,n,s))[0])}function qc(e){return $s(Xc(e))}function Xc(e){const t={};for(const n of Dd)t[n]=-1*e[n]||0;return t}function Qc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dd,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Rl);n=t}}return n}function eu(e){for(const t of kd)Ya(t,e[t],-Zf,Zf,1);return tu(Si(nu(e),Xl)),e}function tu(e){if(!Number.isSafeInteger(e))throw new RangeError(Ll)}function nu(e){return hi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Dd)}function ru(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=li(r,t,Dd);if(o[Dd[t]]+=n*(td/nd[t]),!Number.isFinite(o[Dd[t]]))throw new RangeError(Hl);return o}function ou(e){return li(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Dd)}function au(e,t){const n={...e};for(let e=0;e<=t;e++)n[Dd[e]]=0;return n}function iu(e){return Boolean(Qc(e,Od))}function su(e){let t=9;for(;t>0&&!e[Dd[t]];t--);return t}function cu(e,t){return[e,t]}function uu(e){const t=Math.floor(e/_f)*_f;return[t,t+_f]}function hu(e){const t=Su(e);if(void 0===t)throw new RangeError(_l(e));return t}function lu(e){const t=pu(tf(e));if(!t||t.o)throw new RangeError(_l(e));return js(t.i?gu(t):mu(t))}function du(e){if(e.calendar!==bd)throw new RangeError(Bl(e.calendar))}function fu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=Cu(e.timeZone),a=zf(o);return Ps(kc(a,Ji(e),t,n,r,!a.h,e.o),o,hh(e.calendar))}function gu(e){return yu(Ai(Ji(e)))}function mu(e){return yu(Ti(Gi(e)))}function yu(e){return{...e,calendar:hh(e.calendar)}}function pu(e){const t=og.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:bu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Mu(e.slice(5)),...Iu(e[16]),i:Boolean(e[6]),o:n,offset:n?void 0:t}})(t):void 0}function wu(e){const t=ng.exec(e);return t?(e=>({isoYear:bu(e),isoMonth:parseInt(e[4]),isoDay:1,...Iu(e[5])}))(t):void 0}function vu(e){const t=rg.exec(e);return t?(e=>({isoYear:qd,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Iu(e[3])}))(t):void 0}function Su(e,t){const n=ig.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Bl(n));return Rc((Du(e[2])*ed+Du(e[3])*Ql+Du(e[4])*Xl+Tu(e[5]||""))*Eu(e[1]))})(n,t):void 0}function bu(e){const t=Eu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Bl(-0));return t*n}function Mu(e){const t=Du(e[3]);return{...Ci(Tu(e[4]||""))[0],isoHour:Du(e[1]),isoMinute:Du(e[2]),isoSecond:60===t?59:t}}function Iu(e){let t,n;const r=[];if(e.replace(sg,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i)throw new RangeError(Bl(e))}else{if(n)throw new RangeError(Bl(e));n=s}return""})),r.length>1&&t)throw new RangeError(Bl(e));return{timeZone:n,calendar:r[0]||bd}}function Tu(e){return parseInt(e.padEnd(9,"0"))}function Au(e){return new RegExp(`^${e}$`,"i")}function Eu(e){return e&&"+"!==e?-1:1}function Du(e){return void 0===e?0:parseInt(e)}function Cu(e){const t=Ou(e);return"number"==typeof t?Tc(t):t?(e=>{if(hg.test(e))throw new RangeError(Dl);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?Qa(e).replace(/island|noronha|murdo|rivadavia|urville/,Qa):e)))).join("/")})(e):Ff}function Nu(e){const t=Ou(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Ff}function Ou(e){const t=Su(e=e.toUpperCase(),1);return void 0!==t?t:e!==Ff?ug(e):void 0}function ku(e,t){return yi(e.epochNanoseconds,t.epochNanoseconds)}function Hu(e,t){return yi(e.epochNanoseconds,t.epochNanoseconds)}function Lu(e,t){return Ru(e,t)||Pu(e,t)}function Ru(e,t){return ni(Hi(e),Hi(t))}function Pu(e,t){return ni(Di(e),Di(t))}function Yu(e,t){if(e===t)return 1;const n=xs(e),r=xs(t);if(n===r)return 1;try{return Nu(n)===Nu(r)}catch(e){}}function ju(e,t,n,r){const o=ws(e,Ns(r),3,5),a=Vu(t.epochNanoseconds,n.epochNanoseconds,...o);return $s(e?Xc(a):a)}function Fu(e,t,n,r,o,a){const i=qu(r.calendar,o.calendar),s=Ns(a),[c,u,h,l]=ws(n,s,5),d=r.epochNanoseconds,f=o.epochNanoseconds,g=yi(f,d);let m;if(g)if(c<6)m=Vu(d,f,c,u,h,l);else{const n=t(((e,t)=>{if(!Yu(e,t))throw new RangeError(El);return e})(r.timeZone,o.timeZone)),a=e(i);m=Zu(a,n,g,r,o,c,s),!g||0===u&&1===h||(m=ec(m,f,c,u,h,l,r,a,n))}else m=Ld;return $s(n?Xc(m):m)}function _u(e,t,n,r,o){const a=qu(n.calendar,r.calendar),i=Ns(o),[s,c,u,h]=ws(t,i,6),l=Li(n),d=Li(r),f=yi(d,l);let g;if(f)if(s<=6)g=Vu(l,d,s,c,u,h);else{const t=e(a);g=zu(t,f,n,r,s,i),!f||0===c&&1===u||(g=ec(g,d,s,c,u,h,n,t))}else g=Ld;return $s(t?Xc(g):g)}function Bu(e,t,n,r,o){const a=qu(n.calendar,r.calendar),i=Ns(o);return xu(t||0,(()=>e(a)),n,r,...ws(t,i,6,9,6),i)}function $u(e,t,n,r,o){const a=qu(n.calendar,r.calendar),i=Ns(o),s=ws(t,i,9,9,8),c=e(a);return xu(t||0,(()=>c),Vc(c,n),Vc(c,r),...s,i)}function xu(e,t,n,r,o,a,i,s,c){const u=Li(n),h=Li(r);let l;if(yi(h,u)){let e;6===o?l=Ju(n,r):(e=t(),l=e.dateUntil(n,r,o,c)),6===a&&1===i||(e||(e=t()),l=ec(l,h,o,a,i,s,{...n,...$d},e))}else l=Ld;return $s(e?Xc(l):l)}function Uu(e,t,n,r){const o=Ns(r),[a,i,s,c]=ws(e,o,5,5),u=Di(t),h=nc(Di(n)-u,tc(i,s),c),l={...Ld,...ou(h,a)};return $s(e?Xc(l):l)}function Zu(e,t,n,r,o,a,i){const s=Uf(r,t),c=Ja(Pd,s),u=Uf(o,t),h=o.epochNanoseconds,l=Xa(Hc,t);let d,f,g,m=0;do{if(m>2)throw new RangeError(Il);d={...Jc(u,m++*-n),...c},f=l(d),g=yi(h,f)}while(g===-n);return{...6===a?Ju(s,d):e.dateUntil(s,d,a,i),...ou(Si(mi(f,h)))}}function zu(e,t,n,r,o,a){const i=Di(n);let s=Di(r)-i,c=n;return Math.sign(s)===-t&&(c=Jc(n,t),s+=td*t),{...e.dateUntil({...c,...$d},{...r,...$d},o,a),...ou(s)}}function Vu(e,t,n,r,o,a){return{...Ld,...ru(oc(mi(e,t),r,o,a),n)}}function Ku(e,t,n){return{...Ld,...ru(mi(e,t),n)}}function Ju(e,t){return{...Ld,days:Gu(e,t)}}function Gu(e,t){return Wu(Hi(e),Hi(t))}function Wu(e,t){return Math.round((t-e)/Jl)}function qu(e,t){if(!Us(e,t))throw new RangeError(Tl);return e}function Xu(e){function t(e){return((e,t)=>({...th(e,t),month:e.month,day:parseInt(e.day)}))(Mi(n,e),r)}const n=dg(e),r=lh(e);return{id:e,I:Qu(t),N:eh(t)}}function Qu(e){return _a((t=>{const n=Hi(t);return e(n)}),WeakMap)}function eh(e){const t=e(0).year-Wd;return _a((n=>{let r,o=Yi(n-t);const a=[],i=[];do{o+=400*Jl}while((r=e(o)).year<=n);do{o+=(1-r.day)*Jl,r.year===n&&(a.push(o),i.push(r.month)),o-=Jl}while((r=e(o)).year>=n);return{v:a.reverse(),P:Ul(i.reverse())}}))}function th(e,t){let n,r,o=nh(e);if(e.era){const i=Td[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Ad[a]||a,r=o,o=ph(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function nh(e){return parseInt(e.relatedYear||e.year)}function rh(e){const{year:t,month:n,day:r}=this.I(e),{P:o}=this.N(t);return[t,o[n]+1,r]}function oh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.N(e).v[t-1]+(n-1)*Jl}function ah(e){const t=uh(this,e),n=uh(this,e-1),r=t.length;if(r>n.length){const e=vh(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function ih(e){return Wu(oh.call(this,e),oh.call(this,e+1))}function sh(e,t){const{v:n}=this.N(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.N(e+1).v),Wu(n[t-1],o[r-1])}function ch(e){return this.N(e).v.length}function uh(e,t){return Object.keys(e.N(t).P)}function hh(e){if((e=e.toLowerCase())!==bd&&e!==Md&&lh(e)!==lh(dg(e).resolvedOptions().calendar))throw new RangeError(Al(e));return e}function lh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function dh(e){return this.F(e)[0]}function fh(e){return this.F(e)[1]}function gh(e){const t=fg.exec(e);if(!t)throw new RangeError(wl(e));return[parseInt(t[1]),Boolean(t[2])]}function mh(e,t,n){return e+(t||n&&e>=n?1:0)}function yh(e,t){return e-(t&&e>=t?1:0)}function ph(e,t){return(t+e)*(Math.sign(t)||1)||0}function wh(e){return Td[Sh(e)]}function vh(e){return Ed[Sh(e)]}function Sh(e){return lh(e.id||bd)}function bh(e,t,n,r){const o=Ah(n,r,pd,[],cd);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Dh(o),i=e(o.timeZone);return{epochNanoseconds:kc(t(i),{...r,...a},void 0!==o.offset?hu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...$d}}function Mh(e,t,n){const r=Ah(e,t,pd,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Ih(e,t,n,r){const o=Ah(e,t,md,r);return e.yearMonthFromFields(o,n)}function Th(e,t,n,r){const o=Ah(e,n,pd,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=qd),e.monthDayFromFields(o,r)}function Ah(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return Eh(t,[...e.fields(n),...o].sort(),r)}function Eh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(ul(r));if("constructor"===r||"__proto__"===r)throw new RangeError(cl(r));let t=e[r];if(void 0!==t)i=1,pg[r]&&(t=pg[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(sl(r));o[r]=Sd[r]}a=r}if(r&&!i)throw new TypeError(hl(t));return o}function Dh(e,t){return Xi(wg({...Sd,...e}),t)}function Ch(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Eh(t,i,a);const c=Eh(n,i);return s=e.mergeFields(s,c),Eh(s,i,[])}function Nh(e,t){const n=Ah(e,t,vd);return e.monthDayFromFields(n)}function Oh(e,t,n){const r=Ah(e,t,yd);return e.yearMonthFromFields(r,n)}function kh(e,t,n,r,o){t=Ja(n=e.fields(n),t),r=Eh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Eh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Hh(e,t){let{era:n,eraYear:r,year:o}=t;const a=wh(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(gl);if(!a)throw new RangeError(fl);const e=a[n];if(void 0===e)throw new RangeError(yl(n));const t=ph(r,e);if(void 0!==o&&o!==t)throw new RangeError(ml);o=t}else if(void 0===o)throw new TypeError(pl(a));return o}function Lh(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.O(n),[a,i]=gh(t);let s=mh(a,i,o);if(i){const t=vh(e);if(void 0===t)throw new RangeError(Ml);if(t>0){if(s>t)throw new RangeError(Ml);if(void 0===o){if(1===r)throw new RangeError(Ml);s--}}else{if(s!==-t)throw new RangeError(Ml);if(void 0===o&&1===r)throw new RangeError(Ml)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(vl);o=t,r=1}else if(void 0===o)throw new TypeError(Sl);return Ya("month",o,1,e.B(n),r)}function Rh(e,t,n,r,o){return Pa(t,"day",1,e.k(r,n),o)}function Ph(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function Yh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bd;return Ps(e.epochNanoseconds,t,n)}function jh(e,t){return Ys(Uf(t,e))}function Fh(e,t){return js(Uf(t,e))}function _h(e,t){return Bs(Uf(t,e))}function Bh(e,t){return{...e,calendar:t}}function $h(e,t){if(e===t)return e;const n=xs(e),r=xs(t);if(n===r||n===bd)return t;if(r===bd)return e;throw new RangeError(Tl)}function xh(e,t){return n=>n===bd?e:n===Md||n===Id?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),lg(n))}function Uh(e,t){const n=new Set(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]);return r=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(r=Ga(n,r),e)||Object.assign(r,t),r)}function Zh(e,t){return Hc(zf(t.timeZone),{...$d,isoHour:12,...e})}function zh(e){return e.epochNanoseconds}function Vh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kh;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wg;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r?r(...s):void 0,o,a,n),h=u.resolvedOptions();return[u,...Jh(e,h,...s)]}}function Kh(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(xl);n.timeZone=e}return new xd(t,n)}function Jh(e,t){const[,n,r]=e;for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return a.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==bd)&&e!==t)throw new RangeError(Tl)})(xs(e.calendar),t.calendar,r),ki(n(e,t)))))}function Gh(e){const t=Wh();return Fi(t,e.getOffsetNanosecondsFor(t))}function Wh(){return wi(Date.now(),ql)}function qh(){return qg||(qg=(new xd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?Go:u?Go[s]||Qo(s,{}):Go[s]&&Go[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Wo(n,r))&&i.value:n[r],!ta(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;ea(a,o)}(e.sham||o&&o.sham)&&qo(a,"sham",!0),Xo(n,r,a,e)}})({target:"Array",proto:!0,forced:we((function(){return!Array(1).includes()}))},{includes:function(e){return La(this,e,arguments.length>1?arguments[1]:void 0)}}),Ra("includes");const Xh=(e,t)=>`Non-integer ${e}: ${t}`,Qh=(e,t)=>`Non-positive ${e}: ${t}`,el=(e,t)=>`Non-finite ${e}: ${t}`,tl=e=>`Cannot convert bigint to ${e}`,nl=e=>`Invalid bigint: ${e}`,rl="Cannot convert Symbol to string",ol="Invalid object",al=(e,t,n,r,o)=>o?al(e,o[t],o[n],o[r]):il(e,t)+`; must be between ${n}-${r}`,il=(e,t)=>`Invalid ${e}: ${t}`,sl=e=>`Missing ${e}`,cl=e=>`Invalid field ${e}`,ul=e=>`Duplicate field ${e}`,hl=e=>"No valid fields: "+e.join(),ll=(e,t,n)=>il(e,t)+"; must be "+Object.keys(n).join(),dl="Invalid calling context",fl="Forbidden era/eraYear",gl="Mismatching era/eraYear",ml="Mismatching year/eraYear",yl=e=>`Invalid era: ${e}`,pl=e=>"Missing year"+(e?"/era/eraYear":""),wl=e=>`Invalid monthCode: ${e}`,vl="Mismatching month/monthCode",Sl="Missing month/monthCode",bl="Cannot guess year",Ml="Invalid leap month",Il="Invalid protocol results",Tl="Mismatching Calendars",Al=e=>`Invalid Calendar: ${e}`,El="Mismatching TimeZones",Dl="Forbidden ICU TimeZone",Cl="Out-of-bounds offset",Nl="Out-of-bounds TimeZone gap",Ol="Invalid TimeZone offset",kl="Ambiguous offset",Hl="Out-of-bounds date",Ll="Out-of-bounds duration",Rl="Cannot mix duration signs",Pl="Missing relativeTo",Yl="Cannot use large units",jl="Required smallestUnit or largestUnit",Fl="smallestUnit > largestUnit",_l=e=>`Cannot parse: ${e}`,Bl=e=>`Invalid substring: ${e}`,$l=e=>`Cannot format ${e}`,xl="Cannot specify TimeZone",Ul=Xa(Va,((e,t)=>t)),Zl=Xa(Va,((e,t,n)=>n)),zl=Xa(ti,2),Vl={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Kl=Object.keys(Vl),Jl=864e5,Gl=1e3,Wl=1e3,ql=1e6,Xl=1e9,Ql=6e10,ed=36e11,td=864e11,nd=[1,Wl,ql,Xl,Ql,ed,td],rd=Kl.slice(0,6),od=ei(rd),ad=["offset"],id=["timeZone"],sd=rd.concat(ad),cd=sd.concat(id),ud=["era","eraYear"],hd=ud.concat(["year"]),ld=["year"],dd=["monthCode"],fd=["month"].concat(dd),gd=["day"],md=fd.concat(ld),yd=dd.concat(ld),pd=gd.concat(md),wd=gd.concat(fd),vd=gd.concat(dd),Sd=Zl(rd,0),bd="iso8601",Md="gregory",Id="japanese",Td={[Md]:{bce:-1,ce:0},[Id]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Ad={bc:"bce",ad:"ce"},Ed={chinese:13,dangi:13,hebrew:-6},Dd=Kl.map((e=>e+"s")),Cd=ei(Dd),Nd=Dd.slice(0,6),Od=Dd.slice(6),kd=Od.slice(1),Hd=Ul(Dd),Ld=Zl(Dd,0),Rd=Zl(Nd,0),Pd=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Yd=["isoDay","isoMonth","isoYear"],jd=Pd.concat(Yd),Fd=ei(Yd),_d=ei(Pd),Bd=ei(jd),$d=Zl(_d,0),xd=Intl.DateTimeFormat,Ud="en-GB",Zd=1e8,zd=Zd*Jl,Vd=[Zd,0],Kd=[-Zd,0],Jd=275760,Gd=-271821,Wd=1970,qd=1972,Xd=12,Qd=Yi(1868,9,8),ef=_a(Ki,WeakMap),tf=Xa(as,"string"),nf=Xa(as,"boolean"),rf=Xa(as,"number"),of=Xa(as,"function"),af="smallestUnit",sf="unit",cf="roundingIncrement",uf="fractionalSecondDigits",hf="relativeTo",lf={constrain:0,reject:1},df=Object.keys(lf),ff={compatible:0,reject:1,earlier:2,later:3},gf={reject:0,use:1,prefer:2,ignore:3},mf={auto:0,never:1,critical:2,always:3},yf={auto:0,never:1,critical:2},pf={auto:0,never:1},wf={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},vf=Xa(ks,af),Sf=Xa(ks,"largestUnit"),bf=Xa(ks,sf),Mf=Xa(Hs,"overflow",lf),If=Xa(Hs,"disambiguation",ff),Tf=Xa(Hs,"offset",gf),Af=Xa(Hs,"calendarName",mf),Ef=Xa(Hs,"timeZoneName",yf),Df=Xa(Hs,"offset",pf),Cf=Xa(Hs,"roundingMode",wf),Nf="PlainYearMonth",Of="PlainMonthDay",kf="PlainDate",Hf="PlainDateTime",Lf="PlainTime",Rf="ZonedDateTime",Pf="Instant",Yf="Duration",jf=[Math.floor,e=>ui(e)?Math.floor(e):Math.round(e),Math.ceil,e=>ui(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>ui(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>ui(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Ff="UTC",_f=5184e3,Bf=Pi(1847),$f=Pi((new Date).getUTCFullYear()+10),xf=/0+$/,Uf=_a(Oc,WeakMap),Zf=2**32-1,zf=_a((e=>{const t=Ou(e);return"object"==typeof t?new Kf(t):new Vf(t||0)}));class Vf{constructor(e){this.h=e}getOffsetNanosecondsFor(){return this.h}getPossibleInstantsFor(e){return[Ri(e,this.h)]}C(){}}class Kf{constructor(e){this.R=(e=>{function t(e){const t=ri(e,a,i),[s,c]=uu(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=_a(e),o=_a(cu);let a=Bf,i=$f;return{q(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},L:t,C(e,t){const s=ri(e,a,i);let[c,u]=uu(s);const h=_f*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((ni(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Mi(e,t*Gl);return Pi(nh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.R.L(Ni(e))*Xl}getPossibleInstantsFor(e){const[t,n]=[Pi((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*ql+r.isoMicrosecond*Wl+r.isoNanosecond];var r;return this.R.q(t).map((e=>Ei(fi(wi(e,Xl),n))))}C(e,t){const[n,r]=Oi(e),o=this.R.C(n+(t>0||r?1:0),t);if(void 0!==o)return wi(o,Xl)}}const Jf="([+−-])",Gf="(?:[.,](\\d{1,9}))?",Wf=`(?:(?:${Jf}(\\d{6}))|(\\d{4}))-?(\\d{2})`,qf="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Gf+")?)?",Xf=Jf+qf,Qf=Wf+"-?(\\d{2})(?:[T ]"+qf+"(Z|"+Xf+")?)?",eg="\\[(!?)([^\\]]*)\\]",tg=`((?:${eg}){0,9})`,ng=Au(Wf+tg),rg=Au("(?:--)?(\\d{2})-?(\\d{2})"+tg),og=Au(Qf+tg),ag=Au("T?"+qf+"(?:"+Xf+")?"+tg),ig=Au(Xf),sg=new RegExp(eg,"g"),cg=Au(`${Jf}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Gf}H)?(?:(\\d+)${Gf}M)?(?:(\\d+)${Gf}S)?)?`),ug=_a((e=>new xd(Ud,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),hg=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,lg=_a(Xu),dg=_a((e=>new xd(Ud,{calendar:e,timeZone:Ff,era:"short",year:"numeric",month:"short",day:"numeric"}))),fg=/^M(\d{2})(L?)$/,gg={era:us,eraYear:ds,year:ds,month:gs,monthCode:us,day:gs},mg=Zl(rd,ds),yg=Zl(Dd,fs),pg=Object.assign({},gg,mg,yg,{offset:us}),wg=Xa(Ka,rd,Pd),vg={dateAdd(e,t,n){const r=ms(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=hi(t,5,Dd)[0],a||i){let[t,n,s]=this.u(e);if(a){const[e,o]=this.l(t,n);t+=a,n=mh(e,o,this.O(t)),n=Ya("month",n,1,this.B(t),r)}i&&([t,n]=this.U(t,n,i)),s=Ya("day",s,1,this.k(t,n),r),o=this.j(t,n,s)}else{if(!s&&!c)return e;o=Hi(e)}return o+=(7*s+c)*Jl,Ti(_i(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=Gu(e,t);return 7===n&&([r,o]=ii(o,7)),{...Ld,weeks:r,days:o}}const r=this.u(e),o=this.u(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.k(o,a),d=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.U(o,a,-h),s=o-t,c=a-n,l=e.k(o,a),d=h<0?-r:l}if(u=i-Math.min(r,l)+d,s){const[r,i]=e.l(t,n),[u,l]=e.l(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.B(o);s=(o-=h)-t,c=a-mh(r,i,e.O(o))+(n||e.B(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.$(a,r[0]),a=0),{...Ld,years:a,months:i,days:s}},dateFromFields(e,t){const n=ms(t),r=Hh(this,e),o=Lh(this,e,r,n),a=Rh(this,e,o,r,n);return js(Ti(this.p(r,o,a)),this.id||bd)},yearMonthFromFields(e,t){const n=ms(t),r=Hh(this,e),o=Lh(this,e,r,n);return Fs(Ii(this.p(r,o,1)),this.id||bd)},monthDayFromFields(e,t){const n=ms(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=gh(o),l=ja(e,"day");const t=this.m(s,c,l);if(!t)throw new RangeError(bl);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(vl);r&&(h=Ya("month",h,1,Xd,1),l=Ya("day",l,1,$i(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?qd:Hh(this,e),h=Lh(this,e,u,n),l=Rh(this,e,h,u,n);const t=this.O(u);c=h===t,s=yh(h,t);const o=this.m(s,c,l);if(!o)throw new RangeError(bl);[u,h]=o}return _s(this.p(u,h,l),this.id||bd)},fields(e){return wh(this)&&e.includes("year")?[...e,...ud]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Ph(n,t,fd),wh(this)&&(Ph(n,t,hd),this.id===Id&&Ph(n,t,wd,ud)),n},inLeapYear(e){const[t]=this.u(e);return this.G(t)},monthsInYear(e){const[t]=this.u(e);return this.B(t)},daysInMonth(e){const[t,n]=this.u(e);return this.k(t,n)},daysInYear(e){const[t]=this.u(e);return this.V(t)},era(e){return this._(e)[0]},eraYear(e){return this._(e)[1]},monthCode(e){const[t,n]=this.u(e),[r,o]=this.l(t,n);return((e,t)=>"M"+zl(e)+(t?"L":""))(r,o)},dayOfWeek:zi,daysInWeek:()=>7},Sg={weekOfYear:dh,yearOfWeek:fh,F(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=xi(l+e),r=e||1;return(n+(t(ai(c+n*r,7))-u)*r)/7}const r=this.id?1:4,o=zi(e),a=Zi(e),i=ai(o-1,7),s=a-1,c=ai(i-s,7),u=t(c);let h=Math.floor((s-u)/7)+1,l=e.isoYear;return h?h>n(0)&&(h=1,l++):(h=n(-1),l--),[h,l]}},bg={weekOfYear:dh,yearOfWeek:fh,F:()=>[]},Mg=xh(Object.assign({},vg,Sg,{u:e=>[e.isoYear,e.isoMonth,e.isoDay],_(e){return this.id===Md?Vi(e):this.id===Id?ef(e):[]},l:(e,t)=>[t,0],m(e,t){if(!t)return[qd,e]},G:Ui,O(){},B:Bi,$:e=>e*Xd,k:$i,V:xi,dayOfYear:Zi,p:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),j:Yi,U:(e,t,n)=>(e+=si(n,Xd),(t+=ci(n,Xd))<1?(e--,t+=Xd):t>Xd&&(e++,t-=Xd),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},vg,bg,{u:rh,_(e){const t=this.I(e);return[t.era,t.eraYear]},l(e,t){const n=ah.call(this,e);return[yh(t,n),n===t]},m(e,t,n){let[r,o,a]=rh.call(this,{isoYear:qd,isoMonth:Xd,isoDay:31});const i=ah.call(this,r),s=o===i;1===(ni(e,yh(o,i))||ni(Number(t),Number(s))||ni(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=ah.call(this,a),s=mh(e,t,i);if(t===(s===i)&&n<=sh.call(this,a,s))return[a,s]}},G(e){const t=ih.call(this,e);return t>ih.call(this,e-1)&&t>ih.call(this,e+1)},O:ah,B:ch,$(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=ch.call(this,e+o);return a},k:sh,V:ih,dayOfYear(e){const t=Hi({...e,...$d}),{year:n}=this.I(e);return Wu(oh.call(this,n),t)+1},p(e,t,n){return Ti({..._i(oh.call(this,e,t,n))})},j:oh,U(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Hl);if(n<0)for(;t<1;)t+=ch.call(this,--e);else{let n;for(;t>(n=ch.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.I(e).year},month(e){const{year:t,month:n}=this.I(e),{P:r}=this.N(t);return r[n]+1},day(e){return this.I(e).day}})),Ig="numeric",Tg=["timeZoneName"],Ag={month:Ig,day:Ig},Eg={year:Ig,month:Ig},Dg=Object.assign({},Eg,{day:Ig}),Cg={hour:Ig,minute:Ig,second:Ig},Ng=Object.assign({},Dg,Cg),Og=Object.assign({},Ng,{timeZoneName:"short"}),kg=Object.keys(Ag),Hg=Object.keys(Eg),Lg=Object.keys(Dg),Rg=Object.keys(Cg),Pg=Lg.concat(["weekday","dateStyle"]),Yg=Rg.concat(["dayPeriod","timeStyle"]),jg=Pg.concat(Yg),Fg=jg.concat(Tg),_g=Tg.concat(Yg),Bg=Tg.concat(Pg),$g=Tg.concat(["day","weekday","dateStyle"],Yg),xg=Uh(kg,Ag,Tg.concat(["year","weekday","dateStyle"],Yg)),Ug=[Uh(Hg,Eg,$g),Zh,1],Zg=[xg,Zh,1],zg=[Uh(Pg,Dg,_g),Zh],Vg=[Uh(jg,Ng,Tg),Zh],Kg=[Uh(Yg,Cg,Bg),(e,t)=>Hc(zf(t.timeZone),{isoYear:Wd,isoMonth:1,isoDay:1,...e})],Jg=[Uh(jg,Ng),zh],Gg=[Uh(Fg,Og),zh,0,(e,t)=>{const n=xs(e.timeZone);if(t&&xs(t.timeZone)!==n)throw new RangeError(El);return n}],Wg={};let qg;function Xg(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(dl);Rm(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Ba(t))}function s(t){const n=Lm(t);if(!n||n.branding!==e)throw new TypeError(dl);return n}return Object.defineProperties(a.prototype,{...xa(za(i,n)),...$a(za(i,r)),...Ua("Temporal."+e)}),Object.defineProperties(a,{...$a(o),...Ba(e)}),[a,e=>{const t=Object.create(a.prototype);return Rm(t,e),t},s]}function Qg(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function em(e){if(Lm(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function tm(){const e=xd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(xd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);Ym.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new xd(e,t),r=n.resolvedOptions(),o=r.locale,a=Ja(Object.keys(t),r),i=_a(om),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=Lm(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.J=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&nm(e);"function"==typeof n.value?n.value="constructor"===e?r:o||rm(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function nm(e){return function(){const t=Ym.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function rm(e){return function(){return Ym.get(this).J[e](...arguments)}}function om(e){const t=jm[e];if(!t)throw new TypeError($l(e));return Vh(t,_a(Kh))}function am(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{K:o}=e;const a=Lm(n)||{},{branding:i}=a,s=i===kf||t.includes(i)?a:bm(n);return o[r](s)};return n}function im(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Mg(r):(o=r,Object.assign(Object.create(ty),{X:o})))[n](e);var r,o};return t}function sm(){throw new TypeError("Cannot use valueOf")}function cm(e){let{calendar:t}=e;return"string"==typeof t?new Qy(t):t}function um(e,t){if(t=Ns(t),Fa(e)){const n=Lm(e);if(n&&n.branding===Of)return ms(t),n;const r=Dm(e);return Th($y(r||bd),!r,e,t)}const n=function(e,t){const n=vu(tf(t));if(n)return du(n),_s(Gi(n));const r=lu(t),{calendar:o}=r,a=e(o),[i,s,c]=a.u(r),[u,h]=a.l(i,s),[l,d]=a.m(u,h,c);return _s(a.p(l,d,c),o)}(Mg,e);return ms(t),n}function hm(e,t,n){return Rc(ts(t.call(e,dy(Rs(n)))))}function lm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uy;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Xa(t[o],e,of(e[o]));return r}function dm(e,t){return"string"==typeof e?zf(e):lm(e,t)}function fm(e){return dm(e,hy)}function gm(e){if(Fa(e)){const t=Lm(e);if(t)switch(t.branding){case Pf:return t;case Rf:return Rs(t.epochNanoseconds)}}return function(e){const t=pu(e=us(e));if(!t)throw new RangeError(_l(e));let n;if(t.o)n=0;else{if(!t.offset)throw new RangeError(_l(e));n=hu(t.offset)}return t.timeZone&&Su(t.timeZone,1),Rs(Ri(Ji(t),n))}(e)}function mm(e,t,n){const r=t.C(gm(n).epochNanoseconds,e);return r?dy(Rs(r)):null}function ym(e){return Fa(e)?(Lm(e)||{}).timeZone||yy(e):(e=>Cu(function(e){const t=pu(e);return t&&(t.timeZone||t.o&&Ff||t.offset)||e}(tf(e))))(e)}function pm(e,t){if(Fa(e)){const n=Lm(e)||{};switch(n.branding){case Lf:return ms(t),n;case Hf:return ms(t),Bs(n);case Rf:return ms(t),_h(fm,n)}return function(e,t){const n=ms(t);return Bs(Dh(Eh(e,od,[],1),n))}(e,t)}return ms(t),function(e){let t,n=(e=>{const t=ag.exec(e);return t?(Iu(t[10]),Mu(t)):void 0})(tf(e));if(!n){if(n=pu(e),!n)throw new RangeError(_l(e));if(!n.i)throw new RangeError(_l(e));if(n.o)throw new RangeError(Bl("Z"));du(n)}if((t=wu(e))&&Wi(t))throw new RangeError(_l(e));if((t=vu(e))&&Wi(t))throw new RangeError(_l(e));return Bs(Xi(n,1))}(e)}function wm(e){return void 0===e?void 0:pm(e)}function vm(e,t){if(t=Ns(t),Fa(e)){const n=Lm(e);return n&&n.branding===Nf?(ms(t),n):Ih(_y(Em(e)),e,t)}const n=function(e,t){const n=wu(tf(t));if(n)return du(n),Fs(Ii(Gi(n)));const r=lu(t),o=Vc(e(r.calendar),r);return Fs({...r,...o})}(Mg,e);return ms(t),n}function Sm(e,t){if(t=Ns(t),Fa(e)){const n=Lm(e)||{};switch(n.branding){case Hf:return ms(t),n;case kf:return ms(t),Ys({...n,...$d});case Rf:return ms(t),jh(fm,n)}return function(e,t,n){const r=Ah(e,t,pd,[],rd),o=ms(n);return Ys(Ai({...e.dateFromFields(r,Os(n,o)),...Dh(r,o)}))}(By(Em(e)),e,t)}const n=function(e){const t=pu(tf(e));if(!t||t.o)throw new RangeError(_l(e));return Ys(gu(t))}(e);return ms(t),n}function bm(e,t){if(t=Ns(t),Fa(e)){const n=Lm(e)||{};switch(n.branding){case kf:return ms(t),n;case Hf:return ms(t),js(n);case Rf:return ms(t),Fh(fm,n)}return Mh(By(Em(e)),e,t)}const n=lu(e);return ms(t),n}function Mm(e,t,n){return es(t.call(e,Ay(js(n,e))))}function Im(e){return t=>"string"==typeof t?Mg(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Xa(t[o],e,e[o]);return r})(t,e)}function Tm(e){if(Fa(e)){const t=Lm(e);return t&&t.branding===Yf?t:function(e){const t=Eh(e,Cd);return $s(eu({...Ld,...t}))}(e)}return function(e){const t=(e=>{const t=cg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=oi(o,nd[a])),void 0!==e){if(r)throw new RangeError(Bl(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Bl(e));return t})(e),n=1,t&&(o=Tu(t)*(nd[a]/Xl),r=1)}return i+s}let n=0,r=0,o=0,a={...Za(Dd,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...li(o,2,Dd)};if(!n)throw new RangeError(hl(Dd));return Eu(e[1])<0&&(a=Xc(a)),a})(t):void 0})(tf(e));if(!t)throw new RangeError(_l(e));return $s(eu(t))}(e)}function Am(e){if(void 0!==e){if(Fa(e)){const t=Lm(e)||{};switch(t.branding){case Rf:case kf:return t;case Hf:return js(t)}const n=Em(e);return{...bh(ym,dm,By(n),e),calendar:n}}return function(e){const t=pu(tf(e));if(!t)throw new RangeError(_l(e));if(t.timeZone)return fu(t,t.offset?hu(t.offset):void 0);if(t.o)throw new RangeError(_l(e));return mu(t)}(e)}}function Em(e){return Dm(e)||bd}function Dm(e){const{calendar:t}=e;if(void 0!==t)return Cm(t)}function Cm(e){return Fa(e)?(Lm(e)||{}).calendar||ep(e):(e=>hh(function(e){const t=pu(e)||wu(e)||vu(e);return t?t.calendar:e}(tf(e))))(e)}function Nm(e,t){if(t=Ns(t),Fa(e)){const n=Lm(e);if(n&&n.branding===Rf)return ys(t),n;const r=Em(e);return function(e,t,n,r,o,a){const i=Ah(n,o,pd,id,cd),s=e(i.timeZone),[c,u,h]=ys(a),l=n.dateFromFields(i,Os(a,c)),d=Dh(i,c);return Ps(kc(t(s),{...l,...d},void 0!==i.offset?hu(i.offset):void 0,u,h),s,r)}(ym,dm,By(r),r,e,t)}return function(e,t){const n=pu(tf(e));if(!n||!n.timeZone)throw new RangeError(_l(e));const{offset:r}=n,o=r?hu(r):void 0,[,a,i]=ys(t);return fu(n,o,a,i)}(e,t)}function Om(e){return Uf(e,fm)}function km(e){return za((e=>t=>e(Om(t))),e)}const Hm=new WeakMap,Lm=Hm.get.bind(Hm),Rm=Hm.set.bind(Hm),Pm=tm(),Ym=new WeakMap,jm={PlainYearMonth:Ug,PlainMonthDay:Zg,PlainDate:zg,PlainDateTime:Vg,PlainTime:Kg,Instant:Jg},Fm=Vh(Ug),_m=Vh(Zg),Bm=Vh(zg),$m=Vh(Vg),xm=Vh(Kg),Um=Vh(Jg),Zm=Vh(Gg),zm={era:function(e){if(void 0!==e)return tf(e)},eraYear:Qi,year:ts,month:es,daysInMonth:es,daysInYear:es,inLeapYear:nf,monthsInYear:es},Vm={monthCode:tf},Km={day:es},Jm={dayOfWeek:es,dayOfYear:es,weekOfYear:function(e){if(void 0!==e)return es(e)},yearOfWeek:Qi,daysInWeek:es},Gm=Object.assign({},zm,Vm,Km,Jm),Wm={...am(zm,[Nf]),...am(Jm,[]),...am(Vm,[Nf,Of]),...am(Km,[Of])},qm=im(Gm),Xm=im({...zm,...Vm}),Qm=im({...Vm,...Km}),ey={calendarId:e=>xs(e.calendar)},ty=za(((e,t)=>function(n){const{X:r}=this;return e(r[t](Ay(js(n,r))))}),Gm),ny=Va((e=>t=>t[e]),Dd.concat("sign")),ry=Va(((e,t)=>e=>e[Pd[t]]),rd),oy={epochSeconds:function(e){return Ni(e.epochNanoseconds)},epochMilliseconds:function(e){return ki(e.epochNanoseconds)},epochMicroseconds:function(e){return vi(e.epochNanoseconds,Wl)},epochNanoseconds:function(e){return vi(e.epochNanoseconds)}},ay=Xa(Ga,new Set(["branding"])),[iy,sy,cy]=Xg(Of,Xa((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bd,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:qd;const a=ds(t),i=ds(n),s=e(r);return _s(Ti(Gi({isoYear:ds(o),isoMonth:a,isoDay:i})),s)}),Cm),{...ey,...Qm},{with(e,t,n){return sy(function(e,t,n,r,o){const a=Ns(o);return((e,t,n,r)=>{const o=Ch(e,t,n,pd);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(Zy,e,this,em(t),n))},equals:(e,t)=>function(e,t){return!Ru(e,t)&&Us(e.calendar,t.calendar)}(e,um(t)),toString:gc,toJSON:e=>gc(e),toLocaleString(e,t,n){const[r,o]=_m(t,n,e);return r.format(o)},toPlainDate(e,t){return Ay(function(e,t,n,r){return((e,t,n)=>kh(e,t,vd,os(n),ld))(e(t.calendar),n,r)}(Uy,e,this,t))},getISOFields:ay,getCalendar:cm,valueOf:sm},{from:(e,t)=>sy(um(e,t))}),uy={getOffsetNanosecondsFor:hm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,Iy(Ys(n,bd)))].map((e=>fy(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(yi),Pc(Si(mi(r[0],r[o-1])))),r}},hy={getOffsetNanosecondsFor:hm},[ly,dy,fy]=Xg(Pf,(function(e){return Rs(Ei(pi(hs(e))))}),oy,{add:(e,t)=>dy(Yc(0,e,Tm(t))),subtract:(e,t)=>dy(Yc(1,e,Tm(t))),until:(e,t,n)=>Wy(ju(0,e,gm(t),n)),since:(e,t,n)=>Wy(ju(1,e,gm(t),n)),round:(e,t)=>dy(function(e,t){const[n,r,o]=vs(t,5,1);return Rs(oc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!ku(e,t)}(e,gm(t)),toString:(e,t)=>uc(ym,fm,e,t),toJSON:e=>uc(ym,fm,e),toLocaleString(e,t,n){const[r,o]=Um(t,n,e);return r.format(o)},toZonedDateTimeISO:(e,t)=>np(Yh(e,ym(t))),toZonedDateTime(e,t){const n=os(t);return np(Yh(e,ym(n.timeZone),Cm(n.calendar)))},valueOf:sm},{from:e=>dy(gm(e)),fromEpochSeconds:e=>dy(function(e){return Rs(Ei(wi(e,Xl)))}(e)),fromEpochMilliseconds:e=>dy(function(e){return Rs(Ei(wi(e,ql)))}(e)),fromEpochMicroseconds:e=>dy(function(e){return Rs(Ei(pi(hs(e),Wl)))}(e)),fromEpochNanoseconds:e=>dy(function(e){return Rs(Ei(pi(hs(e))))}(e)),compare:(e,t)=>ku(gm(e),gm(t))}),[gy,my]=Xg("TimeZone",(e=>{const t=Cu(e);return{branding:"TimeZone",id:t,K:zf(t)}}),{id:e=>e.id},{toString:e=>e.id,toJSON:e=>e.id,getPossibleInstantsFor:(e,t)=>{let{K:n}=e;return n.getPossibleInstantsFor(Sm(t)).map((e=>dy(Rs(e))))},getOffsetNanosecondsFor:(e,t)=>{let{K:n}=e;return n.getOffsetNanosecondsFor(gm(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=gm(t).epochNanoseconds;return Tc(lm(this,hy).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bd;const r=gm(t).epochNanoseconds,o=lm(this,hy).getOffsetNanosecondsFor(r);return Iy(Ys(Fi(r,o),Cm(n)))},getInstantFor(e,t,n){const r=Sm(t),o=ps(n),a=lm(this);return dy(Rs(Hc(a,r,o)))},getNextTransition:(e,t)=>{let{K:n}=e;return mm(1,n,t)},getPreviousTransition:(e,t)=>{let{K:n}=e;return mm(-1,n,t)},equals(e,t){return!!Yu(this,ym(t))}},{from(e){const t=ym(e);return"string"==typeof t?new gy(t):t}}),yy=Qg(Object.keys(uy)),[py,wy]=Xg(Lf,(function(){return Bs(Xi(za(ds,Za(Pd,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),ry,{with(e,t,n){return wy(function(e,t,n){return Bs(((e,t,n)=>{const r=ms(n);return Dh({...Ja(od,e),...Eh(t,od)},r)})(e,t,n))}(this,em(t),n))},add:(e,t)=>wy($c(0,e,Tm(t))),subtract:(e,t)=>wy($c(1,e,Tm(t))),until:(e,t,n)=>Wy(Uu(0,e,pm(t),n)),since:(e,t,n)=>Wy(Uu(1,e,pm(t),n)),round:(e,t)=>wy(function(e,t){return Bs(((e,t,n,r)=>qs(e,tc(t,n),r)[0])(e,...vs(t,5)))}(e,t)),equals:(e,t)=>function(e,t){return!Pu(e,t)}(e,pm(t)),toString:mc,toJSON:e=>mc(e),toLocaleString(e,t,n){const[r,o]=xm(t,n,e);return r.format(o)},toZonedDateTime:(e,t)=>np(function(e,t,n,r,o){const a=os(o),i=t(a.plainDate),s=e(a.timeZone);return Ps(Hc(n(s),{...i,...r}),s,i.calendar)}(ym,bm,dm,e,t)),toPlainDateTime:(e,t)=>Iy(function(e,t){return Ys(Ai({...e,...t}))}(e,bm(t))),getISOFields:ay,valueOf:sm},{from:(e,t)=>wy(pm(e,t)),compare:(e,t)=>Pu(pm(e),pm(t))}),[vy,Sy,by]=Xg(Nf,Xa((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bd,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=ds(t),i=ds(n),s=e(r);return Fs(Ii(Gi({isoYear:a,isoMonth:i,isoDay:ds(o)})),s)}),Cm),{...ey,...Xm},{with(e,t,n){return Sy(function(e,t,n,r,o){const a=Ns(o);return Fs(((e,t,n,r)=>{const o=Ch(e,t,n,md);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(xy,e,this,em(t),n))},add:(e,t,n)=>Sy(Bc(Ky,0,e,Tm(t),n)),subtract:(e,t,n)=>Sy(Bc(Ky,1,e,Tm(t),n)),until:(e,t,n)=>Wy($u(Jy,0,e,vm(t),n)),since:(e,t,n)=>Wy($u(Jy,1,e,vm(t),n)),equals:(e,t)=>function(e,t){return!Ru(e,t)&&Us(e.calendar,t.calendar)}(e,vm(t)),toString:fc,toJSON:e=>fc(e),toLocaleString(e,t,n){const[r,o]=Fm(t,n,e);return r.format(o)},toPlainDate(e,t){return Ay(function(e,t,n,r){return((e,t,n)=>kh(e,t,yd,os(n),gd))(e(t.calendar),n,r)}(Uy,e,this,t))},getISOFields:ay,getCalendar:cm,valueOf:sm},{from:(e,t)=>Sy(vm(e,t)),compare:(e,t)=>Ru(vm(e),vm(t))}),[My,Iy]=Xg(Hf,Xa((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:bd;return Ys(Ai(Ji(za(ds,Za(jd,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Cm),{...ey,...qm,...ry},{with(e,t,n){return Iy(function(e,t,n,r,o){const a=Ns(o);return Ys(((e,t,n,r)=>{const o=Ch(e,t,n,pd,rd),a=ms(r);return Ai({...e.dateFromFields(o,Os(r,a)),...Dh(o,a)})})(e(t.calendar),n,r,a))}(Uy,e,this,em(t),n))},withPlainTime:(e,t)=>Iy(function(e){return Ys({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:$d})}(e,wm(t))),withPlainDate:(e,t)=>Iy(function(e,t){return Ys({...e,...t},$h(e.calendar,t.calendar))}(e,bm(t))),withCalendar:(e,t)=>Iy(Bh(e,Cm(t))),add:(e,t,n)=>Iy(Fc(zy,0,e,Tm(t),n)),subtract:(e,t,n)=>Iy(Fc(zy,1,e,Tm(t),n)),until:(e,t,n)=>Wy(_u(Vy,0,e,Sm(t),n)),since:(e,t,n)=>Wy(_u(Vy,1,e,Sm(t),n)),round:(e,t)=>Iy(function(e,t){return Ys(Gs(e,...vs(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Lu(e,t)&&Us(e.calendar,t.calendar)}(e,Sm(t)),toString:(e,t)=>lc(e,t),toJSON:e=>lc(e),toLocaleString(e,t,n){const[r,o]=$m(t,n,e);return r.format(o)},toZonedDateTime:(e,t,n)=>np(function(e,t,n,r){return Ps(((e,t,n,r)=>{const o=ps(r);return Ei(Hc(e(t),n,o))})(e,n,t,r),n,t.calendar)}(dm,e,ym(t),n)),toPlainDate:e=>Ay(js(e)),toPlainYearMonth(e){return Sy(function(e,t,n){const r=e(t.calendar);return Fs({...t,...Oh(r,n)})}(_y,e,this))},toPlainMonthDay(e){return sy(function(e,t,n){return Nh(e(t.calendar),n)}($y,e,this))},toPlainTime:e=>wy(Bs(e)),getISOFields:ay,getCalendar:cm,valueOf:sm},{from:(e,t)=>Iy(Sm(e,t)),compare:(e,t)=>Lu(Sm(e),Sm(t))}),[Ty,Ay,Ey]=Xg(kf,Xa((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:bd;return js(Ti(Gi(za(ds,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Cm),{...ey,...qm},{with(e,t,n){return Ay(function(e,t,n,r,o){const a=Ns(o);return((e,t,n,r)=>{const o=Ch(e,t,n,pd);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(Uy,e,this,em(t),n))},withCalendar:(e,t)=>Ay(Bh(e,Cm(t))),add:(e,t,n)=>Ay(_c(zy,0,e,Tm(t),n)),subtract:(e,t,n)=>Ay(_c(zy,1,e,Tm(t),n)),until:(e,t,n)=>Wy(Bu(Vy,0,e,bm(t),n)),since:(e,t,n)=>Wy(Bu(Vy,1,e,bm(t),n)),equals:(e,t)=>function(e,t){return!Ru(e,t)&&Us(e.calendar,t.calendar)}(e,bm(t)),toString:dc,toJSON:e=>dc(e),toLocaleString(e,t,n){const[r,o]=Bm(t,n,e);return r.format(o)},toZonedDateTime(e,t){const n=!Fa(t)||t instanceof gy?{timeZone:t}:t;return np(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):$d;return Ps(Hc(n(a),{...r,...s}),a,r.calendar)}(ym,pm,dm,e,n))},toPlainDateTime:(e,t)=>Iy(function(e){return Ys(Ai({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:$d}))}(e,wm(t))),toPlainYearMonth(e){return Sy(function(e,t,n){return Oh(e(t.calendar),n)}(_y,e,this))},toPlainMonthDay(e){return sy(function(e,t,n){return Nh(e(t.calendar),n)}($y,e,this))},getISOFields:ay,getCalendar:cm,valueOf:sm},{from:(e,t)=>Ay(bm(e,t)),compare:(e,t)=>Ru(bm(e),bm(t))}),Dy={fields:(e,t,n)=>[...t.call(e,n)]},Cy=Object.assign({dateFromFields:(e,t,n,r)=>Ey(t.call(e,Object.assign(Object.create(null),n),r))},Dy),Ny=Object.assign({yearMonthFromFields:(e,t,n,r)=>by(t.call(e,Object.assign(Object.create(null),n),r))},Dy),Oy=Object.assign({monthDayFromFields:(e,t,n,r)=>cy(t.call(e,Object.assign(Object.create(null),n),r))},Dy),ky={mergeFields:(e,t,n,r)=>os(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},Hy=Object.assign({},Cy,ky),Ly=Object.assign({},Ny,ky),Ry=Object.assign({},Oy,ky),Py={dateAdd:(e,t,n,r,o)=>Ey(t.call(e,Ay(js(n,e)),Wy($s(r)),o))},Yy=Object.assign({},Py,{dateUntil:(e,t,n,r,o,a)=>qy(t.call(e,Ay(js(n,e)),Ay(js(r,e)),Object.assign(Object.create(null),a,{largestUnit:Kl[o]})))}),jy=Object.assign({},Py,{day:Mm}),Fy=Object.assign({},Yy,{day:Mm}),_y=Im(Ny),By=Im(Cy),$y=Im(Oy),xy=Im(Ly),Uy=Im(Hy),Zy=Im(Ry),zy=Im(Py),Vy=Im(Yy),Ky=Im(jy),Jy=Im(Fy),[Gy,Wy,qy]=Xg(Yf,(function(){return $s(eu(za(fs,Za(Dd,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...ny,blank:function(e){return!e.sign}},{with:(e,t)=>Wy(function(e,t){return $s((n=e,r=t,eu({...n,...Eh(r,Cd)})));var n,r}(e,t)),add:(e,t,n)=>Wy(Wc(Am,Vy,dm,0,e,Tm(t),n)),subtract:(e,t,n)=>Wy(Wc(Am,Vy,dm,1,e,Tm(t),n)),negated:e=>Wy(qc(e)),abs:e=>Wy(function(e){return-1===e.sign?qc(e):e}(e)),round:(e,t)=>Wy(function(e,t,n,r,o){const a=su(r),[i,s,c,u,h]=((e,t,n)=>{e=Cs(e,af);let r=Sf(e);const o=n(e[hf]);let a=Ts(e);const i=Cf(e,7);let s=vf(e);if(void 0===r&&void 0===s)throw new RangeError(jl);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ls(r,s),a=As(a,s,1),[r,s,a,i,o]})(o,a,e),l=Math.max(a,i);if(l<6||6===l&&(!h||!h.epochNanoseconds))return $s(eu(((e,t,n,r,o)=>({...Ld,...Xs(e,t,n,r,o)}))(r,i,s,c,u)));if(!h)throw new RangeError(Pl);const d=Zs(t,n,h);let f=0;r.weeks&&7===s&&(f=r.weeks,r={...r,weeks:0});let[g,m]=Gc(r,void 0,i,...d);const y=r.sign,p=Qc(g);if(y&&p&&y!==p)throw new RangeError(Il);return!p||0===s&&1===c||(g=ec(g,m,i,s,c,u,...d)),g.weeks+=f,$s(g)}(Am,Vy,dm,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=su(r),[i,s]=((e,t)=>{const n=t((e=Cs(e,sf))[hf]);let r=bf(e);return r=rs(sf,r),[r,n]})(o,e),c=Math.max(i,a);if(c<6||6===c&&(!s||!s.epochNanoseconds))return((e,t)=>Vs(nu(e),t))(r,i);if(!s)throw new RangeError(Pl);const u=Zs(t,n,s);return((e,t,n,r,o,a)=>{const i=Qc(e),[s,c]=Ks(au(e,n-1),n,i,r,o,a),u=Js(s,c,t);return e[Dd[n]]+u*i})(...Gc(r,void 0,i,...u),i,...u)}(Am,Vy,dm,e,t),toString:yc,toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):yc(e)},toJSON:e=>yc(e),valueOf:sm},{from:e=>Wy(Tm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(Ds(a).relativeTo),s=Math.max(su(r),su(o));if(qa(Dd,r,o))return 0;if(s<6||6===s&&(!i||!i.epochNanoseconds))return yi(hi(r,6,Dd),hi(o,6,Dd));if(!i)throw new RangeError(Pl);const[c,u,h]=Zs(t,n,i);return yi(zs(xc(r,c,u,h),h),zs(xc(o,c,u,h),h))}(Am,zy,dm,Tm(e),Tm(t),n)}),Xy={toString:e=>e.id,toJSON:e=>e.id,...Wm,dateAdd:(e,t,n,r)=>{let{id:o,K:a}=e;return Ay(js(a.dateAdd(bm(t),Tm(n),r),o))},dateUntil:(e,t,n,r)=>{let{K:o}=e;return Wy($s(o.dateUntil(bm(t),bm(n),function(e){return e=Ds(e),Sf(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,K:o}=e;return Ay(Mh(o,t,n,function(e){return e===bd?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,K:o}=e;return Sy(Ih(o,t,n,function(e){return e===bd?ld:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,K:o}=e;return sy(Th(o,0,t,n,function(e){return e===bd?gd:[]}(r)))},fields(e,t){let{K:n}=e;const r=new Set(pd),o=[];for(const e of t){if(tf(e),!r.has(e))throw new RangeError(cl(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{K:r}=e;return r.mergeFields(Wa(ns(t)),Wa(ns(n)))}},[Qy]=Xg("Calendar",(e=>{const t=hh(tf(e));return{branding:"Calendar",id:t,K:Mg(t)}}),{id:e=>e.id},Xy,{from(e){const t=Cm(e);return"string"==typeof t?new Qy(t):t}}),ep=Qg(Object.keys(Xy).slice(4)),[tp,np]=Xg(Rf,Xa((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:bd;return Ps(Ei(pi(hs(n))),t(r),e(o))}),Cm,ym),{...oy,...ey,...km(qm),...km(ry),hoursInDay:e=>function(e,t){const n=e(t.timeZone);return Lc(n,Uf(t,n),ed)}(dm,e),offsetNanoseconds:e=>Om(e).offsetNanoseconds,offset:e=>Tc(Om(e).offsetNanoseconds),timeZoneId:e=>xs(e.timeZone)},{with(e,t,n){return np(function(e,t,n,r,o,a){const i=Ns(a),{calendar:s,timeZone:c}=n;return Ps(((e,t,n,r,o)=>{const a=Ch(e,n,r,pd,sd,ad),[i,s,c]=ys(o,2);return kc(t,{...e.dateFromFields(a,Os(o,i)),...Dh(a,i)},hu(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(Uy,dm,e,this,em(t),n))},withPlainTime:(e,t)=>np(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$d;const r=t.timeZone,o=e(r),a={...Uf(t,o),...n};return Ps(kc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(dm,e,wm(t))),withPlainDate:(e,t)=>np(function(e,t,n){const r=t.timeZone,o=e(r),a={...Uf(t,o),...n},i=$h(t.calendar,n.calendar);return Ps(kc(o,a,a.offsetNanoseconds,2),r,i)}(dm,e,bm(t))),withTimeZone:(e,t)=>np(function(e,t){return{...e,timeZone:t}}(e,ym(t))),withCalendar:(e,t)=>np(Bh(e,Cm(t))),add:(e,t,n)=>np(jc(zy,dm,0,e,Tm(t),n)),subtract:(e,t,n)=>np(jc(zy,dm,1,e,Tm(t),n)),until:(e,t,n)=>Wy($s(Fu(Vy,dm,0,e,Nm(t),n))),since:(e,t,n)=>Wy($s(Fu(Vy,dm,1,e,Nm(t),n))),round:(e,t)=>np(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=vs(n);if(0===i&&1===s)return t;const u=e(o),h=u.getOffsetNanosecondsFor(r);let l={...Fi(r,h),calendar:a};return l={calendar:a,...Gs(l,i,s,c,u)},r=kc(u,l,h,2,0,1),Ps(r,o,a)}(dm,e,t)),startOfDay:e=>np(function(e,t){let{epochNanoseconds:n,timeZone:r,calendar:o}=t;const a=e(r);return n=kc(a,{...Uf(t,a),...$d},void 0,0,0,1),Ps(n,r,o)}(dm,e)),equals:(e,t)=>function(e,t){return!Hu(e,t)&&!!Yu(e.timeZone,t.timeZone)&&Us(e.calendar,t.calendar)}(e,Nm(t)),toString:(e,t)=>hc(fm,e,t),toJSON:e=>hc(fm,e),toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Zm(t,n,e);return r.format(o)},toInstant:e=>dy(function(e){return Rs(e.epochNanoseconds)}(e)),toPlainDate:e=>Ay(Fh(fm,e)),toPlainTime:e=>wy(_h(fm,e)),toPlainDateTime:e=>Iy(jh(fm,e)),toPlainYearMonth(e){return Sy(function(e,t,n){return Oh(e(t.calendar),n)}(_y,e,this))},toPlainMonthDay(e){return sy(function(e,t,n){return Nh(e(t.calendar),n)}($y,e,this))},getISOFields:e=>function(e,t){const n=Uf(t,e);return{calendar:t.calendar,...Ja(Bd,n),offset:Tc(n.offsetNanoseconds),timeZone:t.timeZone}}(fm,e),getCalendar:cm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new gy(t):t},valueOf:sm},{from:(e,t)=>np(Nm(e,t)),compare:(e,t)=>Hu(Nm(e),Nm(t))}),rp=Object.defineProperties({},{...Ua("Temporal.Now"),...$a({timeZoneId:()=>qh(),instant:()=>dy(Rs(Wh())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qh();return np(Ps(Wh(),ym(t),Cm(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qh();return np(Ps(Wh(),ym(e),bd))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qh();return Iy(Ys(Gh(fm(ym(t))),Cm(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qh();return Iy(Ys(Gh(fm(ym(e))),bd))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qh();return Ay(js(Gh(fm(ym(t))),Cm(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qh();return Ay(js(Gh(fm(ym(e))),bd))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qh();return wy(Bs(Gh(fm(ym(e)))))}})}),op=Object.defineProperties({},{...Ua("Temporal"),...$a({PlainYearMonth:vy,PlainMonthDay:iy,PlainDate:Ty,PlainTime:py,PlainDateTime:My,ZonedDateTime:tp,Instant:ly,Calendar:Qy,TimeZone:gy,Duration:Gy,Now:rp})});function ap(e){return e*Math.PI/180}function ip(e){return 180*e/Math.PI}class sp{constructor(e,t,n,r,o){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const cp=6356.9;class up{constructor(e,t){this.date=t,this.geoLocation=e}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const e=this.getUTCSunrise0(up.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(up.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(up.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(up.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(up.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(up.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(up.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(up.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(up.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(up.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return ip(Math.acos(cp/(cp+e/1e3)))}adjustZenith(e,t){let n=e;return e===up.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=up.getSunriseUTC(up.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=up.getSunsetUTC(up.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return up.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new op.PlainTime(o,a,i,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-up.JULIAN_DAY_JAN_1_2000)/up.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*up.JULIAN_DAYS_PER_CENTURY+up.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(e){let t=280.46646+e*(36000.76983+3032e-7*e);for(;t>360;)t-=360;for(;t<0;)t+=360;return t}static getSunGeometricMeanAnomaly(e){return 357.52911+e*(35999.05029-1537e-7*e)}static getEarthOrbitEccentricity(e){return.016708634-e*(42037e-9+1.267e-7*e)}static getSunEquationOfCenter(e){const t=ap(up.getSunGeometricMeanAnomaly(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}static getSunTrueLongitude(e){return up.getSunGeometricMeanLongitude(e)+up.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return up.getSunTrueLongitude(e)-.00569-.00478*Math.sin(ap(t))}static getMeanObliquityOfEcliptic(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}static getObliquityCorrection(e){const t=125.04-1934.136*e;return up.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(ap(t))}static getSunDeclination(e){const t=up.getObliquityCorrection(e),n=up.getSunApparentLongitude(e),r=Math.sin(ap(t))*Math.sin(ap(n));return ip(Math.asin(r))}static getEquationOfTime(e){const t=up.getObliquityCorrection(e),n=up.getSunGeometricMeanLongitude(e),r=up.getEarthOrbitEccentricity(e),o=up.getSunGeometricMeanAnomaly(e);let a=Math.tan(ap(t)/2);a*=a;const i=Math.sin(2*ap(n)),s=Math.sin(ap(o));return 4*ip(a*i-2*r*s+4*r*a*s*Math.cos(2*ap(n))-.5*a*a*Math.sin(4*ap(n))-1.25*r*r*Math.sin(2*ap(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=ap(e),o=ap(t);return Math.acos(Math.cos(ap(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=ap(e),o=ap(t);return-Math.acos(Math.cos(ap(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=up.getJulianDay(e.toPlainDate()),o=up.getJulianCenturiesFromJulianDay(r),a=up.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=ap(n-i),c=ap(up.getSunDeclination(o)),u=ap(t);return ip(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=up.getJulianDay(e.toPlainDate()),o=up.getJulianCenturiesFromJulianDay(r),a=up.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=ap(n-i),c=ap(up.getSunDeclination(o)),u=ap(t);return ip(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=up.getJulianCenturiesFromJulianDay(e),a=up.getSolarNoonUTC(o,n),i=up.getJulianCenturiesFromJulianDay(e+a/1440);let s=up.getEquationOfTime(i),c=up.getSunDeclination(i),u=up.getSunHourAngleAtSunrise(t,c,r),h=n-ip(u),l=4*h,d=720+l-s;const f=up.getJulianCenturiesFromJulianDay(up.getJulianDayFromJulianCenturies(o)+d/1440);return s=up.getEquationOfTime(f),c=up.getSunDeclination(f),u=up.getSunHourAngleAtSunrise(t,c,r),h=n-ip(u),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=up.getJulianCenturiesFromJulianDay(up.getJulianDayFromJulianCenturies(e)+t/360);let r=up.getEquationOfTime(n);const o=720+4*t-r,a=up.getJulianCenturiesFromJulianDay(up.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=up.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=up.getJulianCenturiesFromJulianDay(e),a=up.getSolarNoonUTC(o,n),i=up.getJulianCenturiesFromJulianDay(e+a/1440);let s=up.getEquationOfTime(i),c=up.getSunDeclination(i),u=up.getSunHourAngleAtSunset(t,c,r),h=n-ip(u),l=4*h,d=720+l-s;const f=up.getJulianCenturiesFromJulianDay(up.getJulianDayFromJulianCenturies(o)+d/1440);return s=up.getEquationOfTime(f),c=up.getSunDeclination(f),u=up.getSunHourAngleAtSunset(t,c,r),h=n-ip(u),l=4*h,d=720+l-s,d}}const hp=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],lp=new Map,dp={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},fp=new Map;class gp extends sp{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=fp.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return fp.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return lp.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return dp[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":dp[t]}static addLocation(e,t){const n=e.toLowerCase();return!lp.has(n)&&(lp.set(n,t),!0)}}for(const e of hp){const t=new gp(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);gp.addLocation(t.getName(),t)}const mp=new Map;const yp=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function pp(e,t){const n=function(e){const t=mp.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 mp.set(e,n),n}(e).format(t),r=yp.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=wp(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function wp(e){return e<0?"-00"+wp(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function vp(e){return e<10?"0"+e:String(e)}function Sp(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,$a({Temporal:op})),Object.defineProperties(Intl,$a({DateTimeFormat:Pm})),Object.defineProperties(Date.prototype,$a({toTemporalInstant:function(){return dy(Rs(wi(this.valueOf(),ql)))}}));class bp{constructor(t,n,r){const o=e.greg.isDate(n)?n:ie.isHDate(n)?n.greg():Q(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new up(t,a),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return Sp(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return Sp(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return Sp(this.noaa.getSeaLevelSunrise())}sunset(){return Sp(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return Sp(this.noaa.getSeaLevelSunset())}dawn(){return Sp(this.noaa.getBeginCivilTwilight())}dusk(){return Sp(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new bp(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return Sp(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.noaa.getSunrise(),n=this.noaa.getSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return Sp(up.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHour16Point1(){const e=this.alotHaShachar();return[e,(this.tzeit(16.1)-e)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=pp("UTC",t),r=pp(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+vp(Math.floor(r/60))+":"+vp(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:pp(e,t).substring(0,19)+bp.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const Mp={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function Ip(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===Mp[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function Tp(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():he.LIGHT_CANDLES;void 0!==e?r||(s&(he.LIGHT_CANDLES_TZEIS|he.CHANUKAH_CANDLES)?i=!0:s&he.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=he.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new bp(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new Ep(t,s,l,u,n.havdalahMins,e,n):new Dp(t,s,l,u,e,n)}class Ap extends de{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=bp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=bp.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=Ip(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return X.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return X.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class Ep extends Ap{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=X.gettext(this.getDesc(),e);if(this.havdalahMins){const n=X.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class Dp extends Ap{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function Cp(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new Ap(e,n,r.getFlags(),t,a,r,o)}const Np=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Op=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],kp="בַּלַּ֥יְלָה";class Hp{constructor(e,t){let n=t-7;n<0&&(n+=ie.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return ie.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=X.gettext(this.getMonthName(),e),o=(n?Op:Np)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=X.gettext("Molad",e),u=X.lookupTranslation("min",e)||"minutes",h=X.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?kp:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":kp}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?X.hebrewStripNikkud(t):t}const l=Ip(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class Lp extends de{constructor(e,t,n,r){const o=new Hp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,he.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}const Rp=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Pp=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class Yp extends de{constructor(e,t){if(super(e,`Omer ${t}`,he.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";if("he"===e)return this.sefiraHe();if("translit"===e)return this.sefiraTranslit();{const e=Rp[this.weekNumber];return`${Rp[this.daysWithinWeeks]} within ${e}`}}sefiraTranslit(){const e=this.weekNumber,t=Pp[e];return`${Pp[this.daysWithinWeeks]} ${2===e||6===e?"shebi":"sheb'"}${t}`}sefiraHe(){const e=this.weekNumber,t=Rp[e],n=Rp[this.daysWithinWeeks],r=X.gettext(t,"he");return`${X.gettext(n,"he")} ${2===e||6===e?"שֶׁבִּ":"שֶׁבְּ"}${r}`.normalize()}render(e){e=e||X.getLocaleName();const t=this.omer;return("he"==e?z(t):X.ordinal(t,e))+" "+X.gettext("day of the Omer",e)}renderBrief(e){return X.gettext("Omer",e)+" "+X.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;const e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return zp(this.omer);if("he-x-nonikud"===e)return X.hebrewStripNikkud(zp(this.omer));const t=1===this.omer?"day":"days";let n=`Today is ${this.omer} ${t}`;if(this.weekNumber>1||7===this.omer){const e=7===this.daysWithinWeeks,t=e?this.weekNumber:this.weekNumber-1;if(n+=`, which is ${t} ${1===t?"week":"weeks"}`,!e){const e=1===this.daysWithinWeeks?"day":"days";n+=` and ${this.daysWithinWeeks} ${e}`}}return n+" of the Omer"}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}const jp=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Fp=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],_p="שְׁנֵי",Bp="יָמִים",$p=_p+" "+Bp,xp="שָׁבוּעוֹת",Up="יוֹם",Zp=Up+" "+Fp[1];function zp(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=Fp[n]+" עָשָׂר":e>9&&(r+=Fp[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=jp[t]),r+=e<11?Fp[n]+" "+Bp+" ":" "+Up+" "):r+=1===e?Zp+" ":$p+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Fp[t]+" "+xp+" ":1==t?"שָׁבוּעַ "+Fp[1]+" ":_p+" "+xp+" ",n&&(r+="וְ",r+=n>2?Fp[n]+" "+Bp+" ":1==n?Zp+" ":$p+" ")}return r+="לָעוֹמֶר",r.normalize()}class Vp extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#d(e,t){this.#n.delete(e),this.#l(e,t)}*#f(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#d(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#f()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#f())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class Kp{constructor(e,t){e=+e;const n=ie.longCheshvan(e),r=ie.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new ie(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=ie.dayOnOrBefore(6,i+6);const c=this.leap=+ie.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(hw[u])this.key=u,this.theSedraArray=hw[u];else{const e=this.key=u+ +this.il;this.theSedraArray=hw[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||X.getLocaleName();let o=X.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+X.gettext(n[1],r)}return o=o.replace(/'/g,"’"),X.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new ie(this.firstSaturday+7*t)}if("string"==typeof e){const t=Gp.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new ie(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=Gp.get(t);if(Gp.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:ie.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ie.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return dw(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Jp[o]],chag:!1,num:o+1};const a=Wp(o);return{parsha:[Jp[a],Jp[a+1]],chag:!1,num:[a+1,a+2]}}}const Jp=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'azinu"],Gp=new Map;for(let e=0;e<Jp.length;e++){const t=Jp[e];Gp.set(t,e)}function Wp(e){return-e}const qp="Rosh Hashana",Xp="Yom Kippur",Qp="Sukkot",ew="Sukkot Shabbat Chol ha-Moed",tw="Shmini Atzeret",nw=ew,rw="Pesach",ow="Pesach I",aw="Pesach Shabbat Chol ha-Moed",iw="Pesach VII",sw="Pesach VIII",cw="Shavuot";function uw(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const hw={"020":[51,52].concat(nw,uw(0,20),Wp(21),23,24,rw,25,Wp(26),Wp(28),30,Wp(31),uw(33,40),Wp(41),uw(43,49),Wp(50)),"0220":[51,52].concat(nw,uw(0,20),Wp(21),23,24,rw,25,Wp(26),Wp(28),30,Wp(31),33,cw,uw(34,37),Wp(38),40,Wp(41),uw(43,49),Wp(50)),"0510":[52].concat(Xp,nw,uw(0,20),Wp(21),23,24,ow,sw,25,Wp(26),Wp(28),30,Wp(31),uw(33,40),Wp(41),uw(43,50)),"0511":[52].concat(Xp,nw,uw(0,20),Wp(21),23,24,rw,25,Wp(26),Wp(28),uw(30,40),Wp(41),uw(43,50)),"052":[52].concat(Xp,ew,uw(0,24),iw,25,Wp(26),Wp(28),30,Wp(31),uw(33,40),Wp(41),uw(43,50)),"070":[].concat(qp,52,Qp,tw,uw(0,20),Wp(21),23,24,iw,25,Wp(26),Wp(28),30,Wp(31),uw(33,40),Wp(41),uw(43,50)),"072":[].concat(qp,52,Qp,tw,uw(0,20),Wp(21),23,24,aw,25,Wp(26),Wp(28),30,Wp(31),uw(33,40),Wp(41),uw(43,49),Wp(50)),1200:[51,52].concat(ew,uw(0,27),aw,uw(28,33),cw,uw(34,37),Wp(38),40,Wp(41),uw(43,49),Wp(50)),1201:[51,52].concat(ew,uw(0,27),aw,uw(28,40),Wp(41),uw(43,49),Wp(50)),1220:[51,52].concat(ew,uw(0,27),ow,sw,uw(28,40),Wp(41),uw(43,50)),1221:[51,52].concat(ew,uw(0,27),rw,uw(28,50)),150:[52].concat(Xp,ew,uw(0,28),iw,uw(29,50)),152:[52].concat(Xp,ew,uw(0,28),aw,uw(29,49),Wp(50)),170:[].concat(qp,52,Qp,tw,uw(0,27),aw,uw(28,40),Wp(41),uw(43,49),Wp(50)),1720:[].concat(qp,52,Qp,tw,uw(0,27),aw,uw(28,33),cw,uw(34,37),Wp(38),40,Wp(41),uw(43,49),Wp(50))};hw["0221"]=hw["020"],hw["0310"]=hw["0220"],hw["0311"]=hw["020"],hw[1310]=hw[1220],hw[1311]=hw[1221],hw[1721]=hw[170];const lw=new Vp({maxSize:400});function dw(e,t){const n=`${e}-${t?1:0}`;let r=lw.get(n);return r||(r=new Kp(e,t),lw.set(n,r)),r}class fw extends de{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),he.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||X.getLocaleName(),n=this.parsha;let r=X.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+X.gettext(n[1],e)}r=r.replace(/'/g,"’");return(X.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var gw=qr,mw=Ln,yw=Fn,pw=ve,ww=function(e,t,n){return n.get&&gw(n.get,t,{getter:!0}),n.set&&gw(n.set,t,{setter:!0}),mw.f(e,t,n)},vw=function(){var e=yw(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Sw=we,bw=ye.RegExp,Mw=bw.prototype,Iw=pw&&Sw((function(){var e=!0;try{bw(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Mw,"flags").get.call(t)!==r||n!==r}));Iw&&ww(Mw,"flags",{configurable:!0,get:vw});const Tw=0,Aw=2,Ew=5,Dw=6,Cw=m.NISAN,Nw=m.IYYAR;function Ow(e){if(e<5708)return null;let t;const n=new ie(15,Cw,e).getDay();return t=n===Tw?2:n===Dw?3:e<5764?4:n===Aw?5:4,new ie(t,Nw,e)}const kw=m.NISAN,Hw=m.IYYAR,Lw=m.SIVAN,Rw=m.TAMUZ,Pw=m.AV,Yw=m.ELUL,jw=m.TISHREI,Fw=m.CHESHVAN,_w=m.KISLEV,Bw=m.SHVAT,$w=m.ADAR_II,xw=he.CHAG,Uw=he.LIGHT_CANDLES,Zw=he.YOM_TOV_ENDS,zw=he.CHUL_ONLY,Vw=he.IL_ONLY,Kw=he.LIGHT_CANDLES_TZEIS,Jw=he.CHANUKAH_CANDLES,Gw=he.MAJOR_FAST,Ww=he.MINOR_HOLIDAY,qw=he.EREV,Xw=he.CHOL_HAMOED,Qw="🫓",ev="🌿🍋",tv=[{mm:jw,dd:2,desc:"Rosh Hashana II",flags:xw|Zw,emoji:"🍏🍯"},{mm:jw,dd:9,desc:"Erev Yom Kippur",flags:qw|Uw},{mm:jw,dd:10,desc:"Yom Kippur",flags:xw|Gw|Zw},{mm:jw,dd:14,desc:"Erev Sukkot",flags:zw|qw|Uw,emoji:ev},{mm:jw,dd:15,desc:"Sukkot I",flags:zw|xw|Kw,emoji:ev},{mm:jw,dd:16,desc:"Sukkot II",flags:zw|xw|Zw,emoji:ev},{mm:jw,dd:17,desc:"Sukkot III (CH''M)",flags:zw|Xw,chmDay:1,emoji:ev},{mm:jw,dd:18,desc:"Sukkot IV (CH''M)",flags:zw|Xw,chmDay:2,emoji:ev},{mm:jw,dd:19,desc:"Sukkot V (CH''M)",flags:zw|Xw,chmDay:3,emoji:ev},{mm:jw,dd:20,desc:"Sukkot VI (CH''M)",flags:zw|Xw,chmDay:4,emoji:ev},{mm:jw,dd:22,desc:"Shmini Atzeret",flags:zw|xw|Kw},{mm:jw,dd:23,desc:"Simchat Torah",flags:zw|xw|Zw},{mm:jw,dd:14,desc:"Erev Sukkot",flags:Vw|qw|Uw,emoji:ev},{mm:jw,dd:15,desc:"Sukkot I",flags:Vw|xw|Zw,emoji:ev},{mm:jw,dd:16,desc:"Sukkot II (CH''M)",flags:Vw|Xw,chmDay:1,emoji:ev},{mm:jw,dd:17,desc:"Sukkot III (CH''M)",flags:Vw|Xw,chmDay:2,emoji:ev},{mm:jw,dd:18,desc:"Sukkot IV (CH''M)",flags:Vw|Xw,chmDay:3,emoji:ev},{mm:jw,dd:19,desc:"Sukkot V (CH''M)",flags:Vw|Xw,chmDay:4,emoji:ev},{mm:jw,dd:20,desc:"Sukkot VI (CH''M)",flags:Vw|Xw,chmDay:5,emoji:ev},{mm:jw,dd:22,desc:"Shmini Atzeret",flags:Vw|xw|Zw},{mm:jw,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:Uw|Xw,chmDay:-1,emoji:ev},{mm:_w,dd:24,desc:"Chanukah: 1 Candle",flags:qw|Ww|Jw,emoji:"🕎1️⃣"},{mm:Bw,dd:15,desc:"Tu BiShvat",flags:Ww,emoji:"🌳"},{mm:$w,dd:13,desc:"Erev Purim",flags:qw|Ww,emoji:"🎭️📜"},{mm:$w,dd:14,desc:"Purim",flags:Ww,emoji:"🎭️📜"},{mm:$w,dd:15,desc:"Shushan Purim",flags:Ww,emoji:"🎭️📜"},{mm:kw,dd:14,desc:"Erev Pesach",flags:Vw|qw|Uw,emoji:"🫓🍷"},{mm:kw,dd:15,desc:"Pesach I",flags:Vw|xw|Zw,emoji:Qw},{mm:kw,dd:16,desc:"Pesach II (CH''M)",flags:Vw|Xw,chmDay:1,emoji:Qw},{mm:kw,dd:17,desc:"Pesach III (CH''M)",flags:Vw|Xw,chmDay:2,emoji:Qw},{mm:kw,dd:18,desc:"Pesach IV (CH''M)",flags:Vw|Xw,chmDay:3,emoji:Qw},{mm:kw,dd:19,desc:"Pesach V (CH''M)",flags:Vw|Xw,chmDay:4,emoji:Qw},{mm:kw,dd:20,desc:"Pesach VI (CH''M)",flags:Vw|Xw|Uw,chmDay:5,emoji:Qw},{mm:kw,dd:21,desc:"Pesach VII",flags:Vw|xw|Zw,emoji:Qw},{mm:kw,dd:14,desc:"Erev Pesach",flags:zw|qw|Uw,emoji:"🫓🍷"},{mm:kw,dd:15,desc:"Pesach I",flags:zw|xw|Kw,emoji:"🫓🍷"},{mm:kw,dd:16,desc:"Pesach II",flags:zw|xw|Zw,emoji:Qw},{mm:kw,dd:17,desc:"Pesach III (CH''M)",flags:zw|Xw,chmDay:1,emoji:Qw},{mm:kw,dd:18,desc:"Pesach IV (CH''M)",flags:zw|Xw,chmDay:2,emoji:Qw},{mm:kw,dd:19,desc:"Pesach V (CH''M)",flags:zw|Xw,chmDay:3,emoji:Qw},{mm:kw,dd:20,desc:"Pesach VI (CH''M)",flags:zw|Xw|Uw,chmDay:4,emoji:Qw},{mm:kw,dd:21,desc:"Pesach VII",flags:zw|xw|Kw,emoji:Qw},{mm:kw,dd:22,desc:"Pesach VIII",flags:zw|xw|Zw,emoji:Qw},{mm:Hw,dd:14,desc:"Pesach Sheni",flags:Ww},{mm:Hw,dd:18,desc:"Lag BaOmer",flags:Ww,emoji:"🔥"},{mm:Lw,dd:5,desc:"Erev Shavuot",flags:qw|Uw,emoji:"⛰️🌸"},{mm:Lw,dd:6,desc:"Shavuot",flags:Vw|xw|Zw,emoji:"⛰️🌸"},{mm:Lw,dd:6,desc:"Shavuot I",flags:zw|xw|Kw,emoji:"⛰️🌸"},{mm:Lw,dd:7,desc:"Shavuot II",flags:zw|xw|Zw,emoji:"⛰️🌸"},{mm:Pw,dd:15,desc:"Tu B'Av",flags:Ww,emoji:"❤️"},{mm:Yw,dd:1,desc:"Rosh Hashana LaBehemot",flags:Ww,emoji:"🐑"},{mm:Yw,dd:29,desc:"Erev Rosh Hashana",flags:qw|Uw,emoji:"🍏🍯"}],nv=[{firstYear:5727,mm:Hw,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:_w,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Bw,dd:30,desc:"Family Day"},{firstYear:5758,mm:Fw,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Hw,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Rw,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:Fw,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:kw,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:Fw,dd:7,desc:"Yom HaAliyah School Observance"},{firstYear:5773,mm:m.TEVET,dd:21,desc:"Hebrew Language Day",friSatMovetoThu:!0}],rv=he.CHAG,ov=he.IL_ONLY,av=he.LIGHT_CANDLES_TZEIS,iv=he.CHANUKAH_CANDLES,sv=he.MINOR_FAST,cv=he.SPECIAL_SHABBAT,uv=he.MODERN_HOLIDAY,hv=he.MAJOR_FAST,lv=he.MINOR_HOLIDAY,dv=he.EREV;class fv extends de{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&ov?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&cv?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const gv="Rosh Chodesh";class mv extends fv{constructor(e,t){super(e,`${gv} ${t}`,he.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=X.gettext(t,e).replace(/'/g,"’");return X.gettext(gv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class yv extends fv{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const pv="Shabbat Mevarchim Chodesh";class wv extends de{constructor(e,t,n){if(super(e,`${pv} ${t}`,he.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==ie.monthsInYear(t)?Mv:n+1,o=new Hp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=X.gettext(this.monthName,e).replace(/'/g,"’");return X.gettext(pv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class vv extends fv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return X.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Sv="Yom Kippur Katan";class bv extends fv{constructor(e,t){super(e,`${Sv} ${t}`,he.MINOR_FAST|he.YOM_KIPPUR_KATAN),this.nextMonthName=t,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${t}`}basename(){return this.getDesc()}render(e){const t=X.gettext(this.nextMonthName,e).replace(/'/g,"’");return X.gettext(Sv,e)+" "+t}renderBrief(e){return X.gettext(Sv,e)}url(){}}const Mv=m.NISAN,Iv=m.TAMUZ,Tv=m.AV,Av=m.TISHREI,Ev=m.KISLEV,Dv=m.TEVET,Cv=m.ADAR_I,Nv=m.ADAR_II,Ov={emoji:"🇮🇱"},kv=new Vp({maxSize:400}),Hv=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Lv(e){if("number"!=typeof e)throw new TypeError(`bad Hebrew year: ${e}`);if(e<1||e>32658)throw new RangeError(`Hebrew year ${e} out of range 1-32658`);const t=kv.get(e);if(t)return t;const n=new ie(1,Av,e),r=new ie(15,Mv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&dv?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of tv){const n=new ie(t.dd,t.mm,e),r=new fv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new vv(n,e,rv|av)),a(new fv(new ie(3+(4==n.getDay()),Av,e),"Tzom Gedaliah",sv)),a(new fv(new ie(ie.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",cv));const i=ie.shortKislev(e)?new ie(1,Dv,e):new ie(30,Ev,e);a(new fv(i,"Chag HaBanot",lv));for(let t=2;t<=8;t++){const n=new ie(23+t,Ev,e);a(new fv(n,`Chanukah: ${t} Candles`,lv|iv,{chanukahDay:t-1,emoji:"🕎"+Hv[t]}))}a(new fv(new ie(32,Ev,e),"Chanukah: 8th Day",lv,{chanukahDay:8,emoji:"🕎"})),a(new yv(new ie(10,Dv,e),"Asara B'Tevet",sv));const s=r.abs();a(new fv(new ie(ie.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",cv),new fv(new ie(ie.dayOnOrBefore(6,s-30)),"Shabbat Zachor",cv),new fv(new ie(s-(2==r.getDay()?33:31)),"Ta'anit Esther",sv)),a(new fv(new ie(ie.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",cv),new fv(new ie(ie.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",cv),new fv(new ie(ie.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",cv),new fv(6==r.prev().getDay()?r.onOrBefore(4):new ie(14,Mv,e),"Ta'anit Bechorot",sv)),a(new fv(new ie(ie.dayOnOrBefore(6,new ie(1,Av,e+1).abs()-4)),"Leil Selichot",lv,{emoji:"🕍"})),0==r.getDay()&&a(new fv(new ie(16,Nv,e),"Purim Meshulash",lv)),ie.isLeapYear(e)&&(a(new fv(new ie(14,Cv,e),"Purim Katan",lv,{emoji:"🎭️"})),a(new fv(new ie(15,Cv,e),"Shushan Purim Katan",lv,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new ie(27,Cw,e);return t.getDay()===Ew?t=new ie(26,Cw,e):t.getDay()===Tw&&(t=new ie(28,Cw,e)),t}(e);c&&a(new fv(c,"Yom HaShoah",uv));const u=Ow(e);u&&a(new fv(u,"Yom HaZikaron",uv,Ov),new fv(u.next(),"Yom HaAtzma'ut",uv,Ov));for(const t of nv)if(e>=t.firstYear){let n=new ie(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ie(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?uv:uv|ov,i=new fv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let h,l=new ie(17,Iv,e);6==l.getDay()&&(l=new ie(18,Iv,e),h={observed:!0}),a(new fv(l,"Tzom Tammuz",sv,h));let d,f=new ie(9,Tv,e),g="Tish'a B'Av";6==f.getDay()&&(f=f.next(),d={observed:!0},g+=" (observed)");const y=f.abs();a(new fv(new ie(ie.dayOnOrBefore(6,y)),"Shabbat Chazon",cv),new fv(f.prev(),"Erev Tish'a B'Av",dv|hv,d),new fv(f,g,hv,d),new fv(new ie(ie.dayOnOrBefore(6,y+7)),"Shabbat Nachamu",cv));const p=ie.monthsInYear(e);for(let t=1;t<=p;t++){const n=ie.getMonthName(t,e);30==(t==Mv?ie.daysInMonth(ie.monthsInYear(e-1),e-1):ie.daysInMonth(t-1,e))?(a(new mv(new ie(1,t,e),n)),a(new mv(new ie(30,t-1,e),n))):t!==Av&&a(new mv(new ie(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===Av||n===m.CHESHVAN||n===Dv)continue;let r=new ie(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=ie.getMonthName(n,e);a(new bv(r,i))}const w=dw(e,!1).find(15);a(new fv(w,"Shabbat Shirah",cv));const v=function(e){const t=ie.isLeapYear(e),n=t?Nv:Mv,r=t?20:1,o=ie.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(v){const e=new ie(v);a(new fv(e,"Birkat Hachamah",lv,{emoji:"☀️"}))}return kv.set(e,o),o}const Rv=new Map;class Pv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Rv.set(e,t)}static lookup(e,t){const n=Rv.get(e);return"function"==typeof n?n(t):null}}const Yv="5.3.0";var jv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}};X.addLocale("ashkenazi",jv),X.addLocale("a",jv);var Fv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["אחרי השקיעה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};X.addLocale("he",Fv),X.addLocale("h",Fv);const _v=Fv.contexts[""],Bv={};for(const[e,t]of Object.entries(_v))Bv[e]=[X.hebrewStripNikkud(t[0])];const $v={headers:Fv.headers,contexts:{"":Bv}};function xv(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}X.addLocale("he-x-NoNikud",$v);const Uv={shacharit:!1,mincha:!1,allCongs:!1};function Zv(e,t){return zv(e,t,!0)}function zv(e,t,n){const r=function(e,t){const n=ie.isLeapYear(e),r=12+n;let o=new ie(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new ie(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(xv(1,r).map((t=>new ie(1,t,e))),xv(1,r).filter((t=>30===ie.daysInMonth(t,e))).map((t=>new ie(30,t,e))),new ie(2,m.TISHREI,e),xv(1,ie.daysInMonth(m.NISAN,e)).map((t=>new ie(t,m.NISAN,e))),new ie(18,m.IYYAR,e),xv(1,8-(t?1:0)).map((t=>new ie(t,m.SIVAN,e))),o,new ie(15,m.AV,e),new ie(29,m.ELUL,e),xv(9,24-(t?1:0)).map((t=>new ie(t,m.TISHREI,e))),xv(25,33).map((t=>new ie(t,m.KISLEV,e))),new ie(15,m.SHVAT,e),new ie(14,m.ADAR_II,e),a,n?new ie(14,m.ADAR_I,e):[]),s=[].concat(xv(1,13).map((t=>new ie(t,m.SIVAN,e))),xv(20,31).map((t=>new ie(t,m.TISHREI,e))),new ie(14,m.IYYAR,e),e>=5708?Ow(e).next():[],e>=5727?new ie(28,m.IYYAR,e):[]),c=[].concat(new ie(29,m.ELUL,e-1),new ie(9,m.TISHREI,e),new ie(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return Uv;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=zv(new ie(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:Uv}const Vv=m.NISAN,Kv=m.SIVAN,Jv=m.ELUL,Gv=m.TISHREI,Wv=he.LIGHT_CANDLES,qv=he.YOM_TOV_ENDS,Xv=he.CHUL_ONLY,Qv=he.IL_ONLY,eS=he.LIGHT_CANDLES_TZEIS,tS=he.CHANUKAH_CANDLES,nS=he.MINOR_FAST,rS=he.SPECIAL_SHABBAT,oS=he.MODERN_HOLIDAY,aS=he.MAJOR_FAST,iS=he.ROSH_CHODESH,sS=he.PARSHA_HASHAVUA,cS=he.DAF_YOMI,uS=he.MISHNA_YOMI,hS=he.NACH_YOMI,lS=he.YERUSHALMI_YOMI,dS=he.OMER_COUNT,fS=he.SHABBAT_MEVARCHIM,gS=he.MINOR_HOLIDAY,mS=he.EREV,yS=he.CHOL_HAMOED,pS=he.YOM_KIPPUR_KATAN,wS=new Set,vS={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const SS={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},bS={281184:40,294801:30,293067:30};function MS(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(ie.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function IS(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&iS&&delete e.noRoshChodesh;t&oS&&delete e.noModern;t&nS&&delete e.noMinorFast;t&rS&&delete e.noSpecialShabbat;t&sS&&(e.sedrot=!0);t&(cS|uS|hS|lS)&&(e.dailyLearning=e.dailyLearning||{},t&cS&&(e.dailyLearning.dafYomi=!0),t&uS&&(e.dailyLearning.mishnaYomi=!0),t&hS&&(e.dailyLearning.nachYomi=!0),t&lS&&(e.dailyLearning.yerushalmi=1));t&dS&&(e.omer=!0);t&fS&&(e.shabbatMevarchim=!0);t&pS&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=iS|qv|nS|rS|oS|aS|gS|mS|yS|Wv|eS|tS),e.candlelighting&&(r|=Wv|eS|qv),e.noRoshChodesh&&(r&=~iS),e.noModern&&(r&=~oS),e.noMinorFast&&(r&=~nS),e.noSpecialShabbat&&(r&=~rS,r&=~fS),r|=n?Qv:Xv,e.sedrot&&(r|=sS),e.omer&&(r|=dS),e.shabbatMevarchim&&(r|=fS),e.yomKippurKatan&&(r|=pS),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=cS),t.mishnaYomi&&(r|=uS),t.nachYomi&&(r|=hS),t.yerushalmi&&(r|=lS)}return r}const TS=Wv|eS|tS|qv,AS=new gp(0,0,!1,"UTC");function ES(e){return e.observedInIsrael()}function DS(e){return e.observedInDiaspora()}class CS{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof gp))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=bS[e];"number"==typeof r&&(n=r);const o=SS[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||AS,r=t.il=t.il||n.il||!1;if(t.mask=IS(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!X.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else X.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[MS(t.start),MS(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new ie).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?ie.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new ie(1,o||Gv,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new ie(1,Gv,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==vS[t]||wS.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),wS.add(t))}(t);const l=h[0],d=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=d;e++){const h=new ie(e),l=h.getFullYear();l!=u&&(u=l,i=Lv(u),t.sedrot&&(a=dw(u,r)),t.omer&&(s=ie.hebrew2abs(u,Vv,16),c=ie.hebrew2abs(u,Kv,5)));const d=o.length,f=h.getDay(),g=5===f,m=6===f;let y;const p=i.get(h.toString())||[];for(const e of p)y=NS(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new fw(h,t.parsha,r,t.num))}const w=t.dailyLearning;if("object"==typeof w)for(const[e,t]of Object.entries(w))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Pv.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new Yp(h,e-s+1);if(t.candlelighting){const e=new bp(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const v=h.getMonth(),S=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&v!=Jv&&S>=23&&S<=29){const e=v==ie.monthsInYear(l)?Vv:v+1;if(t.molad&&o.push(new Lp(h,l,e,t)),t.shabbatMevarchim){const n=ie.getMonthName(e,l),r=new Hp(l,e).render(t.locale||"en",t);o.push(new wv(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=Tp(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof Ep&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&d!=o.length){const e=new fe(h);d==o.length?o.push(e):o.splice(d,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=B(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=A(r);let a=n.mm,i=n.dd;return a==F&&!o||a==_&&o?a=E(e):a!=R||30!=i||k(e)?a==P&&30==i&&H(e)?(a=Y,i=1):a==F&&30==i&&o&&!A(e)&&(a=L,i=1):(a=P,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new ie(n)}static getYahrzeit(e,t){const n=function(e,t){let n=B(t);if(!(e<=n.yy))return n.mm!=R||30!=n.dd||k(n.yy+1)?n.mm==P&&30==n.dd&&H(n.yy+1)?n=T(M(e,Y,1)-1):n.mm==_?n.mm=E(e):n.mm!=F||30!=n.dd||A(e)||(n.dd=30,n.mm=j):n=T(M(e,P,1)-1),n.mm!=R||30!=n.dd||k(e)?n.mm==P&&30==n.dd&&H(e)&&(n.mm=Y,n.dd=1):(n.mm=P,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new ie(n)}static getHolidaysForYear(e){return Lv(e)}static getHolidaysForYearArray(e,t){const n=Lv(e),r=ie.hebrew2abs(e,Gv,1),o=ie.hebrew2abs(e+1,Gv,1)-1;let a=[];const i=t?ES:DS;for(let e=r;e<=o;e++){const t=new ie(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=ie.isHDate(e)?e:new ie(e),r=n.toString(),o=Lv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?ES:DS;return o.filter(a)}static reformatTimeStr(e,t,n){return Ip(e,t,n)}static version(){return Yv}static getSedra(e,t){return dw(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===m.NISAN&&(15===o||16===o)&&e.getFlags()&he.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&he.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(CS.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return Zv(e,t)}}function NS(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&pS||r.noModern&&s&oS)return e;const c=r.location,u=Boolean(s&aS),h=Boolean(s&nS);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new bp(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=Cp(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Cp(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=Cp(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=Cp(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&TS){const t=n.getDate();if(e=Tp(n,t,r,o,a),s&tS&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new bp(r,t.greg(),n.useElevation);return Cp(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new fv(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&pS)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=yv,e.CandleLightingEvent=Dp,e.DailyLearning=Pv,e.Event=de,e.GeoLocation=sp,e.HDate=ie,e.HavdalahEvent=Ep,e.HebrewCalendar=CS,e.HebrewDateEvent=fe,e.HolidayEvent=fv,e.Locale=X,e.Location=gp,e.MevarchimChodeshEvent=wv,e.Molad=Hp,e.MoladEvent=Lp,e.NOAACalculator=up,e.OmerEvent=Yp,e.ParshaEvent=fw,e.RoshChodeshEvent=mv,e.RoshHashanaEvent=vv,e.Sedra=Kp,e.TimedEvent=Ap,e.Zmanim=bp,e.flags=he,e.gematriya=z,e.gematriyaStrToNum=V,e.months=m,e.parshiot=Jp,e.version=Yv,e}({});
|
|
1
|
+
/*! @hebcal/core v5.3.2 */
|
|
2
|
+
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!=i&&4!=u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],p=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],w=new Map,v=-1373428,S=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function M(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=D(t,e);for(let n=a;n<t;n++)r+=D(n,e)}else for(let n=u;n<t;n++)r+=D(n,e);return v+N(e)+r-1}function I(e){return v+N(e)}function T(e){if(b(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/S);for(;I(t)<=e;)++t;--t;let n=e<M(t,1,1)?7:1;for(;e>M(t,n,D(n,t));)++n;return{yy:t,mm:n,dd:1+e-M(t,n,1)}}function A(e){return(1+7*e)%19<7}function E(e){return+A(e)+12}function D(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!A(t)||e===h&&!k(t)||e===l&&H(t)?29:30}function C(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return p[+A(t)][e]}function N(e){const t=w.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!A(e)||1==i%7&&a>=16789&&A(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return w.set(e,n),n}function O(e){return N(e+1)-N(e)}function k(e){return O(e)%10==5}function H(e){return O(e)%10==3}const L=m.NISAN,R=m.CHESHVAN,P=m.KISLEV,Y=m.TEVET,j=m.SHVAT,F=m.ADAR_I,_=m.ADAR_II;function B(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const $={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},x=new Map,U=new Map;for(const[e,t]of Object.entries($))x.set(e,t),U.set(t,e);function Z(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function z(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=Z(r);for(const t of e)n+=U.get(t);n+="׳"}const o=Z(t%1e3);if(1==o.length)return n+U.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=U.get(o[e]);return n}function V(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*V(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=x.get(n);"number"==typeof e&&(t+=e)}return t}const K={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},J={h:"he",a:"ashkenazi",s:"en","":"en"},G=new Map;let W=null,q=null;class X{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&G.get(n)||W)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);G.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=G.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=G.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=G.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return q=J[t]||t,W=n,W}static getLocaleName(){return q}static getLocaleNames(){return Array.from(G.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||q;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function Q(e){throw new TypeError(e)}X.addLocale("en",K),X.addLocale("s",K),X.addLocale("",K),X.useLocale("en");const ee="day",te="week",ne="month",re="year",oe={d:ee,w:te,M:ne,y:re},ae={day:ee,week:te,month:ne,year:re};class ie{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:Q(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?T(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return A(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return D(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=ie.monthNum(e),se(this),this}setDate(e){return this.dd=e,se(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=M(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return M(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||X.getLocaleName(),n=this.getDate(),r=X.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${X.ordinal(n,t)}${ie.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=X.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=X.gettext(this.getMonthName(),n),o=this.getFullYear();return z(t)+" "+r+" "+z(o)}before(e){return ue(e,this,-1)}onOrBefore(e){return ue(e,this,0)}nearest(e){return ue(e,this,3)}onOrAfter(e){return ue(e,this,6)}after(e){return ue(e,this,7)}next(){return new ie(this.abs()+1)}prev(){return new ie(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ie(this);if(t=ie.standardizeUnits(t),t===ee)return new ie(this.abs()+e);if(t===te)return new ie(this.abs()+7*e);if(t===re)return new ie(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===ne){let t=new ie(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ie(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=oe[e]||String(e||"").toLowerCase().replace(/s$/,"");return ae[t]||Q(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!ie.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ie.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return A(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return D(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):ie.monthFromName(e)}static daysInYear(e){return O(e)}static longCheshvan(e){return k(e)}static shortKislev(e){return H(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(X.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=V(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=ie.monthFromName(a);let s=V(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new ie(o,i,s)}}function se(e){ce(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=D(e.mm,e.yy),e.mm-=1,se(e));e.dd>D(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=D(e.mm,e.yy),e.mm===E(e.yy)?e.mm=1:e.mm+=1,se(e));ce(e)}(e)}function ce(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,se(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,se(e)):(e.mm-=1,se(e)),delete e.rd}function ue(e,t,n){return new ie(ie.dayOnOrBefore(e,t.abs()+n))}const he={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304,YOM_KIPPUR_KATAN:8388608,YERUSHALMI_YOMI:16777216,NACH_YOMI:33554432,DAILY_LEARNING:67108864},le=[[he.MAJOR_FAST,"holiday","major","fast"],[he.CHANUKAH_CANDLES,"holiday","major"],[he.HEBREW_DATE,"hebdate"],[he.MINOR_FAST,"holiday","fast"],[he.MINOR_HOLIDAY,"holiday","minor"],[he.MODERN_HOLIDAY,"holiday","modern"],[he.MOLAD,"molad"],[he.OMER_COUNT,"omer"],[he.PARSHA_HASHAVUA,"parashat"],[he.ROSH_CHODESH,"roshchodesh"],[he.SHABBAT_MEVARCHIM,"mevarchim"],[he.SPECIAL_SHABBAT,"holiday","shabbat"],[he.USER_EVENT,"user"]];class fe{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return X.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&he.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&he.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor;for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of le)if(e&t[0])return t.slice(1);return["unknown"]}}class de extends fe{constructor(e){super(e,e.toString(),he.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=X.gettext(t.getMonthName(),e);return z(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},me=function(e){return e&&e.Math===Math&&e},ye=me("object"==typeof globalThis&&globalThis)||me("object"==typeof window&&window)||me("object"==typeof self&&self)||me("object"==typeof ge&&ge)||me("object"==typeof ge&&ge)||function(){return this}()||Function("return this")(),pe={},we=function(e){try{return!!e()}catch(e){return!0}},ve=!we((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Se=!we((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),be=Se,Me=Function.prototype.call,Ie=be?Me.bind(Me):function(){return Me.apply(Me,arguments)},Te={},Ae={}.propertyIsEnumerable,Ee=Object.getOwnPropertyDescriptor,De=Ee&&!Ae.call({1:2},1);Te.f=De?function(e){var t=Ee(this,e);return!!t&&t.enumerable}:Ae;var Ce,Ne,Oe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ke=Se,He=Function.prototype,Le=He.call,Re=ke&&He.bind.bind(Le,Le),Pe=ke?Re:function(e){return function(){return Le.apply(e,arguments)}},Ye=Pe,je=Ye({}.toString),Fe=Ye("".slice),_e=we,Be=function(e){return Fe(je(e),8,-1)},$e=Object,xe=Pe("".split),Ue=_e((function(){return!$e("z").propertyIsEnumerable(0)}))?function(e){return"String"===Be(e)?xe(e,""):$e(e)}:$e,Ze=function(e){return null==e},ze=Ze,Ve=TypeError,Ke=function(e){if(ze(e))throw new Ve("Can't call method on "+e);return e},Je=Ue,Ge=Ke,We=function(e){return Je(Ge(e))},qe="object"==typeof document&&document.all,Xe=void 0===qe&&void 0!==qe?function(e){return"function"==typeof e||e===qe}:function(e){return"function"==typeof e},Qe=Xe,et=function(e){return"object"==typeof e?null!==e:Qe(e)},tt=ye,nt=Xe,rt=function(e,t){return arguments.length<2?(n=tt[e],nt(n)?n:void 0):tt[e]&&tt[e][t];var n},ot=Pe({}.isPrototypeOf),at=ye,it="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=at.process,ct=at.Deno,ut=st&&st.versions||ct&&ct.version,ht=ut&&ut.v8;ht&&(Ne=(Ce=ht.split("."))[0]>0&&Ce[0]<4?1:+(Ce[0]+Ce[1])),!Ne&&it&&(!(Ce=it.match(/Edge\/(\d+)/))||Ce[1]>=74)&&(Ce=it.match(/Chrome\/(\d+)/))&&(Ne=+Ce[1]);var lt=Ne,ft=we,dt=ye.String,gt=!!Object.getOwnPropertySymbols&&!ft((function(){var e=Symbol("symbol detection");return!dt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&<&<<41})),mt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=rt,pt=Xe,wt=ot,vt=Object,St=mt?function(e){return"symbol"==typeof e}:function(e){var t=yt("Symbol");return pt(t)&&wt(t.prototype,vt(e))},bt=String,Mt=Xe,It=function(e){try{return bt(e)}catch(e){return"Object"}},Tt=TypeError,At=function(e){if(Mt(e))return e;throw new Tt(It(e)+" is not a function")},Et=Ze,Dt=Ie,Ct=Xe,Nt=et,Ot=TypeError,kt={exports:{}},Ht=ye,Lt=Object.defineProperty,Rt=function(e,t){try{Lt(Ht,e,{value:t,configurable:!0,writable:!0})}catch(n){Ht[e]=t}return t},Pt=ye,Yt=Rt,jt="__core-js_shared__",Ft=kt.exports=Pt[jt]||Yt(jt,{});(Ft.versions||(Ft.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"});var _t=kt.exports,Bt=_t,$t=function(e,t){return Bt[e]||(Bt[e]=t||{})},xt=Ke,Ut=Object,Zt=function(e){return Ut(xt(e))},zt=Pe({}.hasOwnProperty),Vt=Object.hasOwn||function(e,t){return zt(Zt(e),t)},Kt=Pe,Jt=0,Gt=Math.random(),Wt=Kt(1..toString),qt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Wt(++Jt+Gt,36)},Xt=$t,Qt=Vt,en=qt,tn=gt,nn=mt,rn=ye.Symbol,on=Xt("wks"),an=nn?rn.for||rn:rn&&rn.withoutSetter||en,sn=function(e){return Qt(on,e)||(on[e]=tn&&Qt(rn,e)?rn[e]:an("Symbol."+e)),on[e]},cn=Ie,un=et,hn=St,ln=function(e,t){var n=e[t];return Et(n)?void 0:At(n)},fn=function(e,t){var n,r;if("string"===t&&Ct(n=e.toString)&&!Nt(r=Dt(n,e)))return r;if(Ct(n=e.valueOf)&&!Nt(r=Dt(n,e)))return r;if("string"!==t&&Ct(n=e.toString)&&!Nt(r=Dt(n,e)))return r;throw new Ot("Can't convert object to primitive value")},dn=TypeError,gn=sn("toPrimitive"),mn=function(e,t){if(!un(e)||hn(e))return e;var n,r=ln(e,gn);if(r){if(void 0===t&&(t="default"),n=cn(r,e,t),!un(n)||hn(n))return n;throw new dn("Can't convert object to primitive value")}return void 0===t&&(t="number"),fn(e,t)},yn=St,pn=function(e){var t=mn(e,"string");return yn(t)?t:t+""},wn=et,vn=ye.document,Sn=wn(vn)&&wn(vn.createElement),bn=function(e){return Sn?vn.createElement(e):{}},Mn=bn,In=!ve&&!we((function(){return 7!==Object.defineProperty(Mn("div"),"a",{get:function(){return 7}}).a})),Tn=ve,An=Ie,En=Te,Dn=Oe,Cn=We,Nn=pn,On=Vt,kn=In,Hn=Object.getOwnPropertyDescriptor;pe.f=Tn?Hn:function(e,t){if(e=Cn(e),t=Nn(t),kn)try{return Hn(e,t)}catch(e){}if(On(e,t))return Dn(!An(En.f,e,t),e[t])};var Ln={},Rn=ve&&we((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pn=et,Yn=String,jn=TypeError,Fn=function(e){if(Pn(e))return e;throw new jn(Yn(e)+" is not an object")},_n=ve,Bn=In,$n=Rn,xn=Fn,Un=pn,Zn=TypeError,zn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Kn="enumerable",Jn="configurable",Gn="writable";Ln.f=_n?$n?function(e,t,n){if(xn(e),t=Un(t),xn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Gn in n&&!n[Gn]){var r=Vn(e,t);r&&r[Gn]&&(e[t]=n.value,n={configurable:Jn in n?n[Jn]:r[Jn],enumerable:Kn in n?n[Kn]:r[Kn],writable:!1})}return zn(e,t,n)}:zn:function(e,t,n){if(xn(e),t=Un(t),xn(n),Bn)try{return zn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Zn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wn=Ln,qn=Oe,Xn=ve?function(e,t,n){return Wn.f(e,t,qn(1,n))}:function(e,t,n){return e[t]=n,e},Qn={exports:{}},er=ve,tr=Vt,nr=Function.prototype,rr=er&&Object.getOwnPropertyDescriptor,or=tr(nr,"name"),ar={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!er||er&&rr(nr,"name").configurable)},ir=Xe,sr=_t,cr=Pe(Function.toString);ir(sr.inspectSource)||(sr.inspectSource=function(e){return cr(e)});var ur,hr,lr,fr=sr.inspectSource,dr=Xe,gr=ye.WeakMap,mr=dr(gr)&&/native code/.test(String(gr)),yr=qt,pr=$t("keys"),wr=function(e){return pr[e]||(pr[e]=yr(e))},vr={},Sr=mr,br=ye,Mr=et,Ir=Xn,Tr=Vt,Ar=_t,Er=wr,Dr=vr,Cr="Object already initialized",Nr=br.TypeError,Or=br.WeakMap;if(Sr||Ar.state){var kr=Ar.state||(Ar.state=new Or);kr.get=kr.get,kr.has=kr.has,kr.set=kr.set,ur=function(e,t){if(kr.has(e))throw new Nr(Cr);return t.facade=e,kr.set(e,t),t},hr=function(e){return kr.get(e)||{}},lr=function(e){return kr.has(e)}}else{var Hr=Er("state");Dr[Hr]=!0,ur=function(e,t){if(Tr(e,Hr))throw new Nr(Cr);return t.facade=e,Ir(e,Hr,t),t},hr=function(e){return Tr(e,Hr)?e[Hr]:{}},lr=function(e){return Tr(e,Hr)}}var Lr={set:ur,get:hr,has:lr,enforce:function(e){return lr(e)?hr(e):ur(e,{})},getterFor:function(e){return function(t){var n;if(!Mr(t)||(n=hr(t)).type!==e)throw new Nr("Incompatible receiver, "+e+" required");return n}}},Rr=Pe,Pr=we,Yr=Xe,jr=Vt,Fr=ve,_r=ar.CONFIGURABLE,Br=fr,$r=Lr.enforce,xr=Lr.get,Ur=String,Zr=Object.defineProperty,zr=Rr("".slice),Vr=Rr("".replace),Kr=Rr([].join),Jr=Fr&&!Pr((function(){return 8!==Zr((function(){}),"length",{value:8}).length})),Gr=String(String).split("String"),Wr=Qn.exports=function(e,t,n){"Symbol("===zr(Ur(t),0,7)&&(t="["+Vr(Ur(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!jr(e,"name")||_r&&e.name!==t)&&(Fr?Zr(e,"name",{value:t,configurable:!0}):e.name=t),Jr&&n&&jr(n,"arity")&&e.length!==n.arity&&Zr(e,"length",{value:n.arity});try{n&&jr(n,"constructor")&&n.constructor?Fr&&Zr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=$r(e);return jr(r,"source")||(r.source=Kr(Gr,"string"==typeof t?t:"")),e};Function.prototype.toString=Wr((function(){return Yr(this)&&xr(this).source||Br(this)}),"toString");var qr=Qn.exports,Xr=Xe,Qr=Ln,eo=qr,to=Rt,no={},ro=Math.ceil,oo=Math.floor,ao=Math.trunc||function(e){var t=+e;return(t>0?oo:ro)(t)},io=ao,so=function(e){var t=+e;return t!=t||0===t?0:io(t)},co=so,uo=Math.max,ho=Math.min,lo=so,fo=Math.min,go=function(e){var t=lo(e);return t>0?fo(t,9007199254740991):0},mo=We,yo=function(e,t){var n=co(e);return n<0?uo(n+t,0):ho(n,t)},po=function(e){return go(e.length)},wo=function(e){return function(t,n,r){var o=mo(t),a=po(o);if(0===a)return!e&&-1;var i,s=yo(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},vo={includes:wo(!0),indexOf:wo(!1)},So=Vt,bo=We,Mo=vo.indexOf,Io=vr,To=Pe([].push),Ao=function(e,t){var n,r=bo(e),o=0,a=[];for(n in r)!So(Io,n)&&So(r,n)&&To(a,n);for(;t.length>o;)So(r,n=t[o++])&&(~Mo(a,n)||To(a,n));return a},Eo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Do=Ao,Co=Eo.concat("length","prototype");no.f=Object.getOwnPropertyNames||function(e){return Do(e,Co)};var No={};No.f=Object.getOwnPropertySymbols;var Oo=rt,ko=no,Ho=No,Lo=Fn,Ro=Pe([].concat),Po=Oo("Reflect","ownKeys")||function(e){var t=ko.f(Lo(e)),n=Ho.f;return n?Ro(t,n(e)):t},Yo=Vt,jo=Po,Fo=pe,_o=Ln,Bo=we,$o=Xe,xo=/#|\.prototype\./,Uo=function(e,t){var n=zo[Zo(e)];return n===Ko||n!==Vo&&($o(t)?Bo(t):!!t)},Zo=Uo.normalize=function(e){return String(e).replace(xo,".").toLowerCase()},zo=Uo.data={},Vo=Uo.NATIVE="N",Ko=Uo.POLYFILL="P",Jo=Uo,Go=ye,Wo=pe.f,qo=Xn,Xo=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(Xr(n)&&eo(n,a,r),r.global)o?e[t]=n:to(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Qr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Qo=Rt,ea=function(e,t,n){for(var r=jo(t),o=_o.f,a=Fo.f,i=0;i<r.length;i++){var s=r[i];Yo(e,s)||n&&Yo(n,s)||o(e,s,a(t,s))}},ta=Jo,na={},ra=Ao,oa=Eo,aa=Object.keys||function(e){return ra(e,oa)},ia=ve,sa=Rn,ca=Ln,ua=Fn,ha=We,la=aa;na.f=ia&&!sa?Object.defineProperties:function(e,t){ua(e);for(var n,r=ha(t),o=la(t),a=o.length,i=0;a>i;)ca.f(e,n=o[i++],r[n]);return e};var fa,da=rt("document","documentElement"),ga=Fn,ma=na,ya=Eo,pa=vr,wa=da,va=bn,Sa="prototype",ba="script",Ma=wr("IE_PROTO"),Ia=function(){},Ta=function(e){return"<"+ba+">"+e+"</"+ba+">"},Aa=function(e){e.write(Ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{fa=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ea="undefined"!=typeof document?document.domain&&fa?Aa(fa):(t=va("iframe"),n="java"+ba+":",t.style.display="none",wa.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Ta("document.F=Object")),e.close(),e.F):Aa(fa);for(var r=ya.length;r--;)delete Ea[Sa][ya[r]];return Ea()};pa[Ma]=!0;var Da=Object.create||function(e,t){var n;return null!==e?(Ia[Sa]=ga(e),n=new Ia,Ia[Sa]=null,n[Ma]=e):n=Ea(),void 0===t?n:ma.f(n,t)},Ca=sn,Na=Da,Oa=Ln.f,ka=Ca("unscopables"),Ha=Array.prototype;void 0===Ha[ka]&&Oa(Ha,ka,{configurable:!0,value:Na(null)});var La=vo.includes,Ra=function(e){Ha[ka][e]=!0};function Pa(e,t,n,r,o){return Ya(t,ja(e,t),n,r,o)}function Ya(e,t,n,r,o,a){const i=oi(t,n,r);if(o&&t!==i)throw new RangeError(ll(e,t,n,r,a));return i}function ja(e,t){const n=e[t];if(void 0===n)throw new TypeError(dl(t));return n}function Fa(e){return null!==e&&/object|function/.test(typeof e)}function _a(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Ba(e){return $a({name:e},1)}function $a(e,t){return za((e=>({value:e,configurable:1,writable:!t})),e)}function xa(e){return za((e=>({get:e,configurable:1})),e)}function Ua(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Za(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function za(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Va(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function Ka(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Ja(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Ga(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Wa(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function qa(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Xa(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Qa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function ei(e){return e[0].toUpperCase()+e.substring(1)}function ti(e){return e.slice().sort()}function ni(e,t){return String(t).padStart(e,"0")}function ri(e,t){return Math.sign(e-t)}function oi(e,t,n){return Math.min(Math.max(e,t),n)}function ai(e,t){return[Math.floor(e/t),ii(e,t)]}function ii(e,t){return(e%t+t)%t}function si(e,t){return[ci(e,t),ui(e,t)]}function ci(e,t){return Math.trunc(e/t)||0}function ui(e,t){return e%t||0}function hi(e){return.5===Math.abs(e%1)}function li(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=uf[a],s=cf/i,[c,u]=si(t,s);r+=u*i,o+=c}const[a,i]=si(r,cf);return[o+a,i]}function fi(e,t,n){const r={};for(let o=t;o>=0;o--){const t=uf[o];r[n[o]]=ci(e,t),e=ui(e,t)}return r}function di(e){if(void 0!==e)return mi(e)}function gi(e){return bi(mi(e))}function mi(e){return Si(Yf(e))}function yi(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function pi(e,t){if(null==t)throw new RangeError(dl(e));return t}function wi(e){if(!Fa(e))throw new TypeError(hl);return e}function vi(e,t){if(typeof t!==e)throw new TypeError(fl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function Si(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(ol(t,e));return e||0}function bi(e){if(e<=0)throw new RangeError(al(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function Mi(e){if("symbol"==typeof e)throw new TypeError(ul);return String(e)}function Ii(e,t){return Fa(e)?String(e):Rf(e,t)}function Ti(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(cl(e));return e}function Ai(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(sl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(il(t,e));return e}function Ei(e,t){return Math.trunc(Ai(e,t))||0}function Di(e,t){return Si(Ai(e,t),t)}function Ci(e,t){return bi(Ei(e,t),t)}function Ni(e,t){let[n,r]=si(t,cf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*cf),[o,r]}function Oi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ni(e[0]+t[0]*n,e[1]+t[1]*n)}function ki(e,t){return Ni(e[0],e[1]+t)}function Hi(e,t){return Oi(t,e,-1)}function Li(e,t){return ri(e[0],t[0])||ri(e[1],t[1])}function Ri(e,t,n){return-1===Li(e,t)||1===Li(e,n)}function Pi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(cf/t);return[Number(e/n),Number(e%n)*t]}function Yi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=cf/t,[r,o]=si(e,n);return[r,o*t]}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=cf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=si(o,t);return r*(cf/t)+(a+(n?i/t:0))}function _i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ai;const[r,o]=e,[a,i]=n(o,t);return[r*(cf/t)+a,i]}function Bi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function $i(e){return Pa(e,"isoYear",cd,sd,1),e.isoYear===cd?Pa(e,"isoMonth",4,12,1):e.isoYear===sd&&Pa(e,"isoMonth",1,9,1),e}function xi(e){return Ui({...e,...Qf,isoHour:12}),e}function Ui(e){const t=Pa(e,"isoYear",cd,sd,1),n=t===cd?1:t===sd?-1:0;return n&&Zi(Wi({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Zi(e){if(!e||Ri(e,id,ad))throw new RangeError(Fl);return e}function zi(e){return li(e,5,Kf)[1]}function Vi(e){const[t,n]=ai(e,cf);return[fi(n,5,Kf),t]}function Ki(e){return Ji(e)[0]}function Ji(e){return _i(e,of)}function Gi(e){return Qi(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Wi(e){const t=Gi(e);if(void 0!==t){const[n,r]=si(t,ef);return[n,r*rf+(e.isoMicrosecond||0)*nf+(e.isoNanosecond||0)]}}function qi(e,t){const[n,r]=Vi(zi(e)-t);return Zi(Wi({...e,isoDay:e.isoDay+r,...n}))}function Xi(){return Qi(...arguments)/tf}function Qi(){const[e,t]=es(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*ef}function es(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===cd?1:e===sd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function ts(e,t){let[n,r]=ki(e,t);r<0&&(r+=cf,n-=1);const[o,a]=ai(r,rf),[i,s]=ai(a,nf);return ns(n*ef+o,i,s)}function ns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-od)/ef)*Math.sign(e),o=new Date(e-r*ef);return Za(Gf,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function rs(e){return[e.isoYear,e.isoMonth,e.isoDay]}function os(){return ld}function as(e,t){switch(t){case 2:return ss(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function is(e){return ss(e)?366:365}function ss(e){return e%4==0&&(e%100!=0||e%400==0)}function cs(e){const[t,n]=es(e.isoYear,e.isoMonth,e.isoDay);return ii(t.getUTCDay()-n,7)||7}function us(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function hs(e){const t=Gi(e);if(t<fd)return us(e);const n=Bi(Sg(Of),t),{era:r,eraYear:o}=ch(n,Of);return[r,o]}function ls(e){return fs(e),ms(e,1),e}function fs(e){return gs(e,1),e}function ds(e){return qa(Jf,e,gs(e))}function gs(e,t){const{isoYear:n}=e,r=Pa(e,"isoMonth",1,os(),t);return{isoYear:n,isoMonth:r,isoDay:Pa(e,"isoDay",1,as(n,r),t)}}function ms(e,t){return Za(Kf,[Pa(e,"isoHour",0,23,t),Pa(e,"isoMinute",0,59,t),Pa(e,"isoSecond",0,59,t),Pa(e,"isoMillisecond",0,999,t),Pa(e,"isoMicrosecond",0,999,t),Pa(e,"isoNanosecond",0,999,t)])}function ys(e){return void 0===e?0:Od(wi(e))}function ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Cs(e);const n=kd(e),r=Hd(e,t);return[Od(e),r,n]}function ws(e){return kd(Cs(e))}function vs(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Cs(t);let i=Cd(t,r,o),s=As(t),c=Yd(t,a);const u=Dd(t,r,o,1);return null==i?i=Math.max(n,u):Rs(i,u),s=Es(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function Ss(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=As(e=Ns(e,gd));const o=Yd(e,7);let a=Dd(e,t);return a=pi(gd,a),r=Es(r,a,void 0,n),[a,r,o]}function bs(e){return Ld(Cs(e))}function Ms(e,t){return Is(Cs(e),t)}function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Ds(e);return[Yd(e,4),...Ts(Dd(e,t),n)]}function Ts(e,t){return null!=e?[uf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function As(e){const t=e[yd];return void 0===t?1:Ei(t,yd)}function Es(e,t,n,r){const o=r?cf:uf[t+1];if(o){const n=uf[t];if(o%((e=Ya(yd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(fl(yd,e))}else e=Ya(yd,e,1,n?10**9:1,1);return e}function Ds(e){let t=e[pd];if(void 0!==t){if("number"!=typeof t){if("auto"===Mi(t))return;throw new RangeError(fl(pd,t))}t=Ya(pd,Math.floor(t),0,9,1)}return t}function Cs(e){return void 0===e?{}:wi(e)}function Ns(e,t){return"string"==typeof e?{[t]:e}:wi(e)}function Os(e){if(void 0!==e){if(Fa(e))return Object.assign(Object.create(null),e);throw new TypeError(hl)}}function ks(e,t){return e&&Object.assign(Object.create(null),e,{overflow:Sd[t]})}function Hs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=Mi(a),"auto"===a)return o?r:null;let i=Xl[a];if(void 0===i&&(i=Uf[a]),void 0===i)throw new RangeError(pl(e,a,Xl));return Ya(e,i,r,n,1,Ql),i}function Ls(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=Mi(o),i=t[a];if(void 0===i)throw new RangeError(pl(e,a,t));return i}function Rs(e,t){if(t>e)throw new RangeError(Zl)}function Ps(e){return{branding:Ud,epochNanoseconds:e}}function Ys(e,t,n){return{branding:xd,calendar:n,timeZone:t,epochNanoseconds:e}}function js(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Bd,calendar:t,...Ja(Xf,e)}}function Fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:_d,calendar:t,...Ja(Wf,e)}}function _s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:jd,calendar:t,...Ja(Wf,e)}}function Bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Fd,calendar:t,...Ja(Wf,e)}}function $s(e){return{branding:$d,...Ja(qf,e)}}function xs(e){return{branding:Zd,sign:au(e),...Ja(_f,e)}}function Us(e){return _i(e.epochNanoseconds,rf)[0]}function Zs(e){return e.epochNanoseconds}function zs(e){return"string"==typeof e?e:Rf(e.id)}function Vs(e,t){return e===t||zs(e)===zs(t)}function Ks(e,t,n,r,o,a){const i={...Zf,[Ff[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function Js(e,t,n){const r=Fi(Hi(t,n));if(!r)throw new RangeError(Nl);return Fi(Hi(t,e))/r}function Gs(e,t,n,r){return Ws(e,Qs(t,n),r)}function Ws(e,t,n){const[r,o]=qs(e,t,n);return Ui({...Jc(e,o),...r})}function qs(e,t,n){return Vi(ic(zi(e),t,n))}function Xs(e){return ic(e,af,7)}function Qs(e,t){return uf[e]*t}function ec(e){const t=tc(e);return[t,Jc(t,1)]}function tc(e){return ed(6,e)}function nc(e,t,n){const r=Math.min(fu(e),6);return uu(ac(cu(e,r),t,n),r)}function rc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?hc:Qc(i)&&r<6?uc:cc;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=au(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=Vf(c,e);r[Ff[c]]+=s;const u=Fi(Hi(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function oc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/cf)(e);return[ic(t,n,r),0]}return ac(e,Qs(t,n),r,o)}function ac(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=cf,o-=1);const[i,s]=ai(ic(a,t,n),cf);return Ni(o+i,s)}function ic(e,t,n){return sc(e/t,n)*t}function sc(e,t){return zd[t](e)}function cc(e,t,n,r,o,a){const i=au(e),s=cu(e),c=oc(s,r,o,a),u=Hi(s,c),h=Math.sign(c[0]-s[0])===i,l=uu(c,Math.min(n,6));return[{...e,...l},Oi(t,u),h]}function uc(e,t,n,r,o,a,i,s,c){const u=au(e);let[h,l]=cu(e,5);const f=Qs(r,o);let d=ic(l,f,a);const[g,m]=Ks({...e,...zf},6,u,i,s,c),y=d-Fi(Hi(g,m));y&&Math.sign(y)!==u?t=ki(g,d):(h+=u,d=ic(y,f,a),t=ki(m,d));const p=hu(d);return[{...e,...p,days:e.days+h},t,Boolean(h)]}function hc(e,t,n,r,o,a,i,s,c){const u=au(e),h=Ff[r],l=Vf(r,e),f=ci(e[h],o)*o;l[h]=f;const[d,g]=Ks(l,r,o*u,i,s,c),m=f+Js(t,d,g)*u*o,y=ic(m,o,a),p=Math.sign(y-m)===u;return l[h]=y,[l,p?g:d,p]}function lc(e,t,n,r){const[o,a,i,s]=(e=>{const t=Is(e=Cs(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=ac(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return bc(ts(n,i),a)+(e?Ec(Xs(i)):"Z")})(c,t(c?e(o):Vd),n.epochNanoseconds,a,i,s)}function fc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=Cs(e);const t=Ld(e),n=Ds(e),r=Pd(e),o=Yd(e,4),a=Dd(e,4);return[t,Rd(e),r,o,...Ts(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=ac(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return bc(ts(r,h),u)+Ec(Xs(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+zs(e)+"]":"")(n,a)+Dc(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function dc(e,t){const[n,r,o,a]=(e=>(e=Cs(e),[Ld(e),...Is(e)]))(t);return i=e.calendar,s=n,c=a,bc(Ws(e,o,r),c)+Dc(i,s);var i,s,c}function gc(e,t){return n=e.calendar,r=e,o=bs(t),Mc(r)+Dc(n,o);var n,r,o}function mc(e,t){return vc(e.calendar,Ic,e,bs(t))}function yc(e,t){return vc(e.calendar,Tc,e,bs(t))}function pc(e,t){const[n,r,o]=Ms(t);return a=o,Ac(qs(e,r,n)[0],a);var a}function wc(e,t){const[n,r,o]=Ms(t,3);return r>1&&(e={...e,...nc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?ou(e):e,{hours:o,minutes:a}=r,[i,s]=_i(cu(r,3),of,si);su(i);const c=Nc(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+Sc({Y:kc(r.years),M:kc(r.months),W:kc(r.weeks),D:kc(r.days)})+(o||a||i||u?"T"+Sc({H:kc(o),M:kc(a),S:kc(i,u)+c}):"")})(e,o)}function vc(e,t,n,r){const o=zs(e),a=r>1||0===r&&o!==Cf;return 1===r?o===Cf?t(n):Mc(n):a?Mc(n)+Cc(o,2===r):t(n)}function Sc(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function bc(e,t){return Mc(e)+"T"+Ac(e,t)}function Mc(e){return Ic(e)+"-"+ql(e.isoDay)}function Ic(e){const{isoYear:t}=e;return(t<0||t>9999?Oc(t)+ni(6,Math.abs(t)):ni(4,t))+"-"+ql(e.isoMonth)}function Tc(e){return ql(e.isoMonth)+"-"+ql(e.isoDay)}function Ac(e,t){const n=[ql(e.isoHour),ql(e.isoMinute)];return-1!==t&&n.push(ql(e.isoSecond)+((e,t,n,r)=>Nc(e*rf+t*nf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Ec(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=ai(Math.abs(e),sf),[r,o]=ai(n,af),[a,i]=ai(o,of);return Oc(e)+ql(t)+":"+ql(r)+(a||i?":"+ql(a)+Nc(i):"")}function Dc(e,t){if(1!==t){const n=zs(e);if(t>1||0===t&&n!==Cf)return Cc(n,2===t)}return""}function Cc(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function Nc(e,t){let n=ni(9,e);return n=void 0===t?n.replace(Wd,""):n.slice(0,t),n?"."+n:""}function Oc(e){return e<0?"-":"+"}function kc(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Hc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=ts(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Lc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return qi(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Wi(t);r&&(n=Xs(n));for(const t of e){let e=Fi(Hi(t,o));if(r&&(e=Xs(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Yl)}return i?Wi(t):Rc(e,t,o,s)}function Rc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(jl);if(r.length)return r[3===n?1:0];const o=Wi(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(ki(t,-cf));return Yc(e.getOffsetNanosecondsFor(ki(t,cf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(ts(o,i)))[2===n?0:r.length-1]}function Pc(e){if(Math.abs(e)>=cf)throw new RangeError(Rl);return e}function Yc(e){if(e>cf)throw new RangeError(Pl);return e}function jc(e,t,n){return Ps(Zi(Oi(t.epochNanoseconds,(e=>{if(lu(e))throw new RangeError(xl);return cu(e,5)})(e?ou(n):n))))}function Fc(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...Uc(s,i,r,n?ou(o):o,a)}}function _c(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return js(Zc(e(a),n,t?ou(r):r,o),a)}function Bc(e,t,n,r,o){const{calendar:a}=n;return Fs(zc(e(a),n,t?ou(r):r,o),a)}function $c(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=Vc(i,n);t&&(r=ru(r)),r.sign<0&&(s=i.dateAdd(s,{...Zf,months:1}),s=Jc(s,-1));const c=i.dateAdd(s,r,o);return _s(Vc(i,c),a)}function xc(e,t,n){return $s(Kc(t,e?ou(n):n)[0])}function Uc(e,t,n,r,o){const a=cu(r,5);let i=n.epochNanoseconds;if(lu(r)){const s=qd(n,t);i=Oi(Rc(t,{...zc(e,s,{...r,...zf},o),...Ja(Kf,s)}),a)}else i=Oi(i,a),ys(o);return{epochNanoseconds:Zi(i)}}function Zc(e,t,n,r){const[o,a]=Kc(t,n);return Ui({...zc(e,t,{...n,...zf,days:n.days+a},r),...o})}function zc(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);ys(r);const o=n.days+cu(n,5)[0];return o?xi(Jc(t,o)):t}function Vc(e,t){return Jc(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function Kc(e,t){const[n,r]=cu(t,5),[o,a]=Vi(zi(e)+r);return[o,n+a]}function Jc(e,t){return t?{...e,...ns(Gi(e)+t*ef)}:e}function Gc(e,t,n){const r=e(n.calendar);return Qc(n)?[n,r,t(n.timeZone)]:[{...n,...Qf},r]}function Wc(e){return e?Zs:Wi}function qc(e,t){return t?Qa(Uc,e,t):Qa(Zc,e)}function Xc(e,t){return t?Qa(Gu,e,t):Qa(Wu,e)}function Qc(e){return e&&e.epochNanoseconds}function eu(e,t){return e<=6-(Qc(t)?1:0)}function tu(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function nu(e,t,n,r,o,a,i){const s=e(Cs(i).relativeTo),c=Math.max(fu(o),fu(a));if(eu(c,s))return xs(iu(((e,t,n,r)=>{const o=Oi(cu(e),cu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Fl);return{...Zf,...uu(o,n)}})(o,a,c,r)));if(!s)throw new RangeError($l);r&&(a=ou(a));const[u,h,l]=Gc(t,n,s),f=qc(h,l),d=Xc(h,l),g=f(u,o);return xs(d(u,f(g,a),c))}function ru(e){return xs(ou(e))}function ou(e){const t={};for(const n of Ff)t[n]=-1*e[n]||0;return t}function au(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ff,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Bl);n=t}}return n}function iu(e){for(const t of xf)Ya(t,e[t],-Xd,Xd,1);return su(Fi(cu(e),of)),e}function su(e){if(!Number.isSafeInteger(e))throw new RangeError(_l)}function cu(e){return li(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Ff)}function uu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=fi(r,t,Ff);if(o[Ff[t]]+=n*(cf/uf[t]),!Number.isFinite(o[Ff[t]]))throw new RangeError(Fl);return o}function hu(e){return fi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Ff)}function lu(e){return Boolean(au(e,$f))}function fu(e){let t=9;for(;t>0&&!e[Ff[t]];t--);return t}function du(e,t){return[e,t]}function gu(e){const t=Math.floor(e/Kd)*Kd;return[t,t+Kd]}function mu(e){const t=Au(e);if(void 0===t)throw new RangeError(zl(e));return t}function yu(e){const t=Mu(Rf(e));if(!t||t.O)throw new RangeError(zl(e));return Fs(t.I?vu(t):Su(t))}function pu(e){if(e.calendar!==Cf)throw new RangeError(Vl(e.calendar))}function wu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=Lu(e.timeZone),a=Qd(o);return Ys(Lc(a,ls(e),t,n,r,!a.R,e.O),o,ph(e.calendar))}function vu(e){return bu(Ui(ls(e)))}function Su(e){return bu(xi(fs(e)))}function bu(e){return{...e,calendar:ph(e.calendar)}}function Mu(e){const t=fg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Eu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Du(e.slice(5)),...Cu(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function Iu(e){const t=hg.exec(e);return t?(e=>({isoYear:Eu(e),isoMonth:parseInt(e[4]),isoDay:1,...Cu(e[5])}))(t):void 0}function Tu(e){const t=lg.exec(e);return t?(e=>({isoYear:hd,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Cu(e[3])}))(t):void 0}function Au(e,t){const n=gg.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Vl(n));return Pc((Hu(e[2])*sf+Hu(e[3])*af+Hu(e[4])*of+Nu(e[5]||""))*ku(e[1]))})(n,t):void 0}function Eu(e){const t=ku(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Vl(-0));return t*n}function Du(e){const t=Hu(e[3]);return{...Vi(Nu(e[4]||""))[0],isoHour:Hu(e[1]),isoMinute:Hu(e[2]),isoSecond:60===t?59:t}}function Cu(e){let t,n;const r=[];if(e.replace(mg,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(Vl(e))}else{if(n)throw new RangeError(Vl(e));n=s}return""})),r.length>1&&t)throw new RangeError(Vl(e));return{timeZone:n,calendar:r[0]||Cf}}function Nu(e){return parseInt(e.padEnd(9,"0"))}function Ou(e){return new RegExp(`^${e}$`,"i")}function ku(e){return e&&"+"!==e?-1:1}function Hu(e){return void 0===e?0:parseInt(e)}function Lu(e){const t=Pu(e);return"number"==typeof t?Ec(t):t?(e=>{if(wg.test(e))throw new RangeError(Ll);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?ei(e).replace(/island|noronha|murdo|rivadavia|urville/,ei):e)))).join("/")})(e):Vd}function Ru(e){const t=Pu(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Vd}function Pu(e){const t=Au(e=e.toUpperCase(),1);return void 0!==t?t:e!==Vd?pg(e):void 0}function Yu(e,t){return Li(e.epochNanoseconds,t.epochNanoseconds)}function ju(e,t){return Li(e.epochNanoseconds,t.epochNanoseconds)}function Fu(e,t){return _u(e,t)||Bu(e,t)}function _u(e,t){return ri(Gi(e),Gi(t))}function Bu(e,t){return ri(zi(e),zi(t))}function $u(e,t){if(e===t)return 1;const n=zs(e),r=zs(t);if(n===r)return 1;try{return Ru(n)===Ru(r)}catch(e){}}function xu(e,t,n,r){const o=vs(e,Os(r),3,5),a=Qu(t.epochNanoseconds,n.epochNanoseconds,...o);return xs(e?ou(a):a)}function Uu(e,t,n,r,o,a){const i=oh(r.calendar,o.calendar),s=Os(a),[c,u,h,l]=vs(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Li(d,f);let m;if(g)if(c<6)m=Qu(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!$u(e,t))throw new RangeError(Hl);return e})(r.timeZone,o.timeZone)),a=e(i);m=qu(a,n,r,o,g,c,s),m=rc(m,d,c,u,h,l,r,Zs,Qa(Uc,a,n))}else m=Zf;return xs(n?ou(m):m)}function Zu(e,t,n,r,o){const a=oh(n.calendar,r.calendar),i=Os(o),[s,c,u,h]=vs(t,i,6),l=Wi(n),f=Wi(r),d=Li(f,l);let g;if(d)if(s<=6)g=Qu(l,f,s,c,u,h);else{const t=e(a);g=Xu(t,n,r,d,s,i),g=rc(g,f,s,c,u,h,n,Wi,Qa(Zc,t))}else g=Zf;return xs(t?ou(g):g)}function zu(e,t,n,r,o){const a=oh(n.calendar,r.calendar),i=Os(o);return Ku(t,(()=>e(a)),n,r,...vs(t,i,6,9,6),i)}function Vu(e,t,n,r,o){const a=oh(n.calendar,r.calendar),i=Os(o),s=vs(t,i,9,9,8),c=e(a);return Ku(t,(()=>c),Vc(c,n),Vc(c,r),...s,i)}function Ku(e,t,n,r,o,a,i,s,c){const u=Wi(n),h=Wi(r);let l;if(Li(h,u))if(6===o)l=Qu(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=rc(l,h,o,a,i,s,n,Wi,Qa(zc,e)))}else l=Zf;return xs(e?ou(l):l)}function Ju(e,t,n,r){const o=Os(r),[a,i,s,c]=vs(e,o,5,5),u=ic(rh(t,n),Qs(i,s),c),h={...Zf,...hu(u,a)};return xs(e?ou(h):h)}function Gu(e,t,n,r,o,a){const i=Li(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?eh(n.epochNanoseconds,r.epochNanoseconds,o):qu(e,t,n,r,i,o,a):Zf}function Wu(e,t,n,r,o){const a=Wi(t),i=Wi(n),s=Li(i,a);return s?r<=6?eh(a,i,r):Xu(e,t,n,s,r,o):Zf}function qu(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...Jc(s,u++*-r),...i},f=Rc(e,l),Li(c,f)===-r}const a=qd(t,e),i=Ja(Kf,a),s=qd(n,e),c=n.epochNanoseconds;let u=0;const h=rh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(Nl);const d=Fi(Hi(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...Zf,days:th(h,l)}):e.dateUntil(s,c,a,i),...hu(u)}}function Xu(e,t,n,r,o,a){let i=t,s=rh(t,n);return Math.sign(s)===-r&&(i=Jc(t,r),s+=cf*r),{...e.dateUntil(i,n,o,a),...hu(s)}}function Qu(e,t,n,r,o,a){return{...Zf,...uu(oc(Hi(e,t),r,o,a),n)}}function eh(e,t,n){return{...Zf,...uu(Hi(e,t),n)}}function th(e,t){return nh(Gi(e),Gi(t))}function nh(e,t){return Math.trunc((t-e)/ef)}function rh(e,t){return zi(t)-zi(e)}function oh(e,t){if(!Vs(e,t))throw new RangeError(Ol);return e}function ah(e){function t(e){return((e,t)=>({...ch(e,t),o:e.month,day:parseInt(e.day)}))(Bi(n,e),r)}const n=Sg(e),r=wh(e);return{id:e,h:ih(t),l:sh(t)}}function ih(e){return _a((t=>{const n=Gi(t);return e(n)}),WeakMap)}function sh(e){const t=e(0).year-ud;return _a((n=>{let r,o=Qi(n-t);const a=[],i=[];do{o+=400*ef}while((r=e(o)).year<=n);do{o+=(1-r.day)*ef,r.year===n&&(a.push(o),i.push(r.o)),o-=ef}while((r=e(o)).year>=n);return{i:a.reverse(),u:Gl(i.reverse())}}))}function ch(e,t){let n,r,o=uh(e);if(e.era){const i=kf[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Hf[a]||a,r=o,o=Ah(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function uh(e){return parseInt(e.relatedYear||e.year)}function hh(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function lh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*ef}function fh(e){const t=yh(this,e),n=yh(this,e-1),r=t.length;if(r>n.length){const e=Dh(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function dh(e){return nh(lh.call(this,e),lh.call(this,e+1))}function gh(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),nh(n[t-1],o[r-1])}function mh(e){return this.l(e).i.length}function yh(e,t){return Object.keys(e.l(t).u)}function ph(e){if((e=e.toLowerCase())!==Cf&&e!==Nf&&wh(e)!==wh(Sg(e).resolvedOptions().calendar))throw new RangeError(kl(e));return e}function wh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function vh(e){return this.m(e)[0]}function Sh(e){return this.m(e)[1]}function bh(e){const[t]=this.v(e);return nh(this.p(t),Gi(e))+1}function Mh(e){const t=bg.exec(e);if(!t)throw new RangeError(Tl(e));return[parseInt(t[1]),Boolean(t[2])]}function Ih(e,t,n){return e+(t||n&&e>=n?1:0)}function Th(e,t){return e-(t&&e>=t?1:0)}function Ah(e,t){return(t+e)*(Math.sign(t)||1)||0}function Eh(e){return kf[Ch(e)]}function Dh(e){return Lf[Ch(e)]}function Ch(e){return wh(e.id||Cf)}function Nh(e,t,n,r){const o=Lh(n,r,Tf,[],mf);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Ph(o),i=e(o.timeZone);return{epochNanoseconds:Lc(t(i),{...r,...a},void 0!==o.offset?mu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...Qf}}function Oh(e,t,n){const r=Lh(e,t,Tf,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function kh(e,t,n,r){const o=Lh(e,t,Mf,r);return e.yearMonthFromFields(o,n)}function Hh(e,t,n,r){const o=Lh(e,n,Tf,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=hd),e.monthDayFromFields(o,r)}function Lh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return Rh(t,[...e.fields(n),...o].sort(),r)}function Rh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(ml(r));if("constructor"===r||"__proto__"===r)throw new RangeError(gl(r));let t=e[r];if(void 0!==t)i=1,Ag[r]&&(t=Ag[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(dl(r));o[r]=Df[r]}a=r}if(r&&!i)throw new TypeError(yl(t));return o}function Ph(e,t){return ms(Eg({...Df,...e}),t)}function Yh(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Rh(t,i,a);const c=Rh(n,i);return s=e.mergeFields(s,c),Rh(s,i,[])}function jh(e,t){const n=Lh(e,t,Ef);return e.monthDayFromFields(n)}function Fh(e,t,n){const r=Lh(e,t,If);return e.yearMonthFromFields(r,n)}function _h(e,t,n,r,o){t=Ja(n=e.fields(n),t),r=Rh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Rh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Bh(e,t){let{era:n,eraYear:r,year:o}=t;const a=Eh(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(Sl);if(!a)throw new RangeError(vl);const e=a[n];if(void 0===e)throw new RangeError(Ml(n));const t=Ah(r,e);if(void 0!==o&&o!==t)throw new RangeError(bl);o=t}else if(void 0===o)throw new TypeError(Il(a));return o}function $h(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=Mh(t);let s=Ih(a,i,o);if(i){const t=Dh(e);if(void 0===t)throw new RangeError(Cl);if(t>0){if(s>t)throw new RangeError(Cl);if(void 0===o){if(1===r)throw new RangeError(Cl);s--}}else{if(s!==-t)throw new RangeError(Cl);if(void 0===o&&1===r)throw new RangeError(Cl)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(Al);o=t,r=1}else if(void 0===o)throw new TypeError(El);return Ya("month",o,1,e.j(n),r)}function xh(e,t,n,r,o){return Pa(t,"day",1,e.N(r,n),o)}function Uh(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function Zh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cf;return Ys(e.epochNanoseconds,t,n)}function zh(e,t){return js(qd(t,e))}function Vh(e,t){return Fs(qd(t,e))}function Kh(e,t){return $s(qd(t,e))}function Jh(e,t){return{...e,calendar:t}}function Gh(e,t){if(e===t)return e;const n=zs(e),r=zs(t);if(n===r||n===Cf)return t;if(r===Cf)return e;throw new RangeError(Ol)}function Wh(e,t){return n=>n===Cf?e:n===Nf||n===Of?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),vg(n))}function qh(e,t,n){const r=new Set(n);return o=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(o=Ga(r,o),e)||Object.assign(o,t),n&&(o.timeZone=Vd,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function Xh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qh;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tm;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...el(e,h,s)]}}function Qh(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(Jl);n.timeZone=e}return new td(t,n)}function el(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Cf)&&e!==t)throw new RangeError(Ol)})(zs(e.calendar),t.calendar,o),r(e,t))))}function tl(e){const t=nl();return ts(t,e.getOffsetNanosecondsFor(t))}function nl(){return Yi(Date.now(),rf)}function rl(){return um||(um=(new td).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?Go:u?Go[s]||Qo(s,{}):Go[s]&&Go[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Wo(n,r))&&i.value:n[r],!ta(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;ea(a,o)}(e.sham||o&&o.sham)&&qo(a,"sham",!0),Xo(n,r,a,e)}})({target:"Array",proto:!0,forced:we((function(){return!Array(1).includes()}))},{includes:function(e){return La(this,e,arguments.length>1?arguments[1]:void 0)}}),Ra("includes");const ol=(e,t)=>`Non-integer ${e}: ${t}`,al=(e,t)=>`Non-positive ${e}: ${t}`,il=(e,t)=>`Non-finite ${e}: ${t}`,sl=e=>`Cannot convert bigint to ${e}`,cl=e=>`Invalid bigint: ${e}`,ul="Cannot convert Symbol to string",hl="Invalid object",ll=(e,t,n,r,o)=>o?ll(e,o[t],o[n],o[r]):fl(e,t)+`; must be between ${n}-${r}`,fl=(e,t)=>`Invalid ${e}: ${t}`,dl=e=>`Missing ${e}`,gl=e=>`Invalid field ${e}`,ml=e=>`Duplicate field ${e}`,yl=e=>"No valid fields: "+e.join(),pl=(e,t,n)=>fl(e,t)+"; must be "+Object.keys(n).join(),wl="Invalid calling context",vl="Forbidden era/eraYear",Sl="Mismatching era/eraYear",bl="Mismatching year/eraYear",Ml=e=>`Invalid era: ${e}`,Il=e=>"Missing year"+(e?"/era/eraYear":""),Tl=e=>`Invalid monthCode: ${e}`,Al="Mismatching month/monthCode",El="Missing month/monthCode",Dl="Cannot guess year",Cl="Invalid leap month",Nl="Invalid protocol results",Ol="Mismatching Calendars",kl=e=>`Invalid Calendar: ${e}`,Hl="Mismatching TimeZones",Ll="Forbidden ICU TimeZone",Rl="Out-of-bounds offset",Pl="Out-of-bounds TimeZone gap",Yl="Invalid TimeZone offset",jl="Ambiguous offset",Fl="Out-of-bounds date",_l="Out-of-bounds duration",Bl="Cannot mix duration signs",$l="Missing relativeTo",xl="Cannot use large units",Ul="Required smallestUnit or largestUnit",Zl="smallestUnit > largestUnit",zl=e=>`Cannot parse: ${e}`,Vl=e=>`Invalid substring: ${e}`,Kl=e=>`Cannot format ${e}`,Jl="Cannot specify TimeZone",Gl=Qa(Va,((e,t)=>t)),Wl=Qa(Va,((e,t,n)=>n)),ql=Qa(ni,2),Xl={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Ql=Object.keys(Xl),ef=864e5,tf=1e3,nf=1e3,rf=1e6,of=1e9,af=6e10,sf=36e11,cf=864e11,uf=[1,nf,rf,of,af,sf,cf],hf=Ql.slice(0,6),lf=ti(hf),ff=["offset"],df=["timeZone"],gf=hf.concat(ff),mf=gf.concat(df),yf=["era","eraYear"],pf=yf.concat(["year"]),wf=["year"],vf=["monthCode"],Sf=["month"].concat(vf),bf=["day"],Mf=Sf.concat(wf),If=vf.concat(wf),Tf=bf.concat(Mf),Af=bf.concat(Sf),Ef=bf.concat(vf),Df=Wl(hf,0),Cf="iso8601",Nf="gregory",Of="japanese",kf={[Nf]:{bce:-1,ce:0},[Of]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Hf={bc:"bce",ad:"ce"},Lf={chinese:13,dangi:13,hebrew:-6},Rf=Qa(vi,"string"),Pf=Qa(vi,"boolean"),Yf=Qa(vi,"number"),jf=Qa(vi,"function"),Ff=Ql.map((e=>e+"s")),_f=ti(Ff),Bf=Ff.slice(0,6),$f=Ff.slice(6),xf=$f.slice(1),Uf=Gl(Ff),Zf=Wl(Ff,0),zf=Wl(Bf,0),Vf=Qa(Xa,Ff),Kf=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Jf=["isoDay","isoMonth","isoYear"],Gf=Kf.concat(Jf),Wf=ti(Jf),qf=ti(Kf),Xf=ti(Gf),Qf=Wl(qf,0),ed=Qa(Xa,Gf),td=Intl.DateTimeFormat,nd="en-GB",rd=1e8,od=rd*ef,ad=[rd,0],id=[-rd,0],sd=275760,cd=-271821,ud=1970,hd=1972,ld=12,fd=Qi(1868,9,8),dd=_a(hs,WeakMap),gd="smallestUnit",md="unit",yd="roundingIncrement",pd="fractionalSecondDigits",wd="relativeTo",vd={constrain:0,reject:1},Sd=Object.keys(vd),bd={compatible:0,reject:1,earlier:2,later:3},Md={reject:0,use:1,prefer:2,ignore:3},Id={auto:0,never:1,critical:2,always:3},Td={auto:0,never:1,critical:2},Ad={auto:0,never:1},Ed={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Dd=Qa(Hs,gd),Cd=Qa(Hs,"largestUnit"),Nd=Qa(Hs,md),Od=Qa(Ls,"overflow",vd),kd=Qa(Ls,"disambiguation",bd),Hd=Qa(Ls,"offset",Md),Ld=Qa(Ls,"calendarName",Id),Rd=Qa(Ls,"timeZoneName",Td),Pd=Qa(Ls,"offset",Ad),Yd=Qa(Ls,"roundingMode",Ed),jd="PlainYearMonth",Fd="PlainMonthDay",_d="PlainDate",Bd="PlainDateTime",$d="PlainTime",xd="ZonedDateTime",Ud="Instant",Zd="Duration",zd=[Math.floor,e=>hi(e)?Math.floor(e):Math.round(e),Math.ceil,e=>hi(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>hi(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>hi(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Vd="UTC",Kd=5184e3,Jd=Xi(1847),Gd=Xi((new Date).getUTCFullYear()+10),Wd=/0+$/,qd=_a(Hc,WeakMap),Xd=2**32-1,Qd=_a((e=>{const t=Pu(e);return"object"==typeof t?new tg(t):new eg(t||0)}));class eg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[qi(e,this.R)]}B(){}}class tg{constructor(e){this.q=(e=>{function t(e){const t=oi(e,a,i),[s,c]=gu(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=_a(e),o=_a(du);let a=Jd,i=Gd;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=oi(e,a,i);let[c,u]=gu(s);const h=Kd*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((ri(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Bi(e,t*tf);return Xi(uh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(Ki(e))*of}getPossibleInstantsFor(e){const[t,n]=[Xi((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*rf+r.isoMicrosecond*nf+r.isoNanosecond];var r;return this.q.J(t).map((e=>Zi(ki(Yi(e,of),n))))}B(e,t){const[n,r]=Ji(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Yi(o,of)}}const ng="([+−-])",rg="(?:[.,](\\d{1,9}))?",og=`(?:(?:${ng}(\\d{6}))|(\\d{4}))-?(\\d{2})`,ag="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+rg+")?)?",ig=ng+ag,sg=og+"-?(\\d{2})(?:[T ]"+ag+"(Z|"+ig+")?)?",cg="\\[(!?)([^\\]]*)\\]",ug=`((?:${cg}){0,9})`,hg=Ou(og+ug),lg=Ou("(?:--)?(\\d{2})-?(\\d{2})"+ug),fg=Ou(sg+ug),dg=Ou("T?"+ag+"(?:"+ig+")?"+ug),gg=Ou(ig),mg=new RegExp(cg,"g"),yg=Ou(`${ng}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${rg}H)?(?:(\\d+)${rg}M)?(?:(\\d+)${rg}S)?)?`),pg=_a((e=>new td(nd,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),wg=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,vg=_a(ah),Sg=_a((e=>new td(nd,{calendar:e,timeZone:Vd,era:"short",year:"numeric",month:"short",day:"numeric"}))),bg=/^M(\d{2})(L?)$/,Mg={era:Ii,eraYear:Ei,year:Ei,month:Ci,monthCode:Ii,day:Ci},Ig=Wl(hf,Ei),Tg=Wl(Ff,Di),Ag=Object.assign({},Mg,Ig,Tg,{offset:Ii}),Eg=Qa(Ka,hf,Kf),Dg={dateAdd(e,t,n){const r=ys(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=cu(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=Ih(t,r,e.P(a)),i=Ya("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ya("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=Gi(e)}return o+=(7*s+c)*ef,xi(ns(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=th({...e,...Qf},{...t,...Qf});return 7===n&&([r,o]=si(o,7)),{...Zf,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-Ih(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...Zf,years:a,months:i,days:s}},dateFromFields(e,t){const n=ys(t),r=Bh(this,e),o=$h(this,e,r,n),a=xh(this,e,o,r,n);return Fs(xi(this.L(r,o,a)),this.id||Cf)},yearMonthFromFields(e,t){const n=ys(t),r=Bh(this,e),o=$h(this,e,r,n);return _s($i(this.L(r,o,1)),this.id||Cf)},monthDayFromFields(e,t){const n=ys(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=Mh(o),l=ja(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(Dl);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(Al);r&&(h=Ya("month",h,1,ld,1),l=Ya("day",l,1,as(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?hd:Bh(this,e),h=$h(this,e,u,n),l=xh(this,e,h,u,n);const t=this.P(u);c=h===t,s=Th(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(Dl);[u,h]=o}return Bs(xi(this.L(u,h,l)),this.id||Cf)},fields(e){return Eh(this)&&e.includes("year")?[...e,...yf]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Uh(n,t,Sf),Eh(this)&&(Uh(n,t,pf),this.id===Of&&Uh(n,t,Af,yf)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:bh,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+ql(e)+(t?"L":""))(r,o)},dayOfWeek:cs,daysInWeek:()=>7},Cg={dayOfYear:bh,v:rs,p:Qi},Ng=Object.assign({},Cg,{weekOfYear:vh,yearOfWeek:Sh,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=is(f+e),r=e||1,o=t(ii(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=cs(e),a=this.dayOfYear(e),i=ii(o-1,7),s=a-1,c=ii(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),Og={dayOfYear:bh,v:hh,p:lh,weekOfYear:vh,yearOfWeek:Sh,m:()=>[]},kg=Wh(Object.assign({},Dg,Ng,{v:rs,nn(e){return this.id===Nf?us(e):this.id===Of?dd(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[hd,e]},K:ss,P(){},j:os,V:e=>e*ld,N:as,X:is,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:Qi,G:(e,t,n)=>(e+=ci(n,ld),(t+=ui(n,ld))<1?(e--,t+=ld):t>ld&&(e++,t-=ld),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},Dg,Og,{v:hh,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=fh.call(this,e);return[Th(t,n),n===t]},k(e,t,n){let[r,o,a]=hh.call(this,{isoYear:hd,isoMonth:ld,isoDay:31});const i=fh.call(this,r),s=o===i;1===(ri(e,Th(o,i))||ri(Number(t),Number(s))||ri(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=fh.call(this,a),s=Ih(e,t,i);if(t===(s===i)&&n<=gh.call(this,a,s))return[a,s]}},K(e){const t=dh.call(this,e);return t>dh.call(this,e-1)&&t>dh.call(this,e+1)},P:fh,j:mh,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=mh.call(this,e+o);return a},N:gh,X:dh,L(e,t,n){return ns(lh.call(this,e,t,n))},p:lh,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Fl);if(n<0)for(;t<1;)t+=mh.call(this,--e);else{let n;for(;t>(n=mh.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),Hg="numeric",Lg=["timeZoneName"],Rg={month:Hg,day:Hg},Pg={year:Hg,month:Hg},Yg=Object.assign({},Pg,{day:Hg}),jg={hour:Hg,minute:Hg,second:Hg},Fg=Object.assign({},Yg,jg),_g=Object.assign({},Fg,{timeZoneName:"short"}),Bg=Object.keys(Pg),$g=Object.keys(Rg),xg=Object.keys(Yg),Ug=Object.keys(jg),Zg=["dateStyle"],zg=Bg.concat(Zg),Vg=$g.concat(Zg),Kg=xg.concat(Zg,["weekday"]),Jg=Ug.concat(["dayPeriod","timeStyle"]),Gg=Kg.concat(Jg),Wg=Gg.concat(Lg),qg=Lg.concat(Jg),Xg=Lg.concat(Kg),Qg=Lg.concat(["day","weekday"],Jg),em=Lg.concat(["year","weekday"],Jg),tm={},nm=[qh(Gg,Fg),Us],rm=[qh(Wg,_g),Us,0,(e,t)=>{const n=zs(e.timeZone);if(t&&zs(t.timeZone)!==n)throw new RangeError(Hl);return n}],om=[qh(Gg,Fg,Lg),Gi],am=[qh(Kg,Yg,qg),Gi],im=[qh(Jg,jg,Xg),e=>zi(e)/rf],sm=[qh(zg,Pg,Qg),Gi,1],cm=[qh(Vg,Rg,em),Gi,1];let um;function hm(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(wl);ay(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Ba(t))}function s(t){const n=oy(t);if(!n||n.branding!==e)throw new TypeError(wl);return n}return Object.defineProperties(a.prototype,{...xa(za(i,n)),...$a(za(i,r)),...Ua("Temporal."+e)}),Object.defineProperties(a,{...$a(o),...Ba(e)}),[a,e=>{const t=Object.create(a.prototype);return ay(t,e),t},s]}function lm(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function fm(e){if(oy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function dm(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=oy(n)||{},{branding:i}=a,s=i===_d||t.includes(i)?a:Nm(n);return o[r](s)};return n}function gm(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?kg(r):(o=r,Object.assign(Object.create(ly),{C:o})))[n](e);var r,o};return t}function mm(){throw new TypeError("Cannot use valueOf")}function ym(e){let{calendar:t}=e;return"string"==typeof t?new up(t):t}function pm(e,t){if(t=Os(t),Fa(e)){const n=oy(e);if(n&&n.branding===Fd)return ys(t),n;const r=Pm(e);return Hh(qy(r||Cf),!r,e,t)}const n=function(e,t){const n=Tu(Rf(t));if(n)return pu(n),Bs(fs(n));const r=yu(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Bs(xi(a.L(l,f,c)),o)}(kg,e);return ys(t),n}function wm(e,t,n){return Pc(mi(t.call(e,My(Ps(n)))))}function vm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vy;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Qa(t[o],e,jf(e[o]));return r}function Sm(e,t){return"string"==typeof e?Qd(e):vm(e,t)}function bm(e){return Sm(e,Sy)}function Mm(e){if(Fa(e)){const t=oy(e);if(t)switch(t.branding){case Ud:return t;case xd:return Ps(t.epochNanoseconds)}}return function(e){const t=Mu(e=Ii(e));if(!t)throw new RangeError(zl(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(zl(e));n=mu(t.offset)}return t.timeZone&&Au(t.timeZone,1),Ps(qi(ls(t),n))}(e)}function Im(e,t,n){const r=t.B(Mm(n).epochNanoseconds,e);return r?My(Ps(r)):null}function Tm(e){return Fa(e)?(oy(e)||{}).timeZone||Ey(e):(e=>Lu(function(e){const t=Mu(e);return t&&(t.timeZone||t.O&&Vd||t.offset)||e}(Rf(e))))(e)}function Am(e,t){if(Fa(e)){const n=oy(e)||{};switch(n.branding){case $d:return ys(t),n;case Bd:return ys(t),$s(n);case xd:return ys(t),Kh(bm,n)}return function(e,t){const n=ys(t);return $s(Ph(Rh(e,lf,[],1),n))}(e,t)}return ys(t),function(e){let t,n=(e=>{const t=dg.exec(e);return t?(Cu(t[10]),Du(t)):void 0})(Rf(e));if(!n){if(n=Mu(e),!n)throw new RangeError(zl(e));if(!n.I)throw new RangeError(zl(e));if(n.O)throw new RangeError(Vl("Z"));pu(n)}if((t=Iu(e))&&ds(t))throw new RangeError(zl(e));if((t=Tu(e))&&ds(t))throw new RangeError(zl(e));return $s(ms(n,1))}(e)}function Em(e){return void 0===e?void 0:Am(e)}function Dm(e,t){if(t=Os(t),Fa(e)){const n=oy(e);return n&&n.branding===jd?(ys(t),n):kh(Gy(Rm(e)),e,t)}const n=function(e,t){const n=Iu(Rf(t));if(n)return pu(n),_s($i(fs(n)));const r=yu(t);return _s(Vc(e(r.calendar),r))}(kg,e);return ys(t),n}function Cm(e,t){if(t=Os(t),Fa(e)){const n=oy(e)||{};switch(n.branding){case Bd:return ys(t),n;case _d:return ys(t),js({...n,...Qf});case xd:return ys(t),zh(bm,n)}return function(e,t,n){const r=Lh(e,t,Tf,[],hf),o=ys(n);return js(Ui({...e.dateFromFields(r,ks(n,o)),...Ph(r,o)}))}(Wy(Rm(e)),e,t)}const n=function(e){const t=Mu(Rf(e));if(!t||t.O)throw new RangeError(zl(e));return js(vu(t))}(e);return ys(t),n}function Nm(e,t){if(t=Os(t),Fa(e)){const n=oy(e)||{};switch(n.branding){case _d:return ys(t),n;case Bd:return ys(t),Fs(n);case xd:return ys(t),Vh(bm,n)}return Oh(Wy(Rm(e)),e,t)}const n=yu(e);return ys(t),n}function Om(e,t,n){return gi(t.call(e,Py(Fs(n,e))))}function km(e){return t=>"string"==typeof t?kg(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Qa(t[o],e,e[o]);return r})(t,e)}function Hm(e){if(Fa(e)){const t=oy(e);return t&&t.branding===Zd?t:function(e){const t=Rh(e,_f);return xs(iu({...Zf,...t}))}(e)}return function(e){const t=(e=>{const t=yg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=ai(o,uf[a])),void 0!==e){if(r)throw new RangeError(Vl(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Vl(e));return t})(e),n=1,t&&(o=Nu(t)*(uf[a]/of),r=1)}return i+s}let n=0,r=0,o=0,a={...Za(Ff,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...fi(o,2,Ff)};if(!n)throw new RangeError(yl(Ff));return ku(e[1])<0&&(a=ou(a)),a})(t):void 0})(Rf(e));if(!t)throw new RangeError(zl(e));return xs(iu(t))}(e)}function Lm(e){if(void 0!==e){if(Fa(e)){const t=oy(e)||{};switch(t.branding){case xd:case _d:return t;case Bd:return Fs(t)}const n=Rm(e);return{...Nh(Tm,Sm,Wy(n),e),calendar:n}}return function(e){const t=Mu(Rf(e));if(!t)throw new RangeError(zl(e));if(t.timeZone)return wu(t,t.offset?mu(t.offset):void 0);if(t.O)throw new RangeError(zl(e));return Su(t)}(e)}}function Rm(e){return Pm(e)||Cf}function Pm(e){const{calendar:t}=e;if(void 0!==t)return Ym(t)}function Ym(e){return Fa(e)?(oy(e)||{}).calendar||hp(e):(e=>ph(function(e){const t=Mu(e)||Iu(e)||Tu(e);return t?t.calendar:e}(Rf(e))))(e)}function jm(e,t){if(t=Os(t),Fa(e)){const n=oy(e);if(n&&n.branding===xd)return ps(t),n;const r=Rm(e);return function(e,t,n,r,o,a){const i=Lh(n,o,Tf,df,mf),s=e(i.timeZone),[c,u,h]=ps(a),l=n.dateFromFields(i,ks(a,c)),f=Ph(i,c);return Ys(Lc(t(s),{...l,...f},void 0!==i.offset?mu(i.offset):void 0,u,h),s,r)}(Tm,Sm,Wy(r),r,e,t)}return function(e,t){const n=Mu(Rf(e));if(!n||!n.timeZone)throw new RangeError(zl(e));const{offset:r}=n,o=r?mu(r):void 0,[,a,i]=ps(t);return wu(n,o,a,i)}(e,t)}function Fm(e){return za((e=>t=>e(_m(t))),e)}function _m(e){return qd(e,bm)}function Bm(){const e=td.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(td),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);yp.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new td(e,t),r=n.resolvedOptions(),o=r.locale,a=Ja(Object.keys(t),r),i=_a(Um),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=oy(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.U=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&$m(e);"function"==typeof n.value?n.value="constructor"===e?r:o||xm(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function $m(e){return function(){const t=yp.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function xm(e){return function(){return yp.get(this).U[e](...arguments)}}function Um(e){const t=Zm[e];if(!t)throw new TypeError(Kl(e));return Xh(t,_a(Qh))}const Zm={Instant:nm,PlainDateTime:om,PlainDate:am,PlainTime:im,PlainYearMonth:sm,PlainMonthDay:cm},zm=Xh(nm),Vm=Xh(rm),Km=Xh(om),Jm=Xh(am),Gm=Xh(im),Wm=Xh(sm),qm=Xh(cm),Xm={era:function(e){if(void 0!==e)return Rf(e)},eraYear:di,year:mi,month:gi,daysInMonth:gi,daysInYear:gi,inLeapYear:Pf,monthsInYear:gi},Qm={monthCode:Rf},ey={day:gi},ty={dayOfWeek:gi,dayOfYear:gi,weekOfYear:function(e){if(void 0!==e)return gi(e)},yearOfWeek:di,daysInWeek:gi},ny=Object.assign({},Xm,Qm,ey,ty),ry=new WeakMap,oy=ry.get.bind(ry),ay=ry.set.bind(ry),iy={...dm(Xm,[jd]),...dm(ty,[]),...dm(Qm,[jd,Fd]),...dm(ey,[Fd])},sy=gm(ny),cy=gm({...Xm,...Qm}),uy=gm({...Qm,...ey}),hy={calendarId:e=>zs(e.calendar)},ly=za(((e,t)=>function(n){const{C:r}=this;return e(r[t](Py(Fs(n,r))))}),ny),fy=Va((e=>t=>t[e]),Ff.concat("sign")),dy=Va(((e,t)=>e=>e[Kf[t]]),hf),gy={epochSeconds:function(e){return Ki(e.epochNanoseconds)},epochMilliseconds:Us,epochMicroseconds:function(e){return ji(e.epochNanoseconds,nf)},epochNanoseconds:function(e){return ji(e.epochNanoseconds)}},my=Qa(Ga,new Set(["branding"])),[yy,py,wy]=hm(Fd,Qa((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Cf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:hd;const a=Ei(t),i=Ei(n),s=e(r);return Bs(xi(fs({isoYear:Ei(o),isoMonth:a,isoDay:i})),s)}),Ym),{...hy,...uy},{getISOFields:my,getCalendar:ym,with(e,t,n){return py(function(e,t,n,r,o){const a=Os(o);return((e,t,n,r)=>{const o=Yh(e,t,n,Tf);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(ep,e,this,fm(t),n))},equals:(e,t)=>function(e,t){return!_u(e,t)&&Vs(e.calendar,t.calendar)}(e,pm(t)),toPlainDate(e,t){return Py(function(e,t,n,r){return((e,t,n)=>_h(e,t,Ef,wi(n),wf))(e(t.calendar),n,r)}(Qy,e,this,t))},toLocaleString(e,t,n){const[r,o]=qm(t,n,e);return r.format(o)},toString:yc,toJSON:e=>yc(e),valueOf:mm},{from:(e,t)=>py(pm(e,t))}),vy={getOffsetNanosecondsFor:wm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,Ly(js(n,Cf)))].map((e=>Iy(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Li),Yc(Fi(Hi(r[0],r[o-1])))),r}},Sy={getOffsetNanosecondsFor:wm},[by,My,Iy]=hm(Ud,(function(e){return Ps(Zi(Pi(Ti(e))))}),gy,{add:(e,t)=>My(jc(0,e,Hm(t))),subtract:(e,t)=>My(jc(1,e,Hm(t))),until:(e,t,n)=>ip(xu(0,e,Mm(t),n)),since:(e,t,n)=>ip(xu(1,e,Mm(t),n)),round:(e,t)=>My(function(e,t){const[n,r,o]=Ss(t,5,1);return Ps(oc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Yu(e,t)}(e,Mm(t)),toZonedDateTime(e,t){const n=wi(t);return fp(Zh(e,Tm(n.timeZone),Ym(n.calendar)))},toZonedDateTimeISO:(e,t)=>fp(Zh(e,Tm(t))),toLocaleString(e,t,n){const[r,o]=zm(t,n,e);return r.format(o)},toString:(e,t)=>lc(Tm,bm,e,t),toJSON:e=>lc(Tm,bm,e),valueOf:mm},{from:e=>My(Mm(e)),fromEpochSeconds:e=>My(function(e){return Ps(Zi(Yi(e,of)))}(e)),fromEpochMilliseconds:e=>My(function(e){return Ps(Zi(Yi(e,rf)))}(e)),fromEpochMicroseconds:e=>My(function(e){return Ps(Zi(Pi(Ti(e),nf)))}(e)),fromEpochNanoseconds:e=>My(function(e){return Ps(Zi(Pi(Ti(e))))}(e)),compare:(e,t)=>Yu(Mm(e),Mm(t))}),[Ty,Ay]=hm("TimeZone",(e=>{const t=function(e){return Lu(Rf(e))}(e);return{branding:"TimeZone",id:t,F:Qd(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(Cm(t)).map((e=>My(Ps(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(Mm(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=Mm(t).epochNanoseconds;return Ec(vm(this,Sy).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cf;const r=Mm(t).epochNanoseconds,o=vm(this,Sy).getOffsetNanosecondsFor(r);return Ly(js(ts(r,o),Ym(n)))},getInstantFor(e,t,n){const r=Cm(t),o=ws(n),a=vm(this);return My(Ps(Rc(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return Im(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return Im(-1,n,t)},equals(e,t){return!!$u(this,Tm(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=Tm(e);return"string"==typeof t?new Ty(t):t}}),Ey=lm(Object.keys(vy)),[Dy,Cy]=hm($d,(function(){return $s(ms(za(Ei,Za(Kf,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),dy,{getISOFields:my,with(e,t,n){return Cy(function(e,t,n){return $s(((e,t,n)=>{const r=ys(n);return Ph({...Ja(lf,e),...Rh(t,lf)},r)})(e,t,n))}(this,fm(t),n))},add:(e,t)=>Cy(xc(0,e,Hm(t))),subtract:(e,t)=>Cy(xc(1,e,Hm(t))),until:(e,t,n)=>ip(Ju(0,e,Am(t),n)),since:(e,t,n)=>ip(Ju(1,e,Am(t),n)),round:(e,t)=>Cy(function(e,t){const[n,r,o]=Ss(t,5);var a;return $s((a=o,qs(e,Qs(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Bu(e,t)}(e,Am(t)),toZonedDateTime:(e,t)=>fp(function(e,t,n,r,o){const a=wi(o),i=t(a.plainDate),s=e(a.timeZone);return Ys(Rc(n(s),{...i,...r}),s,i.calendar)}(Tm,Nm,Sm,e,t)),toPlainDateTime:(e,t)=>Ly(function(e,t){return js(Ui({...e,...t}))}(e,Nm(t))),toLocaleString(e,t,n){const[r,o]=Gm(t,n,e);return r.format(o)},toString:pc,toJSON:e=>pc(e),valueOf:mm},{from:(e,t)=>Cy(Am(e,t)),compare:(e,t)=>Bu(Am(e),Am(t))}),[Ny,Oy,ky]=hm(jd,Qa((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Cf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=Ei(t),i=Ei(n),s=e(r);return _s($i(fs({isoYear:a,isoMonth:i,isoDay:Ei(o)})),s)}),Ym),{...hy,...cy},{getISOFields:my,getCalendar:ym,with(e,t,n){return Oy(function(e,t,n,r,o){const a=Os(o);return _s(((e,t,n,r)=>{const o=Yh(e,t,n,Mf);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(Xy,e,this,fm(t),n))},add:(e,t,n)=>Oy($c(rp,0,e,Hm(t),n)),subtract:(e,t,n)=>Oy($c(rp,1,e,Hm(t),n)),until:(e,t,n)=>ip(Vu(op,0,e,Dm(t),n)),since:(e,t,n)=>ip(Vu(op,1,e,Dm(t),n)),equals:(e,t)=>function(e,t){return!_u(e,t)&&Vs(e.calendar,t.calendar)}(e,Dm(t)),toPlainDate(e,t){return Py(function(e,t,n,r){return((e,t,n)=>_h(e,t,If,wi(n),bf))(e(t.calendar),n,r)}(Qy,e,this,t))},toLocaleString(e,t,n){const[r,o]=Wm(t,n,e);return r.format(o)},toString:mc,toJSON:e=>mc(e),valueOf:mm},{from:(e,t)=>Oy(Dm(e,t)),compare:(e,t)=>_u(Dm(e),Dm(t))}),[Hy,Ly]=hm(Bd,Qa((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Cf;return js(Ui(ls(za(Ei,Za(Gf,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Ym),{...hy,...sy,...dy},{getISOFields:my,getCalendar:ym,with(e,t,n){return Ly(function(e,t,n,r,o){const a=Os(o);return js(((e,t,n,r)=>{const o=Yh(e,t,n,Tf,hf),a=ys(r);return Ui({...e.dateFromFields(o,ks(r,a)),...Ph(o,a)})})(e(t.calendar),n,r,a))}(Qy,e,this,fm(t),n))},withCalendar:(e,t)=>Ly(Jh(e,Ym(t))),withPlainDate:(e,t)=>Ly(function(e,t){return js({...e,...t},Gh(e.calendar,t.calendar))}(e,Nm(t))),withPlainTime:(e,t)=>Ly(function(e){return js({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qf})}(e,Em(t))),add:(e,t,n)=>Ly(_c(tp,0,e,Hm(t),n)),subtract:(e,t,n)=>Ly(_c(tp,1,e,Hm(t),n)),until:(e,t,n)=>ip(Zu(np,0,e,Cm(t),n)),since:(e,t,n)=>ip(Zu(np,1,e,Cm(t),n)),round:(e,t)=>Ly(function(e,t){return js(Gs(e,...Ss(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Fu(e,t)&&Vs(e.calendar,t.calendar)}(e,Cm(t)),toZonedDateTime:(e,t,n)=>fp(function(e,t,n,r){const o=((e,t,n,r)=>{const o=ws(r);return Rc(e(t),n,o)})(e,n,t,r);return Ys(Zi(o),n,t.calendar)}(Sm,e,Tm(t),n)),toPlainDate:e=>Py(Fs(e)),toPlainTime:e=>Cy($s(e)),toPlainYearMonth(e){return Oy(function(e,t,n){const r=e(t.calendar);return _s({...t,...Fh(r,n)})}(Gy,e,this))},toPlainMonthDay(e){return py(function(e,t,n){return jh(e(t.calendar),n)}(qy,e,this))},toLocaleString(e,t,n){const[r,o]=Km(t,n,e);return r.format(o)},toString:dc,toJSON:e=>dc(e),valueOf:mm},{from:(e,t)=>Ly(Cm(e,t)),compare:(e,t)=>Fu(Cm(e),Cm(t))}),[Ry,Py,Yy]=hm(_d,Qa((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Cf;return Fs(xi(fs(za(Ei,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Ym),{...hy,...sy},{getISOFields:my,getCalendar:ym,with(e,t,n){return Py(function(e,t,n,r,o){const a=Os(o);return((e,t,n,r)=>{const o=Yh(e,t,n,Tf);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(Qy,e,this,fm(t),n))},withCalendar:(e,t)=>Py(Jh(e,Ym(t))),add:(e,t,n)=>Py(Bc(tp,0,e,Hm(t),n)),subtract:(e,t,n)=>Py(Bc(tp,1,e,Hm(t),n)),until:(e,t,n)=>ip(zu(np,0,e,Nm(t),n)),since:(e,t,n)=>ip(zu(np,1,e,Nm(t),n)),equals:(e,t)=>function(e,t){return!_u(e,t)&&Vs(e.calendar,t.calendar)}(e,Nm(t)),toZonedDateTime(e,t){const n=!Fa(t)||t instanceof Ty?{timeZone:t}:t;return fp(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):Qf;return Ys(Rc(n(a),{...r,...s}),a,r.calendar)}(Tm,Am,Sm,e,n))},toPlainDateTime:(e,t)=>Ly(function(e){return js(Ui({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qf}))}(e,Em(t))),toPlainYearMonth(e){return Oy(function(e,t,n){return Fh(e(t.calendar),n)}(Gy,e,this))},toPlainMonthDay(e){return py(function(e,t,n){return jh(e(t.calendar),n)}(qy,e,this))},toLocaleString(e,t,n){const[r,o]=Jm(t,n,e);return r.format(o)},toString:gc,toJSON:e=>gc(e),valueOf:mm},{from:(e,t)=>Py(Nm(e,t)),compare:(e,t)=>_u(Nm(e),Nm(t))}),jy={fields:(e,t,n)=>[...t.call(e,n)]},Fy=Object.assign({dateFromFields:(e,t,n,r)=>Yy(t.call(e,Object.assign(Object.create(null),n),r))},jy),_y=Object.assign({yearMonthFromFields:(e,t,n,r)=>ky(t.call(e,Object.assign(Object.create(null),n),r))},jy),By=Object.assign({monthDayFromFields:(e,t,n,r)=>wy(t.call(e,Object.assign(Object.create(null),n),r))},jy),$y={mergeFields:(e,t,n,r)=>wi(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},xy=Object.assign({},Fy,$y),Uy=Object.assign({},_y,$y),Zy=Object.assign({},By,$y),zy={dateAdd:(e,t,n,r,o)=>Yy(t.call(e,Py(Fs(n,e)),ip(xs(r)),o))},Vy=Object.assign({},zy,{dateUntil:(e,t,n,r,o,a)=>sp(t.call(e,Py(Fs(n,e)),Py(Fs(r,e)),Object.assign(Object.create(null),a,{largestUnit:Ql[o]})))}),Ky=Object.assign({},zy,{day:Om}),Jy=Object.assign({},Vy,{day:Om}),Gy=km(_y),Wy=km(Fy),qy=km(By),Xy=km(Uy),Qy=km(xy),ep=km(Zy),tp=km(zy),np=km(Vy),rp=km(Ky),op=km(Jy),[ap,ip,sp]=hm(Zd,(function(){return xs(iu(za(Di,Za(Ff,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...fy,blank:function(e){return!e.sign}},{with:(e,t)=>ip(function(e,t){return xs((n=e,r=t,iu({...n,...Rh(r,_f)})));var n,r}(e,t)),negated:e=>ip(ru(e)),abs:e=>ip(function(e){return-1===e.sign?ru(e):e}(e)),add:(e,t,n)=>ip(nu(Lm,np,Sm,0,e,Hm(t),n)),subtract:(e,t,n)=>ip(nu(Lm,np,Sm,1,e,Hm(t),n)),round:(e,t)=>ip(function(e,t,n,r,o){const a=fu(r),[i,s,c,u,h]=((e,t,n)=>{e=Ns(e,gd);let r=Cd(e);const o=n(e[wd]);let a=As(e);const i=Yd(e,7);let s=Dd(e);if(void 0===r&&void 0===s)throw new RangeError(Ul);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Rs(r,s),a=Es(a,s,1),[r,s,a,i,o]})(o,a,e);if(eu(Math.max(a,i),h))return xs(iu(((e,t,n,r,o)=>{const a=oc(cu(e),n,r,o);return{...Zf,...uu(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError($l);const[l,f,d]=Gc(t,n,h),g=Wc(d),m=qc(f,d),y=Xc(f,d);let p=0;r.weeks&&7===s&&(p=r.weeks,r={...r,weeks:0});let[w,v]=tu(r,i,l,g,m,y);const S=r.sign,b=au(w);if(S&&b&&S!==b)throw new RangeError(Nl);return b&&(w=rc(w,v,i,s,c,u,l,g,m)),w.weeks+=p,xs(w)}(Lm,np,Sm,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=fu(r),[i,s]=((e,t)=>{const n=t((e=Ns(e,md))[wd]);let r=Nd(e);return r=pi(md,r),[r,n]})(o,e);if(eu(Math.max(i,a),s))return((e,t)=>Fi(cu(e),uf[t],1))(r,i);if(!s)throw new RangeError($l);const[c,u,h]=Gc(t,n,s),l=Wc(h),f=qc(u,h);return((e,t,n,r,o,a)=>{const i=au(e),[s,c]=Ks(Vf(n,e),n,i,r,o,a),u=Js(t,s,c);return e[Ff[n]]+u*i})(...tu(r,i,c,l,f,Xc(u,h)),i,c,l,f)}(Lm,np,Sm,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):wc(e)},toString:wc,toJSON:e=>wc(e),valueOf:mm},{from:e=>ip(Hm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(Cs(a).relativeTo),s=Math.max(fu(r),fu(o));if(qa(Ff,r,o))return 0;if(eu(s,i))return Li(cu(r),cu(o));if(!i)throw new RangeError($l);const[c,u,h]=Gc(t,n,i),l=Wc(h),f=qc(u,h);return Li(l(f(c,r)),l(f(c,o)))}(Lm,tp,Sm,Hm(e),Hm(t),n)}),cp={toString:e=>e.id,toJSON:e=>e.id,...iy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return Py(Fs(a.dateAdd(Nm(t),Hm(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return ip(xs(o.dateUntil(Nm(t),Nm(n),function(e){return e=Cs(e),Cd(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Py(Oh(o,t,n,function(e){return e===Cf?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Oy(kh(o,t,n,function(e){return e===Cf?wf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return py(Hh(o,0,t,n,function(e){return e===Cf?bf:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(Tf),o=[];for(const e of t){if(Rf(e),!r.has(e))throw new RangeError(gl(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(Wa(yi(t)),Wa(yi(n)))}},[up]=hm("Calendar",(e=>{const t=function(e){return ph(Rf(e))}(e);return{branding:"Calendar",id:t,F:kg(t)}}),{id:e=>e.id},cp,{from(e){const t=Ym(e);return"string"==typeof t?new up(t):t}}),hp=lm(Object.keys(cp).slice(4)),[lp,fp]=hm(xd,Qa((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Cf;return Ys(Zi(Pi(Ti(n))),t(r),e(o))}),Ym,Tm),{...gy,...hy,...Fm(sy),...Fm(dy),offset:e=>Ec(_m(e).offsetNanoseconds),offsetNanoseconds:e=>_m(e).offsetNanoseconds,timeZoneId:e=>zs(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=qd(t,n),[o,a]=ec(r),i=Fi(Hi(Rc(n,o),Rc(n,a)),sf,1);if(i<=0)throw new RangeError(Nl);return i}(Sm,e)},{getISOFields:e=>function(e,t){const n=qd(t,e);return{calendar:t.calendar,...Ja(Xf,n),offset:Ec(n.offsetNanoseconds),timeZone:t.timeZone}}(bm,e),getCalendar:ym,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new Ty(t):t},with(e,t,n){return fp(function(e,t,n,r,o,a){const i=Os(a),{calendar:s,timeZone:c}=n;return Ys(((e,t,n,r,o)=>{const a=Yh(e,n,r,Tf,gf,ff),[i,s,c]=ps(o,2);return Lc(t,{...e.dateFromFields(a,ks(o,i)),...Ph(a,i)},mu(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(Qy,Sm,e,this,fm(t),n))},withCalendar:(e,t)=>fp(Jh(e,Ym(t))),withTimeZone:(e,t)=>fp(function(e,t){return{...e,timeZone:t}}(e,Tm(t))),withPlainDate:(e,t)=>fp(function(e,t,n){const r=t.timeZone,o=e(r),a={...qd(t,o),...n},i=Gh(t.calendar,n.calendar);return Ys(Lc(o,a,a.offsetNanoseconds,2),r,i)}(Sm,e,Nm(t))),withPlainTime:(e,t)=>fp(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qf;const r=t.timeZone,o=e(r),a={...qd(t,o),...n};return Ys(Lc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(Sm,e,Em(t))),add:(e,t,n)=>fp(Fc(tp,Sm,0,e,Hm(t),n)),subtract:(e,t,n)=>fp(Fc(tp,Sm,1,e,Hm(t),n)),until:(e,t,n)=>ip(xs(Uu(np,Sm,0,e,jm(t),n))),since:(e,t,n)=>ip(xs(Uu(np,Sm,1,e,jm(t),n))),round:(e,t)=>fp(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=Ss(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=qd(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=Rc(t,a),u=Rc(t,i);if(Ri(s,c,u))throw new RangeError(Nl);return sc(Js(s,c,u),r)?u:c})(ec,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=Lc(u,Gs(ts(r,e),i,s,c),e,2,0,1)}return Ys(r,o,a)}(Sm,e,t)),startOfDay:e=>fp(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Rc(t,e(qd(n,t))))(tc,e(n),t);return Ys(o,n,r)}(Sm,e)),equals:(e,t)=>function(e,t){return!ju(e,t)&&!!$u(e.timeZone,t.timeZone)&&Vs(e.calendar,t.calendar)}(e,jm(t)),toInstant:e=>My(function(e){return Ps(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Ly(zh(bm,e)),toPlainDate:e=>Py(Vh(bm,e)),toPlainTime:e=>Cy(Kh(bm,e)),toPlainYearMonth(e){return Oy(function(e,t,n){return Fh(e(t.calendar),n)}(Gy,e,this))},toPlainMonthDay(e){return py(function(e,t,n){return jh(e(t.calendar),n)}(qy,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Vm(t,n,e);return r.format(o)},toString:(e,t)=>fc(bm,e,t),toJSON:e=>fc(bm,e),valueOf:mm},{from:(e,t)=>fp(jm(e,t)),compare:(e,t)=>ju(jm(e),jm(t))}),dp=Object.defineProperties({},{...Ua("Temporal.Now"),...$a({timeZoneId:()=>rl(),instant:()=>My(Ps(nl())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rl();return fp(Ys(nl(),Tm(t),Ym(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rl();return fp(Ys(nl(),Tm(e),Cf))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rl();return Ly(js(tl(bm(Tm(t))),Ym(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rl();return Ly(js(tl(bm(Tm(e))),Cf))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rl();return Py(Fs(tl(bm(Tm(t))),Ym(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rl();return Py(Fs(tl(bm(Tm(e))),Cf))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rl();return Cy($s(tl(bm(Tm(e)))))}})}),gp=Object.defineProperties({},{...Ua("Temporal"),...$a({PlainYearMonth:Ny,PlainMonthDay:yy,PlainDate:Ry,PlainTime:Dy,PlainDateTime:Hy,ZonedDateTime:lp,Instant:by,Calendar:up,TimeZone:Ty,Duration:ap,Now:dp})}),mp=Bm(),yp=new WeakMap;function pp(e){return e*Math.PI/180}function wp(e){return 180*e/Math.PI}Object.create(Intl),$a({DateTimeFormat:mp});class vp{constructor(e,t,n,r,o){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const Sp=6356.9;class bp{constructor(e,t){this.date=t,this.geoLocation=e}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const e=this.getUTCSunrise0(bp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(bp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(bp.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(bp.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(bp.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(bp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(bp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(bp.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(bp.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(bp.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return wp(Math.acos(Sp/(Sp+e/1e3)))}adjustZenith(e,t){let n=e;return e===bp.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=bp.getSunriseUTC(bp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=bp.getSunsetUTC(bp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return bp.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new gp.PlainTime(o,a,i,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-bp.JULIAN_DAY_JAN_1_2000)/bp.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*bp.JULIAN_DAYS_PER_CENTURY+bp.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(e){let t=280.46646+e*(36000.76983+3032e-7*e);for(;t>360;)t-=360;for(;t<0;)t+=360;return t}static getSunGeometricMeanAnomaly(e){return 357.52911+e*(35999.05029-1537e-7*e)}static getEarthOrbitEccentricity(e){return.016708634-e*(42037e-9+1.267e-7*e)}static getSunEquationOfCenter(e){const t=pp(bp.getSunGeometricMeanAnomaly(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}static getSunTrueLongitude(e){return bp.getSunGeometricMeanLongitude(e)+bp.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return bp.getSunTrueLongitude(e)-.00569-.00478*Math.sin(pp(t))}static getMeanObliquityOfEcliptic(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}static getObliquityCorrection(e){const t=125.04-1934.136*e;return bp.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(pp(t))}static getSunDeclination(e){const t=bp.getObliquityCorrection(e),n=bp.getSunApparentLongitude(e),r=Math.sin(pp(t))*Math.sin(pp(n));return wp(Math.asin(r))}static getEquationOfTime(e){const t=bp.getObliquityCorrection(e),n=bp.getSunGeometricMeanLongitude(e),r=bp.getEarthOrbitEccentricity(e),o=bp.getSunGeometricMeanAnomaly(e);let a=Math.tan(pp(t)/2);a*=a;const i=Math.sin(2*pp(n)),s=Math.sin(pp(o));return 4*wp(a*i-2*r*s+4*r*a*s*Math.cos(2*pp(n))-.5*a*a*Math.sin(4*pp(n))-1.25*r*r*Math.sin(2*pp(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=pp(e),o=pp(t);return Math.acos(Math.cos(pp(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=pp(e),o=pp(t);return-Math.acos(Math.cos(pp(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=bp.getJulianDay(e.toPlainDate()),o=bp.getJulianCenturiesFromJulianDay(r),a=bp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=pp(n-i),c=pp(bp.getSunDeclination(o)),u=pp(t);return wp(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=bp.getJulianDay(e.toPlainDate()),o=bp.getJulianCenturiesFromJulianDay(r),a=bp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=pp(n-i),c=pp(bp.getSunDeclination(o)),u=pp(t);return wp(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=bp.getJulianCenturiesFromJulianDay(e),a=bp.getSolarNoonUTC(o,n),i=bp.getJulianCenturiesFromJulianDay(e+a/1440);let s=bp.getEquationOfTime(i),c=bp.getSunDeclination(i),u=bp.getSunHourAngleAtSunrise(t,c,r),h=n-wp(u),l=4*h,f=720+l-s;const d=bp.getJulianCenturiesFromJulianDay(bp.getJulianDayFromJulianCenturies(o)+f/1440);return s=bp.getEquationOfTime(d),c=bp.getSunDeclination(d),u=bp.getSunHourAngleAtSunrise(t,c,r),h=n-wp(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=bp.getJulianCenturiesFromJulianDay(bp.getJulianDayFromJulianCenturies(e)+t/360);let r=bp.getEquationOfTime(n);const o=720+4*t-r,a=bp.getJulianCenturiesFromJulianDay(bp.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=bp.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=bp.getJulianCenturiesFromJulianDay(e),a=bp.getSolarNoonUTC(o,n),i=bp.getJulianCenturiesFromJulianDay(e+a/1440);let s=bp.getEquationOfTime(i),c=bp.getSunDeclination(i),u=bp.getSunHourAngleAtSunset(t,c,r),h=n-wp(u),l=4*h,f=720+l-s;const d=bp.getJulianCenturiesFromJulianDay(bp.getJulianDayFromJulianCenturies(o)+f/1440);return s=bp.getEquationOfTime(d),c=bp.getSunDeclination(d),u=bp.getSunHourAngleAtSunset(t,c,r),h=n-wp(u),l=4*h,f=720+l-s,f}}const Mp=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],Ip=new Map,Tp={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},Ap=new Map;class Ep extends vp{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=Ap.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return Ap.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return Ip.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return Tp[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":Tp[t]}static addLocation(e,t){const n=e.toLowerCase();return!Ip.has(n)&&(Ip.set(n,t),!0)}}for(const e of Mp){const t=new Ep(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);Ep.addLocation(t.getName(),t)}const Dp=new Map;const Cp=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Np(e,t){const n=function(e){const t=Dp.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 Dp.set(e,n),n}(e).format(t),r=Cp.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=Op(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function Op(e){return e<0?"-00"+Op(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function kp(e){return e<10?"0"+e:String(e)}function Hp(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,$a({Temporal:gp})),Object.defineProperties(Intl,$a({DateTimeFormat:mp})),Object.defineProperties(Date.prototype,$a({toTemporalInstant:function(){return My(Ps(Yi(this.valueOf(),rf)))}}));class Lp{constructor(t,n,r){const o=e.greg.isDate(n)?n:ie.isHDate(n)?n.greg():Q(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new bp(t,a),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return Hp(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return Hp(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return Hp(this.noaa.getSeaLevelSunrise())}sunset(){return Hp(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return Hp(this.noaa.getSeaLevelSunset())}dawn(){return Hp(this.noaa.getBeginCivilTwilight())}dusk(){return Hp(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new Lp(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return Hp(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.noaa.getSunrise(),n=this.noaa.getSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return Hp(bp.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHour16Point1(){const e=this.alotHaShachar();return[e,(this.tzeit(16.1)-e)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=Np("UTC",t),r=Np(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+kp(Math.floor(r/60))+":"+kp(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:Np(e,t).substring(0,19)+Lp.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const Rp={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function Pp(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===Rp[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function Yp(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():he.LIGHT_CANDLES;void 0!==e?r||(s&(he.LIGHT_CANDLES_TZEIS|he.CHANUKAH_CANDLES)?i=!0:s&he.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=he.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new Lp(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new Fp(t,s,l,u,n.havdalahMins,e,n):new _p(t,s,l,u,e,n)}class jp extends fe{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=Lp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=Lp.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=Pp(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return X.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return X.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class Fp extends jp{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=X.gettext(this.getDesc(),e);if(this.havdalahMins){const n=X.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class _p extends jp{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function Bp(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new jp(e,n,r.getFlags(),t,a,r,o)}const $p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],xp=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Up="בַּלַּ֥יְלָה";class Zp{constructor(e,t){let n=t-7;n<0&&(n+=ie.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return ie.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=X.gettext(this.getMonthName(),e),o=(n?xp:$p)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=X.gettext("Molad",e),u=X.lookupTranslation("min",e)||"minutes",h=X.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?Up:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":Up}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?X.hebrewStripNikkud(t):t}const l=Pp(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class zp extends fe{constructor(e,t,n,r){const o=new Zp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,he.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}const Vp=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Kp=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class Jp extends fe{constructor(e,t){if(super(e,`Omer ${t}`,he.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";if("he"===e)return this.sefiraHe();if("translit"===e)return this.sefiraTranslit();{const e=Vp[this.weekNumber];return`${Vp[this.daysWithinWeeks]} within ${e}`}}sefiraTranslit(){const e=this.weekNumber,t=Kp[e];return`${Kp[this.daysWithinWeeks]} ${2===e||6===e?"shebi":"sheb'"}${t}`}sefiraHe(){const e=this.weekNumber,t=Vp[e],n=Vp[this.daysWithinWeeks],r=X.gettext(t,"he");return`${X.gettext(n,"he")} ${2===e||6===e?"שֶׁבִּ":"שֶׁבְּ"}${r}`.normalize()}render(e){e=e||X.getLocaleName();const t=this.omer;return("he"==e?z(t):X.ordinal(t,e))+" "+X.gettext("day of the Omer",e)}renderBrief(e){return X.gettext("Omer",e)+" "+X.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;const e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return rw(this.omer);if("he-x-nonikud"===e)return X.hebrewStripNikkud(rw(this.omer));const t=1===this.omer?"day":"days";let n=`Today is ${this.omer} ${t}`;if(this.weekNumber>1||7===this.omer){const e=7===this.daysWithinWeeks,t=e?this.weekNumber:this.weekNumber-1;if(n+=`, which is ${t} ${1===t?"week":"weeks"}`,!e){const e=1===this.daysWithinWeeks?"day":"days";n+=` and ${this.daysWithinWeeks} ${e}`}}return n+" of the Omer"}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}const Gp=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Wp=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],qp="שְׁנֵי",Xp="יָמִים",Qp=qp+" "+Xp,ew="שָׁבוּעוֹת",tw="יוֹם",nw=tw+" "+Wp[1];function rw(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=Wp[n]+" עָשָׂר":e>9&&(r+=Wp[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=Gp[t]),r+=e<11?Wp[n]+" "+Xp+" ":" "+tw+" "):r+=1===e?nw+" ":Qp+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Wp[t]+" "+ew+" ":1==t?"שָׁבוּעַ "+Wp[1]+" ":qp+" "+ew+" ",n&&(r+="וְ",r+=n>2?Wp[n]+" "+Xp+" ":1==n?nw+" ":Qp+" ")}return r+="לָעוֹמֶר",r.normalize()}class ow extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class aw{constructor(e,t){e=+e;const n=ie.longCheshvan(e),r=ie.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new ie(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=ie.dayOnOrBefore(6,i+6);const c=this.leap=+ie.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(Mw[u])this.key=u,this.theSedraArray=Mw[u];else{const e=this.key=u+ +this.il;this.theSedraArray=Mw[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||X.getLocaleName();let o=X.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+X.gettext(n[1],r)}return o=o.replace(/'/g,"’"),X.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new ie(this.firstSaturday+7*t)}if("string"==typeof e){const t=sw.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new ie(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=sw.get(t);if(sw.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:ie.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ie.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Tw(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[iw[o]],chag:!1,num:o+1};const a=cw(o);return{parsha:[iw[a],iw[a+1]],chag:!1,num:[a+1,a+2]}}}const iw=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'azinu"],sw=new Map;for(let e=0;e<iw.length;e++){const t=iw[e];sw.set(t,e)}function cw(e){return-e}const uw="Rosh Hashana",hw="Yom Kippur",lw="Sukkot",fw="Sukkot Shabbat Chol ha-Moed",dw="Shmini Atzeret",gw=fw,mw="Pesach",yw="Pesach I",pw="Pesach Shabbat Chol ha-Moed",ww="Pesach VII",vw="Pesach VIII",Sw="Shavuot";function bw(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Mw={"020":[51,52].concat(gw,bw(0,20),cw(21),23,24,mw,25,cw(26),cw(28),30,cw(31),bw(33,40),cw(41),bw(43,49),cw(50)),"0220":[51,52].concat(gw,bw(0,20),cw(21),23,24,mw,25,cw(26),cw(28),30,cw(31),33,Sw,bw(34,37),cw(38),40,cw(41),bw(43,49),cw(50)),"0510":[52].concat(hw,gw,bw(0,20),cw(21),23,24,yw,vw,25,cw(26),cw(28),30,cw(31),bw(33,40),cw(41),bw(43,50)),"0511":[52].concat(hw,gw,bw(0,20),cw(21),23,24,mw,25,cw(26),cw(28),bw(30,40),cw(41),bw(43,50)),"052":[52].concat(hw,fw,bw(0,24),ww,25,cw(26),cw(28),30,cw(31),bw(33,40),cw(41),bw(43,50)),"070":[].concat(uw,52,lw,dw,bw(0,20),cw(21),23,24,ww,25,cw(26),cw(28),30,cw(31),bw(33,40),cw(41),bw(43,50)),"072":[].concat(uw,52,lw,dw,bw(0,20),cw(21),23,24,pw,25,cw(26),cw(28),30,cw(31),bw(33,40),cw(41),bw(43,49),cw(50)),1200:[51,52].concat(fw,bw(0,27),pw,bw(28,33),Sw,bw(34,37),cw(38),40,cw(41),bw(43,49),cw(50)),1201:[51,52].concat(fw,bw(0,27),pw,bw(28,40),cw(41),bw(43,49),cw(50)),1220:[51,52].concat(fw,bw(0,27),yw,vw,bw(28,40),cw(41),bw(43,50)),1221:[51,52].concat(fw,bw(0,27),mw,bw(28,50)),150:[52].concat(hw,fw,bw(0,28),ww,bw(29,50)),152:[52].concat(hw,fw,bw(0,28),pw,bw(29,49),cw(50)),170:[].concat(uw,52,lw,dw,bw(0,27),pw,bw(28,40),cw(41),bw(43,49),cw(50)),1720:[].concat(uw,52,lw,dw,bw(0,27),pw,bw(28,33),Sw,bw(34,37),cw(38),40,cw(41),bw(43,49),cw(50))};Mw["0221"]=Mw["020"],Mw["0310"]=Mw["0220"],Mw["0311"]=Mw["020"],Mw[1310]=Mw[1220],Mw[1311]=Mw[1221],Mw[1721]=Mw[170];const Iw=new ow({maxSize:400});function Tw(e,t){const n=`${e}-${t?1:0}`;let r=Iw.get(n);return r||(r=new aw(e,t),Iw.set(n,r)),r}class Aw extends fe{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),he.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||X.getLocaleName(),n=this.parsha;let r=X.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+X.gettext(n[1],e)}r=r.replace(/'/g,"’");return(X.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var Ew=qr,Dw=Ln,Cw=Fn,Nw=ve,Ow=function(e,t,n){return n.get&&Ew(n.get,t,{getter:!0}),n.set&&Ew(n.set,t,{setter:!0}),Dw.f(e,t,n)},kw=function(){var e=Cw(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Hw=we,Lw=ye.RegExp,Rw=Lw.prototype,Pw=Nw&&Hw((function(){var e=!0;try{Lw(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Rw,"flags").get.call(t)!==r||n!==r}));Pw&&Ow(Rw,"flags",{configurable:!0,get:kw});const Yw=0,jw=2,Fw=5,_w=6,Bw=m.NISAN,$w=m.IYYAR;function xw(e){if(e<5708)return null;let t;const n=new ie(15,Bw,e).getDay();return t=n===Yw?2:n===_w?3:e<5764?4:n===jw?5:4,new ie(t,$w,e)}const Uw=m.NISAN,Zw=m.IYYAR,zw=m.SIVAN,Vw=m.TAMUZ,Kw=m.AV,Jw=m.ELUL,Gw=m.TISHREI,Ww=m.CHESHVAN,qw=m.KISLEV,Xw=m.SHVAT,Qw=m.ADAR_II,ev=he.CHAG,tv=he.LIGHT_CANDLES,nv=he.YOM_TOV_ENDS,rv=he.CHUL_ONLY,ov=he.IL_ONLY,av=he.LIGHT_CANDLES_TZEIS,iv=he.CHANUKAH_CANDLES,sv=he.MAJOR_FAST,cv=he.MINOR_HOLIDAY,uv=he.EREV,hv=he.CHOL_HAMOED,lv="🫓",fv="🌿🍋",dv=[{mm:Gw,dd:2,desc:"Rosh Hashana II",flags:ev|nv,emoji:"🍏🍯"},{mm:Gw,dd:9,desc:"Erev Yom Kippur",flags:uv|tv},{mm:Gw,dd:10,desc:"Yom Kippur",flags:ev|sv|nv},{mm:Gw,dd:14,desc:"Erev Sukkot",flags:rv|uv|tv,emoji:fv},{mm:Gw,dd:15,desc:"Sukkot I",flags:rv|ev|av,emoji:fv},{mm:Gw,dd:16,desc:"Sukkot II",flags:rv|ev|nv,emoji:fv},{mm:Gw,dd:17,desc:"Sukkot III (CH''M)",flags:rv|hv,chmDay:1,emoji:fv},{mm:Gw,dd:18,desc:"Sukkot IV (CH''M)",flags:rv|hv,chmDay:2,emoji:fv},{mm:Gw,dd:19,desc:"Sukkot V (CH''M)",flags:rv|hv,chmDay:3,emoji:fv},{mm:Gw,dd:20,desc:"Sukkot VI (CH''M)",flags:rv|hv,chmDay:4,emoji:fv},{mm:Gw,dd:22,desc:"Shmini Atzeret",flags:rv|ev|av},{mm:Gw,dd:23,desc:"Simchat Torah",flags:rv|ev|nv},{mm:Gw,dd:14,desc:"Erev Sukkot",flags:ov|uv|tv,emoji:fv},{mm:Gw,dd:15,desc:"Sukkot I",flags:ov|ev|nv,emoji:fv},{mm:Gw,dd:16,desc:"Sukkot II (CH''M)",flags:ov|hv,chmDay:1,emoji:fv},{mm:Gw,dd:17,desc:"Sukkot III (CH''M)",flags:ov|hv,chmDay:2,emoji:fv},{mm:Gw,dd:18,desc:"Sukkot IV (CH''M)",flags:ov|hv,chmDay:3,emoji:fv},{mm:Gw,dd:19,desc:"Sukkot V (CH''M)",flags:ov|hv,chmDay:4,emoji:fv},{mm:Gw,dd:20,desc:"Sukkot VI (CH''M)",flags:ov|hv,chmDay:5,emoji:fv},{mm:Gw,dd:22,desc:"Shmini Atzeret",flags:ov|ev|nv},{mm:Gw,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:tv|hv,chmDay:-1,emoji:fv},{mm:qw,dd:24,desc:"Chanukah: 1 Candle",flags:uv|cv|iv,emoji:"🕎1️⃣"},{mm:Xw,dd:15,desc:"Tu BiShvat",flags:cv,emoji:"🌳"},{mm:Qw,dd:13,desc:"Erev Purim",flags:uv|cv,emoji:"🎭️📜"},{mm:Qw,dd:14,desc:"Purim",flags:cv,emoji:"🎭️📜"},{mm:Qw,dd:15,desc:"Shushan Purim",flags:cv,emoji:"🎭️📜"},{mm:Uw,dd:14,desc:"Erev Pesach",flags:ov|uv|tv,emoji:"🫓🍷"},{mm:Uw,dd:15,desc:"Pesach I",flags:ov|ev|nv,emoji:lv},{mm:Uw,dd:16,desc:"Pesach II (CH''M)",flags:ov|hv,chmDay:1,emoji:lv},{mm:Uw,dd:17,desc:"Pesach III (CH''M)",flags:ov|hv,chmDay:2,emoji:lv},{mm:Uw,dd:18,desc:"Pesach IV (CH''M)",flags:ov|hv,chmDay:3,emoji:lv},{mm:Uw,dd:19,desc:"Pesach V (CH''M)",flags:ov|hv,chmDay:4,emoji:lv},{mm:Uw,dd:20,desc:"Pesach VI (CH''M)",flags:ov|hv|tv,chmDay:5,emoji:lv},{mm:Uw,dd:21,desc:"Pesach VII",flags:ov|ev|nv,emoji:lv},{mm:Uw,dd:14,desc:"Erev Pesach",flags:rv|uv|tv,emoji:"🫓🍷"},{mm:Uw,dd:15,desc:"Pesach I",flags:rv|ev|av,emoji:"🫓🍷"},{mm:Uw,dd:16,desc:"Pesach II",flags:rv|ev|nv,emoji:lv},{mm:Uw,dd:17,desc:"Pesach III (CH''M)",flags:rv|hv,chmDay:1,emoji:lv},{mm:Uw,dd:18,desc:"Pesach IV (CH''M)",flags:rv|hv,chmDay:2,emoji:lv},{mm:Uw,dd:19,desc:"Pesach V (CH''M)",flags:rv|hv,chmDay:3,emoji:lv},{mm:Uw,dd:20,desc:"Pesach VI (CH''M)",flags:rv|hv|tv,chmDay:4,emoji:lv},{mm:Uw,dd:21,desc:"Pesach VII",flags:rv|ev|av,emoji:lv},{mm:Uw,dd:22,desc:"Pesach VIII",flags:rv|ev|nv,emoji:lv},{mm:Zw,dd:14,desc:"Pesach Sheni",flags:cv},{mm:Zw,dd:18,desc:"Lag BaOmer",flags:cv,emoji:"🔥"},{mm:zw,dd:5,desc:"Erev Shavuot",flags:uv|tv,emoji:"⛰️🌸"},{mm:zw,dd:6,desc:"Shavuot",flags:ov|ev|nv,emoji:"⛰️🌸"},{mm:zw,dd:6,desc:"Shavuot I",flags:rv|ev|av,emoji:"⛰️🌸"},{mm:zw,dd:7,desc:"Shavuot II",flags:rv|ev|nv,emoji:"⛰️🌸"},{mm:Kw,dd:15,desc:"Tu B'Av",flags:cv,emoji:"❤️"},{mm:Jw,dd:1,desc:"Rosh Hashana LaBehemot",flags:cv,emoji:"🐑"},{mm:Jw,dd:29,desc:"Erev Rosh Hashana",flags:uv|tv,emoji:"🍏🍯"}],gv=[{firstYear:5727,mm:Zw,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:qw,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Xw,dd:30,desc:"Family Day"},{firstYear:5758,mm:Ww,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Zw,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Vw,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:Ww,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Uw,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:Ww,dd:7,desc:"Yom HaAliyah School Observance"},{firstYear:5773,mm:m.TEVET,dd:21,desc:"Hebrew Language Day",friSatMovetoThu:!0}],mv=he.CHAG,yv=he.IL_ONLY,pv=he.LIGHT_CANDLES_TZEIS,wv=he.CHANUKAH_CANDLES,vv=he.MINOR_FAST,Sv=he.SPECIAL_SHABBAT,bv=he.MODERN_HOLIDAY,Mv=he.MAJOR_FAST,Iv=he.MINOR_HOLIDAY,Tv=he.EREV;class Av extends fe{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&yv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Sv?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Ev="Rosh Chodesh";class Dv extends Av{constructor(e,t){super(e,`${Ev} ${t}`,he.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=X.gettext(t,e).replace(/'/g,"’");return X.gettext(Ev,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Cv extends Av{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const Nv="Shabbat Mevarchim Chodesh";class Ov extends fe{constructor(e,t,n){if(super(e,`${Nv} ${t}`,he.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==ie.monthsInYear(t)?Rv:n+1,o=new Zp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=X.gettext(this.monthName,e).replace(/'/g,"’");return X.gettext(Nv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class kv extends Av{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return X.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Hv="Yom Kippur Katan";class Lv extends Av{constructor(e,t){super(e,`${Hv} ${t}`,he.MINOR_FAST|he.YOM_KIPPUR_KATAN),this.nextMonthName=t,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${t}`}basename(){return this.getDesc()}render(e){const t=X.gettext(this.nextMonthName,e).replace(/'/g,"’");return X.gettext(Hv,e)+" "+t}renderBrief(e){return X.gettext(Hv,e)}url(){}}const Rv=m.NISAN,Pv=m.TAMUZ,Yv=m.AV,jv=m.TISHREI,Fv=m.KISLEV,_v=m.TEVET,Bv=m.ADAR_I,$v=m.ADAR_II,xv={emoji:"🇮🇱"},Uv=new ow({maxSize:400}),Zv=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function zv(e){if("number"!=typeof e)throw new TypeError(`bad Hebrew year: ${e}`);if(e<1||e>32658)throw new RangeError(`Hebrew year ${e} out of range 1-32658`);const t=Uv.get(e);if(t)return t;const n=new ie(1,jv,e),r=new ie(15,Rv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Tv?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of dv){const n=new ie(t.dd,t.mm,e),r=new Av(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new kv(n,e,mv|pv)),a(new Av(new ie(3+(4==n.getDay()),jv,e),"Tzom Gedaliah",vv)),a(new Av(new ie(ie.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",Sv));const i=ie.shortKislev(e)?new ie(1,_v,e):new ie(30,Fv,e);a(new Av(i,"Chag HaBanot",Iv));for(let t=2;t<=8;t++){const n=new ie(23+t,Fv,e);a(new Av(n,`Chanukah: ${t} Candles`,Iv|wv,{chanukahDay:t-1,emoji:"🕎"+Zv[t]}))}a(new Av(new ie(32,Fv,e),"Chanukah: 8th Day",Iv,{chanukahDay:8,emoji:"🕎"})),a(new Cv(new ie(10,_v,e),"Asara B'Tevet",vv));const s=r.abs();a(new Av(new ie(ie.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",Sv),new Av(new ie(ie.dayOnOrBefore(6,s-30)),"Shabbat Zachor",Sv),new Av(new ie(s-(2==r.getDay()?33:31)),"Ta'anit Esther",vv)),a(new Av(new ie(ie.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",Sv),new Av(new ie(ie.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",Sv),new Av(new ie(ie.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",Sv),new Av(6==r.prev().getDay()?r.onOrBefore(4):new ie(14,Rv,e),"Ta'anit Bechorot",vv)),a(new Av(new ie(ie.dayOnOrBefore(6,new ie(1,jv,e+1).abs()-4)),"Leil Selichot",Iv,{emoji:"🕍"})),0==r.getDay()&&a(new Av(new ie(16,$v,e),"Purim Meshulash",Iv)),ie.isLeapYear(e)&&(a(new Av(new ie(14,Bv,e),"Purim Katan",Iv,{emoji:"🎭️"})),a(new Av(new ie(15,Bv,e),"Shushan Purim Katan",Iv,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new ie(27,Bw,e);return t.getDay()===Fw?t=new ie(26,Bw,e):t.getDay()===Yw&&(t=new ie(28,Bw,e)),t}(e);c&&a(new Av(c,"Yom HaShoah",bv));const u=xw(e);u&&a(new Av(u,"Yom HaZikaron",bv,xv),new Av(u.next(),"Yom HaAtzma'ut",bv,xv));for(const t of gv)if(e>=t.firstYear){let n=new ie(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ie(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?bv:bv|yv,i=new Av(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let h,l=new ie(17,Pv,e);6==l.getDay()&&(l=new ie(18,Pv,e),h={observed:!0}),a(new Av(l,"Tzom Tammuz",vv,h));let f,d=new ie(9,Yv,e),g="Tish'a B'Av";6==d.getDay()&&(d=d.next(),f={observed:!0},g+=" (observed)");const y=d.abs();a(new Av(new ie(ie.dayOnOrBefore(6,y)),"Shabbat Chazon",Sv),new Av(d.prev(),"Erev Tish'a B'Av",Tv|Mv,f),new Av(d,g,Mv,f),new Av(new ie(ie.dayOnOrBefore(6,y+7)),"Shabbat Nachamu",Sv));const p=ie.monthsInYear(e);for(let t=1;t<=p;t++){const n=ie.getMonthName(t,e);30==(t==Rv?ie.daysInMonth(ie.monthsInYear(e-1),e-1):ie.daysInMonth(t-1,e))?(a(new Dv(new ie(1,t,e),n)),a(new Dv(new ie(30,t-1,e),n))):t!==jv&&a(new Dv(new ie(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===jv||n===m.CHESHVAN||n===_v)continue;let r=new ie(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=ie.getMonthName(n,e);a(new Lv(r,i))}const w=Tw(e,!1).find(15);a(new Av(w,"Shabbat Shirah",Sv));const v=function(e){const t=ie.isLeapYear(e),n=t?$v:Rv,r=t?20:1,o=ie.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(v){const e=new ie(v);a(new Av(e,"Birkat Hachamah",Iv,{emoji:"☀️"}))}return Uv.set(e,o),o}const Vv=new Map;class Kv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Vv.set(e,t)}static lookup(e,t){const n=Vv.get(e);return"function"==typeof n?n(t):null}}const Jv="5.3.2";var Gv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}};X.addLocale("ashkenazi",Gv),X.addLocale("a",Gv);var Wv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["אחרי השקיעה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};X.addLocale("he",Wv),X.addLocale("h",Wv);const qv=Wv.contexts[""],Xv={};for(const[e,t]of Object.entries(qv))Xv[e]=[X.hebrewStripNikkud(t[0])];const Qv={headers:Wv.headers,contexts:{"":Xv}};function eS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}X.addLocale("he-x-NoNikud",Qv);const tS={shacharit:!1,mincha:!1,allCongs:!1};function nS(e,t){return rS(e,t,!0)}function rS(e,t,n){const r=function(e,t){const n=ie.isLeapYear(e),r=12+n;let o=new ie(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new ie(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(eS(1,r).map((t=>new ie(1,t,e))),eS(1,r).filter((t=>30===ie.daysInMonth(t,e))).map((t=>new ie(30,t,e))),new ie(2,m.TISHREI,e),eS(1,ie.daysInMonth(m.NISAN,e)).map((t=>new ie(t,m.NISAN,e))),new ie(18,m.IYYAR,e),eS(1,8-(t?1:0)).map((t=>new ie(t,m.SIVAN,e))),o,new ie(15,m.AV,e),new ie(29,m.ELUL,e),eS(9,24-(t?1:0)).map((t=>new ie(t,m.TISHREI,e))),eS(25,33).map((t=>new ie(t,m.KISLEV,e))),new ie(15,m.SHVAT,e),new ie(14,m.ADAR_II,e),a,n?new ie(14,m.ADAR_I,e):[]),s=[].concat(eS(1,13).map((t=>new ie(t,m.SIVAN,e))),eS(20,31).map((t=>new ie(t,m.TISHREI,e))),new ie(14,m.IYYAR,e),e>=5708?xw(e).next():[],e>=5727?new ie(28,m.IYYAR,e):[]),c=[].concat(new ie(29,m.ELUL,e-1),new ie(9,m.TISHREI,e),new ie(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return tS;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=rS(new ie(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:tS}const oS=m.NISAN,aS=m.SIVAN,iS=m.ELUL,sS=m.TISHREI,cS=he.LIGHT_CANDLES,uS=he.YOM_TOV_ENDS,hS=he.CHUL_ONLY,lS=he.IL_ONLY,fS=he.LIGHT_CANDLES_TZEIS,dS=he.CHANUKAH_CANDLES,gS=he.MINOR_FAST,mS=he.SPECIAL_SHABBAT,yS=he.MODERN_HOLIDAY,pS=he.MAJOR_FAST,wS=he.ROSH_CHODESH,vS=he.PARSHA_HASHAVUA,SS=he.DAF_YOMI,bS=he.MISHNA_YOMI,MS=he.NACH_YOMI,IS=he.YERUSHALMI_YOMI,TS=he.OMER_COUNT,AS=he.SHABBAT_MEVARCHIM,ES=he.MINOR_HOLIDAY,DS=he.EREV,CS=he.CHOL_HAMOED,NS=he.YOM_KIPPUR_KATAN,OS=new Set,kS={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const HS={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},LS={281184:40,294801:30,293067:30};function RS(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(ie.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function PS(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&wS&&delete e.noRoshChodesh;t&yS&&delete e.noModern;t&gS&&delete e.noMinorFast;t&mS&&delete e.noSpecialShabbat;t&vS&&(e.sedrot=!0);t&(SS|bS|MS|IS)&&(e.dailyLearning=e.dailyLearning||{},t&SS&&(e.dailyLearning.dafYomi=!0),t&bS&&(e.dailyLearning.mishnaYomi=!0),t&MS&&(e.dailyLearning.nachYomi=!0),t&IS&&(e.dailyLearning.yerushalmi=1));t&TS&&(e.omer=!0);t&AS&&(e.shabbatMevarchim=!0);t&NS&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=wS|uS|gS|mS|yS|pS|ES|DS|CS|cS|fS|dS),e.candlelighting&&(r|=cS|fS|uS),e.noRoshChodesh&&(r&=~wS),e.noModern&&(r&=~yS),e.noMinorFast&&(r&=~gS),e.noSpecialShabbat&&(r&=~mS,r&=~AS),r|=n?lS:hS,e.sedrot&&(r|=vS),e.omer&&(r|=TS),e.shabbatMevarchim&&(r|=AS),e.yomKippurKatan&&(r|=NS),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=SS),t.mishnaYomi&&(r|=bS),t.nachYomi&&(r|=MS),t.yerushalmi&&(r|=IS)}return r}const YS=cS|fS|dS|uS,jS=new Ep(0,0,!1,"UTC");function FS(e){return e.observedInIsrael()}function _S(e){return e.observedInDiaspora()}class BS{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof Ep))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=LS[e];"number"==typeof r&&(n=r);const o=HS[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||jS,r=t.il=t.il||n.il||!1;if(t.mask=PS(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!X.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else X.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[RS(t.start),RS(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new ie).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?ie.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new ie(1,o||sS,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new ie(1,sS,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==kS[t]||OS.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),OS.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new ie(e),l=h.getFullYear();l!=u&&(u=l,i=zv(u),t.sedrot&&(a=Tw(u,r)),t.omer&&(s=ie.hebrew2abs(u,oS,16),c=ie.hebrew2abs(u,aS,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const p=i.get(h.toString())||[];for(const e of p)y=$S(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Aw(h,t.parsha,r,t.num))}const w=t.dailyLearning;if("object"==typeof w)for(const[e,t]of Object.entries(w))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Kv.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new Jp(h,e-s+1);if(t.candlelighting){const e=new Lp(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const v=h.getMonth(),S=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&v!=iS&&S>=23&&S<=29){const e=v==ie.monthsInYear(l)?oS:v+1;if(t.molad&&o.push(new zp(h,l,e,t)),t.shabbatMevarchim){const n=ie.getMonthName(e,l),r=new Zp(l,e).render(t.locale||"en",t);o.push(new Ov(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=Yp(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof Fp&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new de(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=B(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=A(r);let a=n.mm,i=n.dd;return a==F&&!o||a==_&&o?a=E(e):a!=R||30!=i||k(e)?a==P&&30==i&&H(e)?(a=Y,i=1):a==F&&30==i&&o&&!A(e)&&(a=L,i=1):(a=P,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new ie(n)}static getYahrzeit(e,t){const n=function(e,t){let n=B(t);if(!(e<=n.yy))return n.mm!=R||30!=n.dd||k(n.yy+1)?n.mm==P&&30==n.dd&&H(n.yy+1)?n=T(M(e,Y,1)-1):n.mm==_?n.mm=E(e):n.mm!=F||30!=n.dd||A(e)||(n.dd=30,n.mm=j):n=T(M(e,P,1)-1),n.mm!=R||30!=n.dd||k(e)?n.mm==P&&30==n.dd&&H(e)&&(n.mm=Y,n.dd=1):(n.mm=P,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new ie(n)}static getHolidaysForYear(e){return zv(e)}static getHolidaysForYearArray(e,t){const n=zv(e),r=ie.hebrew2abs(e,sS,1),o=ie.hebrew2abs(e+1,sS,1)-1;let a=[];const i=t?FS:_S;for(let e=r;e<=o;e++){const t=new ie(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=ie.isHDate(e)?e:new ie(e),r=n.toString(),o=zv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?FS:_S;return o.filter(a)}static reformatTimeStr(e,t,n){return Pp(e,t,n)}static version(){return Jv}static getSedra(e,t){return Tw(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===m.NISAN&&(15===o||16===o)&&e.getFlags()&he.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&he.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(BS.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return nS(e,t)}}function $S(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&NS||r.noModern&&s&yS)return e;const c=r.location,u=Boolean(s&pS),h=Boolean(s&gS);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new Lp(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=Bp(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Bp(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=Bp(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=Bp(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&YS){const t=n.getDate();if(e=Yp(n,t,r,o,a),s&dS&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new Lp(r,t.greg(),n.useElevation);return Bp(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Av(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&NS)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Cv,e.CandleLightingEvent=_p,e.DailyLearning=Kv,e.Event=fe,e.GeoLocation=vp,e.HDate=ie,e.HavdalahEvent=Fp,e.HebrewCalendar=BS,e.HebrewDateEvent=de,e.HolidayEvent=Av,e.Locale=X,e.Location=Ep,e.MevarchimChodeshEvent=Ov,e.Molad=Zp,e.MoladEvent=zp,e.NOAACalculator=bp,e.OmerEvent=Jp,e.ParshaEvent=Aw,e.RoshChodeshEvent=Dv,e.RoshHashanaEvent=kv,e.Sedra=aw,e.TimedEvent=jp,e.Zmanim=Lp,e.flags=he,e.gematriya=z,e.gematriyaStrToNum=V,e.months=m,e.parshiot=iw,e.version=Jv,e}({});
|