+
    QiU c                  s8   R t ^ RIHt RtRtRtRtRt^ RIH	t	 ^ RI
t
]
P                  ! R	R
4       ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI H!t! ^ RI"H#t# ^ RI$H%t% ^ RI&H't' ^ R I(H)t) ^ R!I*H+t+ ^ R"I,H-t- ^ R#I.H/t/ ^ R$I0H1t1 ^R%I2H3t3 ^R&I4H5t5 ^R'I6H7t7 ^R(I8H9t9 ]	'       d   ]
P                  ! R)R*4       ^ R+IH:t:  ! R, R-]Pv                  4      t;R# ).?Provides support for accessing user-agent-agnostic web-content.)annotationsz$Id$z
$Revision$z$Date$znCopyright (c) 2005-2009 Sun Microsystems Inc.Copyright (c) 2010 Orca Team.Copyright (c) 2014-2025 Igalia, S.L.ZLGPL)TYPE_CHECKINGNGtkz3.0)r   )braille)caret_navigator)cmdnames)keybindings)debug)focus_manager)	guilabels)input_event)input_event_manager)label_inference)liveregions)messages)settings)settings_manager)speech)default)AXComponent)
AXDocument)AXEventSynthesizer)AXObject)AXTable)AXText)AXUtilities)TextEventReason)NavigationMode)	BookmarksBrailleGeneratorSpeechGenerator	UtilitiesAtspiz2.0)r$   c                  sR  a  ] tR t^Vt$ RtR]R&   R]R&   R]R&   R]R	&   R
 V 3R lltR V 3R lltR V 3R lltR R lt	R V 3R llt
R R ltR R ltR R ltR R ltR R ltR R ltR  R! ltR" R# ltR$ R% ltR& R' ltR( R) ltR* R+ ltR, R- ltR{R. R/ lltR0 V 3R1 lltR2 V 3R3 lltR{R4 V 3R5 llltR6 V 3R7 lltR8 V 3R9 lltR: V 3R; lltR|R< V 3R= llltR|R> V 3R? lllt R}R@ RA llt!R}RB RC llt"R~RD RE llt#RRF RG llt$RH RI lt%RJ RK lt&RL RM lt'RN RO lt(RP RQ lt)RR RS lt*RT RU lt+RV RW lt,RX RY lt-RZ R[ lt.R\ R] lt/R^ R_ lt0R` Ra lt1Rb Rc lt2Rd Re lt3Rf Rg lt4Rh Ri lt5Rj Rk lt6Rl Rm lt7Rn Ro lt8Rp Rq lt9Rr Rs lt:Rt Ru lt;Rv Rw lt<Rx Ry lt=Rzt>V ;t?# )Scriptr    r#   	utilitieszcaret_navigator.CaretNavigatorr   liveregions.LiveRegionManagerlive_region_managerr   	bookmarksc                    V ^8  d   QhRRRR/# )   appAtspi.AccessiblereturnNone Zformat   "</usr/lib/python3.14/site-packages/orca/scripts/web/script.py__annotate__Script.__annotate___   s     "F "F, "F "F    c                	s  < \         SV `  V4       \        P                  V n        R V n        RV n        RV n        RV n        RV n	        RV n
        RV n        \        P                  ! 4       P                  R4      f&   \        P                  ! 4       P                  RR 4       \        P                  ! 4       P                  R4      f&   \        P                  ! 4       P                  RR 4       RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n         R# )TFNsayAllOnLoadpageSummaryOnLoadN)!super__init__r   DOCUMENT_default_sn_mode!_default_caret_navigation_enabled_loading_content_made_find_announcement_last_mouse_button_context_in_focus_mode_focus_mode_is_sticky_browse_mode_is_stickyr   get_managerget_settingset_setting _changed_lines_only_check_button&_control_caret_navigation_check_button_minimum_find_length_adjustment_minimum_find_length_label _minimum_find_length_spin_button"_page_summary_on_load_check_button_say_all_on_load_check_button_skip_blank_cells_check_button$_speak_cell_coordinates_check_button _speak_cell_headers_check_button_speak_cell_span_check_button'_speak_results_during_find_check_button#_structural_navigation_check_button(_auto_focus_mode_struct_nav_check_button'_auto_focus_mode_caret_nav_check_button(_auto_focus_mode_native_nav_check_button_layout_mode_check_button)selfr,   	__class__   &&r3   r<   ZScript.__init___   sF    . 7 77;. %',$*2'#%*"&+#'')55nEM((*66~tL'')556IJR((*667JDQHL-NR3FJ,<@'GK-JN/EI*FJ+LP1HL-EI*OS4KO0PT5OS4PT5AE&r6   c                   V ^8  d   QhRR/# r+   r.   r/   r0   r1   r2   r3   r4   r5      s      $ r6   c                sr  < RV P                   .p\        P                  ! \        P                  VR4       \        P
                  ! 4       P                  4       p\        P                  ! V4      V P                   8H  pV P                  P                  V4      pT;'       d    T'       * pRV 2pV P                  4       P                  WV4       V P                  4       P                  WV4       V P                  P                  WV4       V P                  4       P                  WV4       \         SV `E  4        R# )z%Called when this script is activated.zWEB: Activating script forTz8script activation, not in document content in this app: N)r,   r   print_tokens
LEVEL_INFOr	   rF   get_locus_of_focusr   Zget_applicationr&   in_document_contentget_caret_navigatorsuspend_commandsget_structural_navigatorr(   get_table_navigatorr;   activate)rZ   tokensfocusZin_appZin_docZsuspendreasonr[   s   &      r3   rg   ZScript.activate   s     /95++VT:))+>>@,,U3txx?33E:((&)KG9U  "33D6J%%'88O  11$H  "33D6Jr6   c               r]   r^   r0   r1   r2   r3   r4   r5      s      D r6   c                s  < RV n         RV n        RV n        V P                  P	                  4        RpV P                  4       P                  V RV4       V P                  4       P                  V RV4       V P                  P                  V RV4       V P                  4       P                  V RV4       \        SV `-  4        R# )z'Called when this script is deactivated.FNzscript deactivationr9   )r@   rA   rB   r&   clear_cached_objectsrc   rd   re   r(   rf   r;   
deactivate)rZ   rj   r[   s   & r3   rl   ZScript.deactivate   s     !&',$*2'++-&  "33D%H%%'88ufM  11$vF  "33D%Hr6   c               r]   )r+   r.   zkeybindings.KeyBindingsr0   r1   r2   r3   r4   r5      s     + +&= +r6   c           	     s   \         P                  ! 4       p\        P                  ! 4       P	                  R4      pV\
        P                  8H  pV P                  P                  RVR7      pVP                   F  pVP                  V4       K  	  VP                  \         P                  ! R\         P                  \         P                  V P                  R,          4      4       VP                  \         P                  ! R\         P                  \         P                  V P                  R,          ^4      4       VP                  \         P                  ! R\         P                  \         P                  V P                  R,          ^4      4       VP                  \         P                  ! R\         P                  \         P                  V P                  R	,          4      4       V# )
z=Returns the application-specific keybindings for this script.ZkeyboardLayoutT)refresh
is_desktopZatogglePresentationModeHandlerenableStickyFocusModeHandlerenableStickyBrowseModeHandler toggleLayoutModeHandler)r   ZKeyBindingsr   rF   rG   r   ZGENERAL_KEYBOARD_LAYOUT_DESKTOPr(   Zget_bindingskey_bindingsaddZ
KeyBindingZDEFAULT_MODIFIER_MASKZORCA_MODIFIER_MASKinput_event_handlersZNO_MODIFIER_MASK)rZ   rt   Zlayoutrn   Zlive_region_bindingsZkey_bindings   &     r3   get_app_key_bindingsZScript.get_app_key_bindings   s    #..0!--/;;<LMxGGG
#77DDZ  E  1/<<K[) = 	""11..))*IJ	L	M 	""11..))*HI	 	""11..))*IJ	 	""11,,))*CD	F	G r6   c               r]   r^   r0   r1   r2   r3   r4   r5      s     $- $-D $-r6   c                s  < \         SV `  4        V P                  P                  V P                  P                  R4      4       \        P                  ! \        P                  \        P                  R4      V P                  R&   \        P                  ! \        P                  \        P                  R4      V P                  R&   \        P                  ! \        P                  \        P                  4      V P                  R&   \        P                  ! \        P                   \        P"                  4      V P                  R&   \        P                  ! \        P$                  \        P&                  4      V P                  R&   \        P                  ! \        P(                  \        P*                  4      V P                  R&   R	# )
z1Defines the input event handlers for this script.TFZpanBrailleLeftHandlerZpanBrailleRightHandlerro   rp   rq   rs   N)r;   setup_input_event_handlersrv   Zupdater(   Zget_handlersr   ZInputEventHandlerr%   pan_braille_leftr   ZPAN_BRAILLE_LEFTpan_braille_rightZPAN_BRAILLE_RIGHTtoggle_presentation_modeZTOGGLE_PRESENTATION_MODEenable_sticky_focus_modeZSET_FOCUS_MODE_STICKYenable_sticky_browse_modeZSET_BROWSE_MODE_STICKYtoggle_layout_modeZTOGGLE_LAYOUT_MODE)rZ   r[      &r3   rx   Z!Script.setup_input_event_handlers   sm    	*,!!(()A)A)N)Nt)TU ))'')) 	!!"9: ))((** 	!!":; ))//113 	!!"AB ))//..0 	!!"@A ))00//1 	!!"AB ))))++- 	!!";<r6   c               r]   )r+   r.   r   r0   r1   r2   r3   r4   r5      s     " "y "r6   c                sv     V P                   #   \         d     \        T 4      T n         T P                   u # i ; i)z.Returns the "bookmarks" class for this script.)r)   ZAttributeErrorr   rZ      &r3   get_bookmarksZScript.get_bookmarks   s5    	">>! 	"&t_DN>>!	"s    '88c               r]   )r+   r.   r   r0   r1   r2   r3   r4   r5      s     & &'7 &r6   c                    \        V 4      # )z.Returns the braille generator for this script.r   r   r   r3   get_braille_generatorZScript.get_braille_generator   s      %%r6   c               r]   )r+   r.   z%label_inference.LabelInference | Noner0   r1   r2   r3   r4   r5     s     4 4%J 4r6   c                .    \         P                  ! V 4      # )z:Returns the label inference functionality for this script.)r   ZLabelInferencer   r   r3   get_label_inferenceZScript.get_label_inference  s     --d33r6   c               r]   )r+   r.   r'   r0   r1   r2   r3   r4   r5     s     3 3)F 3r6   c                r   )z0Returns the live region support for this script.)r   ZLiveRegionManagerr   r   r3   get_live_region_managerZScript.get_live_region_manager  s     ,,T22r6   c               r]   )r+   r.   r!   r0   r1   r2   r3   r4   r5     s     % %o %r6   c                r   )z-Returns the speech generator for this script.r    r   r   r3   get_speech_generatorZScript.get_speech_generator  s     t$$r6   c               r]   )r+   r.   r#   r0   r1   r2   r3   r4   r5     s      y r6   c                r   )z&Returns the utilities for this script.r"   r   r   r3   get_utilitiesZScript.get_utilities  s     r6   c               r]   )r+   r.   zGtk.Gridr0   r1   r2   r3   r4   r5     s     ^ ^ ^r6   c                s"   \         P                  ! 4       pVP                  ^4       \         P                  ! 4       pVP	                  V^ ^ ^^4       \         P
                  ! R\        P                   R2R7      pVP                  R4       VP                  V4       \         P                  P                  RR^^4      pVP                  ^ ^ ^^ 4       VP                  V4       \         P                  ! 4       pVP                  V4       \        P                  pV P                  4       P!                  4       p\         P"                  P%                  V4      V n        V P&                  P)                  V4       VP	                  V P&                  ^ ^ ^^4       \        P*                  pV P                  4       P-                  4       p\         P"                  P%                  V4      V n        V P.                  P)                  V4       VP	                  V P.                  ^ ^^^4       \        P0                  pV P3                  4       P!                  4       p\         P"                  P%                  V4      V n        V P4                  P)                  V4       VP	                  V P4                  ^ ^^^4       \        P6                  pV P3                  4       P-                  4       p\         P"                  P%                  V4      V n        V P8                  P)                  V4       VP	                  V P8                  ^ ^^^4       \        P:                  p\<        P>                  ! 4       PA                  R4      p\         P"                  P%                  V4      V n!        V PB                  P)                  V4       VP	                  V PB                  ^ ^^^4       \        PD                  p\<        P>                  ! 4       PA                  R4      p\         P"                  P%                  V4      V n#        V PF                  P)                  V4       VP	                  V PF                  ^ ^^^4       \        PH                  p\<        P>                  ! 4       PA                  R4      p\         P"                  P%                  V4      V n%        V PJ                  P)                  V4       VP	                  V PJ                  ^ ^^^4       \        PL                  p\<        P>                  ! 4       PA                  R	4      p\         P"                  P%                  V4      V n'        V PN                  P)                  V4       VP	                  V PN                  ^ ^^^4       \         P                  ! 4       pVP	                  V^ ^^^4       \         P
                  ! R\        PP                   R2R7      pVP                  R4       VP                  V4       \         P                  P                  RR^^4      pVP                  ^ ^ ^^ 4       VP                  V4       \         P                  ! 4       p	VP                  V	4       \        PR                  p\<        P>                  ! 4       PA                  R
4      p\         P"                  P%                  V4      V n*        V PT                  P)                  V4       V	P	                  V PT                  ^ ^ ^^4       \        PV                  p\<        P>                  ! 4       PA                  R4      p\         P"                  P%                  V4      V n,        V PX                  P)                  V4       V	P	                  V PX                  ^ ^^^4       \        PZ                  p\<        P>                  ! 4       PA                  R4      p\         P"                  P%                  V4      V n.        V P\                  P)                  V4       V	P	                  V P\                  ^ ^^^4       \        P^                  pV Pa                  4       Pc                  4       p\         P"                  P%                  V4      V n2        V Pd                  P)                  V4       V	P	                  V Pd                  ^ ^^^4       \         P                  ! 4       p
VP	                  V
^ ^^^4       \         P
                  ! R\        Pf                   R2R7      pVP                  R4       V
P                  V4       \         P                  P                  RR^^4      pVP                  ^ ^ ^^ 4       V
P                  V4       \         P                  ! 4       pVP                  V4       \<        P>                  ! 4       PA                  R4      p\        Ph                  pV\j        Pl                  8g  p\         P"                  P%                  V4      V n7        V Pn                  P)                  V4       VP	                  V Pn                  ^ ^ ^^4       \        Pp                  pV\j        Pr                  8H  p\         P"                  P%                  V4      V n:        V Pt                  P)                  V4       VP	                  V Pt                  ^ ^^^4       \         P                  ! 4       pVP	                  V^ ^^^4       \         P
                  ! \        Pv                  R7      V n<        V Px                  P{                  ^ R4       VP	                  V Px                  ^ ^ ^^4       \         P|                  ! \<        P>                  ! 4       PA                  R4      ^ ^^4      V n?        \         P                  ! 4       V nA        V P                  P                  V P~                  4       VP	                  V P                  ^^ ^^4       V Px                  P                  V P                  4       VP                  4        V# )z;Return a GtkGrid containing app-unique configuration items.z<b>z</b>)labelTg      ?nativeNavTriggersFocusModer7   r8   
layoutModespeakCellCoordinatesspeakCellSpanspeakCellHeadersfindResultsVerbosityfindResultsMinimumLength)Er   ZGridZset_border_widthZFrameZattachZLabelr
   ZPAGE_NAVIGATIONZset_use_markupZset_label_widgetZ	AlignmentZnewZset_paddingru   ZUSE_CARET_NAVIGATIONrc   Zget_is_enabledZCheckButtonZnew_with_mnemonicrJ   Z
set_activeZAUTO_FOCUS_MODE_CARET_NAVZget_triggers_focus_moderW   ZUSE_STRUCTURAL_NAVIGATIONre   rU   ZAUTO_FOCUS_MODE_STRUCT_NAVrV   ZAUTO_FOCUS_MODE_NATIVE_NAVr   rF   rG   rX   ZREAD_PAGE_UPON_LOADrO   ZPAGE_SUMMARY_UPON_LOADrN   ZCONTENT_LAYOUT_MODErY   ZTABLE_NAVIGATIONZTABLE_SPEAK_CELL_COORDINATESrQ   ZTABLE_SPEAK_CELL_SPANSrS   ZTABLE_ANNOUNCE_CELL_HEADERrR   ZTABLE_SKIP_BLANK_CELLSrf   Zget_skip_blank_cellsrP   ZFIND_OPTIONSZFIND_SPEAK_RESULTSr   FIND_SPEAK_NONErT   ZFIND_ONLY_SPEAK_CHANGED_LINESFIND_SPEAK_IF_LINE_CHANGEDrI   ZFIND_MINIMUM_MATCH_LENGTHrL   Zset_alignmentZ
AdjustmentrK   Z
SpinButtonrM   Zset_adjustmentZset_mnemonic_widgetZshow_all)rZ   ZgridZgeneral_framer   Zgeneral_alignmentZgeneral_gridZvalueZtable_frameZtable_alignmentZ
table_gridZ
find_frameZfind_alignmentZ	find_grid	verbosityZhgrids   &              r3   get_app_preferences_guiZScript.get_app_preferences_gui  s>	    xxzb!		M1aA.		#i&?&?%@ EFT"&&u-MM--c31=%%aB2+,xxzl+..((*99;OO--e4 	333>>uEDGGAqRST33((*BBD7:7X7XY^7_444??FDHH!QPQSTU33--/>>@OO--e4 	000;;EBDDDaAqQ44--/GGI8;8Y8YZ_8`555@@GDII1aQRTUV44 ,,.::;WX8;8Y8YZ_8`555@@GDII1aQRTUV-- ,,.::>J-0__-N-Nu-U***55e<D>>1aK00 ,,.::;NO25//2S2STY2Z///::5ADCCQ1aP-- ,,.::<H),)J)J5)Q&&&11%8D::Aq!QGiikKAq!,		#i&@&@%A FGT"$$U+--++Ca;##Aq"a0(XXZ
J'66 ,,.::;QROO--e4 	111<<UC$CCQ1aP00 ,,.::?KOO--e4 	***55e<$<<aAqI44 ,,.::;MNOO--e4 	---88?$??Aq!L00((*??AOO--e4 	+++66u=$==q!QJYY[
J1a+		#i&<&<%=T BCT"##E***3Q:""1aQ/~&HHJ	9%$002>>?UV	,,X555OO--e4 	444??FEEq!QPQR77X@@@OO--e4 	---88?>>1aK
1a+ iiiAAB 	'''55a=T44aAqA NN+779EE*,-.A7 	, 140@---<<00	2T::Aq!QG'';;11	3 	r6   c               r]   )r+   r.   zdict[str, bool | int]r0   r1   r2   r3   r4   r5     s     6
 6
*? 6
r6   c                s   V P                   P                  4       '       g   \        P                  pMAV P                  P                  4       '       d   \        P
                  pM\        P                  pRVRV P                  P                  4       RV P                  P                  4       RV P                  P                  4       RV P                  P                  4       RV P                  P                  4       RV P                  P                  4       RV P                  P                  4       R	V P                  P                  4       R
V P                   P                  4       RV P"                  P                  4       RV P$                  P                  4       RV P&                  P                  4       RV P(                  P                  4       /# )z7Returns a dictionary with the app-specific preferences.r   r   r7   r8   ZstructuralNavigationEnabledZstructNavTriggersFocusModeZcaretNavigationEnabledZcaretNavTriggersFocusModer   r   r   r   r   ZskipBlankCells)rT   Z
get_activer   r   rI   r   ZFIND_SPEAK_ALLrM   Z	get_valuerO   rN   rU   rV   rJ   rW   rX   rQ   rY   rS   rR   rP   )rZ   r   s   & r3   get_preferences_from_guiZScript.get_preferences_from_gui  sq   & ;;FFHH 00I22==?? ;;I //I #I&55??A22==?77BBD)88CCE(==HHJ$;;FFH'<<GGI(==HHJ"99DDF..99;22==?55@@B33>>@7
 	
r6   c               $    V ^8  d   QhRRRRRR/# )r+   objr-   offsetintr.   r/   r0   r1   r2   r3   r4   r5     s"     $, $,)9 $,3 $,4 $,r6   c                s   V P                   P                  V4      pV'       g   R# \        P                  ! V4      pV^ 8  d   R# \	        W$4      pV P                   P                  V4      pV P                   P                  WVR7       \        P                  ! V4      pWd,
          \        P                  ! 4       P                  R4      8  d   R# \        P                  ! 4       P                  R4      pV\        P                  8X  d   R# V P                  '       d;   V\        P                  8X  d&   V P                   P                  WQV34      '       d   R# V P                   P!                  W4      pV P#                  V4       V P%                  V4       V P                   P'                  4       p	V	'       d   V P)                  V	4       RV n        R# )zAUpdates the context and presents the find results if appropriate.Ndocumentr   r   T)r&   get_document_for_objectr   Zget_selection_start_offsetZmaxget_caret_contextset_caret_contextZget_selection_end_offsetr   rF   rG   r   r   rA   r   Zcontexts_are_on_same_lineget_line_contents_at_offsetspeak_contentsupdate_brailleZget_find_results_countpresent_message)
rZ   r   r   r   startZcontextZendr   contentsZresults_count
   &&&       r3   _present_find_resultsZScript._present_find_results  s\    >>99#>11#619V#..228<((x(H--c2;)557CCD^__$002>>?UV	000'''H???~~77vOO>>==cJH%C ==?  /'+$r6   c               r]   r+   r.   boolr0   r1   r2   r3   r4   r5     s     H H Hr6   c                sJ    \         P                  ! 4       P                  R4      # )z%Returns True if we're in layout mode.r   )r   rF   rG   r   r   r3   in_layout_modeZScript.in_layout_mode  s      ++-99,GGr6   c               r]   r   r0   r1   r2   r3   r4   r5     s     # #t #r6   c                    V P                   # )z$Returns True if we're in focus mode.)rC   r   r   r3   in_focus_modeZScript.in_focus_mode  s     """r6   c               r]   r   r0   r1   r2   r3   r4   r5     s     * *d *r6   c                r   )z-Returns True if we're in 'sticky' focus mode.)rD   r   r   r3   focus_mode_is_stickyZScript.focus_mode_is_sticky  s     )))r6   c               r]   r   r0   r1   r2   r3   r4   r5   #  s     + +t +r6   c                r   )z.Returns True if we're in 'sticky' browse mode.)rE   r   r   r3   browse_mode_is_stickyZScript.browse_mode_is_sticky#  s     ***r6   c               r   )r+   r   r-   prev_objAtspi.Accessible | Noner.   r   r0   r1   r2   r3   r4   r5   (  s-     P PP *P 
	Pr6   c                s	   V P                   '       d+   Rp\        P                  ! \        P                  VR4       R# V P                  '       d+   Rp\        P                  ! \        P                  VR4       R# \
        P                  ! 4       P                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# V P                  4       P                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# V P                  4       P                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# V'       d   \        P                  ! V4      '       d   RpV P                  4       P                  4       '       dR   \        P                  ! V\         P"                  4      f+   R	p\        P                  ! \        P                  VR4       R# \$        P                  ! 4       P'                  R
4      '       g   V P                  4       P                  4       pV P                  4       P                  4       pV'       g=   V'       g5   Rp\        P                  ! \        P                  VR4       V P(                  # V P*                  P-                  V4      '       d.   RVR.p\        P.                  ! \        P                  VR4       R# \         P0                  ! V4      ;'       g    \         P2                  ! V4      pV P(                  '       d^   V'       dV   \4        P                  ! 4       P7                  4       '       d-   RV.p\        P.                  ! \        P                  VR4       R# \        P8                  ! V\         P:                  4      p\        P8                  ! V\         P:                  4      p	V'       g3   V	'       d+   Rp\        P                  ! \        P                  VR4       R# V P(                  '       d   V	'       dx   V P*                  P=                  V4      '       d-   RV.p\        P.                  ! \        P                  VR4       R# Rp\        P                  ! \        P                  VR4       R# RVR.p\        P.                  ! \        P                  VR4       R# )z0Returns True if we should use focus mode in obj.z2WEB: Using focus mode because focus mode is stickyTz7WEB: Not using focus mode because browse mode is stickyFz2WEB: Not using focus mode because we're in SayAll.z4WEB: Not using focus mode due to struct nav settingszCWEB: Not using focus mode because last command was table navigationNz3WEB: Not using focus mode due to caret nav settingsr   z>WEB: Not changing focus/browse mode due to native nav settingszWEB: Using focus mode becausezis a focus mode widgetz5WEB: Staying in focus mode due to arrowing in role ofz?WEB: Using focus mode because we just entered a web applicationz/WEB: Forcing browse mode for web app descendantzAWEB: Staying in focus mode because we're inside a web applicationzWEB: Not using focus mode forzdue to lack of cause)rD   r   print_messager`   rE   r	   rF   
in_say_allre   Z last_command_prevents_focus_moderf   'last_input_event_was_navigation_commandr   is_deadrc   find_ancestor_inclusiver   is_tool_tipr   rG   rC   r&   is_focus_mode_widgetr_   is_linkZis_radio_buttonr   Zlast_event_was_unmodified_arrowfind_ancestoris_embeddedZ(force_browse_mode_for_web_app_descendant)
rZ   r   r   msgZ
struct_navZ	caret_navrh   Zdo_not_toggleZ
was_in_appZ	is_in_appr   r3   use_focus_modeZScript.use_focus_mode(  su    %%%FC 0 0#t<&&&KC 0 0#t<$$&1133FC 0 0#t<((*KKMMHC 0 0#t<##%MMOOWC 0 0#t<((22H##%FFHH//+:Q:QRZGC 0 0#t<++-99:VWW668``bJ002ZZ\I)V##E$4$4c4@***>>..s335s<TUFu//>#++C0TTK4O4OPS4T="..0PPRRMsSFu//>++Hk6M6MN
**30G0GH	iSC 0 0#t<9~~FFsKKKSQ""5#3#3VTBUC 0 0#t<138NO5++VT:r6   c               r*   r+   r   r-   r.   r/   r0   r1   r2   r3   r4   r5   z  s     +? +?!1 +?d +?r6   c                s~  < RV.p\         P                  ! \         P                  VR4       V P                  P	                  V4      '       g:   Rp\         P
                  ! \         P                  VR4       \        SV `  V4       R# V P                  P                  V4      pV P                  P                  VR7      w  rRW.p\         P                  ! \         P                  VR4       V'       g   R# RpV P                  P                  W4      '       dQ   \        P                  ! V4      '       d5   \        P                  ! W4      ^ ,          pVR8X  d   RpWV^,           V3.pMV P                  P                  W4      pV'       g   R# V^ ,          w  rrV^ 8  dU   V
R	8X  dN   \         P"                  ! 4       P%                  R
4      '       d$   V P'                  \(        P*                  RR7       R# V
'       d$   V P-                  W4       V P/                  V
4       MV P1                  V4       RV P2                  R&   R# )z3Speaks the character at the current caret position.zWEB: Say character forT'WEB: Object is not in document content.Nr   z4WEB: Adjusted object and offset for say character to   ￼rr   Z
ZspeakBlankLinesF	interruptcharlastTextUnitSpoken)r   r_   r`   r&   rb   r   r;   say_character!get_top_level_document_for_objectr   Ztreat_as_end_of_liner   Zsupports_textr   get_character_at_offsetZ get_character_contents_at_offsetr   rF   rG   Zspeak_messager   ZBLANKspeak_misspelled_indicatorZspeak_characterr   point_of_reference)rZ   r   rh   r   r   r   r   r   r   _endZstringr[      &&         r3   r   ZScript.say_characterz  s    +C05++VT:~~11#66;C 0 0#t<G!#&>>CCCHnn666IH#V5++VT:HL>>..s;;@V@VWZ@[@[11#>qADxfqj$78H~~FFsSH#+A; D194++-99:KLL""8>>U"C++C7  ()8> 45r6   c               r*   r   r0   r1   r2   r3   r4   r5     s     ? ?, ? ?r6   c                s  < RV.p\         P                  ! \         P                  VR4       V P                  P	                  V4      '       g:   Rp\         P
                  ! \         P                  VR4       \        SV `  V4       R# V P                  P                  V4      pV P                  P                  VR7      w  r\        P                  ! 4       P                  4       '       d
   V^,          pRW.p\         P                  ! \         P                  VR4       V P                  P                  WRR7      pV^ ,          w  rxrV P                  Wx4       V P                  V\         P"                  ! V4      R7       R	V P$                  R
&   R# )z.Speaks the word at the current caret position.zWEB: Say word forTr   Nr   z/WEB: Adjusted object and offset for say word toZ	use_cache)ZalreadyFocusedZwordr   )r   r_   r`   r&   rb   r   r;   say_wordr   r   r   rF   Zlast_event_was_rightZget_word_contents_at_offsetr   r   r   is_text_inputr   )rZ   r   rh   r   r   r   Zword_contentsZtext_objstart_offsetZ_end_offsetZ_wordr[   r   r3   r   ZScript.say_word  sB    &s+5++VT:~~11#66;C 0 0#t<GS!>>CCCHnn666I**,AACCaKFCSQ5++VT:BB3Z^B_5B15E2''? 	M+:S:ST\:]^8> 45r6   c               r   )r+   r   r-   r   z
int | Noner.   r/   r0   r1   r2   r3   r4   r5     s"     '? '?, '?j '?D '?r6   c                s  < RV.p\         P                  ! \         P                  VR4       V P                  P	                  V4      '       g:   Rp\         P
                  ! \         P                  VR4       \        S
V `  V4       R# \        P                  ! V4      '       d   R\        P                  ! V4      ^ ,          9  dh   Rp\         P
                  ! \         P                  VR4       V P                  '       g   V P                  P                  V^ 4       \        S
V `  V4       R# V P                  P                  V4      pV P                  P                  VR7      pVe   Vw  rxMRpVfH   V P                  P!                  V4      w  rRW.p\         P                  ! \         P                  VR4       V P                  P#                  WRR	7      p	V	'       dZ   V	^ ,          '       dK   V P                  '       g9   V P                  P                  V	^ ,          ^ ,          V	^ ,          ^,          4       V P%                  WR
7       RV P&                  R&   R# )z.Speaks the line at the current caret position.zWEB: Say line forTr   Nr   z-WEB: Object is editable and line has no EOCs.r   z/WEB: Adjusted object and offset for say line tor   )priorObjZliner   )r   r_   r`   r&   rb   r   r;   say_liner   is_editabler   Zget_line_at_offsetrC   set_caret_positionr   get_prior_contextr   r   r   r   )rZ   r   r   rh   r   r   prior_context	prior_obj_prior_offsetr   r[   s   &&&       r3   r   ZScript.say_line  s    &s+5++VT:~~11#66;C 0 0#t<GS!
 ""3''HF<U<UVY<Z[\<],]AC 0 0#t<&&&11#q9GS!>>CCCH88(8K$'4$I}I>..::8DKCGUFu//>>>==cUY=ZD,?,?,?NN--hqk!nhqk!nMH98> 45r6   c               r*   r   r0   r1   r2   r3   r4   r5     s     E. E."2 E.t E.r6   c                	s	  <aaa Sf   R # V P                   P                  S4      '       d   \        P                  ! S4      '       d   \        SV `  ! S3/ VB  R # \        P                  ! 4       P                  4       w  r4V\        P                  \        P                  39   d   \        SV `  ! S3/ VB  R # \        P                  ! S4      '       g   \        P                  ! S4      '       dB   V P                  '       g   V P                   P                  S^ 4       \        SV `  ! S3/ VB  R # VP                  R4      pV P!                  4       P#                  4       '       g|   V P%                  4       P#                  4       '       gX   V P'                  4       P#                  4       '       g4   VP                  R4      '       g   \(        P*                  ! S4      '       d'   V P                   P-                  4       pVe	   Vw  rWWRR&   V P                   P/                  S4      p\0        P2                  ! S4      o\0        P4                  ! S4      o\6        P8                  ! S^ R7       S'       d   \0        P2                  ! S4      S8w  g   \0        P:                  ! S4      ^ 8  d}   RSR.p	\<        P>                  ! \<        P@                  V	R4       \0        PB                  ! VVVV3R l4      p
V
'       d-   V
oRS.p	\<        P>                  ! \<        P@                  V	R4       \        PD                  ! S4      '       g   \        PF                  ! S4      '       dB   V P                  '       g   V P                   P                  S^ 4       \        SV `  ! S3/ VB  R # VP                  R	R
4      pRSRV.p	\<        P>                  ! \<        P@                  V	R4       VP                  R^ 4      pV P                   PI                  SVR
R7      pV'       dZ   V^ ,          '       dK   V P                  '       g9   V P                   P                  V^ ,          ^ ,          V^ ,          ^,          4       V PK                  V4       V PL                  ! V3/ VB  R # )Nr   ZincludeContext)r   zWEB:z&believed to be destroyed after scroll.Tc                sx   < \         P                  ! V 4      S8H  ;'       d    \         P                  ! S4      S8H  # N)r   get_nameget_role)xnamer   roles   &r3   <lambda>Z'Script.present_object.<locals>.<lambda>  s2    H$5$5a$8D$@$c$cXEVEVWZE[_cEc$cr6   z$WEB: Replacing destroyed object withr   FzWEB: Presenting objectz. Interrupt:r   r   )'r&   rb   r   is_documentr;   present_objectr	   rF   Z&get_active_mode_and_object_of_interestZOBJECT_NAVIGATORZMOUSE_REVIEWZis_status_baris_alertrC   r   getrc   r   re   rf   r   	get_tabler   r   r   r   r   r   Zscroll_to_centerZget_index_in_parentr   r_   r`   Zfind_descendantis_entryZis_list_itemget_object_contents_at_offsetdisplay_contentsr   )rZ   r   argsZmodeZ_objr   r   r   r   rh   Z	replicantr   r   r   r   r   r[   s   &f,           @@r3   r   ZScript.present_object  sm   ;~~11#66+:Q:QRU:V:VG"3/$/"..0WWY
M22M4N4NOOG"3/$/$$S))[-A-A#-F-F&&&11#q9G"3/$/HHZ(	##%MMOO++-UUWW&&(PPRRhh'((G,=,=c,B,B NN<<>M(+8(	#,Z  >>99#>  %  %++Ca@X&&s+t38T8TUX8Y\]8]c#KLFu//> 00ceI@#F""5#3#3VTB
 $$(@(@(E(E&&&11#q9G"3/$/HH[%0	*CK5++VT:
 (A&>>??VW\?]D,?,?,?NN--hqk!nhqk!nMh'H--r6   c               r*   r   r0   r1   r2   r3   r4   r5   2  s     4 42B 4t 4r6   c                s   < R\         P                  ! V4      9   d   V P                  V4       R# \        SV `  V4       R# )z@Try to reposition the cursor without having to do a full update.r   N)r   get_all_textr   r;   _update_braille_caret_position)rZ   r   r[   r\   r3   r   Z%Script._update_braille_caret_position2  s6     v**3//$.s3r6   c               r*   r   r0   r1   r2   r3   r4   r5   ;  s     2@ 2@"2 2@t 2@r6   c                s  < RW.p\         P                  ! \         P                  VRR4       \        P                  ! 4       P                  R4      '       gS   \        P                  ! 4       P                  R4      '       g)   \         P                  ! \         P                  RR4       R# V P                  '       dY   R\        P                  ! V4      9  d>   RV.p\         P                  ! \         P                  VR4       \        SV `,  ! V3/ VB  R# VP                  R	V P                  P                  V4      4      pV'       g>   R
V.p\         P                  ! \         P                  VR4       \        SV `,  ! V3/ VB  R# V P                  P                  V4      pV P!                  4       P#                  4       '       g   V P%                  4       P#                  4       '       g   V P'                  4       P#                  4       '       g   V'       g   \(        P*                  ! V4      '       gg   \,        P                  ! 4       P/                  4       '       g>   RV.p\         P                  ! \         P                  VR4       \        SV `,  ! V3/ VB  R# VP                  R4      pVf    V P                  P1                  VRR7      w  rV^ 8  dJ   V'       dB   V P                  P3                  V4      '       d!   \5        V\        P6                  ! V4      4      pV P                  P9                  W4      pV P;                  WtR7       R# )z5Updates the braille display to show the given object.zWEB: updating braille forTZenableBrailleZenableBrailleMonitorzBRAILLE: disabledNr   z#WEB: updating braille in focus modedocumentFramez-WEB: updating braille for non-document objectz3WEB: updating braille for unhandled navigation typer   Zget_replicantr   )r   r_   r`   r   rF   rG   r   rC   r   r   r;   r   r   r&   r   )is_content_editable_with_embedded_objectsrc   r   re   rf   r   Zis_plain_textr   last_event_was_caret_selectionr   treat_as_text_objectZminget_character_countr   r   )	rZ   r   r   rh   r   Zis_content_editabler   r   r[   s	   &&,     r3   r   ZScript.update_braille;  sz    .s95++VT4@++-99/JJ#//1==>TUU 0 02EtL863F3Fs3K#K;SAFu//>G"3/$/88OT^^-]-]^a-bcEsKFu//>G"3/$/"nnVVWZ['')QQSS002ZZ\\++-UUWW&++H55&224SSUUKSQFu//>G"3/$/ (#>..:: ; .KCA:-~~22377!;!;C!@AF>>==cJh?r6   c               r   r+   eventinput_event.InputEvent | None
pan_amountr   r.   r   r0   r1   r2   r3   r4   r5   o  (      ,  
	r6   c                  < V P                  4       P                  4       '       g7   V P                  P                  4       '       d   \        P
                  '       g   \        SV `  W4      # V P                  P                  4       pV'       g   R# V^ ,          w  rErgV P                  P                  WE4       V P                  V4       \        P                  ! ^ 4      '       d   K  \        P                  ! R4       R# )zPans braille to the left.FT)get_flat_review_presenter	is_activer&   rb   r   ZbeginningIsShowingr;   ry   Zget_previous_line_contentsr   r   ZpanRightrm   	rZ   r   r   r   r   r   r   Z_stringr[   	   &&&     r3   ry   ZScript.pan_braille_lefto  s     ))+5577..4466g>X>X>X7+E>>>><<>$,QK!D))#5C 
 q!!r6   c               r   r   r0   r1   r2   r3   r4   r5     r   r6   c                r   )zPans braille to the right.FT)r   r   r&   rb   r   ZendIsShowingr;   rz   Zget_next_line_contentsr   r   ZpanLeftrm   r   r   r3   rz   ZScript.pan_braille_right  s     ))+5577..4466g>R>R>R7,U??>>88:$,QK!D))#5C 
 ooa  r6   c               $    V ^8  d   QhRRRRRR/# r+   _eventr   force_messager   r.   r0   r1   r2   r3   r4   r5     (      -  
	r6   c                s   V P                   '       d	   V'       d    V P                  \        P                  4       RV n        RV n        RV n         RpV P                  4       P                  W P                  V4       V P                  4       P                  W P                  V4       V P                  P                  W P                  V4       V P                  4       P                  W P                  V4       R# )zEnables sticky browse mode.FTzenable sticky browse mode)rE   r   r   ZMODE_BROWSE_IS_STICKYrC   rD   rc   rd   re   r(   rf   rZ   r   r   rj      &&& r3   r}   Z Script.enable_sticky_browse_mode  s     ***m  !?!?@#%*"&*#,  "33D:M:MvV%%'88?R?RTZ[  11$8K8KVT  "33D:M:MvVr6   c               r   r   r0   r1   r2   r3   r4   r5     r   r6   c                s   V P                   '       d	   V'       d    V P                  \        P                  4       RV n        RV n         RV n        RpV P                  4       P                  W P                  V4       V P                  4       P                  W P                  V4       V P                  P                  W P                  V4       V P                  4       P                  W P                  V4       R# )zEnables sticky focus mode.TFzenable sticky focus mode)rD   r   r   MODE_FOCUS_IS_STICKYrC   rE   rc   rd   re   r(   rf   r   r   r3   r|   ZScript.enable_sticky_focus_mode  s     )))]  !>!>?"%)"&+#+  "33D:M:MvV%%'88?R?RTZ[  11$8K8KVT  "33D:M:MvVr6   c               r   )r+   r   r   notify_userr   r.   r0   r1   r2   r3   r4   r5     s(      -  
	r6   c                s@   \         P                  ! 4       P                  R4      '       * pV'       dH   V'       d!   V P                  \        P
                  4       MV P                  \        P                  4       \         P                  ! 4       P                  RV4       R# )zCSwitches between object mode and layout mode for line presentation.r   T)r   rF   rG   r   r   ZMODE_LAYOUTZMODE_OBJECTrH   )rZ   r   r  Zlayout_moder   r3   r~   ZScript.toggle_layout_mode  sj     +668DD\RR$$X%9%9:$$X%9%9:$$&22<Mr6   c               s(    V ^8  d   QhRRRRRRRR/# )r+   r   r   r   r   r  r   r.   r0   r1   r2   r3   r4   r5     s2     $ $,$ *$ 	$
 
$r6   c                sF   V P                   P                  V4      w  rEV P                  '       d   \        P                  ! V4      p\
        P                  ! V4      '       d   V P                   P                  VR4       ML\
        P                  ! V4      '       d1   V P                   P                  \        P                  ! V4      R4       V'       d2   V P                  '       g    V P                  \        P                  4       MV P                   P                  V4      '       g   V P                  4       P                  4       '       gQ   V P!                  4       P                  4       '       g-   V P#                  4       P                  4       '       g	   V'       d   \        P$                  ! V4       V'       d    V P                  \        P&                  4       V P                  '       * V n        RV n        RV n        RpV P                  4       P-                  W P                  V4       V P!                  4       P-                  W P                  V4       V P.                  P-                  W P                  V4       V P#                  4       P-                  W P                  V4       R# )z,Switches between browse mode and focus mode.Fztoggling focus/browse modeTr:   )r&   r   rC   r   
get_parentr   Zis_list_boxr   Zis_menur@   r   r   ZMODE_BROWSEZgrab_focus_when_setting_caretrc   r   re   rf   Z
grab_focusZ
MODE_FOCUSrD   rE   rd   r(   )rZ   r   r   r  r   _offsetZparentrj   s   &&&&    r3   r{   ZScript.toggle_presentation_mode  s    ~~77A((-F&&v..00<$$V,,001D1DV1LbQ4#8#8#8$$X%9%9:>>??DD,,.VVXX446^^``//1YY[[##C($$X%8%89"&"5"55%*"&+#-  "33D:M:MvV%%'88?R?RTZ[  11$8K8KVT  "33D:M:MvVr6   c               s(    V ^8  d   QhRRRRRRRR/# )r+   r   zAtspi.Event | None	old_focusr   	new_focusr.   r   r0   r1   r2   r3   r4   r5     s8     w w!w +w +	w
 
wr6   c                s   RVRV.p\         P                  ! \         P                  VR4       V'       d   \        P                  ! V4      '       g   R# V'       d   \        P
                  ! V4      '       d   R# V P                  P                  V4      pV'       g$   V P                  P                  V4      '       d   TpV P                  4       pVP                  4       pV'       Eg   Rp\         P                  ! \         P                  VR4       RV n        RV n        V P                  P                  V4      p	V'       g$   V P                  P                  V4      '       d   Tp	V'       d3   V	'       g+   Rp\         P                  ! \         P                  VR4       R# V'       dO   VP                  V 4      \        P                   8X  d+   Rp\         P                  ! \         P                  VR4       R# RV	.p\         P                  ! \         P                  VR4       R	p
V P#                  4       P%                  V RV
4       V P&                  P%                  V RV
4       V P                  4       P%                  V RV
4       V P)                  4       P%                  V RV
4       R# V P+                  4       P-                  4       '       d   V P+                  4       P/                  4        ^ pV P                  P1                  V4      '       gJ   V P                  P                  V4      '       dl   V\2        P4                  ! 4       P7                  4       8X  dD   V P                  P9                  V4      w  rV'       d   \        P                  ! V4      '       d   Yr\:        P<                  ! V4      '       dG   R
p\         P                  ! \         P                  VR4       V P                  P?                  V^ 4      w  r>V P                  PA                  V4      '       d?   \B        PD                  ! V4      p^ Tu;8:  d   \B        PF                  ! V4      8:  d   M MTpV P                  PI                  W;V4       V PK                  W5R7       Rp/ pV P#                  4       P                  4       pT;'       g    V P)                  4       P                  4       p\L        P4                  ! 4       pVPO                  4       ;'       d    V'       * pVVR&   VPQ                  4       '       do   V'       dg   VPR                  PU                  R4      '       dF   Rp\         P                  ! \         P                  VR4       V P                  PW                  W;4      pEMV P                  PY                  V4      '       d   V'       g   V'       g	   V'       d   \:        PZ                  ! V4      '       d   \        P\                  ! V4      '       gI   RVR.p\         P                  ! \         P                  VR4       V P                  PW                  W;4      pEMV P                  P_                  V4      '       dJ   RVR.p\         P                  ! \         P                  VR4       V P                  PW                  V^ 4      pEMj\L        P4                  ! 4       Pa                  4       '       d   \b        Pd                  ! V4      '       ge   \:        Pf                  ! V4      '       gI   RVR.p\         P                  ! \         P                  VR4       V P                  PW                  W;4      pEMV P                  Pi                  V4      '       dI   RVR.p\         P                  ! \         P                  VR4       V P                  PW                  W;4      pEMX\:        Pj                  ! V4      '       dJ   RVR.p\         P                  ! \         P                  VR4       V P                  Pm                  V^ 4      pEMV P                  Po                  W4      '       dT   RVPp                  R.p\         P                  ! \         P                  VR4       V P                  PW                  V^ 4      pEMV'       dp   VPR                  PU                  R4      '       dO   V P                  Ps                  V4      '       d.   RVR.p\         P                  ! \         P                  VR4       EMV'       da   \        P                  ! V4      '       gE   Rp\         P                  ! \         P                  VR4       V P                  PW                  W;4      pMV'       dn   V'       df   VPR                  PU                  R4      '       dE   Rp\         P                  ! \         P                  VR4       V P                  PW                  W;4      pM+RVR.p\         P                  ! \         P                  VR4       V'       d   \        P
                  ! V4      '       dk   Rp\         P                  ! \         P                  VR4       V Pu                  RR4      '       d+   R p\         P                  ! \         P                  VR4       R# V P                  Pw                  W#V4      '       d   V Py                  4        V'       d   V Pz                  ! V3/ VB  M3V P|                  P~                  ! V3/ VB p\        P                  ! V4       V P                  P                  V4      '       dG   V P                  '       g5   V P                  P                  V4      '       * pV P                  RV4       R# V P                  '       g[   V P                  '       gI   V P                  W24      V P                  8w  d)   \        P                  ! R!4      pV P                  VV4       V P                  P                  V4      '       g   V P                  '       d"   V P                  \        P                  4       R# VP                  V \        P                  4       R"p
V P#                  4       P%                  W P                  V
4       VP%                  W P                  V
4       V P&                  P%                  W P                  V
4       V P)                  4       P%                  W P                  V
4       R# )#zVHandles changes of focus of interest. Returns True if this script did all needed work.zWEB: Focus changing fromtoTz/WEB: Locus of focus changed to non-document objFzAWEB: Not refreshing grabs because we weren't in a document beforezEWEB: Not refreshing grabs: Last command was GUI structural navigationz.WEB: Refreshing grabs because we left documentz$locus of focus no longer in documentz5WEB: Event source has bogus role. Likely browser bug.r   Nr   zobject:text-caret-movedz8WEB: Last input event was mouse button. Generating line.zWEB: New focusz"content editable. Generating line.zis anchor. Generating line.z!was scrolled to. Generating line.z has math child. Generating line.zis heading. Generating object.zWEB: Sourcez'is same page fragment. Generating line.zobject:children-changed:removez2is recovery from removed child. Generating speech.zJWEB: Last input event was line nav; old_focus is invalid. Generating line.zobject:children-changedzIWEB: Last input event was line nav and children changed. Generating line.z)is not a special case. Generating speech.zWEB: New focus has since diedzobject:state-changed:focusedz7WEB: Have matching focused event. Not speaking contents	syntheticzlocus of focus now in document)Pr   r_   r`   r   is_validr   r&   r   r   re   r   r   rA   rC   Zget_moder   ZGUIrc   rd   r(   rf   r   r   Zquitin_find_containerr	   rF   Zget_active_windowr   r   Zis_unknown_or_redundantfirst_contextr   r   Zget_caret_offsetr   r   r   r   last_event_was_line_navigationZlast_event_was_mouse_buttonZtype
startswithr   r   Zis_table_cellr   	is_anchorlast_event_was_page_navigationr   r   Zis_feed_articleZis_focused_with_math_childZ
is_headingr   !caret_moved_to_same_page_fragmentsourcer   Z_get_queued_event*should_interrupt_for_locus_of_focus_changeinterrupt_presentationr   speech_generatorZgenerate_speechr   ZspeakZin_top_level_web_apprE   rb   r|   rD   r   r   
InputEventr{   r   r   r  Zset_moder=   )rZ   r   r  r  rh   r   Zsn_navigatorZlast_command_was_struct_navr   Zold_documentrj   Zcaret_offsetZcontext_objZcontext_offsetr  Ztext_offsetr   r   Zlast_command_was_caret_navmanagerZlast_command_was_line_navZ
utterancesZannouncedummy_events   &&&&                    r3   locus_of_focus_changedZScript.locus_of_focus_changed  s	    -iyI5++VT:X..y99)))44>>CCINDNN66yAA H446&2&Z&Z&\#xCC 0 0#t<+0D("'D>>KKIVL : :9 E E(Y##E$4$4c4@*|/D/DT/JnN`N`/`]##E$4$4c4@FUFu//>;F$$&77dFK$$55dD&I))+<<T4P$$&77dFK))+5577**,113>>++I66~~)))44 9 9 ; M M OO*...*J*J8*T'Kx00==*5<..y99IC 0 0#t<!%!=!=i!KI>>..y99 11)<KKH6#=#=i#HH*(((KI>$$&NNP 	#&A 'T 'T'')QQS 	$%113$+$J$J$L %/ %/.. 	" %Z..00U&&'@AALC 0 0#t<~~AA)ZH^^EEiPP*.2K--i88X=N=Ny=Y=Y&	3WXFu//>~~AA)ZH^^%%i00&	3PQFu//>~~AA)QOH ,,.MMOO&&y11 00;;&	3VWFu//>~~AA)ZH^^66yAA&	3UVFu//>~~AA)ZH##I..&	3STFu//>~~CCIqQH^^==eOO#U\\3\]Fu//>~~AA)QOHuzz,,-MNN44Y??&	JLFu//>&x/@/@/K/K^C 0 0#t<~~AA)ZH&5&&'@AA]C 0 0#t<~~AA)ZH&	3^_Fu//>)))441C 0 0#t<%%&DdKKO##E$4$4c4@>>DDY[`aa'')1D1..>>yQDQJLL$>>..y99$B]B]B]>>==iHHH))$9)))...""98D<O<OO%00=K))+x@~~11)<<)))$$X%B%BC!!$(?(?@5F$$&77>Q>QSYZ))$0C0CVL$$55d<O<OQWX$$&77>Q>QSYZr6   c               r*   r+   r   zAtspi.Eventr.   r   r0   r1   r2   r3   r4   r5     s      { t r6   c                s$   V P                   P                  VP                  4      '       g+   Rp\        P                  ! \        P
                  VR4       R# VP                  '       g+   Rp\        P                  ! \        P
                  VR4       R# \        P                  ! VP                  4      '       dY   Rp\        P                  ! \        P
                  VR4       \        P                  ! 4       P                  WP                  4       R# R# )z>Callback for object:state-changed:active accessibility events.,WEB: Event source is not in document contentTFz2WEB: Ignoring because event source is now inactive8WEB: Event handled: Setting locusOfFocus to event source)r&   rb   r  r   r   r`   detail1r   is_dialog_or_alertr	   rF   set_locus_of_focusrZ   r   r      && r3   on_active_changedZScript.on_active_changed  s     ~~11%,,??@C 0 0#t<}}}FC 0 0#t<))%,,77LC 0 0#t<%%'::5,,Or6   c               r*   r  r0   r1   r2   r3   r4   r5     s     b b[ bT br6   c                s2   \         P                  ! VP                  4      '       d+   Rp\        P                  ! \        P
                  VR4       R# \        P                  ! VP                  4      '       g+   Rp\        P                  ! \        P
                  VR4       R# \        P                  ! VP                  R4       VP                  '       d=   V P                  '       d+   Rp\        P                  ! \        P
                  VR4       R# V P                  P                  VP                  4      '       g+   Rp\        P                  ! \        P
                  VR4       R# V P                  P                  4       pV'       d;   W1P                  8w  d+   Rp\        P                  ! \        P
                  VR4       R# \        P                   ! 4       P#                  4       p\        P$                  ! VP                  4      '       gR   \&        P(                  ! WAP                  R4      '       g+   R	p\        P                  ! \        P
                  VR4       R# V P                  P+                  \&        P,                  ! VP                  4      4      '       d+   R
p\        P                  ! \        P
                  VR4       R# V P                  P/                  4       w  rV\&        P0                  ! V4      '       g   V P                  P3                  4        Rp\4        P                   ! 4       pVP7                  R4      '       d-   RpRp\        P                  ! \        P
                  VR4       EM\        P8                  ! VP                  4      '       gS   \        P:                  ! VP                  4      '       g-   RpRp\        P                  ! \        P
                  VR4       EM!\        P                  ! VP                  4      '       g,   RpRp\        P                  ! \        P
                  VR4       MVP                  '       g\   V P<                  '       dJ   \&        P0                  ! V4      '       d.   RpRV.p	\        P>                  ! \        P
                  V	R4       McVP7                  R4      \@        PB                  8w  d@   VP                  '       * pRVRV 2.p	\        P>                  ! \        P
                  V	R4       V'       Ed<   \        P                  ! VP                  4      PE                  R4      '       Ed   VP                  '       d!   V PG                  \H        PJ                  4       M\&        PL                  ! VP                  4      '       d   VP7                  R4      \@        PB                  8w  d"   \&        PL                  ! VP                  4      pM5\H        PN                  \&        PL                  ! VP                  4      ,          pV PG                  VRR7       MV PG                  \H        PP                  4       VP                  V n        VP                  '       d   R# V P                  PS                  4        \&        PT                  ! V4      '       d   Rp\        P                   ! 4       PW                  4       '       gh   V P                  P                  V4      '       gG   \        PX                  ! V4      '       d+   Rp\        P                  ! \        P
                  VR4       R# \4        P                   ! 4       P7                  R4      '       dv   V'       dn   RVP                  .p	\        P>                  ! \        P
                  V	R4       \        PZ                  ! VP                  4      p
V
'       d   V PG                  V
4       V P                  P/                  4       w  rV\        P\                  ! VP                  4      '       g   V P                  P_                  VP                  4      '       dz   RVR.p	\        P>                  ! \        P
                  V	R4       \        P                   ! 4       Pa                  W4       \b        Pd                  ! R4      pV Pg                  VR4       R# V Pi                  V4      V P<                  8w  d(   \b        Pd                  ! R4      pV Pk                  V4       V'       g+   Rp\        P                  ! \        P
                  VR4       R# V P                  Pm                  V4      '       dQ   RV.p	\        P>                  ! \        P
                  V	R4       \        P                   ! 4       Pa                  W4       R# V P                  Po                  V4      '       dn   \        PX                  ! V4      '       dR   RVR.p	\        P>                  ! \        P
                  V	R4       \        P                   ! 4       Pa                  W4       R# V^ 8  dR   R VR!.p	\        P>                  ! \        P
                  V	R4       \        P                   ! 4       Pa                  W4       R# \        PX                  ! \        P                   ! 4       P#                  4       4      '       gQ   R VR".p	\        P>                  ! \        P
                  V	R4       \        P                   ! 4       Pa                  WR4       V Pq                  V4       \        Pr                  ! VP                  4      '       d+   R#p\        P                  ! \        P
                  VR4       R# \4        P                   ! 4       P7                  R$4      '       gU   R%p\        P                  ! \        P
                  VR4       V Pu                  V P                  Pw                  WV4      4       R# \4        P                   ! 4       P7                  R&4      '       dK   R'p\        P                  ! \        P
                  VR4       V Py                  4       P{                  V R4       R# R(p\        P                  ! \        P
                  VR4       R# ))z<Callback for object:state-changed:busy accessibility events.+WEB: Ignoring event from page with no size.T*WEB: Ignoring event from page with no URI.zbusy-changed event.z/WEB: Ignoring: Already loading document contentr  Fz2WEB: Ignoring: Event source is not active documentz6WEB: Ignoring: Not document and not something we're in.WEB: Ignoring: Event source is nested documentZonlySpeakDisplayedTextz#WEB: Not presenting due to settingsz<WEB: Not presenting because source is not showing or visiblez,WEB: Not presenting because source lacks URIz)WEB: Not presenting due to focus mode forZspeechVerbosityLevelz(WEB: Brief verbosity set. Should presentz: Zhttp)Zreset_stylesNz9WEB: Not presenting content, focus is outside of documentr8   zWEB: Getting page summary forzWEB: Setting locusOfFocus tozwith sticky focus moder  z WEB: Could not get caret contextz.WEB: Setting locus of focus to focusModeWidgetz+WEB: Setting locus of focus to focused linkz. No SayAll.z*WEB: Setting locus of focus to context objz. No SayAllz(no notification)z*WEB: Not doing SayAll due to page fragmentr7   z5WEB: Not doing SayAll due to sayAllOnLoad being FalseZenableSpeechzWEB: Doing SayAllz5WEB: Not doing SayAll due to enableSpeech being False)>r   has_no_sizer  r   r   r`   r   get_urir   clear_all_cache_nowr  r@   r&   rb   active_documentr	   rF   ra   Zis_document_webr   is_ancestorr   r  r   r	  clear_caret_contextr   rG   Z
is_showingZ
is_visiblerC   r_   r   ZVERBOSITY_LEVEL_VERBOSEr  r   r   ZPAGE_LOADING_STARTr   ZPAGE_LOADING_END_NAMEDZPAGE_LOADING_ENDrk   r   focus_is_dead
is_focusedZget_document_summaryis_busyZis_top_level_web_appr  r   r  r|   r   r{   r   r   r   get_document_uri_fragmentr   r   Zget_say_all_presenterZsay_all)rZ   r   r   r(  ri   r   r   Zshould_presentZmgrrh   Zsummaryr  s   &&          r3   on_busy_changedZScript.on_busy_changed  s    ""5<<00?C 0 0#t<!!%,,//>C 0 0#t<''6KL===T222CC 0 0#t<~~11%,,??@C 0 0#t<..88:,,>FC 0 0#t<))+>>@**5<<88''||TBBJC 0 0#t<>>11(2E2Eell2STTBC 0 0#t<nn668  %%NN..0**,??344"N7C 0 0#t<((66+:P:PQVQ]Q]:^:^"NPC 0 0#t<##ELL11"N@C 0 0#t<4#6#6#68;L;LS;Q;Q"NA3GFu//>__348X8XX!&.N@#NK[G\]Fu//>>j00>II&QQ}}}$$X%@%@A""5<<00??#9:h>^>^^"++ELL9C"99H<M<Mell<[[C$$Su$=$$X%>%>? %===++-C  C((*88::>>55e<<%%e,,MC 0 0#t<'')556IJJ~5u||DFu//> 55ellCG$$W-nn668""5<<00~~225<<@@4c;STFu//>%%'::5F%00=K))+t<s#t':'::%00=K))+64C 0 0#t<>>..s33FLFu//>%%'::5F>>!!#&&;+A+A#+F+FCS.YFu//>%%'::5FA:BCWFu//>%%'::5F%%m&?&?&A&T&T&VWWBCI\]Fu//>%%'::5uMC //==>C 0 0#t<  "--/;;NKKIC 0 0#t< J J3 WX  ))+77GG%C 0 0#t<&&(00t<
  JC 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5   w  s     f fK fD fr6   c                s`   \         P                  ! V4      pV P                  P                  VP                  4      pV'       g   V P                  P                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# V P                  P                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# Rp\        P                  ! \        P                  VR4       R# V P                  P                  VRR4      w  rVRVRV.p\        P                  ! \        P                  VR4       V P                  4       P                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# V P                  4       P                  4       '       d+   R	p\        P                  ! \        P                  VR4       R# V P                  4       P                  4       '       d+   R
p\        P                  ! \        P                  VR4       R# V\         P"                  8X  d+   Rp\        P                  ! \        P                  VR4       R# V\         P$                  8X  Edh   VP                  VP&                  3WV38X  d+   Rp\        P                  ! \        P                  VR4       R# VP                  VP&                  3V P(                  8X  d+   Rp\        P                  ! \        P                  VR4       R# VP                  VP&                  3V n        Rp\        P                  ! \        P                  VR4       V P                  P+                  VP                  VP&                  4       \,        P.                  ! V\         P0                  4      RJ p\2        P4                  ! 4       P7                  WP                  VR4       R# V\         P8                  8X  d+   Rp\        P                  ! \        P                  VR4       R# V P                  P;                  4       '       dQ   Rp\        P                  ! \        P                  VR4       V P=                  VP                  VP&                  4       R# V P                  P?                  V4      '       g+   Rp\        P                  ! \        P                  VR4       R# V\         P@                  8X  d+   Rp\        P                  ! \        P                  VR4       R# V\         PB                  \         PD                  39   dd   Rp\        P                  ! \        P                  VR4       \2        P4                  ! 4       PG                  VP                  VP&                  4       R# V\         PH                  \         PJ                  39   dd   Rp\        P                  ! \        P                  VR4       \2        P4                  ! 4       PG                  VP                  VP&                  4       R# \2        P4                  ! 4       PM                  4       p	\N        P4                  ! 4       p
V P                  PQ                  WP                  4      '       dW   V
PS                  4       '       gA   V
PU                  4       '       g+   Rp\        P                  ! \        P                  VR4       R# V P                  PW                  W4      '       d+   Rp\        P                  ! \        P                  VR4       R# V PX                  '       dL   V P                  P[                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# V P                  P]                  V4      '       dW   Rp\        P                  ! \        P                  VR4       V P_                  VP                  4       V Pa                  V4       R# V P                  Pc                  VP                  4      '       gQ   \         Pd                  ! VP                  4      '       g+   Rp\        P                  ! \        P                  VR4       R# R;p;r\,        Pf                  ! VP                  RR4       V PX                  '       d   VP                  VP&                  reM2V P                  Pi                  VP                  VP&                  4      w  rVV\         Pj                  8X  d0   Rp\        P                  ! \        P                  VR4       R;p;rEMeV P                  Pm                  V4      '       d0   Rp\        P                  ! \        P                  VR4       R;p;rEMVP                  V	8w  d   \         Pd                  ! VP                  4      '       d   \         Pn                  ! VP                  4      '       g'   \         Pp                  ! VP                  4      '       gU   Rp\        P                  ! \        P                  VR4       V
Ps                  4       ;'       g    V
Pu                  4       ;p;rM>V
Pw                  4       '       d)   Rp\        P                  ! \        P                  VR4       R VRVR!V 2.p\        P                  ! \        P                  VR4       V P                  P+                  WVV4       \2        P4                  ! 4       P7                  WW4       V# )"z:Callback for object:text-caret-moved accessibility events.3WEB: Ignoring event believed to be browser UI noiseT@WEB: Ignoring event believed to be browser UI autocomplete noiser  FzWEB: Context: , .WEB: Event ignored: Last command was caret nav/WEB: Event ignored: Last command was struct nav.WEB: Event ignored: Last command was table navz$WEB: Event handled: SayAll triggeredz(WEB: Event is for current caret context.z,WEB: Event is for last mouse button context.z1WEB: Event handled: Last command was mouse buttonNz4WEB: Event ignored: Caret moved due to focus change.z+WEB: Event handled: Presenting find results4WEB: Event ignored: Not from locus of focus documentz1WEB: Event ignored: Caret moved due to UI update.z6WEB: Event handled: Updating position due to insertionz5WEB: Event handled: Updating position due to deletionz+WEB: Event ignored: Editable combobox noisez&WEB: Event ignored: Autocomplete noisezEWEB: Event ignored: Caret moved outside active grid during focus modez=WEB: Event handled as the value-change event we wish we'd getzJWEB: Event ignored: Was for non-editable object we're treating as textlessz%Updating state for caret moved event.z"WEB: Caret moved due to scrolling.zWEB: Caret moved to fragment.z5WEB: Editable object is not (yet) the locus of focus.z0WEB: Caret moved due to native caret navigation.z#WEB: Setting context and focus to: z
, notify: )<r   get_text_event_reasonr&   r   r  $event_is_browser_ui_noise_deprecatedr   r   r`   1event_is_browser_ui_autocomplete_noise_deprecatedr   r_   rc   r   re   rf   r   ZSAY_ALLZMOUSE_PRIMARY_BUTTONr  rB   r   r   r   r   r	   rF   r  ZFOCUS_CHANGEr
  r   %event_is_from_locus_of_focus_document	UI_UPDATETYPINGTYPING_ECHOABLEZset_last_cursor_positionDELETE	BACKSPACEra   r   Zis_item_for_editable_combo_boxZ#last_event_was_character_navigationZ'last_event_was_line_boundary_navigation&event_is_autocomplete_noise_deprecatedrC   Zcaret_moved_outside_active_gridZ.treat_event_as_spinner_value_change_deprecatedr   Z_present_caret_moved_eventr   r   clear_cacher  ZNAVIGATION_BY_PAGEr  r,  is_focusabler  Zlast_event_was_returnZlast_event_was_caret_navigation)rZ   r   rj   r   r   r   r   rh   notifyri   Zi_e_managerforceZhandleds   &&           r3   on_caret_movedZScript.on_caret_movedw  s    2259>>CCELLQ~~BB5IIK##E$4$4c4@~~OOPUVVX##E$4$4c4@@C 0 0#t<nn66xN"Cv65++VT: ##%MMOOBC 0 0#t< ((*RRTTCC 0 0#t< ##%MMOOBC 0 0#t<_,,,8C 0 0#t<_999emm,=@##E$4$4c4@emm,0O0OOD##E$4$4c4@.3llEMM.ID+EC 0 0#t<NN,,U\\5==I55c;;O;OPTXXF%%'::5,,PVX\]_111HC 0 0#t<>>++--?C 0 0#t<&&u||U]]C~~CCEJJHC 0 0#t<_...EC 0 0#t<o,,o.M.MNNJC 0 0#t<%%'@@u}}]o,,o.G.GHHIC 0 0#t<%%'@@u}}]))+>>@)557>>88MMBBDDFFHH?C 0 0#t<>>@@QQ:C 0 0#t<4>>#Q#QRW#X#XYC 0 0#t<>>HHOOQC 0 0#t<-++E2~~225<<@@**5<<88^C 0 0#t<#(((U\\52YZ,,..66u||U]]SKC_7776C 0 0#t<'++F+UW^^==eDD1C 0 0#t<'++F+UW\\U"{'>'>u||'L'L$$U\\22+:R:RSXS_S_:`:`IC 0 0#t<::< 4 41134F 4UW 88::DC 0 0#t<7dFjY_X`Lab5++VT:((h?!!#66u6Qr6   c               r*   r  r0   r1   r2   r3   r4   r5     s        r6   c                V    Rp\         P                  ! \         P                  VR4       R# )z?Callback for object:state-changed:checked accessibility events.?WEB: This event is is handled by the toolkit or default script.TFr   r   r`   r  r   r3   on_checked_changedZScript.on_checked_changed  %     PE,,c48r6   c               r*   r  r0   r1   r2   r3   r4   r5   &  s     I I{ It Ir6   c                s	  a \         P                  ! SP                  R4       V P                  P	                  S4      '       d+   Rp\
        P                  ! \
        P                  VR4       R# \         P                  ! SP                  4      pV P                  P                  SP                  4      pV'       Ed   V'       Eg   \        P                  ! 4       P                  4       pSP                  V8X  dH   Rp\
        P                  ! \
        P                  VR4       V P                  P                  VRR7       EMv\        P                  ! 4       P                  4       '       dH   Rp\
        P                  ! \
        P                  VR4       V P                  P                  VRR7       EM\        P                   ! VV3R l4      '       dG   Rp\
        P                  ! \
        P                  VR4       V P                  P                  VRR7       MR	p\
        P                  ! \
        P                  VR4       V P                  P#                  4        M\V'       d+   R
p\
        P                  ! \
        P                  VR4       R# Rp\
        P                  ! \
        P                  VR4       R# V P$                  '       d+   Rp\
        P                  ! \
        P                  VR4       R# \        P&                  ! V4      '       g.   RVR.p\
        P(                  ! \
        P                  VR4       R# \         P*                  ! V4      '       d.   RVR.p\
        P(                  ! \
        P                  VR4       R# V P                  P-                  SSP.                  4      '       d+   Rp\
        P                  ! \
        P                  VR4       R# \         P0                  ! SP.                  4      '       d   Rp\
        P                  ! \
        P                  VR4       V P3                  SP.                  RR7       \         P4                  ! SP.                  4      pV'       d   V P                  P7                  V4      '       * pRV.p\
        P(                  ! \
        P                  VR4       \        P                  ! 4       P9                  SWx4       V P                  P;                  V^ 4       R# R# )z>Callback for object:children-changed:add accessibility events.children-changed event.r0  T#WEB: Dumping cache: source is focusZpreserve_contextWEB: Dumping cache: dead focusc                "   < V SP                   8H  # r   r  r   r   r   r3   r   Z*Script.on_children_added.<locals>.<lambda><      ell9Jr6   /WEB: Dumping cache: source is ancestor of focusWEB: Not dumping full cachez%WEB: Ignoring event from live region.,WEB: Could not get document for event sourceF7WEB: Ignoring because document content is being loaded.zWEB: Ignoring becausezis not valid.zis busy.zAWEB: Event handled by updating locusOfFocus and context to child.zWEB: Presenting event.any_datar   z.WEB: Setting locusOfFocus and caret context to)r   r'  r  r&   r8  r   r   r`   is_live_regionr   r	   rF   ra   
dump_cacher+  r   r   rk   r@   r	  r_   r-  #handle_event_from_context_replicantZany_datar   r   Zget_focused_objectr   r  r   )	rZ   r   r   rW  r   ri   rh   ZfocusedrC  s	   &f       r3   on_children_addedZScript.on_children_added&  s    	''6OP>>>>uEEGC 0 0#t<$33ELLA>>CCELLQ8NN!--/BBDE||u$;##E$4$4c4@))(T)J**,::<<6##E$4$4c4@))(T)J''/JKKG##E$4$4c4@))(T)J3##E$4$4c4@3359C 0 0#t<@C 0 0#t<   KC 0 0#t<  **-xIFu//>x((-xDFu//>>>==eU^^TTUC 0 0#t<//2C 0 0#t<$?!44U^^DG!^^@@IIJGT""5#3#3VTB))+>>ugV00!<r6   c               r*   r  r0   r1   r2   r3   r4   r5   q  s     1 1 1 1r6   c                s  a \         P                  ! SP                  R4       V P                  P	                  SP                  4      '       g+   Rp\
        P                  ! \
        P                  VR4       R# V P                  '       d+   Rp\
        P                  ! \
        P                  VR4       R# \         P                  ! SP                  4      '       dv   V P                  P                  S4      '       d+   Rp\
        P                  ! \
        P                  VR4       R# Rp\
        P                  ! \
        P                  VR4       R# V P                  P                  SP                  4      pV'       Ed   \        P                  ! 4       P                  4       pSP                  V8X  dH   Rp\
        P                  ! \
        P                  VR4       V P                  P                  VRR	7       EM\        P                  ! 4       P!                  4       '       dG   R
p\
        P                  ! \
        P                  VR4       V P                  P                  VRR	7       M\"        P$                  ! VV3R l4      '       dG   Rp\
        P                  ! \
        P                  VR4       V P                  P                  VRR	7       MBRp\
        P                  ! \
        P                  VR4       V P                  P'                  4        V P                  P                  S4      '       d+   Rp\
        P                  ! \
        P                  VR4       R# R# )zBCallback for object:children-changed:removed accessibility events.rK  z-WEB: Event source is not in document content.TFrV  z1WEB: Event handled for removed live-region child.z'WEB: Ignoring removal from live region.rL  rM  rN  c                rO  r   rP  rQ  r   r3   r   Z,Script.on_children_removed.<locals>.<lambda>  rR  r6   rS  rT  z%WEB: Event handled for removed child.)r   r'  r  r&   rb   r   r   r`   r@   rW  Zhandle_event_for_removed_childr   r	   rF   ra   rX  r+  r   r   rk   )rZ   r   r   r   ri   s   &f   r3   on_children_removedZScript.on_children_removedq  s[    	''6OP~~11%,,??AC 0 0#t<   KC 0 0#t<%%ell33~~<<UCCI##E$4$4c4@  @##E$4$4c4@>>CCELLQ8!--/BBDE||u$;##E$4$4c4@))(T)J**,::<<6##E$4$4c4@))(T)J''/JKKG##E$4$4c4@))(T)J3##E$4$4c4@335>>88??9C 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5     s        r6   c                |   V P                   P                  VP                  4      '       g+   Rp\        P                  ! \        P
                  VR4       R# \        P                  ! 4       P                  4       pVP                  \        P                  ! V4      8w  d+   Rp\        P                  ! \        P
                  VR4       R# V P                  \        P                  4       \        P                  ! V\         P"                  4      p\        P$                  ! VR4      pV'       d   V P                  V4       R# )z:Callback for object:column-reordered accessibility events.r  TFWEB: focus is not in this table)r&   rb   r  r   r   r`   r	   rF   ra   r   r   r   r   ZTABLE_REORDERED_COLUMNSr   r   r   is_table_header&get_presentable_sort_order_from_headerrZ   r   r   ri   Zheader   &&   r3   on_column_reorderedZScript.on_column_reordered  s     ~~11%,,??@C 0 0#t<))+>>@<<7,,U333C 0 0#t<X==>11%9T9TU<<VTJ  %r6   c               r*   r  r0   r1   r2   r3   r4   r5     s      { t r6   c                sx   \         P                  ! VP                  4      '       d+   Rp\        P                  ! \        P
                  VR4       R# \        P                  ! VP                  4      pV'       g+   Rp\        P                  ! \        P
                  VR4       R# VP                  R4      '       d.   RV 2p\        P                  ! \        P
                  VR4       R# \        P                  ! VP                  R4       V P                  P                  \        P                  ! VP                  4      4      '       d+   Rp\        P                  ! \        P
                  VR4       R# Rp\        P                  ! \        P
                  VR4       R	V n        V P                   P#                  4        R# )
z9Callback for document:load-complete accessibility events.r"  Tr#  zmoz-extensionz(WEB: Ignoring event from page with URI: zload-complete event.r$  z6WEB: Updating loading state and resetting live regionsF)r   r%  r  r   r   r`   r   r&  r  r   r'  r&   r   r   r  r@   r(   Zreset)rZ   r   r   Zuri   &&  r3   on_document_load_completeZ Script.on_document_load_complete  s9    ""5<<00?C 0 0#t<  .>C 0 0#t<>>/**<SEBC 0 0#t<''6LM>>11(2E2Eell2STTBC 0 0#t<FE,,c48 %  &&(r6   c               r*   r  r0   r1   r2   r3   r4   r5     s      k d r6   c                s6   V P                   P                  \        P                  ! VP                  4      4      '       d+   Rp\
        P                  ! \
        P                  VR4       R# Rp\
        P                  ! \
        P                  VR4       RV n        R# )z8Callback for document:load-stopped accessibility events.r$  TWEB: Updating loading stateF	r&   r   r   r  r  r   r   r`   r@   r  r   r3   on_document_load_stoppedZScript.on_document_load_stopped  sp     >>11(2E2Eell2STTBC 0 0#t<+E,,c48 %r6   c               r*   r  r0   r1   r2   r3   r4   r5     s        r6   c                s6   V P                   P                  \        P                  ! VP                  4      4      '       d+   Rp\
        P                  ! \
        P                  VR4       R# Rp\
        P                  ! \
        P                  VR4       RV n        R# )z2Callback for document:reload accessibility events.r$  Tre  rf  r  r   r3   on_document_reloadZScript.on_document_reload  sp     >>11(2E2Eell2STTBC 0 0#t<+E,,c48 $r6   c               r*   r  r0   r1   r2   r3   r4   r5     s        r6   c                s   V P                   P                  VP                  4      '       g+   Rp\        P                  ! \        P
                  VR4       R# \        P                  ! 4       P                  4       pV P                   P                  RR7      w  rERVRV.p\        P                  ! \        P
                  VR4       \        P                  ! V4      '       g`   VP                  V8X  dO   Rp\        P                  ! \        P
                  VR4       V P                   P                  VP                  ^ 4       R# )z@Callback for object:state-changed:expanded accessibility events.r  TF)Zsearch_if_neededWEB: Caret context isr2  z*WEB: Setting caret context to event source)r&   rb   r  r   r   r`   r	   rF   ra   r   r_   r   r	  r   )rZ   r   r   ri   r   r   rh      &&     r3   on_expanded_changedZScript.on_expanded_changed  s     ~~11%,,??@C 0 0#t<))+>>@nn666N)3f=5++VT:  %%%,,%*?>C 0 0#t<NN,,U\\1=r6   c               r*   r  r0   r1   r2   r3   r4   r5     s     ` ` ` `r6   c                s\  a SP                   '       g+   Rp\        P                  ! \        P                  VR4       R# V P                  P                  SP                  4      pV'       g+   Rp\        P                  ! \        P                  VR4       R# \        P                  ! 4       P                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# \        P                  ! 4       P                  4       pV P                  P                  V4      pWS8w  d.   RVRV.p\        P                  ! \        P                  VR4       M;VSP                  8X  d+   Rp\        P                  ! \        P                  VR4       R# \        P                  ! SP                  4      '       dR   \        P                  ! VSP                  4      '       d+   R	p\        P                  ! \        P                  VR4       R# \        P                   ! SP                  \        P"                  4      '       EdD   V P$                  '       d+   R
p\        P                  ! \        P                  VR4       EM\        P&                  ! SP                  4      '       dL   \        P                   ! VV3R l4      '       d+   Rp\        P                  ! \        P                  VR4       R# Rp\        P                  ! \        P                  VR4       V P                  P)                  VSP                  S4      '       d   V P+                  4        \        P                  ! 4       P-                  SSP                  4       R# \        P.                  ! SP                  4      '       d+   Rp\        P                  ! \        P                  VR4       R# \        P0                  ! SP                  4      '       d   \        P                  ! VSP                  R4      '       d+   Rp\        P                  ! \        P                  VR4       R# Rp\        P                  ! \        P                  VR4       \        P                  ! 4       P-                  SSP                  4       R# V P                  P3                  SSP                  4      '       d+   Rp\        P                  ! \        P                  VR4       R# V P                  P5                  4       w  rxRVRV.p\        P                  ! \        P                  VR4       \        P6                  ! V4      '       d   WS8w  Ed   RVR.p\        P                  ! \        P                  VR4       V P                  P9                  4        V P                  P;                  SP                  4      w  rxV'       Ed;   V P                  P=                  V4      p	RVRV.p\        P                  ! \        P                  VR4       \        P                  ! 4       P-                  SWy4       V	'       g   Vf   Rp
V P?                  4       PA                  W PB                  V
4       V PE                  4       PA                  W PB                  V
4       V PF                  PA                  W PB                  V
4       V PI                  4       PA                  W PB                  V
4       V P                  PK                  Wx4       M(Rp\        P                  ! \        P                  VR4       V P?                  4       PM                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# V PE                  4       PM                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# V PI                  4       PM                  4       '       d+   Rp\        P                  ! \        P                  VR4       R# \        PN                  ! SP                  4      '       d'   \        PP                  ! SP                  4      '       g+   Rp\        P                  ! \        P                  VR4       R# \        PR                  ! SP                  4      '       g+   Rp\        P                  ! \        P                  VR4       R# V'       g+   Rp\        P                  ! \        P                  VR4       R# \T        P                  ! 4       PW                  4       '       dk   Rp\        P                  ! \        P                  VR4       \        P                  ! 4       P-                  SV4       V P                  PK                  Wx4       R# \        PP                  ! V4      p\        PX                  ! VRR 4       \        PP                  ! V4      pW8w  d/   R!VR"V.p\        P                  ! \        P                  VR4       R# V P                  P[                  V4      '       d   R#pMV P                  P                  V4      '       d	   V'       d   R$pM`V P                  P]                  V4      '       d   R%pM<VSP                  8X  d*   \^        P`                  ! SP                  4      '       d   R&pMR# R'VR(VR).p\        P                  ! \        P                  VR4       \        P                  ! 4       P-                  SV4       R# )*z?Callback for object:state-changed:focused accessibility events.z-WEB: Ignoring because event source lost focusTrU  Fz)WEB: Ignoring focus change during say allzWEB: document changed fromr  z8WEB: Ignoring focus change to document ancestor of focusz4WEB: Ignoring focus change on link ancestor of focuszAWEB: Embedded descendant claimed focus, but browse mode is stickyc                rO  r   rP  rQ  r   r3   r   Z+Script.on_focused_changed.<locals>.<lambda>,  s    !u||:Kr6   z<WEB: Event believed to be side effect of tooltip navigation.z?WEB: Event handled: Setting locusOfFocus to embedded descendantzWEB: Event source is editablez*WEB: Ignoring event from ancestor of focusr  zBWEB: Event handled by updating locusOfFocus and context to source.ri  r2  zWEB: Clearing context - objz is not valid or document changedz"WEB: Updating focus and context toz,updating locus of focus without notificationz$WEB: Search for caret context failedr3  r4  r5  z6WEB: Event ignored: Source is not focusable or focusedz@WEB: Deferring to other scripts for handling non-document source'WEB: Unable to get valid context objectz2WEB: Event handled: Focus changed due to scrollingzSanity-checking focused state.zWEB: Focused state ofz
changed tozContext is anchorz!Context is not a non-focused linkz$Context is child of current fragmentzDocument URI is fragmentz+WEB: Event handled: Setting locusOfFocus toZ(Z))1r  r   r   r`   r&   r   r  r	   rF   r   ra   r_   r   r   r   r)  r   r   rE   r   r  r  r  r   r  rY  r   r	  r*  Zsearch_for_caret_contextr
  rc   rd   rC   re   r(   rf   r   r   rB  r,  r   r   r  rA  r  Zis_child_of_current_fragmentr   r.  )rZ   r   r   r   ri   Zprev_documentrh   r   r   rC  rj   Zwas_focusedr,  Zcauses   &f            r3   on_focused_changedZScript.on_focused_changed  s    }}}AC 0 0#t<>>99%,,G@C 0 0#t<$$&1133=C 0 0#t<))+>>@>>uE$2M4RFu//>%LC 0 0#t<u||,,1E1EeU\\1Z1ZHC 0 0#t<!!%,,0G0GHH***Y##E$4$4c4@((66((0KLLT##E$4$4c4@W##E$4$4c4@>>LLu||U4 4//1))+>>uellS""5<<001C 0 0#t<))%,,77##E5<<>>B##E$4$4c4@
  Q##E$4$4c4@))+>>uellS>>==eU\\RRVC 0 0#t<nn668)3f=5++VT:  %%)B3S:\]Fu//>NN..0..AA%,,OKCs99%@>T6R""5#3#3VTB))+>>ucR-"7KF,,.??FYFY[ab113DD116;,,==dDWDWY_`,,.??FYFY[ab00=<##E$4$4c4@##%MMOOBC 0 0#t<((*RRTTCC 0 0#t<##%MMOOBC 0 0#t<((66;;Q;QRWR^R^;_;_JC 0 0#t<&&u||44TC 0 0#t<;C 0 0#t<**,KKMMFC 0 0#t<%%'::5#FNN,,S9 ",,S1S%)IJ ++C0
$-sL*MFu//>>>##C(('E..((--j7E^^88==:E%**N*Nu||*\*\.E?c5RUV5++VT:!!#66ucBr6   c               r*   r  r0   r1   r2   r3   r4   r5     s      [ T r6   c                s    R# )z/Callback for mouse:button accessibility events.Fr0   )rZ   r   s   &&r3   on_mouse_buttonZScript.on_mouse_button  s     r6   c               r*   r  r0   r1   r2   r3   r4   r5     s      [ T r6   c                s    V P                   P                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# R# )z;Callback for object:property-change:accessible-name events.r0  TF)r&   r8  r   r   r`   r  r   r3   on_name_changedZScript.on_name_changed  s<     >>>>uEEGC 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5     s      k d r6   c                r\  )z7Callback for object:row-reordered accessibility events.r  TFr]  )r&   rb   r  r   r   r`   r	   rF   ra   r   r   r   r   ZTABLE_REORDERED_ROWSr   r   r   r^  r_  r`  ra  r3   on_row_reorderedZScript.on_row_reordered  s     ~~11%,,??@C 0 0#t<))+>>@<<7,,U333C 0 0#t<X::;11%9T9TU<<VTJ  %r6   c               r*   r  r0   r1   r2   r3   r4   r5     s        r6   c                sh   V P                   P                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# \
        P                  ! 4       P                  4       pV P                   P                  V4      '       d   Rp\        P                  ! \        P                  VR4       VP                  '       dX   \        P                  ! VP                  RR4       \        P                  ! VR7       V P                  VP                  VRR7       R# V P                   P!                  VP                  4      '       g+   Rp\        P                  ! \        P                  VR4       R# W1P                  8w  d+   R	p\        P                  ! \        P                  VR4       R# R# )
z@Callback for object:state-changed:selected accessibility events.r1  Tz0WEB: Event believed to be browser UI page switchFzWork around Gecko bug.)rj   )r   r   r  z6WEB: Ignoring because event source is not locusOfFocus)r&   r9  r   r   r`   r	   rF   ra   event_is_browser_ui_page_switchr  r   rA  r  r   r'  r   rb   )rZ   r   r   ri   rc  r3   on_selected_changedZScript.on_selected_changed  s2    >>KKERRTC 0 0#t<))+>>@>>99%@@DC 0 0#t<}}}$$U\\5:RS//s;##ELL5D#Q~~11%,,??@C 0 0#t<LL JC 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5     s     7 7+ 7$ 7r6   c                sx   V P                   P                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# V P                   P                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# V P                   P                  VP                  4      '       g+   Rp\        P                  ! \        P                  VR4       R# V P                   P                  \        P                  ! 4       P                  4       4      '       g+   Rp\        P                  ! \        P                  VR4       R# V P                   P                  V4      '       g+   Rp\        P                  ! \        P                  VR4       R# \        P                  ! VP                  \        P                  4      '       d   V P                   '       dM   \        P"                  ! VP                  RR4       R	p\        P                  ! \        P                  VR4       R# R
p\        P                  ! \        P                  VR4       R# V P                   P%                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# V P                   P'                  4       w  r4\        P(                  ! W1P                  4      pV'       dL   V P                   P+                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# R# )z;Callback for object:selection-changed accessibility events.r1  Tz9WEB: Ignoring event believed to be browser UI page switchr  Fz;WEB: Event ignored: locusOfFocus is not in document contentr6  z-Workaround for missing events on descendants.z@WEB: Event source is embedded descendant and we're in focus modezAWEB: Event source is embedded descendant and we're in browse modezWEB: Event ignored: IrrelevantzHWEB: Ignoring: Common ancestor of context and event source is text block)r&   r9  r   r   r`   rq  rb   r  r	   rF   ra   r:  r   r   r   r   rC   rA  Z+event_is_irrelevant_selection_changed_eventr   Zget_common_ancestorZis_text_block_element)rZ   r   r   r   r  Zancestor   &&    r3   on_selection_changedZScript.on_selection_changed  sC    >>KKERRTC 0 0#t<>>99%@@MC 0 0#t<~~11%,,??@C 0 0#t<~~11-2K2K2M2`2`2bccOC 0 0#t<~~CCEJJHC 0 0#t<!!%,,0G0GHH""" $$U\\%)%TV Y##E$4$4c4@UC 0 0#t<>>EEeLL2C 0 0#t<~~779//\\B<<XFF\C 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5   #  s        r6   c                s   VP                   '       ds   V P                  P                  VP                  4      '       dH   Rp\        P
                  ! \        P                  VR4       V P                  VP                  RR7       R# V P                  P                  VP                  4      '       g+   Rp\        P
                  ! \        P                  VR4       R# R# )z?Callback for object:state-changed:showing accessibility events.z+WEB: Event handled: Presenting event sourceTr   r  F)	r  r&   Zis_browser_ui_alertr  r   r   r`   r   rb   r  r   r3   on_showing_changedZScript.on_showing_changed#  s     ===T^^??MM?C 0 0#t<=~~11%,,??@C 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5   3  s        r6   c                rF  )zACallback for object:text-attributes-changed accessibility events.rG  TFrH  r  r   r3   on_text_attributes_changedZ!Script.on_text_attributes_changed3  rJ  r6   c               r*   r  r0   r1   r2   r3   r4   r5   :  s     L L[ LT Lr6   c                s&	  a \         P                  ! S4      pV\        P                  8X  d+   Rp\        P
                  ! \        P                  VR4       R# \         P                  ! SP                  4      '       d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P                  SP                  4      '       gj   Rp\        P
                  ! \        P                  VR4       V\        P                  8X  d+   Rp\        P
                  ! \        P                  VR4       R# R# V\        P                  8X  d+   Rp\        P
                  ! \        P                  VR4       R# V\        P                  8X  d+   Rp\        P
                  ! \        P                  VR4       R# R	p\        P
                  ! \        P                  VR4       V P                  P                  4        V\        P                  \        P                   39   d+   R
p\        P
                  ! \        P                  VR4       R# V\        P"                  \        P$                  39   d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P'                  RR7      w  rEV'       d`   VSP                  8w  dO   \(        P*                  ! VV3R l4      '       g.   RVR.p\        P,                  ! \        P                  VR4       R# \(        P.                  ! V4      '       g   V P                  P1                  V4      '       d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P'                  RR7      w  rEV'       d(   \2        P4                  ! 4       P7                  SVRR7       \(        P.                  ! V4      '       g)   Rp\        P
                  ! \        P                  VR4       \         P8                  ! SP                  4      '       gV   V P                  P;                  SP                  4      '       g+   Rp\        P
                  ! \        P                  VR4       R# R# )z=Callback for object:text-changed:delete accessibility events.z2WEB: Deletion is believed to be due to page switchTz'WEB: Ignoring deletion from live regionr  4WEB: Ignoring event believed to be browser UI updateF<WEB: Ignoring: Event believed to be spin button value changez0WEB: Ignoring event believed to be auto deletionz0WEB: Clearing content cache due to text deletionz7WEB: Event believed to be due to editable text deletionz8WEB: Ignoring event believed to be due to text insertionr   c                rO  r   rP  rQ  r   r3   r   Z(Script.on_text_deleted.<locals>.<lambda>m  rR  r6   z$WEB: Ignoring event because it isn'tzor its ancestorz4WEB: Focused link deleted. Taking no further action.)Znotify_scriptrl  z(WEB: Done processing non-editable source)r   r7  r   PAGE_SWITCHr   r   r`   rW  r  r&   rb   r;  SPIN_BUTTON_VALUE_CHANGEZAUTO_DELETIONclear_content_cacher>  r?  r<  r=  r   r   r   r_   r	  r   r	   rF   r  r   r   )rZ   r   rj   r   r   r  rh   s   &f     r3   on_text_deletedZScript.on_text_deleted:  s=    2259_000FC 0 0#t<%%ell33;C 0 0#t<~~11%,,??@C 0 0#t<222L##E$4$4c4@_===PC 0 0#t<_222DC 0 0#t<@E,,c48**,o,,o.G.GHHKC 0 0#t<o,,o.M.MNNLC 0 0#t<~~77e7L3%,,&))#/JKK<cCTUFu//>  %%~~%%c**L##E$4$4c4@>>;;$;OLC))+>>ucY^>_  %%;C 0 0#t<&&u||44>>KKELLYY<C 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5     s     U Uk Ud Ur6   c                s,   \         P                  ! V4      pV\        P                  8X  d+   Rp\        P
                  ! \        P                  VR4       R# \         P                  ! VP                  4      '       d   V P                  P                  V4      '       dF   Rp\        P
                  ! \        P                  VR4       V P                  P                  V4       R# Rp\        P
                  ! \        P                  VR4       R# V\        P                  8X  d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P                  VP                  4      '       gj   Rp\        P
                  ! \        P                  VR4       V\        P                  8X  d+   Rp\        P
                  ! \        P                  VR4       R# R# V\        P                   8X  d+   R	p\        P
                  ! \        P                  VR4       R# V\        P"                  8X  d+   R
p\        P
                  ! \        P                  VR4       R# Rp\        P
                  ! \        P                  VR4       V P                  P%                  4        V P                  P'                  VP                  4      p\(        P*                  ! 4       P-                  4       '       d   Rp\        P
                  ! \        P                  VR4       V P                  P/                  VRR7       \         P0                  ! VP                  4      '       d\   Rp\        P
                  ! \        P                  VR4       \(        P*                  ! 4       P3                  RVP                  RR7       R# V P                  P5                  VP                  4      '       g+   Rp\        P
                  ! \        P                  VR4       R# VP                  \(        P*                  ! 4       P7                  4       8H  p\         P8                  ! VP                  4      '       g   V'       g+   Rp\        P
                  ! \        P                  VR4       R# V P                  P;                  VP                  4      '       d\   Rp\        P
                  ! \        P                  VR4       \(        P*                  ! 4       P3                  RVP                  RR7       R# V'       gw   \         P<                  ! VP                  4      '       dQ   \         P0                  ! VP                  4      '       d+   Rp\        P
                  ! \        P                  VR4       R# R# )z=Callback for object:text-changed:insert accessibility events.z3WEB: Insertion is believed to be due to page switchTz'WEB: Event to be handled as live regionz:WEB: Ignoring because live region event not to be handled.z:WEB: Ignoring: Event believed to be due to children changer  rw  Frx  z2WEB: Ignoring: Event believed to be auto insertionz1WEB: Clearing content cache due to text insertionrN  rM  r  N)rD  0WEB: Ignoring: Event source is not a text objectz:WEB: Done processing non-editable, non-locusOfFocus sourcez@WEB: Event handled: Re-setting locusOfFocus to changed clickableFWEB: Focused entry is not the locus of focus. Waiting for focus event.)r   r7  r   ry  r   r   r`   rW  r  r&   Zhandle_as_live_regionr(   ZhandleEventZCHILDREN_CHANGErb   r;  rz  ZAUTO_INSERTION_PRESENTABLEr{  r   r	   rF   r+  rX  r,  r  r   ra   r   Zis_clickable_elementr   )rZ   r   rj   r   r   Zsource_is_focusrs  r3   on_text_insertedZScript.on_text_inserted  s    2259_000GC 0 0#t<%%ell33~~33E::?##E$4$4c4@((44U;NC 0 0#t<_444NC 0 0#t<~~11%,,??@C 0 0#t<222L##E$4$4c4@_===PC 0 0#t<_???FC 0 0#t<AE,,c48**,>>CCELLQ$$&44662C 0 0#t<NN%%h%F%%ell33P##E$4$4c4@))+>>tU\\Y]>^~~225<<@@DC 0 0#t<,,-*C*C*E*X*X*ZZ&&u||44"R##E$4$4c4@~~225<<@@X##E$4$4c4@))+>>tU\\Y]>^;#<#<U\\#J#J%%ell33ZC 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5     s     E E{ Et Er6   c                s   \         P                  ! V4      pV P                  P                  V4      '       d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P                  VP                  4      '       g+   Rp\        P
                  ! \        P                  VR4       R# \        P                  ! 4       P                  4       pV P                  P                  V4      '       g+   Rp\        P
                  ! \        P                  VR4       R# V P                  P                  V4      '       d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P                  V4      '       d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P                  V4      '       d+   Rp\        P
                  ! \        P                  VR4       R# V P                  P                  VP                  4      '       g+   R	p\        P
                  ! \        P                  VR4       R# VP                  V8w  dw   \         P                   ! VP                  4      '       dQ   \         P"                  ! VP                  4      '       d+   R
p\        P
                  ! \        P                  VR4       R# V P                  P%                  VP                  4      '       d+   Rp\        P
                  ! \        P                  VR4       R# V P'                  4       P)                  4       '       d+   Rp\        P
                  ! \        P                  VR4       R# V P+                  4       P)                  4       '       d+   Rp\        P
                  ! \        P                  VR4       R# \,        P.                  ! VP                  4      ^ ,          p\0        P                  ! 4       pVR8X  dW   VP3                  4       '       gA   VP5                  4       '       g+   Rp\        P
                  ! \        P                  VR4       R# R# )z@Callback for object:text-selection-changed accessibility events.r0  Tr  Fz.WEB: Locus of focus is not in document contentz6WEB: Ignoring: Event believed to be autocomplete noisez1WEB: Ignoring: Event believed to be spinner noisez1WEB: Ignoring event for non-navigable text objectr}  r~  z.WEB: In content editable with embedded objectszBWEB: Ignoring: Last input event was structural navigation command.z=WEB: Ignoring: Last input event was table navigation command.r   zCWEB: Ignoring: Not selecting and event offset is at embedded object)r   r7  r&   r8  r   r   r`   rb   r  r	   rF   ra   r@  Z!event_is_spinner_noise_deprecatedZ&event_is_for_non_navigable_text_objectr   r   r,  r   re   r   rf   r   r   r   r   Zlast_event_was_command)rZ   r   Z_reasonr   ri   r   r  rj  r3   on_text_selection_changedZ Script.on_text_selection_changed  s    33E:>>>>uEEGC 0 0#t<~~11%,,??@C 0 0#t<))+>>@~~11%88BC 0 0#t<>>@@GGJC 0 0#t<>>;;EBBEC 0 0#t<>>@@GGEC 0 0#t<~~225<<@@DC 0 0#t<<<5 [%>%>u||%L%L%%ell33ZC 0 0#t<>>CCELLQQBC 0 0#t<((*RRTTVC 0 0#t<##%MMOOQC 0 0#t<--ell;A>%1138G$J$J$L$L1133WC 0 0#t<r6   c               r*   r  r0   r1   r2   r3   r4   r5   &	  s        r6   c                rF  )z2Callback for window:activate accessibility events.z$WEB: Deferring to app/toolkit scriptTFrH  r  r   r3   on_window_activatedZScript.on_window_activated&	  s$     5E,,c48r6   c               r*   r  r0   r1   r2   r3   r4   r5   -	  s      ; 4 r6   c                sd    Rp\         P                  ! \         P                  VR4       RV n        R# )z4Callback for window:deactivate accessibility events.zWEB: Clearing command stateTFr9   )r   r   r`   rB   r  r   r3   on_window_deactivatedZScript.on_window_deactivated-	  s,     ,E,,c48*2'r6   )rW   rX   rV   rE   rI   rJ   r?   r>   rD   rC   rB   rY   r@   rA   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   r)   r   )Ni    )NF)NT)NNT)@Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__Z__annotations__r<   rg   rl   rw   rx   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ry   rz   r}   r|   r~   r{   r  r!  r/  rE  rI  rZ  r[  rb  rd  rg  rh  rk  rm  rn  ro  rp  rr  rt  ru  rv  r|  r  r  r  r  Z__static_attributes__Z__classcell__)r[   s   @r3   r%   r%   V   s   I 3366"F "FH   +Z$- $-L"&
4
3
%

^@6
p$,LH
#
*
+
Pd+? +?Z? ?6'? '?RE. E.N4 42@ 2@h 8 8(( $Lwr*bHfPIV1f*>&`D
*>7r L\UnEN r6   r%   )<r  Z
__future__r   Z__id__Z__version__Z__date__Z__copyright__Z__license__Ztypingr   ZgiZrequire_versionZgi.repositoryr   Zorcar   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   Zorca.scriptsr   Zorca.ax_componentr   Zorca.ax_documentr   Zorca.ax_event_synthesizerr   Zorca.ax_objectr   Zorca.ax_tabler   Zorca.ax_textr   Zorca.ax_utilitiesr   Zorca.ax_utilities_eventr   Zorca.structural_navigatorr   r)   r   Zbraille_generatorr   r  r!   Zscript_utilitiesr#   r$   r%   r0   r6   r3   <module>r     s   @ F #7    	   5%             $      !    ) ' 8 # !  ) 3 4   / - 'w&#]#W^^ ]#r6   