
    !ga                         d  Z d Zy)c                     |
t               S t        |t              r	 | |      hS 	 |D ch c]
  } | |       c}S c c}w # t        $ r  | |      hcY S w xY w)zNormalize arguments.

    :param cls:
        A type of arguments to normalize.

    :param value:
        Either a single item or an iterable of `cls` type.

    :return:
        A set created from `value` argument.

    )set
isinstancestr	TypeError)clsvaluevs      M/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/holidays/helpers.py_normalize_argumentsr      s^     }u%E
| %&1A&&& E
|s   A =A A AAc                 6    | rt        | d   t              r| S | fS )zNormalize tuple.

    :param data:
        Either a tuple or a tuple of tuples.

    :return:
        An unchanged object for tuple of tuples, e.g., ((JAN, 10), (DEC, 31)).
        An object put into a tuple otherwise, e.g., ((JAN, 10),).
        )r   tuple)r   s    r
   _normalize_tupler   '   s      E!He!<5J5(J    N)r   r    r   r
   <module>r      s   2
Kr   