PageSourceSearch

https://www.vzug.com/scripts-SQVFMHEX.js

js vzug.com collected 2026-10-01 11:24:05 UTC 4,788 bytes, 6 lines download raw bytes

1/**
2 * what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
3 * @version v5.2.12
4 * @link https://github.com/ten1seven/what-input
5 * @license MIT
6 */(function(r,u){typeof exports=="object"&&typeof module=="object"?module.exports=u():typeof define=="function"&&define.amd?define("whatInput",[],u):typeof exports=="object"?exports.whatInput=u():r.whatInput=u()})(this,function(){return f={},r.m=u=[function(s,c){"use strict";s.exports=(function(){if(typeof document>"u"||typeof window>"u")return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var w=document.documentElement,h=null,o="initial",i=o,M=Date.now(),O=!1,N=["button","input","select","textarea"],a=[],k=[16,17,18,91,93],v=[],L={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},y=!1,g={x:null,y:null},T={2:"touch",3:"touch",4:"mouse"},A=!1;try{var j=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",null,j)}catch{}var K=function(){var e=!A||{passive:!0,capture:!0};document.addEventListener("DOMContentLoaded",R,!0),window.PointerEvent?(window.addEventListener("pointerdown",d,!0),window.addEventListener("pointermove",E,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",d,!0),window.addEventListener("MSPointerMove",E,!0)):(window.addEventListener("mousedown",d,!0),window.addEventListener("mousemove",E,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",d,e),window.addEventListener("touchend",d,!0))),window.addEventListener(P(),E,e),window.addEventListener("keydown",d,!0),window.addEventListener("keyup",d,!0),window.addEventListener("focusin",X,!0),window.addEventListener("focusout",C,!0)},R=function(){if(O=!(w.getAttribute("data-whatpersist")==="false"||document.body.getAttribute("data-whatpersist")==="false"))try{window.sessionStorage.getItem("what-input")&&(o=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(i=window.sessionStorage.getItem("what-intent"))}catch{}l("input"),l("intent")},d=function(e){var t=e.which,n=L[e.type];n==="pointer"&&(n=I(e));var p=!v.length&&k.indexOf(t)===-1,x=v.length&&v.indexOf(t)!==-1,S=n==="keyboard"&&t&&(p||x)||n==="mouse"||n==="touch";if(D(n)&&(S=!1),S&&o!==n&&(b("input",o=n),l("input")),S&&i!==n){var m=document.activeElement;m&&m.nodeName&&(N.indexOf(m.nodeName.toLowerCase())===-1||m.nodeName.toLowerCase()==="button"&&!z(m,"form"))&&(b("intent",i=n),l("intent"))}},l=function(e){w.setAttribute("data-what"+e,e==="input"?o:i),Y(e)},E=function(e){var t=L[e.type];t==="pointer"&&(t=I(e)),q(e),(!y&&!D(t)||y&&e.type==="wheel"||e.type==="mousewheel"||e.type==="DOMMouseScroll")&&i!==t&&(b("intent",i=t),l("intent"))},X=function(e){e.target.nodeName?(h=e.target.nodeName.toLowerCase(),w.setAttribute("data-whatelement",h),e.target.classList&&e.target.classList.length&&w.setAttribute("data-whatclasses",e.target.classList.toString().replace(" ",","))):C()},C=function(){h=null,w.removeAttribute("data-whatelement"),w.removeAttribute("data-whatclasses")},b=function(e,t){if(O)try{window.sessionStorage.setItem("what-"+e,t)}catch{}},I=function(e){return typeof e.pointerType=="number"?T[e.pointerType]:e.pointerType==="pen"?"touch":e.pointerType},D=function(e){var t=Date.now(),n=e==="mouse"&&o==="touch"&&t-M<200;return M=t,n},P=function(){return"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll"},Y=function(e){for(var t=0,n=a.length;t<n;t++)a[t].type===e&&a[t].fn.call(void 0,e==="input"?o:i)},q=function(e){g.x!==e.screenX||g.y!==e.screenY?(y=!1,g.x=e.screenX,g.y=e.screenY):y=!0},z=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(L[P()]="mouse",K()),{ask:function(e){return e==="intent"?i:o},element:function(){return h},ignoreKeys:function(e){k=e},specificKeys:function(e){v=e},registerOnChange:function(e,t){a.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=(function(n){for(var p=0,x=a.length;p<x;p++)if(a[p].fn===n)return p})(e);!t&&t!==0||a.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}})()}],r.c=f,r.p="",r(0);function r(s){if(f[s])return f[s].exports;var c=f[s]={exports:{},id:s,loaded:!1};return u[s].call(c.exports,c,c.exports,r),c.loaded=!0,c.exports}var u,f});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.