+
    i>  c                   s~   ^ RI Ht ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RI	t^ RI
t
. ROt]! RR4      tR]n        R tRR ltRR	 lt]RR
 l4       tRR lt]P'                  ]P(                  P*                  ]4        ^ RIt^ RIHt RR lt]P'                  ]]4       R tRR ltR tR tRsR tR#   ] d     Li ; i)    )
namedtuple)singledispatchN
ModuleInfozmodule_finder name ispkgz.A namedtuple with minimal info about a module.c                 s    ^ RI pV P                  ^4      pV\        P                  P                  8w  d   R# V P                  ^4       VP                  V 4      # )r    N)marshalZread	importlibutilZMAGIC_NUMBERZload)Zstreamr   Zmagic   &   /usr/lib64/python3.14/pkgutil.py	read_coder	      sC     KKNE	+++
KKO<<    c              #   s>  "   / 3R  lp\        W4       F  pVx  VP                  '       g   K   \        VP                  4       \	        \
        P                  VP                  ,          RR4      ;'       g    . p V  Uu. uF  qS! V4      '       d   K  VNK  	  p p\        WP                  R,           V4       Rj  xL
  K  	  R# u upi  L  \         d    Te   T! TP                  4        K   K  \         d    Te   T! TP                  4        EK  h i ; i5i)c                 s    W9   d   R # R W&   R# )TN )pm   &&r   seenZwalk_packages.<locals>.seenB   s    6r
   __path__N.)
iter_modulesispkgZ
__import__namegetattrsysmoduleswalk_packagesImportErrorZ	Exception)pathprefixZonerrorr   Zinfor   s   &&&   r   r   r   %   s     :  
 T*
:::G499% s{{4995z4HNNB $(74atAw47(yy}gFFF) +$ 8F  '&DII& ' &DII&&	sX   (DC:D?CC"D;C<D!D.D4D=DDDDc              #   s   "   V f   \        4       pM1\        V \        4      '       d   \        R4      h\	        \
        V 4      p/ pV F1  p\        WA4       F  w  rVWS9  g   K  ^W5&   \        WEV4      x  K!  	  K3  	  R # 5i)Nz9path must be None or list of paths to look for modules in)iter_importers
isinstancestr
ValueErrorZmapget_importeriter_importer_modulesr   )r   r   Z	importersyieldedZir   r      &&     r   r   r   ^   s{      |"$		D#		 % & 	& d+	G0;KD" ! %00 < s   AA>"A>c                 sL    \        V R 4      '       g   . # V P                  V4      # )r   )hasattrr   )importerr   r   r   r!   r!   x   s%    8^,,	  ((r
   c              #   s   "   V P                   e0   \        P                   P                  V P                   4      '       g   R # / p^ R Ip \        P                  ! V P                   4      pVP                  4        V F  pVP                  V4      pVR8X  g   Wb9   d   K#  \        P                   P                  V P                   V4      pRpV'       gm   \        P                   P                  V4      '       dH   RV9  dA   Tp \        P                  ! V4      p	V	 F  pVP                  V4      p
V
R8X  g   K  Rp M	  K  V'       g   K  RV9  g   K  ^W&&   W,           V3x  K  	  R #   \
         d    . p ELi ; i  \
         d    . p	 Lsi ; i5i)N__init__Fr   T)	r   osZisdirinspectZlistdirOSErrorZsortgetmodulenamejoin)r%   r   r"   r(   Z	filenamesfnmodnamer   r   ZdircontentsZsubnames   &&         r   _iter_file_finder_modulesr.      sJ    }}BGGMM(--$@$@GJJx}}-	 NN''+J'"4ww||HMM2.277==..3b=G! jj. "!//3J& E	 " 7s') G"E))3   	"  ! !sr   =F F	 E' )A(F$F7	FE;F6FFF'E84F7E88F;FF
FF)zipimporterc              #   s  "   \        \        P                  V P                  ,          4      pV P                  p\        V4      p/ p^ RIpV F  pVP                  V4      '       g   K  WtR P                  \        P                  4      p\        V4      ^8X  dK   V^,          P                  R4      '       d-   V^ ,          V9  d   ^WW^ ,          &   W^ ,          ,           R3x  \        V4      ^8w  d   K  VP                  V^ ,          4      pVR8X  d   K  V'       g   K  RV9  g   K  W9  g   K  ^WX&   W,           R3x  K  	  R# 5i)r    Nz__init__.pyTr&   r   F)Zsorted	zipimportZ_zip_directory_cacheZarchiver   Zlenr(   
startswithsplitr'   Zsepr*   )	r%   r   ZdirlistZ_prefixZplenr"   r(   r,   r-   s	   &&       r   iter_zipimport_modulesr3      s    778H8HIJ//7|B==))E(B2wzbe..}==a5'%&GqEN a5.$..2wz++BqE2G
"w3g-'2H#$ &--) s   B4E7A$E E)E1Ec                 s0   \         P                  ! V 4      p  \        P                  V ,          pV#   \         dZ    \        P
                   F?  p T! T 4      p\        P                  P                  Y4         T#   \         d     K=  i ; i	  R p T# i ; i)N)r'   Zfsdecoder   Zpath_importer_cacheKeyErrorZ
path_hooksZ
setdefaultr   )Z	path_itemr%   Z	path_hookr   r   r    r       s     I&I**95 O  	I$Y/''229G
 O	   ( HO	s3   1 B'A;7B;B
B	B

BBc              #   s  "   V P                  R 4      '       d   RP                  V 4      p\        V4      hR V 9   dC   V P                  R 4      ^ ,          p\        P
                  ! V4      p\        VRR4      pVf   R# M(\        P                   Rj  xL
  \        P                  pV F  p\        V4      x  K  	  R#  L,5i)r   z'Relative module name {!r} not supportedr   N)r1   Zformatr   
rpartitionr   import_moduler   r   Z	meta_pathr   r    )ZfullnamemsgZpkg_namepkgr   Zitems   &     r   r   r      s      37>>xH#
h&&s+A.%%h/sJ-<  ==  xx4    	!s   BCB?-Cc           	      s   \        V \        4      '       g   V # VR ,           pV R,          p VP                  R4      w  r4pV'       d$    \        P                  V,          P
                  pM\        P                  pV EFc  p\        V\        4      '       g   K  \        V4      pVe   . p	\        VR4      '       d-   VP                  V4      p
V
e   V
P                  ;'       g    . p	M%\        VR4      '       d   VP                  V4      w  rIV	 F  pW9  g   K  V P                  V4       K  	  \         P                  P#                  Wr4      p\         P                  P%                  V4      '       g   K   \'        V4      pT;_uu_ 4        V FF  pVP)                  R4      pV'       d   VP+                  R4      '       d   K5  V P                  V4       KH  	  RRR4       EKf  	  V #   \        \        3 d    T u # i ; i  + '       g   i     EK  ; i  \,         d5   p\        P.                  P1                  RT: R	T: R24        Rp?EK  Rp?ii ; i)
z.pkg:NNNr   N	find_specfind_loaderZ
Z#zCan't open z: )r   Zlistr5   r   r   r   r4   ZAttributeErrorr   r   r    r$   r9   Zsubmodule_search_locationsr:   Zappendr'   r+   ZisfileZopenZrstripr1   r)   ZstderrZwrite)r   r   Z	sname_pkgZparent_packageZ_Z
final_nameZsearch_pathZdirZfinderZportionsspecZportionZpkgfileZfZliner7   s   &&              r   extend_pathr<     s   B dD!! vI7D$(OOC$8!Nz	++n5>>K hh#s##c"Hv{++''
3##>>DD"H//$00<# &KK(	 $ '',,s.77>>'""*M
 Q !#{{40#ts';';$D)	 !" Q? L K[ .) 	 K	L QQ	  1

  ")3"0 1 11s<   !G& 5H
5G? G?&G<;G<?HI(IIc                 sB   \         P                  P                  V 4      pVf   R # VP                  pVe   \	        VR4      '       g   R # \
        P                  P                  V 4      ;'       g     \         P                  P                  V4      pVe   \	        VR4      '       g   R # VP                  R4      pVP                  ^ \        P                  P                  VP                  4      4       \        P                  P                   ! V!  pVP#                  V4      # )Nget_data__file__Z/)r   r   r9   loaderr$   r   r   getZ
_bootstrapZ_loadr2   Zinsertr'   r   Zdirnamer>   r+   r=   )ZpackageZresourcer;   r?   modpartsZresource_namer#   r   r=   r=   f  s    , >>##G,D|[[F~WVZ88;;??7# , ,%%d+ 
{'#z22
 NN3E	LLBGGOOCLL12GGLL%(M??=))r
   c                 s   \         f*   ^ R IpRpVP                  RV RV R2VP                  4      s \         P	                  V 4      pV'       g   \        RV : 24      hVP                  4       pVP                  R4      '       dK   \        P                  ! VR,          4      pVP                  R4      pV'       d   VP                  R	4      M. pM|V P                  R	4      pVP                  ^ 4      p\        P                  ! V4      pV'       d=   V^ ,          pV R	V 2p	 \        P                  ! V	4      pVP                  ^ 4       T	pKD  Tp
V F  p\        W4      p
K  	  V
#   \         d     K&  i ; i)
Nz(?!\d)(\w+)(\.(?!\d)(\w+))*z	^(?P<pkg>z)(?P<cln>:(?P<obj>z)?)?$zinvalid format: Zclnr8   Zobjr   )_NAME_PATTERNreZcompileZUNICODEZmatchr   Z	groupdictr@   r   r6   r2   Zpopr   r   )r   rD   Zdotted_wordsr   ZgdrA   rB   r-   r   ZsZresults   &          r   resolve_namerE     sT   B 5

Y|n =77CnE$K#%::/ 	D!A+D8455	
B	vve}}%%bi0u$)C r 

3))A,%%g.aA)1QC A--a0		! F# M  s    )E# #E21E2)r    r   r   r   r=   r	   r<   r   )N N)NrF   )rF   ) Zcollectionsr   Z	functoolsr   Zsimplegenericr   Zimportlib.utilZimportlib.machineryr'   Zos.pathr   Z__all__r   Z__doc__r	   r   r   r!   r.   ZregisterZ	machineryZ
FileFinderr0   r/   r3   r   r    r   r<   r=   rC   rE   r   r
   r   <module>rG      s    # 5    	  
 &@A
E
 
 6Gr14 ) )&*P   ""$=?#	%.8 "";0FG2!:[|(*V GK  		s   <!B2 2B<;B<