



'''simple docstring'''






import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
     import ctypes
     import msvcrt  # noqa

     class 							a__(      ctypes.Structure			):
         # _fields is a specific attr expected by ctypes
         lowercase__				=					[("""size""", ctypes.c_int), ("""visible""", ctypes.c_byte)]
def    lowerCamelCase__ (		):
  if os.name == "nt":
    a		:      int       =  CursorInfo()
    a		:      Any       =  ctypes.windll.kernelaa.GetStdHandle(-11       )
    ctypes.windll.kernelaa.GetConsoleCursorInfo(_A				,    ctypes.byref(_A       )       )
    a		:      Union[str, Any]       =  False
    ctypes.windll.kernelaa.SetConsoleCursorInfo(_A				,    ctypes.byref(_A       )       )
  elif os.name == "posix":
    sys.stdout.write('\033[?25l'       )
    sys.stdout.flush()
def    lowerCamelCase__ (		):
  if os.name == "nt":
    a		:      Dict       =  CursorInfo()
    a		:      Optional[Any]       =  ctypes.windll.kernelaa.GetStdHandle(-11       )
    ctypes.windll.kernelaa.GetConsoleCursorInfo(_A				,    ctypes.byref(_A       )       )
    a		:      List[Any]       =  True
    ctypes.windll.kernelaa.SetConsoleCursorInfo(_A				,    ctypes.byref(_A       )       )
  elif os.name == "posix":
    sys.stdout.write('\033[?25h'       )
    sys.stdout.flush()

@contextmanager
def    lowerCamelCase__ (		):
  try:
    hide_cursor()
    yield
  finally:
    show_cursor()




'''simple docstring'''






import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


lowerCAmelCase:      Optional[Any]		 =		logging.get_logger(__name__)

class 							a__(      lowerCamelCase__			):







    def __init__(   self				:						Union[str, Any]		,    *__snake_case				:						List[str]		,    **__snake_case				:						Union[str, Any]			):
      warnings.warn(
          'The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
          ' Please use ChineseCLIPImageProcessor instead.'		,    __snake_case		,    )
      super().__init__(*__snake_case		,    **__snake_case			)