@hebcal/core 5.3.8 → 5.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/dist/bundle.js +319 -103
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +317 -101
- package/dist/index.mjs +317 -102
- package/hebcal.d.ts +55 -0
- package/package.json +2 -2
- package/po/he.po +4 -1
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
2
|
-
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],p=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],w=new Map,v=-1373428,S=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function M(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=A(e);t++)r+=D(t,e);for(let n=a;n<t;n++)r+=D(n,e)}else for(let n=u;n<t;n++)r+=D(n,e);return v+O(e)+r-1}function I(e){return v+O(e)}function T(e){if(b(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/S);for(;I(t)<=e;)++t;--t;let n=e<M(t,1,1)?7:1;for(;e>M(t,n,D(n,t));)++n;return{yy:t,mm:n,dd:1+e-M(t,n,1)}}function E(e){return(1+7*e)%19<7}function A(e){return+E(e)+12}function D(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!E(t)||e===h&&!k(t)||e===l&&H(t)?29:30}function C(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return p[+E(t)][e]}function O(e){const t=w.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!E(e)||1==i%7&&a>=16789&&E(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return w.set(e,n),n}function N(e){return O(e+1)-O(e)}function k(e){return N(e)%10==5}function H(e){return N(e)%10==3}const L=m.NISAN,R=m.CHESHVAN,P=m.KISLEV,Y=m.TEVET,j=m.SHVAT,F=m.ADAR_I,_=m.ADAR_II;function B(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const x={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},$=new Map,U=new Map;for(const[e,t]of Object.entries(x))$.set(e,t),U.set(t,e);function Z(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function z(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=Z(r);for(const t of e)n+=U.get(t);n+="׳"}const o=Z(t%1e3);if(1===o.length)return n+U.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=U.get(o[e]);return n}function V(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*V(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=$.get(n);"number"==typeof e&&(t+=e)}return t}const K={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function J(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function G(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return J(e),"en"===t?function(e){const[t,n]=G(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ae:12===e?r+="שְׁנֵים "+ae:12<e&&e<20?r+=X[n]+" "+ae:e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1],ae="עָשָׂר";const ie={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},se={h:"he",a:"ashkenazi",s:"en","":"en"},ce=new Map;let ue=null,he=null;class le{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&ce.get(n)||ue)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);ce.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=ce.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=ce.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=ce.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return he=se[t]||t,ue=n,ue}static getLocaleName(){return he}static getLocaleNames(){return Array.from(ce.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||he;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function fe(e){throw new TypeError(e)}le.addLocale("en",ie),le.addLocale("s",ie),le.addLocale("",ie),le.useLocale("en");const de="day",ge="week",me="month",ye="year",pe={d:de,w:ge,M:me,y:ye},we={day:de,week:ge,month:me,year:ye};class ve{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:fe(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?T(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return E(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=A(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return D(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=ve.monthNum(e),Se(this),this}setDate(e){return this.dd=e,Se(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=M(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return M(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||le.getLocaleName(),n=this.getDate(),r=le.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${le.ordinal(n,t)}${ve.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=le.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=le.gettext(this.getMonthName(),n),o=this.getFullYear();return z(t)+" "+r+" "+z(o)}before(e){return Me(e,this,-1)}onOrBefore(e){return Me(e,this,0)}nearest(e){return Me(e,this,3)}onOrAfter(e){return Me(e,this,6)}after(e){return Me(e,this,7)}next(){return new ve(this.abs()+1)}prev(){return new ve(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ve(this);if(t=ve.standardizeUnits(t),t===de)return new ve(this.abs()+e);if(t===ge)return new ve(this.abs()+7*e);if(t===ye)return new ve(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===me){let t=new ve(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ve(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=pe[e]||String(e||"").toLowerCase().replace(/s$/,"");return we[t]||fe(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!ve.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ve.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return E(e)}static monthsInYear(e){return A(e)}static daysInMonth(e,t){return D(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):ve.monthFromName(e)}static daysInYear(e){return N(e)}static longCheshvan(e){return k(e)}static shortKislev(e){return H(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(le.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=V(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=ve.monthFromName(a);let s=V(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new ve(o,i,s)}}function Se(e){be(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=D(e.mm,e.yy),e.mm-=1,Se(e));e.dd>D(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=D(e.mm,e.yy),e.mm===A(e.yy)?e.mm=1:e.mm+=1,Se(e));be(e)}(e)}function be(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=A(e.yy),e.yy-=1,Se(e)):e.mm>A(e.yy)&&(e.mm-=A(e.yy),e.yy+=1,Se(e)):(e.mm-=1,Se(e)),delete e.rd}function Me(e,t,n){return new ve(ve.dayOnOrBefore(e,t.abs()+n))}const Ie={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},Te=[[Ie.MAJOR_FAST,"holiday","major","fast"],[Ie.CHANUKAH_CANDLES,"holiday","major"],[Ie.HEBREW_DATE,"hebdate"],[Ie.MINOR_FAST,"holiday","fast"],[Ie.MINOR_HOLIDAY,"holiday","minor"],[Ie.MODERN_HOLIDAY,"holiday","modern"],[Ie.MOLAD,"molad"],[Ie.OMER_COUNT,"omer"],[Ie.PARSHA_HASHAVUA,"parashat"],[Ie.ROSH_CHODESH,"roshchodesh"],[Ie.SHABBAT_MEVARCHIM,"mevarchim"],[Ie.SPECIAL_SHABBAT,"holiday","shabbat"],[Ie.USER_EVENT,"user"]];class Ee{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return le.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Ie.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Ie.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor;for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of Te)if(e&t[0])return t.slice(1);return["unknown"]}}class Ae extends Ee{constructor(e){super(e,e.toString(),Ie.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=le.gettext(t.getMonthName(),e);return z(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var De="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ce=function(e){return e&&e.Math===Math&&e},Oe=Ce("object"==typeof globalThis&&globalThis)||Ce("object"==typeof window&&window)||Ce("object"==typeof self&&self)||Ce("object"==typeof De&&De)||Ce("object"==typeof De&&De)||function(){return this}()||Function("return this")(),Ne={},ke=function(e){try{return!!e()}catch(e){return!0}},He=!ke((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Le=!ke((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Re=Le,Pe=Function.prototype.call,Ye=Re?Pe.bind(Pe):function(){return Pe.apply(Pe,arguments)},je={},Fe={}.propertyIsEnumerable,_e=Object.getOwnPropertyDescriptor,Be=_e&&!Fe.call({1:2},1);je.f=Be?function(e){var t=_e(this,e);return!!t&&t.enumerable}:Fe;var xe,$e,Ue=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ze=Le,ze=Function.prototype,Ve=ze.call,Ke=Ze&&ze.bind.bind(Ve,Ve),Je=Ze?Ke:function(e){return function(){return Ve.apply(e,arguments)}},Ge=Je,We=Ge({}.toString),qe=Ge("".slice),Xe=ke,Qe=function(e){return qe(We(e),8,-1)},et=Object,tt=Je("".split),nt=Xe((function(){return!et("z").propertyIsEnumerable(0)}))?function(e){return"String"===Qe(e)?tt(e,""):et(e)}:et,rt=function(e){return null==e},ot=rt,at=TypeError,it=function(e){if(ot(e))throw new at("Can't call method on "+e);return e},st=nt,ct=it,ut=function(e){return st(ct(e))},ht="object"==typeof document&&document.all,lt=void 0===ht&&void 0!==ht?function(e){return"function"==typeof e||e===ht}:function(e){return"function"==typeof e},ft=lt,dt=function(e){return"object"==typeof e?null!==e:ft(e)},gt=Oe,mt=lt,yt=function(e,t){return arguments.length<2?(n=gt[e],mt(n)?n:void 0):gt[e]&>[e][t];var n},pt=Je({}.isPrototypeOf),wt=Oe,vt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",St=wt.process,bt=wt.Deno,Mt=St&&St.versions||bt&&bt.version,It=Mt&&Mt.v8;It&&($e=(xe=It.split("."))[0]>0&&xe[0]<4?1:+(xe[0]+xe[1])),!$e&&vt&&(!(xe=vt.match(/Edge\/(\d+)/))||xe[1]>=74)&&(xe=vt.match(/Chrome\/(\d+)/))&&($e=+xe[1]);var Tt=$e,Et=ke,At=Oe.String,Dt=!!Object.getOwnPropertySymbols&&!Et((function(){var e=Symbol("symbol detection");return!At(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tt&&Tt<41})),Ct=Dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=yt,Nt=lt,kt=pt,Ht=Object,Lt=Ct?function(e){return"symbol"==typeof e}:function(e){var t=Ot("Symbol");return Nt(t)&&kt(t.prototype,Ht(e))},Rt=String,Pt=lt,Yt=function(e){try{return Rt(e)}catch(e){return"Object"}},jt=TypeError,Ft=function(e){if(Pt(e))return e;throw new jt(Yt(e)+" is not a function")},_t=rt,Bt=Ye,xt=lt,$t=dt,Ut=TypeError,Zt={exports:{}},zt=Oe,Vt=Object.defineProperty,Kt=function(e,t){try{Vt(zt,e,{value:t,configurable:!0,writable:!0})}catch(n){zt[e]=t}return t},Jt=Oe,Gt=Kt,Wt="__core-js_shared__",qt=Zt.exports=Jt[Wt]||Gt(Wt,{});(qt.versions||(qt.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=Zt.exports,Qt=Xt,en=function(e,t){return Qt[e]||(Qt[e]=t||{})},tn=it,nn=Object,rn=function(e){return nn(tn(e))},on=Je({}.hasOwnProperty),an=Object.hasOwn||function(e,t){return on(rn(e),t)},sn=Je,cn=0,un=Math.random(),hn=sn(1..toString),ln=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hn(++cn+un,36)},fn=en,dn=an,gn=ln,mn=Dt,yn=Ct,pn=Oe.Symbol,wn=fn("wks"),vn=yn?pn.for||pn:pn&&pn.withoutSetter||gn,Sn=function(e){return dn(wn,e)||(wn[e]=mn&&dn(pn,e)?pn[e]:vn("Symbol."+e)),wn[e]},bn=Ye,Mn=dt,In=Lt,Tn=function(e,t){var n=e[t];return _t(n)?void 0:Ft(n)},En=function(e,t){var n,r;if("string"===t&&xt(n=e.toString)&&!$t(r=Bt(n,e)))return r;if(xt(n=e.valueOf)&&!$t(r=Bt(n,e)))return r;if("string"!==t&&xt(n=e.toString)&&!$t(r=Bt(n,e)))return r;throw new Ut("Can't convert object to primitive value")},An=TypeError,Dn=Sn("toPrimitive"),Cn=function(e,t){if(!Mn(e)||In(e))return e;var n,r=Tn(e,Dn);if(r){if(void 0===t&&(t="default"),n=bn(r,e,t),!Mn(n)||In(n))return n;throw new An("Can't convert object to primitive value")}return void 0===t&&(t="number"),En(e,t)},On=Lt,Nn=function(e){var t=Cn(e,"string");return On(t)?t:t+""},kn=dt,Hn=Oe.document,Ln=kn(Hn)&&kn(Hn.createElement),Rn=function(e){return Ln?Hn.createElement(e):{}},Pn=Rn,Yn=!He&&!ke((function(){return 7!==Object.defineProperty(Pn("div"),"a",{get:function(){return 7}}).a})),jn=He,Fn=Ye,_n=je,Bn=Ue,xn=ut,$n=Nn,Un=an,Zn=Yn,zn=Object.getOwnPropertyDescriptor;Ne.f=jn?zn:function(e,t){if(e=xn(e),t=$n(t),Zn)try{return zn(e,t)}catch(e){}if(Un(e,t))return Bn(!Fn(_n.f,e,t),e[t])};var Vn={},Kn=He&&ke((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jn=dt,Gn=String,Wn=TypeError,qn=function(e){if(Jn(e))return e;throw new Wn(Gn(e)+" is not an object")},Xn=He,Qn=Yn,er=Kn,tr=qn,nr=Nn,rr=TypeError,or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ir="enumerable",sr="configurable",cr="writable";Vn.f=Xn?er?function(e,t,n){if(tr(e),t=nr(t),tr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&cr in n&&!n[cr]){var r=ar(e,t);r&&r[cr]&&(e[t]=n.value,n={configurable:sr in n?n[sr]:r[sr],enumerable:ir in n?n[ir]:r[ir],writable:!1})}return or(e,t,n)}:or:function(e,t,n){if(tr(e),t=nr(t),tr(n),Qn)try{return or(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new rr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ur=Vn,hr=Ue,lr=He?function(e,t,n){return ur.f(e,t,hr(1,n))}:function(e,t,n){return e[t]=n,e},fr={exports:{}},dr=He,gr=an,mr=Function.prototype,yr=dr&&Object.getOwnPropertyDescriptor,pr=gr(mr,"name"),wr={EXISTS:pr,PROPER:pr&&"something"===function(){}.name,CONFIGURABLE:pr&&(!dr||dr&&yr(mr,"name").configurable)},vr=lt,Sr=Xt,br=Je(Function.toString);vr(Sr.inspectSource)||(Sr.inspectSource=function(e){return br(e)});var Mr,Ir,Tr,Er=Sr.inspectSource,Ar=lt,Dr=Oe.WeakMap,Cr=Ar(Dr)&&/native code/.test(String(Dr)),Or=ln,Nr=en("keys"),kr=function(e){return Nr[e]||(Nr[e]=Or(e))},Hr={},Lr=Cr,Rr=Oe,Pr=dt,Yr=lr,jr=an,Fr=Xt,_r=kr,Br=Hr,xr="Object already initialized",$r=Rr.TypeError,Ur=Rr.WeakMap;if(Lr||Fr.state){var Zr=Fr.state||(Fr.state=new Ur);Zr.get=Zr.get,Zr.has=Zr.has,Zr.set=Zr.set,Mr=function(e,t){if(Zr.has(e))throw new $r(xr);return t.facade=e,Zr.set(e,t),t},Ir=function(e){return Zr.get(e)||{}},Tr=function(e){return Zr.has(e)}}else{var zr=_r("state");Br[zr]=!0,Mr=function(e,t){if(jr(e,zr))throw new $r(xr);return t.facade=e,Yr(e,zr,t),t},Ir=function(e){return jr(e,zr)?e[zr]:{}},Tr=function(e){return jr(e,zr)}}var Vr={set:Mr,get:Ir,has:Tr,enforce:function(e){return Tr(e)?Ir(e):Mr(e,{})},getterFor:function(e){return function(t){var n;if(!Pr(t)||(n=Ir(t)).type!==e)throw new $r("Incompatible receiver, "+e+" required");return n}}},Kr=Je,Jr=ke,Gr=lt,Wr=an,qr=He,Xr=wr.CONFIGURABLE,Qr=Er,eo=Vr.enforce,to=Vr.get,no=String,ro=Object.defineProperty,oo=Kr("".slice),ao=Kr("".replace),io=Kr([].join),so=qr&&!Jr((function(){return 8!==ro((function(){}),"length",{value:8}).length})),co=String(String).split("String"),uo=fr.exports=function(e,t,n){"Symbol("===oo(no(t),0,7)&&(t="["+ao(no(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Wr(e,"name")||Xr&&e.name!==t)&&(qr?ro(e,"name",{value:t,configurable:!0}):e.name=t),so&&n&&Wr(n,"arity")&&e.length!==n.arity&&ro(e,"length",{value:n.arity});try{n&&Wr(n,"constructor")&&n.constructor?qr&&ro(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=eo(e);return Wr(r,"source")||(r.source=io(co,"string"==typeof t?t:"")),e};Function.prototype.toString=uo((function(){return Gr(this)&&to(this).source||Qr(this)}),"toString");var ho=fr.exports,lo=lt,fo=Vn,go=ho,mo=Kt,yo={},po=Math.ceil,wo=Math.floor,vo=Math.trunc||function(e){var t=+e;return(t>0?wo:po)(t)},So=vo,bo=function(e){var t=+e;return t!=t||0===t?0:So(t)},Mo=bo,Io=Math.max,To=Math.min,Eo=bo,Ao=Math.min,Do=function(e){var t=Eo(e);return t>0?Ao(t,9007199254740991):0},Co=ut,Oo=function(e,t){var n=Mo(e);return n<0?Io(n+t,0):To(n,t)},No=function(e){return Do(e.length)},ko=function(e){return function(t,n,r){var o=Co(t),a=No(o);if(0===a)return!e&&-1;var i,s=Oo(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}},Ho={includes:ko(!0),indexOf:ko(!1)},Lo=an,Ro=ut,Po=Ho.indexOf,Yo=Hr,jo=Je([].push),Fo=function(e,t){var n,r=Ro(e),o=0,a=[];for(n in r)!Lo(Yo,n)&&Lo(r,n)&&jo(a,n);for(;t.length>o;)Lo(r,n=t[o++])&&(~Po(a,n)||jo(a,n));return a},_o=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bo=Fo,xo=_o.concat("length","prototype");yo.f=Object.getOwnPropertyNames||function(e){return Bo(e,xo)};var $o={};$o.f=Object.getOwnPropertySymbols;var Uo=yt,Zo=yo,zo=$o,Vo=qn,Ko=Je([].concat),Jo=Uo("Reflect","ownKeys")||function(e){var t=Zo.f(Vo(e)),n=zo.f;return n?Ko(t,n(e)):t},Go=an,Wo=Jo,qo=Ne,Xo=Vn,Qo=ke,ea=lt,ta=/#|\.prototype\./,na=function(e,t){var n=oa[ra(e)];return n===ia||n!==aa&&(ea(t)?Qo(t):!!t)},ra=na.normalize=function(e){return String(e).replace(ta,".").toLowerCase()},oa=na.data={},aa=na.NATIVE="N",ia=na.POLYFILL="P",sa=na,ca=Oe,ua=Ne.f,ha=lr,la=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(lo(n)&&go(n,a,r),r.global)o?e[t]=n:mo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:fo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},fa=Kt,da=function(e,t,n){for(var r=Wo(t),o=Xo.f,a=qo.f,i=0;i<r.length;i++){var s=r[i];Go(e,s)||n&&Go(n,s)||o(e,s,a(t,s))}},ga=sa,ma={},ya=Fo,pa=_o,wa=Object.keys||function(e){return ya(e,pa)},va=He,Sa=Kn,ba=Vn,Ma=qn,Ia=ut,Ta=wa;ma.f=va&&!Sa?Object.defineProperties:function(e,t){Ma(e);for(var n,r=Ia(t),o=Ta(t),a=o.length,i=0;a>i;)ba.f(e,n=o[i++],r[n]);return e};var Ea,Aa=yt("document","documentElement"),Da=qn,Ca=ma,Oa=_o,Na=Hr,ka=Aa,Ha=Rn,La="prototype",Ra="script",Pa=kr("IE_PROTO"),Ya=function(){},ja=function(e){return"<"+Ra+">"+e+"</"+Ra+">"},Fa=function(e){e.write(ja("")),e.close();var t=e.parentWindow.Object;return e=null,t},_a=function(){try{Ea=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;_a="undefined"!=typeof document?document.domain&&Ea?Fa(Ea):(t=Ha("iframe"),n="java"+Ra+":",t.style.display="none",ka.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(ja("document.F=Object")),e.close(),e.F):Fa(Ea);for(var r=Oa.length;r--;)delete _a[La][Oa[r]];return _a()};Na[Pa]=!0;var Ba=Object.create||function(e,t){var n;return null!==e?(Ya[La]=Da(e),n=new Ya,Ya[La]=null,n[Pa]=e):n=_a(),void 0===t?n:Ca.f(n,t)},xa=Sn,$a=Ba,Ua=Vn.f,Za=xa("unscopables"),za=Array.prototype;void 0===za[Za]&&Ua(za,Za,{configurable:!0,value:$a(null)});var Va=Ho.includes,Ka=function(e){za[Za][e]=!0};function Ja(e,t,n,r,o){return Ga(t,Wa(e,t),n,r,o)}function Ga(e,t,n,r,o,a){const i=pi(t,n,r);if(o&&t!==i)throw new RangeError(Tl(e,t,n,r,a));return i}function Wa(e,t){const n=e[t];if(void 0===n)throw new TypeError(Al(t));return n}function qa(e){return null!==e&&/object|function/.test(typeof e)}function Xa(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 Qa(e){return ei({name:e},1)}function ei(e,t){return oi((e=>({value:e,configurable:1,writable:!t})),e)}function ti(e){return oi((e=>({get:e,configurable:1})),e)}function ni(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function ri(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function oi(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function ai(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 ii(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function si(e,t){const n={};for(const r of e)n[r]=t[r];return n}function ci(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function ui(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function hi(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function li(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function fi(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 di(e){return e[0].toUpperCase()+e.substring(1)}function gi(e){return e.slice().sort()}function mi(e,t){return String(t).padStart(e,"0")}function yi(e,t){return Math.sign(e-t)}function pi(e,t,n){return Math.min(Math.max(e,t),n)}function wi(e,t){return[Math.floor(e/t),vi(e,t)]}function vi(e,t){return(e%t+t)%t}function Si(e,t){return[bi(e,t),Mi(e,t)]}function bi(e,t){return Math.trunc(e/t)||0}function Mi(e,t){return e%t||0}function Ii(e){return.5===Math.abs(e%1)}function Ti(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=Mf[a],s=bf/i,[c,u]=Si(t,s);r+=u*i,o+=c}const[a,i]=Si(r,bf);return[o+a,i]}function Ei(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Mf[o];r[n[o]]=bi(e,t),e=Mi(e,t)}return r}function Ai(e){if(void 0!==e)return Ci(e)}function Di(e){return Ri(Ci(e))}function Ci(e){return Li(Gf(e))}function Oi(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Ni(e,t){if(null==t)throw new RangeError(Al(e));return t}function ki(e){if(!qa(e))throw new TypeError(Il);return e}function Hi(e,t){if(typeof t!==e)throw new TypeError(El(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function Li(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(pl(t,e));return e||0}function Ri(e){if(e<=0)throw new RangeError(wl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function Pi(e){if("symbol"==typeof e)throw new TypeError(Ml);return String(e)}function Yi(e,t){return qa(e)?String(e):Kf(e,t)}function ji(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(bl(e));return e}function Fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(Sl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(vl(t,e));return e}function _i(e,t){return Math.trunc(Fi(e,t))||0}function Bi(e,t){return Li(Fi(e,t),t)}function xi(e,t){return Ri(_i(e,t),t)}function $i(e,t){let[n,r]=Si(t,bf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*bf),[o,r]}function Ui(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return $i(e[0]+t[0]*n,e[1]+t[1]*n)}function Zi(e,t){return $i(e[0],e[1]+t)}function zi(e,t){return Ui(t,e,-1)}function Vi(e,t){return yi(e[0],t[0])||yi(e[1],t[1])}function Ki(e,t,n){return-1===Vi(e,t)||1===Vi(e,n)}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(bf/t);return[Number(e/n),Number(e%n)*t]}function Gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=bf/t,[r,o]=Si(e,n);return[r,o*t]}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=bf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=Si(o,t);return r*(bf/t)+(a+(n?i/t:0))}function Xi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wi;const[r,o]=e,[a,i]=n(o,t);return[r*(bf/t)+a,i]}function Qi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function es(e){return Ja(e,"isoYear",bd,Sd,1),e.isoYear===bd?Ja(e,"isoMonth",4,12,1):e.isoYear===Sd&&Ja(e,"isoMonth",1,9,1),e}function ts(e){return ns({...e,...fd,isoHour:12}),e}function ns(e){const t=Ja(e,"isoYear",bd,Sd,1),n=t===bd?1:t===Sd?-1:0;return n&&rs(us({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function rs(e){if(!e||Ki(e,vd,wd))throw new RangeError(ql);return e}function os(e){return Ti(e,5,id)[1]}function as(e){const[t,n]=wi(e,bf);return[Ei(n,5,id),t]}function is(e){return ss(e)[0]}function ss(e){return Xi(e,wf)}function cs(e){return fs(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function us(e){const t=cs(e);if(void 0!==t){const[n,r]=Si(t,gf);return[n,r*pf+(e.isoMicrosecond||0)*yf+(e.isoNanosecond||0)]}}function hs(e,t){const[n,r]=as(os(e)-t);return rs(us({...e,isoDay:e.isoDay+r,...n}))}function ls(){return fs(...arguments)/mf}function fs(){const[e,t]=ds(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*gf}function ds(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===bd?1:e===Sd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function gs(e,t){let[n,r]=Zi(e,t);r<0&&(r+=bf,n-=1);const[o,a]=wi(r,pf),[i,s]=wi(a,yf);return ms(n*gf+o,i,s)}function ms(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)-pd)/gf)*Math.sign(e),o=new Date(e-r*gf);return ri(cd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ys(e){return[e.isoYear,e.isoMonth,e.isoDay]}function ps(){return Td}function ws(e,t){switch(t){case 2:return Ss(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function vs(e){return Ss(e)?366:365}function Ss(e){return e%4==0&&(e%100!=0||e%400==0)}function bs(e){const[t,n]=ds(e.isoYear,e.isoMonth,e.isoDay);return vi(t.getUTCDay()-n,7)||7}function Ms(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Is(e){const t=cs(e);if(t<Ed)return Ms(e);const n=Qi(Lg(Uf),t),{era:r,eraYear:o}=bh(n,Uf);return[r,o]}function Ts(e){return Es(e),Cs(e,1),e}function Es(e){return Ds(e,1),e}function As(e){return hi(sd,e,Ds(e))}function Ds(e,t){const{isoYear:n}=e,r=Ja(e,"isoMonth",1,ps(),t);return{isoYear:n,isoMonth:r,isoDay:Ja(e,"isoDay",1,ws(n,r),t)}}function Cs(e,t){return ri(id,[Ja(e,"isoHour",0,23,t),Ja(e,"isoMinute",0,59,t),Ja(e,"isoSecond",0,59,t),Ja(e,"isoMillisecond",0,999,t),Ja(e,"isoMicrosecond",0,999,t),Ja(e,"isoNanosecond",0,999,t)])}function Os(e){return void 0===e?0:Ud(ki(e))}function Ns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=xs(e);const n=Zd(e),r=zd(e,t);return[Ud(e),r,n]}function ks(e){return Zd(xs(e))}function Hs(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=xs(t);let i=xd(t,r,o),s=Fs(t),c=Gd(t,a);const u=Bd(t,r,o,1);return null==i?i=Math.max(n,u):Ks(i,u),s=_s(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function Ls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=Fs(e=$s(e,Dd));const o=Gd(e,7);let a=Bd(e,t);return a=Ni(Dd,a),r=_s(r,a,void 0,n),[a,r,o]}function Rs(e){return Vd(xs(e))}function Ps(e,t){return Ys(xs(e),t)}function Ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Bs(e);return[Gd(e,4),...js(Bd(e,t),n)]}function js(e,t){return null!=e?[Mf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function Fs(e){const t=e[Od];return void 0===t?1:_i(t,Od)}function _s(e,t,n,r){const o=r?bf:Mf[t+1];if(o){const n=Mf[t];if(o%((e=Ga(Od,e,1,o/n-(r?0:1),1))*n))throw new RangeError(El(Od,e))}else e=Ga(Od,e,1,n?10**9:1,1);return e}function Bs(e){let t=e[Nd];if(void 0!==t){if("number"!=typeof t){if("auto"===Pi(t))return;throw new RangeError(El(Nd,t))}t=Ga(Nd,Math.floor(t),0,9,1)}return t}function xs(e){return void 0===e?{}:ki(e)}function $s(e,t){return"string"==typeof e?{[t]:e}:ki(e)}function Us(e){if(void 0!==e){if(qa(e))return Object.assign(Object.create(null),e);throw new TypeError(Il)}}function Zs(e,t){return e&&Object.assign(Object.create(null),e,{overflow:Ld[t]})}function zs(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=Pi(a),"auto"===a)return o?r:null;let i=ff[a];if(void 0===i&&(i=nd[a]),void 0===i)throw new RangeError(Nl(e,a,ff));return Ga(e,i,r,n,1,df),i}function Vs(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=Pi(o),i=t[a];if(void 0===i)throw new RangeError(Nl(e,a,t));return i}function Ks(e,t){if(t>e)throw new RangeError(rf)}function Js(e){return{branding:ng,epochNanoseconds:e}}function Gs(e,t,n){return{branding:tg,calendar:n,timeZone:t,epochNanoseconds:e}}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Qd,calendar:t,...si(ld,e)}}function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Xd,calendar:t,...si(ud,e)}}function Xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Wd,calendar:t,...si(ud,e)}}function Qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:qd,calendar:t,...si(ud,e)}}function ec(e){return{branding:eg,...si(hd,e)}}function tc(e){return{branding:rg,sign:wu(e),...si(Xf,e)}}function nc(e){return Xi(e.epochNanoseconds,pf)[0]}function rc(e){return e.epochNanoseconds}function oc(e){return"string"==typeof e?e:Kf(e.id)}function ac(e,t){return e===t||oc(e)===oc(t)}function ic(e,t,n,r,o,a){const i={...rd,[qf[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function sc(e,t,n){const r=qi(zi(t,n));if(!r)throw new RangeError($l);return qi(zi(t,e))/r}function cc(e,t,n,r){return uc(e,fc(t,n),r)}function uc(e,t,n){const[r,o]=hc(e,t,n);return ns({...su(e,o),...r})}function hc(e,t,n){return as(vc(os(e),t,n))}function lc(e){return vc(e,vf,7)}function fc(e,t){return Mf[e]*t}function dc(e){const t=gc(e);return[t,su(t,1)]}function gc(e){return dd(6,e)}function mc(e,t,n){const r=Math.min(Eu(e),6);return Mu(wc(bu(e,r),t,n),r)}function yc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Ic:fu(i)&&r<6?Mc:bc;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=wu(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=ad(c,e);r[qf[c]]+=s;const u=qi(zi(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function pc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/bf)(e);return[vc(t,n,r),0]}return wc(e,fc(t,n),r,o)}function wc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=bf,o-=1);const[i,s]=wi(vc(a,t,n),bf);return $i(o+i,s)}function vc(e,t,n){return Sc(e/t,n)*t}function Sc(e,t){return og[t](e)}function bc(e,t,n,r,o,a){const i=wu(e),s=bu(e),c=pc(s,r,o,a),u=zi(s,c),h=Math.sign(c[0]-s[0])===i,l=Mu(c,Math.min(n,6));return[{...e,...l},Ui(t,u),h]}function Mc(e,t,n,r,o,a,i,s,c){const u=wu(e);let[h,l]=bu(e,5);const f=fc(r,o);let d=vc(l,f,a);const[g,m]=ic({...e,...od},6,u,i,s,c),y=d-qi(zi(g,m));y&&Math.sign(y)!==u?t=Zi(g,d):(h+=u,d=vc(y,f,a),t=Zi(m,d));const p=Iu(d);return[{...e,...p,days:e.days+h},t,Boolean(h)]}function Ic(e,t,n,r,o,a,i,s,c){const u=wu(e),h=qf[r],l=ad(r,e),f=bi(e[h],o)*o;l[h]=f;const[d,g]=ic(l,r,o*u,i,s,c),m=f+sc(t,d,g)*u*o,y=vc(m,o,a),p=Math.sign(y-m)===u;return l[h]=y,[l,p?g:d,p]}function Tc(e,t,n,r){const[o,a,i,s]=(e=>{const t=Ys(e=xs(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=wc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return Rc(gs(n,i),a)+(e?_c(lc(i)):"Z")})(c,t(c?e(o):ag),n.epochNanoseconds,a,i,s)}function Ec(e,t,n){const[r,o,a,i,s,c]=(e=>{e=xs(e);const t=Vd(e),n=Bs(e),r=Jd(e),o=Gd(e,4),a=Bd(e,4);return[t,Kd(e),r,o,...js(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=wc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return Rc(gs(r,h),u)+_c(lc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+oc(e)+"]":"")(n,a)+Bc(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Ac(e,t){const[n,r,o,a]=(e=>(e=xs(e),[Vd(e),...Ys(e)]))(t);return i=e.calendar,s=n,c=a,Rc(uc(e,o,r),c)+Bc(i,s);var i,s,c}function Dc(e,t){return n=e.calendar,r=e,o=Rs(t),Pc(r)+Bc(n,o);var n,r,o}function Cc(e,t){return Hc(e.calendar,Yc,e,Rs(t))}function Oc(e,t){return Hc(e.calendar,jc,e,Rs(t))}function Nc(e,t){const[n,r,o]=Ps(t);return a=o,Fc(hc(e,r,n)[0],a);var a}function kc(e,t){const[n,r,o]=Ps(t,3);return r>1&&(e={...e,...mc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?pu(e):e,{hours:o,minutes:a}=r,[i,s]=Xi(bu(r,3),wf,Si);Su(i);const c=$c(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+Lc({Y:Zc(r.years),M:Zc(r.months),W:Zc(r.weeks),D:Zc(r.days)})+(o||a||i||u?"T"+Lc({H:Zc(o),M:Zc(a),S:Zc(i,u)+c}):"")})(e,o)}function Hc(e,t,n,r){const o=oc(e),a=r>1||0===r&&o!==xf;return 1===r?o===xf?t(n):Pc(n):a?Pc(n)+xc(o,2===r):t(n)}function Lc(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Rc(e,t){return Pc(e)+"T"+Fc(e,t)}function Pc(e){return Yc(e)+"-"+lf(e.isoDay)}function Yc(e){const{isoYear:t}=e;return(t<0||t>9999?Uc(t)+mi(6,Math.abs(t)):mi(4,t))+"-"+lf(e.isoMonth)}function jc(e){return lf(e.isoMonth)+"-"+lf(e.isoDay)}function Fc(e,t){const n=[lf(e.isoHour),lf(e.isoMinute)];return-1!==t&&n.push(lf(e.isoSecond)+((e,t,n,r)=>$c(e*pf+t*yf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function _c(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=wi(Math.abs(e),Sf),[r,o]=wi(n,vf),[a,i]=wi(o,wf);return Uc(e)+lf(t)+":"+lf(r)+(a||i?":"+lf(a)+$c(i):"")}function Bc(e,t){if(1!==t){const n=oc(e);if(t>1||0===t&&n!==xf)return xc(n,2===t)}return""}function xc(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function $c(e,t){let n=mi(9,e);return n=void 0===t?n.replace(ug,""):n.slice(0,t),n?"."+n:""}function Uc(e){return e<0?"-":"+"}function Zc(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function zc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=gs(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Vc(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 hs(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=us(t);r&&(n=lc(n));for(const t of e){let e=qi(zi(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(Gl)}return i?us(t):Kc(e,t,o,s)}function Kc(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(Wl);if(r.length)return r[3===n?1:0];const o=us(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(Zi(t,-bf));return Gc(e.getOffsetNanosecondsFor(Zi(t,bf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(gs(o,i)))[2===n?0:r.length-1]}function Jc(e){if(Math.abs(e)>=bf)throw new RangeError(Kl);return e}function Gc(e){if(e>bf)throw new RangeError(Jl);return e}function Wc(e,t,n){return Js(rs(Ui(t.epochNanoseconds,(e=>{if(Tu(e))throw new RangeError(tf);return bu(e,5)})(e?pu(n):n))))}function qc(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,...nu(s,i,r,n?pu(o):o,a)}}function Xc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Ws(ru(e(a),n,t?pu(r):r,o),a)}function Qc(e,t,n,r,o){const{calendar:a}=n;return qs(ou(e(a),n,t?pu(r):r,o),a)}function eu(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=au(i,n);t&&(r=yu(r)),r.sign<0&&(s=i.dateAdd(s,{...rd,months:1}),s=su(s,-1));const c=i.dateAdd(s,r,o);return Xs(au(i,c),a)}function tu(e,t,n){return ec(iu(t,e?pu(n):n)[0])}function nu(e,t,n,r,o){const a=bu(r,5);let i=n.epochNanoseconds;if(Tu(r)){const s=hg(n,t);i=Ui(Kc(t,{...ou(e,s,{...r,...od},o),...si(id,s)}),a)}else i=Ui(i,a),Os(o);return{epochNanoseconds:rs(i)}}function ru(e,t,n,r){const[o,a]=iu(t,n);return ns({...ou(e,t,{...n,...od,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);Os(r);const o=n.days+bu(n,5)[0];return o?ts(su(t,o)):t}function au(e,t){return su(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function iu(e,t){const[n,r]=bu(t,5),[o,a]=as(os(e)+r);return[o,n+a]}function su(e,t){return t?{...e,...ms(cs(e)+t*gf)}:e}function cu(e,t,n){const r=e(n.calendar);return fu(n)?[n,r,t(n.timeZone)]:[{...n,...fd},r]}function uu(e){return e?rc:us}function hu(e,t){return t?fi(nu,e,t):fi(ru,e)}function lu(e,t){return t?fi(ch,e,t):fi(uh,e)}function fu(e){return e&&e.epochNanoseconds}function du(e,t){return e<=6-(fu(t)?1:0)}function gu(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function mu(e,t,n,r,o,a,i){const s=e(xs(i).relativeTo),c=Math.max(Eu(o),Eu(a));if(du(c,s))return tc(vu(((e,t,n,r)=>{const o=Ui(bu(e),bu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(ql);return{...rd,...Mu(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(ef);r&&(a=pu(a));const[u,h,l]=cu(t,n,s),f=hu(h,l),d=lu(h,l),g=f(u,o);return tc(d(u,f(g,a),c))}function yu(e){return tc(pu(e))}function pu(e){const t={};for(const n of qf)t[n]=-1*e[n]||0;return t}function wu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qf,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Ql);n=t}}return n}function vu(e){for(const t of td)Ga(t,e[t],-lg,lg,1);return Su(qi(bu(e),wf)),e}function Su(e){if(!Number.isSafeInteger(e))throw new RangeError(Xl)}function bu(e){return Ti(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,qf)}function Mu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Ei(r,t,qf);if(o[qf[t]]+=n*(bf/Mf[t]),!Number.isFinite(o[qf[t]]))throw new RangeError(ql);return o}function Iu(e){return Ei(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,qf)}function Tu(e){return Boolean(wu(e,ed))}function Eu(e){let t=9;for(;t>0&&!e[qf[t]];t--);return t}function Au(e,t){return[e,t]}function Du(e){const t=Math.floor(e/ig)*ig;return[t,t+ig]}function Cu(e){const t=Fu(e);if(void 0===t)throw new RangeError(of(e));return t}function Ou(e){const t=Pu(Kf(e));if(!t||t.O)throw new RangeError(of(e));return qs(t.I?Hu(t):Lu(t))}function Nu(e){if(e.calendar!==xf)throw new RangeError(af(e.calendar))}function ku(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=Vu(e.timeZone),a=fg(o);return Gs(Vc(a,Ts(e),t,n,r,!a.R,e.O),o,Nh(e.calendar))}function Hu(e){return Ru(ns(Ts(e)))}function Lu(e){return Ru(ts(Es(e)))}function Ru(e){return{...e,calendar:Nh(e.calendar)}}function Pu(e){const t=Eg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:_u(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Bu(e.slice(5)),...xu(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function Yu(e){const t=Ig.exec(e);return t?(e=>({isoYear:_u(e),isoMonth:parseInt(e[4]),isoDay:1,...xu(e[5])}))(t):void 0}function ju(e){const t=Tg.exec(e);return t?(e=>({isoYear:Id,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...xu(e[3])}))(t):void 0}function Fu(e,t){const n=Dg.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(af(n));return Jc((zu(e[2])*Sf+zu(e[3])*vf+zu(e[4])*wf+$u(e[5]||""))*Zu(e[1]))})(n,t):void 0}function _u(e){const t=Zu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(af(-0));return t*n}function Bu(e){const t=zu(e[3]);return{...as($u(e[4]||""))[0],isoHour:zu(e[1]),isoMinute:zu(e[2]),isoSecond:60===t?59:t}}function xu(e){let t,n;const r=[];if(e.replace(Cg,((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(af(e))}else{if(n)throw new RangeError(af(e));n=s}return""})),r.length>1&&t)throw new RangeError(af(e));return{timeZone:n,calendar:r[0]||xf}}function $u(e){return parseInt(e.padEnd(9,"0"))}function Uu(e){return new RegExp(`^${e}$`,"i")}function Zu(e){return e&&"+"!==e?-1:1}function zu(e){return void 0===e?0:parseInt(e)}function Vu(e){const t=Ju(e);return"number"==typeof t?_c(t):t?(e=>{if(kg.test(e))throw new RangeError(Vl);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?di(e).replace(/island|noronha|murdo|rivadavia|urville/,di):e)))).join("/")})(e):ag}function Ku(e){const t=Ju(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:ag}function Ju(e){const t=Fu(e=e.toUpperCase(),1);return void 0!==t?t:e!==ag?Ng(e):void 0}function Gu(e,t){return Vi(e.epochNanoseconds,t.epochNanoseconds)}function Wu(e,t){return Vi(e.epochNanoseconds,t.epochNanoseconds)}function qu(e,t){return Xu(e,t)||Qu(e,t)}function Xu(e,t){return yi(cs(e),cs(t))}function Qu(e,t){return yi(os(e),os(t))}function eh(e,t){if(e===t)return 1;const n=oc(e),r=oc(t);if(n===r)return 1;try{return Ku(n)===Ku(r)}catch(e){}}function th(e,t,n,r){const o=Hs(e,Us(r),3,5),a=fh(t.epochNanoseconds,n.epochNanoseconds,...o);return tc(e?pu(a):a)}function nh(e,t,n,r,o,a){const i=ph(r.calendar,o.calendar),s=Us(a),[c,u,h,l]=Hs(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Vi(d,f);let m;if(g)if(c<6)m=fh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!eh(e,t))throw new RangeError(zl);return e})(r.timeZone,o.timeZone)),a=e(i);m=hh(a,n,r,o,g,c,s),m=yc(m,d,c,u,h,l,r,rc,fi(nu,a,n))}else m=rd;return tc(n?pu(m):m)}function rh(e,t,n,r,o){const a=ph(n.calendar,r.calendar),i=Us(o),[s,c,u,h]=Hs(t,i,6),l=us(n),f=us(r),d=Vi(f,l);let g;if(d)if(s<=6)g=fh(l,f,s,c,u,h);else{const t=e(a);g=lh(t,n,r,d,s,i),g=yc(g,f,s,c,u,h,n,us,fi(ru,t))}else g=rd;return tc(t?pu(g):g)}function oh(e,t,n,r,o){const a=ph(n.calendar,r.calendar),i=Us(o);return ih(t,(()=>e(a)),n,r,...Hs(t,i,6,9,6),i)}function ah(e,t,n,r,o){const a=ph(n.calendar,r.calendar),i=Us(o),s=Hs(t,i,9,9,8),c=e(a);return ih(t,(()=>c),au(c,n),au(c,r),...s,i)}function ih(e,t,n,r,o,a,i,s,c){const u=us(n),h=us(r);let l;if(Vi(h,u))if(6===o)l=fh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=yc(l,h,o,a,i,s,n,us,fi(ou,e)))}else l=rd;return tc(e?pu(l):l)}function sh(e,t,n,r){const o=Us(r),[a,i,s,c]=Hs(e,o,5,5),u=vc(yh(t,n),fc(i,s),c),h={...rd,...Iu(u,a)};return tc(e?pu(h):h)}function ch(e,t,n,r,o,a){const i=Vi(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?dh(n.epochNanoseconds,r.epochNanoseconds,o):hh(e,t,n,r,i,o,a):rd}function uh(e,t,n,r,o){const a=us(t),i=us(n),s=Vi(i,a);return s?r<=6?dh(a,i,r):lh(e,t,n,s,r,o):rd}function hh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...su(s,u++*-r),...i},f=Kc(e,l),Vi(c,f)===-r}const a=hg(t,e),i=si(id,a),s=hg(n,e),c=n.epochNanoseconds;let u=0;const h=yh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError($l);const d=qi(zi(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...rd,days:gh(h,l)}):e.dateUntil(s,c,a,i),...Iu(u)}}function lh(e,t,n,r,o,a){let i=t,s=yh(t,n);return Math.sign(s)===-r&&(i=su(t,r),s+=bf*r),{...e.dateUntil(i,n,o,a),...Iu(s)}}function fh(e,t,n,r,o,a){return{...rd,...Mu(pc(zi(e,t),r,o,a),n)}}function dh(e,t,n){return{...rd,...Mu(zi(e,t),n)}}function gh(e,t){return mh(cs(e),cs(t))}function mh(e,t){return Math.trunc((t-e)/gf)}function yh(e,t){return os(t)-os(e)}function ph(e,t){if(!ac(e,t))throw new RangeError(Ul);return e}function wh(e){function t(e){return((e,t)=>({...bh(e,t),o:e.month,day:parseInt(e.day)}))(Qi(n,e),r)}const n=Lg(e),r=kh(e);return{id:e,h:vh(t),l:Sh(t)}}function vh(e){return Xa((t=>{const n=cs(t);return e(n)}),WeakMap)}function Sh(e){const t=e(0).year-Md;return Xa((n=>{let r,o=fs(n-t);const a=[],i=[];do{o+=400*gf}while((r=e(o)).year<=n);do{o+=(1-r.day)*gf,r.year===n&&(a.push(o),i.push(r.o)),o-=gf}while((r=e(o)).year>=n);return{i:a.reverse(),u:uf(i.reverse())}}))}function bh(e,t){let n,r,o=Mh(e);if(e.era){const i=Zf[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=zf[a]||a,r=o,o=Fh(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function Mh(e){return parseInt(e.relatedYear||e.year)}function Ih(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Th(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*gf}function Eh(e){const t=Oh(this,e),n=Oh(this,e-1),r=t.length;if(r>n.length){const e=Bh(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Ah(e){return mh(Th.call(this,e),Th.call(this,e+1))}function Dh(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),mh(n[t-1],o[r-1])}function Ch(e){return this.l(e).i.length}function Oh(e,t){return Object.keys(e.l(t).u)}function Nh(e){if((e=e.toLowerCase())!==xf&&e!==$f&&kh(e)!==kh(Lg(e).resolvedOptions().calendar))throw new RangeError(Zl(e));return e}function kh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function Hh(e){return this.m(e)[0]}function Lh(e){return this.m(e)[1]}function Rh(e){const[t]=this.v(e);return mh(this.p(t),cs(e))+1}function Ph(e){const t=Rg.exec(e);if(!t)throw new RangeError(jl(e));return[parseInt(t[1]),Boolean(t[2])]}function Yh(e,t,n){return e+(t||n&&e>=n?1:0)}function jh(e,t){return e-(t&&e>=t?1:0)}function Fh(e,t){return(t+e)*(Math.sign(t)||1)||0}function _h(e){return Zf[xh(e)]}function Bh(e){return Vf[xh(e)]}function xh(e){return kh(e.id||xf)}function $h(e,t,n,r){const o=Vh(n,r,jf,[],Cf);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Jh(o),i=e(o.timeZone);return{epochNanoseconds:Vc(t(i),{...r,...a},void 0!==o.offset?Cu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...fd}}function Uh(e,t,n){const r=Vh(e,t,jf,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Zh(e,t,n,r){const o=Vh(e,t,Pf,r);return e.yearMonthFromFields(o,n)}function zh(e,t,n,r){const o=Vh(e,n,jf,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=Id),e.monthDayFromFields(o,r)}function Vh(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 Kh(t,[...e.fields(n),...o].sort(),r)}function Kh(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(Cl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Dl(r));let t=e[r];if(void 0!==t)i=1,Fg[r]&&(t=Fg[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(Al(r));o[r]=Bf[r]}a=r}if(r&&!i)throw new TypeError(Ol(t));return o}function Jh(e,t){return Cs(_g({...Bf,...e}),t)}function Gh(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=Kh(t,i,a);const c=Kh(n,i);return s=e.mergeFields(s,c),Kh(s,i,[])}function Wh(e,t){const n=Vh(e,t,_f);return e.monthDayFromFields(n)}function qh(e,t,n){const r=Vh(e,t,Yf);return e.yearMonthFromFields(r,n)}function Xh(e,t,n,r,o){t=si(n=e.fields(n),t),r=Kh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Kh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Qh(e,t){let{era:n,eraYear:r,year:o}=t;const a=_h(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(Ll);if(!a)throw new RangeError(Hl);const e=a[n];if(void 0===e)throw new RangeError(Pl(n));const t=Fh(r,e);if(void 0!==o&&o!==t)throw new RangeError(Rl);o=t}else if(void 0===o)throw new TypeError(Yl(a));return o}function el(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=Ph(t);let s=Yh(a,i,o);if(i){const t=Bh(e);if(void 0===t)throw new RangeError(xl);if(t>0){if(s>t)throw new RangeError(xl);if(void 0===o){if(1===r)throw new RangeError(xl);s--}}else{if(s!==-t)throw new RangeError(xl);if(void 0===o&&1===r)throw new RangeError(xl)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(Fl);o=t,r=1}else if(void 0===o)throw new TypeError(_l);return Ga("month",o,1,e.j(n),r)}function tl(e,t,n,r,o){return Ja(t,"day",1,e.N(r,n),o)}function nl(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 rl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xf;return Gs(e.epochNanoseconds,t,n)}function ol(e,t){return Ws(hg(t,e))}function al(e,t){return qs(hg(t,e))}function il(e,t){return ec(hg(t,e))}function sl(e,t){return{...e,calendar:t}}function cl(e,t){if(e===t)return e;const n=oc(e),r=oc(t);if(n===r||n===xf)return t;if(r===xf)return e;throw new RangeError(Ul)}function ul(e,t){return n=>n===xf?e:n===$f||n===Uf?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),Hg(n))}function hl(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=ci(r,o),e)||Object.assign(o,t),n&&(o.timeZone=ag,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gm;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,...dl(e,h,s)]}}function fl(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(cf);n.timeZone=e}return new gd(t,n)}function dl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==xf)&&e!==t)throw new RangeError(Ul)})(oc(e.calendar),t.calendar,o),r(e,t))))}function gl(e){const t=ml();return gs(t,e.getOffsetNanosecondsFor(t))}function ml(){return Gi(Date.now(),pf)}function yl(){return Mm||(Mm=(new gd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?ca:u?ca[s]||fa(s,{}):ca[s]&&ca[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=ua(n,r))&&i.value:n[r],!ga(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;da(a,o)}(e.sham||o&&o.sham)&&ha(a,"sham",!0),la(n,r,a,e)}})({target:"Array",proto:!0,forced:ke((function(){return!Array(1).includes()}))},{includes:function(e){return Va(this,e,arguments.length>1?arguments[1]:void 0)}}),Ka("includes");const pl=(e,t)=>`Non-integer ${e}: ${t}`,wl=(e,t)=>`Non-positive ${e}: ${t}`,vl=(e,t)=>`Non-finite ${e}: ${t}`,Sl=e=>`Cannot convert bigint to ${e}`,bl=e=>`Invalid bigint: ${e}`,Ml="Cannot convert Symbol to string",Il="Invalid object",Tl=(e,t,n,r,o)=>o?Tl(e,o[t],o[n],o[r]):El(e,t)+`; must be between ${n}-${r}`,El=(e,t)=>`Invalid ${e}: ${t}`,Al=e=>`Missing ${e}`,Dl=e=>`Invalid field ${e}`,Cl=e=>`Duplicate field ${e}`,Ol=e=>"No valid fields: "+e.join(),Nl=(e,t,n)=>El(e,t)+"; must be "+Object.keys(n).join(),kl="Invalid calling context",Hl="Forbidden era/eraYear",Ll="Mismatching era/eraYear",Rl="Mismatching year/eraYear",Pl=e=>`Invalid era: ${e}`,Yl=e=>"Missing year"+(e?"/era/eraYear":""),jl=e=>`Invalid monthCode: ${e}`,Fl="Mismatching month/monthCode",_l="Missing month/monthCode",Bl="Cannot guess year",xl="Invalid leap month",$l="Invalid protocol results",Ul="Mismatching Calendars",Zl=e=>`Invalid Calendar: ${e}`,zl="Mismatching TimeZones",Vl="Forbidden ICU TimeZone",Kl="Out-of-bounds offset",Jl="Out-of-bounds TimeZone gap",Gl="Invalid TimeZone offset",Wl="Ambiguous offset",ql="Out-of-bounds date",Xl="Out-of-bounds duration",Ql="Cannot mix duration signs",ef="Missing relativeTo",tf="Cannot use large units",nf="Required smallestUnit or largestUnit",rf="smallestUnit > largestUnit",of=e=>`Cannot parse: ${e}`,af=e=>`Invalid substring: ${e}`,sf=e=>`Cannot format ${e}`,cf="Cannot specify TimeZone",uf=fi(ai,((e,t)=>t)),hf=fi(ai,((e,t,n)=>n)),lf=fi(mi,2),ff={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},df=Object.keys(ff),gf=864e5,mf=1e3,yf=1e3,pf=1e6,wf=1e9,vf=6e10,Sf=36e11,bf=864e11,Mf=[1,yf,pf,wf,vf,Sf,bf],If=df.slice(0,6),Tf=gi(If),Ef=["offset"],Af=["timeZone"],Df=If.concat(Ef),Cf=Df.concat(Af),Of=["era","eraYear"],Nf=Of.concat(["year"]),kf=["year"],Hf=["monthCode"],Lf=["month"].concat(Hf),Rf=["day"],Pf=Lf.concat(kf),Yf=Hf.concat(kf),jf=Rf.concat(Pf),Ff=Rf.concat(Lf),_f=Rf.concat(Hf),Bf=hf(If,0),xf="iso8601",$f="gregory",Uf="japanese",Zf={[$f]:{bce:-1,ce:0},[Uf]:{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}},zf={bc:"bce",ad:"ce"},Vf={chinese:13,dangi:13,hebrew:-6},Kf=fi(Hi,"string"),Jf=fi(Hi,"boolean"),Gf=fi(Hi,"number"),Wf=fi(Hi,"function"),qf=df.map((e=>e+"s")),Xf=gi(qf),Qf=qf.slice(0,6),ed=qf.slice(6),td=ed.slice(1),nd=uf(qf),rd=hf(qf,0),od=hf(Qf,0),ad=fi(li,qf),id=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],sd=["isoDay","isoMonth","isoYear"],cd=id.concat(sd),ud=gi(sd),hd=gi(id),ld=gi(cd),fd=hf(hd,0),dd=fi(li,cd),gd=Intl.DateTimeFormat,md="en-GB",yd=1e8,pd=yd*gf,wd=[yd,0],vd=[-yd,0],Sd=275760,bd=-271821,Md=1970,Id=1972,Td=12,Ed=fs(1868,9,8),Ad=Xa(Is,WeakMap),Dd="smallestUnit",Cd="unit",Od="roundingIncrement",Nd="fractionalSecondDigits",kd="relativeTo",Hd={constrain:0,reject:1},Ld=Object.keys(Hd),Rd={compatible:0,reject:1,earlier:2,later:3},Pd={reject:0,use:1,prefer:2,ignore:3},Yd={auto:0,never:1,critical:2,always:3},jd={auto:0,never:1,critical:2},Fd={auto:0,never:1},_d={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Bd=fi(zs,Dd),xd=fi(zs,"largestUnit"),$d=fi(zs,Cd),Ud=fi(Vs,"overflow",Hd),Zd=fi(Vs,"disambiguation",Rd),zd=fi(Vs,"offset",Pd),Vd=fi(Vs,"calendarName",Yd),Kd=fi(Vs,"timeZoneName",jd),Jd=fi(Vs,"offset",Fd),Gd=fi(Vs,"roundingMode",_d),Wd="PlainYearMonth",qd="PlainMonthDay",Xd="PlainDate",Qd="PlainDateTime",eg="PlainTime",tg="ZonedDateTime",ng="Instant",rg="Duration",og=[Math.floor,e=>Ii(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Ii(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Ii(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=>Ii(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ag="UTC",ig=5184e3,sg=ls(1847),cg=ls((new Date).getUTCFullYear()+10),ug=/0+$/,hg=Xa(zc,WeakMap),lg=2**32-1,fg=Xa((e=>{const t=Ju(e);return"object"==typeof t?new gg(t):new dg(t||0)}));class dg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[hs(e,this.R)]}B(){}}class gg{constructor(e){this.q=(e=>{function t(e){const t=pi(e,a,i),[s,c]=Du(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=Xa(e),o=Xa(Au);let a=sg,i=cg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=pi(e,a,i);let[c,u]=Du(s);const h=ig*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((yi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Qi(e,t*mf);return ls(Mh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(is(e))*wf}getPossibleInstantsFor(e){const[t,n]=[ls((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*pf+r.isoMicrosecond*yf+r.isoNanosecond];var r;return this.q.J(t).map((e=>rs(Zi(Gi(e,wf),n))))}B(e,t){const[n,r]=ss(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Gi(o,wf)}}const mg="([+−-])",yg="(?:[.,](\\d{1,9}))?",pg=`(?:(?:${mg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,wg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+yg+")?)?",vg=mg+wg,Sg=pg+"-?(\\d{2})(?:[T ]"+wg+"(Z|"+vg+")?)?",bg="\\[(!?)([^\\]]*)\\]",Mg=`((?:${bg}){0,9})`,Ig=Uu(pg+Mg),Tg=Uu("(?:--)?(\\d{2})-?(\\d{2})"+Mg),Eg=Uu(Sg+Mg),Ag=Uu("T?"+wg+"(?:"+vg+")?"+Mg),Dg=Uu(vg),Cg=new RegExp(bg,"g"),Og=Uu(`${mg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${yg}H)?(?:(\\d+)${yg}M)?(?:(\\d+)${yg}S)?)?`),Ng=Xa((e=>new gd(md,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),kg=/^(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$/,Hg=Xa(wh),Lg=Xa((e=>new gd(md,{calendar:e,timeZone:ag,era:"short",year:"numeric",month:"short",day:"numeric"}))),Rg=/^M(\d{2})(L?)$/,Pg={era:Yi,eraYear:_i,year:_i,month:xi,monthCode:Yi,day:xi},Yg=hf(If,_i),jg=hf(qf,Bi),Fg=Object.assign({},Pg,Yg,jg,{offset:Yi}),_g=fi(ii,If,id),Bg={dateAdd(e,t,n){const r=Os(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=bu(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=Yh(t,r,e.P(a)),i=Ga("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ga("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=cs(e)}return o+=(7*s+c)*gf,ts(ms(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=gh({...e,...fd},{...t,...fd});return 7===n&&([r,o]=Si(o,7)),{...rd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-Yh(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...rd,years:a,months:i,days:s}},dateFromFields(e,t){const n=Os(t),r=Qh(this,e),o=el(this,e,r,n),a=tl(this,e,o,r,n);return qs(ts(this.L(r,o,a)),this.id||xf)},yearMonthFromFields(e,t){const n=Os(t),r=Qh(this,e),o=el(this,e,r,n);return Xs(es(this.L(r,o,1)),this.id||xf)},monthDayFromFields(e,t){const n=Os(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=Ph(o),l=Wa(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(Bl);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(Fl);r&&(h=Ga("month",h,1,Td,1),l=Ga("day",l,1,ws(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Id:Qh(this,e),h=el(this,e,u,n),l=tl(this,e,h,u,n);const t=this.P(u);c=h===t,s=jh(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(Bl);[u,h]=o}return Qs(ts(this.L(u,h,l)),this.id||xf)},fields(e){return _h(this)&&e.includes("year")?[...e,...Of]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return nl(n,t,Lf),_h(this)&&(nl(n,t,Nf),this.id===Uf&&nl(n,t,Ff,Of)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:Rh,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+lf(e)+(t?"L":""))(r,o)},dayOfWeek:bs,daysInWeek:()=>7},xg={dayOfYear:Rh,v:ys,p:fs},$g=Object.assign({},xg,{weekOfYear:Hh,yearOfWeek:Lh,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=vs(f+e),r=e||1,o=t(vi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=bs(e),a=this.dayOfYear(e),i=vi(o-1,7),s=a-1,c=vi(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]}}),Ug={dayOfYear:Rh,v:Ih,p:Th,weekOfYear:Hh,yearOfWeek:Lh,m:()=>[]},Zg=ul(Object.assign({},Bg,$g,{v:ys,nn(e){return this.id===$f?Ms(e):this.id===Uf?Ad(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Id,e]},K:Ss,P(){},j:ps,V:e=>e*Td,N:ws,X:vs,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:fs,G:(e,t,n)=>(e+=bi(n,Td),(t+=Mi(n,Td))<1?(e--,t+=Td):t>Td&&(e++,t-=Td),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},Bg,Ug,{v:Ih,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Eh.call(this,e);return[jh(t,n),n===t]},k(e,t,n){let[r,o,a]=Ih.call(this,{isoYear:Id,isoMonth:Td,isoDay:31});const i=Eh.call(this,r),s=o===i;1===(yi(e,jh(o,i))||yi(Number(t),Number(s))||yi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Eh.call(this,a),s=Yh(e,t,i);if(t===(s===i)&&n<=Dh.call(this,a,s))return[a,s]}},K(e){const t=Ah.call(this,e);return t>Ah.call(this,e-1)&&t>Ah.call(this,e+1)},P:Eh,j:Ch,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=Ch.call(this,e+o);return a},N:Dh,X:Ah,L(e,t,n){return ms(Th.call(this,e,t,n))},p:Th,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(ql);if(n<0)for(;t<1;)t+=Ch.call(this,--e);else{let n;for(;t>(n=Ch.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),zg="numeric",Vg=["timeZoneName"],Kg={month:zg,day:zg},Jg={year:zg,month:zg},Gg=Object.assign({},Jg,{day:zg}),Wg={hour:zg,minute:zg,second:zg},qg=Object.assign({},Gg,Wg),Xg=Object.assign({},qg,{timeZoneName:"short"}),Qg=Object.keys(Jg),em=Object.keys(Kg),tm=Object.keys(Gg),nm=Object.keys(Wg),rm=["dateStyle"],om=Qg.concat(rm),am=em.concat(rm),im=tm.concat(rm,["weekday"]),sm=nm.concat(["dayPeriod","timeStyle"]),cm=im.concat(sm),um=cm.concat(Vg),hm=Vg.concat(sm),lm=Vg.concat(im),fm=Vg.concat(["day","weekday"],sm),dm=Vg.concat(["year","weekday"],sm),gm={},mm=[hl(cm,qg),nc],ym=[hl(um,Xg),nc,0,(e,t)=>{const n=oc(e.timeZone);if(t&&oc(t.timeZone)!==n)throw new RangeError(zl);return n}],pm=[hl(cm,qg,Vg),cs],wm=[hl(im,Gg,hm),cs],vm=[hl(sm,Wg,lm),e=>os(e)/pf],Sm=[hl(om,Jg,fm),cs,1],bm=[hl(am,Kg,dm),cs,1];let Mm;function Im(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(kl);wy(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)}),Qa(t))}function s(t){const n=py(t);if(!n||n.branding!==e)throw new TypeError(kl);return n}return Object.defineProperties(a.prototype,{...ti(oi(i,n)),...ei(oi(i,r)),...ni("Temporal."+e)}),Object.defineProperties(a,{...ei(o),...Qa(e)}),[a,e=>{const t=Object.create(a.prototype);return wy(t,e),t},s]}function Tm(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function Em(e){if(py(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Am(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=py(n)||{},{branding:i}=a,s=i===Xd||t.includes(i)?a:$m(n);return o[r](s)};return n}function Dm(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Zg(r):(o=r,Object.assign(Object.create(Ty),{C:o})))[n](e);var r,o};return t}function Cm(){throw new TypeError("Cannot use valueOf")}function Om(e){let{calendar:t}=e;return"string"==typeof t?new Mp(t):t}function Nm(e,t){if(t=Us(t),qa(e)){const n=py(e);if(n&&n.branding===qd)return Os(t),n;const r=Jm(e);return zh(hp(r||xf),!r,e,t)}const n=function(e,t){const n=ju(Kf(t));if(n)return Nu(n),Qs(Es(n));const r=Ou(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Qs(ts(a.L(l,f,c)),o)}(Zg,e);return Os(t),n}function km(e,t,n){return Jc(Ci(t.call(e,Py(Js(n)))))}function Hm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hy;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,Wf(e[o]));return r}function Lm(e,t){return"string"==typeof e?fg(e):Hm(e,t)}function Rm(e){return Lm(e,Ly)}function Pm(e){if(qa(e)){const t=py(e);if(t)switch(t.branding){case ng:return t;case tg:return Js(t.epochNanoseconds)}}return function(e){const t=Pu(e=Yi(e));if(!t)throw new RangeError(of(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(of(e));n=Cu(t.offset)}return t.timeZone&&Fu(t.timeZone,1),Js(hs(Ts(t),n))}(e)}function Ym(e,t,n){const r=t.B(Pm(n).epochNanoseconds,e);return r?Py(Js(r)):null}function jm(e){return qa(e)?(py(e)||{}).timeZone||_y(e):(e=>Vu(function(e){const t=Pu(e);return t&&(t.timeZone||t.O&&ag||t.offset)||e}(Kf(e))))(e)}function Fm(e,t){if(qa(e)){const n=py(e)||{};switch(n.branding){case eg:return Os(t),n;case Qd:return Os(t),ec(n);case tg:return Os(t),il(Rm,n)}return function(e,t){const n=Os(t);return ec(Jh(Kh(e,Tf,[],1),n))}(e,t)}return Os(t),function(e){let t,n=(e=>{const t=Ag.exec(e);return t?(xu(t[10]),Bu(t)):void 0})(Kf(e));if(!n){if(n=Pu(e),!n)throw new RangeError(of(e));if(!n.I)throw new RangeError(of(e));if(n.O)throw new RangeError(af("Z"));Nu(n)}if((t=Yu(e))&&As(t))throw new RangeError(of(e));if((t=ju(e))&&As(t))throw new RangeError(of(e));return ec(Cs(n,1))}(e)}function _m(e){return void 0===e?void 0:Fm(e)}function Bm(e,t){if(t=Us(t),qa(e)){const n=py(e);return n&&n.branding===Wd?(Os(t),n):Zh(cp(Km(e)),e,t)}const n=function(e,t){const n=Yu(Kf(t));if(n)return Nu(n),Xs(es(Es(n)));const r=Ou(t);return Xs(au(e(r.calendar),r))}(Zg,e);return Os(t),n}function xm(e,t){if(t=Us(t),qa(e)){const n=py(e)||{};switch(n.branding){case Qd:return Os(t),n;case Xd:return Os(t),Ws({...n,...fd});case tg:return Os(t),ol(Rm,n)}return function(e,t,n){const r=Vh(e,t,jf,[],If),o=Os(n);return Ws(ns({...e.dateFromFields(r,Zs(n,o)),...Jh(r,o)}))}(up(Km(e)),e,t)}const n=function(e){const t=Pu(Kf(e));if(!t||t.O)throw new RangeError(of(e));return Ws(Hu(t))}(e);return Os(t),n}function $m(e,t){if(t=Us(t),qa(e)){const n=py(e)||{};switch(n.branding){case Xd:return Os(t),n;case Qd:return Os(t),qs(n);case tg:return Os(t),al(Rm,n)}return Uh(up(Km(e)),e,t)}const n=Ou(e);return Os(t),n}function Um(e,t,n){return Di(t.call(e,Jy(qs(n,e))))}function Zm(e){return t=>"string"==typeof t?Zg(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,e[o]);return r})(t,e)}function zm(e){if(qa(e)){const t=py(e);return t&&t.branding===rg?t:function(e){const t=Kh(e,Xf);return tc(vu({...rd,...t}))}(e)}return function(e){const t=(e=>{const t=Og.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=wi(o,Mf[a])),void 0!==e){if(r)throw new RangeError(af(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(af(e));return t})(e),n=1,t&&(o=$u(t)*(Mf[a]/wf),r=1)}return i+s}let n=0,r=0,o=0,a={...ri(qf,[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)]),...Ei(o,2,qf)};if(!n)throw new RangeError(Ol(qf));return Zu(e[1])<0&&(a=pu(a)),a})(t):void 0})(Kf(e));if(!t)throw new RangeError(of(e));return tc(vu(t))}(e)}function Vm(e){if(void 0!==e){if(qa(e)){const t=py(e)||{};switch(t.branding){case tg:case Xd:return t;case Qd:return qs(t)}const n=Km(e);return{...$h(jm,Lm,up(n),e),calendar:n}}return function(e){const t=Pu(Kf(e));if(!t)throw new RangeError(of(e));if(t.timeZone)return ku(t,t.offset?Cu(t.offset):void 0);if(t.O)throw new RangeError(of(e));return Lu(t)}(e)}}function Km(e){return Jm(e)||xf}function Jm(e){const{calendar:t}=e;if(void 0!==t)return Gm(t)}function Gm(e){return qa(e)?(py(e)||{}).calendar||Ip(e):(e=>Nh(function(e){const t=Pu(e)||Yu(e)||ju(e);return t?t.calendar:e}(Kf(e))))(e)}function Wm(e,t){if(t=Us(t),qa(e)){const n=py(e);if(n&&n.branding===tg)return Ns(t),n;const r=Km(e);return function(e,t,n,r,o,a){const i=Vh(n,o,jf,Af,Cf),s=e(i.timeZone),[c,u,h]=Ns(a),l=n.dateFromFields(i,Zs(a,c)),f=Jh(i,c);return Gs(Vc(t(s),{...l,...f},void 0!==i.offset?Cu(i.offset):void 0,u,h),s,r)}(jm,Lm,up(r),r,e,t)}return function(e,t){const n=Pu(Kf(e));if(!n||!n.timeZone)throw new RangeError(of(e));const{offset:r}=n,o=r?Cu(r):void 0,[,a,i]=Ns(t);return ku(n,o,a,i)}(e,t)}function qm(e){return oi((e=>t=>e(Xm(t))),e)}function Xm(e){return hg(e,Rm)}function Qm(){const e=gd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(gd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);Op.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new gd(e,t),r=n.resolvedOptions(),o=r.locale,a=si(Object.keys(t),r),i=Xa(ny),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=py(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")&&ey(e);"function"==typeof n.value?n.value="constructor"===e?r:o||ty(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function ey(e){return function(){const t=Op.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function ty(e){return function(){return Op.get(this).U[e](...arguments)}}function ny(e){const t=ry[e];if(!t)throw new TypeError(sf(e));return ll(t,Xa(fl))}const ry={Instant:mm,PlainDateTime:pm,PlainDate:wm,PlainTime:vm,PlainYearMonth:Sm,PlainMonthDay:bm},oy=ll(mm),ay=ll(ym),iy=ll(pm),sy=ll(wm),cy=ll(vm),uy=ll(Sm),hy=ll(bm),ly={era:function(e){if(void 0!==e)return Kf(e)},eraYear:Ai,year:Ci,month:Di,daysInMonth:Di,daysInYear:Di,inLeapYear:Jf,monthsInYear:Di},fy={monthCode:Kf},dy={day:Di},gy={dayOfWeek:Di,dayOfYear:Di,weekOfYear:function(e){if(void 0!==e)return Di(e)},yearOfWeek:Ai,daysInWeek:Di},my=Object.assign({},ly,fy,dy,gy),yy=new WeakMap,py=yy.get.bind(yy),wy=yy.set.bind(yy),vy={...Am(ly,[Wd]),...Am(gy,[]),...Am(fy,[Wd,qd]),...Am(dy,[qd])},Sy=Dm(my),by=Dm({...ly,...fy}),My=Dm({...fy,...dy}),Iy={calendarId:e=>oc(e.calendar)},Ty=oi(((e,t)=>function(n){const{C:r}=this;return e(r[t](Jy(qs(n,r))))}),my),Ey=ai((e=>t=>t[e]),qf.concat("sign")),Ay=ai(((e,t)=>e=>e[id[t]]),If),Dy={epochSeconds:function(e){return is(e.epochNanoseconds)},epochMilliseconds:nc,epochMicroseconds:function(e){return Wi(e.epochNanoseconds,yf)},epochNanoseconds:function(e){return Wi(e.epochNanoseconds)}},Cy=fi(ci,new Set(["branding"])),[Oy,Ny,ky]=Im(qd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:xf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Id;const a=_i(t),i=_i(n),s=e(r);return Qs(ts(Es({isoYear:_i(o),isoMonth:a,isoDay:i})),s)}),Gm),{...Iy,...My},{getISOFields:Cy,getCalendar:Om,with(e,t,n){return Ny(function(e,t,n,r,o){const a=Us(o);return((e,t,n,r)=>{const o=Gh(e,t,n,jf);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(dp,e,this,Em(t),n))},equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Nm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,_f,ki(n),kf))(e(t.calendar),n,r)}(fp,e,this,t))},toLocaleString(e,t,n){const[r,o]=hy(t,n,e);return r.format(o)},toString:Oc,toJSON:e=>Oc(e),valueOf:Cm},{from:(e,t)=>Ny(Nm(e,t))}),Hy={getOffsetNanosecondsFor:km,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,Vy(Ws(n,xf)))].map((e=>Yy(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Vi),Gc(qi(zi(r[0],r[o-1])))),r}},Ly={getOffsetNanosecondsFor:km},[Ry,Py,Yy]=Im(ng,(function(e){return Js(rs(Ji(ji(e))))}),Dy,{add:(e,t)=>Py(Wc(0,e,zm(t))),subtract:(e,t)=>Py(Wc(1,e,zm(t))),until:(e,t,n)=>vp(th(0,e,Pm(t),n)),since:(e,t,n)=>vp(th(1,e,Pm(t),n)),round:(e,t)=>Py(function(e,t){const[n,r,o]=Ls(t,5,1);return Js(pc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Gu(e,t)}(e,Pm(t)),toZonedDateTime(e,t){const n=ki(t);return Ep(rl(e,jm(n.timeZone),Gm(n.calendar)))},toZonedDateTimeISO:(e,t)=>Ep(rl(e,jm(t))),toLocaleString(e,t,n){const[r,o]=oy(t,n,e);return r.format(o)},toString:(e,t)=>Tc(jm,Rm,e,t),toJSON:e=>Tc(jm,Rm,e),valueOf:Cm},{from:e=>Py(Pm(e)),fromEpochSeconds:e=>Py(function(e){return Js(rs(Gi(e,wf)))}(e)),fromEpochMilliseconds:e=>Py(function(e){return Js(rs(Gi(e,pf)))}(e)),fromEpochMicroseconds:e=>Py(function(e){return Js(rs(Ji(ji(e),yf)))}(e)),fromEpochNanoseconds:e=>Py(function(e){return Js(rs(Ji(ji(e))))}(e)),compare:(e,t)=>Gu(Pm(e),Pm(t))}),[jy,Fy]=Im("TimeZone",(e=>{const t=function(e){return Vu(Kf(e))}(e);return{branding:"TimeZone",id:t,F:fg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(xm(t)).map((e=>Py(Js(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(Pm(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=Pm(t).epochNanoseconds;return _c(Hm(this,Ly).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xf;const r=Pm(t).epochNanoseconds,o=Hm(this,Ly).getOffsetNanosecondsFor(r);return Vy(Ws(gs(r,o),Gm(n)))},getInstantFor(e,t,n){const r=xm(t),o=ks(n),a=Hm(this);return Py(Js(Kc(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return Ym(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return Ym(-1,n,t)},equals(e,t){return!!eh(this,jm(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=jm(e);return"string"==typeof t?new jy(t):t}}),_y=Tm(Object.keys(Hy)),[By,xy]=Im(eg,(function(){return ec(Cs(oi(_i,ri(id,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Ay,{getISOFields:Cy,with(e,t,n){return xy(function(e,t,n){return ec(((e,t,n)=>{const r=Os(n);return Jh({...si(Tf,e),...Kh(t,Tf)},r)})(e,t,n))}(this,Em(t),n))},add:(e,t)=>xy(tu(0,e,zm(t))),subtract:(e,t)=>xy(tu(1,e,zm(t))),until:(e,t,n)=>vp(sh(0,e,Fm(t),n)),since:(e,t,n)=>vp(sh(1,e,Fm(t),n)),round:(e,t)=>xy(function(e,t){const[n,r,o]=Ls(t,5);var a;return ec((a=o,hc(e,fc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Qu(e,t)}(e,Fm(t)),toZonedDateTime:(e,t)=>Ep(function(e,t,n,r,o){const a=ki(o),i=t(a.plainDate),s=e(a.timeZone);return Gs(Kc(n(s),{...i,...r}),s,i.calendar)}(jm,$m,Lm,e,t)),toPlainDateTime:(e,t)=>Vy(function(e,t){return Ws(ns({...e,...t}))}(e,$m(t))),toLocaleString(e,t,n){const[r,o]=cy(t,n,e);return r.format(o)},toString:Nc,toJSON:e=>Nc(e),valueOf:Cm},{from:(e,t)=>xy(Fm(e,t)),compare:(e,t)=>Qu(Fm(e),Fm(t))}),[$y,Uy,Zy]=Im(Wd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:xf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=_i(t),i=_i(n),s=e(r);return Xs(es(Es({isoYear:a,isoMonth:i,isoDay:_i(o)})),s)}),Gm),{...Iy,...by},{getISOFields:Cy,getCalendar:Om,with(e,t,n){return Uy(function(e,t,n,r,o){const a=Us(o);return Xs(((e,t,n,r)=>{const o=Gh(e,t,n,Pf);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(lp,e,this,Em(t),n))},add:(e,t,n)=>Uy(eu(yp,0,e,zm(t),n)),subtract:(e,t,n)=>Uy(eu(yp,1,e,zm(t),n)),until:(e,t,n)=>vp(ah(pp,0,e,Bm(t),n)),since:(e,t,n)=>vp(ah(pp,1,e,Bm(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Bm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,Yf,ki(n),Rf))(e(t.calendar),n,r)}(fp,e,this,t))},toLocaleString(e,t,n){const[r,o]=uy(t,n,e);return r.format(o)},toString:Cc,toJSON:e=>Cc(e),valueOf:Cm},{from:(e,t)=>Uy(Bm(e,t)),compare:(e,t)=>Xu(Bm(e),Bm(t))}),[zy,Vy]=Im(Qd,fi((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:xf;return Ws(ns(Ts(oi(_i,ri(cd,[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))}),Gm),{...Iy,...Sy,...Ay},{getISOFields:Cy,getCalendar:Om,with(e,t,n){return Vy(function(e,t,n,r,o){const a=Us(o);return Ws(((e,t,n,r)=>{const o=Gh(e,t,n,jf,If),a=Os(r);return ns({...e.dateFromFields(o,Zs(r,a)),...Jh(o,a)})})(e(t.calendar),n,r,a))}(fp,e,this,Em(t),n))},withCalendar:(e,t)=>Vy(sl(e,Gm(t))),withPlainDate:(e,t)=>Vy(function(e,t){return Ws({...e,...t},cl(e.calendar,t.calendar))}(e,$m(t))),withPlainTime:(e,t)=>Vy(function(e){return Ws({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd})}(e,_m(t))),add:(e,t,n)=>Vy(Xc(gp,0,e,zm(t),n)),subtract:(e,t,n)=>Vy(Xc(gp,1,e,zm(t),n)),until:(e,t,n)=>vp(rh(mp,0,e,xm(t),n)),since:(e,t,n)=>vp(rh(mp,1,e,xm(t),n)),round:(e,t)=>Vy(function(e,t){return Ws(cc(e,...Ls(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!qu(e,t)&&ac(e.calendar,t.calendar)}(e,xm(t)),toZonedDateTime:(e,t,n)=>Ep(function(e,t,n,r){const o=((e,t,n,r)=>{const o=ks(r);return Kc(e(t),n,o)})(e,n,t,r);return Gs(rs(o),n,t.calendar)}(Lm,e,jm(t),n)),toPlainDate:e=>Jy(qs(e)),toPlainTime:e=>xy(ec(e)),toPlainYearMonth(e){return Uy(function(e,t,n){const r=e(t.calendar);return Xs({...t,...qh(r,n)})}(cp,e,this))},toPlainMonthDay(e){return Ny(function(e,t,n){return Wh(e(t.calendar),n)}(hp,e,this))},toLocaleString(e,t,n){const[r,o]=iy(t,n,e);return r.format(o)},toString:Ac,toJSON:e=>Ac(e),valueOf:Cm},{from:(e,t)=>Vy(xm(e,t)),compare:(e,t)=>qu(xm(e),xm(t))}),[Ky,Jy,Gy]=Im(Xd,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:xf;return qs(ts(Es(oi(_i,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Gm),{...Iy,...Sy},{getISOFields:Cy,getCalendar:Om,with(e,t,n){return Jy(function(e,t,n,r,o){const a=Us(o);return((e,t,n,r)=>{const o=Gh(e,t,n,jf);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(fp,e,this,Em(t),n))},withCalendar:(e,t)=>Jy(sl(e,Gm(t))),add:(e,t,n)=>Jy(Qc(gp,0,e,zm(t),n)),subtract:(e,t,n)=>Jy(Qc(gp,1,e,zm(t),n)),until:(e,t,n)=>vp(oh(mp,0,e,$m(t),n)),since:(e,t,n)=>vp(oh(mp,1,e,$m(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,$m(t)),toZonedDateTime(e,t){const n=!qa(t)||t instanceof jy?{timeZone:t}:t;return Ep(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):fd;return Gs(Kc(n(a),{...r,...s}),a,r.calendar)}(jm,Fm,Lm,e,n))},toPlainDateTime:(e,t)=>Vy(function(e){return Ws(ns({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd}))}(e,_m(t))),toPlainYearMonth(e){return Uy(function(e,t,n){return qh(e(t.calendar),n)}(cp,e,this))},toPlainMonthDay(e){return Ny(function(e,t,n){return Wh(e(t.calendar),n)}(hp,e,this))},toLocaleString(e,t,n){const[r,o]=sy(t,n,e);return r.format(o)},toString:Dc,toJSON:e=>Dc(e),valueOf:Cm},{from:(e,t)=>Jy($m(e,t)),compare:(e,t)=>Xu($m(e),$m(t))}),Wy={fields:(e,t,n)=>[...t.call(e,n)]},qy=Object.assign({dateFromFields:(e,t,n,r)=>Gy(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Xy=Object.assign({yearMonthFromFields:(e,t,n,r)=>Zy(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Qy=Object.assign({monthDayFromFields:(e,t,n,r)=>ky(t.call(e,Object.assign(Object.create(null),n),r))},Wy),ep={mergeFields:(e,t,n,r)=>ki(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},tp=Object.assign({},qy,ep),np=Object.assign({},Xy,ep),rp=Object.assign({},Qy,ep),op={dateAdd:(e,t,n,r,o)=>Gy(t.call(e,Jy(qs(n,e)),vp(tc(r)),o))},ap=Object.assign({},op,{dateUntil:(e,t,n,r,o,a)=>Sp(t.call(e,Jy(qs(n,e)),Jy(qs(r,e)),Object.assign(Object.create(null),a,{largestUnit:df[o]})))}),ip=Object.assign({},op,{day:Um}),sp=Object.assign({},ap,{day:Um}),cp=Zm(Xy),up=Zm(qy),hp=Zm(Qy),lp=Zm(np),fp=Zm(tp),dp=Zm(rp),gp=Zm(op),mp=Zm(ap),yp=Zm(ip),pp=Zm(sp),[wp,vp,Sp]=Im(rg,(function(){return tc(vu(oi(Bi,ri(qf,[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]))))}),{...Ey,blank:function(e){return!e.sign}},{with:(e,t)=>vp(function(e,t){return tc((n=e,r=t,vu({...n,...Kh(r,Xf)})));var n,r}(e,t)),negated:e=>vp(yu(e)),abs:e=>vp(function(e){return-1===e.sign?yu(e):e}(e)),add:(e,t,n)=>vp(mu(Vm,mp,Lm,0,e,zm(t),n)),subtract:(e,t,n)=>vp(mu(Vm,mp,Lm,1,e,zm(t),n)),round:(e,t)=>vp(function(e,t,n,r,o){const a=Eu(r),[i,s,c,u,h]=((e,t,n)=>{e=$s(e,Dd);let r=xd(e);const o=n(e[kd]);let a=Fs(e);const i=Gd(e,7);let s=Bd(e);if(void 0===r&&void 0===s)throw new RangeError(nf);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ks(r,s),a=_s(a,s,1),[r,s,a,i,o]})(o,a,e);if(du(Math.max(a,i),h))return tc(vu(((e,t,n,r,o)=>{const a=pc(bu(e),n,r,o);return{...rd,...Mu(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(ef);const[l,f,d]=cu(t,n,h),g=uu(d),m=hu(f,d),y=lu(f,d);let p=0;r.weeks&&7===s&&(p=r.weeks,r={...r,weeks:0});let[w,v]=gu(r,i,l,g,m,y);const S=r.sign,b=wu(w);if(S&&b&&S!==b)throw new RangeError($l);return b&&(w=yc(w,v,i,s,c,u,l,g,m)),w.weeks+=p,tc(w)}(Vm,mp,Lm,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Eu(r),[i,s]=((e,t)=>{const n=t((e=$s(e,Cd))[kd]);let r=$d(e);return r=Ni(Cd,r),[r,n]})(o,e);if(du(Math.max(i,a),s))return((e,t)=>qi(bu(e),Mf[t],1))(r,i);if(!s)throw new RangeError(ef);const[c,u,h]=cu(t,n,s),l=uu(h),f=hu(u,h);return((e,t,n,r,o,a)=>{const i=wu(e),[s,c]=ic(ad(n,e),n,i,r,o,a),u=sc(t,s,c);return e[qf[n]]+u*i})(...gu(r,i,c,l,f,lu(u,h)),i,c,l,f)}(Vm,mp,Lm,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):kc(e)},toString:kc,toJSON:e=>kc(e),valueOf:Cm},{from:e=>vp(zm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(xs(a).relativeTo),s=Math.max(Eu(r),Eu(o));if(hi(qf,r,o))return 0;if(du(s,i))return Vi(bu(r),bu(o));if(!i)throw new RangeError(ef);const[c,u,h]=cu(t,n,i),l=uu(h),f=hu(u,h);return Vi(l(f(c,r)),l(f(c,o)))}(Vm,gp,Lm,zm(e),zm(t),n)}),bp={toString:e=>e.id,toJSON:e=>e.id,...vy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return Jy(qs(a.dateAdd($m(t),zm(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return vp(tc(o.dateUntil($m(t),$m(n),function(e){return e=xs(e),xd(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Jy(Uh(o,t,n,function(e){return e===xf?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Uy(Zh(o,t,n,function(e){return e===xf?kf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Ny(zh(o,0,t,n,function(e){return e===xf?Rf:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(jf),o=[];for(const e of t){if(Kf(e),!r.has(e))throw new RangeError(Dl(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(ui(Oi(t)),ui(Oi(n)))}},[Mp]=Im("Calendar",(e=>{const t=function(e){return Nh(Kf(e))}(e);return{branding:"Calendar",id:t,F:Zg(t)}}),{id:e=>e.id},bp,{from(e){const t=Gm(e);return"string"==typeof t?new Mp(t):t}}),Ip=Tm(Object.keys(bp).slice(4)),[Tp,Ep]=Im(tg,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:xf;return Gs(rs(Ji(ji(n))),t(r),e(o))}),Gm,jm),{...Dy,...Iy,...qm(Sy),...qm(Ay),offset:e=>_c(Xm(e).offsetNanoseconds),offsetNanoseconds:e=>Xm(e).offsetNanoseconds,timeZoneId:e=>oc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=hg(t,n),[o,a]=dc(r),i=qi(zi(Kc(n,o),Kc(n,a)),Sf,1);if(i<=0)throw new RangeError($l);return i}(Lm,e)},{getISOFields:e=>function(e,t){const n=hg(t,e);return{calendar:t.calendar,...si(ld,n),offset:_c(n.offsetNanoseconds),timeZone:t.timeZone}}(Rm,e),getCalendar:Om,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new jy(t):t},with(e,t,n){return Ep(function(e,t,n,r,o,a){const i=Us(a),{calendar:s,timeZone:c}=n;return Gs(((e,t,n,r,o)=>{const a=Gh(e,n,r,jf,Df,Ef),[i,s,c]=Ns(o,2);return Vc(t,{...e.dateFromFields(a,Zs(o,i)),...Jh(a,i)},Cu(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(fp,Lm,e,this,Em(t),n))},withCalendar:(e,t)=>Ep(sl(e,Gm(t))),withTimeZone:(e,t)=>Ep(function(e,t){return{...e,timeZone:t}}(e,jm(t))),withPlainDate:(e,t)=>Ep(function(e,t,n){const r=t.timeZone,o=e(r),a={...hg(t,o),...n},i=cl(t.calendar,n.calendar);return Gs(Vc(o,a,a.offsetNanoseconds,2),r,i)}(Lm,e,$m(t))),withPlainTime:(e,t)=>Ep(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fd;const r=t.timeZone,o=e(r),a={...hg(t,o),...n};return Gs(Vc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(Lm,e,_m(t))),add:(e,t,n)=>Ep(qc(gp,Lm,0,e,zm(t),n)),subtract:(e,t,n)=>Ep(qc(gp,Lm,1,e,zm(t),n)),until:(e,t,n)=>vp(tc(nh(mp,Lm,0,e,Wm(t),n))),since:(e,t,n)=>vp(tc(nh(mp,Lm,1,e,Wm(t),n))),round:(e,t)=>Ep(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=Ls(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=hg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=Kc(t,a),u=Kc(t,i);if(Ki(s,c,u))throw new RangeError($l);return Sc(sc(s,c,u),r)?u:c})(dc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=Vc(u,cc(gs(r,e),i,s,c),e,2,0,1)}return Gs(r,o,a)}(Lm,e,t)),startOfDay:e=>Ep(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Kc(t,e(hg(n,t))))(gc,e(n),t);return Gs(o,n,r)}(Lm,e)),equals:(e,t)=>function(e,t){return!Wu(e,t)&&!!eh(e.timeZone,t.timeZone)&&ac(e.calendar,t.calendar)}(e,Wm(t)),toInstant:e=>Py(function(e){return Js(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Vy(ol(Rm,e)),toPlainDate:e=>Jy(al(Rm,e)),toPlainTime:e=>xy(il(Rm,e)),toPlainYearMonth(e){return Uy(function(e,t,n){return qh(e(t.calendar),n)}(cp,e,this))},toPlainMonthDay(e){return Ny(function(e,t,n){return Wh(e(t.calendar),n)}(hp,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=ay(t,n,e);return r.format(o)},toString:(e,t)=>Ec(Rm,e,t),toJSON:e=>Ec(Rm,e),valueOf:Cm},{from:(e,t)=>Ep(Wm(e,t)),compare:(e,t)=>Wu(Wm(e),Wm(t))}),Ap=Object.defineProperties({},{...ni("Temporal.Now"),...ei({timeZoneId:()=>yl(),instant:()=>Py(Js(ml())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return Ep(Gs(ml(),jm(t),Gm(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Ep(Gs(ml(),jm(e),xf))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return Vy(Ws(gl(Rm(jm(t))),Gm(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Vy(Ws(gl(Rm(jm(e))),xf))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return Jy(qs(gl(Rm(jm(t))),Gm(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Jy(qs(gl(Rm(jm(e))),xf))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return xy(ec(gl(Rm(jm(e)))))}})}),Dp=Object.defineProperties({},{...ni("Temporal"),...ei({PlainYearMonth:$y,PlainMonthDay:Oy,PlainDate:Ky,PlainTime:By,PlainDateTime:zy,ZonedDateTime:Tp,Instant:Ry,Calendar:Mp,TimeZone:jy,Duration:wp,Now:Ap})}),Cp=Qm(),Op=new WeakMap;function Np(e){return e*Math.PI/180}function kp(e){return 180*e/Math.PI}Object.create(Intl),ei({DateTimeFormat:Cp});class Hp{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 Lp=6356.9;class Rp{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(Rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(Rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(Rp.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(Rp.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(Rp.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(Rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(Rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(Rp.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(Rp.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(Rp.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 kp(Math.acos(Lp/(Lp+e/1e3)))}adjustZenith(e,t){let n=e;return e===Rp.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=Rp.getSunriseUTC(Rp.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=Rp.getSunsetUTC(Rp.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 Rp.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 Dp.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-Rp.JULIAN_DAY_JAN_1_2000)/Rp.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*Rp.JULIAN_DAYS_PER_CENTURY+Rp.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=Np(Rp.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 Rp.getSunGeometricMeanLongitude(e)+Rp.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return Rp.getSunTrueLongitude(e)-.00569-.00478*Math.sin(Np(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 Rp.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(Np(t))}static getSunDeclination(e){const t=Rp.getObliquityCorrection(e),n=Rp.getSunApparentLongitude(e),r=Math.sin(Np(t))*Math.sin(Np(n));return kp(Math.asin(r))}static getEquationOfTime(e){const t=Rp.getObliquityCorrection(e),n=Rp.getSunGeometricMeanLongitude(e),r=Rp.getEarthOrbitEccentricity(e),o=Rp.getSunGeometricMeanAnomaly(e);let a=Math.tan(Np(t)/2);a*=a;const i=Math.sin(2*Np(n)),s=Math.sin(Np(o));return 4*kp(a*i-2*r*s+4*r*a*s*Math.cos(2*Np(n))-.5*a*a*Math.sin(4*Np(n))-1.25*r*r*Math.sin(2*Np(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=Np(e),o=Np(t);return Math.acos(Math.cos(Np(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=Np(e),o=Np(t);return-Math.acos(Math.cos(Np(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=Rp.getJulianDay(e.toPlainDate()),o=Rp.getJulianCenturiesFromJulianDay(r),a=Rp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=Np(n-i),c=Np(Rp.getSunDeclination(o)),u=Np(t);return kp(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=Rp.getJulianDay(e.toPlainDate()),o=Rp.getJulianCenturiesFromJulianDay(r),a=Rp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=Np(n-i),c=Np(Rp.getSunDeclination(o)),u=Np(t);return kp(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=Rp.getJulianCenturiesFromJulianDay(e),a=Rp.getSolarNoonUTC(o,n),i=Rp.getJulianCenturiesFromJulianDay(e+a/1440);let s=Rp.getEquationOfTime(i),c=Rp.getSunDeclination(i),u=Rp.getSunHourAngleAtSunrise(t,c,r),h=n-kp(u),l=4*h,f=720+l-s;const d=Rp.getJulianCenturiesFromJulianDay(Rp.getJulianDayFromJulianCenturies(o)+f/1440);return s=Rp.getEquationOfTime(d),c=Rp.getSunDeclination(d),u=Rp.getSunHourAngleAtSunrise(t,c,r),h=n-kp(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=Rp.getJulianCenturiesFromJulianDay(Rp.getJulianDayFromJulianCenturies(e)+t/360);let r=Rp.getEquationOfTime(n);const o=720+4*t-r,a=Rp.getJulianCenturiesFromJulianDay(Rp.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=Rp.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=Rp.getJulianCenturiesFromJulianDay(e),a=Rp.getSolarNoonUTC(o,n),i=Rp.getJulianCenturiesFromJulianDay(e+a/1440);let s=Rp.getEquationOfTime(i),c=Rp.getSunDeclination(i),u=Rp.getSunHourAngleAtSunset(t,c,r),h=n-kp(u),l=4*h,f=720+l-s;const d=Rp.getJulianCenturiesFromJulianDay(Rp.getJulianDayFromJulianCenturies(o)+f/1440);return s=Rp.getEquationOfTime(d),c=Rp.getSunDeclination(d),u=Rp.getSunHourAngleAtSunset(t,c,r),h=n-kp(u),l=4*h,f=720+l-s,f}}Rp.GEOMETRIC_ZENITH=90,Rp.CIVIL_ZENITH=96,Rp.NAUTICAL_ZENITH=102,Rp.ASTRONOMICAL_ZENITH=108,Rp.JULIAN_DAY_JAN_1_2000=2451545,Rp.JULIAN_DAYS_PER_CENTURY=36525;const Pp=[["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]],Yp=new Map,jp={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},Fp=new Map;class _p extends Hp{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=Fp.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return Fp.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return Yp.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 jp[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":jp[t]}static addLocation(e,t){const n=e.toLowerCase();return!Yp.has(n)&&(Yp.set(n,t),!0)}}for(const e of Pp){const t=new _p(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);_p.addLocation(t.getName(),t)}const Bp=new Map;const xp=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function $p(e,t){const n=function(e){const t=Bp.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 Bp.set(e,n),n}(e).format(t),r=xp.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=Up(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function Up(e){return e<0?"-00"+Up(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Zp(e){return e<10?"0"+e:String(e)}function zp(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,ei({Temporal:Dp})),Object.defineProperties(Intl,ei({DateTimeFormat:Cp})),Object.defineProperties(Date.prototype,ei({toTemporalInstant:function(){return Py(Js(Gi(this.valueOf(),pf)))}}));class Vp{constructor(t,n,r){const o=e.greg.isDate(n)?n:ve.isHDate(n)?n.greg():fe(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new Rp(t,a),this.useElevation=Boolean(r)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return zp(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return zp(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return zp(this.noaa.getSeaLevelSunrise())}sunset(){return zp(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return zp(this.noaa.getSeaLevelSunset())}dawn(){return zp(this.noaa.getBeginCivilTwilight())}dusk(){return zp(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new Vp(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return zp(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.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 zp(Rp.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0);return[t,(this.timeAtAngle(e,!1)-t)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+3*t)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+4*t)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=$p("UTC",t),r=$p(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?"+":"-")+Zp(Math.floor(r/60))+":"+Zp(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:$p(e,t).substring(0,19)+Vp.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const Kp={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 Jp(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===Kp[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function Gp(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ie.LIGHT_CANDLES;void 0!==e?r||(s&(Ie.LIGHT_CANDLES_TZEIS|Ie.CHANUKAH_CANDLES)?i=!0:s&Ie.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Ie.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new Vp(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new qp(t,s,l,u,n.havdalahMins,e,n):new Xp(t,s,l,u,e,n)}class Wp extends Ee{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=Vp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=Vp.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=Jp(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return le.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return le.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class qp extends Wp{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=le.gettext(this.getDesc(),e);if(this.havdalahMins){const n=le.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class Xp extends Wp{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function Qp(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new Wp(e,n,r.getFlags(),t,a,r,o)}const ew=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tw=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],nw="בַּלַּ֥יְלָה";class rw{constructor(e,t){let n=t-7;n<0&&(n+=ve.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return ve.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=le.gettext(this.getMonthName(),e),o=(n?tw:ew)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=le.gettext("Molad",e),u=le.lookupTranslation("min",e)||"minutes",h=le.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?nw:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":nw}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?le.hebrewStripNikkud(t):t}const l=Jp(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class ow extends Ee{constructor(e,t,n,r){const o=new rw(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Ie.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class aw extends Ee{constructor(e,t){if(super(e,`Omer ${t}`,Ie.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){J(e);const[n,r]=G(e),o=K[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){e=e||le.getLocaleName();const t=this.omer;return("he"==e?z(t):le.ordinal(t,e))+" "+le.gettext("day of the Omer",e)}renderBrief(e){return le.gettext("Omer",e)+" "+le.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(J(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return W(this.omer,"he");if("he-x-nonikud"===e){const e=W(this.omer,"he");return le.hebrewStripNikkud(e)}return W(this.omer,"en")}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class iw extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class sw{constructor(e,t){e=+e;const n=ve.longCheshvan(e),r=ve.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new ve(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=ve.dayOnOrBefore(6,i+6);const c=this.leap=+ve.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(Tw[u])this.key=u,this.theSedraArray=Tw[u];else{const e=this.key=u+ +this.il;this.theSedraArray=Tw[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||le.getLocaleName();let o=le.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+le.gettext(n[1],r)}return o=o.replace(/'/g,"’"),le.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new ve(this.firstSaturday+7*t)}if("string"==typeof e){const t=uw.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 ve(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=uw.get(t);if(uw.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:ve.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ve.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Aw(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[cw[o]],chag:!1,num:o+1};const a=hw(o);return{parsha:[cw[a],cw[a+1]],chag:!1,num:[a+1,a+2]}}}const cw=["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"],uw=new Map;for(let e=0;e<cw.length;e++){const t=cw[e];uw.set(t,e)}function hw(e){return-e}const lw="Rosh Hashana",fw="Yom Kippur",dw="Sukkot",gw="Sukkot Shabbat Chol ha-Moed",mw="Shmini Atzeret",yw=gw,pw="Pesach",ww="Pesach I",vw="Pesach Shabbat Chol ha-Moed",Sw="Pesach VII",bw="Pesach VIII",Mw="Shavuot";function Iw(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Tw={"020":[51,52].concat(yw,Iw(0,20),hw(21),23,24,pw,25,hw(26),hw(28),30,hw(31),Iw(33,40),hw(41),Iw(43,49),hw(50)),"0220":[51,52].concat(yw,Iw(0,20),hw(21),23,24,pw,25,hw(26),hw(28),30,hw(31),33,Mw,Iw(34,37),hw(38),40,hw(41),Iw(43,49),hw(50)),"0510":[52].concat(fw,yw,Iw(0,20),hw(21),23,24,ww,bw,25,hw(26),hw(28),30,hw(31),Iw(33,40),hw(41),Iw(43,50)),"0511":[52].concat(fw,yw,Iw(0,20),hw(21),23,24,pw,25,hw(26),hw(28),Iw(30,40),hw(41),Iw(43,50)),"052":[52].concat(fw,gw,Iw(0,24),Sw,25,hw(26),hw(28),30,hw(31),Iw(33,40),hw(41),Iw(43,50)),"070":[].concat(lw,52,dw,mw,Iw(0,20),hw(21),23,24,Sw,25,hw(26),hw(28),30,hw(31),Iw(33,40),hw(41),Iw(43,50)),"072":[].concat(lw,52,dw,mw,Iw(0,20),hw(21),23,24,vw,25,hw(26),hw(28),30,hw(31),Iw(33,40),hw(41),Iw(43,49),hw(50)),1200:[51,52].concat(gw,Iw(0,27),vw,Iw(28,33),Mw,Iw(34,37),hw(38),40,hw(41),Iw(43,49),hw(50)),1201:[51,52].concat(gw,Iw(0,27),vw,Iw(28,40),hw(41),Iw(43,49),hw(50)),1220:[51,52].concat(gw,Iw(0,27),ww,bw,Iw(28,40),hw(41),Iw(43,50)),1221:[51,52].concat(gw,Iw(0,27),pw,Iw(28,50)),150:[52].concat(fw,gw,Iw(0,28),Sw,Iw(29,50)),152:[52].concat(fw,gw,Iw(0,28),vw,Iw(29,49),hw(50)),170:[].concat(lw,52,dw,mw,Iw(0,27),vw,Iw(28,40),hw(41),Iw(43,49),hw(50)),1720:[].concat(lw,52,dw,mw,Iw(0,27),vw,Iw(28,33),Mw,Iw(34,37),hw(38),40,hw(41),Iw(43,49),hw(50))};Tw["0221"]=Tw["020"],Tw["0310"]=Tw["0220"],Tw["0311"]=Tw["020"],Tw[1310]=Tw[1220],Tw[1311]=Tw[1221],Tw[1721]=Tw[170];const Ew=new iw({maxSize:400});function Aw(e,t){const n=`${e}-${t?1:0}`;let r=Ew.get(n);return r||(r=new sw(e,t),Ew.set(n,r)),r}class Dw extends Ee{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),Ie.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||le.getLocaleName(),n=this.parsha;let r=le.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+le.gettext(n[1],e)}r=r.replace(/'/g,"’");return(le.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var Cw=ho,Ow=Vn,Nw=qn,kw=He,Hw=function(e,t,n){return n.get&&Cw(n.get,t,{getter:!0}),n.set&&Cw(n.set,t,{setter:!0}),Ow.f(e,t,n)},Lw=function(){var e=Nw(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Rw=ke,Pw=Oe.RegExp,Yw=Pw.prototype,jw=kw&&Rw((function(){var e=!0;try{Pw(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Yw,"flags").get.call(t)!==r||n!==r}));jw&&Hw(Yw,"flags",{configurable:!0,get:Lw});const Fw=0,_w=2,Bw=5,xw=6,$w=m.NISAN,Uw=m.IYYAR;function Zw(e){if(e<5708)return null;let t;const n=new ve(15,$w,e).getDay();return t=n===Fw?2:n===xw?3:e<5764?4:n===_w?5:4,new ve(t,Uw,e)}const zw=m.NISAN,Vw=m.IYYAR,Kw=m.SIVAN,Jw=m.TAMUZ,Gw=m.AV,Ww=m.ELUL,qw=m.TISHREI,Xw=m.CHESHVAN,Qw=m.KISLEV,ev=m.SHVAT,tv=m.ADAR_II,nv=Ie.CHAG,rv=Ie.LIGHT_CANDLES,ov=Ie.YOM_TOV_ENDS,av=Ie.CHUL_ONLY,iv=Ie.IL_ONLY,sv=Ie.LIGHT_CANDLES_TZEIS,cv=Ie.CHANUKAH_CANDLES,uv=Ie.MAJOR_FAST,hv=Ie.MINOR_HOLIDAY,lv=Ie.EREV,fv=Ie.CHOL_HAMOED,dv="🫓",gv="🌿🍋",mv=[{mm:qw,dd:2,desc:"Rosh Hashana II",flags:nv|ov,emoji:"🍏🍯"},{mm:qw,dd:9,desc:"Erev Yom Kippur",flags:lv|rv},{mm:qw,dd:10,desc:"Yom Kippur",flags:nv|uv|ov},{mm:qw,dd:14,desc:"Erev Sukkot",flags:av|lv|rv,emoji:gv},{mm:qw,dd:15,desc:"Sukkot I",flags:av|nv|sv,emoji:gv},{mm:qw,dd:16,desc:"Sukkot II",flags:av|nv|ov,emoji:gv},{mm:qw,dd:17,desc:"Sukkot III (CH''M)",flags:av|fv,chmDay:1,emoji:gv},{mm:qw,dd:18,desc:"Sukkot IV (CH''M)",flags:av|fv,chmDay:2,emoji:gv},{mm:qw,dd:19,desc:"Sukkot V (CH''M)",flags:av|fv,chmDay:3,emoji:gv},{mm:qw,dd:20,desc:"Sukkot VI (CH''M)",flags:av|fv,chmDay:4,emoji:gv},{mm:qw,dd:22,desc:"Shmini Atzeret",flags:av|nv|sv},{mm:qw,dd:23,desc:"Simchat Torah",flags:av|nv|ov},{mm:qw,dd:14,desc:"Erev Sukkot",flags:iv|lv|rv,emoji:gv},{mm:qw,dd:15,desc:"Sukkot I",flags:iv|nv|ov,emoji:gv},{mm:qw,dd:16,desc:"Sukkot II (CH''M)",flags:iv|fv,chmDay:1,emoji:gv},{mm:qw,dd:17,desc:"Sukkot III (CH''M)",flags:iv|fv,chmDay:2,emoji:gv},{mm:qw,dd:18,desc:"Sukkot IV (CH''M)",flags:iv|fv,chmDay:3,emoji:gv},{mm:qw,dd:19,desc:"Sukkot V (CH''M)",flags:iv|fv,chmDay:4,emoji:gv},{mm:qw,dd:20,desc:"Sukkot VI (CH''M)",flags:iv|fv,chmDay:5,emoji:gv},{mm:qw,dd:22,desc:"Shmini Atzeret",flags:iv|nv|ov},{mm:qw,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:rv|fv,chmDay:-1,emoji:gv},{mm:Qw,dd:24,desc:"Chanukah: 1 Candle",flags:lv|hv|cv,emoji:"🕎1️⃣"},{mm:ev,dd:15,desc:"Tu BiShvat",flags:hv,emoji:"🌳"},{mm:tv,dd:13,desc:"Erev Purim",flags:lv|hv,emoji:"🎭️📜"},{mm:tv,dd:14,desc:"Purim",flags:hv,emoji:"🎭️📜"},{mm:tv,dd:15,desc:"Shushan Purim",flags:hv,emoji:"🎭️📜"},{mm:zw,dd:14,desc:"Erev Pesach",flags:iv|lv|rv,emoji:"🫓🍷"},{mm:zw,dd:15,desc:"Pesach I",flags:iv|nv|ov,emoji:dv},{mm:zw,dd:16,desc:"Pesach II (CH''M)",flags:iv|fv,chmDay:1,emoji:dv},{mm:zw,dd:17,desc:"Pesach III (CH''M)",flags:iv|fv,chmDay:2,emoji:dv},{mm:zw,dd:18,desc:"Pesach IV (CH''M)",flags:iv|fv,chmDay:3,emoji:dv},{mm:zw,dd:19,desc:"Pesach V (CH''M)",flags:iv|fv,chmDay:4,emoji:dv},{mm:zw,dd:20,desc:"Pesach VI (CH''M)",flags:iv|fv|rv,chmDay:5,emoji:dv},{mm:zw,dd:21,desc:"Pesach VII",flags:iv|nv|ov,emoji:dv},{mm:zw,dd:14,desc:"Erev Pesach",flags:av|lv|rv,emoji:"🫓🍷"},{mm:zw,dd:15,desc:"Pesach I",flags:av|nv|sv,emoji:"🫓🍷"},{mm:zw,dd:16,desc:"Pesach II",flags:av|nv|ov,emoji:dv},{mm:zw,dd:17,desc:"Pesach III (CH''M)",flags:av|fv,chmDay:1,emoji:dv},{mm:zw,dd:18,desc:"Pesach IV (CH''M)",flags:av|fv,chmDay:2,emoji:dv},{mm:zw,dd:19,desc:"Pesach V (CH''M)",flags:av|fv,chmDay:3,emoji:dv},{mm:zw,dd:20,desc:"Pesach VI (CH''M)",flags:av|fv|rv,chmDay:4,emoji:dv},{mm:zw,dd:21,desc:"Pesach VII",flags:av|nv|sv,emoji:dv},{mm:zw,dd:22,desc:"Pesach VIII",flags:av|nv|ov,emoji:dv},{mm:Vw,dd:14,desc:"Pesach Sheni",flags:hv},{mm:Vw,dd:18,desc:"Lag BaOmer",flags:hv,emoji:"🔥"},{mm:Kw,dd:5,desc:"Erev Shavuot",flags:lv|rv,emoji:"⛰️🌸"},{mm:Kw,dd:6,desc:"Shavuot",flags:iv|nv|ov,emoji:"⛰️🌸"},{mm:Kw,dd:6,desc:"Shavuot I",flags:av|nv|sv,emoji:"⛰️🌸"},{mm:Kw,dd:7,desc:"Shavuot II",flags:av|nv|ov,emoji:"⛰️🌸"},{mm:Gw,dd:15,desc:"Tu B'Av",flags:hv,emoji:"❤️"},{mm:Ww,dd:1,desc:"Rosh Hashana LaBehemot",flags:hv,emoji:"🐑"},{mm:Ww,dd:29,desc:"Erev Rosh Hashana",flags:lv|rv,emoji:"🍏🍯"}],yv=[{firstYear:5727,mm:Vw,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:Qw,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:ev,dd:30,desc:"Family Day"},{firstYear:5758,mm:Xw,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Vw,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Jw,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:Xw,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:zw,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:Xw,dd:7,desc:"Yom HaAliyah School Observance"},{firstYear:5773,mm:m.TEVET,dd:21,desc:"Hebrew Language Day",friSatMovetoThu:!0}],pv=Ie.CHAG,wv=Ie.IL_ONLY,vv=Ie.LIGHT_CANDLES_TZEIS,Sv=Ie.CHANUKAH_CANDLES,bv=Ie.MINOR_FAST,Mv=Ie.SPECIAL_SHABBAT,Iv=Ie.MODERN_HOLIDAY,Tv=Ie.MAJOR_FAST,Ev=Ie.MINOR_HOLIDAY,Av=Ie.EREV;class Dv extends Ee{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()&wv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Mv?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Cv="Rosh Chodesh";class Ov extends Dv{constructor(e,t){super(e,`${Cv} ${t}`,Ie.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=le.gettext(t,e).replace(/'/g,"’");return le.gettext(Cv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Nv extends Dv{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const kv="Shabbat Mevarchim Chodesh";class Hv extends Ee{constructor(e,t,n){if(super(e,`${kv} ${t}`,Ie.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==ve.monthsInYear(t)?Yv:n+1,o=new rw(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=le.gettext(this.monthName,e).replace(/'/g,"’");return le.gettext(kv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class Lv extends Dv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return le.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Rv="Yom Kippur Katan";class Pv extends Dv{constructor(e,t){super(e,`${Rv} ${t}`,Ie.MINOR_FAST|Ie.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=le.gettext(this.nextMonthName,e).replace(/'/g,"’");return le.gettext(Rv,e)+" "+t}renderBrief(e){return le.gettext(Rv,e)}url(){}}const Yv=m.NISAN,jv=m.TAMUZ,Fv=m.AV,_v=m.TISHREI,Bv=m.KISLEV,xv=m.TEVET,$v=m.ADAR_I,Uv=m.ADAR_II,Zv={emoji:"🇮🇱"},zv=new iw({maxSize:400}),Vv=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Kv(e){if("number"!=typeof e)throw new TypeError(`bad Hebrew year: ${e}`);if(e<1||e>32658)throw new RangeError(`Hebrew year ${e} out of range 1-32658`);const t=zv.get(e);if(t)return t;const n=new ve(1,_v,e),r=new ve(15,Yv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Av?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of mv){const n=new ve(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 Lv(n,e,pv|vv)),a(new Dv(new ve(3+(4==n.getDay()),_v,e),"Tzom Gedaliah",bv)),a(new Dv(new ve(ve.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",Mv));const i=ve.shortKislev(e)?new ve(1,xv,e):new ve(30,Bv,e);a(new Dv(i,"Chag HaBanot",Ev));for(let t=2;t<=8;t++){const n=new ve(23+t,Bv,e);a(new Dv(n,`Chanukah: ${t} Candles`,Ev|Sv,{chanukahDay:t-1,emoji:"🕎"+Vv[t]}))}a(new Dv(new ve(32,Bv,e),"Chanukah: 8th Day",Ev,{chanukahDay:8,emoji:"🕎"})),a(new Nv(new ve(10,xv,e),"Asara B'Tevet",bv));const s=r.abs();a(new Dv(new ve(ve.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",Mv),new Dv(new ve(ve.dayOnOrBefore(6,s-30)),"Shabbat Zachor",Mv),new Dv(new ve(s-(2==r.getDay()?33:31)),"Ta'anit Esther",bv)),a(new Dv(new ve(ve.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",Mv),new Dv(new ve(ve.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",Mv),new Dv(new ve(ve.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",Mv),new Dv(6==r.prev().getDay()?r.onOrBefore(4):new ve(14,Yv,e),"Ta'anit Bechorot",bv)),a(new Dv(new ve(ve.dayOnOrBefore(6,new ve(1,_v,e+1).abs()-4)),"Leil Selichot",Ev,{emoji:"🕍"})),0==r.getDay()&&a(new Dv(new ve(16,Uv,e),"Purim Meshulash",Ev)),ve.isLeapYear(e)&&(a(new Dv(new ve(14,$v,e),"Purim Katan",Ev,{emoji:"🎭️"})),a(new Dv(new ve(15,$v,e),"Shushan Purim Katan",Ev,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new ve(27,$w,e);return t.getDay()===Bw?t=new ve(26,$w,e):t.getDay()===Fw&&(t=new ve(28,$w,e)),t}(e);c&&a(new Dv(c,"Yom HaShoah",Iv));const u=Zw(e);u&&a(new Dv(u,"Yom HaZikaron",Iv,Zv),new Dv(u.next(),"Yom HaAtzma'ut",Iv,Zv));for(const t of yv)if(e>=t.firstYear){let n=new ve(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ve(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Iv:Iv|wv,i=new Dv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let h,l=new ve(17,jv,e);6==l.getDay()&&(l=new ve(18,jv,e),h={observed:!0}),a(new Dv(l,"Tzom Tammuz",bv,h));let f,d=new ve(9,Fv,e),g="Tish'a B'Av";6==d.getDay()&&(d=d.next(),f={observed:!0},g+=" (observed)");const y=d.abs();a(new Dv(new ve(ve.dayOnOrBefore(6,y)),"Shabbat Chazon",Mv),new Dv(d.prev(),"Erev Tish'a B'Av",Av|Tv,f),new Dv(d,g,Tv,f),new Dv(new ve(ve.dayOnOrBefore(6,y+7)),"Shabbat Nachamu",Mv));const p=ve.monthsInYear(e);for(let t=1;t<=p;t++){const n=ve.getMonthName(t,e);30==(t==Yv?ve.daysInMonth(ve.monthsInYear(e-1),e-1):ve.daysInMonth(t-1,e))?(a(new Ov(new ve(1,t,e),n)),a(new Ov(new ve(30,t-1,e),n))):t!==_v&&a(new Ov(new ve(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===_v||n===m.CHESHVAN||n===xv)continue;let r=new ve(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=ve.getMonthName(n,e);a(new Pv(r,i))}const w=Aw(e,!1).find(15);a(new Dv(w,"Shabbat Shirah",Mv));const v=function(e){const t=ve.isLeapYear(e),n=t?Uv:Yv,r=t?20:1,o=ve.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 ve(v);a(new Dv(e,"Birkat Hachamah",Ev,{emoji:"☀️"}))}return zv.set(e,o),o}const Jv=new Map;class Gv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Jv.set(e,t)}static lookup(e,t){const n=Jv.get(e);return"function"==typeof n?n(t):null}}const Wv="5.3.8";var qv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}};le.addLocale("ashkenazi",qv),le.addLocale("a",qv);var Xv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["אחרי השקיעה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};le.addLocale("he",Xv),le.addLocale("h",Xv);const Qv=Xv.contexts[""],eS={};for(const[e,t]of Object.entries(Qv))eS[e]=[le.hebrewStripNikkud(t[0])];const tS={headers:Xv.headers,contexts:{"":eS}};function nS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}le.addLocale("he-x-NoNikud",tS);const rS={shacharit:!1,mincha:!1,allCongs:!1};function oS(e,t){return aS(e,t,!0)}function aS(e,t,n){const r=function(e,t){const n=ve.isLeapYear(e),r=12+n;let o=new ve(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new ve(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(nS(1,r).map((t=>new ve(1,t,e))),nS(1,r).filter((t=>30===ve.daysInMonth(t,e))).map((t=>new ve(30,t,e))),new ve(2,m.TISHREI,e),nS(1,ve.daysInMonth(m.NISAN,e)).map((t=>new ve(t,m.NISAN,e))),new ve(18,m.IYYAR,e),nS(1,8-(t?1:0)).map((t=>new ve(t,m.SIVAN,e))),o,new ve(15,m.AV,e),new ve(29,m.ELUL,e),nS(9,24-(t?1:0)).map((t=>new ve(t,m.TISHREI,e))),nS(25,33).map((t=>new ve(t,m.KISLEV,e))),new ve(15,m.SHVAT,e),new ve(14,m.ADAR_II,e),a,n?new ve(14,m.ADAR_I,e):[]),s=[].concat(nS(1,13).map((t=>new ve(t,m.SIVAN,e))),nS(20,31).map((t=>new ve(t,m.TISHREI,e))),new ve(14,m.IYYAR,e),e>=5708?Zw(e).next():[],e>=5727?new ve(28,m.IYYAR,e):[]),c=[].concat(new ve(29,m.ELUL,e-1),new ve(9,m.TISHREI,e),new ve(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return rS;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=aS(new ve(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:rS}const iS=m.NISAN,sS=m.SIVAN,cS=m.ELUL,uS=m.TISHREI,hS=Ie.LIGHT_CANDLES,lS=Ie.YOM_TOV_ENDS,fS=Ie.CHUL_ONLY,dS=Ie.IL_ONLY,gS=Ie.LIGHT_CANDLES_TZEIS,mS=Ie.CHANUKAH_CANDLES,yS=Ie.MINOR_FAST,pS=Ie.SPECIAL_SHABBAT,wS=Ie.MODERN_HOLIDAY,vS=Ie.MAJOR_FAST,SS=Ie.ROSH_CHODESH,bS=Ie.PARSHA_HASHAVUA,MS=Ie.DAF_YOMI,IS=Ie.MISHNA_YOMI,TS=Ie.NACH_YOMI,ES=Ie.YERUSHALMI_YOMI,AS=Ie.OMER_COUNT,DS=Ie.SHABBAT_MEVARCHIM,CS=Ie.MINOR_HOLIDAY,OS=Ie.EREV,NS=Ie.CHOL_HAMOED,kS=Ie.YOM_KIPPUR_KATAN,HS=new Set,LS={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const RS={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},PS={281184:40,294801:30,293067:30};function YS(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(ve.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function jS(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&SS&&delete e.noRoshChodesh;t&wS&&delete e.noModern;t&yS&&delete e.noMinorFast;t&pS&&delete e.noSpecialShabbat;t&bS&&(e.sedrot=!0);t&(MS|IS|TS|ES)&&(e.dailyLearning=e.dailyLearning||{},t&MS&&(e.dailyLearning.dafYomi=!0),t&IS&&(e.dailyLearning.mishnaYomi=!0),t&TS&&(e.dailyLearning.nachYomi=!0),t&ES&&(e.dailyLearning.yerushalmi=1));t&AS&&(e.omer=!0);t&DS&&(e.shabbatMevarchim=!0);t&kS&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=SS|lS|yS|pS|wS|vS|CS|OS|NS|hS|gS|mS),e.candlelighting&&(r|=hS|gS|lS),e.noRoshChodesh&&(r&=~SS),e.noModern&&(r&=~wS),e.noMinorFast&&(r&=~yS),e.noSpecialShabbat&&(r&=~pS,r&=~DS),r|=n?dS:fS,e.sedrot&&(r|=bS),e.omer&&(r|=AS),e.shabbatMevarchim&&(r|=DS),e.yomKippurKatan&&(r|=kS),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=MS),t.mishnaYomi&&(r|=IS),t.nachYomi&&(r|=TS),t.yerushalmi&&(r|=ES)}return r}const FS=hS|gS|mS|lS,_S=new _p(0,0,!1,"UTC");function BS(e){return e.observedInIsrael()}function xS(e){return e.observedInDiaspora()}class $S{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof _p))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=PS[e];"number"==typeof r&&(n=r);const o=RS[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||_S,r=t.il=t.il||n.il||!1;if(t.mask=jS(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!le.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else le.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[YS(t.start),YS(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new ve).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?ve.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new ve(1,o||uS,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new ve(1,uS,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==LS[t]||HS.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),HS.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new ve(e),l=h.getFullYear();l!=u&&(u=l,i=Kv(u),t.sedrot&&(a=Aw(u,r)),t.omer&&(s=ve.hebrew2abs(u,iS,16),c=ve.hebrew2abs(u,sS,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const p=i.get(h.toString())||[];for(const e of p)y=US(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Dw(h,t.parsha,r,t.num))}const w=t.dailyLearning;if("object"==typeof w)for(const[e,t]of Object.entries(w))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Gv.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new aw(h,e-s+1);if(t.candlelighting){const e=new Vp(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const v=h.getMonth(),S=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&v!=cS&&S>=23&&S<=29){const e=v==ve.monthsInYear(l)?iS:v+1;if(t.molad&&o.push(new ow(h,l,e,t)),t.shabbatMevarchim){const n=ve.getMonthName(e,l),r=new rw(l,e).render(t.locale||"en",t);o.push(new Hv(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=Gp(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof qp&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Ae(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=B(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=E(r);let a=n.mm,i=n.dd;return a===F&&!o||a===_&&o?a=A(e):a!==R||30!==i||k(e)?a===P&&30===i&&H(e)?(a=Y,i=1):a===F&&30===i&&o&&!E(e)&&(a=L,i=1):(a=P,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new ve(n)}static getYahrzeit(e,t){const n=function(e,t){let n=B(t);if(!(e<=n.yy))return n.mm!==R||30!==n.dd||k(n.yy+1)?n.mm===P&&30===n.dd&&H(n.yy+1)?n=T(M(e,Y,1)-1):n.mm===_?n.mm=A(e):n.mm!==F||30!==n.dd||E(e)||(n.dd=30,n.mm=j):n=T(M(e,P,1)-1),n.mm!==R||30!==n.dd||k(e)?n.mm===P&&30===n.dd&&H(e)&&(n.mm=Y,n.dd=1):(n.mm=P,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new ve(n)}static getHolidaysForYear(e){return Kv(e)}static getHolidaysForYearArray(e,t){const n=Kv(e),r=ve.hebrew2abs(e,uS,1),o=ve.hebrew2abs(e+1,uS,1)-1;let a=[];const i=t?BS:xS;for(let e=r;e<=o;e++){const t=new ve(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=ve.isHDate(e)?e:new ve(e),r=n.toString(),o=Kv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?BS:xS;return o.filter(a)}static reformatTimeStr(e,t,n){return Jp(e,t,n)}static version(){return Wv}static getSedra(e,t){return Aw(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===m.NISAN&&(15===o||16===o)&&e.getFlags()&Ie.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()&Ie.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}($S.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return oS(e,t)}}function US(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&kS||r.noModern&&s&wS)return e;const c=r.location,u=Boolean(s&vS),h=Boolean(s&yS);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new Vp(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=Qp(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Qp(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=Qp(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=Qp(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&FS){const t=n.getDate();if(e=Gp(n,t,r,o,a),s&mS&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new Vp(r,t.greg(),n.useElevation);return Qp(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Dv(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&kS)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Nv,e.CandleLightingEvent=Xp,e.DailyLearning=Gv,e.Event=Ee,e.GeoLocation=Hp,e.HDate=ve,e.HavdalahEvent=qp,e.HebrewCalendar=$S,e.HebrewDateEvent=Ae,e.HolidayEvent=Dv,e.Locale=le,e.Location=_p,e.MevarchimChodeshEvent=Hv,e.Molad=rw,e.MoladEvent=ow,e.NOAACalculator=Rp,e.OmerEvent=aw,e.ParshaEvent=Dw,e.RoshChodeshEvent=Ov,e.RoshHashanaEvent=Lv,e.Sedra=sw,e.TimedEvent=Wp,e.Zmanim=Vp,e.flags=Ie,e.gematriya=z,e.gematriyaStrToNum=V,e.months=m,e.parshiot=cw,e.version=Wv,e}({});
|
|
1
|
+
/*! @hebcal/core v5.3.10 */
|
|
2
|
+
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],S=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],p=new Map,w=-1373428,v=365.24682220597794;function A(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function b(e,t,n){if(A(e,"year"),A(t,"month"),A(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=O(t,e);for(let n=a;n<t;n++)r+=O(n,e)}else for(let n=u;n<t;n++)r+=O(n,e);return w+D(e)+r-1}function I(e){return w+D(e)}function M(e){if(A(e,"abs"),(e=Math.trunc(e))<=w)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-w)/v);for(;I(t)<=e;)++t;--t;let n=e<b(t,1,1)?7:1;for(;e>b(t,n,O(n,t));)++n;return{yy:t,mm:n,dd:1+e-b(t,n,1)}}function T(e){return(1+7*e)%19<7}function E(e){return+T(e)+12}function O(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!T(t)||e===h&&!N(t)||e===l&&k(t)?29:30}function C(e,t){if(A(e,"month"),A(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return S[+T(t)][e]}function D(e){const t=p.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!T(e)||1==i%7&&a>=16789&&T(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return p.set(e,n),n}function H(e){return D(e+1)-D(e)}function N(e){return H(e)%10==5}function k(e){return H(e)%10==3}const _=m.NISAN,L=m.CHESHVAN,R=m.KISLEV,Y=m.TEVET,P=m.SHVAT,j=m.ADAR_I,B=m.ADAR_II;function F(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return M(t);if(e.greg.isDate(t)){return M(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const U={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},x=new Map,Z=new Map;for(const[e,t]of Object.entries(U))x.set(e,t),Z.set(t,e);function $(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function V(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=$(r);for(const t of e)n+=Z.get(t);n+="׳"}const o=$(t%1e3);if(1===o.length)return n+Z.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=Z.get(o[e]);return n}function z(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*z(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=x.get(n);"number"==typeof e&&(t+=e)}return t}const K={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function J(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function G(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return J(e),"en"===t?function(e){const[t,n]=G(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ae:12===e?r+="שְׁנֵים "+ae:12<e&&e<20?r+=X[n]+" "+ae:e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1],ae="עָשָׂר";const ie={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},se={h:"he",a:"ashkenazi",s:"en","":"en"},ce=new Map;let ue=null,he=null;class le{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&ce.get(n)||ue)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);ce.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=ce.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=ce.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=ce.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return he=se[t]||t,ue=n,ue}static getLocaleName(){return he}static getLocaleNames(){return Array.from(ce.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||he;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function fe(e){throw new TypeError(e)}le.addLocale("en",ie),le.addLocale("s",ie),le.addLocale("",ie),le.useLocale("en");const de="day",ge="week",me="month",ye="year",Se={d:de,w:ge,M:me,y:ye},pe={day:de,week:ge,month:me,year:ye};class we{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:fe(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?M(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return T(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return O(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=we.monthNum(e),ve(this),this}setDate(e){return this.dd=e,ve(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=b(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return b(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||le.getLocaleName(),n=this.getDate(),r=le.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${le.ordinal(n,t)}${we.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=le.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=le.gettext(this.getMonthName(),n),o=this.getFullYear();return V(t)+" "+r+" "+V(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 we(this.abs()+1)}prev(){return new we(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new we(this);if(t=we.standardizeUnits(t),t===de)return new we(this.abs()+e);if(t===ge)return new we(this.abs()+7*e);if(t===ye)return new we(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===me){let t=new we(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new we(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=Se[e]||String(e||"").toLowerCase().replace(/s$/,"");return pe[t]||fe(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!we.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!we.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return T(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return O(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):we.monthFromName(e)}static daysInYear(e){return H(e)}static longCheshvan(e){return N(e)}static shortKislev(e){return k(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(le.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=z(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=we.monthFromName(a);let s=z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new we(o,i,s)}}function ve(e){Ae(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=O(e.mm,e.yy),e.mm-=1,ve(e));e.dd>O(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=O(e.mm,e.yy),e.mm===E(e.yy)?e.mm=1:e.mm+=1,ve(e));Ae(e)}(e)}function Ae(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,ve(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,ve(e)):(e.mm-=1,ve(e)),delete e.rd}function be(e,t,n){return new we(we.dayOnOrBefore(e,t.abs()+n))}const Ie={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},Me=[[Ie.MAJOR_FAST,"holiday","major","fast"],[Ie.CHANUKAH_CANDLES,"holiday","major"],[Ie.HEBREW_DATE,"hebdate"],[Ie.MINOR_FAST,"holiday","fast"],[Ie.MINOR_HOLIDAY,"holiday","minor"],[Ie.MODERN_HOLIDAY,"holiday","modern"],[Ie.MOLAD,"molad"],[Ie.OMER_COUNT,"omer"],[Ie.PARSHA_HASHAVUA,"parashat"],[Ie.ROSH_CHODESH,"roshchodesh"],[Ie.SHABBAT_MEVARCHIM,"mevarchim"],[Ie.SPECIAL_SHABBAT,"holiday","shabbat"],[Ie.USER_EVENT,"user"]];class Te{constructor(e,t,n,r){if(!we.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 le.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Ie.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Ie.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of Me)if(e&t[0])return t.slice(1);return["unknown"]}}class Ee extends Te{constructor(e){super(e,e.toString(),Ie.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=le.gettext(t.getMonthName(),e);return V(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var Oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ce=function(e){return e&&e.Math===Math&&e},De=Ce("object"==typeof globalThis&&globalThis)||Ce("object"==typeof window&&window)||Ce("object"==typeof self&&self)||Ce("object"==typeof Oe&&Oe)||Ce("object"==typeof Oe&&Oe)||function(){return this}()||Function("return this")(),He={},Ne=function(e){try{return!!e()}catch(e){return!0}},ke=!Ne((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_e=!Ne((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Le=_e,Re=Function.prototype.call,Ye=Le?Re.bind(Re):function(){return Re.apply(Re,arguments)},Pe={},je={}.propertyIsEnumerable,Be=Object.getOwnPropertyDescriptor,Fe=Be&&!je.call({1:2},1);Pe.f=Fe?function(e){var t=Be(this,e);return!!t&&t.enumerable}:je;var Ue,xe,Ze=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$e=_e,Ve=Function.prototype,ze=Ve.call,Ke=$e&&Ve.bind.bind(ze,ze),Je=$e?Ke:function(e){return function(){return ze.apply(e,arguments)}},Ge=Je,We=Ge({}.toString),qe=Ge("".slice),Xe=Ne,Qe=function(e){return qe(We(e),8,-1)},et=Object,tt=Je("".split),nt=Xe((function(){return!et("z").propertyIsEnumerable(0)}))?function(e){return"String"===Qe(e)?tt(e,""):et(e)}:et,rt=function(e){return null==e},ot=rt,at=TypeError,it=function(e){if(ot(e))throw new at("Can't call method on "+e);return e},st=nt,ct=it,ut=function(e){return st(ct(e))},ht="object"==typeof document&&document.all,lt=void 0===ht&&void 0!==ht?function(e){return"function"==typeof e||e===ht}:function(e){return"function"==typeof e},ft=lt,dt=function(e){return"object"==typeof e?null!==e:ft(e)},gt=De,mt=lt,yt=function(e,t){return arguments.length<2?(n=gt[e],mt(n)?n:void 0):gt[e]&>[e][t];var n},St=Je({}.isPrototypeOf),pt=De,wt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",vt=pt.process,At=pt.Deno,bt=vt&&vt.versions||At&&At.version,It=bt&&bt.v8;It&&(xe=(Ue=It.split("."))[0]>0&&Ue[0]<4?1:+(Ue[0]+Ue[1])),!xe&&wt&&(!(Ue=wt.match(/Edge\/(\d+)/))||Ue[1]>=74)&&(Ue=wt.match(/Chrome\/(\d+)/))&&(xe=+Ue[1]);var Mt=xe,Tt=Ne,Et=De.String,Ot=!!Object.getOwnPropertySymbols&&!Tt((function(){var e=Symbol("symbol detection");return!Et(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mt&&Mt<41})),Ct=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=yt,Ht=lt,Nt=St,kt=Object,_t=Ct?function(e){return"symbol"==typeof e}:function(e){var t=Dt("Symbol");return Ht(t)&&Nt(t.prototype,kt(e))},Lt=String,Rt=lt,Yt=function(e){try{return Lt(e)}catch(e){return"Object"}},Pt=TypeError,jt=function(e){if(Rt(e))return e;throw new Pt(Yt(e)+" is not a function")},Bt=rt,Ft=Ye,Ut=lt,xt=dt,Zt=TypeError,$t={exports:{}},Vt=De,zt=Object.defineProperty,Kt=function(e,t){try{zt(Vt,e,{value:t,configurable:!0,writable:!0})}catch(n){Vt[e]=t}return t},Jt=De,Gt=Kt,Wt="__core-js_shared__",qt=$t.exports=Jt[Wt]||Gt(Wt,{});(qt.versions||(qt.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 Xt=$t.exports,Qt=Xt,en=function(e,t){return Qt[e]||(Qt[e]=t||{})},tn=it,nn=Object,rn=function(e){return nn(tn(e))},on=Je({}.hasOwnProperty),an=Object.hasOwn||function(e,t){return on(rn(e),t)},sn=Je,cn=0,un=Math.random(),hn=sn(1..toString),ln=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hn(++cn+un,36)},fn=en,dn=an,gn=ln,mn=Ot,yn=Ct,Sn=De.Symbol,pn=fn("wks"),wn=yn?Sn.for||Sn:Sn&&Sn.withoutSetter||gn,vn=function(e){return dn(pn,e)||(pn[e]=mn&&dn(Sn,e)?Sn[e]:wn("Symbol."+e)),pn[e]},An=Ye,bn=dt,In=_t,Mn=function(e,t){var n=e[t];return Bt(n)?void 0:jt(n)},Tn=function(e,t){var n,r;if("string"===t&&Ut(n=e.toString)&&!xt(r=Ft(n,e)))return r;if(Ut(n=e.valueOf)&&!xt(r=Ft(n,e)))return r;if("string"!==t&&Ut(n=e.toString)&&!xt(r=Ft(n,e)))return r;throw new Zt("Can't convert object to primitive value")},En=TypeError,On=vn("toPrimitive"),Cn=function(e,t){if(!bn(e)||In(e))return e;var n,r=Mn(e,On);if(r){if(void 0===t&&(t="default"),n=An(r,e,t),!bn(n)||In(n))return n;throw new En("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Dn=_t,Hn=function(e){var t=Cn(e,"string");return Dn(t)?t:t+""},Nn=dt,kn=De.document,_n=Nn(kn)&&Nn(kn.createElement),Ln=function(e){return _n?kn.createElement(e):{}},Rn=Ln,Yn=!ke&&!Ne((function(){return 7!==Object.defineProperty(Rn("div"),"a",{get:function(){return 7}}).a})),Pn=ke,jn=Ye,Bn=Pe,Fn=Ze,Un=ut,xn=Hn,Zn=an,$n=Yn,Vn=Object.getOwnPropertyDescriptor;He.f=Pn?Vn:function(e,t){if(e=Un(e),t=xn(t),$n)try{return Vn(e,t)}catch(e){}if(Zn(e,t))return Fn(!jn(Bn.f,e,t),e[t])};var zn={},Kn=ke&&Ne((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jn=dt,Gn=String,Wn=TypeError,qn=function(e){if(Jn(e))return e;throw new Wn(Gn(e)+" is not an object")},Xn=ke,Qn=Yn,er=Kn,tr=qn,nr=Hn,rr=TypeError,or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ir="enumerable",sr="configurable",cr="writable";zn.f=Xn?er?function(e,t,n){if(tr(e),t=nr(t),tr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&cr in n&&!n[cr]){var r=ar(e,t);r&&r[cr]&&(e[t]=n.value,n={configurable:sr in n?n[sr]:r[sr],enumerable:ir in n?n[ir]:r[ir],writable:!1})}return or(e,t,n)}:or:function(e,t,n){if(tr(e),t=nr(t),tr(n),Qn)try{return or(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new rr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ur=zn,hr=Ze,lr=ke?function(e,t,n){return ur.f(e,t,hr(1,n))}:function(e,t,n){return e[t]=n,e},fr={exports:{}},dr=ke,gr=an,mr=Function.prototype,yr=dr&&Object.getOwnPropertyDescriptor,Sr=gr(mr,"name"),pr={EXISTS:Sr,PROPER:Sr&&"something"===function(){}.name,CONFIGURABLE:Sr&&(!dr||dr&&yr(mr,"name").configurable)},wr=lt,vr=Xt,Ar=Je(Function.toString);wr(vr.inspectSource)||(vr.inspectSource=function(e){return Ar(e)});var br,Ir,Mr,Tr=vr.inspectSource,Er=lt,Or=De.WeakMap,Cr=Er(Or)&&/native code/.test(String(Or)),Dr=ln,Hr=en("keys"),Nr=function(e){return Hr[e]||(Hr[e]=Dr(e))},kr={},_r=Cr,Lr=De,Rr=dt,Yr=lr,Pr=an,jr=Xt,Br=Nr,Fr=kr,Ur="Object already initialized",xr=Lr.TypeError,Zr=Lr.WeakMap;if(_r||jr.state){var $r=jr.state||(jr.state=new Zr);$r.get=$r.get,$r.has=$r.has,$r.set=$r.set,br=function(e,t){if($r.has(e))throw new xr(Ur);return t.facade=e,$r.set(e,t),t},Ir=function(e){return $r.get(e)||{}},Mr=function(e){return $r.has(e)}}else{var Vr=Br("state");Fr[Vr]=!0,br=function(e,t){if(Pr(e,Vr))throw new xr(Ur);return t.facade=e,Yr(e,Vr,t),t},Ir=function(e){return Pr(e,Vr)?e[Vr]:{}},Mr=function(e){return Pr(e,Vr)}}var zr={set:br,get:Ir,has:Mr,enforce:function(e){return Mr(e)?Ir(e):br(e,{})},getterFor:function(e){return function(t){var n;if(!Rr(t)||(n=Ir(t)).type!==e)throw new xr("Incompatible receiver, "+e+" required");return n}}},Kr=Je,Jr=Ne,Gr=lt,Wr=an,qr=ke,Xr=pr.CONFIGURABLE,Qr=Tr,eo=zr.enforce,to=zr.get,no=String,ro=Object.defineProperty,oo=Kr("".slice),ao=Kr("".replace),io=Kr([].join),so=qr&&!Jr((function(){return 8!==ro((function(){}),"length",{value:8}).length})),co=String(String).split("String"),uo=fr.exports=function(e,t,n){"Symbol("===oo(no(t),0,7)&&(t="["+ao(no(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Wr(e,"name")||Xr&&e.name!==t)&&(qr?ro(e,"name",{value:t,configurable:!0}):e.name=t),so&&n&&Wr(n,"arity")&&e.length!==n.arity&&ro(e,"length",{value:n.arity});try{n&&Wr(n,"constructor")&&n.constructor?qr&&ro(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=eo(e);return Wr(r,"source")||(r.source=io(co,"string"==typeof t?t:"")),e};Function.prototype.toString=uo((function(){return Gr(this)&&to(this).source||Qr(this)}),"toString");var ho=fr.exports,lo=lt,fo=zn,go=ho,mo=Kt,yo={},So=Math.ceil,po=Math.floor,wo=Math.trunc||function(e){var t=+e;return(t>0?po:So)(t)},vo=wo,Ao=function(e){var t=+e;return t!=t||0===t?0:vo(t)},bo=Ao,Io=Math.max,Mo=Math.min,To=Ao,Eo=Math.min,Oo=function(e){var t=To(e);return t>0?Eo(t,9007199254740991):0},Co=ut,Do=function(e,t){var n=bo(e);return n<0?Io(n+t,0):Mo(n,t)},Ho=function(e){return Oo(e.length)},No=function(e){return function(t,n,r){var o=Co(t),a=Ho(o);if(0===a)return!e&&-1;var i,s=Do(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}},ko={includes:No(!0),indexOf:No(!1)},_o=an,Lo=ut,Ro=ko.indexOf,Yo=kr,Po=Je([].push),jo=function(e,t){var n,r=Lo(e),o=0,a=[];for(n in r)!_o(Yo,n)&&_o(r,n)&&Po(a,n);for(;t.length>o;)_o(r,n=t[o++])&&(~Ro(a,n)||Po(a,n));return a},Bo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fo=jo,Uo=Bo.concat("length","prototype");yo.f=Object.getOwnPropertyNames||function(e){return Fo(e,Uo)};var xo={};xo.f=Object.getOwnPropertySymbols;var Zo=yt,$o=yo,Vo=xo,zo=qn,Ko=Je([].concat),Jo=Zo("Reflect","ownKeys")||function(e){var t=$o.f(zo(e)),n=Vo.f;return n?Ko(t,n(e)):t},Go=an,Wo=Jo,qo=He,Xo=zn,Qo=Ne,ea=lt,ta=/#|\.prototype\./,na=function(e,t){var n=oa[ra(e)];return n===ia||n!==aa&&(ea(t)?Qo(t):!!t)},ra=na.normalize=function(e){return String(e).replace(ta,".").toLowerCase()},oa=na.data={},aa=na.NATIVE="N",ia=na.POLYFILL="P",sa=na,ca=De,ua=He.f,ha=lr,la=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(lo(n)&&go(n,a,r),r.global)o?e[t]=n:mo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:fo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},fa=Kt,da=function(e,t,n){for(var r=Wo(t),o=Xo.f,a=qo.f,i=0;i<r.length;i++){var s=r[i];Go(e,s)||n&&Go(n,s)||o(e,s,a(t,s))}},ga=sa,ma={},ya=jo,Sa=Bo,pa=Object.keys||function(e){return ya(e,Sa)},wa=ke,va=Kn,Aa=zn,ba=qn,Ia=ut,Ma=pa;ma.f=wa&&!va?Object.defineProperties:function(e,t){ba(e);for(var n,r=Ia(t),o=Ma(t),a=o.length,i=0;a>i;)Aa.f(e,n=o[i++],r[n]);return e};var Ta,Ea=yt("document","documentElement"),Oa=qn,Ca=ma,Da=Bo,Ha=kr,Na=Ea,ka=Ln,_a="prototype",La="script",Ra=Nr("IE_PROTO"),Ya=function(){},Pa=function(e){return"<"+La+">"+e+"</"+La+">"},ja=function(e){e.write(Pa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ba=function(){try{Ta=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ba="undefined"!=typeof document?document.domain&&Ta?ja(Ta):(t=ka("iframe"),n="java"+La+":",t.style.display="none",Na.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Pa("document.F=Object")),e.close(),e.F):ja(Ta);for(var r=Da.length;r--;)delete Ba[_a][Da[r]];return Ba()};Ha[Ra]=!0;var Fa=Object.create||function(e,t){var n;return null!==e?(Ya[_a]=Oa(e),n=new Ya,Ya[_a]=null,n[Ra]=e):n=Ba(),void 0===t?n:Ca.f(n,t)},Ua=vn,xa=Fa,Za=zn.f,$a=Ua("unscopables"),Va=Array.prototype;void 0===Va[$a]&&Za(Va,$a,{configurable:!0,value:xa(null)});var za=ko.includes,Ka=function(e){Va[$a][e]=!0};function Ja(e,t,n,r,o){return Ga(t,Wa(e,t),n,r,o)}function Ga(e,t,n,r,o,a){const i=Si(t,n,r);if(o&&t!==i)throw new RangeError(Ml(e,t,n,r,a));return i}function Wa(e,t){const n=e[t];if(void 0===n)throw new TypeError(El(t));return n}function qa(e){return null!==e&&/object|function/.test(typeof e)}function Xa(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 Qa(e){return ei({name:e},1)}function ei(e,t){return oi((e=>({value:e,configurable:1,writable:!t})),e)}function ti(e){return oi((e=>({get:e,configurable:1})),e)}function ni(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function ri(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function oi(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function ai(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 ii(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function si(e,t){const n={};for(const r of e)n[r]=t[r];return n}function ci(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function ui(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function hi(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function li(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function fi(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 di(e){return e[0].toUpperCase()+e.substring(1)}function gi(e){return e.slice().sort()}function mi(e,t){return String(t).padStart(e,"0")}function yi(e,t){return Math.sign(e-t)}function Si(e,t,n){return Math.min(Math.max(e,t),n)}function pi(e,t){return[Math.floor(e/t),wi(e,t)]}function wi(e,t){return(e%t+t)%t}function vi(e,t){return[Ai(e,t),bi(e,t)]}function Ai(e,t){return Math.trunc(e/t)||0}function bi(e,t){return e%t||0}function Ii(e){return.5===Math.abs(e%1)}function Mi(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=bf[a],s=Af/i,[c,u]=vi(t,s);r+=u*i,o+=c}const[a,i]=vi(r,Af);return[o+a,i]}function Ti(e,t,n){const r={};for(let o=t;o>=0;o--){const t=bf[o];r[n[o]]=Ai(e,t),e=bi(e,t)}return r}function Ei(e){if(void 0!==e)return Ci(e)}function Oi(e){return Li(Ci(e))}function Ci(e){return _i(Gf(e))}function Di(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Hi(e,t){if(null==t)throw new RangeError(El(e));return t}function Ni(e){if(!qa(e))throw new TypeError(Il);return e}function ki(e,t){if(typeof t!==e)throw new TypeError(Tl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function _i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Sl(t,e));return e||0}function Li(e){if(e<=0)throw new RangeError(pl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function Ri(e){if("symbol"==typeof e)throw new TypeError(bl);return String(e)}function Yi(e,t){return qa(e)?String(e):Kf(e,t)}function Pi(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Al(e));return e}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(vl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(wl(t,e));return e}function Bi(e,t){return Math.trunc(ji(e,t))||0}function Fi(e,t){return _i(ji(e,t),t)}function Ui(e,t){return Li(Bi(e,t),t)}function xi(e,t){let[n,r]=vi(t,Af),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Af),[o,r]}function Zi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return xi(e[0]+t[0]*n,e[1]+t[1]*n)}function $i(e,t){return xi(e[0],e[1]+t)}function Vi(e,t){return Zi(t,e,-1)}function zi(e,t){return yi(e[0],t[0])||yi(e[1],t[1])}function Ki(e,t,n){return-1===zi(e,t)||1===zi(e,n)}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Af/t);return[Number(e/n),Number(e%n)*t]}function Gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Af/t,[r,o]=vi(e,n);return[r,o*t]}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Af/t;return BigInt(n)*BigInt(a)+BigInt(o)}function qi(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]=vi(o,t);return r*(Af/t)+(a+(n?i/t:0))}function Xi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pi;const[r,o]=e,[a,i]=n(o,t);return[r*(Af/t)+a,i]}function Qi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function es(e){return Ja(e,"isoYear",Ad,vd,1),e.isoYear===Ad?Ja(e,"isoMonth",4,12,1):e.isoYear===vd&&Ja(e,"isoMonth",1,9,1),e}function ts(e){return ns({...e,...fd,isoHour:12}),e}function ns(e){const t=Ja(e,"isoYear",Ad,vd,1),n=t===Ad?1:t===vd?-1:0;return n&&rs(us({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function rs(e){if(!e||Ki(e,wd,pd))throw new RangeError(ql);return e}function os(e){return Mi(e,5,id)[1]}function as(e){const[t,n]=pi(e,Af);return[Ti(n,5,id),t]}function is(e){return ss(e)[0]}function ss(e){return Xi(e,pf)}function cs(e){return fs(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function us(e){const t=cs(e);if(void 0!==t){const[n,r]=vi(t,gf);return[n,r*Sf+(e.isoMicrosecond||0)*yf+(e.isoNanosecond||0)]}}function hs(e,t){const[n,r]=as(os(e)-t);return rs(us({...e,isoDay:e.isoDay+r,...n}))}function ls(){return fs(...arguments)/mf}function fs(){const[e,t]=ds(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*gf}function ds(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===Ad?1:e===vd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function gs(e,t){let[n,r]=$i(e,t);r<0&&(r+=Af,n-=1);const[o,a]=pi(r,Sf),[i,s]=pi(a,yf);return ms(n*gf+o,i,s)}function ms(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)-Sd)/gf)*Math.sign(e),o=new Date(e-r*gf);return ri(cd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ys(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Ss(){return Md}function ps(e,t){switch(t){case 2:return vs(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function ws(e){return vs(e)?366:365}function vs(e){return e%4==0&&(e%100!=0||e%400==0)}function As(e){const[t,n]=ds(e.isoYear,e.isoMonth,e.isoDay);return wi(t.getUTCDay()-n,7)||7}function bs(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Is(e){const t=cs(e);if(t<Td)return bs(e);const n=Qi(_g(Zf),t),{era:r,eraYear:o}=Ah(n,Zf);return[r,o]}function Ms(e){return Ts(e),Cs(e,1),e}function Ts(e){return Os(e,1),e}function Es(e){return hi(sd,e,Os(e))}function Os(e,t){const{isoYear:n}=e,r=Ja(e,"isoMonth",1,Ss(),t);return{isoYear:n,isoMonth:r,isoDay:Ja(e,"isoDay",1,ps(n,r),t)}}function Cs(e,t){return ri(id,[Ja(e,"isoHour",0,23,t),Ja(e,"isoMinute",0,59,t),Ja(e,"isoSecond",0,59,t),Ja(e,"isoMillisecond",0,999,t),Ja(e,"isoMicrosecond",0,999,t),Ja(e,"isoNanosecond",0,999,t)])}function Ds(e){return void 0===e?0:Zd(Ni(e))}function Hs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Us(e);const n=$d(e),r=Vd(e,t);return[Zd(e),r,n]}function Ns(e){return $d(Us(e))}function ks(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=Us(t);let i=Ud(t,r,o),s=js(t),c=Gd(t,a);const u=Fd(t,r,o,1);return null==i?i=Math.max(n,u):Ks(i,u),s=Bs(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function _s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=js(e=xs(e,Od));const o=Gd(e,7);let a=Fd(e,t);return a=Hi(Od,a),r=Bs(r,a,void 0,n),[a,r,o]}function Ls(e){return zd(Us(e))}function Rs(e,t){return Ys(Us(e),t)}function Ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Fs(e);return[Gd(e,4),...Ps(Fd(e,t),n)]}function Ps(e,t){return null!=e?[bf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function js(e){const t=e[Dd];return void 0===t?1:Bi(t,Dd)}function Bs(e,t,n,r){const o=r?Af:bf[t+1];if(o){const n=bf[t];if(o%((e=Ga(Dd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Tl(Dd,e))}else e=Ga(Dd,e,1,n?10**9:1,1);return e}function Fs(e){let t=e[Hd];if(void 0!==t){if("number"!=typeof t){if("auto"===Ri(t))return;throw new RangeError(Tl(Hd,t))}t=Ga(Hd,Math.floor(t),0,9,1)}return t}function Us(e){return void 0===e?{}:Ni(e)}function xs(e,t){return"string"==typeof e?{[t]:e}:Ni(e)}function Zs(e){if(void 0!==e){if(qa(e))return Object.assign(Object.create(null),e);throw new TypeError(Il)}}function $s(e,t){return e&&Object.assign(Object.create(null),e,{overflow:_d[t]})}function Vs(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=Ri(a),"auto"===a)return o?r:null;let i=ff[a];if(void 0===i&&(i=nd[a]),void 0===i)throw new RangeError(Hl(e,a,ff));return Ga(e,i,r,n,1,df),i}function zs(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=Ri(o),i=t[a];if(void 0===i)throw new RangeError(Hl(e,a,t));return i}function Ks(e,t){if(t>e)throw new RangeError(rf)}function Js(e){return{branding:ng,epochNanoseconds:e}}function Gs(e,t,n){return{branding:tg,calendar:n,timeZone:t,epochNanoseconds:e}}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Qd,calendar:t,...si(ld,e)}}function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Xd,calendar:t,...si(ud,e)}}function Xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Wd,calendar:t,...si(ud,e)}}function Qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:qd,calendar:t,...si(ud,e)}}function ec(e){return{branding:eg,...si(hd,e)}}function tc(e){return{branding:rg,sign:pu(e),...si(Xf,e)}}function nc(e){return Xi(e.epochNanoseconds,Sf)[0]}function rc(e){return e.epochNanoseconds}function oc(e){return"string"==typeof e?e:Kf(e.id)}function ac(e,t){return e===t||oc(e)===oc(t)}function ic(e,t,n,r,o,a){const i={...rd,[qf[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function sc(e,t,n){const r=qi(Vi(t,n));if(!r)throw new RangeError(xl);return qi(Vi(t,e))/r}function cc(e,t,n,r){return uc(e,fc(t,n),r)}function uc(e,t,n){const[r,o]=hc(e,t,n);return ns({...su(e,o),...r})}function hc(e,t,n){return as(wc(os(e),t,n))}function lc(e){return wc(e,wf,7)}function fc(e,t){return bf[e]*t}function dc(e){const t=gc(e);return[t,su(t,1)]}function gc(e){return dd(6,e)}function mc(e,t,n){const r=Math.min(Tu(e),6);return bu(pc(Au(e,r),t,n),r)}function yc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Ic:fu(i)&&r<6?bc:Ac;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=pu(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=ad(c,e);r[qf[c]]+=s;const u=qi(Vi(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function Sc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Af)(e);return[wc(t,n,r),0]}return pc(e,fc(t,n),r,o)}function pc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Af,o-=1);const[i,s]=pi(wc(a,t,n),Af);return xi(o+i,s)}function wc(e,t,n){return vc(e/t,n)*t}function vc(e,t){return og[t](e)}function Ac(e,t,n,r,o,a){const i=pu(e),s=Au(e),c=Sc(s,r,o,a),u=Vi(s,c),h=Math.sign(c[0]-s[0])===i,l=bu(c,Math.min(n,6));return[{...e,...l},Zi(t,u),h]}function bc(e,t,n,r,o,a,i,s,c){const u=pu(e);let[h,l]=Au(e,5);const f=fc(r,o);let d=wc(l,f,a);const[g,m]=ic({...e,...od},6,u,i,s,c),y=d-qi(Vi(g,m));y&&Math.sign(y)!==u?t=$i(g,d):(h+=u,d=wc(y,f,a),t=$i(m,d));const S=Iu(d);return[{...e,...S,days:e.days+h},t,Boolean(h)]}function Ic(e,t,n,r,o,a,i,s,c){const u=pu(e),h=qf[r],l=ad(r,e),f=Ai(e[h],o)*o;l[h]=f;const[d,g]=ic(l,r,o*u,i,s,c),m=f+sc(t,d,g)*u*o,y=wc(m,o,a),S=Math.sign(y-m)===u;return l[h]=y,[l,S?g:d,S]}function Mc(e,t,n,r){const[o,a,i,s]=(e=>{const t=Ys(e=Us(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=pc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return Lc(gs(n,i),a)+(e?Bc(lc(i)):"Z")})(c,t(c?e(o):ag),n.epochNanoseconds,a,i,s)}function Tc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=Us(e);const t=zd(e),n=Fs(e),r=Jd(e),o=Gd(e,4),a=Fd(e,4);return[t,Kd(e),r,o,...Ps(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=pc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return Lc(gs(r,h),u)+Bc(lc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+oc(e)+"]":"")(n,a)+Fc(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Ec(e,t){const[n,r,o,a]=(e=>(e=Us(e),[zd(e),...Ys(e)]))(t);return i=e.calendar,s=n,c=a,Lc(uc(e,o,r),c)+Fc(i,s);var i,s,c}function Oc(e,t){return n=e.calendar,r=e,o=Ls(t),Rc(r)+Fc(n,o);var n,r,o}function Cc(e,t){return kc(e.calendar,Yc,e,Ls(t))}function Dc(e,t){return kc(e.calendar,Pc,e,Ls(t))}function Hc(e,t){const[n,r,o]=Rs(t);return a=o,jc(hc(e,r,n)[0],a);var a}function Nc(e,t){const[n,r,o]=Rs(t,3);return r>1&&(e={...e,...mc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Su(e):e,{hours:o,minutes:a}=r,[i,s]=Xi(Au(r,3),pf,vi);vu(i);const c=xc(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+_c({Y:$c(r.years),M:$c(r.months),W:$c(r.weeks),D:$c(r.days)})+(o||a||i||u?"T"+_c({H:$c(o),M:$c(a),S:$c(i,u)+c}):"")})(e,o)}function kc(e,t,n,r){const o=oc(e),a=r>1||0===r&&o!==Uf;return 1===r?o===Uf?t(n):Rc(n):a?Rc(n)+Uc(o,2===r):t(n)}function _c(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Lc(e,t){return Rc(e)+"T"+jc(e,t)}function Rc(e){return Yc(e)+"-"+lf(e.isoDay)}function Yc(e){const{isoYear:t}=e;return(t<0||t>9999?Zc(t)+mi(6,Math.abs(t)):mi(4,t))+"-"+lf(e.isoMonth)}function Pc(e){return lf(e.isoMonth)+"-"+lf(e.isoDay)}function jc(e,t){const n=[lf(e.isoHour),lf(e.isoMinute)];return-1!==t&&n.push(lf(e.isoSecond)+((e,t,n,r)=>xc(e*Sf+t*yf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Bc(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=pi(Math.abs(e),vf),[r,o]=pi(n,wf),[a,i]=pi(o,pf);return Zc(e)+lf(t)+":"+lf(r)+(a||i?":"+lf(a)+xc(i):"")}function Fc(e,t){if(1!==t){const n=oc(e);if(t>1||0===t&&n!==Uf)return Uc(n,2===t)}return""}function Uc(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function xc(e,t){let n=mi(9,e);return n=void 0===t?n.replace(ug,""):n.slice(0,t),n?"."+n:""}function Zc(e){return e<0?"-":"+"}function $c(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Vc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=gs(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function zc(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 hs(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=us(t);r&&(n=lc(n));for(const t of e){let e=qi(Vi(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(Gl)}return i?us(t):Kc(e,t,o,s)}function Kc(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(Wl);if(r.length)return r[3===n?1:0];const o=us(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor($i(t,-Af));return Gc(e.getOffsetNanosecondsFor($i(t,Af))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(gs(o,i)))[2===n?0:r.length-1]}function Jc(e){if(Math.abs(e)>=Af)throw new RangeError(Kl);return e}function Gc(e){if(e>Af)throw new RangeError(Jl);return e}function Wc(e,t,n){return Js(rs(Zi(t.epochNanoseconds,(e=>{if(Mu(e))throw new RangeError(tf);return Au(e,5)})(e?Su(n):n))))}function qc(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,...nu(s,i,r,n?Su(o):o,a)}}function Xc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Ws(ru(e(a),n,t?Su(r):r,o),a)}function Qc(e,t,n,r,o){const{calendar:a}=n;return qs(ou(e(a),n,t?Su(r):r,o),a)}function eu(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=au(i,n);t&&(r=yu(r)),r.sign<0&&(s=i.dateAdd(s,{...rd,months:1}),s=su(s,-1));const c=i.dateAdd(s,r,o);return Xs(au(i,c),a)}function tu(e,t,n){return ec(iu(t,e?Su(n):n)[0])}function nu(e,t,n,r,o){const a=Au(r,5);let i=n.epochNanoseconds;if(Mu(r)){const s=hg(n,t);i=Zi(Kc(t,{...ou(e,s,{...r,...od},o),...si(id,s)}),a)}else i=Zi(i,a),Ds(o);return{epochNanoseconds:rs(i)}}function ru(e,t,n,r){const[o,a]=iu(t,n);return ns({...ou(e,t,{...n,...od,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);Ds(r);const o=n.days+Au(n,5)[0];return o?ts(su(t,o)):t}function au(e,t){return su(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function iu(e,t){const[n,r]=Au(t,5),[o,a]=as(os(e)+r);return[o,n+a]}function su(e,t){return t?{...e,...ms(cs(e)+t*gf)}:e}function cu(e,t,n){const r=e(n.calendar);return fu(n)?[n,r,t(n.timeZone)]:[{...n,...fd},r]}function uu(e){return e?rc:us}function hu(e,t){return t?fi(nu,e,t):fi(ru,e)}function lu(e,t){return t?fi(ch,e,t):fi(uh,e)}function fu(e){return e&&e.epochNanoseconds}function du(e,t){return e<=6-(fu(t)?1:0)}function gu(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function mu(e,t,n,r,o,a,i){const s=e(Us(i).relativeTo),c=Math.max(Tu(o),Tu(a));if(du(c,s))return tc(wu(((e,t,n,r)=>{const o=Zi(Au(e),Au(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(ql);return{...rd,...bu(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(ef);r&&(a=Su(a));const[u,h,l]=cu(t,n,s),f=hu(h,l),d=lu(h,l),g=f(u,o);return tc(d(u,f(g,a),c))}function yu(e){return tc(Su(e))}function Su(e){const t={};for(const n of qf)t[n]=-1*e[n]||0;return t}function pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qf,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Ql);n=t}}return n}function wu(e){for(const t of td)Ga(t,e[t],-lg,lg,1);return vu(qi(Au(e),pf)),e}function vu(e){if(!Number.isSafeInteger(e))throw new RangeError(Xl)}function Au(e){return Mi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,qf)}function bu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Ti(r,t,qf);if(o[qf[t]]+=n*(Af/bf[t]),!Number.isFinite(o[qf[t]]))throw new RangeError(ql);return o}function Iu(e){return Ti(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,qf)}function Mu(e){return Boolean(pu(e,ed))}function Tu(e){let t=9;for(;t>0&&!e[qf[t]];t--);return t}function Eu(e,t){return[e,t]}function Ou(e){const t=Math.floor(e/ig)*ig;return[t,t+ig]}function Cu(e){const t=ju(e);if(void 0===t)throw new RangeError(of(e));return t}function Du(e){const t=Ru(Kf(e));if(!t||t.O)throw new RangeError(of(e));return qs(t.I?ku(t):_u(t))}function Hu(e){if(e.calendar!==Uf)throw new RangeError(af(e.calendar))}function Nu(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=zu(e.timeZone),a=fg(o);return Gs(zc(a,Ms(e),t,n,r,!a.R,e.O),o,Hh(e.calendar))}function ku(e){return Lu(ns(Ms(e)))}function _u(e){return Lu(ts(Ts(e)))}function Lu(e){return{...e,calendar:Hh(e.calendar)}}function Ru(e){const t=Tg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Bu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Fu(e.slice(5)),...Uu(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function Yu(e){const t=Ig.exec(e);return t?(e=>({isoYear:Bu(e),isoMonth:parseInt(e[4]),isoDay:1,...Uu(e[5])}))(t):void 0}function Pu(e){const t=Mg.exec(e);return t?(e=>({isoYear:Id,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Uu(e[3])}))(t):void 0}function ju(e,t){const n=Og.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(af(n));return Jc((Vu(e[2])*vf+Vu(e[3])*wf+Vu(e[4])*pf+xu(e[5]||""))*$u(e[1]))})(n,t):void 0}function Bu(e){const t=$u(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(af(-0));return t*n}function Fu(e){const t=Vu(e[3]);return{...as(xu(e[4]||""))[0],isoHour:Vu(e[1]),isoMinute:Vu(e[2]),isoSecond:60===t?59:t}}function Uu(e){let t,n;const r=[];if(e.replace(Cg,((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(af(e))}else{if(n)throw new RangeError(af(e));n=s}return""})),r.length>1&&t)throw new RangeError(af(e));return{timeZone:n,calendar:r[0]||Uf}}function xu(e){return parseInt(e.padEnd(9,"0"))}function Zu(e){return new RegExp(`^${e}$`,"i")}function $u(e){return e&&"+"!==e?-1:1}function Vu(e){return void 0===e?0:parseInt(e)}function zu(e){const t=Ju(e);return"number"==typeof t?Bc(t):t?(e=>{if(Ng.test(e))throw new RangeError(zl);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?di(e).replace(/island|noronha|murdo|rivadavia|urville/,di):e)))).join("/")})(e):ag}function Ku(e){const t=Ju(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:ag}function Ju(e){const t=ju(e=e.toUpperCase(),1);return void 0!==t?t:e!==ag?Hg(e):void 0}function Gu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function Wu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function qu(e,t){return Xu(e,t)||Qu(e,t)}function Xu(e,t){return yi(cs(e),cs(t))}function Qu(e,t){return yi(os(e),os(t))}function eh(e,t){if(e===t)return 1;const n=oc(e),r=oc(t);if(n===r)return 1;try{return Ku(n)===Ku(r)}catch(e){}}function th(e,t,n,r){const o=ks(e,Zs(r),3,5),a=fh(t.epochNanoseconds,n.epochNanoseconds,...o);return tc(e?Su(a):a)}function nh(e,t,n,r,o,a){const i=Sh(r.calendar,o.calendar),s=Zs(a),[c,u,h,l]=ks(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=zi(d,f);let m;if(g)if(c<6)m=fh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!eh(e,t))throw new RangeError(Vl);return e})(r.timeZone,o.timeZone)),a=e(i);m=hh(a,n,r,o,g,c,s),m=yc(m,d,c,u,h,l,r,rc,fi(nu,a,n))}else m=rd;return tc(n?Su(m):m)}function rh(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=Zs(o),[s,c,u,h]=ks(t,i,6),l=us(n),f=us(r),d=zi(f,l);let g;if(d)if(s<=6)g=fh(l,f,s,c,u,h);else{const t=e(a);g=lh(t,n,r,d,s,i),g=yc(g,f,s,c,u,h,n,us,fi(ru,t))}else g=rd;return tc(t?Su(g):g)}function oh(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=Zs(o);return ih(t,(()=>e(a)),n,r,...ks(t,i,6,9,6),i)}function ah(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=Zs(o),s=ks(t,i,9,9,8),c=e(a);return ih(t,(()=>c),au(c,n),au(c,r),...s,i)}function ih(e,t,n,r,o,a,i,s,c){const u=us(n),h=us(r);let l;if(zi(h,u))if(6===o)l=fh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=yc(l,h,o,a,i,s,n,us,fi(ou,e)))}else l=rd;return tc(e?Su(l):l)}function sh(e,t,n,r){const o=Zs(r),[a,i,s,c]=ks(e,o,5,5),u=wc(yh(t,n),fc(i,s),c),h={...rd,...Iu(u,a)};return tc(e?Su(h):h)}function ch(e,t,n,r,o,a){const i=zi(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?dh(n.epochNanoseconds,r.epochNanoseconds,o):hh(e,t,n,r,i,o,a):rd}function uh(e,t,n,r,o){const a=us(t),i=us(n),s=zi(i,a);return s?r<=6?dh(a,i,r):lh(e,t,n,s,r,o):rd}function hh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...su(s,u++*-r),...i},f=Kc(e,l),zi(c,f)===-r}const a=hg(t,e),i=si(id,a),s=hg(n,e),c=n.epochNanoseconds;let u=0;const h=yh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(xl);const d=qi(Vi(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...rd,days:gh(h,l)}):e.dateUntil(s,c,a,i),...Iu(u)}}function lh(e,t,n,r,o,a){let i=t,s=yh(t,n);return Math.sign(s)===-r&&(i=su(t,r),s+=Af*r),{...e.dateUntil(i,n,o,a),...Iu(s)}}function fh(e,t,n,r,o,a){return{...rd,...bu(Sc(Vi(e,t),r,o,a),n)}}function dh(e,t,n){return{...rd,...bu(Vi(e,t),n)}}function gh(e,t){return mh(cs(e),cs(t))}function mh(e,t){return Math.trunc((t-e)/gf)}function yh(e,t){return os(t)-os(e)}function Sh(e,t){if(!ac(e,t))throw new RangeError(Zl);return e}function ph(e){function t(e){return((e,t)=>({...Ah(e,t),o:e.month,day:parseInt(e.day)}))(Qi(n,e),r)}const n=_g(e),r=Nh(e);return{id:e,h:wh(t),l:vh(t)}}function wh(e){return Xa((t=>{const n=cs(t);return e(n)}),WeakMap)}function vh(e){const t=e(0).year-bd;return Xa((n=>{let r,o=fs(n-t);const a=[],i=[];do{o+=400*gf}while((r=e(o)).year<=n);do{o+=(1-r.day)*gf,r.year===n&&(a.push(o),i.push(r.o)),o-=gf}while((r=e(o)).year>=n);return{i:a.reverse(),u:uf(i.reverse())}}))}function Ah(e,t){let n,r,o=bh(e);if(e.era){const i=$f[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Vf[a]||a,r=o,o=jh(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function bh(e){return parseInt(e.relatedYear||e.year)}function Ih(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Mh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*gf}function Th(e){const t=Dh(this,e),n=Dh(this,e-1),r=t.length;if(r>n.length){const e=Fh(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Eh(e){return mh(Mh.call(this,e),Mh.call(this,e+1))}function Oh(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),mh(n[t-1],o[r-1])}function Ch(e){return this.l(e).i.length}function Dh(e,t){return Object.keys(e.l(t).u)}function Hh(e){if((e=e.toLowerCase())!==Uf&&e!==xf&&Nh(e)!==Nh(_g(e).resolvedOptions().calendar))throw new RangeError($l(e));return e}function Nh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function kh(e){return this.m(e)[0]}function _h(e){return this.m(e)[1]}function Lh(e){const[t]=this.v(e);return mh(this.p(t),cs(e))+1}function Rh(e){const t=Lg.exec(e);if(!t)throw new RangeError(Pl(e));return[parseInt(t[1]),Boolean(t[2])]}function Yh(e,t,n){return e+(t||n&&e>=n?1:0)}function Ph(e,t){return e-(t&&e>=t?1:0)}function jh(e,t){return(t+e)*(Math.sign(t)||1)||0}function Bh(e){return $f[Uh(e)]}function Fh(e){return zf[Uh(e)]}function Uh(e){return Nh(e.id||Uf)}function xh(e,t,n,r){const o=zh(n,r,Pf,[],Cf);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Jh(o),i=e(o.timeZone);return{epochNanoseconds:zc(t(i),{...r,...a},void 0!==o.offset?Cu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...fd}}function Zh(e,t,n){const r=zh(e,t,Pf,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function $h(e,t,n,r){const o=zh(e,t,Rf,r);return e.yearMonthFromFields(o,n)}function Vh(e,t,n,r){const o=zh(e,n,Pf,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=Id),e.monthDayFromFields(o,r)}function zh(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 Kh(t,[...e.fields(n),...o].sort(),r)}function Kh(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(Cl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Ol(r));let t=e[r];if(void 0!==t)i=1,jg[r]&&(t=jg[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(El(r));o[r]=Ff[r]}a=r}if(r&&!i)throw new TypeError(Dl(t));return o}function Jh(e,t){return Cs(Bg({...Ff,...e}),t)}function Gh(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=Kh(t,i,a);const c=Kh(n,i);return s=e.mergeFields(s,c),Kh(s,i,[])}function Wh(e,t){const n=zh(e,t,Bf);return e.monthDayFromFields(n)}function qh(e,t,n){const r=zh(e,t,Yf);return e.yearMonthFromFields(r,n)}function Xh(e,t,n,r,o){t=si(n=e.fields(n),t),r=Kh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Kh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Qh(e,t){let{era:n,eraYear:r,year:o}=t;const a=Bh(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(_l);if(!a)throw new RangeError(kl);const e=a[n];if(void 0===e)throw new RangeError(Rl(n));const t=jh(r,e);if(void 0!==o&&o!==t)throw new RangeError(Ll);o=t}else if(void 0===o)throw new TypeError(Yl(a));return o}function el(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=Rh(t);let s=Yh(a,i,o);if(i){const t=Fh(e);if(void 0===t)throw new RangeError(Ul);if(t>0){if(s>t)throw new RangeError(Ul);if(void 0===o){if(1===r)throw new RangeError(Ul);s--}}else{if(s!==-t)throw new RangeError(Ul);if(void 0===o&&1===r)throw new RangeError(Ul)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(jl);o=t,r=1}else if(void 0===o)throw new TypeError(Bl);return Ga("month",o,1,e.j(n),r)}function tl(e,t,n,r,o){return Ja(t,"day",1,e.N(r,n),o)}function nl(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 rl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uf;return Gs(e.epochNanoseconds,t,n)}function ol(e,t){return Ws(hg(t,e))}function al(e,t){return qs(hg(t,e))}function il(e,t){return ec(hg(t,e))}function sl(e,t){return{...e,calendar:t}}function cl(e,t){if(e===t)return e;const n=oc(e),r=oc(t);if(n===r||n===Uf)return t;if(r===Uf)return e;throw new RangeError(Zl)}function ul(e,t){return n=>n===Uf?e:n===xf||n===Zf?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),kg(n))}function hl(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=ci(r,o),e)||Object.assign(o,t),n&&(o.timeZone=ag,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gm;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,...dl(e,h,s)]}}function fl(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(cf);n.timeZone=e}return new gd(t,n)}function dl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Uf)&&e!==t)throw new RangeError(Zl)})(oc(e.calendar),t.calendar,o),r(e,t))))}function gl(e){const t=ml();return gs(t,e.getOffsetNanosecondsFor(t))}function ml(){return Gi(Date.now(),Sf)}function yl(){return bm||(bm=(new gd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?ca:u?ca[s]||fa(s,{}):ca[s]&&ca[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=ua(n,r))&&i.value:n[r],!ga(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;da(a,o)}(e.sham||o&&o.sham)&&ha(a,"sham",!0),la(n,r,a,e)}})({target:"Array",proto:!0,forced:Ne((function(){return!Array(1).includes()}))},{includes:function(e){return za(this,e,arguments.length>1?arguments[1]:void 0)}}),Ka("includes");const Sl=(e,t)=>`Non-integer ${e}: ${t}`,pl=(e,t)=>`Non-positive ${e}: ${t}`,wl=(e,t)=>`Non-finite ${e}: ${t}`,vl=e=>`Cannot convert bigint to ${e}`,Al=e=>`Invalid bigint: ${e}`,bl="Cannot convert Symbol to string",Il="Invalid object",Ml=(e,t,n,r,o)=>o?Ml(e,o[t],o[n],o[r]):Tl(e,t)+`; must be between ${n}-${r}`,Tl=(e,t)=>`Invalid ${e}: ${t}`,El=e=>`Missing ${e}`,Ol=e=>`Invalid field ${e}`,Cl=e=>`Duplicate field ${e}`,Dl=e=>"No valid fields: "+e.join(),Hl=(e,t,n)=>Tl(e,t)+"; must be "+Object.keys(n).join(),Nl="Invalid calling context",kl="Forbidden era/eraYear",_l="Mismatching era/eraYear",Ll="Mismatching year/eraYear",Rl=e=>`Invalid era: ${e}`,Yl=e=>"Missing year"+(e?"/era/eraYear":""),Pl=e=>`Invalid monthCode: ${e}`,jl="Mismatching month/monthCode",Bl="Missing month/monthCode",Fl="Cannot guess year",Ul="Invalid leap month",xl="Invalid protocol results",Zl="Mismatching Calendars",$l=e=>`Invalid Calendar: ${e}`,Vl="Mismatching TimeZones",zl="Forbidden ICU TimeZone",Kl="Out-of-bounds offset",Jl="Out-of-bounds TimeZone gap",Gl="Invalid TimeZone offset",Wl="Ambiguous offset",ql="Out-of-bounds date",Xl="Out-of-bounds duration",Ql="Cannot mix duration signs",ef="Missing relativeTo",tf="Cannot use large units",nf="Required smallestUnit or largestUnit",rf="smallestUnit > largestUnit",of=e=>`Cannot parse: ${e}`,af=e=>`Invalid substring: ${e}`,sf=e=>`Cannot format ${e}`,cf="Cannot specify TimeZone",uf=fi(ai,((e,t)=>t)),hf=fi(ai,((e,t,n)=>n)),lf=fi(mi,2),ff={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},df=Object.keys(ff),gf=864e5,mf=1e3,yf=1e3,Sf=1e6,pf=1e9,wf=6e10,vf=36e11,Af=864e11,bf=[1,yf,Sf,pf,wf,vf,Af],If=df.slice(0,6),Mf=gi(If),Tf=["offset"],Ef=["timeZone"],Of=If.concat(Tf),Cf=Of.concat(Ef),Df=["era","eraYear"],Hf=Df.concat(["year"]),Nf=["year"],kf=["monthCode"],_f=["month"].concat(kf),Lf=["day"],Rf=_f.concat(Nf),Yf=kf.concat(Nf),Pf=Lf.concat(Rf),jf=Lf.concat(_f),Bf=Lf.concat(kf),Ff=hf(If,0),Uf="iso8601",xf="gregory",Zf="japanese",$f={[xf]:{bce:-1,ce:0},[Zf]:{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}},Vf={bc:"bce",ad:"ce"},zf={chinese:13,dangi:13,hebrew:-6},Kf=fi(ki,"string"),Jf=fi(ki,"boolean"),Gf=fi(ki,"number"),Wf=fi(ki,"function"),qf=df.map((e=>e+"s")),Xf=gi(qf),Qf=qf.slice(0,6),ed=qf.slice(6),td=ed.slice(1),nd=uf(qf),rd=hf(qf,0),od=hf(Qf,0),ad=fi(li,qf),id=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],sd=["isoDay","isoMonth","isoYear"],cd=id.concat(sd),ud=gi(sd),hd=gi(id),ld=gi(cd),fd=hf(hd,0),dd=fi(li,cd),gd=Intl.DateTimeFormat,md="en-GB",yd=1e8,Sd=yd*gf,pd=[yd,0],wd=[-yd,0],vd=275760,Ad=-271821,bd=1970,Id=1972,Md=12,Td=fs(1868,9,8),Ed=Xa(Is,WeakMap),Od="smallestUnit",Cd="unit",Dd="roundingIncrement",Hd="fractionalSecondDigits",Nd="relativeTo",kd={constrain:0,reject:1},_d=Object.keys(kd),Ld={compatible:0,reject:1,earlier:2,later:3},Rd={reject:0,use:1,prefer:2,ignore:3},Yd={auto:0,never:1,critical:2,always:3},Pd={auto:0,never:1,critical:2},jd={auto:0,never:1},Bd={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Fd=fi(Vs,Od),Ud=fi(Vs,"largestUnit"),xd=fi(Vs,Cd),Zd=fi(zs,"overflow",kd),$d=fi(zs,"disambiguation",Ld),Vd=fi(zs,"offset",Rd),zd=fi(zs,"calendarName",Yd),Kd=fi(zs,"timeZoneName",Pd),Jd=fi(zs,"offset",jd),Gd=fi(zs,"roundingMode",Bd),Wd="PlainYearMonth",qd="PlainMonthDay",Xd="PlainDate",Qd="PlainDateTime",eg="PlainTime",tg="ZonedDateTime",ng="Instant",rg="Duration",og=[Math.floor,e=>Ii(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Ii(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Ii(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=>Ii(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ag="UTC",ig=5184e3,sg=ls(1847),cg=ls((new Date).getUTCFullYear()+10),ug=/0+$/,hg=Xa(Vc,WeakMap),lg=2**32-1,fg=Xa((e=>{const t=Ju(e);return"object"==typeof t?new gg(t):new dg(t||0)}));class dg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[hs(e,this.R)]}B(){}}class gg{constructor(e){this.q=(e=>{function t(e){const t=Si(e,a,i),[s,c]=Ou(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=Xa(e),o=Xa(Eu);let a=sg,i=cg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=Si(e,a,i);let[c,u]=Ou(s);const h=ig*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((yi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Qi(e,t*mf);return ls(bh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(is(e))*pf}getPossibleInstantsFor(e){const[t,n]=[ls((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Sf+r.isoMicrosecond*yf+r.isoNanosecond];var r;return this.q.J(t).map((e=>rs($i(Gi(e,pf),n))))}B(e,t){const[n,r]=ss(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Gi(o,pf)}}const mg="([+−-])",yg="(?:[.,](\\d{1,9}))?",Sg=`(?:(?:${mg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,pg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+yg+")?)?",wg=mg+pg,vg=Sg+"-?(\\d{2})(?:[T ]"+pg+"(Z|"+wg+")?)?",Ag="\\[(!?)([^\\]]*)\\]",bg=`((?:${Ag}){0,9})`,Ig=Zu(Sg+bg),Mg=Zu("(?:--)?(\\d{2})-?(\\d{2})"+bg),Tg=Zu(vg+bg),Eg=Zu("T?"+pg+"(?:"+wg+")?"+bg),Og=Zu(wg),Cg=new RegExp(Ag,"g"),Dg=Zu(`${mg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${yg}H)?(?:(\\d+)${yg}M)?(?:(\\d+)${yg}S)?)?`),Hg=Xa((e=>new gd(md,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Ng=/^(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$/,kg=Xa(ph),_g=Xa((e=>new gd(md,{calendar:e,timeZone:ag,era:"short",year:"numeric",month:"short",day:"numeric"}))),Lg=/^M(\d{2})(L?)$/,Rg={era:Yi,eraYear:Bi,year:Bi,month:Ui,monthCode:Yi,day:Ui},Yg=hf(If,Bi),Pg=hf(qf,Fi),jg=Object.assign({},Rg,Yg,Pg,{offset:Yi}),Bg=fi(ii,If,id),Fg={dateAdd(e,t,n){const r=Ds(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Au(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=Yh(t,r,e.P(a)),i=Ga("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ga("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=cs(e)}return o+=(7*s+c)*gf,ts(ms(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=gh({...e,...fd},{...t,...fd});return 7===n&&([r,o]=vi(o,7)),{...rd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-Yh(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...rd,years:a,months:i,days:s}},dateFromFields(e,t){const n=Ds(t),r=Qh(this,e),o=el(this,e,r,n),a=tl(this,e,o,r,n);return qs(ts(this.L(r,o,a)),this.id||Uf)},yearMonthFromFields(e,t){const n=Ds(t),r=Qh(this,e),o=el(this,e,r,n);return Xs(es(this.L(r,o,1)),this.id||Uf)},monthDayFromFields(e,t){const n=Ds(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=Rh(o),l=Wa(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(Fl);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(jl);r&&(h=Ga("month",h,1,Md,1),l=Ga("day",l,1,ps(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Id:Qh(this,e),h=el(this,e,u,n),l=tl(this,e,h,u,n);const t=this.P(u);c=h===t,s=Ph(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(Fl);[u,h]=o}return Qs(ts(this.L(u,h,l)),this.id||Uf)},fields(e){return Bh(this)&&e.includes("year")?[...e,...Df]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return nl(n,t,_f),Bh(this)&&(nl(n,t,Hf),this.id===Zf&&nl(n,t,jf,Df)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:Lh,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+lf(e)+(t?"L":""))(r,o)},dayOfWeek:As,daysInWeek:()=>7},Ug={dayOfYear:Lh,v:ys,p:fs},xg=Object.assign({},Ug,{weekOfYear:kh,yearOfWeek:_h,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=ws(f+e),r=e||1,o=t(wi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=As(e),a=this.dayOfYear(e),i=wi(o-1,7),s=a-1,c=wi(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]}}),Zg={dayOfYear:Lh,v:Ih,p:Mh,weekOfYear:kh,yearOfWeek:_h,m:()=>[]},$g=ul(Object.assign({},Fg,xg,{v:ys,nn(e){return this.id===xf?bs(e):this.id===Zf?Ed(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Id,e]},K:vs,P(){},j:Ss,V:e=>e*Md,N:ps,X:ws,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:fs,G:(e,t,n)=>(e+=Ai(n,Md),(t+=bi(n,Md))<1?(e--,t+=Md):t>Md&&(e++,t-=Md),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},Fg,Zg,{v:Ih,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Th.call(this,e);return[Ph(t,n),n===t]},k(e,t,n){let[r,o,a]=Ih.call(this,{isoYear:Id,isoMonth:Md,isoDay:31});const i=Th.call(this,r),s=o===i;1===(yi(e,Ph(o,i))||yi(Number(t),Number(s))||yi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Th.call(this,a),s=Yh(e,t,i);if(t===(s===i)&&n<=Oh.call(this,a,s))return[a,s]}},K(e){const t=Eh.call(this,e);return t>Eh.call(this,e-1)&&t>Eh.call(this,e+1)},P:Th,j:Ch,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=Ch.call(this,e+o);return a},N:Oh,X:Eh,L(e,t,n){return ms(Mh.call(this,e,t,n))},p:Mh,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(ql);if(n<0)for(;t<1;)t+=Ch.call(this,--e);else{let n;for(;t>(n=Ch.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),Vg="numeric",zg=["timeZoneName"],Kg={month:Vg,day:Vg},Jg={year:Vg,month:Vg},Gg=Object.assign({},Jg,{day:Vg}),Wg={hour:Vg,minute:Vg,second:Vg},qg=Object.assign({},Gg,Wg),Xg=Object.assign({},qg,{timeZoneName:"short"}),Qg=Object.keys(Jg),em=Object.keys(Kg),tm=Object.keys(Gg),nm=Object.keys(Wg),rm=["dateStyle"],om=Qg.concat(rm),am=em.concat(rm),im=tm.concat(rm,["weekday"]),sm=nm.concat(["dayPeriod","timeStyle"]),cm=im.concat(sm),um=cm.concat(zg),hm=zg.concat(sm),lm=zg.concat(im),fm=zg.concat(["day","weekday"],sm),dm=zg.concat(["year","weekday"],sm),gm={},mm=[hl(cm,qg),nc],ym=[hl(um,Xg),nc,0,(e,t)=>{const n=oc(e.timeZone);if(t&&oc(t.timeZone)!==n)throw new RangeError(Vl);return n}],Sm=[hl(cm,qg,zg),cs],pm=[hl(im,Gg,hm),cs],wm=[hl(sm,Wg,lm),e=>os(e)/Sf],vm=[hl(om,Jg,fm),cs,1],Am=[hl(am,Kg,dm),cs,1];let bm;function Im(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(Nl);py(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)}),Qa(t))}function s(t){const n=Sy(t);if(!n||n.branding!==e)throw new TypeError(Nl);return n}return Object.defineProperties(a.prototype,{...ti(oi(i,n)),...ei(oi(i,r)),...ni("Temporal."+e)}),Object.defineProperties(a,{...ei(o),...Qa(e)}),[a,e=>{const t=Object.create(a.prototype);return py(t,e),t},s]}function Mm(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 Tm(e){if(Sy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Em(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=Sy(n)||{},{branding:i}=a,s=i===Xd||t.includes(i)?a:xm(n);return o[r](s)};return n}function Om(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?$g(r):(o=r,Object.assign(Object.create(My),{C:o})))[n](e);var r,o};return t}function Cm(){throw new TypeError("Cannot use valueOf")}function Dm(e){let{calendar:t}=e;return"string"==typeof t?new bS(t):t}function Hm(e,t){if(t=Zs(t),qa(e)){const n=Sy(e);if(n&&n.branding===qd)return Ds(t),n;const r=Jm(e);return Vh(hS(r||Uf),!r,e,t)}const n=function(e,t){const n=Pu(Kf(t));if(n)return Hu(n),Qs(Ts(n));const r=Du(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Qs(ts(a.L(l,f,c)),o)}($g,e);return Ds(t),n}function Nm(e,t,n){return Jc(Ci(t.call(e,Ry(Js(n)))))}function km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ky;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,Wf(e[o]));return r}function _m(e,t){return"string"==typeof e?fg(e):km(e,t)}function Lm(e){return _m(e,_y)}function Rm(e){if(qa(e)){const t=Sy(e);if(t)switch(t.branding){case ng:return t;case tg:return Js(t.epochNanoseconds)}}return function(e){const t=Ru(e=Yi(e));if(!t)throw new RangeError(of(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(of(e));n=Cu(t.offset)}return t.timeZone&&ju(t.timeZone,1),Js(hs(Ms(t),n))}(e)}function Ym(e,t,n){const r=t.B(Rm(n).epochNanoseconds,e);return r?Ry(Js(r)):null}function Pm(e){return qa(e)?(Sy(e)||{}).timeZone||By(e):(e=>zu(function(e){const t=Ru(e);return t&&(t.timeZone||t.O&&ag||t.offset)||e}(Kf(e))))(e)}function jm(e,t){if(qa(e)){const n=Sy(e)||{};switch(n.branding){case eg:return Ds(t),n;case Qd:return Ds(t),ec(n);case tg:return Ds(t),il(Lm,n)}return function(e,t){const n=Ds(t);return ec(Jh(Kh(e,Mf,[],1),n))}(e,t)}return Ds(t),function(e){let t,n=(e=>{const t=Eg.exec(e);return t?(Uu(t[10]),Fu(t)):void 0})(Kf(e));if(!n){if(n=Ru(e),!n)throw new RangeError(of(e));if(!n.I)throw new RangeError(of(e));if(n.O)throw new RangeError(af("Z"));Hu(n)}if((t=Yu(e))&&Es(t))throw new RangeError(of(e));if((t=Pu(e))&&Es(t))throw new RangeError(of(e));return ec(Cs(n,1))}(e)}function Bm(e){return void 0===e?void 0:jm(e)}function Fm(e,t){if(t=Zs(t),qa(e)){const n=Sy(e);return n&&n.branding===Wd?(Ds(t),n):$h(cS(Km(e)),e,t)}const n=function(e,t){const n=Yu(Kf(t));if(n)return Hu(n),Xs(es(Ts(n)));const r=Du(t);return Xs(au(e(r.calendar),r))}($g,e);return Ds(t),n}function Um(e,t){if(t=Zs(t),qa(e)){const n=Sy(e)||{};switch(n.branding){case Qd:return Ds(t),n;case Xd:return Ds(t),Ws({...n,...fd});case tg:return Ds(t),ol(Lm,n)}return function(e,t,n){const r=zh(e,t,Pf,[],If),o=Ds(n);return Ws(ns({...e.dateFromFields(r,$s(n,o)),...Jh(r,o)}))}(uS(Km(e)),e,t)}const n=function(e){const t=Ru(Kf(e));if(!t||t.O)throw new RangeError(of(e));return Ws(ku(t))}(e);return Ds(t),n}function xm(e,t){if(t=Zs(t),qa(e)){const n=Sy(e)||{};switch(n.branding){case Xd:return Ds(t),n;case Qd:return Ds(t),qs(n);case tg:return Ds(t),al(Lm,n)}return Zh(uS(Km(e)),e,t)}const n=Du(e);return Ds(t),n}function Zm(e,t,n){return Oi(t.call(e,Jy(qs(n,e))))}function $m(e){return t=>"string"==typeof t?$g(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,e[o]);return r})(t,e)}function Vm(e){if(qa(e)){const t=Sy(e);return t&&t.branding===rg?t:function(e){const t=Kh(e,Xf);return tc(wu({...rd,...t}))}(e)}return function(e){const t=(e=>{const t=Dg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=pi(o,bf[a])),void 0!==e){if(r)throw new RangeError(af(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(af(e));return t})(e),n=1,t&&(o=xu(t)*(bf[a]/pf),r=1)}return i+s}let n=0,r=0,o=0,a={...ri(qf,[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)]),...Ti(o,2,qf)};if(!n)throw new RangeError(Dl(qf));return $u(e[1])<0&&(a=Su(a)),a})(t):void 0})(Kf(e));if(!t)throw new RangeError(of(e));return tc(wu(t))}(e)}function zm(e){if(void 0!==e){if(qa(e)){const t=Sy(e)||{};switch(t.branding){case tg:case Xd:return t;case Qd:return qs(t)}const n=Km(e);return{...xh(Pm,_m,uS(n),e),calendar:n}}return function(e){const t=Ru(Kf(e));if(!t)throw new RangeError(of(e));if(t.timeZone)return Nu(t,t.offset?Cu(t.offset):void 0);if(t.O)throw new RangeError(of(e));return _u(t)}(e)}}function Km(e){return Jm(e)||Uf}function Jm(e){const{calendar:t}=e;if(void 0!==t)return Gm(t)}function Gm(e){return qa(e)?(Sy(e)||{}).calendar||IS(e):(e=>Hh(function(e){const t=Ru(e)||Yu(e)||Pu(e);return t?t.calendar:e}(Kf(e))))(e)}function Wm(e,t){if(t=Zs(t),qa(e)){const n=Sy(e);if(n&&n.branding===tg)return Hs(t),n;const r=Km(e);return function(e,t,n,r,o,a){const i=zh(n,o,Pf,Ef,Cf),s=e(i.timeZone),[c,u,h]=Hs(a),l=n.dateFromFields(i,$s(a,c)),f=Jh(i,c);return Gs(zc(t(s),{...l,...f},void 0!==i.offset?Cu(i.offset):void 0,u,h),s,r)}(Pm,_m,uS(r),r,e,t)}return function(e,t){const n=Ru(Kf(e));if(!n||!n.timeZone)throw new RangeError(of(e));const{offset:r}=n,o=r?Cu(r):void 0,[,a,i]=Hs(t);return Nu(n,o,a,i)}(e,t)}function qm(e){return oi((e=>t=>e(Xm(t))),e)}function Xm(e){return hg(e,Lm)}function Qm(){const e=gd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(gd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);DS.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new gd(e,t),r=n.resolvedOptions(),o=r.locale,a=si(Object.keys(t),r),i=Xa(ny),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=Sy(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")&&ey(e);"function"==typeof n.value?n.value="constructor"===e?r:o||ty(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function ey(e){return function(){const t=DS.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function ty(e){return function(){return DS.get(this).U[e](...arguments)}}function ny(e){const t=ry[e];if(!t)throw new TypeError(sf(e));return ll(t,Xa(fl))}const ry={Instant:mm,PlainDateTime:Sm,PlainDate:pm,PlainTime:wm,PlainYearMonth:vm,PlainMonthDay:Am},oy=ll(mm),ay=ll(ym),iy=ll(Sm),sy=ll(pm),cy=ll(wm),uy=ll(vm),hy=ll(Am),ly={era:function(e){if(void 0!==e)return Kf(e)},eraYear:Ei,year:Ci,month:Oi,daysInMonth:Oi,daysInYear:Oi,inLeapYear:Jf,monthsInYear:Oi},fy={monthCode:Kf},dy={day:Oi},gy={dayOfWeek:Oi,dayOfYear:Oi,weekOfYear:function(e){if(void 0!==e)return Oi(e)},yearOfWeek:Ei,daysInWeek:Oi},my=Object.assign({},ly,fy,dy,gy),yy=new WeakMap,Sy=yy.get.bind(yy),py=yy.set.bind(yy),wy={...Em(ly,[Wd]),...Em(gy,[]),...Em(fy,[Wd,qd]),...Em(dy,[qd])},vy=Om(my),Ay=Om({...ly,...fy}),by=Om({...fy,...dy}),Iy={calendarId:e=>oc(e.calendar)},My=oi(((e,t)=>function(n){const{C:r}=this;return e(r[t](Jy(qs(n,r))))}),my),Ty=ai((e=>t=>t[e]),qf.concat("sign")),Ey=ai(((e,t)=>e=>e[id[t]]),If),Oy={epochSeconds:function(e){return is(e.epochNanoseconds)},epochMilliseconds:nc,epochMicroseconds:function(e){return Wi(e.epochNanoseconds,yf)},epochNanoseconds:function(e){return Wi(e.epochNanoseconds)}},Cy=fi(ci,new Set(["branding"])),[Dy,Hy,Ny]=Im(qd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Id;const a=Bi(t),i=Bi(n),s=e(r);return Qs(ts(Ts({isoYear:Bi(o),isoMonth:a,isoDay:i})),s)}),Gm),{...Iy,...by},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return Hy(function(e,t,n,r,o){const a=Zs(o);return((e,t,n,r)=>{const o=Gh(e,t,n,Pf);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(dS,e,this,Tm(t),n))},equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Hm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,Bf,Ni(n),Nf))(e(t.calendar),n,r)}(fS,e,this,t))},toLocaleString(e,t,n){const[r,o]=hy(t,n,e);return r.format(o)},toString:Dc,toJSON:e=>Dc(e),valueOf:Cm},{from:(e,t)=>Hy(Hm(e,t))}),ky={getOffsetNanosecondsFor:Nm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,zy(Ws(n,Uf)))].map((e=>Yy(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(zi),Gc(qi(Vi(r[0],r[o-1])))),r}},_y={getOffsetNanosecondsFor:Nm},[Ly,Ry,Yy]=Im(ng,(function(e){return Js(rs(Ji(Pi(e))))}),Oy,{add:(e,t)=>Ry(Wc(0,e,Vm(t))),subtract:(e,t)=>Ry(Wc(1,e,Vm(t))),until:(e,t,n)=>wS(th(0,e,Rm(t),n)),since:(e,t,n)=>wS(th(1,e,Rm(t),n)),round:(e,t)=>Ry(function(e,t){const[n,r,o]=_s(t,5,1);return Js(Sc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Gu(e,t)}(e,Rm(t)),toZonedDateTime(e,t){const n=Ni(t);return TS(rl(e,Pm(n.timeZone),Gm(n.calendar)))},toZonedDateTimeISO:(e,t)=>TS(rl(e,Pm(t))),toLocaleString(e,t,n){const[r,o]=oy(t,n,e);return r.format(o)},toString:(e,t)=>Mc(Pm,Lm,e,t),toJSON:e=>Mc(Pm,Lm,e),valueOf:Cm},{from:e=>Ry(Rm(e)),fromEpochSeconds:e=>Ry(function(e){return Js(rs(Gi(e,pf)))}(e)),fromEpochMilliseconds:e=>Ry(function(e){return Js(rs(Gi(e,Sf)))}(e)),fromEpochMicroseconds:e=>Ry(function(e){return Js(rs(Ji(Pi(e),yf)))}(e)),fromEpochNanoseconds:e=>Ry(function(e){return Js(rs(Ji(Pi(e))))}(e)),compare:(e,t)=>Gu(Rm(e),Rm(t))}),[Py,jy]=Im("TimeZone",(e=>{const t=function(e){return zu(Kf(e))}(e);return{branding:"TimeZone",id:t,F:fg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(Um(t)).map((e=>Ry(Js(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(Rm(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=Rm(t).epochNanoseconds;return Bc(km(this,_y).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uf;const r=Rm(t).epochNanoseconds,o=km(this,_y).getOffsetNanosecondsFor(r);return zy(Ws(gs(r,o),Gm(n)))},getInstantFor(e,t,n){const r=Um(t),o=Ns(n),a=km(this);return Ry(Js(Kc(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return Ym(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return Ym(-1,n,t)},equals(e,t){return!!eh(this,Pm(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=Pm(e);return"string"==typeof t?new Py(t):t}}),By=Mm(Object.keys(ky)),[Fy,Uy]=Im(eg,(function(){return ec(Cs(oi(Bi,ri(id,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Ey,{getISOFields:Cy,with(e,t,n){return Uy(function(e,t,n){return ec(((e,t,n)=>{const r=Ds(n);return Jh({...si(Mf,e),...Kh(t,Mf)},r)})(e,t,n))}(this,Tm(t),n))},add:(e,t)=>Uy(tu(0,e,Vm(t))),subtract:(e,t)=>Uy(tu(1,e,Vm(t))),until:(e,t,n)=>wS(sh(0,e,jm(t),n)),since:(e,t,n)=>wS(sh(1,e,jm(t),n)),round:(e,t)=>Uy(function(e,t){const[n,r,o]=_s(t,5);var a;return ec((a=o,hc(e,fc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Qu(e,t)}(e,jm(t)),toZonedDateTime:(e,t)=>TS(function(e,t,n,r,o){const a=Ni(o),i=t(a.plainDate),s=e(a.timeZone);return Gs(Kc(n(s),{...i,...r}),s,i.calendar)}(Pm,xm,_m,e,t)),toPlainDateTime:(e,t)=>zy(function(e,t){return Ws(ns({...e,...t}))}(e,xm(t))),toLocaleString(e,t,n){const[r,o]=cy(t,n,e);return r.format(o)},toString:Hc,toJSON:e=>Hc(e),valueOf:Cm},{from:(e,t)=>Uy(jm(e,t)),compare:(e,t)=>Qu(jm(e),jm(t))}),[xy,Zy,$y]=Im(Wd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=Bi(t),i=Bi(n),s=e(r);return Xs(es(Ts({isoYear:a,isoMonth:i,isoDay:Bi(o)})),s)}),Gm),{...Iy,...Ay},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return Zy(function(e,t,n,r,o){const a=Zs(o);return Xs(((e,t,n,r)=>{const o=Gh(e,t,n,Rf);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(lS,e,this,Tm(t),n))},add:(e,t,n)=>Zy(eu(yS,0,e,Vm(t),n)),subtract:(e,t,n)=>Zy(eu(yS,1,e,Vm(t),n)),until:(e,t,n)=>wS(ah(SS,0,e,Fm(t),n)),since:(e,t,n)=>wS(ah(SS,1,e,Fm(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Fm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,Yf,Ni(n),Lf))(e(t.calendar),n,r)}(fS,e,this,t))},toLocaleString(e,t,n){const[r,o]=uy(t,n,e);return r.format(o)},toString:Cc,toJSON:e=>Cc(e),valueOf:Cm},{from:(e,t)=>Zy(Fm(e,t)),compare:(e,t)=>Xu(Fm(e),Fm(t))}),[Vy,zy]=Im(Qd,fi((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Uf;return Ws(ns(Ms(oi(Bi,ri(cd,[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))}),Gm),{...Iy,...vy,...Ey},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return zy(function(e,t,n,r,o){const a=Zs(o);return Ws(((e,t,n,r)=>{const o=Gh(e,t,n,Pf,If),a=Ds(r);return ns({...e.dateFromFields(o,$s(r,a)),...Jh(o,a)})})(e(t.calendar),n,r,a))}(fS,e,this,Tm(t),n))},withCalendar:(e,t)=>zy(sl(e,Gm(t))),withPlainDate:(e,t)=>zy(function(e,t){return Ws({...e,...t},cl(e.calendar,t.calendar))}(e,xm(t))),withPlainTime:(e,t)=>zy(function(e){return Ws({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd})}(e,Bm(t))),add:(e,t,n)=>zy(Xc(gS,0,e,Vm(t),n)),subtract:(e,t,n)=>zy(Xc(gS,1,e,Vm(t),n)),until:(e,t,n)=>wS(rh(mS,0,e,Um(t),n)),since:(e,t,n)=>wS(rh(mS,1,e,Um(t),n)),round:(e,t)=>zy(function(e,t){return Ws(cc(e,..._s(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!qu(e,t)&&ac(e.calendar,t.calendar)}(e,Um(t)),toZonedDateTime:(e,t,n)=>TS(function(e,t,n,r){const o=((e,t,n,r)=>{const o=Ns(r);return Kc(e(t),n,o)})(e,n,t,r);return Gs(rs(o),n,t.calendar)}(_m,e,Pm(t),n)),toPlainDate:e=>Jy(qs(e)),toPlainTime:e=>Uy(ec(e)),toPlainYearMonth(e){return Zy(function(e,t,n){const r=e(t.calendar);return Xs({...t,...qh(r,n)})}(cS,e,this))},toPlainMonthDay(e){return Hy(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t,n){const[r,o]=iy(t,n,e);return r.format(o)},toString:Ec,toJSON:e=>Ec(e),valueOf:Cm},{from:(e,t)=>zy(Um(e,t)),compare:(e,t)=>qu(Um(e),Um(t))}),[Ky,Jy,Gy]=Im(Xd,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Uf;return qs(ts(Ts(oi(Bi,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Gm),{...Iy,...vy},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return Jy(function(e,t,n,r,o){const a=Zs(o);return((e,t,n,r)=>{const o=Gh(e,t,n,Pf);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(fS,e,this,Tm(t),n))},withCalendar:(e,t)=>Jy(sl(e,Gm(t))),add:(e,t,n)=>Jy(Qc(gS,0,e,Vm(t),n)),subtract:(e,t,n)=>Jy(Qc(gS,1,e,Vm(t),n)),until:(e,t,n)=>wS(oh(mS,0,e,xm(t),n)),since:(e,t,n)=>wS(oh(mS,1,e,xm(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,xm(t)),toZonedDateTime(e,t){const n=!qa(t)||t instanceof Py?{timeZone:t}:t;return TS(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):fd;return Gs(Kc(n(a),{...r,...s}),a,r.calendar)}(Pm,jm,_m,e,n))},toPlainDateTime:(e,t)=>zy(function(e){return Ws(ns({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd}))}(e,Bm(t))),toPlainYearMonth(e){return Zy(function(e,t,n){return qh(e(t.calendar),n)}(cS,e,this))},toPlainMonthDay(e){return Hy(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t,n){const[r,o]=sy(t,n,e);return r.format(o)},toString:Oc,toJSON:e=>Oc(e),valueOf:Cm},{from:(e,t)=>Jy(xm(e,t)),compare:(e,t)=>Xu(xm(e),xm(t))}),Wy={fields:(e,t,n)=>[...t.call(e,n)]},qy=Object.assign({dateFromFields:(e,t,n,r)=>Gy(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Xy=Object.assign({yearMonthFromFields:(e,t,n,r)=>$y(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Qy=Object.assign({monthDayFromFields:(e,t,n,r)=>Ny(t.call(e,Object.assign(Object.create(null),n),r))},Wy),eS={mergeFields:(e,t,n,r)=>Ni(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},tS=Object.assign({},qy,eS),nS=Object.assign({},Xy,eS),rS=Object.assign({},Qy,eS),oS={dateAdd:(e,t,n,r,o)=>Gy(t.call(e,Jy(qs(n,e)),wS(tc(r)),o))},aS=Object.assign({},oS,{dateUntil:(e,t,n,r,o,a)=>vS(t.call(e,Jy(qs(n,e)),Jy(qs(r,e)),Object.assign(Object.create(null),a,{largestUnit:df[o]})))}),iS=Object.assign({},oS,{day:Zm}),sS=Object.assign({},aS,{day:Zm}),cS=$m(Xy),uS=$m(qy),hS=$m(Qy),lS=$m(nS),fS=$m(tS),dS=$m(rS),gS=$m(oS),mS=$m(aS),yS=$m(iS),SS=$m(sS),[pS,wS,vS]=Im(rg,(function(){return tc(wu(oi(Fi,ri(qf,[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]))))}),{...Ty,blank:function(e){return!e.sign}},{with:(e,t)=>wS(function(e,t){return tc((n=e,r=t,wu({...n,...Kh(r,Xf)})));var n,r}(e,t)),negated:e=>wS(yu(e)),abs:e=>wS(function(e){return-1===e.sign?yu(e):e}(e)),add:(e,t,n)=>wS(mu(zm,mS,_m,0,e,Vm(t),n)),subtract:(e,t,n)=>wS(mu(zm,mS,_m,1,e,Vm(t),n)),round:(e,t)=>wS(function(e,t,n,r,o){const a=Tu(r),[i,s,c,u,h]=((e,t,n)=>{e=xs(e,Od);let r=Ud(e);const o=n(e[Nd]);let a=js(e);const i=Gd(e,7);let s=Fd(e);if(void 0===r&&void 0===s)throw new RangeError(nf);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ks(r,s),a=Bs(a,s,1),[r,s,a,i,o]})(o,a,e);if(du(Math.max(a,i),h))return tc(wu(((e,t,n,r,o)=>{const a=Sc(Au(e),n,r,o);return{...rd,...bu(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(ef);const[l,f,d]=cu(t,n,h),g=uu(d),m=hu(f,d),y=lu(f,d);let S=0;r.weeks&&7===s&&(S=r.weeks,r={...r,weeks:0});let[p,w]=gu(r,i,l,g,m,y);const v=r.sign,A=pu(p);if(v&&A&&v!==A)throw new RangeError(xl);return A&&(p=yc(p,w,i,s,c,u,l,g,m)),p.weeks+=S,tc(p)}(zm,mS,_m,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Tu(r),[i,s]=((e,t)=>{const n=t((e=xs(e,Cd))[Nd]);let r=xd(e);return r=Hi(Cd,r),[r,n]})(o,e);if(du(Math.max(i,a),s))return((e,t)=>qi(Au(e),bf[t],1))(r,i);if(!s)throw new RangeError(ef);const[c,u,h]=cu(t,n,s),l=uu(h),f=hu(u,h);return((e,t,n,r,o,a)=>{const i=pu(e),[s,c]=ic(ad(n,e),n,i,r,o,a),u=sc(t,s,c);return e[qf[n]]+u*i})(...gu(r,i,c,l,f,lu(u,h)),i,c,l,f)}(zm,mS,_m,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):Nc(e)},toString:Nc,toJSON:e=>Nc(e),valueOf:Cm},{from:e=>wS(Vm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(Us(a).relativeTo),s=Math.max(Tu(r),Tu(o));if(hi(qf,r,o))return 0;if(du(s,i))return zi(Au(r),Au(o));if(!i)throw new RangeError(ef);const[c,u,h]=cu(t,n,i),l=uu(h),f=hu(u,h);return zi(l(f(c,r)),l(f(c,o)))}(zm,gS,_m,Vm(e),Vm(t),n)}),AS={toString:e=>e.id,toJSON:e=>e.id,...wy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return Jy(qs(a.dateAdd(xm(t),Vm(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return wS(tc(o.dateUntil(xm(t),xm(n),function(e){return e=Us(e),Ud(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Jy(Zh(o,t,n,function(e){return e===Uf?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Zy($h(o,t,n,function(e){return e===Uf?Nf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Hy(Vh(o,0,t,n,function(e){return e===Uf?Lf:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(Pf),o=[];for(const e of t){if(Kf(e),!r.has(e))throw new RangeError(Ol(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(ui(Di(t)),ui(Di(n)))}},[bS]=Im("Calendar",(e=>{const t=function(e){return Hh(Kf(e))}(e);return{branding:"Calendar",id:t,F:$g(t)}}),{id:e=>e.id},AS,{from(e){const t=Gm(e);return"string"==typeof t?new bS(t):t}}),IS=Mm(Object.keys(AS).slice(4)),[MS,TS]=Im(tg,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Uf;return Gs(rs(Ji(Pi(n))),t(r),e(o))}),Gm,Pm),{...Oy,...Iy,...qm(vy),...qm(Ey),offset:e=>Bc(Xm(e).offsetNanoseconds),offsetNanoseconds:e=>Xm(e).offsetNanoseconds,timeZoneId:e=>oc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=hg(t,n),[o,a]=dc(r),i=qi(Vi(Kc(n,o),Kc(n,a)),vf,1);if(i<=0)throw new RangeError(xl);return i}(_m,e)},{getISOFields:e=>function(e,t){const n=hg(t,e);return{calendar:t.calendar,...si(ld,n),offset:Bc(n.offsetNanoseconds),timeZone:t.timeZone}}(Lm,e),getCalendar:Dm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new Py(t):t},with(e,t,n){return TS(function(e,t,n,r,o,a){const i=Zs(a),{calendar:s,timeZone:c}=n;return Gs(((e,t,n,r,o)=>{const a=Gh(e,n,r,Pf,Of,Tf),[i,s,c]=Hs(o,2);return zc(t,{...e.dateFromFields(a,$s(o,i)),...Jh(a,i)},Cu(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(fS,_m,e,this,Tm(t),n))},withCalendar:(e,t)=>TS(sl(e,Gm(t))),withTimeZone:(e,t)=>TS(function(e,t){return{...e,timeZone:t}}(e,Pm(t))),withPlainDate:(e,t)=>TS(function(e,t,n){const r=t.timeZone,o=e(r),a={...hg(t,o),...n},i=cl(t.calendar,n.calendar);return Gs(zc(o,a,a.offsetNanoseconds,2),r,i)}(_m,e,xm(t))),withPlainTime:(e,t)=>TS(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fd;const r=t.timeZone,o=e(r),a={...hg(t,o),...n};return Gs(zc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(_m,e,Bm(t))),add:(e,t,n)=>TS(qc(gS,_m,0,e,Vm(t),n)),subtract:(e,t,n)=>TS(qc(gS,_m,1,e,Vm(t),n)),until:(e,t,n)=>wS(tc(nh(mS,_m,0,e,Wm(t),n))),since:(e,t,n)=>wS(tc(nh(mS,_m,1,e,Wm(t),n))),round:(e,t)=>TS(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=_s(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=hg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=Kc(t,a),u=Kc(t,i);if(Ki(s,c,u))throw new RangeError(xl);return vc(sc(s,c,u),r)?u:c})(dc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=zc(u,cc(gs(r,e),i,s,c),e,2,0,1)}return Gs(r,o,a)}(_m,e,t)),startOfDay:e=>TS(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Kc(t,e(hg(n,t))))(gc,e(n),t);return Gs(o,n,r)}(_m,e)),equals:(e,t)=>function(e,t){return!Wu(e,t)&&!!eh(e.timeZone,t.timeZone)&&ac(e.calendar,t.calendar)}(e,Wm(t)),toInstant:e=>Ry(function(e){return Js(e.epochNanoseconds)}(e)),toPlainDateTime:e=>zy(ol(Lm,e)),toPlainDate:e=>Jy(al(Lm,e)),toPlainTime:e=>Uy(il(Lm,e)),toPlainYearMonth(e){return Zy(function(e,t,n){return qh(e(t.calendar),n)}(cS,e,this))},toPlainMonthDay(e){return Hy(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=ay(t,n,e);return r.format(o)},toString:(e,t)=>Tc(Lm,e,t),toJSON:e=>Tc(Lm,e),valueOf:Cm},{from:(e,t)=>TS(Wm(e,t)),compare:(e,t)=>Wu(Wm(e),Wm(t))}),ES=Object.defineProperties({},{...ni("Temporal.Now"),...ei({timeZoneId:()=>yl(),instant:()=>Ry(Js(ml())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return TS(Gs(ml(),Pm(t),Gm(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return TS(Gs(ml(),Pm(e),Uf))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return zy(Ws(gl(Lm(Pm(t))),Gm(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return zy(Ws(gl(Lm(Pm(e))),Uf))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return Jy(qs(gl(Lm(Pm(t))),Gm(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Jy(qs(gl(Lm(Pm(e))),Uf))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Uy(ec(gl(Lm(Pm(e)))))}})}),OS=Object.defineProperties({},{...ni("Temporal"),...ei({PlainYearMonth:xy,PlainMonthDay:Dy,PlainDate:Ky,PlainTime:Fy,PlainDateTime:Vy,ZonedDateTime:MS,Instant:Ly,Calendar:bS,TimeZone:Py,Duration:pS,Now:ES})}),CS=Qm(),DS=new WeakMap;function HS(e){return e*Math.PI/180}function NS(e){return 180*e/Math.PI}Object.create(Intl),ei({DateTimeFormat:CS});class kS{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 _S=6356.9;class LS{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(LS.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(LS.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(LS.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(LS.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(LS.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(LS.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 NS(Math.acos(_S/(_S+e/1e3)))}adjustZenith(e,t){let n=e;return e===LS.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=LS.getSunriseUTC(LS.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=LS.getSunsetUTC(LS.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 LS.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 OS.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-LS.JULIAN_DAY_JAN_1_2000)/LS.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*LS.JULIAN_DAYS_PER_CENTURY+LS.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=HS(LS.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 LS.getSunGeometricMeanLongitude(e)+LS.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return LS.getSunTrueLongitude(e)-.00569-.00478*Math.sin(HS(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 LS.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(HS(t))}static getSunDeclination(e){const t=LS.getObliquityCorrection(e),n=LS.getSunApparentLongitude(e),r=Math.sin(HS(t))*Math.sin(HS(n));return NS(Math.asin(r))}static getEquationOfTime(e){const t=LS.getObliquityCorrection(e),n=LS.getSunGeometricMeanLongitude(e),r=LS.getEarthOrbitEccentricity(e),o=LS.getSunGeometricMeanAnomaly(e);let a=Math.tan(HS(t)/2);a*=a;const i=Math.sin(2*HS(n)),s=Math.sin(HS(o));return 4*NS(a*i-2*r*s+4*r*a*s*Math.cos(2*HS(n))-.5*a*a*Math.sin(4*HS(n))-1.25*r*r*Math.sin(2*HS(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=HS(e),o=HS(t);return Math.acos(Math.cos(HS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=HS(e),o=HS(t);return-Math.acos(Math.cos(HS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=LS.getJulianDay(e.toPlainDate()),o=LS.getJulianCenturiesFromJulianDay(r),a=LS.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=HS(n-i),c=HS(LS.getSunDeclination(o)),u=HS(t);return NS(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=LS.getJulianDay(e.toPlainDate()),o=LS.getJulianCenturiesFromJulianDay(r),a=LS.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=HS(n-i),c=HS(LS.getSunDeclination(o)),u=HS(t);return NS(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=LS.getJulianCenturiesFromJulianDay(e),a=LS.getSolarNoonUTC(o,n),i=LS.getJulianCenturiesFromJulianDay(e+a/1440);let s=LS.getEquationOfTime(i),c=LS.getSunDeclination(i),u=LS.getSunHourAngleAtSunrise(t,c,r),h=n-NS(u),l=4*h,f=720+l-s;const d=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(o)+f/1440);return s=LS.getEquationOfTime(d),c=LS.getSunDeclination(d),u=LS.getSunHourAngleAtSunrise(t,c,r),h=n-NS(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(e)+t/360);let r=LS.getEquationOfTime(n);const o=720+4*t-r,a=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=LS.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=LS.getJulianCenturiesFromJulianDay(e),a=LS.getSolarNoonUTC(o,n),i=LS.getJulianCenturiesFromJulianDay(e+a/1440);let s=LS.getEquationOfTime(i),c=LS.getSunDeclination(i),u=LS.getSunHourAngleAtSunset(t,c,r),h=n-NS(u),l=4*h,f=720+l-s;const d=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(o)+f/1440);return s=LS.getEquationOfTime(d),c=LS.getSunDeclination(d),u=LS.getSunHourAngleAtSunset(t,c,r),h=n-NS(u),l=4*h,f=720+l-s,f}}LS.GEOMETRIC_ZENITH=90,LS.CIVIL_ZENITH=96,LS.NAUTICAL_ZENITH=102,LS.ASTRONOMICAL_ZENITH=108,LS.JULIAN_DAY_JAN_1_2000=2451545,LS.JULIAN_DAYS_PER_CENTURY=36525;const RS=[["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]],YS=new Map,PS={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"},jS=new Map;class BS extends kS{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=jS.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return jS.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return YS.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 PS[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":PS[t]}static addLocation(e,t){const n=e.toLowerCase();return!YS.has(n)&&(YS.set(n,t),!0)}}for(const e of RS){const t=new BS(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);BS.addLocation(t.getName(),t)}const FS=new Map;const US=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function xS(e,t){const n=function(e){const t=FS.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 FS.set(e,n),n}(e).format(t),r=US.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=ZS(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ZS(e){return e<0?"-00"+ZS(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function $S(e){return e<10?"0"+e:String(e)}function VS(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,ei({Temporal:OS})),Object.defineProperties(Intl,ei({DateTimeFormat:CS})),Object.defineProperties(Date.prototype,ei({toTemporalInstant:function(){return Ry(Js(Gi(this.valueOf(),Sf)))}}));class zS{constructor(t,n,r){const o=e.greg.isDate(n)?n:we.isHDate(n)?n.greg():fe(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new LS(t,a),this.useElevation=Boolean(r)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return VS(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return VS(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return VS(this.noaa.getSeaLevelSunrise())}sunset(){return VS(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return VS(this.noaa.getSeaLevelSunset())}dawn(){return VS(this.noaa.getBeginCivilTwilight())}dusk(){return VS(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new zS(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return VS(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.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 VS(LS.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0);return[t,(this.timeAtAngle(e,!1)-t)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+3*t)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+4*t)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=xS("UTC",t),r=xS(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?"+":"-")+$S(Math.floor(r/60))+":"+$S(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:xS(e,t).substring(0,19)+zS.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const KS={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 JS(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===KS[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function GS(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ie.LIGHT_CANDLES;void 0!==e?r||(s&(Ie.LIGHT_CANDLES_TZEIS|Ie.CHANUKAH_CANDLES)?i=!0:s&Ie.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Ie.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new zS(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new qS(t,s,l,u,n.havdalahMins,e,n):new XS(t,s,l,u,e,n)}class WS extends Te{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=zS.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=zS.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=JS(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return le.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return le.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class qS extends WS{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=le.gettext(this.getDesc(),e);if(this.havdalahMins){const n=le.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class XS extends WS{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function QS(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new WS(e,n,r.getFlags(),t,a,r,o)}const ep=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tp=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],np="בַּלַּ֥יְלָה";class rp{constructor(e,t){let n=t-7;n<0&&(n+=we.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return we.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=le.gettext(this.getMonthName(),e),o=(n?tp:ep)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=le.gettext("Molad",e),u=le.lookupTranslation("min",e)||"minutes",h=le.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?np:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":np}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?le.hebrewStripNikkud(t):t}const l=JS(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class op extends Te{constructor(e,t,n,r){const o=new rp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Ie.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class ap extends Te{constructor(e,t){if(super(e,`Omer ${t}`,Ie.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){J(e);const[n,r]=G(e),o=K[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){"string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?V(n):le.ordinal(n,e))+" "+le.gettext("day of the Omer",e)}renderBrief(e){return le.gettext("Omer",e)+" "+le.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(J(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return W(this.omer,"he");if("he-x-nonikud"===e){const e=W(this.omer,"he");return le.hebrewStripNikkud(e)}return W(this.omer,"en")}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class ip extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class sp{constructor(e,t){e=+e;const n=we.longCheshvan(e),r=we.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new we(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=we.dayOnOrBefore(6,i+6);const c=this.leap=+we.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(Mp[u])this.key=u,this.theSedraArray=Mp[u];else{const e=this.key=u+ +this.il;this.theSedraArray=Mp[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||le.getLocaleName();let o=le.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+le.gettext(n[1],r)}return o=o.replace(/'/g,"’"),le.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new we(this.firstSaturday+7*t)}if("string"==typeof e){const t=up.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 we(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=up.get(t);if(up.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:we.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=we.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Ep(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[cp[o]],chag:!1,num:o+1};const a=hp(o);return{parsha:[cp[a],cp[a+1]],chag:!1,num:[a+1,a+2]}}}const cp=["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"],up=new Map;for(let e=0;e<cp.length;e++){const t=cp[e];up.set(t,e)}function hp(e){return-e}const lp="Rosh Hashana",fp="Yom Kippur",dp="Sukkot",gp="Sukkot Shabbat Chol ha-Moed",mp="Shmini Atzeret",yp=gp,Sp="Pesach",pp="Pesach I",wp="Pesach Shabbat Chol ha-Moed",vp="Pesach VII",Ap="Pesach VIII",bp="Shavuot";function Ip(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Mp={"020":[51,52].concat(yp,Ip(0,20),hp(21),23,24,Sp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,49),hp(50)),"0220":[51,52].concat(yp,Ip(0,20),hp(21),23,24,Sp,25,hp(26),hp(28),30,hp(31),33,bp,Ip(34,37),hp(38),40,hp(41),Ip(43,49),hp(50)),"0510":[52].concat(fp,yp,Ip(0,20),hp(21),23,24,pp,Ap,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,50)),"0511":[52].concat(fp,yp,Ip(0,20),hp(21),23,24,Sp,25,hp(26),hp(28),Ip(30,40),hp(41),Ip(43,50)),"052":[52].concat(fp,gp,Ip(0,24),vp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,50)),"070":[].concat(lp,52,dp,mp,Ip(0,20),hp(21),23,24,vp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,50)),"072":[].concat(lp,52,dp,mp,Ip(0,20),hp(21),23,24,wp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,49),hp(50)),1200:[51,52].concat(gp,Ip(0,27),wp,Ip(28,33),bp,Ip(34,37),hp(38),40,hp(41),Ip(43,49),hp(50)),1201:[51,52].concat(gp,Ip(0,27),wp,Ip(28,40),hp(41),Ip(43,49),hp(50)),1220:[51,52].concat(gp,Ip(0,27),pp,Ap,Ip(28,40),hp(41),Ip(43,50)),1221:[51,52].concat(gp,Ip(0,27),Sp,Ip(28,50)),150:[52].concat(fp,gp,Ip(0,28),vp,Ip(29,50)),152:[52].concat(fp,gp,Ip(0,28),wp,Ip(29,49),hp(50)),170:[].concat(lp,52,dp,mp,Ip(0,27),wp,Ip(28,40),hp(41),Ip(43,49),hp(50)),1720:[].concat(lp,52,dp,mp,Ip(0,27),wp,Ip(28,33),bp,Ip(34,37),hp(38),40,hp(41),Ip(43,49),hp(50))};Mp["0221"]=Mp["020"],Mp["0310"]=Mp["0220"],Mp["0311"]=Mp["020"],Mp[1310]=Mp[1220],Mp[1311]=Mp[1221],Mp[1721]=Mp[170];const Tp=new ip({maxSize:400});function Ep(e,t){const n=`${e}-${t?1:0}`;let r=Tp.get(n);return r||(r=new sp(e,t),Tp.set(n,r)),r}class Op extends Te{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),Ie.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||le.getLocaleName(),n=this.parsha;let r=le.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+le.gettext(n[1],e)}r=r.replace(/'/g,"’");return(le.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var Cp=ho,Dp=zn,Hp=qn,Np=ke,kp=function(e,t,n){return n.get&&Cp(n.get,t,{getter:!0}),n.set&&Cp(n.set,t,{setter:!0}),Dp.f(e,t,n)},_p=function(){var e=Hp(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Lp=Ne,Rp=De.RegExp,Yp=Rp.prototype,Pp=Np&&Lp((function(){var e=!0;try{Rp(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Yp,"flags").get.call(t)!==r||n!==r}));Pp&&kp(Yp,"flags",{configurable:!0,get:_p});const jp=0,Bp=2,Fp=5,Up=6,xp=m.NISAN,Zp=m.IYYAR;function $p(e){if(e<5708)return null;let t;const n=new we(15,xp,e).getDay();return t=n===jp?2:n===Up?3:e<5764?4:n===Bp?5:4,new we(t,Zp,e)}const Vp=m.NISAN,zp=m.IYYAR,Kp=m.SIVAN,Jp=m.TAMUZ,Gp=m.AV,Wp=m.ELUL,qp=m.TISHREI,Xp=m.CHESHVAN,Qp=m.KISLEV,ew=m.SHVAT,tw=m.ADAR_II,nw=Ie.CHAG,rw=Ie.LIGHT_CANDLES,ow=Ie.YOM_TOV_ENDS,aw=Ie.CHUL_ONLY,iw=Ie.IL_ONLY,sw=Ie.LIGHT_CANDLES_TZEIS,cw=Ie.CHANUKAH_CANDLES,uw=Ie.MAJOR_FAST,hw=Ie.MINOR_HOLIDAY,lw=Ie.EREV,fw=Ie.CHOL_HAMOED,dw="🫓",gw="🌿🍋",mw="Rosh Hashana II",yw="Erev Yom Kippur",Sw="Yom Kippur",pw="Erev Sukkot",ww="Sukkot I",vw="Sukkot II",Aw="Sukkot III (CH''M)",bw="Sukkot IV (CH''M)",Iw="Sukkot V (CH''M)",Mw="Sukkot VI (CH''M)",Tw="Shmini Atzeret",Ew="Simchat Torah",Ow="Sukkot II (CH''M)",Cw="Sukkot VII (Hoshana Raba)",Dw="Chanukah: 1 Candle",Hw="Tu BiShvat",Nw="Erev Purim",kw="Purim",_w="Shushan Purim",Lw="Erev Pesach",Rw="Pesach I",Yw="Pesach II",Pw="Pesach II (CH''M)",jw="Pesach III (CH''M)",Bw="Pesach IV (CH''M)",Fw="Pesach V (CH''M)",Uw="Pesach VI (CH''M)",xw="Pesach VII",Zw="Pesach VIII",$w="Pesach Sheni",Vw="Lag BaOmer",zw="Erev Shavuot",Kw="Shavuot",Jw="Shavuot I",Gw="Shavuot II",Ww="Tu B'Av",qw="Rosh Hashana LaBehemot",Xw="Erev Rosh Hashana",Qw="Yom Yerushalayim",ev="Ben-Gurion Day",tv="Family Day",nv="Yitzhak Rabin Memorial Day",rv="Herzl Day",ov="Jabotinsky Day",av="Sigd",iv="Yom HaAliyah",sv="Yom HaAliyah School Observance",cv="Hebrew Language Day",uv={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:ev,CHANUKAH_1_CANDLE:Dw,EREV_PESACH:Lw,EREV_PURIM:Nw,EREV_ROSH_HASHANA:Xw,EREV_SHAVUOT:zw,EREV_SUKKOT:pw,EREV_YOM_KIPPUR:yw,FAMILY_DAY:tv,HEBREW_LANGUAGE_DAY:cv,HERZL_DAY:rv,JABOTINSKY_DAY:ov,LAG_BAOMER:Vw,PESACH_I:Rw,PESACH_II:Yw,PESACH_III_CHM:jw,PESACH_II_CHM:Pw,PESACH_IV_CHM:Bw,PESACH_SHENI:$w,PESACH_VII:xw,PESACH_VIII:Zw,PESACH_VI_CHM:Uw,PESACH_V_CHM:Fw,PURIM:kw,ROSH_HASHANA_II:mw,ROSH_HASHANA_LABEHEMOT:qw,SHAVUOT:Kw,SHAVUOT_I:Jw,SHAVUOT_II:Gw,SHMINI_ATZERET:Tw,SHUSHAN_PURIM:_w,SIGD:av,SIMCHAT_TORAH:Ew,SUKKOT_I:ww,SUKKOT_II:vw,SUKKOT_III_CHM:Aw,SUKKOT_II_CHM:Ow,SUKKOT_IV_CHM:bw,SUKKOT_VII_HOSHANA_RABA:Cw,SUKKOT_VI_CHM:Mw,SUKKOT_V_CHM:Iw,TU_BAV:Ww,TU_BISHVAT:Hw,YITZHAK_RABIN_MEMORIAL_DAY:nv,YOM_HAALIYAH:iv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:sv,YOM_KIPPUR:Sw,YOM_YERUSHALAYIM:Qw},hv=[{mm:qp,dd:2,desc:mw,flags:nw|ow,emoji:"🍏🍯"},{mm:qp,dd:9,desc:yw,flags:lw|rw},{mm:qp,dd:10,desc:Sw,flags:nw|uw|ow},{mm:qp,dd:14,desc:pw,flags:aw|lw|rw,emoji:gw},{mm:qp,dd:15,desc:ww,flags:aw|nw|sw,emoji:gw},{mm:qp,dd:16,desc:vw,flags:aw|nw|ow,emoji:gw},{mm:qp,dd:17,desc:Aw,flags:aw|fw,chmDay:1,emoji:gw},{mm:qp,dd:18,desc:bw,flags:aw|fw,chmDay:2,emoji:gw},{mm:qp,dd:19,desc:Iw,flags:aw|fw,chmDay:3,emoji:gw},{mm:qp,dd:20,desc:Mw,flags:aw|fw,chmDay:4,emoji:gw},{mm:qp,dd:22,desc:Tw,flags:aw|nw|sw},{mm:qp,dd:23,desc:Ew,flags:aw|nw|ow},{mm:qp,dd:14,desc:pw,flags:iw|lw|rw,emoji:gw},{mm:qp,dd:15,desc:ww,flags:iw|nw|ow,emoji:gw},{mm:qp,dd:16,desc:Ow,flags:iw|fw,chmDay:1,emoji:gw},{mm:qp,dd:17,desc:Aw,flags:iw|fw,chmDay:2,emoji:gw},{mm:qp,dd:18,desc:bw,flags:iw|fw,chmDay:3,emoji:gw},{mm:qp,dd:19,desc:Iw,flags:iw|fw,chmDay:4,emoji:gw},{mm:qp,dd:20,desc:Mw,flags:iw|fw,chmDay:5,emoji:gw},{mm:qp,dd:22,desc:Tw,flags:iw|nw|ow},{mm:qp,dd:21,desc:Cw,flags:rw|fw,chmDay:-1,emoji:gw},{mm:Qp,dd:24,desc:Dw,flags:lw|hw|cw,emoji:"🕎1️⃣"},{mm:ew,dd:15,desc:Hw,flags:hw,emoji:"🌳"},{mm:tw,dd:13,desc:Nw,flags:lw|hw,emoji:"🎭️📜"},{mm:tw,dd:14,desc:kw,flags:hw,emoji:"🎭️📜"},{mm:tw,dd:15,desc:_w,flags:hw,emoji:"🎭️📜"},{mm:Vp,dd:14,desc:Lw,flags:iw|lw|rw,emoji:"🫓🍷"},{mm:Vp,dd:15,desc:Rw,flags:iw|nw|ow,emoji:dw},{mm:Vp,dd:16,desc:Pw,flags:iw|fw,chmDay:1,emoji:dw},{mm:Vp,dd:17,desc:jw,flags:iw|fw,chmDay:2,emoji:dw},{mm:Vp,dd:18,desc:Bw,flags:iw|fw,chmDay:3,emoji:dw},{mm:Vp,dd:19,desc:Fw,flags:iw|fw,chmDay:4,emoji:dw},{mm:Vp,dd:20,desc:Uw,flags:iw|fw|rw,chmDay:5,emoji:dw},{mm:Vp,dd:21,desc:xw,flags:iw|nw|ow,emoji:dw},{mm:Vp,dd:14,desc:Lw,flags:aw|lw|rw,emoji:"🫓🍷"},{mm:Vp,dd:15,desc:Rw,flags:aw|nw|sw,emoji:"🫓🍷"},{mm:Vp,dd:16,desc:Yw,flags:aw|nw|ow,emoji:dw},{mm:Vp,dd:17,desc:jw,flags:aw|fw,chmDay:1,emoji:dw},{mm:Vp,dd:18,desc:Bw,flags:aw|fw,chmDay:2,emoji:dw},{mm:Vp,dd:19,desc:Fw,flags:aw|fw,chmDay:3,emoji:dw},{mm:Vp,dd:20,desc:Uw,flags:aw|fw|rw,chmDay:4,emoji:dw},{mm:Vp,dd:21,desc:xw,flags:aw|nw|sw,emoji:dw},{mm:Vp,dd:22,desc:Zw,flags:aw|nw|ow,emoji:dw},{mm:zp,dd:14,desc:$w,flags:hw},{mm:zp,dd:18,desc:Vw,flags:hw,emoji:"🔥"},{mm:Kp,dd:5,desc:zw,flags:lw|rw,emoji:"⛰️🌸"},{mm:Kp,dd:6,desc:Kw,flags:iw|nw|ow,emoji:"⛰️🌸"},{mm:Kp,dd:6,desc:Jw,flags:aw|nw|sw,emoji:"⛰️🌸"},{mm:Kp,dd:7,desc:Gw,flags:aw|nw|ow,emoji:"⛰️🌸"},{mm:Gp,dd:15,desc:Ww,flags:hw,emoji:"❤️"},{mm:Wp,dd:1,desc:qw,flags:hw,emoji:"🐑"},{mm:Wp,dd:29,desc:Xw,flags:lw|rw,emoji:"🍏🍯"}],lv=[{firstYear:5727,mm:zp,dd:28,desc:Qw,chul:!0},{firstYear:5737,mm:Qp,dd:6,desc:ev,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:ew,dd:30,desc:tv},{firstYear:5758,mm:Xp,dd:12,desc:nv,friSatMovetoThu:!0},{firstYear:5764,mm:zp,dd:10,desc:rv,satPostponeToSun:!0},{firstYear:5765,mm:Jp,dd:29,desc:ov,satPostponeToSun:!0},{firstYear:5769,mm:Xp,dd:29,desc:av,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Vp,dd:10,desc:iv,chul:!0},{firstYear:5777,mm:Xp,dd:7,desc:sv},{firstYear:5773,mm:m.TEVET,dd:21,desc:cv,friSatMovetoThu:!0}],fv=Ie.CHAG,dv=Ie.IL_ONLY,gv=Ie.LIGHT_CANDLES_TZEIS,mv=Ie.CHANUKAH_CANDLES,yv=Ie.MINOR_FAST,Sv=Ie.SPECIAL_SHABBAT,pv=Ie.MODERN_HOLIDAY,wv=Ie.MAJOR_FAST,vv=Ie.MINOR_HOLIDAY,Av=Ie.EREV;class bv extends Te{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()&dv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Sv?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case uv.LAG_BAOMER:case uv.LEIL_SELICHOT:case uv.PESACH_SHENI:case uv.EREV_PURIM:case uv.PURIM_KATAN:case uv.SHUSHAN_PURIM:case uv.TU_BAV:case uv.TU_BISHVAT:case uv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"];default:return["holiday","major"]}}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Iv="Rosh Chodesh";class Mv extends bv{constructor(e,t){super(e,`${Iv} ${t}`,Ie.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=le.gettext(t,e).replace(/'/g,"’");return le.gettext(Iv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Tv extends bv{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const Ev="Shabbat Mevarchim Chodesh";class Ov extends Te{constructor(e,t,n){if(super(e,`${Ev} ${t}`,Ie.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==we.monthsInYear(t)?Nv:n+1,o=new rp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=le.gettext(this.monthName,e).replace(/'/g,"’");return le.gettext(Ev,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class Cv extends bv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return le.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Dv="Yom Kippur Katan";class Hv extends bv{constructor(e,t){super(e,`${Dv} ${t}`,yv|Ie.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=le.gettext(this.nextMonthName,e).replace(/'/g,"’");return le.gettext(Dv,e)+" "+t}renderBrief(e){return le.gettext(Dv,e)}url(){}}const Nv=m.NISAN,kv=m.TAMUZ,_v=m.AV,Lv=m.TISHREI,Rv=m.KISLEV,Yv=m.TEVET,Pv=m.ADAR_I,jv=m.ADAR_II,Bv={emoji:"🇮🇱"},Fv=new ip({maxSize:400}),Uv=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function xv(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=Fv.get(e);if(t)return t;const n=new we(1,Lv,e),r=new we(15,Nv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Av?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of hv){const n=new we(t.dd,t.mm,e),r=new bv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new Cv(n,e,fv|gv)),a(new bv(new we(3+(4==n.getDay()),Lv,e),uv.TZOM_GEDALIAH,yv)),a(new bv(new we(we.dayOnOrBefore(6,7+n.abs())),uv.SHABBAT_SHUVA,Sv));const i=we.shortKislev(e)?new we(1,Yv,e):new we(30,Rv,e);a(new bv(i,uv.CHAG_HABANOT,vv));for(let t=2;t<=8;t++){const n=new we(23+t,Rv,e);a(new bv(n,`Chanukah: ${t} Candles`,vv|mv,{chanukahDay:t-1,emoji:"🕎"+Uv[t]}))}a(new bv(new we(32,Rv,e),uv.CHANUKAH_8TH_DAY,vv,{chanukahDay:8,emoji:"🕎"})),a(new Tv(new we(10,Yv,e),uv.ASARA_BTEVET,yv));const s=r.abs();a(new bv(new we(we.dayOnOrBefore(6,s-43)),uv.SHABBAT_SHEKALIM,Sv),new bv(new we(we.dayOnOrBefore(6,s-30)),uv.SHABBAT_ZACHOR,Sv),new bv(new we(s-(2==r.getDay()?33:31)),uv.TAANIT_ESTHER,yv));const c=we.dayOnOrBefore(6,s-14);a(new bv(new we(c-7),uv.SHABBAT_PARAH,Sv),new bv(new we(c),uv.SHABBAT_HACHODESH,Sv),new bv(new we(we.dayOnOrBefore(6,s-1)),uv.SHABBAT_HAGADOL,Sv),new bv(6==r.prev().getDay()?r.onOrBefore(4):new we(14,Nv,e),uv.TAANIT_BECHOROT,yv)),a(new bv(new we(we.dayOnOrBefore(6,new we(1,Lv,e+1).abs()-4)),uv.LEIL_SELICHOT,vv,{emoji:"🕍"})),0==r.getDay()&&a(new bv(new we(16,jv,e),uv.PURIM_MESHULASH,vv)),we.isLeapYear(e)&&(a(new bv(new we(14,Pv,e),uv.PURIM_KATAN,vv,{emoji:"🎭️"})),a(new bv(new we(15,Pv,e),uv.SHUSHAN_PURIM_KATAN,vv,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new we(27,xp,e);return t.getDay()===Fp?t=new we(26,xp,e):t.getDay()===jp&&(t=new we(28,xp,e)),t}(e);u&&a(new bv(u,uv.YOM_HASHOAH,pv));const h=$p(e);h&&a(new bv(h,uv.YOM_HAZIKARON,pv,Bv),new bv(h.next(),uv.YOM_HAATZMA_UT,pv,Bv));for(const t of lv)if(e>=t.firstYear){let n=new we(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new we(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?pv:pv|dv,i=new bv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let l,f=new we(17,kv,e);6==f.getDay()&&(f=new we(18,kv,e),l={observed:!0}),a(new bv(f,uv.TZOM_TAMMUZ,yv,l));let d,g=new we(9,_v,e),y=uv.TISHA_BAV;6==g.getDay()&&(g=g.next(),d={observed:!0},y+=" (observed)");const S=g.abs();a(new bv(new we(we.dayOnOrBefore(6,S)),uv.SHABBAT_CHAZON,Sv),new bv(g.prev(),uv.EREV_TISHA_BAV,Av|wv,d),new bv(g,y,wv,d),new bv(new we(we.dayOnOrBefore(6,S+7)),uv.SHABBAT_NACHAMU,Sv));const p=we.monthsInYear(e);for(let t=1;t<=p;t++){const n=we.getMonthName(t,e);30==(t==Nv?we.daysInMonth(we.monthsInYear(e-1),e-1):we.daysInMonth(t-1,e))?(a(new Mv(new we(1,t,e),n)),a(new Mv(new we(30,t-1,e),n))):t!==Lv&&a(new Mv(new we(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===Lv||n===m.CHESHVAN||n===Yv)continue;let r=new we(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=we.getMonthName(n,e);a(new Hv(r,i))}const w=Ep(e,!1).find(15);a(new bv(w,uv.SHABBAT_SHIRAH,Sv));const v=function(e){const t=we.isLeapYear(e),n=t?jv:Nv,r=t?20:1,o=we.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 we(v);a(new bv(e,uv.BIRKAT_HACHAMAH,vv,{emoji:"☀️"}))}return Fv.set(e,o),o}const Zv=new Map;class $v{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Zv.set(e,t)}static lookup(e,t){const n=Zv.get(e);return"function"==typeof n?n(t):null}}const Vv="5.3.10";var zv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}};le.addLocale("ashkenazi",zv),le.addLocale("a",zv);var Kv={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["לְאַחַר הַשְׁקִיעָה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};le.addLocale("he",Kv),le.addLocale("h",Kv);const Jv=Kv.contexts[""],Gv={};for(const[e,t]of Object.entries(Jv))Gv[e]=[le.hebrewStripNikkud(t[0])];const Wv={headers:Kv.headers,contexts:{"":Gv}};function qv(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}le.addLocale("he-x-NoNikud",Wv);const Xv={shacharit:!1,mincha:!1,allCongs:!1};function Qv(e,t){return eA(e,t,!0)}function eA(e,t,n){const r=function(e,t){const n=we.isLeapYear(e),r=12+n;let o=new we(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new we(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(qv(1,r).map((t=>new we(1,t,e))),qv(1,r).filter((t=>30===we.daysInMonth(t,e))).map((t=>new we(30,t,e))),new we(2,m.TISHREI,e),qv(1,we.daysInMonth(m.NISAN,e)).map((t=>new we(t,m.NISAN,e))),new we(18,m.IYYAR,e),qv(1,8-(t?1:0)).map((t=>new we(t,m.SIVAN,e))),o,new we(15,m.AV,e),new we(29,m.ELUL,e),qv(9,24-(t?1:0)).map((t=>new we(t,m.TISHREI,e))),qv(25,33).map((t=>new we(t,m.KISLEV,e))),new we(15,m.SHVAT,e),new we(14,m.ADAR_II,e),a,n?new we(14,m.ADAR_I,e):[]),s=[].concat(qv(1,13).map((t=>new we(t,m.SIVAN,e))),qv(20,31).map((t=>new we(t,m.TISHREI,e))),new we(14,m.IYYAR,e),e>=5708?$p(e).next():[],e>=5727?new we(28,m.IYYAR,e):[]),c=[].concat(new we(29,m.ELUL,e-1),new we(9,m.TISHREI,e),new we(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return Xv;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=eA(new we(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:Xv}const tA=m.NISAN,nA=m.SIVAN,rA=m.ELUL,oA=m.TISHREI,aA=Ie.LIGHT_CANDLES,iA=Ie.YOM_TOV_ENDS,sA=Ie.CHUL_ONLY,cA=Ie.IL_ONLY,uA=Ie.LIGHT_CANDLES_TZEIS,hA=Ie.CHANUKAH_CANDLES,lA=Ie.MINOR_FAST,fA=Ie.SPECIAL_SHABBAT,dA=Ie.MODERN_HOLIDAY,gA=Ie.MAJOR_FAST,mA=Ie.ROSH_CHODESH,yA=Ie.PARSHA_HASHAVUA,SA=Ie.DAF_YOMI,pA=Ie.MISHNA_YOMI,wA=Ie.NACH_YOMI,vA=Ie.YERUSHALMI_YOMI,AA=Ie.OMER_COUNT,bA=Ie.SHABBAT_MEVARCHIM,IA=Ie.MINOR_HOLIDAY,MA=Ie.EREV,TA=Ie.CHOL_HAMOED,EA=Ie.YOM_KIPPUR_KATAN,OA=new Set,CA={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const DA={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},HA={281184:40,294801:30,293067:30};function NA(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(we.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function kA(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&mA&&delete e.noRoshChodesh;t&dA&&delete e.noModern;t&lA&&delete e.noMinorFast;t&fA&&delete e.noSpecialShabbat;t&yA&&(e.sedrot=!0);t&(SA|pA|wA|vA)&&(e.dailyLearning=e.dailyLearning||{},t&SA&&(e.dailyLearning.dafYomi=!0),t&pA&&(e.dailyLearning.mishnaYomi=!0),t&wA&&(e.dailyLearning.nachYomi=!0),t&vA&&(e.dailyLearning.yerushalmi=1));t&AA&&(e.omer=!0);t&bA&&(e.shabbatMevarchim=!0);t&EA&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=mA|iA|lA|fA|dA|gA|IA|MA|TA|aA|uA|hA),e.candlelighting&&(r|=aA|uA|iA),e.noRoshChodesh&&(r&=~mA),e.noModern&&(r&=~dA),e.noMinorFast&&(r&=~lA),e.noSpecialShabbat&&(r&=~fA,r&=~bA),r|=n?cA:sA,e.sedrot&&(r|=yA),e.omer&&(r|=AA),e.shabbatMevarchim&&(r|=bA),e.yomKippurKatan&&(r|=EA),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=SA),t.mishnaYomi&&(r|=pA),t.nachYomi&&(r|=wA),t.yerushalmi&&(r|=vA)}return r}const _A=aA|uA|hA|iA,LA=new BS(0,0,!1,"UTC");function RA(e){return e.observedInIsrael()}function YA(e){return e.observedInDiaspora()}class PA{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof BS))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=HA[e];"number"==typeof r&&(n=r);const o=DA[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||LA,r=t.il=t.il||n.il||!1;if(t.mask=kA(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!le.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else le.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[NA(t.start),NA(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new we).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?we.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new we(1,o||oA,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new we(1,oA,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==CA[t]||OA.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),OA.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new we(e),l=h.getFullYear();l!=u&&(u=l,i=xv(u),t.sedrot&&(a=Ep(u,r)),t.omer&&(s=we.hebrew2abs(u,tA,16),c=we.hebrew2abs(u,nA,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const e of S)y=jA(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Op(h,t.parsha,r,t.num))}const p=t.dailyLearning;if("object"==typeof p)for(const[e,t]of Object.entries(p))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=$v.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new ap(h,e-s+1);if(t.candlelighting){const e=new zS(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const w=h.getMonth(),v=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&w!=rA&&v>=23&&v<=29){const e=w==we.monthsInYear(l)?tA:w+1;if(t.molad&&o.push(new op(h,l,e,t)),t.shabbatMevarchim){const n=we.getMonthName(e,l),r=new rp(l,e).render(t.locale||"en",t);o.push(new Ov(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=GS(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof qS&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Ee(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=F(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=T(r);let a=n.mm,i=n.dd;return a===j&&!o||a===B&&o?a=E(e):a!==L||30!==i||N(e)?a===R&&30===i&&k(e)?(a=Y,i=1):a===j&&30===i&&o&&!T(e)&&(a=_,i=1):(a=R,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new we(n)}static getYahrzeit(e,t){const n=function(e,t){let n=F(t);if(!(e<=n.yy))return n.mm!==L||30!==n.dd||N(n.yy+1)?n.mm===R&&30===n.dd&&k(n.yy+1)?n=M(b(e,Y,1)-1):n.mm===B?n.mm=E(e):n.mm!==j||30!==n.dd||T(e)||(n.dd=30,n.mm=P):n=M(b(e,R,1)-1),n.mm!==L||30!==n.dd||N(e)?n.mm===R&&30===n.dd&&k(e)&&(n.mm=Y,n.dd=1):(n.mm=R,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new we(n)}static getHolidaysForYear(e){return xv(e)}static getHolidaysForYearArray(e,t){const n=xv(e),r=we.hebrew2abs(e,oA,1),o=we.hebrew2abs(e+1,oA,1)-1;let a=[];const i=t?RA:YA;for(let e=r;e<=o;e++){const t=new we(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=we.isHDate(e)?e:new we(e),r=n.toString(),o=xv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?RA:YA;return o.filter(a)}static reformatTimeStr(e,t,n){return JS(e,t,n)}static version(){return Vv}static getSedra(e,t){return Ep(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===m.NISAN&&(15===o||16===o)&&e.getFlags()&Ie.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()&Ie.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(PA.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return Qv(e,t)}}function jA(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&EA||r.noModern&&s&dA)return e;const c=r.location,u=Boolean(s&gA),h=Boolean(s&lA);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new zS(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=QS(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=QS(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=QS(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=QS(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&_A){const t=n.getDate();if(e=GS(n,t,r,o,a),s&hA&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new zS(r,t.greg(),n.useElevation);return QS(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new bv(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&EA)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Tv,e.CandleLightingEvent=XS,e.DailyLearning=$v,e.Event=Te,e.GeoLocation=kS,e.HDate=we,e.HavdalahEvent=qS,e.HebrewCalendar=PA,e.HebrewDateEvent=Ee,e.HolidayEvent=bv,e.Locale=le,e.Location=BS,e.MevarchimChodeshEvent=Ov,e.Molad=rp,e.MoladEvent=op,e.NOAACalculator=LS,e.OmerEvent=ap,e.ParshaEvent=Op,e.RoshChodeshEvent=Mv,e.RoshHashanaEvent=Cv,e.Sedra=sp,e.TimedEvent=WS,e.Zmanim=zS,e.flags=Ie,e.gematriya=V,e.gematriyaStrToNum=z,e.holidayDesc=uv,e.months=m,e.parshiot=cp,e.version=Vv,e}({});
|