@iqmo/browser
Version:
Browser Stlite
2 lines • 89.2 kB
JavaScript
import{a_ as Yt,by as Re,ar as h,bu as g,g as Qe,cZ as Xe,c3 as Ge,cC as ze,cx as _e,r as Ht,c4 as $e}from"./index-0xtYjrTa.js";import{_ as k,b as T,a as D}from"./inherits-BtEWVlTb.js";import{_ as x}from"./createSuper-D4tP7BMf.js";function S(a){if(a===null||a===!0||a===!1)return NaN;var n=Number(a);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function l(a,n){if(n.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+n.length+" present")}function f(a){l(1,arguments);var n=Object.prototype.toString.call(a);return a instanceof Date||Yt(a)==="object"&&n==="[object Date]"?new Date(a.getTime()):typeof a=="number"||n==="[object Number]"?new Date(a):((typeof a=="string"||n==="[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 At(a,n){l(2,arguments);var e=f(a),t=S(n);return isNaN(t)?new Date(NaN):(t&&e.setDate(e.getDate()+t),e)}function wt(a,n){l(2,arguments);var e=f(a).getTime(),t=S(n);return new Date(e+t)}function Ze(a,n){l(2,arguments);var e=S(n);return wt(a,e*1e3)}var Ve=6e4;function Je(a,n){l(2,arguments);var e=S(n);return wt(a,e*Ve)}var Ke=36e5;function tr(a,n){l(2,arguments);var e=S(n);return wt(a,e*Ke)}function er(a,n){l(2,arguments);var e=S(n),t=e*7;return At(a,t)}function yt(a,n){l(2,arguments);var e=f(a),t=S(n);if(isNaN(t))return new Date(NaN);if(!t)return e;var r=e.getDate(),i=new Date(e.getTime());i.setMonth(e.getMonth()+t+1,0);var o=i.getDate();return r>=o?i:(e.setFullYear(i.getFullYear(),i.getMonth(),r),e)}function ue(a,n){l(2,arguments);var e=S(n);return yt(a,e*12)}function rr(a,n){l(2,arguments);var e=f(a),t=f(n);return e.getFullYear()-t.getFullYear()}function dt(a,n){l(2,arguments);var e=f(a),t=f(n),r=e.getTime()-t.getTime();return r<0?-1:r>0?1:r}function nr(a,n){l(2,arguments);var e=f(a),t=f(n),r=dt(e,t),i=Math.abs(rr(e,t));e.setFullYear(1584),t.setFullYear(1584);var o=dt(e,t)===-r,u=r*(i-Number(o));return u===0?0:u}function ar(a,n){l(2,arguments);var e=f(a),t=f(n),r=e.getFullYear()-t.getFullYear(),i=e.getMonth()-t.getMonth();return r*12+i}function Lt(a){l(1,arguments);var n=f(a);return n.setHours(23,59,59,999),n}function qt(a){l(1,arguments);var n=f(a),e=n.getMonth();return n.setFullYear(n.getFullYear(),e+1,0),n.setHours(23,59,59,999),n}function ir(a){l(1,arguments);var n=f(a);return Lt(n).getTime()===qt(n).getTime()}function se(a,n){l(2,arguments);var e=f(a),t=f(n),r=dt(e,t),i=Math.abs(ar(e,t)),o;if(i<1)o=0;else{e.getMonth()===1&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-r*i);var u=dt(e,t)===-r;ir(f(a))&&i===1&&dt(a,t)===1&&(u=!1),o=r*(i-Number(u))}return o===0?0:o}var ce={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(a){return a<0?Math.ceil(a):Math.floor(a)}},or="trunc";function ft(a){return a?ce[a]:ce[or]}function ur(a,n,e){l(2,arguments);var t=se(a,n)/3;return ft(void 0)(t)}function bt(a){var n=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return n.setUTCFullYear(a.getFullYear()),a.getTime()-n.getTime()}function nt(a){l(1,arguments);var n=f(a);return n.setHours(0,0,0,0),n}var sr=864e5;function cr(a,n){l(2,arguments);var e=nt(a),t=nt(n),r=e.getTime()-bt(e),i=t.getTime()-bt(t);return Math.round((r-i)/sr)}function le(a,n){var e=a.getFullYear()-n.getFullYear()||a.getMonth()-n.getMonth()||a.getDate()-n.getDate()||a.getHours()-n.getHours()||a.getMinutes()-n.getMinutes()||a.getSeconds()-n.getSeconds()||a.getMilliseconds()-n.getMilliseconds();return e<0?-1:e>0?1:e}function de(a,n){l(2,arguments);var e=f(a),t=f(n),r=le(e,t),i=Math.abs(cr(e,t));e.setDate(e.getDate()-r*i);var o=+(le(e,t)===-r),u=r*(i-o);return u===0?0:u}function lr(a,n,e){l(2,arguments);var t=de(a,n)/7;return ft(void 0)(t)}var Tt=6e4,Dt=36e5,dr=1e3;function Mt(a,n){return l(2,arguments),f(a).getTime()-f(n).getTime()}function fr(a,n,e){l(2,arguments);var t=Mt(a,n)/Dt;return ft(void 0)(t)}function hr(a,n,e){l(2,arguments);var t=Mt(a,n)/Tt;return ft(void 0)(t)}function mr(a,n,e){l(2,arguments);var t=Mt(a,n)/1e3;return ft(void 0)(t)}function gr(a,n){var e;l(1,arguments);var t=a||{},r=f(t.start),i=f(t.end),o=i.getTime();if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var u=[],s=r;s.setHours(0,0,0,0);var c=Number((e=void 0)!==null&&e!==void 0?e:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)u.push(f(s)),s.setDate(s.getDate()+c),s.setHours(0,0,0,0);return u}var vr={};function V(){return vr}function Wt(a,n){var e,t,r,i,o,u,s,c;l(1,arguments);var d=V(),m=S((e=(t=(r=(i=n?.weekStartsOn)!==null&&i!==void 0?i:n==null||(o=n.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:d.weekStartsOn)!==null&&t!==void 0?t:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&e!==void 0?e:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=f(a),w=p.getDay(),y=(w<m?-7:0)+6-(w-m);return p.setDate(p.getDate()+y),p.setHours(23,59,59,999),p}function Ft(a){l(1,arguments);var n=f(a),e=n.getFullYear();return n.setFullYear(e+1,0,0),n.setHours(23,59,59,999),n}function pr(a){return l(1,arguments),a instanceof Date||Yt(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function fe(a){if(l(1,arguments),!pr(a)&&typeof a!="number")return!1;var n=f(a);return!isNaN(Number(n))}function he(a,n){l(2,arguments);var e=S(n);return wt(a,-e)}var wr=864e5;function yr(a){l(1,arguments);var n=f(a),e=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var t=n.getTime(),r=e-t;return Math.floor(r/wr)+1}function at(a){l(1,arguments);var n=1,e=f(a),t=e.getUTCDay(),r=(t<n?7:0)+t-n;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function me(a){l(1,arguments);var n=f(a),e=n.getUTCFullYear(),t=new Date(0);t.setUTCFullYear(e+1,0,4),t.setUTCHours(0,0,0,0);var r=at(t),i=new Date(0);i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0);var o=at(i);return n.getTime()>=r.getTime()?e+1:n.getTime()>=o.getTime()?e:e-1}function br(a){l(1,arguments);var n=me(a),e=new Date(0);e.setUTCFullYear(n,0,4),e.setUTCHours(0,0,0,0);var t=at(e);return t}var Tr=6048e5;function ge(a){l(1,arguments);var n=f(a),e=at(n).getTime()-br(n).getTime();return Math.round(e/Tr)+1}function et(a,n){var e,t,r,i,o,u,s,c;l(1,arguments);var d=V(),m=S((e=(t=(r=(i=n?.weekStartsOn)!==null&&i!==void 0?i:n==null||(o=n.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:d.weekStartsOn)!==null&&t!==void 0?t:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&e!==void 0?e:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=f(a),w=p.getUTCDay(),y=(w<m?7:0)+w-m;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function jt(a,n){var e,t,r,i,o,u,s,c;l(1,arguments);var d=f(a),m=d.getUTCFullYear(),p=V(),w=S((e=(t=(r=(i=n?.firstWeekContainsDate)!==null&&i!==void 0?i:n==null||(o=n.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:p.firstWeekContainsDate)!==null&&t!==void 0?t:(s=p.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,w),y.setUTCHours(0,0,0,0);var P=et(y,n),Y=new Date(0);Y.setUTCFullYear(m,0,w),Y.setUTCHours(0,0,0,0);var L=et(Y,n);return d.getTime()>=P.getTime()?m+1:d.getTime()>=L.getTime()?m:m-1}function Dr(a,n){var e,t,r,i,o,u,s,c;l(1,arguments);var d=V(),m=S((e=(t=(r=(i=n?.firstWeekContainsDate)!==null&&i!==void 0?i:n==null||(o=n.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:d.firstWeekContainsDate)!==null&&t!==void 0?t:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&e!==void 0?e:1),p=jt(a,n),w=new Date(0);w.setUTCFullYear(p,0,m),w.setUTCHours(0,0,0,0);var y=et(w,n);return y}var Mr=6048e5;function ve(a,n){l(1,arguments);var e=f(a),t=et(e,n).getTime()-Dr(e,n).getTime();return Math.round(t/Mr)+1}function b(a,n){for(var e=a<0?"-":"",t=Math.abs(a).toString();t.length<n;)t="0"+t;return e+t}var J={y:function(a,n){var e=a.getUTCFullYear(),t=e>0?e:1-e;return b(n==="yy"?t%100:t,n.length)},M:function(a,n){var e=a.getUTCMonth();return n==="M"?String(e+1):b(e+1,2)},d:function(a,n){return b(a.getUTCDate(),n.length)},a:function(a,n){var e=a.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h:function(a,n){return b(a.getUTCHours()%12||12,n.length)},H:function(a,n){return b(a.getUTCHours(),n.length)},m:function(a,n){return b(a.getUTCMinutes(),n.length)},s:function(a,n){return b(a.getUTCSeconds(),n.length)},S:function(a,n){var e=n.length,t=a.getUTCMilliseconds(),r=Math.floor(t*Math.pow(10,e-3));return b(r,n.length)}},it={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kr={G:function(a,n,e){var t=a.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(t,{width:"abbreviated"});case"GGGGG":return e.era(t,{width:"narrow"});case"GGGG":default:return e.era(t,{width:"wide"})}},y:function(a,n,e){if(n==="yo"){var t=a.getUTCFullYear(),r=t>0?t:1-t;return e.ordinalNumber(r,{unit:"year"})}return J.y(a,n)},Y:function(a,n,e,t){var r=jt(a,t),i=r>0?r:1-r;if(n==="YY"){var o=i%100;return b(o,2)}return n==="Yo"?e.ordinalNumber(i,{unit:"year"}):b(i,n.length)},R:function(a,n){var e=me(a);return b(e,n.length)},u:function(a,n){var e=a.getUTCFullYear();return b(e,n.length)},Q:function(a,n,e){var t=Math.ceil((a.getUTCMonth()+1)/3);switch(n){case"Q":return String(t);case"QQ":return b(t,2);case"Qo":return e.ordinalNumber(t,{unit:"quarter"});case"QQQ":return e.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(t,{width:"wide",context:"formatting"})}},q:function(a,n,e){var t=Math.ceil((a.getUTCMonth()+1)/3);switch(n){case"q":return String(t);case"qq":return b(t,2);case"qo":return e.ordinalNumber(t,{unit:"quarter"});case"qqq":return e.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(t,{width:"wide",context:"standalone"})}},M:function(a,n,e){var t=a.getUTCMonth();switch(n){case"M":case"MM":return J.M(a,n);case"Mo":return e.ordinalNumber(t+1,{unit:"month"});case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})}},L:function(a,n,e){var t=a.getUTCMonth();switch(n){case"L":return String(t+1);case"LL":return b(t+1,2);case"Lo":return e.ordinalNumber(t+1,{unit:"month"});case"LLL":return e.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(t,{width:"wide",context:"standalone"})}},w:function(a,n,e,t){var r=ve(a,t);return n==="wo"?e.ordinalNumber(r,{unit:"week"}):b(r,n.length)},I:function(a,n,e){var t=ge(a);return n==="Io"?e.ordinalNumber(t,{unit:"week"}):b(t,n.length)},d:function(a,n,e){return n==="do"?e.ordinalNumber(a.getUTCDate(),{unit:"date"}):J.d(a,n)},D:function(a,n,e){var t=yr(a);return n==="Do"?e.ordinalNumber(t,{unit:"dayOfYear"}):b(t,n.length)},E:function(a,n,e){var t=a.getUTCDay();switch(n){case"E":case"EE":case"EEE":return e.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(t,{width:"short",context:"formatting"});case"EEEE":default:return e.day(t,{width:"wide",context:"formatting"})}},e:function(a,n,e,t){var r=a.getUTCDay(),i=(r-t.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return b(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(a,n,e,t){var r=a.getUTCDay(),i=(r-t.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return b(i,n.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(a,n,e){var t=a.getUTCDay(),r=t===0?7:t;switch(n){case"i":return String(r);case"ii":return b(r,n.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(t,{width:"short",context:"formatting"});case"iiii":default:return e.day(t,{width:"wide",context:"formatting"})}},a:function(a,n,e){var t=a.getUTCHours(),r=t/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(a,n,e){var t=a.getUTCHours(),r;switch(t===12?r=it.noon:t===0?r=it.midnight:r=t/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(a,n,e){var t=a.getUTCHours(),r;switch(t>=17?r=it.evening:t>=12?r=it.afternoon:t>=4?r=it.morning:r=it.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(a,n,e){if(n==="ho"){var t=a.getUTCHours()%12;return t===0&&(t=12),e.ordinalNumber(t,{unit:"hour"})}return J.h(a,n)},H:function(a,n,e){return n==="Ho"?e.ordinalNumber(a.getUTCHours(),{unit:"hour"}):J.H(a,n)},K:function(a,n,e){var t=a.getUTCHours()%12;return n==="Ko"?e.ordinalNumber(t,{unit:"hour"}):b(t,n.length)},k:function(a,n,e){var t=a.getUTCHours();return t===0&&(t=24),n==="ko"?e.ordinalNumber(t,{unit:"hour"}):b(t,n.length)},m:function(a,n,e){return n==="mo"?e.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):J.m(a,n)},s:function(a,n,e){return n==="so"?e.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):J.s(a,n)},S:function(a,n){return J.S(a,n)},X:function(a,n,e,t){var r=t._originalDate||a,i=r.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return we(i);case"XXXX":case"XX":return rt(i);case"XXXXX":case"XXX":default:return rt(i,":")}},x:function(a,n,e,t){var r=t._originalDate||a,i=r.getTimezoneOffset();switch(n){case"x":return we(i);case"xxxx":case"xx":return rt(i);case"xxxxx":case"xxx":default:return rt(i,":")}},O:function(a,n,e,t){var r=t._originalDate||a,i=r.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+pe(i,":");case"OOOO":default:return"GMT"+rt(i,":")}},z:function(a,n,e,t){var r=t._originalDate||a,i=r.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+pe(i,":");case"zzzz":default:return"GMT"+rt(i,":")}},t:function(a,n,e,t){var r=t._originalDate||a,i=Math.floor(r.getTime()/1e3);return b(i,n.length)},T:function(a,n,e,t){var r=t._originalDate||a,i=r.getTime();return b(i,n.length)}};function pe(a,n){var e=a>0?"-":"+",t=Math.abs(a),r=Math.floor(t/60),i=t%60;if(i===0)return e+String(r);var o=n;return e+String(r)+o+b(i,2)}function we(a,n){if(a%60===0){var e=a>0?"-":"+";return e+b(Math.abs(a)/60,2)}return rt(a,n)}function rt(a,n){var e=n||"",t=a>0?"-":"+",r=Math.abs(a),i=b(Math.floor(r/60),2),o=b(r%60,2);return t+i+e+o}var ye=function(a,n){switch(a){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"})}},be=function(a,n){switch(a){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"})}},xr=function(a,n){var e=a.match(/(P+)(p+)?/)||[],t=e[1],r=e[2];if(!r)return ye(a,n);var i;switch(t){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",ye(t,n)).replace("{{time}}",be(r,n))},It={p:be,P:xr},Cr=["D","DD"],Sr=["YY","YYYY"];function Te(a){return Cr.indexOf(a)!==-1}function De(a){return Sr.indexOf(a)!==-1}function kt(a,n,e){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Or={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"}},Pr=function(a,n,e){var t,r=Or[a];return typeof r=="string"?t=r:n===1?t=r.one:t=r.other.replace("{{count}}",n.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+t:t+" ago":t};function Bt(a){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.width?String(n.width):a.defaultWidth,t=a.formats[e]||a.formats[a.defaultWidth];return t}}var Ur={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Er={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nr={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yr={date:Bt({formats:Ur,defaultWidth:"full"}),time:Bt({formats:Er,defaultWidth:"full"}),dateTime:Bt({formats:Nr,defaultWidth:"full"})},Hr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ar=function(a,n,e,t){return Hr[a]};function ht(a){return function(n,e){var t=e!=null&&e.context?String(e.context):"standalone",r;if(t==="formatting"&&a.formattingValues){var i=a.defaultFormattingWidth||a.defaultWidth,o=e!=null&&e.width?String(e.width):i;r=a.formattingValues[o]||a.formattingValues[i]}else{var u=a.defaultWidth,s=e!=null&&e.width?String(e.width):a.defaultWidth;r=a.values[s]||a.values[u]}var c=a.argumentCallback?a.argumentCallback(n):n;return r[c]}}var Lr={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wr={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"]},Fr={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"]},jr={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"}},Ir={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"}},Br=function(a,n){var e=Number(a),t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Rr={ordinalNumber:Br,era:ht({values:Lr,defaultWidth:"wide"}),quarter:ht({values:qr,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:ht({values:Wr,defaultWidth:"wide"}),day:ht({values:Fr,defaultWidth:"wide"}),dayPeriod:ht({values:jr,defaultWidth:"wide",formattingValues:Ir,defaultFormattingWidth:"wide"})};function mt(a){return function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.width,r=t&&a.matchPatterns[t]||a.matchPatterns[a.defaultMatchWidth],i=n.match(r);if(!i)return null;var o=i[0],u=t&&a.parsePatterns[t]||a.parsePatterns[a.defaultParseWidth],s=Array.isArray(u)?Xr(u,function(m){return m.test(o)}):Qr(u,function(m){return m.test(o)}),c;c=a.valueCallback?a.valueCallback(s):s,c=e.valueCallback?e.valueCallback(c):c;var d=n.slice(o.length);return{value:c,rest:d}}}function Qr(a,n){for(var e in a)if(a.hasOwnProperty(e)&&n(a[e]))return e}function Xr(a,n){for(var e=0;e<a.length;e++)if(n(a[e]))return e}function Gr(a){return function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=n.match(a.matchPattern);if(!t)return null;var r=t[0],i=n.match(a.parsePattern);if(!i)return null;var o=a.valueCallback?a.valueCallback(i[0]):i[0];o=e.valueCallback?e.valueCallback(o):o;var u=n.slice(r.length);return{value:o,rest:u}}}var zr=/^(\d+)(th|st|nd|rd)?/i,_r=/\d+/i,$r={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},Zr={any:[/^b/i,/^(a|c)/i]},Vr={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jr={any:[/1/i,/2/i,/3/i,/4/i]},Kr={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},tn={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]},en={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},rn={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]},nn={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},an={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}},on={ordinalNumber:Gr({matchPattern:zr,parsePattern:_r,valueCallback:function(a){return parseInt(a,10)}}),era:mt({matchPatterns:$r,defaultMatchWidth:"wide",parsePatterns:Zr,defaultParseWidth:"any"}),quarter:mt({matchPatterns:Vr,defaultMatchWidth:"wide",parsePatterns:Jr,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:mt({matchPatterns:Kr,defaultMatchWidth:"wide",parsePatterns:tn,defaultParseWidth:"any"}),day:mt({matchPatterns:en,defaultMatchWidth:"wide",parsePatterns:rn,defaultParseWidth:"any"}),dayPeriod:mt({matchPatterns:nn,defaultMatchWidth:"any",parsePatterns:an,defaultParseWidth:"any"})},Rt={code:"en-US",formatDistance:Pr,formatLong:Yr,formatRelative:Ar,localize:Rr,match:on,options:{weekStartsOn:0,firstWeekContainsDate:1}},un=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cn=/^'([^]*?)'?$/,ln=/''/g,dn=/[a-zA-Z]/;function fn(a,n,e){var t,r,i,o,u,s,c,d,m,p,w,y,P,Y,L,W,Q,j;l(2,arguments);var K=String(n),q=V(),I=(t=(r=e?.locale)!==null&&r!==void 0?r:q.locale)!==null&&t!==void 0?t:Rt,_=S((i=(o=(u=(s=e?.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(c=e.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:q.firstWeekContainsDate)!==null&&o!==void 0?o:(m=q.locale)===null||m===void 0||(p=m.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=S((w=(y=(P=(Y=e?.weekStartsOn)!==null&&Y!==void 0?Y:e==null||(L=e.locale)===null||L===void 0||(W=L.options)===null||W===void 0?void 0:W.weekStartsOn)!==null&&P!==void 0?P:q.weekStartsOn)!==null&&y!==void 0?y:(Q=q.locale)===null||Q===void 0||(j=Q.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&w!==void 0?w:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var Z=f(a);if(!fe(Z))throw new RangeError("Invalid time value");var ut=bt(Z),st=he(Z,ut),ct={firstWeekContainsDate:_,weekStartsOn:$,locale:I,_originalDate:Z},Ut=K.match(sn).map(function(H){var F=H[0];if(F==="p"||F==="P"){var tt=It[F];return tt(H,I.formatLong)}return H}).join("").match(un).map(function(H){if(H==="''")return"'";var F=H[0];if(F==="'")return hn(H);var tt=kr[F];if(tt)return!(e!=null&&e.useAdditionalWeekYearTokens)&&De(H)&&kt(H,n,String(a)),!(e!=null&&e.useAdditionalDayOfYearTokens)&&Te(H)&&kt(H,n,String(a)),tt(st,H,I.localize,ct);if(F.match(dn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return H}).join("");return Ut}function hn(a){var n=a.match(cn);return n?n[1].replace(ln,"'"):a}function mn(a){l(1,arguments);var n=f(a),e=n.getDate();return e}function gn(a){l(1,arguments);var n=f(a),e=n.getDay();return e}function Me(a){l(1,arguments);var n=f(a),e=n.getFullYear(),t=n.getMonth(),r=new Date(0);return r.setFullYear(e,t+1,0),r.setHours(0,0,0,0),r.getDate()}function vn(a){l(1,arguments);var n=f(a),e=n.getHours();return e}function pn(a){l(1,arguments);var n=f(a),e=n.getMinutes();return e}function wn(a){l(1,arguments);var n=f(a),e=n.getMonth();return e}function yn(a){l(1,arguments);var n=f(a),e=n.getSeconds();return e}function bn(a){return l(1,arguments),f(a).getFullYear()}function xt(a,n){l(2,arguments);var e=f(a),t=f(n);return e.getTime()>t.getTime()}function ot(a,n){l(2,arguments);var e=f(a),t=f(n);return e.getTime()<t.getTime()}function Tn(a,n){l(2,arguments);var e=f(a),t=f(n);return e.getTime()===t.getTime()}function Dn(a,n){l(2,arguments);var e=nt(a),t=nt(n);return e.getTime()===t.getTime()}function Mn(a,n){l(2,arguments);var e=f(a),t=f(n);return e.getFullYear()===t.getFullYear()}function kn(a,n){l(2,arguments);var e=f(a),t=f(n);return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function ke(a){l(1,arguments);var n=f(a);return n.setMinutes(0,0,0),n}function xn(a,n){l(2,arguments);var e=ke(a),t=ke(n);return e.getTime()===t.getTime()}function xe(a,n){var e=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!e){if(Array.isArray(a)||(e=Re(a))||n){e&&(a=e);var t=0,r=function(){};return{s:r,n:function(){return t>=a.length?{done:!0}:{done:!1,value:a[t++]}},e:function(s){throw s},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,u=!1;return{s:function(){e=e.call(a)},n:function(){var s=e.next();return o=s.done,s},e:function(s){u=!0,i=s},f:function(){try{o||e.return==null||e.return()}finally{if(u)throw i}}}}function Cn(a,n){if(a==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(a[e]=n[e]);return a}var Sn=10,Ce=function(){function a(){T(this,a),h(this,"priority",void 0),h(this,"subPriority",0)}return D(a,[{key:"validate",value:function(n,e){return!0}}]),a}(),On=function(a){k(e,a);var n=x(e);function e(t,r,i,o,u){var s;return T(this,e),s=n.call(this),s.value=t,s.validateValue=r,s.setValue=i,s.priority=o,u&&(s.subPriority=u),s}return D(e,[{key:"validate",value:function(t,r){return this.validateValue(t,this.value,r)}},{key:"set",value:function(t,r,i){return this.setValue(t,r,this.value,i)}}]),e}(Ce),Pn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",Sn),h(g(t),"subPriority",-1),t}return D(e,[{key:"set",value:function(t,r){if(r.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(Ce),C=function(){function a(){T(this,a),h(this,"incompatibleTokens",void 0),h(this,"priority",void 0),h(this,"subPriority",void 0)}return D(a,[{key:"run",value:function(n,e,t,r){var i=this.parse(n,e,t,r);return i?{setter:new On(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(n,e,t){return!0}}]),a}(),Un=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",140),h(g(t),"incompatibleTokens",["R","u","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,r,i){return r.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(C),E={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}/},G={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 N(a,n){return a&&{value:n(a.value),rest:a.rest}}function O(a,n){var e=n.match(a);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function z(a,n){var e=n.match(a);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};var t=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,i=e[3]?parseInt(e[3],10):0,o=e[5]?parseInt(e[5],10):0;return{value:t*(r*Dt+i*Tt+o*dr),rest:n.slice(e[0].length)}}function Se(a){return O(E.anyDigitsSigned,a)}function U(a,n){switch(a){case 1:return O(E.singleDigit,n);case 2:return O(E.twoDigits,n);case 3:return O(E.threeDigits,n);case 4:return O(E.fourDigits,n);default:return O(new RegExp("^\\d{1,"+a+"}"),n)}}function Oe(a,n){switch(a){case 1:return O(E.singleDigitSigned,n);case 2:return O(E.twoDigitsSigned,n);case 3:return O(E.threeDigitsSigned,n);case 4:return O(E.fourDigitsSigned,n);default:return O(new RegExp("^-?\\d{1,"+a+"}"),n)}}function Qt(a){switch(a){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 Pe(a,n){var e=n>0,t=e?n:1-n,r;if(t<=50)r=a||100;else{var i=t+50,o=Math.floor(i/100)*100,u=a>=i%100;r=a+o-(u?100:0)}return e?r:1-r}function Ue(a){return a%400===0||a%4===0&&a%100!==0}var En=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",130),h(g(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){var o=function(u){return{year:u,isTwoDigitYear:r==="yy"}};switch(r){case"y":return N(U(4,t),o);case"yo":return N(i.ordinalNumber(t,{unit:"year"}),o);default:return N(U(r.length,t),o)}}},{key:"validate",value:function(t,r){return r.isTwoDigitYear||r.year>0}},{key:"set",value:function(t,r,i){var o=t.getUTCFullYear();if(i.isTwoDigitYear){var u=Pe(i.year,o);return t.setUTCFullYear(u,0,1),t.setUTCHours(0,0,0,0),t}var s=!("era"in r)||r.era===1?i.year:1-i.year;return t.setUTCFullYear(s,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(C),Nn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",130),h(g(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){var o=function(u){return{year:u,isTwoDigitYear:r==="YY"}};switch(r){case"Y":return N(U(4,t),o);case"Yo":return N(i.ordinalNumber(t,{unit:"year"}),o);default:return N(U(r.length,t),o)}}},{key:"validate",value:function(t,r){return r.isTwoDigitYear||r.year>0}},{key:"set",value:function(t,r,i,o){var u=jt(t,o);if(i.isTwoDigitYear){var s=Pe(i.year,u);return t.setUTCFullYear(s,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),et(t,o)}var c=!("era"in r)||r.era===1?i.year:1-i.year;return t.setUTCFullYear(c,0,o.firstWeekContainsDate),t.setUTCHours(0,0,0,0),et(t,o)}}]),e}(C),Yn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",130),h(g(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r){return Oe(r==="R"?4:r.length,t)}},{key:"set",value:function(t,r,i){var o=new Date(0);return o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0),at(o)}}]),e}(C),Hn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",130),h(g(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r){return Oe(r==="u"?4:r.length,t)}},{key:"set",value:function(t,r,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(C),An=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",120),h(g(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"Q":case"QQ":return U(r.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,r){return r>=1&&r<=4}},{key:"set",value:function(t,r,i){return t.setUTCMonth((i-1)*3,1),t.setUTCHours(0,0,0,0),t}}]),e}(C),Ln=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",120),h(g(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"q":case"qq":return U(r.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,r){return r>=1&&r<=4}},{key:"set",value:function(t,r,i){return t.setUTCMonth((i-1)*3,1),t.setUTCHours(0,0,0,0),t}}]),e}(C),qn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),h(g(t),"priority",110),t}return D(e,[{key:"parse",value:function(t,r,i){var o=function(u){return u-1};switch(r){case"M":return N(O(E.month,t),o);case"MM":return N(U(2,t),o);case"Mo":return N(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,r){return r>=0&&r<=11}},{key:"set",value:function(t,r,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(C),Wn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",110),h(g(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){var o=function(u){return u-1};switch(r){case"L":return N(O(E.month,t),o);case"LL":return N(U(2,t),o);case"Lo":return N(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,r){return r>=0&&r<=11}},{key:"set",value:function(t,r,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(C);function Fn(a,n,e){l(2,arguments);var t=f(a),r=S(n),i=ve(t,e)-r;return t.setUTCDate(t.getUTCDate()-i*7),t}var jn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",100),h(g(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"w":return O(E.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return U(r.length,t)}}},{key:"validate",value:function(t,r){return r>=1&&r<=53}},{key:"set",value:function(t,r,i,o){return et(Fn(t,i,o),o)}}]),e}(C);function In(a,n){l(2,arguments);var e=f(a),t=S(n),r=ge(e)-t;return e.setUTCDate(e.getUTCDate()-r*7),e}var Bn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",100),h(g(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"I":return O(E.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return U(r.length,t)}}},{key:"validate",value:function(t,r){return r>=1&&r<=53}},{key:"set",value:function(t,r,i){return at(In(t,i))}}]),e}(C),Rn=[31,28,31,30,31,30,31,31,30,31,30,31],Qn=[31,29,31,30,31,30,31,31,30,31,30,31],Xn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",90),h(g(t),"subPriority",1),h(g(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"d":return O(E.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return U(r.length,t)}}},{key:"validate",value:function(t,r){var i=t.getUTCFullYear(),o=Ue(i),u=t.getUTCMonth();return o?r>=1&&r<=Qn[u]:r>=1&&r<=Rn[u]}},{key:"set",value:function(t,r,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(C),Gn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",90),h(g(t),"subpriority",1),h(g(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"D":case"DD":return O(E.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return U(r.length,t)}}},{key:"validate",value:function(t,r){var i=t.getUTCFullYear(),o=Ue(i);return o?r>=1&&r<=366:r>=1&&r<=365}},{key:"set",value:function(t,r,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}(C);function Xt(a,n,e){var t,r,i,o,u,s,c,d;l(2,arguments);var m=V(),p=S((t=(r=(i=(o=e?.weekStartsOn)!==null&&o!==void 0?o:e==null||(u=e.locale)===null||u===void 0||(s=u.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:m.weekStartsOn)!==null&&r!==void 0?r:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=f(a),y=S(n),P=w.getUTCDay(),Y=y%7,L=(Y+7)%7,W=(L<p?7:0)+y-P;return w.setUTCDate(w.getUTCDate()+W),w}var zn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",90),h(g(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,r){return r>=0&&r<=6}},{key:"set",value:function(t,r,i,o){return t=Xt(t,i,o),t.setUTCHours(0,0,0,0),t}}]),e}(C),_n=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",90),h(g(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i,o){var u=function(s){var c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return N(U(r.length,t),u);case"eo":return N(i.ordinalNumber(t,{unit:"day"}),u);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,r){return r>=0&&r<=6}},{key:"set",value:function(t,r,i,o){return t=Xt(t,i,o),t.setUTCHours(0,0,0,0),t}}]),e}(C),$n=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",90),h(g(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i,o){var u=function(s){var c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return N(U(r.length,t),u);case"co":return N(i.ordinalNumber(t,{unit:"day"}),u);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,r){return r>=0&&r<=6}},{key:"set",value:function(t,r,i,o){return t=Xt(t,i,o),t.setUTCHours(0,0,0,0),t}}]),e}(C);function Zn(a,n){l(2,arguments);var e=S(n);e%7===0&&(e=e-7);var t=1,r=f(a),i=r.getUTCDay(),o=e%7,u=(o+7)%7,s=(u<t?7:0)+e-i;return r.setUTCDate(r.getUTCDate()+s),r}var Vn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",90),h(g(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){var o=function(u){return u===0?7:u};switch(r){case"i":case"ii":return U(r.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return N(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return N(i.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return N(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return N(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(t,r){return r>=1&&r<=7}},{key:"set",value:function(t,r,i){return t=Zn(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(C),Jn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",80),h(g(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return D(e,[{key:"parse",value:function(t,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,r,i){return t.setUTCHours(Qt(i),0,0,0),t}}]),e}(C),Kn=function(a){k(e,a);var n=x(e);function e(){var t;T(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),h(g(t),"priority",80),h(g(t),"incompatibleTokens",["a","