+
     im
  c                  s   ^ RI Ht ^ RIt^ RIHt ^RIHtHt ]P                  ! R4      t	R R lt
 ! R R	]P                  4      tR
 R lt]P                  ! ]P                  ]]
4       ]P                  ! ]P                  ]4       ]P                   ! ]P                  R4       ]P"                  ! ]P                  R4       R# )    )annotationsN)IO)Image	ImageFiles   \s*#define[ \t]+.*_width[ \t]+(?P<width>[0-9]+)[\r\n]+#define[ 	]+.*_height[ 	]+(?P<height>[0-9]+)[
]+(?P<hotspot>#define[ 	]+[^_]*_x_hot[ 	]+(?P<xhot>[0-9]+)[
]+#define[ 	]+[^_]*_y_hot[ 	]+(?P<yhot>[0-9]+)[
]+)?[\000-\377]*_bits\[]c               s     V ^8  d   QhRRRR/# )   prefixZbytesreturnZbool format   "9/usr/lib64/python3.14/site-packages/PIL/XbmImagePlugin.py__annotate__r   (   s     2 2E 2d 2    c                s@    V P                  4       P                  R 4      # )s   #define)ZlstripZ
startswith)r   s   &r   _acceptr   (   s    ==?%%j11r   c                  s*    ] tR t^0tRtRtR R ltRtR# )XbmImageFileZXBMz
X11 Bitmapc               s    V ^8  d   QhRR/# )r   r   Noner   r	   r   r   r   ZXbmImageFile.__annotate__4   s     J Jt Jr   c                	s<   \         P                  V P                  P                  R 4      4      pV'       g   Rp\	        V4      h\        VP                  R4      4      p\        VP                  R4      4      pVP                  R4      '       dB   \        VP                  R4      4      \        VP                  R4      4      3V P                  R&   RV n        W43V n	        \        P                  ! RR
V P                  ,           VP                  4       4      .V n        R	# )i   znot a XBM fileZwidthZheighthotspotZxhotZyhot1xbmNr    r    )xbm_headZmatchfpZreadZSyntaxErrorZintZgroupZinfo_mode_sizer   _TilesizeZendtile)ZselfZmmsgZxsizeZysizes   &    r   _openZXbmImageFile._open4   s     NN477<<,-"Cc""AGGG$%AGGH%&779$'$8#aggfo:N#ODIIi 
\
__UFTYY,>HI	r   )r   r   r   N)Z__name__Z
__module__Z__qualname__Z__firstlineno__r
   Zformat_descriptionr   Z__static_attributes__r   r   r   r   r   0   s    F%J Jr   r   c               s(    V ^8  d   QhRRRRRRRR/# )	r   imzImage.Imager   z	IO[bytes]filenamezstr | bytesr   r   r   r	   r   r   r   r   I   s(      k y K D r   c           	     s   V P                   R 8w  d   RV P                    R2p\        V4      hVP                  RV P                  ^ ,           R2P	                  R4      4       VP                  RV P                  ^,           R2P	                  R4      4       V P
                  P                  R4      pV'       dW   VP                  RV^ ,           R2P	                  R4      4       VP                  R	V^,           R2P	                  R4      4       VP                  R
4       \        P                  ! W\        P                  ! RRV P                  ,           4      .4       VP                  R4       R# )r   zcannot write mode z as XBMz#define im_width Z
Zasciiz#define im_height r   z#define im_x_hot z#define im_y_hot s   static char im_bits[] = {
r   s   };
Nr   )
ZmodeZOSErrorZwriter   ZencodeZencoderinfoZgetr   _saver   )r   r   r    r   r   s   &&&  r   r!   r!   I   s   	ww#~"277)73clHH B/66w?@HH!"''!*R077@Ann  +G
$WQZL3::7CD
$WQZL3::7CDHH+,OOBY__UFRWW4DEFGHHWr   z.xbmz	image/xbm)Z
__future__r   ZreZtypingr   Z r   r   Zcompiler   r   r   r!   Zregister_openr
   Zregister_saveZregister_extensionZregister_mimer   r   r   <module>r"      s   * # 	   ::2J9&& J2(   L''w ?   L'' /   ,,f 5   L'' 5r   