System.register(["./index-legacy.DRKniymH.js","./keyboard-legacy.ItkZdbDJ.js"],(function(e,n){"use strict";var t,o,i,l,r,u,a,c,d;return{setters:[e=>{t=e.E,o=e.r,i=e.A,l=e.a9,r=e.k},e=>{u=e.g,a=e.o,c=e.w,d=e.h}],execute:function(){function n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function s(){return n()||/Android/gi.test(window.navigator.userAgent)}function v(e,n,o){u.isServer||t((t=>{document.addEventListener(e,n,o),t((()=>document.removeEventListener(e,n,o)))}))}function f(e,n,o){u.isServer||t((t=>{window.addEventListener(e,n,o),t((()=>window.removeEventListener(e,n,o)))}))}e({a:f,b:n,l:p,n:s,s:function(){return null!==p()},t:function(e){l(m,e)},w:function(e,n,t=i((()=>!0))){function l(o,i){if(!t.value||o.defaultPrevented)return;let l=i(o);if(null===l||!l.getRootNode().contains(l))return;let r=function e(n){return"function"==typeof n?e(n()):Array.isArray(n)||n instanceof Set?n:[n]}(e);for(let e of r){if(null===e)continue;let n=e instanceof HTMLElement?e:a(e);if(null!=n&&n.contains(l)||o.composed&&o.composedPath().includes(n))return}return!c(l,d.Loose)&&-1!==l.tabIndex&&o.preventDefault(),n(o,l)}let r=o(null);v("pointerdown",(e=>{var n,o;t.value&&(r.value=(null==(o=null==(n=e.composedPath)?void 0:n.call(e))?void 0:o[0])||e.target)}),!0),v("mousedown",(e=>{var n,o;t.value&&(r.value=(null==(o=null==(n=e.composedPath)?void 0:n.call(e))?void 0:o[0])||e.target)}),!0),v("click",(e=>{s()||r.value&&(l(e,(()=>r.value)),r.value=null)}),!0),v("touchend",(e=>l(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),f("blur",(e=>l(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}});let m=Symbol("Context");var g,w=e("i",((g=w||{})[g.Open=1]="Open",g[g.Closed=2]="Closed",g[g.Closing=4]="Closing",g[g.Opening=8]="Opening",g));function p(){return r(m,null)}}}}));
