AlkantarClanX12

Your IP : 18.119.122.69


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

o

6��fK��@s�dZddlTdZdZed�Zed�Zed�Zed�Zed	�Z	ee
eh�Zee
eeeeeh�Zeed
�feed�feed�feed
�feed�feed�feed�feed�fd�Zeefeefeefeeefgfeeefgfeeefgfeeefgfeeefgfeeefgfee fd�
Z!e"e#e$e%e&e'e(e)d�Z*e'e#Be)BZ+e,e(BZ-Gdd�de.�Z/Gdd�d�Z0Gdd�d�Z1Gdd�d�Z2dd�Z3dd �Z4d!d"�Z5d#d$�Z6d3d&d'�Z7d(d)�Z8d*d+�Z9d4d-d.�Z:d/d0�Z;d1d2�Z<d,S)5zInternal support module for sre�)�*z.\[{()*+?^$|z*+?{�
0123456789Z01234567Z0123456789abcdefABCDEFZ4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZz 	

����
�
�	��\)z\a�\bz\fz\nz\rz\tz\vz\\)
z\Arz\Bz\dz\Dz\sz\Sz\wz\Wz\Z)�i�L�m�s�x�a�t�uc@seZdZdS)�VerboseN)�__name__�
__module__�__qualname__�rr�0/opt/alt/python310/lib64/python3.10/sre_parse.pyrGsrc@sBeZdZdd�Zedd��Zddd�Zdd	�Zd
d�Zdd
�Z	dS)�StatecCs$d|_i|_dg|_d|_i|_dS)Nr)�flags�	groupdict�groupwidths�lookbehindgroups�grouprefpos��selfrrr�__init__Ls

zState.__init__cC�
t|j�S�N)�lenrr!rrr�groupsRs
zState.groupsNcCsb|j}|j�d�|jtkrtd��|dur/|j�|d�}|dur*td|||f��||j|<|S)Nztoo many groupsz7redefinition of group name %r as group %d; was group %d)r'r�append�	MAXGROUPS�errorr�get)r"�name�gid�ogidrrr�	opengroupUs
�
zState.opengroupcCs|��|j|<dSr%)�getwidthr)r"r-�prrr�
closegroupa�zState.closegroupcCs||jko|j|duSr%)r'r)r"r-rrr�
checkgroupcszState.checkgroupcCs:|jdur|�|�s|�d��||jkr|�d��dSdS)N�cannot refer to an open groupz?cannot refer to group defined in the same lookbehind subpattern)rr4r*)r"r-�sourcerrr�checklookbehindgroupfs




�zState.checklookbehindgroupr%)
rrrr#�propertyr'r/r2r4r7rrrrrJs

rc@s`eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�ZdS)�
SubPatternNcCs"||_|dur	g}||_d|_dSr%)�state�data�width)r"r:r;rrrr#ps

zSubPattern.__init__rcCs|d}ttf}|jD]�\}}t|dt|�dd�|tur5t�|D]\}}t|ddt|�|�q"q	|turYt�t|d�D]\}}|rPt|dd�|�|d�qBq	|t	ur�|\}}	}
td|�|	�|d�|
rt|dd�|
�|d�q	t
||�r�d}|D]&}t
|t�r�|s�t�|�|d�d}q�|s�td	dd�t|dd�d}q�|s�t�q	td|�q	dS)
NTz  �)�end��OR�ELSEF� )�tuple�listr;�print�str�IN�BRANCH�	enumerate�dump�GROUPREF_EXISTS�
isinstancer9)r"�level�nl�seqtypes�op�avrr
�	condgroup�item_yes�item_norrrrJwsR��

�

��zSubPattern.dumpcCr$r%)�reprr;r!rrr�__repr__��
zSubPattern.__repr__cCr$r%)r&r;r!rrr�__len__�rWzSubPattern.__len__cCs|j|=dSr%�r;�r"�indexrrr�__delitem__�szSubPattern.__delitem__cCs&t|t�rt|j|j|�S|j|Sr%)rL�slicer9r:r;rZrrr�__getitem__�s

zSubPattern.__getitem__cCs||j|<dSr%rY�r"r[�coderrr�__setitem__��zSubPattern.__setitem__cCs|j�||�dSr%)r;�insertr_rrrrc�r3zSubPattern.insertcCs|j�|�dSr%)r;r()r"r`rrrr(�szSubPattern.appendc	Cs�|jdur|jSd}}|jD]�\}}|tur=td}d}|dD]}|��\}}t||�}t||�}q!||}||}q|turP|��\}}||}||}q|ture|d��\}}||}||}q|t	vr�|d��\}}|||d}|||d}q|t
vr�|d}|d}q|tur�|jj
|\}}||}||}q|tur�|d��\}}|ddur�|d��\}}t||�}t||�}nd}||}||}q|tur�nqt|td�t|t�f|_|jS)Nrr?����)r<r;rH�	MAXREPEATr0�min�max�CALL�
SUBPATTERN�_REPEATCODES�
_UNITCODES�GROUPREFr:rrK�SUCCESS)	r"�lo�hirPrQr
�j�l�hrrrr0�s\








�zSubPattern.getwidthr%�r)
rrrr#rJrVrXr\r^rarcr(r0rrrrr9ns

(r9c@sbeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Ze	d
d��Z
dd�Zdd�Zddd�Z
dS)�	TokenizercCs@t|t�|_||_|jst|d�}||_d|_d|_|��dS)N�latin1r)rLrF�istext�string�decoded_stringr[�next�_Tokenizer__next)r"rxrrrr#�s
zTokenizer.__init__cCs�|j}z|j|}Wn
tyd|_YdSw|dkr>|d7}z	||j|7}Wnty=td|jt|j�d�d�w|d|_||_dS)Nrr?zbad escape (end of pattern))r[ry�
IndexErrorrzr*rxr&)r"r[�charrrr�__next�s(����

zTokenizer.__nextcCs||jkr|��dSdS)NTF�rzr{)r"r}rrr�match�s
zTokenizer.matchcCs|j}|��|Sr%r)r"�thisrrrr+�sz
Tokenizer.getcCs:d}t|�D]}|j}||vr|S||7}|��q|S�Nr=)�rangerzr{)r"�n�charset�result�_�crrr�getwhiles�
zTokenizer.getwhilecCsnd}	|j}|��|dur!|s|�d|��|�d|t|���||kr2|s/|�d|d��	|S||7}q)Nr=Tzmissing zmissing %s, unterminated namer?)rzr{r*r&)r"�
terminatorr,r�r�rrr�getuntils"
���zTokenizer.getuntilcC�|jt|jpd�Sr��r[r&rzr!rrr�possz
Tokenizer.poscCr�r�r�r!rrr�tellszTokenizer.tellcCs||_|��dSr%)r[r{rZrrr�seek!szTokenizer.seekrcCst||j|��|�Sr%)r*rxr�)r"�msg�offsetrrrr*%szTokenizer.errorNrt)rrrr#r{r�r+r�r�r8r�r�r�r*rrrrru�s		
ruc	Cs�t�|�}|r	|St�|�}|r|dtur|S�z|dd�}|dkrH||�dt�7}t|�dkr<|�d|t|���tt	|dd�d�fWS|dkrs|j
rs||�dt�7}t|�d	krg|�d|t|���tt	|dd�d�fWS|d
kr�|j
r�||�dt�7}t|�dkr�|�d|t|���t	|dd�d�}t|�t|fWS|d
kr�|j
r�ddl}|�
d�s�|�d��|�dd�}z	t|�|��}Wnttfy�|�d|t|�td���wt|fWS|tv�r||�dt�7}t	|dd�d�}|dk�r
|�d|t|���t|fWS|tv�rt�t|�dk�r5|tv�r,|�d|t|���tt|d�fWSWn
t�y@Ynw|�d|t|���)Nrr?rer��incomplete escape %s�r��U��
�N�{�	missing {�}�character name�undefined character name %r�\N{}��.octal escape value %s outside of range 0-0o377�
bad escape %s)�ESCAPESr+�
CATEGORIESrGr��	HEXDIGITSr&r*�LITERAL�intrw�chr�unicodedatar�r��ord�lookup�KeyError�	TypeError�	OCTDIGITS�DIGITS�
ValueError�ASCIILETTERS)r6�escaper`r�r��charnamerrr�
_class_escape(sv





��


��


��r�c	CsNt�|�}|r	|St�|�}|r|S�z|dd�}|dkrB||�dt�7}t|�dkr6|�d|t|���tt|dd�d�fWS|dkrm|j	rm||�dt�7}t|�dkra|�d|t|���tt|dd�d�fWS|d	kr�|j	r�||�d
t�7}t|�dkr�|�d|t|���t|dd�d�}t
|�t|fWS|dkr�|j	r�d
dl}|�d�s�|�d��|�
dd�}z	t|�|��}Wnttfy�|�d|t|�td���wt|fWS|dkr�||�dt�7}tt|dd�d
�fWS|tv�rr|jtv�r?||��7}|dtv�r?|dtv�r?|jtv�r?||��7}t|dd�d
�}|dk�r:|�d|t|���t|fWSt|dd��}||jk�rf|�|��s[|�dt|���|�||�t|fWS|�d|t|�d��t|�dk�r�|tv�r�|�d|t|���tt|d�fWSWn
t�y�Ynw|�d|t|���)Nr?rerr�r�r�rr�r�r�r�r�rr�r�r�r�r�r��0r�r�r5�invalid group reference %dr�)r�r+r�r�r�r&r*r�r�rwr�r�r�r�r�r�r�r�r�r�rzr'r4r7rmr�r�)r6r�r:r`r�r�r��grouprrr�_escapeds�





��


��
�

��r�cCstt�|��Sr%)rD�dict�fromkeys)�itemsrrr�_uniq�rbr�cCsNg}|j}|j}|��}	|t||||d|o|��|d�s"nq
t|�dkr-|dSt|�}	d}	|D]}
|
s<n |	durE|
d}	q6|
d|	krMnq6|D]}
|
d=qP|�|	�q1	g}|D]/}
t|
�dkrkn1|
d\}}
|tur}|�||
f�qa|tur�|
ddtur�|�	|
�qan|�tt
|�f�|S|�td|ff�|S)NTr?�|r)r(r�r��_parser&r9r�rG�NEGATE�extendr�rH)r6r:�verbose�nestedr��itemsappend�sourcematch�start�
subpattern�prefix�item�setrPrQrrr�
_parse_sub�sV
��
�
r�Fc/
Cs�t|�}|j}|j}|j}t}	t}
	|j}|dur�n|dvr!�n�|�|r>|tvr+q|dkr>	|�}|dus;|dkr<nq0q|ddkrPt|||�}||��n�|t	vr^|t
|
|�f��n�|dk�r�|��d}
g}|j}|jdkr�ddl}|j
d	|��t|d
d�|d�}	|�}|dur�|�d
|��|
��|dkr�|r��n|ddkr�t||�}n9|r�|dvr�|j|kr�ddl}|j
d|dkr�dn
|dkr�dn|dkr�dnd|��dft|d
d�t
|
|�f}|d��r�|�}|dur�|�d
|��|
��|dk�r|dtu�r|dd}||�|t
|
d�f�n�|ddk�r*t||�}n|dk�rCddl}|j
d|��dt|d
d�t
|
|�f}|dt
k�sW|dt
k�rkd||f}|�|t|�dt|���|d}|d}||k�r�d||f}|�|t|�dt|���|t||ff�n|dtu�r�|dd}||�q�t|�}|	|�dk�r�|ddt
u�r�|�r�|t|ddf��nS||d��nK|�r�|�dtdf�|t|f��n8|tv�r|��}
|dk�r�d\}}n�|dk�rdt}}n�|dk�rdt}}n�|dk�r�|jd k�r"|t
|
|�f�qdt}}d!}}|jtv�r<||�7}|jtv�s1|d"��rS|jtv�rR||�7}|jtv�sGn|}|d ��sh|t
|
|�f�|�|
�q|�rxt|�}|tk�rxtd#��|�r�t|�}|tk�r�td#��||k�r�|�d$|��|
��ntd%|f��|�r�|d&d�}nd}|�r�|ddtu�r�|�d'|��|
t|���|ddtv�r�|�d(|��|
t|���|ddt u�r�|dd\}}}}|du�r�|�s�|�s�|}|d��rt!|||ff|d&<�nt"|||ff|d&<�n|d)k�r$|t#df��n�|d*k�r�|��d} d}d}!d}d}|d��r�|�}|du�rI|�d+��|d,k�r�|d-��rn|�$d.d/�}!|!�%��sld0|!}|�|t|!�d���n.|d1��r�|�$d2d/�}!|!�%��s�d0|!}|�|t|!�d��|j&�|!�}"|"du�r�d3|!}|�|t|!�d��|�'|"��s�|�d4t|!�d��|�(|"|�|t)|"f�q|�}|du�r�|�d+��|�d5|t|�d��|d6k�r�d}�n�|dk�r	|jdu�r�|�d7|��| ��|�d2k�rn�q�q|d8v�rxd}#|d-k�r<|�}|du�r|�d+��|d9v�r.|�d:|t|�d��d&}#|j*}$|$du�r<|j+|_*t,||||d�}|#dk�rR|$du�rRd|_*|d2��sa|�d;|��| ��|d1k�ro|t-|#|ff�n|t.|#|ff�q|d*k�r@|�$d2d/�}%|%�%��r�|j&�|%�}&|&du�r�d3|%}|�|t|%�d��nXz
t|%�}&|&dk�r�t/�Wnt/�y�d0|%}|�|t|%�d�d�w|&�s�|�d<t|%�d��|&t0k�r�d=|&}|�|t|%�d��|&|j1v�r�|��t|%�d|j1|&<|�(|&|�t2||||d�}'|�d>��r$t2||||d�}(|jd>k�r#|�d?��nd}(|�d2��s6|�d;|��| ��|t3|&|'|(ff�q|t4v�sJ|dk�r�t5|||�})|)du�r�|�r[|�r}ddl}|j
d@|j6ddA�t|j6�dAk�rrdBnd!| ft7|d
d�|j8t9@�r�|�s�t:�q|)\}}d}n|�dC|t|�d��|du�r�z|�;|!�}Wnt�y�}*z|�|*j<t|!�d�d�d}*~*ww|�s�|t9@�o�|t9@}+t,|||+|d�}|�d2��s�|�d;|��| ��|du�r�|�=||�|t ||||ff�n|dk�r
|tt>f�n|dDk�r|tt?f�ntdE|f��qt@t|��ddd&�D]'},||,\}-}.|-t u�rO|.\}}}}|du�rO|�sO|�sO|||,|,d�<�q)|S)FNTz|)�#rrr�[r?z"Possible nested set at position %dr�)�
stacklevel�^zunterminated character set�]z-&~|zPossible set %s at position %d�-�
difference�&�intersection�~zsymmetric difference�unionz&Possible set difference at position %drezbad character range %s-%s�?)rr?r�+r�r�r=�,z"the repetition number is too largez"min repeat greater than max repeatzunsupported quantifier %rrdznothing to repeatzmultiple repeat�.�(zunexpected end of pattern�P�<�>�
group name�bad character in group name %r�=�)�unknown group name %rr5zunknown extension ?P�:zmissing ), unterminated commentz=!<z=!zunknown extension ?<z"missing ), unterminated subpatternzbad group numberr�r�z/conditional backref with more than two branchesz@Flags not at the start of the expression %r%s but at position %d�z (truncated)zunknown extension ?�$z unsupported special character %r)Ar9r(r+r�r&r�rz�
WHITESPACEr��
SPECIAL_CHARSr�r��warnings�warn�
FutureWarningr*r�rG�RANGEr��NOT_LITERALrcr��REPEAT_CHARSrfr�r�r��
OverflowError�AssertionError�ATrkrj�
MIN_REPEAT�
MAX_REPEAT�ANYr��isidentifierrr4r7rmrr'r��ASSERT�
ASSERT_NOTr�r)r r�rK�FLAGS�_parse_flagsrx�DeprecationWarningr�SRE_FLAG_VERBOSErr/r�r2�AT_BEGINNING�AT_ENDr�)/r6r:r�r��firstr��subpatternappend�	sourcegetr��_len�_ordr�r`�herer��	setappendr��negate�code1�that�code2r�rorprgrhr}r�r��	add_flags�	del_flagsr1r�r,r-�dirr�condnamerRrSrTr�err�sub_verboser
rPrQrrrr��s��


�
�
��	

�


��
�; 







�

��





����








�



�



�


��






�




�



�
��
�
�
�
�
���	

�
���
�


���d
�r�cCs�|j}d}d}|dkre	t|}|jr|dkrd}|�|��n|dkr*d}|�|��||O}|t@r?|t@|kr?d}|�|��|�}|durK|�d	��|d
vrPn|tvrd|��rZdnd	}|�|t|���q|dkrr|j|O_dS|t@r||�d
d��|dkr�|�}|dur�|�d��|tvr�|��r�dnd}|�|t|���	t|}|t@r�d}|�|��||O}|�}|dur�|�d��|dkr�n|tvr�|��r�dnd}|�|t|���q�|dks�J�|t@r�|�dd��||@r�|�dd��||fS)Nrr�Trz8bad inline flags: cannot use 'L' flag with a str patternrz:bad inline flags: cannot use 'u' flag with a bytes patternz9bad inline flags: flags 'a', 'u' and 'L' are incompatiblezmissing -, : or )z)-:zunknown flagr�z,bad inline flags: cannot turn on global flagr?zmissing flagz8bad inline flags: cannot turn off flags 'a', 'u' and 'L'z	missing :r�z-bad inline flags: cannot turn off global flagz(bad inline flags: flag turned on and off)	r+r�rwr*�
TYPE_FLAGS�isalphar&r�GLOBAL_FLAGS)r6r:r}rr	r
�flagr�rrrr�dsx
�


�


�r�cCsnt|t�r!|t@r
td��|t@s|tO}|S|t@rtd��|S|t@r)td��|t@r5|t@r5td��|S)Nz)cannot use LOCALE flag with a str patternz(ASCII and UNICODE flags are incompatiblez,cannot use UNICODE flag with a bytes patternz'ASCII and LOCALE flags are incompatible)rLrF�SRE_FLAG_LOCALEr��SRE_FLAG_ASCII�SRE_FLAG_UNICODE)�srcrrrr�	fix_flags�s
��rNcCs�t|�}|durt�}||_||_zt|||t@d�}Wn ty<t�}|tB|_||_|�d�t||dd�}Ynwt||j	j�|j	_|j
durW|j
dksRJ�|�d��|j	jD]}||j	j
krqd|}t|||j	j|��q[|t@rz|��|S)NrTr�zunbalanced parenthesisr�)rurrrFr�r�rr�rr:rzr*r r'�SRE_FLAG_DEBUGrJ)rFrr:r6r1�gr�rrr�parse�s4

�	

�rcs�t|���j}g�g�g��j}�����fdd�}�j}	|�}|dur'�n&|ddk�rH|d}|dkr�d}��d	�sB��d
����dd�}|��r`z||}	Wn>ty_t	d
|��wzt
|�}	|	dkrkt�Wnty���d|t|�d�d�w|	t
kr���d|	t|�d��||	t|�d�n�|dkrÈjtvr�||�7}�jtvr�||�7}|tt
|dd�d�d@��n�|tv�rd}
�jtv�r||�7}|tv�r|dtv�r�jtv�r||�7}d}
t
|dd�d�}|dk�r��d|t|���|t|��|
�s|t
|dd��t|�d�n-z
tt|d�}Wnt�yB|tv�r@��d|t|���Ynw||�n||�q��rX��d����t|t��sedd��D����fS)NcsX|�jkr
��d||���r��d�����dd�=��t��|f���d�dS)Nr�r=)r'r*r(�joinr&)r[r��r'�literal�literalsrr:rr�addgroup�s

z parse_template.<locals>.addgroupTrrr?rr=r�z	missing <r�r�r�r�r�r�r�r�Frer�r�cSs"g|]
}|dur
dn|�d��qS)Nzlatin-1)�encode)�.0rrrr�
<listcomp>'s"z"parse_template.<locals>.<listcomp>)rur+r(�
groupindexr�r*r�r�r�r|r�r�r&r)rzr�r�r�r�r�rrLrF)r6r:�sget�lappendrr#r�r�r,r[�isoctalrrr�parse_template�s�

��

���

�



 



���
��
�;r'cCsp|j}|jdd�}|\}}|dd�}z|D]\}}||�p |||<qWn
ty2td|��w|�|�S)Nrr�)r�rxr|r*r)�templater�r�emptyr'rr[r�rrr�expand_template*s��
r*)F)rN)=�__doc__�
sre_constantsr�r��	frozensetr�r�r�r�r�r�r�rkr�r�rGr�r��CATEGORYrlr�r�r�ZAT_BEGINNING_STRINGZAT_BOUNDARYZAT_NON_BOUNDARYZCATEGORY_DIGITZCATEGORY_NOT_DIGITZCATEGORY_SPACEZCATEGORY_NOT_SPACEZ
CATEGORY_WORDZCATEGORY_NOT_WORDZ
AT_END_STRINGr��SRE_FLAG_IGNORECASEr�SRE_FLAG_MULTILINE�SRE_FLAG_DOTALLr�r�SRE_FLAG_TEMPLATErr�rrr�	Exceptionrrr9rur�r�r�r�r�r�rrr'r*rrrr�<module>st








���
$rH<M
:x<
%U