1import i18n from 'elgg/i18n';import system_messages from 'elgg/system_messages';document.addEventListener('click',async(event)=>{const action=event.target.closest('[data-post-share], [data-post-print]');if(!action){return} 2event.preventDefault();if(action.matches('[data-post-print]')){window.print();return} 3const url=action.dataset.postUrl;const title=action.dataset.postTitle;if(navigator.share){try{await navigator.share({title,url});return}catch(error){if(error.name==='AbortError'){return}}} 4try{await navigator.clipboard.writeText(url);system_messages.success(i18n.echo('unread_comments:post:link_copied'))}catch(error){window.prompt(i18n.echo('unread_comments:post:copy_prompt'),url)}})
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.