PageSourceSearch

https://leap-c-leap-c.hf.space/assets/pathUtils-ANiMIEDI.js

js leap-c-leap-c.hf.space collected 2026-10-03 17:06:08 UTC 904 bytes, 1 lines download raw bytes

1import{n as m,t as h}from"./paths-kNeJ8nbe.js";function g({path:t,delimiter:e,initialPath:n,restrictNavigation:s}){let r=t.match(/^[\dA-Za-z]+:\/\//),u=/^[A-Za-z]:\\/.test(t),c=r?r[0]:u?t.slice(0,3):"/",a=(u||r?t.slice(c.length):t).split(e).filter(Boolean),l=[];if(u)for(let i=a.length;i>=0;i--){let o=c+a.slice(0,i).join(e);l.push(o)}else{let i=c;for(let o=0;o<=a.length;o++){let p=i+a.slice(0,o).join(e);l.push(p),o<a.length&&!i.endsWith(e)&&(i+=e)}l.reverse()}return s&&(l=l.filter(i=>i.startsWith(n))),{protocol:c,parentDirectories:l}}function d(t){let e=t.lastIndexOf(".");return[e>0?t.slice(0,e):t,e>0?t.slice(e):""]}function j(t){let[e,n]=d(t);return`${e}_copy${n}`}function f(t,e){return m.isAbsolute(t)?t:h.guessDeliminator(e).join(e,t)}function A({path:t,name:e,root:n}){let s=f(t,n),r=h.guessDeliminator(n||s);return{path:s,newPath:r.join(r.dirname(s),e)}}export{f as i,j as n,A as r,g 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.