// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import type { BaseHandler } from "./base_handler.ts";
import { DEFAULT_CONFIG } from "./_config.ts";
import type { Logger } from "./logger.ts";

export const state = {
  handlers: new Map<string, BaseHandler>(),
  loggers: new Map<string, Logger>(),
  config: DEFAULT_CONFIG,
};

// denoCacheMetadata={"headers":{"content-length":"355","access-control-expose-headers":"*","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","etag":"\"dd144123802b2575c8f75904dca0b4df\"","content-type":"text/typescript","date":"Tue, 28 Jul 2026 12:31:15 GMT","x-jsr-backend":"modules","cross-origin-resource-policy":"cross-origin","cf-ray":"a223e6581b8b7db6-LAX","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","x-content-type-options":"nosniff","x-robots-tag":"noindex","set-cookie":"__cf_bm=8oE1ebGjR2yZGxi.Em5Nl4djyESLwW5_BABopfypqNQ-1785241875.2269692-1.0.1.1-cZC.drvU9qPo7eRVFG4gGmttHO8hfNjjMqXOcOT9Q6U8jWaAR4F2WUJ0_KrQvVMV4bpnbFOZrDtBkHFXEYPt9CchDygt1AyBq96pSYpxrT2GgC0i36A6kf9rCBM5DyZa; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","alt-svc":"h3=\":443\"; ma=86400","server":"cloudflare","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=g%2FmH186xsjjXY%2FRp3UhFVAVxRut1xmEdQbmWN8dk7D%2FWl7mpXKAFsBi1hTyY0v6shziXPV3%2FuiFYE9enJVPNHK0UDuOWAaYOHAkCBeMucI%2BBCfOmzrS7Rt0%3D\"}]}","access-control-allow-origin":"*","vary":"Origin","cache-control":"public, max-age=31536000, immutable"},"url":"https://jsr.io/@std/log/0.224.7/_state.ts","time":1785241875}