2bix+SSKrSSKrSSKrSSKJrJrJrJrJr SSK J r J r J r J r SSKJrJr Sr \b\ "5r "SS\5r"SS \5rg) N)AnsiForeAnsiBack AnsiStyleStyleBEL)enable_vt_processingWinTermWinColorWinStyle)windll winapi_testcX\rSrSrSrSrSrSrSrSr Sr S r S r \ S 5rS rg ) StreamWrapperz Wraps a stream (such as stdout), acting as a transparent proxy for all attribute access apart from method 'write()', which is delegated to our Converter instance. cXlX lgN)_StreamWrapper__wrapped_StreamWrapper__convertor)selfwrapped converters ڒ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/colorama/ansitowin32.py__init__StreamWrapper.__init__s!$c.[URU5$r)getattrr)rnames r __getattr__StreamWrapper.__getattr__st~~t,,rc:URR"U0UD6$r)r __enter__rargskwargss rr#StreamWrapper.__enter__s~~''888rc:URR"U0UD6$r)r__exit__r$s rr)StreamWrapper.__exit__%s~~&&777rcXlgr__dict__)rstates r __setstate__StreamWrapper.__setstate__(s rcUR$rr,rs r __getstate__StreamWrapper.__getstate__+s }}rc:URRU5 gr)rwritertexts rr6StreamWrapper.write.s t$rcURnS[R;a*Ub'U[RLdU[R LagUR nU"5$![a gf=f)NPYCHARM_HOSTEDTF)rosenvironsys __stdout__ __stderr__isattyAttributeError)rstream stream_isattys rrAStreamWrapper.isatty1sb rzz )!v'?6S^^C[ #"MMM!? "  s A A,+A,c`URnUR$![[4a gf=fNT)rclosedrB ValueError)rrCs rrHStreamWrapper.closed=s3 ==  +  s --) __convertorr- __wrappedN)__name__ __module__ __qualname____firstlineno____doc__rr r#r)r/r3r6rApropertyrH__static_attributes__rrrrsC % -9 8% #rrc\rSrSrSr\R "S5r\R "S5rSSjr Sr Sr S r S r S rS rS rSrSrSrSrSrg) AnsiToWin32Hz Implements a 'write()' method which, on Windows, will strip ANSI character sequences from the text, and if outputting to a tty, will convert them into win32 function calls. z?\[((?:\d|;)*)([a-zA-Z])?z?\]([^]*)()?Nc^XlX@l[X5Ul[R S:HnU=(a [ 5nUR5nU(+=(d [U5nURR(+=(a URR5n U=(a U(+n UcU =(d U (+nX0l Uc U =(a U nX l UR5UlUR[ R"LUlg![a SnNf=f)Nnt)r autoresetrrCr<rrfileno Exceptionr rHrAstripconvertget_win32_calls win32_callsr>stderr on_stderr) rrr_r^r[ on_windowsconversion_supportedfdsystem_has_native_ansihave_ttyneed_conversions rrAnsiToWin32.__init__Qs #$G2 WW_ *;km !B&0!K3G3K{{)))Bdkk.@.@.B.M7M3M =#38|E  ?%2(G  //13) B sD D,+D,cfUR=(d UR=(d UR$)a: True if this class is actually needed. If false, then the output stream will not be affected, nor will win32 calls be issued, so wrapping stdout is not actually required. This will generally be False on non-Windows platforms, unless optional functionality like autoreset has been requested using kwargs to init() )r_r^r[r2s r should_wrapAnsiToWin32.should_wrapys ||;tzz;T^^;rc UR(Ga[(Ga0[R[R4_[R [R [R 4_[R[R [R4_[R[R [R4_[R[R[R4_[R[R[R4_[R[R[R4_[R [R[R 4_[R"[R[R"4_[R$[R[R$4_[R&[R[R&4_[R([R[R*4_[R,[R4_[R.[R[RS4_[R0[R[RS4_[R2[R[RS4_[R4[R[R S4_0[R6[R[R"S4_[R8[R[R$S4_[R:[R[R&S4_[R<[R[R*S4_[>R[R@[R4_[>R[R@[R4_[>R[R@[R4_[>R [R@[R 4_[>R"[R@[R"4_[>R$[R@[R$4_[>R&[R@[R&4_[>R([R@[R*4_[>R,[R@4_[>R.[R@[RS4_[>R0[R@[RS4_[>R2[R@[RS4_[>R4[R@[R S4_E[>R6[R@[R"S4[>R8[R@[R$S4[>R:[R@[R&S4[>R<[R@[R*S40E$[C5$rG)"r_wintermr RESET_ALL reset_allBRIGHTstyler DIMNORMALrBLACKforer REDGREENYELLOWBLUEMAGENTACYANWHITEGREYRESET LIGHTBLACK_EX LIGHTRED_EX LIGHTGREEN_EXLIGHTYELLOW_EX LIGHTBLUE_EXLIGHTMAGENTA_EX LIGHTCYAN_EX LIGHTWHITE_EXrbackdictr2s rr`AnsiToWin32.get_win32_callss << '  w||X\\: 'x~~ >'',,!@'  hmm<'  7<<1A1A"B'  hmm<'x}} =' 0'&&x~~t(L'$$w||X\\4&H' &&x~~t(L!'"''',,)N#'$%% hmmT'J%'&((7<<9I9I4*P''(%% hmmT'J)'*&&x}}d(K+',x~~ >-'. w||X\\:/'0x~~ >1'2',,!@3'4  hmm<5'6  7<<1A1A"B7'8  hmm<9':x}} =;'< 0='>&&x~~t(L?'@$$w||X\\4&HA'B&&x~~t(LC'D''',,)NE'F%% hmmT'J((7<<9I9I4*P%% hmmT'J&&x}}d(KM'' Pv rcUR(dUR(aURU5 O5URR U5 URR 5 UR (aUR5 ggr)r^r_write_and_convertrr6flushr[rqr7s rr6AnsiToWin32.writesU ::  " "4 ( LL  t $ LL   >> NN  rcUR(aURSS5 gUR(dFURR(d*UR R [R5 ggg)Nmr) r_ call_win32r^rCrHrr6rrpr2s rrqAnsiToWin32.reset_allsG << OOC &DKK$6$6 LL  u /%7rc*SnURU5nURRU5HFnUR5upEUR XU5 UR "UR 56 UnMH UR X[U55 g)z Write the given text to our wrapped stream, stripping any ANSI sequences from the text, and optionally converting them into win32 calls. rN) convert_osc ANSI_CSI_REfinditerspanwrite_plain_text convert_ansigroupslen)rr8cursormatchstartends rrAnsiToWin32.write_and_converts %%%..t4EJE  ! !$ 6   u||~ .F 5 dCI6rc~X#:a8URRXU5 URR5 ggr)rr6r)rr8rrs rrAnsiToWin32.write_plain_texts2 ; LL  t# / LL    rclUR(a#URX!5nURX#5 ggr)r_extract_paramsr)r paramstringcommandparamss rrAnsiToWin32.convert_ansis* <<((>F OOG , rc&US;aH[SURS555n[U5S:aUS-n[U5S:aMU$[SURS555n[U5S:XaUS;aS nU$US ;aSnU$) NHfc3Z# UH!n[U5S:wa [U5OSv M# g7f)rrNrint.0ps r -AnsiToWin32.extract_params..s%XAWASVq[3q6a7AWs)+;)rc3Z# UH!n[U5S:wdM[U5v M# g7f)rNrrs rrrs$Q+AaSVq[63q66+As++rJKmrABCD)tuplesplitr)rrrrs rrAnsiToWin32.extract_paramss d?XARARSVAWXXFf+/$f+/ Q;+<+,,, $ 0 0 7I$Q K#~$$S)Q.(..s3FayD())&)45 rc8URR5 gr)rrr2s rrAnsiToWin32.flushs r)r[r_rcrCr^rar)NNF)rMrNrOrPrQrecompilerrrrlr`r6rqrrrrrrrrSrTrrrVrVHsf **FGK**<=K&4P<*X0 7 ! - $B,  rrV)rr>r<ansirrrrrror r r r win32r robjectrrVrTrrrsL ;;FF&  iG5F5pM&Mr