{"version":3,"sources":["../../../src/server/app-render/debug-channel-server.ts"],"sourcesContent":["/**\n * Compile-time switcher for debug channel operations.\n *\n * When __NEXT_USE_NODE_STREAMS is true, uses a Node PassThrough-based channel.\n * Otherwise, uses web WritableStream APIs.\n */\nexport type {\n  DebugChannelPair,\n  DebugChannelServer,\n} from './debug-channel-server.web'\nexport type { NodeDebugChannelPair } from './debug-channel-server.node'\nimport type { DebugChannelPair } from './debug-channel-server.web'\nimport type { NodeDebugChannelPair } from './debug-channel-server.node'\n\ntype DebugChannelMod = {\n  createWebDebugChannel: typeof import('./debug-channel-server.web').createWebDebugChannel\n  createNodeDebugChannel: typeof import('./debug-channel-server.node').createNodeDebugChannel\n}\n\nlet _m: DebugChannelMod\nif (process.env.__NEXT_USE_NODE_STREAMS) {\n  _m =\n    require('./debug-channel-server.node') as typeof import('./debug-channel-server.node')\n} else {\n  _m =\n    require('./debug-channel-server.web') as typeof import('./debug-channel-server.web')\n}\n\nexport function createWebDebugChannel(): DebugChannelPair | undefined {\n  if (process.env.NODE_ENV === 'production') {\n    return undefined\n  }\n\n  return _m.createWebDebugChannel()\n}\n\nexport function createNodeDebugChannel(): NodeDebugChannelPair | undefined {\n  if (process.env.NODE_ENV === 'production') {\n    return undefined\n  }\n\n  return _m.createNodeDebugChannel()\n}\n"],"names":["createNodeDebugChannel","createWebDebugChannel","_m","process","env","__NEXT_USE_NODE_STREAMS","require","NODE_ENV","undefined"],"mappings":"AAAA;;;;;CAKC;;;;;;;;;;;;;;;IA+BeA,sBAAsB;eAAtBA;;IARAC,qBAAqB;eAArBA;;;AAThB,IAAIC;AACJ,IAAIC,QAAQC,GAAG,CAACC,uBAAuB,EAAE;IACvCH,KACEI,QAAQ;AACZ,OAAO;IACLJ,KACEI,QAAQ;AACZ;AAEO,SAASL;IACd,IAAIE,QAAQC,GAAG,CAACG,QAAQ,KAAK,cAAc;QACzC,OAAOC;IACT;IAEA,OAAON,GAAGD,qBAAqB;AACjC;AAEO,SAASD;IACd,IAAIG,QAAQC,GAAG,CAACG,QAAQ,KAAK,cAAc;QACzC,OAAOC;IACT;IAEA,OAAON,GAAGF,sBAAsB;AAClC","ignoreList":[0]}