
    !gk                     ~    d dl m Z d dlmZ d dlmZmZ d dlmZ  G d deee      Z	 G d de	      Z
 G d	 d
e	      Zy)    )gettext)_get_all_sundays)ChristianHolidaysInternationalHolidays)HolidayBasec                   6     e Zd ZdZdZdZdZd fd	Zd Z xZ	S )Norwaya	  
    Norwegian holidays.
    Note that holidays falling on a sunday is "lost",
    it will not be moved to another day to make up for the collision.

    In Norway, ALL sundays are considered a holiday (https://snl.no/helligdag).
    Initialize this class with include_sundays=False
    to not include sundays as a holiday.

    Primary sources:
        - https://lovdata.no/dokument/NL/lov/1947-04-26-1
        - https://no.wikipedia.org/wiki/Helligdager_i_Norge
        - https://www.timeanddate.no/merkedag/norge/
    NOno)en_USr   thukc                     || _         t        j                  |        t        j                  |        t	        |   |i | y)zy
        :param include_sundays:
            Whether to consider sundays as a holiday (which they are in Norway)
        N)include_sundaysr   __init__r   super)selfr   argskwargs	__class__s       V/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/holidays/countries/norway.pyr   zNorway.__init__(   s;    
  /""4(&&t,$)&)    c                    | j                  t        d             | j                  t        d             | j                  t        d             | j	                  t        d             | j                  t        d             | j                  dk\  r4| j                  t        d             | j                  t        d             | j                  t        d	             | j                  t        d
             | j                  t        d             | j                  t        d             | j                  t        d             | j                  r6t        | j                        D ]  }| j!                  t        d      |        y y )Nu   Første nyttårsdagu   Skjærtorsdag
Langfredagu   Første påskedagu   Andre påskedagi  zArbeidernes dagGrunnlovsdagzKristi himmelfartsdagu   Første pinsedagzAndre pinsedagu   Første juledagzAndre juledagu   Søndag)_add_new_years_daytr_add_holy_thursday_add_good_friday_add_easter_sunday_add_easter_monday_year_add_labor_day_add_holiday_may_17_add_ascension_thursday_add_whit_sunday_add_whit_monday_add_christmas_day_add_christmas_day_twor   r   _add_holiday)r   dts     r   _populate_public_holidaysz Norway._populate_public_holidays2   sJ   #8 9: 	? 34 	b./ 	#6 78 	#4 56 ::#4 56 $$R%78 	$$R(?%@A 	b!345 	b!123 	#4 56 	##B$78&tzz2 5!!"Y-45  r   )F)
__name__
__module____qualname____doc__countrydefault_languagesupported_languagesr   r,   __classcell__)r   s   @r   r	   r	      s%     G5*/5r   r	   c                       e Zd Zy)r
   Nr-   r.   r/    r   r   r
   r
   d       r   r
   c                       e Zd Zy)NORNr6   r7   r   r   r:   r:   h   r8   r   r:   N)r   r   holidays.calendars.gregorianr   holidays.groupsr   r   holidays.holiday_baser   r	   r
   r:   r7   r   r   <module>r>      s@    " 9 D -M5[+-B M5`	 		& 	r   