text: /*! Built with http://stenciljs.com */
  const{h:t}=window.App;import{c as e,d as n}from"./chunk-b59b7ee0.js";function o(t){let o,a,d=10*-r,u=0,f=!1;const l=new WeakMap;function p(t){d=e(t),m(t)}function v(){clearTimeout(a),o&&(w(!1),o=void 0),f=!0}function h(t){o||(f=!1,L(function(t){if(!t.composedPath)return t.target.closest("[ion-activable]");{const e=t.composedPath();for(let t=0;t<e.length-2;t++){const n=e[t];if(n.hasAttribute&&n.hasAttribute("ion-activable"))return n}}}(t),t))}function m(t){L(void 0,t),f&&t.cancelable&&t.preventDefault()}function L(t,e){if(t&&t===o)return;clearTimeout(a),a=void 0;const{x:s,y:r}=n(e);if(o){if(l.has(o))throw new Error("internal error");o.classList.contains(i)||b(o,s,r),w(!0)}if(t){const e=l.get(t);e&&(clearTimeout(e),l.delete(t)),t.classList.remove(i),a=setTimeout(()=>{b(t,s,r),a=void 0},c)}o=t}function b(t,e,n){u=Date.now(),t.classList.add(i);const o=function(t){if(t.shadowRoot){const e=t.shadowRoot.querySelector("ion-ripple-effect");if(e)return e}return t.querySelector("ion-ripple-effect")}(t);o&&o.addRipple&&o.addRipple(e,n)}function w(t){const e=o;if(!e)return;const n=s-Date.now()+u;if(t&&n>0){const t=setTimeout(()=>{e.classList.remove(i),l.delete(e)},s);l.set(e,t)}else e.classList.remove(i)}t.body.addEventListener("click",function(t){f&&(t.preventDefault(),t.stopPropagation())},!0),t.body.addEventListener("ionScrollStart",v),t.body.addEventListener("ionGestureCaptured",v),t.addEventListener("touchstart",function(t){d=e(t),h(t)},!0),t.addEventListener("touchcancel",p,!0),t.addEventListener("touchend",p,!0),t.addEventListener("mousedown",function(t){const n=e(t)-r;d<n&&h(t)},!0),t.addEventListener("mouseup",function(t){const n=e(t)-r;d<n&&m(t)},!0)}const i="activated",c=200,s=200,r=2500;export{o as startTapClick};