function KeyEventDecoder(e,r){"use strict";function t(e){for(var t=0;te.length:y>0}function s(e,r){if(0===e.length)return!1;for(var t=0;t=48&&e<=57)return e;if(e>=65&&e<=90)return r?e:e+32;if(e>=96&&e<=105)return XK_KP_0+(e-96);switch(e){case 32:return XK_space;case 106:return XK_KP_Multiply;case 107:return XK_KP_Add;case 108:return XK_KP_Separator;case 109:return XK_KP_Subtract;case 110:return XK_KP_Decimal;case 111:return XK_KP_Divide;case 187:return XK_plus;case 188:return XK_comma;case 189:return XK_minus;case 190:return XK_period}return c({keyCode:e})}function c(e){if(!e.keyCode)return null;var r=e.keyCode;if(r>=112&&r<=135)return XK_F1+r-112;switch(r){case 8:return XK_BackSpace;case 13:return XK_Return;case 9:return XK_Tab;case 27:return XK_Escape;case 46:return XK_Delete;case 36:return XK_Home;case 35:return XK_End;case 33:return XK_Page_Up;case 34:return XK_Page_Down;case 45:return XK_Insert;case 37:return XK_Left;case 38:return XK_Up;case 39:return XK_Right;case 40:return XK_Down;case 16:return XK_Shift_L;case 17:return XK_Control_L;case 18:return XK_Alt_L;case 224:return XK_Meta_L;case 225:return XK_ISO_Level3_Shift;case 91:return XK_Super_L;case 92:return XK_Super_R;case 93:return XK_Menu;default:return null}}return{hasShortcutModifier:y,hasCharModifier:s,ModifierSync:a,getKey:u,getKeysym:i,keysymFromKeyCode:o,nonCharacterKey:c,substituteCodepoint:e}}();