"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function i(e){return e!=null&&e===e.window}function l(e,u){if(typeof window>"u")return 0;const o="scrollTop";let n=0;return i(e)?n=e.scrollY:e instanceof Document?n=e.documentElement[o]:(e instanceof HTMLElement||e)&&(n=e[o]),e&&!i(e)&&typeof n!="number"&&(n=(e.ownerDocument??e).documentElement?.[o]),n}exports.default=l;exports.isWindow=i;
