§
    7?Äj)  ã                   óV   — d dl mZ d dlmZ d dlmZ e G d„ de¦  «        ¦   «         ZdS )é    )Ú	dataclass)ÚClip)ÚEffectc                   ó@   — e Zd ZU dZdZeed<   dZeed<   de	de	fd„Z
dS )ÚLoopaf  
    Returns a clip that plays the current clip in an infinite loop.
    Ideal for clips coming from GIFs.

    Parameters
    ----------

    n
      Number of times the clip should be played. If `None` the
      the clip will loop indefinitely (i.e. with no set duration).

    duration
      Total duration of the clip. Can be specified instead of n.
    NÚnÚdurationÚclipÚreturnc                 óè   ‡— |j         €t          d¦  «        ‚|j         Š|                     ˆfd„ddg¬¦  «        }| j        r| j        ‰z  | _         | j         r|                     | j         ¦  «        }|S )zApply the effect to the clip.NzAttribute 'duration' not setc                 ó   •— | ‰z  S )N© )ÚtÚprevious_durations    €úFC:\Projects\Historical\venv\Lib\site-packages\moviepy/video/fx/Loop.pyú<lambda>zLoop.apply.<locals>.<lambda>"   s   ø€ �aÐ+Ñ+€ ó    ÚmaskÚaudio)Úapply_to)r	   Ú
ValueErrorÚtime_transformr   Úwith_duration)Úselfr
   r   s     @r   Úapplyz
Loop.apply   sŽ   ø€ àŒ=Ð ÝÐ;Ñ<Ô<Ð<à œMÐØ×"Ò"Ø+Ð+Ð+Ð+°v¸wÐ6Gð #ñ 
ô 
ˆð Œ6ð 	7Ø œFÐ%6Ñ6ˆDŒMàŒ=ð 	5Ø×%Ò% d¤mÑ4Ô4ˆDàˆr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚintÚ__annotations__r	   Úfloatr   r   r   r   r   r   r      sa   € € € € € € ðð ð €A€s€M€M�MØ€HˆeÐÐÑð˜$ð  4ð ð ð ð ð ð r   r   N)Údataclassesr   Úmoviepy.Clipr   Úmoviepy.Effectr   r   r   r   r   ú<module>r&      s{   ðØ !Ð !Ð !Ð !Ð !Ð !à Ð Ð Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !ð ð#ð #ð #ð #ð #ˆ6ñ #ô #ñ „ð#ð #ð #r   