+
    ÎiH                     z   ^ 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
if __name__ == '__main__':
    from %(module)s import %(import_name)s
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(%(func)s())
ntjava. .exec                     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"%s")
startswithsplit)
executableenv_executables   &  j/Users/ahmad/.openclaw/workspace/scripts/.venv/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                   ~  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                   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_runfileops   &&&&&&r   __init__ScriptMaker.__init__d   s    $$*
G+[[F1B1Z1ZrxxSZGZK(66g!6ggoQQ"''V*;*P*PD@P,,r   c                    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pythonpythonw)getr0   r)   pathr   replacejoin)r3   r   optionsdnfns   &&&  r   _get_alternate_executable%ScriptMaker._get_alternate_executabler   sW    ;;ue$$WW]]:.FBHi0Bb-Jr   r   c                     \        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readOSErrorIOErrorloggerwarning)r3   r   fps   && r   	_is_shellScriptMaker._is_shell{   sX    
*%%771:- &%%%W% 2J?s*   A 4
A A	A A 'A32A3c                   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.nameLinuxz
jython.exez/usr/bin/env %s)rM   r   langSystemgetPropertylowerendswith)r3   r   r   s   && r   _fix_jython_executable"ScriptMaker._fix_jython_executable   sw    ~~j))99##//	:gE%% F
 %z11 !!#,,\::!!$z11r   c                   \         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"   Tcross_compilingFdarwini       s   #!   
s
   #!/bin/sh
s	   '''exec' s    "$0" "$@"
s   ' '''
)r)   r*   getattrr1   lenplatform)r3   r   post_interpsimple_shebangshebang_lengthmax_shebang_lengthresults   &&&    r   _build_shebang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                .   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)TFscriptszpython%sEXEr   BINDIRr:   VERSIONr   utf-8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 ())r   r   is_python_buildr   r   r)   r=   r?   get_pathget_config_varr*   rC   r1   r_   r   rV   r   encodere   decodeUnicodeDecodeError
ValueError)r3   encodingr`   r@   enquoter   shebangs   &&&&   r   _get_shebang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                    V P                   \        VP                  VP                  P	                  R 4      ^ ,          VP                  R7      ,          # )r   )moduleimport_namefunc)script_templatedictprefixsuffixr   )r3   entrys   &&r   _get_script_textScriptMaker._get_script_text   sB    ##d<<U\\-?-?-DQ-Gell'\ \ 	\r   c                f    \         P                  P                  V4      pV P                  V,          # N)r)   r=   basenamemanifest)r3   exenamebases   && r   get_manifestScriptMaker.get_manifest   s%    ww(}}t##r   c                "   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)pytwSOURCE_DATE_EPOCH:N   Nz__main__.py)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&   r0   _get_launcherr   r   r)   environr<   timegmtimeintr   writestrgetvaluer=   r?   r%   splitextr   r/   write_binary_file	ExceptionrJ   rK   existsremoverenamedebugrU   r(   r,   set_executable_modeappend)r3   namesrx   script_bytes	filenamesextuse_launcherlauncherstreamzfsource_date_epochr   zinfozip_datar*   outnamenedfnames   &&&&&&             r   _write_script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-c                   \        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   Xr#   r   )r-   r.   addr2   variant_separator)r3   r*   rd   s   && r   get_script_filenames ScriptMaker.get_script_filenames<  s    JJt$--JJt'8'8';<=DMM!JJdD,B,BDDUDUVWDXDXZ^ZkZklmZnopr   c                   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   interpreter_argsz %sr   rl   r@   r9   Fpywr   N)r<   r?   rr   ry   r   r   r*   r   )
r3   r   r   r@   r`   argsrx   scriptscriptnamesr   s
   &&&&      r   _make_scriptScriptMaker._make_scriptF  s    ;;126Dsxx~-"kk'2##G[#J&&u-44W=//

;w{{5%00CC;CHr   c                   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)Nrbz%s is an empty file (skipping)s   
r\   Tr   zcopying and adjusting %s -> %ss   pythonwr   r   ) r)   r=   r?   r$   r   r%   r   r'   r/   newerrJ   r   rF   readlinerK   FIRST_LINE_REmatchr>   grouprI   r4   close	copy_filer,   r   r   infor   seekry   r   rG   )r3   r   r   adjustr   f
first_liner   r`   rv   linesrx   r   r   s   &&&           r   _copy_script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                .    V P                   P                  # r   r/   r4   )r3   s   &r   r4   ScriptMaker.dry_run  s    ||###r   c                &    WP                   n        R # r   r   )r3   values   &&r   r4   r     s    $r   r   c                    \         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,          # )	P6432z	win-arm64z-armr   r   zUnable to find resource z in package )structcalcsizer   WRAPPERSDISTLIB_PACKAGEru   )r3   kindbitsplatform_suffixr*   msgs   &&    r   r   ScriptMaker._get_launcher  sa    s#q((4+(Ef2O#'?D8#o/ o%D>!r   c                t    . 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.
r   )r
   r   r   )r3   specificationr@   r   r   s   &&&  r   makeScriptMaker.make  sI     	 /=m7  e@r   c                \    . 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,
)extendr   )r3   specificationsr@   r   r   s   &&&  r   make_multipleScriptMaker.make_multiple  s0     	+MTYY}>? ,r   )
r/   r0   r&   r(   r'   r,   r$   r%   r.   r2   )TFN)r   Nr   )%__name__
__module____qualname____firstlineno____doc__SCRIPT_TEMPLATEr   r   r6   rC   r1   r_   r   rM   rV   re   ry   r   _DEFAULT_MANIFESTr   r   r   r   r   r   r   propertyr4   setterr)   r*   r+   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r    r    [   s      &OJ- ||v&&
	
	2"H@D\ !H$5&n I 0d $ $ ^^% % 
ww$277f,T1A	"&	 	r   r    )+ior   loggingr)   rer   r1   r   zipfiler   compatr   r   r   	resourcesr   utilr	   r
   r   r   r   r   	getLoggerr   rJ   stripr   compiler   r   r*   r+   rsplitr   iteratorrU   bytesr   r   _enquote_executableobjectr    )rs   0r   <module>r     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