Ë
    \Rði³"  ã                  óþ  — d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 ddl
mZmZmZmZmZmZ ddlmZmZmZmZmZ erddlmZ  G d	„ d
e«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z  G d„ de«      Z! G d„ de«      Z" G d„ de«      Z# G d„ d e«      Z$ G d!„ d"e«      Z% G d#„ d$e«      Z& G d%„ d&e«      Z' G d'„ d(e«      Z( G d)„ d*e«      Z)y+),zDCustom element classes for shape-related elements like `<w:inline>`.é    )Úannotations)ÚTYPE_CHECKINGÚcast©Únsdecls)Ú	parse_xml)ÚST_CoordinateÚST_DrawingElementIdÚST_PositiveCoordinateÚST_RelationshipIdÚ	XsdStringÚXsdToken)ÚBaseOxmlElementÚOneAndOnlyOneÚOptionalAttributeÚRequiredAttributeÚ	ZeroOrOne)ÚLengthc                  ó   — e Zd ZdZy)Ú	CT_Anchorz8`<wp:anchor>` element, container for a "floating" shape.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úJ/var/www/html/Extract/venv/lib/python3.12/site-packages/docx/oxml/shape.pyr   r      s   „ ÚBr   r   c                  óJ   — e Zd ZU dZ ede«      Zded<    ede«      Zded<   y)ÚCT_BlipzX``<a:blip>`` element, specifies image source and adjustments such as alpha and
    tint.zr:embedz
str | NoneÚembedzr:linkÚlinkN)	r   r   r   r   r   r   r!   Ú__annotations__r"   r   r   r   r    r    !   s9   … ññ *ØÐ$ó€Eˆ:ó ñ )ØÐ#ó€Dˆ*ô r   r    c                  ó0   — e Zd ZU dZ edd¬«      Zded<   y)ÚCT_BlipFillPropertiesz9``<pic:blipFill>`` element, specifies picture properties.za:blip)z	a:srcRectza:tilez	a:stretch©Ú
successorsr    ÚblipN)r   r   r   r   r   r(   r#   r   r   r   r%   r%   -   s   … ÙCáØÐAô€Dˆ'ô r   r%   c                  ó,   — e Zd ZU dZ ed«      Zded<   y)ÚCT_GraphicalObjectz:``<a:graphic>`` element, container for a DrawingML object.za:graphicDataÚCT_GraphicalObjectDataÚgraphicDataN)r   r   r   r   r   r,   r#   r   r   r   r*   r*   5   s   … ÙDá*7Øó+€KÐ'ô r   r*   c                  óH   — e Zd ZU dZ ed«      Zded<    ede«      Z	ded<   y)r+   zI``<a:graphicData>`` element, container for the XML of a DrawingML object.zpic:picÚ
CT_PictureÚpicÚuriÚstrN)
r   r   r   r   r   r/   r#   r   r   r0   r   r   r   r+   r+   =   s%   … ÙSá 	Ó*€CˆÓ*Ù  ¨Ó1€CˆÔ1r   r+   c                  ó¬   — e Zd ZU dZ ed«      Zded<    ed«      Zded<    ed«      Zd	ed
<   e	dd„«       Z
e		 	 	 	 	 	 	 	 	 	 	 	 dd„«       Ze	d„ «       Zy)Ú	CT_Inlinez5`<wp:inline>` element, container for an inline shape.z	wp:extentÚCT_PositiveSize2DÚextentzwp:docPrÚCT_NonVisualDrawingPropsÚdocPrz	a:graphicr*   Úgraphicc                ób  — t        t        t        | j                  «       «      «      }||j                  _        ||j                  _        ||j                  _        d|z  |j                  _	        d|j                  j                  _        |j                  j                  j                  |«       |S )z\Return a new ``<wp:inline>`` element populated with the values passed as
        parameters.z
Picture %dz8http://schemas.openxmlformats.org/drawingml/2006/picture)r   r3   r   Ú_inline_xmlr5   ÚcxÚcyr7   ÚidÚnamer8   r,   r0   Ú_insert_pic)Úclsr;   r<   Úshape_idr/   Úinlines         r   ÚnewzCT_Inline.newO   s   € ô ”i¤¨3¯?©?Ó+<Ó!=Ó>ˆØˆ�‰ÔØˆ�‰ÔØ"ˆ�‰ŒØ(¨8Ñ3ˆ�‰ÔØ)cˆ�‰×"Ñ"Ô&Ø�‰×"Ñ"×.Ñ.¨sÔ3Øˆr   c                ód   — d}t         j                  |||||«      }| j                  ||||«      }|S )z•Create `wp:inline` element containing a `pic:pic` element.

        The contents of the `pic:pic` element is taken from the argument values.
        r   )r.   rC   )	r@   rA   ÚrIdÚfilenamer;   r<   Úpic_idr/   rB   s	            r   Únew_pic_inlinezCT_Inline.new_pic_inline\   s8   € ð ˆÜ�n‰n˜V X¨s°B¸Ó;ˆØ—‘˜˜R ¨3Ó/ˆØˆr   c                ó$   — dt        dddd«      z  S )Na  <wp:inline %s>
  <wp:extent cx="914400" cy="914400"/>
  <wp:docPr id="666" name="unnamed"/>
  <wp:cNvGraphicFramePr>
    <a:graphicFrameLocks noChangeAspect="1"/>
  </wp:cNvGraphicFramePr>
  <a:graphic>
    <a:graphicData uri="URI not set"/>
  </a:graphic>
</wp:inline>ÚwpÚar/   Úrr   ©r@   s    r   r:   zCT_Inline._inline_xmli   s!   € ð	ô % T¨3°°sÓ;ñ	<ð	
r   N)
r;   r   r<   r   rA   Úintr/   r.   Úreturnr3   )rA   rN   rE   r1   rF   r1   r;   r   r<   r   rO   r3   )r   r   r   r   r   r5   r#   r7   r8   ÚclassmethodrC   rH   r:   r   r   r   r3   r3   D   s­   … Ù?á -¨kÓ :€FÐÓ:Ù&3Øó'€EÐ#ó ñ #0Øó#€GÐó ð ò
ó ð
ð ð
Øð
Ø!$ð
Ø03ð
Ø9?ð
ØEKð
à	ò
ó ð
ð ñ
ó ñ
r   r3   c                  ó4   — e Zd ZdZ ede«      Z ede«      Zy)r6   zpUsed for ``<wp:docPr>`` element, and perhaps others.

    Specifies the id and name of a DrawingML drawing.
    r=   r>   N)	r   r   r   r   r   r
   r=   r   r>   r   r   r   r6   r6   y   s"   „ ññ
 
˜4Ð!4Ó	5€BÙ˜V YÓ/�Dr   r6   c                  ó   — e Zd ZdZy)ÚCT_NonVisualPicturePropertieszK``<pic:cNvPicPr>`` element, specifies picture locking and resize behaviors.Nr   r   r   r   rS   rS   ƒ   s   „ ÚUr   rS   c                  ó‚   — e Zd ZU dZ ed«      Zded<    ed«      Zded<    ed«      Zd	ed
<   e	dd„«       Z
e	d„ «       Zy)r.   z+``<pic:pic>`` element, a DrawingML picture.zpic:nvPicPrÚCT_PictureNonVisualÚnvPicPrzpic:blipFillr%   ÚblipFillzpic:spPrÚCT_ShapePropertiesÚspPrc                ó  — t        | j                  «       «      }||j                  j                  _        ||j                  j                  _        ||j                  j                  _        ||j                  _
        ||j                  _        |S )z3A new minimum viable `<pic:pic>` (picture) element.)r   Ú_pic_xmlrV   ÚcNvPrr=   r>   rW   r(   r!   rY   r;   r<   )r@   rG   rF   rE   r;   r<   r/   s          r   rC   zCT_Picture.new’   se   € ô ˜Ÿ™›Ó'ˆØ%ˆ�‰×ÑÔØ!)ˆ�‰×ÑÔØ"%ˆ�‰×ÑÔØˆ�‰ŒØˆ�‰ŒØˆ
r   c                ó"   — dt        ddd«      z  S )Naq  <pic:pic %s>
  <pic:nvPicPr>
    <pic:cNvPr id="666" name="unnamed"/>
    <pic:cNvPicPr/>
  </pic:nvPicPr>
  <pic:blipFill>
    <a:blip/>
    <a:stretch>
      <a:fillRect/>
    </a:stretch>
  </pic:blipFill>
  <pic:spPr>
    <a:xfrm>
      <a:off x="0" y="0"/>
      <a:ext cx="914400" cy="914400"/>
    </a:xfrm>
    <a:prstGeom prst="rect"/>
  </pic:spPr>
</pic:pic>r/   rK   rL   r   rM   s    r   r[   zCT_Picture._pic_xml�   s   € ðô$ # 5¨#¨sÓ3ñ%4ð	
r   N)rG   rN   rF   r1   rE   r1   r;   r   r<   r   rO   r.   )r   r   r   r   r   rV   r#   rW   rY   rP   rC   r[   r   r   r   r.   r.   ‡   si   … Ù5á#0Øó$€GÐ ó ñ '4Øó'€HÐ#ó ñ  -¨ZÓ8€DÐ
Ó8àòó ðð ñ
ó ñ
r   r.   c                  ó    — e Zd ZdZ ed«      Zy)rU   z9``<pic:nvPicPr>`` element, non-visual picture properties.z	pic:cNvPrN)r   r   r   r   r   r\   r   r   r   rU   rU   ¶   s   „ ÙCá˜+Ó&�Er   rU   c                  ó4   — e Zd ZdZ ede«      Z ede«      Zy)Ú
CT_Point2DzaUsed for ``<a:off>`` element, and perhaps others.

    Specifies an x, y coordinate (point).
    ÚxÚyN)r   r   r   r   r   r	   ra   rb   r   r   r   r`   r`   ¼   s!   „ ññ
 	˜#˜}Ó-€AÙ˜#˜}Ó-�Ar   r`   c                  óJ   — e Zd ZU dZ ede«      Zded<    ede«      Zded<   y)r4   zpUsed for ``<wp:extent>`` element, and perhaps others later.

    Specifies the size of a DrawingML drawing.
    r;   r   r<   N)	r   r   r   r   r   r   r;   r#   r<   r   r   r   r4   r4   Æ   s9   … ññ
 #ØÐ#ó€Bˆó ñ #ØÐ#ó€Bˆô r   r4   c                  ó   — e Zd ZdZy)ÚCT_PresetGeometry2DzW``<a:prstGeom>`` element, specifies an preset autoshape geometry, such as
    ``rect``.Nr   r   r   r   re   re   Ô   s   „ òr   re   c                  ó   — e Zd ZdZy)ÚCT_RelativeRectzX``<a:fillRect>`` element, specifying picture should fill containing rectangle
    shape.Nr   r   r   r   rg   rg   Ù   ó   „ òr   rg   c                  óŒ   — e Zd ZdZ edd¬«      Zed„ «       Zej                  d„ «       Zed„ «       Z	e	j                  d„ «       Z	y	)
rX   zF``<pic:spPr>`` element, specifies size and shape of picture container.za:xfrm)z
a:custGeomz
a:prstGeomza:lnza:effectLstza:effectDagz	a:scene3dza:sp3dza:extLstr&   c                ó8   — | j                   }|€y|j                  S )z:Shape width as an instance of Emu, or None if not present.N)Úxfrmr;   ©Úselfrk   s     r   r;   zCT_ShapeProperties.cxï   ó   € ð �y‰yˆØˆ<ØØ�w‰wˆr   c                ó2   — | j                  «       }||_        y ©N)Úget_or_add_xfrmr;   ©rm   Úvaluerk   s      r   r;   zCT_ShapeProperties.cx÷   ó   € à×#Ñ#Ó%ˆØˆ�r   c                ó8   — | j                   }|€y|j                  S )z;Shape height as an instance of Emu, or None if not present.N)rk   r<   rl   s     r   r<   zCT_ShapeProperties.cyü   rn   r   c                ó2   — | j                  «       }||_        y rp   )rq   r<   rr   s      r   r<   zCT_ShapeProperties.cy  rt   r   N)
r   r   r   r   r   rk   Úpropertyr;   Úsetterr<   r   r   r   rX   rX   Þ   so   „ ÙPáØð	
ô€Dð ñó ðð ‡Y�Yñó ðð ñó ðð ‡Y�Yñó ñr   rX   c                  ó   — e Zd ZdZy)ÚCT_StretchInfoPropertieszT``<a:stretch>`` element, specifies how picture should fill its containing
    shape.Nr   r   r   r   rz   rz   
  rh   r   rz   c                  ó    — e Zd ZdZ edd¬«      Z edd¬«      Zed„ «       Zej                  d„ «       Zed	„ «       Z
e
j                  d
„ «       Z
y)ÚCT_Transform2DzD``<a:xfrm>`` element, specifies size and shape of picture container.za:off)úa:extr&   r}   r   c                ó8   — | j                   }|€y |j                  S rp   )Úextr;   ©rm   r   s     r   r;   zCT_Transform2D.cx  ó   € à�h‰hˆØˆ;ØØ�v‰vˆr   c                ó2   — | j                  «       }||_        y rp   )Úget_or_add_extr;   ©rm   rs   r   s      r   r;   zCT_Transform2D.cx  ó   € à×!Ñ!Ó#ˆØˆ�r   c                ó8   — | j                   }|€y |j                  S rp   )r   r<   r€   s     r   r<   zCT_Transform2D.cy!  r�   r   c                ó2   — | j                  «       }||_        y rp   )rƒ   r<   r„   s      r   r<   zCT_Transform2D.cy(  r…   r   N)r   r   r   r   r   Úoffr   rw   r;   rx   r<   r   r   r   r|   r|     ss   „ ÙNá
�G¨
Ô
3€CÙ
�G¨Ô
+€Càñó ðð ‡Y�Yñó ðð ñó ðð ‡Y�Yñó ñr   r|   N)*r   Ú
__future__r   Útypingr   r   Údocx.oxml.nsr   Údocx.oxml.parserr   Údocx.oxml.simpletypesr	   r
   r   r   r   r   Údocx.oxml.xmlchemyr   r   r   r   r   Údocx.sharedr   r   r    r%   r*   r+   r3   r6   rS   r.   rU   r`   r4   re   rg   rX   rz   r|   r   r   r   ú<module>r�      s  ðÙ Jå "ç &å  Ý &÷÷ ÷õ ñ Ý"ôC�ô Cô	ˆoô 	ô˜Oô ô˜ô ô2˜_ô 2ô2
�ô 2
ôj0˜ô 0ôV Oô Vô,
�ô ,
ô^'˜/ô 'ô.�ô .ô˜ô ô˜/ô ô
�oô ô
)˜ô )ôX˜ô ô
�_õ r   