+
     i  c                  s   ^ RI Ht ^ RIt^RIHtHtHt ^RIHt	 ^RIH
t ^RIHt ^RIHt R R	 lt ! R
 R]P
                  4      t]P"                  ! ]P$                  ]]4       ]P&                  ! ]P$                  RR.4       R# )    )annotationsN)Image	ImageFileImagePalette)i16le)i32leo8)DeferredErrorc                    V ^8  d   QhRRRR/# )   prefixZbytesreturnZbool format   "9/usr/lib64/python3.14/site-packages/PIL/FliImagePlugin.py__annotate__r      s      E d     c                sz    \        V 4      ^8  ;'       d'    \        V ^4      R9   ;'       d    \        V ^4      R9   # )i   )  i  )r    i   )leni16)r      &r   _acceptr      sD    Fq 	& 	&N..	& 	&Ov%r   c                  s^    ] tR t^,tRtRtRtR R ltR R ltR R	 lt	R
 R lt
R R ltRtR# )FliImageFileZFLIzAutodesk FLI/FLC AnimationFc                   V ^8  d   QhRR/# )r   r   Noner   r   r   r   r   FliImageFile.__annotate__1   s     ; ;t ;r   c                	s   V P                   P                  ^4      p\        V4      '       d   VR,          R8X  g   Rp\        V4      h\	        V^4      V n        V P
                  ^8  V n        RV n        \	        V^4      \	        V^
4      3V n        \        V^4      p\	        V^4      pVR8X  d   VR,          ^F,          pW0P                  R&   \        R4       Uu. uF  qUWU3NK  	  ppV P                   P                  ^4      p^V n        \	        V^4      R	8X  db   V P                  \        V4      ,           V n        V P                   P                  V P                  4       V P                   P                  ^4      p\	        V^4      R
8X  d   \	        V^4      pRp\        V4       F  p	Ve2   V P                   P                  V^,
          \        P                  4       V P                   P                  ^4      p\	        V^4      p
V
R9   d   T P!                  Yj^8X  d   ^M^ 4        M\        V4      pV'       d   K   M	  \"        P$                  ! RRP'                  R V 4       4      4      V n        RV n        V P                   V n        V P                   P/                  4       V n        V P                  ^ 4       R# u upi )i   :i   i   Ns     znot an FLI/FLC fileZPr   i  duration   i   i  NZRGBr   c              3  s~   "   T F3  w  rp\        V4      \        V4      ,           \        V4      ,           x  K5  	  R # 5iNr   )Z.0rgbs   &   r   Z	<genexpr>Z%FliImageFile._open.<locals>.<genexpr>e   s,     K7iqQBqEBqEMBqE117s   ;=)i   i   )fpreadr   ZSyntaxErrorr   n_framesis_animated_mode_sizei32Zinforange_FliImageFile__offsetseekosZSEEK_CUR_paletter   ZrawZjoinpalette_FliImageFile__frame_fptell_FliImageFile__rewind)selfsmsgr   ZmagicZar1   Znumber_of_subchunksZ
chunk_sizeZ_Z
chunk_types   &          r   _openZFliImageFile._open1   s)   GGLL

qx;6'Cc"" Aq	==1, 
AYAr
*
 q":Aq	F? 4B.H (		* ',Cj1jq9j1GGLLq!9 MMCF2DMGGLL'R Aq!9"%a)%)J./)GGLLa=GGLLO AY
(MM'b0@1aH V
!z 0 $''388K7KK

 77		!I 2s   J>c               s$    V ^8  d   QhRRRRRR/# )r   r1   zlist[tuple[int, int, int]]shiftintr   r   r   r   r   r   r   r   n   s"       : 3 4 r   c                	s   ^ p\        \        V P                  P                  ^4      4      4       F  pV P                  P                  ^4      pW5^ ,          ,           pV^,          pV^ 8X  d   RpV P                  P                  V^,          4      p\        ^ \	        V4      ^4       FM  pWV,          V,          pWV^,           ,          V,          pWV^,           ,          V,          p	WxV	3W&   V^,          pKO  	  K  	  R# )r    r   N)r,   r   r%   r&   r   )
r6   r1   r:   ZiZer7   Znr!   r"   r#   s
   &&&       r   r0   ZFliImageFile._paletten   s     s477<<?+,AQAaDA!AAvQU#A1c!fa(DEM!eH%!eH%AY
Q ) -r   c               r
   r   framer;   r   r   r   r   r   r   r   r      s      # $ r   c                	s    V P                  V4      '       g   R # WP                  8  d   V P                  ^ 4       \        V P                  ^,           V^,           4       F  pV P                  V4       K  	  R # r    )Z_seek_checkr2   _seekr,   )r6   r=   Zfs   && r   r.   ZFliImageFile.seek   sT    &&<<JJqMt||a'3AJJqM 4r   c               r
   r<   r   r   r   r   r   r      s     # #3 #4 #r   c                	s   \        V P                  \        4      '       d   V P                  P                  hV^ 8X  d5   RV n        V P                  P                  V P                  4       ^V n        MV P                  4        WP                  ^,           8w  d   RV 2p\        V4      hWn        V P                  V n
        V P                  P                  V P                  4       V P                  P                  ^4      pV'       g   Rp\        V4      h\        V4      pW@n        \        P                   ! RRV P"                  ,           V P                  4      .V n        V ;P                  V,          un        R# )r    zcannot seek to frame zmissing frame sizeZfliNr$   )r    r    )Z
isinstancer3   r	   Zexr2   r.   r5   r-   ZloadZ
ValueErrorr%   r&   ZEOFErrorr+   decodermaxblockr   Z_TileZsizetile)r6   r=   r8   r7   Z	framesizes   &&   r   r>   ZFliImageFile._seek   s   dhh..((++A:DLHHMM$--(DM IIKLL1$$)%1CS/! ((T]]#GGLLO&C3-F	(__UFTYY,>NO	"r   c               r   )r   r   r;   r   r   r   r   r   r      s      c r   c                	s    V P                   # r    )r2   )r6   r   r   r4   ZFliImageFile.tell   s    ||r   )Z__frameZ__offsetZ__rewindr3   r)   r*   r?   r%   r(   r'   r1   r@   N)Z__name__Z
__module__Z__qualname__Z__firstlineno__r   Zformat_descriptionZ!_close_exclusive_fp_after_loadingr9   r0   r.   r>   r4   Z__static_attributes__r   r   r   r   r   ,   s3    F5(-%;z$#@ r   r   z.fliz.flc)Z
__future__r   r/   Z r   r   r   Z_binaryr   r   r   r+   r   Z_utilr	   r   r   Zregister_openr   Zregister_extensionsr   r   r   <module>rA      sn   " # 	 , , ! !   ~9&& ~H   L''w ?   ,--/? @r   