1import{_t as e}from"./@dayflow-DHZqp7Rg.js";import{n as t}from"./pinia-YL0TXNFu.js";import{t as n}from"./axios-CenCkXay.js";import{rt as r}from"./maintenance-service-B-yNArdO.js";var i={getPhotoNsfwDetections(e){return n.get(`${r.getApiUrl()}Photo/${e}/nsfw-detections`,{data:{}})}},a=Object.freeze({detections:[],imageWidth:1,imageHeight:1}),o=t(`photo-nsfw-detections-store`,()=>{let t=e(new Map),n=new Map;function r(e){let r=t.value.get(e);if(r)return Promise.resolve(r);let o=n.get(e);if(o)return o;let s=i.getPhotoNsfwDetections(e).then(n=>{let r={detections:n.data.detections,imageWidth:n.data.image_width,imageHeight:n.data.image_height};return t.value.set(e,r),r}).catch(()=>a).finally(()=>{n.delete(e)});return n.set(e,s),s}function o(e){return t.value.get(e)??a}function s(e){return t.value.delete(e),n.delete(e),r(e)}return{cache:t,fetch:r,get:o,invalidate:s}});export{o 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.