PageSourceSearch

https://ocoder.ai/assets/quarry-inventory-types-emkQC7X_.js

js ocoder.ai collected 2026-10-02 01:11:37 UTC 987 bytes, 1 lines download raw bytes

1function e(e){return e?.trim().replace(/^\.\//,``).replace(/\/+$/,``)||`.`}function t(e){let t=e?.trim();return t?t===`branch`||t===`remote_branch`||t===`tag`||t===`ref`?t:`ref`:`branch`}function n(e,t){let n=e?.trim();if(n){let e=t.find(e=>e.quarry_stable_id===n);if(e&&i(e)){let n=a(t.filter(t=>t.quarry_kind!==`external`&&t.quarry_name===e.quarry_name));if(n)return n.quarry_stable_id}return n}return r(t)[0]?.quarry_stable_id??null}function r(e){return e.filter(e=>e.quarry_kind!==`external`)}function i(e){return e.quarry_kind===`external`&&/^external:(?:@|~|#)\//.test(e.quarry_file_path??``)}function a(e){let t=new Map([[`primitive`,0],[`composite`,1],[`page`,2],[`unknown`,3]]);return e.slice().sort((e,n)=>(t.get(e.quarry_kind??``)??4)-(t.get(n.quarry_kind??``)??4))[0]??null}function o(e){return typeof e.snapshot==`string`&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e.snapshot)?{snapshot:e.snapshot}:{}}export{n as a,e as i,o as n,t as r,r 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.