@hebcal/core 5.4.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- /*! @hebcal/core v5.4.0 */
2
- var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},S=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],y=[S.concat(["Adar","Nisan"]),S.concat(["Adar I","Adar II","Nisan"])],A=new Map,p=-1373428,v=365.24682220597794;function w(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function I(e,t,n){if(w(e,"year"),w(t,"month"),w(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=H(t,e);for(let n=a;n<t;n++)r+=H(n,e)}else for(let n=u;n<t;n++)r+=H(n,e);return p+O(e)+r-1}function b(e){return p+O(e)}function T(e){if(w(e,"abs"),(e=Math.trunc(e))<=p)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-p)/v);for(;b(t)<=e;)++t;--t;let n=e<I(t,1,1)?7:1;for(;e>I(t,n,H(n,t));)++n;return{yy:t,mm:n,dd:1+e-I(t,n,1)}}function M(e){return(1+7*e)%19<7}function E(e){return+M(e)+12}function H(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!M(t)||e===h&&!N(t)||e===l&&_(t)?29:30}function C(e,t){if(w(e,"month"),w(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return y[+M(t)][e]}function O(e){const t=A.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!M(e)||1==i%7&&a>=16789&&M(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return A.set(e,n),n}function D(e){return O(e+1)-O(e)}function N(e){return D(e)%10==5}function _(e){return D(e)%10==3}const k=m.NISAN,R=m.CHESHVAN,L=m.KISLEV,P=m.TEVET,Y=m.SHVAT,B=m.ADAR_I,U=m.ADAR_II;function j(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const F={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},V=new Map,Z=new Map;for(const[e,t]of Object.entries(F))V.set(e,t),Z.set(t,e);function x(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function $(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=x(r);for(const t of e)n+=Z.get(t);n+="׳"}const o=x(t%1e3);if(1===o.length)return n+Z.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=Z.get(o[e]);return n}function K(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*K(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=V.get(n);"number"==typeof e&&(t+=e)}return t}const z={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function G(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function J(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return G(e),"en"===t?function(e){const[t,n]=J(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ae:12===e?r+="שְׁנֵים "+ae:12<e&&e<20?r+=X[n]+" "+ae:e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1],ae="עָשָׂר";const ie=new Map;const se=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ce(e,t){const n=function(e){const t=ie.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return ie.set(e,n),n}(e).format(t),r=se.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=ue(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ue(e){return e<0?"-00"+ue(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function he(e){return e<10?"0"+e:String(e)}function le(e){return ue(e.getFullYear())+"-"+he(e.getMonth()+1)+"-"+he(e.getDate())}var fe={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}},de={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["לְאַחַר הַשְׁקִיעָה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};const ge={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},me={h:"he",a:"ashkenazi",s:"en","":"en"},Se=new Map;let ye,Ae;class pe{static lookupTranslation(e,t){const n=("string"==typeof t&&Se.get(t.toLowerCase())||ye)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);Se.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=Se.get(e.toLowerCase());if(!r)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const o=Array.isArray(n);if(o){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=Se.get(e.toLowerCase());if(!n)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=e.toLowerCase(),n=Se.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return Ae=me[t]||t,ye=n,ye}static getLocaleName(){return Ae}static getLocaleNames(){return Array.from(Se.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||Ae;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}pe.addLocale("en",ge),pe.addLocale("s",ge),pe.addLocale("",ge),pe.useLocale("en"),pe.addLocale("ashkenazi",fe),pe.addLocale("a",fe),pe.addLocale("he",de),pe.addLocale("h",de);const ve=de.contexts[""],we={};for(const[e,t]of Object.entries(ve))we[e]=[pe.hebrewStripNikkud(t[0])];const Ie={headers:de.headers,contexts:{"":we}};pe.addLocale("he-x-NoNikud",Ie);const be="day",Te="week",Me="month",Ee="year";class He{constructor(t,n,r){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const e="string"==typeof r?parseInt(r,10):r;if(isNaN(e))throw new TypeError(`HDate called with bad year argument: ${r}`);this.yy=e,function(e,t){e.mm=He.monthNum(t),Ce(e)}(this,n);const i="string"==typeof t?parseInt(t,10):t;if(isNaN(i))throw new TypeError(`HDate called with bad day argument: ${t}`);a=i,(o=this).dd=a,Ce(o)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):void 0!==t.yy?t:null:t;if(null===n)throw new TypeError(`HDate called with bad argument: ${t}`);const r="number"==typeof n,o=r?T(n):n;this.yy=o.yy,this.mm=o.mm,this.dd=o.dd,r&&(this.rd=n)}var o,a}getFullYear(){return this.yy}isLeapYear(){return M(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return H(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=I(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return I(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||pe.getLocaleName(),r=this.getDate(),o=pe.gettext(this.getMonthName(),n).replace(/'/g,"’"),a=pe.ordinal(r,n),i=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=pe.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${a}${i} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=pe.gettext(this.getMonthName(),n),o=this.getFullYear();return $(t)+" "+r+" "+$(o)}before(e){return De(e,this,-1)}onOrBefore(e){return De(e,this,0)}nearest(e){return De(e,this,3)}onOrAfter(e){return De(e,this,6)}after(e){return De(e,this,7)}next(){return new He(this.abs()+1)}prev(){return new He(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new He(this);if(t=function(e){switch(e){case"d":return be;case"w":return Te;case"M":return Me;case"y":return Ee}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case be:case Te:case Me:case Ee:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===be)return new He(this.abs()+e);if(t===Te)return new He(this.abs()+7*e);if(t===Ee)return new He(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===Me){let t=new He(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new He(t.abs()+n*t.daysInMonth());return t}throw new TypeError(`Invalid units '${t}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!He.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!He.isHDate(e)&&(this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return M(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return H(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):He.monthFromName(e)}static daysInYear(e){return D(e)}static longCheshvan(e){return N(e)}static shortKislev(e){return _(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(pe.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=K(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=He.monthFromName(a);let s=K(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new He(o,i,s)}}function Ce(e){Oe(e),function(e){e.dd<1&&(e.mm===m.TISHREI&&(e.yy-=1),e.dd+=H(e.mm,e.yy),e.mm-=1,Ce(e));e.dd>H(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=H(e.mm,e.yy),e.mm===E(e.yy)?e.mm=1:e.mm+=1,Ce(e));Oe(e)}(e)}function Oe(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,Ce(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,Ce(e)):(e.mm-=1,Ce(e)),delete e.rd}function De(e,t,n){return new He(He.dayOnOrBefore(e,t.abs()+n))}class Ne{constructor(e,t){e=+e;const n=He.longCheshvan(e),r=He.shortKislev(e),o=n&&!r?2:!n&&r?0:1;this.year=e;const a=new He(1,m.TISHREI,e),i=a.abs(),s=a.getDay()+1;this.firstSaturday=He.dayOnOrBefore(6,i+6);const c=+He.isLeapYear(e);this.il=Boolean(t);let u=`${c}${s}${o}`;if(Je[u]||(u+=+this.il),this.theSedraArray=Je[u],!this.theSedraArray)throw new Error(`improper sedra year type ${u} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||pe.getLocaleName();let o=pe.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+pe.gettext(n[1],r)}return o=o.replace(/'/g,"’"),pe.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new He(this.firstSaturday+7*t)}if("string"==typeof e){const t=ke.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new He(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=ke.get(t);if(ke.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:He.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=He.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return new Ne(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[_e[o]],chag:!1,num:o+1};const a=Re(o);return{parsha:[_e[a],_e[a+1]],chag:!1,num:[a+1,a+2]}}}const _e=["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"],ke=new Map;for(let e=0;e<_e.length;e++){const t=_e[e];ke.set(t,e)}function Re(e){return-e}const Le="Rosh Hashana",Pe="Yom Kippur",Ye="Sukkot",Be="Sukkot Shabbat Chol ha-Moed",Ue="Shmini Atzeret",je=Be,Fe="Pesach",Ve="Pesach I",Ze="Pesach Shabbat Chol ha-Moed",xe="Pesach VII",$e="Pesach VIII",Ke="Shavuot";function ze(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Ge=[],Je={"020":Ge.concat(51,52,je,ze(0,20),Re(21),23,24,Fe,25,Re(26),Re(28),30,Re(31),ze(33,40),Re(41),ze(43,49),Re(50)),"0220":Ge.concat(51,52,je,ze(0,20),Re(21),23,24,Fe,25,Re(26),Re(28),30,Re(31),33,Ke,ze(34,37),Re(38),40,Re(41),ze(43,49),Re(50)),"0510":Ge.concat(52,Pe,je,ze(0,20),Re(21),23,24,Ve,$e,25,Re(26),Re(28),30,Re(31),ze(33,40),Re(41),ze(43,50)),"0511":Ge.concat(52,Pe,je,ze(0,20),Re(21),23,24,Fe,25,Re(26),Re(28),ze(30,40),Re(41),ze(43,50)),"052":Ge.concat(52,Pe,Be,ze(0,24),xe,25,Re(26),Re(28),30,Re(31),ze(33,40),Re(41),ze(43,50)),"070":Ge.concat(Le,52,Ye,Ue,ze(0,20),Re(21),23,24,xe,25,Re(26),Re(28),30,Re(31),ze(33,40),Re(41),ze(43,50)),"072":Ge.concat(Le,52,Ye,Ue,ze(0,20),Re(21),23,24,Ze,25,Re(26),Re(28),30,Re(31),ze(33,40),Re(41),ze(43,49),Re(50)),1200:Ge.concat(51,52,Be,ze(0,27),Ze,ze(28,33),Ke,ze(34,37),Re(38),40,Re(41),ze(43,49),Re(50)),1201:Ge.concat(51,52,Be,ze(0,27),Ze,ze(28,40),Re(41),ze(43,49),Re(50)),1220:Ge.concat(51,52,Be,ze(0,27),Ve,$e,ze(28,40),Re(41),ze(43,50)),1221:Ge.concat(51,52,Be,ze(0,27),Fe,ze(28,50)),150:Ge.concat(52,Pe,Be,ze(0,28),xe,ze(29,50)),152:Ge.concat(52,Pe,Be,ze(0,28),Ze,ze(29,49),Re(50)),170:Ge.concat(Le,52,Ye,Ue,ze(0,27),Ze,ze(28,40),Re(41),ze(43,49),Re(50)),1720:Ge.concat(Le,52,Ye,Ue,ze(0,27),Ze,ze(28,33),Ke,ze(34,37),Re(38),40,Re(41),ze(43,49),Re(50))};Je["0221"]=Je["020"],Je["0310"]=Je["0220"],Je["0311"]=Je["020"],Je[1310]=Je[1220],Je[1311]=Je[1221],Je[1721]=Je[170];const We={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},qe=[[We.MAJOR_FAST,"holiday","major","fast"],[We.CHANUKAH_CANDLES,"holiday","major"],[We.HEBREW_DATE,"hebdate"],[We.MINOR_FAST,"holiday","fast"],[We.MINOR_HOLIDAY,"holiday","minor"],[We.MODERN_HOLIDAY,"holiday","modern"],[We.MOLAD,"molad"],[We.OMER_COUNT,"omer"],[We.PARSHA_HASHAVUA,"parashat"],[We.ROSH_CHODESH,"roshchodesh"],[We.SHABBAT_MEVARCHIM,"mevarchim"],[We.SPECIAL_SHABBAT,"holiday","shabbat"],[We.USER_EVENT,"user"]];class Xe{constructor(e,t,n,r){if(!He.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}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return pe.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&We.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&We.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of qe)if(e&t[0])return t.slice(1);return["unknown"]}}class Qe extends Xe{constructor(e){super(e,e.toString(),We.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||pe.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=pe.gettext(t.getMonthName(),e);return $(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||pe.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},tt=function(e){return e&&e.Math===Math&&e},nt=tt("object"==typeof globalThis&&globalThis)||tt("object"==typeof window&&window)||tt("object"==typeof self&&self)||tt("object"==typeof et&&et)||tt("object"==typeof et&&et)||function(){return this}()||Function("return this")(),rt={},ot=function(e){try{return!!e()}catch(e){return!0}},at=!ot((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),it=!ot((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),st=it,ct=Function.prototype.call,ut=st?ct.bind(ct):function(){return ct.apply(ct,arguments)},ht={},lt={}.propertyIsEnumerable,ft=Object.getOwnPropertyDescriptor,dt=ft&&!lt.call({1:2},1);ht.f=dt?function(e){var t=ft(this,e);return!!t&&t.enumerable}:lt;var gt,mt,St=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},yt=it,At=Function.prototype,pt=At.call,vt=yt&&At.bind.bind(pt,pt),wt=yt?vt:function(e){return function(){return pt.apply(e,arguments)}},It=wt,bt=It({}.toString),Tt=It("".slice),Mt=ot,Et=function(e){return Tt(bt(e),8,-1)},Ht=Object,Ct=wt("".split),Ot=Mt((function(){return!Ht("z").propertyIsEnumerable(0)}))?function(e){return"String"===Et(e)?Ct(e,""):Ht(e)}:Ht,Dt=function(e){return null==e},Nt=Dt,_t=TypeError,kt=function(e){if(Nt(e))throw new _t("Can't call method on "+e);return e},Rt=Ot,Lt=kt,Pt=function(e){return Rt(Lt(e))},Yt="object"==typeof document&&document.all,Bt=void 0===Yt&&void 0!==Yt?function(e){return"function"==typeof e||e===Yt}:function(e){return"function"==typeof e},Ut=Bt,jt=function(e){return"object"==typeof e?null!==e:Ut(e)},Ft=nt,Vt=Bt,Zt=function(e,t){return arguments.length<2?(n=Ft[e],Vt(n)?n:void 0):Ft[e]&&Ft[e][t];var n},xt=wt({}.isPrototypeOf),$t=nt,Kt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",zt=$t.process,Gt=$t.Deno,Jt=zt&&zt.versions||Gt&&Gt.version,Wt=Jt&&Jt.v8;Wt&&(mt=(gt=Wt.split("."))[0]>0&&gt[0]<4?1:+(gt[0]+gt[1])),!mt&&Kt&&(!(gt=Kt.match(/Edge\/(\d+)/))||gt[1]>=74)&&(gt=Kt.match(/Chrome\/(\d+)/))&&(mt=+gt[1]);var qt=mt,Xt=ot,Qt=nt.String,en=!!Object.getOwnPropertySymbols&&!Xt((function(){var e=Symbol("symbol detection");return!Qt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qt&&qt<41})),tn=en&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nn=Zt,rn=Bt,on=xt,an=Object,sn=tn?function(e){return"symbol"==typeof e}:function(e){var t=nn("Symbol");return rn(t)&&on(t.prototype,an(e))},cn=String,un=Bt,hn=function(e){try{return cn(e)}catch(e){return"Object"}},ln=TypeError,fn=function(e){if(un(e))return e;throw new ln(hn(e)+" is not a function")},dn=Dt,gn=ut,mn=Bt,Sn=jt,yn=TypeError,An={exports:{}},pn=nt,vn=Object.defineProperty,wn=function(e,t){try{vn(pn,e,{value:t,configurable:!0,writable:!0})}catch(n){pn[e]=t}return t},In=nt,bn=wn,Tn="__core-js_shared__",Mn=An.exports=In[Tn]||bn(Tn,{});(Mn.versions||(Mn.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var En=An.exports,Hn=En,Cn=function(e,t){return Hn[e]||(Hn[e]=t||{})},On=kt,Dn=Object,Nn=function(e){return Dn(On(e))},_n=wt({}.hasOwnProperty),kn=Object.hasOwn||function(e,t){return _n(Nn(e),t)},Rn=wt,Ln=0,Pn=Math.random(),Yn=Rn(1..toString),Bn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Yn(++Ln+Pn,36)},Un=Cn,jn=kn,Fn=Bn,Vn=en,Zn=tn,xn=nt.Symbol,$n=Un("wks"),Kn=Zn?xn.for||xn:xn&&xn.withoutSetter||Fn,zn=function(e){return jn($n,e)||($n[e]=Vn&&jn(xn,e)?xn[e]:Kn("Symbol."+e)),$n[e]},Gn=ut,Jn=jt,Wn=sn,qn=function(e,t){var n=e[t];return dn(n)?void 0:fn(n)},Xn=function(e,t){var n,r;if("string"===t&&mn(n=e.toString)&&!Sn(r=gn(n,e)))return r;if(mn(n=e.valueOf)&&!Sn(r=gn(n,e)))return r;if("string"!==t&&mn(n=e.toString)&&!Sn(r=gn(n,e)))return r;throw new yn("Can't convert object to primitive value")},Qn=TypeError,er=zn("toPrimitive"),tr=function(e,t){if(!Jn(e)||Wn(e))return e;var n,r=qn(e,er);if(r){if(void 0===t&&(t="default"),n=Gn(r,e,t),!Jn(n)||Wn(n))return n;throw new Qn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Xn(e,t)},nr=sn,rr=function(e){var t=tr(e,"string");return nr(t)?t:t+""},or=jt,ar=nt.document,ir=or(ar)&&or(ar.createElement),sr=function(e){return ir?ar.createElement(e):{}},cr=sr,ur=!at&&!ot((function(){return 7!==Object.defineProperty(cr("div"),"a",{get:function(){return 7}}).a})),hr=at,lr=ut,fr=ht,dr=St,gr=Pt,mr=rr,Sr=kn,yr=ur,Ar=Object.getOwnPropertyDescriptor;rt.f=hr?Ar:function(e,t){if(e=gr(e),t=mr(t),yr)try{return Ar(e,t)}catch(e){}if(Sr(e,t))return dr(!lr(fr.f,e,t),e[t])};var pr={},vr=at&&ot((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),wr=jt,Ir=String,br=TypeError,Tr=function(e){if(wr(e))return e;throw new br(Ir(e)+" is not an object")},Mr=at,Er=ur,Hr=vr,Cr=Tr,Or=rr,Dr=TypeError,Nr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,kr="enumerable",Rr="configurable",Lr="writable";pr.f=Mr?Hr?function(e,t,n){if(Cr(e),t=Or(t),Cr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Lr in n&&!n[Lr]){var r=_r(e,t);r&&r[Lr]&&(e[t]=n.value,n={configurable:Rr in n?n[Rr]:r[Rr],enumerable:kr in n?n[kr]:r[kr],writable:!1})}return Nr(e,t,n)}:Nr:function(e,t,n){if(Cr(e),t=Or(t),Cr(n),Er)try{return Nr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Dr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Pr=pr,Yr=St,Br=at?function(e,t,n){return Pr.f(e,t,Yr(1,n))}:function(e,t,n){return e[t]=n,e},Ur={exports:{}},jr=at,Fr=kn,Vr=Function.prototype,Zr=jr&&Object.getOwnPropertyDescriptor,xr=Fr(Vr,"name"),$r={EXISTS:xr,PROPER:xr&&"something"===function(){}.name,CONFIGURABLE:xr&&(!jr||jr&&Zr(Vr,"name").configurable)},Kr=Bt,zr=En,Gr=wt(Function.toString);Kr(zr.inspectSource)||(zr.inspectSource=function(e){return Gr(e)});var Jr,Wr,qr,Xr=zr.inspectSource,Qr=Bt,eo=nt.WeakMap,to=Qr(eo)&&/native code/.test(String(eo)),no=Bn,ro=Cn("keys"),oo=function(e){return ro[e]||(ro[e]=no(e))},ao={},io=to,so=nt,co=jt,uo=Br,ho=kn,lo=En,fo=oo,go=ao,mo="Object already initialized",So=so.TypeError,yo=so.WeakMap;if(io||lo.state){var Ao=lo.state||(lo.state=new yo);Ao.get=Ao.get,Ao.has=Ao.has,Ao.set=Ao.set,Jr=function(e,t){if(Ao.has(e))throw new So(mo);return t.facade=e,Ao.set(e,t),t},Wr=function(e){return Ao.get(e)||{}},qr=function(e){return Ao.has(e)}}else{var po=fo("state");go[po]=!0,Jr=function(e,t){if(ho(e,po))throw new So(mo);return t.facade=e,uo(e,po,t),t},Wr=function(e){return ho(e,po)?e[po]:{}},qr=function(e){return ho(e,po)}}var vo={set:Jr,get:Wr,has:qr,enforce:function(e){return qr(e)?Wr(e):Jr(e,{})},getterFor:function(e){return function(t){var n;if(!co(t)||(n=Wr(t)).type!==e)throw new So("Incompatible receiver, "+e+" required");return n}}},wo=wt,Io=ot,bo=Bt,To=kn,Mo=at,Eo=$r.CONFIGURABLE,Ho=Xr,Co=vo.enforce,Oo=vo.get,Do=String,No=Object.defineProperty,_o=wo("".slice),ko=wo("".replace),Ro=wo([].join),Lo=Mo&&!Io((function(){return 8!==No((function(){}),"length",{value:8}).length})),Po=String(String).split("String"),Yo=Ur.exports=function(e,t,n){"Symbol("===_o(Do(t),0,7)&&(t="["+ko(Do(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!To(e,"name")||Eo&&e.name!==t)&&(Mo?No(e,"name",{value:t,configurable:!0}):e.name=t),Lo&&n&&To(n,"arity")&&e.length!==n.arity&&No(e,"length",{value:n.arity});try{n&&To(n,"constructor")&&n.constructor?Mo&&No(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Co(e);return To(r,"source")||(r.source=Ro(Po,"string"==typeof t?t:"")),e};Function.prototype.toString=Yo((function(){return bo(this)&&Oo(this).source||Ho(this)}),"toString");var Bo=Ur.exports,Uo=Bt,jo=pr,Fo=Bo,Vo=wn,Zo={},xo=Math.ceil,$o=Math.floor,Ko=Math.trunc||function(e){var t=+e;return(t>0?$o:xo)(t)},zo=Ko,Go=function(e){var t=+e;return t!=t||0===t?0:zo(t)},Jo=Go,Wo=Math.max,qo=Math.min,Xo=Go,Qo=Math.min,ea=function(e){var t=Xo(e);return t>0?Qo(t,9007199254740991):0},ta=Pt,na=function(e,t){var n=Jo(e);return n<0?Wo(n+t,0):qo(n,t)},ra=function(e){return ea(e.length)},oa=function(e){return function(t,n,r){var o=ta(t),a=ra(o);if(0===a)return!e&&-1;var i,s=na(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},aa={includes:oa(!0),indexOf:oa(!1)},ia=kn,sa=Pt,ca=aa.indexOf,ua=ao,ha=wt([].push),la=function(e,t){var n,r=sa(e),o=0,a=[];for(n in r)!ia(ua,n)&&ia(r,n)&&ha(a,n);for(;t.length>o;)ia(r,n=t[o++])&&(~ca(a,n)||ha(a,n));return a},fa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],da=la,ga=fa.concat("length","prototype");Zo.f=Object.getOwnPropertyNames||function(e){return da(e,ga)};var ma={};ma.f=Object.getOwnPropertySymbols;var Sa=Zt,ya=Zo,Aa=ma,pa=Tr,va=wt([].concat),wa=Sa("Reflect","ownKeys")||function(e){var t=ya.f(pa(e)),n=Aa.f;return n?va(t,n(e)):t},Ia=kn,ba=wa,Ta=rt,Ma=pr,Ea=ot,Ha=Bt,Ca=/#|\.prototype\./,Oa=function(e,t){var n=Na[Da(e)];return n===ka||n!==_a&&(Ha(t)?Ea(t):!!t)},Da=Oa.normalize=function(e){return String(e).replace(Ca,".").toLowerCase()},Na=Oa.data={},_a=Oa.NATIVE="N",ka=Oa.POLYFILL="P",Ra=Oa,La=nt,Pa=rt.f,Ya=Br,Ba=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(Uo(n)&&Fo(n,a,r),r.global)o?e[t]=n:Vo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:jo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Ua=wn,ja=function(e,t,n){for(var r=ba(t),o=Ma.f,a=Ta.f,i=0;i<r.length;i++){var s=r[i];Ia(e,s)||n&&Ia(n,s)||o(e,s,a(t,s))}},Fa=Ra,Va={},Za=la,xa=fa,$a=Object.keys||function(e){return Za(e,xa)},Ka=at,za=vr,Ga=pr,Ja=Tr,Wa=Pt,qa=$a;Va.f=Ka&&!za?Object.defineProperties:function(e,t){Ja(e);for(var n,r=Wa(t),o=qa(t),a=o.length,i=0;a>i;)Ga.f(e,n=o[i++],r[n]);return e};var Xa,Qa=Zt("document","documentElement"),ei=Tr,ti=Va,ni=fa,ri=ao,oi=Qa,ai=sr,ii="prototype",si="script",ci=oo("IE_PROTO"),ui=function(){},hi=function(e){return"<"+si+">"+e+"</"+si+">"},li=function(e){e.write(hi("")),e.close();var t=e.parentWindow.Object;return e=null,t},fi=function(){try{Xa=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;fi="undefined"!=typeof document?document.domain&&Xa?li(Xa):(t=ai("iframe"),n="java"+si+":",t.style.display="none",oi.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(hi("document.F=Object")),e.close(),e.F):li(Xa);for(var r=ni.length;r--;)delete fi[ii][ni[r]];return fi()};ri[ci]=!0;var di=Object.create||function(e,t){var n;return null!==e?(ui[ii]=ei(e),n=new ui,ui[ii]=null,n[ci]=e):n=fi(),void 0===t?n:ti.f(n,t)},gi=zn,mi=di,Si=pr.f,yi=gi("unscopables"),Ai=Array.prototype;void 0===Ai[yi]&&Si(Ai,yi,{configurable:!0,value:mi(null)});var pi=aa.includes,vi=function(e){Ai[yi][e]=!0};function wi(e,t,n,r,o){return Ii(t,bi(e,t),n,r,o)}function Ii(e,t,n,r,o,a){const i=xi(t,n,r);if(o&&t!==i)throw new RangeError(ql(e,t,n,r,a));return i}function bi(e,t){const n=e[t];if(void 0===n)throw new TypeError(Ql(t));return n}function Ti(e){return null!==e&&/object|function/.test(typeof e)}function Mi(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Ei(e){return Hi({name:e},1)}function Hi(e,t){return Ni((e=>({value:e,configurable:1,writable:!t})),e)}function Ci(e){return Ni((e=>({get:e,configurable:1})),e)}function Oi(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Di(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Ni(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function _i(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function ki(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Ri(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Li(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Pi(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function Yi(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Bi(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Ui(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function ji(e){return e[0].toUpperCase()+e.substring(1)}function Fi(e){return e.slice().sort()}function Vi(e,t){return String(t).padStart(e,"0")}function Zi(e,t){return Math.sign(e-t)}function xi(e,t,n){return Math.min(Math.max(e,t),n)}function $i(e,t){return[Math.floor(e/t),Ki(e,t)]}function Ki(e,t){return(e%t+t)%t}function zi(e,t){return[Gi(e,t),Ji(e,t)]}function Gi(e,t){return Math.trunc(e/t)||0}function Ji(e,t){return e%t||0}function Wi(e){return.5===Math.abs(e%1)}function qi(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=Jf[a],s=Gf/i,[c,u]=zi(t,s);r+=u*i,o+=c}const[a,i]=zi(r,Gf);return[o+a,i]}function Xi(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Jf[o];r[n[o]]=Gi(e,t),e=Ji(e,t)}return r}function Qi(e){if(void 0!==e)return ts(e)}function es(e){return ss(ts(e))}function ts(e){return is(Id(e))}function ns(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function rs(e,t){if(null==t)throw new RangeError(Ql(e));return t}function os(e){if(!Ti(e))throw new TypeError(Wl);return e}function as(e,t){if(typeof t!==e)throw new TypeError(Xl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(xl(t,e));return e||0}function ss(e){if(e<=0)throw new RangeError($l(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function cs(e){if("symbol"==typeof e)throw new TypeError(Jl);return String(e)}function us(e,t){return Ti(e)?String(e):vd(e,t)}function hs(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Gl(e));return e}function ls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(zl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Kl(t,e));return e}function fs(e,t){return Math.trunc(ls(e,t))||0}function ds(e,t){return is(ls(e,t),t)}function gs(e,t){return ss(fs(e,t),t)}function ms(e,t){let[n,r]=zi(t,Gf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Gf),[o,r]}function Ss(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return ms(e[0]+t[0]*n,e[1]+t[1]*n)}function ys(e,t){return ms(e[0],e[1]+t)}function As(e,t){return Ss(t,e,-1)}function ps(e,t){return Zi(e[0],t[0])||Zi(e[1],t[1])}function vs(e,t,n){return-1===ps(e,t)||1===ps(e,n)}function ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Gf/t);return[Number(e/n),Number(e%n)*t]}function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Gf/t,[r,o]=zi(e,n);return[r,o*t]}function bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Gf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Ts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=zi(o,t);return r*(Gf/t)+(a+(n?i/t:0))}function Ms(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$i;const[r,o]=e,[a,i]=n(o,t);return[r*(Gf/t)+a,i]}function Es(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Hs(e){return wi(e,"isoYear",Gd,zd,1),e.isoYear===Gd?wi(e,"isoMonth",4,12,1):e.isoYear===zd&&wi(e,"isoMonth",1,9,1),e}function Cs(e){return Os({...e,...Ud,isoHour:12}),e}function Os(e){const t=wi(e,"isoYear",Gd,zd,1),n=t===Gd?1:t===zd?-1:0;return n&&Ds(Ps({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Ds(e){if(!e||vs(e,Kd,$d))throw new RangeError(Mf);return e}function Ns(e){return qi(e,5,kd)[1]}function _s(e){const[t,n]=$i(e,Gf);return[Xi(n,5,kd),t]}function ks(e){return Rs(e)[0]}function Rs(e){return Ms(e,$f)}function Ls(e){return Us(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Ps(e){const t=Ls(e);if(void 0!==t){const[n,r]=zi(t,Ff);return[n,r*xf+(e.isoMicrosecond||0)*Zf+(e.isoNanosecond||0)]}}function Ys(e,t){const[n,r]=_s(Ns(e)-t);return Ds(Ps({...e,isoDay:e.isoDay+r,...n}))}function Bs(){return Us(...arguments)/Vf}function Us(){const[e,t]=js(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*Ff}function js(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Gd?1:e===zd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function Fs(e,t){let[n,r]=ys(e,t);r<0&&(r+=Gf,n-=1);const[o,a]=$i(r,xf),[i,s]=$i(a,Zf);return Vs(n*Ff+o,i,s)}function Vs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-xd)/Ff)*Math.sign(e),o=new Date(e-r*Ff);return Di(Ld,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Zs(e){return[e.isoYear,e.isoMonth,e.isoDay]}function xs(){return qd}function $s(e,t){switch(t){case 2:return zs(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Ks(e){return zs(e)?366:365}function zs(e){return e%4==0&&(e%100!=0||e%400==0)}function Gs(e){const[t,n]=js(e.isoYear,e.isoMonth,e.isoDay);return Ki(t.getUTCDay()-n,7)||7}function Js(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Ws(e){const t=Ls(e);if(t<Xd)return Js(e);const n=Es(im(Sd),t),{era:r,eraYear:o}=Gh(n,Sd);return[r,o]}function qs(e){return Xs(e),tc(e,1),e}function Xs(e){return ec(e,1),e}function Qs(e){return Yi(Rd,e,ec(e))}function ec(e,t){const{isoYear:n}=e,r=wi(e,"isoMonth",1,xs(),t);return{isoYear:n,isoMonth:r,isoDay:wi(e,"isoDay",1,$s(n,r),t)}}function tc(e,t){return Di(kd,[wi(e,"isoHour",0,23,t),wi(e,"isoMinute",0,59,t),wi(e,"isoSecond",0,59,t),wi(e,"isoMillisecond",0,999,t),wi(e,"isoMicrosecond",0,999,t),wi(e,"isoNanosecond",0,999,t)])}function nc(e){return void 0===e?0:Sg(os(e))}function rc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=gc(e);const n=yg(e),r=Ag(e,t);return[Sg(e),r,n]}function oc(e){return yg(gc(e))}function ac(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=gc(t);let i=gg(t,r,o),s=lc(t),c=Ig(t,a);const u=dg(t,r,o,1);return null==i?i=Math.max(n,u):vc(i,u),s=fc(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function ic(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=lc(e=mc(e,eg));const o=Ig(e,7);let a=dg(e,t);return a=rs(eg,a),r=fc(r,a,void 0,n),[a,r,o]}function sc(e){return pg(gc(e))}function cc(e,t){return uc(gc(e),t)}function uc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=dc(e);return[Ig(e,4),...hc(dg(e,t),n)]}function hc(e,t){return null!=e?[Jf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function lc(e){const t=e[ng];return void 0===t?1:fs(t,ng)}function fc(e,t,n,r){const o=r?Gf:Jf[t+1];if(o){const n=Jf[t];if(o%((e=Ii(ng,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Xl(ng,e))}else e=Ii(ng,e,1,n?10**9:1,1);return e}function dc(e){let t=e[rg];if(void 0!==t){if("number"!=typeof t){if("auto"===cs(t))return;throw new RangeError(Xl(rg,t))}t=Ii(rg,Math.floor(t),0,9,1)}return t}function gc(e){return void 0===e?{}:os(e)}function mc(e,t){return"string"==typeof e?{[t]:e}:os(e)}function Sc(e){if(void 0!==e){if(Ti(e))return Object.assign(Object.create(null),e);throw new TypeError(Wl)}}function yc(e,t){return e&&Object.assign(Object.create(null),e,{overflow:ig[t]})}function Ac(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=cs(a),"auto"===a)return o?r:null;let i=Uf[a];if(void 0===i&&(i=Od[a]),void 0===i)throw new RangeError(rf(e,a,Uf));return Ii(e,i,r,n,1,jf),i}function pc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=cs(o),i=t[a];if(void 0===i)throw new RangeError(rf(e,a,t));return i}function vc(e,t){if(t>e)throw new RangeError(Nf)}function wc(e){return{branding:Og,epochNanoseconds:e}}function Ic(e,t,n){return{branding:Cg,calendar:n,timeZone:t,epochNanoseconds:e}}function bc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Eg,calendar:t,...Ri(Bd,e)}}function Tc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Mg,calendar:t,...Ri(Pd,e)}}function Mc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:bg,calendar:t,...Ri(Pd,e)}}function Ec(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Tg,calendar:t,...Ri(Pd,e)}}function Hc(e){return{branding:Hg,...Ri(Yd,e)}}function Cc(e){return{branding:Dg,sign:$u(e),...Ri(Md,e)}}function Oc(e){return Ms(e.epochNanoseconds,xf)[0]}function Dc(e){return e.epochNanoseconds}function Nc(e){return"string"==typeof e?e:vd(e.id)}function _c(e,t){return e===t||Nc(e)===Nc(t)}function kc(e,t,n,r,o,a){const i={...Dd,[Td[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function Rc(e,t,n){const r=Ts(As(t,n));if(!r)throw new RangeError(Sf);return Ts(As(t,e))/r}function Lc(e,t,n,r){return Pc(e,Uc(t,n),r)}function Pc(e,t,n){const[r,o]=Yc(e,t,n);return Os({...Ru(e,o),...r})}function Yc(e,t,n){return _s(Kc(Ns(e),t,n))}function Bc(e){return Kc(e,Kf,7)}function Uc(e,t){return Jf[e]*t}function jc(e){const t=Fc(e);return[t,Ru(t,1)]}function Fc(e){return jd(6,e)}function Vc(e,t,n){const r=Math.min(Xu(e),6);return Ju($c(Gu(e,r),t,n),r)}function Zc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Wc:Uu(i)&&r<6?Jc:Gc;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=$u(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=_d(c,e);r[Td[c]]+=s;const u=Ts(As(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function xc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Gf)(e);return[Kc(t,n,r),0]}return $c(e,Uc(t,n),r,o)}function $c(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Gf,o-=1);const[i,s]=$i(Kc(a,t,n),Gf);return ms(o+i,s)}function Kc(e,t,n){return zc(e/t,n)*t}function zc(e,t){return Ng[t](e)}function Gc(e,t,n,r,o,a){const i=$u(e),s=Gu(e),c=xc(s,r,o,a),u=As(s,c),h=Math.sign(c[0]-s[0])===i,l=Ju(c,Math.min(n,6));return[{...e,...l},Ss(t,u),h]}function Jc(e,t,n,r,o,a,i,s,c){const u=$u(e);let[h,l]=Gu(e,5);const f=Uc(r,o);let d=Kc(l,f,a);const[g,m]=kc({...e,...Nd},6,u,i,s,c),S=d-Ts(As(g,m));S&&Math.sign(S)!==u?t=ys(g,d):(h+=u,d=Kc(S,f,a),t=ys(m,d));const y=Wu(d);return[{...e,...y,days:e.days+h},t,Boolean(h)]}function Wc(e,t,n,r,o,a,i,s,c){const u=$u(e),h=Td[r],l=_d(r,e),f=Gi(e[h],o)*o;l[h]=f;const[d,g]=kc(l,r,o*u,i,s,c),m=f+Rc(t,d,g)*u*o,S=Kc(m,o,a),y=Math.sign(S-m)===u;return l[h]=S,[l,y?g:d,y]}function qc(e,t,n,r){const[o,a,i,s]=(e=>{const t=uc(e=gc(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=$c(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return su(Fs(n,i),a)+(e?fu(Bc(i)):"Z")})(c,t(c?e(o):_g),n.epochNanoseconds,a,i,s)}function Xc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=gc(e);const t=pg(e),n=dc(e),r=wg(e),o=Ig(e,4),a=dg(e,4);return[t,vg(e),r,o,...hc(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=$c(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return su(Fs(r,h),u)+fu(Bc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+Nc(e)+"]":"")(n,a)+du(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Qc(e,t){const[n,r,o,a]=(e=>(e=gc(e),[pg(e),...uc(e)]))(t);return i=e.calendar,s=n,c=a,su(Pc(e,o,r),c)+du(i,s);var i,s,c}function eu(e,t){return n=e.calendar,r=e,o=sc(t),cu(r)+du(n,o);var n,r,o}function tu(e,t){return au(e.calendar,uu,e,sc(t))}function nu(e,t){return au(e.calendar,hu,e,sc(t))}function ru(e,t){const[n,r,o]=cc(t);return a=o,lu(Yc(e,r,n)[0],a);var a}function ou(e,t){const[n,r,o]=cc(t,3);return r>1&&(e={...e,...Vc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?xu(e):e,{hours:o,minutes:a}=r,[i,s]=Ms(Gu(r,3),$f,zi);zu(i);const c=mu(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+iu({Y:yu(r.years),M:yu(r.months),W:yu(r.weeks),D:yu(r.days)})+(o||a||i||u?"T"+iu({H:yu(o),M:yu(a),S:yu(i,u)+c}):"")})(e,o)}function au(e,t,n,r){const o=Nc(e),a=r>1||0===r&&o!==gd;return 1===r?o===gd?t(n):cu(n):a?cu(n)+gu(o,2===r):t(n)}function iu(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function su(e,t){return cu(e)+"T"+lu(e,t)}function cu(e){return uu(e)+"-"+Bf(e.isoDay)}function uu(e){const{isoYear:t}=e;return(t<0||t>9999?Su(t)+Vi(6,Math.abs(t)):Vi(4,t))+"-"+Bf(e.isoMonth)}function hu(e){return Bf(e.isoMonth)+"-"+Bf(e.isoDay)}function lu(e,t){const n=[Bf(e.isoHour),Bf(e.isoMinute)];return-1!==t&&n.push(Bf(e.isoSecond)+((e,t,n,r)=>mu(e*xf+t*Zf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function fu(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=$i(Math.abs(e),zf),[r,o]=$i(n,Kf),[a,i]=$i(o,$f);return Su(e)+Bf(t)+":"+Bf(r)+(a||i?":"+Bf(a)+mu(i):"")}function du(e,t){if(1!==t){const n=Nc(e);if(t>1||0===t&&n!==gd)return gu(n,2===t)}return""}function gu(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function mu(e,t){let n=Vi(9,e);return n=void 0===t?n.replace(Pg,""):n.slice(0,t),n?"."+n:""}function Su(e){return e<0?"-":"+"}function yu(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Au(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=Fs(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function pu(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return Ys(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Ps(t);r&&(n=Bc(n));for(const t of e){let e=Ts(As(t,o));if(r&&(e=Bc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(bf)}return i?Ps(t):vu(e,t,o,s)}function vu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(Tf);if(r.length)return r[3===n?1:0];const o=Ps(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(ys(t,-Gf));return Iu(e.getOffsetNanosecondsFor(ys(t,Gf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(Fs(o,i)))[2===n?0:r.length-1]}function wu(e){if(Math.abs(e)>=Gf)throw new RangeError(wf);return e}function Iu(e){if(e>Gf)throw new RangeError(If);return e}function bu(e,t,n){return wc(Ds(Ss(t.epochNanoseconds,(e=>{if(qu(e))throw new RangeError(Of);return Gu(e,5)})(e?xu(n):n))))}function Tu(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...Ou(s,i,r,n?xu(o):o,a)}}function Mu(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return bc(Du(e(a),n,t?xu(r):r,o),a)}function Eu(e,t,n,r,o){const{calendar:a}=n;return Tc(Nu(e(a),n,t?xu(r):r,o),a)}function Hu(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=_u(i,n);t&&(r=Zu(r)),r.sign<0&&(s=i.dateAdd(s,{...Dd,months:1}),s=Ru(s,-1));const c=i.dateAdd(s,r,o);return Mc(_u(i,c),a)}function Cu(e,t,n){return Hc(ku(t,e?xu(n):n)[0])}function Ou(e,t,n,r,o){const a=Gu(r,5);let i=n.epochNanoseconds;if(qu(r)){const s=Yg(n,t);i=Ss(vu(t,{...Nu(e,s,{...r,...Nd},o),...Ri(kd,s)}),a)}else i=Ss(i,a),nc(o);return{epochNanoseconds:Ds(i)}}function Du(e,t,n,r){const[o,a]=ku(t,n);return Os({...Nu(e,t,{...n,...Nd,days:n.days+a},r),...o})}function Nu(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);nc(r);const o=n.days+Gu(n,5)[0];return o?Cs(Ru(t,o)):t}function _u(e,t){return Ru(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function ku(e,t){const[n,r]=Gu(t,5),[o,a]=_s(Ns(e)+r);return[o,n+a]}function Ru(e,t){return t?{...e,...Vs(Ls(e)+t*Ff)}:e}function Lu(e,t,n){const r=e(n.calendar);return Uu(n)?[n,r,t(n.timeZone)]:[{...n,...Ud},r]}function Pu(e){return e?Dc:Ps}function Yu(e,t){return t?Ui(Ou,e,t):Ui(Du,e)}function Bu(e,t){return t?Ui(Lh,e,t):Ui(Ph,e)}function Uu(e){return e&&e.epochNanoseconds}function ju(e,t){return e<=6-(Uu(t)?1:0)}function Fu(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function Vu(e,t,n,r,o,a,i){const s=e(gc(i).relativeTo),c=Math.max(Xu(o),Xu(a));if(ju(c,s))return Cc(Ku(((e,t,n,r)=>{const o=Ss(Gu(e),Gu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Mf);return{...Dd,...Ju(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(Cf);r&&(a=xu(a));const[u,h,l]=Lu(t,n,s),f=Yu(h,l),d=Bu(h,l),g=f(u,o);return Cc(d(u,f(g,a),c))}function Zu(e){return Cc(xu(e))}function xu(e){const t={};for(const n of Td)t[n]=-1*e[n]||0;return t}function $u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Td,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Hf);n=t}}return n}function Ku(e){for(const t of Cd)Ii(t,e[t],-Bg,Bg,1);return zu(Ts(Gu(e),$f)),e}function zu(e){if(!Number.isSafeInteger(e))throw new RangeError(Ef)}function Gu(e){return qi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Td)}function Ju(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Xi(r,t,Td);if(o[Td[t]]+=n*(Gf/Jf[t]),!Number.isFinite(o[Td[t]]))throw new RangeError(Mf);return o}function Wu(e){return Xi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Td)}function qu(e){return Boolean($u(e,Hd))}function Xu(e){let t=9;for(;t>0&&!e[Td[t]];t--);return t}function Qu(e,t){return[e,t]}function eh(e){const t=Math.floor(e/kg)*kg;return[t,t+kg]}function th(e){const t=lh(e);if(void 0===t)throw new RangeError(_f(e));return t}function nh(e){const t=ch(vd(e));if(!t||t.O)throw new RangeError(_f(e));return Tc(t.I?ah(t):ih(t))}function rh(e){if(e.calendar!==gd)throw new RangeError(kf(e.calendar))}function oh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=ph(e.timeZone),a=Ug(o);return Ic(pu(a,qs(e),t,n,r,!a.R,e.O),o,rl(e.calendar))}function ah(e){return sh(Os(qs(e)))}function ih(e){return sh(Cs(Xs(e)))}function sh(e){return{...e,calendar:rl(e.calendar)}}function ch(e){const t=Xg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:fh(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...dh(e.slice(5)),...gh(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function uh(e){const t=Wg.exec(e);return t?(e=>({isoYear:fh(e),isoMonth:parseInt(e[4]),isoDay:1,...gh(e[5])}))(t):void 0}function hh(e){const t=qg.exec(e);return t?(e=>({isoYear:Wd,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...gh(e[3])}))(t):void 0}function lh(e,t){const n=em.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(kf(n));return wu((Ah(e[2])*zf+Ah(e[3])*Kf+Ah(e[4])*$f+mh(e[5]||""))*yh(e[1]))})(n,t):void 0}function fh(e){const t=yh(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(kf(-0));return t*n}function dh(e){const t=Ah(e[3]);return{..._s(mh(e[4]||""))[0],isoHour:Ah(e[1]),isoMinute:Ah(e[2]),isoSecond:60===t?59:t}}function gh(e){let t,n;const r=[];if(e.replace(tm,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(kf(e))}else{if(n)throw new RangeError(kf(e));n=s}return""})),r.length>1&&t)throw new RangeError(kf(e));return{timeZone:n,calendar:r[0]||gd}}function mh(e){return parseInt(e.padEnd(9,"0"))}function Sh(e){return new RegExp(`^${e}$`,"i")}function yh(e){return e&&"+"!==e?-1:1}function Ah(e){return void 0===e?0:parseInt(e)}function ph(e){const t=wh(e);return"number"==typeof t?fu(t):t?(e=>{if(om.test(e))throw new RangeError(vf);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?ji(e).replace(/island|noronha|murdo|rivadavia|urville/,ji):e)))).join("/")})(e):_g}function vh(e){const t=wh(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:_g}function wh(e){const t=lh(e=e.toUpperCase(),1);return void 0!==t?t:e!==_g?rm(e):void 0}function Ih(e,t){return ps(e.epochNanoseconds,t.epochNanoseconds)}function bh(e,t){return ps(e.epochNanoseconds,t.epochNanoseconds)}function Th(e,t){return Mh(e,t)||Eh(e,t)}function Mh(e,t){return Zi(Ls(e),Ls(t))}function Eh(e,t){return Zi(Ns(e),Ns(t))}function Hh(e,t){if(e===t)return 1;const n=Nc(e),r=Nc(t);if(n===r)return 1;try{return vh(n)===vh(r)}catch(e){}}function Ch(e,t,n,r){const o=ac(e,Sc(r),3,5),a=Uh(t.epochNanoseconds,n.epochNanoseconds,...o);return Cc(e?xu(a):a)}function Oh(e,t,n,r,o,a){const i=xh(r.calendar,o.calendar),s=Sc(a),[c,u,h,l]=ac(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=ps(d,f);let m;if(g)if(c<6)m=Uh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!Hh(e,t))throw new RangeError(pf);return e})(r.timeZone,o.timeZone)),a=e(i);m=Yh(a,n,r,o,g,c,s),m=Zc(m,d,c,u,h,l,r,Dc,Ui(Ou,a,n))}else m=Dd;return Cc(n?xu(m):m)}function Dh(e,t,n,r,o){const a=xh(n.calendar,r.calendar),i=Sc(o),[s,c,u,h]=ac(t,i,6),l=Ps(n),f=Ps(r),d=ps(f,l);let g;if(d)if(s<=6)g=Uh(l,f,s,c,u,h);else{const t=e(a);g=Bh(t,n,r,d,s,i),g=Zc(g,f,s,c,u,h,n,Ps,Ui(Du,t))}else g=Dd;return Cc(t?xu(g):g)}function Nh(e,t,n,r,o){const a=xh(n.calendar,r.calendar),i=Sc(o);return kh(t,(()=>e(a)),n,r,...ac(t,i,6,9,6),i)}function _h(e,t,n,r,o){const a=xh(n.calendar,r.calendar),i=Sc(o),s=ac(t,i,9,9,8),c=e(a);return kh(t,(()=>c),_u(c,n),_u(c,r),...s,i)}function kh(e,t,n,r,o,a,i,s,c){const u=Ps(n),h=Ps(r);let l;if(ps(h,u))if(6===o)l=Uh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=Zc(l,h,o,a,i,s,n,Ps,Ui(Nu,e)))}else l=Dd;return Cc(e?xu(l):l)}function Rh(e,t,n,r){const o=Sc(r),[a,i,s,c]=ac(e,o,5,5),u=Kc(Zh(t,n),Uc(i,s),c),h={...Dd,...Wu(u,a)};return Cc(e?xu(h):h)}function Lh(e,t,n,r,o,a){const i=ps(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?jh(n.epochNanoseconds,r.epochNanoseconds,o):Yh(e,t,n,r,i,o,a):Dd}function Ph(e,t,n,r,o){const a=Ps(t),i=Ps(n),s=ps(i,a);return s?r<=6?jh(a,i,r):Bh(e,t,n,s,r,o):Dd}function Yh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...Ru(s,u++*-r),...i},f=vu(e,l),ps(c,f)===-r}const a=Yg(t,e),i=Ri(kd,a),s=Yg(n,e),c=n.epochNanoseconds;let u=0;const h=Zh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(Sf);const d=Ts(As(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...Dd,days:Fh(h,l)}):e.dateUntil(s,c,a,i),...Wu(u)}}function Bh(e,t,n,r,o,a){let i=t,s=Zh(t,n);return Math.sign(s)===-r&&(i=Ru(t,r),s+=Gf*r),{...e.dateUntil(i,n,o,a),...Wu(s)}}function Uh(e,t,n,r,o,a){return{...Dd,...Ju(xc(As(e,t),r,o,a),n)}}function jh(e,t,n){return{...Dd,...Ju(As(e,t),n)}}function Fh(e,t){return Vh(Ls(e),Ls(t))}function Vh(e,t){return Math.trunc((t-e)/Ff)}function Zh(e,t){return Ns(t)-Ns(e)}function xh(e,t){if(!_c(e,t))throw new RangeError(yf);return e}function $h(e){function t(e){return((e,t)=>({...Gh(e,t),o:e.month,day:parseInt(e.day)}))(Es(n,e),r)}const n=im(e),r=ol(e);return{id:e,h:Kh(t),l:zh(t)}}function Kh(e){return Mi((t=>{const n=Ls(t);return e(n)}),WeakMap)}function zh(e){const t=e(0).year-Jd;return Mi((n=>{let r,o=Us(n-t);const a=[],i=[];do{o+=400*Ff}while((r=e(o)).year<=n);do{o+=(1-r.day)*Ff,r.year===n&&(a.push(o),i.push(r.o)),o-=Ff}while((r=e(o)).year>=n);return{i:a.reverse(),u:Pf(i.reverse())}}))}function Gh(e,t){let n,r,o=Jh(e);if(e.era){const i=yd[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Ad[a]||a,r=o,o=ll(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function Jh(e){return parseInt(e.relatedYear||e.year)}function Wh(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function qh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*Ff}function Xh(e){const t=nl(this,e),n=nl(this,e-1),r=t.length;if(r>n.length){const e=dl(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Qh(e){return Vh(qh.call(this,e),qh.call(this,e+1))}function el(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),Vh(n[t-1],o[r-1])}function tl(e){return this.l(e).i.length}function nl(e,t){return Object.keys(e.l(t).u)}function rl(e){if((e=e.toLowerCase())!==gd&&e!==md&&ol(e)!==ol(im(e).resolvedOptions().calendar))throw new RangeError(Af(e));return e}function ol(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function al(e){return this.m(e)[0]}function il(e){return this.m(e)[1]}function sl(e){const[t]=this.v(e);return Vh(this.p(t),Ls(e))+1}function cl(e){const t=sm.exec(e);if(!t)throw new RangeError(lf(e));return[parseInt(t[1]),Boolean(t[2])]}function ul(e,t,n){return e+(t||n&&e>=n?1:0)}function hl(e,t){return e-(t&&e>=t?1:0)}function ll(e,t){return(t+e)*(Math.sign(t)||1)||0}function fl(e){return yd[gl(e)]}function dl(e){return pd[gl(e)]}function gl(e){return ol(e.id||gd)}function ml(e,t,n,r){const o=pl(n,r,hd,[],td);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=wl(o),i=e(o.timeZone);return{epochNanoseconds:pu(t(i),{...r,...a},void 0!==o.offset?th(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...Ud}}function Sl(e,t,n){const r=pl(e,t,hd,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function yl(e,t,n,r){const o=pl(e,t,cd,r);return e.yearMonthFromFields(o,n)}function Al(e,t,n,r){const o=pl(e,n,hd,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Wd),e.monthDayFromFields(o,r)}function pl(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return vl(t,[...e.fields(n),...o].sort(),r)}function vl(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(tf(r));if("constructor"===r||"__proto__"===r)throw new RangeError(ef(r));let t=e[r];if(void 0!==t)i=1,lm[r]&&(t=lm[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(Ql(r));o[r]=dd[r]}a=r}if(r&&!i)throw new TypeError(nf(t));return o}function wl(e,t){return tc(fm({...dd,...e}),t)}function Il(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=vl(t,i,a);const c=vl(n,i);return s=e.mergeFields(s,c),vl(s,i,[])}function bl(e,t){const n=pl(e,t,fd);return e.monthDayFromFields(n)}function Tl(e,t,n){const r=pl(e,t,ud);return e.yearMonthFromFields(r,n)}function Ml(e,t,n,r,o){t=Ri(n=e.fields(n),t),r=vl(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=vl(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function El(e,t){let{era:n,eraYear:r,year:o}=t;const a=fl(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(sf);if(!a)throw new RangeError(af);const e=a[n];if(void 0===e)throw new RangeError(uf(n));const t=ll(r,e);if(void 0!==o&&o!==t)throw new RangeError(cf);o=t}else if(void 0===o)throw new TypeError(hf(a));return o}function Hl(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=cl(t);let s=ul(a,i,o);if(i){const t=dl(e);if(void 0===t)throw new RangeError(mf);if(t>0){if(s>t)throw new RangeError(mf);if(void 0===o){if(1===r)throw new RangeError(mf);s--}}else{if(s!==-t)throw new RangeError(mf);if(void 0===o&&1===r)throw new RangeError(mf)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(ff);o=t,r=1}else if(void 0===o)throw new TypeError(df);return Ii("month",o,1,e.j(n),r)}function Cl(e,t,n,r,o){return wi(t,"day",1,e.N(r,n),o)}function Ol(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function Dl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gd;return Ic(e.epochNanoseconds,t,n)}function Nl(e,t){return bc(Yg(t,e))}function _l(e,t){return Tc(Yg(t,e))}function kl(e,t){return Hc(Yg(t,e))}function Rl(e,t){return{...e,calendar:t}}function Ll(e,t){if(e===t)return e;const n=Nc(e),r=Nc(t);if(n===r||n===gd)return t;if(r===gd)return e;throw new RangeError(yf)}function Pl(e,t){return n=>n===gd?e:n===md||n===Sd?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),am(n))}function Yl(e,t,n){const r=new Set(n);return o=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(o=Li(r,o),e)||Object.assign(o,t),n&&(o.timeZone=_g,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function Bl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ul;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fm;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...jl(e,h,s)]}}function Ul(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(Lf);n.timeZone=e}return new Fd(t,n)}function jl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==gd)&&e!==t)throw new RangeError(yf)})(Nc(e.calendar),t.calendar,o),r(e,t))))}function Fl(e){const t=Vl();return Fs(t,e.getOffsetNanosecondsFor(t))}function Vl(){return Is(Date.now(),xf)}function Zl(){return Jm||(Jm=(new Fd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?La:u?La[s]||Ua(s,{}):La[s]&&La[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Pa(n,r))&&i.value:n[r],!Fa(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;ja(a,o)}(e.sham||o&&o.sham)&&Ya(a,"sham",!0),Ba(n,r,a,e)}})({target:"Array",proto:!0,forced:ot((function(){return!Array(1).includes()}))},{includes:function(e){return pi(this,e,arguments.length>1?arguments[1]:void 0)}}),vi("includes");const xl=(e,t)=>`Non-integer ${e}: ${t}`,$l=(e,t)=>`Non-positive ${e}: ${t}`,Kl=(e,t)=>`Non-finite ${e}: ${t}`,zl=e=>`Cannot convert bigint to ${e}`,Gl=e=>`Invalid bigint: ${e}`,Jl="Cannot convert Symbol to string",Wl="Invalid object",ql=(e,t,n,r,o)=>o?ql(e,o[t],o[n],o[r]):Xl(e,t)+`; must be between ${n}-${r}`,Xl=(e,t)=>`Invalid ${e}: ${t}`,Ql=e=>`Missing ${e}`,ef=e=>`Invalid field ${e}`,tf=e=>`Duplicate field ${e}`,nf=e=>"No valid fields: "+e.join(),rf=(e,t,n)=>Xl(e,t)+"; must be "+Object.keys(n).join(),of="Invalid calling context",af="Forbidden era/eraYear",sf="Mismatching era/eraYear",cf="Mismatching year/eraYear",uf=e=>`Invalid era: ${e}`,hf=e=>"Missing year"+(e?"/era/eraYear":""),lf=e=>`Invalid monthCode: ${e}`,ff="Mismatching month/monthCode",df="Missing month/monthCode",gf="Cannot guess year",mf="Invalid leap month",Sf="Invalid protocol results",yf="Mismatching Calendars",Af=e=>`Invalid Calendar: ${e}`,pf="Mismatching TimeZones",vf="Forbidden ICU TimeZone",wf="Out-of-bounds offset",If="Out-of-bounds TimeZone gap",bf="Invalid TimeZone offset",Tf="Ambiguous offset",Mf="Out-of-bounds date",Ef="Out-of-bounds duration",Hf="Cannot mix duration signs",Cf="Missing relativeTo",Of="Cannot use large units",Df="Required smallestUnit or largestUnit",Nf="smallestUnit > largestUnit",_f=e=>`Cannot parse: ${e}`,kf=e=>`Invalid substring: ${e}`,Rf=e=>`Cannot format ${e}`,Lf="Cannot specify TimeZone",Pf=Ui(_i,((e,t)=>t)),Yf=Ui(_i,((e,t,n)=>n)),Bf=Ui(Vi,2),Uf={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},jf=Object.keys(Uf),Ff=864e5,Vf=1e3,Zf=1e3,xf=1e6,$f=1e9,Kf=6e10,zf=36e11,Gf=864e11,Jf=[1,Zf,xf,$f,Kf,zf,Gf],Wf=jf.slice(0,6),qf=Fi(Wf),Xf=["offset"],Qf=["timeZone"],ed=Wf.concat(Xf),td=ed.concat(Qf),nd=["era","eraYear"],rd=nd.concat(["year"]),od=["year"],ad=["monthCode"],id=["month"].concat(ad),sd=["day"],cd=id.concat(od),ud=ad.concat(od),hd=sd.concat(cd),ld=sd.concat(id),fd=sd.concat(ad),dd=Yf(Wf,0),gd="iso8601",md="gregory",Sd="japanese",yd={[md]:{bce:-1,ce:0},[Sd]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Ad={bc:"bce",ad:"ce"},pd={chinese:13,dangi:13,hebrew:-6},vd=Ui(as,"string"),wd=Ui(as,"boolean"),Id=Ui(as,"number"),bd=Ui(as,"function"),Td=jf.map((e=>e+"s")),Md=Fi(Td),Ed=Td.slice(0,6),Hd=Td.slice(6),Cd=Hd.slice(1),Od=Pf(Td),Dd=Yf(Td,0),Nd=Yf(Ed,0),_d=Ui(Bi,Td),kd=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Rd=["isoDay","isoMonth","isoYear"],Ld=kd.concat(Rd),Pd=Fi(Rd),Yd=Fi(kd),Bd=Fi(Ld),Ud=Yf(Yd,0),jd=Ui(Bi,Ld),Fd=Intl.DateTimeFormat,Vd="en-GB",Zd=1e8,xd=Zd*Ff,$d=[Zd,0],Kd=[-Zd,0],zd=275760,Gd=-271821,Jd=1970,Wd=1972,qd=12,Xd=Us(1868,9,8),Qd=Mi(Ws,WeakMap),eg="smallestUnit",tg="unit",ng="roundingIncrement",rg="fractionalSecondDigits",og="relativeTo",ag={constrain:0,reject:1},ig=Object.keys(ag),sg={compatible:0,reject:1,earlier:2,later:3},cg={reject:0,use:1,prefer:2,ignore:3},ug={auto:0,never:1,critical:2,always:3},hg={auto:0,never:1,critical:2},lg={auto:0,never:1},fg={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},dg=Ui(Ac,eg),gg=Ui(Ac,"largestUnit"),mg=Ui(Ac,tg),Sg=Ui(pc,"overflow",ag),yg=Ui(pc,"disambiguation",sg),Ag=Ui(pc,"offset",cg),pg=Ui(pc,"calendarName",ug),vg=Ui(pc,"timeZoneName",hg),wg=Ui(pc,"offset",lg),Ig=Ui(pc,"roundingMode",fg),bg="PlainYearMonth",Tg="PlainMonthDay",Mg="PlainDate",Eg="PlainDateTime",Hg="PlainTime",Cg="ZonedDateTime",Og="Instant",Dg="Duration",Ng=[Math.floor,e=>Wi(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Wi(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Wi(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=>Wi(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],_g="UTC",kg=5184e3,Rg=Bs(1847),Lg=Bs((new Date).getUTCFullYear()+10),Pg=/0+$/,Yg=Mi(Au,WeakMap),Bg=2**32-1,Ug=Mi((e=>{const t=wh(e);return"object"==typeof t?new Fg(t):new jg(t||0)}));class jg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[Ys(e,this.R)]}B(){}}class Fg{constructor(e){this.q=(e=>{function t(e){const t=xi(e,a,i),[s,c]=eh(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=Mi(e),o=Mi(Qu);let a=Rg,i=Lg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=xi(e,a,i);let[c,u]=eh(s);const h=kg*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((Zi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Es(e,t*Vf);return Bs(Jh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(ks(e))*$f}getPossibleInstantsFor(e){const[t,n]=[Bs((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*xf+r.isoMicrosecond*Zf+r.isoNanosecond];var r;return this.q.J(t).map((e=>Ds(ys(Is(e,$f),n))))}B(e,t){const[n,r]=Rs(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Is(o,$f)}}const Vg="([+−-])",Zg="(?:[.,](\\d{1,9}))?",xg=`(?:(?:${Vg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,$g="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Zg+")?)?",Kg=Vg+$g,zg=xg+"-?(\\d{2})(?:[T ]"+$g+"(Z|"+Kg+")?)?",Gg="\\[(!?)([^\\]]*)\\]",Jg=`((?:${Gg}){0,9})`,Wg=Sh(xg+Jg),qg=Sh("(?:--)?(\\d{2})-?(\\d{2})"+Jg),Xg=Sh(zg+Jg),Qg=Sh("T?"+$g+"(?:"+Kg+")?"+Jg),em=Sh(Kg),tm=new RegExp(Gg,"g"),nm=Sh(`${Vg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Zg}H)?(?:(\\d+)${Zg}M)?(?:(\\d+)${Zg}S)?)?`),rm=Mi((e=>new Fd(Vd,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),om=/^(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$/,am=Mi($h),im=Mi((e=>new Fd(Vd,{calendar:e,timeZone:_g,era:"short",year:"numeric",month:"short",day:"numeric"}))),sm=/^M(\d{2})(L?)$/,cm={era:us,eraYear:fs,year:fs,month:gs,monthCode:us,day:gs},um=Yf(Wf,fs),hm=Yf(Td,ds),lm=Object.assign({},cm,um,hm,{offset:us}),fm=Ui(ki,Wf,kd),dm={dateAdd(e,t,n){const r=nc(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Gu(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=ul(t,r,e.P(a)),i=Ii("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ii("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=Ls(e)}return o+=(7*s+c)*Ff,Cs(Vs(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=Fh({...e,...Ud},{...t,...Ud});return 7===n&&([r,o]=zi(o,7)),{...Dd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-ul(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...Dd,years:a,months:i,days:s}},dateFromFields(e,t){const n=nc(t),r=El(this,e),o=Hl(this,e,r,n),a=Cl(this,e,o,r,n);return Tc(Cs(this.L(r,o,a)),this.id||gd)},yearMonthFromFields(e,t){const n=nc(t),r=El(this,e),o=Hl(this,e,r,n);return Mc(Hs(this.L(r,o,1)),this.id||gd)},monthDayFromFields(e,t){const n=nc(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=cl(o),l=bi(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(gf);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(ff);r&&(h=Ii("month",h,1,qd,1),l=Ii("day",l,1,$s(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Wd:El(this,e),h=Hl(this,e,u,n),l=Cl(this,e,h,u,n);const t=this.P(u);c=h===t,s=hl(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(gf);[u,h]=o}return Ec(Cs(this.L(u,h,l)),this.id||gd)},fields(e){return fl(this)&&e.includes("year")?[...e,...nd]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Ol(n,t,id),fl(this)&&(Ol(n,t,rd),this.id===Sd&&Ol(n,t,ld,nd)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:sl,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+Bf(e)+(t?"L":""))(r,o)},dayOfWeek:Gs,daysInWeek:()=>7},gm={dayOfYear:sl,v:Zs,p:Us},mm=Object.assign({},gm,{weekOfYear:al,yearOfWeek:il,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Ks(f+e),r=e||1,o=t(Ki(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=Gs(e),a=this.dayOfYear(e),i=Ki(o-1,7),s=a-1,c=Ki(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),Sm={dayOfYear:sl,v:Wh,p:qh,weekOfYear:al,yearOfWeek:il,m:()=>[]},ym=Pl(Object.assign({},dm,mm,{v:Zs,nn(e){return this.id===md?Js(e):this.id===Sd?Qd(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Wd,e]},K:zs,P(){},j:xs,V:e=>e*qd,N:$s,X:Ks,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:Us,G:(e,t,n)=>(e+=Gi(n,qd),(t+=Ji(n,qd))<1?(e--,t+=qd):t>qd&&(e++,t-=qd),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},dm,Sm,{v:Wh,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Xh.call(this,e);return[hl(t,n),n===t]},k(e,t,n){let[r,o,a]=Wh.call(this,{isoYear:Wd,isoMonth:qd,isoDay:31});const i=Xh.call(this,r),s=o===i;1===(Zi(e,hl(o,i))||Zi(Number(t),Number(s))||Zi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Xh.call(this,a),s=ul(e,t,i);if(t===(s===i)&&n<=el.call(this,a,s))return[a,s]}},K(e){const t=Qh.call(this,e);return t>Qh.call(this,e-1)&&t>Qh.call(this,e+1)},P:Xh,j:tl,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=tl.call(this,e+o);return a},N:el,X:Qh,L(e,t,n){return Vs(qh.call(this,e,t,n))},p:qh,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Mf);if(n<0)for(;t<1;)t+=tl.call(this,--e);else{let n;for(;t>(n=tl.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),Am="numeric",pm=["timeZoneName"],vm={month:Am,day:Am},wm={year:Am,month:Am},Im=Object.assign({},wm,{day:Am}),bm={hour:Am,minute:Am,second:Am},Tm=Object.assign({},Im,bm),Mm=Object.assign({},Tm,{timeZoneName:"short"}),Em=Object.keys(wm),Hm=Object.keys(vm),Cm=Object.keys(Im),Om=Object.keys(bm),Dm=["dateStyle"],Nm=Em.concat(Dm),_m=Hm.concat(Dm),km=Cm.concat(Dm,["weekday"]),Rm=Om.concat(["dayPeriod","timeStyle"]),Lm=km.concat(Rm),Pm=Lm.concat(pm),Ym=pm.concat(Rm),Bm=pm.concat(km),Um=pm.concat(["day","weekday"],Rm),jm=pm.concat(["year","weekday"],Rm),Fm={},Vm=[Yl(Lm,Tm),Oc],Zm=[Yl(Pm,Mm),Oc,0,(e,t)=>{const n=Nc(e.timeZone);if(t&&Nc(t.timeZone)!==n)throw new RangeError(pf);return n}],xm=[Yl(Lm,Tm,pm),Ls],$m=[Yl(km,Im,Ym),Ls],Km=[Yl(Rm,bm,Bm),e=>Ns(e)/xf],zm=[Yl(Nm,wm,Um),Ls,1],Gm=[Yl(_m,vm,jm),Ls,1];let Jm;function Wm(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(of);$S(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Ei(t))}function s(t){const n=xS(t);if(!n||n.branding!==e)throw new TypeError(of);return n}return Object.defineProperties(a.prototype,{...Ci(Ni(i,n)),...Hi(Ni(i,r)),...Oi("Temporal."+e)}),Object.defineProperties(a,{...Hi(o),...Ei(e)}),[a,e=>{const t=Object.create(a.prototype);return $S(t,e),t},s]}function qm(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function Xm(e){if(xS(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Qm(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=xS(n)||{},{branding:i}=a,s=i===Mg||t.includes(i)?a:mS(n);return o[r](s)};return n}function eS(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?ym(r):(o=r,Object.assign(Object.create(qS),{C:o})))[n](e);var r,o};return t}function tS(){throw new TypeError("Cannot use valueOf")}function nS(e){let{calendar:t}=e;return"string"==typeof t?new Jy(t):t}function rS(e,t){if(t=Sc(t),Ti(e)){const n=xS(e);if(n&&n.branding===Tg)return nc(t),n;const r=wS(e);return Al(Yy(r||gd),!r,e,t)}const n=function(e,t){const n=hh(vd(t));if(n)return rh(n),Ec(Xs(n));const r=nh(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Ec(Cs(a.L(l,f,c)),o)}(ym,e);return nc(t),n}function oS(e,t,n){return wu(ts(t.call(e,cy(wc(n)))))}function aS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ay;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Ui(t[o],e,bd(e[o]));return r}function iS(e,t){return"string"==typeof e?Ug(e):aS(e,t)}function sS(e){return iS(e,iy)}function cS(e){if(Ti(e)){const t=xS(e);if(t)switch(t.branding){case Og:return t;case Cg:return wc(t.epochNanoseconds)}}return function(e){const t=ch(e=us(e));if(!t)throw new RangeError(_f(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(_f(e));n=th(t.offset)}return t.timeZone&&lh(t.timeZone,1),wc(Ys(qs(t),n))}(e)}function uS(e,t,n){const r=t.B(cS(n).epochNanoseconds,e);return r?cy(wc(r)):null}function hS(e){return Ti(e)?(xS(e)||{}).timeZone||fy(e):(e=>ph(function(e){const t=ch(e);return t&&(t.timeZone||t.O&&_g||t.offset)||e}(vd(e))))(e)}function lS(e,t){if(Ti(e)){const n=xS(e)||{};switch(n.branding){case Hg:return nc(t),n;case Eg:return nc(t),Hc(n);case Cg:return nc(t),kl(sS,n)}return function(e,t){const n=nc(t);return Hc(wl(vl(e,qf,[],1),n))}(e,t)}return nc(t),function(e){let t,n=(e=>{const t=Qg.exec(e);return t?(gh(t[10]),dh(t)):void 0})(vd(e));if(!n){if(n=ch(e),!n)throw new RangeError(_f(e));if(!n.I)throw new RangeError(_f(e));if(n.O)throw new RangeError(kf("Z"));rh(n)}if((t=uh(e))&&Qs(t))throw new RangeError(_f(e));if((t=hh(e))&&Qs(t))throw new RangeError(_f(e));return Hc(tc(n,1))}(e)}function fS(e){return void 0===e?void 0:lS(e)}function dS(e,t){if(t=Sc(t),Ti(e)){const n=xS(e);return n&&n.branding===bg?(nc(t),n):yl(Ly(vS(e)),e,t)}const n=function(e,t){const n=uh(vd(t));if(n)return rh(n),Mc(Hs(Xs(n)));const r=nh(t);return Mc(_u(e(r.calendar),r))}(ym,e);return nc(t),n}function gS(e,t){if(t=Sc(t),Ti(e)){const n=xS(e)||{};switch(n.branding){case Eg:return nc(t),n;case Mg:return nc(t),bc({...n,...Ud});case Cg:return nc(t),Nl(sS,n)}return function(e,t,n){const r=pl(e,t,hd,[],Wf),o=nc(n);return bc(Os({...e.dateFromFields(r,yc(n,o)),...wl(r,o)}))}(Py(vS(e)),e,t)}const n=function(e){const t=ch(vd(e));if(!t||t.O)throw new RangeError(_f(e));return bc(ah(t))}(e);return nc(t),n}function mS(e,t){if(t=Sc(t),Ti(e)){const n=xS(e)||{};switch(n.branding){case Mg:return nc(t),n;case Eg:return nc(t),Tc(n);case Cg:return nc(t),_l(sS,n)}return Sl(Py(vS(e)),e,t)}const n=nh(e);return nc(t),n}function SS(e,t,n){return es(t.call(e,wy(Tc(n,e))))}function yS(e){return t=>"string"==typeof t?ym(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Ui(t[o],e,e[o]);return r})(t,e)}function AS(e){if(Ti(e)){const t=xS(e);return t&&t.branding===Dg?t:function(e){const t=vl(e,Md);return Cc(Ku({...Dd,...t}))}(e)}return function(e){const t=(e=>{const t=nm.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=$i(o,Jf[a])),void 0!==e){if(r)throw new RangeError(kf(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(kf(e));return t})(e),n=1,t&&(o=mh(t)*(Jf[a]/$f),r=1)}return i+s}let n=0,r=0,o=0,a={...Di(Td,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Xi(o,2,Td)};if(!n)throw new RangeError(nf(Td));return yh(e[1])<0&&(a=xu(a)),a})(t):void 0})(vd(e));if(!t)throw new RangeError(_f(e));return Cc(Ku(t))}(e)}function pS(e){if(void 0!==e){if(Ti(e)){const t=xS(e)||{};switch(t.branding){case Cg:case Mg:return t;case Eg:return Tc(t)}const n=vS(e);return{...ml(hS,iS,Py(n),e),calendar:n}}return function(e){const t=ch(vd(e));if(!t)throw new RangeError(_f(e));if(t.timeZone)return oh(t,t.offset?th(t.offset):void 0);if(t.O)throw new RangeError(_f(e));return ih(t)}(e)}}function vS(e){return wS(e)||gd}function wS(e){const{calendar:t}=e;if(void 0!==t)return IS(t)}function IS(e){return Ti(e)?(xS(e)||{}).calendar||Wy(e):(e=>rl(function(e){const t=ch(e)||uh(e)||hh(e);return t?t.calendar:e}(vd(e))))(e)}function bS(e,t){if(t=Sc(t),Ti(e)){const n=xS(e);if(n&&n.branding===Cg)return rc(t),n;const r=vS(e);return function(e,t,n,r,o,a){const i=pl(n,o,hd,Qf,td),s=e(i.timeZone),[c,u,h]=rc(a),l=n.dateFromFields(i,yc(a,c)),f=wl(i,c);return Ic(pu(t(s),{...l,...f},void 0!==i.offset?th(i.offset):void 0,u,h),s,r)}(hS,iS,Py(r),r,e,t)}return function(e,t){const n=ch(vd(e));if(!n||!n.timeZone)throw new RangeError(_f(e));const{offset:r}=n,o=r?th(r):void 0,[,a,i]=rc(t);return oh(n,o,a,i)}(e,t)}function TS(e){return Ni((e=>t=>e(MS(t))),e)}function MS(e){return Yg(e,sS)}function ES(){const e=Fd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(Fd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);nA.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Fd(e,t),r=n.resolvedOptions(),o=r.locale,a=Ri(Object.keys(t),r),i=Mi(OS),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=xS(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.U=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&HS(e);"function"==typeof n.value?n.value="constructor"===e?r:o||CS(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function HS(e){return function(){const t=nA.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function CS(e){return function(){return nA.get(this).U[e](...arguments)}}function OS(e){const t=DS[e];if(!t)throw new TypeError(Rf(e));return Bl(t,Mi(Ul))}const DS={Instant:Vm,PlainDateTime:xm,PlainDate:$m,PlainTime:Km,PlainYearMonth:zm,PlainMonthDay:Gm},NS=Bl(Vm),_S=Bl(Zm),kS=Bl(xm),RS=Bl($m),LS=Bl(Km),PS=Bl(zm),YS=Bl(Gm),BS={era:function(e){if(void 0!==e)return vd(e)},eraYear:Qi,year:ts,month:es,daysInMonth:es,daysInYear:es,inLeapYear:wd,monthsInYear:es},US={monthCode:vd},jS={day:es},FS={dayOfWeek:es,dayOfYear:es,weekOfYear:function(e){if(void 0!==e)return es(e)},yearOfWeek:Qi,daysInWeek:es},VS=Object.assign({},BS,US,jS,FS),ZS=new WeakMap,xS=ZS.get.bind(ZS),$S=ZS.set.bind(ZS),KS={...Qm(BS,[bg]),...Qm(FS,[]),...Qm(US,[bg,Tg]),...Qm(jS,[Tg])},zS=eS(VS),GS=eS({...BS,...US}),JS=eS({...US,...jS}),WS={calendarId:e=>Nc(e.calendar)},qS=Ni(((e,t)=>function(n){const{C:r}=this;return e(r[t](wy(Tc(n,r))))}),VS),XS=_i((e=>t=>t[e]),Td.concat("sign")),QS=_i(((e,t)=>e=>e[kd[t]]),Wf),ey={epochSeconds:function(e){return ks(e.epochNanoseconds)},epochMilliseconds:Oc,epochMicroseconds:function(e){return bs(e.epochNanoseconds,Zf)},epochNanoseconds:function(e){return bs(e.epochNanoseconds)}},ty=Ui(Li,new Set(["branding"])),[ny,ry,oy]=Wm(Tg,Ui((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gd,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Wd;const a=fs(t),i=fs(n),s=e(r);return Ec(Cs(Xs({isoYear:fs(o),isoMonth:a,isoDay:i})),s)}),IS),{...WS,...JS},{getISOFields:ty,getCalendar:nS,with(e,t,n){return ry(function(e,t,n,r,o){const a=Sc(o);return((e,t,n,r)=>{const o=Il(e,t,n,hd);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(jy,e,this,Xm(t),n))},equals:(e,t)=>function(e,t){return!Mh(e,t)&&_c(e.calendar,t.calendar)}(e,rS(t)),toPlainDate(e,t){return wy(function(e,t,n,r){return((e,t,n)=>Ml(e,t,fd,os(n),od))(e(t.calendar),n,r)}(Uy,e,this,t))},toLocaleString(e,t,n){const[r,o]=YS(t,n,e);return r.format(o)},toString:nu,toJSON:e=>nu(e),valueOf:tS},{from:(e,t)=>ry(rS(e,t))}),ay={getOffsetNanosecondsFor:oS,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,py(bc(n,gd)))].map((e=>uy(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(ps),Iu(Ts(As(r[0],r[o-1])))),r}},iy={getOffsetNanosecondsFor:oS},[sy,cy,uy]=Wm(Og,(function(e){return wc(Ds(ws(hs(e))))}),ey,{add:(e,t)=>cy(bu(0,e,AS(t))),subtract:(e,t)=>cy(bu(1,e,AS(t))),until:(e,t,n)=>Ky(Ch(0,e,cS(t),n)),since:(e,t,n)=>Ky(Ch(1,e,cS(t),n)),round:(e,t)=>cy(function(e,t){const[n,r,o]=ic(t,5,1);return wc(xc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Ih(e,t)}(e,cS(t)),toZonedDateTime(e,t){const n=os(t);return Xy(Dl(e,hS(n.timeZone),IS(n.calendar)))},toZonedDateTimeISO:(e,t)=>Xy(Dl(e,hS(t))),toLocaleString(e,t,n){const[r,o]=NS(t,n,e);return r.format(o)},toString:(e,t)=>qc(hS,sS,e,t),toJSON:e=>qc(hS,sS,e),valueOf:tS},{from:e=>cy(cS(e)),fromEpochSeconds:e=>cy(function(e){return wc(Ds(Is(e,$f)))}(e)),fromEpochMilliseconds:e=>cy(function(e){return wc(Ds(Is(e,xf)))}(e)),fromEpochMicroseconds:e=>cy(function(e){return wc(Ds(ws(hs(e),Zf)))}(e)),fromEpochNanoseconds:e=>cy(function(e){return wc(Ds(ws(hs(e))))}(e)),compare:(e,t)=>Ih(cS(e),cS(t))}),[hy,ly]=Wm("TimeZone",(e=>{const t=function(e){return ph(vd(e))}(e);return{branding:"TimeZone",id:t,F:Ug(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(gS(t)).map((e=>cy(wc(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(cS(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=cS(t).epochNanoseconds;return fu(aS(this,iy).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gd;const r=cS(t).epochNanoseconds,o=aS(this,iy).getOffsetNanosecondsFor(r);return py(bc(Fs(r,o),IS(n)))},getInstantFor(e,t,n){const r=gS(t),o=oc(n),a=aS(this);return cy(wc(vu(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return uS(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return uS(-1,n,t)},equals(e,t){return!!Hh(this,hS(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=hS(e);return"string"==typeof t?new hy(t):t}}),fy=qm(Object.keys(ay)),[dy,gy]=Wm(Hg,(function(){return Hc(tc(Ni(fs,Di(kd,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),QS,{getISOFields:ty,with(e,t,n){return gy(function(e,t,n){return Hc(((e,t,n)=>{const r=nc(n);return wl({...Ri(qf,e),...vl(t,qf)},r)})(e,t,n))}(this,Xm(t),n))},add:(e,t)=>gy(Cu(0,e,AS(t))),subtract:(e,t)=>gy(Cu(1,e,AS(t))),until:(e,t,n)=>Ky(Rh(0,e,lS(t),n)),since:(e,t,n)=>Ky(Rh(1,e,lS(t),n)),round:(e,t)=>gy(function(e,t){const[n,r,o]=ic(t,5);var a;return Hc((a=o,Yc(e,Uc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Eh(e,t)}(e,lS(t)),toZonedDateTime:(e,t)=>Xy(function(e,t,n,r,o){const a=os(o),i=t(a.plainDate),s=e(a.timeZone);return Ic(vu(n(s),{...i,...r}),s,i.calendar)}(hS,mS,iS,e,t)),toPlainDateTime:(e,t)=>py(function(e,t){return bc(Os({...e,...t}))}(e,mS(t))),toLocaleString(e,t,n){const[r,o]=LS(t,n,e);return r.format(o)},toString:ru,toJSON:e=>ru(e),valueOf:tS},{from:(e,t)=>gy(lS(e,t)),compare:(e,t)=>Eh(lS(e),lS(t))}),[my,Sy,yy]=Wm(bg,Ui((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gd,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=fs(t),i=fs(n),s=e(r);return Mc(Hs(Xs({isoYear:a,isoMonth:i,isoDay:fs(o)})),s)}),IS),{...WS,...GS},{getISOFields:ty,getCalendar:nS,with(e,t,n){return Sy(function(e,t,n,r,o){const a=Sc(o);return Mc(((e,t,n,r)=>{const o=Il(e,t,n,cd);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(By,e,this,Xm(t),n))},add:(e,t,n)=>Sy(Hu(Zy,0,e,AS(t),n)),subtract:(e,t,n)=>Sy(Hu(Zy,1,e,AS(t),n)),until:(e,t,n)=>Ky(_h(xy,0,e,dS(t),n)),since:(e,t,n)=>Ky(_h(xy,1,e,dS(t),n)),equals:(e,t)=>function(e,t){return!Mh(e,t)&&_c(e.calendar,t.calendar)}(e,dS(t)),toPlainDate(e,t){return wy(function(e,t,n,r){return((e,t,n)=>Ml(e,t,ud,os(n),sd))(e(t.calendar),n,r)}(Uy,e,this,t))},toLocaleString(e,t,n){const[r,o]=PS(t,n,e);return r.format(o)},toString:tu,toJSON:e=>tu(e),valueOf:tS},{from:(e,t)=>Sy(dS(e,t)),compare:(e,t)=>Mh(dS(e),dS(t))}),[Ay,py]=Wm(Eg,Ui((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:gd;return bc(Os(qs(Ni(fs,Di(Ld,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),IS),{...WS,...zS,...QS},{getISOFields:ty,getCalendar:nS,with(e,t,n){return py(function(e,t,n,r,o){const a=Sc(o);return bc(((e,t,n,r)=>{const o=Il(e,t,n,hd,Wf),a=nc(r);return Os({...e.dateFromFields(o,yc(r,a)),...wl(o,a)})})(e(t.calendar),n,r,a))}(Uy,e,this,Xm(t),n))},withCalendar:(e,t)=>py(Rl(e,IS(t))),withPlainDate:(e,t)=>py(function(e,t){return bc({...e,...t},Ll(e.calendar,t.calendar))}(e,mS(t))),withPlainTime:(e,t)=>py(function(e){return bc({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ud})}(e,fS(t))),add:(e,t,n)=>py(Mu(Fy,0,e,AS(t),n)),subtract:(e,t,n)=>py(Mu(Fy,1,e,AS(t),n)),until:(e,t,n)=>Ky(Dh(Vy,0,e,gS(t),n)),since:(e,t,n)=>Ky(Dh(Vy,1,e,gS(t),n)),round:(e,t)=>py(function(e,t){return bc(Lc(e,...ic(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Th(e,t)&&_c(e.calendar,t.calendar)}(e,gS(t)),toZonedDateTime:(e,t,n)=>Xy(function(e,t,n,r){const o=((e,t,n,r)=>{const o=oc(r);return vu(e(t),n,o)})(e,n,t,r);return Ic(Ds(o),n,t.calendar)}(iS,e,hS(t),n)),toPlainDate:e=>wy(Tc(e)),toPlainTime:e=>gy(Hc(e)),toPlainYearMonth(e){return Sy(function(e,t,n){const r=e(t.calendar);return Mc({...t,...Tl(r,n)})}(Ly,e,this))},toPlainMonthDay(e){return ry(function(e,t,n){return bl(e(t.calendar),n)}(Yy,e,this))},toLocaleString(e,t,n){const[r,o]=kS(t,n,e);return r.format(o)},toString:Qc,toJSON:e=>Qc(e),valueOf:tS},{from:(e,t)=>py(gS(e,t)),compare:(e,t)=>Th(gS(e),gS(t))}),[vy,wy,Iy]=Wm(Mg,Ui((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:gd;return Tc(Cs(Xs(Ni(fs,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),IS),{...WS,...zS},{getISOFields:ty,getCalendar:nS,with(e,t,n){return wy(function(e,t,n,r,o){const a=Sc(o);return((e,t,n,r)=>{const o=Il(e,t,n,hd);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(Uy,e,this,Xm(t),n))},withCalendar:(e,t)=>wy(Rl(e,IS(t))),add:(e,t,n)=>wy(Eu(Fy,0,e,AS(t),n)),subtract:(e,t,n)=>wy(Eu(Fy,1,e,AS(t),n)),until:(e,t,n)=>Ky(Nh(Vy,0,e,mS(t),n)),since:(e,t,n)=>Ky(Nh(Vy,1,e,mS(t),n)),equals:(e,t)=>function(e,t){return!Mh(e,t)&&_c(e.calendar,t.calendar)}(e,mS(t)),toZonedDateTime(e,t){const n=!Ti(t)||t instanceof hy?{timeZone:t}:t;return Xy(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):Ud;return Ic(vu(n(a),{...r,...s}),a,r.calendar)}(hS,lS,iS,e,n))},toPlainDateTime:(e,t)=>py(function(e){return bc(Os({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ud}))}(e,fS(t))),toPlainYearMonth(e){return Sy(function(e,t,n){return Tl(e(t.calendar),n)}(Ly,e,this))},toPlainMonthDay(e){return ry(function(e,t,n){return bl(e(t.calendar),n)}(Yy,e,this))},toLocaleString(e,t,n){const[r,o]=RS(t,n,e);return r.format(o)},toString:eu,toJSON:e=>eu(e),valueOf:tS},{from:(e,t)=>wy(mS(e,t)),compare:(e,t)=>Mh(mS(e),mS(t))}),by={fields:(e,t,n)=>[...t.call(e,n)]},Ty=Object.assign({dateFromFields:(e,t,n,r)=>Iy(t.call(e,Object.assign(Object.create(null),n),r))},by),My=Object.assign({yearMonthFromFields:(e,t,n,r)=>yy(t.call(e,Object.assign(Object.create(null),n),r))},by),Ey=Object.assign({monthDayFromFields:(e,t,n,r)=>oy(t.call(e,Object.assign(Object.create(null),n),r))},by),Hy={mergeFields:(e,t,n,r)=>os(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},Cy=Object.assign({},Ty,Hy),Oy=Object.assign({},My,Hy),Dy=Object.assign({},Ey,Hy),Ny={dateAdd:(e,t,n,r,o)=>Iy(t.call(e,wy(Tc(n,e)),Ky(Cc(r)),o))},_y=Object.assign({},Ny,{dateUntil:(e,t,n,r,o,a)=>zy(t.call(e,wy(Tc(n,e)),wy(Tc(r,e)),Object.assign(Object.create(null),a,{largestUnit:jf[o]})))}),ky=Object.assign({},Ny,{day:SS}),Ry=Object.assign({},_y,{day:SS}),Ly=yS(My),Py=yS(Ty),Yy=yS(Ey),By=yS(Oy),Uy=yS(Cy),jy=yS(Dy),Fy=yS(Ny),Vy=yS(_y),Zy=yS(ky),xy=yS(Ry),[$y,Ky,zy]=Wm(Dg,(function(){return Cc(Ku(Ni(ds,Di(Td,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...XS,blank:function(e){return!e.sign}},{with:(e,t)=>Ky(function(e,t){return Cc((n=e,r=t,Ku({...n,...vl(r,Md)})));var n,r}(e,t)),negated:e=>Ky(Zu(e)),abs:e=>Ky(function(e){return-1===e.sign?Zu(e):e}(e)),add:(e,t,n)=>Ky(Vu(pS,Vy,iS,0,e,AS(t),n)),subtract:(e,t,n)=>Ky(Vu(pS,Vy,iS,1,e,AS(t),n)),round:(e,t)=>Ky(function(e,t,n,r,o){const a=Xu(r),[i,s,c,u,h]=((e,t,n)=>{e=mc(e,eg);let r=gg(e);const o=n(e[og]);let a=lc(e);const i=Ig(e,7);let s=dg(e);if(void 0===r&&void 0===s)throw new RangeError(Df);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),vc(r,s),a=fc(a,s,1),[r,s,a,i,o]})(o,a,e);if(ju(Math.max(a,i),h))return Cc(Ku(((e,t,n,r,o)=>{const a=xc(Gu(e),n,r,o);return{...Dd,...Ju(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(Cf);const[l,f,d]=Lu(t,n,h),g=Pu(d),m=Yu(f,d),S=Bu(f,d);let y=0;r.weeks&&7===s&&(y=r.weeks,r={...r,weeks:0});let[A,p]=Fu(r,i,l,g,m,S);const v=r.sign,w=$u(A);if(v&&w&&v!==w)throw new RangeError(Sf);return w&&(A=Zc(A,p,i,s,c,u,l,g,m)),A.weeks+=y,Cc(A)}(pS,Vy,iS,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Xu(r),[i,s]=((e,t)=>{const n=t((e=mc(e,tg))[og]);let r=mg(e);return r=rs(tg,r),[r,n]})(o,e);if(ju(Math.max(i,a),s))return((e,t)=>Ts(Gu(e),Jf[t],1))(r,i);if(!s)throw new RangeError(Cf);const[c,u,h]=Lu(t,n,s),l=Pu(h),f=Yu(u,h);return((e,t,n,r,o,a)=>{const i=$u(e),[s,c]=kc(_d(n,e),n,i,r,o,a),u=Rc(t,s,c);return e[Td[n]]+u*i})(...Fu(r,i,c,l,f,Bu(u,h)),i,c,l,f)}(pS,Vy,iS,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):ou(e)},toString:ou,toJSON:e=>ou(e),valueOf:tS},{from:e=>Ky(AS(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(gc(a).relativeTo),s=Math.max(Xu(r),Xu(o));if(Yi(Td,r,o))return 0;if(ju(s,i))return ps(Gu(r),Gu(o));if(!i)throw new RangeError(Cf);const[c,u,h]=Lu(t,n,i),l=Pu(h),f=Yu(u,h);return ps(l(f(c,r)),l(f(c,o)))}(pS,Fy,iS,AS(e),AS(t),n)}),Gy={toString:e=>e.id,toJSON:e=>e.id,...KS,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return wy(Tc(a.dateAdd(mS(t),AS(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return Ky(Cc(o.dateUntil(mS(t),mS(n),function(e){return e=gc(e),gg(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return wy(Sl(o,t,n,function(e){return e===gd?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Sy(yl(o,t,n,function(e){return e===gd?od:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return ry(Al(o,0,t,n,function(e){return e===gd?sd:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(hd),o=[];for(const e of t){if(vd(e),!r.has(e))throw new RangeError(ef(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(Pi(ns(t)),Pi(ns(n)))}},[Jy]=Wm("Calendar",(e=>{const t=function(e){return rl(vd(e))}(e);return{branding:"Calendar",id:t,F:ym(t)}}),{id:e=>e.id},Gy,{from(e){const t=IS(e);return"string"==typeof t?new Jy(t):t}}),Wy=qm(Object.keys(Gy).slice(4)),[qy,Xy]=Wm(Cg,Ui((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:gd;return Ic(Ds(ws(hs(n))),t(r),e(o))}),IS,hS),{...ey,...WS,...TS(zS),...TS(QS),offset:e=>fu(MS(e).offsetNanoseconds),offsetNanoseconds:e=>MS(e).offsetNanoseconds,timeZoneId:e=>Nc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Yg(t,n),[o,a]=jc(r),i=Ts(As(vu(n,o),vu(n,a)),zf,1);if(i<=0)throw new RangeError(Sf);return i}(iS,e)},{getISOFields:e=>function(e,t){const n=Yg(t,e);return{calendar:t.calendar,...Ri(Bd,n),offset:fu(n.offsetNanoseconds),timeZone:t.timeZone}}(sS,e),getCalendar:nS,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new hy(t):t},with(e,t,n){return Xy(function(e,t,n,r,o,a){const i=Sc(a),{calendar:s,timeZone:c}=n;return Ic(((e,t,n,r,o)=>{const a=Il(e,n,r,hd,ed,Xf),[i,s,c]=rc(o,2);return pu(t,{...e.dateFromFields(a,yc(o,i)),...wl(a,i)},th(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(Uy,iS,e,this,Xm(t),n))},withCalendar:(e,t)=>Xy(Rl(e,IS(t))),withTimeZone:(e,t)=>Xy(function(e,t){return{...e,timeZone:t}}(e,hS(t))),withPlainDate:(e,t)=>Xy(function(e,t,n){const r=t.timeZone,o=e(r),a={...Yg(t,o),...n},i=Ll(t.calendar,n.calendar);return Ic(pu(o,a,a.offsetNanoseconds,2),r,i)}(iS,e,mS(t))),withPlainTime:(e,t)=>Xy(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ud;const r=t.timeZone,o=e(r),a={...Yg(t,o),...n};return Ic(pu(o,a,a.offsetNanoseconds,2),r,t.calendar)}(iS,e,fS(t))),add:(e,t,n)=>Xy(Tu(Fy,iS,0,e,AS(t),n)),subtract:(e,t,n)=>Xy(Tu(Fy,iS,1,e,AS(t),n)),until:(e,t,n)=>Ky(Cc(Oh(Vy,iS,0,e,bS(t),n))),since:(e,t,n)=>Ky(Cc(Oh(Vy,iS,1,e,bS(t),n))),round:(e,t)=>Xy(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=ic(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=Yg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=vu(t,a),u=vu(t,i);if(vs(s,c,u))throw new RangeError(Sf);return zc(Rc(s,c,u),r)?u:c})(jc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=pu(u,Lc(Fs(r,e),i,s,c),e,2,0,1)}return Ic(r,o,a)}(iS,e,t)),startOfDay:e=>Xy(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>vu(t,e(Yg(n,t))))(Fc,e(n),t);return Ic(o,n,r)}(iS,e)),equals:(e,t)=>function(e,t){return!bh(e,t)&&!!Hh(e.timeZone,t.timeZone)&&_c(e.calendar,t.calendar)}(e,bS(t)),toInstant:e=>cy(function(e){return wc(e.epochNanoseconds)}(e)),toPlainDateTime:e=>py(Nl(sS,e)),toPlainDate:e=>wy(_l(sS,e)),toPlainTime:e=>gy(kl(sS,e)),toPlainYearMonth(e){return Sy(function(e,t,n){return Tl(e(t.calendar),n)}(Ly,e,this))},toPlainMonthDay(e){return ry(function(e,t,n){return bl(e(t.calendar),n)}(Yy,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=_S(t,n,e);return r.format(o)},toString:(e,t)=>Xc(sS,e,t),toJSON:e=>Xc(sS,e),valueOf:tS},{from:(e,t)=>Xy(bS(e,t)),compare:(e,t)=>bh(bS(e),bS(t))}),Qy=Object.defineProperties({},{...Oi("Temporal.Now"),...Hi({timeZoneId:()=>Zl(),instant:()=>cy(wc(Vl())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl();return Xy(Ic(Vl(),hS(t),IS(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return Xy(Ic(Vl(),hS(e),gd))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl();return py(bc(Fl(sS(hS(t))),IS(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return py(bc(Fl(sS(hS(e))),gd))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl();return wy(Tc(Fl(sS(hS(t))),IS(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return wy(Tc(Fl(sS(hS(e))),gd))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return gy(Hc(Fl(sS(hS(e)))))}})}),eA=Object.defineProperties({},{...Oi("Temporal"),...Hi({PlainYearMonth:my,PlainMonthDay:ny,PlainDate:vy,PlainTime:dy,PlainDateTime:Ay,ZonedDateTime:qy,Instant:sy,Calendar:Jy,TimeZone:hy,Duration:$y,Now:Qy})}),tA=ES(),nA=new WeakMap;function rA(e){return e*Math.PI/180}function oA(e){return 180*e/Math.PI}Object.create(Intl),Hi({DateTimeFormat:tA});class aA{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const iA=6356.9;class sA{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(sA.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(sA.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(sA.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(sA.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(sA.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(sA.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(sA.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(sA.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(sA.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(sA.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 oA(Math.acos(iA/(iA+e/1e3)))}adjustZenith(e,t){let n=e;return e===sA.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=sA.getSunriseUTC(sA.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=sA.getSunsetUTC(sA.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return sA.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new eA.PlainTime(o,a,i,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-sA.JULIAN_DAY_JAN_1_2000)/sA.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*sA.JULIAN_DAYS_PER_CENTURY+sA.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=rA(sA.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 sA.getSunGeometricMeanLongitude(e)+sA.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return sA.getSunTrueLongitude(e)-.00569-.00478*Math.sin(rA(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 sA.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(rA(t))}static getSunDeclination(e){const t=sA.getObliquityCorrection(e),n=sA.getSunApparentLongitude(e),r=Math.sin(rA(t))*Math.sin(rA(n));return oA(Math.asin(r))}static getEquationOfTime(e){const t=sA.getObliquityCorrection(e),n=sA.getSunGeometricMeanLongitude(e),r=sA.getEarthOrbitEccentricity(e),o=sA.getSunGeometricMeanAnomaly(e);let a=Math.tan(rA(t)/2);a*=a;const i=Math.sin(2*rA(n)),s=Math.sin(rA(o));return 4*oA(a*i-2*r*s+4*r*a*s*Math.cos(2*rA(n))-.5*a*a*Math.sin(4*rA(n))-1.25*r*r*Math.sin(2*rA(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=rA(e),o=rA(t);return Math.acos(Math.cos(rA(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=rA(e),o=rA(t);return-Math.acos(Math.cos(rA(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=sA.getJulianDay(e.toPlainDate()),o=sA.getJulianCenturiesFromJulianDay(r),a=sA.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=rA(n-i),c=rA(sA.getSunDeclination(o)),u=rA(t);return oA(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=sA.getJulianDay(e.toPlainDate()),o=sA.getJulianCenturiesFromJulianDay(r),a=sA.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=rA(n-i),c=rA(sA.getSunDeclination(o)),u=rA(t);return oA(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=sA.getJulianCenturiesFromJulianDay(e),a=sA.getSolarNoonUTC(o,n),i=sA.getJulianCenturiesFromJulianDay(e+a/1440);let s=sA.getEquationOfTime(i),c=sA.getSunDeclination(i),u=sA.getSunHourAngleAtSunrise(t,c,r),h=n-oA(u),l=4*h,f=720+l-s;const d=sA.getJulianCenturiesFromJulianDay(sA.getJulianDayFromJulianCenturies(o)+f/1440);return s=sA.getEquationOfTime(d),c=sA.getSunDeclination(d),u=sA.getSunHourAngleAtSunrise(t,c,r),h=n-oA(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=sA.getJulianCenturiesFromJulianDay(sA.getJulianDayFromJulianCenturies(e)+t/360);let r=sA.getEquationOfTime(n);const o=720+4*t-r,a=sA.getJulianCenturiesFromJulianDay(sA.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=sA.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=sA.getJulianCenturiesFromJulianDay(e),a=sA.getSolarNoonUTC(o,n),i=sA.getJulianCenturiesFromJulianDay(e+a/1440);let s=sA.getEquationOfTime(i),c=sA.getSunDeclination(i),u=sA.getSunHourAngleAtSunset(t,c,r),h=n-oA(u),l=4*h,f=720+l-s;const d=sA.getJulianCenturiesFromJulianDay(sA.getJulianDayFromJulianCenturies(o)+f/1440);return s=sA.getEquationOfTime(d),c=sA.getSunDeclination(d),u=sA.getSunHourAngleAtSunset(t,c,r),h=n-oA(u),l=4*h,f=720+l-s,f}}sA.GEOMETRIC_ZENITH=90,sA.CIVIL_ZENITH=96,sA.NAUTICAL_ZENITH=102,sA.ASTRONOMICAL_ZENITH=108,sA.JULIAN_DAY_JAN_1_2000=2451545,sA.JULIAN_DAYS_PER_CENTURY=36525;const cA=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],uA=new Map,hA={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"},lA=new Map;class fA extends aA{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=lA.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return lA.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return uA.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return hA[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":hA[t]}static addLocation(e,t){const n=e.toLowerCase();return!uA.has(n)&&(uA.set(n,t),!0)}}for(const e of cA){const t=new fA(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);fA.addLocation(t.getName(),t)}function dA(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,Hi({Temporal:eA})),Object.defineProperties(Intl,Hi({DateTimeFormat:tA})),Object.defineProperties(Date.prototype,Hi({toTemporalInstant:function(){return cy(wc(Is(this.valueOf(),xf)))}}));class gA{constructor(t,n,r){const o=e.greg.isDate(n)?n:He.isHDate(n)?n.greg():function(e){throw new TypeError(e)}(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new sA(t,a),this.useElevation=Boolean(r)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return dA(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return dA(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return dA(this.noaa.getSeaLevelSunrise())}sunset(){return dA(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return dA(this.noaa.getSeaLevelSunset())}dawn(){return dA(this.noaa.getBeginCivilTwilight())}dusk(){return dA(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new gA(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return dA(this.noaa.getSunTransit(e,t))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return dA(sA.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0);return[t,(this.timeAtAngle(e,!1)-t)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+3*t)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+4*t)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=ce("UTC",t),r=ce(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+he(Math.floor(r/60))+":"+he(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:ce(e,t).substring(0,19)+gA.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const mA={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 SA(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===mA[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function yA(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():We.LIGHT_CANDLES;void 0!==e?r||(s&(We.LIGHT_CANDLES_TZEIS|We.CHANUKAH_CANDLES)?i=!0:s&We.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=We.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new gA(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new pA(t,s,l,u,n.havdalahMins,e,n):new vA(t,s,l,u,e,n)}class AA extends Xe{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=gA.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=gA.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=SA(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return pe.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return pe.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class pA extends AA{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=pe.gettext(this.getDesc(),e);if(this.havdalahMins){const n=pe.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class vA extends AA{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function wA(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new AA(e,n,r.getFlags(),t,a,r,o)}const IA=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],bA=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],TA="בַּלַּ֥יְלָה";class MA{constructor(e,t){let n=t-7;n<0&&(n+=He.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return He.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||pe.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=pe.gettext(this.getMonthName(),e),o=(n?bA:IA)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=pe.gettext("Molad",e),u=pe.lookupTranslation("min",e)||"minutes",h=pe.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?TA:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":TA}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?pe.hebrewStripNikkud(t):t}const l=SA(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class EA extends Xe{constructor(e,t,n,r){const o=new MA(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,We.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class HA extends Xe{constructor(e,t){if(super(e,`Omer ${t}`,We.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){G(e);const[n,r]=J(e),o=z[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){"string"==typeof(e=e||pe.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?$(n):pe.ordinal(n,e))+" "+pe.gettext("day of the Omer",e)}renderBrief(e){return pe.gettext("Omer",e)+" "+pe.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(G(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||pe.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return W(this.omer,"he");if("he-x-nonikud"===e){const e=W(this.omer,"he");return pe.hebrewStripNikkud(e)}return W(this.omer,"en")}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class CA extends Xe{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),We.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||pe.getLocaleName(),n=this.parsha;let r=pe.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+pe.gettext(n[1],e)}r=r.replace(/'/g,"’");return(pe.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){return le(this.getDate().greg()).replace(/-/g,"")}}var OA=Bo,DA=pr,NA=Tr,_A=at,kA=function(e,t,n){return n.get&&OA(n.get,t,{getter:!0}),n.set&&OA(n.set,t,{setter:!0}),DA.f(e,t,n)},RA=function(){var e=NA(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},LA=ot,PA=nt.RegExp,YA=PA.prototype,BA=_A&&LA((function(){var e=!0;try{PA(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(YA,"flags").get.call(t)!==r||n!==r}));BA&&kA(YA,"flags",{configurable:!0,get:RA});class UA extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}const jA=0,FA=2,VA=5,ZA=6,xA=m.NISAN,$A=m.IYYAR;function KA(e){if(e<5708)return null;let t;const n=new He(15,xA,e).getDay();return t=n===jA?2:n===ZA?3:e<5764?4:n===FA?5:4,new He(t,$A,e)}const zA=new UA({maxSize:400});function GA(e,t){const n=`${e}-${t?1:0}`;let r=zA.get(n);return r||(r=new Ne(e,t),zA.set(n,r)),r}const JA=m.NISAN,WA=m.IYYAR,qA=m.SIVAN,XA=m.TAMUZ,QA=m.AV,ep=m.ELUL,tp=m.TISHREI,np=m.CHESHVAN,rp=m.KISLEV,op=m.SHVAT,ap=m.ADAR_II,ip=We.CHAG,sp=We.LIGHT_CANDLES,cp=We.YOM_TOV_ENDS,up=We.CHUL_ONLY,hp=We.IL_ONLY,lp=We.LIGHT_CANDLES_TZEIS,fp=We.CHANUKAH_CANDLES,dp=We.MAJOR_FAST,gp=We.MINOR_HOLIDAY,mp=We.EREV,Sp=We.CHOL_HAMOED,yp="🫓",Ap="🌿🍋",pp="Rosh Hashana II",vp="Erev Yom Kippur",wp="Yom Kippur",Ip="Erev Sukkot",bp="Sukkot I",Tp="Sukkot II",Mp="Sukkot III (CH''M)",Ep="Sukkot IV (CH''M)",Hp="Sukkot V (CH''M)",Cp="Sukkot VI (CH''M)",Op="Shmini Atzeret",Dp="Simchat Torah",Np="Sukkot II (CH''M)",_p="Sukkot VII (Hoshana Raba)",kp="Chanukah: 1 Candle",Rp="Tu BiShvat",Lp="Erev Purim",Pp="Purim",Yp="Shushan Purim",Bp="Erev Pesach",Up="Pesach I",jp="Pesach II",Fp="Pesach II (CH''M)",Vp="Pesach III (CH''M)",Zp="Pesach IV (CH''M)",xp="Pesach V (CH''M)",$p="Pesach VI (CH''M)",Kp="Pesach VII",zp="Pesach VIII",Gp="Pesach Sheni",Jp="Lag BaOmer",Wp="Erev Shavuot",qp="Shavuot",Xp="Shavuot I",Qp="Shavuot II",ev="Tu B'Av",tv="Rosh Hashana LaBehemot",nv="Erev Rosh Hashana",rv="Yom Yerushalayim",ov="Ben-Gurion Day",av="Family Day",iv="Yitzhak Rabin Memorial Day",sv="Herzl Day",cv="Jabotinsky Day",uv="Sigd",hv="Yom HaAliyah",lv="Yom HaAliyah School Observance",fv="Hebrew Language Day",dv={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_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:ov,CHANUKAH_1_CANDLE:kp,EREV_PESACH:Bp,EREV_PURIM:Lp,EREV_ROSH_HASHANA:nv,EREV_SHAVUOT:Wp,EREV_SUKKOT:Ip,EREV_YOM_KIPPUR:vp,FAMILY_DAY:av,HEBREW_LANGUAGE_DAY:fv,HERZL_DAY:sv,JABOTINSKY_DAY:cv,LAG_BAOMER:Jp,PESACH_I:Up,PESACH_II:jp,PESACH_III_CHM:Vp,PESACH_II_CHM:Fp,PESACH_IV_CHM:Zp,PESACH_SHENI:Gp,PESACH_VII:Kp,PESACH_VIII:zp,PESACH_VI_CHM:$p,PESACH_V_CHM:xp,PURIM:Pp,ROSH_HASHANA_II:pp,ROSH_HASHANA_LABEHEMOT:tv,SHAVUOT:qp,SHAVUOT_I:Xp,SHAVUOT_II:Qp,SHMINI_ATZERET:Op,SHUSHAN_PURIM:Yp,SIGD:uv,SIMCHAT_TORAH:Dp,SUKKOT_I:bp,SUKKOT_II:Tp,SUKKOT_III_CHM:Mp,SUKKOT_II_CHM:Np,SUKKOT_IV_CHM:Ep,SUKKOT_VII_HOSHANA_RABA:_p,SUKKOT_VI_CHM:Cp,SUKKOT_V_CHM:Hp,TU_BAV:ev,TU_BISHVAT:Rp,YITZHAK_RABIN_MEMORIAL_DAY:iv,YOM_HAALIYAH:hv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:lv,YOM_KIPPUR:wp,YOM_YERUSHALAYIM:rv},gv=[{mm:tp,dd:2,desc:pp,flags:ip|cp,emoji:"🍏🍯"},{mm:tp,dd:9,desc:vp,flags:mp|sp},{mm:tp,dd:10,desc:wp,flags:ip|dp|cp},{mm:tp,dd:14,desc:Ip,flags:up|mp|sp,emoji:Ap},{mm:tp,dd:15,desc:bp,flags:up|ip|lp,emoji:Ap},{mm:tp,dd:16,desc:Tp,flags:up|ip|cp,emoji:Ap},{mm:tp,dd:17,desc:Mp,flags:up|Sp,chmDay:1,emoji:Ap},{mm:tp,dd:18,desc:Ep,flags:up|Sp,chmDay:2,emoji:Ap},{mm:tp,dd:19,desc:Hp,flags:up|Sp,chmDay:3,emoji:Ap},{mm:tp,dd:20,desc:Cp,flags:up|Sp,chmDay:4,emoji:Ap},{mm:tp,dd:22,desc:Op,flags:up|ip|lp},{mm:tp,dd:23,desc:Dp,flags:up|ip|cp},{mm:tp,dd:14,desc:Ip,flags:hp|mp|sp,emoji:Ap},{mm:tp,dd:15,desc:bp,flags:hp|ip|cp,emoji:Ap},{mm:tp,dd:16,desc:Np,flags:hp|Sp,chmDay:1,emoji:Ap},{mm:tp,dd:17,desc:Mp,flags:hp|Sp,chmDay:2,emoji:Ap},{mm:tp,dd:18,desc:Ep,flags:hp|Sp,chmDay:3,emoji:Ap},{mm:tp,dd:19,desc:Hp,flags:hp|Sp,chmDay:4,emoji:Ap},{mm:tp,dd:20,desc:Cp,flags:hp|Sp,chmDay:5,emoji:Ap},{mm:tp,dd:22,desc:Op,flags:hp|ip|cp},{mm:tp,dd:21,desc:_p,flags:sp|Sp,chmDay:-1,emoji:Ap},{mm:rp,dd:24,desc:kp,flags:mp|gp|fp,emoji:"🕎1️⃣"},{mm:op,dd:15,desc:Rp,flags:gp,emoji:"🌳"},{mm:ap,dd:13,desc:Lp,flags:mp|gp,emoji:"🎭️📜"},{mm:ap,dd:14,desc:Pp,flags:gp,emoji:"🎭️📜"},{mm:ap,dd:15,desc:Yp,flags:gp,emoji:"🎭️📜"},{mm:JA,dd:14,desc:Bp,flags:hp|mp|sp,emoji:"🫓🍷"},{mm:JA,dd:15,desc:Up,flags:hp|ip|cp,emoji:yp},{mm:JA,dd:16,desc:Fp,flags:hp|Sp,chmDay:1,emoji:yp},{mm:JA,dd:17,desc:Vp,flags:hp|Sp,chmDay:2,emoji:yp},{mm:JA,dd:18,desc:Zp,flags:hp|Sp,chmDay:3,emoji:yp},{mm:JA,dd:19,desc:xp,flags:hp|Sp,chmDay:4,emoji:yp},{mm:JA,dd:20,desc:$p,flags:hp|Sp|sp,chmDay:5,emoji:yp},{mm:JA,dd:21,desc:Kp,flags:hp|ip|cp,emoji:yp},{mm:JA,dd:14,desc:Bp,flags:up|mp|sp,emoji:"🫓🍷"},{mm:JA,dd:15,desc:Up,flags:up|ip|lp,emoji:"🫓🍷"},{mm:JA,dd:16,desc:jp,flags:up|ip|cp,emoji:yp},{mm:JA,dd:17,desc:Vp,flags:up|Sp,chmDay:1,emoji:yp},{mm:JA,dd:18,desc:Zp,flags:up|Sp,chmDay:2,emoji:yp},{mm:JA,dd:19,desc:xp,flags:up|Sp,chmDay:3,emoji:yp},{mm:JA,dd:20,desc:$p,flags:up|Sp|sp,chmDay:4,emoji:yp},{mm:JA,dd:21,desc:Kp,flags:up|ip|lp,emoji:yp},{mm:JA,dd:22,desc:zp,flags:up|ip|cp,emoji:yp},{mm:WA,dd:14,desc:Gp,flags:gp},{mm:WA,dd:18,desc:Jp,flags:gp,emoji:"🔥"},{mm:qA,dd:5,desc:Wp,flags:mp|sp,emoji:"⛰️🌸"},{mm:qA,dd:6,desc:qp,flags:hp|ip|cp,emoji:"⛰️🌸"},{mm:qA,dd:6,desc:Xp,flags:up|ip|lp,emoji:"⛰️🌸"},{mm:qA,dd:7,desc:Qp,flags:up|ip|cp,emoji:"⛰️🌸"},{mm:QA,dd:15,desc:ev,flags:gp,emoji:"❤️"},{mm:ep,dd:1,desc:tv,flags:gp,emoji:"🐑"},{mm:ep,dd:29,desc:nv,flags:mp|sp,emoji:"🍏🍯"}],mv=[{firstYear:5727,mm:WA,dd:28,desc:rv,chul:!0},{firstYear:5737,mm:rp,dd:6,desc:ov,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:op,dd:30,desc:av},{firstYear:5758,mm:np,dd:12,desc:iv,friSatMovetoThu:!0},{firstYear:5764,mm:WA,dd:10,desc:sv,satPostponeToSun:!0},{firstYear:5765,mm:XA,dd:29,desc:cv,satPostponeToSun:!0},{firstYear:5769,mm:np,dd:29,desc:uv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:JA,dd:10,desc:hv,chul:!0},{firstYear:5777,mm:np,dd:7,desc:lv},{firstYear:5773,mm:m.TEVET,dd:21,desc:fv,friSatMovetoThu:!0}],Sv=We.CHAG,yv=We.IL_ONLY,Av=We.LIGHT_CANDLES_TZEIS,pv=We.CHANUKAH_CANDLES,vv=We.MINOR_FAST,wv=We.SPECIAL_SHABBAT,Iv=We.MODERN_HOLIDAY,bv=We.MAJOR_FAST,Tv=We.MINOR_HOLIDAY,Mv=We.EREV;class Ev extends Xe{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&yv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&wv?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;const t=this.getDesc(),{LAG_BAOMER:n,LEIL_SELICHOT:r,PESACH_SHENI:o,EREV_PURIM:a,PURIM_KATAN:i,SHUSHAN_PURIM:s,TU_BAV:c,TU_BISHVAT:u,ROSH_HASHANA_LABEHEMOT:h}=dv;return[n,r,o,a,i,s,c,u,h].includes(t)?["holiday","minor"]:["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Hv="Rosh Chodesh";class Cv extends Ev{constructor(e,t){super(e,`${Hv} ${t}`,We.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=pe.gettext(t,e).replace(/'/g,"’");return pe.gettext(Hv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Ov extends Ev{urlDateSuffix(){return le(this.getDate().greg()).replace(/-/g,"")}}const Dv="Shabbat Mevarchim Chodesh";class Nv extends Xe{constructor(e,t,n){if(super(e,`${Dv} ${t}`,We.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==He.monthsInYear(t)?Lv:n+1,o=new MA(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=pe.gettext(this.monthName,e).replace(/'/g,"’");return pe.gettext(Dv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class _v extends Ev{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return pe.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const kv="Yom Kippur Katan";class Rv extends Ev{constructor(e,t){super(e,`${kv} ${t}`,vv|We.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=pe.gettext(this.nextMonthName,e).replace(/'/g,"’");return pe.gettext(kv,e)+" "+t}renderBrief(e){return pe.gettext(kv,e)}url(){}}const Lv=m.NISAN,Pv=m.TAMUZ,Yv=m.AV,Bv=m.TISHREI,Uv=m.KISLEV,jv=m.TEVET,Fv=m.ADAR_I,Vv=m.ADAR_II,Zv={emoji:"🇮🇱"},xv=new UA({maxSize:400}),$v=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Kv(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=xv.get(e);if(t)return t;const n=new He(1,Bv,e),r=new He(15,Lv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Mv?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of gv){const n=new He(t.dd,t.mm,e),r=new Ev(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new _v(n,e,Sv|Av)),a(new Ev(new He(3+(4==n.getDay()),Bv,e),dv.TZOM_GEDALIAH,vv)),a(new Ev(new He(He.dayOnOrBefore(6,7+n.abs())),dv.SHABBAT_SHUVA,wv));const i=He.shortKislev(e)?new He(1,jv,e):new He(30,Uv,e);a(new Ev(i,dv.CHAG_HABANOT,Tv));for(let t=2;t<=8;t++){const n=new He(23+t,Uv,e);a(new Ev(n,`Chanukah: ${t} Candles`,Tv|pv,{chanukahDay:t-1,emoji:"🕎"+$v[t]}))}a(new Ev(new He(32,Uv,e),dv.CHANUKAH_8TH_DAY,Tv,{chanukahDay:8,emoji:"🕎"})),a(new Ov(new He(10,jv,e),dv.ASARA_BTEVET,vv));const s=r.abs();a(new Ev(new He(He.dayOnOrBefore(6,s-43)),dv.SHABBAT_SHEKALIM,wv),new Ev(new He(He.dayOnOrBefore(6,s-30)),dv.SHABBAT_ZACHOR,wv),new Ev(new He(s-(2==r.getDay()?33:31)),dv.TAANIT_ESTHER,vv));const c=He.dayOnOrBefore(6,s-14);a(new Ev(new He(c-7),dv.SHABBAT_PARAH,wv),new Ev(new He(c),dv.SHABBAT_HACHODESH,wv),new Ev(new He(He.dayOnOrBefore(6,s-1)),dv.SHABBAT_HAGADOL,wv),new Ev(6==r.prev().getDay()?r.onOrBefore(4):new He(14,Lv,e),dv.TAANIT_BECHOROT,vv)),a(new Ev(new He(He.dayOnOrBefore(6,new He(1,Bv,e+1).abs()-4)),dv.LEIL_SELICHOT,Tv,{emoji:"🕍"})),0==r.getDay()&&a(new Ev(new He(16,Vv,e),dv.PURIM_MESHULASH,Tv)),He.isLeapYear(e)&&(a(new Ev(new He(14,Fv,e),dv.PURIM_KATAN,Tv,{emoji:"🎭️"})),a(new Ev(new He(15,Fv,e),dv.SHUSHAN_PURIM_KATAN,Tv,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new He(27,xA,e);return t.getDay()===VA?t=new He(26,xA,e):t.getDay()===jA&&(t=new He(28,xA,e)),t}(e);u&&a(new Ev(u,dv.YOM_HASHOAH,Iv));const h=KA(e);h&&a(new Ev(h,dv.YOM_HAZIKARON,Iv,Zv),new Ev(h.next(),dv.YOM_HAATZMA_UT,Iv,Zv));for(const t of mv)if(e>=t.firstYear){let n=new He(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new He(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Iv:Iv|yv,i=new Ev(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let l,f=new He(17,Pv,e);6==f.getDay()&&(f=new He(18,Pv,e),l={observed:!0}),a(new Ev(f,dv.TZOM_TAMMUZ,vv,l));let d,g=new He(9,Yv,e),S=dv.TISHA_BAV;6==g.getDay()&&(g=g.next(),d={observed:!0},S+=" (observed)");const y=g.abs();a(new Ev(new He(He.dayOnOrBefore(6,y)),dv.SHABBAT_CHAZON,wv),new Ev(g.prev(),dv.EREV_TISHA_BAV,Mv|bv,d),new Ev(g,S,bv,d),new Ev(new He(He.dayOnOrBefore(6,y+7)),dv.SHABBAT_NACHAMU,wv));const A=He.monthsInYear(e);for(let t=1;t<=A;t++){const n=He.getMonthName(t,e);30==(t==Lv?He.daysInMonth(He.monthsInYear(e-1),e-1):He.daysInMonth(t-1,e))?(a(new Cv(new He(1,t,e),n)),a(new Cv(new He(30,t-1,e),n))):t!==Bv&&a(new Cv(new He(1,t,e),n))}for(let t=m.IYYAR;t<=A;t++){const n=t+1;if(n===Bv||n===m.CHESHVAN||n===jv)continue;let r=new He(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=He.getMonthName(n,e);a(new Rv(r,i))}const p=GA(e,!1).find(15);a(new Ev(p,dv.SHABBAT_SHIRAH,wv));const v=function(e){const t=He.isLeapYear(e),n=t?Vv:Lv,r=t?20:1,o=He.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(v){const e=new He(v);a(new Ev(e,dv.BIRKAT_HACHAMAH,Tv,{emoji:"☀️"}))}return xv.set(e,o),o}const zv=new Map;class Gv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);zv.set(e,t)}static lookup(e,t,n){const r=zv.get(e);return"function"==typeof r?r(t,n):null}}const Jv="5.4.0";function Wv(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const qv={shacharit:!1,mincha:!1,allCongs:!1};function Xv(e,t){return Qv(e,t,!0)}function Qv(e,t,n){const r=function(e,t){const n=He.isLeapYear(e),r=12+n;let o=new He(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new He(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(Wv(1,r).map((t=>new He(1,t,e))),Wv(1,r).filter((t=>30===He.daysInMonth(t,e))).map((t=>new He(30,t,e))),new He(2,m.TISHREI,e),Wv(1,He.daysInMonth(m.NISAN,e)).map((t=>new He(t,m.NISAN,e))),new He(18,m.IYYAR,e),Wv(1,8-(t?1:0)).map((t=>new He(t,m.SIVAN,e))),o,new He(15,m.AV,e),new He(29,m.ELUL,e),Wv(9,24-(t?1:0)).map((t=>new He(t,m.TISHREI,e))),Wv(25,33).map((t=>new He(t,m.KISLEV,e))),new He(15,m.SHVAT,e),new He(14,m.ADAR_II,e),a,n?new He(14,m.ADAR_I,e):[]),s=[].concat(Wv(1,13).map((t=>new He(t,m.SIVAN,e))),Wv(20,31).map((t=>new He(t,m.TISHREI,e))),new He(14,m.IYYAR,e),e>=5708?KA(e).next():[],e>=5727?new He(28,m.IYYAR,e):[]),c=[].concat(new He(29,m.ELUL,e-1),new He(9,m.TISHREI,e),new He(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return qv;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=Qv(new He(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:qv}const ew=m.NISAN,tw=m.SIVAN,nw=m.ELUL,rw=m.TISHREI,ow=We.LIGHT_CANDLES,aw=We.YOM_TOV_ENDS,iw=We.CHUL_ONLY,sw=We.IL_ONLY,cw=We.LIGHT_CANDLES_TZEIS,uw=We.CHANUKAH_CANDLES,hw=We.MINOR_FAST,lw=We.SPECIAL_SHABBAT,fw=We.MODERN_HOLIDAY,dw=We.MAJOR_FAST,gw=We.ROSH_CHODESH,mw=We.PARSHA_HASHAVUA,Sw=We.DAF_YOMI,yw=We.MISHNA_YOMI,Aw=We.NACH_YOMI,pw=We.YERUSHALMI_YOMI,vw=We.OMER_COUNT,ww=We.SHABBAT_MEVARCHIM,Iw=We.MINOR_HOLIDAY,bw=We.EREV,Tw=We.CHOL_HAMOED,Mw=We.YOM_KIPPUR_KATAN,Ew=new Set,Hw={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const Cw={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Ow={281184:40,294801:30,293067:30};function Dw(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(He.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function Nw(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&gw&&delete e.noRoshChodesh;t&fw&&delete e.noModern;t&hw&&delete e.noMinorFast;t&lw&&delete e.noSpecialShabbat;t&mw&&(e.sedrot=!0);t&(Sw|yw|Aw|pw)&&(e.dailyLearning=e.dailyLearning||{},t&Sw&&(e.dailyLearning.dafYomi=!0),t&yw&&(e.dailyLearning.mishnaYomi=!0),t&Aw&&(e.dailyLearning.nachYomi=!0),t&pw&&(e.dailyLearning.yerushalmi=1));t&vw&&(e.omer=!0);t&ww&&(e.shabbatMevarchim=!0);t&Mw&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=gw|aw|hw|lw|fw|dw|Iw|bw|Tw|ow|cw|uw),e.candlelighting&&(r|=ow|cw|aw),e.noRoshChodesh&&(r&=~gw),e.noModern&&(r&=~fw),e.noMinorFast&&(r&=~hw),e.noSpecialShabbat&&(r&=~lw,r&=~ww),r|=n?sw:iw,e.sedrot&&(r|=mw),e.omer&&(r|=vw),e.shabbatMevarchim&&(r|=ww),e.yomKippurKatan&&(r|=Mw),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Sw),t.mishnaYomi&&(r|=yw),t.nachYomi&&(r|=Aw),t.yerushalmi&&(r|=pw)}return r}const _w=ow|cw|uw|aw,kw=new fA(0,0,!1,"UTC");function Rw(e){return e.observedInIsrael()}function Lw(e){return e.observedInDiaspora()}class Pw{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof fA))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=Ow[e];"number"==typeof r&&(n=r);const o=Cw[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||kw,r=t.il=t.il||n.il||!1;if(t.mask=Nw(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!pe.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else pe.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[Dw(t.start),Dw(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new He).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?He.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new He(1,o||rw,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new He(1,rw,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==Hw[t]||Ew.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),Ew.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new He(e),l=h.getFullYear();l!=u&&(u=l,i=Kv(u),t.sedrot&&(a=GA(u,r)),t.omer&&(s=He.hebrew2abs(u,ew,16),c=He.hebrew2abs(u,tw,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let S;const y=i.get(h.toString())||[];for(const e of y)S=Bw(S,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new CA(h,t.parsha,r,t.num))}const A=t.dailyLearning;if("object"==typeof A)for(const[e,t]of Object.entries(A))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,a=Gv.lookup(n,h,r);a&&o.push(a)}if(t.omer&&e>=s&&e<=c){const r=new HA(h,e-s+1);if(t.candlelighting){const e=new gA(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const p=h.getMonth(),v=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&p!=nw&&v>=23&&v<=29){const e=p==He.monthsInYear(l)?ew:p+1;if(t.molad&&o.push(new EA(h,l,e,t)),t.shabbatMevarchim){const n=He.getMonthName(e,l),r=new MA(l,e).render(t.locale||"en",t);o.push(new Nv(h,n,r))}}if(!S&&t.candlelighting&&(g||m)&&(S=yA(void 0,h,t,g,m),g&&S&&a&&(S.memo=a.getString(e,t.locale))),S instanceof pA&&(0===t.havdalahMins||0===t.havdalahDeg)&&(S=null),S&&o.push(S),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Qe(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=j(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=M(r);let a=n.mm,i=n.dd;return a===B&&!o||a===U&&o?a=E(e):a!==R||30!==i||N(e)?a===L&&30===i&&_(e)?(a=P,i=1):a===B&&30===i&&o&&!M(e)&&(a=k,i=1):(a=L,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new He(n)}static getYahrzeit(e,t){const n=function(e,t){let n=j(t);if(!(e<=n.yy))return n.mm!==R||30!==n.dd||N(n.yy+1)?n.mm===L&&30===n.dd&&_(n.yy+1)?n=T(I(e,P,1)-1):n.mm===U?n.mm=E(e):n.mm!==B||30!==n.dd||M(e)||(n.dd=30,n.mm=Y):n=T(I(e,L,1)-1),n.mm!==R||30!==n.dd||N(e)?n.mm===L&&30===n.dd&&_(e)&&(n.mm=P,n.dd=1):(n.mm=L,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new He(n)}static getHolidaysForYear(e){return Kv(e)}static getHolidaysForYearArray(e,t){const n=Kv(e),r=He.hebrew2abs(e,rw,1),o=He.hebrew2abs(e+1,rw,1)-1;let a=[];const i=t?Rw:Lw;for(let e=r;e<=o;e++){const t=new He(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=He.isHDate(e)?e:new He(e),r=n.toString(),o=Kv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?Rw:Lw;return o.filter(a)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new He(e),r=n.after(5),o=n.next();return!(!Yw(r,t)||Yw(n,t)||!Yw(o,t))}static reformatTimeStr(e,t,n){return SA(e,t,n)}static version(){return Jv}static getSedra(e,t){return GA(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===m.NISAN&&(15===o||16===o)&&e.getFlags()&We.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&We.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Pw.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return Xv(e,t)}}function Yw(e,t){return 0!==Pw.getHolidaysOnDate(e,t).filter((e=>e.getFlags()&We.CHAG)).length}function Bw(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&Mw||r.noModern&&s&fw)return e;const c=r.location,u=Boolean(s&dw),h=Boolean(s&hw);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new gA(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=wA(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=wA(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=wA(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=wA(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&_w){const t=n.getDate();if(e=yA(n,t,r,o,a),s&uw&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new gA(r,t.greg(),n.useElevation);return wA(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Ev(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&Mw)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}var Uw;return e.HolidayDesc=void 0,(Uw=e.HolidayDesc||(e.HolidayDesc={})).ASARA_BTEVET="Asara B'Tevet",Uw.BIRKAT_HACHAMAH="Birkat Hachamah",Uw.CHAG_HABANOT="Chag HaBanot",Uw.CHANUKAH_8TH_DAY="Chanukah: 8th Day",Uw.EREV_TISHA_BAV="Erev Tish'a B'Av",Uw.LEIL_SELICHOT="Leil Selichot",Uw.PURIM_KATAN="Purim Katan",Uw.PURIM_MESHULASH="Purim Meshulash",Uw.SHABBAT_CHAZON="Shabbat Chazon",Uw.SHABBAT_HACHODESH="Shabbat HaChodesh",Uw.SHABBAT_HAGADOL="Shabbat HaGadol",Uw.SHABBAT_NACHAMU="Shabbat Nachamu",Uw.SHABBAT_PARAH="Shabbat Parah",Uw.SHABBAT_SHEKALIM="Shabbat Shekalim",Uw.SHABBAT_SHIRAH="Shabbat Shirah",Uw.SHABBAT_SHUVA="Shabbat Shuva",Uw.SHABBAT_ZACHOR="Shabbat Zachor",Uw.SHUSHAN_PURIM_KATAN="Shushan Purim Katan",Uw.TAANIT_BECHOROT="Ta'anit Bechorot",Uw.TAANIT_ESTHER="Ta'anit Esther",Uw.TISHA_BAV="Tish'a B'Av",Uw.TZOM_GEDALIAH="Tzom Gedaliah",Uw.TZOM_TAMMUZ="Tzom Tammuz",Uw.YOM_HAATZMA_UT="Yom HaAtzma'ut",Uw.YOM_HASHOAH="Yom HaShoah",Uw.YOM_HAZIKARON="Yom HaZikaron",Uw.BEN_GURION_DAY="Ben-Gurion Day",Uw.CHANUKAH_1_CANDLE="Chanukah: 1 Candle",Uw.EREV_PESACH="Erev Pesach",Uw.EREV_PURIM="Erev Purim",Uw.EREV_ROSH_HASHANA="Erev Rosh Hashana",Uw.EREV_SHAVUOT="Erev Shavuot",Uw.EREV_SUKKOT="Erev Sukkot",Uw.EREV_YOM_KIPPUR="Erev Yom Kippur",Uw.FAMILY_DAY="Family Day",Uw.HEBREW_LANGUAGE_DAY="Hebrew Language Day",Uw.HERZL_DAY="Herzl Day",Uw.JABOTINSKY_DAY="Jabotinsky Day",Uw.LAG_BAOMER="Lag BaOmer",Uw.PESACH_I="Pesach I",Uw.PESACH_II="Pesach II",Uw.PESACH_III_CHM="Pesach III (CH''M)",Uw.PESACH_II_CHM="Pesach II (CH''M)",Uw.PESACH_IV_CHM="Pesach IV (CH''M)",Uw.PESACH_SHENI="Pesach Sheni",Uw.PESACH_VII="Pesach VII",Uw.PESACH_VIII="Pesach VIII",Uw.PESACH_VI_CHM="Pesach VI (CH''M)",Uw.PESACH_V_CHM="Pesach V (CH''M)",Uw.PURIM="Purim",Uw.ROSH_HASHANA_II="Rosh Hashana II",Uw.ROSH_HASHANA_LABEHEMOT="Rosh Hashana LaBehemot",Uw.SHAVUOT="Shavuot",Uw.SHAVUOT_I="Shavuot I",Uw.SHAVUOT_II="Shavuot II",Uw.SHMINI_ATZERET="Shmini Atzeret",Uw.SHUSHAN_PURIM="Shushan Purim",Uw.SIGD="Sigd",Uw.SIMCHAT_TORAH="Simchat Torah",Uw.SUKKOT_I="Sukkot I",Uw.SUKKOT_II="Sukkot II",Uw.SUKKOT_III_CHM="Sukkot III (CH''M)",Uw.SUKKOT_II_CHM="Sukkot II (CH''M)",Uw.SUKKOT_IV_CHM="Sukkot IV (CH''M)",Uw.SUKKOT_VII_HOSHANA_RABA="Sukkot VII (Hoshana Raba)",Uw.SUKKOT_VI_CHM="Sukkot VI (CH''M)",Uw.SUKKOT_V_CHM="Sukkot V (CH''M)",Uw.TU_BAV="Tu B'Av",Uw.TU_BISHVAT="Tu BiShvat",Uw.YITZHAK_RABIN_MEMORIAL_DAY="Yitzhak Rabin Memorial Day",Uw.YOM_HAALIYAH="Yom HaAliyah",Uw.YOM_HAALIYAH_SCHOOL_OBSERVANCE="Yom HaAliyah School Observance",Uw.YOM_KIPPUR="Yom Kippur",Uw.YOM_YERUSHALAYIM="Yom Yerushalayim",e.AsaraBTevetEvent=Ov,e.CandleLightingEvent=vA,e.DailyLearning=Gv,e.Event=Xe,e.GeoLocation=aA,e.HDate=He,e.HavdalahEvent=pA,e.HebrewCalendar=Pw,e.HebrewDateEvent=Qe,e.HolidayEvent=Ev,e.Locale=pe,e.Location=fA,e.MevarchimChodeshEvent=Nv,e.Molad=MA,e.MoladEvent=EA,e.NOAACalculator=sA,e.OmerEvent=HA,e.ParshaEvent=CA,e.RoshChodeshEvent=Cv,e.RoshHashanaEvent=_v,e.Sedra=Ne,e.TimedEvent=AA,e.Zmanim=gA,e.flags=We,e.gematriya=$,e.gematriyaStrToNum=K,e.holidayDesc=dv,e.months=m,e.parshiot=_e,e.version=Jv,e}({});
1
+ /*! @hebcal/core v5.4.1 */
2
+ var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],S=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],p=new Map,w=-1373428,v=365.24682220597794;function A(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function b(e,t,n){if(A(e,"year"),A(t,"month"),A(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=O(t,e);for(let n=a;n<t;n++)r+=O(n,e)}else for(let n=u;n<t;n++)r+=O(n,e);return w+H(e)+r-1}function T(e){return w+H(e)}function I(e){if(A(e,"abs"),(e=Math.trunc(e))<=w)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-w)/v);for(;T(t)<=e;)++t;--t;let n=e<b(t,1,1)?7:1;for(;e>b(t,n,O(n,t));)++n;return{yy:t,mm:n,dd:1+e-b(t,n,1)}}function M(e){return(1+7*e)%19<7}function E(e){return+M(e)+12}function O(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!M(t)||e===h&&!N(t)||e===l&&k(t)?29:30}function C(e,t){if(A(e,"month"),A(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return S[+M(t)][e]}function H(e){const t=p.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!M(e)||1==i%7&&a>=16789&&M(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return p.set(e,n),n}function D(e){return H(e+1)-H(e)}function N(e){return D(e)%10==5}function k(e){return D(e)%10==3}const _=m.NISAN,L=m.CHESHVAN,R=m.KISLEV,Y=m.TEVET,P=m.SHVAT,j=m.ADAR_I,B=m.ADAR_II;function F(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return I(t);if(e.greg.isDate(t)){return I(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const U={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},x=new Map,Z=new Map;for(const[e,t]of Object.entries(U))x.set(e,t),Z.set(t,e);function $(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function V(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=$(r);for(const t of e)n+=Z.get(t);n+="׳"}const o=$(t%1e3);if(1===o.length)return n+Z.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=Z.get(o[e]);return n}function z(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*z(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=x.get(n);"number"==typeof e&&(t+=e)}return t}const K={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function G(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function J(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return G(e),"en"===t?function(e){const[t,n]=J(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ae:12===e?r+="שְׁנֵים "+ae:12<e&&e<20?r+=X[n]+" "+ae:e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1],ae="עָשָׂר";const ie=new Map;const se=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ce(e,t){const n=function(e){const t=ie.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return ie.set(e,n),n}(e).format(t),r=se.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=ue(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ue(e){return e<0?"-00"+ue(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function he(e){return e<10?"0"+e:String(e)}function le(e){return ue(e.getFullYear())+"-"+he(e.getMonth()+1)+"-"+he(e.getDate())}var fe={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}},de={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["לְאַחַר הַשְׁקִיעָה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};const ge={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},me={h:"he",a:"ashkenazi",s:"en","":"en"},ye=new Map;let Se,pe;class we{static lookupTranslation(e,t){const n=("string"==typeof t&&ye.get(t.toLowerCase())||Se)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);ye.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=ye.get(e.toLowerCase());if(!r)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const o=Array.isArray(n);if(o){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=ye.get(e.toLowerCase());if(!n)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=e.toLowerCase(),n=ye.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return pe=me[t]||t,Se=n,Se}static getLocaleName(){return pe}static getLocaleNames(){return Array.from(ye.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||pe;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}we.addLocale("en",ge),we.addLocale("s",ge),we.addLocale("",ge),we.useLocale("en"),we.addLocale("ashkenazi",fe),we.addLocale("a",fe),we.addLocale("he",de),we.addLocale("h",de);const ve=de.contexts[""],Ae={};for(const[e,t]of Object.entries(ve))Ae[e]=[we.hebrewStripNikkud(t[0])];const be={headers:de.headers,contexts:{"":Ae}};we.addLocale("he-x-NoNikud",be);const Te="day",Ie="week",Me="month",Ee="year";class Oe{constructor(t,n,r){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const e="string"==typeof r?parseInt(r,10):r;if(isNaN(e))throw new TypeError(`HDate called with bad year argument: ${r}`);this.yy=e,function(e,t){e.mm=Oe.monthNum(t),Ce(e)}(this,n);const i="string"==typeof t?parseInt(t,10):t;if(isNaN(i))throw new TypeError(`HDate called with bad day argument: ${t}`);a=i,(o=this).dd=a,Ce(o)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):void 0!==t.yy?t:null:t;if(null===n)throw new TypeError(`HDate called with bad argument: ${t}`);const r="number"==typeof n,o=r?I(n):n;this.yy=o.yy,this.mm=o.mm,this.dd=o.dd,r&&(this.rd=n)}var o,a}getFullYear(){return this.yy}isLeapYear(){return M(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return O(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=b(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return b(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||we.getLocaleName(),r=this.getDate(),o=we.gettext(this.getMonthName(),n).replace(/'/g,"’"),a=we.ordinal(r,n),i=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=we.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${a}${i} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=we.gettext(this.getMonthName(),n),o=this.getFullYear();return V(t)+" "+r+" "+V(o)}before(e){return De(e,this,-1)}onOrBefore(e){return De(e,this,0)}nearest(e){return De(e,this,3)}onOrAfter(e){return De(e,this,6)}after(e){return De(e,this,7)}next(){return new Oe(this.abs()+1)}prev(){return new Oe(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new Oe(this);if(t=function(e){switch(e){case"d":return Te;case"w":return Ie;case"M":return Me;case"y":return Ee}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case Te:case Ie:case Me:case Ee:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===Te)return new Oe(this.abs()+e);if(t===Ie)return new Oe(this.abs()+7*e);if(t===Ee)return new Oe(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===Me){let t=new Oe(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Oe(t.abs()+n*t.daysInMonth());return t}throw new TypeError(`Invalid units '${t}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!Oe.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!Oe.isHDate(e)&&(this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return M(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return O(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):Oe.monthFromName(e)}static daysInYear(e){return D(e)}static longCheshvan(e){return N(e)}static shortKislev(e){return k(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(we.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=z(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=Oe.monthFromName(a);let s=z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Oe(o,i,s)}}function Ce(e){He(e),function(e){e.dd<1&&(e.mm===m.TISHREI&&(e.yy-=1),e.dd+=O(e.mm,e.yy),e.mm-=1,Ce(e));e.dd>O(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=O(e.mm,e.yy),e.mm===E(e.yy)?e.mm=1:e.mm+=1,Ce(e));He(e)}(e)}function He(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,Ce(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,Ce(e)):(e.mm-=1,Ce(e)),delete e.rd}function De(e,t,n){return new Oe(Oe.dayOnOrBefore(e,t.abs()+n))}class Ne{constructor(e,t){e=+e;const n=Oe.longCheshvan(e),r=Oe.shortKislev(e),o=n&&!r?2:!n&&r?0:1;this.year=e;const a=new Oe(1,m.TISHREI,e),i=a.abs(),s=a.getDay()+1;this.firstSaturday=Oe.dayOnOrBefore(6,i+6);const c=+Oe.isLeapYear(e);this.il=Boolean(t);let u=`${c}${s}${o}`;if(Je[u]||(u+=+this.il),this.theSedraArray=Je[u],!this.theSedraArray)throw new Error(`improper sedra year type ${u} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||we.getLocaleName();let o=we.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+we.gettext(n[1],r)}return o=o.replace(/'/g,"’"),we.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new Oe(this.firstSaturday+7*t)}if("string"==typeof e){const t=_e.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new Oe(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=_e.get(t);if(_e.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Oe.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Oe.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return new Ne(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[ke[o]],chag:!1,num:o+1};const a=Le(o);return{parsha:[ke[a],ke[a+1]],chag:!1,num:[a+1,a+2]}}}const ke=["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"],_e=new Map;for(let e=0;e<ke.length;e++){const t=ke[e];_e.set(t,e)}function Le(e){return-e}const Re="Rosh Hashana",Ye="Yom Kippur",Pe="Sukkot",je="Sukkot Shabbat Chol ha-Moed",Be="Shmini Atzeret",Fe=je,Ue="Pesach",xe="Pesach I",Ze="Pesach Shabbat Chol ha-Moed",$e="Pesach VII",Ve="Pesach VIII",ze="Shavuot";function Ke(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Ge=[],Je={"020":Ge.concat(51,52,Fe,Ke(0,20),Le(21),23,24,Ue,25,Le(26),Le(28),30,Le(31),Ke(33,40),Le(41),Ke(43,49),Le(50)),"0220":Ge.concat(51,52,Fe,Ke(0,20),Le(21),23,24,Ue,25,Le(26),Le(28),30,Le(31),33,ze,Ke(34,37),Le(38),40,Le(41),Ke(43,49),Le(50)),"0510":Ge.concat(52,Ye,Fe,Ke(0,20),Le(21),23,24,xe,Ve,25,Le(26),Le(28),30,Le(31),Ke(33,40),Le(41),Ke(43,50)),"0511":Ge.concat(52,Ye,Fe,Ke(0,20),Le(21),23,24,Ue,25,Le(26),Le(28),Ke(30,40),Le(41),Ke(43,50)),"052":Ge.concat(52,Ye,je,Ke(0,24),$e,25,Le(26),Le(28),30,Le(31),Ke(33,40),Le(41),Ke(43,50)),"070":Ge.concat(Re,52,Pe,Be,Ke(0,20),Le(21),23,24,$e,25,Le(26),Le(28),30,Le(31),Ke(33,40),Le(41),Ke(43,50)),"072":Ge.concat(Re,52,Pe,Be,Ke(0,20),Le(21),23,24,Ze,25,Le(26),Le(28),30,Le(31),Ke(33,40),Le(41),Ke(43,49),Le(50)),1200:Ge.concat(51,52,je,Ke(0,27),Ze,Ke(28,33),ze,Ke(34,37),Le(38),40,Le(41),Ke(43,49),Le(50)),1201:Ge.concat(51,52,je,Ke(0,27),Ze,Ke(28,40),Le(41),Ke(43,49),Le(50)),1220:Ge.concat(51,52,je,Ke(0,27),xe,Ve,Ke(28,40),Le(41),Ke(43,50)),1221:Ge.concat(51,52,je,Ke(0,27),Ue,Ke(28,50)),150:Ge.concat(52,Ye,je,Ke(0,28),$e,Ke(29,50)),152:Ge.concat(52,Ye,je,Ke(0,28),Ze,Ke(29,49),Le(50)),170:Ge.concat(Re,52,Pe,Be,Ke(0,27),Ze,Ke(28,40),Le(41),Ke(43,49),Le(50)),1720:Ge.concat(Re,52,Pe,Be,Ke(0,27),Ze,Ke(28,33),ze,Ke(34,37),Le(38),40,Le(41),Ke(43,49),Le(50))};Je["0221"]=Je["020"],Je["0310"]=Je["0220"],Je["0311"]=Je["020"],Je[1310]=Je[1220],Je[1311]=Je[1221],Je[1721]=Je[170];const We={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},qe=[[We.MAJOR_FAST,"holiday","major","fast"],[We.CHANUKAH_CANDLES,"holiday","major"],[We.HEBREW_DATE,"hebdate"],[We.MINOR_FAST,"holiday","fast"],[We.MINOR_HOLIDAY,"holiday","minor"],[We.MODERN_HOLIDAY,"holiday","modern"],[We.MOLAD,"molad"],[We.OMER_COUNT,"omer"],[We.PARSHA_HASHAVUA,"parashat"],[We.ROSH_CHODESH,"roshchodesh"],[We.SHABBAT_MEVARCHIM,"mevarchim"],[We.SPECIAL_SHABBAT,"holiday","shabbat"],[We.USER_EVENT,"user"]];class Xe{constructor(e,t,n=0,r){if(!Oe.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}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return we.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&We.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&We.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Xe(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}getCategories(){const e=this.getFlags();for(const t of qe){if(e&t[0])return t.slice(1)}return["unknown"]}}class Qe extends Xe{constructor(e){super(e,e.toString(),We.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:we.getLocaleName(),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=we.gettext(t.getMonthName(),e);return V(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:we.getLocaleName(),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)}}}var et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},tt=function(e){return e&&e.Math===Math&&e},nt=tt("object"==typeof globalThis&&globalThis)||tt("object"==typeof window&&window)||tt("object"==typeof self&&self)||tt("object"==typeof et&&et)||tt("object"==typeof et&&et)||function(){return this}()||Function("return this")(),rt={},ot=function(e){try{return!!e()}catch(e){return!0}},at=!ot((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),it=!ot((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),st=it,ct=Function.prototype.call,ut=st?ct.bind(ct):function(){return ct.apply(ct,arguments)},ht={},lt={}.propertyIsEnumerable,ft=Object.getOwnPropertyDescriptor,dt=ft&&!lt.call({1:2},1);ht.f=dt?function(e){var t=ft(this,e);return!!t&&t.enumerable}:lt;var gt,mt,yt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},St=it,pt=Function.prototype,wt=pt.call,vt=St&&pt.bind.bind(wt,wt),At=St?vt:function(e){return function(){return wt.apply(e,arguments)}},bt=At,Tt=bt({}.toString),It=bt("".slice),Mt=ot,Et=function(e){return It(Tt(e),8,-1)},Ot=Object,Ct=At("".split),Ht=Mt((function(){return!Ot("z").propertyIsEnumerable(0)}))?function(e){return"String"===Et(e)?Ct(e,""):Ot(e)}:Ot,Dt=function(e){return null==e},Nt=Dt,kt=TypeError,_t=function(e){if(Nt(e))throw new kt("Can't call method on "+e);return e},Lt=Ht,Rt=_t,Yt=function(e){return Lt(Rt(e))},Pt="object"==typeof document&&document.all,jt=void 0===Pt&&void 0!==Pt?function(e){return"function"==typeof e||e===Pt}:function(e){return"function"==typeof e},Bt=jt,Ft=function(e){return"object"==typeof e?null!==e:Bt(e)},Ut=nt,xt=jt,Zt=function(e,t){return arguments.length<2?(n=Ut[e],xt(n)?n:void 0):Ut[e]&&Ut[e][t];var n},$t=At({}.isPrototypeOf),Vt=nt,zt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Kt=Vt.process,Gt=Vt.Deno,Jt=Kt&&Kt.versions||Gt&&Gt.version,Wt=Jt&&Jt.v8;Wt&&(mt=(gt=Wt.split("."))[0]>0&&gt[0]<4?1:+(gt[0]+gt[1])),!mt&&zt&&(!(gt=zt.match(/Edge\/(\d+)/))||gt[1]>=74)&&(gt=zt.match(/Chrome\/(\d+)/))&&(mt=+gt[1]);var qt=mt,Xt=ot,Qt=nt.String,en=!!Object.getOwnPropertySymbols&&!Xt((function(){var e=Symbol("symbol detection");return!Qt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qt&&qt<41})),tn=en&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nn=Zt,rn=jt,on=$t,an=Object,sn=tn?function(e){return"symbol"==typeof e}:function(e){var t=nn("Symbol");return rn(t)&&on(t.prototype,an(e))},cn=String,un=jt,hn=function(e){try{return cn(e)}catch(e){return"Object"}},ln=TypeError,fn=function(e){if(un(e))return e;throw new ln(hn(e)+" is not a function")},dn=Dt,gn=ut,mn=jt,yn=Ft,Sn=TypeError,pn={exports:{}},wn=nt,vn=Object.defineProperty,An=function(e,t){try{vn(wn,e,{value:t,configurable:!0,writable:!0})}catch(n){wn[e]=t}return t},bn=nt,Tn=An,In="__core-js_shared__",Mn=pn.exports=bn[In]||Tn(In,{});(Mn.versions||(Mn.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var En=pn.exports,On=En,Cn=function(e,t){return On[e]||(On[e]=t||{})},Hn=_t,Dn=Object,Nn=function(e){return Dn(Hn(e))},kn=At({}.hasOwnProperty),_n=Object.hasOwn||function(e,t){return kn(Nn(e),t)},Ln=At,Rn=0,Yn=Math.random(),Pn=Ln(1..toString),jn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Pn(++Rn+Yn,36)},Bn=Cn,Fn=_n,Un=jn,xn=en,Zn=tn,$n=nt.Symbol,Vn=Bn("wks"),zn=Zn?$n.for||$n:$n&&$n.withoutSetter||Un,Kn=function(e){return Fn(Vn,e)||(Vn[e]=xn&&Fn($n,e)?$n[e]:zn("Symbol."+e)),Vn[e]},Gn=ut,Jn=Ft,Wn=sn,qn=function(e,t){var n=e[t];return dn(n)?void 0:fn(n)},Xn=function(e,t){var n,r;if("string"===t&&mn(n=e.toString)&&!yn(r=gn(n,e)))return r;if(mn(n=e.valueOf)&&!yn(r=gn(n,e)))return r;if("string"!==t&&mn(n=e.toString)&&!yn(r=gn(n,e)))return r;throw new Sn("Can't convert object to primitive value")},Qn=TypeError,er=Kn("toPrimitive"),tr=function(e,t){if(!Jn(e)||Wn(e))return e;var n,r=qn(e,er);if(r){if(void 0===t&&(t="default"),n=Gn(r,e,t),!Jn(n)||Wn(n))return n;throw new Qn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Xn(e,t)},nr=sn,rr=function(e){var t=tr(e,"string");return nr(t)?t:t+""},or=Ft,ar=nt.document,ir=or(ar)&&or(ar.createElement),sr=function(e){return ir?ar.createElement(e):{}},cr=sr,ur=!at&&!ot((function(){return 7!==Object.defineProperty(cr("div"),"a",{get:function(){return 7}}).a})),hr=at,lr=ut,fr=ht,dr=yt,gr=Yt,mr=rr,yr=_n,Sr=ur,pr=Object.getOwnPropertyDescriptor;rt.f=hr?pr:function(e,t){if(e=gr(e),t=mr(t),Sr)try{return pr(e,t)}catch(e){}if(yr(e,t))return dr(!lr(fr.f,e,t),e[t])};var wr={},vr=at&&ot((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ar=Ft,br=String,Tr=TypeError,Ir=function(e){if(Ar(e))return e;throw new Tr(br(e)+" is not an object")},Mr=at,Er=ur,Or=vr,Cr=Ir,Hr=rr,Dr=TypeError,Nr=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,_r="enumerable",Lr="configurable",Rr="writable";wr.f=Mr?Or?function(e,t,n){if(Cr(e),t=Hr(t),Cr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Rr in n&&!n[Rr]){var r=kr(e,t);r&&r[Rr]&&(e[t]=n.value,n={configurable:Lr in n?n[Lr]:r[Lr],enumerable:_r in n?n[_r]:r[_r],writable:!1})}return Nr(e,t,n)}:Nr:function(e,t,n){if(Cr(e),t=Hr(t),Cr(n),Er)try{return Nr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Dr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Yr=wr,Pr=yt,jr=at?function(e,t,n){return Yr.f(e,t,Pr(1,n))}:function(e,t,n){return e[t]=n,e},Br={exports:{}},Fr=at,Ur=_n,xr=Function.prototype,Zr=Fr&&Object.getOwnPropertyDescriptor,$r=Ur(xr,"name"),Vr={EXISTS:$r,PROPER:$r&&"something"===function(){}.name,CONFIGURABLE:$r&&(!Fr||Fr&&Zr(xr,"name").configurable)},zr=jt,Kr=En,Gr=At(Function.toString);zr(Kr.inspectSource)||(Kr.inspectSource=function(e){return Gr(e)});var Jr,Wr,qr,Xr=Kr.inspectSource,Qr=jt,eo=nt.WeakMap,to=Qr(eo)&&/native code/.test(String(eo)),no=jn,ro=Cn("keys"),oo=function(e){return ro[e]||(ro[e]=no(e))},ao={},io=to,so=nt,co=Ft,uo=jr,ho=_n,lo=En,fo=oo,go=ao,mo="Object already initialized",yo=so.TypeError,So=so.WeakMap;if(io||lo.state){var po=lo.state||(lo.state=new So);po.get=po.get,po.has=po.has,po.set=po.set,Jr=function(e,t){if(po.has(e))throw new yo(mo);return t.facade=e,po.set(e,t),t},Wr=function(e){return po.get(e)||{}},qr=function(e){return po.has(e)}}else{var wo=fo("state");go[wo]=!0,Jr=function(e,t){if(ho(e,wo))throw new yo(mo);return t.facade=e,uo(e,wo,t),t},Wr=function(e){return ho(e,wo)?e[wo]:{}},qr=function(e){return ho(e,wo)}}var vo={set:Jr,get:Wr,has:qr,enforce:function(e){return qr(e)?Wr(e):Jr(e,{})},getterFor:function(e){return function(t){var n;if(!co(t)||(n=Wr(t)).type!==e)throw new yo("Incompatible receiver, "+e+" required");return n}}},Ao=At,bo=ot,To=jt,Io=_n,Mo=at,Eo=Vr.CONFIGURABLE,Oo=Xr,Co=vo.enforce,Ho=vo.get,Do=String,No=Object.defineProperty,ko=Ao("".slice),_o=Ao("".replace),Lo=Ao([].join),Ro=Mo&&!bo((function(){return 8!==No((function(){}),"length",{value:8}).length})),Yo=String(String).split("String"),Po=Br.exports=function(e,t,n){"Symbol("===ko(Do(t),0,7)&&(t="["+_o(Do(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Io(e,"name")||Eo&&e.name!==t)&&(Mo?No(e,"name",{value:t,configurable:!0}):e.name=t),Ro&&n&&Io(n,"arity")&&e.length!==n.arity&&No(e,"length",{value:n.arity});try{n&&Io(n,"constructor")&&n.constructor?Mo&&No(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Co(e);return Io(r,"source")||(r.source=Lo(Yo,"string"==typeof t?t:"")),e};Function.prototype.toString=Po((function(){return To(this)&&Ho(this).source||Oo(this)}),"toString");var jo=Br.exports,Bo=jt,Fo=wr,Uo=jo,xo=An,Zo={},$o=Math.ceil,Vo=Math.floor,zo=Math.trunc||function(e){var t=+e;return(t>0?Vo:$o)(t)},Ko=zo,Go=function(e){var t=+e;return t!=t||0===t?0:Ko(t)},Jo=Go,Wo=Math.max,qo=Math.min,Xo=Go,Qo=Math.min,ea=function(e){var t=Xo(e);return t>0?Qo(t,9007199254740991):0},ta=Yt,na=function(e,t){var n=Jo(e);return n<0?Wo(n+t,0):qo(n,t)},ra=function(e){return ea(e.length)},oa=function(e){return function(t,n,r){var o=ta(t),a=ra(o);if(0===a)return!e&&-1;var i,s=na(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},aa={includes:oa(!0),indexOf:oa(!1)},ia=_n,sa=Yt,ca=aa.indexOf,ua=ao,ha=At([].push),la=function(e,t){var n,r=sa(e),o=0,a=[];for(n in r)!ia(ua,n)&&ia(r,n)&&ha(a,n);for(;t.length>o;)ia(r,n=t[o++])&&(~ca(a,n)||ha(a,n));return a},fa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],da=la,ga=fa.concat("length","prototype");Zo.f=Object.getOwnPropertyNames||function(e){return da(e,ga)};var ma={};ma.f=Object.getOwnPropertySymbols;var ya=Zt,Sa=Zo,pa=ma,wa=Ir,va=At([].concat),Aa=ya("Reflect","ownKeys")||function(e){var t=Sa.f(wa(e)),n=pa.f;return n?va(t,n(e)):t},ba=_n,Ta=Aa,Ia=rt,Ma=wr,Ea=ot,Oa=jt,Ca=/#|\.prototype\./,Ha=function(e,t){var n=Na[Da(e)];return n===_a||n!==ka&&(Oa(t)?Ea(t):!!t)},Da=Ha.normalize=function(e){return String(e).replace(Ca,".").toLowerCase()},Na=Ha.data={},ka=Ha.NATIVE="N",_a=Ha.POLYFILL="P",La=Ha,Ra=nt,Ya=rt.f,Pa=jr,ja=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(Bo(n)&&Uo(n,a,r),r.global)o?e[t]=n:xo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Fo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Ba=An,Fa=function(e,t,n){for(var r=Ta(t),o=Ma.f,a=Ia.f,i=0;i<r.length;i++){var s=r[i];ba(e,s)||n&&ba(n,s)||o(e,s,a(t,s))}},Ua=La,xa={},Za=la,$a=fa,Va=Object.keys||function(e){return Za(e,$a)},za=at,Ka=vr,Ga=wr,Ja=Ir,Wa=Yt,qa=Va;xa.f=za&&!Ka?Object.defineProperties:function(e,t){Ja(e);for(var n,r=Wa(t),o=qa(t),a=o.length,i=0;a>i;)Ga.f(e,n=o[i++],r[n]);return e};var Xa,Qa=Zt("document","documentElement"),ei=Ir,ti=xa,ni=fa,ri=ao,oi=Qa,ai=sr,ii="prototype",si="script",ci=oo("IE_PROTO"),ui=function(){},hi=function(e){return"<"+si+">"+e+"</"+si+">"},li=function(e){e.write(hi("")),e.close();var t=e.parentWindow.Object;return e=null,t},fi=function(){try{Xa=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;fi="undefined"!=typeof document?document.domain&&Xa?li(Xa):(t=ai("iframe"),n="java"+si+":",t.style.display="none",oi.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(hi("document.F=Object")),e.close(),e.F):li(Xa);for(var r=ni.length;r--;)delete fi[ii][ni[r]];return fi()};ri[ci]=!0;var di=Object.create||function(e,t){var n;return null!==e?(ui[ii]=ei(e),n=new ui,ui[ii]=null,n[ci]=e):n=fi(),void 0===t?n:ti.f(n,t)},gi=Kn,mi=di,yi=wr.f,Si=gi("unscopables"),pi=Array.prototype;void 0===pi[Si]&&yi(pi,Si,{configurable:!0,value:mi(null)});var wi=aa.includes,vi=function(e){pi[Si][e]=!0};function Ai(e,t,n,r,o){return bi(t,Ti(e,t),n,r,o)}function bi(e,t,n,r,o,a){const i=$i(t,n,r);if(o&&t!==i)throw new RangeError(ql(e,t,n,r,a));return i}function Ti(e,t){const n=e[t];if(void 0===n)throw new TypeError(Ql(t));return n}function Ii(e){return null!==e&&/object|function/.test(typeof e)}function Mi(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Ei(e){return Oi({name:e},1)}function Oi(e,t){return Ni((e=>({value:e,configurable:1,writable:!t})),e)}function Ci(e){return Ni((e=>({get:e,configurable:1})),e)}function Hi(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Di(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Ni(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function ki(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function _i(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Li(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Ri(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Yi(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function Pi(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function ji(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Bi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function Fi(e){return e[0].toUpperCase()+e.substring(1)}function Ui(e){return e.slice().sort()}function xi(e,t){return String(t).padStart(e,"0")}function Zi(e,t){return Math.sign(e-t)}function $i(e,t,n){return Math.min(Math.max(e,t),n)}function Vi(e,t){return[Math.floor(e/t),zi(e,t)]}function zi(e,t){return(e%t+t)%t}function Ki(e,t){return[Gi(e,t),Ji(e,t)]}function Gi(e,t){return Math.trunc(e/t)||0}function Ji(e,t){return e%t||0}function Wi(e){return.5===Math.abs(e%1)}function qi(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=Jf[a],s=Gf/i,[c,u]=Ki(t,s);r+=u*i,o+=c}const[a,i]=Ki(r,Gf);return[o+a,i]}function Xi(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Jf[o];r[n[o]]=Gi(e,t),e=Ji(e,t)}return r}function Qi(e){if(void 0!==e)return ts(e)}function es(e){return ss(ts(e))}function ts(e){return is(bd(e))}function ns(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function rs(e,t){if(null==t)throw new RangeError(Ql(e));return t}function os(e){if(!Ii(e))throw new TypeError(Wl);return e}function as(e,t){if(typeof t!==e)throw new TypeError(Xl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError($l(t,e));return e||0}function ss(e){if(e<=0)throw new RangeError(Vl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function cs(e){if("symbol"==typeof e)throw new TypeError(Jl);return String(e)}function us(e,t){return Ii(e)?String(e):vd(e,t)}function hs(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Gl(e));return e}function ls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(Kl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(zl(t,e));return e}function fs(e,t){return Math.trunc(ls(e,t))||0}function ds(e,t){return is(ls(e,t),t)}function gs(e,t){return ss(fs(e,t),t)}function ms(e,t){let[n,r]=Ki(t,Gf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Gf),[o,r]}function ys(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return ms(e[0]+t[0]*n,e[1]+t[1]*n)}function Ss(e,t){return ms(e[0],e[1]+t)}function ps(e,t){return ys(t,e,-1)}function ws(e,t){return Zi(e[0],t[0])||Zi(e[1],t[1])}function vs(e,t,n){return-1===ws(e,t)||1===ws(e,n)}function As(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Gf/t);return[Number(e/n),Number(e%n)*t]}function bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Gf/t,[r,o]=Ki(e,n);return[r,o*t]}function Ts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Gf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=Ki(o,t);return r*(Gf/t)+(a+(n?i/t:0))}function Ms(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vi;const[r,o]=e,[a,i]=n(o,t);return[r*(Gf/t)+a,i]}function Es(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Os(e){return Ai(e,"isoYear",Gd,Kd,1),e.isoYear===Gd?Ai(e,"isoMonth",4,12,1):e.isoYear===Kd&&Ai(e,"isoMonth",1,9,1),e}function Cs(e){return Hs({...e,...Bd,isoHour:12}),e}function Hs(e){const t=Ai(e,"isoYear",Gd,Kd,1),n=t===Gd?1:t===Kd?-1:0;return n&&Ds(Ys({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Ds(e){if(!e||vs(e,zd,Vd))throw new RangeError(Mf);return e}function Ns(e){return qi(e,5,_d)[1]}function ks(e){const[t,n]=Vi(e,Gf);return[Xi(n,5,_d),t]}function _s(e){return Ls(e)[0]}function Ls(e){return Ms(e,Vf)}function Rs(e){return Bs(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Ys(e){const t=Rs(e);if(void 0!==t){const[n,r]=Ki(t,Uf);return[n,r*$f+(e.isoMicrosecond||0)*Zf+(e.isoNanosecond||0)]}}function Ps(e,t){const[n,r]=ks(Ns(e)-t);return Ds(Ys({...e,isoDay:e.isoDay+r,...n}))}function js(){return Bs(...arguments)/xf}function Bs(){const[e,t]=Fs(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*Uf}function Fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Gd?1:e===Kd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function Us(e,t){let[n,r]=Ss(e,t);r<0&&(r+=Gf,n-=1);const[o,a]=Vi(r,$f),[i,s]=Vi(a,Zf);return xs(n*Uf+o,i,s)}function xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-$d)/Uf)*Math.sign(e),o=new Date(e-r*Uf);return Di(Rd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Zs(e){return[e.isoYear,e.isoMonth,e.isoDay]}function $s(){return qd}function Vs(e,t){switch(t){case 2:return Ks(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function zs(e){return Ks(e)?366:365}function Ks(e){return e%4==0&&(e%100!=0||e%400==0)}function Gs(e){const[t,n]=Fs(e.isoYear,e.isoMonth,e.isoDay);return zi(t.getUTCDay()-n,7)||7}function Js(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Ws(e){const t=Rs(e);if(t<Xd)return Js(e);const n=Es(im(yd),t),{era:r,eraYear:o}=Gh(n,yd);return[r,o]}function qs(e){return Xs(e),tc(e,1),e}function Xs(e){return ec(e,1),e}function Qs(e){return Pi(Ld,e,ec(e))}function ec(e,t){const{isoYear:n}=e,r=Ai(e,"isoMonth",1,$s(),t);return{isoYear:n,isoMonth:r,isoDay:Ai(e,"isoDay",1,Vs(n,r),t)}}function tc(e,t){return Di(_d,[Ai(e,"isoHour",0,23,t),Ai(e,"isoMinute",0,59,t),Ai(e,"isoSecond",0,59,t),Ai(e,"isoMillisecond",0,999,t),Ai(e,"isoMicrosecond",0,999,t),Ai(e,"isoNanosecond",0,999,t)])}function nc(e){return void 0===e?0:yg(os(e))}function rc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=gc(e);const n=Sg(e),r=pg(e,t);return[yg(e),r,n]}function oc(e){return Sg(gc(e))}function ac(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=gc(t);let i=gg(t,r,o),s=lc(t),c=bg(t,a);const u=dg(t,r,o,1);return null==i?i=Math.max(n,u):vc(i,u),s=fc(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function ic(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=lc(e=mc(e,eg));const o=bg(e,7);let a=dg(e,t);return a=rs(eg,a),r=fc(r,a,void 0,n),[a,r,o]}function sc(e){return wg(gc(e))}function cc(e,t){return uc(gc(e),t)}function uc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=dc(e);return[bg(e,4),...hc(dg(e,t),n)]}function hc(e,t){return null!=e?[Jf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function lc(e){const t=e[ng];return void 0===t?1:fs(t,ng)}function fc(e,t,n,r){const o=r?Gf:Jf[t+1];if(o){const n=Jf[t];if(o%((e=bi(ng,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Xl(ng,e))}else e=bi(ng,e,1,n?10**9:1,1);return e}function dc(e){let t=e[rg];if(void 0!==t){if("number"!=typeof t){if("auto"===cs(t))return;throw new RangeError(Xl(rg,t))}t=bi(rg,Math.floor(t),0,9,1)}return t}function gc(e){return void 0===e?{}:os(e)}function mc(e,t){return"string"==typeof e?{[t]:e}:os(e)}function yc(e){if(void 0!==e){if(Ii(e))return Object.assign(Object.create(null),e);throw new TypeError(Wl)}}function Sc(e,t){return e&&Object.assign(Object.create(null),e,{overflow:ig[t]})}function pc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=cs(a),"auto"===a)return o?r:null;let i=Bf[a];if(void 0===i&&(i=Hd[a]),void 0===i)throw new RangeError(rf(e,a,Bf));return bi(e,i,r,n,1,Ff),i}function wc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=cs(o),i=t[a];if(void 0===i)throw new RangeError(rf(e,a,t));return i}function vc(e,t){if(t>e)throw new RangeError(Nf)}function Ac(e){return{branding:Hg,epochNanoseconds:e}}function bc(e,t,n){return{branding:Cg,calendar:n,timeZone:t,epochNanoseconds:e}}function Tc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Eg,calendar:t,...Li(jd,e)}}function Ic(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Mg,calendar:t,...Li(Yd,e)}}function Mc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Tg,calendar:t,...Li(Yd,e)}}function Ec(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Ig,calendar:t,...Li(Yd,e)}}function Oc(e){return{branding:Og,...Li(Pd,e)}}function Cc(e){return{branding:Dg,sign:Vu(e),...Li(Md,e)}}function Hc(e){return Ms(e.epochNanoseconds,$f)[0]}function Dc(e){return e.epochNanoseconds}function Nc(e){return"string"==typeof e?e:vd(e.id)}function kc(e,t){return e===t||Nc(e)===Nc(t)}function _c(e,t,n,r,o,a){const i={...Dd,[Id[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function Lc(e,t,n){const r=Is(ps(t,n));if(!r)throw new RangeError(yf);return Is(ps(t,e))/r}function Rc(e,t,n,r){return Yc(e,Bc(t,n),r)}function Yc(e,t,n){const[r,o]=Pc(e,t,n);return Hs({...Lu(e,o),...r})}function Pc(e,t,n){return ks(zc(Ns(e),t,n))}function jc(e){return zc(e,zf,7)}function Bc(e,t){return Jf[e]*t}function Fc(e){const t=Uc(e);return[t,Lu(t,1)]}function Uc(e){return Fd(6,e)}function xc(e,t,n){const r=Math.min(Xu(e),6);return Ju(Vc(Gu(e,r),t,n),r)}function Zc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Wc:Bu(i)&&r<6?Jc:Gc;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=Vu(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=kd(c,e);r[Id[c]]+=s;const u=Is(ps(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function $c(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Gf)(e);return[zc(t,n,r),0]}return Vc(e,Bc(t,n),r,o)}function Vc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Gf,o-=1);const[i,s]=Vi(zc(a,t,n),Gf);return ms(o+i,s)}function zc(e,t,n){return Kc(e/t,n)*t}function Kc(e,t){return Ng[t](e)}function Gc(e,t,n,r,o,a){const i=Vu(e),s=Gu(e),c=$c(s,r,o,a),u=ps(s,c),h=Math.sign(c[0]-s[0])===i,l=Ju(c,Math.min(n,6));return[{...e,...l},ys(t,u),h]}function Jc(e,t,n,r,o,a,i,s,c){const u=Vu(e);let[h,l]=Gu(e,5);const f=Bc(r,o);let d=zc(l,f,a);const[g,m]=_c({...e,...Nd},6,u,i,s,c),y=d-Is(ps(g,m));y&&Math.sign(y)!==u?t=Ss(g,d):(h+=u,d=zc(y,f,a),t=Ss(m,d));const S=Wu(d);return[{...e,...S,days:e.days+h},t,Boolean(h)]}function Wc(e,t,n,r,o,a,i,s,c){const u=Vu(e),h=Id[r],l=kd(r,e),f=Gi(e[h],o)*o;l[h]=f;const[d,g]=_c(l,r,o*u,i,s,c),m=f+Lc(t,d,g)*u*o,y=zc(m,o,a),S=Math.sign(y-m)===u;return l[h]=y,[l,S?g:d,S]}function qc(e,t,n,r){const[o,a,i,s]=(e=>{const t=uc(e=gc(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=Vc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return su(Us(n,i),a)+(e?fu(jc(i)):"Z")})(c,t(c?e(o):kg),n.epochNanoseconds,a,i,s)}function Xc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=gc(e);const t=wg(e),n=dc(e),r=Ag(e),o=bg(e,4),a=dg(e,4);return[t,vg(e),r,o,...hc(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=Vc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return su(Us(r,h),u)+fu(jc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+Nc(e)+"]":"")(n,a)+du(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Qc(e,t){const[n,r,o,a]=(e=>(e=gc(e),[wg(e),...uc(e)]))(t);return i=e.calendar,s=n,c=a,su(Yc(e,o,r),c)+du(i,s);var i,s,c}function eu(e,t){return n=e.calendar,r=e,o=sc(t),cu(r)+du(n,o);var n,r,o}function tu(e,t){return au(e.calendar,uu,e,sc(t))}function nu(e,t){return au(e.calendar,hu,e,sc(t))}function ru(e,t){const[n,r,o]=cc(t);return a=o,lu(Pc(e,r,n)[0],a);var a}function ou(e,t){const[n,r,o]=cc(t,3);return r>1&&(e={...e,...xc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?$u(e):e,{hours:o,minutes:a}=r,[i,s]=Ms(Gu(r,3),Vf,Ki);Ku(i);const c=mu(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+iu({Y:Su(r.years),M:Su(r.months),W:Su(r.weeks),D:Su(r.days)})+(o||a||i||u?"T"+iu({H:Su(o),M:Su(a),S:Su(i,u)+c}):"")})(e,o)}function au(e,t,n,r){const o=Nc(e),a=r>1||0===r&&o!==gd;return 1===r?o===gd?t(n):cu(n):a?cu(n)+gu(o,2===r):t(n)}function iu(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function su(e,t){return cu(e)+"T"+lu(e,t)}function cu(e){return uu(e)+"-"+jf(e.isoDay)}function uu(e){const{isoYear:t}=e;return(t<0||t>9999?yu(t)+xi(6,Math.abs(t)):xi(4,t))+"-"+jf(e.isoMonth)}function hu(e){return jf(e.isoMonth)+"-"+jf(e.isoDay)}function lu(e,t){const n=[jf(e.isoHour),jf(e.isoMinute)];return-1!==t&&n.push(jf(e.isoSecond)+((e,t,n,r)=>mu(e*$f+t*Zf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function fu(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=Vi(Math.abs(e),Kf),[r,o]=Vi(n,zf),[a,i]=Vi(o,Vf);return yu(e)+jf(t)+":"+jf(r)+(a||i?":"+jf(a)+mu(i):"")}function du(e,t){if(1!==t){const n=Nc(e);if(t>1||0===t&&n!==gd)return gu(n,2===t)}return""}function gu(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function mu(e,t){let n=xi(9,e);return n=void 0===t?n.replace(Yg,""):n.slice(0,t),n?"."+n:""}function yu(e){return e<0?"-":"+"}function Su(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function pu(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=Us(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function wu(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return Ps(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Ys(t);r&&(n=jc(n));for(const t of e){let e=Is(ps(t,o));if(r&&(e=jc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Tf)}return i?Ys(t):vu(e,t,o,s)}function vu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(If);if(r.length)return r[3===n?1:0];const o=Ys(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(Ss(t,-Gf));return bu(e.getOffsetNanosecondsFor(Ss(t,Gf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(Us(o,i)))[2===n?0:r.length-1]}function Au(e){if(Math.abs(e)>=Gf)throw new RangeError(Af);return e}function bu(e){if(e>Gf)throw new RangeError(bf);return e}function Tu(e,t,n){return Ac(Ds(ys(t.epochNanoseconds,(e=>{if(qu(e))throw new RangeError(Hf);return Gu(e,5)})(e?$u(n):n))))}function Iu(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...Hu(s,i,r,n?$u(o):o,a)}}function Mu(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Tc(Du(e(a),n,t?$u(r):r,o),a)}function Eu(e,t,n,r,o){const{calendar:a}=n;return Ic(Nu(e(a),n,t?$u(r):r,o),a)}function Ou(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=ku(i,n);t&&(r=Zu(r)),r.sign<0&&(s=i.dateAdd(s,{...Dd,months:1}),s=Lu(s,-1));const c=i.dateAdd(s,r,o);return Mc(ku(i,c),a)}function Cu(e,t,n){return Oc(_u(t,e?$u(n):n)[0])}function Hu(e,t,n,r,o){const a=Gu(r,5);let i=n.epochNanoseconds;if(qu(r)){const s=Pg(n,t);i=ys(vu(t,{...Nu(e,s,{...r,...Nd},o),...Li(_d,s)}),a)}else i=ys(i,a),nc(o);return{epochNanoseconds:Ds(i)}}function Du(e,t,n,r){const[o,a]=_u(t,n);return Hs({...Nu(e,t,{...n,...Nd,days:n.days+a},r),...o})}function Nu(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);nc(r);const o=n.days+Gu(n,5)[0];return o?Cs(Lu(t,o)):t}function ku(e,t){return Lu(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function _u(e,t){const[n,r]=Gu(t,5),[o,a]=ks(Ns(e)+r);return[o,n+a]}function Lu(e,t){return t?{...e,...xs(Rs(e)+t*Uf)}:e}function Ru(e,t,n){const r=e(n.calendar);return Bu(n)?[n,r,t(n.timeZone)]:[{...n,...Bd},r]}function Yu(e){return e?Dc:Ys}function Pu(e,t){return t?Bi(Hu,e,t):Bi(Du,e)}function ju(e,t){return t?Bi(Rh,e,t):Bi(Yh,e)}function Bu(e){return e&&e.epochNanoseconds}function Fu(e,t){return e<=6-(Bu(t)?1:0)}function Uu(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function xu(e,t,n,r,o,a,i){const s=e(gc(i).relativeTo),c=Math.max(Xu(o),Xu(a));if(Fu(c,s))return Cc(zu(((e,t,n,r)=>{const o=ys(Gu(e),Gu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Mf);return{...Dd,...Ju(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(Cf);r&&(a=$u(a));const[u,h,l]=Ru(t,n,s),f=Pu(h,l),d=ju(h,l),g=f(u,o);return Cc(d(u,f(g,a),c))}function Zu(e){return Cc($u(e))}function $u(e){const t={};for(const n of Id)t[n]=-1*e[n]||0;return t}function Vu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Id,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Of);n=t}}return n}function zu(e){for(const t of Cd)bi(t,e[t],-jg,jg,1);return Ku(Is(Gu(e),Vf)),e}function Ku(e){if(!Number.isSafeInteger(e))throw new RangeError(Ef)}function Gu(e){return qi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Id)}function Ju(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Xi(r,t,Id);if(o[Id[t]]+=n*(Gf/Jf[t]),!Number.isFinite(o[Id[t]]))throw new RangeError(Mf);return o}function Wu(e){return Xi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Id)}function qu(e){return Boolean(Vu(e,Od))}function Xu(e){let t=9;for(;t>0&&!e[Id[t]];t--);return t}function Qu(e,t){return[e,t]}function eh(e){const t=Math.floor(e/_g)*_g;return[t,t+_g]}function th(e){const t=lh(e);if(void 0===t)throw new RangeError(kf(e));return t}function nh(e){const t=ch(vd(e));if(!t||t.O)throw new RangeError(kf(e));return Ic(t.I?ah(t):ih(t))}function rh(e){if(e.calendar!==gd)throw new RangeError(_f(e.calendar))}function oh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=wh(e.timeZone),a=Bg(o);return bc(wu(a,qs(e),t,n,r,!a.R,e.O),o,rl(e.calendar))}function ah(e){return sh(Hs(qs(e)))}function ih(e){return sh(Cs(Xs(e)))}function sh(e){return{...e,calendar:rl(e.calendar)}}function ch(e){const t=Xg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:fh(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...dh(e.slice(5)),...gh(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function uh(e){const t=Wg.exec(e);return t?(e=>({isoYear:fh(e),isoMonth:parseInt(e[4]),isoDay:1,...gh(e[5])}))(t):void 0}function hh(e){const t=qg.exec(e);return t?(e=>({isoYear:Wd,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...gh(e[3])}))(t):void 0}function lh(e,t){const n=em.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(_f(n));return Au((ph(e[2])*Kf+ph(e[3])*zf+ph(e[4])*Vf+mh(e[5]||""))*Sh(e[1]))})(n,t):void 0}function fh(e){const t=Sh(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(_f(-0));return t*n}function dh(e){const t=ph(e[3]);return{...ks(mh(e[4]||""))[0],isoHour:ph(e[1]),isoMinute:ph(e[2]),isoSecond:60===t?59:t}}function gh(e){let t,n;const r=[];if(e.replace(tm,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(_f(e))}else{if(n)throw new RangeError(_f(e));n=s}return""})),r.length>1&&t)throw new RangeError(_f(e));return{timeZone:n,calendar:r[0]||gd}}function mh(e){return parseInt(e.padEnd(9,"0"))}function yh(e){return new RegExp(`^${e}$`,"i")}function Sh(e){return e&&"+"!==e?-1:1}function ph(e){return void 0===e?0:parseInt(e)}function wh(e){const t=Ah(e);return"number"==typeof t?fu(t):t?(e=>{if(om.test(e))throw new RangeError(vf);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?Fi(e).replace(/island|noronha|murdo|rivadavia|urville/,Fi):e)))).join("/")})(e):kg}function vh(e){const t=Ah(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:kg}function Ah(e){const t=lh(e=e.toUpperCase(),1);return void 0!==t?t:e!==kg?rm(e):void 0}function bh(e,t){return ws(e.epochNanoseconds,t.epochNanoseconds)}function Th(e,t){return ws(e.epochNanoseconds,t.epochNanoseconds)}function Ih(e,t){return Mh(e,t)||Eh(e,t)}function Mh(e,t){return Zi(Rs(e),Rs(t))}function Eh(e,t){return Zi(Ns(e),Ns(t))}function Oh(e,t){if(e===t)return 1;const n=Nc(e),r=Nc(t);if(n===r)return 1;try{return vh(n)===vh(r)}catch(e){}}function Ch(e,t,n,r){const o=ac(e,yc(r),3,5),a=Bh(t.epochNanoseconds,n.epochNanoseconds,...o);return Cc(e?$u(a):a)}function Hh(e,t,n,r,o,a){const i=$h(r.calendar,o.calendar),s=yc(a),[c,u,h,l]=ac(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=ws(d,f);let m;if(g)if(c<6)m=Bh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!Oh(e,t))throw new RangeError(wf);return e})(r.timeZone,o.timeZone)),a=e(i);m=Ph(a,n,r,o,g,c,s),m=Zc(m,d,c,u,h,l,r,Dc,Bi(Hu,a,n))}else m=Dd;return Cc(n?$u(m):m)}function Dh(e,t,n,r,o){const a=$h(n.calendar,r.calendar),i=yc(o),[s,c,u,h]=ac(t,i,6),l=Ys(n),f=Ys(r),d=ws(f,l);let g;if(d)if(s<=6)g=Bh(l,f,s,c,u,h);else{const t=e(a);g=jh(t,n,r,d,s,i),g=Zc(g,f,s,c,u,h,n,Ys,Bi(Du,t))}else g=Dd;return Cc(t?$u(g):g)}function Nh(e,t,n,r,o){const a=$h(n.calendar,r.calendar),i=yc(o);return _h(t,(()=>e(a)),n,r,...ac(t,i,6,9,6),i)}function kh(e,t,n,r,o){const a=$h(n.calendar,r.calendar),i=yc(o),s=ac(t,i,9,9,8),c=e(a);return _h(t,(()=>c),ku(c,n),ku(c,r),...s,i)}function _h(e,t,n,r,o,a,i,s,c){const u=Ys(n),h=Ys(r);let l;if(ws(h,u))if(6===o)l=Bh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=Zc(l,h,o,a,i,s,n,Ys,Bi(Nu,e)))}else l=Dd;return Cc(e?$u(l):l)}function Lh(e,t,n,r){const o=yc(r),[a,i,s,c]=ac(e,o,5,5),u=zc(Zh(t,n),Bc(i,s),c),h={...Dd,...Wu(u,a)};return Cc(e?$u(h):h)}function Rh(e,t,n,r,o,a){const i=ws(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?Fh(n.epochNanoseconds,r.epochNanoseconds,o):Ph(e,t,n,r,i,o,a):Dd}function Yh(e,t,n,r,o){const a=Ys(t),i=Ys(n),s=ws(i,a);return s?r<=6?Fh(a,i,r):jh(e,t,n,s,r,o):Dd}function Ph(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...Lu(s,u++*-r),...i},f=vu(e,l),ws(c,f)===-r}const a=Pg(t,e),i=Li(_d,a),s=Pg(n,e),c=n.epochNanoseconds;let u=0;const h=Zh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(yf);const d=Is(ps(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...Dd,days:Uh(h,l)}):e.dateUntil(s,c,a,i),...Wu(u)}}function jh(e,t,n,r,o,a){let i=t,s=Zh(t,n);return Math.sign(s)===-r&&(i=Lu(t,r),s+=Gf*r),{...e.dateUntil(i,n,o,a),...Wu(s)}}function Bh(e,t,n,r,o,a){return{...Dd,...Ju($c(ps(e,t),r,o,a),n)}}function Fh(e,t,n){return{...Dd,...Ju(ps(e,t),n)}}function Uh(e,t){return xh(Rs(e),Rs(t))}function xh(e,t){return Math.trunc((t-e)/Uf)}function Zh(e,t){return Ns(t)-Ns(e)}function $h(e,t){if(!kc(e,t))throw new RangeError(Sf);return e}function Vh(e){function t(e){return((e,t)=>({...Gh(e,t),o:e.month,day:parseInt(e.day)}))(Es(n,e),r)}const n=im(e),r=ol(e);return{id:e,h:zh(t),l:Kh(t)}}function zh(e){return Mi((t=>{const n=Rs(t);return e(n)}),WeakMap)}function Kh(e){const t=e(0).year-Jd;return Mi((n=>{let r,o=Bs(n-t);const a=[],i=[];do{o+=400*Uf}while((r=e(o)).year<=n);do{o+=(1-r.day)*Uf,r.year===n&&(a.push(o),i.push(r.o)),o-=Uf}while((r=e(o)).year>=n);return{i:a.reverse(),u:Yf(i.reverse())}}))}function Gh(e,t){let n,r,o=Jh(e);if(e.era){const i=Sd[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=pd[a]||a,r=o,o=ll(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function Jh(e){return parseInt(e.relatedYear||e.year)}function Wh(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function qh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*Uf}function Xh(e){const t=nl(this,e),n=nl(this,e-1),r=t.length;if(r>n.length){const e=dl(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Qh(e){return xh(qh.call(this,e),qh.call(this,e+1))}function el(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),xh(n[t-1],o[r-1])}function tl(e){return this.l(e).i.length}function nl(e,t){return Object.keys(e.l(t).u)}function rl(e){if((e=e.toLowerCase())!==gd&&e!==md&&ol(e)!==ol(im(e).resolvedOptions().calendar))throw new RangeError(pf(e));return e}function ol(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function al(e){return this.m(e)[0]}function il(e){return this.m(e)[1]}function sl(e){const[t]=this.v(e);return xh(this.p(t),Rs(e))+1}function cl(e){const t=sm.exec(e);if(!t)throw new RangeError(lf(e));return[parseInt(t[1]),Boolean(t[2])]}function ul(e,t,n){return e+(t||n&&e>=n?1:0)}function hl(e,t){return e-(t&&e>=t?1:0)}function ll(e,t){return(t+e)*(Math.sign(t)||1)||0}function fl(e){return Sd[gl(e)]}function dl(e){return wd[gl(e)]}function gl(e){return ol(e.id||gd)}function ml(e,t,n,r){const o=wl(n,r,hd,[],td);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Al(o),i=e(o.timeZone);return{epochNanoseconds:wu(t(i),{...r,...a},void 0!==o.offset?th(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...Bd}}function yl(e,t,n){const r=wl(e,t,hd,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Sl(e,t,n,r){const o=wl(e,t,cd,r);return e.yearMonthFromFields(o,n)}function pl(e,t,n,r){const o=wl(e,n,hd,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Wd),e.monthDayFromFields(o,r)}function wl(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return vl(t,[...e.fields(n),...o].sort(),r)}function vl(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(tf(r));if("constructor"===r||"__proto__"===r)throw new RangeError(ef(r));let t=e[r];if(void 0!==t)i=1,lm[r]&&(t=lm[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(Ql(r));o[r]=dd[r]}a=r}if(r&&!i)throw new TypeError(nf(t));return o}function Al(e,t){return tc(fm({...dd,...e}),t)}function bl(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=vl(t,i,a);const c=vl(n,i);return s=e.mergeFields(s,c),vl(s,i,[])}function Tl(e,t){const n=wl(e,t,fd);return e.monthDayFromFields(n)}function Il(e,t,n){const r=wl(e,t,ud);return e.yearMonthFromFields(r,n)}function Ml(e,t,n,r,o){t=Li(n=e.fields(n),t),r=vl(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=vl(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function El(e,t){let{era:n,eraYear:r,year:o}=t;const a=fl(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(sf);if(!a)throw new RangeError(af);const e=a[n];if(void 0===e)throw new RangeError(uf(n));const t=ll(r,e);if(void 0!==o&&o!==t)throw new RangeError(cf);o=t}else if(void 0===o)throw new TypeError(hf(a));return o}function Ol(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=cl(t);let s=ul(a,i,o);if(i){const t=dl(e);if(void 0===t)throw new RangeError(mf);if(t>0){if(s>t)throw new RangeError(mf);if(void 0===o){if(1===r)throw new RangeError(mf);s--}}else{if(s!==-t)throw new RangeError(mf);if(void 0===o&&1===r)throw new RangeError(mf)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(ff);o=t,r=1}else if(void 0===o)throw new TypeError(df);return bi("month",o,1,e.j(n),r)}function Cl(e,t,n,r,o){return Ai(t,"day",1,e.N(r,n),o)}function Hl(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function Dl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gd;return bc(e.epochNanoseconds,t,n)}function Nl(e,t){return Tc(Pg(t,e))}function kl(e,t){return Ic(Pg(t,e))}function _l(e,t){return Oc(Pg(t,e))}function Ll(e,t){return{...e,calendar:t}}function Rl(e,t){if(e===t)return e;const n=Nc(e),r=Nc(t);if(n===r||n===gd)return t;if(r===gd)return e;throw new RangeError(Sf)}function Yl(e,t){return n=>n===gd?e:n===md||n===yd?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),am(n))}function Pl(e,t,n){const r=new Set(n);return o=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(o=Ri(r,o),e)||Object.assign(o,t),n&&(o.timeZone=kg,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function jl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bl;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Um;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...Fl(e,h,s)]}}function Bl(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(Rf);n.timeZone=e}return new Ud(t,n)}function Fl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==gd)&&e!==t)throw new RangeError(Sf)})(Nc(e.calendar),t.calendar,o),r(e,t))))}function Ul(e){const t=xl();return Us(t,e.getOffsetNanosecondsFor(t))}function xl(){return bs(Date.now(),$f)}function Zl(){return Jm||(Jm=(new Ud).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?Ra:u?Ra[s]||Ba(s,{}):Ra[s]&&Ra[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Ya(n,r))&&i.value:n[r],!Ua(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Fa(a,o)}(e.sham||o&&o.sham)&&Pa(a,"sham",!0),ja(n,r,a,e)}})({target:"Array",proto:!0,forced:ot((function(){return!Array(1).includes()}))},{includes:function(e){return wi(this,e,arguments.length>1?arguments[1]:void 0)}}),vi("includes");const $l=(e,t)=>`Non-integer ${e}: ${t}`,Vl=(e,t)=>`Non-positive ${e}: ${t}`,zl=(e,t)=>`Non-finite ${e}: ${t}`,Kl=e=>`Cannot convert bigint to ${e}`,Gl=e=>`Invalid bigint: ${e}`,Jl="Cannot convert Symbol to string",Wl="Invalid object",ql=(e,t,n,r,o)=>o?ql(e,o[t],o[n],o[r]):Xl(e,t)+`; must be between ${n}-${r}`,Xl=(e,t)=>`Invalid ${e}: ${t}`,Ql=e=>`Missing ${e}`,ef=e=>`Invalid field ${e}`,tf=e=>`Duplicate field ${e}`,nf=e=>"No valid fields: "+e.join(),rf=(e,t,n)=>Xl(e,t)+"; must be "+Object.keys(n).join(),of="Invalid calling context",af="Forbidden era/eraYear",sf="Mismatching era/eraYear",cf="Mismatching year/eraYear",uf=e=>`Invalid era: ${e}`,hf=e=>"Missing year"+(e?"/era/eraYear":""),lf=e=>`Invalid monthCode: ${e}`,ff="Mismatching month/monthCode",df="Missing month/monthCode",gf="Cannot guess year",mf="Invalid leap month",yf="Invalid protocol results",Sf="Mismatching Calendars",pf=e=>`Invalid Calendar: ${e}`,wf="Mismatching TimeZones",vf="Forbidden ICU TimeZone",Af="Out-of-bounds offset",bf="Out-of-bounds TimeZone gap",Tf="Invalid TimeZone offset",If="Ambiguous offset",Mf="Out-of-bounds date",Ef="Out-of-bounds duration",Of="Cannot mix duration signs",Cf="Missing relativeTo",Hf="Cannot use large units",Df="Required smallestUnit or largestUnit",Nf="smallestUnit > largestUnit",kf=e=>`Cannot parse: ${e}`,_f=e=>`Invalid substring: ${e}`,Lf=e=>`Cannot format ${e}`,Rf="Cannot specify TimeZone",Yf=Bi(ki,((e,t)=>t)),Pf=Bi(ki,((e,t,n)=>n)),jf=Bi(xi,2),Bf={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Ff=Object.keys(Bf),Uf=864e5,xf=1e3,Zf=1e3,$f=1e6,Vf=1e9,zf=6e10,Kf=36e11,Gf=864e11,Jf=[1,Zf,$f,Vf,zf,Kf,Gf],Wf=Ff.slice(0,6),qf=Ui(Wf),Xf=["offset"],Qf=["timeZone"],ed=Wf.concat(Xf),td=ed.concat(Qf),nd=["era","eraYear"],rd=nd.concat(["year"]),od=["year"],ad=["monthCode"],id=["month"].concat(ad),sd=["day"],cd=id.concat(od),ud=ad.concat(od),hd=sd.concat(cd),ld=sd.concat(id),fd=sd.concat(ad),dd=Pf(Wf,0),gd="iso8601",md="gregory",yd="japanese",Sd={[md]:{bce:-1,ce:0},[yd]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},pd={bc:"bce",ad:"ce"},wd={chinese:13,dangi:13,hebrew:-6},vd=Bi(as,"string"),Ad=Bi(as,"boolean"),bd=Bi(as,"number"),Td=Bi(as,"function"),Id=Ff.map((e=>e+"s")),Md=Ui(Id),Ed=Id.slice(0,6),Od=Id.slice(6),Cd=Od.slice(1),Hd=Yf(Id),Dd=Pf(Id,0),Nd=Pf(Ed,0),kd=Bi(ji,Id),_d=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Ld=["isoDay","isoMonth","isoYear"],Rd=_d.concat(Ld),Yd=Ui(Ld),Pd=Ui(_d),jd=Ui(Rd),Bd=Pf(Pd,0),Fd=Bi(ji,Rd),Ud=Intl.DateTimeFormat,xd="en-GB",Zd=1e8,$d=Zd*Uf,Vd=[Zd,0],zd=[-Zd,0],Kd=275760,Gd=-271821,Jd=1970,Wd=1972,qd=12,Xd=Bs(1868,9,8),Qd=Mi(Ws,WeakMap),eg="smallestUnit",tg="unit",ng="roundingIncrement",rg="fractionalSecondDigits",og="relativeTo",ag={constrain:0,reject:1},ig=Object.keys(ag),sg={compatible:0,reject:1,earlier:2,later:3},cg={reject:0,use:1,prefer:2,ignore:3},ug={auto:0,never:1,critical:2,always:3},hg={auto:0,never:1,critical:2},lg={auto:0,never:1},fg={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},dg=Bi(pc,eg),gg=Bi(pc,"largestUnit"),mg=Bi(pc,tg),yg=Bi(wc,"overflow",ag),Sg=Bi(wc,"disambiguation",sg),pg=Bi(wc,"offset",cg),wg=Bi(wc,"calendarName",ug),vg=Bi(wc,"timeZoneName",hg),Ag=Bi(wc,"offset",lg),bg=Bi(wc,"roundingMode",fg),Tg="PlainYearMonth",Ig="PlainMonthDay",Mg="PlainDate",Eg="PlainDateTime",Og="PlainTime",Cg="ZonedDateTime",Hg="Instant",Dg="Duration",Ng=[Math.floor,e=>Wi(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Wi(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Wi(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=>Wi(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],kg="UTC",_g=5184e3,Lg=js(1847),Rg=js((new Date).getUTCFullYear()+10),Yg=/0+$/,Pg=Mi(pu,WeakMap),jg=2**32-1,Bg=Mi((e=>{const t=Ah(e);return"object"==typeof t?new Ug(t):new Fg(t||0)}));class Fg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[Ps(e,this.R)]}B(){}}class Ug{constructor(e){this.q=(e=>{function t(e){const t=$i(e,a,i),[s,c]=eh(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=Mi(e),o=Mi(Qu);let a=Lg,i=Rg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=$i(e,a,i);let[c,u]=eh(s);const h=_g*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((Zi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Es(e,t*xf);return js(Jh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(_s(e))*Vf}getPossibleInstantsFor(e){const[t,n]=[js((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*$f+r.isoMicrosecond*Zf+r.isoNanosecond];var r;return this.q.J(t).map((e=>Ds(Ss(bs(e,Vf),n))))}B(e,t){const[n,r]=Ls(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return bs(o,Vf)}}const xg="([+−-])",Zg="(?:[.,](\\d{1,9}))?",$g=`(?:(?:${xg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Vg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Zg+")?)?",zg=xg+Vg,Kg=$g+"-?(\\d{2})(?:[T ]"+Vg+"(Z|"+zg+")?)?",Gg="\\[(!?)([^\\]]*)\\]",Jg=`((?:${Gg}){0,9})`,Wg=yh($g+Jg),qg=yh("(?:--)?(\\d{2})-?(\\d{2})"+Jg),Xg=yh(Kg+Jg),Qg=yh("T?"+Vg+"(?:"+zg+")?"+Jg),em=yh(zg),tm=new RegExp(Gg,"g"),nm=yh(`${xg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Zg}H)?(?:(\\d+)${Zg}M)?(?:(\\d+)${Zg}S)?)?`),rm=Mi((e=>new Ud(xd,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),om=/^(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$/,am=Mi(Vh),im=Mi((e=>new Ud(xd,{calendar:e,timeZone:kg,era:"short",year:"numeric",month:"short",day:"numeric"}))),sm=/^M(\d{2})(L?)$/,cm={era:us,eraYear:fs,year:fs,month:gs,monthCode:us,day:gs},um=Pf(Wf,fs),hm=Pf(Id,ds),lm=Object.assign({},cm,um,hm,{offset:us}),fm=Bi(_i,Wf,_d),dm={dateAdd(e,t,n){const r=nc(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Gu(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=ul(t,r,e.P(a)),i=bi("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=bi("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=Rs(e)}return o+=(7*s+c)*Uf,Cs(xs(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=Uh({...e,...Bd},{...t,...Bd});return 7===n&&([r,o]=Ki(o,7)),{...Dd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-ul(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...Dd,years:a,months:i,days:s}},dateFromFields(e,t){const n=nc(t),r=El(this,e),o=Ol(this,e,r,n),a=Cl(this,e,o,r,n);return Ic(Cs(this.L(r,o,a)),this.id||gd)},yearMonthFromFields(e,t){const n=nc(t),r=El(this,e),o=Ol(this,e,r,n);return Mc(Os(this.L(r,o,1)),this.id||gd)},monthDayFromFields(e,t){const n=nc(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=cl(o),l=Ti(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(gf);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(ff);r&&(h=bi("month",h,1,qd,1),l=bi("day",l,1,Vs(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Wd:El(this,e),h=Ol(this,e,u,n),l=Cl(this,e,h,u,n);const t=this.P(u);c=h===t,s=hl(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(gf);[u,h]=o}return Ec(Cs(this.L(u,h,l)),this.id||gd)},fields(e){return fl(this)&&e.includes("year")?[...e,...nd]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Hl(n,t,id),fl(this)&&(Hl(n,t,rd),this.id===yd&&Hl(n,t,ld,nd)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:sl,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+jf(e)+(t?"L":""))(r,o)},dayOfWeek:Gs,daysInWeek:()=>7},gm={dayOfYear:sl,v:Zs,p:Bs},mm=Object.assign({},gm,{weekOfYear:al,yearOfWeek:il,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=zs(f+e),r=e||1,o=t(zi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=Gs(e),a=this.dayOfYear(e),i=zi(o-1,7),s=a-1,c=zi(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),ym={dayOfYear:sl,v:Wh,p:qh,weekOfYear:al,yearOfWeek:il,m:()=>[]},Sm=Yl(Object.assign({},dm,mm,{v:Zs,nn(e){return this.id===md?Js(e):this.id===yd?Qd(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Wd,e]},K:Ks,P(){},j:$s,V:e=>e*qd,N:Vs,X:zs,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:Bs,G:(e,t,n)=>(e+=Gi(n,qd),(t+=Ji(n,qd))<1?(e--,t+=qd):t>qd&&(e++,t-=qd),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},dm,ym,{v:Wh,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Xh.call(this,e);return[hl(t,n),n===t]},k(e,t,n){let[r,o,a]=Wh.call(this,{isoYear:Wd,isoMonth:qd,isoDay:31});const i=Xh.call(this,r),s=o===i;1===(Zi(e,hl(o,i))||Zi(Number(t),Number(s))||Zi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Xh.call(this,a),s=ul(e,t,i);if(t===(s===i)&&n<=el.call(this,a,s))return[a,s]}},K(e){const t=Qh.call(this,e);return t>Qh.call(this,e-1)&&t>Qh.call(this,e+1)},P:Xh,j:tl,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=tl.call(this,e+o);return a},N:el,X:Qh,L(e,t,n){return xs(qh.call(this,e,t,n))},p:qh,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Mf);if(n<0)for(;t<1;)t+=tl.call(this,--e);else{let n;for(;t>(n=tl.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),pm="numeric",wm=["timeZoneName"],vm={month:pm,day:pm},Am={year:pm,month:pm},bm=Object.assign({},Am,{day:pm}),Tm={hour:pm,minute:pm,second:pm},Im=Object.assign({},bm,Tm),Mm=Object.assign({},Im,{timeZoneName:"short"}),Em=Object.keys(Am),Om=Object.keys(vm),Cm=Object.keys(bm),Hm=Object.keys(Tm),Dm=["dateStyle"],Nm=Em.concat(Dm),km=Om.concat(Dm),_m=Cm.concat(Dm,["weekday"]),Lm=Hm.concat(["dayPeriod","timeStyle"]),Rm=_m.concat(Lm),Ym=Rm.concat(wm),Pm=wm.concat(Lm),jm=wm.concat(_m),Bm=wm.concat(["day","weekday"],Lm),Fm=wm.concat(["year","weekday"],Lm),Um={},xm=[Pl(Rm,Im),Hc],Zm=[Pl(Ym,Mm),Hc,0,(e,t)=>{const n=Nc(e.timeZone);if(t&&Nc(t.timeZone)!==n)throw new RangeError(wf);return n}],$m=[Pl(Rm,Im,wm),Rs],Vm=[Pl(_m,bm,Pm),Rs],zm=[Pl(Lm,Tm,jm),e=>Ns(e)/$f],Km=[Pl(Nm,Am,Bm),Rs,1],Gm=[Pl(km,vm,Fm),Rs,1];let Jm;function Wm(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(of);Vy(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Ei(t))}function s(t){const n=$y(t);if(!n||n.branding!==e)throw new TypeError(of);return n}return Object.defineProperties(a.prototype,{...Ci(Ni(i,n)),...Oi(Ni(i,r)),...Hi("Temporal."+e)}),Object.defineProperties(a,{...Oi(o),...Ei(e)}),[a,e=>{const t=Object.create(a.prototype);return Vy(t,e),t},s]}function qm(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function Xm(e){if($y(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Qm(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=$y(n)||{},{branding:i}=a,s=i===Mg||t.includes(i)?a:my(n);return o[r](s)};return n}function ey(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Sm(r):(o=r,Object.assign(Object.create(qy),{C:o})))[n](e);var r,o};return t}function ty(){throw new TypeError("Cannot use valueOf")}function ny(e){let{calendar:t}=e;return"string"==typeof t?new JS(t):t}function ry(e,t){if(t=yc(t),Ii(e)){const n=$y(e);if(n&&n.branding===Ig)return nc(t),n;const r=Ay(e);return pl(PS(r||gd),!r,e,t)}const n=function(e,t){const n=hh(vd(t));if(n)return rh(n),Ec(Xs(n));const r=nh(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Ec(Cs(a.L(l,f,c)),o)}(Sm,e);return nc(t),n}function oy(e,t,n){return Au(ts(t.call(e,cS(Ac(n)))))}function ay(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aS;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Bi(t[o],e,Td(e[o]));return r}function iy(e,t){return"string"==typeof e?Bg(e):ay(e,t)}function sy(e){return iy(e,iS)}function cy(e){if(Ii(e)){const t=$y(e);if(t)switch(t.branding){case Hg:return t;case Cg:return Ac(t.epochNanoseconds)}}return function(e){const t=ch(e=us(e));if(!t)throw new RangeError(kf(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(kf(e));n=th(t.offset)}return t.timeZone&&lh(t.timeZone,1),Ac(Ps(qs(t),n))}(e)}function uy(e,t,n){const r=t.B(cy(n).epochNanoseconds,e);return r?cS(Ac(r)):null}function hy(e){return Ii(e)?($y(e)||{}).timeZone||fS(e):(e=>wh(function(e){const t=ch(e);return t&&(t.timeZone||t.O&&kg||t.offset)||e}(vd(e))))(e)}function ly(e,t){if(Ii(e)){const n=$y(e)||{};switch(n.branding){case Og:return nc(t),n;case Eg:return nc(t),Oc(n);case Cg:return nc(t),_l(sy,n)}return function(e,t){const n=nc(t);return Oc(Al(vl(e,qf,[],1),n))}(e,t)}return nc(t),function(e){let t,n=(e=>{const t=Qg.exec(e);return t?(gh(t[10]),dh(t)):void 0})(vd(e));if(!n){if(n=ch(e),!n)throw new RangeError(kf(e));if(!n.I)throw new RangeError(kf(e));if(n.O)throw new RangeError(_f("Z"));rh(n)}if((t=uh(e))&&Qs(t))throw new RangeError(kf(e));if((t=hh(e))&&Qs(t))throw new RangeError(kf(e));return Oc(tc(n,1))}(e)}function fy(e){return void 0===e?void 0:ly(e)}function dy(e,t){if(t=yc(t),Ii(e)){const n=$y(e);return n&&n.branding===Tg?(nc(t),n):Sl(RS(vy(e)),e,t)}const n=function(e,t){const n=uh(vd(t));if(n)return rh(n),Mc(Os(Xs(n)));const r=nh(t);return Mc(ku(e(r.calendar),r))}(Sm,e);return nc(t),n}function gy(e,t){if(t=yc(t),Ii(e)){const n=$y(e)||{};switch(n.branding){case Eg:return nc(t),n;case Mg:return nc(t),Tc({...n,...Bd});case Cg:return nc(t),Nl(sy,n)}return function(e,t,n){const r=wl(e,t,hd,[],Wf),o=nc(n);return Tc(Hs({...e.dateFromFields(r,Sc(n,o)),...Al(r,o)}))}(YS(vy(e)),e,t)}const n=function(e){const t=ch(vd(e));if(!t||t.O)throw new RangeError(kf(e));return Tc(ah(t))}(e);return nc(t),n}function my(e,t){if(t=yc(t),Ii(e)){const n=$y(e)||{};switch(n.branding){case Mg:return nc(t),n;case Eg:return nc(t),Ic(n);case Cg:return nc(t),kl(sy,n)}return yl(YS(vy(e)),e,t)}const n=nh(e);return nc(t),n}function yy(e,t,n){return es(t.call(e,AS(Ic(n,e))))}function Sy(e){return t=>"string"==typeof t?Sm(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Bi(t[o],e,e[o]);return r})(t,e)}function py(e){if(Ii(e)){const t=$y(e);return t&&t.branding===Dg?t:function(e){const t=vl(e,Md);return Cc(zu({...Dd,...t}))}(e)}return function(e){const t=(e=>{const t=nm.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=Vi(o,Jf[a])),void 0!==e){if(r)throw new RangeError(_f(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(_f(e));return t})(e),n=1,t&&(o=mh(t)*(Jf[a]/Vf),r=1)}return i+s}let n=0,r=0,o=0,a={...Di(Id,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Xi(o,2,Id)};if(!n)throw new RangeError(nf(Id));return Sh(e[1])<0&&(a=$u(a)),a})(t):void 0})(vd(e));if(!t)throw new RangeError(kf(e));return Cc(zu(t))}(e)}function wy(e){if(void 0!==e){if(Ii(e)){const t=$y(e)||{};switch(t.branding){case Cg:case Mg:return t;case Eg:return Ic(t)}const n=vy(e);return{...ml(hy,iy,YS(n),e),calendar:n}}return function(e){const t=ch(vd(e));if(!t)throw new RangeError(kf(e));if(t.timeZone)return oh(t,t.offset?th(t.offset):void 0);if(t.O)throw new RangeError(kf(e));return ih(t)}(e)}}function vy(e){return Ay(e)||gd}function Ay(e){const{calendar:t}=e;if(void 0!==t)return by(t)}function by(e){return Ii(e)?($y(e)||{}).calendar||WS(e):(e=>rl(function(e){const t=ch(e)||uh(e)||hh(e);return t?t.calendar:e}(vd(e))))(e)}function Ty(e,t){if(t=yc(t),Ii(e)){const n=$y(e);if(n&&n.branding===Cg)return rc(t),n;const r=vy(e);return function(e,t,n,r,o,a){const i=wl(n,o,hd,Qf,td),s=e(i.timeZone),[c,u,h]=rc(a),l=n.dateFromFields(i,Sc(a,c)),f=Al(i,c);return bc(wu(t(s),{...l,...f},void 0!==i.offset?th(i.offset):void 0,u,h),s,r)}(hy,iy,YS(r),r,e,t)}return function(e,t){const n=ch(vd(e));if(!n||!n.timeZone)throw new RangeError(kf(e));const{offset:r}=n,o=r?th(r):void 0,[,a,i]=rc(t);return oh(n,o,a,i)}(e,t)}function Iy(e){return Ni((e=>t=>e(My(t))),e)}function My(e){return Pg(e,sy)}function Ey(){const e=Ud.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(Ud),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);np.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Ud(e,t),r=n.resolvedOptions(),o=r.locale,a=Li(Object.keys(t),r),i=Mi(Hy),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=$y(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.U=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Oy(e);"function"==typeof n.value?n.value="constructor"===e?r:o||Cy(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Oy(e){return function(){const t=np.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function Cy(e){return function(){return np.get(this).U[e](...arguments)}}function Hy(e){const t=Dy[e];if(!t)throw new TypeError(Lf(e));return jl(t,Mi(Bl))}const Dy={Instant:xm,PlainDateTime:$m,PlainDate:Vm,PlainTime:zm,PlainYearMonth:Km,PlainMonthDay:Gm},Ny=jl(xm),ky=jl(Zm),_y=jl($m),Ly=jl(Vm),Ry=jl(zm),Yy=jl(Km),Py=jl(Gm),jy={era:function(e){if(void 0!==e)return vd(e)},eraYear:Qi,year:ts,month:es,daysInMonth:es,daysInYear:es,inLeapYear:Ad,monthsInYear:es},By={monthCode:vd},Fy={day:es},Uy={dayOfWeek:es,dayOfYear:es,weekOfYear:function(e){if(void 0!==e)return es(e)},yearOfWeek:Qi,daysInWeek:es},xy=Object.assign({},jy,By,Fy,Uy),Zy=new WeakMap,$y=Zy.get.bind(Zy),Vy=Zy.set.bind(Zy),zy={...Qm(jy,[Tg]),...Qm(Uy,[]),...Qm(By,[Tg,Ig]),...Qm(Fy,[Ig])},Ky=ey(xy),Gy=ey({...jy,...By}),Jy=ey({...By,...Fy}),Wy={calendarId:e=>Nc(e.calendar)},qy=Ni(((e,t)=>function(n){const{C:r}=this;return e(r[t](AS(Ic(n,r))))}),xy),Xy=ki((e=>t=>t[e]),Id.concat("sign")),Qy=ki(((e,t)=>e=>e[_d[t]]),Wf),eS={epochSeconds:function(e){return _s(e.epochNanoseconds)},epochMilliseconds:Hc,epochMicroseconds:function(e){return Ts(e.epochNanoseconds,Zf)},epochNanoseconds:function(e){return Ts(e.epochNanoseconds)}},tS=Bi(Ri,new Set(["branding"])),[nS,rS,oS]=Wm(Ig,Bi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gd,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Wd;const a=fs(t),i=fs(n),s=e(r);return Ec(Cs(Xs({isoYear:fs(o),isoMonth:a,isoDay:i})),s)}),by),{...Wy,...Jy},{getISOFields:tS,getCalendar:ny,with(e,t,n){return rS(function(e,t,n,r,o){const a=yc(o);return((e,t,n,r)=>{const o=bl(e,t,n,hd);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(FS,e,this,Xm(t),n))},equals:(e,t)=>function(e,t){return!Mh(e,t)&&kc(e.calendar,t.calendar)}(e,ry(t)),toPlainDate(e,t){return AS(function(e,t,n,r){return((e,t,n)=>Ml(e,t,fd,os(n),od))(e(t.calendar),n,r)}(BS,e,this,t))},toLocaleString(e,t,n){const[r,o]=Py(t,n,e);return r.format(o)},toString:nu,toJSON:e=>nu(e),valueOf:ty},{from:(e,t)=>rS(ry(e,t))}),aS={getOffsetNanosecondsFor:oy,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,wS(Tc(n,gd)))].map((e=>uS(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(ws),bu(Is(ps(r[0],r[o-1])))),r}},iS={getOffsetNanosecondsFor:oy},[sS,cS,uS]=Wm(Hg,(function(e){return Ac(Ds(As(hs(e))))}),eS,{add:(e,t)=>cS(Tu(0,e,py(t))),subtract:(e,t)=>cS(Tu(1,e,py(t))),until:(e,t,n)=>zS(Ch(0,e,cy(t),n)),since:(e,t,n)=>zS(Ch(1,e,cy(t),n)),round:(e,t)=>cS(function(e,t){const[n,r,o]=ic(t,5,1);return Ac($c(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!bh(e,t)}(e,cy(t)),toZonedDateTime(e,t){const n=os(t);return XS(Dl(e,hy(n.timeZone),by(n.calendar)))},toZonedDateTimeISO:(e,t)=>XS(Dl(e,hy(t))),toLocaleString(e,t,n){const[r,o]=Ny(t,n,e);return r.format(o)},toString:(e,t)=>qc(hy,sy,e,t),toJSON:e=>qc(hy,sy,e),valueOf:ty},{from:e=>cS(cy(e)),fromEpochSeconds:e=>cS(function(e){return Ac(Ds(bs(e,Vf)))}(e)),fromEpochMilliseconds:e=>cS(function(e){return Ac(Ds(bs(e,$f)))}(e)),fromEpochMicroseconds:e=>cS(function(e){return Ac(Ds(As(hs(e),Zf)))}(e)),fromEpochNanoseconds:e=>cS(function(e){return Ac(Ds(As(hs(e))))}(e)),compare:(e,t)=>bh(cy(e),cy(t))}),[hS,lS]=Wm("TimeZone",(e=>{const t=function(e){return wh(vd(e))}(e);return{branding:"TimeZone",id:t,F:Bg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(gy(t)).map((e=>cS(Ac(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(cy(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=cy(t).epochNanoseconds;return fu(ay(this,iS).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gd;const r=cy(t).epochNanoseconds,o=ay(this,iS).getOffsetNanosecondsFor(r);return wS(Tc(Us(r,o),by(n)))},getInstantFor(e,t,n){const r=gy(t),o=oc(n),a=ay(this);return cS(Ac(vu(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return uy(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return uy(-1,n,t)},equals(e,t){return!!Oh(this,hy(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=hy(e);return"string"==typeof t?new hS(t):t}}),fS=qm(Object.keys(aS)),[dS,gS]=Wm(Og,(function(){return Oc(tc(Ni(fs,Di(_d,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Qy,{getISOFields:tS,with(e,t,n){return gS(function(e,t,n){return Oc(((e,t,n)=>{const r=nc(n);return Al({...Li(qf,e),...vl(t,qf)},r)})(e,t,n))}(this,Xm(t),n))},add:(e,t)=>gS(Cu(0,e,py(t))),subtract:(e,t)=>gS(Cu(1,e,py(t))),until:(e,t,n)=>zS(Lh(0,e,ly(t),n)),since:(e,t,n)=>zS(Lh(1,e,ly(t),n)),round:(e,t)=>gS(function(e,t){const[n,r,o]=ic(t,5);var a;return Oc((a=o,Pc(e,Bc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Eh(e,t)}(e,ly(t)),toZonedDateTime:(e,t)=>XS(function(e,t,n,r,o){const a=os(o),i=t(a.plainDate),s=e(a.timeZone);return bc(vu(n(s),{...i,...r}),s,i.calendar)}(hy,my,iy,e,t)),toPlainDateTime:(e,t)=>wS(function(e,t){return Tc(Hs({...e,...t}))}(e,my(t))),toLocaleString(e,t,n){const[r,o]=Ry(t,n,e);return r.format(o)},toString:ru,toJSON:e=>ru(e),valueOf:ty},{from:(e,t)=>gS(ly(e,t)),compare:(e,t)=>Eh(ly(e),ly(t))}),[mS,yS,SS]=Wm(Tg,Bi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gd,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=fs(t),i=fs(n),s=e(r);return Mc(Os(Xs({isoYear:a,isoMonth:i,isoDay:fs(o)})),s)}),by),{...Wy,...Gy},{getISOFields:tS,getCalendar:ny,with(e,t,n){return yS(function(e,t,n,r,o){const a=yc(o);return Mc(((e,t,n,r)=>{const o=bl(e,t,n,cd);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(jS,e,this,Xm(t),n))},add:(e,t,n)=>yS(Ou(ZS,0,e,py(t),n)),subtract:(e,t,n)=>yS(Ou(ZS,1,e,py(t),n)),until:(e,t,n)=>zS(kh($S,0,e,dy(t),n)),since:(e,t,n)=>zS(kh($S,1,e,dy(t),n)),equals:(e,t)=>function(e,t){return!Mh(e,t)&&kc(e.calendar,t.calendar)}(e,dy(t)),toPlainDate(e,t){return AS(function(e,t,n,r){return((e,t,n)=>Ml(e,t,ud,os(n),sd))(e(t.calendar),n,r)}(BS,e,this,t))},toLocaleString(e,t,n){const[r,o]=Yy(t,n,e);return r.format(o)},toString:tu,toJSON:e=>tu(e),valueOf:ty},{from:(e,t)=>yS(dy(e,t)),compare:(e,t)=>Mh(dy(e),dy(t))}),[pS,wS]=Wm(Eg,Bi((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:gd;return Tc(Hs(qs(Ni(fs,Di(Rd,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),by),{...Wy,...Ky,...Qy},{getISOFields:tS,getCalendar:ny,with(e,t,n){return wS(function(e,t,n,r,o){const a=yc(o);return Tc(((e,t,n,r)=>{const o=bl(e,t,n,hd,Wf),a=nc(r);return Hs({...e.dateFromFields(o,Sc(r,a)),...Al(o,a)})})(e(t.calendar),n,r,a))}(BS,e,this,Xm(t),n))},withCalendar:(e,t)=>wS(Ll(e,by(t))),withPlainDate:(e,t)=>wS(function(e,t){return Tc({...e,...t},Rl(e.calendar,t.calendar))}(e,my(t))),withPlainTime:(e,t)=>wS(function(e){return Tc({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bd})}(e,fy(t))),add:(e,t,n)=>wS(Mu(US,0,e,py(t),n)),subtract:(e,t,n)=>wS(Mu(US,1,e,py(t),n)),until:(e,t,n)=>zS(Dh(xS,0,e,gy(t),n)),since:(e,t,n)=>zS(Dh(xS,1,e,gy(t),n)),round:(e,t)=>wS(function(e,t){return Tc(Rc(e,...ic(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Ih(e,t)&&kc(e.calendar,t.calendar)}(e,gy(t)),toZonedDateTime:(e,t,n)=>XS(function(e,t,n,r){const o=((e,t,n,r)=>{const o=oc(r);return vu(e(t),n,o)})(e,n,t,r);return bc(Ds(o),n,t.calendar)}(iy,e,hy(t),n)),toPlainDate:e=>AS(Ic(e)),toPlainTime:e=>gS(Oc(e)),toPlainYearMonth(e){return yS(function(e,t,n){const r=e(t.calendar);return Mc({...t,...Il(r,n)})}(RS,e,this))},toPlainMonthDay(e){return rS(function(e,t,n){return Tl(e(t.calendar),n)}(PS,e,this))},toLocaleString(e,t,n){const[r,o]=_y(t,n,e);return r.format(o)},toString:Qc,toJSON:e=>Qc(e),valueOf:ty},{from:(e,t)=>wS(gy(e,t)),compare:(e,t)=>Ih(gy(e),gy(t))}),[vS,AS,bS]=Wm(Mg,Bi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:gd;return Ic(Cs(Xs(Ni(fs,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),by),{...Wy,...Ky},{getISOFields:tS,getCalendar:ny,with(e,t,n){return AS(function(e,t,n,r,o){const a=yc(o);return((e,t,n,r)=>{const o=bl(e,t,n,hd);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(BS,e,this,Xm(t),n))},withCalendar:(e,t)=>AS(Ll(e,by(t))),add:(e,t,n)=>AS(Eu(US,0,e,py(t),n)),subtract:(e,t,n)=>AS(Eu(US,1,e,py(t),n)),until:(e,t,n)=>zS(Nh(xS,0,e,my(t),n)),since:(e,t,n)=>zS(Nh(xS,1,e,my(t),n)),equals:(e,t)=>function(e,t){return!Mh(e,t)&&kc(e.calendar,t.calendar)}(e,my(t)),toZonedDateTime(e,t){const n=!Ii(t)||t instanceof hS?{timeZone:t}:t;return XS(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):Bd;return bc(vu(n(a),{...r,...s}),a,r.calendar)}(hy,ly,iy,e,n))},toPlainDateTime:(e,t)=>wS(function(e){return Tc(Hs({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bd}))}(e,fy(t))),toPlainYearMonth(e){return yS(function(e,t,n){return Il(e(t.calendar),n)}(RS,e,this))},toPlainMonthDay(e){return rS(function(e,t,n){return Tl(e(t.calendar),n)}(PS,e,this))},toLocaleString(e,t,n){const[r,o]=Ly(t,n,e);return r.format(o)},toString:eu,toJSON:e=>eu(e),valueOf:ty},{from:(e,t)=>AS(my(e,t)),compare:(e,t)=>Mh(my(e),my(t))}),TS={fields:(e,t,n)=>[...t.call(e,n)]},IS=Object.assign({dateFromFields:(e,t,n,r)=>bS(t.call(e,Object.assign(Object.create(null),n),r))},TS),MS=Object.assign({yearMonthFromFields:(e,t,n,r)=>SS(t.call(e,Object.assign(Object.create(null),n),r))},TS),ES=Object.assign({monthDayFromFields:(e,t,n,r)=>oS(t.call(e,Object.assign(Object.create(null),n),r))},TS),OS={mergeFields:(e,t,n,r)=>os(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},CS=Object.assign({},IS,OS),HS=Object.assign({},MS,OS),DS=Object.assign({},ES,OS),NS={dateAdd:(e,t,n,r,o)=>bS(t.call(e,AS(Ic(n,e)),zS(Cc(r)),o))},kS=Object.assign({},NS,{dateUntil:(e,t,n,r,o,a)=>KS(t.call(e,AS(Ic(n,e)),AS(Ic(r,e)),Object.assign(Object.create(null),a,{largestUnit:Ff[o]})))}),_S=Object.assign({},NS,{day:yy}),LS=Object.assign({},kS,{day:yy}),RS=Sy(MS),YS=Sy(IS),PS=Sy(ES),jS=Sy(HS),BS=Sy(CS),FS=Sy(DS),US=Sy(NS),xS=Sy(kS),ZS=Sy(_S),$S=Sy(LS),[VS,zS,KS]=Wm(Dg,(function(){return Cc(zu(Ni(ds,Di(Id,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...Xy,blank:function(e){return!e.sign}},{with:(e,t)=>zS(function(e,t){return Cc((n=e,r=t,zu({...n,...vl(r,Md)})));var n,r}(e,t)),negated:e=>zS(Zu(e)),abs:e=>zS(function(e){return-1===e.sign?Zu(e):e}(e)),add:(e,t,n)=>zS(xu(wy,xS,iy,0,e,py(t),n)),subtract:(e,t,n)=>zS(xu(wy,xS,iy,1,e,py(t),n)),round:(e,t)=>zS(function(e,t,n,r,o){const a=Xu(r),[i,s,c,u,h]=((e,t,n)=>{e=mc(e,eg);let r=gg(e);const o=n(e[og]);let a=lc(e);const i=bg(e,7);let s=dg(e);if(void 0===r&&void 0===s)throw new RangeError(Df);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),vc(r,s),a=fc(a,s,1),[r,s,a,i,o]})(o,a,e);if(Fu(Math.max(a,i),h))return Cc(zu(((e,t,n,r,o)=>{const a=$c(Gu(e),n,r,o);return{...Dd,...Ju(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(Cf);const[l,f,d]=Ru(t,n,h),g=Yu(d),m=Pu(f,d),y=ju(f,d);let S=0;r.weeks&&7===s&&(S=r.weeks,r={...r,weeks:0});let[p,w]=Uu(r,i,l,g,m,y);const v=r.sign,A=Vu(p);if(v&&A&&v!==A)throw new RangeError(yf);return A&&(p=Zc(p,w,i,s,c,u,l,g,m)),p.weeks+=S,Cc(p)}(wy,xS,iy,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Xu(r),[i,s]=((e,t)=>{const n=t((e=mc(e,tg))[og]);let r=mg(e);return r=rs(tg,r),[r,n]})(o,e);if(Fu(Math.max(i,a),s))return((e,t)=>Is(Gu(e),Jf[t],1))(r,i);if(!s)throw new RangeError(Cf);const[c,u,h]=Ru(t,n,s),l=Yu(h),f=Pu(u,h);return((e,t,n,r,o,a)=>{const i=Vu(e),[s,c]=_c(kd(n,e),n,i,r,o,a),u=Lc(t,s,c);return e[Id[n]]+u*i})(...Uu(r,i,c,l,f,ju(u,h)),i,c,l,f)}(wy,xS,iy,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):ou(e)},toString:ou,toJSON:e=>ou(e),valueOf:ty},{from:e=>zS(py(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(gc(a).relativeTo),s=Math.max(Xu(r),Xu(o));if(Pi(Id,r,o))return 0;if(Fu(s,i))return ws(Gu(r),Gu(o));if(!i)throw new RangeError(Cf);const[c,u,h]=Ru(t,n,i),l=Yu(h),f=Pu(u,h);return ws(l(f(c,r)),l(f(c,o)))}(wy,US,iy,py(e),py(t),n)}),GS={toString:e=>e.id,toJSON:e=>e.id,...zy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return AS(Ic(a.dateAdd(my(t),py(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return zS(Cc(o.dateUntil(my(t),my(n),function(e){return e=gc(e),gg(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return AS(yl(o,t,n,function(e){return e===gd?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return yS(Sl(o,t,n,function(e){return e===gd?od:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return rS(pl(o,0,t,n,function(e){return e===gd?sd:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(hd),o=[];for(const e of t){if(vd(e),!r.has(e))throw new RangeError(ef(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(Yi(ns(t)),Yi(ns(n)))}},[JS]=Wm("Calendar",(e=>{const t=function(e){return rl(vd(e))}(e);return{branding:"Calendar",id:t,F:Sm(t)}}),{id:e=>e.id},GS,{from(e){const t=by(e);return"string"==typeof t?new JS(t):t}}),WS=qm(Object.keys(GS).slice(4)),[qS,XS]=Wm(Cg,Bi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:gd;return bc(Ds(As(hs(n))),t(r),e(o))}),by,hy),{...eS,...Wy,...Iy(Ky),...Iy(Qy),offset:e=>fu(My(e).offsetNanoseconds),offsetNanoseconds:e=>My(e).offsetNanoseconds,timeZoneId:e=>Nc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Pg(t,n),[o,a]=Fc(r),i=Is(ps(vu(n,o),vu(n,a)),Kf,1);if(i<=0)throw new RangeError(yf);return i}(iy,e)},{getISOFields:e=>function(e,t){const n=Pg(t,e);return{calendar:t.calendar,...Li(jd,n),offset:fu(n.offsetNanoseconds),timeZone:t.timeZone}}(sy,e),getCalendar:ny,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new hS(t):t},with(e,t,n){return XS(function(e,t,n,r,o,a){const i=yc(a),{calendar:s,timeZone:c}=n;return bc(((e,t,n,r,o)=>{const a=bl(e,n,r,hd,ed,Xf),[i,s,c]=rc(o,2);return wu(t,{...e.dateFromFields(a,Sc(o,i)),...Al(a,i)},th(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(BS,iy,e,this,Xm(t),n))},withCalendar:(e,t)=>XS(Ll(e,by(t))),withTimeZone:(e,t)=>XS(function(e,t){return{...e,timeZone:t}}(e,hy(t))),withPlainDate:(e,t)=>XS(function(e,t,n){const r=t.timeZone,o=e(r),a={...Pg(t,o),...n},i=Rl(t.calendar,n.calendar);return bc(wu(o,a,a.offsetNanoseconds,2),r,i)}(iy,e,my(t))),withPlainTime:(e,t)=>XS(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bd;const r=t.timeZone,o=e(r),a={...Pg(t,o),...n};return bc(wu(o,a,a.offsetNanoseconds,2),r,t.calendar)}(iy,e,fy(t))),add:(e,t,n)=>XS(Iu(US,iy,0,e,py(t),n)),subtract:(e,t,n)=>XS(Iu(US,iy,1,e,py(t),n)),until:(e,t,n)=>zS(Cc(Hh(xS,iy,0,e,Ty(t),n))),since:(e,t,n)=>zS(Cc(Hh(xS,iy,1,e,Ty(t),n))),round:(e,t)=>XS(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=ic(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=Pg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=vu(t,a),u=vu(t,i);if(vs(s,c,u))throw new RangeError(yf);return Kc(Lc(s,c,u),r)?u:c})(Fc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=wu(u,Rc(Us(r,e),i,s,c),e,2,0,1)}return bc(r,o,a)}(iy,e,t)),startOfDay:e=>XS(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>vu(t,e(Pg(n,t))))(Uc,e(n),t);return bc(o,n,r)}(iy,e)),equals:(e,t)=>function(e,t){return!Th(e,t)&&!!Oh(e.timeZone,t.timeZone)&&kc(e.calendar,t.calendar)}(e,Ty(t)),toInstant:e=>cS(function(e){return Ac(e.epochNanoseconds)}(e)),toPlainDateTime:e=>wS(Nl(sy,e)),toPlainDate:e=>AS(kl(sy,e)),toPlainTime:e=>gS(_l(sy,e)),toPlainYearMonth(e){return yS(function(e,t,n){return Il(e(t.calendar),n)}(RS,e,this))},toPlainMonthDay(e){return rS(function(e,t,n){return Tl(e(t.calendar),n)}(PS,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=ky(t,n,e);return r.format(o)},toString:(e,t)=>Xc(sy,e,t),toJSON:e=>Xc(sy,e),valueOf:ty},{from:(e,t)=>XS(Ty(e,t)),compare:(e,t)=>Th(Ty(e),Ty(t))}),QS=Object.defineProperties({},{...Hi("Temporal.Now"),...Oi({timeZoneId:()=>Zl(),instant:()=>cS(Ac(xl())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl();return XS(bc(xl(),hy(t),by(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return XS(bc(xl(),hy(e),gd))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl();return wS(Tc(Ul(sy(hy(t))),by(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return wS(Tc(Ul(sy(hy(e))),gd))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl();return AS(Ic(Ul(sy(hy(t))),by(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return AS(Ic(Ul(sy(hy(e))),gd))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();return gS(Oc(Ul(sy(hy(e)))))}})}),ep=Object.defineProperties({},{...Hi("Temporal"),...Oi({PlainYearMonth:mS,PlainMonthDay:nS,PlainDate:vS,PlainTime:dS,PlainDateTime:pS,ZonedDateTime:qS,Instant:sS,Calendar:JS,TimeZone:hS,Duration:VS,Now:QS})}),tp=Ey(),np=new WeakMap;function rp(e){return e*Math.PI/180}function op(e){return 180*e/Math.PI}Object.create(Intl),Oi({DateTimeFormat:tp});class ap{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const ip=6356.9;class sp{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(sp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(sp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(sp.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(sp.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(sp.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(sp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(sp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(sp.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(sp.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(sp.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 op(Math.acos(ip/(ip+e/1e3)))}adjustZenith(e,t){let n=e;return e===sp.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=sp.getSunriseUTC(sp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=sp.getSunsetUTC(sp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return sp.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new ep.PlainTime(o,a,i,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-sp.JULIAN_DAY_JAN_1_2000)/sp.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*sp.JULIAN_DAYS_PER_CENTURY+sp.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=rp(sp.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 sp.getSunGeometricMeanLongitude(e)+sp.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return sp.getSunTrueLongitude(e)-.00569-.00478*Math.sin(rp(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 sp.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(rp(t))}static getSunDeclination(e){const t=sp.getObliquityCorrection(e),n=sp.getSunApparentLongitude(e),r=Math.sin(rp(t))*Math.sin(rp(n));return op(Math.asin(r))}static getEquationOfTime(e){const t=sp.getObliquityCorrection(e),n=sp.getSunGeometricMeanLongitude(e),r=sp.getEarthOrbitEccentricity(e),o=sp.getSunGeometricMeanAnomaly(e);let a=Math.tan(rp(t)/2);a*=a;const i=Math.sin(2*rp(n)),s=Math.sin(rp(o));return 4*op(a*i-2*r*s+4*r*a*s*Math.cos(2*rp(n))-.5*a*a*Math.sin(4*rp(n))-1.25*r*r*Math.sin(2*rp(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=rp(e),o=rp(t);return Math.acos(Math.cos(rp(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=rp(e),o=rp(t);return-Math.acos(Math.cos(rp(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=sp.getJulianDay(e.toPlainDate()),o=sp.getJulianCenturiesFromJulianDay(r),a=sp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=rp(n-i),c=rp(sp.getSunDeclination(o)),u=rp(t);return op(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=sp.getJulianDay(e.toPlainDate()),o=sp.getJulianCenturiesFromJulianDay(r),a=sp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=rp(n-i),c=rp(sp.getSunDeclination(o)),u=rp(t);return op(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=sp.getJulianCenturiesFromJulianDay(e),a=sp.getSolarNoonUTC(o,n),i=sp.getJulianCenturiesFromJulianDay(e+a/1440);let s=sp.getEquationOfTime(i),c=sp.getSunDeclination(i),u=sp.getSunHourAngleAtSunrise(t,c,r),h=n-op(u),l=4*h,f=720+l-s;const d=sp.getJulianCenturiesFromJulianDay(sp.getJulianDayFromJulianCenturies(o)+f/1440);return s=sp.getEquationOfTime(d),c=sp.getSunDeclination(d),u=sp.getSunHourAngleAtSunrise(t,c,r),h=n-op(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=sp.getJulianCenturiesFromJulianDay(sp.getJulianDayFromJulianCenturies(e)+t/360);let r=sp.getEquationOfTime(n);const o=720+4*t-r,a=sp.getJulianCenturiesFromJulianDay(sp.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=sp.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=sp.getJulianCenturiesFromJulianDay(e),a=sp.getSolarNoonUTC(o,n),i=sp.getJulianCenturiesFromJulianDay(e+a/1440);let s=sp.getEquationOfTime(i),c=sp.getSunDeclination(i),u=sp.getSunHourAngleAtSunset(t,c,r),h=n-op(u),l=4*h,f=720+l-s;const d=sp.getJulianCenturiesFromJulianDay(sp.getJulianDayFromJulianCenturies(o)+f/1440);return s=sp.getEquationOfTime(d),c=sp.getSunDeclination(d),u=sp.getSunHourAngleAtSunset(t,c,r),h=n-op(u),l=4*h,f=720+l-s,f}}sp.GEOMETRIC_ZENITH=90,sp.CIVIL_ZENITH=96,sp.NAUTICAL_ZENITH=102,sp.ASTRONOMICAL_ZENITH=108,sp.JULIAN_DAY_JAN_1_2000=2451545,sp.JULIAN_DAYS_PER_CENTURY=36525;const cp=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],up=new Map,hp={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"},lp=new Map;class fp extends ap{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=lp.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return lp.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return up.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return hp[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":hp[t]}static addLocation(e,t){const n=e.toLowerCase();return!up.has(n)&&(up.set(n,t),!0)}}for(const e of cp){const t=new fp(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);fp.addLocation(t.getName(),t)}function dp(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,Oi({Temporal:ep})),Object.defineProperties(Intl,Oi({DateTimeFormat:tp})),Object.defineProperties(Date.prototype,Oi({toTemporalInstant:function(){return cS(Ac(bs(this.valueOf(),$f)))}}));class gp{constructor(t,n,r){const o=function(t){if(e.greg.isDate(t))return t;if(Oe.isHDate(t))return t.greg();throw new TypeError(`invalid date: ${t}`)}(n);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new sp(t,a),this.useElevation=Boolean(r)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return dp(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return dp(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return dp(this.noaa.getSeaLevelSunrise())}sunset(){return dp(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return dp(this.noaa.getSeaLevelSunset())}dawn(){return dp(this.noaa.getBeginCivilTwilight())}dusk(){return dp(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new gp(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return dp(this.noaa.getSunTransit(e,t))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return dp(sp.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0).getTime()-e.getTime())/12;return[e,t]}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();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+3*t)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+4*t)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=8.5){return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=ce("UTC",t),r=ce(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+he(Math.floor(r/60))+":"+he(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":ce(e,t).substring(0,19)+gp.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))}}const mp={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function yp(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=null==n?void 0:n.location)||void 0===r?void 0:r.cc)||((null==n?void 0:n.il)?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===mp[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}class Sp extends Xe{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=gp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=gp.formatTime(this.eventTime,s);const c=Object.assign(Object.assign({},i),{location:o});this.fmtTime=yp(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return we.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return we.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}return["unknown"]}}class pp extends Sp{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}class wp extends Sp{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=we.gettext(this.getDesc(),e);if(this.havdalahMins){const n=we.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const vp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ap=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],bp="בַּלַּ֥יְלָה";class Tp{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=E(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(a/24))%7,hour:a%24,minutes:Math.floor(i/18),chalakim:i%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return Oe.getMonthName(this.m.month,this.m.year)}getDow(){return this.m.dayOfWeek}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}render(e,t){"string"==typeof(e=null!=e?e:we.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=we.gettext(this.getMonthName(),e),o=(n?Ap:vp)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=we.gettext("Molad",e),u=we.lookupTranslation("min",e)||"minutes",h=we.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?bp:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":bp}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?we.hebrewStripNikkud(t):t}const l=yp(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class Ip extends Xe{constructor(e,t,n,r){const o=new Tp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,We.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class Mp extends Xe{constructor(e,t){if(super(e,`Omer ${t}`,We.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(e="en"){return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){G(e);const[n,r]=J(e),o=K[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){"string"==typeof(e=null!=e?e:we.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?V(n):we.ordinal(n,e))+" "+we.gettext("day of the Omer",e)}renderBrief(e){return we.gettext("Omer",e)+" "+we.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(G(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){"string"==typeof(e=null!=e?e:we.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=W(this.omer,t);return"he-x-nonikud"===e?we.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class Ep extends Xe{constructor(e,t,n=!1,r=-1){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),We.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=null!=e?e:we.getLocaleName(),n=this.parsha;let r=we.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+we.gettext(n[1],e)}r=r.replace(/'/g,"’");return(we.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){return le(this.getDate().greg()).replace(/-/g,"")}}const Op=m.NISAN,Cp=m.IYYAR,Hp=m.SIVAN,Dp=m.TAMUZ,Np=m.AV,kp=m.ELUL,_p=m.TISHREI,Lp=m.CHESHVAN,Rp=m.KISLEV,Yp=m.SHVAT,Pp=m.ADAR_II,jp=We.CHAG,Bp=We.LIGHT_CANDLES,Fp=We.YOM_TOV_ENDS,Up=We.CHUL_ONLY,xp=We.IL_ONLY,Zp=We.LIGHT_CANDLES_TZEIS,$p=We.CHANUKAH_CANDLES,Vp=We.MAJOR_FAST,zp=We.MINOR_HOLIDAY,Kp=We.EREV,Gp=We.CHOL_HAMOED,Jp="🫓",Wp="🌿🍋",qp="Rosh Hashana II",Xp="Erev Yom Kippur",Qp="Yom Kippur",ew="Erev Sukkot",tw="Sukkot I",nw="Sukkot II",rw="Sukkot III (CH''M)",ow="Sukkot IV (CH''M)",aw="Sukkot V (CH''M)",iw="Sukkot VI (CH''M)",sw="Shmini Atzeret",cw="Simchat Torah",uw="Sukkot II (CH''M)",hw="Sukkot VII (Hoshana Raba)",lw="Chanukah: 1 Candle",fw="Tu BiShvat",dw="Erev Purim",gw="Purim",mw="Shushan Purim",yw="Erev Pesach",Sw="Pesach I",pw="Pesach II",ww="Pesach II (CH''M)",vw="Pesach III (CH''M)",Aw="Pesach IV (CH''M)",bw="Pesach V (CH''M)",Tw="Pesach VI (CH''M)",Iw="Pesach VII",Mw="Pesach VIII",Ew="Pesach Sheni",Ow="Lag BaOmer",Cw="Erev Shavuot",Hw="Shavuot",Dw="Shavuot I",Nw="Shavuot II",kw="Tu B'Av",_w="Rosh Hashana LaBehemot",Lw="Erev Rosh Hashana",Rw="Yom Yerushalayim",Yw="Ben-Gurion Day",Pw="Family Day",jw="Yitzhak Rabin Memorial Day",Bw="Herzl Day",Fw="Jabotinsky Day",Uw="Sigd",xw="Yom HaAliyah",Zw="Yom HaAliyah School Observance",$w="Hebrew Language Day",Vw={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_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:Yw,CHANUKAH_1_CANDLE:lw,EREV_PESACH:yw,EREV_PURIM:dw,EREV_ROSH_HASHANA:Lw,EREV_SHAVUOT:Cw,EREV_SUKKOT:ew,EREV_YOM_KIPPUR:Xp,FAMILY_DAY:Pw,HEBREW_LANGUAGE_DAY:$w,HERZL_DAY:Bw,JABOTINSKY_DAY:Fw,LAG_BAOMER:Ow,PESACH_I:Sw,PESACH_II:pw,PESACH_III_CHM:vw,PESACH_II_CHM:ww,PESACH_IV_CHM:Aw,PESACH_SHENI:Ew,PESACH_VII:Iw,PESACH_VIII:Mw,PESACH_VI_CHM:Tw,PESACH_V_CHM:bw,PURIM:gw,ROSH_HASHANA_II:qp,ROSH_HASHANA_LABEHEMOT:_w,SHAVUOT:Hw,SHAVUOT_I:Dw,SHAVUOT_II:Nw,SHMINI_ATZERET:sw,SHUSHAN_PURIM:mw,SIGD:Uw,SIMCHAT_TORAH:cw,SUKKOT_I:tw,SUKKOT_II:nw,SUKKOT_III_CHM:rw,SUKKOT_II_CHM:uw,SUKKOT_IV_CHM:ow,SUKKOT_VII_HOSHANA_RABA:hw,SUKKOT_VI_CHM:iw,SUKKOT_V_CHM:aw,TU_BAV:kw,TU_BISHVAT:fw,YITZHAK_RABIN_MEMORIAL_DAY:jw,YOM_HAALIYAH:xw,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Zw,YOM_KIPPUR:Qp,YOM_YERUSHALAYIM:Rw},zw=[{mm:_p,dd:2,desc:qp,flags:jp|Fp,emoji:"🍏🍯"},{mm:_p,dd:9,desc:Xp,flags:Kp|Bp},{mm:_p,dd:10,desc:Qp,flags:jp|Vp|Fp},{mm:_p,dd:14,desc:ew,flags:Up|Kp|Bp,emoji:Wp},{mm:_p,dd:15,desc:tw,flags:Up|jp|Zp,emoji:Wp},{mm:_p,dd:16,desc:nw,flags:Up|jp|Fp,emoji:Wp},{mm:_p,dd:17,desc:rw,flags:Up|Gp,chmDay:1,emoji:Wp},{mm:_p,dd:18,desc:ow,flags:Up|Gp,chmDay:2,emoji:Wp},{mm:_p,dd:19,desc:aw,flags:Up|Gp,chmDay:3,emoji:Wp},{mm:_p,dd:20,desc:iw,flags:Up|Gp,chmDay:4,emoji:Wp},{mm:_p,dd:22,desc:sw,flags:Up|jp|Zp},{mm:_p,dd:23,desc:cw,flags:Up|jp|Fp},{mm:_p,dd:14,desc:ew,flags:xp|Kp|Bp,emoji:Wp},{mm:_p,dd:15,desc:tw,flags:xp|jp|Fp,emoji:Wp},{mm:_p,dd:16,desc:uw,flags:xp|Gp,chmDay:1,emoji:Wp},{mm:_p,dd:17,desc:rw,flags:xp|Gp,chmDay:2,emoji:Wp},{mm:_p,dd:18,desc:ow,flags:xp|Gp,chmDay:3,emoji:Wp},{mm:_p,dd:19,desc:aw,flags:xp|Gp,chmDay:4,emoji:Wp},{mm:_p,dd:20,desc:iw,flags:xp|Gp,chmDay:5,emoji:Wp},{mm:_p,dd:22,desc:sw,flags:xp|jp|Fp},{mm:_p,dd:21,desc:hw,flags:Bp|Gp,chmDay:-1,emoji:Wp},{mm:Rp,dd:24,desc:lw,flags:Kp|zp|$p,emoji:"🕎1️⃣"},{mm:Yp,dd:15,desc:fw,flags:zp,emoji:"🌳"},{mm:Pp,dd:13,desc:dw,flags:Kp|zp,emoji:"🎭️📜"},{mm:Pp,dd:14,desc:gw,flags:zp,emoji:"🎭️📜"},{mm:Pp,dd:15,desc:mw,flags:zp,emoji:"🎭️📜"},{mm:Op,dd:14,desc:yw,flags:xp|Kp|Bp,emoji:"🫓🍷"},{mm:Op,dd:15,desc:Sw,flags:xp|jp|Fp,emoji:Jp},{mm:Op,dd:16,desc:ww,flags:xp|Gp,chmDay:1,emoji:Jp},{mm:Op,dd:17,desc:vw,flags:xp|Gp,chmDay:2,emoji:Jp},{mm:Op,dd:18,desc:Aw,flags:xp|Gp,chmDay:3,emoji:Jp},{mm:Op,dd:19,desc:bw,flags:xp|Gp,chmDay:4,emoji:Jp},{mm:Op,dd:20,desc:Tw,flags:xp|Gp|Bp,chmDay:5,emoji:Jp},{mm:Op,dd:21,desc:Iw,flags:xp|jp|Fp,emoji:Jp},{mm:Op,dd:14,desc:yw,flags:Up|Kp|Bp,emoji:"🫓🍷"},{mm:Op,dd:15,desc:Sw,flags:Up|jp|Zp,emoji:"🫓🍷"},{mm:Op,dd:16,desc:pw,flags:Up|jp|Fp,emoji:Jp},{mm:Op,dd:17,desc:vw,flags:Up|Gp,chmDay:1,emoji:Jp},{mm:Op,dd:18,desc:Aw,flags:Up|Gp,chmDay:2,emoji:Jp},{mm:Op,dd:19,desc:bw,flags:Up|Gp,chmDay:3,emoji:Jp},{mm:Op,dd:20,desc:Tw,flags:Up|Gp|Bp,chmDay:4,emoji:Jp},{mm:Op,dd:21,desc:Iw,flags:Up|jp|Zp,emoji:Jp},{mm:Op,dd:22,desc:Mw,flags:Up|jp|Fp,emoji:Jp},{mm:Cp,dd:14,desc:Ew,flags:zp},{mm:Cp,dd:18,desc:Ow,flags:zp,emoji:"🔥"},{mm:Hp,dd:5,desc:Cw,flags:Kp|Bp,emoji:"⛰️🌸"},{mm:Hp,dd:6,desc:Hw,flags:xp|jp|Fp,emoji:"⛰️🌸"},{mm:Hp,dd:6,desc:Dw,flags:Up|jp|Zp,emoji:"⛰️🌸"},{mm:Hp,dd:7,desc:Nw,flags:Up|jp|Fp,emoji:"⛰️🌸"},{mm:Np,dd:15,desc:kw,flags:zp,emoji:"❤️"},{mm:kp,dd:1,desc:_w,flags:zp,emoji:"🐑"},{mm:kp,dd:29,desc:Lw,flags:Kp|Bp,emoji:"🍏🍯"}],Kw=[{firstYear:5727,mm:Cp,dd:28,desc:Rw,chul:!0},{firstYear:5737,mm:Rp,dd:6,desc:Yw,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Yp,dd:30,desc:Pw},{firstYear:5758,mm:Lp,dd:12,desc:jw,friSatMovetoThu:!0},{firstYear:5764,mm:Cp,dd:10,desc:Bw,satPostponeToSun:!0},{firstYear:5765,mm:Dp,dd:29,desc:Fw,satPostponeToSun:!0},{firstYear:5769,mm:Lp,dd:29,desc:Uw,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Op,dd:10,desc:xw,chul:!0},{firstYear:5777,mm:Lp,dd:7,desc:Zw},{firstYear:5773,mm:m.TEVET,dd:21,desc:$w,friSatMovetoThu:!0}],Gw=[Vw.LAG_BAOMER,Vw.LEIL_SELICHOT,Vw.PESACH_SHENI,Vw.EREV_PURIM,Vw.PURIM_KATAN,Vw.SHUSHAN_PURIM,Vw.TU_BAV,Vw.TU_BISHVAT,Vw.ROSH_HASHANA_LABEHEMOT];class Jw extends Xe{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&We.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&We.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;const t=this.getDesc();return Gw.includes(t)?["holiday","minor"]:["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new Jw(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class Ww extends Jw{urlDateSuffix(){return le(this.getDate().greg()).replace(/-/g,"")}}const qw="Shabbat Mevarchim Chodesh";class Xw extends Xe{constructor(e,t,n){if(super(e,`${qw} ${t}`,We.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==Oe.monthsInYear(t)?m.NISAN:n+1,o=new Tp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=we.gettext(this.monthName,e).replace(/'/g,"’");return we.gettext(qw,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}var Qw=jo,ev=wr,tv=Ir,nv=at,rv=function(e,t,n){return n.get&&Qw(n.get,t,{getter:!0}),n.set&&Qw(n.set,t,{setter:!0}),ev.f(e,t,n)},ov=function(){var e=tv(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},av=ot,iv=nt.RegExp,sv=iv.prototype,cv=nv&&av((function(){var e=!0;try{iv(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(sv,"flags").get.call(t)!==r||n!==r}));cv&&rv(sv,"flags",{configurable:!0,get:ov});class uv extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}const hv=0,lv=2,fv=5,dv=6,gv=m.NISAN,mv=m.IYYAR;function yv(e){if(e<5708)return null;let t;const n=new Oe(15,gv,e).getDay();return t=n===hv?2:n===dv?3:e<5764?4:n===lv?5:4,new Oe(t,mv,e)}const Sv=new uv({maxSize:400});function pv(e,t){const n=`${e}-${t?1:0}`;let r=Sv.get(n);return r||(r=new Ne(e,t),Sv.set(n,r)),r}const wv="Yom Kippur Katan";class vv extends Jw{constructor(e,t){super(e,`${wv} ${t}`,We.MINOR_FAST|We.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=we.gettext(this.nextMonthName,e).replace(/'/g,"’");return we.gettext(wv,e)+" "+t}renderBrief(e){return we.gettext(wv,e)}url(){}}const Av=We.CHAG,bv=We.IL_ONLY,Tv=We.LIGHT_CANDLES_TZEIS,Iv=We.CHANUKAH_CANDLES,Mv=We.MINOR_FAST,Ev=We.SPECIAL_SHABBAT,Ov=We.MODERN_HOLIDAY,Cv=We.MAJOR_FAST,Hv=We.MINOR_HOLIDAY,Dv=We.EREV,Nv="Rosh Chodesh";class kv extends Jw{constructor(e,t){super(e,`${Nv} ${t}`,We.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=we.gettext(t,e).replace(/'/g,"’");return we.gettext(Nv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class _v extends Jw{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return we.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Lv=m.NISAN,Rv=m.TAMUZ,Yv=m.AV,Pv=m.TISHREI,jv=m.KISLEV,Bv=m.TEVET,Fv=m.ADAR_I,Uv=m.ADAR_II,xv={emoji:"🇮🇱"},Zv=new uv({maxSize:400}),$v=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Vv(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=Zv.get(e);if(t)return t;const n=new Oe(1,Pv,e),r=new Oe(15,Lv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Dv?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of zw){const n=new Oe(t.dd,t.mm,e),r=new Jw(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new _v(n,e,Av|Tv)),a(new Jw(new Oe(3+(4==n.getDay()),Pv,e),Vw.TZOM_GEDALIAH,Mv)),a(new Jw(new Oe(Oe.dayOnOrBefore(6,7+n.abs())),Vw.SHABBAT_SHUVA,Ev));const i=Oe.shortKislev(e)?new Oe(1,Bv,e):new Oe(30,jv,e);a(new Jw(i,Vw.CHAG_HABANOT,Hv));for(let t=2;t<=8;t++){const n=new Oe(23+t,jv,e);a(new Jw(n,`Chanukah: ${t} Candles`,Hv|Iv,{chanukahDay:t-1,emoji:"🕎"+$v[t]}))}a(new Jw(new Oe(32,jv,e),Vw.CHANUKAH_8TH_DAY,Hv,{chanukahDay:8,emoji:"🕎"})),a(new Ww(new Oe(10,Bv,e),Vw.ASARA_BTEVET,Mv));const s=r.abs();a(new Jw(new Oe(Oe.dayOnOrBefore(6,s-43)),Vw.SHABBAT_SHEKALIM,Ev),new Jw(new Oe(Oe.dayOnOrBefore(6,s-30)),Vw.SHABBAT_ZACHOR,Ev),new Jw(new Oe(s-(2==r.getDay()?33:31)),Vw.TAANIT_ESTHER,Mv));const c=Oe.dayOnOrBefore(6,s-14);a(new Jw(new Oe(c-7),Vw.SHABBAT_PARAH,Ev),new Jw(new Oe(c),Vw.SHABBAT_HACHODESH,Ev),new Jw(new Oe(Oe.dayOnOrBefore(6,s-1)),Vw.SHABBAT_HAGADOL,Ev),new Jw(6==r.prev().getDay()?r.onOrBefore(4):new Oe(14,Lv,e),Vw.TAANIT_BECHOROT,Mv)),a(new Jw(new Oe(Oe.dayOnOrBefore(6,new Oe(1,Pv,e+1).abs()-4)),Vw.LEIL_SELICHOT,Hv,{emoji:"🕍"})),0==r.getDay()&&a(new Jw(new Oe(16,Uv,e),Vw.PURIM_MESHULASH,Hv)),Oe.isLeapYear(e)&&(a(new Jw(new Oe(14,Fv,e),Vw.PURIM_KATAN,Hv,{emoji:"🎭️"})),a(new Jw(new Oe(15,Fv,e),Vw.SHUSHAN_PURIM_KATAN,Hv,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new Oe(27,gv,e);return t.getDay()===fv?t=new Oe(26,gv,e):t.getDay()===hv&&(t=new Oe(28,gv,e)),t}(e);u&&a(new Jw(u,Vw.YOM_HASHOAH,Ov));const h=yv(e);h&&a(new Jw(h,Vw.YOM_HAZIKARON,Ov,xv),new Jw(h.next(),Vw.YOM_HAATZMA_UT,Ov,xv));for(const t of Kw)if(e>=t.firstYear){let n=new Oe(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new Oe(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Ov:Ov|bv,i=new Jw(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let l,f=new Oe(17,Rv,e);6==f.getDay()&&(f=new Oe(18,Rv,e),l={observed:!0}),a(new Jw(f,Vw.TZOM_TAMMUZ,Mv,l));let d,g=new Oe(9,Yv,e),y=Vw.TISHA_BAV;6==g.getDay()&&(g=g.next(),d={observed:!0},y+=" (observed)");const S=g.abs();a(new Jw(new Oe(Oe.dayOnOrBefore(6,S)),Vw.SHABBAT_CHAZON,Ev),new Jw(g.prev(),Vw.EREV_TISHA_BAV,Dv|Cv,d),new Jw(g,y,Cv,d),new Jw(new Oe(Oe.dayOnOrBefore(6,S+7)),Vw.SHABBAT_NACHAMU,Ev));const p=Oe.monthsInYear(e);for(let t=1;t<=p;t++){const n=Oe.getMonthName(t,e);30==(t==Lv?Oe.daysInMonth(Oe.monthsInYear(e-1),e-1):Oe.daysInMonth(t-1,e))?(a(new kv(new Oe(1,t,e),n)),a(new kv(new Oe(30,t-1,e),n))):t!==Pv&&a(new kv(new Oe(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===Pv||n===m.CHESHVAN||n===Bv)continue;let r=new Oe(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=Oe.getMonthName(n,e);a(new vv(r,i))}const w=pv(e,!1).find(15);a(new Jw(w,Vw.SHABBAT_SHIRAH,Ev));const v=function(e){const t=Oe.isLeapYear(e),n=t?Uv:Lv,r=t?20:1,o=Oe.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(v){const e=new Oe(v);a(new Jw(e,Vw.BIRKAT_HACHAMAH,Hv,{emoji:"☀️"}))}return Zv.set(e,o),o}const zv=new Map;class Kv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);zv.set(e,t)}static lookup(e,t,n){const r=zv.get(e);return"function"==typeof r?r(t,n):null}}const Gv="5.4.1";function Jv(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():We.LIGHT_CANDLES;void 0!==e?r||(s&(We.LIGHT_CANDLES_TZEIS|We.CHANUKAH_CANDLES)?i=!0:s&We.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=We.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=Boolean(n.useElevation),l=new gp(u,t,h),f=c?l.sunsetOffset(c,!0):l.tzeit(n.havdalahDeg);return isNaN(f.getTime())?null:a?new wp(t,s,f,u,n.havdalahMins,e,n):new pp(t,s,f,u,e,n)}function Wv(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new Sp(e,n,r.getFlags(),t,a,r,o)}class qv extends Jw{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=gp.roundTime(r);const a=o.getTimeFormatter();this.eventTimeStr=gp.formatTime(this.eventTime,a),this.location=o}}function Xv(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const Qv={shacharit:!1,mincha:!1,allCongs:!1};function eA(e,t){return tA(e,t,!0)}function tA(e,t,n){const r=function(e,t){const n=Oe.isLeapYear(e),r=Oe.monthsInYear(e);let o=new Oe(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new Oe(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[],s=i.concat(Xv(1,r).map((t=>new Oe(1,t,e))),Xv(1,r).filter((t=>30===Oe.daysInMonth(t,e))).map((t=>new Oe(30,t,e))),new Oe(2,m.TISHREI,e),Xv(1,Oe.daysInMonth(m.NISAN,e)).map((t=>new Oe(t,m.NISAN,e))),new Oe(18,m.IYYAR,e),Xv(1,8-(t?1:0)).map((t=>new Oe(t,m.SIVAN,e))),o,new Oe(15,m.AV,e),new Oe(29,m.ELUL,e),Xv(9,24-(t?1:0)).map((t=>new Oe(t,m.TISHREI,e))),Xv(25,33).map((t=>new Oe(t,m.KISLEV,e))),new Oe(15,m.SHVAT,e),new Oe(14,m.ADAR_II,e),a,n?new Oe(14,m.ADAR_I,e):[]),c=i.concat(Xv(1,13).map((t=>new Oe(t,m.SIVAN,e))),Xv(20,31).map((t=>new Oe(t,m.TISHREI,e))),new Oe(14,m.IYYAR,e),e>=5708?yv(e).next():[],e>=5727?new Oe(28,m.IYYAR,e):[]),u=[new Oe(29,m.ELUL,e-1),new Oe(9,m.TISHREI,e),new Oe(14,m.IYYAR,e)];return{none:s.map((e=>e.abs())).sort(((e,t)=>e-t)),some:c.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return Qv;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=tA(new Oe(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:Qv}const nA=m.TISHREI;function rA(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(Oe.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function oA(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[rA(t.start),rA(t.end)];const n=Boolean(t.isHebrewYear),r=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Oe).getFullYear():(new Date).getFullYear()}(t);if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);const o=function(e){if(e.month){if(e.isHebrewYear)return Oe.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(t),a=Number(t.numYears)||1;return n?function(e,t,n){const r=new Oe(1,e||nA,t);let o=r.abs();const a=e?o+r.daysInMonth():new Oe(1,nA,t+n).abs()-1;!e&&t>1&&o--;return[o,a]}(o,r,a):function(t,n,r){const o=t?t-1:0,a=new Date(n,o,1);n<100&&a.setFullYear(n);const i=e.greg.greg2abs(a);let s;if(t)s=i+e.greg.daysInMonth(t,n)-1;else{const t=n+r,o=new Date(t,0,1);t<100&&o.setFullYear(t),s=e.greg.greg2abs(o)-1}return[i,s]}(o,r,a)}const aA=m.NISAN,iA=m.SIVAN,sA=m.ELUL,cA=m.TISHREI,uA=We.LIGHT_CANDLES,hA=We.YOM_TOV_ENDS,lA=We.CHUL_ONLY,fA=We.IL_ONLY,dA=We.LIGHT_CANDLES_TZEIS,gA=We.CHANUKAH_CANDLES,mA=We.MINOR_FAST,yA=We.SPECIAL_SHABBAT,SA=We.MODERN_HOLIDAY,pA=We.MAJOR_FAST,wA=We.ROSH_CHODESH,vA=We.PARSHA_HASHAVUA,AA=We.DAF_YOMI,bA=We.MISHNA_YOMI,TA=We.NACH_YOMI,IA=We.YERUSHALMI_YOMI,MA=We.OMER_COUNT,EA=We.SHABBAT_MEVARCHIM,OA=We.MINOR_HOLIDAY,CA=We.EREV,HA=We.CHOL_HAMOED,DA=We.YOM_KIPPUR_KATAN,NA=new Set,kA={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const _A={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},LA={281184:40,294801:30,293067:30};function RA(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&wA&&delete e.noRoshChodesh;t&SA&&delete e.noModern;t&mA&&delete e.noMinorFast;t&yA&&delete e.noSpecialShabbat;t&vA&&(e.sedrot=!0);t&(AA|bA|TA|IA)&&(e.dailyLearning=e.dailyLearning||{},t&AA&&(e.dailyLearning.dafYomi=!0),t&bA&&(e.dailyLearning.mishnaYomi=!0),t&TA&&(e.dailyLearning.nachYomi=!0),t&IA&&(e.dailyLearning.yerushalmi=1));t&MA&&(e.omer=!0);t&EA&&(e.shabbatMevarchim=!0);t&DA&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=wA|hA|mA|yA|SA|pA|OA|CA|HA|uA|dA|gA),e.candlelighting&&(r|=uA|dA|hA),e.noRoshChodesh&&(r&=~wA),e.noModern&&(r&=~SA),e.noMinorFast&&(r&=~mA),e.noSpecialShabbat&&(r&=~yA,r&=~EA),r|=n?fA:lA,e.sedrot&&(r|=vA),e.omer&&(r|=MA),e.shabbatMevarchim&&(r|=EA),e.yomKippurKatan&&(r|=DA),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=AA),t.mishnaYomi&&(r|=bA),t.nachYomi&&(r|=TA),t.yerushalmi&&(r|=IA)}return r}const YA=uA|dA|gA|hA,PA=new fp(0,0,!1,"UTC");function jA(e){return e.observedInIsrael()}function BA(e){return e.observedInDiaspora()}class FA{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t={...t},function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof fp))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=LA[e];"number"==typeof r&&(n=r);const o=_A[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||PA,r=t.il=t.il||n.il||!1;if(t.mask=RA(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!we.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else we.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=oA(t);!function(e){for(const t of Object.keys(e))void 0!==kA[t]||NA.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),NA.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new Oe(e),l=h.getFullYear();l!=u&&(u=l,i=Vv(u),t.sedrot&&(a=pv(u,r)),t.omer&&(s=Oe.hebrew2abs(u,aA,16),c=Oe.hebrew2abs(u,iA,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const e of S)y=xA(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Ep(h,t.parsha,r,t.num))}const p=t.dailyLearning;if("object"==typeof p)for(const[e,t]of Object.entries(p))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,a=Kv.lookup(n,h,r);a&&o.push(a)}if(t.omer&&e>=s&&e<=c){const r=new Mp(h,e-s+1);if(t.candlelighting){const e=new gp(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const w=h.getMonth(),v=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&w!=sA&&v>=23&&v<=29){const e=w==Oe.monthsInYear(l)?aA:w+1;if(t.molad&&o.push(new Ip(h,l,e,t)),t.shabbatMevarchim){const n=Oe.getMonthName(e,l),r=new Tp(l,e).render(t.locale||"en",t);o.push(new Xw(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=Jv(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof wp&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Qe(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=F(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=M(r);let a=n.mm,i=n.dd;return a===j&&!o||a===B&&o?a=E(e):a!==L||30!==i||N(e)?a===R&&30===i&&k(e)?(a=Y,i=1):a===j&&30===i&&o&&!M(e)&&(a=_,i=1):(a=R,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new Oe(n)}static getYahrzeit(e,t){const n=function(e,t){let n=F(t);if(!(e<=n.yy))return n.mm!==L||30!==n.dd||N(n.yy+1)?n.mm===R&&30===n.dd&&k(n.yy+1)?n=I(b(e,Y,1)-1):n.mm===B?n.mm=E(e):n.mm!==j||30!==n.dd||M(e)||(n.dd=30,n.mm=P):n=I(b(e,R,1)-1),n.mm!==L||30!==n.dd||N(e)?n.mm===R&&30===n.dd&&k(e)&&(n.mm=Y,n.dd=1):(n.mm=R,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Oe(n)}static getHolidaysForYear(e){return Vv(e)}static getHolidaysForYearArray(e,t){const n=Vv(e),r=Oe.hebrew2abs(e,cA,1),o=Oe.hebrew2abs(e+1,cA,1)-1;let a=[];const i=t?jA:BA;for(let e=r;e<=o;e++){const t=new Oe(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=Oe.isHDate(e)?e:new Oe(e),r=n.toString(),o=Vv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?jA:BA;return o.filter(a)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Oe(e),r=n.after(5),o=n.next();return!(!UA(r,t)||UA(n,t)||!UA(o,t))}static reformatTimeStr(e,t,n){return yp(e,t,n)}static version(){return Gv}static getSedra(e,t){return pv(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===m.NISAN&&(15===o||16===o)&&e.getFlags()&We.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&We.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(FA.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return eA(e,t)}}function UA(e,t){return 0!==(FA.getHolidaysOnDate(e,t)||[]).filter((e=>e.getFlags()&We.CHAG)).length}function xA(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&DA||r.noModern&&s&SA)return e;const c=r.location,u=Boolean(s&pA),h=Boolean(s&mA);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=Boolean(t.useElevation),c=new gp(a,o,s);if("Erev Tish'a B'Av"===n){const n=c.sunset();e.startEvent=Wv(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Wv(r,c.tzeit(i),"Fast ends",e,t);else{const n=c.alotHaShachar();e.startEvent=Wv(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=Wv(r,c.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&YA){const t=n.getDate();if(e=Jv(n,t,r,o,a),s&gA&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=Boolean(n.useElevation),a=new gp(r,t.greg(),o).beinHaShmashos();return isNaN(a.getTime())?null:new qv(t,e.getDesc(),e.getFlags(),a,r)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Jw(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&DA)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Ww,e.CandleLightingEvent=pp,e.DailyLearning=Kv,e.Event=Xe,e.GeoLocation=ap,e.HDate=Oe,e.HavdalahEvent=wp,e.HebrewCalendar=FA,e.HebrewDateEvent=Qe,e.HolidayEvent=Jw,e.Locale=we,e.Location=fp,e.MevarchimChodeshEvent=Xw,e.Molad=Tp,e.MoladEvent=Ip,e.NOAACalculator=sp,e.OmerEvent=Mp,e.ParshaEvent=Ep,e.RoshChodeshEvent=kv,e.RoshHashanaEvent=_v,e.Sedra=Ne,e.TimedEvent=Sp,e.Zmanim=gp,e.flags=We,e.gematriya=V,e.gematriyaStrToNum=z,e.holidayDesc=Vw,e.months=m,e.parshiot=ke,e.version=Gv,e}({});