+
    *:žg`±  ã                  óœ  € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIHt ^ RIHt ^ RIHtHtHt ^ RIHtHt ^ RIHt ^ RIHt ^ R	IHtHt ^ R
IH t H!t!H"t"H#t# ^ RI$H%t% ^ RI&H't'H(t( ^ RI)H*t* ]PV                  ! R4      t, ! R R]-4      t. ! R R].4      t/ ! R R].4      t0 ! R R].4      t1R5R lt2 ! R R4      t3 ! R R]34      t4R t5 ! R R]34      t6 ! R R ]34      t7 ! R! R"]34      t8 ! R# R$4      t9R% t:R5R& lt;R5R' lt<R(R)/R* R+ llt=R6R, R- llt>R. R/ lt?R7R0 R1 llt@R2 R3 ltA]BR48X  d
   ]:! 4        R# R# )8zÁ
babel.messages.frontend
~~~~~~~~~~~~~~~~~~~~~~~

Frontends for the message extraction functionality.

:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
)ÚannotationsN)ÚRawConfigParser)ÚStringIO)ÚBinaryIOÚIterableÚLiteral)ÚLocaleÚ
localedata)Ú__version__)ÚUnknownLocaleError)ÚDEFAULT_HEADERÚCatalog)ÚDEFAULT_KEYWORDSÚDEFAULT_MAPPINGÚcheck_and_call_extract_fileÚextract_from_dir)Úwrite_mo)Úread_poÚwrite_po)ÚLOCALTZÚbabelc                  ó   € ] tR t^,tRtR# )Ú	BaseError© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    Ú9/usr/lib/python3/dist-packages/babel/messages/frontend.pyr   r   ,   ó   † Ûr    r   c                  ó   € ] tR t^0tRtR# )ÚOptionErrorr   Nr   r   r    r!   r$   r$   0   r"   r    r$   c                  ó   € ] tR t^4tRtR# )Ú
SetupErrorr   Nr   r   r    r!   r&   r&   4   r"   r    r&   c                  ó   € ] tR t^8tRtRtR# )ÚConfigurationErrorz+
Raised for errors in configuration files.
r   N)r   r   r   r   Ú__doc__r   r   r    r!   r(   r(   8   s   † õr    r(   c                ó°  € . p\        V \        \        34      '       g   V .p V  Fr  pVf   K	  \        V\        \        34      '       d   VP                  \	        W1R7      4       KB  VP                  R \        V4      P                  V4       4       4       Kt  	  \        ;QJ d    R V 4       F  '       d   K   RM	  RM! R V 4       4      '       g   Q hV# )a¸  
Make a list out of an argument.

Values from `distutils` argument parsing are always single strings;
values from `optparse` parsing may be lists of strings that may need
to be further split.

No matter the input, this function returns a flat list of whitespace-trimmed
strings, with `None` values filtered out.

>>> listify_value("foo bar")
['foo', 'bar']
>>> listify_value(["foo bar"])
['foo', 'bar']
>>> listify_value([["foo"], "bar"])
['foo', 'bar']
>>> listify_value([["foo"], ["bar", None, "foo"]])
['foo', 'bar', 'foo']
>>> listify_value("foo, bar, quux", ",")
['foo', 'bar', 'quux']

:param arg: A string or a list of strings
:param split: The argument to pass to `str.split()`.
:return:
)Úsplitc              3  ó@   "  € T F  qP                  4       x € K  	  R # 5i©N©Ústrip)Ú.0Úss   & r!   Ú	<genexpr>Ú listify_value.<locals>.<genexpr>c   s   é € Ð<Ñ&; —7‘7—9�9Ó&;ùó   ‚c              3  óB   "  € T F  p\        V\        4      x € K  	  R # 5ir-   )Ú
isinstanceÚstr)r0   Úvals   & r!   r2   r3   d   s   é € Ð3©s¨Œz˜#œs×#Ð#«sùs   ‚FT)r6   ÚlistÚtupleÚextendÚlistify_valuer7   r+   Úall)Úargr+   Úoutr8   s   &&  r!   r<   r<   >   s¥   € ð4 €Cä�cœD¤%˜=×)Ò)ØˆeˆãˆØŠ;ÙÜ�cœD¤%˜=×)Ò)Ø�J‰J”} SÔ6Ô7ÙØ�
‰
Ñ<¤c¨#£h§n¡n°UÔ&;Ó<Ö<ñ ÷ ‹3Ñ3©sÓ3�3�3Š3Ñ3©sÓ3×3Ò3Ð3Ð3Ø€Jr    c                  óJ   € ] tR t^htRtRtRt/ t/ t]	t	RR lt
R tR tR tRtR# )	ÚCommandMixinNc                	óx   € Wn         V P                  4        R V n        RV n        R V n        ^ V n        ^ V n        R # )NF)ÚdistributionÚinitialize_optionsÚ_dry_runÚverboseÚforceÚhelpÚ	finalized)ÚselfÚdists   &&r!   Ú__init__ÚCommandMixin.__init__†   s7   € à ÔØ×ÑÔ!ØˆŒØˆŒØˆŒ
ØˆŒ	ØˆŽr    c                	ó   € R # r-   r   ©rJ   s   &r!   rD   ÚCommandMixin.initialize_options�   s   € Ùr    c                	óX   € V P                   '       g   V P                  4        ^V n         R# )é   N)rI   Úfinalize_optionsrO   s   &r!   Úensure_finalizedÚCommandMixin.ensure_finalized“   s   € Ø�~�~ˆ~Ø×!Ñ!Ô#ØˆŽr    c                	ó4   € \        R V P                   R24      h)zabstract method -- subclass z must override)ÚRuntimeErrorÚ	__class__rO   s   &r!   rS   ÚCommandMixin.finalize_options˜   s    € ÜØ*¨4¯>©>Ð*:¸.ÐIó
ð 	
r    )rE   rC   rI   rG   rH   rF   r   r-   )r   r   r   r   Úas_argsÚmultiple_value_optionsÚboolean_optionsÚoption_aliasesÚoption_choicesÚlogrL   rD   rT   rS   r   r   r    r!   rA   rA   h   sA   † ð
 €Gð  Ðð €Oð €Nð €Nð €Côòòö

r    rA   c                  óB   € ] tR t^žtRt. R
OtRR.tR tR tR t	R t
R	tR# )ÚCompileCatalogz+compile message catalogs to binary MO filesú	use-fuzzyÚ
statisticsNc                	óh   € R V n         RV n        RV n        RV n        RV n        RV n        RV n        R# ©ÚmessagesNF)ÚdomainÚ	directoryÚ
input_fileÚoutput_fileÚlocaleÚ	use_fuzzyrc   rO   s   &r!   rD   Ú!CompileCatalog.initialize_options³   s4   € Ø ˆŒØˆŒØˆŒØˆÔØˆŒØˆŒØˆŽr    c                	óú   € \        V P                  4      V n        V P                  '       g   V P                  '       g   \	        R 4      hV P
                  '       g    V P                  '       g   \	        R4      hR# R# )z<you must specify either the input file or the base directoryz=you must specify either the output file or the base directoryN)r<   rg   ri   rh   r$   rj   rO   s   &r!   rS   ÚCompileCatalog.finalize_options¼   sW   € Ü# D§K¡KÓ0ˆŒØ��ˆ t§~§~ ~ÜÐ\Ó]Ð]Ø××Ð¨¯¯¨ÜÐ]Ó^Ð^ñ )7Ñr    c                	óü   € ^ pV P                    F;  pV P                  V4      P                  4        F  pV\        V4      ,          pK  	  K=  	  V'       d   V P                  P                  RV4       V'       d   ^# ^ # )é    z%d errors encountered.)rg   Ú_run_domainÚvaluesÚlenr_   Úerror)rJ   Ún_errorsrg   Úerrorss   &   r!   ÚrunÚCompileCatalog.runÃ   sf   € ØˆØ—k”kˆFØ×*Ñ*¨6Ó2×9Ñ9Ö;�ØœC ›KÕ'’ó <ñ "÷ Ø�H‰H�N‰NÐ3°XÔ>ß�Ð% 1Ð%r    c           
     	óˆ  € . p. pV P                   '       Eg   V P                  '       dŸ   VP                  V P                  \        P                  P                  V P                  V P                  R V R24      34       VP                  \        P                  P                  V P                  V P                  R V R24      4       EMk\        P                  ! V P                  4       F©  p\        P                  P                  V P                  VR V R24      p\        P                  P                  V4      '       g   KY  VP                  WE34       VP                  \        P                  P                  V P                  VR V R24      4       K«  	  M�VP                  V P                  V P                   34       V P                  '       d   VP                  V P                  4       MHVP                  \        P                  P                  V P                  V P                  R V R24      4       V'       g   \        R4      h/ p\        V4       EFÁ  w  pw  rEW7,          p\        VR4      ;_uu_ 4       p	\        W”4      p
RRR4       V P                  '       dŒ   ^ p\        X
4      R,           F   pVP                   '       g   K  V^,          pK"  	  ^ p\#        V
4      '       d   V^d,          \#        V
4      ,          pV P$                  P'                  RV\#        V
4      WÕ4       X
P(                  '       d2   V P*                  '       g    V P$                  P'                  RV4       EK  \        V
P-                  4       4      ;Wj&   pV F5  w  rÏV F*  pV P$                  P/                  R	W\P0                  V4       K,  	  K7  	  V P$                  P'                  R
WX4       \        VR4      ;_uu_ 4       p\3        VW P*                  R7       RRR4       EKÄ  	  V#   + '       g   i     EL ; i  + '       g   i     EKî  ; i)ÚLC_MESSAGESú.poz.moúno message catalogs foundÚrbNºrR   NNz)%d of %d messages (%d%%) translated in %sz'catalog %s is marked as fuzzy, skippingzerror: %s:%d: %szcompiling catalog %s to %sÚwb)rl   )ri   rk   ÚappendÚosÚpathÚjoinrh   ÚlistdirÚexistsrj   r$   Ú	enumerateÚopenr   rc   r9   Ústringrt   r_   ÚinfoÚfuzzyrl   Úcheckru   Úlinenor   )rJ   rg   Úpo_filesÚmo_filesrk   Úpo_fileÚcatalogs_and_errorsÚidxÚmo_fileÚinfileÚcatalogÚ
translatedÚmessageÚ
percentageÚcatalog_errorsrw   ru   Úoutfiles   &&                r!   rr   ÚCompileCatalog._run_domainÌ   s,  € ØˆØˆà��‰Ø�{�{ˆ{Ø—‘ §¡Ü!#§¡§¡¨d¯n©n¸d¿k¹kØ.;Ø17°¸¨nó">ð!?ô @ð —‘¤§¡§¡¨T¯^©^¸T¿[¹[Ø-:Ø06¨x°s¨^ó!=ö >ô !Ÿjšj¨¯©Ö8�FÜ Ÿg™gŸl™l¨4¯>©>¸6Ø+8¸V¸HÀC¸.óJ�Gä—w‘w—~‘~ g×.Ô.Ø Ÿ™¨Ð(9Ô:Ø Ÿ™¬¯©¯©°T·^±^ÀVØ5BØ8>°x¸s°^ó)Eö Fò 9ð �O‰O˜TŸ[™[¨$¯/©/Ð:Ô;Ø××ÐØ—‘ × 0Ñ 0Õ1à—‘¤§¡§¡¨T¯^©^¸T¿[¹[Ø-:Ø06¨x°s¨^ó!=ô >÷ ÜÐ9Ó:Ð:à Ðä&/°×&9Ñ"ˆCÑ"�&Ø•mˆGÜ�g˜t×$Ô$¨Ü! &Ó1�÷ %ð ��ˆØ�
Ü# G›}¨R×0Ð0�GØ—~—~’~Ø" a�š
ñ  1ð �
Ü�w—<’<Ø!+¨cÕ!1´S¸³\Õ!A�JØ—‘—‘Ø?Ø¤ G£¨jôð
 �}�}ˆ} T§^§^ ^Ø—‘—‘ÐGÈÔQÚä<@ÀÇÁÃÓ<QÐQÐÑ(¨>Û#1‘�Û#�EØ—H‘H—N‘NØ*¨G·^±^ÀUöó $ñ $2ð �H‰H�M‰MÐ6¸ÔIä�g˜t×$Ô$¨Ü˜ '·^±^ÕD÷ %Ò$ñ? ':ðD #Ð"÷A %×$Ð$ú÷: %×$Ñ$ús   É8PÏ4P/ÐP,Ð/Q)rh   rg   ri   rk   rj   rc   rl   ))údomain=ÚDz>domains of PO files (space separated list, default 'messages'))z
directory=Údú.path to base directory containing the catalogs©zinput-file=Úizname of the input file)úoutput-file=ÚozQname of the output file (default '<output_dir>/<locale>/LC_MESSAGES/<domain>.mo')©úlocale=Úlz locale of the catalog to compile)rb   Úfzalso include fuzzy translations)rc   Nz#print statistics about translations)r   r   r   r   ÚdescriptionÚuser_optionsr\   rD   rS   rx   rr   r   r   r    r!   ra   ra   ž   s0   † Ø?€Kò€Lð" # LÐ1€Oò ò_ò&öF#r    ra   c                ó   a € V 3R lpV# )zG
Build a directory_filter function based on a list of ignore patterns.
c                óÖ   <a€ \         P                  P                  V 4      o\        ;QJ d)    V3R  lS 4       F  '       g   K   R'       * # 	  R'       * # ! V3R  lS 4       4      '       * # )c              3  óR   <"  € T F  p\         P                   ! SV4      x € K  	  R # 5ir-   )Úfnmatch)r0   Úignore_patternÚbasenames   & €r!   r2   ÚG_make_directory_filter.<locals>.cli_directory_filter.<locals>.<genexpr>  s+   øé € ð 
ñ ð ô �OŠO˜H n×5Ð5ãùs   ƒ$'TF)r‚   rƒ   r¯   Úany)Údirnamer¯   Úignore_patternss   &@€r!   Úcli_directory_filterÚ4_make_directory_filter.<locals>.cli_directory_filter  se   ù€ Ü—7‘7×#Ñ# GÓ,ˆß“3ô 
ñ ó
—3”3ô 
ð 	
’3ô 
ð 	
�3ô 
ñ ó
ó 
ô 
ð 	
r    r   )r³   r´   s   f r!   Ú_make_directory_filterr¶     s   ø€ õ

ð  Ðr    c            
      óv   € ] tR tRtRt. ROt. ROtRtRtRRRRRRRRR	R/t	R
R/t
R tR tR R ltR tR tRtR# )ÚExtractMessagesi%  z1extract localizable strings from the project codeNústrip-commentszinput-pathsÚkeywordszmapping-filezoutput-filezlast-translatorzadd-locationc                	óV  € R V n         RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n	        RV n
        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        R# )zutf-8NFT)Úcharsetrº   Úno_default_keywordsÚmapping_fileÚno_locationÚadd_locationÚomit_headerrj   Ú
input_dirsÚinput_pathsÚwidthÚno_wrapÚsort_outputÚsort_by_fileÚmsgid_bugs_addressÚcopyright_holderÚprojectÚversionÚadd_commentsÚstrip_commentsÚinclude_linenoÚignore_dirsÚheader_commentÚlast_translatorrO   s   &r!   rD   Ú"ExtractMessages.initialize_optionst  s»   € ØˆŒØˆŒØ#(ˆÔ Ø ˆÔØ ˆÔØ ˆÔØ ˆÔØˆÔØˆŒØˆÔØˆŒ
ØˆŒØ ˆÔØ!ˆÔØ"&ˆÔØ $ˆÔØˆŒØˆŒØ ˆÔØ#ˆÔØ"ˆÔØˆÔØ"ˆÔØ#ˆÖr    c           	     	ó¢  € V P                   '       d0   V P                  '       g   V P                   V n        M\        R 4      hV P                  '       d   / M\        P
                  ! 4       pVP                  \        \        V P                  4      4      4       Wn	        V P                  '       g   \        R4      hV P                  '       g   \        R4      hV P                  '       d   V P                  '       d   \        R4      hV P                  '       g   V P                  '       g	   ^LV n        M(V P                  e   \        V P                  4      V n        V P                  '       d   V P                  '       d   \        R4      hV P                  '       dH   \!        V P                  \"        4      '       d'   \$        P&                  ! RV P                  4      V n        MƒV P(                  eo   \*        P-                  V P(                  P.                  ;'       g    R Uu. uF  pVP'                  R^4      ^ ,          NK  	  up4      P1                  4       V n        M. V n        V P                  '       g   \        R4      hV P                   F7  p\2        P4                  P7                  V4      '       d   K*  \        R	V R
24      h	  \        V P8                  ;'       g    RR4      V n        V P(                  '       dc   V P:                  '       g    V P(                  P=                  4       V n        V P>                  '       g    V P(                  PA                  4       V n        V PB                  R8X  d	   RV n"        MV PB                  R8X  d   RV n#        \        V PH                  4      pV'       d   \K        V4      V n&        R# RV n&        R# u upi )z1input-dirs and input-paths are mutually exclusivez=you must specify new keywords if you disable the default oneszno output file specifiedú0'--no-wrap' and '--width' are mutually exclusiveNz;'--sort-output' and '--sort-by-file' are mutually exclusivez,\s*Ú.z'no input files or directories specifiedzInput path: z does not existÚ,ÚneverTÚfileFr   )'rÂ   rÃ   r$   r½   r   ÚcopyÚupdateÚparse_keywordsr<   rº   rj   rÅ   rÄ   ÚintrÆ   rÇ   r6   r7   Úrer+   rC   ÚdictÚfromkeysÚpackagesÚkeysr‚   rƒ   r†   rÌ   rÊ   Úget_namerË   Úget_versionrÀ   r¿   rÎ   rÏ   r¶   Údirectory_filter)rJ   rº   Úkrƒ   rÏ   s   &    r!   rS   Ú ExtractMessages.finalize_optionsŽ  sá  € Ø�?�?ˆ?Ø×#×#Ð#Ø#'§?¡?�Õ ä!ØGóð ð ×1×1Ð1‘2Ô7G×7LÒ7LÓ7Nˆà�‰œ¤}°T·]±]Ó'CÓDÔEà Œà�}�}ˆ}ÜØOóð ð ××ÐÜÐ8Ó9Ð9Ø�<�<ˆ<˜DŸJŸJ˜JÜØBóð ð �|�|ˆ| D§J§J JØˆD�JØ�Z‰ZÒ#Ü˜TŸZ™Z›ˆDŒJà××Ð × 1× 1Ð 1ÜØMóð ð ××ÐÜ˜$×*Ñ*¬C×0Ò0Ü#%§8¢8¨G°T×5EÑ5EÓ#F�Ô øØ×ÑÒ*Ü#Ÿ}™}à×+Ñ+×4Ñ4×:Ð:¸Ð:ó.á:�Að —‘˜˜Q“ ×"Ð"Ù:ñ.ó  ÷ ‰t‹vð Õð
  "ˆDÔà××ÐÜÐGÓHÐHà×$Ô$ˆDÜ—7‘7—>‘> $×'Ô'Ü! L°°°oÐ"FÓGÐGñ %ô *¨$×*;Ñ*;×*AÐ*A¸rÀ3ÓGˆÔà××ÐØ—<—<�<Ø#×0Ñ0×9Ñ9Ó;�”Ø—<—<�<Ø#×0Ñ0×<Ñ<Ó>�”à×Ñ Ô'Ø#ˆDÕØ×Ñ &Ô(Ø"'ˆDÔä# D×$4Ñ$4Ó5ˆßÜ$:¸;Ó$GˆDÖ!à$(ˆDÖ!ùò?.s   È""Oc               ó   € V ^8„  d   QhRR/# )é   rƒ   r7   r   )Úformats   "r!   Ú__annotate__ÚExtractMessages.__annotate__×  s   € ÷ ñ  Cñ r    c                	ó   a a€ R  VV 3R llpV# )c               ó$   € V ^8„  d   QhRRRRRR/# )rè   Úfilenamer7   ÚmethodÚoptionsrÞ   r   )ré   s   "r!   rê   Ú5ExtractMessages._build_callback.<locals>.__annotate__Ø  s&   € ÷ 	Mñ 	M˜sð 	M¨Cð 	M¸$ñ 	Mr    c                óˆ  <€ VR 8X  d   R# \         P                  P                  S4      '       d   SpM=\         P                  P                  \         P                  P	                  SV 4      4      pRpV'       d-   RP	                  R VP                  4        4       4      pRV R2pSP                  P                  RW44       R# )ÚignoreNÚ z, c              3  ó6   "  € T F  w  rV R V R2x € K  	  R# 5i)z="Ú"Nr   )r0   rå   Úvs   &  r!   r2   ÚDExtractMessages._build_callback.<locals>.callback.<locals>.<genexpr>ç  s   é € Ð&PÁ¹¸¨!¨¨B¨q¨c°¥|Ãùs   ‚z (Ú)zextracting messages from %s%s)r‚   rƒ   ÚisfileÚnormpathr„   Úitemsr_   rŠ   )rî   rï   rð   ÚfilepathÚoptstrÚ
opt_valuesrƒ   rJ   s   &&&   €€r!   ÚcallbackÚ1ExtractMessages._build_callback.<locals>.callbackØ  sŽ   ø€ Ø˜Ô!Ùô �w‰w�~‰~˜d×#Ò#Ø‘äŸ7™7×+Ñ+¬B¯G©G¯L©L¸¸xÓ,HÓI�àˆFßØ!ŸY™YÑ&PÀÇÁÄÓ&PÓP�
Ø˜j˜\¨Ð+�Ø�H‰H�M‰MÐ9¸8ÖLr    r   )rJ   rƒ   r   s   ff r!   Ú_build_callbackÚExtractMessages._build_callback×  s   ù€ ÷	Mñ 	Mð& ˆr    c                	óä  € V P                  4       p\        V P                  R 4      ;_uu_ 4       p\        V P                  V P
                  V P                  V P                  V P                  V P                  ;'       g    \        V P                  R7      pV EFC  w  rEpV P                  V4      p\        P                  P                  V4      '       dE   \        P                   ! 4       p\#        WEVWpP$                  V P&                  V P(                  V4      p	M:\+        WEVV P$                  V P&                  VV P(                  V P,                  R7      p	V	 F‚  w  r«rÍp\        P                  P                  V4      '       d   T
pM<\        P                  P/                  \        P                  P1                  WJ4      4      pVP3                  VRWû3.WÞR7       K„  	  EKF  	  V P4                  P7                  RV P                  4       \9        W#V P:                  V P<                  V P>                  V P@                  V PB                  V PD                  R7       RRR4       R#   + '       g   i     R# ; i)r€   )rÊ   rË   rÈ   rÉ   r¼   rÐ   rÑ   )rº   Úcomment_tagsr   Ústrip_comment_tagsrä   N)Úauto_commentsÚcontextzwriting PO template file to %s)rÄ   r¿   rÁ   rÆ   rÇ   rÎ   )#Ú_get_mappingsrˆ   rj   r   rÊ   rË   rÈ   rÉ   r¼   rÐ   r   rÑ   r  r‚   rƒ   rú   Úgetcwdr   rº   rÌ   rÍ   r   rä   rû   r„   Úaddr_   rŠ   r   rÄ   r¿   rÁ   rÆ   rÇ   rÎ   )rJ   Úmappingsrš   r•   rƒ   Ú
method_mapÚoptions_mapr   Úcurrent_dirÚ	extractedrî   r�   r—   Úcommentsr  rý   s   &               r!   rx   ÚExtractMessages.runí  sç  € Ø×%Ñ%Ó'ˆÜ�$×"Ñ" D×)Ô)¨WÜ d§l¡lØ&*§l¡lØ15×1HÑ1HØ/3×/DÑ/DØ&*§l¡lØ.2×.AÑ.A×.SÐ.SÄ^Ø.2×.BÑ.BôDˆGô 2:Ñ-� +Ø×/Ñ/°Ó5�Ü—7‘7—>‘> $×'Ò'Ü"$§)¢)£+�KÜ ;Ø¨+Ø §-¡-°×1BÑ1BØ×+Ñ+¨[ó!‘Iô !1Ø¨+Ø!%§¡Ø%)×%6Ñ%6Ø!)Ø+/×+>Ñ+>Ø)-×)>Ñ)>ô!�Ió ENÑ@�H g¸Ü—w‘w—~‘~ d×+Ò+Ø#+™ä#%§7¡7×#3Ñ#3´B·G±G·L±LÀÓ4PÓ#Q˜à—K‘K ¨°Ð0BÐ/CØ.6ð  ö Iô ENñ% 2:ð6 �H‰H�M‰MÐ:¸D×<LÑ<LÔMÜ�W¨T¯Z©ZØ!%×!1Ñ!1Ø!%×!1Ñ!1Ø!%×!1Ñ!1Ø"&×"3Ñ"3Ø$(×$7Ñ$7õ9÷K *×)×)Ò)ús   ¯H%IÉI/	c                	óF  € . pV P                   '       dý   V P                   P                  R 4      '       du   \        V P                   R4      ;_uu_ 4       p\        P                  P                  V P                   4      R8X  d   RMRp\        VV P                   VR7      w  rERRR4       M>\        V P                   4      ;_uu_ 4       p\        W P                   R7      w  rERRR4       V P                   F  pVP                  VXX34       K  	  V# \        V P                  RR4      '       d¡   V P                  P                  pVP                  4        Ft  w  rh\        V\        4      '       d   \        \!        V4      4      w  rEM/. / rTV F&  w  ršpVP                  Wš34       T;'       g    / WY&   K(  	  VP                  WdV34       Kv  	  V# V P                   F  pVP                  V\"        / 34       K  	  V#   + '       g   i     EL$; i  + '       g   i     EL8; i)z.tomlr~   úpyproject.tomlÚ
standalone)rî   ÚstyleN©rî   Úmessage_extractors)r¾   Úendswithrˆ   r‚   rƒ   r¯   Ú_parse_mapping_tomlÚparse_mapping_cfgrÃ   r�   ÚgetattrrC   r  rü   r6   r7   r   r   )rJ   r  ÚfileobjÚ
file_styler  r  rƒ   r  ÚmappingÚpatternrï   rð   s   &           r!   r	  ÚExtractMessages._get_mappings  sÞ  € Øˆà××ÐØ× Ñ ×)Ñ)¨'×2Ò2Ü˜$×+Ñ+¨T×2Ô2°gô Ÿ7™7×+Ñ+¨D×,=Ñ,=Ó>ÐBRÔRñ )à)ð ô
 /BØØ!%×!2Ñ!2Ø(ô/Ñ+�J÷ 3Ð2ô ˜$×+Ñ+×,Ô,°Ü.?À×RcÑRcÔ.dÑ+�J÷ -à×(Ô(�Ø—‘  z°;Ð ?Ö@ñ )ð& ˆô! �T×&Ñ&Ð(<¸d×CÒCØ!%×!2Ñ!2×!EÑ!EÐØ!3×!9Ñ!9Ö!;‘�Ü˜g¤s×+Ò+Ü.?ÄÈÓ@QÓ.RÑ+�J à.0°" Û4;Ñ0˜¨Ø"×)Ñ)¨7Ð*;Ô<Ø/6¯}¨}¸"˜Ó,ñ 5<ð —‘ °;Ð ?Ö@ñ "<ð ˆð ×(Ô(�Ø—‘ ¤¸Ð ;Ö<ñ )ð ˆ÷C 3×2Ð2ú÷ -×,Ð,ús   ÁAG;ÃHÇ;H	ÈH 	)rÌ   rÀ   r¼   rÉ   rä   rÐ   rÏ   rÎ   rÂ   rÃ   rº   rÑ   r¾   rÈ   r½   r¿   rÅ   rÁ   rj   rÊ   rÇ   rÆ   rÍ   rË   rÄ   ))zcharset=Nz3charset to use in the output file (default "utf-8"))z	keywords=rå   zispace-separated list of keywords to look for in addition to the defaults (may be repeated multiple times))úno-default-keywordsNz#do not include the default keywords)zmapping-file=ÚFz&path to the mapping configuration file)úno-locationNz>do not include location comments with filename and line number)zadd-location=Nzðlocation lines format. If it is not given or "full", it generates the lines with both file name and line number. If it is "file", the line number part is omitted. If it is "never", it completely suppresses the lines (same as --no-location).)úomit-headerNz'do not include msgid "" entry in header)r¢   r£   zname of the output file©zwidth=Úwz"set output line width (default 76)©úno-wrapNzVdo not break long message lines, longer than the output line width, into several lines)úsort-outputNz&generate sorted output (default False))úsort-by-fileNz,sort output by file location (default False))zmsgid-bugs-address=Nzset report address for msgid)zcopyright-holder=Nzset copyright holder in output)zproject=Nzset project name in output)zversion=Nzset project version in output)zadd-comments=Úczuplace comment block with TAG (or those preceding keyword lines) in output file. Separate multiple TAGs with commas(,))r¹   r1   z)strip the comment TAGs from the comments.)zinput-paths=Nzofiles or directories that should be scanned for messages. Separate multiple files or directories with commas(,))zinput-dirs=Nz@alias for input-paths (does allow files as well as directories).)zignore-dirs=NzwPatterns for directories to ignore when scanning for messages. Separate multiple patterns with spaces (default ".* ._"))zheader-comment=Nzheader comment for the catalog)zlast-translator=Nz7set the name and email of the last translator in output)r"  r$  r%  r)  r*  r+  r¹   )zadd-commentsrº   zignore-dirs)z	--keyword)z	--mapping)z--output)z--strip-comment-tags)z--last-translator)ÚfullrØ   r×   )r   r   r   r   r¨   r©   r\   rZ   r[   r]   r^   rD   rS   r  rx   r	  r   r   r    r!   r¸   r¸   %  st   † ØE€Kò7€Lòp€Oð €GðÐð 	�NØ˜Ø�}ØÐ3ØÐ1ð€Nð 	Ð1ð€Nò$ò4G)õRò,,9ö\&r    r¸   c                  ó:   € ] tR tRtRt. R	OtR.tR tR tR t	Rt
R# )
ÚInitCatalogiD  z(create a new catalog based on a POT filer)  Nc                	óh   € R V n         R V n        R V n        R V n        RV n        RV n        R V n        R # )Nrf   F)Ú
output_dirrj   ri   rk   rg   rÅ   rÄ   rO   s   &r!   rD   ÚInitCatalog.initialize_optionsZ  s4   € ØˆŒØˆÔØˆŒØˆŒØ ˆŒØˆŒØˆŽ
r    c                	ó4  € V P                   '       g   \        R 4      hV P                  '       g   \        R4      h \        P                  ! V P                  4      V n        T P                  '       g   T P                  '       g   \        R4      hT P                  '       gI   \        P                  P                  T P                  T P                  RT P                   R24      T n        \        P                  P                  \        P                  P                  T P                  4      4      '       g>   \        P                  ! \        P                  P                  T P                  4      4       T P                   '       d   T P"                  '       d   \        R4      hT P                   '       g   T P"                  '       g
   ^LT n        R# T P"                  e   \%        T P"                  4      T n        R# R#   \         d   p\        T4      ThRp?ii ; i)úyou must specify the input filez-you must provide a locale for the new catalogNz%you must specify the output directoryr{   r|   rÔ   )ri   r$   rk   r   ÚparseÚ_localer   rj   r1  r‚   rƒ   r„   rg   r†   r²   ÚmakedirsrÅ   rÄ   rÜ   ©rJ   Úes   & r!   rS   ÚInitCatalog.finalize_optionsc  s]  € Ø��ˆÜÐ?Ó@Ð@à�{�{ˆ{ÜÐMÓNÐNð	(Ü!Ÿ<š<¨¯©Ó4ˆDŒLð ××Ð¨¯¯¨ÜÐEÓFÐFØ××ÐÜ!Ÿw™wŸ|™|¨D¯O©O¸T¿[¹[Ø,9¸d¿k¹k¸]È#Ð;Nó PˆDÔô �w‰w�~‰~œbŸg™gŸo™o¨d×.>Ñ.>Ó?×@Ò@Ü�KŠKœŸ™Ÿ™¨×(8Ñ(8Ó9Ô:Ø�<�<ˆ<˜DŸJŸJ˜JÜÐPÓQÐQØ�|�|ˆ| D§J§J JØˆDŽJØ�Z‰ZÒ#Ü˜TŸZ™Z›ˆDŽJñ $øô "ô 	(Ü˜a“. aÐ'ûð	(ús   ¼%G; Ç;HÈHÈHc                	ó,  € V P                   P                  R V P                  V P                  4       \	        V P                  R4      ;_uu_ 4       p\        WP                  R7      pRRR4       V P                  Xn        \        P                  P                  \        4      Vn        RVn        \	        V P                  R4      ;_uu_ 4       p\        W2V P                  R7       RRR4       R#   + '       g   i     L�; i  + '       g   i     R# ; i)úcreating catalog %s based on %sr~   ©rk   NFr€   )rÄ   )r_   rŠ   rj   ri   rˆ   r   rk   r6  ÚdatetimeÚnowr   Úrevision_dater‹   r   rÄ   )rJ   r”   r•   rš   s   &   r!   rx   ÚInitCatalog.run}  sº   € Ø�‰�‰Ø-¨t×/?Ñ/?ÀÇÁô	
ô �$—/‘/ 4×(Ô(¨Fô ˜f¯[©[Ô9ˆG÷ )ð
 Ÿ™ˆŒÜ (× 1Ñ 1× 5Ñ 5´gÓ >ˆÔØˆŒä�$×"Ñ" D×)Ô)¨WÜ�W¨T¯Z©ZÕ8÷ *Ñ)÷ )×(ú÷ *×)Ð)ús   ÁC/ÃDÃ/C?	ÄD	)r6  rg   ri   rk   rÅ   r1  rj   rÄ   )©rœ   r�   z&domain of PO file (default 'messages')r    )úoutput-dir=rž   zpath to output directory©r¢   r£   zQname of the output file (default '<output_dir>/<locale>/LC_MESSAGES/<domain>.po'))r¥   r¦   z$locale for the new localized catalogr&  r(  ©r   r   r   r   r¨   r©   r\   rD   rS   rx   r   r   r    r!   r/  r/  D  s&   † Ø<€Kò€Lð$ !�k€Oòò)ö49r    r/  c                  ó<   € ] tR tRtRt. ROt. R	OtR tR tR t	Rt
R# )
ÚUpdateCatalogi�  z'update message catalogs from a POT fileNc                	óØ   € R V n         RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n	        RV n
        RV n        RV n        RV n        RV n        R# re   )rg   ri   r1  rj   rÁ   rk   rÄ   rÅ   Úignore_obsoleteÚinit_missingÚno_fuzzy_matchingÚupdate_header_commentÚpreviousrŒ   Úignore_pot_creation_daterO   s   &r!   rD   Ú UpdateCatalog.initialize_options»  sr   € Ø ˆŒØˆŒØˆŒØˆÔØ ˆÔØˆŒØˆŒ
ØˆŒØ$ˆÔØ!ˆÔØ!&ˆÔØ%*ˆÔ"ØˆŒØˆŒ
Ø(-ˆÖ%r    c                	óX  € V P                   '       g   \        R 4      hV P                  '       g   V P                  '       g   \        R4      hV P                  '       d   V P                  '       g   \        R4      hV P
                  '       dE   V P                  '       g   \        R4      h \        P                  ! V P                  4      V n        MRV n        V P                  '       d   V P                  '       d   \        R4      hV P                  '       g   V P                  '       g	   ^LV n        M(V P                  e   \        V P                  4      V n        V P                  '       d   V P                  '       d
   RV n        R# R# R#   \         d   p\        T4      ThRp?ii ; i)r4  z-you must specify the output file or directoryzyou must specify the localez?you must specify the locale for the init-missing option to workNrÔ   F)ri   r$   rj   r1  rk   rJ  r   r5  r6  r   rÅ   rÄ   rÜ   rK  rM  r8  s   & r!   rS   ÚUpdateCatalog.finalize_optionsÌ  s/  € Ø��ˆÜÐ?Ó@Ð@Ø××Ð¨¯¯¨ÜÐMÓNÐNØ××Ð D§K§K KÜÐ;Ó<Ð<à××ÐØ—;—;�;Ü!ð6óð ð
,Ü%Ÿ|š|¨D¯K©KÓ8�•ð  ˆDŒLà�<�<ˆ<˜DŸJŸJ˜JÜÐPÓQÐQØ�|�|ˆ| D§J§J JØˆD�JØ�Z‰ZÒ#Ü˜TŸZ™Z›ˆDŒJØ×!×!Ð! d§m§m mØ!ˆDŽMñ '4Ñ!øô &ô ,Ü! !“n¨!Ð+ûð,ús   Â,%F ÆF)ÆF$Æ$F)c                	ó¼  € / p. pV P                   '       Eg   V P                  '       d`   VP                  V P                  \        P                  P                  V P                  V P                  R V P                   R24      34       MÁ\        P                  ! V P                  4       Fu  p\        P                  P                  V P                  VR V P                   R24      p\        P                  P                  V4      '       g   Kc  VP                  W434       Kw  	  M'VP                  V P                  V P                   34       V'       g   \        R4      hV P                  pV'       gN   \        P                  P                  \        P                  P                  V P                  4      4      ^ ,          p\        V P                  R4      ;_uu_ 4       p\        V4      pRRR4       V EF)  w  r8V P                   '       Ed	   \        P                  P                  V4      '       gä   V P"                  '       d   RW&   KV  V P$                  P'                  RW€P                  4       \        V P                  R4      ;_uu_ 4       p\        W`P                  R7      p	RRR4       V P(                  X	n        \*        P*                  P-                  \.        4      V	n        RV	n        \        VR4      ;_uu_ 4       p
\5        W©4       RRR4       V P$                  P'                  R	W€P                  4       \        VR4      ;_uu_ 4       p\        WcVR
7      p	RRR4       X	P7                  XV P8                  V P:                  V P<                  '       * R7       \        P                  P                  \        P                  P?                  V4      \@        PB                  ! 4       \        P                  P                  V4      ,           4      p \        VR4      ;_uu_ 4       p\5        WÉV PD                  V PF                  V PH                  V PJ                  R7       RRR4       T P"                  '       dŽ   \        TR4      ;_uu_ 4       p\        T4      pRRR4       \        TR4      ;_uu_ 4       p\        T4      pRRR4       XP0                  Xn        TPQ                  T4      Y&   \        PN                  ! T4       EK   \        PR                  ! Y¸4       EK,  	  V P"                  '       d¤   VP[                  4        FH  w  ppV'       d   V P$                  P'                  RV4       K,  V P$                  P]                  RV4       KJ  	  \_        VPa                  4       4      '       g   \c        R4      hV P$                  P'                  R4       R# R#   + '       g   i     ELø; i  + '       g   i     ELQ; i  + '       g   i     ELý; i  + '       g   i     ELÁ; i  + '       g   i     ELÓ; i  \L         d    \        PN                  ! T4       h i ; i  + '       g   i     ELÓ; i  + '       g   i     EL¿; i  \T         dH    \        PN                  ! T4       \V        PX                  ! Y¸4       \        PN                  ! T4        EKè  i ; i)r{   r|   r}   r~   NFr<  r=  r€   zupdating catalog %s based on %s)rk   rg   )rL  Úupdate_creation_date)rÁ   rI  Úinclude_previousrÄ   zCatalog %s is up to date.zCatalog %s is out of date.zSome catalogs are out of date.z All the catalogs are up-to-date.)2rj   rk   r�   r‚   rƒ   r„   r1  rg   r…   r†   r$   Úsplitextr¯   ri   rˆ   r   rJ  rŒ   r_   rŠ   r6  r>  r?  r   r@  r‹   r   rÚ   rK  rL  rN  r²   ÚtempfileÚgettempprefixrÁ   rI  rM  rÄ   Ú	ExceptionÚremoveÚis_identicalÚrenameÚOSErrorÚshutilrÙ   rü   Úwarningr=   rs   r   )rJ   Úcheck_statusrŽ   rk   r�   rg   r”   Útemplaterî   r•   rš   ÚtmpnameÚtmpfileÚorigfileÚoriginal_catalogÚnewfileÚupdated_catalogÚ
up_to_dates   &                 r!   rx   ÚUpdateCatalog.runë  sØ  € ØˆØˆØ××ÑØ�{�{ˆ{Ø—‘ §¡Ü!#§¡§¡¨d¯o©o¸t¿{¹{Ø.;Ø15·±°¸SÐ.Aó"Cð!Dõ Eô
 !Ÿjšj¨¯©Ö9�FÜ Ÿg™gŸl™l¨4¯?©?¸FØ+8Ø.2¯k©k¨]¸#Ð+>ó@�Gô —w‘w—~‘~ g×.Ô.Ø Ÿ™¨Ð(9Ö:ò :ð �O‰O˜TŸ[™[¨$×*:Ñ*:Ð;Ô<çÜÐ9Ó:Ð:à—‘ˆßÜ—W‘W×%Ñ%¤b§g¡g×&6Ñ&6°t·±Ó&GÓHÈÕKˆFä�$—/‘/ 4×(Ô(¨FÜ˜v“ˆH÷ )ô !)ÑˆFØ× × Ñ ¬¯©¯©¸×)AÒ)AØ—:—:�:Ø-2�LÑ*ÙØ—‘—‘Ø5°xÇÁôô ˜$Ÿ/™/¨4×0Ô0°Fô & f·[±[ÔA�G÷ 1ð
 "&§¡�”Ü(0×(9Ñ(9×(=Ñ(=¼gÓ(F�Ô%Ø %�”ä˜( D×)Ô)¨WÜ˜WÔ.÷ *ð �H‰H�M‰MÐ;¸XÇÁÔWÜ�h ×%Ô%¨Ü! &ÀÔG�÷ &ð �N‰NØ˜$×0Ñ0Ø&*×&@Ñ&@Ø)-×)FÑ)FÔ%Fð ô ô —g‘g—l‘l¤2§7¡7§?¡?°8Ó#<Ü#+×#9Ò#9Ó#;Ü#%§7¡7×#3Ñ#3°HÓ#=õ$>ó?ˆGðÜ˜' 4×(Ô(¨GÜ˜WØ)-×)9Ñ)9Ø-1×-AÑ-AØ.2¯m©mÀ4Ç:Á:õO÷ )ð �z�zˆzÜ˜( D×)Ô)¨XÜ'.¨xÓ'8Ð$÷ *ä˜' 4×(Ô(¨GÜ&-¨gÓ&6�O÷ )à0@×0NÑ0N�Ô-Ø)8×)EÑ)EÐFVÓ)W�Ñ&Ü—	’	˜'Ô"Úð
#Ü—	’	˜'×,ño !)ðD �:�:ˆ:Ø(4×(:Ñ(:Ö(<Ñ$�˜*ßØ—H‘H—M‘MÐ"=¸xÖHà—H‘H×$Ñ$Ð%AÀ8ÖLñ	 )=ô
 �|×*Ñ*Ó,×-Ò-ÜÐ @ÓAÐAà—‘—‘Ð@ÔAÙñ ÷K )×(Ð(ú÷ 1×0Ð0ú÷ *×)Ð)ú÷ &×%Ð%ú÷ )×(Ð(ûô
 ô Ü—	’	˜'Ô"Øðú÷
 *×)Ð)úç(×(Ð(ûô ô #ô —	’	˜(Ô#Ü—’˜GÔ.Ü—	’	˜'×"Ð"ð#ús…   ÇWÊW+Ë?W?ÍXÐX;Ð$9X'ÑX;ÒY!Ò3Y5ÔZ	×W(	×+W<×?XØX$Ø'X8Ø2X;Ø8X;Ø;#YÙ!Y2Ù5ZÚ	A[Û[)r6  rŒ   rg   rI  rN  rJ  ri   rk   rK  rÅ   rÁ   r1  rj   rM  rL  rÄ   )rB  r    )rC  rž   rŸ   rD  )r%  Nz%do not include msgid  entry in headerr¤   r&  r(  )zignore-obsolete=Nz1whether to omit obsolete messages from the output)zinit-missing=Nz6if any output files are missing, initialize them first)úno-fuzzy-matchingÚNzdo not use fuzzy matching)úupdate-header-commentNzupdate target header comment)rM  Nz+keep previous msgids of translated messages)zcheck=Nz‘don't update the catalog, just return the status. Return code 0 means nothing would change. Return code 1 means that the catalog would be updated)zignore-pot-creation-date=Nz=ignore changes to POT-Creation-Date when updating or checking)	r%  r)  zignore-obsoletezinit-missingri  rM  rk  rŒ   zignore-pot-creation-daterE  r   r    r!   rG  rG  �  s&   † Ø;€Kò#€LòH€Oò.ò""ö>ir    rG  c                  óp   € ] tR tRtRtRtR] 2tRRRRR	R
RR/tR]	R]
R	]R]/tRtRR ltR tR tR tRtR# )ÚCommandLineInterfaceiW  z�Command-line interface.

This class provides a simple command-line interface to the message
extraction and PO file generation functionality.
z%%prog %s [options] %sz%prog Úcompilez$compile message catalogs to MO filesÚextractz:extract messages from source files and generate a POT fileÚinitz+create new message catalogs from a POT filerÚ   z0update existing message catalogs from a POT fileNc           	     óè  € Vf   \         P                  p\        P                  ! V P                  R,          V P
                  R7      V n        V P                  P                  4        V P                  V P                  n	        V P                  P                  RRRRR7       V P                  P                  RRR	R
\        P                  RR7       V P                  P                  RRR	R
\        P                  RR7       V P                  P                  R\        P                  R7       V P                  P!                  VR,          4      w  r#V P#                  VP$                  4       VP&                  '       dw   \(        P*                  ! 4       p\-        R V 4       4      ^,           p\/        V4       F7  p\0        P2                  ! V4      p\5        VRV 2 RVP6                   24       K9  	  ^ # V'       g   V P                  P9                  R4       V^ ,          pW€P:                  9  d    V P                  P9                  RV R24       V P=                  WƒR,          4      p	V	P?                  4       # )zkMain entry point of the command-line interface.

:param argv: list of arguments passed on the command-line
)ÚusagerË   z--list-localesÚlist_localesÚ
store_truez print all known locales and exit)ÚdestÚactionrH   z-vz	--verboseÚstore_constÚloglevelzprint as much as possible)rv  ru  ÚconstrH   z-qz--quietzprint as little as possibleF)rs  rx  r   c              3  ó8   "  € T F  p\        V4      x € K  	  R # 5ir-   ©rt   )r0   Ú
identifiers   & r!   r2   Ú+CommandLineInterface.run.<locals>.<genexpr>�  s   é € ÐI¹[¨zœ3˜zŸ?˜?»[ùó   ‚Ú<Ú zQno valid command or option passed. Try the -h/--help option for more information.zunknown command "rö   )Úcommandz[args]) ÚsysÚargvÚoptparseÚOptionParserrr  rË   ÚparserÚdisable_interspersed_argsÚ_helpÚ
print_helpÚ
add_optionÚloggingÚDEBUGÚERRORÚset_defaultsÚINFOÚ
parse_argsÚ_configure_loggingrx  rs  r	   Úlocale_identifiersÚmaxÚsortedr   r5  ÚprintÚenglish_nameru   ÚcommandsÚ_configure_commandrx   )
rJ   rƒ  rð   ÚargsÚidentifiersÚid_widthr|  rk   ÚcmdnameÚcmdinsts
   &&        r!   rx   ÚCommandLineInterface.runp  sÿ  € ð Š<Ü—8‘8ˆDä×+Ò+°$·*±*Ð?TÕ2TØ48·L±LôBˆŒà�‰×-Ñ-Ô/Ø!%§¡ˆ�‰ÔØ�‰×ÑÐ/°nØ&2Ø$Fð 	ô 	Hð 	�‰×Ñ˜t [¸Ø$.´g·m±mØ$?ð 	ô 	Að 	�‰×Ñ˜t Y°}Ø$.´g·m±mØ$Að 	ô 	Cð 	�‰× Ñ ¨e¼g¿l¹lÐ ÔKàŸ™×.Ñ.¨t°B­xÓ8‰ˆà×Ñ × 0Ñ 0Ô1Ø××ÐÜ$×7Ò7Ó9ˆKÜÑI¹[ÓIÓIÈAÕMˆHÜ$ [Ö1�
ÜŸš jÓ1�Ü˜ A h Z <Ð0°°&×2EÑ2EÐ1FÐGÖHñ 2ñ çØ�K‰K×Ñð Oô Pð �q•'ˆØŸ-™-Ô'Ø�K‰K×ÑÐ 1°'°¸!Ð<Ô=à×)Ñ)¨'¸µ8Ó<ˆØ�{‰{‹}Ðr    c                	ó–  € \         V n         V P                   P                  V4       V P                   P                  '       d   V P                   P                  ^ ,          pM0\        P                  ! 4       pV P                   P                  V4       VP                  V4       \        P                  ! R4      pVP                  V4       R# )rq   z%(message)sN)r_   ÚsetLevelÚhandlersr‹  ÚStreamHandlerÚ
addHandlerÚ	FormatterÚsetFormatter)rJ   rx  ÚhandlerÚ	formatters   &&  r!   r‘  Ú'CommandLineInterface._configure_loggingž  s�   € ÜˆŒØ�‰×Ñ˜(Ô#ð �8‰8××ÐØ—h‘h×'Ñ'¨Õ*‰Gä×+Ò+Ó-ˆGØ�H‰H×Ñ Ô(Ø×Ñ˜Ô"Ü×%Ò% mÓ4ˆ	Ø×Ñ˜YÖ'r    c                	ó>  € \        V P                  P                  4       4       \        R 4       \        ^\        R V P                   4       4      ^,           4      p\        V P                  P                  4       4       F  w  r#\        RVRV 2 RV 24       K  	  R# )z	commands:c              3  ó8   "  € T F  p\        V4      x € K  	  R # 5ir-   r{  )r0   r�  s   & r!   r2   Ú-CommandLineInterface._help.<locals>.<genexpr>°  s   é € ÐI¹=°œs 7Ÿ|˜|»=ùr~  z  r  r€  N)r•  r†  Úformat_helpr“  r—  r”  rü   )rJ   Ú	cmd_widthÚnamer¨   s   &   r!   rˆ  ÚCommandLineInterface._help­  s|   € Üˆd�k‰k×%Ñ%Ó'Ô(ÜˆkÔÜ˜œ3ÑI¸4¿=º=ÓIÓIÈAÕMÓNˆ	Ü!'¨¯©×(;Ñ(;Ó(=Ö!>ÑˆDÜ�B�t˜A˜i˜[˜=Ð)¨¨;¨-Ð8Ö9ó "?r    c           
     ó&  € V P                   V,          pV! 4       pV P                  '       d   V P                  Vn        \        V\        4      '       g   Q hVP	                  4        \
        P                  ! V P                  VR3,          V P                  V,          R7      p\        VRR4      pVP                   EF&  w  rxp	VP                  R4      p
\        WJP                  RR4      4      pRV
 2.pV'       d   VP                  RV 24       VP                  VP                  P!                  V
R4      4       VP"                  P!                  V
R4      pW¦8X  d    V;P                  R	V
 R
2,          un        KÁ  W£P$                  9   d   VP&                  ! VRRRV	/  Kç  W£P(                  9   d   VP&                  ! VRRRV	RV/  EK  VP&                  ! VRV	RVRV/  EK)  	  VP+                  V4      w  rïV'       d   \-        WæP                  RR4      V4       \/        V4      P1                  4        F  w  pp\-        VVV4       K  	   VP3                  4        V#   \4         d&   pTP7                  \9        T4      4        Rp?T# Rp?ii ; i)z*
:type cmdname: str
:type argv: list[str]
rô   )rr  r¨   rZ   NÚ=Ú-Ú_z--r  Ú>rv  rt  rH   r�   ÚchoicesÚdefaultr   )Úcommand_classesr_   r6   rA   rD   r„  r…  rr  r—  r  r©   r/   Úreplacer�   r;   r]   Úgetr^   r\   rŠ  r[   r�  ÚsetattrÚvarsrü   rT   r$   ru   r7   )rJ   rœ  rƒ  Úcmdclassr�  r†  rZ   ÚlongÚshortrH   r®  r¶  Ústrsrµ  rð   r™  ÚkeyÚvalueÚerrs   &&&                r!   r˜  Ú'CommandLineInterface._configure_command´  s4  € ð
 ×'Ñ'¨Õ0ˆÙ“*ˆØ�8�8ˆ8ØŸ(™(ˆGŒKÜ˜'¤<×0Ò0Ð0Ð0Ø×"Ñ"Ô$ä×&Ò&Ø—*‘* ¨˜}Õ,ØŸ™ gÕ.ô
ˆô & h°	¸4Ó@ˆØ!)×!6Õ!6ÑˆD˜Ø—:‘:˜c“?ˆDÜ˜g§|¡|°C¸Ó'=Ó>ˆGØ˜˜�K�=ˆDßØ—‘˜a ˜w˜KÔ(Ø�K‰K˜×/Ñ/×3Ñ3°D¸"Ó=Ô>Ø×-Ñ-×1Ñ1°$¸Ó=ˆGØŒØ—’ ! D 6¨ Õ+—Ø×1Ñ1Ô1Ø×!Ò! 4ÐH°ÐHÀ4ÔHØ×8Ñ8Ô8Ø×!Ò! 4ÐU°ÐU¸tÐUÈWÕUà×!Ò! 4ÐU¨dÐU¸GÐUÈWÕUñ "7ð  ×)Ñ)¨$Ó/‰ˆçÜ�GŸ_™_¨S°#Ó6¸Ô=ä˜w›-×-Ñ-Ö/‰JˆC�Ü�G˜S %Ö(ñ 0ð	#Ø×$Ñ$Ô&ð ˆøô ô 	#Ø�L‰Lœ˜S›×"Ð"àˆûð	#ús   ÉI  É JÉ+JÊJ)r_   r†  r-   )r   r   r   r   r)   rr  ÚVERSIONrË   r—  ra   r¸   r/  rG  r·  r_   rx   r‘  rˆ  r˜  r   r   r    r!   rm  rm  W  sr   † ñð %€EØ�w�iÐ €GàÐ9ØÐOØÐ=ØÐDð	€Hð 	�>Ø�?Ø�Ø�-ð	€Oð €Cô,ò\(ò:ö.r    rm  c                 óP   € \        4       P                  \        P                  4      # r-   )rm  rx   r‚  rƒ  r   r    r!   ÚmainrÆ  å  s   € ÜÓ!×%Ñ%¤c§h¡hÓ/Ð/r    c                óR   € \         P                  ! R \        ^R7       \        W4      # )z:parse_mapping is deprecated, use parse_mapping_cfg instead)Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningr  )r  rî   s   &&r!   Úparse_mappingrÌ  é  s$   € Ü‡M‚MØDÜØõô
 ˜WÓ/Ð/r    c                ó´  € / p. p/ p\        4       pVP                  W4       VP                  4        Fo  pVR8X  d   \        VP	                  V4      4      pK&  R VP                  R^4       4       w  rxVP                  W‡34       \        VP	                  V4      4      WH&   Kq  	  V'       d+   \        V4       F  w  p	w  r‡Wr9   d	   W',          pW‡3W9&   K  	  W43# )zëParse an extraction method mapping from a file-like object.

:param fileobj: a readable file-like object containing the configuration
                text to parse
:param filename: the name of the file being parsed, for error messages
Ú
extractorsc              3  ó@   "  € T F  qP                  4       x € K  	  R # 5ir-   r.   )r0   Úparts   & r!   r2   Ú$parse_mapping_cfg.<locals>.<genexpr>  s   é € ÐNÑ8M°Ÿz™zŸ|˜|Ó8Mùr4   Ú:)r   Ú	read_fileÚsectionsrÞ   rü   r+   r�   r‡   )
r  rî   rÎ  r  r  r†  Úsectionrï   r   r’   s
   &&        r!   r  r  ò  sÒ   € ð €JØ€JØ€KäÓ€FØ
×Ñ�WÔ'à—?‘?Ö$ˆØ�lÔ"Ü˜fŸl™l¨7Ó3Ó4ŠJáN¸¿¹ÀcÈ1Ô8MÓN‰OˆFØ×Ñ˜wÐ/Ô0Ü#'¨¯©°WÓ(=Ó#>ˆKÓ ñ %÷ Ü&/°
Ö&;Ñ"ˆCÑ"�'ØÔ#Ø#Õ+�Ø&Ð/ˆJ‹Oñ '<ð
 Ð"Ð"r    rî   ú	(unknown)c               ó   € V ^8„  d   QhRR/# )rè   ÚconfigrÞ   r   )ré   s   "r!   rê   rê     s   € ÷ ,#ñ ,# ñ ,#r    c          
     ó°  € / p. p/ pV P                  R / 4      p\        V\        4      '       g   \        V R\	        V4      : 24      hVP                  4        FW  w  rg\        V\        4      '       g   \        V RV: 24      h\        V\        4      '       g   \        V RV: 24      hWrV&   KY  	  RV 9   d   \        V R24      hV P                  R. 4      p\        V\        4      '       g   \        V R\	        V4      : 24      h\        V4       EF:  w  rš\        V
\        4      '       g   \        V RV	 R	\	        V
4      : 24      hV
P                  4       p
V
P                  R
R4      p\        V\        4      '       g   \        V RV	 RV: 24      hVP                  Wf4      pV
P                  RR4      p\        V\        \        34      '       g   \        V RV	 RV: 24      h\        V\        4      '       g   V.pV FC  p\        V\        4      '       g   \        V RV	 RV: 24      hVP                  WÆ34       W¤V&   KE  	  EK=  	  W43# )rÎ  z): extractors: Expected a dictionary, got z6: extractors: Extraction method must be a string, got z;: extractors: Callable specification must be a string, got r  z8: 'mapping' is not a valid key, did you mean 'mappings'?r  z!: mappings: Expected a list, got z: mappings[z]: Expected a dictionary, got rï   Nz"]: 'method' must be a string, got r   z-]: 'pattern' must be a list or a string, got z+]: 'pattern' elements must be strings, got )r¹  r6   rÞ   r(   Útyperü   r7   r9   r‡   rÙ   Úpopr�   )rØ  rî   rÎ  r  r  Úextractors_readrï   Úcallable_specÚmappings_readr’   Úentryr   Úpats   &$           r!   Ú_parse_config_objectrá    sT  € Ø€JØ€JØ€Kà—j‘j ¨rÓ2€OÜ�o¤t×,Ò,Ü  H :Ð-VÔW[Ð\kÓWlÑVoÐ!pÓqÐqØ!0×!6Ñ!6Ö!8ÑˆÜ˜&¤#×&Ò&ä$¨ zÐ1gÐhnÑgqÐ%rÓsÐsÜ˜-¬×-Ò-Ü$¨ zÐ1lÐmzÑl}Ð%~ÓÐØ*�6Óñ "9ð �FÔÜ  H :Ð-eÐ!fÓgÐgà—J‘J˜z¨2Ó.€MÜ�m¤T×*Ò*Ü  H :Ð-NÌtÐTaÓObÑNeÐ!fÓgÐgÜ ×.‰
ˆÜ˜%¤×&Ò&Ü$¨ z°¸S¸EÐA_Ô`dÐejÓ`kÑ_nÐ%oÓpÐpØ—
‘
“ˆà—‘˜8 TÓ*ˆÜ˜&¤#×&Ò&Ü$¨ z°¸S¸EÐAcÐdjÑcmÐ%nÓoÐoØ—‘ Ó/ˆà—)‘)˜I tÓ,ˆÜ˜'¤D¬# ;×/Ò/Ü$¨ z°¸S¸EÐAnÐovÑnyÐ%zÓ{Ð{Ü˜'¤4×(Ò(Ø�iˆGãˆCÜ˜c¤3×'Ò'Ü(¨H¨:°[ÀÀÐEpÐqtÑpwÐ)xÓyÐyØ×Ñ˜s˜mÔ,Ø$˜Óô	 ñ! /ð, Ð"Ð"r    c               ó$   € V ^8„  d   QhRRRRRR/# )rè   r  r   rî   r7   r  z'Literal['standalone', 'pyproject.toml']r   )ré   s   "r!   rê   rê   @  s&   € ÷ &?ñ &?Øð&?àð&?ð 3ñ&?r    c                óä  €  ^ RI p TP                  T 4      pTR8X  d    TR,          R,          pM.TR8X  d   TpRT9   d   \        T R	24      hM\        R
T: 24      h\        YqR7      #   \         d(     ^ RIp Lw  \         d   p\        R4      ThRp?ii ; ii ; i  TP                   d   p\        T RT 24      ThRp?ii ; i  \        \        3 d   p\        T R24      ThRp?ii ; i)a¯  Parse an extraction method mapping from a binary file-like object.

.. warning: As of this version of Babel, this is a private API subject to changes.

:param fileobj: a readable binary file-like object containing the configuration TOML to parse
:param filename: the name of the file being parsed, for error messages
:param style: whether the file is in the style of a `pyproject.toml` file, i.e. whether to look for `tool.babel`.
Nz0tomli or tomllib is required to parse TOML filesz: Error parsing TOML file: r  Útoolr   z': No 'tool.babel' section found in filer  zC: 'babel' should not be present in a stand-alone configuration filezUnknown TOML style r  )
ÚtomllibÚImportErrorÚtomliÚloadÚTOMLDecodeErrorr(   Ú	TypeErrorÚKeyErrorÚ
ValueErrorrá  )r  rî   r  rå  ÚieÚparsed_datar9  Ú
babel_datas   &&&     r!   r  r  @  s,  € ðZÛðUØ—l‘l 7Ó+ˆð Ð Ô ð	bØ$ VÕ,¨WÕ5‰Jð 
�,Ô	Ø ˆ
Ø�jÔ Ü$¨ zÐ1tÐ%uÓvÐvð !ô Ð.¨u©iÐ8Ó9Ð9ä 
Ô>Ð>øô/ ô Zð	ZÝ#øÜô 	ZÜÐPÓQÐWYÐYûð	ZúðZûð ×"Ñ"ô UÜ  H :Ð-HÈÈÐ!LÓMÐSTÐTûðUûô œ8Ð$ô 	bÜ$¨ zÐ1XÐ%YÓZÐ`aÐaûð	búsW   ‚A+ ‡B   C
 Á+BÁ7A=Á=BÂBÂBÂBÂ CÂ1CÃCÃ
C/ÃC*Ã*C/c               ó    € V ^8„  d   QhRRRR/# )rè   r1   r7   Úreturnz4tuple[int | None, tuple[int | tuple[int, str], ...]]r   )ré   s   "r!   rê   rê   i  s   € ÷ 
ñ 
�3ð 
ÐOñ 
r    c                ó"  € . pR pV P                  R4       Fj  pVR,          R8X  d   \        VR R 4      pK!  VR,          R8X  d"   VP                  \        VR R 4      R34       KP  VP                  \        V4      4       Kl  	  V\        V4      3# )NrÖ   Útr,  éÿÿÿÿ)r+   rÜ   r�   r:   )r1   ÚindsÚnumberÚxs   &   r!   Ú_parse_specrø  i  s   € Ø€DØ€FØ�W‰W�SŽ\ˆØˆR�5�CŒ<Ü˜˜3˜B˜“[ŠFØˆr�U�cŒ\Ø�K‰Kœ˜Q˜s ˜V› cÐ*Ö+à�K‰Kœ˜A›Öñ ð ”5˜“;ÐÐr    c               ó   € V ^8„  d   QhRR/# )rè   ÚstringszIterable[str]r   )ré   s   "r!   rê   rê   v  s   € ÷ -ñ -˜Mñ -r    c                ó  € / pV  FE  pRV9   d"   VP                  R4      w  r4\        V4      w  rVMTpRpRpWaP                  V/ 4      V&   KG  	  VP                  4        F#  w  rx\	        V4      R08X  g   K  VR,          W&   K%  	  V# )ac  Parse keywords specifications from the given list of strings.

>>> import pprint
>>> keywords = ['_', 'dgettext:2', 'dngettext:2,3', 'pgettext:1c,2',
...             'polymorphic:1', 'polymorphic:2,2t', 'polymorphic:3c,3t']
>>> pprint.pprint(parse_keywords(keywords))
{'_': None,
 'dgettext': (2,),
 'dngettext': (2, 3),
 'pgettext': ((1, 'c'), 2),
 'polymorphic': {None: (1,), 2: (2,), 3: ((3, 'c'),)}}

The input keywords are in GNU Gettext style; see :doc:`cmdline` for details.

The output is a dictionary mapping keyword names to a dictionary of specifications.
Keys in this dictionary are numbers of arguments, where ``None`` means that all numbers
of arguments are matched, and a number means only calls with that number of arguments
are matched (which happens when using the "t" specifier). However, as a special
case for backwards compatibility, if the dictionary of specifications would
be ``{None: x}``, i.e., there is only one specification and it matches all argument
counts, then it is collapsed into just ``x``.

A specification is either a tuple or None. If a tuple, each element can be either a number
``n``, meaning that the nth argument should be extracted as a message, or the tuple
``(n, 'c')``, meaning that the nth argument should be extracted as context for the
messages. A ``None`` specification is equivalent to ``(1,)``, extracting the first
argument.
rÒ  N)r+   rø  Ú
setdefaultrü   Úset)	rú  rº   r‰   ÚfuncnameÚspec_strrö  Úspecrå   r÷   s	   &        r!   rÛ   rÛ   v  s’   € ð: €HÛˆØ�&Œ=Ø!'§¡¨cÓ!2ÑˆHÜ& xÓ0‰LˆF�DàˆHØˆFØˆDØ48×Ñ˜H bÓ)¨&Ó1ñ ð —‘Ö ‰ˆÜˆq‹6�d�VÖØ˜D�'ˆH‹Kñ !ð €Or    c               ó   € V ^8„  d   QhRR/# )rè   r®  r7   r   )ré   s   "r!   rê   rê   ¦  s   € ÷ Kñ K�cñ Kr    c                ó`   € V R9   d   ^ RI Hp \        W4      # \        R\        : RV : 24      h)Úcheck_message_extractors)Úsetuptools_frontendzmodule z has no attribute >   Úinit_catalogÚupdate_catalogÚcompile_catalogÚextract_messagesr  )Úbabel.messagesr  r  ÚAttributeErrorr   )r®  r  s   & r!   Ú__getattr__r  ¦  s5   € ð ÐtÔtÝ6äÐ*Ó1Ð1ä
˜7¤8¡,Ð.@ÀÁÐIÓ
JÐJr    Ú__main__r-   )rÖ  r  )r   )Cr)   Ú
__future__r   r>  r­   r‹  r„  r‚   rÝ   r]  r‚  rV  rÉ  Úconfigparserr   Úior   Útypingr   r   r   r   r   r	   r
   rÄ  Ú
babel.corer   Úbabel.messages.catalogr   r   Úbabel.messages.extractr   r   r   r   Úbabel.messages.mofiler   Úbabel.messages.pofiler   r   Ú
babel.utilr   Ú	getLoggerr_   rX  r   r$   r&   r(   r<   rA   ra   r¶   r¸   r/  rG  rm  rÆ  rÌ  r  rá  r  rø  rÛ   r  r   r   r    r!   Ú<module>r     s@  ðñõ #ã Û Û Û Û 	Û 	Û Û 
Û Û Ý (Ý ß .Ñ .ç $Ý (Ý )ß :÷ó õ +ß 3Ý à×Ò˜Ó €ô	�	ô 	ô	�)ô 	ô	�ô 	ô˜ô ô'÷T3
ñ 3
ôlt#�\ô t#òn ô \�lô \ô~H9�,ô H9ôVE�Lô E÷PKñ Kò\0ô0ô#ð>,#°;÷ ,#÷^&?õR
÷-õ`Kð ˆzÔÙ†Fñ r    