+
     hH  c                   sz   ^ RI H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HtHt ^RIHt ^RIHtHtHtHtHtHt ]P.                  ! ]4      tRP5                  4       t]P8                  ! R4      tR	t]P>                  R
8X  g#   ]P>                  R8X  d   ]P@                  R
8X  dy   ]PC                  R^4      ^ ,          t"]! ]"4      PG                  R4       U u/ uF=  p V P>                  PI                  R4      '       g   K&  V P>                  V PJ                  bK?  	  up t&R t']'t( ! R R])4      t*R# u up i )    )BytesION)ZipInfo)	sysconfigdetect_encodingZipFile)finder)FileOperatorget_export_entryconvert_pathget_executableget_platformin_venva  
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <assemblyIdentity version="1.0.0.0"
 processorArchitecture="X86"
 name="%s"
 type="win32"/>

 <!-- Identify the application security requirements. -->
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
 <security>
 <requestedPrivileges>
 <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
 </requestedPrivileges>
 </security>
 </trustInfo>
</assembly>s   ^#!.*pythonw?[0-9.]*([ 	].*)?$z# -*- coding: utf-8 -*-
import re
import sys
from %(module)s import %(import_name)s
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(%(func)s())
ntjava. .exec                 s    R V 9   dv   V P                  R4      '       d?   V P                  R ^4      w  rR V9   d"   VP                  R4      '       g   V: RV: R2p V # V P                  R4      '       g
   RV ,          p V # ) z/usr/bin/env Z"z "z"%s")
startswithsplit)
executableZenvZ_executables   &  @/usr/lib/python3.14/site-packages/pip/_vendor/distlib/scripts.pyenquote_executabler   G   s    
j
   11)//Q7Ck!+*@*@*E*E*-{;
  ((--#j0
    c                   s~  a  ] tR t^[t o Rt]tRtRR ltR t	]
P                  P                  R4      '       d   R tR tR tRR	 ltR
 t]tR tR tRtR tRR ltR t]R 4       t]P8                  R 4       t]P<                  R8X  g#   ]P<                  R8X  d   ]P>                  R8X  d   R t RR lt!RR lt"Rt#V t$R# )ScriptMakerzS
A class to copy or create scripts from source scripts or callable
specifications.
Nc                s   Wn         W n        W0n        R V n        R V n        \
        P                  R8H  ;'       g/    \
        P                  R8H  ;'       d    \
        P                  R8H  V n        \        R4      V n
        T;'       g    \        V4      V n        \
        P                  R8H  ;'       g/    \
        P                  R8H  ;'       d    \
        P                  R8H  V n        \        P                  V n        R# )Fposixr   r   N)r   X.Y)
source_dir
target_diradd_launchersforceclobberosname_nameset_modesetvariantsr   _fileop_is_ntsysversion_info)selfr   r   r   dry_runZfileops   &&&&&&r   __init__ZScriptMaker.__init__d   s    $$*
G+[[F1B1Z1ZrxxSZGZK(66g!6ggoQQ"''V*;*P*PD@P,,r   c                s    VP                  R R4      '       de   V P                  '       dS   \        P                  P	                  V4      w  r4VP                  RR4      p\        P                  P                  W44      pV# )guiFpythonZpythonw)getr(   r!   pathr   replacejoin)r+   r   optionsZdnZfn   &&&  r   _get_alternate_executableZ%ScriptMaker._get_alternate_executabler   sW    ;;ue$$WW]]:.FBHi0Bb-Jr   r   c                s     \        V4      ;_uu_ 4       pVP                  ^4      R8H  uuRRR4       #   + '       g   i     R# ; i  \        \        3 d    \        P                  RT4        R# i ; i)zH
Determine if the specified executable is a script
(contains a #! line)
z#!NzFailed to open %sF)openreadZOSErrorIOErrorloggerwarning)r+   r   Zfp   && r   	_is_shellZScriptMaker._is_shell{   sX    
*%%771:- &%%%W% 2J?s*   A 4
A A	A A 'A32A3c                s   V P                  V4      '       d;   ^ RIpVP                  P                  P	                  R4      R8X  d   V#  RV,          # VP                  4       P                  R4      '       d   V# RV,          # )r    Nzos.nameZLinuxz
jython.exez/usr/bin/env %s)r=   r   ZlangZSystemZgetPropertyZlowerendswith)r+   r   r   r<   r   _fix_jython_executableZ"ScriptMaker._fix_jython_executable   sw    ~~j))99##//	:gE%% F
 %z11 !!#,,\::!!$z11r   c                s   \         P                  R8w  d   RpMg\        \        RR4      '       d   RpMM\	        V4      \	        V4      ,           ^,           p\        P
                  R8X  d   RpM^pRV9  ;'       d    WE8*  pV'       d   RV,           V,           R	,           pV# R
pVRV,           V,           R,           ,          pVR,          pV# )a  
Build a shebang line. In the simple case (on Windows, or a shebang line
which is not too long or contains spaces) use a simple formulation for
the shebang. Otherwise, use /bin/sh as the executable, with a contrived
shebang which allows the script to run either under Python or sh, using
suitable quoting. Thanks to Harald Nordgren for his input.

See also: http://www.in-ulm.de/~mascheck/various/shebang/#length
          https://hg.mozilla.org/mozilla-central/file/tip/mach
r   TZcross_compilingFZdarwini   s    s   #!   
s
   #!/bin/sh
s	   '''exec' s    "$0" "$@"
s   ' '''
)r!   r"   Zgetattrr)   Zlenplatform)r+   r   post_interpZsimple_shebangZshebang_lengthZmax_shebang_lengthresults   &&&    r   _build_shebangZScriptMaker._build_shebang   s     77g!NS+U33
 #N !_s;/??!CN||x'%("%("#:5aaN<`NZ'+5=F
  $FlZ/+=OOFj Fr   c                s.   R pV P                   '       d   V P                   pRpEMO\        P                  ! 4       '       g   \        4       pEM(\	        4       '       dQ   \
        P                  P                  \        P                  ! R4      R\        P                  ! R4      ,          4      pM\
        P                  R8X  dQ   \
        P                  P                  \        P                  ! R4      R\        P                  ! R4      ,          4      pMc\
        P                  P                  \        P                  ! R4      R\        P                  ! R4      : \        P                  ! R4      : 24      pV'       d   V P                  WS4      p\        P                  P                  R	4      '       d   V P                  V4      pV'       d   \!        V4      pVP#                  R
4      p\        P                  R8X  d   RV9  d   RV9  d
   VR,          pV P%                  WR4      p VP'                  R
4       TR
8w  d    TP'                  T4       T# T#   \(         d    \+        RT,          4      hi ; i  \(         d    \+        RT: RT: R24      hi ; i)TFZscriptszpython%sZEXEr   ZBINDIRr/   ZVERSIONr   utf-8Zcliz	-X:Framesz-X:FullFramess
    -X:Framesz,The shebang (%r) is not decodable from utf-8zThe shebang (z-) is not decodable from the script encoding (Z))r   r   Zis_python_buildr
   r   r!   r1   r3   Zget_pathZget_config_varr"   r6   r)   rA   r   r?   r   encoderD   ZdecodeZUnicodeDecodeError
ValueError)r+   encodingrB   r4   Zenquoter   shebangs   &&&&   r   _get_shebangZScriptMaker._get_shebang   s	   ???JG**,,')JYYi&8&8&CZR[RjRjkpRqEqrJww$  WW\\)*B*B8*L*4	8P8PQV8W*XZ
  WW\\,,X6$-$<$<Y$GIaIabgIhik
 77
LJ<<""6**44Z@J +J7J  &&w/
LLE!k&D{2=(K%%j>	WNN7# wXx( w " 	WKgUVV	W & X DKX"W X XXs   %I >I4 I14 Jc                s    V P                   \        VP                  VP                  P	                  R 4      ^ ,          VP                  R7      ,          # )r   )ZmoduleZimport_nameZfunc)script_templateZdictZprefixZsuffixr   )r+   entry   &&r   _get_script_textZScriptMaker._get_script_text   sB    ##d<<U\\-?-?-DQ-Gell'\ \ 	\r   c                sf    \         P                  P                  V4      pV P                  V,          # N)r!   r1   basenamemanifest)r+   ZexenameZbaser<   r   get_manifestZScriptMaker.get_manifest   s%    ww(}}t##r   c                s"   V P                   ;'       d    V P                  pV'       g
   W#,           pMVR 8X  d   V P                  R4      pMV P                  R4      p\        4       p\	        VR4      ;_uu_ 4       p	\
        P                  P                  R4      p
V
'       dF   \        P                  ! \        V
4      4      R,          p\        RVR7      pV	P                  W4       MV	P                  RV4       RRR4       VP                  4       pWr,           V,           pV EFz  p\
        P                  P                  V P                   V4      pV'       db   \
        P                  P#                  V4      w  ppVP%                  R4      '       d   TpR	V,          p V P&                  P)                  W4       MV P                  '       d(   VP9                  RV,           4      '       g
   V: RV: 2p\
        P                  P1                  V4      '       d,   V P:                  '       g   \,        P/                  RV4       EK   V P&                  P)                  W4       V P<                  '       d   V P&                  P?                  V.4       VPA                  V4       EK}  	  R#   + '       g   i     EL; i  \*         d    \,        P/                  R
4       RT,          p\
        P                  P1                  T4      '       d   \
        P2                  ! T4       \
        P4                  ! TT4       T P&                  P)                  Y4       \,        P7                  R4        \
        P2                  ! T4        L  \*         d      Li ; ii ; i)pyZtZwZSOURCE_DATE_EPOCH:Ni   Nz__main__.py)Zfilename	date_timeNz.pyz%s.exez:Failed to write executable - trying to use .deleteme logicz%s.deletemez0Able to replace executable using .deleteme logicr   zSkipping existing file %s)!r   r(   _get_launcherr   r   r!   Zenvironr0   timeZgmtimeZintr   ZwritestrZgetvaluer1   r3   r   Zsplitextr   r'   Zwrite_binary_fileZ	Exceptionr:   r;   ZexistsZremoveZrenamedebugr>   r    r$   set_executable_modeappend)r+   ZnamesrI   Zscript_bytes	filenamesextZuse_launcherZlauncherZstreamZzfZsource_date_epochrT   ZzinfoZzip_datar"   outnamenZeZdfnames   &&&&&&             r   _write_scriptZScriptMaker._write_script  s   ))99dkk"1Ld{--c2--c2YF%%$&JJNN3F$G!$ $C0A,B CB GI#]iPEKK4KK|< & (H#-8LDggll4??D9Gww''01<<&&G"W,LL227I" ;;;w'7'7c	'B'B)0#6G77>>'**4<<<NN#>H..wE===LL44gY?W%C  &%%& ! NN $9 :*W4Fww~~f--		&)IIgv.LL227ILL "3 4		&)$ s?   :A?J#J7#J4	7ANAN#M;;N
N	N

NZ-c                s   \        4       pR V P                  9   d   VP                  V4       RV P                  9   d)   VP                  V: V P                  ^ ,          : 24       RV P                  9   dK   VP                  V: V P                  : V P                  ^ ,          : RV P                  ^,          : 24       V# )r   ZXr   r   )r%   r&   Zaddr*   variant_separator)r+   r"   rC   r<   r   get_script_filenamesZ ScriptMaker.get_script_filenames<  s    JJt$--JJt'8'8';<=DMM!JJdD,B,BDDUDUVWDXDXZ^ZkZklmZnopr   c                s   R pV'       dD   VP                  R. 4      pV'       d*   RRP                  V4      ,          pVP                  R4      pV P                  RWCR7      pV P	                  V4      P                  R4      pV P                  VP                  4      pV'       d   VP                  RR4      '       d   Rp	MR	p	V P                  WWrV	4       R
# )r   Zinterpreter_argsz %sr   rE   r4   r.   FpywrS   N)r0   r3   rF   rJ   rN   r`   r"   r^   )
r+   rL   rZ   r4   rB   ZargsrI   scriptZscriptnamesr[   s
   &&&&      r   _make_scriptZScriptMaker._make_scriptF  s    ;;126Dsxx~-"kk'2##G[#J&&u-44W=//

;w{{5%00CC;CHr   c                s   R p\         P                  P                  V P                  \	        V4      4      p\         P                  P                  V P
                  \         P                  P                  V4      4      pV P                  '       g:   V P                  P                  W4      '       g   \        P                  RV4       R#  \        VR4      pVP                  4       pV'       g   \        P                  RV4       R# \        P!                  VP#                  RR4      4      pV'       d   RpVP%                  ^4      ;'       g    RpT'       gu   T'       d   TP+                  4        T P                  P-                  Y4       T P.                  '       d   T P                  P1                  T.4       TP3                  T4       R# \        P5                  R	YP
                  4       T P                  P(                  '       g   \7        TP                  4      w  rTP9                  ^ 4       T P;                  T	X4      pR
X9   d   RpMRp\         P                  P                  T4      pT P=                  T.YP?                  4       Y,4       T'       d   TP+                  4        R# R#   \&         d    T P(                  '       g   h Rp EL~i ; i)Fznot copying %s (up-to-date)NZrbz%s is an empty file (skipping)s   
r@   Tr   zcopying and adjusting %s -> %ss   pythonwrb   rS   ) r!   r1   r3   r   r	   r   rP   r   r'   Znewerr:   rW   r7   Zreadliner;   FIRST_LINE_REmatchr2   Zgroupr9   r,   ZcloseZ	copy_filer$   rX   rY   Zinfor   ZseekrJ   r^   r8   )r+   rc   rZ   Zadjustr\   ZfZ
first_linerf   rB   rH   ZlinesrI   r[   r]   s   &&&           r   _copy_scriptZScriptMaker._copy_scriptV  s   doo|F/CD'',,t0@0@0HIzzz$,,"4"4V"E"ELL6?
	4VT"A J?H!''
(:(:7E(JKE#kk!n33	LL""63}}}00';W%KK8&//R<<'''"1!**"=q	++HkB+CCGG$$W-""A39J	 E  	<<<A	s   	J* *KKKc                s.    V P                   P                  # rO   r'   r,   )r+   s   &r   r,   ScriptMaker.dry_run  s    ||###r   c                s&    WP                   n        R # rO   rh   )r+   ZvaluerM   r   r,   ri     s    $r   r   c                s    \         P                  ! R 4      ^8X  d   RpMRp\        4       R8X  d   RMRpV: V: V: R2pV\        9  d   RV: R\        : 2p\        V4      h\        V,          # )	ZPZ64Z32z	win-arm64z-armr   r   zUnable to find resource z in package )structZcalcsizer   WRAPPERSDISTLIB_PACKAGErG   )r+   ZkindZbitsZplatform_suffixr"   Zmsgs   &&    r   rU   ZScriptMaker._get_launcher  sa    s#q((4+(Ef2O#'?D8#o/ o%D>!r   c                st    . p\        V4      pVf   V P                  W4       V# V P                  WCVR7       V# )a  
Make a script.

:param specification: The specification, which is either a valid export
                      entry specification (to make a script from a
                      callable) or a filename (to make a script by
                      copying from a source location).
:param options: A dictionary of options controlling script generation.
:return: A list of all absolute pathnames written to.
ra   )r   rg   rd   )r+   specificationr4   rZ   rL   r5   r   makeZScriptMaker.make  sI     	 /=m7  e@r   c                s\    . pV F#  pVP                  V P                  WB4      4       K%  	  V# )z
Take a list of specifications and make scripts from them,
:param specifications: A list of specifications.
:return: A list of all absolute pathnames written to,
)Zextendrn   )r+   Zspecificationsr4   rZ   rm   r5   r   make_multipleZScriptMaker.make_multiple  s0     	+MTYY}>? ,r   )
r'   r(   r   r    r   r$   r   r   r&   r*   )TFN)r   NrO   )%__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__SCRIPT_TEMPLATErK   r   r-   r6   r)   rA   r   r=   r?   rD   rJ   rN   _DEFAULT_MANIFESTrQ   rR   r^   r_   r`   rd   rg   Zpropertyr,   Zsetterr!   r"   r#   rU   rn   ro   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r   [   s      &OJ- ||v&&
	
	2"H@D\ !H$5&n I 0d $ $ ^^% % 
ww$277f,T1A	"&	 	r   r   )+Zior   Zloggingr!   Zrerj   r)   rV   Zzipfiler   Zcompatr   r   r   Z	resourcesr   Zutilr   r   r	   r
   r   r   Z	getLoggerrp   r:   Zstriprr   Zcompilere   rq   r"   r#   Zrsplitrl   Ziteratorr>   Zbytesrk   r   Z_enquote_executableZobjectr   )Zrs   0r   <module>rs      s     	 	  
   7 7  g g			8	$  uw! & 

=>" 77d?rww&(RXX-= ooc1-a0O (11"55A66??6" 	5H" ) d& d7s    #D8D8