import{c as G}from"./chunk-5XVCUSSZ.js";var J=G((W,w)=>{(function(m,M,Q){if(!m)return;for(var v={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},E={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},q={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},T={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k,c=1;c<20;++c)v[111+c]="f"+c;for(c=0;c<=9;++c)v[c+96]=c.toString();function K(e,r,n){if(e.addEventListener){e.addEventListener(r,n,!1);return}e.attachEvent("on"+r,n)}function x(e){if(e.type=="keypress"){var r=String.fromCharCode(e.which);return e.shiftKey||(r=r.toLowerCase()),r}return v[e.which]?v[e.which]:E[e.which]?E[e.which]:String.fromCharCode(e.which).toLowerCase()}function R(e,r){return e.sort().join(",")===r.sort().join(",")}function F(e){var r=[];return e.shiftKey&&r.push("shift"),e.altKey&&r.push("alt"),e.ctrlKey&&r.push("ctrl"),e.metaKey&&r.push("meta"),r}function B(e){if(e.preventDefault){e.preventDefault();return}e.returnValue=!1}function N(e){if(e.stopPropagation){e.stopPropagation();return}e.cancelBubble=!0}function P(e){return e=="shift"||e=="ctrl"||e=="alt"||e=="meta"}function V(){if(!k){k={};for(var e in v)e>95&&e<112||v.hasOwnProperty(e)&&(k[v[e]]=e)}return k}function H(e,r,n){return n||(n=V()[e]?"keydown":"keypress"),n=="keypress"&&r.length&&(n="keydown"),n}function U(e){return e==="+"?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function L(e,r){var n,o,h,y=[];for(n=U(e),h=0;h1){Y(t,d,f,s);return}a=L(t,s),r._callbacks[a.key]=r._callbacks[a.key]||[],D(a.key,a.modifiers,{type:a.action},i,t,u),r._callbacks[a.key][i?"unshift":"push"]({callback:f,modifiers:a.modifiers,action:a.action,seq:i,level:u,combo:t})}r._bindMultiple=function(t,f,s){for(var i=0;i-1||I(r,n.target))return!1;if("composedPath"in e&&typeof e.composedPath=="function"){var o=e.composedPath()[0];o!==e.target&&(r=o)}return r.tagName=="INPUT"||r.tagName=="SELECT"||r.tagName=="TEXTAREA"||r.isContentEditable},l.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},l.addKeycodes=function(e){for(var r in e)e.hasOwnProperty(r)&&(v[r]=e[r]);k=null},l.init=function(){var e=l(M);for(var r in e)r.charAt(0)!=="_"&&(l[r]=function(n){return function(){return e[n].apply(e,arguments)}}(r))},l.init(),m.Mousetrap=l,typeof w!="undefined"&&w.exports&&(w.exports=l),typeof define=="function"&&define.amd&&define(function(){return l})})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)});export{J as a}; //# sourceMappingURL=chunk-5SHCNQ2O.js.map