"use strict";function querySelector(t){return"undefined"!=typeof document?document.querySelector(t):null}function html2Str(t){return t.split(/<[^>]+>/).map((t=>t.trim())).filter((t=>t.length>0)).join(" ")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.html2Str=exports.querySelector=void 0,exports.querySelector=querySelector,exports.html2Str=html2Str,"undefined"==typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(t){t=0===arguments.length||!!t;const e=this.parentNode,o=window.getComputedStyle(e,void 0),l=parseInt(o.getPropertyValue("border-top-width"),10),r=parseInt(o.getPropertyValue("border-left-width"),10),i=this.offsetTop-e.offsetTop<e.scrollTop,f=this.offsetTop-e.offsetTop+this.clientHeight-l>e.scrollTop+e.clientHeight,s=this.offsetLeft-e.offsetLeft<e.scrollLeft,n=this.offsetLeft-e.offsetLeft+this.clientWidth-r>e.scrollLeft+e.clientWidth,c=i&&!f;(i||f)&&t&&(e.scrollTop=this.offsetTop-e.offsetTop-e.clientHeight/2-l+this.clientHeight/2),(s||n)&&t&&(e.scrollLeft=this.offsetLeft-e.offsetLeft-e.clientWidth/2-r+this.clientWidth/2),(i||f||s||n)&&!t&&this.scrollIntoView(c)});
//# sourceMappingURL=dom.js.map