Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/jinja2/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/jinja2/__pycache__/debug.cpython-311.pyc

�

�܋f.!�
�b�ddlZddlZddlZddlmZddlmZddlmZddl	m
Z
ddl	mZejrddl
mZdd	ejed
efd�Zded
ejededed
ef
d�Zdejeejfd
ejeejffd�Zejdkrd
edejed
efd�ZdSej��dkr=	ddlZd
edejed
efd�ZdS#e$rd
edejed
efd�ZYdSwxYwddlZGd�dej��Z d
edejed
efd�ZdS)�N)�CodeType)�
TracebackType�)�TemplateSyntaxError)�
internal_code)�missing)�Context�source�returnc��tj��\}}}tjt|��}tjt
|��}t
|t��rI|jsBd|_||_	|�
d��t|d|jpd|j
��}n|j}g}|��|jjt"vr|j}�|jj�d��}|�G|�|j��}t|||j|��}|�|��n|�|��|j}|��d}t/|��D]}t1||��}�|�
|��S)axRewrite the current exception to replace any tracebacks from
    within compiled template code with tracebacks that look like they
    came from the template source.

    This must be called within an ``except`` block.

    :param source: For ``TemplateSyntaxError``, the original source if
        known.
    :return: The original exception with the rewritten traceback.
    TNz	<unknown>�__jinja_template__)�sys�exc_info�t�cast�
BaseExceptionr�
isinstancer�
translatedr
�with_traceback�fake_traceback�filename�lineno�tb_next�tb_frame�f_coder�	f_globals�get�get_corresponding_lineno�	tb_lineno�append�reversed�tb_set_next)	r
�_�	exc_value�tb�stack�templater�fake_tbrs	         �]/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/jinja2/debug.py�rewrite_traceback_stackr*s����|�~�~��A�y�"���}�i�0�0�I�	
��
�r�	"�	"�B��)�0�1�1�
�)�:N�
�#�	��!�	��	� � ��&�&�&���t�Y�/�>�;�	�@P�
�
���
�Z���E�
�.��;���.�.���B���;�(�,�,�-A�B�B�����6�6�r�|�D�D�F�$�Y��H�4E�v�N�N�G��L�L��!�!�!�!��L�L�����
�Z��!
�.�$�G��u�o�o�+�+���b�'�*�*����#�#�G�,�,�,�r$r%rrc���|�0t|jj��}|�dd��ni}|||d�}t	d|dz
zdz|d��}d}|�<|jjj}|d	krd
}n"|�d��r
d|d
d���}tj	dkr|�
|���}nct|j|j
|j|j|j|j|j|j|j|j||j|j|j|j��}	t5|||��dS#t6$r!tj��djcYSwxYw)a,Produce a new traceback object that looks like it came from the
    template source instead of the compiled code. The filename, line
    number, and location name will point to the template, and the local
    variables will be the current template context.

    :param exc_value: The original exception to be re-raised to create
        the new traceback.
    :param tb: The original traceback to get the local variables and
        code info from.
    :param filename: The template filename.
    :param lineno: The line number in the template source.
    N�__jinja_exception__)�__name__�__file__r-�
rzraise __jinja_exception__�execr'�rootztop-level template code�block_zblock �)��)�co_name�)�get_template_localsr�f_locals�pop�compilerr7�
startswithr�version_info�replacer�co_argcount�co_kwonlyargcount�
co_nlocals�co_stacksize�co_flags�co_code�	co_consts�co_names�co_varnames�co_filename�co_firstlineno�	co_lnotab�co_freevars�co_cellvarsr1rrr)	r$r%rr�locals�globals�code�location�functions	         r)rrLs���
�~�%�R�[�%9�:�:���
�
�(�$�/�/�/�/�����(���G�����
��9�9�8�V���D��H�	�~��;�%�-���v���0�H�H�
�
 �
 ��
*�
*�	1�0������0�0�H�
��6�!�!��|�|�H�|�-�-�������"��O����M��L��N��M���������N�����
�
��()��T�7�F�#�#�#�#�#���)�)�)��|�~�~�a� �(�(�(�(�)���s� D3�3(E�E�real_localsc�H�|�d��}|�'|������}ni}i}|���D]�\}}|�d��r	|t
ur�$	|�dd��\}}}t|��}n#t$rY�[wxYw|�|d��d}	|	|kr||f||<��|���D]-\}\}}|t
ur|�	|d���(|||<�.|S)zlBased on the runtime locals, get the context that would be
    available at that point in the template.
    �contextN�l_r#r8)���r)
r�get_all�copy�itemsr=r�split�int�
ValueErrorr;)
rS�ctx�data�local_overrides�name�valuer#�	depth_str�depth�	cur_depths
          r)r9r9�s[��
"-����!;�!;�C�
��#&�;�;�=�=�#5�#5�#7�#7�����9;�O�"�(�(�*�*�3�3���e����t�$�$�	���(8�(8��	�!%���C��!3�!3��A�y�$��	�N�N�E�E���	�	�	��H�	����$�'�'��e�4�4�Q�7�	��u���%*�E�N�O�D�!��,�1�1�3�3�����j�q�%��G����H�H�T�4� � � � ��D��J�J��Ks�<)B&�&
B3�2B3)r5�rc��||_|S�N)r�r%rs  r)r"r"�s����
��	r+�PyPyc�:���fd�}tj||���S)Nc�h��|jdkr|jddkr�S|���S)N�__getattribute__rr)�opname�args�delegate)�oprs �r)�
controllerztb_set_next.<locals>.controller�s4����9� 2�2�2�r�w�q�z�Y�7N�7N�"�N��{�{�}�}�$r+)�obj)�tputil�
make_proxy)r%rrrs ` r)r"r"�s4���
%�
%�
%�
%�
%��$�Z�R�8�8�8�8r+c��|Srh�ris  r)r"r"�s	���Ir+c�l�eZdZdeje�����zfdejfgZdS)�_CTraceback�
PyObject_HEADrN)	r.�
__module__�__qualname__�ctypes�c_byte�object�
__sizeof__�	py_object�_fields_rwr+r)ryry�sC�������f�m�f�f�h�h�.A�.A�.C�.C�C�D�
��(�)�	
���r+ryc�z�t�t|����}|j�Pt	j|j��}t	j��|_tj�|��|�:t	j|��}tj�|��||_|Srh)	ry�from_address�idrr}r��	pythonapi�	Py_DecRef�	Py_IncRef)r%r�c_tb�	c_tb_nexts    r)r"r"�s����'�'��2���/�/���:�!��(���4�4�I�!�+�-�-�D�L���&�&�y�1�1�1����(��1�1�I���&�&�y�1�1�1�$�D�L��	r+rh)!�platformr�typingr�typesrr�
exceptionsr�utilsrr�
TYPE_CHECKING�runtimer	�Optional�strrr*r\r�Mapping�Any�Dictr9r>r"�python_implementationrt�ImportErrorr}�	Structureryrwr+r)�<module>r�s�������
�
�
�
�����������������+�+�+�+�+�+� � � � � � ��������?�!� � � � � � �:-�:-�A�J�s�O�:-�}�:-�:-�:-�:-�zG)��G)�"#�*�]�";�G)�GJ�G)�TW�G)��G)�G)�G)�G)�T)�Q�Y�s�A�E�z�%:�)�q�v�c�1�5�j�?Q�)�)�)�)�X��v������$%�J�}�$=��	�������$�X�#�%�%��/�/�9��
�
�
�		9��		9�()�
�=�(A�		9�
�		9�		9�		9�		9�		9�		9������	��	�()�
�=�(A�	�
�	�	�	�	�	�	�	�����2�M�M�M�
�
�
�
�
�f�&�
�
�
����$%�J�}�$=��	������s�C"�"D�?D

Hacked By AnonymousFox1.0, Coded By AnonymousFox