+
    :i  c                   s  a  R t0 t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^RIHtHt ^RIHt ^RIHt R	R
.t]P$                  ! ]4      t]P*                  R8X  d   ^RIHt MN]P*                  R8X  d   ^RIHt M6]P*                  R8X  d   ^RIHt M]P*                  R8X  d   ^RIHt MR R lt]t] ^ k R R lt]]n        R# )i    N)Event)Callable)OtpConnection)	read_info)REINSERT_STATUSCancelledException)OtpYubiKeyDevice)list_ctap_deviceslist_otp_devicesr   linux)list_devicesZwin32Zdarwinfreebsdc                s$    V ^8  d   QhR\         /# )   return)listZformat   "7/usr/lib/python3.14/site-packages/ykman/hid/__init__.py__annotate__r   9   s     Y Y$ Y    c                  s    \        R 4      h)z3OTP HID support is not implemented on this platform)ZNotImplementedError) r   r   r
   r
   9   s    !"WXXr   c                s\    V ^8  d   QhR\         R\        \        .R3,          R\        RR/# )r   selfreinsert_cbNeventr   )r   r   r   r    r   r   r   r   r   @   s9     ! !
!)1?2CT2I)J!SX!	!r   c                 s  a R pV P                  \        4      ;_uu_ 4       p\        W@P                  4      pR R R 4       V! \        P
                  4       \        P                  RV P                   24       VP                  R4      '       Eg~   \        4       pV Uu0 uF  qwP                  kK  	  ppVfP   V P                  V9  d=   \        P                  RV P                   24       V! \        P                  4       TpK  K  W,
          p	\        V	4      ^8X  d   \        \        V	4      4      o\        P                  RS 24       \        V3R lV 4       4      p
V
P                  V n        V P                  \        4      ;_uu_ 4       p\        W@P                  4      pR R R 4       XP                  XP                  8w  g   VP                   VP                   8w  d   \#        R4      hR # \        V	4      ^8  g   EK  \#        R4      h\%        4       h  + '       g   i     EL; iu upi   + '       g   i     L; i)NzWaiting for removal of device g      ?z	Removed! z
Inserted! c              3   sL   <"   T F  qP                   S8X  g   K  Vx  K  	  R # 5i)N)path)Z.0kdev_fps   & r   Z	<genexpr>Z _otp_reinsert.<locals>.<genexpr>V   s     ?dff.>11ds   $
$z.Reinserted YubiKey does not match the originalzMultiple YubiKeys inserted)Zopen_connectionr   r   Zpidr   ZREMOVEloggerZdebugr   Zwaitr   ZREINSERTZlenZnextZiterZserialZversionZ
ValueErrorr   )r   r   r   Zremoved_stateZconnZinfoZkeysr   ZpresentZaddedZkeyZinfo2r   s   &&&         @r   _otp_reinsertr   @   s    M			m	,	,xx( 
- &&'
LL1$))=>jjoo!#'(4a664( yy'y45O445 ' (
 +E5zQd5k*z&23?d??HH	))-88D%dHH5E 9;;%,,.$,,%--2O$%UVVUa !=>>

; 
-	,	, ) 98s   HH*H/H'	/H?	c                sp    V ^8  d   Qh/ ^ \         9   d"   \        . \        \        ,          3,          ;R&   # )r   r   )__conditional_annotations__r   r   r   r   r   r   r   r      s+    B F E(2t$4556 EC r   )r   ZloggingZsysZ	threadingr    Ztypingr   Zyubikit.core.otpr   Zyubikit.supportr   Zbaser   r   r   Zfidor   Z__all__Z	getLoggerZ__name__r   Zplatformr	   r
   ZwindowsZmacosr   r   r   Z_do_reinsertr   )r   s   @r   <module>r      s   8  
   * % 6 " #  
		8	$ <<7#\\W%\\X#\\Y%Y :F  E!J !.  r   