import{d as A}from"./advancedFormat-DF-l3-BJ.js";import{d as y}from"./dayjs.min-CfWDS3UC.js";import{g as S}from"./_commonjsHelpers-D6-XlEtG.js";var U={exports:{}},I=U.exports,Z;function j(){return Z||(Z=1,function(h,M){(function(i,a){h.exports=a()})(I,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,x,T){var s=x.prototype,v=s.format;T.en.formats=i,s.format=function(r){r===void 0&&(r="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,$=function(Y,o){return Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,n,t){var e=t&&t.toUpperCase();return n||o[t]||i[t]||o[e].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,f,l){return f||l.slice(1)})})}(r,u===void 0?{}:u);return v.call(this,$)}}})}(U)),U.exports}var k=j();const B=S(k);var w={exports:{}},P=w.exports,R;function W(){return R||(R=1,function(h,M){(function(i,a){h.exports=a()})(P,function(){return function(i,a,x){i=i||{};var T=a.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function v(u,$,Y,o){return T.fromToBase(u,$,Y,o)}x.en.relativeTime=s,T.fromToBase=function(u,$,Y,o,d){for(var n,t,e,m=Y.$locale().relativeTime||s,f=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],l=f.length,p=0;p0,g<=c.r||!c.r){g<=1&&p>0&&(c=f[p-1]);var D=m[c.l];d&&(g=d(""+g)),t=typeof D=="string"?D.replace("%d",g):D(g,$,c.l,e);break}}if($)return t;var z=e?m.future:m.past;return typeof z=="function"?z(t):z.replace("%s",t)},T.to=function(u,$){return v(u,$,this,!0)},T.from=function(u,$){return v(u,$,this)};var r=function(u){return u.$u?x.utc():x()};T.toNow=function(u){return this.to(r(this),u)},T.fromNow=function(u){return this.from(r(this),u)}}})}(w)),w.exports}var G=W();const J=S(G);var C={exports:{}},K=C.exports,E;function Q(){return E||(E=1,function(h,M){(function(i,a){h.exports=a()})(K,function(){var i={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(x,T,s){var v,r=function(o,d,n){n===void 0&&(n={});var t=new Date(o),e=function(m,f){f===void 0&&(f={});var l=f.timeZoneName||"short",p=m+"|"+l,c=a[p];return c||(c=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:l}),a[p]=c),c}(d,n);return e.formatToParts(t)},u=function(o,d){for(var n=r(o,d),t=[],e=0;e=0&&(t[p]=parseInt(l,10))}var c=t[3],g=c===24?0:c,D=t[0]+"-"+t[1]+"-"+t[2]+" "+g+":"+t[4]+":"+t[5]+":000",z=+o;return(s.utc(D).valueOf()-(z-=z%1e3))/6e4},$=T.prototype;$.tz=function(o,d){o===void 0&&(o=v);var n,t=this.utcOffset(),e=this.toDate(),m=e.toLocaleString("en-US",{timeZone:o}),f=Math.round((e-new Date(m))/1e3/60),l=15*-Math.round(e.getTimezoneOffset()/15)-f;if(!Number(l))n=this.utcOffset(0,d);else if(n=s(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),d){var p=n.utcOffset();n=n.add(t-p,"minute")}return n.$x.$timezone=o,n},$.offsetName=function(o){var d=this.$x.$timezone||s.tz.guess(),n=r(this.valueOf(),d,{timeZoneName:o}).find(function(t){return t.type.toLowerCase()==="timezonename"});return n&&n.value};var Y=$.startOf;$.startOf=function(o,d){if(!this.$x||!this.$x.$timezone)return Y.call(this,o,d);var n=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return Y.call(n,o,d).tz(this.$x.$timezone,!0)},s.tz=function(o,d,n){var t=n&&d,e=n||d||v,m=u(+s(),e);if(typeof o!="string")return s(o).tz(e);var f=function(g,D,z){var L=g-60*D*1e3,O=u(L,z);if(D===O)return[L,D];var q=u(L-=60*(O-D)*1e3,z);return O===q?[L,O]:[g-60*Math.min(O,q)*1e3,Math.max(O,q)]}(s.utc(o,t).valueOf(),m,e),l=f[0],p=f[1],c=s(l).utcOffset(p);return c.$x.$timezone=e,c},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(o){v=o}}})}(C)),C.exports}var V=Q();const X=S(V);var F={exports:{}},_=F.exports,N;function tt(){return N||(N=1,function(h,M){(function(i,a){h.exports=a()})(_,function(){return function(i,a,x){x.updateLocale=function(T,s){var v=x.Ls[T];if(v)return(s?Object.keys(s):[]).forEach(function(r){v[r]=s[r]}),v}}})}(F)),F.exports}var et=tt();const rt=S(et);var H={exports:{}},nt=H.exports,b;function ot(){return b||(b=1,function(h,M){(function(i,a){h.exports=a()})(nt,function(){var i="minute",a=/[+-]\d\d(?::?\d\d)?/g,x=/([+-]|\d\d)/g;return function(T,s,v){var r=s.prototype;v.utc=function(t){var e={date:t,utc:!0,args:arguments};return new s(e)},r.utc=function(t){var e=v(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),i):e},r.local=function(){return v(this.toDate(),{locale:this.$L,utc:!1})};var u=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),u.call(this,t)};var $=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else $.call(this)};var Y=r.utcOffset;r.utcOffset=function(t,e){var m=this.$utils().u;if(m(t))return this.$u?0:m(this.$offset)?Y.call(this):this.$offset;if(typeof t=="string"&&(t=function(c){c===void 0&&(c="");var g=c.match(a);if(!g)return null;var D=(""+g[0]).match(x)||["-",0,0],z=D[0],L=60*+D[1]+ +D[2];return L===0?0:z==="+"?L:-L}(t),t===null))return this;var f=Math.abs(t)<=16?60*t:t;if(f===0)return this.utc(e);var l=this.clone();if(e)return l.$offset=f,l.$u=!1,l;var p=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(l=this.local().add(f+p,i)).$offset=f,l.$x.$localOffset=p,l};var o=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return o.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var d=r.toDate;r.toDate=function(t){return t==="s"&&this.$offset?v(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var n=r.diff;r.diff=function(t,e,m){if(t&&this.$u===t.$u)return n.call(this,t,e,m);var f=this.local(),l=v(t).local();return n.call(f,l,e,m)}}})}(H)),H.exports}var it=ot();const at=S(it);y.extend(J);y.extend(B);y.extend(A);y.extend(at);y.extend(X);y.extend(rt);y.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a min",mm:"%d min",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});const st=h=>"UTC",ut=(h,M,i="day")=>y(h).diff(y(M),i,!0),ft=(h,M,i=1)=>ut(h,M,"hour")<-i,ct=(h,M)=>{const i=new Date(h),a=new Date(M);return i.getFullYear()===a.getFullYear()&&i.getMonth()===a.getMonth()&&i.getDate()===a.getDate()},ht=h=>{const M=y(h,{utc:!0}),i=!ft(M.toDate(),Date.now()),a=ct(M.toDate(),Date.now()),x=st();return i?y().to(M):a?y(h).tz(x).format("h:mm A z"):M.format("MMMM D, YYYY")};export{ht as g};