D,biLSrSSKJr SSKJr SSKJr SSKJr "SS5rg ) zv OS-independent base for an event and VT sequence scanner See unix_eventqueue and windows_eventqueue for subclasses. )deque)keymap)Event)tracec\rSrSrS\S\\\4SS4SjrS\S-4Sjr S\ 4Sjr S\ 4S jr S \SS4S jrS \\-SS4S jrSrg)BaseEventQueue!encoding keymap_dictreturnNc[R"U5UlURUl[SURS9 Xl[ 5Ul[5Ulg)Nz keymap {k!r}k) rcompile_keymapcompiled_keymaprr revents bytearraybuf)selfr r s >/opt/alt/python313/lib64/python3.13/_pyrepl/base_eventqueue.py__init__BaseEventQueue.__init__"sG%44[A**  n , $)G ;cZUR(aURR5$g)z* Retrieves the next event from the queue. N)rpopleftrs rgetBaseEventQueue.get*s! ;;;;&&( (rc$UR(+$)z Checks if the queue is empty. )rrs remptyBaseEventQueue.empty3s;;rc<URn[5UlU$)z. Flushes the buffer and returns its contents. )rr)rolds r flush_bufBaseEventQueue.flush_buf9shh; reventcN[SUS9 URRU5 g)z" Inserts an event into the queue. zadded event {event})r'N)rrappend)rr's rinsertBaseEventQueue.insertAs! #51 5!rcharc h[U[[45(de[U[5(aUO [U5nUR 5nUR R U5 XR;aURURLa[UR 5S:XdeURUn[SUS9 [U[5(aX0lg UR[SU[UR5555 URUlg UR (awUR SS:Xad[S5 URUlUR[SSS 55 UR5SS HnURU5 M g [UR 5R!UR"5nUR[SU[UR5555 URUlg ![$a g f=f) zQ Processes a character by updating the buffer and handling special key mappings. rzfound map {k!r}rkeyrz,unrecognized escape sequence, propagating...N) isinstanceintbytesordto_bytesrr)rrlenrdictr*rr%pushdecoder UnicodeError)rr,ord_charr_cdecodeds rr9BaseEventQueue.pushHs$e ----%dC004c$i  " ! ;; {{d222488}))) D!A #q )!T""  E%E$..2B,CDE"22 XX$((1++ @ A..DK KKeVW5 6nn&qr* " + L/00? E%%8H2IJK..DK    s1.H$$ H10H1)rrr rr)__name__ __module__ __qualname____firstlineno__strr8r4rrrboolr!rr%r*r3r9__static_attributes__rrr r !sw4s 3CUT\t 9"E"d"&/u&/&/rr N) __doc__ collectionsrrconsolerrr rGrrrLs$* M/M/r