"use strict";
/* Socket Lib - Built with esbuild */
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var internal_exports = {};
__export(internal_exports, {
  boundConsoleEntries: () => boundConsoleEntries,
  consolePropAttributes: () => consolePropAttributes,
  globalConsole: () => globalConsole,
  maxIndentation: () => maxIndentation,
  privateConsole: () => privateConsole,
  privateConstructorArgs: () => privateConstructorArgs
});
module.exports = __toCommonJS(internal_exports);
var import_map_set = require("../primordials/map-set");
const globalConsole = console;
const consolePropAttributes = {
  __proto__: null,
  writable: true,
  enumerable: false,
  configurable: true
};
const maxIndentation = 1e3;
const boundConsoleEntries = [
  // Add bound properties from console[kBindProperties](ignoreErrors, colorMode, groupIndentation).
  // https://github.com/nodejs/node/blob/v24.0.1/lib/internal/console/constructor.js#L230-L265
  "_stderrErrorHandler",
  "_stdoutErrorHandler",
  // Add methods that need to be bound to function properly.
  "assert",
  "clear",
  "count",
  "countReset",
  "createTask",
  "debug",
  "dir",
  "dirxml",
  "error",
  // Skip group methods because in at least Node 20 with the Node --frozen-intrinsics
  // flag it triggers a readonly property for Symbol(kGroupIndent). Instead, we
  // implement these methods ourselves.
  //'group',
  //'groupCollapsed',
  //'groupEnd',
  "info",
  "log",
  "table",
  "time",
  "timeEnd",
  "timeLog",
  "trace",
  "warn"
].filter((n) => typeof globalConsole[n] === "function").map((n) => [n, globalConsole[n].bind(globalConsole)]);
const privateConsole = new import_map_set.WeakMapCtor();
const privateConstructorArgs = new import_map_set.WeakMapCtor();
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  boundConsoleEntries,
  consolePropAttributes,
  globalConsole,
  maxIndentation,
  privateConsole,
  privateConstructorArgs
});
