"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 compare_exports = {};
__export(compare_exports, {
  compare: () => compare,
  eq: () => eq,
  gt: () => gt,
  gte: () => gte,
  lt: () => lt,
  lte: () => lte,
  neq: () => neq,
  rsort: () => rsort,
  sort: () => sort
});
module.exports = __toCommonJS(compare_exports);
var import_internal = require("./_internal");
function compare(a, b) {
  try {
    return import_internal.impl.compare(a, b);
  } catch {
    return void 0;
  }
}
const eq = import_internal.impl.eq.bind(import_internal.impl);
const neq = typeof import_internal.impl.neq === "function" ? import_internal.impl.neq.bind(import_internal.impl) : (a, b) => !import_internal.impl.eq(a, b);
const gt = import_internal.impl.gt.bind(import_internal.impl);
const gte = import_internal.impl.gte.bind(import_internal.impl);
const lt = import_internal.impl.lt.bind(import_internal.impl);
const lte = import_internal.impl.lte.bind(import_internal.impl);
function rsort(versions) {
  return import_internal.impl.rsort([...versions]);
}
function sort(versions) {
  return import_internal.impl.sort([...versions]);
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  compare,
  eq,
  gt,
  gte,
  lt,
  lte,
  neq,
  rsort,
  sort
});
