8fHddlmZddlmZmZddlmZmZddlm Z ddl m Z ddl m Z ddlmZGd d e Zed kr dd lmZdd lmZeZed5Zededededededdededededddeddddn #1swxYwYeddSdS)) TracebackType)OptionalType)ConsoleRenderableType) JupyterMixin)Live)Spinner) StyleTypec FeZdZdZddddddded eed ed ed e d e f dZ e de fdZ e ddZ ddddddeed eed eed ee ddf dZddZddZdefdZd dZdeeedeedeeddfdZdS)!StatusaDisplays a status indicator with a 'spinner' animation. Args: status (RenderableType): A status renderable (str or Text typically). console (Console, optional): Console instance to use, or None for global console. Defaults to None. spinner (str, optional): Name of spinner animation (see python -m rich.spinner). Defaults to "dots". spinner_style (StyleType, optional): Style of spinner. Defaults to "status.spinner". speed (float, optional): Speed factor for spinner animation. Defaults to 1.0. refresh_per_second (float, optional): Number of refreshes per second. Defaults to 12.5. Ndotszstatus.spinnerg?g)@)consolespinner spinner_stylespeedrefresh_per_secondstatusrrrrrc||_||_||_t|||||_t |j||d|_dS)NtextstylerT)rr transient)rrrr _spinnerr renderable_live)selfrrrrrrs w/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/rich/status.py__init__zStatus.__init__s[ * fMQVWWW  O1     returnc|jSN)rrs rrzStatus.renderable,s }r!rc|jjS)z+Get the Console used by the Status objects.)rrr%s rrzStatus.console0sz!!r!)rrrc,|||_|||_|||_|Jt||j|j|j|_|j|jddS|j|j|j|jdS)aUpdate status. Args: status (Optional[RenderableType], optional): New status renderable or None for no change. Defaults to None. spinner (Optional[str], optional): New spinner or None for no change. Defaults to None. spinner_style (Optional[StyleType], optional): New spinner style or None for no change. Defaults to None. speed (Optional[float], optional): Speed factor for spinner animation or None for no change. Defaults to None. NrT)refresh)rrrr rrupdater)rrrrrs rr)z Status.update5s   DK  $!.D   DJ  #dk1C4:DM J  dot  < < < < < M [(:$* !     r!c8|jdS)zStart the status animation.N)rstartr%s rr+z Status.startUs r!c8|jdS)zStop the spinner animation.N)rstopr%s rr-z Status.stopYs r!c|jSr$)rr%s r__rich__zStatus.__rich__]s r!c.||Sr$)r+r%s r __enter__zStatus.__enter__`s  r!exc_typeexc_valexc_tbc.|dSr$)r-)rr2r3r4s r__exit__zStatus.__exit__ds r!)r"rr$)r"N)r"r)__name__ __module__ __qualname____doc__rrrstrr floatr propertyr rrr)r+r-r/r1r BaseExceptionrr6r!rrr s  &*#3$(    '"    !   "    *GX"""X" ,0"&-1!% (#   *    @.4 ./-('   r!r__main__)sleep)rz"[magenta]Covid detector booting upzImporting advanced AIzAdvanced Covid AI Readyz[bold blue] Scanning for Covidearth)rrz*Found 10,000,000,000 copies of Covid32.exez%[bold red]Moving Covid32.exe to Trash bouncingBallyellow)rrrNz&[bold green]Covid deleted successfully)typesrtypingrrrrrjupyterr liver rr rr rr7timerArlogr)printr?r!rrNsJ!!!!!!!!,,,,,,,,!!!!!!_____\___D z      giiG < = = a +,,, a -... a =w OOO a @AAA a :""    a  MM:;;;;;-s/B1D,,D03D0