
    g                     H    d dl mZ d dlmZ d dlmZ e G d de             Zy)    )	dataclass)Clip)Effectc                        e Zd ZdZdedefdZy)TimeSymmetrizea  
    Returns a clip that plays the current clip once forwards and
    then once backwards. This is very practival to make video that
    loop well, e.g. to create animated GIFs.
    This effect is automatically applied to the clip's mask and audio
    if they exist.
    clipreturnc                 F    |j                   t        d      ||ddd   z   S )zApply the effect to the clip.NzAttribute 'duration' not set)duration
ValueError)selfr   s     h/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/moviepy/video/fx/TimeSymmetrize.pyapplyzTimeSymmetrize.apply   s+    == ;<<d4R4j      N)__name__
__module____qualname____doc__r   r    r   r   r   r      s    !$ !4 !r   r   N)dataclassesr   moviepy.Clipr   moviepy.Effectr   r   r   r   r   <module>r      s)    !  ! !V ! !r   