
    li                    $   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ej	                         D  ci c]  \  } }|| 
 c}} Z G d/ d0e      Zd6d1ZeZ	d6d2Z
d7d3Zd8d4Zy5c c}} w )9zNamespace related objects.    )annotations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                       e Zd ZdZd
 fdZd
dZedd       Zed        Z	ed        Z
ed        Zed        Zed	        Z xZS )NamespacePrefixedTagzNValue object that knows the semantics of an XML tag having a namespace prefix.c                ,    t         t        |   | |      S )N)superr   __new__)clsnstag	__class__s     J/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/pptx/oxml/ns.pyr"   zNamespacePrefixedTag.__new__*   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d  j                  d      \  }}t        |   d|} | |      S )N   }r)   )r*   pfxmap)r#   
clark_namensuri
local_namer$   s        r&   from_clark_namez$NamespacePrefixedTag.from_clark_name1   s5    &qrN005z!%=*55zr'   c                :    d| j                   d| j                  S )N{r3   )r.   r,   r/   s    r&   r5   zNamespacePrefixedTag.clark_name7   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,   r;   s    r&   
local_partzNamespacePrefixedTag.local_part;   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.   r;   s    r&   nsmapzNamespacePrefixedTag.nsmapC   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+   r;   s    r&   nspfxzNamespacePrefixedTag.nspfxL   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.   r;   s    r&   r6   zNamespacePrefixedTag.nsuriT   s     ||r'   )r$   str)r5   rC   returnr   )__name__
__module____qualname____doc__r"   r0   classmethodr8   propertyr5   r=   r?   rA   r6   __classcell__)r%   s   @r&   r   r   '   s    XD)  
 ; ;     ) )    r'   r   c                 <    | D ci c]  }|t         |    c}S c c}w )zReturn 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pfxs     r&   
namespacesrQ   ^   s!    
 )11C111s   c            
     f    dj                  | D cg c]  }d|dt        |   d c}      S c c}w )N zxmlns:z="")joinr-   rN   s     r&   nsdeclsrV   i   s(    88XNcVC[9NOONs   .c                    t         |    S )zReturn the namespace URI corresponding to `nspfx`.

    Example:

        >>> nsuri("p")
        "http://schemas.openxmlformats.org/presentationml/2006/main"
    rM   )rA   s    r&   r6   r6   m   s     %=r'   c                0    t        |       }|j                  S )a*  Return a Clark-notation qualified tag name corresponding to `namespace_prefixed_tag`.

    `namespace_prefixed_tag` is a string like 'p:body'. 'qn' stands for `qualified name`.

    As an example, `qn("p:cSld")` returns:
        `"{http://schemas.openxmlformats.org/drawingml/2006/main}cSld"`.
    )r   r5   )namespace_prefixed_tagnsptags     r&   qnr[   x   s     ""89Fr'   N)rO   rC   )rA   rC   )rY   rC   rD   rC   )rH   
__future__r   r-   itemsr4   rC   r   rQ   r?   rV   r6   r[   )keyvalues   00r&   <module>r`      s]     "
	@
	A
 	
S
 	
H	

 	
,
 .
 *
 	
U
 	T
 	E
 	
D
 	
-
 	2
 	E
 	
P
  
E!
" 	
H#
$ 
O
[	(
G	G2A
R65
: (.||~	6e%*	643 4n2 	P	i 
7s   B