1import{k as u}from"./chunk-XNTCN5LM.js";import{B as l,Nc as p,Oa as d,R as c,aa as o,fd as m,ia as a,id as f,nc as i,qa as n,r as s}from"./chunk-5LGYDGR4.js";var D=(()=>{class t{constructor(){this.router=o(f),this.viewportScroller=o(p),this.readyToScroll=i.required(),this.pageName=i.required(),this.scrollRestored=new a,this.restored=!1,this.scrollRestorationEffect=n(()=>{if(this.restored)return;let e=this.readyToScroll(),r=this.listenToScrollRestoration();e&&r&&(this.restored=!0,this.viewportScroller.scrollToPosition(r),this.scrollRestored.emit())}),this.listenToScrollRestoration=u(this.router.events.pipe(c(()=>!this.restored),l(e=>e instanceof m),s(e=>e.position??[0,0])))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275dir=d({type:t,selectors:[["","fxScrollRestoration",""]],inputs:{readyToScroll:[1,"readyToScroll"],pageName:[1,"pageName"]},outputs:{scrollRestored:"scrollRestored"}})}}return t})();export{D as a};
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.