
    b?1i
                     `    d Z ddlZddlmZ ddlmZ eddddddded	ed
edededefd       Zy)zeMail.    N   )hostname)	validatorF)ipv6_addressipv4_addresssimple_hostrfc_1034rfc_2782valuer   r   r   r	   r
   c                  | r| j                  d      dk7  ry| j                  dd      \  }}t        |      dkD  st        |      dkD  ry|s|rD|j                  d      r2|j	                  d      r!|j                  d      j                  d      }nyt        j                  d|t        j                        rt        t        || | d|||	            S dS )
a  Validate an email address.

    This was inspired from [Django's email validator][1].
    Also ref: [RFC 1034][2], [RFC 5321][3] and [RFC 5322][4].

    [1]: https://github.com/django/django/blob/main/django/core/validators.py#L174
    [2]: https://www.rfc-editor.org/rfc/rfc1034
    [3]: https://www.rfc-editor.org/rfc/rfc5321
    [4]: https://www.rfc-editor.org/rfc/rfc5322

    Examples:
        >>> email('someone@example.com')
        # Output: True
        >>> email('bogus@@')
        # Output: ValidationError(email=email, args={'value': 'bogus@@'})

    Args:
        value:
            eMail string to validate.
        ipv6_address:
            When the domain part is an IPv6 address.
        ipv4_address:
            When the domain part is an IPv4 address.
        simple_host:
            When the domain part is a simple hostname.
        rfc_1034:
            Allow trailing dot in domain name.
            Ref: [RFC 1034](https://www.rfc-editor.org/rfc/rfc1034).
        rfc_2782:
            Domain name is of type service record.
            Ref: [RFC 2782](https://www.rfc-editor.org/rfc/rfc2782).

    Returns:
        (Literal[True]):
            If `value` is a valid eMail.
        (ValidationError):
            If `value` is an invalid eMail.

    > *New in version 0.1.0*.
    @r   F@      []z(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*$|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"$))skip_ipv6_addrskip_ipv4_addrmay_have_portmaybe_simpler	   r
   )countrsplitlen
startswithendswithlstriprstriprematch
IGNORECASEboolr   )r   r   r   r   r	   r
   username_partdomain_parts           Z/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/validators/email.pyemailr$      s    f EKK$)!&c1!5M;
=B#k"2S"8|!!#&;+?+?+D%,,S188=K 88b MM
 	#//#//#(!!
	
( )    )__doc__r   r   utilsr   strr    r$    r%   r#   <module>r*      s|     
   
 WW 	W
 W W W W Wr%   