
    ȯeij                    ,    d dl mZ d dlZ	 	 	 	 	 	 ddZy)    )annotationsNc                   t        | t              r| j                         }d}||fS t        | t        j                        r&| j                         }|j                         }d}||fS t        | t              r| }d}||fS t        | t        j                        r'| j                  d       | j                         }d}||fS t        | t        j                        r'| j                  d       | j                         }d}||fS t        | t        j                        r+| j                  d       | j                         xs d}d}||fS |)Nz
text/plainzapplication/octet-streamr       )
isinstancestrencodeioTextIOWrapperreadbytesBytesIOseekgetvalueBufferedReader	RawIOBase)dataunsupported_errordata_as_bytesinferred_mime_typestring_datas        f/var/www/html/glpi_dashboard/venv/lib/python3.12/site-packages/streamlit/runtime/download_data_util.py$convert_data_to_bytes_and_infer_mimer      sN    $)0 ,,,/ 
D"**	+iik#**,)( ,,,% 
D%	 7  ,,, 
D"**	%		!7 ,,, 
D"++	,		!		7 ,,, 
D",,	'		!		*s7 ,,,  r   )r   objectr   	Exceptionreturnztuple[bytes, str])
__future__r   r	   r    r   r   <module>r      s*    # 	!-
!-%.!-!-r   