+
    xȇi4                        R t ^ RIHt ^ RIHt ^ RIHt ^ RIt^ RI	H
t
 ]'       d   ^ RIHt ^ RIHt  ! R R	4      tR
 R ltR# )z;
Module for formatting output data in console (to string).
)annotations)get_terminal_size)TYPE_CHECKINGN)pprint_thing)Iterable)DataFrameFormatterc                      ] tR t^tRtRR R lltR R ltR R ltR	 R
 lt]	R R l4       t
]	R R l4       tR R lt]	R R l4       tR R ltR R ltR R ltR R ltRtR# )StringFormatterz3Formatter for string representation of a dataframe.Nc               $    V ^8  d   QhRRRRRR/# )   fmtr   
line_widthz
int | NonereturnNone )formats   "h/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/io/formats/string.py__annotate__StringFormatter.__annotate__   s#     % %. %J %RV %    c                	b    Wn         VP                  V n        VP                  V n        W n        R # N)r   adjframer   )selfr   r   s   &&&r   __init__StringFormatter.__init__   s"    77YY
$r   c                   V ^8  d   QhRR/# r   r   strr   )r   s   "r   r   r      s      3 r   c                	    V P                  4       pV P                  P                  '       d   V V P                  P                   2pV# r   )_get_string_representationr   should_show_dimensionsdimensions_info)r   texts   & r   	to_stringStringFormatter.to_string   s>    ..088***VDHH4456Dr   c                   V ^8  d   QhRR/# )r   r   list[list[str]]r   )r   s   "r   r   r   #   s      o r   c                	    V P                   P                  4       pV P                   P                  '       d   V P                  V4      pV# r   )r   get_strcolsis_truncated_insert_dot_separatorsr   strcolss   & r   _get_strcolsStringFormatter._get_strcols#   s9    ((&&(88   11':Gr   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   )   s     < <C <r   c                	F   V P                   P                  P                  '       d   V P                  # V P	                  4       pV P
                  f   V P                  P                  ! ^.VO5!  # V P                  '       d   V P                  V4      # V P                  V4      # r   )r   r   empty_empty_info_liner/   r   r   adjoin_need_to_wrap_around_join_multiline_fit_strcols_to_terminal_widthr-   s   & r   r!   *StringFormatter._get_string_representation)   s    88>>(((##%??"88??1/w//$$$''00227;;r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   9   s     
 
# 
r   c                	    R \        V P                  4      P                   R\        V P                  P                  4       R\        V P                  P
                  4       2# )zEmpty z

Columns: z
Index: )typer   __name__r   columnsindexr   s   &r   r4    StringFormatter._empty_info_line8   sY     T$**%../ 0$TZZ%7%789 :"4::#3#3457	
r   c                   V ^8  d   QhRR/# )r   r   boolr   )r   s   "r   r   r   A   s     H Hd Hr   c                	    \        V P                  P                  R J ;'       g    V P                  P                  ^ 8  4      # r   )rC   r   max_colsr@   s   &r   r6   $StringFormatter._need_to_wrap_around@   s3    DHH%%-FF1B1BQ1FGGr   c                    V ^8  d   QhRRRR/# )r   r.   r(   r   r   )r   s   "r   r   r   D   s     
 
o 
/ 
r   c                	.   V P                   P                  V P                   P                  4      p\        V4      pV P                   P                  '       d   V P                  W4      pV P                   P                  '       d   V P                  W4      pV# r   )r   _get_formatted_indextr_framelenis_truncated_horizontally _insert_dot_separator_horizontalis_truncated_vertically_insert_dot_separator_vertical)r   r.   	str_indexindex_lengths   &&  r   r,   &StringFormatter._insert_dot_separatorsD   sn    HH11$((2C2CD	9~88---;;GRG88+++99'PGr   c                   V ^8  d   QhRR/# )r   r   intr   )r   s   "r   r   r   Q   s     R Rc Rr   c                	    V P                   P                  '       d   V P                   P                  ^,           # V P                   P                  #    )r   r?   
tr_col_numr@   s   &r   _adjusted_tr_col_num$StringFormatter._adjusted_tr_col_numP   s2    *.((...txx""Q&Qdhh>Q>QQr   c               $    V ^8  d   QhRRRRRR/# r   r.   r(   rQ   rT   r   r   )r   s   "r   r   r   T   s$      &69	r   c                	N    VP                  V P                  R .V,          4       V# )z ...)insertrY   )r   r.   rQ   s   &&&r   rM   0StringFormatter._insert_dot_separator_horizontalT   s$     	t006(\2IJr   c               $    V ^8  d   QhRRRRRR/# r\   r   )r   s   "r   r   r   Z   s$      &69	r   c                	N   V\        V P                  P                  4      ,
          pV P                  P                  p\	        V4       F  w  rVV P
                  P                  Wd,          4      pV P                  P                  '       d   WPP                  8H  pMR pV^8  g	   V'       d   Rp	MRp	V^ 8X  d    V P                  P                  '       d   Rp
MV'       d   ^pRp
MRp
V P
                  P                  V	.WzR7      ^ ,          pVP                  WC,           V4       K  	  V# )Fz...z..leftright)mode)rK   r   rJ   
tr_row_num	enumerater   rL   rY   r?   justifyr^   )r   r.   rQ   n_header_rowsrow_numixcolcwidth
is_dot_coldotsdot_modedot_strs   &&&         r   rO   .StringFormatter._insert_dot_separator_verticalZ   s     %s488+<+<'==((%% )GBXX\\#,/Fxx111#<#<<
"
zZQw488>>>!""hh&&vv&EaHGJJw.8- *. r   c                    V ^8  d   QhRRRR/# )r   strcols_inputzIterable[list[str]]r   r   r   )r   s   "r   r   r   x   s      $  $-@  $S  $r   c                	|   V P                   p^p\        V4      pV P                  P                  '       dl   VP	                  ^ 4      pT\
        P                  ! V Uu. uF  q`P                  P                  V4      NK  	  up4      P                  4       V,           ,          pV UUu. uFa  p\        V4      ^ 8  dM   \
        P                  ! V Uu. uF  q`P                  P                  V4      NK  	  up4      P                  4       M^ NKc  	  pppVf   Q h\        W4      p	\        V	4      p
. p^ p\        V	4       F  w  rWLV pV P                  P                  '       d   VP                  ^ X4       V
^8  dr   \        VR,          4      pV\        V4      8:  d7   W^,
          8  d*   VP                  R.R.V^,
          ,          ,           4       MVP                  R.V,          4       VP                  V P                  P                  ! V.VO5!  4       TpK  	  RP                  V4      # u upi u upi u uppi )rW   z \z   z

)r   listr   r?   popnparrayr   rK   max_binifyrf   r^   appendr5   join)r   rs   lwidthadjoin_widthr.   idxxrk   
col_widthscol_binsnbinsstr_lststartiendrownrowss   &&               r   r7   StringFormatter._join_multilinex   s   }%88>>>++a.Cbhh=AQ=>BBD|SSF 
 ?B#hlBHHs3s!hhll1os3488:PQQ 	 

 !!!:.H)FA$Cxx~~~

1c"qyCG#g,&1qy=JJw$519)==>JJuu}-NN488??<>#>?E * {{7##3  > 4
s   #H.
&)H8#H32H83H8c                    V ^8  d   QhRRRR/# )r   r.   r(   r   r   r   )r   s   "r   r   r      s     !, !,o !,# !,r   c                	   ^ RI Hp V P                  P                  ! ^.VO5!  P	                  R4      pV! V4      P
                  P                  4       P                  4       p\        4       w  rVWE,
          pV^,           pT! V U	u. uF0  q! V	4      P
                  P                  4       P                  4       NK2  	  up	4      p
\        V
4      p^ pV^ 8  dk   V^8  dd   V^,          p\        V^,          4      pV
P                  V,          pW,          pW^,           ,          pV
P                  V4      p
\        V
4      pKq  WP                  P                  ,
          p\        V^4      pVV P                  n        V P                  P                  4        V P                  4       pV P                  P                  ! ^.VO5!  # u up	i )    )Series
)pandasr   r   r5   splitr   rK   r{   r   roundr?   dropr   max_cols_fittedtruncater/   )r   r.   r   linesmax_lenwidth_difadj_difelecol_lensn_colscountermidmid_ixcol_lenr   s   &&               r   r8   .StringFormatter._fit_strcols_to_terminal_width   sh   !,G,2248-##'')--/$&o''J'36#;??..0446'JKXkfqjqLG
#C^^C(F&G{"G}}V,H]F !88>>1oq1#2  	##%xxq+7++/ Ks   6G)r   r   r   r   r   )r=   
__module____qualname____firstlineno____doc__r   r%   r/   r!   propertyr4   r6   r,   rY   rM   rO   r7   r8   __static_attributes__r   r   r   r	   r	      sx    =%< 
 
 H H
 R R< $D!, !,r   r	   c               $    V ^8  d   QhRRRRRR/# )r   colsz	list[int]r   rT   r   r   )r   s   "r   r   r      s!      )   r   c                ^   ^p. p^ p\        V 4      ^,
          p\        V 4       Fk  w  rgWr,           pWH,          pWV8X  d   V^,           V8  ;'       d    V^ 8  p	MV^,           V8  ;'       d    V^ 8  p	V	'       g   KX  VP                  V4       TpKm  	  VP                  \        V 4      4       V# rV   )rK   rf   r}   )
r   r   r   bins
curr_widthi_last_columnr   w
w_adjoinedwraps
   &&        r   r|   r|      s    LDJIMM$%
 
>J.881q5D>J.881q5D4KKN#J   	KKD	Kr   )r   
__future__r   shutilr   typingr   numpyry   pandas.io.formats.printingr   collections.abcr   pandas.io.formats.formatr   r	   r|   r   r   r   <module>r      s6    # $    3(;g, g,Tr   