
    ,h9                     T    d Z ddlmZmZmZmZ ddlZddlmZ	 ddl
mZ d
dZd Zd	 Zy)a  
Directly exposed API classes, Presentation for now. Provides some syntactic
sugar for interacting with the pptx.presentation.Package graph and also
provides some insulation so not so many classes in the other modules need to
be named as internal (leading underscore).
    )absolute_importdivisionprint_functionunicode_literalsN   )CONTENT_TYPE)Packagec                     | 
t               } t        j                  |       j                  }t	        |      sd}t        || |j                  fz        |j                  S )z
    Return a |Presentation| object loaded from *pptx*, where *pptx* can be
    either a path to a ``.pptx`` file (a string) or a file-like object. If
    *pptx* is missing or ``None``, the built-in default presentation
    "template" is loaded.
    z8file '%s' is not a PowerPoint file, content type is '%s')_default_pptx_pathr	   openmain_document_part_is_pptx_package
ValueErrorcontent_typepresentation)pptxpresentation_parttmpls      J/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pptx/api.pyPresentationr      s\     |!#T*==-.I'8'E'E FFGG)))    c                      t         j                  j                  t              d   } t         j                  j	                  | dd      S )z@
    Return the path to the built-in default .pptx package.
    r   	templateszdefault.pptx)ospathsplit__file__join)_thisdirs    r   r   r   %   s2     ww}}X&q)H77<<+~>>r   c                 ^    t         j                  t         j                  f}| j                  |v S )z[
    Return |True| if *prs_part* is a valid main document part, |False|
    otherwise.
    )CTPML_PRESENTATION_MAINPML_PRES_MACRO_MAINr   )prs_partvalid_content_typess     r   r   r   -   s-    
 33R5K5KL  $777r   )N)__doc__
__future__r   r   r   r   r   opc.constantsr   r!   packager	   r   r   r    r   r   <module>r+      s+    S R 	 - *&?8r   