+
    JV-jÄ  ã                  ó®   € ^ RI Ht ^ RIt^ RIHt ^ RIHt ^RIHtH	t	 Rt
]
'       d   ^RIHt R R	 ltR
 R lt ! R R4      t ! R R4      tR R ltR# )é    )ÚannotationsN)ÚBytesIO)ÚAny)ÚImageÚ	ImageFileF)ÚCapsuleTypec               ó    € V ^8„  d   QhRRRR/# )é   Úkwzdict[str, Any]ÚreturnzImageFile.ImageFile | None© )Úformats   "Ú\/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/PIL/ImageTk.pyÚ__annotate__r   +   s   € ÷ ñ ˜>ð Ð.Hñ ó    c                óº   € R pRV 9   d   V P                  R4      pM!RV 9   d   \        V P                  R4      4      pV'       g   R # \        P                  ! V4      # )NÚfileÚdata)Úpopr   r   Úopen)r   Úsources   & r   Ú_get_image_from_kwr   +   sI   € Ø€FØ�„|Ø—‘˜“‰Ø	�2ŒÜ˜Ÿ™ ›Ó(ˆßÙÜ�:Š:�fÓÐr   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r
   ÚcommandÚstrÚphotozPhotoImage | tkinter.PhotoImageÚptrr   r   ÚNoner   )r   s   "r   r   r   6   s,   € ÷ +ñ +Øð+Ø8ð+Ø?Jð+à	ñ+r   c                ó  € VP                   p VP                  W\        V4      4       R#   \        P                   dE    ^RIHp TP                  TP                  4       4       TP                  Y\        T4      4        R# i ; i)é   )Ú
_imagingtkN)	ÚtkÚcallÚreprÚtkinterÚTclErrorÚ r!   ÚtkinitÚ
interpaddr)r   r   r   r"   r!   s   &&&  r   Ú_pyimagingtkcallr*   6   sd   € ð 
�‰€Bð+Ø
�‰�¤ S£	Ö*øÜ×Ñô +õ 	!à×Ñ˜"Ÿ-™-›/Ô*Ø
�‰�¤ S£	×*ð+ús   Ž+ «ABÂBc                  óf   € ] tR t^ItRtRR R lltR R ltR R ltR	 R
 ltR R lt	R R lt
RtR# )Ú
PhotoImagea÷  
A Tkinter-compatible photo image.  This can be used
everywhere Tkinter expects an image object.  If the image is an RGBA
image, pixels having alpha 0 are treated as transparent.

The constructor takes either a PIL image, or a mode and a size.
Alternatively, you can use the ``file`` or ``data`` options to initialize
the photo image object.

:param image: Either a PIL image, or a mode string.  If a mode string is
              used, a size must also be given.
:param size: If the first argument is a mode string, this defines the size
             of the image.
:keyword file: A filename to load the image from (using
               ``Image.open(file)``).
:keyword data: An 8-bit string containing image data (as loaded from an
               image file).
Nc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r
   ÚimagezImage.Image | str | NoneÚsizeztuple[int, int] | Noner   r   r   r   r   )r   s   "r   r   ÚPhotoImage.__annotate__]   s2   € ÷ 'ñ 'à'ð'ð %ð'ð ð	'ð
 
ñ'r   c                	óz  € Vf   \        V4      pVf   Rp\        V4      h\        V\        4      '       d   TpR pVf   Rp\        V4      hMtVP                  pVR8X  dK   VP                  4        VP                  4        VP                  '       d   VP                  P                  MRpVP                  pVw  VR&   VR&   VR9  d   \        P                  ! V4      pWPn        W n        \        P                  ! R/ VB V n        V P                  P                   V n        V'       d   V P#                  V4       R # R # )	NúImage is requiredz+If first argument is mode, size is requiredÚPÚRGBÚwidthÚheight)Ú1ÚLr4   ÚRGBAr   )r   Ú
ValueErrorÚ
isinstancer   ÚmodeÚapply_transparencyÚloadÚpaletter/   r   ÚgetmodebaseÚ_PhotoImage__modeÚ_PhotoImage__sizer%   r,   Ú_PhotoImage__photor"   Úpaste)Úselfr.   r/   r   Úmsgr<   s   &&&,  r   Ú__init__ÚPhotoImage.__init__]   s  € ð Š=Ü& rÓ*ˆEàŠ=Ø%ˆCÜ˜S“/Ð!Ü˜œs×#Ò#ØˆDØˆEàŠ|ØC�Ü  “oÐ%ð ð
 —:‘:ˆDØ�sŒ{à×(Ñ(Ô*Ø—
‘
”Ø-2¯]¯]¨]�u—}‘}×)Ò)À�Ø—:‘:ˆDØ(,Ñ%ˆBˆw‰K˜˜H™àÐ0Ô0Ü×$Ò$ TÓ*ˆDàŒØŒÜ×)Ò)Ñ/¨BÑ/ˆŒØ—,‘,—/‘/ˆŒßØ�J‰J�uÖñ r   c               ó   € V ^8„  d   QhRR/# ©r
   r   r   r   )r   s   "r   r   r0   †   ó   € ÷ 	ñ 	˜ñ 	r   c                	óî   €  V P                   P                  pR T P                   n         T P                   P                  P	                  RRT4       R #   \         d     R # i ; i  \
         d     R # i ; i©Nr.   Údelete)rC   ÚnameÚAttributeErrorr"   r#   Ú	Exception©rE   rO   s   & r   Ú__del__ÚPhotoImage.__del__†   ój   € ð	Ø—<‘<×$Ñ$ˆDð !ˆ�‰Ôð	Ø�L‰L�O‰O× Ñ  ¨(°DÖ9øô	 ô 	Úð	ûô
 ô 	Úð	úó"   ‚A ª'A% ÁA"Á!A"Á%A4Á3A4c               ó   € V ^8„  d   QhRR/# ©r
   r   r   r   )r   s   "r   r   r0   ‘   ó   € ÷ !ñ !˜ñ !r   c                ó,   € \        V P                  4      # )zÌ
Get the Tkinter photo image identifier.  This method is automatically
called by Tkinter whenever a PhotoImage object is passed to a Tkinter
method.

:return: A Tkinter photo image identifier (a string).
)r   rC   ©rE   s   &r   Ú__str__ÚPhotoImage.__str__‘   ó   € ô �4—<‘<Ó Ð r   c               ó   € V ^8„  d   QhRR/# ©r
   r   Úintr   )r   s   "r   r   r0   ›   ó   € ÷ ñ �sñ r   c                ó(   € V P                   ^ ,          # ©z=
Get the width of the image.

:return: The width, in pixels.
©rB   r[   s   &r   r5   ÚPhotoImage.width›   ó   € ð �{‰{˜1�~Ðr   c               ó   € V ^8„  d   QhRR/# r`   r   )r   s   "r   r   r0   £   ó   € ÷ ñ ˜ñ r   c                ó(   € V P                   ^,          # ©z?
Get the height of the image.

:return: The height, in pixels.
re   r[   s   &r   r6   ÚPhotoImage.height£   rg   r   c               ó    € V ^8„  d   QhRRRR/# )r
   ÚimúImage.Imager   r   r   )r   s   "r   r   r0   «   s   € ÷ >ñ >˜ð >¨ñ >r   c                óp  € VP                  4       pVP                  pVP                  4       '       d   VP                  V P                  8w  dR   \
        P                  P                  V P                  VP                  4      pVP                  WC4       VP                  p\        RV P                  V4       R# )a  
Paste a PIL image into the photo image.  Note that this can
be very slow if the photo image is displayed.

:param im: A PIL image. The size must match the target region.  If the
           mode does not match, the image is converted to the mode of
           the bitmap image.
ÚPyImagingPhotoN)Úgetimrn   Úisblockr<   rA   r   ÚcoreÚ	new_blockr/   Úconvert2r   r*   rC   )rE   rn   r   r.   Úblocks   &&   r   rD   ÚPhotoImage.paste«   sv   € ð �h‰h‹jˆØ—‘ˆØ�}‰}�Š "§'¡'¨T¯[©[Ô"8Ü—J‘J×(Ñ(¨¯©°b·g±gÓ>ˆEØ�N‰N˜5Ô(Ø—)‘)ˆCäÐ)¨4¯<©<¸Ö=r   )Ú__modeÚ__photoÚ__sizer"   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rG   rS   r\   r5   r6   rD   Ú__static_attributes__r   r   r   r,   r,   I   s+   † ñ÷&'õR	õ!õõ÷>ñ >r   r,   c                  óZ   € ] tR t^ÃtRtRR R lltR R ltR R ltR	 R
 ltR R lt	Rt
R# )ÚBitmapImageaÀ  
A Tkinter-compatible bitmap image.  This can be used everywhere Tkinter
expects an image object.

The given image must have mode "1".  Pixels having value 0 are treated as
transparent.  Options, if any, are passed on to Tkinter.  The most commonly
used option is ``foreground``, which is used to specify the color for the
non-transparent parts.  See the Tkinter documentation for information on
how to specify colours.

:param image: A PIL image.
Nc               ó$   € V ^8„  d   QhRRRRRR/# )r
   r.   zImage.Image | Noner   r   r   r   r   )r   s   "r   r   ÚBitmapImage.__annotate__Ñ   s'   € ÷ Hñ HÐ0ð H¸sð HÀtñ Hr   c                	óà   € Vf   \        V4      pVf   Rp\        V4      hVP                  V n        VP                  V n        \        P                  ! RRVP                  4       /VB V n	        R # )Nr2   r   r   )
r   r:   r<   Ú_BitmapImage__moder/   Ú_BitmapImage__sizer%   rƒ   ÚtobitmapÚ_BitmapImage__photo)rE   r.   r   rF   s   &&, r   rG   ÚBitmapImage.__init__Ñ   s\   € àŠ=Ü& rÓ*ˆEàŠ=Ø%ˆCÜ˜S“/Ð!Ø—j‘jˆŒØ—j‘jˆŒä×*Ò*ÑG°·±Ó0@ÐGÀBÑGˆŽr   c               ó   € V ^8„  d   QhRR/# rJ   r   )r   s   "r   r   r…   Þ   rK   r   c                	óî   €  V P                   P                  pR T P                   n         T P                   P                  P	                  RRT4       R #   \         d     R # i ; i  \
         d     R # i ; irM   )rŠ   rO   rP   r"   r#   rQ   rR   s   & r   rS   ÚBitmapImage.__del__Þ   rU   rV   c               ó   € V ^8„  d   QhRR/# r`   r   )r   s   "r   r   r…   é   rb   r   c                ó(   € V P                   ^ ,          # rd   ©rˆ   r[   s   &r   r5   ÚBitmapImage.widthé   rg   r   c               ó   € V ^8„  d   QhRR/# r`   r   )r   s   "r   r   r…   ñ   ri   r   c                ó(   € V P                   ^,          # rk   r‘   r[   s   &r   r6   ÚBitmapImage.heightñ   rg   r   c               ó   € V ^8„  d   QhRR/# rX   r   )r   s   "r   r   r…   ù   rY   r   c                ó,   € \        V P                  4      # )zÏ
Get the Tkinter bitmap image identifier.  This method is automatically
called by Tkinter whenever a BitmapImage object is passed to a Tkinter
method.

:return: A Tkinter bitmap image identifier (a string).
)r   rŠ   r[   s   &r   r\   ÚBitmapImage.__str__ù   r^   r   )ry   rz   r{   )N)r|   r}   r~   r   r€   rG   rS   r5   r6   r\   r�   r   r   r   rƒ   rƒ   Ã   s&   † ñ÷Hõ	õõ÷!ñ !r   rƒ   c               ó    € V ^8„  d   QhRRRR/# )r
   r   r,   r   ro   r   )r   s   "r   r   r     s   € ÷ ñ �Jð  ;ñ r   c                ó¤   € \         P                  ! RV P                  4       V P                  4       34      p\	        RWP                  4       4       V# )z:Copies the contents of a PhotoImage to a PIL image memory.r9   ÚPyImagingPhotoGet)r   Únewr5   r6   r*   rr   )r   rn   s   & r   Úgetimager�     s9   € ä	�Š�6˜EŸK™K›M¨5¯<©<«>Ð:Ó	;€BäÐ(¨%·±³Ô<à€Ir   )Ú
__future__r   r%   Úior   Útypingr   r'   r   r   ÚTYPE_CHECKINGÚ_typingr   r   r*   r,   rƒ   r�   r   r   r   Ú<module>r£      sH   ðõ6 #ã Ý Ý ç à€ßÝ$õõ+÷&s>ñ s>÷t>!ñ >!÷Br   