ó
    º®iË  ã                  ó  • S SK Jr  SSKJrJr  S SKJr  S SKrS SKr " S S\	5      r
 " S S	\5      r\ " S
 S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       rS%S jrS%S jr\" S5      \ " S S5      5       5       r\" S5      \ " S S5      5       5       r\" S5      \ " S S5      5       5       r\" S5      \ " S  S!5      5       5       r\" S"5      \ " S# S$5      5       5       rg)&é    )Úannotationsé   )Úevent_classÚT_JSON_DICT)Ú	dataclassNc                  óJ   ^ • \ rS rSrSrSS jr\SS j5       rU 4S jrSr	U =r
$ )	ÚPlayerIdé   zA
Players will get an ID that is unique within the agent context.
c                ó   • U $ ©N© ©Úselfs    ÚZC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium/webdriver/common/devtools/v140/media.pyÚto_jsonÚPlayerId.to_json   ó   € Øˆó    c                ó   • U " U5      $ r   r   ©ÚclsÚjsons     r   Ú	from_jsonÚPlayerId.from_json   ó   € á�4‹yÐr   c                ó>   >• SR                  [        TU ]	  5       5      $ )NzPlayerId({})©ÚformatÚsuperÚ__repr__©r   Ú	__class__s    €r   r    ÚPlayerId.__repr__   s   ø€ Ø×$Ñ$¤U¡WÑ%5Ó%7Ó8Ð8r   r   )ÚreturnÚstr)r   r%   r$   r	   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úclassmethodr   r    Ú__static_attributes__Ú__classcell__©r"   s   @r   r	   r	      s+   ø† ñôð óó ð÷9ó 9r   r	   c                  óF   ^ • \ rS rSrSS jr\SS j5       rU 4S jrSrU =r	$ )Ú	Timestampé   c                ó   • U $ r   r   r   s    r   r   ÚTimestamp.to_json   r   r   c                ó   • U " U5      $ r   r   r   s     r   r   ÚTimestamp.from_json    r   r   c                ó>   >• SR                  [        TU ]	  5       5      $ )NzTimestamp({})r   r!   s    €r   r    ÚTimestamp.__repr__$   s   ø€ Ø×%Ñ%¤e¡gÑ&6Ó&8Ó9Ð9r   r   )r$   Úfloat)r   r8   r$   r0   )
r&   r'   r(   r)   r   r+   r   r    r,   r-   r.   s   @r   r0   r0      s&   ø† ôð óó ð÷:ó :r   r0   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
ÚPlayerMessageé(   zI
Have one type per entry in MediaLogRecord::Type
Corresponds to kMessage
r%   ÚlevelÚmessagec                óV   • [        5       nU R                  US'   U R                  US'   U$ )Nr<   r=   )Údictr<   r=   ©r   r   s     r   r   ÚPlayerMessage.to_json;   s(   € Ü‹vˆØŸ
™
ˆˆW‰ØŸ,™,ˆˆY‰Øˆr   c                ó@   • U " [        US   5      [        US   5      S9$ )Nr<   r=   )r<   r=   ©r%   r   s     r   r   ÚPlayerMessage.from_jsonA   s'   € áÜ�d˜7‘mÓ$Ü˜˜Y™Ó(ñ
ð 	
r   r   N©
r&   r'   r(   r)   r*   Ú__annotations__r   r+   r   r,   r   r   r   r:   r:   (   s,   ‡ ñð ƒJàƒLòð ñ
ó ó
r   r:   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
ÚPlayerPropertyéI   z%
Corresponds to kMediaPropertyChange
r%   ÚnameÚvaluec                óV   • [        5       nU R                  US'   U R                  US'   U$ )NrJ   rK   )r?   rJ   rK   r@   s     r   r   ÚPlayerProperty.to_jsonR   s(   € Ü‹vˆØ—y‘yˆˆV‰ØŸ
™
ˆˆW‰Øˆr   c                ó@   • U " [        US   5      [        US   5      S9$ )NrJ   rK   )rJ   rK   rC   r   s     r   r   ÚPlayerProperty.from_jsonX   s'   € áÜ�T˜&‘\Ó"Ü�d˜7‘mÓ$ñ
ð 	
r   r   NrE   r   r   r   rH   rH   I   s,   ‡ ñð ƒIàƒJòð ñ
ó ó
r   rH   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)ÚPlayerEventé`   z%
Corresponds to kMediaEventTriggered
r0   Ú	timestampr%   rK   c                ór   • [        5       nU R                  R                  5       US'   U R                  US'   U$ )NrS   rK   )r?   rS   r   rK   r@   s     r   r   ÚPlayerEvent.to_jsoni   s2   € Ü‹vˆØ ŸN™N×2Ñ2Ó4ˆˆ[ÑØŸ
™
ˆˆW‰Øˆr   c                óT   • U " [         R                  US   5      [        US   5      S9$ )NrS   rK   )rS   rK   )r0   r   r%   r   s     r   r   ÚPlayerEvent.from_jsono   s.   € áÜ×)Ñ)¨$¨{Ñ*;Ó<Ü�d˜7‘mÓ$ñ
ð 	
r   r   NrE   r   r   r   rQ   rQ   `   s-   ‡ ñð ÓàƒJòð ñ
ó ó
r   rQ   c                  óD   • \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)ÚPlayerErrorSourceLocationéw   z„
Represents logged source line numbers reported in an error.
NOTE: file and line are from chromium c++ implementation code, not js.
r%   ÚfileÚintÚlinec                óV   • [        5       nU R                  US'   U R                  US'   U$ )Nr[   r]   )r?   r[   r]   r@   s     r   r   Ú!PlayerErrorSourceLocation.to_json�   s(   € Ü‹vˆØ—y‘yˆˆV‰Ø—y‘yˆˆV‰Øˆr   c                ó@   • U " [        US   5      [        US   5      S9$ )Nr[   r]   )r[   r]   )r%   r\   r   s     r   r   Ú#PlayerErrorSourceLocation.from_json‡   s'   € áÜ�T˜&‘\Ó"Ü�T˜&‘\Ó"ñ
ð 	
r   r   NrE   r   r   r   rY   rY   w   s,   ‡ ñð ƒIà
ƒIòð ñ
ó ó
r   rY   c                  ób   • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   S r\S 5       rSr	g)ÚPlayerErroré�   z
Corresponds to kMediaError
r%   Ú
error_typer\   Úcodez&typing.List[PlayerErrorSourceLocation]Ústackútyping.List[PlayerError]Úcauser?   Údatac                ó<  • [        5       nU R                  US'   U R                  US'   U R                   Vs/ s H  o"R	                  5       PM     snUS'   U R
                   Vs/ s H  o"R	                  5       PM     snUS'   U R                  US'   U$ s  snf s  snf )NÚ	errorTyperf   rg   ri   rj   )r?   re   rf   rg   r   ri   rj   )r   r   Úis      r   r   ÚPlayerError.to_json¤   s~   € Ü‹vˆØ ŸO™Oˆˆ[ÑØ—y‘yˆˆV‰Ø.2¯jªjÓ9ªj¨Ÿ™ž©jÑ9ˆˆW‰Ø.2¯jªjÓ9ªj¨Ÿ™ž©jÑ9ˆˆW‰Ø—y‘yˆˆV‰Øˆùò :ùÚ9s   ·BÁ$Bc                ó  • U " [        US   5      [        US   5      US    Vs/ s H  n[        R                  U5      PM     snUS    Vs/ s H  n[        R                  U5      PM     sn[        US   5      S9$ s  snf s  snf )Nrl   rf   rg   ri   rj   )re   rf   rg   ri   rj   )r%   r\   rY   r   rc   r?   ©r   r   rm   s      r   r   ÚPlayerError.from_json­   s€   € áÜ˜4 Ñ,Ó-Ü�T˜&‘\Ó"ØCGÈÂ=ÓQÂ=¸aÔ,×6Ñ6°qÖ9Á=ÑQØ59¸'²]ÓC²]°”;×(Ñ(¨Ö+±]ÑCÜ�d˜6‘lÓ#ñ
ð 	
ùò RùÚCs   ¤A=ÁBr   NrE   r   r   r   rc   rc   �   sE   ‡ ñð ƒOð ƒIð 2Ó1ð $Ó#ð ƒJòð ñ
ó ó
r   rc   c               #  ó   #   • SS0n U v •ng7f)z
Enables the Media domain
ÚmethodzMedia.enableNr   ©Úcmd_dictr   s     r   Úenablerv   ¸   s   é € ð
 	�.ð€Hð ‰>�Dùó   ‚
c               #  ó   #   • SS0n U v •ng7f)z
Disables the Media domain.
rs   zMedia.disableNr   rt   s     r   Údisablery   Â   s   é € ð
 	�/ð€Hð ‰>�Dùrw   zMedia.playerPropertiesChangedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerPropertiesChangedéÌ   z†
This can be called multiple times, and can be used to set / override /
remove player properties. A null propValue indicates removal.
r	   Ú	player_idztyping.List[PlayerProperty]Ú
propertiesc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )NÚplayerIdr~   )r}   r~   )r	   r   rH   rp   s      r   r   Ú!PlayerPropertiesChanged.from_jsonÖ   sI   € áÜ×(Ñ(¨¨jÑ)9Ó:Ø=AÀ,Ò=OÓPÒ=O¸œ×0Ñ0°Ö3Ñ=OÑPñ
ð 	
ùâPó   ¡A
r   N)r   r   r$   r{   ©	r&   r'   r(   r)   r*   rF   r+   r   r,   r   r   r   r{   r{   Ì   s'   ‡ ñð ÓØ+Ó+àó
ó ó
r   r{   zMedia.playerEventsAddedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerEventsAddedéÞ   z’
Send events as a list, allowing them to be batched on the browser for less
congestion. If batched, events must ALWAYS be in chronological order.
r	   r}   ztyping.List[PlayerEvent]Úeventsc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nr€   r‡   )r}   r‡   )r	   r   rQ   rp   s      r   r   ÚPlayerEventsAdded.from_jsonè   óF   € áÜ×(Ñ(¨¨jÑ)9Ó:Ø6:¸8²nÓE²n°”K×)Ñ)¨!Ö,±nÑEñ
ð 	
ùâEr‚   r   N)r   r   r$   r…   rƒ   r   r   r   r…   r…   Þ   s'   ‡ ñð ÓØ$Ó$àó
ó ó
r   r…   zMedia.playerMessagesLoggedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerMessagesLoggedéð   z8
Send a list of any messages that need to be delivered.
r	   r}   ztyping.List[PlayerMessage]Úmessagesc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nr€   rŽ   )r}   rŽ   )r	   r   r:   rp   s      r   r   ÚPlayerMessagesLogged.from_jsonù   sI   € áÜ×(Ñ(¨¨jÑ)9Ó:Ø:>¸zÒ:JÓKÒ:J°Q”m×-Ñ-¨aÖ0Ñ:JÑKñ
ð 	
ùâKr‚   r   N)r   r   r$   rŒ   rƒ   r   r   r   rŒ   rŒ   ð   s'   ‡ ñð ÓØ(Ó(àó
ó ó
r   rŒ   zMedia.playerErrorsRaisedc                  óB   • \ rS rSr% SrS\S'   S\S'   \S
S j5       rSrg	)ÚPlayerErrorsRaisedi  z6
Send a list of any errors that need to be delivered.
r	   r}   rh   Úerrorsc           	     ó”   • U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nr€   r“   )r}   r“   )r	   r   rc   rp   s      r   r   ÚPlayerErrorsRaised.from_json
  rŠ   r‚   r   N)r   r   r$   r’   rƒ   r   r   r   r’   r’     s'   ‡ ñð ÓØ$Ó$àó
ó ó
r   r’   zMedia.playersCreatedc                  ó8   • \ rS rSr% SrS\S'   \SS j5       rSrg)	ÚPlayersCreatedi  zÂ
Called whenever a player is created, or when a new agent joins and receives
a list of active players. If an agent is restored, it will receive the full
list of player ids and all events again.
ztyping.List[PlayerId]Úplayersc                óf   • U " US    Vs/ s H  n[         R                  U5      PM     snS9$ s  snf )Nr˜   )r˜   )r	   r   rp   s      r   r   ÚPlayersCreated.from_json  s3   € áØ48¸²OÓD²O¨q”X×'Ñ'¨Ö*±OÑDñ
ð 	
ùÚDs   Š.r   N)r   r   r$   r—   rƒ   r   r   r   r—   r—     s!   ‡ ñð
 #Ó"àó
ó ó
r   r—   )r$   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])Ú
__future__r   Úutilr   r   Údataclassesr   ÚenumÚtypingr%   r	   r8   r0   r:   rH   rQ   rY   rc   rv   ry   r{   r…   rŒ   r’   r—   r   r   r   Ú<module>r       sz  ðõ #ß *Ý !Û Û ô9ˆsô 9ô	:�ô 	:ð ÷
ð 
ó ð
ð@ ÷
ð 
ó ð
ð, ÷
ð 
ó ð
ð, ÷
ð 
ó ð
ð. ÷%
ð %
ó ð%
ôPôñ Ð,Ó-Ø
÷
ð 
ó ó .ð
ñ  Ð&Ó'Ø
÷
ð 
ó ó (ð
ñ  Ð)Ó*Ø
÷
ð 
ó ó +ð
ñ Ð'Ó(Ø
÷
ð 
ó ó )ð
ñ Ð#Ó$Ø
÷
ð 
ó ó %ñ
r   