@connorpham/live-chat-widget 7.0.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/cellcast-bot-widget.es.js +1018 -1020
- package/dist/cellcast-bot-widget.umd.js +13 -13
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var cD = (u, D, f) =>
|
|
4
|
-
import
|
|
1
|
+
var s0 = Object.defineProperty;
|
|
2
|
+
var F0 = (u, D, f) => D in u ? s0(u, D, { enumerable: !0, configurable: !0, writable: !0, value: f }) : u[D] = f;
|
|
3
|
+
var cD = (u, D, f) => F0(u, typeof D != "symbol" ? D + "" : D, f);
|
|
4
|
+
import rf, { createContext as Mu, useRef as bu, useEffect as G, useContext as Wu, useState as U, useCallback as Uu, useMemo as i0 } from "react";
|
|
5
5
|
var oD = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
|
-
function
|
|
6
|
+
function af(u) {
|
|
7
7
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var VD = { exports: {} }, DD = {};
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
14
|
*/
|
|
15
|
-
var RD,
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
|
|
15
|
+
var RD, jf;
|
|
16
|
+
function Yf() {
|
|
17
|
+
if (jf) return RD;
|
|
18
|
+
jf = 1;
|
|
19
19
|
var u = Object.getOwnPropertySymbols, D = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
20
20
|
function e(n) {
|
|
21
21
|
if (n == null)
|
|
@@ -66,11 +66,11 @@ function Kf() {
|
|
|
66
66
|
* This source code is licensed under the MIT license found in the
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
68
|
*/
|
|
69
|
-
var
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
var u =
|
|
69
|
+
var Tf;
|
|
70
|
+
function o0() {
|
|
71
|
+
if (Tf) return DD;
|
|
72
|
+
Tf = 1, Yf();
|
|
73
|
+
var u = rf, D = 60103;
|
|
74
74
|
if (DD.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
75
75
|
var f = Symbol.for;
|
|
76
76
|
D = f("react.element"), DD.Fragment = f("react.fragment");
|
|
@@ -85,9 +85,9 @@ function d0() {
|
|
|
85
85
|
}
|
|
86
86
|
return DD.jsx = r, DD.jsxs = r, DD;
|
|
87
87
|
}
|
|
88
|
-
var PD = {},
|
|
89
|
-
function
|
|
90
|
-
return
|
|
88
|
+
var PD = {}, Nf;
|
|
89
|
+
function d0() {
|
|
90
|
+
return Nf || (Nf = 1, function(u) {
|
|
91
91
|
var D = {};
|
|
92
92
|
/** @license React v17.0.2
|
|
93
93
|
* react-jsx-runtime.development.js
|
|
@@ -98,7 +98,7 @@ function C0() {
|
|
|
98
98
|
* LICENSE file in the root directory of this source tree.
|
|
99
99
|
*/
|
|
100
100
|
D.NODE_ENV !== "production" && function() {
|
|
101
|
-
var f =
|
|
101
|
+
var f = rf, e = Yf(), t = 60103, n = 60106;
|
|
102
102
|
u.Fragment = 60107;
|
|
103
103
|
var r = 60108, s = 60114, F = 60109, d = 60110, o = 60112, c = 60113, l = 60120, A = 60115, C = 60116, m = 60121, j = 60122, L = 60117, x = 60129, I = 60131;
|
|
104
104
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
@@ -336,8 +336,8 @@ function C0() {
|
|
|
336
336
|
} finally {
|
|
337
337
|
ru = !1, cu.current = K, tu(), Error.prepareStackTrace = Z;
|
|
338
338
|
}
|
|
339
|
-
var uD = i ? i.displayName || i.name : "",
|
|
340
|
-
return typeof i == "function" && du.set(i,
|
|
339
|
+
var uD = i ? i.displayName || i.name : "", Sf = uD ? Bu(uD) : "";
|
|
340
|
+
return typeof i == "function" && du.set(i, Sf), Sf;
|
|
341
341
|
}
|
|
342
342
|
function S(i, h, w) {
|
|
343
343
|
return Iu(i, !1);
|
|
@@ -385,7 +385,7 @@ function C0() {
|
|
|
385
385
|
} else
|
|
386
386
|
gu.setExtraStackFrame(null);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function H1(i, h, w, M, Z) {
|
|
389
389
|
{
|
|
390
390
|
var K = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
391
391
|
for (var Y in i)
|
|
@@ -404,13 +404,13 @@ function C0() {
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var gf = v.ReactCurrentOwner, jD = Object.prototype.hasOwnProperty, W1 = {
|
|
408
408
|
key: !0,
|
|
409
409
|
ref: !0,
|
|
410
410
|
__self: !0,
|
|
411
411
|
__source: !0
|
|
412
|
-
},
|
|
413
|
-
function
|
|
412
|
+
}, mf, _f;
|
|
413
|
+
function Y1(i) {
|
|
414
414
|
if (jD.call(i, "ref")) {
|
|
415
415
|
var h = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
416
416
|
if (h && h.isReactWarning)
|
|
@@ -418,7 +418,7 @@ function C0() {
|
|
|
418
418
|
}
|
|
419
419
|
return i.ref !== void 0;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function J1(i) {
|
|
422
422
|
if (jD.call(i, "key")) {
|
|
423
423
|
var h = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
424
424
|
if (h && h.isReactWarning)
|
|
@@ -426,13 +426,13 @@ function C0() {
|
|
|
426
426
|
}
|
|
427
427
|
return i.key !== void 0;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
typeof i.ref == "string" &&
|
|
429
|
+
function K1(i, h) {
|
|
430
|
+
typeof i.ref == "string" && gf.current;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function G1(i, h) {
|
|
433
433
|
{
|
|
434
434
|
var w = function() {
|
|
435
|
-
|
|
435
|
+
mf || (mf = !0, q("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
436
436
|
};
|
|
437
437
|
w.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
438
438
|
get: w,
|
|
@@ -440,10 +440,10 @@ function C0() {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function X1(i, h) {
|
|
444
444
|
{
|
|
445
445
|
var w = function() {
|
|
446
|
-
|
|
446
|
+
_f || (_f = !0, q("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
447
447
|
};
|
|
448
448
|
w.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
449
449
|
get: w,
|
|
@@ -451,7 +451,7 @@ function C0() {
|
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
var
|
|
454
|
+
var Z1 = function(i, h, w, M, Z, K, Y) {
|
|
455
455
|
var V = {
|
|
456
456
|
// This tag allows us to uniquely identify this as a React Element
|
|
457
457
|
$$typeof: t,
|
|
@@ -480,12 +480,12 @@ function C0() {
|
|
|
480
480
|
value: Z
|
|
481
481
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function Q1(i, h, w, M, Z) {
|
|
484
484
|
{
|
|
485
485
|
var K, Y = {}, V = null, hu = null;
|
|
486
|
-
w !== void 0 && (V = "" + w),
|
|
486
|
+
w !== void 0 && (V = "" + w), J1(h) && (V = "" + h.key), Y1(h) && (hu = h.ref, K1(h, Z));
|
|
487
487
|
for (K in h)
|
|
488
|
-
jD.call(h, K) && !
|
|
488
|
+
jD.call(h, K) && !W1.hasOwnProperty(K) && (Y[K] = h[K]);
|
|
489
489
|
if (i && i.defaultProps) {
|
|
490
490
|
var nu = i.defaultProps;
|
|
491
491
|
for (K in nu)
|
|
@@ -493,25 +493,25 @@ function C0() {
|
|
|
493
493
|
}
|
|
494
494
|
if (V || hu) {
|
|
495
495
|
var su = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
|
496
|
-
V &&
|
|
496
|
+
V && G1(Y, su), hu && X1(Y, su);
|
|
497
497
|
}
|
|
498
|
-
return
|
|
498
|
+
return Z1(i, V, hu, Z, M, gf.current, Y);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
var TD = v.ReactCurrentOwner,
|
|
501
|
+
var TD = v.ReactCurrentOwner, yf = v.ReactDebugCurrentFrame;
|
|
502
502
|
function Qu(i) {
|
|
503
503
|
if (i) {
|
|
504
504
|
var h = i._owner, w = au(i.type, i._source, h ? h.type : null);
|
|
505
|
-
|
|
505
|
+
yf.setExtraStackFrame(w);
|
|
506
506
|
} else
|
|
507
|
-
|
|
507
|
+
yf.setExtraStackFrame(null);
|
|
508
508
|
}
|
|
509
509
|
var ND;
|
|
510
510
|
ND = !1;
|
|
511
511
|
function OD(i) {
|
|
512
512
|
return typeof i == "object" && i !== null && i.$$typeof === t;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function vf() {
|
|
515
515
|
{
|
|
516
516
|
if (TD.current) {
|
|
517
517
|
var i = E(TD.current.type);
|
|
@@ -523,13 +523,13 @@ Check the render method of \`` + i + "`.";
|
|
|
523
523
|
return "";
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function u0(i) {
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
529
|
+
var wf = {};
|
|
530
|
+
function D0(i) {
|
|
531
531
|
{
|
|
532
|
-
var h =
|
|
532
|
+
var h = vf();
|
|
533
533
|
if (!h) {
|
|
534
534
|
var w = typeof i == "string" ? i : i.displayName || i.name;
|
|
535
535
|
w && (h = `
|
|
@@ -539,27 +539,27 @@ Check the top-level render call using <` + w + ">.");
|
|
|
539
539
|
return h;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Af(i, h) {
|
|
543
543
|
{
|
|
544
544
|
if (!i._store || i._store.validated || i.key != null)
|
|
545
545
|
return;
|
|
546
546
|
i._store.validated = !0;
|
|
547
|
-
var w =
|
|
548
|
-
if (
|
|
547
|
+
var w = D0(h);
|
|
548
|
+
if (wf[w])
|
|
549
549
|
return;
|
|
550
|
-
|
|
550
|
+
wf[w] = !0;
|
|
551
551
|
var M = "";
|
|
552
552
|
i && i._owner && i._owner !== TD.current && (M = " It was passed a child from " + E(i._owner.type) + "."), Qu(i), q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, M), Qu(null);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function xf(i, h) {
|
|
556
556
|
{
|
|
557
557
|
if (typeof i != "object")
|
|
558
558
|
return;
|
|
559
559
|
if (Array.isArray(i))
|
|
560
560
|
for (var w = 0; w < i.length; w++) {
|
|
561
561
|
var M = i[w];
|
|
562
|
-
OD(M) &&
|
|
562
|
+
OD(M) && Af(M, h);
|
|
563
563
|
}
|
|
564
564
|
else if (OD(i))
|
|
565
565
|
i._store && (i._store.validated = !0);
|
|
@@ -567,11 +567,11 @@ Check the top-level render call using <` + w + ">.");
|
|
|
567
567
|
var Z = y(i);
|
|
568
568
|
if (typeof Z == "function" && Z !== i.entries)
|
|
569
569
|
for (var K = Z.call(i), Y; !(Y = K.next()).done; )
|
|
570
|
-
OD(Y.value) &&
|
|
570
|
+
OD(Y.value) && Af(Y.value, h);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function f0(i) {
|
|
575
575
|
{
|
|
576
576
|
var h = i.type;
|
|
577
577
|
if (h == null || typeof h == "string")
|
|
@@ -587,7 +587,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
587
587
|
return;
|
|
588
588
|
if (w) {
|
|
589
589
|
var M = E(h);
|
|
590
|
-
|
|
590
|
+
H1(w, i.props, "prop", M, i);
|
|
591
591
|
} else if (h.PropTypes !== void 0 && !ND) {
|
|
592
592
|
ND = !0;
|
|
593
593
|
var Z = E(h);
|
|
@@ -596,7 +596,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
596
596
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function e0(i) {
|
|
600
600
|
{
|
|
601
601
|
for (var h = Object.keys(i.props), w = 0; w < h.length; w++) {
|
|
602
602
|
var M = h[w];
|
|
@@ -608,18 +608,18 @@ Check the top-level render call using <` + w + ">.");
|
|
|
608
608
|
i.ref !== null && (Qu(i), q("Invalid attribute `ref` supplied to `React.Fragment`."), Qu(null));
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function kf(i, h, w, M, Z, K) {
|
|
612
612
|
{
|
|
613
613
|
var Y = $(i);
|
|
614
614
|
if (!Y) {
|
|
615
615
|
var V = "";
|
|
616
616
|
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
617
|
-
var hu =
|
|
618
|
-
hu ? V += hu : V +=
|
|
617
|
+
var hu = u0();
|
|
618
|
+
hu ? V += hu : V += vf();
|
|
619
619
|
var nu;
|
|
620
620
|
i === null ? nu = "null" : Array.isArray(i) ? nu = "array" : i !== void 0 && i.$$typeof === t ? (nu = "<" + (E(i.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : nu = typeof i, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", nu, V);
|
|
621
621
|
}
|
|
622
|
-
var su =
|
|
622
|
+
var su = Q1(i, h, w, Z, K);
|
|
623
623
|
if (su == null)
|
|
624
624
|
return su;
|
|
625
625
|
if (Y) {
|
|
@@ -628,31 +628,31 @@ Check the top-level render call using <` + w + ">.");
|
|
|
628
628
|
if (M)
|
|
629
629
|
if (Array.isArray(Lu)) {
|
|
630
630
|
for (var uD = 0; uD < Lu.length; uD++)
|
|
631
|
-
|
|
631
|
+
xf(Lu[uD], i);
|
|
632
632
|
Object.freeze && Object.freeze(Lu);
|
|
633
633
|
} else
|
|
634
634
|
q("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
635
635
|
else
|
|
636
|
-
|
|
636
|
+
xf(Lu, i);
|
|
637
637
|
}
|
|
638
|
-
return i === u.Fragment ?
|
|
638
|
+
return i === u.Fragment ? e0(su) : f0(su), su;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
641
|
+
function t0(i, h, w) {
|
|
642
|
+
return kf(i, h, w, !0);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
644
|
+
function n0(i, h, w) {
|
|
645
|
+
return kf(i, h, w, !1);
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
u.jsx =
|
|
647
|
+
var r0 = n0, a0 = t0;
|
|
648
|
+
u.jsx = r0, u.jsxs = a0;
|
|
649
649
|
}();
|
|
650
650
|
}(PD)), PD;
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
var a =
|
|
655
|
-
const
|
|
652
|
+
var C0 = {};
|
|
653
|
+
C0.NODE_ENV === "production" ? VD.exports = o0() : VD.exports = d0();
|
|
654
|
+
var a = VD.exports;
|
|
655
|
+
const Jf = Mu(void 0), Kf = ({
|
|
656
656
|
children: u,
|
|
657
657
|
channelName: D
|
|
658
658
|
}) => {
|
|
@@ -677,7 +677,7 @@ const Gf = Mu(void 0), Xf = ({
|
|
|
677
677
|
f.current.postMessage(r);
|
|
678
678
|
};
|
|
679
679
|
return /* @__PURE__ */ a.jsx(
|
|
680
|
-
|
|
680
|
+
Jf.Provider,
|
|
681
681
|
{
|
|
682
682
|
value: {
|
|
683
683
|
subscribe: t,
|
|
@@ -686,50 +686,50 @@ const Gf = Mu(void 0), Xf = ({
|
|
|
686
686
|
children: u
|
|
687
687
|
}
|
|
688
688
|
);
|
|
689
|
-
},
|
|
690
|
-
const u = Wu(
|
|
689
|
+
}, c0 = () => {
|
|
690
|
+
const u = Wu(Jf);
|
|
691
691
|
if (!u)
|
|
692
692
|
throw new Error(
|
|
693
693
|
"useBroadcastChannel must be used within a BroadcastChannelProvider"
|
|
694
694
|
);
|
|
695
695
|
return u;
|
|
696
|
-
},
|
|
697
|
-
const { subscribe: D } =
|
|
696
|
+
}, l0 = (...u) => {
|
|
697
|
+
const { subscribe: D } = c0();
|
|
698
698
|
G(() => {
|
|
699
699
|
D(...u);
|
|
700
700
|
}, [D, ...u]);
|
|
701
701
|
};
|
|
702
|
-
var
|
|
703
|
-
const
|
|
702
|
+
var HD = /* @__PURE__ */ ((u) => (u.message = "message", u.delivery = "delivery", u.read = "read", u.typing = "typing", u.follow = "follow", u.echo = "echo", u.unknown = "", u))(HD || {}), uu = /* @__PURE__ */ ((u) => (u.sent = "sent", u.received = "received", u))(uu || {}), Gf = /* @__PURE__ */ ((u) => (u.text = "text", u.location = "location", u))(Gf || {}), wu = /* @__PURE__ */ ((u) => (u.text = "text", u.quick_reply = "quick_reply", u.postback = "postback", u.location = "location", u.file = "file", u.notify = "notify", u))(wu || {}), WD = /* @__PURE__ */ ((u) => (u.text = "text", u.buttons = "buttons", u.quick_replies = "quick_replies", u.file = "file", u.list = "list", u.carousel = "carousel", u))(WD || {}), FD = /* @__PURE__ */ ((u) => (u[u.sent = 0] = "sent", u[u.sending = 1] = "sending", u[u.uploading = 2] = "uploading", u))(FD || {}), fD = /* @__PURE__ */ ((u) => (u[u.disconnected = 0] = "disconnected", u[u.wantToConnect = 1] = "wantToConnect", u[u.tryingToConnect = 2] = "tryingToConnect", u[u.connected = 3] = "connected", u))(fD || {}), nD = {};
|
|
703
|
+
const Xf = {
|
|
704
704
|
apiUrl: nD.REACT_APP_WIDGET_API_URL || "http://localhost:4000",
|
|
705
705
|
channel: nD.REACT_APP_WIDGET_CHANNEL || "console-channel",
|
|
706
706
|
language: "en",
|
|
707
707
|
maxUploadSize: nD.UPLOAD_MAX_SIZE_IN_BYTES ?? "" ? Number(nD.UPLOAD_MAX_SIZE_IN_BYTES) : 20 * 1024 * 1024,
|
|
708
708
|
// 20 MB in bytes
|
|
709
|
-
ownerId: nD.REACT_APP_WIDGET_OWNER_ID || "
|
|
710
|
-
},
|
|
709
|
+
ownerId: nD.REACT_APP_WIDGET_OWNER_ID || "68342cec1e3cef0065f1b563"
|
|
710
|
+
}, Zf = Mu(Xf), Qf = ({ children: u, ...D }) => {
|
|
711
711
|
const f = bu({
|
|
712
|
-
...
|
|
712
|
+
...Xf,
|
|
713
713
|
...D
|
|
714
714
|
});
|
|
715
|
-
return /* @__PURE__ */ a.jsx(
|
|
715
|
+
return /* @__PURE__ */ a.jsx(Zf.Provider, { value: f.current, children: u });
|
|
716
716
|
}, qu = () => {
|
|
717
|
-
const u = Wu(
|
|
717
|
+
const u = Wu(Zf);
|
|
718
718
|
if (!u)
|
|
719
719
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
720
720
|
return u;
|
|
721
|
-
},
|
|
721
|
+
}, E0 = {
|
|
722
722
|
get_started: "Start Chat",
|
|
723
723
|
first_name: "First Name",
|
|
724
724
|
last_name: "Last Name",
|
|
725
725
|
phone: "Phone Number",
|
|
726
726
|
email: "Email Address"
|
|
727
|
-
},
|
|
727
|
+
}, h0 = {
|
|
728
728
|
greeting: "Welcome !",
|
|
729
729
|
placeholder: "Write something...",
|
|
730
730
|
connection_lost: "Connection Lost",
|
|
731
731
|
back: "Back"
|
|
732
|
-
},
|
|
732
|
+
}, b0 = {
|
|
733
733
|
get_started: "Start Chat",
|
|
734
734
|
file_message: {
|
|
735
735
|
browser_audio_unsupport: "Browser does not support the audio element.",
|
|
@@ -738,22 +738,22 @@ const Qf = {
|
|
|
738
738
|
unsupported_file_type: "This file type is not supported.",
|
|
739
739
|
unsupported_file_size: "This file size is not supported."
|
|
740
740
|
}
|
|
741
|
+
}, p0 = {
|
|
742
|
+
user_subscription: E0,
|
|
743
|
+
settings: h0,
|
|
744
|
+
messages: b0
|
|
741
745
|
}, B0 = {
|
|
742
|
-
user_subscription: h0,
|
|
743
|
-
settings: b0,
|
|
744
|
-
messages: p0
|
|
745
|
-
}, g0 = {
|
|
746
746
|
get_started: "Commencer",
|
|
747
747
|
first_name: "Prénom",
|
|
748
748
|
last_name: "Nom",
|
|
749
749
|
phone: "Numéro de Téléphone",
|
|
750
750
|
email: "Adresse Email"
|
|
751
|
-
},
|
|
751
|
+
}, g0 = {
|
|
752
752
|
greeting: "Bienvenue !",
|
|
753
753
|
placeholder: "Écrivez quelque chose...",
|
|
754
754
|
connection_lost: "Connexion perdue",
|
|
755
755
|
back: "Retour"
|
|
756
|
-
},
|
|
756
|
+
}, m0 = {
|
|
757
757
|
get_started: "Démarrer",
|
|
758
758
|
file_message: {
|
|
759
759
|
browser_audio_unsupport: "Le navigateur ne prend pas en charge l'élément audio.",
|
|
@@ -762,55 +762,55 @@ const Qf = {
|
|
|
762
762
|
unsupported_file_type: "Ce type de fichier n'est pas pris en charge.",
|
|
763
763
|
unsupported_file_size: "Cette taille de fichier n'est pas prise en charge."
|
|
764
764
|
}
|
|
765
|
-
},
|
|
766
|
-
user_subscription:
|
|
767
|
-
settings:
|
|
768
|
-
messages:
|
|
769
|
-
},
|
|
765
|
+
}, _0 = {
|
|
766
|
+
user_subscription: B0,
|
|
767
|
+
settings: g0,
|
|
768
|
+
messages: m0
|
|
769
|
+
}, Of = { en: p0, fr: _0 }, u1 = Mu(
|
|
770
770
|
void 0
|
|
771
|
-
),
|
|
771
|
+
), D1 = ({
|
|
772
772
|
children: u
|
|
773
773
|
}) => {
|
|
774
|
-
const f = qu().language, e = (r) => r in
|
|
774
|
+
const f = qu().language, e = (r) => r in Of, [t, n] = U(
|
|
775
775
|
e(f) ? f : "en"
|
|
776
776
|
);
|
|
777
777
|
return /* @__PURE__ */ a.jsx(
|
|
778
|
-
|
|
778
|
+
u1.Provider,
|
|
779
779
|
{
|
|
780
|
-
value: { translations:
|
|
780
|
+
value: { translations: Of, language: t, setLanguage: n },
|
|
781
781
|
children: u
|
|
782
782
|
}
|
|
783
783
|
);
|
|
784
|
-
},
|
|
785
|
-
const u = Wu(
|
|
784
|
+
}, y0 = () => {
|
|
785
|
+
const u = Wu(u1);
|
|
786
786
|
if (!u)
|
|
787
787
|
throw new Error(
|
|
788
788
|
"useTranslationContext must be used within a TranslationProvider"
|
|
789
789
|
);
|
|
790
790
|
return u;
|
|
791
|
-
},
|
|
791
|
+
}, v0 = (u, D) => D.split(".").reduce((f, e) => {
|
|
792
792
|
if (typeof f == "object" && f !== null)
|
|
793
793
|
return f[e];
|
|
794
794
|
}, u), Nu = () => {
|
|
795
|
-
const { translations: u, language: D } =
|
|
795
|
+
const { translations: u, language: D } = y0();
|
|
796
796
|
return { t: Uu(
|
|
797
|
-
(e, t = {}) => (
|
|
797
|
+
(e, t = {}) => (v0(u[D], e) || e).replace(
|
|
798
798
|
/{(\w+)}/g,
|
|
799
799
|
(r, s) => t[s] || `{${s}}`
|
|
800
800
|
),
|
|
801
801
|
[D, u]
|
|
802
802
|
) };
|
|
803
803
|
};
|
|
804
|
-
function
|
|
804
|
+
function w0(u, D) {
|
|
805
805
|
if (typeof D > "u")
|
|
806
806
|
throw new Error("Value cannot be undefined");
|
|
807
807
|
return sessionStorage.setItem(u, JSON.stringify(D)), !0;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function A0(u) {
|
|
810
810
|
const D = sessionStorage.getItem(u);
|
|
811
811
|
return D === null ? null : JSON.parse(D);
|
|
812
812
|
}
|
|
813
|
-
const
|
|
813
|
+
const Rf = { setItem: w0, getItem: A0 }, ju = /* @__PURE__ */ Object.create(null);
|
|
814
814
|
ju.open = "0";
|
|
815
815
|
ju.close = "1";
|
|
816
816
|
ju.ping = "2";
|
|
@@ -822,59 +822,59 @@ const bD = /* @__PURE__ */ Object.create(null);
|
|
|
822
822
|
Object.keys(ju).forEach((u) => {
|
|
823
823
|
bD[ju[u]] = u;
|
|
824
824
|
});
|
|
825
|
-
const
|
|
825
|
+
const YD = { type: "error", data: "parser error" }, f1 = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", e1 = typeof ArrayBuffer == "function", t1 = (u) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(u) : u && u.buffer instanceof ArrayBuffer, sf = ({ type: u, data: D }, f, e) => f1 && D instanceof Blob ? f ? e(D) : Pf(D, e) : e1 && (D instanceof ArrayBuffer || t1(D)) ? f ? e(D) : Pf(new Blob([D]), e) : e(ju[u] + (D || "")), Pf = (u, D) => {
|
|
826
826
|
const f = new FileReader();
|
|
827
827
|
return f.onload = function() {
|
|
828
828
|
const e = f.result.split(",")[1];
|
|
829
829
|
D("b" + (e || ""));
|
|
830
830
|
}, f.readAsDataURL(u);
|
|
831
831
|
};
|
|
832
|
-
function
|
|
832
|
+
function If(u) {
|
|
833
833
|
return u instanceof Uint8Array ? u : u instanceof ArrayBuffer ? new Uint8Array(u) : new Uint8Array(u.buffer, u.byteOffset, u.byteLength);
|
|
834
834
|
}
|
|
835
835
|
let ID;
|
|
836
|
-
function
|
|
837
|
-
if (
|
|
838
|
-
return u.data.arrayBuffer().then(
|
|
839
|
-
if (
|
|
840
|
-
return D(
|
|
841
|
-
|
|
836
|
+
function x0(u, D) {
|
|
837
|
+
if (f1 && u.data instanceof Blob)
|
|
838
|
+
return u.data.arrayBuffer().then(If).then(D);
|
|
839
|
+
if (e1 && (u.data instanceof ArrayBuffer || t1(u.data)))
|
|
840
|
+
return D(If(u.data));
|
|
841
|
+
sf(u, !1, (f) => {
|
|
842
842
|
ID || (ID = new TextEncoder()), D(ID.encode(f));
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
const
|
|
846
|
-
for (let u = 0; u <
|
|
847
|
-
sD[
|
|
848
|
-
const
|
|
845
|
+
const Lf = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", sD = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
846
|
+
for (let u = 0; u < Lf.length; u++)
|
|
847
|
+
sD[Lf.charCodeAt(u)] = u;
|
|
848
|
+
const k0 = (u) => {
|
|
849
849
|
let D = u.length * 0.75, f = u.length, e, t = 0, n, r, s, F;
|
|
850
850
|
u[u.length - 1] === "=" && (D--, u[u.length - 2] === "=" && D--);
|
|
851
851
|
const d = new ArrayBuffer(D), o = new Uint8Array(d);
|
|
852
852
|
for (e = 0; e < f; e += 4)
|
|
853
853
|
n = sD[u.charCodeAt(e)], r = sD[u.charCodeAt(e + 1)], s = sD[u.charCodeAt(e + 2)], F = sD[u.charCodeAt(e + 3)], o[t++] = n << 2 | r >> 4, o[t++] = (r & 15) << 4 | s >> 2, o[t++] = (s & 3) << 6 | F & 63;
|
|
854
854
|
return d;
|
|
855
|
-
},
|
|
855
|
+
}, S0 = typeof ArrayBuffer == "function", Ff = (u, D) => {
|
|
856
856
|
if (typeof u != "string")
|
|
857
857
|
return {
|
|
858
858
|
type: "message",
|
|
859
|
-
data:
|
|
859
|
+
data: n1(u, D)
|
|
860
860
|
};
|
|
861
861
|
const f = u.charAt(0);
|
|
862
862
|
return f === "b" ? {
|
|
863
863
|
type: "message",
|
|
864
|
-
data:
|
|
864
|
+
data: j0(u.substring(1), D)
|
|
865
865
|
} : bD[f] ? u.length > 1 ? {
|
|
866
866
|
type: bD[f],
|
|
867
867
|
data: u.substring(1)
|
|
868
868
|
} : {
|
|
869
869
|
type: bD[f]
|
|
870
|
-
} :
|
|
871
|
-
},
|
|
872
|
-
if (
|
|
873
|
-
const f =
|
|
874
|
-
return
|
|
870
|
+
} : YD;
|
|
871
|
+
}, j0 = (u, D) => {
|
|
872
|
+
if (S0) {
|
|
873
|
+
const f = k0(u);
|
|
874
|
+
return n1(f, D);
|
|
875
875
|
} else
|
|
876
876
|
return { base64: !0, data: u };
|
|
877
|
-
},
|
|
877
|
+
}, n1 = (u, D) => {
|
|
878
878
|
switch (D) {
|
|
879
879
|
case "blob":
|
|
880
880
|
return u instanceof Blob ? u : new Blob([u]);
|
|
@@ -882,27 +882,27 @@ const S0 = (u) => {
|
|
|
882
882
|
default:
|
|
883
883
|
return u instanceof ArrayBuffer ? u : u.buffer;
|
|
884
884
|
}
|
|
885
|
-
},
|
|
885
|
+
}, r1 = "", T0 = (u, D) => {
|
|
886
886
|
const f = u.length, e = new Array(f);
|
|
887
887
|
let t = 0;
|
|
888
888
|
u.forEach((n, r) => {
|
|
889
|
-
|
|
890
|
-
e[r] = s, ++t === f && D(e.join(
|
|
889
|
+
sf(n, !1, (s) => {
|
|
890
|
+
e[r] = s, ++t === f && D(e.join(r1));
|
|
891
891
|
});
|
|
892
892
|
});
|
|
893
|
-
},
|
|
894
|
-
const f = u.split(
|
|
893
|
+
}, N0 = (u, D) => {
|
|
894
|
+
const f = u.split(r1), e = [];
|
|
895
895
|
for (let t = 0; t < f.length; t++) {
|
|
896
|
-
const n =
|
|
896
|
+
const n = Ff(f[t], D);
|
|
897
897
|
if (e.push(n), n.type === "error")
|
|
898
898
|
break;
|
|
899
899
|
}
|
|
900
900
|
return e;
|
|
901
901
|
};
|
|
902
|
-
function
|
|
902
|
+
function O0() {
|
|
903
903
|
return new TransformStream({
|
|
904
904
|
transform(u, D) {
|
|
905
|
-
|
|
905
|
+
x0(u, (f) => {
|
|
906
906
|
const e = f.length;
|
|
907
907
|
let t;
|
|
908
908
|
if (e < 126)
|
|
@@ -934,7 +934,7 @@ function ED(u, D) {
|
|
|
934
934
|
f[t] = u[0][e++], e === u[0].length && (u.shift(), e = 0);
|
|
935
935
|
return u.length && e < u[0].length && (u[0] = u[0].slice(e)), f;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function R0(u, D) {
|
|
938
938
|
LD || (LD = new TextDecoder());
|
|
939
939
|
const f = [];
|
|
940
940
|
let e = 0, t = -1, n = !1;
|
|
@@ -956,7 +956,7 @@ function P0(u, D) {
|
|
|
956
956
|
break;
|
|
957
957
|
const F = ED(f, 8), d = new DataView(F.buffer, F.byteOffset, F.length), o = d.getUint32(0);
|
|
958
958
|
if (o > Math.pow(2, 21) - 1) {
|
|
959
|
-
s.enqueue(
|
|
959
|
+
s.enqueue(YD);
|
|
960
960
|
break;
|
|
961
961
|
}
|
|
962
962
|
t = o * Math.pow(2, 32) + d.getUint32(4), e = 3;
|
|
@@ -964,21 +964,21 @@ function P0(u, D) {
|
|
|
964
964
|
if (lD(f) < t)
|
|
965
965
|
break;
|
|
966
966
|
const F = ED(f, t);
|
|
967
|
-
s.enqueue(
|
|
967
|
+
s.enqueue(Ff(n ? F : LD.decode(F), D)), e = 0;
|
|
968
968
|
}
|
|
969
969
|
if (t === 0 || t > u) {
|
|
970
|
-
s.enqueue(
|
|
970
|
+
s.enqueue(YD);
|
|
971
971
|
break;
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
|
-
const
|
|
977
|
+
const a1 = 4;
|
|
978
978
|
function Fu(u) {
|
|
979
|
-
if (u) return
|
|
979
|
+
if (u) return P0(u);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function P0(u) {
|
|
982
982
|
for (var D in Fu.prototype)
|
|
983
983
|
u[D] = Fu.prototype[D];
|
|
984
984
|
return u;
|
|
@@ -1024,34 +1024,34 @@ Fu.prototype.listeners = function(u) {
|
|
|
1024
1024
|
Fu.prototype.hasListeners = function(u) {
|
|
1025
1025
|
return !!this.listeners(u).length;
|
|
1026
1026
|
};
|
|
1027
|
-
const wD = typeof Promise == "function" && typeof Promise.resolve == "function" ? (D) => Promise.resolve().then(D) : (D, f) => f(D, 0), yu = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(),
|
|
1028
|
-
function
|
|
1027
|
+
const wD = typeof Promise == "function" && typeof Promise.resolve == "function" ? (D) => Promise.resolve().then(D) : (D, f) => f(D, 0), yu = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), I0 = "arraybuffer";
|
|
1028
|
+
function s1(u, ...D) {
|
|
1029
1029
|
return D.reduce((f, e) => (u.hasOwnProperty(e) && (f[e] = u[e]), f), {});
|
|
1030
1030
|
}
|
|
1031
|
-
const
|
|
1031
|
+
const L0 = yu.setTimeout, $0 = yu.clearTimeout;
|
|
1032
1032
|
function AD(u, D) {
|
|
1033
|
-
D.useNativeTimers ? (u.setTimeoutFn =
|
|
1033
|
+
D.useNativeTimers ? (u.setTimeoutFn = L0.bind(yu), u.clearTimeoutFn = $0.bind(yu)) : (u.setTimeoutFn = yu.setTimeout.bind(yu), u.clearTimeoutFn = yu.clearTimeout.bind(yu));
|
|
1034
1034
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function
|
|
1037
|
-
return typeof u == "string" ?
|
|
1035
|
+
const M0 = 1.33;
|
|
1036
|
+
function q0(u) {
|
|
1037
|
+
return typeof u == "string" ? z0(u) : Math.ceil((u.byteLength || u.size) * M0);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function z0(u) {
|
|
1040
1040
|
let D = 0, f = 0;
|
|
1041
1041
|
for (let e = 0, t = u.length; e < t; e++)
|
|
1042
1042
|
D = u.charCodeAt(e), D < 128 ? f += 1 : D < 2048 ? f += 2 : D < 55296 || D >= 57344 ? f += 3 : (e++, f += 4);
|
|
1043
1043
|
return f;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function F1() {
|
|
1046
1046
|
return Date.now().toString(36).substring(3) + Math.random().toString(36).substring(2, 5);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function U0(u) {
|
|
1049
1049
|
let D = "";
|
|
1050
1050
|
for (let f in u)
|
|
1051
1051
|
u.hasOwnProperty(f) && (D.length && (D += "&"), D += encodeURIComponent(f) + "=" + encodeURIComponent(u[f]));
|
|
1052
1052
|
return D;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function V0(u) {
|
|
1055
1055
|
let D = {}, f = u.split("&");
|
|
1056
1056
|
for (let e = 0, t = f.length; e < t; e++) {
|
|
1057
1057
|
let n = f[e].split("=");
|
|
@@ -1059,12 +1059,12 @@ function H0(u) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
return D;
|
|
1061
1061
|
}
|
|
1062
|
-
class
|
|
1062
|
+
class H0 extends Error {
|
|
1063
1063
|
constructor(D, f, e) {
|
|
1064
1064
|
super(D), this.description = f, this.context = e, this.type = "TransportError";
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
|
-
class
|
|
1067
|
+
class of extends Fu {
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Transport abstract constructor.
|
|
1070
1070
|
*
|
|
@@ -1084,7 +1084,7 @@ class df extends Fu {
|
|
|
1084
1084
|
* @protected
|
|
1085
1085
|
*/
|
|
1086
1086
|
onError(D, f, e) {
|
|
1087
|
-
return super.emitReserved("error", new
|
|
1087
|
+
return super.emitReserved("error", new H0(D, f, e)), this;
|
|
1088
1088
|
}
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Opens the transport.
|
|
@@ -1121,7 +1121,7 @@ class df extends Fu {
|
|
|
1121
1121
|
* @protected
|
|
1122
1122
|
*/
|
|
1123
1123
|
onData(D) {
|
|
1124
|
-
const f =
|
|
1124
|
+
const f = Ff(D, this.socket.binaryType);
|
|
1125
1125
|
this.onPacket(f);
|
|
1126
1126
|
}
|
|
1127
1127
|
/**
|
|
@@ -1158,11 +1158,11 @@ class df extends Fu {
|
|
|
1158
1158
|
return this.opts.port && (this.opts.secure && +(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
|
|
1159
1159
|
}
|
|
1160
1160
|
_query(D) {
|
|
1161
|
-
const f =
|
|
1161
|
+
const f = U0(D);
|
|
1162
1162
|
return f.length ? "?" + f : "";
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
class
|
|
1165
|
+
class W0 extends of {
|
|
1166
1166
|
constructor() {
|
|
1167
1167
|
super(...arguments), this._polling = !1;
|
|
1168
1168
|
}
|
|
@@ -1218,7 +1218,7 @@ class Y0 extends df {
|
|
|
1218
1218
|
return this.onClose({ description: "transport closed by the server" }), !1;
|
|
1219
1219
|
this.onPacket(e);
|
|
1220
1220
|
};
|
|
1221
|
-
|
|
1221
|
+
N0(D, this.socket.binaryType).forEach(f), this.readyState !== "closed" && (this._polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this._poll());
|
|
1222
1222
|
}
|
|
1223
1223
|
/**
|
|
1224
1224
|
* For polling, send a close packet.
|
|
@@ -1238,7 +1238,7 @@ class Y0 extends df {
|
|
|
1238
1238
|
* @protected
|
|
1239
1239
|
*/
|
|
1240
1240
|
write(D) {
|
|
1241
|
-
this.writable = !1,
|
|
1241
|
+
this.writable = !1, T0(D, (f) => {
|
|
1242
1242
|
this.doWrite(f, () => {
|
|
1243
1243
|
this.writable = !0, this.emitReserved("drain");
|
|
1244
1244
|
});
|
|
@@ -1251,18 +1251,18 @@ class Y0 extends df {
|
|
|
1251
1251
|
*/
|
|
1252
1252
|
uri() {
|
|
1253
1253
|
const D = this.opts.secure ? "https" : "http", f = this.query || {};
|
|
1254
|
-
return this.opts.timestampRequests !== !1 && (f[this.opts.timestampParam] =
|
|
1254
|
+
return this.opts.timestampRequests !== !1 && (f[this.opts.timestampParam] = F1()), !this.supportsBinary && !f.sid && (f.b64 = 1), this.createUri(D, f);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
let
|
|
1257
|
+
let i1 = !1;
|
|
1258
1258
|
try {
|
|
1259
|
-
|
|
1259
|
+
i1 = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
|
|
1260
1260
|
} catch {
|
|
1261
1261
|
}
|
|
1262
|
-
const
|
|
1263
|
-
function
|
|
1262
|
+
const Y0 = i1;
|
|
1263
|
+
function J0() {
|
|
1264
1264
|
}
|
|
1265
|
-
class
|
|
1265
|
+
class K0 extends W0 {
|
|
1266
1266
|
/**
|
|
1267
1267
|
* XHR Polling constructor.
|
|
1268
1268
|
*
|
|
@@ -1321,7 +1321,7 @@ class ku extends Fu {
|
|
|
1321
1321
|
*/
|
|
1322
1322
|
_create() {
|
|
1323
1323
|
var D;
|
|
1324
|
-
const f =
|
|
1324
|
+
const f = s1(this._opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
|
|
1325
1325
|
f.xdomain = !!this._opts.xd;
|
|
1326
1326
|
const e = this._xhr = this.createRequest(f);
|
|
1327
1327
|
try {
|
|
@@ -1375,7 +1375,7 @@ class ku extends Fu {
|
|
|
1375
1375
|
*/
|
|
1376
1376
|
_cleanup(D) {
|
|
1377
1377
|
if (!(typeof this._xhr > "u" || this._xhr === null)) {
|
|
1378
|
-
if (this._xhr.onreadystatechange =
|
|
1378
|
+
if (this._xhr.onreadystatechange = J0, D)
|
|
1379
1379
|
try {
|
|
1380
1380
|
this._xhr.abort();
|
|
1381
1381
|
} catch {
|
|
@@ -1405,36 +1405,36 @@ ku.requestsCount = 0;
|
|
|
1405
1405
|
ku.requests = {};
|
|
1406
1406
|
if (typeof document < "u") {
|
|
1407
1407
|
if (typeof attachEvent == "function")
|
|
1408
|
-
attachEvent("onunload",
|
|
1408
|
+
attachEvent("onunload", $f);
|
|
1409
1409
|
else if (typeof addEventListener == "function") {
|
|
1410
1410
|
const u = "onpagehide" in yu ? "pagehide" : "unload";
|
|
1411
|
-
addEventListener(u,
|
|
1411
|
+
addEventListener(u, $f, !1);
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function $f() {
|
|
1415
1415
|
for (let u in ku.requests)
|
|
1416
1416
|
ku.requests.hasOwnProperty(u) && ku.requests[u].abort();
|
|
1417
1417
|
}
|
|
1418
|
-
const
|
|
1419
|
-
const u =
|
|
1418
|
+
const G0 = function() {
|
|
1419
|
+
const u = o1({
|
|
1420
1420
|
xdomain: !1
|
|
1421
1421
|
});
|
|
1422
1422
|
return u && u.responseType !== null;
|
|
1423
1423
|
}();
|
|
1424
|
-
class
|
|
1424
|
+
class X0 extends K0 {
|
|
1425
1425
|
constructor(D) {
|
|
1426
1426
|
super(D);
|
|
1427
1427
|
const f = D && D.forceBase64;
|
|
1428
|
-
this.supportsBinary =
|
|
1428
|
+
this.supportsBinary = G0 && !f;
|
|
1429
1429
|
}
|
|
1430
1430
|
request(D = {}) {
|
|
1431
|
-
return Object.assign(D, { xd: this.xd }, this.opts), new ku(
|
|
1431
|
+
return Object.assign(D, { xd: this.xd }, this.opts), new ku(o1, this.uri(), D);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function o1(u) {
|
|
1435
1435
|
const D = u.xdomain;
|
|
1436
1436
|
try {
|
|
1437
|
-
if (typeof XMLHttpRequest < "u" && (!D ||
|
|
1437
|
+
if (typeof XMLHttpRequest < "u" && (!D || Y0))
|
|
1438
1438
|
return new XMLHttpRequest();
|
|
1439
1439
|
} catch {
|
|
1440
1440
|
}
|
|
@@ -1444,13 +1444,13 @@ function C1(u) {
|
|
|
1444
1444
|
} catch {
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
const
|
|
1448
|
-
class
|
|
1447
|
+
const d1 = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
1448
|
+
class Z0 extends of {
|
|
1449
1449
|
get name() {
|
|
1450
1450
|
return "websocket";
|
|
1451
1451
|
}
|
|
1452
1452
|
doOpen() {
|
|
1453
|
-
const D = this.uri(), f = this.opts.protocols, e =
|
|
1453
|
+
const D = this.uri(), f = this.opts.protocols, e = d1 ? {} : s1(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
|
|
1454
1454
|
this.opts.extraHeaders && (e.headers = this.opts.extraHeaders);
|
|
1455
1455
|
try {
|
|
1456
1456
|
this.ws = this.createSocket(D, f, e);
|
|
@@ -1476,7 +1476,7 @@ class Q0 extends df {
|
|
|
1476
1476
|
this.writable = !1;
|
|
1477
1477
|
for (let f = 0; f < D.length; f++) {
|
|
1478
1478
|
const e = D[f], t = f === D.length - 1;
|
|
1479
|
-
|
|
1479
|
+
sf(e, this.supportsBinary, (n) => {
|
|
1480
1480
|
try {
|
|
1481
1481
|
this.doWrite(e, n);
|
|
1482
1482
|
} catch {
|
|
@@ -1498,19 +1498,19 @@ class Q0 extends df {
|
|
|
1498
1498
|
*/
|
|
1499
1499
|
uri() {
|
|
1500
1500
|
const D = this.opts.secure ? "wss" : "ws", f = this.query || {};
|
|
1501
|
-
return this.opts.timestampRequests && (f[this.opts.timestampParam] =
|
|
1501
|
+
return this.opts.timestampRequests && (f[this.opts.timestampParam] = F1()), this.supportsBinary || (f.b64 = 1), this.createUri(D, f);
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
const $D = yu.WebSocket || yu.MozWebSocket;
|
|
1505
|
-
class
|
|
1505
|
+
class Q0 extends Z0 {
|
|
1506
1506
|
createSocket(D, f, e) {
|
|
1507
|
-
return
|
|
1507
|
+
return d1 ? new $D(D, f, e) : f ? new $D(D, f) : new $D(D);
|
|
1508
1508
|
}
|
|
1509
1509
|
doWrite(D, f) {
|
|
1510
1510
|
this.ws.send(f);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
class
|
|
1513
|
+
class ue extends of {
|
|
1514
1514
|
get name() {
|
|
1515
1515
|
return "webtransport";
|
|
1516
1516
|
}
|
|
@@ -1526,7 +1526,7 @@ class De extends df {
|
|
|
1526
1526
|
this.onError("webtransport error", D);
|
|
1527
1527
|
}), this._transport.ready.then(() => {
|
|
1528
1528
|
this._transport.createBidirectionalStream().then((D) => {
|
|
1529
|
-
const f =
|
|
1529
|
+
const f = R0(Number.MAX_SAFE_INTEGER, this.socket.binaryType), e = D.readable.pipeThrough(f).getReader(), t = O0();
|
|
1530
1530
|
t.readable.pipeTo(D.writable), this._writer = t.writable.getWriter();
|
|
1531
1531
|
const n = () => {
|
|
1532
1532
|
e.read().then(({ done: s, value: F }) => {
|
|
@@ -1556,11 +1556,11 @@ class De extends df {
|
|
|
1556
1556
|
(D = this._transport) === null || D === void 0 || D.close();
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1560
|
-
websocket:
|
|
1561
|
-
webtransport:
|
|
1562
|
-
polling:
|
|
1563
|
-
},
|
|
1559
|
+
const De = {
|
|
1560
|
+
websocket: Q0,
|
|
1561
|
+
webtransport: ue,
|
|
1562
|
+
polling: X0
|
|
1563
|
+
}, fe = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, ee = [
|
|
1564
1564
|
"source",
|
|
1565
1565
|
"protocol",
|
|
1566
1566
|
"authority",
|
|
@@ -1576,28 +1576,28 @@ const fe = {
|
|
|
1576
1576
|
"query",
|
|
1577
1577
|
"anchor"
|
|
1578
1578
|
];
|
|
1579
|
-
function
|
|
1579
|
+
function JD(u) {
|
|
1580
1580
|
if (u.length > 8e3)
|
|
1581
1581
|
throw "URI too long";
|
|
1582
1582
|
const D = u, f = u.indexOf("["), e = u.indexOf("]");
|
|
1583
1583
|
f != -1 && e != -1 && (u = u.substring(0, f) + u.substring(f, e).replace(/:/g, ";") + u.substring(e, u.length));
|
|
1584
|
-
let t =
|
|
1584
|
+
let t = fe.exec(u || ""), n = {}, r = 14;
|
|
1585
1585
|
for (; r--; )
|
|
1586
|
-
n[
|
|
1587
|
-
return f != -1 && e != -1 && (n.source = D, n.host = n.host.substring(1, n.host.length - 1).replace(/;/g, ":"), n.authority = n.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), n.ipv6uri = !0), n.pathNames =
|
|
1586
|
+
n[ee[r]] = t[r] || "";
|
|
1587
|
+
return f != -1 && e != -1 && (n.source = D, n.host = n.host.substring(1, n.host.length - 1).replace(/;/g, ":"), n.authority = n.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), n.ipv6uri = !0), n.pathNames = te(n, n.path), n.queryKey = ne(n, n.query), n;
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function te(u, D) {
|
|
1590
1590
|
const f = /\/{2,9}/g, e = D.replace(f, "/").split("/");
|
|
1591
1591
|
return (D.slice(0, 1) == "/" || D.length === 0) && e.splice(0, 1), D.slice(-1) == "/" && e.splice(e.length - 1, 1), e;
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function ne(u, D) {
|
|
1594
1594
|
const f = {};
|
|
1595
1595
|
return D.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(e, t, n) {
|
|
1596
1596
|
t && (f[t] = n);
|
|
1597
1597
|
}), f;
|
|
1598
1598
|
}
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1599
|
+
const KD = typeof addEventListener == "function" && typeof removeEventListener == "function", pD = [];
|
|
1600
|
+
KD && addEventListener("offline", () => {
|
|
1601
1601
|
pD.forEach((u) => u());
|
|
1602
1602
|
}, !1);
|
|
1603
1603
|
class Vu extends Fu {
|
|
@@ -1608,10 +1608,10 @@ class Vu extends Fu {
|
|
|
1608
1608
|
* @param {Object} opts - options
|
|
1609
1609
|
*/
|
|
1610
1610
|
constructor(D, f) {
|
|
1611
|
-
if (super(), this.binaryType =
|
|
1612
|
-
const e =
|
|
1611
|
+
if (super(), this.binaryType = I0, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, D && typeof D == "object" && (f = D, D = null), D) {
|
|
1612
|
+
const e = JD(D);
|
|
1613
1613
|
f.hostname = e.host, f.secure = e.protocol === "https" || e.protocol === "wss", f.port = e.port, e.query && (f.query = e.query);
|
|
1614
|
-
} else f.host && (f.hostname =
|
|
1614
|
+
} else f.host && (f.hostname = JD(f.host).host);
|
|
1615
1615
|
AD(this, f), this.secure = f.secure != null ? f.secure : typeof location < "u" && location.protocol === "https:", f.hostname && !f.port && (f.port = this.secure ? "443" : "80"), this.hostname = f.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = f.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = [], this._transportsByName = {}, f.transports.forEach((e) => {
|
|
1616
1616
|
const t = e.prototype.name;
|
|
1617
1617
|
this.transports.push(t), this._transportsByName[t] = e;
|
|
@@ -1629,7 +1629,7 @@ class Vu extends Fu {
|
|
|
1629
1629
|
},
|
|
1630
1630
|
transportOptions: {},
|
|
1631
1631
|
closeOnBeforeunload: !1
|
|
1632
|
-
}, f), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
|
1632
|
+
}, f), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = V0(this.opts.query)), KD && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
|
1633
1633
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
1634
1634
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
1635
1635
|
this._onClose("transport close", {
|
|
@@ -1646,7 +1646,7 @@ class Vu extends Fu {
|
|
|
1646
1646
|
*/
|
|
1647
1647
|
createTransport(D) {
|
|
1648
1648
|
const f = Object.assign({}, this.opts.query);
|
|
1649
|
-
f.EIO =
|
|
1649
|
+
f.EIO = a1, f.transport = D, this.id && (f.sid = this.id);
|
|
1650
1650
|
const e = Object.assign({}, this.opts, {
|
|
1651
1651
|
query: f,
|
|
1652
1652
|
socket: this,
|
|
@@ -1764,7 +1764,7 @@ class Vu extends Fu {
|
|
|
1764
1764
|
let f = 1;
|
|
1765
1765
|
for (let e = 0; e < this.writeBuffer.length; e++) {
|
|
1766
1766
|
const t = this.writeBuffer[e].data;
|
|
1767
|
-
if (t && (f +=
|
|
1767
|
+
if (t && (f += q0(t)), e > 0 && f > this._maxPayload)
|
|
1768
1768
|
return this.writeBuffer.slice(0, e);
|
|
1769
1769
|
f += 2;
|
|
1770
1770
|
}
|
|
@@ -1862,7 +1862,7 @@ class Vu extends Fu {
|
|
|
1862
1862
|
*/
|
|
1863
1863
|
_onClose(D, f) {
|
|
1864
1864
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
1865
|
-
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(),
|
|
1865
|
+
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), KD && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
1866
1866
|
const e = pD.indexOf(this._offlineEventListener);
|
|
1867
1867
|
e !== -1 && pD.splice(e, 1);
|
|
1868
1868
|
}
|
|
@@ -1870,8 +1870,8 @@ class Vu extends Fu {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
Vu.protocol =
|
|
1874
|
-
class
|
|
1873
|
+
Vu.protocol = a1;
|
|
1874
|
+
class re extends Vu {
|
|
1875
1875
|
constructor() {
|
|
1876
1876
|
super(...arguments), this._upgrades = [];
|
|
1877
1877
|
}
|
|
@@ -1943,21 +1943,21 @@ class ae extends Vu {
|
|
|
1943
1943
|
return f;
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
|
-
let
|
|
1946
|
+
let ae = class extends re {
|
|
1947
1947
|
constructor(D, f = {}) {
|
|
1948
1948
|
const e = typeof D == "object" ? D : f;
|
|
1949
|
-
(!e.transports || e.transports && typeof e.transports[0] == "string") && (e.transports = (e.transports || ["polling", "websocket", "webtransport"]).map((t) =>
|
|
1949
|
+
(!e.transports || e.transports && typeof e.transports[0] == "string") && (e.transports = (e.transports || ["polling", "websocket", "webtransport"]).map((t) => De[t]).filter((t) => !!t)), super(D, e);
|
|
1950
1950
|
}
|
|
1951
1951
|
};
|
|
1952
|
-
function
|
|
1952
|
+
function se(u, D = "", f) {
|
|
1953
1953
|
let e = u;
|
|
1954
|
-
f = f || typeof location < "u" && location, u == null && (u = f.protocol + "//" + f.host), typeof u == "string" && (u.charAt(0) === "/" && (u.charAt(1) === "/" ? u = f.protocol + u : u = f.host + u), /^(https?|wss?):\/\//.test(u) || (typeof f < "u" ? u = f.protocol + "//" + u : u = "https://" + u), e =
|
|
1954
|
+
f = f || typeof location < "u" && location, u == null && (u = f.protocol + "//" + f.host), typeof u == "string" && (u.charAt(0) === "/" && (u.charAt(1) === "/" ? u = f.protocol + u : u = f.host + u), /^(https?|wss?):\/\//.test(u) || (typeof f < "u" ? u = f.protocol + "//" + u : u = "https://" + u), e = JD(u)), e.port || (/^(http|ws)$/.test(e.protocol) ? e.port = "80" : /^(http|ws)s$/.test(e.protocol) && (e.port = "443")), e.path = e.path || "/";
|
|
1955
1955
|
const n = e.host.indexOf(":") !== -1 ? "[" + e.host + "]" : e.host;
|
|
1956
1956
|
return e.id = e.protocol + "://" + n + ":" + e.port + D, e.href = e.protocol + "://" + n + (f && f.port === e.port ? "" : ":" + e.port), e;
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1959
|
-
function
|
|
1960
|
-
return
|
|
1958
|
+
const Fe = typeof ArrayBuffer == "function", ie = (u) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(u) : u.buffer instanceof ArrayBuffer, C1 = Object.prototype.toString, oe = typeof Blob == "function" || typeof Blob < "u" && C1.call(Blob) === "[object BlobConstructor]", de = typeof File == "function" || typeof File < "u" && C1.call(File) === "[object FileConstructor]";
|
|
1959
|
+
function df(u) {
|
|
1960
|
+
return Fe && (u instanceof ArrayBuffer || ie(u)) || oe && u instanceof Blob || de && u instanceof File;
|
|
1961
1961
|
}
|
|
1962
1962
|
function BD(u, D) {
|
|
1963
1963
|
if (!u || typeof u != "object")
|
|
@@ -1968,7 +1968,7 @@ function BD(u, D) {
|
|
|
1968
1968
|
return !0;
|
|
1969
1969
|
return !1;
|
|
1970
1970
|
}
|
|
1971
|
-
if (
|
|
1971
|
+
if (df(u))
|
|
1972
1972
|
return !0;
|
|
1973
1973
|
if (u.toJSON && typeof u.toJSON == "function" && arguments.length === 1)
|
|
1974
1974
|
return BD(u.toJSON(), !0);
|
|
@@ -1977,33 +1977,33 @@ function BD(u, D) {
|
|
|
1977
1977
|
return !0;
|
|
1978
1978
|
return !1;
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function Ce(u) {
|
|
1981
1981
|
const D = [], f = u.data, e = u;
|
|
1982
|
-
return e.data =
|
|
1982
|
+
return e.data = GD(f, D), e.attachments = D.length, { packet: e, buffers: D };
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function GD(u, D) {
|
|
1985
1985
|
if (!u)
|
|
1986
1986
|
return u;
|
|
1987
|
-
if (
|
|
1987
|
+
if (df(u)) {
|
|
1988
1988
|
const f = { _placeholder: !0, num: D.length };
|
|
1989
1989
|
return D.push(u), f;
|
|
1990
1990
|
} else if (Array.isArray(u)) {
|
|
1991
1991
|
const f = new Array(u.length);
|
|
1992
1992
|
for (let e = 0; e < u.length; e++)
|
|
1993
|
-
f[e] =
|
|
1993
|
+
f[e] = GD(u[e], D);
|
|
1994
1994
|
return f;
|
|
1995
1995
|
} else if (typeof u == "object" && !(u instanceof Date)) {
|
|
1996
1996
|
const f = {};
|
|
1997
1997
|
for (const e in u)
|
|
1998
|
-
Object.prototype.hasOwnProperty.call(u, e) && (f[e] =
|
|
1998
|
+
Object.prototype.hasOwnProperty.call(u, e) && (f[e] = GD(u[e], D));
|
|
1999
1999
|
return f;
|
|
2000
2000
|
}
|
|
2001
2001
|
return u;
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2004
|
-
return u.data =
|
|
2003
|
+
function ce(u, D) {
|
|
2004
|
+
return u.data = XD(u.data, D), delete u.attachments, u;
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function XD(u, D) {
|
|
2007
2007
|
if (!u)
|
|
2008
2008
|
return u;
|
|
2009
2009
|
if (u && u._placeholder === !0) {
|
|
@@ -2012,13 +2012,13 @@ function ZD(u, D) {
|
|
|
2012
2012
|
throw new Error("illegal attachments");
|
|
2013
2013
|
} else if (Array.isArray(u))
|
|
2014
2014
|
for (let f = 0; f < u.length; f++)
|
|
2015
|
-
u[f] =
|
|
2015
|
+
u[f] = XD(u[f], D);
|
|
2016
2016
|
else if (typeof u == "object")
|
|
2017
2017
|
for (const f in u)
|
|
2018
|
-
Object.prototype.hasOwnProperty.call(u, f) && (u[f] =
|
|
2018
|
+
Object.prototype.hasOwnProperty.call(u, f) && (u[f] = XD(u[f], D));
|
|
2019
2019
|
return u;
|
|
2020
2020
|
}
|
|
2021
|
-
const
|
|
2021
|
+
const le = [
|
|
2022
2022
|
"connect",
|
|
2023
2023
|
"connect_error",
|
|
2024
2024
|
"disconnect",
|
|
@@ -2026,12 +2026,12 @@ const Ee = [
|
|
|
2026
2026
|
"newListener",
|
|
2027
2027
|
"removeListener"
|
|
2028
2028
|
// used by the Node.js EventEmitter
|
|
2029
|
-
],
|
|
2029
|
+
], Ee = 5;
|
|
2030
2030
|
var H;
|
|
2031
2031
|
(function(u) {
|
|
2032
2032
|
u[u.CONNECT = 0] = "CONNECT", u[u.DISCONNECT = 1] = "DISCONNECT", u[u.EVENT = 2] = "EVENT", u[u.ACK = 3] = "ACK", u[u.CONNECT_ERROR = 4] = "CONNECT_ERROR", u[u.BINARY_EVENT = 5] = "BINARY_EVENT", u[u.BINARY_ACK = 6] = "BINARY_ACK";
|
|
2033
2033
|
})(H || (H = {}));
|
|
2034
|
-
class
|
|
2034
|
+
class he {
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Encoder constructor
|
|
2037
2037
|
*
|
|
@@ -2067,14 +2067,14 @@ class be {
|
|
|
2067
2067
|
* a list of buffers.
|
|
2068
2068
|
*/
|
|
2069
2069
|
encodeAsBinary(D) {
|
|
2070
|
-
const f =
|
|
2070
|
+
const f = Ce(D), e = this.encodeAsString(f.packet), t = f.buffers;
|
|
2071
2071
|
return t.unshift(e), t;
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Mf(u) {
|
|
2075
2075
|
return Object.prototype.toString.call(u) === "[object Object]";
|
|
2076
2076
|
}
|
|
2077
|
-
class
|
|
2077
|
+
class Cf extends Fu {
|
|
2078
2078
|
/**
|
|
2079
2079
|
* Decoder constructor
|
|
2080
2080
|
*
|
|
@@ -2095,8 +2095,8 @@ class cf extends Fu {
|
|
|
2095
2095
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
2096
2096
|
f = this.decodeString(D);
|
|
2097
2097
|
const e = f.type === H.BINARY_EVENT;
|
|
2098
|
-
e || f.type === H.BINARY_ACK ? (f.type = e ? H.EVENT : H.ACK, this.reconstructor = new
|
|
2099
|
-
} else if (
|
|
2098
|
+
e || f.type === H.BINARY_ACK ? (f.type = e ? H.EVENT : H.ACK, this.reconstructor = new be(f), f.attachments === 0 && super.emitReserved("decoded", f)) : super.emitReserved("decoded", f);
|
|
2099
|
+
} else if (df(D) || D.base64)
|
|
2100
2100
|
if (this.reconstructor)
|
|
2101
2101
|
f = this.reconstructor.takeBinaryData(D), f && (this.reconstructor = null, super.emitReserved("decoded", f));
|
|
2102
2102
|
else
|
|
@@ -2149,7 +2149,7 @@ class cf extends Fu {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
if (D.charAt(++f)) {
|
|
2151
2151
|
const n = this.tryParse(D.substr(f));
|
|
2152
|
-
if (
|
|
2152
|
+
if (Cf.isPayloadValid(e.type, n))
|
|
2153
2153
|
e.data = n;
|
|
2154
2154
|
else
|
|
2155
2155
|
throw new Error("invalid payload");
|
|
@@ -2166,14 +2166,14 @@ class cf extends Fu {
|
|
|
2166
2166
|
static isPayloadValid(D, f) {
|
|
2167
2167
|
switch (D) {
|
|
2168
2168
|
case H.CONNECT:
|
|
2169
|
-
return
|
|
2169
|
+
return Mf(f);
|
|
2170
2170
|
case H.DISCONNECT:
|
|
2171
2171
|
return f === void 0;
|
|
2172
2172
|
case H.CONNECT_ERROR:
|
|
2173
|
-
return typeof f == "string" ||
|
|
2173
|
+
return typeof f == "string" || Mf(f);
|
|
2174
2174
|
case H.EVENT:
|
|
2175
2175
|
case H.BINARY_EVENT:
|
|
2176
|
-
return Array.isArray(f) && (typeof f[0] == "number" || typeof f[0] == "string" &&
|
|
2176
|
+
return Array.isArray(f) && (typeof f[0] == "number" || typeof f[0] == "string" && le.indexOf(f[0]) === -1);
|
|
2177
2177
|
case H.ACK:
|
|
2178
2178
|
case H.BINARY_ACK:
|
|
2179
2179
|
return Array.isArray(f);
|
|
@@ -2186,7 +2186,7 @@ class cf extends Fu {
|
|
|
2186
2186
|
this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
|
-
class
|
|
2189
|
+
class be {
|
|
2190
2190
|
constructor(D) {
|
|
2191
2191
|
this.packet = D, this.buffers = [], this.reconPack = D;
|
|
2192
2192
|
}
|
|
@@ -2200,7 +2200,7 @@ class pe {
|
|
|
2200
2200
|
*/
|
|
2201
2201
|
takeBinaryData(D) {
|
|
2202
2202
|
if (this.buffers.push(D), this.buffers.length === this.reconPack.attachments) {
|
|
2203
|
-
const f =
|
|
2203
|
+
const f = ce(this.reconPack, this.buffers);
|
|
2204
2204
|
return this.finishedReconstruction(), f;
|
|
2205
2205
|
}
|
|
2206
2206
|
return null;
|
|
@@ -2212,21 +2212,21 @@ class pe {
|
|
|
2212
2212
|
this.reconPack = null, this.buffers = [];
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
const
|
|
2215
|
+
const pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2216
2216
|
__proto__: null,
|
|
2217
|
-
Decoder:
|
|
2218
|
-
Encoder:
|
|
2217
|
+
Decoder: Cf,
|
|
2218
|
+
Encoder: he,
|
|
2219
2219
|
get PacketType() {
|
|
2220
2220
|
return H;
|
|
2221
2221
|
},
|
|
2222
|
-
protocol:
|
|
2222
|
+
protocol: Ee
|
|
2223
2223
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2224
2224
|
function xu(u, D, f) {
|
|
2225
2225
|
return u.on(D, f), function() {
|
|
2226
2226
|
u.off(D, f);
|
|
2227
2227
|
};
|
|
2228
2228
|
}
|
|
2229
|
-
const
|
|
2229
|
+
const Be = Object.freeze({
|
|
2230
2230
|
connect: 1,
|
|
2231
2231
|
connect_error: 1,
|
|
2232
2232
|
disconnect: 1,
|
|
@@ -2235,7 +2235,7 @@ const ge = Object.freeze({
|
|
|
2235
2235
|
newListener: 1,
|
|
2236
2236
|
removeListener: 1
|
|
2237
2237
|
});
|
|
2238
|
-
class
|
|
2238
|
+
class c1 extends Fu {
|
|
2239
2239
|
/**
|
|
2240
2240
|
* `Socket` constructor.
|
|
2241
2241
|
*/
|
|
@@ -2351,7 +2351,7 @@ class E1 extends Fu {
|
|
|
2351
2351
|
*/
|
|
2352
2352
|
emit(D, ...f) {
|
|
2353
2353
|
var e, t, n;
|
|
2354
|
-
if (
|
|
2354
|
+
if (Be.hasOwnProperty(D))
|
|
2355
2355
|
throw new Error('"' + D.toString() + '" is a reserved event name');
|
|
2356
2356
|
if (f.unshift(D), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
|
|
2357
2357
|
return this._addToQueue(f), this;
|
|
@@ -2850,7 +2850,7 @@ eD.prototype.setMax = function(u) {
|
|
|
2850
2850
|
eD.prototype.setJitter = function(u) {
|
|
2851
2851
|
this.jitter = u;
|
|
2852
2852
|
};
|
|
2853
|
-
class
|
|
2853
|
+
class ZD extends Fu {
|
|
2854
2854
|
constructor(D, f) {
|
|
2855
2855
|
var e;
|
|
2856
2856
|
super(), this.nsps = {}, this.subs = [], D && typeof D == "object" && (f = D, D = void 0), f = f || {}, f.path = f.path || "/socket.io", this.opts = f, AD(this, f), this.reconnection(f.reconnection !== !1), this.reconnectionAttempts(f.reconnectionAttempts || 1 / 0), this.reconnectionDelay(f.reconnectionDelay || 1e3), this.reconnectionDelayMax(f.reconnectionDelayMax || 5e3), this.randomizationFactor((e = f.randomizationFactor) !== null && e !== void 0 ? e : 0.5), this.backoff = new eD({
|
|
@@ -2858,7 +2858,7 @@ class QD extends Fu {
|
|
|
2858
2858
|
max: this.reconnectionDelayMax(),
|
|
2859
2859
|
jitter: this.randomizationFactor()
|
|
2860
2860
|
}), this.timeout(f.timeout == null ? 2e4 : f.timeout), this._readyState = "closed", this.uri = D;
|
|
2861
|
-
const t = f.parser ||
|
|
2861
|
+
const t = f.parser || pe;
|
|
2862
2862
|
this.encoder = new t.Encoder(), this.decoder = new t.Decoder(), this._autoConnect = f.autoConnect !== !1, this._autoConnect && this.open();
|
|
2863
2863
|
}
|
|
2864
2864
|
reconnection(D) {
|
|
@@ -2901,7 +2901,7 @@ class QD extends Fu {
|
|
|
2901
2901
|
open(D) {
|
|
2902
2902
|
if (~this._readyState.indexOf("open"))
|
|
2903
2903
|
return this;
|
|
2904
|
-
this.engine = new
|
|
2904
|
+
this.engine = new ae(this.uri, this.opts);
|
|
2905
2905
|
const f = this.engine, e = this;
|
|
2906
2906
|
this._readyState = "opening", this.skipReconnect = !1;
|
|
2907
2907
|
const t = xu(f, "open", function() {
|
|
@@ -2991,7 +2991,7 @@ class QD extends Fu {
|
|
|
2991
2991
|
*/
|
|
2992
2992
|
socket(D, f) {
|
|
2993
2993
|
let e = this.nsps[D];
|
|
2994
|
-
return e ? this._autoConnect && !e.active && e.connect() : (e = new
|
|
2994
|
+
return e ? this._autoConnect && !e.active && e.connect() : (e = new c1(this, D, f), this.nsps[D] = e), e;
|
|
2995
2995
|
}
|
|
2996
2996
|
/**
|
|
2997
2997
|
* Called upon a socket close.
|
|
@@ -3091,13 +3091,13 @@ class QD extends Fu {
|
|
|
3091
3091
|
const rD = {};
|
|
3092
3092
|
function gD(u, D) {
|
|
3093
3093
|
typeof u == "object" && (D = u, u = void 0), D = D || {};
|
|
3094
|
-
const f =
|
|
3094
|
+
const f = se(u, D.path || "/socket.io"), e = f.source, t = f.id, n = f.path, r = rD[t] && n in rD[t].nsps, s = D.forceNew || D["force new connection"] || D.multiplex === !1 || r;
|
|
3095
3095
|
let F;
|
|
3096
|
-
return s ? F = new
|
|
3096
|
+
return s ? F = new ZD(e, D) : (rD[t] || (rD[t] = new ZD(e, D)), F = rD[t]), f.query && !D.query && (D.query = f.queryKey), F.socket(f.path, D);
|
|
3097
3097
|
}
|
|
3098
3098
|
Object.assign(gD, {
|
|
3099
|
-
Manager:
|
|
3100
|
-
Socket:
|
|
3099
|
+
Manager: ZD,
|
|
3100
|
+
Socket: c1,
|
|
3101
3101
|
io: gD,
|
|
3102
3102
|
connect: gD
|
|
3103
3103
|
});
|
|
@@ -3235,11 +3235,11 @@ cD(vD, "defaultConfig", {
|
|
|
3235
3235
|
upgrade: !0,
|
|
3236
3236
|
withCredentials: !0
|
|
3237
3237
|
});
|
|
3238
|
-
let
|
|
3239
|
-
const
|
|
3238
|
+
let QD = vD, MD;
|
|
3239
|
+
const ge = (u, D) => {
|
|
3240
3240
|
var e;
|
|
3241
|
-
const f = (e = JSON.parse(localStorage.getItem("
|
|
3242
|
-
return MD || (MD = new
|
|
3241
|
+
const f = (e = JSON.parse(localStorage.getItem("profileLiveChat") || "{}")) == null ? void 0 : e.id;
|
|
3242
|
+
return MD || (MD = new QD(
|
|
3243
3243
|
u.apiUrl,
|
|
3244
3244
|
{
|
|
3245
3245
|
query: {
|
|
@@ -3250,11 +3250,11 @@ const me = (u, D) => {
|
|
|
3250
3250
|
},
|
|
3251
3251
|
D
|
|
3252
3252
|
)), MD;
|
|
3253
|
-
},
|
|
3253
|
+
}, l1 = Mu({
|
|
3254
3254
|
socket: {}
|
|
3255
|
-
}),
|
|
3255
|
+
}), E1 = (u) => {
|
|
3256
3256
|
const D = qu(), f = bu(
|
|
3257
|
-
|
|
3257
|
+
ge(D, {
|
|
3258
3258
|
onConnect: () => {
|
|
3259
3259
|
console.info(
|
|
3260
3260
|
"Hexabot Live Chat : Successfully established WS Connection!"
|
|
@@ -3268,11 +3268,11 @@ const me = (u, D) => {
|
|
|
3268
3268
|
}
|
|
3269
3269
|
})
|
|
3270
3270
|
);
|
|
3271
|
-
return /* @__PURE__ */ a.jsx(
|
|
3272
|
-
}, Hu = () => Wu(
|
|
3271
|
+
return /* @__PURE__ */ a.jsx(l1.Provider, { value: { socket: f.current }, children: u.children });
|
|
3272
|
+
}, Hu = () => Wu(l1), uf = (u, D) => {
|
|
3273
3273
|
const { socket: f } = Hu();
|
|
3274
3274
|
G(() => (f.on(u, D), () => f.off(u, D)), [u, D, f]);
|
|
3275
|
-
},
|
|
3275
|
+
}, me = () => {
|
|
3276
3276
|
const { socket: u } = Hu();
|
|
3277
3277
|
G(() => (u.connect(), () => {
|
|
3278
3278
|
u.disconnect();
|
|
@@ -3306,15 +3306,15 @@ const me = (u, D) => {
|
|
|
3306
3306
|
end_time: "",
|
|
3307
3307
|
time_zone: "Etc/GMT+12"
|
|
3308
3308
|
}
|
|
3309
|
-
},
|
|
3309
|
+
}, h1 = Mu(mD), b1 = ({
|
|
3310
3310
|
children: u
|
|
3311
3311
|
}) => {
|
|
3312
|
-
const { t: D } = Nu(), f =
|
|
3312
|
+
const { t: D } = Nu(), f = Rf.getItem("settings"), [e, t] = U(
|
|
3313
3313
|
f || mD
|
|
3314
3314
|
), n = Uu((r) => {
|
|
3315
|
-
|
|
3315
|
+
Rf.setItem("settings", r), t(r);
|
|
3316
3316
|
}, []);
|
|
3317
|
-
return
|
|
3317
|
+
return uf("settings", (r) => {
|
|
3318
3318
|
var s;
|
|
3319
3319
|
n({
|
|
3320
3320
|
...mD,
|
|
@@ -3335,8 +3335,8 @@ const me = (u, D) => {
|
|
|
3335
3335
|
termsAndConditions: r.terms_and_conditions || mD.termsAndConditions,
|
|
3336
3336
|
offline_mode: r.offline_mode
|
|
3337
3337
|
});
|
|
3338
|
-
}), /* @__PURE__ */ a.jsx(
|
|
3339
|
-
}, pu = () => Wu(
|
|
3338
|
+
}), /* @__PURE__ */ a.jsx(h1.Provider, { value: e, children: u });
|
|
3339
|
+
}, pu = () => Wu(h1), p1 = Mu(void 0), B1 = ({
|
|
3340
3340
|
onOpen: u,
|
|
3341
3341
|
onClose: D,
|
|
3342
3342
|
onScrollToTop: f,
|
|
@@ -3363,13 +3363,13 @@ const me = (u, D) => {
|
|
|
3363
3363
|
l(x), f && n && x === 0 && f();
|
|
3364
3364
|
}
|
|
3365
3365
|
};
|
|
3366
|
-
return /* @__PURE__ */ a.jsx(
|
|
3366
|
+
return /* @__PURE__ */ a.jsx(p1.Provider, { value: L, children: t });
|
|
3367
3367
|
}, Tu = () => {
|
|
3368
|
-
const u = Wu(
|
|
3368
|
+
const u = Wu(p1);
|
|
3369
3369
|
if (u === void 0)
|
|
3370
3370
|
throw new Error("useWidget must be used within a WidgetProvider");
|
|
3371
3371
|
return u;
|
|
3372
|
-
},
|
|
3372
|
+
}, _e = (u) => new Intl.DateTimeFormat("en-GB", {
|
|
3373
3373
|
hour: "2-digit",
|
|
3374
3374
|
minute: "2-digit",
|
|
3375
3375
|
hour12: !1,
|
|
@@ -3378,7 +3378,7 @@ const me = (u, D) => {
|
|
|
3378
3378
|
const D = u || {};
|
|
3379
3379
|
if (!D || D.status !== "active") return !1;
|
|
3380
3380
|
if (D.start_time && D.end_time && D.time_zone) {
|
|
3381
|
-
const f =
|
|
3381
|
+
const f = _e(D.time_zone);
|
|
3382
3382
|
return !(f >= D.start_time && f <= D.end_time);
|
|
3383
3383
|
}
|
|
3384
3384
|
return !0;
|
|
@@ -3436,7 +3436,7 @@ const me = (u, D) => {
|
|
|
3436
3436
|
isOfflineMode: !1,
|
|
3437
3437
|
setIsOfflineMode: () => {
|
|
3438
3438
|
}
|
|
3439
|
-
},
|
|
3439
|
+
}, g1 = Mu(_u), m1 = ({ wantToConnect: u, defaultConnectionState: D = 0, children: f }) => {
|
|
3440
3440
|
const e = qu(), t = pu(), { screen: n, setScreen: r } = Tu(), { setScroll: s, syncState: F, isOpen: d } = Tu(), o = Hu(), [c, l] = U(
|
|
3441
3441
|
_u.participants
|
|
3442
3442
|
), [A, C] = U(
|
|
@@ -3470,7 +3470,7 @@ const me = (u, D) => {
|
|
|
3470
3470
|
]), s(0), "direction" in S && S.direction === uu.received && !S.isOffline && J(!1)), S && "data" in S && "quick_replies" in S.data ? T(
|
|
3471
3471
|
(S.data.quick_replies || []).map(
|
|
3472
3472
|
(fu) => ({
|
|
3473
|
-
content_type:
|
|
3473
|
+
content_type: Gf.text,
|
|
3474
3474
|
text: fu.title,
|
|
3475
3475
|
payload: fu.payload
|
|
3476
3476
|
})
|
|
@@ -3511,7 +3511,7 @@ const me = (u, D) => {
|
|
|
3511
3511
|
typeof zu == "string" && zu.trim() && au.append(gu, zu);
|
|
3512
3512
|
}), au.append("owner_id", e.ownerId);
|
|
3513
3513
|
const { body: lu } = await Bu.get(`/webhook/${e.channel}/?${au.toString()}`);
|
|
3514
|
-
console.log("jump here 2"), localStorage.setItem("
|
|
3514
|
+
console.log("jump here 2"), localStorage.setItem("profileLiveChat", JSON.stringify(lu.profile)), localStorage.setItem("isOffline", JSON.stringify(cu || !1)), localStorage.setItem(
|
|
3515
3515
|
"submitedFormLateTime",
|
|
3516
3516
|
JSON.stringify(lu.profile.submitedFormLateTime || null)
|
|
3517
3517
|
), j(
|
|
@@ -3556,11 +3556,11 @@ const me = (u, D) => {
|
|
|
3556
3556
|
o
|
|
3557
3557
|
]
|
|
3558
3558
|
);
|
|
3559
|
-
|
|
3559
|
+
uf(HD.message, (S) => {
|
|
3560
3560
|
console.log(
|
|
3561
3561
|
"=== CALLING handleNewIOMessage from useSubscribe (Socket Realtime) ==="
|
|
3562
3562
|
), mu(S);
|
|
3563
|
-
}),
|
|
3563
|
+
}), uf(HD.typing, _);
|
|
3564
3564
|
const Pu = (S) => {
|
|
3565
3565
|
S ? (b(S), r("webview")) : r("chat");
|
|
3566
3566
|
};
|
|
@@ -3569,19 +3569,19 @@ const me = (u, D) => {
|
|
|
3569
3569
|
}, [F, d]), G(() => {
|
|
3570
3570
|
if (d && A === fD.connected) {
|
|
3571
3571
|
console.log("🔄 Widget opened - fetching fresh data");
|
|
3572
|
-
const S = localStorage.getItem("
|
|
3572
|
+
const S = localStorage.getItem("profileLiveChat");
|
|
3573
3573
|
if (S) {
|
|
3574
3574
|
const fu = JSON.parse(S);
|
|
3575
3575
|
console.log("🔄 Widget opened - fetching fresh data", fu), du(fu.firstName, fu.lastName);
|
|
3576
3576
|
}
|
|
3577
3577
|
!S && !cu && r("prechat");
|
|
3578
3578
|
}
|
|
3579
|
-
}, [d]),
|
|
3579
|
+
}, [d]), l0("logout", () => {
|
|
3580
3580
|
o.socket.disconnect();
|
|
3581
3581
|
}), G(() => {
|
|
3582
3582
|
n === "chat" && A === fD.connected && du();
|
|
3583
3583
|
const S = () => {
|
|
3584
|
-
const fu = localStorage.getItem("
|
|
3584
|
+
const fu = localStorage.getItem("profileLiveChat");
|
|
3585
3585
|
if (fu) {
|
|
3586
3586
|
const au = JSON.parse(fu);
|
|
3587
3587
|
du(au.firstName, au.lastName);
|
|
@@ -3629,9 +3629,9 @@ const me = (u, D) => {
|
|
|
3629
3629
|
isOfflineMode: W,
|
|
3630
3630
|
setIsOfflineMode: J
|
|
3631
3631
|
};
|
|
3632
|
-
return /* @__PURE__ */ a.jsx(
|
|
3632
|
+
return /* @__PURE__ */ a.jsx(g1.Provider, { value: Iu, children: f });
|
|
3633
3633
|
}, Cu = () => {
|
|
3634
|
-
const u = Wu(
|
|
3634
|
+
const u = Wu(g1);
|
|
3635
3635
|
if (!u)
|
|
3636
3636
|
throw new Error("useChat must be used within a ChatContext");
|
|
3637
3637
|
return u;
|
|
@@ -3881,21 +3881,21 @@ const me = (u, D) => {
|
|
|
3881
3881
|
text: "#9C9C9C"
|
|
3882
3882
|
}
|
|
3883
3883
|
}
|
|
3884
|
-
},
|
|
3884
|
+
}, ye = (u) => {
|
|
3885
3885
|
const D = u.replace("#", ""), f = parseInt(D.substring(0, 2), 16), e = parseInt(D.substring(2, 4), 16), t = parseInt(D.substring(4, 6), 16);
|
|
3886
3886
|
return (0.299 * f + 0.587 * e + 0.114 * t) / 255 > 0.5 ? "#000000" : "#FFFFFF";
|
|
3887
|
-
},
|
|
3887
|
+
}, ve = (u) => /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(u), we = (u) => {
|
|
3888
3888
|
const D = u.replace("#", "");
|
|
3889
3889
|
return {
|
|
3890
3890
|
r: parseInt(D.substring(0, 2), 16),
|
|
3891
3891
|
g: parseInt(D.substring(2, 4), 16),
|
|
3892
3892
|
b: parseInt(D.substring(4, 6), 16)
|
|
3893
3893
|
};
|
|
3894
|
-
},
|
|
3895
|
-
const D =
|
|
3896
|
-
if (!
|
|
3897
|
-
return console.warn(`Invalid color: ${u}, using default blue theme`),
|
|
3898
|
-
const f =
|
|
3894
|
+
}, Ae = (u) => (u.startsWith("#") || (u = "#" + u), u.length === 4 ? "#" + u[1] + u[1] + u[2] + u[2] + u[3] + u[3] : u), Df = (u) => {
|
|
3895
|
+
const D = Ae(u);
|
|
3896
|
+
if (!ve(D))
|
|
3897
|
+
return console.warn(`Invalid color: ${u}, using default blue theme`), Df("#0074D9");
|
|
3898
|
+
const f = ye(D), e = we(D), t = Math.min(255, Math.floor(e.r + (255 - e.r) * 0.9)), n = Math.min(255, Math.floor(e.g + (255 - e.g) * 0.9)), r = Math.min(255, Math.floor(e.b + (255 - e.b) * 0.9)), s = `#${t.toString(16).padStart(2, "0")}${n.toString(16).padStart(2, "0")}${r.toString(16).padStart(2, "0")}`, F = Math.max(0, Math.floor(e.r * 0.8)), d = Math.max(0, Math.floor(e.g * 0.8)), o = Math.max(0, Math.floor(e.b * 0.8));
|
|
3899
3899
|
return `${F.toString(16).padStart(2, "0")}${d.toString(16).padStart(2, "0")}${o.toString(16).padStart(2, "0")}`, {
|
|
3900
3900
|
header: {
|
|
3901
3901
|
bg: D,
|
|
@@ -3931,7 +3931,7 @@ const me = (u, D) => {
|
|
|
3931
3931
|
text: "#9C9C9C"
|
|
3932
3932
|
}
|
|
3933
3933
|
};
|
|
3934
|
-
},
|
|
3934
|
+
}, qf = {
|
|
3935
3935
|
orange: "#FF851B",
|
|
3936
3936
|
red: "#FF4136",
|
|
3937
3937
|
green: "#2ECC40",
|
|
@@ -3939,14 +3939,14 @@ const me = (u, D) => {
|
|
|
3939
3939
|
teal: "#1BA089",
|
|
3940
3940
|
dark: "#000000",
|
|
3941
3941
|
purple: "#7950F2"
|
|
3942
|
-
},
|
|
3942
|
+
}, xe = (u) => qf[u] ? Df(qf[u]) : Df(u), ke = () => ({
|
|
3943
3943
|
bg: "#f6f8f9",
|
|
3944
3944
|
// Light gray background
|
|
3945
3945
|
text: "#000"
|
|
3946
3946
|
// Black text
|
|
3947
|
-
}),
|
|
3948
|
-
colors:
|
|
3949
|
-
}),
|
|
3947
|
+
}), Se = _D.orange, _1 = Mu({
|
|
3948
|
+
colors: Se
|
|
3949
|
+
}), y1 = ({
|
|
3950
3950
|
children: u
|
|
3951
3951
|
}) => {
|
|
3952
3952
|
const D = pu(), f = () => {
|
|
@@ -3955,24 +3955,24 @@ const me = (u, D) => {
|
|
|
3955
3955
|
return _D[e];
|
|
3956
3956
|
try {
|
|
3957
3957
|
return {
|
|
3958
|
-
...
|
|
3958
|
+
...xe(e),
|
|
3959
3959
|
// Keep received message colors fixed (admin chat)
|
|
3960
|
-
received:
|
|
3960
|
+
received: ke()
|
|
3961
3961
|
};
|
|
3962
3962
|
} catch {
|
|
3963
3963
|
return console.warn(`Failed to generate theme for color: ${e}, using orange fallback`), _D.orange;
|
|
3964
3964
|
}
|
|
3965
3965
|
};
|
|
3966
|
-
return /* @__PURE__ */ a.jsx(
|
|
3966
|
+
return /* @__PURE__ */ a.jsx(_1.Provider, { value: { colors: f() }, children: u });
|
|
3967
3967
|
}, ou = () => {
|
|
3968
|
-
const u = Wu(
|
|
3968
|
+
const u = Wu(_1);
|
|
3969
3969
|
if (!u)
|
|
3970
3970
|
throw new Error("useColors must be used within a ColorProvider");
|
|
3971
3971
|
return u;
|
|
3972
|
-
},
|
|
3972
|
+
}, cf = ({
|
|
3973
3973
|
viewBox: u = "0 0 24 24",
|
|
3974
3974
|
...D
|
|
3975
|
-
}) => /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: /* @__PURE__ */ a.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }),
|
|
3975
|
+
}) => /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: /* @__PURE__ */ a.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }), v1 = ({
|
|
3976
3976
|
width: u = "24",
|
|
3977
3977
|
height: D = "24",
|
|
3978
3978
|
logoUrl: f,
|
|
@@ -3997,7 +3997,7 @@ const me = (u, D) => {
|
|
|
3997
3997
|
)
|
|
3998
3998
|
]
|
|
3999
3999
|
}
|
|
4000
|
-
),
|
|
4000
|
+
), je = ({
|
|
4001
4001
|
onChatWithStaff: u,
|
|
4002
4002
|
onSendNoticeToStaff: D
|
|
4003
4003
|
}) => {
|
|
@@ -4014,7 +4014,7 @@ const me = (u, D) => {
|
|
|
4014
4014
|
}, []);
|
|
4015
4015
|
const s = async () => {
|
|
4016
4016
|
try {
|
|
4017
|
-
const F = localStorage.getItem("
|
|
4017
|
+
const F = localStorage.getItem("profileLiveChat");
|
|
4018
4018
|
if (!F) {
|
|
4019
4019
|
console.error("No profile found in localStorage");
|
|
4020
4020
|
return;
|
|
@@ -4058,7 +4058,7 @@ const me = (u, D) => {
|
|
|
4058
4058
|
}
|
|
4059
4059
|
) })
|
|
4060
4060
|
] });
|
|
4061
|
-
},
|
|
4061
|
+
}, Te = ({ children: u }) => {
|
|
4062
4062
|
const D = pu(), { colors: f } = ou(), e = Tu();
|
|
4063
4063
|
return /* @__PURE__ */ a.jsxs(
|
|
4064
4064
|
"div",
|
|
@@ -4083,14 +4083,14 @@ const me = (u, D) => {
|
|
|
4083
4083
|
className: "sc-open-icon",
|
|
4084
4084
|
style: { borderRadius: "50%" }
|
|
4085
4085
|
}
|
|
4086
|
-
) : /* @__PURE__ */ a.jsx(
|
|
4086
|
+
) : /* @__PURE__ */ a.jsx(v1, { width: 32, height: 32 })
|
|
4087
4087
|
}
|
|
4088
4088
|
),
|
|
4089
4089
|
/* @__PURE__ */ a.jsx("div", { className: "sc-header--title", children: D.title })
|
|
4090
4090
|
] }),
|
|
4091
4091
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-header--actions", children: [
|
|
4092
4092
|
/* @__PURE__ */ a.jsx(
|
|
4093
|
-
|
|
4093
|
+
je,
|
|
4094
4094
|
{
|
|
4095
4095
|
onChatWithStaff: () => {
|
|
4096
4096
|
console.log("Chat with staff requested");
|
|
@@ -4105,14 +4105,14 @@ const me = (u, D) => {
|
|
|
4105
4105
|
{
|
|
4106
4106
|
className: "sc-header--close-button",
|
|
4107
4107
|
onClick: () => e.setIsOpen(!1),
|
|
4108
|
-
children: /* @__PURE__ */ a.jsx(
|
|
4108
|
+
children: /* @__PURE__ */ a.jsx(cf, {})
|
|
4109
4109
|
}
|
|
4110
4110
|
)
|
|
4111
4111
|
] })
|
|
4112
4112
|
]
|
|
4113
4113
|
}
|
|
4114
4114
|
);
|
|
4115
|
-
},
|
|
4115
|
+
}, Ne = ({
|
|
4116
4116
|
width: u = "100",
|
|
4117
4117
|
height: D = "100",
|
|
4118
4118
|
x: f = "0",
|
|
@@ -4137,7 +4137,7 @@ const me = (u, D) => {
|
|
|
4137
4137
|
/* @__PURE__ */ a.jsx("path", { d: "M349.926 17.756c141.317 87.019 164.005 282.465 47.152 399.321-74.64 74.638-183.463 93.269-274.888 57.282 97.36 59.953 228.457 49.147 314.888-37.282 131.453-131.456 82.523-352.533-87.152-419.321z" })
|
|
4138
4138
|
]
|
|
4139
4139
|
}
|
|
4140
|
-
),
|
|
4140
|
+
), Oe = ({ size: u = 50, color: D = "#000", ...f }) => /* @__PURE__ */ a.jsxs(
|
|
4141
4141
|
"svg",
|
|
4142
4142
|
{
|
|
4143
4143
|
width: u,
|
|
@@ -4197,7 +4197,7 @@ const me = (u, D) => {
|
|
|
4197
4197
|
] })
|
|
4198
4198
|
]
|
|
4199
4199
|
}
|
|
4200
|
-
),
|
|
4200
|
+
), Re = () => {
|
|
4201
4201
|
const { t: u } = Nu(), { connectionState: D, setConnectionState: f } = Cu(), { colors: e } = ou(), t = () => {
|
|
4202
4202
|
D === 0 && f(1);
|
|
4203
4203
|
}, n = D > 0;
|
|
@@ -4206,8 +4206,8 @@ const me = (u, D) => {
|
|
|
4206
4206
|
{
|
|
4207
4207
|
className: "sc-chat--disconnected-icon-wrapper",
|
|
4208
4208
|
style: { backgroundColor: e.messageList.bg },
|
|
4209
|
-
children: n ? /* @__PURE__ */ a.jsx(
|
|
4210
|
-
/* @__PURE__ */ a.jsx(
|
|
4209
|
+
children: n ? /* @__PURE__ */ a.jsx(Oe, { className: "loading-image" }) : /* @__PURE__ */ a.jsxs("div", { className: "sc-chat--disconnected-icon", children: [
|
|
4210
|
+
/* @__PURE__ */ a.jsx(Ne, {}),
|
|
4211
4211
|
/* @__PURE__ */ a.jsx(
|
|
4212
4212
|
"h3",
|
|
4213
4213
|
{
|
|
@@ -4233,287 +4233,285 @@ const me = (u, D) => {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
);
|
|
4235
4235
|
};
|
|
4236
|
-
var
|
|
4237
|
-
function
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
})(
|
|
4242
|
-
var
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
return O ? new Date(Date.UTC(R[1], W, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, J)) : new Date(R[1], W, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, J);
|
|
4302
|
-
}
|
|
4236
|
+
var w1 = { exports: {} };
|
|
4237
|
+
(function(u, D) {
|
|
4238
|
+
(function(f, e) {
|
|
4239
|
+
u.exports = e();
|
|
4240
|
+
})(oD, function() {
|
|
4241
|
+
var f = 1e3, e = 6e4, t = 36e5, n = "millisecond", r = "second", s = "minute", F = "hour", d = "day", o = "week", c = "month", l = "quarter", A = "year", C = "date", m = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
|
|
4242
|
+
var E = ["th", "st", "nd", "rd"], p = N % 100;
|
|
4243
|
+
return "[" + N + (E[(p - 20) % 10] || E[p] || E[0]) + "]";
|
|
4244
|
+
} }, I = function(N, E, p) {
|
|
4245
|
+
var k = String(N);
|
|
4246
|
+
return !k || k.length >= E ? N : "" + Array(E + 1 - k.length).join(p) + N;
|
|
4247
|
+
}, _ = { s: I, z: function(N) {
|
|
4248
|
+
var E = -N.utcOffset(), p = Math.abs(E), k = Math.floor(p / 60), b = p % 60;
|
|
4249
|
+
return (E <= 0 ? "+" : "-") + I(k, 2, "0") + ":" + I(b, 2, "0");
|
|
4250
|
+
}, m: function N(E, p) {
|
|
4251
|
+
if (E.date() < p.date()) return -N(p, E);
|
|
4252
|
+
var k = 12 * (p.year() - E.year()) + (p.month() - E.month()), b = E.clone().add(k, c), O = p - b < 0, R = E.clone().add(k + (O ? -1 : 1), c);
|
|
4253
|
+
return +(-(k + (p - b) / (O ? b - R : R - b)) || 0);
|
|
4254
|
+
}, a: function(N) {
|
|
4255
|
+
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
|
4256
|
+
}, p: function(N) {
|
|
4257
|
+
return { M: c, y: A, w: o, d, D: C, h: F, m: s, s: r, ms: n, Q: l }[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
|
4258
|
+
}, u: function(N) {
|
|
4259
|
+
return N === void 0;
|
|
4260
|
+
} }, B = "en", T = {};
|
|
4261
|
+
T[B] = x;
|
|
4262
|
+
var y = "$isDayjsObject", v = function(N) {
|
|
4263
|
+
return N instanceof $ || !(!N || !N[y]);
|
|
4264
|
+
}, q = function N(E, p, k) {
|
|
4265
|
+
var b;
|
|
4266
|
+
if (!E) return B;
|
|
4267
|
+
if (typeof E == "string") {
|
|
4268
|
+
var O = E.toLowerCase();
|
|
4269
|
+
T[O] && (b = O), p && (T[O] = p, b = O);
|
|
4270
|
+
var R = E.split("-");
|
|
4271
|
+
if (!b && R.length > 1) return N(R[0]);
|
|
4272
|
+
} else {
|
|
4273
|
+
var W = E.name;
|
|
4274
|
+
T[W] = E, b = W;
|
|
4275
|
+
}
|
|
4276
|
+
return !k && b && (B = b), b || !k && B;
|
|
4277
|
+
}, P = function(N, E) {
|
|
4278
|
+
if (v(N)) return N.clone();
|
|
4279
|
+
var p = typeof E == "object" ? E : {};
|
|
4280
|
+
return p.date = N, p.args = arguments, new $(p);
|
|
4281
|
+
}, g = _;
|
|
4282
|
+
g.l = q, g.i = v, g.w = function(N, E) {
|
|
4283
|
+
return P(N, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4284
|
+
};
|
|
4285
|
+
var $ = function() {
|
|
4286
|
+
function N(p) {
|
|
4287
|
+
this.$L = q(p.locale, null, !0), this.parse(p), this.$x = this.$x || p.x || {}, this[y] = !0;
|
|
4288
|
+
}
|
|
4289
|
+
var E = N.prototype;
|
|
4290
|
+
return E.parse = function(p) {
|
|
4291
|
+
this.$d = function(k) {
|
|
4292
|
+
var b = k.date, O = k.utc;
|
|
4293
|
+
if (b === null) return /* @__PURE__ */ new Date(NaN);
|
|
4294
|
+
if (g.u(b)) return /* @__PURE__ */ new Date();
|
|
4295
|
+
if (b instanceof Date) return new Date(b);
|
|
4296
|
+
if (typeof b == "string" && !/Z$/i.test(b)) {
|
|
4297
|
+
var R = b.match(j);
|
|
4298
|
+
if (R) {
|
|
4299
|
+
var W = R[2] - 1 || 0, J = (R[7] || "0").substring(0, 3);
|
|
4300
|
+
return O ? new Date(Date.UTC(R[1], W, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, J)) : new Date(R[1], W, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, J);
|
|
4303
4301
|
}
|
|
4304
|
-
return new Date(b);
|
|
4305
|
-
}(p), this.init();
|
|
4306
|
-
}, E.init = function() {
|
|
4307
|
-
var p = this.$d;
|
|
4308
|
-
this.$y = p.getFullYear(), this.$M = p.getMonth(), this.$D = p.getDate(), this.$W = p.getDay(), this.$H = p.getHours(), this.$m = p.getMinutes(), this.$s = p.getSeconds(), this.$ms = p.getMilliseconds();
|
|
4309
|
-
}, E.$utils = function() {
|
|
4310
|
-
return g;
|
|
4311
|
-
}, E.isValid = function() {
|
|
4312
|
-
return this.$d.toString() !== m;
|
|
4313
|
-
}, E.isSame = function(p, k) {
|
|
4314
|
-
var b = P(p);
|
|
4315
|
-
return this.startOf(k) <= b && b <= this.endOf(k);
|
|
4316
|
-
}, E.isAfter = function(p, k) {
|
|
4317
|
-
return P(p) < this.startOf(k);
|
|
4318
|
-
}, E.isBefore = function(p, k) {
|
|
4319
|
-
return this.endOf(k) < P(p);
|
|
4320
|
-
}, E.$g = function(p, k, b) {
|
|
4321
|
-
return g.u(p) ? this[k] : this.set(b, p);
|
|
4322
|
-
}, E.unix = function() {
|
|
4323
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
4324
|
-
}, E.valueOf = function() {
|
|
4325
|
-
return this.$d.getTime();
|
|
4326
|
-
}, E.startOf = function(p, k) {
|
|
4327
|
-
var b = this, O = !!g.u(k) || k, R = g.p(p), W = function(Bu, ru) {
|
|
4328
|
-
var du = g.w(b.$u ? Date.UTC(b.$y, ru, Bu) : new Date(b.$y, ru, Bu), b);
|
|
4329
|
-
return O ? du : du.endOf(d);
|
|
4330
|
-
}, J = function(Bu, ru) {
|
|
4331
|
-
return g.w(b.toDate()[Bu].apply(b.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ru)), b);
|
|
4332
|
-
}, X = this.$W, z = this.$M, Q = this.$D, tu = "set" + (this.$u ? "UTC" : "");
|
|
4333
|
-
switch (R) {
|
|
4334
|
-
case A:
|
|
4335
|
-
return O ? W(1, 0) : W(31, 11);
|
|
4336
|
-
case c:
|
|
4337
|
-
return O ? W(1, z) : W(0, z + 1);
|
|
4338
|
-
case o:
|
|
4339
|
-
var cu = this.$locale().weekStart || 0, mu = (X < cu ? X + 7 : X) - cu;
|
|
4340
|
-
return W(O ? Q - mu : Q + (6 - mu), z);
|
|
4341
|
-
case d:
|
|
4342
|
-
case C:
|
|
4343
|
-
return J(tu + "Hours", 0);
|
|
4344
|
-
case F:
|
|
4345
|
-
return J(tu + "Minutes", 1);
|
|
4346
|
-
case s:
|
|
4347
|
-
return J(tu + "Seconds", 2);
|
|
4348
|
-
case r:
|
|
4349
|
-
return J(tu + "Milliseconds", 3);
|
|
4350
|
-
default:
|
|
4351
|
-
return this.clone();
|
|
4352
|
-
}
|
|
4353
|
-
}, E.endOf = function(p) {
|
|
4354
|
-
return this.startOf(p, !1);
|
|
4355
|
-
}, E.$set = function(p, k) {
|
|
4356
|
-
var b, O = g.p(p), R = "set" + (this.$u ? "UTC" : ""), W = (b = {}, b[d] = R + "Date", b[C] = R + "Date", b[c] = R + "Month", b[A] = R + "FullYear", b[F] = R + "Hours", b[s] = R + "Minutes", b[r] = R + "Seconds", b[n] = R + "Milliseconds", b)[O], J = O === d ? this.$D + (k - this.$W) : k;
|
|
4357
|
-
if (O === c || O === A) {
|
|
4358
|
-
var X = this.clone().set(C, 1);
|
|
4359
|
-
X.$d[W](J), X.init(), this.$d = X.set(C, Math.min(this.$D, X.daysInMonth())).$d;
|
|
4360
|
-
} else W && this.$d[W](J);
|
|
4361
|
-
return this.init(), this;
|
|
4362
|
-
}, E.set = function(p, k) {
|
|
4363
|
-
return this.clone().$set(p, k);
|
|
4364
|
-
}, E.get = function(p) {
|
|
4365
|
-
return this[g.p(p)]();
|
|
4366
|
-
}, E.add = function(p, k) {
|
|
4367
|
-
var b, O = this;
|
|
4368
|
-
p = Number(p);
|
|
4369
|
-
var R = g.p(k), W = function(z) {
|
|
4370
|
-
var Q = P(O);
|
|
4371
|
-
return g.w(Q.date(Q.date() + Math.round(z * p)), O);
|
|
4372
|
-
};
|
|
4373
|
-
if (R === c) return this.set(c, this.$M + p);
|
|
4374
|
-
if (R === A) return this.set(A, this.$y + p);
|
|
4375
|
-
if (R === d) return W(1);
|
|
4376
|
-
if (R === o) return W(7);
|
|
4377
|
-
var J = (b = {}, b[s] = e, b[F] = t, b[r] = f, b)[R] || 1, X = this.$d.getTime() + p * J;
|
|
4378
|
-
return g.w(X, this);
|
|
4379
|
-
}, E.subtract = function(p, k) {
|
|
4380
|
-
return this.add(-1 * p, k);
|
|
4381
|
-
}, E.format = function(p) {
|
|
4382
|
-
var k = this, b = this.$locale();
|
|
4383
|
-
if (!this.isValid()) return b.invalidDate || m;
|
|
4384
|
-
var O = p || "YYYY-MM-DDTHH:mm:ssZ", R = g.z(this), W = this.$H, J = this.$m, X = this.$M, z = b.weekdays, Q = b.months, tu = b.meridiem, cu = function(ru, du, Pu, Iu) {
|
|
4385
|
-
return ru && (ru[du] || ru(k, O)) || Pu[du].slice(0, Iu);
|
|
4386
|
-
}, mu = function(ru) {
|
|
4387
|
-
return g.s(W % 12 || 12, ru, "0");
|
|
4388
|
-
}, Bu = tu || function(ru, du, Pu) {
|
|
4389
|
-
var Iu = ru < 12 ? "AM" : "PM";
|
|
4390
|
-
return Pu ? Iu.toLowerCase() : Iu;
|
|
4391
|
-
};
|
|
4392
|
-
return O.replace(L, function(ru, du) {
|
|
4393
|
-
return du || function(Pu) {
|
|
4394
|
-
switch (Pu) {
|
|
4395
|
-
case "YY":
|
|
4396
|
-
return String(k.$y).slice(-2);
|
|
4397
|
-
case "YYYY":
|
|
4398
|
-
return g.s(k.$y, 4, "0");
|
|
4399
|
-
case "M":
|
|
4400
|
-
return X + 1;
|
|
4401
|
-
case "MM":
|
|
4402
|
-
return g.s(X + 1, 2, "0");
|
|
4403
|
-
case "MMM":
|
|
4404
|
-
return cu(b.monthsShort, X, Q, 3);
|
|
4405
|
-
case "MMMM":
|
|
4406
|
-
return cu(Q, X);
|
|
4407
|
-
case "D":
|
|
4408
|
-
return k.$D;
|
|
4409
|
-
case "DD":
|
|
4410
|
-
return g.s(k.$D, 2, "0");
|
|
4411
|
-
case "d":
|
|
4412
|
-
return String(k.$W);
|
|
4413
|
-
case "dd":
|
|
4414
|
-
return cu(b.weekdaysMin, k.$W, z, 2);
|
|
4415
|
-
case "ddd":
|
|
4416
|
-
return cu(b.weekdaysShort, k.$W, z, 3);
|
|
4417
|
-
case "dddd":
|
|
4418
|
-
return z[k.$W];
|
|
4419
|
-
case "H":
|
|
4420
|
-
return String(W);
|
|
4421
|
-
case "HH":
|
|
4422
|
-
return g.s(W, 2, "0");
|
|
4423
|
-
case "h":
|
|
4424
|
-
return mu(1);
|
|
4425
|
-
case "hh":
|
|
4426
|
-
return mu(2);
|
|
4427
|
-
case "a":
|
|
4428
|
-
return Bu(W, J, !0);
|
|
4429
|
-
case "A":
|
|
4430
|
-
return Bu(W, J, !1);
|
|
4431
|
-
case "m":
|
|
4432
|
-
return String(J);
|
|
4433
|
-
case "mm":
|
|
4434
|
-
return g.s(J, 2, "0");
|
|
4435
|
-
case "s":
|
|
4436
|
-
return String(k.$s);
|
|
4437
|
-
case "ss":
|
|
4438
|
-
return g.s(k.$s, 2, "0");
|
|
4439
|
-
case "SSS":
|
|
4440
|
-
return g.s(k.$ms, 3, "0");
|
|
4441
|
-
case "Z":
|
|
4442
|
-
return R;
|
|
4443
|
-
}
|
|
4444
|
-
return null;
|
|
4445
|
-
}(ru) || R.replace(":", "");
|
|
4446
|
-
});
|
|
4447
|
-
}, E.utcOffset = function() {
|
|
4448
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4449
|
-
}, E.diff = function(p, k, b) {
|
|
4450
|
-
var O, R = this, W = g.p(k), J = P(p), X = (J.utcOffset() - this.utcOffset()) * e, z = this - J, Q = function() {
|
|
4451
|
-
return g.m(R, J);
|
|
4452
|
-
};
|
|
4453
|
-
switch (W) {
|
|
4454
|
-
case A:
|
|
4455
|
-
O = Q() / 12;
|
|
4456
|
-
break;
|
|
4457
|
-
case c:
|
|
4458
|
-
O = Q();
|
|
4459
|
-
break;
|
|
4460
|
-
case l:
|
|
4461
|
-
O = Q() / 3;
|
|
4462
|
-
break;
|
|
4463
|
-
case o:
|
|
4464
|
-
O = (z - X) / 6048e5;
|
|
4465
|
-
break;
|
|
4466
|
-
case d:
|
|
4467
|
-
O = (z - X) / 864e5;
|
|
4468
|
-
break;
|
|
4469
|
-
case F:
|
|
4470
|
-
O = z / t;
|
|
4471
|
-
break;
|
|
4472
|
-
case s:
|
|
4473
|
-
O = z / e;
|
|
4474
|
-
break;
|
|
4475
|
-
case r:
|
|
4476
|
-
O = z / f;
|
|
4477
|
-
break;
|
|
4478
|
-
default:
|
|
4479
|
-
O = z;
|
|
4480
4302
|
}
|
|
4481
|
-
return
|
|
4482
|
-
},
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
}
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4303
|
+
return new Date(b);
|
|
4304
|
+
}(p), this.init();
|
|
4305
|
+
}, E.init = function() {
|
|
4306
|
+
var p = this.$d;
|
|
4307
|
+
this.$y = p.getFullYear(), this.$M = p.getMonth(), this.$D = p.getDate(), this.$W = p.getDay(), this.$H = p.getHours(), this.$m = p.getMinutes(), this.$s = p.getSeconds(), this.$ms = p.getMilliseconds();
|
|
4308
|
+
}, E.$utils = function() {
|
|
4309
|
+
return g;
|
|
4310
|
+
}, E.isValid = function() {
|
|
4311
|
+
return this.$d.toString() !== m;
|
|
4312
|
+
}, E.isSame = function(p, k) {
|
|
4313
|
+
var b = P(p);
|
|
4314
|
+
return this.startOf(k) <= b && b <= this.endOf(k);
|
|
4315
|
+
}, E.isAfter = function(p, k) {
|
|
4316
|
+
return P(p) < this.startOf(k);
|
|
4317
|
+
}, E.isBefore = function(p, k) {
|
|
4318
|
+
return this.endOf(k) < P(p);
|
|
4319
|
+
}, E.$g = function(p, k, b) {
|
|
4320
|
+
return g.u(p) ? this[k] : this.set(b, p);
|
|
4321
|
+
}, E.unix = function() {
|
|
4322
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
4323
|
+
}, E.valueOf = function() {
|
|
4324
|
+
return this.$d.getTime();
|
|
4325
|
+
}, E.startOf = function(p, k) {
|
|
4326
|
+
var b = this, O = !!g.u(k) || k, R = g.p(p), W = function(Bu, ru) {
|
|
4327
|
+
var du = g.w(b.$u ? Date.UTC(b.$y, ru, Bu) : new Date(b.$y, ru, Bu), b);
|
|
4328
|
+
return O ? du : du.endOf(d);
|
|
4329
|
+
}, J = function(Bu, ru) {
|
|
4330
|
+
return g.w(b.toDate()[Bu].apply(b.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ru)), b);
|
|
4331
|
+
}, X = this.$W, z = this.$M, Q = this.$D, tu = "set" + (this.$u ? "UTC" : "");
|
|
4332
|
+
switch (R) {
|
|
4333
|
+
case A:
|
|
4334
|
+
return O ? W(1, 0) : W(31, 11);
|
|
4335
|
+
case c:
|
|
4336
|
+
return O ? W(1, z) : W(0, z + 1);
|
|
4337
|
+
case o:
|
|
4338
|
+
var cu = this.$locale().weekStart || 0, mu = (X < cu ? X + 7 : X) - cu;
|
|
4339
|
+
return W(O ? Q - mu : Q + (6 - mu), z);
|
|
4340
|
+
case d:
|
|
4341
|
+
case C:
|
|
4342
|
+
return J(tu + "Hours", 0);
|
|
4343
|
+
case F:
|
|
4344
|
+
return J(tu + "Minutes", 1);
|
|
4345
|
+
case s:
|
|
4346
|
+
return J(tu + "Seconds", 2);
|
|
4347
|
+
case r:
|
|
4348
|
+
return J(tu + "Milliseconds", 3);
|
|
4349
|
+
default:
|
|
4350
|
+
return this.clone();
|
|
4351
|
+
}
|
|
4352
|
+
}, E.endOf = function(p) {
|
|
4353
|
+
return this.startOf(p, !1);
|
|
4354
|
+
}, E.$set = function(p, k) {
|
|
4355
|
+
var b, O = g.p(p), R = "set" + (this.$u ? "UTC" : ""), W = (b = {}, b[d] = R + "Date", b[C] = R + "Date", b[c] = R + "Month", b[A] = R + "FullYear", b[F] = R + "Hours", b[s] = R + "Minutes", b[r] = R + "Seconds", b[n] = R + "Milliseconds", b)[O], J = O === d ? this.$D + (k - this.$W) : k;
|
|
4356
|
+
if (O === c || O === A) {
|
|
4357
|
+
var X = this.clone().set(C, 1);
|
|
4358
|
+
X.$d[W](J), X.init(), this.$d = X.set(C, Math.min(this.$D, X.daysInMonth())).$d;
|
|
4359
|
+
} else W && this.$d[W](J);
|
|
4360
|
+
return this.init(), this;
|
|
4361
|
+
}, E.set = function(p, k) {
|
|
4362
|
+
return this.clone().$set(p, k);
|
|
4363
|
+
}, E.get = function(p) {
|
|
4364
|
+
return this[g.p(p)]();
|
|
4365
|
+
}, E.add = function(p, k) {
|
|
4366
|
+
var b, O = this;
|
|
4367
|
+
p = Number(p);
|
|
4368
|
+
var R = g.p(k), W = function(z) {
|
|
4369
|
+
var Q = P(O);
|
|
4370
|
+
return g.w(Q.date(Q.date() + Math.round(z * p)), O);
|
|
4505
4371
|
};
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4372
|
+
if (R === c) return this.set(c, this.$M + p);
|
|
4373
|
+
if (R === A) return this.set(A, this.$y + p);
|
|
4374
|
+
if (R === d) return W(1);
|
|
4375
|
+
if (R === o) return W(7);
|
|
4376
|
+
var J = (b = {}, b[s] = e, b[F] = t, b[r] = f, b)[R] || 1, X = this.$d.getTime() + p * J;
|
|
4377
|
+
return g.w(X, this);
|
|
4378
|
+
}, E.subtract = function(p, k) {
|
|
4379
|
+
return this.add(-1 * p, k);
|
|
4380
|
+
}, E.format = function(p) {
|
|
4381
|
+
var k = this, b = this.$locale();
|
|
4382
|
+
if (!this.isValid()) return b.invalidDate || m;
|
|
4383
|
+
var O = p || "YYYY-MM-DDTHH:mm:ssZ", R = g.z(this), W = this.$H, J = this.$m, X = this.$M, z = b.weekdays, Q = b.months, tu = b.meridiem, cu = function(ru, du, Pu, Iu) {
|
|
4384
|
+
return ru && (ru[du] || ru(k, O)) || Pu[du].slice(0, Iu);
|
|
4385
|
+
}, mu = function(ru) {
|
|
4386
|
+
return g.s(W % 12 || 12, ru, "0");
|
|
4387
|
+
}, Bu = tu || function(ru, du, Pu) {
|
|
4388
|
+
var Iu = ru < 12 ? "AM" : "PM";
|
|
4389
|
+
return Pu ? Iu.toLowerCase() : Iu;
|
|
4390
|
+
};
|
|
4391
|
+
return O.replace(L, function(ru, du) {
|
|
4392
|
+
return du || function(Pu) {
|
|
4393
|
+
switch (Pu) {
|
|
4394
|
+
case "YY":
|
|
4395
|
+
return String(k.$y).slice(-2);
|
|
4396
|
+
case "YYYY":
|
|
4397
|
+
return g.s(k.$y, 4, "0");
|
|
4398
|
+
case "M":
|
|
4399
|
+
return X + 1;
|
|
4400
|
+
case "MM":
|
|
4401
|
+
return g.s(X + 1, 2, "0");
|
|
4402
|
+
case "MMM":
|
|
4403
|
+
return cu(b.monthsShort, X, Q, 3);
|
|
4404
|
+
case "MMMM":
|
|
4405
|
+
return cu(Q, X);
|
|
4406
|
+
case "D":
|
|
4407
|
+
return k.$D;
|
|
4408
|
+
case "DD":
|
|
4409
|
+
return g.s(k.$D, 2, "0");
|
|
4410
|
+
case "d":
|
|
4411
|
+
return String(k.$W);
|
|
4412
|
+
case "dd":
|
|
4413
|
+
return cu(b.weekdaysMin, k.$W, z, 2);
|
|
4414
|
+
case "ddd":
|
|
4415
|
+
return cu(b.weekdaysShort, k.$W, z, 3);
|
|
4416
|
+
case "dddd":
|
|
4417
|
+
return z[k.$W];
|
|
4418
|
+
case "H":
|
|
4419
|
+
return String(W);
|
|
4420
|
+
case "HH":
|
|
4421
|
+
return g.s(W, 2, "0");
|
|
4422
|
+
case "h":
|
|
4423
|
+
return mu(1);
|
|
4424
|
+
case "hh":
|
|
4425
|
+
return mu(2);
|
|
4426
|
+
case "a":
|
|
4427
|
+
return Bu(W, J, !0);
|
|
4428
|
+
case "A":
|
|
4429
|
+
return Bu(W, J, !1);
|
|
4430
|
+
case "m":
|
|
4431
|
+
return String(J);
|
|
4432
|
+
case "mm":
|
|
4433
|
+
return g.s(J, 2, "0");
|
|
4434
|
+
case "s":
|
|
4435
|
+
return String(k.$s);
|
|
4436
|
+
case "ss":
|
|
4437
|
+
return g.s(k.$s, 2, "0");
|
|
4438
|
+
case "SSS":
|
|
4439
|
+
return g.s(k.$ms, 3, "0");
|
|
4440
|
+
case "Z":
|
|
4441
|
+
return R;
|
|
4442
|
+
}
|
|
4443
|
+
return null;
|
|
4444
|
+
}(ru) || R.replace(":", "");
|
|
4445
|
+
});
|
|
4446
|
+
}, E.utcOffset = function() {
|
|
4447
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4448
|
+
}, E.diff = function(p, k, b) {
|
|
4449
|
+
var O, R = this, W = g.p(k), J = P(p), X = (J.utcOffset() - this.utcOffset()) * e, z = this - J, Q = function() {
|
|
4450
|
+
return g.m(R, J);
|
|
4451
|
+
};
|
|
4452
|
+
switch (W) {
|
|
4453
|
+
case A:
|
|
4454
|
+
O = Q() / 12;
|
|
4455
|
+
break;
|
|
4456
|
+
case c:
|
|
4457
|
+
O = Q();
|
|
4458
|
+
break;
|
|
4459
|
+
case l:
|
|
4460
|
+
O = Q() / 3;
|
|
4461
|
+
break;
|
|
4462
|
+
case o:
|
|
4463
|
+
O = (z - X) / 6048e5;
|
|
4464
|
+
break;
|
|
4465
|
+
case d:
|
|
4466
|
+
O = (z - X) / 864e5;
|
|
4467
|
+
break;
|
|
4468
|
+
case F:
|
|
4469
|
+
O = z / t;
|
|
4470
|
+
break;
|
|
4471
|
+
case s:
|
|
4472
|
+
O = z / e;
|
|
4473
|
+
break;
|
|
4474
|
+
case r:
|
|
4475
|
+
O = z / f;
|
|
4476
|
+
break;
|
|
4477
|
+
default:
|
|
4478
|
+
O = z;
|
|
4479
|
+
}
|
|
4480
|
+
return b ? O : g.a(O);
|
|
4481
|
+
}, E.daysInMonth = function() {
|
|
4482
|
+
return this.endOf(c).$D;
|
|
4483
|
+
}, E.$locale = function() {
|
|
4484
|
+
return T[this.$L];
|
|
4485
|
+
}, E.locale = function(p, k) {
|
|
4486
|
+
if (!p) return this.$L;
|
|
4487
|
+
var b = this.clone(), O = q(p, k, !0);
|
|
4488
|
+
return O && (b.$L = O), b;
|
|
4489
|
+
}, E.clone = function() {
|
|
4490
|
+
return g.w(this.$d, this);
|
|
4491
|
+
}, E.toDate = function() {
|
|
4492
|
+
return new Date(this.valueOf());
|
|
4493
|
+
}, E.toJSON = function() {
|
|
4494
|
+
return this.isValid() ? this.toISOString() : null;
|
|
4495
|
+
}, E.toISOString = function() {
|
|
4496
|
+
return this.$d.toISOString();
|
|
4497
|
+
}, E.toString = function() {
|
|
4498
|
+
return this.$d.toUTCString();
|
|
4499
|
+
}, N;
|
|
4500
|
+
}(), Du = $.prototype;
|
|
4501
|
+
return P.prototype = Du, [["$ms", n], ["$s", r], ["$m", s], ["$H", F], ["$W", d], ["$M", c], ["$y", A], ["$D", C]].forEach(function(N) {
|
|
4502
|
+
Du[N[1]] = function(E) {
|
|
4503
|
+
return this.$g(E, N[0], N[1]);
|
|
4504
|
+
};
|
|
4505
|
+
}), P.extend = function(N, E) {
|
|
4506
|
+
return N.$i || (N(E, $, P), N.$i = !0), P;
|
|
4507
|
+
}, P.locale = q, P.isDayjs = v, P.unix = function(N) {
|
|
4508
|
+
return P(1e3 * N);
|
|
4509
|
+
}, P.en = T[B], P.Ls = T, P.p = {}, P;
|
|
4510
|
+
});
|
|
4511
|
+
})(w1);
|
|
4512
|
+
var A1 = w1.exports;
|
|
4513
|
+
const x1 = /* @__PURE__ */ af(A1);
|
|
4514
|
+
var Pe = { exports: {} };
|
|
4517
4515
|
(function(u, D) {
|
|
4518
4516
|
(function(f, e) {
|
|
4519
4517
|
u.exports = e();
|
|
@@ -4523,11 +4521,11 @@ var Le = { exports: {} };
|
|
|
4523
4521
|
return "[" + f + (e[(t - 20) % 10] || e[t] || e[0]) + "]";
|
|
4524
4522
|
} };
|
|
4525
4523
|
});
|
|
4526
|
-
})(
|
|
4527
|
-
var
|
|
4524
|
+
})(Pe);
|
|
4525
|
+
var Ie = { exports: {} };
|
|
4528
4526
|
(function(u, D) {
|
|
4529
4527
|
(function(f, e) {
|
|
4530
|
-
u.exports = e(
|
|
4528
|
+
u.exports = e(A1);
|
|
4531
4529
|
})(oD, function(f) {
|
|
4532
4530
|
function e(r) {
|
|
4533
4531
|
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
@@ -4537,8 +4535,8 @@ var $e = { exports: {} };
|
|
|
4537
4535
|
} };
|
|
4538
4536
|
return t.default.locale(n, null, !0), n;
|
|
4539
4537
|
});
|
|
4540
|
-
})(
|
|
4541
|
-
var
|
|
4538
|
+
})(Ie);
|
|
4539
|
+
var k1 = { exports: {} };
|
|
4542
4540
|
(function(u, D) {
|
|
4543
4541
|
(function(f, e) {
|
|
4544
4542
|
u.exports = e();
|
|
@@ -4579,9 +4577,9 @@ var S1 = { exports: {} };
|
|
|
4579
4577
|
};
|
|
4580
4578
|
};
|
|
4581
4579
|
});
|
|
4582
|
-
})(
|
|
4583
|
-
var
|
|
4584
|
-
const
|
|
4580
|
+
})(k1);
|
|
4581
|
+
var Le = k1.exports;
|
|
4582
|
+
const $e = /* @__PURE__ */ af(Le), S1 = ({
|
|
4585
4583
|
width: u = "18",
|
|
4586
4584
|
height: D = "18",
|
|
4587
4585
|
...f
|
|
@@ -4676,10 +4674,10 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4676
4674
|
},
|
|
4677
4675
|
F
|
|
4678
4676
|
)) });
|
|
4679
|
-
},
|
|
4680
|
-
let D =
|
|
4681
|
-
return D =
|
|
4682
|
-
},
|
|
4677
|
+
}, Me = (u, D = 100) => u.length > D ? u.substr(0, D) + "..." : u, qe = (u) => u.replace(/\n/g, "<br />"), ze = (u) => {
|
|
4678
|
+
let D = Me(u, 50);
|
|
4679
|
+
return D = qe(u), D;
|
|
4680
|
+
}, Ue = ({ message: u }) => /* @__PURE__ */ a.jsx("div", { className: "sc-message--carousel-element-wrapper", children: /* @__PURE__ */ a.jsxs("div", { className: "sc-message--carousel-element", children: [
|
|
4683
4681
|
u.image_url && /* @__PURE__ */ a.jsx(
|
|
4684
4682
|
"div",
|
|
4685
4683
|
{
|
|
@@ -4693,7 +4691,7 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4693
4691
|
"p",
|
|
4694
4692
|
{
|
|
4695
4693
|
dangerouslySetInnerHTML: {
|
|
4696
|
-
__html:
|
|
4694
|
+
__html: ze(u.subtitle)
|
|
4697
4695
|
}
|
|
4698
4696
|
}
|
|
4699
4697
|
)
|
|
@@ -4704,7 +4702,7 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4704
4702
|
message: { data: { buttons: u.buttons } }
|
|
4705
4703
|
}
|
|
4706
4704
|
)
|
|
4707
|
-
] }) }),
|
|
4705
|
+
] }) }), Ve = ({
|
|
4708
4706
|
messageCarousel: u
|
|
4709
4707
|
}) => {
|
|
4710
4708
|
const { colors: D } = ou(), [f, e] = U(0), t = u.data.elements, n = () => {
|
|
@@ -4728,7 +4726,7 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4728
4726
|
{
|
|
4729
4727
|
className: "sc-message--carousel-inner",
|
|
4730
4728
|
style: { transform: `translateX(-${f * 100}%)` },
|
|
4731
|
-
children: t.map((d, o) => /* @__PURE__ */ a.jsx(
|
|
4729
|
+
children: t.map((d, o) => /* @__PURE__ */ a.jsx(Ue, { message: d, idx: o }, o))
|
|
4732
4730
|
}
|
|
4733
4731
|
),
|
|
4734
4732
|
F && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -4752,14 +4750,14 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4752
4750
|
]
|
|
4753
4751
|
}
|
|
4754
4752
|
);
|
|
4755
|
-
},
|
|
4753
|
+
}, He = ({
|
|
4756
4754
|
viewBox: u = "0 0 512 512",
|
|
4757
4755
|
...D
|
|
4758
4756
|
}) => /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: /* @__PURE__ */ a.jsxs("g", { "data-name": "1", children: [
|
|
4759
4757
|
/* @__PURE__ */ a.jsx("path", { d: "M378.83 450H150a50.17 50.17 0 01-50.11-50.11V98.11A50.17 50.17 0 01150 48h150.1a15 15 0 0110.61 4.39l113.84 113.88a15 15 0 014.39 10.61v223A50.17 50.17 0 01378.83 450zM150 78a20.13 20.13 0 00-20.11 20.11v301.78A20.13 20.13 0 00150 420h228.83a20.13 20.13 0 0020.11-20.11v-216.8L293.85 78z" }),
|
|
4760
4758
|
/* @__PURE__ */ a.jsx("path", { d: "M413.94 191.88h-78.77a50.17 50.17 0 01-50.11-50.11V63a15 15 0 0130 0v78.77a20.13 20.13 0 0020.11 20.11h78.77a15 15 0 010 30zM264.4 375a15 15 0 01-10.61-4.4l-54.45-54.44a15 15 0 1121.21-21.22l43.85 43.84 43.84-43.84a15 15 0 1121.21 21.22L275 370.55a15 15 0 01-10.6 4.45z" }),
|
|
4761
4759
|
/* @__PURE__ */ a.jsx("path", { d: "M264.4 365a15 15 0 01-15-15V231a15 15 0 0130 0v119a15 15 0 01-15 15z" })
|
|
4762
|
-
] }) }),
|
|
4760
|
+
] }) }), We = ({ message: u }) => {
|
|
4763
4761
|
const { t: D } = Nu(), { colors: f } = ou(), e = f[u.direction || uu.received];
|
|
4764
4762
|
if (!("type" in u.data))
|
|
4765
4763
|
throw new Error("Unable to detect type for file message");
|
|
@@ -4799,7 +4797,7 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4799
4797
|
rel: "noopener noreferrer",
|
|
4800
4798
|
download: !0,
|
|
4801
4799
|
children: [
|
|
4802
|
-
/* @__PURE__ */ a.jsx(
|
|
4800
|
+
/* @__PURE__ */ a.jsx(He, {}),
|
|
4803
4801
|
D("messages.file_message.download")
|
|
4804
4802
|
]
|
|
4805
4803
|
}
|
|
@@ -4809,7 +4807,7 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4809
4807
|
]
|
|
4810
4808
|
}
|
|
4811
4809
|
);
|
|
4812
|
-
},
|
|
4810
|
+
}, Ye = ({ message: u }) => {
|
|
4813
4811
|
var d;
|
|
4814
4812
|
const { colors: D } = ou(), f = Tu(), [e, t] = U(!1), n = bu(null);
|
|
4815
4813
|
if (G(() => {
|
|
@@ -4847,7 +4845,7 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4847
4845
|
)
|
|
4848
4846
|
}
|
|
4849
4847
|
);
|
|
4850
|
-
},
|
|
4848
|
+
}, Je = ({ messageList: u }) => {
|
|
4851
4849
|
const { colors: D } = ou(), f = (r) => {
|
|
4852
4850
|
let s = e(r, 50);
|
|
4853
4851
|
return s = t(r), s;
|
|
@@ -4919,17 +4917,17 @@ const qe = /* @__PURE__ */ sf(Me), j1 = ({
|
|
|
4919
4917
|
}
|
|
4920
4918
|
);
|
|
4921
4919
|
};
|
|
4922
|
-
var
|
|
4923
|
-
return
|
|
4920
|
+
var ff = function(u, D) {
|
|
4921
|
+
return ff = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, e) {
|
|
4924
4922
|
f.__proto__ = e;
|
|
4925
4923
|
} || function(f, e) {
|
|
4926
4924
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && (f[t] = e[t]);
|
|
4927
|
-
},
|
|
4925
|
+
}, ff(u, D);
|
|
4928
4926
|
};
|
|
4929
4927
|
function dD(u, D) {
|
|
4930
4928
|
if (typeof D != "function" && D !== null)
|
|
4931
4929
|
throw new TypeError("Class extends value " + String(D) + " is not a constructor or null");
|
|
4932
|
-
|
|
4930
|
+
ff(u, D);
|
|
4933
4931
|
function f() {
|
|
4934
4932
|
this.constructor = u;
|
|
4935
4933
|
}
|
|
@@ -4944,7 +4942,7 @@ var iu = function() {
|
|
|
4944
4942
|
return D;
|
|
4945
4943
|
}, iu.apply(this, arguments);
|
|
4946
4944
|
};
|
|
4947
|
-
function
|
|
4945
|
+
function Ke(u, D) {
|
|
4948
4946
|
var f = typeof Symbol == "function" && u[Symbol.iterator];
|
|
4949
4947
|
if (!f) return u;
|
|
4950
4948
|
var e = f.call(u), t, n = [], r;
|
|
@@ -4961,16 +4959,16 @@ function Xe(u, D) {
|
|
|
4961
4959
|
}
|
|
4962
4960
|
return n;
|
|
4963
4961
|
}
|
|
4964
|
-
function
|
|
4962
|
+
function Ge(u, D, f) {
|
|
4965
4963
|
if (f || arguments.length === 2) for (var e = 0, t = D.length, n; e < t; e++)
|
|
4966
4964
|
(n || !(e in D)) && (n || (n = Array.prototype.slice.call(D, 0, e)), n[e] = D[e]);
|
|
4967
4965
|
return u.concat(n || Array.prototype.slice.call(D));
|
|
4968
4966
|
}
|
|
4969
|
-
var
|
|
4967
|
+
var Xe = "4.1.5", Ze = Object.prototype.hasOwnProperty;
|
|
4970
4968
|
function vu(u) {
|
|
4971
4969
|
return typeof u == "boolean";
|
|
4972
4970
|
}
|
|
4973
|
-
function
|
|
4971
|
+
function Qe(u, D, f) {
|
|
4974
4972
|
var e;
|
|
4975
4973
|
return u.length > D && (f == null ? (f = "…", e = 3) : e = f.length, u = u.substring(0, D - e) + f), u;
|
|
4976
4974
|
}
|
|
@@ -4981,7 +4979,7 @@ function Ju(u, D) {
|
|
|
4981
4979
|
function Ku(u) {
|
|
4982
4980
|
throw new Error("Unhandled case for value: '".concat(u, "'"));
|
|
4983
4981
|
}
|
|
4984
|
-
var hD = /\s+/,
|
|
4982
|
+
var hD = /\s+/, j1 = (
|
|
4985
4983
|
/** @class */
|
|
4986
4984
|
function() {
|
|
4987
4985
|
function u(D) {
|
|
@@ -5030,32 +5028,32 @@ var hD = /\s+/, T1 = (
|
|
|
5030
5028
|
}, u.prototype.buildAttrsStr = function() {
|
|
5031
5029
|
var D = this.getAttrs(), f = [];
|
|
5032
5030
|
for (var e in D)
|
|
5033
|
-
|
|
5031
|
+
Ze.call(D, e) && f.push(e + '="' + D[e] + '"');
|
|
5034
5032
|
return f.join(" ");
|
|
5035
5033
|
}, u;
|
|
5036
5034
|
}()
|
|
5037
5035
|
);
|
|
5038
|
-
function
|
|
5036
|
+
function u3(u, D, f) {
|
|
5039
5037
|
var e, t;
|
|
5040
5038
|
if (f == null ? (f = "…", t = 3, e = 8) : (t = f.length, e = f.length), u.length <= D)
|
|
5041
5039
|
return u;
|
|
5042
|
-
var n = D - t, r =
|
|
5040
|
+
var n = D - t, r = D3(u);
|
|
5043
5041
|
if (r.query) {
|
|
5044
5042
|
var s = r.query.match(/^(.*?)(?=(\?|#))(.*?)$/i);
|
|
5045
|
-
s && (r.query = r.query.substr(0, s[1].length), u =
|
|
5043
|
+
s && (r.query = r.query.substr(0, s[1].length), u = zf(r));
|
|
5046
5044
|
}
|
|
5047
|
-
if (u.length <= D || (r.host && (r.host = r.host.replace(/^www\./, ""), u =
|
|
5045
|
+
if (u.length <= D || (r.host && (r.host = r.host.replace(/^www\./, ""), u = zf(r)), u.length <= D))
|
|
5048
5046
|
return u;
|
|
5049
5047
|
var F = "";
|
|
5050
5048
|
if (r.host && (F += r.host), F.length >= n)
|
|
5051
|
-
return r.host.length === D ? (r.host.substr(0, D - t) + f).substr(0, n + e) :
|
|
5049
|
+
return r.host.length === D ? (r.host.substr(0, D - t) + f).substr(0, n + e) : qD(F, n, f).substr(0, n + e);
|
|
5052
5050
|
var d = "";
|
|
5053
5051
|
if (r.path && (d += "/" + r.path), r.query && (d += "?" + r.query), d)
|
|
5054
5052
|
if ((F + d).length >= n) {
|
|
5055
5053
|
if ((F + d).length == D)
|
|
5056
5054
|
return (F + d).substr(0, D);
|
|
5057
5055
|
var o = n - F.length;
|
|
5058
|
-
return (F +
|
|
5056
|
+
return (F + qD(d, o, f)).substr(0, n + e);
|
|
5059
5057
|
} else
|
|
5060
5058
|
F += d;
|
|
5061
5059
|
if (r.fragment) {
|
|
@@ -5064,7 +5062,7 @@ function f3(u, D, f) {
|
|
|
5064
5062
|
if ((F + c).length == D)
|
|
5065
5063
|
return (F + c).substr(0, D);
|
|
5066
5064
|
var l = n - F.length;
|
|
5067
|
-
return (F +
|
|
5065
|
+
return (F + qD(c, l, f)).substr(0, n + e);
|
|
5068
5066
|
} else
|
|
5069
5067
|
F += c;
|
|
5070
5068
|
}
|
|
@@ -5078,19 +5076,19 @@ function f3(u, D, f) {
|
|
|
5078
5076
|
var C = "";
|
|
5079
5077
|
return n > 0 && (C = F.substr(-1 * Math.floor(n / 2))), (F.substr(0, Math.ceil(n / 2)) + f + C).substr(0, n + e);
|
|
5080
5078
|
}
|
|
5081
|
-
function
|
|
5079
|
+
function D3(u) {
|
|
5082
5080
|
var D = {}, f = u, e = f.match(/^([a-z]+):\/\//i);
|
|
5083
5081
|
return e && (D.scheme = e[1], f = f.slice(e[0].length)), e = f.match(/^(.*?)(?=(\?|#|\/|$))/i), e && (D.host = e[1], f = f.slice(e[0].length)), e = f.match(/^\/(.*?)(?=(\?|#|$))/i), e && (D.path = e[1], f = f.slice(e[0].length)), e = f.match(/^\?(.*?)(?=(#|$))/i), e && (D.query = e[1], f = f.slice(e[0].length)), e = f.match(/^#(.*?)$/i), e && (D.fragment = e[1]), D;
|
|
5084
5082
|
}
|
|
5085
|
-
function
|
|
5083
|
+
function zf(u) {
|
|
5086
5084
|
var D = "";
|
|
5087
5085
|
return u.scheme && u.host && (D += u.scheme + "://"), u.host && (D += u.host), u.path && (D += "/" + u.path), u.query && (D += "?" + u.query), u.fragment && (D += "#" + u.fragment), D;
|
|
5088
5086
|
}
|
|
5089
|
-
function
|
|
5087
|
+
function qD(u, D, f) {
|
|
5090
5088
|
var e = D / 2, t = Math.ceil(e), n = -1 * Math.floor(e), r = "";
|
|
5091
5089
|
return n < 0 && (r = u.substr(n)), u.substr(0, t) + f + r;
|
|
5092
5090
|
}
|
|
5093
|
-
function
|
|
5091
|
+
function f3(u, D, f) {
|
|
5094
5092
|
if (u.length <= D)
|
|
5095
5093
|
return u;
|
|
5096
5094
|
var e, t;
|
|
@@ -5098,17 +5096,17 @@ function t3(u, D, f) {
|
|
|
5098
5096
|
var n = D - t, r = "";
|
|
5099
5097
|
return n > 0 && (r = u.substr(-1 * Math.floor(n / 2))), (u.substr(0, Math.ceil(n / 2)) + f + r).substr(0, n + e);
|
|
5100
5098
|
}
|
|
5101
|
-
function
|
|
5102
|
-
return
|
|
5099
|
+
function e3(u, D, f) {
|
|
5100
|
+
return Qe(u, D, f);
|
|
5103
5101
|
}
|
|
5104
|
-
var
|
|
5102
|
+
var t3 = (
|
|
5105
5103
|
/** @class */
|
|
5106
5104
|
function() {
|
|
5107
5105
|
function u(D) {
|
|
5108
5106
|
D === void 0 && (D = {}), this.newWindow = !1, this.truncate = {}, this.className = "", this.newWindow = D.newWindow || !1, this.truncate = D.truncate || {}, this.className = D.className || "";
|
|
5109
5107
|
}
|
|
5110
5108
|
return u.prototype.build = function(D) {
|
|
5111
|
-
return new
|
|
5109
|
+
return new j1({
|
|
5112
5110
|
tagName: "a",
|
|
5113
5111
|
attrs: this.createAttrs(D),
|
|
5114
5112
|
innerHtml: this.processAnchorText(D.getAnchorText())
|
|
@@ -5134,7 +5132,7 @@ var r3 = (
|
|
|
5134
5132
|
if (!f.length)
|
|
5135
5133
|
return D;
|
|
5136
5134
|
var e = f.length, t = f.location;
|
|
5137
|
-
return t === "smart" ?
|
|
5135
|
+
return t === "smart" ? u3(D, e) : t === "middle" ? f3(D, e) : e3(D, e);
|
|
5138
5136
|
}, u;
|
|
5139
5137
|
}()
|
|
5140
5138
|
), CD = (
|
|
@@ -5156,7 +5154,7 @@ var r3 = (
|
|
|
5156
5154
|
}, u;
|
|
5157
5155
|
}()
|
|
5158
5156
|
);
|
|
5159
|
-
function
|
|
5157
|
+
function n3(u) {
|
|
5160
5158
|
return u >= 0 && u <= 31 || u == 127;
|
|
5161
5159
|
}
|
|
5162
5160
|
function tD(u) {
|
|
@@ -5165,7 +5163,7 @@ function tD(u) {
|
|
|
5165
5163
|
function Eu(u) {
|
|
5166
5164
|
return u >= 48 && u <= 57;
|
|
5167
5165
|
}
|
|
5168
|
-
function
|
|
5166
|
+
function lf(u) {
|
|
5169
5167
|
return u == 34 || u == 39;
|
|
5170
5168
|
}
|
|
5171
5169
|
function Gu(u) {
|
|
@@ -5174,67 +5172,67 @@ function Gu(u) {
|
|
|
5174
5172
|
function Xu(u) {
|
|
5175
5173
|
return u < 4800 ? u < 2949 ? u < 2451 ? u < 1425 ? u < 768 ? u < 192 ? u < 169 ? u < 65 ? u >= 48 && u <= 57 : u >= 65 && u <= 90 || u >= 97 && u <= 122 : u < 181 ? u >= 169 && u <= 170 || u == 174 : u == 181 || u == 186 : u < 710 ? u < 216 ? u >= 192 && u <= 214 : u >= 216 && u <= 246 || u >= 248 && u <= 705 : u < 748 ? u >= 710 && u <= 721 || u >= 736 && u <= 740 : u == 748 || u == 750 : u < 910 ? u < 895 ? u < 886 ? u >= 768 && u <= 884 : u >= 886 && u <= 887 || u >= 890 && u <= 893 : u < 904 ? u == 895 || u == 902 : u >= 904 && u <= 906 || u == 908 : u < 1155 ? u < 931 ? u >= 910 && u <= 929 : u >= 931 && u <= 1013 || u >= 1015 && u <= 1153 : u < 1369 ? u >= 1155 && u <= 1327 || u >= 1329 && u <= 1366 : u == 1369 || u >= 1377 && u <= 1415 : u < 1808 ? u < 1552 ? u < 1476 ? u < 1471 ? u >= 1425 && u <= 1469 : u == 1471 || u >= 1473 && u <= 1474 : u < 1488 ? u >= 1476 && u <= 1477 || u == 1479 : u >= 1488 && u <= 1514 || u >= 1520 && u <= 1522 : u < 1749 ? u < 1568 ? u >= 1552 && u <= 1562 : u >= 1568 && u <= 1641 || u >= 1646 && u <= 1747 : u < 1770 ? u >= 1749 && u <= 1756 || u >= 1759 && u <= 1768 : u >= 1770 && u <= 1788 || u == 1791 : u < 2230 ? u < 2042 ? u < 1869 ? u >= 1808 && u <= 1866 : u >= 1869 && u <= 1969 || u >= 1984 && u <= 2037 : u < 2112 ? u == 2042 || u >= 2048 && u <= 2093 : u >= 2112 && u <= 2139 || u >= 2208 && u <= 2228 : u < 2406 ? u < 2260 ? u >= 2230 && u <= 2237 : u >= 2260 && u <= 2273 || u >= 2275 && u <= 2403 : u < 2437 ? u >= 2406 && u <= 2415 || u >= 2417 && u <= 2435 : u >= 2437 && u <= 2444 || u >= 2447 && u <= 2448 : u < 2693 ? u < 2579 ? u < 2519 ? u < 2486 ? u < 2474 ? u >= 2451 && u <= 2472 : u >= 2474 && u <= 2480 || u == 2482 : u < 2503 ? u >= 2486 && u <= 2489 || u >= 2492 && u <= 2500 : u >= 2503 && u <= 2504 || u >= 2507 && u <= 2510 : u < 2534 ? u < 2524 ? u == 2519 : u >= 2524 && u <= 2525 || u >= 2527 && u <= 2531 : u < 2565 ? u >= 2534 && u <= 2545 || u >= 2561 && u <= 2563 : u >= 2565 && u <= 2570 || u >= 2575 && u <= 2576 : u < 2631 ? u < 2613 ? u < 2602 ? u >= 2579 && u <= 2600 : u >= 2602 && u <= 2608 || u >= 2610 && u <= 2611 : u < 2620 ? u >= 2613 && u <= 2614 || u >= 2616 && u <= 2617 : u == 2620 || u >= 2622 && u <= 2626 : u < 2649 ? u < 2635 ? u >= 2631 && u <= 2632 : u >= 2635 && u <= 2637 || u == 2641 : u < 2662 ? u >= 2649 && u <= 2652 || u == 2654 : u >= 2662 && u <= 2677 || u >= 2689 && u <= 2691 : u < 2821 ? u < 2759 ? u < 2730 ? u < 2703 ? u >= 2693 && u <= 2701 : u >= 2703 && u <= 2705 || u >= 2707 && u <= 2728 : u < 2741 ? u >= 2730 && u <= 2736 || u >= 2738 && u <= 2739 : u >= 2741 && u <= 2745 || u >= 2748 && u <= 2757 : u < 2784 ? u < 2763 ? u >= 2759 && u <= 2761 : u >= 2763 && u <= 2765 || u == 2768 : u < 2809 ? u >= 2784 && u <= 2787 || u >= 2790 && u <= 2799 : u == 2809 || u >= 2817 && u <= 2819 : u < 2887 ? u < 2858 ? u < 2831 ? u >= 2821 && u <= 2828 : u >= 2831 && u <= 2832 || u >= 2835 && u <= 2856 : u < 2869 ? u >= 2858 && u <= 2864 || u >= 2866 && u <= 2867 : u >= 2869 && u <= 2873 || u >= 2876 && u <= 2884 : u < 2911 ? u < 2902 ? u >= 2887 && u <= 2888 || u >= 2891 && u <= 2893 : u >= 2902 && u <= 2903 || u >= 2908 && u <= 2909 : u < 2929 ? u >= 2911 && u <= 2915 || u >= 2918 && u <= 2927 : u == 2929 || u >= 2946 && u <= 2947 : u < 3517 ? u < 3205 ? u < 3046 ? u < 2984 ? u < 2969 ? u < 2958 ? u >= 2949 && u <= 2954 : u >= 2958 && u <= 2960 || u >= 2962 && u <= 2965 : u < 2974 ? u >= 2969 && u <= 2970 || u == 2972 : u >= 2974 && u <= 2975 || u >= 2979 && u <= 2980 : u < 3014 ? u < 2990 ? u >= 2984 && u <= 2986 : u >= 2990 && u <= 3001 || u >= 3006 && u <= 3010 : u < 3024 ? u >= 3014 && u <= 3016 || u >= 3018 && u <= 3021 : u == 3024 || u == 3031 : u < 3142 ? u < 3086 ? u < 3072 ? u >= 3046 && u <= 3055 : u >= 3072 && u <= 3075 || u >= 3077 && u <= 3084 : u < 3114 ? u >= 3086 && u <= 3088 || u >= 3090 && u <= 3112 : u >= 3114 && u <= 3129 || u >= 3133 && u <= 3140 : u < 3160 ? u < 3146 ? u >= 3142 && u <= 3144 : u >= 3146 && u <= 3149 || u >= 3157 && u <= 3158 : u < 3174 ? u >= 3160 && u <= 3162 || u >= 3168 && u <= 3171 : u >= 3174 && u <= 3183 || u >= 3200 && u <= 3203 : u < 3333 ? u < 3274 ? u < 3242 ? u < 3214 ? u >= 3205 && u <= 3212 : u >= 3214 && u <= 3216 || u >= 3218 && u <= 3240 : u < 3260 ? u >= 3242 && u <= 3251 || u >= 3253 && u <= 3257 : u >= 3260 && u <= 3268 || u >= 3270 && u <= 3272 : u < 3296 ? u < 3285 ? u >= 3274 && u <= 3277 : u >= 3285 && u <= 3286 || u == 3294 : u < 3313 ? u >= 3296 && u <= 3299 || u >= 3302 && u <= 3311 : u >= 3313 && u <= 3314 || u >= 3329 && u <= 3331 : u < 3423 ? u < 3389 ? u < 3342 ? u >= 3333 && u <= 3340 : u >= 3342 && u <= 3344 || u >= 3346 && u <= 3386 : u < 3402 ? u >= 3389 && u <= 3396 || u >= 3398 && u <= 3400 : u >= 3402 && u <= 3406 || u >= 3412 && u <= 3415 : u < 3458 ? u < 3430 ? u >= 3423 && u <= 3427 : u >= 3430 && u <= 3439 || u >= 3450 && u <= 3455 : u < 3482 ? u >= 3458 && u <= 3459 || u >= 3461 && u <= 3478 : u >= 3482 && u <= 3505 || u >= 3507 && u <= 3515 : u < 3804 ? u < 3722 ? u < 3570 ? u < 3535 ? u < 3520 ? u == 3517 : u >= 3520 && u <= 3526 || u == 3530 : u < 3544 ? u >= 3535 && u <= 3540 || u == 3542 : u >= 3544 && u <= 3551 || u >= 3558 && u <= 3567 : u < 3664 ? u < 3585 ? u >= 3570 && u <= 3571 : u >= 3585 && u <= 3642 || u >= 3648 && u <= 3662 : u < 3716 ? u >= 3664 && u <= 3673 || u >= 3713 && u <= 3714 : u == 3716 || u >= 3719 && u <= 3720 : u < 3754 ? u < 3737 ? u < 3725 ? u == 3722 : u == 3725 || u >= 3732 && u <= 3735 : u < 3749 ? u >= 3737 && u <= 3743 || u >= 3745 && u <= 3747 : u == 3749 || u == 3751 : u < 3776 ? u < 3757 ? u >= 3754 && u <= 3755 : u >= 3757 && u <= 3769 || u >= 3771 && u <= 3773 : u < 3784 ? u >= 3776 && u <= 3780 || u == 3782 : u >= 3784 && u <= 3789 || u >= 3792 && u <= 3801 : u < 4176 ? u < 3902 ? u < 3872 ? u < 3840 ? u >= 3804 && u <= 3807 : u == 3840 || u >= 3864 && u <= 3865 : u < 3895 ? u >= 3872 && u <= 3881 || u == 3893 : u == 3895 || u == 3897 : u < 3974 ? u < 3913 ? u >= 3902 && u <= 3911 : u >= 3913 && u <= 3948 || u >= 3953 && u <= 3972 : u < 4038 ? u >= 3974 && u <= 3991 || u >= 3993 && u <= 4028 : u == 4038 || u >= 4096 && u <= 4169 : u < 4688 ? u < 4301 ? u < 4256 ? u >= 4176 && u <= 4253 : u >= 4256 && u <= 4293 || u == 4295 : u < 4348 ? u == 4301 || u >= 4304 && u <= 4346 : u >= 4348 && u <= 4680 || u >= 4682 && u <= 4685 : u < 4746 ? u < 4698 ? u >= 4688 && u <= 4694 || u == 4696 : u >= 4698 && u <= 4701 || u >= 4704 && u <= 4744 : u < 4786 ? u >= 4746 && u <= 4749 || u >= 4752 && u <= 4784 : u >= 4786 && u <= 4789 || u >= 4792 && u <= 4798 : u < 11035 ? u < 7416 ? u < 6176 ? u < 5873 ? u < 4992 ? u < 4824 ? u < 4802 ? u == 4800 : u >= 4802 && u <= 4805 || u >= 4808 && u <= 4822 : u < 4888 ? u >= 4824 && u <= 4880 || u >= 4882 && u <= 4885 : u >= 4888 && u <= 4954 || u >= 4957 && u <= 4959 : u < 5121 ? u < 5024 ? u >= 4992 && u <= 5007 : u >= 5024 && u <= 5109 || u >= 5112 && u <= 5117 : u < 5761 ? u >= 5121 && u <= 5740 || u >= 5743 && u <= 5759 : u >= 5761 && u <= 5786 || u >= 5792 && u <= 5866 : u < 6002 ? u < 5920 ? u < 5888 ? u >= 5873 && u <= 5880 : u >= 5888 && u <= 5900 || u >= 5902 && u <= 5908 : u < 5984 ? u >= 5920 && u <= 5940 || u >= 5952 && u <= 5971 : u >= 5984 && u <= 5996 || u >= 5998 && u <= 6e3 : u < 6108 ? u < 6016 ? u >= 6002 && u <= 6003 : u >= 6016 && u <= 6099 || u == 6103 : u < 6155 ? u >= 6108 && u <= 6109 || u >= 6112 && u <= 6121 : u >= 6155 && u <= 6157 || u >= 6160 && u <= 6169 : u < 6783 ? u < 6512 ? u < 6400 ? u < 6272 ? u >= 6176 && u <= 6263 : u >= 6272 && u <= 6314 || u >= 6320 && u <= 6389 : u < 6448 ? u >= 6400 && u <= 6430 || u >= 6432 && u <= 6443 : u >= 6448 && u <= 6459 || u >= 6470 && u <= 6509 : u < 6608 ? u < 6528 ? u >= 6512 && u <= 6516 : u >= 6528 && u <= 6571 || u >= 6576 && u <= 6601 : u < 6688 ? u >= 6608 && u <= 6617 || u >= 6656 && u <= 6683 : u >= 6688 && u <= 6750 || u >= 6752 && u <= 6780 : u < 7040 ? u < 6832 ? u < 6800 ? u >= 6783 && u <= 6793 : u >= 6800 && u <= 6809 || u == 6823 : u < 6992 ? u >= 6832 && u <= 6846 || u >= 6912 && u <= 6987 : u >= 6992 && u <= 7001 || u >= 7019 && u <= 7027 : u < 7245 ? u < 7168 ? u >= 7040 && u <= 7155 : u >= 7168 && u <= 7223 || u >= 7232 && u <= 7241 : u < 7376 ? u >= 7245 && u <= 7293 || u >= 7296 && u <= 7304 : u >= 7376 && u <= 7378 || u >= 7380 && u <= 7414 : u < 8450 ? u < 8130 ? u < 8025 ? u < 7960 ? u < 7424 ? u >= 7416 && u <= 7417 : u >= 7424 && u <= 7669 || u >= 7675 && u <= 7957 : u < 8008 ? u >= 7960 && u <= 7965 || u >= 7968 && u <= 8005 : u >= 8008 && u <= 8013 || u >= 8016 && u <= 8023 : u < 8031 ? u < 8027 ? u == 8025 : u == 8027 || u == 8029 : u < 8118 ? u >= 8031 && u <= 8061 || u >= 8064 && u <= 8116 : u >= 8118 && u <= 8124 || u == 8126 : u < 8205 ? u < 8150 ? u < 8134 ? u >= 8130 && u <= 8132 : u >= 8134 && u <= 8140 || u >= 8144 && u <= 8147 : u < 8178 ? u >= 8150 && u <= 8155 || u >= 8160 && u <= 8172 : u >= 8178 && u <= 8180 || u >= 8182 && u <= 8188 : u < 8305 ? u < 8252 ? u == 8205 : u == 8252 || u == 8265 : u < 8336 ? u == 8305 || u == 8319 : u >= 8336 && u <= 8348 || u >= 8400 && u <= 8432 : u < 8579 ? u < 8486 ? u < 8469 ? u < 8455 ? u == 8450 : u == 8455 || u >= 8458 && u <= 8467 : u < 8482 ? u == 8469 || u >= 8473 && u <= 8477 : u == 8482 || u == 8484 : u < 8495 ? u < 8488 ? u == 8486 : u == 8488 || u >= 8490 && u <= 8493 : u < 8517 ? u >= 8495 && u <= 8505 || u >= 8508 && u <= 8511 : u >= 8517 && u <= 8521 || u == 8526 : u < 9410 ? u < 9e3 ? u < 8592 ? u >= 8579 && u <= 8580 : u >= 8592 && u <= 8703 || u >= 8986 && u <= 8987 : u < 9193 ? u == 9e3 || u == 9167 : u >= 9193 && u <= 9203 || u >= 9208 && u <= 9210 : u < 9723 ? u < 9654 ? u == 9410 || u >= 9642 && u <= 9643 : u == 9654 || u == 9664 : u < 10548 ? u >= 9723 && u <= 9726 || u >= 9728 && u <= 10175 : u >= 10548 && u <= 10549 || u >= 11013 && u <= 11015 : u < 43259 ? u < 12445 ? u < 11688 ? u < 11520 ? u < 11264 ? u < 11088 ? u >= 11035 && u <= 11036 : u == 11088 || u == 11093 : u < 11360 ? u >= 11264 && u <= 11310 || u >= 11312 && u <= 11358 : u >= 11360 && u <= 11492 || u >= 11499 && u <= 11507 : u < 11568 ? u < 11559 ? u >= 11520 && u <= 11557 : u == 11559 || u == 11565 : u < 11647 ? u >= 11568 && u <= 11623 || u == 11631 : u >= 11647 && u <= 11670 || u >= 11680 && u <= 11686 : u < 11744 ? u < 11712 ? u < 11696 ? u >= 11688 && u <= 11694 : u >= 11696 && u <= 11702 || u >= 11704 && u <= 11710 : u < 11728 ? u >= 11712 && u <= 11718 || u >= 11720 && u <= 11726 : u >= 11728 && u <= 11734 || u >= 11736 && u <= 11742 : u < 12330 ? u < 11823 ? u >= 11744 && u <= 11775 : u == 11823 || u >= 12293 && u <= 12294 : u < 12353 ? u >= 12330 && u <= 12341 || u >= 12347 && u <= 12349 : u >= 12353 && u <= 12438 || u >= 12441 && u <= 12442 : u < 42512 ? u < 12951 ? u < 12549 ? u < 12449 ? u >= 12445 && u <= 12447 : u >= 12449 && u <= 12538 || u >= 12540 && u <= 12543 : u < 12704 ? u >= 12549 && u <= 12589 || u >= 12593 && u <= 12686 : u >= 12704 && u <= 12730 || u >= 12784 && u <= 12799 : u < 19968 ? u < 12953 ? u == 12951 : u == 12953 || u >= 13312 && u <= 19893 : u < 42192 ? u >= 19968 && u <= 40917 || u >= 40960 && u <= 42124 : u >= 42192 && u <= 42237 || u >= 42240 && u <= 42508 : u < 42891 ? u < 42623 ? u < 42560 ? u >= 42512 && u <= 42539 : u >= 42560 && u <= 42610 || u >= 42612 && u <= 42621 : u < 42775 ? u >= 42623 && u <= 42725 || u >= 42736 && u <= 42737 : u >= 42775 && u <= 42783 || u >= 42786 && u <= 42888 : u < 43072 ? u < 42928 ? u >= 42891 && u <= 42926 : u >= 42928 && u <= 42935 || u >= 42999 && u <= 43047 : u < 43216 ? u >= 43072 && u <= 43123 || u >= 43136 && u <= 43205 : u >= 43216 && u <= 43225 || u >= 43232 && u <= 43255 : u < 55243 ? u < 43744 ? u < 43488 ? u < 43312 ? u < 43261 ? u == 43259 : u == 43261 || u >= 43264 && u <= 43309 : u < 43392 ? u >= 43312 && u <= 43347 || u >= 43360 && u <= 43388 : u >= 43392 && u <= 43456 || u >= 43471 && u <= 43481 : u < 43600 ? u < 43520 ? u >= 43488 && u <= 43518 : u >= 43520 && u <= 43574 || u >= 43584 && u <= 43597 : u < 43642 ? u >= 43600 && u <= 43609 || u >= 43616 && u <= 43638 : u >= 43642 && u <= 43714 || u >= 43739 && u <= 43741 : u < 43824 ? u < 43785 ? u < 43762 ? u >= 43744 && u <= 43759 : u >= 43762 && u <= 43766 || u >= 43777 && u <= 43782 : u < 43808 ? u >= 43785 && u <= 43790 || u >= 43793 && u <= 43798 : u >= 43808 && u <= 43814 || u >= 43816 && u <= 43822 : u < 44012 ? u < 43868 ? u >= 43824 && u <= 43866 : u >= 43868 && u <= 43877 || u >= 43888 && u <= 44010 : u < 44032 ? u >= 44012 && u <= 44013 || u >= 44016 && u <= 44025 : u >= 44032 && u <= 55203 || u >= 55216 && u <= 55238 : u < 64848 ? u < 64298 ? u < 64112 ? u < 55296 ? u >= 55243 && u <= 55291 : u >= 55296 && u <= 57343 || u >= 63744 && u <= 64109 : u < 64275 ? u >= 64112 && u <= 64217 || u >= 64256 && u <= 64262 : u >= 64275 && u <= 64279 || u >= 64285 && u <= 64296 : u < 64320 ? u < 64312 ? u >= 64298 && u <= 64310 : u >= 64312 && u <= 64316 || u == 64318 : u < 64326 ? u >= 64320 && u <= 64321 || u >= 64323 && u <= 64324 : u >= 64326 && u <= 64433 || u >= 64467 && u <= 64829 : u < 65296 ? u < 65024 ? u < 64914 ? u >= 64848 && u <= 64911 : u >= 64914 && u <= 64967 || u >= 65008 && u <= 65019 : u < 65136 ? u >= 65024 && u <= 65039 || u >= 65056 && u <= 65071 : u >= 65136 && u <= 65140 || u >= 65142 && u <= 65276 : u < 65474 ? u < 65345 ? u >= 65296 && u <= 65305 || u >= 65313 && u <= 65338 : u >= 65345 && u <= 65370 || u >= 65382 && u <= 65470 : u < 65490 ? u >= 65474 && u <= 65479 || u >= 65482 && u <= 65487 : u >= 65490 && u <= 65495 || u >= 65498 && u <= 65500;
|
|
5176
5174
|
}
|
|
5177
|
-
function
|
|
5175
|
+
function r3(u) {
|
|
5178
5176
|
return u < 47 ? u < 42 ? u == 33 || u >= 35 && u <= 39 : u >= 42 && u <= 43 || u == 45 : u < 63 ? u == 47 || u == 61 : u < 94 ? u == 63 : u >= 94 && u <= 96 || u >= 123 && u <= 126;
|
|
5179
5177
|
}
|
|
5180
|
-
function
|
|
5178
|
+
function a3(u) {
|
|
5181
5179
|
return u < 91 ? u < 47 ? u >= 35 && u <= 43 || u == 45 : u < 61 ? u == 47 : u == 61 || u == 64 : u < 95 ? u == 91 || u == 93 : u < 123 ? u == 95 : u >= 123 && u <= 126 || u == 10003;
|
|
5182
5180
|
}
|
|
5183
|
-
function
|
|
5181
|
+
function T1(u) {
|
|
5184
5182
|
return u < 58 ? u < 44 ? u == 33 : u == 44 || u == 46 : u < 63 ? u >= 58 && u <= 59 : u == 63 || u == 94;
|
|
5185
5183
|
}
|
|
5186
|
-
function
|
|
5184
|
+
function s3(u) {
|
|
5187
5185
|
return u < 91 ? u == 40 : u == 91 || u == 123;
|
|
5188
5186
|
}
|
|
5189
|
-
function
|
|
5187
|
+
function Uf(u) {
|
|
5190
5188
|
return u < 93 ? u == 41 : u == 93 || u == 125;
|
|
5191
5189
|
}
|
|
5192
|
-
var o3 = /^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|loans|locus|lotte|lotto|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|scb|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/, O1 = /https?:\/\//i, d3 = new RegExp("^" + O1.source, "i"), C3 = /^(javascript|vbscript):/i, c3 = /^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/, l3 = /^(?:\/\/)?([^/#?:]+)/, iD = tD;
|
|
5193
|
-
function
|
|
5190
|
+
var F3 = /^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|loans|locus|lotte|lotto|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|scb|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/, N1 = /https?:\/\//i, i3 = new RegExp("^" + N1.source, "i"), o3 = /^(javascript|vbscript):/i, d3 = /^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/, C3 = /^(?:\/\/)?([^/#?:]+)/, iD = tD;
|
|
5191
|
+
function O1(u) {
|
|
5194
5192
|
return tD(u) || Eu(u) || u === 43 || // '+'
|
|
5195
5193
|
u === 45 || // '-'
|
|
5196
5194
|
u === 46;
|
|
5197
5195
|
}
|
|
5198
5196
|
var Yu = Xu;
|
|
5199
|
-
function
|
|
5197
|
+
function Ef(u) {
|
|
5200
5198
|
return u === 95 || Yu(u);
|
|
5201
5199
|
}
|
|
5202
|
-
function
|
|
5203
|
-
return Xu(u) ||
|
|
5200
|
+
function R1(u) {
|
|
5201
|
+
return Xu(u) || a3(u) || T1(u);
|
|
5204
5202
|
}
|
|
5205
|
-
function
|
|
5203
|
+
function hf(u) {
|
|
5206
5204
|
return u === 47 || // '/'
|
|
5207
5205
|
u === 63 || // '?'
|
|
5208
5206
|
u === 35;
|
|
5209
5207
|
}
|
|
5210
|
-
function
|
|
5211
|
-
return
|
|
5208
|
+
function P1(u) {
|
|
5209
|
+
return F3.test(u.toLowerCase());
|
|
5212
5210
|
}
|
|
5213
|
-
function
|
|
5214
|
-
if (
|
|
5211
|
+
function c3(u) {
|
|
5212
|
+
if (o3.test(u))
|
|
5215
5213
|
return !1;
|
|
5216
|
-
var D = u.match(
|
|
5214
|
+
var D = u.match(d3);
|
|
5217
5215
|
if (!D)
|
|
5218
5216
|
return !1;
|
|
5219
5217
|
var f = !!D[1], e = D[2];
|
|
5220
5218
|
return f ? !0 : !(e.indexOf(".") === -1 || !/[A-Za-z]/.test(e));
|
|
5221
5219
|
}
|
|
5222
|
-
function
|
|
5223
|
-
var D = u.match(
|
|
5220
|
+
function l3(u) {
|
|
5221
|
+
var D = u.match(C3);
|
|
5224
5222
|
if (!D)
|
|
5225
5223
|
return !1;
|
|
5226
5224
|
var f = D[0], e = f.split(".");
|
|
5227
5225
|
if (e.length < 2)
|
|
5228
5226
|
return !1;
|
|
5229
5227
|
var t = e[e.length - 1];
|
|
5230
|
-
return !!
|
|
5228
|
+
return !!P1(t);
|
|
5231
5229
|
}
|
|
5232
|
-
var
|
|
5233
|
-
function
|
|
5234
|
-
var D = u.split(
|
|
5235
|
-
return
|
|
5230
|
+
var E3 = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, h3 = /[:/?#]/;
|
|
5231
|
+
function b3(u) {
|
|
5232
|
+
var D = u.split(h3, 1)[0];
|
|
5233
|
+
return E3.test(D);
|
|
5236
5234
|
}
|
|
5237
|
-
var
|
|
5235
|
+
var p3 = /^(https?:\/\/)?(?:www\.)?/i, B3 = /^\/\//, g3 = (
|
|
5238
5236
|
/** @class */
|
|
5239
5237
|
function(u) {
|
|
5240
5238
|
dD(D, u);
|
|
@@ -5257,23 +5255,23 @@ var g3 = /^(https?:\/\/)?(?:www\.)?/i, m3 = /^\/\//, _3 = (
|
|
|
5257
5255
|
return f.replace(/&/g, "&");
|
|
5258
5256
|
}, D.prototype.getAnchorText = function() {
|
|
5259
5257
|
var f = this.getMatchedText();
|
|
5260
|
-
return this.protocolRelativeMatch && (f =
|
|
5258
|
+
return this.protocolRelativeMatch && (f = y3(f)), this.stripPrefix.scheme && (f = m3(f)), this.stripPrefix.www && (f = _3(f)), this.stripTrailingSlash && (f = v3(f)), this.decodePercentEncoding && (f = w3(f)), f;
|
|
5261
5259
|
}, D;
|
|
5262
5260
|
}(CD)
|
|
5263
5261
|
);
|
|
5264
|
-
function
|
|
5265
|
-
return u.replace(
|
|
5262
|
+
function m3(u) {
|
|
5263
|
+
return u.replace(i3, "");
|
|
5266
5264
|
}
|
|
5267
|
-
function
|
|
5268
|
-
return u.includes("www.") ? u.replace(
|
|
5265
|
+
function _3(u) {
|
|
5266
|
+
return u.includes("www.") ? u.replace(p3, "$1") : u;
|
|
5269
5267
|
}
|
|
5270
|
-
function
|
|
5271
|
-
return u.replace(
|
|
5268
|
+
function y3(u) {
|
|
5269
|
+
return u.replace(B3, "");
|
|
5272
5270
|
}
|
|
5273
|
-
function
|
|
5271
|
+
function v3(u) {
|
|
5274
5272
|
return u.charAt(u.length - 1) === "/" && (u = u.slice(0, -1)), u;
|
|
5275
5273
|
}
|
|
5276
|
-
function
|
|
5274
|
+
function w3(u) {
|
|
5277
5275
|
var D = u.replace(/%(?:22|26|27|3C|3E)/gi, function(f) {
|
|
5278
5276
|
return f === "%22" ? """ : f === "%26" ? "&" : f === "%27" ? "'" : f === "%3C" || f === "%3c" ? "<" : ">";
|
|
5279
5277
|
});
|
|
@@ -5284,15 +5282,15 @@ function x3(u) {
|
|
|
5284
5282
|
}
|
|
5285
5283
|
return D;
|
|
5286
5284
|
}
|
|
5287
|
-
var
|
|
5288
|
-
function
|
|
5289
|
-
return
|
|
5285
|
+
var A3 = /^mailto:/i, I1 = Xu;
|
|
5286
|
+
function bf(u) {
|
|
5287
|
+
return I1(u) || r3(u);
|
|
5290
5288
|
}
|
|
5291
|
-
function
|
|
5289
|
+
function x3(u) {
|
|
5292
5290
|
var D = u.split(".").pop();
|
|
5293
|
-
return
|
|
5291
|
+
return P1(D);
|
|
5294
5292
|
}
|
|
5295
|
-
var
|
|
5293
|
+
var k3 = (
|
|
5296
5294
|
/** @class */
|
|
5297
5295
|
function(u) {
|
|
5298
5296
|
dD(D, u);
|
|
@@ -5311,19 +5309,19 @@ var j3 = (
|
|
|
5311
5309
|
}, D;
|
|
5312
5310
|
}(CD)
|
|
5313
5311
|
);
|
|
5314
|
-
function
|
|
5312
|
+
function L1(u) {
|
|
5315
5313
|
return u === 95 || Xu(u);
|
|
5316
5314
|
}
|
|
5317
|
-
function
|
|
5315
|
+
function S3(u) {
|
|
5318
5316
|
return u.length <= 140;
|
|
5319
5317
|
}
|
|
5320
|
-
var
|
|
5318
|
+
var j3 = [
|
|
5321
5319
|
"twitter",
|
|
5322
5320
|
"facebook",
|
|
5323
5321
|
"instagram",
|
|
5324
5322
|
"tiktok",
|
|
5325
5323
|
"youtube"
|
|
5326
|
-
],
|
|
5324
|
+
], T3 = (
|
|
5327
5325
|
/** @class */
|
|
5328
5326
|
function(u) {
|
|
5329
5327
|
dD(D, u);
|
|
@@ -5360,7 +5358,7 @@ var N3 = [
|
|
|
5360
5358
|
return e && f.push(e), f;
|
|
5361
5359
|
}, D;
|
|
5362
5360
|
}(CD)
|
|
5363
|
-
),
|
|
5361
|
+
), N3 = {
|
|
5364
5362
|
twitter: /^@\w{1,15}$/,
|
|
5365
5363
|
instagram: /^@[_\w]{1,30}$/,
|
|
5366
5364
|
soundcloud: /^@[-a-z0-9_]{3,25}$/,
|
|
@@ -5372,23 +5370,23 @@ var N3 = [
|
|
|
5372
5370
|
// https://support.google.com/youtube/answer/11585688?hl=en&co=GENIE.Platform%3DAndroid#tns
|
|
5373
5371
|
youtube: /^@[-.·\w]{3,30}$/
|
|
5374
5372
|
};
|
|
5375
|
-
function
|
|
5373
|
+
function $1(u) {
|
|
5376
5374
|
return u === 45 || // '-'
|
|
5377
5375
|
u === 46 || // '.'
|
|
5378
5376
|
u === 95 || // '_'
|
|
5379
5377
|
tD(u) || Eu(u);
|
|
5380
5378
|
}
|
|
5381
|
-
function
|
|
5382
|
-
var f =
|
|
5379
|
+
function O3(u, D) {
|
|
5380
|
+
var f = N3[D];
|
|
5383
5381
|
return f.test(u);
|
|
5384
5382
|
}
|
|
5385
|
-
var
|
|
5383
|
+
var R3 = [
|
|
5386
5384
|
"twitter",
|
|
5387
5385
|
"instagram",
|
|
5388
5386
|
"soundcloud",
|
|
5389
5387
|
"tiktok",
|
|
5390
5388
|
"youtube"
|
|
5391
|
-
],
|
|
5389
|
+
], P3 = (
|
|
5392
5390
|
/** @class */
|
|
5393
5391
|
function(u) {
|
|
5394
5392
|
dD(D, u);
|
|
@@ -5424,21 +5422,21 @@ var I3 = [
|
|
|
5424
5422
|
return e && f.push(e), f;
|
|
5425
5423
|
}, D;
|
|
5426
5424
|
}(CD)
|
|
5427
|
-
),
|
|
5428
|
-
function
|
|
5425
|
+
), I3 = /[-. ()]/, L3 = /(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/, $3 = /(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/, M3 = new RegExp("^".concat(L3.source, "|").concat($3.source, "$"));
|
|
5426
|
+
function M1(u) {
|
|
5429
5427
|
return u === 45 || // '-'
|
|
5430
5428
|
u === 46 || // '.'
|
|
5431
5429
|
u === 32;
|
|
5432
5430
|
}
|
|
5433
|
-
function
|
|
5431
|
+
function pf(u) {
|
|
5434
5432
|
return u === 44 || // ','
|
|
5435
5433
|
u === 59;
|
|
5436
5434
|
}
|
|
5437
|
-
function
|
|
5438
|
-
var D = u.charAt(0) === "+" ||
|
|
5439
|
-
return D &&
|
|
5435
|
+
function q3(u) {
|
|
5436
|
+
var D = u.charAt(0) === "+" || I3.test(u);
|
|
5437
|
+
return D && M3.test(u);
|
|
5440
5438
|
}
|
|
5441
|
-
var
|
|
5439
|
+
var z3 = (
|
|
5442
5440
|
/** @class */
|
|
5443
5441
|
function(u) {
|
|
5444
5442
|
dD(D, u);
|
|
@@ -5458,7 +5456,7 @@ var V3 = (
|
|
|
5458
5456
|
return this.matchedText;
|
|
5459
5457
|
}, D;
|
|
5460
5458
|
}(CD)
|
|
5461
|
-
),
|
|
5459
|
+
), U3 = (
|
|
5462
5460
|
/** @class */
|
|
5463
5461
|
function() {
|
|
5464
5462
|
function u(D, f) {
|
|
@@ -5471,18 +5469,18 @@ var V3 = (
|
|
|
5471
5469
|
enumerable: !1,
|
|
5472
5470
|
configurable: !0
|
|
5473
5471
|
}), u.prototype.addMachine = function(D) {
|
|
5474
|
-
this._stateMachines.push(D),
|
|
5472
|
+
this._stateMachines.push(D), Hf(D) && this.schemeUrlMachinesCount++;
|
|
5475
5473
|
}, u.prototype.removeMachine = function(D) {
|
|
5476
5474
|
this._stateMachines = this._stateMachines.filter(function(f) {
|
|
5477
5475
|
return f !== D;
|
|
5478
|
-
}),
|
|
5476
|
+
}), Hf(D) && this.schemeUrlMachinesCount--;
|
|
5479
5477
|
}, u.prototype.hasSchemeUrlMachine = function() {
|
|
5480
5478
|
return this.schemeUrlMachinesCount > 0;
|
|
5481
5479
|
}, u;
|
|
5482
5480
|
}()
|
|
5483
5481
|
);
|
|
5484
|
-
function
|
|
5485
|
-
for (var f = new
|
|
5482
|
+
function V3(u, D) {
|
|
5483
|
+
for (var f = new U3(u, D); f.charIdx < f.text.length; f.charIdx++) {
|
|
5486
5484
|
var e = u.charAt(f.charIdx), t = u.charCodeAt(f.charIdx);
|
|
5487
5485
|
if (f.stateMachines.length === 0)
|
|
5488
5486
|
kD(f, e, t);
|
|
@@ -5491,130 +5489,130 @@ function W3(u, D) {
|
|
|
5491
5489
|
var r = f.stateMachines[n];
|
|
5492
5490
|
switch (r.state) {
|
|
5493
5491
|
case 11:
|
|
5494
|
-
|
|
5492
|
+
G3(f, r, t);
|
|
5495
5493
|
break;
|
|
5496
5494
|
case 12:
|
|
5497
|
-
|
|
5495
|
+
X3(f, r, t);
|
|
5498
5496
|
break;
|
|
5499
5497
|
case 0:
|
|
5500
|
-
|
|
5498
|
+
H3(f, r, t);
|
|
5501
5499
|
break;
|
|
5502
5500
|
case 1:
|
|
5503
|
-
|
|
5501
|
+
W3(f, r, t);
|
|
5504
5502
|
break;
|
|
5505
5503
|
case 2:
|
|
5506
|
-
|
|
5504
|
+
Y3(f, r, t);
|
|
5507
5505
|
break;
|
|
5508
5506
|
case 3:
|
|
5509
|
-
|
|
5507
|
+
J3(f, r, t);
|
|
5510
5508
|
break;
|
|
5511
5509
|
case 4:
|
|
5512
|
-
|
|
5510
|
+
K3(f, r, e, t);
|
|
5513
5511
|
break;
|
|
5514
5512
|
case 5:
|
|
5515
|
-
|
|
5513
|
+
Z3(f, r, t);
|
|
5516
5514
|
break;
|
|
5517
5515
|
case 6:
|
|
5518
|
-
|
|
5516
|
+
Q3(f, r, e, t);
|
|
5519
5517
|
break;
|
|
5520
5518
|
case 7:
|
|
5521
|
-
|
|
5519
|
+
u2(f, r, e, t);
|
|
5522
5520
|
break;
|
|
5523
5521
|
case 13:
|
|
5524
|
-
|
|
5522
|
+
D2(f, r, t);
|
|
5525
5523
|
break;
|
|
5526
5524
|
case 14:
|
|
5527
|
-
|
|
5525
|
+
f2(f, r, t);
|
|
5528
5526
|
break;
|
|
5529
5527
|
case 8:
|
|
5530
|
-
|
|
5528
|
+
e2(f, r, t);
|
|
5531
5529
|
break;
|
|
5532
5530
|
case 9:
|
|
5533
|
-
|
|
5531
|
+
t2(f, r, t);
|
|
5534
5532
|
break;
|
|
5535
5533
|
case 10:
|
|
5536
|
-
|
|
5534
|
+
n2(f, r, t);
|
|
5537
5535
|
break;
|
|
5538
5536
|
case 15:
|
|
5539
|
-
|
|
5537
|
+
r2(f, r, e, t);
|
|
5540
5538
|
break;
|
|
5541
5539
|
case 16:
|
|
5542
|
-
|
|
5540
|
+
a2(f, r, e, t);
|
|
5543
5541
|
break;
|
|
5544
5542
|
case 17:
|
|
5545
|
-
|
|
5543
|
+
s2(f, r, e, t);
|
|
5546
5544
|
break;
|
|
5547
5545
|
case 18:
|
|
5548
|
-
|
|
5546
|
+
F2(f, r, e, t);
|
|
5549
5547
|
break;
|
|
5550
5548
|
case 19:
|
|
5551
|
-
|
|
5549
|
+
i2(f, r, e, t);
|
|
5552
5550
|
break;
|
|
5553
5551
|
case 20:
|
|
5554
|
-
|
|
5552
|
+
o2(f, r, t);
|
|
5555
5553
|
break;
|
|
5556
5554
|
case 21:
|
|
5557
|
-
|
|
5555
|
+
d2(f, r, t);
|
|
5558
5556
|
break;
|
|
5559
5557
|
case 22:
|
|
5560
5558
|
Zu(f, r, t);
|
|
5561
5559
|
break;
|
|
5562
5560
|
case 23:
|
|
5563
|
-
|
|
5561
|
+
C2(f, r, t);
|
|
5564
5562
|
break;
|
|
5565
5563
|
case 24:
|
|
5566
|
-
|
|
5564
|
+
c2(f, r, t);
|
|
5567
5565
|
break;
|
|
5568
5566
|
case 25:
|
|
5569
|
-
|
|
5567
|
+
l2(f, r, t);
|
|
5570
5568
|
break;
|
|
5571
5569
|
case 26:
|
|
5572
|
-
|
|
5570
|
+
E2(f, r, t);
|
|
5573
5571
|
break;
|
|
5574
5572
|
case 27:
|
|
5575
|
-
|
|
5573
|
+
h2(f, r, t);
|
|
5576
5574
|
break;
|
|
5577
5575
|
case 28:
|
|
5578
|
-
|
|
5576
|
+
b2(f, r, t);
|
|
5579
5577
|
break;
|
|
5580
5578
|
case 29:
|
|
5581
|
-
|
|
5579
|
+
p2(f, r, t);
|
|
5582
5580
|
break;
|
|
5583
5581
|
case 30:
|
|
5584
|
-
|
|
5582
|
+
B2(f, r, t);
|
|
5585
5583
|
break;
|
|
5586
5584
|
case 31:
|
|
5587
|
-
|
|
5585
|
+
g2(f, r, t);
|
|
5588
5586
|
break;
|
|
5589
5587
|
case 32:
|
|
5590
|
-
|
|
5588
|
+
_2(f, r, e, t);
|
|
5591
5589
|
break;
|
|
5592
5590
|
case 33:
|
|
5593
|
-
|
|
5591
|
+
y2(f, r, t);
|
|
5594
5592
|
break;
|
|
5595
5593
|
case 34:
|
|
5596
|
-
|
|
5594
|
+
v2(f, r, t);
|
|
5597
5595
|
break;
|
|
5598
5596
|
case 35:
|
|
5599
|
-
|
|
5597
|
+
w2(f, r, t);
|
|
5600
5598
|
break;
|
|
5601
5599
|
case 36:
|
|
5602
|
-
|
|
5600
|
+
A2(f, r, e, t);
|
|
5603
5601
|
break;
|
|
5604
5602
|
case 37:
|
|
5605
|
-
|
|
5603
|
+
m2(f, r, e, t);
|
|
5606
5604
|
break;
|
|
5607
5605
|
case 38:
|
|
5608
|
-
|
|
5606
|
+
x2(f, r, e, t);
|
|
5609
5607
|
break;
|
|
5610
5608
|
case 39:
|
|
5611
|
-
|
|
5609
|
+
k2(f, r, e, t);
|
|
5612
5610
|
break;
|
|
5613
5611
|
case 40:
|
|
5614
|
-
|
|
5612
|
+
S2(f, r, t);
|
|
5615
5613
|
break;
|
|
5616
5614
|
case 41:
|
|
5617
|
-
|
|
5615
|
+
j2(f, r, t);
|
|
5618
5616
|
break;
|
|
5619
5617
|
default:
|
|
5620
5618
|
Ku(r.state);
|
|
@@ -5639,71 +5637,71 @@ function W3(u, D) {
|
|
|
5639
5637
|
function kD(u, D, f) {
|
|
5640
5638
|
var e = u.charIdx;
|
|
5641
5639
|
if (f === 35)
|
|
5642
|
-
u.addMachine(
|
|
5640
|
+
u.addMachine(P2(
|
|
5643
5641
|
e,
|
|
5644
5642
|
28
|
|
5645
5643
|
/* State.HashtagHashChar */
|
|
5646
5644
|
));
|
|
5647
5645
|
else if (f === 64)
|
|
5648
|
-
u.addMachine(
|
|
5646
|
+
u.addMachine(I2(
|
|
5649
5647
|
e,
|
|
5650
5648
|
30
|
|
5651
5649
|
/* State.MentionAtChar */
|
|
5652
5650
|
));
|
|
5653
5651
|
else if (f === 47)
|
|
5654
|
-
u.addMachine(
|
|
5652
|
+
u.addMachine(ef(
|
|
5655
5653
|
e,
|
|
5656
5654
|
11
|
|
5657
5655
|
/* State.ProtocolRelativeSlash1 */
|
|
5658
5656
|
));
|
|
5659
5657
|
else if (f === 43)
|
|
5660
|
-
u.addMachine(
|
|
5658
|
+
u.addMachine(zD(
|
|
5661
5659
|
e,
|
|
5662
5660
|
37
|
|
5663
5661
|
/* State.PhoneNumberPlus */
|
|
5664
5662
|
));
|
|
5665
5663
|
else if (f === 40)
|
|
5666
|
-
u.addMachine(
|
|
5664
|
+
u.addMachine(zD(
|
|
5667
5665
|
e,
|
|
5668
5666
|
32
|
|
5669
5667
|
/* State.PhoneNumberOpenParen */
|
|
5670
5668
|
));
|
|
5671
5669
|
else {
|
|
5672
|
-
if (Eu(f) && (u.addMachine(
|
|
5670
|
+
if (Eu(f) && (u.addMachine(zD(
|
|
5673
5671
|
e,
|
|
5674
5672
|
38
|
|
5675
5673
|
/* State.PhoneNumberDigit */
|
|
5676
|
-
)), u.addMachine(
|
|
5674
|
+
)), u.addMachine(O2(
|
|
5677
5675
|
e,
|
|
5678
5676
|
13
|
|
5679
5677
|
/* State.IpV4Digit */
|
|
5680
|
-
))),
|
|
5678
|
+
))), I1(f)) {
|
|
5681
5679
|
var t = D.toLowerCase() === "m" ? 15 : 22;
|
|
5682
|
-
u.addMachine(
|
|
5680
|
+
u.addMachine(R2(e, t));
|
|
5683
5681
|
}
|
|
5684
5682
|
iD(f) && u.addMachine(SD(
|
|
5685
5683
|
e,
|
|
5686
5684
|
0
|
|
5687
5685
|
/* State.SchemeChar */
|
|
5688
|
-
)), Xu(f) && u.addMachine(
|
|
5686
|
+
)), Xu(f) && u.addMachine(ef(
|
|
5689
5687
|
e,
|
|
5690
5688
|
5
|
|
5691
5689
|
/* State.DomainLabelChar */
|
|
5692
5690
|
));
|
|
5693
5691
|
}
|
|
5694
5692
|
}
|
|
5695
|
-
function
|
|
5696
|
-
f === 58 ? D.state = 2 : f === 45 ? D.state = 1 :
|
|
5693
|
+
function H3(u, D, f) {
|
|
5694
|
+
f === 58 ? D.state = 2 : f === 45 ? D.state = 1 : O1(f) || u.removeMachine(D);
|
|
5697
5695
|
}
|
|
5698
|
-
function
|
|
5696
|
+
function W3(u, D, f) {
|
|
5699
5697
|
var e = u.charIdx;
|
|
5700
|
-
f === 45 || (f === 47 ? (u.removeMachine(D), u.addMachine(
|
|
5698
|
+
f === 45 || (f === 47 ? (u.removeMachine(D), u.addMachine(ef(
|
|
5701
5699
|
e,
|
|
5702
5700
|
11
|
|
5703
5701
|
/* State.ProtocolRelativeSlash1 */
|
|
5704
|
-
))) :
|
|
5702
|
+
))) : O1(f) ? D.state = 0 : u.removeMachine(D));
|
|
5705
5703
|
}
|
|
5706
|
-
function
|
|
5704
|
+
function Y3(u, D, f) {
|
|
5707
5705
|
var e = u.charIdx;
|
|
5708
5706
|
f === 47 ? D.state = 3 : f === 46 ? u.removeMachine(D) : Yu(f) ? (D.state = 5, iD(f) && u.addMachine(SD(
|
|
5709
5707
|
e,
|
|
@@ -5711,162 +5709,162 @@ function K3(u, D, f) {
|
|
|
5711
5709
|
/* State.SchemeChar */
|
|
5712
5710
|
))) : u.removeMachine(D);
|
|
5713
5711
|
}
|
|
5714
|
-
function
|
|
5715
|
-
f === 47 ? D.state = 4 :
|
|
5712
|
+
function J3(u, D, f) {
|
|
5713
|
+
f === 47 ? D.state = 4 : R1(f) ? (D.state = 10, D.acceptStateReached = !0) : eu(u, D);
|
|
5716
5714
|
}
|
|
5717
|
-
function
|
|
5715
|
+
function K3(u, D, f, e) {
|
|
5718
5716
|
e === 47 ? (D.state = 10, D.acceptStateReached = !0) : Yu(e) ? (D.state = 5, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5719
5717
|
}
|
|
5720
|
-
function
|
|
5718
|
+
function G3(u, D, f) {
|
|
5721
5719
|
f === 47 ? D.state = 12 : u.removeMachine(D);
|
|
5722
5720
|
}
|
|
5723
|
-
function
|
|
5721
|
+
function X3(u, D, f) {
|
|
5724
5722
|
Yu(f) ? D.state = 5 : u.removeMachine(D);
|
|
5725
5723
|
}
|
|
5726
|
-
function
|
|
5727
|
-
f === 46 ? D.state = 7 : f === 45 ? D.state = 6 : f === 58 ? D.state = 8 :
|
|
5724
|
+
function Z3(u, D, f) {
|
|
5725
|
+
f === 46 ? D.state = 7 : f === 45 ? D.state = 6 : f === 58 ? D.state = 8 : hf(f) ? D.state = 10 : Ef(f) || eu(u, D);
|
|
5728
5726
|
}
|
|
5729
|
-
function
|
|
5727
|
+
function Q3(u, D, f, e) {
|
|
5730
5728
|
e === 45 || (e === 46 ? eu(u, D) : Yu(e) ? D.state = 5 : eu(u, D));
|
|
5731
5729
|
}
|
|
5732
|
-
function
|
|
5730
|
+
function u2(u, D, f, e) {
|
|
5733
5731
|
e === 46 ? eu(u, D) : Yu(e) ? (D.state = 5, D.acceptStateReached = !0) : eu(u, D);
|
|
5734
5732
|
}
|
|
5735
|
-
function
|
|
5736
|
-
f === 46 ? D.state = 14 : f === 58 ? D.state = 8 : Eu(f) || (
|
|
5733
|
+
function D2(u, D, f) {
|
|
5734
|
+
f === 46 ? D.state = 14 : f === 58 ? D.state = 8 : Eu(f) || (hf(f) ? D.state = 10 : Xu(f) ? u.removeMachine(D) : eu(u, D));
|
|
5737
5735
|
}
|
|
5738
|
-
function
|
|
5736
|
+
function f2(u, D, f) {
|
|
5739
5737
|
Eu(f) ? (D.octetsEncountered++, D.octetsEncountered === 4 && (D.acceptStateReached = !0), D.state = 13) : eu(u, D);
|
|
5740
5738
|
}
|
|
5741
|
-
function
|
|
5739
|
+
function e2(u, D, f) {
|
|
5742
5740
|
Eu(f) ? D.state = 9 : eu(u, D);
|
|
5743
5741
|
}
|
|
5744
|
-
function
|
|
5745
|
-
Eu(f) || (
|
|
5742
|
+
function t2(u, D, f) {
|
|
5743
|
+
Eu(f) || (hf(f) ? D.state = 10 : eu(u, D));
|
|
5746
5744
|
}
|
|
5747
|
-
function
|
|
5748
|
-
|
|
5745
|
+
function n2(u, D, f) {
|
|
5746
|
+
R1(f) || eu(u, D);
|
|
5749
5747
|
}
|
|
5750
|
-
function
|
|
5748
|
+
function r2(u, D, f, e) {
|
|
5751
5749
|
f.toLowerCase() === "a" ? D.state = 16 : Zu(u, D, e);
|
|
5752
5750
|
}
|
|
5753
|
-
function
|
|
5751
|
+
function a2(u, D, f, e) {
|
|
5754
5752
|
f.toLowerCase() === "i" ? D.state = 17 : Zu(u, D, e);
|
|
5755
5753
|
}
|
|
5756
|
-
function
|
|
5754
|
+
function s2(u, D, f, e) {
|
|
5757
5755
|
f.toLowerCase() === "l" ? D.state = 18 : Zu(u, D, e);
|
|
5758
5756
|
}
|
|
5759
|
-
function
|
|
5757
|
+
function F2(u, D, f, e) {
|
|
5760
5758
|
f.toLowerCase() === "t" ? D.state = 19 : Zu(u, D, e);
|
|
5761
5759
|
}
|
|
5762
|
-
function
|
|
5760
|
+
function i2(u, D, f, e) {
|
|
5763
5761
|
f.toLowerCase() === "o" ? D.state = 20 : Zu(u, D, e);
|
|
5764
5762
|
}
|
|
5765
|
-
function
|
|
5763
|
+
function o2(u, D, f) {
|
|
5766
5764
|
f === 58 ? D.state = 21 : Zu(u, D, f);
|
|
5767
5765
|
}
|
|
5768
|
-
function
|
|
5769
|
-
|
|
5766
|
+
function d2(u, D, f) {
|
|
5767
|
+
bf(f) ? D.state = 22 : u.removeMachine(D);
|
|
5770
5768
|
}
|
|
5771
5769
|
function Zu(u, D, f) {
|
|
5772
|
-
f === 46 ? D.state = 23 : f === 64 ? D.state = 24 :
|
|
5770
|
+
f === 46 ? D.state = 23 : f === 64 ? D.state = 24 : bf(f) ? D.state = 22 : u.removeMachine(D);
|
|
5771
|
+
}
|
|
5772
|
+
function C2(u, D, f) {
|
|
5773
|
+
f === 46 || f === 64 ? u.removeMachine(D) : bf(f) ? D.state = 22 : u.removeMachine(D);
|
|
5774
|
+
}
|
|
5775
|
+
function c2(u, D, f) {
|
|
5776
|
+
Yu(f) ? D.state = 25 : u.removeMachine(D);
|
|
5773
5777
|
}
|
|
5774
5778
|
function l2(u, D, f) {
|
|
5775
|
-
f === 46
|
|
5779
|
+
f === 46 ? D.state = 27 : f === 45 ? D.state = 26 : Ef(f) || eu(u, D);
|
|
5776
5780
|
}
|
|
5777
5781
|
function E2(u, D, f) {
|
|
5778
|
-
|
|
5782
|
+
f === 45 || f === 46 ? eu(u, D) : Ef(f) ? D.state = 25 : eu(u, D);
|
|
5779
5783
|
}
|
|
5780
5784
|
function h2(u, D, f) {
|
|
5781
|
-
f === 46 ? D
|
|
5785
|
+
f === 46 || f === 45 ? eu(u, D) : Yu(f) ? (D.state = 25, D.acceptStateReached = !0) : eu(u, D);
|
|
5782
5786
|
}
|
|
5783
5787
|
function b2(u, D, f) {
|
|
5784
|
-
f
|
|
5788
|
+
L1(f) ? (D.state = 29, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5785
5789
|
}
|
|
5786
5790
|
function p2(u, D, f) {
|
|
5787
|
-
|
|
5791
|
+
L1(f) || eu(u, D);
|
|
5788
5792
|
}
|
|
5789
5793
|
function B2(u, D, f) {
|
|
5790
|
-
$1(f) ? (D.state =
|
|
5794
|
+
$1(f) ? (D.state = 31, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5791
5795
|
}
|
|
5792
5796
|
function g2(u, D, f) {
|
|
5793
|
-
$1(f) || eu(u, D);
|
|
5794
|
-
}
|
|
5795
|
-
function m2(u, D, f) {
|
|
5796
|
-
M1(f) ? (D.state = 31, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5797
|
+
$1(f) || (Xu(f) ? u.removeMachine(D) : eu(u, D));
|
|
5797
5798
|
}
|
|
5798
|
-
function
|
|
5799
|
-
M1(f) || (Xu(f) ? u.removeMachine(D) : eu(u, D));
|
|
5800
|
-
}
|
|
5801
|
-
function y2(u, D, f, e) {
|
|
5799
|
+
function m2(u, D, f, e) {
|
|
5802
5800
|
Eu(e) ? D.state = 38 : (u.removeMachine(D), kD(u, f, e));
|
|
5803
5801
|
}
|
|
5804
|
-
function
|
|
5802
|
+
function _2(u, D, f, e) {
|
|
5805
5803
|
Eu(e) ? D.state = 33 : u.removeMachine(D), kD(u, f, e);
|
|
5806
5804
|
}
|
|
5807
|
-
function
|
|
5805
|
+
function y2(u, D, f) {
|
|
5808
5806
|
Eu(f) ? D.state = 34 : u.removeMachine(D);
|
|
5809
5807
|
}
|
|
5810
|
-
function
|
|
5808
|
+
function v2(u, D, f) {
|
|
5811
5809
|
Eu(f) ? D.state = 35 : u.removeMachine(D);
|
|
5812
5810
|
}
|
|
5813
|
-
function
|
|
5811
|
+
function w2(u, D, f) {
|
|
5814
5812
|
f === 41 ? D.state = 36 : u.removeMachine(D);
|
|
5815
5813
|
}
|
|
5816
|
-
function
|
|
5817
|
-
Eu(e) ? D.state = 38 :
|
|
5814
|
+
function A2(u, D, f, e) {
|
|
5815
|
+
Eu(e) ? D.state = 38 : M1(e) ? D.state = 39 : u.removeMachine(D);
|
|
5818
5816
|
}
|
|
5819
|
-
function
|
|
5817
|
+
function x2(u, D, f, e) {
|
|
5820
5818
|
var t = u.charIdx;
|
|
5821
|
-
D.acceptStateReached = !0,
|
|
5819
|
+
D.acceptStateReached = !0, pf(e) ? D.state = 40 : e === 35 ? D.state = 41 : Eu(e) || (e === 40 ? D.state = 32 : M1(e) ? D.state = 39 : (eu(u, D), iD(e) && u.addMachine(SD(
|
|
5822
5820
|
t,
|
|
5823
5821
|
0
|
|
5824
5822
|
/* State.SchemeChar */
|
|
5825
5823
|
))));
|
|
5826
5824
|
}
|
|
5827
|
-
function
|
|
5825
|
+
function k2(u, D, f, e) {
|
|
5828
5826
|
Eu(e) ? D.state = 38 : e === 40 ? D.state = 32 : (eu(u, D), kD(u, f, e));
|
|
5829
5827
|
}
|
|
5830
|
-
function
|
|
5831
|
-
|
|
5828
|
+
function S2(u, D, f) {
|
|
5829
|
+
pf(f) || (f === 35 ? D.state = 41 : Eu(f) ? D.state = 38 : eu(u, D));
|
|
5832
5830
|
}
|
|
5833
|
-
function
|
|
5834
|
-
|
|
5831
|
+
function j2(u, D, f) {
|
|
5832
|
+
pf(f) ? D.state = 40 : Eu(f) ? u.removeMachine(D) : eu(u, D);
|
|
5835
5833
|
}
|
|
5836
5834
|
function eu(u, D) {
|
|
5837
5835
|
var f = u.matches, e = u.text, t = u.charIdx, n = u.tagBuilder, r = u.stripPrefix, s = u.stripTrailingSlash, F = u.decodePercentEncoding, d = u.hashtagServiceName, o = u.mentionServiceName;
|
|
5838
5836
|
if (u.removeMachine(D), !!D.acceptStateReached) {
|
|
5839
5837
|
var c = D.startIdx, l = e.slice(D.startIdx, t);
|
|
5840
|
-
switch (l =
|
|
5838
|
+
switch (l = N2(l), D.type) {
|
|
5841
5839
|
case 0: {
|
|
5842
5840
|
var A = e.charCodeAt(D.startIdx - 1);
|
|
5843
5841
|
if (A === 64)
|
|
5844
5842
|
return;
|
|
5845
5843
|
switch (D.matchType) {
|
|
5846
5844
|
case 0: {
|
|
5847
|
-
var C =
|
|
5848
|
-
if (C && (c = c + C.index, l = l.slice(C.index)), !
|
|
5845
|
+
var C = N1.exec(l);
|
|
5846
|
+
if (C && (c = c + C.index, l = l.slice(C.index)), !c3(l))
|
|
5849
5847
|
return;
|
|
5850
5848
|
break;
|
|
5851
5849
|
}
|
|
5852
5850
|
case 1: {
|
|
5853
|
-
if (!
|
|
5851
|
+
if (!l3(l))
|
|
5854
5852
|
return;
|
|
5855
5853
|
break;
|
|
5856
5854
|
}
|
|
5857
5855
|
case 2: {
|
|
5858
|
-
if (!
|
|
5856
|
+
if (!b3(l))
|
|
5859
5857
|
return;
|
|
5860
5858
|
break;
|
|
5861
5859
|
}
|
|
5862
5860
|
default:
|
|
5863
5861
|
Ku(D);
|
|
5864
5862
|
}
|
|
5865
|
-
f.push(new
|
|
5863
|
+
f.push(new g3({
|
|
5866
5864
|
tagBuilder: n,
|
|
5867
5865
|
matchedText: l,
|
|
5868
5866
|
offset: c,
|
|
5869
|
-
urlMatchType:
|
|
5867
|
+
urlMatchType: T2(D.matchType),
|
|
5870
5868
|
url: l,
|
|
5871
5869
|
protocolRelativeMatch: l.slice(0, 2) === "//",
|
|
5872
5870
|
// TODO: Do these settings need to be passed to the match,
|
|
@@ -5878,16 +5876,16 @@ function eu(u, D) {
|
|
|
5878
5876
|
break;
|
|
5879
5877
|
}
|
|
5880
5878
|
case 1: {
|
|
5881
|
-
|
|
5879
|
+
x3(l) && f.push(new k3({
|
|
5882
5880
|
tagBuilder: n,
|
|
5883
5881
|
matchedText: l,
|
|
5884
5882
|
offset: c,
|
|
5885
|
-
email: l.replace(
|
|
5883
|
+
email: l.replace(A3, "")
|
|
5886
5884
|
}));
|
|
5887
5885
|
break;
|
|
5888
5886
|
}
|
|
5889
5887
|
case 2: {
|
|
5890
|
-
|
|
5888
|
+
S3(l) && f.push(new T3({
|
|
5891
5889
|
tagBuilder: n,
|
|
5892
5890
|
matchedText: l,
|
|
5893
5891
|
offset: c,
|
|
@@ -5897,7 +5895,7 @@ function eu(u, D) {
|
|
|
5897
5895
|
break;
|
|
5898
5896
|
}
|
|
5899
5897
|
case 3: {
|
|
5900
|
-
|
|
5898
|
+
O3(l, o) && f.push(new P3({
|
|
5901
5899
|
tagBuilder: n,
|
|
5902
5900
|
matchedText: l,
|
|
5903
5901
|
offset: c,
|
|
@@ -5908,9 +5906,9 @@ function eu(u, D) {
|
|
|
5908
5906
|
break;
|
|
5909
5907
|
}
|
|
5910
5908
|
case 4: {
|
|
5911
|
-
if (l = l.replace(/ +$/g, ""),
|
|
5909
|
+
if (l = l.replace(/ +$/g, ""), q3(l)) {
|
|
5912
5910
|
var m = l.replace(/[^0-9,;#]/g, "");
|
|
5913
|
-
f.push(new
|
|
5911
|
+
f.push(new z3({
|
|
5914
5912
|
tagBuilder: n,
|
|
5915
5913
|
matchedText: l,
|
|
5916
5914
|
offset: c,
|
|
@@ -5925,7 +5923,7 @@ function eu(u, D) {
|
|
|
5925
5923
|
}
|
|
5926
5924
|
}
|
|
5927
5925
|
}
|
|
5928
|
-
function
|
|
5926
|
+
function T2(u) {
|
|
5929
5927
|
switch (u) {
|
|
5930
5928
|
case 0:
|
|
5931
5929
|
return "scheme";
|
|
@@ -5937,29 +5935,29 @@ function O2(u) {
|
|
|
5937
5935
|
Ku(u);
|
|
5938
5936
|
}
|
|
5939
5937
|
}
|
|
5940
|
-
var
|
|
5938
|
+
var Vf = {
|
|
5941
5939
|
")": "(",
|
|
5942
5940
|
"}": "{",
|
|
5943
5941
|
"]": "["
|
|
5944
5942
|
};
|
|
5945
|
-
function
|
|
5943
|
+
function N2(u) {
|
|
5946
5944
|
for (var D = {
|
|
5947
5945
|
"(": 0,
|
|
5948
5946
|
"{": 0,
|
|
5949
5947
|
"[": 0
|
|
5950
5948
|
}, f = 0; f < u.length; f++) {
|
|
5951
5949
|
var e = u.charAt(f), t = u.charCodeAt(f);
|
|
5952
|
-
|
|
5950
|
+
s3(t) ? D[e]++ : Uf(t) && D[Vf[e]]--;
|
|
5953
5951
|
}
|
|
5954
5952
|
for (var n = u.length - 1; n >= 0; ) {
|
|
5955
5953
|
var e = u.charAt(n), t = u.charCodeAt(n);
|
|
5956
|
-
if (
|
|
5957
|
-
var r =
|
|
5954
|
+
if (Uf(t)) {
|
|
5955
|
+
var r = Vf[e];
|
|
5958
5956
|
if (D[r] < 0)
|
|
5959
5957
|
D[r]++, n--;
|
|
5960
5958
|
else
|
|
5961
5959
|
break;
|
|
5962
|
-
} else if (
|
|
5960
|
+
} else if (T1(t))
|
|
5963
5961
|
n--;
|
|
5964
5962
|
else
|
|
5965
5963
|
break;
|
|
@@ -5975,7 +5973,7 @@ function SD(u, D) {
|
|
|
5975
5973
|
matchType: 0
|
|
5976
5974
|
};
|
|
5977
5975
|
}
|
|
5978
|
-
function
|
|
5976
|
+
function ef(u, D) {
|
|
5979
5977
|
return {
|
|
5980
5978
|
type: 0,
|
|
5981
5979
|
startIdx: u,
|
|
@@ -5984,7 +5982,7 @@ function tf(u, D) {
|
|
|
5984
5982
|
matchType: 1
|
|
5985
5983
|
};
|
|
5986
5984
|
}
|
|
5987
|
-
function
|
|
5985
|
+
function O2(u, D) {
|
|
5988
5986
|
return {
|
|
5989
5987
|
type: 0,
|
|
5990
5988
|
startIdx: u,
|
|
@@ -5995,7 +5993,7 @@ function P2(u, D) {
|
|
|
5995
5993
|
// starts at 1 because we create this machine when encountering the first octet
|
|
5996
5994
|
};
|
|
5997
5995
|
}
|
|
5998
|
-
function
|
|
5996
|
+
function R2(u, D) {
|
|
5999
5997
|
return {
|
|
6000
5998
|
type: 1,
|
|
6001
5999
|
startIdx: u,
|
|
@@ -6003,7 +6001,7 @@ function I2(u, D) {
|
|
|
6003
6001
|
acceptStateReached: !1
|
|
6004
6002
|
};
|
|
6005
6003
|
}
|
|
6006
|
-
function
|
|
6004
|
+
function P2(u, D) {
|
|
6007
6005
|
return {
|
|
6008
6006
|
type: 2,
|
|
6009
6007
|
startIdx: u,
|
|
@@ -6011,7 +6009,7 @@ function L2(u, D) {
|
|
|
6011
6009
|
acceptStateReached: !1
|
|
6012
6010
|
};
|
|
6013
6011
|
}
|
|
6014
|
-
function
|
|
6012
|
+
function I2(u, D) {
|
|
6015
6013
|
return {
|
|
6016
6014
|
type: 3,
|
|
6017
6015
|
startIdx: u,
|
|
@@ -6019,7 +6017,7 @@ function $2(u, D) {
|
|
|
6019
6017
|
acceptStateReached: !1
|
|
6020
6018
|
};
|
|
6021
6019
|
}
|
|
6022
|
-
function
|
|
6020
|
+
function zD(u, D) {
|
|
6023
6021
|
return {
|
|
6024
6022
|
type: 4,
|
|
6025
6023
|
startIdx: u,
|
|
@@ -6027,7 +6025,7 @@ function UD(u, D) {
|
|
|
6027
6025
|
acceptStateReached: !1
|
|
6028
6026
|
};
|
|
6029
6027
|
}
|
|
6030
|
-
function
|
|
6028
|
+
function Hf(u) {
|
|
6031
6029
|
return u.type === 0 && u.matchType === 0;
|
|
6032
6030
|
}
|
|
6033
6031
|
var Su = (
|
|
@@ -6038,155 +6036,155 @@ var Su = (
|
|
|
6038
6036
|
}
|
|
6039
6037
|
return u;
|
|
6040
6038
|
}()
|
|
6041
|
-
),
|
|
6039
|
+
), Bf = new Su(), L2 = (
|
|
6042
6040
|
/** @class */
|
|
6043
6041
|
/* @__PURE__ */ function() {
|
|
6044
6042
|
function u(D, f) {
|
|
6045
|
-
this.charIdx = 0, this.state = 0, this.currentDataIdx = 0, this.currentTag =
|
|
6043
|
+
this.charIdx = 0, this.state = 0, this.currentDataIdx = 0, this.currentTag = Bf, this.html = D, this.callbacks = f;
|
|
6046
6044
|
}
|
|
6047
6045
|
return u;
|
|
6048
6046
|
}()
|
|
6049
6047
|
);
|
|
6050
|
-
function
|
|
6051
|
-
for (var f = new
|
|
6048
|
+
function $2(u, D) {
|
|
6049
|
+
for (var f = new L2(u, D), e = u.length; f.charIdx < e; ) {
|
|
6052
6050
|
var t = u.charAt(f.charIdx), n = u.charCodeAt(f.charIdx);
|
|
6053
6051
|
switch (f.state) {
|
|
6054
6052
|
case 0:
|
|
6055
|
-
|
|
6053
|
+
M2(f, t);
|
|
6056
6054
|
break;
|
|
6057
6055
|
case 1:
|
|
6058
|
-
|
|
6056
|
+
q2(f, t, n);
|
|
6059
6057
|
break;
|
|
6060
6058
|
case 2:
|
|
6061
|
-
|
|
6059
|
+
U2(f, t, n);
|
|
6062
6060
|
break;
|
|
6063
6061
|
case 3:
|
|
6064
|
-
|
|
6062
|
+
z2(f, t, n);
|
|
6065
6063
|
break;
|
|
6066
6064
|
case 4:
|
|
6067
|
-
|
|
6065
|
+
V2(f, t, n);
|
|
6068
6066
|
break;
|
|
6069
6067
|
case 5:
|
|
6070
|
-
|
|
6068
|
+
H2(f, t, n);
|
|
6071
6069
|
break;
|
|
6072
6070
|
case 6:
|
|
6073
|
-
|
|
6071
|
+
W2(f, t, n);
|
|
6074
6072
|
break;
|
|
6075
6073
|
case 7:
|
|
6076
|
-
|
|
6074
|
+
Y2(f, t, n);
|
|
6077
6075
|
break;
|
|
6078
6076
|
case 8:
|
|
6079
|
-
|
|
6077
|
+
J2(f, t);
|
|
6080
6078
|
break;
|
|
6081
6079
|
case 9:
|
|
6082
|
-
|
|
6080
|
+
K2(f, t);
|
|
6083
6081
|
break;
|
|
6084
6082
|
case 10:
|
|
6085
|
-
|
|
6083
|
+
G2(f, t, n);
|
|
6086
6084
|
break;
|
|
6087
6085
|
case 11:
|
|
6088
|
-
|
|
6086
|
+
X2(f, t, n);
|
|
6089
6087
|
break;
|
|
6090
6088
|
case 12:
|
|
6091
|
-
|
|
6089
|
+
Z2(f, t);
|
|
6092
6090
|
break;
|
|
6093
6091
|
case 13:
|
|
6094
|
-
|
|
6092
|
+
Q2(f);
|
|
6095
6093
|
break;
|
|
6096
6094
|
case 14:
|
|
6097
|
-
|
|
6095
|
+
ut(f, t);
|
|
6098
6096
|
break;
|
|
6099
6097
|
case 15:
|
|
6100
|
-
|
|
6098
|
+
Dt(f, t);
|
|
6101
6099
|
break;
|
|
6102
6100
|
case 16:
|
|
6103
|
-
|
|
6101
|
+
ft(f, t);
|
|
6104
6102
|
break;
|
|
6105
6103
|
case 17:
|
|
6106
|
-
|
|
6104
|
+
et(f, t);
|
|
6107
6105
|
break;
|
|
6108
6106
|
case 18:
|
|
6109
|
-
|
|
6107
|
+
tt(f, t);
|
|
6110
6108
|
break;
|
|
6111
6109
|
case 19:
|
|
6112
|
-
|
|
6110
|
+
nt(f, t);
|
|
6113
6111
|
break;
|
|
6114
6112
|
case 20:
|
|
6115
|
-
|
|
6113
|
+
rt(f, t);
|
|
6116
6114
|
break;
|
|
6117
6115
|
default:
|
|
6118
6116
|
Ku(f.state);
|
|
6119
6117
|
}
|
|
6120
6118
|
f.charIdx++;
|
|
6121
6119
|
}
|
|
6122
|
-
f.currentDataIdx < f.charIdx &&
|
|
6120
|
+
f.currentDataIdx < f.charIdx && at(f);
|
|
6123
6121
|
}
|
|
6124
|
-
function
|
|
6122
|
+
function M2(u, D) {
|
|
6125
6123
|
D === "<" && Ou(u);
|
|
6126
6124
|
}
|
|
6125
|
+
function q2(u, D, f) {
|
|
6126
|
+
D === "!" ? u.state = 13 : D === "/" ? (u.state = 2, u.currentTag = new Su(iu(iu({}, u.currentTag), { isClosing: !0 }))) : D === "<" ? Ou(u) : tD(f) ? (u.state = 3, u.currentTag = new Su(iu(iu({}, u.currentTag), { isOpening: !0 }))) : (u.state = 0, u.currentTag = Bf);
|
|
6127
|
+
}
|
|
6128
|
+
function z2(u, D, f) {
|
|
6129
|
+
Gu(f) ? (u.currentTag = new Su(iu(iu({}, u.currentTag), { name: UD(u) })), u.state = 4) : D === "<" ? Ou(u) : D === "/" ? (u.currentTag = new Su(iu(iu({}, u.currentTag), { name: UD(u) })), u.state = 12) : D === ">" ? (u.currentTag = new Su(iu(iu({}, u.currentTag), { name: UD(u) })), Ru(u)) : !tD(f) && !Eu(f) && D !== ":" && Au(u);
|
|
6130
|
+
}
|
|
6127
6131
|
function U2(u, D, f) {
|
|
6128
|
-
D === "
|
|
6132
|
+
D === ">" ? Au(u) : tD(f) ? u.state = 3 : Au(u);
|
|
6129
6133
|
}
|
|
6130
6134
|
function V2(u, D, f) {
|
|
6131
|
-
Gu(f)
|
|
6135
|
+
Gu(f) || (D === "/" ? u.state = 12 : D === ">" ? Ru(u) : D === "<" ? Ou(u) : D === "=" || lf(f) || n3(f) ? Au(u) : u.state = 5);
|
|
6132
6136
|
}
|
|
6133
6137
|
function H2(u, D, f) {
|
|
6134
|
-
D === "
|
|
6138
|
+
Gu(f) ? u.state = 6 : D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Ru(u) : D === "<" ? Ou(u) : lf(f) && Au(u);
|
|
6135
6139
|
}
|
|
6136
6140
|
function W2(u, D, f) {
|
|
6137
|
-
Gu(f) || (D === "/" ? u.state = 12 : D === "
|
|
6141
|
+
Gu(f) || (D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Ru(u) : D === "<" ? Ou(u) : lf(f) ? Au(u) : u.state = 5);
|
|
6138
6142
|
}
|
|
6139
6143
|
function Y2(u, D, f) {
|
|
6140
|
-
Gu(f) ? u.state = 6 : D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Ru(u) : D === "<" ? Ou(u) : Ef(f) && Au(u);
|
|
6141
|
-
}
|
|
6142
|
-
function J2(u, D, f) {
|
|
6143
|
-
Gu(f) || (D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Ru(u) : D === "<" ? Ou(u) : Ef(f) ? Au(u) : u.state = 5);
|
|
6144
|
-
}
|
|
6145
|
-
function K2(u, D, f) {
|
|
6146
6144
|
Gu(f) || (D === '"' ? u.state = 8 : D === "'" ? u.state = 9 : /[>=`]/.test(D) ? Au(u) : D === "<" ? Ou(u) : u.state = 10);
|
|
6147
6145
|
}
|
|
6148
|
-
function
|
|
6146
|
+
function J2(u, D) {
|
|
6149
6147
|
D === '"' && (u.state = 11);
|
|
6150
6148
|
}
|
|
6151
|
-
function
|
|
6149
|
+
function K2(u, D) {
|
|
6152
6150
|
D === "'" && (u.state = 11);
|
|
6153
6151
|
}
|
|
6154
|
-
function
|
|
6152
|
+
function G2(u, D, f) {
|
|
6155
6153
|
Gu(f) ? u.state = 4 : D === ">" ? Ru(u) : D === "<" && Ou(u);
|
|
6156
6154
|
}
|
|
6157
|
-
function
|
|
6158
|
-
Gu(f) ? u.state = 4 : D === "/" ? u.state = 12 : D === ">" ? Ru(u) : D === "<" ? Ou(u) : (u.state = 4,
|
|
6155
|
+
function X2(u, D, f) {
|
|
6156
|
+
Gu(f) ? u.state = 4 : D === "/" ? u.state = 12 : D === ">" ? Ru(u) : D === "<" ? Ou(u) : (u.state = 4, st(u));
|
|
6159
6157
|
}
|
|
6160
|
-
function
|
|
6158
|
+
function Z2(u, D) {
|
|
6161
6159
|
D === ">" ? (u.currentTag = new Su(iu(iu({}, u.currentTag), { isClosing: !0 })), Ru(u)) : Au(u);
|
|
6162
6160
|
}
|
|
6163
|
-
function
|
|
6161
|
+
function Q2(u) {
|
|
6164
6162
|
var D = u.html, f = u.charIdx;
|
|
6165
6163
|
D.slice(f, f + 2) === "--" ? (u.charIdx++, u.currentTag = new Su(iu(iu({}, u.currentTag), { type: "comment" })), u.state = 14) : D.slice(f, f + 7).toUpperCase() === "DOCTYPE" ? (u.charIdx += 6, u.currentTag = new Su(iu(iu({}, u.currentTag), { type: "doctype" })), u.state = 20) : Au(u);
|
|
6166
6164
|
}
|
|
6167
|
-
function
|
|
6165
|
+
function ut(u, D) {
|
|
6168
6166
|
D === "-" ? u.state = 15 : D === ">" ? Au(u) : u.state = 16;
|
|
6169
6167
|
}
|
|
6170
|
-
function
|
|
6168
|
+
function Dt(u, D) {
|
|
6171
6169
|
D === "-" ? u.state = 18 : D === ">" ? Au(u) : u.state = 16;
|
|
6172
6170
|
}
|
|
6173
|
-
function
|
|
6171
|
+
function ft(u, D) {
|
|
6174
6172
|
D === "-" && (u.state = 17);
|
|
6175
6173
|
}
|
|
6176
|
-
function
|
|
6174
|
+
function et(u, D) {
|
|
6177
6175
|
D === "-" ? u.state = 18 : u.state = 16;
|
|
6178
6176
|
}
|
|
6179
|
-
function
|
|
6177
|
+
function tt(u, D) {
|
|
6180
6178
|
D === ">" ? Ru(u) : D === "!" ? u.state = 19 : D === "-" || (u.state = 16);
|
|
6181
6179
|
}
|
|
6182
|
-
function
|
|
6180
|
+
function nt(u, D) {
|
|
6183
6181
|
D === "-" ? u.state = 17 : D === ">" ? Ru(u) : u.state = 16;
|
|
6184
6182
|
}
|
|
6185
|
-
function
|
|
6183
|
+
function rt(u, D) {
|
|
6186
6184
|
D === ">" ? Ru(u) : D === "<" && Ou(u);
|
|
6187
6185
|
}
|
|
6188
6186
|
function Au(u) {
|
|
6189
|
-
u.state = 0, u.currentTag =
|
|
6187
|
+
u.state = 0, u.currentTag = Bf;
|
|
6190
6188
|
}
|
|
6191
6189
|
function Ou(u) {
|
|
6192
6190
|
u.state = 1, u.currentTag = new Su({ idx: u.charIdx });
|
|
@@ -6197,18 +6195,18 @@ function Ru(u) {
|
|
|
6197
6195
|
var f = u.currentTag;
|
|
6198
6196
|
f.type === "comment" ? u.callbacks.onComment(f.idx) : f.type === "doctype" ? u.callbacks.onDoctype(f.idx) : (f.isOpening && u.callbacks.onOpenTag(f.name, f.idx), f.isClosing && u.callbacks.onCloseTag(f.name, f.idx)), Au(u), u.currentDataIdx = u.charIdx + 1;
|
|
6199
6197
|
}
|
|
6200
|
-
function
|
|
6198
|
+
function at(u) {
|
|
6201
6199
|
var D = u.html.slice(u.currentDataIdx, u.charIdx);
|
|
6202
6200
|
u.callbacks.onText(D, u.currentDataIdx), u.currentDataIdx = u.charIdx + 1;
|
|
6203
6201
|
}
|
|
6204
|
-
function
|
|
6202
|
+
function UD(u) {
|
|
6205
6203
|
var D = u.currentTag.idx + (u.currentTag.isClosing ? 2 : 1);
|
|
6206
6204
|
return u.html.slice(D, u.charIdx).toLowerCase();
|
|
6207
6205
|
}
|
|
6208
|
-
function
|
|
6206
|
+
function st(u) {
|
|
6209
6207
|
u.charIdx--;
|
|
6210
6208
|
}
|
|
6211
|
-
var
|
|
6209
|
+
var Ft = (
|
|
6212
6210
|
/** @class */
|
|
6213
6211
|
function() {
|
|
6214
6212
|
function u(D) {
|
|
@@ -6218,14 +6216,14 @@ var ot = (
|
|
|
6218
6216
|
}, this.stripTrailingSlash = !0, this.decodePercentEncoding = !0, this.truncate = {
|
|
6219
6217
|
length: 0,
|
|
6220
6218
|
location: "end"
|
|
6221
|
-
}, this.className = "", this.replaceFn = null, this.context = void 0, this.sanitizeHtml = !1, this.tagBuilder = null, this.urls =
|
|
6219
|
+
}, this.className = "", this.replaceFn = null, this.context = void 0, this.sanitizeHtml = !1, this.tagBuilder = null, this.urls = it(D.urls), this.email = vu(D.email) ? D.email : this.email, this.phone = vu(D.phone) ? D.phone : this.phone, this.hashtag = D.hashtag || this.hashtag, this.mention = D.mention || this.mention, this.newWindow = vu(D.newWindow) ? D.newWindow : this.newWindow, this.stripPrefix = ot(D.stripPrefix), this.stripTrailingSlash = vu(D.stripTrailingSlash) ? D.stripTrailingSlash : this.stripTrailingSlash, this.decodePercentEncoding = vu(D.decodePercentEncoding) ? D.decodePercentEncoding : this.decodePercentEncoding, this.sanitizeHtml = D.sanitizeHtml || !1;
|
|
6222
6220
|
var f = this.mention;
|
|
6223
|
-
if (f !== !1 &&
|
|
6221
|
+
if (f !== !1 && R3.indexOf(f) === -1)
|
|
6224
6222
|
throw new Error("invalid `mention` cfg '".concat(f, "' - see docs"));
|
|
6225
6223
|
var e = this.hashtag;
|
|
6226
|
-
if (e !== !1 &&
|
|
6224
|
+
if (e !== !1 && j3.indexOf(e) === -1)
|
|
6227
6225
|
throw new Error("invalid `hashtag` cfg '".concat(e, "' - see docs"));
|
|
6228
|
-
this.truncate =
|
|
6226
|
+
this.truncate = dt(D.truncate), this.className = D.className || this.className, this.replaceFn = D.replaceFn || this.replaceFn, this.context = D.context || this;
|
|
6229
6227
|
}
|
|
6230
6228
|
return u.link = function(D, f) {
|
|
6231
6229
|
var e = new u(f);
|
|
@@ -6235,7 +6233,7 @@ var ot = (
|
|
|
6235
6233
|
return e.parse(D);
|
|
6236
6234
|
}, u.prototype.parse = function(D) {
|
|
6237
6235
|
var f = this, e = ["a", "style", "script"], t = 0, n = [];
|
|
6238
|
-
return
|
|
6236
|
+
return $2(D, {
|
|
6239
6237
|
onOpenTag: function(r) {
|
|
6240
6238
|
e.indexOf(r) >= 0 && t++;
|
|
6241
6239
|
},
|
|
@@ -6245,7 +6243,7 @@ var ot = (
|
|
|
6245
6243
|
d.forEach(function(c, l) {
|
|
6246
6244
|
if (l % 2 === 0) {
|
|
6247
6245
|
var A = f.parseText(c, o);
|
|
6248
|
-
n.push.apply(n,
|
|
6246
|
+
n.push.apply(n, Ge([], Ke(A), !1));
|
|
6249
6247
|
}
|
|
6250
6248
|
o += c.length;
|
|
6251
6249
|
});
|
|
@@ -6262,7 +6260,7 @@ var ot = (
|
|
|
6262
6260
|
// no need to process doctype nodes
|
|
6263
6261
|
}), n = this.compactMatches(n), n = this.removeUnwantedMatches(n), n;
|
|
6264
6262
|
}, u.prototype.compactMatches = function(D) {
|
|
6265
|
-
D.sort(
|
|
6263
|
+
D.sort(Ct);
|
|
6266
6264
|
for (var f = 0; f < D.length - 1; ) {
|
|
6267
6265
|
var e = D[f], t = e.getOffset(), n = e.getMatchedText().length;
|
|
6268
6266
|
if (f + 1 < D.length && D[f + 1].getOffset() === t) {
|
|
@@ -6291,7 +6289,7 @@ var ot = (
|
|
|
6291
6289
|
}), D;
|
|
6292
6290
|
}, u.prototype.parseText = function(D, f) {
|
|
6293
6291
|
f = f || 0;
|
|
6294
|
-
for (var e =
|
|
6292
|
+
for (var e = V3(D, {
|
|
6295
6293
|
tagBuilder: this.getTagBuilder(),
|
|
6296
6294
|
stripPrefix: this.stripPrefix,
|
|
6297
6295
|
stripTrailingSlash: this.stripTrailingSlash,
|
|
@@ -6316,37 +6314,37 @@ var ot = (
|
|
|
6316
6314
|
return f;
|
|
6317
6315
|
if (f === !1)
|
|
6318
6316
|
return D.getMatchedText();
|
|
6319
|
-
if (f instanceof
|
|
6317
|
+
if (f instanceof j1)
|
|
6320
6318
|
return f.toAnchorString();
|
|
6321
6319
|
var e = D.buildTag();
|
|
6322
6320
|
return e.toAnchorString();
|
|
6323
6321
|
}, u.prototype.getTagBuilder = function() {
|
|
6324
6322
|
var D = this.tagBuilder;
|
|
6325
|
-
return D || (D = this.tagBuilder = new
|
|
6323
|
+
return D || (D = this.tagBuilder = new t3({
|
|
6326
6324
|
newWindow: this.newWindow,
|
|
6327
6325
|
truncate: this.truncate,
|
|
6328
6326
|
className: this.className
|
|
6329
6327
|
})), D;
|
|
6330
|
-
}, u.version =
|
|
6328
|
+
}, u.version = Xe, u;
|
|
6331
6329
|
}()
|
|
6332
6330
|
);
|
|
6333
|
-
function
|
|
6331
|
+
function it(u) {
|
|
6334
6332
|
return u == null && (u = !0), vu(u) ? { schemeMatches: u, tldMatches: u, ipV4Matches: u } : {
|
|
6335
6333
|
schemeMatches: vu(u.schemeMatches) ? u.schemeMatches : !0,
|
|
6336
6334
|
tldMatches: vu(u.tldMatches) ? u.tldMatches : !0,
|
|
6337
6335
|
ipV4Matches: vu(u.ipV4Matches) ? u.ipV4Matches : !0
|
|
6338
6336
|
};
|
|
6339
6337
|
}
|
|
6340
|
-
function
|
|
6338
|
+
function ot(u) {
|
|
6341
6339
|
return u == null && (u = !0), vu(u) ? { scheme: u, www: u } : {
|
|
6342
6340
|
scheme: vu(u.scheme) ? u.scheme : !0,
|
|
6343
6341
|
www: vu(u.www) ? u.www : !0
|
|
6344
6342
|
};
|
|
6345
6343
|
}
|
|
6346
|
-
function
|
|
6344
|
+
function dt(u) {
|
|
6347
6345
|
return typeof u == "number" ? { length: u, location: "end" } : iu({ length: Number.POSITIVE_INFINITY, location: "end" }, u);
|
|
6348
6346
|
}
|
|
6349
|
-
function
|
|
6347
|
+
function Ct(u, D) {
|
|
6350
6348
|
return u.getOffset() - D.getOffset();
|
|
6351
6349
|
}
|
|
6352
6350
|
const aD = [
|
|
@@ -6355,7 +6353,7 @@ const aD = [
|
|
|
6355
6353
|
{ name: "New Zealand", countryCode: "+64", code: "NZ", flag: "🇳🇿" },
|
|
6356
6354
|
{ name: "United Kingdom", countryCode: "+44", code: "UK", flag: "🇬🇧" },
|
|
6357
6355
|
{ name: "Indonesia", countryCode: "+62", code: "ID", flag: "🇮🇩" }
|
|
6358
|
-
],
|
|
6356
|
+
], q1 = ({
|
|
6359
6357
|
initialData: u,
|
|
6360
6358
|
loadFromDataUserSubs: D = !1
|
|
6361
6359
|
} = {}) => {
|
|
@@ -6692,13 +6690,13 @@ const aD = [
|
|
|
6692
6690
|
renderContactFormField: A,
|
|
6693
6691
|
getInputType: c
|
|
6694
6692
|
};
|
|
6695
|
-
},
|
|
6693
|
+
}, ct = ({
|
|
6696
6694
|
onSubmit: u,
|
|
6697
6695
|
onFormStateChange: D
|
|
6698
6696
|
}) => {
|
|
6699
6697
|
const { colors: f } = ou(), e = qu(), t = pu(), { socket: n } = Hu(), { setScreen: r } = Tu();
|
|
6700
6698
|
Nu();
|
|
6701
|
-
const { setIsOfflineMode: s, send: F, participants: d, setMessages: o, setParticipants: c, setConnectionState: l } = Cu(), { formData: A, renderContactFormField: C } =
|
|
6699
|
+
const { setIsOfflineMode: s, send: F, participants: d, setMessages: o, setParticipants: c, setConnectionState: l } = Cu(), { formData: A, renderContactFormField: C } = q1({
|
|
6702
6700
|
initialData: {},
|
|
6703
6701
|
loadFromDataUserSubs: !0
|
|
6704
6702
|
}), [m, j] = U(!1), [L, x] = U(!1);
|
|
@@ -6713,14 +6711,14 @@ const aD = [
|
|
|
6713
6711
|
if (t.formSettings.forEach(($) => {
|
|
6714
6712
|
var Du;
|
|
6715
6713
|
$.isDisplay && A[$.key] !== void 0 && (v[$.key] = ((Du = A[$.key]) == null ? void 0 : Du.toString().trim()) || "");
|
|
6716
|
-
}), !localStorage.getItem("
|
|
6714
|
+
}), !localStorage.getItem("profileLiveChat"))
|
|
6717
6715
|
try {
|
|
6718
6716
|
const $ = new URLSearchParams();
|
|
6719
6717
|
Object.entries(v).forEach(([b, O]) => {
|
|
6720
6718
|
typeof O == "string" && O.trim() && $.append(b, O);
|
|
6721
6719
|
}), $.append("owner_id", e.ownerId), $.append("contactLateTime", (/* @__PURE__ */ new Date()).toISOString());
|
|
6722
6720
|
const { body: Du } = await n.get(`/webhook/${e.channel}/?${$.toString()}`), { messages: N, profile: E } = Du;
|
|
6723
|
-
localStorage.setItem("
|
|
6721
|
+
localStorage.setItem("profileLiveChat", JSON.stringify(E)), localStorage.setItem("isOffline", JSON.stringify(!1)), localStorage.setItem(
|
|
6724
6722
|
"submitedFormLateTime",
|
|
6725
6723
|
JSON.stringify((E == null ? void 0 : E.submitedFormLateTime) || null)
|
|
6726
6724
|
), N.forEach((b) => {
|
|
@@ -6834,7 +6832,7 @@ const aD = [
|
|
|
6834
6832
|
] }) })
|
|
6835
6833
|
}
|
|
6836
6834
|
);
|
|
6837
|
-
},
|
|
6835
|
+
}, lt = ({
|
|
6838
6836
|
message: u,
|
|
6839
6837
|
onFormSubmitted: D
|
|
6840
6838
|
}) => {
|
|
@@ -6845,7 +6843,7 @@ const aD = [
|
|
|
6845
6843
|
const n = () => {
|
|
6846
6844
|
if (u.direction === uu.received && t.current) {
|
|
6847
6845
|
const F = t.current.innerText;
|
|
6848
|
-
let d =
|
|
6846
|
+
let d = Ft.link(F, {
|
|
6849
6847
|
className: "chatLink",
|
|
6850
6848
|
truncate: { length: 50, location: "smart" }
|
|
6851
6849
|
});
|
|
@@ -6856,7 +6854,7 @@ const aD = [
|
|
|
6856
6854
|
throw new Error("Unable to find text.");
|
|
6857
6855
|
const r = f[u.direction || uu.received];
|
|
6858
6856
|
return "isShowForm" in u.data && u.data.isShowForm ? /* @__PURE__ */ a.jsx(
|
|
6859
|
-
|
|
6857
|
+
ct,
|
|
6860
6858
|
{
|
|
6861
6859
|
onFormStateChange: (F) => {
|
|
6862
6860
|
e(F), !F && D && D(!0);
|
|
@@ -6873,7 +6871,7 @@ const aD = [
|
|
|
6873
6871
|
children: /* @__PURE__ */ a.jsx("p", { className: "sc-message--text-content", ref: t, children: u.data.text })
|
|
6874
6872
|
}
|
|
6875
6873
|
) });
|
|
6876
|
-
},
|
|
6874
|
+
}, Wf = ({
|
|
6877
6875
|
viewBox: u = "0 0 24 24",
|
|
6878
6876
|
fill: D = "none",
|
|
6879
6877
|
stroke: f = "",
|
|
@@ -6894,13 +6892,13 @@ const aD = [
|
|
|
6894
6892
|
...r,
|
|
6895
6893
|
children: /* @__PURE__ */ a.jsx("path", { d: "M20 6L9 17l-5-5" })
|
|
6896
6894
|
}
|
|
6897
|
-
),
|
|
6895
|
+
), Et = ({ message: u }) => {
|
|
6898
6896
|
const { colors: D } = ou();
|
|
6899
6897
|
if (!("delivery" in u && "read" in u))
|
|
6900
6898
|
throw new Error("Unable to find delivery/read attributes");
|
|
6901
6899
|
return /* @__PURE__ */ a.jsxs("div", { className: "sc--status", style: { color: D.messageStatus.bg }, children: [
|
|
6902
6900
|
u.read && /* @__PURE__ */ a.jsx("div", { className: "sc--status-wrapper sc--status-read", title: "Read", children: /* @__PURE__ */ a.jsx(
|
|
6903
|
-
|
|
6901
|
+
Wf,
|
|
6904
6902
|
{
|
|
6905
6903
|
width: "16px",
|
|
6906
6904
|
height: "16px",
|
|
@@ -6914,7 +6912,7 @@ const aD = [
|
|
|
6914
6912
|
className: "sc--status-wrapper sc--status-delivery",
|
|
6915
6913
|
title: "Delivered",
|
|
6916
6914
|
children: /* @__PURE__ */ a.jsx(
|
|
6917
|
-
|
|
6915
|
+
Wf,
|
|
6918
6916
|
{
|
|
6919
6917
|
width: "16px",
|
|
6920
6918
|
height: "16px",
|
|
@@ -6926,15 +6924,15 @@ const aD = [
|
|
|
6926
6924
|
)
|
|
6927
6925
|
] });
|
|
6928
6926
|
};
|
|
6929
|
-
|
|
6930
|
-
const
|
|
6927
|
+
x1.extend($e);
|
|
6928
|
+
const ht = ({ message: u, Avatar: D }) => {
|
|
6931
6929
|
const { participants: f } = Cu(), { colors: e } = ou(), [t, n] = U(!1), [r, s] = U(!1), F = pu(), d = u.data && "text" in u.data && "isShowForm" in u.data && u.data.isShowForm, o = f.find(
|
|
6932
6930
|
(A) => A.id === u.author
|
|
6933
6931
|
) || {
|
|
6934
6932
|
name: "Anon"
|
|
6935
6933
|
}, c = () => {
|
|
6936
6934
|
n(!t);
|
|
6937
|
-
}, l = (A) =>
|
|
6935
|
+
}, l = (A) => x1(A).fromNow();
|
|
6938
6936
|
return /* @__PURE__ */ a.jsx("div", { className: `sc-message ${u.direction}`, children: /* @__PURE__ */ a.jsxs("div", { className: `sc-message--content ${u.direction}`, children: [
|
|
6939
6937
|
(!r || !d) && /* @__PURE__ */ a.jsx(
|
|
6940
6938
|
"div",
|
|
@@ -6952,24 +6950,24 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
6952
6950
|
height: 32,
|
|
6953
6951
|
style: { borderRadius: "50%" }
|
|
6954
6952
|
}
|
|
6955
|
-
) : D ? /* @__PURE__ */ a.jsx(D, {}) : o.imageUrl ? null : /* @__PURE__ */ a.jsx(
|
|
6953
|
+
) : D ? /* @__PURE__ */ a.jsx(D, {}) : o.imageUrl ? null : /* @__PURE__ */ a.jsx(S1, { width: "32px", height: "32px" })
|
|
6956
6954
|
}
|
|
6957
6955
|
),
|
|
6958
6956
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-message--wrapper", onClick: c, children: [
|
|
6959
6957
|
u.data && "text" in u.data && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
6960
|
-
|
|
6958
|
+
lt,
|
|
6961
6959
|
{
|
|
6962
6960
|
message: u,
|
|
6963
6961
|
onFormSubmitted: s
|
|
6964
6962
|
}
|
|
6965
6963
|
) }),
|
|
6966
|
-
u.type === "file" && /* @__PURE__ */ a.jsx(
|
|
6967
|
-
u.type === "location" && /* @__PURE__ */ a.jsx(
|
|
6968
|
-
u.type === "list" && /* @__PURE__ */ a.jsx(
|
|
6969
|
-
u.type === "carousel" && /* @__PURE__ */ a.jsx(
|
|
6964
|
+
u.type === "file" && /* @__PURE__ */ a.jsx(We, { message: u }),
|
|
6965
|
+
u.type === "location" && /* @__PURE__ */ a.jsx(Ye, { message: u }),
|
|
6966
|
+
u.type === "list" && /* @__PURE__ */ a.jsx(Je, { messageList: u }),
|
|
6967
|
+
u.type === "carousel" && /* @__PURE__ */ a.jsx(Ve, { messageCarousel: u }),
|
|
6970
6968
|
u.type === "buttons" && /* @__PURE__ */ a.jsx(yD, { message: u }),
|
|
6971
6969
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-message--meta", children: [
|
|
6972
|
-
u.direction === "sent" && /* @__PURE__ */ a.jsx(
|
|
6970
|
+
u.direction === "sent" && /* @__PURE__ */ a.jsx(Et, { message: u }),
|
|
6973
6971
|
/* @__PURE__ */ a.jsx(
|
|
6974
6972
|
"div",
|
|
6975
6973
|
{
|
|
@@ -6981,7 +6979,7 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
6981
6979
|
] })
|
|
6982
6980
|
] })
|
|
6983
6981
|
] }) });
|
|
6984
|
-
},
|
|
6982
|
+
}, bt = () => {
|
|
6985
6983
|
const { colors: u } = ou();
|
|
6986
6984
|
return /* @__PURE__ */ a.jsxs(
|
|
6987
6985
|
"div",
|
|
@@ -6998,7 +6996,7 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
6998
6996
|
]
|
|
6999
6997
|
}
|
|
7000
6998
|
);
|
|
7001
|
-
},
|
|
6999
|
+
}, pt = ({
|
|
7002
7000
|
Avatar: u,
|
|
7003
7001
|
phone: D
|
|
7004
7002
|
}) => {
|
|
@@ -7018,7 +7016,7 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
7018
7016
|
style: n.imageUrl ? {
|
|
7019
7017
|
backgroundImage: `url(${n.imageUrl}?color=${encodeURIComponent(f.header.bg)})`
|
|
7020
7018
|
} : void 0,
|
|
7021
|
-
children: u ? /* @__PURE__ */ a.jsx(u, {}) : n.imageUrl ? null : /* @__PURE__ */ a.jsx(
|
|
7019
|
+
children: u ? /* @__PURE__ */ a.jsx(u, {}) : n.imageUrl ? null : /* @__PURE__ */ a.jsx(S1, { width: "32px", height: "32px" })
|
|
7022
7020
|
}
|
|
7023
7021
|
),
|
|
7024
7022
|
/* @__PURE__ */ a.jsx("div", { className: "sc-message--wrapper", children: /* @__PURE__ */ a.jsxs(
|
|
@@ -7046,7 +7044,7 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
7046
7044
|
}
|
|
7047
7045
|
) })
|
|
7048
7046
|
] }) });
|
|
7049
|
-
},
|
|
7047
|
+
}, Bt = ({ Avatar: u }) => {
|
|
7050
7048
|
const { scroll: D, setScroll: f, isOpen: e } = Tu(), { messages: t, showTypingIndicator: n, setNewIOMessage: r, setMessages: s } = Cu(), F = pu(), { colors: d } = ou(), { formSettings: o } = pu(), [c, l] = U(""), A = bu(""), C = F.offline_mode, m = xD(C), j = (B) => {
|
|
7051
7049
|
if (!("text" in B.data)) return null;
|
|
7052
7050
|
const T = B.data.text || "", y = (g) => g.toLowerCase().replace(/\s+/g, "").replace(/[^a-z0-9_]/g, ""), q = T.split(`
|
|
@@ -7090,7 +7088,7 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
7090
7088
|
}, 100);
|
|
7091
7089
|
}, [D, e]), G(() => {
|
|
7092
7090
|
const B = () => {
|
|
7093
|
-
const y = JSON.parse(localStorage.getItem("
|
|
7091
|
+
const y = JSON.parse(localStorage.getItem("profileLiveChat") || "{}"), v = JSON.parse(localStorage.getItem("submitedFormLateTime") || "null") || y.submitedFormLateTime, q = t.some(
|
|
7094
7092
|
(P) => P.data && "isShowForm" in P.data && P.data.isShowForm
|
|
7095
7093
|
);
|
|
7096
7094
|
if (m && !v && !q) {
|
|
@@ -7101,7 +7099,7 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
7101
7099
|
direction: uu.received,
|
|
7102
7100
|
read: !0,
|
|
7103
7101
|
delivery: !0,
|
|
7104
|
-
type:
|
|
7102
|
+
type: WD.text,
|
|
7105
7103
|
data: {
|
|
7106
7104
|
text: "Enter your information, and our team will text you shortly.",
|
|
7107
7105
|
isOffline: !0,
|
|
@@ -7117,7 +7115,7 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
7117
7115
|
direction: uu.received,
|
|
7118
7116
|
read: !0,
|
|
7119
7117
|
delivery: !0,
|
|
7120
|
-
type:
|
|
7118
|
+
type: WD.text,
|
|
7121
7119
|
data: {
|
|
7122
7120
|
text: "Show Form",
|
|
7123
7121
|
isOffline: !0,
|
|
@@ -7156,16 +7154,16 @@ const pt = ({ message: u, Avatar: D }) => {
|
|
|
7156
7154
|
ref: x,
|
|
7157
7155
|
style: { backgroundColor: d.messageList.bg },
|
|
7158
7156
|
children: [
|
|
7159
|
-
t.map((B) => /* @__PURE__ */ a.jsxs(
|
|
7160
|
-
/* @__PURE__ */ a.jsx(
|
|
7161
|
-
L(B) && m && /* @__PURE__ */ a.jsx(
|
|
7157
|
+
t.map((B) => /* @__PURE__ */ a.jsxs(rf.Fragment, { children: [
|
|
7158
|
+
/* @__PURE__ */ a.jsx(ht, { message: B, Avatar: u }),
|
|
7159
|
+
L(B) && m && /* @__PURE__ */ a.jsx(pt, { phone: c })
|
|
7162
7160
|
] }, B.mid)),
|
|
7163
|
-
n && /* @__PURE__ */ a.jsx(
|
|
7161
|
+
n && /* @__PURE__ */ a.jsx(bt, {})
|
|
7164
7162
|
]
|
|
7165
7163
|
}
|
|
7166
7164
|
);
|
|
7167
7165
|
};
|
|
7168
|
-
var
|
|
7166
|
+
var tf = { exports: {} };
|
|
7169
7167
|
(function(u, D) {
|
|
7170
7168
|
(function() {
|
|
7171
7169
|
var f = this, e = f.EmojiConvertor, t = function() {
|
|
@@ -9754,9 +9752,9 @@ var nf = { exports: {} };
|
|
|
9754
9752
|
}).call(/* @__PURE__ */ function() {
|
|
9755
9753
|
return this || (typeof window < "u" ? window : oD);
|
|
9756
9754
|
}());
|
|
9757
|
-
})(
|
|
9758
|
-
var
|
|
9759
|
-
const
|
|
9755
|
+
})(tf, tf.exports);
|
|
9756
|
+
var gt = tf.exports;
|
|
9757
|
+
const mt = /* @__PURE__ */ af(gt), _t = [
|
|
9760
9758
|
{
|
|
9761
9759
|
name: "People",
|
|
9762
9760
|
emojis: [
|
|
@@ -10410,8 +10408,8 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10410
10408
|
"🔹"
|
|
10411
10409
|
]
|
|
10412
10410
|
}
|
|
10413
|
-
],
|
|
10414
|
-
const f = bu(new
|
|
10411
|
+
], yt = ({ onBlur: u, onSelect: D }) => {
|
|
10412
|
+
const f = bu(new mt()), e = bu(null);
|
|
10415
10413
|
G(() => {
|
|
10416
10414
|
const n = e.current;
|
|
10417
10415
|
n && (n.style.opacity = "0", window.requestAnimationFrame(() => {
|
|
@@ -10421,7 +10419,7 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10421
10419
|
const t = (n, r) => {
|
|
10422
10420
|
D(n, r), e.current && e.current.blur();
|
|
10423
10421
|
};
|
|
10424
|
-
return /* @__PURE__ */ a.jsx("div", { tabIndex: 0, onBlur: u, className: "sc-emoji-picker", ref: e, children: /* @__PURE__ */ a.jsx("div", { className: "sc-emoji-picker--content", children:
|
|
10422
|
+
return /* @__PURE__ */ a.jsx("div", { tabIndex: 0, onBlur: u, className: "sc-emoji-picker", ref: e, children: /* @__PURE__ */ a.jsx("div", { className: "sc-emoji-picker--content", children: _t.map((n) => /* @__PURE__ */ a.jsxs("div", { className: "sc-emoji-picker--category", children: [
|
|
10425
10423
|
/* @__PURE__ */ a.jsx("div", { className: "sc-emoji-picker--category-title", children: n.name }),
|
|
10426
10424
|
n.emojis.map((r) => /* @__PURE__ */ a.jsx(
|
|
10427
10425
|
"span",
|
|
@@ -10433,7 +10431,7 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10433
10431
|
r
|
|
10434
10432
|
))
|
|
10435
10433
|
] }, n.name)) }) });
|
|
10436
|
-
},
|
|
10434
|
+
}, vt = ({
|
|
10437
10435
|
x: u = "0",
|
|
10438
10436
|
y: D = "0",
|
|
10439
10437
|
className: f = "sc-user-input--emoji-icon",
|
|
@@ -10456,7 +10454,7 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10456
10454
|
/* @__PURE__ */ a.jsx("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5" })
|
|
10457
10455
|
]
|
|
10458
10456
|
}
|
|
10459
|
-
),
|
|
10457
|
+
), wt = ({ inputRef: u, onInput: D }) => {
|
|
10460
10458
|
const [f, e] = U(!1), t = bu(null), n = () => {
|
|
10461
10459
|
e(!f);
|
|
10462
10460
|
}, r = (d) => {
|
|
@@ -10472,7 +10470,7 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10472
10470
|
}
|
|
10473
10471
|
};
|
|
10474
10472
|
return /* @__PURE__ */ a.jsxs("div", { className: "sc-user-input--picker-wrapper", children: [
|
|
10475
|
-
f && /* @__PURE__ */ a.jsx(
|
|
10473
|
+
f && /* @__PURE__ */ a.jsx(yt, { onBlur: r, onSelect: s }),
|
|
10476
10474
|
/* @__PURE__ */ a.jsx(
|
|
10477
10475
|
"button",
|
|
10478
10476
|
{
|
|
@@ -10482,11 +10480,11 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10482
10480
|
id: "sc-emoji-button",
|
|
10483
10481
|
className: "sc-user-input--emoji-icon-wrapper",
|
|
10484
10482
|
ref: t,
|
|
10485
|
-
children: /* @__PURE__ */ a.jsx(
|
|
10483
|
+
children: /* @__PURE__ */ a.jsx(vt, {})
|
|
10486
10484
|
}
|
|
10487
10485
|
)
|
|
10488
10486
|
] });
|
|
10489
|
-
},
|
|
10487
|
+
}, At = {
|
|
10490
10488
|
images: ["image/jpeg", "image/png", "image/webp", "image/bmp"],
|
|
10491
10489
|
videos: [
|
|
10492
10490
|
"video/mp4",
|
|
@@ -10532,7 +10530,7 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10532
10530
|
"application/json",
|
|
10533
10531
|
"text/csv"
|
|
10534
10532
|
]
|
|
10535
|
-
},
|
|
10533
|
+
}, z1 = ({
|
|
10536
10534
|
x: u = "0",
|
|
10537
10535
|
y: D = "0",
|
|
10538
10536
|
className: f = "sc-user-input--file-icon",
|
|
@@ -10552,17 +10550,17 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10552
10550
|
" "
|
|
10553
10551
|
]
|
|
10554
10552
|
}
|
|
10555
|
-
),
|
|
10553
|
+
), xt = () => {
|
|
10556
10554
|
const { setFile: u } = Cu(), D = (t) => {
|
|
10557
10555
|
t.target.value = "";
|
|
10558
10556
|
}, f = (t) => {
|
|
10559
10557
|
t.target.files && t.target.files[0] && u && u(t.target.files[0]);
|
|
10560
|
-
}, e =
|
|
10561
|
-
() => Object.values(
|
|
10558
|
+
}, e = i0(
|
|
10559
|
+
() => Object.values(At).flat().join(","),
|
|
10562
10560
|
[]
|
|
10563
10561
|
);
|
|
10564
10562
|
return /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--file-wrapper", children: /* @__PURE__ */ a.jsxs("button", { className: "sc-user-input--file-icon-wrapper", type: "button", children: [
|
|
10565
|
-
/* @__PURE__ */ a.jsx(
|
|
10563
|
+
/* @__PURE__ */ a.jsx(z1, {}),
|
|
10566
10564
|
/* @__PURE__ */ a.jsx(
|
|
10567
10565
|
"input",
|
|
10568
10566
|
{
|
|
@@ -10574,7 +10572,7 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10574
10572
|
}
|
|
10575
10573
|
)
|
|
10576
10574
|
] }) });
|
|
10577
|
-
},
|
|
10575
|
+
}, kt = ({
|
|
10578
10576
|
x: u = "0",
|
|
10579
10577
|
y: D = "0",
|
|
10580
10578
|
className: f = "sc-user-input--location-icon",
|
|
@@ -10593,7 +10591,7 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10593
10591
|
...n,
|
|
10594
10592
|
children: /* @__PURE__ */ a.jsx("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5" })
|
|
10595
10593
|
}
|
|
10596
|
-
),
|
|
10594
|
+
), St = () => {
|
|
10597
10595
|
const { setPayload: u, send: D } = Cu(), f = pu(), e = (t) => {
|
|
10598
10596
|
navigator.geolocation ? navigator.geolocation.getCurrentPosition(
|
|
10599
10597
|
(n) => {
|
|
@@ -10627,12 +10625,12 @@ const yt = /* @__PURE__ */ sf(_t), vt = [
|
|
|
10627
10625
|
onClick: e,
|
|
10628
10626
|
type: "button",
|
|
10629
10627
|
className: "sc-user-input--location-icon-wrapper",
|
|
10630
|
-
children: /* @__PURE__ */ a.jsx(
|
|
10628
|
+
children: /* @__PURE__ */ a.jsx(kt, {})
|
|
10631
10629
|
}
|
|
10632
10630
|
) });
|
|
10633
10631
|
};
|
|
10634
|
-
var
|
|
10635
|
-
const
|
|
10632
|
+
var nf = /* @__PURE__ */ ((u) => (u.web_url = "web_url", u.postback = "postback", u.nested = "nested", u))(nf || {});
|
|
10633
|
+
const jt = ({ item: u, onPostback: D }) => {
|
|
10636
10634
|
const { colors: f } = ou(), e = () => {
|
|
10637
10635
|
switch (u.type) {
|
|
10638
10636
|
case "web_url":
|
|
@@ -10653,16 +10651,16 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10653
10651
|
children: /* @__PURE__ */ a.jsx("span", { className: "sc-menu-item-text", children: u.title })
|
|
10654
10652
|
}
|
|
10655
10653
|
) });
|
|
10656
|
-
},
|
|
10654
|
+
}, Tt = () => {
|
|
10657
10655
|
const u = pu(), { send: D, setPayload: f } = Cu(), [e, t] = U({
|
|
10658
10656
|
title: "Menu",
|
|
10659
|
-
type:
|
|
10657
|
+
type: nf.nested,
|
|
10660
10658
|
call_to_actions: (u == null ? void 0 : u.menu) || []
|
|
10661
10659
|
}), n = bu(null);
|
|
10662
10660
|
G(() => {
|
|
10663
10661
|
t({
|
|
10664
10662
|
title: "Menu",
|
|
10665
|
-
type:
|
|
10663
|
+
type: nf.nested,
|
|
10666
10664
|
call_to_actions: (u == null ? void 0 : u.menu) || []
|
|
10667
10665
|
});
|
|
10668
10666
|
}, [u]);
|
|
@@ -10690,7 +10688,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10690
10688
|
ref: n,
|
|
10691
10689
|
className: "sc-menu-elements-carousel sc-menu-always-visible",
|
|
10692
10690
|
children: e.call_to_actions && /* @__PURE__ */ a.jsx(a.Fragment, { children: e.call_to_actions.map((F, d) => /* @__PURE__ */ a.jsx("div", { className: "sc-menu-carousel-card", children: /* @__PURE__ */ a.jsx(
|
|
10693
|
-
|
|
10691
|
+
jt,
|
|
10694
10692
|
{
|
|
10695
10693
|
item: F,
|
|
10696
10694
|
parent: e,
|
|
@@ -10700,13 +10698,13 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10700
10698
|
) }, d)) })
|
|
10701
10699
|
}
|
|
10702
10700
|
) });
|
|
10703
|
-
},
|
|
10701
|
+
}, Nt = ({
|
|
10704
10702
|
viewBox: u = "0 0 48 48",
|
|
10705
10703
|
...D
|
|
10706
10704
|
}) => /* @__PURE__ */ a.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: [
|
|
10707
10705
|
/* @__PURE__ */ a.jsx("path", { d: "M4.02 42L46 24 4.02 6 4 20l30 4-30 4z" }),
|
|
10708
10706
|
/* @__PURE__ */ a.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
|
|
10709
|
-
] }),
|
|
10707
|
+
] }), Ot = (u) => {
|
|
10710
10708
|
const { onClick: D, ...f } = u;
|
|
10711
10709
|
return /* @__PURE__ */ a.jsx(
|
|
10712
10710
|
"button",
|
|
@@ -10714,10 +10712,10 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10714
10712
|
onClick: D,
|
|
10715
10713
|
...f,
|
|
10716
10714
|
className: "sc-user-input--button-icon-wrapper",
|
|
10717
|
-
children: /* @__PURE__ */ a.jsx(
|
|
10715
|
+
children: /* @__PURE__ */ a.jsx(Nt, {})
|
|
10718
10716
|
}
|
|
10719
10717
|
);
|
|
10720
|
-
},
|
|
10718
|
+
}, Rt = () => {
|
|
10721
10719
|
const { setPayload: u, send: D, suggestions: f } = Cu(), e = pu(), { colors: t } = ou(), n = (r, s) => {
|
|
10722
10720
|
u(s), D({
|
|
10723
10721
|
event: r,
|
|
@@ -10745,7 +10743,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10745
10743
|
))
|
|
10746
10744
|
}
|
|
10747
10745
|
);
|
|
10748
|
-
},
|
|
10746
|
+
}, Pt = () => {
|
|
10749
10747
|
var X;
|
|
10750
10748
|
const { maxUploadSize: u } = qu(), { t: D } = Nu(), { colors: f } = ou(), {
|
|
10751
10749
|
suggestions: e,
|
|
@@ -10824,11 +10822,11 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10824
10822
|
}, b = () => {
|
|
10825
10823
|
var z;
|
|
10826
10824
|
(z = B.current) == null || z.focus();
|
|
10827
|
-
}, O = d === FD.uploading, R = JSON.parse(localStorage.getItem("
|
|
10825
|
+
}, O = d === FD.uploading, R = JSON.parse(localStorage.getItem("profileLiveChat") || "{}"), W = JSON.parse(localStorage.getItem("isOffline") || "false") || (R == null ? void 0 : R.isOffline), J = ((X = R == null ? void 0 : R.channel) == null ? void 0 : X.name) === "console-channel";
|
|
10828
10826
|
return (W || !(R != null && R.id)) && !J ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10829
|
-
A.length > 0 && /* @__PURE__ */ a.jsx(
|
|
10827
|
+
A.length > 0 && /* @__PURE__ */ a.jsx(Tt, {}),
|
|
10830
10828
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-user-input-wrapper", children: [
|
|
10831
|
-
e.length > 0 && /* @__PURE__ */ a.jsx(
|
|
10829
|
+
e.length > 0 && /* @__PURE__ */ a.jsx(Rt, {}),
|
|
10832
10830
|
(r || O) && /* @__PURE__ */ a.jsxs(
|
|
10833
10831
|
"div",
|
|
10834
10832
|
{
|
|
@@ -10839,7 +10837,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10839
10837
|
},
|
|
10840
10838
|
children: [
|
|
10841
10839
|
/* @__PURE__ */ a.jsx(
|
|
10842
|
-
|
|
10840
|
+
z1,
|
|
10843
10841
|
{
|
|
10844
10842
|
width: "16px",
|
|
10845
10843
|
height: "16px",
|
|
@@ -10849,7 +10847,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10849
10847
|
T && /* @__PURE__ */ a.jsx("span", { children: T }),
|
|
10850
10848
|
O && /* @__PURE__ */ a.jsx("span", { children: "Loading..." }),
|
|
10851
10849
|
r && r.name && !T && /* @__PURE__ */ a.jsx("span", { children: r.name.length > 23 ? `${r.name.substring(0, 23)}...` : r.name }),
|
|
10852
|
-
/* @__PURE__ */ a.jsx("span", { className: "delete-file-message", onClick: N, children: /* @__PURE__ */ a.jsx(
|
|
10850
|
+
/* @__PURE__ */ a.jsx("span", { className: "delete-file-message", onClick: N, children: /* @__PURE__ */ a.jsx(cf, { height: "10" }) })
|
|
10853
10851
|
]
|
|
10854
10852
|
}
|
|
10855
10853
|
),
|
|
@@ -10892,11 +10890,11 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10892
10890
|
}
|
|
10893
10891
|
),
|
|
10894
10892
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-user-input--buttons", children: [
|
|
10895
|
-
L && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10896
|
-
x && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10897
|
-
I && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10893
|
+
L && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(wt, { inputRef: B, onInput: E }) }),
|
|
10894
|
+
x && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(St, {}) }),
|
|
10895
|
+
I && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(xt, {}) }),
|
|
10898
10896
|
/* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10899
|
-
|
|
10897
|
+
Ot,
|
|
10900
10898
|
{
|
|
10901
10899
|
disabled: !t,
|
|
10902
10900
|
onClick: (z) => p(z)
|
|
@@ -10908,7 +10906,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10908
10906
|
)
|
|
10909
10907
|
] })
|
|
10910
10908
|
] });
|
|
10911
|
-
},
|
|
10909
|
+
}, It = ({
|
|
10912
10910
|
width: u = "24",
|
|
10913
10911
|
height: D = "24",
|
|
10914
10912
|
fill: f = "none",
|
|
@@ -10933,7 +10931,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10933
10931
|
...F,
|
|
10934
10932
|
children: /* @__PURE__ */ a.jsx("path", { stroke: "#fff", strokeOpacity: "1", d: "M15 18L9 12 15 6" })
|
|
10935
10933
|
}
|
|
10936
|
-
),
|
|
10934
|
+
), Lt = () => {
|
|
10937
10935
|
const { t: u } = Nu(), { colors: D } = ou(), { setWebviewUrl: f, webviewUrl: e } = Cu(), [t, n] = U(!1);
|
|
10938
10936
|
G(() => {
|
|
10939
10937
|
n(!0);
|
|
@@ -10949,13 +10947,13 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10949
10947
|
className: "sc-webview--footer",
|
|
10950
10948
|
style: { background: D.header.bg, color: D.header.text },
|
|
10951
10949
|
children: /* @__PURE__ */ a.jsxs("h3", { className: "sc-webview--button", onClick: r, children: [
|
|
10952
|
-
/* @__PURE__ */ a.jsx(
|
|
10950
|
+
/* @__PURE__ */ a.jsx(It, { width: "16px", height: "16px" }),
|
|
10953
10951
|
u("settings.back")
|
|
10954
10952
|
] })
|
|
10955
10953
|
}
|
|
10956
10954
|
)
|
|
10957
10955
|
] });
|
|
10958
|
-
},
|
|
10956
|
+
}, $t = ({
|
|
10959
10957
|
CustomHeader: u,
|
|
10960
10958
|
CustomAvatar: D,
|
|
10961
10959
|
PreChat: f,
|
|
@@ -10963,15 +10961,15 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10963
10961
|
}) => {
|
|
10964
10962
|
const { connectionState: t } = Cu(), { screen: n, isOpen: r } = Tu();
|
|
10965
10963
|
return /* @__PURE__ */ a.jsxs("div", { className: `sc-chat-window ${r ? "opened" : "closed"}`, children: [
|
|
10966
|
-
/* @__PURE__ */ a.jsx(
|
|
10964
|
+
/* @__PURE__ */ a.jsx(Te, { children: u && /* @__PURE__ */ a.jsx(u, {}) }),
|
|
10967
10965
|
n === "prechat" && f && /* @__PURE__ */ a.jsx(f, {}),
|
|
10968
|
-
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(
|
|
10969
|
-
n !== "prechat" && n !== "postchat" && t !== 3 && /* @__PURE__ */ a.jsx(
|
|
10966
|
+
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(Bt, { Avatar: D }),
|
|
10967
|
+
n !== "prechat" && n !== "postchat" && t !== 3 && /* @__PURE__ */ a.jsx(Re, {}),
|
|
10970
10968
|
n === "postchat" && e && /* @__PURE__ */ a.jsx(e, {}),
|
|
10971
|
-
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(
|
|
10972
|
-
n === "webview" && /* @__PURE__ */ a.jsx(
|
|
10969
|
+
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(Pt, {}),
|
|
10970
|
+
n === "webview" && /* @__PURE__ */ a.jsx(Lt, {})
|
|
10973
10971
|
] });
|
|
10974
|
-
},
|
|
10972
|
+
}, U1 = ({
|
|
10975
10973
|
CustomLauncher: u,
|
|
10976
10974
|
CustomHeader: D,
|
|
10977
10975
|
CustomAvatar: f,
|
|
@@ -10982,8 +10980,8 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
10982
10980
|
const n = qu(), r = Cu(), s = Tu(), { socket: F } = Hu(), { setScreen: d } = Tu(), o = pu(), c = o.offline_mode, l = xD(c), A = (m) => {
|
|
10983
10981
|
m.preventDefault(), s.setIsOpen(!s.isOpen);
|
|
10984
10982
|
};
|
|
10985
|
-
return
|
|
10986
|
-
if (!l && !localStorage.getItem("
|
|
10983
|
+
return me(), new URLSearchParams().append("owner_id", n.ownerId), G(() => {
|
|
10984
|
+
if (!l && !localStorage.getItem("profileLiveChat")) {
|
|
10987
10985
|
d("prechat");
|
|
10988
10986
|
return;
|
|
10989
10987
|
}
|
|
@@ -11008,20 +11006,20 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
11008
11006
|
children: [
|
|
11009
11007
|
r.newMessagesCount > 0 && !s.isOpen && /* @__PURE__ */ a.jsx("div", { className: "sc-new-messages-count", children: r.newMessagesCount }),
|
|
11010
11008
|
s.isOpen ? /* @__PURE__ */ a.jsx(
|
|
11011
|
-
|
|
11009
|
+
cf,
|
|
11012
11010
|
{
|
|
11013
11011
|
className: "sc-closed-icon",
|
|
11014
11012
|
width: "16px",
|
|
11015
11013
|
height: "16px"
|
|
11016
11014
|
}
|
|
11017
|
-
) : /* @__PURE__ */ a.jsx(
|
|
11015
|
+
) : /* @__PURE__ */ a.jsx(v1, { className: "sc-open-icon" })
|
|
11018
11016
|
]
|
|
11019
11017
|
}
|
|
11020
11018
|
)
|
|
11021
11019
|
}
|
|
11022
11020
|
),
|
|
11023
11021
|
s.isOpen && /* @__PURE__ */ a.jsx(
|
|
11024
|
-
|
|
11022
|
+
$t,
|
|
11025
11023
|
{
|
|
11026
11024
|
CustomHeader: D,
|
|
11027
11025
|
CustomAvatar: f,
|
|
@@ -11030,7 +11028,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
11030
11028
|
}
|
|
11031
11029
|
)
|
|
11032
11030
|
] });
|
|
11033
|
-
},
|
|
11031
|
+
}, V1 = ({
|
|
11034
11032
|
onFormDataSubmit: u
|
|
11035
11033
|
}) => {
|
|
11036
11034
|
const D = qu(), { t: f } = Nu(), { colors: e } = ou(), { socket: t } = Hu(), n = pu(), { setScreen: r } = Tu(), {
|
|
@@ -11039,7 +11037,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
11039
11037
|
setConnectionState: d,
|
|
11040
11038
|
participants: o,
|
|
11041
11039
|
setParticipants: c
|
|
11042
|
-
} = Cu(), { formData: l, setFormData: A, renderFormField: C } =
|
|
11040
|
+
} = Cu(), { formData: l, setFormData: A, renderFormField: C } = q1({
|
|
11043
11041
|
loadFromDataUserSubs: !1,
|
|
11044
11042
|
initialData: {}
|
|
11045
11043
|
}), m = n.offline_mode, j = xD(m);
|
|
@@ -11057,7 +11055,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
11057
11055
|
typeof g == "string" && g.trim() && _.append(P, g);
|
|
11058
11056
|
}), _.append("contactLateTime", (/* @__PURE__ */ new Date()).toISOString()), _.append("owner_id", D.ownerId);
|
|
11059
11057
|
const { body: B } = await t.get(`/webhook/${D.channel}/?${_.toString()}`), { messages: T, profile: y } = B;
|
|
11060
|
-
console.log("jump here 1"), localStorage.setItem("
|
|
11058
|
+
console.log("jump here 1"), localStorage.setItem("profileLiveChat", JSON.stringify(y)), localStorage.setItem("isOffline", JSON.stringify(j || !1)), localStorage.setItem(
|
|
11061
11059
|
"submitedFormLateTime",
|
|
11062
11060
|
JSON.stringify((y == null ? void 0 : y.submitedFormLateTime) || null)
|
|
11063
11061
|
), T.forEach((P) => {
|
|
@@ -11113,7 +11111,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
11113
11111
|
return G(() => {
|
|
11114
11112
|
if (!L.current) {
|
|
11115
11113
|
L.current = !0;
|
|
11116
|
-
const I = localStorage.getItem("
|
|
11114
|
+
const I = localStorage.getItem("profileLiveChat");
|
|
11117
11115
|
if (I) {
|
|
11118
11116
|
const _ = JSON.parse(I), B = {};
|
|
11119
11117
|
Object.entries(_).forEach(([T, y]) => {
|
|
@@ -11149,7 +11147,7 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
11149
11147
|
) })
|
|
11150
11148
|
] })
|
|
11151
11149
|
] }) });
|
|
11152
|
-
},
|
|
11150
|
+
}, Mt = Mu({}), qt = ({
|
|
11153
11151
|
children: u
|
|
11154
11152
|
}) => {
|
|
11155
11153
|
const D = qu(), [f, e] = U(!1), t = async () => {
|
|
@@ -11163,32 +11161,32 @@ const Nt = ({ item: u, onPostback: D }) => {
|
|
|
11163
11161
|
};
|
|
11164
11162
|
return G(() => {
|
|
11165
11163
|
f || t();
|
|
11166
|
-
}, []), f ? /* @__PURE__ */ a.jsx(
|
|
11164
|
+
}, []), f ? /* @__PURE__ */ a.jsx(Mt.Provider, { value: {}, children: u }) : null;
|
|
11167
11165
|
};
|
|
11168
|
-
function
|
|
11169
|
-
return /* @__PURE__ */ a.jsx(
|
|
11166
|
+
function Ht(u) {
|
|
11167
|
+
return /* @__PURE__ */ a.jsx(Qf, { ...u, children: /* @__PURE__ */ a.jsx(D1, { children: /* @__PURE__ */ a.jsx(qt, { children: /* @__PURE__ */ a.jsx(E1, { children: /* @__PURE__ */ a.jsx(b1, { children: /* @__PURE__ */ a.jsx(y1, { children: /* @__PURE__ */ a.jsx(B1, { children: /* @__PURE__ */ a.jsx(Kf, { channelName: "main-channel", children: /* @__PURE__ */ a.jsx(m1, { children: /* @__PURE__ */ a.jsx(U1, { PreChat: V1 }) }) }) }) }) }) }) }) }) });
|
|
11170
11168
|
}
|
|
11171
|
-
function
|
|
11169
|
+
function Wt({
|
|
11172
11170
|
CustomHeader: u,
|
|
11173
11171
|
CustomAvatar: D,
|
|
11174
11172
|
config: f
|
|
11175
11173
|
}) {
|
|
11176
|
-
return /* @__PURE__ */ a.jsx(
|
|
11177
|
-
|
|
11174
|
+
return /* @__PURE__ */ a.jsx(Qf, { ...f, children: /* @__PURE__ */ a.jsx(D1, { children: /* @__PURE__ */ a.jsx(E1, { children: /* @__PURE__ */ a.jsx(b1, { children: /* @__PURE__ */ a.jsx(y1, { children: /* @__PURE__ */ a.jsx(Kf, { channelName: "main-channel", children: /* @__PURE__ */ a.jsx(B1, { defaultScreen: "chat", children: /* @__PURE__ */ a.jsx(
|
|
11175
|
+
m1,
|
|
11178
11176
|
{
|
|
11179
11177
|
defaultConnectionState: fD.connected,
|
|
11180
11178
|
children: /* @__PURE__ */ a.jsx(
|
|
11181
|
-
|
|
11179
|
+
U1,
|
|
11182
11180
|
{
|
|
11183
11181
|
CustomHeader: u,
|
|
11184
11182
|
CustomAvatar: D,
|
|
11185
|
-
PreChat:
|
|
11183
|
+
PreChat: V1
|
|
11186
11184
|
}
|
|
11187
11185
|
)
|
|
11188
11186
|
}
|
|
11189
11187
|
) }) }) }) }) }) }) });
|
|
11190
11188
|
}
|
|
11191
11189
|
export {
|
|
11192
|
-
|
|
11193
|
-
|
|
11190
|
+
Ht as ChatWidget,
|
|
11191
|
+
Wt as UiChatWidget
|
|
11194
11192
|
};
|