{"version":3,"file":"localhost.cjs","names":[],"sources":["../../src/common/localhost.ts"],"sourcesContent":["export function isLocalHost(\n  hostname: string = globalThis?.location?.hostname ?? '',\n): boolean {\n  return (\n    ['::ffff:127.0.0.1', 'localhost', '127.0.0.1', '', '::1', '::'].includes(\n      hostname,\n    )\n    || hostname.startsWith('192.168.')\n    || hostname.startsWith('10.0.')\n    || hostname.endsWith('.local')\n  )\n}\n"],"mappings":";;;AAAA,SAAgB,YACd,WAAmB,YAAY,UAAU,YAAY,IAC5C;AACT,QACE;EAAC;EAAoB;EAAa;EAAa;EAAI;EAAO;EAAK,CAAC,SAC9D,SACD,IACE,SAAS,WAAW,WAAW,IAC/B,SAAS,WAAW,QAAQ,IAC5B,SAAS,SAAS,SAAS"}