import{b1 as f}from"./Dk4AzF7j.js";const I="menu.itemSelect",E=["Enter"," "],_=["ArrowDown","PageUp","Home"],d=["ArrowUp","PageDown","End"],T=[..._,...d],w={ltr:[...E,"ArrowRight"],rtl:[...E,"ArrowLeft"]},P={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Y(t){return t?"open":"closed"}function l(t){return t==="indeterminate"}function x(t){return l(t)?"indeterminate":t?"checked":"unchecked"}function g(t){const e=f();for(const n of t)if(n===e||(n.focus(),f()!==e))return}function m(t,e){const{x:n,y:s}=t;let o=!1;for(let r=0,i=e.length-1;r<e.length;i=r++){const a=e[r].x,c=e[r].y,S=e[i].x,u=e[i].y;c>s!=u>s&&n<(S-a)*(s-c)/(u-c)+a&&(o=!o)}return o}function h(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return m(n,e)}function K(t){return t.pointerType==="mouse"}export{T as F,I,d as L,E as S,K as a,x as b,l as c,P as d,w as e,g as f,Y as g,h as i};
