1import{Tt as e}from"./D9d_4q1I.js";import{t}from"./CUahCeih.js";import{a as n,n as r}from"./LEvys-hS.js";import{n as i}from"./VDNGn_c4.js";import{i as a,t as o}from"./CkBzp_Ih.js";function s(e,t){let n=t.map(e=>e.trim().replace(/\/+$/,``)).filter(e=>e.startsWith(`/`)&&e.length>1);return n.length?n.some(t=>e.some(e=>(`/`+e.trim().replace(/^\/+|\/+$/g,``)+`/`).includes(t+`/`))):!1}var c=r(`frequencyStore`,()=>{let r=e({}),s=i(`frequencyStorage`,a);s.value||={readArticles:[],clickedArticles:[]};let{isLoggedIn:c}=n(o()),l=e=>{r.value=e},u=(e,t)=>{r.value[e]=t},d=(e,t)=>!r.value[e]||r.value[e].length===0?t:r.value[e].shift().id,f=async e=>{try{let n=await t(`/api/frequency/all`,{method:`GET`});if(!n.includes(Number(e))){if(n.length>=60){let e=n[n.length-1];await t(`/api/frequency/${e}`,{method:`DELETE`})}await t(`/api/frequency/${e}`,{method:`POST`})}}catch(e){console.error(`Error while reading article in user api`,e)}},p=async e=>{m(e)||s.value.readArticles.push(e),c.value&&await f(e)},m=e=>s.value&&s.value.readArticles?s.value.readArticles.includes(e):!1,h=e=>{g(e)||s.value.clickedArticles.push(e)},g=e=>s.value&&s.value.clickedArticles?s.value.clickedArticles.includes(e):!1;return{readArticle:p,getArticleIdForTeaserCluster:d,clickedArticle:h,isClickedArticle:g,isReadArticle:m,setArticleIdsForTeaserCluster:u,setTeaserClusterByIds:l}});export{s as n,c as t};
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.