1import{n as e,s as t}from"./jsx-runtime-C2ZqOKBi.js";import{t as n}from"./axios-By6YYWBT.js";var r=t(e()),i=`tigrenator_catalog_v1`,a=864e5,o=null,s=[`nombre`,`bandaAncla`,`verbo`,`necesidad`,`subnecesidad`,`industria`];function c(e){let t=e[0];return!t||typeof t!=`object`?!1:s.every(e=>e in t)}function l(){try{let e=localStorage.getItem(i);if(!e)return null;let{ts:t,data:n}=JSON.parse(e);return!Array.isArray(n)||n.length===0||!c(n)?null:{fresh:Date.now()-t<a,data:n}}catch{return null}}function u(e){try{localStorage.setItem(i,JSON.stringify({ts:Date.now(),data:e}))}catch{}}function d(){let[e,t]=(0,r.useState)(o);return(0,r.useEffect)(()=>{if(o)return;let e=!1,r=l();return r&&(o=r.data,t(r.data)),n.get(`/api/servicios/index`).then(({data:n})=>{Array.isArray(n)&&n.length!==0&&(o=n,u(n),e||t(n))}).catch(()=>{}),()=>{e=!0}},[]),e}export{d as t};
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.