import{m as e}from"./p-65eb3f89.js";const t={timeZone:"Europe/Istanbul",locale:"tr",timeFormat:"24-hour",dateFormat:"DD/MM/YYYY",dayNamesOrdered:[],setLocale(a,r,n="monday"){if(e.locale(a),t.locale=a,r){!function(t,a){e.locale(t,{months:[a.january,a.february,a.march,a.april,a.may,a.june,a.july,a.august,a.september,a.october,a.november,a.december],monthsShort:[a.january3,a.february3,a.march3,a.april3,a.may3,a.june3,a.july3,a.august3,a.september3,a.october3,a.november3,a.december3],monthsParseExact:!0,weekdays:[a.sunday,a.monday,a.tuesday,a.wednesday,a.thursday,a.friday,a.saturday],weekdaysShort:[a.sunday3,a.monday3,a.tuesday3,a.wednesday3,a.thursday3,a.friday3,a.saturday3],weekdaysMin:[a.sunday2,a.monday2,a.tuesday2,a.wednesday2,a.thursday2,a.friday2,a.saturday2]})}(a,r);const s=[r.sunday3,r.monday3,r.tuesday3,r.wednesday3,r.thursday3,r.friday3,r.saturday3],o=[];for(let e=0;e<7;e++)o.push(s[(e+t.getWeekStartIndex(n))%7]);t.dayNamesOrdered=o}},getWeekStartIndex(e){switch(e){case"monday":return 1;case"saturday":return 6;case"sunday":default:return 0}},createDateWithHours(a,r,n){const s=a.getDate(),o=a.getMonth()+1,m=a.getFullYear();return e.tz(`${s}/${o}/${m} ${r}:${n}`,"D/M/YYYY h:mm",t.timeZone).toDate()},setTimeZone(e){t.timeZone=e},setTimeFormat(e){t.timeFormat=e},setDateFormat(e){t.dateFormat=e},fixHourDifference(a){const r=((new Date).getTimezoneOffset()-e.tz.zone(t.timeZone).utcOffset(new Date))/60;return a.setHours(a.getHours()-r),a},format:(a,r)=>"HH:mm"===r&&"12-hour"===t.timeFormat?e(a).tz(t.timeZone).format("hh:mm A"):e(a).tz(t.timeZone).format(r),getZoneAbbr:(t=e.tz.guess())=>e.tz(t).zoneAbbr(),getStartAndEndDateFromInputs(e,a,r){let n=new Date(e.getTime());n.setHours(a.getHours(),a.getMinutes(),0);let s=new Date(e.getTime());return s.setHours(r.getHours(),r.getMinutes(),0),n=t.fixHourDifference(n),s=t.fixHourDifference(s),{startDate:n.getTime()/1e3,endDate:s.getTime()/1e3}},elapsedTime:a=>e(a).tz(t.timeZone).fromNow(),elapsedTimeBetweenDates:(t,a)=>e(t).from(e(a)),getMonday:()=>e().startOf("isoWeek").toDate(),getStartEndOfWeek(e=0){const a=6048e5*e,r=new Date(new Date(t.getMonday()).getTime()+a);r.setHours(0,0,0,0);const n=new Date(r.getTime());return n.setDate(r.getDate()+6),n.setHours(23,59,59,99),{relativeWeekNumber:e,firstDayOfWeek:r,lastDayOfWeek:n}}};export{t as C}