PageSourceSearch

https://sapo.pt/assets/bliss.js?v=a9f961072

js sapo.pt collected 2026-10-01 07:12:20 UTC 1,279 bytes, 1 lines download raw bytes

1import{o as e,p as t}from"./config.js?v=a9f961072";import{expiredJWT as n}from"./utils.js?v=a9f961072";import{error as r,log as i}from"./debug.js?v=a9f961072";import{store as a,temp as o}from"./state.js?v=a9f961072";import s from"./user.js?v=a9f961072";a.devices||(a.devices=[]);var c=async()=>{let e=s.get();if(a.devices?.includes(e))return!0;let t=await u(`users/me`,null,null,!0);return t&&!a.devices?.includes(e)&&a.devices?.push?.(e),t},l=async(t,a)=>{if(!t){a?.();return}let c,l={};o.session?.jwt&&e==`production`&&(n(o.session.jwt)&&await s.check(),o.session?.jwt&&(l.headers={"x-access-token":o.session.jwt})),i(`/artigos/${t}`,l);try{let e=await fetch(`/artigos/${t}`,l);c=e.ok?await e.text():null}catch(e){r(`/artigos/${t}`),r(e)}return i(`/artigos/${t}`,{res:c}),a?.(c),c},u=async(r,a,l,u)=>{if(!u&&!await c())return;let d={headers:{"Content-Type":`application/json`}},f=e==`production`?o.session?.jwt:null;f&&n(f)&&(await s.check(),o.session?.jwt&&(f=o.session.jwt)),d.headers[f?`Authorization`:`x-device-Id`]=f?`Bearer ${f}`:s.get(),a&&(d.method=a),l&&(d.body=JSON.stringify(l)),i(`${t.bliss}/${r}`,d);let p,m;try{p=await fetch(`${t.bliss}/${r}`,d),m=p.ok?await p.json():null}catch{}return m},d={rendered:l,request:u};export{d as default,l as rendered,u as request};

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.