+
     h4  c                   s   ^ RI t ^ RIt^ RI Ht ^ RIHt ^ RIHtHtHtH	t	H
t
Ht ^ RIHt ^ RIHt ^ RIHtHtHt ^ RIHt ^ R	IHt ^ R
IHt ]P4                  ! R4      tR R ltR R lt] ! R R4      4       t] ! R R4      4       t] ! R R4      4       t ] ! R R4      4       t!] ! R R4      4       t"] ! R R4      4       t#] ! R R4      4       t$R# )i    N)	dataclass)Path)AnyDictIterableListOptionalTuple)tomli_w)Self)ArchiveInfoDirInfoVcsInfo)Link)InstallRequirement)url_to_pathz^pylock\.([^.]+)\.toml$c                s0    V ^8  d   QhR\         R\        /# )   pathreturn)r   boolformat   "@/usr/lib/python3.14/site-packages/pip/_internal/models/pylock.py__annotate__r      s     X XD XT X    c                 s    V P                   R 8H  ;'       g/    \        \        P                  ! \        V P                   4      4      # )zpylock.toml)namer   reZmatchPYLOCK_FILE_NAME_RE)r      &r   is_valid_pylock_file_namer      s.    99%WWbhh7JDII.V)WWr   c                s    V ^8  d   QhR\         \        \        \        3,          ,          R\        \        \        3,          /# )r   datar   )r   r   strr   r   r   r   r   r   r      s3     V VT%S/2 VtCH~ Vr   c                 sh    V  UUu/ uF  w  rVf   K  VP                  RR4      VbK   	  upp# u uppi )NZ_Z-)Zreplace)r   keyZvalues   &  r   _toml_dict_factoryr"      s1    ;?U4ZS5(CKKS!5(4UUUs   ..c                   s,   a  ] tR t^t o V 3R ltRtV tR# )
PackageVcsc                s   < V ^8  d   Qh/ S[ ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[ ;R&   S[S[ ,          ;R&   # )r   typeurlrequested_revision	commit_idsubdirectory)r    r   r   __classdict__   "r   r   ZPackageVcs.__annotate__   sN     
I  
# 
 !%  N  3- r    N__name__
__module____qualname____firstlineno____annotate_func____static_attributes____classdictcell__r*      @r   r#   r#            r   r#   c                   s,   a  ] tR t^$t o V 3R ltRtV tR# )PackageDirectoryc                s^   < V ^8  d   Qh/ S[ ;R&   S[S[,          ;R&   S[S[ ,          ;R&   # )r   r   editabler(   )r    r   r   r)   r+   r   r   ZPackageDirectory.__annotate__$   s1     
I  tn  3-	 r   r,   Nr-   r5   r6   r   r8   r8   $   r7   r   r8   c                   s,   a  ] tR t^+t o V 3R ltRtV tR# )PackageArchivec                st   < V ^8  d   Qh/ S[ S[,          ;R&   S[S[S[3,          ;R&   S[ S[,          ;R&   # )r   r%   hashesr(   )r   r    r   r)   r+   r   r   ZPackageArchive.__annotate__+   s:     	#  cN  3- r   r,   Nr-   r5   r6   r   r:   r:   +   r7   r   r:   c                   s,   a  ] tR t^5t o V 3R ltRtV tR# )PackageSdistc                d   < V ^8  d   Qh/ S[ ;R&   S[S[ ,          ;R&   S[S[ S[ 3,          ;R&   # r   r   r%   r;   r    r   r   r)   r+   r   r   ZPackageSdist.__annotate__5   5     
I  
#	  cN r   r,   Nr-   r5   r6   r   r<   r<   5   r7   r   r<   c                   s,   a  ] tR t^?t o V 3R ltRtV tR# )PackageWheelc                r=   r>   r?   r)   r+   r   r   ZPackageWheel.__annotate__?   r@   r   r,   Nr-   r5   r6   r   rA   rA   ?   r7   r   rA   c                   s`   a  ] tR t^It o RtRtRtRtRtRt	]
V 3R lR l4       tV 3R ltRtV tR# )PackageNc                s,   < V ^8  d   QhRS[ RS[RS[/# )r   ireqbase_dirr   )r   r   r	   r)   r+   r   r   Package.__annotate__Z   s)     @ @,> @$ @SW @r   c                sl   VP                  4       pVP                  4       pVP                  pV'       g   Q hV ! VP                  R 7      pVP                  '       Ed   \        VP                  \        4      '       dh   \        VP                  P                  VP                  VP                  P                  VP                  P                  VP                  R7      Vn	        V# \        VP                  \        4      '       d   \        \!        \#        VP                  4      4      P                  4       P%                  V4      P'                  4       VP                  P(                  '       d   VP                  P(                  MRVP                  R7      Vn        V# \        VP                  \,        4      '       dd   VP                  P.                  '       g   \1        4       h\3        VP                  VP                  P.                  VP                  R7      Vn        V# \1        4       h\7        VP8                  4      Vn        \        VP                  \,        4      '       d   VP                  P.                  '       g   \1        4       h\;        VP                  4      pVP<                  '       d?   \?        VP@                  VP                  VP                  P.                  R7      .Vn!        V# \E        VP@                  VP                  VP                  P.                  R7      Vn#         V# \1        4       h)r   )r$   r%   r&   r'   r(   N)r   r9   r(   )r%   r;   r(   )r   r%   r;   )$ZresolveZget_distdownload_infoZcanonical_nameZ	is_directZ
isinstanceZinfor   r#   vcsr%   r&   r'   r(   r   r8   r   r   Zrelative_toZas_posixr9   	directoryr
   r;   ZNotImplementedErrorr:   archiver    versionr   Zis_wheelrA   Zfilenamewheelsr<   sdist)clsrC   rD   ZdistrG   ZpackageZlinks   &&&    r   from_install_requirementZ Package.from_install_requirementY   sq   ##%}}**}4../>>>-,,g66(&++//%))'4'9'9'L'L+00::!.!;!;p c M..88$4[):):;< $X.! )--666 &**33!!.!;!;%!` E M..<<$))000-//"0%))(--44!.!;!;#> 1 *++!$,,/GO-,,k::$))000-//M--.===$!% - 1 1#0#5#5#<#<&GN   %1!]])--,1188%GM  *++r   c                s   < V ^8  d   Qh/ S[ ;R&   S[S[ ,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[S[,          ,          ;R&   # )r   r   rK   rH   rI   rJ   rM   rL   )r    r   r#   r8   r:   r<   r   rA   r)   r+   r   r   rE   I   s     
I  c]!  
*	$  ()0  n%,  L!(  T,'(/ r   r,   )r.   r/   r0   r1   rK   rH   rI   rJ   rM   rL   classmethodrO   r2   r3   r4   r5   r6   r   rB   rB   I   sD      "G !%C,0I(,G$(E+/F @ @#  r   rB   c                   s   a  ] tR t^t o RtRt]P                  ! ]R7      t	V 3R lR lt
]V 3R lR l4       tV 3R ltR	tV tR
# )Pylockz1.0Zpip)Zdefault_factoryc                s    < V ^8  d   QhRS[ /# )r   r   )r    r)   r+   r   r   Pylock.__annotate__   s     X X Xr   c                sb    \         P                  ! \        P                  ! V \        R 7      4      # ))Zdict_factory)r   ZdumpsdataclassesZasdictr"   )Zselfr   r   as_tomlZPylock.as_toml   s    }}[//CUVWWr   c                s<   < V ^8  d   QhRS[ S[,          RS[RS[/# )r   install_requirementsrD   r   )r   r   r   r	   r)   r+   r   r   rR      s+     
 
#+,>#?
KO
	
r   c                sB   a V ! \        V3R  lV 4       R R7      R7      # )c              3   sP   <"   T F  p\         P                  VS4      x  K  	  R # 5iN)rB   rO   )Z.0rC   rD   s   & r   Z	<genexpr>Z3Pylock.from_install_requirements.<locals>.<genexpr>   s(       4 44T8DD 4s   #&c                 s    V P                   # rV   rF   )Zpr   r   Z<lambda>Z2Pylock.from_install_requirements.<locals>.<lambda>   s    affr   )r!   )packages)Zsorted)rN   rU   rD   s   &&fr   from_install_requirementsZ Pylock.from_install_requirements   s,      4 %
 	
r   c                sN   < V ^8  d   Qh/ S[ ;R&   S[ ;R&   S[S[,          ;R&   # )r   lock_version
created_byrW   )r    r   rB   r)   r+   r   r   rR      s.         7mE r   r,   N)r.   r/   r0   r1   rY   rZ   rS   ZfieldZlistrW   rT   rP   rX   r2   r3   r4   r5   r6   r   rQ   rQ      sH     L
 J)//EHX X 
 
  r   rQ   )%rS   r   r    Zpathlibr   Ztypingr   r   r   r   r   r   Zpip._vendorr   Zpip._vendor.typing_extensionsr	   Zpip._internal.models.direct_urlr
   r   r   Zpip._internal.models.linkr   Zpip._internal.req.req_installr   Zpip._internal.utils.urlsr   Zcompiler   r   r"   r#   r8   r:   r<   rA   rB   rQ   r,   r   r   <module>r[      s     	 !  = =  . I I * < 0jj!;< XV                         P P Pf 
 
 
r   