Sindbad~EG File Manager
�
�Zg�
��R�dZdaddlZddlZddlZddlZddlZejdkZer ddl Z
ddlZnddlZ
erddgZ
ndgZ
ed�e
D����sJ�e
dZee
��Zd�e
��Z
d�e
D��Zd Zd
ZeezZd�Ze��Zd�Zd
�Zd�Zerd�Znd�Zd�Zd�Zd�Zd�Z d�Z!erd�Z"nd�Z"dOd�Z#e$e#j%��Z&d�'dd��dzZ(e)�*e(d��Z+dZ,dZ-d gZ.ere.�/d!��ej0��Z1d"gZ2e2xZ3Z4dPdd#�d$�Z5d%�Z6d&�Z7d'�Z8d(�Z9d)�Z:d*�Z;d+�Z<d,�Z=d-�Z>dQd.�Z?dRd/�Z@dSd1�ZAd2�ZBeC��ZDdPdeDd3�d4�ZEGd5�d6��ZFGd7�d8��ZGGd9�d:eG��ZHGd;�d<��ZIGd=�d>eIeH��ZJGd?�d@eIeG��ZKGdA�dBeIeG��ZLGdC�dD��ZMGdE�dF��ZNeNZOGdG�dH��ZPGdI�dJ��ZQdPdK�ZRdL�ZSdM�ZTdN�ZUdS)Ta^Core implementation of path-based import.
This module is NOT meant to be directly imported! It has been designed such
that it can be bootstrapped into Python as the implementation of import. As
such it requires the injection of specific modules and attributes in order to
work. One should use importlib as the public-facing version of this module.
N��win32�\�/c#�<K�|]}t|��dkV��dS)�N)�len)�.0�seps �6/usr/lib64/python3.11/importlib/_bootstrap_external.py� <genexpr>r.s,����
4�
4�S�3�s�8�8�q�=�
4�
4�
4�
4�
4�
4��c��h|]}d|����S)�:�)r �ss r� <setcomp>r2s��9�9�9�A��A���9�9�9r
)�win)�cygwin�darwinc���tj�t��r/tj�t��rd�nd��fd�}nd�}|S)N�PYTHONCASEOKsPYTHONCASEOKc�D��tjjo
�tjvS)z^True if filenames must be checked case-insensitively and ignore environment flags are not set.)�sys�flags�ignore_environment�_os�environ��keys�r�_relax_casez%_make_relax_case.<locals>._relax_caseCs����y�3�3�J��s�{�8J�Jr
c��dS)z5True if filenames must be checked case-insensitively.Frrr
rr!z%_make_relax_case.<locals>._relax_caseGs���5r
)r�platform�
startswith�_CASE_INSENSITIVE_PLATFORMS�#_CASE_INSENSITIVE_PLATFORMS_STR_KEY)r!r s @r�_make_relax_caser'<s|���
�|���:�;�;���<�"�"�#F�G�G� "� �C�C�!�C� K� K� K� K� K� K� � � ��r
c�N�t|��dz�dd��S)z*Convert a 32-bit integer to little-endian.�����little)�int�to_bytes)�xs r�_pack_uint32r/Os#����F�F�Z��)�)�!�X�6�6�6r
c�b�t|��dksJ�t�|d��S)z/Convert 4 bytes in little-endian to an integer.r*r+�rr,�
from_bytes��datas r�_unpack_uint32r5T�)���t�9�9��>�>�>�>��>�>�$��)�)�)r
c�b�t|��dksJ�t�|d��S)z/Convert 2 bytes in little-endian to an integer.�r+r1r3s r�_unpack_uint16r9Yr6r
c���|sdSt|��dkr|dSd}g}ttj|��D]�\}}|�t
��s|�t
��r(|�t��p|}t|zg}�a|�d��rF|�
��|�
��kr|}|g}��|�|����|p|}|�|����d�|D��}t|��dkr|ds
|tzS|t�|��zS)�Replacement for os.path.join().rrrrc�F�g|]}|�|�t����Sr��rstrip�path_separators)r �ps r�
<listcomp>z_path_join.<locals>.<listcomp>ws)��=�=�=�a�1�=�����)�)�=�=�=r
)
r�mapr�_path_splitrootr$�path_sep_tuple�endswithr>r?�path_sep�casefold�append�join)�
path_parts�root�path�new_root�tails r�
_path_joinrO`sg��� ��2��z�?�?�a����a�=� �����!�#�"5�z�B�B� "� "�N�H�d��"�"�>�2�2�
"�h�6G�6G��6W�6W�
"�����7�7�?�4�� �4��(����"�"�3�'�'�
"��=�=�?�?�h�&7�&7�&9�&9�9�9�$�D� �6�D�D��K�K��%�%�%�%��'�4�����D�!�!�!�!�=�=�4�=�=�=���t�9�9��>�>�$�q�'�>��(�?�"��h�m�m�D�)�)�)�)r
c�J�t�d�|D����S)r;c�F�g|]}|�|�t����Srr=)r �parts rrAz_path_join.<locals>.<listcomp>�s8��>�>�>�"&��>�d�k�k�/�:�:�>�>�>r
)rFrI)rJs rrOrO~s4���}�}�>�>�*4�>�>�>�?�?� ?r
c���t�fd�tD����}|dkrd�fS�d|��|dzd�fS)z Replacement for os.path.split().c3�B�K�|]}��|��V��dS�N)�rfind)r r@rLs �rrz_path_split.<locals>.<genexpr>�s-�����3�3�a�D�J�J�q�M�M�3�3�3�3�3�3r
rrNr)�maxr?)rL�is` r�_path_splitrY�sV����3�3�3�3�?�3�3�3�3�3�A��1�u�u��4�x������8�T�!�a�%�&�&�\�!�!r
c�*�tj|��S)z~Stat the path.
Made a separate function to make it easier to override in experiments
(e.g. cache stat results).
)r�stat�rLs r�
_path_statr]�s���8�D�>�>�r
c�b� t|��}n#t$rYdSwxYw|jdz|kS)z1Test whether the path is the specified mode type.Fi�)r]�OSError�st_mode)rL�mode� stat_infos r�_path_is_mode_typerc�sK����t�$�$� � �������u�u��������(�T�1�1s��
� c�"�t|d��S)zReplacement for os.path.isfile.i�)rcr\s r�_path_isfilere�s���d�H�-�-�-r
c�L�|stj��}t|d��S)zReplacement for os.path.isdir.i@)r�getcwdrcr\s r�_path_isdirrh�s%�����z�|�|���d�H�-�-�-r
c���|sdStj|��d�dd��}t|��dko)|�d��p|�d��S)�Replacement for os.path.isabs.Frrrrz\\)rrC�replacerr$rE)rLrKs r�_path_isabsrl�sf��� ��5��"�4�(�(��+�3�3�C��>�>���4�y�y�1�}�Q�$�/�/�&�"9�"9�"P�T�]�]�4�=P�=P�Qr
c�6�|�t��S)rj)r$r?r\s rrlrl�s������/�/�/r
�c���d�|t|����}tj|tjtjztjz|dz��} tj|d��5}|� |��ddd��n#1swxYwYtj
||��dS#t$r( tj|��n#t$rYnwxYw�wxYw)z�Best-effort function to write data to a path atomically.
Be prepared to handle a FileExistsError if concurrent writing of the
temporary file is attempted.�{}.{}rn�wbN)
�format�idr�open�O_EXCL�O_CREAT�O_WRONLY�_io�FileIO�writerkr_�unlink)rLr4ra�path_tmp�fd�files r�
_write_atomicr�s6��
�~�~�d�B�t�H�H�-�-�H� ��(��*�s�{�*�S�\�9�4�%�<�
I�
I�B���Z��D�
!�
!� �T��J�J�t���� � � � � � � � � � � ���� � � � ���H�d�#�#�#�#�#������ ��J�x� � � � ��� � � ��D� ����
����sT�"B;�7B�
B;�B�B;� B�!B;�;
C-�C�C-�
C(�%C-�'C(�(C-i�
r8r+s
�__pycache__zopt-z.pyz.pywz.pyc)�optimizationc��|�3tjdt��|�d}t|���|rdnd}t j|��}t
|��\}}|�d��\}}}tj j
} | �td���d�|r|n||| g��}
|�)tj
jdkrd}ntj
j}t|��}|dkrR|���s"t#d �|�����d
�|
t&|��}
|
t(dz}tj��t-|��s!t/t j��|��}|ddkr|dt2vr
|dd�}t/tj|�t2��|��St/|t6|��S)
a�Given the path to a .py file, return the path to its .pyc file.
The .py file does not need to exist; this simply returns the path to the
.pyc file calculated as if the .py file were imported.
The 'optimization' parameter controls the presumed optimization level of
the bytecode file. If 'optimization' is not None, the string representation
of the argument is taken and verified to be alphanumeric (else ValueError
is raised).
The debug_override parameter is deprecated. If debug_override is not None,
a True value is the same as setting 'optimization' to the empty string
while a False value is equivalent to setting 'optimization' to '1'.
If sys.implementation.cache_tag is None then NotImplementedError is raised.
NzFthe debug_override parameter is deprecated; use 'optimization' insteadz2debug_override or optimization must be set to Nonerr�.�$sys.implementation.cache_tag is Nonerz{!r} is not alphanumericz{}.{}{}rr8)� _warnings�warn�DeprecationWarning� TypeErrorr�fspathrY�
rpartitionr�implementation� cache_tag�NotImplementedErrorrIr�optimize�str�isalnum�
ValueErrorrr�_OPT�BYTECODE_SUFFIXES�pycache_prefixrlrOrgr?�lstrip�_PYCACHE)rL�debug_overrider��message�headrN�baser
�rest�tag�almost_filename�filenames r�cache_from_sourcer��s���$�!���0�1C� E� E� E��#�J�G��G�$�$�$�+�2�r�r����:�d���D��T�"�"�J�D�$��o�o�c�*�*�O�D�#�t�
�
�
&�C�
�{�!�"H�I�I�I��g�g�� 6���$��c�B�C�C�O����9���"�"��L�L��9�-�L��|�$�$�L��r����#�#�%�%� N��7�>�>�|�L�L�M�M�M�#�*�*�?�D�,�O�O���!2�1�!5�5�H�
��%��4� � � 2��c�j�l�l�D�1�1�D�
��7�c�>�>�d�1�g�_�<�<�����8�D�����K�K��(�(��
�
�
�
�d�H�h�/�/�/r
c���tjj�td���t j|��}t
|��\}}d}tj�Ztj�t��}|�
|tz��r|t|��d�}d}|s6t
|��\}}|tkrtt�d|�����|�d��}|dvrtd|�����|d kr�|�dd
��d}|�
t"��stdt"�����|tt"��d�}|���std
|�d����|�d��d} t)|| t*dz��S)anGiven the path to a .pyc. file, return the path to its .py file.
The .pyc file does not need to exist; this simply returns the path to
the .py file calculated to correspond to the .pyc file. If path does
not conform to PEP 3147/488 format, ValueError will be raised. If
sys.implementation.cache_tag is None then NotImplementedError is raised.
Nr�FTz not bottom-level directory in r�>r8�zexpected only 2 or 3 dots in r�r8���z5optimization portion of filename does not start with zoptimization level z is not an alphanumeric valuer)rr�r�r�rr�rYr�r>r?r$rFrr�r��count�rsplitr�r�� partitionrO�SOURCE_SUFFIXES)
rLr��pycache_filename�found_in_pycache_prefix�
stripped_path�pycache� dot_countr�� opt_level�
base_filenames
r�source_from_cacher��s����#�+�!�"H�I�I�I��:�d���D�(��.�.��D�
�#��
��%��*�1�1�/�B�B�
��?�?�=�8�3�4�4� +���M�*�*�+�+�,�D�&*�#�"�*�#�D�)�)�
��g��h�����)�)� $�)�)�*�*�
*� �&�&�s�+�+�I������M�9I�M�M�N�N�N� �a���'�.�.�s�A�6�6�r�:���&�&�t�,�,� /��.�%)�.�.�/�/�
/� ��T�����,� �� � �"�"� 3��2�<�2�2�2�3�3�
3�$�.�.�s�3�3�A�6�M��d�M�O�A�,>�>�?�?�?r
c�0�t|��dkrdS|�d��\}}}|r |���dd�dkr|S t|��}n!#tt
f$r
|dd�}YnwxYwt
|��r|n|S)z�Convert a bytecode file path to a source path (if possible).
This function exists purely for backwards-compatibility for
PyImport_ExecCodeModuleWithFilenames() in the C API.
rNr��������py)rr��lowerr�r�r�re)�
bytecode_pathr��_� extension�source_paths r�_get_sourcefiler�$s����=���Q����t�&�1�1�#�6�6��D�!�Y���9�?�?�$�$�R��U�+�t�3�3���)�'�
�6�6������,�)�)�)�#�C�R�C�(����)����&�{�3�3�F�;�;��Fs�A$�$B�Bc���|�tt����r! t|��S#t$rYdSwxYw|�tt
����r|SdSrU)rE�tupler�r�r�r�)r�s r�_get_cachedr�7s~�������/�/�0�0�� �$�X�.�.�.��"� � � ��D�D� ���� � � �5�!2�3�3� 4� 4�����ts�8�
A�Ac�`� t|��j}n#t$rd}YnwxYw|dz}|S)z3Calculate the mode permissions for a bytecode file.rn�)r]r`r_)rLras r�
_calc_moder�CsM����$���'���������������� �E�M�D��Ks��&�&c�Z��d�fd� }t�
tj}nd�}||���|S)z�Decorator to verify that the module being requested matches the one the
loader can handle.
The first argument (self) must define _name which the second argument is
compared against. If the comparison fails then ImportError is raised.
Nc���|�|j}n'|j|krtd|j�d|��|�����||g|�Ri|��S)Nzloader for z cannot handle ��name)r��ImportError)�selfr��args�kwargs�methods �r�_check_name_wrapperz(_check_name.<locals>._check_name_wrapperWsn����<��9�D�D�
�Y�$�
�
��+�!%����D�D�2�8<�>�>�>�
>��v�d�D�2�4�2�2�2�6�2�2�2r
c ��dD]1}t||��rt||t||�����2|j�|j��dS)N)�
__module__�__name__�__qualname__�__doc__)�hasattr�setattr�getattr�__dict__�update)�new�oldrks r�_wrapz_check_name.<locals>._wrapdsa��P�
A�
A���3��(�(�A��C��'�#�w�*?�*?�@�@�@���L�����-�-�-�-�-r
rU)�
_bootstrapr�)r�r�r�s` r�_check_namer�Os]���3�3�3�3�3�3���� ��� .� .� .�
�E�
�v�&�&�&��r
c��tjdt��|�|��\}}|�Dt |��r5d}tj|�|d��t��|S)z�Try to find a loader for the specified module by delegating to
self.find_loader().
This method is deprecated in favor of finder.find_spec().
zZfind_module() is deprecated and slated for removal in Python 3.12; use find_spec() insteadNz,Not importing directory {}: missing __init__r)r�r�r��find_loaderrrr�
ImportWarning)r��fullname�loader�portions�msgs r�_find_module_shimr�nsv���N�P�%�'�'�'��'�'��1�1��F�H�
�~�#�h�-�-�~�<����s�z�z�(�1�+�.�.�
�>�>�>��Mr
c�v�|dd�}|tkr0d|�d|��}t�d|��t|fi|���t |��dkr/d|��}t�d|��t|���t
|dd���}|d zrd
|�d|��}t|fi|���|S)aTPerform basic validity checking of a pyc header and return the flags field,
which determines how the pyc should be further validated against the source.
*data* is the contents of the pyc file. (Only the first 16 bytes are
required, though.)
*name* is the name of the module being imported. It is used for logging.
*exc_details* is a dictionary passed to ImportError if it raised for
improved debugging.
ImportError is raised when the magic number is incorrect or when the flags
field is invalid. EOFError is raised when the data is found to be truncated.
Nr*zbad magic number in z: �{}�z(reached EOF while reading pyc header of ����zinvalid flags z in )�MAGIC_NUMBERr��_verbose_messager�r�EOFErrorr5)r4r��exc_details�magicr�rs r�
_classify_pycr��s���
��!��H�E�����<��<�<�5�<�<���#�#�D�'�2�2�2��'�1�1�[�1�1�1�
�4�y�y�2�~�~�E�T�E�E���#�#�D�'�2�2�2��w�����4��!��9�%�%�E��u�}�2�8�5�8�8��8�8���'�1�1�[�1�1�1��Lr
c��t|dd���|dzkr-d|��}t�d|��t|fi|���|�.t|dd���|dzkrtd|��fi|���dSdS)aValidate a pyc against the source last-modified time.
*data* is the contents of the pyc file. (Only the first 16 bytes are
required.)
*source_mtime* is the last modified timestamp of the source file.
*source_size* is None or the size of the source file in bytes.
*name* is the name of the module being imported. It is used for logging.
*exc_details* is a dictionary passed to ImportError if it raised for
improved debugging.
An ImportError is raised if the bytecode is stale.
r��r)zbytecode is stale for r�Nr�)r5r�r�r�)r4�source_mtime�source_sizer�r�r�s r�_validate_timestamp_pycr��s���&�d�1�R�4�j�!�!�l�Z�&?�@�@�3�4�3�3���#�#�D�'�2�2�2��'�1�1�[�1�1�1����t�B�r�E�{�#�#��j�(@�A�A��;�4�;�;�K�K�{�K�K�K� ��A�Ar
c�B�|dd�|krtd|��fi|���dS)a�Validate a hash-based pyc by checking the real source hash against the one in
the pyc header.
*data* is the contents of the pyc file. (Only the first 16 bytes are
required.)
*source_hash* is the importlib.util.source_hash() of the source file.
*name* is the name of the module being imported. It is used for logging.
*exc_details* is a dictionary passed to ImportError if it raised for
improved debugging.
An ImportError is raised if the bytecode is stale.
r�r�z.hash in bytecode doesn't match hash of source N)r�)r4�source_hashr�r�s r�_validate_hash_pycr��sI��"�A�b�D�z�[� � ��F�d�F�F�
�
��
�
�
�!� r
c��tj|��}t|t��r4t�d|��|�t
j||��|Std� |��||����)z#Compile bytecode as found in a pyc.zcode object from {!r}NzNon-code object in {!r}�r�rL)
�marshal�loads�
isinstance�
_code_typer�r��_imp�_fix_co_filenamer�rr)r4r�r�r��codes r�_compile_bytecoder��s����=����D��$�
�#�#�9��#�#�$;�]�K�K�K��"��!�$��4�4�4����3�:�:�=�I�I�#�-�9�9�9� 9r
c�H�tt��}|�td����|�t|����|�t|����|�t j|����|S)z+Produce the data for a timestamp-based pyc.r)� bytearrayr��extendr/r��dumps)r��mtimer�r4s r�_code_to_timestamp_pycr�s|���\�"�"�D��K�K��Q��� � � ��K�K��U�#�#�$�$�$��K�K��[�)�)�*�*�*��K�K��
�d�#�#�$�$�$��Kr
Tc�$�tt��}d|dzz}|�t|����t |��dksJ�|�|��|�tj|����|S)z&Produce the data for a hash-based pyc.rr�)r�r�r�r/rr�r)r�r��checkedr4rs r�_code_to_hash_pycr�s����\�"�"�D��'�Q�,��E��K�K��U�#�#�$�$�$��{���q� � � � ��K�K������K�K��
�d�#�#�$�$�$��Kr
c���ddl}tj|��j}|�|��}tjdd��}|�|�|d����S)zyDecode bytes representing source code and return the string.
Universal newline support is used in the decoding.
rNT)�tokenizerx�BytesIO�readline�detect_encoding�IncrementalNewlineDecoder�decode)�source_bytesr�source_bytes_readline�encoding�newline_decoders r�
decode_sourcer�sl��
�O�O�O��K��5�5�>���'�'�(=�>�>�H��3�D�$�?�?�O��!�!�,�"5�"5�h�q�k�"B�"B�C�C�Cr
�r��submodule_search_locationsc�*�|�:d}t|d��r' |�|��}ng#t$rYn[wxYwnVtj|��}t|��s3 t
tj��|��}n#t$rYnwxYwt�
|||���}d|_|�Mt��D]<\}}|�
t|����r|||��}||_n�=dS|t urAt|d��r0 |�|��}|rg|_n#t$rYnwxYwn||_|jgkr1|r/t'|��d}|j�|��|S)a=Return a module spec based on a file location.
To indicate that the module is a package, set
submodule_search_locations to a list of directory paths. An
empty list is sufficient, though its not otherwise useful to the
import system.
The loader must take a spec as its only __init__() arg.
Nz <unknown>�get_filename��originT�
is_packager)r�rr�rr�rlrOrgr_r��
ModuleSpec�
_set_fileattr�_get_supported_file_loadersrEr�r�� _POPULATErrrYrH) r��locationr�r�spec�loader_class�suffixesr�dirnames r�spec_from_file_locationr"
s �������6�>�*�*� �
�!�.�.�t�4�4�����
�
�
���
���� ��:�h�'�'���8�$�$� �
�%�c�j�l�l�H�=�=�����
�
�
���
����� � ��v�h� �?�?�D��D���~�&A�&C�&C� � �"�L�(�� � ��x���1�1�
�%��d�H�5�5��$�����
�
�4�"�Y�.�.��6�<�(�(� 9�
9�#�.�.�t�4�4�
��9�68�D�3��� �
�
�
���
���� 9�+E��'��&�"�,�,�� <�!�(�+�+�A�.�G��+�2�2�7�;�;�;��Ks0�,�
9�9�!!B�
B�B� D?�?
E�Ec��eZdZdZdZdZeodevZe d���Z
ed���Zed
d���Z
edd ���ZdS)�WindowsRegistryFinderz>Meta path finder for modules declared in the Windows registry.z;Software\Python\PythonCore\{sys_version}\Modules\{fullname}zASoftware\Python\PythonCore\{sys_version}\Modules\{fullname}\Debugz_d.pydc�� tjtj|��S#t$r"tjtj|��cYSwxYwrU)�winreg�OpenKey�HKEY_CURRENT_USERr_�HKEY_LOCAL_MACHINErs r�_open_registryz$WindowsRegistryFinder._open_registry_sW�� B��>�&�":�C�@�@�@��� B� B� B��>�&�";�S�A�A�A�A�A� B���s�!�)A
�A
c�4�|jr|j}n|j}|�|dtjdd�z���} |�|��5}tj|d��}ddd��n#1swxYwYn#t$rYdSwxYw|S)Nz%d.%dr8)r��sys_versionr)
�DEBUG_BUILD�REGISTRY_KEY_DEBUG�REGISTRY_KEYrrr�version_infor*r&�
QueryValuer_)�clsr��registry_keyr �hkey�filepaths r�_search_registryz&WindowsRegistryFinder._search_registryfs����?� ,��1�L�L��+�L��!�!�8�.5��8H��!��8L�.L�"�N�N�� ��#�#�C�(�(�
7�D�!�,�T�2�6�6��
7�
7�
7�
7�
7�
7�
7�
7�
7�
7�
7����
7�
7�
7�
7���� � � ��4�4� �����s6�B�A;�/B�;A?�?B�A?�B�
B�BNc�>�|�|��}|�dS t|��n#t$rYdSwxYwt��D]R\}}|�t|����r+t�||||��|���}|cS�SdS)Nr)r6r]r_rrEr�r��spec_from_loader)r2r�rL�targetr5r�r rs r� find_speczWindowsRegistryFinder.find_specus����'�'��1�1�����4� ��x� � � � ��� � � ��4�4� ���� ;� =� =� � ��F�H�� � ��x���1�1�
�!�2�2�8�39�6�(�H�3M�3M�:B�3�D�D������
� � s�+�
9�9c�x�tjdt��|�||��}|�|jSdS)zjFind module named in the registry.
This method is deprecated. Use find_spec() instead.
zpWindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() insteadN�r�r�r�r:r��r2r�rLrs r�find_modulez!WindowsRegistryFinder.find_module�sI�� ��T�)� +� +� +��}�}�X�t�,�,�����;���4r
�NNrU)r�r�r�r�r/r.�_MS_WINDOWS�EXTENSION_SUFFIXESr-�staticmethodr*�classmethodr6r:r>rr
rr$r$Ss�������H�H� �� '���A�8�/A�#A�K��B�B��\�B�����[���
�
�
��[�
��
�
�
��[�
�
�
r
r$c�*�eZdZdZd�Zd�Zd�Zd�ZdS)�
_LoaderBasicszSBase class of common code needed by both SourceLoader and
SourcelessFileLoader.c���t|�|����d}|�dd��d}|�d��d}|dko|dkS)z�Concrete implementation of InspectLoader.is_package by checking if
the path returned by get_filename has a filename of '__init__.py'.rr�rr8�__init__)rYrr�r�)r�r�r��
filename_base� tail_names rrz_LoaderBasics.is_package�si���t�0�0��:�:�;�;�A�>�� ����Q�/�/��2�
��'�'��,�,�Q�/� ��
�*�F�y�J�/F�Fr
c��dS�z*Use default semantics for module creation.Nr�r�rs r�
create_modulez_LoaderBasics.create_module�����r
c���|�|j��}|�'td�|j�����t�t||j��dS)zExecute the module.Nz4cannot load module {!r} when get_code() returns None)�get_coder�r�rrr��_call_with_frames_removed�execr�)r��moduler�s r�exec_modulez_LoaderBasics.exec_module�sc���}�}�V�_�-�-���<��-�-3�V�F�O�-D�-D�F�F�
F��,�,�T�4���I�I�I�I�Ir
c�8�t�||��S)zThis method is deprecated.)r��_load_module_shim�r�r�s r�load_modulez_LoaderBasics.load_module�s���+�+�D�(�;�;�;r
N)r�r�r�r�rrMrTrXrr
rrErE�s`��������G�G�G�9�9�9�J�J�J�<�<�<�<�<r
rEc�>�eZdZd�Zd�Zd�Zd�Zd�Zdd�d�Zd �Z d
S)�SourceLoaderc��t�)z�Optional method that returns the modification time (an int) for the
specified path (a str).
Raises OSError when the path cannot be handled.
)r_�r�rLs r�
path_mtimezSourceLoader.path_mtime�s ���
r
c�0�d|�|��iS)a�Optional method returning a metadata dict for the specified
path (a str).
Possible keys:
- 'mtime' (mandatory) is the numeric timestamp of last source
code modification;
- 'size' (optional) is the size in bytes of the source code.
Implementing this method allows the loader to read bytecode files.
Raises OSError when the path cannot be handled.
r)r]r\s r�
path_statszSourceLoader.path_stats�s�������.�.�/�/r
c�.�|�||��S)z�Optional method which writes data (bytes) to a file path (a str).
Implementing this method allows for the writing of bytecode files.
The source path is needed in order to correctly transfer permissions
)�set_data)r�r��
cache_pathr4s r�_cache_bytecodezSourceLoader._cache_bytecode�s���}�}�Z��.�.�.r
c��dS)z�Optional method which writes data (bytes) to a file path (a str).
Implementing this method allows for the writing of bytecode files.
Nr)r�rLr4s rrazSourceLoader.set_data�rNr
c��|�|��} |�|��}n$#t$r}td|���|�d}~wwxYwt |��S)z4Concrete implementation of InspectLoader.get_source.z'source not available through get_data()r�N)r�get_datar_r�r)r�r�rLr
�excs r�
get_sourcezSourceLoader.get_source�s|��� � ��*�*�� 6��=�=��.�.�L�L��� 6� 6� 6��G�#+�-�-�-�25�
6����� 6�����\�*�*�*s�-�
A�A � Ar�)� _optimizec�L�t�t||dd|���S)z�Return the code object compiled from source.
The 'data' argument can be any object type that compile() supports.
rRT)�dont_inheritr�)r�rQ�compile)r�r4rLris r�source_to_codezSourceLoader.source_to_code�s1��
�3�3�G�T�4��59�I�4�O�O� Or
c���|�|��}d}d}d}d}d} t|��} |�|��} t| d��} |�|��}
||d�} t|
||��}t
|
��dd�}
|dzdk}|rm|d zdk}tjd
krS|stjdkrA|�|��}tj t|��}t|
|||��nt|
|| d||��t�d
||��t|
|||���S#t t"f$rYn6wxYw#t$$rYn&wxYw#t$$rYnwxYw#t&$rd}YnwxYw|�|�|��}|�||��}t�d|��t*js{|�y|�w|r.|�tj t|��}t/|||��}
nt1||t3|����}
|�|||
��n#t&$rYnwxYw|S)z�Concrete implementation of InspectLoader.get_code.
Reading of bytecode requires path_stats to be implemented. To write
bytecode, set_data must also be implemented.
NFTrr�r�rrr8�never�always�sizez
{} matches {})r�r�r�zcode object from {})rr�r_r,rfr��
memoryviewr��check_hash_based_pycsr��_RAW_MAGIC_NUMBERr�r�r�r�r�r�r�r_r�rmr�dont_write_bytecoderrrrc)r�r�r�r�r
r��
hash_based�check_sourcer��str4r�r�
bytes_data�code_objects rrPzSourceLoader.get_code�sW���'�'��1�1���������
���3 J�-�k�:�:�M�.
J��_�_�[�1�1�� #�2�g�;�/�/��(J��=�=��7�7�D�
!)� -�#�#�K�J� -�d�H�k� J� J��%/��%5�%5�b�c�c�%:�
�%*�S�[�A�%5�
�%��+0�4�<�1�+<�L� $� :�g� E� E�!-�!F�!%�!;�x�!G�!G�/3�}�}�[�/I�/I��.2�.>�$5�$0�/"�/"��!3�4��h�3>�!@�!@�!@��4� $� ,� "�6�
� (� +����#�3�3�O�]�4?�A�A�A�0��(�?L�=H� J� J� J�J��(��2�����������?�����D������
�
�
�
���
�����#� !� !� !� �M�M�M� !����d���=�=��5�5�L��)�)�,��D�D���#�#�$9�;�G�G�G��'�
�M�,E��(��
A��&�"&�"2�3D�3?�#A�#A�K�(��k�<�P�P���-�k�<�.1�,�.?�.?�A�A��
��$�$�[�-��F�F�F�F��&�
�
�
���
�����sY�F�F�E6�7B9E�E3�2E3�6
F�F�
F�F�F%�$F%�I'�'
I4�3I4N)
r�r�r�r]r_rcrarhrmrPrr
rrZrZ�s����������0�0�0�/�/�/����+�+�+�79�O�O�O�O�O�S�S�S�S�Sr
rZc�v��eZdZdZd�Zd�Zd�Ze�fd���Zed���Z d�Z
ed���Z�xZS) �
FileLoaderzgBase file loader class which implements the loader protocol methods that
require file system usage.c�"�||_||_dS)zKCache the module name and the path to the file found by the
finder.Nr�)r�r�rLs rrGzFileLoader.__init__Js���� ��� � � r
c�B�|j|jko|j|jkSrU�� __class__r��r��others r�__eq__zFileLoader.__eq__P�$����%�/�1�0��
���/� 1r
c�T�t|j��t|j��zSrU��hashr�rL�r�s r�__hash__zFileLoader.__hash__T����D�I����d�i���0�0r
c�T��tt|���|��S)zdLoad a module from a file.
This method is deprecated. Use exec_module() instead.
)�superr|rX)r�r�r�s �rrXzFileLoader.load_moduleWs#����Z��&�&�2�2�8�<�<�<r
c��|jS�z:Return the path to the source file as found by the finder.r\rWs rrzFileLoader.get_filenamec����y�r
c�^�t|ttf��rOtjt|����5}|���cddd��S#1swxYwYdStj|d��5}|���cddd��S#1swxYwYdS)z'Return the data from path as raw bytes.N�r)r�rZ�ExtensionFileLoaderrx� open_coder��readry)r�rLr~s rrfzFileLoader.get_datahs���d�\�+>�?�@�@� #���s�4�y�y�)�)�
#�T��y�y�{�{�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#����
#�
#�
#�
#�
#�
#���D�#�&�&�
#�$��y�y�{�{�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#����
#�
#�
#�
#�
#�
#s#�A�A#�&A#�B"�"B&�)B&c�$�ddlm}||��S)Nr)�
FileReader)�importlib.readersr�)r�rSr�s r�get_resource_readerzFileLoader.get_resource_readerqs$��0�0�0�0�0�0��z�$���r
)
r�r�r�r�rGr�r�r�rXrrfr��
__classcell__)r�s@rr|r|Es��������"�"����1�1�1�1�1�1�� =� =� =� =��[� =�����[��#�#�#�� � ��[� � � � � r
r|c�*�eZdZdZd�Zd�Zdd�d�ZdS)�SourceFileLoaderz>Concrete implementation of SourceLoader using the file system.c�>�t|��}|j|jd�S)z!Return the metadata for the path.)rrq)r]�st_mtime�st_size)r�rLrxs rr_zSourceFileLoader.path_stats{s!��
��
�
����b�j�9�9�9r
c�P�t|��}|�|||���S)N��_mode)r�ra)r�r�r�r4ras rrcz SourceFileLoader._cache_bytecode�s'���+�&�&���}�}�]�D��}�=�=�=r
rnr�c�p�t|��\}}g}|rGt|��s8t|��\}}|�|��|rt|���8t|��D]g}t ||��} tj|���(#t$rY�4t$r(}t�
d||��Yd}~dSd}~wwxYw t|||��t�
d|��dS#t$r'}t�
d||��Yd}~dSd}~wwxYw)zWrite bytes data to a file.zcould not create {!r}: {!r}Nzcreated {!r})rYrhrH�reversedrOr�mkdir�FileExistsErrorr_r�r�r) r�rLr4r��parentr�rJrRrgs rrazSourceFileLoader.set_data�s���&�t�,�,�����
�� $�[��0�0� $�&�v�.�.�L�F�D����d�#�#�#�� $�[��0�0� $��Z�(�(� � �D����-�-�F�
�� �&�!�!�!�!��"�
�
�
����
�
�
��+�+�,I�,2�C�9�9�9������������
���� -��$��e�,�,�,��'�'���=�=�=�=�=��� -� -� -��'�'�(E�t�(+�
-�
-�
-�
-�
-�
-�
-�
-�
-����� -���s6�B�
C�! C�*C
�
C�,D�
D5�D0�0D5N)r�r�r�r�r_rcrarr
rr�r�wsV������H�H�:�:�:�
>�>�>�
-2�-�-�-�-�-�-�-r
r�c��eZdZdZd�Zd�ZdS)�SourcelessFileLoaderz-Loader which handles sourceless file imports.c���|�|��}|�|��}||d�}t|||��tt |��dd�||���S)Nr�r�)r�r�)rrfr�r�rr)r�r�rLr4r�s rrPzSourcelessFileLoader.get_code�s��� � ��*�*���}�}�T�"�"����
�
�� �d�H�k�2�2�2� ��t���R�S�S�!���
�
�
�
r
c��dS)z'Return None as there is no source code.NrrWs rrhzSourcelessFileLoader.get_source�����tr
N)r�r�r�r�rPrhrr
rr�r��s8������7�7�
�
�
� ����r
r�c�X�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z d�Z
d �Zed
���Z
dS)r�z]Loader for extension modules.
The constructor is designed to work with FileFinder.
c�"�||_||_dSrUr�)r�r�rLs rrGzExtensionFileLoader.__init__�s���� ��� � � r
c�B�|j|jko|j|jkSrUrr�s rr�zExtensionFileLoader.__eq__�r�r
c�T�t|j��t|j��zSrUr�r�s rr�zExtensionFileLoader.__hash__�r�r
c��t�tj|��}t�d|j|j��|S)z(Create an uninitialized extension modulez&extension module {!r} loaded from {!r})r�rQr��create_dynamicr�r�rL)r�rrSs rrMz!ExtensionFileLoader.create_module�sH���5�5����'�'���#�#�$L���D�I� /� /� /��
r
c��t�tj|��t�d|j|j��dS)zInitialize an extension modulez(extension module {!r} executed from {!r}N)r�rQr��exec_dynamicr�r�rL�r�rSs rrTzExtensionFileLoader.exec_module�sI���,�,�T�->��G�G�G��#�#�$N���D�I� /� /� /� /� /r
c�x��t|j��d�t�fd�tD����S)z1Return True if the extension module is a package.rc3�*�K�|]
}�d|zkV��dS)rGNr)r �suffix� file_names �rrz1ExtensionFileLoader.is_package.<locals>.<genexpr>�sA�����5�5���
�V� 3�3�5�5�5�5�5�5r
)rYrL�anyrA)r�r�r�s @rrzExtensionFileLoader.is_package�sO����� �*�*�1�-� ��5�5�5�5�!3�5�5�5�5�5� 5r
c��dS)z?Return None as an extension module cannot create a code object.NrrWs rrPzExtensionFileLoader.get_code�r�r
c��dS)z5Return None as extension modules have no source code.NrrWs rrhzExtensionFileLoader.get_source�r�r
c��|jSr�r\rWs rrz ExtensionFileLoader.get_filename�r�r
N)r�r�r�r�rGr�r�rMrTrrPrhr�rrr
rr�r��s������������1�1�1�1�1�1����/�/�/�5�5�5�����������[���r
r�c�X�eZdZdZdZd�Zd�Zd�Zd�Zd�Z d�Z
d �Zd
�Zd�Z
d�Zd
�ZdS)�_NamespacePatha&Represents a namespace package's path. It uses the module name
to find its parent module, and from there it looks up the parent's
__path__. When this changes, the module's own path is recomputed,
using path_finder. For top-level modules, the parent module's path
is sys.path.rc��||_||_t|�����|_|j|_||_dSrU)�_name�_pathr��_get_parent_path�_last_parent_path�_epoch�_last_epoch�_path_finder�r�r�rL�path_finders rrGz_NamespacePath.__init__�sD����
���
�!&�t�'<�'<�'>�'>�!?�!?����;���'����r
c�V�|j�d��\}}}|dkrdS|dfS)z>Returns a tuple of (parent-module-name, parent-path-attr-name)r�r)rrL�__path__)r�r�)r�r��dot�mes r�_find_parent_path_namesz&_NamespacePath._find_parent_path_namess8���*�/�/��4�4����R��"�9�9� �=��z�!�!r
c�p�|���\}}ttj||��SrU)r�r�r�modules)r��parent_module_name�path_attr_names rr�z_NamespacePath._get_parent_paths1��-1�-I�-I�-K�-K�*��N��s�{�#5�6��G�G�Gr
c��t|�����}||jks|j|jkrJ|�|j|��}|�|j�|jr|j|_ ||_|j|_|j SrU)
r�r�r�r�r�r�r�r�rr�)r��parent_pathrs r�_recalculatez_NamespacePath._recalculates����D�1�1�3�3�4�4���$�0�0�0�D�K�4�CS�4S�4S��$�$�T�Z��=�=�D���D�K�$7��2�A�!%�!@�D�J�%0�D�"�#�{�D���z�r
c�D�t|�����SrU)�iterr�r�s r�__iter__z_NamespacePath.__iter__ s���D�%�%�'�'�(�(�(r
c�6�|���|SrU�r�)r��indexs r�__getitem__z_NamespacePath.__getitem__#s��� � �"�"�5�)�)r
c��||j|<dSrU)r�)r�r�rLs r�__setitem__z_NamespacePath.__setitem__&s�� ��
�5���r
c�D�t|�����SrU)rr�r�s r�__len__z_NamespacePath.__len__)s���4�$�$�&�&�'�'�'r
c�6�d�|j��S)Nz_NamespacePath({!r}))rrr�r�s r�__repr__z_NamespacePath.__repr__,s��%�,�,�T�Z�8�8�8r
c�.�||���vSrUr��r��items r�__contains__z_NamespacePath.__contains__/s���t�(�(�*�*�*�*r
c�:�|j�|��dSrU)r�rHr�s rrHz_NamespacePath.append2s���
���$�����r
N)r�r�r�r�r�rGr�r�r�r�r�r�r�r�r�rHrr
rr�r��s����������F�(�(�(�"�"�"�H�H�H����)�)�)�*�*�*�!�!�!�(�(�(�9�9�9�+�+�+� � � � � r
r�c�T�eZdZd�Zed���Zd�Zd�Zd�Zd�Z d�Z
d�Zd �Zd
S)�NamespaceLoaderc�2�t|||��|_dSrU)r�r�r�s rrGzNamespaceLoader.__init__:s��#�D�$��<�<��
�
�
r
c�j�tjdt��d�|j��S)zsReturn repr for the module.
The method is deprecated. The import machinery does the job itself.
zQNamespaceLoader.module_repr() is deprecated and slated for removal in Python 3.12z<module {!r} (namespace)>)r�r�r�rrr�)rSs r�module_reprzNamespaceLoader.module_repr=s9�� ��;�<N� P� P� P�*�1�1�&�/�B�B�Br
c��dS)NTrrWs rrzNamespaceLoader.is_packageHs���tr
c��dS)NrrrWs rrhzNamespaceLoader.get_sourceKs���rr
c�(�tdddd���S)Nrz<string>rRT)rk)rlrWs rrPzNamespaceLoader.get_codeNs���r�:�v�D�A�A�A�Ar
c��dSrKrrLs rrMzNamespaceLoader.create_moduleQrNr
c��dSrUrr�s rrTzNamespaceLoader.exec_moduleTs���r
c�x�t�d|j��t�||��S)zbLoad a namespace module.
This method is deprecated. Use exec_module() instead.
z&namespace module loaded with path {!r})r�r�r�rVrWs rrXzNamespaceLoader.load_moduleWs<�� �#�#�$L�$(�J� 0� 0� 0��+�+�D�(�;�;�;r
c�.�ddlm}||j��S)Nr)�NamespaceReader)r�r�r�)r�rSr�s rr�z#NamespaceLoader.get_resource_readercs&��5�5�5�5�5�5���t�z�*�*�*r
N)
r�r�r�rGrBr�rrhrPrMrTrXr�rr
rr�r�9s�������=�=�=��C�C��\�C�������B�B�B�9�9�9�
�
�
�
<�
<�
<�+�+�+�+�+r
r�c���eZdZdZed���Zed���Zed���Zed���Z edd���Z
edd���Zedd ���Zed
���Z
dS)
�
PathFinderz>Meta path finder for sys.path and package __path__ attributes.c�L�ttj�����D]H\}}|�t |��stj|=�$t|d��r|����Itxjdz
c_ddl m
}|���dS)z}Call the invalidate_caches() method on all path entry finders
stored in sys.path_importer_caches (where implemented).N�invalidate_cachesrr��MetadataPathFinder)�listr�path_importer_cache�itemsrlr�r�r�r��importlib.metadatar�)r��finderr�s rr�zPathFinder.invalidate_cachesrs���!��!8�!>�!>�!@�!@�A�A� +� +�L�D�&��~�[��%6�%6�~��+�D�1�1���!4�5�5�
+��(�(�*�*�*�� ����"���9�9�9�9�9�9��,�,�.�.�.�.�.r
c���tj�&tjstjdt��tjD]} ||��cS#t
$rY�wxYwdS)z.Search sys.path_hooks for a finder for 'path'.Nzsys.path_hooks is empty)r�
path_hooksr�r�r�r�)rL�hooks r�_path_hookszPathFinder._path_hooks�sw���>�%�c�n�%��N�4�m�D�D�D��N� � �D�
��t�D�z�z�!�!�!���
�
�
���
�����4s�
A�
A�Ac���|dkr& tj��}n#t$rYdSwxYw tj|}n4#t
$r'|�|��}|tj|<YnwxYw|S)z�Get the finder for the path entry from sys.path_importer_cache.
If the path entry is not in the cache, find the appropriate finder
and cache it. If no finder is available, store None.
rN)rrg�FileNotFoundErrorrr��KeyErrorr)r2rLr�s r�_path_importer_cachezPathFinder._path_importer_cache�s����2�:�:�
��z�|�|����$�
�
�
��t�t�
���� 3��,�T�2�F�F��� 3� 3� 3��_�_�T�*�*�F�,2�C�#�D�)�)�)� 3�����
s��
*�*�A�.A2�1A2c���t|d��rPt�|���d�}tj|t
��|�|��\}}nNt�|���d�}tj|t
��|�|��}g}|�t�||��St� |d��}||_
|S)Nr�z5.find_spec() not found; falling back to find_loader()z5.find_spec() not found; falling back to find_module())r�r��_object_namer�r�r�r�r>r8rr)r2r�r�r�r�r�rs r�_legacy_get_speczPathFinder._legacy_get_spec�s����6�=�)�)�
� �-�-�f�5�5�4�4�4�C��N�3�
�.�.�.�%�1�1�(�;�;��F�H�H� �-�-�f�5�5�4�4�4�C��N�3�
�.�.�.��'�'��1�1�F��H����.�.�x��@�@�@��$�$�X�t�4�4��*2��'��r
Nc��g}|D]�}t|t��s�|�|��}|�xt|d��r|�||��}n|�||��}|��o|j�|cS|j}|�td���|� |����t�|d��}||_|S)z?Find the loader or namespace_path for this module/package name.Nr:zspec missing loader)r�r�rr�r:r r�rr�r�r�r) r2r�rLr9�namespace_path�entryr�rr�s r� _get_speczPathFinder._get_spec�s���
��� � �E��e�S�)�)�
���-�-�e�4�4�F��!��6�;�/�/�B�!�+�+�H�f�=�=�D�D��/�/��&�A�A�D��<���;�*��K�K�K��:���#�%�&;�<�<�<�
�%�%�h�/�/�/���(�(��4�8�8�D�.<�D�+��Kr
c���|�tj}|�|||��}|�dS|j�/|j}|r$d|_t
|||j��|_|SdS|S)z�Try to find a spec for 'fullname' on sys.path or 'path'.
The search is based on sys.path_hooks and sys.path_importer_cache.
N)rrLr
r�rrr�)r2r�rLr9rrs rr:zPathFinder.find_spec�sw���<��8�D��}�}�X�t�V�4�4���<��4�
�[�
�!�<�N��
�#���2@��>�[^�[h�2i�2i��/����t��Kr
c�x�tjdt��|�||��}|�dS|jS)z�find the module on sys.path or 'path' based on sys.path_hooks and
sys.path_importer_cache.
This method is deprecated. Use find_spec() instead.
zePathFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() insteadNr<r=s rr>zPathFinder.find_module�sH�� ��T�)� +� +� +��}�}�X�t�,�,���<��4��{�r
c�(�ddlm}|j|i|��S)a
Find distributions.
Return an iterable of all Distribution instances capable of
loading the metadata for packages matching ``context.name``
(or all names if ``None`` indicated) along the paths in the list
of directories ``context.path``.
rr�)r�r��find_distributions)r�r�r�s rrzPathFinder.find_distributionss/�� :�9�9�9�9�9�4�!�4�d�E�f�E�E�Er
rUr?)r�r�r�r�rBr�rrCrr r
r:r>rrr
rr�r�ns������H�H��/�/��\�/�"�
�
��\�
�����[��*����[��(�����[��>�����[��.�
�
�
��[�
��
F�
F��\�
F�
F�
Fr
r�c�X�eZdZdZd�Zd�ZeZd�Zd�Z dd�Z
d�Zed ���Z
d
�ZdS)�
FileFinderz�File-based finder.
Interactions with the file system are cached for performance, being
refreshed when the directory the finder is handling has been modified.
c���g}|D]&\�}|��fd�|D�����'||_|r|dkrtj��|_n=t|��s't
tj��|��|_n||_d|_t��|_ t��|_
dS)z�Initialize with the path to search on and a variable number of
2-tuples containing the loader and the file suffixes the loader
recognizes.c3� �K�|]}|�fV�� dSrUr)r r�r�s �rrz&FileFinder.__init__.<locals>.<genexpr>!s(�����C�C��F�F�+�C�C�C�C�C�Cr
r�r�N)r��_loadersrrgrLrlrO�_path_mtime�set�_path_cache�_relaxed_path_cache)r�rL�loader_details�loadersr r�s @rrGzFileFinder.__init__s������ .� D� D��F�H��N�N�C�C�C�C�(�C�C�C�C�C�C�C���
�� �t�s�{�{��
���D�I�I��T�"�"� �"�3�:�<�<��6�6�D�I�I��D�I�����5�5���#&�5�5�� � � r
c��d|_dS)zInvalidate the directory mtime.r�N)rr�s rr�zFileFinder.invalidate_caches.s������r
c��tjdt��|�|��}|�dgfS|j|jpgfS)z�Try to find a loader for the specified module, or the namespace
package portions. Returns (loader, list-of-portions).
This method is deprecated. Use find_spec() instead.
zeFileFinder.find_loader() is deprecated and slated for removal in Python 3.12; use find_spec() insteadN)r�r�r�r:r�r)r�r�rs rr�zFileFinder.find_loader4sW�� ��T�)� +� +� +��~�~�h�'�'���<���8�O��{�D�;�A�r�A�Ar
c�@�|||��}t||||���S)Nr)r")r�rr�rL�smslr9r�s rr
zFileFinder._get_specCs7����h��-�-��&�x��f�BF�H�H�H� Hr
Nc���d}|�d��d} t|jptj����j}n#t$rd}YnwxYw||jkr|���||_t��r|j
}|���}n |j}|}||vrqt|j|��}|jD]E\} }
d| z}t||��}t|��r|�|
|||g|��cS�Ft#|��}|jD]\} }
t|j|| z��}n#t$$rYdSwxYwt&�d|d���|| z|vr*t|��r|�|
||d|��cS��|r@t&�d |��t&�|d��}
|g|
_|
SdS)
zoTry to find a spec for the specified module.
Returns the matching spec, or None if not found.
Fr�r8r�rGNz trying {})� verbosityzpossible namespace for {})r�r]rLrrgr�r_r�_fill_cacher!rr�rrOrrer
rhr�r�r�rr)r�r�r9�is_namespace�tail_moduler�cache�cache_module� base_pathr�r�
init_filename� full_pathrs rr:zFileFinder.find_specHs_��
���)�)�#�.�.�q�1�� ��t�y�8�C�J�L�L�9�9�B�E�E��� � � ��E�E�E� �����D�$�$�$�������$�D���=�=� '��,�E�&�,�,�.�.�L�L��$�E�&�L��5� � �"�4�9�k�:�:�I�(,�
�
6�
6�$��� *�V� 3�
�&�y�-�@�@� �� �*�*�b��>�>�,��)�i�[�Z`�a�a�a�a�a�b�
+�9�5�5��$(�M� 8� 8� �F�L�
�&�t�y�+��2F�G�G� � ���
�
�
��t�t�t�
�����'�'��Y�!�'�L�L�L��f�$��-�-�� �*�*�8��>�>�,��)�*.��8�8�8�8�8��� ��'�'�(C�Y�O�O�O��(�(��4�8�8�D�/8�k�D�+��K��ts#�,A�A�A�9E�
E!� E!c�d�|j} tj|ptj����}n#tt
tf$rg}YnwxYwtj� d��st|��|_nut��}|D]]}|�d��\}}}|r)d�
||�����}n|}|�|���^||_tj� t ��rd�|D��|_dSdS)zDFill the cache of potential modules and packages for this directory.rr�rpc�6�h|]}|�����Sr)r�)r �fns rrz)FileFinder._fill_cache.<locals>.<setcomp>�s ��'F�'F�'F�r����
�
�'F�'F�'Fr
N)rLr�listdirrgr�PermissionError�NotADirectoryErrorrr#r$rrr�rrr��addr%r) r�rL�contents�lower_suffix_contentsr�r�r�r��new_names rr#zFileFinder._fill_cache{sA���y�� ��{�4�#7�3�:�<�<�8�8�H�H��!�?�4F�G� � � ��H�H�H� �����|�&�&�u�-�-� 5�"�8�}�}�D���%(�E�E�!� �
4�
4��$(�N�N�3�$7�$7�!��c�6��$�&�~�~�d�F�L�L�N�N�C�C�H�H�#�H�%�)�)�(�3�3�3�3�4�D���<�"�"�#>�?�?� G�'F�'F�X�'F�'F�'F�D�$�$�$� G� Gs�'1�A
�A
c������fd�}|S)aA class method which returns a closure to use on sys.path_hook
which will return an instance using the specified loaders and the path
called on the closure.
If the path called on the closure is not a directory, ImportError is
raised.
c�V��t|��std|�����|g��R�S)z-Path hook for importlib.machinery.FileFinder.zonly directories are supportedr\)rhr�)rLr2rs ��r�path_hook_for_FileFinderz6FileFinder.path_hook.<locals>.path_hook_for_FileFinder�s@����t�$�$�
O�!�"B��N�N�N�N��3�t�-�n�-�-�-�-r
r)r2rr7s`` r� path_hookzFileFinder.path_hook�s*���� .� .� .� .� .� .�(�'r
c�6�d�|j��S)NzFileFinder({!r}))rrrLr�s rr�zFileFinder.__repr__�s��!�(�(���3�3�3r
rU)r�r�r�r�rGr�r�r>r�r
r:r#rCr8r�rr
rrrs���������)�)�)�&���$�K�
B�
B�
B�H�H�H�
1�1�1�1�fG�G�G�>�(�(��[�(�"4�4�4�4�4r
rc�4�|�d��}|�d��}|s1|r|j}n'||krt||��}nt||��}|st |||���} ||d<||d<||d<||d<dS#t
$rYdSwxYw)N�
__loader__�__spec__)r��__file__�
__cached__)�getr�r�r�r"� Exception)�nsr��pathname� cpathnamer�rs r�_fix_up_modulerD�s���
�V�V�L�
!�
!�F�
�6�6�*���D��6�� 6��[�F�F�
��
"�
"�)�$��9�9�F�F�%�d�H�5�5�F��F�&�t�X�f�E�E�E��
���:��!��<��!��:��$��<������
�
�
����
���s�3B �
B�Bc�x�ttj��f}ttf}t
tf}|||gS)z_Returns a list of file-based module loaders.
Each item is a tuple (loader, suffixes).
)r�r��extension_suffixesr�r�r�r�)�
extensions�source�bytecodes rrr�s9��
%�d�&=�&?�&?�?�J�
��
.�F�#�%6�6�H����)�)r
c�
�|adSrU)r�)�_bootstrap_modules r�_set_bootstrap_modulerL�s��"�J�J�Jr
c���t|��t��}tj�tj|�g��tj�t��dS)z)Install the path-based import components.N)
rLrrrr�rr8� meta_pathrHr�)rK�supported_loaderss r�_installrP�s[���+�,�,�,�3�5�5���N���:�/�1B�C�D�E�E�E��M����$�$�$�$�$r
)rnrU)NNN)rr)T)Vr�r�r�rxrr�r�r#r@�ntrr&�posixr?�allrFr�rDrI�_pathseps_with_colonr&�%_CASE_INSENSITIVE_PLATFORMS_BYTES_KEYr%r'r!r/r5r9rOrYr]rcrerhrlr�type�__code__r�r-r�r,r2rtr�r�r�rHrFrAr��DEBUG_BYTECODE_SUFFIXES�OPTIMIZED_BYTECODE_SUFFIXESr�r�r�r�r�r�r�r�r�r�r�rrr�objectrr"r$rErZr|r�r�r�r�r��_NamespaceLoaderr�rrDrrLrPrr
r�<module>r\sK����,�
�����
�
�
�
�
�
�
�
����������|�w�&���������M�M�M�M��������S�k�O�O��e�O�
�s�
4�
4�O�
4�
4�
4�4�4�4�4�4��1������'�'���'�'�/�*�*��9�9��9�9�9��'-�#�(:�%� E�"E�!F����� �� � ��7�7�7�
*�*�*�
*�*�*��"?�*�*�*�*�<?�?�?�"�"�"����2�2�2�.�.�.�
.�.�.��0�R�R�R�R�0�0�0�
����,�T�-�(�
)�
)�
�j���q�(�+�+�g�5���N�N�<��:�:����
���'���#����6�"�"�"�,�T�,�.�.���H��8I�I��5�D0��D0�D0�D0�D0�D0�N%@�%@�%@�PG�G�G�& � � � � � ����>���(���BL�L�L�8
�
�
�0
9�
9�
9�
9��������� D� D� D�
�F�H�H� �D�4�7@�D�D�D�D�D�R@�@�@�@�@�@�@�@�F<�<�<�<�<�<�<�<�<N�N�N�N�N�=�N�N�N�b/ �/ �/ �/ �/ �/ �/ �/ �d*-�*-�*-�*-�*-�z�<�*-�*-�*-�Z�����:�}����22�2�2�2�2�*�m�2�2�2�jA �A �A �A �A �A �A �A �N,+�,+�,+�,+�,+�,+�,+�,+�`#��
aF�aF�aF�aF�aF�aF�aF�aF�H[4�[4�[4�[4�[4�[4�[4�[4�@
�
�
�
�.*�*�*�#�#�#�
%�%�%�%�%r
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists