ó
    F\hU2  ã                   óŒ  • S r SSKrSSKrSSKrSSKrSSKrSS/r\" \5      r	 " S S\
5      r " S S\
5      r   SS	 jr   SS
 jr\4S jr " S S\5      rSS jr  SS jr\4S jrS rSS jr\S:X  aK  \" \R4                  5      S:  a  \" S\R8                  S9  g\R4                  S	 \" \R4                  S   5        gg)aZ  runpy.py - locating and running Python code using the module namespace

Provides support for locating and running Python scripts using the Python
module namespace instead of the native filesystem.

This allows Python code to play nicely with non-filesystem based PEP 302
importers when locating support scripts as well as when importing modules.
é    NÚ
run_moduleÚrun_pathc                   ó*   • \ rS rSrSrS rS rS rSrg)Ú_TempModuleé   zCTemporarily replace a module in sys.modules with an empty namespacec                 ó>   • Xl         [        U5      U l        / U l        g ©N)Úmod_nameÚ
ModuleTypeÚmoduleÚ_saved_module©Úselfr
   s     Ú/usr/lib/python3.13/runpy.pyÚ__init__Ú_TempModule.__init__   s   € Ø ŒÜ  Ó*ˆŒØˆÕó    c                 óÒ   • U R                   n U R                  R                  [        R                  U   5        U R                  [        R                  U'   U $ ! [
         a     N+f = fr	   )r
   r   ÚappendÚsysÚmodulesÚKeyErrorr   r   s     r   Ú	__enter__Ú_TempModule.__enter__!   sZ   € Ø—=‘=ˆð	Ø×Ñ×%Ñ%¤c§k¡k°(Ñ&;Ô<ð !%§¡Œ�‰�HÑØˆøô ó 	Ùð	ús   Ž,A Á
A&Á%A&c                 óÀ   • U R                   (       a+  U R                   S   [        R                  U R                  '   O[        R                  U R                  	 / U l         g ©Nr   )r   r   r   r
   ©r   Úargss     r   Ú__exit__Ú_TempModule.__exit__*   s@   € Ø××Ø)-×);Ñ);¸AÑ)>ŒC�K‰K˜Ÿ™Ò&ä—‘˜DŸM™MÐ*ØˆÕr   )r   r
   r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   Ú__static_attributes__© r   r   r   r      s   † ÙMò ò
õ r   r   c                   ó&   • \ rS rSrS rS rS rSrg)Ú_ModifiedArgv0é1   c                 ó<   • Xl         [        5       =U l        U l        g r	   )ÚvalueÚobjectÚ_saved_valueÚ	_sentinel)r   r,   s     r   r   Ú_ModifiedArgv0.__init__2   s   € ØŒ
Ü-3«XÐ5ˆÔ˜D�Nr   c                 ó¶   • U R                   U R                  La  [        S5      e[        R                  S   U l         U R
                  [        R                  S'   g )NzAlready preserving saved valuer   )r.   r/   ÚRuntimeErrorr   Úargvr,   )r   s    r   r   Ú_ModifiedArgv0.__enter__6   sA   € Ø×Ñ D§N¡NÒ2ÜÐ?Ó@Ð@ÜŸH™H Q™KˆÔØ—j‘jŒ�‰�Šr   c                 ó`   • U R                   U l        U R                  [        R                  S'   g r   )r/   r,   r.   r   r3   r   s     r   r   Ú_ModifiedArgv0.__exit__<   s    € Ø—^‘^ˆŒ
Ø×'Ñ'Œ�‰�Šr   )r.   r/   r,   N)r!   r"   r#   r$   r   r   r   r&   r'   r   r   r)   r)   1   s   † ò6ò!õ(r   r)   c           
      óè   • Ub  UR                  U5        Uc  SnUnSn	O3UR                  nUR                  nUR                  n	Uc  UR                  nUR                  UUU	SUUUS9  [        X5        U$ )z)Helper to run code in nominated namespaceN)r!   Ú__file__Ú
__cached__r%   Ú
__loader__Ú__package__Ú__spec__)ÚupdateÚloaderÚoriginÚcachedÚparentÚexec)
ÚcodeÚrun_globalsÚinit_globalsr
   Úmod_specÚpkg_nameÚscript_namer>   Úfnamer@   s
             r   Ú	_run_coderJ   A   sŽ   € ð ÑØ×Ñ˜<Ô(ØÑØˆØˆØ‰à—‘ˆØ—‘ˆØ—‘ˆØÑØ—‘ˆHØ×Ñ (Ø"'Ø$*Ø!%Ø$*Ø%-Ø"*ð ñ ,ô 	ˆÔØÐr   c                 ó>  • Uc  UOUR                   n[        U5       n[        U5         UR                  R                  n[        XUX#XE5        SSS5        SSS5        WR                  5       $ ! , (       d  f       N&= f! , (       d  f       WR                  5       $ = f)z5Helper to run code in new namespace with sys modifiedN)r?   r   r)   r   Ú__dict__rJ   Úcopy)	rC   rE   r
   rF   rG   rH   rI   Útemp_moduleÚmod_globalss	            r   Ú_run_module_coderP   [   sƒ   € ð $Ñ+‰K°·±€EÜ	�XÔ	 +¬~¸eÕ/DØ!×(Ñ(×1Ñ1ˆÜ�$ \Ø hô	=÷ 0E×	ð ×ÑÓÐ÷ 0EÕ/Dú×	Ô	ð ×ÑÓÐús"   �A?©%A.ÁA?Á.
A<	Á8A?Á?
Bc           	      óè  • U R                  S5      (       a  U" S5      eU R                  S5      u  n  nU(       ae   [        U5        [
        R                  R                  U 5      nUb7  [        US5      (       d&  SSK	J
n  SR                  XS9nU" [        U5      5         [        R                  R                  U 5      nUc  U" SU -  5      eUR,                  b5  U S:X  d  U R'                  S5      (       a  U" S5      e U S-   n
[/        X¡5      $ UR0                  nUc  U" SU -  5      e UR3                  U 5      nUc  U" SU -  5      eXU4$ ! [         aL  nUR                  b3  UR                  U:w  a$  UR                  UR                  S-   5      (       d  e  S nAGNXS nAff = f! [        [         ["        [$        4 aY  n	SnU R'                  S	5      (       a  US
U S S  SU  S3-  nU" UR                  U [)        U	5      R*                  U	5      5      U	eS n	A	ff = f! U a*  nU [
        R                  ;  a  e U" U< SU < S35      eS nAff = f! [         a  nU" [        U5      5      UeS nAff = f)NÚ.z#Relative module names not supportedÚ__path__r   )Úwarnzš{mod_name!r} found in sys.modules after import of package {pkg_name!r}, but prior to execution of {mod_name!r}; this may result in unpredictable behaviour)r
   rG   z:Error while finding module specification for {!r} ({}: {})z.pyz. Try using 'éýÿÿÿz' instead of 'z' as the module name.zNo module named %sÚ__main__z	.__main__z%Cannot use package as __main__ modulez; z- is a package and cannot be directly executedz0%r is a namespace package and cannot be executedzNo code object available for %s)Ú
startswithÚ
rpartitionÚ
__import__ÚImportErrorÚnamer   r   ÚgetÚhasattrÚwarningsrT   ÚformatÚRuntimeWarningÚ	importlibÚutilÚ	find_specÚAttributeErrorÚ	TypeErrorÚ
ValueErrorÚendswithÚtyper!   Úsubmodule_search_locationsÚ_get_module_detailsr>   Úget_code)r
   ÚerrorrG   Ú_ÚeÚexistingrT   ÚmsgÚspecÚexÚpkg_main_namer>   rC   s                r   rj   rj   i   s˜  € Ø×Ñ˜3×ÑÙÐ9Ó:Ð:Ø×(Ñ(¨Ó-�N€Hˆa�Þð	Ü�xÔ ô —;‘;—?‘? 8Ó,ˆØÑ¬°¸*×(EÑ(EÝ%ð÷ #™F¨H˜FÐHð ñ ” Ó$Ô%ð
IÜ�~‰~×'Ñ'¨Ó1ˆð �|ÙÐ(¨8Ñ3Ó4Ð4Ø×&Ñ&Ñ2Ø�zÓ! X×%6Ñ%6°{×%CÑ%CÙÐ?Ó@Ð@ð	GØ$ {Ñ2ˆMÜ& }Ó<Ð<ð �[‰[€FØ�~ÙÐFØCKñLó Mð 	Mð&Ø�‰˜xÓ(ˆð �|ÙÐ5¸Ñ@ÓAÐAØ˜4ÐÐøôg ó 	ð �v‰v‰~ !§&¡&¨HÓ"4Ø ×+Ñ+¨A¯F©F°S©L×9Ñ9Øÿùð	ûô& œ¬´JÐ?ó Ið KˆØ×Ñ˜U×#Ñ#Ø�m H¨S¨b M ?ð 3Ø �zÐ!6ð8ñ 9ˆCá�C—J‘J˜x¬¨b«×):Ñ):¸BÓ?Ó@ÀbÐHûðIûð" ó 	GØœsŸ{™{Ó*ØÙÛ9:»HðFó Gð Gûð	Gûô ó &Ù”F˜1“IÓ AÐ%ûð&úsa   ¼E Â!F' Ä H Ä+I Å
F$ÅAFÆF$Æ'HÇAHÈHÈIÈ#%IÉIÉ
I1ÉI,É,I1c                   ó   • \ rS rSrSrSrg)Ú_Erroré¦   zBError that _run_module_as_main() should report without a tracebackr'   N)r!   r"   r#   r$   r%   r&   r'   r   r   ru   ru   ¦   s   † ÜLr   ru   c                 ó”  •  U(       d  U S:w  a  [        U [        5      u  pnO[        [        5      u  pn [        R                  S   R                  nU(       a  WR                  [        R                  S'   [        WUSSW5      $ ! [         a7  n[        R                  < SU< 3n[        R
                  " U5         SnANŒSnAff = f)a‚  Runs the designated module in the __main__ namespace

Note that the executed module will have full access to the
__main__ namespace. If this is not desirable, the run_module()
function should be used to run the module code in a fresh namespace.

At the very least, these variables in __main__ will be overwritten:
    __name__
    __file__
    __cached__
    __loader__
    __package__
rV   z: Nr   )rj   ru   Ú_get_main_module_detailsr   Ú
executableÚexitr   rL   r?   r3   rJ   )r
   Ú
alter_argvrF   rC   Úexcrp   Úmain_globalss          r   Ú_run_module_as_mainr~   ­   s    € ðÞ˜ ZÓ/Ü':¸8ÄVÓ'LÑ$ˆH¡ä'?ÄÓ'GÑ$ˆH¡ô —;‘;˜zÑ*×3Ñ3€LÞØ—o‘oŒ�‰�‰Ü�T˜<¨Ø ó+ð +øô ó ÜŸ.œ.ª#Ð.ˆÜ�Š��‰ûðús   ‚ B £B Â
CÂ-CÃCc                 ój   • [        U 5      u  pnUc  U nU(       a  [        XQX$5      $ [        U0 XU5      $ )uÊ  Execute a module's code without importing it.

mod_name -- an absolute module name or package name.

Optional arguments:
init_globals -- dictionary used to pre-populate the moduleâ€™s
globals dictionary before the code is executed.

run_name -- if not None, this will be used for setting __name__;
otherwise, __name__ will be set to mod_name + '__main__' if the
named module is a package and to just mod_name otherwise.

alter_sys -- if True, sys.argv[0] is updated with the value of
__file__ and sys.modules[__name__] is updated with a temporary
module object for the module being executed. Both are
restored to their original values before the function returns.

Returns the resulting module globals dictionary.
)rj   rP   rJ   )r
   rE   Úrun_nameÚ	alter_sysrF   rC   s         r   r   r   É   sA   € ô*  3°8Ó<Ñ€H˜ØÑØˆÞÜ °HÓGÐGô ˜˜r <¸8ÓDÐDr   c                 óD  • Sn[         R                  U   n[         R                  U	  [        U5      U[         R                  U'   $ ! [         a7  nU[	        U5      ;   a"  U " SU< S[         R
                  S   < 35      Uee S nAff = f! U[         R                  U'   f = f)NrV   zcan't find z module in r   )r   r   rj   rZ   ÚstrÚpath)rl   Ú	main_nameÚ
saved_mainr|   s       r   rx   rx   ç   s•   € ð
 €IÜ—‘˜YÑ'€JÜ�‰�IÐð,Ü" 9Ó-ð ",Œ�‰�IÒøô ó Øœ˜C›Ó ÚÛ(¬#¯(©(°1«+ð7ó 8Ø=@ðAàûð	ûð ",Œ�‰�IÒús#   ¨
A Á
BÁ2BÂBÂB
 Â
Bc                 ób  • SSK Jn  [        R                  R	                  U 5      n[
        R                  " U5       nU" U5      nS S S 5        Wc<  [
        R                  " U5       n[        UR                  5       U S5      nS S S 5        U$ U$ ! , (       d  f       NO= f! , (       d  f       U$ = f)Nr   )Ú	read_coderB   )	Úpkgutilrˆ   Úosr„   ÚabspathÚioÚ	open_codeÚcompileÚread)rI   rˆ   Ú	code_pathÚfrC   s        r   Ú_get_code_from_filer’   ú   s   € å!Ü—‘—‘ Ó&€IÜ	�Š�iÔ	  AÙ˜‹|ˆ÷ 
!à�|ä�\Š\˜)Ô$¨Ü˜1Ÿ6™6›8 U¨FÓ3ˆD÷ %à€Kˆ4€K÷ 
!Õ	 ú÷ %Ô$à€Kús   ¼	BÁ&BÂ
BÂ
B.c           
      ót  • Uc  SnUR                  S5      S   nSSKJn  U" U 5      n[        R                  " U 5      n [        U[        S5      5      (       a  [        U 5      n[        XaUX0S9$ [        R                  R                  SU 5         [        5       u  pxn[        U5       n	[        U 5         U	R                  R                   n
[#        XjUX(U5      R%                  5       sSSS5        sSSS5         [        R                  R'                  U 5        $ ! [(         a     $ f = f! , (       d  f       O= f SSS5        O! , (       d  f       O= f [        R                  R'                  U 5        g! [(         a     gf = f!  [        R                  R'                  U 5        f ! [(         a     f f = f= f)uØ  Execute code located at the specified filesystem location.

path_name -- filesystem location of a Python script, zipfile,
or directory containing a top level __main__.py script.

Optional arguments:
init_globals -- dictionary used to pre-populate the moduleâ€™s
globals dictionary before the code is executed.

run_name -- if not None, this will be used to set __name__;
otherwise, '<run_path>' will be used for __name__.

Returns the resulting module globals dictionary.
Nz
<run_path>rR   r   )Úget_importer)rG   rH   )rX   r‰   r”   rŠ   ÚfsdecodeÚ
isinstancerh   r’   rP   r   r„   Úinsertrx   r   r)   r   rL   rJ   rM   Úremoverf   )Ú	path_namerE   r€   rG   r”   ÚimporterrC   r
   rF   rN   rO   s              r   r   r     st  € ð ÑØˆØ×"Ñ" 3Ó'¨Ñ*€HÝ$Ù˜IÓ&€HÜ—’˜IÓ&€IÜ�(œD ›J×'Ñ'ô # 9Ó-ˆÜ °HØ)1ñJð 	Jô
 	�‰�‰˜˜9Ô%ð	ô (@Ó'AÑ$ˆH Ü˜XÔ&¨+Ü 	Õ*Ø)×0Ñ0×9Ñ9�Ü  °LØ$,¸óBßBFÁ$Ã&÷ +Ð*÷ 'Ð&ðÜ—‘—‘ 	Õ*øÜó Ùðú÷ +Õ*úÐ*÷ '×&Ö&úðÜ—‘—‘ 	Õ*øÜó ÙðûðÜ—‘—‘ 	Õ*øÜó ÙðýsŠ   ÂF Â'EÂ32D(Ã%	EÃ.	F Ã8DÄ
D%Ä$D%Ä(
D6	Ä2EÄ:	F Å
EÅF ÅE5 Å5
FÆFÆF7ÆF'Æ&F7Æ'
F4Æ1F7Æ3F4Æ4F7rV   é   z!No module specified for execution)Úfile)NNNNN)T)NNF)NN)r%   r   Úimportlib.machineryra   Úimportlib.utilrŒ   rŠ   Ú__all__rh   r   r-   r   r)   rJ   rP   rZ   rj   Ú	Exceptionru   r~   r   rx   r’   r   r!   Úlenr3   ÚprintÚstderrr'   r   r   Ú<module>r¤      sö   ðñó Û Û Û 	Û 	ð �*ð€ñ
 �#‹Y€
ô �&ô  ô.(�Vô (ð  /3Ø&*Ø)-ôð4 )-Ø,0Ø/3ôð )4ô ; ôzMˆYô Mô+ð8 '+Ø(-ôEð< $/ô ,ò&
ô0ðf ˆzÓá
ˆ3�8‰8ƒ}�qÓÙÐ1¸¿
¹
ÓCà�H‰H�QˆKÙ˜CŸH™H Q™KÕ(ð r   