@hebcal/core 6.9.3 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -12
- package/dist/bundle.js +1205 -1006
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +13 -13
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/CalOptions.d.ts +35 -2
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/DailyLearning.js.map +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HebrewDateEvent.js.map +1 -1
- package/dist/esm/HolidayEvent.js +3 -3
- package/dist/esm/HolidayEvent.js.map +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js.map +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/ParshaEvent.js.map +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/TimedEvent.js.map +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js.map +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/ashkenazi.po.js.map +1 -1
- package/dist/esm/calendar.d.ts +11 -3
- package/dist/esm/calendar.js +50 -15
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.d.ts +8 -5
- package/dist/esm/candles.js +58 -18
- package/dist/esm/candles.js.map +1 -1
- package/dist/esm/cities.json.js +1 -1
- package/dist/esm/cities.json.js.map +1 -1
- package/dist/esm/event.d.ts +47 -0
- package/dist/esm/event.js +63 -4
- package/dist/esm/event.js.map +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/getStartAndEnd.js.map +1 -1
- package/dist/esm/hallel.js +3 -5
- package/dist/esm/hallel.js.map +1 -1
- package/dist/esm/he-x-NoNikud.po.js +1 -1
- package/dist/esm/he-x-NoNikud.po.js.map +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/he.po.js.map +1 -1
- package/dist/esm/hebcal.d.ts +2 -2
- package/dist/esm/hebcal.js +4 -5
- package/dist/esm/hebcal.js.map +1 -1
- package/dist/esm/holidays.js +2 -2
- package/dist/esm/holidays.js.map +1 -1
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/index.js +1 -1
- package/dist/esm/isAssurBemlacha.js +3 -5
- package/dist/esm/isAssurBemlacha.js.map +1 -1
- package/dist/esm/isAveilut.js +1 -1
- package/dist/esm/isAveilut.js.map +1 -1
- package/dist/esm/isFastDay.js +2 -8
- package/dist/esm/isFastDay.js.map +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +1 -1
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/modern.js.map +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/molad.js.map +1 -1
- package/dist/esm/moladBase.js +1 -1
- package/dist/esm/moladBase.js.map +1 -1
- package/dist/esm/moladDate.js +1 -1
- package/dist/esm/moladDate.js.map +1 -1
- package/dist/esm/omer.js +1 -1
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaName.js.map +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/parshaYear.js.map +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/reformatTimeStr.js.map +1 -1
- package/dist/esm/sedra.js +1 -1
- package/dist/esm/sedra.js.map +1 -1
- package/dist/esm/sefira.json.js +1 -1
- package/dist/esm/sefira.json.js.map +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/staticHolidays.js.map +1 -1
- package/dist/esm/string.js +1 -1
- package/dist/esm/string.js.map +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/tachanun.js.map +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/dist/esm/zmanim.js.map +1 -1
- package/package.json +10 -10
package/dist/bundle.min.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/*! @hebcal/core v6.
|
|
2
|
-
var hebcal=function(
|
|
3
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function a(e
|
|
1
|
+
/*! @hebcal/core v6.11.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
2
|
+
var hebcal=function(t){"use strict";const e="6.11.0",n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];
|
|
3
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function a(t,e){return t-e*Math.floor(t/e)}function o(t,e){return Math.floor(t/e)}function i(t){return!(t%4||!(t%100)&&t%400)}function s(t,e){return r[+i(e)][t]}function u(t){return"object"==typeof t&&Date.prototype.isPrototypeOf(t)}function c(t,e,n){const r=t-1;return 365*r+o(r,4)-o(r,100)+o(r,400)+o(367*e-362,12)+(e<=2?0:i(t)?-1:-2)+n}function h(t){if(!u(t))throw new TypeError(`not a Date: ${t}`);if(isNaN(t.getTime()))throw new RangeError("Invalid Date");return c(t.getFullYear(),t.getMonth()+1,t.getDate())}function l(t){if("number"!=typeof t||isNaN(t))throw new TypeError(`not a Number: ${t}`);const e=function(t){const e=t-1,n=o(e,146097),r=a(e,146097),i=o(r,36524),s=a(r,36524),u=o(s,1461),c=o(a(s,1461),365),h=400*n+100*i+4*u+c;return 4!==i&&4!==c?h+1:h}(t=Math.trunc(t)),n=o(12*(t-c(e,1,1)+(t<c(e,3,1)?0:i(e)?1:2))+373,367),r=t-c(e,n,1)+1,s=new Date(e,n-1,r);return e<100&&e>=0&&s.setFullYear(e),s}
|
|
4
4
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
5
5
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
6
|
-
function d(
|
|
7
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */r[1][2]=29,
|
|
8
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const L=
|
|
6
|
+
function d(t){if("string"!=typeof t)throw new TypeError(`bad nikkud str: ${t}`);return t.normalize().replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}
|
|
7
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */r[1][2]=29,t.greg=void 0,t.greg||(t.greg={}),t.greg.abs2greg=l,t.greg.daysInMonth=s,t.greg.greg2abs=h,t.greg.isDate=u,t.greg.isLeapYear=i;const f={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},m="Nisan",g=["",m,"Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],y=[[...g,"Adar",m],[...g,"Adar I","Adar II",m]],S=5e3,A=new Int32Array(2e3),p=-1373428;function I(t,e){if("number"!=typeof t||isNaN(t))throw new TypeError(`param '${e}' not a number: ${t}`)}function T(t,e,n){if(I(t,"year"),I(e,"month"),I(n,"day"),t<1)throw new RangeError(`hebrew2abs: invalid year ${t}`);let r=n;if(e<7){const n=b(t);for(let e=7;e<=n;e++)r+=H(e,t);for(let n=1;n<e;n++)r+=H(n,t)}else for(let n=7;n<e;n++)r+=H(n,t);return p+C(t)+r-1}function M(t){return p+C(t)}function v(t){if(I(t,"abs"),(t=Math.trunc(t))<=p)throw new RangeError(`abs2hebrew: ${t} is before epoch`);let e=Math.floor((t-p)/365.24682220597794);for(;M(e)<=t;)++e;--e;let n=t<T(e,1,1)?7:1;for(;t>T(e,n,H(n,e));)++n;return{yy:e,mm:n,dd:1+t-T(e,n,1)}}function w(t){return(1+7*t)%19<7}function b(t){return+w(t)+12}const E=[0,30,29,30,29,30,29,30,0,0,29,30,0,29];function H(t,e){const n=E[t];return 0!==n?n:12===t?w(e)?30:29:8===t?O(e)?30:29:_(e)?29:30}function N(t,e){if(I(t,"month"),I(e,"year"),t<1||t>14)throw new TypeError(`bad monthNum: ${t}`);return y[+w(e)][t]}function C(t){if(t>=S&&t<=6999){const e=t-S,n=A[e];if(0!==n)return n;const r=D(t);return A[e]=r,r}return D(t)}function D(t){const e=t-1,n=235*Math.floor(e/19)+e%19*12+Math.floor((e%19*7+1)/19),r=204+n%1080*793,a=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),o=r%1080+a%24*1080,i=1+29*n+Math.floor(a/24);let s=i;return(o>=19440||2==i%7&&o>=9924&&!w(t)||1==i%7&&o>=16789&&w(e))&&s++,s%7==0||s%7==3||s%7==5?s+1:s}function k(t){return C(t+1)-C(t)}function O(t){return k(t)%10==5}function _(t){return k(t)%10==3}function B(t){if("number"==typeof t){if(isNaN(t)||t<1||t>14)throw new RangeError(`bad monthName: ${t}`);return t}if("string"!=typeof t)throw new TypeError(`bad monthName: ${t}`);let e=t.trim().toLowerCase();switch(e=d(e).replace(/׳$/,""),e.startsWith("ב")&&(e=e.substring(1)),e[0]){case"n":case"נ":if("o"===e[1])break;return 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(e[1]){case"i":return 3;case"h":return 11}break;case"t":switch(e[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(e[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(e[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(e[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`bad monthName: ${t}`)}
|
|
8
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const L=f.NISAN,R=f.CHESHVAN,Y=f.KISLEV,Z=f.TEVET,P=f.SHVAT,U=f.ADAR_I,x=f.ADAR_II;function z(t){if(function(t){const e=t;return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t)){const e=t;return{yy:e.yy,mm:e.mm,dd:e.dd}}if(u(t)){return v(h(t))}return v(t)}
|
|
9
9
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
10
|
-
const
|
|
11
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function G(
|
|
12
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const W=new Map;const q=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function X(e
|
|
13
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var
|
|
10
|
+
const F={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},j={};for(const[t,e]of Object.entries(F))j[e]=t;function $(t){const e=[];for(;t>0;){if(15===t||16===t){e.push(9,t-9);break}let n,r=100;for(n=400;n>t;n-=r)n===r&&(r/=10);e.push(n),t-=n}return e}function V(t){const e=parseInt(t,10);if(!e||e<0)throw new TypeError(`invalid number: ${t}`);let n="";const r=Math.floor(e/1e3);if(r>0&&5!==r){const t=$(r);for(const e of t)n+=j[e];n+="׳"}const a=$(e%1e3);if(1===a.length)return n+j[a[0]]+"׳";for(let t=0;t<a.length;t++)t+1===a.length&&(n+="״"),n+=j[a[t]];return n}function K(t){if("string"!=typeof t)throw new TypeError(`bad gematriya str: ${t}`);let e=0;const n=t.indexOf("׳");if(-1!==n&&n!==t.length-1){e+=1e3*K(t.substring(0,n)),t=t.substring(n)}for(const n of t){const t=F[n];"number"==typeof t&&(e+=t)}return e}
|
|
11
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function G(t){return t<0?"-00"+G(-t):t<10?"000"+t:t<100?"00"+t:t<1e3?"0"+t:String(t)}function J(t){return t>=0&&t<10?"0"+t:String(t)}
|
|
12
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const W=new Map;const q=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function X(t,e){const n=function(t){const e=W.get(t);if(e)return e;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:t});return W.set(t,n),n}(t).format(e),r=q.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let a=r[4];return"24"===a&&(a="00"),r[3]=G(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${a}:${r[5]}:${r[6]}Z`}function Q(t,e){const n=X("UTC",e),r=X(t,e),a=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(a/1e3/60)}function tt(t){return G(t.getFullYear())+"-"+J(t.getMonth()+1)+"-"+J(t.getDate())}
|
|
13
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var et={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"},contexts:{"":{Adar:["אֲדָר"],"Adar I":["אֲדָר א׳"],"Adar II":["אֲדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָּיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tammuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};
|
|
14
14
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
15
15
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
16
|
-
const
|
|
16
|
+
const nt={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},rt={h:"he",a:"ashkenazi",s:"en","":"en"},at=new Map;function ot(t){if("string"!=typeof t)throw new TypeError(`Invalid locale name: ${t}`);return(t=rt[t]||t).toLowerCase()}function it(t){const e=ot(t),n=at.get(e);if(!n)throw new RangeError(`Locale '${t}' not found`);return n}class st{static lookupTranslation(t,e){const n=("string"==typeof e&&at.get(ot(e))||nt.contexts[""])[t];if(n?.length&&n[0].length)return n[0]}static gettext(t,e){const n=this.lookupTranslation(t,e);return void 0===n?t:n}static addLocale(t,e){t=ot(t);const n=e.contexts;if("object"!=typeof n||"object"!=typeof n[""])throw new TypeError(`Locale '${t}' invalid compact format`);at.set(t,n[""])}static addTranslation(t,e,n){const r=it(t);if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid id string: ${e}`);const a=Array.isArray(n);if(a){const t=n[0];if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation string: ${n}`);r[e]=a?n:[n]}static addTranslations(t,e){const n=it(t),r=e.contexts;if("object"!=typeof r||"object"!=typeof r[""])throw new TypeError(`Locale '${t}' invalid compact format`);Object.assign(n,r[""])}static getLocaleNames(){return Array.from(at.keys()).sort((t,e)=>t.localeCompare(e))}static hasLocale(t){const e=ot(t);return at.has(e)}static ordinal(t,e){const n=ot(e||"");return"en"===n||n.startsWith("ashkenazi")?function(t){const e=["th","st","nd","rd"],n=t%100;return t+(e[(n-20)%10]||e[n]||e[0])}(t):st.isHebrewLocale(n)?String(t):"es"===n?t+"º":t+"."}static hebrewStripNikkud(t){return d(t)}static copyLocaleNoNikud(t){const e=t.contexts[""],n={};for(const[t,r]of Object.entries(e))n[t]=[d(r[0])];return{headers:t.headers,contexts:{"":n}}}static isHebrewLocale(t){return"string"==typeof t&&(t=(t=rt[t]||t).toLowerCase()).startsWith("he")}}st.addLocale("en",nt),st.addLocale("ashkenazi",{headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"und-x-ashkenaz"},contexts:{"":{Tevet:["Teves"]}}}),st.addLocale("he",et);const ut=st.copyLocaleNoNikud(et);
|
|
17
17
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
18
|
-
function
|
|
19
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function Ae(e,t){const n=function(e,t){let n=z(t);if(!(e<=n.yy))return n.mm!==Y||30!==n.dd||O(n.yy+1)?n.mm===R&&30===n.dd&&_(n.yy+1)?n=v(T(e,Z,1)-1):n.mm===x?n.mm=b(e):n.mm!==U||30!==n.dd||w(e)||(n.dd=30,n.mm=P):n=v(T(e,R,1)-1),n.mm!==Y||30!==n.dd||O(e)?n.mm===R&&30===n.dd&&_(e)&&(n.mm=Z,n.dd=1):(n.mm=R,n.dd=1),n.yy=e,n}(e,t);return n&&new fe(n)}function pe(e,t){const n=function(e,t){const n=z(t),r=n.yy;if(e===r)return n;if(e<r)return;const a=w(r);let o=n.mm,i=n.dd;return o===U&&!a||o===x&&a?o=b(e):o!==Y||30!==i||O(e)?o===R&&30===i&&_(e)?(o=Z,i=1):o===U&&30===i&&a&&!w(e)&&(o=L,i=1):(o=R,i=1),{yy:e,mm:o,dd:i}}(e,t);return n&&new fe(n)}var Ie={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{Shabbat:["שַׁבָּת"],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":["פֶּסַח ח׳"],"Pesach Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד פֶּסַח"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבַּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבַּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבַּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבַּת נַחֲמוּ"],"Shabbat Parah":["שַׁבַּת פָּרָה"],"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)":["סֻכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Sukkot Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד סֻכּוֹת"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit BeHaB":["תַּעֲנִית בה״ב"],"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":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"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 Tammuz":["רֹאשׁ חוֹדֶשׁ תַּמּוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תְּחִילַּת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["(תִּשְׁעָה בְּאָב (נִדְחָה"],"Shabbat Mevarchim Chodesh":["שַׁבַּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבַּת שִׁירָה"],Lovingkindness:["חֶסֶד"],Might:["גְּבוּרָה"],Beauty:["תִּפְאֶרֶת"],Eternity:["נֶּצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],Yizkor:["יִזְכּוֹר"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן לְיִצְחָק רַבִּין"],"Jabotinsky Day":["יוֹם זַ׳בּוֹטִינְסְקִי"],"Herzl Day":["יוֹם הֶרְצְל"],"Ben-Gurion Day":["יוֹם בֶּן־גּוּרִיּוֹן"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִּרְכַּת הַחַמָּה"],"Birkat HaChamah":["בִּרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"Chag HaBanot":["חַג הַבָּנוֹת"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Alot HaShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחְמִיר"],Sunrise:["נֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (מג״א)"],"Kriat Shema, sof zeman (GRA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (גְּרָ״א)"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה (מג״א)"],"Tefilah, sof zeman (GRA)":["סוֹף זְמַן תְּפִלָּה (גְּרָ״א)"],"Chatzot HaLailah":["חֲצוֹת הַלַּיְלָה"],"Chatzot HaYom":["חֲצוֹת הַיּוֹם"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Sunset:["שְׁקִיעַת הַחַמָּה"],"Bein HaShemashot":["בֵּין הַשְּׁמָשׁוֹת"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],"Biur Chametz":["בִּעוּר חָמֵץ"],"Finish eating chametz":["סוֹף זְמַן אֲכִילַת חָמֵץ"]}}};se.addTranslations("he",Ie),se.addTranslations("ashkenazi",{headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"und-x-ashkenaz"},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"],"Pesach Shabbat Chol ha-Moed":["Pesach Shabbos Chol ha-Moed"],"Purim Katan":["Purim Koton"],"Rosh Hashana LaBehemot":["Rosh Hashana LaBeheimos"],"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)"],"Sukkot Shabbat Chol ha-Moed":["Sukkos Shabbos Chol ha-Moed"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit BeHaB":["Ta’anis BeHaB"],"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"],"Asara B'Tevet":["Asara B’Teves"],"Birkat Hachamah":["Birkas HaChamah"],"Birkat HaChamah":["Birkas HaChamah"],"Shushan Purim Katan":["Shushan Purim Koton"],"Alot HaShachar":["Alos HaShachar"],Misheyakir:["Misheyakir"],"Misheyakir Machmir":["Misheyakir Machmir"],Sunrise:["Sunrise"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Kriat Shema, sof zeman (GRA)":["Krias Shema, sof zman (GRA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Tefilah, sof zeman (GRA)":["Tefilah, sof zman (GRA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot HaYom":["Chatzos"],"Chatzot hayom":["Chatzos"],"Mincha Gedolah":["Mincha Gedolah"],"Mincha Ketanah":["Mincha Ketanah"],"Plag HaMincha":["Plag HaMincha"],Sunset:["Sunset"],"Bein HaShemashot":["Bein HaShemashos"],"Tzeit HaKochavim":["Tzeis HaKochavim"]}}});const Te=se.copyLocaleNoNikud(Ie);se.addTranslations("he-x-NoNikud",Te),se.addTranslations("he-x-NoNikud",{headers:{"plural-forms":"nplurals=2; plural=(n != 1);",language:"he-x-NoNikud"},contexts:{"":{Korach:["קורח"],Chukat:["חוקת"],"Erev Yom Kippur":["ערב יום כיפור"],"Yom Kippur":["יום כיפור"],"Yom Kippur Katan":["יום כיפור קטן"],"Pesach Shabbat Chol ha-Moed":["שבת חול המועד פסח"],"Sukkot Shabbat Chol ha-Moed":["שבת חול המועד סוכות"],"Erev Sukkot":["ערב סוכות"],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)":["סוכות ז׳ (הושענא רבה)"]}}});const Me={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,YIZKOR:134217728,BEHAB:268435456},ve=[[Me.MAJOR_FAST,"holiday","major","fast"],[Me.CHANUKAH_CANDLES,"holiday","minor"],[Me.HEBREW_DATE,"hebdate"],[Me.MINOR_FAST,"holiday","fast"],[Me.MINOR_HOLIDAY,"holiday","minor"],[Me.MODERN_HOLIDAY,"holiday","modern"],[Me.MOLAD,"molad"],[Me.OMER_COUNT,"omer"],[Me.PARSHA_HASHAVUA,"parashat"],[Me.ROSH_CHODESH,"roshchodesh"],[Me.SHABBAT_MEVARCHIM,"mevarchim"],[Me.SPECIAL_SHABBAT,"holiday","shabbat"],[Me.USER_EVENT,"user"],[Me.YIZKOR,"yizkor"]];class we{constructor(e,t,n=0,r){if(!fe.isHDate(e))throw new TypeError(`Invalid Event date: ${e}`);if("string"!=typeof t)throw new TypeError(`Invalid Event description: ${t}`);this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}greg(){return this.date.greg()}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return se.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Me.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Me.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}getCategories(){const e=this.getFlags();for(const t of ve){if(e&t[0])return t.slice(1)}return["unknown"]}}class be extends we{constructor(e){super(e,e.toString(),Me.HEBREW_DATE)}render(e){const t=e?.toLowerCase(),n=t??"en",r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=se.gettext(t.getMonthName(),e);return V(n)+" "+r}renderBrief(e){const t=e?.toLowerCase(),n=t??"en",r=this.getDate();if(r.getMonth()===m.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}const He=(e,t,n,r)=>Ee(e,t)+`; must be between ${n}-${r}`,Ee=(e,t)=>`Invalid ${e}: ${t}`;function Ne(e){return void 0===e?Object.create(null):_e(e)}function Ce(e,t="number"){if("bigint"==typeof e)throw new TypeError((e=>`Cannot convert bigint to ${e}`)(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(((e,t)=>`Non-finite ${e}: ${t}`)(t,e));return e}function De(e,t){return Math.trunc(Ce(e,t))||0}function ke(e,t){return function(e,t="number"){if(e<=0)throw new RangeError(((e,t)=>`Non-positive ${e}: ${t}`)(t,e));return e}(De(e,t),t)}function Oe(e){return null!==e&&("object"==typeof e||"function"==typeof e)}function _e(e){if(!Oe(e))throw new TypeError("Invalid object");return e}const Be=Ee,Le=e=>`Missing ${e}`,Ye=e=>"No valid fields: "+e.join(),Re=(e,t,n)=>Ee(e,t)+"; must be "+Object.keys(n).join(),Ze=e=>"Missing year"+(e?"/era/eraYear":""),Pe="Invalid leap month",Ue=e=>Ee("TimeZone",e),xe="Out-of-bounds date",ze=e=>`Cannot parse: ${e}`,je=e=>`Invalid substring: ${e}`,$e=e=>`Cannot format ${e}`,Fe="Mismatching types for formatting",Ve=function(e,t,n){return Math.min(Math.max(e,t),n)},Ke=Oe;function Ge(e){throw new RangeError(e)}function Je(e){throw new TypeError(e)}function We(e,t,n,r,a){return qe(t,((e,t)=>{const n=e[t];return void 0===n&&Je(Le(t)),n})(e,t),n,r,a)}function qe(e,t,n,r,a,o){const i=Ve(t,n,r);return a&&t!==i&&Ge(((e,t,n,r,a)=>a?He(e,a[t],a[n],a[r]):He(e,t,n,r))(e,t,n,r,o)),i}function Xe(e,t=Map){const n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);const a=e(t,...r);return n.set(t,a),a}}const Qe=(e,t)=>tt(e=>({value:e,configurable:1,writable:!t}),e),et=e=>({[Symbol.toStringTag]:{value:e,configurable:1}});function tt(e,t){const n={};for(const r in t)n[r]=e(t[r],r);return n}function nt(e,t){const n={};for(const r of e)n[r]=t;return n}function rt(e){const t={};for(const n of e)t[n]=e=>e[n];return t}function at(e,t,n=Object.create(null)){for(const r of e)n[r]=t[r];return n}function ot(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function it(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function st(e,...t){return(...n)=>e(...t,...n)}function ct(e){return e}function ut(){}function ht(e){return e[0].toUpperCase()+e.substring(1)}function lt(...e){return[].concat(...e).sort()}function dt(e){return new RegExp(`^${e}$`,"i")}function mt(e){return parseInt(e.padEnd(9,"0"))}function ft(e){return e&&"+"!==e?-1:1}function gt(e){return void 0===e?0:parseInt(e)}function yt(e,t){return String(t).padStart(e,"0")}const St=st(yt,2);function At(e,t){return Math.sign(e-t)}function pt(e,t){return e<t?-1:e>t?1:0}function It(e,t){const n=e/t;return e%t<0n?n-1n:n}function Tt(e,t){const n=It(e,t);return[n,e-n*t]}function Mt(e,t){return[Math.floor(e/t),vt(e,t)]}function vt(e,t){return(e%t+t)%t}function wt(e,t){return Math.trunc(e/t)||0}function bt(e,t){return e%t||0}function Ht(e,t=1){return t*(.5+e/5)}function Et(e){return.5===Math.abs(e%1)}const Nt="iso8601",Ct={bce:-1,ce:0};function Dt(e){const t=e.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,"");return"bc"===t||"b"===t?"bce":"ad"===t||"a"===t?"ce":t}const kt=void 0;function Ot(e){return e===kt?"iso8601":0===e?"gregory":e.id}const _t=/^M(\d{2})(L?)$/;function Bt(e){const t=_t.exec(e);return t||Ge((e=>`Invalid monthCode: ${e}`)(e)),[parseInt(t[1]),Boolean(t[2])]}function Lt(e,t){return"M"+St(e)+(t?"L":"")}function Yt(e,t,n){return e+(t||n&&e>=n?1:0)}const Rt={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Zt=Object.keys(Rt),Pt=1e3,Ut=1e6,xt=1e9,zt=6e10,jt=36e11,$t=864e11,Ft=[1,Pt,Ut,xt,zt,jt,$t],Vt=BigInt(Pt),Kt=BigInt(Ut),Gt=BigInt(xt),Jt=BigInt(zt),Wt=BigInt(jt),qt=BigInt($t);function Xt(e,t){const n=Number(e/qt),r=Number(e%qt);return n*($t/t)+(Math.trunc(r/t)+r%t/t)}const Qt=Zt.slice(0,6),en=rt(Qt),tn=["year"],nn=["day"],rn=["day","month","year"],an=["offset"],on=["timeZone"],sn=["era","eraYear"],cn=["era","eraYear","year"],un=["month","monthCode"],hn=["day","month","monthCode"],ln=lt(Qt),dn=lt(sn,tn),mn=lt(un,tn),fn=lt(sn,mn),gn=lt(["monthCode"],tn),yn=lt(sn,gn),Sn=lt(nn,["monthCode"]),An=lt(nn,mn),pn=lt(nn,sn,mn),In=lt(An,Qt),Tn=lt(pn,Qt),Mn=lt(An,Qt,an),vn=lt(pn,Qt,an),wn=lt(An,Qt,an,on),bn=lt(pn,Qt,an,on),Hn=lt(nn,gn),En=lt(nn,sn,gn),Nn=nt(Qt,0);function Cn(e){return kn(e,1),e}const Dn={hour:23,minute:59,second:59};function kn(e,t){const n={};for(const r of Qt)n[r]=qe(r,e[r],0,Dn[r]||999,t);return n}function On(e){return Bn(e)*xt+Ln(e)}function _n(e){return 1e3*Bn(e)+e.millisecond}function Bn(e){return 3600*e.hour+60*e.minute+e.second}function Ln(e){return e.millisecond*Ut+e.microsecond*Pt+e.nanosecond}function Yn(e){const[t,n]=Mt(e,$t);return[Rn(n),t]}function Rn(e){const[t,n]=Mt(e,Ut),[r,a]=Mt(n,Pt);return function(e,t=0,n=0){const[r,a]=Mt(e,36e5),[o,i]=Mt(a,6e4),[s,c]=Mt(i,1e3);return{hour:r,minute:o,second:s,millisecond:c,microsecond:t,nanosecond:n}}(t,r,a)}function Zn(e){const[t,n]=Tt(e,Gt);return[Number(t),Number(n)]}function Pn(e){return xn(e)+BigInt(On(e))}function Un(e){return zn(e)+_n(e)}function xn(e){return BigInt(jn(e))*qt}function zn(e){return 864e5*jn(e)}function jn(e){return $n(e.year,e.month,e.day)}function $n(e,t=1,n=1){const r=t-1;return e+=Math.floor(r/12),t=vt(r,12),Date.UTC(e%400-400,t,0)/864e5+146097*(wt(e,400)+1)+n}function Fn(e){const[t,n]=Tt(e,qt);return{...Vn(Number(t)),...Rn(Number(n))}}function Vn(e){const t=new Date(864e5*vt(e,146097));return{year:t.getUTCFullYear()+400*Math.floor(e/146097),month:t.getUTCMonth()+1,day:t.getUTCDate()}}function Kn(e,t){if(!t)return{year:1972,month:e}}function Gn(e,t){switch(t){case 2:return Jn(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Jn(e){return e%4==0&&(e%100!=0||e%400==0)}function Wn(e,t,n){return e+=wt(n,12),(t+=bt(n,12))<1?(e--,t+=12):t>12&&(e++,t-=12),{year:e,month:t}}function qn(e){return vt($n(e.year,e.month,e.day)+4,7)||7}function Xn(e){return $n(e.year,e.month,e.day)-$n(e.year)+1}function Qn(e){let t=e.year,n=Math.floor((Xn(e)-qn(e)+10)/7),r=er(t);return n<1?n=r=er(--t):n>r&&(n=1,r=er(++t)),{weekOfYear:n,yearOfWeek:t,Be:r}}function er(e){const t=qn({year:e,month:1,day:1});return 4===t||3===t&&Jn(e)?53:52}function tr(e){return nr(e),Cn(e)}function nr(e){return ar(e,1),e}function rr(e){return ot(rn,e,ar(e))}function ar(e,t){const{year:n}=e,r=We(e,"month",1,12,t);return{year:n,month:r,day:We(e,"day",1,Gn(n,r),t)}}function or(e,t){return e?e.ae(t):t}function ir(e,t,n){return e?e.L(t,n):function(e){return[e,0]}(n)}function sr(e,t){return 0===e?function({year:e}){return e<1?{era:"bce",eraYear:1-e}:{era:"ce",eraYear:e}}(t):e&&e.h?.(t)||{}}function cr(e,t,n,r){return e?e.de(t,n,r):function(e,t,n){return{year:e,month:t,day:n}}(t,n,r)}function ur(e,t){return e?e.j(t):12}function hr(e,t,n){return e?e.o(t,n):Gn(t,n)}function lr(e,t){const{year:n,month:r}=or(e,t),[a,o]=ir(e,n,r);return Lt(a,o)}function dr(e,t){const{year:n}=or(e,t);return e?e.q(n):Jn(n)}function mr(e,t){const{year:n}=or(e,t);return ur(e,n)}function fr(e,t){const{year:n,month:r}=or(e,t);return hr(e,n,r)}function gr(e,t){const{year:n}=or(e,t);return e?e.i(n):function(e){return Jn(e)?366:365}(n)}const yr=Zt.map(e=>e+"s"),Sr=rt(yr),Ar=lt(yr),pr=yr.slice(0,6),Ir=yr.slice(6),Tr=Ir.slice(1),Mr=nt(yr,0),vr=nt(pr,0),wr=st(it,yr);function br(e,t){return null==t&&Ge(Le(e)),t}const Hr=st(Er,"string");function Er(e,t,n=e){return typeof t!==e&&Je(Be(n,t)),t}function Nr(e,t="number"){return Number.isInteger(e)||Ge(((e,t)=>`Non-integer ${e}: ${t}`)(t,e)),e||0}function Cr(e){return"symbol"==typeof e&&Je("Cannot convert Symbol to string"),String(e)}function Dr(e,t){return Oe(e)?String(e):Hr(e,t)}function kr(e){return"boolean"==typeof e?BigInt(e?1:0):"string"==typeof e?BigInt(e):("bigint"!=typeof e&&Je(`Invalid bigint: ${e}`),e)}function Or(e,t){return Nr(Ce(e,t),t)}function _r(e,t){return"string"==typeof e?((e,t)=>{const n=Object.create(null);return n[e]=t,n})(t,e):_e(e)}const Br="smallestUnit",Lr={constrain:0,reject:1},Yr={compatible:0,reject:1,earlier:2,later:3},Rr={reject:0,use:1,prefer:2,ignore:3},Zr={auto:0,never:1,critical:2,always:3},Pr={auto:0,never:1,critical:2},Ur={auto:0,never:1},xr={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},zr=[Math.floor,e=>Et(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Et(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Et(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=>Et(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],jr={previous:-1,next:1};function $r(e){const t=e.roundingIncrement;return void 0===t?1:De(t,"roundingIncrement")}function Fr(e){let t=e.fractionalSecondDigits;if(void 0!==t){if("number"!=typeof t){if("auto"===Cr(t))return;Ge(Be("fractionalSecondDigits",t))}t=qe("fractionalSecondDigits",Math.floor(t),0,9,1)}return t}function Vr(e,t,n=0,r){let a=t[e];if(void 0===a)return r?n:void 0;if(a=Cr(a),"auto"===a)return r?n:null;let o=Rt[a];return void 0===o&&(o=yr.indexOf(a)),o<0&&Ge(Re(e,a,Rt)),o}function Kr(e,t,n,r=0){const a=n[e];if(void 0===a)return r;const o=Cr(a),i=t[o];return void 0===i&&Ge(Re(e,o,t)),i}const Gr=st(Vr,Br),Jr=st(Vr,"largestUnit"),Wr=st(Vr,"unit"),qr=st(Kr,"overflow",Lr),Xr=st(Kr,"disambiguation",Yr),Qr=st(Kr,"offset",Rr),ea=st(Kr,"calendarName",Zr),ta=st(Kr,"timeZoneName",Pr),na=st(Kr,"offset",Ur),ra=st(Kr,"roundingMode",xr),aa=st(Kr,"direction",jr);function oa(e,t,n,r){const a=r?$t:Ft[t+1];if(a){const n=Ft[t];a%((e=qe("roundingIncrement",e,1,a/n-(r?0:1),1))*n)&&Ge(Be("roundingIncrement",e))}else e=qe("roundingIncrement",e,1,n?10**9:1,1);return e}function ia(e,t,n,r){return null!=t&&qe(e,t,n,r,1,Zt),t}function sa(e,t){t>e&&Ge("smallestUnit > largestUnit")}function ca(e,t,n,r=9,a=0,o=4){t=Ne(t);let i=Jr(t,a),s=$r(t),c=ra(t,o),u=Gr(t,a,1);return i=ia("largestUnit",i,a,r),u=ia(Br,u,a,r),null==i?i=Math.max(n,u):sa(i,u),s=oa(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function ua(e,t=6,n){let r=$r(e=_r(e,Br));const a=ra(e,7);let o=Gr(e);return o=br(Br,o),o=ia(Br,o,0,t),r=oa(r,o,void 0,n),[o,r,a]}function ha(e,t){return at(rn,e,at(Qt,t))}function la(e){return void 0===e?0:qr(_e(e))}function da(e,t=0){e=Ne(e);const n=Xr(e),r=Qr(e,t);return[qr(e),r,n]}const ma=BigInt(1e8)*qt,fa=BigInt(-1e8)*qt,ga=fa-qt,ya=-3261848;function Sa(e){const t=12*e.year+e.month;return(t<ya||t>3309129)&&Ge(xe),e}function Aa(e,t=1){return Ia(xn(e),t),e}function pa(e){const t=xn(e);return Ia(t),t!==ga||On(e)||Ge(xe),e}function Ia(e,t=1){(e<(t?ga:fa)||e>ma)&&Ge(xe)}function Ta(e){return(e<fa||e>ma)&&Ge(xe),e}function Ma(e,t){return Ta(xn(e)+BigInt(On(e)-t))}function va(e){return{epochNanoseconds:e}}function wa(e,t,n){return{calendar:n,timeZone:t,epochNanoseconds:e}}function ba(e,t){return at(Qt,e,Ha(e,t))}function Ha(e,t){return at(rn,e,{calendar:t})}function Ea(e){return at(Qt,e)}function Na(e){return at(yr,e,{sign:zo(e)})}function Ca(e){return t=e.epochNanoseconds,Number(It(t,Kt));var t}function Da(e){return e.epochNanoseconds}function ka(e,t,n){const r=qo(t),[a,o]=((e,t)=>{const n=t((e=_r(e,"unit")).relativeTo);let r=Wr(e);return r=br("unit",r),[r,n]})(n,e),i=Math.max(a,r),s=o&&Lo(o);if(!o&&Yo(i,s))return Oa(t,a);if(o||Ge("Missing relativeTo"),!t.sign&&Yo(a,s))return 0;const[c,u,h]=_o(o,t,a);return Yo(a,s)?Oa(c,a):function(e,t,n,r){const a=zo(e)||1,o=_a(wr(n,e),n,a,r,t),i=o.ee,s=o.te,c=Number(s-i),u=Number(t-i);return o.pe[yr[n]]+u/c*a}(c,u,a,h)}function Oa(e,t){return Xt(Fo(e),Ft[t])}function _a(e,t,n,r,a){const o=yr[t];let i=e,s=0,c=Ba(i,o,n,r);return a&&!((e,t,n,r)=>r>0?pt(t,e)<=0&&pt(e,n)<=0:pt(n,e)<=0&&pt(e,t)<=0)(a,c.ee,c.te,Math.sign(n))&&(i={...e,[o]:e[o]+n},s=1,c=Ba(i,o,n,r)),{...c,pe:i,Ae:s}}function Ba(e,t,n,r){const a={...e,[t]:e[t]+n};return{ee:Oo(r,e),te:Oo(r,a),se:a}}function La(e,t,n){const r=n-t,a=e-t;if(!a)return 0;const o=a<0n?-a:a,i=r<0n?-r:r,s=pt(a,0n)===pt(r,0n)?1:-1;return pt(o,i)<=0?o===i?s:Ht(pt(2n*o,i),s):Number(a)/Number(r)}function Ya(e,t,n,r){let{epochNanoseconds:a}=e;const{timeZone:o,calendar:i}=e;if(0===t&&1===n)return{epochNanoseconds:a,timeZone:o,calendar:i};if(6===t){const t=ha(Xa(e),Nn),n=ha(ho(t,1),Nn),i=no(o,t),s=no(o,n);a=Ga(function(e,t,n){return La(e<n?e:n-1n,t,n)}(a,i,s),r)?s:i}else{const i=Xa(e),s=i.offsetNanoseconds;a=eo(o,Ra(i,Ua(t,n),r),s,2,0,1)}return{epochNanoseconds:a,timeZone:o,calendar:i}}function Ra(e,t,n){const[r,a]=Za(e,t,n),o=ha(ho(e,a),r);return pa(o),o}function Za(e,t,n){return Yn(Ka(On(e),t,n))}function Pa(e){return Ka(e,zt,7)}function Ua(e,t){return Ft[e]*t}function xa(e,t){return BigInt(Ft[e])*BigInt(t)}function za(e,t,n){const r=Math.min(qo(e),6);return Go($a(Fo(e),BigInt(t),n),r)}function ja(e,t,n,r,a,o,i,s){if(0===r&&1===a)return e;const c=zo(e)||1,u=Yo(r,s)?s&&r<6&&n>=6?Wa:Ja:qa;let[h,l,d]=u(c,e,t,n,r,a,o,i);return d&&7!==r&&(h=((e,t,n,r,a,o)=>{for(let i=r+1;i<=n;i++){if(7===i&&7!==n)continue;const r=wr(i,e);r[yr[i]]+=a;const s=pt(t,Oo(o,r));if(s&&s!==a)break;e=r}return e})(h,l,n,Math.max(6,r),c,i)),h}function $a(e,t,n){return Va(e,t,n,e/t%2n)}function Fa(e,t,n){const[r,a]=Tt(e,qt),o=r*qt;return o+Va(a,t,n,(o/t+a/t)%2n)}function Va(e,t,n,r){const a=e/t,o=e%t;let i=0;o&&(i=Ht(pt(2n*(o<0n?-o:o),t),Math.sign(Number(o))));const s=Ga(Number(r)+i,n);return(a-r+BigInt(s))*t}function Ka(e,t,n){return Ga(e/t,n)*t}function Ga(e,t){return zr[t](e)}function Ja(e,t,n,r,a,o,i){const s=Fo(t),c=$a(s,xa(a,o),i),u=c-s,h=Math.sign(Number(c/qt)-Number(s/qt))===e,l=Go(c,Math.min(r,6));return[{...t,...l},n+u,h]}function Wa(e,t,n,r,a,o,i,s){const c=Number(Vo(t)),u=Ua(a,o);let h=Ka(c,u,i);const l=_a({...t,...vr},6,e,s,n),d=l.ee,m=l.te,f=h-Number(m-d);let g=0;f&&Math.sign(f)!==e?n=d+BigInt(h):(g+=e,h=Ka(f,u,i),n=m+BigInt(h));const y=Jo(h);return[{...t,...y,days:t.days+g},n,Boolean(g)]}function qa(e,t,n,r,a,o,i,s){const c=yr[a],u=wr(a,t);7===a&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)});const h=wt(t[c],o)*o;u[c]=h;const l=_a(u,a,o*e,s,n),d=l.ee,m=l.te,f=La(n,d,m),g=l.pe[c],y=l.se[c],S=Ka(g+f*e*o,o,i),A=S===y;return u[c]=S,[u,A?m:d,l.Ae||A]}const Xa=Xe(Qa,WeakMap);function Qa(e){const{epochNanoseconds:t,timeZone:n}=e,r=n.B(t);return{...Fn(t+BigInt(r)),offsetNanoseconds:r}}function eo(e,t,n,r=0,a=0,o,i){if(void 0!==n&&1===r&&(1===r||i))return Ma(t,n);2!==r&&0!==r||Aa(t,0);const s=e.N(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const a=Pn(t);r&&(n=Pa(n));for(const t of e){let e=Number(a-t);if(r&&(e=Pa(e)),e===n)return t}})(s,t,n,o);if(void 0!==e)return e;0===r&&Ge("Invalid TimeZone offset")}return i?Pn(t):to(e,t,a,s)}function to(e,t,n=0,r=e.N(t)){if(1===r.length)return r[0];if(1===n&&Ge("Ambiguous offset"),r.length)return r[3===n?1:0];const a=Pn(t),o=((e,t)=>{const n=e.B(t-qt);return(e=>(e>$t&&Ge("Out-of-bounds TimeZone gap"),e))(e.B(t+qt)-n)})(e,a),i=Fn(a+BigInt(o*(2===n?-1:1)));return(r=e.N(i))[2===n?0:r.length-1]}function no(e,t){const n=e.N(t);if(n.length)return n[0];const r=Pn(t)-qt;return e.O(r,1)}function ro(e,t,n,r,a){const o=la(a);r.sign&&qo(r)<8&&Ge("Cannot use small units");const i=Aa(co(t,n));return co(t,lo(t,i,e?xo(r):r,o))}function ao(e,t){return Ta(e+(Wo(n=t)&&Ge("Cannot use large units"),Vo(n)));var n}function oo(e,t,n){const{calendar:r,epochNanoseconds:a,timeZone:o}=e,i=Vo(t);let s=a;if(Wo(t)){const a=Xa(e);s=to(o,ha(so(r,a,{...t,...vr},n),a))+i}else s+=i,la(n);return{...e,epochNanoseconds:Ta(s)}}function io(e,t,n,r){const[a,o]=uo(t,n);return pa(ha(so(e,t,{...n,...vr,days:n.days+o},r),a))}function so(e,t,n,r){if(n.years||n.months||n.weeks)return lo(e,t,n,la(r));la(r);const a=n.days+Number(Vo(n)/qt);return a?Aa(ho(t,a)):t}function co(e,t){return ho(t,1-or(e,t).day)}function uo(e,t){const n=Vo(t),r=Number(n/qt),a=Number(n%qt),[o,i]=Yn(On(e)+a);return[o,r+i]}function ho(e,t){return t?Vn(jn(e)+t):e}function lo(e,t,n,r){let a,{years:o,months:i,weeks:s,days:c}=n;if(c+=Number(Vo(n)/qt),o||i)a=mo(e,t,o,i,r);else{if(!s&&!c)return t;a=t}return(s||c)&&(a=ho(a,7*s+c)),Aa(a)}function mo(e,t,n,r,a){const o=or(e,t);let{year:i,month:s,day:c}=o;if(n){const[t,r]=ir(e,i,s);i+=n,s=fo(e,t,r,e?e.p(i):void 0,a),s=qe("month",s,1,ur(e,i),a)}if(r){const t=e?e.K(i,s,r):Wn(i,s,r);({year:i,month:s}=t)}return c=qe("day",c,1,hr(e,i,s),a),cr(e,i,s,c)}function fo(e,t,n,r,a){if(n){const n=e?e.l:void 0;return void 0!==r&&(n<0||r===t+1)?r:(1===a&&Ge(Pe),n<0?-n:t)}return Yt(t,0,r)}function go(e,t){return Ot(e)!==Ot(t)&&Ge("Mismatching Calendars"),e}function yo(e,t,n,r){const[a,o,i,s]=ca(e,r,3,5),c=No(t.epochNanoseconds,n.epochNanoseconds,a,o,i,s);return Na(e?xo(c):c)}function So(e,t,n,r,a){const[o,i,s,c]=ca(e,a,5),u=n.epochNanoseconds,h=r.epochNanoseconds;let l;if(pt(h,u))if(o<6)l=No(u,h,o,i,s,c);else{const e=(d=n.timeZone,m=r.timeZone,d.m!==m.m&&Ge("Mismatching TimeZones"),d);l=vo(e,t,n,r,o),l=ja(l,h,o,i,s,c,ko(t,e,n),1)}else l=Mr;var d,m;return Na(e?xo(l):l)}function Ao(e,t,n,r,a){const[o,i,s,c]=ca(e,a,6),u=Pn(n),h=Pn(r),l=pt(h,u);let d;return l?o<=6?d=No(u,h,o,i,s,c):(d=bo(t,n,r,l,o),d=ja(d,h,o,i,s,c,function(e,t){return{origin:t,ie:Pn(t),calendar:e,he:e=>Pn(ha(e,t))}}(t,n))):d=Mr,Na(e?xo(d):d)}function po(e,t,n,r,a){const[o,i,s,c]=ca(e,a,6,9,6);return To(e,t,n,r,o,i,s,c)}function Io(e,t,n,r,a){const[o,i,s,c]=ca(e,a,9,9,8),u=co(t,n),h=co(t,r);return Eo(u,h)?To(e,t,Aa(u),Aa(h),o,i,s,c,8):Na(Mr)}function To(e,t,n,r,a,o,i,s,c=6){const u=xn(n),h=xn(r);let l;return pt(h,u)?6===a?l=No(u,h,a,o,i,s):(l=Ho(t,n,r,a),o===c&&1===i||(l=ja(l,h,a,o,i,s,Do(t,n)))):l=Mr,Na(e?xo(l):l)}function Mo(e,t,n,r){const[a,o,i,s]=ca(e,r,5,5),c=Ka(On(n)-On(t),Ua(o,i),s),u={...Mr,...Jo(c,a)};return Na(e?xo(u):u)}function vo(e,t,n,r,a){const o=pt(r.epochNanoseconds,n.epochNanoseconds);if(!o)return Mr;if(a<6)return{...Mr,...Go(r.epochNanoseconds-n.epochNanoseconds,a)};if(!Eo(Xa(n),Xa(r)))return{...Mr,...Go(r.epochNanoseconds-n.epochNanoseconds,5)};const[i,s,c]=function(e,t,n,r){const a=Xa(t),o=Xa(n),i=n.epochNanoseconds;let s=0;const c=On(o)-On(a);Math.sign(c)===-r&&s++;const u=s+(r>0?1:0);for(;s<=u;s++){const t=ho(o,s*-r),n=to(e,ha(t,a));if(pt(i,n)!==-r)return[a,t,Number(i-n)]}}(e,n,r,o);return{...6===a?{...Mr,days:Co(i,s)}:Ho(t,i,s,a),...Jo(c)}}function wo(e,t,n,r){const a=Pn(t),o=Pn(n),i=pt(o,a);return i?r<=6?{...Mr,...Go(o-a,r)}:bo(e,t,n,i,r):Mr}function bo(e,t,n,r,a){let o=n,i=On(n)-On(t);return Math.sign(i)===-r&&(o=ho(n,-r),i+=$t*r),{...Ho(e,t,o,a),...Jo(i)}}function Ho(e,t,n,r){if(r<=7){const e=Co(t,n);return 7===r?{...Mr,weeks:wt(e,7),days:bt(e,7)}:{...Mr,days:e}}const a=or(e,t),o=or(e,n);if(8===r){const{year:r,month:i,day:s}=a,{year:c,month:u,day:h}=o,l=Math.sign(At(c,r)||At(u,i)||Co(t,n));let d=0,m=0;if(l){d=e?e._(r,i,c,u):function(e,t,n,r){return 12*(n-e)+r-t}(r,i,c,u);let a=mo(e,t,0,d,0);l*At(s,h)>0&&(d-=l,a=mo(e,t,0,d,0)),m=Co(a,n)}return{...Mr,months:d,days:m}}const{year:i,month:s,day:c}=a;let{year:u,month:h,day:l}=o,d=u-i,m=h-s,f=l-c;if(d||m){const t=Math.sign(d||m);let n=hr(e,u,h),r=0;if(Math.sign(l-c)===-t){const a=n,o=e?e.K(u,h,-t):Wn(u,h,-t);({year:u,month:h}=o),d=u-i,m=h-s,n=hr(e,u,h),r=t<0?-a:n}if(f=l-Math.min(c,n)+r,d){const[n,r]=ir(e,i,s),[a,o]=ir(e,u,h),c=e?e.l:void 0;if(m=void 0!==c&&r&&!o&&(c<0?t>0&&a===-c:t<0&&a===n)?0:a-n||Number(o)-Number(r),Math.sign(m)===-t){const a=t<0&&-ur(e,u);u-=t,d=u-i,m=h-fo(e,n,r,e?e.p(u):void 0,0)+(a||ur(e,u))}else if(e){const t=fo(e,n,r,e.p(u),0);m=e._(u,t,u,h)}}}return{...Mr,years:d,months:m,days:f}}function Eo(e,t){return At(e.year,t.year)||At(e.month,t.month)||At(e.day,t.day)}function No(e,t,n,r,a,o){return{...Mr,...Go($a(t-e,xa(r,a),o),n)}}function Co(e,t){return jn(t)-jn(e)}function Do(e,t){return{origin:t,ie:xn(t),calendar:e,he:xn}}function ko(e,t,n){const r=Xa(n);return{origin:r,ie:n.epochNanoseconds,calendar:e,he:e=>to(t,ha(e,r))}}function Oo(e,t){return Wo(t)?e.he(so(e.calendar,e.origin,t)):e.ie}function _o(e,t,n){const{calendar:r}=e;if(Lo(e)){const{timeZone:a}=e,o=oo(e,t);return[vo(a,r,e,o,n),o.epochNanoseconds,ko(r,a,e)]}const a=pa(ha(e,Nn)),o=io(r,a,t);return[wo(r,a,o,n),Pn(o),Do(r,e)]}function Bo(e,t){return Lo(e)?oo(e,t).epochNanoseconds:Pn(io(e.calendar,ha(e,Nn),t))}function Lo(e){return"timeZone"in e}function Yo(e,t){return e<=6-(t?1:0)}function Ro(e,t,n){const r={};for(let a=t;a>=0;a--){const t=Ft[a];r[n[a]]=wt(e,t),e=bt(e,t)}return r}const Zo=2**53;function Po(e,t,n,r,a){const o=e(Ne(a).relativeTo),i=Math.max(qo(n),qo(r));return Yo(i,o&&Lo(o))?function(e,t,n,r){return Na(jo(((e,t,n,r)=>{const a=Fo(e)+Fo(t)*BigInt(r?-1:1);return Number.isFinite(Number(a/qt))||Ge(xe),{...Mr,...Go(a,n)}})(t,n,r,e)))}(t,n,r,i):(o||Ge("Missing relativeTo"),t&&(r=xo(r)),Na(((e,t,n,r)=>{const{calendar:a}=e;if(Lo(e)){const{timeZone:o}=e,i=oo(e,t);return vo(o,a,e,oo(i,n),r)}const o=ha(e,Nn),i=io(a,o,t);return wo(a,o,io(a,i,n),r)})(o,n,r,i)))}function Uo(e){return Na(xo(e))}function xo(e){const t={};for(const n of yr)t[n]=-1*e[n]||0;return t}function zo(e,t=yr){let n=0;for(const r of t){const t=Math.sign(e[r]);t&&(n&&n!==t&&Ge("Cannot mix duration signs"),n=t)}return n}function jo(e){for(const t of Tr)qe(t,e[t],-4294967295,4294967295,1);const t=Fo(e);return $o(Number(t/Gt)),e}function $o(e){Number.isSafeInteger(e)||Ge("Out-of-bounds duration")}function Fo(e){return BigInt(e.days)*qt+Vo(e)}function Vo(e){return BigInt(e.hours)*Wt+BigInt(e.minutes)*Jt+Ko(e)}function Ko(e){return BigInt(e.seconds)*Gt+BigInt(e.milliseconds)*Kt+BigInt(e.microseconds)*Vt+BigInt(e.nanoseconds)}function Go(e,t=6){const n=Number(e/qt),r=Number(e%qt),a=Ft[t],o=t<=3?Number(e/BigInt(a)):n*($t/a)+wt(r,a);Number.isFinite(o)||Ge(xe),t<=3&&Math.abs(o)/(xt/Ft[t])>=Zo&&Ge(xe);const i=Ro(r,t,yr);return i[yr[t]]=o,i}function Jo(e,t=5){return Ro(e,t,yr)}function Wo(e){return Boolean(zo(e,Ir))}function qo(e){let t=9;for(;t>0&&!e[yr[t]];t--);return t}function Xo(e,t){return pt(e.epochNanoseconds,t.epochNanoseconds)}function Qo(e,t){return ei(e,t)||ti(e,t)}function ei(e,t){return At(jn(e),jn(t))}function ti(e,t){return At(On(e),On(t))}function ni(e){return 0===e?Ct:e?e.k:void 0}function ri(e,t,n=t){return ni(e)?n:t}function ai(e,t){const n=e||void 0,r=ni(e);let{era:a,eraYear:o,year:i}=t;if(void 0!==i&&(i=De(i,"year")),void 0!==o&&(o=De(o,"eraYear")),void 0!==a||void 0!==o){void 0!==a&&void 0!==o||Je("Mismatching era/eraYear"),r||Ge("Forbidden era/eraYear");const e=Dt(a),t=r[e];void 0===t&&Ge((e=>`Invalid era: ${e}`)(a));const s=n?.$?n.$(o,e,t):function(e,t){return(t+e)*(Math.sign(t)||1)||0}(o,t);void 0!==i&&i!==s&&Ge("Mismatching year/eraYear"),i=s}else void 0===i&&Je(Ze(r));return i}function oi(e,t,n,r,a){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((e,t,n,r,a=Bt(t))=>{const o=e?e.p(n):void 0,[i,s]=a;let c=Yt(i,s,o);if(s){const t=e?e.l:void 0;void 0===t&&Ge(Pe),t>0?(c>t&&Ge(Pe),o!==c&&(1===r&&Ge(Pe),c=Yt(i,0,o))):(c!==-t&&Ge(Pe),void 0===o&&1===r&&Ge(Pe))}return c})(e,i,n,r,a);void 0!==o&&o!==t&&Ge("Mismatching month/monthCode"),o=t,r=1}else void 0===o&&Je("Missing month/monthCode");return qe("month",o,1,ur(e,n),r)}function ii(e,t,n,r,a){return We(t,"day",1,hr(e,r,n),a)}function si(e,t){return kn(at(Qt,{...Nn,...e}),t)}const ci=dt("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");function ui(e){const t=hi(e);return void 0===t&&Ge(ze(e)),t}function hi(e,t){const n=ci.exec(e);if(n&&(e=>(e=>{"T"!==e[0]&&"t"!==e[0]||(e=e.slice(1));const t=e.search(/[.,]/),n=t<0?e:e.slice(0,t),r=n.split(":");return 1===r.length?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(2===r.length||3===r.length)&&r.every(e=>2===e.length&&/^\d{2}$/i.test(e))})(e.slice(1)))(n[0]))return((e,t)=>{const n=e[4]||e[5];t&&n&&Ge(je(n));return r=(gt(e[2])*jt+gt(e[3])*zt+gt(e[4])*xt+mt(e[5]||""))*ft(e[1]),Math.abs(r)>=$t&&Ge("Out-of-bounds offset"),r;var r})(n,t)}const li={era:Dr,month:ke,monthCode(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e){const n=e.toString;if("function"==typeof n)return Hr(n.call(e),t)}return Hr(e,t)},day:ke},di=nt(Qt,De),mi=nt(yr,Or),fi=Object.assign({},li,di),gi={offset:e=>ui(Dr(e)),...fi};function yi(e,t,n,r,a=!r){const o={};let i=0;for(const a of t){let t=e[a];if(void 0!==t){i=1;const e=n[a];e&&(t=e(t,a)),o[a]=t}else r&&r.includes(a)&&Je(Le(a))}return a&&!i&&Je(Ye(t)),o}function Si(e,t=Nn,n){const r=ha(e,t);return pa(r),ba(r,n)}function Ai(e,t,n){return Ii(e,t,Mi(e,t),la(n))}function pi(e,t,n){const r=Mi(e,t),a=n();return[Ii(e,t,r,a[0]),...a]}function Ii(e,t,n,r){const a=n[1],o=oi(e,t,a,r,n[0]);return Ha(Aa(cr(e,a,o,ii(e,t,o,a,r))),e)}function Ti(e){if(void 0!==e.monthCode)return Bt(e.monthCode)}function Mi(e,t){const n=ni(e);return void 0!==t.year||void 0!==t.era&&void 0!==t.eraYear||Je(Ze(n)),void 0===t.monthCode&&void 0===t.month&&Je("Missing month/monthCode"),void 0===t.day&&Je(Le("day")),[Ti(t),ai(e,t)]}function vi(e,t,n){const r=ni(e);void 0!==t.year||void 0!==t.era&&void 0!==t.eraYear||Je(Ze(r)),void 0===t.monthCode&&void 0===t.month&&Je("Missing month/monthCode");const a=Ti(t),o=ai(e,t);return Ha(Sa(cr(e,o,oi(e,t,o,la(n),a),1)),e)}function wi(e,t,n){const r=e===kt,a=ni(e);void 0===t.day&&Je(Le("day")),r||void 0===t.month||void 0!==t.year||void 0!==t.era&&void 0!==t.eraYear||Je(Ze(a));const o=Ti(t);let i=void 0!==t.eraYear||void 0!==t.year?ai(e,t):void 0;const s=la(n);let c,u,h;if(void 0===i&&r&&(i=1972),void 0!==i){r||Aa(cr(e,i,1,1));const n=oi(e,t,i,s,o);c=ii(e,t,n,i,s),[u,h]=ir(e,i,n)}else{void 0===t.monthCode&&Je("Missing month/monthCode"),[u,h]=o;const n=e?e.ne:1972;if(void 0!==n)c=ii(e,t,oi(e,t,n,s,o),n,s);else{const n=0===s&&e?e.fe?.(u,h,t.day):void 0;c=void 0!==n?n:t.day}}h&&((e&&e.U?.[u])??1/0)<t.day&&(1===s&&Ge(Pe),h=0,c=Ve(t.day,1,(e&&e.R)??1/0));let l=e?e.u(u,Boolean(h),c):Kn(u,Boolean(h));for(;!l&&0===s&&c>1;)c--,l=e?e.u(u,Boolean(h),c):Kn(u,Boolean(h));l||Ge("Cannot guess year");const{year:d,month:m}=l;return Ha(Aa(cr(e,d,m,c)),e)}const bi=Intl.DateTimeFormat;const Hi={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},Ei=-388152e4;function Ni(e,t=4){const n=Fr(e),r=ra(e,4),a=Gr(e);return[r,...ki(ia(Br,a,0,t),n)]}function Ci(e){return ea(Ne(e))}function Di(e,t){return Ni(Ne(e),t)}function ki(e,t){return null!=e?[Ft[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function Oi(e,t,n){const[r,a,o,i]=(e=>{const t=Fr(e=Ne(e)),n=ra(e,4),r=Gr(e);return[e.timeZone,n,...ki(ia(Br,r,0,4),t)]})(n),s=void 0!==r;return((e,t,n,r,a,o)=>{n=Fa(n,BigInt(a),r);const i=t.B(n);return ji(Fn(n+BigInt(i)),o)+(e?Gi(Pa(i)):"Z")})(s,is(s?e(r):"UTC"),t.epochNanoseconds,a,o,i)}function _i(e,t){const n=(e=>{e=Ne(e);const t=ea(e),n=Fr(e),r=na(e),a=ra(e,4),o=Gr(e);return[t,ta(e),r,a,...ki(ia(Br,o,0,4),n)]})(t);return((e,t,n,r,a,o,i,s,c,u)=>{r=Fa(r,BigInt(c),s);const h=n.B(r);return ji(Fn(r+BigInt(h)),u)+Gi(Pa(h),i)+function(e,t){return 1!==t?"["+(2===t?"!":"")+e+"]":""}(t,o)+Ji(e,a)})(e.calendar,e.timeZone.id,e.timeZone,e.epochNanoseconds,...n)}function Bi(e,t){const n=(e=>(e=Ne(e),[ea(e),...Ni(e)]))(t);return((e,t,n,r,a,o)=>ji(Ra(t,a,r),o)+Ji(e,n))(e.calendar,e,...n)}function Li(e,t){return n=e.calendar,r=e,a=Ci(t),$i(r)+Ji(n,a);var n,r,a}function Yi(e,t){return Zi(e.calendar,Fi,e,Ci(t))}function Ri(e,t){return Zi(e.calendar,Vi,e,Ci(t))}function Zi(e,t,n,r){const a=r>1||0===r&&e!==kt;return 1===r?e===kt?t(n):$i(n):a?$i(n)+Wi(Ot(e),2===r):t(n)}function Pi(e,t){return((e,t,n,r)=>Ki(Za(e,n,t)[0],r))(e,...Di(t))}function Ui(e,t){const[n,r,a]=Di(t,3);return r>1&&jo(e={...e,...za(e,r,n)}),function(e,t){const{sign:n}=e,r=-1===n?xo(e):e,{hours:a,minutes:o}=r,i=Ko(r),s=Number(i/Gt),c=Number(i%Gt);$o(s);const u=Xi(c,t),h=t>=0||!n||u;return(n<0?"-":"")+"P"+xi({Y:zi(r.years),M:zi(r.months),W:zi(r.weeks),D:zi(r.days)})+(a||o||s||h?"T"+xi({H:zi(a),M:zi(o),S:zi(s,h)+u}):"")}(e,a)}function xi(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function zi(e,t){if(!e&&!t)return"";const n=Object.create(null);return n.useGrouping=0,e.toLocaleString("fullwide",n)}function ji(e,t){return $i(e)+"T"+Ki(e,t)}function $i(e){return Fi(e)+"-"+St(e.day)}function Fi(e){const{year:t}=e;return(t<0||t>9999?Qi(t)+yt(6,Math.abs(t)):yt(4,t))+"-"+St(e.month)}function Vi(e){return St(e.month)+"-"+St(e.day)}function Ki(e,t){const n=[St(e.hour),St(e.minute)];return-1!==t&&n.push(St(e.second)+((e,t,n,r)=>Xi(e*Ut+t*Pt+n,r))(e.millisecond,e.microsecond,e.nanosecond,t)),n.join(":")}function Gi(e,t=0){if(1===t)return"";const[n,r]=Mt(Math.abs(e),jt),[a,o]=Mt(r,zt),[i,s]=Mt(o,xt);return Qi(e)+St(n)+":"+St(a)+(i||s?":"+St(i)+Xi(s):"")}function Ji(e,t){return t>1||0===t&&e!==kt?Wi(Ot(e),2===t):""}function Wi(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}const qi=/0+$/;function Xi(e,t){let n=yt(9,e);return n=void 0===t?n.replace(qi,""):n.slice(0,t),n?"."+n:""}function Qi(e){return e<0?"-":"+"}const es=/^(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$/,ts=/[^\w\/:+-]+/;function ns(e){return rs(e).id}function rs(e){const t=e.toUpperCase(),n=(e=>{const t=hi(e,1);if(void 0!==t)return{id:Gi(t),X:t,m:t}})(t);if(n)return{kind:"fixed",...n};const r="UTC"===t?"UTC":(e=>(ts.test(e)&&Ge(Ue(e)),es.test(e)&&Ge("Forbidden ICU TimeZone"),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?ht(e).replace(/island|noronha|murdo|rivadavia|urville/,ht):e)).join("/")))(e);return as(r)}const as=Xe(e=>{if("UTC"===e)return{kind:"utc",id:e,m:e};const t=e.toUpperCase(),n=os(t);return{kind:"named",id:e,format:n,m:n.resolvedOptions().timeZone}}),os=Xe(e=>new bi("en-u-hc-h23",{calendar:"iso8601",timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}));function is(e){const t=rs(e);return ss(t.id,t)}const ss=Xe((e,t)=>"named"===t.kind?new us(e,t.m,t.format):new cs(e,t.m,"fixed"===t.kind?t.X:0));class cs{constructor(e,t,n){this.id=e,this.m=t,this.X=n}B(){return this.X}N(e){return[Ma(e,this.X)]}O(){}}class us{constructor(e,t,n){this.id=e,this.m=t,this.ke=((e,t)=>{const n=Xe(e),r=Xe(ls),a=86400*t;function o(e){const[t,o]=ds(e,a),s=ms(t),c=ms(o),u=n(s),h=n(c);return u===h?u:i(r(s,c),u,h,e)}function i(t,n,r,a){let o,i;for(;(void 0===a||void 0===(o=a<t[0]?n:a>=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 o}return{xe(e){const t=o(e-86400),n=o(e+86400),r=e-t,a=e-n;if(t===n)return[r];const i=o(r);return i===o(a)?[e-i]:t>n?[r,a]:[]},we:o,O:function e(t,o){if(o>0&&t>=864e10)return;if(o<0){if(t<=Ei)return;const n=hs()+94867200;if(t>n)return e(n,-1)}const s=o>0?Math.max(t,Ei):t;let[c,u]=ds(s,a);const h=a*o,l=o>0?Math.max(t,hs())+94867200:Ei,d=()=>o<0?u>l:c<l;for(;d();){const e=ms(c),a=ms(u),s=n(e),l=n(a);if(s!==l){const n=r(e,a);i(n,s,l);const c=n[0];if((At(c,t)||1)===o)return c}c+=h,u+=h}}}})((e=>t=>{const n=function(e,t){t<-864e13&&Ge(xe);const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}(e,1e3*t);return 86400*$n((e=>{const t=e.relatedYear;if(void 0!==t)return parseInt(t);const n=parseInt(e.year);return void 0!==e.era&&"bce"===Dt(e.era)?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-t})(n),(e=>{const t=e.split("/").pop();return Hi[t]||60})(e))}B(e){return this.ke.we((e=>Zn(e)[0])(e))*xt}N(e){const t=86400*jn(e)+Bn(e),n=Ln(e);return this.ke.xe(t).map(e=>Ta(BigInt(e)*Gt+BigInt(n)))}O(e,t){const[n,r]=Zn(e),a=this.ke.O(n+(t>0||r?1:0),t);if(void 0!==a)return BigInt(a)*Gt}}function hs(){return Math.floor(Date.now()/1e3)}function ls(e,t){return[e,t]}function ds(e,t){const n=Math.floor(e/t)*t;return[n,n+t]}function ms(e){return Ve(e,-1e10,864e10)}function fs(e){Ge(ze(e))}function gs(e){"iso8601"!==e.calendarId&&Ge(je(e.calendarId))}function ys(e){const t=ks(e);return t&&!t.C||fs(e),t}function Ss(e,t,n){return t&&"iso8601"===e.calendarId?(nr(e),e.re&&Cn(e),Ms(t(e),n)):e.re?Ts(e,n):Ms(e,n)}function As(e){const t=12*e.year+e.month===ya?20:1;return{...e,day:t}}function ps(e){return{...e,year:1972}}function Is(e,t,n){const r=is(ns(e.timeZoneId));let a;if(tr(e),e.re){const t=e.offset?ui(e.offset):void 0,[,i,s]=da(n);a=eo(r,e,t,i,s,!(r.X||void 0===e.offset||(o=e.offset,o.replace(/\D/g,"").length>4)),e.C)}else da(n),a=no(r,e);var o;return Ta(a),wa(a,r,t(e.calendarId))}function Ts(e,t){return tr(e),pa(e),{...ha(e,e),calendar:t(e.calendarId)}}function Ms(e,t){return nr(e),Aa(e),{calendar:t(e.calendarId),year:e.year,month:e.month,day:e.day}}function vs(e){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${e}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}const ws="(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]"+vs(8)+"(Z|([+-])"+vs(15)+")?)?",bs=dt("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),Hs=dt("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),Es=dt(ws+"((?:\\[(!?)([^\\]]*)\\]){0,9})"),Ns=dt("T?"+vs(2)+`(([+-])${vs(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),Cs=new RegExp("\\[(!?)([^\\]]*)\\]","g"),Ds=dt("([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?!$)(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?");function ks(e){const t=Es.exec(e);return t?(e=>{const t=e[12],n="Z"===(t||"").toUpperCase();return{year:Ys(e),month:parseInt(e[5]),day:parseInt(e[6]),...Ls(e,7),...Rs(e[19]),re:Boolean(e[7]),C:n,offset:n?void 0:t}})(t):void 0}function Os(e){const t=bs.exec(e);if(t)return(e=>({year:Ys(e),month:parseInt(e[4]),day:1,...Rs(e[5])}))(t)}function _s(e){const t=Hs.exec(e);return t?(e=>({year:1972,month:parseInt(e[1]),day:parseInt(e[2]),...Rs(e[3])}))(t):void 0}function Bs(e){const t=Ns.exec(e);if(t)return t[6]&&ui(t[6]),t}function Ls(e,t){const n=gt(e[t+3]);return{...Yn(mt(e[t+4]||""))[0],hour:gt(e[t]),minute:gt(e[t+2]),second:60===n?59:n}}function Ys(e){const t=ft(e[1]),n=parseInt(e[2]||e[3]);return t<0&&!n&&Ge(je(-0)),t*n}function Rs(e){let t,n;const r=[];return e.replace(Cs,(e,a,o)=>{const i=Boolean(a),[s,c]=o.split("=").reverse();return c?"u-ca"===c?(r.push(s.toLowerCase()),t||(t=i)):(i||/[A-Z]/.test(c))&&Ge(je(e)):(n&&Ge(je(e)),n=s),""}),r.length>1&&t&&Ge(je(e)),{timeZoneId:n,calendarId:r[0]||"iso8601"}}function Zs(e,t,n){const r=Object.assign(Object.create(null),t);return Ps(r,n,un),ni(e)&&(Ps(r,n,cn),e&&e.ge&&Ps(r,n,hn,sn)),r}function Ps(e,t,n,r){let a=0;const o=[];for(const e of n)void 0!==t[e]?a=1:o.push(e);if(Object.assign(e,t),a)for(const t of r||o)delete e[t]}function Us(e,t,n){const[r,a]=ir(e,t,n);return Lt(r,a)}function xs(e){return ba(Xa(e),e.calendar)}function zs(e){return Ha(Xa(e),e.calendar)}function js(e){return Ea(Xa(e))}function $s(e,t,n){const r=ri(e,Hn,En);let a=Zs(e,t,n);return a=yi(a,r,li,[]),Ai(e,a)}function Fs(e){return e.timeZone="UTC",["full","long"].includes(e.timeStyle)&&(e.timeStyle="medium"),e}function Vs(e,t,n){const r=e.resolvedOptions().calendar;!n&&t.calendar===kt||Ot(t.calendar)===r||Ge("Mismatching Calendars")}function Ks(e,t,n,r,a){const o=new Set(e),i=new Set(t),s=new Set(n);return(e,t)=>{let n,c;const u={},h={},l={};let d=0,m=0;for(const t of Object.keys(e)){const r=e[t];void 0===r||s.has(t)||(o.has(t)?"dateStyle"===t?n=r:"timeStyle"===t?c=r:u[t]=r:"era"===t?h[t]=r:i.has(t)?"dateStyle"===t||"timeStyle"===t?m=1:d=1:l[t]=r)}const f=void 0!==n,g=void 0!==c,y=f||g,S=Object.keys(u).length>0,A=d||m,p=S||f||g,I=Object.keys(h).length>0;(!t&&A||t&&A&&!p||y&&(S||I||d))&&Je("Invalid formatting options");const T={};return y||p||Object.assign(T,r),Object.assign(T,u,h,l),f&&(a?Object.assign(T,a[n]):T.dateStyle=n),g&&(T.timeStyle=c),T}}const Gs={year:"numeric",month:"numeric",day:"numeric"},Js={hour:"numeric",minute:"numeric",second:"numeric"},Ws=Object.assign({},Gs,Js),qs=["weekday","year","month","day","dateStyle"],Xs=["dayPeriod","hour","minute","second","fractionalSecondDigits","timeStyle"],Qs=qs.concat(Xs),ec=["weekday","day"].concat(Xs),tc=["weekday","year"].concat(Xs),nc=Ks(Qs,[],[],Ws),rc=Ks(Qs,[],[],{...Ws,timeZoneName:"short"}),ac=Ks(Qs,[],["timeZoneName"],Ws),oc=Ks(qs,Xs,["timeZoneName"],Gs),ic=Ks(Xs,qs,["timeZoneName","era"],Js),sc=Ks(["year","month","dateStyle"],ec,["timeZoneName"],{year:"numeric",month:"numeric"},{full:{year:"numeric",month:"long"},long:{year:"numeric",month:"long"},medium:{year:"numeric",month:"short"},short:{year:"2-digit",month:"numeric"}}),cc=Ks(["month","day","dateStyle"],tc,["timeZoneName","era"],{month:"numeric",day:"numeric"},{full:{month:"long",day:"numeric"},long:{month:"long",day:"numeric"},medium:{month:"short",day:"numeric"},short:{month:"numeric",day:"numeric"}});function uc(e){const t=hc(),n=e.B(t);return Fn(t+BigInt(n))}function hc(){return BigInt(Date.now())*Kt}function lc(){return(new bi).resolvedOptions().timeZone}const dc=globalThis.Temporal,mc="PlainYearMonth",fc="PlainMonthDay",gc="PlainDate",yc="PlainDateTime",Sc="PlainTime",Ac="ZonedDateTime",pc="Instant",Ic="Duration";function Tc(e,t,n,...r){return Object.defineProperties(t,Qe({name:e},1)),Object.defineProperties(t.prototype,et("Temporal."+e)),Object.defineProperties(t.prototype,tt(e=>({get(){return e(n(this))},configurable:1}),Object.assign({},...r))),t}const Mc="noop"===ut.name?e=>{Object.defineProperty(e,"_str_",{value:e.toJSON()})}:ut;function vc(){Je("Invalid calling context")}function wc(){Je("Cannot use valueOf")}const bc={era:e=>sr(e.calendar,e).era,eraYear:e=>sr(e.calendar,e).eraYear,year:e=>or(e.calendar,e).year,month:e=>or(e.calendar,e).month,monthCode:e=>lr(e.calendar,e)},Hc={era:e=>sr(e.calendar,e).era,eraYear:e=>sr(e.calendar,e).eraYear,year:e=>or(e.calendar,e).year,month:e=>or(e.calendar,e).month,monthCode:e=>lr(e.calendar,e),day:e=>or(e.calendar,e).day},Ec={monthCode:e=>lr(e.calendar,e),day:e=>or(e.calendar,e).day},Nc={daysInMonth:e=>fr(e.calendar,e),daysInYear:e=>gr(e.calendar,e),monthsInYear:e=>mr(e.calendar,e),inLeapYear:e=>dr(e.calendar,e)},Cc={dayOfWeek:e=>qn(e),dayOfYear:e=>function(e,t){if(!e)return Xn(t);const{year:n}=or(e,t),r=cr(e,n,1,1);return jn(t)-jn(r)+1}(e.calendar,e),weekOfYear:e=>function(e,t){return e===kt?Qn(t).weekOfYear:void 0}(e.calendar,e),yearOfWeek:e=>function(e,t){return e===kt?Qn(t).yearOfWeek:void 0}(e.calendar,e),daysInWeek:()=>7,daysInMonth:e=>fr(e.calendar,e),daysInYear:e=>gr(e.calendar,e),monthsInYear:e=>mr(e.calendar,e),inLeapYear:e=>dr(e.calendar,e)};function Dc(e){return rt(Object.keys(e))}function kc(e){return function(e,t=ct){const n=new WeakMap;function r(e){const t=n.get(e);return t||Je("Invalid calling context"),t}class a{constructor(r,a=Object.create(null)){const o=t(a),i=[],s=new Proxy(Object.create(null),{get(e,t){const n=o[t];return void 0!==n&&i.push(t),n}}),c=new bi(r,s),u=c.resolvedOptions(),h=at(i,u);n.set(this,{Z:e({t:c,ze:u.locale,F:h,Ce:o}),t:c})}get format(){const e=r(this);return e.qe||(e.qe=t=>{const[n,...r]=e.Z.A(t);return n.format(...r)})}formatToParts(e){const{Z:t}=r(this),[n,...a]=t.A(e);return n.formatToParts(...a)}resolvedOptions(){return r(this).t.resolvedOptions()}}const{prototype:o}=a;function i(e,t){return new a(e,t)}bi.prototype.formatRange&&Object.defineProperties(o,Qe({formatRange(e,t){const{Z:n}=r(this),[a,o,i]=n.v(e,t);return a.formatRange(o,i)},formatRangeToParts(e,t){const{Z:n}=r(this),[a,o,i]=n.v(e,t);return a.formatRangeToParts(o,i)}}));const s=Object.getOwnPropertyDescriptors(bi);return s.prototype.value=o,Object.defineProperties(i,s),o.constructor=i,Object.defineProperties(o,et("Intl.DateTimeFormat")),i}(t=>{const n=Xe(e=>{let n;switch(e){case pc:n=nc(t.F,1);break;case yc:n=Fs(ac(t.F,1));break;case gc:n=Fs(oc(t.F,1));break;case Sc:n=Fs(ic(t.F,1));break;case mc:n=Fs(sc(t.F,1));break;case fc:n=Fs(cc(t.F,1));break;default:Je($e(e))}return new bi(t.ze,n)});return{A(r){if(void 0===r)return[t.t];const a=e(r);if(!a)return[t.t,Number(r)];const[o,i]=a,s=n(o);return Oc(s,o,i),[s,_c(o,i)]},v(r,a){void 0!==r&&void 0!==a||Je(Fe);const o=e(r),i=o?void 0:Number(r),s=e(a),c=s?void 0:Number(a);if(!o&&!s)return[t.t,i,c];o&&s||Je(Fe);const[u,h]=o,[l,d]=s;u!==l&&Je(Fe);const m=n(u);return Oc(m,u,h),Oc(m,u,d),[m,_c(u,h),_c(u,d)]}}})}function Oc(e,t,n){switch(t){case pc:case Sc:return;case yc:case gc:return void Vs(e,n);case mc:case fc:return void Vs(e,n,1);default:Je($e(t))}}function _c(e,t){switch(e){case pc:return Ca(t);case yc:return Un(t);case gc:case mc:case fc:return zn(t);case Sc:return _n(t);default:Je($e(e))}}function Bc(e){const t=Hr(e).toLowerCase();return t===Nt?kt:"gregory"===t?0:void Ge((n=e,r="temporal-polyfill/full",`Unknown calendar ${n}; might need ${r}`));var n,r}function Lc(e=Nt){return Bc(e)}Dc(Nc),Dc(Cc);const Yc=new WeakMap,Rc=Tc(Ac,class{constructor(e,t,n=void 0){jc(this,wa(Ta(kr(e)),is(ns(Hr(t))),Lc(n)))}static from(e,t=void 0){return Zc(zc(e,t))}static compare(e,t){return Xo(zc(e),zc(t))}get calendarId(){return Ot(Pc(this).calendar)}get timeZoneId(){return Pc(this).timeZone.id}get epochMilliseconds(){return Ca(Pc(this))}get epochNanoseconds(){return Da(Pc(this))}get offset(){return Gi(Xa(Pc(this)).offsetNanoseconds)}get offsetNanoseconds(){return Xa(Pc(this)).offsetNanoseconds}get hoursInDay(){return function(e){const{timeZone:t}=e,n=ha(Xa(e),Nn),r=ha(ho(n,1),Nn),a=no(t,n);return Xt(no(t,r)-a,jt)}(Pc(this))}with(e,t=void 0){return Zc(function(e,t,n){const{calendar:r,timeZone:a}=e,o=ri(r,Mn,vn),i=Xa(e),{year:s,month:c,day:u}=or(r,i),h={year:s,monthCode:Us(r,s,c),day:u,hour:i.hour,minute:i.minute,second:i.second,millisecond:i.millisecond,microsecond:i.microsecond,nanosecond:i.nanosecond,offset:i.offsetNanoseconds},l=yi(t,o,gi),d=Zs(r,h,l),m={...h,...l},[f,g,y,S]=pi(r,d,()=>da(n,2));return wa(eo(a,ha(f,kn(m,g)),m.offset,y,S),a,r)}(Pc(this),fu(e),t))}withCalendar(e){return Zc({...Pc(this),calendar:Pu(e)})}withTimeZone(e){return Zc({...Pc(this),timeZone:is($c(e))})}withPlainTime(e=void 0){return Zc(function(e,t){const{timeZone:n}=e,r=Xa(e),{offsetNanoseconds:a}=r,o=t||Nn;let i;return i=t?eo(n,ha(r,o),a,2):no(n,ha(r,o)),wa(i,n,e.calendar)}(Pc(this),Tu(e)))}add(e,t=void 0){return Zc(oo(Pc(this),Fu(e),t))}subtract(e,t=void 0){return Zc(oo(Pc(this),xo(Fu(e)),t))}until(e,t=void 0){const n=Pc(this),r=zc(e);return zu(Na(So(0,go(n.calendar,r.calendar),n,r,t)))}since(e,t=void 0){const n=Pc(this),r=zc(e);return zu(Na(So(1,go(n.calendar,r.calendar),n,r,t)))}round(e){const t=Pc(this),[n,r,a]=ua(e);return Zc(Ya(t,n,r,a))}startOfDay(){return Zc(function(e){const{timeZone:t,calendar:n}=e;return wa(no(t,ha(Xa(e),Nn)),t,n)}(Pc(this)))}equals(e){return t=Pc(this),n=zc(e),!Xo(t,n)&&t.timeZone.m===n.timeZone.m&&t.calendar===n.calendar;var t,n}toInstant(){return Kc(va(Pc(this).epochNanoseconds))}toPlainDateTime(){return bu(xs(Pc(this)))}toPlainDate(){return Ou(zs(Pc(this)))}toPlainTime(){return Su(js(Pc(this)))}toLocaleString(e=void 0,t={}){const n=Pc(this),r=new bi(e,function(e,t){return void 0!==e.timeZone&&Je("Cannot specify TimeZone"),e.timeZone=t,e}(rc(t),function(e){return e.timeZone.id}(n)));return Vs(r,n),r.format(Ca(n))}toString(e=void 0){return _i(Pc(this),e)}toJSON(){return _i(Pc(this))}getTimeZoneTransition(e){const t=Pc(this),n=function(e,t){return e.timeZone.O(e.epochNanoseconds,(e=>{const t=_r(e,"direction"),n=aa(t,0);return n||Ge(Be("direction",n)),n})(t))}(t,e);return n?Zc({...t,epochNanoseconds:n}):null}valueOf(){return wc()}},Uc,Hc,Cc,en);function Zc(e){return jc(Object.create(Rc.prototype),e)}function Pc(e){return xc(e)||vc()}function Uc(e){const t=Pc(e);return{...Xa(t),calendar:t.calendar}}function xc(e){return Yc.get(e)}function zc(e,t){if(Ke(e)){const n=xc(e);if(n)return da(t),n;return function(e,t,n,r){const a=yi(n,ri(t,wn,bn),gi,on,0),o=e(a.timeZone),[i,s,c,u]=pi(t,a,()=>da(r)),h=si(a,s),l=is(o);return wa(eo(l,ha(i,h),a.offset,c,u),l,t)}($c,Ru(e),e,t)}return function(e,t,n){const r=ks(Hr(e));return r&&r.timeZoneId||fs(e),Is(r,t,n)}(e,Bc,t)}function jc(e,t){return Yc.set(e,t),Mc(e),e}function $c(e){if(Ke(e)){const t=xc(e);return t||Je(Ue(e)),t.timeZone.id}return(e=>ns(function(e){const t=ks(e);return t&&(t.timeZoneId||t.C&&"UTC"||t.offset)||e}(Hr(e))))(e)}const Fc=new WeakMap,Vc=Tc(pc,class{constructor(e){Xc(this,va(Ta(kr(e))))}static from(e){return Kc(Wc(e))}static fromEpochMilliseconds(e){return Kc(function(e){return va(Ta(BigInt(Or(e))*Kt))}(e))}static fromEpochNanoseconds(e){return Kc(function(e){return va(Ta(kr(e)))}(e))}static compare(e,t){return Xo(Wc(e),Wc(t))}get epochMilliseconds(){return Ca(Gc(this))}get epochNanoseconds(){return Da(Gc(this))}add(e){return Kc(va(ao(Gc(this).epochNanoseconds,Fu(e))))}subtract(e){return Kc(va(ao(Gc(this).epochNanoseconds,xo(Fu(e)))))}until(e,t=void 0){return zu(yo(0,Gc(this),Wc(e),t))}since(e,t=void 0){return zu(yo(1,Gc(this),Wc(e),t))}round(e){const t=Gc(this),[n,r,a]=ua(e,5,1);return Kc(va(Fa(t.epochNanoseconds,xa(n,r),a)))}equals(e){return t=Gc(this),n=Wc(e),!Xo(t,n);var t,n}toZonedDateTimeISO(e){return Zc(function(e,t,n){return wa(e.epochNanoseconds,t,n)}(Gc(this),is($c(e))))}toLocaleString(e=void 0,t={}){const n=Gc(this);return new bi(e,nc(t)).format(Ca(n))}toString(e=void 0){return Oi($c,Gc(this),e)}toJSON(){return Oi($c,Gc(this))}valueOf(){return wc()}});function Kc(e){return Xc(Object.create(Vc.prototype),e)}function Gc(e){return Jc(e)||vc()}function Jc(e){return Fc.get(e)}function Wc(e){if(Ke(e)){const t=Jc(e);if(t)return t;const n=xc(e);if(n)return va(n.epochNanoseconds)}return function(e){const t=ks(e=Dr(e));let n;return t||fs(e),t.C?n=0:t.offset?n=ui(t.offset):fs(e),t.timeZoneId&&hi(t.timeZoneId,1),tr(t),va(Ma(t,n))}(e)}const{toTemporalInstant:qc}={toTemporalInstant(){const e=Date.prototype.valueOf.call(this);return Kc(va(BigInt(Nr(e))*Kt))}};function Xc(e,t){return Fc.set(e,t),Mc(e),e}const Qc=new WeakMap,eu=Tc(fc,class{constructor(e,t,n=void 0,r){const a=De(e),o=De(t),i=Lc(n);ou(this,Ha(Aa(nr({year:De(r??1972),month:a,day:o})),i))}static from(e,t=void 0){return tu(au(e,t))}get calendarId(){return Ot(nu(this).calendar)}with(e,t=void 0){return tu(function(e,t,n){const{calendar:r}=e,a=ri(r,An,pn),{year:o,month:i,day:s}=or(r,e);return wi(r,Zs(r,{monthCode:Us(r,o,i),day:s},yi(t,a,li)),n)}(nu(this),fu(e),t))}equals(e){return t=nu(this),n=au(e),!ei(t,n)&&t.calendar===n.calendar;var t,n}toPlainDate(e){return Ou(function(e,t,n){const r=ri(e,tn,dn);return $s(e,at(Sn,t),yi(_e(n),r,li,[]))}(nu(this).calendar,this,e))}toLocaleString(e=void 0,t={}){const n=nu(this),r=new bi(e,Fs(cc(t)));return Vs(r,n,1),r.format(zn(n))}toString(e=void 0){return Ri(nu(this),e)}toJSON(){return Ri(nu(this))}valueOf(){return wc()}},nu,Ec);function tu(e){return ou(Object.create(eu.prototype),e)}function nu(e){return ru(e)||vc()}function ru(e){return Qc.get(e)}function au(e,t){if(Ke(e)){const n=ru(e);if(n)return la(t),n;const r=Zu(e);return function(e,t,n,r){const a=yi(n,ri(e,An,pn),li,nn,0);return t&&void 0!==a.month&&void 0===a.monthCode&&void 0===a.year&&(a.year=1972),wi(e,a,r)}(void 0===r?kt:r,void 0===r,e,t)}const n=function(e,t){const n=_s(Hr(e));if(n)return gs(n),Ha(nr(n),t(n.calendarId));const r=Ss(ys(e),ps,t),{calendar:a}=r,{year:o,month:i,day:s}=or(a,r),[c,u]=ir(a,o,i),{year:h,month:l}=((e,t,n,r)=>{const a=e?e.u(t,n,r):Kn(t,n);return a||Ge("Cannot guess year"),a})(a,c,u,s);return Ha(Aa(cr(a,h,l,s)),a)}(e,Bc);return la(t),n}function ou(e,t){return Qc.set(e,t),Mc(e),e}const iu=new WeakMap,su=Tc(mc,class{constructor(e,t,n=void 0,r){const a=De(e),o=De(t),i=Lc(n);du(this,Ha(Sa(nr({year:a,month:o,day:De(r??1)})),i))}static from(e,t=void 0){return cu(lu(e,t))}static compare(e,t){return ei(lu(e),lu(t))}get calendarId(){return Ot(uu(this).calendar)}with(e,t=void 0){return cu(function(e,t,n){const{calendar:r}=e,a=ri(r,mn,fn),{year:o,month:i}=or(r,e);return vi(r,Zs(r,{year:o,monthCode:Us(r,o,i)},yi(t,a,li)),n)}(uu(this),fu(e),t))}add(e,t=void 0){const n=uu(this);return cu(Ha(ro(0,n.calendar,n,Fu(e),t),n.calendar))}subtract(e,t=void 0){const n=uu(this);return cu(Ha(ro(1,n.calendar,n,Fu(e),t),n.calendar))}until(e,t=void 0){const n=uu(this),r=lu(e);return zu(Io(0,go(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){const n=uu(this),r=lu(e);return zu(Io(1,go(n.calendar,r.calendar),n,r,t))}equals(e){return t=uu(this),n=lu(e),!ei(t,n)&&t.calendar===n.calendar;var t,n}toPlainDate(e){return Ou(function(e,t,n){return $s(e,at(ri(e,gn,yn),t),yi(_e(n),nn,li,[]))}(uu(this).calendar,this,e))}toLocaleString(e=void 0,t={}){const n=uu(this),r=new bi(e,Fs(sc(t)));return Vs(r,n,1),r.format(zn(n))}toString(e=void 0){return Yi(uu(this),e)}toJSON(){return Yi(uu(this))}valueOf(){return wc()}},uu,bc,Nc);function cu(e){return du(Object.create(su.prototype),e)}function uu(e){return hu(e)||vc()}function hu(e){return iu.get(e)}function lu(e,t){if(Ke(e)){const n=hu(e);if(n)return la(t),n;return function(e,t,n,r){return vi(e,yi(t,ri(e,mn,fn),li,r),n)}(Ru(e),e,t)}const n=function(e,t){const n=Os(Hr(e));if(n)return gs(n),Ha(Sa(nr(n)),t(n.calendarId));const r=Ss(ys(e),As,t),{calendar:a}=r;return Ha(co(a,r),a)}(e,Bc);return la(t),n}function du(e,t){return iu.set(e,t),Mc(e),e}function mu(e){if(!Ke(e))return;let t=Jc(e);return t?[pc,t]:(t=xc(e),t?[Ac,t]:(t=Eu(e),t?[yc,t]:(t=Bu(e),t?[gc,t]:(t=pu(e),t?[Sc,t]:(t=hu(e),t?[mc,t]:(t=ru(e),t?[fc,t]:(t=$u(e),t?[Ic,t]:void 0)))))))}function fu(e){return(mu(e)||void 0!==e.calendar||void 0!==e.timeZone)&&Je("Invalid bag"),e}const gu=new WeakMap,yu=Tc(Sc,class{constructor(e=0,t=0,n=0,r=0,a=0,o=0){Mu(this,Ea(Cn(tt(De,{hour:e,minute:t,second:n,millisecond:r,microsecond:a,nanosecond:o}))))}static from(e,t=void 0){return Su(Iu(e,t))}static compare(e,t){return ti(Iu(e),Iu(t))}with(e,t=void 0){return Su(function(e,t,n){return((e,t,n)=>si({...at(ln,e),...yi(t,ln,di)},la(n)))(e,t,n)}(Au(this),fu(e),t))}add(e){return Su(uo(Au(this),Fu(e))[0])}subtract(e){return Su(uo(Au(this),xo(Fu(e)))[0])}until(e,t=void 0){return zu(Mo(0,Au(this),Iu(e),t))}since(e,t=void 0){return zu(Mo(1,Au(this),Iu(e),t))}round(e){const t=Au(this),[n,r,a]=ua(e,5);return Su(Za(t,Ua(n,r),a)[0])}equals(e){return t=Au(this),n=Iu(e),!ti(t,n);var t,n}toLocaleString(e=void 0,t={}){const n=Au(this);return new bi(e,Fs(ic(t))).format(_n(n))}toString(e=void 0){return Pi(Au(this),e)}toJSON(){return Pi(Au(this))}valueOf(){return wc()}},Au,en);function Su(e){return Mu(Object.create(yu.prototype),e)}function Au(e){return pu(e)||vc()}function pu(e){return gu.get(e)}function Iu(e,t){if(Ke(e)){const n=pu(e);if(n)return la(t),n;const r=Eu(e);if(r)return la(t),Ea(r);const a=xc(e);return a?(la(t),js(a)):function(e,t){return si(yi(e,ln,di,[],1),la(t))}(e,t)}const n=function(e){let t,n=(e=>{const t=Bs(e);return t?(Rs(t[13]),Ls(t,1)):void 0})(e=Hr(e));if(!n){const t=ks(e);t&&t.re||fs(e),t.C&&Ge(je("Z")),gs(t),n=t}return(t=Os(e))&&rr(t)&&fs(e),(t=_s(e))&&rr(t)&&fs(e),Ea(Cn(n))}(e);return la(t),n}function Tu(e){return void 0===e?void 0:Iu(e)}function Mu(e,t){return gu.set(e,t),Mc(e),e}const vu=new WeakMap,wu=Tc(yc,class{constructor(e,t,n,r=0,a=0,o=0,i=0,s=0,c=0,u=void 0){Cu(this,ba(pa(tr(tt(De,{year:e,month:t,day:n,hour:r,minute:a,second:o,millisecond:i,microsecond:s,nanosecond:c}))),Lc(u)))}static from(e,t=void 0){return bu(Nu(e,t))}static compare(e,t){return Qo(Nu(e),Nu(t))}get calendarId(){return Ot(Hu(this).calendar)}with(e,t=void 0){return bu(function(e,t,n){const{calendar:r}=e,a=ri(r,In,Tn),{year:o,month:i,day:s}=or(r,e),c={year:o,monthCode:Us(r,o,i),day:s,hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond,microsecond:e.microsecond,nanosecond:e.nanosecond},u=yi(t,a,fi),h=Zs(r,c,u),l={...c,...u},[d,m]=pi(r,h,()=>[la(n)]);return Si(d,kn(l,m),r)}(Hu(this),fu(e),t))}withCalendar(e){return bu(ba(Hu(this),Pu(e)))}withPlainTime(e=void 0){const t=Hu(this);return bu(Si(t,Tu(e),t.calendar))}add(e,t=void 0){const n=Hu(this);return bu(ba(io(n.calendar,n,Fu(e),t),n.calendar))}subtract(e,t=void 0){const n=Hu(this);return bu(ba(io(n.calendar,n,xo(Fu(e)),t),n.calendar))}until(e,t=void 0){const n=Hu(this),r=Nu(e);return zu(Ao(0,go(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){const n=Hu(this),r=Nu(e);return zu(Ao(1,go(n.calendar,r.calendar),n,r,t))}round(e){const t=Hu(this),[n,r,a]=ua(e);return bu(ba(Ra(t,Ua(n,r),a),t.calendar))}equals(e){return t=Hu(this),n=Nu(e),!Qo(t,n)&&t.calendar===n.calendar;var t,n}toZonedDateTime(e,t=void 0){return Zc(function(e,t,n){const r=to(t,e,(e=>Xr(Ne(e)))(n));return wa(Ta(r),t,e.calendar)}(Hu(this),is($c(e)),t))}toPlainDate(){const e=Hu(this);return Ou(Ha(e,e.calendar))}toPlainTime(){return Su(Ea(Hu(this)))}toLocaleString(e=void 0,t={}){const n=Hu(this),r=new bi(e,Fs(ac(t)));return Vs(r,n),r.format(Un(n))}toString(e=void 0){return Bi(Hu(this),e)}toJSON(){return Bi(Hu(this))}valueOf(){return wc()}},Hu,Hc,Cc,en);function bu(e){return Cu(Object.create(wu.prototype),e)}function Hu(e){return Eu(e)||vc()}function Eu(e){return vu.get(e)}function Nu(e,t){if(Ke(e)){const n=Eu(e);if(n)return la(t),n;const r=Bu(e);if(r)return la(t),ba(ha(r,Nn),r.calendar);const a=xc(e);if(a)return la(t),xs(a);return function(e,t,n){const r=yi(t,ri(e,In,Tn),fi,[],0),[a,o]=pi(e,r,()=>[la(n)]);return Si(a,si(r,o),e)}(Ru(e),e,t)}const n=function(e,t){const n=ks(Hr(e));return n&&!n.C||fs(e),Ts(n,t)}(e,Bc);return la(t),n}function Cu(e,t){return vu.set(e,t),Mc(e),e}const Du=new WeakMap,ku=Tc(gc,class{constructor(e,t,n,r=void 0){Yu(this,Ha(Aa(nr(tt(De,{year:e,month:t,day:n}))),Lc(r)))}static from(e,t=void 0){return Ou(Lu(e,t))}static compare(e,t){return ei(Lu(e),Lu(t))}get calendarId(){return Ot(_u(this).calendar)}with(e,t=void 0){return Ou(function(e,t,n){const{calendar:r}=e,a=ri(r,An,pn),{year:o,month:i,day:s}=or(r,e);return Ai(r,Zs(r,{year:o,monthCode:Us(r,o,i),day:s},yi(t,a,li)),n)}(_u(this),fu(e),t))}withCalendar(e){return Ou(Ha(_u(this),Pu(e)))}add(e,t=void 0){const n=_u(this);return Ou(Ha(so(n.calendar,n,Fu(e),t),n.calendar))}subtract(e,t=void 0){const n=_u(this);return Ou(Ha(so(n.calendar,n,xo(Fu(e)),t),n.calendar))}until(e,t=void 0){const n=_u(this),r=Lu(e);return zu(po(0,go(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){const n=_u(this),r=Lu(e);return zu(po(1,go(n.calendar,r.calendar),n,r,t))}equals(e){return t=_u(this),n=Lu(e),!ei(t,n)&&t.calendar===n.calendar;var t,n}toZonedDateTime(e){const t=Ke(e)?{timeZone:e.timeZone,plainTime:e.plainTime}:{timeZone:e};return Zc(function(e,t,n,r){const a=e(r.timeZone),o=r.plainTime,i=void 0!==o?t(o):void 0,s=is(a);let c;return c=i?to(s,ha(n,i)):no(s,ha(n,Nn)),wa(c,s,n.calendar)}($c,Iu,_u(this),t))}toPlainDateTime(e=void 0){const t=_u(this);return bu(Si(t,Tu(e),t.calendar))}toPlainYearMonth(){return cu(function(e,t,n){return vi(e,yi(t,ri(e,gn,yn),li),n)}(_u(this).calendar,this))}toPlainMonthDay(){return tu(function(e,t){return wi(e,yi(t,Sn,li))}(_u(this).calendar,this))}toLocaleString(e=void 0,t={}){const n=_u(this),r=new bi(e,Fs(oc(t)));return Vs(r,n),r.format(zn(n))}toString(e=void 0){return Li(_u(this),e)}toJSON(){return Li(_u(this))}valueOf(){return wc()}},_u,Hc,Cc);function Ou(e){return Yu(Object.create(ku.prototype),e)}function _u(e){return Bu(e)||vc()}function Bu(e){return Du.get(e)}function Lu(e,t){if(Ke(e)){const n=Bu(e);if(n)return la(t),n;const r=Eu(e);if(r)return la(t),Ha(r,r.calendar);const a=xc(e);if(a)return la(t),zs(a);return function(e,t,n,r=[]){return Ai(e,yi(t,ri(e,An,pn),li,r),n)}(Ru(e),e,t)}const n=function(e,t){const n=Ss(ys(Hr(e)),void 0,t);return Ha(n,n.calendar)}(e,Bc);return la(t),n}function Yu(e,t){return Du.set(e,t),Mc(e),e}function Ru(e){const t=Zu(e);return void 0===t?kt:t}function Zu(e){const{calendar:t}=e;if(void 0!==t)return Pu(t)}function Pu(e){if(Ke(e)){const t=Bu(e)||Eu(e)||xc(e)||ru(e)||hu(e);return t||Je(Ee("Calendar",e)),t.calendar}return(e=>Bc(function(e){const t=ks(e)||Os(e)||_s(e);if(t)return t.calendarId;const n=Bs(e);return n?Rs(n[13]).calendarId:e}(Hr(e))))(e)}const Uu=new WeakMap,xu=Tc(Ic,class{constructor(e=0,t=0,n=0,r=0,a=0,o=0,i=0,s=0,c=0,u=0){Ku(this,Na(jo(tt(Or,{years:e,months:t,weeks:n,days:r,hours:a,minutes:o,seconds:i,milliseconds:s,microseconds:c,nanoseconds:u}))))}static from(e){return zu(Fu(e))}static compare(e,t,n=void 0){return function(e,t,n,r){const a=e(Ne(r).relativeTo),o=Math.max(qo(t),qo(n));return ot(yr,t,n)?0:Yo(o,a&&Lo(a))?pt(Fo(t),Fo(n)):(a||Ge("Missing relativeTo"),pt(Bo(a,t),Bo(a,n)))}(Vu,Fu(e),Fu(t),n)}get sign(){return ju(this).sign}get blank(){return!ju(this).sign}with(e){return zu((t=ju(this),Na((n=t,r=e,jo({...n,...yi(r,Ar,mi)})))));var t,n,r}negated(){return zu(Uo(ju(this)))}abs(){return zu(-1===(e=ju(this)).sign?Uo(e):e);var e}add(e,t=void 0){return zu(Po(Vu,0,ju(this),Fu(e),t))}subtract(e,t=void 0){return zu(Po(Vu,1,ju(this),Fu(e),t))}round(e){return zu(function(e,t,n){const r=qo(t),[a,o,i,s,c]=((e,t,n)=>{e=_r(e,Br);let r=Jr(e);const a=n(e.relativeTo);let o=$r(e);const i=ra(e,7);let s=Gr(e);return void 0===r&&void 0===s&&Ge("Required smallestUnit or largestUnit"),null==s&&(s=0),null==r&&(r=Math.max(s,t)),sa(r,s),o=oa(o,s,1),o>1&&s>5&&r!==s&&Ge("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit"),[r,s,o,i,a]})(n,r,e);if(!c&&Math.max(r,a)<=6)return Na(jo(((e,t,n,r,a)=>{const o=$a(Fo(e),xa(n,r),a);return{...Mr,...Go(o,t)}})(t,a,o,i,s)));const u=c&&Lo(c),h=u&&a>=6&&o<6;if(!t.sign&&!h)return t;c||Ge("Missing relativeTo");const[l,d,m]=_o(c,t,a);return Na(ja(l,d,a,o,i,s,m,u))}(Vu,ju(this),e))}total(e){return ka(Vu,ju(this),e)}toLocaleString(e=void 0,t){const n=ju(this);return Intl.DurationFormat?new Intl.DurationFormat(e,t).format(n):Ui(n,t)}toString(e=void 0){return Ui(ju(this),e)}toJSON(){return Ui(ju(this))}valueOf(){return wc()}},ju,Sr);function zu(e){return Ku(Object.create(xu.prototype),e)}function ju(e){return $u(e)||vc()}function $u(e){return Uu.get(e)}function Fu(e){return Ke(e)?$u(e)||function(e){const t=yi(e,Ar,mi);return Na(jo({...Mr,...t}))}(e):function(e){const t=Ds.exec(Hr(e));return t||fs(e),Na(jo((e=>{let t=0,n=0,r=0,a={years:o(e[2]),months:o(e[3]),weeks:o(e[4]),days:o(e[5]),hours:o(e[6],e[7],5),minutes:o(e[8],e[9],4),seconds:o(e[10],e[11],3),...Ro(r,2,yr)};return t||Ge(Ye(yr)),ft(e[1])<0&&(a=xo(a)),a;function o(e,a,o){let i=0,s=0;return o&&([i,r]=Mt(r,Ft[o])),void 0!==e&&(n&&Ge(je(e)),s=(e=>{const t=parseInt(e);return Number.isFinite(t)||Ge(je(e)),t})(e),t=1,a&&(r=mt(a)*(Ft[o]/xt),n=1)),i+s}})(t)))}(e)}function Vu(e){if(void 0!==e){if(Ke(e)){const t=xc(e);if(t)return t;const n=Bu(e);if(n)return n;const r=Eu(e);if(r)return Ha(r,r.calendar);return function(e,t,n){const r=yi(n,ri(t,wn,bn),gi,[],0);if(void 0!==r.timeZone){const n=Ai(t,r),a=si(r),o=is(e(r.timeZone));return{epochNanoseconds:eo(o,ha(n,a),r.offset),timeZone:o,calendar:t}}return Ai(t,r)}($c,Ru(e),e)}return function(e,t){const n=ks(Hr(e));return n||fs(e),n.timeZoneId?Is(n,t,void 0):(n.C&&fs(e),Ms(n,t))}(e,Bc)}}function Ku(e,t){return Uu.set(e,t),Mc(e),e}const Gu=Object.defineProperties({},{...et("Temporal.Now"),...Qe({timeZoneId:()=>lc(),instant:()=>Kc(va(hc())),zonedDateTimeISO(e=lc()){const t=is($c(e));return Zc(wa(hc(),t))},plainDateTimeISO:(e=lc())=>bu(ba(uc(is($c(e))))),plainDateISO:(e=lc())=>Ou(Ha(uc(is($c(e))))),plainTimeISO:(e=lc())=>Su(Ea(uc(is($c(e)))))})}),Ju=Object.defineProperties({},{...et("Temporal"),...Qe({PlainYearMonth:su,PlainMonthDay:eu,PlainDate:ku,PlainTime:yu,PlainDateTime:wu,ZonedDateTime:Rc,Instant:Vc,Duration:xu,Now:Gu})}),Wu=kc(mu);function qu(e){return e*Math.PI/180}function Xu(e){return 180*e/Math.PI}dc||(Object.defineProperties(globalThis,Qe({Temporal:Ju})),Object.defineProperties(Intl,Qe({DateTimeFormat:Wu})),Object.defineProperties(Date.prototype,Qe({toTemporalInstant:qc})));class Qu{constructor(e,t,n,r,a){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(a)}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){if(!e)throw new RangeError("Invalid timeZoneId");this.timeZoneId=e}}const eh=6356.9;class th{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(th.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(th.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(th.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(th.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(th.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(th.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(th.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(th.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(th.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(th.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 Xu(Math.acos(eh/(eh+e/1e3)))}adjustZenith(e,t){let n=e;return e===th.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 a=r?t.getElevation():0,o=this.adjustZenith(n,a);let i=th.getSunriseUTC(th.getJulianDay(e),t.getLatitude(),-t.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const a=r?t.getElevation():0,o=this.adjustZenith(n,a);let i=th.getSunsetUTC(th.getJulianDay(e),t.getLatitude(),-t.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(e=this.getSeaLevelSunrise(),t=this.getSeaLevelSunset()){if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(e=this.getSeaLevelSunrise(),t=this.getSeaLevelSunset()){const n=this.getTemporalHour(e,t);return th.getTimeOffset(e,6*n)}getDateFromTime(e,t){const n=this.getEpochMillisFromTime(e,t);return isNaN(n)?null:Temporal.Instant.fromEpochMilliseconds(n).toZonedDateTimeISO(this.geoLocation.getTimeZone())}getEpochMillisFromTime(e,t){if(isNaN(e))return NaN;let n=e;const r=this.getAdjustedDate(),a=Math.trunc(n);n-=a;const o=Math.trunc(n*=60);n-=o;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);let c=0;t&&s+a>18?c=-1:!t&&s+a<6&&(c=1);const u=r.year;let h=Date.UTC(u,r.month-1,r.day,a,o,i,Math.trunc(1e3*n));if(u>=0&&u<100){const e=new Date(h);e.setUTCFullYear(u),h=e.getTime()}return h+864e5*c}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const a=Math.trunc(t/100),o=Math.trunc(2-a+a/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+o-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-th.JULIAN_DAY_JAN_1_2000)/th.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*th.JULIAN_DAYS_PER_CENTURY+th.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=qu(th.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 th.getSunGeometricMeanLongitude(e)+th.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return th.getSunTrueLongitude(e)-.00569-.00478*Math.sin(qu(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 th.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(qu(t))}static getSunDeclination(e){const t=th.getObliquityCorrection(e),n=th.getSunApparentLongitude(e),r=Math.sin(qu(t))*Math.sin(qu(n));return Xu(Math.asin(r))}static getEquationOfTime(e){const t=th.getObliquityCorrection(e),n=th.getSunGeometricMeanLongitude(e),r=th.getEarthOrbitEccentricity(e),a=th.getSunGeometricMeanAnomaly(e);let o=Math.tan(qu(t)/2);o*=o;const i=Math.sin(2*qu(n)),s=Math.sin(qu(a));return 4*Xu(o*i-2*r*s+4*r*o*s*Math.cos(2*qu(n))-.5*o*o*Math.sin(4*qu(n))-1.25*r*r*Math.sin(2*qu(a)))}static getSunHourAngleAtSunrise(e,t,n){const r=qu(e),a=qu(t);return Math.acos(Math.cos(qu(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSunHourAngleAtSunset(e,t,n){const r=qu(e),a=qu(t);return-Math.acos(Math.cos(qu(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSolarElevation(e,t,n){const r=th.getJulianDay(e.toPlainDate()),a=th.getJulianCenturiesFromJulianDay(r),o=th.getEquationOfTime(a);let i=e.hour+12+(e.minute+o+e.second/60)/60;i=-360*i/24%360;const s=qu(n-i),c=qu(th.getSunDeclination(a)),u=qu(t);return Xu(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=th.getJulianDay(e.toPlainDate()),a=th.getJulianCenturiesFromJulianDay(r),o=th.getEquationOfTime(a);let i=e.hour+12+(e.minute+o+e.second/60)/60;i=-360*i/24%360;const s=qu(n-i),c=qu(th.getSunDeclination(a)),u=qu(t);return Xu(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 a=th.getJulianCenturiesFromJulianDay(e),o=th.getSolarNoonUTC(a,n),i=th.getJulianCenturiesFromJulianDay(e+o/1440);let s=th.getEquationOfTime(i),c=th.getSunDeclination(i),u=th.getSunHourAngleAtSunrise(t,c,r),h=n-Xu(u),l=4*h,d=720+l-s;const m=th.getJulianCenturiesFromJulianDay(th.getJulianDayFromJulianCenturies(a)+d/1440);return s=th.getEquationOfTime(m),c=th.getSunDeclination(m),u=th.getSunHourAngleAtSunrise(t,c,r),h=n-Xu(u),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=th.getJulianCenturiesFromJulianDay(th.getJulianDayFromJulianCenturies(e)+t/360);let r=th.getEquationOfTime(n);const a=720+4*t-r,o=th.getJulianCenturiesFromJulianDay(th.getJulianDayFromJulianCenturies(e)-.5+a/1440);return r=th.getEquationOfTime(o),720+4*t-r}static getSunsetUTC(e,t,n,r){const a=th.getJulianCenturiesFromJulianDay(e),o=th.getSolarNoonUTC(a,n),i=th.getJulianCenturiesFromJulianDay(e+o/1440);let s=th.getEquationOfTime(i),c=th.getSunDeclination(i),u=th.getSunHourAngleAtSunset(t,c,r),h=n-Xu(u),l=4*h,d=720+l-s;const m=th.getJulianCenturiesFromJulianDay(th.getJulianDayFromJulianCenturies(a)+d/1440);return s=th.getEquationOfTime(m),c=th.getSunDeclination(m),u=th.getSunHourAngleAtSunset(t,c,r),h=n-Xu(u),l=4*h,d=720+l-s,d}}var nh=["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|-0.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"];class rh extends Map{#e=0;#t=new Map;#n=new Map;#r;#a;#o;constructor(e={}){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.#a=e.maxAge||Number.POSITIVE_INFINITY,this.#o=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#o)for(const[t,n]of e)this.#o(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#o&&this.#o(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)}*#m(){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,{maxAge:n=this.#a}={}){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}expiresIn(e){const t=this.#t.get(e)??this.#n.get(e);if(t)return t.expiry?t.expiry-Date.now():Number.POSITIVE_INFINITY}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.#m()],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}evict(e=1){const t=Number(e);if(!t||t<=0)return;const n=[...this.#m()],r=Math.trunc(Math.min(t,Math.max(n.length-1,0)));r<=0||(this.#i(n.slice(0,r)),this.#n=new Map(n.slice(r)),this.#t=new Map,this.#e=0)}*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,a]=n;!1===this.#s(r,a)&&(yield[r,a.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,a]=n;if(!this.#t.has(r)){!1===this.#s(r,a)&&(yield[r,a.value])}}}*entriesAscending(){for(const[e,t]of this.#m())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}get maxAge(){return this.#a}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}const ah=new Map,oh={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"},ih=new rh({maxSize:120});class sh extends Qu{constructor(e,t,n,r,a,o,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]`);if(!r)throw new RangeError("Invalid timezone");const h="number"==typeof s&&s>0?s:0;a&&"string"!=typeof a&&(a=String(a)),super(a||null,c,u,h,r),this.il=Boolean(n),this.cc=o,"IL"===o&&(this.il=!0),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=ih.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return ih.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return 0===ah.size&&function(){for(const e of nh){const[t,n,r,a,o,i]=e.split("|"),s=new sh(+r,+a,"IL"===n,o,t,n,void 0,+i);sh.addLocation(t,s)}}(),ah.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"}return"usa"===t?oh[String(-1*e)]:void 0}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":oh[t]}static addLocation(e,t){const n=e.toLowerCase();return!ah.has(n)&&(ah.set(n,t),!0)}}const ch={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 uh(e,t,n){if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const r=n?.location?.getCountryCode()||(n?.il?"IL":"US"),a=n?.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===ch[r])return e;const o=e.split(":");let i=parseInt(o[0],10);return i<12&&t?(t=t.replace("p","a").replace("P","A"),0===i&&(i=12)):i>12?i%=12:0===i&&(i="00"),`${i}:${o[1]}${t}`}const hh=25920;function lh(e,t){const n=function(e,t){const n=w(e);return(t+(n?6:5))%(n?13:12)+1}(e,t);return 31524+765433*(235*Math.trunc((e-1)/19)+(e-1)%19*12+Math.trunc(((e-1)%19*7+1)/19)+(n-1))}function dh(e,t){const n=lh(e,t),r=function(e){return Math.trunc(e/hh)+-1373429}(n);let a=new fe(r);const o=Math.trunc(n/hh);let i=Math.trunc(n-o*hh),s=Math.trunc(i/1080);i-=1080*s;const c=Math.trunc(i/18);s>=6&&(a=a.next()),s=(s+18)%24;return{hdate:a,hour:s,minutes:c,chalakim:i-18*c}}function mh(e){const t=10*e.chalakim/3,n=Math.trunc(1e3*(t-Math.trunc(t))),r=e.hdate.greg(),a="Etc/GMT+2",o=Temporal.ZonedDateTime.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:e.hour,minute:e.minutes,second:Math.trunc(t),millisecond:n,timeZone:a}),i=function(e,t,n){const r=4*t*6e4- -1*Q(n,e)*6e4;return Math.trunc(r)}(r,35.2354,a);return o.subtract({milliseconds:i}).withTimeZone("UTC")}function fh(e){return e.replaceAll("'","’")}function gh(e){return e.toLowerCase().replaceAll("'","").replaceAll(" ","-")}const yh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Sh=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Ah=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],ph="בַּלַּ֥יְלָה";class Ih{constructor(e,t){this.m=dh(e,t),this.year=e,this.month=t}getMoladDate(){return this.m.hdate}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return fe.getMonthName(this.month,this.year)}getDow(){return this.m.hdate.getDay()}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}getInstant(){return this.instant??=mh(this.m),this.instant}getTchilasZmanKidushLevana3Days(){return this.getInstant().add({hours:72})}getTchilasZmanKidushLevana7Days(){return this.getInstant().add({hours:168})}getSofZmanKidushLevanaBetweenMoldos(){return this.getInstant().add({hours:354,minutes:22,seconds:1,milliseconds:666})}getSofZmanKidushLevana15Days(){return this.getInstant().add({hours:360})}render(e,t){const n=se.gettext(this.getMonthName(),e),r=function(e){return se.isHebrewLocale(e)?Sh:"fr"===e?Ah:yh}(e),a=r[this.getDow()],o=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=se.gettext("Molad",e),u=se.lookupTranslation("min",e)??"minutes",h=se.gettext("chalakim",e),l=se.gettext("and",e);if(se.isHebrewLocale(e)){const t=function(e){return e<5?ph:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":ph}(i);let r=`${c} ${n} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${i} ${t}, ו-${o} ${u}`;return 0!==s&&(r+=` ו-${s} ${h}`),"he-x-nonikud"===e.toLocaleLowerCase()?se.hebrewStripNikkud(r):r}const d=uh(`${i}:${J(o)}`,"pm",t),m=`${c} ${fh(n)}: ${a}, ${d}`;return 0===s?m:m+` ${l} ${s} ${h}`}}class Th extends we{constructor(e,t,n,r){const a=new Ih(t,n);super(e,`Molad ${a.getMonthName()} ${t}`,Me.MOLAD),this.molad=a,this.options=r}render(e){return this.molad.render(e,this.options)}}function Mh(e){const t=new Date(e);return t.setMilliseconds(0),t}const vh=90,wh=91.583;function bh(e,t){return Math.floor((t-e)/12)}class Hh{constructor(e,t,n){this.hdate=new fe(t);const r=c(t)?t:this.hdate.greg();this.plainDate=new Temporal.PlainDate(r.getFullYear(),r.getMonth()+1,r.getDate()),this.gloc=e,this.noaa=new th(e,this.plainDate),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=vh+e;return Mh(t?this.sunriseMillis(n,!0):this.sunsetMillis(n,!0))}sunriseMillis(e,t){const n=t?this.noaa.getUTCSunrise0(e):this.noaa.getUTCSeaLevelSunrise(e);return this.noaa.getEpochMillisFromTime(n,!0)}sunsetMillis(e,t){const n=t?this.noaa.getUTCSunset0(e):this.noaa.getUTCSeaLevelSunset(e);return this.noaa.getEpochMillisFromTime(n,!1)}sunrise(){return Mh(this.sunriseMillis(vh,this.useElevation))}seaLevelSunrise(){return Mh(this.sunriseMillis(vh,!1))}sunset(){return Mh(this.sunsetMillis(vh,this.useElevation))}seaLevelSunset(){return Mh(this.sunsetMillis(vh,!1))}dawn(){return Mh(this.sunriseMillis(96,!0))}dusk(){return Mh(this.sunsetMillis(96,!0))}gregEve(){const e=this.plainDate.subtract({days:1}),t=new Date(e.year,e.month-1,e.day);return new Hh(this.gloc,t,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.sunriseMillis(vh,!1);return Mh(e+6*bh(e,this.sunsetMillis(vh,!1)))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}alotHaShachar72(){return this.sunriseOffset(-72,!1,!1)}alotHaShachar72zdt(){const e=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise();return e?e.subtract({minutes:72}):null}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZmanMillis(e,t,n){return e+Math.trunc(bh(e,t)*n)}getShaahZmanisBasedZman(e){const t=this.sunriseMillis(vh,this.useElevation),n=this.sunsetMillis(vh,this.useElevation);return Mh(this.getShaahZmanisBasedZmanMillis(t,n,e))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanBiurChametzGRA(){return this.getShaahZmanisBasedZman(5)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=8.5){return this.timeAtAngle(e,!1)}tzeit72(){const e=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset();return e?e.add({minutes:72}):null}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)}getMidnightLastNight(){return this.plainDate.toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMidnightTonight(){return this.plainDate.add({days:1}).toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMoladBasedTime(e,t,n,r){const a=this.getMidnightLastNight(),o=this.getMidnightTonight();return Temporal.ZonedDateTime.compare(e,a)<0||Temporal.ZonedDateTime.compare(e,o)>0?null:null===t||null===n?e.withTimeZone(this.gloc.getTimeZone()):Temporal.ZonedDateTime.compare(e,t)>0&&Temporal.ZonedDateTime.compare(e,n)<0?r?n:t:e.withTimeZone(this.gloc.getTimeZone())}getSofZmanKidushLevanaBetweenMoldos(e=null,t=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>16)return null;const r=new Ih(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevanaBetweenMoldos(),e,t,!1)}getSofZmanKidushLevana15Days(e=null,t=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>17)return null;const r=new Ih(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevana15Days(),e,t,!1)}getTchilasZmanKidushLevana3Days(e=null,t=null){const n=this.hdate;if(n.getDate()>5&&n.getDate()<30)return null;const r=new Ih(n.getFullYear(),n.getMonth());let a=this.getMoladBasedTime(r.getTchilasZmanKidushLevana3Days(),e,t,!0);if(null===a&&30===n.getDate()){const e=n.add(1,"week"),t=new Ih(e.getFullYear(),e.getMonth());a=this.getMoladBasedTime(t.getTchilasZmanKidushLevana3Days(),null,null,!0)}return a}getZmanMolad(){const e=this.hdate;if(e.getDate()>2&&e.getDate()<27)return null;const t=new Ih(e.getFullYear(),e.getMonth());let n=this.getMoladBasedTime(t.getInstant(),null,null,!0);if(null===n&&e.getDate()>26){const t=e.add(1,"week"),r=new Ih(t.getFullYear(),t.getMonth());n=this.getMoladBasedTime(r.getInstant(),null,null,!0)}return n}getTchilasZmanKidushLevana7Days(e=null,t=null){const n=this.hdate;if(n.getDate()<4||n.getDate()>9)return null;const r=new Ih(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getTchilasZmanKidushLevana7Days(),e,t,!0)}getSunriseBaalHatanya(){return this.sunriseMillis(wh,!0)}getSunsetBaalHatanya(){return this.sunsetMillis(wh,!0)}alosBaalHatanya(){return this.timeAtAngle(16.9,!0)}getShaahZmanisBaalHatanya(e){return Mh(this.getShaahZmanisBasedZmanMillis(this.getSunriseBaalHatanya(),this.getSunsetBaalHatanya(),e))}sofZmanShmaBaalHatanya(){return this.getShaahZmanisBaalHatanya(3)}sofZmanTfilaBaalHatanya(){return this.getShaahZmanisBaalHatanya(4)}minchaGedolaBaalHatanya(){return this.getShaahZmanisBaalHatanya(6.5)}minchaKetanaBaalHatanya(){return this.getShaahZmanisBaalHatanya(9.5)}plagHaminchaBaalHatanya(){return this.getShaahZmanisBaalHatanya(10.75)}tzaisBaalHatanya(){return this.timeAtAngle(6,!1)}static formatTime(e,t){if(isNaN(e.getTime()))return"XX:XX";const n=t.format(e);return 50===n.charCodeAt(0)&&52===n.charCodeAt(1)&&58===n.charCodeAt(2)?"00"+n.substring(2):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 a=1e3*r+n;return new Date(t+(a>=3e4?6e4-a:-1*a))}static timeZoneOffset(e,t){const n=Q(e,t),r=Math.abs(n),a=r%60;return(n<0?"+":"-")+J(Math.floor(r/60))+":"+J(a)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":X(e,t).substring(0,19)+Hh.timeZoneOffset(e,t)}sunriseOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}sunsetOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}static makeSunsetAwareHDate(e,t,n){const r=new Hh(e,t,n).sunset();let a=new fe(t);const o=r.getTime();return isNaN(o)||t.getTime()>=o&&(a=a.next()),a}}const Eh=m.NISAN,Nh=m.IYYAR;function Ch(e){if(e<5708)return null;let t;const n=new fe(15,Eh,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new fe(t,Nh,e)}class Dh{constructor(e,t){e=+e,this.year=e;const n=new fe(1,m.TISHREI,e),r=this.rh=n.abs(),a=n.getDay()+1;this.firstSaturday=fe.dayOnOrBefore(6,r+6);const o=+fe.isLeapYear(e);this.il=Boolean(t);const i=function(e){const t=fe.longCheshvan(e),n=fe.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${o}${a}${i}`;if(Xh[s]?(this.theSedraArray=Xh[s],this.yearKey=s):(s+=+this.il,this.theSedraArray=Xh[s],this.yearKey=s),!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}find(e){if("number"==typeof e){if(e>=kh.length||e<0&&!Bh(e))throw new RangeError(`Invalid parsha number: ${e}`);return this.findInternal(e)}if("string"==typeof e){const t=Oh.get(e);return"number"==typeof t?this.find(t):e.includes("-")?e===Ph||e===Yh?this.findInternal(e):this.find(e.split("-")):this.findInternal(e)}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],a=Oh.get(n),o=Oh.get(r);if("number"!=typeof a||"number"!=typeof o||o!==a+1||!Bh(-a))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-a)}return null}findInternal(e){const t=this.theSedraArray.indexOf(e);return-1===t?null:new fe(this.firstSaturday+7*t)}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return Bh(t)?this.find(t):this.find(t+1)}{const t=Oh.get(e);if(t){const e=-t;return Bh(e)?this.find(e):this.find(e+1)}{const[t]=e.split("-");return this.find(t)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:fe.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);if(t<this.rh)throw new RangeError(`Date ${e} before start of Hebrew year ${this.year}`);const n=fe.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,a=this.theSedraArray[r];if(void 0===a){return el(this.year+1,this.il).lookup(n)}const o=new fe(n);if("string"==typeof a)return{parsha:[a],chag:!0,hdate:o,il:this.il,num:0};if(a>=0)return{parsha:[kh[a]],chag:!1,num:a+1,hdate:o,il:this.il};const i=Lh(a);return{parsha:[kh[i],kh[i+1]],chag:!1,num:[i+1,i+2],hdate:o,il:this.il}}lookupWeekday(e){const t="number"==typeof e?e:fe.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);if(t<this.rh)throw new RangeError(`Date ${e} before start of Hebrew year ${this.year}`);const n=new fe(t).getDay();if(1!==n&&4!==n)return;const r=new fe(fe.dayOnOrBefore(6,t+6)),a=this.lookup(r);return a.chag?this.findWeekdayParsha(r):a}findWeekdayParsha(e){const t=e.getFullYear(),n=this.il;if(e.getMonth()===m.TISHREI){const t=e.getDate();if(t>2&&t<=(n?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54,hdate:e,il:n}}const r=t===this.year?this:el(t,n),a=new fe(1,m.TISHREI,t+1).abs()-1,o=a+30;for(let i=e.abs()+7;i<=o;i+=7){const e=(i>a?el(t+1,n):r).lookup(i);if(!e.chag)return e}throw new Error(`can't find weekday parsha for ${e}/${n}`)}}const kh=["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","Vezot Haberakhah"],Oh=new Map;for(let e=0;e<kh.length;e++){const t=kh[e];Oh.set(t,e)}const _h=new Set([21,26,28,31,38,41,50]);function Bh(e){return _h.has(-e)}function Lh(e){return-e}const Yh="Sukkot Shabbat Chol ha-Moed",Rh="Pesach",Zh="Pesach I",Ph="Pesach Shabbat Chol ha-Moed",Uh="Pesach VII",xh="Pesach VIII",zh="Shavuot";function jh(e,t){return Array.from({length:t-e+1},(t,n)=>n+e)}const $h=[51,52,Yh],Fh=[52,"Yom Kippur",Yh],Vh=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Kh=jh(0,20),Gh=jh(0,27),Jh=jh(33,40),Wh=jh(43,49),qh=jh(43,50),Xh={"020":$h.concat(Kh,Lh(21),23,24,Ph,25,Lh(26),Lh(28),30,Lh(31),Jh,Lh(41),Wh,Lh(50)),"0220":$h.concat(Kh,Lh(21),23,24,Ph,25,Lh(26),Lh(28),30,Lh(31),33,zh,jh(34,37),Lh(38),40,Lh(41),Wh,Lh(50)),"0510":Fh.concat(Kh,Lh(21),23,24,Zh,xh,25,Lh(26),Lh(28),30,Lh(31),Jh,Lh(41),qh),"0511":Fh.concat(Kh,Lh(21),23,24,Rh,25,Lh(26),Lh(28),jh(30,40),Lh(41),qh),"052":Fh.concat(jh(0,24),Uh,25,Lh(26),Lh(28),30,Lh(31),Jh,Lh(41),qh),"070":Vh.concat(Kh,Lh(21),23,24,Uh,25,Lh(26),Lh(28),30,Lh(31),Jh,Lh(41),qh),"072":Vh.concat(Kh,Lh(21),23,24,Ph,25,Lh(26),Lh(28),30,Lh(31),Jh,Lh(41),Wh,Lh(50)),1200:$h.concat(Gh,Ph,jh(28,33),zh,jh(34,37),Lh(38),40,Lh(41),Wh,Lh(50)),1201:$h.concat(Gh,Ph,jh(28,40),Lh(41),Wh,Lh(50)),1220:$h.concat(Gh,Zh,xh,jh(28,40),Lh(41),qh),1221:$h.concat(Gh,Rh,jh(28,50)),150:Fh.concat(jh(0,28),Uh,jh(29,50)),152:Fh.concat(jh(0,28),Ph,jh(29,49),Lh(50)),170:Vh.concat(Gh,Ph,jh(28,40),Lh(41),Wh,Lh(50)),1720:Vh.concat(Gh,Ph,jh(28,33),zh,jh(34,37),Lh(38),40,Lh(41),Wh,Lh(50))};Xh["0221"]=Xh["020"],Xh["0310"]=Xh["0220"],Xh["0311"]=Xh["020"],Xh[1310]=Xh[1220],Xh[1311]=Xh[1221],Xh[1721]=Xh[170];const Qh=new rh({maxSize:120});function el(e,t){const n=`${e}-${t?1:0}`;let r=Qh.get(n);return r||(r=new Dh(e,t),Qh.set(n,r)),r}const tl=m.NISAN,nl=m.IYYAR,rl=m.SIVAN,al=m.ELUL,ol=m.TISHREI,il=m.CHESHVAN,sl=m.SHVAT,cl=m.ADAR_II,ul=Me.CHAG,hl=Me.LIGHT_CANDLES,ll=Me.YOM_TOV_ENDS,dl=Me.CHUL_ONLY,ml=Me.IL_ONLY,fl=Me.LIGHT_CANDLES_TZEIS,gl=Me.MINOR_HOLIDAY,yl=Me.EREV,Sl=Me.CHOL_HAMOED,Al="🫓",pl="🌿🍋",Il="Rosh Hashana II",Tl="Erev Yom Kippur",Ml="Yom Kippur",vl="Erev Sukkot",wl="Sukkot I",bl="Sukkot II",Hl="Sukkot III (CH''M)",El="Sukkot IV (CH''M)",Nl="Sukkot V (CH''M)",Cl="Sukkot VI (CH''M)",Dl="Shmini Atzeret",kl="Simchat Torah",Ol="Sukkot II (CH''M)",_l="Sukkot VII (Hoshana Raba)",Bl="Tu BiShvat",Ll="Erev Purim",Yl="Purim",Rl="Shushan Purim",Zl="Erev Pesach",Pl="Pesach I",Ul="Pesach II",xl="Pesach II (CH''M)",zl="Pesach III (CH''M)",jl="Pesach IV (CH''M)",$l="Pesach V (CH''M)",Fl="Pesach VI (CH''M)",Vl="Pesach VII",Kl="Pesach VIII",Gl="Pesach Sheni",Jl="Lag BaOmer",Wl="Erev Shavuot",ql="Shavuot",Xl="Shavuot I",Ql="Shavuot II",ed="Tu B'Av",td="Rosh Hashana LaBehemot",nd="Erev Rosh Hashana",rd="Yom Yerushalayim",ad="Ben-Gurion Day",od="Family Day",id="Yitzhak Rabin Memorial Day",sd="Herzl Day",cd="Jabotinsky Day",ud="Sigd",hd="Yom HaAliyah",ld="Yom HaAliyah School Observance",dd="Hebrew Language Day",md={ASARA_BTEVET:"Asara B'Tevet",BIRKAT_HACHAMAH:"Birkat Hachamah",CHAG_HABANOT:"Chag HaBanot",CHANUKAH_8TH_DAY:"Chanukah: 8th Day",EREV_TISHA_BAV:"Erev Tish'a B'Av",LEIL_SELICHOT:"Leil Selichot",PURIM_KATAN:"Purim Katan",PURIM_MESHULASH:"Purim Meshulash",SHABBAT_CHAZON:"Shabbat Chazon",SHABBAT_HACHODESH:"Shabbat HaChodesh",SHABBAT_HAGADOL:"Shabbat HaGadol",SHABBAT_NACHAMU:"Shabbat Nachamu",SHABBAT_PARAH:"Shabbat Parah",SHABBAT_SHEKALIM:"Shabbat Shekalim",SHABBAT_SHIRAH:"Shabbat Shirah",SHABBAT_SHUVA:"Shabbat Shuva",SHABBAT_ZACHOR:"Shabbat Zachor",SHUSHAN_PURIM_KATAN:"Shushan Purim Katan",TAANIT_BECHOROT:"Ta'anit Bechorot",TAANIT_BEHAB:"Ta'anit BeHaB",TAANIT_ESTHER:"Ta'anit Esther",TISHA_BAV:"Tish'a B'Av",TZOM_GEDALIAH:"Tzom Gedaliah",TZOM_TAMMUZ:"Tzom Tammuz",YOM_HAATZMA_UT:"Yom HaAtzma'ut",YOM_HASHOAH:"Yom HaShoah",YOM_HAZIKARON:"Yom HaZikaron",BEN_GURION_DAY:ad,CHANUKAH_1_CANDLE:"Chanukah: 1 Candle",EREV_PESACH:Zl,EREV_PURIM:Ll,EREV_ROSH_HASHANA:nd,EREV_SHAVUOT:Wl,EREV_SUKKOT:vl,EREV_YOM_KIPPUR:Tl,FAMILY_DAY:od,HEBREW_LANGUAGE_DAY:dd,HERZL_DAY:sd,JABOTINSKY_DAY:cd,LAG_BAOMER:Jl,PESACH_I:Pl,PESACH_II:Ul,PESACH_III_CHM:zl,PESACH_II_CHM:xl,PESACH_IV_CHM:jl,PESACH_SHENI:Gl,PESACH_VII:Vl,PESACH_VIII:Kl,PESACH_VI_CHM:Fl,PESACH_V_CHM:$l,PURIM:Yl,ROSH_HASHANA_II:Il,ROSH_HASHANA_LABEHEMOT:td,SHAVUOT:ql,SHAVUOT_I:Xl,SHAVUOT_II:Ql,SHMINI_ATZERET:Dl,SHUSHAN_PURIM:Rl,SIGD:ud,SIMCHAT_TORAH:kl,SUKKOT_I:wl,SUKKOT_II:bl,SUKKOT_III_CHM:Hl,SUKKOT_II_CHM:Ol,SUKKOT_IV_CHM:El,SUKKOT_VII_HOSHANA_RABA:_l,SUKKOT_VI_CHM:Cl,SUKKOT_V_CHM:Nl,TU_BAV:ed,TU_BISHVAT:Bl,YITZHAK_RABIN_MEMORIAL_DAY:id,YOM_HAALIYAH:hd,YOM_HAALIYAH_SCHOOL_OBSERVANCE:ld,YOM_KIPPUR:Ml,YOM_YERUSHALAYIM:rd,CANDLE_LIGHTING:"Candle lighting",HAVDALAH:"Havdalah",FAST_BEGINS:"Fast begins",FAST_ENDS:"Fast ends",BIUR_CHAMETZ:"Biur Chametz",SOF_ZMAN_ACHILAT_CHAMETZ:"Finish eating chametz",YIZKOR:"Yizkor"},fd=[{mm:ol,dd:2,desc:Il,flags:ul|ll,emoji:"🍏🍯"},{mm:ol,dd:9,desc:Tl,flags:yl|hl},{mm:ol,dd:10,desc:Ml,flags:ul|Me.MAJOR_FAST|ll},{mm:ol,dd:14,desc:vl,flags:dl|yl|hl,emoji:pl},{mm:ol,dd:15,desc:wl,flags:dl|ul|fl,emoji:pl},{mm:ol,dd:16,desc:bl,flags:dl|ul|ll,emoji:pl},{mm:ol,dd:17,desc:Hl,flags:dl|Sl,chmDay:1,emoji:pl},{mm:ol,dd:18,desc:El,flags:dl|Sl,chmDay:2,emoji:pl},{mm:ol,dd:19,desc:Nl,flags:dl|Sl,chmDay:3,emoji:pl},{mm:ol,dd:20,desc:Cl,flags:dl|Sl,chmDay:4,emoji:pl},{mm:ol,dd:22,desc:Dl,flags:dl|ul|fl},{mm:ol,dd:23,desc:kl,flags:dl|ul|ll},{mm:ol,dd:14,desc:vl,flags:ml|yl|hl,emoji:pl},{mm:ol,dd:15,desc:wl,flags:ml|ul|ll,emoji:pl},{mm:ol,dd:16,desc:Ol,flags:ml|Sl,chmDay:1,emoji:pl},{mm:ol,dd:17,desc:Hl,flags:ml|Sl,chmDay:2,emoji:pl},{mm:ol,dd:18,desc:El,flags:ml|Sl,chmDay:3,emoji:pl},{mm:ol,dd:19,desc:Nl,flags:ml|Sl,chmDay:4,emoji:pl},{mm:ol,dd:20,desc:Cl,flags:ml|Sl,chmDay:5,emoji:pl},{mm:ol,dd:22,desc:Dl,flags:ml|ul|ll},{mm:ol,dd:21,desc:_l,flags:hl|Sl,chmDay:-1,emoji:pl},{mm:sl,dd:15,desc:Bl,flags:gl,emoji:"🌳"},{mm:cl,dd:13,desc:Ll,flags:yl|gl,emoji:"🎭️📜"},{mm:cl,dd:14,desc:Yl,flags:gl,emoji:"🎭️📜"},{mm:cl,dd:15,desc:Rl,flags:gl,emoji:"🎭️📜"},{mm:tl,dd:14,desc:Zl,flags:ml|yl|hl,emoji:"🫓🍷"},{mm:tl,dd:15,desc:Pl,flags:ml|ul|ll,emoji:Al},{mm:tl,dd:16,desc:xl,flags:ml|Sl,chmDay:1,emoji:Al},{mm:tl,dd:17,desc:zl,flags:ml|Sl,chmDay:2,emoji:Al},{mm:tl,dd:18,desc:jl,flags:ml|Sl,chmDay:3,emoji:Al},{mm:tl,dd:19,desc:$l,flags:ml|Sl,chmDay:4,emoji:Al},{mm:tl,dd:20,desc:Fl,flags:ml|Sl|hl,chmDay:5,emoji:Al},{mm:tl,dd:21,desc:Vl,flags:ml|ul|ll,emoji:Al},{mm:tl,dd:14,desc:Zl,flags:dl|yl|hl,emoji:"🫓🍷"},{mm:tl,dd:15,desc:Pl,flags:dl|ul|fl,emoji:"🫓🍷"},{mm:tl,dd:16,desc:Ul,flags:dl|ul|ll,emoji:Al},{mm:tl,dd:17,desc:zl,flags:dl|Sl,chmDay:1,emoji:Al},{mm:tl,dd:18,desc:jl,flags:dl|Sl,chmDay:2,emoji:Al},{mm:tl,dd:19,desc:$l,flags:dl|Sl,chmDay:3,emoji:Al},{mm:tl,dd:20,desc:Fl,flags:dl|Sl|hl,chmDay:4,emoji:Al},{mm:tl,dd:21,desc:Vl,flags:dl|ul|fl,emoji:Al},{mm:tl,dd:22,desc:Kl,flags:dl|ul|ll,emoji:Al},{mm:nl,dd:14,desc:Gl,flags:gl},{mm:nl,dd:18,desc:Jl,flags:gl,emoji:"🔥"},{mm:rl,dd:5,desc:Wl,flags:yl|hl,emoji:"⛰️🌸"},{mm:rl,dd:6,desc:ql,flags:ml|ul|ll,emoji:"⛰️🌸"},{mm:rl,dd:6,desc:Xl,flags:dl|ul|fl,emoji:"⛰️🌸"},{mm:rl,dd:7,desc:Ql,flags:dl|ul|ll,emoji:"⛰️🌸"},{mm:m.AV,dd:15,desc:ed,flags:gl,emoji:"❤️"},{mm:al,dd:1,desc:td,flags:gl,emoji:"🐑"},{mm:al,dd:29,desc:nd,flags:yl|hl,emoji:"🍏🍯"}],gd=[{firstYear:5727,mm:nl,dd:28,desc:rd,chul:!0},{firstYear:5737,mm:m.KISLEV,dd:6,desc:ad,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:sl,dd:30,desc:od},{firstYear:5758,mm:il,dd:12,desc:id,friSatMovetoThu:!0},{firstYear:5764,mm:nl,dd:10,desc:sd,satPostponeToSun:!0},{firstYear:5765,mm:m.TAMUZ,dd:29,desc:cd,satPostponeToSun:!0},{firstYear:5769,mm:il,dd:29,desc:ud,chul:!0,suppressEmoji:!0,friSatMovetoThu:!0},{firstYear:5777,mm:tl,dd:10,desc:hd,chul:!0},{firstYear:5777,mm:il,dd:7,desc:ld},{firstYear:5773,mm:m.TEVET,dd:21,desc:dd,friSatMovetoThu:!0}];class yd extends we{constructor(e,t,n=0,r){super(e,t,n,r),"object"==typeof r&&null!==r&&Object.assign(this,r)}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(){const e=this.greg().getFullYear();if(e<100||e>2999)return;const t="https://www.hebcal.com/holidays/"+gh(this.basename())+"-"+this.urlDateSuffix();return this.getFlags()&Me.IL_ONLY?t+"?i=on":t}urlDateSuffix(){const e=this.greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Me.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case md.LAG_BAOMER:case md.LEIL_SELICHOT:case md.PESACH_SHENI:case md.EREV_PURIM:case md.PURIM_KATAN:case md.SHUSHAN_PURIM:case md.TU_BAV:case md.TU_BISHVAT:case md.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return fh(super.render(e))}renderBrief(e){return fh(super.renderBrief(e))}}class Sd extends yd{urlDateSuffix(){return ee(this.greg()).replaceAll("-","")}}const Ad=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];class pd extends yd{constructor(e,t,n,r){if(super(e,t,n),this.chanukahDay=r,this.emoji="🕎",8!==r){const e=r?r+1:1;this.emoji+=Ad[e]}}urlDateSuffix(){const e=this.greg();let t=e.getFullYear();return 0===e.getMonth()&&t--,String(t)}}class Id extends yd{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return se.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Td="Rosh Chodesh";class Md extends yd{constructor(e,t){super(e,`${Td} ${t}`,Me.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=fh(se.gettext(t,e));return se.gettext(Td,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const vd="Yom Kippur Katan";class wd extends yd{constructor(e,t){super(e,`${vd} ${t}`,Me.MINOR_FAST|Me.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=fh(se.gettext(this.nextMonthName,e));return se.gettext(vd,e)+" "+t}renderBrief(e){return se.gettext(vd,e)}url(){}}function bd(e,t){const n=fe.isHDate(e)?e:new fe(e),r=n.toString(),a=em(n.getFullYear()).get(r);if(void 0===t||void 0===a)return a;return a.filter(e=>e.observedIn(t))}const Hd=Me.CHAG,Ed=Me.IL_ONLY,Nd=Me.LIGHT_CANDLES_TZEIS,Cd=Me.CHANUKAH_CANDLES,Dd=Me.BEHAB,kd=Me.MINOR_FAST,Od=Me.SPECIAL_SHABBAT,_d=Me.MODERN_HOLIDAY,Bd=Me.MAJOR_FAST,Ld=Me.MINOR_HOLIDAY,Yd=Me.EREV,Rd=0,Zd=2,Pd=4,Ud=5,xd=6,zd=m.NISAN,jd=m.IYYAR,$d=m.TAMUZ,Fd=m.AV,Vd=m.TISHREI,Kd=m.CHESHVAN,Gd=m.KISLEV,Jd=m.TEVET,Wd=m.ADAR_I,qd=m.ADAR_II,Xd={emoji:"🇮🇱"},Qd=new rh({maxSize:120});function em(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=Qd.get(e);if(t)return t;const n=new fe(1,Vd,e),r=new fe(15,zd,e),a=new Map;function o(...e){for(const t of e){const e=t.date.toString(),n=a.get(e);"object"==typeof n?n[0].getFlags()&Yd?n.unshift(t):n.push(t):a.set(e,[t])}}for(const t of fd){const n=new fe(t.dd,t.mm,e),r={};t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay);o(new yd(n,t.desc,t.flags,r))}o(new Id(n,e,Hd|Nd));const i=n.getDay()===Pd?4:3;o(new yd(new fe(i,Vd,e),md.TZOM_GEDALIAH,kd)),o(new yd(new fe(fe.dayOnOrBefore(xd,7+n.abs())),md.SHABBAT_SHUVA,Od));const s=fe.shortKislev(e)?new fe(1,Jd,e):new fe(30,Gd,e);o(new yd(s,md.CHAG_HABANOT,Ld)),o(new pd(new fe(24,Gd,e),md.CHANUKAH_1_CANDLE,Yd|Ld|Cd,void 0));for(let t=2;t<=8;t++){const n=new fe(23+t,Gd,e);o(new pd(n,`Chanukah: ${t} Candles`,Ld|Cd,t-1))}o(new pd(new fe(32,Gd,e),md.CHANUKAH_8TH_DAY,Ld,8)),o(new Sd(new fe(10,Jd,e),md.ASARA_BTEVET,kd));const c=r.abs();o(new yd(new fe(fe.dayOnOrBefore(xd,c-43)),md.SHABBAT_SHEKALIM,Od),new yd(new fe(fe.dayOnOrBefore(xd,c-30)),md.SHABBAT_ZACHOR,Od),new yd(new fe(c-(r.getDay()===Zd?33:31)),md.TAANIT_ESTHER,kd));const u=fe.dayOnOrBefore(xd,c-14);o(new yd(new fe(u-7),md.SHABBAT_PARAH,Od),new yd(new fe(u),md.SHABBAT_HACHODESH,Od),new yd(new fe(fe.dayOnOrBefore(xd,c-1)),md.SHABBAT_HAGADOL,Od),new yd(r.prev().getDay()===xd?r.onOrBefore(Pd):new fe(14,zd,e),md.TAANIT_BECHOROT,kd)),o(new yd(new fe(fe.dayOnOrBefore(xd,new fe(1,Vd,e+1).abs()-4)),md.LEIL_SELICHOT,Ld,{emoji:"🕍"})),r.getDay()===Rd&&o(new yd(new fe(16,qd,e),md.PURIM_MESHULASH,Ld)),fe.isLeapYear(e)&&(o(new yd(new fe(14,Wd,e),md.PURIM_KATAN,Ld,{emoji:"🎭️"})),o(new yd(new fe(15,Wd,e),md.SHUSHAN_PURIM_KATAN,Ld,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new fe(27,Eh,e);return 5===t.getDay()?t=new fe(26,Eh,e):0===t.getDay()&&(t=new fe(28,Eh,e)),t}(e);h&&o(new yd(h,md.YOM_HASHOAH,_d));const l=Ch(e);l&&o(new yd(l,md.YOM_HAZIKARON,_d,Xd),new yd(l.next(),md.YOM_HAATZMA_UT,_d,Xd));for(const t of gd)if(e>=t.firstYear){let n=new fe(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||r!==Ud&&r!==xd?t.friPostponeToSun&&r===Ud?n=new fe(n.abs()+2):t.satPostponeToSun&&r===xd&&(n=n.next()):n=n.onOrBefore(Pd);const a=t.chul?_d:_d|Ed,i=new yd(n,t.desc,a);t.suppressEmoji||(i.emoji="🇮🇱"),o(i)}let d,f=new fe(17,$d,e);f.getDay()===xd&&(f=new fe(18,$d,e),d={observed:!0}),o(new yd(f,md.TZOM_TAMMUZ,kd,d));let g,y=new fe(9,Fd,e),S=md.TISHA_BAV;y.getDay()===xd&&(y=y.next(),g={observed:!0},S+=" (observed)");const A=y.abs();o(new yd(new fe(fe.dayOnOrBefore(xd,A)),md.SHABBAT_CHAZON,Od),new yd(y.prev(),md.EREV_TISHA_BAV,Yd|Bd,g),new yd(y,S,Bd,g),new yd(new fe(fe.dayOnOrBefore(xd,A+7)),md.SHABBAT_NACHAMU,Od));const p=fe.monthsInYear(e);for(let t=1;t<=p;t++){const n=fe.getMonthName(t,e);30===(t===zd?fe.daysInMonth(fe.monthsInYear(e-1),e-1):fe.daysInMonth(t-1,e))?(o(new Md(new fe(1,t,e),n)),o(new Md(new fe(30,t-1,e),n))):t!==Vd&&o(new Md(new fe(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===Vd||n===m.CHESHVAN||n===Jd)continue;let r=new fe(29,t,e);const a=r.getDay();a!==Ud&&a!==xd||(r=r.onOrBefore(Pd));const i=fe.getMonthName(n,e);o(new wd(r,i))}for(const t of[Kd,jd]){const n=new fe(1,t,e);let r=new fe(fe.dayOnOrBefore(xd,n.abs()+6));r.abs()===n.abs()&&(r=new fe(r.abs()+7));const a=[2,5,9].map(e=>new fe(r.abs()+e));t===jd&&14===a[2].getDate()&&(a[2]=new fe(17,jd,e));for(const e of a)o(new yd(e,md.TAANIT_BEHAB,kd|Dd))}const I=el(e,!1).find(15);o(new yd(I,md.SHABBAT_SHIRAH,Od));const T=function(e){const t=fe.isLeapYear(e),n=t?qd:zd,r=t?20:1,a=fe.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=a+e;if((t+1373429)%10227==172)return t}return 0}(e);if(T){const e=new fe(T);o(new yd(e,md.BIRKAT_HACHAMAH,Ld,{emoji:"☀️"}))}return Qd.set(e,a),a}const tm=Me.LIGHT_CANDLES|Me.LIGHT_CANDLES_TZEIS;const nm=m.NISAN,rm=m.SIVAN,am=m.TAMUZ,om=m.AV;const im=Me.MAJOR_FAST|Me.MINOR_FAST,sm=Me.EREV;const cm=md.HAVDALAH,um=md.CANDLE_LIGHTING;class hm extends we{constructor(e,t,n,r,a,o,i){super(e,t,n),this.eventTime=Hh.roundTime(r),this.location=a;const s=a.getTimeFormatter();this.eventTimeStr=Hh.formatTime(this.eventTime,s);const c={...i,location:a};this.fmtTime=uh(this.eventTimeStr,"pm",c),void 0!==o&&(this.linkedEvent=o)}render(e){return se.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return se.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case um:return["candles"];case cm:return["havdalah"];case md.FAST_BEGINS:case md.FAST_ENDS:return["zmanim","fast"];case md.SOF_ZMAN_ACHILAT_CHAMETZ:return["zmanim","achilasChametz"];case md.BIUR_CHAMETZ:return["zmanim","biurChametz"]}return["unknown"]}}class lm extends hm{constructor(e,t,n,r,a,o){super(e,um,t,n,r,a,o)}getEmoji(){return"🕯️"}}class dm extends hm{constructor(e,t,n,r,a,o,i){super(e,cm,t,n,r,o,i),a&&(this.havdalahMins=a)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=se.gettext(this.getDesc(),e);if(this.havdalahMins){const n=se.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const mm=Me.LIGHT_CANDLES,fm=Me.LIGHT_CANDLES_TZEIS;function gm(e,t,n,r,a){let o=!1,i=a,s=e?e.getFlags():mm;void 0!==e?r||(s&(fm|Me.CHANUKAH_CANDLES)?i=!0:s&Me.YOM_TOV_ENDS&&(o=!0,i=!0)):a&&(o=!0,s=fm);const c=Number(i?n.havdalahMins:n.candleLightingMins),u=n.location,h=Boolean(n.useElevation),l=new Hh(u,t,h),d=i&&!c?l.tzeit(n.havdalahDeg):l.sunsetOffset(c,!0);if(!isNaN(d.getTime()))return o?new dm(t,s,d,u,n.havdalahMins,e,n):(s|=mm,new lm(t,s,d,u,e,n))}const ym=md.FAST_BEGINS,Sm=md.FAST_ENDS;function Am(e,t,n){if(t)return e.tzeit(6.45);const r=n.fastEndMins;if("number"==typeof r&&0!==r)return e.sunsetOffset(Math.abs(r),!0);const a=n.fastEndDeg;return"number"==typeof a&&0!==a?e.tzeit(Math.abs(a)):n.il?e.sunsetOffset(15,!0):e.tzeit(7.0833333)}class pm extends yd{constructor(e,t,n){super(e.getDate(),e.getDesc(),e.getFlags()),this.linkedEvent=e,this.startEvent=t,this.endEvent=n}render(e){return this.linkedEvent.render(e)}renderBrief(e){return this.linkedEvent.renderBrief(e)}urlDateSuffix(){return this.linkedEvent.urlDateSuffix()}url(){return this.linkedEvent.url()}getEmoji(){return this.linkedEvent.getEmoji()}getCategories(){return this.linkedEvent.getCategories()}}function Im(e,t,n,r){const a=r.location,o=e.getDate();return new hm(o,n,e.getFlags(),t,a,e,r)}class Tm extends pd{constructor(e,t,n){super(e.getDate(),e.getDesc(),e.getFlags(),e.chanukahDay),this.eventTime=Hh.roundTime(t);const r=n.getTimeFormatter();this.eventTimeStr=Hh.formatTime(this.eventTime,r),this.location=n,this.emoji=e.emoji}}var Mm={ps67lines:["אֱלֹהִים יְחָנֵּנוּ וִיבָרְכֵנוּ יָאֵר־פָּנָיו אִתָּנוּ סֶלָה","לָדַעַת בָּאָרֶץ דַּרְכֶּךָ בְּכָל־גּוֹיִם יְשׁוּעָתֶךָ","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","יִשְׂמְחוּ וִירַנְּנוּ לְאֻמִּים כִּי־תִשְׁפֹּט עַמִּים מִישׁוֹר וּלְאֻמִּים בָּאָרֶץ תַּנחֵם סֶלָה","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","אֶרֶץ נָתְנָה יְבוּלָהּ יְבָרְכֵנוּ אֱלֹהִים אֱלֹהֵינוּ","יְבָרְכֵנוּ אֱלֹהִים וְיִירְאוּ אוֹתוֹ כָּל־אַפְסֵי־אָרֶץ"],lamnatzeachLetters:"ישמחווירננולאמיםכיתשפוטעמיםמישורולאמיםבארץתנחםסלה",anaBekoach:["אָנָּא","בְּכֹחַ","גְּדֻלַּת","יְמִינְךָ","תַּתִּיר","צְרוּרָה","אב״ג ית״ץ","קַבֵּל","רִנַּת","עַמְּךָ","שַׂגְּבֵנוּ","טַהֲרֵנוּ","נוֹרָא","קר״ע שט״ן","נָא","גִבּוֹר","דּוֹרְשֵׁי","יִחוּדְךָ","כְּבָבַת","שָׁמְרֵם","נג״ד יכ״ש","בָּרְכֵם","טַהֲרֵם","רַחֲמֵי","צִדְקָתְךָ","תָּמִיד","גָּמְלֵם","בט״ר צת״ג","חֲסִין","קָדוֹשׁ","בְּרֹב","טוּבְךָ","נַהֵל","עֲדָתֶךָ","חק״ב תנ״ע","יָחִיד","גֵּאֶה","לְעַמְּךָ","פְּנֵה","זוֹכְרֵי","קְדֻשָּׁתֶךָ","יג״ל פז״ק","שַׁוְעָתֵנוּ","קַבֵּל","וּשְׁמַע","צַעֲקָתֵנוּ","יוֹדֵעַ","תַּעֲלוּמוֹת","שק״ו צי״ת"]};const vm={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],pfxWords:null},he:{infix:null,infix26:null,words:["","חֶֽסֶד","גְּבוּרָה","תִּפְאֶֽרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַלְכוּת"],pfxWords:["","שֶׁבְּחֶֽסֶד","שֶׁבִּגְבוּרָה","שֶׁבְּתִפְאֶֽרֶת","שֶׁבְּנֶֽצַח","שֶׁבְּהוֹד","שֶׁבִּיְסוֹד","שֶׁבְּמַלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"],pfxWords:null}};function wm(e){return[Math.floor((e-1)/7)+1,e%7||7]}const bm=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Hm=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Em="שְׁנֵי",Nm="יָמִים",Cm=Em+" "+Nm,Dm="שָׁבוּעוֹת",km="יוֹם",Om=km+" "+Hm[1],_m="עָשָׂר";const Bm=Mm.anaBekoach,Lm=Mm.ps67lines.flatMap(e=>e.split(/[ ־]/)),Ym=Mm.lamnatzeachLetters.split("");class Rm extends we{constructor(e,t){super(e,`Omer ${t}`,Me.OMER_COUNT),function(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}(t),this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(e="en"){"he"!==e&&"translit"!==e&&(e="en");const[t,n]=wm(this.omer),r=vm[e],a=r.pfxWords,o=r.words,i=a?a[t]:o[t];return(o[n]+" "+(a?"":2===t||6===t?r.infix26:r.infix)+i).normalize()}render(e){const t=se.isHebrewLocale(e),n=this.omer;return(t?V(n):se.ordinal(n,e))+" "+se.gettext("day of the Omer",e)}renderBrief(e){return se.gettext("Omer",e)+" "+se.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;let e;const t=this.omer;return e=t<=20?9312+t-1:t<=35?12881+t-21:12977+t-36,String.fromCodePoint(e)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){e=(e||"en").toLowerCase();const t=se.isHebrewLocale(e)?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";if(11===e?r+="אַחַד "+_m:12===e?r+="שְׁנֵים "+_m:12<e&&e<20?r+=Hm[n]+" "+_m:e>9&&(r+=Hm[n],n&&(r+=" ",r+=3===t?"וּ":"וְ")),e>2?((e>20||10===e||20===e)&&(r+=bm[t]),r+=e<11?Hm[n]+" "+Nm+" ":" יוֹם "):r+=1===e?Om+" ":Cm+" ",e>6){r=r.trim(),r+=", שֶׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Hm[t]+" "+Dm+" ":1===t?"שָׁבֽוּעַ "+Hm[1]+" ":Em+" "+Dm+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?Hm[n]+" "+Nm+" ":1===n?Om+" ":Cm+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(this.omer):function(e){const[t,n]=wm(e);let r=`Today is ${e} ${1===e?"day":"days"}`;if(t>1||7===e){const e=7===n,a=e?t:t-1;r+=`, which are ${a} ${1===a?"week":"weeks"}`,e||(r+=` and ${n} ${1===n?"day":"days"}`)}return r+" of the Omer"}(this.omer);return"he-x-nonikud"===e?se.hebrewStripNikkud(t):t}url(){const e=this.getDate().getFullYear();if(!(e<5e3||e>6759))return`https://www.hebcal.com/omer/${e}/${this.omer}`}getLamnatzeachWord(){return Lm[this.omer-1]}getLamnatzeachLetter(){return Ym[this.omer-1]}getAnaBekoachWord(){return Bm[this.omer-1].normalize()}}function Zm(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const Pm={shacharit:!1,mincha:!1,allCongs:!1};function Um(e,t){return xm(e,t,!0)}function xm(e,t,n){const r=function(e,t){const n=fe.isLeapYear(e),r=fe.monthsInYear(e);let a=new fe(9,m.AV,e);6===a.getDay()&&(a=a.next());let o=new fe(15,m.ADAR_II,e);6===o.getDay()&&(o=o.next());const i=[new fe(2,m.TISHREI,e)].concat(Zm(1,r).map(t=>new fe(1,t,e)),Zm(1,r).filter(t=>30===fe.daysInMonth(t,e)).map(t=>new fe(30,t,e)),Zm(1,fe.daysInMonth(m.NISAN,e)).map(t=>new fe(t,m.NISAN,e)),new fe(18,m.IYYAR,e),Zm(1,8-(t?1:0)).map(t=>new fe(t,m.SIVAN,e)),a,new fe(15,m.AV,e),new fe(29,m.ELUL,e),Zm(9,24-(t?1:0)).map(t=>new fe(t,m.TISHREI,e)),Zm(25,33).map(t=>new fe(t,m.KISLEV,e)),new fe(15,m.SHVAT,e),new fe(14,m.ADAR_II,e),o,n?new fe(14,m.ADAR_I,e):[]),s=[new fe(14,m.IYYAR,e)].concat(Zm(1,13).map(t=>new fe(t,m.SIVAN,e)),Zm(20,31).map(t=>new fe(t,m.TISHREI,e)),e>=5708?Ch(e).next():[],e>=5727?new fe(28,m.IYYAR,e):[]),c=[new fe(29,m.ELUL,e-1),new fe(9,m.TISHREI,e),new fe(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.yy,t),a=e.abs();if(r.none.includes(a))return Pm;const o=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};r.some.includes(a)||(i.allCongs=!0),6!==o&&(i.shacharit=!0);const s=a+1;if(n&&!r.yesPrev.includes(s)){const e=xm(new fe(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==o;return!i.allCongs||i.mincha||i.shacharit?i:Pm}class zm extends we{constructor(e){if(1!==arguments.length)throw new TypeError(`ParshaEvent constructor takes a single SedraResult argument; got ${arguments.length} arguments`);if("object"!=typeof e||null===e||!Array.isArray(e.parsha)||0===e.parsha.length||e.parsha.length>2||!fe.isHDate(e.hdate))throw new TypeError(`Invalid SedraResult argument: ${JSON.stringify(e)}`);const t="Parashat "+e.parsha.join("-");super(e.hdate,t,Me.PARSHA_HASHAVUA),this.p=e}render(e){return function(e,t){let n=se.gettext(e[0],t);2===e.length&&(n+=(se.isHebrewLocale(t)?"־":"-")+se.gettext(e[1],t));return n=fh(n),(se.gettext("Parashat",t)+" "+n).normalize()}(this.p.parsha,e)}basename(){return this.p.parsha.join("-")}url(){const e=this.greg().getFullYear();if(e<100||e>2999)return;const t=this.urlDateSuffix(),n="https://www.hebcal.com/sedrot/"+gh(this.basename())+"-"+t;return this.p.il?n+"?i=on":n}urlDateSuffix(){return ee(this.greg()).replaceAll("-","")}get parsha(){return this.p.parsha}}const jm=m.TISHREI;function $m(e){if("number"==typeof e)return e;if(c(e))return h(e);if(fe.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}const Fm=2e3;function Vm(e){const t=void 0!==e.start,n=void 0!==e.end;if(t!==n)throw new TypeError("options.start requires options.end");if(t&&n){const t=$m(e.start),n=$m(e.end);if(n-t>73e4)throw new RangeError("Date range exceeds 2000 years");return[t,n]}const r=Boolean(e.isHebrewYear),a=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new fe).getFullYear():(new Date).getFullYear()}(e);if(isNaN(a))throw new RangeError(`Invalid year ${e.year}`);if(r&&a<1)throw new RangeError(`Invalid Hebrew year ${a}`);const o=function(e){if(e.month){if(e.isHebrewYear)return fe.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),i=Number(e.numYears)||1;if(i>Fm)throw new RangeError("options.numYears exceeds 2000");return r?function(e,t,n){const r=new fe(1,e||jm,t);let a=r.abs();const o=e?a+r.daysInMonth():new fe(1,jm,t+n).abs()-1;!e&&t>1&&a--;return[a,o]}(o,a,i):function(e,t,n){const r=e?e-1:0,a=new Date(t,r,1);t<100&&a.setFullYear(t);const o=h(a);let i;if(e)i=o+s(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),i=h(r)-1}return[o,i]}(o,a,i)}const Km=new Map;class Gm{static addCalendar(e,t,n){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Km.set(e.toLowerCase(),{fn:t,startDate:n})}static lookup(e,t,n){const r=Km.get(e.toLowerCase());return"object"==typeof r?r.fn(t,n):null}static getStartDate(e){const t=Km.get(e.toLowerCase());if("object"==typeof t)return t.startDate}static has(e){return Km.has(e.toLowerCase())}static getCalendars(){return Array.from(Km.keys())}}const Jm="Shabbat Mevarchim Chodesh";class Wm extends we{constructor(e,t,n,r){if(super(e,`${Jm} ${t}`,Me.SHABBAT_MEVARCHIM),this.monthName=se.gettext(t,r),n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===fe.monthsInYear(t)?m.NISAN:n+1,a=new Ih(t,r);this.memo=a.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=fh(se.gettext(this.monthName,e));return se.gettext(Jm,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}function qm(e={}){!function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof sh))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");if("number"==typeof e.fastEndDeg&&"number"==typeof e.fastEndMins)throw new TypeError("options.fastEndDeg and options.fastEndMins are mutually exclusive");const n=e.candleLightingMins;let r="number"!=typeof n||isNaN(n)?18:Math.trunc(n);t.getIsrael()&&18===Math.abs(r)&&(r=function(e){const t=e.getGeoId();if(t){const e=kf[t];if("number"==typeof e)return e}const n=e.getShortName();if(n){const e=Df[n];if("number"==typeof e)return e}return 20}(t));e.candleLightingMins=-1*Math.abs(r),"number"==typeof e.havdalahMins?e.havdalahMins=Math.trunc(Math.abs(e.havdalahMins)):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=Of;"number"==typeof e.fastEndDeg&&(e.fastEndDeg=Math.abs(e.fastEndDeg));"number"==typeof e.fastEndMins&&(e.fastEndMins=Math.trunc(Math.abs(e.fastEndMins)))}(e={...e});const t=e.location=e.location||Bf,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=function(e){if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&ff&&delete e.noRoshChodesh;t&df&&delete e.noModern;t&hf&&delete e.noMinorFast;t&lf&&delete e.noSpecialShabbat;t&gf&&(e.sedrot=!0);t&(yf|Sf|Af|pf)&&(e.dailyLearning=e.dailyLearning||{},t&yf&&(e.dailyLearning.dafYomi=!0),t&Sf&&(e.dailyLearning.mishnaYomi=!0),t&Af&&(e.dailyLearning.nachYomi=!0),t&pf&&(e.dailyLearning.yerushalmi=1));t&If&&(e.omer=!0);t&Tf&&(e.shabbatMevarchim=!0);t&bf&&(e.yomKippurKatan=!0);t&Ef&&(e.behab=!0);t&Hf&&(e.yizkor=!0);return t}(e);const t=e.il||e.location?.getIsrael()||!1;let n=0;e.noHolidays||(n|=ff|af|hf|lf|df|mf|Mf|vf|wf|rf|cf|uf);e.candlelighting&&(n|=rf|cf|af);e.noRoshChodesh&&(n&=~ff);e.noModern&&(n&=~df);e.noMinorFast&&(n&=~hf);e.noSpecialShabbat&&(n&=~lf,n&=~Tf);n|=t?sf:of;e.sedrot&&(n|=gf);e.omer&&(n|=If);e.shabbatMevarchim&&(n|=Tf);e.yomKippurKatan&&(n|=bf);e.behab&&(n|=Ef);e.yizkor&&(n|=Hf);const r=e.dailyLearning;"object"==typeof r&&null!==r&&(r.dafYomi&&(n|=yf),r.mishnaYomi&&(n|=Sf),r.nachYomi&&(n|=Af),r.yerushalmi&&(n|=pf));return n}(e),e.locale){const t=e.locale;if(t&&"string"!=typeof t)throw new TypeError(`Invalid options.locale: ${t}`);if(!se.hasLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else e.ashkenazi?e.locale="ashkenazi":e.locale="en";const a=[];let o,i,s=-1,c=-1,u=-1;const h=Vm(e);!function(e){for(const t of Object.keys(e))void 0!==Cf[t]||Nf.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),Nf.add(t));if(e.dailyLearning)for(const[t,n]of Object.entries(e.dailyLearning)){const e=Rf(t,n);Nf.has(t)||Gm.has(e)||(console.warn(`Ignoring unrecognized DailyLearning calendar: ${t}`),Nf.add(t))}}(e);const d=h[0],f=h[1],g=l(d).getFullYear();(g<100||g>9999)&&(e.candlelighting=!1,e.sedrot=!1,e.dailyLearning={});for(let t=d;t<=f;t++){const h=new fe(t),l=h.getFullYear();l!==u&&(u=l,i=em(u),e.sedrot&&(o=el(u,n)),e.omer&&(s=fe.hebrew2abs(u,ef,16),c=fe.hebrew2abs(u,tf,5)));const d=a.length,f=h.getDay(),g=f===Xm,y=f===Qm;let S;const A=(i.get(h.toString())||[]).filter(e=>e.observedIn(n));for(const t of A)S=Lf(S,a,t,e,g,y,r);const p=h.getMonth(),I=h.getDate();if(g&&e.candlelighting&&p===m.NISAN&&13===I){const t=Uf(h,e);t&&a.push(t)}if(e.sedrot&&y){const e=o.lookup(t);e.chag||a.push(new zm(e))}if(e.yizkor&&(p===m.TISHREI&&(10===I||22===I)||p===ef&&I===(n?21:22)||p===tf&&I===(n?6:7))){const e=A[0],t=new we(h,md.YIZKOR,Me.YIZKOR,{emoji:"🕯️",linkedEvent:e});a.push(t)}const T=e.dailyLearning;let M=0;if("object"==typeof T&&null!==T){const e=Zf(h,T,n);M=e.length,M&&a.push(...e)}if(e.omer&&t>=s&&t<=c){const n=Pf(h,t-s+1,e);a.push(n)}if(y&&(e.molad||e.shabbatMevarchim)){const t=Yf(h,e);a.push(...t)}if(!S&&e.candlelighting&&(g||y)&&(S=gm(void 0,h,e,g,y),g&&S&&o)){const n=o.lookup(t);if(n.chag)S.memo=se.gettext(n.parsha[0],e.locale);else{const t=new zm(n);S.memo=t.render(e.locale)}}if(S instanceof dm&&(0===e.havdalahMins||0===e.havdalahDeg)&&(S=void 0),S&&a.push(S),e.addHebrewDates||e.addHebrewDatesForEvents&&d!==a.length-M){const e=new be(h);d===a.length?a.push(e):a.splice(d,0,e)}}return a}const Xm=5,Qm=6,ef=m.NISAN,tf=m.SIVAN,nf=m.ELUL,rf=Me.LIGHT_CANDLES,af=Me.YOM_TOV_ENDS,of=Me.CHUL_ONLY,sf=Me.IL_ONLY,cf=Me.LIGHT_CANDLES_TZEIS,uf=Me.CHANUKAH_CANDLES,hf=Me.MINOR_FAST,lf=Me.SPECIAL_SHABBAT,df=Me.MODERN_HOLIDAY,mf=Me.MAJOR_FAST,ff=Me.ROSH_CHODESH,gf=Me.PARSHA_HASHAVUA,yf=Me.DAF_YOMI,Sf=Me.MISHNA_YOMI,Af=Me.NACH_YOMI,pf=Me.YERUSHALMI_YOMI,If=Me.OMER_COUNT,Tf=Me.SHABBAT_MEVARCHIM,Mf=Me.MINOR_HOLIDAY,vf=Me.EREV,wf=Me.CHOL_HAMOED,bf=Me.YOM_KIPPUR_KATAN,Hf=Me.YIZKOR,Ef=Me.BEHAB,Nf=new Set,Cf={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,fastEndMins: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,mask:1,yomKippurKatan:1,behab:1,hour12:1,dailyLearning:1,useElevation:1,yizkor:1};const Df={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},kf={281184:40,294801:30,293067:30},Of=8.5;const _f=rf|cf|uf|af,Bf=new sh(0,0,!1,"UTC");function Lf(e,t,n,r,a,o,i){const s=r.il||!1;if(!n.observedIn(s))return e;const c=n.getFlags();if(!r.yomKippurKatan&&c&bf||!r.behab&&c&Ef||r.noModern&&c&df)return e;if(r.candlelighting&&n.getDesc()===md.EREV_PESACH){const e=function(e,t){const n=[],r=t.location,a=Boolean(t.useElevation),o=e.getDate(),i=new Hh(r,o,a).sofZmanTfilla();if(isNaN(i.getTime()))return[];const s=new hm(o,md.SOF_ZMAN_ACHILAT_CHAMETZ,0,i,r,void 0,t);if(s.emoji="🍞",n.push(s),o.getDay()!==Qm){const e=Uf(o,t);e&&n.push(e)}return n}(n,r);e.length&&t.push(...e)}const u=Boolean(c&mf),h=Boolean(c&hf);let l;if(r.candlelighting&&(u||h)&&n.getDesc()!==md.YOM_KIPPUR&&(n=l=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)throw new RangeError("YK does not require this function");const r=e.getDate(),a=r.greg(),o=t.location,i=Boolean(t.useElevation),s=new Hh(o,a,i);let c,u;if("Erev Tish'a B'Av"===n){const n=s.sunset();isNaN(n.getTime())||(c=Im(e,n,ym,t))}else if(n.startsWith("Tish'a B'Av")){const n=Am(s,!0,t);isNaN(n.getTime())||(u=Im(e,n,Sm,t))}else{const n=s.alotHaShachar();if(isNaN(n.getTime())||(c=Im(e,n,ym,t)),5!==a.getDay()&&(14!==r.getDate()||r.getMonth()!==m.NISAN)){const n=Am(s,!1,t);isNaN(n.getTime())||(u=Im(e,n,Sm,t))}}const h=new pm(e,c,u);return Object.assign(h,e),h}(n,r),l.startEvent&&(u||h&&!r.noMinorFast)&&t.push(l.startEvent)),c&Number(r.mask)||!c&&!i){if(r.candlelighting&&c&_f){const t=n.getDate();if(e=gm(n,t,r,a,o),c&uf&&e&&!r.noHolidays){const t=function(e,t){const n=e.getDate(),r=t.location,a=Boolean(t.useElevation),o=new Hh(r,n.greg(),a).beinHaShmashos();return isNaN(o.getTime())?null:new Tm(e,o,r)}(n,r);t&&((a||o)&&(t.eventTime=e.eventTime,t.eventTimeStr=e.eventTimeStr),n=t),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&c&bf||r.behab&&c&Ef)&&t.push(n)}return(u||h&&!r.noMinorFast)&&l?.endEvent&&t.push(l.endEvent),e}function Yf(e,t){const n=[],r=e.getMonth(),a=e.getDate();if(r!==nf&&a>=23&&a<=29){const a=e.getFullYear(),o=r===fe.monthsInYear(a)?ef:r+1;if(t.molad&&n.push(new Th(e,a,o,t)),t.shabbatMevarchim){const r=fe.getMonthName(o,a),i=new Ih(a,o).render(t.locale,t);n.push(new Wm(e,r,i,t.locale))}}return n}function Rf(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function Zf(e,t,n){const r=[];for(const[a,o]of Object.entries(t))if(o){const t=Rf(a,o),i=Gm.lookup(t,e,n);i&&r.push(i)}return r}function Pf(e,t,n){const r=new Rm(e,t);if(n.candlelighting){const t=n.location,a=new Hh(t,e.prev(),!1).tzeit(7.0833);isNaN(a.getTime())||(r.alarm=a)}return r}function Uf(e,t){const n=t.location,r=Boolean(t.useElevation),a=new Hh(n,e,r).sofZmanBiurChametzGRA();if(isNaN(a.getTime()))return;const o=new hm(e,md.BIUR_CHAMETZ,0,a,n,void 0,t);return o.emoji="🔥",o}function xf(e,t){return 0!==(bd(e,t)||[]).filter(e=>e.getFlags()&Me.CHAG).length}return e.AsaraBTevetEvent=Sd,e.CandleLightingEvent=lm,e.ChanukahEvent=pd,e.DailyLearning=Gm,e.Event=we,e.FastDayEvent=pm,e.GeoLocation=Qu,e.HDate=fe,e.HavdalahEvent=dm,e.HebrewCalendar=class{constructor(){}static calendar(e={}){return qm(e)}static getBirthdayOrAnniversary(e,t){return pe(e,t)}static getYahrzeit(e,t){return Ae(e,t)}static getHolidaysForYear(e){return em(e)}static getHolidaysForYearArray(e,t){return function(e,t){const n=em(e),r=fe.hebrew2abs(e,Vd,1),a=fe.hebrew2abs(e+1,Vd,1)-1;let o=[];for(let e=r;e<=a;e++){const r=new fe(e),a=n.get(r.toString());if(a){const e=a.filter(e=>e.observedIn(t));o=o.concat(e)}}return o}(e,t)}static getHolidaysOnDate(e,t){return bd(e,t)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new fe(e),r=n.after(5),a=n.next();return!(!xf(r,t)||xf(n,t)||!xf(a,t))}static reformatTimeStr(e,t,n){return uh(e,t,n)}static version(){return t}static getSedra(e,t){return el(e,t)}static hallel(e,t){const n=bd(e,t);return n?function(e,t){const n=t.abs();for(const t of e){const e=t.getDate();if(e.abs()!==n)continue;const r=t.getDesc(),a=e.getMonth(),o=e.getDate(),i=t.getFlags();if(r.startsWith("Chanukah")||r.startsWith("Shavuot")||r.startsWith("Sukkot")||a===m.NISAN&&(15===o||16===o)&&i&Me.CHAG||r===md.YOM_HAATZMA_UT||r===md.YOM_YERUSHALAYIM)return 2;if(i&Me.ROSH_CHODESH||r.startsWith("Pesach")&&r!==md.PESACH_I&&r!==md.PESACH_II)return 1}return 0}(n,e):0}static tachanun(e,t){return Um(e,t)}},e.HebrewDateEvent=be,e.HolidayEvent=yd,e.Locale=se,e.Location=sh,e.MevarchimChodeshEvent=Wm,e.Molad=Ih,e.MoladEvent=Th,e.NOAACalculator=th,e.OmerEvent=Rm,e.ParshaEvent=zm,e.RoshChodeshEvent=Md,e.RoshHashanaEvent=Id,e.Sedra=Dh,e.TimedChanukahEvent=Tm,e.TimedEvent=hm,e.YomKippurKatanEvent=wd,e.Zmanim=Hh,e.calculateMolad=dh,e.calendar=qm,e.flags=Me,e.gematriya=V,e.gematriyaStrToNum=K,e.getHolidaysOnDate=bd,e.getMoladAsDate=mh,e.getSedra=el,e.holidayDesc=md,e.isAssurBemlacha=function(e,t,n){const r=X(t.getTzid(),e),a=parseInt(r.substring(0,4),10),o=parseInt(r.substring(5,7),10),i=parseInt(r.substring(8,10),10),s=new fe(new Date(a,o-1,i)),c=new Hh(t,s,n),u=c.sunset().getTime();if(isNaN(u))throw new Error("Could not determine sunset");const h=t.getIsrael(),l=e.getTime(),d=s.getDay(),m=bd(s,h)||[];if(function(e,t){return 5===e||!!t.find(e=>e.getFlags()&tm)}(d,m)&&l>=u)return!0;if(function(e,t){return 6===e||!!t.find(e=>e.getFlags()&Me.CHAG)}(d,m)){return l<=c.tzeit().getTime()}return!1},e.isAveilut=function(e){const t=function(e){return fe.isHDate(e)?e:new fe(e)}(e);return function(e){const t=e.getFullYear(),n=new fe(16,nm,t).abs(),r=new fe(5,rm,t).abs(),a=e.abs();return a>=n&&a<=r}(t)||function(e){const t=e.getFullYear(),n=new fe(17,am,t).abs(),r=new fe(9,om,t),a=6===r.getDay()?new fe(10,om,t).abs():r.abs(),o=e.abs();return o>=n&&o<=a}(t)},e.isFastDay=function(e,t){const n=(bd(e,t)||[]).find(e=>{const t=e.getFlags();return t&im&&!(t&sm)});return Boolean(n)},e.months=m,e.parshaYear=function(e,t){const n=el(e,t),r=n.getFirstSaturday(),a=fe.hebrew2abs(e,m.ELUL,29),o=[];for(let e=r;e<=a;e+=7){const t=n.lookup(e);if(!t.chag){const e=new zm(t);o.push(e)}}return o},e.parshiot=kh,e.reformatTimeStr=uh,e.tachanun=Um,e.version=t,e}({});
|
|
18
|
+
function ct(t,e){return t-e*Math.floor(t/e)}st.addLocale("he-x-NoNikud",ut);const ht="day",lt="week",dt="month",ft="year";class mt{yy;mm;dd;rd;constructor(t,e,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const o="string"==typeof n?parseInt(n,10):n;if(isNaN(o))throw new TypeError(`HDate called with bad year: ${n}`);this.yy=o,function(t,e){t.mm=mt.monthNum(e),gt(t)}(this,e);const i="string"==typeof t?parseInt(t,10):t;if(isNaN(i))throw new TypeError(`HDate called with bad day: ${t}`);a=i,(r=this).dd=a,gt(r)}else{null==t&&(t=new Date);const e="number"!=typeof t||isNaN(t)?u(t)?h(t):void 0!==t.yy?t:null:t;if(null===e)throw new TypeError(`HDate called with bad arg: ${t}`);const n="number"==typeof e,r=n?v(e):e;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=e)}var r,a}getFullYear(){return this.yy}isLeapYear(){return w(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const t=b(this.getFullYear());return(this.getMonth()+t-6)%t||t}daysInMonth(){return H(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return ct(this.abs(),7)}greg(){return l(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=T(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(t,e,n){return T(t,e,n)}getMonthName(){return N(this.getMonth(),this.getFullYear())}render(t,e=!0){const n=t||"en",r=this.getDate(),a=st.gettext(this.getMonthName(),n).replace(/'/g,"’"),o=st.ordinal(r,n),i=function(t){switch(t){case"en":case"s":case"a":case"ashkenazi":return" of"}const e=st.lookupTranslation("of",t);if(e)return" "+e;if(t.startsWith("ashkenazi"))return" of";return""}(n),s=`${o}${i} ${a}`;if(e){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(t=!1,e=!1){const n=this.getDate(),r=t?"he-x-NoNikud":"he",a=st.gettext(this.getMonthName(),r),o=V(n)+" "+a;if(e)return o;return o+" "+V(this.getFullYear())}before(t){return St(t,this,-1)}onOrBefore(t){return St(t,this,0)}nearest(t){return St(t,this,3)}onOrAfter(t){return St(t,this,6)}after(t){return St(t,this,7)}next(){return new mt(this.abs()+1)}prev(){return new mt(this.abs()-1)}add(t,e="d"){if(!(t="string"==typeof t?parseInt(t,10):t))return new mt(this);if((e=function(t){switch(t){case"d":return ht;case"w":return lt;case"M":return dt;case"y":return ft}const e=String(t||"").toLowerCase().replace(/s$/,"");switch(e){case ht:case lt:case dt:case ft:return e}throw new TypeError(`Invalid units '${t}'`)}(e))===ht)return new mt(this.abs()+t);if(e===lt)return new mt(this.abs()+7*t);if(e===ft)return new mt(this.getDate(),this.getMonth(),this.getFullYear()+t);{let e=new mt(this);const n=t>0?1:-1;t=Math.abs(t);for(let r=0;r<t;r++)e=new mt(e.abs()+n*e.daysInMonth());return e}}subtract(t,e="d"){return this.add(-1*t,e)}deltaDays(t){return this.abs()-t.abs()}isSameDate(t){return this.yy===t.yy&&this.mm===t.mm&&this.dd===t.dd}toString(){const t=this.getDate(),e=this.getFullYear();return`${t} ${this.getMonthName()} ${e}`}static isLeapYear(t){return w(t)}static monthsInYear(t){return b(t)}static daysInMonth(t,e){return H(t,e)}static getMonthName(t,e){return N(t,e)}static monthNum(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError(`bad monthNum: ${t}`);return t}if("string"!=typeof t)throw new TypeError(`bad monthNum: ${t}`);return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):B(t)}static daysInYear(t){return k(t)}static longCheshvan(t){return O(t)}static shortKislev(t){return _(t)}static monthFromName(t){return B(t)}static dayOnOrBefore(t,e){return e-ct(e-t,7)}static isHDate(t){const e=t;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(t,e=5e3){if("string"!=typeof t)throw new TypeError(`bad gematriya str: ${t}`);const n=t.split(" ").filter(t=>0!==t.length),r=n.length;if(3!==r&&4!==r)throw new RangeError(`cannot parse gematriya str: "${t}"`);const a=K(n[0]),o=B(3===r?n[1]:n[1]+" "+n[2]);let i=K(3===r?n[2]:n[3]);return i<1e3&&(i+=e),new mt(a,o,i)}}function gt(t){yt(t),function(t){t.dd<1&&(t.mm===f.TISHREI&&(t.yy-=1),t.dd+=H(t.mm,t.yy),t.mm-=1,gt(t));t.dd>H(t.mm,t.yy)&&(t.mm===f.ELUL&&(t.yy+=1),t.dd-=H(t.mm,t.yy),t.mm===b(t.yy)?t.mm=1:t.mm+=1,gt(t));yt(t)}(t)}function yt(t){t.mm!==f.ADAR_II||t.isLeapYear()?t.mm<1?(t.mm+=b(t.yy),t.yy-=1,gt(t)):t.mm>b(t.yy)&&(t.mm-=b(t.yy),t.yy+=1,gt(t)):(t.mm-=1,gt(t)),delete t.rd}function St(t,e,n){return new mt(mt.dayOnOrBefore(t,e.abs()+n))}
|
|
19
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function At(t,e){const n=function(t,e){let n=z(e);if(!(t<=n.yy))return n.mm!==R||30!==n.dd||O(n.yy+1)?n.mm===Y&&30===n.dd&&_(n.yy+1)?n=v(T(t,Z,1)-1):n.mm===x?n.mm=b(t):n.mm!==U||30!==n.dd||w(t)||(n.dd=30,n.mm=P):n=v(T(t,Y,1)-1),n.mm!==R||30!==n.dd||O(t)?n.mm===Y&&30===n.dd&&_(t)&&(n.mm=Z,n.dd=1):(n.mm=Y,n.dd=1),n.yy=t,n}(t,e);return n&&new mt(n)}function pt(t,e){const n=function(t,e){const n=z(e),r=n.yy;if(t===r)return n;if(t<r)return;const a=w(r);let o=n.mm,i=n.dd;return o===U&&!a||o===x&&a?o=b(t):o!==R||30!==i||O(t)?o===Y&&30===i&&_(t)?(o=Z,i=1):o===U&&30===i&&a&&!w(t)&&(o=L,i=1):(o=Y,i=1),{yy:t,mm:o,dd:i}}(t,e);return n&&new mt(n)}var It={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{Shabbat:["שַׁבָּת"],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":["פֶּסַח ח׳"],"Pesach Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד פֶּסַח"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבַּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבַּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבַּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבַּת נַחֲמוּ"],"Shabbat Parah":["שַׁבַּת פָּרָה"],"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)":["סֻכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Sukkot Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד סֻכּוֹת"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit BeHaB":["תַּעֲנִית בה״ב"],"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":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"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 Tammuz":["רֹאשׁ חוֹדֶשׁ תַּמּוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תְּחִילַּת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["(תִּשְׁעָה בְּאָב (נִדְחָה"],"Shabbat Mevarchim Chodesh":["שַׁבַּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבַּת שִׁירָה"],Lovingkindness:["חֶסֶד"],Might:["גְּבוּרָה"],Beauty:["תִּפְאֶרֶת"],Eternity:["נֶּצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],Yizkor:["יִזְכּוֹר"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן לְיִצְחָק רַבִּין"],"Jabotinsky Day":["יוֹם זַ׳בּוֹטִינְסְקִי"],"Herzl Day":["יוֹם הֶרְצְל"],"Ben-Gurion Day":["יוֹם בֶּן־גּוּרִיּוֹן"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִּרְכַּת הַחַמָּה"],"Birkat HaChamah":["בִּרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"Chag HaBanot":["חַג הַבָּנוֹת"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Alot HaShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחְמִיר"],Sunrise:["נֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (מג״א)"],"Kriat Shema, sof zeman (GRA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (גְּרָ״א)"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה (מג״א)"],"Tefilah, sof zeman (GRA)":["סוֹף זְמַן תְּפִלָּה (גְּרָ״א)"],"Chatzot HaLailah":["חֲצוֹת הַלַּיְלָה"],"Chatzot HaYom":["חֲצוֹת הַיּוֹם"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Sunset:["שְׁקִיעַת הַחַמָּה"],"Bein HaShemashot":["בֵּין הַשְּׁמָשׁוֹת"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],"Biur Chametz":["בִּעוּר חָמֵץ"],"Finish eating chametz":["סוֹף זְמַן אֲכִילַת חָמֵץ"]}}};st.addTranslations("he",It),st.addTranslations("ashkenazi",{headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"und-x-ashkenaz"},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"],"Pesach Shabbat Chol ha-Moed":["Pesach Shabbos Chol ha-Moed"],"Purim Katan":["Purim Koton"],"Rosh Hashana LaBehemot":["Rosh Hashana LaBeheimos"],"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)"],"Sukkot Shabbat Chol ha-Moed":["Sukkos Shabbos Chol ha-Moed"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit BeHaB":["Ta’anis BeHaB"],"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"],"Asara B'Tevet":["Asara B’Teves"],"Birkat Hachamah":["Birkas HaChamah"],"Birkat HaChamah":["Birkas HaChamah"],"Shushan Purim Katan":["Shushan Purim Koton"],"Alot HaShachar":["Alos HaShachar"],Misheyakir:["Misheyakir"],"Misheyakir Machmir":["Misheyakir Machmir"],Sunrise:["Sunrise"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Kriat Shema, sof zeman (GRA)":["Krias Shema, sof zman (GRA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Tefilah, sof zeman (GRA)":["Tefilah, sof zman (GRA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot HaYom":["Chatzos"],"Chatzot hayom":["Chatzos"],"Mincha Gedolah":["Mincha Gedolah"],"Mincha Ketanah":["Mincha Ketanah"],"Plag HaMincha":["Plag HaMincha"],Sunset:["Sunset"],"Bein HaShemashot":["Bein HaShemashos"],"Tzeit HaKochavim":["Tzeis HaKochavim"]}}});const Tt=st.copyLocaleNoNikud(It);st.addTranslations("he-x-NoNikud",Tt),st.addTranslations("he-x-NoNikud",{headers:{"plural-forms":"nplurals=2; plural=(n != 1);",language:"he-x-NoNikud"},contexts:{"":{Korach:["קורח"],Chukat:["חוקת"],"Erev Yom Kippur":["ערב יום כיפור"],"Yom Kippur":["יום כיפור"],"Yom Kippur Katan":["יום כיפור קטן"],"Pesach Shabbat Chol ha-Moed":["שבת חול המועד פסח"],"Sukkot Shabbat Chol ha-Moed":["שבת חול המועד סוכות"],"Erev Sukkot":["ערב סוכות"],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)":["סוכות ז׳ (הושענא רבה)"]}}});const Mt={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,YIZKOR:134217728,BEHAB:268435456},vt=Object.entries(Mt);function wt(t){if(!Object.hasOwn(Mt,t))throw new RangeError(`Unknown flag name: ${String(t)}`);return Mt[t]}const bt=[[Mt.MAJOR_FAST,"holiday","major","fast"],[Mt.CHANUKAH_CANDLES,"holiday","minor"],[Mt.HEBREW_DATE,"hebdate"],[Mt.MINOR_FAST,"holiday","fast"],[Mt.MINOR_HOLIDAY,"holiday","minor"],[Mt.MODERN_HOLIDAY,"holiday","modern"],[Mt.MOLAD,"molad"],[Mt.OMER_COUNT,"omer"],[Mt.PARSHA_HASHAVUA,"parashat"],[Mt.ROSH_CHODESH,"roshchodesh"],[Mt.SHABBAT_MEVARCHIM,"mevarchim"],[Mt.SPECIAL_SHABBAT,"holiday","shabbat"],[Mt.USER_EVENT,"user"],[Mt.YIZKOR,"yizkor"]];class Et{constructor(t,e,n=0,r){if(!mt.isHDate(t))throw new TypeError(`Invalid Event date: ${t}`);if("string"!=typeof e)throw new TypeError(`Invalid Event description: ${e}`);this.date=t,this.desc=e,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}greg(){return this.date.greg()}getDesc(){return this.desc}getFlags(){return this.mask}hasFlag(t){return 0!==(this.mask&wt(t))}hasAnyFlag(...t){let e=0;for(const n of t)e|=wt(n);return 0!==(this.mask&e)}flagNames(){return vt.filter(([,t])=>this.mask&t).map(([t])=>t)}render(t){return st.gettext(this.desc,t)}renderBrief(t){return this.render(t)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!this.hasFlag("CHUL_ONLY")}observedInDiaspora(){return!this.hasFlag("IL_ONLY")}observedIn(t){return t?this.observedInIsrael():this.observedInDiaspora()}getCategories(){const t=this.mask;for(const e of bt){if(t&e[0])return e.slice(1)}return["unknown"]}}class Ht extends Et{constructor(t){super(t,t.toString(),Mt.HEBREW_DATE)}render(t){const e=t?.toLowerCase(),n=e??"en",r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(t){const e=this.getDate(),n=e.getDate(),r=st.gettext(e.getMonthName(),t);return V(n)+" "+r}renderBrief(t){const e=t?.toLowerCase(),n=e??"en",r=this.getDate();if(r.getMonth()===f.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}const Nt=(t,e,n,r)=>Ct(t,e)+`; must be between ${n}-${r}`,Ct=(t,e)=>`Invalid ${t}: ${e}`;function Dt(t){return void 0===t?Object.create(null):Lt(t)}function kt(t,e="number"){if("bigint"==typeof t)throw new TypeError((t=>`Cannot convert bigint to ${t}`)(e));if(t=Number(t),!Number.isFinite(t))throw new RangeError(((t,e)=>`Non-finite ${t}: ${e}`)(e,t));return t}function Ot(t,e){return Math.trunc(kt(t,e))||0}function _t(t,e){return function(t,e="number"){if(t<=0)throw new RangeError(((t,e)=>`Non-positive ${t}: ${e}`)(e,t));return t}(Ot(t,e),e)}function Bt(t){return null!==t&&("object"==typeof t||"function"==typeof t)}function Lt(t){if(!Bt(t))throw new TypeError("Invalid object");return t}function Rt(t,e){return"string"==typeof t?((t,e)=>{const n=Object.create(null);return n[t]=e,n})(e,t):Lt(t)}const Yt="smallestUnit",Zt={constrain:0,reject:1},Pt={compatible:0,reject:1,earlier:2,later:3},Ut={reject:0,use:1,prefer:2,ignore:3},xt={auto:0,never:1,critical:2,always:3},zt={auto:0,never:1,critical:2},Ft={auto:0,never:1},jt={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},$t=[Math.floor,function(t){return gn(t)?Math.floor(t):Math.round(t)},Math.ceil,function(t){return gn(t)?Math.ceil(t):Math.round(t)},Math.trunc,function(t){return gn(t)?Math.trunc(t)||0:Math.round(t)},function(t){return t<0?Math.floor(t):Math.ceil(t)},function(t){return Math.sign(t)*Math.round(Math.abs(t))||0},function(t){return gn(t)?(t=Math.trunc(t)||0)+t%2:Math.round(t)}],Vt={previous:-1,next:1};function Kt(t){const e=t.roundingIncrement;return void 0===e?1:Ot(e,"roundingIncrement")}function Gt(t){let e=t.fractionalSecondDigits;if(void 0!==e){if("number"!=typeof e){if("auto"===ya(e))return;Le(pe("fractionalSecondDigits",e))}e=Ze("fractionalSecondDigits",Math.floor(e),0,9,1)}return e}function Jt(t,e,n=0,r){let a=e[t];if(void 0===a)return r?n:void 0;if(a=ya(a),"auto"===a)return r?n:null;let o=bn[a];return void 0===o&&(o=ra.indexOf(a)),o<0&&Le(Me(t,a,bn)),o}function Wt(t,e,n,r=0){const a=n[t];if(void 0===a)return r;const o=ya(a),i=e[o];return void 0===i&&Le(Me(t,o,e)),i}const qt=Ge(Jt,Yt),Xt=Ge(Jt,"largestUnit"),Qt=Ge(Jt,"unit"),te=Ge(Wt,"overflow",Zt),ee=Ge(Wt,"disambiguation",Pt),ne=Ge(Wt,"offset",Ut),re=Ge(Wt,"calendarName",xt),ae=Ge(Wt,"timeZoneName",zt),oe=Ge(Wt,"offset",Ft),ie=Ge(Wt,"roundingMode",jt),se=Ge(Wt,"direction",Vt);function ue(t,e,n,r){const a=r?On:_n[e+1];if(a){const n=_n[e];a%((t=Ze("roundingIncrement",t,1,a/n-(r?0:1),1))*n)&&Le(pe("roundingIncrement",t))}else t=Ze("roundingIncrement",t,1,n?10**9:1,1);return t}function ce(t,e,n,r){return null!=e&&Ze(t,e,n,r,1,En),e}function he(t,e){e>t&&Le(Ne)}function le(t,e,n,r=9,a=0,o=4){e=Dt(e);let i=Xt(e,a),s=Kt(e),u=ie(e,o),c=qt(e,a,1);return i=ce("largestUnit",i,a,r),c=ce(Yt,c,a,r),null==i?i=Math.max(n,c):he(i,c),s=ue(s,c,1),t&&(u=(t=>t<4?(t+2)%4:t)(u)),[i,c,s,u]}function de(t,e=6,n){let r=Kt(t=Rt(t,Yt));const a=ie(t,7);let o=qt(t);return o=da(Yt,o),o=ce(Yt,o,0,e),r=ue(r,o,void 0,n),[o,r,a]}function fe(t){return void 0===t?0:te(Lt(t))}function me(t,e=0){t=Dt(t);const n=ee(t),r=ne(t,e);return[te(t),r,n]}function ge(t,e=4){const n=Gt(t),r=ie(t,4),a=qt(t);return[r,...Ae(ce(Yt,a,0,e),n)]}function ye(t){return re(Dt(t))}function Se(t,e){return ge(Dt(t),e)}function Ae(t,e){return null!=t?[_n[t],t<4?9-3*t:-1]:[void 0===e?1:10**(9-e),e]}const pe=Ct,Ie=t=>`Missing ${t}`,Te=t=>"No valid fields: "+t.join(),Me=(t,e,n)=>Ct(t,e)+"; must be "+Object.keys(n).join(),ve=t=>"Missing year"+(t?"/era/eraYear":""),we="Invalid leap month",be=t=>Ct("TimeZone",t),Ee="Out-of-bounds date",He="Required smallestUnit or largestUnit",Ne="smallestUnit > largestUnit",Ce=t=>`Cannot parse: ${t}`,De=t=>`Invalid substring: ${t}`,ke=t=>`Cannot format ${t}`,Oe="Mismatching types for formatting",_e=function(t,e,n){return Math.min(Math.max(t,e),n)},Be=Bt;function Le(t){throw new RangeError(t)}function Re(t){throw new TypeError(t)}function Ye(t,e,n,r,a){return Ze(e,((t,e)=>{const n=t[e];return void 0===n&&Re(Ie(e)),n})(t,e),n,r,a)}function Ze(t,e,n,r,a,o){const i=_e(e,n,r);return a&&e!==i&&Le(((t,e,n,r,a)=>a?Nt(t,a[e],a[n],a[r]):Nt(t,e,n,r))(t,e,n,r,o)),i}function Pe(t,e=Map){const n=new e;return(e,...r)=>{if(n.has(e))return n.get(e);const a=t(e,...r);return n.set(e,a),a}}const Ue=(t,e)=>ze(t=>({value:t,configurable:1,writable:!e}),t),xe=t=>({[Symbol.toStringTag]:{value:t,configurable:1}});function ze(t,e){const n={};for(const r in e)n[r]=t(e[r],r);return n}function Fe(t,e){const n={};for(const r of t)n[r]=e;return n}function je(t){const e={};for(const n of t)e[n]=t=>t[n];return e}function $e(t,e,n=Object.create(null)){for(const r of t)n[r]=e[r];return n}function Ve(t,e,n){for(const r of t)if(e[r]!==n[r])return 0;return 1}function Ke(t,e,n){const r={...n};for(let n=0;n<e;n++)r[t[n]]=0;return r}function Ge(t,...e){return(...n)=>t(...e,...n)}function Je(t){return t}function We(){}function qe(t){return t[0].toUpperCase()+t.substring(1)}function Xe(...t){return[].concat(...t).sort()}function Qe(t){return new RegExp(`^${t}$`,"i")}function tn(t){return parseInt(t.padEnd(9,"0"))}function en(t){return t&&"+"!==t?-1:1}function nn(t){return void 0===t?0:parseInt(t)}function rn(t,e){return String(e).padStart(t,"0")}const an=Ge(rn,2);function on(t,e){return Math.sign(t-e)}function sn(t,e){return t<e?-1:t>e?1:0}function un(t,e){const n=t/e;return t%e<0n?n-1n:n}function cn(t,e){const n=un(t,e);return[n,t-n*e]}function hn(t,e){return[Math.floor(t/e),ln(t,e)]}function ln(t,e){return(t%e+e)%e}function dn(t,e){return Math.trunc(t/e)||0}function fn(t,e){return t%e||0}function mn(t,e=1){return e*(.5+t/5)}function gn(t){return.5===Math.abs(t%1)}const yn="iso8601",Sn={bce:-1,ce:0};function An(t){const e=t.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,"");return"bc"===e||"b"===e?"bce":"ad"===e||"a"===e?"ce":e}const pn=void 0;function In(t){return t===pn?"iso8601":0===t?"gregory":t.id}const Tn=/^M(\d{2})(L?)$/;function Mn(t){const e=Tn.exec(t);return e||Le((t=>`Invalid monthCode: ${t}`)(t)),[parseInt(e[1]),Boolean(e[2])]}function vn(t,e){return"M"+an(t)+(e?"L":"")}function wn(t,e,n){return t+(e||n&&t>=n?1:0)}const bn={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},En=Object.keys(bn),Hn=1e3,Nn=1e6,Cn=1e9,Dn=6e10,kn=36e11,On=864e11,_n=[1,Hn,Nn,Cn,Dn,kn,On],Bn=BigInt(Hn),Ln=BigInt(Nn),Rn=BigInt(Cn),Yn=BigInt(Dn),Zn=BigInt(kn),Pn=BigInt(On);function Un(t,e){const n=Number(t/Pn),r=Number(t%Pn);return n*(On/e)+(Math.trunc(r/e)+r%e/e)}const xn=En.slice(0,6),zn=je(xn),Fn=["year"],jn=["day"],$n=["day","month","year"],Vn=["offset"],Kn=["timeZone"],Gn=["era","eraYear"],Jn=["era","eraYear","year"],Wn=["month","monthCode"],qn=["day","month","monthCode"],Xn=Xe(xn),Qn=Xe(Gn,Fn),tr=Xe(Wn,Fn),er=Xe(Gn,tr),nr=Xe(["monthCode"],Fn),rr=Xe(Gn,nr),ar=Xe(jn,["monthCode"]),or=Xe(jn,tr),ir=Xe(jn,Gn,tr),sr=Xe(or,xn),ur=Xe(ir,xn),cr=Xe(or,xn,Vn),hr=Xe(ir,xn,Vn),lr=Xe(or,xn,Vn,Kn),dr=Xe(ir,xn,Vn,Kn),fr=Xe(jn,nr),mr=Xe(jn,Gn,nr),gr=Fe(xn,0);function yr(t){return Ar(t,1),t}const Sr={hour:23,minute:59,second:59};function Ar(t,e){const n={};for(const r of xn)n[r]=Ze(r,t[r],0,Sr[r]||999,e);return n}function pr(t){return Tr(t)*Cn+Mr(t)}function Ir(t){return 1e3*Tr(t)+t.millisecond}function Tr(t){return 3600*t.hour+60*t.minute+t.second}function Mr(t){return t.millisecond*Nn+t.microsecond*Hn+t.nanosecond}function vr(t){const[e,n]=hn(t,On);return[wr(n),e]}function wr(t){const[e,n]=hn(t,Nn),[r,a]=hn(n,Hn);return function(t,e=0,n=0){const[r,a]=hn(t,36e5),[o,i]=hn(a,6e4),[s,u]=hn(i,1e3);return{hour:r,minute:o,second:s,millisecond:u,microsecond:e,nanosecond:n}}(e,r,a)}function br(t){const[e,n]=cn(t,Rn);return[Number(e),Number(n)]}function Er(t){return Number(un(t,Ln))}function Hr(t){return Cr(t)+BigInt(pr(t))}function Nr(t){return Dr(t)+Ir(t)}function Cr(t){return BigInt(kr(t))*Pn}function Dr(t){return 864e5*kr(t)}function kr(t){return Or(t.year,t.month,t.day)}function Or(t,e=1,n=1){const r=e-1;return t+=Math.floor(r/12),e=ln(r,12),Date.UTC(t%400-400,e,0)/864e5+146097*(dn(t,400)+1)+n}function _r(t){const[e,n]=cn(t,Pn);return{...Br(Number(e)),...wr(Number(n))}}function Br(t){const e=new Date(864e5*ln(t,146097));return{year:e.getUTCFullYear()+400*Math.floor(t/146097),month:e.getUTCMonth()+1,day:e.getUTCDate()}}function Lr(t,e){if(!e)return{year:1972,month:t}}function Rr(t,e){switch(e){case 2:return Yr(t)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Yr(t){return t%4==0&&(t%100!=0||t%400==0)}function Zr(t){return ln(Or(t.year,t.month,t.day)+4,7)||7}function Pr(t){return Or(t.year,t.month,t.day)-Or(t.year)+1}function Ur(t){let e=t.year,n=Math.floor((Pr(t)-Zr(t)+10)/7),r=xr(e);return n<1?n=r=xr(--e):n>r&&(n=1,r=xr(++e)),{weekOfYear:n,yearOfWeek:e,De:r}}function xr(t){const e=Zr({year:t,month:1,day:1});return 4===e||3===e&&Yr(t)?53:52}function zr(t){return Fr(t),yr(t)}function Fr(t){return $r(t,1),t}function jr(t){return Ve($n,t,$r(t))}function $r(t,e){const{year:n}=t,r=Ye(t,"month",1,12,e);return{year:n,month:r,day:Ye(t,"day",1,Rr(n,r),e)}}function Vr(t,e){return t?t.de(e):e}function Kr(t,e,n){return t?t.N(e,n):function(t){return[t,0]}(n)}function Gr(t,e){return 0===t?function({year:t}){return t<1?{era:"bce",eraYear:1-t}:{era:"ce",eraYear:t}}(e):t&&t.h?.(e)||{}}function Jr(t,e,n,r){return t?t.fe(e,n,r):function(t,e,n){return{year:t,month:e,day:n}}(e,n,r)}function Wr(t,e){return t?t.j(e):12}function qr(t,e,n){return t?t.o(e,n):Rr(e,n)}function Xr(t,e){const{year:n,month:r}=Vr(t,e),[a,o]=Kr(t,n,r);return vn(a,o)}function Qr(t,e){const{year:n}=Vr(t,e);return t?t.q(n):Yr(n)}function ta(t,e){const{year:n}=Vr(t,e);return Wr(t,n)}function ea(t,e){const{year:n,month:r}=Vr(t,e);return qr(t,n,r)}function na(t,e){const{year:n}=Vr(t,e);return t?t.i(n):function(t){return Yr(t)?366:365}(n)}const ra=En.map(t=>t+"s"),aa=je(ra),oa=Xe(ra),ia=ra.slice(0,6),sa=ra.slice(6),ua=sa.slice(1),ca=Fe(ra,0),ha=Fe(ia,0),la=Ge(Ke,ra);function da(t,e){return null==e&&Le(Ie(t)),e}const fa=Ge(ma,"string");function ma(t,e,n=t){return typeof e!==t&&Re(pe(n,e)),e}function ga(t,e="number"){return Number.isInteger(t)||Le(((t,e)=>`Non-integer ${t}: ${e}`)(e,t)),t||0}function ya(t){return"symbol"==typeof t&&Re("Cannot convert Symbol to string"),String(t)}function Sa(t){if(!Bt(t))return t;const e=t[Symbol.toPrimitive];if(null!=e){"function"!=typeof e&&Re();const n=Reflect.apply(e,t,["string"]);return Bt(n)&&Re(),n}return Date.prototype[Symbol.toPrimitive].call(t,"string")}function Aa(t){return"boolean"==typeof t?BigInt(t?1:0):"string"==typeof t?BigInt(t):("bigint"!=typeof t&&Re(`Invalid bigint: ${t}`),t)}function pa(t,e){return ga(kt(t,e),e)}function Ia(t,e){return $e($n,t,$e(xn,e))}const Ta=BigInt(1e8)*Pn,Ma=BigInt(-1e8)*Pn,va=Ma-Pn,wa=-3261848;function ba(t){const e=12*t.year+t.month;return(e<wa||e>3309129)&&Le(Ee),t}function Ea(t,e=1){const n=Cr(t);return(n<(e?va:Ma)||n>Ta)&&Le(Ee),t}function Ha(t){return((e=Hr(t))<=va||e>=Ta+Pn)&&Le(Ee),t;var e}function Na(t){return(t<Ma||t>Ta)&&Le(Ee),t}function Ca(t,e){return Na(Cr(t)+BigInt(pr(t)-e))}function Da(t,e,n){return ka(t/e,n)*e}function ka(t,e){return $t[e](t)}function Oa(t,e,n,r){let a=_a(t,e,n);return((t,e,n,r)=>r>0?e<=t&&t<=n:n<=t&&t<=e)(r,a.I,a.O,Math.sign(e))||(a=_a(t+e,e,n)),a}function _a(t,e,n){const r=t+e;return{ve:t,qe:r,I:n(t),O:n(r)}}function Ba(t,e){return t.ve+e*(t.qe-t.ve)}function La(t,e,n){const r=n-e,a=t-e;if(!a)return 0;const o=a<0n?-a:a,i=r<0n?-r:r,s=sn(a,0n)===sn(r,0n)?1:-1;return sn(o,i)<=0?o===i?s:mn(sn(2n*o,i),s):Number(a)/Number(r)}function Ra(t){return{epochNanoseconds:t}}function Ya(t,e,n){return{calendar:n,timeZone:e,epochNanoseconds:t}}function Za(t,e){return $e(xn,t,Pa(t,e))}function Pa(t,e){return $e($n,t,{calendar:e})}function Ua(t){return $e(xn,t)}function xa(t){return $e(ra,t,{sign:Fo(t)})}function za(t,e,n,r){return Ya(6===e?function(t,e){const[n,r]=Wa(t);return function(t,e,n,r){return ka(La(t<n?t:n-1n,e,n),r)?n:e}(t.epochNanoseconds,n,r,e)}(t,r):function(t,e,n,r){if(0===e&&1===n)return t.epochNanoseconds;const a=ro(t);return oo(t.timeZone,$a(a,eo(e,n),r),a.offsetNanoseconds,2,0,1)}(t,e,n,r),t.timeZone,t.calendar)}function Fa(t,e,n,r,a,o,i,s){if(0===r&&1===a)return t;const u=Fo(t)||1,c=Ro(r,s)?s&&r<6&&n>=6?Ga:Ja:Ka;let[h,l,d]=c(u,t,e,n,r,a,o,i);return d&&7!==r&&(h=((t,e,n,r,a,o)=>{for(let i=r+1;i<=n;i++){if(7===i&&7!==n)continue;const r=la(i,t);r[ra[i]]+=a;const s=sn(e,Oo(o,r));if(s&&s!==a)break;t=r}return t})(h,l,n,Math.max(6,r),u,i)),h}function ja(t,e,n){const r=Math.min(Qo(t),6);return Wo(Xa(Ko(t),BigInt(e),n),r)}function $a(t,e,n){const[r,a]=Va(t,e,n),o=Ia(po(t,a),r);return Ha(o),o}function Va(t,e,n){return vr(Da(pr(t),e,n))}function Ka(t,e,n,r,a,o,i,s){const u=ra[a],c=la(a,e);7===a&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const h=dn(e[u],o)*o,l=Oa(h,o*t,t=>(c[u]=t,Oo(s,c)),n),d=function(t,e,n,r){return Da(Ba(t,La(e,t.I,t.O)),n,r)}(l,n,o,i);return c[u]=d,[c,d===l.qe?l.O:l.I,d!==h]}function Ga(t,e,n,r,a,o,i,s){const u=Number(Go(e)),c=eo(a,o);let h=Da(u,c,i);const l={...e,...ha},d=Oa(l.days,t,t=>(l.days=t,Oo(s,l)),n),f=d.I,m=d.O,g=h-Number(m-f);let y=0;g&&Math.sign(g)!==t?n=f+BigInt(h):(y+=t,h=Da(g,c,i),n=m+BigInt(h));const S=qo(h);return[{...e,...S,days:e.days+y},n,Boolean(y)]}function Ja(t,e,n,r,a,o,i){const s=Ko(e),u=Xa(s,no(a,o),i),c=u-s,h=Math.sign(Number(u/Pn)-Number(s/Pn))===t,l=Wo(u,Math.min(r,6));return[{...e,...l},n+c,h]}function Wa(t){const{timeZone:e}=t,n=Ia(ro(t),gr),r=Ia(po(n,1),gr);return[so(e,n),so(e,r)]}function qa(t){return Da(t,Dn,7)}function Xa(t,e,n){return to(t,e,n,t/e%2n)}function Qa(t,e,n){const[r,a]=cn(t,Pn),o=r*Pn;return o+to(a,e,n,(o/e+a/e)%2n)}function to(t,e,n,r){const a=t/e,o=t%e;let i=0;o&&(i=mn(sn(2n*(o<0n?-o:o),e),Math.sign(Number(o))));const s=ka(Number(r)+i,n);return(a-r+BigInt(s))*e}function eo(t,e){return _n[t]*e}function no(t,e){return BigInt(_n[t])*BigInt(e)}const ro=Pe(ao,WeakMap);function ao(t){const{epochNanoseconds:e,timeZone:n}=t,r=n.B(e);return{..._r(e+BigInt(r)),offsetNanoseconds:r}}function oo(t,e,n,r=0,a=0,o,i){if(void 0!==n&&1===r&&(1===r||i))return Ca(e,n);2!==r&&0!==r||Ea(e,0);const s=t.R(e);if(void 0!==n&&3!==r){const t=((t,e,n,r)=>{const a=Hr(e);r&&(n=qa(n));for(const e of t){let t=Number(a-e);if(r&&(t=qa(t)),t===n)return e}})(s,e,n,o);if(void 0!==t)return t;0===r&&Le("Invalid TimeZone offset")}return i?Hr(e):io(t,e,a,s)}function io(t,e,n=0,r=t.R(e)){if(1===r.length)return r[0];if(1===n&&Le("Ambiguous offset"),r.length)return r[3===n?1:0];const a=Hr(e),o=((t,e)=>{const n=t.B(e-Pn);return(t=>(t>On&&Le("Out-of-bounds TimeZone gap"),t))(t.B(e+Pn)-n)})(t,a),i=_r(a+BigInt(o*(2===n?-1:1)));return(r=t.R(i))[2===n?0:r.length-1]}function so(t,e){const n=t.R(e);if(n.length)return n[0];const r=Hr(e)-Pn;return t.C(r,1)}function uo(t,e,n,r=0){Fo(n)&&Qo(n)<8&&Le("Cannot use small units");const a=Ea(go(t,e));return go(t,mo(t,a,n,r))}function co(t,e,n=0){const{calendar:r,epochNanoseconds:a,timeZone:o}=t,i=Go(e);let s=a;if(Xo(e)){const a=ro(t);s=io(o,Ia(mo(r,a,{...e,...ha},n),a))+i}else s+=i;return{...t,epochNanoseconds:Na(s)}}function ho(t,e,n,r=0){const[a,o]=lo(e,n);return Ha(Ia(mo(t,e,{...n,...ha,days:n.days+o},r),a))}function lo(t,e){return function(t,e){const n=Number(e/Pn),r=Number(e%Pn),[a,o]=vr(pr(t)+r);return[a,n+o]}(t,Go(e))}function fo(t,e){return function(t,e){return Na(t+e)}(t,(Xo(n=e)&&Le("Cannot use large units"),Go(n)));var n}function mo(t,e,n,r=0){let a,{years:o,months:i,weeks:s,days:u}=n;if(u+=Number(Go(n)/Pn),o||i)a=yo(t,e,o,i,r);else{if(!s&&!u)return e;a=e}return(s||u)&&(a=po(a,7*s+u)),Ea(a)}function go(t,e){return po(e,1-Vr(t,e).day)}function yo(t,e,n,r,a){const o=Vr(t,e);let{year:i,month:s,day:u}=o;if(n){const[e,r]=Kr(t,i,s);i+=n,s=Ao(t,e,r,t?t.p(i):void 0,a),s=Ze("month",s,1,Wr(t,i),a)}if(r){const e=So(t,i,s,r);({year:i,month:s}=e)}return u=Ze("day",u,1,qr(t,i,s),a),Jr(t,i,s,u)}function So(t,e,n,r){return t?t.ae(e,n,r):function(t,e,n){return t+=dn(n,12),(e+=fn(n,12))<1?(t--,e+=12):e>12&&(t++,e-=12),{year:t,month:e}}(e,n,r)}function Ao(t,e,n,r,a){if(n){const n=t?t.l:void 0;return void 0!==r&&(n<0||r===e+1)?r:(1===a&&Le(we),n<0?-n:e)}return wn(e,0,r)}function po(t,e){return e?Br(kr(t)+e):t}function Io(t,e){return In(t)!==In(e)&&Le("Mismatching Calendars"),t}function To(t,e,n,r,a,o,i){return r<6?vo(e.epochNanoseconds,n.epochNanoseconds,r,a,o,i):((t,e,n,r,a,o,i)=>{const s=n.epochNanoseconds;if(s===e.epochNanoseconds)return ca;let u;const c=(h=e.timeZone,l=n.timeZone,h.m!==l.m&&Le("Mismatching TimeZones"),h);var h,l;return u=wo(c,t,e,n,r),u=Fa(u,s,r,a,o,i,_o(t,c,e),1),u})(t,e,n,r,a,o,i)}function Mo(t,e,n,r,a,o,i,s=6){const u=Cr(n);if(!No(e,n))return ca;let c;return c=Ho(t,e,n,r),a===s&&1===o||(c=Fa(c,u,r,a,o,i,Bo(t,e))),c}function vo(t,e,n,r,a,o){return{...ca,...Wo(Xa(e-t,no(r,a),o),n)}}function wo(t,e,n,r,a){return a<6?{...ca,...Wo(r.epochNanoseconds-n.epochNanoseconds,a)}:((t,n,r)=>{const o=sn(r.epochNanoseconds,n.epochNanoseconds);if(!o)return ca;if(!No(ro(n),ro(r)))return{...ca,...Wo(r.epochNanoseconds-n.epochNanoseconds,5)};const[i,s,u]=function(t,e,n,r){const a=ro(e),o=ro(n),i=n.epochNanoseconds;let s=0;const u=pr(o)-pr(a);Math.sign(u)===-r&&s++;const c=s+(r>0?1:0);for(;;s++){const e=po(o,s*-r),n=io(t,Ia(e,a));if(s===c||sn(i,n)!==-r)return[a,e,Number(i-n)]}}(t,n,r,o);return{...(c=i,h=s,Ho(e,c,h,a)),...qo(u)};var c,h})(t,n,r)}function bo(t,e,n,r){const a=Hr(e),o=Hr(n),i=sn(o,a);return i?r<=6?{...ca,...Wo(o-a,r)}:Eo(t,e,n,i,r):ca}function Eo(t,e,n,r,a){let o=n,i=pr(n)-pr(e);return Math.sign(i)===-r&&(o=po(n,-r),i+=On*r),{...Ho(t,e,o,a),...qo(i)}}function Ho(t,e,n,r){if(r<=7)return((t,e,n)=>{const r=Co(e,n);return t?{...ca,weeks:dn(r,7),days:fn(r,7)}:{...ca,days:r}})(7===r,e,n);const a=Vr(t,e),o=Vr(t,n);if(8===r){const{year:r,month:i,day:s}=a,{year:u,month:c,day:h}=o,l=Math.sign(on(u,r)||on(c,i)||Co(e,n));let d=0,f=0;if(l){d=t?t.ee(r,i,u,c):function(t,e,n,r){return 12*(n-t)+r-e}(r,i,u,c);let a=yo(t,e,0,d,0);l*on(s,h)>0&&(d-=l,a=yo(t,e,0,d,0)),f=Co(a,n)}return{...ca,months:d,days:f}}const{year:i,month:s,day:u}=a;let{year:c,month:h,day:l}=o,d=c-i,f=h-s,m=l-u;if(d||f){const e=Math.sign(d||f);let n=qr(t,c,h),r=0;if(Math.sign(l-u)===-e){const a=n,o=So(t,c,h,-e);({year:c,month:h}=o),d=c-i,f=h-s,n=qr(t,c,h),r=e<0?-a:n}if(m=l-Math.min(u,n)+r,d){const[n,r]=Kr(t,i,s),[a,o]=Kr(t,c,h),u=t?t.l:void 0;if(f=void 0!==u&&r&&!o&&(u<0?e>0&&a===-u:e<0&&a===n)?0:a-n||Number(o)-Number(r),Math.sign(f)===-e){const a=e<0&&-Wr(t,c);c-=e,d=c-i,f=h-Ao(t,n,r,t?t.p(c):void 0,0)+(a||Wr(t,c))}else if(t){const e=Ao(t,n,r,t.p(c),0);f=t.ee(c,e,c,h)}}}return{...ca,years:d,months:f,days:m}}function No(t,e){return on(t.year,e.year)||on(t.month,e.month)||on(t.day,e.day)}function Co(t,e){return kr(e)-kr(t)}function Do(t,e,n){return Lo(t)?((t,e,n)=>{const{calendar:r,timeZone:a}=t,o=co(t,e);return[wo(a,r,t,o,n),o.epochNanoseconds,_o(r,a,t)]})(t,e,n):((t,e,n)=>{const{calendar:r}=t,a=Ha(Ia(t,gr)),o=ho(r,a,e);return[bo(r,a,o,n),Hr(o),Bo(r,t)]})(t,e,n)}function ko(t,e){return Lo(t)?co(t,e).epochNanoseconds:Hr(ho(t.calendar,Ia(t,gr),e))}function Oo(t,e){return Xo(e)?t.ke(e):t.ne}function _o(t,e,n){const r=ro(n);return{ne:n.epochNanoseconds,ke:n=>io(e,Ia(mo(t,r,n),r))}}function Bo(t,e){return{ne:Cr(e),ke:n=>Cr(mo(t,e,n))}}function Lo(t){return"timeZone"in t}function Ro(t,e){return t<=6-(e?1:0)}function Yo(t,e,n){const r={};for(let a=e;a>=0;a--){const e=_n[a];r[n[a]]=dn(t,e),t=fn(t,e)}return r}const Zo=2**53;function Po(t,e,n){const r=Math.max(Qo(e),Qo(n));return r>6&&Le("Cannot use large units"),((t,e,n,r)=>xa(jo(((t,e,n,r)=>{const a=Ko(t)+Ko(e)*BigInt(r?-1:1);return Number.isFinite(Number(a/Pn))||Le(Ee),{...ca,...Wo(a,n)}})(e,n,r,t))))(t,e,n,r)}function Uo(t,e,n){const r=Qo(e),[a,o,i,s,u]=function(t,e,n){t=Rt(t,Yt);let r=Xt(t);const a=n(t.relativeTo);let o=Kt(t);const i=ie(t,7);let s=qt(t);return void 0===r&&void 0===s&&Le(He),null==s&&(s=0),null==r&&(r=Math.max(s,e)),he(r,s),o=ue(o,s,1),o>1&&s>5&&r!==s&&Le("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit"),[r,s,o,i,a]}(n,r,t);if(!u&&Math.max(r,a)<=6)return xa(jo(((t,e,n,r,a)=>{const o=Xa(Ko(t),no(n,r),a);return{...ca,...Wo(o,e)}})(e,a,o,i,s)));u||Le("Missing relativeTo");const c=Lo(u);if(!e.sign&&(!c||a<6))return e;const[h,l,d]=Do(u,e,a);return xa(Fa(h,l,a,o,i,s,d,c))}function xo(t){return xa(zo(t))}function zo(t){const e={};for(const n of ra)e[n]=-1*t[n]||0;return e}function Fo(t,e=ra){let n=0;for(const r of e){const e=Math.sign(t[r]);e&&(n&&n!==e&&Le("Cannot mix duration signs"),n=e)}return n}function jo(t){for(const e of ua)$o(e,t[e]);const e=Ko(t);return Vo(Number(e/Rn)),t}function $o(t,e){return Ze(t,e,-4294967295,4294967295,1)}function Vo(t){Number.isSafeInteger(t)||Le("Out-of-bounds duration")}function Ko(t){return BigInt(t.days)*Pn+Go(t)}function Go(t){return BigInt(t.hours)*Zn+BigInt(t.minutes)*Yn+Jo(t)}function Jo(t){return BigInt(t.seconds)*Rn+BigInt(t.milliseconds)*Ln+BigInt(t.microseconds)*Bn+BigInt(t.nanoseconds)}function Wo(t,e=6){const n=Number(t/Pn),r=Number(t%Pn),a=_n[e],o=e<=3?Number(t/BigInt(a)):n*(On/a)+dn(r,a);Number.isFinite(o)||Le(Ee),e<=3&&Math.abs(o)/(Cn/_n[e])>=Zo&&Le(Ee);const i=Yo(r,e,ra);return i[ra[e]]=o,i}function qo(t,e=5){return Yo(t,e,ra)}function Xo(t){return Boolean(Fo(t,sa))}function Qo(t){let e=9;for(;e>0&&!t[ra[e]];e--);return e}function ti(t,e){return sn(t.epochNanoseconds,e.epochNanoseconds)}function ei(t,e){return ni(t,e)||ri(t,e)}function ni(t,e){return on(kr(t),kr(e))}function ri(t,e){return on(pr(t),pr(e))}function ai(t){return 0===t?Sn:t?t.k:void 0}function oi(t,e,n=e){return ai(t)?n:e}function ii(t,e){const n=e||void 0,r=ai(e);let{era:a,eraYear:o,year:i}=t;if(void 0!==i&&(i=Ot(i,"year")),void 0!==o&&(o=Ot(o,"eraYear")),void 0!==a||void 0!==o){void 0!==a&&void 0!==o||Re("Mismatching era/eraYear"),r||Le("Forbidden era/eraYear");const t=An(a),e=r[t];void 0===e&&Le((t=>`Invalid era: ${t}`)(a));const s=n?._?n._(o,t,e):function(t,e){return(e+t)*(Math.sign(e)||1)||0}(o,e);void 0!==i&&i!==s&&Le("Mismatching year/eraYear"),i=s}else void 0===i&&Re(ve(r));return i}function si(t,e,n,r,a){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((t,e,n,r,a=Mn(e))=>{const o=t?t.p(n):void 0,[i,s]=a;let u=wn(i,s,o);if(s){const e=t?t.l:void 0;void 0===e&&Le(we),e>0?(u>e&&Le(we),o!==u&&(1===r&&Le(we),u=wn(i,0,o))):(u!==-e&&Le(we),void 0===o&&1===r&&Le(we))}return u})(e,i,n,a,r);void 0!==o&&o!==t&&Le("Mismatching month/monthCode"),o=t,a=1}else void 0===o&&Re("Missing month/monthCode");return Ze("month",o,1,Wr(e,n),a)}function ui(t,e,n,r,a){return Ye(t,"day",1,qr(e,n,r),a)}function ci(t,e){return Ar($e(xn,{...gr,...t}),e)}const hi=Qe("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");function li(t){const e=di(t);return void 0===e&&Le(Ce(t)),e}function di(t,e){const n=hi.exec(t);if(n&&(t=>(t=>{"T"!==t[0]&&"t"!==t[0]||(t=t.slice(1));const e=t.search(/[.,]/),n=e<0?t:t.slice(0,e),r=n.split(":");return 1===r.length?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(2===r.length||3===r.length)&&r.every(t=>2===t.length&&/^\d{2}$/i.test(t))})(t.slice(1)))(n[0]))return((t,e)=>{const n=t[4]||t[5];e&&n&&Le(De(n));return r=(nn(t[2])*kn+nn(t[3])*Dn+nn(t[4])*Cn+tn(t[5]||""))*en(t[1]),Math.abs(r)>=On&&Le("Out-of-bounds offset"),r;var r})(n,e)}const fi={era:ya,month:_t,monthCode:(t,e)=>fa(Sa(t),e),day:_t},mi=Fe(xn,Ot),gi=Fe(ra,pa),yi=Object.assign({},fi,mi),Si={offset:t=>li(fa(Sa(t))),...yi};function Ai(t,e,n,r,a=!r){const o={};let i=0;for(const a of e){let e=t[a];if(void 0!==e){i=1;const t=n[a];t&&(e=t(e,a)),o[a]=e}else r&&r.includes(a)&&Re(Ie(a))}return a&&!i&&Re(Te(e)),o}function pi(t,e,n){const r=ai(e);void 0!==t.year||void 0!==t.era&&void 0!==t.eraYear||Re(ve(r)),void 0===t.monthCode&&void 0===t.month&&Re("Missing month/monthCode"),n||void 0!==t.day||Re(Ie("day"));const a=bi(t);return[ii(t,e),a]}function Ii(t,e){const n=e===pn,r=ai(e);void 0===t.day&&Re(Ie("day")),n||void 0===t.month||void 0!==t.year||void 0!==t.era&&void 0!==t.eraYear||Re(ve(r));const a=bi(t);return[void 0!==t.eraYear||void 0!==t.year?ii(t,e):void 0,a]}function Ti(t,e=gr,n){const r=Ia(t,e);return Ha(r),Za(r,n)}function Mi(t,e,n,r,a){const o=si(t,e,n,r,a);return Pa(Ea(Jr(e,n,o,ui(t,e,n,o,a))),e)}function vi(t,e,n,r,a){return function(t,e,n){return Pa(ba(Jr(t,e,n,1)),t)}(e,n,si(t,e,n,r,a))}function wi(t,e,n,r,a){const o=e===pn;let i,s,u,c=n;if(void 0===c&&o&&(c=1972),void 0!==c){o||Ea(Jr(e,c,1,1));const n=si(t,e,c,r,a);i=ui(t,e,c,n,a),[s,u]=Kr(e,c,n)}else{void 0===t.monthCode&&Re("Missing month/monthCode"),[s,u]=r;const n=e?e.re:1972;if(void 0!==n)i=ui(t,e,n,si(t,e,n,r,a),a);else{const n=0===a&&e?e.ge?.(s,u,t.day):void 0;i=void 0!==n?n:t.day}}return function(t,e,n,r,a,o){let i=n;i&&((t&&t.V?.[e])??1/0)<a&&(1===o&&Le(we),i=0,r=_e(a,1,(t&&t.U)??1/0));let s=t?t.u(e,Boolean(i),r):Lr(e,Boolean(i));for(;!s&&0===o&&r>1;)r--,s=t?t.u(e,Boolean(i),r):Lr(e,Boolean(i));s||Le("Cannot guess year");const{year:u,month:c}=s;return Pa(Ea(Jr(t,u,c,r)),t)}(e,s,u,i,t.day,a)}function bi(t){if(void 0!==t.monthCode)return Mn(t.monthCode)}const Ei=Intl.DateTimeFormat;const Hi={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},Ni=-388152e4;function Ci(t,e,n){const[r,a,o,i]=function(t){const e=Gt(t=Dt(t)),n=ie(t,4),r=qt(t);return[t.timeZone,n,...Ae(ce(Yt,r,0,4),e)]}(n),s=void 0!==r;return((t,e,n,r,a,o)=>{n=Qa(n,BigInt(a),r);const i=e.B(n);return Ui(_r(n+BigInt(i)),o)+(t?$i(qa(i)):"Z")})(s,rs(s?t(r):"UTC"),e.epochNanoseconds,a,o,i)}function Di(t,e){const n=function(t){t=Dt(t);const e=re(t),n=Gt(t),r=oe(t),a=ie(t,4),o=qt(t);return[e,ae(t),r,a,...Ae(ce(Yt,o,0,4),n)]}(e);return((t,e,n,r,a,o,i,s,u,c)=>{r=Qa(r,BigInt(u),s);const h=n.B(r);return Ui(_r(r+BigInt(h)),c)+$i(qa(h),i)+function(t,e){return 1!==e?"["+(2===e?"!":"")+t+"]":""}(e,o)+Vi(t,a)})(t.calendar,t.timeZone.id,t.timeZone,t.epochNanoseconds,...n)}function ki(t,e){const n=function(t){return t=Dt(t),[re(t),...ge(t)]}(e);return((t,e,n,r,a,o)=>Ui($a(e,a,r),o)+Vi(t,n))(t.calendar,t,...n)}function Oi(t,e){return n=t.calendar,r=t,a=ye(e),xi(r)+Vi(n,a);var n,r,a}function _i(t,e){return Li(t.calendar,zi,t,ye(e))}function Bi(t,e){return Li(t.calendar,Fi,t,ye(e))}function Li(t,e,n,r){const a=r>1||0===r&&t!==pn;return 1===r?t===pn?e(n):xi(n):a?xi(n)+Ki(In(t),2===r):e(n)}function Ri(t,e){return((t,e,n,r)=>ji(Va(t,n,e)[0],r))(t,...Se(e))}function Yi(t,e){const[n,r,a]=Se(e,3);return r>1&&jo(t={...t,...ja(t,r,n)}),function(t,e){const{sign:n}=t,r=-1===n?zo(t):t,{hours:a,minutes:o}=r,i=Jo(r),s=Number(i/Rn),u=Number(i%Rn);Vo(s);const c=Ji(u,e),h=e>=0||!n||c;return(n<0?"-":"")+"P"+Zi({Y:Pi(r.years),M:Pi(r.months),W:Pi(r.weeks),D:Pi(r.days)})+(a||o||s||h?"T"+Zi({H:Pi(a),M:Pi(o),S:Pi(s,h)+c}):"")}(t,a)}function Zi(t){const e=[];for(const n in t){const r=t[n];r&&e.push(r,n)}return e.join("")}function Pi(t,e){if(!t&&!e)return"";const n=Object.create(null);return n.useGrouping=0,t.toLocaleString("fullwide",n)}function Ui(t,e){return xi(t)+"T"+ji(t,e)}function xi(t){return zi(t)+"-"+an(t.day)}function zi(t){const{year:e}=t;return(e<0||e>9999?Wi(e)+rn(6,Math.abs(e)):rn(4,e))+"-"+an(t.month)}function Fi(t){return an(t.month)+"-"+an(t.day)}function ji(t,e){const n=[an(t.hour),an(t.minute)];return-1!==e&&n.push(an(t.second)+((t,e,n,r)=>Ji(t*Nn+e*Hn+n,r))(t.millisecond,t.microsecond,t.nanosecond,e)),n.join(":")}function $i(t,e=0){if(1===e)return"";const[n,r]=hn(Math.abs(t),kn),[a,o]=hn(r,Dn),[i,s]=hn(o,Cn);return Wi(t)+an(n)+":"+an(a)+(i||s?":"+an(i)+Ji(s):"")}function Vi(t,e){return e>1||0===e&&t!==pn?Ki(In(t),2===e):""}function Ki(t,e){return"["+(e?"!":"")+"u-ca="+t+"]"}const Gi=/0+$/;function Ji(t,e){let n=rn(9,t);return n=void 0===e?n.replace(Gi,""):n.slice(0,e),n?"."+n:""}function Wi(t){return t<0?"-":"+"}const qi=/^(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$/,Xi=/[^\w\/:+-]+/;function Qi(t){return ts(t).id}function ts(t){const e=t.toUpperCase(),n=(t=>{const e=di(t,1);if(void 0!==e)return{id:$i(e),Z:e,m:e}})(e);if(n)return{kind:"fixed",...n};const r="UTC"===e?"UTC":(t=>(Xi.test(t)&&Le(be(t)),qi.test(t)&&Le("Forbidden ICU TimeZone"),t.toLowerCase().split("/").map((t,e)=>(t.length<=3||/\d/.test(t))&&!/etc|yap/.test(t)?t.toUpperCase():t.replace(/baja|dumont|[a-z]+/g,(t,n)=>t.length<=2&&!e||"in"===t||"chat"===t?t.toUpperCase():t.length>2||!n?qe(t).replace(/island|noronha|murdo|rivadavia|urville/,qe):t)).join("/")))(t);return es(r)}const es=Pe(t=>{if("UTC"===t)return{kind:"utc",id:t,m:t};const e=t.toUpperCase(),n=ns(e);return{kind:"named",id:t,format:n,m:n.resolvedOptions().timeZone}}),ns=Pe(t=>new Ei("en-u-hc-h23",{calendar:"iso8601",timeZone:t,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}));function rs(t){const e=ts(t);return as(e.id,e)}const as=Pe((t,e)=>"named"===e.kind?new is(t,e.m,e.format):new os(t,e.m,"fixed"===e.kind?e.Z:0));class os{constructor(t,e,n){this.id=t,this.m=e,this.Z=n}B(){return this.Z}R(t){return[Ca(t,this.Z)]}C(){}}class is{constructor(t,e,n){this.id=t,this.m=e,this.oe=((t,e)=>{const n=Pe(t),r=Pe(us),a=86400*e;function o(t){const[e,o]=cs(t,a),s=hs(e),u=hs(o),c=n(s),h=n(u);return c===h?c:i(r(s,u),c,h,t)}function i(e,n,r,a){let o,i;for(;(void 0===a||void 0===(o=a<e[0]?n:a>=e[1]?r:void 0))&&(i=e[1]-e[0]);){const n=e[0]+Math.floor(i/2);t(n)===r?e[1]=n:e[0]=n+1}return o}return{Ae(t){const e=o(t-86400),n=o(t+86400),r=t-e,a=t-n;if(e===n)return[r];const i=o(r);return i===o(a)?[t-i]:e>n?[r,a]:[]},ze:o,C:function t(e,o){if(o>0&&e>=864e10)return;if(o<0){if(e<=Ni)return;const n=ss()+94867200;if(e>n)return t(n,-1)}const s=o>0?Math.max(e,Ni):e;let[u,c]=cs(s,a);const h=a*o,l=o>0?Math.max(e,ss())+94867200:Ni,d=()=>o<0?c>l:u<l;for(;d();){const t=hs(u),a=hs(c),s=n(t),l=n(a);if(s!==l){const n=r(t,a);i(n,s,l);const u=n[0];if((on(u,e)||1)===o)return u}u+=h,c+=h}}}})((t=>e=>{const n=function(t,e){e<-864e13&&Le(Ee);const n=t.formatToParts(e),r={};for(const t of n)r[t.type]=t.value;return r}(t,1e3*e);return 86400*Or((t=>{const e=t.relatedYear;if(void 0!==e)return parseInt(e);const n=parseInt(t.year);return void 0!==t.era&&"bce"===An(t.era)?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-e})(n),(t=>{const e=t.split("/").pop();return Hi[e]||60})(t))}B(t){return this.oe.ze((t=>br(t)[0])(t))*Cn}R(t){const e=86400*kr(t)+Tr(t),n=Mr(t);return this.oe.Ae(e).map(t=>Na(BigInt(t)*Rn+BigInt(n)))}C(t,e){const[n,r]=br(t),a=this.oe.C(n+(e>0||r?1:0),e);if(void 0!==a)return BigInt(a)*Rn}}function ss(){return Math.floor(Date.now()/1e3)}function us(t,e){return[t,e]}function cs(t,e){const n=Math.floor(t/e)*e;return[n,n+e]}function hs(t){return _e(t,-1e10,864e10)}function ls(t){Le(Ce(t))}function ds(t){"iso8601"!==t.calendarId&&Le(De(t.calendarId))}function fs(t){const e=Ns(t);return e&&!e.F||ls(t),e}function ms(t,e,n){return e&&"iso8601"===t.calendarId?(Fr(t),t.te&&yr(t),ps(e(t),n)):t.te?As(t,n):ps(t,n)}function gs(t){const e=12*t.year+t.month===wa?20:1;return{...t,day:e}}function ys(t){return{...t,year:1972}}function Ss(t,e,n){const r=rs(Qi(t.timeZoneId));let a;if(zr(t),t.te){const e=t.offset?li(t.offset):void 0,[,i,s]=me(n);a=oo(r,t,e,i,s,!(r.Z||void 0===t.offset||(o=t.offset,o.replace(/\D/g,"").length>4)),t.F)}else me(n),a=so(r,t);var o;return Na(a),Ya(a,r,e(t.calendarId))}function As(t,e){return zr(t),Ha(t),{...Ia(t,t),calendar:e(t.calendarId)}}function ps(t,e){return Fr(t),Ea(t),{calendar:e(t.calendarId),year:t.year,month:t.month,day:t.day}}function Is(t){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${t}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}const Ts="(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]"+Is(8)+"(Z|([+-])"+Is(15)+")?)?",Ms=Qe("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),vs=Qe("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),ws=Qe(Ts+"((?:\\[(!?)([^\\]]*)\\]){0,9})"),bs=Qe("T?"+Is(2)+`(([+-])${Is(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),Es=new RegExp("\\[(!?)([^\\]]*)\\]","g"),Hs=Qe("([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?!$)(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?");function Ns(t){const e=ws.exec(t);return e?(t=>{const e=t[12],n="Z"===(e||"").toUpperCase();return{year:_s(t),month:parseInt(t[5]),day:parseInt(t[6]),...Os(t,7),...Bs(t[19]),te:Boolean(t[7]),F:n,offset:n?void 0:e}})(e):void 0}function Cs(t){const e=Ms.exec(t);if(e)return(t=>({year:_s(t),month:parseInt(t[4]),day:1,...Bs(t[5])}))(e)}function Ds(t){const e=vs.exec(t);return e?(t=>({year:1972,month:parseInt(t[1]),day:parseInt(t[2]),...Bs(t[3])}))(e):void 0}function ks(t){const e=bs.exec(t);if(e)return e[6]&&li(e[6]),e}function Os(t,e){const n=nn(t[e+3]);return{...vr(tn(t[e+4]||""))[0],hour:nn(t[e]),minute:nn(t[e+2]),second:60===n?59:n}}function _s(t){const e=en(t[1]),n=parseInt(t[2]||t[3]);return e<0&&!n&&Le(De(-0)),e*n}function Bs(t){let e,n;const r=[];return t.replace(Es,(t,a,o)=>{const i=Boolean(a),[s,u]=o.split("=").reverse();return u?"u-ca"===u?(r.push(s.toLowerCase()),e||(e=i)):(i||/[A-Z]/.test(u))&&Le(De(t)):(n&&Le(De(t)),n=s),""}),r.length>1&&e&&Le(De(t)),{timeZoneId:n,calendarId:r[0]||"iso8601"}}function Ls(t,e,n){const r=Object.assign(Object.create(null),e);return Rs(r,n,Wn),ai(t)&&(Rs(r,n,Jn),t&&t.je&&Rs(r,n,qn,Gn)),r}function Rs(t,e,n,r){let a=0;const o=[];for(const t of n)void 0!==e[t]?a=1:o.push(t);if(Object.assign(t,e),a)for(const e of r||o)delete t[e]}function Ys(t,e,n){const[r,a]=Kr(t,e,n);return vn(r,a)}function Zs(t,e,n){const[r,a]=function(t,e){const n=e((t=Rt(t,"unit")).relativeTo);let r=Qt(t);return r=da("unit",r),[r,n]}(n,t),o=Qo(e),i=Math.max(r,o),s=a&&Lo(a);if(!a&&Ro(i,s))return Ps(e,r);if(a||Le("Missing relativeTo"),!e.sign&&(!s||r<6))return 0;const[u,c,h]=Do(a,e,r);return Ro(r,s)?Ps(u,r):((t,e,n,r)=>{const a=ra[n],o=la(n,t);return function(t,e,n,r){const a=Oa(t,e,r,n);return Ba(a,Number(n-a.I)/Number(a.O-a.I))}(t[a],Fo(t)||1,e,t=>(o[a]=t,Oo(r,o)))})(u,c,r,h)}function Ps(t,e){return Un(Ko(t),_n[e])}function Us(t){return Za(ro(t),t.calendar)}function xs(t){return Pa(ro(t),t.calendar)}function zs(t){return Ua(ro(t))}function Fs(t,e,n){const r=oi(t,fr,mr);let a=Ls(t,e,n);a=Ai(a,r,fi,[]);const[o,i]=pi(a,t);return Mi(a,t,o,i,0)}function js(t){return t.timeZone="UTC",["full","long"].includes(t.timeStyle)&&(t.timeStyle="medium"),t}function $s(t,e,n){const r=t.resolvedOptions().calendar;!n&&e.calendar===pn||In(e.calendar)===r||Le("Mismatching Calendars")}function Vs(t,e,n,r,a){const o=new Set(t),i=new Set(e),s=new Set(n);return(t,e)=>{let n,u;const c={},h={},l={};let d=0,f=0;for(const e of Object.keys(t)){const r=t[e];void 0===r||s.has(e)||(o.has(e)?"dateStyle"===e?n=r:"timeStyle"===e?u=r:c[e]=r:"era"===e?h[e]=r:i.has(e)?"dateStyle"===e||"timeStyle"===e?f=1:d=1:l[e]=r)}const m=void 0!==n,g=void 0!==u,y=m||g,S=Object.keys(c).length>0,A=d||f,p=S||m||g,I=Object.keys(h).length>0;(!e&&A||e&&A&&!p||y&&(S||I||d))&&Re("Invalid formatting options");const T={};return y||p||Object.assign(T,r),Object.assign(T,c,h,l),m&&(a?Object.assign(T,a[n]):T.dateStyle=n),g&&(T.timeStyle=u),T}}const Ks={year:"numeric",month:"numeric",day:"numeric"},Gs={hour:"numeric",minute:"numeric",second:"numeric"},Js=Object.assign({},Ks,Gs),Ws=["weekday","year","month","day","dateStyle"],qs=["dayPeriod","hour","minute","second","fractionalSecondDigits","timeStyle"],Xs=Ws.concat(qs),Qs=["weekday","day"].concat(qs),tu=["weekday","year"].concat(qs),eu=Vs(Xs,[],[],Js),nu=Vs(Xs,[],[],{...Js,timeZoneName:"short"}),ru=Vs(Xs,[],["timeZoneName"],Js),au=Vs(Ws,qs,["timeZoneName"],Ks),ou=Vs(qs,Ws,["timeZoneName","era"],Gs),iu=Vs(["year","month","dateStyle"],Qs,["timeZoneName"],{year:"numeric",month:"numeric"},{full:{year:"numeric",month:"long"},long:{year:"numeric",month:"long"},medium:{year:"numeric",month:"short"},short:{year:"2-digit",month:"numeric"}}),su=Vs(["month","day","dateStyle"],tu,["timeZoneName","era"],{month:"numeric",day:"numeric"},{full:{month:"long",day:"numeric"},long:{month:"long",day:"numeric"},medium:{month:"short",day:"numeric"},short:{month:"numeric",day:"numeric"}});function uu(t){const e=cu(),n=t.B(e);return _r(e+BigInt(n))}function cu(){return BigInt(Date.now())*Ln}function hu(){return(new Ei).resolvedOptions().timeZone}const lu=globalThis.Temporal,du="PlainYearMonth",fu="PlainMonthDay",mu="PlainDate",gu="PlainDateTime",yu="PlainTime",Su="ZonedDateTime",Au="Instant",pu="Duration";function Iu(t,e,n,...r){return Object.defineProperties(e,Ue({name:t},1)),Object.defineProperties(e.prototype,xe("Temporal."+t)),Object.defineProperties(e.prototype,ze(t=>({get(){return t(n(this))},configurable:1}),Object.assign({},...r))),e}const Tu="noop"===We.name?t=>{Object.defineProperty(t,"_str_",{value:t.toJSON()})}:We;function Mu(){Re("Invalid calling context")}function vu(){Re("Cannot use valueOf")}const wu={era:t=>Gr(t.calendar,t).era,eraYear:t=>Gr(t.calendar,t).eraYear,year:t=>Vr(t.calendar,t).year,month:t=>Vr(t.calendar,t).month,monthCode:t=>Xr(t.calendar,t)},bu={era:t=>Gr(t.calendar,t).era,eraYear:t=>Gr(t.calendar,t).eraYear,year:t=>Vr(t.calendar,t).year,month:t=>Vr(t.calendar,t).month,monthCode:t=>Xr(t.calendar,t),day:t=>Vr(t.calendar,t).day},Eu={monthCode:t=>Xr(t.calendar,t),day:t=>Vr(t.calendar,t).day},Hu={daysInMonth:t=>ea(t.calendar,t),daysInYear:t=>na(t.calendar,t),monthsInYear:t=>ta(t.calendar,t),inLeapYear:t=>Qr(t.calendar,t)},Nu={dayOfWeek:t=>Zr(t),dayOfYear:t=>function(t,e){if(!t)return Pr(e);const{year:n}=Vr(t,e),r=Jr(t,n,1,1);return kr(e)-kr(r)+1}(t.calendar,t),weekOfYear:t=>function(t,e){return t===pn?Ur(e).weekOfYear:void 0}(t.calendar,t),yearOfWeek:t=>function(t,e){return t===pn?Ur(e).yearOfWeek:void 0}(t.calendar,t),daysInWeek:()=>7,daysInMonth:t=>ea(t.calendar,t),daysInYear:t=>na(t.calendar,t),monthsInYear:t=>ta(t.calendar,t),inLeapYear:t=>Qr(t.calendar,t)};function Cu(t,e,n,r){const[a,o,i,s]=le(t,r,3,5);return Lu(t,vo(e.epochNanoseconds,n.epochNanoseconds,a,o,i,s))}function Du(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,5);return Lu(t,To(a,e,n,o,i,s,u))}function ku(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,6);return Lu(t,function(t,e,n,r,a,o,i){return r<=6?vo(Hr(e),Hr(n),r,a,o,i):((t,e,n,r,a,o,i)=>{const s=Hr(n),u=sn(s,Hr(e));if(!u)return ca;let c;return c=Eo(t,e,n,u,r),c=Fa(c,s,r,a,o,i,((t,e)=>({ne:Hr(e),ke:n=>Hr(Ia(mo(t,e,n),e))}))(t,e)),c})(t,e,n,r,a,o,i)}(a,e,n,o,i,s,u))}function Ou(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,6,9,6);return Lu(t,function(t,e,n,r,a,o,i,s=6){return 6===r?vo(Cr(e),Cr(n),r,a,o,i):Mo(t,e,n,r,a,o,i,s)}(a,e,n,o,i,s,u))}function _u(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,9,9,8);return Lu(t,function(t,e,n,r,a,o,i){const s=go(t,e),u=go(t,n);return No(s,u)?Mo(t,Ea(s),Ea(u),r,a,o,i,8):ca}(a,e,n,o,i,s,u))}function Bu(t,e,n,r){const[a,o,i,s]=le(t,r,5,5);return Lu(t,function(t,e,n,r,a,o){const i=Da(pr(e)-pr(t),eo(r,a),o);return{...ca,...qo(i,n)}}(e,n,a,o,i,s))}function Lu(t,e){return xa(t?zo(e):e)}function Ru(t,e,n){const{calendar:r}=t,a=function(t,e,n){const r=oi(t,or,ir),{year:a,month:o,day:i}=Vr(t,e);return Ls(t,{year:a,monthCode:Ys(t,a,o),day:i},Ai(n,r,fi))}(r,t,e),[o,i]=pi(a,r);return Mi(a,r,o,i,fe(n))}function Yu(t,e,n){const{calendar:r}=t,[a,o]=function(t,e,n){const r=oi(t,sr,ur),{year:a,month:o,day:i}=Vr(t,e),s={year:a,monthCode:Ys(t,a,o),day:i,hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond,microsecond:e.microsecond,nanosecond:e.nanosecond},u=Ai(n,r,yi),c=Ls(t,s,u);return[{...s,...u},c]}(r,t,e),[i,s]=pi(o,r);return function(t,e,n,r,a,o){return Ti(Mi(e,n,r,a,o),Ar(t,o),n)}(a,o,r,i,s,fe(n))}function Zu(t,e,n){const{calendar:r}=t,a=function(t,e,n){const r=oi(t,tr,er),{year:a,month:o}=Vr(t,e);return Ls(t,{year:a,monthCode:Ys(t,a,o)},Ai(n,r,fi))}(r,t,e),[o,i]=pi(a,r,1);return vi(a,r,o,i,fe(n))}function Pu(t,e,n){const{calendar:r}=t,a=function(t,e,n){const r=oi(t,or,ir),{year:a,month:o,day:i}=Vr(t,e);return Ls(t,{monthCode:Ys(t,a,o),day:i},Ai(n,r,fi))}(r,t,e),[o,i]=Ii(a,r);return wi(a,r,o,i,fe(n))}function Uu(t,e,n){const r=function(t,e){return{...$e(Xn,t),...Ai(e,Xn,mi)}}(t,e);return ci(r,fe(n))}function xu(t,e,n){const{calendar:r}=t,[a,o]=function(t,e,n){const r=oi(t,cr,hr),a=ro(e),{year:o,month:i,day:s}=Vr(t,a),u={year:o,monthCode:Ys(t,o,i),day:s,hour:a.hour,minute:a.minute,second:a.second,millisecond:a.millisecond,microsecond:a.microsecond,nanosecond:a.nanosecond,offset:a.offsetNanoseconds},c=Ai(n,r,Si),h=Ls(t,u,c);return[{...u,...c},h]}(r,t,e),[i,s]=pi(o,r),[u,c,h]=me(n,2);return function(t,e,n,r,a,o,i,s){const{calendar:u,timeZone:c}=t;return Ya(oo(c,Ia(Mi(n,u,r,a,o),Ar(e,o)),e.offset,i,s),c,u)}(t,a,o,i,s,u,c,h)}function zu(t){return function(t,e=Je){const n=new WeakMap;function r(t){const e=n.get(t);return e||Re("Invalid calling context"),e}class a{constructor(r,a=Object.create(null)){const o=e(a),i=[],s=new Proxy(Object.create(null),{get(t,e){const n=o[e];return void 0!==n&&i.push(e),n}}),u=new Ei(r,s),c=u.resolvedOptions(),h=$e(i,c);n.set(this,{$:t({t:u,Ce:c.locale,G:h,Ee:o}),t:u})}get format(){const t=r(this);return t.we||(t.we=e=>{const[n,...r]=t.$.A(e);return n.format(...r)})}formatToParts(t){const{$:e}=r(this),[n,...a]=e.A(t);return n.formatToParts(...a)}resolvedOptions(){return r(this).t.resolvedOptions()}}const{prototype:o}=a;function i(t,e){return new a(t,e)}Ei.prototype.formatRange&&Object.defineProperties(o,Ue({formatRange(t,e){const{$:n}=r(this),[a,o,i]=n.v(t,e);return a.formatRange(o,i)},formatRangeToParts(t,e){const{$:n}=r(this),[a,o,i]=n.v(t,e);return a.formatRangeToParts(o,i)}}));const s=Object.getOwnPropertyDescriptors(Ei);return s.prototype.value=o,Object.defineProperties(i,s),o.constructor=i,Object.defineProperties(o,xe("Intl.DateTimeFormat")),i}(e=>{const n=Pe(t=>{let n;switch(t){case Au:n=eu(e.G,1);break;case gu:n=js(ru(e.G,1));break;case mu:n=js(au(e.G,1));break;case yu:n=js(ou(e.G,1));break;case du:n=js(iu(e.G,1));break;case fu:n=js(su(e.G,1));break;default:Re(ke(t))}return new Ei(e.Ce,n)});return{A(r){if(void 0===r)return[e.t];const a=t(r);if(!a)return[e.t,Number(r)];const[o,i]=a,s=n(o);return Fu(s,o,i),[s,ju(o,i)]},v(r,a){void 0!==r&&void 0!==a||Re(Oe);const o=t(r),i=o?void 0:Number(r),s=t(a),u=s?void 0:Number(a);if(!o&&!s)return[e.t,i,u];o&&s||Re(Oe);const[c,h]=o,[l,d]=s;c!==l&&Re(Oe);const f=n(c);return Fu(f,c,h),Fu(f,c,d),[f,ju(c,h),ju(c,d)]}}})}function Fu(t,e,n){switch(e){case Au:case yu:return;case gu:case mu:return void $s(t,n);case du:case fu:return void $s(t,n,1);default:Re(ke(e))}}function ju(t,e){switch(t){case Au:return Er(e.epochNanoseconds);case gu:return Nr(e);case mu:case du:case fu:return Dr(e);case yu:return Ir(e);default:Re(ke(t))}}function $u(t){const e=fa(t).toLowerCase();return e===yn?pn:"gregory"===e?0:void Le((n=t,r="temporal-polyfill/full",`Unknown calendar ${n}; might need ${r}`));var n,r}function Vu(t=yn){return $u(t)}const Ku=new WeakMap,Gu=Iu(Su,class{constructor(t,e,n=void 0){tc(this,Ya(Na(Aa(t)),rs(Qi(fa(e))),Vu(n)))}static from(t,e=void 0){return Ju(Qu(t,e))}static compare(t,e){return ti(Qu(t),Qu(e))}get calendarId(){return In(Wu(this).calendar)}get timeZoneId(){return Wu(this).timeZone.id}get epochMilliseconds(){return Er(Wu(this).epochNanoseconds)}get epochNanoseconds(){return Wu(this).epochNanoseconds}get offset(){return $i(ro(Wu(this)).offsetNanoseconds)}get offsetNanoseconds(){return ro(Wu(this)).offsetNanoseconds}get hoursInDay(){return function(t){const[e,n]=Wa(t);return Un(n-e,kn)}(Wu(this))}with(t,e=void 0){return Ju(xu(Wu(this),bc(t),e))}withCalendar(t){return Ju({...Wu(this),calendar:Wc(t)})}withTimeZone(t){return Ju({...Wu(this),timeZone:rs(ec(t))})}withPlainTime(t=void 0){return Ju(function(t,e){const{timeZone:n}=t,r=ro(t),{offsetNanoseconds:a}=r,o=e||gr;let i;return i=e?oo(n,Ia(r,o),a,2):so(n,Ia(r,o)),Ya(i,n,t.calendar)}(Wu(this),Oc(t)))}add(t,e=void 0){return Ju(co(Wu(this),nh(t),fe(e)))}subtract(t,e=void 0){return Ju(co(Wu(this),zo(nh(t)),fe(e)))}until(t,e=void 0){return Qc(Du(0,Wu(this),Qu(t),e))}since(t,e=void 0){return Qc(Du(1,Wu(this),Qu(t),e))}round(t){const e=Wu(this),[n,r,a]=de(t);return Ju(za(e,n,r,a))}startOfDay(){return Ju(function(t){const{timeZone:e,calendar:n}=t;return Ya(so(e,Ia(ro(t),gr)),e,n)}(Wu(this)))}equals(t){return e=Wu(this),n=Qu(t),!ti(e,n)&&e.timeZone.m===n.timeZone.m&&e.calendar===n.calendar;var e,n}toInstant(){return ac(Ra(Wu(this).epochNanoseconds))}toPlainDateTime(){return Rc(Us(Wu(this)))}toPlainDate(){return Fc(xs(Wu(this)))}toPlainTime(){return Nc(zs(Wu(this)))}toLocaleString(t=void 0,e={}){const n=Wu(this),r=new Ei(t,function(t,e){return void 0!==t.timeZone&&Re("Cannot specify TimeZone"),t.timeZone=e,t}(nu(e),function(t){return t.timeZone.id}(n)));return $s(r,n),r.format(Er(n.epochNanoseconds))}toString(t=void 0){return Di(Wu(this),t)}toJSON(){return Di(Wu(this))}getTimeZoneTransition(t){const e=Wu(this),n=e.timeZone.C(e.epochNanoseconds,function(t){const e=Rt(t,"direction"),n=se(e,0);return n||Le(pe("direction",n)),n}(t));return void 0!==n?Ju({...e,epochNanoseconds:n}):null}valueOf(){return vu()}},qu,bu,Nu,zn);function Ju(t){return tc(Object.create(Gu.prototype),t)}function Wu(t){return Xu(t)||Mu()}function qu(t){const e=Wu(t);return{...ro(e),calendar:e.calendar}}function Xu(t){return Ku.get(t)}function Qu(t,e){if(Be(t)){const n=Xu(t);if(n)return me(e),n;return function(t,e,n,r){const a=Ai(n,oi(e,lr,dr),Si,Kn,0),o=t(a.timeZone),[i,s]=pi(a,e),[u,c,h]=me(r),l=Mi(a,e,i,s,u),d=ci(a,u),f=rs(o);return Ya(oo(f,Ia(l,d),a.offset,c,h),f,e)}(ec,Gc(t),t,e)}return function(t,e,n){const r=Ns(fa(t));return r&&r.timeZoneId||ls(t),Ss(r,e,n)}(t,$u,e)}function tc(t,e){return Ku.set(t,e),Tu(t),t}function ec(t){if(Be(t)){const e=Xu(t);return e||Re(be(t)),e.timeZone.id}return(t=>Qi(function(t){const e=Ns(t);return e&&(e.timeZoneId||e.F&&"UTC"||e.offset)||t}(fa(t))))(t)}const nc=new WeakMap,rc=Iu(Au,class{constructor(t){cc(this,Ra(Na(Aa(t))))}static from(t){return ac(sc(t))}static fromEpochMilliseconds(t){return ac(function(t){return Ra(Na(BigInt(pa(t))*Ln))}(t))}static fromEpochNanoseconds(t){return ac(function(t){return Ra(Na(Aa(t)))}(t))}static compare(t,e){return ti(sc(t),sc(e))}get epochMilliseconds(){return Er(oc(this).epochNanoseconds)}get epochNanoseconds(){return oc(this).epochNanoseconds}add(t){return ac(Ra(fo(oc(this).epochNanoseconds,nh(t))))}subtract(t){return ac(Ra(fo(oc(this).epochNanoseconds,zo(nh(t)))))}until(t,e=void 0){return Qc(Cu(0,oc(this),sc(t),e))}since(t,e=void 0){return Qc(Cu(1,oc(this),sc(t),e))}round(t){const e=oc(this),[n,r,a]=de(t,5,1);return ac(Ra(Qa(e.epochNanoseconds,no(n,r),a)))}equals(t){return e=oc(this),n=sc(t),!ti(e,n);var e,n}toZonedDateTimeISO(t){return Ju(function(t,e,n){return Ya(t.epochNanoseconds,e,n)}(oc(this),rs(ec(t))))}toLocaleString(t=void 0,e={}){const n=oc(this);return new Ei(t,eu(e)).format(Er(n.epochNanoseconds))}toString(t=void 0){return Ci(ec,oc(this),t)}toJSON(){return Ci(ec,oc(this))}valueOf(){return vu()}});function ac(t){return cc(Object.create(rc.prototype),t)}function oc(t){return ic(t)||Mu()}function ic(t){return nc.get(t)}function sc(t){if(Be(t)){const e=ic(t);if(e)return e;const n=Xu(t);if(n)return Ra(n.epochNanoseconds)}return function(t){const e=Ns(t=fa(Sa(t)));let n;return e||ls(t),e.F?n=0:e.offset?n=li(e.offset):ls(t),e.timeZoneId&&di(e.timeZoneId,1),zr(e),Ra(Ca(e,n))}(t)}const{toTemporalInstant:uc}={toTemporalInstant(){const t=Date.prototype.valueOf.call(this);return ac(Ra(BigInt(ga(t))*Ln))}};function cc(t,e){return nc.set(t,e),Tu(t),t}const hc=new WeakMap,lc=Iu(fu,class{constructor(t,e,n=void 0,r){const a=Ot(t),o=Ot(e),i=Vu(n);yc(this,Pa(Ea(Fr({year:Ot(r??1972),month:a,day:o})),i))}static from(t,e=void 0){return dc(gc(t,e))}get calendarId(){return In(fc(this).calendar)}with(t,e=void 0){return dc(Pu(fc(this),bc(t),e))}equals(t){return e=fc(this),n=gc(t),!ni(e,n)&&e.calendar===n.calendar;var e,n}toPlainDate(t){return Fc(function(t,e,n){const r=oi(t,Fn,Qn);return Fs(t,$e(ar,e),Ai(Lt(n),r,fi,[]))}(fc(this).calendar,this,t))}toLocaleString(t=void 0,e={}){const n=fc(this),r=new Ei(t,js(su(e)));return $s(r,n,1),r.format(Dr(n))}toString(t=void 0){return Bi(fc(this),t)}toJSON(){return Bi(fc(this))}valueOf(){return vu()}},fc,Eu);function dc(t){return yc(Object.create(lc.prototype),t)}function fc(t){return mc(t)||Mu()}function mc(t){return hc.get(t)}function gc(t,e){if(Be(t)){const n=mc(t);if(n)return fe(e),n;const r=Jc(t);return function(t,e,n,r){const a=Ai(n,oi(t,or,ir),fi,jn,0);e&&void 0!==a.month&&void 0===a.monthCode&&void 0===a.year&&(a.year=1972);const[o,i]=Ii(a,t);return wi(a,t,o,i,fe(r))}(void 0===r?pn:r,void 0===r,t,e)}const n=function(t,e){const n=Ds(fa(t));if(n)return ds(n),Pa(Fr(n),e(n.calendarId));const r=ms(fs(t),ys,e),{calendar:a}=r,{year:o,month:i,day:s}=Vr(a,r),[u,c]=Kr(a,o,i),{year:h,month:l}=((t,e,n,r)=>{const a=t?t.u(e,n,r):Lr(e,n);return a||Le("Cannot guess year"),a})(a,u,c,s);return Pa(Ea(Jr(a,h,l,s)),a)}(t,$u);return fe(e),n}function yc(t,e){return hc.set(t,e),Tu(t),t}const Sc=new WeakMap,Ac=Iu(du,class{constructor(t,e,n=void 0,r){const a=Ot(t),o=Ot(e),i=Vu(n);vc(this,Pa(ba(Fr({year:a,month:o,day:Ot(r??1)})),i))}static from(t,e=void 0){return pc(Mc(t,e))}static compare(t,e){return ni(Mc(t),Mc(e))}get calendarId(){return In(Ic(this).calendar)}with(t,e=void 0){return pc(Zu(Ic(this),bc(t),e))}add(t,e=void 0){const n=Ic(this);return pc(Pa(uo(n.calendar,n,nh(t),fe(e)),n.calendar))}subtract(t,e=void 0){const n=Ic(this);return pc(Pa(uo(n.calendar,n,zo(nh(t)),fe(e)),n.calendar))}until(t,e=void 0){return Qc(_u(0,Ic(this),Mc(t),e))}since(t,e=void 0){return Qc(_u(1,Ic(this),Mc(t),e))}equals(t){return e=Ic(this),n=Mc(t),!ni(e,n)&&e.calendar===n.calendar;var e,n}toPlainDate(t){return Fc(function(t,e,n){return Fs(t,$e(oi(t,nr,rr),e),Ai(Lt(n),jn,fi,[]))}(Ic(this).calendar,this,t))}toLocaleString(t=void 0,e={}){const n=Ic(this),r=new Ei(t,js(iu(e)));return $s(r,n,1),r.format(Dr(n))}toString(t=void 0){return _i(Ic(this),t)}toJSON(){return _i(Ic(this))}valueOf(){return vu()}},Ic,wu,Hu);function pc(t){return vc(Object.create(Ac.prototype),t)}function Ic(t){return Tc(t)||Mu()}function Tc(t){return Sc.get(t)}function Mc(t,e){if(Be(t)){const n=Tc(t);if(n)return fe(e),n;return function(t,e,n,r){const a=Ai(e,oi(t,tr,er),fi,r),[o,i]=pi(a,t,1);return vi(a,t,o,i,fe(n))}(Gc(t),t,e)}const n=function(t,e){const n=Cs(fa(t));if(n)return ds(n),Pa(ba(Fr(n)),e(n.calendarId));const r=ms(fs(t),gs,e),{calendar:a}=r;return Pa(go(a,r),a)}(t,$u);return fe(e),n}function vc(t,e){return Sc.set(t,e),Tu(t),t}function wc(t){if(!Be(t))return;let e=ic(t);return e?[Au,e]:(e=Xu(t),e?[Su,e]:(e=Zc(t),e?[gu,e]:(e=$c(t),e?[mu,e]:(e=Dc(t),e?[yu,e]:(e=Tc(t),e?[du,e]:(e=mc(t),e?[fu,e]:(e=eh(t),e?[pu,e]:void 0)))))))}function bc(t){return(wc(t)||void 0!==t.calendar||void 0!==t.timeZone)&&Re("Invalid bag"),t}const Ec=new WeakMap,Hc=Iu(yu,class{constructor(t=0,e=0,n=0,r=0,a=0,o=0){_c(this,Ua(yr(ze(Ot,{hour:t,minute:e,second:n,millisecond:r,microsecond:a,nanosecond:o}))))}static from(t,e=void 0){return Nc(kc(t,e))}static compare(t,e){return ri(kc(t),kc(e))}with(t,e=void 0){return Nc(Uu(Cc(this),bc(t),e))}add(t){return Nc(lo(Cc(this),nh(t))[0])}subtract(t){return Nc(lo(Cc(this),zo(nh(t)))[0])}until(t,e=void 0){return Qc(Bu(0,Cc(this),kc(t),e))}since(t,e=void 0){return Qc(Bu(1,Cc(this),kc(t),e))}round(t){const e=Cc(this),[n,r,a]=de(t,5);return Nc(Va(e,eo(n,r),a)[0])}equals(t){return e=Cc(this),n=kc(t),!ri(e,n);var e,n}toLocaleString(t=void 0,e={}){const n=Cc(this);return new Ei(t,js(ou(e))).format(Ir(n))}toString(t=void 0){return Ri(Cc(this),t)}toJSON(){return Ri(Cc(this))}valueOf(){return vu()}},Cc,zn);function Nc(t){return _c(Object.create(Hc.prototype),t)}function Cc(t){return Dc(t)||Mu()}function Dc(t){return Ec.get(t)}function kc(t,e){if(Be(t)){const n=Dc(t);if(n)return fe(e),n;const r=Zc(t);if(r)return fe(e),Ua(r);const a=Xu(t);return a?(fe(e),zs(a)):function(t,e){return ci(Ai(t,Xn,mi,[],1),fe(e))}(t,e)}const n=function(t){let e,n=(t=>{const e=ks(t);return e?(Bs(e[13]),Os(e,1)):void 0})(t=fa(t));if(!n){const e=Ns(t);e&&e.te||ls(t),e.F&&Le(De("Z")),ds(e),n=e}return(e=Cs(t))&&jr(e)&&ls(t),(e=Ds(t))&&jr(e)&&ls(t),Ua(yr(n))}(t);return fe(e),n}function Oc(t){return void 0===t?void 0:kc(t)}function _c(t,e){return Ec.set(t,e),Tu(t),t}const Bc=new WeakMap,Lc=Iu(gu,class{constructor(t,e,n,r=0,a=0,o=0,i=0,s=0,u=0,c=void 0){Uc(this,Za(Ha(zr(ze(Ot,{year:t,month:e,day:n,hour:r,minute:a,second:o,millisecond:i,microsecond:s,nanosecond:u}))),Vu(c)))}static from(t,e=void 0){return Rc(Pc(t,e))}static compare(t,e){return ei(Pc(t),Pc(e))}get calendarId(){return In(Yc(this).calendar)}with(t,e=void 0){return Rc(Yu(Yc(this),bc(t),e))}withCalendar(t){return Rc(Za(Yc(this),Wc(t)))}withPlainTime(t=void 0){const e=Yc(this);return Rc(Ti(e,Oc(t),e.calendar))}add(t,e=void 0){const n=Yc(this);return Rc(Za(ho(n.calendar,n,nh(t),fe(e)),n.calendar))}subtract(t,e=void 0){const n=Yc(this);return Rc(Za(ho(n.calendar,n,zo(nh(t)),fe(e)),n.calendar))}until(t,e=void 0){return Qc(ku(0,Yc(this),Pc(t),e))}since(t,e=void 0){return Qc(ku(1,Yc(this),Pc(t),e))}round(t){const e=Yc(this),[n,r,a]=de(t);return Rc(Za($a(e,eo(n,r),a),e.calendar))}equals(t){return e=Yc(this),n=Pc(t),!ei(e,n)&&e.calendar===n.calendar;var e,n}toZonedDateTime(t,e=void 0){return Ju((n=Yc(this),r=rs(ec(t)),a=function(t){return ee(Dt(t))}(e),Ya(Na(io(r,n,a)),r,n.calendar)));var n,r,a}toPlainDate(){const t=Yc(this);return Fc(Pa(t,t.calendar))}toPlainTime(){return Nc(Ua(Yc(this)))}toLocaleString(t=void 0,e={}){const n=Yc(this),r=new Ei(t,js(ru(e)));return $s(r,n),r.format(Nr(n))}toString(t=void 0){return ki(Yc(this),t)}toJSON(){return ki(Yc(this))}valueOf(){return vu()}},Yc,bu,Nu,zn);function Rc(t){return Uc(Object.create(Lc.prototype),t)}function Yc(t){return Zc(t)||Mu()}function Zc(t){return Bc.get(t)}function Pc(t,e){if(Be(t)){const n=Zc(t);if(n)return fe(e),n;const r=$c(t);if(r)return fe(e),Za(Ia(r,gr),r.calendar);const a=Xu(t);if(a)return fe(e),Us(a);return function(t,e,n){const r=Ai(e,oi(t,sr,ur),yi,[],0),[a,o]=pi(r,t),i=fe(n);return Ti(Mi(r,t,a,o,i),ci(r,i),t)}(Gc(t),t,e)}const n=function(t,e){const n=Ns(fa(t));return n&&!n.F||ls(t),As(n,e)}(t,$u);return fe(e),n}function Uc(t,e){return Bc.set(t,e),Tu(t),t}const xc=new WeakMap,zc=Iu(mu,class{constructor(t,e,n,r=void 0){Kc(this,Pa(Ea(Fr(ze(Ot,{year:t,month:e,day:n}))),Vu(r)))}static from(t,e=void 0){return Fc(Vc(t,e))}static compare(t,e){return ni(Vc(t),Vc(e))}get calendarId(){return In(jc(this).calendar)}with(t,e=void 0){return Fc(Ru(jc(this),bc(t),e))}withCalendar(t){return Fc(Pa(jc(this),Wc(t)))}add(t,e=void 0){const n=jc(this);return Fc(Pa(mo(n.calendar,n,nh(t),fe(e)),n.calendar))}subtract(t,e=void 0){const n=jc(this);return Fc(Pa(mo(n.calendar,n,zo(nh(t)),fe(e)),n.calendar))}until(t,e=void 0){return Qc(Ou(0,jc(this),Vc(t),e))}since(t,e=void 0){return Qc(Ou(1,jc(this),Vc(t),e))}equals(t){return e=jc(this),n=Vc(t),!ni(e,n)&&e.calendar===n.calendar;var e,n}toZonedDateTime(t){const e=Be(t)?{timeZone:t.timeZone,plainTime:t.plainTime}:{timeZone:t},n=jc(this),r=ec(e.timeZone),a=e.plainTime,o=void 0!==a?kc(a):void 0;return Ju(function(t,e,n){let r;return r=n?io(e,Ia(t,n)):so(e,Ia(t,gr)),Ya(r,e,t.calendar)}(n,rs(r),o))}toPlainDateTime(t=void 0){const e=jc(this);return Rc(Ti(e,Oc(t),e.calendar))}toPlainYearMonth(){return pc(function(t,e){const n=Ai(e,oi(t,nr,rr),fi),[r,a]=pi(n,t,1);return vi(n,t,r,a,0)}(jc(this).calendar,this))}toPlainMonthDay(){return dc(function(t,e){const n=Ai(e,ar,fi),[r,a]=Ii(n,t);return wi(n,t,r,a,0)}(jc(this).calendar,this))}toLocaleString(t=void 0,e={}){const n=jc(this),r=new Ei(t,js(au(e)));return $s(r,n),r.format(Dr(n))}toString(t=void 0){return Oi(jc(this),t)}toJSON(){return Oi(jc(this))}valueOf(){return vu()}},jc,bu,Nu);function Fc(t){return Kc(Object.create(zc.prototype),t)}function jc(t){return $c(t)||Mu()}function $c(t){return xc.get(t)}function Vc(t,e){if(Be(t)){const n=$c(t);if(n)return fe(e),n;const r=Zc(t);if(r)return fe(e),Pa(r,r.calendar);const a=Xu(t);if(a)return fe(e),xs(a);return function(t,e,n,r=[]){const a=Ai(e,oi(t,or,ir),fi,r),[o,i]=pi(a,t);return Mi(a,t,o,i,fe(n))}(Gc(t),t,e)}const n=function(t,e){const n=ms(fs(fa(t)),void 0,e);return Pa(n,n.calendar)}(t,$u);return fe(e),n}function Kc(t,e){return xc.set(t,e),Tu(t),t}function Gc(t){const e=Jc(t);return void 0===e?pn:e}function Jc(t){const{calendar:e}=t;if(void 0!==e)return Wc(e)}function Wc(t){if(Be(t)){const e=$c(t)||Zc(t)||Xu(t)||mc(t)||Tc(t);return e||Re(Ct("Calendar",t)),e.calendar}return(t=>$u(function(t){const e=Ns(t)||Cs(t)||Ds(t);if(e)return e.calendarId;const n=ks(t);return n?Bs(n[13]).calendarId:t}(fa(t))))(t)}const qc=new WeakMap,Xc=Iu(pu,class{constructor(t=0,e=0,n=0,r=0,a=0,o=0,i=0,s=0,u=0,c=0){ah(this,xa(jo(ze(pa,{years:t,months:e,weeks:n,days:r,hours:a,minutes:o,seconds:i,milliseconds:s,microseconds:u,nanoseconds:c}))))}static from(t){return Qc(nh(t))}static compare(t,e,n=void 0){return function(t,e,n,r){const a=t(Dt(r).relativeTo),o=Math.max(Qo(e),Qo(n));return Ve(ra,e,n)?0:Ro(o,a&&Lo(a))?sn(Ko(e),Ko(n)):(a||Le("Missing relativeTo"),sn(ko(a,e),ko(a,n)))}(rh,nh(t),nh(e),n)}get sign(){return th(this).sign}get blank(){return!th(this).sign}with(t){return Qc((e=th(this),xa((n=e,r=t,jo({...n,...Ai(r,oa,gi)})))));var e,n,r}negated(){return Qc(xo(th(this)))}abs(){return Qc(-1===(t=th(this)).sign?xo(t):t);var t}add(t){return Qc(Po(0,th(this),nh(t)))}subtract(t){return Qc(Po(1,th(this),nh(t)))}round(t){return Qc(Uo(rh,th(this),t))}total(t){return Zs(rh,th(this),t)}toLocaleString(t=void 0,e){const n=th(this);return Intl.DurationFormat?new Intl.DurationFormat(t,e).format(n):Yi(n,e)}toString(t=void 0){return Yi(th(this),t)}toJSON(){return Yi(th(this))}valueOf(){return vu()}},th,aa);function Qc(t){return ah(Object.create(Xc.prototype),t)}function th(t){return eh(t)||Mu()}function eh(t){return qc.get(t)}function nh(t){return Be(t)?eh(t)||function(t){const e=Ai(t,oa,gi);return xa(jo({...ca,...e}))}(t):function(t){const e=Hs.exec(fa(t));return e||ls(t),xa(jo((t=>{let e=0,n=0,r=0,a={years:o(t[2]),months:o(t[3]),weeks:o(t[4]),days:o(t[5]),hours:o(t[6],t[7],5),minutes:o(t[8],t[9],4),seconds:o(t[10],t[11],3),...Yo(r,2,ra)};return e||Le(Te(ra)),en(t[1])<0&&(a=zo(a)),a;function o(t,a,o){let i=0,s=0;return o&&([i,r]=hn(r,_n[o])),void 0!==t&&(n&&Le(De(t)),s=(t=>{const e=parseInt(t);return Number.isFinite(e)||Le(De(t)),e})(t),e=1,a&&(r=tn(a)*(_n[o]/Cn),n=1)),i+s}})(e)))}(t)}function rh(t){if(void 0!==t){if(Be(t)){const e=Xu(t);if(e)return e;const n=$c(t);if(n)return n;const r=Zc(t);if(r)return Pa(r,r.calendar);return function(t,e,n){const r=Ai(n,oi(e,lr,dr),Si,[],0),a=void 0!==r.timeZone,[o,i]=pi(r,e),s=Mi(r,e,o,i,0);if(a){const n=ci(r),a=rs(t(r.timeZone));return{epochNanoseconds:oo(a,Ia(s,n),r.offset),timeZone:a,calendar:e}}return s}(ec,Gc(t),t)}return function(t,e){const n=Ns(fa(t));return n||ls(t),n.timeZoneId?Ss(n,e,void 0):(n.F&&ls(t),ps(n,e))}(t,$u)}}function ah(t,e){return qc.set(t,e),Tu(t),t}const oh=Object.defineProperties({},{...xe("Temporal.Now"),...Ue({timeZoneId:()=>hu(),instant:()=>ac(Ra(cu())),zonedDateTimeISO(t=hu()){const e=rs(ec(t));return Ju(Ya(cu(),e))},plainDateTimeISO:(t=hu())=>Rc(Za(uu(rs(ec(t))))),plainDateISO:(t=hu())=>Fc(Pa(uu(rs(ec(t))))),plainTimeISO:(t=hu())=>Nc(Ua(uu(rs(ec(t)))))})}),ih=Object.defineProperties({},{...xe("Temporal"),...Ue({PlainYearMonth:Ac,PlainMonthDay:lc,PlainDate:zc,PlainTime:Hc,PlainDateTime:Lc,ZonedDateTime:Gu,Instant:rc,Duration:Xc,Now:oh})}),sh=zu(wc);function uh(t){return t*Math.PI/180}function ch(t){return 180*t/Math.PI}lu||(Object.defineProperties(globalThis,Ue({Temporal:ih})),Object.defineProperties(Intl,Ue({DateTimeFormat:sh})),Object.defineProperties(Date.prototype,Ue({toTemporalInstant:uc})));class hh{constructor(t,e,n,r,a){this.setLocationName(t),this.setLatitude(e),this.setLongitude(n),this.setElevation(r),this.setTimeZone(a)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(t){if("number"!=typeof t)throw new TypeError("Invalid elevation");if(t<0)throw new RangeError(`elevation ${t} must be zero or positive`);this.elevation=t}setLatitude(t){if("number"!=typeof t)throw new TypeError("Invalid latitude");if(t<-90||t>90)throw new RangeError(`Latitude ${t} out of range [-90,90]`);this.latitude=t}getLatitude(){return this.latitude}setLongitude(t){if("number"!=typeof t)throw new TypeError("Invalid longitude");if(t<-180||t>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);this.longitude=t}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(t){this.locationName=t}getTimeZone(){return this.timeZoneId}setTimeZone(t){if(!t)throw new RangeError("Invalid timeZoneId");this.timeZoneId=t}}const lh=6356.9;class dh{constructor(t,e){this.date=e,this.geoLocation=t}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const t=this.getUTCSunrise0(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSeaLevelSunrise(){const t=this.getUTCSeaLevelSunrise(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(dh.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(dh.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(dh.ASTRONOMICAL_ZENITH)}getSunset(){const t=this.getUTCSunset0(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!1)}getSeaLevelSunset(){const t=this.getUTCSeaLevelSunset(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(dh.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(dh.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(dh.ASTRONOMICAL_ZENITH)}static getTimeOffset(t,e){return null===t||isNaN(e)?null:t.add({milliseconds:e})}getSunriseOffsetByDegrees(t){const e=this.getUTCSunrise0(t);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSunsetOffsetByDegrees(t){const e=this.getUTCSunset0(t);return isNaN(e)?null:this.getDateFromTime(e,!1)}getUTCSunrise0(t){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,t,!0)}getUTCSeaLevelSunrise(t){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,t,!1)}getUTCSunset0(t){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,t,!0)}getUTCSeaLevelSunset(t){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,t,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(t){return ch(Math.acos(lh/(lh+t/1e3)))}adjustZenith(t,e){let n=t;return t===dh.GEOMETRIC_ZENITH&&(n=t+(.8333333333333333+this.getElevationAdjustment(e))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(t,e,n,r){const a=r?e.getElevation():0,o=this.adjustZenith(n,a);let i=dh.getSunriseUTC(dh.getJulianDay(t),e.getLatitude(),-e.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(t,e,n,r){const a=r?e.getElevation():0,o=this.adjustZenith(n,a);let i=dh.getSunsetUTC(dh.getJulianDay(t),e.getLatitude(),-e.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(t=this.getSeaLevelSunrise(),e=this.getSeaLevelSunset()){if(null===t||null===e)return NaN;const n=e.epochMilliseconds-t.epochMilliseconds;return Math.floor(n/12)}getSunTransit(t=this.getSeaLevelSunrise(),e=this.getSeaLevelSunset()){const n=this.getTemporalHour(t,e);return dh.getTimeOffset(t,6*n)}getDateFromTime(t,e){const n=this.getEpochMillisFromTime(t,e);return isNaN(n)?null:Temporal.Instant.fromEpochMilliseconds(n).toZonedDateTimeISO(this.geoLocation.getTimeZone())}getEpochMillisFromTime(t,e){if(isNaN(t))return NaN;let n=t;const r=this.getAdjustedDate(),a=Math.trunc(n);n-=a;const o=Math.trunc(n*=60);n-=o;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);let u=0;e&&s+a>18?u=-1:!e&&s+a<6&&(u=1);const c=r.year;let h=Date.UTC(c,r.month-1,r.day,a,o,i,Math.trunc(1e3*n));if(c>=0&&c<100){const t=new Date(h);t.setUTCFullYear(c),h=t.getTime()}return h+864e5*u}static getJulianDay(t){let{year:e,month:n}=t;const{day:r}=t;n<=2&&(e-=1,n+=12);const a=Math.trunc(e/100),o=Math.trunc(2-a+a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(n+1))+r+o-1524.5}static getJulianCenturiesFromJulianDay(t){return(t-dh.JULIAN_DAY_JAN_1_2000)/dh.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(t){return t*dh.JULIAN_DAYS_PER_CENTURY+dh.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(t){let e=280.46646+t*(36000.76983+3032e-7*t);for(;e>360;)e-=360;for(;e<0;)e+=360;return e}static getSunGeometricMeanAnomaly(t){return 357.52911+t*(35999.05029-1537e-7*t)}static getEarthOrbitEccentricity(t){return.016708634-t*(42037e-9+1.267e-7*t)}static getSunEquationOfCenter(t){const e=uh(dh.getSunGeometricMeanAnomaly(t));return Math.sin(e)*(1.914602-t*(.004817+14e-6*t))+Math.sin(e+e)*(.019993-101e-6*t)+289e-6*Math.sin(e+e+e)}static getSunTrueLongitude(t){return dh.getSunGeometricMeanLongitude(t)+dh.getSunEquationOfCenter(t)}static getSunApparentLongitude(t){const e=125.04-1934.136*t;return dh.getSunTrueLongitude(t)-.00569-.00478*Math.sin(uh(e))}static getMeanObliquityOfEcliptic(t){return 23+(26+(21.448-t*(46.815+t*(59e-5-.001813*t)))/60)/60}static getObliquityCorrection(t){const e=125.04-1934.136*t;return dh.getMeanObliquityOfEcliptic(t)+.00256*Math.cos(uh(e))}static getSunDeclination(t){const e=dh.getObliquityCorrection(t),n=dh.getSunApparentLongitude(t),r=Math.sin(uh(e))*Math.sin(uh(n));return ch(Math.asin(r))}static getEquationOfTime(t){const e=dh.getObliquityCorrection(t),n=dh.getSunGeometricMeanLongitude(t),r=dh.getEarthOrbitEccentricity(t),a=dh.getSunGeometricMeanAnomaly(t);let o=Math.tan(uh(e)/2);o*=o;const i=Math.sin(2*uh(n)),s=Math.sin(uh(a));return 4*ch(o*i-2*r*s+4*r*o*s*Math.cos(2*uh(n))-.5*o*o*Math.sin(4*uh(n))-1.25*r*r*Math.sin(2*uh(a)))}static getSunHourAngleAtSunrise(t,e,n){const r=uh(t),a=uh(e);return Math.acos(Math.cos(uh(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSunHourAngleAtSunset(t,e,n){const r=uh(t),a=uh(e);return-Math.acos(Math.cos(uh(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSolarElevation(t,e,n){const r=dh.getJulianDay(t.toPlainDate()),a=dh.getJulianCenturiesFromJulianDay(r),o=dh.getEquationOfTime(a);let i=t.hour+12+(t.minute+o+t.second/60)/60;i=-360*i/24%360;const s=uh(n-i),u=uh(dh.getSunDeclination(a)),c=uh(e);return ch(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(t,e,n){const r=dh.getJulianDay(t.toPlainDate()),a=dh.getJulianCenturiesFromJulianDay(r),o=dh.getEquationOfTime(a);let i=t.hour+12+(t.minute+o+t.second/60)/60;i=-360*i/24%360;const s=uh(n-i),u=uh(dh.getSunDeclination(a)),c=uh(e);return ch(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(t,e,n,r){const a=dh.getJulianCenturiesFromJulianDay(t),o=dh.getSolarNoonUTC(a,n),i=dh.getJulianCenturiesFromJulianDay(t+o/1440);let s=dh.getEquationOfTime(i),u=dh.getSunDeclination(i),c=dh.getSunHourAngleAtSunrise(e,u,r),h=n-ch(c),l=4*h,d=720+l-s;const f=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(a)+d/1440);return s=dh.getEquationOfTime(f),u=dh.getSunDeclination(f),c=dh.getSunHourAngleAtSunrise(e,u,r),h=n-ch(c),l=4*h,d=720+l-s,d}static getSolarNoonUTC(t,e){const n=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(t)+e/360);let r=dh.getEquationOfTime(n);const a=720+4*e-r,o=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(t)-.5+a/1440);return r=dh.getEquationOfTime(o),720+4*e-r}static getSunsetUTC(t,e,n,r){const a=dh.getJulianCenturiesFromJulianDay(t),o=dh.getSolarNoonUTC(a,n),i=dh.getJulianCenturiesFromJulianDay(t+o/1440);let s=dh.getEquationOfTime(i),u=dh.getSunDeclination(i),c=dh.getSunHourAngleAtSunset(e,u,r),h=n-ch(c),l=4*h,d=720+l-s;const f=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(a)+d/1440);return s=dh.getEquationOfTime(f),u=dh.getSunDeclination(f),c=dh.getSunHourAngleAtSunset(e,u,r),h=n-ch(c),l=4*h,d=720+l-s,d}}var fh=["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|-0.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"];class mh extends Map{#t=0;#e=new Map;#n=new Map;#r;#a;#o;constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof t.maxAge&&0===t.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=t.maxSize,this.#a=t.maxAge||Number.POSITIVE_INFINITY,this.#o=t.onEviction}get __oldCache(){return this.#n}#i(t){if("function"==typeof this.#o)for(const[e,n]of t)this.#o(e,n.value)}#s(t,e){return"number"==typeof e.expiry&&e.expiry<=Date.now()&&("function"==typeof this.#o&&this.#o(t,e.value),this.delete(t))}#u(t,e){if(!1===this.#s(t,e))return e.value}#c(t,e){return e.expiry?this.#u(t,e):e.value}#h(t,e){const n=e.get(t);return this.#c(t,n)}#l(t,e){this.#e.set(t,e),this.#t++,this.#t>=this.#r&&(this.#t=0,this.#i(this.#n),this.#n=this.#e,this.#e=new Map)}#d(t,e){this.#n.delete(t),this.#l(t,e)}*#f(){for(const t of this.#n){const[e,n]=t;if(!this.#e.has(e)){!1===this.#s(e,n)&&(yield t)}}for(const t of this.#e){const[e,n]=t;!1===this.#s(e,n)&&(yield t)}}get(t){if(this.#e.has(t)){const e=this.#e.get(t);return this.#c(t,e)}if(this.#n.has(t)){const e=this.#n.get(t);if(!1===this.#s(t,e))return this.#d(t,e),e.value}}set(t,e,{maxAge:n=this.#a}={}){const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#e.has(t)?this.#e.set(t,{value:e,expiry:r}):this.#l(t,{value:e,expiry:r}),this}has(t){return this.#e.has(t)?!this.#s(t,this.#e.get(t)):!!this.#n.has(t)&&!this.#s(t,this.#n.get(t))}peek(t){return this.#e.has(t)?this.#h(t,this.#e):this.#n.has(t)?this.#h(t,this.#n):void 0}expiresIn(t){const e=this.#e.get(t)??this.#n.get(t);if(e)return e.expiry?e.expiry-Date.now():Number.POSITIVE_INFINITY}delete(t){const e=this.#e.delete(t);return e&&this.#t--,this.#n.delete(t)||e}clear(){this.#e.clear(),this.#n.clear(),this.#t=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const e=[...this.#f()],n=e.length-t;n<0?(this.#e=new Map(e),this.#n=new Map,this.#t=e.length):(n>0&&this.#i(e.slice(0,n)),this.#n=new Map(e.slice(n)),this.#e=new Map,this.#t=0),this.#r=t}evict(t=1){const e=Number(t);if(!e||e<=0)return;const n=[...this.#f()],r=Math.trunc(Math.min(e,Math.max(n.length-1,0)));r<=0||(this.#i(n.slice(0,r)),this.#n=new Map(n.slice(r)),this.#e=new Map,this.#t=0)}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.#e){const[e,n]=t;!1===this.#s(e,n)&&(yield[e,n.value])}for(const t of this.#n){const[e,n]=t;if(!this.#e.has(e)){!1===this.#s(e,n)&&(yield[e,n.value])}}}*entriesDescending(){let t=[...this.#e];for(let e=t.length-1;e>=0;--e){const n=t[e],[r,a]=n;!1===this.#s(r,a)&&(yield[r,a.value])}t=[...this.#n];for(let e=t.length-1;e>=0;--e){const n=t[e],[r,a]=n;if(!this.#e.has(r)){!1===this.#s(r,a)&&(yield[r,a.value])}}}*entriesAscending(){for(const[t,e]of this.#f())yield[t,e.value]}get size(){if(!this.#t)return this.#n.size;let t=0;for(const e of this.#n.keys())this.#e.has(e)||t++;return Math.min(this.#t+t,this.#r)}get maxSize(){return this.#r}get maxAge(){return this.#a}entries(){return this.entriesAscending()}forEach(t,e=this){for(const[n,r]of this.entriesAscending())t.call(e,r,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}const gh=new Map,yh={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"},Sh=new mh({maxSize:120});class Ah extends hh{constructor(t,e,n,r,a,o,i,s){const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${t} out of range [-90,90]`);const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);if(!r)throw new RangeError("Invalid timezone");const h="number"==typeof s&&s>0?s:0;a&&"string"!=typeof a&&(a=String(a)),super(a||null,u,c,h,r),this.il=Boolean(n),this.cc=o,"IL"===o&&(this.il=!0),this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const t=this.getLocationName();if(!t)return t;const e=t.indexOf(", ");if(-1===e)return t;if("US"===this.cc&&"D"===t[e+2]){if("C"===t[e+3])return t.substring(0,e+4);if("."===t[e+3]&&"C"===t[e+4])return t.substring(0,e+6)}return t.substring(0,e)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(t){const e=Sh.get(t);if(e)return e;const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",minute:"numeric",hour12:!1});return Sh.set(t,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(t){return 0===gh.size&&function(){for(const t of fh){const[e,n,r,a,o,i]=t.split("|"),s=new Ah(+r,+a,"IL"===n,o,e,n,void 0,+i);Ah.addLocation(e,s)}}(),gh.get(t.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(t,e){if(t=+t,"none"===e){if(0===t)return"UTC";return`Etc/GMT${t>0?"+":""}${t}`}if(2===t&&"israel"===e)return"Asia/Jerusalem";if("eu"===e)switch(t){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"}return"usa"===e?yh[String(-1*t)]:void 0}static getUsaTzid(t,e,n){return 10===(e=+e)&&"AK"===t?"America/Adak":7===e&&"AZ"===t?"Y"===n?"America/Denver":"America/Phoenix":yh[e]}static addLocation(t,e){const n=t.toLowerCase();return!gh.has(n)&&(gh.set(n,e),!0)}}const ph={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 Ih(t,e,n){if("string"!=typeof t)throw new TypeError(`Bad timeStr: ${t}`);const r=n?.location?.getCountryCode()||(n?.il?"IL":"US"),a=n?.hour12;if(void 0!==a&&!a)return t;if(!a&&void 0===ph[r])return t;const o=t.split(":");let i=parseInt(o[0],10);return i<12&&e?(e=e.replace("p","a").replace("P","A"),0===i&&(i=12)):i>12?i%=12:0===i&&(i="00"),`${i}:${o[1]}${e}`}const Th=25920;function Mh(t,e){const n=function(t,e){const n=w(t);return(e+(n?6:5))%(n?13:12)+1}(t,e);return 31524+765433*(235*Math.trunc((t-1)/19)+(t-1)%19*12+Math.trunc(((t-1)%19*7+1)/19)+(n-1))}function vh(t,e){const n=Mh(t,e),r=function(t){return Math.trunc(t/Th)+-1373429}(n);let a=new mt(r);const o=Math.trunc(n/Th);let i=Math.trunc(n-o*Th),s=Math.trunc(i/1080);i-=1080*s;const u=Math.trunc(i/18);s>=6&&(a=a.next()),s=(s+18)%24;return{hdate:a,hour:s,minutes:u,chalakim:i-18*u}}function wh(t){const e=10*t.chalakim/3,n=Math.trunc(1e3*(e-Math.trunc(e))),r=t.hdate.greg(),a="Etc/GMT+2",o=Temporal.ZonedDateTime.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:t.hour,minute:t.minutes,second:Math.trunc(e),millisecond:n,timeZone:a}),i=function(t,e,n){const r=4*e*6e4- -1*Q(n,t)*6e4;return Math.trunc(r)}(r,35.2354,a);return o.subtract({milliseconds:i}).withTimeZone("UTC")}function bh(t){return t.replaceAll("'","’")}function Eh(t){return t.toLowerCase().replaceAll("'","").replaceAll(" ","-")}const Hh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Nh=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Ch=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],Dh="בַּלַּ֥יְלָה";class kh{constructor(t,e){this.m=vh(t,e),this.year=t,this.month=e}getMoladDate(){return this.m.hdate}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return mt.getMonthName(this.month,this.year)}getDow(){return this.m.hdate.getDay()}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}getInstant(){return this.instant??=wh(this.m),this.instant}getTchilasZmanKidushLevana3Days(){return this.getInstant().add({hours:72})}getTchilasZmanKidushLevana7Days(){return this.getInstant().add({hours:168})}getSofZmanKidushLevanaBetweenMoldos(){return this.getInstant().add({hours:354,minutes:22,seconds:1,milliseconds:666})}getSofZmanKidushLevana15Days(){return this.getInstant().add({hours:360})}render(t,e){const n=st.gettext(this.getMonthName(),t),r=function(t){return st.isHebrewLocale(t)?Nh:"fr"===t?Ch:Hh}(t),a=r[this.getDow()],o=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),u=st.gettext("Molad",t),c=st.lookupTranslation("min",t)??"minutes",h=st.gettext("chalakim",t),l=st.gettext("and",t);if(st.isHebrewLocale(t)){const e=function(t){return t<5?Dh:t<12?"בַּבֹּקֶר":t<17?"בַּצׇּהֳרַיִים":t<21?"בָּעֶרֶב":Dh}(i);let r=`${u} ${n} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${i} ${e}, ו-${o} ${c}`;return 0!==s&&(r+=` ו-${s} ${h}`),"he-x-nonikud"===t.toLocaleLowerCase()?st.hebrewStripNikkud(r):r}const d=Ih(`${i}:${J(o)}`,"pm",e),f=`${u} ${bh(n)}: ${a}, ${d}`;return 0===s?f:f+` ${l} ${s} ${h}`}}class Oh extends Et{constructor(t,e,n,r){const a=new kh(e,n);super(t,`Molad ${a.getMonthName()} ${e}`,Mt.MOLAD),this.molad=a,this.options=r}render(t){return this.molad.render(t,this.options)}}function _h(t){const e=new Date(t);return e.setMilliseconds(0),e}const Bh=90,Lh=91.583;function Rh(t,e){return Math.floor((e-t)/12)}class Yh{constructor(t,e,n){this.hdate=new mt(e);const r=u(e)?e:this.hdate.greg();this.plainDate=new Temporal.PlainDate(r.getFullYear(),r.getMonth()+1,r.getDate()),this.gloc=t,this.noaa=new dh(t,this.plainDate),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(t){this.useElevation=t}timeAtAngle(t,e){const n=Bh+t;return _h(e?this.sunriseMillis(n,!0):this.sunsetMillis(n,!0))}sunriseMillis(t,e){const n=e?this.noaa.getUTCSunrise0(t):this.noaa.getUTCSeaLevelSunrise(t);return this.noaa.getEpochMillisFromTime(n,!0)}sunsetMillis(t,e){const n=e?this.noaa.getUTCSunset0(t):this.noaa.getUTCSeaLevelSunset(t);return this.noaa.getEpochMillisFromTime(n,!1)}sunrise(){return _h(this.sunriseMillis(Bh,this.useElevation))}seaLevelSunrise(){return _h(this.sunriseMillis(Bh,!1))}sunset(){return _h(this.sunsetMillis(Bh,this.useElevation))}seaLevelSunset(){return _h(this.sunsetMillis(Bh,!1))}dawn(){return _h(this.sunriseMillis(96,!0))}dusk(){return _h(this.sunsetMillis(96,!0))}gregEve(){const t=this.plainDate.subtract({days:1}),e=new Date(t.year,t.month-1,t.day);return new Yh(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const t=this.sunriseMillis(Bh,!1);return _h(t+6*Rh(t,this.sunsetMillis(Bh,!1)))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}alotHaShachar72(){return this.sunriseOffset(-72,!1,!1)}alotHaShachar72zdt(){const t=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise();return t?t.subtract({minutes:72}):null}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZmanMillis(t,e,n){return t+Math.trunc(Rh(t,e)*n)}getShaahZmanisBasedZman(t){const e=this.sunriseMillis(Bh,this.useElevation),n=this.sunsetMillis(Bh,this.useElevation);return _h(this.getShaahZmanisBasedZmanMillis(e,n,t))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanBiurChametzGRA(){return this.getShaahZmanisBasedZman(5)}getTemporalHour72(t){const e=this.sunriseOffset(-72,!1,t),n=(this.sunsetOffset(72,!1,t).getTime()-e.getTime())/12;return[e,n]}getTemporalHourByDeg(t){const e=this.timeAtAngle(t,!0),n=(this.timeAtAngle(t,!1).getTime()-e.getTime())/12;return[e,n]}sofZmanShmaMGA(){const[t,e]=this.getTemporalHour72(!0),n=Math.floor(3*e);return new Date(t.getTime()+n)}sofZmanShmaMGA16Point1(){const[t,e]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*e);return new Date(t.getTime()+n)}sofZmanShmaMGA19Point8(){const[t,e]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*e);return new Date(t.getTime()+n)}sofZmanTfillaMGA(){const[t,e]=this.getTemporalHour72(!0),n=Math.floor(4*e);return new Date(t.getTime()+n)}sofZmanTfillaMGA16Point1(){const[t,e]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*e);return new Date(t.getTime()+n)}sofZmanTfillaMGA19Point8(){const[t,e]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*e);return new Date(t.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[t,e]=this.getTemporalHour72(!1),n=Math.floor(6.5*e);return new Date(t.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[t,e]=this.getTemporalHour72(!1);return new Date(t.getTime()+Math.floor(9.5*e))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(t=8.5){return this.timeAtAngle(t,!1)}tzeit72(){const t=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset();return t?t.add({minutes:72}):null}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const t=this.tzeit(7.083),e=t.getTime();return isNaN(e)?t:new Date(e-81e4)}getMidnightLastNight(){return this.plainDate.toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMidnightTonight(){return this.plainDate.add({days:1}).toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMoladBasedTime(t,e,n,r){const a=this.getMidnightLastNight(),o=this.getMidnightTonight();return Temporal.ZonedDateTime.compare(t,a)<0||Temporal.ZonedDateTime.compare(t,o)>0?null:null===e||null===n?t.withTimeZone(this.gloc.getTimeZone()):Temporal.ZonedDateTime.compare(t,e)>0&&Temporal.ZonedDateTime.compare(t,n)<0?r?n:e:t.withTimeZone(this.gloc.getTimeZone())}getSofZmanKidushLevanaBetweenMoldos(t=null,e=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>16)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevanaBetweenMoldos(),t,e,!1)}getSofZmanKidushLevana15Days(t=null,e=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>17)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevana15Days(),t,e,!1)}getTchilasZmanKidushLevana3Days(t=null,e=null){const n=this.hdate;if(n.getDate()>5&&n.getDate()<30)return null;const r=new kh(n.getFullYear(),n.getMonth());let a=this.getMoladBasedTime(r.getTchilasZmanKidushLevana3Days(),t,e,!0);if(null===a&&30===n.getDate()){const t=n.add(1,"week"),e=new kh(t.getFullYear(),t.getMonth());a=this.getMoladBasedTime(e.getTchilasZmanKidushLevana3Days(),null,null,!0)}return a}getZmanMolad(){const t=this.hdate;if(t.getDate()>2&&t.getDate()<27)return null;const e=new kh(t.getFullYear(),t.getMonth());let n=this.getMoladBasedTime(e.getInstant(),null,null,!0);if(null===n&&t.getDate()>26){const e=t.add(1,"week"),r=new kh(e.getFullYear(),e.getMonth());n=this.getMoladBasedTime(r.getInstant(),null,null,!0)}return n}getTchilasZmanKidushLevana7Days(t=null,e=null){const n=this.hdate;if(n.getDate()<4||n.getDate()>9)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getTchilasZmanKidushLevana7Days(),t,e,!0)}getSunriseBaalHatanya(){return this.sunriseMillis(Lh,!0)}getSunsetBaalHatanya(){return this.sunsetMillis(Lh,!0)}alosBaalHatanya(){return this.timeAtAngle(16.9,!0)}getShaahZmanisBaalHatanya(t){return _h(this.getShaahZmanisBasedZmanMillis(this.getSunriseBaalHatanya(),this.getSunsetBaalHatanya(),t))}sofZmanShmaBaalHatanya(){return this.getShaahZmanisBaalHatanya(3)}sofZmanTfilaBaalHatanya(){return this.getShaahZmanisBaalHatanya(4)}minchaGedolaBaalHatanya(){return this.getShaahZmanisBaalHatanya(6.5)}minchaKetanaBaalHatanya(){return this.getShaahZmanisBaalHatanya(9.5)}plagHaminchaBaalHatanya(){return this.getShaahZmanisBaalHatanya(10.75)}tzaisBaalHatanya(){return this.timeAtAngle(6,!1)}static formatTime(t,e){if(isNaN(t.getTime()))return"XX:XX";const n=e.format(t);return 50===n.charCodeAt(0)&&52===n.charCodeAt(1)&&58===n.charCodeAt(2)?"00"+n.substring(2):n}static roundTime(t){const e=t.getTime();if(isNaN(e))return t;const n=t.getMilliseconds(),r=t.getSeconds();if(0===r&&0===n)return t;const a=1e3*r+n;return new Date(e+(a>=3e4?6e4-a:-1*a))}static timeZoneOffset(t,e){const n=Q(t,e),r=Math.abs(n),a=r%60;return(n<0?"+":"-")+J(Math.floor(r/60))+":"+J(a)}static formatISOWithTimeZone(t,e){return isNaN(e.getTime())?"0000-00-00T00:00:00Z":X(t,e).substring(0,19)+Yh.timeZoneOffset(t,e)}sunriseOffset(t,e=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(e&&(t>0&&r.getSeconds()>=30&&t++,r.setSeconds(0,0)),new Date(r.getTime()+60*t*1e3))}sunsetOffset(t,e=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(e&&(t>0&&r.getSeconds()>=30&&t++,r.setSeconds(0,0)),new Date(r.getTime()+60*t*1e3))}static makeSunsetAwareHDate(t,e,n){const r=new Yh(t,e,n).sunset();let a=new mt(e);const o=r.getTime();return isNaN(o)||e.getTime()>=o&&(a=a.next()),a}}const Zh=f.NISAN,Ph=f.IYYAR;function Uh(t){if(t<5708)return null;let e;const n=new mt(15,Zh,t).getDay();return e=0===n?2:6===n?3:t<5764?4:2===n?5:4,new mt(e,Ph,t)}class xh{constructor(t,e){t=+t,this.year=t;const n=new mt(1,f.TISHREI,t),r=this.rh=n.abs(),a=n.getDay()+1;this.firstSaturday=mt.dayOnOrBefore(6,r+6);const o=+mt.isLeapYear(t);this.il=Boolean(e);const i=function(t){const e=mt.longCheshvan(t),n=mt.shortKislev(t);return e&&!n?2:!e&&n?0:1}(t);let s=`${o}${a}${i}`;if(cl[s]?(this.theSedraArray=cl[s],this.yearKey=s):(s+=+this.il,this.theSedraArray=cl[s],this.yearKey=s),!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${t}`)}find(t){if("number"==typeof t){if(t>=zh.length||t<0&&!$h(t))throw new RangeError(`Invalid parsha number: ${t}`);return this.findInternal(t)}if("string"==typeof t){const e=Fh.get(t);return"number"==typeof e?this.find(e):t.includes("-")?t===Wh||t===Kh?this.findInternal(t):this.find(t.split("-")):this.findInternal(t)}if(Array.isArray(t)){const e=t.length;if(1!==e&&2!==e||"string"!=typeof t[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(t)}`);if(1===e)return this.find(t[0]);const n=t[0],r=t[1],a=Fh.get(n),o=Fh.get(r);if("number"!=typeof a||"number"!=typeof o||o!==a+1||!$h(-a))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-a)}return null}findInternal(t){const e=this.theSedraArray.indexOf(t);return-1===e?null:new mt(this.firstSaturday+7*e)}findContaining(t){const e=this.find(t);if(e)return e;if("number"==typeof t){const e=-t;return $h(e)?this.find(e):this.find(e+1)}{const e=Fh.get(t);if(e){const t=-e;return $h(t)?this.find(t):this.find(t+1)}{const[e]=t.split("-");return this.find(e)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(t){const e="number"==typeof t?t:mt.isHDate(t)?t.abs():NaN;if(isNaN(e))throw new TypeError(`Bad date argument: ${t}`);if(e<this.rh)throw new RangeError(`Date ${t} before start of Hebrew year ${this.year}`);const n=mt.dayOnOrBefore(6,e+6),r=(n-this.firstSaturday)/7,a=this.theSedraArray[r];if(void 0===a){return ll(this.year+1,this.il).lookup(n)}const o=new mt(n);if("string"==typeof a)return{parsha:[a],chag:!0,hdate:o,il:this.il,num:0};if(a>=0)return{parsha:[zh[a]],chag:!1,num:a+1,hdate:o,il:this.il};const i=Vh(a);return{parsha:[zh[i],zh[i+1]],chag:!1,num:[i+1,i+2],hdate:o,il:this.il}}lookupWeekday(t){const e="number"==typeof t?t:mt.isHDate(t)?t.abs():NaN;if(isNaN(e))throw new TypeError(`Bad date argument: ${t}`);if(e<this.rh)throw new RangeError(`Date ${t} before start of Hebrew year ${this.year}`);const n=new mt(e).getDay();if(1!==n&&4!==n)return;const r=new mt(mt.dayOnOrBefore(6,e+6)),a=this.lookup(r);return a.chag?this.findWeekdayParsha(r):a}findWeekdayParsha(t){const e=t.getFullYear(),n=this.il;if(t.getMonth()===f.TISHREI){const e=t.getDate();if(e>2&&e<=(n?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54,hdate:t,il:n}}const r=e===this.year?this:ll(e,n),a=new mt(1,f.TISHREI,e+1).abs()-1,o=a+30;for(let i=t.abs()+7;i<=o;i+=7){const t=(i>a?ll(e+1,n):r).lookup(i);if(!t.chag)return t}throw new Error(`can't find weekday parsha for ${t}/${n}`)}}const zh=["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","Vezot Haberakhah"],Fh=new Map;for(let t=0;t<zh.length;t++){const e=zh[t];Fh.set(e,t)}const jh=new Set([21,26,28,31,38,41,50]);function $h(t){return jh.has(-t)}function Vh(t){return-t}const Kh="Sukkot Shabbat Chol ha-Moed",Gh="Pesach",Jh="Pesach I",Wh="Pesach Shabbat Chol ha-Moed",qh="Pesach VII",Xh="Pesach VIII",Qh="Shavuot";function tl(t,e){return Array.from({length:e-t+1},(e,n)=>n+t)}const el=[51,52,Kh],nl=[52,"Yom Kippur",Kh],rl=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],al=tl(0,20),ol=tl(0,27),il=tl(33,40),sl=tl(43,49),ul=tl(43,50),cl={"020":el.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),sl,Vh(50)),"0220":el.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),33,Qh,tl(34,37),Vh(38),40,Vh(41),sl,Vh(50)),"0510":nl.concat(al,Vh(21),23,24,Jh,Xh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"0511":nl.concat(al,Vh(21),23,24,Gh,25,Vh(26),Vh(28),tl(30,40),Vh(41),ul),"052":nl.concat(tl(0,24),qh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"070":rl.concat(al,Vh(21),23,24,qh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"072":rl.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),sl,Vh(50)),1200:el.concat(ol,Wh,tl(28,33),Qh,tl(34,37),Vh(38),40,Vh(41),sl,Vh(50)),1201:el.concat(ol,Wh,tl(28,40),Vh(41),sl,Vh(50)),1220:el.concat(ol,Jh,Xh,tl(28,40),Vh(41),ul),1221:el.concat(ol,Gh,tl(28,50)),150:nl.concat(tl(0,28),qh,tl(29,50)),152:nl.concat(tl(0,28),Wh,tl(29,49),Vh(50)),170:rl.concat(ol,Wh,tl(28,40),Vh(41),sl,Vh(50)),1720:rl.concat(ol,Wh,tl(28,33),Qh,tl(34,37),Vh(38),40,Vh(41),sl,Vh(50))};cl["0221"]=cl["020"],cl["0310"]=cl["0220"],cl["0311"]=cl["020"],cl[1310]=cl[1220],cl[1311]=cl[1221],cl[1721]=cl[170];const hl=new mh({maxSize:120});function ll(t,e){const n=`${t}-${e?1:0}`;let r=hl.get(n);return r||(r=new xh(t,e),hl.set(n,r)),r}const dl=f.NISAN,fl=f.IYYAR,ml=f.SIVAN,gl=f.ELUL,yl=f.TISHREI,Sl=f.CHESHVAN,Al=f.SHVAT,pl=f.ADAR_II,Il=Mt.CHAG,Tl=Mt.LIGHT_CANDLES,Ml=Mt.YOM_TOV_ENDS,vl=Mt.CHUL_ONLY,wl=Mt.IL_ONLY,bl=Mt.LIGHT_CANDLES_TZEIS,El=Mt.MINOR_HOLIDAY,Hl=Mt.EREV,Nl=Mt.CHOL_HAMOED,Cl="🫓",Dl="🌿🍋",kl="Rosh Hashana II",Ol="Erev Yom Kippur",_l="Yom Kippur",Bl="Erev Sukkot",Ll="Sukkot I",Rl="Sukkot II",Yl="Sukkot III (CH''M)",Zl="Sukkot IV (CH''M)",Pl="Sukkot V (CH''M)",Ul="Sukkot VI (CH''M)",xl="Shmini Atzeret",zl="Simchat Torah",Fl="Sukkot II (CH''M)",jl="Sukkot VII (Hoshana Raba)",$l="Tu BiShvat",Vl="Erev Purim",Kl="Purim",Gl="Shushan Purim",Jl="Erev Pesach",Wl="Pesach I",ql="Pesach II",Xl="Pesach II (CH''M)",Ql="Pesach III (CH''M)",td="Pesach IV (CH''M)",ed="Pesach V (CH''M)",nd="Pesach VI (CH''M)",rd="Pesach VII",ad="Pesach VIII",od="Pesach Sheni",id="Lag BaOmer",sd="Erev Shavuot",ud="Shavuot",cd="Shavuot I",hd="Shavuot II",ld="Tu B'Av",dd="Rosh Hashana LaBehemot",fd="Erev Rosh Hashana",md="Yom Yerushalayim",gd="Ben-Gurion Day",yd="Family Day",Sd="Yitzhak Rabin Memorial Day",Ad="Herzl Day",pd="Jabotinsky Day",Id="Sigd",Td="Yom HaAliyah",Md="Yom HaAliyah School Observance",vd="Hebrew Language Day",wd={ASARA_BTEVET:"Asara B'Tevet",BIRKAT_HACHAMAH:"Birkat Hachamah",CHAG_HABANOT:"Chag HaBanot",CHANUKAH_8TH_DAY:"Chanukah: 8th Day",EREV_TISHA_BAV:"Erev Tish'a B'Av",LEIL_SELICHOT:"Leil Selichot",PURIM_KATAN:"Purim Katan",PURIM_MESHULASH:"Purim Meshulash",SHABBAT_CHAZON:"Shabbat Chazon",SHABBAT_HACHODESH:"Shabbat HaChodesh",SHABBAT_HAGADOL:"Shabbat HaGadol",SHABBAT_NACHAMU:"Shabbat Nachamu",SHABBAT_PARAH:"Shabbat Parah",SHABBAT_SHEKALIM:"Shabbat Shekalim",SHABBAT_SHIRAH:"Shabbat Shirah",SHABBAT_SHUVA:"Shabbat Shuva",SHABBAT_ZACHOR:"Shabbat Zachor",SHUSHAN_PURIM_KATAN:"Shushan Purim Katan",TAANIT_BECHOROT:"Ta'anit Bechorot",TAANIT_BEHAB:"Ta'anit BeHaB",TAANIT_ESTHER:"Ta'anit Esther",TISHA_BAV:"Tish'a B'Av",TZOM_GEDALIAH:"Tzom Gedaliah",TZOM_TAMMUZ:"Tzom Tammuz",YOM_HAATZMA_UT:"Yom HaAtzma'ut",YOM_HASHOAH:"Yom HaShoah",YOM_HAZIKARON:"Yom HaZikaron",BEN_GURION_DAY:gd,CHANUKAH_1_CANDLE:"Chanukah: 1 Candle",EREV_PESACH:Jl,EREV_PURIM:Vl,EREV_ROSH_HASHANA:fd,EREV_SHAVUOT:sd,EREV_SUKKOT:Bl,EREV_YOM_KIPPUR:Ol,FAMILY_DAY:yd,HEBREW_LANGUAGE_DAY:vd,HERZL_DAY:Ad,JABOTINSKY_DAY:pd,LAG_BAOMER:id,PESACH_I:Wl,PESACH_II:ql,PESACH_III_CHM:Ql,PESACH_II_CHM:Xl,PESACH_IV_CHM:td,PESACH_SHENI:od,PESACH_VII:rd,PESACH_VIII:ad,PESACH_VI_CHM:nd,PESACH_V_CHM:ed,PURIM:Kl,ROSH_HASHANA_II:kl,ROSH_HASHANA_LABEHEMOT:dd,SHAVUOT:ud,SHAVUOT_I:cd,SHAVUOT_II:hd,SHMINI_ATZERET:xl,SHUSHAN_PURIM:Gl,SIGD:Id,SIMCHAT_TORAH:zl,SUKKOT_I:Ll,SUKKOT_II:Rl,SUKKOT_III_CHM:Yl,SUKKOT_II_CHM:Fl,SUKKOT_IV_CHM:Zl,SUKKOT_VII_HOSHANA_RABA:jl,SUKKOT_VI_CHM:Ul,SUKKOT_V_CHM:Pl,TU_BAV:ld,TU_BISHVAT:$l,YITZHAK_RABIN_MEMORIAL_DAY:Sd,YOM_HAALIYAH:Td,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Md,YOM_KIPPUR:_l,YOM_YERUSHALAYIM:md,CANDLE_LIGHTING:"Candle lighting",HAVDALAH:"Havdalah",FAST_BEGINS:"Fast begins",FAST_ENDS:"Fast ends",BIUR_CHAMETZ:"Biur Chametz",SOF_ZMAN_ACHILAT_CHAMETZ:"Finish eating chametz",YIZKOR:"Yizkor"},bd=[{mm:yl,dd:2,desc:kl,flags:Il|Ml,emoji:"🍏🍯"},{mm:yl,dd:9,desc:Ol,flags:Hl|Tl},{mm:yl,dd:10,desc:_l,flags:Il|Mt.MAJOR_FAST|Ml},{mm:yl,dd:14,desc:Bl,flags:vl|Hl|Tl,emoji:Dl},{mm:yl,dd:15,desc:Ll,flags:vl|Il|bl,emoji:Dl},{mm:yl,dd:16,desc:Rl,flags:vl|Il|Ml,emoji:Dl},{mm:yl,dd:17,desc:Yl,flags:vl|Nl,chmDay:1,emoji:Dl},{mm:yl,dd:18,desc:Zl,flags:vl|Nl,chmDay:2,emoji:Dl},{mm:yl,dd:19,desc:Pl,flags:vl|Nl,chmDay:3,emoji:Dl},{mm:yl,dd:20,desc:Ul,flags:vl|Nl,chmDay:4,emoji:Dl},{mm:yl,dd:22,desc:xl,flags:vl|Il|bl},{mm:yl,dd:23,desc:zl,flags:vl|Il|Ml},{mm:yl,dd:14,desc:Bl,flags:wl|Hl|Tl,emoji:Dl},{mm:yl,dd:15,desc:Ll,flags:wl|Il|Ml,emoji:Dl},{mm:yl,dd:16,desc:Fl,flags:wl|Nl,chmDay:1,emoji:Dl},{mm:yl,dd:17,desc:Yl,flags:wl|Nl,chmDay:2,emoji:Dl},{mm:yl,dd:18,desc:Zl,flags:wl|Nl,chmDay:3,emoji:Dl},{mm:yl,dd:19,desc:Pl,flags:wl|Nl,chmDay:4,emoji:Dl},{mm:yl,dd:20,desc:Ul,flags:wl|Nl,chmDay:5,emoji:Dl},{mm:yl,dd:22,desc:xl,flags:wl|Il|Ml},{mm:yl,dd:21,desc:jl,flags:Tl|Nl,chmDay:-1,emoji:Dl},{mm:Al,dd:15,desc:$l,flags:El,emoji:"🌳"},{mm:pl,dd:13,desc:Vl,flags:Hl|El,emoji:"🎭️📜"},{mm:pl,dd:14,desc:Kl,flags:El,emoji:"🎭️📜"},{mm:pl,dd:15,desc:Gl,flags:El,emoji:"🎭️📜"},{mm:dl,dd:14,desc:Jl,flags:wl|Hl|Tl,emoji:"🫓🍷"},{mm:dl,dd:15,desc:Wl,flags:wl|Il|Ml,emoji:Cl},{mm:dl,dd:16,desc:Xl,flags:wl|Nl,chmDay:1,emoji:Cl},{mm:dl,dd:17,desc:Ql,flags:wl|Nl,chmDay:2,emoji:Cl},{mm:dl,dd:18,desc:td,flags:wl|Nl,chmDay:3,emoji:Cl},{mm:dl,dd:19,desc:ed,flags:wl|Nl,chmDay:4,emoji:Cl},{mm:dl,dd:20,desc:nd,flags:wl|Nl|Tl,chmDay:5,emoji:Cl},{mm:dl,dd:21,desc:rd,flags:wl|Il|Ml,emoji:Cl},{mm:dl,dd:14,desc:Jl,flags:vl|Hl|Tl,emoji:"🫓🍷"},{mm:dl,dd:15,desc:Wl,flags:vl|Il|bl,emoji:"🫓🍷"},{mm:dl,dd:16,desc:ql,flags:vl|Il|Ml,emoji:Cl},{mm:dl,dd:17,desc:Ql,flags:vl|Nl,chmDay:1,emoji:Cl},{mm:dl,dd:18,desc:td,flags:vl|Nl,chmDay:2,emoji:Cl},{mm:dl,dd:19,desc:ed,flags:vl|Nl,chmDay:3,emoji:Cl},{mm:dl,dd:20,desc:nd,flags:vl|Nl|Tl,chmDay:4,emoji:Cl},{mm:dl,dd:21,desc:rd,flags:vl|Il|bl,emoji:Cl},{mm:dl,dd:22,desc:ad,flags:vl|Il|Ml,emoji:Cl},{mm:fl,dd:14,desc:od,flags:El},{mm:fl,dd:18,desc:id,flags:El,emoji:"🔥"},{mm:ml,dd:5,desc:sd,flags:Hl|Tl,emoji:"⛰️🌸"},{mm:ml,dd:6,desc:ud,flags:wl|Il|Ml,emoji:"⛰️🌸"},{mm:ml,dd:6,desc:cd,flags:vl|Il|bl,emoji:"⛰️🌸"},{mm:ml,dd:7,desc:hd,flags:vl|Il|Ml,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:ld,flags:El,emoji:"❤️"},{mm:gl,dd:1,desc:dd,flags:El,emoji:"🐑"},{mm:gl,dd:29,desc:fd,flags:Hl|Tl,emoji:"🍏🍯"}],Ed=[{firstYear:5727,mm:fl,dd:28,desc:md,chul:!0},{firstYear:5737,mm:f.KISLEV,dd:6,desc:gd,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Al,dd:30,desc:yd},{firstYear:5758,mm:Sl,dd:12,desc:Sd,friSatMovetoThu:!0},{firstYear:5764,mm:fl,dd:10,desc:Ad,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:pd,satPostponeToSun:!0},{firstYear:5769,mm:Sl,dd:29,desc:Id,chul:!0,suppressEmoji:!0,friSatMovetoThu:!0},{firstYear:5777,mm:dl,dd:10,desc:Td,chul:!0},{firstYear:5777,mm:Sl,dd:7,desc:Md},{firstYear:5773,mm:f.TEVET,dd:21,desc:vd,friSatMovetoThu:!0}];class Hd extends Et{constructor(t,e,n=0,r){super(t,e,n,r),"object"==typeof r&&null!==r&&Object.assign(this,r)}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(){const t=this.greg().getFullYear();if(t<100||t>2999)return;const e="https://www.hebcal.com/holidays/"+Eh(this.basename())+"-"+this.urlDateSuffix();return this.hasFlag("IL_ONLY")?e+"?i=on":e}urlDateSuffix(){const t=this.greg().getFullYear();return String(t)}getEmoji(){return this.emoji?this.emoji:this.hasFlag("SPECIAL_SHABBAT")?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const t=super.getCategories();if("unknown"!==t[0])return t;switch(this.getDesc()){case wd.LAG_BAOMER:case wd.LEIL_SELICHOT:case wd.PESACH_SHENI:case wd.EREV_PURIM:case wd.PURIM_KATAN:case wd.SHUSHAN_PURIM:case wd.TU_BAV:case wd.TU_BISHVAT:case wd.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(t){return bh(super.render(t))}renderBrief(t){return bh(super.renderBrief(t))}}class Nd extends Hd{urlDateSuffix(){return tt(this.greg()).replaceAll("-","")}}const Cd=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];class Dd extends Hd{constructor(t,e,n,r){if(super(t,e,n),this.chanukahDay=r,this.emoji="🕎",8!==r){const t=r?r+1:1;this.emoji+=Cd[t]}}urlDateSuffix(){const t=this.greg();let e=t.getFullYear();return 0===t.getMonth()&&e--,String(e)}}class kd extends Hd{constructor(t,e,n){super(t,`Rosh Hashana ${e}`,n),this.hyear=e}render(t){return st.gettext("Rosh Hashana",t)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Od="Rosh Chodesh";class _d extends Hd{constructor(t,e){super(t,`${Od} ${e}`,Mt.ROSH_CHODESH)}render(t){const e=this.getDesc().substring(13),n=bh(st.gettext(e,t));return st.gettext(Od,t)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Bd="Yom Kippur Katan";class Ld extends Hd{constructor(t,e){super(t,`${Bd} ${e}`,Mt.MINOR_FAST|Mt.YOM_KIPPUR_KATAN),this.nextMonthName=e,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${e}`}basename(){return this.getDesc()}render(t){const e=bh(st.gettext(this.nextMonthName,t));return st.gettext(Bd,t)+" "+e}renderBrief(t){return st.gettext(Bd,t)}url(){}}function Rd(t,e){const n=mt.isHDate(t)?t:new mt(t),r=n.toString(),a=df(n.getFullYear()).get(r);if(void 0===e||void 0===a)return a;return a.filter(t=>t.observedIn(e))}const Yd=Mt.CHAG,Zd=Mt.IL_ONLY,Pd=Mt.LIGHT_CANDLES_TZEIS,Ud=Mt.CHANUKAH_CANDLES,xd=Mt.BEHAB,zd=Mt.MINOR_FAST,Fd=Mt.SPECIAL_SHABBAT,jd=Mt.MODERN_HOLIDAY,$d=Mt.MAJOR_FAST,Vd=Mt.MINOR_HOLIDAY,Kd=Mt.EREV,Gd=0,Jd=2,Wd=4,qd=5,Xd=6,Qd=f.NISAN,tf=f.IYYAR,ef=f.TAMUZ,nf=f.AV,rf=f.TISHREI,af=f.CHESHVAN,of=f.KISLEV,sf=f.TEVET,uf=f.ADAR_I,cf=f.ADAR_II,hf={emoji:"🇮🇱"},lf=new mh({maxSize:120});function df(t){if("number"!=typeof t)throw new TypeError(`bad Hebrew year: ${t}`);if(t<1||t>32658)throw new RangeError(`Hebrew year ${t} out of range 1-32658`);const e=lf.get(t);if(e)return e;const n=new mt(1,rf,t),r=new mt(15,Qd,t),a=new Map;function o(...t){for(const e of t){const t=e.date.toString(),n=a.get(t);"object"==typeof n?n[0].hasFlag("EREV")?n.unshift(e):n.push(e):a.set(t,[e])}}for(const e of bd){const n=new mt(e.dd,e.mm,t),r={};e.emoji&&(r.emoji=e.emoji),e.chmDay&&(r.cholHaMoedDay=e.chmDay);o(new Hd(n,e.desc,e.flags,r))}o(new kd(n,t,Yd|Pd));const i=n.getDay()===Wd?4:3;o(new Hd(new mt(i,rf,t),wd.TZOM_GEDALIAH,zd)),o(new Hd(new mt(mt.dayOnOrBefore(Xd,7+n.abs())),wd.SHABBAT_SHUVA,Fd));const s=mt.shortKislev(t)?new mt(1,sf,t):new mt(30,of,t);o(new Hd(s,wd.CHAG_HABANOT,Vd)),o(new Dd(new mt(24,of,t),wd.CHANUKAH_1_CANDLE,Kd|Vd|Ud,void 0));for(let e=2;e<=8;e++){const n=new mt(23+e,of,t);o(new Dd(n,`Chanukah: ${e} Candles`,Vd|Ud,e-1))}o(new Dd(new mt(32,of,t),wd.CHANUKAH_8TH_DAY,Vd,8)),o(new Nd(new mt(10,sf,t),wd.ASARA_BTEVET,zd));const u=r.abs();o(new Hd(new mt(mt.dayOnOrBefore(Xd,u-43)),wd.SHABBAT_SHEKALIM,Fd),new Hd(new mt(mt.dayOnOrBefore(Xd,u-30)),wd.SHABBAT_ZACHOR,Fd),new Hd(new mt(u-(r.getDay()===Jd?33:31)),wd.TAANIT_ESTHER,zd));const c=mt.dayOnOrBefore(Xd,u-14);o(new Hd(new mt(c-7),wd.SHABBAT_PARAH,Fd),new Hd(new mt(c),wd.SHABBAT_HACHODESH,Fd),new Hd(new mt(mt.dayOnOrBefore(Xd,u-1)),wd.SHABBAT_HAGADOL,Fd),new Hd(r.prev().getDay()===Xd?r.onOrBefore(Wd):new mt(14,Qd,t),wd.TAANIT_BECHOROT,zd)),o(new Hd(new mt(mt.dayOnOrBefore(Xd,new mt(1,rf,t+1).abs()-4)),wd.LEIL_SELICHOT,Vd,{emoji:"🕍"})),r.getDay()===Gd&&o(new Hd(new mt(16,cf,t),wd.PURIM_MESHULASH,Vd)),mt.isLeapYear(t)&&(o(new Hd(new mt(14,uf,t),wd.PURIM_KATAN,Vd,{emoji:"🎭️"})),o(new Hd(new mt(15,uf,t),wd.SHUSHAN_PURIM_KATAN,Vd,{emoji:"🎭️"})));const h=function(t){if(t<5711)return null;let e=new mt(27,Zh,t);return 5===e.getDay()?e=new mt(26,Zh,t):0===e.getDay()&&(e=new mt(28,Zh,t)),e}(t);h&&o(new Hd(h,wd.YOM_HASHOAH,jd));const l=Uh(t);l&&o(new Hd(l,wd.YOM_HAZIKARON,jd,hf),new Hd(l.next(),wd.YOM_HAATZMA_UT,jd,hf));for(const e of Ed)if(t>=e.firstYear){let n=new mt(e.dd,e.mm,t);const r=n.getDay();!e.friSatMovetoThu||r!==qd&&r!==Xd?e.friPostponeToSun&&r===qd?n=new mt(n.abs()+2):e.satPostponeToSun&&r===Xd&&(n=n.next()):n=n.onOrBefore(Wd);const a=e.chul?jd:jd|Zd,i=new Hd(n,e.desc,a);e.suppressEmoji||(i.emoji="🇮🇱"),o(i)}let d,m=new mt(17,ef,t);m.getDay()===Xd&&(m=new mt(18,ef,t),d={observed:!0}),o(new Hd(m,wd.TZOM_TAMMUZ,zd,d));let g,y=new mt(9,nf,t),S=wd.TISHA_BAV;y.getDay()===Xd&&(y=y.next(),g={observed:!0},S+=" (observed)");const A=y.abs();o(new Hd(new mt(mt.dayOnOrBefore(Xd,A)),wd.SHABBAT_CHAZON,Fd),new Hd(y.prev(),wd.EREV_TISHA_BAV,Kd|$d,g),new Hd(y,S,$d,g),new Hd(new mt(mt.dayOnOrBefore(Xd,A+7)),wd.SHABBAT_NACHAMU,Fd));const p=mt.monthsInYear(t);for(let e=1;e<=p;e++){const n=mt.getMonthName(e,t);30===(e===Qd?mt.daysInMonth(mt.monthsInYear(t-1),t-1):mt.daysInMonth(e-1,t))?(o(new _d(new mt(1,e,t),n)),o(new _d(new mt(30,e-1,t),n))):e!==rf&&o(new _d(new mt(1,e,t),n))}for(let e=f.IYYAR;e<=p;e++){const n=e+1;if(n===rf||n===f.CHESHVAN||n===sf)continue;let r=new mt(29,e,t);const a=r.getDay();a!==qd&&a!==Xd||(r=r.onOrBefore(Wd));const i=mt.getMonthName(n,t);o(new Ld(r,i))}for(const e of[af,tf]){const n=new mt(1,e,t);let r=new mt(mt.dayOnOrBefore(Xd,n.abs()+6));r.abs()===n.abs()&&(r=new mt(r.abs()+7));const a=[2,5,9].map(t=>new mt(r.abs()+t));e===tf&&14===a[2].getDate()&&(a[2]=new mt(17,tf,t));for(const t of a)o(new Hd(t,wd.TAANIT_BEHAB,zd|xd))}const I=ll(t,!1).find(15);o(new Hd(I,wd.SHABBAT_SHIRAH,Fd));const T=function(t){const e=mt.isLeapYear(t),n=e?cf:Qd,r=e?20:1,a=mt.hebrew2abs(t,n,r);for(let t=0;t<=40;t++){const e=a+t;if((e+1373429)%10227==172)return e}return 0}(t);if(T){const t=new mt(T);o(new Hd(t,wd.BIRKAT_HACHAMAH,Vd,{emoji:"☀️"}))}return lf.set(t,a),a}const ff=f.NISAN,mf=f.SIVAN,gf=f.TAMUZ,yf=f.AV;const Sf=wd.HAVDALAH,Af=wd.CANDLE_LIGHTING;class pf extends Et{constructor(t,e,n,r,a,o,i){super(t,e,n),this.eventTime=Yh.roundTime(r),this.location=a;const s=a.getTimeFormatter();this.eventTimeStr=Yh.formatTime(this.eventTime,s);const u={...i,location:a};this.fmtTime=Ih(this.eventTimeStr,"pm",u),void 0!==o&&(this.linkedEvent=o)}render(t){return st.gettext(this.getDesc(),t)+": "+this.fmtTime}renderBrief(t){return st.gettext(this.getDesc(),t)}getCategories(){switch(this.getDesc()){case Af:return["candles"];case Sf:return["havdalah"];case wd.FAST_BEGINS:case wd.FAST_ENDS:return["zmanim","fast"];case wd.SOF_ZMAN_ACHILAT_CHAMETZ:return["zmanim","achilasChametz"];case wd.BIUR_CHAMETZ:return["zmanim","biurChametz"]}return["unknown"]}}class If extends pf{constructor(t,e,n,r,a,o){super(t,Af,e,n,r,a,o)}getEmoji(){return"🕯️"}}class Tf extends pf{constructor(t,e,n,r,a,o,i){super(t,Sf,e,n,r,o,i),a&&(this.havdalahMins=a)}render(t){return this.renderBrief(t)+": "+this.fmtTime}renderBrief(t){let e=st.gettext(this.getDesc(),t);if(this.havdalahMins){const n=st.gettext("min",t);e+=` (${this.havdalahMins} ${n})`}return e}getEmoji(){return"✨"}}const Mf=Mt.LIGHT_CANDLES,vf=Mt.LIGHT_CANDLES_TZEIS;function wf(t,e,n,r,a){let o=!1,i=a,s=t?t.mask:Mf;void 0!==t?r||(t.hasAnyFlag("LIGHT_CANDLES_TZEIS","CHANUKAH_CANDLES")?i=!0:t.hasFlag("YOM_TOV_ENDS")&&(o=!0,i=!0)):a&&(o=!0,s=vf);const u=Number(i?n.havdalahMins:n.candleLightingMins),c=n.location,h=Boolean(n.useElevation),l=new Yh(c,e,h),d=i&&!u?l.tzeit(n.havdalahDeg):l.sunsetOffset(u,!0);if(!isNaN(d.getTime()))return o?new Tf(e,s,d,c,n.havdalahMins,t,n):(s|=Mf,new If(e,s,d,c,t,n))}const bf=wd.FAST_BEGINS,Ef=wd.FAST_ENDS;function Hf(t){return"number"==typeof t&&isFinite(t)&&0!==t?t:void 0}function Nf(t,e,n){if(e){const e=Hf(n.tishaBavEndMins);if(void 0!==e)return t.sunsetOffset(Math.abs(e),!0);const r=Hf(n.tishaBavEndDeg);return t.tzeit(void 0===r?6.45:Math.abs(r))}const r=n.fastEndMins;if("number"==typeof r&&0!==r)return t.sunsetOffset(Math.abs(r),!0);const a=n.fastEndDeg;return"number"==typeof a&&0!==a?t.tzeit(Math.abs(a)):n.il?t.sunsetOffset(15,!0):t.tzeit(7.0833333)}class Cf extends Hd{constructor(t,e,n){super(t.getDate(),t.getDesc(),t.mask),this.linkedEvent=t,this.startEvent=e,this.endEvent=n}render(t){return this.linkedEvent.render(t)}renderBrief(t){return this.linkedEvent.renderBrief(t)}urlDateSuffix(){return this.linkedEvent.urlDateSuffix()}url(){return this.linkedEvent.url()}getEmoji(){return this.linkedEvent.getEmoji()}getCategories(){return this.linkedEvent.getCategories()}}function Df(t,e){const n=t.getDesc();if("Yom Kippur"===n)throw new RangeError("YK does not require this function");const r=t.getDate(),a=r.greg(),o=e.location,i=Boolean(e.useElevation),s=new Yh(o,a,i);let u,c;if("Erev Tish'a B'Av"===n){const n=s.sunset();isNaN(n.getTime())||(u=kf(t,n,bf,e))}else if(n.startsWith("Tish'a B'Av")){const n=Nf(s,!0,e);isNaN(n.getTime())||(c=kf(t,n,Ef,e))}else{const n=function(t,e){const n=Hf(e.fastStartMins);if(void 0!==n)return t.sunriseOffset(-Math.abs(n),!0);const r=Hf(e.fastStartDeg);return t.timeAtAngle(void 0===r?16.1:Math.abs(r),!0)}(s,e);if(isNaN(n.getTime())||(u=kf(t,n,bf,e)),5!==a.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=Nf(s,!1,e);isNaN(n.getTime())||(c=kf(t,n,Ef,e))}}const h=new Cf(t,u,c);return Object.assign(h,t),h}function kf(t,e,n,r){const a=r.location,o=t.getDate();return new pf(o,n,t.mask,e,a,t,r)}class Of extends Dd{constructor(t,e,n){super(t.getDate(),t.getDesc(),t.mask,t.chanukahDay),this.eventTime=Yh.roundTime(e);const r=n.getTimeFormatter();this.eventTimeStr=Yh.formatTime(this.eventTime,r),this.location=n,this.emoji=t.emoji}}var _f={ps67lines:["אֱלֹהִים יְחָנֵּנוּ וִיבָרְכֵנוּ יָאֵר־פָּנָיו אִתָּנוּ סֶלָה","לָדַעַת בָּאָרֶץ דַּרְכֶּךָ בְּכָל־גּוֹיִם יְשׁוּעָתֶךָ","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","יִשְׂמְחוּ וִירַנְּנוּ לְאֻמִּים כִּי־תִשְׁפֹּט עַמִּים מִישׁוֹר וּלְאֻמִּים בָּאָרֶץ תַּנחֵם סֶלָה","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","אֶרֶץ נָתְנָה יְבוּלָהּ יְבָרְכֵנוּ אֱלֹהִים אֱלֹהֵינוּ","יְבָרְכֵנוּ אֱלֹהִים וְיִירְאוּ אוֹתוֹ כָּל־אַפְסֵי־אָרֶץ"],lamnatzeachLetters:"ישמחווירננולאמיםכיתשפוטעמיםמישורולאמיםבארץתנחםסלה",anaBekoach:["אָנָּא","בְּכֹחַ","גְּדֻלַּת","יְמִינְךָ","תַּתִּיר","צְרוּרָה","אב״ג ית״ץ","קַבֵּל","רִנַּת","עַמְּךָ","שַׂגְּבֵנוּ","טַהֲרֵנוּ","נוֹרָא","קר״ע שט״ן","נָא","גִבּוֹר","דּוֹרְשֵׁי","יִחוּדְךָ","כְּבָבַת","שָׁמְרֵם","נג״ד יכ״ש","בָּרְכֵם","טַהֲרֵם","רַחֲמֵי","צִדְקָתְךָ","תָּמִיד","גָּמְלֵם","בט״ר צת״ג","חֲסִין","קָדוֹשׁ","בְּרֹב","טוּבְךָ","נַהֵל","עֲדָתֶךָ","חק״ב תנ״ע","יָחִיד","גֵּאֶה","לְעַמְּךָ","פְּנֵה","זוֹכְרֵי","קְדֻשָּׁתֶךָ","יג״ל פז״ק","שַׁוְעָתֵנוּ","קַבֵּל","וּשְׁמַע","צַעֲקָתֵנוּ","יוֹדֵעַ","תַּעֲלוּמוֹת","שק״ו צי״ת"]};const Bf={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],pfxWords:null},he:{infix:null,infix26:null,words:["","חֶֽסֶד","גְּבוּרָה","תִּפְאֶֽרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַלְכוּת"],pfxWords:["","שֶׁבְּחֶֽסֶד","שֶׁבִּגְבוּרָה","שֶׁבְּתִפְאֶֽרֶת","שֶׁבְּנֶֽצַח","שֶׁבְּהוֹד","שֶׁבִּיְסוֹד","שֶׁבְּמַלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"],pfxWords:null}};function Lf(t){return[Math.floor((t-1)/7)+1,t%7||7]}const Rf=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Yf=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Zf="שְׁנֵי",Pf="יָמִים",Uf=Zf+" "+Pf,xf="שָׁבוּעוֹת",zf="יוֹם",Ff=zf+" "+Yf[1],jf="עָשָׂר";const $f=_f.anaBekoach,Vf=_f.ps67lines.flatMap(t=>t.split(/[ ־]/)),Kf=_f.lamnatzeachLetters.split("");class Gf extends Et{constructor(t,e){super(t,`Omer ${e}`,Mt.OMER_COUNT),function(t){if(t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`)}(e),this.weekNumber=Math.floor((e-1)/7)+1,this.daysWithinWeeks=e%7||7,this.omer=e}sefira(t="en"){"he"!==t&&"translit"!==t&&(t="en");const[e,n]=Lf(this.omer),r=Bf[t],a=r.pfxWords,o=r.words,i=a?a[e]:o[e];return(o[n]+" "+(a?"":2===e||6===e?r.infix26:r.infix)+i).normalize()}render(t){const e=st.isHebrewLocale(t),n=this.omer;return(e?V(n):st.ordinal(n,t))+" "+st.gettext("day of the Omer",t)}renderBrief(t){return st.gettext("Omer",t)+" "+st.gettext("day",t)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;let t;const e=this.omer;return t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(t){t=(t||"en").toLowerCase();const e=st.isHebrewLocale(t)?function(t){const e=Math.floor(t/10),n=t%10;let r="הַיּוֹם ";if(11===t?r+="אַחַד "+jf:12===t?r+="שְׁנֵים "+jf:12<t&&t<20?r+=Yf[n]+" "+jf:t>9&&(r+=Yf[n],n&&(r+=" ",r+=3===e?"וּ":"וְ")),t>2?((t>20||10===t||20===t)&&(r+=Rf[e]),r+=t<11?Yf[n]+" "+Pf+" ":" יוֹם "):r+=1===t?Ff+" ":Uf+" ",t>6){r=r.trim(),r+=", שֶׁהֵם ";const e=Math.floor(t/7),n=t%7;r+=e>2?Yf[e]+" "+xf+" ":1===e?"שָׁבֽוּעַ "+Yf[1]+" ":Zf+" "+xf+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?Yf[n]+" "+Pf+" ":1===n?Ff+" ":Uf+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(this.omer):function(t){const[e,n]=Lf(t);let r=`Today is ${t} ${1===t?"day":"days"}`;if(e>1||7===t){const t=7===n,a=t?e:e-1;r+=`, which are ${a} ${1===a?"week":"weeks"}`,t||(r+=` and ${n} ${1===n?"day":"days"}`)}return r+" of the Omer"}(this.omer);return"he-x-nonikud"===t?st.hebrewStripNikkud(e):e}url(){const t=this.getDate().getFullYear();if(!(t<5e3||t>6759))return`https://www.hebcal.com/omer/${t}/${this.omer}`}getLamnatzeachWord(){return Vf[this.omer-1]}getLamnatzeachLetter(){return Kf[this.omer-1]}getAnaBekoachWord(){return $f[this.omer-1].normalize()}}function Jf(t,e){const n=[];for(let r=t;r<=e;r++)n.push(r);return n}const Wf={shacharit:!1,mincha:!1,allCongs:!1};function qf(t,e){return Xf(t,e,!0)}function Xf(t,e,n){const r=function(t,e){const n=mt.isLeapYear(t),r=mt.monthsInYear(t);let a=new mt(9,f.AV,t);6===a.getDay()&&(a=a.next());let o=new mt(15,f.ADAR_II,t);6===o.getDay()&&(o=o.next());const i=[new mt(2,f.TISHREI,t)].concat(Jf(1,r).map(e=>new mt(1,e,t)),Jf(1,r).filter(e=>30===mt.daysInMonth(e,t)).map(e=>new mt(30,e,t)),Jf(1,mt.daysInMonth(f.NISAN,t)).map(e=>new mt(e,f.NISAN,t)),new mt(18,f.IYYAR,t),Jf(1,8-(e?1:0)).map(e=>new mt(e,f.SIVAN,t)),a,new mt(15,f.AV,t),new mt(29,f.ELUL,t),Jf(9,24-(e?1:0)).map(e=>new mt(e,f.TISHREI,t)),Jf(25,33).map(e=>new mt(e,f.KISLEV,t)),new mt(15,f.SHVAT,t),new mt(14,f.ADAR_II,t),o,n?new mt(14,f.ADAR_I,t):[]),s=[new mt(14,f.IYYAR,t)].concat(Jf(1,13).map(e=>new mt(e,f.SIVAN,t)),Jf(20,31).map(e=>new mt(e,f.TISHREI,t)),t>=5708?Uh(t).next():[],t>=5727?new mt(28,f.IYYAR,t):[]),u=[new mt(29,f.ELUL,t-1),new mt(9,f.TISHREI,t),new mt(14,f.IYYAR,t)];return{none:i.map(t=>t.abs()).sort((t,e)=>t-e),some:s.map(t=>t.abs()).sort((t,e)=>t-e),yesPrev:u.map(t=>t.abs()).sort((t,e)=>t-e)}}(t.yy,e),a=t.abs();if(r.none.includes(a))return Wf;const o=t.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};r.some.includes(a)||(i.allCongs=!0),6!==o&&(i.shacharit=!0);const s=a+1;if(n&&!r.yesPrev.includes(s)){const t=Xf(new mt(s),e,!1);i.mincha=t.shacharit}else i.mincha=5!==o;return!i.allCongs||i.mincha||i.shacharit?i:Wf}class Qf extends Et{constructor(t){if(1!==arguments.length)throw new TypeError(`ParshaEvent constructor takes a single SedraResult argument; got ${arguments.length} arguments`);if("object"!=typeof t||null===t||!Array.isArray(t.parsha)||0===t.parsha.length||t.parsha.length>2||!mt.isHDate(t.hdate))throw new TypeError(`Invalid SedraResult argument: ${JSON.stringify(t)}`);const e="Parashat "+t.parsha.join("-");super(t.hdate,e,Mt.PARSHA_HASHAVUA),this.p=t}render(t){return function(t,e){let n=st.gettext(t[0],e);2===t.length&&(n+=(st.isHebrewLocale(e)?"־":"-")+st.gettext(t[1],e));return n=bh(n),(st.gettext("Parashat",e)+" "+n).normalize()}(this.p.parsha,t)}basename(){return this.p.parsha.join("-")}url(){const t=this.greg().getFullYear();if(t<100||t>2999)return;const e=this.urlDateSuffix(),n="https://www.hebcal.com/sedrot/"+Eh(this.basename())+"-"+e;return this.p.il?n+"?i=on":n}urlDateSuffix(){return tt(this.greg()).replaceAll("-","")}get parsha(){return this.p.parsha}}const tm=f.TISHREI;function em(t){if("number"==typeof t)return t;if(u(t))return h(t);if(mt.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}const nm=2e3;function rm(t){const e=void 0!==t.start,n=void 0!==t.end;if(e!==n)throw new TypeError("options.start requires options.end");if(e&&n){const e=em(t.start),n=em(t.end);if(n-e>73e4)throw new RangeError("Date range exceeds 2000 years");return[e,n]}const r=Boolean(t.isHebrewYear),a=function(t){return void 0!==t.year?Number(t.year):t.isHebrewYear?(new mt).getFullYear():(new Date).getFullYear()}(t);if(isNaN(a))throw new RangeError(`Invalid year ${t.year}`);if(r&&a<1)throw new RangeError(`Invalid Hebrew year ${a}`);const o=function(t){if(t.month){if(t.isHebrewYear)return mt.monthNum(t.month);if("number"==typeof t.month)return t.month}return NaN}(t),i=Number(t.numYears)||1;if(i>nm)throw new RangeError("options.numYears exceeds 2000");return r?function(t,e,n){const r=new mt(1,t||tm,e);let a=r.abs();const o=t?a+r.daysInMonth():new mt(1,tm,e+n).abs()-1;!t&&e>1&&a--;return[a,o]}(o,a,i):function(t,e,n){const r=t?t-1:0,a=new Date(e,r,1);e<100&&a.setFullYear(e);const o=h(a);let i;if(t)i=o+s(t,e)-1;else{const t=e+n,r=new Date(t,0,1);t<100&&r.setFullYear(t),i=h(r)-1}return[o,i]}(o,a,i)}const am=new Map;class om{static addCalendar(t,e,n){if("function"!=typeof e)throw new TypeError(`Invalid calendar function: ${e}`);am.set(t.toLowerCase(),{fn:e,startDate:n})}static lookup(t,e,n){const r=am.get(t.toLowerCase());return"object"==typeof r?r.fn(e,n):null}static getStartDate(t){const e=am.get(t.toLowerCase());if("object"==typeof e)return e.startDate}static has(t){return am.has(t.toLowerCase())}static getCalendars(){return Array.from(am.keys())}}const im="Shabbat Mevarchim Chodesh";class sm extends Et{constructor(t,e,n,r){if(super(t,`${im} ${e}`,Mt.SHABBAT_MEVARCHIM),this.monthName=st.gettext(e,r),n)this.memo=n;else{const e=t.getFullYear(),n=t.getMonth(),r=n===mt.monthsInYear(e)?f.NISAN:n+1,a=new kh(e,r);this.memo=a.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(t){const e=bh(st.gettext(this.monthName,t));return st.gettext(im,t)+" "+e}renderBrief(t){const e=this.render(t),n=e.indexOf(" ");return e.substring(n+1)}}function um(t={}){!function(t){if(!t.candlelighting)return;const e=t.location;if(void 0===e||!(e instanceof Ah))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof t.havdalahMins&&"number"==typeof t.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");if("number"==typeof t.fastEndDeg&&"number"==typeof t.fastEndMins)throw new TypeError("options.fastEndDeg and options.fastEndMins are mutually exclusive");if("number"==typeof t.fastStartDeg&&"number"==typeof t.fastStartMins)throw new TypeError("options.fastStartDeg and options.fastStartMins are mutually exclusive");if("number"==typeof t.tishaBavEndDeg&&"number"==typeof t.tishaBavEndMins)throw new TypeError("options.tishaBavEndDeg and options.tishaBavEndMins are mutually exclusive");const n=t.candleLightingMins;let r="number"!=typeof n||isNaN(n)?18:Math.trunc(n);e.getIsrael()&&18===Math.abs(r)&&(r=function(t){const e=t.getGeoId();if(e){const t=xm[e];if("number"==typeof t)return t}const n=t.getShortName();if(n){const t=Um[n];if("number"==typeof t)return t}return 20}(e));t.candleLightingMins=-1*Math.abs(r),"number"==typeof t.havdalahMins?t.havdalahMins=Math.trunc(Math.abs(t.havdalahMins)):"number"==typeof t.havdalahDeg?t.havdalahDeg=Math.abs(t.havdalahDeg):t.havdalahDeg=zm;"number"==typeof t.fastEndDeg&&(t.fastEndDeg=Math.abs(t.fastEndDeg));"number"==typeof t.fastEndMins&&(t.fastEndMins=Math.trunc(Math.abs(t.fastEndMins)));"number"==typeof t.fastStartDeg&&(t.fastStartDeg=Math.abs(t.fastStartDeg));"number"==typeof t.fastStartMins&&(t.fastStartMins=Math.trunc(Math.abs(t.fastStartMins)));"number"==typeof t.tishaBavEndDeg&&(t.tishaBavEndDeg=Math.abs(t.tishaBavEndDeg));"number"==typeof t.tishaBavEndMins&&(t.tishaBavEndMins=Math.trunc(Math.abs(t.tishaBavEndMins)))}(t={...t});const e=t.location=t.location||Fm,n=t.il=t.il||e.getIsrael()||!1,r="number"==typeof t.mask;if(t.mask=function(t){if("number"==typeof t.mask)return function(t){const e=t.mask||0;e&wm&&delete t.noRoshChodesh;e&Mm&&delete t.noModern;e&Im&&delete t.noMinorFast;e&Tm&&delete t.noSpecialShabbat;e&bm&&(t.sedrot=!0);e&(Em|Hm|Nm|Cm)&&(t.dailyLearning=t.dailyLearning||{},e&Em&&(t.dailyLearning.dafYomi=!0),e&Hm&&(t.dailyLearning.mishnaYomi=!0),e&Nm&&(t.dailyLearning.nachYomi=!0),e&Cm&&(t.dailyLearning.yerushalmi=1));e&Dm&&(t.omer=!0);e&km&&(t.shabbatMevarchim=!0);e&Lm&&(t.yomKippurKatan=!0);e&Ym&&(t.behab=!0);e&Rm&&(t.yizkor=!0);return e}(t);const e=t.il||t.location?.getIsrael()||!1;let n=0;t.noHolidays||(n|=wm|gm|Im|Tm|Mm|vm|Om|_m|Bm|mm|Am|pm);t.candlelighting&&(n|=mm|Am|gm);t.noRoshChodesh&&(n&=~wm);t.noModern&&(n&=~Mm);t.noMinorFast&&(n&=~Im);t.noSpecialShabbat&&(n&=~Tm,n&=~km);n|=e?Sm:ym;t.sedrot&&(n|=bm);t.omer&&(n|=Dm);t.shabbatMevarchim&&(n|=km);t.yomKippurKatan&&(n|=Lm);t.behab&&(n|=Ym);t.yizkor&&(n|=Rm);const r=t.dailyLearning;"object"==typeof r&&null!==r&&(r.dafYomi&&(n|=Em),r.mishnaYomi&&(n|=Hm),r.nachYomi&&(n|=Nm),r.yerushalmi&&(n|=Cm));return n}(t),t.locale){const e=t.locale;if(e&&"string"!=typeof e)throw new TypeError(`Invalid options.locale: ${e}`);if(!st.hasLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else t.ashkenazi?t.locale="ashkenazi":t.locale="en";const a=[];let o,i,s=-1,u=-1,c=-1;const h=rm(t);!function(t){for(const e of Object.keys(t))void 0!==Pm[e]||Zm.has(e)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${e}`),Zm.add(e));if(t.dailyLearning)for(const[e,n]of Object.entries(t.dailyLearning)){const t=Vm(e,n);Zm.has(e)||om.has(t)||(console.warn(`Ignoring unrecognized DailyLearning calendar: ${e}`),Zm.add(e))}}(t);const d=h[0],m=h[1],g=l(d).getFullYear();(g<100||g>9999)&&(t.candlelighting=!1,t.sedrot=!1,t.dailyLearning={});for(let e=d;e<=m;e++){const h=new mt(e),l=h.getFullYear();l!==c&&(c=l,i=df(c),t.sedrot&&(o=ll(c,n)),t.omer&&(s=mt.hebrew2abs(c,lm,16),u=mt.hebrew2abs(c,dm,5)));const d=a.length,m=h.getDay(),g=m===cm,y=m===hm;let S;const A=(i.get(h.toString())||[]).filter(t=>t.observedIn(n));for(const e of A)S=jm(S,a,e,t,g,y,r);const p=h.getMonth(),I=h.getDate();if(g&&t.candlelighting&&p===f.NISAN&&13===I){const e=Jm(h,t);e&&a.push(e)}if(t.sedrot&&y){const t=o.lookup(e);t.chag||a.push(new Qf(t))}if(t.yizkor&&(p===f.TISHREI&&(10===I||22===I)||p===lm&&I===(n?21:22)||p===dm&&I===(n?6:7))){const t=A[0],e=new Et(h,wd.YIZKOR,Mt.YIZKOR,{emoji:"🕯️",linkedEvent:t});a.push(e)}const T=t.dailyLearning;let M=0;if("object"==typeof T&&null!==T){const t=Km(h,T,n);M=t.length,M&&a.push(...t)}if(t.omer&&e>=s&&e<=u){const n=Gm(h,e-s+1,t);a.push(n)}if(y&&(t.molad||t.shabbatMevarchim)){const e=$m(h,t);a.push(...e)}if(!S&&t.candlelighting&&(g||y)&&(S=wf(void 0,h,t,g,y),g&&S&&o)){const n=o.lookup(e);if(n.chag)S.memo=st.gettext(n.parsha[0],t.locale);else{const e=new Qf(n);S.memo=e.render(t.locale)}}if(S instanceof Tf&&(0===t.havdalahMins||0===t.havdalahDeg)&&(S=void 0),S&&a.push(S),t.addHebrewDates||t.addHebrewDatesForEvents&&d!==a.length-M){const t=new Ht(h);d===a.length?a.push(t):a.splice(d,0,t)}}return a}const cm=5,hm=6,lm=f.NISAN,dm=f.SIVAN,fm=f.ELUL,mm=Mt.LIGHT_CANDLES,gm=Mt.YOM_TOV_ENDS,ym=Mt.CHUL_ONLY,Sm=Mt.IL_ONLY,Am=Mt.LIGHT_CANDLES_TZEIS,pm=Mt.CHANUKAH_CANDLES,Im=Mt.MINOR_FAST,Tm=Mt.SPECIAL_SHABBAT,Mm=Mt.MODERN_HOLIDAY,vm=Mt.MAJOR_FAST,wm=Mt.ROSH_CHODESH,bm=Mt.PARSHA_HASHAVUA,Em=Mt.DAF_YOMI,Hm=Mt.MISHNA_YOMI,Nm=Mt.NACH_YOMI,Cm=Mt.YERUSHALMI_YOMI,Dm=Mt.OMER_COUNT,km=Mt.SHABBAT_MEVARCHIM,Om=Mt.MINOR_HOLIDAY,_m=Mt.EREV,Bm=Mt.CHOL_HAMOED,Lm=Mt.YOM_KIPPUR_KATAN,Rm=Mt.YIZKOR,Ym=Mt.BEHAB,Zm=new Set,Pm={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,fastEndMins:1,fastStartDeg:1,fastStartMins:1,tishaBavEndDeg:1,tishaBavEndMins: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,mask:1,yomKippurKatan:1,behab:1,hour12:1,dailyLearning:1,useElevation:1,yizkor:1};const Um={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},xm={281184:40,294801:30,293067:30},zm=8.5;const Fm=new Ah(0,0,!1,"UTC");function jm(t,e,n,r,a,o,i){const s=r.il||!1;if(!n.observedIn(s))return t;const u=n.mask,c=n.hasFlag("YOM_KIPPUR_KATAN"),h=n.hasFlag("BEHAB");if(!r.yomKippurKatan&&c||!r.behab&&h||r.noModern&&n.hasFlag("MODERN_HOLIDAY"))return t;if(r.candlelighting&&n.getDesc()===wd.EREV_PESACH){const t=function(t,e){const n=[],r=e.location,a=Boolean(e.useElevation),o=t.getDate(),i=new Yh(r,o,a).sofZmanTfilla();if(isNaN(i.getTime()))return[];const s=new pf(o,wd.SOF_ZMAN_ACHILAT_CHAMETZ,0,i,r,void 0,e);if(s.emoji="🍞",n.push(s),o.getDay()!==hm){const t=Jm(o,e);t&&n.push(t)}return n}(n,r);t.length&&e.push(...t)}const l=n.hasFlag("MAJOR_FAST"),d=n.hasFlag("MINOR_FAST"),f=n.hasFlag("CHANUKAH_CANDLES"),m=n.hasAnyFlag("LIGHT_CANDLES","LIGHT_CANDLES_TZEIS","CHANUKAH_CANDLES","YOM_TOV_ENDS");let g;if(r.candlelighting&&(l||d)&&n.getDesc()!==wd.YOM_KIPPUR&&(n=g=Df(n,r),g.startEvent&&(l||d&&!r.noMinorFast)&&e.push(g.startEvent)),u&Number(r.mask)||!u&&!i){if(r.candlelighting&&m){const e=n.getDate();if(t=wf(n,e,r,a,o),f&&t&&!r.noHolidays){const e=function(t,e){const n=t.getDate(),r=e.location,a=Boolean(e.useElevation),o=new Yh(r,n.greg(),a).beinHaShmashos();return isNaN(o.getTime())?null:new Of(t,o,r)}(n,r);e&&((a||o)&&(e.eventTime=t.eventTime,e.eventTimeStr=t.eventTimeStr),n=e),t=void 0}}(!r.noHolidays||r.yomKippurKatan&&c||r.behab&&h)&&e.push(n)}return(l||d&&!r.noMinorFast)&&g?.endEvent&&e.push(g.endEvent),t}function $m(t,e){const n=[],r=t.getMonth(),a=t.getDate();if(r!==fm&&a>=23&&a<=29){const a=t.getFullYear(),o=r===mt.monthsInYear(a)?lm:r+1;if(e.molad&&n.push(new Oh(t,a,o,e)),e.shabbatMevarchim){const r=mt.getMonthName(o,a),i=new kh(a,o).render(e.locale,e);n.push(new sm(t,r,i,e.locale))}}return n}function Vm(t,e){return"yerushalmi"===t?2===e?"yerushalmi-schottenstein":"yerushalmi-vilna":t}function Km(t,e,n){const r=[];for(const[a,o]of Object.entries(e))if(o){const e=Vm(a,o),i=om.lookup(e,t,n);i&&r.push(i)}return r}function Gm(t,e,n){const r=new Gf(t,e);if(n.candlelighting){const e=n.location,a=new Yh(e,t.prev(),!1).tzeit(7.0833);isNaN(a.getTime())||(r.alarm=a)}return r}function Jm(t,e){const n=e.location,r=Boolean(e.useElevation),a=new Yh(n,t,r).sofZmanBiurChametzGRA();if(isNaN(a.getTime()))return;const o=new pf(t,wd.BIUR_CHAMETZ,0,a,n,void 0,e);return o.emoji="🔥",o}function Wm(t,e){return 0!==(Rd(t,e)||[]).filter(t=>t.hasFlag("CHAG")).length}return t.AsaraBTevetEvent=Nd,t.CandleLightingEvent=If,t.ChanukahEvent=Dd,t.DailyLearning=om,t.Event=Et,t.FastDayEvent=Cf,t.GeoLocation=hh,t.HDate=mt,t.HavdalahEvent=Tf,t.HebrewCalendar=class{constructor(){}static calendar(t={}){return um(t)}static getBirthdayOrAnniversary(t,e){return pt(t,e)}static getYahrzeit(t,e){return At(t,e)}static getHolidaysForYear(t){return df(t)}static getHolidaysForYearArray(t,e){return function(t,e){const n=df(t),r=mt.hebrew2abs(t,rf,1),a=mt.hebrew2abs(t+1,rf,1)-1;let o=[];for(let t=r;t<=a;t++){const r=new mt(t),a=n.get(r.toString());if(a){const t=a.filter(t=>t.observedIn(e));o=o.concat(t)}}return o}(t,e)}static getHolidaysOnDate(t,e){return Rd(t,e)}static eruvTavshilin(t,e){if(t.getDay()<3||t.getDay()>4)return!1;const n=new mt(t),r=n.after(5),a=n.next();return!(!Wm(r,e)||Wm(n,e)||!Wm(a,e))}static reformatTimeStr(t,e,n){return Ih(t,e,n)}static version(){return e}static getSedra(t,e){return ll(t,e)}static hallel(t,e){const n=Rd(t,e);return n?function(t,e){const n=e.abs();for(const e of t){const t=e.getDate();if(t.abs()!==n)continue;const r=e.getDesc(),a=t.getMonth(),o=t.getDate();if(r.startsWith("Chanukah")||r.startsWith("Shavuot")||r.startsWith("Sukkot")||a===f.NISAN&&(15===o||16===o)&&e.hasFlag("CHAG")||r===wd.YOM_HAATZMA_UT||r===wd.YOM_YERUSHALAYIM)return 2;if(e.hasFlag("ROSH_CHODESH")||r.startsWith("Pesach")&&r!==wd.PESACH_I&&r!==wd.PESACH_II)return 1}return 0}(n,t):0}static tachanun(t,e){return qf(t,e)}},t.HebrewDateEvent=Ht,t.HolidayEvent=Hd,t.Locale=st,t.Location=Ah,t.MevarchimChodeshEvent=sm,t.Molad=kh,t.MoladEvent=Oh,t.NOAACalculator=dh,t.OmerEvent=Gf,t.ParshaEvent=Qf,t.RoshChodeshEvent=_d,t.RoshHashanaEvent=kd,t.Sedra=xh,t.TimedChanukahEvent=Of,t.TimedEvent=pf,t.YomKippurKatanEvent=Ld,t.Zmanim=Yh,t.calculateMolad=vh,t.calendar=um,t.flags=Mt,t.gematriya=V,t.gematriyaStrToNum=K,t.getHolidaysOnDate=Rd,t.getMoladAsDate=wh,t.getSedra=ll,t.holidayDesc=wd,t.isAssurBemlacha=function(t,e,n){const r=X(e.getTzid(),t),a=parseInt(r.substring(0,4),10),o=parseInt(r.substring(5,7),10),i=parseInt(r.substring(8,10),10),s=new mt(new Date(a,o-1,i)),u=new Yh(e,s,n),c=u.sunset().getTime();if(isNaN(c))throw new Error("Could not determine sunset");const h=e.getIsrael(),l=t.getTime(),d=s.getDay(),f=Rd(s,h)||[];if(function(t,e){return 5===t||!!e.find(t=>t.hasAnyFlag("LIGHT_CANDLES","LIGHT_CANDLES_TZEIS"))}(d,f)&&l>=c)return!0;if(function(t,e){return 6===t||!!e.find(t=>t.hasFlag("CHAG"))}(d,f)){return l<=u.tzeit().getTime()}return!1},t.isAveilut=function(t){const e=function(t){return mt.isHDate(t)?t:new mt(t)}(t);return function(t){const e=t.getFullYear(),n=new mt(16,ff,e).abs(),r=new mt(5,mf,e).abs(),a=t.abs();return a>=n&&a<=r}(e)||function(t){const e=t.getFullYear(),n=new mt(17,gf,e).abs(),r=new mt(9,yf,e),a=6===r.getDay()?new mt(10,yf,e).abs():r.abs(),o=t.abs();return o>=n&&o<=a}(e)},t.isFastDay=function(t,e){const n=(Rd(t,e)||[]).find(t=>t.hasAnyFlag("MAJOR_FAST","MINOR_FAST")&&!t.hasFlag("EREV"));return Boolean(n)},t.months=f,t.parshaYear=function(t,e){const n=ll(t,e),r=n.getFirstSaturday(),a=mt.hebrew2abs(t,f.ELUL,29),o=[];for(let t=r;t<=a;t+=7){const e=n.lookup(t);if(!e.chag){const t=new Qf(e);o.push(t)}}return o},t.parshiot=zh,t.reformatTimeStr=Ih,t.tachanun=qf,t.version=e,t}({});
|
|
20
20
|
//# sourceMappingURL=bundle.min.js.map
|