react-ecosistema-unp 2.0.1 → 2.2.0

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.
Files changed (69) hide show
  1. package/dist/{AppList-BshxZhoN.js → AppList-DORGpC4I.js} +84 -84
  2. package/dist/assets/DocumentoVisorEstado.css +1 -0
  3. package/dist/assets/EcoDataTable.css +1 -1
  4. package/dist/assets/EcoDataTableBandejaFooter.css +1 -1
  5. package/dist/assets/EcoModalStyles.css +1 -1
  6. package/dist/assets/SileoNotifications.css +1 -1
  7. package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
  8. package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
  9. package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
  10. package/dist/{index-C4MBu_wk.js → index-B96iRUpt.js} +38 -34
  11. package/dist/{index-h-TtOxhs.js → index-BqaJxgOF.js} +182 -170
  12. package/dist/{SileoNotifications-BESOBARG.js → index-C1R4rkuA.js} +1 -1
  13. package/dist/lib/tables/custom-data-table/CustomDataTable.d.ts +2 -0
  14. package/dist/lib/tables/custom-data-table-split/CustomDataTableSplit.d.ts +7 -3
  15. package/dist/lib/tables/eco-data-table/components/EcoDataTable/EcoDataTable.d.ts +1 -1
  16. package/dist/lib/tables/eco-data-table/components/EcoDataTableBandejaFooter.d.ts +8 -1
  17. package/dist/lib/tables/eco-data-table/hooks/useEcoTableSelection.d.ts +1 -0
  18. package/dist/lib/tables/eco-data-table/types.d.ts +7 -0
  19. package/dist/lib/ui/animacion/Animacion.d.ts +1 -0
  20. package/dist/lib/ui.d.ts +1 -0
  21. package/dist/lib/utils/eco-provider/EcoContext.d.ts +4 -2
  22. package/dist/lib/utils/modal-radicados/DocumentoVisorEstado.d.ts +18 -0
  23. package/dist/lib/utils/modal-radicados/ModalDocumento.d.ts +26 -0
  24. package/dist/lib/utils/modal-radicados/VisorDocumento.d.ts +8 -0
  25. package/dist/lib/utils/notifications/EcoToaster.d.ts +18 -0
  26. package/dist/lib/utils/notifications/SileoNotifications.d.ts +23 -7
  27. package/dist/lib/utils.d.ts +2 -1
  28. package/dist/shared/app-list/AppList.js +2 -2
  29. package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
  30. package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
  31. package/dist/shared/menu-lateral/MenuLateral.js +6 -4
  32. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +61 -59
  33. package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
  34. package/dist/tables/custom-data-table/CustomDataTable.js +551 -548
  35. package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +186 -173
  36. package/dist/tables/custom-table-toolbar/CustomTableToolbar.js +1 -1
  37. package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +190 -149
  38. package/dist/tables/eco-data-table/components/EcoDataTableBandejaFooter.js +36 -26
  39. package/dist/tables/eco-data-table/hooks/useEcoTableSelection.js +9 -8
  40. package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
  41. package/dist/tables/tabla-registros/modal-v2/EcoModal.js +11 -11
  42. package/dist/tables/tabla-registros/tabla/Tabla.js +22 -22
  43. package/dist/ui/alertas/AlertaFormulario.js +1 -1
  44. package/dist/ui/card-gestion-lateral/CardGestionLateral.js +1 -1
  45. package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
  46. package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
  47. package/dist/ui/contenido-modal-v2/ContenidoModalV2.js +1 -1
  48. package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
  49. package/dist/ui/datos-basicos-card/DatosBasicosCard.js +1 -1
  50. package/dist/ui/icono-tooltip/IconoTooltip.js +10 -10
  51. package/dist/ui/items-modal/ItemsModal.js +1 -1
  52. package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
  53. package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +50 -50
  54. package/dist/ui/resumen-evaluacion/ResumenEvaluacion.js +5 -5
  55. package/dist/ui/status-filter-bar/StatusFilterBar.js +8 -8
  56. package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
  57. package/dist/ui/stepper-v2/StepperV2.js +1 -1
  58. package/dist/utils/eco-provider/EcoContext.js +11 -8
  59. package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +12 -12
  60. package/dist/utils/modal-radicados/DocumentoVisorEstado.js +125 -0
  61. package/dist/utils/modal-radicados/ModalDocumento.js +155 -170
  62. package/dist/utils/modal-radicados/ModalRadicado.js +34 -34
  63. package/dist/utils/modal-radicados/VisorDocumento.js +61 -61
  64. package/dist/utils/notifications/EcoToaster.js +48 -0
  65. package/dist/utils/notifications/SileoNotifications.js +62 -55
  66. package/dist/utils/unp-historico/UnpHistorico.js +1 -1
  67. package/dist/utils/websocket-manager/websocket.js +22 -18
  68. package/dist/utils.js +29 -24
  69. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import { jsx as c, jsxs as S, Fragment as rt } from "react/jsx-runtime";
2
2
  import * as Qt from "react";
3
3
  import { useState as O, useRef as It, useEffect as We } from "react";
4
- import { q as wt, r as en, s as tn, t as nn, u as on, v as an } from "../../index-C4MBu_wk.js";
4
+ import { r as wt, s as en, t as tn, u as nn, v as on, w as an } from "../../index-B96iRUpt.js";
5
5
  import { Animacion as Mt } from "../../ui/animacion/Animacion.js";
6
6
  import { getNotificaciones as rn, getUnreadCount as sn, eliminarNotificacionesLeidas as cn, eliminarNotificacion as ln, marcarLeida as fn, marcarNoLeida as un } from "./services/notificacionesService.js";
7
7
  import "../../index-Cy8qF6oY.js";
8
8
  import "../../utils/websocket-manager/WebSocketContext.js";
9
- import { useWebSocket as dn } from "../../utils/websocket-manager/useWebSocket.js";
10
- import { i as mn, a3 as pn } from "../../index-h-TtOxhs.js";
11
- import '../../assets/Trazabilidad.css';import '../../assets/TarjetaInfo.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/SmartTextArea.css';import '../../assets/EcoFooter.css';import '../../assets/ResumenEvaluacion.css';import '../../assets/AlertaFormulario.css';import '../../assets/SeccionFormulario.css';import '../../assets/CardGestionLateral.css';import '../../assets/NavFormulariosLateral.css';import '../../assets/DatosBasicosCard.css';import '../../assets/StatusFilterBar.css';import '../../assets/PaginadorV2.css';import '../../assets/StatusSemaphore.css';import '../../assets/TableSkeleton.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/TarjetaLectura.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/StepperV2.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModalV2.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/Logo.css';import '../../assets/NotificacionUsuario.css';/* empty css */
9
+ import { useWebSocket as mn } from "../../utils/websocket-manager/useWebSocket.js";
10
+ import { m as dn, a6 as pn } from "../../index-BqaJxgOF.js";
11
+ import '../../assets/SileoNotifications.css';import '../../assets/Trazabilidad.css';import '../../assets/TarjetaInfo.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/DocumentoVisorEstado.css';import '../../assets/SmartTextArea.css';import '../../assets/EcoFooter.css';import '../../assets/ResumenEvaluacion.css';import '../../assets/AlertaFormulario.css';import '../../assets/SeccionFormulario.css';import '../../assets/CardGestionLateral.css';import '../../assets/NavFormulariosLateral.css';import '../../assets/DatosBasicosCard.css';import '../../assets/StatusFilterBar.css';import '../../assets/PaginadorV2.css';import '../../assets/StatusSemaphore.css';import '../../assets/TableSkeleton.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/TarjetaLectura.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/StepperV2.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModalV2.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/Logo.css';import '../../assets/NotificacionUsuario.css';/* empty css */
12
12
  /* empty css */
13
13
  import "../../ui/subtitulo/Subtitulo.js";
14
14
  /* empty css */
@@ -40,10 +40,12 @@ import { NotificacionBellV2 as hn } from "../../ui/notificacion-popover-v2/Notif
40
40
  /* empty css */
41
41
  /* empty css */
42
42
  /* empty css */
43
+ /* empty css */
43
44
  /* empty css */
44
45
  /* empty css */
45
46
  /* empty css */
46
- import "../../SileoNotifications-BESOBARG.js";
47
+ /* empty css */
48
+ import "../../index-C1R4rkuA.js";
47
49
  import "../../auth/contexts/AuthContex.js";
48
50
  /* empty css */
49
51
  import { c as gn } from "../../index-ZphT3dr_.js";
@@ -53,7 +55,7 @@ const Gt = /* @__PURE__ */ Qt.forwardRef(({
53
55
  bg: o = "primary",
54
56
  pill: f = !1,
55
57
  text: s,
56
- className: m,
58
+ className: d,
57
59
  as: R = "span",
58
60
  ...v
59
61
  }, K) => {
@@ -61,7 +63,7 @@ const Gt = /* @__PURE__ */ Qt.forwardRef(({
61
63
  return /* @__PURE__ */ c(R, {
62
64
  ref: K,
63
65
  ...v,
64
- className: gn(m, z, f && "rounded-pill", s && `text-${s}`, o && `bg-${o}`)
66
+ className: gn(d, z, f && "rounded-pill", s && `text-${s}`, o && `bg-${o}`)
65
67
  });
66
68
  });
67
69
  Gt.displayName = "Badge";
@@ -78,7 +80,7 @@ let {
78
80
  seal: F,
79
81
  create: $e
80
82
  } = Object, {
81
- apply: mt,
83
+ apply: dt,
82
84
  construct: pt
83
85
  } = typeof Reflect < "u" && Reflect;
84
86
  M || (M = function(o) {
@@ -87,23 +89,23 @@ M || (M = function(o) {
87
89
  F || (F = function(o) {
88
90
  return o;
89
91
  });
90
- mt || (mt = function(o, f) {
91
- for (var s = arguments.length, m = new Array(s > 2 ? s - 2 : 0), R = 2; R < s; R++)
92
- m[R - 2] = arguments[R];
93
- return o.apply(f, m);
92
+ dt || (dt = function(o, f) {
93
+ for (var s = arguments.length, d = new Array(s > 2 ? s - 2 : 0), R = 2; R < s; R++)
94
+ d[R - 2] = arguments[R];
95
+ return o.apply(f, d);
94
96
  });
95
97
  pt || (pt = function(o) {
96
- for (var f = arguments.length, s = new Array(f > 1 ? f - 1 : 0), m = 1; m < f; m++)
97
- s[m - 1] = arguments[m];
98
+ for (var f = arguments.length, s = new Array(f > 1 ? f - 1 : 0), d = 1; d < f; d++)
99
+ s[d - 1] = arguments[d];
98
100
  return new o(...s);
99
101
  });
100
102
  const je = x(Array.prototype.forEach), Nn = x(Array.prototype.lastIndexOf), vt = x(Array.prototype.pop), be = x(Array.prototype.push), Sn = x(Array.prototype.splice), Ve = x(String.prototype.toLowerCase), st = x(String.prototype.toString), ct = x(String.prototype.match), Le = x(String.prototype.replace), Rn = x(String.prototype.indexOf), yn = x(String.prototype.trim), k = x(Object.prototype.hasOwnProperty), w = x(RegExp.prototype.test), De = bn(TypeError);
101
103
  function x(l) {
102
104
  return function(o) {
103
105
  o instanceof RegExp && (o.lastIndex = 0);
104
- for (var f = arguments.length, s = new Array(f > 1 ? f - 1 : 0), m = 1; m < f; m++)
105
- s[m - 1] = arguments[m];
106
- return mt(l, o, s);
106
+ for (var f = arguments.length, s = new Array(f > 1 ? f - 1 : 0), d = 1; d < f; d++)
107
+ s[d - 1] = arguments[d];
108
+ return dt(l, o, s);
107
109
  };
108
110
  }
109
111
  function bn(l) {
@@ -113,17 +115,17 @@ function bn(l) {
113
115
  return pt(l, f);
114
116
  };
115
117
  }
116
- function d(l, o) {
118
+ function m(l, o) {
117
119
  let f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ve;
118
120
  xt && xt(l, null);
119
121
  let s = o.length;
120
122
  for (; s--; ) {
121
- let m = o[s];
122
- if (typeof m == "string") {
123
- const R = f(m);
124
- R !== m && (_n(o) || (o[s] = R), m = R);
123
+ let d = o[s];
124
+ if (typeof d == "string") {
125
+ const R = f(d);
126
+ R !== d && (_n(o) || (o[s] = R), d = R);
125
127
  }
126
- l[m] = !0;
128
+ l[d] = !0;
127
129
  }
128
130
  return l;
129
131
  }
@@ -154,7 +156,7 @@ function Ce(l, o) {
154
156
  }
155
157
  return f;
156
158
  }
157
- const Pt = M(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), lt = M(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ft = M(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Dn = M(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ut = M(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Cn = M(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), kt = M(["#text"]), Ut = M(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), dt = M(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ft = M(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ye = M(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), On = F(/\{\{[\w\W]*|[\w\W]*\}\}/gm), In = F(/<%[\w\W]*|[\w\W]*%>/gm), wn = F(/\$\{[\w\W]*/gm), Mn = F(/^data-[\-\w.\u00B7-\uFFFF]+$/), xn = F(/^aria-[\-\w]+$/), Wt = F(
159
+ const Pt = M(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), lt = M(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ft = M(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Dn = M(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ut = M(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Cn = M(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), kt = M(["#text"]), Ut = M(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), mt = M(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ft = M(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ye = M(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), On = F(/\{\{[\w\W]*|[\w\W]*\}\}/gm), In = F(/<%[\w\W]*|[\w\W]*%>/gm), wn = F(/\$\{[\w\W]*/gm), Mn = F(/^data-[\-\w.\u00B7-\uFFFF]+$/), xn = F(/^aria-[\-\w]+$/), Wt = F(
158
160
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
159
161
  // eslint-disable-line no-useless-escape
160
162
  ), vn = F(/^(?:\w+script|data):/i), Pn = F(
@@ -187,8 +189,8 @@ const Oe = {
187
189
  if (typeof o != "object" || typeof o.createPolicy != "function")
188
190
  return null;
189
191
  let s = null;
190
- const m = "data-tt-policy-suffix";
191
- f && f.hasAttribute(m) && (s = f.getAttribute(m));
192
+ const d = "data-tt-policy-suffix";
193
+ f && f.hasAttribute(d) && (s = f.getAttribute(d));
192
194
  const R = "dompurify" + (s ? "#" + s : "");
193
195
  try {
194
196
  return o.createPolicy(R, {
@@ -223,7 +225,7 @@ function Yt() {
223
225
  let {
224
226
  document: f
225
227
  } = l;
226
- const s = f, m = s.currentScript, {
228
+ const s = f, d = s.currentScript, {
227
229
  DocumentFragment: R,
228
230
  HTMLTemplateElement: v,
229
231
  Node: K,
@@ -233,14 +235,14 @@ function Yt() {
233
235
  HTMLFormElement: qe,
234
236
  DOMParser: Ie,
235
237
  trustedTypes: ue
236
- } = l, oe = z.prototype, Ke = Ce(oe, "cloneNode"), Ze = Ce(oe, "remove"), Je = Ce(oe, "nextSibling"), we = Ce(oe, "childNodes"), de = Ce(oe, "parentNode");
238
+ } = l, oe = z.prototype, Ke = Ce(oe, "cloneNode"), Ze = Ce(oe, "remove"), Je = Ce(oe, "nextSibling"), we = Ce(oe, "childNodes"), me = Ce(oe, "parentNode");
237
239
  if (typeof v == "function") {
238
240
  const r = f.createElement("template");
239
241
  r.content && r.content.ownerDocument && (f = r.content.ownerDocument);
240
242
  }
241
243
  let L, Z = "";
242
244
  const {
243
- implementation: me,
245
+ implementation: de,
244
246
  createNodeIterator: Qe,
245
247
  createDocumentFragment: Me,
246
248
  getElementsByTagName: xe
@@ -248,7 +250,7 @@ function Yt() {
248
250
  importNode: pe
249
251
  } = s;
250
252
  let y = zt();
251
- o.isSupported = typeof Bt == "function" && typeof de == "function" && me && me.createHTMLDocument !== void 0;
253
+ o.isSupported = typeof Bt == "function" && typeof me == "function" && de && de.createHTMLDocument !== void 0;
252
254
  const {
253
255
  MUSTACHE_EXPR: J,
254
256
  ERB_EXPR: $,
@@ -262,9 +264,9 @@ function Yt() {
262
264
  let {
263
265
  IS_ALLOWED_URI: Ne
264
266
  } = Ht, A = null;
265
- const Pe = d({}, [...Pt, ...lt, ...ft, ...ut, ...kt]);
267
+ const Pe = m({}, [...Pt, ...lt, ...ft, ...ut, ...kt]);
266
268
  let E = null;
267
- const ke = d({}, [...Ut, ...dt, ...Ft, ...Ye]);
269
+ const ke = m({}, [...Ut, ...mt, ...Ft, ...Ye]);
268
270
  let T = Object.seal($e(null, {
269
271
  tagNameCheck: {
270
272
  writable: !0,
@@ -302,15 +304,15 @@ function Yt() {
302
304
  let Se = !0, Q = !0, Re = !1, Ue = !0, U = !1, ee = !0, W = !1, he = !1, te = !1, H = !1, ce = !1, le = !1, ne = !0, Fe = !1;
303
305
  const t = "user-content-";
304
306
  let i = !0, u = !1, h = {}, p = null;
305
- const g = d({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
307
+ const g = m({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
306
308
  let ht = null;
307
- const gt = d({}, ["audio", "video", "img", "source", "image", "track"]);
309
+ const gt = m({}, ["audio", "video", "img", "source", "image", "track"]);
308
310
  let et = null;
309
- const Tt = d({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), He = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", V = "http://www.w3.org/1999/xhtml";
311
+ const Tt = m({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), He = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", V = "http://www.w3.org/1999/xhtml";
310
312
  let ge = V, tt = !1, nt = null;
311
- const $t = d({}, [He, ze, V], st);
312
- let Ge = d({}, ["mi", "mo", "mn", "ms", "mtext"]), Be = d({}, ["annotation-xml"]);
313
- const Vt = d({}, ["title", "style", "font", "a", "script"]);
313
+ const $t = m({}, [He, ze, V], st);
314
+ let Ge = m({}, ["mi", "mo", "mn", "ms", "mtext"]), Be = m({}, ["annotation-xml"]);
315
+ const Vt = m({}, ["title", "style", "font", "a", "script"]);
314
316
  let ye = null;
315
317
  const Xt = ["application/xhtml+xml", "text/html"], qt = "text/html";
316
318
  let b = null, Te = null;
@@ -320,18 +322,18 @@ function Yt() {
320
322
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
321
323
  if (!(Te && Te === e)) {
322
324
  if ((!e || typeof e != "object") && (e = {}), e = Y(e), ye = // eslint-disable-next-line unicorn/prefer-includes
323
- Xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? qt : e.PARSER_MEDIA_TYPE, b = ye === "application/xhtml+xml" ? st : Ve, A = k(e, "ALLOWED_TAGS") ? d({}, e.ALLOWED_TAGS, b) : Pe, E = k(e, "ALLOWED_ATTR") ? d({}, e.ALLOWED_ATTR, b) : ke, nt = k(e, "ALLOWED_NAMESPACES") ? d({}, e.ALLOWED_NAMESPACES, st) : $t, et = k(e, "ADD_URI_SAFE_ATTR") ? d(Y(Tt), e.ADD_URI_SAFE_ATTR, b) : Tt, ht = k(e, "ADD_DATA_URI_TAGS") ? d(Y(gt), e.ADD_DATA_URI_TAGS, b) : gt, p = k(e, "FORBID_CONTENTS") ? d({}, e.FORBID_CONTENTS, b) : g, re = k(e, "FORBID_TAGS") ? d({}, e.FORBID_TAGS, b) : Y({}), se = k(e, "FORBID_ATTR") ? d({}, e.FORBID_ATTR, b) : Y({}), h = k(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Se = e.ALLOW_ARIA_ATTR !== !1, Q = e.ALLOW_DATA_ATTR !== !1, Re = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ue = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, ee = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, ce = e.RETURN_DOM_FRAGMENT || !1, le = e.RETURN_TRUSTED_TYPE || !1, te = e.FORCE_BODY || !1, ne = e.SANITIZE_DOM !== !1, Fe = e.SANITIZE_NAMED_PROPS || !1, i = e.KEEP_CONTENT !== !1, u = e.IN_PLACE || !1, Ne = e.ALLOWED_URI_REGEXP || Wt, ge = e.NAMESPACE || V, Ge = e.MATHML_TEXT_INTEGRATION_POINTS || Ge, Be = e.HTML_INTEGRATION_POINTS || Be, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), U && (Q = !1), ce && (H = !0), h && (A = d({}, kt), E = $e(null), h.html === !0 && (d(A, Pt), d(E, Ut)), h.svg === !0 && (d(A, lt), d(E, dt), d(E, Ye)), h.svgFilters === !0 && (d(A, ft), d(E, dt), d(E, Ye)), h.mathMl === !0 && (d(A, ut), d(E, Ft), d(E, Ye))), k(e, "ADD_TAGS") || (B.tagCheck = null), k(e, "ADD_ATTR") || (B.attributeCheck = null), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : (A === Pe && (A = Y(A)), d(A, e.ADD_TAGS, b))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : (E === ke && (E = Y(E)), d(E, e.ADD_ATTR, b))), e.ADD_URI_SAFE_ATTR && d(et, e.ADD_URI_SAFE_ATTR, b), e.FORBID_CONTENTS && (p === g && (p = Y(p)), d(p, e.FORBID_CONTENTS, b)), e.ADD_FORBID_CONTENTS && (p === g && (p = Y(p)), d(p, e.ADD_FORBID_CONTENTS, b)), i && (A["#text"] = !0), W && d(A, ["html", "head", "body"]), A.table && (d(A, ["tbody"]), delete re.tbody), e.TRUSTED_TYPES_POLICY) {
325
+ Xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? qt : e.PARSER_MEDIA_TYPE, b = ye === "application/xhtml+xml" ? st : Ve, A = k(e, "ALLOWED_TAGS") ? m({}, e.ALLOWED_TAGS, b) : Pe, E = k(e, "ALLOWED_ATTR") ? m({}, e.ALLOWED_ATTR, b) : ke, nt = k(e, "ALLOWED_NAMESPACES") ? m({}, e.ALLOWED_NAMESPACES, st) : $t, et = k(e, "ADD_URI_SAFE_ATTR") ? m(Y(Tt), e.ADD_URI_SAFE_ATTR, b) : Tt, ht = k(e, "ADD_DATA_URI_TAGS") ? m(Y(gt), e.ADD_DATA_URI_TAGS, b) : gt, p = k(e, "FORBID_CONTENTS") ? m({}, e.FORBID_CONTENTS, b) : g, re = k(e, "FORBID_TAGS") ? m({}, e.FORBID_TAGS, b) : Y({}), se = k(e, "FORBID_ATTR") ? m({}, e.FORBID_ATTR, b) : Y({}), h = k(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Se = e.ALLOW_ARIA_ATTR !== !1, Q = e.ALLOW_DATA_ATTR !== !1, Re = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ue = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, ee = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, ce = e.RETURN_DOM_FRAGMENT || !1, le = e.RETURN_TRUSTED_TYPE || !1, te = e.FORCE_BODY || !1, ne = e.SANITIZE_DOM !== !1, Fe = e.SANITIZE_NAMED_PROPS || !1, i = e.KEEP_CONTENT !== !1, u = e.IN_PLACE || !1, Ne = e.ALLOWED_URI_REGEXP || Wt, ge = e.NAMESPACE || V, Ge = e.MATHML_TEXT_INTEGRATION_POINTS || Ge, Be = e.HTML_INTEGRATION_POINTS || Be, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), U && (Q = !1), ce && (H = !0), h && (A = m({}, kt), E = $e(null), h.html === !0 && (m(A, Pt), m(E, Ut)), h.svg === !0 && (m(A, lt), m(E, mt), m(E, Ye)), h.svgFilters === !0 && (m(A, ft), m(E, mt), m(E, Ye)), h.mathMl === !0 && (m(A, ut), m(E, Ft), m(E, Ye))), k(e, "ADD_TAGS") || (B.tagCheck = null), k(e, "ADD_ATTR") || (B.attributeCheck = null), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : (A === Pe && (A = Y(A)), m(A, e.ADD_TAGS, b))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : (E === ke && (E = Y(E)), m(E, e.ADD_ATTR, b))), e.ADD_URI_SAFE_ATTR && m(et, e.ADD_URI_SAFE_ATTR, b), e.FORBID_CONTENTS && (p === g && (p = Y(p)), m(p, e.FORBID_CONTENTS, b)), e.ADD_FORBID_CONTENTS && (p === g && (p = Y(p)), m(p, e.ADD_FORBID_CONTENTS, b)), i && (A["#text"] = !0), W && m(A, ["html", "head", "body"]), A.table && (m(A, ["tbody"]), delete re.tbody), e.TRUSTED_TYPES_POLICY) {
324
326
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
325
327
  throw De('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
326
328
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
327
329
  throw De('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
328
330
  L = e.TRUSTED_TYPES_POLICY, Z = L.createHTML("");
329
331
  } else
330
- L === void 0 && (L = Fn(ue, m)), L !== null && typeof Z == "string" && (Z = L.createHTML(""));
332
+ L === void 0 && (L = Fn(ue, d)), L !== null && typeof Z == "string" && (Z = L.createHTML(""));
331
333
  M && M(e), Te = e;
332
334
  }
333
- }, Et = d({}, [...lt, ...ft, ...Dn]), At = d({}, [...ut, ...Cn]), Zt = function(e) {
334
- let n = de(e);
335
+ }, Et = m({}, [...lt, ...ft, ...Dn]), At = m({}, [...ut, ...Cn]), Zt = function(e) {
336
+ let n = me(e);
335
337
  (!n || !n.tagName) && (n = {
336
338
  namespaceURI: ge,
337
339
  tagName: "template"
@@ -343,7 +345,7 @@ function Yt() {
343
345
  element: e
344
346
  });
345
347
  try {
346
- de(e).removeChild(e);
348
+ me(e).removeChild(e);
347
349
  } catch {
348
350
  Ze(e);
349
351
  }
@@ -386,7 +388,7 @@ function Yt() {
386
388
  } catch {
387
389
  }
388
390
  if (!n || !n.documentElement) {
389
- n = me.createDocument(ge, "template", null);
391
+ n = de.createDocument(ge, "template", null);
390
392
  try {
391
393
  n.documentElement.innerHTML = tt ? Z : _;
392
394
  } catch {
@@ -426,7 +428,7 @@ function Yt() {
426
428
  if (!re[a] && Lt(a) && (T.tagNameCheck instanceof RegExp && w(T.tagNameCheck, a) || T.tagNameCheck instanceof Function && T.tagNameCheck(a)))
427
429
  return !1;
428
430
  if (i && !p[a]) {
429
- const _ = de(e) || e.parentNode, I = we(e) || e.childNodes;
431
+ const _ = me(e) || e.parentNode, I = we(e) || e.childNodes;
430
432
  if (I && _) {
431
433
  const N = I.length;
432
434
  for (let P = N - 1; P >= 0; --P) {
@@ -615,16 +617,16 @@ function Yt() {
615
617
  }, o;
616
618
  }
617
619
  var Hn = Yt();
618
- const Pi = ({ variant: l = "normal" }) => {
619
- const [o, f] = O(!1), [s, m] = O([]), [R, v] = O([]), [K, z] = O([]), [ie, Xe] = O(1), [qe, Ie] = O(1), [ue, oe] = O(1), [Ke, Ze] = O(!0), [Je, we] = O(!0), [de, L] = O(!0), [Z, me] = O(!1), [Qe, Me] = O(!1), [xe, pe] = O(!1), [y, J] = O(0), [$, Ee] = O(null), [G, ae] = O(null), [D, Ae] = O("unread"), ve = It(null), Ne = It(null), A = () => {
620
+ const Ui = ({ variant: l = "normal" }) => {
621
+ const [o, f] = O(!1), [s, d] = O([]), [R, v] = O([]), [K, z] = O([]), [ie, Xe] = O(1), [qe, Ie] = O(1), [ue, oe] = O(1), [Ke, Ze] = O(!0), [Je, we] = O(!0), [me, L] = O(!0), [Z, de] = O(!1), [Qe, Me] = O(!1), [xe, pe] = O(!1), [y, J] = O(0), [$, Ee] = O(null), [G, ae] = O(null), [D, Ae] = O("unread"), ve = It(null), Ne = It(null), A = () => {
620
622
  var u;
621
623
  const t = localStorage.getItem("auth_state"), i = t ? JSON.parse(t) : null;
622
624
  return ((u = i == null ? void 0 : i.user) == null ? void 0 : u.id_busuario) || "";
623
625
  }, Pe = window.location.host.includes("localhost") ? "" : `wss://${window.location.host}/notificaciones`;
624
- dn(
626
+ mn(
625
627
  Pe,
626
628
  (t) => {
627
- console.log("Notificación recibida"), !(!t || !t.id_notificacionusuario || t.usuario_id !== A()) && (m(
629
+ console.log("Notificación recibida"), !(!t || !t.id_notificacionusuario || t.usuario_id !== A()) && (d(
628
630
  (i) => i.some((u) => u.id_notificacionusuario === t.id_notificacionusuario) ? i : [t, ...i]
629
631
  ), z(
630
632
  (i) => i.some((u) => u.id_notificacionusuario === t.id_notificacionusuario) ? i : [t, ...i]
@@ -647,7 +649,7 @@ const Pi = ({ variant: l = "normal" }) => {
647
649
  try {
648
650
  i === 1 && (Me(!0), pe(!1));
649
651
  const h = await rn(t === "read" ? !0 : t === "unread" ? !1 : void 0, i), p = h.results;
650
- t === "all" ? (m((g) => i === 1 ? p : [...g, ...p]), Ze(!!h.next), Xe(i)) : t === "read" ? (v((g) => i === 1 ? p : [...g, ...p]), we(!!h.next), Ie(i)) : (z((g) => i === 1 ? p : [...g, ...p]), L(!!h.next), oe(i));
652
+ t === "all" ? (d((g) => i === 1 ? p : [...g, ...p]), Ze(!!h.next), Xe(i)) : t === "read" ? (v((g) => i === 1 ? p : [...g, ...p]), we(!!h.next), Ie(i)) : (z((g) => i === 1 ? p : [...g, ...p]), L(!!h.next), oe(i));
651
653
  } catch {
652
654
  } finally {
653
655
  i === 1 && (Me(!1), pe(!0));
@@ -664,7 +666,7 @@ const Pi = ({ variant: l = "normal" }) => {
664
666
  case "Informativa":
665
667
  return /* @__PURE__ */ c(an, {});
666
668
  case "Novedad":
667
- return /* @__PURE__ */ c(mn, {});
669
+ return /* @__PURE__ */ c(dn, {});
668
670
  case "Noticia":
669
671
  return /* @__PURE__ */ c(on, {});
670
672
  default:
@@ -680,7 +682,7 @@ const Pi = ({ variant: l = "normal" }) => {
680
682
  const i = /* @__PURE__ */ new Date(), u = new Date(t), h = i.getTime() - u.getTime(), p = Math.floor(h / (1e3 * 60 * 60)), g = Math.floor(p / 24);
681
683
  return g > 3 ? u.toISOString().slice(0, 16).replace("T", " ") : g > 0 ? `hace ${g} día${g > 1 ? "s" : ""}` : p > 0 ? `hace ${p} hora${p > 1 ? "s" : ""}` : "hace menos de 1 hora";
682
684
  }, Ue = (t) => {
683
- D === "all" ? m(t) : D === "read" ? v(t) : z(t);
685
+ D === "all" ? d(t) : D === "read" ? v(t) : z(t);
684
686
  }, U = (t) => s.find((i) => i.id_notificacionusuario === t) || R.find((i) => i.id_notificacionusuario === t) || K.find((i) => i.id_notificacionusuario === t), ee = async (t) => {
685
687
  const i = U(t);
686
688
  if (!i) return;
@@ -688,7 +690,7 @@ const Pi = ({ variant: l = "normal" }) => {
688
690
  try {
689
691
  u ? await fn(t) : await un(t);
690
692
  const h = { ...i, leida: u };
691
- m((p) => p.map(
693
+ d((p) => p.map(
692
694
  (g) => g.id_notificacionusuario === t ? h : g
693
695
  )), v(
694
696
  (p) => u ? [h, ...p.filter((g) => g.id_notificacionusuario !== t)] : p.filter((g) => g.id_notificacionusuario !== t)
@@ -704,25 +706,25 @@ const Pi = ({ variant: l = "normal" }) => {
704
706
  const i = U(t);
705
707
  Ue(
706
708
  (u) => u.filter((h) => h.id_notificacionusuario !== t)
707
- ), m((u) => u.filter((h) => h.id_notificacionusuario !== t)), v((u) => u.filter((h) => h.id_notificacionusuario !== t)), z((u) => u.filter((h) => h.id_notificacionusuario !== t)), i && !i.leida && J((u) => u - 1);
709
+ ), d((u) => u.filter((h) => h.id_notificacionusuario !== t)), v((u) => u.filter((h) => h.id_notificacionusuario !== t)), z((u) => u.filter((h) => h.id_notificacionusuario !== t)), i && !i.leida && J((u) => u - 1);
708
710
  } catch (i) {
709
711
  console.error("Error eliminando notificación:", i);
710
712
  }
711
713
  }, he = async () => {
712
714
  try {
713
- await cn(), v([]), we(!1), Ie(1), m((t) => t.filter((i) => !i.leida)), D === "read" && Ee(null);
715
+ await cn(), v([]), we(!1), Ie(1), d((t) => t.filter((i) => !i.leida)), D === "read" && Ee(null);
714
716
  } catch (t) {
715
717
  console.error("Error eliminando notificaciones leídas:", t);
716
718
  }
717
- }, te = D === "all" ? s : D === "read" ? R : K, H = D === "all" ? Ke : D === "read" ? Je : de, ce = D === "all" ? ie : D === "read" ? qe : ue;
719
+ }, te = D === "all" ? s : D === "read" ? R : K, H = D === "all" ? Ke : D === "read" ? Je : me, ce = D === "all" ? ie : D === "read" ? qe : ue;
718
720
  We(() => {
719
721
  if (!xe || !H) return;
720
722
  const t = new IntersectionObserver(
721
723
  (u) => {
722
724
  if (!u[0].isIntersecting || Z || !H || te.length === 0) return;
723
- me(!0);
725
+ de(!0);
724
726
  const h = ce + 1;
725
- E(D, h).finally(() => me(!1));
727
+ E(D, h).finally(() => de(!1));
726
728
  },
727
729
  {
728
730
  root: ve.current,
@@ -845,5 +847,5 @@ const Pi = ({ variant: l = "normal" }) => {
845
847
  ] });
846
848
  };
847
849
  export {
848
- Pi as NotificacionUsuario
850
+ Ui as NotificacionUsuario
849
851
  };
@@ -7,7 +7,7 @@ import '../../assets/Bootstrap.css';/* empty css */
7
7
  import { u as D } from "../../useIsomorphicEffect-DH-agvLb.js";
8
8
  import { T as W, b as Y, g as z, a as G } from "../../TabPane-D71zhQGl.js";
9
9
  import { c as k } from "../../index-ZphT3dr_.js";
10
- import { N as J, u as Q, a as X, d as Z, b as ee, q as te, c as L, e as ne } from "../../AppList-BshxZhoN.js";
10
+ import { N as J, u as Q, a as X, d as Z, b as ee, q as te, c as L, e as ne } from "../../AppList-DORGpC4I.js";
11
11
  import { u as ae } from "../../NoopTransition-D8AxBGEr.js";
12
12
  import { S as I, T as re, m as oe } from "../../TabContext-Du6X9q-A.js";
13
13
  import { u as B } from "../../ThemeProvider-Cv61y4Uy.js";