1import{r as e,y as t}from"./B9Ui1xjL.js";var n=e=>{let t=e.itemId;if(!t)return!1;let n=t.split(`_`);return!(n.length===0||n.length>2||!n[0]||isNaN(Number(n[0]))||n.length===2&&(!n[1]||isNaN(Number(n[1]))))},r=e=>{let t=e.itemId.split(`_`),n={id:t[0]??``};return t[1]&&(n.variationId=t[1]),{productParams:n,productId:n.id.toString()}},i=(e,t,n)=>{let r=e.endsWith(`/`),i=(r?e.slice(0,-1):e).split(`/`),a=i.pop();if(!a)return e;let o=a.split(`_`),s=o.length-1;t=String(t),n=String(n),o[s]===t?o.push(n):o[s]=n,a=o.join(`_`),i.push(a);let c=i.join(`/`);return r?c+`/`:c},a=(n,r)=>{let i=e.mapFromCategoryBreadcrumbs(n.breadcrumbs??[]),a=t.getName(n);return i.unshift({name:r,link:`/`}),i.push({name:a,link:`#`}),i};export{n as i,a as n,i 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.