import{a as _}from"/build/_shared/chunk-YGINDR4A.js";import{b as S,d as M}from"/build/_shared/chunk-G5WX4PPA.js";var F=S((P,L)=>{L.exports={}});var j=S((x,Y)=>{(function(l,h){typeof x=="object"&&typeof Y<"u"?Y.exports=h():typeof define=="function"&&define.amd?define(h):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_timezone=h()})(x,function(){"use strict";var l={year:0,month:1,day:2,hour:3,minute:4,second:5},h={};return function(b,Z,a){var $,n=function(i,f,s){s===void 0&&(s={});var t=new Date(i),e=function(u,r){r===void 0&&(r={});var o=r.timeZoneName||"short",m=u+"|"+o,c=h[m];return c||(c=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:u,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),h[m]=c),c}(f,s);return e.formatToParts(t)},O=function(i,f){for(var s=n(i,f),t=[],e=0;e<s.length;e+=1){var u=s[e],r=u.type,o=u.value,m=l[r];m>=0&&(t[m]=parseInt(o,10))}var c=t[3],g=c===24?0:c,d=t[0]+"-"+t[1]+"-"+t[2]+" "+g+":"+t[4]+":"+t[5]+":000",p=+i;return(a.utc(d).valueOf()-(p-=p%1e3))/6e4},y=Z.prototype;y.tz=function(i,f){i===void 0&&(i=$);var s=this.utcOffset(),t=this.toDate(),e=t.toLocaleString("en-US",{timeZone:i}),u=Math.round((t-new Date(e))/1e3/60),r=a(e,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(t.getTimezoneOffset()/15)-u,!0);if(f){var o=r.utcOffset();r=r.add(s-o,"minute")}return r.$x.$timezone=i,r},y.offsetName=function(i){var f=this.$x.$timezone||a.tz.guess(),s=n(this.valueOf(),f,{timeZoneName:i}).find(function(t){return t.type.toLowerCase()==="timezonename"});return s&&s.value};var T=y.startOf;y.startOf=function(i,f){if(!this.$x||!this.$x.$timezone)return T.call(this,i,f);var s=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return T.call(s,i,f).tz(this.$x.$timezone,!0)},a.tz=function(i,f,s){var t=s&&f,e=s||f||$,u=O(+a(),e);if(typeof i!="string")return a(i).tz(e);var r=function(g,d,p){var v=g-60*d*1e3,D=O(v,p);if(d===D)return[v,d];var z=O(v-=60*(D-d)*1e3,p);return D===z?[v,D]:[g-60*Math.min(D,z)*1e3,Math.max(D,z)]}(a.utc(i,t).valueOf(),u,e),o=r[0],m=r[1],c=a(o).utcOffset(m);return c.$x.$timezone=e,c},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(i){$=i}}})});var w=S((U,C)=>{(function(l,h){typeof U=="object"&&typeof C<"u"?C.exports=h():typeof define=="function"&&define.amd?define(h):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_utc=h()})(U,function(){"use strict";var l="minute",h=/[+-]\d\d(?::?\d\d)?/g,b=/([+-]|\d\d)/g;return function(Z,a,$){var n=a.prototype;$.utc=function(t){var e={date:t,utc:!0,args:arguments};return new a(e)},n.utc=function(t){var e=$(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),l):e},n.local=function(){return $(this.toDate(),{locale:this.$L,utc:!1})};var O=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),O.call(this,t)};var y=n.init;n.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 y.call(this)};var T=n.utcOffset;n.utcOffset=function(t,e){var u=this.$utils().u;if(u(t))return this.$u?0:u(this.$offset)?T.call(this):this.$offset;if(typeof t=="string"&&(t=function(c){c===void 0&&(c="");var g=c.match(h);if(!g)return null;var d=(""+g[0]).match(b)||["-",0,0],p=d[0],v=60*+d[1]+ +d[2];return v===0?0:p==="+"?v:-v}(t),t===null))return this;var r=Math.abs(t)<=16?60*t:t,o=this;if(e)return o.$offset=r,o.$u=t===0,o;if(t!==0){var m=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(r+m,l)).$offset=r,o.$x.$localOffset=m}else o=this.utc();return o};var i=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return i.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var f=n.toDate;n.toDate=function(t){return t==="s"&&this.$offset?$(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var s=n.diff;n.diff=function(t,e,u){if(t&&this.$u===t.$u)return s.call(this,t,e,u);var r=this.local(),o=$(t).local();return s.call(r,o,e,u)}}})});var H=M(_(),1),I=M(j(),1),N=M(w(),1);H.default.extend(N.default);H.default.extend(I.default);export{H as a,F as b};
