export default function getScroll(e,t){if("undefined"==typeof window)return 0;var n=t?"scrollTop":"scrollLeft",o=e===window,f=o?e[t?"pageYOffset":"pageXOffset"]:e[n];return o&&"number"!=typeof f&&(f=window.document.documentElement[n]),f};