
    ij              	           S SK Jr  S SKJr  S SKJrJr  \(       a  SSKJr  S\	\   SSS	\\/\4   4S
 jr
S\	\   SSS	\\\	\   /\4   4S jrg)    )Callable)Enum)TYPE_CHECKINGAny   )BaseConvertertype	converterr   returnc                 6   ^ SU R                   ;   a  U4S j$ S $ )zA factory for generating enum unstructure hooks.

If the enum is a typed enum (has `_value_`), we use the underlying value's hook.
Otherwise, we use the value directly.
_value_c                 :   > TR                  U R                  5      $ N)unstructurevalue)er
   s    K/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/cattrs/enums.py<lambda>*enum_unstructure_factory.<locals>.<lambda>   s    ..qww7    c                     U R                   $ r   )r   )r   s    r   r   r      s    QWWr   )__annotations__)r	   r
   s    `r   enum_unstructure_factoryr   	   s     D(((77r   c                    ^ ^^ ST R                   ;   a(  T R                   S   mUR                  T5      mU UU4S j$ U 4S j$ )zA factory for generating enum structure hooks.

If the enum is a typed enum (has `_value_`), we structure the value first.
Otherwise, we use the value directly.
r   c                 "   > T" T" U T5      5      $ r    )v_r	   val_hookval_types     r   r   (enum_structure_factory.<locals>.<lambda>"   s    D!X!67r   c                    > T" U 5      $ r   r   )r   r   r	   s     r   r   r!   $   s	    Qr   )r   get_structure_hook)r	   r
   r   r    s   ` @@r   enum_structure_factoryr$      s?     D(((''	2//977r   N)collections.abcr   enumr   typingr   r   
convertersr   r	   r   r$   r   r   r   <module>r)      st    $  %)
t*!0tfck 
t* !0 sDJ%& r   