const e=[{conclude:"Concluir",from:"De",reset:"Redefinir",setTheDate:"Definir a data",to:"Até"}],a=[{january:"Janeiro",february:"Fevereiro",march:"Março",april:"Abril",may:"Maio",june:"Junho",july:"Julho",august:"Agosto",september:"Setembro",october:"Outubro",november:"Novembro",december:"Dezembro"}],r=[{sunday:"Domingo",monday:"Segunda",tuesday:"Terça",wednesday:"Quarta",thursday:"Quinta",friday:"Sexta",saturday:"Sábado"}],t=[{dateFormatIsIncorrect:"Formato da data esta incorreto",betweenPeriodOf:"Por favor selecione uma data entre o período de"}],o=[{conclude:"Concluir",from:"En",reset:"Reiniciar",setTheDate:"Establecer la fecha",to:"Hasta"}],s=[{january:"Enero",february:"Febrero",march:"Marzo",april:"Abril",may:"Puede",june:"Junio",july:"Julio",august:"Agosto",september:"Septiembre",october:"Octubre",november:"Noviembre",december:"Diciembre"}],n=[{sunday:"Domingo",monday:"Segundo",tuesday:"Martes",wednesday:"Cuatro",thursday:"Quinto",friday:"Viernes",saturday:"Sábado"}],u=[{dateFormatIsIncorrect:"El formato de fecha es incorrecto",betweenPeriodOf:"Seleccione una fecha entre el período de"}],d=[{conclude:"Conclude",from:"From",reset:"Reset",setTheDate:"Set the date",to:"To"}],l=[{january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"}],y=[{sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday"}],c=[{dateFormatIsIncorrect:"Date format is incorrect",betweenPeriodOf:"Please select a date between the period of"}],b=(a,r)=>{let t;switch(a){case"pt_BR":default:t=e.map((e=>e[r]));break;case"es_ES":t=o.map((e=>e[r]));break;case"en_US":t=d.map((e=>e[r]))}return t},m=(e,r)=>{let t;switch(e){case"pt_BR":default:t=a.map((e=>e[r]));break;case"es_ES":t=s.map((e=>e[r]));break;case"en_US":t=l.map((e=>e[r]))}return t},i=(e,a)=>{let t;switch(e){case"pt_BR":default:t=r.map((e=>e[a]));break;case"es_ES":t=n.map((e=>e[a]));break;case"en_US":t=y.map((e=>e[a]))}return t},h=(e,a)=>{let r;switch(e){case"pt_BR":default:r=t.map((e=>e[a]));break;case"es_ES":r=u.map((e=>e[a]));break;case"en_US":r=c.map((e=>e[a]))}return r},f=new Date,p=+(new Date).getFullYear(),v=+(new Date).getMonth(),S=e=>({Sunday:i(e,"sunday")[0],Monday:i(e,"monday")[0],Tuesday:i(e,"tuesday")[0],Wednesday:i(e,"wednesday")[0],Thursday:i(e,"thursday")[0],Friday:i(e,"friday")[0],Saturday:i(e,"saturday")[0]}),w=e=>[{value:0,label:m(e,"january")},{value:1,label:m(e,"february")},{value:2,label:m(e,"march")},{value:3,label:m(e,"april")},{value:4,label:m(e,"may")},{value:5,label:m(e,"june")},{value:6,label:m(e,"july")},{value:7,label:m(e,"august")},{value:8,label:m(e,"september")},{value:9,label:m(e,"october")},{value:10,label:m(e,"november")},{value:11,label:m(e,"december")}],$=`${f.getDate().toString().padStart(2,"0")}/${(f.getMonth()+1).toString().padStart(2,"0")}/${f.getFullYear()}`,D=`${f.getDate().toString().padStart(2,"0")}/${(f.getMonth()+1).toString().padStart(2,"0")}/${f.getFullYear()+100}`,j=(e,a,r)=>{const t=[];let o=a<e-4?e-4:a;const s=r>e+6?e+6:r;for(;o<=s;){const e={value:o,label:o.toString()};t.push(e),o++}return t},F=(e,a,r,t)=>{let o=[];return e==a.year&&e==r.year?(o=t.slice(a.month,r.month+1),o):e==a.year?(o=t.slice(a.month),o):e==r.year?(o=t.slice(0,r.month+1),o):t},g=(e=p,a=v)=>{const r=new Date(e,a,1),t=[];for(;r.getMonth()===a;){const e=new Date(r),a={date:e.getDate(),month:e.getMonth(),year:e.getFullYear(),day:e.getDay()};t.push(a),r.setDate(r.getDate()+1)}return t},_=(e=p,a=v)=>{const r={year:a-1<0?e-1:e,month:a-1<0?11:a-1},t={year:a+1>11?e+1:e,month:a+1>11?0:a+1},o={year:t.month+1>11?e+1:e,month:t.month+1>11?0:t.month+1},s={year:r.year,month:r.month,days:g(r.year,r.month)},n={year:e,month:a,days:g(e,a)},u={year:t.year,month:t.month,days:g(t.year,t.month)},d={year:o.year,month:o.month,days:g(o.year,o.month)},l=[];return l.push(s),l.push(n),l.push(u),l.push(d),l},T=e=>`${e.year}${e.month.toString().padStart(2,"0")}${e.date.toString().padStart(2,"0")}`,k=e=>`${e.getFullYear()}${e.getMonth().toString().padStart(2,"0")}${e.getDate().toString().padStart(2,"0")}`,E=e=>{const a=e.split("/"),r=new Date(parseFloat(a[2]),parseFloat(a[1])-1,parseFloat(a[0]));return{date:r.getDate(),month:r.getMonth(),year:r.getFullYear(),day:r.getDay()}},J=e=>{const a=e.split("-");return`${a[2]}/${a[1]}/${a[0]}`},M=e=>`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`;export{f as T,$ as a,D as b,M as c,E as d,b as e,T as f,k as g,_ as h,j as i,F as j,w as k,h as m,J as t,S as w}