Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.188.243.41
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : url.cpython-312.pyc
�

=fm;���ddlmZddlZddlZddlmZddlmZdZejd�Z
ejd	�Zejd
ejejz�ZdZdZd
j#ee��Zeed�Zgd�ZdZddj-eD�cgc]}|ez��	c}�zdzZdezdzZdezdzezdzZdZejd�Zejdezdz�Zejdezdz�Zejdezdz�Zejdeddzdz�Zejdezdz�Z d e�de�de�d!�Z!eje!ejejz�Z"e#d"�Z$e#d#�Z%e$e%zd$hzZ&e&d%d&hzZ'e'd'hzxZ(Z)Gd(�d)ejTd)d*ejVe,fd+ejVe,fd,ejVe,fd-ejVe-fd.ejVe,fd/ejVe,fd0ejVe,fg��Z.ej^						d;d1��Z0ej^						d<d2��Z0						d=d3�Z0d>d4�Z1ej^d?d5��Z2ej^d@d6��Z2dAd7�Z2dBd8�Z3dCd9�Z4dDd:�Z5ycc}w)E�)�annotationsN�)�LocationParseError�)�to_str)�http�httpsNz%[a-fA-F0-9]{2}z^(?:[a-zA-Z][a-zA-Z0-9+-]*:|/)zS^(?:([a-zA-Z][a-zA-Z0-9+.-]*):)?(?://([^\\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?$z(?:[0-9]{1,3}\.){3}[0-9]{1,3}z[0-9A-Fa-f]{1,4}z(?:{hex}:{hex}|{ipv4}))�hex�ipv4)r
�ls32)	z(?:%(hex)s:){6}%(ls32)sz::(?:%(hex)s:){5}%(ls32)sz%(?:%(hex)s)?::(?:%(hex)s:){4}%(ls32)sz2(?:(?:%(hex)s:)?%(hex)s)?::(?:%(hex)s:){3}%(ls32)sz6(?:(?:%(hex)s:){0,2}%(hex)s)?::(?:%(hex)s:){2}%(ls32)sz/(?:(?:%(hex)s:){0,3}%(hex)s)?::%(hex)s:%(ls32)sz'(?:(?:%(hex)s:){0,4}%(hex)s)?::%(ls32)sz&(?:(?:%(hex)s:){0,5}%(hex)s)?::%(hex)sz(?:(?:%(hex)s:){0,6}%(hex)s)?::zCABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._\-~z(?:�|�)z
(?:%25|%)(?:[z]|%[a-fA-F0-9]{2})+z\[z)?\]z!(?:[^\[\]%:/?#]|%[a-fA-F0-9]{2})*z!^(/[^?#]*)(?:\?([^#]*))?(?:#.*)?$�^�$����(z)\]$z^(z)(?::0*?(|0|[1-9][0-9]{0,4}))?$zBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~z!$&'()*+,;=�:�@�/�?c���eZdZdZ							d														d
�fd�
Zedd��Zedd��Zedd��Zedd��Z	edd��Z
dd�Z�xZS)
�Urlz�
    Data structure for representing an HTTP URL. Used as a return value for
    :func:`parse_url`. Both the scheme and host are normalized as they are
    both case-insensitive according to RFC 3986.
    c
���|r|jd�sd|z}|�|j�}t�|�
||||||||�S)Nr)�
startswith�lower�super�__new__)	�cls�scheme�auth�host�port�path�query�fragment�	__class__s	        ��G/usr/local/python-3.12/lib/python3.12/site-packages/urllib3/util/url.pyrzUrl.__new__dsJ��������,���:�D����\�\�^�F��w��s�F�D�$��d�E�8�T�T�c��|jS)z@For backwards-compatibility with urlparse. We're nice like that.)r!��selfs r'�hostnamezUrl.hostnamets���y�y�r(c�b�|jxsd}|j�|d|jzz
}|S)z)Absolute path including the query string.rr)r#r$)r+�uris  r'�request_urizUrl.request_uriys4���i�i��3���:�:�!��3����#�#�C��
r(c�L�|j}|j}|�|�|S|�d|��S)z�
        Authority component as defined in RFC 3986 3.2.
        This includes userinfo (auth), host and port.

        i.e.
            userinfo@host:port
        r)r �netloc)r+�userinfor1s   r'�	authorityz
Url.authority�s6���9�9�������>�X�-��M��Z�q���)�)r(c��|j�y|jr|j�d|j��S|jS)z�
        Network location including host and port.

        If you need the equivalent of urllib.parse's ``netloc``,
        use the ``authority`` property instead.
        Nr)r!r"r*s r'r1z
Url.netloc�s;���9�9����9�9��i�i�[��$�)�)��-�-��y�y�r(c��|\}}}}}}}d}|�||dzz
}|�||dzz
}|�||z
}|�|dt|�zz
}|�||z
}|�|d|zz
}|�|d|zz
}|S)a2
        Convert self into a url

        This function should more or less round-trip with :func:`.parse_url`. The
        returned url may not be exactly the same as the url inputted to
        :func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls
        with a blank port will have : removed).

        Example:

        .. code-block:: python

            import urllib3

            U = urllib3.util.parse_url("https://google.com/mail/")

            print(U.url)
            # "https://google.com/mail/"

            print( urllib3.util.Url("https", "username:password",
                                    "host.com", 80, "/path", "query", "fragment"
                                    ).url
                )
            # "https://username:password@host.com:80/path?query#fragment"
        �z://rrr�#)�str)	r+rr r!r"r#r$r%�urls	         r'r9zUrl.url�s���6;?�7���d�D�$��x������6�E�>�!�C����4�#�:��C����4�K�C����3��T��?�"�C����4�K�C����3��;��C����3��>�!�C��
r(c��|jS�N)r9r*s r'�__str__zUrl.__str__�s���x�x�r()NNNNNNN)r�
str | Noner r=r!r=r"z
int | Noner#r=r$r=r%r=)�returnr=)r>r8)
�__name__�
__module__�__qualname__�__doc__r�propertyr,r/r3r1r9r<�
__classcell__)r&s@r'rrPs�����"����� �#�U��U��U��	U�
�U��
U��U��U� ���������
*��
*������-��-�^r(rrr r!r"r#r$r%c��yr;���	component�
allowed_charss  r'�_encode_invalid_charsrJ����r(c��yr;rFrGs  r'rJrJ�rKr(c��|�|St|�}tjd�|�\}}|jdd�}||j	d�k(}t�}t
dt|��D]�}|||dz}t|�}|r|dk(s|dkr|j�|vr||z
}�:|jdt|�d	dj�jd	�j�z���|j�S)
zfPercent-encodes a URI component without reapplying
    onto an already percent-encoded component.
    Nc�@�|jd�j�S)Nr)�group�upper)�matchs r'�<lambda>z'_encode_invalid_chars.<locals>.<lambda>�s��e�k�k�!�n�*�*�,�r(zutf-8�
surrogatepass�%rr�r)r�_PERCENT_RE�subn�encode�count�	bytearray�range�len�ord�decode�extendr
�zfillrP)	rHrI�percent_encodings�	uri_bytes�is_percent_encoded�encoded_component�i�byte�byte_ords	         r'rJrJ�s�������y�!�I�
$/�#3�#3�,�i�$� �I� �� � ��/�:�I�*�i�o�o�d�.C�C��!���
�1�c�)�n�
%�	W����Q��U�#���t�9���4�4�<��s�N�t�{�{�}�
�=���%���� � ���X��q�r�):�)A�)A�)C�)I�)I�!�)L�)R�)R�)T�!U�V�	W��#�#�%�%r(c�P�|jd�}g}|D]2}|dk(r�	|dk7r|j|�� |s�#|j��4|jd�r|r|dr|j	dd�|jd�r|jd�dj
|�S)Nr�.z..rr6)z/.z/..)�split�append�popr�insert�endswith�join)r#�segments�output�segments    r'�_remove_path_dot_segmentsrss����z�z�#��H�
�F��
���c�>���d�?��M�M�'�"���J�J�L�
����s��V�v�a�y��
�
�a����}�}�]�#��
�
�b���8�8�F��r(c��yr;rF�r!rs  r'�_normalize_hostrv%���r(c��yr;rFrus  r'rvrv*rwr(c
��|�r|tvr�tj|�}|r�tj	|�}|rg|jd�\}}|||}|j
d�r|dk7r|dd}n|dd}t|t�}|d|j��d|�||d��S|j�Stj|�sAtdj|jd�D�cgc]
}t|���c}�d�S|Scc}w)Nrz%25��%�.ri�ascii)�_NORMALIZABLE_SCHEMES�_IPV6_ADDRZ_RErQ�_ZONE_ID_RE�search�spanrrJ�_UNRESERVED_CHARSr�_IPV4_RErrorj�_idna_encode)r!r�is_ipv6rQ�start�end�zone_id�labels        r'rvrv/s����*�*�$�*�*�4�0�G��$�*�*�4�0���!&���A��J�E�3�"�5��o�G��)�)�%�0�W��5E�")�!�"�+��")�!�"�+��3�G�=N�O�G�"�6�E�l�0�0�2�3�1�W�I�d�3�4�j�\�J�J��:�:�<�'��^�^�D�)���I�I��
�
�3��P�u�|�E�2�P�Q�����K��Qs�)D	c�(�|j�s(	ddl}	|j	|j�dd��S|j�j	d�S#t$r
td�d�wxYw#|j$rtd|�d��d�wxYw)Nrz-Unable to parse URL without the 'idna' moduleT)�strict�
std3_ruleszName 'z' is not a valid IDNA labelr})�isascii�idna�ImportErrorrrXr�	IDNAError)�namer�s  r'r�r�Ls����<�<�>�	��	��;�;�t�z�z�|�D�T�;�J�J��:�:�<���w�'�'���	�$�?���
�	���~�~�	�$����9�:���
�	�s�A�!A1�A.�1 Bc���tj|�}|st|�d���|j�\}}t	|t
�}|�t	|t�}|d|zz
}|S)z�Percent-encodes a request target so that there are no invalid characters

    Pre-condition for this function is that 'target' must start with '/'.
    If that is the case then _TARGET_RE will always produce a match.
    z is not a valid request URIr)�
_TARGET_RErQr�groupsrJ�_PATH_CHARS�_QUERY_CHARS)�targetrQr#r$�encoded_targets     r'�_encode_targetr�_sk��
���V�$�E�� �F�:�-H�!I�J�J��,�,�.�K�D�%�*�4��=�N���%�e�\�:���#��+�%���r(c	�T�|s
t�S|}tj|�sd|z}	tj	|�j�\}}}}}|duxs|j
�tv}|r|j
�}|r]|jd�\}}	}
|xsd}tj	|
�j�\}}|r|rt|t�}|dk(r	d}nd\}}}|�-t|�}
d|
cxkrdkst|��t|��d}
t||�}|r|rt|�}t|t �}|r|rt|t"�}|r|rt|t$�}|s	|�|�d}nd}t||||
|||��S#t&t(f$r}t|�|�d}~wwxYw)	a�
    Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is
    performed to parse incomplete urls. Fields not provided will be None.
    This parser is RFC 3986 and RFC 6874 compliant.

    The parser logic and helper functions are based heavily on
    work done in the ``rfc3986`` module.

    :param str url: URL to parse into a :class:`.Url` namedtuple.

    Partly backwards-compatible with :mod:`urllib.parse`.

    Example:

    .. code-block:: python

        import urllib3

        print( urllib3.util.parse_url('http://google.com/mail/'))
        # Url(scheme='http', host='google.com', port=None, path='/mail/', ...)

        print( urllib3.util.parse_url('google.com:80'))
        # Url(scheme=None, host='google.com', port=80, path=None, ...)

        print( urllib3.util.parse_url('/foo?bar'))
        # Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)
    z//Nrr6)NNNri��)rr r!r"r#r$r%)r�
_SCHEME_REr��_URI_RErQr�rr~�
rpartition�
_HOST_PORT_RErJ�_USERINFO_CHARS�intrrvrsr�r��_FRAGMENT_CHARS�
ValueError�AttributeError)r9�
source_urlrr3r#r$r%�
normalize_urir �_�	host_portr!r"�port_int�es               r'�	parse_urlr�qs���8��u���J����S�!��S�j��$4�3:�=�=��3E�3L�3L�3N�0��	�4����$��Q�&�,�,�.�<Q�*Q�
���\�\�^�F��!*�!5�!5�c�!:��D�!�Y��<�4�D�&�,�,�Y�7�>�>�@�J�D�$��
�,�T�?�C���r�z���/��D�$�����4�y�H���*�U�*�(��-�-�+�(��-�-��H��t�V�,���T�,�T�2�D�(��{�;�D��U�)�%��>�E��X�,�X��G�H����� 4��D��D���
�
�
�
������
��'�4� ��,�!�3��4�s�EF�F'�F"�"F')rHr8rI�typing.Container[str]r>r8)rH�NonerIr�r>r�)rHr=rIr�r>r=)r#r8r>r8)r!r�rr=r>r�)r!r8rr=r>r8)r!r=rr=r>r=)r�r8r>�bytes)r�r8r>r8)r9r8r>r)6�
__future__r�re�typing�
exceptionsr�utilrr~�compilerVr��UNICODE�DOTALLr��	_IPV4_PAT�_HEX_PAT�format�	_LS32_PAT�_subs�_variations�_UNRESERVED_PATro�	_IPV6_PAT�_ZONE_ID_PAT�_IPV6_ADDRZ_PAT�
_REG_NAME_PATr�r��_IPV6_REr�_BRACELESS_IPV6_ADDRZ_REr��_HOST_PORT_PATr��setr��_SUB_DELIM_CHARSr�r�r�r��
NamedTuple�Optionalr8r�r�overloadrJrsrvr�r�r�)�xs0r'�<module>r�sx��"�	�
�+��0���b�j�j�+�,��
�R�Z�Z�9�
:�
�
�"�*�*��
�J�J�����
��
-�	���$�+�+��y�+�I�	��)�,����*Y���C�H�H��=�A�a�%�i�=�>�>��D�	���0�3H�H���)�#�f�,�|�;�g�E��4�
�
�R�Z�Z�<�
=�
��2�:�:�c�I�o��+�,���2�:�:�c�I�o��+�,������C�/�1�C�7�8��%�2�:�:�c�O�A�b�,A�&A�C�&G�H���b�j�j��|�+�g�5�6���
����
��
�
�>�2�:�:��	�	�+A�B�
��H����}�%��#�&6�6�#��>����c�
�*��!,��u�!4�4���B��F���
�
�v���s�+�,�
�V�_�_�S�)�*�
�V�_�_�S�)�*�
�V�_�_�S�)�*�
�V�_�_�S�)�*�
�f�o�o�c�*�+�
�����-�.�	
��B�J������#8������������$9��	����!&��!&�*?�!&��!&�H�<�������������:(�&�$f��{	>s�J;
© 2025 GrazzMean