+
     h8I  c                   s  a  RQ t90 t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ]P                  P                  R4      t]P                  P                  R4      tRt] ^ k ]P                  ! R4      tRRR R lltR R	 ltR
 R lt ! R R]P(                  4      t ! R R4      tRSR R lltRSR R lltR R ltR R ltR R ltR R ltR R ltRRR R lltRSR  R! lltRSR" R# llt R$ R% lt!R& R' lt"R( R) lt#RTR* R+ llt$RTR, R- llt%RTR. R/ llt&R0 R1 lt'RUR2 R3 llt( ! R4 R54      t)R6 R7 lt*R8 R9 lt+RTR: R; llt,]P                  P                  R4      '       d)   ]'       d!   ^R<I-H.t. R= R> lt/]	! 4       t0] ^k RVR? R@ lltMRA RB lt/RC RD lt.RE RF lt1RG RH lt2RI RJ lt3]3! RK ]$4      t4]3! RL ]%4      t5]3! RM ]&4      t6RN]!RO]"RP]#/t7] ^k RN]$RO]%RP]&/t8] ^k R# )W    NWeakKeyDictionaryZcygwinZwinz\033\[[;?0-9]*[a-zA-Z]c                s    V ^8  d   QhR\         P                  R\         P                  \        ,          R\         P                  \        ,          R\        R\        R\         P
                  /# )   streamencodingerrorsforce_readableforce_writablereturn)tBinaryIOOptionalstrboolTextIOformat   "2/usr/lib/python3.14/site-packages/click/_compat.py__annotate__r      s\      JJjjo JJsO 	
  XX    c           	      sN    Vf   \        V 4      pVf   Rp\        V VVRVVR7      # )NreplaceT)Zline_bufferingr   r   )get_best_encoding_NonClosingTextIOWrapper)r   r   r   r   r   s   &&&&&r   _make_text_streamr      s=     $V,~#%% r   c                0    V ^8  d   QhR\         R\        /# )r   r   r	   )r   r   r   r   r   r   r   $   s        r   c                sn     \         P                  ! V 4      P                  R8H  #   \         d     R# i ; i)z$Checks if a given encoding is ascii.asciiF)codecsZlookupnameZLookupError)r      &r   is_ascii_encodingr   $   s3    }}X&++w66 s   "% 44c                n    V ^8  d   QhR\         P                  \         P                  ,          R\        /# r   r   r	   r
   IOAnyr   r   r   r   r   r   ,   s&      add155k c r   c                s    \        V RR4      ;'       g    \        P                  ! 4       p\        V4      '       d   R# V# )z1Returns the default stream encoding if not found.r   Nzutf-8)getattrsysZgetdefaultencodingr   )r   rv   & r   r   r   ,   s4    	T	*	F	Fc.D.D.FBIr   c                   sf   a a ] tR t^4t oRV3R lV 3R llltV3R lR ltV3R lR ltRtVtV ;t	# )	r   c                s   < V ^8  d   QhRS[ P                  RS[ P                  S[,          RS[ P                  S[,          RS[RS[RS[ P
                  RR/# )	r   r   r   r   r   r   extrar	   N)r
   r   r   r   r   r$   r   __classdict__   "r   r   %_NonClosingTextIOWrapper.__annotate__5   si     < <

< **S/< 

3	<
 < < < 
<r   c                s   < \         P                  ! \         P                  \        WV4      4      ;V n        p\
        SV `  ! WV3/ VB  R # N)r
   castr   _FixupStream_streamZsuper__init__)selfr   r   r   r   r   r)   	__class__s   &&&&&&,r   r2   Z!_NonClosingTextIOWrapper.__init__5   sB     !"JJV^L!
 	
v 	6;U;r   c                   < V ^8  d   QhRR/# )r   r	   N r*   r,   r   r   r-   C   s       r   c                sL     V P                  4        R #   \         d     R # i ; ir.   )Zdetach	Exceptionr3   r   r   __del__Z _NonClosingTextIOWrapper.__del__C   s"    	KKM 		s    ##c                    < V ^8  d   QhRS[ /# r   r	   r   r*   r,   r   r   r-   I   s     % % %r   c                s6    V P                   P                  4       # r.   )r1   isattyr8   r   r   r=   Z_NonClosingTextIOWrapper.isattyI   s    ||""$$r   )r1   FF)
__name__
__module____qualname____firstlineno__r2   r9   r=   __static_attributes____classdictcell__Z__classcell__)r4   r+   s   @@r   r   r   4   s(     < < % % %r   r   c                   s   a  ] tR t^Nt o RtRV 3R lR lltV 3R lR ltV 3R lR ltV 3R lR	 ltV 3R
 lR lt	V 3R lR lt
RtV tR# )r0   a9  The new io interface needs more from streams than streams
traditionally implement.  As such, this fix-up code is necessary in
some circumstances.

The forcing of readable and writable flags are there because some tools
put badly patched objects on sys (one such offender are certain version
of jupyter notebook).
c                s@   < V ^8  d   QhRS[ P                  RS[RS[/# )r   r   r   r   )r
   r   r   r*   r,   r   r   _FixupStream.__annotate__X   s-     . .

. . 	.r   c                s*    Wn         W n        W0n        R # r.   )r1   _force_readable_force_writable)r3   r   r   r      &&&&r   r2   Z_FixupStream.__init__X   s     --r   c                :   < V ^8  d   QhRS[ RS[P                  /# r   r   r	   r   r
   r$   r*   r,   r   r   rE   b   s     + + + +r   c                .    \        V P                  V4      # r.   )r%   r1   r3   r      &&r   __getattr__Z_FixupStream.__getattr__b   s    t||T**r   c                s&   < V ^8  d   QhRS[ RS[/# )r   sizer	   )intbytesr*   r,   r   r   rE   e   s     ' '# '% 'r   c                s    \        V P                  R R4      pVe"   \        P                  ! \        V! V4      4      # V P                  P                  V4      # )read1N)r%   r1   r
   r/   rR   read)r3   rP   f   && r   rS   Z_FixupStream.read1e   sC    DLL'40=66%4))||  &&r   c                r:   r;   r<   r*   r,   r   r   rE   m   s     
 
$ 
r   c                s    V P                   '       d   R # \        V P                  RR4      pVe!   \        P                  ! \
        V! 4       4      #  V P                  P                  ^ 4       R #   \         d     R# i ; i)TreadableNF)rF   r%   r1   r
   r/   r   rT   r7   r3   xr(   r   rW   Z_FixupStream.readablem   sk    DLL*d3=66$$$	LLa    		s   A. .A=<A=c                r:   r;   r<   r*   r,   r   r   rE   y   s      $ r   c                s^   V P                   '       d   R # \        V P                  RR4      pVe!   \        P                  ! \
        V! 4       4      #  V P                  P                  R4       R #   \         d4     T P                  P                  R4        R #   \         d      R# i ; ii ; i)TwritableN r   F)rG   r%   r1   r
   r/   r   writer7   rX   r(   r   rZ   Z_FixupStream.writabley   s    DLL*d3=66$$$	LLr"   	""3'   	s*   A. .B,:BB(#B,'B((B,c                r:   r;   r<   r*   r,   r   r   rE      s      $ r   c                s   \        V P                  R R4      pVe!   \        P                  ! \        V! 4       4      #  V P                  P                  V P                  P                  4       4       R#   \         d     R# i ; i)seekableNFT)r%   r1   r
   r/   r   ZseekZtellr7   rX   r(   r   r]   Z_FixupStream.seekable   si    DLL*d3=66$$$	LLdll//12   		s   3A2 2B B)rF   rG   r1   Nr>   )r?   r@   rA   rB   Z__doc__r2   rO   rS   rW   rZ   r]   rC   rD   r+      @r   r0   r0   N   sF     . .+ +' '
 
  r   r0   c                z    V ^8  d   QhR\         P                  \         P                  ,          R\        R\        /# r   r   defaultr	   r
   r#   r$   r   r   r   r   r   r      s-      add155k D T r   c                 sh     \        V P                  ^ 4      \        4      #   \         d    Tu # i ; i)r    )
isinstancerT   rR   r7   r   rb   rN   r   _is_binary_readerrf      s0    &++a.%00 s   ! 11c                r`   ra   rc   r   r   r   r   r      s-     
 
add155k 
D 
T 
r   c                 s     V P                  R 4       R#   \         d,     T P                  R4        R#   \         d     Mi ; iTu # i ; i)r   r[   FT)r\   r7   re   rN   r   _is_binary_writerrg      sT    S   	LL 		s*    A5A AAA
Ac                    V ^8  d   QhR\         P                  \         P                  ,          R\         P                  \         P                  ,          /# r!   r
   r#   r$   r   r   r   r   r   r   r      3      QUU 

1::0F r   c                    \        V R 4      '       d&   \        P                  ! \        P                  V 4      # \	        V RR4      pVe8   \        VR4      '       d&   \        P                  ! \        P                  V4      # R# FZbufferNT)rf   r
   r/   r   r%   r   Zbufr(   r   _find_binary_readerrn      `    
 ''vvajj&))
&(D
)C ,S$77vvajj#&&r   c                rh   r!   ri   r   r   r   r   r      rj   r   c                 rk   rl   )rg   r
   r/   r   r%   rm   r(   r   _find_binary_writerrp      ro   r   c                sD    V ^8  d   QhR\         P                  R\        /# r!   )r
   r   r   r   r   r   r   r      s"     K KQXX K$ Kr   c                sB    \        \        V RR4      ;'       g    R4      # )z3A stream is misconfigured if its encoding is ASCII.r   Nr   )r   r%   r   r   r   _stream_is_misconfiguredrr      s      WVZ>II'JJr   c                s    V ^8  d   QhR\         P                  R\        R\         P                  \        ,          R\        /# )r   r   attrvaluer	   )r
   r   r   r   r   r   r   r   r   r      s;     Q Q188 Q3 Qqzz# QSW Qr   c                sR    \        WR4      pW28H  ;'       g    VRJ ;'       d    VRJ# )zA stream attribute is compatible if it is equal to the
desired value or the desired value is unset and the attribute
has a value.
N)r%   )r   rs   rt   Zstream_values   &&& r   _is_compat_stream_attrru      s2    
 6.L PPUd]%O%O|47OPr   c                s    V ^8  d   QhR\         P                  R\         P                  \        ,          R\         P                  \        ,          R\        /# )r   r   r   r   r	   )r
   r   r   r   r   r   r   r   r   r      s@     ; ;HH; !

3;9:C;	;r   c                sF    \        V RV4      ;'       d    \        V RV4      # )z[Check if a stream's encoding and errors attributes are
compatible with the desired values.
r   r   )ru   )r   r   r      &&&r   _is_compatible_text_streamrw      s.     "
H ; ;
 6
:;r   c                sR   V ^8  d   QhR\         P                  \         P                  ,          R\         P                  \        ,          R\         P                  \        ,          R\         P
                  \         P                  \         P                  ,          \        .\        3,          R\         P
                  \         P                  \         P                  ,          .\         P                  \         P                  ,          3,          R\        R\        R\         P                  /# )	r   text_streamr   r   	is_binaryfind_binaryr   r   r	   )	r
   r#   r$   r   r   Callabler   r   r   r   r   r   r   r      s     + +aee+jjo+ JJsO+ zz144;-t34	+
 QTT!%%[M1::ajj+AAB+ + + XX+r   c                 sT   V! V R 4      '       d'   \         P                  ! \         P                  V 4      pM^\         P                  ! \         P                  V 4      p \	        WV4      '       d   Vf   \        V 4      '       g   V # V! V 4      pVf   V # TpVf   Rp\        VVVVVR7      # )Fr   )r   r   )r
   r/   r   r   rw   rr   r   )	rx   r   r   ry   rz   r   r   Zbinary_readerZpossible_binary_readers	   &&&&&&&  r   _force_correct_text_streamr|      s     e$$qzz;7ffQXX{3 &kVDD!9+!F!F "-[!9 "). ~ %% r   c          
          V ^8  d   QhR\         P                  \         P                  ,          R\         P                  \        ,          R\         P                  \        ,          R\
        R\         P                  /# )r   text_readerr   r   r   r	   r
   r#   r$   r   r   r   r   r   r   r   r   r     Z      aeejjo JJsO 	
 XXr   c           	      4    \        V VV\        \        VR 7      # )r   )r|   rf   rn   )r~   r   r   r   rH   r   _force_correct_text_readerr     #     &% r   c          
      r}   )r   text_writerr   r   r   r	   r   r   r   r   r   r   (  r   r   c           	      r   )r   )r|   rg   rp   )r   r   r   r   rH   r   _force_correct_text_writerr   (  r   r   c                8    V ^8  d   QhR\         P                  /# r;   r
   r   r   r   r   r   r   8  s      !** r   c                  V    \        \        P                  4      p V f   \        R4      hV # )Nz6Was not able to determine binary stream for sys.stdin.)rn   r&   stdinRuntimeError)Zreader    r   get_binary_stdinr   8  s&     +F~STTMr   c                r   r;   r   r   r   r   r   r   ?        1:: r   c                  r   )Nz7Was not able to determine binary stream for sys.stdout.)rp   r&   stdoutr   Zwriterr   r   get_binary_stdoutr   ?  &     ,F~TUUMr   c                r   r;   r   r   r   r   r   r   F  r   r   c                  r   )Nz7Was not able to determine binary stream for sys.stderr.)rp   r&   stderrr   r   r   r   get_binary_stderrr   F  r   r   c                    V ^8  d   QhR\         P                  \        ,          R\         P                  \        ,          R\         P                  /# r   r   r   r	   r
   r   r   r   r   r   r   r   r   M  s=     X XjjoX./jjoXXXXr   c                 z    \        \        P                  W4      pVe   V# \        \        P                  WRR7      # )NTr   )_get_windows_console_streamr&   r   r   r   r   r'   rV   r   get_text_stdinr   M  s2     
%SYY	AB	~	%ciiRVWWr   c                r   r   r   r   r   r   r   r   V  =     Y YjjoY./jjoYXXYr   c                 r   NTr   )r   r&   r   r   r   rV   r   get_text_stdoutr   V  2     
%SZZ	BB	~	%cjj(SWXXr   c                r   r   r   r   r   r   r   r   _  r   r   c                 r   r   )r   r&   r   r   r   rV   r   get_text_stderrr   _  r   r   c                s   V ^8  d   QhR\         P                  \        R\        3,          R\        R\         P                  \        ,          R\         P                  \        ,          R\         P
                  \         P                  ,          /# )r   filezos.PathLike[str]moder   r   r	   )r
   ZUnionr   rQ   r   r#   r$   r   r   r   r   r   h  sg     
> 
>
''#)3.
/
>

> jjo
> JJsO	
>
 TT!%%[
>r   c                s@    RV9   d   \        W4      # \        WW#R7      # )z?Handles not passing ``encoding`` and ``errors`` in binary mode.br   r   )open)r   r   r   r   rH   r   _wrap_io_openr   h  s#     d{DX==r   c                s    V ^8  d   QhRRR\         R\        P                  \         ,          R\        P                  \         ,          R\        R\        P                  \        P
                  \        P                  ,          \        3,          /# )r   filenamezt.Union[str, os.PathLike[str]]r   r   r   atomicr	   )r   r
   r   r   ZTupler#   r$   r   r   r   r   r   u  sv     N) N).N)
N) jjoN) JJsO	N)
 N) WWQTT!%%[$N)r   c                 s  a R S9   p\         P                  ! V 4      p \         P                  ! V 4      R8X  d   \        ;QJ d    V3R lR 4       F  '       g   K   RM	  RM! V3R lR 4       4      '       d#   V'       d   \	        4       R3# \        W#R7      R3# V'       d   \        4       R3# \        W#R7      R3# V'       g   \        V SW#4      R3# RS9   d   \        R	4      hRS9   d   \        R
4      hRS9  d   \        R4      h^ RI
p^ RIp \         P                  ! V 4      P                  p\         P                  \         P                   ,          \         P"                  ,          p	V'       d   V	\%        \         R^ 4      ,          p	 \         P&                  P)                  \         P&                  P+                  V 4      RVP-                  R4      R 24      p
 \         P.                  ! YVf   RMT4      p Te   \         P>                  ! Y4       \        TSY#4      p\A        Y\         P&                  PC                  T 4      4      p\D        PF                  ! \D        PH                  \D        PJ                  ,          T4      R3#   \         d    Rp ELfi ; i  \         d   pTP                  TP0                  8X  g   \         P2                  R8X  d   TP                  TP4                  8X  dl   \         P&                  P7                  TP8                  4      '       d=   \         P:                  ! TP8                  \         P<                  4      '       d    Rp?EK  h Rp?ii ; i)r   Z-c              3   s,   <"   T F	  qS9   x  K  	  R # 5ir.   r6   )Z.0Zmr   s   & r   Z	<genexpr>Zopen_stream.<locals>.<genexpr>  s     2/QDy/s   warY   TFr   zAppending to an existing file is not supported, because that would involve an expensive `copy`-operation to a temporary file. Open the file in normal `w`-mode and copy explicitly if that's what you're after.z&Use the `overwrite`-parameter instead.z,Atomic writes only make sense with `w`-mode.NZO_BINARYz.__atomic-writeZ08xi  Znt)r   r   rY   l        )&osZfspathZfsdecodeZanyr   r   r   r   r   Z
ValueErrorerrnorandomZstatZst_modeZOSErrorZO_RDWRZO_CREATZO_EXCLr%   ZpathZjoinZdirnameZ	randranger   ZEEXISTr   ZEACCESZisdirr   ZaccessZW_OKZchmod_AtomicFileZrealpathr
   r/   r#   r$   )r   r   r   r   r   Zbinaryr   r   ZpermZflagstmp_filenameZfdZerU   Zafs   &f&&&          r   open_streamr   u  s    D[Fyy"H 
{{8#32/23332/222(*E11"HDeKK#%u,,x?FF XtX>DD d{,
 	
 d{ABB
$GHH  " 1 9 9 II

"RYY.EZ++
ww||GGOOH%f..w7<=
	t|eNB 
$b$1A	Qbgg&6&6x&@	AB66!$$quu+r"D((?     	ww%,,&4GGu||+GGMM!**--IIajj"''22	s7    J J JJM#'A9M!4MMM#c                   s   a  ] tR tRt o V 3R lR lt]V 3R lR l4       tRV 3R lR lltV 3R lR	 ltV 3R
 lR lt	V 3R lR lt
V 3R lR ltRtV tR# )r   i  c                sh   < V ^8  d   QhRS[ P                  S[ P                  ,          RS[RS[RR/# )r   rU   r   real_filenamer	   Nr"   r*   r,   r   r   _AtomicFile.__annotate__  s6      !$$quu+ S  QU r   c                s8    Wn         W n        W0n        R V n        R# )FN)_f_tmp_filename_real_filenameclosed)r3   rU   r   r   rH   r   r2   Z_AtomicFile.__init__  s    )+r   c                r:   r;   r   r*   r,   r   r   r     s     # #c #r   c                s    V P                   # r.   )r   r8   r   r   r   Z_AtomicFile.name  s    """r   c                s$   < V ^8  d   QhRS[ RR/# )r   deleter	   Nr<   r*   r,   r   r   r     s      D T r   c                s    V P                   '       d   R # V P                  P                  4        \        P                  ! V P
                  V P                  4       RV n         R # )NT)r   r   closer   r   r   r   )r3   r   rN   r   r   Z_AtomicFile.close  s<    ;;;


4%%t':':;r   c                rI   rJ   rK   r*   r,   r   r   r     s     & & & &r   c                rL   r.   )r%   r   rM   rN   r   rO   Z_AtomicFile.__getattr__  s    tww%%r   c                r5   )r   r	   r   r6   r*   r,   r   r   r     s      = r   c                s    V # r.   r6   r8   r   r   	__enter__Z_AtomicFile.__enter__  s    r   c                s   < V ^8  d   QhRS[ P                  S[ P                  S[,          ,          RS[ P                  RR/# )r   exc_type_r	   N)r
   r   ZTypeBaseExceptionr$   r*   r,   r   r   r     s9     0 0AFF=,A!B 0 0RV 0r   c                s.    V P                  VR JR7       R # )N)r   )r   )r3   r   r   s   &&*r   __exit__Z_AtomicFile.__exit__  s    

($.
/r   c                r:   r;   r   r*   r,   r   r   r     s      # r   c                s,    \        V P                  4      # r.   )Zreprr   r8   r   r   __repr__Z_AtomicFile.__repr__  s    DGG}r   )r   r   r   r   NF)r?   r@   rA   rB   r2   Zpropertyr   r   rO   r   r   r   rC   rD   r^   r_   r   r   r     sU       # # & & 0 0 r   r   c                s0    V ^8  d   QhR\         R\         /# )r   rt   r	   r   r   r   r   r   r     s     # #c #c #r   c                 s.    \         P                  R V 4      # )r[   )_ansi_reZsub)rt   r   r   
strip_ansir     s    <<E""r   c                r    r!   rc   r   r   r   r   r     s*     @ @add155k @d @r   c                 s    \        V \        \        34      '       d   V P                  p K*  V P                  P
                  P                  R 4      # )z
ipykernel.)rd   r0   r   r1   r4   r@   
startswithrq   r   r   _is_jupyter_kernel_outputr     s;    
Vl,DE
F
F&&11,??r   c                s    V ^8  d   QhR\         P                  \         P                  \         P                  ,          ,          R\         P                  \        ,          R\        /# r   r   colorr	   )r
   r   r#   r$   r   r   r   r   r   r     sB      JJqttAEE{#34::d3C	r   c                 s    Vf=   V f   \         P                  p \        V 4      '       * ;'       d    \        V 4      '       * # V'       * # r.   )r&   r   r=   r   )r   r   rN   r   should_strip_ansir     s=     }>YYF&>!KK*CF*K&KK9r   )r   c                $    V ^8  d   QhR\         /# r;   r   r   r   r   r   r      s     - - -r   c                  s*    ^ RI p V P                  4       # )r    N)localeZgetpreferredencoding)r   r   r   _get_argv_encodingr      s    **,,r   c                s    V ^8  d   QhR\         P                  R\         P                  \        ,          R\         P                  /# r   )r
   r   r   r   r   r   r   r   r     s5     # ##!"D!1#	
#r   c                sr  aa  \         P                  V 4      pVe   V# ^ RIp\	        W4      pVP                  WR7      o\        P                  ! \        P                  SP                  4      pVP                  oVV3R lpWen
         V\         V &   V#   \         d    Rp Li ; i  \         d     T# i ; i)zRSupport ANSI color and style codes on Windows by wrapping a
stream with colorama.
N)stripc                 sV   <  S! V 4      #   \          d    SP                  4        h i ; ir.   )r   Z	reset_all)Zs_writeansi_wrappers   &r   _safe_writeZ'auto_wrap_for_ansi.<locals>._safe_write  s0    ay   &&(s    ()_ansi_stream_wrappersgetr7   coloramar   ZAnsiToWin32r
   r/   r   r   r\   )	r   r   Zcachedr   r   r'   r   r   r   s	   &&     @@r   auto_wrap_for_ansir     s    	*..v6F M!&0++F+@VVAHHl112	 	,.!&) 	7  	F	0  			s#   B 		B' B$#B$'B65B6c                r   r;   r   r   r   r   r   r   .  s     S S Sr   c                  sr    \        \        P                  R R4      ;'       g    \        P                  ! 4       # )r   N)r%   r&   r   Zgetfilesystemencodingr6   r   r   r   r   .  s&    syy*d3RRs7P7P7RRr   c          	      s    V ^8  d   QhR\         P                  R\         P                  \        ,          R\         P                  \        ,          R\         P                  \         P                  ,          /# )r   rU   r   r   r	   )r
   r   r   r   r   r   r   r   r   1  sM      88 zz#89

3	
AHH	r   c                 s    R # r.   r6   )rU   r   r   rv   r   r   r   1  s     r   c                r   )r   rY   r	   )r   rQ   r   r   r   r   r   7  s        r   c                 s*    \        \        V 4      4      # r.   )Zlenr   )rY   r   r   term_lenr   7  s    z!}r   c                r    r!   rc   r   r   r   r   r   ;  s&      144; 4 r   c                 sH     V P                  4       #   \         d     R # i ; ir   )r=   r7   rq   r   r   r=   r=   ;  s%    }} s    !!c          	      sV   V ^8  d   QhR\         P                  . \         P                  \         P                  ,          3,          R\         P                  . \         P                  3,          R\         P                  . \         P                  \         P                  ,          3,          /# )r   src_funcwrapper_funcr	   )r
   r{   r   r   r   r   r   r   r   B  sm      jjQZZ112**R\* ZZAJJqxx(()r   c                 s6   a aa \        4       oR  VV V3R llpV# )c                sb    V ^8  d   QhR\         P                  \         P                  ,          /# r;   )r
   r   r   r   r   r   r   Z._make_cached_stream_func.<locals>.__annotate__H  s       !**QXX& r   c                  s   < S! 4       p V f   R #  SP                  V 4      pVe   V# S! 4       p VSV &   V#   \         d    R p L$i ; i  \         d     T# i ; ir.   )r   r7   )r   r'   cacher   r   s     r   funcZ&_make_cached_stream_func.<locals>.funcH  s{    >	6"B >I^	E&M 	  	B	  			s    6 A	 AA	AAr   )r   r   r   r   s   ff @r   _make_cached_stream_funcr   B  s     3D2EE & Kr   c                  "    \         P                  # r.   )r&   r   r6   r   r   <lambda>r   ^  s    syyr   c                  r   r.   )r&   r   r6   r   r   r   r   _      

r   c                  r   r.   )r&   r   r6   r   r   r   r   `  r   r   r   r   r   c                s   V ^8  d   Qh/ ^ \         9   dO   \        P                  \        P                  \        P                  .\        P                  3,          ,          ;R&   ^\         9   d9   \        P
                  \        P                  \        P                  3,          ;R&   ^\         9   dF   \        P                  \        \        P                  . \        P                  3,          3,          ;R&   ^\         9   dz   \        P                  \        \        P                  \        P                  \        ,          \        P                  \        ,          .\        P                  3,          3,          ;R&   # )r   r   r   binary_streamstext_streams)	__conditional_annotations__r
   r   r{   r   ZMutableMappingZMappingr   r   r   r   r   r   r      s     H GAJJqzz188*ahh*>?@ G H VU1++AHHahh,>?UI D 		#qzz"ajj.99: E P aiiQZZ_ajjo6@	AA Q r   r>   r   )NN)ZrNZstrictFr.   ):r   r   Zior   Zrer&   Ztypingr
   Zweakrefr   Zplatformr   ZCYGWINZWINr   Zcompiler   r   r   r   ZTextIOWrapperr   r0   rf   rg   rn   rp   rr   ru   rw   r|   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Z_winconsoler   r   r   r   r=   r   Z_default_text_stdinZ_default_text_stdoutZ_default_text_stderrr   r   r   )r   r_   r   <module>r      s    	 	 	 
  %		 	 	*	lle$CG  G::/0*%r// %4B BJ
$$KQ;+\  XYY
>N)b >#@ <<5!!c8-
 CTBUU# #NS8 //@.Q /0BOT /0BOT  >  ^oo  r   