1import { bp as u } from "./tabSubtab.a9695f9f.js"; 2import "./index.b9c57d35.js"; 3import "./singletons.fd727e01.js"; 4const a = window.configs.ddbApiUrl || `${window.configs.supabaseProxyUrl || window.configs.supabaseUrl}/ddb`; 5async function r(e, t) { 6 let c = ""; 7 const n = { headers: await u() }; 8 return t && (t.query && Object.keys(t.query).length > 0 && (c = `?${new URLSearchParams(t.query).toString()}`), t.body && (t.method || (t.method = "POST"), t.body instanceof FormData ? n.body = t.body : (n.body = JSON.stringify(t.body), n.headers = { ...n.headers, "Content-Type": "application/json" })), t.method && (n.method = t.method)), fetch(a + e + c, n).then((o) => { 9 var _a; 10 if (o.ok) { 11 const s = o.headers.get("content-disposition"); 12 if (s) { 13 let i = s.split(/;(.+)/)[1].split(/=(.+)/)[1]; 14 return i.toLowerCase().startsWith("utf-8''") ? i = decodeURIComponent(i.replace("utf-8''", "")) : i = i.replace(/['"]/g, ""), { filename: i, blob: o.blob() }; 15 } 16 return ((_a = o.headers.get("content-type")) == null ? void 0 : _a.startsWith("application/json")) ? o.json() : o.text(); 17 } 18 throw new Error("Erreur, chargement des donn\xE9es impossible"); 19 }); 20} 21async function d(e, t) { 22 return r("/entities/complete", { query: { q: e, entity_type: t } }); 23} 24async function p(e) { 25 return d(e, "buyer"); 26} 27async function h(e) { 28 return d(e, "contractor"); 29} 30async function g(e) { 31 return r("/cpv", { query: { q: e } }); 32} 33async function q(e) { 34 return r("/naf", { query: { q: e } }); 35} 36export { 37 a as U, 38 h as a, 39 p as b, 40 g as c, 41 r as d, 42 q as n 43};
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.