System.register(["./p-df0014ec.system.js"],(function(t){"use strict";var n;return{setters:[function(t){n=t.b}],execute:function(){var i=function(){function t(){this.x=0;this.y=0;this.disabled=false}t.disableSmoothScrolling=function(){this.setScrollBehavior("auto")};t.enableSmoothScrolling=function(){this.setScrollBehavior("smooth")};t.setScrollBehavior=function(t){var i;if(n.hasDocument){var o=document;var u=document.body;u.style.scrollBehavior=t;var e=(i=o.firstChild)===null||i===void 0?void 0:i.nextSibling;var s=getComputedStyle(e);if(s.scrollBehavior==="smooth"){e.style.scrollBehavior=t}}};t.prototype.connect=function(t){if(t){this.target=t}else{if(n.hasDocument){this.target=document}}onscroll=null;onkeydown=null};t.prototype.disconnect=function(){if(this.disabled){this.enable()}this.target=undefined;onscroll=null;onkeydown=null};t.prototype.isDisabled=function(){return this.disabled};t.prototype.enable=function(){if(this.target){if(n.hasWindow&&n.hasDocument){document.body.classList.remove("noscroll");document.body.style.position="";document.body.style.top="";document.body.style.width="";window.scrollTo(this.x,this.y);this.disabled=false}}};t.prototype.disable=function(){if(this.target){if(n.hasWindow&&n.hasDocument){this.x=window.pageXOffset||document.documentElement.scrollLeft;this.y=window.pageYOffset||document.documentElement.scrollTop;document.body.classList.add("noscroll");document.body.style.position="fixed";document.body.style.top="-".concat(this.y,"px");document.body.style.width="100%";this.disabled=true}}};return t}();t("B",i)}}}));