@leapdevuk/component-toolbox 0.0.65 → 0.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -27,7 +27,7 @@ Check the top-level render call using <`+I+">.")}return C}}function fn(l,C){{if(
|
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,gr,ot,yo,ot),hn[ot+gr]=!0}}return l===n?lo(Pe):co(Pe),Pe}}function fo(l,C,I){return mn(l,C,I,!0)}function ho(l,C,I){return mn(l,C,I,!1)}var mo=ho,go=fo;St.Fragment=n,St.jsx=mo,St.jsxs=go}()),St}process.env.NODE_ENV==="production"?Or.exports=Eo():Or.exports=ko();var d=Or.exports;const Do=({leftComponents:t,centerComponents:r,rightComponents:e,onClickHelp:n})=>d.jsxs(d.Fragment,{children:[t&&d.jsx(d.Fragment,{children:t}),r&&d.jsx(d.Fragment,{children:r}),e&&d.jsx(d.Fragment,{children:e}),n&&d.jsx("div",{children:d.jsx(z.Tooltip,{placement:"bottom-end",title:"Help for this Window",children:d.jsx(z.Link,{component:"button",onClick:n,sx:{":hover":{cursor:"pointer",color:"#0060AC"},alignSelf:"center",paddingRight:1},underline:"hover",variant:"body1",children:"Help"})})})]}),Ve=({disabled:t,onClick:r,primary:e,size:n,children:a,variant:o,sx:i,...s})=>d.jsx(z.Button,{color:e?"primary":"secondary",disabled:t,disableRipple:!0,onClick:r,size:n||"small",variant:o||"contained",sx:i,...s,children:a}),Mo=({decimalScale:t,disabled:r,id:e,onUpdate:n,placeholder:a,prefix:o,size:i,value:s,width:c})=>d.jsx(Nr.NumericFormat,{customInput:z.OutlinedInput,decimalScale:t||2,disabled:r,fixedDecimalScale:!0,id:e,onFocus:f=>f.target.select(),onValueChange:f=>{n&&n(f.floatValue)},placeholder:a,size:i||"small",startAdornment:o&&d.jsx(z.InputAdornment,{position:"start",children:d.jsx(z.Typography,{children:o})}),sx:{paddingLeft:"8px",width:c||130,"& .MuiInputBase-input":{borderLeft:"1px solid rgba(0, 0, 0, 0.23)",color:"#000",height:"16px",textAlign:"end"},"&.MuiOutlinedInput-root":{backgroundColor:r?"#f3f3f3":"field"}},thousandSeparator:!0,value:s||""}),aa=6048e5,Oo=864e5,oa=6e4,sa=36e5,Po=1e3,pn=Symbol.for("constructDateFrom");function ve(t,r){return typeof t=="function"?t(r):t&&typeof t=="object"&&pn in t?t[pn](r):t instanceof Date?new t.constructor(r):new Date(r)}function B(t,r){return ve(r||t,t)}function Rt(t,r,e){const n=B(t,e==null?void 0:e.in);return isNaN(r)?ve((e==null?void 0:e.in)||t,NaN):(r&&n.setDate(n.getDate()+r),n)}function ia(t,r,e){return ve(t,+B(t)+r)}function _o(t,r,e){return ia(t,r*1e3)}function Ro(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setTime(n.getTime()+r*oa),n}function jo(t,r,e){return ia(t,r*sa)}function $o(t,r,e){return Rt(t,r*7,e)}function ua(t,r,e){const n=B(t,e==null?void 0:e.in);if(isNaN(r))return ve(t,NaN);if(!r)return n;const a=n.getDate(),o=ve(t,n.getTime());o.setMonth(n.getMonth()+r+1,0);const i=o.getDate();return a>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function Io(t,r,e){return ua(t,r*12,e)}function bn(t,r){const e=B(t,r==null?void 0:r.in);return e.setHours(23,59,59,999),e}let Fo={};function ut(){return Fo}function Lo(t,r){var s,c,f,m;const e=ut(),n=(r==null?void 0:r.weekStartsOn)??((c=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??e.weekStartsOn??((m=(f=e.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=B(t,r==null?void 0:r.in),o=a.getDay(),i=(o<n?-7:0)+6-(o-n);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}function wn(t,r){const e=B(t,r==null?void 0:r.in),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}const No={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"}},Ar=(t,r,e)=>{let n;const a=No[t];return typeof a=="string"?n=a:r===1?n=a.one:n=a.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+n:n+" ago":n};function Ze(t){return(r={})=>{const e=r.width?String(r.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const Ao={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ho={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wo={date:Ze({formats:Ao,defaultWidth:"full"}),time:Ze({formats:Ho,defaultWidth:"full"}),dateTime:Ze({formats:Vo,defaultWidth:"full"})},Yo={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hr=(t,r,e,n)=>Yo[t];function Et(t){return(r,e)=>{const n=e!=null&&e.context?String(e.context):"standalone";let a;if(n==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,s=e!=null&&e.width?String(e.width):i;a=t.formattingValues[s]||t.formattingValues[i]}else{const i=t.defaultWidth,s=e!=null&&e.width?String(e.width):t.defaultWidth;a=t.values[s]||t.values[i]}const o=t.argumentCallback?t.argumentCallback(r):r;return a[o]}}const Bo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qo={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zo={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"]},Go={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"]},Qo={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"}},Ko={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"}},Zo=(t,r)=>{const e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Vr={ordinalNumber:Zo,era:Et({values:Bo,defaultWidth:"wide"}),quarter:Et({values:qo,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Et({values:zo,defaultWidth:"wide"}),day:Et({values:Go,defaultWidth:"wide"}),dayPeriod:Et({values:Qo,defaultWidth:"wide",formattingValues:Ko,defaultFormattingWidth:"wide"})};function kt(t){return(r,e={})=>{const n=e.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=r.match(a);if(!o)return null;const i=o[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?Uo(s,h=>h.test(i)):Xo(s,h=>h.test(i));let f;f=t.valueCallback?t.valueCallback(c):c,f=e.valueCallback?e.valueCallback(f):f;const m=r.slice(i.length);return{value:f,rest:m}}}function Xo(t,r){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&r(t[e]))return e}function Uo(t,r){for(let e=0;e<t.length;e++)if(r(t[e]))return e}function Jo(t){return(r,e={})=>{const n=r.match(t.matchPattern);if(!n)return null;const a=n[0],o=r.match(t.parsePattern);if(!o)return null;let i=t.valueCallback?t.valueCallback(o[0]):o[0];i=e.valueCallback?e.valueCallback(i):i;const s=r.slice(a.length);return{value:i,rest:s}}}const es=/^(\d+)(th|st|nd|rd)?/i,ts=/\d+/i,rs={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},ns={any:[/^b/i,/^(a|c)/i]},as={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},os={any:[/1/i,/2/i,/3/i,/4/i]},ss={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},is={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]},us={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},cs={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]},ls={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},fs={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}},Wr={ordinalNumber:Jo({matchPattern:es,parsePattern:ts,valueCallback:t=>parseInt(t,10)}),era:kt({matchPatterns:rs,defaultMatchWidth:"wide",parsePatterns:ns,defaultParseWidth:"any"}),quarter:kt({matchPatterns:as,defaultMatchWidth:"wide",parsePatterns:os,defaultParseWidth:"any",valueCallback:t=>t+1}),month:kt({matchPatterns:ss,defaultMatchWidth:"wide",parsePatterns:is,defaultParseWidth:"any"}),day:kt({matchPatterns:us,defaultMatchWidth:"wide",parsePatterns:cs,defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:ls,defaultMatchWidth:"any",parsePatterns:fs,defaultParseWidth:"any"})},jt={code:"en-US",formatDistance:Ar,formatLong:Wo,formatRelative:Hr,localize:Vr,match:Wr,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Kt(t){const r=B(t),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+t-+e}function Nt(t,...r){const e=ve.bind(null,r.find(n=>typeof n=="object"));return r.map(e)}function $t(t,r){const e=B(t,r==null?void 0:r.in);return e.setHours(0,0,0,0),e}function ds(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r),o=$t(n),i=$t(a),s=+o-Kt(o),c=+i-Kt(i);return Math.round((s-c)/Oo)}function ca(t,r){const e=B(t,r==null?void 0:r.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function hs(t,r){const e=B(t,r==null?void 0:r.in);return ds(e,ca(e))+1}function Xe(t,r){var s,c,f,m;const e=ut(),n=(r==null?void 0:r.weekStartsOn)??((c=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??e.weekStartsOn??((m=(f=e.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=B(t,r==null?void 0:r.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function wt(t,r){return Xe(t,{...r,weekStartsOn:1})}function la(t,r){const e=B(t,r==null?void 0:r.in),n=e.getFullYear(),a=ve(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const o=wt(a),i=ve(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=wt(i);return e.getTime()>=o.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function ms(t,r){const e=la(t,r),n=ve(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),wt(n)}function fa(t,r){const e=B(t,r==null?void 0:r.in),n=+wt(e)-+ms(e);return Math.round(n/aa)+1}function Yr(t,r){var m,h,g,x;const e=B(t,r==null?void 0:r.in),n=e.getFullYear(),a=ut(),o=(r==null?void 0:r.firstWeekContainsDate)??((h=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((x=(g=a.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,i=ve((r==null?void 0:r.in)||t,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const s=Xe(i,r),c=ve((r==null?void 0:r.in)||t,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const f=Xe(c,r);return+e>=+s?n+1:+e>=+f?n:n-1}function gs(t,r){var s,c,f,m;const e=ut(),n=(r==null?void 0:r.firstWeekContainsDate)??((c=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??e.firstWeekContainsDate??((m=(f=e.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=Yr(t,r),o=ve((r==null?void 0:r.in)||t,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),Xe(o,r)}function Br(t,r){const e=B(t,r==null?void 0:r.in),n=+Xe(e,r)-+gs(e,r);return Math.round(n/aa)+1}function me(t,r){const e=t<0?"-":"",n=Math.abs(t).toString().padStart(r,"0");return e+n}const Je={y(t,r){const e=t.getFullYear(),n=e>0?e:1-e;return me(r==="yy"?n%100:n,r.length)},M(t,r){const e=t.getMonth();return r==="M"?String(e+1):me(e+1,2)},d(t,r){return me(t.getDate(),r.length)},a(t,r){const e=t.getHours()/12>=1?"pm":"am";switch(r){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(t,r){return me(t.getHours()%12||12,r.length)},H(t,r){return me(t.getHours(),r.length)},m(t,r){return me(t.getMinutes(),r.length)},s(t,r){return me(t.getSeconds(),r.length)},S(t,r){const e=r.length,n=t.getMilliseconds(),a=Math.trunc(n*Math.pow(10,e-3));return me(a,r.length)}},ft={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vn={G:function(t,r,e){const n=t.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(n,{width:"abbreviated"});case"GGGGG":return e.era(n,{width:"narrow"});case"GGGG":default:return e.era(n,{width:"wide"})}},y:function(t,r,e){if(r==="yo"){const n=t.getFullYear(),a=n>0?n:1-n;return e.ordinalNumber(a,{unit:"year"})}return Je.y(t,r)},Y:function(t,r,e,n){const a=Yr(t,n),o=a>0?a:1-a;if(r==="YY"){const i=o%100;return me(i,2)}return r==="Yo"?e.ordinalNumber(o,{unit:"year"}):me(o,r.length)},R:function(t,r){const e=la(t);return me(e,r.length)},u:function(t,r){const e=t.getFullYear();return me(e,r.length)},Q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return me(n,2);case"Qo":return e.ordinalNumber(n,{unit:"quarter"});case"QQQ":return e.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return me(n,2);case"qo":return e.ordinalNumber(n,{unit:"quarter"});case"qqq":return e.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,e){const n=t.getMonth();switch(r){case"M":case"MM":return Je.M(t,r);case"Mo":return e.ordinalNumber(n+1,{unit:"month"});case"MMM":return e.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,e){const n=t.getMonth();switch(r){case"L":return String(n+1);case"LL":return me(n+1,2);case"Lo":return e.ordinalNumber(n+1,{unit:"month"});case"LLL":return e.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,e,n){const a=Br(t,n);return r==="wo"?e.ordinalNumber(a,{unit:"week"}):me(a,r.length)},I:function(t,r,e){const n=fa(t);return r==="Io"?e.ordinalNumber(n,{unit:"week"}):me(n,r.length)},d:function(t,r,e){return r==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):Je.d(t,r)},D:function(t,r,e){const n=hs(t);return r==="Do"?e.ordinalNumber(n,{unit:"dayOfYear"}):me(n,r.length)},E:function(t,r,e){const n=t.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(n,{width:"short",context:"formatting"});case"EEEE":default:return e.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,e,n){const a=t.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return me(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,e,n){const a=t.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return me(o,r.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,e){const n=t.getDay(),a=n===0?7:n;switch(r){case"i":return String(a);case"ii":return me(a,r.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(n,{width:"short",context:"formatting"});case"iiii":default:return e.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,e){const a=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,e){const n=t.getHours();let a;switch(n===12?a=ft.noon:n===0?a=ft.midnight:a=n/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,e){const n=t.getHours();let a;switch(n>=17?a=ft.evening:n>=12?a=ft.afternoon:n>=4?a=ft.morning:a=ft.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,e){if(r==="ho"){let n=t.getHours()%12;return n===0&&(n=12),e.ordinalNumber(n,{unit:"hour"})}return Je.h(t,r)},H:function(t,r,e){return r==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):Je.H(t,r)},K:function(t,r,e){const n=t.getHours()%12;return r==="Ko"?e.ordinalNumber(n,{unit:"hour"}):me(n,r.length)},k:function(t,r,e){let n=t.getHours();return n===0&&(n=24),r==="ko"?e.ordinalNumber(n,{unit:"hour"}):me(n,r.length)},m:function(t,r,e){return r==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):Je.m(t,r)},s:function(t,r,e){return r==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):Je.s(t,r)},S:function(t,r){return Je.S(t,r)},X:function(t,r,e){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return Cn(n);case"XXXX":case"XX":return st(n);case"XXXXX":case"XXX":default:return st(n,":")}},x:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"x":return Cn(n);case"xxxx":case"xx":return st(n);case"xxxxx":case"xxx":default:return st(n,":")}},O:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+xn(n,":");case"OOOO":default:return"GMT"+st(n,":")}},z:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+xn(n,":");case"zzzz":default:return"GMT"+st(n,":")}},t:function(t,r,e){const n=Math.trunc(+t/1e3);return me(n,r.length)},T:function(t,r,e){return me(+t,r.length)}};function xn(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=Math.trunc(n/60),o=n%60;return o===0?e+String(a):e+String(a)+r+me(o,2)}function Cn(t,r){return t%60===0?(t>0?"-":"+")+me(Math.abs(t)/60,2):st(t,r)}function st(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=me(Math.trunc(n/60),2),o=me(n%60,2);return e+a+r+o}const Tn=(t,r)=>{switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},da=(t,r)=>{switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},ys=(t,r)=>{const e=t.match(/(P+)(p+)?/)||[],n=e[1],a=e[2];if(!a)return Tn(t,r);let o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Tn(n,r)).replace("{{time}}",da(a,r))},It={p:da,P:ys},ps=/^D+$/,bs=/^Y+$/,ws=["D","DD","YY","YYYY"];function ha(t){return ps.test(t)}function ma(t){return bs.test(t)}function Pr(t,r,e){const n=vs(t,r,e);if(console.warn(n),ws.includes(t))throw new RangeError(n)}function vs(t,r,e){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${r}\`) for formatting ${n} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function xs(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function ga(t){return!(!xs(t)&&typeof t!="number"||isNaN(+B(t)))}const Cs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ts=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ss=/^'([^]*?)'?$/,Es=/''/g,ks=/[a-zA-Z]/;function Ds(t,r,e){var m,h,g,x,k,w,y,P;const n=ut(),a=(e==null?void 0:e.locale)??n.locale??jt,o=(e==null?void 0:e.firstWeekContainsDate)??((h=(m=e==null?void 0:e.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((x=(g=n.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((w=(k=e==null?void 0:e.locale)==null?void 0:k.options)==null?void 0:w.weekStartsOn)??n.weekStartsOn??((P=(y=n.locale)==null?void 0:y.options)==null?void 0:P.weekStartsOn)??0,s=B(t,e==null?void 0:e.in);if(!ga(s))throw new RangeError("Invalid time value");let c=r.match(Ts).map(_=>{const D=_[0];if(D==="p"||D==="P"){const M=It[D];return M(_,a.formatLong)}return _}).join("").match(Cs).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const D=_[0];if(D==="'")return{isToken:!1,value:Ms(_)};if(vn[D])return{isToken:!0,value:_};if(D.match(ks))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return{isToken:!1,value:_}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return c.map(_=>{if(!_.isToken)return _.value;const D=_.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&ma(D)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&ha(D))&&Pr(D,r,String(t));const M=vn[D[0]];return M(s,D,a.localize,f)}).join("")}function Ms(t){const r=t.match(Ss);return r?r[1].replace(Es,"'"):t}function Os(t,r){return B(t,r==null?void 0:r.in).getDate()}function ya(t,r){const e=B(t,r==null?void 0:r.in),n=e.getFullYear(),a=e.getMonth(),o=ve(e,0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}function Ps(t,r){return B(t,r==null?void 0:r.in).getHours()}function _s(t,r){return B(t,r==null?void 0:r.in).getMinutes()}function Rs(t,r){return B(t,r==null?void 0:r.in).getMonth()}function js(t){return B(t).getSeconds()}function $s(t){return B(t).getMilliseconds()}function Is(t,r){return B(t,r==null?void 0:r.in).getFullYear()}function yr(t,r){return+B(t)>+B(r)}function pr(t,r){return+B(t)<+B(r)}function Fs(t,r){return+B(t)==+B(r)}function Ls(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return+$t(n)==+$t(a)}function Ns(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return n.getFullYear()===a.getFullYear()}function As(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}function Sn(t,r){const e=B(t,r==null?void 0:r.in);return e.setMinutes(0,0,0),e}function Hs(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return+Sn(n)==+Sn(a)}function Vs(){return Object.assign({},ut())}function Ws(t,r){const e=Ys(r)?new r(0):ve(r,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function Ys(t){var r;return typeof t=="function"&&((r=t.prototype)==null?void 0:r.constructor)===t}const Bs=10;class pa{constructor(){F(this,"subPriority",0)}validate(r,e){return!0}}class qs extends pa{constructor(r,e,n,a,o){super(),this.value=r,this.validateValue=e,this.setValue=n,this.priority=a,o&&(this.subPriority=o)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,n){return this.setValue(r,e,this.value,n)}}class zs extends pa{constructor(e,n){super();F(this,"priority",Bs);F(this,"subPriority",-1);this.context=e||(a=>ve(n,a))}set(e,n){return n.timestampIsSet?e:ve(e,Ws(e,this.context))}}class ue{run(r,e,n,a){const o=this.parse(r,e,n,a);return o?{setter:new qs(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(r,e,n){return!0}}class Gs extends ue{constructor(){super(...arguments);F(this,"priority",140);F(this,"incompatibleTokens",["R","u","t","T"])}parse(e,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,n,a){return n.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}const De={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}/},qe={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 Me(t,r){return t&&{value:r(t.value),rest:t.rest}}function xe(t,r){const e=r.match(t);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function ze(t,r){const e=r.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const n=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,i=e[5]?parseInt(e[5],10):0;return{value:n*(a*sa+o*oa+i*Po),rest:r.slice(e[0].length)}}function ba(t){return xe(De.anyDigitsSigned,t)}function Se(t,r){switch(t){case 1:return xe(De.singleDigit,r);case 2:return xe(De.twoDigits,r);case 3:return xe(De.threeDigits,r);case 4:return xe(De.fourDigits,r);default:return xe(new RegExp("^\\d{1,"+t+"}"),r)}}function Zt(t,r){switch(t){case 1:return xe(De.singleDigitSigned,r);case 2:return xe(De.twoDigitsSigned,r);case 3:return xe(De.threeDigitsSigned,r);case 4:return xe(De.fourDigitsSigned,r);default:return xe(new RegExp("^-?\\d{1,"+t+"}"),r)}}function qr(t){switch(t){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 wa(t,r){const e=r>0,n=e?r:1-r;let a;if(n<=50)a=t||100;else{const o=n+50,i=Math.trunc(o/100)*100,s=t>=o%100;a=t+i-(s?100:0)}return e?a:1-a}function va(t){return t%400===0||t%4===0&&t%100!==0}class Qs extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,n,a){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return Me(Se(4,e),o);case"yo":return Me(a.ordinalNumber(e,{unit:"year"}),o);default:return Me(Se(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a){const o=e.getFullYear();if(a.isTwoDigitYear){const s=wa(a.year,o);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const i=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class Ks extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,n,a){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Me(Se(4,e),o);case"Yo":return Me(a.ordinalNumber(e,{unit:"year"}),o);default:return Me(Se(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a,o){const i=Yr(e,o);if(a.isTwoDigitYear){const c=wa(a.year,i);return e.setFullYear(c,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Xe(e,o)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(s,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Xe(e,o)}}class Zs extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,n){return Zt(n==="R"?4:n.length,e)}set(e,n,a){const o=ve(e,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),wt(o)}}class Xs extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,n){return Zt(n==="u"?4:n.length,e)}set(e,n,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class Us extends ue{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"Q":case"QQ":return Se(n.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class Js extends ue{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"q":case"qq":return Se(n.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class ei extends ue{constructor(){super(...arguments);F(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);F(this,"priority",110)}parse(e,n,a){const o=i=>i-1;switch(n){case"M":return Me(xe(De.month,e),o);case"MM":return Me(Se(2,e),o);case"Mo":return Me(a.ordinalNumber(e,{unit:"month"}),o);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}class ti extends ue{constructor(){super(...arguments);F(this,"priority",110);F(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,n,a){const o=i=>i-1;switch(n){case"L":return Me(xe(De.month,e),o);case"LL":return Me(Se(2,e),o);case"Lo":return Me(a.ordinalNumber(e,{unit:"month"}),o);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}function ri(t,r,e){const n=B(t,e==null?void 0:e.in),a=Br(n,e)-r;return n.setDate(n.getDate()-a*7),B(n,e==null?void 0:e.in)}class ni extends ue{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,n,a){switch(n){case"w":return xe(De.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a,o){return Xe(ri(e,a,o),o)}}function ai(t,r,e){const n=B(t,e==null?void 0:e.in),a=fa(n,e)-r;return n.setDate(n.getDate()-a*7),n}class oi extends ue{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,n,a){switch(n){case"I":return xe(De.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a){return wt(ai(e,a))}}const si=[31,28,31,30,31,30,31,31,30,31,30,31],ii=[31,29,31,30,31,30,31,31,30,31,30,31];class ui extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"subPriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"d":return xe(De.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return Se(n.length,e)}}validate(e,n){const a=e.getFullYear(),o=va(a),i=e.getMonth();return o?n>=1&&n<=ii[i]:n>=1&&n<=si[i]}set(e,n,a){return e.setDate(a),e.setHours(0,0,0,0),e}}class ci extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"subpriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,n,a){switch(n){case"D":case"DD":return xe(De.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return Se(n.length,e)}}validate(e,n){const a=e.getFullYear();return va(a)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}}function zr(t,r,e){var h,g,x,k;const n=ut(),a=(e==null?void 0:e.weekStartsOn)??((g=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??n.weekStartsOn??((k=(x=n.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??0,o=B(t,e==null?void 0:e.in),i=o.getDay(),c=(r%7+7)%7,f=7-a,m=r<0||r>6?r-(i+f)%7:(c+f)%7-(i+f)%7;return Rt(o,m,e)}class li extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,o){return e=zr(e,a,o),e.setHours(0,0,0,0),e}}class fi extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,n,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(n){case"e":case"ee":return Me(Se(n.length,e),i);case"eo":return Me(a.ordinalNumber(e,{unit:"day"}),i);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,o){return e=zr(e,a,o),e.setHours(0,0,0,0),e}}class di extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,n,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(n){case"c":case"cc":return Me(Se(n.length,e),i);case"co":return Me(a.ordinalNumber(e,{unit:"day"}),i);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,o){return e=zr(e,a,o),e.setHours(0,0,0,0),e}}function hi(t,r){const e=B(t,r==null?void 0:r.in).getDay();return e===0?7:e}function mi(t,r,e){const n=B(t,e==null?void 0:e.in),a=hi(n,e),o=r-a;return Rt(n,o,e)}class gi extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,n,a){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return Se(n.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return Me(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return Me(a.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Me(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Me(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,n){return n>=1&&n<=7}set(e,n,a){return e=mi(e,a),e.setHours(0,0,0,0),e}}class yi extends ue{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(qr(a),0,0,0),e}}class pi extends ue{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(qr(a),0,0,0),e}}class bi extends ue{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","b","t","T"])}parse(e,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(qr(a),0,0,0),e}}class wi extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,n,a){switch(n){case"h":return xe(De.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,a){const o=e.getHours()>=12;return o&&a<12?e.setHours(a+12,0,0,0):!o&&a===12?e.setHours(0,0,0,0):e.setHours(a,0,0,0),e}}class vi extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,n,a){switch(n){case"H":return xe(De.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,a){return e.setHours(a,0,0,0),e}}class xi extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,n,a){switch(n){case"K":return xe(De.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}}class Ci extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,n,a){switch(n){case"k":return xe(De.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,a){const o=a<=24?a%24:a;return e.setHours(o,0,0,0),e}}class Ti extends ue{constructor(){super(...arguments);F(this,"priority",60);F(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"m":return xe(De.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setMinutes(a,0,0),e}}class Si extends ue{constructor(){super(...arguments);F(this,"priority",50);F(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"s":return xe(De.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setSeconds(a,0),e}}class Ei extends ue{constructor(){super(...arguments);F(this,"priority",30);F(this,"incompatibleTokens",["t","T"])}parse(e,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return Me(Se(n.length,e),a)}set(e,n,a){return e.setMilliseconds(a),e}}class ki extends ue{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","x"])}parse(e,n){switch(n){case"X":return ze(qe.basicOptionalMinutes,e);case"XX":return ze(qe.basic,e);case"XXXX":return ze(qe.basicOptionalSeconds,e);case"XXXXX":return ze(qe.extendedOptionalSeconds,e);case"XXX":default:return ze(qe.extended,e)}}set(e,n,a){return n.timestampIsSet?e:ve(e,e.getTime()-Kt(e)-a)}}class Di extends ue{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","X"])}parse(e,n){switch(n){case"x":return ze(qe.basicOptionalMinutes,e);case"xx":return ze(qe.basic,e);case"xxxx":return ze(qe.basicOptionalSeconds,e);case"xxxxx":return ze(qe.extendedOptionalSeconds,e);case"xxx":default:return ze(qe.extended,e)}}set(e,n,a){return n.timestampIsSet?e:ve(e,e.getTime()-Kt(e)-a)}}class Mi extends ue{constructor(){super(...arguments);F(this,"priority",40);F(this,"incompatibleTokens","*")}parse(e){return ba(e)}set(e,n,a){return[ve(e,a*1e3),{timestampIsSet:!0}]}}class Oi extends ue{constructor(){super(...arguments);F(this,"priority",20);F(this,"incompatibleTokens","*")}parse(e){return ba(e)}set(e,n,a){return[ve(e,a),{timestampIsSet:!0}]}}const Pi={G:new Gs,y:new Qs,Y:new Ks,R:new Zs,u:new Xs,Q:new Us,q:new Js,M:new ei,L:new ti,w:new ni,I:new oi,d:new ui,D:new ci,E:new li,e:new fi,c:new di,i:new gi,a:new yi,b:new pi,B:new bi,h:new wi,H:new vi,K:new xi,k:new Ci,m:new Ti,s:new Si,S:new Ei,X:new ki,x:new Di,t:new Mi,T:new Oi},_i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ri=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ji=/^'([^]*?)'?$/,$i=/''/g,Ii=/\S/,Fi=/[a-zA-Z]/;function Li(t,r,e,n){var y,P,_,D,M,b,Y,U;const a=()=>ve((n==null?void 0:n.in)||e,NaN),o=Vs(),i=(n==null?void 0:n.locale)??o.locale??jt,s=(n==null?void 0:n.firstWeekContainsDate)??((P=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:P.firstWeekContainsDate)??o.firstWeekContainsDate??((D=(_=o.locale)==null?void 0:_.options)==null?void 0:D.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((b=(M=n==null?void 0:n.locale)==null?void 0:M.options)==null?void 0:b.weekStartsOn)??o.weekStartsOn??((U=(Y=o.locale)==null?void 0:Y.options)==null?void 0:U.weekStartsOn)??0;if(!r)return t?a():B(e,n==null?void 0:n.in);const f={firstWeekContainsDate:s,weekStartsOn:c,locale:i},m=[new zs(n==null?void 0:n.in,e)],h=r.match(Ri).map(N=>{const E=N[0];if(E in It){const u=It[E];return u(N,i.formatLong)}return N}).join("").match(_i),g=[];for(let N of h){!(n!=null&&n.useAdditionalWeekYearTokens)&&ma(N)&&Pr(N,r,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&ha(N)&&Pr(N,r,t);const E=N[0],u=Pi[E];if(u){const{incompatibleTokens:T}=u;if(Array.isArray(T)){const A=g.find(ne=>T.includes(ne.token)||ne.token===E);if(A)throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${N}\` at the same time`)}else if(u.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${N}\` and any other token at the same time`);g.push({token:E,fullToken:N});const R=u.run(t,N,i.match,f);if(!R)return a();m.push(R.setter),t=R.rest}else{if(E.match(Fi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(N==="''"?N="'":E==="'"&&(N=Ni(N)),t.indexOf(N)===0)t=t.slice(N.length);else return a()}}if(t.length>0&&Ii.test(t))return a();const x=m.map(N=>N.priority).sort((N,E)=>E-N).filter((N,E,u)=>u.indexOf(N)===E).map(N=>m.filter(E=>E.priority===N).sort((E,u)=>u.subPriority-E.subPriority)).map(N=>N[0]);let k=B(e,n==null?void 0:n.in);if(isNaN(+k))return a();const w={};for(const N of x){if(!N.validate(k,f))return a();const E=N.set(k,w,f);Array.isArray(E)?(k=E[0],Object.assign(w,E[1])):k=E}return k}function Ni(t){return t.match(ji)[1].replace($i,"'")}function Ai(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setDate(r),n}function Hi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setHours(r),n}function Vi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setMinutes(r),n}function Wi(t,r,e){const n=B(t,e==null?void 0:e.in),a=n.getFullYear(),o=n.getDate(),i=ve(t,0);i.setFullYear(a,r,15),i.setHours(0,0,0,0);const s=ya(i);return n.setMonth(r,Math.min(o,s)),n}function Yi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setSeconds(r),n}function Bi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setMilliseconds(r),n}function qi(t,r,e){const n=B(t,e==null?void 0:e.in);return isNaN(+n)?ve(t,NaN):(n.setFullYear(r),n)}function zi(t,r){const e=B(t,r==null?void 0:r.in);return e.setDate(1),e.setHours(0,0,0,0),e}function Gi(t,r){const e=B(t,r==null?void 0:r.in),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Qi(t,r,e){const n=+B(t,e==null?void 0:e.in),[a,o]=[+B(r.start,e==null?void 0:e.in),+B(r.end,e==null?void 0:e.in)].sort((i,s)=>i-s);return n>=a&&n<=o}function _r(){return _r=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},_r.apply(null,arguments)}const Ki={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Zi={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class Xi{constructor(r){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=Ki,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=i=>i,this.toJsDate=i=>i,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=i=>{const s=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return i.match(s).map(c=>{const f=c[0];if(f==="p"||f==="P"){const m=this.longFormatters[f];return m(c,this.locale.formatLong)}return c}).join("")},this.formatNumber=i=>i,this.getDayOfWeek=i=>i.getDay()+1;const{locale:e,formats:n,longFormatters:a,lib:o}=r;this.locale=e,this.formats=_r({},Zi,n),this.longFormatters=a,this.lib=o||"date-fns"}}class xa extends Xi{constructor({locale:r,formats:e}={}){if(process.env.NODE_ENV!=="production"){if(typeof Rt!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFns` instead."].join(`
|
|
30
|
+
<%s key={someKey} {...props} />`,gr,ot,yo,ot),hn[ot+gr]=!0}}return l===n?lo(Pe):co(Pe),Pe}}function fo(l,C,I){return mn(l,C,I,!0)}function ho(l,C,I){return mn(l,C,I,!1)}var mo=ho,go=fo;St.Fragment=n,St.jsx=mo,St.jsxs=go}()),St}process.env.NODE_ENV==="production"?Or.exports=Eo():Or.exports=ko();var d=Or.exports;const Do=({leftComponents:t,centerComponents:r,rightComponents:e,onClickHelp:n})=>d.jsxs(d.Fragment,{children:[t&&d.jsx(d.Fragment,{children:t}),r&&d.jsx(d.Fragment,{children:r}),e&&d.jsx(d.Fragment,{children:e}),n&&d.jsx("div",{children:d.jsx(z.Tooltip,{placement:"bottom-end",title:"Help for this Window",children:d.jsx(z.Link,{component:"button",onClick:n,sx:{":hover":{cursor:"pointer",color:"#0060AC"},alignSelf:"center",paddingRight:1},underline:"hover",variant:"body1",children:"Help"})})})]}),Ve=({disabled:t,onClick:r,primary:e,size:n,children:a,variant:o,sx:i,...s})=>d.jsx(z.Button,{color:e?"primary":"secondary",disabled:t,disableRipple:!0,onClick:r,size:n||"small",variant:o||"contained",sx:i,...s,children:a}),Mo=({decimalScale:t,disabled:r,id:e,onUpdate:n,placeholder:a,prefix:o,size:i,value:s,maxLength:c,width:f})=>d.jsx(Nr.NumericFormat,{customInput:z.OutlinedInput,decimalScale:t||2,disabled:r,fixedDecimalScale:!0,id:e,slotProps:{input:{maxLength:c}},onFocus:m=>m.target.select(),onValueChange:m=>{n&&n(m.floatValue)},placeholder:a,size:i||"small",startAdornment:o&&d.jsx(z.InputAdornment,{position:"start",children:d.jsx(z.Typography,{children:o})}),sx:{paddingLeft:"8px",width:f||130,"& .MuiInputBase-input":{borderLeft:"1px solid rgba(0, 0, 0, 0.23)",color:"#000",height:"16px",textAlign:"end"},"&.MuiOutlinedInput-root":{backgroundColor:r?"#f3f3f3":"field"}},thousandSeparator:!0,value:s||""}),aa=6048e5,Oo=864e5,oa=6e4,sa=36e5,Po=1e3,pn=Symbol.for("constructDateFrom");function ve(t,r){return typeof t=="function"?t(r):t&&typeof t=="object"&&pn in t?t[pn](r):t instanceof Date?new t.constructor(r):new Date(r)}function B(t,r){return ve(r||t,t)}function Rt(t,r,e){const n=B(t,e==null?void 0:e.in);return isNaN(r)?ve((e==null?void 0:e.in)||t,NaN):(r&&n.setDate(n.getDate()+r),n)}function ia(t,r,e){return ve(t,+B(t)+r)}function _o(t,r,e){return ia(t,r*1e3)}function Ro(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setTime(n.getTime()+r*oa),n}function jo(t,r,e){return ia(t,r*sa)}function $o(t,r,e){return Rt(t,r*7,e)}function ua(t,r,e){const n=B(t,e==null?void 0:e.in);if(isNaN(r))return ve(t,NaN);if(!r)return n;const a=n.getDate(),o=ve(t,n.getTime());o.setMonth(n.getMonth()+r+1,0);const i=o.getDate();return a>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}function Io(t,r,e){return ua(t,r*12,e)}function bn(t,r){const e=B(t,r==null?void 0:r.in);return e.setHours(23,59,59,999),e}let Fo={};function ut(){return Fo}function Lo(t,r){var s,c,f,m;const e=ut(),n=(r==null?void 0:r.weekStartsOn)??((c=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??e.weekStartsOn??((m=(f=e.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=B(t,r==null?void 0:r.in),o=a.getDay(),i=(o<n?-7:0)+6-(o-n);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}function wn(t,r){const e=B(t,r==null?void 0:r.in),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}const No={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"}},Ar=(t,r,e)=>{let n;const a=No[t];return typeof a=="string"?n=a:r===1?n=a.one:n=a.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+n:n+" ago":n};function Ze(t){return(r={})=>{const e=r.width?String(r.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const Ao={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ho={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wo={date:Ze({formats:Ao,defaultWidth:"full"}),time:Ze({formats:Ho,defaultWidth:"full"}),dateTime:Ze({formats:Vo,defaultWidth:"full"})},Yo={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hr=(t,r,e,n)=>Yo[t];function Et(t){return(r,e)=>{const n=e!=null&&e.context?String(e.context):"standalone";let a;if(n==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,s=e!=null&&e.width?String(e.width):i;a=t.formattingValues[s]||t.formattingValues[i]}else{const i=t.defaultWidth,s=e!=null&&e.width?String(e.width):t.defaultWidth;a=t.values[s]||t.values[i]}const o=t.argumentCallback?t.argumentCallback(r):r;return a[o]}}const Bo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qo={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zo={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"]},Go={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"]},Qo={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"}},Ko={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"}},Zo=(t,r)=>{const e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Vr={ordinalNumber:Zo,era:Et({values:Bo,defaultWidth:"wide"}),quarter:Et({values:qo,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Et({values:zo,defaultWidth:"wide"}),day:Et({values:Go,defaultWidth:"wide"}),dayPeriod:Et({values:Qo,defaultWidth:"wide",formattingValues:Ko,defaultFormattingWidth:"wide"})};function kt(t){return(r,e={})=>{const n=e.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=r.match(a);if(!o)return null;const i=o[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?Uo(s,h=>h.test(i)):Xo(s,h=>h.test(i));let f;f=t.valueCallback?t.valueCallback(c):c,f=e.valueCallback?e.valueCallback(f):f;const m=r.slice(i.length);return{value:f,rest:m}}}function Xo(t,r){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&r(t[e]))return e}function Uo(t,r){for(let e=0;e<t.length;e++)if(r(t[e]))return e}function Jo(t){return(r,e={})=>{const n=r.match(t.matchPattern);if(!n)return null;const a=n[0],o=r.match(t.parsePattern);if(!o)return null;let i=t.valueCallback?t.valueCallback(o[0]):o[0];i=e.valueCallback?e.valueCallback(i):i;const s=r.slice(a.length);return{value:i,rest:s}}}const es=/^(\d+)(th|st|nd|rd)?/i,ts=/\d+/i,rs={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},ns={any:[/^b/i,/^(a|c)/i]},as={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},os={any:[/1/i,/2/i,/3/i,/4/i]},ss={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},is={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]},us={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},cs={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]},ls={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},fs={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}},Wr={ordinalNumber:Jo({matchPattern:es,parsePattern:ts,valueCallback:t=>parseInt(t,10)}),era:kt({matchPatterns:rs,defaultMatchWidth:"wide",parsePatterns:ns,defaultParseWidth:"any"}),quarter:kt({matchPatterns:as,defaultMatchWidth:"wide",parsePatterns:os,defaultParseWidth:"any",valueCallback:t=>t+1}),month:kt({matchPatterns:ss,defaultMatchWidth:"wide",parsePatterns:is,defaultParseWidth:"any"}),day:kt({matchPatterns:us,defaultMatchWidth:"wide",parsePatterns:cs,defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:ls,defaultMatchWidth:"any",parsePatterns:fs,defaultParseWidth:"any"})},jt={code:"en-US",formatDistance:Ar,formatLong:Wo,formatRelative:Hr,localize:Vr,match:Wr,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Kt(t){const r=B(t),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+t-+e}function Nt(t,...r){const e=ve.bind(null,r.find(n=>typeof n=="object"));return r.map(e)}function $t(t,r){const e=B(t,r==null?void 0:r.in);return e.setHours(0,0,0,0),e}function ds(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r),o=$t(n),i=$t(a),s=+o-Kt(o),c=+i-Kt(i);return Math.round((s-c)/Oo)}function ca(t,r){const e=B(t,r==null?void 0:r.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function hs(t,r){const e=B(t,r==null?void 0:r.in);return ds(e,ca(e))+1}function Xe(t,r){var s,c,f,m;const e=ut(),n=(r==null?void 0:r.weekStartsOn)??((c=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??e.weekStartsOn??((m=(f=e.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=B(t,r==null?void 0:r.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function wt(t,r){return Xe(t,{...r,weekStartsOn:1})}function la(t,r){const e=B(t,r==null?void 0:r.in),n=e.getFullYear(),a=ve(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const o=wt(a),i=ve(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=wt(i);return e.getTime()>=o.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function ms(t,r){const e=la(t,r),n=ve(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),wt(n)}function fa(t,r){const e=B(t,r==null?void 0:r.in),n=+wt(e)-+ms(e);return Math.round(n/aa)+1}function Yr(t,r){var m,h,g,x;const e=B(t,r==null?void 0:r.in),n=e.getFullYear(),a=ut(),o=(r==null?void 0:r.firstWeekContainsDate)??((h=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((x=(g=a.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,i=ve((r==null?void 0:r.in)||t,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const s=Xe(i,r),c=ve((r==null?void 0:r.in)||t,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const f=Xe(c,r);return+e>=+s?n+1:+e>=+f?n:n-1}function gs(t,r){var s,c,f,m;const e=ut(),n=(r==null?void 0:r.firstWeekContainsDate)??((c=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??e.firstWeekContainsDate??((m=(f=e.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=Yr(t,r),o=ve((r==null?void 0:r.in)||t,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),Xe(o,r)}function Br(t,r){const e=B(t,r==null?void 0:r.in),n=+Xe(e,r)-+gs(e,r);return Math.round(n/aa)+1}function me(t,r){const e=t<0?"-":"",n=Math.abs(t).toString().padStart(r,"0");return e+n}const Je={y(t,r){const e=t.getFullYear(),n=e>0?e:1-e;return me(r==="yy"?n%100:n,r.length)},M(t,r){const e=t.getMonth();return r==="M"?String(e+1):me(e+1,2)},d(t,r){return me(t.getDate(),r.length)},a(t,r){const e=t.getHours()/12>=1?"pm":"am";switch(r){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(t,r){return me(t.getHours()%12||12,r.length)},H(t,r){return me(t.getHours(),r.length)},m(t,r){return me(t.getMinutes(),r.length)},s(t,r){return me(t.getSeconds(),r.length)},S(t,r){const e=r.length,n=t.getMilliseconds(),a=Math.trunc(n*Math.pow(10,e-3));return me(a,r.length)}},ft={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vn={G:function(t,r,e){const n=t.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(n,{width:"abbreviated"});case"GGGGG":return e.era(n,{width:"narrow"});case"GGGG":default:return e.era(n,{width:"wide"})}},y:function(t,r,e){if(r==="yo"){const n=t.getFullYear(),a=n>0?n:1-n;return e.ordinalNumber(a,{unit:"year"})}return Je.y(t,r)},Y:function(t,r,e,n){const a=Yr(t,n),o=a>0?a:1-a;if(r==="YY"){const i=o%100;return me(i,2)}return r==="Yo"?e.ordinalNumber(o,{unit:"year"}):me(o,r.length)},R:function(t,r){const e=la(t);return me(e,r.length)},u:function(t,r){const e=t.getFullYear();return me(e,r.length)},Q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return me(n,2);case"Qo":return e.ordinalNumber(n,{unit:"quarter"});case"QQQ":return e.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return me(n,2);case"qo":return e.ordinalNumber(n,{unit:"quarter"});case"qqq":return e.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,e){const n=t.getMonth();switch(r){case"M":case"MM":return Je.M(t,r);case"Mo":return e.ordinalNumber(n+1,{unit:"month"});case"MMM":return e.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,e){const n=t.getMonth();switch(r){case"L":return String(n+1);case"LL":return me(n+1,2);case"Lo":return e.ordinalNumber(n+1,{unit:"month"});case"LLL":return e.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,e,n){const a=Br(t,n);return r==="wo"?e.ordinalNumber(a,{unit:"week"}):me(a,r.length)},I:function(t,r,e){const n=fa(t);return r==="Io"?e.ordinalNumber(n,{unit:"week"}):me(n,r.length)},d:function(t,r,e){return r==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):Je.d(t,r)},D:function(t,r,e){const n=hs(t);return r==="Do"?e.ordinalNumber(n,{unit:"dayOfYear"}):me(n,r.length)},E:function(t,r,e){const n=t.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(n,{width:"short",context:"formatting"});case"EEEE":default:return e.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,e,n){const a=t.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return me(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,e,n){const a=t.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return me(o,r.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,e){const n=t.getDay(),a=n===0?7:n;switch(r){case"i":return String(a);case"ii":return me(a,r.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(n,{width:"short",context:"formatting"});case"iiii":default:return e.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,e){const a=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,e){const n=t.getHours();let a;switch(n===12?a=ft.noon:n===0?a=ft.midnight:a=n/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,e){const n=t.getHours();let a;switch(n>=17?a=ft.evening:n>=12?a=ft.afternoon:n>=4?a=ft.morning:a=ft.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,e){if(r==="ho"){let n=t.getHours()%12;return n===0&&(n=12),e.ordinalNumber(n,{unit:"hour"})}return Je.h(t,r)},H:function(t,r,e){return r==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):Je.H(t,r)},K:function(t,r,e){const n=t.getHours()%12;return r==="Ko"?e.ordinalNumber(n,{unit:"hour"}):me(n,r.length)},k:function(t,r,e){let n=t.getHours();return n===0&&(n=24),r==="ko"?e.ordinalNumber(n,{unit:"hour"}):me(n,r.length)},m:function(t,r,e){return r==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):Je.m(t,r)},s:function(t,r,e){return r==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):Je.s(t,r)},S:function(t,r){return Je.S(t,r)},X:function(t,r,e){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return Cn(n);case"XXXX":case"XX":return st(n);case"XXXXX":case"XXX":default:return st(n,":")}},x:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"x":return Cn(n);case"xxxx":case"xx":return st(n);case"xxxxx":case"xxx":default:return st(n,":")}},O:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+xn(n,":");case"OOOO":default:return"GMT"+st(n,":")}},z:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+xn(n,":");case"zzzz":default:return"GMT"+st(n,":")}},t:function(t,r,e){const n=Math.trunc(+t/1e3);return me(n,r.length)},T:function(t,r,e){return me(+t,r.length)}};function xn(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=Math.trunc(n/60),o=n%60;return o===0?e+String(a):e+String(a)+r+me(o,2)}function Cn(t,r){return t%60===0?(t>0?"-":"+")+me(Math.abs(t)/60,2):st(t,r)}function st(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=me(Math.trunc(n/60),2),o=me(n%60,2);return e+a+r+o}const Tn=(t,r)=>{switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},da=(t,r)=>{switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},ys=(t,r)=>{const e=t.match(/(P+)(p+)?/)||[],n=e[1],a=e[2];if(!a)return Tn(t,r);let o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Tn(n,r)).replace("{{time}}",da(a,r))},It={p:da,P:ys},ps=/^D+$/,bs=/^Y+$/,ws=["D","DD","YY","YYYY"];function ha(t){return ps.test(t)}function ma(t){return bs.test(t)}function Pr(t,r,e){const n=vs(t,r,e);if(console.warn(n),ws.includes(t))throw new RangeError(n)}function vs(t,r,e){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${r}\`) for formatting ${n} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function xs(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function ga(t){return!(!xs(t)&&typeof t!="number"||isNaN(+B(t)))}const Cs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ts=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ss=/^'([^]*?)'?$/,Es=/''/g,ks=/[a-zA-Z]/;function Ds(t,r,e){var m,h,g,x,k,w,y,P;const n=ut(),a=(e==null?void 0:e.locale)??n.locale??jt,o=(e==null?void 0:e.firstWeekContainsDate)??((h=(m=e==null?void 0:e.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((x=(g=n.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((w=(k=e==null?void 0:e.locale)==null?void 0:k.options)==null?void 0:w.weekStartsOn)??n.weekStartsOn??((P=(y=n.locale)==null?void 0:y.options)==null?void 0:P.weekStartsOn)??0,s=B(t,e==null?void 0:e.in);if(!ga(s))throw new RangeError("Invalid time value");let c=r.match(Ts).map(_=>{const D=_[0];if(D==="p"||D==="P"){const M=It[D];return M(_,a.formatLong)}return _}).join("").match(Cs).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const D=_[0];if(D==="'")return{isToken:!1,value:Ms(_)};if(vn[D])return{isToken:!0,value:_};if(D.match(ks))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return{isToken:!1,value:_}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return c.map(_=>{if(!_.isToken)return _.value;const D=_.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&ma(D)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&ha(D))&&Pr(D,r,String(t));const M=vn[D[0]];return M(s,D,a.localize,f)}).join("")}function Ms(t){const r=t.match(Ss);return r?r[1].replace(Es,"'"):t}function Os(t,r){return B(t,r==null?void 0:r.in).getDate()}function ya(t,r){const e=B(t,r==null?void 0:r.in),n=e.getFullYear(),a=e.getMonth(),o=ve(e,0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}function Ps(t,r){return B(t,r==null?void 0:r.in).getHours()}function _s(t,r){return B(t,r==null?void 0:r.in).getMinutes()}function Rs(t,r){return B(t,r==null?void 0:r.in).getMonth()}function js(t){return B(t).getSeconds()}function $s(t){return B(t).getMilliseconds()}function Is(t,r){return B(t,r==null?void 0:r.in).getFullYear()}function yr(t,r){return+B(t)>+B(r)}function pr(t,r){return+B(t)<+B(r)}function Fs(t,r){return+B(t)==+B(r)}function Ls(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return+$t(n)==+$t(a)}function Ns(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return n.getFullYear()===a.getFullYear()}function As(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}function Sn(t,r){const e=B(t,r==null?void 0:r.in);return e.setMinutes(0,0,0),e}function Hs(t,r,e){const[n,a]=Nt(e==null?void 0:e.in,t,r);return+Sn(n)==+Sn(a)}function Vs(){return Object.assign({},ut())}function Ws(t,r){const e=Ys(r)?new r(0):ve(r,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}function Ys(t){var r;return typeof t=="function"&&((r=t.prototype)==null?void 0:r.constructor)===t}const Bs=10;class pa{constructor(){F(this,"subPriority",0)}validate(r,e){return!0}}class qs extends pa{constructor(r,e,n,a,o){super(),this.value=r,this.validateValue=e,this.setValue=n,this.priority=a,o&&(this.subPriority=o)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,n){return this.setValue(r,e,this.value,n)}}class zs extends pa{constructor(e,n){super();F(this,"priority",Bs);F(this,"subPriority",-1);this.context=e||(a=>ve(n,a))}set(e,n){return n.timestampIsSet?e:ve(e,Ws(e,this.context))}}class ue{run(r,e,n,a){const o=this.parse(r,e,n,a);return o?{setter:new qs(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(r,e,n){return!0}}class Gs extends ue{constructor(){super(...arguments);F(this,"priority",140);F(this,"incompatibleTokens",["R","u","t","T"])}parse(e,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,n,a){return n.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}const De={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}/},qe={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 Me(t,r){return t&&{value:r(t.value),rest:t.rest}}function xe(t,r){const e=r.match(t);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function ze(t,r){const e=r.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const n=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,i=e[5]?parseInt(e[5],10):0;return{value:n*(a*sa+o*oa+i*Po),rest:r.slice(e[0].length)}}function ba(t){return xe(De.anyDigitsSigned,t)}function Se(t,r){switch(t){case 1:return xe(De.singleDigit,r);case 2:return xe(De.twoDigits,r);case 3:return xe(De.threeDigits,r);case 4:return xe(De.fourDigits,r);default:return xe(new RegExp("^\\d{1,"+t+"}"),r)}}function Zt(t,r){switch(t){case 1:return xe(De.singleDigitSigned,r);case 2:return xe(De.twoDigitsSigned,r);case 3:return xe(De.threeDigitsSigned,r);case 4:return xe(De.fourDigitsSigned,r);default:return xe(new RegExp("^-?\\d{1,"+t+"}"),r)}}function qr(t){switch(t){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 wa(t,r){const e=r>0,n=e?r:1-r;let a;if(n<=50)a=t||100;else{const o=n+50,i=Math.trunc(o/100)*100,s=t>=o%100;a=t+i-(s?100:0)}return e?a:1-a}function va(t){return t%400===0||t%4===0&&t%100!==0}class Qs extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,n,a){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return Me(Se(4,e),o);case"yo":return Me(a.ordinalNumber(e,{unit:"year"}),o);default:return Me(Se(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a){const o=e.getFullYear();if(a.isTwoDigitYear){const s=wa(a.year,o);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const i=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class Ks extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,n,a){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Me(Se(4,e),o);case"Yo":return Me(a.ordinalNumber(e,{unit:"year"}),o);default:return Me(Se(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a,o){const i=Yr(e,o);if(a.isTwoDigitYear){const c=wa(a.year,i);return e.setFullYear(c,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Xe(e,o)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(s,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Xe(e,o)}}class Zs extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,n){return Zt(n==="R"?4:n.length,e)}set(e,n,a){const o=ve(e,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),wt(o)}}class Xs extends ue{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,n){return Zt(n==="u"?4:n.length,e)}set(e,n,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class Us extends ue{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"Q":case"QQ":return Se(n.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class Js extends ue{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"q":case"qq":return Se(n.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class ei extends ue{constructor(){super(...arguments);F(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);F(this,"priority",110)}parse(e,n,a){const o=i=>i-1;switch(n){case"M":return Me(xe(De.month,e),o);case"MM":return Me(Se(2,e),o);case"Mo":return Me(a.ordinalNumber(e,{unit:"month"}),o);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}class ti extends ue{constructor(){super(...arguments);F(this,"priority",110);F(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,n,a){const o=i=>i-1;switch(n){case"L":return Me(xe(De.month,e),o);case"LL":return Me(Se(2,e),o);case"Lo":return Me(a.ordinalNumber(e,{unit:"month"}),o);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}function ri(t,r,e){const n=B(t,e==null?void 0:e.in),a=Br(n,e)-r;return n.setDate(n.getDate()-a*7),B(n,e==null?void 0:e.in)}class ni extends ue{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,n,a){switch(n){case"w":return xe(De.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a,o){return Xe(ri(e,a,o),o)}}function ai(t,r,e){const n=B(t,e==null?void 0:e.in),a=fa(n,e)-r;return n.setDate(n.getDate()-a*7),n}class oi extends ue{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,n,a){switch(n){case"I":return xe(De.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a){return wt(ai(e,a))}}const si=[31,28,31,30,31,30,31,31,30,31,30,31],ii=[31,29,31,30,31,30,31,31,30,31,30,31];class ui extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"subPriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"d":return xe(De.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return Se(n.length,e)}}validate(e,n){const a=e.getFullYear(),o=va(a),i=e.getMonth();return o?n>=1&&n<=ii[i]:n>=1&&n<=si[i]}set(e,n,a){return e.setDate(a),e.setHours(0,0,0,0),e}}class ci extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"subpriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,n,a){switch(n){case"D":case"DD":return xe(De.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return Se(n.length,e)}}validate(e,n){const a=e.getFullYear();return va(a)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}}function zr(t,r,e){var h,g,x,k;const n=ut(),a=(e==null?void 0:e.weekStartsOn)??((g=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??n.weekStartsOn??((k=(x=n.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??0,o=B(t,e==null?void 0:e.in),i=o.getDay(),c=(r%7+7)%7,f=7-a,m=r<0||r>6?r-(i+f)%7:(c+f)%7-(i+f)%7;return Rt(o,m,e)}class li extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,o){return e=zr(e,a,o),e.setHours(0,0,0,0),e}}class fi extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,n,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(n){case"e":case"ee":return Me(Se(n.length,e),i);case"eo":return Me(a.ordinalNumber(e,{unit:"day"}),i);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,o){return e=zr(e,a,o),e.setHours(0,0,0,0),e}}class di extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,n,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(n){case"c":case"cc":return Me(Se(n.length,e),i);case"co":return Me(a.ordinalNumber(e,{unit:"day"}),i);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,o){return e=zr(e,a,o),e.setHours(0,0,0,0),e}}function hi(t,r){const e=B(t,r==null?void 0:r.in).getDay();return e===0?7:e}function mi(t,r,e){const n=B(t,e==null?void 0:e.in),a=hi(n,e),o=r-a;return Rt(n,o,e)}class gi extends ue{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,n,a){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return Se(n.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return Me(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return Me(a.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Me(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Me(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,n){return n>=1&&n<=7}set(e,n,a){return e=mi(e,a),e.setHours(0,0,0,0),e}}class yi extends ue{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(qr(a),0,0,0),e}}class pi extends ue{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(qr(a),0,0,0),e}}class bi extends ue{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","b","t","T"])}parse(e,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(qr(a),0,0,0),e}}class wi extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,n,a){switch(n){case"h":return xe(De.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,a){const o=e.getHours()>=12;return o&&a<12?e.setHours(a+12,0,0,0):!o&&a===12?e.setHours(0,0,0,0):e.setHours(a,0,0,0),e}}class vi extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,n,a){switch(n){case"H":return xe(De.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,a){return e.setHours(a,0,0,0),e}}class xi extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,n,a){switch(n){case"K":return xe(De.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}}class Ci extends ue{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,n,a){switch(n){case"k":return xe(De.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return Se(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,a){const o=a<=24?a%24:a;return e.setHours(o,0,0,0),e}}class Ti extends ue{constructor(){super(...arguments);F(this,"priority",60);F(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"m":return xe(De.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setMinutes(a,0,0),e}}class Si extends ue{constructor(){super(...arguments);F(this,"priority",50);F(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"s":return xe(De.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return Se(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setSeconds(a,0),e}}class Ei extends ue{constructor(){super(...arguments);F(this,"priority",30);F(this,"incompatibleTokens",["t","T"])}parse(e,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return Me(Se(n.length,e),a)}set(e,n,a){return e.setMilliseconds(a),e}}class ki extends ue{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","x"])}parse(e,n){switch(n){case"X":return ze(qe.basicOptionalMinutes,e);case"XX":return ze(qe.basic,e);case"XXXX":return ze(qe.basicOptionalSeconds,e);case"XXXXX":return ze(qe.extendedOptionalSeconds,e);case"XXX":default:return ze(qe.extended,e)}}set(e,n,a){return n.timestampIsSet?e:ve(e,e.getTime()-Kt(e)-a)}}class Di extends ue{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","X"])}parse(e,n){switch(n){case"x":return ze(qe.basicOptionalMinutes,e);case"xx":return ze(qe.basic,e);case"xxxx":return ze(qe.basicOptionalSeconds,e);case"xxxxx":return ze(qe.extendedOptionalSeconds,e);case"xxx":default:return ze(qe.extended,e)}}set(e,n,a){return n.timestampIsSet?e:ve(e,e.getTime()-Kt(e)-a)}}class Mi extends ue{constructor(){super(...arguments);F(this,"priority",40);F(this,"incompatibleTokens","*")}parse(e){return ba(e)}set(e,n,a){return[ve(e,a*1e3),{timestampIsSet:!0}]}}class Oi extends ue{constructor(){super(...arguments);F(this,"priority",20);F(this,"incompatibleTokens","*")}parse(e){return ba(e)}set(e,n,a){return[ve(e,a),{timestampIsSet:!0}]}}const Pi={G:new Gs,y:new Qs,Y:new Ks,R:new Zs,u:new Xs,Q:new Us,q:new Js,M:new ei,L:new ti,w:new ni,I:new oi,d:new ui,D:new ci,E:new li,e:new fi,c:new di,i:new gi,a:new yi,b:new pi,B:new bi,h:new wi,H:new vi,K:new xi,k:new Ci,m:new Ti,s:new Si,S:new Ei,X:new ki,x:new Di,t:new Mi,T:new Oi},_i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ri=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ji=/^'([^]*?)'?$/,$i=/''/g,Ii=/\S/,Fi=/[a-zA-Z]/;function Li(t,r,e,n){var y,P,_,D,M,b,Y,U;const a=()=>ve((n==null?void 0:n.in)||e,NaN),o=Vs(),i=(n==null?void 0:n.locale)??o.locale??jt,s=(n==null?void 0:n.firstWeekContainsDate)??((P=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:P.firstWeekContainsDate)??o.firstWeekContainsDate??((D=(_=o.locale)==null?void 0:_.options)==null?void 0:D.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((b=(M=n==null?void 0:n.locale)==null?void 0:M.options)==null?void 0:b.weekStartsOn)??o.weekStartsOn??((U=(Y=o.locale)==null?void 0:Y.options)==null?void 0:U.weekStartsOn)??0;if(!r)return t?a():B(e,n==null?void 0:n.in);const f={firstWeekContainsDate:s,weekStartsOn:c,locale:i},m=[new zs(n==null?void 0:n.in,e)],h=r.match(Ri).map(N=>{const E=N[0];if(E in It){const u=It[E];return u(N,i.formatLong)}return N}).join("").match(_i),g=[];for(let N of h){!(n!=null&&n.useAdditionalWeekYearTokens)&&ma(N)&&Pr(N,r,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&ha(N)&&Pr(N,r,t);const E=N[0],u=Pi[E];if(u){const{incompatibleTokens:T}=u;if(Array.isArray(T)){const A=g.find(ne=>T.includes(ne.token)||ne.token===E);if(A)throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${N}\` at the same time`)}else if(u.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${N}\` and any other token at the same time`);g.push({token:E,fullToken:N});const R=u.run(t,N,i.match,f);if(!R)return a();m.push(R.setter),t=R.rest}else{if(E.match(Fi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(N==="''"?N="'":E==="'"&&(N=Ni(N)),t.indexOf(N)===0)t=t.slice(N.length);else return a()}}if(t.length>0&&Ii.test(t))return a();const x=m.map(N=>N.priority).sort((N,E)=>E-N).filter((N,E,u)=>u.indexOf(N)===E).map(N=>m.filter(E=>E.priority===N).sort((E,u)=>u.subPriority-E.subPriority)).map(N=>N[0]);let k=B(e,n==null?void 0:n.in);if(isNaN(+k))return a();const w={};for(const N of x){if(!N.validate(k,f))return a();const E=N.set(k,w,f);Array.isArray(E)?(k=E[0],Object.assign(w,E[1])):k=E}return k}function Ni(t){return t.match(ji)[1].replace($i,"'")}function Ai(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setDate(r),n}function Hi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setHours(r),n}function Vi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setMinutes(r),n}function Wi(t,r,e){const n=B(t,e==null?void 0:e.in),a=n.getFullYear(),o=n.getDate(),i=ve(t,0);i.setFullYear(a,r,15),i.setHours(0,0,0,0);const s=ya(i);return n.setMonth(r,Math.min(o,s)),n}function Yi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setSeconds(r),n}function Bi(t,r,e){const n=B(t,e==null?void 0:e.in);return n.setMilliseconds(r),n}function qi(t,r,e){const n=B(t,e==null?void 0:e.in);return isNaN(+n)?ve(t,NaN):(n.setFullYear(r),n)}function zi(t,r){const e=B(t,r==null?void 0:r.in);return e.setDate(1),e.setHours(0,0,0,0),e}function Gi(t,r){const e=B(t,r==null?void 0:r.in),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Qi(t,r,e){const n=+B(t,e==null?void 0:e.in),[a,o]=[+B(r.start,e==null?void 0:e.in),+B(r.end,e==null?void 0:e.in)].sort((i,s)=>i-s);return n>=a&&n<=o}function _r(){return _r=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},_r.apply(null,arguments)}const Ki={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Zi={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class Xi{constructor(r){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=Ki,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=i=>i,this.toJsDate=i=>i,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=i=>{const s=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return i.match(s).map(c=>{const f=c[0];if(f==="p"||f==="P"){const m=this.longFormatters[f];return m(c,this.locale.formatLong)}return c}).join("")},this.formatNumber=i=>i,this.getDayOfWeek=i=>i.getDay()+1;const{locale:e,formats:n,longFormatters:a,lib:o}=r;this.locale=e,this.formats=_r({},Zi,n),this.longFormatters=a,this.lib=o||"date-fns"}}class xa extends Xi{constructor({locale:r,formats:e}={}){if(process.env.NODE_ENV!=="production"){if(typeof Rt!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFns` instead."].join(`
|
|
31
31
|
`));if(!It)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:r??jt,formats:e,longFormatters:It}),this.parse=(n,a)=>n===""?null:Li(n,a,new Date,{locale:this.locale}),this.isValid=n=>n==null?!1:ga(n),this.format=(n,a)=>this.formatByString(n,this.formats[a]),this.formatByString=(n,a)=>Ds(n,a,{locale:this.locale}),this.isEqual=(n,a)=>n===null&&a===null?!0:n===null||a===null?!1:Fs(n,a),this.isSameYear=(n,a)=>Ns(n,a),this.isSameMonth=(n,a)=>As(n,a),this.isSameDay=(n,a)=>Ls(n,a),this.isSameHour=(n,a)=>Hs(n,a),this.isAfter=(n,a)=>yr(n,a),this.isAfterYear=(n,a)=>yr(n,wn(a)),this.isAfterDay=(n,a)=>yr(n,bn(a)),this.isBefore=(n,a)=>pr(n,a),this.isBeforeYear=(n,a)=>pr(n,this.startOfYear(a)),this.isBeforeDay=(n,a)=>pr(n,this.startOfDay(a)),this.isWithinRange=(n,[a,o])=>Qi(n,{start:a,end:o}),this.startOfYear=n=>ca(n),this.startOfMonth=n=>zi(n),this.startOfWeek=n=>Xe(n,{locale:this.locale}),this.startOfDay=n=>$t(n),this.endOfYear=n=>wn(n),this.endOfMonth=n=>Gi(n),this.endOfWeek=n=>Lo(n,{locale:this.locale}),this.endOfDay=n=>bn(n),this.addYears=(n,a)=>Io(n,a),this.addMonths=(n,a)=>ua(n,a),this.addWeeks=(n,a)=>$o(n,a),this.addDays=(n,a)=>Rt(n,a),this.addHours=(n,a)=>jo(n,a),this.addMinutes=(n,a)=>Ro(n,a),this.addSeconds=(n,a)=>_o(n,a),this.getYear=n=>Is(n),this.getMonth=n=>Rs(n),this.getDate=n=>Os(n),this.getHours=n=>Ps(n),this.getMinutes=n=>_s(n),this.getSeconds=n=>js(n),this.getMilliseconds=n=>$s(n),this.setYear=(n,a)=>qi(n,a),this.setMonth=(n,a)=>Wi(n,a),this.setDate=(n,a)=>Ai(n,a),this.setHours=(n,a)=>Hi(n,a),this.setMinutes=(n,a)=>Vi(n,a),this.setSeconds=(n,a)=>Yi(n,a),this.setMilliseconds=(n,a)=>Bi(n,a),this.getDaysInMonth=n=>ya(n),this.getWeekArray=n=>{const a=this.startOfWeek(this.startOfMonth(n)),o=this.endOfWeek(this.endOfMonth(n));let i=0,s=a;const c=[];for(;this.isBefore(s,o);){const f=Math.floor(i/7);c[f]=c[f]||[],c[f].push(s),s=this.addDays(s,1),i+=1}return c},this.getWeekNumber=n=>Br(n,{locale:this.locale}),this.getYearRange=([n,a])=>{const o=this.startOfYear(n),i=this.endOfYear(a),s=[];let c=o;for(;this.isBefore(c,i);)s.push(c),c=this.addYears(c,1);return s}}}const Ui={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},Ji={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},e0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},t0={date:Ze({formats:Ui,defaultWidth:"full"}),time:Ze({formats:Ji,defaultWidth:"full"}),dateTime:Ze({formats:e0,defaultWidth:"full"})},En={code:"en-AU",formatDistance:Ar,formatLong:t0,formatRelative:Hr,localize:Vr,match:Wr,options:{weekStartsOn:1,firstWeekContainsDate:4}},r0={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},n0={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},a0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o0={date:Ze({formats:r0,defaultWidth:"full"}),time:Ze({formats:n0,defaultWidth:"full"}),dateTime:Ze({formats:a0,defaultWidth:"full"})},Yt={code:"en-GB",formatDistance:Ar,formatLong:o0,formatRelative:Hr,localize:Vr,match:Wr,options:{weekStartsOn:1,firstWeekContainsDate:4}},kn="Invalid date",nt="dd/MM/yyyy",Mt="yyyy-MM-dd HH:mm:ss",s0=new Date("1900-01-01"),i0=Intl.DateTimeFormat().resolvedOptions().timeZone,br="yyyy-MM-dd HH:mm:ss",u0="yyyy-MM-dd";W.format(s0,nt);W.format(W.add(new Date,{weeks:1}),nt);W.format(new Date,nt);W.format(W.add(new Date,{days:1}),nt);W.format(W.add(new Date,{weeks:2}),nt);const re=(t,r,e,n,a)=>{if(!t)return null;let o=t;if(a)return W.format(new Date(o),u0);if(r)return o=W.startOfDay(t),W.format(new Date(o),br);if(e)return o=W.endOfDay(t),W.format(new Date(o),br);if(n){const i=new Date;return o=W.setHours(o,W.getHours(i)),o=W.setMinutes(o,W.getMinutes(i)),o=W.setSeconds(o,W.getSeconds(i)),vo.fromZonedTime(o,i0).toISOString()}else return W.format(new Date(o),br)},pt=(t,r=nt,e,n)=>{var f;if(t===null)return null;const a=t.split(/[./-]/).map(m=>parseInt(m,10));let o=e.indexOf("d")===0?a[0]:a[1],i=e.indexOf("M")===0?a[0]:a[1],s=a[2];if(!n&&a.some(isNaN)||((f=a==null?void 0:a.filter(m=>m.isNaN))==null?void 0:f.length)===(a==null?void 0:a.length)||isNaN(o))return t=kn,null;if(isNaN(i)&&(i=new Date().getMonth()+1),isNaN(s))s=new Date().getFullYear();else{s.toString().length<=2&&(s=c0(s));//! Force maximum calendar year
|
|
32
32
|
s>2099&&(s=2099)}const c=new Date(s,i-1,o);return c.getDate()!==o&&(t=kn),W.format(new Date(c),r)},c0=t=>{const r=new Date().getFullYear()+5,e=Math.floor(r/100)*100,n=parseInt(t);return(n>r%100?e-100:e)+n},l0=t=>{if((t==null?void 0:t.hostInfo.region.toLowerCase())==="uk")return{...Yt,options:{...Yt.options,weekStartsOn:1}};if((t==null?void 0:t.hostInfo.region.toLowerCase())==="us")return{...jt,options:{...jt.options,weekStartsOn:1}};if((t==null?void 0:t.hostInfo.region.toLowerCase())==="au"){//! includes NZ
|
|
33
33
|
return{...En,options:{...En.options,weekStartsOn:1}}}else if((t==null?void 0:t.hostInfo.region.toLowerCase())==="ca")return{...Yt,options:{...Yt.options,weekStartsOn:1}}},f0=(t,r)=>r&&t?W.format(t,r.formatLong.date({width:"short"})):"",d0=(t,r)=>r&&t?W.format(W.addMinutes(t,-new Date().getTimezoneOffset()),`${r.formatLong.date({width:"short"})} hh:mm a`):"";function Rr(){return d.jsxs(z.SvgIcon,{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",children:[d.jsx("rect",{x:"4.03812",y:"7.03696",width:"16",height:"12",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.509 4C10.2132 4 9.97333 4.23985 9.97333 4.53571C9.97333 4.83158 10.2132 5.07143 10.509 5.07143H13.4957C13.7916 5.07143 14.0314 4.83158 14.0314 4.53571C14.0314 4.23985 13.7916 4 13.4957 4H10.509ZM4.46132 4.46018C4.71899 4.20251 5.08976 4.00122 5.50238 4.00122H7.00238C7.27852 4.00122 7.50238 4.22508 7.50238 4.50122C7.50238 4.77736 7.27852 5.00122 7.00238 5.00122H5.50238C5.41501 5.00122 5.28577 5.04995 5.16844 5.16728C5.0511 5.28462 5.00238 5.41386 5.00238 5.50122V6.99332H19.0024V5.50122C19.0024 5.41384 18.9537 5.2846 18.8363 5.16727C18.719 5.04995 18.5898 5.00122 18.5024 5.00122H17.0024C16.7262 5.00122 16.5024 4.77736 16.5024 4.50122C16.5024 4.22508 16.7262 4.00122 17.0024 4.00122H18.5024C18.915 4.00122 19.2858 4.20249 19.5434 4.46017C19.8011 4.71784 20.0024 5.0886 20.0024 5.50122V7.47818C20.004 7.49492 20.0048 7.51188 20.0048 7.52903C20.0048 7.54618 20.004 7.56315 20.0024 7.57989V18.5012C20.0024 18.9138 19.8011 19.2846 19.5434 19.5423C19.2858 19.7999 18.915 20.0012 18.5024 20.0012H5.50238C5.08976 20.0012 4.719 19.7999 4.46133 19.5423C4.20365 19.2846 4.00238 18.9138 4.00238 18.5012V7.57987C4.00081 7.56313 4 7.54618 4 7.52903C4 7.51189 4.00081 7.49493 4.00238 7.4782V5.50122C4.00238 5.08862 4.20366 4.71785 4.46132 4.46018ZM5.00238 18.5012V8.06475H19.0024V18.5012C19.0024 18.5886 18.9537 18.7178 18.8363 18.8352C18.719 18.9525 18.5898 19.0012 18.5024 19.0012H5.50238C5.415 19.0012 5.28576 18.9525 5.16843 18.8352C5.05111 18.7178 5.00238 18.5886 5.00238 18.5012ZM15.4869 4C15.7827 4 16.0226 4.23985 16.0226 4.53571V5.53349C16.0226 5.82935 15.7827 6.0692 15.4869 6.0692C15.191 6.0692 14.9511 5.82935 14.9511 5.53349V4.53571C14.9511 4.23985 15.191 4 15.4869 4ZM9.05364 4.53571C9.05364 4.23985 8.81379 4 8.51793 4C8.22206 4 7.98221 4.23985 7.98221 4.53571V5.53349C7.98221 5.82935 8.22206 6.0692 8.51793 6.0692C8.81379 6.0692 9.05364 5.82935 9.05364 5.53349V4.53571Z",fill:"#1E365E"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5024 7.00122C10.7785 7.00122 11.0024 7.22508 11.0024 7.50122V10.0012H12.0024C12.2785 10.0012 12.5024 10.2251 12.5024 10.5012C12.5024 10.7774 12.2785 11.0012 12.0024 11.0012H11.0024V13.0012H12.0024C12.2785 13.0012 12.5024 13.2251 12.5024 13.5012C12.5024 13.7774 12.2785 14.0012 12.0024 14.0012H11.0024V16.0012H16.0024V15.0012C16.0024 14.7251 16.2262 14.5012 16.5024 14.5012C16.7785 14.5012 17.0024 14.7251 17.0024 15.0012V16.0012H19.5024C19.7785 16.0012 20.0024 16.2251 20.0024 16.5012C20.0024 16.7774 19.7785 17.0012 19.5024 17.0012H17.0024V19.5012C17.0024 19.7774 16.7785 20.0012 16.5024 20.0012C16.2262 20.0012 16.0024 19.7774 16.0024 19.5012V17.0012H11.0024V19.5012C11.0024 19.7774 10.7785 20.0012 10.5024 20.0012C10.2262 20.0012 10.0024 19.7774 10.0024 19.5012V17.0012H8.00238V19.5012C8.00238 19.7774 7.77852 20.0012 7.50238 20.0012C7.22624 20.0012 7.00238 19.7774 7.00238 19.5012V17.0012H4.50238C4.22624 17.0012 4.00238 16.7774 4.00238 16.5012C4.00238 16.2251 4.22624 16.0012 4.50238 16.0012H7.00238V14.0012H4.50238C4.22624 14.0012 4.00238 13.7774 4.00238 13.5012C4.00238 13.2251 4.22624 13.0012 4.50238 13.0012H7.00238V11.0012H4.50238C4.22624 11.0012 4.00238 10.7774 4.00238 10.5012C4.00238 10.2251 4.22624 10.0012 4.50238 10.0012H7.00238V7.50122C7.00238 7.22508 7.22624 7.00122 7.50238 7.00122C7.77852 7.00122 8.00238 7.22508 8.00238 7.50122V10.0012H10.0024V7.50122C10.0024 7.22508 10.2262 7.00122 10.5024 7.00122ZM8.00238 11.0012V13.0012H10.0024V11.0012H8.00238ZM8.00238 14.0012V16.0012H10.0024V14.0012H8.00238ZM18.0024 13.0012C17.7262 13.0012 17.5024 13.2251 17.5024 13.5012C17.5024 13.7774 17.7262 14.0012 18.0024 14.0012H19.5024C19.7785 14.0012 20.0024 13.7774 20.0024 13.5012C20.0024 13.2251 19.7785 13.0012 19.5024 13.0012H18.0024ZM18.0024 10.0012C17.7262 10.0012 17.5024 10.2251 17.5024 10.5012C17.5024 10.7774 17.7262 11.0012 18.0024 11.0012H19.5024C19.7785 11.0012 20.0024 10.7774 20.0024 10.5012C20.0024 10.2251 19.7785 10.0012 19.5024 10.0012H18.0024ZM16.5024 7.00122C16.7785 7.00122 17.0024 7.22508 17.0024 7.50122V9.00122C17.0024 9.27736 16.7785 9.50122 16.5024 9.50122C16.2262 9.50122 16.0024 9.27736 16.0024 9.00122V7.50122C16.0024 7.22508 16.2262 7.00122 16.5024 7.00122Z",fill:"#1E365E",fillOpacity:"0.5"}),d.jsx("rect",{x:"13.5381",y:"10.5369",width:"3",height:"3",fill:"#1E365E",fillOpacity:"0.5",stroke:"#1E365E"})]})}function Ge(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Ca(t){if(!Ge(t))return t;const r={};return Object.keys(t).forEach(e=>{r[e]=Ca(t[e])}),r}function Fe(t,r,e={clone:!0}){const n=e.clone?{...t}:t;return Ge(t)&&Ge(r)&&Object.keys(r).forEach(a=>{Ge(r[a])&&Object.prototype.hasOwnProperty.call(t,a)&&Ge(t[a])?n[a]=Fe(t[a],r[a],e):e.clone?n[a]=Ge(r[a])?Ca(r[a]):r[a]:n[a]=r[a]}),n}var jr={exports:{}},Bt={exports:{}},le={};/** @license React v16.13.1
|