import{e as M,g as b}from"./vendor-react-ece1c85f.js";var Z={exports:{}};(function(m,O){(function(h,f){m.exports=f()})(M,function(){var h={year:0,month:1,day:2,hour:3,minute:4,second:5},f={};return function(p,T,n){var d,c=function(e,o,t){t===void 0&&(t={});var i=new Date(e),r=function(s,a){a===void 0&&(a={});var l=a.timeZoneName||"short",v=s+"|"+l,u=f[v];return u||(u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:l}),f[v]=u),u}(o,t);return r.formatToParts(i)},g=function(e,o){for(var t=c(e,o),i=[],r=0;r<t.length;r+=1){var s=t[r],a=s.type,l=s.value,v=h[a];v>=0&&(i[v]=parseInt(l,10))}var u=i[3],y=u===24?0:u,z=i[0]+"-"+i[1]+"-"+i[2]+" "+y+":"+i[4]+":"+i[5]+":000",x=+e;return(n.utc(z).valueOf()-(x-=x%1e3))/6e4},$=T.prototype;$.tz=function(e,o){e===void 0&&(e=d);var t,i=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:e}),a=Math.round((r-new Date(s))/1e3/60),l=15*-Math.round(r.getTimezoneOffset()/15)-a;if(!Number(l))t=this.utcOffset(0,o);else if(t=n(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),o){var v=t.utcOffset();t=t.add(i-v,"minute")}return t.$x.$timezone=e,t},$.offsetName=function(e){var o=this.$x.$timezone||n.tz.guess(),t=c(this.valueOf(),o,{timeZoneName:e}).find(function(i){return i.type.toLowerCase()==="timezonename"});return t&&t.value};var S=$.startOf;$.startOf=function(e,o){if(!this.$x||!this.$x.$timezone)return S.call(this,e,o);var t=n(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return S.call(t,e,o).tz(this.$x.$timezone,!0)},n.tz=function(e,o,t){var i=t&&o,r=t||o||d,s=g(+n(),r);if(typeof e!="string")return n(e).tz(r);var a=function(y,z,x){var N=y-60*z*1e3,D=g(N,x);if(z===D)return[N,z];var w=g(N-=60*(D-z)*1e3,x);return D===w?[N,D]:[y-60*Math.min(D,w)*1e3,Math.max(D,w)]}(n.utc(e,i).valueOf(),s,r),l=a[0],v=a[1],u=n(l).utcOffset(v);return u.$x.$timezone=r,u},n.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},n.tz.setDefault=function(e){d=e}}})})(Z);var I=Z.exports;const j=b(I);function F(m,O="00:00:00"){const h=O.split(":").map(c=>Number(c)),f=h[0]||0,p=h[1]||0,T=h[2]||0;let n;if(typeof m=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(m)){const[c,g,$]=m.split("-").map(Number);n=new Date(c,g-1,$,f,p,T,0)}else{const c=new Date(m||Date.now());c.setHours(f,p,T,0),n=c}const d=n.toISOString();return{utcDate:d.slice(0,10),utcTime:d.slice(11,19),utcIso:d}}function H(m,O){if(!m)return null;const f=`${m}T${O||"00:00:00"}Z`,p=new Date(f);return isNaN(p.getTime())?null:p}export{F as l,j as t,H as u};
