PageSourceSearch

https://www.aracaju.se.gov.br/assets/url-C8y4yPy5.js

js aracaju.se.gov.br collected 2026-09-24 19:00:45 UTC 1,582 bytes, 1 lines download raw bytes

1import{a as c}from"./client-BVHu_ecI.js";import{a as u}from"./vendor-http-hHFB1cMz.js";import{l as g,h as p}from"./index-gBJFdTWL.js";async function o(t,i,e){const s=["entity","secretaria",void 0];for(let n=0;n<s.length;n++){const r={...e};s[n]?r.include=s[n]:delete r.include;try{return await t.get(i,{params:r})}catch(a){if(u.isAxiosError(a)&&a.response?.status===400&&typeof a.response.data?.message=="string"&&a.response.data.message.includes("Requested include(s)")&&n<s.length-1){g.debug(`server rejected \`include=${s[n]}\`; trying next fallback`);continue}throw a}}throw new Error("getWithIncludeFallback: all attempts exhausted")}function l(t){const i={getAll:e=>{const s={...e,include:"entity"};return t.get("/news",{params:s})},getFeatured:()=>t.get("/news/featured"),getCarousel:(e=10)=>t.get("/news/carousel",{params:{limit:e}}),getLatest:(e=5,s)=>{const n={limit:e,...s};return o(t,"/news/latest",n)},getEspeciais:e=>t.get("/news/especiais",{params:e}),getById:e=>t.get(`/news/${e}`),getByEntity:(e,s,n)=>{const r=p[e],a={...n};return o(t,`/${r}/${s}/news`,a)},getByEntityIdent:(e,s)=>o(t,`/news/entity/${e}`,{...s}),getBySecretaria:(e,s)=>i.getByEntity("secretaria",e,s),getBounds:e=>t.get("/news/bounds",{params:e})};return i}const h=l(c);function w(t){if(!t)return;if(/^https?:\/\//.test(t)||t.startsWith("//"))return t;const e="/api/v1".replace(/\/+$/,""),s=e.replace(/\/api(?:\/v\d+)?$/i,""),n=t.startsWith("/")?t:`/${t}`,r=n.replace(/^\/api(?:\/v\d+)?(?=\/(?:storage|images)\b)/i,"");return/^\/(?:storage|images)(?:\/|$)/i.test(r)?s+r:e+n}export{h as a,w as n};

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.