1const n="https://kpslufqd7xryrrbi57srhr7zlm0wfezq.lambda-url.ap-southeast-1.on.aws",i=n;function c(){return i.replace(/\/$/,"")}async function o(t={}){var a;const s=new URLSearchParams;return t.search&&s.set("search",t.search),t.category&&t.category!=="all"&&s.set("category",t.category),t.brand&&t.brand!=="all"&&s.set("brand",t.brand),t.limit&&s.set("limit",String(t.limit)),t.cursor&&s.set("cursor",t.cursor),(a=t.ids)!=null&&a.length&&s.set("ids",t.ids.join(",")),r(`/products?${s.toString()}`)}async function l(t){return r(`/products/${encodeURIComponent(t)}`)}async function d(t){return o({brand:t,limit:60})}async function r(t){const s=await fetch(`${c()}${t}`,{headers:{accept:"application/json"}});if(!s.ok){let a=`Price API request failed (${s.status})`;try{const e=await s.json();e!=null&&e.message&&(a=e.message)}catch{}throw new Error(a)}return s.json()}export{d as a,l as g,o as l};
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.