@qtalo/qt-ui-library 0.4.1 → 0.4.2

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/index.js CHANGED
@@ -391,43 +391,43 @@ function createDOMPurify() {
391
391
  e.DocumentFragment;
392
392
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
393
393
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
394
- let l = e.DOMParser, u = e.trustedTypes, f = s.prototype, p = lookupGetter(f, "cloneNode"), h = lookupGetter(f, "remove"), Ac = lookupGetter(f, "nextSibling"), g = lookupGetter(f, "childNodes"), O = lookupGetter(f, "parentNode"), jc = lookupGetter(f, "shadowRoot"), Mc = lookupGetter(f, "attributes"), A = o && o.prototype ? lookupGetter(o.prototype, "nodeType") : null, Nc = o && o.prototype ? lookupGetter(o.prototype, "nodeName") : null, R = o && o.prototype ? lookupGetter(o.prototype, "ownerDocument") : null;
394
+ let l = e.DOMParser, u = e.trustedTypes, f = s.prototype, p = lookupGetter(f, "cloneNode"), h = lookupGetter(f, "remove"), Fc = lookupGetter(f, "nextSibling"), g = lookupGetter(f, "childNodes"), O = lookupGetter(f, "parentNode"), Ic = lookupGetter(f, "shadowRoot"), Lc = lookupGetter(f, "attributes"), A = o && o.prototype ? lookupGetter(o.prototype, "nodeType") : null, Rc = o && o.prototype ? lookupGetter(o.prototype, "nodeName") : null, R = o && o.prototype ? lookupGetter(o.prototype, "ownerDocument") : null;
395
395
  if (typeof a == "function") {
396
396
  let e = n.createElement("template");
397
397
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
398
398
  }
399
- let B, Pc = "", Fc, Ic = !1, Lc = 0, Rc = function() {
400
- if (Lc > 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.");
401
- }, zc = function(e) {
402
- Rc(), Lc++;
399
+ let B, zc = "", Bc, Vc = !1, Hc = 0, Uc = function() {
400
+ if (Hc > 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.");
401
+ }, Wc = function(e) {
402
+ Uc(), Hc++;
403
403
  try {
404
404
  return B.createHTML(e);
405
405
  } finally {
406
- Lc--;
406
+ Hc--;
407
407
  }
408
- }, Bc = function(e) {
409
- Rc(), Lc++;
408
+ }, Gc = function(e) {
409
+ Uc(), Hc++;
410
410
  try {
411
411
  return B.createScriptURL(e);
412
412
  } finally {
413
- Lc--;
413
+ Hc--;
414
414
  }
415
- }, Vc = function() {
416
- return Ic ||= (Fc = _createTrustedTypesPolicy(u, i), !0), Fc;
417
- }, Hc = n, Uc = Hc.implementation, Wc = Hc.createNodeIterator, Gc = Hc.createDocumentFragment, Kc = Hc.getElementsByTagName, qc = r.importNode, V = _createHooksMap();
418
- t.isSupported = typeof entries == "function" && typeof O == "function" && Uc && Uc.createHTMLDocument !== void 0;
419
- let Jc = MUSTACHE_EXPR, Yc = ERB_EXPR, Xc = TMPLIT_EXPR, Zc = DATA_ATTR, Qc = ARIA_ATTR, $c = IS_SCRIPT_OR_DATA, el = ATTR_WHITESPACE, tl = CUSTOM_ELEMENT, nl = IS_ALLOWED_URI, H = null, rl = addToSet({}, [
415
+ }, Kc = function() {
416
+ return Vc ||= (Bc = _createTrustedTypesPolicy(u, i), !0), Bc;
417
+ }, qc = n, Jc = qc.implementation, Yc = qc.createNodeIterator, Xc = qc.createDocumentFragment, Zc = qc.getElementsByTagName, Qc = r.importNode, V = _createHooksMap();
418
+ t.isSupported = typeof entries == "function" && typeof O == "function" && Jc && Jc.createHTMLDocument !== void 0;
419
+ let $c = MUSTACHE_EXPR, el = ERB_EXPR, tl = TMPLIT_EXPR, nl = DATA_ATTR, rl = ARIA_ATTR, il = IS_SCRIPT_OR_DATA, al = ATTR_WHITESPACE, ol = CUSTOM_ELEMENT, sl = IS_ALLOWED_URI, H = null, cl = addToSet({}, [
420
420
  ...html$1,
421
421
  ...svg$1,
422
422
  ...svgFilters,
423
423
  ...mathMl$1,
424
424
  ...text
425
- ]), Y = null, il = addToSet({}, [
425
+ ]), Y = null, ll = addToSet({}, [
426
426
  ...html,
427
427
  ...svg,
428
428
  ...mathMl,
429
429
  ...xml
430
- ]), al = Object.seal(create(null, {
430
+ ]), ul = Object.seal(create(null, {
431
431
  tagNameCheck: {
432
432
  writable: !0,
433
433
  configurable: !1,
@@ -446,7 +446,7 @@ function createDOMPurify() {
446
446
  enumerable: !0,
447
447
  value: !1
448
448
  }
449
- })), ol = null, sl = null, cl = Object.seal(create(null, {
449
+ })), dl = null, fl = null, pl = Object.seal(create(null, {
450
450
  tagCheck: {
451
451
  writable: !0,
452
452
  configurable: !1,
@@ -459,14 +459,14 @@ function createDOMPurify() {
459
459
  enumerable: !0,
460
460
  value: null
461
461
  }
462
- })), ll = !0, ul = !0, dl = !1, fl = !0, pl = !1, ml = !0, hl = !1, gl = !1, _l = null, vl = null, yl = !1, bl = !1, xl = !1, Sl = !1, Cl = !0, wl = !1, Tl = "user-content-", El = !0, Dl = !1, Ol = {}, kl = null, Al = addToSet({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), jl = null, Ml = addToSet({}, [
462
+ })), ml = !0, hl = !0, gl = !1, _l = !0, vl = !1, yl = !0, bl = !1, xl = !1, Sl = null, Cl = null, wl = !1, Tl = !1, El = !1, Dl = !1, Ol = !0, kl = !1, Al = "user-content-", jl = !0, Ml = !1, Nl = {}, Pl = null, Fl = addToSet({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Il = null, Ll = addToSet({}, [
463
463
  "audio",
464
464
  "video",
465
465
  "img",
466
466
  "source",
467
467
  "image",
468
468
  "track"
469
- ]), Nl = null, Pl = addToSet({}, [
469
+ ]), Rl = null, zl = addToSet({}, [
470
470
  "alt",
471
471
  "class",
472
472
  "for",
@@ -481,78 +481,78 @@ function createDOMPurify() {
481
481
  "value",
482
482
  "style",
483
483
  "xmlns"
484
- ]), Fl = "http://www.w3.org/1998/Math/MathML", Il = "http://www.w3.org/2000/svg", Ll = "http://www.w3.org/1999/xhtml", Rl = Ll, zl = !1, Bl = null, Vl = addToSet({}, [
485
- Fl,
486
- Il,
487
- Ll
488
- ], stringToString), Hl = freeze([
484
+ ]), Bl = "http://www.w3.org/1998/Math/MathML", Vl = "http://www.w3.org/2000/svg", Hl = "http://www.w3.org/1999/xhtml", Ul = Hl, Wl = !1, Gl = null, Kl = addToSet({}, [
485
+ Bl,
486
+ Vl,
487
+ Hl
488
+ ], stringToString), ql = freeze([
489
489
  "mi",
490
490
  "mo",
491
491
  "mn",
492
492
  "ms",
493
493
  "mtext"
494
- ]), Ul = addToSet({}, Hl), Wl = freeze(["annotation-xml"]), Gl = addToSet({}, Wl), Kl = addToSet({}, [
494
+ ]), Jl = addToSet({}, ql), Yl = freeze(["annotation-xml"]), Xl = addToSet({}, Yl), Zl = addToSet({}, [
495
495
  "title",
496
496
  "style",
497
497
  "font",
498
498
  "a",
499
499
  "script"
500
- ]), ql = null, Jl = ["application/xhtml+xml", "text/html"], Yl = null, Xl = null, Zl = n.createElement("form"), Ql = function(e) {
500
+ ]), Ql = null, $l = ["application/xhtml+xml", "text/html"], eu = null, tu = null, nu = n.createElement("form"), ru = function(e) {
501
501
  return e instanceof RegExp || e instanceof Function;
502
- }, $l = function() {
502
+ }, iu = function() {
503
503
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
504
- if (Xl && Xl === e) return;
505
- (!e || typeof e != "object") && (e = {}), e = clone(e), ql = Jl.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Yl = ql === "application/xhtml+xml" ? stringToString : stringToLowerCase, H = _resolveSetOption(e, "ALLOWED_TAGS", rl, { transform: Yl }), Y = _resolveSetOption(e, "ALLOWED_ATTR", il, { transform: Yl }), Bl = _resolveSetOption(e, "ALLOWED_NAMESPACES", Vl, { transform: stringToString }), Nl = _resolveSetOption(e, "ADD_URI_SAFE_ATTR", Pl, {
506
- transform: Yl,
507
- base: Pl
508
- }), jl = _resolveSetOption(e, "ADD_DATA_URI_TAGS", Ml, {
509
- transform: Yl,
510
- base: Ml
511
- }), kl = _resolveSetOption(e, "FORBID_CONTENTS", Al, { transform: Yl }), ol = _resolveSetOption(e, "FORBID_TAGS", clone({}), { transform: Yl }), sl = _resolveSetOption(e, "FORBID_ATTR", clone({}), { transform: Yl }), Ol = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, ll = e.ALLOW_ARIA_ATTR !== !1, ul = e.ALLOW_DATA_ATTR !== !1, dl = e.ALLOW_UNKNOWN_PROTOCOLS || !1, fl = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pl = e.SAFE_FOR_TEMPLATES || !1, ml = e.SAFE_FOR_XML !== !1, hl = e.WHOLE_DOCUMENT || !1, bl = e.RETURN_DOM || !1, xl = e.RETURN_DOM_FRAGMENT || !1, Sl = e.RETURN_TRUSTED_TYPE || !1, yl = e.FORCE_BODY || !1, Cl = e.SANITIZE_DOM !== !1, wl = e.SANITIZE_NAMED_PROPS || !1, El = e.KEEP_CONTENT !== !1, Dl = e.IN_PLACE || !1, nl = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : IS_ALLOWED_URI, Rl = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Ll, Ul = objectHasOwnProperty(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, Hl), Gl = objectHasOwnProperty(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Wl);
504
+ if (tu && tu === e) return;
505
+ (!e || typeof e != "object") && (e = {}), e = clone(e), Ql = $l.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, eu = Ql === "application/xhtml+xml" ? stringToString : stringToLowerCase, H = _resolveSetOption(e, "ALLOWED_TAGS", cl, { transform: eu }), Y = _resolveSetOption(e, "ALLOWED_ATTR", ll, { transform: eu }), Gl = _resolveSetOption(e, "ALLOWED_NAMESPACES", Kl, { transform: stringToString }), Rl = _resolveSetOption(e, "ADD_URI_SAFE_ATTR", zl, {
506
+ transform: eu,
507
+ base: zl
508
+ }), Il = _resolveSetOption(e, "ADD_DATA_URI_TAGS", Ll, {
509
+ transform: eu,
510
+ base: Ll
511
+ }), Pl = _resolveSetOption(e, "FORBID_CONTENTS", Fl, { transform: eu }), dl = _resolveSetOption(e, "FORBID_TAGS", clone({}), { transform: eu }), fl = _resolveSetOption(e, "FORBID_ATTR", clone({}), { transform: eu }), Nl = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, ml = e.ALLOW_ARIA_ATTR !== !1, hl = e.ALLOW_DATA_ATTR !== !1, gl = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _l = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, vl = e.SAFE_FOR_TEMPLATES || !1, yl = e.SAFE_FOR_XML !== !1, bl = e.WHOLE_DOCUMENT || !1, Tl = e.RETURN_DOM || !1, El = e.RETURN_DOM_FRAGMENT || !1, Dl = e.RETURN_TRUSTED_TYPE || !1, wl = e.FORCE_BODY || !1, Ol = e.SANITIZE_DOM !== !1, kl = e.SANITIZE_NAMED_PROPS || !1, jl = e.KEEP_CONTENT !== !1, Ml = e.IN_PLACE || !1, sl = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : IS_ALLOWED_URI, Ul = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Hl, Jl = objectHasOwnProperty(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, ql), Xl = objectHasOwnProperty(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Yl);
512
512
  let t = objectHasOwnProperty(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : create(null);
513
- if (al = create(null), objectHasOwnProperty(t, "tagNameCheck") && Ql(t.tagNameCheck) && (al.tagNameCheck = t.tagNameCheck), objectHasOwnProperty(t, "attributeNameCheck") && Ql(t.attributeNameCheck) && (al.attributeNameCheck = t.attributeNameCheck), objectHasOwnProperty(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (al.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), seal(al), pl && (ul = !1), xl && (bl = !0), Ol && (H = addToSet({}, text), Y = create(null), Ol.html === !0 && (addToSet(H, html$1), addToSet(Y, html)), Ol.svg === !0 && (addToSet(H, svg$1), addToSet(Y, svg), addToSet(Y, xml)), Ol.svgFilters === !0 && (addToSet(H, svgFilters), addToSet(Y, svg), addToSet(Y, xml)), Ol.mathMl === !0 && (addToSet(H, mathMl$1), addToSet(Y, mathMl), addToSet(Y, xml))), cl.tagCheck = null, cl.attributeCheck = null, objectHasOwnProperty(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? cl.tagCheck = e.ADD_TAGS : arrayIsArray(e.ADD_TAGS) && (H === rl && (H = clone(H)), addToSet(H, e.ADD_TAGS, Yl))), objectHasOwnProperty(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? cl.attributeCheck = e.ADD_ATTR : arrayIsArray(e.ADD_ATTR) && (Y === il && (Y = clone(Y)), addToSet(Y, e.ADD_ATTR, Yl))), objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") && arrayIsArray(e.ADD_URI_SAFE_ATTR) && addToSet(Nl, e.ADD_URI_SAFE_ATTR, Yl), objectHasOwnProperty(e, "FORBID_CONTENTS") && arrayIsArray(e.FORBID_CONTENTS) && (kl === Al && (kl = clone(kl)), addToSet(kl, e.FORBID_CONTENTS, Yl)), objectHasOwnProperty(e, "ADD_FORBID_CONTENTS") && arrayIsArray(e.ADD_FORBID_CONTENTS) && (kl === Al && (kl = clone(kl)), addToSet(kl, e.ADD_FORBID_CONTENTS, Yl)), El && (H["#text"] = !0), hl && addToSet(H, [
513
+ if (ul = create(null), objectHasOwnProperty(t, "tagNameCheck") && ru(t.tagNameCheck) && (ul.tagNameCheck = t.tagNameCheck), objectHasOwnProperty(t, "attributeNameCheck") && ru(t.attributeNameCheck) && (ul.attributeNameCheck = t.attributeNameCheck), objectHasOwnProperty(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (ul.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), seal(ul), vl && (hl = !1), El && (Tl = !0), Nl && (H = addToSet({}, text), Y = create(null), Nl.html === !0 && (addToSet(H, html$1), addToSet(Y, html)), Nl.svg === !0 && (addToSet(H, svg$1), addToSet(Y, svg), addToSet(Y, xml)), Nl.svgFilters === !0 && (addToSet(H, svgFilters), addToSet(Y, svg), addToSet(Y, xml)), Nl.mathMl === !0 && (addToSet(H, mathMl$1), addToSet(Y, mathMl), addToSet(Y, xml))), pl.tagCheck = null, pl.attributeCheck = null, objectHasOwnProperty(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? pl.tagCheck = e.ADD_TAGS : arrayIsArray(e.ADD_TAGS) && (H === cl && (H = clone(H)), addToSet(H, e.ADD_TAGS, eu))), objectHasOwnProperty(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? pl.attributeCheck = e.ADD_ATTR : arrayIsArray(e.ADD_ATTR) && (Y === ll && (Y = clone(Y)), addToSet(Y, e.ADD_ATTR, eu))), objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") && arrayIsArray(e.ADD_URI_SAFE_ATTR) && addToSet(Rl, e.ADD_URI_SAFE_ATTR, eu), objectHasOwnProperty(e, "FORBID_CONTENTS") && arrayIsArray(e.FORBID_CONTENTS) && (Pl === Fl && (Pl = clone(Pl)), addToSet(Pl, e.FORBID_CONTENTS, eu)), objectHasOwnProperty(e, "ADD_FORBID_CONTENTS") && arrayIsArray(e.ADD_FORBID_CONTENTS) && (Pl === Fl && (Pl = clone(Pl)), addToSet(Pl, e.ADD_FORBID_CONTENTS, eu)), jl && (H["#text"] = !0), bl && addToSet(H, [
514
514
  "html",
515
515
  "head",
516
516
  "body"
517
- ]), H.table && (addToSet(H, ["tbody"]), delete ol.tbody), e.TRUSTED_TYPES_POLICY) {
517
+ ]), H.table && (addToSet(H, ["tbody"]), delete dl.tbody), e.TRUSTED_TYPES_POLICY) {
518
518
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
519
519
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
520
520
  let t = B;
521
521
  B = e.TRUSTED_TYPES_POLICY;
522
522
  try {
523
- Pc = zc("");
523
+ zc = Wc("");
524
524
  } catch (e) {
525
525
  throw B = t, e;
526
526
  }
527
- } else e.TRUSTED_TYPES_POLICY === null ? (B = void 0, Pc = "") : (B === void 0 && (B = Vc()), B && typeof Pc == "string" && (Pc = zc("")));
528
- freeze && freeze(e), Xl = e;
529
- }, eu = addToSet({}, [
527
+ } else e.TRUSTED_TYPES_POLICY === null ? (B = void 0, zc = "") : (B === void 0 && (B = Kc()), B && typeof zc == "string" && (zc = Wc("")));
528
+ freeze && freeze(e), tu = e;
529
+ }, au = addToSet({}, [
530
530
  ...svg$1,
531
531
  ...svgFilters,
532
532
  ...svgDisallowed
533
- ]), tu = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), nu = function(e, t, n) {
534
- return t.namespaceURI === Ll ? e === "svg" : t.namespaceURI === Fl ? e === "svg" && (n === "annotation-xml" || Ul[n]) : !!eu[e];
535
- }, ru = function(e, t, n) {
536
- return t.namespaceURI === Ll ? e === "math" : t.namespaceURI === Il ? e === "math" && Gl[n] : !!tu[e];
537
- }, iu = function(e, t, n) {
538
- return t.namespaceURI === Il && !Gl[n] || t.namespaceURI === Fl && !Ul[n] ? !1 : !tu[e] && (Kl[e] || !eu[e]);
539
- }, au = function(e) {
533
+ ]), ou = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), su = function(e, t, n) {
534
+ return t.namespaceURI === Hl ? e === "svg" : t.namespaceURI === Bl ? e === "svg" && (n === "annotation-xml" || Jl[n]) : !!au[e];
535
+ }, cu = function(e, t, n) {
536
+ return t.namespaceURI === Hl ? e === "math" : t.namespaceURI === Vl ? e === "math" && Xl[n] : !!ou[e];
537
+ }, lu = function(e, t, n) {
538
+ return t.namespaceURI === Vl && !Xl[n] || t.namespaceURI === Bl && !Jl[n] ? !1 : !ou[e] && (Zl[e] || !au[e]);
539
+ }, uu = function(e) {
540
540
  let t = O(e);
541
541
  (!t || !t.tagName) && (t = {
542
- namespaceURI: Rl,
542
+ namespaceURI: Ul,
543
543
  tagName: "template"
544
544
  });
545
545
  let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
546
- return Bl[e.namespaceURI] ? e.namespaceURI === Il ? nu(n, t, r) : e.namespaceURI === Fl ? ru(n, t, r) : e.namespaceURI === Ll ? iu(n, t, r) : !!(ql === "application/xhtml+xml" && Bl[e.namespaceURI]) : !1;
547
- }, ou = function(e) {
546
+ return Gl[e.namespaceURI] ? e.namespaceURI === Vl ? su(n, t, r) : e.namespaceURI === Bl ? cu(n, t, r) : e.namespaceURI === Hl ? lu(n, t, r) : !!(Ql === "application/xhtml+xml" && Gl[e.namespaceURI]) : !1;
547
+ }, du = function(e) {
548
548
  arrayPush(t.removed, { element: e });
549
549
  try {
550
550
  O(e).removeChild(e);
551
551
  } catch {
552
552
  if (h(e), !O(e)) throw typeErrorCreate("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
553
553
  }
554
- }, su = function(e) {
555
- uu(e);
554
+ }, fu = function(e) {
555
+ hu(e);
556
556
  let t = g(e);
557
557
  if (t) {
558
558
  let e = [];
@@ -564,14 +564,14 @@ function createDOMPurify() {
564
564
  } catch {}
565
565
  });
566
566
  }
567
- let n = Mc(e);
567
+ let n = Lc(e);
568
568
  if (n) for (let t = n.length - 1; t >= 0; --t) {
569
569
  let r = n[t], i = r && r.name;
570
570
  if (typeof i == "string") try {
571
571
  e.removeAttribute(i);
572
572
  } catch {}
573
573
  }
574
- }, cu = function(e, n) {
574
+ }, pu = function(e, n) {
575
575
  try {
576
576
  arrayPush(t.removed, {
577
577
  attribute: n.getAttributeNode(e),
@@ -583,30 +583,30 @@ function createDOMPurify() {
583
583
  from: n
584
584
  });
585
585
  }
586
- if (n.removeAttribute(e), e === "is") if (bl || xl) try {
587
- ou(n);
586
+ if (n.removeAttribute(e), e === "is") if (Tl || El) try {
587
+ du(n);
588
588
  } catch {}
589
589
  else try {
590
590
  n.setAttribute(e, "");
591
591
  } catch {}
592
- }, lu = function(e) {
593
- let t = Mc(e);
592
+ }, mu = function(e) {
593
+ let t = Lc(e);
594
594
  if (t) for (let n = t.length - 1; n >= 0; --n) {
595
595
  let r = t[n], i = r && r.name;
596
- if (!(typeof i != "string" || Y[Yl(i)])) try {
596
+ if (!(typeof i != "string" || Y[eu(i)])) try {
597
597
  e.removeAttribute(i);
598
598
  } catch {}
599
599
  }
600
- }, uu = function(e) {
600
+ }, hu = function(e) {
601
601
  let t = [e];
602
602
  for (; t.length > 0;) {
603
603
  let e = t.pop();
604
- (A ? A(e) : e.nodeType) === NODE_TYPE.element && lu(e);
604
+ (A ? A(e) : e.nodeType) === NODE_TYPE.element && mu(e);
605
605
  let n = g(e);
606
606
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
607
607
  }
608
- }, du = function(e) {
609
- if (!ml) return;
608
+ }, gu = function(e) {
609
+ if (!yl) return;
610
610
  let t = [e];
611
611
  for (; t.length > 0;) {
612
612
  let e = t.pop(), n = A ? A(e) : e.nodeType;
@@ -617,7 +617,7 @@ function createDOMPurify() {
617
617
  continue;
618
618
  }
619
619
  if (n === NODE_TYPE.element) {
620
- let t = e, n = Yl(Nc ? Nc(e) : e.nodeName);
620
+ let t = e, n = eu(Rc ? Rc(e) : e.nodeName);
621
621
  try {
622
622
  t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
623
623
  } catch {}
@@ -625,50 +625,50 @@ function createDOMPurify() {
625
625
  let r = g(e);
626
626
  if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
627
627
  }
628
- }, fu = function(e) {
628
+ }, _u = function(e) {
629
629
  let t = null, r = null;
630
- if (yl) e = "<remove></remove>" + e;
630
+ if (wl) e = "<remove></remove>" + e;
631
631
  else {
632
632
  let t = stringMatch(e, /^[\r\n\t ]+/);
633
633
  r = t && t[0];
634
634
  }
635
- ql === "application/xhtml+xml" && Rl === Ll && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
636
- let i = B ? zc(e) : e;
637
- if (Rl === Ll) try {
638
- t = new l().parseFromString(i, ql);
635
+ Ql === "application/xhtml+xml" && Ul === Hl && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
636
+ let i = B ? Wc(e) : e;
637
+ if (Ul === Hl) try {
638
+ t = new l().parseFromString(i, Ql);
639
639
  } catch {}
640
640
  if (!t || !t.documentElement) {
641
- t = Uc.createDocument(Rl, "template", null);
641
+ t = Jc.createDocument(Ul, "template", null);
642
642
  try {
643
- t.documentElement.innerHTML = zl ? Pc : i;
643
+ t.documentElement.innerHTML = Wl ? zc : i;
644
644
  } catch {}
645
645
  }
646
646
  let a = t.body || t.documentElement;
647
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Rl === Ll ? Kc.call(t, hl ? "html" : "body")[0] : hl ? t.documentElement : a;
648
- }, pu = function(e) {
647
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ul === Hl ? Zc.call(t, bl ? "html" : "body")[0] : bl ? t.documentElement : a;
648
+ }, vu = function(e) {
649
649
  let t = R ? R(e) : e.ownerDocument;
650
- return Wc.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
651
- }, mu = function(e) {
652
- return e = stringReplace(e, Jc, " "), e = stringReplace(e, Yc, " "), e = stringReplace(e, Xc, " "), e;
653
- }, hu = function(e) {
650
+ return Yc.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
651
+ }, yu = function(e) {
652
+ return e = stringReplace(e, $c, " "), e = stringReplace(e, el, " "), e = stringReplace(e, tl, " "), e;
653
+ }, bu = function(e) {
654
654
  e.normalize();
655
- let t = R ? R(e) : e.ownerDocument, n = Wc.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
656
- for (; r;) r.data = mu(r.data), r = n.nextNode();
655
+ let t = R ? R(e) : e.ownerDocument, n = Yc.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
656
+ for (; r;) r.data = yu(r.data), r = n.nextNode();
657
657
  let i = e.querySelectorAll?.call(e, "template");
658
658
  i && arrayForEach(i, (e) => {
659
- _u(e.content) && hu(e.content);
659
+ Su(e.content) && bu(e.content);
660
660
  });
661
- }, gu = function(e) {
662
- let t = Nc ? Nc(e) : null;
663
- return typeof t != "string" || Yl(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== Mc(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== A(e) || e.childNodes !== g(e);
664
- }, _u = function(e) {
661
+ }, xu = function(e) {
662
+ let t = Rc ? Rc(e) : null;
663
+ return typeof t != "string" || eu(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== Lc(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== A(e) || e.childNodes !== g(e);
664
+ }, Su = function(e) {
665
665
  if (!A || typeof e != "object" || !e) return !1;
666
666
  try {
667
667
  return A(e) === NODE_TYPE.documentFragment;
668
668
  } catch {
669
669
  return !1;
670
670
  }
671
- }, vu = function(e) {
671
+ }, Cu = function(e) {
672
672
  if (!A || typeof e != "object" || !e) return !1;
673
673
  try {
674
674
  return typeof A(e) == "number";
@@ -676,57 +676,57 @@ function createDOMPurify() {
676
676
  return !1;
677
677
  }
678
678
  };
679
- function yu(e, n, r) {
679
+ function wu(e, n, r) {
680
680
  e.length !== 0 && arrayForEach(e, (e) => {
681
- e.call(t, n, r, Xl);
681
+ e.call(t, n, r, tu);
682
682
  });
683
683
  }
684
- let bu = function(e, t) {
685
- return !!(ml && e.hasChildNodes() && !vu(e.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, e.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, e.innerHTML) || ml && e.namespaceURI === Ll && t === "style" && vu(e.firstElementChild) || e.nodeType === NODE_TYPE.processingInstruction || ml && e.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, e.data));
686
- }, xu = function(e, t, n) {
687
- if (!ol[t] && Eu(t) && (al.tagNameCheck instanceof RegExp && regExpTest(al.tagNameCheck, t) || al.tagNameCheck instanceof Function && al.tagNameCheck(t))) return !1;
688
- if (El && !kl[t]) {
684
+ let Tu = function(e, t) {
685
+ return !!(yl && e.hasChildNodes() && !Cu(e.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, e.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, e.innerHTML) || yl && e.namespaceURI === Hl && t === "style" && Cu(e.firstElementChild) || e.nodeType === NODE_TYPE.processingInstruction || yl && e.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, e.data));
686
+ }, Eu = function(e, t, n) {
687
+ if (!dl[t] && ju(t) && (ul.tagNameCheck instanceof RegExp && regExpTest(ul.tagNameCheck, t) || ul.tagNameCheck instanceof Function && ul.tagNameCheck(t))) return !1;
688
+ if (jl && !Pl[t]) {
689
689
  let t = O(e), r = g(e);
690
690
  if (r && t) {
691
691
  let i = r.length;
692
692
  for (let a = i - 1; a >= 0; --a) {
693
693
  let i = e === n ? p(r[a], !0) : r[a];
694
- t.insertBefore(i, Ac(e));
694
+ t.insertBefore(i, Fc(e));
695
695
  }
696
696
  }
697
697
  }
698
- return ou(e), !0;
699
- }, Su = function(e, t, n, r) {
698
+ return du(e), !0;
699
+ }, Du = function(e, t, n, r) {
700
700
  return e.length === 0 ? t : t === n || t === r ? clone(t) : t;
701
- }, Cu = function(e, n) {
702
- if (yu(V.beforeSanitizeElements, e, null), e !== n && O(e) === null) return Dl && uu(e), !0;
703
- if (gu(e)) return ou(e), !0;
704
- let r = Yl(Nc ? Nc(e) : e.nodeName);
705
- if (H = Su(V.uponSanitizeElement, H, rl, _l), yu(V.uponSanitizeElement, e, {
701
+ }, Ou = function(e, n) {
702
+ if (wu(V.beforeSanitizeElements, e, null), e !== n && O(e) === null) return Ml && hu(e), !0;
703
+ if (xu(e)) return du(e), !0;
704
+ let r = eu(Rc ? Rc(e) : e.nodeName);
705
+ if (H = Du(V.uponSanitizeElement, H, cl, Sl), wu(V.uponSanitizeElement, e, {
706
706
  tagName: r,
707
707
  allowedTags: H
708
- }), e !== n && O(e) === null) return Dl && uu(e), !0;
709
- if (bu(e, r)) return ou(e), !0;
710
- if (ol[r] || !(cl.tagCheck instanceof Function && cl.tagCheck(r)) && !H[r]) {
711
- let t = xu(e, r, n);
712
- return t === !1 && yu(V.afterSanitizeElements, e, null), t;
708
+ }), e !== n && O(e) === null) return Ml && hu(e), !0;
709
+ if (Tu(e, r)) return du(e), !0;
710
+ if (dl[r] || !(pl.tagCheck instanceof Function && pl.tagCheck(r)) && !H[r]) {
711
+ let t = Eu(e, r, n);
712
+ return t === !1 && wu(V.afterSanitizeElements, e, null), t;
713
713
  }
714
- if ((A ? A(e) : e.nodeType) === NODE_TYPE.element && !au(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, e.innerHTML)) return ou(e), !0;
715
- if (pl && e.nodeType === NODE_TYPE.text) {
716
- let n = mu(e.textContent);
714
+ if ((A ? A(e) : e.nodeType) === NODE_TYPE.element && !uu(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, e.innerHTML)) return du(e), !0;
715
+ if (vl && e.nodeType === NODE_TYPE.text) {
716
+ let n = yu(e.textContent);
717
717
  e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n);
718
718
  }
719
- return yu(V.afterSanitizeElements, e, null), !1;
720
- }, wu = function(e, t, r) {
721
- if (sl[t] || ml && t === "patchsrc" || ml && t === "for" && e !== "label" && e !== "output" || Cl && (t === "id" || t === "name") && (r in n || r in Zl)) return !1;
722
- let i = Y[t] || cl.attributeCheck instanceof Function && cl.attributeCheck(t, e);
723
- if (!(ul && regExpTest(Zc, t)) && !(ll && regExpTest(Qc, t))) {
719
+ return wu(V.afterSanitizeElements, e, null), !1;
720
+ }, ku = function(e, t, r) {
721
+ if (fl[t] || yl && t === "patchsrc" || yl && t === "for" && e !== "label" && e !== "output" || Ol && (t === "id" || t === "name") && (r in n || r in nu)) return !1;
722
+ let i = Y[t] || pl.attributeCheck instanceof Function && pl.attributeCheck(t, e);
723
+ if (!(hl && regExpTest(nl, t)) && !(ml && regExpTest(rl, t))) {
724
724
  if (i) {
725
- if (!Nl[t] && !regExpTest(nl, stringReplace(r, el, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && jl[e]) && !(dl && !regExpTest($c, stringReplace(r, el, ""))) && r) return !1;
726
- } else if (!(Eu(e) && (al.tagNameCheck instanceof RegExp && regExpTest(al.tagNameCheck, e) || al.tagNameCheck instanceof Function && al.tagNameCheck(e)) && (al.attributeNameCheck instanceof RegExp && regExpTest(al.attributeNameCheck, t) || al.attributeNameCheck instanceof Function && al.attributeNameCheck(t, e)) || t === "is" && al.allowCustomizedBuiltInElements && (al.tagNameCheck instanceof RegExp && regExpTest(al.tagNameCheck, r) || al.tagNameCheck instanceof Function && al.tagNameCheck(r)))) return !1;
725
+ if (!Rl[t] && !regExpTest(sl, stringReplace(r, al, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && Il[e]) && !(gl && !regExpTest(il, stringReplace(r, al, ""))) && r) return !1;
726
+ } else if (!(ju(e) && (ul.tagNameCheck instanceof RegExp && regExpTest(ul.tagNameCheck, e) || ul.tagNameCheck instanceof Function && ul.tagNameCheck(e)) && (ul.attributeNameCheck instanceof RegExp && regExpTest(ul.attributeNameCheck, t) || ul.attributeNameCheck instanceof Function && ul.attributeNameCheck(t, e)) || t === "is" && ul.allowCustomizedBuiltInElements && (ul.tagNameCheck instanceof RegExp && regExpTest(ul.tagNameCheck, r) || ul.tagNameCheck instanceof Function && ul.tagNameCheck(r)))) return !1;
727
727
  }
728
728
  return !0;
729
- }, Tu = addToSet({}, [
729
+ }, Au = addToSet({}, [
730
730
  "annotation-xml",
731
731
  "color-profile",
732
732
  "font-face",
@@ -735,67 +735,67 @@ function createDOMPurify() {
735
735
  "font-face-src",
736
736
  "font-face-uri",
737
737
  "missing-glyph"
738
- ]), Eu = function(e) {
739
- return !Tu[stringToLowerCase(e)] && regExpTest(tl, e);
740
- }, Du = function(e, t, n, r) {
738
+ ]), ju = function(e) {
739
+ return !Au[stringToLowerCase(e)] && regExpTest(ol, e);
740
+ }, Mu = function(e, t, n, r) {
741
741
  if (B && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
742
- case "TrustedHTML": return zc(r);
743
- case "TrustedScriptURL": return Bc(r);
742
+ case "TrustedHTML": return Wc(r);
743
+ case "TrustedScriptURL": return Gc(r);
744
744
  }
745
745
  return r;
746
- }, Ou = function(e, n, r, i) {
746
+ }, Nu = function(e, n, r, i) {
747
747
  try {
748
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), gu(e) ? ou(e) : arrayPop(t.removed);
748
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), xu(e) ? du(e) : arrayPop(t.removed);
749
749
  } catch {
750
- cu(n, e);
750
+ pu(n, e);
751
751
  }
752
- }, ku = function(e) {
753
- yu(V.beforeSanitizeAttributes, e, null);
752
+ }, Pu = function(e) {
753
+ wu(V.beforeSanitizeAttributes, e, null);
754
754
  let t = e.attributes;
755
- if (!t || gu(e)) return;
756
- Y = Su(V.uponSanitizeAttribute, Y, il, vl);
755
+ if (!t || xu(e)) return;
756
+ Y = Du(V.uponSanitizeAttribute, Y, ll, Cl);
757
757
  let n = {
758
758
  attrName: "",
759
759
  attrValue: "",
760
760
  keepAttr: !0,
761
761
  allowedAttributes: Y,
762
762
  forceKeepAttr: void 0
763
- }, r = t.length, i = Yl(e.nodeName);
763
+ }, r = t.length, i = eu(e.nodeName);
764
764
  for (; r--;) {
765
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Yl(o), u = c, f = o === "value" ? u : stringTrim(u);
766
- if (n.attrName = l, n.attrValue = f, n.keepAttr = !0, n.forceKeepAttr = void 0, yu(V.uponSanitizeAttribute, e, n), f = n.attrValue, wl && (l === "id" || l === "name") && stringIndexOf(f, Tl) !== 0 && (cu(o, e), f = Tl + f), ml && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
767
- cu(o, e);
765
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = eu(o), u = c, f = o === "value" ? u : stringTrim(u);
766
+ if (n.attrName = l, n.attrValue = f, n.keepAttr = !0, n.forceKeepAttr = void 0, wu(V.uponSanitizeAttribute, e, n), f = n.attrValue, kl && (l === "id" || l === "name") && stringIndexOf(f, Al) !== 0 && (pu(o, e), f = Al + f), yl && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
767
+ pu(o, e);
768
768
  continue;
769
769
  }
770
770
  if (l === "attributename" && stringMatch(f, "href")) {
771
- cu(o, e);
771
+ pu(o, e);
772
772
  continue;
773
773
  }
774
774
  if (!n.forceKeepAttr) {
775
775
  if (!n.keepAttr) {
776
- cu(o, e);
776
+ pu(o, e);
777
777
  continue;
778
778
  }
779
- if (!fl && regExpTest(SELF_CLOSING_TAG, f)) {
780
- cu(o, e);
779
+ if (!_l && regExpTest(SELF_CLOSING_TAG, f)) {
780
+ pu(o, e);
781
781
  continue;
782
782
  }
783
- if (pl && (f = mu(f)), !wu(i, l, f)) {
784
- cu(o, e);
783
+ if (vl && (f = yu(f)), !ku(i, l, f)) {
784
+ pu(o, e);
785
785
  continue;
786
786
  }
787
- f = Du(i, l, s, f), f !== u && Ou(e, o, s, f);
787
+ f = Mu(i, l, s, f), f !== u && Nu(e, o, s, f);
788
788
  }
789
789
  }
790
- yu(V.afterSanitizeAttributes, e, null);
791
- }, Au = function(e) {
792
- let t = null, n = pu(e);
793
- for (yu(V.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (yu(V.uponSanitizeShadowNode, t, null), Cu(t, e), ku(t), _u(t.content) && Au(t.content), (A ? A(t) : t.nodeType) === NODE_TYPE.element) {
794
- let e = jc(t);
795
- _u(e) && (ju(e), Au(e));
790
+ wu(V.afterSanitizeAttributes, e, null);
791
+ }, Fu = function(e) {
792
+ let t = null, n = vu(e);
793
+ for (wu(V.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (wu(V.uponSanitizeShadowNode, t, null), Ou(t, e), Pu(t), Su(t.content) && Fu(t.content), (A ? A(t) : t.nodeType) === NODE_TYPE.element) {
794
+ let e = Ic(t);
795
+ Su(e) && (Iu(e), Fu(e));
796
796
  }
797
- yu(V.afterSanitizeShadowDOM, e, null);
798
- }, ju = function(e) {
797
+ wu(V.afterSanitizeShadowDOM, e, null);
798
+ }, Iu = function(e) {
799
799
  let t = [{
800
800
  node: e,
801
801
  shadow: null
@@ -803,7 +803,7 @@ function createDOMPurify() {
803
803
  for (; t.length > 0;) {
804
804
  let e = t.pop();
805
805
  if (e.shadow) {
806
- Au(e.shadow);
806
+ Fu(e.shadow);
807
807
  continue;
808
808
  }
809
809
  let n = e.node, r = (A ? A(n) : n.nodeType) === NODE_TYPE.element, i = g(n);
@@ -812,18 +812,18 @@ function createDOMPurify() {
812
812
  shadow: null
813
813
  });
814
814
  if (r) {
815
- let e = Nc ? Nc(n) : null;
816
- if (typeof e == "string" && Yl(e) === "template") {
815
+ let e = Rc ? Rc(n) : null;
816
+ if (typeof e == "string" && eu(e) === "template") {
817
817
  let e = n.content;
818
- _u(e) && t.push({
818
+ Su(e) && t.push({
819
819
  node: e,
820
820
  shadow: null
821
821
  });
822
822
  }
823
823
  }
824
824
  if (r) {
825
- let e = jc(n);
826
- _u(e) && t.push({
825
+ let e = Ic(n);
826
+ Su(e) && t.push({
827
827
  node: null,
828
828
  shadow: e
829
829
  }, {
@@ -835,54 +835,54 @@ function createDOMPurify() {
835
835
  };
836
836
  return t.sanitize = function(e) {
837
837
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
838
- if (zl = !e, zl && (e = "<!-->"), typeof e != "string" && !vu(e) && (e = stringifyValue(e), typeof e != "string")) throw typeErrorCreate("dirty is not a string, aborting");
838
+ if (Wl = !e, Wl && (e = "<!-->"), typeof e != "string" && !Cu(e) && (e = stringifyValue(e), typeof e != "string")) throw typeErrorCreate("dirty is not a string, aborting");
839
839
  if (!t.isSupported) return e;
840
- gl ? (H = _l, Y = vl) : $l(n), (V.uponSanitizeElement.length > 0 || V.uponSanitizeAttribute.length > 0) && (H = clone(H)), V.uponSanitizeAttribute.length > 0 && (Y = clone(Y)), t.removed = [];
841
- let c = Dl && typeof e != "string" && vu(e);
840
+ xl ? (H = Sl, Y = Cl) : iu(n), (V.uponSanitizeElement.length > 0 || V.uponSanitizeAttribute.length > 0) && (H = clone(H)), V.uponSanitizeAttribute.length > 0 && (Y = clone(Y)), t.removed = [];
841
+ let c = Ml && typeof e != "string" && Cu(e);
842
842
  if (c) {
843
- du(e);
844
- let t = Nc ? Nc(e) : e.nodeName;
843
+ gu(e);
844
+ let t = Rc ? Rc(e) : e.nodeName;
845
845
  if (typeof t == "string") {
846
- let n = Yl(t);
847
- if (!H[n] || ol[n]) throw su(e), typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
846
+ let n = eu(t);
847
+ if (!H[n] || dl[n]) throw fu(e), typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
848
848
  }
849
- if (gu(e)) throw su(e), typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
849
+ if (xu(e)) throw fu(e), typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
850
850
  try {
851
- ju(e);
851
+ Iu(e);
852
852
  } catch (t) {
853
- throw su(e), t;
853
+ throw fu(e), t;
854
854
  }
855
- } else if (vu(e)) i = fu("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), ju(a);
855
+ } else if (Cu(e)) i = _u("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Iu(a);
856
856
  else {
857
- if (!bl && !pl && !hl && e.indexOf("<") === -1) return B && Sl ? zc(e) : e;
858
- if (i = fu(e), !i) return bl ? null : Sl ? Pc : "";
857
+ if (!Tl && !vl && !bl && e.indexOf("<") === -1) return B && Dl ? Wc(e) : e;
858
+ if (i = _u(e), !i) return Tl ? null : Dl ? zc : "";
859
859
  }
860
- i && yl && ou(i.firstChild);
860
+ i && wl && du(i.firstChild);
861
861
  let l = c ? e : i;
862
862
  try {
863
- let e = pu(l);
864
- for (; o = e.nextNode();) Cu(o, l), ku(o), _u(o.content) && Au(o.content);
863
+ let e = vu(l);
864
+ for (; o = e.nextNode();) Ou(o, l), Pu(o), Su(o.content) && Fu(o.content);
865
865
  } catch (n) {
866
- throw c && (su(e), arrayForEach(t.removed, (e) => {
867
- e.element && uu(e.element);
866
+ throw c && (fu(e), arrayForEach(t.removed, (e) => {
867
+ e.element && hu(e.element);
868
868
  })), n;
869
869
  }
870
870
  if (c) return arrayForEach(t.removed, (e) => {
871
- e.element && uu(e.element);
872
- }), pl && hu(e), e;
873
- if (bl) {
874
- if (pl && hu(i), xl) for (s = Gc.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
871
+ e.element && hu(e.element);
872
+ }), vl && bu(e), e;
873
+ if (Tl) {
874
+ if (vl && bu(i), El) for (s = Xc.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
875
875
  else s = i;
876
- return (Y.shadowroot || Y.shadowrootmode) && (s = qc.call(r, s, !0)), s;
876
+ return (Y.shadowroot || Y.shadowrootmode) && (s = Qc.call(r, s, !0)), s;
877
877
  }
878
- let u = hl ? i.outerHTML : i.innerHTML;
879
- return hl && H["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), pl && (u = mu(u)), B && Sl ? zc(u) : u;
878
+ let u = bl ? i.outerHTML : i.innerHTML;
879
+ return bl && H["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), vl && (u = yu(u)), B && Dl ? Wc(u) : u;
880
880
  }, t.setConfig = function() {
881
- $l(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), gl = !0, _l = H, vl = Y;
881
+ iu(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), xl = !0, Sl = H, Cl = Y;
882
882
  }, t.clearConfig = function() {
883
- Xl = null, gl = !1, _l = null, vl = null, B = Fc, Pc = "";
883
+ tu = null, xl = !1, Sl = null, Cl = null, B = Bc, zc = "";
884
884
  }, t.isValidAttribute = function(e, t, n) {
885
- return Xl || $l({}), wu(Yl(e), Yl(t), n);
885
+ return tu || iu({}), ku(eu(e), eu(t), n);
886
886
  }, t.addHook = function(e, t) {
887
887
  typeof t == "function" && objectHasOwnProperty(V, e) && arrayPush(V[e], t);
888
888
  }, t.removeHook = function(e, t) {
@@ -21592,18 +21592,18 @@ function useDropdown() {
21592
21592
  return e;
21593
21593
  }
21594
21594
  function Dropdown({ trigger: e, children: t, align: n = "start", side: r = "bottom", offsetX: i = 0, offsetY: a = 0, disabled: o = !1, openOnHover: c = !0, open: u, onOpenChange: p }) {
21595
- let g = u !== void 0, [O, Nc] = useState(!1), R = g ? u : O, B = useCallback((e) => {
21596
- e !== R && (g || Nc(e), p?.(e));
21595
+ let g = u !== void 0, [O, Rc] = useState(!1), R = g ? u : O, B = useCallback((e) => {
21596
+ e !== R && (g || Rc(e), p?.(e));
21597
21597
  }, [
21598
21598
  R,
21599
21599
  g,
21600
21600
  p
21601
- ]), Pc = useRef(null), Fc = useRef(null), Ic = useRef(null), [Lc, Rc] = useState(null), zc = useCallback(() => {
21602
- if (!Pc.current || !Fc.current) return;
21603
- let e = Pc.current.getBoundingClientRect(), t = Fc.current.getBoundingClientRect(), o = e.left;
21601
+ ]), zc = useRef(null), Bc = useRef(null), Vc = useRef(null), [Hc, Uc] = useState(null), Wc = useCallback(() => {
21602
+ if (!zc.current || !Bc.current) return;
21603
+ let e = zc.current.getBoundingClientRect(), t = Bc.current.getBoundingClientRect(), o = e.left;
21604
21604
  n === "end" ? o = e.right - t.width : n === "center" && (o = e.left + (e.width - t.width) / 2), o += i;
21605
21605
  let s;
21606
- s = r === "bottom" ? e.bottom + a : e.top - t.height + a, queueMicrotask(() => Rc({
21606
+ s = r === "bottom" ? e.bottom + a : e.top - t.height + a, queueMicrotask(() => Uc({
21607
21607
  top: s,
21608
21608
  left: o
21609
21609
  }));
@@ -21614,52 +21614,52 @@ function Dropdown({ trigger: e, children: t, align: n = "start", side: r = "bott
21614
21614
  a
21615
21615
  ]);
21616
21616
  useLayoutEffect(() => {
21617
- R && zc();
21618
- }, [R, zc]), useEffect(() => {
21617
+ R && Wc();
21618
+ }, [R, Wc]), useEffect(() => {
21619
21619
  if (!R) return;
21620
- let e = () => zc();
21620
+ let e = () => Wc();
21621
21621
  return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
21622
21622
  window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
21623
21623
  };
21624
- }, [R, zc]);
21625
- let Bc = useCallback(() => {
21626
- Ic.current &&= (clearTimeout(Ic.current), null), B(!0);
21627
- }, [B]), Vc = useCallback(() => {
21628
- Ic.current = window.setTimeout(() => {
21624
+ }, [R, Wc]);
21625
+ let Gc = useCallback(() => {
21626
+ Vc.current &&= (clearTimeout(Vc.current), null), B(!0);
21627
+ }, [B]), Kc = useCallback(() => {
21628
+ Vc.current = window.setTimeout(() => {
21629
21629
  B(!1);
21630
21630
  }, 120);
21631
21631
  }, [B]);
21632
21632
  return useEffect(() => {
21633
21633
  function e(e) {
21634
21634
  let t = e.target;
21635
- Pc.current?.contains(t) || Fc.current?.contains(t) || B(!1);
21635
+ zc.current?.contains(t) || Bc.current?.contains(t) || B(!1);
21636
21636
  }
21637
21637
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
21638
21638
  }, [B]), useEffect(() => () => {
21639
- Ic.current && clearTimeout(Ic.current);
21639
+ Vc.current && clearTimeout(Vc.current);
21640
21640
  }, []), /* @__PURE__ */ jsxs(DropdownContext.Provider, {
21641
21641
  value: {
21642
21642
  close: () => B(!1),
21643
- open: Bc
21643
+ open: Gc
21644
21644
  },
21645
21645
  children: [/* @__PURE__ */ jsx("div", {
21646
- ref: Pc,
21646
+ ref: zc,
21647
21647
  className: "inline-flex",
21648
- onMouseEnter: c ? Bc : void 0,
21649
- onMouseLeave: c ? Vc : void 0,
21648
+ onMouseEnter: c ? Gc : void 0,
21649
+ onMouseLeave: c ? Kc : void 0,
21650
21650
  onClick: () => B(!R),
21651
21651
  "aria-haspopup": "menu",
21652
21652
  "aria-expanded": R,
21653
21653
  children: e
21654
21654
  }), R && !o && createPortal(/* @__PURE__ */ jsx("div", {
21655
- ref: Fc,
21656
- onMouseEnter: c ? Bc : void 0,
21657
- onMouseLeave: c ? Vc : void 0,
21655
+ ref: Bc,
21656
+ onMouseEnter: c ? Gc : void 0,
21657
+ onMouseLeave: c ? Kc : void 0,
21658
21658
  style: {
21659
21659
  position: "fixed",
21660
- top: Lc?.top ?? 0,
21661
- left: Lc?.left ?? 0,
21662
- visibility: Lc ? "visible" : "hidden",
21660
+ top: Hc?.top ?? 0,
21661
+ left: Hc?.left ?? 0,
21662
+ visibility: Hc ? "visible" : "hidden",
21663
21663
  zIndex: 1e3
21664
21664
  },
21665
21665
  children: t
@@ -21740,7 +21740,7 @@ function getVerticalAlign(e, t, n) {
21740
21740
  return n === "start" ? e.top : n === "end" ? e.bottom - t.height : e.top + e.height / 2 - t.height / 2;
21741
21741
  }
21742
21742
  function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120, className: i }) {
21743
- let a = useRef(null), o = useRef(null), s = useRef(null), [c, u] = useState(!1), [p, g] = useState(null), Nc = () => {
21743
+ let a = useRef(null), o = useRef(null), s = useRef(null), [c, u] = useState(!1), [p, g] = useState(null), Rc = () => {
21744
21744
  s.current &&= (clearTimeout(s.current), null), s.current = window.setTimeout(() => {
21745
21745
  u(!0);
21746
21746
  }, r);
@@ -21759,9 +21759,9 @@ function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120,
21759
21759
  }, []), /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
21760
21760
  ref: a,
21761
21761
  className: "inline-flex",
21762
- onMouseEnter: Nc,
21762
+ onMouseEnter: Rc,
21763
21763
  onMouseLeave: R,
21764
- onFocus: Nc,
21764
+ onFocus: Rc,
21765
21765
  onBlur: R,
21766
21766
  children: e
21767
21767
  }), c && createPortal(/* @__PURE__ */ jsx("div", {
@@ -23647,13 +23647,13 @@ function OnboardingEngine({ steps: e, context: t, storageKey: n, isEnabled: r =
23647
23647
  e,
23648
23648
  o,
23649
23649
  t
23650
- ]), g = h?.step ?? null, Mc = h?.index ?? null, A = useCallback((e) => {
23650
+ ]), g = h?.step ?? null, Lc = h?.index ?? null, A = useCallback((e) => {
23651
23651
  c((t) => {
23652
23652
  if (t.has(e)) return t;
23653
23653
  let n = new Set(t);
23654
23654
  return n.add(e), n;
23655
23655
  });
23656
- }, []), Nc = useCallback(() => {
23656
+ }, []), Rc = useCallback(() => {
23657
23657
  c((n) => {
23658
23658
  let r = findActiveStep(e, n, t);
23659
23659
  if (r == null || n.has(r.step.id)) return n;
@@ -23666,15 +23666,15 @@ function OnboardingEngine({ steps: e, context: t, storageKey: n, isEnabled: r =
23666
23666
  return /* @__PURE__ */ jsx(Fragment$1, { children: i({
23667
23667
  context: t,
23668
23668
  currentStep: g,
23669
- currentStepIndex: Mc,
23669
+ currentStepIndex: Lc,
23670
23670
  dismissedStepIds: o,
23671
23671
  actions: useMemo(() => ({
23672
- dismissCurrentStep: Nc,
23672
+ dismissCurrentStep: Rc,
23673
23673
  dismissStep: A,
23674
23674
  skipAll: R,
23675
23675
  close: R
23676
23676
  }), [
23677
- Nc,
23677
+ Rc,
23678
23678
  A,
23679
23679
  R
23680
23680
  ])
@@ -23887,7 +23887,7 @@ function useToastTimers(e, t) {
23887
23887
  function Toaster() {
23888
23888
  let [e, t] = useState([]), [n, r] = useState([]), i = useRef(/* @__PURE__ */ new Set()), a = useRef(/* @__PURE__ */ new Map()), o = useRef([]), { remainingTimes: c, pauseAll: u, resumeAll: f, cleanupTimer: p } = useToastTimers(e, a);
23889
23889
  useEffect(() => toastStore.subscribe(t), []);
23890
- let Nc = useSyncExternalStore(subscribeNoop$1, getClientSnapshot$1, getServerSnapshot$1), R = useCallback((e) => {
23890
+ let Rc = useSyncExternalStore(subscribeNoop$1, getClientSnapshot$1, getServerSnapshot$1), R = useCallback((e) => {
23891
23891
  e.callbacks?.onOpen?.();
23892
23892
  }, []), B = useCallback((e, t) => {
23893
23893
  t === "manual" ? e.callbacks?.onClose?.() : (t === "timeout" || t === "replaced") && e.callbacks?.onAutoClose?.(), e.callbacks?.onDismiss?.(t);
@@ -23915,17 +23915,17 @@ function Toaster() {
23915
23915
  R,
23916
23916
  B
23917
23917
  ]);
23918
- let Pc = useCallback((e) => {
23918
+ let zc = useCallback((e) => {
23919
23919
  r((t) => {
23920
23920
  let n = t.filter((t) => t.id !== e);
23921
23921
  return o.current = n, n;
23922
23922
  }), p(e), toastStore.cleanup(e);
23923
- }, [p]), Fc = useCallback((e) => {
23923
+ }, [p]), Bc = useCallback((e) => {
23924
23924
  a.current.set(e, "manual"), toastStore.remove(e);
23925
23925
  }, []);
23926
- if (!Nc) return null;
23927
- let Ic = groupByPosition(n);
23928
- return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(Ic).map(([e, t]) => {
23926
+ if (!Rc) return null;
23927
+ let Vc = groupByPosition(n);
23928
+ return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(Vc).map(([e, t]) => {
23929
23929
  let n = t.filter((e) => e.singleSlot), r = t.filter((e) => !e.singleSlot), i = n.length > 0 ? /* @__PURE__ */ jsx("div", {
23930
23930
  className: cn("isolate inline-grid max-w-[min(100vw,100%)] grid-cols-1 grid-rows-1", SINGLE_SLOT_PLACE[e]),
23931
23931
  children: n.map((e, t) => /* @__PURE__ */ jsx("div", {
@@ -23934,8 +23934,8 @@ function Toaster() {
23934
23934
  children: /* @__PURE__ */ jsx(ToastWrapper, {
23935
23935
  toast: e,
23936
23936
  remainingTime: c.get(e.id) ?? e.duration,
23937
- onExitComplete: Pc,
23938
- onClose: Fc,
23937
+ onExitComplete: zc,
23938
+ onClose: Bc,
23939
23939
  onHoverStart: u,
23940
23940
  onHoverEnd: f
23941
23941
  })
@@ -23943,8 +23943,8 @@ function Toaster() {
23943
23943
  }) : null, a = r.map((e) => /* @__PURE__ */ jsx(ToastWrapper, {
23944
23944
  toast: e,
23945
23945
  remainingTime: c.get(e.id) ?? e.duration,
23946
- onExitComplete: Pc,
23947
- onClose: Fc,
23946
+ onExitComplete: zc,
23947
+ onClose: Bc,
23948
23948
  onHoverStart: u,
23949
23949
  onHoverEnd: f
23950
23950
  }, e.id));
@@ -24240,7 +24240,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
24240
24240
  }),
24241
24241
  onClick: r.read.off
24242
24242
  }]
24243
- }, Nc = [{
24243
+ }, Rc = [{
24244
24244
  value: "normal",
24245
24245
  tooltip: "Normal density",
24246
24246
  icon: /* @__PURE__ */ jsx(NormalDensityIcon, { size: 20 })
@@ -24284,7 +24284,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
24284
24284
  }),
24285
24285
  /* @__PURE__ */ jsx("div", {
24286
24286
  className: "gap-2 flex items-center",
24287
- children: Nc.map(({ value: e, tooltip: t, icon: n }) => {
24287
+ children: Rc.map(({ value: e, tooltip: t, icon: n }) => {
24288
24288
  let r = f === e;
24289
24289
  return /* @__PURE__ */ jsx(InfoTooltip, {
24290
24290
  content: t,
@@ -24546,15 +24546,15 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
24546
24546
  variant: r,
24547
24547
  orientation: i,
24548
24548
  status: a
24549
- }), A = useRef(null), [Nc, R] = useState(!1), [B, Pc] = useState(!1), [Fc, Ic] = useState(l), [Lc, Rc] = useState(null), zc = c ?? Fc, Bc = s && (Nc || B || zc), Vc = typeof n == "number" && n > 0 && (o || a === "active");
24550
- function Hc(e) {
24551
- c === void 0 && Ic(e), u?.(e);
24549
+ }), A = useRef(null), [Rc, R] = useState(!1), [B, zc] = useState(!1), [Bc, Vc] = useState(l), [Hc, Uc] = useState(null), Wc = c ?? Bc, Gc = s && (Rc || B || Wc), Kc = typeof n == "number" && n > 0 && (o || a === "active");
24550
+ function qc(e) {
24551
+ c === void 0 && Vc(e), u?.(e);
24552
24552
  }
24553
24553
  return useLayoutEffect(() => {
24554
- if (!Bc || !A.current) return;
24554
+ if (!Gc || !A.current) return;
24555
24555
  function e() {
24556
24556
  let e = A.current?.getBoundingClientRect();
24557
- e && Rc({
24557
+ e && Uc({
24558
24558
  top: e.top - 8,
24559
24559
  left: e.right - 12
24560
24560
  });
@@ -24562,7 +24562,7 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
24562
24562
  return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
24563
24563
  window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
24564
24564
  };
24565
- }, [Bc]), /* @__PURE__ */ jsxs(Button, {
24565
+ }, [Gc]), /* @__PURE__ */ jsxs(Button, {
24566
24566
  ...g,
24567
24567
  className: cn(O.root(), p?.root),
24568
24568
  onMouseEnter: () => R(!0),
@@ -24573,17 +24573,17 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
24573
24573
  ref: A,
24574
24574
  className: cn(O.bubble(), p?.bubble),
24575
24575
  children: renderIcon(e, O.icon())
24576
- }), Bc && Lc && typeof document < "u" && ToggleControlPortal({
24577
- isPressed: zc,
24576
+ }), Gc && Hc && typeof document < "u" && ToggleControlPortal({
24577
+ isPressed: Wc,
24578
24578
  isPortalHovered: B,
24579
- portalPosition: Lc,
24580
- onMouseEnter: () => Pc(!0),
24581
- onMouseLeave: () => Pc(!1),
24582
- onToggle: () => Hc(!zc)
24579
+ portalPosition: Hc,
24580
+ onMouseEnter: () => zc(!0),
24581
+ onMouseLeave: () => zc(!1),
24582
+ onToggle: () => qc(!Wc)
24583
24583
  })]
24584
24584
  }), /* @__PURE__ */ jsxs("div", {
24585
24585
  className: cn(O.label(), p?.label),
24586
- children: [/* @__PURE__ */ jsx("span", { children: t }), Vc && /* @__PURE__ */ jsxs("span", {
24586
+ children: [/* @__PURE__ */ jsx("span", { children: t }), Kc && /* @__PURE__ */ jsxs("span", {
24587
24587
  "aria-label": `${n} items`,
24588
24588
  className: cn(O.count(), p?.count),
24589
24589
  children: [
@@ -24710,7 +24710,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
24710
24710
  n
24711
24711
  ]);
24712
24712
  let A = useMemo(() => generateCalendarDays(g.year, g.month), [g.year, g.month]);
24713
- function Nc(t) {
24713
+ function Rc(t) {
24714
24714
  let o = t.getMonth(), s = t.getFullYear();
24715
24715
  if ((o !== g.month || s !== g.year) && O({
24716
24716
  year: s,
@@ -24745,7 +24745,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
24745
24745
  month: e.month + 1
24746
24746
  });
24747
24747
  }
24748
- let Pc = getWeekdays();
24748
+ let zc = getWeekdays();
24749
24749
  return /* @__PURE__ */ jsxs("div", {
24750
24750
  className: "mt-1 rounded-lg p-2 shadow-lg w-fit border border-neutral-400 bg-white",
24751
24751
  children: [
@@ -24782,7 +24782,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
24782
24782
  }),
24783
24783
  /* @__PURE__ */ jsx("div", {
24784
24784
  className: "mb-2 grid grid-cols-7",
24785
- children: Pc.map((e) => /* @__PURE__ */ jsx("div", {
24785
+ children: zc.map((e) => /* @__PURE__ */ jsx("div", {
24786
24786
  className: "p-0.5 font-bold flex items-center justify-center text-[9px] text-neutral-900",
24787
24787
  children: e
24788
24788
  }, e))
@@ -24790,12 +24790,12 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
24790
24790
  /* @__PURE__ */ jsx("div", {
24791
24791
  className: "grid grid-cols-7",
24792
24792
  children: A.map(({ day: r, date: i, isCurrentMonth: a }) => {
24793
- let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), h = f && isSameDay(i, f), Ac = u, g = s;
24794
- e === "range" && u && !f && s && !isDateBefore(s, u) ? (Ac = u, g = s) : (Ac = null, g = null);
24795
- let O = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, Ac, g)), Mc = l || p || h;
24793
+ let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), h = f && isSameDay(i, f), Fc = u, g = s;
24794
+ e === "range" && u && !f && s && !isDateBefore(s, u) ? (Fc = u, g = s) : (Fc = null, g = null);
24795
+ let O = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, Fc, g)), Lc = l || p || h;
24796
24796
  return /* @__PURE__ */ jsx(Button, {
24797
24797
  type: "button",
24798
- onClick: () => Nc(i),
24798
+ onClick: () => Rc(i),
24799
24799
  onMouseEnter: () => {
24800
24800
  e === "range" && u && !f && !isDateBefore(i, u) && c(i);
24801
24801
  },
@@ -24804,9 +24804,9 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
24804
24804
  },
24805
24805
  className: "p-0.5",
24806
24806
  "aria-label": `Select ${formatDate(i)}`,
24807
- "aria-selected": Mc || void 0,
24807
+ "aria-selected": Lc || void 0,
24808
24808
  children: /* @__PURE__ */ jsx("div", {
24809
- className: cn("rounded flex h-[26px] w-[26px] items-center justify-center text-[9px] transition-colors", Mc && "font-semibold bg-primary-500 text-white-variant-1 hover:bg-primary-500", O && !Mc && "font-normal bg-primary-500/20 text-neutral-900 hover:bg-primary-500/30", o && !Mc && !O && "font-bold border border-primary-500 bg-primary-500/15 hover:bg-primary-500 hover:text-white", !Mc && !O && (a ? "text-neutral-900 hover:bg-neutral-300" : "text-neutral-600 hover:bg-neutral-200")),
24809
+ className: cn("rounded flex h-[26px] w-[26px] items-center justify-center text-[9px] transition-colors", Lc && "font-semibold bg-primary-500 text-white-variant-1 hover:bg-primary-500", O && !Lc && "font-normal bg-primary-500/20 text-neutral-900 hover:bg-primary-500/30", o && !Lc && !O && "font-bold border border-primary-500 bg-primary-500/15 hover:bg-primary-500 hover:text-white", !Lc && !O && (a ? "text-neutral-900 hover:bg-neutral-300" : "text-neutral-600 hover:bg-neutral-200")),
24810
24810
  children: r
24811
24811
  })
24812
24812
  }, `${i.getFullYear()}-${i.getMonth()}-${r}`);
@@ -24874,7 +24874,7 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
24874
24874
  function g(t) {
24875
24875
  e === "range" && (u || l(t), r?.(t));
24876
24876
  }
24877
- function Mc() {
24877
+ function Lc() {
24878
24878
  e === "single" ? h(null) : g({
24879
24879
  startDate: null,
24880
24880
  endDate: null
@@ -24885,7 +24885,7 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
24885
24885
  displayText: e === "single" ? formatDate(f) : formatDateRange(p.startDate, p.endDate),
24886
24886
  disabled: i,
24887
24887
  className: a,
24888
- onClear: Mc
24888
+ onClear: Lc
24889
24889
  }),
24890
24890
  disabled: i,
24891
24891
  children: /* @__PURE__ */ jsx(CalendarPanel, {
@@ -25099,12 +25099,12 @@ function EventActionsList({ actions: e, className: t }) {
25099
25099
  }) })
25100
25100
  });
25101
25101
  }
25102
- function EventCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, timestampTooltip: o, workspace: s, read: c = !1, selected: l = !1, onSelect: u, checked: f = !1, onCheckedChange: p, statusBadges: h = {}, actions: Ac = {}, density: g = "normal", className: O, style: A, isPriority: Nc, isDone: R }) {
25102
+ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, timestampTooltip: o, workspace: s, read: c = !1, selected: l = !1, onSelect: u, checked: f = !1, onCheckedChange: p, statusBadges: h = {}, actions: Fc = {}, density: g = "normal", className: O, style: A, isPriority: Rc, isDone: R }) {
25103
25103
  return /* @__PURE__ */ jsx(Card, {
25104
25104
  as: Pressable,
25105
25105
  onPress: u,
25106
25106
  className: cn(eventCardStyles({
25107
- tone: Nc ? "priority" : R ? "done" : "default",
25107
+ tone: Rc ? "priority" : R ? "done" : "default",
25108
25108
  state: l ? "selected" : c ? "read" : "unread",
25109
25109
  density: g
25110
25110
  }), O),
@@ -25146,7 +25146,7 @@ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, times
25146
25146
  /* @__PURE__ */ jsxs(CardFooter, {
25147
25147
  className: "mt-3 gap-1 grid grid-cols-[minmax(0,1fr)_auto] items-center",
25148
25148
  children: [/* @__PURE__ */ jsx(EventStatusesList, { statusBadges: h }), /* @__PURE__ */ jsx(EventActionsList, {
25149
- actions: Ac,
25149
+ actions: Fc,
25150
25150
  className: "col-start-2 justify-self-end"
25151
25151
  })]
25152
25152
  })
@@ -25185,7 +25185,7 @@ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, times
25185
25185
  ]
25186
25186
  }),
25187
25187
  /* @__PURE__ */ jsx("div", { className: "flex-1" }),
25188
- /* @__PURE__ */ jsx(EventActionsList, { actions: Ac }),
25188
+ /* @__PURE__ */ jsx(EventActionsList, { actions: Fc }),
25189
25189
  /* @__PURE__ */ jsx(InfoTooltip, {
25190
25190
  content: o,
25191
25191
  children: /* @__PURE__ */ jsx("span", {
@@ -25430,11 +25430,11 @@ function EventSummaryFireButton({ active: e, onClick: t }) {
25430
25430
  }) });
25431
25431
  }
25432
25432
  function EventSummaryCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, workspace: o, selected: s = !1, onSelect: c, actions: l, className: u }) {
25433
- let { fire: f, insight: p, link: h } = l, Ac = p?.label ?? null;
25433
+ let { fire: f, insight: p, link: h } = l, Fc = p?.label ?? null;
25434
25434
  return /* @__PURE__ */ jsxs(Pressable, {
25435
25435
  onPress: c,
25436
25436
  className: cn(eventSummaryCardStyles({
25437
- tone: f.active ? "priority" : insightLabelVisible(Ac) ? "insight" : "default",
25437
+ tone: f.active ? "priority" : insightLabelVisible(Fc) ? "insight" : "default",
25438
25438
  state: s ? "selected" : "normal"
25439
25439
  }), EVENT_SUMMARY_CARD_HEIGHT_SIZE.style, u),
25440
25440
  "data-service": t,
@@ -25458,7 +25458,7 @@ function EventSummaryCard({ icon: e, service: t, sender: n, title: r, content: i
25458
25458
  className: "text-xs leading-tight font-semibold tracking-wide flex-1 text-right whitespace-nowrap text-neutral-800",
25459
25459
  children: a
25460
25460
  }),
25461
- insightLabelVisible(Ac) && /* @__PURE__ */ jsx(EventSummaryInsightChip, { label: Ac }),
25461
+ insightLabelVisible(Fc) && /* @__PURE__ */ jsx(EventSummaryInsightChip, { label: Fc }),
25462
25462
  f.onClick && /* @__PURE__ */ jsx(EventSummaryFireButton, {
25463
25463
  active: f.active,
25464
25464
  onClick: f.onClick
@@ -25730,13 +25730,13 @@ function EventDetailContentMessage({ detail: { groups: e, summary: t, priorityTe
25730
25730
  }, []), f = u.length, p = new Map(c.map((e) => {
25731
25731
  let t = e.insightBadgeId ?? e.id, n = u.indexOf(t);
25732
25732
  return [e.id, f - n];
25733
- })), Ac = /* @__PURE__ */ new Set(), g = new Set(c.reduce((e, t) => {
25733
+ })), Fc = /* @__PURE__ */ new Set(), g = new Set(c.reduce((e, t) => {
25734
25734
  let n = t.insightBadgeId ?? t.id;
25735
- return Ac.has(n) || (Ac.add(n), e.push(t.id)), e;
25736
- }, [])), O = useRef(null), A = useRef(null), Nc = useRef(!1);
25735
+ return Fc.has(n) || (Fc.add(n), e.push(t.id)), e;
25736
+ }, [])), O = useRef(null), A = useRef(null), Rc = useRef(!1);
25737
25737
  useEffect(() => {
25738
- if (e.length === 0 || Nc.current) return;
25739
- Nc.current = !0;
25738
+ if (e.length === 0 || Rc.current) return;
25739
+ Rc.current = !0;
25740
25740
  let t = [...e].reverse().find((e) => e.isPriority), n = [...e].reverse().find((e) => !e.isPriority && e.isInsight), r = t ?? n;
25741
25741
  if (r && O.current) {
25742
25742
  let e = O.current.querySelector(`[data-group-id="${r.id}"]`);
@@ -25854,7 +25854,7 @@ function EventDetailContentTicketDetails({ issue: e, notification: t, project: n
25854
25854
  ]
25855
25855
  })] });
25856
25856
  }
25857
- function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText: n, followUpTitle: r, followUpSubtitle: i, issue: a, notification: o, project: s, task: c, dueDate: l, startDate: u, assignees: f, reporter: p, team: h, location: Ac, related: g }, className: O }) {
25857
+ function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText: n, followUpTitle: r, followUpSubtitle: i, issue: a, notification: o, project: s, task: c, dueDate: l, startDate: u, assignees: f, reporter: p, team: h, location: Fc, related: g }, className: O }) {
25858
25858
  return /* @__PURE__ */ jsxs(EventDetailContentHeader, {
25859
25859
  summary: e,
25860
25860
  priorityText: n,
@@ -25872,7 +25872,7 @@ function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText:
25872
25872
  assignees: f,
25873
25873
  reporter: p,
25874
25874
  team: h,
25875
- location: Ac,
25875
+ location: Fc,
25876
25876
  related: g
25877
25877
  }),
25878
25878
  /* @__PURE__ */ jsx("h2", {
@@ -26668,10 +26668,10 @@ function OnboardingCard({ stepLabel: e, title: t, description: n, titleAccessory
26668
26668
  children: [i, a]
26669
26669
  })
26670
26670
  ]
26671
- }), Ac = wrapArrow(/* @__PURE__ */ jsx(OnboardingCardArrow, {
26671
+ }), Fc = wrapArrow(/* @__PURE__ */ jsx(OnboardingCardArrow, {
26672
26672
  layout: o,
26673
26673
  placement: s
26674
- }), c, l), g = s === "before" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [Ac, h] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [h, Ac] });
26674
+ }), c, l), g = s === "before" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [Fc, h] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [h, Fc] });
26675
26675
  return o === "horizontal" ? /* @__PURE__ */ jsx("div", {
26676
26676
  className: cn("flex items-center", u),
26677
26677
  children: g
@@ -26949,6 +26949,18 @@ function PulseSignalCardSkeleton({ className: e }) {
26949
26949
  ]
26950
26950
  });
26951
26951
  }
26952
+ var RESPOND_STYLE = "text-pulse-card-tag-respond-text border-pulse-card-tag-respond-border", DECIDE_STYLE = "text-pulse-card-tag-decide-text border-pulse-card-tag-decide-border", NEUTRAL_STYLE = "border-neutral-400 text-neutral-700", ACTION_STYLES = new Map([["respond", RESPOND_STYLE], ["decide", DECIDE_STYLE]]), LEGACY_LABELS = new Map([
26953
+ ["respond", "Respond"],
26954
+ ["decide", "Decide"],
26955
+ ["observe", "Observe"]
26956
+ ]);
26957
+ function getPulseSignalMove(e) {
26958
+ let t = e.lastIndexOf(": "), n = (t === -1 ? e : e.slice(t + 2)).trim().toLowerCase();
26959
+ return {
26960
+ label: LEGACY_LABELS.get(e) ?? e,
26961
+ style: ACTION_STYLES.get(n) ?? NEUTRAL_STYLE
26962
+ };
26963
+ }
26952
26964
  var SEVERITY = {
26953
26965
  fire: {
26954
26966
  icon: FireFillIcon,
@@ -26962,22 +26974,9 @@ var SEVERITY = {
26962
26974
  icon: EyeFillIcon,
26963
26975
  text: "text-neutral-700-variant-1"
26964
26976
  }
26965
- }, MOVE = {
26966
- respond: {
26967
- label: "Respond",
26968
- style: "text-pulse-card-tag-respond-text border-pulse-card-tag-respond-border"
26969
- },
26970
- decide: {
26971
- label: "Decide",
26972
- style: "text-pulse-card-tag-decide-text border-pulse-card-tag-decide-border"
26973
- },
26974
- observe: {
26975
- label: "Observe",
26976
- style: "border-neutral-400 text-neutral-700"
26977
- }
26978
26977
  };
26979
26978
  function PulseSignalStatus({ timeText: e, severity: t, slaLabel: n, move: r, keepSize: i = !1, className: a }) {
26980
- let { icon: o, text: s } = SEVERITY[t];
26979
+ let { icon: o, text: s } = SEVERITY[t], c = r ? getPulseSignalMove(r) : void 0;
26981
26980
  return /* @__PURE__ */ jsxs("div", {
26982
26981
  className: cn("gap-1.5 flex items-center", a),
26983
26982
  children: [
@@ -26992,9 +26991,9 @@ function PulseSignalStatus({ timeText: e, severity: t, slaLabel: n, move: r, kee
26992
26991
  className: s
26993
26992
  }), n]
26994
26993
  }),
26995
- r && /* @__PURE__ */ jsx("span", {
26996
- className: cn("h-4 rounded px-1.5 font-semibold inline-flex items-center border text-[10px]", i && "shrink-0", MOVE[r].style),
26997
- children: MOVE[r].label
26994
+ c && /* @__PURE__ */ jsx("span", {
26995
+ className: cn("h-4 rounded px-1.5 font-semibold inline-flex items-center border text-[10px]", i && "shrink-0", c.style),
26996
+ children: c.label
26998
26997
  })
26999
26998
  ]
27000
26999
  });
@@ -27045,7 +27044,7 @@ var pulseSignalCardStyles = tv({
27045
27044
  }
27046
27045
  ]
27047
27046
  });
27048
- function PulseSignalCard({ timeText: e, severity: t, slaLabel: n, move: r, subject: i, askAuthor: a, askText: o, nextLabel: s, nextText: c, owner: l, sources: u, tone: f, selected: p = !1, onClick: h, onOpenThread: Ac, className: g }) {
27047
+ function PulseSignalCard({ timeText: e, severity: t, slaLabel: n, move: r, subject: i, askAuthor: a, askText: o, nextLabel: s, nextText: c, owner: l, sources: u, tone: f, selected: p = !1, onClick: h, onOpenThread: Fc, className: g }) {
27049
27048
  return /* @__PURE__ */ jsxs(Pressable, {
27050
27049
  onPress: h,
27051
27050
  className: cn(pulseSignalCardStyles({
@@ -27058,14 +27057,14 @@ function PulseSignalCard({ timeText: e, severity: t, slaLabel: n, move: r, subje
27058
27057
  children: [/* @__PURE__ */ jsx("span", {
27059
27058
  className: "gap-1 flex items-center",
27060
27059
  children: u
27061
- }), Ac && /* @__PURE__ */ jsx(InfoTooltip, {
27060
+ }), Fc && /* @__PURE__ */ jsx(InfoTooltip, {
27062
27061
  content: "Open thread",
27063
27062
  position: "top",
27064
27063
  children: /* @__PURE__ */ jsx("button", {
27065
27064
  type: "button",
27066
27065
  "aria-label": "Open thread",
27067
27066
  onClick: (e) => {
27068
- e.stopPropagation(), Ac();
27067
+ e.stopPropagation(), Fc();
27069
27068
  },
27070
27069
  onKeyDown: (e) => e.stopPropagation(),
27071
27070
  className: "h-6 w-6 rounded-md flex items-center justify-center text-neutral-700 transition-colors hover:bg-pulse-card-action-hover-bg hover:text-pulse-card-action-hover-text",
@@ -27423,14 +27422,14 @@ function SourceIcons({ sourceTypes: e, sourceLink: t, onOpenSource: n, sourceToo
27423
27422
  })]
27424
27423
  });
27425
27424
  }
27426
- function SignalCard({ title: e, clientName: t, requesterName: n, explanation: r, severity: i, status: a, slaLabel: o, slaStatusLabel: s, sourceTypes: c, sourceLink: l, onOpenSource: u, sourceTooltip: f, patternContext: p, variant: h = "home", selected: Ac = !1, onClick: g, className: O }) {
27425
+ function SignalCard({ title: e, clientName: t, requesterName: n, explanation: r, severity: i, status: a, slaLabel: o, slaStatusLabel: s, sourceTypes: c, sourceLink: l, onOpenSource: u, sourceTooltip: f, patternContext: p, variant: h = "home", selected: Fc = !1, onClick: g, className: O }) {
27427
27426
  let A = SEVERITY_CONFIG$1[i];
27428
27427
  return /* @__PURE__ */ jsxs(Pressable, {
27429
27428
  onPress: g,
27430
27429
  className: cn(signalCardStyles({
27431
27430
  layout: h,
27432
27431
  status: a,
27433
- selected: Ac
27432
+ selected: Fc
27434
27433
  }), O),
27435
27434
  children: [
27436
27435
  /* @__PURE__ */ jsx(SourceIcons, {
@@ -27739,8 +27738,8 @@ function GuardrailTooltip({ text: e }) {
27739
27738
  })
27740
27739
  });
27741
27740
  }
27742
- function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStatusLabel: r, statusLabel: i, statusTone: a, sourceType: o, sourceLink: s, onOpenSource: c, sourceTooltip: l, clientCompany: u, contactName: f, teamCompanyName: p, recipientLabel: h, sla: g, claim: O, sameThreadGuardrail: A, evidenceItems: Nc, nextStep: R, actionRationale: B, rankingRationale: Pc, attentionRationale: Fc, dismissOptions: Ic, onClose: Lc, onResolve: Rc, onDismiss: zc, className: Bc, ...Vc }) {
27743
- let Hc = SEVERITY_CONFIG[t], [Uc, Wc] = useState(!1), [Gc, Kc] = useState(null), [qc, V] = useState(!1), [Yc, Xc] = useState(!1), Zc = () => {
27741
+ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStatusLabel: r, statusLabel: i, statusTone: a, sourceType: o, sourceLink: s, onOpenSource: c, sourceTooltip: l, clientCompany: u, contactName: f, teamCompanyName: p, recipientLabel: h, sla: g, claim: O, sameThreadGuardrail: A, evidenceItems: Rc, nextStep: R, actionRationale: B, rankingRationale: zc, attentionRationale: Bc, dismissOptions: Vc, onClose: Hc, onResolve: Uc, onDismiss: Wc, className: Gc, ...Kc }) {
27742
+ let qc = SEVERITY_CONFIG[t], [Jc, Yc] = useState(!1), [Xc, Zc] = useState(null), [Qc, V] = useState(!1), [el, tl] = useState(!1), nl = () => {
27744
27743
  let t = [r, n].filter(Boolean).join(" · "), i = [
27745
27744
  e,
27746
27745
  "",
@@ -27750,12 +27749,12 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27750
27749
  ...t ? ["", t] : []
27751
27750
  ];
27752
27751
  navigator.clipboard.writeText(i.join("\n")).catch(() => {}), V(!0), setTimeout(() => V(!1), 2e3);
27753
- }, Qc = () => {
27754
- zc?.(Gc ?? void 0), Wc(!1), Kc(null);
27752
+ }, rl = () => {
27753
+ Wc?.(Xc ?? void 0), Yc(!1), Zc(null);
27755
27754
  };
27756
27755
  return /* @__PURE__ */ jsxs("div", {
27757
- className: cn("flex h-full flex-col overflow-y-auto bg-white-variant-8", STATUS_BADGE_STYLES[a].accentBar, Bc),
27758
- ...Vc,
27756
+ className: cn("flex h-full flex-col overflow-y-auto bg-white-variant-8", STATUS_BADGE_STYLES[a].accentBar, Gc),
27757
+ ...Kc,
27759
27758
  children: [/* @__PURE__ */ jsxs("div", {
27760
27759
  className: "sticky top-0 z-20 shrink-0 border-b border-neutral-200-variant-1 bg-white-variant-8 px-4 pt-5 pb-4",
27761
27760
  children: [/* @__PURE__ */ jsxs("div", {
@@ -27768,12 +27767,12 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27768
27767
  children: e
27769
27768
  }),
27770
27769
  n && /* @__PURE__ */ jsx("span", {
27771
- className: cn("text-[13px] font-bold shrink-0", Hc.text),
27770
+ className: cn("text-[13px] font-bold shrink-0", qc.text),
27772
27771
  children: n
27773
27772
  }),
27774
27773
  r && /* @__PURE__ */ jsxs("span", {
27775
27774
  className: "inline-flex shrink-0 items-center gap-1 text-[10px] font-medium text-neutral-500",
27776
- children: [Hc.icon && /* @__PURE__ */ jsx(Hc.icon, {
27775
+ children: [qc.icon && /* @__PURE__ */ jsx(qc.icon, {
27777
27776
  size: 11,
27778
27777
  className: "text-neutral-500"
27779
27778
  }), r]
@@ -27783,9 +27782,9 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27783
27782
  children: [/* @__PURE__ */ jsx("span", { className: cn("h-1.5 w-1.5 shrink-0 rounded-full", STATUS_BADGE_STYLES[a].dot) }), i]
27784
27783
  })
27785
27784
  ]
27786
- }), Lc && /* @__PURE__ */ jsx(Button, {
27785
+ }), Hc && /* @__PURE__ */ jsx(Button, {
27787
27786
  type: "button",
27788
- onClick: Lc,
27787
+ onClick: Hc,
27789
27788
  "aria-label": "Close",
27790
27789
  className: "h-7 w-7 shrink-0 rounded-lg hover:bg-neutral-100",
27791
27790
  children: /* @__PURE__ */ jsx("svg", {
@@ -27881,28 +27880,28 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27881
27880
  children: B
27882
27881
  })]
27883
27882
  }),
27884
- Pc ? /* @__PURE__ */ jsxs("div", {
27883
+ zc ? /* @__PURE__ */ jsxs("div", {
27885
27884
  className: "rounded-xl border border-neutral-200-variant-1 bg-neutral-50 px-4 py-3.5",
27886
27885
  children: [/* @__PURE__ */ jsx("p", {
27887
27886
  className: "mb-2 text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
27888
27887
  children: "Why ranked first"
27889
27888
  }), /* @__PURE__ */ jsx("p", {
27890
27889
  className: "text-sm text-neutral-800",
27891
- children: Pc
27890
+ children: zc
27892
27891
  })]
27893
- }) : Fc ? /* @__PURE__ */ jsxs("div", {
27892
+ }) : Bc ? /* @__PURE__ */ jsxs("div", {
27894
27893
  className: "rounded-xl border border-neutral-200-variant-1 bg-neutral-50 px-4 py-3.5",
27895
27894
  children: [/* @__PURE__ */ jsx("p", {
27896
27895
  className: "mb-2 text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
27897
27896
  children: "Why this needs attention"
27898
27897
  }), /* @__PURE__ */ jsx("p", {
27899
27898
  className: "text-sm text-neutral-800",
27900
- children: Fc
27899
+ children: Bc
27901
27900
  })]
27902
27901
  }) : null,
27903
27902
  /* @__PURE__ */ jsx(SectionCard, {
27904
27903
  title: "What do you want to do?",
27905
- children: Uc ? /* @__PURE__ */ jsxs("div", {
27904
+ children: Jc ? /* @__PURE__ */ jsxs("div", {
27906
27905
  className: "flex flex-col gap-2",
27907
27906
  children: [
27908
27907
  /* @__PURE__ */ jsx("p", {
@@ -27911,10 +27910,10 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27911
27910
  }),
27912
27911
  /* @__PURE__ */ jsx("div", {
27913
27912
  className: "flex flex-wrap gap-1.5",
27914
- children: Ic.map((e) => /* @__PURE__ */ jsx(Button, {
27913
+ children: Vc.map((e) => /* @__PURE__ */ jsx(Button, {
27915
27914
  type: "button",
27916
- onClick: () => Kc((t) => t === e.id ? null : e.id),
27917
- className: Gc === e.id ? "rounded-full bg-neutral-800 px-2.5 py-1 text-[11px] font-medium text-white" : "rounded-full border border-neutral-300 bg-white px-2.5 py-1 text-[11px] font-medium text-neutral-700 hover:border-neutral-500",
27915
+ onClick: () => Zc((t) => t === e.id ? null : e.id),
27916
+ className: Xc === e.id ? "rounded-full bg-neutral-800 px-2.5 py-1 text-[11px] font-medium text-white" : "rounded-full border border-neutral-300 bg-white px-2.5 py-1 text-[11px] font-medium text-neutral-700 hover:border-neutral-500",
27918
27917
  children: e.label
27919
27918
  }, e.id))
27920
27919
  }),
@@ -27923,21 +27922,21 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27923
27922
  children: [
27924
27923
  /* @__PURE__ */ jsx(Button, {
27925
27924
  type: "button",
27926
- onClick: Qc,
27925
+ onClick: rl,
27927
27926
  className: "rounded-lg bg-neutral-800 px-3 py-1.5 text-xs font-semibold text-white",
27928
27927
  children: "Confirm"
27929
27928
  }),
27930
27929
  /* @__PURE__ */ jsx(Button, {
27931
27930
  type: "button",
27932
27931
  onClick: () => {
27933
- Wc(!1), Kc(null);
27932
+ Yc(!1), Zc(null);
27934
27933
  },
27935
27934
  className: "text-xs font-medium text-neutral-700-variant-1 hover:underline",
27936
27935
  children: "Cancel"
27937
27936
  }),
27938
27937
  /* @__PURE__ */ jsx(Button, {
27939
27938
  type: "button",
27940
- onClick: Rc,
27939
+ onClick: Uc,
27941
27940
  className: "ml-auto text-xs font-medium text-primary-500 hover:underline",
27942
27941
  children: "Mark handled instead"
27943
27942
  })
@@ -27965,21 +27964,21 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27965
27964
  })(),
27966
27965
  /* @__PURE__ */ jsxs(Button, {
27967
27966
  type: "button",
27968
- onClick: Rc,
27967
+ onClick: Uc,
27969
27968
  className: "gap-1.5 rounded-lg border border-neutral-300 bg-neutral-100 px-3 py-1.5 text-xs font-semibold text-neutral-700 transition-colors hover:bg-neutral-200",
27970
27969
  children: [/* @__PURE__ */ jsx(CheckActionIcon, {}), "Mark handled"]
27971
27970
  }),
27972
27971
  /* @__PURE__ */ jsxs(Button, {
27973
27972
  type: "button",
27974
- onClick: () => Wc(!0),
27973
+ onClick: () => Yc(!0),
27975
27974
  className: "gap-1.5 rounded-lg border border-neutral-300 bg-neutral-100 px-3 py-1.5 text-xs font-semibold text-neutral-700 transition-colors hover:bg-neutral-200",
27976
27975
  children: [/* @__PURE__ */ jsx(DismissActionIcon, {}), "Mark not useful"]
27977
27976
  }),
27978
27977
  /* @__PURE__ */ jsxs(Button, {
27979
27978
  type: "button",
27980
- onClick: Zc,
27981
- className: qc ? "gap-1.5 rounded-lg border border-green-400 bg-green-50 px-3 py-1.5 text-xs font-semibold text-green-800 transition-colors" : "gap-1.5 rounded-lg border border-neutral-300 bg-neutral-100 px-3 py-1.5 text-xs font-semibold text-neutral-700 transition-colors hover:bg-neutral-200",
27982
- children: [jsx(qc ? CheckActionIcon : CopyActionIcon, {}), qc ? "Copied" : "Copy evidence"]
27979
+ onClick: nl,
27980
+ className: Qc ? "gap-1.5 rounded-lg border border-green-400 bg-green-50 px-3 py-1.5 text-xs font-semibold text-green-800 transition-colors" : "gap-1.5 rounded-lg border border-neutral-300 bg-neutral-100 px-3 py-1.5 text-xs font-semibold text-neutral-700 transition-colors hover:bg-neutral-200",
27981
+ children: [jsx(Qc ? CheckActionIcon : CopyActionIcon, {}), Qc ? "Copied" : "Copy evidence"]
27983
27982
  })
27984
27983
  ]
27985
27984
  })
@@ -27988,20 +27987,20 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27988
27987
  className: "rounded-xl border border-neutral-200-variant-1 bg-white-variant-8 px-4 py-3.5",
27989
27988
  children: [/* @__PURE__ */ jsxs(Button, {
27990
27989
  type: "button",
27991
- onClick: () => Xc((e) => !e),
27990
+ onClick: () => tl((e) => !e),
27992
27991
  className: "w-full justify-between text-left",
27993
- "aria-expanded": Yc,
27992
+ "aria-expanded": el,
27994
27993
  children: [/* @__PURE__ */ jsx("span", {
27995
27994
  className: "text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
27996
27995
  children: "Evidence analysis"
27997
27996
  }), /* @__PURE__ */ jsxs("span", {
27998
27997
  className: "inline-flex items-center gap-1 text-xs font-medium text-neutral-700-variant-1",
27999
- children: [Yc ? "Hide proof" : "Show proof", /* @__PURE__ */ jsx(ChevronIcon, { expanded: Yc })]
27998
+ children: [el ? "Hide proof" : "Show proof", /* @__PURE__ */ jsx(ChevronIcon, { expanded: el })]
28000
27999
  })]
28001
- }), Yc && /* @__PURE__ */ jsx("div", {
28000
+ }), el && /* @__PURE__ */ jsx("div", {
28002
28001
  className: "mt-3 border-t border-neutral-200-variant-1 pt-3",
28003
28002
  children: /* @__PURE__ */ jsx(EvidenceTimeline, {
28004
- items: Nc,
28003
+ items: Rc,
28005
28004
  canExpandThread: !0,
28006
28005
  tone: a,
28007
28006
  threadTitle: e,