use crate::Resolved;
use crate::data::YearFact;
use crate::raw_date::RawDate;
use crate::data::months;
pub(crate) const FIRST_YEAR: i32 = 2003;
pub(crate) const Y2003: YearFact = YearFact {
holidays: months! {},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2004: YearFact = YearFact {
holidays: months! {
Mar: [23],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2005: YearFact = YearFact {
holidays: months! {
Mar: [23],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2006: YearFact = YearFact {
holidays: months! {
Mar: [23],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2007: YearFact = YearFact {
holidays: months! {
Mar: [23],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2008: YearFact = YearFact {
holidays: months! {
Mar: [23],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2009: YearFact = YearFact {
holidays: months! {
Mar: [23],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2010: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2011: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2012: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2013: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2014: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2015: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2016: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2017: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2018: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2019: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2020: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2021: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2022: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2023: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2024: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [9, 10, 11, 16],
Jun: [17, 18],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2025: YearFact = YearFact {
holidays: months! {
Mar: [23, 30, 31],
Apr: [1, 16],
Jun: [6, 7, 8],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2026: YearFact = YearFact {
holidays: months! {
Mar: [19, 20, 21, 23],
Apr: [16],
May: [27, 28, 29],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
static YEARS: [YearFact; 24] = [
Y2003, Y2004, Y2005, Y2006, Y2007, Y2008, Y2009, Y2010, Y2011, Y2012, Y2013, Y2014, Y2015,
Y2016, Y2017, Y2018, Y2019, Y2020, Y2021, Y2022, Y2023, Y2024, Y2025, Y2026,
];
static PREDICT: YearFact = YearFact {
holidays: months! {
Mar: [23],
Apr: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
#[inline]
pub(crate) fn flags(date: RawDate) -> Resolved<crate::DayFlags> {
super::resolve(date, FIRST_YEAR, &YEARS, &PREDICT)
}