1var e=[`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`];function t(e,t){return e.type===t||typeof e.type==`object`&&e.type.tag===t||e.tag===t}function n(e){return t(e,`text`)||t(e,Symbol.for(`v-txt`))}function r(e){return Array.isArray(e.children)||typeof e.children==`string`?e.children:typeof e.children?.default==`function`?e.children.default():[]}function i(e){if(!e)return``;if(Array.isArray(e))return e.map(i).join(``);if(n(e))return e.value||e.children||``;let t=r(e);return Array.isArray(t)?t.map(i).filter(Boolean).join(``):``}function a(n,i=[]){if(Array.isArray(n))return n.flatMap(e=>a(e,i));let o=n;return i.some(e=>e===`*`||t(n,e))&&(o=r(n)||n,!Array.isArray(o)&&e.some(e=>t(n,e))&&(o=[o])),o}function o(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(e=>o(a(e,[t[0]]),t.slice(1))).filter(e=>!(n(e)&&i(e).trim()===``)):e}function s(e,t=[]){return typeof t==`string`&&(t=t.split(/[,\s]/).map(e=>e.trim()).filter(Boolean)),t.length?o(e,t).reduce((e,t)=>(n(t)?typeof e[e.length-1]==`string`?e[e.length-1]+=t.children:e.push(t.children):e.push(t),e),[]):e}export{i as n,s 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.