import { ID_REGEX } from './constants.js'; import { decode, decodeHtmlEntities } from '../facebook/utils.js'; import { extractFromJson } from './json-extractor.js'; import { ThreadsRawFormat, ThreadsParsed } from './types.js'; function matchContent(html: string, property: string): string | undefined { const pattern = new RegExp( `