Ë
    ®PqhŒ  ã                  óP   — d Z ddlmZ ddlZddlmZ ddlmZ ddl	m
Z
 d	d
d„Zd„ Zy)zŸDirectly exposed API functions and classes, :func:`Document` for now.

Provides a syntactically more convenient API for interacting with the OpcPackage graph.
é    )ÚannotationsN)ÚIO)ÚCONTENT_TYPE)ÚPackagec                óæ   — | €
t        «       n| } t        j                  | «      j                  }|j                  t
        j                  k7  rd}t        || |j                  fz  «      ‚|j                  S )zîReturn a |Document| object loaded from `docx`, where `docx` can be either a path
    to a ``.docx`` file (a string) or a file-like object.

    If `docx` is missing or ``None``, the built-in default document "template" is
    loaded.
    z2file '%s' is not a Word file, content type is '%s')	Ú_default_docx_pathr   ÚopenÚmain_document_partÚcontent_typeÚCTÚWML_DOCUMENT_MAINÚ
ValueErrorÚdocument)ÚdocxÚdocument_partÚtmpls      úI/srv/www/ollama/chat-ollama/venv/lib/python3.12/site-packages/docx/api.pyÚDocumentr      sg   € ð $( <ÔÔ°T€DÜ—L‘L Ó&×9Ñ9€MØ×!Ñ!¤R×%9Ñ%9Ò9ØCˆÜ˜  }×'AÑ'AÐ BÑBÓCÐCØ×!Ñ!Ð!ó    c                 ó   — t         j                  j                  t        «      d   } t         j                  j	                  | dd«      S )z6Return the path to the built-in default .docx package.r   Ú	templateszdefault.docx)ÚosÚpathÚsplitÚ__file__Újoin)Ú_thisdirs    r   r   r      s0   € äw‰w}‰}œXÓ& qÑ)€HÜ7‰7<‰<˜ +¨~Ó>Ð>r   )N)r   zstr | IO[bytes] | None)Ú__doc__Ú
__future__r   r   Útypingr   Údocx.opc.constantsr   r   Údocx.packager   r   r   © r   r   ú<module>r$      s%   ðñõ
 #ã 	Ý å 1Ý  ô"ó?r   