{"version":3,"file":"location.mjs","names":[],"sources":["../../src/polyfills/location.ts"],"sourcesContent":["/**\n * Polyfill: window.location\n *\n * Required by shouldShowDevConsole (hostname check) and agent runtime\n * URL resolution (window.location.origin). Uses an obviously invalid\n * hostname to avoid tricking localhost-detection code.\n *\n * Skipped if window.location is already defined.\n *\n * Usage:\n *   import \"@copilotkit/react-native/polyfills/location\";\n */\n\nexport {};\n\nif (typeof window !== \"undefined\") {\n  const w = window as unknown as Record<string, unknown>;\n  if (!w.location) {\n    w.location = {\n      hostname: \"react-native.invalid\",\n      href: \"http://react-native.invalid\",\n      origin: \"http://react-native.invalid\",\n      protocol: \"http:\",\n      host: \"react-native.invalid\",\n      pathname: \"/\",\n      search: \"\",\n      hash: \"\",\n    };\n  }\n}\n"],"mappings":";AAeA,IAAI,OAAO,WAAW,aAAa;CACjC,MAAM,IAAI;AACV,KAAI,CAAC,EAAE,SACL,GAAE,WAAW;EACX,UAAU;EACV,MAAM;EACN,QAAQ;EACR,UAAU;EACV,MAAM;EACN,UAAU;EACV,QAAQ;EACR,MAAM;EACP"}