1// Shared address book for SSR and browser-rendered Magnitude links. 2export const magnitudeTelegram = Object.freeze({ 3 telegram_channel_url: 'https://t.me/tlap_magnitude', 4 telegram_bot_url: 'https://t.me/tlap_club_bot', 5 telegram_bot_start: 'anom_{symbol}_{lang}', 6 telegram_bot_default_start: 'anom_all_4_{lang}', 7 // Site homepage and the existing publisher still use this read-only alias. 8 get channelUrl() { return this.telegram_channel_url }, 9}) 10 11export function magnitudeBotLink(symbol, lang = 'ru') { 12 const template = symbol ? magnitudeTelegram.telegram_bot_start : magnitudeTelegram.telegram_bot_default_start 13 const start = template.replace('{symbol}', String(symbol || '').toUpperCase()).replace('{lang}', lang === 'en' ? 'en' : 'ru') 14 return `${magnitudeTelegram.telegram_bot_url}?start=${encodeURIComponent(start)}` 15}
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.