§
    œ"²cP  ã                   ó(   —  G d „ d¦  «        Z dd„ZdS )c                   ó*   — e Zd ZdZd„ Zd„ Zd„ Zd„ ZdS )ÚIteratora-  
    This class implements an iterator object that can be used to loop
    over an image sequence.

    You can use the ``[]`` operator to access elements by index. This operator
    will raise an :py:exc:`IndexError` if you try to access a nonexistent
    frame.

    :param im: An image object.
    c                 óŒ   — t          |d¦  «        sd}t          |¦  «        ‚|| _        t          | j        dd¦  «        | _        d S )NÚseekzim must have seek methodÚ
_min_frameé    )ÚhasattrÚAttributeErrorÚimÚgetattrÚposition)Úselfr
   Úmsgs      ú3/usr/lib/python3/dist-packages/PIL/ImageSequence.pyÚ__init__zIterator.__init__   sG   € Ý�r˜6Ñ"Ô"ð 	&Ø,ˆCÝ  Ñ%Ô%Ð%ØˆŒÝ ¤¨°qÑ9Ô9ˆŒˆˆó    c                 óz   — 	 | j                              |¦  «         | j         S # t          $ r}t          |‚d }~ww xY w©N)r
   r   ÚEOFErrorÚ
IndexError)r   ÚixÚes      r   Ú__getitem__zIterator.__getitem__&   sI   € ð	$ØŒG�LŠL˜ÑÔÐØ”7ˆNøÝð 	$ð 	$ð 	$Ý !Ð#øøøøð	$øøøs   ‚ # £
:­5µ:c                 ó   — | S r   © )r   s    r   Ú__iter__zIterator.__iter__-   s   € Øˆr   c                 ó¤   — 	 | j                              | j        ¦  «         | xj        dz  c_        | j         S # t          $ r}t          |‚d }~ww xY w)Né   )r
   r   r   r   ÚStopIteration)r   r   s     r   Ú__next__zIterator.__next__0   s[   € ð	'ØŒG�LŠL˜œÑ'Ô'Ð'ØˆMŒM˜QÑˆMŒMØ”7ˆNøÝð 	'ð 	'ð 	'Ý QÐ&øøøøð	'øøøs   ‚58 ¸
AÁA
Á
AN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r      sZ   € € € € € ð	ð 	ð:ð :ð :ð$ð $ð $ðð ð ð'ð 'ð 'ð 'ð 'r   r   Nc                 óð   ‡— t          | t          ¦  «        s| g} g }| D ]G}|                     ¦   «         }|d„ t          |¦  «        D ¦   «         z  }|                     |¦  «         ŒH‰rˆfd„|D ¦   «         n|S )a  
    Applies a given function to all frames in an image or a list of images.
    The frames are returned as a list of separate images.

    :param im: An image, or a list of images.
    :param func: The function to apply to all of the image frames.
    :returns: A list of images.
    c                 ó6   — g | ]}|                      ¦   «         ‘ŒS r   )Úcopy)Ú.0Úim_frames     r   ú
<listcomp>zall_frames.<locals>.<listcomp>I   s    € ÐEÐEÐE H�—’‘”ÐEÐEÐEr   c                 ó&   •— g | ]} ‰|¦  «        ‘ŒS r   r   )r'   r
   Úfuncs     €r   r)   zall_frames.<locals>.<listcomp>L   s!   ø€ Ð#Ð#Ð#˜ˆDˆD�‰HŒHÐ#Ð#Ð#r   )Ú
isinstanceÚlistÚtellr   r   )r
   r+   ÚimsÚ
imSequenceÚcurrents    `   r   Ú
all_framesr2   9   sœ   ø€ õ �b�$ÑÔð ØˆTˆà
€CØð !ð !ˆ
Ø—/’/Ñ#Ô#ˆàÐEÐEµ¸Ñ0DÔ0DÐEÑEÔEÑEˆà�Š˜Ñ Ô Ð Ð Ø'+Ð4Ð#Ð#Ð#Ð#˜sÐ#Ñ#Ô#Ð#°Ð4r   r   )r   r2   r   r   r   ú<module>r3      sL   ðð&#'ð #'ð #'ð #'ð #'ñ #'ô #'ð #'ðL5ð 5ð 5ð 5ð 5ð 5r   