+
    i/                         R t ^ RIt^ RIt^ RIHt ]P
                  ! R4      t]P
                  ! R]P                  4      t]P
                  ! R4      t	R t
R tR tR# )	z
Type inference functions
N)numbersz%^(?P<number>\-?[0-9]*\.?[0-9]*\s?)\%$z
^(?: # HH:MM and HH:MM:SS
(?P<hour>[0-1]{0,1}[0-9]{2}):
(?P<minute>[0-5][0-9]):?
(?P<second>[0-5][0-9])?$)
|
^(?: # MM:SS.
([0-5][0-9]):
([0-5][0-9])?\.
(?P<microsecond>\d{1,6}))
zD^-?([\d]|[\d]+\.[\d]*|\.[\d]+|[1-9][\d]+\.?[\d]*)((E|e)[-+]?[\d]+)?$c                    \         P                  V 4      '       d    \        V 4      # R#   \         d    \	        T 4      u # i ; i)z.Explicitly convert a string to a numeric valueN)NUMBER_REGEXmatchint
ValueErrorfloat)values   &_/Users/agent/.openclaw/workspace/.venv/lib/python3.14/site-packages/openpyxl/utils/inference.pycast_numericr      sB    %  	 u: !  	 <	 s   
* AAc                    \         P                  V 4      pV'       d"   \        VP                  R4      4      ^d,          # R# )zGExplicitly convert a string to numeric value and format as a
percentagenumberN)PERCENT_REGEXr   r   group)r	   r   s   & r
   cast_percentager   #   s5     &EU[[*+c11     c                   \         P                  V 4      pV'       dg   VP                  R4      e   V R,          p RpMVP                  R4      f   RpMRp\        P                  P	                  W4      p V P                  4       # R# )zFExplicitly convert a string to a number and format as datetime or
timemicrosecondN:N   Nz%M:%S.%fsecondz%H:%Mz%H:%M:%S)
TIME_REGEXr   r   datetimestrptimetime)r	   r   patterns   &  r
   	cast_timer   ,   st     U#E;;}%1#JE G[["*G G!!**5:zz| r   )__doc__r   reopenpyxl.stylesr   compiler   VERBOSEr   r   r   r   r    r   r
   <module>r"      s`     	 #

CDZZ 
 ZZ

 zzab 2r   