import e from"../node_modules/compute-scroll-into-view/dist/index.module.js";function o(e){return e===Object(e)&&0!==Object.keys(e).length}function t(t,n){var r=!t.ownerDocument.documentElement.contains(t);if(o(n)&&"function"==typeof n.behavior)return n.behavior(r?[]:e(t,n));if(!r){var i=function(e){return!1===e?{block:"end",inline:"nearest"}:o(e)?e:{block:"start",inline:"nearest"}}(n);return function(e,o){void 0===o&&(o="auto");var t="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,r=e.top,i=e.left;n.scroll&&t?n.scroll({top:r,left:i,behavior:o}):(n.scrollTop=r,n.scrollLeft=i)}))}(e(t,i),i.behavior)}}export default t;
//# sourceMappingURL=index.js.map
