@flarehr/apollo-benefits 2.83.43343 → 2.85.47721

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{c as Te,d as g,e as p,f as m,g as w,h as s,i as c,j as _e}from"./vendor-47fa603f.js";function x(o,i){if(i.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+i.length+" present")}function et(o){return x(1,arguments),o instanceof Date||Te(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function U(o){x(1,arguments);var i=Object.prototype.toString.call(o);return o instanceof Date||Te(o)==="object"&&i==="[object Date]"?new Date(o.getTime()):typeof o=="number"||i==="[object Number]"?new Date(o):((typeof o=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function tt(o){if(x(1,arguments),!et(o)&&typeof o!="number")return!1;var i=U(o);return!isNaN(Number(i))}function _(o){if(o===null||o===!0||o===!1)return NaN;var i=Number(o);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function rt(o,i){x(2,arguments);var t=U(o).getTime(),r=_(i);return new Date(t+r)}function $e(o,i){x(2,arguments);var t=_(i);return rt(o,-t)}var at=864e5;function nt(o){x(1,arguments);var i=U(o),t=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var r=i.getTime(),e=t-r;return Math.floor(e/at)+1}function ee(o){x(1,arguments);var i=1,t=U(o),r=t.getUTCDay(),e=(r<i?7:0)+r-i;return t.setUTCDate(t.getUTCDate()-e),t.setUTCHours(0,0,0,0),t}function Le(o){x(1,arguments);var i=U(o),t=i.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var e=ee(r),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=ee(n);return i.getTime()>=e.getTime()?t+1:i.getTime()>=a.getTime()?t:t-1}function it(o){x(1,arguments);var i=Le(o),t=new Date(0);t.setUTCFullYear(i,0,4),t.setUTCHours(0,0,0,0);var r=ee(t);return r}var ot=6048e5;function Ae(o){x(1,arguments);var i=U(o),t=ee(i).getTime()-it(i).getTime();return Math.round(t/ot)+1}var ut={};function te(){return ut}function K(o,i){var t,r,e,n,a,u,l,d;x(1,arguments);var f=te(),v=_((t=(r=(e=(n=i==null?void 0:i.weekStartsOn)!==null&&n!==void 0?n:i==null||(a=i.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var D=U(o),b=D.getUTCDay(),P=(b<v?7:0)+b-v;return D.setUTCDate(D.getUTCDate()-P),D.setUTCHours(0,0,0,0),D}function De(o,i){var t,r,e,n,a,u,l,d;x(1,arguments);var f=U(o),v=f.getUTCFullYear(),D=te(),b=_((t=(r=(e=(n=i==null?void 0:i.firstWeekContainsDate)!==null&&n!==void 0?n:i==null||(a=i.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:D.firstWeekContainsDate)!==null&&r!==void 0?r:(l=D.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=new Date(0);P.setUTCFullYear(v+1,0,b),P.setUTCHours(0,0,0,0);var H=K(P,i),W=new Date(0);W.setUTCFullYear(v,0,b),W.setUTCHours(0,0,0,0);var q=K(W,i);return f.getTime()>=H.getTime()?v+1:f.getTime()>=q.getTime()?v:v-1}function st(o,i){var t,r,e,n,a,u,l,d;x(1,arguments);var f=te(),v=_((t=(r=(e=(n=i==null?void 0:i.firstWeekContainsDate)!==null&&n!==void 0?n:i==null||(a=i.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),D=De(o,i),b=new Date(0);b.setUTCFullYear(D,0,v),b.setUTCHours(0,0,0,0);var P=K(b,i);return P}var lt=6048e5;function Re(o,i){x(1,arguments);var t=U(o),r=K(t,i).getTime()-st(t,i).getTime();return Math.round(r/lt)+1}function h(o,i){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<i;)r="0"+r;return t+r}var ct={y:function(i,t){var r=i.getUTCFullYear(),e=r>0?r:1-r;return h(t==="yy"?e%100:e,t.length)},M:function(i,t){var r=i.getUTCMonth();return t==="M"?String(r+1):h(r+1,2)},d:function(i,t){return h(i.getUTCDate(),t.length)},a:function(i,t){var r=i.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(i,t){return h(i.getUTCHours()%12||12,t.length)},H:function(i,t){return h(i.getUTCHours(),t.length)},m:function(i,t){return h(i.getUTCMinutes(),t.length)},s:function(i,t){return h(i.getUTCSeconds(),t.length)},S:function(i,t){var r=t.length,e=i.getUTCMilliseconds(),n=Math.floor(e*Math.pow(10,r-3));return h(n,t.length)}};const z=ct;var J={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dt={G:function(i,t,r){var e=i.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})}},y:function(i,t,r){if(t==="yo"){var e=i.getUTCFullYear(),n=e>0?e:1-e;return r.ordinalNumber(n,{unit:"year"})}return z.y(i,t)},Y:function(i,t,r,e){var n=De(i,e),a=n>0?n:1-n;if(t==="YY"){var u=a%100;return h(u,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):h(a,t.length)},R:function(i,t){var r=Le(i);return h(r,t.length)},u:function(i,t){var r=i.getUTCFullYear();return h(r,t.length)},Q:function(i,t,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(t){case"Q":return String(e);case"QQ":return h(e,2);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})}},q:function(i,t,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(t){case"q":return String(e);case"qq":return h(e,2);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})}},M:function(i,t,r){var e=i.getUTCMonth();switch(t){case"M":case"MM":return z.M(i,t);case"Mo":return r.ordinalNumber(e+1,{unit:"month"});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})}},L:function(i,t,r){var e=i.getUTCMonth();switch(t){case"L":return String(e+1);case"LL":return h(e+1,2);case"Lo":return r.ordinalNumber(e+1,{unit:"month"});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})}},w:function(i,t,r,e){var n=Re(i,e);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):h(n,t.length)},I:function(i,t,r){var e=Ae(i);return t==="Io"?r.ordinalNumber(e,{unit:"week"}):h(e,t.length)},d:function(i,t,r){return t==="do"?r.ordinalNumber(i.getUTCDate(),{unit:"date"}):z.d(i,t)},D:function(i,t,r){var e=nt(i);return t==="Do"?r.ordinalNumber(e,{unit:"dayOfYear"}):h(e,t.length)},E:function(i,t,r){var e=i.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})}},e:function(i,t,r,e){var n=i.getUTCDay(),a=(n-e.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return h(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(i,t,r,e){var n=i.getUTCDay(),a=(n-e.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return h(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(i,t,r){var e=i.getUTCDay(),n=e===0?7:e;switch(t){case"i":return String(n);case"ii":return h(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(e,{width:"short",context:"formatting"});case"iiii":default:return r.day(e,{width:"wide",context:"formatting"})}},a:function(i,t,r){var e=i.getUTCHours(),n=e/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(i,t,r){var e=i.getUTCHours(),n;switch(e===12?n=J.noon:e===0?n=J.midnight:n=e/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(i,t,r){var e=i.getUTCHours(),n;switch(e>=17?n=J.evening:e>=12?n=J.afternoon:e>=4?n=J.morning:n=J.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(i,t,r){if(t==="ho"){var e=i.getUTCHours()%12;return e===0&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return z.h(i,t)},H:function(i,t,r){return t==="Ho"?r.ordinalNumber(i.getUTCHours(),{unit:"hour"}):z.H(i,t)},K:function(i,t,r){var e=i.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(e,{unit:"hour"}):h(e,t.length)},k:function(i,t,r){var e=i.getUTCHours();return e===0&&(e=24),t==="ko"?r.ordinalNumber(e,{unit:"hour"}):h(e,t.length)},m:function(i,t,r){return t==="mo"?r.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):z.m(i,t)},s:function(i,t,r){return t==="so"?r.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):z.s(i,t)},S:function(i,t){return z.S(i,t)},X:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return qe(a);case"XXXX":case"XX":return Z(a);case"XXXXX":case"XXX":default:return Z(a,":")}},x:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();switch(t){case"x":return qe(a);case"xxxx":case"xx":return Z(a);case"xxxxx":case"xxx":default:return Z(a,":")}},O:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+He(a,":");case"OOOO":default:return"GMT"+Z(a,":")}},z:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+He(a,":");case"zzzz":default:return"GMT"+Z(a,":")}},t:function(i,t,r,e){var n=e._originalDate||i,a=Math.floor(n.getTime()/1e3);return h(a,t.length)},T:function(i,t,r,e){var n=e._originalDate||i,a=n.getTime();return h(a,t.length)}};function He(o,i){var t=o>0?"-":"+",r=Math.abs(o),e=Math.floor(r/60),n=r%60;if(n===0)return t+String(e);var a=i||"";return t+String(e)+a+h(n,2)}function qe(o,i){if(o%60===0){var t=o>0?"-":"+";return t+h(Math.abs(o)/60,2)}return Z(o,i)}function Z(o,i){var t=i||"",r=o>0?"-":"+",e=Math.abs(o),n=h(Math.floor(e/60),2),a=h(e%60,2);return r+n+t+a}const ft=dt;var Ie=function(i,t){switch(i){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Fe=function(i,t){switch(i){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},vt=function(i,t){var r=i.match(/(P+)(p+)?/)||[],e=r[1],n=r[2];if(!n)return Ie(i,t);var a;switch(e){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ie(e,t)).replace("{{time}}",Fe(n,t))},ht={p:Fe,P:vt};const be=ht;function Qe(o){var i=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return i.setUTCFullYear(o.getFullYear()),o.getTime()-i.getTime()}var mt=["D","DD"],wt=["YY","YYYY"];function Se(o){return mt.indexOf(o)!==-1}function Xe(o){return wt.indexOf(o)!==-1}function ve(o,i,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pt=function(i,t,r){var e,n=gt[i];return typeof n=="string"?e=n:t===1?e=n.one:e=n.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+e:e+" ago":e};const yt=pt;function pe(o){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=i.width?String(i.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var bt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Tt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ct={date:pe({formats:bt,defaultWidth:"full"}),time:pe({formats:Tt,defaultWidth:"full"}),dateTime:pe({formats:Dt,defaultWidth:"full"})};const xt=Ct;var Pt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mt=function(i,t,r,e){return Pt[i]};const Ot=Mt;function oe(o){return function(i,t){var r=t!=null&&t.context?String(t.context):"standalone",e;if(r==="formatting"&&o.formattingValues){var n=o.defaultFormattingWidth||o.defaultWidth,a=t!=null&&t.width?String(t.width):n;e=o.formattingValues[a]||o.formattingValues[n]}else{var u=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;e=o.values[l]||o.values[u]}var d=o.argumentCallback?o.argumentCallback(i):i;return e[d]}}var kt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ut={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Nt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Et={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_t=function(i,t){var r=Number(i),e=r%100;if(e>20||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ht={ordinalNumber:_t,era:oe({values:kt,defaultWidth:"wide"}),quarter:oe({values:Ut,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:oe({values:Yt,defaultWidth:"wide"}),day:oe({values:Nt,defaultWidth:"wide"}),dayPeriod:oe({values:Et,defaultWidth:"wide",formattingValues:Wt,defaultFormattingWidth:"wide"})};const qt=Ht;function ue(o){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,e=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],n=i.match(e);if(!n)return null;var a=n[0],u=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(u)?$t(u,function(v){return v.test(a)}):It(u,function(v){return v.test(a)}),d;d=o.valueCallback?o.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var f=i.slice(a.length);return{value:d,rest:f}}}function It(o,i){for(var t in o)if(o.hasOwnProperty(t)&&i(o[t]))return t}function $t(o,i){for(var t=0;t<o.length;t++)if(i(o[t]))return t}function Lt(o){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.match(o.matchPattern);if(!r)return null;var e=r[0],n=i.match(o.parsePattern);if(!n)return null;var a=o.valueCallback?o.valueCallback(n[0]):n[0];a=t.valueCallback?t.valueCallback(a):a;var u=i.slice(e.length);return{value:a,rest:u}}}var At=/^(\d+)(th|st|nd|rd)?/i,Rt=/\d+/i,Ft={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Qt={any:[/^b/i,/^(a|c)/i]},St={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xt={any:[/1/i,/2/i,/3/i,/4/i]},Gt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Vt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kt={ordinalNumber:Lt({matchPattern:At,parsePattern:Rt,valueCallback:function(i){return parseInt(i,10)}}),era:ue({matchPatterns:Ft,defaultMatchWidth:"wide",parsePatterns:Qt,defaultParseWidth:"any"}),quarter:ue({matchPatterns:St,defaultMatchWidth:"wide",parsePatterns:Xt,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:ue({matchPatterns:Gt,defaultMatchWidth:"wide",parsePatterns:Bt,defaultParseWidth:"any"}),day:ue({matchPatterns:zt,defaultMatchWidth:"wide",parsePatterns:jt,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:Vt,defaultMatchWidth:"any",parsePatterns:Zt,defaultParseWidth:"any"})};const Jt=Kt;var er={code:"en-US",formatDistance:yt,formatLong:xt,formatRelative:Ot,localize:qt,match:Jt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ge=er;var tr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ar=/^'([^]*?)'?$/,nr=/''/g,ir=/[a-zA-Z]/;function pa(o,i,t){var r,e,n,a,u,l,d,f,v,D,b,P,H,W,q,A,Q,S;x(2,arguments);var j=String(i),E=te(),$=(r=(e=t==null?void 0:t.locale)!==null&&e!==void 0?e:E.locale)!==null&&r!==void 0?r:Ge,X=_((n=(a=(u=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(d=t.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:E.firstWeekContainsDate)!==null&&a!==void 0?a:(v=E.locale)===null||v===void 0||(D=v.options)===null||D===void 0?void 0:D.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(X>=1&&X<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var G=_((b=(P=(H=(W=t==null?void 0:t.weekStartsOn)!==null&&W!==void 0?W:t==null||(q=t.locale)===null||q===void 0||(A=q.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&H!==void 0?H:E.weekStartsOn)!==null&&P!==void 0?P:(Q=E.locale)===null||Q===void 0||(S=Q.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&b!==void 0?b:0);if(!(G>=0&&G<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var B=U(o);if(!tt(B))throw new RangeError("Invalid time value");var re=Qe(B),ae=$e(B,re),ne={firstWeekContainsDate:X,weekStartsOn:G,locale:$,_originalDate:B},me=j.match(rr).map(function(N){var I=N[0];if(I==="p"||I==="P"){var V=be[I];return V(N,$.formatLong)}return N}).join("").match(tr).map(function(N){if(N==="''")return"'";var I=N[0];if(I==="'")return or(N);var V=ft[I];if(V)return!(t!=null&&t.useAdditionalWeekYearTokens)&&Xe(N)&&ve(N,i,String(o)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Se(N)&&ve(N,i,String(o)),V(ae,N,$.localize,ne);if(I.match(ir))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return N}).join("");return me}function or(o){var i=o.match(ar);return i?i[1].replace(nr,"'"):o}function ya(o,i){var t,r;x(1,arguments);var e=U(o);if(isNaN(e.getTime()))throw new RangeError("Invalid time value");var n=String((t=i==null?void 0:i.format)!==null&&t!==void 0?t:"extended"),a=String((r=i==null?void 0:i.representation)!==null&&r!==void 0?r:"complete");if(n!=="extended"&&n!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var u="",l="",d=n==="extended"?"-":"",f=n==="extended"?":":"";if(a!=="time"){var v=h(e.getDate(),2),D=h(e.getMonth()+1,2),b=h(e.getFullYear(),4);u="".concat(b).concat(d).concat(D).concat(d).concat(v)}if(a!=="date"){var P=e.getTimezoneOffset();if(P!==0){var H=Math.abs(P),W=h(Math.floor(H/60),2),q=h(H%60,2),A=P<0?"+":"-";l="".concat(A).concat(W,":").concat(q)}else l="Z";var Q=h(e.getHours(),2),S=h(e.getMinutes(),2),j=h(e.getSeconds(),2),E=u===""?"":"T",$=[Q,S,j].join(f);u="".concat(u).concat(E).concat($).concat(l)}return u}function ur(o,i){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(o[t]=i[t]);return o}var sr=10,Be=function(){function o(){w(this,o),s(this,"priority",void 0),s(this,"subPriority",0)}return m(o,[{key:"validate",value:function(t,r){return!0}}]),o}(),lr=function(o){g(t,o);var i=p(t);function t(r,e,n,a,u){var l;return w(this,t),l=i.call(this),l.value=r,l.validateValue=e,l.setValue=n,l.priority=a,u&&(l.subPriority=u),l}return m(t,[{key:"validate",value:function(e,n){return this.validateValue(e,this.value,n)}},{key:"set",value:function(e,n,a){return this.setValue(e,n,this.value,a)}}]),t}(Be),cr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",sr),s(c(r),"subPriority",-1),r}return m(t,[{key:"set",value:function(e,n){if(n.timestampIsSet)return e;var a=new Date(0);return a.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),a.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),a}}]),t}(Be),y=function(){function o(){w(this,o),s(this,"incompatibleTokens",void 0),s(this,"priority",void 0),s(this,"subPriority",void 0)}return m(o,[{key:"run",value:function(t,r,e,n){var a=this.parse(t,r,e,n);return a?{setter:new lr(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(t,r,e){return!0}}]),o}(),dr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",140),s(c(r),"incompatibleTokens",["R","u","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}},{key:"set",value:function(e,n,a){return n.era=a,e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),Ce=6e4,xe=36e5,fr=1e3,O={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},R={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function k(o,i){return o&&{value:i(o.value),rest:o.rest}}function C(o,i){var t=i.match(o);return t?{value:parseInt(t[0],10),rest:i.slice(t[0].length)}:null}function F(o,i){var t=i.match(o);if(!t)return null;if(t[0]==="Z")return{value:0,rest:i.slice(1)};var r=t[1]==="+"?1:-1,e=t[2]?parseInt(t[2],10):0,n=t[3]?parseInt(t[3],10):0,a=t[5]?parseInt(t[5],10):0;return{value:r*(e*xe+n*Ce+a*fr),rest:i.slice(t[0].length)}}function ze(o){return C(O.anyDigitsSigned,o)}function M(o,i){switch(o){case 1:return C(O.singleDigit,i);case 2:return C(O.twoDigits,i);case 3:return C(O.threeDigits,i);case 4:return C(O.fourDigits,i);default:return C(new RegExp("^\\d{1,"+o+"}"),i)}}function he(o,i){switch(o){case 1:return C(O.singleDigitSigned,i);case 2:return C(O.twoDigitsSigned,i);case 3:return C(O.threeDigitsSigned,i);case 4:return C(O.fourDigitsSigned,i);default:return C(new RegExp("^-?\\d{1,"+o+"}"),i)}}function Pe(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function je(o,i){var t=i>0,r=t?i:1-i,e;if(r<=50)e=o||100;else{var n=r+50,a=Math.floor(n/100)*100,u=o>=n%100;e=o+a-(u?100:0)}return t?e:1-e}function Ve(o){return o%400===0||o%4===0&&o%100!==0}var vr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return{year:d,isTwoDigitYear:n==="yy"}};switch(n){case"y":return k(M(4,e),u);case"yo":return k(a.ordinalNumber(e,{unit:"year"}),u);default:return k(M(n.length,e),u)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,a){var u=e.getUTCFullYear();if(a.isTwoDigitYear){var l=je(a.year,u);return e.setUTCFullYear(l,0,1),e.setUTCHours(0,0,0,0),e}var d=!("era"in n)||n.era===1?a.year:1-a.year;return e.setUTCFullYear(d,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),hr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return{year:d,isTwoDigitYear:n==="YY"}};switch(n){case"Y":return k(M(4,e),u);case"Yo":return k(a.ordinalNumber(e,{unit:"year"}),u);default:return k(M(n.length,e),u)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,a,u){var l=De(e,u);if(a.isTwoDigitYear){var d=je(a.year,l);return e.setUTCFullYear(d,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),K(e,u)}var f=!("era"in n)||n.era===1?a.year:1-a.year;return e.setUTCFullYear(f,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),K(e,u)}}]),t}(y),mr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n){return he(n==="R"?4:n.length,e)}},{key:"set",value:function(e,n,a){var u=new Date(0);return u.setUTCFullYear(a,0,4),u.setUTCHours(0,0,0,0),ee(u)}}]),t}(y),wr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n){return he(n==="u"?4:n.length,e)}},{key:"set",value:function(e,n,a){return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),gr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",120),s(c(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"Q":case"QQ":return M(n.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,a){return e.setUTCMonth((a-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),pr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",120),s(c(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"q":case"qq":return M(n.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,a){return e.setUTCMonth((a-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),yr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),s(c(r),"priority",110),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return d-1};switch(n){case"M":return k(C(O.month,e),u);case"MM":return k(M(2,e),u);case"Mo":return k(a.ordinalNumber(e,{unit:"month"}),u);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,a){return e.setUTCMonth(a,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),br=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",110),s(c(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return d-1};switch(n){case"L":return k(C(O.month,e),u);case"LL":return k(M(2,e),u);case"Lo":return k(a.ordinalNumber(e,{unit:"month"}),u);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,a){return e.setUTCMonth(a,1),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Tr(o,i,t){x(2,arguments);var r=U(o),e=_(i),n=Re(r,t)-e;return r.setUTCDate(r.getUTCDate()-n*7),r}var Dr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",100),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"w":return C(O.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,a,u){return K(Tr(e,a,u),u)}}]),t}(y);function Cr(o,i){x(2,arguments);var t=U(o),r=_(i),e=Ae(t)-r;return t.setUTCDate(t.getUTCDate()-e*7),t}var xr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",100),s(c(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"I":return C(O.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,a){return ee(Cr(e,a))}}]),t}(y),Pr=[31,28,31,30,31,30,31,31,30,31,30,31],Mr=[31,29,31,30,31,30,31,31,30,31,30,31],Or=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"subPriority",1),s(c(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"d":return C(O.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){var a=e.getUTCFullYear(),u=Ve(a),l=e.getUTCMonth();return u?n>=1&&n<=Mr[l]:n>=1&&n<=Pr[l]}},{key:"set",value:function(e,n,a){return e.setUTCDate(a),e.setUTCHours(0,0,0,0),e}}]),t}(y),kr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"subpriority",1),s(c(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"D":case"DD":return C(O.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){var a=e.getUTCFullYear(),u=Ve(a);return u?n>=1&&n<=366:n>=1&&n<=365}},{key:"set",value:function(e,n,a){return e.setUTCMonth(0,a),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Me(o,i,t){var r,e,n,a,u,l,d,f;x(2,arguments);var v=te(),D=_((r=(e=(n=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(u=t.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:v.weekStartsOn)!==null&&e!==void 0?e:(d=v.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=U(o),P=_(i),H=b.getUTCDay(),W=P%7,q=(W+7)%7,A=(q<D?7:0)+P-H;return b.setUTCDate(b.getUTCDate()+A),b}var Ur=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,a,u){return e=Me(e,a,u),e.setUTCHours(0,0,0,0),e}}]),t}(y),Yr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a,u){var l=function(f){var v=Math.floor((f-1)/7)*7;return(f+u.weekStartsOn+6)%7+v};switch(n){case"e":case"ee":return k(M(n.length,e),l);case"eo":return k(a.ordinalNumber(e,{unit:"day"}),l);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,a,u){return e=Me(e,a,u),e.setUTCHours(0,0,0,0),e}}]),t}(y),Nr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a,u){var l=function(f){var v=Math.floor((f-1)/7)*7;return(f+u.weekStartsOn+6)%7+v};switch(n){case"c":case"cc":return k(M(n.length,e),l);case"co":return k(a.ordinalNumber(e,{unit:"day"}),l);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,a,u){return e=Me(e,a,u),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Er(o,i){x(2,arguments);var t=_(i);t%7===0&&(t=t-7);var r=1,e=U(o),n=e.getUTCDay(),a=t%7,u=(a+7)%7,l=(u<r?7:0)+t-n;return e.setUTCDate(e.getUTCDate()+l),e}var Wr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return d===0?7:d};switch(n){case"i":case"ii":return M(n.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return k(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),u);case"iiiii":return k(a.day(e,{width:"narrow",context:"formatting"}),u);case"iiiiii":return k(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),u);case"iiii":default:return k(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),u)}}},{key:"validate",value:function(e,n){return n>=1&&n<=7}},{key:"set",value:function(e,n,a){return e=Er(e,a),e.setUTCHours(0,0,0,0),e}}]),t}(y),_r=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,a){return e.setUTCHours(Pe(a),0,0,0),e}}]),t}(y),Hr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,a){return e.setUTCHours(Pe(a),0,0,0),e}}]),t}(y),qr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["a","b","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,a){return e.setUTCHours(Pe(a),0,0,0),e}}]),t}(y),Ir=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["H","K","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"h":return C(O.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=12}},{key:"set",value:function(e,n,a){var u=e.getUTCHours()>=12;return u&&a<12?e.setUTCHours(a+12,0,0,0):!u&&a===12?e.setUTCHours(0,0,0,0):e.setUTCHours(a,0,0,0),e}}]),t}(y),$r=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"H":return C(O.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=23}},{key:"set",value:function(e,n,a){return e.setUTCHours(a,0,0,0),e}}]),t}(y),Lr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["h","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"K":return C(O.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,a){var u=e.getUTCHours()>=12;return u&&a<12?e.setUTCHours(a+12,0,0,0):e.setUTCHours(a,0,0,0),e}}]),t}(y),Ar=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"k":return C(O.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=24}},{key:"set",value:function(e,n,a){var u=a<=24?a%24:a;return e.setUTCHours(u,0,0,0),e}}]),t}(y),Rr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",60),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"m":return C(O.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,a){return e.setUTCMinutes(a,0,0),e}}]),t}(y),Fr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",50),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"s":return C(O.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,a){return e.setUTCSeconds(a,0),e}}]),t}(y),Qr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",30),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,n){var a=function(l){return Math.floor(l*Math.pow(10,-n.length+3))};return k(M(n.length,e),a)}},{key:"set",value:function(e,n,a){return e.setUTCMilliseconds(a),e}}]),t}(y),Sr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",10),s(c(r),"incompatibleTokens",["t","T","x"]),r}return m(t,[{key:"parse",value:function(e,n){switch(n){case"X":return F(R.basicOptionalMinutes,e);case"XX":return F(R.basic,e);case"XXXX":return F(R.basicOptionalSeconds,e);case"XXXXX":return F(R.extendedOptionalSeconds,e);case"XXX":default:return F(R.extended,e)}}},{key:"set",value:function(e,n,a){return n.timestampIsSet?e:new Date(e.getTime()-a)}}]),t}(y),Xr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",10),s(c(r),"incompatibleTokens",["t","T","X"]),r}return m(t,[{key:"parse",value:function(e,n){switch(n){case"x":return F(R.basicOptionalMinutes,e);case"xx":return F(R.basic,e);case"xxxx":return F(R.basicOptionalSeconds,e);case"xxxxx":return F(R.extendedOptionalSeconds,e);case"xxx":default:return F(R.extended,e)}}},{key:"set",value:function(e,n,a){return n.timestampIsSet?e:new Date(e.getTime()-a)}}]),t}(y),Gr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",40),s(c(r),"incompatibleTokens","*"),r}return m(t,[{key:"parse",value:function(e){return ze(e)}},{key:"set",value:function(e,n,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),t}(y),Br=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",20),s(c(r),"incompatibleTokens","*"),r}return m(t,[{key:"parse",value:function(e){return ze(e)}},{key:"set",value:function(e,n,a){return[new Date(a),{timestampIsSet:!0}]}}]),t}(y),zr={G:new dr,y:new vr,Y:new hr,R:new mr,u:new wr,Q:new gr,q:new pr,M:new yr,L:new br,w:new Dr,I:new xr,d:new Or,D:new kr,E:new Ur,e:new Yr,c:new Nr,i:new Wr,a:new _r,b:new Hr,B:new qr,h:new Ir,H:new $r,K:new Lr,k:new Ar,m:new Rr,s:new Fr,S:new Qr,X:new Sr,x:new Xr,t:new Gr,T:new Br},jr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zr=/^'([^]*?)'?$/,Kr=/''/g,Jr=/\S/,ea=/[a-zA-Z]/;function ba(o,i,t,r){var e,n,a,u,l,d,f,v,D,b,P,H,W,q,A,Q,S,j;x(3,arguments);var E=String(o),$=String(i),X=te(),G=(e=(n=r==null?void 0:r.locale)!==null&&n!==void 0?n:X.locale)!==null&&e!==void 0?e:Ge;if(!G.match)throw new RangeError("locale must contain match property");var B=_((a=(u=(l=(d=r==null?void 0:r.firstWeekContainsDate)!==null&&d!==void 0?d:r==null||(f=r.locale)===null||f===void 0||(v=f.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&l!==void 0?l:X.firstWeekContainsDate)!==null&&u!==void 0?u:(D=X.locale)===null||D===void 0||(b=D.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=_((P=(H=(W=(q=r==null?void 0:r.weekStartsOn)!==null&&q!==void 0?q:r==null||(A=r.locale)===null||A===void 0||(Q=A.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&W!==void 0?W:X.weekStartsOn)!==null&&H!==void 0?H:(S=X.locale)===null||S===void 0||(j=S.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&P!==void 0?P:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if($==="")return E===""?U(t):new Date(NaN);var ae={firstWeekContainsDate:B,weekStartsOn:re,locale:G},ne=[new cr],me=$.match(Vr).map(function(Y){var T=Y[0];if(T in be){var L=be[T];return L(Y,G.formatLong)}return Y}).join("").match(jr),N=[],I=_e(me),V;try{var Ke=function(){var T=V.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Xe(T)&&ve(T,$,o),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Se(T)&&ve(T,$,o);var L=T[0],de=zr[L];if(de){var Ne=de.incompatibleTokens;if(Array.isArray(Ne)){var Ee=N.find(function(We){return Ne.includes(We.token)||We.token===L});if(Ee)throw new RangeError("The format string mustn't contain `".concat(Ee.fullToken,"` and `").concat(T,"` at the same time"))}else if(de.incompatibleTokens==="*"&&N.length>0)throw new RangeError("The format string mustn't contain `".concat(T,"` and any other token at the same time"));N.push({token:L,fullToken:T});var ge=de.run(E,T,G.match,ae);if(!ge)return{v:new Date(NaN)};ne.push(ge.setter),E=ge.rest}else{if(L.match(ea))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(T==="''"?T="'":L==="'"&&(T=ta(T)),E.indexOf(T)===0)E=E.slice(T.length);else return{v:new Date(NaN)}}};for(I.s();!(V=I.n()).done;){var Oe=Ke();if(Te(Oe)==="object")return Oe.v}}catch(Y){I.e(Y)}finally{I.f()}if(E.length>0&&Jr.test(E))return new Date(NaN);var Je=ne.map(function(Y){return Y.priority}).sort(function(Y,T){return T-Y}).filter(function(Y,T,L){return L.indexOf(Y)===T}).map(function(Y){return ne.filter(function(T){return T.priority===Y}).sort(function(T,L){return L.subPriority-T.subPriority})}).map(function(Y){return Y[0]}),we=U(t);if(isNaN(we.getTime()))return new Date(NaN);var ie=$e(we,Qe(we)),ke={},le=_e(Je),Ue;try{for(le.s();!(Ue=le.n()).done;){var Ye=Ue.value;if(!Ye.validate(ie,ae))return new Date(NaN);var ce=Ye.set(ie,ke,ae);Array.isArray(ce)?(ie=ce[0],ur(ke,ce[1])):ie=ce}}catch(Y){le.e(Y)}finally{le.f()}return ie}function ta(o){return o.match(Zr)[1].replace(Kr,"'")}function Ta(o,i){x(2,arguments);var t=U(o),r=U(i);return t.getTime()<r.getTime()}function Da(o,i){var t;x(1,arguments);var r=_((t=i==null?void 0:i.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof o=="string"||Object.prototype.toString.call(o)==="[object String]"))return new Date(NaN);var e=ia(o),n;if(e.date){var a=oa(e.date,r);n=ua(a.restDateString,a.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);var u=n.getTime(),l=0,d;if(e.time&&(l=sa(e.time),isNaN(l)))return new Date(NaN);if(e.timezone){if(d=la(e.timezone),isNaN(d))return new Date(NaN)}else{var f=new Date(u+l),v=new Date(0);return v.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),v.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),v}return new Date(u+l+d)}var fe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ra=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,aa=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,na=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ia(o){var i={},t=o.split(fe.dateTimeDelimiter),r;if(t.length>2)return i;if(/:/.test(t[0])?r=t[0]:(i.date=t[0],r=t[1],fe.timeZoneDelimiter.test(i.date)&&(i.date=o.split(fe.timeZoneDelimiter)[0],r=o.substr(i.date.length,o.length))),r){var e=fe.timezone.exec(r);e?(i.time=r.replace(e[1],""),i.timezone=e[1]):i.time=r}return i}function oa(o,i){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+i)+"})|(\\d{2}|[+-]\\d{"+(2+i)+"})$)"),r=o.match(t);if(!r)return{year:NaN,restDateString:""};var e=r[1]?parseInt(r[1]):null,n=r[2]?parseInt(r[2]):null;return{year:n===null?e:n*100,restDateString:o.slice((r[1]||r[2]).length)}}function ua(o,i){if(i===null)return new Date(NaN);var t=o.match(ra);if(!t)return new Date(NaN);var r=!!t[4],e=se(t[1]),n=se(t[2])-1,a=se(t[3]),u=se(t[4]),l=se(t[5])-1;if(r)return ha(i,u,l)?ca(i,u,l):new Date(NaN);var d=new Date(0);return!fa(i,n,a)||!va(i,e)?new Date(NaN):(d.setUTCFullYear(i,n,Math.max(e,a)),d)}function se(o){return o?parseInt(o):1}function sa(o){var i=o.match(aa);if(!i)return NaN;var t=ye(i[1]),r=ye(i[2]),e=ye(i[3]);return ma(t,r,e)?t*xe+r*Ce+e*1e3:NaN}function ye(o){return o&&parseFloat(o.replace(",","."))||0}function la(o){if(o==="Z")return 0;var i=o.match(na);if(!i)return 0;var t=i[1]==="+"?-1:1,r=parseInt(i[2]),e=i[3]&&parseInt(i[3])||0;return wa(r,e)?t*(r*xe+e*Ce):NaN}function ca(o,i,t){var r=new Date(0);r.setUTCFullYear(o,0,4);var e=r.getUTCDay()||7,n=(i-1)*7+t+1-e;return r.setUTCDate(r.getUTCDate()+n),r}var da=[31,null,31,30,31,30,31,31,30,31,30,31];function Ze(o){return o%400===0||o%4===0&&o%100!==0}function fa(o,i,t){return i>=0&&i<=11&&t>=1&&t<=(da[i]||(Ze(o)?29:28))}function va(o,i){return i>=1&&i<=(Ze(o)?366:365)}function ha(o,i,t){return i>=1&&i<=53&&t>=0&&t<=6}function ma(o,i,t){return o===24?i===0&&t===0:t>=0&&t<60&&i>=0&&i<60&&o>=0&&o<25}function wa(o,i){return i>=0&&i<=59}export{ya as a,Da as b,pa as f,Ta as i,ba as p};
1
+ import{c as Te,d as g,e as p,f as m,g as w,h as s,i as c,j as _e}from"./vendor-1c5ad091.js";function x(o,i){if(i.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+i.length+" present")}function et(o){return x(1,arguments),o instanceof Date||Te(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function U(o){x(1,arguments);var i=Object.prototype.toString.call(o);return o instanceof Date||Te(o)==="object"&&i==="[object Date]"?new Date(o.getTime()):typeof o=="number"||i==="[object Number]"?new Date(o):((typeof o=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function tt(o){if(x(1,arguments),!et(o)&&typeof o!="number")return!1;var i=U(o);return!isNaN(Number(i))}function _(o){if(o===null||o===!0||o===!1)return NaN;var i=Number(o);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function rt(o,i){x(2,arguments);var t=U(o).getTime(),r=_(i);return new Date(t+r)}function $e(o,i){x(2,arguments);var t=_(i);return rt(o,-t)}var at=864e5;function nt(o){x(1,arguments);var i=U(o),t=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var r=i.getTime(),e=t-r;return Math.floor(e/at)+1}function ee(o){x(1,arguments);var i=1,t=U(o),r=t.getUTCDay(),e=(r<i?7:0)+r-i;return t.setUTCDate(t.getUTCDate()-e),t.setUTCHours(0,0,0,0),t}function Le(o){x(1,arguments);var i=U(o),t=i.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var e=ee(r),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=ee(n);return i.getTime()>=e.getTime()?t+1:i.getTime()>=a.getTime()?t:t-1}function it(o){x(1,arguments);var i=Le(o),t=new Date(0);t.setUTCFullYear(i,0,4),t.setUTCHours(0,0,0,0);var r=ee(t);return r}var ot=6048e5;function Ae(o){x(1,arguments);var i=U(o),t=ee(i).getTime()-it(i).getTime();return Math.round(t/ot)+1}var ut={};function te(){return ut}function K(o,i){var t,r,e,n,a,u,l,d;x(1,arguments);var f=te(),v=_((t=(r=(e=(n=i==null?void 0:i.weekStartsOn)!==null&&n!==void 0?n:i==null||(a=i.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var D=U(o),b=D.getUTCDay(),P=(b<v?7:0)+b-v;return D.setUTCDate(D.getUTCDate()-P),D.setUTCHours(0,0,0,0),D}function De(o,i){var t,r,e,n,a,u,l,d;x(1,arguments);var f=U(o),v=f.getUTCFullYear(),D=te(),b=_((t=(r=(e=(n=i==null?void 0:i.firstWeekContainsDate)!==null&&n!==void 0?n:i==null||(a=i.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:D.firstWeekContainsDate)!==null&&r!==void 0?r:(l=D.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=new Date(0);P.setUTCFullYear(v+1,0,b),P.setUTCHours(0,0,0,0);var H=K(P,i),W=new Date(0);W.setUTCFullYear(v,0,b),W.setUTCHours(0,0,0,0);var q=K(W,i);return f.getTime()>=H.getTime()?v+1:f.getTime()>=q.getTime()?v:v-1}function st(o,i){var t,r,e,n,a,u,l,d;x(1,arguments);var f=te(),v=_((t=(r=(e=(n=i==null?void 0:i.firstWeekContainsDate)!==null&&n!==void 0?n:i==null||(a=i.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),D=De(o,i),b=new Date(0);b.setUTCFullYear(D,0,v),b.setUTCHours(0,0,0,0);var P=K(b,i);return P}var lt=6048e5;function Re(o,i){x(1,arguments);var t=U(o),r=K(t,i).getTime()-st(t,i).getTime();return Math.round(r/lt)+1}function h(o,i){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<i;)r="0"+r;return t+r}var ct={y:function(i,t){var r=i.getUTCFullYear(),e=r>0?r:1-r;return h(t==="yy"?e%100:e,t.length)},M:function(i,t){var r=i.getUTCMonth();return t==="M"?String(r+1):h(r+1,2)},d:function(i,t){return h(i.getUTCDate(),t.length)},a:function(i,t){var r=i.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(i,t){return h(i.getUTCHours()%12||12,t.length)},H:function(i,t){return h(i.getUTCHours(),t.length)},m:function(i,t){return h(i.getUTCMinutes(),t.length)},s:function(i,t){return h(i.getUTCSeconds(),t.length)},S:function(i,t){var r=t.length,e=i.getUTCMilliseconds(),n=Math.floor(e*Math.pow(10,r-3));return h(n,t.length)}};const z=ct;var J={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dt={G:function(i,t,r){var e=i.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})}},y:function(i,t,r){if(t==="yo"){var e=i.getUTCFullYear(),n=e>0?e:1-e;return r.ordinalNumber(n,{unit:"year"})}return z.y(i,t)},Y:function(i,t,r,e){var n=De(i,e),a=n>0?n:1-n;if(t==="YY"){var u=a%100;return h(u,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):h(a,t.length)},R:function(i,t){var r=Le(i);return h(r,t.length)},u:function(i,t){var r=i.getUTCFullYear();return h(r,t.length)},Q:function(i,t,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(t){case"Q":return String(e);case"QQ":return h(e,2);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})}},q:function(i,t,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(t){case"q":return String(e);case"qq":return h(e,2);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})}},M:function(i,t,r){var e=i.getUTCMonth();switch(t){case"M":case"MM":return z.M(i,t);case"Mo":return r.ordinalNumber(e+1,{unit:"month"});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})}},L:function(i,t,r){var e=i.getUTCMonth();switch(t){case"L":return String(e+1);case"LL":return h(e+1,2);case"Lo":return r.ordinalNumber(e+1,{unit:"month"});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})}},w:function(i,t,r,e){var n=Re(i,e);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):h(n,t.length)},I:function(i,t,r){var e=Ae(i);return t==="Io"?r.ordinalNumber(e,{unit:"week"}):h(e,t.length)},d:function(i,t,r){return t==="do"?r.ordinalNumber(i.getUTCDate(),{unit:"date"}):z.d(i,t)},D:function(i,t,r){var e=nt(i);return t==="Do"?r.ordinalNumber(e,{unit:"dayOfYear"}):h(e,t.length)},E:function(i,t,r){var e=i.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})}},e:function(i,t,r,e){var n=i.getUTCDay(),a=(n-e.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return h(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(i,t,r,e){var n=i.getUTCDay(),a=(n-e.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return h(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(i,t,r){var e=i.getUTCDay(),n=e===0?7:e;switch(t){case"i":return String(n);case"ii":return h(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(e,{width:"short",context:"formatting"});case"iiii":default:return r.day(e,{width:"wide",context:"formatting"})}},a:function(i,t,r){var e=i.getUTCHours(),n=e/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(i,t,r){var e=i.getUTCHours(),n;switch(e===12?n=J.noon:e===0?n=J.midnight:n=e/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(i,t,r){var e=i.getUTCHours(),n;switch(e>=17?n=J.evening:e>=12?n=J.afternoon:e>=4?n=J.morning:n=J.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(i,t,r){if(t==="ho"){var e=i.getUTCHours()%12;return e===0&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return z.h(i,t)},H:function(i,t,r){return t==="Ho"?r.ordinalNumber(i.getUTCHours(),{unit:"hour"}):z.H(i,t)},K:function(i,t,r){var e=i.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(e,{unit:"hour"}):h(e,t.length)},k:function(i,t,r){var e=i.getUTCHours();return e===0&&(e=24),t==="ko"?r.ordinalNumber(e,{unit:"hour"}):h(e,t.length)},m:function(i,t,r){return t==="mo"?r.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):z.m(i,t)},s:function(i,t,r){return t==="so"?r.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):z.s(i,t)},S:function(i,t){return z.S(i,t)},X:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return qe(a);case"XXXX":case"XX":return Z(a);case"XXXXX":case"XXX":default:return Z(a,":")}},x:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();switch(t){case"x":return qe(a);case"xxxx":case"xx":return Z(a);case"xxxxx":case"xxx":default:return Z(a,":")}},O:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+He(a,":");case"OOOO":default:return"GMT"+Z(a,":")}},z:function(i,t,r,e){var n=e._originalDate||i,a=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+He(a,":");case"zzzz":default:return"GMT"+Z(a,":")}},t:function(i,t,r,e){var n=e._originalDate||i,a=Math.floor(n.getTime()/1e3);return h(a,t.length)},T:function(i,t,r,e){var n=e._originalDate||i,a=n.getTime();return h(a,t.length)}};function He(o,i){var t=o>0?"-":"+",r=Math.abs(o),e=Math.floor(r/60),n=r%60;if(n===0)return t+String(e);var a=i||"";return t+String(e)+a+h(n,2)}function qe(o,i){if(o%60===0){var t=o>0?"-":"+";return t+h(Math.abs(o)/60,2)}return Z(o,i)}function Z(o,i){var t=i||"",r=o>0?"-":"+",e=Math.abs(o),n=h(Math.floor(e/60),2),a=h(e%60,2);return r+n+t+a}const ft=dt;var Ie=function(i,t){switch(i){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Fe=function(i,t){switch(i){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},vt=function(i,t){var r=i.match(/(P+)(p+)?/)||[],e=r[1],n=r[2];if(!n)return Ie(i,t);var a;switch(e){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ie(e,t)).replace("{{time}}",Fe(n,t))},ht={p:Fe,P:vt};const be=ht;function Qe(o){var i=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return i.setUTCFullYear(o.getFullYear()),o.getTime()-i.getTime()}var mt=["D","DD"],wt=["YY","YYYY"];function Se(o){return mt.indexOf(o)!==-1}function Xe(o){return wt.indexOf(o)!==-1}function ve(o,i,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pt=function(i,t,r){var e,n=gt[i];return typeof n=="string"?e=n:t===1?e=n.one:e=n.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+e:e+" ago":e};const yt=pt;function pe(o){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=i.width?String(i.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var bt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Tt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ct={date:pe({formats:bt,defaultWidth:"full"}),time:pe({formats:Tt,defaultWidth:"full"}),dateTime:pe({formats:Dt,defaultWidth:"full"})};const xt=Ct;var Pt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mt=function(i,t,r,e){return Pt[i]};const Ot=Mt;function oe(o){return function(i,t){var r=t!=null&&t.context?String(t.context):"standalone",e;if(r==="formatting"&&o.formattingValues){var n=o.defaultFormattingWidth||o.defaultWidth,a=t!=null&&t.width?String(t.width):n;e=o.formattingValues[a]||o.formattingValues[n]}else{var u=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;e=o.values[l]||o.values[u]}var d=o.argumentCallback?o.argumentCallback(i):i;return e[d]}}var kt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ut={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Nt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Et={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_t=function(i,t){var r=Number(i),e=r%100;if(e>20||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ht={ordinalNumber:_t,era:oe({values:kt,defaultWidth:"wide"}),quarter:oe({values:Ut,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:oe({values:Yt,defaultWidth:"wide"}),day:oe({values:Nt,defaultWidth:"wide"}),dayPeriod:oe({values:Et,defaultWidth:"wide",formattingValues:Wt,defaultFormattingWidth:"wide"})};const qt=Ht;function ue(o){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,e=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],n=i.match(e);if(!n)return null;var a=n[0],u=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(u)?$t(u,function(v){return v.test(a)}):It(u,function(v){return v.test(a)}),d;d=o.valueCallback?o.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var f=i.slice(a.length);return{value:d,rest:f}}}function It(o,i){for(var t in o)if(o.hasOwnProperty(t)&&i(o[t]))return t}function $t(o,i){for(var t=0;t<o.length;t++)if(i(o[t]))return t}function Lt(o){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.match(o.matchPattern);if(!r)return null;var e=r[0],n=i.match(o.parsePattern);if(!n)return null;var a=o.valueCallback?o.valueCallback(n[0]):n[0];a=t.valueCallback?t.valueCallback(a):a;var u=i.slice(e.length);return{value:a,rest:u}}}var At=/^(\d+)(th|st|nd|rd)?/i,Rt=/\d+/i,Ft={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Qt={any:[/^b/i,/^(a|c)/i]},St={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xt={any:[/1/i,/2/i,/3/i,/4/i]},Gt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Vt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kt={ordinalNumber:Lt({matchPattern:At,parsePattern:Rt,valueCallback:function(i){return parseInt(i,10)}}),era:ue({matchPatterns:Ft,defaultMatchWidth:"wide",parsePatterns:Qt,defaultParseWidth:"any"}),quarter:ue({matchPatterns:St,defaultMatchWidth:"wide",parsePatterns:Xt,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:ue({matchPatterns:Gt,defaultMatchWidth:"wide",parsePatterns:Bt,defaultParseWidth:"any"}),day:ue({matchPatterns:zt,defaultMatchWidth:"wide",parsePatterns:jt,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:Vt,defaultMatchWidth:"any",parsePatterns:Zt,defaultParseWidth:"any"})};const Jt=Kt;var er={code:"en-US",formatDistance:yt,formatLong:xt,formatRelative:Ot,localize:qt,match:Jt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ge=er;var tr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ar=/^'([^]*?)'?$/,nr=/''/g,ir=/[a-zA-Z]/;function pa(o,i,t){var r,e,n,a,u,l,d,f,v,D,b,P,H,W,q,A,Q,S;x(2,arguments);var j=String(i),E=te(),$=(r=(e=t==null?void 0:t.locale)!==null&&e!==void 0?e:E.locale)!==null&&r!==void 0?r:Ge,X=_((n=(a=(u=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(d=t.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:E.firstWeekContainsDate)!==null&&a!==void 0?a:(v=E.locale)===null||v===void 0||(D=v.options)===null||D===void 0?void 0:D.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(X>=1&&X<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var G=_((b=(P=(H=(W=t==null?void 0:t.weekStartsOn)!==null&&W!==void 0?W:t==null||(q=t.locale)===null||q===void 0||(A=q.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&H!==void 0?H:E.weekStartsOn)!==null&&P!==void 0?P:(Q=E.locale)===null||Q===void 0||(S=Q.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&b!==void 0?b:0);if(!(G>=0&&G<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var B=U(o);if(!tt(B))throw new RangeError("Invalid time value");var re=Qe(B),ae=$e(B,re),ne={firstWeekContainsDate:X,weekStartsOn:G,locale:$,_originalDate:B},me=j.match(rr).map(function(N){var I=N[0];if(I==="p"||I==="P"){var V=be[I];return V(N,$.formatLong)}return N}).join("").match(tr).map(function(N){if(N==="''")return"'";var I=N[0];if(I==="'")return or(N);var V=ft[I];if(V)return!(t!=null&&t.useAdditionalWeekYearTokens)&&Xe(N)&&ve(N,i,String(o)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Se(N)&&ve(N,i,String(o)),V(ae,N,$.localize,ne);if(I.match(ir))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return N}).join("");return me}function or(o){var i=o.match(ar);return i?i[1].replace(nr,"'"):o}function ya(o,i){var t,r;x(1,arguments);var e=U(o);if(isNaN(e.getTime()))throw new RangeError("Invalid time value");var n=String((t=i==null?void 0:i.format)!==null&&t!==void 0?t:"extended"),a=String((r=i==null?void 0:i.representation)!==null&&r!==void 0?r:"complete");if(n!=="extended"&&n!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var u="",l="",d=n==="extended"?"-":"",f=n==="extended"?":":"";if(a!=="time"){var v=h(e.getDate(),2),D=h(e.getMonth()+1,2),b=h(e.getFullYear(),4);u="".concat(b).concat(d).concat(D).concat(d).concat(v)}if(a!=="date"){var P=e.getTimezoneOffset();if(P!==0){var H=Math.abs(P),W=h(Math.floor(H/60),2),q=h(H%60,2),A=P<0?"+":"-";l="".concat(A).concat(W,":").concat(q)}else l="Z";var Q=h(e.getHours(),2),S=h(e.getMinutes(),2),j=h(e.getSeconds(),2),E=u===""?"":"T",$=[Q,S,j].join(f);u="".concat(u).concat(E).concat($).concat(l)}return u}function ur(o,i){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(o[t]=i[t]);return o}var sr=10,Be=function(){function o(){w(this,o),s(this,"priority",void 0),s(this,"subPriority",0)}return m(o,[{key:"validate",value:function(t,r){return!0}}]),o}(),lr=function(o){g(t,o);var i=p(t);function t(r,e,n,a,u){var l;return w(this,t),l=i.call(this),l.value=r,l.validateValue=e,l.setValue=n,l.priority=a,u&&(l.subPriority=u),l}return m(t,[{key:"validate",value:function(e,n){return this.validateValue(e,this.value,n)}},{key:"set",value:function(e,n,a){return this.setValue(e,n,this.value,a)}}]),t}(Be),cr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",sr),s(c(r),"subPriority",-1),r}return m(t,[{key:"set",value:function(e,n){if(n.timestampIsSet)return e;var a=new Date(0);return a.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),a.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),a}}]),t}(Be),y=function(){function o(){w(this,o),s(this,"incompatibleTokens",void 0),s(this,"priority",void 0),s(this,"subPriority",void 0)}return m(o,[{key:"run",value:function(t,r,e,n){var a=this.parse(t,r,e,n);return a?{setter:new lr(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(t,r,e){return!0}}]),o}(),dr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",140),s(c(r),"incompatibleTokens",["R","u","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}},{key:"set",value:function(e,n,a){return n.era=a,e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),Ce=6e4,xe=36e5,fr=1e3,O={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},R={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function k(o,i){return o&&{value:i(o.value),rest:o.rest}}function C(o,i){var t=i.match(o);return t?{value:parseInt(t[0],10),rest:i.slice(t[0].length)}:null}function F(o,i){var t=i.match(o);if(!t)return null;if(t[0]==="Z")return{value:0,rest:i.slice(1)};var r=t[1]==="+"?1:-1,e=t[2]?parseInt(t[2],10):0,n=t[3]?parseInt(t[3],10):0,a=t[5]?parseInt(t[5],10):0;return{value:r*(e*xe+n*Ce+a*fr),rest:i.slice(t[0].length)}}function ze(o){return C(O.anyDigitsSigned,o)}function M(o,i){switch(o){case 1:return C(O.singleDigit,i);case 2:return C(O.twoDigits,i);case 3:return C(O.threeDigits,i);case 4:return C(O.fourDigits,i);default:return C(new RegExp("^\\d{1,"+o+"}"),i)}}function he(o,i){switch(o){case 1:return C(O.singleDigitSigned,i);case 2:return C(O.twoDigitsSigned,i);case 3:return C(O.threeDigitsSigned,i);case 4:return C(O.fourDigitsSigned,i);default:return C(new RegExp("^-?\\d{1,"+o+"}"),i)}}function Pe(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function je(o,i){var t=i>0,r=t?i:1-i,e;if(r<=50)e=o||100;else{var n=r+50,a=Math.floor(n/100)*100,u=o>=n%100;e=o+a-(u?100:0)}return t?e:1-e}function Ve(o){return o%400===0||o%4===0&&o%100!==0}var vr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return{year:d,isTwoDigitYear:n==="yy"}};switch(n){case"y":return k(M(4,e),u);case"yo":return k(a.ordinalNumber(e,{unit:"year"}),u);default:return k(M(n.length,e),u)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,a){var u=e.getUTCFullYear();if(a.isTwoDigitYear){var l=je(a.year,u);return e.setUTCFullYear(l,0,1),e.setUTCHours(0,0,0,0),e}var d=!("era"in n)||n.era===1?a.year:1-a.year;return e.setUTCFullYear(d,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),hr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return{year:d,isTwoDigitYear:n==="YY"}};switch(n){case"Y":return k(M(4,e),u);case"Yo":return k(a.ordinalNumber(e,{unit:"year"}),u);default:return k(M(n.length,e),u)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,a,u){var l=De(e,u);if(a.isTwoDigitYear){var d=je(a.year,l);return e.setUTCFullYear(d,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),K(e,u)}var f=!("era"in n)||n.era===1?a.year:1-a.year;return e.setUTCFullYear(f,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),K(e,u)}}]),t}(y),mr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n){return he(n==="R"?4:n.length,e)}},{key:"set",value:function(e,n,a){var u=new Date(0);return u.setUTCFullYear(a,0,4),u.setUTCHours(0,0,0,0),ee(u)}}]),t}(y),wr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n){return he(n==="u"?4:n.length,e)}},{key:"set",value:function(e,n,a){return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),gr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",120),s(c(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"Q":case"QQ":return M(n.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,a){return e.setUTCMonth((a-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),pr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",120),s(c(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"q":case"qq":return M(n.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,a){return e.setUTCMonth((a-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),yr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),s(c(r),"priority",110),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return d-1};switch(n){case"M":return k(C(O.month,e),u);case"MM":return k(M(2,e),u);case"Mo":return k(a.ordinalNumber(e,{unit:"month"}),u);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,a){return e.setUTCMonth(a,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),br=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",110),s(c(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return d-1};switch(n){case"L":return k(C(O.month,e),u);case"LL":return k(M(2,e),u);case"Lo":return k(a.ordinalNumber(e,{unit:"month"}),u);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,a){return e.setUTCMonth(a,1),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Tr(o,i,t){x(2,arguments);var r=U(o),e=_(i),n=Re(r,t)-e;return r.setUTCDate(r.getUTCDate()-n*7),r}var Dr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",100),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"w":return C(O.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,a,u){return K(Tr(e,a,u),u)}}]),t}(y);function Cr(o,i){x(2,arguments);var t=U(o),r=_(i),e=Ae(t)-r;return t.setUTCDate(t.getUTCDate()-e*7),t}var xr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",100),s(c(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"I":return C(O.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,a){return ee(Cr(e,a))}}]),t}(y),Pr=[31,28,31,30,31,30,31,31,30,31,30,31],Mr=[31,29,31,30,31,30,31,31,30,31,30,31],Or=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"subPriority",1),s(c(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"d":return C(O.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){var a=e.getUTCFullYear(),u=Ve(a),l=e.getUTCMonth();return u?n>=1&&n<=Mr[l]:n>=1&&n<=Pr[l]}},{key:"set",value:function(e,n,a){return e.setUTCDate(a),e.setUTCHours(0,0,0,0),e}}]),t}(y),kr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"subpriority",1),s(c(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"D":case"DD":return C(O.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){var a=e.getUTCFullYear(),u=Ve(a);return u?n>=1&&n<=366:n>=1&&n<=365}},{key:"set",value:function(e,n,a){return e.setUTCMonth(0,a),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Me(o,i,t){var r,e,n,a,u,l,d,f;x(2,arguments);var v=te(),D=_((r=(e=(n=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(u=t.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:v.weekStartsOn)!==null&&e!==void 0?e:(d=v.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=U(o),P=_(i),H=b.getUTCDay(),W=P%7,q=(W+7)%7,A=(q<D?7:0)+P-H;return b.setUTCDate(b.getUTCDate()+A),b}var Ur=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,a,u){return e=Me(e,a,u),e.setUTCHours(0,0,0,0),e}}]),t}(y),Yr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a,u){var l=function(f){var v=Math.floor((f-1)/7)*7;return(f+u.weekStartsOn+6)%7+v};switch(n){case"e":case"ee":return k(M(n.length,e),l);case"eo":return k(a.ordinalNumber(e,{unit:"day"}),l);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,a,u){return e=Me(e,a,u),e.setUTCHours(0,0,0,0),e}}]),t}(y),Nr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a,u){var l=function(f){var v=Math.floor((f-1)/7)*7;return(f+u.weekStartsOn+6)%7+v};switch(n){case"c":case"cc":return k(M(n.length,e),l);case"co":return k(a.ordinalNumber(e,{unit:"day"}),l);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,a,u){return e=Me(e,a,u),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Er(o,i){x(2,arguments);var t=_(i);t%7===0&&(t=t-7);var r=1,e=U(o),n=e.getUTCDay(),a=t%7,u=(a+7)%7,l=(u<r?7:0)+t-n;return e.setUTCDate(e.getUTCDate()+l),e}var Wr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){var u=function(d){return d===0?7:d};switch(n){case"i":case"ii":return M(n.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return k(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),u);case"iiiii":return k(a.day(e,{width:"narrow",context:"formatting"}),u);case"iiiiii":return k(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),u);case"iiii":default:return k(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),u)}}},{key:"validate",value:function(e,n){return n>=1&&n<=7}},{key:"set",value:function(e,n,a){return e=Er(e,a),e.setUTCHours(0,0,0,0),e}}]),t}(y),_r=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,a){return e.setUTCHours(Pe(a),0,0,0),e}}]),t}(y),Hr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,a){return e.setUTCHours(Pe(a),0,0,0),e}}]),t}(y),qr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["a","b","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,a){return e.setUTCHours(Pe(a),0,0,0),e}}]),t}(y),Ir=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["H","K","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"h":return C(O.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=12}},{key:"set",value:function(e,n,a){var u=e.getUTCHours()>=12;return u&&a<12?e.setUTCHours(a+12,0,0,0):!u&&a===12?e.setUTCHours(0,0,0,0):e.setUTCHours(a,0,0,0),e}}]),t}(y),$r=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"H":return C(O.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=23}},{key:"set",value:function(e,n,a){return e.setUTCHours(a,0,0,0),e}}]),t}(y),Lr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["h","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"K":return C(O.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,a){var u=e.getUTCHours()>=12;return u&&a<12?e.setUTCHours(a+12,0,0,0):e.setUTCHours(a,0,0,0),e}}]),t}(y),Ar=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"k":return C(O.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=24}},{key:"set",value:function(e,n,a){var u=a<=24?a%24:a;return e.setUTCHours(u,0,0,0),e}}]),t}(y),Rr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",60),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"m":return C(O.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,a){return e.setUTCMinutes(a,0,0),e}}]),t}(y),Fr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",50),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,n,a){switch(n){case"s":return C(O.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return M(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,a){return e.setUTCSeconds(a,0),e}}]),t}(y),Qr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",30),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,n){var a=function(l){return Math.floor(l*Math.pow(10,-n.length+3))};return k(M(n.length,e),a)}},{key:"set",value:function(e,n,a){return e.setUTCMilliseconds(a),e}}]),t}(y),Sr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",10),s(c(r),"incompatibleTokens",["t","T","x"]),r}return m(t,[{key:"parse",value:function(e,n){switch(n){case"X":return F(R.basicOptionalMinutes,e);case"XX":return F(R.basic,e);case"XXXX":return F(R.basicOptionalSeconds,e);case"XXXXX":return F(R.extendedOptionalSeconds,e);case"XXX":default:return F(R.extended,e)}}},{key:"set",value:function(e,n,a){return n.timestampIsSet?e:new Date(e.getTime()-a)}}]),t}(y),Xr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",10),s(c(r),"incompatibleTokens",["t","T","X"]),r}return m(t,[{key:"parse",value:function(e,n){switch(n){case"x":return F(R.basicOptionalMinutes,e);case"xx":return F(R.basic,e);case"xxxx":return F(R.basicOptionalSeconds,e);case"xxxxx":return F(R.extendedOptionalSeconds,e);case"xxx":default:return F(R.extended,e)}}},{key:"set",value:function(e,n,a){return n.timestampIsSet?e:new Date(e.getTime()-a)}}]),t}(y),Gr=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",40),s(c(r),"incompatibleTokens","*"),r}return m(t,[{key:"parse",value:function(e){return ze(e)}},{key:"set",value:function(e,n,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),t}(y),Br=function(o){g(t,o);var i=p(t);function t(){var r;w(this,t);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return r=i.call.apply(i,[this].concat(n)),s(c(r),"priority",20),s(c(r),"incompatibleTokens","*"),r}return m(t,[{key:"parse",value:function(e){return ze(e)}},{key:"set",value:function(e,n,a){return[new Date(a),{timestampIsSet:!0}]}}]),t}(y),zr={G:new dr,y:new vr,Y:new hr,R:new mr,u:new wr,Q:new gr,q:new pr,M:new yr,L:new br,w:new Dr,I:new xr,d:new Or,D:new kr,E:new Ur,e:new Yr,c:new Nr,i:new Wr,a:new _r,b:new Hr,B:new qr,h:new Ir,H:new $r,K:new Lr,k:new Ar,m:new Rr,s:new Fr,S:new Qr,X:new Sr,x:new Xr,t:new Gr,T:new Br},jr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zr=/^'([^]*?)'?$/,Kr=/''/g,Jr=/\S/,ea=/[a-zA-Z]/;function ba(o,i,t,r){var e,n,a,u,l,d,f,v,D,b,P,H,W,q,A,Q,S,j;x(3,arguments);var E=String(o),$=String(i),X=te(),G=(e=(n=r==null?void 0:r.locale)!==null&&n!==void 0?n:X.locale)!==null&&e!==void 0?e:Ge;if(!G.match)throw new RangeError("locale must contain match property");var B=_((a=(u=(l=(d=r==null?void 0:r.firstWeekContainsDate)!==null&&d!==void 0?d:r==null||(f=r.locale)===null||f===void 0||(v=f.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&l!==void 0?l:X.firstWeekContainsDate)!==null&&u!==void 0?u:(D=X.locale)===null||D===void 0||(b=D.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=_((P=(H=(W=(q=r==null?void 0:r.weekStartsOn)!==null&&q!==void 0?q:r==null||(A=r.locale)===null||A===void 0||(Q=A.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&W!==void 0?W:X.weekStartsOn)!==null&&H!==void 0?H:(S=X.locale)===null||S===void 0||(j=S.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&P!==void 0?P:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if($==="")return E===""?U(t):new Date(NaN);var ae={firstWeekContainsDate:B,weekStartsOn:re,locale:G},ne=[new cr],me=$.match(Vr).map(function(Y){var T=Y[0];if(T in be){var L=be[T];return L(Y,G.formatLong)}return Y}).join("").match(jr),N=[],I=_e(me),V;try{var Ke=function(){var T=V.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Xe(T)&&ve(T,$,o),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Se(T)&&ve(T,$,o);var L=T[0],de=zr[L];if(de){var Ne=de.incompatibleTokens;if(Array.isArray(Ne)){var Ee=N.find(function(We){return Ne.includes(We.token)||We.token===L});if(Ee)throw new RangeError("The format string mustn't contain `".concat(Ee.fullToken,"` and `").concat(T,"` at the same time"))}else if(de.incompatibleTokens==="*"&&N.length>0)throw new RangeError("The format string mustn't contain `".concat(T,"` and any other token at the same time"));N.push({token:L,fullToken:T});var ge=de.run(E,T,G.match,ae);if(!ge)return{v:new Date(NaN)};ne.push(ge.setter),E=ge.rest}else{if(L.match(ea))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(T==="''"?T="'":L==="'"&&(T=ta(T)),E.indexOf(T)===0)E=E.slice(T.length);else return{v:new Date(NaN)}}};for(I.s();!(V=I.n()).done;){var Oe=Ke();if(Te(Oe)==="object")return Oe.v}}catch(Y){I.e(Y)}finally{I.f()}if(E.length>0&&Jr.test(E))return new Date(NaN);var Je=ne.map(function(Y){return Y.priority}).sort(function(Y,T){return T-Y}).filter(function(Y,T,L){return L.indexOf(Y)===T}).map(function(Y){return ne.filter(function(T){return T.priority===Y}).sort(function(T,L){return L.subPriority-T.subPriority})}).map(function(Y){return Y[0]}),we=U(t);if(isNaN(we.getTime()))return new Date(NaN);var ie=$e(we,Qe(we)),ke={},le=_e(Je),Ue;try{for(le.s();!(Ue=le.n()).done;){var Ye=Ue.value;if(!Ye.validate(ie,ae))return new Date(NaN);var ce=Ye.set(ie,ke,ae);Array.isArray(ce)?(ie=ce[0],ur(ke,ce[1])):ie=ce}}catch(Y){le.e(Y)}finally{le.f()}return ie}function ta(o){return o.match(Zr)[1].replace(Kr,"'")}function Ta(o,i){x(2,arguments);var t=U(o),r=U(i);return t.getTime()<r.getTime()}function Da(o,i){var t;x(1,arguments);var r=_((t=i==null?void 0:i.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof o=="string"||Object.prototype.toString.call(o)==="[object String]"))return new Date(NaN);var e=ia(o),n;if(e.date){var a=oa(e.date,r);n=ua(a.restDateString,a.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);var u=n.getTime(),l=0,d;if(e.time&&(l=sa(e.time),isNaN(l)))return new Date(NaN);if(e.timezone){if(d=la(e.timezone),isNaN(d))return new Date(NaN)}else{var f=new Date(u+l),v=new Date(0);return v.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),v.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),v}return new Date(u+l+d)}var fe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ra=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,aa=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,na=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ia(o){var i={},t=o.split(fe.dateTimeDelimiter),r;if(t.length>2)return i;if(/:/.test(t[0])?r=t[0]:(i.date=t[0],r=t[1],fe.timeZoneDelimiter.test(i.date)&&(i.date=o.split(fe.timeZoneDelimiter)[0],r=o.substr(i.date.length,o.length))),r){var e=fe.timezone.exec(r);e?(i.time=r.replace(e[1],""),i.timezone=e[1]):i.time=r}return i}function oa(o,i){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+i)+"})|(\\d{2}|[+-]\\d{"+(2+i)+"})$)"),r=o.match(t);if(!r)return{year:NaN,restDateString:""};var e=r[1]?parseInt(r[1]):null,n=r[2]?parseInt(r[2]):null;return{year:n===null?e:n*100,restDateString:o.slice((r[1]||r[2]).length)}}function ua(o,i){if(i===null)return new Date(NaN);var t=o.match(ra);if(!t)return new Date(NaN);var r=!!t[4],e=se(t[1]),n=se(t[2])-1,a=se(t[3]),u=se(t[4]),l=se(t[5])-1;if(r)return ha(i,u,l)?ca(i,u,l):new Date(NaN);var d=new Date(0);return!fa(i,n,a)||!va(i,e)?new Date(NaN):(d.setUTCFullYear(i,n,Math.max(e,a)),d)}function se(o){return o?parseInt(o):1}function sa(o){var i=o.match(aa);if(!i)return NaN;var t=ye(i[1]),r=ye(i[2]),e=ye(i[3]);return ma(t,r,e)?t*xe+r*Ce+e*1e3:NaN}function ye(o){return o&&parseFloat(o.replace(",","."))||0}function la(o){if(o==="Z")return 0;var i=o.match(na);if(!i)return 0;var t=i[1]==="+"?-1:1,r=parseInt(i[2]),e=i[3]&&parseInt(i[3])||0;return wa(r,e)?t*(r*xe+e*Ce):NaN}function ca(o,i,t){var r=new Date(0);r.setUTCFullYear(o,0,4);var e=r.getUTCDay()||7,n=(i-1)*7+t+1-e;return r.setUTCDate(r.getUTCDate()+n),r}var da=[31,null,31,30,31,30,31,31,30,31,30,31];function Ze(o){return o%400===0||o%4===0&&o%100!==0}function fa(o,i,t){return i>=0&&i<=11&&t>=1&&t<=(da[i]||(Ze(o)?29:28))}function va(o,i){return i>=1&&i<=(Ze(o)?366:365)}function ha(o,i,t){return i>=1&&i<=53&&t>=0&&t<=6}function ma(o,i,t){return o===24?i===0&&t===0:t>=0&&t<60&&i>=0&&i<60&&o>=0&&o<25}function wa(o,i){return i>=0&&i<=59}export{ya as a,Da as b,pa as f,Ta as i,ba as p};