HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srvntsweb01 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: admntserv (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //snap/certbot/5370/lib/python3.12/site-packages/packaging/__pycache__/metadata.cpython-312.pyc
�

���i����F�ddlmZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlmZm
Z
mZmZmZmZddlmZmZmZmZddlmZej2rddlmZej6d�Ze
j:d	k\reZnGd
�de�ZGd�d
e �Z!Gd�ded��Z"hd�Z#hd�Z$dhZ%dNd�Z&dOd�Z'dPd�Z(idd�dd�dd�dd�dd�d d!�d"d"�d#d$�d%d&�d'd(�d)d)�d*d*�d+d,�d-d.�d/d/�d0d1�d2d3�d4d5d6d7dd8d9d:d;d<d=d>d?d@dAdB��Z)e)jU�D��cic]\}}||��
c}}Z+GdC�dDejXjZ�Z.GdE�dFej^j`�Z1dQdG�Z2e3�Z4gdH�Z5edHZ6e7gdI��Z8GdJ�dKee�Z9GdL�dM�Z:ycc}}w)R�)�annotationsN)�Any�Callable�Generic�Literal�	TypedDict�cast�)�licenses�requirements�
specifiers�utils)�version)�NormalizedLicenseExpression�T)��c�6�eZdZUdZded<ded<d	d�Zd
d�Zy)�ExceptionGroupz�A minimal implementation of :external:exc:`ExceptionGroup` from Python 3.11.

        If :external:exc:`ExceptionGroup` is already defined by Python itself,
        that version is used instead.
        �str�message�list[Exception]�
exceptionsc� �||_||_y�N)rr)�selfrrs   ��/build/snapcraft-certbot-817459ae66b3942307a8b35b87e7f45e/parts/certbot/install/lib/python3.12/site-packages/packaging/metadata.py�__init__zExceptionGroup.__init__,s��"�D�L�(�D�O�c�h�|jj�d|j�d|j�d�S)N�(�, �))�	__class__�__name__rr)rs r�__repr__zExceptionGroup.__repr__0s1���n�n�-�-�.�a����/?�r�$�/�/�AT�TU�V�VrN)rrrr�return�None)r'r)r%�
__module__�__qualname__�__doc__�__annotations__rr&�rrrr"s��	���#�#�	)�	Wrrc�2��eZdZUdZded<	d�fd�Z�xZS)�InvalidMetadataz'A metadata field contains invalid data.r�fieldc�2��||_t�|�	|�yr)r0�superr)rr0rr$s   �rrzInvalidMetadata.__init__:s�����
�
����!r)r0rrrr'r()r%r)r*r+r,r�
__classcell__�r$s@rr/r/4s���1��J�;�"�"rr/c�R�eZdZUdZded<ded<ded<ded<ded<ded	<ded
<ded<ded<ded
<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded <ded!<ded"<ded#<ded$<y%)&�RawMetadataa�A dictionary of raw core metadata.

    Each field in core metadata maps to a key of this dictionary (when data is
    provided). The key is lower-case and underscores are used instead of dashes
    compared to the equivalent core metadata field. Any core metadata field that
    can be specified multiple times or can hold multiple values in a single
    field have a key with a plural name. See :class:`Metadata` whose attributes
    match the keys of this dictionary.

    Core metadata fields that can be specified multiple times are stored as a
    list or dict depending on which is appropriate for the field. Any fields
    which hold multiple values in a single field are stored as a list.

    r�metadata_version�namer�	list[str]�	platforms�summary�description�keywords�	home_page�author�author_email�license�supported_platforms�download_url�classifiers�requires�provides�	obsoletes�
maintainer�maintainer_email�
requires_dist�
provides_dist�obsoletes_dist�requires_python�requires_external�dict[str, str]�project_urls�description_content_type�provides_extra�dynamic�license_expression�
license_files�import_names�import_namespacesN)r%r)r*r+r,r-rrr6r6Cs���
� ��

�I�
�L���
�L������N��K���
�L�#�"������������O����������� � � � �"�!����������� � rr6F)�total>r8r?rAr;rr>rHr<r@rCrMrIr7rTrQ>rSrFrErGr:rDrVrUrKrJrLrRrWrNrBrPc�f�|jd�D�cgc]}|j���c}Scc}w)zCSplit a string of comma-separated keywords into a list of keywords.�,)�split�strip)�data�ks  r�_parse_keywordsr_�s$��#�z�z�#��/�!�A�G�G�I�/�/��/s�.c�x�i}|D]2}d�|jd�D�\}}}||vrtd��|||<�4|S)z?Parse a list of label/URL string pairings separated by a comma.c3�<K�|]}|j����y�wr)r\)�.0�ss  r�	<genexpr>z&_parse_project_urls.<locals>.<genexpr>�s����@�q�����@�s�rZz duplicate labels in project urls)�	partition�KeyError)r]�urls�pair�label�_�urls      r�_parse_project_urlsrl�sX��
�D����0A�D�N�N�3�,?�@�
��q�#��D�=��=�>�>���U��?�B�Krc��t|t�r$|j�}t|t�sJ�|S|jd��}t|t�sJ�	|j	dd�S#t
$r}t
d�|�d}~wwxYw)zGet the body of the message.T��decode�utf8�strictzpayload in an invalid encodingN)�
isinstancer�get_payload�bytesro�UnicodeDecodeError�
ValueError)�msg�source�payload�bpayload�excs     r�_get_payloadr|�s����&�#���/�/�#���'�3�'�'�'����?�?�$�?�/���(�E�*�*�*�	H��?�?�6�8�4�4��!�	H��=�>�C�G��	H�s�A,�,	B�5B�Br?zauthor-emailr@�
classifierrDr<zdescription-content-typerQzdownload-urlrCrSz	home-pager>�import-namerVzimport-namespacerWr=rAzlicense-expressionrTzlicense-filerUrHzmaintainer-emailrI�metadata-versionr7r8rGrLr:rFrKrRrErJrNrMr;rBr)r8rGzobsoletes-dist�platform�project-urlrFz
provides-distzprovides-extrarEz
requires-distzrequires-externalzrequires-pythonr;zsupported-platformrc�$�eZdZdZdZdZdZdd�Zy)�RFC822Policyz�
    This is :class:`email.policy.EmailPolicy`, but with a simple ``header_store_parse``
    implementation that handles multi-line values, and some nice defaults.
    TFrc�V�t|�dz}|jddd|zz�}||fS)N��
� )�len�replace)rr8�value�sizes    r�header_store_parsezRFC822Policy.header_store_parse5s2���4�y�1�}���
�
�d�D�3��:�$5�6���e�}�rN)r8rr�rr'ztuple[str, str])r%r)r*r+rp�mangle_from_�max_line_lengthr�r-rrr�r�+s���
�D��L��O�rr�c�:��eZdZdZd�fd�Z	d					dd�Z�xZS)�
RFC822Messagez�
    This is :class:`email.message.EmailMessage` with two small changes: it defaults to
    our `RFC822Policy`, and it correctly writes unicode when being called
    with `bytes()`.
    c�6��t�|�t���y)N��policy)r2rr�)rr$s �rrzRFC822Message.__init__Cs���
������/rc�F�|j||��jd�S)zi
        Return the bytes representation of the message.

        This handles unicode encoding.
        r�zutf-8)�	as_string�encode)r�unixfromr�s   r�as_byteszRFC822Message.as_bytesFs"���~�~�h�v�~�6�=�=�g�F�Fr)r'r()FN)r��boolr�zemail.policy.Policy | Noner'rt)r%r)r*r+rr�r3r4s@rr�r�<s5����0�LP�G��G�.H�G�	�Grr�c	��i}i}t|t�rHtjj	tj
j��j|�}nGtjjtj
j��j|�}t|j��D�]�}|j�}|j|�xsg}g}d}|D]�}	t|	tjjtf�sJ�t|	tjj�r�g}
tjj!|	�D]-\}}	|j#dd�d}
|
j'||
f��/|j'ttjj)|
�����|j'|	���|s|||<��'t*j-|�}|�|||<��E|t.vrt1|�dk(r
|d||<��e|d	k(r
|d
gk(rg||<��w|t2vr|||<���|dk(r!t1|�dk(rt5|d�||<���|dk(r	t7|�||<���|||<���	t;||�}|rbd
|vr?t=d|j?d
��}|jAd
g�jC||g�nd
|vr|d
j'|�n||d
<	t=d|�|fS#t$$rd}
d}Y���wxYw#t8$r	|||<Y��nwxYw#tD$rB|jAd
g�j'|jGt|tH����Y��wxYw)a
Parse a distribution's metadata stored as email headers (e.g. from ``METADATA``).

    This function returns a two-item tuple of dicts. The first dict is of
    recognized fields from the core metadata specification. Fields that can be
    parsed and translated into Python's built-in types are converted
    appropriately. All other fields are left as-is. Fields that are allowed to
    appear multiple times are stored as lists.

    The second dict contains all other fields from the metadata. This includes
    any unrecognized fields. It also includes any fields which are expected to
    be parsed into a built-in type but were not formatted appropriately. Finally,
    any fields that are expected to appear only once but are repeated are
    included in this dict.

    r�Trprq�latin1Fr
rrV�r=rPr<rrnr6)%rrr�email�parser�Parserr��compat32�parsestr�BytesParser�
parsebytes�	frozenset�keys�lower�get_all�header�Header�
decode_headerroru�append�make_header�_EMAIL_TO_RAW_MAPPING�get�_STRING_FIELDSr��_LIST_FIELDSr_rlrfr|r	�pop�
setdefault�extendrvrsrt)r]�raw�unparsed�parsed�name_with_caser8�headersr��valid_encoding�h�chunks�binary�	_encoding�encoding�raw_namery�description_headers                 r�parse_emailr�Qso�� 8:�C�%'�H��$������$�$�E�L�L�,A�,A�$�B�K�K�D�Q�����)�)����1F�1F�)�G�R�R�SW�X��
$�F�K�K�M�2�y#���#�#�%��
�.�.��&�,�"�������#	 �A��a�%�,�,�"5�"5�s�!;�<�<�<��!�U�\�\�0�0�1�:<��).���)C�)C�A�)F�	6�%�F�I�*��
�
�f�h�7�$*���M�M�6�8�"4�5�	6����S����!9�!9�&�!A�B�C����Q��G#	 �P�"�H�T�N��(�,�,�T�2����#�H�T�N���~�%�#�e�*��/�!�!�H�C��M���
'�E�b�T�M��C��M���
%�!�C��M���
#��E�
�a��+�E�!�H�5�C��M���
'�
'� 3�E� :��H�
�#�H�T�N�sy#�~-��v�t�,�����#�%)�%�����1G�%H�"��#�#�M�2�6�=�=�'��1���(�*���'�.�.�w�7�%,��M�"��
�s�#�X�-�-��[.�/�#+��).��/��T�
'�!&����
'���
����M�2�.�5�5����j��u�&=��>�	
�
�s7�'L�/L�L/�
L	�L	�L,�+L,�/AM:�9M:)�1.0�1.1�1.2�2.1�2.2z2.3�2.4�2.5)r7r8rc���eZdZUdZded<ded<ded<dd�			dd	�Zdd
�Zdd�Z	d					dd
�Zdd�Z	d d�Z
d!d�Zd d�Zd d�Z
d"d�Z				d#d�Zd$d�Z				d%d�Zd&d�Zd"d�Zd"d�ZeZy)'�
_ValidatoravValidate a metadata field.

    All _process_*() methods correspond to a core metadata field. The method is
    called with the field's raw value. If the raw value is valid it is returned
    in its "enriched" form (e.g. ``version.Version`` for the ``Version`` field).
    If the raw value is invalid, :exc:`InvalidMetadata` is raised (with a cause
    as appropriate).
    rr8r��_MetadataVersion�addedr��r�c��||_yrr�)rr�s  rrz_Validator.__init__s��
��
rc�.�||_t||_yr)r8�_RAW_TO_EMAIL_MAPPINGr�)r�_ownerr8s   r�__set_name__z_Validator.__set_name__%s����	�-�d�3��
rc�r�|j}|jj|j�}|jtvs|�"	t|d|j���}||�}|||j<	|j|j=td|�S#t$rY�>wxYw#t$rY�&wxYw)N�	_process_r)	�__dict__�_rawr�r8�_REQUIRED_ATTRS�getattr�AttributeErrorrfr	)r�instancer��cacher��	converters      r�__get__z_Validator.__get__)s����!�!���
�
�!�!�$�)�)�,���9�9��'�5�+<�
)�07��	�$�)�)��>U�0V�	�"�%�(�� ��d�i�i��	��
�
�d�i�i�(��C�����"�
��
���	��	�s$�B�8B*�	B'�&B'�*	B6�5B6Nc	��t|j|jdt|j�i��}||_|S)Nr0)r/r��
format_map�repr�	__cause__)rrw�causer{s    r�_invalid_metadataz_Validator._invalid_metadataDs<����M�M�3�>�>�7�D����4G�*H�I�
����
��
rc�R�|tvr|j|�d���td|�S)Nz  is not a valid metadata versionr�)�_VALID_METADATA_VERSIONSr�r	�rr�s  r�_process_metadata_versionz$_Validator._process_metadata_versionMs2���0�0��(�(�E�9�4T�)U�V�V��&��.�.rc��|s|jd��	tj|d��|S#tj$r}|j|�d�|��|�d}~wwxYw)N�{field} is a required fieldT��validate� is invalid for {field}�r�)r�r�canonicalize_name�InvalidName�rr�r{s   r�
_process_namez_Validator._process_nameSss����(�(�)F�G�G�	��#�#�E�D�9��L��� � �	��(�(��)�4�5�S�)���
��	�s�.�A�A�Ac��|s|jd��	tj|�S#tj$r}|j|�d�|��|�d}~wwxYw)Nr�r�r�)r��version_module�parse�InvalidVersionr�s   r�_process_versionz_Validator._process_version`sk����(�(�)F�G�G�	�!�'�'��.�.���,�,�	��(�(��)�4�5�S�)���
��	�s�*�A�A�Ac�0�d|vr|jd��|S)z%Check the field contains no newlines.r�z{field} must be a single line)r�r�s  r�_process_summaryz_Validator._process_summaryjs ���5�=��(�(�)H�I�I��rc��hd�}tjj�}||d<|j�j	�|dj
}}||vs||j	�vr |j
dt|��d|����|jdd�}|dk7r|j
dt|�����dd	h}|jd
d�}|dk(r$||vr |j
dt|��d|����|S)
N>�
text/plain�
text/x-rst�
text/markdownzcontent-typez{field} must be one of �, not �charsetzUTF-8z0{field} can only specify the UTF-8 charset, not �GFM�
CommonMark�variantr�z(valid Markdown variants for {field} are )	r�r�EmailMessage�get_content_typer��paramsr��listr�)	rr��
content_typesr�content_type�
parametersr��markdown_variantsrs	         r�!_process_description_content_typez,_Validator._process_description_content_typeps/��E�
��-�-�,�,�.��"'����
�$�$�&�,�,�.��N�#�*�*�!���}�,��E�K�K�M�0Q��(�(�+�D��,?�+@��u�i�P��
��.�.��G�4���g���(�(�D�T�'�]�O�T��
�#�L�1���.�.��E�2���?�*�w�>O�/O��(�(�<�T�BS�=T�<U�V��k�#��
��rc���ttj|�D]6}|dvr|j|�d���|tvs�$|j|�d���tttj|��S)N>r8rrz" is not allowed as a dynamic fieldz is not a valid dynamic field)�maprr�r�r�r)rr��
dynamic_fields   r�_process_dynamicz_Validator._process_dynamic�s��� ����E�2�	�M�� G�G��,�,�$�'�'I�J����&;�;��,�,�$�'�'D�E���
	��C��	�	�5�)�*�*rc���g}	|D](}|jtj|d����*	|S#tj$r}|j	�d�|��|�d}~wwxYw)NTr�r�r�)r�rr�r�r�)rr��normalized_namesr8r{s     r�_process_provides_extraz"_Validator._process_provides_extra�s�����	$��
V�� �'�'��(?�(?��t�(T�U�
V�$�#��� � �	��(�(��(�3�4�C�)���
��	�s�-4�A#�A�A#c��	tj|�S#tj$r}|j|�d�|��|�d}~wwxYw�Nr�r�)r
�SpecifierSet�InvalidSpecifierr�r�s   r�_process_requires_pythonz#_Validator._process_requires_python�sV��	��*�*�5�1�1���*�*�	��(�(��)�4�5�S�)���
��	�s��A�A�Ac���g}	|D]&}|jtj|���(	|S#tj$r}|j	�d�|��|�d}~wwxYwr)r�r�Requirement�InvalidRequirementr�)rr��reqs�reqr{s     r�_process_requires_distz!_Validator._process_requires_dist�s{����	��
;�����L�4�4�S�9�:�
;��K���.�.�	��(�(��'�2�3�3�)���
��	�s�+2�A!�A�A!c�~�	tj|�S#t$r}|j|�d�|��|�d}~wwxYwr)r�canonicalize_license_expressionrvr�r�s   r�_process_license_expressionz&_Validator._process_license_expression�sP��	��;�;�E�B�B���	��(�(��)�4�5�S�)���
��	�s��	<�7�<c���g}|D]�}d|vr|j|�d���d|vr|j|�d���tj|�j�s#tj|�j�r|j|�d���tj|�j�|k7r|j|�d���|j
|���|S)Nz..zD is invalid for {field}, parent directory indicators are not allowed�*z/ is invalid for {field}, paths must be resolvedz/ is invalid for {field}, paths must be relativez5 is invalid for {field}, paths must use '/' delimiter)r��pathlib�
PurePosixPath�is_absolute�PureWindowsPath�as_posixr�)rr��paths�paths    r�_process_license_filesz!_Validator._process_license_files�s�����	�D��t�|��,�,��h�B�B����d�{��,�,��h�O�P����%�%�d�+�7�7�9��*�*�4�0�<�<�>��,�,��h�O�P����&�&�t�,�5�5�7�4�?��,�,��h�U�V���
�L�L���+	�,�rc��|D]�}|jd�\}}}|j�}|jd�D]U}|j�s|j	|�d|�d���tj|�s�@|j	|�d|�d���|s��|j�dk7s��|j	|�d���|S)N�;�.z is invalid for {field}; z is not a valid identifierz
 is a keyword�privatez; is invalid for {field}; the only valid option is 'private')re�rstripr[�isidentifierr��keyword�	iskeyword�lstrip)rr��import_namer8�	semicolonr-�
identifiers       r�_process_import_namesz _Validator._process_import_names�s��� �	�K�'2�'<�'<�S�'A�$�D�)�W��;�;�=�D�"�j�j��o�

�
�!�.�.�0��0�0��(�"=�%�.�(B�D����&�&�z�2��0�0��(�"=�%�.�
�7���

��W�^�^�-��:��,�,�"�o�&9�9���	�&�r)r�r�r'r()r��Metadatar8rr'r()r�r7r�ztype[Metadata]r'rr)rwrr�zException | Noner'r/)r�rr'r�)r�rr'r)r�rr'zversion_module.Version)r�r9r'r9)r�r9r'zlist[utils.NormalizedName])r�rr'zspecifiers.SpecifierSet)r�r9r'zlist[requirements.Requirement])r�rr'r)r%r)r*r+r,rr�r�r�r�r�r�r�r
rrrrrr)r6�_process_import_namespacesr-rrr�r�s�����I��M���
#(�� ��
�	�4� �837����/��	��/�����@
+�
$��
$�
$�
$��
��
�
(�
���4�,"7�rr�c���eZdZUdZded<edd�d<d��Zedd�d=d��Ze�Z	ded	<	e�Z
d
ed<	e�Zded
<	ed��Zded<	e�Z
ded<	ed��Zded<	e�Zded<	e�Zded<	ed��Zded<	e�Zded<	e�Zded<	ed��Zded<	e�Zded<	e�Zded<	ed��Zded <	ed��Zded!<	e�Zded"<	ed#��Zd$ed%<	ed#��Zded&<	ed��Zded'<	ed��Zd(ed)<	ed��Zd*ed+<	ed��Zded,<	ed��Z d-ed.<	ed��Z!d/ed0<	ed��Z"ded1<	ed��Z#ded2<	ed3��Z$ded4<	ed3��Z%ded5<	ed��Z&ded6<	ed��Z'ded7<	ed��Z(ded8<	d>d9�Z)d?d:�Z*y;)@r7aJRepresentation of distribution metadata.

    Compared to :class:`RawMetadata`, this class provides objects representing
    metadata fields instead of only using built-in types. Any invalid metadata
    will cause :exc:`InvalidMetadata` to be raised (with a
    :py:attr:`~BaseException.__cause__` attribute as appropriate).
    r6r�Tr�c	���|�}|j�|_|r�g}	|j}tj	|�}t|j�tz}|dhz}|D]t}		|rc	|j|	j}
tj	|
�}|kDr/t|	}
t|
|
�d|
�d|���}|j
|��it||	��v|rtd|��|S#t
$r}|j
|�d}Yd}~��d}~wwxYw#t$r#t|	d|	���}|j
|�Y��wxYw#t
$r}|j
|�Yd}~��d}~wwxYw)z�Create an instance from :class:`RawMetadata`.

        If *validate* is true, all metadata will be validated. All exceptions
        related to validation will be gathered and raised as an :class:`ExceptionGroup`.
        Nr7�unrecognized field: z  introduced in metadata version r�zinvalid metadata)�copyr�r7r��indexr/r�r�r�r�r�rfr�r�r)�clsr]r��insrr7�metadata_age�metadata_version_exc�fields_to_check�key�field_metadata_versionr{�	field_ager0s              r�from_rawzMetadata.from_raws����e���9�9�;����*,�J�
(�#&�#7�#7� �7�=�=�>N�O��(����1�O�C�O�� 2�3�3�O�&�
+��+�'�%�58�\�\�#�5F�5L�5L�2�
%=�$B�$B�2�%�	�%�|�3�$9�#�$>�E�"1� %�#(�'�)I�#9�":�&�AQ�@R�!T�#�C�
'�-�-�c�2�$��C��%�/
+�6�$�%7��D�D��
��Q#�
(��!�!�"6�7�#'� ��
(��" (�%�"1�#�9M�c�W�7U�"V�C�&�-�-�c�2�$�%��"'�+��%�%�c�*�*��+�sZ�!C.�+E�.D�AE�E�.	D�7D�D�)E�E�E�E�	E*�E%�%E*c�$�t|�\}}|rEg}|D]0}|tvr|�d�}nd|��}|jt||���2|rt	d|��	|j||��S#t$r}t	d|j�d�d}~wwxYw)z�Parse metadata from email headers.

        If *validate* is true, the metadata will be validated. All exceptions
        related to validation will be gathered and raised as an :class:`ExceptionGroup`.
        z has invalid datar;r�r�zinvalid or unparsed metadataN)r�r�r�r/rrFr)	r>r]r�r�r�r�unparsed_keyr�	exc_groups	         r�
from_emailzMetadata.from_emailAs���$�D�)�
��X��*,�J� (�
J���#8�8�!-� 0�0A�B�G� 4�\�4D�E�G��!�!�/�,��"H�I�
J��$�Z��<�<�	��<�<��h�<�7�7���	� �.�	�0D�0D���
��	�s�A*�*	B�3B
�
Bz_Validator[_MetadataVersion]r7z_Validator[str]r8z"_Validator[version_module.Version]rr�r�z_Validator[list[str] | None]rSr:r�rBz_Validator[str | None]r;r<r�rQr=r>rCr?r@r�rHrIrAr�z._Validator[NormalizedLicenseExpression | None]rTrUrDz1_Validator[list[requirements.Requirement] | None]rJz*_Validator[specifiers.SpecifierSet | None]rMrNz!_Validator[dict[str, str] | None]rPz-_Validator[list[utils.NormalizedName] | None]rRrKrLr�rVrWrErFrGc�<�t�}|j|�|S)�=
        Return an RFC822 message with the metadata.
        )r��_write_metadata)rrs  r�	as_rfc822zMetadata.as_rfc822�s�� �/�����W�%��rc��|jjj�D]�\}}t|t�s�|dk7s�t||�}t|}|��5|dk(r#|j�D]\}}|�d|��||<��]|dk(rdj|�||<�w|dk(r|gk(rd||<��t|t�r|D]}t|�||<���t|�||<��|j�|j|j�yy)	rLr<Nr�r"r=rZr~r�)r$r��itemsrrr�r�r��joinrrr<�set_payload)	rrr8�	validatorr��
email_namerirk�items	         rrMzMetadata._write_metadata�s�� $�~�~�6�6�<�<�>�	9�O�D�)��)�Z�0�T�]�5J���d�+��2�4�8�
��$�!�]�2�*/�+�+�-�D�J�E�3�5:�G�2�c�U�2C�G�J�/�D�#�z�1�.1�h�h�u�o��
�+�#�}�4��"��.0��
�+�#�E�4�0�$)�<�D�25�d�)�G�J�/�<�/2�%�j��
�+�!	9�&���'����� 0� 0�1�(rN)r]r6r�r�r'r7)r]�bytes | strr�r�r'r7)r'r�)rr�r'r()+r%r)r*r+r,�classmethodrFrJr�r7r8rrSr:rBr;r<rQr=r>rCr?r@rHrIrArTrUrDrJrMrNrPrRrKrLrVrWrErFrGrNrMr-rrr7r7�s�������=A�6��6�p�?C����66@�\��2�A�<�'�L�D�/�(��3=�,�G�
/�>�:�,6��-�G�
)��D�.8�l�I�+�:�0�8B��8O��5�O�:�&0�l�G�
#�2�R�*4�,�K�'�6�3�7A��7N��4�N�L�-7�\�H�*�9�0�(2��I�%�4�1�+5�E�+B�L�(�B�4�%/�\�F�"�1�.�+5�<�L�(�7�4�)3�%�)@�J�&�@�2�/9��/F��,�F�8�&0�l�G�
#�2�/�IS��J��F��;�2<�5�2I�M�/�I�4�0:��0G�K�-�G�2�GQ��H�M�D��6�BL��C�O�?��8�7A�u�6M��3�M�9�6@�u�6M�L�3�M�3�EO��E�N�A��7�2<�5�2I�M�/�I�5�3=�E�3J�N�0�J�6�1;�%�1H�L�.�H�3�6@�u�6M��3�M�8�-7�e�-D�H�*�D�#�-7�e�-D�H�*�D�#�.8�u�.E�I�+�E�$��2rr7)r]rr'r9)r]r9r'rO)rwzemail.message.MessagerxrVr'r)r]rVr'z(tuple[RawMetadata, dict[str, list[str]]]);�
__future__r�email.feedparserr��email.header�
email.message�email.parser�email.policyr0r"�sys�typingrrrrrr	r�rrr
rrr��
TYPE_CHECKINGr�TypeVarr�version_infor�	Exceptionrvr/r6r�r��_DICT_FIELDSr_rlr|r�rPr�r��EmailPolicyr�rrr�r��object�
_NOT_FOUNDr�r�r�r�r�r7)r�r�s00r�<module>rhss��"��������
�
���8�7�'�	���5��F�N�N�3������w��#�N�W��W�$"�j�"�I!�)�5�I!�\��$��&���
0�
$�NH�>!��h�!��N�!��-�!��=�	!�
� :�!��N�
!��y�!���!��>�!��+�!��
�!��y�!��.�!��O�!��,�!� �*�!!�"�*�#!�$
��&��!��$�&��$�,�(��/��A!��D7L�6Q�6Q�6S�T�
��s��e��T��
�5�<�<�+�+�
�"G�E�M�M�.�.�G�*r.�j�X�
�T���Q�R���C�D��j7����j7�ZU2�U2��mUs�
F