K iddlmZddlmZmZddlmZddlmZ d dZ GddejZ eje je e eje jd y ) ) annotations)BmpImagePluginImage)i16le)i32lec$|jdS)Ns) startswith)prefixs X/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/PIL/CurImagePlugin.py_acceptr s   [ ))ceZdZdZdZddZy) CurImageFileCURzWindows Cursorcp|jJ|jj}|jjd}t|s d}t |d}t t |dD]<}|jjd}|s|}#|d|dkDs/|d|dkDs;|}>|s d}t||jt|d |z|jd|jdd zf|_ |jdjd |jz g|_ y) Nznot a CUR filerrrzNo cursors were found )rr)extents)fptellreadr SyntaxErrorrangei16 TypeError_bitmapi32size_sizetile_replace)selfoffsetsmsgmis r _openzCurImageFile._open(s!ww""" GGLLOqz"Cc" " s1ay! A R A1!1!   )CC.  SBZ&()YYq\499Q<1#44 YYq\**6DII3E*FG rN)returnNone)__name__ __module__ __qualname__formatformat_descriptionr,rr rr$s F)Hrrz.curN)r bytesr-bool) __future__rrr_binaryrrrr!r BmpImageFiler register_openr2register_extensionr4rr r=sa$##!! *H>..HJL''w?,,f5r