1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[94239],{4239:(t,i,e)=>{e.r(i),e.d(i,{default:()=>l});var s=e(9568),o=e(9610);class l extends s.Z{init(){this._button=this.el.querySelector(this.options.buttonSelector),this._defaultPadding=window.getComputedStyle(this._button).getPropertyValue("bottom"),this._assignDebouncedOnScrollEvent(),this._addBodyPadding(),this._registerEvents()}_registerEvents(){this._button&&(this._toggleVisibility(),this._button.addEventListener("click",()=>{this._scrollToTop(),this.$emitter.publish("onClickButton")})),document.addEventListener("scroll",this._debouncedOnScroll,!1),new MutationObserver(this._addBodyPadding.bind(this)).observe(document.body,{attributes:!0,attributeFilter:["style"]})}_assignDebouncedOnScrollEvent(){this._debouncedOnScroll=o.Z.debounce(this._toggleVisibility.bind(this),this.options.scrollDebounceTime)}_scrollToTop(){window.scrollTo({top:0,behavior:"smooth"}),this._focusFirstElement(),this.$emitter.publish("scrollToTop")}_focusFirstElement(){let t=document.getElementById(this.options.topElementId);window.focusHandler.setFocus(t,{preventScroll:!0})}_toggleVisibility(){window.scrollY>this.options.visiblePos?this._button.classList.add(this.options.visibleCls):this._button.classList.remove(this.options.visibleCls),this.$emitter.publish("toggleVisibility")}_addBodyPadding(){this._button.style.bottom="calc(".concat(this._defaultPadding," + ").concat(document.body.style.paddingBottom||"0px",")")}}l.options={scrollDebounceTime:35,buttonSelector:".js-scroll-up-button",visiblePos:250,visibleCls:"is-visible",topElementId:"page-top"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.