
    ,h>                         d Z ddlmZ i ddddddd	d
dddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.	Z G d/ d0e      Zd1 ZeZd2 Zd3 Z	d4 Z
y5)6z
Namespace related objects.
    )absolute_importaz5http://schemas.openxmlformats.org/drawingml/2006/maincz6http://schemas.openxmlformats.org/drawingml/2006/chartcpzGhttp://schemas.openxmlformats.org/package/2006/metadata/core-propertiesctz<http://schemas.openxmlformats.org/package/2006/content-typesdcz http://purl.org/dc/elements/1.1/dcmitypezhttp://purl.org/dc/dcmitype/dctermszhttp://purl.org/dc/terms/epzIhttp://schemas.openxmlformats.org/officeDocument/2006/extended-propertiesizIhttp://schemas.openxmlformats.org/officeDocument/2006/relationships/imagemz:http://schemas.openxmlformats.org/officeDocument/2006/mathmoz8http://schemas.microsoft.com/office/mac/office/2008/mainmvz!urn:schemas-microsoft-com:mac:vmloz'urn:schemas-microsoft-com:office:officepz:http://schemas.openxmlformats.org/presentationml/2006/mainpdzDhttp://schemas.openxmlformats.org/drawingml/2006/presentationDrawingpicz8http://schemas.openxmlformats.org/drawingml/2006/pictureprz<http://schemas.openxmlformats.org/package/2006/relationshipszChttp://schemas.openxmlformats.org/officeDocument/2006/relationshipszOhttp://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayoutzurn:schemas-microsoft-com:vmlz;http://schemas.openxmlformats.org/markup-compatibility/2006z<http://schemas.openxmlformats.org/wordprocessingml/2006/mainz%urn:schemas-microsoft-com:office:wordz4http://schemas.microsoft.com/office/word/2006/wordmlzFhttp://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingz)http://www.w3.org/2001/XMLSchema-instance)	rslvveww10wnewpxsic                   x     e Zd ZdZ fdZd Zed        Zed        Zed        Z	ed        Z
ed        Z xZS )	NamespacePrefixedTagz\
    Value object that knows the semantics of an XML tag having a namespace
    prefix.
    c                 ,    t         t        |   | |      S )N)superr   __new__)clsnstagargs	__class__s      N/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pptx/oxml/ns.pyr"   zNamespacePrefixedTag.__new__9   s    )37UCC    c                 p    |j                  d      \  | _        | _        t        | j                     | _        y )N:)split_pfx_local_part_nsmap_ns_uri)selfr$   s     r'   __init__zNamespacePrefixedTag.__init__<   s*    &+kk#&6#	4#dii(r(   c                 :    d| j                   d| j                  S )N{})r/   r-   r0   s    r'   
clark_namezNamespacePrefixedTag.clark_name@   s    <<)9)9::r(   c                     | j                   S )zu
        Return the local part of the tag as a string. E.g. 'foobar' is
        returned for tag 'f:foobar'.
        )r-   r5   s    r'   
local_partzNamespacePrefixedTag.local_partD   s     r(   c                 2    | j                   | j                  iS )z
        Return a dict having a single member, mapping the namespace prefix of
        this tag to it's namespace name (e.g. {'f': 'http://foo/bar'}). This
        is handy for passing to xpath calls and other uses.
        )r,   r/   r5   s    r'   nsmapzNamespacePrefixedTag.nsmapL   s     		4<<((r(   c                     | j                   S )zr
        Return the string namespace prefix for the tag, e.g. 'f' is returned
        for tag 'f:foobar'.
        )r,   r5   s    r'   nspfxzNamespacePrefixedTag.nspfxU   s     yyr(   c                     | j                   S )z
        Return the namespace URI for the tag, e.g. 'http://foo/bar' would be
        returned for tag 'f:foobar' if the 'f' prefix maps to
        'http://foo/bar' in _nsmap.
        )r/   r5   s    r'   nsurizNamespacePrefixedTag.nsuri]   s     ||r(   )__name__
__module____qualname____doc__r"   r1   propertyr6   r8   r:   r<   r>   __classcell__)r&   s   @r'   r   r   3   sw    
D) ; ;     ) )    r(   r   c                  0    i }| D ]  }t         |   ||<    |S )z
    Return a dict containing the subset namespace prefix mappings specified by
    *prefixes*. Any number of namespace prefixes can be supplied, e.g.
    namespaces('a', 'r', 'p').
    r.   )prefixes
namespacesprefixs      r'   rH   rH   g   s,     J ,#F^
6,r(   c            
      f    dj                  | D cg c]  }d|dt        |   d c}      S c c}w )N zxmlns:z="")joinr.   )rG   pfxs     r'   nsdeclsrO   v   s(    88XNcVC[9NOONs   .c                     t         |    S )z
    Return the namespace URI corresponding to *nspfx*. For example, it would
    return 'http://foo/bar' for an *nspfx* of 'f' if the 'f' prefix maps to
    'http://foo/bar' in _nsmap.
    rF   )r<   s    r'   r>   r>   z   s     %=r(   c                 0    t        |       }|j                  S )z
    Return a Clark-notation qualified tag name corresponding to
    *namespace_prefixed_tag*, a string like 'p:body'. 'qn' stands for
    *qualified name*. As an example, ``qn('p:cSld')`` returns
    ``'{http://schemas.../main}cSld'``.
    )r   r6   )namespace_prefixed_tagnsptags     r'   qnrT      s     ""89Fr(   N)rB   
__future__r   r.   strr   rH   r:   rO   r>   rT    r(   r'   <module>rX      sA   '
$

A$

B$
 	T	$
 	I$
 	-$
 /$
 +$
 	V$
 V$
  
F!$
" 	E#$
$ 	.%$
& 
3'$
( 
F)$
* 	T+$
, 
F-$
. 	I/$
0 S	 *H
H3BV7G$
N13 1h	 	Pr(   