| Server IP : 186.64.123.29 / Your IP : 216.73.217.94 Web Server : LiteSpeed System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : tuemp9827 ( 1016) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/lazr/uri/__pycache__/ |
Upload File : |
o
�^K �
@ s* d Z eZg d�ZddlZze W n ey eZY nw i dd�dd�dd �d
d�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�i d%d&�d'd(�d)d*�d+d,�d-d.�d/d0�d1d2�d3d2�d4d5�d6d7�d8d9�d:d;�d<d=�d>d=�d?d@�dAd@�dBdC��d@ddDdEdDdDdFdDdG��ZdHZ dIZ
dJZdKZdLe
eef Z
dMZdNZdOZdPe ZdQZdRe
eeeef ZdSe
eeeef ZdTZdUZdVe eeef ZdWeeef Ze�eej�Ze�eej�ZdXdY� ZdZd[� Zd\d]� ZG d^d_� d_e �Z!G d`da� da�Z"dbdcddi Z#e�e#ejej$B �Z%e�de�Z&dfdg� Z'dS )hz/Functions for working with generic syntax URIs.)�URI�InvalidURIError�find_uris_in_text�possible_uri_re�merge�remove_dot_segments� NZacapZ674ZdavZ80�dictZ2628ZdnsZ53�ftpZ21ZgoZ1096�gopherZ70Zh323Z1720�http�httpsZ443�imapZ143ZippZ631z iris.beepZ702ZldapZ389ZmtqpZ1038ZmupdateZ3905ZnfsZ2049ZnntpZ119�popZ110�rtspZ554ZsipZ5060ZsipsZ5061ZsnmpZ161z soap.beepZ605z
soap.beeps�telnetZ23ZtftpZ69ZtipZ3372ZvemmiZ575zxmlrpc.beepZ602zxmlrpc.beepszz39.50rZ210zz39.50sZprosperoZ1525Z22Z6667Z3690)Zwais�bzr+http�bzr+sshZircZsftpZssh�svn�svn+sshz(?P<scheme>[a-z][-a-z0-9+.]*)z9(?P<userinfo>(?:[-a-z0-9._~!$&\'()*+,;=:]|%[0-9a-f]{2})*)zs(?P<host>[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|(?:[-a-z0-9._~!$&\'()*+,;=]|%[0-9a-f]{2})*|\[[0-9a-z:.]+\])z(?P<port>[0-9]*)z!(?P<authority>(?:%s@)?%s(?::%s)?)z2(?:/(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*z](?:[-a-z0-9._~!$&\'()*+,;=@]|%[0-9a-f]{2})+(?:/(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*z^(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:/(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*z/(?:%s)?� z(?P<hierpart>//%s%s|%s|%s|%s)z!(?P<relativepart>//%s%s|%s|%s|%s)z=(?P<query>(?:[-a-z0-9._~!$&\'()*+,;=:@/?\[\]]|%[0-9a-f]{2})*)z<(?P<fragment>(?:[-a-z0-9._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)z%s:%s(?:\?%s)?(?:#%s)?$z%s(?:\?%s)?(?:#%s)?$c C s2 |r
| dkr
d| S | � d�}| d|d � | S )a/ Merge two URI path components into a single path component.
Follows rules specified in Section 5.2.3 of RFC 3986.
The algorithm in the RFC treats the empty basepath edge case
differently for URIs with and without an authority section, which
is why the third argument is necessary.
r �/N� )�rfind)�basepath�relpath�
has_authority�slash� r �//usr/lib/python3/dist-packages/lazr/uri/_uri.pyr � s
r c C s� g }| rz| � d�r| dd� } nh| � d�r| dd� } n\| � d�s%| dkr.d| dd� } nJ| � d �s7| d
krId| dd� } t|�dkrH|d
= n/| dv rPd} n(| � d�r\| �dd�}n| �d�}|dk rit| �}|�| d|� � | |d� } | sd�|�S )zqRemove '.' and '..' segments from a URI path.
Follows the rules specified in Section 5.2.4 of RFC 3986.
z../� Nz./� z/./z/.r z/../z/..� r ���)�.z..r r )�
startswith�len�find�append�join)�path�outputr r r r r � s0
�
�
r c C s� | � d�}d}t|�D ]=\}}|dkrqzt|dd� d�}W n ty( Y qw t|�|v r<t|�|dd� ||<