@nsshunt/stsuxvue 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stsuxvue.mjs CHANGED
@@ -5755,7 +5755,7 @@ var Filter = /* @__PURE__ */ function() {
5755
5755
  }();
5756
5756
  var ansi_to_html = Filter;
5757
5757
  const Convert = /* @__PURE__ */ getDefaultExportFromCjs(ansi_to_html);
5758
- /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */
5758
+ /*! @license DOMPurify 3.2.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.0/LICENSE */
5759
5759
  const {
5760
5760
  entries,
5761
5761
  setPrototypeOf,
@@ -5913,16 +5913,16 @@ const DOCTYPE_NAME = seal(/^html$/i);
5913
5913
  const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
5914
5914
  var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
5915
5915
  __proto__: null,
5916
- MUSTACHE_EXPR,
5917
- ERB_EXPR,
5918
- TMPLIT_EXPR,
5919
- DATA_ATTR,
5920
5916
  ARIA_ATTR,
5921
- IS_ALLOWED_URI,
5922
- IS_SCRIPT_OR_DATA,
5923
5917
  ATTR_WHITESPACE,
5918
+ CUSTOM_ELEMENT,
5919
+ DATA_ATTR,
5924
5920
  DOCTYPE_NAME,
5925
- CUSTOM_ELEMENT
5921
+ ERB_EXPR,
5922
+ IS_ALLOWED_URI,
5923
+ IS_SCRIPT_OR_DATA,
5924
+ MUSTACHE_EXPR,
5925
+ TMPLIT_EXPR
5926
5926
  });
5927
5927
  const NODE_TYPE = {
5928
5928
  element: 1,
@@ -5971,7 +5971,7 @@ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTyp
5971
5971
  function createDOMPurify() {
5972
5972
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
5973
5973
  const DOMPurify = (root) => createDOMPurify(root);
5974
- DOMPurify.version = "3.1.7";
5974
+ DOMPurify.version = "3.2.0";
5975
5975
  DOMPurify.removed = [];
5976
5976
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document) {
5977
5977
  DOMPurify.isSupported = false;
@@ -6088,6 +6088,9 @@ function createDOMPurify() {
6088
6088
  let IS_EMPTY_INPUT = false;
6089
6089
  let ALLOWED_NAMESPACES = null;
6090
6090
  const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
6091
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
6092
+ let HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
6093
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
6091
6094
  let PARSER_MEDIA_TYPE = null;
6092
6095
  const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
6093
6096
  const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
@@ -6112,22 +6115,8 @@ function createDOMPurify() {
6112
6115
  ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
6113
6116
  ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
6114
6117
  ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
6115
- URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(
6116
- clone(DEFAULT_URI_SAFE_ATTRIBUTES),
6117
- // eslint-disable-line indent
6118
- cfg.ADD_URI_SAFE_ATTR,
6119
- // eslint-disable-line indent
6120
- transformCaseFunc
6121
- // eslint-disable-line indent
6122
- ) : DEFAULT_URI_SAFE_ATTRIBUTES;
6123
- DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(
6124
- clone(DEFAULT_DATA_URI_TAGS),
6125
- // eslint-disable-line indent
6126
- cfg.ADD_DATA_URI_TAGS,
6127
- // eslint-disable-line indent
6128
- transformCaseFunc
6129
- // eslint-disable-line indent
6130
- ) : DEFAULT_DATA_URI_TAGS;
6118
+ URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
6119
+ DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
6131
6120
  FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
6132
6121
  FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
6133
6122
  FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
@@ -6149,6 +6138,8 @@ function createDOMPurify() {
6149
6138
  IN_PLACE = cfg.IN_PLACE || false;
6150
6139
  IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
6151
6140
  NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
6141
+ MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
6142
+ HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
6152
6143
  CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
6153
6144
  if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
6154
6145
  CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
@@ -6241,9 +6232,6 @@ function createDOMPurify() {
6241
6232
  }
6242
6233
  CONFIG = cfg;
6243
6234
  };
6244
- const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
6245
- const HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
6246
- const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
6247
6235
  const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
6248
6236
  const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
6249
6237
  const _checkValidNamespace = function _checkValidNamespace2(element) {
@@ -6301,28 +6289,28 @@ function createDOMPurify() {
6301
6289
  remove(node);
6302
6290
  }
6303
6291
  };
6304
- const _removeAttribute = function _removeAttribute2(name, node) {
6292
+ const _removeAttribute = function _removeAttribute2(name, element) {
6305
6293
  try {
6306
6294
  arrayPush(DOMPurify.removed, {
6307
- attribute: node.getAttributeNode(name),
6308
- from: node
6295
+ attribute: element.getAttributeNode(name),
6296
+ from: element
6309
6297
  });
6310
6298
  } catch (_) {
6311
6299
  arrayPush(DOMPurify.removed, {
6312
6300
  attribute: null,
6313
- from: node
6301
+ from: element
6314
6302
  });
6315
6303
  }
6316
- node.removeAttribute(name);
6304
+ element.removeAttribute(name);
6317
6305
  if (name === "is" && !ALLOWED_ATTR[name]) {
6318
6306
  if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
6319
6307
  try {
6320
- _forceRemove(node);
6308
+ _forceRemove(element);
6321
6309
  } catch (_) {
6322
6310
  }
6323
6311
  } else {
6324
6312
  try {
6325
- node.setAttribute(name, "");
6313
+ element.setAttribute(name, "");
6326
6314
  } catch (_) {
6327
6315
  }
6328
6316
  }
@@ -6372,20 +6360,20 @@ function createDOMPurify() {
6372
6360
  null
6373
6361
  );
6374
6362
  };
6375
- const _isClobbered = function _isClobbered2(elm) {
6376
- return elm instanceof HTMLFormElement && (typeof elm.nodeName !== "string" || typeof elm.textContent !== "string" || typeof elm.removeChild !== "function" || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== "function" || typeof elm.setAttribute !== "function" || typeof elm.namespaceURI !== "string" || typeof elm.insertBefore !== "function" || typeof elm.hasChildNodes !== "function");
6363
+ const _isClobbered = function _isClobbered2(element) {
6364
+ return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
6377
6365
  };
6378
- const _isNode = function _isNode2(object) {
6379
- return typeof Node === "function" && object instanceof Node;
6366
+ const _isNode = function _isNode2(value) {
6367
+ return typeof Node === "function" && value instanceof Node;
6380
6368
  };
6381
- const _executeHook = function _executeHook2(entryPoint, currentNode, data) {
6369
+ function _executeHook(entryPoint, currentNode, data) {
6382
6370
  if (!hooks[entryPoint]) {
6383
6371
  return;
6384
6372
  }
6385
6373
  arrayForEach(hooks[entryPoint], (hook) => {
6386
6374
  hook.call(DOMPurify, currentNode, data, CONFIG);
6387
6375
  });
6388
- };
6376
+ }
6389
6377
  const _sanitizeElements = function _sanitizeElements2(currentNode) {
6390
6378
  let content = null;
6391
6379
  _executeHook("beforeSanitizeElements", currentNode, null);
@@ -6499,7 +6487,8 @@ function createDOMPurify() {
6499
6487
  attrName: "",
6500
6488
  attrValue: "",
6501
6489
  keepAttr: true,
6502
- allowedAttributes: ALLOWED_ATTR
6490
+ allowedAttributes: ALLOWED_ATTR,
6491
+ forceKeepAttr: void 0
6503
6492
  };
6504
6493
  let l = attributes.length;
6505
6494
  while (l--) {
@@ -6517,6 +6506,14 @@ function createDOMPurify() {
6517
6506
  hookEvent.forceKeepAttr = void 0;
6518
6507
  _executeHook("uponSanitizeAttribute", currentNode, hookEvent);
6519
6508
  value = hookEvent.attrValue;
6509
+ if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
6510
+ _removeAttribute(name, currentNode);
6511
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
6512
+ }
6513
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
6514
+ _removeAttribute(name, currentNode);
6515
+ continue;
6516
+ }
6520
6517
  if (hookEvent.forceKeepAttr) {
6521
6518
  continue;
6522
6519
  }
@@ -6537,14 +6534,6 @@ function createDOMPurify() {
6537
6534
  if (!_isValidAttribute(lcTag, lcName, value)) {
6538
6535
  continue;
6539
6536
  }
6540
- if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
6541
- _removeAttribute(name, currentNode);
6542
- value = SANITIZE_NAMED_PROPS_PREFIX + value;
6543
- }
6544
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
6545
- _removeAttribute(name, currentNode);
6546
- continue;
6547
- }
6548
6537
  if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
6549
6538
  if (namespaceURI) ;
6550
6539
  else {