
    ljz                    z   d dl mZ d dlZd dlZd dlZd dlmZ d dlmZm	Z	m
Z
 erd dlmZmZ dgZ ej        d          Zd=dZ e
d e	dddd           e	dddd           e	dddd           e	dddd           e	dd d           e	d!d" eg d#d$%          d&d'           e	d(ddd)           e	d*dd+d           e	d,ded-.           e	d/dd0d           e	d1dd2d           e	d3dd4d           e	d5dd6d           e	d7dd8d           e	d9d:d           e	d;ed<d'                    ZdS )>    )annotationsN)TYPE_CHECKING)Choiceoptionoption_group)ContextOptionglobal_optionsmanimctxr   paramr	   value
str | Nonereturntuple[int, int] | Nonec                    |dS 	 t          t          t          j        d|                    \  }}n=# t          $ r0 t
                              d           t          j                     Y nw xY w||fS )a/  If the ``value`` string is given, extract from it the GUI location,
    which should be in any of these formats: 'x;y', 'x,y' or 'x-y'.

    Parameters
    ----------
    ctx
        The Click context.
    param
        A Click option.
    value
        The optional string which will be parsed.

    Returns
    -------
    tuple[int, int] | None
        If ``value`` is ``None``, the return value is ``None``. Otherwise, it's
        the ``(x, y)`` location for the GUI.

    Raises
    ------
    ValueError
        If ``value`` has an invalid format.
    Nz[;,\-]zGUI location option is invalid.)	mapintresplit	Exceptionloggererrorsysexit)r   r   r   x_offsety_offsets        Z/home/agentuser/manim-venv/lib/python3.11/site-packages/manim/cli/render/global_options.pyvalidate_gui_locationr      s    4 }t bhy%&@&@AA((   6777




 hs   +2 7A,+A,zGlobal optionsz-cz--config_filez:Specify the configuration file to use for render settings.)helpdefaultz--custom_foldersTzqUse the folders defined in the [custom_folders] section of the config file to define the output folder structure.)is_flagr!   r    z--disable_cachingz;Disable the use of the cache (still generates cache files).z--flush_cachez"Remove cached partial movie files.)r"   r    r!   z--tex_templatez#Specify a custom TeX template file.z-vz--verbosity)DEBUGINFOWARNINGERRORCRITICALF)case_sensitivez<Verbosity of CLI output. Changes ffmpeg log level unless 5+.)typer    r!   z"--notify_outdated_version/--silentz+Display warnings for outdated installation.z--enable_guizEnable GUI interaction.z--gui_locationzStarting location for the GUI.)r!   callbackr    z--fullscreenz/Expand the window to its maximum possible size.z--enable_wireframez*Enable wireframe debugging mode in opengl.z--force_windowzhForce window to open when using the opengl renderer, intended for debugging as it may impact performancez	--dry_runzRRenders animations without outputting image or video files and disables the windowz--no_latex_cleanupzLPrevents deletion of .aux, .dvi, and .log files produced by Tex and MathTex.z--preview_commandzMThe command used to preview the output file (for example vlc for video files)z--seedz-Set the random seed to allow reproducibility.)r   r   r   r	   r   r   r   r   )
__future__r   loggingr   r   typingr   cloupr   r   r   clickr   r	   __all__	getLoggerr   r   r   r
        r   <module>r4      s   " " " " " "  				 



             . . . . . . . . . . &%%%%%%%%
		7	#	##  #  #  # L 
FI	   F=	   FJ	   F1	   F"GQUVVV
FV=== 
 
 
 L	 	 	 F,:	   F&	   F&-	   F>	   F9	   Fw	   Fa	   F[	   F\  
 F<	  wa ar3   