@ujet/websdk-headless 3.37.4 → 3.38.4

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.mjs CHANGED
@@ -17,27 +17,37 @@ function VI(e, t) {
17
17
  }
18
18
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
19
19
  }
20
- var lu = /* @__PURE__ */ ((e) => (e.WAITING = "waiting", e.READY = "ready", e.IN_PROGRESS = "in_progress", e.FINISHED = "finished", e))(lu || {});
21
- const Ite = "prod", pT = "3.37.4", Xg = "https://main.api.ujet.co", Kr = {
20
+ class KI {
21
+ constructor() {
22
+ ht(this, "_hostPath", "");
23
+ }
24
+ setPath(t) {
25
+ this._hostPath = t;
26
+ }
27
+ getPath() {
28
+ return this._hostPath;
29
+ }
30
+ }
31
+ const pT = new KI(), Ite = "prod", hT = "3.38.4", Xg = "https://main.api.ujet.co", Kr = {
22
32
  companyId: "",
23
33
  tenant: "",
24
34
  trackerId: "",
25
35
  deviceId: "",
26
36
  application: "websdk",
27
- version: pT
37
+ version: hT
28
38
  };
29
39
  /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
30
40
  const {
31
- entries: hT,
41
+ entries: vT,
32
42
  setPrototypeOf: Qg,
33
- isFrozen: KI,
34
- getPrototypeOf: JI,
35
- getOwnPropertyDescriptor: YI
43
+ isFrozen: JI,
44
+ getPrototypeOf: YI,
45
+ getOwnPropertyDescriptor: XI
36
46
  } = Object;
37
47
  let {
38
48
  freeze: tn,
39
49
  seal: Fn,
40
- create: vT
50
+ create: mT
41
51
  } = Object, {
42
52
  apply: hh,
43
53
  construct: vh
@@ -54,7 +64,7 @@ hh || (hh = function(t, r, n) {
54
64
  vh || (vh = function(t, r) {
55
65
  return new t(...r);
56
66
  });
57
- const nc = rn(Array.prototype.forEach), XI = rn(Array.prototype.lastIndexOf), Zg = rn(Array.prototype.pop), ko = rn(Array.prototype.push), QI = rn(Array.prototype.splice), pl = rn(String.prototype.toLowerCase), nd = rn(String.prototype.toString), ey = rn(String.prototype.match), Ro = rn(String.prototype.replace), ZI = rn(String.prototype.indexOf), eO = rn(String.prototype.trim), Xn = rn(Object.prototype.hasOwnProperty), Xr = rn(RegExp.prototype.test), $o = tO(TypeError);
67
+ const nc = rn(Array.prototype.forEach), QI = rn(Array.prototype.lastIndexOf), Zg = rn(Array.prototype.pop), ko = rn(Array.prototype.push), ZI = rn(Array.prototype.splice), pl = rn(String.prototype.toLowerCase), nd = rn(String.prototype.toString), ey = rn(String.prototype.match), Ro = rn(String.prototype.replace), eO = rn(String.prototype.indexOf), tO = rn(String.prototype.trim), Xn = rn(Object.prototype.hasOwnProperty), Xr = rn(RegExp.prototype.test), $o = rO(TypeError);
58
68
  function rn(e) {
59
69
  return function(t) {
60
70
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
@@ -62,7 +72,7 @@ function rn(e) {
62
72
  return hh(e, t, n);
63
73
  };
64
74
  }
65
- function tO(e) {
75
+ function rO(e) {
66
76
  return function() {
67
77
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
68
78
  r[n] = arguments[n];
@@ -77,58 +87,58 @@ function xt(e, t) {
77
87
  let i = t[n];
78
88
  if (typeof i == "string") {
79
89
  const a = r(i);
80
- a !== i && (KI(t) || (t[n] = a), i = a);
90
+ a !== i && (JI(t) || (t[n] = a), i = a);
81
91
  }
82
92
  e[i] = !0;
83
93
  }
84
94
  return e;
85
95
  }
86
- function rO(e) {
96
+ function nO(e) {
87
97
  for (let t = 0; t < e.length; t++)
88
98
  Xn(e, t) || (e[t] = null);
89
99
  return e;
90
100
  }
91
101
  function Xa(e) {
92
- const t = vT(null);
93
- for (const [r, n] of hT(e))
94
- Xn(e, r) && (Array.isArray(n) ? t[r] = rO(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = Xa(n) : t[r] = n);
102
+ const t = mT(null);
103
+ for (const [r, n] of vT(e))
104
+ Xn(e, r) && (Array.isArray(n) ? t[r] = nO(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = Xa(n) : t[r] = n);
95
105
  return t;
96
106
  }
97
107
  function Io(e, t) {
98
108
  for (; e !== null; ) {
99
- const n = YI(e, t);
109
+ const n = XI(e, t);
100
110
  if (n) {
101
111
  if (n.get)
102
112
  return rn(n.get);
103
113
  if (typeof n.value == "function")
104
114
  return rn(n.value);
105
115
  }
106
- e = JI(e);
116
+ e = YI(e);
107
117
  }
108
118
  function r() {
109
119
  return null;
110
120
  }
111
121
  return r;
112
122
  }
113
- const ty = tn(["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", "section", "select", "shadow", "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"]), id = tn(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ad = tn(["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"]), nO = tn(["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"]), sd = tn(["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"]), iO = tn(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ry = tn(["#text"]), ny = tn(["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", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), od = tn(["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", "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"]), iy = tn(["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"]), ic = tn(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), aO = Fn(/\{\{[\w\W]*|[\w\W]*\}\}/gm), sO = Fn(/<%[\w\W]*|[\w\W]*%>/gm), oO = Fn(/\$\{[\w\W]*/gm), uO = Fn(/^data-[\-\w.\u00B7-\uFFFF]+$/), cO = Fn(/^aria-[\-\w]+$/), mT = Fn(
123
+ const ty = tn(["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", "section", "select", "shadow", "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"]), id = tn(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ad = tn(["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"]), iO = tn(["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"]), sd = tn(["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"]), aO = tn(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ry = tn(["#text"]), ny = tn(["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", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), od = tn(["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", "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"]), iy = tn(["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"]), ic = tn(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sO = Fn(/\{\{[\w\W]*|[\w\W]*\}\}/gm), oO = Fn(/<%[\w\W]*|[\w\W]*%>/gm), uO = Fn(/\$\{[\w\W]*/gm), cO = Fn(/^data-[\-\w.\u00B7-\uFFFF]+$/), lO = Fn(/^aria-[\-\w]+$/), gT = Fn(
114
124
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
115
125
  // eslint-disable-line no-useless-escape
116
- ), lO = Fn(/^(?:\w+script|data):/i), fO = Fn(
126
+ ), fO = Fn(/^(?:\w+script|data):/i), dO = Fn(
117
127
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
118
128
  // eslint-disable-line no-control-regex
119
- ), gT = Fn(/^html$/i), dO = Fn(/^[a-z][.\w]*(-[.\w]+)+$/i);
129
+ ), yT = Fn(/^html$/i), pO = Fn(/^[a-z][.\w]*(-[.\w]+)+$/i);
120
130
  var ay = /* @__PURE__ */ Object.freeze({
121
131
  __proto__: null,
122
- ARIA_ATTR: cO,
123
- ATTR_WHITESPACE: fO,
124
- CUSTOM_ELEMENT: dO,
125
- DATA_ATTR: uO,
126
- DOCTYPE_NAME: gT,
127
- ERB_EXPR: sO,
128
- IS_ALLOWED_URI: mT,
129
- IS_SCRIPT_OR_DATA: lO,
130
- MUSTACHE_EXPR: aO,
131
- TMPLIT_EXPR: oO
132
+ ARIA_ATTR: lO,
133
+ ATTR_WHITESPACE: dO,
134
+ CUSTOM_ELEMENT: pO,
135
+ DATA_ATTR: cO,
136
+ DOCTYPE_NAME: yT,
137
+ ERB_EXPR: oO,
138
+ IS_ALLOWED_URI: gT,
139
+ IS_SCRIPT_OR_DATA: fO,
140
+ MUSTACHE_EXPR: sO,
141
+ TMPLIT_EXPR: uO
132
142
  });
133
143
  const Oo = {
134
144
  element: 1,
@@ -137,9 +147,9 @@ const Oo = {
137
147
  progressingInstruction: 7,
138
148
  comment: 8,
139
149
  document: 9
140
- }, pO = function() {
150
+ }, hO = function() {
141
151
  return typeof window > "u" ? null : window;
142
- }, hO = function(t, r) {
152
+ }, vO = function(t, r) {
143
153
  if (typeof t != "object" || typeof t.createPolicy != "function")
144
154
  return null;
145
155
  let n = null;
@@ -171,9 +181,9 @@ const Oo = {
171
181
  uponSanitizeShadowNode: []
172
182
  };
173
183
  };
174
- function yT() {
175
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : pO();
176
- const t = (it) => yT(it);
184
+ function bT() {
185
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : hO();
186
+ const t = (it) => bT(it);
177
187
  if (t.version = "3.2.4", t.removed = [], !e || !e.document || e.document.nodeType !== Oo.document || !e.Element)
178
188
  return t.isSupported = !1, t;
179
189
  let {
@@ -204,7 +214,7 @@ function yT() {
204
214
  importNode: ue
205
215
  } = n;
206
216
  let ee = sy();
207
- t.isSupported = typeof hT == "function" && typeof N == "function" && J && J.createHTMLDocument !== void 0;
217
+ t.isSupported = typeof vT == "function" && typeof N == "function" && J && J.createHTMLDocument !== void 0;
208
218
  const {
209
219
  MUSTACHE_EXPR: ge,
210
220
  ERB_EXPR: L,
@@ -221,7 +231,7 @@ function yT() {
221
231
  const Ie = xt({}, [...ty, ...id, ...ad, ...sd, ...ry]);
222
232
  let qe = null;
223
233
  const Ne = xt({}, [...ny, ...od, ...iy, ...ic]);
224
- let _e = Object.seal(vT(null, {
234
+ let _e = Object.seal(mT(null, {
225
235
  tagNameCheck: {
226
236
  writable: !0,
227
237
  configurable: !1,
@@ -261,17 +271,17 @@ function yT() {
261
271
  let Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
262
272
  if (!(K && K === Z)) {
263
273
  if ((!Z || typeof Z != "object") && (Z = {}), Z = Xa(Z), be = // eslint-disable-next-line unicorn/prefer-includes
264
- $e.indexOf(Z.PARSER_MEDIA_TYPE) === -1 ? re : Z.PARSER_MEDIA_TYPE, ae = be === "application/xhtml+xml" ? nd : pl, P = Xn(Z, "ALLOWED_TAGS") ? xt({}, Z.ALLOWED_TAGS, ae) : Ie, qe = Xn(Z, "ALLOWED_ATTR") ? xt({}, Z.ALLOWED_ATTR, ae) : Ne, ye = Xn(Z, "ALLOWED_NAMESPACES") ? xt({}, Z.ALLOWED_NAMESPACES, nd) : we, Pt = Xn(Z, "ADD_URI_SAFE_ATTR") ? xt(Xa(cr), Z.ADD_URI_SAFE_ATTR, ae) : cr, ct = Xn(Z, "ADD_DATA_URI_TAGS") ? xt(Xa(Ft), Z.ADD_DATA_URI_TAGS, ae) : Ft, It = Xn(Z, "FORBID_CONTENTS") ? xt({}, Z.FORBID_CONTENTS, ae) : bt, Q = Xn(Z, "FORBID_TAGS") ? xt({}, Z.FORBID_TAGS, ae) : {}, kt = Xn(Z, "FORBID_ATTR") ? xt({}, Z.FORBID_ATTR, ae) : {}, Et = Xn(Z, "USE_PROFILES") ? Z.USE_PROFILES : !1, Ce = Z.ALLOW_ARIA_ATTR !== !1, de = Z.ALLOW_DATA_ATTR !== !1, Rt = Z.ALLOW_UNKNOWN_PROTOCOLS || !1, Ue = Z.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Dt = Z.SAFE_FOR_TEMPLATES || !1, mt = Z.SAFE_FOR_XML !== !1, ke = Z.WHOLE_DOCUMENT || !1, Oe = Z.RETURN_DOM || !1, Bt = Z.RETURN_DOM_FRAGMENT || !1, vt = Z.RETURN_TRUSTED_TYPE || !1, St = Z.FORCE_BODY || !1, qt = Z.SANITIZE_DOM !== !1, sr = Z.SANITIZE_NAMED_PROPS || !1, Tr = Z.KEEP_CONTENT !== !1, mr = Z.IN_PLACE || !1, he = Z.ALLOWED_URI_REGEXP || mT, zt = Z.NAMESPACE || gr, se = Z.MATHML_TEXT_INTEGRATION_POINTS || se, me = Z.HTML_INTEGRATION_POINTS || me, _e = Z.CUSTOM_ELEMENT_HANDLING || {}, Z.CUSTOM_ELEMENT_HANDLING && Y(Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (_e.tagNameCheck = Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Z.CUSTOM_ELEMENT_HANDLING && Y(Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (_e.attributeNameCheck = Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Z.CUSTOM_ELEMENT_HANDLING && typeof Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (_e.allowCustomizedBuiltInElements = Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Dt && (de = !1), Bt && (Oe = !0), Et && (P = xt({}, ry), qe = [], Et.html === !0 && (xt(P, ty), xt(qe, ny)), Et.svg === !0 && (xt(P, id), xt(qe, od), xt(qe, ic)), Et.svgFilters === !0 && (xt(P, ad), xt(qe, od), xt(qe, ic)), Et.mathMl === !0 && (xt(P, sd), xt(qe, iy), xt(qe, ic))), Z.ADD_TAGS && (P === Ie && (P = Xa(P)), xt(P, Z.ADD_TAGS, ae)), Z.ADD_ATTR && (qe === Ne && (qe = Xa(qe)), xt(qe, Z.ADD_ATTR, ae)), Z.ADD_URI_SAFE_ATTR && xt(Pt, Z.ADD_URI_SAFE_ATTR, ae), Z.FORBID_CONTENTS && (It === bt && (It = Xa(It)), xt(It, Z.FORBID_CONTENTS, ae)), Tr && (P["#text"] = !0), ke && xt(P, ["html", "head", "body"]), P.table && (xt(P, ["tbody"]), delete Q.tbody), Z.TRUSTED_TYPES_POLICY) {
274
+ $e.indexOf(Z.PARSER_MEDIA_TYPE) === -1 ? re : Z.PARSER_MEDIA_TYPE, ae = be === "application/xhtml+xml" ? nd : pl, P = Xn(Z, "ALLOWED_TAGS") ? xt({}, Z.ALLOWED_TAGS, ae) : Ie, qe = Xn(Z, "ALLOWED_ATTR") ? xt({}, Z.ALLOWED_ATTR, ae) : Ne, ye = Xn(Z, "ALLOWED_NAMESPACES") ? xt({}, Z.ALLOWED_NAMESPACES, nd) : we, Pt = Xn(Z, "ADD_URI_SAFE_ATTR") ? xt(Xa(cr), Z.ADD_URI_SAFE_ATTR, ae) : cr, ct = Xn(Z, "ADD_DATA_URI_TAGS") ? xt(Xa(Ft), Z.ADD_DATA_URI_TAGS, ae) : Ft, It = Xn(Z, "FORBID_CONTENTS") ? xt({}, Z.FORBID_CONTENTS, ae) : bt, Q = Xn(Z, "FORBID_TAGS") ? xt({}, Z.FORBID_TAGS, ae) : {}, kt = Xn(Z, "FORBID_ATTR") ? xt({}, Z.FORBID_ATTR, ae) : {}, Et = Xn(Z, "USE_PROFILES") ? Z.USE_PROFILES : !1, Ce = Z.ALLOW_ARIA_ATTR !== !1, de = Z.ALLOW_DATA_ATTR !== !1, Rt = Z.ALLOW_UNKNOWN_PROTOCOLS || !1, Ue = Z.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Dt = Z.SAFE_FOR_TEMPLATES || !1, mt = Z.SAFE_FOR_XML !== !1, ke = Z.WHOLE_DOCUMENT || !1, Oe = Z.RETURN_DOM || !1, Bt = Z.RETURN_DOM_FRAGMENT || !1, vt = Z.RETURN_TRUSTED_TYPE || !1, St = Z.FORCE_BODY || !1, qt = Z.SANITIZE_DOM !== !1, sr = Z.SANITIZE_NAMED_PROPS || !1, Tr = Z.KEEP_CONTENT !== !1, mr = Z.IN_PLACE || !1, he = Z.ALLOWED_URI_REGEXP || gT, zt = Z.NAMESPACE || gr, se = Z.MATHML_TEXT_INTEGRATION_POINTS || se, me = Z.HTML_INTEGRATION_POINTS || me, _e = Z.CUSTOM_ELEMENT_HANDLING || {}, Z.CUSTOM_ELEMENT_HANDLING && Y(Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (_e.tagNameCheck = Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Z.CUSTOM_ELEMENT_HANDLING && Y(Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (_e.attributeNameCheck = Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Z.CUSTOM_ELEMENT_HANDLING && typeof Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (_e.allowCustomizedBuiltInElements = Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Dt && (de = !1), Bt && (Oe = !0), Et && (P = xt({}, ry), qe = [], Et.html === !0 && (xt(P, ty), xt(qe, ny)), Et.svg === !0 && (xt(P, id), xt(qe, od), xt(qe, ic)), Et.svgFilters === !0 && (xt(P, ad), xt(qe, od), xt(qe, ic)), Et.mathMl === !0 && (xt(P, sd), xt(qe, iy), xt(qe, ic))), Z.ADD_TAGS && (P === Ie && (P = Xa(P)), xt(P, Z.ADD_TAGS, ae)), Z.ADD_ATTR && (qe === Ne && (qe = Xa(qe)), xt(qe, Z.ADD_ATTR, ae)), Z.ADD_URI_SAFE_ATTR && xt(Pt, Z.ADD_URI_SAFE_ATTR, ae), Z.FORBID_CONTENTS && (It === bt && (It = Xa(It)), xt(It, Z.FORBID_CONTENTS, ae)), Tr && (P["#text"] = !0), ke && xt(P, ["html", "head", "body"]), P.table && (xt(P, ["tbody"]), delete Q.tbody), Z.TRUSTED_TYPES_POLICY) {
265
275
  if (typeof Z.TRUSTED_TYPES_POLICY.createHTML != "function")
266
276
  throw $o('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
267
277
  if (typeof Z.TRUSTED_TYPES_POLICY.createScriptURL != "function")
268
278
  throw $o('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
269
279
  j = Z.TRUSTED_TYPES_POLICY, X = j.createHTML("");
270
280
  } else
271
- j === void 0 && (j = hO(m, i)), j !== null && typeof X == "string" && (X = j.createHTML(""));
281
+ j === void 0 && (j = vO(m, i)), j !== null && typeof X == "string" && (X = j.createHTML(""));
272
282
  tn && tn(Z), K = Z;
273
283
  }
274
- }, Re = xt({}, [...id, ...ad, ...nO]), Je = xt({}, [...sd, ...iO]), Ge = function(Z) {
284
+ }, Re = xt({}, [...id, ...ad, ...iO]), Je = xt({}, [...sd, ...aO]), Ge = function(Z) {
275
285
  let xe = N(Z);
276
286
  (!xe || !xe.tagName) && (xe = {
277
287
  namespaceURI: zt,
@@ -399,7 +409,7 @@ function yT() {
399
409
  ) return !1;
400
410
  } else if (!Pt[xe]) {
401
411
  if (!Xr(he, Ro(Ye, Se, ""))) {
402
- if (!((xe === "src" || xe === "xlink:href" || xe === "href") && Z !== "script" && ZI(Ye, "data:") === 0 && ct[Z])) {
412
+ if (!((xe === "src" || xe === "xlink:href" || xe === "href") && Z !== "script" && eO(Ye, "data:") === 0 && ct[Z])) {
403
413
  if (!(Rt && !Xr(Ke, Ro(Ye, Se, "")))) {
404
414
  if (Ye)
405
415
  return !1;
@@ -412,7 +422,7 @@ function yT() {
412
422
  return !0;
413
423
  }, dt = function(Z) {
414
424
  return Z !== "annotation-xml" && ey(Z, ce);
415
- }, zr = function(Z) {
425
+ }, Wr = function(Z) {
416
426
  st(ee.beforeSanitizeAttributes, Z, null);
417
427
  const {
418
428
  attributes: xe
@@ -433,7 +443,7 @@ function yT() {
433
443
  namespaceURI: ir,
434
444
  value: Pr
435
445
  } = nr, Mr = ae(Ot);
436
- let dr = Ot === "value" ? Pr : eO(Pr);
446
+ let dr = Ot === "value" ? Pr : tO(Pr);
437
447
  if (Ye.attrName = Mr, Ye.attrValue = dr, Ye.keepAttr = !0, Ye.forceKeepAttr = void 0, st(ee.uponSanitizeAttribute, Z, Ye), dr = Ye.attrValue, sr && (Mr === "id" || Mr === "name") && (et(Ot, Z), dr = ze + dr), mt && Xr(/((--!?|])>)|<\/(style|title)/i, dr)) {
438
448
  et(Ot, Z);
439
449
  continue;
@@ -444,8 +454,8 @@ function yT() {
444
454
  et(Ot, Z);
445
455
  continue;
446
456
  }
447
- Dt && nc([ge, L, pe], (Wr) => {
448
- dr = Ro(dr, Wr, " ");
457
+ Dt && nc([ge, L, pe], (Gr) => {
458
+ dr = Ro(dr, Gr, " ");
449
459
  });
450
460
  const $n = ae(Z.nodeName);
451
461
  if (fr($n, Mr, dr)) {
@@ -471,7 +481,7 @@ function yT() {
471
481
  let xe = null;
472
482
  const Ye = Qe(Z);
473
483
  for (st(ee.beforeSanitizeShadowDOM, Z, null); xe = Ye.nextNode(); )
474
- st(ee.uponSanitizeShadowNode, xe, null), yr(xe), zr(xe), xe.content instanceof a && it(xe.content);
484
+ st(ee.uponSanitizeShadowNode, xe, null), yr(xe), Wr(xe), xe.content instanceof a && it(xe.content);
475
485
  st(ee.afterSanitizeShadowDOM, Z, null);
476
486
  };
477
487
  return t.sanitize = function(it) {
@@ -502,7 +512,7 @@ function yT() {
502
512
  xe && St && He(xe.firstChild);
503
513
  const Ot = Qe(mr ? it : xe);
504
514
  for (; Mt = Ot.nextNode(); )
505
- yr(Mt), zr(Mt), Mt.content instanceof a && cn(Mt.content);
515
+ yr(Mt), Wr(Mt), Mt.content instanceof a && cn(Mt.content);
506
516
  if (mr)
507
517
  return it;
508
518
  if (Oe) {
@@ -514,7 +524,7 @@ function yT() {
514
524
  return (qe.shadowroot || qe.shadowrootmode) && (nr = ue.call(n, nr, !0)), nr;
515
525
  }
516
526
  let ir = ke ? xe.outerHTML : xe.innerHTML;
517
- return ke && P["!doctype"] && xe.ownerDocument && xe.ownerDocument.doctype && xe.ownerDocument.doctype.name && Xr(gT, xe.ownerDocument.doctype.name) && (ir = "<!DOCTYPE " + xe.ownerDocument.doctype.name + `>
527
+ return ke && P["!doctype"] && xe.ownerDocument && xe.ownerDocument.doctype && xe.ownerDocument.doctype.name && Xr(yT, xe.ownerDocument.doctype.name) && (ir = "<!DOCTYPE " + xe.ownerDocument.doctype.name + `>
518
528
  ` + ir), Dt && nc([ge, L, pe], (Pr) => {
519
529
  ir = Ro(ir, Pr, " ");
520
530
  }), j && vt ? j.createHTML(ir) : ir;
@@ -531,8 +541,8 @@ function yT() {
531
541
  typeof Z == "function" && ko(ee[it], Z);
532
542
  }, t.removeHook = function(it, Z) {
533
543
  if (Z !== void 0) {
534
- const xe = XI(ee[it], Z);
535
- return xe === -1 ? void 0 : QI(ee[it], xe, 1)[0];
544
+ const xe = QI(ee[it], Z);
545
+ return xe === -1 ? void 0 : ZI(ee[it], xe, 1)[0];
536
546
  }
537
547
  return Zg(ee[it]);
538
548
  }, t.removeHooks = function(it) {
@@ -541,8 +551,8 @@ function yT() {
541
551
  ee = sy();
542
552
  }, t;
543
553
  }
544
- var vO = yT();
545
- const mO = {
554
+ var mO = bT();
555
+ const gO = {
546
556
  /**
547
557
  * This options specifies which HTML tags are allowed. we're not allowing image anymore
548
558
  */
@@ -614,8 +624,8 @@ const mO = {
614
624
  "value"
615
625
  ],
616
626
  IN_PLACE: !0
617
- }, gO = "javascript:";
618
- function yO(e) {
627
+ }, yO = "javascript:";
628
+ function bO(e) {
619
629
  return (e == null ? void 0 : e.constructor) === Object;
620
630
  }
621
631
  async function oy(e, t = 3) {
@@ -625,29 +635,29 @@ async function oy(e, t = 3) {
625
635
  try {
626
636
  return await e();
627
637
  } catch (i) {
628
- n = i, console.error(i), await bT(1e3 * Math.pow(2, r));
638
+ n = i, console.error(i), await _T(1e3 * Math.pow(2, r));
629
639
  }
630
640
  }
631
641
  throw n;
632
642
  }
633
- function bT(e) {
643
+ function _T(e) {
634
644
  return new Promise((t) => {
635
645
  setTimeout(() => {
636
646
  t(0);
637
647
  }, e);
638
648
  });
639
649
  }
640
- function bO() {
650
+ function _O() {
641
651
  return Math.random().toString(36).slice(2);
642
652
  }
643
- const _O = new TextDecoder(), wO = (e) => {
653
+ const wO = new TextDecoder(), SO = (e) => {
644
654
  const t = atob(e), r = new Uint8Array(t.length);
645
655
  for (let n = 0; n < t.length; n++)
646
656
  r[n] = t.charCodeAt(n);
647
- return _O.decode(r);
648
- }, SO = (e) => e.length === 0, TO = (...e) => e.every(SO), _T = (e) => {
649
- const t = vO.sanitize(e, mO);
650
- return t.includes(gO) ? (console.warn("Suspicious content detected and removed."), "") : t;
657
+ return wO.decode(r);
658
+ }, TO = (e) => e.length === 0, CO = (...e) => e.every(TO), wT = (e) => {
659
+ const t = mO.sanitize(e, gO);
660
+ return t.includes(yO) ? (console.warn("Suspicious content detected and removed."), "") : t;
651
661
  }, uy = [];
652
662
  class cs {
653
663
  constructor(t) {
@@ -677,10 +687,10 @@ class cs {
677
687
  }
678
688
  const Ote = (e, t, ...r) => {
679
689
  console[t](`[${t}][${e}]`, ...r);
680
- }, CO = (e) => {
690
+ }, EO = (e) => {
681
691
  let t = [], r;
682
692
  return (i, a, ...s) => {
683
- a === "debug" || i === "communicator" || (t.push(EO(i, a, ...s)), clearTimeout(r), r = window.setTimeout(() => {
693
+ a === "debug" || i === "communicator" || (t.push(kO(i, a, ...s)), clearTimeout(r), r = window.setTimeout(() => {
684
694
  if (t.length) {
685
695
  const o = {
686
696
  num_of_logs: t.length,
@@ -692,7 +702,7 @@ const Ote = (e, t, ...r) => {
692
702
  }, 2e3));
693
703
  };
694
704
  };
695
- function EO(e, t, ...r) {
705
+ function kO(e, t, ...r) {
696
706
  let n = r.pop();
697
707
  typeof n == "string" && (r.push(n), n = {});
698
708
  const i = r.join(" "), a = {
@@ -705,12 +715,12 @@ function EO(e, t, ...r) {
705
715
  tenant: Kr.tenant,
706
716
  company_id: Kr.companyId,
707
717
  location_url: location.href,
708
- data: $O(n),
718
+ data: IO(n),
709
719
  message: Qv(i)
710
720
  };
711
721
  return Kr.trackerId && (a.tracker_id = Kr.trackerId), a;
712
722
  }
713
- const kO = ["user", "phone", "phone_number", "phoneNumber", "email"], RO = [
723
+ const RO = ["user", "phone", "phone_number", "phoneNumber", "email"], $O = [
714
724
  // http://www.richardsramblings.com/regex/credit-card-numbers/
715
725
  /(?:3[47]\d|(?:4\d|5[1-5]|65)\d{2}|6011)\d{12}/g,
716
726
  // social security numbers (US)
@@ -719,13 +729,13 @@ const kO = ["user", "phone", "phone_number", "phoneNumber", "email"], RO = [
719
729
  /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/g
720
730
  ];
721
731
  function Qv(e) {
722
- return typeof e == "string" ? RO.forEach((t) => {
732
+ return typeof e == "string" ? $O.forEach((t) => {
723
733
  e = e.replace(t, "__MASKED__");
724
- }) : e && yO(e) && (e = { ...e }, Object.keys(e).forEach((t) => {
725
- kO.indexOf(t) !== -1 ? e[t] = "__MASKED__" : Qv(e[t]);
734
+ }) : e && bO(e) && (e = { ...e }, Object.keys(e).forEach((t) => {
735
+ RO.indexOf(t) !== -1 ? e[t] = "__MASKED__" : Qv(e[t]);
726
736
  })), e;
727
737
  }
728
- function $O(e) {
738
+ function IO(e) {
729
739
  if (e.error) {
730
740
  const t = e.error;
731
741
  return { error: {
@@ -738,7 +748,7 @@ function $O(e) {
738
748
  }
739
749
  const ud = new cs("communicator");
740
750
  let cy = !1;
741
- class IO {
751
+ class OO {
742
752
  constructor(t, r) {
743
753
  ht(this, "events");
744
754
  ht(this, "options");
@@ -750,7 +760,7 @@ class IO {
750
760
  ht(this, "promises", {});
751
761
  ht(this, "user");
752
762
  ht(this, "iframe");
753
- this.authenticate = t.authenticate, this.events = r, this.options = OO(t), this.channel = new MessageChannel(), this.useConnect(this.options);
763
+ this.authenticate = t.authenticate, this.events = r, this.options = AO(t), this.channel = new MessageChannel(), this.useConnect(this.options);
754
764
  }
755
765
  useConnect(t) {
756
766
  const r = document.createElement("iframe");
@@ -777,7 +787,7 @@ class IO {
777
787
  this.refreshToken();
778
788
  else if (r.request === "_auth" && (this.events.triggerEvent("authenticated"), r.result && r.result.log_proxy_url && !cy)) {
779
789
  cy = !0;
780
- const n = CO((i) => {
790
+ const n = EO((i) => {
781
791
  this.postMessage({ type: "_log", data: i });
782
792
  });
783
793
  cs.addHandler(n);
@@ -795,7 +805,7 @@ class IO {
795
805
  }
796
806
  postPromise(t, r) {
797
807
  return new Promise((n, i) => {
798
- const a = bO() + "_" + Date.now();
808
+ const a = _O() + "_" + Date.now();
799
809
  this.promises[a] = [n, i];
800
810
  const s = { type: t, callbackId: a, data: r };
801
811
  this.postMessage(s);
@@ -813,7 +823,7 @@ class IO {
813
823
  }
814
824
  } };
815
825
  this.postMessage(i);
816
- const a = JSON.parse(wO(t.token.split(".")[1]));
826
+ const a = JSON.parse(SO(t.token.split(".")[1]));
817
827
  if (this.user = {
818
828
  identifier: a.identifier,
819
829
  name: a.name,
@@ -834,7 +844,7 @@ class IO {
834
844
  delete this.channel, this.iframe && (document.body.removeChild(this.iframe), this.iframe = void 0);
835
845
  }
836
846
  }
837
- function OO(e) {
847
+ function AO(e) {
838
848
  var a;
839
849
  let t = e.host;
840
850
  t || (e.tenant ? t = Xg.replace("main.api", e.tenant + ".api") : t = Xg);
@@ -845,11 +855,12 @@ function OO(e) {
845
855
  cobrowse: n,
846
856
  companyId: e.companyId,
847
857
  location: location.href,
848
- version: e.version || "3.37.4",
858
+ version: e.version || "3.38.4",
849
859
  bridge: i
850
860
  };
851
861
  }
852
- class wT {
862
+ var lu = /* @__PURE__ */ ((e) => (e.WAITING = "waiting", e.READY = "ready", e.IN_PROGRESS = "in_progress", e.FINISHED = "finished", e))(lu || {});
863
+ class ST {
853
864
  constructor() {
854
865
  ht(this, "handlers", {});
855
866
  }
@@ -872,22 +883,22 @@ class wT {
872
883
  this.handlers = {};
873
884
  }
874
885
  }
875
- function AO(e, t) {
886
+ function PO(e, t) {
876
887
  const r = {};
877
888
  return t.forEach((n) => {
878
889
  r[n.id] = n;
879
890
  }), e.map((n) => {
880
891
  if (n.type === "server_message") {
881
892
  const i = n.message_id, a = r[i];
882
- ST(n, a.content);
893
+ TT(n, a.content);
883
894
  }
884
895
  return n;
885
896
  });
886
897
  }
887
- function PO(e, t) {
888
- return ST(e, t.content);
898
+ function MO(e, t) {
899
+ return TT(e, t.content);
889
900
  }
890
- function ST(e, t) {
901
+ function TT(e, t) {
891
902
  return Object.keys(t).forEach((r) => {
892
903
  e[r] = t[r];
893
904
  }), e;
@@ -898,15 +909,351 @@ const ly = {
898
909
  audio: 1,
899
910
  document: 1
900
911
  };
901
- function MO(e) {
912
+ function xO(e) {
902
913
  const t = e.toSorted((r, n) => !r.groupMessageId || !n.groupMessageId || r.groupMessageId !== n.groupMessageId ? 0 : (ly[n.type] || 0) - (ly[r.type] || 0));
903
914
  return t.forEach((r, n, i) => {
904
915
  const a = !r.groupMessageId, s = i[n + 1];
905
916
  s && (a && s.$userId === r.$userId && r.$time || !a && s.groupMessageId === r.groupMessageId && r.$time) && (s.$time = r.$time, r.$time = null);
906
917
  }), t;
907
918
  }
908
- const fy = new cs("MediaStore"), xO = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB, NO = "chat-media", dy = 1, Ol = "file";
909
- class LO {
919
+ const NO = {
920
+ confirmSessionTitle: "Screen Share Session Request",
921
+ confirmSessionContent: "Do you want to share your current screen with the agent?",
922
+ endSessionText: "End Screen Share Session",
923
+ confirmRemoteControlTitle: "Remote Access Request",
924
+ confirmRemoteControlContent: "The agent would like to have access to your currently shared screen to further assist you. Do you want to allow this?",
925
+ confirmFullDeviceTitle: "Screen Share Request",
926
+ confirmFullDeviceContent: "Do you want to share your full screen with the agent? The agent will not be able to control anything on the screen.",
927
+ allowText: "Allow",
928
+ denyText: "Deny"
929
+ }, LO = {
930
+ confirmSessionTitle: "Solicitud de sesión de conavegación",
931
+ confirmSessionContent: "¿Desea compartir su pantalla actual con el agente?",
932
+ endSessionText: "Fin de la sesión de conavegación",
933
+ confirmRemoteControlTitle: "Solicitud de acceso remoto",
934
+ confirmRemoteControlContent: "El agente desea tener acceso a su pantalla actual compartida para seguir asistiéndole. ¿Desea permitirlo?",
935
+ confirmFullDeviceTitle: "Solicitud de compartir pantalla",
936
+ confirmFullDeviceContent: "¿Desea compartir su pantalla completa con el agente? El agente no podrá controlar nada de la pantalla.",
937
+ allowText: "Permitir",
938
+ denyText: "Denegar"
939
+ }, DO = {
940
+ confirmSessionTitle: "Demande de session de co-navigation",
941
+ confirmSessionContent: "Voulez-vous partager votre écran actuel avec l'agent ?",
942
+ endSessionText: "Terminer la session de co-navigation",
943
+ confirmRemoteControlTitle: "Demande d'accès à distance",
944
+ confirmRemoteControlContent: "L'agent souhaite avoir accès à l'écran que vous partagez actuellement pour mieux vous aider. Voulez-vous l'y autoriser ?",
945
+ confirmFullDeviceTitle: "Demande de partage d'écran",
946
+ confirmFullDeviceContent: "Voulez-vous partager votre écran complet avec l'agent ? L'agent ne sera pas en mesure de contrôler quoi que ce soit sur l'écran.",
947
+ allowText: "Autoriser",
948
+ denyText: "Refuser"
949
+ }, jO = {
950
+ confirmSessionTitle: "Screen Share-Sitzungsanfrage",
951
+ confirmSessionContent: "Möchten Sie Ihren aktuellen Bildschirm für den Agenten freigeben?",
952
+ endSessionText: "Screen Share-Sitzung beenden",
953
+ confirmRemoteControlTitle: "Fernzugriff-Anfrage",
954
+ confirmRemoteControlContent: "Der Agent möchte Zugriff auf Ihren aktuell freigegebenen Bildschirm erhalten, um Ihnen weiterhelfen zu können. Möchten Sie dies erlauben?",
955
+ confirmFullDeviceTitle: "Bildschirmfreigabe",
956
+ confirmFullDeviceContent: "Möchten Sie Ihren gesamten Bildschirm für den Agenten freigeben? Der Agent ist dadurch nicht in der Lage, Elemente auf Ihrem Bildschirm zu steuern.",
957
+ allowText: "Erlauben",
958
+ denyText: "Verweigern"
959
+ }, FO = {
960
+ confirmSessionTitle: "共同ブラウジングセッションリクエスト",
961
+ confirmSessionContent: "現在の画面を担当者と共有したいですか。",
962
+ endSessionText: "共同ブラウジングセッションを終了",
963
+ confirmRemoteControlTitle: "リモートアクセスリクエスト",
964
+ confirmRemoteControlContent: "担当者は、お客様をさらにお手伝いするために、現在共有中の画面へのアクセスを希望しています。許可しますか。",
965
+ confirmFullDeviceTitle: "画面共有リクエスト",
966
+ confirmFullDeviceContent: "画面全体を担当者と共有したいですか。担当者は画面上で一切の操作ができません。",
967
+ allowText: "許可",
968
+ denyText: "拒否"
969
+ }, UO = {
970
+ confirmSessionTitle: "코브라우징 세션 요청",
971
+ confirmSessionContent: "현재 화면을 상담원과 공유하시겠습니까?",
972
+ endSessionText: "코브라우징 세션 종료",
973
+ confirmRemoteControlTitle: "원격 액세스 요청",
974
+ confirmRemoteControlContent: "상담원이 추가 지원을 위해 현재 공유된 화면에 액세스할 수 있기를 원합니다. 허용하시겠습니까?",
975
+ confirmFullDeviceTitle: "화면 공유 요청",
976
+ confirmFullDeviceContent: "상담원과 전체 화면을 공유하시겠습니까? 상담원은 화면의 어떤 부분도 제어할 수 없습니다.",
977
+ allowText: "허용",
978
+ denyText: "거절"
979
+ }, BO = {
980
+ confirmSessionTitle: "Richiesta di sessione di Screen Share",
981
+ confirmSessionContent: "Vuoi condividere la tua schermata attuale con l'operatore?",
982
+ endSessionText: "Termina sessione di Screen Share",
983
+ confirmRemoteControlTitle: "Richiesta di accesso remoto",
984
+ confirmRemoteControlContent: "L'operatore vorrebbe accedere alla tua schermata attualmente condivisa per assisterti al meglio. Acconsenti?",
985
+ confirmFullDeviceTitle: "Richiesta di condivisione schermo",
986
+ confirmFullDeviceContent: "Vuoi condividere il tuo intero schermo con l'operatore? L'operatore non potrà controllare nessun elemento sullo schermo.",
987
+ allowText: "Consenti",
988
+ denyText: "Rifiuta"
989
+ }, qO = {
990
+ confirmSessionTitle: "同步浏览会话请求",
991
+ confirmSessionContent: "您是否要向该客服代表共享当前的屏幕?",
992
+ endSessionText: "结束同步浏览会话",
993
+ confirmRemoteControlTitle: "远程访问请求",
994
+ confirmRemoteControlContent: "为了进一步协助您,客服代表想访问您当前的共享屏幕。您是否允许这样做?",
995
+ confirmFullDeviceTitle: "屏幕共享请求",
996
+ confirmFullDeviceContent: "您是否要向该客服代表共享全屏?客服代表将不能控制屏幕上的任何东西。",
997
+ allowText: "允许",
998
+ denyText: "拒绝"
999
+ }, zO = {
1000
+ confirmSessionTitle: "Samwebbläsningssession har begärts",
1001
+ confirmSessionContent: "Vill du dela din aktuella skärm med vår medarbetare?",
1002
+ endSessionText: "Avsluta samwebbläsningssession",
1003
+ confirmRemoteControlTitle: "Begäran om fjärråtkomst",
1004
+ confirmRemoteControlContent: "Vår medarbetare skulle vilja få åtkomst till skärmen som du delar just nu för att kunna hjälpa dig vidare. Vill du tillåta detta?",
1005
+ confirmFullDeviceTitle: "Begäran om skärmdelning",
1006
+ confirmFullDeviceContent: "Vill du dela hela skärmen med medarbetaren? Medarbetaren kommer inte kunna kontrollera något på skärmen.",
1007
+ allowText: "Tillåt",
1008
+ denyText: "Neka"
1009
+ }, WO = {
1010
+ confirmSessionTitle: "Solicitação de Sessão de Co-navegação",
1011
+ confirmSessionContent: "Deseja partilhar o seu ecrã atual com o agente?",
1012
+ endSessionText: "Terminar Sessão de Co-navegação",
1013
+ confirmRemoteControlTitle: "Solicitação de Acesso Remoto",
1014
+ confirmRemoteControlContent: "O agente gostaria de ter acesso ao seu ecrã partilhado atualmente para ajudá-lo ainda mais. Quer permitir isto?",
1015
+ confirmFullDeviceTitle: "Solicitação de Partilha de Ecrã",
1016
+ confirmFullDeviceContent: "Deseja partilhar o seu ecrã inteiro com o agente? O agente não poderá controlar nada no ecrã.",
1017
+ allowText: "Permitir",
1018
+ denyText: "Negar"
1019
+ }, GO = {
1020
+ confirmSessionTitle: "Pyyntö yhteisselausistunnosta",
1021
+ confirmSessionContent: "Haluatko jakaa nykyisen näyttösi edustajan kanssa?",
1022
+ endSessionText: "Lopeta yhteisselausistunto",
1023
+ confirmRemoteControlTitle: "Etäkäyttöpyyntö",
1024
+ confirmRemoteControlContent: "Edustaja haluaisi saada käyttää tällä hetkellä jakamaasi näyttöä voidakseen auttaa sinua enemmän. Haluatko antaa siihen luvan?",
1025
+ confirmFullDeviceTitle: "Näytön jakamispyyntö",
1026
+ confirmFullDeviceContent: "Haluatko jakaa koko näyttösi edustajan kanssa? Edustaja ei pysty käyttämään mitään näytöllä olevaa.",
1027
+ allowText: "Salli",
1028
+ denyText: "Estä"
1029
+ }, HO = {
1030
+ confirmSessionTitle: "Samlesingsøkten er startet",
1031
+ confirmSessionContent: "Vil du dele skjermen din med agenten?",
1032
+ endSessionText: "Avslutt samlesingsøkt",
1033
+ confirmRemoteControlTitle: "Forespørsel om fjerntilgang",
1034
+ confirmRemoteControlContent: "Agenten vil ha tilgang til skjermen din for å kunne hjelpe deg videre. Vil du tillate dette?",
1035
+ confirmFullDeviceTitle: "Forespørsel om skjermdeling",
1036
+ confirmFullDeviceContent: "Vil du dele hele skjermen din med agenten? Agenten kan ikke kontrollere noe på skjermen.",
1037
+ allowText: "Tillat",
1038
+ denyText: "Avvis"
1039
+ }, VO = {
1040
+ confirmSessionTitle: "Forespørgsel om sambrowsingsession",
1041
+ confirmSessionContent: "Vil du dele din nuværende skærm med agenten",
1042
+ endSessionText: "Afslut sambrowsingsession",
1043
+ confirmRemoteControlTitle: "Anmodning om fjernadgang",
1044
+ confirmRemoteControlContent: "Agenten vil gerne have adgang til din nuværende delte skærm for at kunne hjælpe dig yderligere. Ønsker du at tillade dette?",
1045
+ confirmFullDeviceTitle: "Forespørgsel om skærmdeling",
1046
+ confirmFullDeviceContent: "Vil du dele din fulde skærm med agenten? Agenten vil ikke kunne styre noget på skærmen",
1047
+ allowText: "Tillad",
1048
+ denyText: "Afvis"
1049
+ }, KO = {
1050
+ confirmSessionTitle: "Verzoek om cobrowse-sessie",
1051
+ confirmSessionContent: "Wilt u uw huidige scherm delen met de agent?",
1052
+ endSessionText: "Cobrowse-sessie beëindigen",
1053
+ confirmRemoteControlTitle: "Verzoek om toegang op afstand",
1054
+ confirmRemoteControlContent: "De agent wil graag toegang hebben tot uw momenteel gedeelde scherm om u verder te helpen. Wilt u dit toestaan?",
1055
+ confirmFullDeviceTitle: "Verzoek om scherm te delen",
1056
+ confirmFullDeviceContent: "Wilt u uw volledige scherm delen met de agent? De agent kan niets op het scherm bedienen.",
1057
+ allowText: "Toestaan",
1058
+ denyText: "Weigeren"
1059
+ }, JO = {
1060
+ confirmSessionTitle: "Oturum İsteğini Eş Zamanlı Tara",
1061
+ confirmSessionContent: "Mevcut ekranınızı temsilciyle paylaşmak ister misiniz?",
1062
+ endSessionText: "Eş zamanlı Oturum Taramayı Sonlandır",
1063
+ confirmRemoteControlTitle: "Uzaktan Erişim İsteği",
1064
+ confirmRemoteControlContent: "Temsilci şu anda paylaşılan ekranınıza size daha fazla yardımcı olabilmek için erişim sağlamak istiyor. Buna izin vermek istiyor musunuz?",
1065
+ confirmFullDeviceTitle: "Ekran Paylaşım İsteği",
1066
+ confirmFullDeviceContent: "Temsilciyle tam ekranınızı paylaşmak istiyor musunuz? Temsilci ekrandaki hiçbir şeyi kontrol edemez.",
1067
+ allowText: "İzin Ver",
1068
+ denyText: "Reddet"
1069
+ }, YO = {
1070
+ confirmSessionTitle: "Yêu cầu phiên cùng duyệt",
1071
+ confirmSessionContent: "Bạn có muốn chia sẻ màn hình hiện tại của mình với chuyên viên không?",
1072
+ endSessionText: "Kết thúc phiên cùng duyệt",
1073
+ confirmRemoteControlTitle: "Yêu cầu truy cập từ xa",
1074
+ confirmRemoteControlContent: "Chuyên viên muốn được cấp quyền truy cập vào màn hình bạn đang chia sẻ để hỗ trợ bạn nhiều hơn. Bạn có muốn cho phép không?",
1075
+ confirmFullDeviceTitle: "Yêu cầu chia sẻ màn hình",
1076
+ confirmFullDeviceContent: "Bạn có muốn chia sẻ toàn bộ màn hình của mình với chuyên viên không? Chuyên viên sẽ không thể điều khiển bất cứ phần nào trên màn hình.",
1077
+ allowText: "Cho phép",
1078
+ denyText: "Từ chối"
1079
+ }, XO = {
1080
+ confirmSessionTitle: "ขอเซสชันเรียกดูร่วม",
1081
+ confirmSessionContent: "คุณต้องการแชร์หน้าจอปัจจุบันกับตัวแทนหรือไม่",
1082
+ endSessionText: "สิ้นสุดเซสชันเรียกดูร่วม",
1083
+ confirmRemoteControlTitle: "ขอการเข้าถึงระยะไกล",
1084
+ confirmRemoteControlContent: "ตัวแทนต้องการเข้าถึงหน้าจอของคุณที่แชร์อยู่ในปัจจุบันเพื่อให้ความช่วยเหลือคุณต่อไป คุณจะอนุญาตหรือไม่",
1085
+ confirmFullDeviceTitle: "ขอแชร์หน้าจอ",
1086
+ confirmFullDeviceContent: "คุณต้องการแชร์ทั้งหน้าของคุณกับตัวแทนหรือไม่ ตัวแทนจะไม่สามารถควบคุมอะไรบนหน้าจอ",
1087
+ allowText: "ยินยอม",
1088
+ denyText: "ปฏิเสธ"
1089
+ }, QO = {
1090
+ confirmSessionTitle: "طلب جلسة تصفح مشترك",
1091
+ confirmSessionContent: "هل تريد مشاركة شاشتك الحالية مع الموظف؟",
1092
+ endSessionText: "إنهاء جلسة التصفح المشترك",
1093
+ confirmRemoteControlTitle: "طلب التحكم عن بعد",
1094
+ confirmRemoteControlContent: "يرغب مسئول الدعم في رؤية شاشتك المشاركة حالياً لمساعدتك بشكلٍ أكبر. هل تسمح بذلك؟",
1095
+ confirmFullDeviceTitle: "طلب مشاركة الشاشة",
1096
+ confirmFullDeviceContent: "هل تريد مشاركة شاشتك الكاملة مع مسئول الدعم؟ لن يتمكن المسئول من التحكم في أي شيء على الشاشة.",
1097
+ allowText: "السماح",
1098
+ denyText: "الرفض"
1099
+ }, ZO = {
1100
+ confirmSessionTitle: "Žádost o relaci Screen Share",
1101
+ confirmSessionContent: "Chcete svou současnou obrazovku sdílet s agentem?",
1102
+ endSessionText: "Ukončit relaci Screen Share",
1103
+ confirmRemoteControlTitle: "Žádost o vzdálený přístup",
1104
+ confirmRemoteControlContent: "Agent by rád získal přístup k vaší stávající sdílené obrazovce, aby vám mohl dál pomoci. Chcete mu přístup povolit?",
1105
+ confirmFullDeviceTitle: "Žádost o sdílení obrazovky",
1106
+ confirmFullDeviceContent: "Chcete svou celou obrazovku sdílet s agentem? Agent nebude moci ovládat nic, co na obrazovce je.",
1107
+ allowText: "Povolit",
1108
+ denyText: "Zamítnout"
1109
+ }, eA = {
1110
+ confirmSessionTitle: "Prośba o sesję Screen Share",
1111
+ confirmSessionContent: "Czy chcesz udostępnić konsultantowi swój bieżący ekran?",
1112
+ endSessionText: "Zakończ sesję Screen Share",
1113
+ confirmRemoteControlTitle: "Prośba o zdalny dostęp",
1114
+ confirmRemoteControlContent: "Konsultant prosi o dostęp do Twojego aktualnie udostępnionego ekranu, aby udzielić Ci dalszej pomocy. Czy chcesz na to zezwolić?",
1115
+ confirmFullDeviceTitle: "Prośba o udostępnienie ekranu",
1116
+ confirmFullDeviceContent: "Czy chcesz udostępnić konsultantowi swój cały ekran? Konsultant nie będzie mógł kontrolować niczego na ekranie.",
1117
+ allowText: "Zezwól",
1118
+ denyText: "Odmów"
1119
+ }, tA = {
1120
+ confirmSessionTitle: "Screen Share munkameneti kérés",
1121
+ confirmSessionContent: "Megosztja az aktuális képernyőjét a képviselővel?",
1122
+ endSessionText: "Screen Share munkamenet befejezése",
1123
+ confirmRemoteControlTitle: "Távoli hozzáférési kérés",
1124
+ confirmRemoteControlContent: "A képviselő szeretne hozzáférni a jelenleg megosztott képernyőjéhez, hogy további segítséget nyújthasson. Engedélyezi ezt?",
1125
+ confirmFullDeviceTitle: "Képernyőmegosztási kérelem",
1126
+ confirmFullDeviceContent: "Megosztja a teljes képernyőjét az ügynökkel? Az ügynök semmit sem tud majd irányítani a képernyőn.",
1127
+ allowText: "Engedélyezés",
1128
+ denyText: "Elutasítás"
1129
+ }, rA = {
1130
+ confirmSessionTitle: "Запрос сеанса совместного просмотра веб-страниц",
1131
+ confirmSessionContent: "Хотите поделиться вашим текущим экраном с представителем?",
1132
+ endSessionText: "Завершить сеанс совместного просмотра веб-страниц",
1133
+ confirmRemoteControlTitle: "Запрос на удаленный доступ",
1134
+ confirmRemoteControlContent: "Представитель хочет получить доступ к вашему текущему экрану, которым вы делитесь, чтобы помочь вам. Хотите разрешить это?",
1135
+ confirmFullDeviceTitle: "Запрос на совместный просмотр экрана",
1136
+ confirmFullDeviceContent: "Хотите поделиться вашим полный экраном с представителем? Агент не сможет выполнять никаких действий на экране.",
1137
+ allowText: "Разрешить",
1138
+ denyText: "Отказать"
1139
+ }, nA = {
1140
+ confirmSessionTitle: "सह-ब्राउज़ सत्र अनुरोध किया गया",
1141
+ confirmSessionContent: "क्या आप अपनी वर्तमान स्क्रीन को एजेंट के साथ साझा करना चाहते हैं?",
1142
+ endSessionText: "सह-ब्राउज़ सत्र समाप्त करें",
1143
+ confirmRemoteControlTitle: "रिमोट पहुँच का अनुरोध किया गया",
1144
+ confirmRemoteControlContent: "एजेंट आपकी वर्तमान साझा स्क्रीन तक पहुँच प्राप्त करना चाहेगा ताकि वह आपकी और सहायता कर सके। क्या आप इसकी अनुमति देना चाहते हैं?",
1145
+ confirmFullDeviceTitle: "स्क्रीन साझाकरण अनुरोध",
1146
+ confirmFullDeviceContent: "क्या आप अपनी पूरी स्क्रीन एजेंट के साथ साझा करना चाहते हैं? एजेंट स्क्रीन पर कुछ भी नियंत्रित नहीं कर पाएगा।",
1147
+ allowText: "अनुमति दें",
1148
+ denyText: "अस्वीकार करें"
1149
+ }, iA = {
1150
+ confirmSessionTitle: "Solicitare sesiune de co-navigare",
1151
+ confirmSessionContent: "Doriți să partajați ecranul dumneavoastră curent cu agentul?",
1152
+ endSessionText: "Încheiați sesiunea de co-navigare",
1153
+ confirmRemoteControlTitle: "Cerere de acces la distanță",
1154
+ confirmRemoteControlContent: "Agentul ar dori să aibă acces la ecranul dumneavoastră partajat pentru a vă ajuta în continuare. Doriți să permiteți acest lucru?",
1155
+ confirmFullDeviceTitle: "Cerere de partajare a ecranului",
1156
+ confirmFullDeviceContent: "Doriți să partajați ecranul dumneavoastră complet cu agentul? Agentul nu va putea controla nimic de pe ecran.",
1157
+ allowText: "Permiteți",
1158
+ denyText: "Refuzați"
1159
+ }, aA = {
1160
+ confirmSessionTitle: "Zahtjev za sesiju zajedničkog pregledavanja",
1161
+ confirmSessionContent: "Želite li podijeliti svoj trenutni zaslon s agentom?",
1162
+ endSessionText: "Završi sesiju zajedničkog pregledavanja",
1163
+ confirmRemoteControlTitle: "Zahtjev za daljinski pristup",
1164
+ confirmRemoteControlContent: "Agent želi imati pristup vašem trenutno dijeljenom zaslonu kako bi Vam dodatno pomogao. Želite li to dopustiti?",
1165
+ confirmFullDeviceTitle: "Zahtjev za dijeljenje zaslona",
1166
+ confirmFullDeviceContent: "Želite li s agentom podijeliti svoj cijeli zaslon? Agent neće moći ništa kontrolirati na ekranu.",
1167
+ allowText: "Dopustiti",
1168
+ denyText: "Odbiti"
1169
+ }, sA = {
1170
+ confirmSessionTitle: "Запит на сесію спільного перегляду",
1171
+ confirmSessionContent: "Чи Ви хочете поділитись з агентом своїм поточним екраном?",
1172
+ endSessionText: "Завершити сесію спільного перегляду",
1173
+ confirmRemoteControlTitle: "Запит на віддалений доступ",
1174
+ confirmRemoteControlContent: "Агент хоче отримати доступ до Вашого поточного екрану, який переглядається спільно, щоб допомогти Вам. Ви дозволяєте?",
1175
+ confirmFullDeviceTitle: "Запит на спільний перегляд екрану",
1176
+ confirmFullDeviceContent: "Чи Ви хочете поділитись з агентом своїм екраном повністю? Агент не зможе нічого на ньому контролювати.",
1177
+ allowText: "Дозволити",
1178
+ denyText: "Відмовити"
1179
+ }, oA = {
1180
+ confirmSessionTitle: "Kahilingan sa Screen Share na Sesyon",
1181
+ confirmSessionContent: "Gusto mo bang ibahagi ang iyong kasalukuyang screen sa agent?",
1182
+ endSessionText: "Tapusin ang Screen Share na Sesyon",
1183
+ confirmRemoteControlTitle: "Kahilingan sa Remote Access",
1184
+ confirmRemoteControlContent: "Gusto ng agent na magkaroon ng access sa iyong nakabahaging screen sa kasalukuyan upang mas matulungan ka. Gusto mo bang payagan ito?",
1185
+ confirmFullDeviceTitle: "Kahilingan sa Pagbahagi ng Screen",
1186
+ confirmFullDeviceContent: "Gusto mo bang ibahagi ang buong screen sa agent? Hindi makokontrol ng agent ang kahit ano sa screen.",
1187
+ allowText: "Payagan",
1188
+ denyText: "Tanggihan"
1189
+ }, Ao = {
1190
+ en: NO,
1191
+ es: LO,
1192
+ "es-MX": {
1193
+ confirmSessionTitle: "Solicitud de Sesión de Co-navegación",
1194
+ confirmSessionContent: "¿Quiere compartir su pantalla actual con el agente?",
1195
+ endSessionText: "Fin de la sesión de co-navegación",
1196
+ confirmRemoteControlContent: "El agente desea tener acceso a su pantalla actualmente compartida para poder ayudarlo. ¿Quiere permitirlo?",
1197
+ confirmFullDeviceTitle: "Petición de pantalla compartida",
1198
+ confirmFullDeviceContent: "¿Quiere compartir su pantalla completa con el agente? El agente no podrá controlar nada en la pantalla."
1199
+ },
1200
+ fr: DO,
1201
+ "fr-CA": {
1202
+ confirmSessionTitle: "Demande de session co-navigation",
1203
+ confirmSessionContent: "Voulez-vous partager votre écran actuel avec l'agent?",
1204
+ endSessionText: "Fin de la session de co-navigation",
1205
+ confirmRemoteControlContent: "L'agent souhaiterait avoir accès à votre écran actuellement partagé pour mieux vous aider. Voulez-vous l'autoriser?",
1206
+ confirmFullDeviceContent: "Voulez-vous partager votre écran complet avec l'agent? L'agent ne sera pas en mesure de contrôler quoi que ce soit sur l'écran."
1207
+ },
1208
+ de: jO,
1209
+ ja: FO,
1210
+ ko: UO,
1211
+ it: BO,
1212
+ zh: qO,
1213
+ "zh-Hant": {
1214
+ confirmSessionTitle: "共同瀏覽工作階段要求",
1215
+ confirmSessionContent: "要與專員分享您目前的畫面嗎?",
1216
+ endSessionText: "結束共同瀏覽工作階段",
1217
+ confirmRemoteControlTitle: "遠端存取要求",
1218
+ confirmRemoteControlContent: "專員想要存取您目前分享的螢幕畫面以進一步協助您。要允許嗎?",
1219
+ confirmFullDeviceTitle: "螢幕畫面分享要求",
1220
+ confirmFullDeviceContent: "要與專員分享全螢幕嗎?專員將無法控制畫面上的任何項目。",
1221
+ allowText: "允許",
1222
+ denyText: "拒絕"
1223
+ },
1224
+ sv: zO,
1225
+ pt: WO,
1226
+ "pt-BR": {
1227
+ confirmSessionContent: "Você deseja compartilhar sua tela atual com o agente?",
1228
+ endSessionText: "Encerrar Sessão de Co-navegação",
1229
+ confirmRemoteControlContent: "O agente gostaria de acessar sua tela atualmente compartilhada para melhor ajudá-lo. Você deseja permitir isso?",
1230
+ confirmFullDeviceTitle: "Solicitação de Compartilhamento de Tela",
1231
+ confirmFullDeviceContent: "Você deseja compartilhar sua tela inteira com o agente? O agente não poderá controlar nada na tela."
1232
+ },
1233
+ fi: GO,
1234
+ nb: HO,
1235
+ da: VO,
1236
+ nl: KO,
1237
+ tr: JO,
1238
+ vi: YO,
1239
+ th: XO,
1240
+ ar: QO,
1241
+ cs: ZO,
1242
+ pl: eA,
1243
+ hu: tA,
1244
+ ru: rA,
1245
+ hi: nA,
1246
+ ro: iA,
1247
+ hr: aA,
1248
+ uk: sA,
1249
+ tl: oA
1250
+ };
1251
+ function uA(e) {
1252
+ const t = e.split("-")[0];
1253
+ return Ao[e] ? e === t ? Ao[e] : { ...Ao[t], ...Ao[e] } : Ao[t];
1254
+ }
1255
+ const fy = new cs("MediaStore"), cA = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB, lA = "chat-media", dy = 1, Ol = "file";
1256
+ class fA {
910
1257
  constructor() {
911
1258
  ht(this, "db");
912
1259
  }
@@ -914,7 +1261,7 @@ class LO {
914
1261
  return new Promise((t, r) => {
915
1262
  if (this.db)
916
1263
  return t(py(this.db));
917
- const n = xO.open(NO, dy);
1264
+ const n = cA.open(lA, dy);
918
1265
  n.onerror = () => {
919
1266
  r(new Error("indexedDB open failed"));
920
1267
  }, n.onsuccess = () => {
@@ -953,18 +1300,7 @@ class LO {
953
1300
  function py(e) {
954
1301
  return e.transaction(Ol, "readwrite").objectStore(Ol);
955
1302
  }
956
- class DO {
957
- constructor() {
958
- ht(this, "_hostPath", "");
959
- }
960
- setPath(t) {
961
- this._hostPath = t;
962
- }
963
- getPath() {
964
- return this._hostPath;
965
- }
966
- }
967
- const TT = new DO(), jO = new cs("chat-provider");
1303
+ const dA = new cs("chat-provider");
968
1304
  class Zv {
969
1305
  constructor(t, r, n) {
970
1306
  ht(this, "audio");
@@ -980,14 +1316,14 @@ class Zv {
980
1316
  ping() {
981
1317
  if (!this.muted) {
982
1318
  if (!this.audio) {
983
- TT.getPath();
1319
+ pT.getPath();
984
1320
  const t = "https://websdk.ujet.co/v3/ping.mp3";
985
1321
  this.audio = new window.Audio(t);
986
1322
  }
987
1323
  try {
988
1324
  this.audio.play();
989
1325
  } catch (t) {
990
- jO.warn("Chat audio play failed", { error: t });
1326
+ dA.warn("Chat audio play failed", { error: t });
991
1327
  }
992
1328
  }
993
1329
  }
@@ -1006,7 +1342,7 @@ const CT = {};
1006
1342
  function ET(e) {
1007
1343
  CT[e.type] = e;
1008
1344
  }
1009
- function FO(e) {
1345
+ function pA(e) {
1010
1346
  return CT[e];
1011
1347
  }
1012
1348
  const kT = [
@@ -1015,20 +1351,20 @@ const kT = [
1015
1351
  ], RT = [
1016
1352
  "dismissed",
1017
1353
  "va_dismissed"
1018
- ], UO = [
1354
+ ], hA = [
1019
1355
  "va_assigned",
1020
1356
  "va_dismissed"
1021
- ], BO = [
1357
+ ], vA = [
1022
1358
  "queued",
1023
1359
  ...kT,
1024
1360
  ...RT
1025
- ], qO = [
1361
+ ], mA = [
1026
1362
  "timeout",
1027
1363
  "canceled",
1028
1364
  "failed",
1029
1365
  "finished"
1030
1366
  ], cd = new cs("Chat");
1031
- class zO {
1367
+ class gA {
1032
1368
  constructor(t, r) {
1033
1369
  ht(this, "provider");
1034
1370
  ht(this, "store");
@@ -1039,16 +1375,16 @@ class zO {
1039
1375
  ht(this, "inEscalation", !1);
1040
1376
  ht(this, "events");
1041
1377
  ht(this, "cachedFiles");
1042
- this.state = t, this.store = new LO(), this.cachedFiles = {}, this.events = new wT();
1043
- const n = FO(this.state.provider_type);
1378
+ this.state = t, this.store = new fA(), this.cachedFiles = {}, this.events = new ST();
1379
+ const n = pA(this.state.provider_type);
1044
1380
  this.provider = new n(this.events, t, r);
1045
1381
  }
1046
1382
  _setGlobalEvents(t, r) {
1047
1383
  this.globalEvents = t, this.on("message", (n) => {
1048
- if (n.content = _T(n.content), n.type === "server_message") {
1384
+ if (n.content = wT(n.content), n.type === "server_message") {
1049
1385
  const i = n.message_id;
1050
1386
  r(this.id, i).then((a) => {
1051
- n = PO(n, a), t.triggerEvent("chat.message", n);
1387
+ n = MO(n, a), t.triggerEvent("chat.message", n);
1052
1388
  });
1053
1389
  } else n.type === "photo" || n.type === "video" ? setTimeout(() => {
1054
1390
  const i = n.$index.toString();
@@ -1080,7 +1416,7 @@ class zO {
1080
1416
  return ((t = this.state) == null ? void 0 : t.lang) || "";
1081
1417
  }
1082
1418
  get virtual() {
1083
- return UO.indexOf(this.status) !== -1;
1419
+ return hA.indexOf(this.status) !== -1;
1084
1420
  }
1085
1421
  get muted() {
1086
1422
  var t;
@@ -1119,7 +1455,7 @@ class zO {
1119
1455
  return this.state ? this.state.features.indexOf("cobrowse") !== -1 : !1;
1120
1456
  }
1121
1457
  get ongoing() {
1122
- return BO.indexOf(this.status) != -1;
1458
+ return vA.indexOf(this.status) != -1;
1123
1459
  }
1124
1460
  get assigned() {
1125
1461
  return kT.indexOf(this.status) != -1;
@@ -1128,7 +1464,7 @@ class zO {
1128
1464
  return RT.indexOf(this.status) != -1;
1129
1465
  }
1130
1466
  get ended() {
1131
- return qO.indexOf(this.status) != -1;
1467
+ return mA.indexOf(this.status) != -1;
1132
1468
  }
1133
1469
  get transcriptCount() {
1134
1470
  var t;
@@ -1229,59 +1565,26 @@ class zO {
1229
1565
  t.event === "cobrowseRequestedFromAgent" ? this.events.triggerEvent("_requestCobrowse", "agent") : t.event === "cobrowseRequestedFromEndUser" ? this.events.triggerEvent("_requestCobrowse", "end_user") : t.event === "chatDismissed" && this.state ? (this.state.status = "dismissed", this.triggerEvent("dismissed", this)) : t.event === "chatEnded" ? this.events.triggerEvent("_chatEnded", t) : t.event === "escalationStarted" ? this.inEscalation = !0 : (t.event === "escalationFailed" || t.event === "escalationAccepted") && (this.inEscalation = !1);
1230
1566
  }
1231
1567
  }
1232
- function $T(e) {
1233
- return e.map(WO).filter((t) => t.enabled);
1234
- }
1235
- function WO(e) {
1236
- const t = {
1237
- id: e.id,
1238
- enabled: !0,
1239
- channels: [],
1240
- hidden: !!e.hidden
1241
- };
1242
- if (!e.name || !e.name.trim())
1243
- return t.enabled = !1, t;
1244
- t.name = e.name.trim();
1245
- const r = GO(e);
1246
- if (r && (t.redirection = e.redirection), e.children && e.children.length) {
1247
- const n = $T(e.children);
1248
- return t.enabled = n.length > 0 || r, t.children = n, t;
1249
- }
1250
- if (!e.channels)
1251
- t.enabled = r;
1252
- else {
1253
- const { channels: n, deflection: i } = HO(e.channels);
1254
- t.deflection = i, r || (t.channels = n), t.enabled = n.length > 0 || r;
1255
- }
1256
- return t;
1257
- }
1258
- function GO(e) {
1259
- let t = !1;
1260
- const r = e.redirection;
1261
- return r && (r.option === "message" || r.option === "url") && (t = !!r.data), t;
1568
+ function hy(e) {
1569
+ return e.chats = e.chats.map((t) => {
1570
+ const r = t.entries.map((n, i) => yA(n, `${t.comm_id}-${i}`));
1571
+ return t.entries = xO(r), t;
1572
+ }), e;
1262
1573
  }
1263
- function HO(e) {
1264
- let t = null;
1265
- const r = [], n = e.chat, i = (a) => {
1266
- !a.deflection_type && a.deflected_reason && (a.deflection_type = a.deflected_reason), a.deflected === void 0 && a.deflection_type && (a.deflected = !0), r.push(a);
1574
+ function yA(e, t) {
1575
+ var r;
1576
+ return {
1577
+ $index: e.timestamp,
1578
+ $sid: t,
1579
+ $timestamp: new Date(e.timestamp),
1580
+ $userType: e.role,
1581
+ $userId: ((r = e.user_data) == null ? void 0 : r.id) || 0,
1582
+ user: e.user_data,
1583
+ type: e.type,
1584
+ ...e.body
1267
1585
  };
1268
- return n && n.deflected && (t = {
1269
- enabled: !0,
1270
- type: n.deflected_reason
1271
- }), n && (n.enabled || n.virtual_agent_available) && i({ ...e.chat, type: "chat" }), e.voice_call && e.voice_call.instant_enabled && i({ ...e.voice_call, type: "instant_call" }), e.voice_call && e.voice_call.schedule_enabled && i({
1272
- ...e.voice_call,
1273
- type: "scheduled_call",
1274
- deflection_type: e.voice_call.schedule_deflection_type
1275
- }), e.email && e.email.enabled && i({ ...e.email, type: "email" }), n && n.deflected && n.deflected_reason === "over_capacity" && n.keep_waiting && i({
1276
- ...n,
1277
- enabled: !0,
1278
- type: "keep_waiting",
1279
- deflection_type: n.deflected_reason
1280
- }), e.external_deflection_link && e.external_deflection_link.enabled && e.external_deflection_link.links.forEach((s) => {
1281
- s.enabled && i({ ...s, type: "external_link" });
1282
- }), { channels: r, deflection: t };
1283
1586
  }
1284
- const VO = {
1587
+ const bA = {
1285
1588
  en: "English (US)",
1286
1589
  "en-CA": "English (Canada)",
1287
1590
  "en-GB": "English (UK)",
@@ -1310,13 +1613,13 @@ const VO = {
1310
1613
  pl: "Polish",
1311
1614
  hu: "Hungarian"
1312
1615
  };
1313
- function KO(e) {
1616
+ function _A(e) {
1314
1617
  var r, n;
1315
1618
  return {
1316
1619
  languages: e.languages.filter((i) => i.enabled).map((i) => ({
1317
1620
  lang: i.lang,
1318
1621
  name: i.name,
1319
- localeName: VO[i.lang]
1622
+ localeName: bA[i.lang]
1320
1623
  })),
1321
1624
  name: e.display_name,
1322
1625
  subdomain: e.subdomain,
@@ -1331,27 +1634,60 @@ function KO(e) {
1331
1634
  cobrowse_domain: e.cobrowse_domain
1332
1635
  };
1333
1636
  }
1334
- function hy(e) {
1335
- return e.chats = e.chats.map((t) => {
1336
- const r = t.entries.map((n, i) => JO(n, `${t.comm_id}-${i}`));
1337
- return t.entries = MO(r), t;
1338
- }), e;
1637
+ function $T(e) {
1638
+ return e.map(wA).filter((t) => t.enabled);
1339
1639
  }
1340
- function JO(e, t) {
1341
- var r;
1342
- return {
1343
- $index: e.timestamp,
1344
- $sid: t,
1345
- $timestamp: new Date(e.timestamp),
1346
- $userType: e.role,
1347
- $userId: ((r = e.user_data) == null ? void 0 : r.id) || 0,
1348
- user: e.user_data,
1349
- type: e.type,
1350
- ...e.body
1640
+ function wA(e) {
1641
+ const t = {
1642
+ id: e.id,
1643
+ enabled: !0,
1644
+ channels: [],
1645
+ hidden: !!e.hidden
1646
+ };
1647
+ if (!e.name || !e.name.trim())
1648
+ return t.enabled = !1, t;
1649
+ t.name = e.name.trim();
1650
+ const r = SA(e);
1651
+ if (r && (t.redirection = e.redirection), e.children && e.children.length) {
1652
+ const n = $T(e.children);
1653
+ return t.enabled = n.length > 0 || r, t.children = n, t;
1654
+ }
1655
+ if (!e.channels)
1656
+ t.enabled = r;
1657
+ else {
1658
+ const { channels: n, deflection: i } = TA(e.channels);
1659
+ t.deflection = i, r || (t.channels = n), t.enabled = n.length > 0 || r;
1660
+ }
1661
+ return t;
1662
+ }
1663
+ function SA(e) {
1664
+ let t = !1;
1665
+ const r = e.redirection;
1666
+ return r && (r.option === "message" || r.option === "url") && (t = !!r.data), t;
1667
+ }
1668
+ function TA(e) {
1669
+ let t = null;
1670
+ const r = [], n = e.chat, i = (a) => {
1671
+ !a.deflection_type && a.deflected_reason && (a.deflection_type = a.deflected_reason), a.deflected === void 0 && a.deflection_type && (a.deflected = !0), r.push(a);
1351
1672
  };
1673
+ return n && n.deflected && (t = {
1674
+ enabled: !0,
1675
+ type: n.deflected_reason
1676
+ }), n && (n.enabled || n.virtual_agent_available) && i({ ...e.chat, type: "chat" }), e.voice_call && e.voice_call.instant_enabled && i({ ...e.voice_call, type: "instant_call" }), e.voice_call && e.voice_call.schedule_enabled && i({
1677
+ ...e.voice_call,
1678
+ type: "scheduled_call",
1679
+ deflection_type: e.voice_call.schedule_deflection_type
1680
+ }), e.email && e.email.enabled && i({ ...e.email, type: "email" }), n && n.deflected && n.deflected_reason === "over_capacity" && n.keep_waiting && i({
1681
+ ...n,
1682
+ enabled: !0,
1683
+ type: "keep_waiting",
1684
+ deflection_type: n.deflected_reason
1685
+ }), e.external_deflection_link && e.external_deflection_link.enabled && e.external_deflection_link.links.forEach((s) => {
1686
+ s.enabled && i({ ...s, type: "external_link" });
1687
+ }), { channels: r, deflection: t };
1352
1688
  }
1353
1689
  const vy = /Chrome/.test(navigator.userAgent);
1354
- class YO {
1690
+ class CA {
1355
1691
  constructor(t) {
1356
1692
  ht(this, "request");
1357
1693
  this.request = t;
@@ -1387,7 +1723,7 @@ class YO {
1387
1723
  }
1388
1724
  async getCompany() {
1389
1725
  const t = await this.get("company");
1390
- return KO(t.data);
1726
+ return _A(t.data);
1391
1727
  }
1392
1728
  async getMenus(t, r) {
1393
1729
  const n = {
@@ -1452,7 +1788,7 @@ class YO {
1452
1788
  return await this.get(`chat_transcript_pdfs/${t}/download_transcript`);
1453
1789
  }
1454
1790
  sendChatTranscripts(t, r) {
1455
- return this.post(`chats/${t}/transcripts`, {
1791
+ this.post(`chats/${t}/transcripts`, {
1456
1792
  emails: r.join(",")
1457
1793
  });
1458
1794
  }
@@ -1564,7 +1900,7 @@ class YO {
1564
1900
  const n = async () => (await this.post(`chats/${t.id}/tokens`, {
1565
1901
  provider_type: t.provider_type,
1566
1902
  device_id: r
1567
- })).data, i = new zO(t, n), a = async (s) => {
1903
+ })).data, i = new gA(t, n), a = async (s) => {
1568
1904
  if (i.status === "va_assigned") {
1569
1905
  const o = await this.getSkipVirtualAgentSettings(i.menuId, i.lang);
1570
1906
  i.allowSkipVirtualAgent = o, i.update(s);
@@ -1577,7 +1913,7 @@ class YO {
1577
1913
  for (; !s; )
1578
1914
  await this.getChat(i.id).then((o) => {
1579
1915
  o.provider_channel_id && i.state ? (s = !0, i.update(o), i.connect(), a(o)) : (o.status === "canceled" || o.status === "finished") && (s = !0);
1580
- }), s || await bT(1500);
1916
+ }), s || await _T(1500);
1581
1917
  }
1582
1918
  return i.on("initialized", async () => {
1583
1919
  if (i.status === "queued") {
@@ -1635,7 +1971,7 @@ class YO {
1635
1971
  menu_id: t.toString(),
1636
1972
  lang: r
1637
1973
  };
1638
- return n.name && (i.end_user_name = n.name), n.recaptcha && (i.recaptcha_response = n.recaptcha), n.files && vy ? i["email_attachments[]"] = await XO(n.files) : n.files && (i["email_attachments[]"] = [...n.files]), this.request("emails", { form: i });
1974
+ return n.name && (i.end_user_name = n.name), n.recaptcha && (i.recaptcha_response = n.recaptcha), n.files && vy ? i["email_attachments[]"] = await EA(n.files) : n.files && (i["email_attachments[]"] = [...n.files]), await this.request("emails", { form: i });
1639
1975
  }
1640
1976
  async getMedia(t, r) {
1641
1977
  const n = await this.get(`media/${t}?type=${r}`);
@@ -1648,7 +1984,7 @@ class YO {
1648
1984
  return (await this.get(`menus/${t}/virtual_agent_settings`, { lang: r })).data.allow_skip_virtual_agent;
1649
1985
  }
1650
1986
  }
1651
- function XO(e) {
1987
+ function EA(e) {
1652
1988
  return Promise.all(e.map(IT));
1653
1989
  }
1654
1990
  function IT(e) {
@@ -1660,83 +1996,12 @@ function IT(e) {
1660
1996
  }, n.onerror = r, n.readAsArrayBuffer(e);
1661
1997
  });
1662
1998
  }
1663
- const ld = "ujet:", Vr = {
1664
- set(e, t) {
1665
- return localStorage.setItem(ld + e, t);
1666
- },
1667
- get(e) {
1668
- return localStorage.getItem(ld + e);
1669
- },
1670
- del(e) {
1671
- return localStorage.removeItem(ld + e);
1672
- }
1673
- }, QO = Date.now(), OT = {
1674
- href: window.location.href,
1675
- interval: 24 * 60 * 60
1676
- };
1677
- function ZO(e) {
1678
- if (!Array.isArray(e) || !e.length)
1679
- return null;
1680
- const t = iA(), r = t === 0, n = t + 1;
1681
- return aA(n), e.filter((a) => {
1682
- const s = tA(a, OT.href), o = rA(a.visitor_type, r), u = n >= a.page_visit_count, c = !nA(a.id);
1683
- return s && o && u && c;
1684
- }).sort((a, s) => a.stay_time - s.stay_time)[0] || null;
1685
- }
1686
- function eA(e, t) {
1687
- const r = e.stay_time * 1e3, n = Math.max(r - (Date.now() - QO), 0);
1688
- setTimeout(() => {
1689
- t(e), Vr.set(`trigger:${e.id}`, (Date.now() / 1e3).toString());
1690
- }, n);
1691
- }
1692
- const tA = (e, t) => {
1693
- const {
1694
- keywords_included_or: r = [],
1695
- keywords_excluded_or: n = [],
1696
- keywords_included: i = [],
1697
- keywords_excluded: a = []
1698
- } = e;
1699
- if (TO(r, n, i, a))
1700
- return !0;
1701
- if (r.length || n.length) {
1702
- const u = r.some((l) => l.every((p) => t.includes(p))), c = n.length > 0 && n.every((l) => l.every((p) => !t.includes(p)));
1703
- return u || c;
1704
- }
1705
- const s = i.filter((u) => t.indexOf(u) !== -1).length, o = a.filter((u) => t.indexOf(u) === -1).length;
1706
- return !!s || !!o;
1707
- };
1708
- function rA(e, t) {
1709
- return e === "visitor_type_new" ? t : e === "visitor_type_returning" ? !t : !0;
1710
- }
1711
- function nA(e) {
1712
- try {
1713
- const t = parseInt(Vr.get(`trigger:${e}`), 10);
1714
- return Date.now() / 1e3 - t < OT.interval;
1715
- } catch {
1716
- return !1;
1717
- }
1718
- }
1719
- function iA() {
1720
- try {
1721
- const e = Vr.get("visits");
1722
- return e ? parseInt(e, 10) : 0;
1723
- } catch {
1724
- return 0;
1725
- }
1726
- }
1727
- function aA(e) {
1728
- try {
1729
- Vr.set("visits", e.toString());
1730
- } catch (t) {
1731
- console.error(t);
1732
- }
1733
- }
1734
1999
  /*!
1735
2000
  * tabbable 6.2.0
1736
2001
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1737
2002
  */
1738
- var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Al = /* @__PURE__ */ AT.join(","), PT = typeof Element > "u", is = PT ? function() {
1739
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Pl = !PT && Element.prototype.getRootNode ? function(e) {
2003
+ var OT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Al = /* @__PURE__ */ OT.join(","), AT = typeof Element > "u", is = AT ? function() {
2004
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Pl = !AT && Element.prototype.getRootNode ? function(e) {
1740
2005
  var t;
1741
2006
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
1742
2007
  } : function(e) {
@@ -1746,15 +2011,15 @@ var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1746
2011
  r === void 0 && (r = !0);
1747
2012
  var i = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), a = i === "" || i === "true", s = a || r && t && e(t.parentNode);
1748
2013
  return s;
1749
- }, sA = function(t) {
2014
+ }, kA = function(t) {
1750
2015
  var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
1751
2016
  return n === "" || n === "true";
1752
- }, MT = function(t, r, n) {
2017
+ }, PT = function(t, r, n) {
1753
2018
  if (Ml(t))
1754
2019
  return [];
1755
2020
  var i = Array.prototype.slice.apply(t.querySelectorAll(Al));
1756
2021
  return r && is.call(t, Al) && i.unshift(t), i = i.filter(n), i;
1757
- }, xT = function e(t, r, n) {
2022
+ }, MT = function e(t, r, n) {
1758
2023
  for (var i = [], a = Array.from(t); a.length; ) {
1759
2024
  var s = a.shift();
1760
2025
  if (!Ml(s, !1))
@@ -1780,31 +2045,31 @@ var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1780
2045
  }
1781
2046
  }
1782
2047
  return i;
1783
- }, NT = function(t) {
2048
+ }, xT = function(t) {
1784
2049
  return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
1785
2050
  }, Qa = function(t) {
1786
2051
  if (!t)
1787
2052
  throw new Error("No node provided");
1788
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || sA(t)) && !NT(t) ? 0 : t.tabIndex;
1789
- }, oA = function(t, r) {
2053
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || kA(t)) && !xT(t) ? 0 : t.tabIndex;
2054
+ }, RA = function(t, r) {
1790
2055
  var n = Qa(t);
1791
- return n < 0 && r && !NT(t) ? 0 : n;
1792
- }, uA = function(t, r) {
2056
+ return n < 0 && r && !xT(t) ? 0 : n;
2057
+ }, $A = function(t, r) {
1793
2058
  return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
1794
- }, LT = function(t) {
2059
+ }, NT = function(t) {
1795
2060
  return t.tagName === "INPUT";
1796
- }, cA = function(t) {
1797
- return LT(t) && t.type === "hidden";
1798
- }, lA = function(t) {
2061
+ }, IA = function(t) {
2062
+ return NT(t) && t.type === "hidden";
2063
+ }, OA = function(t) {
1799
2064
  var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
1800
2065
  return n.tagName === "SUMMARY";
1801
2066
  });
1802
2067
  return r;
1803
- }, fA = function(t, r) {
2068
+ }, AA = function(t, r) {
1804
2069
  for (var n = 0; n < t.length; n++)
1805
2070
  if (t[n].checked && t[n].form === r)
1806
2071
  return t[n];
1807
- }, dA = function(t) {
2072
+ }, PA = function(t) {
1808
2073
  if (!t.name)
1809
2074
  return !0;
1810
2075
  var r = t.form || Pl(t), n = function(o) {
@@ -1818,13 +2083,13 @@ var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1818
2083
  } catch (s) {
1819
2084
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
1820
2085
  }
1821
- var a = fA(i, t.form);
2086
+ var a = AA(i, t.form);
1822
2087
  return !a || a === t;
1823
- }, pA = function(t) {
1824
- return LT(t) && t.type === "radio";
1825
- }, hA = function(t) {
1826
- return pA(t) && !dA(t);
1827
- }, vA = function(t) {
2088
+ }, MA = function(t) {
2089
+ return NT(t) && t.type === "radio";
2090
+ }, xA = function(t) {
2091
+ return MA(t) && !PA(t);
2092
+ }, NA = function(t) {
1828
2093
  var r, n = t && Pl(t), i = (r = n) === null || r === void 0 ? void 0 : r.host, a = !1;
1829
2094
  if (n && n !== t) {
1830
2095
  var s, o, u;
@@ -1837,7 +2102,7 @@ var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1837
2102
  }, my = function(t) {
1838
2103
  var r = t.getBoundingClientRect(), n = r.width, i = r.height;
1839
2104
  return n === 0 && i === 0;
1840
- }, mA = function(t, r) {
2105
+ }, LA = function(t, r) {
1841
2106
  var n = r.displayCheck, i = r.getShadowRoot;
1842
2107
  if (getComputedStyle(t).visibility === "hidden")
1843
2108
  return !0;
@@ -1854,14 +2119,14 @@ var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1854
2119
  }
1855
2120
  t = o;
1856
2121
  }
1857
- if (vA(t))
2122
+ if (NA(t))
1858
2123
  return !t.getClientRects().length;
1859
2124
  if (n !== "legacy-full")
1860
2125
  return !0;
1861
2126
  } else if (n === "non-zero-area")
1862
2127
  return my(t);
1863
2128
  return !1;
1864
- }, gA = function(t) {
2129
+ }, DA = function(t) {
1865
2130
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
1866
2131
  for (var r = t.parentElement; r; ) {
1867
2132
  if (r.tagName === "FIELDSET" && r.disabled) {
@@ -1879,17 +2144,17 @@ var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1879
2144
  return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
1880
2145
  // because we're limited in the type of selectors we can use in JSDom (see related
1881
2146
  // note related to `candidateSelectors`)
1882
- Ml(r) || cA(r) || mA(r, t) || // For a details element with a summary, the summary element gets the focus
1883
- lA(r) || gA(r));
2147
+ Ml(r) || IA(r) || LA(r, t) || // For a details element with a summary, the summary element gets the focus
2148
+ OA(r) || DA(r));
1884
2149
  }, mh = function(t, r) {
1885
- return !(hA(r) || Qa(r) < 0 || !xl(t, r));
1886
- }, yA = function(t) {
2150
+ return !(xA(r) || Qa(r) < 0 || !xl(t, r));
2151
+ }, jA = function(t) {
1887
2152
  var r = parseInt(t.getAttribute("tabindex"), 10);
1888
2153
  return !!(isNaN(r) || r >= 0);
1889
- }, bA = function e(t) {
2154
+ }, FA = function e(t) {
1890
2155
  var r = [], n = [];
1891
2156
  return t.forEach(function(i, a) {
1892
- var s = !!i.scopeParent, o = s ? i.scopeParent : i, u = oA(o, s), c = s ? e(i.candidates) : o;
2157
+ var s = !!i.scopeParent, o = s ? i.scopeParent : i, u = RA(o, s), c = s ? e(i.candidates) : o;
1893
2158
  u === 0 ? s ? r.push.apply(r, c) : r.push(o) : n.push({
1894
2159
  documentOrder: a,
1895
2160
  tabIndex: u,
@@ -1897,34 +2162,34 @@ var AT = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1897
2162
  isScope: s,
1898
2163
  content: c
1899
2164
  });
1900
- }), n.sort(uA).reduce(function(i, a) {
2165
+ }), n.sort($A).reduce(function(i, a) {
1901
2166
  return a.isScope ? i.push.apply(i, a.content) : i.push(a.content), i;
1902
2167
  }, []).concat(r);
1903
- }, _A = function(t, r) {
2168
+ }, UA = function(t, r) {
1904
2169
  r = r || {};
1905
2170
  var n;
1906
- return r.getShadowRoot ? n = xT([t], r.includeContainer, {
2171
+ return r.getShadowRoot ? n = MT([t], r.includeContainer, {
1907
2172
  filter: mh.bind(null, r),
1908
2173
  flatten: !1,
1909
2174
  getShadowRoot: r.getShadowRoot,
1910
- shadowRootFilter: yA
1911
- }) : n = MT(t, r.includeContainer, mh.bind(null, r)), bA(n);
1912
- }, wA = function(t, r) {
2175
+ shadowRootFilter: jA
2176
+ }) : n = PT(t, r.includeContainer, mh.bind(null, r)), FA(n);
2177
+ }, BA = function(t, r) {
1913
2178
  r = r || {};
1914
2179
  var n;
1915
- return r.getShadowRoot ? n = xT([t], r.includeContainer, {
2180
+ return r.getShadowRoot ? n = MT([t], r.includeContainer, {
1916
2181
  filter: xl.bind(null, r),
1917
2182
  flatten: !0,
1918
2183
  getShadowRoot: r.getShadowRoot
1919
- }) : n = MT(t, r.includeContainer, xl.bind(null, r)), n;
2184
+ }) : n = PT(t, r.includeContainer, xl.bind(null, r)), n;
1920
2185
  }, Es = function(t, r) {
1921
2186
  if (r = r || {}, !t)
1922
2187
  throw new Error("No node provided");
1923
2188
  return is.call(t, Al) === !1 ? !1 : mh(r, t);
1924
- }, SA = /* @__PURE__ */ AT.concat("iframe").join(","), fd = function(t, r) {
2189
+ }, qA = /* @__PURE__ */ OT.concat("iframe").join(","), ld = function(t, r) {
1925
2190
  if (r = r || {}, !t)
1926
2191
  throw new Error("No node provided");
1927
- return is.call(t, SA) === !1 ? !1 : xl(r, t);
2192
+ return is.call(t, qA) === !1 ? !1 : xl(r, t);
1928
2193
  };
1929
2194
  /*!
1930
2195
  * focus-trap 7.6.5
@@ -1935,21 +2200,21 @@ function gh(e, t) {
1935
2200
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1936
2201
  return n;
1937
2202
  }
1938
- function TA(e) {
2203
+ function zA(e) {
1939
2204
  if (Array.isArray(e)) return gh(e);
1940
2205
  }
1941
- function CA(e, t, r) {
1942
- return (t = IA(t)) in e ? Object.defineProperty(e, t, {
2206
+ function WA(e, t, r) {
2207
+ return (t = JA(t)) in e ? Object.defineProperty(e, t, {
1943
2208
  value: r,
1944
2209
  enumerable: !0,
1945
2210
  configurable: !0,
1946
2211
  writable: !0
1947
2212
  }) : e[t] = r, e;
1948
2213
  }
1949
- function EA(e) {
2214
+ function GA(e) {
1950
2215
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1951
2216
  }
1952
- function kA() {
2217
+ function HA() {
1953
2218
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1954
2219
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1955
2220
  }
@@ -1967,17 +2232,17 @@ function yy(e) {
1967
2232
  for (var t = 1; t < arguments.length; t++) {
1968
2233
  var r = arguments[t] != null ? arguments[t] : {};
1969
2234
  t % 2 ? gy(Object(r), !0).forEach(function(n) {
1970
- CA(e, n, r[n]);
2235
+ WA(e, n, r[n]);
1971
2236
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : gy(Object(r)).forEach(function(n) {
1972
2237
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1973
2238
  });
1974
2239
  }
1975
2240
  return e;
1976
2241
  }
1977
- function RA(e) {
1978
- return TA(e) || EA(e) || OA(e) || kA();
2242
+ function VA(e) {
2243
+ return zA(e) || GA(e) || YA(e) || HA();
1979
2244
  }
1980
- function $A(e, t) {
2245
+ function KA(e, t) {
1981
2246
  if (typeof e != "object" || !e) return e;
1982
2247
  var r = e[Symbol.toPrimitive];
1983
2248
  if (r !== void 0) {
@@ -1987,11 +2252,11 @@ function $A(e, t) {
1987
2252
  }
1988
2253
  return (t === "string" ? String : Number)(e);
1989
2254
  }
1990
- function IA(e) {
1991
- var t = $A(e, "string");
2255
+ function JA(e) {
2256
+ var t = KA(e, "string");
1992
2257
  return typeof t == "symbol" ? t : t + "";
1993
2258
  }
1994
- function OA(e, t) {
2259
+ function YA(e, t) {
1995
2260
  if (e) {
1996
2261
  if (typeof e == "string") return gh(e, t);
1997
2262
  var r = {}.toString.call(e).slice(8, -1);
@@ -2011,31 +2276,31 @@ var by = {
2011
2276
  var n = t.indexOf(r);
2012
2277
  n !== -1 && t.splice(n, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
2013
2278
  }
2014
- }, AA = function(t) {
2279
+ }, XA = function(t) {
2015
2280
  return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
2016
- }, PA = function(t) {
2281
+ }, QA = function(t) {
2017
2282
  return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
2018
2283
  }, tu = function(t) {
2019
2284
  return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
2020
- }, MA = function(t) {
2285
+ }, ZA = function(t) {
2021
2286
  return tu(t) && !t.shiftKey;
2022
- }, xA = function(t) {
2287
+ }, eP = function(t) {
2023
2288
  return tu(t) && t.shiftKey;
2024
2289
  }, _y = function(t) {
2025
2290
  return setTimeout(t, 0);
2026
- }, Ao = function(t) {
2291
+ }, Po = function(t) {
2027
2292
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
2028
2293
  n[i - 1] = arguments[i];
2029
2294
  return typeof t == "function" ? t.apply(void 0, n) : t;
2030
2295
  }, ac = function(t) {
2031
2296
  return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
2032
- }, NA = [], LA = function(t, r) {
2033
- var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) || NA, a = yy({
2297
+ }, tP = [], rP = function(t, r) {
2298
+ var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) || tP, a = yy({
2034
2299
  returnFocusOnDeactivate: !0,
2035
2300
  escapeDeactivates: !0,
2036
2301
  delayInitialFocus: !0,
2037
- isKeyForward: MA,
2038
- isKeyBackward: xA
2302
+ isKeyForward: ZA,
2303
+ isKeyBackward: eP
2039
2304
  }, r), s = {
2040
2305
  // containers given to createFocusTrap()
2041
2306
  // @type {Array<HTMLElement>}
@@ -2089,7 +2354,7 @@ var by = {
2089
2354
  });
2090
2355
  }, l = function(L) {
2091
2356
  var pe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Te = pe.hasFallback, rt = Te === void 0 ? !1 : Te, Ke = pe.params, Se = Ke === void 0 ? [] : Ke, ce = a[L];
2092
- if (typeof ce == "function" && (ce = ce.apply(void 0, RA(Se))), ce === !0 && (ce = void 0), !ce) {
2357
+ if (typeof ce == "function" && (ce = ce.apply(void 0, VA(Se))), ce === !0 && (ce = void 0), !ce) {
2093
2358
  if (ce === void 0 || ce === !1)
2094
2359
  return ce;
2095
2360
  throw new Error("`".concat(L, "` was specified but was not a node, or did not return a node"));
@@ -2111,7 +2376,7 @@ var by = {
2111
2376
  });
2112
2377
  if (L === !1)
2113
2378
  return !1;
2114
- if (L === void 0 || L && !fd(L, a.tabbableOptions))
2379
+ if (L === void 0 || L && !ld(L, a.tabbableOptions))
2115
2380
  if (c(n.activeElement) >= 0)
2116
2381
  L = n.activeElement;
2117
2382
  else {
@@ -2124,7 +2389,7 @@ var by = {
2124
2389
  return L;
2125
2390
  }, v = function() {
2126
2391
  if (s.containerGroups = s.containers.map(function(L) {
2127
- var pe = _A(L, a.tabbableOptions), Te = wA(L, a.tabbableOptions), rt = pe.length > 0 ? pe[0] : void 0, Ke = pe.length > 0 ? pe[pe.length - 1] : void 0, Se = Te.find(function(P) {
2392
+ var pe = UA(L, a.tabbableOptions), Te = BA(L, a.tabbableOptions), rt = pe.length > 0 ? pe[0] : void 0, Ke = pe.length > 0 ? pe[pe.length - 1] : void 0, Se = Te.find(function(P) {
2128
2393
  return Es(P);
2129
2394
  }), ce = Te.slice().reverse().find(function(P) {
2130
2395
  return Es(P);
@@ -2189,7 +2454,7 @@ var by = {
2189
2454
  }
2190
2455
  L.focus({
2191
2456
  preventScroll: !!a.preventScroll
2192
- }), s.mostRecentlyFocusedNode = L, AA(L) && L.select();
2457
+ }), s.mostRecentlyFocusedNode = L, XA(L) && L.select();
2193
2458
  }
2194
2459
  }, T = function(L) {
2195
2460
  var pe = l("setReturnFocus", {
@@ -2209,7 +2474,7 @@ var by = {
2209
2474
  var Ce = kt.firstTabbableNode;
2210
2475
  return pe === Ce;
2211
2476
  });
2212
- if (P < 0 && (he.container === pe || fd(pe, a.tabbableOptions) && !Es(pe, a.tabbableOptions) && !he.nextTabbableNode(pe, !1)) && (P = ce), P >= 0) {
2477
+ if (P < 0 && (he.container === pe || ld(pe, a.tabbableOptions) && !Es(pe, a.tabbableOptions) && !he.nextTabbableNode(pe, !1)) && (P = ce), P >= 0) {
2213
2478
  var Ie = P === 0 ? s.tabbableGroups.length - 1 : P - 1, qe = s.tabbableGroups[Ie];
2214
2479
  Se = Qa(pe) >= 0 ? qe.lastTabbableNode : qe.lastDomTabbableNode;
2215
2480
  } else tu(Te) || (Se = he.nextTabbableNode(pe, !1));
@@ -2218,7 +2483,7 @@ var by = {
2218
2483
  var Ce = kt.lastTabbableNode;
2219
2484
  return pe === Ce;
2220
2485
  });
2221
- if (Ne < 0 && (he.container === pe || fd(pe, a.tabbableOptions) && !Es(pe, a.tabbableOptions) && !he.nextTabbableNode(pe)) && (Ne = ce), Ne >= 0) {
2486
+ if (Ne < 0 && (he.container === pe || ld(pe, a.tabbableOptions) && !Es(pe, a.tabbableOptions) && !he.nextTabbableNode(pe)) && (Ne = ce), Ne >= 0) {
2222
2487
  var _e = Ne === s.tabbableGroups.length - 1 ? 0 : Ne + 1, Q = s.tabbableGroups[_e];
2223
2488
  Se = Qa(pe) >= 0 ? Q.firstTabbableNode : Q.firstDomTabbableNode;
2224
2489
  } else tu(Te) || (Se = he.nextTabbableNode(pe));
@@ -2229,7 +2494,7 @@ var by = {
2229
2494
  }, R = function(L) {
2230
2495
  var pe = ac(L);
2231
2496
  if (!(c(pe, L) >= 0)) {
2232
- if (Ao(a.clickOutsideDeactivates, L)) {
2497
+ if (Po(a.clickOutsideDeactivates, L)) {
2233
2498
  o.deactivate({
2234
2499
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
2235
2500
  // which will result in the outside click setting focus to the node
@@ -2241,7 +2506,7 @@ var by = {
2241
2506
  });
2242
2507
  return;
2243
2508
  }
2244
- Ao(a.allowOutsideClick, L) || L.preventDefault();
2509
+ Po(a.allowOutsideClick, L) || L.preventDefault();
2245
2510
  }
2246
2511
  }, x = function(L) {
2247
2512
  var pe = ac(L), Te = c(pe, L) >= 0;
@@ -2286,10 +2551,10 @@ var by = {
2286
2551
  }, j = function(L) {
2287
2552
  (a.isKeyForward(L) || a.isKeyBackward(L)) && N(L, a.isKeyBackward(L));
2288
2553
  }, X = function(L) {
2289
- PA(L) && Ao(a.escapeDeactivates, L) !== !1 && (L.preventDefault(), o.deactivate());
2554
+ QA(L) && Po(a.escapeDeactivates, L) !== !1 && (L.preventDefault(), o.deactivate());
2290
2555
  }, J = function(L) {
2291
2556
  var pe = ac(L);
2292
- c(pe, L) >= 0 || Ao(a.clickOutsideDeactivates, L) || Ao(a.allowOutsideClick, L) || (L.preventDefault(), L.stopImmediatePropagation());
2557
+ c(pe, L) >= 0 || Po(a.clickOutsideDeactivates, L) || Po(a.allowOutsideClick, L) || (L.preventDefault(), L.stopImmediatePropagation());
2293
2558
  }, V = function() {
2294
2559
  if (s.active)
2295
2560
  return by.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? _y(function() {
@@ -2395,7 +2660,7 @@ var by = {
2395
2660
  }
2396
2661
  }), o.updateContainerElements(t), o;
2397
2662
  };
2398
- const DA = `
2663
+ const nP = `
2399
2664
  <dialog open class="cobrowse-dialog" data-test-id="cobrowse-dialog" role="alertdialog" aria-labelledby="cobrowse-dialog-title" aria-describedby="cobrowse-dialog-content">
2400
2665
  <h1 id="cobrowse-dialog-title">$title</h1>
2401
2666
  <p id="cobrowse-dialog-content" class="cobrowse-dialog_content">$content</p>
@@ -2403,7 +2668,7 @@ const DA = `
2403
2668
  <button class="cobrowse-dialog_allow js-cobrowse-allow" data-test-id="cobrowse-dialog_allow">$allow</button>
2404
2669
  <button class="cobrowse-dialog_deny js-cobrowse-deny" data-test-id="cobrowse-dialog_deny">$deny</button>
2405
2670
  </div>
2406
- </dialog>`, jA = '<button class="cobrowse-end js-cobrowse-end">$end</button>';
2671
+ </dialog>`, iP = '<button class="cobrowse-end js-cobrowse-end">$end</button>';
2407
2672
  class em {
2408
2673
  constructor(t, r) {
2409
2674
  ht(this, "_cobrowse");
@@ -2422,10 +2687,10 @@ class em {
2422
2687
  return this._options.messages;
2423
2688
  }
2424
2689
  get template() {
2425
- return this._options.template || DA;
2690
+ return this._options.template || nP;
2426
2691
  }
2427
2692
  static async create(t, r) {
2428
- const n = await FA(r);
2693
+ const n = await aP(r);
2429
2694
  n.license = t.license;
2430
2695
  const i = t.trustedOrigins || [];
2431
2696
  return i.push(location.origin), n.trustedOrigins = i, [
@@ -2472,7 +2737,7 @@ class em {
2472
2737
  const s = r.querySelector(".js-cobrowse-deny");
2473
2738
  s == null || s.addEventListener("click", () => {
2474
2739
  i(!1), n();
2475
- }), this.focusTrap = LA(r, {
2740
+ }), this.focusTrap = rP(r, {
2476
2741
  clickOutsideDeactivates: !0,
2477
2742
  returnFocusOnDeactivate: !0
2478
2743
  }), this.focusTrap.activate();
@@ -2504,7 +2769,7 @@ class em {
2504
2769
  );
2505
2770
  }
2506
2771
  setupSessionControl() {
2507
- const t = this._options.sessionControlsTemplate || jA, r = document.createElement("div");
2772
+ const t = this._options.sessionControlsTemplate || iP, r = document.createElement("div");
2508
2773
  r.className = "cobrowse-end-wrapper", r.setAttribute("lang", this.lang), r.innerHTML = sc(t, { end: this.messages.endSessionText });
2509
2774
  const n = () => {
2510
2775
  this.endSession();
@@ -2522,7 +2787,7 @@ class em {
2522
2787
  };
2523
2788
  }
2524
2789
  }
2525
- function FA(e) {
2790
+ function aP(e) {
2526
2791
  return window.CobrowseIO ? window.CobrowseIO : new Promise((t) => {
2527
2792
  const r = document.createElement("script");
2528
2793
  r.src = e, r.async = !0;
@@ -2539,358 +2804,93 @@ function sc(e, t) {
2539
2804
  r = r.replace(i, t[n]);
2540
2805
  }), r;
2541
2806
  }
2542
- const UA = {
2543
- confirmSessionTitle: "Screen Share Session Request",
2544
- confirmSessionContent: "Do you want to share your current screen with the agent?",
2545
- endSessionText: "End Screen Share Session",
2546
- confirmRemoteControlTitle: "Remote Access Request",
2547
- confirmRemoteControlContent: "The agent would like to have access to your currently shared screen to further assist you. Do you want to allow this?",
2548
- confirmFullDeviceTitle: "Screen Share Request",
2549
- confirmFullDeviceContent: "Do you want to share your full screen with the agent? The agent will not be able to control anything on the screen.",
2550
- allowText: "Allow",
2551
- denyText: "Deny"
2552
- }, BA = {
2553
- confirmSessionTitle: "Solicitud de sesión de conavegación",
2554
- confirmSessionContent: "¿Desea compartir su pantalla actual con el agente?",
2555
- endSessionText: "Fin de la sesión de conavegación",
2556
- confirmRemoteControlTitle: "Solicitud de acceso remoto",
2557
- confirmRemoteControlContent: "El agente desea tener acceso a su pantalla actual compartida para seguir asistiéndole. ¿Desea permitirlo?",
2558
- confirmFullDeviceTitle: "Solicitud de compartir pantalla",
2559
- confirmFullDeviceContent: "¿Desea compartir su pantalla completa con el agente? El agente no podrá controlar nada de la pantalla.",
2560
- allowText: "Permitir",
2561
- denyText: "Denegar"
2562
- }, qA = {
2563
- confirmSessionTitle: "Demande de session de co-navigation",
2564
- confirmSessionContent: "Voulez-vous partager votre écran actuel avec l'agent ?",
2565
- endSessionText: "Terminer la session de co-navigation",
2566
- confirmRemoteControlTitle: "Demande d'accès à distance",
2567
- confirmRemoteControlContent: "L'agent souhaite avoir accès à l'écran que vous partagez actuellement pour mieux vous aider. Voulez-vous l'y autoriser ?",
2568
- confirmFullDeviceTitle: "Demande de partage d'écran",
2569
- confirmFullDeviceContent: "Voulez-vous partager votre écran complet avec l'agent ? L'agent ne sera pas en mesure de contrôler quoi que ce soit sur l'écran.",
2570
- allowText: "Autoriser",
2571
- denyText: "Refuser"
2572
- }, zA = {
2573
- confirmSessionTitle: "Screen Share-Sitzungsanfrage",
2574
- confirmSessionContent: "Möchten Sie Ihren aktuellen Bildschirm für den Agenten freigeben?",
2575
- endSessionText: "Screen Share-Sitzung beenden",
2576
- confirmRemoteControlTitle: "Fernzugriff-Anfrage",
2577
- confirmRemoteControlContent: "Der Agent möchte Zugriff auf Ihren aktuell freigegebenen Bildschirm erhalten, um Ihnen weiterhelfen zu können. Möchten Sie dies erlauben?",
2578
- confirmFullDeviceTitle: "Bildschirmfreigabe",
2579
- confirmFullDeviceContent: "Möchten Sie Ihren gesamten Bildschirm für den Agenten freigeben? Der Agent ist dadurch nicht in der Lage, Elemente auf Ihrem Bildschirm zu steuern.",
2580
- allowText: "Erlauben",
2581
- denyText: "Verweigern"
2582
- }, WA = {
2583
- confirmSessionTitle: "共同ブラウジングセッションリクエスト",
2584
- confirmSessionContent: "現在の画面を担当者と共有したいですか。",
2585
- endSessionText: "共同ブラウジングセッションを終了",
2586
- confirmRemoteControlTitle: "リモートアクセスリクエスト",
2587
- confirmRemoteControlContent: "担当者は、お客様をさらにお手伝いするために、現在共有中の画面へのアクセスを希望しています。許可しますか。",
2588
- confirmFullDeviceTitle: "画面共有リクエスト",
2589
- confirmFullDeviceContent: "画面全体を担当者と共有したいですか。担当者は画面上で一切の操作ができません。",
2590
- allowText: "許可",
2591
- denyText: "拒否"
2592
- }, GA = {
2593
- confirmSessionTitle: "코브라우징 세션 요청",
2594
- confirmSessionContent: "현재 화면을 상담원과 공유하시겠습니까?",
2595
- endSessionText: "코브라우징 세션 종료",
2596
- confirmRemoteControlTitle: "원격 액세스 요청",
2597
- confirmRemoteControlContent: "상담원이 추가 지원을 위해 현재 공유된 화면에 액세스할 수 있기를 원합니다. 허용하시겠습니까?",
2598
- confirmFullDeviceTitle: "화면 공유 요청",
2599
- confirmFullDeviceContent: "상담원과 전체 화면을 공유하시겠습니까? 상담원은 화면의 어떤 부분도 제어할 수 없습니다.",
2600
- allowText: "허용",
2601
- denyText: "거절"
2602
- }, HA = {
2603
- confirmSessionTitle: "Richiesta di sessione di Screen Share",
2604
- confirmSessionContent: "Vuoi condividere la tua schermata attuale con l'operatore?",
2605
- endSessionText: "Termina sessione di Screen Share",
2606
- confirmRemoteControlTitle: "Richiesta di accesso remoto",
2607
- confirmRemoteControlContent: "L'operatore vorrebbe accedere alla tua schermata attualmente condivisa per assisterti al meglio. Acconsenti?",
2608
- confirmFullDeviceTitle: "Richiesta di condivisione schermo",
2609
- confirmFullDeviceContent: "Vuoi condividere il tuo intero schermo con l'operatore? L'operatore non potrà controllare nessun elemento sullo schermo.",
2610
- allowText: "Consenti",
2611
- denyText: "Rifiuta"
2612
- }, VA = {
2613
- confirmSessionTitle: "同步浏览会话请求",
2614
- confirmSessionContent: "您是否要向该客服代表共享当前的屏幕?",
2615
- endSessionText: "结束同步浏览会话",
2616
- confirmRemoteControlTitle: "远程访问请求",
2617
- confirmRemoteControlContent: "为了进一步协助您,客服代表想访问您当前的共享屏幕。您是否允许这样做?",
2618
- confirmFullDeviceTitle: "屏幕共享请求",
2619
- confirmFullDeviceContent: "您是否要向该客服代表共享全屏?客服代表将不能控制屏幕上的任何东西。",
2620
- allowText: "允许",
2621
- denyText: "拒绝"
2622
- }, KA = {
2623
- confirmSessionTitle: "Samwebbläsningssession har begärts",
2624
- confirmSessionContent: "Vill du dela din aktuella skärm med vår medarbetare?",
2625
- endSessionText: "Avsluta samwebbläsningssession",
2626
- confirmRemoteControlTitle: "Begäran om fjärråtkomst",
2627
- confirmRemoteControlContent: "Vår medarbetare skulle vilja få åtkomst till skärmen som du delar just nu för att kunna hjälpa dig vidare. Vill du tillåta detta?",
2628
- confirmFullDeviceTitle: "Begäran om skärmdelning",
2629
- confirmFullDeviceContent: "Vill du dela hela skärmen med medarbetaren? Medarbetaren kommer inte kunna kontrollera något på skärmen.",
2630
- allowText: "Tillåt",
2631
- denyText: "Neka"
2632
- }, JA = {
2633
- confirmSessionTitle: "Solicitação de Sessão de Co-navegação",
2634
- confirmSessionContent: "Deseja partilhar o seu ecrã atual com o agente?",
2635
- endSessionText: "Terminar Sessão de Co-navegação",
2636
- confirmRemoteControlTitle: "Solicitação de Acesso Remoto",
2637
- confirmRemoteControlContent: "O agente gostaria de ter acesso ao seu ecrã partilhado atualmente para ajudá-lo ainda mais. Quer permitir isto?",
2638
- confirmFullDeviceTitle: "Solicitação de Partilha de Ecrã",
2639
- confirmFullDeviceContent: "Deseja partilhar o seu ecrã inteiro com o agente? O agente não poderá controlar nada no ecrã.",
2640
- allowText: "Permitir",
2641
- denyText: "Negar"
2642
- }, YA = {
2643
- confirmSessionTitle: "Pyyntö yhteisselausistunnosta",
2644
- confirmSessionContent: "Haluatko jakaa nykyisen näyttösi edustajan kanssa?",
2645
- endSessionText: "Lopeta yhteisselausistunto",
2646
- confirmRemoteControlTitle: "Etäkäyttöpyyntö",
2647
- confirmRemoteControlContent: "Edustaja haluaisi saada käyttää tällä hetkellä jakamaasi näyttöä voidakseen auttaa sinua enemmän. Haluatko antaa siihen luvan?",
2648
- confirmFullDeviceTitle: "Näytön jakamispyyntö",
2649
- confirmFullDeviceContent: "Haluatko jakaa koko näyttösi edustajan kanssa? Edustaja ei pysty käyttämään mitään näytöllä olevaa.",
2650
- allowText: "Salli",
2651
- denyText: "Estä"
2652
- }, XA = {
2653
- confirmSessionTitle: "Samlesingsøkten er startet",
2654
- confirmSessionContent: "Vil du dele skjermen din med agenten?",
2655
- endSessionText: "Avslutt samlesingsøkt",
2656
- confirmRemoteControlTitle: "Forespørsel om fjerntilgang",
2657
- confirmRemoteControlContent: "Agenten vil ha tilgang til skjermen din for å kunne hjelpe deg videre. Vil du tillate dette?",
2658
- confirmFullDeviceTitle: "Forespørsel om skjermdeling",
2659
- confirmFullDeviceContent: "Vil du dele hele skjermen din med agenten? Agenten kan ikke kontrollere noe på skjermen.",
2660
- allowText: "Tillat",
2661
- denyText: "Avvis"
2662
- }, QA = {
2663
- confirmSessionTitle: "Forespørgsel om sambrowsingsession",
2664
- confirmSessionContent: "Vil du dele din nuværende skærm med agenten",
2665
- endSessionText: "Afslut sambrowsingsession",
2666
- confirmRemoteControlTitle: "Anmodning om fjernadgang",
2667
- confirmRemoteControlContent: "Agenten vil gerne have adgang til din nuværende delte skærm for at kunne hjælpe dig yderligere. Ønsker du at tillade dette?",
2668
- confirmFullDeviceTitle: "Forespørgsel om skærmdeling",
2669
- confirmFullDeviceContent: "Vil du dele din fulde skærm med agenten? Agenten vil ikke kunne styre noget på skærmen",
2670
- allowText: "Tillad",
2671
- denyText: "Afvis"
2672
- }, ZA = {
2673
- confirmSessionTitle: "Verzoek om cobrowse-sessie",
2674
- confirmSessionContent: "Wilt u uw huidige scherm delen met de agent?",
2675
- endSessionText: "Cobrowse-sessie beëindigen",
2676
- confirmRemoteControlTitle: "Verzoek om toegang op afstand",
2677
- confirmRemoteControlContent: "De agent wil graag toegang hebben tot uw momenteel gedeelde scherm om u verder te helpen. Wilt u dit toestaan?",
2678
- confirmFullDeviceTitle: "Verzoek om scherm te delen",
2679
- confirmFullDeviceContent: "Wilt u uw volledige scherm delen met de agent? De agent kan niets op het scherm bedienen.",
2680
- allowText: "Toestaan",
2681
- denyText: "Weigeren"
2682
- }, eP = {
2683
- confirmSessionTitle: "Oturum İsteğini Eş Zamanlı Tara",
2684
- confirmSessionContent: "Mevcut ekranınızı temsilciyle paylaşmak ister misiniz?",
2685
- endSessionText: "Eş zamanlı Oturum Taramayı Sonlandır",
2686
- confirmRemoteControlTitle: "Uzaktan Erişim İsteği",
2687
- confirmRemoteControlContent: "Temsilci şu anda paylaşılan ekranınıza size daha fazla yardımcı olabilmek için erişim sağlamak istiyor. Buna izin vermek istiyor musunuz?",
2688
- confirmFullDeviceTitle: "Ekran Paylaşım İsteği",
2689
- confirmFullDeviceContent: "Temsilciyle tam ekranınızı paylaşmak istiyor musunuz? Temsilci ekrandaki hiçbir şeyi kontrol edemez.",
2690
- allowText: "İzin Ver",
2691
- denyText: "Reddet"
2692
- }, tP = {
2693
- confirmSessionTitle: "Yêu cầu phiên cùng duyệt",
2694
- confirmSessionContent: "Bạn có muốn chia sẻ màn hình hiện tại của mình với chuyên viên không?",
2695
- endSessionText: "Kết thúc phiên cùng duyệt",
2696
- confirmRemoteControlTitle: "Yêu cầu truy cập từ xa",
2697
- confirmRemoteControlContent: "Chuyên viên muốn được cấp quyền truy cập vào màn hình bạn đang chia sẻ để hỗ trợ bạn nhiều hơn. Bạn có muốn cho phép không?",
2698
- confirmFullDeviceTitle: "Yêu cầu chia sẻ màn hình",
2699
- confirmFullDeviceContent: "Bạn có muốn chia sẻ toàn bộ màn hình của mình với chuyên viên không? Chuyên viên sẽ không thể điều khiển bất cứ phần nào trên màn hình.",
2700
- allowText: "Cho phép",
2701
- denyText: "Từ chối"
2702
- }, rP = {
2703
- confirmSessionTitle: "ขอเซสชันเรียกดูร่วม",
2704
- confirmSessionContent: "คุณต้องการแชร์หน้าจอปัจจุบันกับตัวแทนหรือไม่",
2705
- endSessionText: "สิ้นสุดเซสชันเรียกดูร่วม",
2706
- confirmRemoteControlTitle: "ขอการเข้าถึงระยะไกล",
2707
- confirmRemoteControlContent: "ตัวแทนต้องการเข้าถึงหน้าจอของคุณที่แชร์อยู่ในปัจจุบันเพื่อให้ความช่วยเหลือคุณต่อไป คุณจะอนุญาตหรือไม่",
2708
- confirmFullDeviceTitle: "ขอแชร์หน้าจอ",
2709
- confirmFullDeviceContent: "คุณต้องการแชร์ทั้งหน้าของคุณกับตัวแทนหรือไม่ ตัวแทนจะไม่สามารถควบคุมอะไรบนหน้าจอ",
2710
- allowText: "ยินยอม",
2711
- denyText: "ปฏิเสธ"
2712
- }, nP = {
2713
- confirmSessionTitle: "طلب جلسة تصفح مشترك",
2714
- confirmSessionContent: "هل تريد مشاركة شاشتك الحالية مع الموظف؟",
2715
- endSessionText: "إنهاء جلسة التصفح المشترك",
2716
- confirmRemoteControlTitle: "طلب التحكم عن بعد",
2717
- confirmRemoteControlContent: "يرغب مسئول الدعم في رؤية شاشتك المشاركة حالياً لمساعدتك بشكلٍ أكبر. هل تسمح بذلك؟",
2718
- confirmFullDeviceTitle: "طلب مشاركة الشاشة",
2719
- confirmFullDeviceContent: "هل تريد مشاركة شاشتك الكاملة مع مسئول الدعم؟ لن يتمكن المسئول من التحكم في أي شيء على الشاشة.",
2720
- allowText: "السماح",
2721
- denyText: "الرفض"
2722
- }, iP = {
2723
- confirmSessionTitle: "Žádost o relaci Screen Share",
2724
- confirmSessionContent: "Chcete svou současnou obrazovku sdílet s agentem?",
2725
- endSessionText: "Ukončit relaci Screen Share",
2726
- confirmRemoteControlTitle: "Žádost o vzdálený přístup",
2727
- confirmRemoteControlContent: "Agent by rád získal přístup k vaší stávající sdílené obrazovce, aby vám mohl dál pomoci. Chcete mu přístup povolit?",
2728
- confirmFullDeviceTitle: "Žádost o sdílení obrazovky",
2729
- confirmFullDeviceContent: "Chcete svou celou obrazovku sdílet s agentem? Agent nebude moci ovládat nic, co na obrazovce je.",
2730
- allowText: "Povolit",
2731
- denyText: "Zamítnout"
2732
- }, aP = {
2733
- confirmSessionTitle: "Prośba o sesję Screen Share",
2734
- confirmSessionContent: "Czy chcesz udostępnić konsultantowi swój bieżący ekran?",
2735
- endSessionText: "Zakończ sesję Screen Share",
2736
- confirmRemoteControlTitle: "Prośba o zdalny dostęp",
2737
- confirmRemoteControlContent: "Konsultant prosi o dostęp do Twojego aktualnie udostępnionego ekranu, aby udzielić Ci dalszej pomocy. Czy chcesz na to zezwolić?",
2738
- confirmFullDeviceTitle: "Prośba o udostępnienie ekranu",
2739
- confirmFullDeviceContent: "Czy chcesz udostępnić konsultantowi swój cały ekran? Konsultant nie będzie mógł kontrolować niczego na ekranie.",
2740
- allowText: "Zezwól",
2741
- denyText: "Odmów"
2742
- }, sP = {
2743
- confirmSessionTitle: "Screen Share munkameneti kérés",
2744
- confirmSessionContent: "Megosztja az aktuális képernyőjét a képviselővel?",
2745
- endSessionText: "Screen Share munkamenet befejezése",
2746
- confirmRemoteControlTitle: "Távoli hozzáférési kérés",
2747
- confirmRemoteControlContent: "A képviselő szeretne hozzáférni a jelenleg megosztott képernyőjéhez, hogy további segítséget nyújthasson. Engedélyezi ezt?",
2748
- confirmFullDeviceTitle: "Képernyőmegosztási kérelem",
2749
- confirmFullDeviceContent: "Megosztja a teljes képernyőjét az ügynökkel? Az ügynök semmit sem tud majd irányítani a képernyőn.",
2750
- allowText: "Engedélyezés",
2751
- denyText: "Elutasítás"
2752
- }, oP = {
2753
- confirmSessionTitle: "Запрос сеанса совместного просмотра веб-страниц",
2754
- confirmSessionContent: "Хотите поделиться вашим текущим экраном с представителем?",
2755
- endSessionText: "Завершить сеанс совместного просмотра веб-страниц",
2756
- confirmRemoteControlTitle: "Запрос на удаленный доступ",
2757
- confirmRemoteControlContent: "Представитель хочет получить доступ к вашему текущему экрану, которым вы делитесь, чтобы помочь вам. Хотите разрешить это?",
2758
- confirmFullDeviceTitle: "Запрос на совместный просмотр экрана",
2759
- confirmFullDeviceContent: "Хотите поделиться вашим полный экраном с представителем? Агент не сможет выполнять никаких действий на экране.",
2760
- allowText: "Разрешить",
2761
- denyText: "Отказать"
2762
- }, uP = {
2763
- confirmSessionTitle: "सह-ब्राउज़ सत्र अनुरोध किया गया",
2764
- confirmSessionContent: "क्या आप अपनी वर्तमान स्क्रीन को एजेंट के साथ साझा करना चाहते हैं?",
2765
- endSessionText: "सह-ब्राउज़ सत्र समाप्त करें",
2766
- confirmRemoteControlTitle: "रिमोट पहुँच का अनुरोध किया गया",
2767
- confirmRemoteControlContent: "एजेंट आपकी वर्तमान साझा स्क्रीन तक पहुँच प्राप्त करना चाहेगा ताकि वह आपकी और सहायता कर सके। क्या आप इसकी अनुमति देना चाहते हैं?",
2768
- confirmFullDeviceTitle: "स्क्रीन साझाकरण अनुरोध",
2769
- confirmFullDeviceContent: "क्या आप अपनी पूरी स्क्रीन एजेंट के साथ साझा करना चाहते हैं? एजेंट स्क्रीन पर कुछ भी नियंत्रित नहीं कर पाएगा।",
2770
- allowText: "अनुमति दें",
2771
- denyText: "अस्वीकार करें"
2772
- }, cP = {
2773
- confirmSessionTitle: "Solicitare sesiune de co-navigare",
2774
- confirmSessionContent: "Doriți să partajați ecranul dumneavoastră curent cu agentul?",
2775
- endSessionText: "Încheiați sesiunea de co-navigare",
2776
- confirmRemoteControlTitle: "Cerere de acces la distanță",
2777
- confirmRemoteControlContent: "Agentul ar dori să aibă acces la ecranul dumneavoastră partajat pentru a vă ajuta în continuare. Doriți să permiteți acest lucru?",
2778
- confirmFullDeviceTitle: "Cerere de partajare a ecranului",
2779
- confirmFullDeviceContent: "Doriți să partajați ecranul dumneavoastră complet cu agentul? Agentul nu va putea controla nimic de pe ecran.",
2780
- allowText: "Permiteți",
2781
- denyText: "Refuzați"
2782
- }, lP = {
2783
- confirmSessionTitle: "Zahtjev za sesiju zajedničkog pregledavanja",
2784
- confirmSessionContent: "Želite li podijeliti svoj trenutni zaslon s agentom?",
2785
- endSessionText: "Završi sesiju zajedničkog pregledavanja",
2786
- confirmRemoteControlTitle: "Zahtjev za daljinski pristup",
2787
- confirmRemoteControlContent: "Agent želi imati pristup vašem trenutno dijeljenom zaslonu kako bi Vam dodatno pomogao. Želite li to dopustiti?",
2788
- confirmFullDeviceTitle: "Zahtjev za dijeljenje zaslona",
2789
- confirmFullDeviceContent: "Želite li s agentom podijeliti svoj cijeli zaslon? Agent neće moći ništa kontrolirati na ekranu.",
2790
- allowText: "Dopustiti",
2791
- denyText: "Odbiti"
2792
- }, fP = {
2793
- confirmSessionTitle: "Запит на сесію спільного перегляду",
2794
- confirmSessionContent: "Чи Ви хочете поділитись з агентом своїм поточним екраном?",
2795
- endSessionText: "Завершити сесію спільного перегляду",
2796
- confirmRemoteControlTitle: "Запит на віддалений доступ",
2797
- confirmRemoteControlContent: "Агент хоче отримати доступ до Вашого поточного екрану, який переглядається спільно, щоб допомогти Вам. Ви дозволяєте?",
2798
- confirmFullDeviceTitle: "Запит на спільний перегляд екрану",
2799
- confirmFullDeviceContent: "Чи Ви хочете поділитись з агентом своїм екраном повністю? Агент не зможе нічого на ньому контролювати.",
2800
- allowText: "Дозволити",
2801
- denyText: "Відмовити"
2802
- }, dP = {
2803
- confirmSessionTitle: "Kahilingan sa Screen Share na Sesyon",
2804
- confirmSessionContent: "Gusto mo bang ibahagi ang iyong kasalukuyang screen sa agent?",
2805
- endSessionText: "Tapusin ang Screen Share na Sesyon",
2806
- confirmRemoteControlTitle: "Kahilingan sa Remote Access",
2807
- confirmRemoteControlContent: "Gusto ng agent na magkaroon ng access sa iyong nakabahaging screen sa kasalukuyan upang mas matulungan ka. Gusto mo bang payagan ito?",
2808
- confirmFullDeviceTitle: "Kahilingan sa Pagbahagi ng Screen",
2809
- confirmFullDeviceContent: "Gusto mo bang ibahagi ang buong screen sa agent? Hindi makokontrol ng agent ang kahit ano sa screen.",
2810
- allowText: "Payagan",
2811
- denyText: "Tanggihan"
2812
- }, Po = {
2813
- en: UA,
2814
- es: BA,
2815
- "es-MX": {
2816
- confirmSessionTitle: "Solicitud de Sesión de Co-navegación",
2817
- confirmSessionContent: "¿Quiere compartir su pantalla actual con el agente?",
2818
- endSessionText: "Fin de la sesión de co-navegación",
2819
- confirmRemoteControlContent: "El agente desea tener acceso a su pantalla actualmente compartida para poder ayudarlo. ¿Quiere permitirlo?",
2820
- confirmFullDeviceTitle: "Petición de pantalla compartida",
2821
- confirmFullDeviceContent: "¿Quiere compartir su pantalla completa con el agente? El agente no podrá controlar nada en la pantalla."
2822
- },
2823
- fr: qA,
2824
- "fr-CA": {
2825
- confirmSessionTitle: "Demande de session co-navigation",
2826
- confirmSessionContent: "Voulez-vous partager votre écran actuel avec l'agent?",
2827
- endSessionText: "Fin de la session de co-navigation",
2828
- confirmRemoteControlContent: "L'agent souhaiterait avoir accès à votre écran actuellement partagé pour mieux vous aider. Voulez-vous l'autoriser?",
2829
- confirmFullDeviceContent: "Voulez-vous partager votre écran complet avec l'agent? L'agent ne sera pas en mesure de contrôler quoi que ce soit sur l'écran."
2830
- },
2831
- de: zA,
2832
- ja: WA,
2833
- ko: GA,
2834
- it: HA,
2835
- zh: VA,
2836
- "zh-Hant": {
2837
- confirmSessionTitle: "共同瀏覽工作階段要求",
2838
- confirmSessionContent: "要與專員分享您目前的畫面嗎?",
2839
- endSessionText: "結束共同瀏覽工作階段",
2840
- confirmRemoteControlTitle: "遠端存取要求",
2841
- confirmRemoteControlContent: "專員想要存取您目前分享的螢幕畫面以進一步協助您。要允許嗎?",
2842
- confirmFullDeviceTitle: "螢幕畫面分享要求",
2843
- confirmFullDeviceContent: "要與專員分享全螢幕嗎?專員將無法控制畫面上的任何項目。",
2844
- allowText: "允許",
2845
- denyText: "拒絕"
2807
+ const fd = "ujet:", Br = {
2808
+ set(e, t) {
2809
+ return localStorage.setItem(fd + e, t);
2846
2810
  },
2847
- sv: KA,
2848
- pt: JA,
2849
- "pt-BR": {
2850
- confirmSessionContent: "Você deseja compartilhar sua tela atual com o agente?",
2851
- endSessionText: "Encerrar Sessão de Co-navegação",
2852
- confirmRemoteControlContent: "O agente gostaria de acessar sua tela atualmente compartilhada para melhor ajudá-lo. Você deseja permitir isso?",
2853
- confirmFullDeviceTitle: "Solicitação de Compartilhamento de Tela",
2854
- confirmFullDeviceContent: "Você deseja compartilhar sua tela inteira com o agente? O agente não poderá controlar nada na tela."
2811
+ get(e) {
2812
+ return localStorage.getItem(fd + e);
2855
2813
  },
2856
- fi: YA,
2857
- nb: XA,
2858
- da: QA,
2859
- nl: ZA,
2860
- tr: eP,
2861
- vi: tP,
2862
- th: rP,
2863
- ar: nP,
2864
- cs: iP,
2865
- pl: aP,
2866
- hu: sP,
2867
- ru: oP,
2868
- hi: uP,
2869
- ro: cP,
2870
- hr: lP,
2871
- uk: fP,
2872
- tl: dP
2814
+ del(e) {
2815
+ return localStorage.removeItem(fd + e);
2816
+ }
2817
+ }, sP = Date.now(), LT = {
2818
+ href: window.location.href,
2819
+ interval: 24 * 60 * 60
2820
+ };
2821
+ function oP(e) {
2822
+ if (!Array.isArray(e) || !e.length)
2823
+ return null;
2824
+ const t = dP(), r = t === 0, n = t + 1;
2825
+ return pP(n), e.filter((a) => {
2826
+ const s = cP(a, LT.href), o = lP(a.visitor_type, r), u = n >= a.page_visit_count, c = !fP(a.id);
2827
+ return s && o && u && c;
2828
+ }).sort((a, s) => a.stay_time - s.stay_time)[0] || null;
2829
+ }
2830
+ function uP(e, t) {
2831
+ const r = e.stay_time * 1e3, n = Math.max(r - (Date.now() - sP), 0);
2832
+ setTimeout(() => {
2833
+ t(e), Br.set(`trigger:${e.id}`, (Date.now() / 1e3).toString());
2834
+ }, n);
2835
+ }
2836
+ const cP = (e, t) => {
2837
+ const {
2838
+ keywords_included_or: r = [],
2839
+ keywords_excluded_or: n = [],
2840
+ keywords_included: i = [],
2841
+ keywords_excluded: a = []
2842
+ } = e;
2843
+ if (CO(r, n, i, a))
2844
+ return !0;
2845
+ if (r.length || n.length) {
2846
+ const u = r.some((l) => l.every((p) => t.includes(p))), c = n.length > 0 && n.every((l) => l.every((p) => !t.includes(p)));
2847
+ return u || c;
2848
+ }
2849
+ const s = i.filter((u) => t.indexOf(u) !== -1).length, o = a.filter((u) => t.indexOf(u) === -1).length;
2850
+ return !!s || !!o;
2873
2851
  };
2852
+ function lP(e, t) {
2853
+ return e === "visitor_type_new" ? t : e === "visitor_type_returning" ? !t : !0;
2854
+ }
2855
+ function fP(e) {
2856
+ try {
2857
+ const t = parseInt(Br.get(`trigger:${e}`), 10);
2858
+ return Date.now() / 1e3 - t < LT.interval;
2859
+ } catch {
2860
+ return !1;
2861
+ }
2862
+ }
2863
+ function dP() {
2864
+ try {
2865
+ const e = Br.get("visits");
2866
+ return e ? parseInt(e, 10) : 0;
2867
+ } catch {
2868
+ return 0;
2869
+ }
2870
+ }
2874
2871
  function pP(e) {
2875
- const t = e.split("-")[0];
2876
- return Po[e] ? e === t ? Po[e] : { ...Po[t], ...Po[e] } : Po[t];
2872
+ try {
2873
+ Br.set("visits", e.toString());
2874
+ } catch (t) {
2875
+ console.error(t);
2876
+ }
2877
2877
  }
2878
2878
  const hP = ["photo", "video", "audio", "document"];
2879
2879
  let Ate = class {
2880
2880
  constructor(t) {
2881
- ht(this, "VERSION", pT);
2881
+ ht(this, "VERSION", hT);
2882
2882
  ht(this, "options");
2883
2883
  ht(this, "communicator");
2884
2884
  ht(this, "methods");
2885
- ht(this, "events", new wT());
2885
+ ht(this, "events", new ST());
2886
2886
  ht(this, "request");
2887
2887
  // current working chat
2888
2888
  ht(this, "chat");
2889
2889
  // current cobrowse client
2890
2890
  ht(this, "cobrowse");
2891
- this.options = t, this.communicator = new IO(t, this.events);
2891
+ this.options = t, this.communicator = new OO(t, this.events);
2892
2892
  const r = this.communicator.request.bind(this.communicator);
2893
- this.methods = new YO(r), this.request = r, t.host && TT.setPath(t.host), Kr.companyId = t.companyId, t.tenant && (Kr.tenant = t.tenant);
2893
+ this.methods = new CA(r), this.request = r, t.host && pT.setPath(t.host), Kr.companyId = t.companyId, t.tenant && (Kr.tenant = t.tenant);
2894
2894
  }
2895
2895
  get deviceId() {
2896
2896
  return Kr.deviceId;
@@ -2899,10 +2899,10 @@ let Ate = class {
2899
2899
  return this.communicator.user;
2900
2900
  }
2901
2901
  get lang() {
2902
- return this.options.lang ? this.options.lang : Vr.get("lang") || "en";
2902
+ return this.options.lang ? this.options.lang : Br.get("lang") || "en";
2903
2903
  }
2904
2904
  set lang(t) {
2905
- this.options.lang || Vr.set("lang", t);
2905
+ this.options.lang || Br.set("lang", t);
2906
2906
  }
2907
2907
  destroy() {
2908
2908
  this.communicator.destroy(), this.events.destroy();
@@ -2913,94 +2913,73 @@ let Ate = class {
2913
2913
  off(t, r) {
2914
2914
  this.events.removeEventListener(t, r);
2915
2915
  }
2916
- // private usage
2917
- _triggerEvent(t, r) {
2918
- this.events.triggerEvent(t, r);
2919
- }
2920
2916
  async getCompany() {
2921
- const t = await this.methods.getCompany();
2922
- return Kr.tenant = t.subdomain, t;
2917
+ return this.methods.getCompany().then((t) => (Kr.tenant = t.subdomain, t)).catch(() => null);
2923
2918
  }
2924
2919
  async runTrigger(t) {
2925
- const r = await this.methods.getTriggers(this.options.companyId), n = ZO(r);
2926
- n && eA(n, t);
2920
+ const r = await this.methods.getTriggers(this.options.companyId).then((i) => i).catch(() => []), n = oP(r);
2921
+ n && uP(n, t);
2927
2922
  }
2928
2923
  trackClientEvents(t) {
2929
2924
  return this.methods.trackClientEvents(t);
2930
2925
  }
2931
- getProhibitedFileTypes() {
2932
- return this.methods.listFileTypes();
2926
+ async getProhibitedFileTypes() {
2927
+ return this.methods.listFileTypes().then((t) => t).catch(() => []);
2933
2928
  }
2934
- getMenus(t, r) {
2935
- return this.methods.getMenus(r || this.lang, t);
2929
+ async getMenus(t, r) {
2930
+ return this.methods.getMenus(r || this.lang, t).then((n) => n).catch(() => null);
2936
2931
  }
2937
- getAfterHourMessage(t) {
2938
- return this.methods.getAfterHourMessage(t || this.lang);
2932
+ async getAfterHourMessage(t) {
2933
+ return this.methods.getAfterHourMessage(t || this.lang).then((r) => r).catch(() => "");
2939
2934
  }
2940
- getTimeSlots(t, r) {
2941
- return this.methods.getTimeSlots(t, r || this.lang);
2935
+ async getTimeSlots(t, r) {
2936
+ return this.methods.getTimeSlots(t, r || this.lang).then((n) => n).catch(() => []);
2942
2937
  }
2943
- getWaitTimes(t, r) {
2944
- return this.methods.getWaitTimes(t, r || this.lang);
2938
+ async getWaitTimes(t, r) {
2939
+ return this.methods.getWaitTimes(t, r || this.lang).then((n) => n).catch(() => null);
2945
2940
  }
2946
- verifyForm(t) {
2947
- return this.methods.verifyForm(t);
2941
+ async verifyForm(t) {
2942
+ return this.methods.verifyForm(t).then((r) => r).catch(() => !1);
2948
2943
  }
2949
- createCall(t, r) {
2944
+ async createCall(t, r) {
2950
2945
  var n;
2951
- return !r.email && ((n = this.user) != null && n.email) && (r.email = this.user.email), this.methods.createCall(Number(t), r.lang || this.lang, r);
2946
+ return !r.email && ((n = this.user) != null && n.email) && (r.email = this.user.email), this.methods.createCall(Number(t), r.lang || this.lang, r).then((i) => i).catch(() => null);
2952
2947
  }
2953
- loadCall(t) {
2954
- return this.methods.fetchCall(t);
2948
+ async loadCall(t) {
2949
+ return this.methods.fetchCall(t).then((r) => r).catch(() => null);
2955
2950
  }
2956
- cancelCall(t) {
2957
- return this.methods.cancelCall(t);
2951
+ async cancelCall(t) {
2952
+ return this.methods.cancelCall(t).then((r) => r).catch(() => null);
2958
2953
  }
2959
- createEmail(t, r) {
2960
- return this.methods.createEmail(t, r.lang || this.lang, r);
2954
+ async createEmail(t, r) {
2955
+ await this.methods.createEmail(t, r.lang || this.lang, r);
2961
2956
  }
2962
2957
  async createChat(t, r = {}) {
2963
- var i, a;
2958
+ var n, i;
2964
2959
  if (this.chat && this.chat.ongoing)
2965
2960
  throw new Error("There is an ongoing chat.");
2966
- !r.email && ((i = this.user) != null && i.email) && (r.email = this.user.email), r.cobrowsable === void 0 && (r.cobrowsable = !!((a = this.options.cobrowse) != null && a.enabled));
2967
- const n = await this.methods.createChat(Number(t), r.lang || this.lang, r, this.deviceId);
2968
- return this.registerOngoingChat(n), await n.clearMediaStore(), n;
2961
+ return !r.email && ((n = this.user) != null && n.email) && (r.email = this.user.email), r.cobrowsable === void 0 && (r.cobrowsable = !!((i = this.options.cobrowse) != null && i.enabled)), this.methods.createChat(Number(t), r.lang || this.lang, r, this.deviceId).then(async (a) => (this.registerOngoingChat(a), await a.clearMediaStore(), a)).catch(() => null);
2969
2962
  }
2970
2963
  async loadChat(t) {
2971
- const r = await this.methods.loadChat(t, this.deviceId);
2972
- return r.ongoing ? this.registerOngoingChat(r) : (Vr.del("chat"), Vr.del("cobrowse")), r;
2964
+ return this.methods.loadChat(t, this.deviceId).then((r) => (r.ongoing ? this.registerOngoingChat(r) : (Br.del("chat"), Br.del("cobrowse")), r)).catch(() => null);
2973
2965
  }
2974
2966
  async resumeChat(t) {
2975
2967
  var r;
2976
- if (((r = this.chat) == null ? void 0 : r.id) === Number(t)) {
2977
- const n = await this.methods.patch(`chats/${t}`, { status: "queued" });
2978
- return this.chat.update(n.data), this.chat;
2979
- } else {
2980
- const n = await this.methods.resumeChat(t, this.deviceId);
2981
- return this.registerOngoingChat(n), n;
2982
- }
2968
+ return ((r = this.chat) == null ? void 0 : r.id) === Number(t) ? this.methods.patch(`chats/${t}`, { status: "queued" }).then((n) => (this.chat.update(n.data), this.chat)).catch(() => null) : this.methods.resumeChat(t, this.deviceId).then((n) => (this.registerOngoingChat(n), n)).catch(() => null);
2983
2969
  }
2984
2970
  async loadOngoingChat() {
2985
- const t = Vr.get("chat");
2986
- if (t) {
2987
- const r = await this.loadChat(t);
2988
- if (r.ongoing)
2989
- return r;
2990
- Vr.del("chat");
2991
- }
2971
+ const t = Br.get("chat");
2972
+ return t ? this.loadChat(t).then((r) => r.ongoing ? r : (Br.del("chat"), null)).catch(() => (Br.del("chat"), null)) : null;
2992
2973
  }
2993
2974
  async finishChat() {
2994
- if (!this.chat)
2995
- return;
2996
- const t = await this.methods.finishChat(this.chat.id);
2997
- this.chat.update(t), this.chat.connected && this.chat.ended && await this.chat.disconnect();
2975
+ this.chat && await this.methods.finishChat(this.chat.id).then(async (t) => {
2976
+ this.chat.update(t), this.chat.connected && this.chat.ended && await this.chat.disconnect();
2977
+ });
2998
2978
  }
2999
2979
  async updatePostSession(t) {
3000
- if (!this.chat || t === lu.FINISHED || t === lu.WAITING)
3001
- return;
3002
- const r = await this.methods.updatePostSession(this.chat.id, t);
3003
- this.chat.update(r);
2980
+ this.chat && (t === lu.FINISHED || t === lu.WAITING || await this.methods.updatePostSession(this.chat.id, t).then((r) => {
2981
+ this.chat.update(r);
2982
+ }));
3004
2983
  }
3005
2984
  async destroyChat() {
3006
2985
  if (this.chat) {
@@ -3011,11 +2990,11 @@ let Ate = class {
3011
2990
  await this.chat.destroy(), this.chat = null, Kr.trackerId = "";
3012
2991
  }
3013
2992
  }
3014
- getChatDeflection() {
3015
- return this.methods.getChatDeflection(this.chat.id);
2993
+ async getChatDeflection() {
2994
+ return this.methods.getChatDeflection(this.chat.id).then((t) => t).catch(() => null);
3016
2995
  }
3017
2996
  sendChatTranscripts(t) {
3018
- return this.methods.sendChatTranscripts(this.chat.id, t);
2997
+ this.methods.sendChatTranscripts(this.chat.id, t);
3019
2998
  }
3020
2999
  async downloadChatTranscript() {
3021
3000
  return await this.methods.downloadChatTranscript(this.chat.id);
@@ -3023,46 +3002,46 @@ let Ate = class {
3023
3002
  async getPdfStatus(t) {
3024
3003
  return await this.methods.getPdfStatus(t);
3025
3004
  }
3026
- getChatSurvey() {
3027
- return this.methods.getChatSurvey(this.chat.id);
3005
+ async getChatSurvey() {
3006
+ return this.methods.getChatSurvey(this.chat.id).then((t) => t).catch(() => null);
3028
3007
  }
3029
3008
  sendChatSurvey(t) {
3030
3009
  if (this.chat.feedbackType !== "survey")
3031
3010
  throw new Error("Chat feedback type is: " + this.chat.feedbackType);
3032
- return this.methods.sendChatSurvey(this.chat.id, t);
3011
+ this.methods.sendChatSurvey(this.chat.id, t);
3033
3012
  }
3034
3013
  sendChatRate(t) {
3035
3014
  if (this.chat.feedbackType !== "rate")
3036
3015
  throw new Error("Chat feedback type is: " + this.chat.feedbackType);
3037
- return this.methods.rateChat(this.chat.id, t);
3016
+ this.methods.rateChat(this.chat.id, t);
3038
3017
  }
3039
3018
  escalateChat(t) {
3040
- return this.methods.escalateChat(this.chat.id, t);
3019
+ this.methods.escalateChat(this.chat.id, t);
3041
3020
  }
3042
3021
  trackChatEscalation(t, r) {
3043
- return this.methods.trackEscalation(this.chat.id, t, r);
3022
+ this.methods.trackEscalation(this.chat.id, t, r);
3044
3023
  }
3045
3024
  trackChatEndUserEvent(t) {
3046
3025
  var r;
3047
- return !t.end_user_name && ((r = this.user) != null && r.name) && (t.end_user_name = this.user.name), this.methods.trackChatEndUserEvent(this.chat.id, t);
3026
+ !t.end_user_name && ((r = this.user) != null && r.name) && (t.end_user_name = this.user.name), this.methods.trackChatEndUserEvent(this.chat.id, t);
3048
3027
  }
3049
- getChatHistory(t = 1) {
3050
- return this.methods.getChatHistory(t);
3028
+ async getChatHistory(t = 1) {
3029
+ return this.methods.getChatHistory(t).then((r) => r).catch(() => null);
3051
3030
  }
3052
3031
  async fetchMessages() {
3053
- const t = await this.chat.fetchMessages();
3054
- if (t.filter((r) => r.type === "server_message").length > 0) {
3055
- const r = await this.methods.listChatTaskMessages(this.chat.id);
3056
- return AO(t, r);
3057
- }
3058
- return t;
3032
+ return this.chat.fetchMessages().then(async (t) => {
3033
+ if (t.filter((r) => r.type === "server_message").length > 0) {
3034
+ const r = await this.methods.listChatTaskMessages(this.chat.id);
3035
+ return PO(t, r);
3036
+ }
3037
+ return t;
3038
+ }).catch(() => []);
3059
3039
  }
3060
3040
  async sendFileMessage(t) {
3061
- const r = await this.methods.uploadChatFile(this.chat.id, t);
3062
- return this.chat.sendMessage(r, t);
3041
+ return this.methods.uploadChatFile(this.chat.id, t).then((r) => this.chat.sendMessage(r, t)).catch(() => -1);
3063
3042
  }
3064
3043
  async sendTextMessage(t) {
3065
- const r = _T(t);
3044
+ const r = wT(t);
3066
3045
  if (r) {
3067
3046
  if (this.chat.inTask) {
3068
3047
  const n = await this.methods.sendChatTaskMessage(this.chat.id, r);
@@ -3097,24 +3076,24 @@ let Ate = class {
3097
3076
  async createCobrowseCode(t, r) {
3098
3077
  var a;
3099
3078
  await this.initializeCobrowse(t || this.lang);
3100
- let n = Vr.get("cobrowse");
3101
- n || (n = Date.now().toString(), Vr.set("cobrowse", n));
3079
+ let n = Br.get("cobrowse");
3080
+ n || (n = Date.now().toString(), Br.set("cobrowse", n));
3102
3081
  const i = {
3103
3082
  device_id: this.deviceId,
3104
3083
  device_name: `${Kr.application} / ${Kr.version}`,
3105
3084
  nonce: n,
3106
3085
  ...r
3107
3086
  };
3108
- return (a = this.user) != null && a.name && (i.user_name = this.user.name), this.cobrowse.setCustomData(i), this.cobrowse.createSessionCode();
3087
+ return (a = this.user) != null && a.name && (i.user_name = this.user.name), this.cobrowse.setCustomData(i), this.cobrowse.createSessionCode().then((s) => s).catch(() => null);
3109
3088
  }
3110
3089
  async startCobrowse(t = "end_user") {
3111
3090
  if (!this.chat.cobrowsable)
3112
3091
  throw new Error(`Chat ${this.chat.id} does not support cobrowse.`);
3113
3092
  const r = { chatId: `chat_${this.chat.id}` }, n = await this.createCobrowseCode(this.chat.lang, r);
3114
- if (n) {
3115
- const i = Vr.get("cobrowse");
3116
- await this.methods.requestChatCobrowse(this.chat.id, { code: n, from: t, nonce: i });
3117
- }
3093
+ if (!n)
3094
+ return;
3095
+ const i = Br.get("cobrowse");
3096
+ await this.methods.requestChatCobrowse(this.chat.id, { code: n, from: t, nonce: i });
3118
3097
  }
3119
3098
  async getMessageAttachment(t) {
3120
3099
  if (t.$userType !== "end_user" && hP.includes(t.type)) {
@@ -3125,7 +3104,7 @@ let Ate = class {
3125
3104
  }
3126
3105
  async initializeCobrowse(t) {
3127
3106
  if (!this.cobrowse) {
3128
- const r = await this.getCompany(), n = this.getCobrowseScript(r.cobrowse_domain), i = this.options.cobrowse.messages || pP(t), a = { ...this.options.cobrowse, messages: i, lang: t };
3107
+ const r = await this.getCompany(), n = this.getCobrowseScript(r.cobrowse_domain), i = this.options.cobrowse.messages || uA(t), a = { ...this.options.cobrowse, messages: i, lang: t };
3129
3108
  this.cobrowse = await em.create(a, n), this.cobrowse.start(), ["loaded", "updated", "ended"].forEach((o) => {
3130
3109
  this.cobrowse.on(`session.${o}`, (u) => {
3131
3110
  this.events.triggerEvent(`cobrowse.${o}`, u);
@@ -3137,12 +3116,16 @@ let Ate = class {
3137
3116
  this.events.triggerEvent("chat.ongoing", t), t._setGlobalEvents(this.events, this.methods.getChatTaskMessage.bind(this.methods)), t.on("_requestCobrowse", (r) => {
3138
3117
  r === "agent" ? this.startCobrowse(r) : this.initializeCobrowse(t.lang), this.events.triggerEvent("cobrowse.request", { from: r });
3139
3118
  }), t.on("disconnected", () => {
3140
- Vr.del("chat"), Vr.del("cobrowse");
3141
- }), this.chat = t, Kr.trackerId = `chat_${t.id}`, Vr.set("chat", t.id.toString()), t.cobrowsable && Vr.get("cobrowse") && this.initializeCobrowse(t.lang);
3119
+ Br.del("chat"), Br.del("cobrowse");
3120
+ }), this.chat = t, Kr.trackerId = `chat_${t.id}`, Br.set("chat", t.id.toString()), t.cobrowsable && Br.get("cobrowse") && this.initializeCobrowse(t.lang);
3142
3121
  }
3143
3122
  getCobrowseScript(t) {
3144
3123
  return !t || t.toLowerCase() === "https://cobrowse.io" ? "https://js.cobrowse.io/CobrowseIO.js" : `${t}/sdk-js/CobrowseIO.js`;
3145
3124
  }
3125
+ // private usage
3126
+ _triggerEvent(t, r) {
3127
+ this.events.triggerEvent(t, r);
3128
+ }
3146
3129
  };
3147
3130
  var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3148
3131
  function DT(e) {
@@ -3718,7 +3701,7 @@ var LL = $t, wC = LL, nb = wC, DL = vr, jL = vm, FL = nn.f, SC = function(e) {
3718
3701
  // `Array.prototype.findIndex` method
3719
3702
  // https://tc39.es/ecma262/#sec-array.prototype.findIndex
3720
3703
  findIndex: qa(6)
3721
- }, lf = Ct, Ou = $t, ym = Yt, cD = wt, to = er, ro = po, lD = yt, Br = vr, fD = Yi, kh = wr, ff = Cn, bm = nf, dD = Lr, Rh = ls, no = Ia, TC = $u, pD = ps, CC = hm, hD = ku, EC = Ji, kC = nn, vD = dm, RC = wu, Od = an, mD = Ei, _m = vo, gD = sf, $C = Eu, ub = Tu, yD = Qt, bD = vm, _D = SC, wD = WL, SD = Ti, IC = En, df = vn.forEach, fn = gD("hidden"), pf = "Symbol", du = "prototype", TD = IC.set, cb = IC.getterFor(pf), jn = Object[du], ts = Ou.Symbol, Jo = ts && ts[du], CD = Ou.RangeError, ED = Ou.TypeError, Ad = Ou.QObject, OC = EC.f, rs = kC.f, AC = CC.f, kD = RC.f, PC = cD([].push), Gi = _m("symbols"), Au = _m("op-symbols"), RD = _m("wks"), $h = !Ad || !Ad[du] || !Ad[du].findChild, MC = function(e, t, r) {
3704
+ }, lf = Ct, Ou = $t, ym = Yt, cD = wt, to = er, ro = po, lD = yt, qr = vr, fD = Yi, kh = wr, ff = Cn, bm = nf, dD = Lr, Rh = ls, no = Ia, TC = $u, pD = ps, CC = hm, hD = ku, EC = Ji, kC = nn, vD = dm, RC = wu, Od = an, mD = Ei, _m = vo, gD = sf, $C = Eu, ub = Tu, yD = Qt, bD = vm, _D = SC, wD = WL, SD = Ti, IC = En, df = vn.forEach, fn = gD("hidden"), pf = "Symbol", du = "prototype", TD = IC.set, cb = IC.getterFor(pf), jn = Object[du], ts = Ou.Symbol, Jo = ts && ts[du], CD = Ou.RangeError, ED = Ou.TypeError, Ad = Ou.QObject, OC = EC.f, rs = kC.f, AC = CC.f, kD = RC.f, PC = cD([].push), Gi = _m("symbols"), Au = _m("op-symbols"), RD = _m("wks"), $h = !Ad || !Ad[du] || !Ad[du].findChild, MC = function(e, t, r) {
3722
3705
  var n = OC(jn, t);
3723
3706
  n && delete jn[t], rs(e, t, r), n && e !== jn && rs(jn, t, n);
3724
3707
  }, Ih = to && lD(function() {
@@ -3737,7 +3720,7 @@ var LL = $t, wC = LL, nb = wC, DL = vr, jL = vm, FL = nn.f, SC = function(e) {
3737
3720
  }, hf = function(t, r, n) {
3738
3721
  t === jn && hf(Au, r, n), kh(t);
3739
3722
  var i = bm(r);
3740
- return kh(n), Br(Gi, i) ? (n.enumerable ? (Br(t, fn) && t[fn][i] && (t[fn][i] = !1), n = no(n, { enumerable: Rh(0, !1) })) : (Br(t, fn) || rs(t, fn, Rh(1, no(null))), t[fn][i] = !0), Ih(t, i, n)) : rs(t, i, n);
3723
+ return kh(n), qr(Gi, i) ? (n.enumerable ? (qr(t, fn) && t[fn][i] && (t[fn][i] = !1), n = no(n, { enumerable: Rh(0, !1) })) : (qr(t, fn) || rs(t, fn, Rh(1, no(null))), t[fn][i] = !0), Ih(t, i, n)) : rs(t, i, n);
3741
3724
  }, wm = function(t, r) {
3742
3725
  kh(t);
3743
3726
  var n = ff(r), i = TC(n).concat(LC(n));
@@ -3748,29 +3731,29 @@ var LL = $t, wC = LL, nb = wC, DL = vr, jL = vm, FL = nn.f, SC = function(e) {
3748
3731
  return r === void 0 ? no(t) : wm(no(t), r);
3749
3732
  }, Oh = function(t) {
3750
3733
  var r = bm(t), n = ym(kD, this, r);
3751
- return this === jn && Br(Gi, r) && !Br(Au, r) ? !1 : n || !Br(this, r) || !Br(Gi, r) || Br(this, fn) && this[fn][r] ? n : !0;
3734
+ return this === jn && qr(Gi, r) && !qr(Au, r) ? !1 : n || !qr(this, r) || !qr(Gi, r) || qr(this, fn) && this[fn][r] ? n : !0;
3752
3735
  }, xC = function(t, r) {
3753
3736
  var n = ff(t), i = bm(r);
3754
- if (!(n === jn && Br(Gi, i) && !Br(Au, i))) {
3737
+ if (!(n === jn && qr(Gi, i) && !qr(Au, i))) {
3755
3738
  var a = OC(n, i);
3756
- return a && Br(Gi, i) && !(Br(n, fn) && n[fn][i]) && (a.enumerable = !0), a;
3739
+ return a && qr(Gi, i) && !(qr(n, fn) && n[fn][i]) && (a.enumerable = !0), a;
3757
3740
  }
3758
3741
  }, NC = function(t) {
3759
3742
  var r = AC(ff(t)), n = [];
3760
3743
  return df(r, function(i) {
3761
- !Br(Gi, i) && !Br($C, i) && PC(n, i);
3744
+ !qr(Gi, i) && !qr($C, i) && PC(n, i);
3762
3745
  }), n;
3763
3746
  }, LC = function(e) {
3764
3747
  var t = e === jn, r = AC(t ? Au : ff(e)), n = [];
3765
3748
  return df(r, function(i) {
3766
- Br(Gi, i) && (!t || Br(jn, i)) && PC(n, Gi[i]);
3749
+ qr(Gi, i) && (!t || qr(jn, i)) && PC(n, Gi[i]);
3767
3750
  }), n;
3768
3751
  };
3769
3752
  ro || (ts = function() {
3770
3753
  if (fD(Jo, this)) throw new ED("Symbol is not a constructor");
3771
3754
  var t = !arguments.length || arguments[0] === void 0 ? void 0 : dD(arguments[0]), r = ub(t), n = function(i) {
3772
3755
  var a = this === void 0 ? Ou : this;
3773
- a === jn && ym(n, Au, i), Br(a, fn) && Br(a[fn], r) && (a[fn][r] = !1);
3756
+ a === jn && ym(n, Au, i), qr(a, fn) && qr(a[fn], r) && (a[fn][r] = !1);
3774
3757
  var s = Rh(1, i);
3775
3758
  try {
3776
3759
  Ih(a, r, s);
@@ -5438,7 +5421,7 @@ J4({ target: "Array", proto: !0, forced: rq }, {
5438
5421
  return eq(Q4(this), t === void 0 ? "," : t);
5439
5422
  }
5440
5423
  });
5441
- var qr = {}, nq = er, iq = Cu.EXISTS, ok = wt, aq = Ei, uk = Function.prototype, sq = ok(uk.toString), ck = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, oq = ok(ck.exec), uq = "name";
5424
+ var zr = {}, nq = er, iq = Cu.EXISTS, ok = wt, aq = Ei, uk = Function.prototype, sq = ok(uk.toString), ck = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, oq = ok(ck.exec), uq = "name";
5442
5425
  nq && !iq && aq(uk, uq, {
5443
5426
  configurable: !0,
5444
5427
  get: function() {
@@ -5642,7 +5625,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
5642
5625
 
5643
5626
 
5644
5627
  */
5645
- Object.defineProperty(qr, "__esModule", { value: !0 });
5628
+ Object.defineProperty(zr, "__esModule", { value: !0 });
5646
5629
  var h6 = qn, v6 = yo, m6 = bo, g6 = Oa, y6 = $i, b6 = ki, _6 = Ri, w6 = zn;
5647
5630
  function Pa(e) {
5648
5631
  return e && typeof e == "object" && "default" in e ? e : { default: e };
@@ -6025,20 +6008,20 @@ var q6 = function(t, r) {
6025
6008
  return [!0];
6026
6009
  });
6027
6010
  };
6028
- qr.array = q6;
6029
- qr.custom = ta;
6030
- qr.literal = k6;
6031
- qr.nonEmptyArray = N6;
6032
- qr.nonEmptyString = L6;
6033
- qr.nonNegativeInteger = D6;
6034
- qr.objectSchema = F6;
6035
- qr.pureObject = j6;
6036
- qr.runtimeTypeValidation = If;
6037
- qr.stringifyReceivedType = Rk;
6038
- qr.type = kk;
6039
- qr.validateConstructorTypes = O6;
6040
- qr.validateTypes = A6;
6041
- qr.validateTypesAsync = P6;
6011
+ zr.array = q6;
6012
+ zr.custom = ta;
6013
+ zr.literal = k6;
6014
+ zr.nonEmptyArray = N6;
6015
+ zr.nonEmptyString = L6;
6016
+ zr.nonNegativeInteger = D6;
6017
+ zr.objectSchema = F6;
6018
+ zr.pureObject = j6;
6019
+ zr.runtimeTypeValidation = If;
6020
+ zr.stringifyReceivedType = Rk;
6021
+ zr.type = kk;
6022
+ zr.validateConstructorTypes = O6;
6023
+ zr.validateTypes = A6;
6024
+ zr.validateTypesAsync = P6;
6042
6025
  var Km = {}, $k = { exports: {} }, Ik = { exports: {} };
6043
6026
  (function(e) {
6044
6027
  var t = zn;
@@ -6499,7 +6482,7 @@ Bl.exports;
6499
6482
  this.set(Ze[0], Ze[1]);
6500
6483
  }
6501
6484
  }
6502
- function zr() {
6485
+ function Wr() {
6503
6486
  this.__data__ = [], this.size = 0;
6504
6487
  }
6505
6488
  function cn(W) {
@@ -6520,7 +6503,7 @@ Bl.exports;
6520
6503
  var Ee = this.__data__, Ze = or(Ee, W);
6521
6504
  return Ze < 0 ? (++this.size, Ee.push([W, ie])) : Ee[Ze][1] = ie, this;
6522
6505
  }
6523
- dt.prototype.clear = zr, dt.prototype.delete = cn, dt.prototype.get = it, dt.prototype.has = Z, dt.prototype.set = xe;
6506
+ dt.prototype.clear = Wr, dt.prototype.delete = cn, dt.prototype.get = it, dt.prototype.has = Z, dt.prototype.set = xe;
6524
6507
  function Ye(W) {
6525
6508
  var ie = -1, Ee = W == null ? 0 : W.length;
6526
6509
  for (this.clear(); ++ie < Ee; ) {
@@ -6562,7 +6545,7 @@ Bl.exports;
6562
6545
  return this.__data__.has(W);
6563
6546
  }
6564
6547
  Mr.prototype.add = Mr.prototype.push = dr, Mr.prototype.has = $n;
6565
- function Wr(W) {
6548
+ function Gr(W) {
6566
6549
  var ie = this.__data__ = new dt(W);
6567
6550
  this.size = ie.size;
6568
6551
  }
@@ -6589,7 +6572,7 @@ Bl.exports;
6589
6572
  }
6590
6573
  return Ee.set(W, ie), this.size = Ee.size, this;
6591
6574
  }
6592
- Wr.prototype.clear = oa, Wr.prototype.delete = Da, Wr.prototype.get = ja, Wr.prototype.has = Er, Wr.prototype.set = Fa;
6575
+ Gr.prototype.clear = oa, Gr.prototype.delete = Da, Gr.prototype.get = ja, Gr.prototype.has = Er, Gr.prototype.set = Fa;
6593
6576
  function ci(W, ie) {
6594
6577
  var Ee = M(W), Ze = !Ee && q(W), Kt = !Ee && !Ze && fe(W), _t = !Ee && !Ze && !Kt && br(W), Jt = Ee || Ze || Kt || _t, ur = Jt ? Bt(W.length, String) : [], _r = ur.length;
6595
6578
  for (var lt in W)
@@ -6620,7 +6603,7 @@ Bl.exports;
6620
6603
  return W === ie ? !0 : W == null || ie == null || !ln(W) && !ln(ie) ? W !== W && ie !== ie : Ba(W, ie, Ee, Ze, Ai, Kt);
6621
6604
  }
6622
6605
  function Ba(W, ie, Ee, Ze, Kt, _t) {
6623
- var Jt = M(W), ur = M(ie), _r = Jt ? u : Gr(W), lt = ur ? u : Gr(ie);
6606
+ var Jt = M(W), ur = M(ie), _r = Jt ? u : Hr(W), lt = ur ? u : Hr(ie);
6624
6607
  _r = _r == o ? x : _r, lt = lt == o ? x : lt;
6625
6608
  var jr = _r == x, Fr = lt == x, pr = _r == lt;
6626
6609
  if (pr && fe(W)) {
@@ -6629,15 +6612,15 @@ Bl.exports;
6629
6612
  Jt = !0, jr = !1;
6630
6613
  }
6631
6614
  if (pr && !jr)
6632
- return _t || (_t = new Wr()), Jt || br(W) ? ca(W, ie, Ee, Ze, Kt, _t) : Pi(W, ie, _r, Ee, Ze, Kt, _t);
6615
+ return _t || (_t = new Gr()), Jt || br(W) ? ca(W, ie, Ee, Ze, Kt, _t) : Pi(W, ie, _r, Ee, Ze, Kt, _t);
6633
6616
  if (!(Ee & i)) {
6634
6617
  var Ur = jr && Pt.call(W, "__wrapped__"), gt = Fr && Pt.call(ie, "__wrapped__");
6635
6618
  if (Ur || gt) {
6636
6619
  var In = Ur ? W.value() : W, O = gt ? ie.value() : ie;
6637
- return _t || (_t = new Wr()), Kt(In, O, Ee, Ze, _t);
6620
+ return _t || (_t = new Gr()), Kt(In, O, Ee, Ze, _t);
6638
6621
  }
6639
6622
  }
6640
- return pr ? (_t || (_t = new Wr()), Mi(W, ie, Ee, Ze, Kt, _t)) : !1;
6623
+ return pr ? (_t || (_t = new Gr()), Mi(W, ie, Ee, Ze, Kt, _t)) : !1;
6641
6624
  }
6642
6625
  function yn(W) {
6643
6626
  if (!$r(W) || F(W))
@@ -6780,8 +6763,8 @@ Bl.exports;
6780
6763
  return W == null ? [] : (W = Object(W), ft(me(W), function(ie) {
6781
6764
  return ye.call(W, ie);
6782
6765
  }));
6783
- } : Cs, Gr = gn;
6784
- ($e && Gr(new $e(new ArrayBuffer(1))) != ge || re && Gr(new re()) != T || ae && Gr(ae.resolve()) != N || K && Gr(new K()) != J || oe && Gr(new oe()) != ue) && (Gr = function(W) {
6766
+ } : Cs, Hr = gn;
6767
+ ($e && Hr(new $e(new ArrayBuffer(1))) != ge || re && Hr(new re()) != T || ae && Hr(ae.resolve()) != N || K && Hr(new K()) != J || oe && Hr(new oe()) != ue) && (Hr = function(W) {
6785
6768
  var ie = gn(W), Ee = ie == x ? W.constructor : void 0, Ze = Ee ? k(Ee) : "";
6786
6769
  if (Ze)
6787
6770
  switch (Ze) {
@@ -10448,7 +10431,7 @@ This software includes loglevel under the following license.
10448
10431
  return F;
10449
10432
  }
10450
10433
  function dt(F) {
10451
- var z = zr();
10434
+ var z = Wr();
10452
10435
  return function() {
10453
10436
  var k = ge.default(F), E;
10454
10437
  if (z) {
@@ -10459,7 +10442,7 @@ This software includes loglevel under the following license.
10459
10442
  return ee.default(this, E);
10460
10443
  };
10461
10444
  }
10462
- function zr() {
10445
+ function Wr() {
10463
10446
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
10464
10447
  if (typeof Proxy == "function") return !0;
10465
10448
  try {
@@ -11205,7 +11188,7 @@ This software includes loglevel under the following license.
11205
11188
  return !1;
11206
11189
  }
11207
11190
  }
11208
- var Wr = /* @__PURE__ */ function(F) {
11191
+ var Gr = /* @__PURE__ */ function(F) {
11209
11192
  ue.default($, F);
11210
11193
  var z = dr($);
11211
11194
  function $(k) {
@@ -11892,7 +11875,7 @@ This software includes loglevel under the following license.
11892
11875
  }]), F;
11893
11876
  }();
11894
11877
  function Rr(F) {
11895
- var z = Gr();
11878
+ var z = Hr();
11896
11879
  return function() {
11897
11880
  var k = ge.default(F), E;
11898
11881
  if (z) {
@@ -11903,7 +11886,7 @@ This software includes loglevel under the following license.
11903
11886
  return ee.default(this, E);
11904
11887
  };
11905
11888
  }
11906
- function Gr() {
11889
+ function Hr() {
11907
11890
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
11908
11891
  if (typeof Proxy == "function") return !0;
11909
11892
  try {
@@ -11924,7 +11907,7 @@ This software includes loglevel under the following license.
11924
11907
  L.default(this, $), M = z.call(this), pe.default(D.default(M), "version", Tr), pe.default(D.default(M), "offlineStorageDeferred", new Pi()), q.continuationToken = q.continuationToken ? q.continuationToken : Hn.getStoredToken(E);
11925
11908
  var ve = M.config = new mr(k, E, q);
11926
11909
  ze.setLevel(ve.logLevel);
11927
- var fe = new Wr(ve.url), Ae = new Mr(fe, ve);
11910
+ var fe = new Gr(ve.url), Ae = new Mr(fe, ve);
11928
11911
  return M.channel = new Mt(fe, Ae, ve), M.registrations = new ja(Ae), M.upstream = new ca(Ae, M.channel, ve), M.telemetryTracker = new la(ve, Ae), M.channel.on("initialized", function() {
11929
11912
  return M.telemetryTracker.canSendTelemetry = !0;
11930
11913
  }), fe.on("disconnected", function() {
@@ -12452,7 +12435,7 @@ SOFTWARE.
12452
12435
  */
12453
12436
  (function(e) {
12454
12437
  Object.defineProperty(e, "__esModule", { value: !0 });
12455
- var t = Nu, r = $i, n = Oa, i = ki, a = Ri, s = zn, o = Uu, u = qn, c = xf, l = ms, p = gs, v = na, m = yo, b = bo, T = Ar, I = lK, R = qr;
12438
+ var t = Nu, r = $i, n = Oa, i = ki, a = Ri, s = zn, o = Uu, u = qn, c = xf, l = ms, p = gs, v = na, m = yo, b = bo, T = Ar, I = lK, R = zr;
12456
12439
  function x(ye) {
12457
12440
  return ye && typeof ye == "object" && "default" in ye ? ye : { default: ye };
12458
12441
  }
@@ -21763,7 +21746,7 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21763
21746
  (function(e) {
21764
21747
  var t = typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : {};
21765
21748
  Object.defineProperty(e, "__esModule", { value: !0 });
21766
- var r = $i, n = Oa, i = ki, a = Ri, s = zn, o = Bf, u = gs, c = Nu, l = Uu, p = qn, v = Ar, m = na, b = qr;
21749
+ var r = $i, n = Oa, i = ki, a = Ri, s = zn, o = Bf, u = gs, c = Nu, l = Uu, p = qn, v = Ar, m = na, b = zr;
21767
21750
  function T(re) {
21768
21751
  return re && typeof re == "object" && "default" in re ? re : { default: re };
21769
21752
  }
@@ -22252,10 +22235,10 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22252
22235
  if (at && at.split(`
22253
22236
  `, 2).length === 1) fr = at;
22254
22237
  else {
22255
- var dt, zr = (dt = at.replace(/<.*?>/g, "").split(/\r\n/g).filter(function(it) {
22238
+ var dt, Wr = (dt = at.replace(/<.*?>/g, "").split(/\r\n/g).filter(function(it) {
22256
22239
  return it.length;
22257
22240
  })[0]) === null || dt === void 0 ? void 0 : dt.split(" ");
22258
- fr = (zr == null ? void 0 : zr.length) > 2 ? zr == null ? void 0 : zr.slice(1).join(" ") : "";
22241
+ fr = (Wr == null ? void 0 : Wr.length) > 2 ? Wr == null ? void 0 : Wr.slice(1).join(" ") : "";
22259
22242
  }
22260
22243
  else
22261
22244
  fr = JSON.stringify(at);
@@ -23207,7 +23190,7 @@ This software includes platform.js under the following license.
23207
23190
  (function(e) {
23208
23191
  var t = typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : {};
23209
23192
  Object.defineProperty(e, "__esModule", { value: !0 });
23210
- var r = Nu, n = ms, i = ki, a = Ri, s = zn, o = gs, u = Oa, c = $i, l = Uu, p = qn, v = Ar, m = e3, b = qr, T = bo, I = Km, R = gz, x = yo, N = na, j = xf, X = h1, J = mn, V = z1, D = Wf, te = Bf, ue = mQ;
23193
+ var r = Nu, n = ms, i = ki, a = Ri, s = zn, o = gs, u = Oa, c = $i, l = Uu, p = qn, v = Ar, m = e3, b = zr, T = bo, I = Km, R = gz, x = yo, N = na, j = xf, X = h1, J = mn, V = z1, D = Wf, te = Bf, ue = mQ;
23211
23194
  function ee(O) {
23212
23195
  return O && typeof O == "object" && "default" in O ? O : { default: O };
23213
23196
  }
@@ -25010,7 +24993,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25010
24993
  return O;
25011
24994
  }
25012
24995
  function dt(O) {
25013
- var A = zr();
24996
+ var A = Wr();
25014
24997
  return function() {
25015
24998
  var d = Ke.default(O), h;
25016
24999
  if (A) {
@@ -25021,7 +25004,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25021
25004
  return rt.default(this, h);
25022
25005
  };
25023
25006
  }
25024
- function zr() {
25007
+ function Wr() {
25025
25008
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
25026
25009
  if (typeof Proxy == "function") return !0;
25027
25010
  try {
@@ -25759,7 +25742,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25759
25742
  function $n(O, A) {
25760
25743
  var f = typeof Symbol < "u" && O[Symbol.iterator] || O["@@iterator"];
25761
25744
  if (!f) {
25762
- if (Array.isArray(O) || (f = Wr(O)) || A) {
25745
+ if (Array.isArray(O) || (f = Gr(O)) || A) {
25763
25746
  f && (O = f);
25764
25747
  var d = 0, h = function() {
25765
25748
  };
@@ -25788,7 +25771,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25788
25771
  }
25789
25772
  } };
25790
25773
  }
25791
- function Wr(O, A) {
25774
+ function Gr(O, A) {
25792
25775
  if (O) {
25793
25776
  if (typeof O == "string") return oa(O, A);
25794
25777
  var f = Object.prototype.toString.call(O).slice(8, -1);
@@ -27775,7 +27758,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
27775
27758
  return !1;
27776
27759
  }
27777
27760
  }
27778
- var Rr = Dt.scope("Conversations"), Gr = /* @__PURE__ */ function(O) {
27761
+ var Rr = Dt.scope("Conversations"), Hr = /* @__PURE__ */ function(O) {
27779
27762
  Te.default(f, O);
27780
27763
  var A = kr(f);
27781
27764
  function f(d, h) {
@@ -30007,7 +29990,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30007
29990
  return g.emit("userUpdated", C);
30008
29991
  }), this._services.users.on("userUnsubscribed", function(C) {
30009
29992
  g.emit("userUnsubscribed", C);
30010
- }), this._conversationsEntity = new Gr(this._configuration, this._services), this._conversationsEntity.on("conversationAdded", function(C) {
29993
+ }), this._conversationsEntity = new Hr(this._configuration, this._services), this._conversationsEntity.on("conversationAdded", function(C) {
30011
29994
  g.emit("conversationAdded", C);
30012
29995
  }), this._conversationsEntity.on("conversationRemoved", function(C) {
30013
29996
  g.emit("conversationRemoved", C);
@@ -33229,7 +33212,7 @@ var oee = je && je.__createBinding || (Object.create ? function(e, t, r, n) {
33229
33212
  };
33230
33213
  Object.defineProperty(Yf, "__esModule", { value: !0 });
33231
33214
  Yf.Manager = void 0;
33232
- const ch = Gf, fee = rc, dee = cee(Xf), Ya = Qf, pee = zg, hee = To, vee = lee(ui), Hr = (0, vee.default)("socket.io-client:manager");
33215
+ const ch = Gf, fee = rc, dee = cee(Xf), Ya = Qf, pee = zg, hee = To, vee = lee(ui), Vr = (0, vee.default)("socket.io-client:manager");
33233
33216
  class mee extends hee.Emitter {
33234
33217
  constructor(t, r) {
33235
33218
  var n;
@@ -33279,21 +33262,21 @@ class mee extends hee.Emitter {
33279
33262
  * @public
33280
33263
  */
33281
33264
  open(t) {
33282
- if (Hr("readyState %s", this._readyState), ~this._readyState.indexOf("open"))
33265
+ if (Vr("readyState %s", this._readyState), ~this._readyState.indexOf("open"))
33283
33266
  return this;
33284
- Hr("opening %s", this.uri), this.engine = new ch.Socket(this.uri, this.opts);
33267
+ Vr("opening %s", this.uri), this.engine = new ch.Socket(this.uri, this.opts);
33285
33268
  const r = this.engine, n = this;
33286
33269
  this._readyState = "opening", this.skipReconnect = !1;
33287
33270
  const i = (0, Ya.on)(r, "open", function() {
33288
33271
  n.onopen(), t && t();
33289
33272
  }), a = (o) => {
33290
- Hr("error"), this.cleanup(), this._readyState = "closed", this.emitReserved("error", o), t ? t(o) : this.maybeReconnectOnOpen();
33273
+ Vr("error"), this.cleanup(), this._readyState = "closed", this.emitReserved("error", o), t ? t(o) : this.maybeReconnectOnOpen();
33291
33274
  }, s = (0, Ya.on)(r, "error", a);
33292
33275
  if (this._timeout !== !1) {
33293
33276
  const o = this._timeout;
33294
- Hr("connect attempt will timeout after %d", o);
33277
+ Vr("connect attempt will timeout after %d", o);
33295
33278
  const u = this.setTimeoutFn(() => {
33296
- Hr("connect attempt timed out after %d", o), i(), a(new Error("timeout")), r.close();
33279
+ Vr("connect attempt timed out after %d", o), i(), a(new Error("timeout")), r.close();
33297
33280
  }, o);
33298
33281
  this.opts.autoUnref && u.unref(), this.subs.push(() => {
33299
33282
  this.clearTimeoutFn(u);
@@ -33316,7 +33299,7 @@ class mee extends hee.Emitter {
33316
33299
  * @private
33317
33300
  */
33318
33301
  onopen() {
33319
- Hr("open"), this.cleanup(), this._readyState = "open", this.emitReserved("open");
33302
+ Vr("open"), this.cleanup(), this._readyState = "open", this.emitReserved("open");
33320
33303
  const t = this.engine;
33321
33304
  this.subs.push(
33322
33305
  (0, Ya.on)(t, "ping", this.onping.bind(this)),
@@ -33363,7 +33346,7 @@ class mee extends hee.Emitter {
33363
33346
  * @private
33364
33347
  */
33365
33348
  onerror(t) {
33366
- Hr("error", t), this.emitReserved("error", t);
33349
+ Vr("error", t), this.emitReserved("error", t);
33367
33350
  }
33368
33351
  /**
33369
33352
  * Creates a new socket for the given `nsp`.
@@ -33385,7 +33368,7 @@ class mee extends hee.Emitter {
33385
33368
  const r = Object.keys(this.nsps);
33386
33369
  for (const n of r)
33387
33370
  if (this.nsps[n].active) {
33388
- Hr("socket %s is still active, skipping close", n);
33371
+ Vr("socket %s is still active, skipping close", n);
33389
33372
  return;
33390
33373
  }
33391
33374
  this._close();
@@ -33397,7 +33380,7 @@ class mee extends hee.Emitter {
33397
33380
  * @private
33398
33381
  */
33399
33382
  _packet(t) {
33400
- Hr("writing packet %j", t);
33383
+ Vr("writing packet %j", t);
33401
33384
  const r = this.encoder.encode(t);
33402
33385
  for (let n = 0; n < r.length; n++)
33403
33386
  this.engine.write(r[n], t.options);
@@ -33408,7 +33391,7 @@ class mee extends hee.Emitter {
33408
33391
  * @private
33409
33392
  */
33410
33393
  cleanup() {
33411
- Hr("cleanup"), this.subs.forEach((t) => t()), this.subs.length = 0, this.decoder.destroy();
33394
+ Vr("cleanup"), this.subs.forEach((t) => t()), this.subs.length = 0, this.decoder.destroy();
33412
33395
  }
33413
33396
  /**
33414
33397
  * Close the current socket.
@@ -33416,7 +33399,7 @@ class mee extends hee.Emitter {
33416
33399
  * @private
33417
33400
  */
33418
33401
  _close() {
33419
- Hr("disconnect"), this.skipReconnect = !0, this._reconnecting = !1, this.onclose("forced close");
33402
+ Vr("disconnect"), this.skipReconnect = !0, this._reconnecting = !1, this.onclose("forced close");
33420
33403
  }
33421
33404
  /**
33422
33405
  * Alias for close()
@@ -33437,7 +33420,7 @@ class mee extends hee.Emitter {
33437
33420
  */
33438
33421
  onclose(t, r) {
33439
33422
  var n;
33440
- Hr("closed due to %s", t), this.cleanup(), (n = this.engine) === null || n === void 0 || n.close(), this.backoff.reset(), this._readyState = "closed", this.emitReserved("close", t, r), this._reconnection && !this.skipReconnect && this.reconnect();
33423
+ Vr("closed due to %s", t), this.cleanup(), (n = this.engine) === null || n === void 0 || n.close(), this.backoff.reset(), this._readyState = "closed", this.emitReserved("close", t, r), this._reconnection && !this.skipReconnect && this.reconnect();
33441
33424
  }
33442
33425
  /**
33443
33426
  * Attempt a reconnection.
@@ -33449,13 +33432,13 @@ class mee extends hee.Emitter {
33449
33432
  return this;
33450
33433
  const t = this;
33451
33434
  if (this.backoff.attempts >= this._reconnectionAttempts)
33452
- Hr("reconnect failed"), this.backoff.reset(), this.emitReserved("reconnect_failed"), this._reconnecting = !1;
33435
+ Vr("reconnect failed"), this.backoff.reset(), this.emitReserved("reconnect_failed"), this._reconnecting = !1;
33453
33436
  else {
33454
33437
  const r = this.backoff.duration();
33455
- Hr("will wait %dms before reconnect attempt", r), this._reconnecting = !0;
33438
+ Vr("will wait %dms before reconnect attempt", r), this._reconnecting = !0;
33456
33439
  const n = this.setTimeoutFn(() => {
33457
- t.skipReconnect || (Hr("attempting reconnect"), this.emitReserved("reconnect_attempt", t.backoff.attempts), !t.skipReconnect && t.open((i) => {
33458
- i ? (Hr("reconnect attempt error"), t._reconnecting = !1, t.reconnect(), this.emitReserved("reconnect_error", i)) : (Hr("reconnect success"), t.onreconnect());
33440
+ t.skipReconnect || (Vr("attempting reconnect"), this.emitReserved("reconnect_attempt", t.backoff.attempts), !t.skipReconnect && t.open((i) => {
33441
+ i ? (Vr("reconnect attempt error"), t._reconnecting = !1, t.reconnect(), this.emitReserved("reconnect_error", i)) : (Vr("reconnect success"), t.onreconnect());
33459
33442
  }));
33460
33443
  }, r);
33461
33444
  this.opts.autoUnref && n.unref(), this.subs.push(() => {
@@ -34446,7 +34429,7 @@ var W$ = Ev.exports, G$ = { exports: {} };
34446
34429
  }
34447
34430
  return _(f, []);
34448
34431
  }
34449
- var fr = {}, dt = ["events.[].app", "events.[].metaData", "events.[].user", "events.[].breadcrumbs", "events.[].request", "events.[].device"], zr = ["device", "app", "user"];
34432
+ var fr = {}, dt = ["events.[].app", "events.[].metaData", "events.[].user", "events.[].breadcrumbs", "events.[].request", "events.[].device"], Wr = ["device", "app", "user"];
34450
34433
  fr.report = function(f, d) {
34451
34434
  var h = Y(f, null, null, {
34452
34435
  filterPaths: dt,
@@ -34464,7 +34447,7 @@ metaData was removed`
34464
34447
  return h;
34465
34448
  }, fr.session = function(f, d) {
34466
34449
  var h = Y(f, null, null, {
34467
- filterPaths: zr,
34450
+ filterPaths: Wr,
34468
34451
  filterKeys: d
34469
34452
  });
34470
34453
  if (h.length > 1e6) throw new Error("payload exceeded 1MB limit");
@@ -34595,7 +34578,7 @@ metaData was removed`
34595
34578
  return f;
34596
34579
  }, $n.apply(this, arguments);
34597
34580
  }
34598
- var Wr = v.isArray, oa = v.includes, Da = {
34581
+ var Gr = v.isArray, oa = v.includes, Da = {
34599
34582
  init: function(f) {
34600
34583
  return f.sessionDelegate(ja);
34601
34584
  }
@@ -34604,7 +34587,7 @@ metaData was removed`
34604
34587
  var d = f;
34605
34588
  d._session = new f.BugsnagSession();
34606
34589
  var h = rt(d);
34607
- return Wr(d.config.notifyReleaseStages) && !oa(d.config.notifyReleaseStages, h) ? (d._logger.warn("Session not sent due to releaseStage/notifyReleaseStages configuration"), d) : d.config.endpoints.sessions ? (d._delivery.sendSession({
34590
+ return Gr(d.config.notifyReleaseStages) && !oa(d.config.notifyReleaseStages, h) ? (d._logger.warn("Session not sent due to releaseStage/notifyReleaseStages configuration"), d) : d.config.endpoints.sessions ? (d._delivery.sendSession({
34608
34591
  notifier: d.notifier,
34609
34592
  device: d.device,
34610
34593
  app: $n({}, {
@@ -34881,11 +34864,11 @@ metaData was removed`
34881
34864
  return d.addEventListener("popstate", g("Navigated back"), !0);
34882
34865
  }), d.addEventListener("hashchange", function(_) {
34883
34866
  var w = _.oldURL ? {
34884
- from: Gr(_.oldURL, d),
34885
- to: Gr(_.newURL, d),
34867
+ from: Hr(_.oldURL, d),
34868
+ to: Hr(_.newURL, d),
34886
34869
  state: F(d)
34887
34870
  } : {
34888
- to: Gr(d.location.href, d)
34871
+ to: Hr(d.location.href, d)
34889
34872
  };
34890
34873
  f.leaveBreadcrumb("Hash changed", w, "navigation");
34891
34874
  }, !0), d.history.replaceState && fa(f, d.history, "replaceState", d), d.history.pushState && fa(f, d.history, "pushState", d), f.leaveBreadcrumb("Bugsnag loaded", {}, "navigation");
@@ -34901,11 +34884,11 @@ metaData was removed`
34901
34884
  message: "should be true|false"
34902
34885
  }
34903
34886
  };
34904
- var Gr = function(f, d) {
34887
+ var Hr = function(f, d) {
34905
34888
  var h = d.document.createElement("A");
34906
34889
  return h.href = f, "" + h.pathname + h.search + h.hash;
34907
34890
  }, bn = function(f, d, h, y) {
34908
- var g = Gr(f.location.href, f);
34891
+ var g = Hr(f.location.href, f);
34909
34892
  return {
34910
34893
  title: h,
34911
34894
  state: d,
@@ -42649,12 +42632,12 @@ function dT(e, t) {
42649
42632
  export {
42650
42633
  Ate as Client,
42651
42634
  Ite as ENVIRONMENT,
42652
- wT as EventManager,
42635
+ ST as EventManager,
42653
42636
  cs as Logger,
42654
- LO as MediaStore,
42637
+ fA as MediaStore,
42655
42638
  Kr as OPTIONS,
42656
42639
  lu as PostSessionStatus,
42657
- pT as VERSION,
42640
+ hT as VERSION,
42658
42641
  ET as addProviderType,
42659
42642
  Ote as consoleLoggerHandler
42660
42643
  };