quarkd
Version:
Mobile UI Components built on Web Components.
2 lines (1 loc) • 1.29 kB
JavaScript
import{e as r}from"./index2.js";var t=window;function e(r){return"HTML"!==r.tagName&&"BODY"!==r.tagName&&1===r.nodeType}function n(r){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=r;i&&i!==n&&e(i);){var o=window.getComputedStyle(i),a=o.display,u=o.height,l=o.visibility;if("none"===a||u.startsWith("0")||"hidden"===l)return i;i=i.parentNode}return null}var i=/scroll|auto/i;function o(r){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,o=r;o&&o!==n&&e(o);){var a=window.getComputedStyle(o),u=a.overflowY;if(i.test(u))return o;o=o.parentNode}return n}var a={}.hasOwnProperty;function u(){for(var t=[],e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];if(n){var i=r(n);if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var o=u.apply(null,n);o&&t.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var l in n)a.call(n,l)&&n[l]&&t.push(l);else t.push(n.toString())}}return t.join(" ")}function l(r,t){var e;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];clearTimeout(e),e=setTimeout((function(){return r.apply(void 0,i)}),t)}}var s=function(r,t,e){return Math.min(Math.max(r,t),e)};export{o as a,s as b,u as c,l as d,n as g};