{
  "version": 3,
  "sources": ["../dist-src/index.js", "../dist-src/version.js", "../dist-src/add-event-handler.js", "../dist-src/oauth-app-octokit.js", "../dist-src/methods/get-user-octokit.js", "../dist-src/emit-event.js", "../dist-src/methods/get-web-flow-authorization-url.js", "../dist-src/methods/create-token.js", "../dist-src/methods/check-token.js", "../dist-src/methods/reset-token.js", "../dist-src/methods/refresh-token.js", "../dist-src/methods/scope-token.js", "../dist-src/methods/delete-token.js", "../dist-src/methods/delete-authorization.js", "../dist-src/middleware/unknown-route-response.js", "../dist-src/middleware/handle-request.js", "../dist-src/middleware/node/parse-request.js", "../dist-src/middleware/node/send-response.js", "../dist-src/middleware/node/index.js", "../dist-src/middleware/web-worker/parse-request.js", "../dist-src/middleware/web-worker/send-response.js", "../dist-src/middleware/web-worker/index.js", "../dist-src/middleware/aws-lambda/api-gateway-v2-parse-request.js", "../dist-src/middleware/aws-lambda/api-gateway-v2-send-response.js", "../dist-src/middleware/aws-lambda/api-gateway-v2.js"],
  "sourcesContent": ["import { createOAuthAppAuth } from \"@octokit/auth-oauth-app\";\nimport { VERSION } from \"./version\";\nimport { addEventHandler } from \"./add-event-handler\";\nimport { OAuthAppOctokit } from \"./oauth-app-octokit\";\nimport {\n  getUserOctokitWithState\n} from \"./methods/get-user-octokit\";\nimport {\n  getWebFlowAuthorizationUrlWithState\n} from \"./methods/get-web-flow-authorization-url\";\nimport {\n  createTokenWithState\n} from \"./methods/create-token\";\nimport {\n  checkTokenWithState\n} from \"./methods/check-token\";\nimport {\n  resetTokenWithState\n} from \"./methods/reset-token\";\nimport {\n  refreshTokenWithState\n} from \"./methods/refresh-token\";\nimport {\n  scopeTokenWithState\n} from \"./methods/scope-token\";\nimport {\n  deleteTokenWithState\n} from \"./methods/delete-token\";\nimport {\n  deleteAuthorizationWithState\n} from \"./methods/delete-authorization\";\nimport { handleRequest } from \"./middleware/handle-request\";\nimport { unknownRouteResponse } from \"./middleware/unknown-route-response\";\nimport { createNodeMiddleware } from \"./middleware/node/index\";\nimport { sendResponse } from \"./middleware/node/send-response\";\nimport { createWebWorkerHandler } from \"./middleware/web-worker/index\";\nimport { createAWSLambdaAPIGatewayV2Handler } from \"./middleware/aws-lambda/api-gateway-v2\";\nclass OAuthApp {\n  static {\n    this.VERSION = VERSION;\n  }\n  static defaults(defaults) {\n    const OAuthAppWithDefaults = class extends this {\n      constructor(...args) {\n        super({\n          ...defaults,\n          ...args[0]\n        });\n      }\n    };\n    return OAuthAppWithDefaults;\n  }\n  constructor(options) {\n    const Octokit = options.Octokit || OAuthAppOctokit;\n    this.type = options.clientType || \"oauth-app\";\n    const octokit = new Octokit({\n      authStrategy: createOAuthAppAuth,\n      auth: {\n        clientType: this.type,\n        clientId: options.clientId,\n        clientSecret: options.clientSecret\n      }\n    });\n    const state = {\n      clientType: this.type,\n      clientId: options.clientId,\n      clientSecret: options.clientSecret,\n      // @ts-expect-error defaultScopes not permitted for GitHub Apps\n      defaultScopes: options.defaultScopes || [],\n      allowSignup: options.allowSignup,\n      baseUrl: options.baseUrl,\n      redirectUrl: options.redirectUrl,\n      log: options.log,\n      Octokit,\n      octokit,\n      eventHandlers: {}\n    };\n    this.on = addEventHandler.bind(null, state);\n    this.octokit = octokit;\n    this.getUserOctokit = getUserOctokitWithState.bind(null, state);\n    this.getWebFlowAuthorizationUrl = getWebFlowAuthorizationUrlWithState.bind(\n      null,\n      state\n    );\n    this.createToken = createTokenWithState.bind(\n      null,\n      state\n    );\n    this.checkToken = checkTokenWithState.bind(\n      null,\n      state\n    );\n    this.resetToken = resetTokenWithState.bind(\n      null,\n      state\n    );\n    this.refreshToken = refreshTokenWithState.bind(\n      null,\n      state\n    );\n    this.scopeToken = scopeTokenWithState.bind(\n      null,\n      state\n    );\n    this.deleteToken = deleteTokenWithState.bind(null, state);\n    this.deleteAuthorization = deleteAuthorizationWithState.bind(null, state);\n  }\n}\nexport {\n  OAuthApp,\n  createAWSLambdaAPIGatewayV2Handler,\n  createNodeMiddleware,\n  createWebWorkerHandler,\n  handleRequest,\n  sendResponse as sendNodeResponse,\n  unknownRouteResponse\n};\n", "const VERSION = \"6.0.0\";\nexport {\n  VERSION\n};\n", "function addEventHandler(state, eventName, eventHandler) {\n  if (Array.isArray(eventName)) {\n    for (const singleEventName of eventName) {\n      addEventHandler(state, singleEventName, eventHandler);\n    }\n    return;\n  }\n  if (!state.eventHandlers[eventName]) {\n    state.eventHandlers[eventName] = [];\n  }\n  state.eventHandlers[eventName].push(eventHandler);\n}\nexport {\n  addEventHandler\n};\n", "import { Octokit } from \"@octokit/core\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nconst OAuthAppOctokit = Octokit.defaults({\n  userAgent: `octokit-oauth-app.js/${VERSION} ${getUserAgent()}`\n});\nexport {\n  OAuthAppOctokit\n};\n", "import { createOAuthUserAuth } from \"@octokit/auth-oauth-user\";\nimport { emitEvent } from \"../emit-event\";\nasync function getUserOctokitWithState(state, options) {\n  return state.octokit.auth({\n    type: \"oauth-user\",\n    ...options,\n    async factory(options2) {\n      const octokit = new state.Octokit({\n        authStrategy: createOAuthUserAuth,\n        auth: options2\n      });\n      const authentication = await octokit.auth({\n        type: \"get\"\n      });\n      await emitEvent(state, {\n        name: \"token\",\n        action: \"created\",\n        token: authentication.token,\n        scopes: authentication.scopes,\n        authentication,\n        octokit\n      });\n      return octokit;\n    }\n  });\n}\nexport {\n  getUserOctokitWithState\n};\n", "async function emitEvent(state, context) {\n  const { name, action } = context;\n  if (state.eventHandlers[`${name}.${action}`]) {\n    for (const eventHandler of state.eventHandlers[`${name}.${action}`]) {\n      await eventHandler(context);\n    }\n  }\n  if (state.eventHandlers[name]) {\n    for (const eventHandler of state.eventHandlers[name]) {\n      await eventHandler(context);\n    }\n  }\n}\nexport {\n  emitEvent\n};\n", "import * as OAuthMethods from \"@octokit/oauth-methods\";\nfunction getWebFlowAuthorizationUrlWithState(state, options) {\n  const optionsWithDefaults = {\n    clientId: state.clientId,\n    request: state.octokit.request,\n    ...options,\n    allowSignup: state.allowSignup ?? options.allowSignup,\n    redirectUrl: options.redirectUrl ?? state.redirectUrl,\n    scopes: options.scopes ?? state.defaultScopes\n  };\n  return OAuthMethods.getWebFlowAuthorizationUrl({\n    clientType: state.clientType,\n    ...optionsWithDefaults\n  });\n}\nexport {\n  getWebFlowAuthorizationUrlWithState\n};\n", "import * as OAuthAppAuth from \"@octokit/auth-oauth-app\";\nimport { emitEvent } from \"../emit-event\";\nasync function createTokenWithState(state, options) {\n  const authentication = await state.octokit.auth({\n    type: \"oauth-user\",\n    ...options\n  });\n  await emitEvent(state, {\n    name: \"token\",\n    action: \"created\",\n    token: authentication.token,\n    scopes: authentication.scopes,\n    authentication,\n    octokit: new state.Octokit({\n      authStrategy: OAuthAppAuth.createOAuthUserAuth,\n      auth: {\n        clientType: state.clientType,\n        clientId: state.clientId,\n        clientSecret: state.clientSecret,\n        token: authentication.token,\n        scopes: authentication.scopes,\n        refreshToken: authentication.refreshToken,\n        expiresAt: authentication.expiresAt,\n        refreshTokenExpiresAt: authentication.refreshTokenExpiresAt\n      }\n    })\n  });\n  return { authentication };\n}\nexport {\n  createTokenWithState\n};\n", "import * as OAuthMethods from \"@octokit/oauth-methods\";\nasync function checkTokenWithState(state, options) {\n  const result = await OAuthMethods.checkToken({\n    // @ts-expect-error not worth the extra code to appease TS\n    clientType: state.clientType,\n    clientId: state.clientId,\n    clientSecret: state.clientSecret,\n    request: state.octokit.request,\n    ...options\n  });\n  Object.assign(result.authentication, { type: \"token\", tokenType: \"oauth\" });\n  return result;\n}\nexport {\n  checkTokenWithState\n};\n", "import * as OAuthMethods from \"@octokit/oauth-methods\";\nimport { emitEvent } from \"../emit-event\";\nimport { createOAuthUserAuth } from \"@octokit/auth-oauth-user\";\nasync function resetTokenWithState(state, options) {\n  const optionsWithDefaults = {\n    clientId: state.clientId,\n    clientSecret: state.clientSecret,\n    request: state.octokit.request,\n    ...options\n  };\n  if (state.clientType === \"oauth-app\") {\n    const response2 = await OAuthMethods.resetToken({\n      clientType: \"oauth-app\",\n      ...optionsWithDefaults\n    });\n    const authentication2 = Object.assign(response2.authentication, {\n      type: \"token\",\n      tokenType: \"oauth\"\n    });\n    await emitEvent(state, {\n      name: \"token\",\n      action: \"reset\",\n      token: response2.authentication.token,\n      scopes: response2.authentication.scopes || void 0,\n      authentication: authentication2,\n      octokit: new state.Octokit({\n        authStrategy: createOAuthUserAuth,\n        auth: {\n          clientType: state.clientType,\n          clientId: state.clientId,\n          clientSecret: state.clientSecret,\n          token: response2.authentication.token,\n          scopes: response2.authentication.scopes\n        }\n      })\n    });\n    return { ...response2, authentication: authentication2 };\n  }\n  const response = await OAuthMethods.resetToken({\n    clientType: \"github-app\",\n    ...optionsWithDefaults\n  });\n  const authentication = Object.assign(response.authentication, {\n    type: \"token\",\n    tokenType: \"oauth\"\n  });\n  await emitEvent(state, {\n    name: \"token\",\n    action: \"reset\",\n    token: response.authentication.token,\n    authentication,\n    octokit: new state.Octokit({\n      authStrategy: createOAuthUserAuth,\n      auth: {\n        clientType: state.clientType,\n        clientId: state.clientId,\n        clientSecret: state.clientSecret,\n        token: response.authentication.token\n      }\n    })\n  });\n  return { ...response, authentication };\n}\nexport {\n  resetTokenWithState\n};\n", "import * as OAuthMethods from \"@octokit/oauth-methods\";\nimport { emitEvent } from \"../emit-event\";\nimport { createOAuthUserAuth } from \"@octokit/auth-oauth-user\";\nasync function refreshTokenWithState(state, options) {\n  if (state.clientType === \"oauth-app\") {\n    throw new Error(\n      \"[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps\"\n    );\n  }\n  const response = await OAuthMethods.refreshToken({\n    clientType: \"github-app\",\n    clientId: state.clientId,\n    clientSecret: state.clientSecret,\n    request: state.octokit.request,\n    refreshToken: options.refreshToken\n  });\n  const authentication = Object.assign(response.authentication, {\n    type: \"token\",\n    tokenType: \"oauth\"\n  });\n  await emitEvent(state, {\n    name: \"token\",\n    action: \"refreshed\",\n    token: response.authentication.token,\n    authentication,\n    octokit: new state.Octokit({\n      authStrategy: createOAuthUserAuth,\n      auth: {\n        clientType: state.clientType,\n        clientId: state.clientId,\n        clientSecret: state.clientSecret,\n        token: response.authentication.token\n      }\n    })\n  });\n  return { ...response, authentication };\n}\nexport {\n  refreshTokenWithState\n};\n", "import * as OAuthMethods from \"@octokit/oauth-methods\";\nimport { createOAuthUserAuth } from \"@octokit/auth-oauth-user\";\nimport { emitEvent } from \"../emit-event\";\nasync function scopeTokenWithState(state, options) {\n  if (state.clientType === \"oauth-app\") {\n    throw new Error(\n      \"[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps\"\n    );\n  }\n  const response = await OAuthMethods.scopeToken({\n    clientType: \"github-app\",\n    clientId: state.clientId,\n    clientSecret: state.clientSecret,\n    request: state.octokit.request,\n    ...options\n  });\n  const authentication = Object.assign(response.authentication, {\n    type: \"token\",\n    tokenType: \"oauth\"\n  });\n  await emitEvent(state, {\n    name: \"token\",\n    action: \"scoped\",\n    token: response.authentication.token,\n    authentication,\n    octokit: new state.Octokit({\n      authStrategy: createOAuthUserAuth,\n      auth: {\n        clientType: state.clientType,\n        clientId: state.clientId,\n        clientSecret: state.clientSecret,\n        token: response.authentication.token\n      }\n    })\n  });\n  return { ...response, authentication };\n}\nexport {\n  scopeTokenWithState\n};\n", "import * as OAuthMethods from \"@octokit/oauth-methods\";\nimport { createUnauthenticatedAuth } from \"@octokit/auth-unauthenticated\";\nimport { emitEvent } from \"../emit-event\";\nasync function deleteTokenWithState(state, options) {\n  const optionsWithDefaults = {\n    clientId: state.clientId,\n    clientSecret: state.clientSecret,\n    request: state.octokit.request,\n    ...options\n  };\n  const response = state.clientType === \"oauth-app\" ? await OAuthMethods.deleteToken({\n    clientType: \"oauth-app\",\n    ...optionsWithDefaults\n  }) : (\n    // istanbul ignore next\n    await OAuthMethods.deleteToken({\n      clientType: \"github-app\",\n      ...optionsWithDefaults\n    })\n  );\n  await emitEvent(state, {\n    name: \"token\",\n    action: \"deleted\",\n    token: options.token,\n    octokit: new state.Octokit({\n      authStrategy: createUnauthenticatedAuth,\n      auth: {\n        reason: `Handling \"token.deleted\" event. The access for the token has been revoked.`\n      }\n    })\n  });\n  return response;\n}\nexport {\n  deleteTokenWithState\n};\n", "import * as OAuthMethods from \"@octokit/oauth-methods\";\nimport { createUnauthenticatedAuth } from \"@octokit/auth-unauthenticated\";\nimport { emitEvent } from \"../emit-event\";\nasync function deleteAuthorizationWithState(state, options) {\n  const optionsWithDefaults = {\n    clientId: state.clientId,\n    clientSecret: state.clientSecret,\n    request: state.octokit.request,\n    ...options\n  };\n  const response = state.clientType === \"oauth-app\" ? await OAuthMethods.deleteAuthorization({\n    clientType: \"oauth-app\",\n    ...optionsWithDefaults\n  }) : (\n    // istanbul ignore next\n    await OAuthMethods.deleteAuthorization({\n      clientType: \"github-app\",\n      ...optionsWithDefaults\n    })\n  );\n  await emitEvent(state, {\n    name: \"token\",\n    action: \"deleted\",\n    token: options.token,\n    octokit: new state.Octokit({\n      authStrategy: createUnauthenticatedAuth,\n      auth: {\n        reason: `Handling \"token.deleted\" event. The access for the token has been revoked.`\n      }\n    })\n  });\n  await emitEvent(state, {\n    name: \"authorization\",\n    action: \"deleted\",\n    token: options.token,\n    octokit: new state.Octokit({\n      authStrategy: createUnauthenticatedAuth,\n      auth: {\n        reason: `Handling \"authorization.deleted\" event. The access for the app has been revoked.`\n      }\n    })\n  });\n  return response;\n}\nexport {\n  deleteAuthorizationWithState\n};\n", "function unknownRouteResponse(request) {\n  return {\n    status: 404,\n    headers: { \"content-type\": \"application/json\" },\n    text: JSON.stringify({\n      error: `Unknown route: ${request.method} ${request.url}`\n    })\n  };\n}\nexport {\n  unknownRouteResponse\n};\n", "import { OAuthApp } from \"../index\";\nimport { unknownRouteResponse } from \"./unknown-route-response\";\nasync function handleRequest(app, { pathPrefix = \"/api/github/oauth\" }, request) {\n  if (request.method === \"OPTIONS\") {\n    return {\n      status: 200,\n      headers: {\n        \"access-control-allow-origin\": \"*\",\n        \"access-control-allow-methods\": \"*\",\n        \"access-control-allow-headers\": \"Content-Type, User-Agent, Authorization\"\n      }\n    };\n  }\n  let { pathname } = new URL(request.url, \"http://localhost\");\n  if (!pathname.startsWith(`${pathPrefix}/`)) {\n    return void 0;\n  }\n  pathname = pathname.slice(pathPrefix.length + 1);\n  const route = [request.method, pathname].join(\" \");\n  const routes = {\n    getLogin: `GET login`,\n    getCallback: `GET callback`,\n    createToken: `POST token`,\n    getToken: `GET token`,\n    patchToken: `PATCH token`,\n    patchRefreshToken: `PATCH refresh-token`,\n    scopeToken: `POST token/scoped`,\n    deleteToken: `DELETE token`,\n    deleteGrant: `DELETE grant`\n  };\n  if (!Object.values(routes).includes(route)) {\n    return unknownRouteResponse(request);\n  }\n  let json;\n  try {\n    const text = await request.text();\n    json = text ? JSON.parse(text) : {};\n  } catch (error) {\n    return {\n      status: 400,\n      headers: {\n        \"content-type\": \"application/json\",\n        \"access-control-allow-origin\": \"*\"\n      },\n      text: JSON.stringify({\n        error: \"[@octokit/oauth-app] request error\"\n      })\n    };\n  }\n  const { searchParams } = new URL(request.url, \"http://localhost\");\n  const query = Object.fromEntries(searchParams);\n  const headers = request.headers;\n  try {\n    if (route === routes.getLogin) {\n      const { url } = app.getWebFlowAuthorizationUrl({\n        state: query.state,\n        scopes: query.scopes ? query.scopes.split(\",\") : void 0,\n        allowSignup: query.allowSignup ? query.allowSignup === \"true\" : void 0,\n        redirectUrl: query.redirectUrl\n      });\n      return { status: 302, headers: { location: url } };\n    }\n    if (route === routes.getCallback) {\n      if (query.error) {\n        throw new Error(\n          `[@octokit/oauth-app] ${query.error} ${query.error_description}`\n        );\n      }\n      if (!query.code) {\n        throw new Error('[@octokit/oauth-app] \"code\" parameter is required');\n      }\n      const {\n        authentication: { token: token2 }\n      } = await app.createToken({\n        code: query.code\n      });\n      return {\n        status: 200,\n        headers: {\n          \"content-type\": \"text/html\"\n        },\n        text: `<h1>Token created successfully</h1>\n\n<p>Your token is: <strong>${token2}</strong>. Copy it now as it cannot be shown again.</p>`\n      };\n    }\n    if (route === routes.createToken) {\n      const { code, redirectUrl } = json;\n      if (!code) {\n        throw new Error('[@octokit/oauth-app] \"code\" parameter is required');\n      }\n      const result = await app.createToken({\n        code,\n        redirectUrl\n      });\n      delete result.authentication.clientSecret;\n      return {\n        status: 201,\n        headers: {\n          \"content-type\": \"application/json\",\n          \"access-control-allow-origin\": \"*\"\n        },\n        text: JSON.stringify(result)\n      };\n    }\n    if (route === routes.getToken) {\n      const token2 = headers.authorization?.substr(\"token \".length);\n      if (!token2) {\n        throw new Error(\n          '[@octokit/oauth-app] \"Authorization\" header is required'\n        );\n      }\n      const result = await app.checkToken({\n        token: token2\n      });\n      delete result.authentication.clientSecret;\n      return {\n        status: 200,\n        headers: {\n          \"content-type\": \"application/json\",\n          \"access-control-allow-origin\": \"*\"\n        },\n        text: JSON.stringify(result)\n      };\n    }\n    if (route === routes.patchToken) {\n      const token2 = headers.authorization?.substr(\"token \".length);\n      if (!token2) {\n        throw new Error(\n          '[@octokit/oauth-app] \"Authorization\" header is required'\n        );\n      }\n      const result = await app.resetToken({ token: token2 });\n      delete result.authentication.clientSecret;\n      return {\n        status: 200,\n        headers: {\n          \"content-type\": \"application/json\",\n          \"access-control-allow-origin\": \"*\"\n        },\n        text: JSON.stringify(result)\n      };\n    }\n    if (route === routes.patchRefreshToken) {\n      const token2 = headers.authorization?.substr(\"token \".length);\n      if (!token2) {\n        throw new Error(\n          '[@octokit/oauth-app] \"Authorization\" header is required'\n        );\n      }\n      const { refreshToken } = json;\n      if (!refreshToken) {\n        throw new Error(\n          \"[@octokit/oauth-app] refreshToken must be sent in request body\"\n        );\n      }\n      const result = await app.refreshToken({ refreshToken });\n      delete result.authentication.clientSecret;\n      return {\n        status: 200,\n        headers: {\n          \"content-type\": \"application/json\",\n          \"access-control-allow-origin\": \"*\"\n        },\n        text: JSON.stringify(result)\n      };\n    }\n    if (route === routes.scopeToken) {\n      const token2 = headers.authorization?.substr(\"token \".length);\n      if (!token2) {\n        throw new Error(\n          '[@octokit/oauth-app] \"Authorization\" header is required'\n        );\n      }\n      const result = await app.scopeToken({\n        token: token2,\n        ...json\n      });\n      delete result.authentication.clientSecret;\n      return {\n        status: 200,\n        headers: {\n          \"content-type\": \"application/json\",\n          \"access-control-allow-origin\": \"*\"\n        },\n        text: JSON.stringify(result)\n      };\n    }\n    if (route === routes.deleteToken) {\n      const token2 = headers.authorization?.substr(\"token \".length);\n      if (!token2) {\n        throw new Error(\n          '[@octokit/oauth-app] \"Authorization\" header is required'\n        );\n      }\n      await app.deleteToken({\n        token: token2\n      });\n      return {\n        status: 204,\n        headers: { \"access-control-allow-origin\": \"*\" }\n      };\n    }\n    const token = headers.authorization?.substr(\"token \".length);\n    if (!token) {\n      throw new Error(\n        '[@octokit/oauth-app] \"Authorization\" header is required'\n      );\n    }\n    await app.deleteAuthorization({\n      token\n    });\n    return {\n      status: 204,\n      headers: { \"access-control-allow-origin\": \"*\" }\n    };\n  } catch (error) {\n    return {\n      status: 400,\n      headers: {\n        \"content-type\": \"application/json\",\n        \"access-control-allow-origin\": \"*\"\n      },\n      text: JSON.stringify({ error: error.message })\n    };\n  }\n}\nexport {\n  handleRequest\n};\n", "function parseRequest(request) {\n  const { method, url, headers } = request;\n  async function text() {\n    const text2 = await new Promise((resolve, reject) => {\n      let bodyChunks = [];\n      request.on(\"error\", reject).on(\"data\", (chunk) => bodyChunks.push(chunk)).on(\"end\", () => resolve(Buffer.concat(bodyChunks).toString()));\n    });\n    return text2;\n  }\n  return { method, url, headers, text };\n}\nexport {\n  parseRequest\n};\n", "function sendResponse(octokitResponse, response) {\n  response.writeHead(octokitResponse.status, octokitResponse.headers);\n  response.end(octokitResponse.text);\n}\nexport {\n  sendResponse\n};\n", "import { parseRequest } from \"./parse-request\";\nimport { sendResponse } from \"./send-response\";\nimport { handleRequest } from \"../handle-request\";\nfunction createNodeMiddleware(app, options = {}) {\n  return async function(request, response, next) {\n    const octokitRequest = await parseRequest(request);\n    const octokitResponse = await handleRequest(app, options, octokitRequest);\n    if (octokitResponse) {\n      sendResponse(octokitResponse, response);\n      return true;\n    } else {\n      next?.();\n      return false;\n    }\n  };\n}\nexport {\n  createNodeMiddleware\n};\n", "function parseRequest(request) {\n  const headers = Object.fromEntries(request.headers.entries());\n  return {\n    method: request.method,\n    url: request.url,\n    headers,\n    text: () => request.text()\n  };\n}\nexport {\n  parseRequest\n};\n", "function sendResponse(octokitResponse) {\n  return new Response(octokitResponse.text, {\n    status: octokitResponse.status,\n    headers: octokitResponse.headers\n  });\n}\nexport {\n  sendResponse\n};\n", "import { parseRequest } from \"./parse-request\";\nimport { sendResponse } from \"./send-response\";\nimport { handleRequest } from \"../handle-request\";\nfunction createWebWorkerHandler(app, options = {}) {\n  return async function(request) {\n    const octokitRequest = await parseRequest(request);\n    const octokitResponse = await handleRequest(app, options, octokitRequest);\n    return octokitResponse ? sendResponse(octokitResponse) : void 0;\n  };\n}\nexport {\n  createWebWorkerHandler\n};\n", "function parseRequest(request) {\n  const { method } = request.requestContext.http;\n  let url = request.rawPath;\n  const { stage } = request.requestContext;\n  if (url.startsWith(\"/\" + stage))\n    url = url.substring(stage.length + 1);\n  if (request.rawQueryString)\n    url += \"?\" + request.rawQueryString;\n  const headers = request.headers;\n  const text = async () => request.body || \"\";\n  return { method, url, headers, text };\n}\nexport {\n  parseRequest\n};\n", "function sendResponse(octokitResponse) {\n  return {\n    statusCode: octokitResponse.status,\n    headers: octokitResponse.headers,\n    body: octokitResponse.text\n  };\n}\nexport {\n  sendResponse\n};\n", "import { parseRequest } from \"./api-gateway-v2-parse-request\";\nimport { sendResponse } from \"./api-gateway-v2-send-response\";\nimport { handleRequest } from \"../handle-request\";\nfunction createAWSLambdaAPIGatewayV2Handler(app, options = {}) {\n  return async function(event) {\n    const request = parseRequest(event);\n    const response = await handleRequest(app, options, request);\n    return response ? sendResponse(response) : void 0;\n  };\n}\nexport {\n  createAWSLambdaAPIGatewayV2Handler\n};\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;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W;AACnC,SAAK,OAAO,QAAQ,cAAc;AAClC,UAAM,UAAU,IAAIA,SAAQ;AAAA,MAC1B,cAAc;AAAA,MACd,MAAM;AAAA,QACJ,YAAY,KAAK;AAAA,QACjB,UAAU,QAAQ;AAAA,QAClB,cAAc,QAAQ;AAAA,MACxB;AAAA,IACF,CAAC;AACD,UAAM,QAAQ;AAAA,MACZ,YAAY,KAAK;AAAA,MACjB,UAAU,QAAQ;AAAA,MAClB,cAAc,QAAQ;AAAA;AAAA,MAEtB,eAAe,QAAQ,iBAAiB,CAAC;AAAA,MACzC,aAAa,QAAQ;AAAA,MACrB,SAAS,QAAQ;AAAA,MACjB,aAAa,QAAQ;AAAA,MACrB,KAAK,QAAQ;AAAA,MACb,SAAAA;AAAA,MACA;AAAA,MACA,eAAe,CAAC;AAAA,IAClB;AACA,SAAK,KAAK,gBAAgB,KAAK,MAAM,KAAK;AAC1C,SAAK,UAAU;AACf,SAAK,iBAAiB,wBAAwB,KAAK,MAAM,KAAK;AAC9D,SAAK,6BAA6B,oCAAoC;AAAA,MACpE;AAAA,MACA;AAAA,IACF;AACA,SAAK,cAAc,qBAAqB;AAAA,MACtC;AAAA,MACA;AAAA,IACF;AACA,SAAK,aAAa,oBAAoB;AAAA,MACpC;AAAA,MACA;AAAA,IACF;AACA,SAAK,aAAa,oBAAoB;AAAA,MACpC;AAAA,MACA;AAAA,IACF;AACA,SAAK,eAAe,sBAAsB;AAAA,MACxC;AAAA,MACA;AAAA,IACF;AACA,SAAK,aAAa,oBAAoB;AAAA,MACpC;AAAA,MACA;AAAA,IACF;AACA,SAAK,cAAc,qBAAqB,KAAK,MAAM,KAAK;AACxD,SAAK,sBAAsB,6BAA6B,KAAK,MAAM,KAAK;AAAA,EAC1E;AACF;",
  "names": ["OAuthMethods", "OAuthMethods", "import_auth_oauth_user", "OAuthMethods", "import_auth_oauth_user", "OAuthMethods", "import_auth_oauth_user", "OAuthMethods", "OAuthMethods", "import_auth_unauthenticated", "refreshToken", "parseRequest", "sendResponse", "parseRequest", "sendResponse", "parseRequest", "sendResponse", "parseRequest", "sendResponse", "Octokit"]
}
