
    +gh+                       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K	J
r
  SSK	J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$S jrS%S jr    S&S jr    S'S jr      S(S jr      S)S j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g),    )annotations   )event_classT_JSON_DICT)	dataclassN)dom)runtimec                      \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S	\S
'   S	\S'   S	\S'   S\S'   SrS\S'   SrS\S'   S r\	S 5       r
Srg)	Animation   z
Animation instance.
strid_nameboolpaused_state
play_statefloatplayback_rate
start_timecurrent_timetype_Nz typing.Optional[AnimationEffect]sourcetyping.Optional[str]css_idc                   [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U R
                  US'   U R                  US'   U R                  US'   U R                  US'   U R                  b  U R                  R                  5       US	'   U R                  b  U R                  US
'   U$ )Nidr   pausedState	playStateplaybackRate	startTimecurrentTimetyper   cssId)dictr   r   r   r   r   r   r   r   r   to_jsonr   selfjsons     x/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v85/animation.pyr%   Animation.to_json4   s    vXXT
yyV"//] OO[#11^ OO["//]zzV;;"![[002DN;;" KKDM    c                H   U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      S	U;   a  [        R	                  US	   5      OS S
U;   a  [        US
   5      S9
$ S S9
$ )Nr   r   r   r   r   r    r!   r"   r   r#   )
r   r   r   r   r   r   r   r   r   r   )r   r   r   AnimationEffect	from_jsonclsr(   s     r)   r.   Animation.from_jsonD   s    DJT&\"d=124,-^ 45T+./tM23d6l#@HD@P?,,T(^<VZ)0D3tG}%
 	
 ?C
 	
r+    )__name__
__module____qualname____firstlineno____doc____annotations__r   r   r%   classmethodr.   __static_attributes__r2   r+   r)   r   r      sv     
H I  O    J 04F,3 $(F '  
 
r+   r   c                      \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S'   S	\S
'   S	\S'   S	\S'   SrS\S'   SrS\S'   S r\	S 5       r
Srg)r-   T   z
AnimationEffect instance
r   delay	end_delayiteration_start
iterationsdurationr   	directionfilleasingNz"typing.Optional[dom.BackendNodeId]backend_node_idztyping.Optional[KeyframesRule]keyframes_rulec                   [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U R
                  US'   U R                  US'   U R                  US'   U R                  US'   U R                  b  U R                  R                  5       US	'   U R                  b  U R                  R                  5       US
'   U$ )Nr=   endDelayiterationStartr@   rA   rB   rC   rD   backendNodeIdkeyframesRule)r$   r=   r>   r?   r@   rA   rB   rC   rD   rE   r%   rF   r&   s     r)   r%   AnimationEffect.to_jsonw   s    v

W>>Z!%!5!5!__\==Z NN[yyVX+$($8$8$@$@$BD!*$($7$7$?$?$AD!r+   c                p   U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      S	U;   a"  [        R                  R	                  US	   5      OS S
U;   a  [
        R	                  US
   5      S9
$ S S9
$ )Nr=   rH   rI   r@   rA   rB   rC   rD   rJ   rK   )
r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   )r   r   r   BackendNodeIdr.   KeyframesRuler/   s     r)   r.   AnimationEffect.from_json   s    W&D,-!$'7"89T,/04
+,${+,T&\"tH~&RaeiRiC--77_8MNosM\`dMd=2243HI
 	
 ko
 	
r+   r2   )r3   r4   r5   r6   r7   r8   rE   rF   r%   r9   r.   r:   r2   r+   r)   r-   r-   T   su     L    O N I K ;?O7> 6:N29  
 
r+   r-   c                  H    \ rS rSr% SrS\S'   SrS\S'   S r\S	 5       r	S
r
g)rO      z
Keyframes Rule
ztyping.List[KeyframeStyle]	keyframesNr   r   c                    [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  b  U R                  US'   U$ s  snf )NrS   r   )r$   rS   r%   r   )r'   r(   is      r)   r%   KeyframesRule.to_json   sL    v26..A.QYY[.A[99 99DL Bs   Ac                    U " US    Vs/ s H  n[         R                  U5      PM     snSU;   a  [        US   5      S9$ S S9$ s  snf )NrS   r   )rS   r   )KeyframeStyler.   r   )r0   r(   rU   s      r)   r.   KeyframesRule.from_json   sU    ;?;LM;La}..q1;LM&,nT&\"
 	
:>
 	
Ms   Ar2   )r3   r4   r5   r6   r7   r8   r   r%   r9   r.   r:   r2   r+   r)   rO   rO      s5     *) "&D
% 
 
r+   rO   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
rX      z
Keyframe Style
r   offsetrD   c                V    [        5       nU R                  US'   U R                  US'   U$ )Nr\   rD   )r$   r\   rD   r&   s     r)   r%   KeyframeStyle.to_json   s(    vXXr+   c                @    U " [        US   5      [        US   5      S9$ )Nr\   rD   )r\   rD   r   r/   s     r)   r.   KeyframeStyle.from_json   s'    tH~&tH~&
 	
r+   r2   N)
r3   r4   r5   r6   r7   r8   r%   r9   r.   r:   r2   r+   r)   rX   rX      s.     K K 
 
r+   rX   c               #     #    SS0n U v ng7f)z*
Disables animation domain notifications.
methodzAnimation.disableNr2   cmd_dictr(   s     r)   disablerf      s     
 	%H >D   
c               #     #    SS0n U v ng7f)z)
Enables animation domain notifications.
rc   zAnimation.enableNr2   rd   s     r)   enableri      s     
 	$H >Drg   c              #  T   #    [        5       nXS'   SUS.nUv n[        US   5      $ 7f)zq
Returns the current time of the an animation.

:param id_: Id of animation.
:returns: Current time of the page.
r   zAnimation.getCurrentTimerc   paramsr!   )r$   r   )r   rl   re   r(   s       r)   get_current_timerm      s;      &F4L,H >Dm$%%s   &(c               #  6   #    SS0n U v n[        US   5      $ 7f)zc
Gets the playback rate of the document timeline.

:returns: Playback rate for animations on page.
rc   zAnimation.getPlaybackRater   )r   rd   s     r)   get_playback_ratero      s-      	-H >Dn%&&s   c              #  f   #    [        5       nU  Vs/ s H  o"PM     snUS'   SUS.nUv ngs  snf 7f)zn
Releases a set of animations to no longer be manipulated.

:param animations: List of animation ids to seek.

animationszAnimation.releaseAnimationsrk   Nr$   )rq   rl   rU   re   r(   s        r)   release_animationsrs      sB      &F'12z!Az2F</H >D 3s   1,1c              #  |   #    [        5       nXS'   SUS.nUv n[        R                  R                  US   5      $ 7f)zu
Gets the remote object of the Animation.

:param animation_id: Animation id.
:returns: Corresponding remote object.
animationIdzAnimation.resolveAnimationrk   remoteObject)r$   r	   RemoteObjectr.   )animation_idrl   re   r(   s       r)   resolve_animationry     sH      &F(=.H >D))$~*>??s   :<c              #  n   #    [        5       nU  Vs/ s H  o3PM     snUS'   XS'   SUS.nUv ngs  snf 7f)z
Seek a set of animations to a particular time within each animation.

:param animations: List of animation ids to seek.
:param current_time: Set the current time of each animation.
rq   r!   zAnimation.seekAnimationsrk   Nrr   )rq   r   rl   rU   re   r(   s         r)   seek_animationsr{   "  sJ      &F'12z!Az2F<(=,H >D 3   505c              #  n   #    [        5       nU  Vs/ s H  o3PM     snUS'   XS'   SUS.nUv ngs  snf 7f)z
Sets the paused state of a set of animations.

:param animations: Animations to set the pause state of.
:param paused: Paused state to set to.
rq   pausedzAnimation.setPausedrk   Nrr   )rq   r~   rl   rU   re   r(   s         r)   
set_pausedr   6  sJ      &F'12z!Az2F<8'H >D 3r|   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zn
Sets the playback rate of the document timeline.

:param playback_rate: Playback rate for animations on page
r   zAnimation.setPlaybackRaterk   Nrr   )r   rl   re   r(   s       r)   set_playback_rater   J  s,      &F*>-H >Ds   c              #  J   #    [        5       nXS'   XS'   X#S'   SUS.nUv ng7f)z
Sets the timing of an animation node.

:param animation_id: Animation id.
:param duration: Duration of the animation.
:param delay: Delay of the animation.
ru   rA   r=   zAnimation.setTimingrk   Nrr   )rx   rA   r=   rl   re   r(   s         r)   
set_timingr   [  s;      &F(=!:7O'H >Ds   !#zAnimation.animationCanceledc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AnimationCanceledir  z1
Event for when an animation has been cancelled.
r   r   c                &    U " [        US   5      S9$ Nr   )r   r`   r/   s     r)   r.   AnimationCanceled.from_json{      DJ
 	
r+   r2   N)r(   r   returnr   	r3   r4   r5   r6   r7   r8   r9   r.   r:   r2   r+   r)   r   r   r        
H
 
r+   r   zAnimation.animationCreatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AnimationCreatedi  z1
Event for each animation that has been created.
r   r   c                &    U " [        US   5      S9$ r   r`   r/   s     r)   r.   AnimationCreated.from_json  r   r+   r2   N)r(   r   r   r   r   r2   r+   r)   r   r     r   r+   r   zAnimation.animationStartedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AnimationStartedi  z,
Event for animation that has been started.
r   	animationc                :    U " [         R                  US   5      S9$ )Nr   )r   )r   r.   r/   s     r)   r.   AnimationStarted.from_json  s"    ))${*;<
 	
r+   r2   N)r(   r   r   r   r   r2   r+   r)   r   r     s!     
 
r+   r   )r   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r   r   r   1typing.Generator[T_JSON_DICT, T_JSON_DICT, float])r   r   )rq   typing.List[str]r   r   )rx   r   r   z@typing.Generator[T_JSON_DICT, T_JSON_DICT, runtime.RemoteObject])rq   r   r   r   r   r   )rq   r   r~   r   r   r   )r   r   r   r   )rx   r   rA   r   r=   r   r   r   )
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r   r-   rO   rX   rf   ri   rm   ro   rs   ry   r{   r   r   r   r   r   r   r2   r+   r)   <module>r      s   # * !     @
 @
 @
F ?
 ?
 ?
D 
 
 
2 
 
 
0&&	8&&
'$	7"@@	G@&$ 
8($ 
8(	7"  
8	. *+

 
  ,
 )*

 
  +
 )*

 
  +
r+   