1import{a}from"/build/_shared/chunk-2DFJDBLC.js";import{y as s}from"/build/_shared/chunk-HHPVIKQV.js";async function S(r){let e=await u(r);return e||(e=await d(r)),e}async function d(r){try{let o=`${window.ENV.apiBaseURL}/store/api/v2/stores/${r}`,t=await s(o,void 0,!1,void 0,"GET");if(t&&"status"in t&&t.status===404){console.log("[fetchStoreDetailsV2] Store not found:",r);return}if(t&&"status"in t)throw console.error("[fetchStoreDetailsV2] API error:",t),t;return t}catch(e){console.error("[fetchStoreDetailsV2] Error:",e);return}}async function u(r){try{let e=window.ENV.apiBaseURL,o=window.ENV.chainId,t=`${e}/store/api/v2/stores/banner/${o}/store/${r}`,n=await s(t,void 0,!0,void 0,"GET");if(n&&"status"in n&&n.status===404){console.log("[fetchStoreDetailsV2Anonymous] Store not found:",r);return}if(n&&"status"in n)throw console.error("[fetchStoreDetailsV2Anonymous] API error:",n),n;return n}catch(e){console.error("[fetchStoreDetailsV2Anonymous] Error:",e);return}}function c(r){let e=new Set;return r.filter(o=>{var n,i;let t=(i=(n=o.address)==null?void 0:n.trim().toLowerCase())!=null?i:"";return t?e.has(t)?!1:(e.add(t),!0):!0})}async function p(r){try{if(!r)return[];let e=await a(r);return e?c(e):[]}catch(e){return console.log(e),[]}}export{S as a,p as b};
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.