lr-chatbot 0.48.62 → 0.48.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +157 -128
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1190,20 +1190,24 @@ var Re = Le, ze = /*#__PURE__*/ function() {
1190
1190
  var r = e[a];
1191
1191
  if (r.bubbleElement.classList.contains(t[0]) && !t.slice(1).find(function(e) {
1192
1192
  return !r.bubbleElement.classList.contains(e);
1193
- })) if (n) {
1194
- if (!n.find(function(e) {
1195
- return r.bubbleElement.classList.contains(e);
1196
- })) return { v: r };
1197
- } else return { v: r };
1193
+ })) {
1194
+ if (n) {
1195
+ if (!n.find(function(e) {
1196
+ return r.bubbleElement.classList.contains(e);
1197
+ })) return { v: r };
1198
+ } else return { v: r };
1199
+ }
1198
1200
  }, i, a = e.length - 1; a >= 0; --a) if (i = r(), i) return i.v;
1199
1201
  }
1200
1202
  },
1201
1203
  {
1202
1204
  key: "getLastMessage",
1203
1205
  value: function(e, t, n) {
1204
- for (var r = e.length - 1; r >= 0; --r) if (e[r].role === t) if (n) {
1205
- if (e[r][n]) return e[r];
1206
- } else return e[r];
1206
+ for (var r = e.length - 1; r >= 0; --r) if (e[r].role === t) {
1207
+ if (n) {
1208
+ if (e[r][n]) return e[r];
1209
+ } else return e[r];
1210
+ }
1207
1211
  }
1208
1212
  },
1209
1213
  {
@@ -2046,10 +2050,13 @@ Gt.prototype.process = function(e) {
2046
2050
  function Kt(e, t, n, r, i) {
2047
2051
  var a, o, s, c, l, u, d;
2048
2052
  for (this.src = e, this.parser = t, this.options = n, this.env = r, this.tokens = i, this.bMarks = [], this.eMarks = [], this.tShift = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.parentType = "root", this.ddIndent = -1, this.level = 0, this.result = "", o = this.src, u = 0, d = !1, s = c = u = 0, l = o.length; c < l; c++) {
2049
- if (a = o.charCodeAt(c), !d) if (a === 32) {
2050
- u++;
2051
- continue;
2052
- } else d = !0;
2053
+ if (a = o.charCodeAt(c), !d) {
2054
+ if (a === 32) {
2055
+ u++;
2056
+ continue;
2057
+ }
2058
+ d = !0;
2059
+ }
2053
2060
  (a === 10 || c === l - 1) && (a !== 10 && c++, this.bMarks.push(s), this.eMarks.push(c), this.tShift.push(u), d = !1, u = 0, s = c + 1);
2054
2061
  }
2055
2062
  this.bMarks.push(o.length), this.eMarks.push(o.length), this.tShift.push(0), this.lineMax = this.bMarks.length - 1;
@@ -2577,23 +2584,26 @@ function Sn(e, t) {
2577
2584
  function Cn(e, t) {
2578
2585
  var n, r, i = e.pos;
2579
2586
  if (e.src.charCodeAt(i) !== 10) return !1;
2580
- if (n = e.pending.length - 1, r = e.posMax, !t) if (n >= 0 && e.pending.charCodeAt(n) === 32) if (n >= 1 && e.pending.charCodeAt(n - 1) === 32) {
2581
- for (var a = n - 2; a >= 0; a--) if (e.pending.charCodeAt(a) !== 32) {
2582
- e.pending = e.pending.substring(0, a + 1);
2583
- break;
2584
- }
2585
- e.push({
2586
- type: "hardbreak",
2587
+ if (n = e.pending.length - 1, r = e.posMax, !t) {
2588
+ if (n >= 0 && e.pending.charCodeAt(n) === 32) {
2589
+ if (n >= 1 && e.pending.charCodeAt(n - 1) === 32) {
2590
+ for (var a = n - 2; a >= 0; a--) if (e.pending.charCodeAt(a) !== 32) {
2591
+ e.pending = e.pending.substring(0, a + 1);
2592
+ break;
2593
+ }
2594
+ e.push({
2595
+ type: "hardbreak",
2596
+ level: e.level
2597
+ });
2598
+ } else e.pending = e.pending.slice(0, -1), e.push({
2599
+ type: "softbreak",
2600
+ level: e.level
2601
+ });
2602
+ } else e.push({
2603
+ type: "softbreak",
2587
2604
  level: e.level
2588
2605
  });
2589
- } else e.pending = e.pending.slice(0, -1), e.push({
2590
- type: "softbreak",
2591
- level: e.level
2592
- });
2593
- else e.push({
2594
- type: "softbreak",
2595
- level: e.level
2596
- });
2606
+ }
2597
2607
  for (i++; i < r && e.src.charCodeAt(i) === 32;) i++;
2598
2608
  return e.pos = i, !0;
2599
2609
  }
@@ -10858,13 +10868,15 @@ Aa.Speech = /* @__PURE__ */ function() {
10858
10868
  key: "prepareBeforeStart",
10859
10869
  value: function(e) {
10860
10870
  var t;
10861
- if (e != null && e.element) if (Xa.EventListeners.add(this, e), Array.isArray(e.element)) {
10862
- var n = e.element.find(function(e) {
10863
- return e === document.activeElement;
10864
- }) || e.element[0];
10865
- if (!n) return;
10866
- this.prepare(n);
10867
- } else this.prepare(e.element);
10871
+ if (e != null && e.element) {
10872
+ if (Xa.EventListeners.add(this, e), Array.isArray(e.element)) {
10873
+ var n = e.element.find(function(e) {
10874
+ return e === document.activeElement;
10875
+ }) || e.element[0];
10876
+ if (!n) return;
10877
+ this.prepare(n);
10878
+ } else this.prepare(e.element);
10879
+ }
10868
10880
  e?.displayInterimResults !== void 0 && (this._displayInterimResults = e.displayInterimResults), e != null && e.textColor && (this._finalTextColor = e?.textColor?.final, to.Elements.applyCustomColors(this, e.textColor)), e?.insertInCursorLocation !== void 0 && (this.insertInCursorLocation = e.insertInCursorLocation), e?.autoScroll !== void 0 && (this.autoScroll = e.autoScroll), this._onResult = e?.onResult, this._onPreResult = e?.onPreResult, this._onStart = e?.onStart, this._onStop = e?.onStop, this._onError = e?.onError, this.onCommandModeTrigger = e?.onCommandModeTrigger, this.onPauseTrigger = e?.onPauseTrigger, this._options = e, (t = this._options) != null && t.commands && (this.commands = Qa.CommandUtils.process(this._options.commands));
10869
10881
  }
10870
10882
  },
@@ -13678,7 +13690,7 @@ var dc = class extends HTMLElement {
13678
13690
  static finalizeStyles(e) {
13679
13691
  let t = [];
13680
13692
  if (Array.isArray(e)) {
13681
- let n = new Set(e.flat(Infinity).reverse());
13693
+ let n = new Set(e.flat(1 / 0).reverse());
13682
13694
  for (let e of n) t.unshift(Xs(e));
13683
13695
  } else e !== void 0 && t.push(Xs(e));
13684
13696
  return t;
@@ -13857,16 +13869,18 @@ var Bc = (e, t) => {
13857
13869
  i.append(e[t], xc());
13858
13870
  }
13859
13871
  }
13860
- } else if (i.nodeType === 8) if (i.data === vc) c.push({
13861
- type: 2,
13862
- index: a
13863
- });
13864
- else {
13865
- let e = -1;
13866
- for (; (e = i.data.indexOf(_c, e + 1)) !== -1;) c.push({
13867
- type: 7,
13872
+ } else if (i.nodeType === 8) {
13873
+ if (i.data === vc) c.push({
13874
+ type: 2,
13868
13875
  index: a
13869
- }), e += _c.length - 1;
13876
+ });
13877
+ else {
13878
+ let e = -1;
13879
+ for (; (e = i.data.indexOf(_c, e + 1)) !== -1;) c.push({
13880
+ type: 7,
13881
+ index: a
13882
+ }), e += _c.length - 1;
13883
+ }
13870
13884
  }
13871
13885
  a++;
13872
13886
  }
@@ -16048,15 +16062,16 @@ var Tu = function() {
16048
16062
  }].forEach(function(t) {
16049
16063
  for (s = 0; a = t.regex.exec(e);) {
16050
16064
  var n = a[1].trim();
16051
- if (o = u(n), o === void 0) if (typeof d == "function") {
16052
- var c = d(e, a, r);
16053
- o = typeof c == "string" ? c : "";
16054
- } else if (r && Object.prototype.hasOwnProperty.call(r, n)) o = "";
16055
- else if (f) {
16056
- o = a[0];
16057
- continue;
16058
- } else i.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), o = "";
16059
- else typeof o != "string" && !i.useRawValueToEscape && (o = Vl(o));
16065
+ if (o = u(n), o === void 0) {
16066
+ if (typeof d == "function") {
16067
+ var c = d(e, a, r);
16068
+ o = typeof c == "string" ? c : "";
16069
+ } else if (r && Object.prototype.hasOwnProperty.call(r, n)) o = "";
16070
+ else if (f) {
16071
+ o = a[0];
16072
+ continue;
16073
+ } else i.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), o = "";
16074
+ } else typeof o != "string" && !i.useRawValueToEscape && (o = Vl(o));
16060
16075
  var l = t.safeValue(o);
16061
16076
  if (e = e.replace(a[0], l), f ? (t.regex.lastIndex += o.length, t.regex.lastIndex -= a[0].length) : t.regex.lastIndex = 0, s++, s >= i.maxReplaces) break;
16062
16077
  }
@@ -17233,12 +17248,12 @@ var Pd = Js`
17233
17248
  }
17234
17249
  `;
17235
17250
  //#endregion
17236
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/decorateMetadata.js
17251
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/decorateMetadata.js
17237
17252
  function q(e, t) {
17238
17253
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
17239
17254
  }
17240
17255
  //#endregion
17241
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/decorate.js
17256
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/decorate.js
17242
17257
  function J(e, t, n, r) {
17243
17258
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
17244
17259
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
@@ -17521,9 +17536,12 @@ function $d(e) {
17521
17536
  }
17522
17537
  function ef(e, t = !1, n = 0) {
17523
17538
  let r = this._$AH, i = this._$AN;
17524
- if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let e = n; e < r.length; e++) Xd(r[e], !1), Zd(r[e]);
17525
- else r != null && (Xd(r, !1), Zd(r));
17526
- else Xd(this, e);
17539
+ if (i !== void 0 && i.size !== 0) {
17540
+ if (t) {
17541
+ if (Array.isArray(r)) for (let e = n; e < r.length; e++) Xd(r[e], !1), Zd(r[e]);
17542
+ else r != null && (Xd(r, !1), Zd(r));
17543
+ } else Xd(this, e);
17544
+ }
17527
17545
  }
17528
17546
  var tf = (e) => {
17529
17547
  e.type == fl.CHILD && (e._$AP ??= ef, e._$AQ ??= $d);
@@ -17555,10 +17573,12 @@ var tf = (e) => {
17555
17573
  return n && this.rt(void 0), (n || this.lt !== this.ct) && (this.G = t, this.ht = e.options?.host, this.rt(this.ct = e.element)), G;
17556
17574
  }
17557
17575
  rt(e) {
17558
- if (this.G !== void 0) if (this.isConnected || (e = void 0), typeof this.G == "function") {
17559
- let t = this.ht ?? globalThis, n = rf.get(t);
17560
- n === void 0 && (n = /* @__PURE__ */ new WeakMap(), rf.set(t, n)), n.get(this.G) !== void 0 && this.G.call(this.ht, void 0), n.set(this.G, e), e !== void 0 && this.G.call(this.ht, e);
17561
- } else this.G.value = e;
17576
+ if (this.G !== void 0) {
17577
+ if (this.isConnected || (e = void 0), typeof this.G == "function") {
17578
+ let t = this.ht ?? globalThis, n = rf.get(t);
17579
+ n === void 0 && (n = /* @__PURE__ */ new WeakMap(), rf.set(t, n)), n.get(this.G) !== void 0 && this.G.call(this.ht, void 0), n.set(this.G, e), e !== void 0 && this.G.call(this.ht, e);
17580
+ } else this.G.value = e;
17581
+ }
17562
17582
  }
17563
17583
  get lt() {
17564
17584
  return typeof this.G == "function" ? rf.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value;
@@ -17907,14 +17927,14 @@ var tf = (e) => {
17907
17927
  auxiliaryStyle: "\n #messages {\n height: calc(100dvh - 6rem);\n display: flex;\n flex-direction: column;\n @media (min-width: 768px)\n {\n height: 60dvh;\n }\n } \n .outer-message-container:last-child\n {\n margin-bottom: 1rem;\n } \n .outer-message-container:nth-child(2)\n {\n margin-block-start: auto !important;\n }\n .text-input-container-right-adjustment{\n margin: 0 !important;\n } \n "
17908
17928
  };
17909
17929
  //#endregion
17910
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/bind.js
17930
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/bind.js
17911
17931
  function df(e, t) {
17912
17932
  return function() {
17913
17933
  return e.apply(t, arguments);
17914
17934
  };
17915
17935
  }
17916
17936
  //#endregion
17917
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/utils.js
17937
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/utils.js
17918
17938
  var { toString: ff } = Object.prototype, { getPrototypeOf: pf } = Object, { iterator: mf, toStringTag: hf } = Symbol, gf = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _f = (e, t) => {
17919
17939
  let n = e, r = [];
17920
17940
  for (; n != null && n !== Object.prototype;) {
@@ -18199,7 +18219,7 @@ var xp = (e) => {
18199
18219
  }), t;
18200
18220
  };
18201
18221
  //#endregion
18202
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
18222
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
18203
18223
  function kp(e) {
18204
18224
  let t = 0, n = e.length;
18205
18225
  for (; t < n;) {
@@ -18226,7 +18246,7 @@ function Fp(e) {
18226
18246
  }), t;
18227
18247
  }
18228
18248
  //#endregion
18229
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/AxiosHeaders.js
18249
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/AxiosHeaders.js
18230
18250
  var Ip = Symbol("internals");
18231
18251
  function Lp(e) {
18232
18252
  return e && String(e).trim().toLowerCase();
@@ -18395,7 +18415,7 @@ Wp.accessor([
18395
18415
  };
18396
18416
  }), Y.freezeMethods(Wp);
18397
18417
  //#endregion
18398
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/AxiosError.js
18418
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/AxiosError.js
18399
18419
  var Gp = "[REDACTED ****]";
18400
18420
  function Kp(e) {
18401
18421
  if (Y.hasOwnProp(e, "toJSON")) return !0;
@@ -18535,7 +18555,7 @@ function $p(e, t, n) {
18535
18555
  return g(e), t;
18536
18556
  }
18537
18557
  //#endregion
18538
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
18558
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
18539
18559
  function em(e) {
18540
18560
  let t = {
18541
18561
  "!": "%21",
@@ -18564,7 +18584,7 @@ nm.append = function(e, t) {
18564
18584
  }, "").join("&");
18565
18585
  };
18566
18586
  //#endregion
18567
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/buildURL.js
18587
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/buildURL.js
18568
18588
  function rm(e) {
18569
18589
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
18570
18590
  }
@@ -18578,7 +18598,7 @@ function im(e, t, n) {
18578
18598
  return e;
18579
18599
  }
18580
18600
  //#endregion
18581
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/InterceptorManager.js
18601
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/InterceptorManager.js
18582
18602
  var am = class {
18583
18603
  constructor() {
18584
18604
  this.handlers = [];
@@ -18639,7 +18659,7 @@ var am = class {
18639
18659
  ...sm
18640
18660
  };
18641
18661
  //#endregion
18642
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
18662
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
18643
18663
  function hm(e, t) {
18644
18664
  return $p(e, new mm.classes.URLSearchParams(), {
18645
18665
  visitor: function(e, t, n, r) {
@@ -18649,7 +18669,7 @@ function hm(e, t) {
18649
18669
  });
18650
18670
  }
18651
18671
  //#endregion
18652
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/formDataToJSON.js
18672
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/formDataToJSON.js
18653
18673
  var gm = 100;
18654
18674
  function _m(e) {
18655
18675
  if (e > gm) throw new X("FormData field is too deeply nested (" + e + " levels). Max depth: " + gm, X.ERR_FORM_DATA_DEPTH_EXCEEDED);
@@ -18681,7 +18701,7 @@ function bm(e) {
18681
18701
  return null;
18682
18702
  }
18683
18703
  //#endregion
18684
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/defaults/index.js
18704
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/defaults/index.js
18685
18705
  var xm = (e, t) => e != null && Y.hasOwnProp(e, t) ? e[t] : void 0;
18686
18706
  function Sm(e, t, n) {
18687
18707
  if (Y.isString(e)) try {
@@ -18757,7 +18777,7 @@ Y.forEach([
18757
18777
  Cm.headers[e] = {};
18758
18778
  });
18759
18779
  //#endregion
18760
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/transformData.js
18780
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/transformData.js
18761
18781
  function wm(e, t) {
18762
18782
  let n = this || Cm, r = t || n, i = Wp.from(r.headers), a = r.data;
18763
18783
  return Y.forEach(e, function(e) {
@@ -18765,31 +18785,31 @@ function wm(e, t) {
18765
18785
  }), i.normalize(), a;
18766
18786
  }
18767
18787
  //#endregion
18768
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/cancel/isCancel.js
18788
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/cancel/isCancel.js
18769
18789
  function Tm(e) {
18770
18790
  return !!(e && e.__CANCEL__);
18771
18791
  }
18772
18792
  //#endregion
18773
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/cancel/CanceledError.js
18793
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/cancel/CanceledError.js
18774
18794
  var Em = class extends X {
18775
18795
  constructor(e, t, n) {
18776
18796
  super(e ?? "canceled", X.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
18777
18797
  }
18778
18798
  };
18779
18799
  //#endregion
18780
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/settle.js
18800
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/settle.js
18781
18801
  function Dm(e, t, n) {
18782
18802
  let r = n.config.validateStatus;
18783
18803
  !n.status || !r || r(n.status) ? e(n) : t(new X("Request failed with status code " + n.status, n.status >= 400 && n.status < 500 ? X.ERR_BAD_REQUEST : X.ERR_BAD_RESPONSE, n.config, n.request, n));
18784
18804
  }
18785
18805
  //#endregion
18786
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/parseProtocol.js
18806
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/parseProtocol.js
18787
18807
  function Om(e) {
18788
18808
  let t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
18789
18809
  return t && t[1] || "";
18790
18810
  }
18791
18811
  //#endregion
18792
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/speedometer.js
18812
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/speedometer.js
18793
18813
  function km(e, t) {
18794
18814
  e ||= 10;
18795
18815
  let n = Array(e), r = Array(e), i = 0, a = 0, o;
@@ -18804,7 +18824,7 @@ function km(e, t) {
18804
18824
  };
18805
18825
  }
18806
18826
  //#endregion
18807
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/throttle.js
18827
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/throttle.js
18808
18828
  function Am(e, t) {
18809
18829
  let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
18810
18830
  n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
@@ -18817,7 +18837,7 @@ function Am(e, t) {
18817
18837
  }, () => i && o(i)];
18818
18838
  }
18819
18839
  //#endregion
18820
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/progressEventReducer.js
18840
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/progressEventReducer.js
18821
18841
  var jm = (e, t, n = 3) => {
18822
18842
  let r = 0, i = km(50, 250);
18823
18843
  return Am((n) => {
@@ -18868,17 +18888,17 @@ var jm = (e, t, n = 3) => {
18868
18888
  remove() {}
18869
18889
  };
18870
18890
  //#endregion
18871
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
18891
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
18872
18892
  function Im(e) {
18873
18893
  return typeof e == "string" && /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
18874
18894
  }
18875
18895
  //#endregion
18876
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/combineURLs.js
18896
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/combineURLs.js
18877
18897
  function Lm(e, t) {
18878
18898
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
18879
18899
  }
18880
18900
  //#endregion
18881
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/buildFullPath.js
18901
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/buildFullPath.js
18882
18902
  var Rm = /^https?:(?!\/\/)/i, zm = /[\t\n\r]/g;
18883
18903
  function Bm(e) {
18884
18904
  let t = 0;
@@ -18897,7 +18917,7 @@ function Um(e, t, n, r) {
18897
18917
  return e && (i || n === !1) ? (Hm(e, r), Lm(e, t)) : t;
18898
18918
  }
18899
18919
  //#endregion
18900
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/mergeConfig.js
18920
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/mergeConfig.js
18901
18921
  var Wm = (e) => e instanceof Wp ? { ...e } : e;
18902
18922
  function Gm(e, t) {
18903
18923
  t ||= {};
@@ -18925,9 +18945,11 @@ function Gm(e, t) {
18925
18945
  }
18926
18946
  function s(n) {
18927
18947
  let r = Y.hasOwnProp(t, "transitional") ? t.transitional : void 0;
18928
- if (!Y.isUndefined(r)) if (Y.isPlainObject(r)) {
18929
- if (Y.hasOwnProp(r, n)) return r[n];
18930
- } else return;
18948
+ if (!Y.isUndefined(r)) {
18949
+ if (Y.isPlainObject(r)) {
18950
+ if (Y.hasOwnProp(r, n)) return r[n];
18951
+ } else return;
18952
+ }
18931
18953
  let i = Y.hasOwnProp(e, "transitional") ? e.transitional : void 0;
18932
18954
  if (Y.isPlainObject(i) && Y.hasOwnProp(i, n)) return i[n];
18933
18955
  }
@@ -18977,7 +18999,7 @@ function Gm(e, t) {
18977
18999
  }), Y.hasOwnProp(t, "validateStatus") && Y.isUndefined(t.validateStatus) && s("validateStatusUndefinedResolves") === !1 && (Y.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
18978
19000
  }
18979
19001
  //#endregion
18980
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/resolveConfig.js
19002
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/resolveConfig.js
18981
19003
  var Km = ["content-type", "content-length"];
18982
19004
  function qm(e, t, n) {
18983
19005
  if (n !== "content-only") {
@@ -19143,7 +19165,7 @@ function ih(e) {
19143
19165
  return i;
19144
19166
  }
19145
19167
  //#endregion
19146
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/env/data.js
19168
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/env/data.js
19147
19169
  var ah = "1.18.0", oh = 65536, { isFunction: sh } = Y, ch = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16))), lh = (e) => {
19148
19170
  if (!Y.isString(e)) return e;
19149
19171
  try {
@@ -19317,7 +19339,7 @@ var ah = "1.18.0", oh = 65536, { isFunction: sh } = Y, ch = (e) => encodeURIComp
19317
19339
  };
19318
19340
  mh();
19319
19341
  //#endregion
19320
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/adapters/adapters.js
19342
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/adapters/adapters.js
19321
19343
  var hh = {
19322
19344
  http: null,
19323
19345
  xhr: Xm,
@@ -19359,7 +19381,7 @@ var yh = {
19359
19381
  adapters: hh
19360
19382
  };
19361
19383
  //#endregion
19362
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/core/dispatchRequest.js
19384
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/core/dispatchRequest.js
19363
19385
  function bh(e) {
19364
19386
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Em(null, e);
19365
19387
  }
@@ -19390,7 +19412,7 @@ function xh(e) {
19390
19412
  });
19391
19413
  }
19392
19414
  //#endregion
19393
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/validator.js
19415
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/validator.js
19394
19416
  var Sh = {};
19395
19417
  [
19396
19418
  "object",
@@ -19564,7 +19586,7 @@ Y.forEach([
19564
19586
  Dh.prototype[e] = t(), e !== "query" && (Dh.prototype[e + "Form"] = t(!0));
19565
19587
  });
19566
19588
  //#endregion
19567
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/cancel/CancelToken.js
19589
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/cancel/CancelToken.js
19568
19590
  var Oh = class e {
19569
19591
  constructor(e) {
19570
19592
  if (typeof e != "function") throw TypeError("executor must be a function.");
@@ -19621,19 +19643,19 @@ var Oh = class e {
19621
19643
  }
19622
19644
  };
19623
19645
  //#endregion
19624
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/spread.js
19646
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/spread.js
19625
19647
  function kh(e) {
19626
19648
  return function(t) {
19627
19649
  return e.apply(null, t);
19628
19650
  };
19629
19651
  }
19630
19652
  //#endregion
19631
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/isAxiosError.js
19653
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/isAxiosError.js
19632
19654
  function Ah(e) {
19633
19655
  return Y.isObject(e) && e.isAxiosError === !0;
19634
19656
  }
19635
19657
  //#endregion
19636
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/helpers/HttpStatusCode.js
19658
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/helpers/HttpStatusCode.js
19637
19659
  var jh = {
19638
19660
  Continue: 100,
19639
19661
  SwitchingProtocols: 101,
@@ -19709,7 +19731,7 @@ Object.entries(jh).forEach(([e, t]) => {
19709
19731
  jh[t] = e;
19710
19732
  });
19711
19733
  //#endregion
19712
- //#region ../../../../../node_modules/.pnpm/axios@1.18.0_supports-color@7.2.0/node_modules/axios/lib/axios.js
19734
+ //#region ../../../../../node_modules/.pnpm/axios@1.18.0/node_modules/axios/lib/axios.js
19713
19735
  function Mh(e) {
19714
19736
  let t = new Dh(e), n = df(Dh.prototype.request, t);
19715
19737
  return Y.extend(n, Dh.prototype, t, { allOwnKeys: !0 }), Y.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
@@ -20464,18 +20486,20 @@ function Hg(e, t, n, r) {
20464
20486
  let o = i[a];
20465
20487
  if (ig(o)) continue;
20466
20488
  let s = t[o], c = e[o];
20467
- if (Fg(s) && (s = { ...s }), Fg(c) && (c = { ...c }), rg(s) && (s = Pg(s)), Array.isArray(s)) if (Array.isArray(c)) {
20468
- let e = [], t = Reflect.ownKeys(c);
20469
- for (let n = 0; n < t.length; n++) {
20470
- let r = t[n];
20471
- e[r] = c[r];
20472
- }
20473
- c = e;
20474
- } else if (zg(c)) {
20475
- let e = [];
20476
- for (let t = 0; t < c.length; t++) e[t] = c[t];
20477
- c = e;
20478
- } else c = [];
20489
+ if (Fg(s) && (s = { ...s }), Fg(c) && (c = { ...c }), rg(s) && (s = Pg(s)), Array.isArray(s)) {
20490
+ if (Array.isArray(c)) {
20491
+ let e = [], t = Reflect.ownKeys(c);
20492
+ for (let n = 0; n < t.length; n++) {
20493
+ let r = t[n];
20494
+ e[r] = c[r];
20495
+ }
20496
+ c = e;
20497
+ } else if (zg(c)) {
20498
+ let e = [];
20499
+ for (let t = 0; t < c.length; t++) e[t] = c[t];
20500
+ c = e;
20501
+ } else c = [];
20502
+ }
20479
20503
  let l = n(c, s, o, e, t, r);
20480
20504
  l === void 0 ? Array.isArray(s) || Ig(c) && Ig(s) && (ag(c) || ag(s) || Bg(c) || Bg(s)) ? e[o] = Hg(c, s, n, r) : c == null && ag(s) ? e[o] = Hg({}, s, n, r) : c == null && Bg(s) ? e[o] = Pg(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
20481
20505
  }
@@ -21530,12 +21554,13 @@ var d_ = /* @__PURE__ */ s(((e, t) => {
21530
21554
  var o = t.length;
21531
21555
  if (r && typeof r.arrayLimit == "number" && o > r.arrayLimit) return s(p(t.concat(n), r), o);
21532
21556
  t[o] = n;
21533
- } else if (t && typeof t == "object") if (c(t)) {
21534
- var d = l(t) + 1;
21535
- t[d] = n, u(t, d);
21536
- } else if (r && r.strictMerge) return [t, n];
21537
- else (r && (r.plainObjects || r.allowPrototypes) || !i.call(Object.prototype, n)) && (t[n] = !0);
21538
- else return [t, n];
21557
+ } else if (t && typeof t == "object") {
21558
+ if (c(t)) {
21559
+ var d = l(t) + 1;
21560
+ t[d] = n, u(t, d);
21561
+ } else if (r && r.strictMerge) return [t, n];
21562
+ else (r && (r.plainObjects || r.allowPrototypes) || !i.call(Object.prototype, n)) && (t[n] = !0);
21563
+ } else return [t, n];
21539
21564
  return t;
21540
21565
  }
21541
21566
  if (!t || typeof t != "object") {
@@ -23478,12 +23503,14 @@ function ex() {
23478
23503
  from: n
23479
23504
  });
23480
23505
  }
23481
- if (n.removeAttribute(e), e === "is") if (Ae || je) try {
23482
- mt(n);
23483
- } catch {}
23484
- else try {
23485
- n.setAttribute(e, "");
23486
- } catch {}
23506
+ if (n.removeAttribute(e), e === "is") {
23507
+ if (Ae || je) try {
23508
+ mt(n);
23509
+ } catch {}
23510
+ else try {
23511
+ n.setAttribute(e, "");
23512
+ } catch {}
23513
+ }
23487
23514
  }, _t = function(e) {
23488
23515
  let t = v(e);
23489
23516
  if (t) for (let n = t.length - 1; n >= 0; --n) {
@@ -24091,7 +24118,7 @@ var kx = "lr.chatbot.broadcast_channel." + document.location.hostname, Ax = "lr.
24091
24118
  }), this.#e = "/bff", this.#t = !1, this.#n = !1, this.#r = !1, this.#i = !1, this._closeClickCount = 0, this._isConversationDone = !1, this._shouldEndConversation = !1, this._broadcastController = new ry(this, kx), this._conversationHistoryTask = this.createConversationHistoryTask(), this.registerBroadcastMessages();
24092
24119
  }
24093
24120
  getVersion() {
24094
- return "LR Chatbot - v.0.48.62";
24121
+ return "LR Chatbot - v.0.48.64";
24095
24122
  }
24096
24123
  async connectedCallback() {
24097
24124
  super.connectedCallback(), this._conversationHistoryTask.run();
@@ -24310,11 +24337,13 @@ var kx = "lr.chatbot.broadcast_channel." + document.location.hostname, Ax = "lr.
24310
24337
  this.minimized || (this.opened = !1, this.minimized = !0, localStorage.setItem(jx, "minimized"));
24311
24338
  }
24312
24339
  open() {
24313
- if (!this.opened) if (this.isWebviewPage()) window.location.href = "laredoute://?chat";
24314
- else {
24315
- this.opened = !0, this.minimized = !1, localStorage.setItem(jx, "opened"), this._broadcastController.send({ action: "open" });
24316
- let e = new CustomEvent("chatBotWindowOpen", { detail: "true" });
24317
- window.dispatchEvent(e);
24340
+ if (!this.opened) {
24341
+ if (this.isWebviewPage()) window.location.href = "laredoute://?chat";
24342
+ else {
24343
+ this.opened = !0, this.minimized = !1, localStorage.setItem(jx, "opened"), this._broadcastController.send({ action: "open" });
24344
+ let e = new CustomEvent("chatBotWindowOpen", { detail: "true" });
24345
+ window.dispatchEvent(e);
24346
+ }
24318
24347
  }
24319
24348
  }
24320
24349
  close() {