1import{a as p}from"./chunk-5DVA57NX.js";import{da as u,f as c,ia as l}from"./chunk-CBMNWK2I.js";var f=class o{constructor(e){this.http=e}apiUrl="https://backend-dot-schnopsncom.appspot.com/livestream_info";getLivestreamInfo(){return this.http.get(this.apiUrl)}parseStreamDate(e){if(e.includes("T"))return new Date(e);{let t=new Date().getFullYear(),[r,n]=e.trim().split(" "),a=r.replace(/\.$/,""),[s,i]=a.split("."),[g,b]=n.split(":"),m=new Date(t,parseInt(i)-1,parseInt(s),parseInt(g),parseInt(b));return m<new Date&&m.setFullYear(t+1),m}}isStreamLive(e,t,r){if(r===!0)return!0;if(t!==void 0)return t;let n=new Date,a=e.getTime()-n.getTime();return Math.abs(a)<=5*60*1e3}checkActualStreamStatus(){return c(this,null,function*(){})}getTimeUntilStream(e){let t=new Date,r=e.getTime()-t.getTime();if(r<=0)return{days:0,hours:0,minutes:0,seconds:0};let n=Math.floor(r/(1e3*60*60*24)),a=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),s=Math.floor(r%(1e3*60*60)/(1e3*60)),i=Math.floor(r%(1e3*60)/1e3);return{days:n,hours:a,minutes:s,seconds:i}}static \u0275fac=function(t){return new(t||o)(l(p))};static \u0275prov=u({token:o,factory:o.\u0275fac,providedIn:"root"})};export{f 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.