2026-07-27 11:26:19 +00:00
// Module ID: 12888
// Function ID: 100111
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-27 11:26:19 +00:00
// Dependencies: [57, 5732, 477, 22, 12889, 12890, 12891, 1327, 2]
2026-07-20 16:05:17 +00:00
// Exports: areKeyCombosEqual, getRawCodeFromKey, isKeyboardActivatedMouseEvent, toBrowserEvents, toCombo, toString
2026-07-27 11:26:19 +00:00
// Module 12888 (_createForOfIteratorHelperLoose)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray" ;
import items from "items" ;
import set from "set" ;
import importDefaultResult from "apply" ;
import importDefaultResult1 from "apply" ;
import importDefaultResult2 from "apply" ;
import set from "set" ;
import set from "set" ;
2026-07-20 16:05:17 +00:00
let LinuxKeyToCode ;
2026-07-23 10:11:24 +00:00
let closure_5 ;
const require = arg1 ;
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
function maybePlusConversion ( key ) {
let str = "plus" ;
if ( "+" !== key ) {
str = key ;
}
return str ;
}
function getCodeToKeyLanguageCorrection ( keyCode , key , arg2 ) {
if ( null != arg2 ) {
if ( arg2 !== KeyboardEnvs . WINDOWS ) {
return key ;
}
}
2026-07-27 11:26:19 +00:00
const BACKTICK_CODES = require ( 12890 ) /* _isNativeReflectConstruct */ . BACKTICK_CODES ;
2026-07-20 16:05:17 +00:00
if ( BACKTICK_CODES . has ( keyCode ) ) {
2026-07-27 11:26:19 +00:00
let obj = require ( 12890 ) /* _isNativeReflectConstruct */ ;
2026-07-20 16:05:17 +00:00
const layoutMap = obj . getLayoutMap ( ) ;
const value = layoutMap . get ( "Backquote" ) ;
if ( key === value ) {
return maybePlusConversion ( key ) ;
} else {
obj = { key : value , code : "Backquote" , keyCode } ;
2026-07-27 11:26:19 +00:00
const exactKeyboardEventMatchFromAny = require ( 12890 ) /* _isNativeReflectConstruct */ . getExactKeyboardEventMatchFromAny ( obj ) ;
2026-07-20 16:05:17 +00:00
if ( "\\" === key ) {
if ( "`" === value ) {
return key ;
}
}
if ( null == exactKeyboardEventMatchFromAny ) {
let tmp10 = key ;
if ( null != value ) {
tmp10 = value ;
}
key = tmp10 ;
} else {
key = exactKeyboardEventMatchFromAny . key ;
}
maybePlusConversion ( key ) ;
2026-07-27 11:26:19 +00:00
const obj3 = require ( 12890 ) /* _isNativeReflectConstruct */ ;
2026-07-20 16:05:17 +00:00
const tmp9 = maybePlusConversion ;
}
} else {
return key ;
}
}
function getEnv() {
if ( obj . isLinux ( ) ) {
let MACOS = KeyboardEnvs . LINUX ;
} else {
if ( obj2 . isMac ( ) ) {
MACOS = KeyboardEnvs . MACOS ;
} else {
2026-07-23 10:11:24 +00:00
MACOS = require ( 477 ) /* set */ . isWindows ( ) ? tmp5.WINDOWS : tmp5.BROWSER ;
const obj3 = require ( 477 ) /* set */ ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj2 = require ( 477 ) /* set */ ;
2026-07-20 16:05:17 +00:00
}
return MACOS ;
}
function codeToKey ( arg0 ) {
let tmp5 ;
let tmp6 ;
const tmp = callback ( arg0 , 3 ) ;
[ , tmp5 , tmp6 ] = arg0 ;
if ( KeyboardEnvs . LINUX === tmp6 ) {
let tmp11 = invertResult [ "" + tmp4 ] ;
} else if ( KeyboardEnvs . MACOS === tmp6 ) {
2026-07-23 10:11:24 +00:00
tmp11 = table [ "" + tmp5 ] ;
2026-07-20 16:05:17 +00:00
} else {
if ( KeyboardEnvs . WINDOWS === tmp6 ) {
tmp11 = invertResult1 [ "" + tmp5 ] ;
} else if ( KeyboardEnvs . BROWSER === tmp6 ) {
2026-07-27 11:26:19 +00:00
const tmp15 = importDefault ( 12889 ) ( tmp5 ) ;
2026-07-20 16:05:17 +00:00
let tmp17 = null ;
if ( null != tmp15 ) {
tmp11 = getKeyConversionForBrowser ( tmp15 ) ;
}
} else {
2026-07-23 10:11:24 +00:00
tmp11 = set [ "" + tmp5 ] ;
2026-07-20 16:05:17 +00:00
}
if ( null != tmp17 ) {
return getCodeToKeyLanguageCorrection ( tmp2 , tmp17 , tmp3 ) ;
} else {
2026-07-27 11:26:19 +00:00
const keyboardEventShapeFromKeycode = require ( 12890 ) /* _isNativeReflectConstruct */ . getKeyboardEventShapeFromKeycode ( tmp2 ) ;
2026-07-20 16:05:17 +00:00
let tmp29 = null ;
if ( null != keyboardEventShapeFromKeycode ) {
tmp29 = getCodeToKeyLanguageCorrection ( keyboardEventShapeFromKeycode . keyCode , keyboardEventShapeFromKeycode . key , tmp3 ) ;
}
return tmp29 ;
}
}
let tmp24 = null ;
if ( null != tmp11 ) {
tmp24 = tmp11 ;
}
tmp17 = tmp24 ;
}
function keyToCode ( key ) {
let tmp = arg1 ;
let KEYBOARD_KEY = arg2 ;
if ( arg1 === undefined ) {
tmp = getEnv ( ) ;
}
if ( KEYBOARD_KEY === undefined ) {
KEYBOARD_KEY = constants . KEYBOARD_KEY ;
}
if ( tmp === undefined ) {
tmp = getEnv ( ) ;
}
if ( KEYBOARD_KEY === undefined ) {
KEYBOARD_KEY = constants . KEYBOARD_KEY ;
}
let tmp6 = null ;
if ( null != key ) {
let tmp8 = KEYBOARD_KEY === constants . KEYBOARD_KEY ;
if ( ! tmp8 ) {
tmp8 = KEYBOARD_KEY === constants . KEYBOARD_MODIFIER_KEY ;
}
let tmp10 = tmp8 ;
if ( tmp8 ) {
tmp10 = tmp === KeyboardEnvs . LINUX ;
}
if ( tmp10 === true ) {
let parsed = LinuxKeyToCode [ key ] ;
} else {
let tmp13 = tmp8 ;
if ( tmp8 ) {
tmp13 = tmp === KeyboardEnvs . MACOS ;
}
if ( tmp13 === true ) {
parsed = MacosKeyToCode [ key ] ;
} else {
let tmp15 = tmp8 ;
if ( tmp8 ) {
tmp15 = tmp === KeyboardEnvs . WINDOWS ;
}
if ( tmp15 === true ) {
if ( "+" === key ) {
let plus = WindowsKeyToCode . plus ;
} else {
plus = WindowsKeyToCode [ key ] ;
}
parsed = plus ;
} else {
let tmp17 = tmp8 ;
if ( tmp8 ) {
tmp17 = tmp === KeyboardEnvs . BROWSER ;
}
if ( tmp17 === true ) {
2026-07-27 11:26:19 +00:00
parsed = importDefault ( 12889 ) ( getKeyConversionForBrowser ( key ) ) ;
const tmp30 = importDefault ( 12889 ) ;
2026-07-20 16:05:17 +00:00
} else if ( tmp8 === true ) {
2026-07-23 10:11:24 +00:00
parsed = set [ key ] ;
2026-07-20 16:05:17 +00:00
} else if ( KEYBOARD_KEY === constants . MOUSE_BUTTON === true ) {
const _parseInt2 = parseInt ;
parsed = parseInt ( key . replace ( "MOUSE" , "" ) , 10 ) ;
} else if ( KEYBOARD_KEY === constants . GAMEPAD_BUTTON === true ) {
const _parseInt = parseInt ;
parsed = parseInt ( key . replace ( "GAMEPAD" , "" ) , 10 ) ;
} else {
const _Error = Error ;
const _HermesInternal = HermesInternal ;
const error = new Error ( "Unrecognized DeviceType " + KEYBOARD_KEY + "." ) ;
throw error ;
}
}
}
}
tmp6 = null ;
if ( null != parsed ) {
tmp6 = parsed ;
}
}
if ( null != tmp6 ) {
return tmp6 ;
} else {
2026-07-27 11:26:19 +00:00
const keyboardEventShapeFromKey = require ( 12890 ) /* _isNativeReflectConstruct */ . getKeyboardEventShapeFromKey ( key ) ;
2026-07-20 16:05:17 +00:00
let keyCode = null ;
if ( null != keyboardEventShapeFromKey ) {
keyCode = keyboardEventShapeFromKey . keyCode ;
}
return keyCode ;
}
}
function getKeyConversionForBrowser ( key ) {
const replaced = key . replace ( /^(right|left) (shift|meta|ctrl|alt)$/ , "$2" ) . replace ( "meta" , "command" ) ;
let str2 = "pause/break" ;
if ( "pause" !== replaced ) {
str2 = "pause/break" ;
if ( "break" !== replaced ) {
str2 = replaced ;
}
}
return str2 ;
}
function toPrettyKey ( str ) {
let tmp4 ;
let tmp5 ;
const tmp = _createForOfIteratorHelperLoose ( items ) ;
const iter = tmp ( ) ;
let iter2 = iter ;
if ( ! iter . done ) {
[ tmp4 , tmp5 ] = callback ( iter2 . value , 2 ) ;
while ( tmp4 !== str . toUpperCase ( ) ) {
let iter3 = tmp ( ) ;
iter2 = iter3 ;
}
return tmp5 ;
}
return str ;
}
function toMetaKeyIndexKey ( arg0 ) {
return arg0 + "Key" ;
}
2026-07-23 10:11:24 +00:00
( { KeyboardDeviceTypes : closure_5 , LinuxKeyToCode } = items ) ;
const MacosKeyToCode = items . MacosKeyToCode ;
const WindowsKeyToCode = items . WindowsKeyToCode ;
const KeyboardEnvs = items . KeyboardEnvs ;
set = LinuxKeyToCode ;
if ( ! set . isLinux ( ) ) {
2026-07-20 16:05:17 +00:00
let tmp3 = MacosKeyToCode ;
if ( ! obj3 . isMac ( ) ) {
2026-07-23 10:11:24 +00:00
set = WindowsKeyToCode ;
2026-07-20 16:05:17 +00:00
if ( ! obj4 . isWindows ( ) ) {
2026-07-23 10:11:24 +00:00
set = { } ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp3 = set ;
obj4 = require ( "set" ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
set = tmp3 ;
obj3 = require ( "set" ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const invertResult = require ( "apply" ) . invert ( LinuxKeyToCode ) ;
2026-07-20 16:05:17 +00:00
invertResult [ 223 ] = "`" ;
const frozen = Object . freeze ( invertResult ) ;
2026-07-23 10:11:24 +00:00
let closure_12 = Object . freeze ( require ( "apply" ) . invert ( MacosKeyToCode ) ) ;
const invertResult1 = require ( "apply" ) . invert ( WindowsKeyToCode ) ;
2026-07-20 16:05:17 +00:00
invertResult1 [ 223 ] = "`" ;
const frozen1 = Object . freeze ( invertResult1 ) ;
2026-07-23 10:11:24 +00:00
if ( null == set ) {
set = { } ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
set = require ( "apply" ) . invert ( set ) ;
if ( ! set . isMac ( ) ) {
set [ 223 ] = "`" ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
set = Object . freeze ( set ) ;
items = [ [ "META" , "\u2318" ] , [ "CMD" , "\u2318" ] , [ "RIGHT META" , "RIGHT \u2318" ] , [ "RIGHT CMD" , "RIGHT \u2318" ] , [ "SHIFT" , "\u21E7" ] , [ "RIGHT SHIFT" , "RIGHT \u21E7" ] , [ "ALT" , "\u2325" ] , [ "RIGHT ALT" , "RIGHT \u2325" ] , [ "CTRL" , "\u2303" ] , [ "RIGHT CTRL" , "RIGHT \u2303" ] , [ "ENTER" , "\u21B5" ] , [ "BACKSPACE" , "\u232B" ] , [ "DEL" , "\u2326" ] , [ "ESC" , "\u238B" ] , [ "PAGEUP" , "\u21DE" ] , [ "PAGEDOWN" , "\u21DF" ] , [ "UP" , "\u2191" ] , [ "DOWN" , "\u2193" ] , [ "LEFT" , "\u2190" ] , [ "RIGHT" , "\u2192" ] , [ "HOME" , "\u2196" ] , [ "END" , "\u2198" ] , [ "TAB" , "\u21E5" ] , [ "SPACE" , "\u2423" ] ] ;
const re16 = /shift|meta|ctrl|alt$/ ;
const result = set . fileFinishedImporting ( "utils/web/KeyboardUtils.tsx" ) ;
2026-07-20 16:05:17 +00:00
export const getRawCodeFromKey = function getRawCodeFromKey ( arg0 ) {
let tmp = arg1 ;
if ( arg1 === undefined ) {
tmp = getEnv ( ) ;
}
if ( tmp === KeyboardEnvs . BROWSER ) {
2026-07-27 11:26:19 +00:00
let tmp4 = importDefault ( 12889 ) ( arg0 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp4 = set [ arg0 ] ;
2026-07-20 16:05:17 +00:00
}
return tmp4 ;
} ;
export { getCodeToKeyLanguageCorrection } ;
export { getEnv } ;
export { codeToKey } ;
export { keyToCode } ;
export { getKeyConversionForBrowser } ;
export const toBrowserEvents = function toBrowserEvents ( arr ) {
2026-07-23 10:11:24 +00:00
let closure_0 = { keyCode : 0 , key : "" , code : "" , metaKey : false , shiftKey : false , altKey : false , ctrlKey : false } ;
2026-07-20 16:05:17 +00:00
if ( null == arr ) {
let items = [ ] ;
} else {
items = arr . reduce ( ( arr ) = > {
2026-07-23 10:11:24 +00:00
const tmp = outer1_22 ( arg1 ) ;
2026-07-20 16:05:17 +00:00
let closure_0 = tmp ;
let obj = { } ;
const merged = Object . assign ( closure_0 ) ;
if ( null == tmp ) {
obj = { } ;
const merged1 = Object . assign ( obj ) ;
obj [ "combo" ] = arg1 ;
arr . push ( obj ) ;
return arr ;
} else {
2026-07-23 10:11:24 +00:00
if ( outer1_16 . test ( tmp ) ) {
2026-07-20 16:05:17 +00:00
let tmp3 = "meta" === tmp ;
if ( ! tmp3 ) {
tmp3 = "shift" === tmp ;
}
if ( ! tmp3 ) {
tmp3 = "alt" === tmp ;
}
if ( ! tmp3 ) {
tmp3 = "ctrl" === tmp ;
}
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
closure_0 [ outer1_26 ( tmp ) ] = true ;
2026-07-20 16:05:17 +00:00
return arr . map ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
arg0 [ outer2_26 ( closure_0 ) ] = true ;
2026-07-20 16:05:17 +00:00
return arg0 ;
} ) ;
}
}
2026-07-23 10:11:24 +00:00
const tmp6 = outer1_23 ( tmp , outer1_9 . BROWSER ) ;
2026-07-20 16:05:17 +00:00
if ( null != tmp6 ) {
obj . keyCode = tmp6 ;
}
arr . push ( obj ) ;
return arr ;
}
} , [ ] ) ;
}
return items ;
} ;
export const toCombo = function toCombo ( shortcut ) {
let tmp = arg1 ;
let KEYBOARD_KEY = arg2 ;
if ( arg1 === undefined ) {
tmp = getEnv ( ) ;
}
const global = tmp ;
if ( KEYBOARD_KEY === undefined ) {
KEYBOARD_KEY = constants . KEYBOARD_KEY ;
}
const str = shortcut . replace ( /numpad plus/i , "" ) ;
const str2 = shortcut . replace ( /numpad plus/i , "" ) . replace ( /NUMPAD \+/i , "numpad plus" ) ;
2026-07-27 11:26:19 +00:00
const parts = shortcut . replace ( /numpad plus/i , "" ) . replace ( /NUMPAD \+/i , "numpad plus" ) . replace ( /mod/i , KEYBOARD_KEY ( 12891 ) . modKey ) . split ( "+" ) ;
2026-07-20 16:05:17 +00:00
const mapped = parts . map ( ( str ) = > str . trim ( ) . replace ( "plus" , "+" ) ) ;
return mapped . reduce ( ( arr , str ) = > {
let tmp5 ;
2026-07-23 10:11:24 +00:00
const tmp = outer1_17 ( outer1_15 ) ;
2026-07-20 16:05:17 +00:00
const iter = tmp ( ) ;
let iter2 = iter ;
let formatted = str ;
if ( ! iter . done ) {
2026-07-23 10:11:24 +00:00
[ str , tmp5 ] = outer1_4 ( iter2 . value , 2 ) ;
2026-07-20 16:05:17 +00:00
while ( tmp5 !== str . toUpperCase ( ) ) {
let iter3 = tmp ( ) ;
iter2 = iter3 ;
formatted = str ;
}
formatted = str . toLowerCase ( ) ;
2026-07-23 10:11:24 +00:00
const tmp4 = outer1_4 ( iter2 . value , 2 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp6 = outer1_23 ( formatted , closure_0 , KEYBOARD_KEY ) ;
2026-07-20 16:05:17 +00:00
if ( null != tmp6 ) {
2026-07-23 10:11:24 +00:00
const items = [ KEYBOARD_KEY , tmp6 , closure_0 ] ;
2026-07-20 16:05:17 +00:00
arr . push ( items ) ;
}
return arr ;
} , [ ] ) ;
} ;
export const toString = function toString ( arr ) {
let flag = arg1 ;
if ( arg1 === undefined ) {
flag = false ;
}
const mapped = arr . map ( ( arg0 ) = > {
let tmp ;
let tmp2 ;
let tmp3 ;
[ tmp , tmp2 , tmp3 ] = arg0 ;
if ( "number" !== typeof tmp3 ) {
2026-07-23 10:11:24 +00:00
tmp3 = outer1_21 ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( outer1_5 . KEYBOARD_KEY !== tmp ) {
if ( outer1_5 . KEYBOARD_MODIFIER_KEY !== tmp ) {
if ( outer1_5 . MOUSE_BUTTON === tmp ) {
2026-07-20 16:05:17 +00:00
const _HermesInternal3 = HermesInternal ;
return "mouse" + tmp2 ;
2026-07-23 10:11:24 +00:00
} else if ( outer1_5 . GAMEPAD_BUTTON === tmp ) {
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
return "gamepad" + tmp2 ;
} else {
const _HermesInternal = HermesInternal ;
return "dev" + tmp + "," + tmp2 ;
}
}
}
if ( null != tmp3 ) {
const items = [ tmp , tmp2 , tmp3 ] ;
let items1 = items ;
} else {
items1 = [ tmp , tmp2 ] ;
}
2026-07-23 10:11:24 +00:00
let combined = outer1_22 ( items1 ) ;
2026-07-20 16:05:17 +00:00
if ( null == combined ) {
const _HermesInternal4 = HermesInternal ;
combined = "UNK" + tmp2 ;
}
return combined ;
} ) ;
2026-07-23 10:11:24 +00:00
const found = mapped . filter ( require ( 1327 ) /* isDiscordFrontendDevelopment */ . isNotNullish ) ;
2026-07-20 16:05:17 +00:00
if ( flag ) {
const appVersion = global . navigator . appVersion ;
let mapped1 = found ;
if ( - 1 !== appVersion . indexOf ( "Mac OS X" ) ) {
mapped1 = found . map ( toPrettyKey ) ;
}
let formatted = mapped1 . join ( " + " ) . toUpperCase ( ) ;
const str4 = mapped1 . join ( " + " ) ;
} else {
formatted = found . join ( "+" ) ;
}
return formatted ;
} ;
export const areKeyCombosEqual = function areKeyCombosEqual ( arr ) {
let flag = arg2 ;
2026-07-23 10:11:24 +00:00
let closure_0 = arg1 ;
2026-07-20 16:05:17 +00:00
if ( arg2 === undefined ) {
flag = false ;
}
return arr . length === arg1 . length && arr . every ( ( arg0 , arg1 ) = > {
let tmp ;
let tmp2 ;
let tmp3 ;
[ tmp , tmp2 , tmp3 ] = arg0 ;
2026-07-23 10:11:24 +00:00
const tmp4 = outer1_4 ( table [ arg1 ] , 3 ) ;
2026-07-20 16:05:17 +00:00
let tmp5 = tmp === tmp4 [ 0 ] ;
if ( tmp5 ) {
tmp5 = tmp2 === tmp4 [ 1 ] ;
}
if ( tmp5 ) {
tmp5 = ! flag || tmp3 === tmp4 [ 2 ] ;
const tmp7 = ! flag || tmp3 === tmp4 [ 2 ] ;
}
return tmp5 ;
} ) ;
} ;
export const isKeyboardActivatedMouseEvent = function isKeyboardActivatedMouseEvent ( nativeEvent ) {
let tmp = null != nativeEvent ;
if ( tmp ) {
tmp = "object" === typeof nativeEvent ;
}
if ( tmp ) {
tmp = "nativeEvent" in nativeEvent ;
}
if ( tmp ) {
tmp = 0 === nativeEvent . nativeEvent . clientX ;
}
if ( tmp ) {
tmp = 0 === nativeEvent . nativeEvent . clientY ;
}
return tmp ;
} ;