1import{u as n}from"./chunk-VJGBCIFP.js";import{a as c,d as s,e as i,f as l}from"./chunk-XJLSI5BW.js";import{b as a,c as r}from"./chunk-ZOYOJ6FT.js";var m=e=>e.replace(/[åäáà â]/gi,"a").replace(/[öóòô]/gi,"o").replace(/[éèê]/gi,"e").replace(/[Ãìî]/gi,"i").replace(/ü/gi,"u").replace(/ & /gi,"--").replace(/&/gi,"-").replace(/[^\w\s-]/gi,"").replace(/\s\s+/g," ").replace(/ /g,"-").trim().toLowerCase(),h=["section","story","tags","persons","organisations","locations"],w=["section","story","topic","person","organization","location"],_=e=>h.reduce((t,o,g)=>{let u=e.dataset[o]?e.dataset[o].split(/[,/]/):[],C=Array.from(new Set(u));return t.concat(C.map(f=>`${w[g]}:${m(f)}`))},[]),b=e=>{s(c.functional).then(t=>{t&&(window.lclClientConfig.namespace==="hbl"?i("hufvudstadsbladet-ab").then(o=>{o&&p(e)}).catch(o=>{n(o)}):p(e))}).catch(t=>{n(t)})},p=e=>{let t=(window.lclClientConfig||{}).env!=="development";e?a("lcl_basicads","1",{expires:365,secure:t}):r("lcl_basicads",{secure:t})},d=()=>{s("select_basic_ads").then(e=>{e!==void 0&&b(e)}).catch(e=>n(e))},k=()=>{window.lclClientConfig.didomiEnabled&&(d(),l(d))};export{_ as a,k as b}; 2//# sourceMappingURL=chunk-6XCVJ4C4.js.map
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.