@vuepic/vue-datepicker
Version:
Datepicker component for Vue 3
1 lines • 236 kB
JavaScript
var VueDatePicker=function(a){"use strict";function bt(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),a.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function rl(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),a.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function qa(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Ka(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Ga(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),a.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function Qa(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Xa(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function Z(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function z(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function wt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wt=function(n){return typeof n}:wt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wt(e)}function J(e){z(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||wt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[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 He(e,t){z(2,arguments);var n=J(e),r=Z(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Ie(e,t){z(2,arguments);var n=J(e),r=Z(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var l=i.getDate();return o>=l?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function _t(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_t=function(n){return typeof n}:_t=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_t(e)}function Za(e,t){if(z(2,arguments),!t||_t(t)!=="object")return new Date(NaN);var n=t.years?Z(t.years):0,r=t.months?Z(t.months):0,o=t.weeks?Z(t.weeks):0,i=t.days?Z(t.days):0,l=t.hours?Z(t.hours):0,f=t.minutes?Z(t.minutes):0,h=t.seconds?Z(t.seconds):0,p=J(e),k=r||n?Ie(p,r+n*12):p,w=i||o?He(k,i+o*7):k,c=f+l*60,_=h+c*60,S=_*1e3,M=new Date(w.getTime()+S);return M}function al(e,t){z(2,arguments);var n=J(e).getTime(),r=Z(t);return new Date(n+r)}var ol={};function Ye(){return ol}function Ke(e,t){var n,r,o,i,l,f,h,p;z(1,arguments);var k=Ye(),w=Z((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:k.weekStartsOn)!==null&&r!==void 0?r:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=J(e),_=c.getDay(),S=(_<w?7:0)+_-w;return c.setDate(c.getDate()-S),c.setHours(0,0,0,0),c}function kt(e){return z(1,arguments),Ke(e,{weekStartsOn:1})}function il(e){z(1,arguments);var t=J(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=kt(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var l=kt(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function ll(e){z(1,arguments);var t=il(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=kt(n);return r}function Ot(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Ja(e){z(1,arguments);var t=J(e);return t.setHours(0,0,0,0),t}var ul=864e5;function sl(e,t){z(2,arguments);var n=Ja(e),r=Ja(t),o=n.getTime()-Ot(n),i=r.getTime()-Ot(r);return Math.round((o-i)/ul)}function eo(e,t){z(2,arguments);var n=Z(t);return Ie(e,n*12)}var tr=6e4,nr=36e5,fl=1e3;function $t(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$t=function(n){return typeof n}:$t=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$t(e)}function to(e){return z(1,arguments),e instanceof Date||$t(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function st(e){if(z(1,arguments),!to(e)&&typeof e!="number")return!1;var t=J(e);return!isNaN(Number(t))}function no(e,t){var n;z(1,arguments);var r=e||{},o=J(r.start),i=J(r.end),l=i.getTime();if(!(o.getTime()<=l))throw new RangeError("Invalid interval");var f=[],h=o;h.setHours(0,0,0,0);var p=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(p<1||isNaN(p))throw new RangeError("`options.step` must be a number greater than 1");for(;h.getTime()<=l;)f.push(J(h)),h.setDate(h.getDate()+p),h.setHours(0,0,0,0);return f}function cl(e,t){var n,r,o,i,l,f,h,p;z(1,arguments);var k=Ye(),w=Z((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:k.weekStartsOn)!==null&&r!==void 0?r:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=J(e),_=c.getDay(),S=(_<w?-7:0)+6-(_-w);return c.setDate(c.getDate()+S),c.setHours(23,59,59,999),c}function ro(e,t){z(2,arguments);var n=Z(t);return al(e,-n)}var dl=864e5;function ml(e){z(1,arguments);var t=J(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/dl)+1}function nt(e){z(1,arguments);var t=1,n=J(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function ao(e){z(1,arguments);var t=J(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=nt(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var l=nt(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function yl(e){z(1,arguments);var t=ao(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=nt(n);return r}var pl=6048e5;function oo(e){z(1,arguments);var t=J(e),n=nt(t).getTime()-yl(t).getTime();return Math.round(n/pl)+1}function Ge(e,t){var n,r,o,i,l,f,h,p;z(1,arguments);var k=Ye(),w=Z((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:k.weekStartsOn)!==null&&r!==void 0?r:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=J(e),_=c.getUTCDay(),S=(_<w?7:0)+_-w;return c.setUTCDate(c.getUTCDate()-S),c.setUTCHours(0,0,0,0),c}function rr(e,t){var n,r,o,i,l,f,h,p;z(1,arguments);var k=J(e),w=k.getUTCFullYear(),c=Ye(),_=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(h=c.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(w+1,0,_),S.setUTCHours(0,0,0,0);var M=Ge(S,t),W=new Date(0);W.setUTCFullYear(w,0,_),W.setUTCHours(0,0,0,0);var R=Ge(W,t);return k.getTime()>=M.getTime()?w+1:k.getTime()>=R.getTime()?w:w-1}function hl(e,t){var n,r,o,i,l,f,h,p;z(1,arguments);var k=Ye(),w=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:k.firstWeekContainsDate)!==null&&r!==void 0?r:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1),c=rr(e,t),_=new Date(0);_.setUTCFullYear(c,0,w),_.setUTCHours(0,0,0,0);var S=Ge(_,t);return S}var gl=6048e5;function io(e,t){z(1,arguments);var n=J(e),r=Ge(n,t).getTime()-hl(n,t).getTime();return Math.round(r/gl)+1}function se(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var vl={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return se(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):se(r+1,2)},d:function(t,n){return se(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){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(t,n){return se(t.getUTCHours()%12||12,n.length)},H:function(t,n){return se(t.getUTCHours(),n.length)},m:function(t,n){return se(t.getUTCMinutes(),n.length)},s:function(t,n){return se(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return se(i,n.length)}};const ze=vl;var rt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bl={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return ze.y(t,n)},Y:function(t,n,r,o){var i=rr(t,o),l=i>0?i:1-i;if(n==="YY"){var f=l%100;return se(f,2)}return n==="Yo"?r.ordinalNumber(l,{unit:"year"}):se(l,n.length)},R:function(t,n){var r=ao(t);return se(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return se(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return se(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return se(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return ze.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return se(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=io(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):se(i,n.length)},I:function(t,n,r){var o=oo(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):se(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ze.d(t,n)},D:function(t,n,r){var o=ml(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):se(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),l=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(l);case"ee":return se(l,2);case"eo":return r.ordinalNumber(l,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),l=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(l);case"cc":return se(l,n.length);case"co":return r.ordinalNumber(l,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return se(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=rt.noon:o===0?i=rt.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=rt.evening:o>=12?i=rt.afternoon:o>=4?i=rt.morning:i=rt.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ze.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ze.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):se(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):se(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ze.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ze.s(t,n)},S:function(t,n){return ze.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();if(l===0)return"Z";switch(n){case"X":return uo(l);case"XXXX":case"XX":return Qe(l);case"XXXXX":case"XXX":default:return Qe(l,":")}},x:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();switch(n){case"x":return uo(l);case"xxxx":case"xx":return Qe(l);case"xxxxx":case"xxx":default:return Qe(l,":")}},O:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+lo(l,":");case"OOOO":default:return"GMT"+Qe(l,":")}},z:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+lo(l,":");case"zzzz":default:return"GMT"+Qe(l,":")}},t:function(t,n,r,o){var i=o._originalDate||t,l=Math.floor(i.getTime()/1e3);return se(l,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,l=i.getTime();return se(l,n.length)}};function lo(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var l=t||"";return n+String(o)+l+se(i,2)}function uo(e,t){if(e%60===0){var n=e>0?"-":"+";return n+se(Math.abs(e)/60,2)}return Qe(e,t)}function Qe(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=se(Math.floor(o/60),2),l=se(o%60,2);return r+i+n+l}const wl=bl;var so=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},fo=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},_l=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return so(t,n);var l;switch(o){case"P":l=n.dateTime({width:"short"});break;case"PP":l=n.dateTime({width:"medium"});break;case"PPP":l=n.dateTime({width:"long"});break;case"PPPP":default:l=n.dateTime({width:"full"});break}return l.replace("{{date}}",so(o,n)).replace("{{time}}",fo(i,n))},kl={p:fo,P:_l};const ar=kl;var Ol=["D","DD"],$l=["YY","YYYY"];function co(e){return Ol.indexOf(e)!==-1}function mo(e){return $l.indexOf(e)!==-1}function Pt(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Pl={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"}},Tl=function(t,n,r){var o,i=Pl[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Sl=Tl;function or(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Dl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rl={date:or({formats:Dl,defaultWidth:"full"}),time:or({formats:Cl,defaultWidth:"full"}),dateTime:or({formats:Nl,defaultWidth:"full"})};const Ml=Rl;var Bl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},El=function(t,n,r,o){return Bl[t]};const xl=El;function ft(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var f=e.defaultWidth,h=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[h]||e.values[f]}var p=e.argumentCallback?e.argumentCallback(t):t;return o[p]}}var Al={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Il={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yl={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"]},Vl={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"]},Ul={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"}},Wl={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"}},Fl=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ll={ordinalNumber:Fl,era:ft({values:Al,defaultWidth:"wide"}),quarter:ft({values:Il,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ft({values:Yl,defaultWidth:"wide"}),day:ft({values:Vl,defaultWidth:"wide"}),dayPeriod:ft({values:Ul,defaultWidth:"wide",formattingValues:Wl,defaultFormattingWidth:"wide"})};const Hl=Ll;function ct(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],f=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?jl(f,function(w){return w.test(l)}):zl(f,function(w){return w.test(l)}),p;p=e.valueCallback?e.valueCallback(h):h,p=n.valueCallback?n.valueCallback(p):p;var k=t.slice(l.length);return{value:p,rest:k}}}function zl(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function jl(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function ql(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=n.valueCallback?n.valueCallback(l):l;var f=t.slice(o.length);return{value:l,rest:f}}}var Kl=/^(\d+)(th|st|nd|rd)?/i,Gl=/\d+/i,Ql={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},Xl={any:[/^b/i,/^(a|c)/i]},Zl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jl={any:[/1/i,/2/i,/3/i,/4/i]},eu={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},tu={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]},nu={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},ru={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]},au={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},ou={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}},iu={ordinalNumber:ql({matchPattern:Kl,parsePattern:Gl,valueCallback:function(t){return parseInt(t,10)}}),era:ct({matchPatterns:Ql,defaultMatchWidth:"wide",parsePatterns:Xl,defaultParseWidth:"any"}),quarter:ct({matchPatterns:Zl,defaultMatchWidth:"wide",parsePatterns:Jl,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ct({matchPatterns:eu,defaultMatchWidth:"wide",parsePatterns:tu,defaultParseWidth:"any"}),day:ct({matchPatterns:nu,defaultMatchWidth:"wide",parsePatterns:ru,defaultParseWidth:"any"}),dayPeriod:ct({matchPatterns:au,defaultMatchWidth:"any",parsePatterns:ou,defaultParseWidth:"any"})},lu={code:"en-US",formatDistance:Sl,formatLong:Ml,formatRelative:xl,localize:Hl,match:iu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const yo=lu;var uu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,su=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fu=/^'([^]*?)'?$/,cu=/''/g,du=/[a-zA-Z]/;function dt(e,t,n){var r,o,i,l,f,h,p,k,w,c,_,S,M,W,R,A,C,U;z(2,arguments);var ee=String(t),K=Ye(),ne=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:K.locale)!==null&&r!==void 0?r:yo,D=Z((i=(l=(f=(h=n==null?void 0:n.firstWeekContainsDate)!==null&&h!==void 0?h:n==null||(p=n.locale)===null||p===void 0||(k=p.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&f!==void 0?f:K.firstWeekContainsDate)!==null&&l!==void 0?l:(w=K.locale)===null||w===void 0||(c=w.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=Z((_=(S=(M=(W=n==null?void 0:n.weekStartsOn)!==null&&W!==void 0?W:n==null||(R=n.locale)===null||R===void 0||(A=R.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&M!==void 0?M:K.weekStartsOn)!==null&&S!==void 0?S:(C=K.locale)===null||C===void 0||(U=C.options)===null||U===void 0?void 0:U.weekStartsOn)!==null&&_!==void 0?_:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var I=J(e);if(!st(I))throw new RangeError("Invalid time value");var v=Ot(I),B=ro(I,v),V={firstWeekContainsDate:D,weekStartsOn:x,locale:ne,_originalDate:I},G=ee.match(su).map(function(F){var N=F[0];if(N==="p"||N==="P"){var s=ar[N];return s(F,ne.formatLong)}return F}).join("").match(uu).map(function(F){if(F==="''")return"'";var N=F[0];if(N==="'")return mu(F);var s=wl[N];if(s)return!(n!=null&&n.useAdditionalWeekYearTokens)&&mo(F)&&Pt(F,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&co(F)&&Pt(F,t,String(e)),s(B,F,ne.localize,V);if(N.match(du))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return F}).join("");return G}function mu(e){var t=e.match(fu);return t?t[1].replace(cu,"'"):e}function yu(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function pu(e){z(1,arguments);var t=J(e),n=t.getDay();return n}function hu(e){z(1,arguments);var t=J(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Fe(e){z(1,arguments);var t=J(e),n=t.getHours();return n}var gu=6048e5;function vu(e){z(1,arguments);var t=J(e),n=kt(t).getTime()-ll(t).getTime();return Math.round(n/gu)+1}function Le(e){z(1,arguments);var t=J(e),n=t.getMinutes();return n}function de(e){z(1,arguments);var t=J(e),n=t.getMonth();return n}function at(e){z(1,arguments);var t=J(e),n=t.getSeconds();return n}function bu(e,t){var n,r,o,i,l,f,h,p;z(1,arguments);var k=J(e),w=k.getFullYear(),c=Ye(),_=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(h=c.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setFullYear(w+1,0,_),S.setHours(0,0,0,0);var M=Ke(S,t),W=new Date(0);W.setFullYear(w,0,_),W.setHours(0,0,0,0);var R=Ke(W,t);return k.getTime()>=M.getTime()?w+1:k.getTime()>=R.getTime()?w:w-1}function wu(e,t){var n,r,o,i,l,f,h,p;z(1,arguments);var k=Ye(),w=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:k.firstWeekContainsDate)!==null&&r!==void 0?r:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1),c=bu(e,t),_=new Date(0);_.setFullYear(c,0,w),_.setHours(0,0,0,0);var S=Ke(_,t);return S}var _u=6048e5;function ku(e,t){z(1,arguments);var n=J(e),r=Ke(n,t).getTime()-wu(n,t).getTime();return Math.round(r/_u)+1}function me(e){return z(1,arguments),J(e).getFullYear()}function ir(e,t){z(2,arguments);var n=J(e),r=J(t);return n.getTime()>r.getTime()}function lr(e,t){z(2,arguments);var n=J(e),r=J(t);return n.getTime()<r.getTime()}function po(e,t){z(2,arguments);var n=J(e),r=J(t);return n.getTime()===r.getTime()}function Tt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tt=function(n){return typeof n}:Tt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tt(e)}function ho(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ur(e,t)}function ur(e,t){return ur=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},ur(e,t)}function go(e){var t=$u();return function(){var r=St(e),o;if(t){var i=St(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ou(this,o)}}function Ou(e,t){return t&&(Tt(t)==="object"||typeof t=="function")?t:sr(e)}function sr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},St(e)}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cr(e,t,n){return t&&vo(e.prototype,t),n&&vo(e,n),e}function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pu=10,bo=function(){function e(){fr(this,e),dr(this,"subPriority",0)}return cr(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),Tu=function(e){ho(n,e);var t=go(n);function n(r,o,i,l,f){var h;return fr(this,n),h=t.call(this),h.value=r,h.validateValue=o,h.setValue=i,h.priority=l,f&&(h.subPriority=f),h}return cr(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,l){return this.setValue(o,i,this.value,l)}}]),n}(bo),Su=function(e){ho(n,e);var t=go(n);function n(){var r;fr(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),dr(sr(r),"priority",Pu),dr(sr(r),"subPriority",-1),r}return cr(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var l=new Date(0);return l.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),l.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),l}}]),n}(bo);function Du(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cu(e,t,n){return t&&wo(e.prototype,t),n&&wo(e,n),e}var le=function(){function e(){Du(this,e)}return Cu(e,[{key:"run",value:function(n,r,o,i){var l=this.parse(n,r,o,i);return l?{setter:new Tu(l.value,this.validate,this.set,this.priority,this.subPriority),rest:l.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}();function Dt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dt=function(n){return typeof n}:Dt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dt(e)}function Nu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ru(e,t,n){return t&&_o(e.prototype,t),n&&_o(e,n),e}function Mu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}function mr(e,t){return mr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},mr(e,t)}function Bu(e){var t=xu();return function(){var r=Ct(e),o;if(t){var i=Ct(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Eu(this,o)}}function Eu(e,t){return t&&(Dt(t)==="object"||typeof t=="function")?t:yr(e)}function yr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ct(e){return Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ct(e)}function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Au=function(e){Mu(n,e);var t=Bu(n);function n(){var r;Nu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),ko(yr(r),"priority",140),ko(yr(r),"incompatibleTokens",["R","u","t","T"]),r}return Ru(n,[{key:"parse",value:function(o,i,l){switch(i){case"G":case"GG":case"GGG":return l.era(o,{width:"abbreviated"})||l.era(o,{width:"narrow"});case"GGGGG":return l.era(o,{width:"narrow"});case"GGGG":default:return l.era(o,{width:"wide"})||l.era(o,{width:"abbreviated"})||l.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,l){return i.era=l,o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(le),be={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}/},Ve={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 we(e,t){return e&&{value:t(e.value),rest:e.rest}}function pe(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ue(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,l=n[5]?parseInt(n[5],10):0;return{value:r*(o*nr+i*tr+l*fl),rest:t.slice(n[0].length)}}function Oo(e){return pe(be.anyDigitsSigned,e)}function ve(e,t){switch(e){case 1:return pe(be.singleDigit,t);case 2:return pe(be.twoDigits,t);case 3:return pe(be.threeDigits,t);case 4:return pe(be.fourDigits,t);default:return pe(new RegExp("^\\d{1,"+e+"}"),t)}}function Nt(e,t){switch(e){case 1:return pe(be.singleDigitSigned,t);case 2:return pe(be.twoDigitsSigned,t);case 3:return pe(be.threeDigitsSigned,t);case 4:return pe(be.fourDigitsSigned,t);default:return pe(new RegExp("^-?\\d{1,"+e+"}"),t)}}function pr(e){switch(e){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 $o(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,l=Math.floor(i/100)*100,f=e>=i%100;o=e+l-(f?100:0)}return n?o:1-o}function Po(e){return e%400===0||e%4===0&&e%100!==0}function Rt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rt=function(n){return typeof n}:Rt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rt(e)}function Iu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function To(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yu(e,t,n){return t&&To(e.prototype,t),n&&To(e,n),e}function Vu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hr(e,t)}function hr(e,t){return hr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},hr(e,t)}function Uu(e){var t=Fu();return function(){var r=Mt(e),o;if(t){var i=Mt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Wu(this,o)}}function Wu(e,t){return t&&(Rt(t)==="object"||typeof t=="function")?t:gr(e)}function gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mt(e)}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lu=function(e){Vu(n,e);var t=Uu(n);function n(){var r;Iu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),So(gr(r),"priority",130),So(gr(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Yu(n,[{key:"parse",value:function(o,i,l){var f=function(p){return{year:p,isTwoDigitYear:i==="yy"}};switch(i){case"y":return we(ve(4,o),f);case"yo":return we(l.ordinalNumber(o,{unit:"year"}),f);default:return we(ve(i.length,o),f)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,l){var f=o.getUTCFullYear();if(l.isTwoDigitYear){var h=$o(l.year,f);return o.setUTCFullYear(h,0,1),o.setUTCHours(0,0,0,0),o}var p=!("era"in i)||i.era===1?l.year:1-l.year;return o.setUTCFullYear(p,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(le);function Bt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bt=function(n){return typeof n}:Bt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bt(e)}function Hu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Do(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zu(e,t,n){return t&&Do(e.prototype,t),n&&Do(e,n),e}function ju(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}function vr(e,t){return vr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},vr(e,t)}function qu(e){var t=Gu();return function(){var r=Et(e),o;if(t){var i=Et(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ku(this,o)}}function Ku(e,t){return t&&(Bt(t)==="object"||typeof t=="function")?t:br(e)}function br(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Et(e){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Et(e)}function Co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qu=function(e){ju(n,e);var t=qu(n);function n(){var r;Hu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),Co(br(r),"priority",130),Co(br(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return zu(n,[{key:"parse",value:function(o,i,l){var f=function(p){return{year:p,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return we(ve(4,o),f);case"Yo":return we(l.ordinalNumber(o,{unit:"year"}),f);default:return we(ve(i.length,o),f)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,l,f){var h=rr(o,f);if(l.isTwoDigitYear){var p=$o(l.year,h);return o.setUTCFullYear(p,0,f.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ge(o,f)}var k=!("era"in i)||i.era===1?l.year:1-l.year;return o.setUTCFullYear(k,0,f.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ge(o,f)}}]),n}(le);function xt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xt=function(n){return typeof n}:xt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xt(e)}function Xu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zu(e,t,n){return t&&No(e.prototype,t),n&&No(e,n),e}function Ju(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wr(e,t)}function wr(e,t){return wr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},wr(e,t)}function es(e){var t=ns();return function(){var r=At(e),o;if(t){var i=At(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ts(this,o)}}function ts(e,t){return t&&(xt(t)==="object"||typeof t=="function")?t:_r(e)}function _r(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ns(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},At(e)}function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rs=function(e){Ju(n,e);var t=es(n);function n(){var r;Xu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),Ro(_r(r),"priority",130),Ro(_r(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Zu(n,[{key:"parse",value:function(o,i){return Nt(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,l){var f=new Date(0);return f.setUTCFullYear(l,0,4),f.setUTCHours(0,0,0,0),nt(f)}}]),n}(le);function It(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?It=function(n){return typeof n}:It=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},It(e)}function as(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function os(e,t,n){return t&&Mo(e.prototype,t),n&&Mo(e,n),e}function is(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression m