o
    ­ƒðj�  ã                   @   sä   d Z ddlmZ ddlZddlmZmZmZ ddlmZm	Z	 ddl
mZmZ ddlmZ d	ed
eeef dedefdd„Zd	ed
eeef dedefdd„Zd	ed
eeef dedefdd„Zd	ed
eeef dedefdd„ZdS )zA
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
é    )ÚUnionN)ÚContextÚOptionÚ	Parameteré   )Úsanitize_filenameÚvalidate_filename)Úsanitize_filepathÚvalidate_filepath)ÚValidationErrorÚctxÚparamÚvalueÚreturnc              
   C   ó>   |sdS zt |ƒ W |S  ty } zt t|ƒ¡‚d }~ww ©NÚ )r   r   ÚclickÚBadParameterÚstr©r   r   r   Úe© r   ú”/tmp/claude-1000/-var-www-html-academy/3f42efd1-c2b7-4d08-9b05-30d86bb35479/scratchpad/piper/venv/lib/python3.10/site-packages/pathvalidate/click.pyÚvalidate_filename_arg   ó   
ý€ÿr   c              
   C   r   r   )r
   r   r   r   r   r   r   r   r   Úvalidate_filepath_arg   r   r   c                 C   ó   |sdS t |ƒS r   )r   ©r   r   r   r   r   r   Úsanitize_filename_arg'   ó   r   c                 C   r   r   )r	   r   r   r   r   Úsanitize_filepath_arg.   r    r!   )Ú__doc__Útypingr   r   r   r   r   Ú	_filenamer   r   Ú	_filepathr	   r
   Úerrorr   r   r   r   r   r!   r   r   r   r   Ú<module>   s    """&