
    ~ZiL                    F    S r SSKJr  SSKJr  SSKJrJr   " S S\5      rg)z:lxml custom element classes for text-related XML elements.    )annotations)	XsdString)BaseOxmlElementOptionalAttributec                  z    \ rS rSr% Sr\" S\5      rS\S'   \" S\5      r	S\S'   \
SS j5       r\
SS	 j5       rS
rg)CT_Hyperlink	   z1Custom element class for <a:hlinkClick> elements.zr:idstrrIdaction
str | Nonec                    U R                   nUc  0 $ UR                  S5      n[        U5      S:X  a  0 $ US   R                  S5      n[        U Vs/ s H  oDR                  S5      PM     sn5      $ s  snf )zQuery portion of the `ppaction://` URL as dict.

For example `{'id':'0', 'return':'true'}` in 'ppaction://customshow?id=0&return=true'.

Returns an empty dict if the URL contains no query string or if no action attribute is
present.
?   &=)r   splitlendict)selfurlhalveskey_value_pairspairs        j/var/www/eduai.edurigo.com/question_generate/ques_gen_env/lib/python3.13/site-packages/pptx/oxml/action.pyaction_fieldsCT_Hyperlink.action_fields   sj     kk;I3v;!I )//#.AZZ_ABBAs   A2c                X    U R                   nUc  gUR                  S5      S   nUSS nU$ )zThe host portion of the `ppaction://` URL contained in the action attribute.

For example 'customshow' in 'ppaction://customshow?id=0&return=true'. Returns |None| if no
action attribute is present.
Nr   r      )r   r   )r   r   protocol_and_hosthosts       r   action_verbCT_Hyperlink.action_verb&   s9     kk;IIcN1- %     N)returnzdict[str, str])r&   r   )__name__
__module____qualname____firstlineno____doc__r   r   r   __annotations__r   propertyr   r"   __static_attributes__r%   r$   r   r   r   	   sV    ; 3C3*)FJ  C C(  r$   r   N)	r+   
__future__r   pptx.oxml.simpletypesr   pptx.oxml.xmlchemyr   r   r   r%   r$   r   <module>r2      s    @ " + A,? ,r$   