+
    lh	"                     8   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt. ROtRt]P                  P                  R4      '       d   RtM]P                  ! 4       t ! R R]4      t] P                  R 4       tR tRR	 ltRR
 ltR tRR lt]R8X  d
   ]! 4        R# R# )    NZipAppErrorz8# -*- coding: utf-8 -*-
import {module}
{module}.{fn}()
winutf-8c                       ] tR t^!tRtR# )r    N)__name__
__module____qualname____firstlineno____static_attributes__r       lib/python3.14/zipapp.pyr   r   !   s    r   c              #      "   \        V \        \        P                  34      '       d#   \	        W4      ;_uu_ 4       pVx  R R R 4       R # V x  R #   + '       g   i     R # ; i5iN)
isinstancestrosPathLikeopen)archivemodefs   && r   _maybe_openr   %   sG     'C-..'  AG !   !  s   :A%AA%A"		A%c                    V'       d7   RVP                  \        4      ,           R,           pV P                  V4       R# R# )zWrite a shebang line.   #!   
N)encodeshebang_encodingwrite)r   interpretershebangs   && r   _write_file_prefixr"   .   s1    +,,-=>>F	 r   c           	     V   \        V R4      ;_uu_ 4       pVP                  ^4      pVR8X  d   RpVP                  4        \        VR4      ;_uu_ 4       p\        WR4       VP	                  V4       \
        P                  ! W54       RRR4       RRR4       V'       de   \        V\        4      '       dM   \        P                  ! V\        P                  ! V4      P                  \        P                  ,          4       R# R# R#   + '       g   i     L; i  + '       g   i     L; i)z8Copy an application archive, modifying the shebang line.rbr   r   wbN)r   readreadliner"   r   shutilcopyfileobjr   r   r   chmodstatst_modeS_IEXEC)r   new_archiver    srcfirst_2dsts   &&&   r   _copy_archiver2   5   s    	Wd	#	#s ((1+eGLLNd++ss0 IIgs( , 
$" z+s33
bggk2::T\\IJ 4{ ,+ 
$	#s#   ?D3D	DDDD(	c           
        Rp\        V R4      '       d   \        V R4      '       d   RpM.\        P                  ! V 4      p V P                  4       '       d   RpV'       d   \	        WV4       R# V P                  4       '       g   \        R4      hV R,          P                  4       pV'       d   V'       d   \        R4      hV'       g   V'       g   \        R	4      hRpV'       d   VP                  R
4      w  rp\        ;QJ d+    R V	P                  R4       4       F  '       d   K   RM 	  RM! R V	P                  R4       4       4      p\        ;QJ d+    R VP                  R4       4       F  '       d   K   RM 	  RM! R VP                  R4       4       4      pV
R
8X  d   V'       d	   V'       g   \        RV,           4      h\        P                  WR7      pVf   V P                  R4      pM(\        VR4      '       g   \        P                  ! V4      p/ p\        V P                  R4      4       F,  pVP                  V 4      pVe   V! V4      '       g   K(  VW&   K.  	  W9   d   \        RV R24      h\!        VR4      ;_uu_ 4       p\#        VV4       V'       d   \$        P&                  M\$        P(                  p\$        P*                  ! VRVR7      ;_uu_ 4       pVP-                  4        F&  w  ppVP/                  VVP1                  4       4       K(  	  V'       d"   VP3                  RVP5                  R4      4       RRR4       RRR4       V'       dU   \        VR4      '       gA   VP7                  VP9                  4       P:                  \8        P<                  ,          4       R# R# R#   + '       g   i     Lv; i  + '       g   i     L; i)a*  Create an application archive from SOURCE.

The SOURCE can be the name of a directory, or a filename or a file-like
object referring to an existing archive.

The content of SOURCE is packed into an application archive in TARGET,
which can be a filename or a file-like object.  If SOURCE is a directory,
TARGET can be omitted and will default to the name of SOURCE with .pyz
appended.

The created application archive will have a shebang line specifying
that it should run with INTERPRETER (there will be no shebang line if
INTERPRETER is None), and a __main__.py which runs MAIN (if MAIN is
not specified, an existing __main__.py will be used).  It is an error
to specify MAIN for anything other than a directory source with no
__main__.py, and it is an error to omit MAIN if the directory has no
__main__.py.
Fr&   r'   TNzSource does not existz__main__.pyz8Cannot specify entry point if the source has __main__.pyzArchive has no entry point:c              3   @   "   T F  qP                  4       x  K  	  R # 5ir   isidentifier.0parts   & r   	<genexpr>!create_archive.<locals>.<genexpr>{   s     D^T&&((^   .c              3   @   "   T F  qP                  4       x  K  	  R # 5ir   r6   r8   s   & r   r;   r<   |   s     BMD%%''Mr=   zInvalid entry point: )modulefnz.pyzr   *zThe target archive z$ overwrites one of the source files.r%   w)compressionr   )hasattrpathlibPathis_filer2   existsr   	partitionallsplitMAIN_TEMPLATEformatwith_suffixsortedrglobrelative_tor   r"   zipfileZIP_DEFLATED
ZIP_STOREDZipFileitemsr   as_posixwritestrr   r*   r+   r,   r-   )sourcetargetr    mainfilter
compressedsource_is_filehas_mainmain_pymodseprA   mod_okfn_okfiles_to_addpathrelative_pathfdrD   zs   &&&&&&              r   create_archiverk   L   s   * Nvv76:#>#>f%>>!Nfk2 ==??122&//1HFH 	HH677G~~c*"DSYYs^DDSYYs^DDBBHHSMBBBHHSMBBs
v%5<==&&c&9~##F+VW%%f%
 Lv||C()((0>VM22!.L *& !&)MNP 	P 
VT	"	"b2{+/9w++)) 	__R+>>!'3'9'9';#mm4467 (<

='..*AB	 ?	 
# 76733V[[]**T\\9: 4{ ?>	 
#	"s,   AO&AN8	)!N8	
O8OOO	c                    \        V R 4      ;_uu_ 4       pVP                  ^4      R8X  d<   VP                  4       P                  4       P	                  \
        4      uuRRR4       #  RRR4       R#   + '       g   i     R# ; i)r$   r   N)r   r&   r'   stripdecoder   )r   r   s   & r   get_interpreterro      sY    	Wd	#	#q66!9::<%%'../?@ 
$	# 
$	#	#	#s   AA22B	c                   ^ RI pVP                  RR7      pVP                  RRRRR7       VP                  RR	RR
R7       VP                  RRRRR7       VP                  RRRRR7       VP                  RRRRR7       VP                  RRR7       VP                  V 4      p V P                  '       d   \
        P                  P                  V P                  4      '       g   \        R4      h\        V P                  4      p\        RP                  T;'       g    R4      4       \        P                  ! ^ 4       \
        P                  P                  V P                  4      '       d   V P                  ej   \
        P                  P!                  V P                  4      '       dF   \
        P                  P#                  V P                  V P                  4      '       d   \        R4      hV P$                  '       d   \        R4      h\'        V P                  V P                  V P(                  V P$                  V P*                  R7       R# ) zRun the zipapp command line interface.

The ARGS parameter lets you specify the argument list directly.
Omitting ARGS (or setting it to None) works as for argparse, using
sys.argv[1:] as the argument list.
NT)colorz--outputz-ozAThe name of the output archive. Required if SOURCE is an archive.)defaulthelpz--pythonz-pzEThe name of the Python interpreter to use (default: no shebang line).z--mainz-mzLThe main function of the application (default: use an existing __main__.py).z
--compressz-c
store_truezQCompress files with the deflate method. Files are stored uncompressed by default.)actionrs   z--infoFz)Display the interpreter from the archive.)rr   ru   rs   rZ   z'Source directory (or existing archive).)rs   z%Can only get info for an archive filezInterpreter: {}z<none>z-In-place editing of archives is not supportedz,Cannot change the main function when copying)r    r\   r^   )argparseArgumentParseradd_argument
parse_argsinfor   rg   isfilerZ   
SystemExitro   printrN   sysexitoutputrI   samefiler\   rk   pythoncompress)argsrv   parserr    s   &   r   r\   r\      s    $$4$0F

D$5  6 
D$/  0 $;  < d<=  > %<  >
:  < T"D yyyww~~dkk**DEE%dkk2&&{'>'>h?@	ww~~dkk"";;277>>$++#>#>#%77#3#3DKK#M#MLMM999KLL4;;#{{"mm-r   __main__)r   rk   ro   r   )NNNNF)
contextlibr   rF   r(   r+   r~   rS   __all__rM   platform
startswithr   getfilesystemencoding
ValueErrorr   contextmanagerr   r"   r2   rk   ro   r\   r   r   r   r   <module>r      s     	    
 
> <<5!!002	* 	  K.`;FA.-b zF r   