function n(n,t){return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}function t(t,e,s=new Date){const o=[];const c=t.getFullYear();const r=t.getMonth();const a=new Date(c,r,1);const i=new Date(c,r+1,0);const u=a.getDay();const f=i.getDate();const d=new Date(c,r-1,0);for(let t=u-1;t>=0;t--){const a=new Date(c,r-1,d.getDate()-t);o.push({date:a,isCurrentMonth:false,isToday:n(a,s),isSelected:!!e&&n(a,e)})}for(let t=1;t<=f;t++){const a=new Date(c,r,t);o.push({date:a,isCurrentMonth:true,isToday:n(a,s),isSelected:!!e&&n(a,e)})}const D=42-o.length;for(let t=1;t<=D;t++){const a=new Date(c,r+1,t);o.push({date:a,isCurrentMonth:false,isToday:n(a,s),isSelected:!!e&&n(a,e)})}return o}function e(n,t){const e=n.getFullYear();const s=String(n.getMonth()+1).padStart(2,"0");const o=String(n.getDate()).padStart(2,"0");const c=String(n.getHours()).padStart(2,"0");const r=String(n.getMinutes()).padStart(2,"0");const a=String(n.getSeconds()).padStart(2,"0");return t.replace("YYYY",String(e)).replace("MM",s).replace("DD",o).replace("HH",c).replace("mm",r).replace("ss",a)}function s(n){if(!n)return undefined;const t=n instanceof Date?n:new Date(n);if(isNaN(t.getTime()))return undefined;return t}function o(n,t){const e=new Date(n);e.setMonth(e.getMonth()+t);return e}function c(n,t){const e=new Date(n);e.setFullYear(e.getFullYear()+t);return e}function r(n,t,e){const s=n.getFullYear();const o=e??s-s%12;const c=[];for(let n=0;n<12;n++){const e=o+n;c.push({year:e,isCurrentYearRange:e===s,isSelected:!!t&&t.getFullYear()===e})}return c}function a(n){const t=n.getFullYear();return t-t%12}const i=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"];const u=["日","一","二","三","四","五","六"];export{i as M,u as W,o as a,c as b,a as c,r as d,e as f,t as g,n as i,s as p};
//# sourceMappingURL=p-cf94cbf6.js.map