AlkantarClanX12

Your IP : 3.144.8.68


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/re/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/re/__pycache__/_parser.cpython-311.pyc

�

c��f�����dZddlTdZdZed��Zed��Zed��Zed��Zed	��Z	ee
eeh��Z
eeeeeeeh��Zeed
��feed��feed��feed
��feed��feed��feed��feed��fd�Zeefeefeefeeefgfeeefgfeeefgfeeefgfeeefgfeee fgfee!fd�
Z"e#e$e%e&e'e(e)e*d�Z+e(e$ze*zZ,e-e)zZ.dZ/Gd�d��Z0Gd�d��Z1Gd�d��Z2d�Z3d�Z4d�Z5d�Z6d)d!�Z7d"�Z8d#�Z9d*d&�Z:d'�Z;d(�Z<d%S)+zInternal support module for sre�)�*z.\[{()*+?^$|z*+?{�
0123456789�01234567�0123456789abcdefABCDEF�4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZz 	

����
�
�	��\)z\a�\bz\fz\nz\rz\tz\vz\\)
z\Arz\Bz\dz\Dz\sz\Sz\wz\Wz\Z)�i�L�m�s�x�a�t�ulc�D�eZdZd�Zed���Zdd�Zd�Zd�Zd�Z	dS)	�Statec�N�d|_i|_dg|_d|_i|_dS)N�)�flags�	groupdict�groupwidths�lookbehindgroups�grouprefpos��selfs �1/opt/alt/python311/lib64/python3.11/re/_parser.py�__init__zState.__init__Ms0����
���� �6��� $��������c�*�t|j��S�N)�lenrr"s r$�groupszState.groupsSs���4�#�$�$�$r&Nc��|j}|j�d��|jtkrt	d���|�<|j�|d��}|�t	d|||fz���||j|<|S)Nztoo many groupsz7redefinition of group name %r as group %d; was group %d)r*r�append�	MAXGROUPS�errorr�get)r#�name�gid�ogids    r$�	opengroupzState.opengroupVs����k�������%�%�%��;��"�"��)�*�*�*����>�%�%�d�D�1�1�D����+�.2�C�$�-?�@�A�A�A�#&�D�N�4� ��
r&c�>�|���|j|<dSr()�getwidthr)r#r1�ps   r$�
closegroupzState.closegroupbs�� !�
�
��������r&c�6�||jko|j|duSr()r*r)r#r1s  r$�
checkgroupzState.checkgroupds!���T�[� �F�T�%5�c�%:�$�%F�Fr&c��|j�J|�|��s|�d���||jkr|�d���dSdS)N�cannot refer to an open groupz?cannot refer to group defined in the same lookbehind subpattern)r r9r.)r#r1�sources   r$�checklookbehindgroupzState.checklookbehindgroupgsl��� �,��?�?�3�'�'�
D��l�l�#B�C�C�C��d�+�+�+��l�l�$;�<�<�<�	-�,�,�+r&r()
�__name__�
__module__�__qualname__r%�propertyr*r3r7r9r=�r&r$rrKs�����������%�%��X�%�����-�-�-�G�G�G�<�<�<�<�<r&rc�N�eZdZd
d�Zdd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�ZdS)�
SubPatternNc�8�||_|�g}||_d|_dSr()�state�data�width)r#rFrGs   r$r%zSubPattern.__init__qs%����
��<��D���	���
�
�
r&rc�`�ttf}|jD�]\}}t|dzt	|��zd���|t
ur=t��|D]+\}}t|dzdzt	|��z|���,�p|turYt��t|d��D]4\}}|rt|dzdz��|�|dz���5��|tur_|\}}}	td|��|�|dz��|	r-t|dzdz��|	�|dz����:t|t��r(t��|�|dz����wt||��rd}
|D]h}t|t��r+|
st��|�|dz��d}
�B|
std	d���t|d���d}
�i|
st����td|����dS)
Nz  �)�endr�OR�ELSEFT� )�tuple�listrG�print�str�IN�BRANCH�	enumerate�dump�GROUPREF_EXISTS�
isinstancerD)r#�level�seqtypes�op�avrr�	condgroup�item_yes�item_no�nls           r$rVzSubPattern.dumpxsi���4�=���i�'	�'	�F�B���%��*�s�2�w�w�&�B�/�/�/�/��R�x�x������7�7�E�B���5��7�D�.�3�r�7�7�2�A�6�6�6�6�7��v�������%�b��e�,�,�$�$�D�A�q��1��e�D�j�4�/�0�0�0��F�F�5��7�O�O�O�O�$���&�&�/1�,�	�8�W��b�)�$�$�$��
�
�e�A�g�&�&�&��*��%��*�v�-�.�.�.��L�L��q��)�)�)���B�
�+�+�
���������a�� � � � ��B��)�)�
����
#�
#�A�!�!�Z�0�0�	#�!�$�!�G�G�G����u�Q�w����!���!�/�!�#�2�.�.�.�.��a�R�(�(�(�(�"������G�G�G���b�"�
�
�
�
�O'	�'	r&c�*�t|j��Sr()�reprrGr"s r$�__repr__zSubPattern.__repr__�s���D�I���r&c�*�t|j��Sr()r)rGr"s r$�__len__zSubPattern.__len__�s���4�9�~�~�r&c��|j|=dSr(�rG�r#�indexs  r$�__delitem__zSubPattern.__delitem__�s���I�e���r&c��t|t��r t|j|j|��S|j|Sr()rX�slicerDrFrGrhs  r$�__getitem__zSubPattern.__getitem__�s:���e�U�#�#�	<��d�j�$�)�E�*:�;�;�;��y���r&c��||j|<dSr(rg�r#ri�codes   r$�__setitem__zSubPattern.__setitem__�s����	�%���r&c�<�|j�||��dSr()rG�insertros   r$rszSubPattern.insert�s ���	�����%�%�%�%�%r&c�:�|j�|��dSr()rGr,)r#rps  r$r,zSubPattern.append�s���	��������r&c�n�|j�|jSdx}}|jD�]�\}}|turVt}d}|dD]9}|���\}}t||��}t
||��}�:||z}||z}�e|tur"|���\}}||z}||z}��|tur(|d���\}}||z}||z}��|tvrW|d���\}}|||dzz}|dtkr|r	t}��|||dzz}��!|tvr|dz}|dz}��6|tur!|j
j|\}}||z}||z}��`|turq|d���\}}|d�>|d���\}}t||��}t
||��}nd}||z}||z}���|t urn���t|t��t|t��f|_|jS)Nrr����)rHrGrT�MAXWIDTHr5�min�max�ATOMIC_GROUP�
SUBPATTERN�_REPEATCODES�	MAXREPEAT�
_UNITCODES�GROUPREFrFrrW�SUCCESS)	r#�lo�hir[r\r�j�l�hs	         r$r5zSubPattern.getwidth�s`���:�!��:�����R��i�+	�+	�F�B���V�|�|������Q�%�"�"�B��;�;�=�=�D�A�q��A�q�	�	�A��A�q�	�	�A�A��!�V���!�V����|�#�#��{�{�}�}���1��!�V���!�V����z�!�!��"�v���(�(���1��!�V���!�V����|�#�#��!�u�~�~�'�'���1��!�b��e�)�^���a�5�I�%�%�!�%�!�B�B��a�"�Q�%�i��B�B��z�!�!��!�V���!�V����x����z�-�b�1���1��!�V���!�V�����&�&��!�u�~�~�'�'���1��a�5�$��a�5�>�>�+�+�D�A�q��A�q�	�	�A��A�q�	�	�A�A��A��!�V���!�V����w��������X�&�&��B��(9�(9�9��
��z�r&r(�r)
r>r?r@r%rVrcrerjrmrqrsr,r5rBr&r$rDrDos�����������)�)�)�)�T��������� � � � � � �&�&�&����2�2�2�2�2r&rDc�b�eZdZd�Zd�Zd�Zd�Zd�Zd�Ze	d���Z
d�Zd	�Zdd�Z
d�Zd
S)�	Tokenizerc���t|t��|_||_|jst|d��}||_d|_d|_|���dS)N�latin1r)rXrR�istext�string�decoded_stringri�next�_Tokenizer__next)r#r�s  r$r%zTokenizer.__init__�sZ�� ���-�-�������{�	+����*�*�F�$�����
���	����
�
�
�
�
r&c�2�|j}	|j|}n#t$rd|_YdSwxYw|dkrQ|dz
}	||j|z
}n:#t$r-t	d|jt
|j��dz
��d�wxYw|dz|_||_dS)Nrrzbad escape (end of pattern))rir��
IndexErrorr�r.r�r))r#ri�chars   r$�__nextzTokenizer.__next�s����
��	��&�u�-�D�D���	�	�	��D�I��F�F�	�����4�<�<��Q�J�E�
I���+�E�2�2�����
I�
I�
I��9� �K��T�[�)9�)9�A�)=�?�?�DH�I�
I�����Q�Y��
���	�	�	s�
�,�,�A�7Bc�H�||jkr|���dSdS)NTF�r�r�)r#r�s  r$�matchzTokenizer.matchs&���4�9����K�K�M�M�M��4��ur&c�<�|j}|���|Sr(r�)r#�thiss  r$r/z
Tokenizer.gets���y�����
�
�
��r&c�z�d}t|��D](}|j}||vrn||z
}|����)|S�NrJ)�ranger�r�)r#�n�charset�result�_�cs      r$�getwhilezTokenizer.getwhile	sP�����q���	�	�A��	�A��������a�K�F��K�K�M�M�M�M��
r&c��d}	|j}|���|�@|s|�d|z���|�d|zt|�����||kr|s|�d|zd���n||z
}��|S)NrJTzmissing zmissing %s, unterminated namer)r�r�r.r))r#�
terminatorr0r�r�s     r$�getuntilzTokenizer.getuntils�����	��	�A��K�K�M�M�M��y��8��*�*�Z�$�%6�7�7�7��j�j�!@�:�!M�!$�V���.�.�.��J����;��*�*�Z�$�%6��:�:�:���a�K�F�	��
r&c�>�|jt|jpd��z
Sr��rir)r�r"s r$�posz
Tokenizer.pos"s���z�C��	��R�0�0�0�0r&c�>�|jt|jpd��z
Sr�r�r"s r$�tellzTokenizer.tell%s���z�C��	��R�0�0�0�0r&c�<�||_|���dSr()rir�rhs  r$�seekzTokenizer.seek's����
����
�
�
�
�
r&rc��|js)|�dd���d��}t||j|���|z
��S)N�ascii�backslashreplace)r��encode�decoder.r�r�)r#�msg�offsets   r$r.zTokenizer.error+sP���{�	J��*�*�W�&8�9�9�@�@��I�I�C��S�$�+�t�y�y�{�{�V�';�<�<�<r&c�^�|���s+d|z}|�|t|��|z���|jsd|���sRddl}|�d||���t|��z
|z
fzt|dz���dSdSdS)N�bad character in group name %rrz-bad character in group name %a at position %d���
stacklevel)	�isidentifierr.r)r��isascii�warnings�warnr��DeprecationWarning)r#r0r��nestedr�r�s      r$�checkgroupnamezTokenizer.checkgroupname0s���� � �"�"�	6�2�T�9�C��*�*�S�#�d�)�)�f�"4�5�5�5���	�t�|�|�~�~�	��O�O�O��M�M�?��t�y�y�{�{�S��Y�Y�.��7�8�9�"�v��z�
�
�
�
�
�
�	�	�	�	r&Nr�)r>r?r@r%r�r�r/r�r�rAr�r�r�r.r�rBr&r$r�r��s������������� ���
��������� �1�1��X�1�1�1�1����=�=�=�=�

�
�
�
�
r&r�c��t�|��}|r|St�|��}|r|dtur|S	|dd�}|dkrv||�dt
��z
}t
|��dkr&|�d|zt
|�����tt|dd�d��fS|dkr}|j
rv||�dt
��z
}t
|��d	kr&|�d|zt
|�����tt|dd�d��fS|d
kr�|j
r�||�dt
��z
}t
|��dkr&|�d|zt
|�����t|dd�d��}t|��t|fS|d
kr�|j
r�ddl}|�
d��s|�d���|�dd��}	t|�|����}nL#t"t$f$r8|�d|zt
|��t
d��z��d�wxYwt|fS|t&vrk||�dt&��z
}t|dd�d��}|dkr&|�d|zt
|�����t|fS|t(vrt*�t
|��dkrK|t,vr&|�d|zt
|�����tt|d��fSn#t*$rYnwxYw|�d|zt
|�����)Nrrrwr��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/�
CATEGORIESrSr��	HEXDIGITSr)r.�LITERAL�intr��chr�unicodedatar�r��ord�lookup�KeyError�	TypeError�	OCTDIGITS�DIGITS�
ValueError�ASCIILETTERS)r<�escaperpr�r��charnames      r$�
_class_escaper�<s����;�;�v���D������>�>�&�!�!�D����Q��2�
�
���1
��1�Q�3�K����8�8��f�o�o�a��3�3�3�F��6�{�{�a����l�l�#9�F�#B�C��K�K�P�P�P��C��q�r�r�
�B�/�/�/�/�
�#�X�X�&�-�X��f�o�o�a��3�3�3�F��6�{�{�a����l�l�#9�F�#B�C��K�K�P�P�P��C��q�r�r�
�B�/�/�/�/�
�#�X�X�&�-�X��f�o�o�a��3�3�3�F��6�{�{�b� � ��l�l�#9�F�#B�C��K�K�P�P�P��F�1�2�2�J��#�#�A���F�F�F��A�:��
�#�X�X�&�-�X������<�<��$�$�
0��l�l�;�/�/�/����s�,<�=�=�H�
K���*�*�8�4�4�5�5�����i�(�
K�
K�
K��l�l�#@�8�#K�#&�x�=�=�3�w�<�<�#?�A�A�FJ�K�
K�����A�:��
�)�^�^��f�o�o�a��3�3�3�F��F�1�2�2�J��"�"�A��5�y�y��l�l�$3�5;�$<�=@��[�[�J�J�J��A�:��
�&�[�[����v�;�;�!����L� � ��l�l�?�V�#;�S��[�[�I�I�I��C��q�	�N�N�*�*����
�
�
���
����
�,�,���/��V���
=�
=�=sO�
BN�BN�BN�*AN�<"I�N�A	J(�(N�4A3N�(A-N�
N$�#N$c�	�t�|��}|r|St�|��}|r|S	|dd�}|dkrv||�dt��z
}t|��dkr&|�d|zt|�����tt|dd�d��fS|dkr}|j	rv||�dt��z
}t|��dkr&|�d|zt|�����tt|dd�d��fS|d	kr�|j	r�||�d
t��z
}t|��dkr&|�d|zt|�����t|dd�d��}t|��t|fS|dkr�|j	r�d
dl}|�d��s|�d���|�
dd��}	t|�|����}nL#t t"f$r8|�d|zt|��td��z��d�wxYwt|fS|dkr=||�dt$��z
}tt|dd�d
��fS|t&v�rW|jt&vr�||���z
}|dt$vr�|dt$vrr|jt$vrd||���z
}t|dd�d
��}|dkr&|�d|zt|�����t|fSt|dd���}||jkrW|�|��s#|�dt|�����|�||��t0|fS|�d|zt|��dz
���t|��dkrK|t2vr&|�d|zt|�����tt|d��fSn#t4$rYnwxYw|�d|zt|�����)Nrrwrr�r�r�rr�r�r�r�r�rr�r�r�r�r�r��0r�r�r;�invalid group reference %dr�)r�r/r�r�r�r)r.r�r�r�r�r�r�r�r�r�r�r�r�r�r�r*r9r=r�r�r�)r<r�rFrpr�r�r��groups        r$�_escaper�xs����>�>�&�!�!�D������;�;�v���D�����B
��1�Q�3�K����8�8��f�o�o�a��3�3�3�F��6�{�{�a����l�l�#9�F�#B�C��K�K�P�P�P��C��q�r�r�
�B�/�/�/�/�
�#�X�X�&�-�X��f�o�o�a��3�3�3�F��6�{�{�a����l�l�#9�F�#B�C��K�K�P�P�P��C��q�r�r�
�B�/�/�/�/�
�#�X�X�&�-�X��f�o�o�a��3�3�3�F��6�{�{�b� � ��l�l�#9�F�#B�C��K�K�P�P�P��F�1�2�2�J��#�#�A���F�F�F��A�:��
�#�X�X�&�-�X������<�<��$�$�
0��l�l�;�/�/�/����s�,<�=�=�H�
K���*�*�8�4�4�5�5�����i�(�
K�
K�
K��l�l�#@�8�#K�#&�x�=�=�3�w�<�<�#?�A�A�FJ�K�
K�����A�:��
�#�X�X��f�o�o�a��3�3�3�F��C��q�r�r�
�A�.�.�.�.�
�&�[�[��{�f�$�$��&�*�*�,�,�&���1�I��*�*�v�a�y�I�/E�/E��K�9�,�,��f�j�j�l�l�*�F��F�1�2�2�J��*�*�A��5�y�y�$�l�l�,;�=C�,D�+.�v�;�;�8�8�8�#�A�:�%���q�r�r�
�O�O�E��u�|�#�#��'�'��.�.�4� �,�,�'F�'*�6�{�{�4�4�4��*�*�5�&�9�9�9����&��,�,�;�e�C�S��[�[�ST�_�U�U�U��v�;�;�!����L� � ��l�l�?�V�#;�S��[�[�I�I�I��C��q�	�N�N�*�*����
�
�
���
����
�,�,���/��V���
=�
=�=s\�BR(�BR(�BR(�AR(�-"I�R(�A	J�R(�%AR(�(B>R(�'A8R(� BR(�(
R5�4R5c�P�tt�|����Sr()rP�dict�fromkeys)�itemss r$�_uniqr��s����
�
�e�$�$�%�%�%r&c	�:�g}|j}|j}|���}	|t||||dz|o|����|d��sn|s|jt
z}�At
|��dkr|dSt|��}	d}	|D]}
|
sn8|	�	|
d}	�|
d|	krn� |D]}
|
d=�|�|	���C	g}|D]x}
t
|
��dkrn�|
d\}}
|tur|�||
f���C|tur+|
ddtur|�|
���wn+|�tt|��f��|S|�td|ff��|S)NTr�|r)r,r�r��_parser�SRE_FLAG_VERBOSEr)rDr�rS�NEGATE�extendr�rT)r<rF�verboser�r��itemsappend�sourcematch�start�
subpattern�prefix�item�setr[r\s              r$�
_parse_subr��s��
�E��,�K��,�K��K�K�M�M�E�5���F�6�5�'�6�A�:�%�:�3�e�)�5�5�	6�	6�	6��{�3���	���	5��k�$4�4�G�
5��5�z�z�Q����Q�x���E�"�"�J�����
	�
	�D��
����~��a�����a��F�"�"���#�
�
�
����G�G����f�%�%�%��
�
�C������t�9�9��>�>��E��a����B�
��=�=��J�J��B�x� � � � �
�2�X�X�"�Q�%��(�&�0�0��J�J�r�N�N�N�N��E�	���2�u�S�z�z�*�+�+�+������v��e�}�-�.�.�.��r&Fc���t|��}|j}|j}|j}t}	t
}
	|j}|��n^|dvr�nX|��|r&|tvr�(|dkr	|��}|�|dkrn��D|ddkrt|||��}||���n�|tvr|t|
|��f���n�|dk�r�|���dz
}
g}|j}|jdkr9ddl}|�
d	|���zt|d
z���|d��}	|��}|�+|�d
|���|
z
���|dkr|r�n�|ddkrt!||��}ny|re|dvra|j|krVddl}|�
d|dkrdn|dkrdn	|dkrdnd|���dz
fzt|d
z���t|
|��f}|d���r�|��}|�+|�d
|���|
z
���|dkrE|dt"ur|dd}||��|t|
d��f���nd|ddkrt!||��}nT|dkr<ddl}|�
d|���dz
zt|d
z���t|
|��f}|dtks|dtkr>d|�d|��}|�|t	|��dzt	|��z���|d}|d}||kr>d|�d|��}|�|t	|��dzt	|��z���|t$||ff��n(|dt"ur|dd}||�����t'|��}|	|��dkrJ|ddtur5|r |t(|ddf���n?||d���n,|r|�dt,df��|t"|f���
n�|t.v�r�|���}
|dkrd\}}�n�|dkrdt0}}�n�|dkrdt0}}�ns|dk�rZ|jd kr|t|
|��f�����dt0}}d!x}}|jt2vr||��z
}|jt2v�|d"��r*|jt2vr||��z
}|jt2v�n|}|d ��s2|t|
|��f��|�|
�����|r)t7|��}|t0krt9d#���|rZt7|��}|t0krt9d#���||kr+|�d$|���|
z
���nt;d%|�����|r|d&d�}nd}|r|ddt<ur;|�d'|���|
z
t	|��z���|ddt>vr;|�d(|���|
z
t	|��z���|ddt@ur|dd\}}}}|�|s|s|}|d��rtB|||ff|d&<�n<|d��rtD|||ff|d&<�n tF|||ff|d&<�n|d)kr|tHdf���n�|d*k�r�|���dz
} d}!d+}"d}#d}d}|d���rf|��}|�|�d,���|d-k�rh|d.��r/|�%d/d0��}#|�&|#d|���n|d1��r�|�%d2d0��}#|�&|#d|��|j'�|#��}$|$�+d3|#z}|�|t	|#��dz���|�(|$��s&|�d4t	|#��dz���|�)|$|��|tT|$f�����|��}|�|�d,���|�d5|zt	|��dz���|d6krd+}!�n�|dkrE	|j�+|�d7|���| z
���|��d2krn�B�	��|d8vr�d}%|d.kre|��}|�|�d,���|d9vr)|�d:|zt	|��dz���d&}%|j+}&|&�|j,|_+t[||||dz��}|%dkr	|&�d|_+|d2��s+|�d;|���| z
���|d1kr|t\|%|ff��n|t^|%|ff���
��|d*k�r�|�%d2d0��}'|'�0��r`|�&|'d|��|j'�|'��}(|(�+d3|'z}|�|t	|'��dz����n�	t7|'��}(|(dkrtb�n:#tb$r-d<|'z}|�|t	|'��dz��d�wxYw|(s&|�d=t	|'��dz���|(tdkr+d>|(z}|�|t	|'��dz���|(|j3vr/|���t	|'��z
dz
|j3|(<|'�4��r|'�5��sqddl}|�
d?|j6rto|'��ntq|'��|���t	|'��z
dz
fztr|d
z���|�)|(|��tu||||dz��})|�d@��r6tu||||dz��}*|jd@kr|�dA���nd}*|�d2��s+|�d;|���| z
���|tv|(|)|*ff���
�o|d/krd+}!d}"n�|txvs|dkr[t{|||��}+|+�@|r|r+|�dB|���| z
���|j>t~z}�
��|+\}}d+}!n)|�dC|zt	|��dz���|!rU	|�@|#��}n@#t$r1},|�|,jAt	|#��dz��d�d},~,wwxYwd}|s
|t~zo
|t~z}-t[|||-|dz��}|�d2��s+|�d;|���| z
���|�|�B||��|"r|�J�|t�|f��ne|t@||||ff��nN|dkr|t<t�f��n0|dDkr|t<t�f��nt;dE|�������it�t	|����ddd&�D]-}.||.\}/}0|/t@ur|0\}}}}|�|s|s
|||.|.dz�<�.|S)FNTz|)�#rrr�[rz"Possible nested set at position %dr�r��^zunterminated character set�]z-&~|zPossible set %s at position %d�-�
difference�&�intersection�~zsymmetric difference�unionz&Possible set difference at position %drwzbad character range �?)rrr�+r�r�rJ�,z"the repetition number is too largez"min repeat greater than max repeatzunsupported quantifier rvznothing to repeatzmultiple repeat�.�(Fzunexpected end of pattern�P�<�>�
group name�=�)�unknown group name %rr;zunknown extension ?P�:zmissing ), unterminated commentz=!<z=!zunknown extension ?<z"missing ), unterminated subpatternr�zbad group numberr��-bad character in group name %s at position %dr�z/conditional backref with more than two branchesz/global flags not at the start of the expressionzunknown extension ?�$zunsupported special character )GrDr,r/r�r)r�r��
WHITESPACEr��
SPECIAL_CHARSr�r�r�r��
FutureWarningr.r�rS�RANGEr��NOT_LITERALrsr��REPEAT_CHARSr~r�r�r��
OverflowError�AssertionError�ATr}r|�
MIN_REPEAT�POSSESSIVE_REPEAT�
MAX_REPEAT�ANYr�r�rr9r=r�r r*r��ASSERT�
ASSERT_NOTr�r�r-r!�	isdecimalr�r�rbr�r�r�rW�FLAGS�_parse_flagsrr�r3r�r7r{�AT_BEGINNING�AT_ENDr�)1r<rFr�r��firstr��subpatternappend�	sourcegetr��_len�_ordr�rp�herer��	setappendr��negate�code1�that�code2r�r�r�ryrzr�r�r��	add_flags�	del_flagsr6r��capture�atomicr0r1�dirr �condnamer]r^r_r�err�sub_verboserr[r\s1                                                 r$r�r�s����E�"�"�J�"�(���
�I��,�K��D��D�lO��{���<���4�<�<���	�����		��z�!�!���s�{�{��$�9�;�;�D��|�t�t�|�|������7�d�?�?��6�4��/�/�D���T�"�"�"�"�
��
&�
&���g�t�t�D�z�z�2�3�3�3�3�
�S�[�[��;�;�=�=�1�$�D��C��
�I��{�c�!�!������
�
�8�6�;�;�=�=�H�!�f�q�j�����!�[��%�%�F�9
%� �y�{�{���<� �,�,�'C�'-�{�{�}�}�t�';�=�=�=��3�;�;�3�;���!�W��_�_�)�&�$�7�7�E�E��
�t�v�~�~�&�+��2E�2E�'���� �
�
�<�04������26�#�+�+���:>�#�+�+� 6� 6� '� &���
�
�� 1�@3�3�*�f�q�j�&����$�T�T�$�Z�Z�/�E��;�s�#�#�#%�$�9�;�;�D��|�$�l�l�+G�+1�;�;�=�=�4�+?�A�A�A��s�{�{� ��8�r�>�>�$)�!�H�Q�K�E�!�	�%�(�(�(�!�	�7�D�D��I�I�"6�7�7�7���A�w�$��� -�f�d� ;� ;����3�;�;�+�O�O�O�$�M�M� H�$*�K�K�M�M�A�$5�!7� -�&�1�*�*����
!(���d��� 3���Q�x�7�*�*�e�A�h�'�.A�.A��=A�T�T�4�4�H��$�l�l�3��D�	�	�A�
��D�	�	�0I�J�J�J��q��B��q��B��B�w�w�w�=A�T�T�4�4�H��$�l�l�3��D�	�	�A�
��D�	�	�0I�J�J�J��I�u�r�2�h�/�0�0�0�0��Q�x�2�~�~� %�a������I�e�$�$�$�s9
%�v��*�*�C��t�C�y�y�A�~�~�#�a�&��)�w�"6�"6��-�$�$�k�3�q�6�!�9�%=�>�>�>�>�$�$�S��V�,�,�,�,��2��J�J�q�6�4�.�1�1�1�!� �"�c��+�+�+�+�
�\�
!�
!��;�;�=�=�D��s�{�{����S�S������i�S��������i�S��������;�#�%�%�$�$�g�t�t�D�z�z�%:�;�;�;���i�S�����R��k�V�+�+��)�)�+�+�%�B��k�V�+�+��;�s�#�#�� �+��/�/��i�i�k�k�)��!�+��/�/���B�"�{�3�'�'��$�$�g�t�t�D�z�z�%:�;�;�;��K�K��%�%�%���R��b�'�'�C��i�'�'�+�,P�Q�Q�Q��A��b�'�'�C��i�'�'�+�,P�Q�Q�Q��S�y�y�$�l�l�+O�+1�;�;�=�=�4�+?�A�A�A��%�n�D�D�%J�K�K�K��
�!�"�#�#�������
E�4��7�1�:��+�+��l�l�#6�#)�;�;�=�=�4�#7�#�d�)�)�#C�E�E�E��A�w�q�z�\�)�)��l�l�#4�#)�;�;�=�=�4�#7�#�d�)�)�#C�E�E�E��A�w�q�z�Z�'�'�15�a����.��y�)�Q��=��=�9�=��D��{�3���
@�",�s�C��.>�!?�
�2�����S�!�!�
@�"3�c�3��5E�!F�
�2���#-�s�C��.>�!?�
�2���
�S�[�[���c�4�[�)�)�)�)�
�S�[�[��K�K�M�M�A�%�E��G��F��D��I��I��{�3���L
6� �y�{�{���<� �,�,�'B�C�C�C��3�;�;�"�{�3�'�'�:�%���s�L�A�A���-�-�d�A�v�>�>�>�>�$��S�)�)�:�%���s�L�A�A���-�-�d�A�v�>�>�>�#�o�1�1�$�7�7���;�"9�D�"@�C�"(�,�,�s�C��I�I��M�"B�"B�B�$�/�/��4�4�>�"(�,�,�/N�/2�4�y�y�1�}�#>�#>�>��2�2�3��?�?�?�(�(�(�C��9�9�9� � )�y�{�{���<�"(�,�,�/J�"K�"K�K�$�l�l�+A�D�+H�+.�t�9�9�q�=�:�:�:��S�[�[�#�G�G��S�[�[�"�!�;�.�"(�,�,�/P�/5�{�{�}�}�u�/D�#F�#F�F�$�9�;�;�#�-�-�!�"���U�]�]��C��s�{�{�(�y�{�{���<�"(�,�,�/J�"K�"K�K��t�+�+�"(�,�,�/E��/L�/2�4�y�y�1�}�#>�#>�>� ��+0�+A�(�+�3�5:�\�E�2�"�6�5�'�6�A�:�F�F�A��Q�w�w�+�3�59�E�2�&�;�s�+�+�B�$�l�l�+O�+1�;�;�=�=�5�+@�B�B�B��s�{�{�(�(�&�3��(�);�<�<�<�<�(�(�*�s�A�h�)?�@�@�@���S�[�[�%���s�L�A�A�H��,�,�.�.���-�-�h��6�B�B�B�$)�O�$7�$7��$A�$A�	�$�,�"9�H�"D�C�"(�,�,�s�C��M�M�A�4E�"F�"F�F�-�Q�(+�H�
�
�I�(�1�}�}�&0� 0� -��)�Q�Q�Q�"B�X�"M�C�"(�,�,�s�C��M�M�A�4E�"F�"F�D�P�Q���� )�B�"(�,�,�/A�/2�8�}�}�q�/@�#B�#B�B�$�	�1�1�">��"J�C�"(�,�,�s�C��M�M�A�4E�"F�"F�F�$�E�,=�=�=� &���
�
��H�
�
� =�� A�"�-�i�8�!)� 2� 2� 4� 4���9I�9I�9K�9K��+�O�O�O�$�M�M� O�39�=�!U��h����e�H�o�o�!'������X���!>��!B�!D�!D�!3�v��z�	*�����.�.�y�&�A�A�A�%�f�e�W�f�q�j�I�I�H��|�|�C�(�(�'�"(�����!��"L�"L��!�;�#�-�-�"(�,�,�/`�"a�"a�a�.�#'��!�<�<��,�,�B�$�l�l�+O�+1�;�;�=�=�5�+@�B�B�B�$�$�o�	�8�W�7U�%V�W�W�W���S�[�[�#�G�!�F�F��U�]�]�d�c�k�k�(����=�=�E��}�$�F�
�F�"(�,�,�0C�/5�{�{�}�}�u�/D�#F�#F�F�#(�+�0@�"@�� �+0�(�I�y�#�G�G� �,�,�'<�t�'C�'*�4�y�y�1�}�6�6�6��
�I�!�O�O�D�1�1�E�E���I�I�I� �,�,�s�w��D�	�	�A�
�>�>�D�H�����I������#�E�	�4D�(D�>� )�,<� <�=�
��6�5�+�v��z�B�B�A��<�<��$�$�
:��l�l�#G�#)�;�;�=�=�5�#8�:�:�:�� �� � ���*�*�*��
Q��}�}�}� � �,��!2�3�3�3�3� � �*�u�i��A�.N�!O�P�P�P�P�
�S�[�[���b�,�/�0�0�0�0�
�S�[�[���b�&�\�*�*�*�*�!�.�t�t�!M�N�N�N�YlO�^�3�z�?�?�
#�
#�D�D�b�D�
)�'�'���A����B�
����-/�*�E�9�i���}�Y�}�y�}�%&�
�1�a��c�6�"���s$�
m*�*7n!�y�
z�#,z�zc��|j}d}d}|dkr�	t|}|jr|dkrd}|�|���n|dkrd}|�|���||z}|tzr%|tz|krd}|�|���|��}|�|�d	���|d
vrnE|tvr;|���rdnd	}|�|t
|�������|dkr|xj|zc_dS|tzr|�d
d���|dk�r|��}|�|�d���|tvr;|���rdnd}|�|t
|�����	t|}|tzrd}|�|���||z}|��}|�|�d���|dkrnE|tvr;|���rdnd}|�|t
|�������|dksJ�|tzr|�dd���||zr|�dd���||fS)NrrTrz8bad 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 flagrz,bad inline flags: cannot turn on global flagrzmissing flagz8bad inline flags: cannot turn off flags 'a', 'u' and 'L'z	missing :rz-bad inline flags: cannot turn off global flagz(bad inline flags: flag turned on and off)	r/r'r�r.�
TYPE_FLAGS�isalphar)r�GLOBAL_FLAGS)r<rFr�r-r6r7�flagr�s        r$r(r(�s����
�I��I��I��s�{�{�	3���;�D��}�
,��3�;�;�T�C� �,�,�s�+�+�+���3�;�;�V�C� �,�,�s�+�+�+����I��z�!�
(�	�J�(>�4�'G�'G�Q���l�l�3�'�'�'��9�;�;�D��|��l�l�#6�7�7�7��u�}�}���5� � �(,�����O�n�n�<O���l�l�3��D�	�	�2�2�2�+	3�,�s�{�{�
���y� ����t��<��N��l�l�I�1�M�M�M��s�{�{��y�{�{���<��,�,�~�.�.�.��u���$(�L�L�N�N�F�.�.��C��,�,�s�C��I�I�.�.�.�
	3���;�D��j� �
(�P���l�l�3�'�'�'����I��9�;�;�D��|��l�l�;�/�/�/��s�{�{���5� � �(,�����G�n�n�K���l�l�3��D�	�	�2�2�2�
	3��3�;�;�;�;��<��O��l�l�J�A�N�N�N��9��J��l�l�E�q�I�I�I��i��r&c�8�t|t��rH|tzrtd���|tzs|t
z}nV|t
zrtd���n<|t
zrtd���|tzr|tzrtd���|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)rXrR�SRE_FLAG_LOCALEr��SRE_FLAG_ASCII�SRE_FLAG_UNICODE)�srcrs  r$�	fix_flagsrH�s����#�s���H��?�"�	J��H�I�I�I��~�%�	I��%�%�E�E�
�%�
%�	I��G�H�H�H�	I��#�#�	M��K�L�L�L��?�"�	H�u�~�'=�	H��F�G�G�G��Lr&rNc���t|��}|�t��}||_||_t	|||t
zd��}t
||jj��|j_|j�"|jdksJ�|�	d���|jj
D]8}||jjkr&d|z}t|||jj
|����9|tzr|�
��|S)Nrrzunbalanced parenthesisr�)r�rrrRr�r�rHrFr�r.r!r*�SRE_FLAG_DEBUGrV)rRrrFr<r6�gr�s       r$�parserL�s����s�^�^�F��}������E�K��E�I��6�5�%�*:�":�A�>�>�A��c�1�7�=�1�1�A�G�M�
�{���{�c�!�!�!�!��l�l�3�4�4�4�
�W�
 �:�:��������.��2�C���S�!�'�"5�a�"8�9�9�9��
�~���	�������Hr&c	����
���t|����j}g�g�g�
�
j}��
���fd�}�j}	|��}|��n�|ddk�r�|d}|dk�rՉ�d��s��d�����d	d
��}|���rC��|dd��	||}	�nA#t$rtd|z��d�wxYw	t|��}	|	dkrt�n8#t$r+��d
|zt|��dz��d�wxYw|	tkr)��d|	zt|��dz���|���r|���snddl}
|
�d�jrt)|��nt+|������t|��z
dz
fzt.d���||	t|��dz���n�|dkri�jt2vr(||��z
}�jt2vr
||��z
}|t5t|dd�d��dz�����nd|t6vr�d}�jt6vr�||��z
}|t2vr�|dt2vry�jt2vrk||��z
}d}t|dd�d��}|dkr&��d|zt|�����|t5|����|s1|t|dd���t|��dz
��ny	t5t8|d��}n@#t$r3|t:vr'��d|zt|����d�YnwxYw||��n||����ԉ
r(��d��
����t?|t@��sd��D�����fS)Nc� ��|�jkr��d|z|����r-��d�������dd�=��t	���|f����d��dS)Nr�rJ)r*r.r,�joinr))rir�r*�literal�literalsrrFs  �����r$�addgroupz parse_template.<locals>.addgroup�s�����5�<����'�'�6��>��D�D�D��	��O�O�B�G�G�G�,�,�-�-�-�����
��
�
�s�8�}�}�e�,�-�-�-���������r&TrrrrKrz	missing <rrrvrr�r�r�r�r�r�r�Frwr�r�rJc�@�g|]}|�dn|�d����S)Nzlatin-1)r�)�.0rs  r$�
<listcomp>z"parse_template.<locals>.<listcomp>Hs,��Q�Q�Q�1�A�I�D�D�1�8�8�I�+>�+>�Q�Q�Qr&)!r�r/r,�
groupindexr�r.r�r�r�r�r�r�r�r)r-r&r�r�r�r�rbr�r�r�r�r�r�r�r�r�rOrXrR)r<rF�sget�lappendrRrWr�r�r0rir��isoctalr*rPrQrs `          @@@@r$�parse_templater[�s��������	�&���A��5�D�
�F��H��G��n�G�����������!�J�B��t�v�v���<����7�d�?�?��Q��A��C�x�x��w�w�s�|�|�/��'�'�+�.�.�.��z�z�#�|�4�4���$�$�&�&���$�$�T�1�b�1�1�1�S� *�4� 0����#�S�S�S�(�)@�4�)G�H�H�d�R�S����?� #�D�	�	�� �1�9�9�",�,�%��%�?�?�?��g�g�&F��&M�&)�$�i�i�!�m�5�5�:>�?�?�����	�)�)��g�g�&B�U�&J�&)�$�i�i�!�m�5�5�5� �N�N�,�,��������'���� �
�
�K�+,�8�D�T�$�Z�Z�Z��t����V�V�X�X��D�	�	�1�A�5�7�7�/�1�	&��������D�	�	�A�
�.�.�.�.��c����6�Y�&�&��D�D�F�F�N�D��v��*�*�����������C��Q�R�R��!�,�,�t�3�4�4�5�5�5�5��f������6�V�#�#��D�D�F�F�N�D��Y���4��7�i�+?�+?���)�+�+��������"&����Q�R�R��!�,�,���u�9�9�"#�'�'�+:�<@�+A�BE�d�)�)�#M�#M�M����A�������;��H�S��a�b�b��]�]�C��I�I��M�:�:�:��S��w�t�}�Q�/�0�0�D�D���S�S�S��L�(�(��g�g�o��&<�c�$�i�i�H�H�d�R�)�(�S�������
�
�
�
��G�D�M�M�M�EB�F�*��������(�(�)�)�)��f�c�"�"�R�R�Q��Q�Q�Q���8��s*�C�C8�<D�5E� N5�5:O2�1O2c���|j}|jdd�}|\}}|dd�}	|D]\}}||��p|||<�n!#t$rtd|z��d�wxYw|�|��S)Nrr�)r�r�r�r.rO)�templater�rK�emptyr*rQrir�s        r$�expand_templater_Ks���
��A��L��!���E���F�H�����{�H�D�"�	0�	0�L�E�5��a��h�h�/�%�H�U�O�O�	0���D�D�D��0�5�8�9�9�t�C�D�����:�:�h���s�A�A)F)rN)=�__doc__�
_constantsrr�	frozensetr�r�r�r�rr r"r!r}r#rrSr�r�CATEGORYrr�r�r�AT_BEGINNING_STRING�AT_BOUNDARY�AT_NON_BOUNDARY�CATEGORY_DIGIT�CATEGORY_NOT_DIGIT�CATEGORY_SPACE�CATEGORY_NOT_SPACE�
CATEGORY_WORD�CATEGORY_NOT_WORD�
AT_END_STRINGr��SRE_FLAG_IGNORECASErD�SRE_FLAG_MULTILINE�SRE_FLAG_DOTALLr�rE�SRE_FLAG_TEMPLATErFr'r?rJrArxrrDr�r�r�r�r�r�r(rHrLr[r_rBr&r$�<module>rrsT��&�%������
���	��<�	 �	 ���I�j�!�!�	��I�.�/�/�	��y�O�P�P��
�Y�}�
%�
%�
��y�*�j�2C�D�E�E��
�Y��U�B���h�G�
H�
H�
�
�S�S��Y�Y���S�S��Y�Y���S�S��Y�Y���S�S��Y�Y���S�S��Y�Y���S�S��Y�Y���S�S��Y�Y���S�S��Y�Y��	�	��
�#�$������ ��(�N�+�,�-��(�.�/�0�1��(�N�+�,�-��(�.�/�0�1��(�M�*�+�,��(�-�.�/�0��
����
�
�	�	�	�	�	�	�	�	�	���o�
-�0@�
@�
�� 1�1����"<�"<�"<�"<�"<�"<�"<�"<�Hu�u�u�u�u�u�u�u�nT�T�T�T�T�T�T�T�l:>�:>�:>�xK>�K>�K>�Z&�&�&�:�:�:�xA�A�A�A�F: �: �: �x��� 
�
�
�
�6[�[�[�z
 �
 �
 �
 �
 r&