import{at as e}from"./runtime-core.esm-bundler-Babufkcf.js";var t={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{let e=Object.defineProperty({},"passive",{get(){Object.assign(t,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener(`qtest`,null,e),window.removeEventListener(`qtest`,null,e)}catch{}function n(){}function r(e){return e.button===0}function i(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function a(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();let t=[],n=e.target;for(;n;){if(t.push(n),n.tagName===`HTML`)return t.push(document,window),t;n=n.parentElement}}function o(e){e.stopPropagation()}function s(e){e.cancelable!==!1&&e.preventDefault()}function c(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function l(e,n){if(e===void 0||n&&e.__dragPrevented)return;let r=n?e=>{e.__dragPrevented=!0,e.addEventListener(`dragstart`,s,t.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener(`dragstart`,s,t.notPassiveCapture)};e.querySelectorAll(`a, img`).forEach(r)}function u(e,n,r){let i=`__q_${n}_evt`;e[i]=[...e[i]??[],...r],r.forEach(n=>{n[0].addEventListener(n[1],e[n[2]],t[n[3]])})}function d(e,n){let r=`__q_${n}_evt`;e[r]!==void 0&&(e[r].forEach(n=>{n[0].removeEventListener(n[1],e[n[2]],t[n[3]])}),e[r]=void 0)}function f(e,t){let n=e.style;for(let e in t)n[e]=t[e]}function p(t){if(t==null)return;if(typeof t==`string`)try{return document.querySelector(t)||void 0}catch{return}let n=e(t);if(n)return n.$el||n}function m(e,t){if(e==null||e.contains(t))return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}export{d as a,t as c,s as d,l as f,u as i,n as l,c as m,f as n,a as o,o as p,p as r,r as s,m as t,i as u};