Your IP : 18.226.180.253


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/sre_compile.cpython-310.opt-2.pyc

o

6��fEm�@s	ddlZddlZddlTeehZeeehZ	e
ehZe
ehZeeehBZdZdd�eD�Zejfdd�Zdd	�Zd
d�Zd+dd
�ZejdZde>dZdZeefdd�Zdd�Z dd�Z!dd�Z"dd�Z#dd�Z$dd�Z%dd �Z&d!d"�Z'd#d$�Z(d%d&�Z)d'd(�Z*d,d)d*�Z+dS)-�N)�*))�ii1)�si)�i�)iEi�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i�i�)i2i�)i4i�)i>i�)iAi�)iBi�i�)iJi�)ici�)i�iK�)iai�)i�i�cs.i|]}|D]��t�fdd�|D���qqS)c3s�|]	}�|kr|VqdS�N�)�.0�j��ir�2/opt/alt/python310/lib64/python3.10/sre_compile.py�	<genexpr>Ns�z<dictcomp>.<genexpr>)�tuple)r�trr
r�
<dictcomp>Ns
��rcCs ||@r	||M}||B|@Srr)�flags�	add_flags�	del_flags�
TYPE_FLAGSrrr�_combine_flagsQs
rcCs�|j}t}t}t}t}t}d}	d}
d}|t@r.|t@s.|t@r(t	j
}	t	j}
t}nt	j
}	t	j}
|D�]4\}}
||vr�|t@sF||�||
�q0|t@rU|t|�||
�q0|	|
�sb||�||
�q0|
|
�}|ss|t|�||�q0||vr�|t|�||�q0|t�||�}|d�|tur�|t�|f||D]
}|t�||�q�|t�||�|||<q0|tur�t|
|	|
|�\}}|t@r�|t@r�|t�n|s�|t�n|s�|t�n|t�||�}|d�t|||�||�|||<q0|tu�r|t@�r|t�q0|t�q0||v�r�|t@�rt d|f��t!|
d��r[|t"u�r.|t#�n|t$�||�}|d�||
d�||
d�t%||
d|�|t&�||�|||<q0|t'�||�}|d�||
d�||
d�t%||
d|�||�|||<|t"u�r�|t(�q0|t)�q0|t*u�r�|
\}}}}|�r�|t+�||dd�t%||t,|||��|�r�|t+�||ddd�q0||v�r�||�q0||v�r||�||�}|d�|
ddk�r�|d�n|
d�-�\}}||k�rt d��||�t%||
d|�|t&�||�|||<q0|t.u�r=||�||�}|d�t%||
|�|t&�||�|||<q0|t/u�rm||�|t0@�rQt1�2|
|
�}
|t@�r]t3�2|
|
�}
n|t@�rht4�2|
|
�}
||
�q0|t5u�r�||�g}|j}|
dD]'}
||�}|d�t%||
|�|t6�|||��|d�||�|||<�q|t�|D]}||�|||<�q�q0|t7u�r�||�|t@�r�t8|
}
n	|t@�r�t9|
}
||
�q0|t:u�r|t@�s�||�n|t@�r�|t;�n|�s�|t<�n|t=�||
d�q0|t>u�r_||�||
dd�||�}|d�t%||
d|�|
d�rT|t6�||�}|d�||�|d||<t%||
d|�||�|||<q0||�|d||<q0t d|f��dS)Nrz*internal: unsupported template operator %r��z(look-behind requires fixed-width patternz%internal: unsupported operand type %r)?�append�len�_LITERAL_CODES�_REPEATING_CODES�_SUCCESS_CODES�
_ASSERT_CODES�SRE_FLAG_IGNORECASE�SRE_FLAG_LOCALE�SRE_FLAG_UNICODE�_sre�unicode_iscased�unicode_tolower�_ignorecase_fixes�
ascii_iscased�
ascii_tolower�OP_LOCALE_IGNORE�	OP_IGNORE�OP_UNICODE_IGNORE�
IN_UNI_IGNORE�NOT_LITERAL�NEGATE�LITERAL�FAILURE�IN�_optimize_charset�
IN_LOC_IGNORE�	IN_IGNORE�_compile_charset�ANY�SRE_FLAG_DOTALL�ANY_ALL�SRE_FLAG_TEMPLATE�error�_simple�
MAX_REPEAT�
REPEAT_ONE�MIN_REPEAT_ONE�_compile�SUCCESS�REPEAT�	MAX_UNTIL�	MIN_UNTIL�
SUBPATTERN�MARKr�getwidth�CALL�AT�SRE_FLAG_MULTILINE�AT_MULTILINE�get�	AT_LOCALE�
AT_UNICODE�BRANCH�JUMP�CATEGORY�	CH_LOCALE�
CH_UNICODE�GROUPREF�GROUPREF_LOC_IGNORE�GROUPREF_IGNORE�GROUPREF_UNI_IGNORE�GROUPREF_EXISTS)�code�patternr�emit�_len�
LITERAL_CODES�REPEATING_CODES�
SUCCESS_CODES�ASSERT_CODES�iscased�tolower�fixes�op�av�lo�skip�k�charset�hascased�grouprr�p�hi�tail�
tailappend�skipyes�skipnorrrr=WsJ




















�











�












��r=cCs�|j}|D]d\}}||�|turq|tur||�q|tus#|tur0||d�||d�q|tur:|�|�q|turD|�|�q|turc|t	@rS|t
|�q|t@r^|t|�q||�qt
d|f��|t�dS)Nrrz%internal: unsupported set operator %r)rr,r-�RANGE�RANGE_UNI_IGNORE�CHARSET�extend�
BIGCHARSETrNrrOr rPr8r.)rfrrVrXrarbrrrr3	s,

r3c	Csxg}g}td�}d}|D]�\}}		z�|tur?|r:||	�}
d||
<|r1|
|vr1||
D]}d||<q*|s9||	�r9d}ngd||	<nb|tur�t|	d|	dd�}|r�|rnt||�D]}
d||
<|
|vrl||
D]}d||<qeqWnt||�D]}
d||
<qs|s�tt||��}n|D]}
d||
<q�n|tur�|�||	f�n|�||	f�Wn(ty�t	|�dkr�|dd7}Yq|r�d}|tur�t
}|�||	f�Ynw	qg}d}	|�d|�}|dkr�n%t	|�dkr�d}n|�d|�}|dkr�|�|t	|�f�n|�||f�q�|du�rB|D] \}}||dk�r|�t|f��q	|�t||dff��q	||7}|�s:t	|�t	|�k�r>||fS||fSt	|�dk�r\t|�}|�t
|f�||7}||fSt|�}i}td�}d}t�}tdd	d�D],}
||
|
d�}||v�r�||||
d<�qq|||
d<||<|d7}||7}�qqt|�}|gt|�|dd�<|�t|f�||7}||fS)
N�FTrr�i�ri)�	bytearrayr-ro�range�map�anyr,r�
IndexErrorrrp�find�
_mk_bitmaprq�bytes�_bytes_to_codesrs)rfr^�fixupr`�outrk�charmaprgrarbrcre�rr�runs�qri�data�comps�mapping�block�chunkrrrr0$s�
�

��
�
��
��

r0�rs0111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111cs8|�t�ddd�����fdd�tt��d��D�S)N���cs"g|]
}��|�|�d��qS)rr)rr��	_CODEBITS�_int�srr�
<listcomp>�s�z_mk_bitmap.<locals>.<listcomp>r)�	translate�_BITS_TRANSrwr)�bitsr�r�rr�rr|�s�r|cCst|��d�}|��S)N�I)�
memoryview�cast�tolist)�b�arrrr~�sr~cCsDt|�dkrdS|d\}}|tur|dduot|d�S|tvS)NrFrr�)rrBr9�_UNIT_CODES)rirarbrrrr9�sr9cCs~	dgt|�}tdt|��D]-}||d}||||kr6|dkr(d||<n||d}||||ks|d||<q|S)Nrr)rrw)�prefix�tabler�idxrrr�_generate_overlap_table�s��r�cCs |t@sdS|t@r
tjStjSr)rr r!r"r%)rrrr�_get_iscased�s
r�cCs�g}|j}d}t|�}|jD]Y\}}|tur#|r||�rnO||�q|turf|\}}	}
}t||	|
�}|t@r=|t@r=n0t||�\}
}}|dur\|durRt	|�}n
|dur\t	|�|}|�
|
�|senqn||dfS||dfS)NTF)rr�r�r-rBrrr�_get_literal_prefixrrr)rWrr��prefixappend�prefix_skipr^rarbrhrrri�flags1�prefix1�prefix_skip1�got_allrrrr��s6


�

r�cCsZ	|jsdS|jd\}}|turn|\}}}}t|||�}|t@r(|t@r(dSqt|�}|tur>|r9||�r9dS||fgS|turng}|j}	|dD] }
|
sRdS|
d\}}|turi|rb||�si|	||f�qKdS|S|t	ur�|}|r�|D]0\}}|tur�||�r�dSqx|t
ur�|ddkr�dStt|t
|d|dd���r�dSqx|SdS)NTrri��)r�rBrrrr�r-rLrr/roryrxrw)rWrrarbrhrrr^rf�
charsetappendrirrr�_get_charset_prefixsV�
� �r�c
Csl|��\}}|tkrt}|dkr|�tdd||g�dSg}d}g}|t@r*|t@s9t||�\}}}|s9t||�}|j}	|	t�t	|�}
|	d�d}|rYt
}|durX|rX|tB}n|r_|tB}|	|�|tkrl|	|�n
|	t�|dt�}|	t
|t��|r�|	t	|��|dur�t	|�}|	|�|�|�|�t|��n|r�t|�\}}t|||�t	|�|
||
<dS)Nr�)rD�MAXCODErr�INFOrrr�r�rr�SRE_INFO_PREFIX�SRE_INFO_LITERAL�SRE_INFO_CHARSET�minr�r0r3)
rVrWrrcrjr�r�rfr�rXrd�maskrgrrr�
_compile_info0sR
�

r�cCst|ttf�Sr)�
isinstance�strr})�objrrr�isstringksr�cCs8|jj|B}g}t|||�t||j|�|�t�|Sr)�staterr�r=r�rr>)rirrVrrr�_codens
r�cCsdd�dd�|D��S)N�[%s]�, css&�|]}dtjdd|fVqdS)z%#0*xrN)r!�CODESIZE�r�xrrrr
~s�$z_hex_code.<locals>.<genexpr>)�join�rVrrr�	_hex_code}sr�csNddl�t��d�ttt��d���������fdd���dt���dS)Nrrc	s�dd�����fdd�
}��fdd�}�d7��}||k�r�|��|}|d7}t|}|tttttttfvr=||��n�|tt	t
ttt
ttfvr^�|}|d7}||d|t|�f��nz|tur{�|}|d7}tt|�}|||dd���n]|tur��|}|d7}tt|�}|||d	d���n@|ttttfvr��|}|||||d��|d||�||7}�n|ttfvr�||d
�\}}	|d
7}||d||	t|�t|	�f��n�|tur�||t�||dt���|dt7}�n�|tu�rS�|}|d7}t d
�!�fdd��||dt"j#�D���}
||||
�|dt"j#7}�d7�t$|�D]}|t�||dt���|dt7}�q5�d8��n�|t%t&t't(t)fv�rl�|}|d7}|||��nl|t*u�r��|}|||||d�|d7}�nT|t+u�rƈ|}|||||d�|�r��|d||�||7}|��|}|�r�|d|||d�n|t�|�s�|d7}�n|t,t-t.fv�r��||d�\}}}
|
t/k�r�d}
|||||
||d��|d||�||7}n�|t0u�r�||d
�\}}||||||d�|d
7}n�|t1t2fv�r@�||d
�\}}||||||d��|d
||�||7}n�|t3u�rԈ||d�\}}}}
|
t/k�rXd}
|||t4|�||
||d�|d�|t5@�r��|d|d�\}}|d|�|d����|�}|ddd�!dd�|D��dd�!t6t|����|7�|d���|���|7�|t7@�rψd7�|d���||��d8�||7}nt8|��||ks�d8�dS)N)�tocsX|dur��|�|d|ff7}td����vrdndfd�dd�t|�dS)Nz(to %d)z%*d%s �:�.z  r��end)�add�print)r��args)�labels�level�offset_width�startrr�print_�s

�z!dis.<locals>.dis_.<locals>.print_cs"td�d�d�t|�dS)N� rr�)r�)r�)r�r�rr�print_2�sz"dis.<locals>.dis_.<locals>.print_2rz
%#02x (%r)��	rz%#02x %#02x (%r-%r)rt�c3s �|]}|�tj�j�VqdSr)�to_bytesr!r��	byteorderr�)�sysrrr
�s��z$dis.<locals>.dis_.<locals>.<genexpr>�branch�	MAXREPEATr��z
  prefix_skipz  prefixr�r�css�|]}d|VqdS)z%#02xNrr�rrrr
�s�z(%r)�z	  overlap�in)9�OPCODESr>r.r4r6r@rAr,r-r+�LITERAL_IGNORE�NOT_LITERAL_IGNORE�LITERAL_UNI_IGNORE�NOT_LITERAL_UNI_IGNORE�LITERAL_LOC_IGNORE�NOT_LITERAL_LOC_IGNORE�chrrFr��ATCODESrN�CHCODESr/r2r*r1rorprqr�r�rs�listr�r!r�rwrCrQrSrTrRrMrLr?r;r<r�rU�ASSERT�
ASSERT_NOTr��binr�rxr��
ValueError)r�r�r�r�rra�argrdrcrjr�r	r��maxr�
prefix_lenr�r��rV�dis_r�r�r�r�)r�rr��s�

��"

�
�

�	








�

�szdis.<locals>.dis_)r��setrr�r�rr�r�dis�sr�c	Cs�t|�r
|}t�||�}nd}t||�}|t@rt�t|�|jj}dg|jj	}|�
�D]\}}|||<q.t�|||jj
B||jj	d|t|��S)Nr)r��	sre_parse�parser��SRE_FLAG_DEBUGr�r�r��	groupdict�groups�itemsr!�compilerr)rirrWrV�
groupindex�
indexgrouprerrrrr�s"


�r�)NNN)r),r!r��
sre_constantsr-r+rr?�
MIN_REPEATr:rr>r.rr�r�rr4r/r��
_equivalencesr$rrr=r3r0r�r�r�r��intr|r~r9r�r�r�r�r�r�r�r�r�r�rrrr�<module>sJ

4�
�3


	,;

?>