
    +gg                    B   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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5      \ " S S5      5       5       r\" S5      \ " S S5      5       5       rg)    )annotations   )event_classT_JSON_DICT)	dataclassN)pagec                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S r\S	 5       rS
r	g)ApplicationCacheResource   z2
Detailed application cache resource information.
strurlintsizetype_c                t    [        5       nU R                  US'   U R                  US'   U R                  US'   U$ )Nr   r   type)dictr   r   r   selfjsons     ڀ/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v85/application_cache.pyto_json ApplicationCacheResource.to_json   s5    vhhUyyVzzV    c                Z    U " [        US   5      [        US   5      [        US   5      S9$ )Nr   r   r   )r   r   r   )r   r   clsr   s     r   	from_json"ApplicationCacheResource.from_json$   s3    DK T&\"d6l#
 	
r    N
__name__
__module____qualname____firstlineno____doc____annotations__r   classmethodr   __static_attributes__r    r   r   r
   r
      s5     
H I J 
 
r   r
   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)ApplicationCache-   z)
Detailed application cache information.
r   manifest_urlfloatr   creation_timeupdate_timez%typing.List[ApplicationCacheResource]	resourcesc                    [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U R
                   Vs/ s H  o"R                  5       PM     snUS'   U$ s  snf )NmanifestURLr   creationTime
updateTimer1   )r   r-   r   r/   r0   r1   r   )r   r   is      r   r   ApplicationCache.to_jsonA   sr    v"//]yyV#11^!--\26..A.QYY[.A[ Bs   A6c                    U " [        US   5      [        US   5      [        US   5      [        US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nr3   r   r4   r5   r1   )r-   r   r/   r0   r1   )r   r.   r
   r   )r   r   r6   s      r   r   ApplicationCache.from_jsonJ   sm    T-01tF|$^ 45d<01FJ;FWXFW/99!<FWX
 	

 Ys   A"r    Nr!   r    r   r   r+   r+   -   sG      K   54 
 
r   r+   c                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S	 r\S
 5       rSr	g)FrameWithManifestU   z'
Frame identifier - manifest URL pair.
page.FrameIdframe_idr   r-   r   statusc                    [        5       nU R                  R                  5       US'   U R                  US'   U R                  US'   U$ )NframeIdr3   r?   )r   r>   r   r-   r?   r   s     r   r   FrameWithManifest.to_jsonc   sA    v--//1Y"//]Xr   c                    U " [         R                  R                  US   5      [        US   5      [	        US   5      S9$ NrA   r3   r?   )r>   r-   r?   r   FrameIdr   r   r   r   s     r   r   FrameWithManifest.from_jsonj   >    \\++DO<T-01tH~&
 	
r   r    Nr!   r    r   r   r;   r;   U   s7       K 
 
r   r;   c               #     #    SS0n U v ng7f)z1
Enables application cache domain notifications.
methodzApplicationCache.enableNr    )cmd_dictr   s     r   enablerL   s   s     
 	+H >Ds   
c              #     #    [        5       nU R                  5       US'   SUS.nUv n[        R                  US   5      $ 7f)z
Returns relevant application cache data for the document in given frame.

:param frame_id: Identifier of the frame containing document whose application cache is retrieved.
:returns: Relevant application cache data for the document in given frame.
rA   z,ApplicationCache.getApplicationCacheForFramerJ   paramsapplicationCache)r   r   r+   r   r>   rO   rK   r   s       r   get_application_cache_for_framerR   }   sN      &F ((*F9@H >D%%d+=&>??s   ?Ac               #  v   #    SS0n U v nUS    Vs/ s H  n[         R                  U5      PM     sn$ s  snf 7f)a
  
Returns array of frame identifiers with manifest urls for each frame containing a document
associated with some application cache.

:returns: Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
rJ   z'ApplicationCache.getFramesWithManifestsframeIds)r;   r   )rK   r   r6   s      r   get_frames_with_manifestsrU      sH      	;H >D484DE4Dq''*4DEEEs   949c              #  r   #    [        5       nU R                  5       US'   SUS.nUv n[        US   5      $ 7f)z
Returns manifest URL for document in the given frame.

:param frame_id: Identifier of the frame containing document whose manifest is retrieved.
:returns: Manifest URL for document in the given frame.
rA   z$ApplicationCache.getManifestForFramerN   r3   )r   r   r   rQ   s       r   get_manifest_for_framerW      sG      &F ((*F98H >DtM"##s   57z.ApplicationCache.applicationCacheStatusUpdatedc                  H    \ rS rSr% S\S'   S\S'   S\S'   \SS j5       rS	rg
)ApplicationCacheStatusUpdated   r=   r>   r   r-   r   r?   c                    U " [         R                  R                  US   5      [        US   5      [	        US   5      S9$ rD   rE   r   s     r   r   'ApplicationCacheStatusUpdated.from_json   rH   r   r    N)r   r   returnrY   r"   r#   r$   r%   r'   r(   r   r)   r    r   r   rY   rY      s'     K
 
r   rY   z$ApplicationCache.networkStateUpdatedc                  4    \ rS rSr% S\S'   \SS j5       rSrg)NetworkStateUpdated   boolis_now_onlinec                &    U " [        US   5      S9$ )NisNowOnline)rc   )rb   r   s     r   r   NetworkStateUpdated.from_json   s    tM23
 	
r   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])r>   r=   r]   z<typing.Generator[T_JSON_DICT, T_JSON_DICT, ApplicationCache])r]   zJtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[FrameWithManifest]])r>   r=   r]   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])
__future__r   utilr   r   dataclassesr   enumtyping r   r
   r+   r;   rL   rR   rU   rW   rY   r`   r    r   r   <module>rm      s    # * !    
 
 
: $
 $
 $
N 
 
 
:@@	C@&F$$	6$& =>

 
  ?
" 34

 
  5
r   