+
    NV-jZ  ã                  óì   € R t ^ RIHt ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RI	H
t
Ht ^ RIHt ]
'       d   ^ RIHt ]]P                   3R R ll4       t]P                   3R	 R
 lltR R ltRR R lltR# )zx
Helpers for configuring locale settings.

Name `localization` is chosen to avoid overlap with builtin `locale` module.
)Úannotations)ÚcontextmanagerN)ÚTYPE_CHECKINGÚcast)Úoptions)Ú	Generatorc               ó$   € V ^8„  d   QhRRRRRR/# )é   Ú
new_localezstr | tuple[str, str]Úlc_varÚintÚreturnz Generator[str | tuple[str, str]]© )Úformats   "Úl/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/pandas/_config/localization.pyÚ__annotate__r      s$   € ÷  1ñ  1Ø%ð 1Ø/2ð 1à%ñ 1ó    c              #  ó$  "  € \         P                  ! V4      p \         P                  ! W4       \         P                  ! 4       w  r4Ve   Ve   V RV 2x € MV x € \         P                  ! W4       R#   \         P                  ! Y4       i ; i5i)a	  
Context manager for temporarily setting a locale.

Parameters
----------
new_locale : str or tuple
    A string of the form <language_country>.<encoding>. For example to set
    the current locale to US English with a UTF8 encoding, you would pass
    "en_US.UTF-8".
lc_var : int, default `locale.LC_ALL`
    The category of the locale being set.

Notes
-----
This is useful when you want to run a particular block of code under a
particular locale, without globally setting the locale. This probably isn't
thread-safe.
NÚ.)ÚlocaleÚ	setlocaleÚ	getlocale)r
   r   Úcurrent_localeÚnormalized_codeÚnormalized_encodings   &&   r   Ú
set_localer      s}   é € ô. ×%Ò% fÓ-€Nð1Ü×Ò˜Ô,Ü/5×/?Ò/?Ó/AÑ,ˆØÒ&Ð+>Ò+JØ$Ð% QÐ':Ð&;Ð<Ó<àÒä×Ò˜Ö0øŒ×Ò˜Õ0üs   ‚BšAA5 ÁBÁ5BÂBc               ó$   € V ^8„  d   QhRRRRRR/# )r	   ÚlcÚstrr   r   r   Úboolr   )r   s   "r   r   r   =   s!   € ÷ ñ �sð  Cð ¸Dñ r   c                ó°   €  \        WR7      ;_uu_ 4         RRR4       R#   + '       g   i     R# ; i  \        \        P                  3 d     R# i ; i)a6  
Check to see if we can set a locale, and subsequently get the locale,
without raising an Exception.

Parameters
----------
lc : str
    The locale to attempt to set.
lc_var : int, default `locale.LC_ALL`
    The category of the locale being set.

Returns
-------
bool
    Whether the passed locale can be set
)r   NTF)r   Ú
ValueErrorr   ÚError)r   r   s   &&r   Úcan_set_localer#   =   sI   € ð"Ü˜×*Ö*Ø÷ +ñ ÷ +Ö*ñ ûô	 œŸ™Ð%ô âðús#   ‚6 –"˜6 ¢3	­6 ³6 ¶AÁAc               ó$   € V ^8„  d   QhRRRRRR/# )r	   Úlocaleszlist[str] | strÚ	normalizer   r   ú	list[str]r   )r   s   "r   r   r   X   s!   € ÷ ñ ˜Oð ¸ð Àñ r   c                ól   a€ V3R lV  4        Uu. uF  p\        V4      '       g   K  VNK  	  up# u upi )a>  
Return a list of normalized locales that do not throw an ``Exception``
when set.

Parameters
----------
locales : str
    A string where each locale is separated by a newline.
normalize : bool
    Whether to call ``locale.normalize`` on each locale.

Returns
-------
valid_locales : list
    A list of valid locales.
c              3  óœ   <"  € T FA  pS'       d%   \         P                  ! VP                  4       4      MVP                  4       x € KC  	  R # 5i)N)r   r&   Ústrip)Ú.0Úlocr&   s   & €r   Ú	<genexpr>Ú!_valid_locales.<locals>.<genexpr>k   s6   øé € ð 
á�÷ .7ŒF×Ò˜SŸY™Y›[Ô)¸C¿I¹I»KÔGÛùs
   ƒA�<A)r#   )r%   r&   r,   s   &f r   Ú_valid_localesr/   X   sB   ø€ ô&
áô
óñ
ˆCô ˜#×÷ 	ˆñ
ñð ùò s   �1¨1c               ó$   € V ^8„  d   QhRRRRRR/# )r	   Úprefixz
str | Noner&   r   r   r'   r   )r   s   "r   r   r   s   s&   € ÷ =,ñ =,Øð=,àð=,ð ñ=,r   c           
     óR  € \         P                  ! 4       R9   d   \        P                  ! RR.4      pM. #  VP	                  R4      p. pV FF  p VP                  \        V\        \        \        P                  P                  4      R7      4       KH  	  V f   \        XV4      # \        P                  ! V  R24      pVP!                  RP#                  X4      4      p\        Wq4      #   \         d!    TP                  \        TRR7      4        KÈ  i ; i  \         d     L�i ; i)	aÝ  
Get all the locales that are available on the system.

Parameters
----------
prefix : str
    If not ``None`` then return only those locales with the prefix
    provided. For example to get all English language locales (those that
    start with ``"en"``), pass ``prefix="en"``.
normalize : bool
    Call ``locale.normalize`` on the resulting list of available locales.
    If ``True``, only locales that can be set without throwing an
    ``Exception`` are returned.

Returns
-------
locales : list of strings
    A list of locale strings that can be set with ``locale.setlocale()``.
    For example::

        locale.setlocale(locale.LC_ALL, locale_string)

On error will return an empty list (no locale available, e.g. Windows)

r   z-aó   
)Úencodingzwindows-1252z.*Ú
)ÚLinuxÚDarwin)ÚplatformÚsystemÚ
subprocessÚcheck_outputÚsplitÚappendr   r   r   Údisplayr4   ÚUnicodeErrorÚ	TypeErrorr/   ÚreÚcompileÚfindallÚjoin)r1   r&   Úraw_localesÚsplit_raw_localesÚout_localesÚxÚpatternÚfounds   &&      r   Úget_localesrK   s   s
  € ô: ‡‚ÓÐ/Ô/Ü ×-Ò-¨x¸Ð.>Ó?‰ð ˆ	ðð (×-Ñ-¨eÓ4ÐØˆÛ"ˆAðDØ×"Ñ"¤3 q´4¼¼W¿_¹_×=UÑ=UÓ3VÔ#WÖXñ #ð ‚~Ü˜k¨9Ó5Ð5ä�jŠj˜F˜8 2˜Ó'€GØ�O‰O˜DŸI™I kÓ2Ó3€EÜ˜%Ó+Ð+øô!  ô Dð ×"Ñ"¤3 q°>Ô#B×CðDûô ô Ùðús6   ·D ÁAC*ÂD Ã*'DÄD ÄDÄD ÄD&Ä%D&)NT)Ú__doc__Ú
__future__r   Ú
contextlibr   r   r8   rA   r:   Útypingr   r   Úpandas._config.configr   Úcollections.abcr   ÚLC_ALLr   r#   r/   rK   r   r   r   Ú<module>rS      sg   ðñõ #å %Û Û Û 	Û ÷õ
 *çÝ)ð à5;·]±]ö 1ó ð 1ðF +1¯-©-÷ õ6÷6=,ñ =,r   