"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,n){return t(n={exports:{}},n.exports),n.exports}var dayjs_min=createCommonjsModule(function(t,n){t.exports=function(){var t="millisecond",n="second",e="minute",r="hour",i="day",s="week",o="month",a="quarter",u="year",h=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=function(t,n,e){var r=String(t);return!r||r.length>=n?t:""+Array(n+1-r.length).join(e)+t},d={s:c,z:function(t){var n=-t.utcOffset(),e=Math.abs(n),r=Math.floor(e/60),i=e%60;return(n<=0?"+":"-")+c(r,2,"0")+":"+c(i,2,"0")},m:function(t,n){var e=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(e,o),i=n-r<0,s=t.clone().add(e+(i?-1:1),o);return Number(-(e+(n-r)/(i?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return{M:o,y:u,w:s,d:i,h:r,m:e,s:n,ms:t,Q:a}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m="en",$={};$[m]=l;var M=function(t){return t instanceof v},D=function(t,n,e){var r;if(!t)return m;if("string"==typeof t)$[t]&&(r=t),n&&($[t]=n,r=t);else{var i=t.name;$[i]=t,r=i}return e||(m=r),r},y=function(t,n,e){if(M(t))return t.clone();var r=n?"string"==typeof n?{format:n,pl:e}:n:{};return r.date=t,new v(r)},g=d;g.l=D,g.i=M,g.w=function(t,n){return y(t,{locale:n.$L,utc:n.$u})};var v=function(){function c(t){this.$L=this.$L||D(t.locale,null,!0),this.parse(t)}var d=c.prototype;return d.parse=function(t){this.$d=function(t){var n=t.date,e=t.utc;if(null===n)return new Date(NaN);if(g.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(h);if(r)return e?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(n)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return g},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,n){var e=y(t);return this.startOf(n)<=e&&e<=this.endOf(n)},d.isAfter=function(t,n){return y(t)68?1900:2e3)}],YYYY:[/\d{4}/,a("year")],Z:u,ZZ:u},f=function(t,n,e){try{var i=function(t){for(var n=t.match(r),e=n.length,i=0;i0?o-1:m.getMonth(),D=a||m.getDate(),y=u||0,g=f||0,v=c||0,p=d||0;return e?new Date(Date.UTC($,M,D,y,g,v,p)):new Date($,M,D,y,g,v,p)}catch(t){return new Date("")}},function(t,n,r){var i=n.prototype,s=i.parse;i.parse=function(t){var n=t.date,i=t.format,o=t.pl,a=t.utc;this.$u=a,i?(e=o?r.Ls[o]:this.$locale(),this.$d=f(n,i,a),this.init(t)):s.call(this,t)}})});dayjs_min.extend(customParseFormat);const parseDate=(t,n)=>{let e=!1;if(n)switch(n){case"ISO_8601":e=t;break;case"RFC_2822":e=dayjs_min(t,"ddd, MM MMM YYYY HH:mm:ss ZZ").format("YYYYMMDD");break;case"MYSQL":e=dayjs_min(t,"YYYY-MM-DD hh:mm:ss").format("YYYYMMDD");break;case"UNIX":e=dayjs_min(t).unix();break;default:e=dayjs_min(t,n).format("YYYYMMDD")}return e};exports.parseDate=parseDate; //# sourceMappingURL=date-4abbfef1.js.map