֦i d dl Z d dlZd dlZd dlZd dlZddlmZ ddlmZ d Z G d dej Z G d d ej Z G d dej Z G d d ej Zy) N )abc)onlyc R t t j j | S N)itercollectionsOrderedDictfromkeys)itemss 4/usr/lib64/python3.12/importlib/resources/readers.pyremove_duplicatesr s ''00788 c e Zd Zd Zd Zd Zy) FileReaderc ` t j |j j | _ y r )pathlibPathpathparent)selfloaders r __init__zFileReader.__init__ s LL-44 r c L t | j j | S r strr joinpathr resources r resource_pathzFileReader.resource_path # 499%%h/00r c | j S r r r s r fileszFileReader.files yyr N__name__ __module____qualname__r r r% r r r r s 51r r c 0 e Zd Zd Z fdZd Zd Z xZS ) ZipReaderc |j j dd | _ |j | r-|j d \ }}}| xj |dz z c_ |j | _ y )N\/.)prefixreplace is_package rpartitionarchive)r r module_names r r zZipReader.__init__! s[ mm++D#6V$**3/JAq$KK4#:%K~~r c v t | | S # t $ r}t |j d d }~ww xY wNr )super open_resourceKeyErrorFileNotFoundErrorargs)r r exc __class__s r r= zZipReader.open_resource( s; 17(22 1#CHHQK00 1s 838c | j j | }|j xr |j S r )r% r is_fileexists)r r targets r is_resourcezZipReader.is_resource. s7 &&t,~~3FMMO3r c V t j | j | j S r )zipfiler r6 r2 r$ s r r% zZipReader.files6 s ||DLL$++66r )r( r) r* r r= rG r% __classcell__rB s @r r- r- s &147r r- c p e Zd Z d Zd Zd Zd Zd Zd Z fdZ e d Zd Ze d Zd Z xZS )MultiplexedPathc t t t j t | | _ | j s d}t | t d | j D st d y )Nz.MultiplexedPath must contain at least one pathc 3 <