"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 string_exports = {};
__export(string_exports, {
  StringCtor: () => StringCtor,
  StringFromCharCode: () => StringFromCharCode,
  StringFromCodePoint: () => StringFromCodePoint,
  StringPrototypeAt: () => StringPrototypeAt,
  StringPrototypeCharAt: () => StringPrototypeCharAt,
  StringPrototypeCharCodeAt: () => StringPrototypeCharCodeAt,
  StringPrototypeCodePointAt: () => StringPrototypeCodePointAt,
  StringPrototypeConcat: () => StringPrototypeConcat,
  StringPrototypeEndsWith: () => StringPrototypeEndsWith,
  StringPrototypeIncludes: () => StringPrototypeIncludes,
  StringPrototypeIndexOf: () => StringPrototypeIndexOf,
  StringPrototypeIsWellFormed: () => StringPrototypeIsWellFormed,
  StringPrototypeLastIndexOf: () => StringPrototypeLastIndexOf,
  StringPrototypeLocaleCompare: () => StringPrototypeLocaleCompare,
  StringPrototypeMatch: () => StringPrototypeMatch,
  StringPrototypeMatchAll: () => StringPrototypeMatchAll,
  StringPrototypeNormalize: () => StringPrototypeNormalize,
  StringPrototypePadEnd: () => StringPrototypePadEnd,
  StringPrototypePadStart: () => StringPrototypePadStart,
  StringPrototypeRepeat: () => StringPrototypeRepeat,
  StringPrototypeReplace: () => StringPrototypeReplace,
  StringPrototypeReplaceAll: () => StringPrototypeReplaceAll,
  StringPrototypeSearch: () => StringPrototypeSearch,
  StringPrototypeSlice: () => StringPrototypeSlice,
  StringPrototypeSplit: () => StringPrototypeSplit,
  StringPrototypeStartsWith: () => StringPrototypeStartsWith,
  StringPrototypeSubstring: () => StringPrototypeSubstring,
  StringPrototypeToLocaleLowerCase: () => StringPrototypeToLocaleLowerCase,
  StringPrototypeToLocaleUpperCase: () => StringPrototypeToLocaleUpperCase,
  StringPrototypeToLowerCase: () => StringPrototypeToLowerCase,
  StringPrototypeToString: () => StringPrototypeToString,
  StringPrototypeToUpperCase: () => StringPrototypeToUpperCase,
  StringPrototypeToWellFormed: () => StringPrototypeToWellFormed,
  StringPrototypeTrim: () => StringPrototypeTrim,
  StringPrototypeTrimEnd: () => StringPrototypeTrimEnd,
  StringPrototypeTrimStart: () => StringPrototypeTrimStart,
  StringPrototypeValueOf: () => StringPrototypeValueOf,
  StringRaw: () => StringRaw
});
module.exports = __toCommonJS(string_exports);
var import_primordial = require("../smol/primordial");
var import_uncurry = require("./uncurry");
const _smolPrimordial = (0, import_primordial.getSmolPrimordial)();
const StringCtor = String;
const StringFromCharCode = String.fromCharCode;
const StringFromCodePoint = String.fromCodePoint;
const StringRaw = String.raw;
const StringPrototypeAt = (0, import_uncurry.uncurryThis)(String.prototype.at);
const StringPrototypeCharAt = (0, import_uncurry.uncurryThis)(String.prototype.charAt);
const _smolCharCodeAt = _smolPrimordial?.stringCharCodeAt;
const StringPrototypeCharCodeAt = _smolCharCodeAt ? (s, i) => {
  const code = _smolCharCodeAt(s, i);
  return code === -1 ? NaN : code;
} : (0, import_uncurry.uncurryThis)(String.prototype.charCodeAt);
const StringPrototypeCodePointAt = (0, import_uncurry.uncurryThis)(
  String.prototype.codePointAt
);
const StringPrototypeConcat = (0, import_uncurry.uncurryThis)(String.prototype.concat);
const StringPrototypeEndsWith = (0, import_uncurry.uncurryThis)(String.prototype.endsWith);
const StringPrototypeIncludes = (0, import_uncurry.uncurryThis)(String.prototype.includes);
const StringPrototypeIndexOf = (0, import_uncurry.uncurryThis)(String.prototype.indexOf);
const StringPrototypeIsWellFormed = _smolPrimordial?.stringIsWellFormed ?? (0, import_uncurry.uncurryThis)(String.prototype.isWellFormed);
const StringPrototypeLastIndexOf = (0, import_uncurry.uncurryThis)(
  String.prototype.lastIndexOf
);
const StringPrototypeLocaleCompare = (0, import_uncurry.uncurryThis)(
  String.prototype.localeCompare
);
const StringPrototypeMatch = (0, import_uncurry.uncurryThis)(
  String.prototype.match
);
const StringPrototypeMatchAll = (0, import_uncurry.uncurryThis)(
  String.prototype.matchAll
);
const StringPrototypeNormalize = (0, import_uncurry.uncurryThis)(String.prototype.normalize);
const StringPrototypePadEnd = (0, import_uncurry.uncurryThis)(String.prototype.padEnd);
const StringPrototypePadStart = (0, import_uncurry.uncurryThis)(String.prototype.padStart);
const StringPrototypeRepeat = (0, import_uncurry.uncurryThis)(String.prototype.repeat);
const StringPrototypeReplace = (0, import_uncurry.uncurryThis)(
  String.prototype.replace
);
const StringPrototypeReplaceAll = (0, import_uncurry.uncurryThis)(
  String.prototype.replaceAll
);
const StringPrototypeSearch = (0, import_uncurry.uncurryThis)(String.prototype.search);
const StringPrototypeSlice = (0, import_uncurry.uncurryThis)(String.prototype.slice);
const StringPrototypeSplit = (0, import_uncurry.uncurryThis)(String.prototype.split);
const StringPrototypeStartsWith = (0, import_uncurry.uncurryThis)(
  String.prototype.startsWith
);
const StringPrototypeSubstring = (0, import_uncurry.uncurryThis)(String.prototype.substring);
const StringPrototypeToLocaleLowerCase = (0, import_uncurry.uncurryThis)(
  String.prototype.toLocaleLowerCase
);
const StringPrototypeToLocaleUpperCase = (0, import_uncurry.uncurryThis)(
  String.prototype.toLocaleUpperCase
);
const StringPrototypeToLowerCase = (0, import_uncurry.uncurryThis)(
  String.prototype.toLowerCase
);
const StringPrototypeToString = (0, import_uncurry.uncurryThis)(String.prototype.toString);
const StringPrototypeToUpperCase = (0, import_uncurry.uncurryThis)(
  String.prototype.toUpperCase
);
const StringPrototypeToWellFormed = (0, import_uncurry.uncurryThis)(
  String.prototype.toWellFormed
);
const StringPrototypeTrim = (0, import_uncurry.uncurryThis)(String.prototype.trim);
const StringPrototypeTrimEnd = (0, import_uncurry.uncurryThis)(String.prototype.trimEnd);
const StringPrototypeTrimStart = (0, import_uncurry.uncurryThis)(String.prototype.trimStart);
const StringPrototypeValueOf = (0, import_uncurry.uncurryThis)(String.prototype.valueOf);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  StringCtor,
  StringFromCharCode,
  StringFromCodePoint,
  StringPrototypeAt,
  StringPrototypeCharAt,
  StringPrototypeCharCodeAt,
  StringPrototypeCodePointAt,
  StringPrototypeConcat,
  StringPrototypeEndsWith,
  StringPrototypeIncludes,
  StringPrototypeIndexOf,
  StringPrototypeIsWellFormed,
  StringPrototypeLastIndexOf,
  StringPrototypeLocaleCompare,
  StringPrototypeMatch,
  StringPrototypeMatchAll,
  StringPrototypeNormalize,
  StringPrototypePadEnd,
  StringPrototypePadStart,
  StringPrototypeRepeat,
  StringPrototypeReplace,
  StringPrototypeReplaceAll,
  StringPrototypeSearch,
  StringPrototypeSlice,
  StringPrototypeSplit,
  StringPrototypeStartsWith,
  StringPrototypeSubstring,
  StringPrototypeToLocaleLowerCase,
  StringPrototypeToLocaleUpperCase,
  StringPrototypeToLowerCase,
  StringPrototypeToString,
  StringPrototypeToUpperCase,
  StringPrototypeToWellFormed,
  StringPrototypeTrim,
  StringPrototypeTrimEnd,
  StringPrototypeTrimStart,
  StringPrototypeValueOf,
  StringRaw
});
