"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
const index = require("../../_virtual/index.cjs");
require("./lib-default.cjs");
require("./lib-parser.cjs");
const xss$1 = require("./lib-xss.cjs");
const _default = require("../../_virtual/default.cjs");
const parser = require("../../_virtual/parser.cjs");
(function(module2, exports2) {
  var DEFAULT = _default.__exports;
  var parser$1 = parser.__exports;
  var FilterXSS = xss$1.xss;
  function filterXSS(html, options) {
    var xss2 = new FilterXSS(options);
    return xss2.process(html);
  }
  exports2 = module2.exports = filterXSS;
  exports2.filterXSS = filterXSS;
  exports2.FilterXSS = FilterXSS;
  (function() {
    for (var i in DEFAULT) {
      exports2[i] = DEFAULT[i];
    }
    for (var j in parser$1) {
      exports2[j] = parser$1[j];
    }
  })();
  if (typeof window !== "undefined") {
    window.filterXSS = module2.exports;
  }
  function isWorkerEnv() {
    return typeof self !== "undefined" && typeof DedicatedWorkerGlobalScope !== "undefined" && self instanceof DedicatedWorkerGlobalScope;
  }
  if (isWorkerEnv()) {
    self.filterXSS = module2.exports;
  }
})(index.__module, index.__module.exports);
var libExports = index.__module.exports;
const xss = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(libExports);
exports.default = xss;
exports.libExports = libExports;
//# sourceMappingURL=lib-index.cjs.map
