@hebcal/core 5.4.11 → 5.5.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,3 +1,3 @@
1
- /*! @hebcal/core v5.4.11 */
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)}function a(e){return!(e%4||!(e%100)&&e%400)}function i(e,t){return n[+a(t)][e]}function s(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function c(e,t,n){const r=e-1;return 365*r+o(r,4)-o(r,100)+o(r,400)+o(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+n}function u(e){if(!s(e))throw new TypeError(`Argument not a Date: ${e}`);return c(e.getFullYear(),e.getMonth()+1,e.getDate())}function h(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=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)),n=o(12*(e-c(t,1,1)+(e<c(t,3,1)?0:a(t)?1:2))+373,367),i=e-c(t,n,1)+1,s=new Date(t,n-1,i);return t<100&&t>=0&&s.setFullYear(t),s}n[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=h,e.greg.daysInMonth=i,e.greg.greg2abs=u,e.greg.isDate=s,e.greg.isLeapYear=a;const l=1,f=2,d=4,g=6,m=7,y=8,S=9,p=10,w=12,v=13,A={NISAN:l,IYYAR:f,SIVAN:3,TAMUZ:d,AV:5,ELUL:g,TISHREI:m,CHESHVAN:y,KISLEV:S,TEVET:p,SHVAT:11,ADAR_I:w,ADAR_II:v},b=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],T=[b.concat(["Adar","Nisan"]),b.concat(["Adar I","Adar II","Nisan"])],M=new Map,I=-1373428,E=365.24682220597794;function O(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function C(e,t,n){if(O(e,"year"),O(t,"month"),O(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<m){for(let t=m;t<=_(e);t++)r+=k(t,e);for(let n=l;n<t;n++)r+=k(n,e)}else for(let n=m;n<t;n++)r+=k(n,e);return I+R(e)+r-1}function N(e){return I+R(e)}function H(e){if(O(e,"abs"),(e=Math.trunc(e))<=I)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-I)/E);for(;N(t)<=e;)++t;--t;let n=e<C(t,1,1)?7:1;for(;e>C(t,n,k(n,t));)++n;return{yy:t,mm:n,dd:1+e-C(t,n,1)}}function D(e){return(1+7*e)%19<7}function _(e){return+D(e)+12}function k(e,t){switch(e){case f:case d:case g:case p:case v:return 29}return e===w&&!D(t)||e===y&&!P(t)||e===S&&j(t)?29:30}function L(e,t){if(O(e,"month"),O(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return T[+D(t)][e]}function R(e){const t=M.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&&!D(e)||1==i%7&&a>=16789&&D(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return M.set(e,n),n}function Y(e){return R(e+1)-R(e)}function P(e){return Y(e)%10==5}function j(e){return Y(e)%10==3}const B=A.NISAN,F=A.CHESHVAN,U=A.KISLEV,x=A.TEVET,Z=A.SHVAT,$=A.ADAR_I,V=A.ADAR_II;function z(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(s(e)){return H(u(e))}return H(e)}const K={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},J=new Map,G=new Map;for(const[e,t]of Object.entries(K))J.set(e,t),G.set(t,e);function W(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 q(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid gematriya number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=W(r);for(const t of e)n+=G.get(t);n+="׳"}const o=W(t%1e3);if(1===o.length)return n+G.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=G.get(o[e]);return n}function X(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*X(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=J.get(n);"number"==typeof e&&(t+=e)}return t}const Q={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 ee(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function te(e){return[Math.floor((e-1)/7)+1,e%7||7]}function ne(e,t){return ee(e),"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+le:12===e?r+="שְׁנֵים "+le:12<e&&e<20?r+=oe[n]+" "+le:e>9&&(r+=oe[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=re[t]),r+=e<11?oe[n]+" "+ie+" ":" "+ue+" "):r+=1===e?he+" ":se+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?oe[t]+" "+ce+" ":1===t?"שָׁבֽוּעַ "+oe[1]+" ":ae+" "+ce+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?oe[n]+" "+ie+" ":1===n?he+" ":se+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):function(e){const[t,n]=te(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)}const re=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],oe=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],ae="שְׁנֵי",ie="יָמִים",se=ae+" "+ie,ce="שָׁבוּעוֹת",ue="יוֹם",he=ue+" "+oe[1],le="עָשָׂר";function fe(e){return e<0?"-00"+fe(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function de(e){return e>=0&&e<10?"0"+e:String(e)}const ge=new Map;const me=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ye(e,t){const n=function(e){const t=ge.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 ge.set(e,n),n}(e).format(t),r=me.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]=fe(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function Se(e){return fe(e.getFullYear())+"-"+de(e.getMonth()+1)+"-"+de(e.getDate())}var pe={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},we={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const ve={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},Ae={h:"he",a:"ashkenazi",s:"en","":"en"},be=new Map;let Te,Me;function Ie(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Ee(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function Oe(e){const t=Ee(e),n=be.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class Ce{static lookupTranslation(e,t){const n=("string"==typeof t&&be.get(t.toLowerCase())||Te)[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(e=Ee(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);be.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=Oe(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${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 string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=Oe(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=Ee(e),n=Oe(t);return Me=Ae[t]||t,Te=n,Te}static getLocaleName(){return Me}static getLocaleNames(){return Array.from(be.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||Me;if(!n)return Ie(e);switch(n){case"en":case"s":case"a":return Ie(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?Ie(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}Ce.addLocale("en",ve),Ce.addLocale("s",ve),Ce.addLocale("",ve),Ce.useLocale("en"),Ce.addLocale("ashkenazi",pe),Ce.addLocale("a",pe),Ce.addLocale("he",we),Ce.addLocale("h",we);const Ne=we.contexts[""],He={};for(const[e,t]of Object.entries(Ne))He[e]=[Ce.hebrewStripNikkud(t[0])];const De={headers:we.headers,contexts:{"":He}};Ce.addLocale("he-x-NoNikud",De);const _e="day",ke="week",Le="month",Re="year";class Ye{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const a="string"==typeof n?parseInt(n,10):n;if(isNaN(a))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=a,function(e,t){e.mm=Ye.monthNum(t),Pe(e)}(this,t);const i="string"==typeof e?parseInt(e,10):e;if(isNaN(i))throw new TypeError(`HDate called with bad day argument: ${e}`);o=i,(r=this).dd=o,Pe(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?s(e)?u(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad argument: ${e}`);const n="number"==typeof t,r=n?H(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return D(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=_(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return k(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 h(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=C(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return C(e,t,n)}getMonthName(){return L(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||Ce.getLocaleName(),r=this.getDate(),o=Ce.gettext(this.getMonthName(),n).replace(/'/g,"’"),a=Ce.ordinal(r,n),i=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=Ce.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=Ce.gettext(this.getMonthName(),n),o=this.getFullYear();return q(t)+" "+r+" "+q(o)}before(e){return Be(e,this,-1)}onOrBefore(e){return Be(e,this,0)}nearest(e){return Be(e,this,3)}onOrAfter(e){return Be(e,this,6)}after(e){return Be(e,this,7)}next(){return new Ye(this.abs()+1)}prev(){return new Ye(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 Ye(this);if(t=function(e){switch(e){case"d":return _e;case"w":return ke;case"M":return Le;case"y":return Re}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case _e:case ke:case Le:case Re:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===_e)return new Ye(this.abs()+e);if(t===ke)return new Ye(this.abs()+7*e);if(t===Re)return new Ye(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new Ye(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Ye(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return 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 D(e)}static monthsInYear(e){return _(e)}static daysInMonth(e,t){return k(e,t)}static getMonthName(e,t){return L(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):Ye.monthFromName(e)}static daysInYear(e){return Y(e)}static longCheshvan(e){return P(e)}static shortKislev(e){return j(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 l;case"i":return f;case"e":return g;case"c":case"ח":return y;case"k":case"כ":return S;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return d;case"i":return m;case"e":return p}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?w:v}break;case"ס":return 3;case"ט":return p;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?w:v;case"י":return f;case"ל":return g}break;case"ת":switch(t[1]){case"מ":return d;case"ש":return m}}throw new RangeError(`Unable to parse month name: ${e}`)}(Ce.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=X(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=Ye.monthFromName(a);let s=X(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Ye(o,i,s)}}function Pe(e){je(e),function(e){e.dd<1&&(e.mm===A.TISHREI&&(e.yy-=1),e.dd+=k(e.mm,e.yy),e.mm-=1,Pe(e));e.dd>k(e.mm,e.yy)&&(e.mm===A.ELUL&&(e.yy+=1),e.dd-=k(e.mm,e.yy),e.mm===_(e.yy)?e.mm=1:e.mm+=1,Pe(e));je(e)}(e)}function je(e){e.mm!==A.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=_(e.yy),e.yy-=1,Pe(e)):e.mm>_(e.yy)&&(e.mm-=_(e.yy),e.yy+=1,Pe(e)):(e.mm-=1,Pe(e)),delete e.rd}function Be(e,t,n){return new Ye(Ye.dayOnOrBefore(e,t.abs()+n))}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"],"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"]}}},Ue={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":["רֹאשׁ חוֹדֶשׁ"],"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":["פִּרְקֵי אָבוֹת"]}}};Ce.addTranslations("he",Ue),Ce.addTranslations("h",Ue),Ce.addTranslations("ashkenazi",Fe),Ce.addTranslations("a",Fe);const xe=Ue.contexts[""],Ze={};for(const[e,t]of Object.entries(xe))Ze[e]=[Ce.hebrewStripNikkud(t[0])];const $e={headers:Ue.headers,contexts:{"":Ze}};Ce.addTranslations("he-x-NoNikud",$e);const Ve={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},ze=[[Ve.MAJOR_FAST,"holiday","major","fast"],[Ve.CHANUKAH_CANDLES,"holiday","major"],[Ve.HEBREW_DATE,"hebdate"],[Ve.MINOR_FAST,"holiday","fast"],[Ve.MINOR_HOLIDAY,"holiday","minor"],[Ve.MODERN_HOLIDAY,"holiday","modern"],[Ve.MOLAD,"molad"],[Ve.OMER_COUNT,"omer"],[Ve.PARSHA_HASHAVUA,"parashat"],[Ve.ROSH_CHODESH,"roshchodesh"],[Ve.SHABBAT_MEVARCHIM,"mevarchim"],[Ve.SPECIAL_SHABBAT,"holiday","shabbat"],[Ve.USER_EVENT,"user"]];class Ke{constructor(e,t,n=0,r){if(!Ye.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 Ce.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Ve.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Ve.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Ke(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 ze){if(e&t[0])return t.slice(1)}return["unknown"]}}class Je extends Ke{constructor(e){super(e,e.toString(),Ve.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Ce.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=Ce.gettext(t.getMonthName(),e);return q(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Ce.getLocaleName(),r=this.getDate();if(r.getMonth()===A.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 Ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},We=function(e){return e&&e.Math===Math&&e},qe=We("object"==typeof globalThis&&globalThis)||We("object"==typeof window&&window)||We("object"==typeof self&&self)||We("object"==typeof Ge&&Ge)||We("object"==typeof Ge&&Ge)||function(){return this}()||Function("return this")(),Xe={},Qe=function(e){try{return!!e()}catch(e){return!0}},et=!Qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),tt=!Qe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),nt=tt,rt=Function.prototype.call,ot=nt?rt.bind(rt):function(){return rt.apply(rt,arguments)},at={},it={}.propertyIsEnumerable,st=Object.getOwnPropertyDescriptor,ct=st&&!it.call({1:2},1);at.f=ct?function(e){var t=st(this,e);return!!t&&t.enumerable}:it;var ut,ht,lt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ft=tt,dt=Function.prototype,gt=dt.call,mt=ft&&dt.bind.bind(gt,gt),yt=ft?mt:function(e){return function(){return gt.apply(e,arguments)}},St=yt,pt=St({}.toString),wt=St("".slice),vt=Qe,At=function(e){return wt(pt(e),8,-1)},bt=Object,Tt=yt("".split),Mt=vt((function(){return!bt("z").propertyIsEnumerable(0)}))?function(e){return"String"===At(e)?Tt(e,""):bt(e)}:bt,It=function(e){return null==e},Et=It,Ot=TypeError,Ct=function(e){if(Et(e))throw new Ot("Can't call method on "+e);return e},Nt=Mt,Ht=Ct,Dt=function(e){return Nt(Ht(e))},_t="object"==typeof document&&document.all,kt=void 0===_t&&void 0!==_t?function(e){return"function"==typeof e||e===_t}:function(e){return"function"==typeof e},Lt=kt,Rt=function(e){return"object"==typeof e?null!==e:Lt(e)},Yt=qe,Pt=kt,jt=function(e,t){return arguments.length<2?(n=Yt[e],Pt(n)?n:void 0):Yt[e]&&Yt[e][t];var n},Bt=yt({}.isPrototypeOf),Ft=qe,Ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",xt=Ft.process,Zt=Ft.Deno,$t=xt&&xt.versions||Zt&&Zt.version,Vt=$t&&$t.v8;Vt&&(ht=(ut=Vt.split("."))[0]>0&&ut[0]<4?1:+(ut[0]+ut[1])),!ht&&Ut&&(!(ut=Ut.match(/Edge\/(\d+)/))||ut[1]>=74)&&(ut=Ut.match(/Chrome\/(\d+)/))&&(ht=+ut[1]);var zt=ht,Kt=Qe,Jt=qe.String,Gt=!!Object.getOwnPropertySymbols&&!Kt((function(){var e=Symbol("symbol detection");return!Jt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zt&&zt<41})),Wt=Gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qt=jt,Xt=kt,Qt=Bt,en=Object,tn=Wt?function(e){return"symbol"==typeof e}:function(e){var t=qt("Symbol");return Xt(t)&&Qt(t.prototype,en(e))},nn=String,rn=kt,on=function(e){try{return nn(e)}catch(e){return"Object"}},an=TypeError,sn=function(e){if(rn(e))return e;throw new an(on(e)+" is not a function")},cn=It,un=ot,hn=kt,ln=Rt,fn=TypeError,dn={exports:{}},gn=qe,mn=Object.defineProperty,yn=function(e,t){try{mn(gn,e,{value:t,configurable:!0,writable:!0})}catch(n){gn[e]=t}return t},Sn=qe,pn=yn,wn="__core-js_shared__",vn=dn.exports=Sn[wn]||pn(wn,{});(vn.versions||(vn.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 An=dn.exports,bn=An,Tn=function(e,t){return bn[e]||(bn[e]=t||{})},Mn=Ct,In=Object,En=function(e){return In(Mn(e))},On=yt({}.hasOwnProperty),Cn=Object.hasOwn||function(e,t){return On(En(e),t)},Nn=yt,Hn=0,Dn=Math.random(),_n=Nn(1..toString),kn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_n(++Hn+Dn,36)},Ln=Tn,Rn=Cn,Yn=kn,Pn=Gt,jn=Wt,Bn=qe.Symbol,Fn=Ln("wks"),Un=jn?Bn.for||Bn:Bn&&Bn.withoutSetter||Yn,xn=function(e){return Rn(Fn,e)||(Fn[e]=Pn&&Rn(Bn,e)?Bn[e]:Un("Symbol."+e)),Fn[e]},Zn=ot,$n=Rt,Vn=tn,zn=function(e,t){var n=e[t];return cn(n)?void 0:sn(n)},Kn=function(e,t){var n,r;if("string"===t&&hn(n=e.toString)&&!ln(r=un(n,e)))return r;if(hn(n=e.valueOf)&&!ln(r=un(n,e)))return r;if("string"!==t&&hn(n=e.toString)&&!ln(r=un(n,e)))return r;throw new fn("Can't convert object to primitive value")},Jn=TypeError,Gn=xn("toPrimitive"),Wn=function(e,t){if(!$n(e)||Vn(e))return e;var n,r=zn(e,Gn);if(r){if(void 0===t&&(t="default"),n=Zn(r,e,t),!$n(n)||Vn(n))return n;throw new Jn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Kn(e,t)},qn=tn,Xn=function(e){var t=Wn(e,"string");return qn(t)?t:t+""},Qn=Rt,er=qe.document,tr=Qn(er)&&Qn(er.createElement),nr=function(e){return tr?er.createElement(e):{}},rr=nr,or=!et&&!Qe((function(){return 7!==Object.defineProperty(rr("div"),"a",{get:function(){return 7}}).a})),ar=et,ir=ot,sr=at,cr=lt,ur=Dt,hr=Xn,lr=Cn,fr=or,dr=Object.getOwnPropertyDescriptor;Xe.f=ar?dr:function(e,t){if(e=ur(e),t=hr(t),fr)try{return dr(e,t)}catch(e){}if(lr(e,t))return cr(!ir(sr.f,e,t),e[t])};var gr={},mr=et&&Qe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),yr=Rt,Sr=String,pr=TypeError,wr=function(e){if(yr(e))return e;throw new pr(Sr(e)+" is not an object")},vr=et,Ar=or,br=mr,Tr=wr,Mr=Xn,Ir=TypeError,Er=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,Cr="enumerable",Nr="configurable",Hr="writable";gr.f=vr?br?function(e,t,n){if(Tr(e),t=Mr(t),Tr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Hr in n&&!n[Hr]){var r=Or(e,t);r&&r[Hr]&&(e[t]=n.value,n={configurable:Nr in n?n[Nr]:r[Nr],enumerable:Cr in n?n[Cr]:r[Cr],writable:!1})}return Er(e,t,n)}:Er:function(e,t,n){if(Tr(e),t=Mr(t),Tr(n),Ar)try{return Er(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Ir("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Dr=gr,_r=lt,kr=et?function(e,t,n){return Dr.f(e,t,_r(1,n))}:function(e,t,n){return e[t]=n,e},Lr={exports:{}},Rr=et,Yr=Cn,Pr=Function.prototype,jr=Rr&&Object.getOwnPropertyDescriptor,Br=Yr(Pr,"name"),Fr={EXISTS:Br,PROPER:Br&&"something"===function(){}.name,CONFIGURABLE:Br&&(!Rr||Rr&&jr(Pr,"name").configurable)},Ur=kt,xr=An,Zr=yt(Function.toString);Ur(xr.inspectSource)||(xr.inspectSource=function(e){return Zr(e)});var $r,Vr,zr,Kr=xr.inspectSource,Jr=kt,Gr=qe.WeakMap,Wr=Jr(Gr)&&/native code/.test(String(Gr)),qr=kn,Xr=Tn("keys"),Qr=function(e){return Xr[e]||(Xr[e]=qr(e))},eo={},to=Wr,no=qe,ro=Rt,oo=kr,ao=Cn,io=An,so=Qr,co=eo,uo="Object already initialized",ho=no.TypeError,lo=no.WeakMap;if(to||io.state){var fo=io.state||(io.state=new lo);fo.get=fo.get,fo.has=fo.has,fo.set=fo.set,$r=function(e,t){if(fo.has(e))throw new ho(uo);return t.facade=e,fo.set(e,t),t},Vr=function(e){return fo.get(e)||{}},zr=function(e){return fo.has(e)}}else{var go=so("state");co[go]=!0,$r=function(e,t){if(ao(e,go))throw new ho(uo);return t.facade=e,oo(e,go,t),t},Vr=function(e){return ao(e,go)?e[go]:{}},zr=function(e){return ao(e,go)}}var mo={set:$r,get:Vr,has:zr,enforce:function(e){return zr(e)?Vr(e):$r(e,{})},getterFor:function(e){return function(t){var n;if(!ro(t)||(n=Vr(t)).type!==e)throw new ho("Incompatible receiver, "+e+" required");return n}}},yo=yt,So=Qe,po=kt,wo=Cn,vo=et,Ao=Fr.CONFIGURABLE,bo=Kr,To=mo.enforce,Mo=mo.get,Io=String,Eo=Object.defineProperty,Oo=yo("".slice),Co=yo("".replace),No=yo([].join),Ho=vo&&!So((function(){return 8!==Eo((function(){}),"length",{value:8}).length})),Do=String(String).split("String"),_o=Lr.exports=function(e,t,n){"Symbol("===Oo(Io(t),0,7)&&(t="["+Co(Io(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!wo(e,"name")||Ao&&e.name!==t)&&(vo?Eo(e,"name",{value:t,configurable:!0}):e.name=t),Ho&&n&&wo(n,"arity")&&e.length!==n.arity&&Eo(e,"length",{value:n.arity});try{n&&wo(n,"constructor")&&n.constructor?vo&&Eo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=To(e);return wo(r,"source")||(r.source=No(Do,"string"==typeof t?t:"")),e};Function.prototype.toString=_o((function(){return po(this)&&Mo(this).source||bo(this)}),"toString");var ko=Lr.exports,Lo=kt,Ro=gr,Yo=ko,Po=yn,jo={},Bo=Math.ceil,Fo=Math.floor,Uo=Math.trunc||function(e){var t=+e;return(t>0?Fo:Bo)(t)},xo=Uo,Zo=function(e){var t=+e;return t!=t||0===t?0:xo(t)},$o=Zo,Vo=Math.max,zo=Math.min,Ko=Zo,Jo=Math.min,Go=function(e){var t=Ko(e);return t>0?Jo(t,9007199254740991):0},Wo=Dt,qo=function(e,t){var n=$o(e);return n<0?Vo(n+t,0):zo(n,t)},Xo=function(e){return Go(e.length)},Qo=function(e){return function(t,n,r){var o=Wo(t),a=Xo(o);if(0===a)return!e&&-1;var i,s=qo(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}},ea={includes:Qo(!0),indexOf:Qo(!1)},ta=Cn,na=Dt,ra=ea.indexOf,oa=eo,aa=yt([].push),ia=function(e,t){var n,r=na(e),o=0,a=[];for(n in r)!ta(oa,n)&&ta(r,n)&&aa(a,n);for(;t.length>o;)ta(r,n=t[o++])&&(~ra(a,n)||aa(a,n));return a},sa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ca=ia,ua=sa.concat("length","prototype");jo.f=Object.getOwnPropertyNames||function(e){return ca(e,ua)};var ha={};ha.f=Object.getOwnPropertySymbols;var la=jt,fa=jo,da=ha,ga=wr,ma=yt([].concat),ya=la("Reflect","ownKeys")||function(e){var t=fa.f(ga(e)),n=da.f;return n?ma(t,n(e)):t},Sa=Cn,pa=ya,wa=Xe,va=gr,Aa=Qe,ba=kt,Ta=/#|\.prototype\./,Ma=function(e,t){var n=Ea[Ia(e)];return n===Ca||n!==Oa&&(ba(t)?Aa(t):!!t)},Ia=Ma.normalize=function(e){return String(e).replace(Ta,".").toLowerCase()},Ea=Ma.data={},Oa=Ma.NATIVE="N",Ca=Ma.POLYFILL="P",Na=Ma,Ha=qe,Da=Xe.f,_a=kr,ka=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(Lo(n)&&Yo(n,a,r),r.global)o?e[t]=n:Po(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Ro.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},La=yn,Ra=function(e,t,n){for(var r=pa(t),o=va.f,a=wa.f,i=0;i<r.length;i++){var s=r[i];Sa(e,s)||n&&Sa(n,s)||o(e,s,a(t,s))}},Ya=Na,Pa={},ja=ia,Ba=sa,Fa=Object.keys||function(e){return ja(e,Ba)},Ua=et,xa=mr,Za=gr,$a=wr,Va=Dt,za=Fa;Pa.f=Ua&&!xa?Object.defineProperties:function(e,t){$a(e);for(var n,r=Va(t),o=za(t),a=o.length,i=0;a>i;)Za.f(e,n=o[i++],r[n]);return e};var Ka,Ja=jt("document","documentElement"),Ga=wr,Wa=Pa,qa=sa,Xa=eo,Qa=Ja,ei=nr,ti="prototype",ni="script",ri=Qr("IE_PROTO"),oi=function(){},ai=function(e){return"<"+ni+">"+e+"</"+ni+">"},ii=function(e){e.write(ai("")),e.close();var t=e.parentWindow.Object;return e=null,t},si=function(){try{Ka=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;si="undefined"!=typeof document?document.domain&&Ka?ii(Ka):(t=ei("iframe"),n="java"+ni+":",t.style.display="none",Qa.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(ai("document.F=Object")),e.close(),e.F):ii(Ka);for(var r=qa.length;r--;)delete si[ti][qa[r]];return si()};Xa[ri]=!0;var ci=Object.create||function(e,t){var n;return null!==e?(oi[ti]=Ga(e),n=new oi,oi[ti]=null,n[ri]=e):n=si(),void 0===t?n:Wa.f(n,t)},ui=xn,hi=ci,li=gr.f,fi=ui("unscopables"),di=Array.prototype;void 0===di[fi]&&li(di,fi,{configurable:!0,value:hi(null)});var gi=ea.includes,mi=function(e){di[fi][e]=!0};function yi(e,t,n,r,o){return Si(t,pi(e,t),n,r,o)}function Si(e,t,n,r,o,a){const i=Bi(t,n,r);if(o&&t!==i)throw new RangeError(zl(e,t,n,r,a));return i}function pi(e,t){const n=e[t];if(void 0===n)throw new TypeError(Jl(t));return n}function wi(e){return null!==e&&/object|function/.test(typeof e)}function vi(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 Ai(e){return bi({name:e},1)}function bi(e,t){return Ei((e=>({value:e,configurable:1,writable:!t})),e)}function Ti(e){return Ei((e=>({get:e,configurable:1})),e)}function Mi(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Ii(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Ei(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Oi(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 Ci(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Ni(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Hi(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Di(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function _i(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function ki(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Li(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 Ri(e){return e[0].toUpperCase()+e.substring(1)}function Yi(e){return e.slice().sort()}function Pi(e,t){return String(t).padStart(e,"0")}function ji(e,t){return Math.sign(e-t)}function Bi(e,t,n){return Math.min(Math.max(e,t),n)}function Fi(e,t){return[Math.floor(e/t),Ui(e,t)]}function Ui(e,t){return(e%t+t)%t}function xi(e,t){return[Zi(e,t),$i(e,t)]}function Zi(e,t){return Math.trunc(e/t)||0}function $i(e,t){return e%t||0}function Vi(e){return.5===Math.abs(e%1)}function zi(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=$f[a],s=Zf/i,[c,u]=xi(t,s);r+=u*i,o+=c}const[a,i]=xi(r,Zf);return[o+a,i]}function Ki(e,t,n){const r={};for(let o=t;o>=0;o--){const t=$f[o];r[n[o]]=Zi(e,t),e=$i(e,t)}return r}function Ji(e){if(void 0!==e)return Wi(e)}function Gi(e){return ns(Wi(e))}function Wi(e){return ts(yd(e))}function qi(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Xi(e,t){if(null==t)throw new RangeError(Jl(e));return t}function Qi(e){if(!wi(e))throw new TypeError(Vl);return e}function es(e,t){if(typeof t!==e)throw new TypeError(Kl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function ts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Bl(t,e));return e||0}function ns(e){if(e<=0)throw new RangeError(Fl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function rs(e){if("symbol"==typeof e)throw new TypeError($l);return String(e)}function os(e,t){return wi(e)?String(e):gd(e,t)}function as(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Zl(e));return e}function is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(xl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Ul(t,e));return e}function ss(e,t){return Math.trunc(is(e,t))||0}function cs(e,t){return ts(is(e,t),t)}function us(e,t){return ns(ss(e,t),t)}function hs(e,t){let[n,r]=xi(t,Zf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Zf),[o,r]}function ls(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return hs(e[0]+t[0]*n,e[1]+t[1]*n)}function fs(e,t){return hs(e[0],e[1]+t)}function ds(e,t){return ls(t,e,-1)}function gs(e,t){return ji(e[0],t[0])||ji(e[1],t[1])}function ms(e,t,n){return-1===gs(e,t)||1===gs(e,n)}function ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Zf/t);return[Number(e/n),Number(e%n)*t]}function Ss(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Zf/t,[r,o]=xi(e,n);return[r,o*t]}function ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Zf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function ws(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]=xi(o,t);return r*(Zf/t)+(a+(n?i/t:0))}function vs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fi;const[r,o]=e,[a,i]=n(o,t);return[r*(Zf/t)+a,i]}function As(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function bs(e){return yi(e,"isoYear",xd,Ud,1),e.isoYear===xd?yi(e,"isoMonth",4,12,1):e.isoYear===Ud&&yi(e,"isoMonth",1,9,1),e}function Ts(e){return Ms({...e,...kd,isoHour:12}),e}function Ms(e){const t=yi(e,"isoYear",xd,Ud,1),n=t===xd?1:t===Ud?-1:0;return n&&Is(Ds({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Is(e){if(!e||ms(e,Fd,Bd))throw new RangeError(vf);return e}function Es(e){return zi(e,5,Od)[1]}function Os(e){const[t,n]=Fi(e,Zf);return[Ki(n,5,Od),t]}function Cs(e){return Ns(e)[0]}function Ns(e){return vs(e,Ff)}function Hs(e){return Ls(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Ds(e){const t=Hs(e);if(void 0!==t){const[n,r]=xi(t,Yf);return[n,r*Bf+(e.isoMicrosecond||0)*jf+(e.isoNanosecond||0)]}}function _s(e,t){const[n,r]=Os(Es(e)-t);return Is(Ds({...e,isoDay:e.isoDay+r,...n}))}function ks(){return Ls(...arguments)/Pf}function Ls(){const[e,t]=Rs(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*Yf}function Rs(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===xd?1:e===Ud?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function Ys(e,t){let[n,r]=fs(e,t);r<0&&(r+=Zf,n-=1);const[o,a]=Fi(r,Bf),[i,s]=Fi(a,jf);return Ps(n*Yf+o,i,s)}function Ps(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)-jd)/Yf)*Math.sign(e),o=new Date(e-r*Yf);return Ii(Nd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function js(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Bs(){return Vd}function Fs(e,t){switch(t){case 2:return xs(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Us(e){return xs(e)?366:365}function xs(e){return e%4==0&&(e%100!=0||e%400==0)}function Zs(e){const[t,n]=Rs(e.isoYear,e.isoMonth,e.isoDay);return Ui(t.getUTCDay()-n,7)||7}function $s(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Vs(e){const t=Hs(e);if(t<zd)return $s(e);const n=As(em(ld),t),{era:r,eraYear:o}=Zh(n,ld);return[r,o]}function zs(e){return Ks(e),Ws(e,1),e}function Ks(e){return Gs(e,1),e}function Js(e){return _i(Cd,e,Gs(e))}function Gs(e,t){const{isoYear:n}=e,r=yi(e,"isoMonth",1,Bs(),t);return{isoYear:n,isoMonth:r,isoDay:yi(e,"isoDay",1,Fs(n,r),t)}}function Ws(e,t){return Ii(Od,[yi(e,"isoHour",0,23,t),yi(e,"isoMinute",0,59,t),yi(e,"isoSecond",0,59,t),yi(e,"isoMillisecond",0,999,t),yi(e,"isoMicrosecond",0,999,t),yi(e,"isoNanosecond",0,999,t)])}function qs(e){return void 0===e?0:hg(Qi(e))}function Xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=uc(e);const n=lg(e),r=fg(e,t);return[hg(e),r,n]}function Qs(e){return lg(uc(e))}function ec(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=uc(t);let i=cg(t,r,o),s=ic(t),c=yg(t,a);const u=sg(t,r,o,1);return null==i?i=Math.max(n,u):mc(i,u),s=sc(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function tc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=ic(e=hc(e,Jd));const o=yg(e,7);let a=sg(e,t);return a=Xi(Jd,a),r=sc(r,a,void 0,n),[a,r,o]}function nc(e){return dg(uc(e))}function rc(e,t){return oc(uc(e),t)}function oc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=cc(e);return[yg(e,4),...ac(sg(e,t),n)]}function ac(e,t){return null!=e?[$f[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function ic(e){const t=e[Wd];return void 0===t?1:ss(t,Wd)}function sc(e,t,n,r){const o=r?Zf:$f[t+1];if(o){const n=$f[t];if(o%((e=Si(Wd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Kl(Wd,e))}else e=Si(Wd,e,1,n?10**9:1,1);return e}function cc(e){let t=e[qd];if(void 0!==t){if("number"!=typeof t){if("auto"===rs(t))return;throw new RangeError(Kl(qd,t))}t=Si(qd,Math.floor(t),0,9,1)}return t}function uc(e){return void 0===e?{}:Qi(e)}function hc(e,t){return"string"==typeof e?{[t]:e}:Qi(e)}function lc(e){if(void 0!==e){if(wi(e))return Object.assign(Object.create(null),e);throw new TypeError(Vl)}}function fc(e,t){return e&&Object.assign(Object.create(null),e,{overflow:eg[t]})}function dc(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=rs(a),"auto"===a)return o?r:null;let i=Lf[a];if(void 0===i&&(i=Td[a]),void 0===i)throw new RangeError(Xl(e,a,Lf));return Si(e,i,r,n,1,Rf),i}function gc(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=rs(o),i=t[a];if(void 0===i)throw new RangeError(Xl(e,a,t));return i}function mc(e,t){if(t>e)throw new RangeError(Ef)}function yc(e){return{branding:Tg,epochNanoseconds:e}}function Sc(e,t,n){return{branding:bg,calendar:n,timeZone:t,epochNanoseconds:e}}function pc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:vg,calendar:t,...Ni(_d,e)}}function wc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:wg,calendar:t,...Ni(Hd,e)}}function vc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Sg,calendar:t,...Ni(Hd,e)}}function Ac(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:pg,calendar:t,...Ni(Hd,e)}}function bc(e){return{branding:Ag,...Ni(Dd,e)}}function Tc(e){return{branding:Mg,sign:Fu(e),...Ni(wd,e)}}function Mc(e){return vs(e.epochNanoseconds,Bf)[0]}function Ic(e){return e.epochNanoseconds}function Ec(e){return"string"==typeof e?e:gd(e.id)}function Oc(e,t){return e===t||Ec(e)===Ec(t)}function Cc(e,t){return ws(Zu(e),$f[t],1)}function Nc(e,t,n,r,o,a,i){const s=pd[n],c={...t,[s]:t[s]+r},u=i(e,o,t),h=i(e,o,c);return[a(u),a(h)]}function Hc(e,t,n){const r=ws(ds(t,n));if(!r)throw new RangeError(lf);return ws(ds(t,e))/r}function Dc(e,t,n,r){return _c(e,Rc(t,n),r)}function _c(e,t,n){const[r,o]=kc(e,t,n);return Ms({...Hu(e,o),...r})}function kc(e,t,n){return Os(xc(Es(e),t,n))}function Lc(e){return xc(e,Uf,7)}function Rc(e,t){return $f[e]*t}function Yc(e){const t=Pc(e);return[t,Hu(t,1)]}function Pc(e){return Ld(6,e)}function jc(e,t,n){const r=Math.min(Ku(e),6);return $u(Uc(Zu(e,r),t,n),r)}function Bc(e,t,n,r,o,a,i,s,c,u){if(0===r&&1===o)return e;const h=Yu(r,s)?Ru(s)&&r<6&&n>=6?Vc:$c:zc;let[l,f,d]=h(e,t,n,r,o,a,i,s,c,u);return d&&7!==r&&(l=((e,t,n,r,o,a,i,s)=>{const c=Fu(e);for(let u=r+1;u<=n;u++){if(7===u&&7!==n)continue;const r=Ed(u,e);r[pd[u]]+=c;const h=ws(ds(i(s(o,a,r)),t));if(h&&Math.sign(h)!==c)break;e=r}return e})(l,f,n,Math.max(6,r),i,s,c,u)),l}function Fc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Zf)(e);return[xc(t,n,r),0]}return Uc(e,Rc(t,n),r,o)}function Uc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Zf,o-=1);const[i,s]=Fi(xc(a,t,n),Zf);return hs(o+i,s)}function xc(e,t,n){return Zc(e/t,n)*t}function Zc(e,t){return Ig[t](e)}function $c(e,t,n,r,o,a){const i=Fu(e),s=Zu(e),c=Fc(s,r,o,a),u=ds(s,c),h=Math.sign(c[0]-s[0])===i,l=$u(c,Math.min(n,6));return[{...e,...l},ls(t,u),h]}function Vc(e,t,n,r,o,a,i,s,c,u){const h=Fu(e),l=ws(Zu(e,5)),f=Rc(r,o);let d=xc(l,f,a);const[g,m]=Nc(i,{...e,...Id},6,h,s,c,u),y=d-ws(ds(g,m));let S=0;y&&Math.sign(y)!==h?t=fs(g,d):(S+=h,d=xc(y,f,a),t=fs(m,d));const p=Vu(d);return[{...e,...p,days:e.days+S},t,Boolean(S)]}function zc(e,t,n,r,o,a,i,s,c,u){const h=Fu(e),l=pd[r],f=Ed(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=Zi(e[l],o)*o;f[l]=d;const[g,m]=Nc(i,f,r,o*h,s,c,u),y=d+Hc(t,g,m)*h*o,S=xc(y,o,a),p=Math.sign(S-y)===h;return f[l]=S,[f,p?m:g,p]}function Kc(e,t,n,r){const[o,a,i,s]=(e=>{const t=oc(e=uc(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=Uc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return ru(Ys(n,i),a)+(e?cu(Lc(i)):"Z")})(c,t(c?e(o):Eg),n.epochNanoseconds,a,i,s)}function Jc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=uc(e);const t=dg(e),n=cc(e),r=mg(e),o=yg(e,4),a=sg(e,4);return[t,gg(e),r,o,...ac(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=Uc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return ru(Ys(r,h),u)+cu(Lc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+Ec(e)+"]":"")(n,a)+uu(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Gc(e,t){const[n,r,o,a]=(e=>(e=uc(e),[dg(e),...oc(e)]))(t);return i=e.calendar,s=n,c=a,ru(_c(e,o,r),c)+uu(i,s);var i,s,c}function Wc(e,t){return n=e.calendar,r=e,o=nc(t),ou(r)+uu(n,o);var n,r,o}function qc(e,t){return tu(e.calendar,au,e,nc(t))}function Xc(e,t){return tu(e.calendar,iu,e,nc(t))}function Qc(e,t){const[n,r,o]=rc(t);return a=o,su(kc(e,r,n)[0],a);var a}function eu(e,t){const[n,r,o]=rc(t,3);return r>1&&(e={...e,...jc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Bu(e):e,{hours:o,minutes:a}=r,[i,s]=vs(Zu(r,3),Ff,xi);xu(i);const c=lu(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+nu({Y:du(r.years),M:du(r.months),W:du(r.weeks),D:du(r.days)})+(o||a||i||u?"T"+nu({H:du(o),M:du(a),S:du(i,u)+c}):"")})(e,o)}function tu(e,t,n,r){const o=Ec(e),a=r>1||0===r&&o!==ud;return 1===r?o===ud?t(n):ou(n):a?ou(n)+hu(o,2===r):t(n)}function nu(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function ru(e,t){return ou(e)+"T"+su(e,t)}function ou(e){return au(e)+"-"+kf(e.isoDay)}function au(e){const{isoYear:t}=e;return(t<0||t>9999?fu(t)+Pi(6,Math.abs(t)):Pi(4,t))+"-"+kf(e.isoMonth)}function iu(e){return kf(e.isoMonth)+"-"+kf(e.isoDay)}function su(e,t){const n=[kf(e.isoHour),kf(e.isoMinute)];return-1!==t&&n.push(kf(e.isoSecond)+((e,t,n,r)=>lu(e*Bf+t*jf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function cu(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=Fi(Math.abs(e),xf),[r,o]=Fi(n,Uf),[a,i]=Fi(o,Ff);return fu(e)+kf(t)+":"+kf(r)+(a||i?":"+kf(a)+lu(i):"")}function uu(e,t){if(1!==t){const n=Ec(e);if(t>1||0===t&&n!==ud)return hu(n,2===t)}return""}function hu(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function lu(e,t){let n=Pi(9,e);return n=void 0===t?n.replace(Hg,""):n.slice(0,t),n?"."+n:""}function fu(e){return e<0?"-":"+"}function du(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function gu(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=Ys(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function mu(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 _s(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Ds(t);r&&(n=Lc(n));for(const t of e){let e=ws(ds(t,o));if(r&&(e=Lc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(pf)}return i?Ds(t):yu(e,t,o,s)}function yu(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(wf);if(r.length)return r[3===n?1:0];const o=Ds(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(fs(t,-Zf));return pu(e.getOffsetNanosecondsFor(fs(t,Zf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(Ys(o,i)))[2===n?0:r.length-1]}function Su(e){if(Math.abs(e)>=Zf)throw new RangeError(yf);return e}function pu(e){if(e>Zf)throw new RangeError(Sf);return e}function wu(e,t,n){return yc(Is(ls(t.epochNanoseconds,(e=>{if(zu(e))throw new RangeError(Mf);return Zu(e,5)})(e?Bu(n):n))))}function vu(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,...Iu(i,s,r,n?Bu(o):o,a)}}function Au(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return pc(Eu(e(a),n,t?Bu(r):r,o),a)}function bu(e,t,n,r,o){const{calendar:a}=n;return wc(Ou(e(a),n,t?Bu(r):r,o),a)}function Tu(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=Cu(i,n);t&&(r=ju(r)),r.sign<0&&(s=i.dateAdd(s,{...Md,months:1}),s=Hu(s,-1));const c=i.dateAdd(s,r,o);return vc(Cu(i,c),a)}function Mu(e,t,n){return bc(Nu(t,e?Bu(n):n)[0])}function Iu(e,t,n,r,o){const a=Zu(r,5);let i=n.epochNanoseconds;if(zu(r)){const s=Dg(n,e);i=ls(yu(e,{...Ou(t,s,{...r,...Id},o),...Ni(Od,s)}),a)}else i=ls(i,a),qs(o);return{epochNanoseconds:Is(i)}}function Eu(e,t,n,r){const[o,a]=Nu(t,n);return Ms({...Ou(e,t,{...n,...Id,days:n.days+a},r),...o})}function Ou(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);qs(r);const o=n.days+Zu(n,5)[0];return o?Ts(Hu(t,o)):t}function Cu(e,t){return Hu(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function Nu(e,t){const[n,r]=Zu(t,5),[o,a]=Os(Es(e)+r);return[o,n+a]}function Hu(e,t){return t?{...e,...Ps(Hs(e)+t*Yf)}:e}function Du(e,t,n){const r=e(n.calendar);return Ru(n)?[n,r,t(n.timeZone)]:[{...n,...kd},r]}function _u(e){return e?Ic:Ds}function ku(e){return e?Li(Iu,e):Eu}function Lu(e){return e?Li(Hh,e):Dh}function Ru(e){return e&&e.epochNanoseconds}function Yu(e,t){return e<=6-(Ru(t)?1:0)}function Pu(e,t,n,r,o,a,i){const s=e(uc(i).relativeTo),c=Math.max(Ku(o),Ku(a));if(Yu(c,s))return Tc(Uu(((e,t,n,r)=>{const o=ls(Zu(e),Zu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(vf);return{...Md,...$u(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(Tf);r&&(a=Bu(a));const[u,h,l]=Du(t,n,s),f=ku(l),d=Lu(l),g=f(h,u,o);return Tc(d(h,u,f(h,g,a),c))}function ju(e){return Tc(Bu(e))}function Bu(e){const t={};for(const n of pd)t[n]=-1*e[n]||0;return t}function Fu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pd,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(bf);n=t}}return n}function Uu(e){for(const t of bd)Si(t,e[t],-_g,_g,1);return xu(ws(Zu(e),Ff)),e}function xu(e){if(!Number.isSafeInteger(e))throw new RangeError(Af)}function Zu(e){return zi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,pd)}function $u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Ki(r,t,pd);if(o[pd[t]]+=n*(Zf/$f[t]),!Number.isFinite(o[pd[t]]))throw new RangeError(vf);return o}function Vu(e){return Ki(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,pd)}function zu(e){return Boolean(Fu(e,Ad))}function Ku(e){let t=9;for(;t>0&&!e[pd[t]];t--);return t}function Ju(e,t){return[e,t]}function Gu(e){const t=Math.floor(e/Og)*Og;return[t,t+Og]}function Wu(e){const t=ih(e);if(void 0===t)throw new RangeError(Of(e));return t}function qu(e){const t=rh(gd(e));if(!t||t.m)throw new RangeError(Of(e));return wc(t.p?eh(t):th(t))}function Xu(e){if(e.calendar!==ud)throw new RangeError(Cf(e.calendar))}function Qu(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=gh(e.timeZone),a=kg(o);return Sc(mu(a,zs(e),t,n,r,!a.v,e.m),o,Xh(e.calendar))}function eh(e){return nh(Ms(zs(e)))}function th(e){return nh(Ts(Ks(e)))}function nh(e){return{...e,calendar:Xh(e.calendar)}}function rh(e){const t=zg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:sh(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...ch(e.slice(5)),...uh(e[16]),p:Boolean(e[6]),m:n,offset:n?void 0:t}})(t):void 0}function oh(e){const t=$g.exec(e);return t?(e=>({isoYear:sh(e),isoMonth:parseInt(e[4]),isoDay:1,...uh(e[5])}))(t):void 0}function ah(e){const t=Vg.exec(e);return t?(e=>({isoYear:$d,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...uh(e[3])}))(t):void 0}function ih(e,t){const n=Jg.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Cf(n));return Su((dh(e[2])*xf+dh(e[3])*Uf+dh(e[4])*Ff+hh(e[5]||""))*fh(e[1]))})(n,t):void 0}function sh(e){const t=fh(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Cf(-0));return t*n}function ch(e){const t=dh(e[3]);return{...Os(hh(e[4]||""))[0],isoHour:dh(e[1]),isoMinute:dh(e[2]),isoSecond:60===t?59:t}}function uh(e){let t,n;const r=[];if(e.replace(Gg,((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(Cf(e))}else{if(n)throw new RangeError(Cf(e));n=s}return""})),r.length>1&&t)throw new RangeError(Cf(e));return{timeZone:n,calendar:r[0]||ud}}function hh(e){return parseInt(e.padEnd(9,"0"))}function lh(e){return new RegExp(`^${e}$`,"i")}function fh(e){return e&&"+"!==e?-1:1}function dh(e){return void 0===e?0:parseInt(e)}function gh(e){const t=yh(e);return"number"==typeof t?cu(t):t?(e=>{if(Xg.test(e))throw new RangeError(mf);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?Ri(e).replace(/island|noronha|murdo|rivadavia|urville/,Ri):e)))).join("/")})(e):Eg}function mh(e){const t=yh(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Eg}function yh(e){const t=ih(e=e.toUpperCase(),1);return void 0!==t?t:e!==Eg?qg(e):void 0}function Sh(e,t){return gs(e.epochNanoseconds,t.epochNanoseconds)}function ph(e,t){return gs(e.epochNanoseconds,t.epochNanoseconds)}function wh(e,t){return vh(e,t)||Ah(e,t)}function vh(e,t){return ji(Hs(e),Hs(t))}function Ah(e,t){return ji(Es(e),Es(t))}function bh(e,t){if(e===t)return 1;const n=Ec(e),r=Ec(t);if(n===r)return 1;try{return mh(n)===mh(r)}catch(e){}}function Th(e,t,n,r){const o=ec(e,lc(r),3,5),a=Lh(t.epochNanoseconds,n.epochNanoseconds,...o);return Tc(e?Bu(a):a)}function Mh(e,t,n,r,o,a){const i=Bh(r.calendar,o.calendar),s=lc(a),[c,u,h,l]=ec(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=gs(d,f);let m;if(g)if(c<6)m=Lh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!bh(e,t))throw new RangeError(gf);return e})(r.timeZone,o.timeZone)),a=e(i);m=_h(a,n,r,o,g,c,s),m=Bc(m,d,c,u,h,l,a,r,Ic,Li(Iu,n))}else m=Md;return Tc(n?Bu(m):m)}function Ih(e,t,n,r,o){const a=Bh(n.calendar,r.calendar),i=lc(o),[s,c,u,h]=ec(t,i,6),l=Ds(n),f=Ds(r),d=gs(f,l);let g;if(d)if(s<=6)g=Lh(l,f,s,c,u,h);else{const t=e(a);g=kh(t,n,r,d,s,i),g=Bc(g,f,s,c,u,h,t,n,Ds,Eu)}else g=Md;return Tc(t?Bu(g):g)}function Eh(e,t,n,r,o){const a=Bh(n.calendar,r.calendar),i=lc(o);return Ch(t,(()=>e(a)),n,r,...ec(t,i,6,9,6),i)}function Oh(e,t,n,r,o){const a=Bh(n.calendar,r.calendar),i=lc(o),s=ec(t,i,9,9,8),c=e(a);return Ch(t,(()=>c),Cu(c,n),Cu(c,r),...s,i)}function Ch(e,t,n,r,o,a,i,s,c){const u=Ds(n),h=Ds(r);let l;if(gs(h,u))if(6===o)l=Lh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=Bc(l,h,o,a,i,s,e,n,Ds,Ou))}else l=Md;return Tc(e?Bu(l):l)}function Nh(e,t,n,r){const o=lc(r),[a,i,s,c]=ec(e,o,5,5),u=xc(jh(t,n),Rc(i,s),c),h={...Md,...Vu(u,a)};return Tc(e?Bu(h):h)}function Hh(e,t,n,r,o,a){const i=gs(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?Rh(n.epochNanoseconds,r.epochNanoseconds,o):_h(t,e,n,r,i,o,a):Md}function Dh(e,t,n,r,o){const a=Ds(t),i=Ds(n),s=gs(i,a);return s?r<=6?Rh(a,i,r):kh(e,t,n,s,r,o):Md}function _h(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...Hu(s,u++*-r),...i},f=yu(e,l),gs(c,f)===-r}const a=Dg(t,e),i=Ni(Od,a),s=Dg(n,e),c=n.epochNanoseconds;let u=0;const h=jh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(lf);const d=ws(ds(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...Md,days:Yh(h,l)}):e.dateUntil(s,c,a,i),...Vu(u)}}function kh(e,t,n,r,o,a){const[i,s,c]=((e,t,n)=>{let r=t,o=jh(e,t);return Math.sign(o)===-n&&(r=Hu(t,-n),o+=Zf*n),[e,r,o]})(t,n,r);return{...e.dateUntil(i,s,o,a),...Vu(c)}}function Lh(e,t,n,r,o,a){return{...Md,...$u(Fc(ds(e,t),r,o,a),n)}}function Rh(e,t,n){return{...Md,...$u(ds(e,t),n)}}function Yh(e,t){return Ph(Hs(e),Hs(t))}function Ph(e,t){return Math.trunc((t-e)/Yf)}function jh(e,t){return Es(t)-Es(e)}function Bh(e,t){if(!Oc(e,t))throw new RangeError(ff);return e}function Fh(e){function t(e){return((e,t)=>({...Zh(e,t),F:e.month,day:parseInt(e.day)}))(As(n,e),r)}const n=em(e),r=Qh(e);return{id:e,O:Uh(t),B:xh(t)}}function Uh(e){return vi((t=>{const n=Hs(t);return e(n)}),WeakMap)}function xh(e){const t=e(0).year-Zd;return vi((n=>{let r,o=Ls(n-t);const a=[],i=[];do{o+=400*Yf}while((r=e(o)).year<=n);do{o+=(1-r.day)*Yf,r.year===n&&(a.push(o),i.push(r.F)),o-=Yf}while((r=e(o)).year>=n);return{k:a.reverse(),C:Df(i.reverse())}}))}function Zh(e,t){let n,r,o=$h(e);if(e.era){const a=fd[t];void 0!==a&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"!==n&&"a"!==n||(n="ce"),r=o,o=il(r,a[n]||0))}return{era:n,eraYear:r,year:o}}function $h(e){return parseInt(e.relatedYear||e.year)}function Vh(e){const{year:t,F:n,day:r}=this.O(e),{C:o}=this.B(t);return[t,o[n]+1,r]}function zh(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.B(e).k[t-1]+(n-1)*Yf}function Kh(e){const t=qh(this,e),n=qh(this,e-1),r=t.length;if(r>n.length){const e=cl(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Jh(e){return Ph(zh.call(this,e),zh.call(this,e+1))}function Gh(e,t){const{k:n}=this.B(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.B(e+1).k),Ph(n[t-1],o[r-1])}function Wh(e){return this.B(e).k.length}function qh(e,t){return Object.keys(e.B(t).C)}function Xh(e){if((e=e.toLowerCase())!==ud&&e!==hd&&Qh(e)!==Qh(em(e).resolvedOptions().calendar))throw new RangeError(df(e));return e}function Qh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function el(e){return this.R(e)[0]}function tl(e){return this.R(e)[1]}function nl(e){const[t]=this.h(e);return Ph(this.q(t),Hs(e))+1}function rl(e){const t=tm.exec(e);if(!t)throw new RangeError(af(e));return[parseInt(t[1]),Boolean(t[2])]}function ol(e,t,n){return e+(t||n&&e>=n?1:0)}function al(e,t){return e-(t&&e>=t?1:0)}function il(e,t){return(t+e)*(Math.sign(t)||1)||0}function sl(e){return fd[ul(e)]}function cl(e){return dd[ul(e)]}function ul(e){return Qh(e.id||ud)}function hl(e,t,n,r){const o=gl(n,r,ad,[],Wf);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=yl(o),i=e(o.timeZone);return{epochNanoseconds:mu(t(i),{...r,...a},void 0!==o.offset?Wu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...kd}}function ll(e,t,n){const r=gl(e,t,ad,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function fl(e,t,n,r){const o=gl(e,t,rd,r);return e.yearMonthFromFields(o,n)}function dl(e,t,n,r){const o=gl(e,n,ad,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=$d),e.monthDayFromFields(o,r)}function gl(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 ml(t,[...e.fields(n),...o].sort(),r)}function ml(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(Wl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Gl(r));let t=e[r];if(void 0!==t)i=1,am[r]&&(t=am[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(Jl(r));o[r]=cd[r]}a=r}if(r&&!i)throw new TypeError(ql(t));return o}function yl(e,t){return Ws(im({...cd,...e}),t)}function Sl(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=ml(t,i,a);const c=ml(n,i);return s=e.mergeFields(s,c),ml(s,i,[])}function pl(e,t){const n=gl(e,t,sd);return e.monthDayFromFields(n)}function wl(e,t,n){const r=gl(e,t,od);return e.yearMonthFromFields(r,n)}function vl(e,t,n,r,o){t=Ni(n=e.fields(n),t),r=ml(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=ml(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Al(e,t){let{era:n,eraYear:r,year:o}=t;const a=sl(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(tf);if(!a)throw new RangeError(ef);const e=a[n];if(void 0===e)throw new RangeError(rf(n));const t=il(r,e);if(void 0!==o&&o!==t)throw new RangeError(nf);o=t}else if(void 0===o)throw new TypeError(of(a));return o}function bl(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.U(n),[a,i]=rl(t);let s=ol(a,i,o);if(i){const t=cl(e);if(void 0===t)throw new RangeError(hf);if(t>0){if(s>t)throw new RangeError(hf);if(void 0===o){if(1===r)throw new RangeError(hf);s--}}else{if(s!==-t)throw new RangeError(hf);if(void 0===o&&1===r)throw new RangeError(hf)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(sf);o=t,r=1}else if(void 0===o)throw new TypeError(cf);return Si("month",o,1,e.L(n),r)}function Tl(e,t,n,r,o){return yi(t,"day",1,e.j(r,n),o)}function Ml(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 Il(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ud;return Sc(e.epochNanoseconds,t,n)}function El(e,t){return pc(Dg(t,e))}function Ol(e,t){return wc(Dg(t,e))}function Cl(e,t){return bc(Dg(t,e))}function Nl(e,t){return{...e,calendar:t}}function Hl(e,t){if(e===t)return e;const n=Ec(e),r=Ec(t);if(n===r||n===ud)return t;if(r===ud)return e;throw new RangeError(ff)}function Dl(e,t){return n=>n===ud?e:n===hd||n===ld?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),Qg(n))}function _l(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=Hi(r,o),e)||Object.assign(o,t),n&&(o.timeZone=Eg,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function kl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ll;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rm;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,...Rl(e,h,s)]}}function Ll(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(Hf);n.timeZone=e}return new Rd(t,n)}function Rl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==ud)&&e!==t)throw new RangeError(ff)})(Ec(e.calendar),t.calendar,o),r(e,t))))}function Yl(e){const t=Pl();return Ys(t,e.getOffsetNanosecondsFor(t))}function Pl(){return Ss(Date.now(),Bf)}function jl(){return Zm||(Zm=(new Rd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?Ha:u?Ha[s]||La(s,{}):Ha[s]&&Ha[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Da(n,r))&&i.value:n[r],!Ya(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Ra(a,o)}(e.sham||o&&o.sham)&&_a(a,"sham",!0),ka(n,r,a,e)}})({target:"Array",proto:!0,forced:Qe((function(){return!Array(1).includes()}))},{includes:function(e){return gi(this,e,arguments.length>1?arguments[1]:void 0)}}),mi("includes");const Bl=(e,t)=>`Non-integer ${e}: ${t}`,Fl=(e,t)=>`Non-positive ${e}: ${t}`,Ul=(e,t)=>`Non-finite ${e}: ${t}`,xl=e=>`Cannot convert bigint to ${e}`,Zl=e=>`Invalid bigint: ${e}`,$l="Cannot convert Symbol to string",Vl="Invalid object",zl=(e,t,n,r,o)=>o?zl(e,o[t],o[n],o[r]):Kl(e,t)+`; must be between ${n}-${r}`,Kl=(e,t)=>`Invalid ${e}: ${t}`,Jl=e=>`Missing ${e}`,Gl=e=>`Invalid field ${e}`,Wl=e=>`Duplicate field ${e}`,ql=e=>"No valid fields: "+e.join(),Xl=(e,t,n)=>Kl(e,t)+"; must be "+Object.keys(n).join(),Ql="Invalid calling context",ef="Forbidden era/eraYear",tf="Mismatching era/eraYear",nf="Mismatching year/eraYear",rf=e=>`Invalid era: ${e}`,of=e=>"Missing year"+(e?"/era/eraYear":""),af=e=>`Invalid monthCode: ${e}`,sf="Mismatching month/monthCode",cf="Missing month/monthCode",uf="Cannot guess year",hf="Invalid leap month",lf="Invalid protocol results",ff="Mismatching Calendars",df=e=>`Invalid Calendar: ${e}`,gf="Mismatching TimeZones",mf="Forbidden ICU TimeZone",yf="Out-of-bounds offset",Sf="Out-of-bounds TimeZone gap",pf="Invalid TimeZone offset",wf="Ambiguous offset",vf="Out-of-bounds date",Af="Out-of-bounds duration",bf="Cannot mix duration signs",Tf="Missing relativeTo",Mf="Cannot use large units",If="Required smallestUnit or largestUnit",Ef="smallestUnit > largestUnit",Of=e=>`Cannot parse: ${e}`,Cf=e=>`Invalid substring: ${e}`,Nf=e=>`Cannot format ${e}`,Hf="Cannot specify TimeZone",Df=Li(Oi,((e,t)=>t)),_f=Li(Oi,((e,t,n)=>n)),kf=Li(Pi,2),Lf={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Rf=Object.keys(Lf),Yf=864e5,Pf=1e3,jf=1e3,Bf=1e6,Ff=1e9,Uf=6e10,xf=36e11,Zf=864e11,$f=[1,jf,Bf,Ff,Uf,xf,Zf],Vf=Rf.slice(0,6),zf=Yi(Vf),Kf=["offset"],Jf=["timeZone"],Gf=Vf.concat(Kf),Wf=Gf.concat(Jf),qf=["era","eraYear"],Xf=qf.concat(["year"]),Qf=["year"],ed=["monthCode"],td=["month"].concat(ed),nd=["day"],rd=td.concat(Qf),od=ed.concat(Qf),ad=nd.concat(rd),id=nd.concat(td),sd=nd.concat(ed),cd=_f(Vf,0),ud="iso8601",hd="gregory",ld="japanese",fd={[hd]:{bce:-1,ce:0},[ld]:{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}},dd={chinese:13,dangi:13,hebrew:-6},gd=Li(es,"string"),md=Li(es,"boolean"),yd=Li(es,"number"),Sd=Li(es,"function"),pd=Rf.map((e=>e+"s")),wd=Yi(pd),vd=pd.slice(0,6),Ad=pd.slice(6),bd=Ad.slice(1),Td=Df(pd),Md=_f(pd,0),Id=_f(vd,0),Ed=Li(ki,pd),Od=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Cd=["isoDay","isoMonth","isoYear"],Nd=Od.concat(Cd),Hd=Yi(Cd),Dd=Yi(Od),_d=Yi(Nd),kd=_f(Dd,0),Ld=Li(ki,Nd),Rd=Intl.DateTimeFormat,Yd="en-GB",Pd=1e8,jd=Pd*Yf,Bd=[Pd,0],Fd=[-Pd,0],Ud=275760,xd=-271821,Zd=1970,$d=1972,Vd=12,zd=Ls(1868,9,8),Kd=vi(Vs,WeakMap),Jd="smallestUnit",Gd="unit",Wd="roundingIncrement",qd="fractionalSecondDigits",Xd="relativeTo",Qd={constrain:0,reject:1},eg=Object.keys(Qd),tg={compatible:0,reject:1,earlier:2,later:3},ng={reject:0,use:1,prefer:2,ignore:3},rg={auto:0,never:1,critical:2,always:3},og={auto:0,never:1,critical:2},ag={auto:0,never:1},ig={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},sg=Li(dc,Jd),cg=Li(dc,"largestUnit"),ug=Li(dc,Gd),hg=Li(gc,"overflow",Qd),lg=Li(gc,"disambiguation",tg),fg=Li(gc,"offset",ng),dg=Li(gc,"calendarName",rg),gg=Li(gc,"timeZoneName",og),mg=Li(gc,"offset",ag),yg=Li(gc,"roundingMode",ig),Sg="PlainYearMonth",pg="PlainMonthDay",wg="PlainDate",vg="PlainDateTime",Ag="PlainTime",bg="ZonedDateTime",Tg="Instant",Mg="Duration",Ig=[Math.floor,e=>Vi(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Vi(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Vi(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=>Vi(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Eg="UTC",Og=5184e3,Cg=ks(1847),Ng=ks((new Date).getUTCFullYear()+10),Hg=/0+$/,Dg=vi(gu,WeakMap),_g=2**32-1,kg=vi((e=>{const t=yh(e);return"object"==typeof t?new Rg(t):new Lg(t||0)}));class Lg{constructor(e){this.v=e}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(e){return[_s(e,this.v)]}l(){}}class Rg{constructor(e){this.$=(e=>{function t(e){const t=Bi(e,a,i),[s,c]=Gu(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=vi(e),o=vi(Ju);let a=Cg,i=Ng;return{G(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]:[]},V:t,l(e,t){const s=Bi(e,a,i);let[c,u]=Gu(s);const h=Og*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((ji(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=As(e,t*Pf);return ks($h(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(Cs(e))*Ff}getPossibleInstantsFor(e){const[t,n]=[ks((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Bf+r.isoMicrosecond*jf+r.isoNanosecond];var r;return this.$.G(t).map((e=>Is(fs(Ss(e,Ff),n))))}l(e,t){const[n,r]=Ns(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return Ss(o,Ff)}}const Yg="([+−-])",Pg="(?:[.,](\\d{1,9}))?",jg=`(?:(?:${Yg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Bg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Pg+")?)?",Fg=Yg+Bg,Ug=jg+"-?(\\d{2})(?:[T ]"+Bg+"(Z|"+Fg+")?)?",xg="\\[(!?)([^\\]]*)\\]",Zg=`((?:${xg}){0,9})`,$g=lh(jg+Zg),Vg=lh("(?:--)?(\\d{2})-?(\\d{2})"+Zg),zg=lh(Ug+Zg),Kg=lh("T?"+Bg+"(?:"+Fg+")?"+Zg),Jg=lh(Fg),Gg=new RegExp(xg,"g"),Wg=lh(`${Yg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Pg}H)?(?:(\\d+)${Pg}M)?(?:(\\d+)${Pg}S)?)?`),qg=vi((e=>new Rd(Yd,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Xg=/^(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$/,Qg=vi(Fh),em=vi((e=>new Rd(Yd,{calendar:e,timeZone:Eg,era:"short",year:"numeric",month:"short",day:"numeric"}))),tm=/^M(\d{2})(L?)$/,nm={era:os,eraYear:ss,year:ss,month:us,monthCode:os,day:us},rm=_f(Vf,ss),om=_f(pd,cs),am=Object.assign({},nm,rm,om,{offset:os}),im=Li(Ci,Vf,Od),sm={dateAdd(e,t,n){const r=qs(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Zu(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.h(t);if(n){const[t,r]=e.I(a,i);a+=n,i=ol(t,r,e.U(a)),i=Si("month",i,1,e.L(a),o)}return r&&([a,i]=e._(a,i,r)),s=Si("day",s,1,e.j(a,i),o),e.q(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=Hs(e)}return o+=(7*s+c)*Yf,Ts(Ps(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=Yh({...e,...kd},{...t,...kd});return 7===n&&([r,o]=xi(o,7)),{...Md,weeks:r,days:o}}const r=this.h(e),o=this.h(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.j(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e._(o,a,-h),s=o-t,c=a-n,l=e.j(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.I(t,n),[u,l]=e.I(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,c=a-ol(r,i,e.U(o))+(n||e.L(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.J(a,r[0]),a=0),{...Md,years:a,months:i,days:s}},dateFromFields(e,t){const n=qs(t),r=Al(this,e),o=bl(this,e,r,n),a=Tl(this,e,o,r,n);return wc(Ts(this.P(r,o,a)),this.id||ud)},yearMonthFromFields(e,t){const n=qs(t),r=Al(this,e),o=bl(this,e,r,n);return vc(bs(this.P(r,o,1)),this.id||ud)},monthDayFromFields(e,t){const n=qs(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=rl(o),l=pi(e,"day");const t=this.N(s,c,l);if(!t)throw new RangeError(uf);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(sf);r&&(h=Si("month",h,1,Vd,1),l=Si("day",l,1,Fs(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?$d:Al(this,e),h=bl(this,e,u,n),l=Tl(this,e,h,u,n);const t=this.U(u);c=h===t,s=al(h,t);const o=this.N(s,c,l);if(!o)throw new RangeError(uf);[u,h]=o}return Ac(Ts(this.P(u,h,l)),this.id||ud)},fields(e){return sl(this)&&e.includes("year")?[...e,...qf]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Ml(n,t,td),sl(this)&&(Ml(n,t,Xf),this.id===ld&&Ml(n,t,id,qf)),n},inLeapYear(e){const[t]=this.h(e);return this.K(t)},monthsInYear(e){const[t]=this.h(e);return this.L(t)},daysInMonth(e){const[t,n]=this.h(e);return this.j(t,n)},daysInYear(e){const[t]=this.h(e);return this.X(t)},dayOfYear:nl,era(e){return this.ee(e)[0]},eraYear(e){return this.ee(e)[1]},monthCode(e){const[t,n]=this.h(e),[r,o]=this.I(t,n);return((e,t)=>"M"+kf(e)+(t?"L":""))(r,o)},dayOfWeek:Zs,daysInWeek:()=>7},cm={dayOfYear:nl,h:js,q:Ls},um=Object.assign({},cm,{weekOfYear:el,yearOfWeek:tl,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Us(f+e),r=e||1,o=t(Ui(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=Zs(e),a=this.dayOfYear(e),i=Ui(o-1,7),s=a-1,c=Ui(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]}}),hm={dayOfYear:nl,h:Vh,q:zh,weekOfYear:el,yearOfWeek:tl,R:()=>[]},lm=Dl(Object.assign({},sm,um,{h:js,ee(e){return this.id===hd?$s(e):this.id===ld?Kd(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[$d,e]},K:xs,U(){},L:Bs,J:e=>e*Vd,j:Fs,X:Us,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:Ls,_:(e,t,n)=>(e+=Zi(n,Vd),(t+=$i(n,Vd))<1?(e--,t+=Vd):t>Vd&&(e++,t-=Vd),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},sm,hm,{h:Vh,ee(e){const t=this.O(e);return[t.era,t.eraYear]},I(e,t){const n=Kh.call(this,e);return[al(t,n),n===t]},N(e,t,n){let[r,o,a]=Vh.call(this,{isoYear:$d,isoMonth:Vd,isoDay:31});const i=Kh.call(this,r),s=o===i;1===(ji(e,al(o,i))||ji(Number(t),Number(s))||ji(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Kh.call(this,a),s=ol(e,t,i);if(t===(s===i)&&n<=Gh.call(this,a,s))return[a,s]}},K(e){const t=Jh.call(this,e);return t>Jh.call(this,e-1)&&t>Jh.call(this,e+1)},U:Kh,L:Wh,J(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+=Wh.call(this,e+o);return a},j:Gh,X:Jh,P(e,t,n){return Ps(zh.call(this,e,t,n))},q:zh,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(vf);if(n<0)for(;t<1;)t+=Wh.call(this,--e);else{let n;for(;t>(n=Wh.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.O(e).year},month(e){const{year:t,F:n}=this.O(e),{C:r}=this.B(t);return r[n]+1},day(e){return this.O(e).day}})),fm="numeric",dm=["timeZoneName"],gm={month:fm,day:fm},mm={year:fm,month:fm},ym=Object.assign({},mm,{day:fm}),Sm={hour:fm,minute:fm,second:fm},pm=Object.assign({},ym,Sm),wm=Object.assign({},pm,{timeZoneName:"short"}),vm=Object.keys(mm),Am=Object.keys(gm),bm=Object.keys(ym),Tm=Object.keys(Sm),Mm=["dateStyle"],Im=vm.concat(Mm),Em=Am.concat(Mm),Om=bm.concat(Mm,["weekday"]),Cm=Tm.concat(["dayPeriod","timeStyle"]),Nm=Om.concat(Cm),Hm=Nm.concat(dm),Dm=dm.concat(Cm),_m=dm.concat(Om),km=dm.concat(["day","weekday"],Cm),Lm=dm.concat(["year","weekday"],Cm),Rm={},Ym=[_l(Nm,pm),Mc],Pm=[_l(Hm,wm),Mc,0,(e,t)=>{const n=Ec(e.timeZone);if(t&&Ec(t.timeZone)!==n)throw new RangeError(gf);return n}],jm=[_l(Nm,pm,dm),Hs],Bm=[_l(Om,ym,Dm),Hs],Fm=[_l(Cm,Sm,_m),e=>Es(e)/Bf],Um=[_l(Im,mm,km),Hs,1],xm=[_l(Em,gm,Lm),Hs,1];let Zm;function $m(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(Ql);By(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)}),Ai(t))}function s(t){const n=jy(t);if(!n||n.branding!==e)throw new TypeError(Ql);return n}return Object.defineProperties(a.prototype,{...Ti(Ei(i,n)),...bi(Ei(i,r)),...Mi("Temporal."+e)}),Object.defineProperties(a,{...bi(o),...Ai(e)}),[a,e=>{const t=Object.create(a.prototype);return By(t,e),t},s]}function Vm(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 zm(e){if(jy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Km(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{o:o}=e;const a=jy(n)||{},{branding:i}=a,s=i===wg||t.includes(i)?a:uy(n);return o[r](s)};return n}function Jm(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?lm(r):(o=r,Object.assign(Object.create(Vy),{i:o})))[n](e);var r,o};return t}function Gm(){throw new TypeError("Cannot use valueOf")}function Wm(e){let{calendar:t}=e;return"string"==typeof t?new ZS(t):t}function qm(e,t){if(t=lc(t),wi(e)){const n=jy(e);if(n&&n.branding===pg)return qs(t),n;const r=my(e);return dl(DS(r||ud),!r,e,t)}const n=function(e,t){const n=ah(gd(t));if(n)return Xu(n),Ac(Ks(n));const r=qu(t),{calendar:o}=r,a=e(o),[i,s,c]=a.h(r),[u,h]=a.I(i,s),[l,f]=a.N(u,h,c);return Ac(Ts(a.P(l,f,c)),o)}(lm,e);return qs(t),n}function Xm(e,t,n){return Su(Wi(t.call(e,nS(yc(n)))))}function Qm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qy;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Li(t[o],e,Sd(e[o]));return r}function ey(e,t){return"string"==typeof e?kg(e):Qm(e,t)}function ty(e){return ey(e,eS)}function ny(e){if(wi(e)){const t=jy(e);if(t)switch(t.branding){case Tg:return t;case bg:return yc(t.epochNanoseconds)}}return function(e){const t=rh(e=os(e));if(!t)throw new RangeError(Of(e));let n;if(t.m)n=0;else{if(!t.offset)throw new RangeError(Of(e));n=Wu(t.offset)}return t.timeZone&&ih(t.timeZone,1),yc(_s(zs(t),n))}(e)}function ry(e,t,n){const r=t.l(ny(n).epochNanoseconds,e);return r?nS(yc(r)):null}function oy(e){return wi(e)?(jy(e)||{}).timeZone||iS(e):(e=>gh(function(e){const t=rh(e);return t&&(t.timeZone||t.m&&Eg||t.offset)||e}(gd(e))))(e)}function ay(e,t){if(wi(e)){const n=jy(e)||{};switch(n.branding){case Ag:return qs(t),n;case vg:return qs(t),bc(n);case bg:return qs(t),Cl(ty,n)}return function(e,t){const n=qs(t);return bc(yl(ml(e,zf,[],1),n))}(e,t)}return qs(t),function(e){let t,n=(e=>{const t=Kg.exec(e);return t?(uh(t[10]),ch(t)):void 0})(gd(e));if(!n){if(n=rh(e),!n)throw new RangeError(Of(e));if(!n.p)throw new RangeError(Of(e));if(n.m)throw new RangeError(Cf("Z"));Xu(n)}if((t=oh(e))&&Js(t))throw new RangeError(Of(e));if((t=ah(e))&&Js(t))throw new RangeError(Of(e));return bc(Ws(n,1))}(e)}function iy(e){return void 0===e?void 0:ay(e)}function sy(e,t){if(t=lc(t),wi(e)){const n=jy(e);return n&&n.branding===Sg?(qs(t),n):fl(NS(gy(e)),e,t)}const n=function(e,t){const n=oh(gd(t));if(n)return Xu(n),vc(bs(Ks(n)));const r=qu(t);return vc(Cu(e(r.calendar),r))}(lm,e);return qs(t),n}function cy(e,t){if(t=lc(t),wi(e)){const n=jy(e)||{};switch(n.branding){case vg:return qs(t),n;case wg:return qs(t),pc({...n,...kd});case bg:return qs(t),El(ty,n)}return function(e,t,n){const r=gl(e,t,ad,[],Vf),o=qs(n);return pc(Ms({...e.dateFromFields(r,fc(n,o)),...yl(r,o)}))}(HS(gy(e)),e,t)}const n=function(e){const t=rh(gd(e));if(!t||t.m)throw new RangeError(Of(e));return pc(eh(t))}(e);return qs(t),n}function uy(e,t){if(t=lc(t),wi(e)){const n=jy(e)||{};switch(n.branding){case wg:return qs(t),n;case vg:return qs(t),wc(n);case bg:return qs(t),Ol(ty,n)}return ll(HS(gy(e)),e,t)}const n=qu(e);return qs(t),n}function hy(e,t,n){return Gi(t.call(e,mS(wc(n,e))))}function ly(e){return t=>"string"==typeof t?lm(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Li(t[o],e,e[o]);return r})(t,e)}function fy(e){if(wi(e)){const t=jy(e);return t&&t.branding===Mg?t:function(e){const t=ml(e,wd);return Tc(Uu({...Md,...t}))}(e)}return function(e){const t=(e=>{const t=Wg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=Fi(o,$f[a])),void 0!==e){if(r)throw new RangeError(Cf(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Cf(e));return t})(e),n=1,t&&(o=hh(t)*($f[a]/Ff),r=1)}return i+s}let n=0,r=0,o=0,a={...Ii(pd,[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)]),...Ki(o,2,pd)};if(!n)throw new RangeError(ql(pd));return fh(e[1])<0&&(a=Bu(a)),a})(t):void 0})(gd(e));if(!t)throw new RangeError(Of(e));return Tc(Uu(t))}(e)}function dy(e){if(void 0!==e){if(wi(e)){const t=jy(e)||{};switch(t.branding){case bg:case wg:return t;case vg:return wc(t)}const n=gy(e);return{...hl(oy,ey,HS(n),e),calendar:n}}return function(e){const t=rh(gd(e));if(!t)throw new RangeError(Of(e));if(t.timeZone)return Qu(t,t.offset?Wu(t.offset):void 0);if(t.m)throw new RangeError(Of(e));return th(t)}(e)}}function gy(e){return my(e)||ud}function my(e){const{calendar:t}=e;if(void 0!==t)return yy(t)}function yy(e){return wi(e)?(jy(e)||{}).calendar||$S(e):(e=>Xh(function(e){const t=rh(e)||oh(e)||ah(e);return t?t.calendar:e}(gd(e))))(e)}function Sy(e,t){if(t=lc(t),wi(e)){const n=jy(e);if(n&&n.branding===bg)return Xs(t),n;const r=gy(e);return function(e,t,n,r,o,a){const i=gl(n,o,ad,Jf,Wf),s=e(i.timeZone),[c,u,h]=Xs(a),l=n.dateFromFields(i,fc(a,c)),f=yl(i,c);return Sc(mu(t(s),{...l,...f},void 0!==i.offset?Wu(i.offset):void 0,u,h),s,r)}(oy,ey,HS(r),r,e,t)}return function(e,t){const n=rh(gd(e));if(!n||!n.timeZone)throw new RangeError(Of(e));const{offset:r}=n,o=r?Wu(r):void 0,[,a,i]=Xs(t);return Qu(n,o,a,i)}(e,t)}function py(e){return Ei((e=>t=>e(wy(t))),e)}function wy(e){return Dg(e,ty)}function vy(){const e=Rd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(Rd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);WS.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Rd(e,t),r=n.resolvedOptions(),o=r.locale,a=Ni(Object.keys(t),r),i=vi(Ty),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=jy(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")&&Ay(e);"function"==typeof n.value?n.value="constructor"===e?r:o||by(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Ay(e){return function(){const t=WS.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function by(e){return function(){return WS.get(this).u[e](...arguments)}}function Ty(e){const t=My[e];if(!t)throw new TypeError(Nf(e));return kl(t,vi(Ll))}const My={Instant:Ym,PlainDateTime:jm,PlainDate:Bm,PlainTime:Fm,PlainYearMonth:Um,PlainMonthDay:xm},Iy=kl(Ym),Ey=kl(Pm),Oy=kl(jm),Cy=kl(Bm),Ny=kl(Fm),Hy=kl(Um),Dy=kl(xm),_y={era:function(e){if(void 0!==e)return gd(e)},eraYear:Ji,year:Wi,month:Gi,daysInMonth:Gi,daysInYear:Gi,inLeapYear:md,monthsInYear:Gi},ky={monthCode:gd},Ly={day:Gi},Ry={dayOfWeek:Gi,dayOfYear:Gi,weekOfYear:function(e){if(void 0!==e)return Gi(e)},yearOfWeek:Ji,daysInWeek:Gi},Yy=Object.assign({},_y,ky,Ly,Ry),Py=new WeakMap,jy=Py.get.bind(Py),By=Py.set.bind(Py),Fy={...Km(_y,[Sg]),...Km(Ry,[]),...Km(ky,[Sg,pg]),...Km(Ly,[pg])},Uy=Jm(Yy),xy=Jm({..._y,...ky}),Zy=Jm({...ky,...Ly}),$y={calendarId:e=>Ec(e.calendar)},Vy=Ei(((e,t)=>function(n){const{i:r}=this;return e(r[t](mS(wc(n,r))))}),Yy),zy=Oi((e=>t=>t[e]),pd.concat("sign")),Ky=Oi(((e,t)=>e=>e[Od[t]]),Vf),Jy={epochSeconds:function(e){return Cs(e.epochNanoseconds)},epochMilliseconds:Mc,epochMicroseconds:function(e){return ps(e.epochNanoseconds,jf)},epochNanoseconds:function(e){return ps(e.epochNanoseconds)}},Gy=Li(Hi,new Set(["branding"])),[Wy,qy,Xy]=$m(pg,Li((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ud,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:$d;const a=ss(t),i=ss(n),s=e(r);return Ac(Ts(Ks({isoYear:ss(o),isoMonth:a,isoDay:i})),s)}),yy),{...$y,...Zy},{getISOFields:Gy,getCalendar:Wm,with(e,t,n){return qy(function(e,t,n,r,o){const a=lc(o);return((e,t,n,r)=>{const o=Sl(e,t,n,ad);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(LS,e,this,zm(t),n))},equals:(e,t)=>function(e,t){return!vh(e,t)&&Oc(e.calendar,t.calendar)}(e,qm(t)),toPlainDate(e,t){return mS(function(e,t,n,r){return((e,t,n)=>vl(e,t,sd,Qi(n),Qf))(e(t.calendar),n,r)}(kS,e,this,t))},toLocaleString(e,t,n){const[r,o]=Dy(t,n,e);return r.format(o)},toString:Xc,toJSON:e=>Xc(e),valueOf:Gm},{from:(e,t)=>qy(qm(e,t))}),Qy={getOffsetNanosecondsFor:Xm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,dS(pc(n,ud)))].map((e=>rS(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(gs),pu(ws(ds(r[0],r[o-1])))),r}},eS={getOffsetNanosecondsFor:Xm},[tS,nS,rS]=$m(Tg,(function(e){return yc(Is(ys(as(e))))}),Jy,{add:(e,t)=>nS(wu(0,e,fy(t))),subtract:(e,t)=>nS(wu(1,e,fy(t))),until:(e,t,n)=>FS(Th(0,e,ny(t),n)),since:(e,t,n)=>FS(Th(1,e,ny(t),n)),round:(e,t)=>nS(function(e,t){const[n,r,o]=tc(t,5,1);return yc(Fc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Sh(e,t)}(e,ny(t)),toZonedDateTime(e,t){const n=Qi(t);return zS(Il(e,oy(n.timeZone),yy(n.calendar)))},toZonedDateTimeISO:(e,t)=>zS(Il(e,oy(t))),toLocaleString(e,t,n){const[r,o]=Iy(t,n,e);return r.format(o)},toString:(e,t)=>Kc(oy,ty,e,t),toJSON:e=>Kc(oy,ty,e),valueOf:Gm},{from:e=>nS(ny(e)),fromEpochSeconds:e=>nS(function(e){return yc(Is(Ss(e,Ff)))}(e)),fromEpochMilliseconds:e=>nS(function(e){return yc(Is(Ss(e,Bf)))}(e)),fromEpochMicroseconds:e=>nS(function(e){return yc(Is(ys(as(e),jf)))}(e)),fromEpochNanoseconds:e=>nS(function(e){return yc(Is(ys(as(e))))}(e)),compare:(e,t)=>Sh(ny(e),ny(t))}),[oS,aS]=$m("TimeZone",(e=>{const t=function(e){return gh(gd(e))}(e);return{branding:"TimeZone",id:t,o:kg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{o:n}=e;return n.getPossibleInstantsFor(cy(t)).map((e=>nS(yc(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(ny(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=ny(t).epochNanoseconds;return cu(Qm(this,eS).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ud;const r=ny(t).epochNanoseconds,o=Qm(this,eS).getOffsetNanosecondsFor(r);return dS(pc(Ys(r,o),yy(n)))},getInstantFor(e,t,n){const r=cy(t),o=Qs(n),a=Qm(this);return nS(yc(yu(a,r,o)))},getNextTransition:(e,t)=>{let{o:n}=e;return ry(1,n,t)},getPreviousTransition:(e,t)=>{let{o:n}=e;return ry(-1,n,t)},equals(e,t){return!!bh(this,oy(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=oy(e);return"string"==typeof t?new oS(t):t}}),iS=Vm(Object.keys(Qy)),[sS,cS]=$m(Ag,(function(){return bc(Ws(Ei(ss,Ii(Od,[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))}),Ky,{getISOFields:Gy,with(e,t,n){return cS(function(e,t,n){return bc(((e,t,n)=>{const r=qs(n);return yl({...Ni(zf,e),...ml(t,zf)},r)})(e,t,n))}(this,zm(t),n))},add:(e,t)=>cS(Mu(0,e,fy(t))),subtract:(e,t)=>cS(Mu(1,e,fy(t))),until:(e,t,n)=>FS(Nh(0,e,ay(t),n)),since:(e,t,n)=>FS(Nh(1,e,ay(t),n)),round:(e,t)=>cS(function(e,t){const[n,r,o]=tc(t,5);var a;return bc((a=o,kc(e,Rc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Ah(e,t)}(e,ay(t)),toZonedDateTime:(e,t)=>zS(function(e,t,n,r,o){const a=Qi(o),i=t(a.plainDate),s=e(a.timeZone);return Sc(yu(n(s),{...i,...r}),s,i.calendar)}(oy,uy,ey,e,t)),toPlainDateTime:(e,t)=>dS(function(e,t){return pc(Ms({...e,...t}))}(e,uy(t))),toLocaleString(e,t,n){const[r,o]=Ny(t,n,e);return r.format(o)},toString:Qc,toJSON:e=>Qc(e),valueOf:Gm},{from:(e,t)=>cS(ay(e,t)),compare:(e,t)=>Ah(ay(e),ay(t))}),[uS,hS,lS]=$m(Sg,Li((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ud,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=ss(t),i=ss(n),s=e(r);return vc(bs(Ks({isoYear:a,isoMonth:i,isoDay:ss(o)})),s)}),yy),{...$y,...xy},{getISOFields:Gy,getCalendar:Wm,with(e,t,n){return hS(function(e,t,n,r,o){const a=lc(o);return vc(((e,t,n,r)=>{const o=Sl(e,t,n,rd);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(_S,e,this,zm(t),n))},add:(e,t,n)=>hS(Tu(PS,0,e,fy(t),n)),subtract:(e,t,n)=>hS(Tu(PS,1,e,fy(t),n)),until:(e,t,n)=>FS(Oh(jS,0,e,sy(t),n)),since:(e,t,n)=>FS(Oh(jS,1,e,sy(t),n)),equals:(e,t)=>function(e,t){return!vh(e,t)&&Oc(e.calendar,t.calendar)}(e,sy(t)),toPlainDate(e,t){return mS(function(e,t,n,r){return((e,t,n)=>vl(e,t,od,Qi(n),nd))(e(t.calendar),n,r)}(kS,e,this,t))},toLocaleString(e,t,n){const[r,o]=Hy(t,n,e);return r.format(o)},toString:qc,toJSON:e=>qc(e),valueOf:Gm},{from:(e,t)=>hS(sy(e,t)),compare:(e,t)=>vh(sy(e),sy(t))}),[fS,dS]=$m(vg,Li((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ud;return pc(Ms(zs(Ei(ss,Ii(Nd,[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))}),yy),{...$y,...Uy,...Ky},{getISOFields:Gy,getCalendar:Wm,with(e,t,n){return dS(function(e,t,n,r,o){const a=lc(o);return pc(((e,t,n,r)=>{const o=Sl(e,t,n,ad,Vf),a=qs(r);return Ms({...e.dateFromFields(o,fc(r,a)),...yl(o,a)})})(e(t.calendar),n,r,a))}(kS,e,this,zm(t),n))},withCalendar:(e,t)=>dS(Nl(e,yy(t))),withPlainDate:(e,t)=>dS(function(e,t){return pc({...e,...t},Hl(e.calendar,t.calendar))}(e,uy(t))),withPlainTime:(e,t)=>dS(function(e){return pc({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:kd})}(e,iy(t))),add:(e,t,n)=>dS(Au(RS,0,e,fy(t),n)),subtract:(e,t,n)=>dS(Au(RS,1,e,fy(t),n)),until:(e,t,n)=>FS(Ih(YS,0,e,cy(t),n)),since:(e,t,n)=>FS(Ih(YS,1,e,cy(t),n)),round:(e,t)=>dS(function(e,t){return pc(Dc(e,...tc(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!wh(e,t)&&Oc(e.calendar,t.calendar)}(e,cy(t)),toZonedDateTime:(e,t,n)=>zS(function(e,t,n,r){const o=((e,t,n,r)=>{const o=Qs(r);return yu(e(t),n,o)})(e,n,t,r);return Sc(Is(o),n,t.calendar)}(ey,e,oy(t),n)),toPlainDate:e=>mS(wc(e)),toPlainTime:e=>cS(bc(e)),toPlainYearMonth(e){return hS(function(e,t,n){const r=e(t.calendar);return vc({...t,...wl(r,n)})}(NS,e,this))},toPlainMonthDay(e){return qy(function(e,t,n){return pl(e(t.calendar),n)}(DS,e,this))},toLocaleString(e,t,n){const[r,o]=Oy(t,n,e);return r.format(o)},toString:Gc,toJSON:e=>Gc(e),valueOf:Gm},{from:(e,t)=>dS(cy(e,t)),compare:(e,t)=>wh(cy(e),cy(t))}),[gS,mS,yS]=$m(wg,Li((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ud;return wc(Ts(Ks(Ei(ss,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),yy),{...$y,...Uy},{getISOFields:Gy,getCalendar:Wm,with(e,t,n){return mS(function(e,t,n,r,o){const a=lc(o);return((e,t,n,r)=>{const o=Sl(e,t,n,ad);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(kS,e,this,zm(t),n))},withCalendar:(e,t)=>mS(Nl(e,yy(t))),add:(e,t,n)=>mS(bu(RS,0,e,fy(t),n)),subtract:(e,t,n)=>mS(bu(RS,1,e,fy(t),n)),until:(e,t,n)=>FS(Eh(YS,0,e,uy(t),n)),since:(e,t,n)=>FS(Eh(YS,1,e,uy(t),n)),equals:(e,t)=>function(e,t){return!vh(e,t)&&Oc(e.calendar,t.calendar)}(e,uy(t)),toZonedDateTime(e,t){const n=!wi(t)||t instanceof oS?{timeZone:t}:t;return zS(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):kd;return Sc(yu(n(a),{...r,...s}),a,r.calendar)}(oy,ay,ey,e,n))},toPlainDateTime:(e,t)=>dS(function(e){return pc(Ms({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:kd}))}(e,iy(t))),toPlainYearMonth(e){return hS(function(e,t,n){return wl(e(t.calendar),n)}(NS,e,this))},toPlainMonthDay(e){return qy(function(e,t,n){return pl(e(t.calendar),n)}(DS,e,this))},toLocaleString(e,t,n){const[r,o]=Cy(t,n,e);return r.format(o)},toString:Wc,toJSON:e=>Wc(e),valueOf:Gm},{from:(e,t)=>mS(uy(e,t)),compare:(e,t)=>vh(uy(e),uy(t))}),SS={fields:(e,t,n)=>[...t.call(e,n)]},pS=Object.assign({dateFromFields:(e,t,n,r)=>yS(t.call(e,Object.assign(Object.create(null),n),r))},SS),wS=Object.assign({yearMonthFromFields:(e,t,n,r)=>lS(t.call(e,Object.assign(Object.create(null),n),r))},SS),vS=Object.assign({monthDayFromFields:(e,t,n,r)=>Xy(t.call(e,Object.assign(Object.create(null),n),r))},SS),AS={mergeFields:(e,t,n,r)=>Qi(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},bS=Object.assign({},pS,AS),TS=Object.assign({},wS,AS),MS=Object.assign({},vS,AS),IS={dateAdd:(e,t,n,r,o)=>yS(t.call(e,mS(wc(n,e)),FS(Tc(r)),o))},ES=Object.assign({},IS,{dateUntil:(e,t,n,r,o,a)=>US(t.call(e,mS(wc(n,e)),mS(wc(r,e)),Object.assign(Object.create(null),a,{largestUnit:Rf[o]})))}),OS=Object.assign({},IS,{day:hy}),CS=Object.assign({},ES,{day:hy}),NS=ly(wS),HS=ly(pS),DS=ly(vS),_S=ly(TS),kS=ly(bS),LS=ly(MS),RS=ly(IS),YS=ly(ES),PS=ly(OS),jS=ly(CS),[BS,FS,US]=$m(Mg,(function(){return Tc(Uu(Ei(cs,Ii(pd,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,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]))))}),{...zy,blank:function(e){return!e.sign}},{with:(e,t)=>FS(function(e,t){return Tc((n=e,r=t,Uu({...n,...ml(r,wd)})));var n,r}(e,t)),negated:e=>FS(ju(e)),abs:e=>FS(function(e){return-1===e.sign?ju(e):e}(e)),add:(e,t,n)=>FS(Pu(dy,YS,ey,0,e,fy(t),n)),subtract:(e,t,n)=>FS(Pu(dy,YS,ey,1,e,fy(t),n)),round:(e,t)=>FS(function(e,t,n,r,o){const a=Ku(r),[i,s,c,u,h]=((e,t,n)=>{e=hc(e,Jd);let r=cg(e);const o=n(e[Xd]);let a=ic(e);const i=yg(e,7);let s=sg(e);if(void 0===r&&void 0===s)throw new RangeError(If);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),mc(r,s),a=sc(a,s,1),[r,s,a,i,o]})(o,a,e),l=Math.max(a,i);if(!Ru(h)&&l<=6)return Tc(Uu(((e,t,n,r,o)=>{const a=Fc(Zu(e),n,r,o);return{...Md,...$u(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(Tf);const[f,d,g]=Du(t,n,h),m=_u(g),y=ku(g),S=Lu(g),p=y(d,f,r);let w=S(d,f,p,i);const v=r.sign,A=Fu(w);if(v&&A&&v!==A)throw new RangeError(lf);return A&&(w=Bc(w,m(p),i,s,c,u,d,f,m,y)),Tc(w)}(dy,YS,ey,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Ku(r),[i,s]=((e,t)=>{const n=t((e=hc(e,Gd))[Xd]);let r=ug(e);return r=Xi(Gd,r),[r,n]})(o,e);if(Yu(Math.max(i,a),s))return Cc(r,i);if(!s)throw new RangeError(Tf);const[c,u,h]=Du(t,n,s),l=_u(h),f=ku(h),d=Lu(h),g=f(u,c,r),m=d(u,c,g,i);return Yu(i,s)?Cc(m,i):((e,t,n,r,o,a,i)=>{const s=Fu(e),[c,u]=Nc(r,Ed(n,e),n,s,o,a,i),h=Hc(t,c,u);return e[pd[n]]+h*s})(m,l(g),i,u,c,l,f)}(dy,YS,ey,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):eu(e)},toString:eu,toJSON:e=>eu(e),valueOf:Gm},{from:e=>FS(fy(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(uc(a).relativeTo),s=Math.max(Ku(r),Ku(o));if(_i(pd,r,o))return 0;if(Yu(s,i))return gs(Zu(r),Zu(o));if(!i)throw new RangeError(Tf);const[c,u,h]=Du(t,n,i),l=_u(h),f=ku(h);return gs(l(f(u,c,r)),l(f(u,c,o)))}(dy,RS,ey,fy(e),fy(t),n)}),xS={toString:e=>e.id,toJSON:e=>e.id,...Fy,dateAdd:(e,t,n,r)=>{let{id:o,o:a}=e;return mS(wc(a.dateAdd(uy(t),fy(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return FS(Tc(o.dateUntil(uy(t),uy(n),function(e){return e=uc(e),cg(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return mS(ll(o,t,n,function(e){return e===ud?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return hS(fl(o,t,n,function(e){return e===ud?Qf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return qy(dl(o,0,t,n,function(e){return e===ud?nd:[]}(r)))},fields(e,t){let{o:n}=e;const r=new Set(ad),o=[];for(const e of t){if(gd(e),!r.has(e))throw new RangeError(Gl(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(Di(qi(t)),Di(qi(n)))}},[ZS]=$m("Calendar",(e=>{const t=function(e){return Xh(gd(e))}(e);return{branding:"Calendar",id:t,o:lm(t)}}),{id:e=>e.id},xS,{from(e){const t=yy(e);return"string"==typeof t?new ZS(t):t}}),$S=Vm(Object.keys(xS).slice(4)),[VS,zS]=$m(bg,Li((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ud;return Sc(Is(ys(as(n))),t(r),e(o))}),yy,oy),{...Jy,...$y,...py(Uy),...py(Ky),offset:e=>cu(wy(e).offsetNanoseconds),offsetNanoseconds:e=>wy(e).offsetNanoseconds,timeZoneId:e=>Ec(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Dg(t,n),[o,a]=Yc(r),i=ws(ds(yu(n,o),yu(n,a)),xf,1);if(i<=0)throw new RangeError(lf);return i}(ey,e)},{getISOFields:e=>function(e,t){const n=Dg(t,e);return{calendar:t.calendar,...Ni(_d,n),offset:cu(n.offsetNanoseconds),timeZone:t.timeZone}}(ty,e),getCalendar:Wm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new oS(t):t},with(e,t,n){return zS(function(e,t,n,r,o,a){const i=lc(a),{calendar:s,timeZone:c}=n;return Sc(((e,t,n,r,o)=>{const a=Sl(e,n,r,ad,Gf,Kf),[i,s,c]=Xs(o,2);return mu(t,{...e.dateFromFields(a,fc(o,i)),...yl(a,i)},Wu(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(kS,ey,e,this,zm(t),n))},withCalendar:(e,t)=>zS(Nl(e,yy(t))),withTimeZone:(e,t)=>zS(function(e,t){return{...e,timeZone:t}}(e,oy(t))),withPlainDate:(e,t)=>zS(function(e,t,n){const r=t.timeZone,o=e(r),a={...Dg(t,o),...n},i=Hl(t.calendar,n.calendar);return Sc(mu(o,a,a.offsetNanoseconds,2),r,i)}(ey,e,uy(t))),withPlainTime:(e,t)=>zS(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kd;const r=t.timeZone,o=e(r),a={...Dg(t,o),...n};return Sc(mu(o,a,a.offsetNanoseconds,2),r,t.calendar)}(ey,e,iy(t))),add:(e,t,n)=>zS(vu(RS,ey,0,e,fy(t),n)),subtract:(e,t,n)=>zS(vu(RS,ey,1,e,fy(t),n)),until:(e,t,n)=>FS(Tc(Mh(YS,ey,0,e,Sy(t),n))),since:(e,t,n)=>FS(Tc(Mh(YS,ey,1,e,Sy(t),n))),round:(e,t)=>zS(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=tc(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=Dg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=yu(t,a),u=yu(t,i);if(ms(s,c,u))throw new RangeError(lf);return Zc(Hc(s,c,u),r)?u:c})(Yc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=mu(u,Dc(Ys(r,e),i,s,c),e,2,0,1)}return Sc(r,o,a)}(ey,e,t)),startOfDay:e=>zS(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>yu(t,e(Dg(n,t))))(Pc,e(n),t);return Sc(o,n,r)}(ey,e)),equals:(e,t)=>function(e,t){return!ph(e,t)&&!!bh(e.timeZone,t.timeZone)&&Oc(e.calendar,t.calendar)}(e,Sy(t)),toInstant:e=>nS(function(e){return yc(e.epochNanoseconds)}(e)),toPlainDateTime:e=>dS(El(ty,e)),toPlainDate:e=>mS(Ol(ty,e)),toPlainTime:e=>cS(Cl(ty,e)),toPlainYearMonth(e){return hS(function(e,t,n){return wl(e(t.calendar),n)}(NS,e,this))},toPlainMonthDay(e){return qy(function(e,t,n){return pl(e(t.calendar),n)}(DS,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Ey(t,n,e);return r.format(o)},toString:(e,t)=>Jc(ty,e,t),toJSON:e=>Jc(ty,e),valueOf:Gm},{from:(e,t)=>zS(Sy(e,t)),compare:(e,t)=>ph(Sy(e),Sy(t))}),KS=Object.defineProperties({},{...Mi("Temporal.Now"),...bi({timeZoneId:()=>jl(),instant:()=>nS(yc(Pl())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jl();return zS(Sc(Pl(),oy(t),yy(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jl();return zS(Sc(Pl(),oy(e),ud))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jl();return dS(pc(Yl(ty(oy(t))),yy(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jl();return dS(pc(Yl(ty(oy(e))),ud))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jl();return mS(wc(Yl(ty(oy(t))),yy(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jl();return mS(wc(Yl(ty(oy(e))),ud))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jl();return cS(bc(Yl(ty(oy(e)))))}})}),JS=Object.defineProperties({},{...Mi("Temporal"),...bi({PlainYearMonth:uS,PlainMonthDay:Wy,PlainDate:gS,PlainTime:sS,PlainDateTime:fS,ZonedDateTime:VS,Instant:tS,Calendar:ZS,TimeZone:oS,Duration:BS,Now:KS})}),GS=vy(),WS=new WeakMap;function qS(e){return e*Math.PI/180}function XS(e){return 180*e/Math.PI}Object.create(Intl),bi({DateTimeFormat:GS});class QS{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 ep=6356.9;class tp{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(tp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(tp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(tp.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(tp.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(tp.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(tp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(tp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(tp.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(tp.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(tp.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 XS(Math.acos(ep/(ep+e/1e3)))}adjustZenith(e,t){let n=e;return e===tp.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=tp.getSunriseUTC(tp.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=tp.getSunsetUTC(tp.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 tp.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 JS.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-tp.JULIAN_DAY_JAN_1_2000)/tp.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*tp.JULIAN_DAYS_PER_CENTURY+tp.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=qS(tp.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 tp.getSunGeometricMeanLongitude(e)+tp.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return tp.getSunTrueLongitude(e)-.00569-.00478*Math.sin(qS(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 tp.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(qS(t))}static getSunDeclination(e){const t=tp.getObliquityCorrection(e),n=tp.getSunApparentLongitude(e),r=Math.sin(qS(t))*Math.sin(qS(n));return XS(Math.asin(r))}static getEquationOfTime(e){const t=tp.getObliquityCorrection(e),n=tp.getSunGeometricMeanLongitude(e),r=tp.getEarthOrbitEccentricity(e),o=tp.getSunGeometricMeanAnomaly(e);let a=Math.tan(qS(t)/2);a*=a;const i=Math.sin(2*qS(n)),s=Math.sin(qS(o));return 4*XS(a*i-2*r*s+4*r*a*s*Math.cos(2*qS(n))-.5*a*a*Math.sin(4*qS(n))-1.25*r*r*Math.sin(2*qS(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=qS(e),o=qS(t);return Math.acos(Math.cos(qS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=qS(e),o=qS(t);return-Math.acos(Math.cos(qS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=tp.getJulianDay(e.toPlainDate()),o=tp.getJulianCenturiesFromJulianDay(r),a=tp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=qS(n-i),c=qS(tp.getSunDeclination(o)),u=qS(t);return XS(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=tp.getJulianDay(e.toPlainDate()),o=tp.getJulianCenturiesFromJulianDay(r),a=tp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=qS(n-i),c=qS(tp.getSunDeclination(o)),u=qS(t);return XS(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=tp.getJulianCenturiesFromJulianDay(e),a=tp.getSolarNoonUTC(o,n),i=tp.getJulianCenturiesFromJulianDay(e+a/1440);let s=tp.getEquationOfTime(i),c=tp.getSunDeclination(i),u=tp.getSunHourAngleAtSunrise(t,c,r),h=n-XS(u),l=4*h,f=720+l-s;const d=tp.getJulianCenturiesFromJulianDay(tp.getJulianDayFromJulianCenturies(o)+f/1440);return s=tp.getEquationOfTime(d),c=tp.getSunDeclination(d),u=tp.getSunHourAngleAtSunrise(t,c,r),h=n-XS(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=tp.getJulianCenturiesFromJulianDay(tp.getJulianDayFromJulianCenturies(e)+t/360);let r=tp.getEquationOfTime(n);const o=720+4*t-r,a=tp.getJulianCenturiesFromJulianDay(tp.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=tp.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=tp.getJulianCenturiesFromJulianDay(e),a=tp.getSolarNoonUTC(o,n),i=tp.getJulianCenturiesFromJulianDay(e+a/1440);let s=tp.getEquationOfTime(i),c=tp.getSunDeclination(i),u=tp.getSunHourAngleAtSunset(t,c,r),h=n-XS(u),l=4*h,f=720+l-s;const d=tp.getJulianCenturiesFromJulianDay(tp.getJulianDayFromJulianCenturies(o)+f/1440);return s=tp.getEquationOfTime(d),c=tp.getSunDeclination(d),u=tp.getSunHourAngleAtSunset(t,c,r),h=n-XS(u),l=4*h,f=720+l-s,f}}tp.GEOMETRIC_ZENITH=90,tp.CIVIL_ZENITH=96,tp.NAUTICAL_ZENITH=102,tp.ASTRONOMICAL_ZENITH=108,tp.JULIAN_DAY_JAN_1_2000=2451545,tp.JULIAN_DAYS_PER_CENTURY=36525;const np=[["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]],rp=new Map,op={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},ap=new Map;class ip extends QS{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||null,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=ap.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return ap.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return rp.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 op[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":op[t]}static addLocation(e,t){const n=e.toLowerCase();return!rp.has(n)&&(rp.set(n,t),!0)}}for(const e of np){const t=new ip(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);ip.addLocation(e[0],t)}function sp(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,bi({Temporal:JS})),Object.defineProperties(Intl,bi({DateTimeFormat:GS})),Object.defineProperties(Date.prototype,bi({toTemporalInstant:function(){return nS(yc(Ss(this.valueOf(),Bf)))}}));class cp{constructor(e,t,n){const r=function(e){if(s(e))return e;if(Ye.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new tp(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return sp(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return sp(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return sp(this.noaa.getSeaLevelSunrise())}sunset(){return sp(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return sp(this.noaa.getSeaLevelSunset())}dawn(){return sp(this.noaa.getBeginCivilTwilight())}dusk(){return sp(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new cp(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 sp(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 sp(tp.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=8.5){return this.timeAtAngle(e,!1)}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=ye("UTC",t),r=ye(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?"+":"-")+de(Math.floor(r/60))+":"+de(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":ye(e,t).substring(0,19)+cp.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 up={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 hp(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.getCountryCode())||((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===up[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 lp extends Ke{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=cp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=cp.formatTime(this.eventTime,s);const c=Object.assign(Object.assign({},i),{location:o});this.fmtTime=hp(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return Ce.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return Ce.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 fp extends lp{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}class dp extends lp{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=Ce.gettext(this.getDesc(),e);if(this.havdalahMins){const n=Ce.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const gp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],mp=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],yp="בַּלַּ֥יְלָה";class Sp{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=_(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 Ye.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){var n;"string"==typeof(e=null!=e?e:Ce.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=Ce.gettext(this.getMonthName(),e),a=(r?mp:gp)[this.getDow()],i=this.getMinutes(),s=this.getHour(),c=this.getChalakim(),u=Ce.gettext("Molad",e),h=null!==(n=Ce.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=Ce.gettext("chalakim",e);if(r){const t=function(e){return e<5?yp:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":yp}(s),n=`${u} ${o} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${i} ${h} ו-${c} ${l}`;return"he-x-nonikud"===e?Ce.hebrewStripNikkud(n):n}const f=hp(`${s}:00`,"pm",t);return`${u} ${o.replace(/'/g,"’")}: ${a}, ${i} ${h} and ${c} ${l} after ${f}`}}class pp extends Ke{constructor(e,t,n,r){const o=new Sp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Ve.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class wp extends Ke{constructor(e,t){if(super(e,`Omer ${t}`,Ve.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){ee(e);const[n,r]=te(e),o=Q[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:Ce.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?q(n):Ce.ordinal(n,e))+" "+Ce.gettext("day of the Omer",e)}renderBrief(e){return Ce.gettext("Omer",e)+" "+Ce.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:function(e){let t;return ee(e),t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}(this.omer)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){"string"==typeof(e=null!=e?e:Ce.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=ne(this.omer,t);return"he-x-nonikud"===e?Ce.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class vp extends Map{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.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=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.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class Ap{constructor(e,t){e=+e,this.year=e;const n=new Ye(1,A.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=Ye.dayOnOrBefore(6,r+6);const a=+Ye.isLeapYear(e);this.il=Boolean(t);const i=function(e){const t=Ye.longCheshvan(e),n=Ye.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${a}${o}${i}`;if(xp[s]||(s+=+this.il),this.theSedraArray=xp[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||Ce.getLocaleName();let o=Ce.gettext(n[0],r);if(2===n.length){o+=("he"===r?"־":"-")+Ce.gettext(n[1],r)}return o=o.replace(/'/g,"’"),Ce.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=bp.length||e<0&&!Mp(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ye(this.firstSaturday+7*t)}if("string"==typeof e){const t=Tp.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 Ye(this.firstSaturday+7*t)}}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=Tp.get(n),a=Tp.get(r);if("number"!=typeof o||"number"!=typeof a||a!==o+1||!Mp(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Ye.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Ye.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return $p(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[bp[o]],chag:!1,num:o+1};const a=Ip(o);return{parsha:[bp[a],bp[a+1]],chag:!1,num:[a+1,a+2]}}}const bp=["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"],Tp=new Map;for(let e=0;e<bp.length;e++){const t=bp[e];Tp.set(t,e)}function Mp(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}function Ip(e){return-e}const Ep="Sukkot Shabbat Chol ha-Moed",Op="Pesach",Cp="Pesach I",Np="Pesach Shabbat Chol ha-Moed",Hp="Pesach VII",Dp="Pesach VIII",_p="Shavuot";function kp(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Lp=[51,52,Ep],Rp=[52,"Yom Kippur",Ep],Yp=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Pp=kp(0,20),jp=kp(0,27),Bp=kp(33,40),Fp=kp(43,49),Up=kp(43,50),xp={"020":Lp.concat(Pp,Ip(21),23,24,Op,25,Ip(26),Ip(28),30,Ip(31),Bp,Ip(41),Fp,Ip(50)),"0220":Lp.concat(Pp,Ip(21),23,24,Op,25,Ip(26),Ip(28),30,Ip(31),33,_p,kp(34,37),Ip(38),40,Ip(41),Fp,Ip(50)),"0510":Rp.concat(Pp,Ip(21),23,24,Cp,Dp,25,Ip(26),Ip(28),30,Ip(31),Bp,Ip(41),Up),"0511":Rp.concat(Pp,Ip(21),23,24,Op,25,Ip(26),Ip(28),kp(30,40),Ip(41),Up),"052":Rp.concat(kp(0,24),Hp,25,Ip(26),Ip(28),30,Ip(31),Bp,Ip(41),Up),"070":Yp.concat(Pp,Ip(21),23,24,Hp,25,Ip(26),Ip(28),30,Ip(31),Bp,Ip(41),Up),"072":Yp.concat(Pp,Ip(21),23,24,Np,25,Ip(26),Ip(28),30,Ip(31),Bp,Ip(41),Fp,Ip(50)),1200:Lp.concat(jp,Np,kp(28,33),_p,kp(34,37),Ip(38),40,Ip(41),Fp,Ip(50)),1201:Lp.concat(jp,Np,kp(28,40),Ip(41),Fp,Ip(50)),1220:Lp.concat(jp,Cp,Dp,kp(28,40),Ip(41),Up),1221:Lp.concat(jp,Op,kp(28,50)),150:Rp.concat(kp(0,28),Hp,kp(29,50)),152:Rp.concat(kp(0,28),Np,kp(29,49),Ip(50)),170:Yp.concat(jp,Np,kp(28,40),Ip(41),Fp,Ip(50)),1720:Yp.concat(jp,Np,kp(28,33),_p,kp(34,37),Ip(38),40,Ip(41),Fp,Ip(50))};xp["0221"]=xp["020"],xp["0310"]=xp["0220"],xp["0311"]=xp["020"],xp[1310]=xp[1220],xp[1311]=xp[1221],xp[1721]=xp[170];const Zp=new vp({maxSize:400});function $p(e,t){const n=`${e}-${t?1:0}`;let r=Zp.get(n);return r||(r=new Ap(e,t),Zp.set(n,r)),r}class Vp extends Ke{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("-"),Ve.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=null!=e?e:Ce.getLocaleName(),n=this.parsha;let r=Ce.gettext(n[0],e);if(2===n.length){r+=("he"===t?"־":"-")+Ce.gettext(n[1],e)}r=r.replace(/'/g,"’");return(Ce.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 Se(this.getDate().greg()).replace(/-/g,"")}}const zp=A.NISAN,Kp=A.IYYAR,Jp=A.SIVAN,Gp=A.TAMUZ,Wp=A.AV,qp=A.ELUL,Xp=A.TISHREI,Qp=A.CHESHVAN,ew=A.KISLEV,tw=A.SHVAT,nw=A.ADAR_II,rw=Ve.CHAG,ow=Ve.LIGHT_CANDLES,aw=Ve.YOM_TOV_ENDS,iw=Ve.CHUL_ONLY,sw=Ve.IL_ONLY,cw=Ve.LIGHT_CANDLES_TZEIS,uw=Ve.CHANUKAH_CANDLES,hw=Ve.MAJOR_FAST,lw=Ve.MINOR_HOLIDAY,fw=Ve.EREV,dw=Ve.CHOL_HAMOED,gw="🫓",mw="🌿🍋",yw="Rosh Hashana II",Sw="Erev Yom Kippur",pw="Yom Kippur",ww="Erev Sukkot",vw="Sukkot I",Aw="Sukkot II",bw="Sukkot III (CH''M)",Tw="Sukkot IV (CH''M)",Mw="Sukkot V (CH''M)",Iw="Sukkot VI (CH''M)",Ew="Shmini Atzeret",Ow="Simchat Torah",Cw="Sukkot II (CH''M)",Nw="Sukkot VII (Hoshana Raba)",Hw="Chanukah: 1 Candle",Dw="Tu BiShvat",_w="Erev Purim",kw="Purim",Lw="Shushan Purim",Rw="Erev Pesach",Yw="Pesach I",Pw="Pesach II",jw="Pesach II (CH''M)",Bw="Pesach III (CH''M)",Fw="Pesach IV (CH''M)",Uw="Pesach V (CH''M)",xw="Pesach VI (CH''M)",Zw="Pesach VII",$w="Pesach VIII",Vw="Pesach Sheni",zw="Lag BaOmer",Kw="Erev Shavuot",Jw="Shavuot",Gw="Shavuot I",Ww="Shavuot II",qw="Tu B'Av",Xw="Rosh Hashana LaBehemot",Qw="Erev Rosh Hashana",ev="Yom Yerushalayim",tv="Ben-Gurion Day",nv="Family Day",rv="Yitzhak Rabin Memorial Day",ov="Herzl Day",av="Jabotinsky Day",iv="Sigd",sv="Yom HaAliyah",cv="Yom HaAliyah School Observance",uv="Hebrew Language Day",hv={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:tv,CHANUKAH_1_CANDLE:Hw,EREV_PESACH:Rw,EREV_PURIM:_w,EREV_ROSH_HASHANA:Qw,EREV_SHAVUOT:Kw,EREV_SUKKOT:ww,EREV_YOM_KIPPUR:Sw,FAMILY_DAY:nv,HEBREW_LANGUAGE_DAY:uv,HERZL_DAY:ov,JABOTINSKY_DAY:av,LAG_BAOMER:zw,PESACH_I:Yw,PESACH_II:Pw,PESACH_III_CHM:Bw,PESACH_II_CHM:jw,PESACH_IV_CHM:Fw,PESACH_SHENI:Vw,PESACH_VII:Zw,PESACH_VIII:$w,PESACH_VI_CHM:xw,PESACH_V_CHM:Uw,PURIM:kw,ROSH_HASHANA_II:yw,ROSH_HASHANA_LABEHEMOT:Xw,SHAVUOT:Jw,SHAVUOT_I:Gw,SHAVUOT_II:Ww,SHMINI_ATZERET:Ew,SHUSHAN_PURIM:Lw,SIGD:iv,SIMCHAT_TORAH:Ow,SUKKOT_I:vw,SUKKOT_II:Aw,SUKKOT_III_CHM:bw,SUKKOT_II_CHM:Cw,SUKKOT_IV_CHM:Tw,SUKKOT_VII_HOSHANA_RABA:Nw,SUKKOT_VI_CHM:Iw,SUKKOT_V_CHM:Mw,TU_BAV:qw,TU_BISHVAT:Dw,YITZHAK_RABIN_MEMORIAL_DAY:rv,YOM_HAALIYAH:sv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:cv,YOM_KIPPUR:pw,YOM_YERUSHALAYIM:ev},lv=[{mm:Xp,dd:2,desc:yw,flags:rw|aw,emoji:"🍏🍯"},{mm:Xp,dd:9,desc:Sw,flags:fw|ow},{mm:Xp,dd:10,desc:pw,flags:rw|hw|aw},{mm:Xp,dd:14,desc:ww,flags:iw|fw|ow,emoji:mw},{mm:Xp,dd:15,desc:vw,flags:iw|rw|cw,emoji:mw},{mm:Xp,dd:16,desc:Aw,flags:iw|rw|aw,emoji:mw},{mm:Xp,dd:17,desc:bw,flags:iw|dw,chmDay:1,emoji:mw},{mm:Xp,dd:18,desc:Tw,flags:iw|dw,chmDay:2,emoji:mw},{mm:Xp,dd:19,desc:Mw,flags:iw|dw,chmDay:3,emoji:mw},{mm:Xp,dd:20,desc:Iw,flags:iw|dw,chmDay:4,emoji:mw},{mm:Xp,dd:22,desc:Ew,flags:iw|rw|cw},{mm:Xp,dd:23,desc:Ow,flags:iw|rw|aw},{mm:Xp,dd:14,desc:ww,flags:sw|fw|ow,emoji:mw},{mm:Xp,dd:15,desc:vw,flags:sw|rw|aw,emoji:mw},{mm:Xp,dd:16,desc:Cw,flags:sw|dw,chmDay:1,emoji:mw},{mm:Xp,dd:17,desc:bw,flags:sw|dw,chmDay:2,emoji:mw},{mm:Xp,dd:18,desc:Tw,flags:sw|dw,chmDay:3,emoji:mw},{mm:Xp,dd:19,desc:Mw,flags:sw|dw,chmDay:4,emoji:mw},{mm:Xp,dd:20,desc:Iw,flags:sw|dw,chmDay:5,emoji:mw},{mm:Xp,dd:22,desc:Ew,flags:sw|rw|aw},{mm:Xp,dd:21,desc:Nw,flags:ow|dw,chmDay:-1,emoji:mw},{mm:ew,dd:24,desc:Hw,flags:fw|lw|uw,emoji:"🕎1️⃣"},{mm:tw,dd:15,desc:Dw,flags:lw,emoji:"🌳"},{mm:nw,dd:13,desc:_w,flags:fw|lw,emoji:"🎭️📜"},{mm:nw,dd:14,desc:kw,flags:lw,emoji:"🎭️📜"},{mm:nw,dd:15,desc:Lw,flags:lw,emoji:"🎭️📜"},{mm:zp,dd:14,desc:Rw,flags:sw|fw|ow,emoji:"🫓🍷"},{mm:zp,dd:15,desc:Yw,flags:sw|rw|aw,emoji:gw},{mm:zp,dd:16,desc:jw,flags:sw|dw,chmDay:1,emoji:gw},{mm:zp,dd:17,desc:Bw,flags:sw|dw,chmDay:2,emoji:gw},{mm:zp,dd:18,desc:Fw,flags:sw|dw,chmDay:3,emoji:gw},{mm:zp,dd:19,desc:Uw,flags:sw|dw,chmDay:4,emoji:gw},{mm:zp,dd:20,desc:xw,flags:sw|dw|ow,chmDay:5,emoji:gw},{mm:zp,dd:21,desc:Zw,flags:sw|rw|aw,emoji:gw},{mm:zp,dd:14,desc:Rw,flags:iw|fw|ow,emoji:"🫓🍷"},{mm:zp,dd:15,desc:Yw,flags:iw|rw|cw,emoji:"🫓🍷"},{mm:zp,dd:16,desc:Pw,flags:iw|rw|aw,emoji:gw},{mm:zp,dd:17,desc:Bw,flags:iw|dw,chmDay:1,emoji:gw},{mm:zp,dd:18,desc:Fw,flags:iw|dw,chmDay:2,emoji:gw},{mm:zp,dd:19,desc:Uw,flags:iw|dw,chmDay:3,emoji:gw},{mm:zp,dd:20,desc:xw,flags:iw|dw|ow,chmDay:4,emoji:gw},{mm:zp,dd:21,desc:Zw,flags:iw|rw|cw,emoji:gw},{mm:zp,dd:22,desc:$w,flags:iw|rw|aw,emoji:gw},{mm:Kp,dd:14,desc:Vw,flags:lw},{mm:Kp,dd:18,desc:zw,flags:lw,emoji:"🔥"},{mm:Jp,dd:5,desc:Kw,flags:fw|ow,emoji:"⛰️🌸"},{mm:Jp,dd:6,desc:Jw,flags:sw|rw|aw,emoji:"⛰️🌸"},{mm:Jp,dd:6,desc:Gw,flags:iw|rw|cw,emoji:"⛰️🌸"},{mm:Jp,dd:7,desc:Ww,flags:iw|rw|aw,emoji:"⛰️🌸"},{mm:Wp,dd:15,desc:qw,flags:lw,emoji:"❤️"},{mm:qp,dd:1,desc:Xw,flags:lw,emoji:"🐑"},{mm:qp,dd:29,desc:Qw,flags:fw|ow,emoji:"🍏🍯"}],fv=[{firstYear:5727,mm:Kp,dd:28,desc:ev,chul:!0},{firstYear:5737,mm:ew,dd:6,desc:tv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:tw,dd:30,desc:nv},{firstYear:5758,mm:Qp,dd:12,desc:rv,friSatMovetoThu:!0},{firstYear:5764,mm:Kp,dd:10,desc:ov,satPostponeToSun:!0},{firstYear:5765,mm:Gp,dd:29,desc:av,satPostponeToSun:!0},{firstYear:5769,mm:Qp,dd:29,desc:iv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:zp,dd:10,desc:sv,chul:!0},{firstYear:5777,mm:Qp,dd:7,desc:cv},{firstYear:5773,mm:A.TEVET,dd:21,desc:uv,friSatMovetoThu:!0}];class dv extends Ke{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()&Ve.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Ve.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case hv.LAG_BAOMER:case hv.LEIL_SELICHOT:case hv.PESACH_SHENI:case hv.EREV_PURIM:case hv.PURIM_KATAN:case hv.SHUSHAN_PURIM:case hv.TU_BAV:case hv.TU_BISHVAT:case hv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new dv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class gv extends dv{urlDateSuffix(){return Se(this.getDate().greg()).replace(/-/g,"")}}class mv extends dv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return Ce.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const yv="Rosh Chodesh";class Sv extends dv{constructor(e,t){super(e,`${yv} ${t}`,Ve.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=Ce.gettext(t,e).replace(/'/g,"’");return Ce.gettext(yv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const pv="Shabbat Mevarchim Chodesh";class wv extends Ke{constructor(e,t,n){if(super(e,`${pv} ${t}`,Ve.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===Ye.monthsInYear(t)?A.NISAN:n+1,o=new Sp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=Ce.gettext(this.monthName,e).replace(/'/g,"’");return Ce.gettext(pv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const vv=new Map;class Av{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);vv.set(e,t)}static lookup(e,t,n){const r=vv.get(e);return"function"==typeof r?r(t,n):null}}const bv="5.4.11";function Tv(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ve.LIGHT_CANDLES;void 0!==e?r||(s&(Ve.LIGHT_CANDLES_TZEIS|Ve.CHANUKAH_CANDLES)?i=!0:s&Ve.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Ve.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=Boolean(n.useElevation),l=new cp(u,t,h),f=c?l.sunsetOffset(c,!0):l.tzeit(n.havdalahDeg);if(!isNaN(f.getTime()))return a?new dp(t,s,f,u,n.havdalahMins,e,n):new fp(t,s,f,u,e,n)}const Mv="Fast begins",Iv="Fast ends";function Ev(e,t,n,r){const o=r.location,a=e.getDate();return new lp(a,n,e.getFlags(),t,o,e,r)}class Ov extends dv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=cp.roundTime(r);const a=o.getTimeFormatter();this.eventTimeStr=cp.formatTime(this.eventTime,a),this.location=o}}const Cv=0,Nv=2,Hv=5,Dv=6,_v=A.NISAN,kv=A.IYYAR;function Lv(e){if(e<5708)return null;let t;const n=new Ye(15,_v,e).getDay();return t=n===Cv?2:n===Dv?3:e<5764?4:n===Nv?5:4,new Ye(t,kv,e)}const Rv="Yom Kippur Katan";class Yv extends dv{constructor(e,t){super(e,`${Rv} ${t}`,Ve.MINOR_FAST|Ve.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=Ce.gettext(this.nextMonthName,e).replace(/'/g,"’");return Ce.gettext(Rv,e)+" "+t}renderBrief(e){return Ce.gettext(Rv,e)}url(){}}const Pv=Ve.CHAG,jv=Ve.IL_ONLY,Bv=Ve.LIGHT_CANDLES_TZEIS,Fv=Ve.CHANUKAH_CANDLES,Uv=Ve.MINOR_FAST,xv=Ve.SPECIAL_SHABBAT,Zv=Ve.MODERN_HOLIDAY,$v=Ve.MAJOR_FAST,Vv=Ve.MINOR_HOLIDAY,zv=Ve.EREV,Kv=A.NISAN,Jv=A.TAMUZ,Gv=A.AV,Wv=A.TISHREI,qv=A.KISLEV,Xv=A.TEVET,Qv=A.ADAR_I,eA=A.ADAR_II,tA={emoji:"🇮🇱"},nA=new vp({maxSize:400}),rA=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function oA(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=nA.get(e);if(t)return t;const n=new Ye(1,Wv,e),r=new Ye(15,Kv,e),o=new Map;function a(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&zv?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of lv){const n=new Ye(t.dd,t.mm,e),r=new dv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new mv(n,e,Pv|Bv));const i=4===n.getDay()?4:3;a(new dv(new Ye(i,Wv,e),hv.TZOM_GEDALIAH,Uv)),a(new dv(new Ye(Ye.dayOnOrBefore(6,7+n.abs())),hv.SHABBAT_SHUVA,xv));const s=Ye.shortKislev(e)?new Ye(1,Xv,e):new Ye(30,qv,e);a(new dv(s,hv.CHAG_HABANOT,Vv));for(let t=2;t<=8;t++){const n=new Ye(23+t,qv,e);a(new dv(n,`Chanukah: ${t} Candles`,Vv|Fv,{chanukahDay:t-1,emoji:"🕎"+rA[t]}))}a(new dv(new Ye(32,qv,e),hv.CHANUKAH_8TH_DAY,Vv,{chanukahDay:8,emoji:"🕎"})),a(new gv(new Ye(10,Xv,e),hv.ASARA_BTEVET,Uv));const c=r.abs();a(new dv(new Ye(Ye.dayOnOrBefore(6,c-43)),hv.SHABBAT_SHEKALIM,xv),new dv(new Ye(Ye.dayOnOrBefore(6,c-30)),hv.SHABBAT_ZACHOR,xv),new dv(new Ye(c-(2===r.getDay()?33:31)),hv.TAANIT_ESTHER,Uv));const u=Ye.dayOnOrBefore(6,c-14);a(new dv(new Ye(u-7),hv.SHABBAT_PARAH,xv),new dv(new Ye(u),hv.SHABBAT_HACHODESH,xv),new dv(new Ye(Ye.dayOnOrBefore(6,c-1)),hv.SHABBAT_HAGADOL,xv),new dv(6===r.prev().getDay()?r.onOrBefore(4):new Ye(14,Kv,e),hv.TAANIT_BECHOROT,Uv)),a(new dv(new Ye(Ye.dayOnOrBefore(6,new Ye(1,Wv,e+1).abs()-4)),hv.LEIL_SELICHOT,Vv,{emoji:"🕍"})),0===r.getDay()&&a(new dv(new Ye(16,eA,e),hv.PURIM_MESHULASH,Vv)),Ye.isLeapYear(e)&&(a(new dv(new Ye(14,Qv,e),hv.PURIM_KATAN,Vv,{emoji:"🎭️"})),a(new dv(new Ye(15,Qv,e),hv.SHUSHAN_PURIM_KATAN,Vv,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Ye(27,_v,e);return t.getDay()===Hv?t=new Ye(26,_v,e):t.getDay()===Cv&&(t=new Ye(28,_v,e)),t}(e);h&&a(new dv(h,hv.YOM_HASHOAH,Zv));const l=Lv(e);l&&a(new dv(l,hv.YOM_HAZIKARON,Zv,tA),new dv(l.next(),hv.YOM_HAATZMA_UT,Zv,tA));for(const t of fv)if(e>=t.firstYear){let n=new Ye(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new Ye(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Zv:Zv|jv,i=new dv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let f,d=new Ye(17,Jv,e);6===d.getDay()&&(d=new Ye(18,Jv,e),f={observed:!0}),a(new dv(d,hv.TZOM_TAMMUZ,Uv,f));let g,m=new Ye(9,Gv,e),y=hv.TISHA_BAV;6===m.getDay()&&(m=m.next(),g={observed:!0},y+=" (observed)");const S=m.abs();a(new dv(new Ye(Ye.dayOnOrBefore(6,S)),hv.SHABBAT_CHAZON,xv),new dv(m.prev(),hv.EREV_TISHA_BAV,zv|$v,g),new dv(m,y,$v,g),new dv(new Ye(Ye.dayOnOrBefore(6,S+7)),hv.SHABBAT_NACHAMU,xv));const p=Ye.monthsInYear(e);for(let t=1;t<=p;t++){const n=Ye.getMonthName(t,e);30===(t===Kv?Ye.daysInMonth(Ye.monthsInYear(e-1),e-1):Ye.daysInMonth(t-1,e))?(a(new Sv(new Ye(1,t,e),n)),a(new Sv(new Ye(30,t-1,e),n))):t!==Wv&&a(new Sv(new Ye(1,t,e),n))}for(let t=A.IYYAR;t<=p;t++){const n=t+1;if(n===Wv||n===A.CHESHVAN||n===Xv)continue;let r=new Ye(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=Ye.getMonthName(n,e);a(new Yv(r,i))}const w=$p(e,!1).find(15);a(new dv(w,hv.SHABBAT_SHIRAH,xv));const v=function(e){const t=Ye.isLeapYear(e),n=t?eA:Kv,r=t?20:1,o=Ye.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 Ye(v);a(new dv(e,hv.BIRKAT_HACHAMAH,Vv,{emoji:"☀️"}))}return nA.set(e,o),o}function aA(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const iA={shacharit:!1,mincha:!1,allCongs:!1};function sA(e,t){return cA(e,t,!0)}function cA(e,t,n){const r=function(e,t){const n=Ye.isLeapYear(e),r=Ye.monthsInYear(e);let o=new Ye(9,A.AV,e);6===o.getDay()&&(o=o.next());let a=new Ye(15,A.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[new Ye(2,A.TISHREI,e)].concat(aA(1,r).map((t=>new Ye(1,t,e))),aA(1,r).filter((t=>30===Ye.daysInMonth(t,e))).map((t=>new Ye(30,t,e))),aA(1,Ye.daysInMonth(A.NISAN,e)).map((t=>new Ye(t,A.NISAN,e))),new Ye(18,A.IYYAR,e),aA(1,8-(t?1:0)).map((t=>new Ye(t,A.SIVAN,e))),o,new Ye(15,A.AV,e),new Ye(29,A.ELUL,e),aA(9,24-(t?1:0)).map((t=>new Ye(t,A.TISHREI,e))),aA(25,33).map((t=>new Ye(t,A.KISLEV,e))),new Ye(15,A.SHVAT,e),new Ye(14,A.ADAR_II,e),a,n?new Ye(14,A.ADAR_I,e):[]),s=[new Ye(14,A.IYYAR,e)].concat(aA(1,13).map((t=>new Ye(t,A.SIVAN,e))),aA(20,31).map((t=>new Ye(t,A.TISHREI,e))),e>=5708?Lv(e).next():[],e>=5727?new Ye(28,A.IYYAR,e):[]),c=[new Ye(29,A.ELUL,e-1),new Ye(9,A.TISHREI,e),new Ye(14,A.IYYAR,e)];return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return iA;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=cA(new Ye(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:iA}const uA=A.TISHREI;function hA(e){if("number"==typeof e)return e;if(s(e))return u(e);if(Ye.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function lA(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[hA(e.start),hA(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Ye).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return Ye.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new Ye(1,e||uA,t);let o=r.abs();const a=e?o+r.daysInMonth():new Ye(1,uA,t+n).abs()-1;!e&&t>1&&o--;return[o,a]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const a=u(o);let s;if(e)s=a+i(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),s=u(r)-1}return[a,s]}(r,n,o)}const fA=A.NISAN,dA=A.SIVAN,gA=A.ELUL,mA=A.TISHREI,yA=Ve.LIGHT_CANDLES,SA=Ve.YOM_TOV_ENDS,pA=Ve.CHUL_ONLY,wA=Ve.IL_ONLY,vA=Ve.LIGHT_CANDLES_TZEIS,AA=Ve.CHANUKAH_CANDLES,bA=Ve.MINOR_FAST,TA=Ve.SPECIAL_SHABBAT,MA=Ve.MODERN_HOLIDAY,IA=Ve.MAJOR_FAST,EA=Ve.ROSH_CHODESH,OA=Ve.PARSHA_HASHAVUA,CA=Ve.DAF_YOMI,NA=Ve.MISHNA_YOMI,HA=Ve.NACH_YOMI,DA=Ve.YERUSHALMI_YOMI,_A=Ve.OMER_COUNT,kA=Ve.SHABBAT_MEVARCHIM,LA=Ve.MINOR_HOLIDAY,RA=Ve.EREV,YA=Ve.CHOL_HAMOED,PA=Ve.YOM_KIPPUR_KATAN,jA=new Set,BA={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,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const FA={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},UA={281184:40,294801:30,293067:30};function xA(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof ip))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=Number(e.candleLightingMins)||18;t.getIsrael()&&18===Math.abs(n)&&(n=function(e,t){const n=e.getGeoId();if(n){const e=UA[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=FA[r];if("number"==typeof e)return e}return t}(t,n)),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)}function ZA(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&EA&&delete e.noRoshChodesh;t&MA&&delete e.noModern;t&bA&&delete e.noMinorFast;t&TA&&delete e.noSpecialShabbat;t&OA&&(e.sedrot=!0);t&(CA|NA|HA|DA)&&(e.dailyLearning=e.dailyLearning||{},t&CA&&(e.dailyLearning.dafYomi=!0),t&NA&&(e.dailyLearning.mishnaYomi=!0),t&HA&&(e.dailyLearning.nachYomi=!0),t&DA&&(e.dailyLearning.yerushalmi=1));t&_A&&(e.omer=!0);t&kA&&(e.shabbatMevarchim=!0);t&PA&&(e.yomKippurKatan=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;if(e.noHolidays||(r|=EA|SA|bA|TA|MA|IA|LA|RA|YA|yA|vA|AA),e.candlelighting&&(r|=yA|vA|SA),e.noRoshChodesh&&(r&=~EA),e.noModern&&(r&=~MA),e.noMinorFast&&(r&=~bA),e.noSpecialShabbat&&(r&=~TA,r&=~kA),r|=n?wA:pA,e.sedrot&&(r|=OA),e.omer&&(r|=_A),e.shabbatMevarchim&&(r|=kA),e.yomKippurKatan&&(r|=PA),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=CA),t.mishnaYomi&&(r|=NA),t.nachYomi&&(r|=HA),t.yerushalmi&&(r|=DA)}return r}const $A=yA|vA|AA|SA,VA=new ip(0,0,!1,"UTC");function zA(e){return e.observedInIsrael()}function KA(e){return e.observedInDiaspora()}class JA{constructor(){}static calendar(e={}){xA(e=Object.assign({},e));const t=e.location=e.location||VA,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=ZA(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!Ce.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else Ce.useLocale("en");const o=[];let a,i,s=-1,c=-1,u=-1;const l=lA(e);!function(e){for(const t of Object.keys(e))void 0!==BA[t]||jA.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),jA.add(t))}(e);const f=l[0],d=l[1];h(f).getFullYear()<100&&(e.candlelighting=!1);for(let t=f;t<=d;t++){const h=new Ye(t),l=h.getFullYear();l!==u&&(u=l,i=oA(u),e.sedrot&&(a=$p(u,n)),e.omer&&(s=Ye.hebrew2abs(u,fA,16),c=Ye.hebrew2abs(u,dA,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const t of S)y=WA(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=a.lookup(t);e.chag||o.push(new Vp(h,e.parsha,n,e.num))}const p=e.dailyLearning;if("object"==typeof p){const e=QA(h,p,n);o.push(...e)}if(e.omer&&t>=s&&t<=c){const n=eb(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=qA(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Tv(void 0,h,e,g,m),g&&y&&a&&(y.memo=a.getString(t,e.locale))),y instanceof dp&&(0===e.havdalahMins||0===e.havdalahDeg)&&(y=void 0),y&&o.push(y),e.addHebrewDates||e.addHebrewDatesForEvents&&f!==o.length){const e=new Je(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=z(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=D(r);let a=n.mm,i=n.dd;return a===$&&!o||a===V&&o?a=_(e):a!==F||30!==i||P(e)?a===U&&30===i&&j(e)?(a=x,i=1):a===$&&30===i&&o&&!D(e)&&(a=B,i=1):(a=U,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new Ye(n)}static getYahrzeit(e,t){const n=function(e,t){let n=z(t);if(!(e<=n.yy))return n.mm!==F||30!==n.dd||P(n.yy+1)?n.mm===U&&30===n.dd&&j(n.yy+1)?n=H(C(e,x,1)-1):n.mm===V?n.mm=_(e):n.mm!==$||30!==n.dd||D(e)||(n.dd=30,n.mm=Z):n=H(C(e,U,1)-1),n.mm!==F||30!==n.dd||P(e)?n.mm===U&&30===n.dd&&j(e)&&(n.mm=x,n.dd=1):(n.mm=U,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Ye(n)}static getHolidaysForYear(e){return oA(e)}static getHolidaysForYearArray(e,t){const n=oA(e),r=Ye.hebrew2abs(e,mA,1),o=Ye.hebrew2abs(e+1,mA,1)-1;let a=[];const i=t?zA:KA;for(let e=r;e<=o;e++){const t=new Ye(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=Ye.isHDate(e)?e:new Ye(e),r=n.toString(),o=oA(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?zA:KA;return o.filter(a)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Ye(e),r=n.after(5),o=n.next();return!(!GA(r,t)||GA(n,t)||!GA(o,t))}static reformatTimeStr(e,t,n){return hp(e,t,n)}static version(){return bv}static getSedra(e,t){return $p(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===A.NISAN&&(15===o||16===o)&&e.getFlags()&Ve.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()&Ve.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(JA.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return sA(e,t)}}function GA(e,t){return 0!==(JA.getHolidaysOnDate(e,t)||[]).filter((e=>e.getFlags()&Ve.CHAG)).length}function WA(e,t,n,r,o,a,i){const s=r.il||!1;if(!n.observedIn(s))return e;const c=n.getFlags();if(!r.yomKippurKatan&&c&PA||r.noModern&&c&MA)return e;const u=Boolean(c&IA),h=Boolean(c&bA);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 cp(a,o,s);if("Erev Tish'a B'Av"===n){const n=c.sunset();isNaN(n.getTime())||(e.startEvent=Ev(e,n,Mv,t))}else if(n.startsWith("Tish'a B'Av")){const n=c.tzeit(i);isNaN(n.getTime())||(e.endEvent=Ev(e,n,Iv,t))}else{const n=c.alotHaShachar();if(isNaN(n.getTime())||(e.startEvent=Ev(e,n,Mv,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==A.NISAN)){const n=c.tzeit(i);isNaN(n.getTime())||(e.endEvent=Ev(e,n,Iv,t))}}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),c&Number(r.mask)||!c&&!i){if(r.candlelighting&&c&$A){const t=n.getDate();if(e=Tv(n,t,r,o,a),c&AA&&e&&!r.noHolidays){const i=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),a=new cp(r,t.greg(),o).beinHaShmashos();if(isNaN(a.getTime()))return null;const i=new Ov(t,e.getDesc(),e.getFlags(),a,r);return i.emoji=e.emoji,i.chanukahDay=e.chanukahDay,i}(n,t,r);i&&((o||a)&&(i.eventTime=e.eventTime,i.eventTimeStr=e.eventTimeStr),n=i),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&c&PA)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}function qA(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==gA&&o>=23&&o<=29){const o=e.getFullYear(),a=r===Ye.monthsInYear(o)?fA:r+1;if(t.molad&&n.push(new pp(e,o,a,t)),t.shabbatMevarchim){const r=Ye.getMonthName(a,o),i=new Sp(o,a).render(t.locale||"en",t);n.push(new wv(e,r,i))}}return n}function XA(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function QA(e,t,n){const r=[];for(const[o,a]of Object.entries(t))if(a){const t=XA(o,a),i=Av.lookup(t,e,n);i&&r.push(i)}return r}function eb(e,t,n){const r=new wp(e,t);if(n.candlelighting){const t=n.location,o=new cp(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}return e.AsaraBTevetEvent=gv,e.CandleLightingEvent=fp,e.DailyLearning=Av,e.Event=Ke,e.GeoLocation=QS,e.HDate=Ye,e.HavdalahEvent=dp,e.HebrewCalendar=JA,e.HebrewDateEvent=Je,e.HolidayEvent=dv,e.Locale=Ce,e.Location=ip,e.MevarchimChodeshEvent=wv,e.Molad=Sp,e.MoladEvent=pp,e.NOAACalculator=tp,e.OmerEvent=wp,e.ParshaEvent=Vp,e.RoshChodeshEvent=Sv,e.RoshHashanaEvent=mv,e.Sedra=Ap,e.TimedEvent=lp,e.Zmanim=cp,e.flags=Ve,e.gematriya=q,e.gematriyaStrToNum=X,e.holidayDesc=hv,e.months=A,e.parshiot=bp,e.version=bv,e}({});
1
+ /*! @hebcal/core v5.5.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)}function a(e){return!(e%4||!(e%100)&&e%400)}function i(e,t){return n[+a(t)][e]}function s(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function u(e,t,n){const r=e-1;return 365*r+o(r,4)-o(r,100)+o(r,400)+o(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+n}function c(e){if(!s(e))throw new TypeError(`Argument not a Date: ${e}`);return u(e.getFullYear(),e.getMonth()+1,e.getDate())}function h(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),u=o(s,1461),c=o(r(s,1461),365),h=400*n+100*i+4*u+c;return 4!==i&&4!==c?h+1:h}(e=Math.trunc(e)),n=o(12*(e-u(t,1,1)+(e<u(t,3,1)?0:a(t)?1:2))+373,367),i=e-u(t,n,1)+1,s=new Date(t,n-1,i);return t<100&&t>=0&&s.setFullYear(t),s}n[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=h,e.greg.daysInMonth=i,e.greg.greg2abs=c,e.greg.isDate=s,e.greg.isLeapYear=a;const l={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},f=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],d=[f.concat(["Adar","Nisan"]),f.concat(["Adar I","Adar II","Nisan"])],g=new Map,m=-1373428;function y(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function S(e,t,n){if(y(e,"year"),y(t,"month"),y(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<7){for(let t=7;t<=A(e);t++)r+=b(t,e);for(let n=1;n<t;n++)r+=b(n,e)}else for(let n=7;n<t;n++)r+=b(n,e);return m+M(e)+r-1}function v(e){return m+M(e)}function p(e){if(y(e,"abs"),(e=Math.trunc(e))<=m)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-m)/365.24682220597794);for(;v(t)<=e;)++t;--t;let n=e<S(t,1,1)?7:1;for(;e>S(t,n,b(n,t));)++n;return{yy:t,mm:n,dd:1+e-S(t,n,1)}}function w(e){return(1+7*e)%19<7}function A(e){return+w(e)+12}function b(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!w(t)||8===e&&!E(t)||9===e&&O(t)?29:30}function T(e,t){if(y(e,"month"),y(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return d[+w(t)][e]}function M(e){const t=g.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&&!w(e)||1==i%7&&a>=16789&&w(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return g.set(e,n),n}function I(e){return M(e+1)-M(e)}function E(e){return I(e)%10==5}function O(e){return I(e)%10==3}const N=l.NISAN,C=l.CHESHVAN,H=l.KISLEV,D=l.TEVET,_=l.SHVAT,k=l.ADAR_I,L=l.ADAR_II;function R(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(s(e)){return p(c(e))}return p(e)}const Y={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},P=new Map,j=new Map;for(const[e,t]of Object.entries(Y))P.set(e,t),j.set(t,e);function B(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 F(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid gematriya number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=B(r);for(const t of e)n+=j.get(t);n+="׳"}const o=B(t%1e3);if(1===o.length)return n+j.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=j.get(o[e]);return n}function U(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*U(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=P.get(n);"number"==typeof e&&(t+=e)}return t}const x={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 Z(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function $(e){return[Math.floor((e-1)/7)+1,e%7||7]}function V(e,t){return Z(e),"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ee:12===e?r+="שְׁנֵים "+ee:12<e&&e<20?r+=K[n]+" "+ee:e>9&&(r+=K[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=z[t]),r+=e<11?K[n]+" "+G+" ":" "+X+" "):r+=1===e?Q+" ":W+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?K[t]+" "+q+" ":1===t?"שָׁבֽוּעַ "+K[1]+" ":J+" "+q+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?K[n]+" "+G+" ":1===n?Q+" ":W+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):function(e){const[t,n]=$(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)}const z=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],K=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],J="שְׁנֵי",G="יָמִים",W=J+" "+G,q="שָׁבוּעוֹת",X="יוֹם",Q=X+" "+K[1],ee="עָשָׂר";function te(e){return e<0?"-00"+te(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function ne(e){return e>=0&&e<10?"0"+e:String(e)}const re=new Map;const oe=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ae(e,t){const n=function(e){const t=re.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 re.set(e,n),n}(e).format(t),r=oe.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]=te(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ie(e){return te(e.getFullYear())+"-"+ne(e.getMonth()+1)+"-"+ne(e.getDate())}var se={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},ue={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const ce={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},he={h:"he",a:"ashkenazi",s:"en","":"en"},le=new Map;let fe,de;function ge(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function me(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function ye(e){const t=me(e),n=le.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class Se{static lookupTranslation(e,t){const n=("string"==typeof t&&le.get(t.toLowerCase())||fe)[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(e=me(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);le.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=ye(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${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 string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=ye(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=me(e),n=ye(t);return de=he[t]||t,fe=n,fe}static getLocaleName(){return de}static getLocaleNames(){return Array.from(le.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||de;if(!n)return ge(e);switch(n){case"en":case"s":case"a":return ge(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?ge(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}Se.addLocale("en",ce),Se.addLocale("s",ce),Se.addLocale("",ce),Se.useLocale("en"),Se.addLocale("ashkenazi",se),Se.addLocale("a",se),Se.addLocale("he",ue),Se.addLocale("h",ue);const ve=ue.contexts[""],pe={};for(const[e,t]of Object.entries(ve))pe[e]=[Se.hebrewStripNikkud(t[0])];const we={headers:ue.headers,contexts:{"":pe}};Se.addLocale("he-x-NoNikud",we);const Ae="day",be="week",Te="month",Me="year";class Ie{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const a="string"==typeof n?parseInt(n,10):n;if(isNaN(a))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=a,function(e,t){e.mm=Ie.monthNum(t),Ee(e)}(this,t);const i="string"==typeof e?parseInt(e,10):e;if(isNaN(i))throw new TypeError(`HDate called with bad day argument: ${e}`);o=i,(r=this).dd=o,Ee(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?s(e)?c(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad argument: ${e}`);const n="number"==typeof t,r=n?p(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return w(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=A(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return b(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 h(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=S(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return S(e,t,n)}getMonthName(){return T(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||Se.getLocaleName(),r=this.getDate(),o=Se.gettext(this.getMonthName(),n).replace(/'/g,"’"),a=Se.ordinal(r,n),i=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=Se.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=Se.gettext(this.getMonthName(),n),o=this.getFullYear();return F(t)+" "+r+" "+F(o)}before(e){return Ne(e,this,-1)}onOrBefore(e){return Ne(e,this,0)}nearest(e){return Ne(e,this,3)}onOrAfter(e){return Ne(e,this,6)}after(e){return Ne(e,this,7)}next(){return new Ie(this.abs()+1)}prev(){return new Ie(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new Ie(this);if(t=function(e){switch(e){case"d":return Ae;case"w":return be;case"M":return Te;case"y":return Me}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case Ae:case be:case Te:case Me:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===Ae)return new Ie(this.abs()+e);if(t===be)return new Ie(this.abs()+7*e);if(t===Me)return new Ie(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new Ie(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Ie(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return 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 w(e)}static monthsInYear(e){return A(e)}static daysInMonth(e,t){return b(e,t)}static getMonthName(e,t){return T(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):Ie.monthFromName(e)}static daysInYear(e){return I(e)}static longCheshvan(e){return E(e)}static shortKislev(e){return O(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 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(t[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`Unable to parse month name: ${e}`)}(Se.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=U(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=Ie.monthFromName(a);let s=U(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Ie(o,i,s)}}function Ee(e){Oe(e),function(e){e.dd<1&&(e.mm===l.TISHREI&&(e.yy-=1),e.dd+=b(e.mm,e.yy),e.mm-=1,Ee(e));e.dd>b(e.mm,e.yy)&&(e.mm===l.ELUL&&(e.yy+=1),e.dd-=b(e.mm,e.yy),e.mm===A(e.yy)?e.mm=1:e.mm+=1,Ee(e));Oe(e)}(e)}function Oe(e){e.mm!==l.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=A(e.yy),e.yy-=1,Ee(e)):e.mm>A(e.yy)&&(e.mm-=A(e.yy),e.yy+=1,Ee(e)):(e.mm-=1,Ee(e)),delete e.rd}function Ne(e,t,n){return new Ie(Ie.dayOnOrBefore(e,t.abs()+n))}var Ce={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"],"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"]}}},He={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":["רֹאשׁ חוֹדֶשׁ"],"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":["פִּרְקֵי אָבוֹת"]}}};Se.addTranslations("he",He),Se.addTranslations("h",He),Se.addTranslations("ashkenazi",Ce),Se.addTranslations("a",Ce);const De=He.contexts[""],_e={};for(const[e,t]of Object.entries(De))_e[e]=[Se.hebrewStripNikkud(t[0])];const ke={headers:He.headers,contexts:{"":_e}};Se.addTranslations("he-x-NoNikud",ke);const Le={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},Re=[[Le.MAJOR_FAST,"holiday","major","fast"],[Le.CHANUKAH_CANDLES,"holiday","major"],[Le.HEBREW_DATE,"hebdate"],[Le.MINOR_FAST,"holiday","fast"],[Le.MINOR_HOLIDAY,"holiday","minor"],[Le.MODERN_HOLIDAY,"holiday","modern"],[Le.MOLAD,"molad"],[Le.OMER_COUNT,"omer"],[Le.PARSHA_HASHAVUA,"parashat"],[Le.ROSH_CHODESH,"roshchodesh"],[Le.SHABBAT_MEVARCHIM,"mevarchim"],[Le.SPECIAL_SHABBAT,"holiday","shabbat"],[Le.USER_EVENT,"user"]];class Ye{constructor(e,t,n=0,r){if(!Ie.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 Se.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Le.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Le.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Ye(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 Re){if(e&t[0])return t.slice(1)}return["unknown"]}}class Pe extends Ye{constructor(e){super(e,e.toString(),Le.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Se.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=Se.gettext(t.getMonthName(),e);return F(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Se.getLocaleName(),r=this.getDate();if(r.getMonth()===l.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 je,Be,Fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ue={};function xe(){if(Be)return je;Be=1;var e=function(e){return e&&e.Math===Math&&e};return je=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Fe&&Fe)||e("object"==typeof je&&je)||function(){return this}()||Function("return this")()}var Ze,$e,Ve,ze,Ke,Je,Ge,We,qe={};function Xe(){return $e?Ze:($e=1,Ze=function(e){try{return!!e()}catch(e){return!0}})}function Qe(){if(ze)return Ve;ze=1;var e=Xe();return Ve=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function et(){if(Je)return Ke;Je=1;var e=Xe();return Ke=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function tt(){if(We)return Ge;We=1;var e=et(),t=Function.prototype.call;return Ge=e?t.bind(t):function(){return t.apply(t,arguments)},Ge}var nt,rt,ot,at,it,st,ut,ct,ht,lt,ft,dt,gt,mt,yt,St,vt,pt,wt,At,bt,Tt,Mt,It,Et,Ot,Nt,Ct,Ht,Dt,_t,kt,Lt,Rt,Yt,Pt,jt,Bt,Ft,Ut,xt,Zt={};function $t(){return ot?rt:(ot=1,rt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Vt(){if(it)return at;it=1;var e=et(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return at=e?r:function(e){return function(){return n.apply(e,arguments)}},at}function zt(){if(ht)return ct;ht=1;var e=Vt(),t=Xe(),n=function(){if(ut)return st;ut=1;var e=Vt(),t=e({}.toString),n=e("".slice);return st=function(e){return n(t(e),8,-1)},st}(),r=Object,o=e("".split);return ct=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,ct}function Kt(){return ft||(ft=1,lt=function(e){return null==e}),lt}function Jt(){if(gt)return dt;gt=1;var e=Kt(),t=TypeError;return dt=function(n){if(e(n))throw new t("Can't call method on "+n);return n},dt}function Gt(){if(yt)return mt;yt=1;var e=zt(),t=Jt();return mt=function(n){return e(t(n))},mt}function Wt(){if(vt)return St;vt=1;var e="object"==typeof document&&document.all;return St=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function qt(){if(wt)return pt;wt=1;var e=Wt();return pt=function(t){return"object"==typeof t?null!==t:e(t)},pt}function Xt(){if(bt)return At;bt=1;var e=xe(),t=Wt();return At=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},At}function Qt(){if(Nt)return Ot;Nt=1;var e,t,n=xe(),r=function(){if(Et)return It;Et=1;var e=xe().navigator,t=e&&e.userAgent;return It=t?String(t):""}(),o=n.process,a=n.Deno,i=o&&o.versions||a&&a.version,s=i&&i.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),Ot=t}function en(){if(Ht)return Ct;Ht=1;var e=Qt(),t=Xe(),n=xe().String;return Ct=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function tn(){if(_t)return Dt;_t=1;var e=en();return Dt=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function nn(){if(Lt)return kt;Lt=1;var e=Xt(),t=Wt(),n=function(){if(Mt)return Tt;Mt=1;var e=Vt();return Tt=e({}.isPrototypeOf)}(),r=tn(),o=Object;return kt=r?function(e){return"symbol"==typeof e}:function(r){var a=e("Symbol");return t(a)&&n(a.prototype,o(r))},kt}function rn(){if(Yt)return Rt;Yt=1;var e=String;return Rt=function(t){try{return e(t)}catch(e){return"Object"}}}function on(){if(jt)return Pt;jt=1;var e=Wt(),t=rn(),n=TypeError;return Pt=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function an(){if(Ft)return Bt;Ft=1;var e=on(),t=Kt();return Bt=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Bt}function sn(){if(xt)return Ut;xt=1;var e=tt(),t=Wt(),n=qt(),r=TypeError;return Ut=function(o,a){var i,s;if("string"===a&&t(i=o.toString)&&!n(s=e(i,o)))return s;if(t(i=o.valueOf)&&!n(s=e(i,o)))return s;if("string"!==a&&t(i=o.toString)&&!n(s=e(i,o)))return s;throw new r("Can't convert object to primitive value")},Ut}var un,cn,hn,ln,fn,dn,gn,mn,yn,Sn,vn,pn,wn,An,bn,Tn,Mn,In,En,On,Nn,Cn,Hn,Dn,_n={exports:{}};function kn(){if(ln)return hn;ln=1;var e=xe(),t=Object.defineProperty;return hn=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function Ln(){if(fn)return _n.exports;fn=1;var e=cn?un:(cn=1,un=!1),t=xe(),n=kn(),r="__core-js_shared__",o=_n.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.38.1",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"}),_n.exports}function Rn(){if(gn)return dn;gn=1;var e=Ln();return dn=function(t,n){return e[t]||(e[t]=n||{})}}function Yn(){if(yn)return mn;yn=1;var e=Jt(),t=Object;return mn=function(n){return t(e(n))}}function Pn(){if(vn)return Sn;vn=1;var e=Vt(),t=Yn(),n=e({}.hasOwnProperty);return Sn=Object.hasOwn||function(e,r){return n(t(e),r)},Sn}function jn(){if(wn)return pn;wn=1;var e=Vt(),t=0,n=Math.random(),r=e(1..toString);return pn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Bn(){if(bn)return An;bn=1;var e=xe(),t=Rn(),n=Pn(),r=jn(),o=en(),a=tn(),i=e.Symbol,s=t("wks"),u=a?i.for||i:i&&i.withoutSetter||r;return An=function(e){return n(s,e)||(s[e]=o&&n(i,e)?i[e]:u("Symbol."+e)),s[e]}}function Fn(){if(Mn)return Tn;Mn=1;var e=tt(),t=qt(),n=nn(),r=an(),o=sn(),a=Bn(),i=TypeError,s=a("toPrimitive");return Tn=function(a,u){if(!t(a)||n(a))return a;var c,h=r(a,s);if(h){if(void 0===u&&(u="default"),c=e(h,a,u),!t(c)||n(c))return c;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(a,u)}}function Un(){if(En)return In;En=1;var e=Fn(),t=nn();return In=function(n){var r=e(n,"string");return t(r)?r:r+""}}function xn(){if(Nn)return On;Nn=1;var e=xe(),t=qt(),n=e.document,r=t(n)&&t(n.createElement);return On=function(e){return r?n.createElement(e):{}},On}function Zn(){if(Hn)return Cn;Hn=1;var e=Qe(),t=Xe(),n=xn();return Cn=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function $n(){if(Dn)return qe;Dn=1;var e=Qe(),t=tt(),n=function(){if(nt)return Zt;nt=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Zt.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Zt}(),r=$t(),o=Gt(),a=Un(),i=Pn(),s=Zn(),u=Object.getOwnPropertyDescriptor;return qe.f=e?u:function(e,c){if(e=o(e),c=a(c),s)try{return u(e,c)}catch(e){}if(i(e,c))return r(!t(n.f,e,c),e[c])},qe}var Vn,zn,Kn,Jn,Gn,Wn,qn,Xn={};function Qn(){if(zn)return Vn;zn=1;var e=Qe(),t=Xe();return Vn=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function er(){if(Jn)return Kn;Jn=1;var e=qt(),t=String,n=TypeError;return Kn=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function tr(){if(Gn)return Xn;Gn=1;var e=Qe(),t=Zn(),n=Qn(),r=er(),o=Un(),a=TypeError,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",h="writable";return Xn.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var a=s(e,t);a&&a[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:a[c],enumerable:u in n?n[u]:a[u],writable:!1})}return i(e,t,n)}:i:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return i(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Xn}function nr(){if(qn)return Wn;qn=1;var e=Qe(),t=tr(),n=$t();return Wn=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var rr,or,ar,ir,sr,ur,cr,hr,lr,fr,dr,gr,mr,yr,Sr,vr={exports:{}};function pr(){if(ir)return ar;ir=1;var e=Vt(),t=Wt(),n=Ln(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),ar=n.inspectSource}function wr(){if(hr)return cr;hr=1;var e=Rn(),t=jn(),n=e("keys");return cr=function(e){return n[e]||(n[e]=t(e))}}function Ar(){return fr?lr:(fr=1,lr={})}function br(){if(gr)return dr;gr=1;var e,t,n,r=function(){if(ur)return sr;ur=1;var e=xe(),t=Wt(),n=e.WeakMap;return sr=t(n)&&/native code/.test(String(n))}(),o=xe(),a=qt(),i=nr(),s=Pn(),u=Ln(),c=wr(),h=Ar(),l="Object already initialized",f=o.TypeError,d=o.WeakMap;if(r||u.state){var g=u.state||(u.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(l);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=c("state");h[m]=!0,e=function(e,t){if(s(e,m))throw new f(l);return t.facade=e,i(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return dr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!a(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},dr}function Tr(){if(mr)return vr.exports;mr=1;var e=Vt(),t=Xe(),n=Wt(),r=Pn(),o=Qe(),a=function(){if(or)return rr;or=1;var e=Qe(),t=Pn(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),a=o&&"something"===function(){}.name,i=o&&(!e||e&&r(n,"name").configurable);return rr={EXISTS:o,PROPER:a,CONFIGURABLE:i}}().CONFIGURABLE,i=pr(),s=br(),u=s.enforce,c=s.get,h=String,l=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),m=o&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),S=vr.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||a&&e.name!==t)&&(o?l(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&l(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&l(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=u(e);return r(i,"source")||(i.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=S((function(){return n(this)&&c(this).source||i(this)}),"toString"),vr.exports}function Mr(){if(Sr)return yr;Sr=1;var e=Wt(),t=tr(),n=Tr(),r=kn();return yr=function(o,a,i,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:a;if(e(i)&&n(i,c,s),s.global)u?o[a]=i:r(a,i);else{try{s.unsafe?o[a]&&(u=!0):delete o[a]}catch(e){}u?o[a]=i:t.f(o,a,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},yr}var Ir,Er,Or,Nr,Cr,Hr,Dr,_r,kr,Lr,Rr,Yr,Pr,jr,Br,Fr,Ur,xr={};function Zr(){if(Nr)return Or;Nr=1;var e=function(){if(Er)return Ir;Er=1;var e=Math.ceil,t=Math.floor;return Ir=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Ir}();return Or=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function $r(){if(Hr)return Cr;Hr=1;var e=Zr(),t=Math.max,n=Math.min;return Cr=function(r,o){var a=e(r);return a<0?t(a+o,0):n(a,o)}}function Vr(){if(_r)return Dr;_r=1;var e=Zr(),t=Math.min;return Dr=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function zr(){if(Lr)return kr;Lr=1;var e=Vr();return kr=function(t){return e(t.length)}}function Kr(){if(Yr)return Rr;Yr=1;var e=Gt(),t=$r(),n=zr(),r=function(r){return function(o,a,i){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(i,u);if(r&&a!=a){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===a)return r||h||0;return!r&&-1}};return Rr={includes:r(!0),indexOf:r(!1)}}function Jr(){if(jr)return Pr;jr=1;var e=Vt(),t=Pn(),n=Gt(),r=Kr().indexOf,o=Ar(),a=e([].push);return Pr=function(e,i){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&a(h,s);for(;i.length>c;)t(u,s=i[c++])&&(~r(h,s)||a(h,s));return h},Pr}function Gr(){return Fr?Br:(Fr=1,Br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Wr,qr,Xr,Qr,eo,to,no,ro,oo,ao={};function io(){if(Xr)return qr;Xr=1;var e=Xt(),t=Vt(),n=function(){if(Ur)return xr;Ur=1;var e=Jr(),t=Gr().concat("length","prototype");return xr.f=Object.getOwnPropertyNames||function(n){return e(n,t)},xr}(),r=(Wr||(Wr=1,ao.f=Object.getOwnPropertySymbols),ao),o=er(),a=t([].concat);return qr=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),i=r.f;return i?a(t,i(e)):t},qr}function so(){if(eo)return Qr;eo=1;var e=Pn(),t=io(),n=$n(),r=tr();return Qr=function(o,a,i){for(var s=t(a),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||i&&e(i,l)||u(o,l,c(a,l))}},Qr}function uo(){if(oo)return ro;oo=1;var e=xe(),t=$n().f,n=nr(),r=Mr(),o=kn(),a=so(),i=function(){if(no)return to;no=1;var e=Xe(),t=Wt(),n=/#|\.prototype\./,r=function(n,r){var u=a[o(n)];return u===s||u!==i&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},a=r.data={},i=r.NATIVE="N",s=r.POLYFILL="P";return to=r}();return ro=function(s,u){var c,h,l,f,d,g=s.target,m=s.global,y=s.stat;if(c=m?e:y?e[g]||o(g,{}):e[g]&&e[g].prototype)for(h in u){if(f=u[h],l=s.dontCallGetSet?(d=t(c,h))&&d.value:c[h],!i(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;a(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var co,ho,lo,fo,go,mo,yo,So,vo,po,wo={};function Ao(){if(ho)return co;ho=1;var e=Jr(),t=Gr();return co=Object.keys||function(n){return e(n,t)},co}function bo(){if(go)return fo;go=1;var e=Xt();return fo=e("document","documentElement")}function To(){if(yo)return mo;yo=1;var e,t=er(),n=function(){if(lo)return wo;lo=1;var e=Qe(),t=Qn(),n=tr(),r=er(),o=Gt(),a=Ao();return wo.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var i,s=o(t),u=a(t),c=u.length,h=0;c>h;)n.f(e,i=u[h++],s[i]);return e},wo}(),r=Gr(),o=Ar(),a=bo(),i=xn(),s=wr(),u="prototype",c="script",h=s("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;g="undefined"!=typeof document?document.domain&&e?d(e):(n=i("iframe"),o="java"+c+":",n.style.display="none",a.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete g[u][r[s]];return g()};return o[h]=!0,mo=Object.create||function(e,r){var o;return null!==e?(l[u]=t(e),o=new l,l[u]=null,o[h]=e):o=g(),void 0===r?o:n.f(o,r)},mo}function Mo(){if(vo)return So;vo=1;var e=Bn(),t=To(),n=tr().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),So=function(e){o[r][e]=!0}}function Io(e,t,n,r,o){return Eo(t,Oo(e,t),n,r,o)}function Eo(e,t,n,r,o,a){const i=Jo(t,n,r);if(o&&t!==i)throw new RangeError(th(e,t,n,r,a));return i}function Oo(e,t){const n=e[t];if(void 0===n)throw new TypeError(rh(t));return n}function No(e){return null!==e&&/object|function/.test(typeof e)}function Co(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 Ho(e){return Do({name:e},1)}function Do(e,t){return Ro((e=>({value:e,configurable:1,writable:!t})),e)}function _o(e){return Ro((e=>({get:e,configurable:1})),e)}function ko(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Lo(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Ro(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Yo(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 Po(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function jo(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Bo(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Fo(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function Uo(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function xo(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Zo(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 $o(e){return e[0].toUpperCase()+e.substring(1)}function Vo(e){return e.slice().sort()}function zo(e,t){return String(t).padStart(e,"0")}function Ko(e,t){return Math.sign(e-t)}function Jo(e,t,n){return Math.min(Math.max(e,t),n)}function Go(e,t){return[Math.floor(e/t),Wo(e,t)]}function Wo(e,t){return(e%t+t)%t}function qo(e,t){return[Xo(e,t),Qo(e,t)]}function Xo(e,t){return Math.trunc(e/t)||0}function Qo(e,t){return e%t||0}function ea(e){return.5===Math.abs(e%1)}function ta(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=qh[a],s=Wh/i,[u,c]=qo(t,s);r+=c*i,o+=u}const[a,i]=qo(r,Wh);return[o+a,i]}function na(e,t,n){const r={};for(let o=t;o>=0;o--){const t=qh[o];r[n[o]]=Xo(e,t),e=Qo(e,t)}return r}function ra(e){if(void 0!==e)return aa(e)}function oa(e){return la(aa(e))}function aa(e){return ha(Tl(e))}function ia(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function sa(e,t){if(null==t)throw new RangeError(rh(e));return t}function ua(e){if(!No(e))throw new TypeError(eh);return e}function ca(e,t){if(typeof t!==e)throw new TypeError(nh(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Jc(t,e));return e||0}function la(e){if(e<=0)throw new RangeError(Gc(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function fa(e){if("symbol"==typeof e)throw new TypeError(Qc);return String(e)}function da(e,t){return No(e)?String(e):Al(e,t)}function ga(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Xc(e));return e}function ma(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(qc(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Wc(t,e));return e}function ya(e,t){return Math.trunc(ma(e,t))||0}function Sa(e,t){return ha(ma(e,t),t)}function va(e,t){return la(ya(e,t),t)}function pa(e,t){let[n,r]=qo(t,Wh),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Wh),[o,r]}function wa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return pa(e[0]+t[0]*n,e[1]+t[1]*n)}function Aa(e,t){return pa(e[0],e[1]+t)}function ba(e,t){return wa(t,e,-1)}function Ta(e,t){return Ko(e[0],t[0])||Ko(e[1],t[1])}function Ma(e,t,n){return-1===Ta(e,t)||1===Ta(e,n)}function Ia(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Wh/t);return[Number(e/n),Number(e%n)*t]}function Ea(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Wh/t,[r,o]=qo(e,n);return[r,o*t]}function Oa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Wh/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Na(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]=qo(o,t);return r*(Wh/t)+(a+(n?i/t:0))}function Ca(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Go;const[r,o]=e,[a,i]=n(o,t);return[r*(Wh/t)+a,i]}function Ha(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Da(e){return Io(e,"isoYear",Gl,Jl,1),e.isoYear===Gl?Io(e,"isoMonth",4,12,1):e.isoYear===Jl&&Io(e,"isoMonth",1,9,1),e}function _a(e){return ka({...e,...Fl,isoHour:12}),e}function ka(e){const t=Io(e,"isoYear",Gl,Jl,1),n=t===Gl?1:t===Jl?-1:0;return n&&La(Fa({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function La(e){if(!e||Ma(e,Kl,zl))throw new RangeError(Nh);return e}function Ra(e){return ta(e,5,Ll)[1]}function Ya(e){const[t,n]=Go(e,Wh);return[na(n,5,Ll),t]}function Pa(e){return ja(e)[0]}function ja(e){return Ca(e,Kh)}function Ba(e){return Za(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Fa(e){const t=Ba(e);if(void 0!==t){const[n,r]=qo(t,Zh);return[n,r*zh+(e.isoMicrosecond||0)*Vh+(e.isoNanosecond||0)]}}function Ua(e,t){const[n,r]=Ya(Ra(e)-t);return La(Fa({...e,isoDay:e.isoDay+r,...n}))}function xa(){return Za(...arguments)/$h}function Za(){const[e,t]=$a(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*Zh}function $a(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===Gl?1:e===Jl?-1:0,u=new Date;return u.setUTCHours(r,o,a,i),u.setUTCFullYear(e,t-1,n+s),[u,s]}function Va(e,t){let[n,r]=Aa(e,t);r<0&&(r+=Wh,n-=1);const[o,a]=Go(r,zh),[i,s]=Go(a,Vh);return za(n*Zh+o,i,s)}function za(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)-Vl)/Zh)*Math.sign(e),o=new Date(e-r*Zh);return Lo(Yl,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Ka(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Ja(){return Xl}function Ga(e,t){switch(t){case 2:return qa(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Wa(e){return qa(e)?366:365}function qa(e){return e%4==0&&(e%100!=0||e%400==0)}function Xa(e){const[t,n]=$a(e.isoYear,e.isoMonth,e.isoDay);return Wo(t.getUTCDay()-n,7)||7}function Qa(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function ei(e){const t=Ba(e);if(t<Ql)return Qa(e);const n=Ha(ud(vl),t),{era:r,eraYear:o}=Xu(n,vl);return[r,o]}function ti(e){return ni(e),ai(e,1),e}function ni(e){return oi(e,1),e}function ri(e){return Uo(Rl,e,oi(e))}function oi(e,t){const{isoYear:n}=e,r=Io(e,"isoMonth",1,Ja(),t);return{isoYear:n,isoMonth:r,isoDay:Io(e,"isoDay",1,Ga(n,r),t)}}function ai(e,t){return Lo(Ll,[Io(e,"isoHour",0,23,t),Io(e,"isoMinute",0,59,t),Io(e,"isoSecond",0,59,t),Io(e,"isoMillisecond",0,999,t),Io(e,"isoMicrosecond",0,999,t),Io(e,"isoNanosecond",0,999,t)])}function ii(e){return void 0===e?0:vf(ua(e))}function si(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=vi(e);const n=pf(e),r=wf(e,t);return[vf(e),r,n]}function ui(e){return pf(vi(e))}function ci(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=vi(t);let i=yf(t,r,o),s=mi(t),u=Mf(t,a);const c=mf(t,r,o,1);return null==i?i=Math.max(n,c):Mi(i,c),s=yi(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[i,c,s,u]}function hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=mi(e=pi(e,tf));const o=Mf(e,7);let a=mf(e,t);return a=sa(tf,a),r=yi(r,a,void 0,n),[a,r,o]}function li(e){return Af(vi(e))}function fi(e,t){return di(vi(e),t)}function di(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Si(e);return[Mf(e,4),...gi(mf(e,t),n)]}function gi(e,t){return null!=e?[qh[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function mi(e){const t=e[rf];return void 0===t?1:ya(t,rf)}function yi(e,t,n,r){const o=r?Wh:qh[t+1];if(o){const n=qh[t];if(o%((e=Eo(rf,e,1,o/n-(r?0:1),1))*n))throw new RangeError(nh(rf,e))}else e=Eo(rf,e,1,n?10**9:1,1);return e}function Si(e){let t=e[of];if(void 0!==t){if("number"!=typeof t){if("auto"===fa(t))return;throw new RangeError(nh(of,t))}t=Eo(of,Math.floor(t),0,9,1)}return t}function vi(e){return void 0===e?{}:ua(e)}function pi(e,t){return"string"==typeof e?{[t]:e}:ua(e)}function wi(e){if(void 0!==e){if(No(e))return Object.assign(Object.create(null),e);throw new TypeError(eh)}}function Ai(e,t){return e&&Object.assign(Object.create(null),e,{overflow:uf[t]})}function bi(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=fa(a),"auto"===a)return o?r:null;let i=Uh[a];if(void 0===i&&(i=Hl[a]),void 0===i)throw new RangeError(sh(e,a,Uh));return Eo(e,i,r,n,1,xh),i}function Ti(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=fa(o),i=t[a];if(void 0===i)throw new RangeError(sh(e,a,t));return i}function Mi(e,t){if(t>e)throw new RangeError(Lh)}function Ii(e){return{branding:Df,epochNanoseconds:e}}function Ei(e,t,n){return{branding:Hf,calendar:n,timeZone:t,epochNanoseconds:e}}function Oi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Nf,calendar:t,...jo(Bl,e)}}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Of,calendar:t,...jo(Pl,e)}}function Ci(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:If,calendar:t,...jo(Pl,e)}}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Ef,calendar:t,...jo(Pl,e)}}function Di(e){return{branding:Cf,...jo(jl,e)}}function _i(e){return{branding:_f,sign:Gs(e),...jo(El,e)}}function ki(e){return Ca(e.epochNanoseconds,zh)[0]}function Li(e){return e.epochNanoseconds}function Ri(e){return"string"==typeof e?e:Al(e.id)}function Yi(e,t){return e===t||Ri(e)===Ri(t)}function Pi(e,t){return Na(Xs(e),qh[t],1)}function ji(e,t,n,r,o,a,i){const s=Il[n],u={...t,[s]:t[s]+r},c=i(e,o,t),h=i(e,o,u);return[a(c),a(h)]}function Bi(e,t,n){const r=Na(ba(t,n));if(!r)throw new RangeError(ph);return Na(ba(t,e))/r}function Fi(e,t,n,r){return Ui(e,$i(t,n),r)}function Ui(e,t,n){const[r,o]=xi(e,t,n);return ka({...Bs(e,o),...r})}function xi(e,t,n){return Ya(qi(Ra(e),t,n))}function Zi(e){return qi(e,Jh,7)}function $i(e,t){return qh[e]*t}function Vi(e){const t=zi(e);return[t,Bs(t,1)]}function zi(e){return Ul(6,e)}function Ki(e,t,n){const r=Math.min(nu(e),6);return Qs(Wi(Xs(e,r),t,n),r)}function Ji(e,t,n,r,o,a,i,s,u,c){if(0===r&&1===o)return e;const h=Vs(r,s)?$s(s)&&r<6&&n>=6?es:Qi:ts;let[l,f,d]=h(e,t,n,r,o,a,i,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,a,i,s)=>{const u=Gs(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=kl(c,e);r[Il[c]]+=u;const h=Na(ba(i(s(o,a,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),i,s,u,c)),l}function Gi(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Wh)(e);return[qi(t,n,r),0]}return Wi(e,$i(t,n),r,o)}function Wi(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Wh,o-=1);const[i,s]=Go(qi(a,t,n),Wh);return pa(o+i,s)}function qi(e,t,n){return Xi(e/t,n)*t}function Xi(e,t){return kf[t](e)}function Qi(e,t,n,r,o,a){const i=Gs(e),s=Xs(e),u=Gi(s,r,o,a),c=ba(s,u),h=Math.sign(u[0]-s[0])===i,l=Qs(u,Math.min(n,6));return[{...e,...l},wa(t,c),h]}function es(e,t,n,r,o,a,i,s,u,c){const h=Gs(e),l=Na(Xs(e,5)),f=$i(r,o);let d=qi(l,f,a);const[g,m]=ji(i,{...e,..._l},6,h,s,u,c),y=d-Na(ba(g,m));let S=0;y&&Math.sign(y)!==h?t=Aa(g,d):(S+=h,d=qi(y,f,a),t=Aa(m,d));const v=eu(d);return[{...e,...v,days:e.days+S},t,Boolean(S)]}function ts(e,t,n,r,o,a,i,s,u,c){const h=Gs(e),l=Il[r],f=kl(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=Xo(e[l],o)*o;f[l]=d;const[g,m]=ji(i,f,r,o*h,s,u,c),y=d+Bi(t,g,m)*h*o,S=qi(y,o,a),v=Math.sign(S-y)===h;return f[l]=S,[f,v?m:g,v]}function ns(e,t,n,r){const[o,a,i,s]=(e=>{const t=di(e=vi(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,a)=>{n=Wi(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return fs(Va(n,i),a)+(e?Ss(Zi(i)):"Z")})(u,t(u?e(o):Lf),n.epochNanoseconds,a,i,s)}function rs(e,t,n){const[r,o,a,i,s,u]=(e=>{e=vi(e);const t=Af(e),n=Si(e),r=Tf(e),o=Mf(e,4),a=mf(e,4);return[t,bf(e),r,o,...gi(a,n)]})(n);return((e,t,n,r,o,a,i,s,u,c)=>{r=Wi(r,u,s,1);const h=e(n).getOffsetNanosecondsFor(r);return fs(Va(r,h),c)+Ss(Zi(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+Ri(e)+"]":"")(n,a)+vs(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,u)}function os(e,t){const[n,r,o,a]=(e=>(e=vi(e),[Af(e),...di(e)]))(t);return i=e.calendar,s=n,u=a,fs(Ui(e,o,r),u)+vs(i,s);var i,s,u}function as(e,t){return n=e.calendar,r=e,o=li(t),ds(r)+vs(n,o);var n,r,o}function is(e,t){return hs(e.calendar,gs,e,li(t))}function ss(e,t){return hs(e.calendar,ms,e,li(t))}function us(e,t){const[n,r,o]=fi(t);return a=o,ys(xi(e,r,n)[0],a);var a}function cs(e,t){const[n,r,o]=fi(t,3);return r>1&&(e={...e,...Ki(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Js(e):e,{hours:o,minutes:a}=r,[i,s]=Ca(Xs(r,3),Kh,qo);qs(i);const u=ws(s,t),c=t>=0||!n||u;return(n<0?"-":"")+"P"+ls({Y:bs(r.years),M:bs(r.months),W:bs(r.weeks),D:bs(r.days)})+(o||a||i||c?"T"+ls({H:bs(o),M:bs(a),S:bs(i,c)+u}):"")})(e,o)}function hs(e,t,n,r){const o=Ri(e),a=r>1||0===r&&o!==yl;return 1===r?o===yl?t(n):ds(n):a?ds(n)+ps(o,2===r):t(n)}function ls(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function fs(e,t){return ds(e)+"T"+ys(e,t)}function ds(e){return gs(e)+"-"+Fh(e.isoDay)}function gs(e){const{isoYear:t}=e;return(t<0||t>9999?As(t)+zo(6,Math.abs(t)):zo(4,t))+"-"+Fh(e.isoMonth)}function ms(e){return Fh(e.isoMonth)+"-"+Fh(e.isoDay)}function ys(e,t){const n=[Fh(e.isoHour),Fh(e.isoMinute)];return-1!==t&&n.push(Fh(e.isoSecond)+((e,t,n,r)=>ws(e*zh+t*Vh+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Ss(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=Go(Math.abs(e),Gh),[r,o]=Go(n,Jh),[a,i]=Go(o,Kh);return As(e)+Fh(t)+":"+Fh(r)+(a||i?":"+Fh(a)+ws(i):"")}function vs(e,t){if(1!==t){const n=Ri(e);if(t>1||0===t&&n!==yl)return ps(n,2===t)}return""}function ps(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function ws(e,t){let n=zo(9,e);return n=void 0===t?n.replace(jf,""):n.slice(0,t),n?"."+n:""}function As(e){return e<0?"-":"+"}function bs(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Ts(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=Va(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Ms(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 Ua(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Fa(t);r&&(n=Zi(n));for(const t of e){let e=Na(ba(t,o));if(r&&(e=Zi(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Eh)}return i?Fa(t):Is(e,t,o,s)}function Is(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(Oh);if(r.length)return r[3===n?1:0];const o=Fa(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(Aa(t,-Wh));return Os(e.getOffsetNanosecondsFor(Aa(t,Wh))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(Va(o,i)))[2===n?0:r.length-1]}function Es(e){if(Math.abs(e)>=Wh)throw new RangeError(Mh);return e}function Os(e){if(e>Wh)throw new RangeError(Ih);return e}function Ns(e,t,n){return Ii(La(wa(t.epochNanoseconds,(e=>{if(tu(e))throw new RangeError(_h);return Xs(e,5)})(e?Js(n):n))))}function Cs(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,...Ls(i,s,r,n?Js(o):o,a)}}function Hs(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Oi(Rs(e(a),n,t?Js(r):r,o),a)}function Ds(e,t,n,r,o){const{calendar:a}=n;return Ni(Ys(e(a),n,t?Js(r):r,o),a)}function _s(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=Ps(i,n);t&&(r=Ks(r)),r.sign<0&&(s=i.dateAdd(s,{...Dl,months:1}),s=Bs(s,-1));const u=i.dateAdd(s,r,o);return Ci(Ps(i,u),a)}function ks(e,t,n){return Di(js(t,e?Js(n):n)[0])}function Ls(e,t,n,r,o){const a=Xs(r,5);let i=n.epochNanoseconds;if(tu(r)){const s=Bf(n,e);i=wa(Is(e,{...Ys(t,s,{...r,..._l},o),...jo(Ll,s)}),a)}else i=wa(i,a),ii(o);return{epochNanoseconds:La(i)}}function Rs(e,t,n,r){const[o,a]=js(t,n);return ka({...Ys(e,t,{...n,..._l,days:n.days+a},r),...o})}function Ys(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);ii(r);const o=n.days+Xs(n,5)[0];return o?_a(Bs(t,o)):t}function Ps(e,t){return Bs(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function js(e,t){const[n,r]=Xs(t,5),[o,a]=Ya(Ra(e)+r);return[o,n+a]}function Bs(e,t){return t?{...e,...za(Ba(e)+t*Zh)}:e}function Fs(e,t,n){const r=e(n.calendar);return $s(n)?[n,r,t(n.timeZone)]:[{...n,...Fl},r]}function Us(e){return e?Li:Fa}function xs(e){return e?Zo(Ls,e):Rs}function Zs(e){return e?Zo(Bu,e):Fu}function $s(e){return e&&e.epochNanoseconds}function Vs(e,t){return e<=6-($s(t)?1:0)}function zs(e,t,n,r,o,a,i){const s=e(vi(i).relativeTo),u=Math.max(nu(o),nu(a));if(Vs(u,s))return _i(Ws(((e,t,n,r)=>{const o=wa(Xs(e),Xs(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Nh);return{...Dl,...Qs(o,n)}})(o,a,u,r)));if(!s)throw new RangeError(Dh);r&&(a=Js(a));const[c,h,l]=Fs(t,n,s),f=xs(l),d=Zs(l),g=f(h,c,o);return _i(d(h,c,f(h,g,a),u))}function Ks(e){return _i(Js(e))}function Js(e){const t={};for(const n of Il)t[n]=-1*e[n]||0;return t}function Gs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Il,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Hh);n=t}}return n}function Ws(e){for(const t of Cl)Eo(t,e[t],-Ff,Ff,1);return qs(Na(Xs(e),Kh)),e}function qs(e){if(!Number.isSafeInteger(e))throw new RangeError(Ch)}function Xs(e){return ta(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Il)}function Qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=na(r,t,Il);if(o[Il[t]]+=n*(Wh/qh[t]),!Number.isFinite(o[Il[t]]))throw new RangeError(Nh);return o}function eu(e){return na(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Il)}function tu(e){return Boolean(Gs(e,Nl))}function nu(e){let t=9;for(;t>0&&!e[Il[t]];t--);return t}function ru(e,t){return[e,t]}function ou(e){const t=Math.floor(e/Rf)*Rf;return[t,t+Rf]}function au(e){const t=mu(e);if(void 0===t)throw new RangeError(Rh(e));return t}function iu(e){const t=fu(Al(e));if(!t||t.m)throw new RangeError(Rh(e));return Ni(t.p?cu(t):hu(t))}function su(e){if(e.calendar!==yl)throw new RangeError(Yh(e.calendar))}function uu(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=Tu(e.timeZone),a=Uf(o);return Ei(Ms(a,ti(e),t,n,r,!a.v,e.m),o,sc(e.calendar))}function cu(e){return lu(ka(ti(e)))}function hu(e){return lu(_a(ni(e)))}function lu(e){return{...e,calendar:sc(e.calendar)}}function fu(e){const t=ed.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:yu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Su(e.slice(5)),...vu(e[16]),p:Boolean(e[6]),m:n,offset:n?void 0:t}})(t):void 0}function du(e){const t=Xf.exec(e);return t?(e=>({isoYear:yu(e),isoMonth:parseInt(e[4]),isoDay:1,...vu(e[5])}))(t):void 0}function gu(e){const t=Qf.exec(e);return t?(e=>({isoYear:ql,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...vu(e[3])}))(t):void 0}function mu(e,t){const n=nd.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Yh(n));return Es((bu(e[2])*Gh+bu(e[3])*Jh+bu(e[4])*Kh+pu(e[5]||""))*Au(e[1]))})(n,t):void 0}function yu(e){const t=Au(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Yh(-0));return t*n}function Su(e){const t=bu(e[3]);return{...Ya(pu(e[4]||""))[0],isoHour:bu(e[1]),isoMinute:bu(e[2]),isoSecond:60===t?59:t}}function vu(e){let t,n;const r=[];if(e.replace(rd,((e,o,a)=>{const i=Boolean(o),[s,u]=a.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(u))throw new RangeError(Yh(e))}else{if(n)throw new RangeError(Yh(e));n=s}return""})),r.length>1&&t)throw new RangeError(Yh(e));return{timeZone:n,calendar:r[0]||yl}}function pu(e){return parseInt(e.padEnd(9,"0"))}function wu(e){return new RegExp(`^${e}$`,"i")}function Au(e){return e&&"+"!==e?-1:1}function bu(e){return void 0===e?0:parseInt(e)}function Tu(e){const t=Iu(e);return"number"==typeof t?Ss(t):t?(e=>{if(id.test(e))throw new RangeError(Th);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?$o(e).replace(/island|noronha|murdo|rivadavia|urville/,$o):e)))).join("/")})(e):Lf}function Mu(e){const t=Iu(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Lf}function Iu(e){const t=mu(e=e.toUpperCase(),1);return void 0!==t?t:e!==Lf?ad(e):void 0}function Eu(e,t){return Ta(e.epochNanoseconds,t.epochNanoseconds)}function Ou(e,t){return Ta(e.epochNanoseconds,t.epochNanoseconds)}function Nu(e,t){return Cu(e,t)||Hu(e,t)}function Cu(e,t){return Ko(Ba(e),Ba(t))}function Hu(e,t){return Ko(Ra(e),Ra(t))}function Du(e,t){if(e===t)return 1;const n=Ri(e),r=Ri(t);if(n===r)return 1;try{return Mu(n)===Mu(r)}catch(e){}}function _u(e,t,n,r){const o=ci(e,wi(r),3,5),a=Zu(t.epochNanoseconds,n.epochNanoseconds,...o);return _i(e?Js(a):a)}function ku(e,t,n,r,o,a){const i=Ju(r.calendar,o.calendar),s=wi(a),[u,c,h,l]=ci(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Ta(d,f);let m;if(g)if(u<6)m=Zu(f,d,u,c,h,l);else{const n=t(((e,t)=>{if(!Du(e,t))throw new RangeError(bh);return e})(r.timeZone,o.timeZone)),a=e(i);m=Uu(a,n,r,o,g,u,s),m=Ji(m,d,u,c,h,l,a,r,Li,Zo(Ls,n))}else m=Dl;return _i(n?Js(m):m)}function Lu(e,t,n,r,o){const a=Ju(n.calendar,r.calendar),i=wi(o),[s,u,c,h]=ci(t,i,6),l=Fa(n),f=Fa(r),d=Ta(f,l);let g;if(d)if(s<=6)g=Zu(l,f,s,u,c,h);else{const t=e(a);g=xu(t,n,r,d,s,i),g=Ji(g,f,s,u,c,h,t,n,Fa,Rs)}else g=Dl;return _i(t?Js(g):g)}function Ru(e,t,n,r,o){const a=Ju(n.calendar,r.calendar),i=wi(o);return Pu(t,(()=>e(a)),n,r,...ci(t,i,6,9,6),i)}function Yu(e,t,n,r,o){const a=Ju(n.calendar,r.calendar),i=wi(o),s=ci(t,i,9,9,8),u=e(a);return Pu(t,(()=>u),Ps(u,n),Ps(u,r),...s,i)}function Pu(e,t,n,r,o,a,i,s,u){const c=Fa(n),h=Fa(r);let l;if(Ta(h,c))if(6===o)l=Zu(c,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,u),6===a&&1===i||(l=Ji(l,h,o,a,i,s,e,n,Fa,Ys))}else l=Dl;return _i(e?Js(l):l)}function ju(e,t,n,r){const o=wi(r),[a,i,s,u]=ci(e,o,5,5),c=qi(Ku(t,n),$i(i,s),u),h={...Dl,...eu(c,a)};return _i(e?Js(h):h)}function Bu(e,t,n,r,o,a){const i=Ta(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?$u(n.epochNanoseconds,r.epochNanoseconds,o):Uu(t,e,n,r,i,o,a):Dl}function Fu(e,t,n,r,o){const a=Fa(t),i=Fa(n),s=Ta(i,a);return s?r<=6?$u(a,i,r):xu(e,t,n,s,r,o):Dl}function Uu(e,t,n,r,o,a,i){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...Bs(s,c++*-r),...i},f=Is(e,l),Ta(u,f)===-r}const a=Bf(t,e),i=jo(Ll,a),s=Bf(n,e),u=n.epochNanoseconds;let c=0;const h=Ku(a,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(ph);const d=Na(ba(f,u));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=u,{...Dl,days:Vu(h,l)}):e.dateUntil(s,u,a,i),...eu(c)}}function xu(e,t,n,r,o,a){const[i,s,u]=((e,t,n)=>{let r=t,o=Ku(e,t);return Math.sign(o)===-n&&(r=Bs(t,-n),o+=Wh*n),[e,r,o]})(t,n,r);return{...e.dateUntil(i,s,o,a),...eu(u)}}function Zu(e,t,n,r,o,a){return{...Dl,...Qs(Gi(ba(e,t),r,o,a),n)}}function $u(e,t,n){return{...Dl,...Qs(ba(e,t),n)}}function Vu(e,t){return zu(Ba(e),Ba(t))}function zu(e,t){return Math.trunc((t-e)/Zh)}function Ku(e,t){return Ra(t)-Ra(e)}function Ju(e,t){if(!Yi(e,t))throw new RangeError(wh);return e}function Gu(e){function t(e){return((e,t)=>({...Xu(e,t),F:e.month,day:parseInt(e.day)}))(Ha(n,e),r)}const n=ud(e),r=uc(e);return{id:e,O:Wu(t),B:qu(t)}}function Wu(e){return Co((t=>{const n=Ba(t);return e(n)}),WeakMap)}function qu(e){const t=e(0).year-Wl;return Co((n=>{let r,o=Za(n-t);const a=[],i=[];do{o+=400*Zh}while((r=e(o)).year<=n);do{o+=(1-r.day)*Zh,r.year===n&&(a.push(o),i.push(r.F)),o-=Zh}while((r=e(o)).year>=n);return{k:a.reverse(),C:jh(i.reverse())}}))}function Xu(e,t){let n,r,o=Qu(e);if(e.era){const a=pl[t];void 0!==a&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"!==n&&"a"!==n||(n="ce"),r=o,o=mc(r,a[n]||0))}return{era:n,eraYear:r,year:o}}function Qu(e){return parseInt(e.relatedYear||e.year)}function ec(e){const{year:t,F:n,day:r}=this.O(e),{C:o}=this.B(t);return[t,o[n]+1,r]}function tc(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.B(e).k[t-1]+(n-1)*Zh}function nc(e){const t=ic(this,e),n=ic(this,e-1),r=t.length;if(r>n.length){const e=Sc(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function rc(e){return zu(tc.call(this,e),tc.call(this,e+1))}function oc(e,t){const{k:n}=this.B(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.B(e+1).k),zu(n[t-1],o[r-1])}function ac(e){return this.B(e).k.length}function ic(e,t){return Object.keys(e.B(t).C)}function sc(e){if((e=e.toLowerCase())!==yl&&e!==Sl&&uc(e)!==uc(ud(e).resolvedOptions().calendar))throw new RangeError(Ah(e));return e}function uc(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function cc(e){return this.R(e)[0]}function hc(e){return this.R(e)[1]}function lc(e){const[t]=this.h(e);return zu(this.q(t),Ba(e))+1}function fc(e){const t=cd.exec(e);if(!t)throw new RangeError(gh(e));return[parseInt(t[1]),Boolean(t[2])]}function dc(e,t,n){return e+(t||n&&e>=n?1:0)}function gc(e,t){return e-(t&&e>=t?1:0)}function mc(e,t){return(t+e)*(Math.sign(t)||1)||0}function yc(e){return pl[vc(e)]}function Sc(e){return wl[vc(e)]}function vc(e){return uc(e.id||yl)}function pc(e,t,n,r){const o=Tc(n,r,fl,[],rl);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Ic(o),i=e(o.timeZone);return{epochNanoseconds:Ms(t(i),{...r,...a},void 0!==o.offset?au(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...Fl}}function wc(e,t,n){const r=Tc(e,t,fl,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Ac(e,t,n,r){const o=Tc(e,t,hl,r);return e.yearMonthFromFields(o,n)}function bc(e,t,n,r){const o=Tc(e,n,fl,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=ql),e.monthDayFromFields(o,r)}function Tc(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 Mc(t,[...e.fields(n),...o].sort(),r)}function Mc(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(ah(r));if("constructor"===r||"__proto__"===r)throw new RangeError(oh(r));let t=e[r];if(void 0!==t)i=1,dd[r]&&(t=dd[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(rh(r));o[r]=ml[r]}a=r}if(r&&!i)throw new TypeError(ih(t));return o}function Ic(e,t){return ai(gd({...ml,...e}),t)}function Ec(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=Mc(t,i,a);const u=Mc(n,i);return s=e.mergeFields(s,u),Mc(s,i,[])}function Oc(e,t){const n=Tc(e,t,gl);return e.monthDayFromFields(n)}function Nc(e,t,n){const r=Tc(e,t,ll);return e.yearMonthFromFields(r,n)}function Cc(e,t,n,r,o){t=jo(n=e.fields(n),t),r=Mc(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Mc(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Hc(e,t){let{era:n,eraYear:r,year:o}=t;const a=yc(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(hh);if(!a)throw new RangeError(ch);const e=a[n];if(void 0===e)throw new RangeError(fh(n));const t=mc(r,e);if(void 0!==o&&o!==t)throw new RangeError(lh);o=t}else if(void 0===o)throw new TypeError(dh(a));return o}function Dc(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.U(n),[a,i]=fc(t);let s=dc(a,i,o);if(i){const t=Sc(e);if(void 0===t)throw new RangeError(vh);if(t>0){if(s>t)throw new RangeError(vh);if(void 0===o){if(1===r)throw new RangeError(vh);s--}}else{if(s!==-t)throw new RangeError(vh);if(void 0===o&&1===r)throw new RangeError(vh)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(mh);o=t,r=1}else if(void 0===o)throw new TypeError(yh);return Eo("month",o,1,e.L(n),r)}function _c(e,t,n,r,o){return Io(t,"day",1,e.j(r,n),o)}function kc(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 Lc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yl;return Ei(e.epochNanoseconds,t,n)}function Rc(e,t){return Oi(Bf(t,e))}function Yc(e,t){return Ni(Bf(t,e))}function Pc(e,t){return Di(Bf(t,e))}function jc(e,t){return{...e,calendar:t}}function Bc(e,t){if(e===t)return e;const n=Ri(e),r=Ri(t);if(n===r||n===yl)return t;if(r===yl)return e;throw new RangeError(wh)}function Fc(e,t){return n=>n===yl?e:n===Sl||n===vl?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),sd(n))}function Uc(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=Bo(r,o),e)||Object.assign(o,t),n&&(o.timeZone=Lf,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function xc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zc;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zd;for(var i=arguments.length,s=new Array(i>2?i-2:0),u=2;u<i;u++)s[u-2]=arguments[u];const c=t(r&&r(...s),o,a,n),h=c.resolvedOptions();return[c,...$c(e,h,s)]}}function Zc(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(Ph);n.timeZone=e}return new xl(t,n)}function $c(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==yl)&&e!==t)throw new RangeError(wh)})(Ri(e.calendar),t.calendar,o),r(e,t))))}function Vc(e){const t=zc();return Va(t,e.getOffsetNanosecondsFor(t))}function zc(){return Ea(Date.now(),zh)}function Kc(){return qd||(qd=(new xl).resolvedOptions().timeZone)}!function(){if(po)return Ue;po=1;var e=uo(),t=Kr().includes,n=Xe(),r=Mo();e({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();const Jc=(e,t)=>`Non-integer ${e}: ${t}`,Gc=(e,t)=>`Non-positive ${e}: ${t}`,Wc=(e,t)=>`Non-finite ${e}: ${t}`,qc=e=>`Cannot convert bigint to ${e}`,Xc=e=>`Invalid bigint: ${e}`,Qc="Cannot convert Symbol to string",eh="Invalid object",th=(e,t,n,r,o)=>o?th(e,o[t],o[n],o[r]):nh(e,t)+`; must be between ${n}-${r}`,nh=(e,t)=>`Invalid ${e}: ${t}`,rh=e=>`Missing ${e}`,oh=e=>`Invalid field ${e}`,ah=e=>`Duplicate field ${e}`,ih=e=>"No valid fields: "+e.join(),sh=(e,t,n)=>nh(e,t)+"; must be "+Object.keys(n).join(),uh="Invalid calling context",ch="Forbidden era/eraYear",hh="Mismatching era/eraYear",lh="Mismatching year/eraYear",fh=e=>`Invalid era: ${e}`,dh=e=>"Missing year"+(e?"/era/eraYear":""),gh=e=>`Invalid monthCode: ${e}`,mh="Mismatching month/monthCode",yh="Missing month/monthCode",Sh="Cannot guess year",vh="Invalid leap month",ph="Invalid protocol results",wh="Mismatching Calendars",Ah=e=>`Invalid Calendar: ${e}`,bh="Mismatching TimeZones",Th="Forbidden ICU TimeZone",Mh="Out-of-bounds offset",Ih="Out-of-bounds TimeZone gap",Eh="Invalid TimeZone offset",Oh="Ambiguous offset",Nh="Out-of-bounds date",Ch="Out-of-bounds duration",Hh="Cannot mix duration signs",Dh="Missing relativeTo",_h="Cannot use large units",kh="Required smallestUnit or largestUnit",Lh="smallestUnit > largestUnit",Rh=e=>`Cannot parse: ${e}`,Yh=e=>`Invalid substring: ${e}`,Ph="Cannot specify TimeZone",jh=Zo(Yo,((e,t)=>t)),Bh=Zo(Yo,((e,t,n)=>n)),Fh=Zo(zo,2),Uh={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},xh=Object.keys(Uh),Zh=864e5,$h=1e3,Vh=1e3,zh=1e6,Kh=1e9,Jh=6e10,Gh=36e11,Wh=864e11,qh=[1,Vh,zh,Kh,Jh,Gh,Wh],Xh=xh.slice(0,6),Qh=Vo(Xh),el=["offset"],tl=["timeZone"],nl=Xh.concat(el),rl=nl.concat(tl),ol=["era","eraYear"],al=ol.concat(["year"]),il=["year"],sl=["monthCode"],ul=["month"].concat(sl),cl=["day"],hl=ul.concat(il),ll=sl.concat(il),fl=cl.concat(hl),dl=cl.concat(ul),gl=cl.concat(sl),ml=Bh(Xh,0),yl="iso8601",Sl="gregory",vl="japanese",pl={[Sl]:{bce:-1,ce:0},[vl]:{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}},wl={chinese:13,dangi:13,hebrew:-6},Al=Zo(ca,"string"),bl=Zo(ca,"boolean"),Tl=Zo(ca,"number"),Ml=Zo(ca,"function"),Il=xh.map((e=>e+"s")),El=Vo(Il),Ol=Il.slice(0,6),Nl=Il.slice(6),Cl=Nl.slice(1),Hl=jh(Il),Dl=Bh(Il,0),_l=Bh(Ol,0),kl=Zo(xo,Il),Ll=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Rl=["isoDay","isoMonth","isoYear"],Yl=Ll.concat(Rl),Pl=Vo(Rl),jl=Vo(Ll),Bl=Vo(Yl),Fl=Bh(jl,0),Ul=Zo(xo,Yl),xl=Intl.DateTimeFormat,Zl="en-GB",$l=1e8,Vl=$l*Zh,zl=[$l,0],Kl=[-$l,0],Jl=275760,Gl=-271821,Wl=1970,ql=1972,Xl=12,Ql=Za(1868,9,8),ef=Co(ei,WeakMap),tf="smallestUnit",nf="unit",rf="roundingIncrement",of="fractionalSecondDigits",af="relativeTo",sf={constrain:0,reject:1},uf=Object.keys(sf),cf={compatible:0,reject:1,earlier:2,later:3},hf={reject:0,use:1,prefer:2,ignore:3},lf={auto:0,never:1,critical:2,always:3},ff={auto:0,never:1,critical:2},df={auto:0,never:1},gf={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},mf=Zo(bi,tf),yf=Zo(bi,"largestUnit"),Sf=Zo(bi,nf),vf=Zo(Ti,"overflow",sf),pf=Zo(Ti,"disambiguation",cf),wf=Zo(Ti,"offset",hf),Af=Zo(Ti,"calendarName",lf),bf=Zo(Ti,"timeZoneName",ff),Tf=Zo(Ti,"offset",df),Mf=Zo(Ti,"roundingMode",gf),If="PlainYearMonth",Ef="PlainMonthDay",Of="PlainDate",Nf="PlainDateTime",Cf="PlainTime",Hf="ZonedDateTime",Df="Instant",_f="Duration",kf=[Math.floor,e=>ea(e)?Math.floor(e):Math.round(e),Math.ceil,e=>ea(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>ea(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=>ea(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Lf="UTC",Rf=5184e3,Yf=xa(1847),Pf=xa((new Date).getUTCFullYear()+10),jf=/0+$/,Bf=Co(Ts,WeakMap),Ff=2**32-1,Uf=Co((e=>{const t=Iu(e);return"object"==typeof t?new Zf(t):new xf(t||0)}));class xf{constructor(e){this.v=e}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(e){return[Ua(e,this.v)]}l(){}}class Zf{constructor(e){this.$=(e=>{function t(e){const t=Jo(e,a,i),[s,u]=ou(t),c=r(s),h=r(u);return c===h?c:n(o(s,u),c,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=Co(e),o=Co(ru);let a=Yf,i=Pf;return{G(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]:[]},V:t,l(e,t){const s=Jo(e,a,i);let[u,c]=ou(s);const h=Rf*t,l=t<0?()=>c>a||(a=s,0):()=>u<i||(i=s,0);for(;l();){const a=r(u),i=r(c);if(a!==i){const r=o(u,c);n(r,a,i);const s=r[0];if((Ko(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=Ha(e,t*$h);return xa(Qu(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(Pa(e))*Kh}getPossibleInstantsFor(e){const[t,n]=[xa((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*zh+r.isoMicrosecond*Vh+r.isoNanosecond];var r;return this.$.G(t).map((e=>La(Aa(Ea(e,Kh),n))))}l(e,t){const[n,r]=ja(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return Ea(o,Kh)}}const $f="([+−-])",Vf="(?:[.,](\\d{1,9}))?",zf=`(?:(?:${$f}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Kf="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Vf+")?)?",Jf=$f+Kf,Gf=zf+"-?(\\d{2})(?:[T ]"+Kf+"(Z|"+Jf+")?)?",Wf="\\[(!?)([^\\]]*)\\]",qf=`((?:${Wf}){0,9})`,Xf=wu(zf+qf),Qf=wu("(?:--)?(\\d{2})-?(\\d{2})"+qf),ed=wu(Gf+qf),td=wu("T?"+Kf+"(?:"+Jf+")?"+qf),nd=wu(Jf),rd=new RegExp(Wf,"g"),od=wu(`${$f}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Vf}H)?(?:(\\d+)${Vf}M)?(?:(\\d+)${Vf}S)?)?`),ad=Co((e=>new xl(Zl,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),id=/^(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$/,sd=Co(Gu),ud=Co((e=>new xl(Zl,{calendar:e,timeZone:Lf,era:"short",year:"numeric",month:"short",day:"numeric"}))),cd=/^M(\d{2})(L?)$/,hd={era:da,eraYear:ya,year:ya,month:va,monthCode:da,day:va},ld=Bh(Xh,ya),fd=Bh(Il,Sa),dd=Object.assign({},hd,ld,fd,{offset:da}),gd=Zo(Po,Xh,Ll),md={dateAdd(e,t,n){const r=ii(n);let o,{years:a,months:i,weeks:s,days:u}=t;if(u+=Xs(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.h(t);if(n){const[t,r]=e.I(a,i);a+=n,i=dc(t,r,e.U(a)),i=Eo("month",i,1,e.L(a),o)}return r&&([a,i]=e._(a,i,r)),s=Eo("day",s,1,e.j(a,i),o),e.q(a,i,s)})(this,e,a,i,r);else{if(!s&&!u)return e;o=Ba(e)}return o+=(7*s+u)*Zh,_a(za(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=Vu({...e,...Fl},{...t,...Fl});return 7===n&&([r,o]=qo(o,7)),{...Dl,weeks:r,days:o}}const r=this.h(e),o=this.h(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,u=a-n,c=i-r;if(s||u){const h=Math.sign(s||u);let l=e.j(o,a),f=0;if(Math.sign(c)===-h){const r=l;[o,a]=e._(o,a,-h),s=o-t,u=a-n,l=e.j(o,a),f=h<0?-r:l}if(c=i-Math.min(r,l)+f,s){const[r,i]=e.I(t,n),[c,l]=e.I(o,a);if(u=c-r||Number(l)-Number(i),Math.sign(u)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,u=a-dc(r,i,e.U(o))+(n||e.L(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(i+=this.J(a,r[0]),a=0),{...Dl,years:a,months:i,days:s}},dateFromFields(e,t){const n=ii(t),r=Hc(this,e),o=Dc(this,e,r,n),a=_c(this,e,o,r,n);return Ni(_a(this.P(r,o,a)),this.id||yl)},yearMonthFromFields(e,t){const n=ii(t),r=Hc(this,e),o=Dc(this,e,r,n);return Ci(Da(this.P(r,o,1)),this.id||yl)},monthDayFromFields(e,t){const n=ii(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,u,c,h,l;if(void 0!==o){[s,u]=fc(o),l=Oo(e,"day");const t=this.N(s,u,l);if(!t)throw new RangeError(Sh);if([c,h]=t,void 0!==i&&i!==h)throw new RangeError(mh);r&&(h=Eo("month",h,1,Xl,1),l=Eo("day",l,1,Ga(void 0!==a?a:c,h),n))}else{c=void 0===a&&r?ql:Hc(this,e),h=Dc(this,e,c,n),l=_c(this,e,h,c,n);const t=this.U(c);u=h===t,s=gc(h,t);const o=this.N(s,u,l);if(!o)throw new RangeError(Sh);[c,h]=o}return Hi(_a(this.P(c,h,l)),this.id||yl)},fields(e){return yc(this)&&e.includes("year")?[...e,...ol]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return kc(n,t,ul),yc(this)&&(kc(n,t,al),this.id===vl&&kc(n,t,dl,ol)),n},inLeapYear(e){const[t]=this.h(e);return this.K(t)},monthsInYear(e){const[t]=this.h(e);return this.L(t)},daysInMonth(e){const[t,n]=this.h(e);return this.j(t,n)},daysInYear(e){const[t]=this.h(e);return this.X(t)},dayOfYear:lc,era(e){return this.ee(e)[0]},eraYear(e){return this.ee(e)[1]},monthCode(e){const[t,n]=this.h(e),[r,o]=this.I(t,n);return((e,t)=>"M"+Fh(e)+(t?"L":""))(r,o)},dayOfWeek:Xa,daysInWeek:()=>7},yd={dayOfYear:lc,h:Ka,q:Za},Sd=Object.assign({},yd,{weekOfYear:cc,yearOfWeek:hc,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Wa(f+e),r=e||1,o=t(Wo(u+n*r,7));return h=(n+(o-c)*r)/7}const r=this.id?1:4,o=Xa(e),a=this.dayOfYear(e),i=Wo(o-1,7),s=a-1,u=Wo(i-s,7),c=t(u);let h,l=Math.floor((s-c)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),vd={dayOfYear:lc,h:ec,q:tc,weekOfYear:cc,yearOfWeek:hc,R:()=>[]},pd=Fc(Object.assign({},md,Sd,{h:Ka,ee(e){return this.id===Sl?Qa(e):this.id===vl?ef(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[ql,e]},K:qa,U(){},L:Ja,J:e=>e*Xl,j:Ga,X:Wa,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:Za,_:(e,t,n)=>(e+=Xo(n,Xl),(t+=Qo(n,Xl))<1?(e--,t+=Xl):t>Xl&&(e++,t-=Xl),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},md,vd,{h:ec,ee(e){const t=this.O(e);return[t.era,t.eraYear]},I(e,t){const n=nc.call(this,e);return[gc(t,n),n===t]},N(e,t,n){let[r,o,a]=ec.call(this,{isoYear:ql,isoMonth:Xl,isoDay:31});const i=nc.call(this,r),s=o===i;1===(Ko(e,gc(o,i))||Ko(Number(t),Number(s))||Ko(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=nc.call(this,a),s=dc(e,t,i);if(t===(s===i)&&n<=oc.call(this,a,s))return[a,s]}},K(e){const t=rc.call(this,e);return t>rc.call(this,e-1)&&t>rc.call(this,e+1)},U:nc,L:ac,J(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+=ac.call(this,e+o);return a},j:oc,X:rc,P(e,t,n){return za(tc.call(this,e,t,n))},q:tc,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Nh);if(n<0)for(;t<1;)t+=ac.call(this,--e);else{let n;for(;t>(n=ac.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.O(e).year},month(e){const{year:t,F:n}=this.O(e),{C:r}=this.B(t);return r[n]+1},day(e){return this.O(e).day}})),wd="numeric",Ad=["timeZoneName"],bd={month:wd,day:wd},Td={year:wd,month:wd},Md=Object.assign({},Td,{day:wd}),Id={hour:wd,minute:wd,second:wd},Ed=Object.assign({},Md,Id),Od=Object.assign({},Ed,{timeZoneName:"short"}),Nd=Object.keys(Td),Cd=Object.keys(bd),Hd=Object.keys(Md),Dd=Object.keys(Id),_d=["dateStyle"],kd=Nd.concat(_d),Ld=Cd.concat(_d),Rd=Hd.concat(_d,["weekday"]),Yd=Dd.concat(["dayPeriod","timeStyle"]),Pd=Rd.concat(Yd),jd=Pd.concat(Ad),Bd=Ad.concat(Yd),Fd=Ad.concat(Rd),Ud=Ad.concat(["day","weekday"],Yd),xd=Ad.concat(["year","weekday"],Yd),Zd={},$d=[Uc(Pd,Ed),ki],Vd=[Uc(jd,Od),ki,0,(e,t)=>{const n=Ri(e.timeZone);if(t&&Ri(t.timeZone)!==n)throw new RangeError(bh);return n}],zd=[Uc(Pd,Ed,Ad),Ba],Kd=[Uc(Rd,Md,Bd),Ba],Jd=[Uc(Yd,Id,Fd),e=>Ra(e)/zh],Gd=[Uc(kd,Td,Ud),Ba,1],Wd=[Uc(Ld,bd,xd),Ba,1];let qd;function Xd(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(uh);Kg(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)}),Ho(t))}function s(t){const n=zg(t);if(!n||n.branding!==e)throw new TypeError(uh);return n}return Object.defineProperties(a.prototype,{..._o(Ro(i,n)),...Do(Ro(i,r)),...ko("Temporal."+e)}),Object.defineProperties(a,{...Do(o),...Ho(e)}),[a,e=>{const t=Object.create(a.prototype);return Kg(t,e),t},s]}function Qd(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 eg(e){if(zg(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function tg(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{o:o}=e;const a=zg(n)||{},{branding:i}=a,s=i===Of||t.includes(i)?a:Sg(n);return o[r](s)};return n}function ng(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?pd(r):(o=r,Object.assign(Object.create(Qg),{i:o})))[n](e);var r,o};return t}function rg(){throw new TypeError("Cannot use valueOf")}function og(e){let{calendar:t}=e;return"string"==typeof t?new qm(t):t}function ag(e,t){if(t=wi(t),No(e)){const n=zg(e);if(n&&n.branding===Ef)return ii(t),n;const r=Tg(e);return bc(Bm(r||yl),!r,e,t)}const n=function(e,t){const n=gu(Al(t));if(n)return su(n),Hi(ni(n));const r=iu(t),{calendar:o}=r,a=e(o),[i,s,u]=a.h(r),[c,h]=a.I(i,s),[l,f]=a.N(c,h,u);return Hi(_a(a.P(l,f,u)),o)}(pd,e);return ii(t),n}function ig(e,t,n){return Es(aa(t.call(e,hm(Ii(n)))))}function sg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sm;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Zo(t[o],e,Ml(e[o]));return r}function ug(e,t){return"string"==typeof e?Uf(e):sg(e,t)}function cg(e){return ug(e,um)}function hg(e){if(No(e)){const t=zg(e);if(t)switch(t.branding){case Df:return t;case Hf:return Ii(t.epochNanoseconds)}}return function(e){const t=fu(e=da(e));if(!t)throw new RangeError(Rh(e));let n;if(t.m)n=0;else{if(!t.offset)throw new RangeError(Rh(e));n=au(t.offset)}return t.timeZone&&mu(t.timeZone,1),Ii(Ua(ti(t),n))}(e)}function lg(e,t,n){const r=t.l(hg(n).epochNanoseconds,e);return r?hm(Ii(r)):null}function fg(e){return No(e)?(zg(e)||{}).timeZone||gm(e):(e=>Tu(function(e){const t=fu(e);return t&&(t.timeZone||t.m&&Lf||t.offset)||e}(Al(e))))(e)}function dg(e,t){if(No(e)){const n=zg(e)||{};switch(n.branding){case Cf:return ii(t),n;case Nf:return ii(t),Di(n);case Hf:return ii(t),Pc(cg,n)}return function(e,t){const n=ii(t);return Di(Ic(Mc(e,Qh,[],1),n))}(e,t)}return ii(t),function(e){let t,n=(e=>{const t=td.exec(e);return t?(vu(t[10]),Su(t)):void 0})(Al(e));if(!n){if(n=fu(e),!n)throw new RangeError(Rh(e));if(!n.p)throw new RangeError(Rh(e));if(n.m)throw new RangeError(Yh("Z"));su(n)}if((t=du(e))&&ri(t))throw new RangeError(Rh(e));if((t=gu(e))&&ri(t))throw new RangeError(Rh(e));return Di(ai(n,1))}(e)}function gg(e){return void 0===e?void 0:dg(e)}function mg(e,t){if(t=wi(t),No(e)){const n=zg(e);return n&&n.branding===If?(ii(t),n):Ac(Pm(bg(e)),e,t)}const n=function(e,t){const n=du(Al(t));if(n)return su(n),Ci(Da(ni(n)));const r=iu(t);return Ci(Ps(e(r.calendar),r))}(pd,e);return ii(t),n}function yg(e,t){if(t=wi(t),No(e)){const n=zg(e)||{};switch(n.branding){case Nf:return ii(t),n;case Of:return ii(t),Oi({...n,...Fl});case Hf:return ii(t),Rc(cg,n)}return function(e,t,n){const r=Tc(e,t,fl,[],Xh),o=ii(n);return Oi(ka({...e.dateFromFields(r,Ai(n,o)),...Ic(r,o)}))}(jm(bg(e)),e,t)}const n=function(e){const t=fu(Al(e));if(!t||t.m)throw new RangeError(Rh(e));return Oi(cu(t))}(e);return ii(t),n}function Sg(e,t){if(t=wi(t),No(e)){const n=zg(e)||{};switch(n.branding){case Of:return ii(t),n;case Nf:return ii(t),Ni(n);case Hf:return ii(t),Yc(cg,n)}return wc(jm(bg(e)),e,t)}const n=iu(e);return ii(t),n}function vg(e,t,n){return oa(t.call(e,Tm(Ni(n,e))))}function pg(e){return t=>"string"==typeof t?pd(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Zo(t[o],e,e[o]);return r})(t,e)}function wg(e){if(No(e)){const t=zg(e);return t&&t.branding===_f?t:function(e){const t=Mc(e,El);return _i(Ws({...Dl,...t}))}(e)}return function(e){const t=(e=>{const t=od.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=Go(o,qh[a])),void 0!==e){if(r)throw new RangeError(Yh(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Yh(e));return t})(e),n=1,t&&(o=pu(t)*(qh[a]/Kh),r=1)}return i+s}let n=0,r=0,o=0,a={...Lo(Il,[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)]),...na(o,2,Il)};if(!n)throw new RangeError(ih(Il));return Au(e[1])<0&&(a=Js(a)),a})(t):void 0})(Al(e));if(!t)throw new RangeError(Rh(e));return _i(Ws(t))}(e)}function Ag(e){if(void 0!==e){if(No(e)){const t=zg(e)||{};switch(t.branding){case Hf:case Of:return t;case Nf:return Ni(t)}const n=bg(e);return{...pc(fg,ug,jm(n),e),calendar:n}}return function(e){const t=fu(Al(e));if(!t)throw new RangeError(Rh(e));if(t.timeZone)return uu(t,t.offset?au(t.offset):void 0);if(t.m)throw new RangeError(Rh(e));return hu(t)}(e)}}function bg(e){return Tg(e)||yl}function Tg(e){const{calendar:t}=e;if(void 0!==t)return Mg(t)}function Mg(e){return No(e)?(zg(e)||{}).calendar||Xm(e):(e=>sc(function(e){const t=fu(e)||du(e)||gu(e);return t?t.calendar:e}(Al(e))))(e)}function Ig(e,t){if(t=wi(t),No(e)){const n=zg(e);if(n&&n.branding===Hf)return si(t),n;const r=bg(e);return function(e,t,n,r,o,a){const i=Tc(n,o,fl,tl,rl),s=e(i.timeZone),[u,c,h]=si(a),l=n.dateFromFields(i,Ai(a,u)),f=Ic(i,u);return Ei(Ms(t(s),{...l,...f},void 0!==i.offset?au(i.offset):void 0,c,h),s,r)}(fg,ug,jm(r),r,e,t)}return function(e,t){const n=fu(Al(e));if(!n||!n.timeZone)throw new RangeError(Rh(e));const{offset:r}=n,o=r?au(r):void 0,[,a,i]=si(t);return uu(n,o,a,i)}(e,t)}function Eg(e){return Ro((e=>t=>e(Og(t))),e)}function Og(e){return Bf(e,cg)}function Ng(){const e=xl.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(xl),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);oy.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new xl(e,t),r=n.resolvedOptions(),o=r.locale,a=jo(Object.keys(t),r),i=Co(Dg),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const u=r.map(((t,n)=>{const r=zg(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,...u):[n,...r]};return s.u=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Cg(e);"function"==typeof n.value?n.value="constructor"===e?r:o||Hg(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Cg(e){return function(){const t=oy.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function Hg(e){return function(){return oy.get(this).u[e](...arguments)}}function Dg(e){const t=_g[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return xc(t,Co(Zc))}const _g={Instant:$d,PlainDateTime:zd,PlainDate:Kd,PlainTime:Jd,PlainYearMonth:Gd,PlainMonthDay:Wd},kg=xc($d),Lg=xc(Vd),Rg=xc(zd),Yg=xc(Kd),Pg=xc(Jd),jg=xc(Gd),Bg=xc(Wd),Fg={era:function(e){if(void 0!==e)return Al(e)},eraYear:ra,year:aa,month:oa,daysInMonth:oa,daysInYear:oa,inLeapYear:bl,monthsInYear:oa},Ug={monthCode:Al},xg={day:oa},Zg={dayOfWeek:oa,dayOfYear:oa,weekOfYear:function(e){if(void 0!==e)return oa(e)},yearOfWeek:ra,daysInWeek:oa},$g=Object.assign({},Fg,Ug,xg,Zg),Vg=new WeakMap,zg=Vg.get.bind(Vg),Kg=Vg.set.bind(Vg),Jg={...tg(Fg,[If]),...tg(Zg,[]),...tg(Ug,[If,Ef]),...tg(xg,[Ef])},Gg=ng($g),Wg=ng({...Fg,...Ug}),qg=ng({...Ug,...xg}),Xg={calendarId:e=>Ri(e.calendar)},Qg=Ro(((e,t)=>function(n){const{i:r}=this;return e(r[t](Tm(Ni(n,r))))}),$g),em=Yo((e=>t=>t[e]),Il.concat("sign")),tm=Yo(((e,t)=>e=>e[Ll[t]]),Xh),nm={epochSeconds:function(e){return Pa(e.epochNanoseconds)},epochMilliseconds:ki,epochMicroseconds:function(e){return Oa(e.epochNanoseconds,Vh)},epochNanoseconds:function(e){return Oa(e.epochNanoseconds)}},rm=Zo(Bo,new Set(["branding"])),[om,am,im]=Xd(Ef,Zo((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:yl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ql;const a=ya(t),i=ya(n),s=e(r);return Hi(_a(ni({isoYear:ya(o),isoMonth:a,isoDay:i})),s)}),Mg),{...Xg,...qg},{getISOFields:rm,getCalendar:og,with(e,t,n){return am(function(e,t,n,r,o){const a=wi(o);return((e,t,n,r)=>{const o=Ec(e,t,n,fl);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(xm,e,this,eg(t),n))},equals:(e,t)=>function(e,t){return!Cu(e,t)&&Yi(e.calendar,t.calendar)}(e,ag(t)),toPlainDate(e,t){return Tm(function(e,t,n,r){return((e,t,n)=>Cc(e,t,gl,ua(n),il))(e(t.calendar),n,r)}(Um,e,this,t))},toLocaleString(e,t,n){const[r,o]=Bg(t,n,e);return r.format(o)},toString:ss,toJSON:e=>ss(e),valueOf:rg},{from:(e,t)=>am(ag(e,t))}),sm={getOffsetNanosecondsFor:ig,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,Am(Oi(n,yl)))].map((e=>lm(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Ta),Os(Na(ba(r[0],r[o-1])))),r}},um={getOffsetNanosecondsFor:ig},[cm,hm,lm]=Xd(Df,(function(e){return Ii(La(Ia(ga(e))))}),nm,{add:(e,t)=>hm(Ns(0,e,wg(t))),subtract:(e,t)=>hm(Ns(1,e,wg(t))),until:(e,t,n)=>Jm(_u(0,e,hg(t),n)),since:(e,t,n)=>Jm(_u(1,e,hg(t),n)),round:(e,t)=>hm(function(e,t){const[n,r,o]=hi(t,5,1);return Ii(Gi(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Eu(e,t)}(e,hg(t)),toZonedDateTime(e,t){const n=ua(t);return ey(Lc(e,fg(n.timeZone),Mg(n.calendar)))},toZonedDateTimeISO:(e,t)=>ey(Lc(e,fg(t))),toLocaleString(e,t,n){const[r,o]=kg(t,n,e);return r.format(o)},toString:(e,t)=>ns(fg,cg,e,t),toJSON:e=>ns(fg,cg,e),valueOf:rg},{from:e=>hm(hg(e)),fromEpochSeconds:e=>hm(function(e){return Ii(La(Ea(e,Kh)))}(e)),fromEpochMilliseconds:e=>hm(function(e){return Ii(La(Ea(e,zh)))}(e)),fromEpochMicroseconds:e=>hm(function(e){return Ii(La(Ia(ga(e),Vh)))}(e)),fromEpochNanoseconds:e=>hm(function(e){return Ii(La(Ia(ga(e))))}(e)),compare:(e,t)=>Eu(hg(e),hg(t))}),[fm,dm]=Xd("TimeZone",(e=>{const t=function(e){return Tu(Al(e))}(e);return{branding:"TimeZone",id:t,o:Uf(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{o:n}=e;return n.getPossibleInstantsFor(yg(t)).map((e=>hm(Ii(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(hg(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=hg(t).epochNanoseconds;return Ss(sg(this,um).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yl;const r=hg(t).epochNanoseconds,o=sg(this,um).getOffsetNanosecondsFor(r);return Am(Oi(Va(r,o),Mg(n)))},getInstantFor(e,t,n){const r=yg(t),o=ui(n),a=sg(this);return hm(Ii(Is(a,r,o)))},getNextTransition:(e,t)=>{let{o:n}=e;return lg(1,n,t)},getPreviousTransition:(e,t)=>{let{o:n}=e;return lg(-1,n,t)},equals(e,t){return!!Du(this,fg(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=fg(e);return"string"==typeof t?new fm(t):t}}),gm=Qd(Object.keys(sm)),[mm,ym]=Xd(Cf,(function(){return Di(ai(Ro(ya,Lo(Ll,[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))}),tm,{getISOFields:rm,with(e,t,n){return ym(function(e,t,n){return Di(((e,t,n)=>{const r=ii(n);return Ic({...jo(Qh,e),...Mc(t,Qh)},r)})(e,t,n))}(this,eg(t),n))},add:(e,t)=>ym(ks(0,e,wg(t))),subtract:(e,t)=>ym(ks(1,e,wg(t))),until:(e,t,n)=>Jm(ju(0,e,dg(t),n)),since:(e,t,n)=>Jm(ju(1,e,dg(t),n)),round:(e,t)=>ym(function(e,t){const[n,r,o]=hi(t,5);var a;return Di((a=o,xi(e,$i(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Hu(e,t)}(e,dg(t)),toZonedDateTime:(e,t)=>ey(function(e,t,n,r,o){const a=ua(o),i=t(a.plainDate),s=e(a.timeZone);return Ei(Is(n(s),{...i,...r}),s,i.calendar)}(fg,Sg,ug,e,t)),toPlainDateTime:(e,t)=>Am(function(e,t){return Oi(ka({...e,...t}))}(e,Sg(t))),toLocaleString(e,t,n){const[r,o]=Pg(t,n,e);return r.format(o)},toString:us,toJSON:e=>us(e),valueOf:rg},{from:(e,t)=>ym(dg(e,t)),compare:(e,t)=>Hu(dg(e),dg(t))}),[Sm,vm,pm]=Xd(If,Zo((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:yl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=ya(t),i=ya(n),s=e(r);return Ci(Da(ni({isoYear:a,isoMonth:i,isoDay:ya(o)})),s)}),Mg),{...Xg,...Wg},{getISOFields:rm,getCalendar:og,with(e,t,n){return vm(function(e,t,n,r,o){const a=wi(o);return Ci(((e,t,n,r)=>{const o=Ec(e,t,n,hl);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(Fm,e,this,eg(t),n))},add:(e,t,n)=>vm(_s(Vm,0,e,wg(t),n)),subtract:(e,t,n)=>vm(_s(Vm,1,e,wg(t),n)),until:(e,t,n)=>Jm(Yu(zm,0,e,mg(t),n)),since:(e,t,n)=>Jm(Yu(zm,1,e,mg(t),n)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&Yi(e.calendar,t.calendar)}(e,mg(t)),toPlainDate(e,t){return Tm(function(e,t,n,r){return((e,t,n)=>Cc(e,t,ll,ua(n),cl))(e(t.calendar),n,r)}(Um,e,this,t))},toLocaleString(e,t,n){const[r,o]=jg(t,n,e);return r.format(o)},toString:is,toJSON:e=>is(e),valueOf:rg},{from:(e,t)=>vm(mg(e,t)),compare:(e,t)=>Cu(mg(e),mg(t))}),[wm,Am]=Xd(Nf,Zo((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:yl;return Oi(ka(ti(Ro(ya,Lo(Yl,[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))}),Mg),{...Xg,...Gg,...tm},{getISOFields:rm,getCalendar:og,with(e,t,n){return Am(function(e,t,n,r,o){const a=wi(o);return Oi(((e,t,n,r)=>{const o=Ec(e,t,n,fl,Xh),a=ii(r);return ka({...e.dateFromFields(o,Ai(r,a)),...Ic(o,a)})})(e(t.calendar),n,r,a))}(Um,e,this,eg(t),n))},withCalendar:(e,t)=>Am(jc(e,Mg(t))),withPlainDate:(e,t)=>Am(function(e,t){return Oi({...e,...t},Bc(e.calendar,t.calendar))}(e,Sg(t))),withPlainTime:(e,t)=>Am(function(e){return Oi({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fl})}(e,gg(t))),add:(e,t,n)=>Am(Hs(Zm,0,e,wg(t),n)),subtract:(e,t,n)=>Am(Hs(Zm,1,e,wg(t),n)),until:(e,t,n)=>Jm(Lu($m,0,e,yg(t),n)),since:(e,t,n)=>Jm(Lu($m,1,e,yg(t),n)),round:(e,t)=>Am(function(e,t){return Oi(Fi(e,...hi(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Nu(e,t)&&Yi(e.calendar,t.calendar)}(e,yg(t)),toZonedDateTime:(e,t,n)=>ey(function(e,t,n,r){const o=((e,t,n,r)=>{const o=ui(r);return Is(e(t),n,o)})(e,n,t,r);return Ei(La(o),n,t.calendar)}(ug,e,fg(t),n)),toPlainDate:e=>Tm(Ni(e)),toPlainTime:e=>ym(Di(e)),toPlainYearMonth(e){return vm(function(e,t,n){const r=e(t.calendar);return Ci({...t,...Nc(r,n)})}(Pm,e,this))},toPlainMonthDay(e){return am(function(e,t,n){return Oc(e(t.calendar),n)}(Bm,e,this))},toLocaleString(e,t,n){const[r,o]=Rg(t,n,e);return r.format(o)},toString:os,toJSON:e=>os(e),valueOf:rg},{from:(e,t)=>Am(yg(e,t)),compare:(e,t)=>Nu(yg(e),yg(t))}),[bm,Tm,Mm]=Xd(Of,Zo((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:yl;return Ni(_a(ni(Ro(ya,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Mg),{...Xg,...Gg},{getISOFields:rm,getCalendar:og,with(e,t,n){return Tm(function(e,t,n,r,o){const a=wi(o);return((e,t,n,r)=>{const o=Ec(e,t,n,fl);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(Um,e,this,eg(t),n))},withCalendar:(e,t)=>Tm(jc(e,Mg(t))),add:(e,t,n)=>Tm(Ds(Zm,0,e,wg(t),n)),subtract:(e,t,n)=>Tm(Ds(Zm,1,e,wg(t),n)),until:(e,t,n)=>Jm(Ru($m,0,e,Sg(t),n)),since:(e,t,n)=>Jm(Ru($m,1,e,Sg(t),n)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&Yi(e.calendar,t.calendar)}(e,Sg(t)),toZonedDateTime(e,t){const n=!No(t)||t instanceof fm?{timeZone:t}:t;return ey(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):Fl;return Ei(Is(n(a),{...r,...s}),a,r.calendar)}(fg,dg,ug,e,n))},toPlainDateTime:(e,t)=>Am(function(e){return Oi(ka({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fl}))}(e,gg(t))),toPlainYearMonth(e){return vm(function(e,t,n){return Nc(e(t.calendar),n)}(Pm,e,this))},toPlainMonthDay(e){return am(function(e,t,n){return Oc(e(t.calendar),n)}(Bm,e,this))},toLocaleString(e,t,n){const[r,o]=Yg(t,n,e);return r.format(o)},toString:as,toJSON:e=>as(e),valueOf:rg},{from:(e,t)=>Tm(Sg(e,t)),compare:(e,t)=>Cu(Sg(e),Sg(t))}),Im={fields:(e,t,n)=>[...t.call(e,n)]},Em=Object.assign({dateFromFields:(e,t,n,r)=>Mm(t.call(e,Object.assign(Object.create(null),n),r))},Im),Om=Object.assign({yearMonthFromFields:(e,t,n,r)=>pm(t.call(e,Object.assign(Object.create(null),n),r))},Im),Nm=Object.assign({monthDayFromFields:(e,t,n,r)=>im(t.call(e,Object.assign(Object.create(null),n),r))},Im),Cm={mergeFields:(e,t,n,r)=>ua(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},Hm=Object.assign({},Em,Cm),Dm=Object.assign({},Om,Cm),_m=Object.assign({},Nm,Cm),km={dateAdd:(e,t,n,r,o)=>Mm(t.call(e,Tm(Ni(n,e)),Jm(_i(r)),o))},Lm=Object.assign({},km,{dateUntil:(e,t,n,r,o,a)=>Gm(t.call(e,Tm(Ni(n,e)),Tm(Ni(r,e)),Object.assign(Object.create(null),a,{largestUnit:xh[o]})))}),Rm=Object.assign({},km,{day:vg}),Ym=Object.assign({},Lm,{day:vg}),Pm=pg(Om),jm=pg(Em),Bm=pg(Nm),Fm=pg(Dm),Um=pg(Hm),xm=pg(_m),Zm=pg(km),$m=pg(Lm),Vm=pg(Rm),zm=pg(Ym),[Km,Jm,Gm]=Xd(_f,(function(){return _i(Ws(Ro(Sa,Lo(Il,[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]))))}),{...em,blank:function(e){return!e.sign}},{with:(e,t)=>Jm(function(e,t){return _i((n=e,r=t,Ws({...n,...Mc(r,El)})));var n,r}(e,t)),negated:e=>Jm(Ks(e)),abs:e=>Jm(function(e){return-1===e.sign?Ks(e):e}(e)),add:(e,t,n)=>Jm(zs(Ag,$m,ug,0,e,wg(t),n)),subtract:(e,t,n)=>Jm(zs(Ag,$m,ug,1,e,wg(t),n)),round:(e,t)=>Jm(function(e,t,n,r,o){const a=nu(r),[i,s,u,c,h]=((e,t,n)=>{e=pi(e,tf);let r=yf(e);const o=n(e[af]);let a=mi(e);const i=Mf(e,7);let s=mf(e);if(void 0===r&&void 0===s)throw new RangeError(kh);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Mi(r,s),a=yi(a,s,1),[r,s,a,i,o]})(o,a,e),l=Math.max(a,i);if(!$s(h)&&l<=6)return _i(Ws(((e,t,n,r,o)=>{const a=Gi(Xs(e),n,r,o);return{...Dl,...Qs(a,t)}})(r,i,s,u,c)));if(!h)throw new RangeError(Dh);const[f,d,g]=Fs(t,n,h),m=Us(g),y=xs(g),S=Zs(g),v=y(d,f,r);let p=S(d,f,v,i);const w=r.sign,A=Gs(p);if(w&&A&&w!==A)throw new RangeError(ph);return A&&(p=Ji(p,m(v),i,s,u,c,d,f,m,y)),_i(p)}(Ag,$m,ug,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=nu(r),[i,s]=((e,t)=>{const n=t((e=pi(e,nf))[af]);let r=Sf(e);return r=sa(nf,r),[r,n]})(o,e);if(Vs(Math.max(i,a),s))return Pi(r,i);if(!s)throw new RangeError(Dh);const[u,c,h]=Fs(t,n,s),l=Us(h),f=xs(h),d=Zs(h),g=f(c,u,r),m=d(c,u,g,i);return Vs(i,s)?Pi(m,i):((e,t,n,r,o,a,i)=>{const s=Gs(e),[u,c]=ji(r,kl(n,e),n,s,o,a,i),h=Bi(t,u,c);return e[Il[n]]+h*s})(m,l(g),i,c,u,l,f)}(Ag,$m,ug,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):cs(e)},toString:cs,toJSON:e=>cs(e),valueOf:rg},{from:e=>Jm(wg(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(vi(a).relativeTo),s=Math.max(nu(r),nu(o));if(Uo(Il,r,o))return 0;if(Vs(s,i))return Ta(Xs(r),Xs(o));if(!i)throw new RangeError(Dh);const[u,c,h]=Fs(t,n,i),l=Us(h),f=xs(h);return Ta(l(f(c,u,r)),l(f(c,u,o)))}(Ag,Zm,ug,wg(e),wg(t),n)}),Wm={toString:e=>e.id,toJSON:e=>e.id,...Jg,dateAdd:(e,t,n,r)=>{let{id:o,o:a}=e;return Tm(Ni(a.dateAdd(Sg(t),wg(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return Jm(_i(o.dateUntil(Sg(t),Sg(n),function(e){return e=vi(e),yf(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Tm(wc(o,t,n,function(e){return e===yl?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return vm(Ac(o,t,n,function(e){return e===yl?il:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return am(bc(o,0,t,n,function(e){return e===yl?cl:[]}(r)))},fields(e,t){let{o:n}=e;const r=new Set(fl),o=[];for(const e of t){if(Al(e),!r.has(e))throw new RangeError(oh(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(Fo(ia(t)),Fo(ia(n)))}},[qm]=Xd("Calendar",(e=>{const t=function(e){return sc(Al(e))}(e);return{branding:"Calendar",id:t,o:pd(t)}}),{id:e=>e.id},Wm,{from(e){const t=Mg(e);return"string"==typeof t?new qm(t):t}}),Xm=Qd(Object.keys(Wm).slice(4)),[Qm,ey]=Xd(Hf,Zo((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:yl;return Ei(La(Ia(ga(n))),t(r),e(o))}),Mg,fg),{...nm,...Xg,...Eg(Gg),...Eg(tm),offset:e=>Ss(Og(e).offsetNanoseconds),offsetNanoseconds:e=>Og(e).offsetNanoseconds,timeZoneId:e=>Ri(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Bf(t,n),[o,a]=Vi(r),i=Na(ba(Is(n,o),Is(n,a)),Gh,1);if(i<=0)throw new RangeError(ph);return i}(ug,e)},{getISOFields:e=>function(e,t){const n=Bf(t,e);return{calendar:t.calendar,...jo(Bl,n),offset:Ss(n.offsetNanoseconds),timeZone:t.timeZone}}(cg,e),getCalendar:og,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new fm(t):t},with(e,t,n){return ey(function(e,t,n,r,o,a){const i=wi(a),{calendar:s,timeZone:u}=n;return Ei(((e,t,n,r,o)=>{const a=Ec(e,n,r,fl,nl,el),[i,s,u]=si(o,2);return Ms(t,{...e.dateFromFields(a,Ai(o,i)),...Ic(a,i)},au(a.offset),s,u)})(e(s),t(u),r,o,i),u,s)}(Um,ug,e,this,eg(t),n))},withCalendar:(e,t)=>ey(jc(e,Mg(t))),withTimeZone:(e,t)=>ey(function(e,t){return{...e,timeZone:t}}(e,fg(t))),withPlainDate:(e,t)=>ey(function(e,t,n){const r=t.timeZone,o=e(r),a={...Bf(t,o),...n},i=Bc(t.calendar,n.calendar);return Ei(Ms(o,a,a.offsetNanoseconds,2),r,i)}(ug,e,Sg(t))),withPlainTime:(e,t)=>ey(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fl;const r=t.timeZone,o=e(r),a={...Bf(t,o),...n};return Ei(Ms(o,a,a.offsetNanoseconds,2),r,t.calendar)}(ug,e,gg(t))),add:(e,t,n)=>ey(Cs(Zm,ug,0,e,wg(t),n)),subtract:(e,t,n)=>ey(Cs(Zm,ug,1,e,wg(t),n)),until:(e,t,n)=>Jm(_i(ku($m,ug,0,e,Ig(t),n))),since:(e,t,n)=>Jm(_i(ku($m,ug,1,e,Ig(t),n))),round:(e,t)=>ey(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,u]=hi(n);if(0===i&&1===s)return t;const c=e(o);if(6===i)r=((e,t,n,r)=>{const o=Bf(n,t),[a,i]=e(o),s=n.epochNanoseconds,u=Is(t,a),c=Is(t,i);if(Ma(s,u,c))throw new RangeError(ph);return Xi(Bi(s,u,c),r)?c:u})(Vi,c,t,u);else{const e=c.getOffsetNanosecondsFor(r);r=Ms(c,Fi(Va(r,e),i,s,u),e,2,0,1)}return Ei(r,o,a)}(ug,e,t)),startOfDay:e=>ey(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Is(t,e(Bf(n,t))))(zi,e(n),t);return Ei(o,n,r)}(ug,e)),equals:(e,t)=>function(e,t){return!Ou(e,t)&&!!Du(e.timeZone,t.timeZone)&&Yi(e.calendar,t.calendar)}(e,Ig(t)),toInstant:e=>hm(function(e){return Ii(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Am(Rc(cg,e)),toPlainDate:e=>Tm(Yc(cg,e)),toPlainTime:e=>ym(Pc(cg,e)),toPlainYearMonth(e){return vm(function(e,t,n){return Nc(e(t.calendar),n)}(Pm,e,this))},toPlainMonthDay(e){return am(function(e,t,n){return Oc(e(t.calendar),n)}(Bm,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Lg(t,n,e);return r.format(o)},toString:(e,t)=>rs(cg,e,t),toJSON:e=>rs(cg,e),valueOf:rg},{from:(e,t)=>ey(Ig(e,t)),compare:(e,t)=>Ou(Ig(e),Ig(t))}),ty=Object.defineProperties({},{...ko("Temporal.Now"),...Do({timeZoneId:()=>Kc(),instant:()=>hm(Ii(zc())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kc();return ey(Ei(zc(),fg(t),Mg(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kc();return ey(Ei(zc(),fg(e),yl))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kc();return Am(Oi(Vc(cg(fg(t))),Mg(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kc();return Am(Oi(Vc(cg(fg(e))),yl))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kc();return Tm(Ni(Vc(cg(fg(t))),Mg(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kc();return Tm(Ni(Vc(cg(fg(e))),yl))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kc();return ym(Di(Vc(cg(fg(e)))))}})}),ny=Object.defineProperties({},{...ko("Temporal"),...Do({PlainYearMonth:Sm,PlainMonthDay:om,PlainDate:bm,PlainTime:mm,PlainDateTime:wm,ZonedDateTime:Qm,Instant:cm,Calendar:qm,TimeZone:fm,Duration:Km,Now:ty})}),ry=Ng(),oy=new WeakMap;function ay(e){return e*Math.PI/180}function iy(e){return 180*e/Math.PI}Object.create(Intl),Do({DateTimeFormat:ry});class sy{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 uy=6356.9;class cy{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(cy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(cy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(cy.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(cy.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(cy.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(cy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(cy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(cy.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(cy.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(cy.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 iy(Math.acos(uy/(uy+e/1e3)))}adjustZenith(e,t){let n=e;return e===cy.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=cy.getSunriseUTC(cy.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=cy.getSunsetUTC(cy.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 cy.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 ny.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-cy.JULIAN_DAY_JAN_1_2000)/cy.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*cy.JULIAN_DAYS_PER_CENTURY+cy.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=ay(cy.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 cy.getSunGeometricMeanLongitude(e)+cy.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return cy.getSunTrueLongitude(e)-.00569-.00478*Math.sin(ay(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 cy.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(ay(t))}static getSunDeclination(e){const t=cy.getObliquityCorrection(e),n=cy.getSunApparentLongitude(e),r=Math.sin(ay(t))*Math.sin(ay(n));return iy(Math.asin(r))}static getEquationOfTime(e){const t=cy.getObliquityCorrection(e),n=cy.getSunGeometricMeanLongitude(e),r=cy.getEarthOrbitEccentricity(e),o=cy.getSunGeometricMeanAnomaly(e);let a=Math.tan(ay(t)/2);a*=a;const i=Math.sin(2*ay(n)),s=Math.sin(ay(o));return 4*iy(a*i-2*r*s+4*r*a*s*Math.cos(2*ay(n))-.5*a*a*Math.sin(4*ay(n))-1.25*r*r*Math.sin(2*ay(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=ay(e),o=ay(t);return Math.acos(Math.cos(ay(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=ay(e),o=ay(t);return-Math.acos(Math.cos(ay(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=cy.getJulianDay(e.toPlainDate()),o=cy.getJulianCenturiesFromJulianDay(r),a=cy.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=ay(n-i),u=ay(cy.getSunDeclination(o)),c=ay(t);return iy(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=cy.getJulianDay(e.toPlainDate()),o=cy.getJulianCenturiesFromJulianDay(r),a=cy.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=ay(n-i),u=ay(cy.getSunDeclination(o)),c=ay(t);return iy(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=cy.getJulianCenturiesFromJulianDay(e),a=cy.getSolarNoonUTC(o,n),i=cy.getJulianCenturiesFromJulianDay(e+a/1440);let s=cy.getEquationOfTime(i),u=cy.getSunDeclination(i),c=cy.getSunHourAngleAtSunrise(t,u,r),h=n-iy(c),l=4*h,f=720+l-s;const d=cy.getJulianCenturiesFromJulianDay(cy.getJulianDayFromJulianCenturies(o)+f/1440);return s=cy.getEquationOfTime(d),u=cy.getSunDeclination(d),c=cy.getSunHourAngleAtSunrise(t,u,r),h=n-iy(c),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=cy.getJulianCenturiesFromJulianDay(cy.getJulianDayFromJulianCenturies(e)+t/360);let r=cy.getEquationOfTime(n);const o=720+4*t-r,a=cy.getJulianCenturiesFromJulianDay(cy.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=cy.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=cy.getJulianCenturiesFromJulianDay(e),a=cy.getSolarNoonUTC(o,n),i=cy.getJulianCenturiesFromJulianDay(e+a/1440);let s=cy.getEquationOfTime(i),u=cy.getSunDeclination(i),c=cy.getSunHourAngleAtSunset(t,u,r),h=n-iy(c),l=4*h,f=720+l-s;const d=cy.getJulianCenturiesFromJulianDay(cy.getJulianDayFromJulianCenturies(o)+f/1440);return s=cy.getEquationOfTime(d),u=cy.getSunDeclination(d),c=cy.getSunHourAngleAtSunset(t,u,r),h=n-iy(c),l=4*h,f=720+l-s,f}}cy.GEOMETRIC_ZENITH=90,cy.CIVIL_ZENITH=96,cy.NAUTICAL_ZENITH=102,cy.ASTRONOMICAL_ZENITH=108,cy.JULIAN_DAY_JAN_1_2000=2451545,cy.JULIAN_DAYS_PER_CENTURY=36525;const hy=[["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]],ly=new Map,fy={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"},dy=new Map;class gy extends sy{constructor(e,t,n,r,o,a,i,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o||null,u,c,"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=dy.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return dy.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return ly.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 fy[String(-1*e)]}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":fy[t]}static addLocation(e,t){const n=e.toLowerCase();return!ly.has(n)&&(ly.set(n,t),!0)}}for(const e of hy){const t=new gy(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);gy.addLocation(e[0],t)}function my(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,Do({Temporal:ny})),Object.defineProperties(Intl,Do({DateTimeFormat:ry})),Object.defineProperties(Date.prototype,Do({toTemporalInstant:function(){return hm(Ii(Ea(this.valueOf(),zh)))}}));class yy{constructor(e,t,n){const r=function(e){if(s(e))return e;if(Ie.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new cy(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return my(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return my(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return my(this.noaa.getSeaLevelSunrise())}sunset(){return my(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return my(this.noaa.getSeaLevelSunset())}dawn(){return my(this.noaa.getBeginCivilTwilight())}dusk(){return my(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new yy(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 my(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 my(cy.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=8.5){return this.timeAtAngle(e,!1)}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=ae("UTC",t),r=ae(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?"+":"-")+ne(Math.floor(r/60))+":"+ne(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":ae(e,t).substring(0,19)+yy.timeZoneOffset(e,t)}sunriseOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}sunsetOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}static makeSunsetAwareHDate(e,t,n){const r=new yy(e,t,n).sunset();let o=new Ie(t);const a=r.getTime();return isNaN(a)||t.getTime()>=a&&(o=o.next()),o}}const Sy={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 vy(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.getCountryCode())||((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===Sy[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 py extends Ye{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=yy.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=yy.formatTime(this.eventTime,s);const u=Object.assign(Object.assign({},i),{location:o});this.fmtTime=vy(this.eventTimeStr,"pm",u),void 0!==a&&(this.linkedEvent=a)}render(e){return Se.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return Se.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 wy extends py{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}class Ay extends py{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=Se.gettext(this.getDesc(),e);if(this.havdalahMins){const n=Se.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const by=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ty=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],My="בַּלַּ֥יְלָה";class Iy{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=A(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 Ie.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){var n;"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=Se.gettext(this.getMonthName(),e),a=(r?Ty:by)[this.getDow()],i=this.getMinutes(),s=this.getHour(),u=this.getChalakim(),c=Se.gettext("Molad",e),h=null!==(n=Se.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=Se.gettext("chalakim",e);if(r){const t=function(e){return e<5?My:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":My}(s),n=`${c} ${o} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${i} ${h} ו-${u} ${l}`;return"he-x-nonikud"===e?Se.hebrewStripNikkud(n):n}const f=vy(`${s}:00`,"pm",t);return`${c} ${o.replace(/'/g,"’")}: ${a}, ${i} ${h} and ${u} ${l} after ${f}`}}class Ey extends Ye{constructor(e,t,n,r){const o=new Iy(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Le.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class Oy extends Ye{constructor(e,t){if(super(e,`Omer ${t}`,Le.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){Z(e);const[n,r]=$(e),o=x[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:Se.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?F(n):Se.ordinal(n,e))+" "+Se.gettext("day of the Omer",e)}renderBrief(e){return Se.gettext("Omer",e)+" "+Se.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:function(e){let t;return Z(e),t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}(this.omer)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=V(this.omer,t);return"he-x-nonikud"===e?Se.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class Ny extends Map{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.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=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.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class Cy{constructor(e,t){e=+e,this.year=e;const n=new Ie(1,l.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=Ie.dayOnOrBefore(6,r+6);const a=+Ie.isLeapYear(e);this.il=Boolean(t);const i=function(e){const t=Ie.longCheshvan(e),n=Ie.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${a}${o}${i}`;if(Wy[s]||(s+=+this.il),this.theSedraArray=Wy[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||Se.getLocaleName();let o=Se.gettext(n[0],r);if(2===n.length){o+=("he"===r?"־":"-")+Se.gettext(n[1],r)}return o=o.replace(/'/g,"’"),Se.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=Hy.length||e<0&&!_y(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ie(this.firstSaturday+7*t)}if("string"==typeof e){const t=Dy.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ie(this.firstSaturday+7*t)}}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=Dy.get(n),a=Dy.get(r);if("number"!=typeof o||"number"!=typeof a||a!==o+1||!_y(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Ie.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Ie.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Xy(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Hy[o]],chag:!1,num:o+1};const a=ky(o);return{parsha:[Hy[a],Hy[a+1]],chag:!1,num:[a+1,a+2]}}}const Hy=["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"],Dy=new Map;for(let e=0;e<Hy.length;e++){const t=Hy[e];Dy.set(t,e)}function _y(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}function ky(e){return-e}const Ly="Sukkot Shabbat Chol ha-Moed",Ry="Pesach",Yy="Pesach I",Py="Pesach Shabbat Chol ha-Moed",jy="Pesach VII",By="Pesach VIII",Fy="Shavuot";function Uy(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const xy=[51,52,Ly],Zy=[52,"Yom Kippur",Ly],$y=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Vy=Uy(0,20),zy=Uy(0,27),Ky=Uy(33,40),Jy=Uy(43,49),Gy=Uy(43,50),Wy={"020":xy.concat(Vy,ky(21),23,24,Ry,25,ky(26),ky(28),30,ky(31),Ky,ky(41),Jy,ky(50)),"0220":xy.concat(Vy,ky(21),23,24,Ry,25,ky(26),ky(28),30,ky(31),33,Fy,Uy(34,37),ky(38),40,ky(41),Jy,ky(50)),"0510":Zy.concat(Vy,ky(21),23,24,Yy,By,25,ky(26),ky(28),30,ky(31),Ky,ky(41),Gy),"0511":Zy.concat(Vy,ky(21),23,24,Ry,25,ky(26),ky(28),Uy(30,40),ky(41),Gy),"052":Zy.concat(Uy(0,24),jy,25,ky(26),ky(28),30,ky(31),Ky,ky(41),Gy),"070":$y.concat(Vy,ky(21),23,24,jy,25,ky(26),ky(28),30,ky(31),Ky,ky(41),Gy),"072":$y.concat(Vy,ky(21),23,24,Py,25,ky(26),ky(28),30,ky(31),Ky,ky(41),Jy,ky(50)),1200:xy.concat(zy,Py,Uy(28,33),Fy,Uy(34,37),ky(38),40,ky(41),Jy,ky(50)),1201:xy.concat(zy,Py,Uy(28,40),ky(41),Jy,ky(50)),1220:xy.concat(zy,Yy,By,Uy(28,40),ky(41),Gy),1221:xy.concat(zy,Ry,Uy(28,50)),150:Zy.concat(Uy(0,28),jy,Uy(29,50)),152:Zy.concat(Uy(0,28),Py,Uy(29,49),ky(50)),170:$y.concat(zy,Py,Uy(28,40),ky(41),Jy,ky(50)),1720:$y.concat(zy,Py,Uy(28,33),Fy,Uy(34,37),ky(38),40,ky(41),Jy,ky(50))};Wy["0221"]=Wy["020"],Wy["0310"]=Wy["0220"],Wy["0311"]=Wy["020"],Wy[1310]=Wy[1220],Wy[1311]=Wy[1221],Wy[1721]=Wy[170];const qy=new Ny({maxSize:400});function Xy(e,t){const n=`${e}-${t?1:0}`;let r=qy.get(n);return r||(r=new Cy(e,t),qy.set(n,r)),r}class Qy extends Ye{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("-"),Le.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=null!=e?e:Se.getLocaleName(),n=this.parsha;let r=Se.gettext(n[0],e);if(2===n.length){r+=("he"===t?"־":"-")+Se.gettext(n[1],e)}r=r.replace(/'/g,"’");return(Se.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 ie(this.getDate().greg()).replace(/-/g,"")}}const eS=l.NISAN,tS=l.IYYAR,nS=l.SIVAN,rS=l.ELUL,oS=l.TISHREI,aS=l.CHESHVAN,iS=l.KISLEV,sS=l.SHVAT,uS=l.ADAR_II,cS=Le.CHAG,hS=Le.LIGHT_CANDLES,lS=Le.YOM_TOV_ENDS,fS=Le.CHUL_ONLY,dS=Le.IL_ONLY,gS=Le.LIGHT_CANDLES_TZEIS,mS=Le.MINOR_HOLIDAY,yS=Le.EREV,SS=Le.CHOL_HAMOED,vS="🫓",pS="🌿🍋",wS="Rosh Hashana II",AS="Erev Yom Kippur",bS="Yom Kippur",TS="Erev Sukkot",MS="Sukkot I",IS="Sukkot II",ES="Sukkot III (CH''M)",OS="Sukkot IV (CH''M)",NS="Sukkot V (CH''M)",CS="Sukkot VI (CH''M)",HS="Shmini Atzeret",DS="Simchat Torah",_S="Sukkot II (CH''M)",kS="Sukkot VII (Hoshana Raba)",LS="Chanukah: 1 Candle",RS="Tu BiShvat",YS="Erev Purim",PS="Purim",jS="Shushan Purim",BS="Erev Pesach",FS="Pesach I",US="Pesach II",xS="Pesach II (CH''M)",ZS="Pesach III (CH''M)",$S="Pesach IV (CH''M)",VS="Pesach V (CH''M)",zS="Pesach VI (CH''M)",KS="Pesach VII",JS="Pesach VIII",GS="Pesach Sheni",WS="Lag BaOmer",qS="Erev Shavuot",XS="Shavuot",QS="Shavuot I",ev="Shavuot II",tv="Tu B'Av",nv="Rosh Hashana LaBehemot",rv="Erev Rosh Hashana",ov="Yom Yerushalayim",av="Ben-Gurion Day",iv="Family Day",sv="Yitzhak Rabin Memorial Day",uv="Herzl Day",cv="Jabotinsky Day",hv="Sigd",lv="Yom HaAliyah",fv="Yom HaAliyah School Observance",dv="Hebrew Language Day",gv={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:av,CHANUKAH_1_CANDLE:LS,EREV_PESACH:BS,EREV_PURIM:YS,EREV_ROSH_HASHANA:rv,EREV_SHAVUOT:qS,EREV_SUKKOT:TS,EREV_YOM_KIPPUR:AS,FAMILY_DAY:iv,HEBREW_LANGUAGE_DAY:dv,HERZL_DAY:uv,JABOTINSKY_DAY:cv,LAG_BAOMER:WS,PESACH_I:FS,PESACH_II:US,PESACH_III_CHM:ZS,PESACH_II_CHM:xS,PESACH_IV_CHM:$S,PESACH_SHENI:GS,PESACH_VII:KS,PESACH_VIII:JS,PESACH_VI_CHM:zS,PESACH_V_CHM:VS,PURIM:PS,ROSH_HASHANA_II:wS,ROSH_HASHANA_LABEHEMOT:nv,SHAVUOT:XS,SHAVUOT_I:QS,SHAVUOT_II:ev,SHMINI_ATZERET:HS,SHUSHAN_PURIM:jS,SIGD:hv,SIMCHAT_TORAH:DS,SUKKOT_I:MS,SUKKOT_II:IS,SUKKOT_III_CHM:ES,SUKKOT_II_CHM:_S,SUKKOT_IV_CHM:OS,SUKKOT_VII_HOSHANA_RABA:kS,SUKKOT_VI_CHM:CS,SUKKOT_V_CHM:NS,TU_BAV:tv,TU_BISHVAT:RS,YITZHAK_RABIN_MEMORIAL_DAY:sv,YOM_HAALIYAH:lv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:fv,YOM_KIPPUR:bS,YOM_YERUSHALAYIM:ov},mv=[{mm:oS,dd:2,desc:wS,flags:cS|lS,emoji:"🍏🍯"},{mm:oS,dd:9,desc:AS,flags:yS|hS},{mm:oS,dd:10,desc:bS,flags:cS|Le.MAJOR_FAST|lS},{mm:oS,dd:14,desc:TS,flags:fS|yS|hS,emoji:pS},{mm:oS,dd:15,desc:MS,flags:fS|cS|gS,emoji:pS},{mm:oS,dd:16,desc:IS,flags:fS|cS|lS,emoji:pS},{mm:oS,dd:17,desc:ES,flags:fS|SS,chmDay:1,emoji:pS},{mm:oS,dd:18,desc:OS,flags:fS|SS,chmDay:2,emoji:pS},{mm:oS,dd:19,desc:NS,flags:fS|SS,chmDay:3,emoji:pS},{mm:oS,dd:20,desc:CS,flags:fS|SS,chmDay:4,emoji:pS},{mm:oS,dd:22,desc:HS,flags:fS|cS|gS},{mm:oS,dd:23,desc:DS,flags:fS|cS|lS},{mm:oS,dd:14,desc:TS,flags:dS|yS|hS,emoji:pS},{mm:oS,dd:15,desc:MS,flags:dS|cS|lS,emoji:pS},{mm:oS,dd:16,desc:_S,flags:dS|SS,chmDay:1,emoji:pS},{mm:oS,dd:17,desc:ES,flags:dS|SS,chmDay:2,emoji:pS},{mm:oS,dd:18,desc:OS,flags:dS|SS,chmDay:3,emoji:pS},{mm:oS,dd:19,desc:NS,flags:dS|SS,chmDay:4,emoji:pS},{mm:oS,dd:20,desc:CS,flags:dS|SS,chmDay:5,emoji:pS},{mm:oS,dd:22,desc:HS,flags:dS|cS|lS},{mm:oS,dd:21,desc:kS,flags:hS|SS,chmDay:-1,emoji:pS},{mm:iS,dd:24,desc:LS,flags:yS|mS|Le.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:sS,dd:15,desc:RS,flags:mS,emoji:"🌳"},{mm:uS,dd:13,desc:YS,flags:yS|mS,emoji:"🎭️📜"},{mm:uS,dd:14,desc:PS,flags:mS,emoji:"🎭️📜"},{mm:uS,dd:15,desc:jS,flags:mS,emoji:"🎭️📜"},{mm:eS,dd:14,desc:BS,flags:dS|yS|hS,emoji:"🫓🍷"},{mm:eS,dd:15,desc:FS,flags:dS|cS|lS,emoji:vS},{mm:eS,dd:16,desc:xS,flags:dS|SS,chmDay:1,emoji:vS},{mm:eS,dd:17,desc:ZS,flags:dS|SS,chmDay:2,emoji:vS},{mm:eS,dd:18,desc:$S,flags:dS|SS,chmDay:3,emoji:vS},{mm:eS,dd:19,desc:VS,flags:dS|SS,chmDay:4,emoji:vS},{mm:eS,dd:20,desc:zS,flags:dS|SS|hS,chmDay:5,emoji:vS},{mm:eS,dd:21,desc:KS,flags:dS|cS|lS,emoji:vS},{mm:eS,dd:14,desc:BS,flags:fS|yS|hS,emoji:"🫓🍷"},{mm:eS,dd:15,desc:FS,flags:fS|cS|gS,emoji:"🫓🍷"},{mm:eS,dd:16,desc:US,flags:fS|cS|lS,emoji:vS},{mm:eS,dd:17,desc:ZS,flags:fS|SS,chmDay:1,emoji:vS},{mm:eS,dd:18,desc:$S,flags:fS|SS,chmDay:2,emoji:vS},{mm:eS,dd:19,desc:VS,flags:fS|SS,chmDay:3,emoji:vS},{mm:eS,dd:20,desc:zS,flags:fS|SS|hS,chmDay:4,emoji:vS},{mm:eS,dd:21,desc:KS,flags:fS|cS|gS,emoji:vS},{mm:eS,dd:22,desc:JS,flags:fS|cS|lS,emoji:vS},{mm:tS,dd:14,desc:GS,flags:mS},{mm:tS,dd:18,desc:WS,flags:mS,emoji:"🔥"},{mm:nS,dd:5,desc:qS,flags:yS|hS,emoji:"⛰️🌸"},{mm:nS,dd:6,desc:XS,flags:dS|cS|lS,emoji:"⛰️🌸"},{mm:nS,dd:6,desc:QS,flags:fS|cS|gS,emoji:"⛰️🌸"},{mm:nS,dd:7,desc:ev,flags:fS|cS|lS,emoji:"⛰️🌸"},{mm:l.AV,dd:15,desc:tv,flags:mS,emoji:"❤️"},{mm:rS,dd:1,desc:nv,flags:mS,emoji:"🐑"},{mm:rS,dd:29,desc:rv,flags:yS|hS,emoji:"🍏🍯"}],yv=[{firstYear:5727,mm:tS,dd:28,desc:ov,chul:!0},{firstYear:5737,mm:iS,dd:6,desc:av,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:sS,dd:30,desc:iv},{firstYear:5758,mm:aS,dd:12,desc:sv,friSatMovetoThu:!0},{firstYear:5764,mm:tS,dd:10,desc:uv,satPostponeToSun:!0},{firstYear:5765,mm:l.TAMUZ,dd:29,desc:cv,satPostponeToSun:!0},{firstYear:5769,mm:aS,dd:29,desc:hv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:eS,dd:10,desc:lv,chul:!0},{firstYear:5777,mm:aS,dd:7,desc:fv},{firstYear:5773,mm:l.TEVET,dd:21,desc:dv,friSatMovetoThu:!0}];class Sv extends Ye{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()&Le.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Le.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case gv.LAG_BAOMER:case gv.LEIL_SELICHOT:case gv.PESACH_SHENI:case gv.EREV_PURIM:case gv.PURIM_KATAN:case gv.SHUSHAN_PURIM:case gv.TU_BAV:case gv.TU_BISHVAT:case gv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new Sv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class vv extends Sv{urlDateSuffix(){return ie(this.getDate().greg()).replace(/-/g,"")}}class pv extends Sv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return Se.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const wv="Rosh Chodesh";class Av extends Sv{constructor(e,t){super(e,`${wv} ${t}`,Le.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=Se.gettext(t,e).replace(/'/g,"’");return Se.gettext(wv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const bv="Shabbat Mevarchim Chodesh";class Tv extends Ye{constructor(e,t,n){if(super(e,`${bv} ${t}`,Le.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===Ie.monthsInYear(t)?l.NISAN:n+1,o=new Iy(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=Se.gettext(this.monthName,e).replace(/'/g,"’");return Se.gettext(bv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const Mv=new Map;class Iv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Mv.set(e,t)}static lookup(e,t,n){const r=Mv.get(e);return"function"==typeof r?r(t,n):null}}const Ev="5.5.1",Ov=Le.LIGHT_CANDLES,Nv=Le.LIGHT_CANDLES_TZEIS;function Cv(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ov;void 0!==e?r||(s&(Nv|Le.CHANUKAH_CANDLES)?i=!0:s&Le.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Nv);const u=i?n.havdalahMins:n.candleLightingMins,c=n.location,h=Boolean(n.useElevation),l=new yy(c,t,h),f=u?l.sunsetOffset(u,!0):l.tzeit(n.havdalahDeg);if(!isNaN(f.getTime()))return a?new Ay(t,s,f,c,n.havdalahMins,e,n):(s|=Ov,new wy(t,s,f,c,e,n))}const Hv="Fast begins",Dv="Fast ends";function _v(e,t,n,r){const o=r.location,a=e.getDate();return new py(a,n,e.getFlags(),t,o,e,r)}class kv extends Sv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=yy.roundTime(r);const a=o.getTimeFormatter();this.eventTimeStr=yy.formatTime(this.eventTime,a),this.location=o}}const Lv=l.NISAN,Rv=l.IYYAR;function Yv(e){if(e<5708)return null;let t;const n=new Ie(15,Lv,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new Ie(t,Rv,e)}const Pv="Yom Kippur Katan";class jv extends Sv{constructor(e,t){super(e,`${Pv} ${t}`,Le.MINOR_FAST|Le.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=Se.gettext(this.nextMonthName,e).replace(/'/g,"’");return Se.gettext(Pv,e)+" "+t}renderBrief(e){return Se.gettext(Pv,e)}url(){}}const Bv=Le.CHAG,Fv=Le.IL_ONLY,Uv=Le.LIGHT_CANDLES_TZEIS,xv=Le.CHANUKAH_CANDLES,Zv=Le.MINOR_FAST,$v=Le.SPECIAL_SHABBAT,Vv=Le.MODERN_HOLIDAY,zv=Le.MAJOR_FAST,Kv=Le.MINOR_HOLIDAY,Jv=Le.EREV,Gv=l.NISAN,Wv=l.TAMUZ,qv=l.AV,Xv=l.TISHREI,Qv=l.KISLEV,ep=l.TEVET,tp=l.ADAR_I,np=l.ADAR_II,rp={emoji:"🇮🇱"},op=new Ny({maxSize:400}),ap=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function ip(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=op.get(e);if(t)return t;const n=new Ie(1,Xv,e),r=new Ie(15,Gv,e),o=new Map;function a(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&Jv?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of mv){const n=new Ie(t.dd,t.mm,e),r=new Sv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new pv(n,e,Bv|Uv));const i=4===n.getDay()?4:3;a(new Sv(new Ie(i,Xv,e),gv.TZOM_GEDALIAH,Zv)),a(new Sv(new Ie(Ie.dayOnOrBefore(6,7+n.abs())),gv.SHABBAT_SHUVA,$v));const s=Ie.shortKislev(e)?new Ie(1,ep,e):new Ie(30,Qv,e);a(new Sv(s,gv.CHAG_HABANOT,Kv));for(let t=2;t<=8;t++){const n=new Ie(23+t,Qv,e);a(new Sv(n,`Chanukah: ${t} Candles`,Kv|xv,{chanukahDay:t-1,emoji:"🕎"+ap[t]}))}a(new Sv(new Ie(32,Qv,e),gv.CHANUKAH_8TH_DAY,Kv,{chanukahDay:8,emoji:"🕎"})),a(new vv(new Ie(10,ep,e),gv.ASARA_BTEVET,Zv));const u=r.abs();a(new Sv(new Ie(Ie.dayOnOrBefore(6,u-43)),gv.SHABBAT_SHEKALIM,$v),new Sv(new Ie(Ie.dayOnOrBefore(6,u-30)),gv.SHABBAT_ZACHOR,$v),new Sv(new Ie(u-(2===r.getDay()?33:31)),gv.TAANIT_ESTHER,Zv));const c=Ie.dayOnOrBefore(6,u-14);a(new Sv(new Ie(c-7),gv.SHABBAT_PARAH,$v),new Sv(new Ie(c),gv.SHABBAT_HACHODESH,$v),new Sv(new Ie(Ie.dayOnOrBefore(6,u-1)),gv.SHABBAT_HAGADOL,$v),new Sv(6===r.prev().getDay()?r.onOrBefore(4):new Ie(14,Gv,e),gv.TAANIT_BECHOROT,Zv)),a(new Sv(new Ie(Ie.dayOnOrBefore(6,new Ie(1,Xv,e+1).abs()-4)),gv.LEIL_SELICHOT,Kv,{emoji:"🕍"})),0===r.getDay()&&a(new Sv(new Ie(16,np,e),gv.PURIM_MESHULASH,Kv)),Ie.isLeapYear(e)&&(a(new Sv(new Ie(14,tp,e),gv.PURIM_KATAN,Kv,{emoji:"🎭️"})),a(new Sv(new Ie(15,tp,e),gv.SHUSHAN_PURIM_KATAN,Kv,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Ie(27,Lv,e);return 5===t.getDay()?t=new Ie(26,Lv,e):0===t.getDay()&&(t=new Ie(28,Lv,e)),t}(e);h&&a(new Sv(h,gv.YOM_HASHOAH,Vv));const f=Yv(e);f&&a(new Sv(f,gv.YOM_HAZIKARON,Vv,rp),new Sv(f.next(),gv.YOM_HAATZMA_UT,Vv,rp));for(const t of yv)if(e>=t.firstYear){let n=new Ie(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new Ie(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Vv:Vv|Fv,i=new Sv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let d,g=new Ie(17,Wv,e);6===g.getDay()&&(g=new Ie(18,Wv,e),d={observed:!0}),a(new Sv(g,gv.TZOM_TAMMUZ,Zv,d));let m,y=new Ie(9,qv,e),S=gv.TISHA_BAV;6===y.getDay()&&(y=y.next(),m={observed:!0},S+=" (observed)");const v=y.abs();a(new Sv(new Ie(Ie.dayOnOrBefore(6,v)),gv.SHABBAT_CHAZON,$v),new Sv(y.prev(),gv.EREV_TISHA_BAV,Jv|zv,m),new Sv(y,S,zv,m),new Sv(new Ie(Ie.dayOnOrBefore(6,v+7)),gv.SHABBAT_NACHAMU,$v));const p=Ie.monthsInYear(e);for(let t=1;t<=p;t++){const n=Ie.getMonthName(t,e);30===(t===Gv?Ie.daysInMonth(Ie.monthsInYear(e-1),e-1):Ie.daysInMonth(t-1,e))?(a(new Av(new Ie(1,t,e),n)),a(new Av(new Ie(30,t-1,e),n))):t!==Xv&&a(new Av(new Ie(1,t,e),n))}for(let t=l.IYYAR;t<=p;t++){const n=t+1;if(n===Xv||n===l.CHESHVAN||n===ep)continue;let r=new Ie(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=Ie.getMonthName(n,e);a(new jv(r,i))}const w=Xy(e,!1).find(15);a(new Sv(w,gv.SHABBAT_SHIRAH,$v));const A=function(e){const t=Ie.isLeapYear(e),n=t?np:Gv,r=t?20:1,o=Ie.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(A){const e=new Ie(A);a(new Sv(e,gv.BIRKAT_HACHAMAH,Kv,{emoji:"☀️"}))}return op.set(e,o),o}function sp(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const up={shacharit:!1,mincha:!1,allCongs:!1};function cp(e,t){return hp(e,t,!0)}function hp(e,t,n){const r=function(e,t){const n=Ie.isLeapYear(e),r=Ie.monthsInYear(e);let o=new Ie(9,l.AV,e);6===o.getDay()&&(o=o.next());let a=new Ie(15,l.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[new Ie(2,l.TISHREI,e)].concat(sp(1,r).map((t=>new Ie(1,t,e))),sp(1,r).filter((t=>30===Ie.daysInMonth(t,e))).map((t=>new Ie(30,t,e))),sp(1,Ie.daysInMonth(l.NISAN,e)).map((t=>new Ie(t,l.NISAN,e))),new Ie(18,l.IYYAR,e),sp(1,8-(t?1:0)).map((t=>new Ie(t,l.SIVAN,e))),o,new Ie(15,l.AV,e),new Ie(29,l.ELUL,e),sp(9,24-(t?1:0)).map((t=>new Ie(t,l.TISHREI,e))),sp(25,33).map((t=>new Ie(t,l.KISLEV,e))),new Ie(15,l.SHVAT,e),new Ie(14,l.ADAR_II,e),a,n?new Ie(14,l.ADAR_I,e):[]),s=[new Ie(14,l.IYYAR,e)].concat(sp(1,13).map((t=>new Ie(t,l.SIVAN,e))),sp(20,31).map((t=>new Ie(t,l.TISHREI,e))),e>=5708?Yv(e).next():[],e>=5727?new Ie(28,l.IYYAR,e):[]),u=[new Ie(29,l.ELUL,e-1),new Ie(9,l.TISHREI,e),new Ie(14,l.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:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return up;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=hp(new Ie(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:up}const lp=l.TISHREI;function fp(e){if("number"==typeof e)return e;if(s(e))return c(e);if(Ie.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function dp(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[fp(e.start),fp(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Ie).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return Ie.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new Ie(1,e||lp,t);let o=r.abs();const a=e?o+r.daysInMonth():new Ie(1,lp,t+n).abs()-1;!e&&t>1&&o--;return[o,a]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const a=c(o);let s;if(e)s=a+i(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),s=c(r)-1}return[a,s]}(r,n,o)}const gp=l.NISAN,mp=l.SIVAN,yp=l.ELUL,Sp=l.TISHREI,vp=Le.LIGHT_CANDLES,pp=Le.YOM_TOV_ENDS,wp=Le.CHUL_ONLY,Ap=Le.IL_ONLY,bp=Le.LIGHT_CANDLES_TZEIS,Tp=Le.CHANUKAH_CANDLES,Mp=Le.MINOR_FAST,Ip=Le.SPECIAL_SHABBAT,Ep=Le.MODERN_HOLIDAY,Op=Le.MAJOR_FAST,Np=Le.ROSH_CHODESH,Cp=Le.PARSHA_HASHAVUA,Hp=Le.DAF_YOMI,Dp=Le.MISHNA_YOMI,_p=Le.NACH_YOMI,kp=Le.YERUSHALMI_YOMI,Lp=Le.OMER_COUNT,Rp=Le.SHABBAT_MEVARCHIM,Yp=Le.MINOR_HOLIDAY,Pp=Le.EREV,jp=Le.CHOL_HAMOED,Bp=Le.YOM_KIPPUR_KATAN,Fp=new Set,Up={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,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const xp={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Zp={281184:40,294801:30,293067:30};function $p(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof gy))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=Number(e.candleLightingMins)||18;t.getIsrael()&&18===Math.abs(n)&&(n=function(e,t){const n=e.getGeoId();if(n){const e=Zp[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=xp[r];if("number"==typeof e)return e}return t}(t,n)),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)}function Vp(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&Np&&delete e.noRoshChodesh;t&Ep&&delete e.noModern;t&Mp&&delete e.noMinorFast;t&Ip&&delete e.noSpecialShabbat;t&Cp&&(e.sedrot=!0);t&(Hp|Dp|_p|kp)&&(e.dailyLearning=e.dailyLearning||{},t&Hp&&(e.dailyLearning.dafYomi=!0),t&Dp&&(e.dailyLearning.mishnaYomi=!0),t&_p&&(e.dailyLearning.nachYomi=!0),t&kp&&(e.dailyLearning.yerushalmi=1));t&Lp&&(e.omer=!0);t&Rp&&(e.shabbatMevarchim=!0);t&Bp&&(e.yomKippurKatan=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;if(e.noHolidays||(r|=Np|pp|Mp|Ip|Ep|Op|Yp|Pp|jp|vp|bp|Tp),e.candlelighting&&(r|=vp|bp|pp),e.noRoshChodesh&&(r&=~Np),e.noModern&&(r&=~Ep),e.noMinorFast&&(r&=~Mp),e.noSpecialShabbat&&(r&=~Ip,r&=~Rp),r|=n?Ap:wp,e.sedrot&&(r|=Cp),e.omer&&(r|=Lp),e.shabbatMevarchim&&(r|=Rp),e.yomKippurKatan&&(r|=Bp),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Hp),t.mishnaYomi&&(r|=Dp),t.nachYomi&&(r|=_p),t.yerushalmi&&(r|=kp)}return r}const zp=vp|bp|Tp|pp,Kp=new gy(0,0,!1,"UTC");function Jp(e){return e.observedInIsrael()}function Gp(e){return e.observedInDiaspora()}class Wp{constructor(){}static calendar(e={}){$p(e=Object.assign({},e));const t=e.location=e.location||Kp,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=Vp(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!Se.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else Se.useLocale("en");const o=[];let a,i,s=-1,u=-1,c=-1;const l=dp(e);!function(e){for(const t of Object.keys(e))void 0!==Up[t]||Fp.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),Fp.add(t))}(e);const f=l[0],d=l[1];h(f).getFullYear()<100&&(e.candlelighting=!1);for(let t=f;t<=d;t++){const h=new Ie(t),l=h.getFullYear();l!==c&&(c=l,i=ip(c),e.sedrot&&(a=Xy(c,n)),e.omer&&(s=Ie.hebrew2abs(c,gp,16),u=Ie.hebrew2abs(c,mp,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const t of S)y=Xp(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=a.lookup(t);e.chag||o.push(new Qy(h,e.parsha,n,e.num))}const v=e.dailyLearning;if("object"==typeof v){const e=tw(h,v,n);o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=nw(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=Qp(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Cv(void 0,h,e,g,m),g&&y&&a&&(y.memo=a.getString(t,e.locale))),y instanceof Ay&&(0===e.havdalahMins||0===e.havdalahDeg)&&(y=void 0),y&&o.push(y),e.addHebrewDates||e.addHebrewDatesForEvents&&f!==o.length){const e=new Pe(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=R(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=w(r);let a=n.mm,i=n.dd;return a===k&&!o||a===L&&o?a=A(e):a!==C||30!==i||E(e)?a===H&&30===i&&O(e)?(a=D,i=1):a===k&&30===i&&o&&!w(e)&&(a=N,i=1):(a=H,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new Ie(n)}static getYahrzeit(e,t){const n=function(e,t){let n=R(t);if(!(e<=n.yy))return n.mm!==C||30!==n.dd||E(n.yy+1)?n.mm===H&&30===n.dd&&O(n.yy+1)?n=p(S(e,D,1)-1):n.mm===L?n.mm=A(e):n.mm!==k||30!==n.dd||w(e)||(n.dd=30,n.mm=_):n=p(S(e,H,1)-1),n.mm!==C||30!==n.dd||E(e)?n.mm===H&&30===n.dd&&O(e)&&(n.mm=D,n.dd=1):(n.mm=H,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Ie(n)}static getHolidaysForYear(e){return ip(e)}static getHolidaysForYearArray(e,t){const n=ip(e),r=Ie.hebrew2abs(e,Sp,1),o=Ie.hebrew2abs(e+1,Sp,1)-1;let a=[];const i=t?Jp:Gp;for(let e=r;e<=o;e++){const t=new Ie(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=Ie.isHDate(e)?e:new Ie(e),r=n.toString(),o=ip(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?Jp:Gp;return o.filter(a)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Ie(e),r=n.after(5),o=n.next();return!(!qp(r,t)||qp(n,t)||!qp(o,t))}static reformatTimeStr(e,t,n){return vy(e,t,n)}static version(){return Ev}static getSedra(e,t){return Xy(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===l.NISAN&&(15===o||16===o)&&e.getFlags()&Le.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()&Le.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Wp.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return cp(e,t)}}function qp(e,t){return 0!==(Wp.getHolidaysOnDate(e,t)||[]).filter((e=>e.getFlags()&Le.CHAG)).length}function Xp(e,t,n,r,o,a,i){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&Bp||r.noModern&&u&Ep)return e;const c=Boolean(u&Op),h=Boolean(u&Mp);if(r.candlelighting&&(c||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),u=new yy(a,o,s);if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(e.startEvent=_v(e,n,Hv,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(i);isNaN(n.getTime())||(e.endEvent=_v(e,n,Dv,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(e.startEvent=_v(e,n,Hv,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==l.NISAN)){const n=u.tzeit(i);isNaN(n.getTime())||(e.endEvent=_v(e,n,Dv,t))}}return e}(n,r),n.startEvent&&(c||h&&!r.noMinorFast)&&t.push(n.startEvent)),u&Number(r.mask)||!u&&!i){if(r.candlelighting&&u&zp){const t=n.getDate();if(e=Cv(n,t,r,o,a),u&Tp&&e&&!r.noHolidays){const i=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),a=new yy(r,t.greg(),o).beinHaShmashos();if(isNaN(a.getTime()))return null;const i=new kv(t,e.getDesc(),e.getFlags(),a,r);return i.emoji=e.emoji,i.chanukahDay=e.chanukahDay,i}(n,t,r);i&&((o||a)&&(i.eventTime=e.eventTime,i.eventTimeStr=e.eventTimeStr),n=i),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&Bp)&&t.push(n)}return n.endEvent&&(c||h&&!r.noMinorFast)&&t.push(n.endEvent),e}function Qp(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==yp&&o>=23&&o<=29){const o=e.getFullYear(),a=r===Ie.monthsInYear(o)?gp:r+1;if(t.molad&&n.push(new Ey(e,o,a,t)),t.shabbatMevarchim){const r=Ie.getMonthName(a,o),i=new Iy(o,a).render(t.locale||"en",t);n.push(new Tv(e,r,i))}}return n}function ew(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function tw(e,t,n){const r=[];for(const[o,a]of Object.entries(t))if(a){const t=ew(o,a),i=Iv.lookup(t,e,n);i&&r.push(i)}return r}function nw(e,t,n){const r=new Oy(e,t);if(n.candlelighting){const t=n.location,o=new yy(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}return e.AsaraBTevetEvent=vv,e.CandleLightingEvent=wy,e.DailyLearning=Iv,e.Event=Ye,e.GeoLocation=sy,e.HDate=Ie,e.HavdalahEvent=Ay,e.HebrewCalendar=Wp,e.HebrewDateEvent=Pe,e.HolidayEvent=Sv,e.Locale=Se,e.Location=gy,e.MevarchimChodeshEvent=Tv,e.Molad=Iy,e.MoladEvent=Ey,e.NOAACalculator=cy,e.OmerEvent=Oy,e.ParshaEvent=Qy,e.RoshChodeshEvent=Av,e.RoshHashanaEvent=pv,e.Sedra=Cy,e.TimedEvent=py,e.Zmanim=yy,e.flags=Le,e.gematriya=F,e.gematriyaStrToNum=U,e.holidayDesc=gv,e.months=l,e.parshiot=Hy,e.version=Ev,e}({});
3
3
  //# sourceMappingURL=bundle.min.js.map