
    +gA                       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	\R                  5      r " S
 S\R                  5      r " S S\	5      r " S S\R                  5      r " S S\R                  5      r " S S\	5      r " S S\R                  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SJS  jrSJS! jr    SKS" 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      \ " S0 S15      5       5       r\" S25      \ " S3 S45      5       5       r \" S55      \ " S6 S75      5       5       r!\" S85      \ " S9 S:5      5       5       r"\" S;5      \ " S< S=5      5       5       r#\" S>5      \ " S? S@5      5       5       r$\" SA5      \ " SB SC5      5       5       r%\" SD5      \ " SE SF5      5       5       r&\" SG5      \ " SH SI5      5       5       r'g)L    )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
$ )	GraphObjectId   zX
An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API
c                    U $ N selfs    x/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v85/web_audio.pyto_jsonGraphObjectId.to_json           c                    U " U5      $ r   r   clsjsons     r   	from_jsonGraphObjectId.from_json       4yr   c                >   > SR                  [        TU ]	  5       5      $ )NzGraphObjectId({})formatsuper__repr__r   	__class__s    r   r    GraphObjectId.__repr__   s    "))%'*:*<==r   r   returnstr)r   r&   r%   r	   __name__
__module____qualname____firstlineno____doc__r   classmethodr   r    __static_attributes____classcell__r"   s   @r   r	   r	      s+      > >r   r	   c                  6    \ rS rSrSrSrSrS r\S 5       r	Sr
g)	ContextType   z 
Enum of BaseAudioContext types
realtimeofflinec                    U R                   $ r   valuer   s    r   r   ContextType.to_json#       zzr   c                    U " U5      $ r   r   r   s     r   r   ContextType.from_json&   r   r   r   N)r(   r)   r*   r+   r,   REALTIMEOFFLINEr   r-   r   r.   r   r   r   r2   r2      s,     HG  r   r2   c                  :    \ rS rSrSrSrSrSrS r\	S 5       r
Srg	)
ContextState+   z)
Enum of AudioContextState from the spec
	suspendedrunningclosedc                    U R                   $ r   r7   r   s    r   r   ContextState.to_json3   r:   r   c                    U " U5      $ r   r   r   s     r   r   ContextState.from_json6   r   r   r   N)r(   r)   r*   r+   r,   	SUSPENDEDRUNNINGCLOSEDr   r-   r   r.   r   r   r   r@   r@   +   s1     IGF  r   r@   c                  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
$ )	NodeType;   z
Enum of AudioNode types
c                    U $ r   r   r   s    r   r   NodeType.to_json?   r   r   c                    U " U5      $ r   r   r   s     r   r   NodeType.from_jsonB   r   r   c                >   > SR                  [        TU ]	  5       5      $ )NzNodeType({})r   r!   s    r   r    NodeType.__repr__F   s    $$UW%5%788r   r   r$   )r   r&   r%   rM   r'   r0   s   @r   rM   rM   ;   s+      9 9r   rM   c                  :    \ rS rSrSrSrSrSrS r\	S 5       r
Srg	)
ChannelCountModeJ   z3
Enum of AudioNode::ChannelCountMode from the spec
zclamped-maxexplicitmaxc                    U R                   $ r   r7   r   s    r   r   ChannelCountMode.to_jsonR   r:   r   c                    U " U5      $ r   r   r   s     r   r   ChannelCountMode.from_jsonU   r   r   r   N)r(   r)   r*   r+   r,   CLAMPED_MAXEXPLICITMAX_r   r-   r   r.   r   r   r   rV   rV   J   s1      KHD  r   rV   c                  6    \ rS rSrSrSrSrS r\S 5       r	Sr
g)	ChannelInterpretationZ   z8
Enum of AudioNode::ChannelInterpretation from the spec
discretespeakersc                    U R                   $ r   r7   r   s    r   r   ChannelInterpretation.to_jsona   r:   r   c                    U " U5      $ r   r   r   s     r   r   ChannelInterpretation.from_jsond   r   r   r   N)r(   r)   r*   r+   r,   DISCRETESPEAKERSr   r-   r   r.   r   r   r   rb   rb   Z   s,     HH  r   rb   c                  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
$ )		ParamTypei   z
Enum of AudioParam types
c                    U $ r   r   r   s    r   r   ParamType.to_jsonm   r   r   c                    U " U5      $ r   r   r   s     r   r   ParamType.from_jsonp   r   r   c                >   > SR                  [        TU ]	  5       5      $ )NzParamType({})r   r!   s    r   r    ParamType.__repr__t   s    %%eg&6&899r   r   r$   )r   r&   r%   rm   r'   r0   s   @r   rm   rm   i   s+      : :r   rm   c                  6    \ rS rSrSrSrSrS r\S 5       r	Sr
g)	AutomationRatex   z2
Enum of AudioParam::AutomationRate from the spec
za-ratezk-ratec                    U R                   $ r   r7   r   s    r   r   AutomationRate.to_json   r:   r   c                    U " U5      $ r   r   r   s     r   r   AutomationRate.from_json   r   r   r   N)r(   r)   r*   r+   r,   A_RATEK_RATEr   r-   r   r.   r   r   r   rv   rv   x   s,     FF  r   rv   c                  X    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S r\S	 5       rS
r	g)ContextRealtimeData   z2
Fields in AudioContext that change in real-time.
floatcurrent_timerender_capacitycallback_interval_meancallback_interval_variancec                    [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U$ )NcurrentTimerenderCapacitycallbackIntervalMeancallbackIntervalVariance)dictr   r   r   r   r   r   s     r   r   ContextRealtimeData.to_json   sQ    v"//]!%!5!5'+'B'B#$+/+J+J'(r   c           	     t    U " [        US   5      [        US   5      [        US   5      [        US   5      S9$ )Nr   r   r   r   )r   r   r   r   )r   r   s     r   r   ContextRealtimeData.from_json   sF    tM23!$'7"89#(.D)E#F',T2L-M'N	
 	
r   r   N
r(   r)   r*   r+   r,   __annotations__r   r-   r   r.   r   r   r   r   r      s@     
  "! !&% 
 
r   r   c                  z    \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S	\S'   S	\S'   SrS\S'   S r\S 5       r	Sr
g)BaseAudioContext   z&
Protocol object for BaseAudioContext
r	   
context_idr2   context_typer@   context_stater   callback_buffer_sizemax_output_channel_countsample_rateNz$typing.Optional[ContextRealtimeData]realtime_datac                v   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  R                  5       US'   U R
                  US'   U R                  US'   U R                  US'   U R                  b  U R                  R                  5       US'   U$ )N	contextIdcontextTypecontextStatecallbackBufferSizemaxOutputChannelCount
sampleRaterealtimeData)	r   r   r   r   r   r   r   r   r   r   s     r   r   BaseAudioContext.to_json   s    v OO335["//779]#1199;^%)%>%>!"(,(E(E$%!--\)#'#5#5#=#=#?D r   c                &   U " [         R                  US   5      [        R                  US   5      [        R                  US   5      [	        US   5      [	        US   5      [	        US   5      SU;   a  [
        R                  US   5      S9$ S S9$ )	Nr   r   r   r   r   r   r   )r   r   r   r   r   r   r   )r	   r   r2   r@   r   r   r   s     r   r   BaseAudioContext.from_json   s    $..tK/@A$..tM/BC&00n1EF!&t,@'A!B%*40G+H%Id<01Q_cgQg-77^8LM
 	
 nr
 	
r   r   )r(   r)   r*   r+   r,   r   r   r   r-   r   r.   r   r   r   r   r      sW        $# :>M7>
 	
 	
r   r   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
AudioListener   z"
Protocol object for AudioListner
r	   listener_idr   c                    [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U$ )N
listenerIdr   )r   r   r   r   r   s     r   r   AudioListener.to_json   s>    v!--557\ OO335[r   c                h    U " [         R                  US   5      [         R                  US   5      S9$ )Nr   r   )r   r   r	   r   r   s     r   r   AudioListener.from_json   s5    %//\0BC$..tK/@A
 	
r   r   Nr   r   r   r   r   r      s.      
 
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 5       rSr	g)	AudioNode   z
Protocol object for AudioNode
r	   node_idr   rM   	node_typer   number_of_inputsnumber_of_outputschannel_countrV   channel_count_moderb   channel_interpretationc                   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  R                  5       US'   U R
                  US'   U R                  US'   U R                  US'   U R                  R                  5       US'   U R                  R                  5       US'   U$ )	NnodeIdr   nodeTypenumberOfInputsnumberOfOutputschannelCountchannelCountModechannelInterpretation)
r   r   r   r   r   r   r   r   r   r   r   s     r   r   AudioNode.to_json  s    v--/X OO335[>>113Z!%!6!6"&"8"8#11^#'#:#:#B#B#D (,(C(C(K(K(M$%r   c                @   U " [         R                  US   5      [         R                  US   5      [        R                  US   5      [        US   5      [        US   5      [        US   5      [        R                  US   5      [
        R                  US   5      S	9$ )
Nr   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r	   r   rM   r   rV   rb   r   s     r   r   AudioNode.from_json  s    !++DN;$..tK/@A((j)9:"4(8#9:#D):$;<^ 45/99$?Q:RS#8#B#B4H_C`#a	
 		
r   r   Nr   r   r   r   r   r      sR     ((11
 

 

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 5       rSr	g)
AudioParami!  z 
Protocol object for AudioParam
r	   param_idr   r   rm   
param_typerv   rater   default_value	min_value	max_valuec                   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  R                  5       US'   U R
                  R                  5       US'   U R                  R                  5       US'   U R                  US'   U R                  US'   U R                  US'   U$ )	NparamIdr   r   	paramTyper   defaultValueminValuemaxValue)
r   r   r   r   r   r   r   r   r   r   r   s     r   r   AudioParam.to_json6  s    v--//1Y--/X OO335[ OO335[yy((*V#11^>>Z>>Zr   c                @   U " [         R                  US   5      [         R                  US   5      [         R                  US   5      [        R                  US   5      [        R                  US   5      [	        US   5      [	        US   5      [	        US   5      S	9$ )
Nr   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r	   r   rm   rv   r   r   s     r   r   AudioParam.from_jsonB  s    ",,T)_=!++DN;$..tK/@A **4+<=))$v,7^ 45D,-D,-	
 		
r   r   Nr   r   r   r   r   r   !  sR     

 

 

r   r   c               #     #    SS0n U v ng7f)zI
Enables the WebAudio domain and starts sending context lifetime events.
methodzWebAudio.enableNr   cmd_dictr   s     r   enabler   P  s     
 	#H >D   
c               #     #    SS0n U v ng7f)z
Disables the WebAudio domain.
r   zWebAudio.disableNr   r   s     r   disabler   Z  s     
 	$H >Dr   c              #     #    [        5       nU R                  5       US'   SUS.nUv n[        R                  US   5      $ 7f)zV
Fetch the realtime data from the registered contexts.

:param context_id:
:returns: 
r   zWebAudio.getRealtimeData)r   paramsr   )r   r   r   r   )r   r   r   r   s       r   get_realtime_datar   d  sM      &F$,,.F;,H >D((n)=>>s   ?AzWebAudio.contextCreatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	ContextCreatediw  z8
Notifies that a new BaseAudioContext has been created.
r   contextc                :    U " [         R                  US   5      S9$ Nr   )r   r   r   r   s     r   r   ContextCreated.from_json  !    $..tI?
 	
r   r   N)r   r   r%   r   	r(   r)   r*   r+   r,   r   r-   r   r.   r   r   r   r   r   w  !     
 
r   r   zWebAudio.contextWillBeDestroyedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	ContextWillBeDestroyedi  z?
Notifies that an existing BaseAudioContext will be destroyed.
r	   r   c                :    U " [         R                  US   5      S9$ )Nr   )r   r   r   s     r   r    ContextWillBeDestroyed.from_json  s"    $..tK/@A
 	
r   r   N)r   r   r%   r   r   r   r   r   r   r     s!     
 
r   r   zWebAudio.contextChangedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	ContextChangedi  z[
Notifies that existing BaseAudioContext has changed some properties (id stays the same)..
r   r   c                :    U " [         R                  US   5      S9$ r   r   r   s     r   r   ContextChanged.from_json  r   r   r   N)r   r   r%   r   r   r   r   r   r   r     r   r   r   zWebAudio.audioListenerCreatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AudioListenerCreatedi  zB
Notifies that the construction of an AudioListener has finished.
r   listenerc                :    U " [         R                  US   5      S9$ )Nr   )r   )r   r   r   s     r   r   AudioListenerCreated.from_json  s"    ",,T*-=>
 	
r   r   N)r   r   r%   r   r   r   r   r   r   r     s!     
 
r   r   z%WebAudio.audioListenerWillBeDestroyedc                  B    \ rS rSr% SrS\S'   S\S'   \S	S j5       rSrg)
AudioListenerWillBeDestroyedi  z5
Notifies that a new AudioListener has been created.
r	   r   r   c                h    U " [         R                  US   5      [         R                  US   5      S9$ )Nr   r   )r   r   r   r   s     r   r   &AudioListenerWillBeDestroyed.from_json  s5    $..tK/@A%//\0BC
 	
r   r   N)r   r   r%   r   r   r   r   r   r   r     s'     
 
r   r   zWebAudio.audioNodeCreatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AudioNodeCreatedi  z1
Notifies that a new AudioNode has been created.
r   nodec                :    U " [         R                  US   5      S9$ )Nr   )r   )r   r   r   s     r   r   AudioNodeCreated.from_json  s!    $$T&\2
 	
r   r   N)r   r   r%   r   r   r   r   r   r   r     s      O
 
r   r   z!WebAudio.audioNodeWillBeDestroyedc                  B    \ rS rSr% SrS\S'   S\S'   \S	S j5       rSrg)
AudioNodeWillBeDestroyedi  z9
Notifies that an existing AudioNode has been destroyed.
r	   r   r   c                h    U " [         R                  US   5      [         R                  US   5      S9$ )Nr   r   )r   r   r   r   s     r   r   "AudioNodeWillBeDestroyed.from_json  s4    $..tK/@A!++DN;
 	
r   r   N)r   r   r%   r  r   r   r   r   r  r    s'     
 
r   r  zWebAudio.audioParamCreatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AudioParamCreatedi  z2
Notifies that a new AudioParam has been created.
r   paramc                :    U " [         R                  US   5      S9$ )Nr  )r  )r   r   r   s     r   r   AudioParamCreated.from_json  s!    &&tG}5
 	
r   r   N)r   r   r%   r  r   r   r   r   r  r    s!     
 
r   r  z"WebAudio.audioParamWillBeDestroyedc                  L    \ rS rSr% SrS\S'   S\S'   S\S'   \S
S j5       rSrg	)AudioParamWillBeDestroyedi  z:
Notifies that an existing AudioParam has been destroyed.
r	   r   r   r   c                    U " [         R                  US   5      [         R                  US   5      [         R                  US   5      S9$ )Nr   r   r   )r   r   r   r   r   s     r   r   #AudioParamWillBeDestroyed.from_json  sF    $..tK/@A!++DN;",,T)_=
 	
r   r   N)r   r   r%   r  r   r   r   r   r  r    s-     
 
r   r  zWebAudio.nodesConnectedc                  `    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S	'   \SS
 j5       rSrg)NodesConnectedi  z-
Notifies that two AudioNodes are connected.
r	   r   	source_iddestination_idtyping.Optional[float]source_output_indexdestination_input_indexc           
         U " [         R                  US   5      [         R                  US   5      [         R                  US   5      SU;   a  [        US   5      OS SU;   a  [        US   5      S9$ S S9$ Nr   sourceIddestinationIdsourceOutputIndexdestinationInputIndex)r   r  r  r  r  r	   r   r   r   s     r   r   NodesConnected.from_json      $..tK/@A#--d:.>?(2243HIDW[_D_d+>&? @eiLcgkLkE$/F*G$H
 	

 rv
 	
r   r   N)r   r   r%   r  r   r   r   r   r  r    9     !!//33
 
r   r  zWebAudio.nodesDisconnectedc                  `    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S	'   \SS
 j5       rSrg)NodesDisconnectedi  z
Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.
r	   r   r  r  r  r  r  c           
         U " [         R                  US   5      [         R                  US   5      [         R                  US   5      SU;   a  [        US   5      OS SU;   a  [        US   5      S9$ S S9$ r  r  r   s     r   r   NodesDisconnected.from_json)  r  r   r   N)r   r   r%   r!  r   r   r   r   r!  r!    r  r   r!  zWebAudio.nodeParamConnectedc                  V    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   \SS	 j5       rS
rg)NodeParamConnectedi4  z;
Notifies that an AudioNode is connected to an AudioParam.
r	   r   r  r  r  r  c           	         U " [         R                  US   5      [         R                  US   5      [         R                  US   5      SU;   a  [        US   5      S9$ S S9$ Nr   r  r  r  )r   r  r  r  r  r   s     r   r   NodeParamConnected.from_json?  o    $..tK/@A#--d:.>?(2243HIDW[_D_d+>&? @	
 	
 fj	
 	
r   r   N)r   r   r%   r%  r   r   r   r   r%  r%  4  3     !!//
 
r   r%  zWebAudio.nodeParamDisconnectedc                  V    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   \SS	 j5       rS
rg)NodeParamDisconnectediI  z>
Notifies that an AudioNode is disconnected to an AudioParam.
r	   r   r  r  r  r  c           	         U " [         R                  US   5      [         R                  US   5      [         R                  US   5      SU;   a  [        US   5      S9$ S S9$ r'  r  r   s     r   r   NodeParamDisconnected.from_jsonT  r)  r   r   N)r   r   r%   r,  r   r   r   r   r,  r,  I  r*  r   r,  )r%   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r   r	   r%   z?typing.Generator[T_JSON_DICT, T_JSON_DICT, ContextRealtimeData])(
__future__r   utilr   r   dataclassesr   enumtypingr&   r	   Enumr2   r@   rM   rV   rb   rm   rv   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r!  r%  r,  r   r   r   <module>r5     s%   # * !  >C >$)) 499  9s 9tyy  DII : :TYY  !
 !
 !
H +
 +
 +
\ 
 
 
, +
 +
 +
\ +
 +
 +
\?!?	F?& &'


 

  (

 ./


 

  0

 &'


 

  (

 ,-


 

  .

 45

 
  6
 ()


 

  *

 01

 
  2
 )*


 

  +

 12

 
  3
" &'

 
  (
* )*

 
  +
* *+

 
  ,
& -.

 
  /
r   