403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/hyperlink/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/hyperlink/__pycache__/_url.cpython-314.pyc
+
m4icF��<	�Rt^RIt^RIt^RIt^RIt^RIHtHt^RIHt^RI
HtHtH
t
HtHtHtHtHtHtHtHtHtHtHtHt^RIHt^RIHt^RIHt^RI!H"t#H$t%]PL^,^8Ht'](]+!R4t,]]]]],3,R	3,t-]]]]],3,]-]]]]],3,,3,t.]!R
4t/R�Rlt0]0!R4;t1t2]3!R
4t4]Pj!R4t6]Pj!R4t7]Pj!R4t8]9!]PtUUu.uFQp]PtF>pW,PER4](!]	!W,^44PER43NK@	KS	upp4t;]Pj!R4t<]3!R4t=]3!R4t>]=]>,t?]4]>,]@!R4,tA]?]A,
tB]A]@!R4,tC]?]C,
tD]C]@!R4,
tE]?]E,
tF]4]C,]@!R4,tG]?]G,
tH]4]G]@!R4,
,tI]?]I,
tJ]4]I]@!R4,
,tK]?]K,
tLR�RltMRtN]N!]A4tO]M!]B4tP]N!]C4tQ]N!]E4tR]M!]D4tS]N!]K4tT]M!]L4tU]N!]I4tV]M!]J4tW]N!]G4tX]M!]H4tY]N!]44tZ]9!];P�4UUu.uF!wr#VPIRR4]49gKW#3NK#	upp4t\]3!R�4t]R�R lt^R�R!lt_R�R"lt`R�R#ltaR�R$ltbR�R%ltcR�R&ltdR�R'lte/R(R)bR*R+bR,R-bR.^5bR/RbR0^bR1R2bR3^FbR4^PbR5R6bR7^�bR8R9bR:R9bR;^�bR<R=bR>R?bR@RAb/RBRCbRDREbRFRbRGRHbRI^obRJ^wbRKRLbRM^nbRNRObRPRQbRRRSbRTRUbRVRWbRXRYbRZ^bR[R\bR]^�bCR^^R_RR`RaRb^RcRdReRfRg^�Rh^PRiR6RjR/
Ctf]@!.R�O4tg]@!4thR�RkltiR�Rlltj!RmRn]k4tlRotmRptn]3!4R3RqltoRrtpR�RsltqR�RtltrR�RultsR�RvlttR�RwltuR�RxltvRRyRR];3RzltwR{txR|tyR}tz!R~R]{4t|]|t}]|!4t~R�tR�t�!R�R�]{4t�R�R�lt�R# ]d]	tELHi;i ]d^RI HtEL'i;i ])d]*t(ELi;iuuppiuuppi)�aHyperlink provides Pythonic URL parsing, construction, and rendering.

Usage is straightforward::

   >>> import hyperlink
   >>> url = hyperlink.parse(u'http://github.com/mahmoud/hyperlink?utm_source=docs')
   >>> url.host
   u'github.com'
   >>> secure_url = url.replace(scheme=u'https')
   >>> secure_url.get('utm_source')[0]
   u'docs'

Hyperlink's API centers on the :class:`DecodedURL` type, which wraps
the lower-level :class:`URL`, both of which can be returned by the
:func:`parse()` convenience function.

N)�AF_INET�AF_INET6)�
AddressFamily)�Any�Callable�Dict�Iterable�Iterator�List�Mapping�Optional�Sequence�Text�Tuple�Type�TypeVar�Union�cast)�	normalize)�	inet_pton)r)�encode�decode.�Tc�:aa�!VV3RlR\4pV!4#)a�Creates and returns a new **instance** of a new class, suitable for
usage as a "sentinel", a kind of singleton often used to indicate
a value is missing when ``None`` is a valid input.

Args:
    name: Name of the Sentinel
    var_name: Set this name to the name of the variable in its respective
        module enable pickle-ability.

>>> make_sentinel(var_name='_MISSING')
_MISSING

The most common use cases here in boltons are as default values
for optional function arguments, partly because of its
less-confusing appearance in automatically generated
documentation. Sentinels also function well as placeholders in queues
and linked lists.

.. note::

    By design, additional calls to ``make_sentinel`` with the same
    values will not produce equivalent objects.

    >>> make_sentinel('TEST') == make_sentinel('TEST')
    False
    >>> type(make_sentinel('TEST')) == type(make_sentinel('TEST'))
    False
c�X<a�]tRt^itoVV3RltRtZ'dRtRt]tRt	Vt
R#)�make_sentinel.<locals>.Sentinelc�$<�SVnSVnR#�N��name�var_name)�selfrr s&���0/usr/lib/python3/dist-packages/hyperlink/_url.py�__init__�(make_sentinel.<locals>.Sentinel.__init__js����D�I�$�D�M�c��VP'd
VP#VPP:RVP:R2#)�(�))r �	__class__�__name__r�r!s&r"�__repr__�(make_sentinel.<locals>.Sentinel.__repr__os.���}�}�}��}�}�$�#�~�~�6�6��	�	�B�Br%c��VP#r)r r+s&r"�
__reduce__�*make_sentinel.<locals>.Sentinel.__reduce__xs���}�}�$r%c��R#�F�r+s&r"�__nonzero__�+make_sentinel.<locals>.Sentinel.__nonzero__|s��r%rN)r*�
__module__�__qualname__�__firstlineno__r#r,r/r4�__bool__�__static_attributes__�__classdictcell__)�
__classdict__rr s@��r"�Sentinelris(����	%�
	C��8�
%�	��r%r=)�object)rr r=sff r"�
make_sentinelr?Js���>��6��2�:�r%�_UNSETzB~-._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzz^((?P<scheme>[^:/?#]+):)?((?P<_netloc_sep>//)(?P<authority>[^/?#]*))?(?P<path>[^?#]*)(\?(?P<query>[^#]*))?(#(?P<fragment>.*))?$z^[a-zA-Z0-9+-.]*$z�^(?:(?P<userinfo>[^@/?#]*)@)?(?P<host>(?:\[(?P<ipv6_host>[^[\]/?#]*)\])|(?P<plain_host>[^:/?#[\]]*)|(?P<bad_host>.*?))?(?::(?P<port>.*))?$�ascii�charmapz([-]+)z:/?#[]@z!$&'()*+,;=�%z:@�:z/?�&�=Fc�D�\\4pV'g\V4\R.4,pVFfpRP\	V44PR4pVP
4pVPV4WE8wgKUVPV4Kh	V#)rCz{0:02X}rA)�dict�
_HEX_CHAR_MAP�set�format�ordr�lower�pop)�delims�
allow_percent�ret�delim�_hexord�
_hexord_lowers&&    r"�_make_decode_maprU�s|��
�}�
�C���V��s�D�6�{�*�����"�"�3�u�:�.�5�5�g�>���
�
��
�������#��G�G�M�"���Jr%c��/p\\R4\R44F7wr#\V4pW@9dV;W&W&K RPV4;W&W&K9	V#)�z%{0:02X})�zip�range�chrrK)�
safe_charsrQ�i�v�cs&    r"�_make_quote_mapr_�s`��
�C��E�#�J��c�
�+�����F���?���C�F�S�V�(�/�/��2�2�C�F�S�V�,��Jr%�replacec�&�V'dH\RV4PR4pRPVUu.uFp\V,NK	up4#RPVUu.uFpV\9d\V,MTNK	up4#uupiuupi)z�A very comprehensive percent encoding for encoding all
delimiters. Used for arguments to DecodedURL, where a % means a
percent sign, and not the character used by URLs for escaping
bytes.
�NFC�utf8�)rr�join�_UNRESERVED_QUOTE_MAP�_UNRESERVED_CHARS��text�maximal�bytestr�b�ts&&   r"�_encode_reservedrn�s�����E�4�(�/�/��7���x�x�7�C�7�a�.�q�1�1�7�C�D�D��8�8��	
���)*�->�(>�!�!�$�A�E��	
����D��	
��B	�#Bc�$�V'dH\RV4PR4pRPVUu.uFp\V,NK	up4#RPVUu.uFqD\9d\V,MTNK	up4#uupiuupi)z.Percent-encode a single segment of a URL path.rbrcrd)rrre�_PATH_PART_QUOTE_MAP�_PATH_DELIMSrhs&&   r"�_encode_path_partrss�����E�4�(�/�/��7���x�x�'�B�'�Q�-�a�0�0�'�B�C�C��8�8�FJ�K�d���$5�	�a�	 �1�	<�d�K����C��K��B�"B
c�&�V'dH\RV4PR4pRPVUu.uFp\V,NK	up4#RPVUu.uFpV\9d\V,MTNK	up4#uupiuupi)zUPercent-encode the first segment of a URL path for a URL without a
scheme specified.
rbrcrd)rrre�_SCHEMELESS_PATH_PART_QUOTE_MAP�_SCHEMELESS_PATH_DELIMSrhs&&   r"�_encode_schemeless_path_partrxs���
��E�4�(�/�/��7���x�x�W�M�W��8��;�;�W�M�N�N��8�8�
�		
����+�+�
,�A�.��
��		
����N��	
roc
�r�V'gR#V'dR\V4,p.pV'd'VUu.uFpV'd
\WdR7MTNK	ppMO\V^,4.pTPVR,Uu.uFpV'd
\WdR7MTNK	up4\V4#uupiuupi)a
Percent-encode a tuple of path parts into a complete path.

Setting *maximal* to False percent-encodes only the reserved
characters that are syntactically necessary for serialization,
preserving any IRI-style textual data.

Leaving *maximal* set to its default True percent-encodes
everything required to convert a portion of an IRI to a portion of
a URI.

RFC 3986 3.3:

   If a URI contains an authority component, then the path component
   must either be empty or begin with a slash ("/") character.  If a URI
   does not contain an authority component, then the path cannot begin
   with two slash characters ("//").  In addition, a URI reference
   (Section 4.1) may be a relative-path reference, in which case the
   first path segment cannot contain a colon (":") character.
�rj��NNr3�rd)�tuplersrx�extend)�
text_parts�rooted�
has_scheme�
has_authorityrj�
encoded_parts�parts&&&&&  r"�_encode_path_partsr�"s���8��	�
��e�J�/�/�
��M��#�
�"��9=��d�4�$�F�"�	�
�
�
6�j��m�D�E�
����'�r�N�
�*�D�=A�!�$�8�d�J�*�
�	
������
��
s�B/�B/�>B4�B4c�$�V'dH\RV4PR4pRPVUu.uFp\V,NK	up4#RPVUu.uFqD\9d\V,MTNK	up4#uupiuupi�z4
Percent-encode a single query string key or value.
rbrcrd)rrre�_QUERY_KEY_QUOTE_MAP�_QUERY_KEY_DELIMSrhs&&   r"�_encode_query_keyr�Us���
��E�4�(�/�/��7���x�x�'�B�'�Q�-�a�0�0�'�B�C�C��8�8�KO�P�4�a�):�$:�	�a�	 ��	A�4�P����C��Prtc�&�V'dH\RV4PR4pRPVUu.uFp\V,NK	up4#RPVUu.uFpV\9d\V,MTNK	up4#uupiuupir�)rrre�_QUERY_VALUE_QUOTE_MAP�_QUERY_VALUE_DELIMSrhs&&   r"�_encode_query_valuer�bs���
��E�4�(�/�/��7���x�x�G�D�G�q�/��2�2�G�D�E�E��8�8��	
���*+�.A�)A�"�1�%�q�H��	
����E��	
roc�$�V'dH\RV4PR4pRPVUu.uFp\V,NK	up4#RPVUu.uFqD\9d\V,MTNK	up4#uupiuupi)zqQuote the fragment part of the URL. Fragments don't have
subdelimiters, so the whole URL fragment can be passed.
rbrcrd)rrre�_FRAGMENT_QUOTE_MAP�_FRAGMENT_DELIMSrhs&&   r"�_encode_fragment_partr�rs���
��E�4�(�/�/��7���x�x��A��A�,�Q�/�/��A�B�B��8�8�IM�N��A�(8�#8�	�Q�	�a�	?��N����B��Nrtc�&�V'dH\RV4PR4pRPVUu.uFp\V,NK	up4#RPVUu.uFpV\9d\V,MTNK	up4#uupiuupi)zPQuote special characters in either the username or password
section of the URL.
rbrcrd)rrre�_USERINFO_PART_QUOTE_MAP�_USERINFO_DELIMSrhs&&   r"�_encode_userinfo_partr�s���
��E�4�(�/�/��7���x�x�g�F�g��1�!�4�4�g�F�G�G��8�8��	
���,-�0@�+@�$�Q�'�a�G��	
����G��	
ro�acapi��afpi$rHiD
�dns�file�ftp�giti�$�gopher�http�httpsi��imap�ippiw�ipps�irc�ircsi)�ldapi��ldapsi|�mmsi��msrpi'�msrps�mtqpi�nfs�nntp�nntpsi3rN�prosperoi��redisi��rsyncii�rtspi*�rtspsiB�rtspui��sftp�smbi��snmp�ssh�steam�svnij�telnet�ventriloi��vnci�wais�ws�wss�xmppc�p�VP4pVe
\V4pVRJdV\V&MDVRJd-Ve\RV,4h\
P
V4M\RV,4hV'g\P
V4R# \\3d\RT:24hi;i)a@Registers new scheme information, resulting in correct port and
slash behavior from the URL object. There are dozens of standard
schemes preregistered, so this function is mostly meant for
proprietary internal customizations or stopgaps on missing
standards information. If a scheme seems to be missing, please
`file an issue`_!

Args:
    text: A string representation of the scheme.
        (the 'http' in 'http://hatnote.com')
    uses_netloc: Does the scheme support specifying a
        network host? For instance, "http" does, "mailto" does
        not. Defaults to True.
    default_port: The default port, if any, for
        netloc-using schemes.
    query_plus_is_space: If true, a "+" in the query string should be
        decoded as a space by DecodedURL.

.. _file an issue: https://github.com/mahmoud/hyperlink/issues
Nz+default_port expected integer or None, not TFz>unexpected default port while specifying non-netloc scheme: %rz"uses_netloc expected bool, not: %r)rM�int�
ValueError�	TypeError�SCHEME_PORT_MAP�NO_NETLOC_SCHEMES�add�NO_QUERY_PLUS_SCHEMES)ri�uses_netloc�default_port�query_plus_is_spaces&&&&r"�register_schemer��s���0�:�:�<�D���	��|�,�L��d�� ,����	��	��#��)�+7�8��
�	���d�#��=��K�L�L���!�!�$�'�
��+�I�&�	���"��
�	�s�B�!B5c��V'gR#VP4pV\9dR#V\9dR#VPR4R,\9dR#V#)aWhether or not a URL uses :code:`:` or :code:`://` to separate the
scheme from the rest of the URL depends on the scheme's own
standard definition. There is no way to infer this behavior
from other parts of the URL. A scheme either supports network
locations or it does not.

The URL type's approach to this is to check for explicitly
registered schemes, with common schemes like HTTP
preregistered. This is the same approach taken by
:mod:`urlparse`.

URL adds two additional heuristics if the scheme as a whole is
not registered. First, it attempts to check the subpart of the
scheme after the last ``+`` character. This adds intuitive
behavior for schemes like ``git+ssh``. Second, if a URL with
an unrecognized scheme is loaded, it will maintain the
separator it sees.
FT�+���)rMr�r��split)�scheme�defaults&&r"�scheme_uses_netlocr�
sJ��(��
�\�\�^�F�
�� ��
�"�"��
�|�|�C�����/���Nr%c��]tRtRtRtRtR#)�
URLParseErrori-z�Exception inheriting from :exc:`ValueError`, raised when failing to
parse a URL. Mostly raised on invalid ports and IPv6 addresses.
r3N)r*r6r7r8�__doc__r:r3r%r"r�r�-s���	r%r�c��V\JdV#V#r)r@)�argumentr�s&&r"�	_optionalr�5s���6�����r%c	���V'g\R4h\W4'g@\RRPVUu.uFq3PNK	up4:RV:RV:24hV#uupi)zv
Check that the given *value* is one of the given *types*, or raise an
exception describing the problem using *name*.
z1expected one or more types, maybe use _textcheck?�	expected z or � for �, got )r��
isinstancer�rer*)r�value�typesrms&&* r"�
_typecheckr�=s^����L�M�M��e�#�#���{�{��6��1�J�J��6�7��u�
F�
�	
��L��7s�A&c�`�\V\4'gIV'dVfV#\'dRMRpV'd
VR,MTp\RV:RV:RV:24hV'dH\	V4\	V4,'d'\RRP
V4:R	V:R
V:24hV#)N�unicode�strz or NoneTyper�r�r�z one or more reserved delimiters rdz present in z: )r�r�PY2r�rJr�re)rr�rO�nullable�str_name�exps&&&&  r"�
_textcheckr�Ms����e�T�"�"���
��L�$'�C�y�U�H�/7�(�^�+�X�C��C��u�M�N�N�
�#�e�*�s�6�{�*�*���w�w�v���e�
-�
�	
��Lr%c�d�\V\4'dVP4p\V4#)z�
Iterate over the (key, value) pairs in ``iterable``.

This handles dictionaries sensibly, and falls back to assuming the
iterable yields (key, value) pairs. This behaviour is similar to
what Python's ``dict()`` constructor does.
)r��
MappingABC�items�iter)�iterables&r"�
iter_pairsr�_s'���(�J�'�'��>�>�#����>�r%c�(�\VVV\R7#���normalize_case�encode_stray_percents�_decode_map)�_percent_decode�_UNRESERVED_DECODE_MAP�rir�r�s&&&r"�_decode_unreservedr�ms����%�3�*�	�r%c�(�\VVV\R7#r�)r��_USERINFO_DECODE_MAPr�s&&&r"�_decode_userinfo_partr�w�����%�3�(�	�r%c�(�\VVV\R7#)zx
>>> _decode_path_part(u'%61%77%2f%7a')
u'aw%2fz'
>>> _decode_path_part(u'%61%77%2f%7a', normalize_case=True)
u'aw%2Fz'
r�)r��_PATH_DECODE_MAPr�s&&&r"�_decode_path_partr�s����%�3�$�	�r%c�(�\VVV\R7#r�)r��_QUERY_KEY_DECODE_MAPr�s&&&r"�_decode_query_keyr�s����%�3�)�	�r%c�(�\VVV\R7#r�)r��_QUERY_VALUE_DECODE_MAPr�s&&&r"�_decode_query_valuer�s����%�3�+�	�r%c�(�\VVV\R7#r�)r��_FRAGMENT_DECODE_MAPr�s&&&r"�_decode_fragment_partr
�r�r%zutf-8c��VPV4pTPR4p\T4^8XdT#T^,.pTPp	TR,F+p
T
R,T
R,r�T	!Y[,4T	!T4K-	RPT4pTPT4# \dTu#i;i \
dhT\9p
T
'g	T'g
T	!R4MT	!R4T'd*T
'd"T	!TP44T	!T4K�T	!T
4K�i;i \dT'dhTu#i;i)aTConvert percent-encoded text characters to their normal,
human-readable equivalents.

All characters in the input text must be encodable by
*subencoding*. All special characters underlying the values in the
percent-encoding must be decodable as *subencoding*. If a
non-*subencoding*-valid string is passed, the original text is
returned with no changes applied.

Only called by field-tailored variants, e.g.,
:func:`_decode_path_part`, as every percent-encodable part of the
URL has characters which should not be percent decoded.

>>> _percent_decode(u'abc%20def')
u'abc def'

Args:
    text: Text with percent-encoding present.
    normalize_case: Whether undecoded percent segments, such as encoded
        delimiters, should be uppercased, per RFC 3986 Section 2.1.
        See :func:`_decode_path_part` for an example.
    subencoding: The name of the encoding underlying the percent-encoding.
    raise_subencoding_exc: Whether an error in decoding the bytes
        underlying the percent-decoding should be raised.

Returns:
    Text: The percent-decoded version of *text*, decoded by *subencoding*.
�%r{�N�N:rNNs%25r%)r�UnicodeEncodeErrorr��len�append�KeyErrorrI�upperrer�UnicodeDecodeError)rir��subencoding�raise_subencoding_excr�r��quoted_bytes�bits�resr�item�hexpair�rest�pair_is_hex�unquoted_bytess&&&&&&         r"r�r��s*��J��{�{�;�/�����d�#�D�
�4�y�A�~�����7�)�C�
�Z�Z�F��R�����R��$�r�(��	��;�'�(��4�L�	�*�X�X�c�]�N���$�$�[�1�1��E�������	�!�]�2�K��"7��t���v���+��w�}�}��'��t���t��	��(�� �����sY�B'�*B:�D/�'
B7�6B7�:D,�D,�D,�7D,�?D,� D,�+D,�/E�E�Ec��V'gR#VPR4p\VRR7pV# \dTpT#i;i \dTpT#i;i)u-Decode a host from ASCII-encodable text to IDNA-decoded text. If
the host text is not ASCII, it is returned unchanged, as it is
presumed that it is already IDNA-decoded.

Some technical details: _decode_host is built on top of the "idna"
package, which has some quirks:

Capital letters are not valid IDNA2008. The idna package will
raise an exception like this on capital letters:

> idna.core.InvalidCodepoint: Codepoint U+004B at position 1 ... not allowed

However, if a segment of a host (i.e., something in
url.host.split('.')) is already ASCII, idna doesn't perform its
usual checks. In fact, for capital letters it automatically
lowercases them.

This check and some other functionality can be bypassed by passing
uts46=True to idna.encode/decode. This allows a more permissive and
convenient interface. So far it seems like the balanced approach.

Example output (from idna==2.6):

>> idna.encode(u'mahmöud.io')
'xn--mahmud-zxa.io'
>> idna.encode(u'Mahmöud.io')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mahmoud/virtualenvs/hyperlink/local/lib/python2.7/site-packages/idna/core.py", line 355, in encode
    result.append(alabel(label))
  File "/home/mahmoud/virtualenvs/hyperlink/local/lib/python2.7/site-packages/idna/core.py", line 276, in alabel
    check_label(label)
  File "/home/mahmoud/virtualenvs/hyperlink/local/lib/python2.7/site-packages/idna/core.py", line 253, in check_label
    raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label)))
idna.core.InvalidCodepoint: Codepoint U+004D at position 1 of u'Mahmöud' not allowed
>> idna.encode(u'Mahmoud.io')
'Mahmoud.io'

# Similar behavior for decodes below
>> idna.decode(u'Mahmoud.io')
u'mahmoud.io
>> idna.decode(u'Méhmoud.io', uts46=True)
u'méhmoud.io'
rdrAT��uts46)r�idna_decoder�r)�host�
host_bytes�	host_texts&  r"�_decode_hostr&sr��\����[�[��)�
�	�#�J�d�;�I����
�	�
�I���
	�����	����s�A�
-�
>�>�
A�Ac���.pVF@pVR8XdKVR8XdV'dVP4K-K/VPV4KB	\VRR4R.R.39dVPR4V#)a�Normalize the URL path by resolving segments of '.' and '..'. For
more details, see `RFC 3986 section 5.2.4, Remove Dot Segments`_.

Args:
   path: sequence of path segments in text form

Returns:
   A new sequence of path segments with the '.' and '..' elements removed
       and resolved.

.. _RFC 3986 section 5.2.4, Remove Dot Segments: https://tools.ietf.org/html/rfc3986#section-5.2.4
�.z..Nrdr�)rNr�list)�path�segs�segs&  r"�_resolve_dot_segmentsr-Esq���D����$�;��
�E�\�����
��
�K�K�����D���I��D�6�E�7�+�+����C���Kr%c�V�V'gR#RV9d\\V4\pW3#\\V4\pW3# \Pdp\	RT:RT:R24hRp?i\
dXT3#i;i \P\
3dRpY3#i;i)aParse the host into a tuple of ``(family, host)``, where family
is the appropriate :mod:`socket` module constant when the host is
an IP address. Family is ``None`` when the host is not an IP.

Will raise :class:`URLParseError` on invalid IPv6 constants.

Returns:
    family (socket constant or None), host (string)

>>> import socket
>>> parse_host('googlewebsite.com') == (None, 'googlewebsite.com')
True
>>> parse_host('::1') == (socket.AF_INET6, '::1')
True
>>> parse_host('192.168.1.1') == (socket.AF_INET, '192.168.1.1')
True
NrDzinvalid IPv6 host: z (r()Nrd)rr�socket�errorr�rr)r#�family�ses&  r"�
parse_hostr3ds���&����t�|�	��h��%��F��<��	��g�t�$��F��<����|�|�	K���b� I�J�J��!�	���4�<��	�����0�1�	��F��<��	�s4�A�B�B�A/�/B�<B�B�B(�'B(c	��a�]tRtRtoRtR(RltR)Rlt]R4t]R4t	]R4t
]R	4t]R
4t]R4t
]R4t]R
4t]R4t]R4tR)RltRtRtRt]R4t]]]]]]]]]3	Rlt]R4tR*RltRtRtR+RltRtRt R)Rlt!Rt"Rt#]$'d]#t%]!t&M]#t']!t%]t(] t)]R 4t*R)R!lt+R"t,R,R#lt-R,R$lt.R%t/]R3R&lt0R't1Vt2R#)-�URLi�a�From blogs to billboards, URLs are so common, that it's easy to
overlook their complexity and power. With hyperlink's
:class:`URL` type, working with URLs doesn't have to be hard.

URLs are made of many parts. Most of these parts are officially
named in `RFC 3986`_ and this diagram may prove handy in identifying
them::

   foo://user:pass@example.com:8042/over/there?name=ferret#nose
   \_/   \_______/ \_________/ \__/\_________/ \_________/ \__/
    |        |          |        |      |           |        |
  scheme  userinfo     host     port   path       query   fragment

While :meth:`~URL.from_text` is used for parsing whole URLs, the
:class:`URL` constructor builds a URL from the individual
components, like so::

    >>> from hyperlink import URL
    >>> url = URL(scheme=u'https', host=u'example.com', path=[u'hello', u'world'])
    >>> print(url.to_text())
    https://example.com/hello/world

The constructor runs basic type checks. All strings are expected
to be text (:class:`str` in Python 3, :class:`unicode` in Python 2). All
arguments are optional, defaulting to appropriately empty values. A full
list of constructor arguments is below.

Args:
    scheme: The text name of the scheme.
    host: The host portion of the network location
    port: The port part of the network location. If ``None`` or no port is
        passed, the port will default to the default port of the scheme, if
        it is known. See the ``SCHEME_PORT_MAP`` and
        :func:`register_default_port` for more info.
    path: A tuple of strings representing the slash-separated parts of the
        path, each percent-encoded.
    query: The query parameters, as a dictionary or as an sequence of
        percent-encoded key-value pairs.
    fragment: The fragment part of the URL.
    rooted: A rooted URL is one which indicates an absolute path.
        This is True on any URL that includes a host, or any relative URL
        that starts with a slash.
    userinfo: The username or colon-separated username:password pair.
    uses_netloc: Indicates whether ``://`` (the "netloc separator") will
        appear to separate the scheme from the *path* in cases where no
        host is present.
        Setting this to ``True`` is a non-spec-compliant affordance for the
        common practice of having URIs that are *not* URLs (cannot have a
        'host' part) but nevertheless use the common ``://`` idiom that
        most people associate with URLs; e.g. ``message:`` URIs like
        ``message://message-id`` being equivalent to ``message:message-id``.
        This may be inferred based on the scheme depending on whether
        :func:`register_scheme` has been used to register the scheme and
        should not be passed directly unless you know the scheme works like
        this and you know it has not been registered.

All of these parts are also exposed as read-only attributes of :class:`URL`
instances, along with several useful methods.

.. _RFC 3986: https://tools.ietf.org/html/rfc3986
.. _RFC 3987: https://tools.ietf.org/html/rfc3987
Nc
���VeVfRpVfVe\PV4pV'dV'dV'gRpVfRpVfRpVf\V4p\RV4VnVP'dX\
P
VP4'g3\RVP:RVPP:R24h\\RVR44wq�n\V\4'd\R	V:24h\;QJd.R
V4FNK	5M
!R
V44Vn\;QJd.R\#V44FNK	5M!R\#V444Vn\RV4Vn\)R
V\*\,4Vn\)RV\4Vn\RVR4VnV	f\5VPV	4p	\)RV	\\,4VnVP;'g7VP.;'d#VP.\PV48gpV'dRVnRVnVP0'g8VP8R,R8Xd RVnVP R,VnV'g2VP 'dVP0'g
RVnR#R#R#R#)Nr�rdr�zinvalid scheme: zF. Only alphanumeric, "+", "-", and "." allowed. Did you meant to call z
.from_text()?r#z/?#@z)expected iterable of text for path, not: c3�<"�TFp\RVR4x�K	R#5i)�path segmentz/?#N�r�)�.0�segments& r"�	<genexpr>�URL.__init__.<locals>.<genexpr>�s���L�t�G�Z����
7�
7�t���c	3�^"�TF#wr\RVR4\RVRRR73x�K%	R#5i)zquery parameter namez&=#zquery parameter valuez&#T)r�Nr9�r:�kr]s&  r"r<r=s;���
�
*����1�1�e�<��2�A�t�d�K�
�*���+-�fragment�portr��userinfor�T�Nr|Nr{Fr})r��get�boolr��_scheme�
_SCHEME_RE�matchr�r)r*r3�_hostr�rr�r~�_pathr��_query�	_fragmentr�r��NoneType�_port�_rooted�	_userinfor��_uses_netlocr*)r!r�r#r*�queryrCrDr�rEr��_�will_have_authoritys&&&&&&&&&&  r"r#�URL.__init__�sf�������F��<�F�.�"�&�&�v�.�D��E�$��D��>��F��<��D��>��$�Z�F�"�(�F�3����<�<�<��#�#�D�L�L�1�1� �+/�,�,����8O�8O�Q���#�:�f�d�F�#C�D�
��:��d�D�!�!��AE�G��
��U�L�t�L��U�L�t�L�
��
��e�
�
#�5�)�
�e�e�
�
#�5�)�
�
���$�J��9������c�8�<��
�!�(�F�D�9���#�J��&�A�����,�T�\�\�;�G�K�&��;��h�
���#�j�j�
�
��J�J�D�D�4�:�:��)<�)<�V�)D�D�	�� �D�L� $�D������$�)�)�B�-�6�"9��D�L����B��D�J�"�t�z�z�z�$�,�,�,�!&�D��	;G�z�"r%c�v�VP# \d \YR7TnTP#i;i���lazy)�_decoded_url�AttributeError�
DecodedURL)r!r\s&&r"�get_decoded_url�URL.get_decoded_url#s;��	<��$�$�$���	<� *�4� ;�D��� � � �	<�s��8�8c��VP#)a%The scheme is a string, and the first part of an absolute URL, the
part before the first colon, and the part which defines the
semantics of the rest of the URL. Examples include "http",
"https", "ssh", "file", "mailto", and many others. See
:func:`~hyperlink.register_scheme()` for more info.
)rIr+s&r"r��
URL.scheme+s���|�|�r%c��VP#)z�The host is a string, and the second standard part of an absolute
URL. When present, a valid host must be a domain name, or an
IP (v4 or v6). It occurs before the first slash, or the second
colon, if a :attr:`~hyperlink.URL.port` is provided.
)rLr+s&r"r#�URL.host6����z�z�r%c��VP#)afThe port is an integer that is commonly used in connecting to the
:attr:`host`, and almost never appears without it.

When not present in the original URL, this attribute defaults
to the scheme's default port. If the scheme's default port is
not known, and the port is not provided, this attribute will
be set to None.

>>> URL.from_text(u'http://example.com/pa/th').port
80
>>> URL.from_text(u'foo://example.com/pa/th').port
>>> URL.from_text(u'foo://example.com:8042/pa/th').port
8042

.. note::

   Per the standard, when the port is the same as the schemes
   default port, it will be omitted in the text URL.
)rQr+s&r"rD�URL.port@s��,�z�z�r%c��VP#)z�A tuple of strings, created by splitting the slash-separated
hierarchical path. Started by the first slash after the host,
terminated by a "?", which indicates the start of the
:attr:`~hyperlink.URL.query` string.
)rMr+s&r"r*�URL.pathXrfr%c��VP#)a�Tuple of pairs, created by splitting the ampersand-separated
mapping of keys and optional values representing
non-hierarchical data used to identify the resource. Keys are
always strings. Values are strings when present, or None when
missing.

For more operations on the mapping, see
:meth:`~hyperlink.URL.get()`, :meth:`~hyperlink.URL.add()`,
:meth:`~hyperlink.URL.set()`, and
:meth:`~hyperlink.URL.delete()`.
)rNr+s&r"rU�	URL.querybs���{�{�r%c��VP#)z�A string, the last part of the URL, indicated by the first "#"
after the :attr:`~hyperlink.URL.path` or
:attr:`~hyperlink.URL.query`. Enables indirect identification
of a secondary resource, like an anchor within an HTML page.
)rOr+s&r"rC�URL.fragmentrs���~�~�r%c��VP#)aGWhether or not the path starts with a forward slash (``/``).

This is taken from the terminology in the BNF grammar,
specifically the "path-rootless", rule, since "absolute path"
and "absolute URI" are somewhat ambiguous. :attr:`path` does
not contain the implicit prefixed ``"/"`` since that is
somewhat awkward to work with.
)rRr+s&r"r��
URL.rooted|s���|�|�r%c��VP#)zFThe colon-separated string forming the username-password
combination.
)rSr+s&r"rE�URL.userinfo�s���~�~�r%c��VP#)z�
Indicates whether ``://`` (the "netloc separator") will appear to
separate the scheme from the *path* in cases where no host is present.
)rTr+s&r"r��URL.uses_netloc�s��� � � r%c�F�VPPR4^,#)z6
The user portion of :attr:`~hyperlink.URL.userinfo`.
rD)rEr�r+s&r"�user�URL.user�s���}�}�"�"�4�(��+�+r%c��VPRV4pV'd!\RVP4,4hVPpRV9dRV,R,.pM
VP.pVP\
P
VP48wd%VP\VP44.pVP'dHVPpV'g#RV9dVRVPR4^,pVPV4VPRPV44RPV4#)a�Compute and return the appropriate host/port/userinfo combination.

>>> url = URL.from_text(u'http://user:pass@localhost:8080/a/b?x=y')
>>> url.authority()
u'user:@localhost:8080'
>>> url.authority(with_password=True)
u'user:pass@localhost:8080'

Args:
    with_password: Whether the return value of this method include the
    password in the URL, if it is set.
    Defaults to False.

Returns:
    Text: The authority (network location and user information) portion
        of the URL.
�includeSecretsz$got unexpected keyword arguments: %rrD�[�]N�@)
rNr��keysr#rDr�rGr�rrrE�indexre)r!�
with_password�kwr#�hostport�	authorityrEs&&,    r"r��
URL.authority�s���(���/��?�
�
��B�R�W�W�Y�N�O�O��y�y���$�;��d�
�S�(�)�H��	�	�{�H��9�9��+�+�D�K�K�8�8��O�O�D����O�,��	��=�=�=��}�}�H� �T�X�%5�#�$>�h�n�n�T�&:�Q�&>�?�����X�&�������8�,�-��y�y��#�#r%c� �\WP4'g\#RFp\W4\W48wgKR#	VPVP8Xg+VP\
9dVP\
9dR#R#)r�FT)r�rEr#rUrCrDr�r�)r�r)�NotImplemented�getattrr*�_ROOT_PATHS)r!�other�attrs&& r"�__eq__�
URL.__eq__�si���%���0�0�!�!�	
�D��t�"�g�e�&:�:��	
��9�9��
�
�"��I�I��$����{�)B��r%c�p�\WP4'g\#VPV4'*#r�r�r)r�r��r!r�s&&r"�__ne__�
URL.__ne__��)���%���0�0�!�!��;�;�u�%�%�%r%c���\VPVPVPVPVP
VPVPVPVPVP3
4#r��hashr)r�rEr#r*rUrCrDr�r�r+s&r"�__hash__�URL.__hash__��\����������
�
��	�	��	�	��
�
��
�
��	�	����� � �
�

�
	
r%c�T�\VP;'d
VP4#)a/Whether or not the URL is "absolute". Absolute URLs are complete
enough to resolve to a network resource without being relative
to a base URI.

>>> URL.from_text(u'http://wikipedia.org/').absolute
True
>>> URL.from_text(u'?a=b&c=d').absolute
False

Absolute URLs must have both a scheme and a host set.
)rHr�r#r+s&r"�absolute�URL.absolute�s���D�K�K�-�-�D�I�I�.�.r%c
���V\JdWP8wdRp	VP\WP4\W P4\W0P
4\W@P4\WPP4\W`P4\WpP4\W�P4\W�P4R7	#)a�:class:`URL` objects are immutable, which means that attributes
are designed to be set only once, at construction. Instead of
modifying an existing URL, one simply creates a copy with the
desired changes.

If any of the following arguments is omitted, it defaults to
the value on the current URL.

Args:
    scheme: The text name of the scheme.
    host: The host portion of the network location.
    path: A tuple of strings representing the slash-separated parts of
        the path.
    query: The query parameters, as a dictionary or as an sequence of
        key-value pairs.
    fragment: The fragment part of the URL.
    port: The port part of the network location.
    rooted: Whether or not the path begins with a slash.
    userinfo: The username or colon-separated username:password pair.
    uses_netloc: Indicates whether ``://`` (the "netloc separator")
        will appear to separate the scheme from the *path* in cases
        where no host is present.
        Setting this to ``True`` is a non-spec-compliant affordance for
        the common practice of having URIs that are *not* URLs (cannot
        have a 'host' part) but nevertheless use the common ``://``
        idiom that most people associate with URLs; e.g. ``message:``
        URIs like ``message://message-id`` being equivalent to
        ``message:message-id``.
        This may be inferred based on the scheme depending on whether
        :func:`register_scheme` has been used to register the scheme
        and should not be passed directly unless you know the scheme
        works like this and you know it has not been registered.

Returns:
    URL: A copy of the current :class:`URL`, with new values for
        parameters passed.
N�	r�r#r*rUrCrDr�rEr�)r@r�r)r�r#r*rUrCrDr�rEr�)
r!r�r#r*rUrCrDr�rEr�s
&&&&&&&&&&r"r`�URL.replaces���d���F�k�k�$9��K��~�~��V�[�[�1��4���+��4���+��E�:�:�.��x���7��4���+��V�[�[�1��x���7�!�+�/?�/?�@��

�
	
r%c��\P\RV44pVf\RV,4hVP	4pVR,;'gRp\
PV4pVf\RV:RV:24hVP	4pVR,'d\RVR,:RV:24hVR	,;'gRpVR
,;'g
VR,pVR,p	V	e
\
V	4p	VR,;'gRp
VR,;'gRp\VR,4pVR,'d@\VR,PR44p
V
^,'g
V
R,p
RpMRpM
Rp
\V4pVR,'dZ\;QJd*.RVR,PR44FNK	5M#!RVR,PR444pMRpV!V
VV
VVV	VVV4	# \d.T	'g\R
T,4h\RT	,4hi;i)a�Whereas the :class:`URL` constructor is useful for constructing
URLs from parts, :meth:`~URL.from_text` supports parsing whole
URLs from their string form::

    >>> URL.from_text(u'http://example.com')
    URL.from_text(u'http://example.com')
    >>> URL.from_text(u'?a=b&x=y')
    URL.from_text(u'?a=b&x=y')

As you can see above, it's also used as the :func:`repr` of
:class:`URL` objects. The natural counterpart to
:func:`~URL.to_text()`. This method only accepts *text*, so be
sure to decode those bytestrings.

Args:
   text: A valid URL string.

Returns:
   URL: The structured object version of the parsed string.

.. note::

    Somewhat unexpectedly, URLs are a far more permissive
    format than most would assume. Many strings which don't
    look like URLs are still valid URLs. As a result, this
    method only raises :class:`URLParseError` on invalid port
    and IPv6 values in the host portion of the URL.
rizcould not parse url: %rr�rdzinvalid authority z	 in url: �bad_hostz
invalid host rE�	ipv6_host�
plain_hostrDzport must not be empty: %rz!expected integer for port, not %rr�rC�_netloc_sepr*�/r{TFrUc3�\"�TF"pRV9dVPR^4MVR3x�K$	R#5i)rFN)r�)r:�qes& r"r<� URL.from_text.<locals>.<genexpr>�s;����2�B��r�z��H�H�T�1�%��d��$�2�s�*,rEr3)�_URL_RErKr�r��	groupdict�
_AUTHORITY_REr�r�rHr~r�)�clsri�um�gs�au_text�au_m�au_gsrEr#rDr�rCr�r*r�rUs&&              r"�	from_text�
URL.from_textHs/��>�]�]�:�f�d�3�
4��
�:�� 9�D� @�A�A�
�\�\�^���[�/�(�(�S���"�"�7�+���<��5<�d�C��
���� �������05�j�0A�0A�4�H��
���$�+�+����[�!�8�8�U�<�%8���V�}����
P��4�y���H��$�$����j�>�(�(�S���2�m�,�-��
�f�:�:���F��)�)�$�/�0�D���7�7��B�x�������D��'�]�F�
�g�;�;��E���W�+�+�+�D�1�
�E�E���W�+�+�+�D�1�
��E��E�����������

�
	
��=�
P��'�(D�w�(N�O�O�#�$G�$�$N�O�O�
P�s�9H�I	�$%I	c��a�/pV'dVPP4VR&V'dVPP4VR&V3Rlp	V'dFVP'd/\	VP4U
u.uF
q�!V
4NK	up
VR&MR	VR&V'd<VP
UUu.uFwr�V	!V4V'd	V	!V4MT3NK!	uppVR&V'dV	!VP4VR&V'dDRPVPPR^4U
u.uF
q�!V
4NK	up
4VR&VP!R
/VB#uup
iuuppiuup
i)a(Return a new URL object with several standard normalizations
applied:

* Decode unreserved characters (`RFC 3986 2.3`_)
* Uppercase remaining percent-encoded octets (`RFC 3986 2.1`_)
* Convert scheme and host casing to lowercase (`RFC 3986 3.2.2`_)
* Resolve any "." and ".." references in the path (`RFC 3986 6.2.2.3`_)
* Ensure an ending slash on URLs with an empty path (`RFC 3986 6.2.3`_)
* Encode any stray percent signs (`%`) in percent-encoded
  fields (path, query, fragment, userinfo) (`RFC 3986 2.4`_)

All are applied by default, but normalizations can be disabled
per-part by passing `False` for that part's corresponding
name.

Args:
    scheme: Convert the scheme to lowercase
    host: Convert the host to lowercase
    path: Normalize the path (see above for details)
    query: Normalize the query string
    fragment: Normalize the fragment
    userinfo: Normalize the userinfo
    percents: Encode isolated percent signs for any percent-encoded
        fields which are being normalized (defaults to `True`).

>>> url = URL.from_text(u'Http://example.COM/a/../b/./c%2f?%61%')
>>> print(url.normalize().to_text())
http://example.com/b/c%2F?a%25

.. _RFC 3986 3.2.2: https://tools.ietf.org/html/rfc3986#section-3.2.2
.. _RFC 3986 2.3: https://tools.ietf.org/html/rfc3986#section-2.3
.. _RFC 3986 2.1: https://tools.ietf.org/html/rfc3986#section-2.1
.. _RFC 3986 6.2.2.3: https://tools.ietf.org/html/rfc3986#section-6.2.2.3
.. _RFC 3986 6.2.3: https://tools.ietf.org/html/rfc3986#section-6.2.3
.. _RFC 3986 2.4: https://tools.ietf.org/html/rfc3986#section-2.4
r�r#c� <�\VRSR7#)T)r�r�)r�)�target�percentss&�r"�
_dec_unres�!URL.normalize.<locals>._dec_unres�s���%��t�8��
r%r*rUrCrDrEr}r3)r�rMr#r*r-rUrCrerEr�r`)
r!r�r#r*rUrCrEr�r�r��prAr]s
&&&&&&&f     r"r�
URL.normalize�s:���^����;�;�,�,�.�B�x�L�������*�B�v�J�	���y�y�y�+@����+K��+K�a�J�q�M�+K���6�
�$��6�
��!�J�J��&�D�A��A���
�1�
��:�&��B�w�K��'��
�
�6�B�z�N��!�Y�Y�(,�
�
�(;�(;�C��(C�D�(C�1��A��(C�D��B�z�N��|�|�!�b�!�!��#����Es�E�8%E#�2E)c�<�V'gV#VUu.uFp\RV4NK	pp\VP4pVP'dVPR,R8XdVRRpV\\VRR74,
pVP	VR7#uupi)a=Make a new :class:`URL` where the given path segments are a child
of this URL, preserving other parts of the URL, including the
query string and fragment.

For example::

    >>> url = URL.from_text(u'http://localhost/a/b?x=y')
    >>> child_url = url.child(u"c", u"d")
    >>> child_url.to_text()
    u'http://localhost/a/b/c/d?x=y'

Args:
    segments: Additional parts to be joined and added to the path, like
    :func:`os.path.join`. Special characters in segments will be
    percent encoded.

Returns:
   URL: A copy of the current URL with the extra path segments.
r8rdNFrz�r*r�)r�r~r*r�r`)r!�segments�s�new_paths&*  r"�child�	URL.child�s���*��K�4<�
�3;�a�J�~�q�)�8�	�
�����#���9�9�9����2��#�-����}�H��E�,�X�u�E�F�F���|�|��|�*�*��
s�Bc��\RV4\VP4RR\V43,pVP	VR7#)a-Make a new :class:`URL` with a single path segment that is a
sibling of this URL path.

Args:
    segment: A single path segment.

Returns:
    URL: A copy of the current URL with the last path segment
        replaced by *segment*. Special characters such as
        ``/?#`` will be percent encoded.
r8Nr�r�)r�r~r*rsr`)r!r;r�s&& r"�sibling�URL.siblingsB��	�>�7�+�����#�C�R�(�,=�g�,F�+H�H���|�|��|�*�*r%c	�B�V'dP\V\4'dTpM!\RV4\PV4pVP'dV#MTpVP
pVP'd"VP'g\RV:24hVP'dVPpMeVP'd4\VP4RR\VP4,pM VPpV'g
VP
pTPVP;'g
VPVP;'g
VPVP;'g
VP\V4VVPR7#)a�Resolve the given URL relative to this URL.

The resulting URI should match what a web browser would
generate if you visited the current URL and clicked on *href*.

    >>> url = URL.from_text(u'http://blog.hatnote.com/')
    >>> url.click(u'/post/155074058790').to_text()
    u'http://blog.hatnote.com/post/155074058790'
    >>> url = URL.from_text(u'http://localhost/a/b/c/')
    >>> url.click(u'../d/./e').to_text()
    u'http://localhost/a/b/d/e'

Args (Text):
    href: A string representing a clicked URL.

Return:
    A copy of the current URL with navigation logic applied.

For more information, see `RFC 3986 section 5`_.

.. _RFC 3986 section 5: https://tools.ietf.org/html/rfc3986#section-5
zrelative URLz!absolute URI with rootless path: N)r�r#rDr*rUrCr�)r�r5r�r�r�rUr�r��NotImplementedErrorr*r~r`r#rDr-rC)r!�href�clickedrUr*s&&   r"�click�	URL.click+s7��0��$��$�$���
�>�4�0��-�-��-�������� ��G��
�
���>�>�>�'�.�.�.�&�9=�?��
��~�~�~��|�|�������T�Y�Y�'���,�u�W�\�\�/B�B���y�y��� �J�J�E��|�|��>�>�0�0�T�[�[����*�*�������*�*����&�t�,���%�%�
�
�	
r%c�`�RPVPPR^4Uu.uFp\V4NK	up4p\	VP
\
VP4RRR7pVP'g
VPM%\VPRR7PR4pTPTTT\VPUUu.uF%wrV\VRR7Ve\VRR7MR3NK'	upp4\!VP"RR7R	7#uupiuuppi)
u�Make a new :class:`URL` instance with all non-ASCII characters
appropriately percent-encoded. This is useful to do in preparation
for sending a :class:`URL` over a network protocol.

For example::

    >>> URL.from_text(u'https://ايران.com/foo⇧bar/').to_uri()
    URL.from_text(u'https://xn--mgba3a4fra.com/foo%E2%87%A7bar/')

Returns:
    URL: A new instance with its path segments, query parameters, and
        hostname encoded, so that they are all in the standard
        US-ASCII range.
rDFT)r�r�rjr rArzN�rEr#r*rUrC)rerEr�r�r�r*rHr�r#�idna_encoderr`r~rUr�r�r�rC)r!r��new_userinfor��new_hostrAr]s&      r"�to_uri�
URL.to_uriks�� �y�y�/3�}�}�/B�/B�3��/J�K�/J�!�
"�1�
%�/J�K�
��&��I�I�$�t�{�{�"3�E�4�
��
�9�9�9�
�I�I��T�Y�Y�d�3�:�:�7�C�	�
�|�|�!����!%�
�
��!+���*�!�T�:��=�,�A�t�<�!�	�!+��
�+�4�=�=�$�G��
�	
��
L��s�D%�+D*c
���RPVPPR^4Uu.uFp\V4NK	up4p\	VP
4pTP
TTVPUu.uFp\V4NK	up\;QJd.RVP4FNK	5M!RVP44\VP4R7#uupiuupi)u	Make a new :class:`URL` instance with all but a few reserved
characters decoded into human-readable format.

Percent-encoded Unicode and IDNA-encoded hostnames are
decoded, like so::

    >>> url = URL.from_text(u'https://xn--mgba3a4fra.example.com/foo%E2%87%A7bar/')
    >>> print(url.to_iri().to_text())
    https://ايران.example.com/foo⇧bar/

.. note::

    As a general Python issue, "narrow" (UCS-2) builds of
    Python may not be able to fully decode certain URLs, and
    the in those cases, this method will return a best-effort,
    partially-decoded, URL which is still valid. This issue
    does not affect any Python builds 3.4+.

Returns:
    URL: A new instance with its path segments, query parameters, and
        hostname decoded for display purposes.
rDc3�^"�TF#wr\V4Ve\V4MR3x�K%	R#5ir)rrr@s&  r"r<�URL.to_iri.<locals>.<genexpr>�s6����
'�D�A�&�a�(�./�m�'��*���'�rBr�)
rerEr�r�r&r#r`r*rr~rUr
rC)r!r�r�r%r;s&    r"�to_iri�
URL.to_iri�s���0�y�y�/3�}�}�/B�/B�3��/J�K�/J�!�
"�1�
%�/J�K�
��!����+�	��|�|�!��<@�I�I�F�I��#�G�,�I�F��%��
!�J�J��%�%��
!�J�J���+�4�=�=�9��
�	
��	
L��Gs�C$�5C)c��VPpVPV4pRP\VPVP
\
V4\
V4RR74p.pVPF_wrgVfVP\VRR74K'VPRP\VRR7\VRR7344Ka	RPV4pVPp	.p
V
PpV'dV!V4V!R4V'dV!R4V!V4M0V'd)VR	,R8wdVP'd	V!R4V'd/V'dV'dVR
,R8wd	V!R4V!V4V'dV!R4V!V4V	'dV!R4V!V	4R
PV
4#)aMRender this URL to its textual representation.

By default, the URL text will *not* include a password, if one
is set. RFC 3986 considers using URLs to represent such
sensitive information as deprecated. Quoting from RFC 3986,
`section 3.2.1`:

    "Applications should not render as clear text any data after the
    first colon (":") character found within a userinfo subcomponent
    unless the data after the colon is the empty string (indicating no
    password)."

Args (bool):
    with_password: Whether or not to include the password in the URL
        text. Defaults to False.

Returns:
    Text: The serialized textual representation of this URL, such as
        ``u"http://example.com/some/path?some=query"``.

The natural counterpart to :class:`URL.from_text()`.

.. _section 3.2.1: https://tools.ietf.org/html/rfc3986#section-3.2.1
r�F)r�r�r�rjrzrFrErDz//r
rF�?�#rd)
r�r�rer�r*r�rHrUrr�r�rCr�)r!rr�r�r*�query_partsrAr]�query_stringrC�parts�_adds&&          r"�to_text�URL.to_text�so��4�����N�N�=�1�	��x�x���	�	��{�{���<�"�9�o��
�
�����J�J�D�A��y��"�"�#4�Q��#F�G��"�"��I�I�-�a��?�/��5�A����	��y�y��-���=�=�����|�|�����L���I����J���O�
��R��D�(�T�-=�-=�-=���J���)��R��C���S�	���J����I�������I���N��x�x���r%c�Z�VPP:RVP4:R2#)z�Convert this URL to an representation that shows all of its
constituent parts, as well as being a valid argument to
:func:`eval`.
z.from_text(r()r)r*r�r+s&r"r,�URL.__repr__s��&*�^�^�%<�%<�d�l�l�n�M�Mr%c�\�VP4P4PR4#)z�
Allows for direct usage of URL objects with libraries like
requests, which automatically stringify URL parameters. See
issue #49.
rA)r�r�rr+s&r"�	_to_bytes�
URL._to_bytess$���{�{�}�$�$�&�-�-�g�6�6r%c�$�VPV4#r�r�)r�r�s&&r"�fromText�URL.fromText+s���}�}�Q��r%c�&�VPVR7#�)r�r��r!rys&&r"�asText�
URL.asText0����|�|�.�|�9�9r%c��\PV4p\\V4\.RO4,
4pV# \dA\TP4\TPP44,pLri;i�r�)r��asURI�asIRIr��
r>�__dir__r^�dirr)r)�__dict__r}�sortedrJ�r!rQs& r"r��URL.__dir__4�n��	C��.�.��&�C��S��X��$L� M�M�N���
��	�	C��d�n�n�%��T�]�]�-?�-?�-A�(B�B�C�	C���?�AB
�	B
c�L�VPVPW33,R7#)a�Make a new :class:`URL` instance with a given query argument,
*name*, added to it with the value *value*, like so::

    >>> URL.from_text(u'https://example.com/?x=y').add(u'x')
    URL.from_text(u'https://example.com/?x=y&x')
    >>> URL.from_text(u'https://example.com/?x=y').add(u'x', u'z')
    URL.from_text(u'https://example.com/?x=y&x=z')

Args:
    name: The name of the query parameter to add.
        The part before the ``=``.
    value: The value of the query parameter to add.
        The part after the ``=``.
        Defaults to ``None``, meaning no value.

Returns:
    URL: A new :class:`URL` instance with the parameter added.
�rU�r`rU�r!rr�s&&&r"r��URL.add@s#��(�|�|�$�*�*��
�/?�"?�|�@�@r%c��a�VPUUu.uFwr4VS8wgKW43NK	ppp\V3Rl\VP44R4pSV3.WVV%VPVR7#uuppi)a�Make a new :class:`URL` instance with the query parameter *name*
set to *value*. All existing occurences, if any are replaced
by the single name-value pair.

    >>> URL.from_text(u'https://example.com/?x=y').set(u'x')
    URL.from_text(u'https://example.com/?x')
    >>> URL.from_text(u'https://example.com/?x=y').set(u'x', u'z')
    URL.from_text(u'https://example.com/?x=z')

Args:
    name: The name of the query parameter to set.
        The part before the ``=``.
    value: The value of the query parameter to set.
        The part after the ``=``.
        Defaults to ``None``, meaning no value.

Returns:
    URL: A new :class:`URL` instance with the parameter set.
c3�D<"�TFwpwr#VS8XgKVx�K	R#5irr3�r:r\rAr]rs&   �r"r<�URL.set.<locals>.<genexpr>ns!����E�"7�;�A�v��1��9�Q�Q�"7��� �
 r�r��rU�next�	enumerater`)r!rr�rAr]�q�idxs&f&    r"rJ�URL.setVsm���,#'�*�*�:�*����T�	�V�a�V�*��:��E�)�D�J�J�"7�E�r�
���U�m�_��c�
��|�|�!�|�$�$��
;s
�A-�A-c�^�VPUUu.uFwr#W8XgK
VNK	upp#uuppi)a�Get a list of values for the given query parameter, *name*::

    >>> url = URL.from_text(u'?x=1&x=2')
    >>> url.get('x')
    [u'1', u'2']
    >>> url.get('y')
    []

If the given *name* is not set, an empty list is returned. A
list is always returned, and this method raises no exceptions.

Args:
    name: The name of the query parameter to get.

Returns:
    List[Optional[Text]]: A list of all the values associated with the
        key, in string form.
r�)r!r�keyr�s&&  r"rG�URL.getss(��(+/�*�*�D�*�,�3�����*�D�D��D��
)�)c��VfcV\Jd*VPUUu.uFwrEWA8wgK
WE3NK	pppM�VPUUu.uFwrEWA8Xd	WR8XdKWE3NK	pppMQ.^rvVPF>wrEWA8Xd"V\JgWR8XdWs8dV^,
pK,VPWE34K@	VPVR7#uuppiuuppi)a#Make a new :class:`URL` instance with occurrences of the query
parameter *name* removed, or, if *value* is set, parameters
matching *name* and *value*. No exception is raised if the
parameter is not already set.

Args:
    name: The name of the query parameter to remove.
    value: Optional value to additionally filter on.
        Setting this removes query parameters which match both name
        and value.
    limit: Optional maximum number of parameters to remove.

Returns:
    URL: A new :class:`URL` instance with the parameter removed.
r��r@rUrr`�r!rr��limitrAr]�nq�
removed_counts&&&&    r"�remove�
URL.remove�s���,�=����+/�:�:�C�:��!���f�q�f�:��C��#'�*�*��",����I�!�*��Q�F�",����!#�A�
��
�
����I��&��A�J�%�-�!�Q�&�M��I�I�q�f�%�#��|�|�"�|�%�%��)D����
C
�C
�C�C)
r]rOrLrMrQrNrRrIrSrT)	NNr3r3rdNNrdNr2�TTTTTTTr}r)3r*r6r7r8r�r#r`�propertyr�r#rDr*rUrCr�rEr�rvr�r�r�r�r�r@r`�classmethodr�rr�r�r�r�r�r�r,r�r��__str__�__unicode__�	__bytes__r�r�r�r�r�r�rJrGrr:r;�r<s@r"r5r5�s�����=�~S&�j!�������������.�����
��
������
��
������!��!��,��,�%$�N�,&�
�"�
/��
/�"�
�
���
����@
�D�^
��^
�@N"�`+�B+�">
�@+
�Z)
�VJ�XN�7�������	���
�E��E�� �� �:��A�,%�:E�2��	,&�,&r%r5c�&�VPRR4#)r�z%20)r`�ris&r"�
_replace_plusr"�s���<�<��U�#�#r%c��V#rr3r!s&r"�_no_opr$�s���Kr%c	��a�]tRtRtoRt]RR3Rlt]R)Rl4t]	R4t
R*RltR	tR
t
RtR+RltR
tRtR,Rlt]	R4t]	R4t]	R4t]	R4t]	R4t]	R4t]	R4t]	R4t]	R4t]	R4t]	R4t]]]]]]]]]3	RltRt R-Rlt!R-Rlt"]R3Rlt#R t$R!t%R"t&R#t'R$t(]t)]
t*]R*R%l4t+R*R&lt,R't-R(t.Vt/R#).r_i�a�
:class:`DecodedURL` is a type designed to act as a higher-level
interface to :class:`URL` and the recommended type for most
operations. By analogy, :class:`DecodedURL` is the
:class:`unicode` to URL's :class:`bytes`.

:class:`DecodedURL` automatically handles encoding and decoding
all its components, such that all inputs and outputs are in a
maximally-decoded state.  Note that this means, for some special
cases, a URL may not "roundtrip" character-for-character, but this
is considered a good tradeoff for the safety of automatic
encoding.

Otherwise, :class:`DecodedURL` has almost exactly the same API as
:class:`URL`.

Where applicable, a UTF-8 encoding is presumed. Be advised that
some interactions can raise :exc:`UnicodeEncodeErrors` and
:exc:`UnicodeDecodeErrors`, just like when working with
bytestrings. Examples of such interactions include handling query
strings encoding binary data, and paths containing segments with
special characters encoded with codecs other than UTF-8.

Args:
    url: A :class:`URL` object to wrap.
    lazy: Set to True to avoid pre-decode all parts of the URL to check for
        validity.
        Defaults to False.
    query_plus_is_space: + characters in the query string should be treated
        as spaces when decoding.  If unspecified, the default is taken from
        the scheme.

.. note::

  The :class:`DecodedURL` initializer takes a :class:`URL` object,
  not URL components, like :class:`URL`. To programmatically
  construct a :class:`DecodedURL`, you can use this pattern:

    >>> print(DecodedURL().replace(scheme=u'https',
    ... host=u'pypi.org', path=(u'projects', u'hyperlink')).to_text())
    https://pypi.org/projects/hyperlink

.. versionadded:: 18.0.0
FNc���WnVfVP\9pW0nV'g:VPVP
VPVPVP3R#r)	�_urlr�r��_query_plus_is_spacer#rEr*rUrC)r!�urlr\r�s&&&&r"r#�DecodedURL.__init__�sM���	��&�"%�*�*�4I�"I��$7�!��
�I�I�t�}�}�d�i�i����T�]�]�J�r%c�@�\PV4pV!WBVR7#)z�Make a `DecodedURL` instance from any text string containing a URL.

Args:
  text: Text containing the URL
  lazy: Whether to pre-decode all parts of the URL to check for
      validity.
      Defaults to True.
)r\r�)r5r�)r�rir\r�r's&&&& r"r��DecodedURL.from_texts ���}�}�T�"���4�8K�L�Lr%c��VP#)zUAccess the underlying :class:`URL` object, which has any special
characters encoded.
)r'r+s&r"�encoded_url�DecodedURL.encoded_urls���y�y�r%c�8�VPPV4#)z/Passthrough to :meth:`~hyperlink.URL.to_text()`)r'r�)r!rs&&r"r��DecodedURL.to_texts���y�y� � ��/�/r%c�6�VPP4#)z.Passthrough to :meth:`~hyperlink.URL.to_uri()`)r'r�r+s&r"r��DecodedURL.to_uri����y�y���!�!r%c�6�VPP4#)z.Passthrough to :meth:`~hyperlink.URL.to_iri()`)r'r�r+s&r"r��DecodedURL.to_iri"r4r%c�<�VPVVPR7#))r�)r)r()r!r)s&&r"�_clone�DecodedURL._clone's$���~�~�� $� 9� 9��
�	
r%c��\V\4'd
VPpVPVPP	VR74#)zNReturn a new DecodedURL wrapping the result of
:meth:`~hyperlink.URL.click()`
)r�)r�r_r'r8r�)r!r�s&&r"r��DecodedURL.click/s=��
�d�J�'�'��9�9�D��{�{��I�I�O�O��O�&�
�	
r%c�h�VPVPP\V444#)z�Automatically encode any reserved characters in *segment* and
return a new `DecodedURL` wrapping the result of
:meth:`~hyperlink.URL.sibling()`
)r8r'r�rn)r!r;s&&r"r��DecodedURL.sibling:s-���{�{��I�I���.�w�7�8�
�	
r%c��V'gV#VUu.uFp\V4NK	ppVPVPP!V!4#uupi)z�Automatically encode any reserved characters in *segments* and
return a new `DecodedURL` wrapping the result of
:meth:`~hyperlink.URL.child()`.
)rnr8r'r�)r!r�r��new_segss&*  r"r��DecodedURL.childDsG����K�19�:��A�$�Q�'���:��{�{�4�9�9�?�?�H�5�6�6��;s�Ac�\�VPVPPWW4WVV44#)zTReturn a new `DecodedURL` wrapping the result of
:meth:`~hyperlink.URL.normalize()`
)r8r'r)r!r�r#r*rUrCrEr�s&&&&&&&&r"r�DecodedURL.normalizeOs0���{�{��I�I����d�8�x�
�
�	
r%c�.�VPP#r)r'r�r+s&r"r��DecodedURL.absolutecs���y�y�!�!�!r%c�.�VPP#r)r'r�r+s&r"r��DecodedURL.schemeh����y�y���r%c�@�\VPP4#r)r&r'r#r+s&r"r#�DecodedURL.hostms���D�I�I�N�N�+�+r%c�.�VPP#r)r'rDr+s&r"rD�DecodedURL.portrs���y�y�~�~�r%c�.�VPP#r)r'r�r+s&r"r��DecodedURL.rootedwrGr%c
���\VR4'g@\VPPUu.uFp\	VRR7NK	up4VnVP
#uupi)rMT�r)�hasattrr~r'r*r�rM)r!r�s& r"r*�DecodedURL.path|sZ���t�W�%�%��"�Y�Y�^�^��+��$�A�T�B�+���D�J��z�z���s�Ac�Xa�\VR4'g�VP'd\oM\o\	\
\;QJd+.V3RlVPP4FNK	5M$!V3RlVPP444Vn	VP#)rNc3�<"�TF;wr\;QJd.V3RlW34FNK	5M!V3RlW344x�K=	R#5i)c3�V<"�TFpVe\S!V4RR7MRx�K 	R#5i)NTrO�r�)r:�x�	predecodes& �r"r<�-DecodedURL.query.<locals>.<genexpr>.<genexpr>�s;�����"(�A��=�(�%�a�L���"�	"�
"(�s�&)N�r~)r:rAr]rWs&  �r"r<�#DecodedURL.query.<locals>.<genexpr>�sP����
�!0����E��#$��
�E�E��#$��
���!0�s�AA)
rPr(r"r$r�
QueryPairsr~r'rUrN)r!rWs&@r"rU�DecodedURL.query�s����t�X�&�&��(�(�(�)�	�"�	�����
�!%�	�	���
���
�!%�	�	���
�
�
�D�K��{�{�r%c��\VR4'g)VPPp\VRR7VnVP#)rOTrO)rPr'rCr�rO)r!�frags& r"rC�DecodedURL.fragment�s8���t�[�)�)��9�9�%�%�D�,�T��N�D�N��~�~�r%c��\VR4'g�\\\\,\\\3,3,\\
;QJd8.RVPPPR^44FNK	5M1!RVPPPR^44444Vn	VP#)rSc3�<"�TFp\VRR7x�K	R#5i)TrONrU�r:r�s& r"r<�&DecodedURL.userinfo.<locals>.<genexpr>�s!����!A�A�(���F�F�!A�r>rD)
rPrrrr�r~r'rEr�rSr+s&r"rE�DecodedURL.userinfo�s����t�[�)�)�!��e�C�j�%��S��/�1�2���E��!%���!3�!3�!9�!9�#�q�!A��E�E��!%���!3�!3�!9�!9�#�q�!A�����D�N��~�~�r%c�(�VP^,#)�)rEr+s&r"rv�DecodedURL.user�s���}�}�Q��r%c�.�VPP#r)r'r�r+s&r"r��DecodedURL.uses_netloc�s���y�y�$�$�$r%c
�D�V\Jd-\;QJd.RV4FNK	5M
!RV44pV\JdM\\\;QJd.R\	V44FNK	5M!R\	V4444pV\JdK\V4^8�d\
RV:24hRPVU
u.uFp
\V
4NK	up
4pM\pVPPVVVVVVVVV	R7	pVPVR7#uup
i)aaWhile the signature is the same, this `replace()` differs a little
from URL.replace. For instance, it accepts userinfo as a
tuple, not as a string, handling the case of having a username
containing a `:`. As with the rest of the methods on
DecodedURL, if you pass a reserved character, it will be
automatically encoded instead of an error being raised.
c3�8"�TFp\V4x�K	R#5ir�rnrbs& r"r<�%DecodedURL.replace.<locals>.<genexpr>�s���;�d��)�!�,�,�d�s�c3�"�TF5wr\;QJd.RW34FNK	5M!RW344x�K7	R#5i)c3�D"�TFpVe\V4MRx�K	R#5irrl)r:rVs& r"r<�/DecodedURL.replace.<locals>.<genexpr>.<genexpr>�s&����!'�A�01�}�(��+�$�F�!'�s� NrYr@s&  r"r<rm�sK����
!2���	�E��"#���E�E��"#�����!2�s�=?zDuserinfo expected sequence of ["user"] or ["user", "password"], got rDr�)r))r@r~rr[r�rr�rernr'r`r8)
r!r�r#r*rUrCrDr�rEr�r��
userinfo_text�new_urls
&&&&&&&&&&   r"r`�DecodedURL.replace�s��(�v���5�;�d�;�5�5�;�d�;�;�D���������
!+�5� 1�����
!+�5� 1���	�E��6�!��8�}�q� � �7?�B���!�I�I�H�&M�H�q�'7��':�H�&M�N�M�"�M��)�)�#�#��������"�#�$�

���{�{�w�{�'�'��'Ns�Dc�^�VPUUu.uFwr#W8XgK
VNK	upp#uuppi)z?Get the value of all query parameters whose name matches *name*r�)r!rrAr]s&&  r"rG�DecodedURL.get�s(��!%�
�
�8�
�f�q�d�i���
�8�8��8rc�L�VPVPW33,R7#)zJReturn a new DecodedURL with the query parameter *name* and *value*
added.r�r�r�s&&&r"r��DecodedURL.add�s#���|�|�$�*�*��
�/?�"?�|�@�@r%c��a�VPpVUUu.uFwrEVS8wgKWE3NK	ppp\V3Rl\V44R4pSV3.WgV%VPVR7#uuppi)zBReturn a new DecodedURL with query parameter *name* set to *value*c3�D<"�TFwpwr#VS8XgKVx�K	R#5irr3rs&   �r"r<�!DecodedURL.set.<locals>.<genexpr>		s!����G�)9�+�1�f�q�Q�$�Y�A�A�)9�rr�r�r)r!rr�rUrAr]r	r
s&f&     r"rJ�DecodedURL.set	sj����
�
��"'�5�%���1��9�V�a�V�%��5��G��5�)9�G��L���U�m�_��c�
��|�|�!�|�$�$��
6s
�A%�A%c��VfcV\Jd*VPUUu.uFwrEWA8wgK
WE3NK	pppM�VPUUu.uFwrEWA8Xd	WR8XdKWE3NK	pppMQ.^rvVPF>wrEWA8Xd"V\JgWR8XdWs8dV^,
pK,VPWE34K@	VPVR7#uuppiuuppi)z�Return a new DecodedURL with query parameter *name* removed.

Optionally also filter for *value*, as well as cap the number
of parameters removed with *limit*.
r�rrs&&&&    r"r�DecodedURL.remove
	s����=����+/�:�:�C�:��!���f�q�f�:��C��#'�*�*��",����I�!�*��Q�F�",����!#�A�
��
�
����I��&��A�J�%�-�!�Q�&�M��I�I�q�f�%�#��|�|�"�|�%�%��'D��rc�V�VPPpV:RVP:R2#)z(url=r()r)r*r')r!�cns& r"r,�DecodedURL.__repr__0	s ��
�^�^�
$�
$��!�4�9�9�-�-r%c�,�\VP4#r)r�r'r+s&r"r�DecodedURL.__str__5	s���4�9�9�~�r%c��\WP4'g\#VP4P	4VP4P	48H#r)r�r)r�rr�r�s&&r"r��DecodedURL.__eq__;	sB���%���0�0�!�!��~�~��&�&�(�E�O�O�,=�,D�,D�,F�F�Fr%c�p�\WP4'g\#VPV4'*#rr�r�s&&r"r��DecodedURL.__ne__A	r�r%c���\VPVPVPVPVP
VPVPVPVPVP3
4#rr�r+s&r"r��DecodedURL.__hash__G	r�r%c�&�VPWR7#rZr�)r�r�r\s&&&r"r��DecodedURL.fromText\	s���}�}�Q�}�*�*r%c�&�VPVR7#r�r�r�s&&r"r��DecodedURL.asTexta	r�r%c��\PV4p\\V4\.RO4,
4pV# \dA\TP4\TPP44,pLri;ir�r�r�s& r"r��DecodedURL.__dir__e	r�r�)rOrMrNr(r'rS)FNr2r}rr)0r*r6r7r8r��
_EMPTY_URLr#rr�rr.r�r�r�r8r�r�r�rr�r�r#rDr�r*rUrCrErvr�r@r`rGr�rJrr,rr�r�r�r�r�r�r�r�r:r;rs@r"r_r_�s�����+�Z&�E�t�
��M��M�����0�
"�
"�

�	
�
�	7�
�(�"��"�� �� ��,��,������ �� ��	��	�����0��������� �� ��%��%��
�
���
����5(�n9�
A�%���	!&�F.�
�G�&�
�$
�E��E��+��+�:��r%r_c�\�\PV4pV'gV#\W2R7pV#)a6
Automatically turn text into a structured URL object.

>>> url = parse(u"https://github.com/python-hyper/hyperlink")
>>> print(url.to_text())
https://github.com/python-hyper/hyperlink

Args:
    url: A text string representation of a URL.

    decoded: Whether or not to return a :class:`DecodedURL`,
        which automatically handles all
        encoding/decoding/quoting/unquoting for all the various
        accessors of parts of the URL, or a :class:`URL`,
        which has the same API, but requires handling of special
        characters for different parts of the URL.

    lazy: In the case of `decoded=True`, this controls
        whether the URL is decoded immediately or as accessed. The
        default, `lazy=False`, checks all encoded parts of the URL
        for decodability.

.. versionadded:: 18.0.0
r[)�
EncodedURLr�r_)r)�decodedr\�enc_url�dec_urls&&&  r"�parser�r	s+��4�"�"�3�'�G������,�G��Nr%)�_MISSINGrdr2)r3r})T)FTTT)
�urn�about�bitcoin�blob�data�geo�magnet�mailto�news�pkcs11�sip�sips�tel)TNTr)FF)TF)�r��re�sys�stringr/rrr�ImportErrorr��typingrrrrr	r
rrr
rrrrrr�unicodedatar�_socketr�collections.abcr��collections�idnarr�rr"�version_infor��unichr�	NameErrorrZ�typerPr[�QueryParametersrr?�_unspecifiedr@�	frozensetrg�compiler�rJr�rH�	hexdigitsrI�	_ASCII_RE�_GEN_DELIMS�_SUB_DELIMS�_ALL_DELIMSrJ�_USERINFO_SAFEr��
_PATH_SAFErr�_SCHEMELESS_PATH_SAFErw�_FRAGMENT_SAFEr��_QUERY_VALUE_SAFEr��_QUERY_KEY_SAFEr�rUr_r�r�rqrvrr�rr�rr�r	rfr�r�r�rnrsrxr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr
r�r&r-r3r>r5r�r�r"r$r_r�)�arlrAr]s0000r"�<module>r�s����$
�
�
�
�$��$������""��2�5�>�
���q��Q����
���:��
�5��x��~�-�.��3�
4�
���D�(�4�.� �!���U�4��$��'�
(�)�+���
�C�L��8�v&�h�/�/��v�
�K���
�*�*�����Z�Z�,�
-�
��
�
���
���!�!��!�A��!�!�A��%����	 �&��Q�U�B��"8�"?�"?�	�"J�K�!�	L�!���
�
�J�J�'�(�	��
�#����'���K�'��"�[�0�3�t�9�<����/��
�c�%�j�
(�
��Z�'��"�S��X�-��%�(=�=��"�Z�/�#�e�*�<����/��%���T��(B�B��!�$5�5��#�&7�#�d�)�&C�C���/�1����+�>�:��'�(8�9��&�z�2��"1�2G�"H��#�L�1��&��7��(�):�;��(�):�;��*�+>�?��%�n�5��'�(8�9��'�(9�:���"�'�'�)��)�D�A��8�8�G�Y�'�+<�<�	���)������%���$��$0 �f
�
� 
�
�(-�
�C�-�	�3�-��D�-�
�2�	-�
�D�-�
�2�
-�
�4�-�
�b�-��B�-��S�-��C�-�
�3�-��C�-�
�3�-��D�-� �C�!-�"�S�#-�$
�4�%-�&�D�'-�(�T�)-�*�D�+-�,
�3�--�.�C�/-�0�S�1-�2
�3�3-�4��5-�6�T�7-�8�S�9-�:�C�;-�<�S�=-�>�T�?-�@�B�A-�B
�3�C-�D�C�E-�F
�2��T�	�4��b���	�4�
�C��"�	�3�
�D�Y-��`����&���1�h�@	�J�	��
� $-�;���$��	�
� �	�	������
M�`=�@�>'�Tg&�&�g&�T!�
�
�U�
�$�
�
f��f�V
��mJ���M���0�2�1�1�2����
�F���N��JsH�Q�Q.�6R�4AR
�'R
�R
�	Q+�*Q+�.
Q?�>Q?�	R�R

Youez - 2016 - github.com/yon3zu
LinuXploit