@nsshunt/stsuxvue 1.0.124 → 1.0.126
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.cjs +376 -88
- package/dist/stsuxvue.cjs.map +1 -1
- package/dist/stsuxvue.mjs +376 -88
- package/dist/stsuxvue.mjs.map +1 -1
- package/package.json +18 -18
- package/types/Views/UXModelNavigatorView.vue.d.ts.map +1 -1
- package/types/Views/UXModelNavigatorViewSingle.vue.d.ts.map +1 -1
- package/types/components/UXModelInstrumentServiceCommon.vue.d.ts.map +1 -1
- package/types/components/UXModelInstrumentServiceSmall.vue.d.ts.map +1 -1
- package/types/components/UXModelNavigator.vue.d.ts.map +1 -1
- package/types/components/UXModelNode.vue.d.ts.map +1 -1
- package/types/plugins/vuetify.d.ts +1 -0
- package/types/plugins/vuetify.d.ts.map +1 -1
package/dist/stsuxvue.cjs
CHANGED
|
@@ -6036,7 +6036,7 @@ var import_ansi_to_html = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
|
|
|
6036
6036
|
return Filter;
|
|
6037
6037
|
}();
|
|
6038
6038
|
})))(), 1);
|
|
6039
|
-
/*! @license DOMPurify 3.4.
|
|
6039
|
+
/*! @license DOMPurify 3.4.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.9/LICENSE */
|
|
6040
6040
|
function _arrayLikeToArray(r, a) {
|
|
6041
6041
|
(null == a || a > r.length) && (a = r.length);
|
|
6042
6042
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
@@ -6906,10 +6906,17 @@ var DOCTYPE_NAME = seal(/^html$/i);
|
|
|
6906
6906
|
var CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
6907
6907
|
var NODE_TYPE = {
|
|
6908
6908
|
element: 1,
|
|
6909
|
+
attribute: 2,
|
|
6909
6910
|
text: 3,
|
|
6911
|
+
cdataSection: 4,
|
|
6912
|
+
entityReference: 5,
|
|
6913
|
+
entityNode: 6,
|
|
6910
6914
|
progressingInstruction: 7,
|
|
6911
6915
|
comment: 8,
|
|
6912
|
-
document: 9
|
|
6916
|
+
document: 9,
|
|
6917
|
+
documentType: 10,
|
|
6918
|
+
documentFragment: 11,
|
|
6919
|
+
notation: 12
|
|
6913
6920
|
};
|
|
6914
6921
|
var getGlobal$1 = function getGlobal() {
|
|
6915
6922
|
return typeof window === "undefined" ? null : window;
|
|
@@ -6958,7 +6965,7 @@ var _createHooksMap = function _createHooksMap() {
|
|
|
6958
6965
|
function createDOMPurify() {
|
|
6959
6966
|
let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal$1();
|
|
6960
6967
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
6961
|
-
DOMPurify.version = "3.4.
|
|
6968
|
+
DOMPurify.version = "3.4.9";
|
|
6962
6969
|
DOMPurify.removed = [];
|
|
6963
6970
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
6964
6971
|
DOMPurify.isSupported = false;
|
|
@@ -6967,20 +6974,58 @@ function createDOMPurify() {
|
|
|
6967
6974
|
let document = window.document;
|
|
6968
6975
|
const originalDocument = document;
|
|
6969
6976
|
const currentScript = originalDocument.currentScript;
|
|
6970
|
-
|
|
6977
|
+
window.DocumentFragment;
|
|
6978
|
+
const HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter;
|
|
6979
|
+
window.NamedNodeMap === void 0 && (window.NamedNodeMap || window.MozNamedAttrMap);
|
|
6980
|
+
window.HTMLFormElement;
|
|
6981
|
+
const DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;
|
|
6971
6982
|
const ElementPrototype = Element.prototype;
|
|
6972
6983
|
const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
|
|
6973
6984
|
const remove = lookupGetter(ElementPrototype, "remove");
|
|
6974
6985
|
const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
|
|
6975
6986
|
const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
|
|
6976
6987
|
const getParentNode = lookupGetter(ElementPrototype, "parentNode");
|
|
6988
|
+
const getShadowRoot = lookupGetter(ElementPrototype, "shadowRoot");
|
|
6989
|
+
const getAttributes = lookupGetter(ElementPrototype, "attributes");
|
|
6977
6990
|
const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
|
|
6991
|
+
const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
|
|
6978
6992
|
if (typeof HTMLTemplateElement === "function") {
|
|
6979
6993
|
const template = document.createElement("template");
|
|
6980
6994
|
if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
|
|
6981
6995
|
}
|
|
6982
6996
|
let trustedTypesPolicy;
|
|
6983
6997
|
let emptyHTML = "";
|
|
6998
|
+
let defaultTrustedTypesPolicy;
|
|
6999
|
+
let defaultTrustedTypesPolicyResolved = false;
|
|
7000
|
+
let IN_TRUSTED_TYPES_POLICY = 0;
|
|
7001
|
+
const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
|
|
7002
|
+
if (IN_TRUSTED_TYPES_POLICY > 0) throw typeErrorCreate("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
7003
|
+
};
|
|
7004
|
+
const _createTrustedHTML = function _createTrustedHTML(html) {
|
|
7005
|
+
_assertNotInTrustedTypesPolicy();
|
|
7006
|
+
IN_TRUSTED_TYPES_POLICY++;
|
|
7007
|
+
try {
|
|
7008
|
+
return trustedTypesPolicy.createHTML(html);
|
|
7009
|
+
} finally {
|
|
7010
|
+
IN_TRUSTED_TYPES_POLICY--;
|
|
7011
|
+
}
|
|
7012
|
+
};
|
|
7013
|
+
const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
|
|
7014
|
+
_assertNotInTrustedTypesPolicy();
|
|
7015
|
+
IN_TRUSTED_TYPES_POLICY++;
|
|
7016
|
+
try {
|
|
7017
|
+
return trustedTypesPolicy.createScriptURL(scriptUrl);
|
|
7018
|
+
} finally {
|
|
7019
|
+
IN_TRUSTED_TYPES_POLICY--;
|
|
7020
|
+
}
|
|
7021
|
+
};
|
|
7022
|
+
const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
|
|
7023
|
+
if (!defaultTrustedTypesPolicyResolved) {
|
|
7024
|
+
defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
7025
|
+
defaultTrustedTypesPolicyResolved = true;
|
|
7026
|
+
}
|
|
7027
|
+
return defaultTrustedTypesPolicy;
|
|
7028
|
+
};
|
|
6984
7029
|
const _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
|
|
6985
7030
|
const importNode = originalDocument.importNode;
|
|
6986
7031
|
let hooks = _createHooksMap();
|
|
@@ -7083,6 +7128,7 @@ function createDOMPurify() {
|
|
|
7083
7128
|
"noscript",
|
|
7084
7129
|
"plaintext",
|
|
7085
7130
|
"script",
|
|
7131
|
+
"selectedcontent",
|
|
7086
7132
|
"style",
|
|
7087
7133
|
"svg",
|
|
7088
7134
|
"template",
|
|
@@ -7266,12 +7312,23 @@ function createDOMPurify() {
|
|
|
7266
7312
|
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
7267
7313
|
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
7268
7314
|
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
7315
|
+
const previousTrustedTypesPolicy = trustedTypesPolicy;
|
|
7269
7316
|
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
7270
|
-
|
|
7317
|
+
try {
|
|
7318
|
+
emptyHTML = _createTrustedHTML("");
|
|
7319
|
+
} catch (error) {
|
|
7320
|
+
trustedTypesPolicy = previousTrustedTypesPolicy;
|
|
7321
|
+
throw error;
|
|
7322
|
+
}
|
|
7323
|
+
} else if (cfg.TRUSTED_TYPES_POLICY === null) {
|
|
7324
|
+
trustedTypesPolicy = void 0;
|
|
7325
|
+
emptyHTML = "";
|
|
7271
7326
|
} else {
|
|
7272
|
-
if (trustedTypesPolicy === void 0) trustedTypesPolicy =
|
|
7273
|
-
if (trustedTypesPolicy
|
|
7327
|
+
if (trustedTypesPolicy === void 0) trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
|
|
7328
|
+
if (trustedTypesPolicy && typeof emptyHTML === "string") emptyHTML = _createTrustedHTML("");
|
|
7274
7329
|
}
|
|
7330
|
+
if ((hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) && ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
7331
|
+
if (hooks.uponSanitizeAttribute.length > 0 && ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
7275
7332
|
if (freeze) freeze(cfg);
|
|
7276
7333
|
CONFIG = cfg;
|
|
7277
7334
|
};
|
|
@@ -7325,6 +7382,45 @@ function createDOMPurify() {
|
|
|
7325
7382
|
getParentNode(node).removeChild(node);
|
|
7326
7383
|
} catch (_) {
|
|
7327
7384
|
remove(node);
|
|
7385
|
+
if (!getParentNode(node)) throw typeErrorCreate("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
7386
|
+
}
|
|
7387
|
+
};
|
|
7388
|
+
/**
|
|
7389
|
+
* _neutralizeRoot
|
|
7390
|
+
*
|
|
7391
|
+
* Fail-closed teardown of an in-place root after the sanitize walk aborts
|
|
7392
|
+
* (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
|
|
7393
|
+
* custom element's reaction detaches a node so `_forceRemove`'s deliberate
|
|
7394
|
+
* parentless guard throws, or any other re-entrant engine mutation — would
|
|
7395
|
+
* otherwise leave the caller's *live* tree half-sanitized, with everything
|
|
7396
|
+
* after the abort point still carrying its handlers. There is no safe way
|
|
7397
|
+
* to resume the walk (the tree mutated under us), so we strip the root bare:
|
|
7398
|
+
* remove every child and every attribute, then let the caller's catch see
|
|
7399
|
+
* the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
|
|
7400
|
+
* getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
|
|
7401
|
+
*
|
|
7402
|
+
* @param root the in-place root to empty
|
|
7403
|
+
*/
|
|
7404
|
+
const _neutralizeRoot = function _neutralizeRoot(root) {
|
|
7405
|
+
const childNodes = getChildNodes ? getChildNodes(root) : root.childNodes;
|
|
7406
|
+
if (childNodes) {
|
|
7407
|
+
const snapshot = [];
|
|
7408
|
+
arrayForEach(childNodes, (child) => {
|
|
7409
|
+
arrayPush(snapshot, child);
|
|
7410
|
+
});
|
|
7411
|
+
arrayForEach(snapshot, (child) => {
|
|
7412
|
+
try {
|
|
7413
|
+
remove(child);
|
|
7414
|
+
} catch (_) {}
|
|
7415
|
+
});
|
|
7416
|
+
}
|
|
7417
|
+
const attributes = getAttributes ? getAttributes(root) : null;
|
|
7418
|
+
if (attributes) for (let i = attributes.length - 1; i >= 0; --i) {
|
|
7419
|
+
const attribute = attributes[i];
|
|
7420
|
+
const name = attribute && attribute.name;
|
|
7421
|
+
if (typeof name === "string") try {
|
|
7422
|
+
root.removeAttribute(name);
|
|
7423
|
+
} catch (_) {}
|
|
7328
7424
|
}
|
|
7329
7425
|
};
|
|
7330
7426
|
/**
|
|
@@ -7354,6 +7450,59 @@ function createDOMPurify() {
|
|
|
7354
7450
|
} catch (_) {}
|
|
7355
7451
|
};
|
|
7356
7452
|
/**
|
|
7453
|
+
* _stripDisallowedAttributes
|
|
7454
|
+
*
|
|
7455
|
+
* Removes every attribute the active configuration does not allow from a
|
|
7456
|
+
* single element, using the same allowlist as the main attribute pass (so
|
|
7457
|
+
* `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
|
|
7458
|
+
* neutralise nodes that are being discarded from an in-place tree.
|
|
7459
|
+
*
|
|
7460
|
+
* @param element the element to strip
|
|
7461
|
+
*/
|
|
7462
|
+
const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
|
|
7463
|
+
const attributes = getAttributes ? getAttributes(element) : element.attributes;
|
|
7464
|
+
if (!attributes) return;
|
|
7465
|
+
for (let i = attributes.length - 1; i >= 0; --i) {
|
|
7466
|
+
const attribute = attributes[i];
|
|
7467
|
+
const name = attribute && attribute.name;
|
|
7468
|
+
if (typeof name !== "string" || ALLOWED_ATTR[transformCaseFunc(name)]) continue;
|
|
7469
|
+
try {
|
|
7470
|
+
element.removeAttribute(name);
|
|
7471
|
+
} catch (_) {}
|
|
7472
|
+
}
|
|
7473
|
+
};
|
|
7474
|
+
/**
|
|
7475
|
+
* _neutralizeSubtree
|
|
7476
|
+
*
|
|
7477
|
+
* Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
|
|
7478
|
+
* move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
|
|
7479
|
+
* namespace, comment, processing-instruction and KEEP_CONTENT:false removals
|
|
7480
|
+
* all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
|
|
7481
|
+
* those dropped nodes are detached from the caller's LIVE tree but a
|
|
7482
|
+
* handler-bearing original among them (an `<img onerror>`/`<video>` that was
|
|
7483
|
+
* loading) keeps its queued resource event, which fires in page scope after
|
|
7484
|
+
* sanitize returns. This walks a removed subtree and strips every attribute
|
|
7485
|
+
* the active configuration does not allow — so `on*` handlers are cancelled
|
|
7486
|
+
* through the SAME allowlist that governs kept nodes, not a separate `/^on/`
|
|
7487
|
+
* blocklist. Run synchronously before sanitize returns, i.e. before any
|
|
7488
|
+
* queued event can fire. Hook-free by design: these nodes leave the output,
|
|
7489
|
+
* so firing attribute hooks for them would be surprising. Clobber-safe reads;
|
|
7490
|
+
* a doomed clobbered node may shadow `removeAttribute` (its own attributes are
|
|
7491
|
+
* irrelevant — it is discarded — while its non-clobbered descendants, e.g.
|
|
7492
|
+
* the `<img>`, are reached and scrubbed).
|
|
7493
|
+
*
|
|
7494
|
+
* @param root the root of a removed subtree to neutralise
|
|
7495
|
+
*/
|
|
7496
|
+
const _neutralizeSubtree = function _neutralizeSubtree(root) {
|
|
7497
|
+
const stack = [root];
|
|
7498
|
+
while (stack.length > 0) {
|
|
7499
|
+
const node = stack.pop();
|
|
7500
|
+
if ((getNodeType ? getNodeType(node) : node.nodeType) === NODE_TYPE.element) _stripDisallowedAttributes(node);
|
|
7501
|
+
const childNodes = getChildNodes ? getChildNodes(node) : node.childNodes;
|
|
7502
|
+
if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
|
|
7503
|
+
}
|
|
7504
|
+
};
|
|
7505
|
+
/**
|
|
7357
7506
|
* _initDocument
|
|
7358
7507
|
*
|
|
7359
7508
|
* @param dirty - a string of dirty markup
|
|
@@ -7368,7 +7517,7 @@ function createDOMPurify() {
|
|
|
7368
7517
|
leadingWhitespace = matches && matches[0];
|
|
7369
7518
|
}
|
|
7370
7519
|
if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) dirty = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + dirty + "</body></html>";
|
|
7371
|
-
const dirtyPayload = trustedTypesPolicy ?
|
|
7520
|
+
const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
|
|
7372
7521
|
if (NAMESPACE === HTML_NAMESPACE) try {
|
|
7373
7522
|
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
|
7374
7523
|
} catch (_) {}
|
|
@@ -7411,7 +7560,8 @@ function createDOMPurify() {
|
|
|
7411
7560
|
*
|
|
7412
7561
|
* @param node The root element whose character data should be scrubbed.
|
|
7413
7562
|
*/
|
|
7414
|
-
const
|
|
7563
|
+
const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
|
|
7564
|
+
var _node$querySelectorAl, _node$querySelectorAl2;
|
|
7415
7565
|
node.normalize();
|
|
7416
7566
|
const walker = createNodeIterator.call(node.ownerDocument || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
|
|
7417
7567
|
let currentNode = walker.nextNode();
|
|
@@ -7427,15 +7577,47 @@ function createDOMPurify() {
|
|
|
7427
7577
|
currentNode.data = data;
|
|
7428
7578
|
currentNode = walker.nextNode();
|
|
7429
7579
|
}
|
|
7580
|
+
const templates = (_node$querySelectorAl = (_node$querySelectorAl2 = node.querySelectorAll) === null || _node$querySelectorAl2 === void 0 ? void 0 : _node$querySelectorAl2.call(node, "template")) !== null && _node$querySelectorAl !== void 0 ? _node$querySelectorAl : [];
|
|
7581
|
+
arrayForEach(Array.from(templates), (tmpl) => {
|
|
7582
|
+
if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
|
|
7583
|
+
});
|
|
7430
7584
|
};
|
|
7431
7585
|
/**
|
|
7432
7586
|
* _isClobbered
|
|
7433
7587
|
*
|
|
7588
|
+
* Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
|
|
7589
|
+
* interface with [LegacyOverrideBuiltIns]; a descendant element with a
|
|
7590
|
+
* `name` attribute matching a prototype property shadows that property
|
|
7591
|
+
* on direct reads. We use this check at the IN_PLACE entry-point and
|
|
7592
|
+
* during attribute sanitization to refuse clobbered forms.
|
|
7593
|
+
*
|
|
7434
7594
|
* @param element element to check for clobbering attacks
|
|
7435
7595
|
* @return true if clobbered, false if safe
|
|
7436
7596
|
*/
|
|
7437
7597
|
const _isClobbered = function _isClobbered(element) {
|
|
7438
|
-
|
|
7598
|
+
const realTagName = getNodeName ? getNodeName(element) : null;
|
|
7599
|
+
if (typeof realTagName !== "string") return false;
|
|
7600
|
+
if (transformCaseFunc(realTagName) !== "form") return false;
|
|
7601
|
+
return typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || element.nodeType !== getNodeType(element) || element.childNodes !== getChildNodes(element);
|
|
7602
|
+
};
|
|
7603
|
+
/**
|
|
7604
|
+
* Checks whether the given value is a DocumentFragment from any realm.
|
|
7605
|
+
*
|
|
7606
|
+
* The realm-independent replacement reads `nodeType` through the cached
|
|
7607
|
+
* Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
|
|
7608
|
+
* constant (11). nodeType is a numeric value resolved from the node's
|
|
7609
|
+
* internal slot, identical across realms for the same kind of node.
|
|
7610
|
+
*
|
|
7611
|
+
* @param value object to check
|
|
7612
|
+
* @return true if value is a DocumentFragment-shaped node from any realm
|
|
7613
|
+
*/
|
|
7614
|
+
const _isDocumentFragment = function _isDocumentFragment(value) {
|
|
7615
|
+
if (!getNodeType || typeof value !== "object" || value === null) return false;
|
|
7616
|
+
try {
|
|
7617
|
+
return getNodeType(value) === NODE_TYPE.documentFragment;
|
|
7618
|
+
} catch (_) {
|
|
7619
|
+
return false;
|
|
7620
|
+
}
|
|
7439
7621
|
};
|
|
7440
7622
|
/**
|
|
7441
7623
|
* Checks whether the given object is a DOM node, including nodes that
|
|
@@ -7445,12 +7627,6 @@ function createDOMPurify() {
|
|
|
7445
7627
|
* sanitize() to silently stringify them and reset IN_PLACE to false,
|
|
7446
7628
|
* returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
|
|
7447
7629
|
*
|
|
7448
|
-
* Implementation: call the cached `nodeType` getter from Node.prototype
|
|
7449
|
-
* directly on the value. This bypasses any clobbered instance property
|
|
7450
|
-
* (e.g. a child element named "nodeType") and works across realms
|
|
7451
|
-
* because the WebIDL `nodeType` getter reads an internal slot that
|
|
7452
|
-
* every real Node has, regardless of which window minted it.
|
|
7453
|
-
*
|
|
7454
7630
|
* @param value object to check whether it's a DOM node
|
|
7455
7631
|
* @return true if value is a DOM node from any realm
|
|
7456
7632
|
*/
|
|
@@ -7483,7 +7659,7 @@ function createDOMPurify() {
|
|
|
7483
7659
|
_forceRemove(currentNode);
|
|
7484
7660
|
return true;
|
|
7485
7661
|
}
|
|
7486
|
-
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
7662
|
+
const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
|
|
7487
7663
|
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
7488
7664
|
tagName,
|
|
7489
7665
|
allowedTags: ALLOWED_TAGS
|
|
@@ -7510,20 +7686,20 @@ function createDOMPurify() {
|
|
|
7510
7686
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
|
|
7511
7687
|
}
|
|
7512
7688
|
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
7513
|
-
const parentNode = getParentNode(currentNode)
|
|
7514
|
-
const childNodes = getChildNodes(currentNode)
|
|
7689
|
+
const parentNode = getParentNode(currentNode);
|
|
7690
|
+
const childNodes = getChildNodes(currentNode);
|
|
7515
7691
|
if (childNodes && parentNode) {
|
|
7516
7692
|
const childCount = childNodes.length;
|
|
7517
7693
|
for (let i = childCount - 1; i >= 0; --i) {
|
|
7518
|
-
const
|
|
7519
|
-
parentNode.insertBefore(
|
|
7694
|
+
const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
|
|
7695
|
+
parentNode.insertBefore(hoisted, getNextSibling(currentNode));
|
|
7520
7696
|
}
|
|
7521
7697
|
}
|
|
7522
7698
|
}
|
|
7523
7699
|
_forceRemove(currentNode);
|
|
7524
7700
|
return true;
|
|
7525
7701
|
}
|
|
7526
|
-
if (currentNode
|
|
7702
|
+
if ((getNodeType ? getNodeType(currentNode) : currentNode.nodeType) === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
|
|
7527
7703
|
_forceRemove(currentNode);
|
|
7528
7704
|
return true;
|
|
7529
7705
|
}
|
|
@@ -7662,10 +7838,10 @@ function createDOMPurify() {
|
|
|
7662
7838
|
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") if (namespaceURI);
|
|
7663
7839
|
else switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
7664
7840
|
case "TrustedHTML":
|
|
7665
|
-
value =
|
|
7841
|
+
value = _createTrustedHTML(value);
|
|
7666
7842
|
break;
|
|
7667
7843
|
case "TrustedScriptURL":
|
|
7668
|
-
value =
|
|
7844
|
+
value = _createTrustedScriptURL(value);
|
|
7669
7845
|
break;
|
|
7670
7846
|
}
|
|
7671
7847
|
if (value !== initValue) try {
|
|
@@ -7692,7 +7868,14 @@ function createDOMPurify() {
|
|
|
7692
7868
|
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
7693
7869
|
_sanitizeElements(shadowNode);
|
|
7694
7870
|
_sanitizeAttributes(shadowNode);
|
|
7695
|
-
if (shadowNode.content
|
|
7871
|
+
if (_isDocumentFragment(shadowNode.content)) _sanitizeShadowDOM2(shadowNode.content);
|
|
7872
|
+
if ((getNodeType ? getNodeType(shadowNode) : shadowNode.nodeType) === NODE_TYPE.element) {
|
|
7873
|
+
const innerSr = getShadowRoot ? getShadowRoot(shadowNode) : shadowNode.shadowRoot;
|
|
7874
|
+
if (_isDocumentFragment(innerSr)) {
|
|
7875
|
+
_sanitizeAttachedShadowRoots(innerSr);
|
|
7876
|
+
_sanitizeShadowDOM2(innerSr);
|
|
7877
|
+
}
|
|
7878
|
+
}
|
|
7696
7879
|
}
|
|
7697
7880
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
7698
7881
|
};
|
|
@@ -7715,19 +7898,45 @@ function createDOMPurify() {
|
|
|
7715
7898
|
*
|
|
7716
7899
|
* @param root the subtree root to walk for attached shadow roots
|
|
7717
7900
|
*/
|
|
7718
|
-
const
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7901
|
+
const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
|
|
7902
|
+
const stack = [{
|
|
7903
|
+
node: root,
|
|
7904
|
+
shadow: null
|
|
7905
|
+
}];
|
|
7906
|
+
while (stack.length > 0) {
|
|
7907
|
+
const item = stack.pop();
|
|
7908
|
+
if (item.shadow) {
|
|
7909
|
+
_sanitizeShadowDOM2(item.shadow);
|
|
7910
|
+
continue;
|
|
7911
|
+
}
|
|
7912
|
+
const node = item.node;
|
|
7913
|
+
const isElement = (getNodeType ? getNodeType(node) : node.nodeType) === NODE_TYPE.element;
|
|
7914
|
+
const childNodes = getChildNodes ? getChildNodes(node) : node.childNodes;
|
|
7915
|
+
if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push({
|
|
7916
|
+
node: childNodes[i],
|
|
7917
|
+
shadow: null
|
|
7918
|
+
});
|
|
7919
|
+
if (isElement) {
|
|
7920
|
+
const rootName = getNodeName ? getNodeName(node) : null;
|
|
7921
|
+
if (typeof rootName === "string" && transformCaseFunc(rootName) === "template") {
|
|
7922
|
+
const content = node.content;
|
|
7923
|
+
if (_isDocumentFragment(content)) stack.push({
|
|
7924
|
+
node: content,
|
|
7925
|
+
shadow: null
|
|
7926
|
+
});
|
|
7927
|
+
}
|
|
7928
|
+
}
|
|
7929
|
+
if (isElement) {
|
|
7930
|
+
const sr = getShadowRoot ? getShadowRoot(node) : node.shadowRoot;
|
|
7931
|
+
if (_isDocumentFragment(sr)) stack.push({
|
|
7932
|
+
node: null,
|
|
7933
|
+
shadow: sr
|
|
7934
|
+
}, {
|
|
7935
|
+
node: sr,
|
|
7936
|
+
shadow: null
|
|
7937
|
+
});
|
|
7938
|
+
}
|
|
7939
|
+
}
|
|
7731
7940
|
};
|
|
7732
7941
|
DOMPurify.sanitize = function(dirty) {
|
|
7733
7942
|
let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -7744,39 +7953,53 @@ function createDOMPurify() {
|
|
|
7744
7953
|
if (!DOMPurify.isSupported) return dirty;
|
|
7745
7954
|
if (!SET_CONFIG) _parseConfig(cfg);
|
|
7746
7955
|
DOMPurify.removed = [];
|
|
7747
|
-
|
|
7748
|
-
if (
|
|
7749
|
-
const nn = dirty.nodeName;
|
|
7956
|
+
const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
|
|
7957
|
+
if (inPlace) {
|
|
7958
|
+
const nn = getNodeName ? getNodeName(dirty) : dirty.nodeName;
|
|
7750
7959
|
if (typeof nn === "string") {
|
|
7751
7960
|
const tagName = transformCaseFunc(nn);
|
|
7752
7961
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
7753
7962
|
}
|
|
7754
|
-
|
|
7963
|
+
if (_isClobbered(dirty)) throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
|
|
7964
|
+
try {
|
|
7965
|
+
_sanitizeAttachedShadowRoots(dirty);
|
|
7966
|
+
} catch (error) {
|
|
7967
|
+
_neutralizeRoot(dirty);
|
|
7968
|
+
throw error;
|
|
7969
|
+
}
|
|
7755
7970
|
} else if (_isNode(dirty)) {
|
|
7756
7971
|
body = _initDocument("<!---->");
|
|
7757
7972
|
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
7758
7973
|
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") body = importedNode;
|
|
7759
7974
|
else if (importedNode.nodeName === "HTML") body = importedNode;
|
|
7760
7975
|
else body.appendChild(importedNode);
|
|
7761
|
-
|
|
7976
|
+
_sanitizeAttachedShadowRoots(importedNode);
|
|
7762
7977
|
} else {
|
|
7763
|
-
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && dirty.indexOf("<") === -1) return trustedTypesPolicy && RETURN_TRUSTED_TYPE ?
|
|
7978
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && dirty.indexOf("<") === -1) return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
|
|
7764
7979
|
body = _initDocument(dirty);
|
|
7765
7980
|
if (!body) return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : "";
|
|
7766
7981
|
}
|
|
7767
7982
|
if (body && FORCE_BODY) _forceRemove(body.firstChild);
|
|
7768
|
-
const nodeIterator = _createNodeIterator(
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7983
|
+
const nodeIterator = _createNodeIterator(inPlace ? dirty : body);
|
|
7984
|
+
try {
|
|
7985
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
7986
|
+
_sanitizeElements(currentNode);
|
|
7987
|
+
_sanitizeAttributes(currentNode);
|
|
7988
|
+
if (_isDocumentFragment(currentNode.content)) _sanitizeShadowDOM2(currentNode.content);
|
|
7989
|
+
}
|
|
7990
|
+
} catch (error) {
|
|
7991
|
+
if (inPlace) _neutralizeRoot(dirty);
|
|
7992
|
+
throw error;
|
|
7993
|
+
}
|
|
7994
|
+
if (inPlace) {
|
|
7995
|
+
arrayForEach(DOMPurify.removed, (entry) => {
|
|
7996
|
+
if (entry.element) _neutralizeSubtree(entry.element);
|
|
7997
|
+
});
|
|
7998
|
+
if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(dirty);
|
|
7776
7999
|
return dirty;
|
|
7777
8000
|
}
|
|
7778
8001
|
if (RETURN_DOM) {
|
|
7779
|
-
if (SAFE_FOR_TEMPLATES)
|
|
8002
|
+
if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(body);
|
|
7780
8003
|
if (RETURN_DOM_FRAGMENT) {
|
|
7781
8004
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
7782
8005
|
while (body.firstChild) returnNode.appendChild(body.firstChild);
|
|
@@ -7793,7 +8016,7 @@ function createDOMPurify() {
|
|
|
7793
8016
|
], (expr) => {
|
|
7794
8017
|
serializedHTML = stringReplace(serializedHTML, expr, " ");
|
|
7795
8018
|
});
|
|
7796
|
-
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ?
|
|
8019
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
|
|
7797
8020
|
};
|
|
7798
8021
|
DOMPurify.setConfig = function() {
|
|
7799
8022
|
_parseConfig(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {});
|
|
@@ -7802,6 +8025,8 @@ function createDOMPurify() {
|
|
|
7802
8025
|
DOMPurify.clearConfig = function() {
|
|
7803
8026
|
CONFIG = null;
|
|
7804
8027
|
SET_CONFIG = false;
|
|
8028
|
+
trustedTypesPolicy = defaultTrustedTypesPolicy;
|
|
8029
|
+
emptyHTML = "";
|
|
7805
8030
|
};
|
|
7806
8031
|
DOMPurify.isValidAttribute = function(tag, attr, value) {
|
|
7807
8032
|
if (!CONFIG) _parseConfig({});
|
|
@@ -7870,7 +8095,7 @@ var _hoisted_26$1 = { key: 0 };
|
|
|
7870
8095
|
var _hoisted_27$1 = ["innerHTML"];
|
|
7871
8096
|
var _hoisted_28$1 = { key: 1 };
|
|
7872
8097
|
var _hoisted_29$1 = ["innerHTML"];
|
|
7873
|
-
var UXModelInstrumentAgentCommon_vue_vue_type_script_setup_true_lang_default =
|
|
8098
|
+
var UXModelInstrumentAgentCommon_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
7874
8099
|
__name: "UXModelInstrumentAgentCommon",
|
|
7875
8100
|
props: {
|
|
7876
8101
|
modelId: {},
|
|
@@ -8157,7 +8382,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
8157
8382
|
};
|
|
8158
8383
|
//#endregion
|
|
8159
8384
|
//#region src/components/UXModelInstrumentAgentCommon.vue
|
|
8160
|
-
var UXModelInstrumentAgentCommon_default =
|
|
8385
|
+
var UXModelInstrumentAgentCommon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(UXModelInstrumentAgentCommon_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-6a76d4ff"]]);
|
|
8161
8386
|
//#endregion
|
|
8162
8387
|
//#region node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
8163
8388
|
var ANSI_BACKGROUND_OFFSET$1 = 10;
|
|
@@ -8552,7 +8777,7 @@ var _hoisted_42 = { key: 1 };
|
|
|
8552
8777
|
var _hoisted_43 = ["innerHTML"];
|
|
8553
8778
|
//#endregion
|
|
8554
8779
|
//#region src/components/UXModelInstrumentServiceCommon.vue
|
|
8555
|
-
var UXModelInstrumentServiceCommon_default =
|
|
8780
|
+
var UXModelInstrumentServiceCommon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ (0, vue.defineComponent)({
|
|
8556
8781
|
__name: "UXModelInstrumentServiceCommon",
|
|
8557
8782
|
props: {
|
|
8558
8783
|
modelId: {},
|
|
@@ -9038,7 +9263,7 @@ var _hoisted_15 = {
|
|
|
9038
9263
|
};
|
|
9039
9264
|
//#endregion
|
|
9040
9265
|
//#region src/components/UXModelInstrumentServiceSmall.vue
|
|
9041
|
-
var UXModelInstrumentServiceSmall_default =
|
|
9266
|
+
var UXModelInstrumentServiceSmall_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ (0, vue.defineComponent)({
|
|
9042
9267
|
__name: "UXModelInstrumentServiceSmall",
|
|
9043
9268
|
props: {
|
|
9044
9269
|
modelId: {},
|
|
@@ -9966,14 +10191,24 @@ function merge(...objs) {
|
|
|
9966
10191
|
const result = {};
|
|
9967
10192
|
const assignValue = (val, key) => {
|
|
9968
10193
|
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
9969
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
10194
|
+
const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
|
|
9970
10195
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
9971
10196
|
if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge(existing, val);
|
|
9972
10197
|
else if (isPlainObject(val)) result[targetKey] = merge({}, val);
|
|
9973
10198
|
else if (isArray(val)) result[targetKey] = val.slice();
|
|
9974
10199
|
else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
|
|
9975
10200
|
};
|
|
9976
|
-
for (let i = 0, l = objs.length; i < l; i++)
|
|
10201
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
10202
|
+
const source = objs[i];
|
|
10203
|
+
if (!source || isBuffer(source)) continue;
|
|
10204
|
+
forEach(source, assignValue);
|
|
10205
|
+
if (typeof source !== "object" || isArray(source)) continue;
|
|
10206
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
10207
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
10208
|
+
const symbol = symbols[j];
|
|
10209
|
+
if (propertyIsEnumerable.call(source, symbol)) assignValue(source[symbol], symbol);
|
|
10210
|
+
}
|
|
10211
|
+
}
|
|
9977
10212
|
return result;
|
|
9978
10213
|
}
|
|
9979
10214
|
/**
|
|
@@ -10153,6 +10388,7 @@ var toCamelCase = (str) => {
|
|
|
10153
10388
|
});
|
|
10154
10389
|
};
|
|
10155
10390
|
var hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
10391
|
+
var { propertyIsEnumerable } = Object.prototype;
|
|
10156
10392
|
/**
|
|
10157
10393
|
* Determine if a value is a RegExp object
|
|
10158
10394
|
*
|
|
@@ -10492,7 +10728,7 @@ var AxiosHeaders = class {
|
|
|
10492
10728
|
const self = this;
|
|
10493
10729
|
function setHeader(_value, _header, _rewrite) {
|
|
10494
10730
|
const lHeader = normalizeHeader(_header);
|
|
10495
|
-
if (!lHeader)
|
|
10731
|
+
if (!lHeader) return;
|
|
10496
10732
|
const key = utils_default.findKey(self, lHeader);
|
|
10497
10733
|
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
|
|
10498
10734
|
}
|
|
@@ -10502,7 +10738,7 @@ var AxiosHeaders = class {
|
|
|
10502
10738
|
else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
10503
10739
|
let obj = {}, dest, key;
|
|
10504
10740
|
for (const entry of header) {
|
|
10505
|
-
if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
|
|
10741
|
+
if (!utils_default.isArray(entry)) throw new TypeError("Object iterator must return a key-value pair");
|
|
10506
10742
|
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
10507
10743
|
}
|
|
10508
10744
|
setHeaders(obj, valueOrRewrite);
|
|
@@ -10896,7 +11132,7 @@ function toFormData(obj, formData, options) {
|
|
|
10896
11132
|
function build(value, path, depth = 0) {
|
|
10897
11133
|
if (utils_default.isUndefined(value)) return;
|
|
10898
11134
|
if (depth > maxDepth) throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
10899
|
-
if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
|
|
11135
|
+
if (stack.indexOf(value) !== -1) throw new Error("Circular reference detected in " + path.join("."));
|
|
10900
11136
|
stack.push(value);
|
|
10901
11137
|
utils_default.forEach(value, function each(el, key) {
|
|
10902
11138
|
if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key], depth + 1);
|
|
@@ -11055,7 +11291,8 @@ var transitional_default = {
|
|
|
11055
11291
|
silentJSONParsing: true,
|
|
11056
11292
|
forcedJSONParsing: true,
|
|
11057
11293
|
clarifyTimeoutError: false,
|
|
11058
|
-
legacyInterceptorReqResOrdering: true
|
|
11294
|
+
legacyInterceptorReqResOrdering: true,
|
|
11295
|
+
advertiseZstdAcceptEncoding: false
|
|
11059
11296
|
};
|
|
11060
11297
|
//#endregion
|
|
11061
11298
|
//#region node_modules/axios/lib/platform/browser/index.js
|
|
@@ -11117,7 +11354,9 @@ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
|
|
|
11117
11354
|
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
11118
11355
|
* This leads to a problem when axios post `FormData` in webWorker
|
|
11119
11356
|
*/
|
|
11120
|
-
var hasStandardBrowserWebWorkerEnv =
|
|
11357
|
+
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
11358
|
+
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
11359
|
+
})();
|
|
11121
11360
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
11122
11361
|
//#endregion
|
|
11123
11362
|
//#region node_modules/axios/lib/platform/index.js
|
|
@@ -11673,8 +11912,8 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
11673
11912
|
*
|
|
11674
11913
|
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
11675
11914
|
*/
|
|
11676
|
-
var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
11677
|
-
|
|
11915
|
+
var encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
11916
|
+
function resolveConfig(config) {
|
|
11678
11917
|
const newConfig = mergeConfig({}, config);
|
|
11679
11918
|
const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
11680
11919
|
const data = own("data");
|
|
@@ -11687,10 +11926,10 @@ var resolveConfig_default = (config) => {
|
|
|
11687
11926
|
const allowAbsoluteUrls = own("allowAbsoluteUrls");
|
|
11688
11927
|
const url = own("url");
|
|
11689
11928
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
11690
|
-
newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
11691
|
-
if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
|
|
11929
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), own("params"), own("paramsSerializer"));
|
|
11930
|
+
if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8$1(auth.password) : "")));
|
|
11692
11931
|
if (utils_default.isFormData(data)) {
|
|
11693
|
-
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
11932
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) headers.setContentType(void 0);
|
|
11694
11933
|
else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
|
|
11695
11934
|
}
|
|
11696
11935
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -11701,10 +11940,10 @@ var resolveConfig_default = (config) => {
|
|
|
11701
11940
|
}
|
|
11702
11941
|
}
|
|
11703
11942
|
return newConfig;
|
|
11704
|
-
}
|
|
11943
|
+
}
|
|
11705
11944
|
var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
11706
11945
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
11707
|
-
const _config =
|
|
11946
|
+
const _config = resolveConfig(config);
|
|
11708
11947
|
let requestData = _config.data;
|
|
11709
11948
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
11710
11949
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
@@ -11967,11 +12206,28 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
11967
12206
|
}
|
|
11968
12207
|
//#endregion
|
|
11969
12208
|
//#region node_modules/axios/lib/env/data.js
|
|
11970
|
-
var VERSION = "1.
|
|
12209
|
+
var VERSION = "1.17.0";
|
|
11971
12210
|
//#endregion
|
|
11972
12211
|
//#region node_modules/axios/lib/adapters/fetch.js
|
|
11973
12212
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
11974
12213
|
var { isFunction } = utils_default;
|
|
12214
|
+
/**
|
|
12215
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
12216
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
12217
|
+
*
|
|
12218
|
+
* @param {string} str The string to encode
|
|
12219
|
+
*
|
|
12220
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
12221
|
+
*/
|
|
12222
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
12223
|
+
var decodeURIComponentSafe = (value) => {
|
|
12224
|
+
if (!utils_default.isString(value)) return value;
|
|
12225
|
+
try {
|
|
12226
|
+
return decodeURIComponent(value);
|
|
12227
|
+
} catch (error) {
|
|
12228
|
+
return value;
|
|
12229
|
+
}
|
|
12230
|
+
};
|
|
11975
12231
|
var test = (fn, ...args) => {
|
|
11976
12232
|
try {
|
|
11977
12233
|
return !!fn(...args);
|
|
@@ -11979,6 +12235,12 @@ var test = (fn, ...args) => {
|
|
|
11979
12235
|
return false;
|
|
11980
12236
|
}
|
|
11981
12237
|
};
|
|
12238
|
+
var maybeWithAuthCredentials = (url) => {
|
|
12239
|
+
const protocolIndex = url.indexOf("://");
|
|
12240
|
+
let urlToCheck = url;
|
|
12241
|
+
if (protocolIndex !== -1) urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
12242
|
+
return urlToCheck.includes("@") || urlToCheck.includes(":");
|
|
12243
|
+
};
|
|
11982
12244
|
var factory = (env) => {
|
|
11983
12245
|
const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
|
|
11984
12246
|
const { ReadableStream, TextEncoder } = globalObject;
|
|
@@ -12009,19 +12271,21 @@ var factory = (env) => {
|
|
|
12009
12271
|
});
|
|
12010
12272
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
12011
12273
|
const resolvers = { stream: supportsResponseStream && ((res) => res.body) };
|
|
12012
|
-
isFetchSupported &&
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12274
|
+
isFetchSupported && (() => {
|
|
12275
|
+
[
|
|
12276
|
+
"text",
|
|
12277
|
+
"arrayBuffer",
|
|
12278
|
+
"blob",
|
|
12279
|
+
"formData",
|
|
12280
|
+
"stream"
|
|
12281
|
+
].forEach((type) => {
|
|
12282
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
12283
|
+
let method = res && res[type];
|
|
12284
|
+
if (method) return method.call(res);
|
|
12285
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
12286
|
+
});
|
|
12023
12287
|
});
|
|
12024
|
-
});
|
|
12288
|
+
})();
|
|
12025
12289
|
const getBodyLength = async (body) => {
|
|
12026
12290
|
if (body == null) return 0;
|
|
12027
12291
|
if (utils_default.isBlob(body)) return body.size;
|
|
@@ -12038,9 +12302,10 @@ var factory = (env) => {
|
|
|
12038
12302
|
return length == null ? getBodyLength(body) : length;
|
|
12039
12303
|
};
|
|
12040
12304
|
return async (config) => {
|
|
12041
|
-
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } =
|
|
12305
|
+
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig(config);
|
|
12042
12306
|
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
12043
12307
|
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
12308
|
+
const own = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
12044
12309
|
let _fetch = envFetch || fetch;
|
|
12045
12310
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
12046
12311
|
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
@@ -12050,6 +12315,28 @@ var factory = (env) => {
|
|
|
12050
12315
|
});
|
|
12051
12316
|
let requestContentLength;
|
|
12052
12317
|
try {
|
|
12318
|
+
let auth = void 0;
|
|
12319
|
+
const configAuth = own("auth");
|
|
12320
|
+
if (configAuth) auth = {
|
|
12321
|
+
username: configAuth.username || "",
|
|
12322
|
+
password: configAuth.password || ""
|
|
12323
|
+
};
|
|
12324
|
+
if (maybeWithAuthCredentials(url)) {
|
|
12325
|
+
const parsedURL = new URL(url, platform_default.origin);
|
|
12326
|
+
if (!auth && (parsedURL.username || parsedURL.password)) auth = {
|
|
12327
|
+
username: decodeURIComponentSafe(parsedURL.username),
|
|
12328
|
+
password: decodeURIComponentSafe(parsedURL.password)
|
|
12329
|
+
};
|
|
12330
|
+
if (parsedURL.username || parsedURL.password) {
|
|
12331
|
+
parsedURL.username = "";
|
|
12332
|
+
parsedURL.password = "";
|
|
12333
|
+
url = parsedURL.href;
|
|
12334
|
+
}
|
|
12335
|
+
}
|
|
12336
|
+
if (auth) {
|
|
12337
|
+
headers.delete("authorization");
|
|
12338
|
+
headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
|
|
12339
|
+
}
|
|
12053
12340
|
if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
|
|
12054
12341
|
if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
12055
12342
|
}
|
|
@@ -12454,7 +12741,8 @@ var Axios = class {
|
|
|
12454
12741
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
12455
12742
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
12456
12743
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
12457
|
-
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
12744
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
12745
|
+
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean)
|
|
12458
12746
|
}, false);
|
|
12459
12747
|
if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
|
|
12460
12748
|
else validator_default.assertOptions(paramsSerializer, {
|
|
@@ -12998,7 +13286,7 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
|
|
|
12998
13286
|
} else {
|
|
12999
13287
|
const errorMessage = "SocketIoClient:on(\"connect\"): Could not get socket object from socket.io, Address: [${socketDetail.address}]";
|
|
13000
13288
|
this.LogErrorMessage(errorMessage);
|
|
13001
|
-
this.SocketConnectError(new Error(errorMessage));
|
|
13289
|
+
this.SocketConnectError(/* @__PURE__ */ new Error(errorMessage));
|
|
13002
13290
|
}
|
|
13003
13291
|
});
|
|
13004
13292
|
this.#socket.on("disconnect", (reason) => {
|