� ���g� �"�ddddddddd�Zd �Zd S) ztext/cssz image/gifz text/htmlz image/jpegzapplication/javascriptzapplication/jsonz image/pngz text/plain)�css�gif�html�jpg�js�json�png�txtc�p�d}||vr ||}nOd}|dkrG|�dd��\}}d|z|z}||vr ||}n|dz|vr ||dz}n|dk�G|�rTt|t��rd|i}n|���}|d�d��r|�d��r |dd�}|dxx|z cc<|d�d��r~d|vrjt|dt��r|dxx|dz cc<nH|dxx|ddz cc<d|dvr|dd|d<n|dxxdz cc<d|vr?|d�d��d }t �|d ��|d<|S) a}Return the local filename and content type for the requested static file URL. :param path: the path portion of the requested URL. :param static_files: a static file configuration dictionary. This function returns a dictionary with two keys, "filename" and "content_type". If the requested URL does not match any static file, the return value is None. �N�/��filename� content_typez index.html�.�����zapplication/octet-stream)�rsplit� isinstance�str�copy�endswith� startswith� content_types�get)�path� static_files� extra_path�f�last�exts �e/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/engineio/static_files.py�get_static_filer! s���J� �|��� �� ��� ���b�j�j����S�!�,�,�J�D�$��t��j�0�J��|�#�#� ��&������|�+�+� ����,����b�j�j� �1� �a�� � � ��Q��A�A������A� �Z�=� !� !�#� &� &� (�:�+@�+@��+E�+E� (�#�A�B�B��J� �*� � � ��#� � � � �Z�=� !� !�#� &� &� .��\�!�!��l�2�.��4�4�M��j�M�M�M�\�"�%5�5�M�M�M�M��j�M�M�M�\�"�%5�j�%A�A�M�M�M�%��b�)9�9�9�,8��,<�^�,L��.�)���*� � � ��-� � � � �� "� "��J�-�&�&�s�+�+�B�/�C� -� 1� 1��/�!1�!1�A�n� � �H�N)rr!�r"r �<module>r$sB�� � � � � "� � � � � � �/ �/ �/ �/ �/ r"
Memory