import a from"json-pointer";const n=a.parse;class s{static baseName(e="",t=1){const r=s.parse(e);return r[r.length-t]}static dirName(e,t=1){const r=s.parse(e);return a.compile(r.slice(0,r.length-t))}static relative(e,t){const r=s.parse(e);return s.parse(t).slice(r.length)}static parse(e=""){let t=e;return t.charAt(0)==="#"&&(t=t.substring(1)),n(t)}static join(e,t){const c=s.parse(e).concat(t);return a.compile(c)}static get(e,t){return a.get(e,t)}static compile(e){return a.compile(e)}static escape(e){return a.escape(e)}}a.parse=s.parse,Object.assign(s,a);var i=s;export{s as JsonPointer,i as default};
