@regulaforensics/idv-capture-web 3.2.254-nightly → 3.2.256-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -2
- package/dist/main.iife.js +12 -12
- package/dist/main.js +548 -509
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -344,8 +344,8 @@ const Yl = (t, e) => {
|
|
|
344
344
|
const l = t[a];
|
|
345
345
|
let d, p, h = -1, c = 0;
|
|
346
346
|
for (; c < l.length && (s.lastIndex = c, p = s.exec(l), p !== null); ) c = s.lastIndex, s === Ir ? p[1] === "!--" ? s = Go : p[1] !== void 0 ? s = qo : p[2] !== void 0 ? (ea.test(p[2]) && (i = RegExp("</" + p[2], "g")), s = Qt) : p[3] !== void 0 && (s = Qt) : s === Qt ? p[0] === ">" ? (s = i != null ? i : Ir, h = -1) : p[1] === void 0 ? h = -2 : (h = s.lastIndex - p[2].length, d = p[1], s = p[3] === void 0 ? Qt : p[3] === '"' ? Yo : Zo) : s === Yo || s === Zo ? s = Qt : s === Go || s === qo ? s = Ir : (s = Qt, i = void 0);
|
|
347
|
-
const
|
|
348
|
-
o += s === Ir ? l + Gl : h >= 0 ? (n.push(d), l.slice(0, h) + Xs + l.slice(h) + Gt +
|
|
347
|
+
const g = s === Qt && t[a + 1].startsWith("/>") ? " " : "";
|
|
348
|
+
o += s === Ir ? l + Gl : h >= 0 ? (n.push(d), l.slice(0, h) + Xs + l.slice(h) + Gt + g) : l + Gt + (h === -2 ? a : g);
|
|
349
349
|
}
|
|
350
350
|
return [ta(t, o + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
|
351
351
|
};
|
|
@@ -362,14 +362,14 @@ let $i = class ra {
|
|
|
362
362
|
for (; (i = or.nextNode()) !== null && l.length < a; ) {
|
|
363
363
|
if (i.nodeType === 1) {
|
|
364
364
|
if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(Xs)) {
|
|
365
|
-
const c = p[s++],
|
|
366
|
-
l.push({ type: 1, index: o, name:
|
|
365
|
+
const c = p[s++], g = i.getAttribute(h).split(Gt), w = /([.?@])?(.*)/.exec(c);
|
|
366
|
+
l.push({ type: 1, index: o, name: w[2], strings: g, ctor: w[1] === "." ? Xl : w[1] === "?" ? Ql : w[1] === "@" ? ec : Qn }), i.removeAttribute(h);
|
|
367
367
|
} else h.startsWith(Gt) && (l.push({ type: 6, index: o }), i.removeAttribute(h));
|
|
368
368
|
if (ea.test(i.tagName)) {
|
|
369
369
|
const h = i.textContent.split(Gt), c = h.length - 1;
|
|
370
370
|
if (c > 0) {
|
|
371
371
|
i.textContent = Pn ? Pn.emptyScript : "";
|
|
372
|
-
for (let
|
|
372
|
+
for (let g = 0; g < c; g++) i.append(h[g], Hr()), or.nextNode(), l.push({ type: 2, index: ++o });
|
|
373
373
|
i.append(h[c], Hr());
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -757,7 +757,7 @@ const dc = 120, uc = 200, Hi = "PROGRESS", vt = "IDV", er = "idv-session-data",
|
|
|
757
757
|
const h = typeof d == "function" ? d(e) : d;
|
|
758
758
|
if (!Object.is(h, e)) {
|
|
759
759
|
const c = e;
|
|
760
|
-
e = (p != null ? p : typeof h != "object" || h === null) ? h : Object.assign({}, e, h), r.forEach((
|
|
760
|
+
e = (p != null ? p : typeof h != "object" || h === null) ? h : Object.assign({}, e, h), r.forEach((g) => g(e, c));
|
|
761
761
|
}
|
|
762
762
|
}, i = () => e, a = { setState: n, getState: i, getInitialState: () => l, subscribe: (d) => (r.add(d), () => r.delete(d)) }, l = e = t(n, i, a);
|
|
763
763
|
return a;
|
|
@@ -812,8 +812,8 @@ function Vn() {
|
|
|
812
812
|
Vn.__r = 0;
|
|
813
813
|
}
|
|
814
814
|
function ha(t, e, r, n, i, o, s, a, l, d, p) {
|
|
815
|
-
var h, c,
|
|
816
|
-
for (l = mc(r, e, C, l, b), h = 0; h < b; h++) (
|
|
815
|
+
var h, c, g, w, f, m, S, C = n && n.__k || da, b = e.length;
|
|
816
|
+
for (l = mc(r, e, C, l, b), h = 0; h < b; h++) (g = r.__k[h]) != null && (c = g.__i == -1 ? jr : C[g.__i] || jr, g.__i = h, m = ao(t, g, c, i, o, s, a, l, d, p), w = g.__e, g.ref && c.ref != g.ref && (c.ref && lo(c.ref, null, g), p.push(g.ref, g.__c || w, g)), f == null && w != null && (f = w), (S = !!(4 & g.__u)) || c.__k === g.__k ? l = pa(g, l, t, S) : typeof g.type == "function" && m !== void 0 ? l = m : w && (l = w.nextSibling), g.__u &= -7);
|
|
817
817
|
return r.__e = f, l;
|
|
818
818
|
}
|
|
819
819
|
function mc(t, e, r, n, i) {
|
|
@@ -879,30 +879,30 @@ function ts(t) {
|
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
881
|
function ao(t, e, r, n, i, o, s, a, l, d) {
|
|
882
|
-
var p, h, c,
|
|
882
|
+
var p, h, c, g, w, f, m, S, C, b, I, D, N, R, fe, _e, ae, Z = e.type;
|
|
883
883
|
if (e.constructor != null) return null;
|
|
884
884
|
128 & r.__u && (l = !!(32 & r.__u), o = [a = e.__e = r.__e]), (p = se.__b) && p(e);
|
|
885
885
|
e: if (typeof Z == "function") try {
|
|
886
|
-
if (S = e.props, C = "prototype" in Z && Z.prototype.render, b = (p = Z.contextType) && n[p.__c], I = p ? b ? b.props.value : p.__ : n, r.__c ? m = (h = e.__c = r.__c).__ = h.__E : (C ? e.__c = h = new Z(S, I) : (e.__c = h = new ht(S, I), h.constructor = Z, h.render = vc), b && b.sub(h), h.props = S, h.state || (h.state = {}), h.context = I, h.__n = n, c = h.__d = !0, h.__h = [], h._sb = []), C && h.__s == null && (h.__s = h.state), C && Z.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = gt({}, h.__s)), gt(h.__s, Z.getDerivedStateFromProps(S, h.__s))),
|
|
886
|
+
if (S = e.props, C = "prototype" in Z && Z.prototype.render, b = (p = Z.contextType) && n[p.__c], I = p ? b ? b.props.value : p.__ : n, r.__c ? m = (h = e.__c = r.__c).__ = h.__E : (C ? e.__c = h = new Z(S, I) : (e.__c = h = new ht(S, I), h.constructor = Z, h.render = vc), b && b.sub(h), h.props = S, h.state || (h.state = {}), h.context = I, h.__n = n, c = h.__d = !0, h.__h = [], h._sb = []), C && h.__s == null && (h.__s = h.state), C && Z.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = gt({}, h.__s)), gt(h.__s, Z.getDerivedStateFromProps(S, h.__s))), g = h.props, w = h.state, h.__v = e, c) C && Z.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), C && h.componentDidMount != null && h.__h.push(h.componentDidMount);
|
|
887
887
|
else {
|
|
888
|
-
if (C && Z.getDerivedStateFromProps == null && S !==
|
|
888
|
+
if (C && Z.getDerivedStateFromProps == null && S !== g && h.componentWillReceiveProps != null && h.componentWillReceiveProps(S, I), !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(S, h.__s, I) === !1 || e.__v == r.__v) {
|
|
889
889
|
for (e.__v != r.__v && (h.props = S, h.state = h.__s, h.__d = !1), e.__e = r.__e, e.__k = r.__k, e.__k.some(function(H) {
|
|
890
890
|
H && (H.__ = e);
|
|
891
|
-
}),
|
|
891
|
+
}), D = 0; D < h._sb.length; D++) h.__h.push(h._sb[D]);
|
|
892
892
|
h._sb = [], h.__h.length && s.push(h);
|
|
893
893
|
break e;
|
|
894
894
|
}
|
|
895
895
|
h.componentWillUpdate != null && h.componentWillUpdate(S, h.__s, I), C && h.componentDidUpdate != null && h.__h.push(function() {
|
|
896
|
-
h.componentDidUpdate(
|
|
896
|
+
h.componentDidUpdate(g, w, f);
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
|
-
if (h.context = I, h.props = S, h.__P = t, h.__e = !1,
|
|
900
|
-
for (h.state = h.__s, h.__d = !1,
|
|
899
|
+
if (h.context = I, h.props = S, h.__P = t, h.__e = !1, N = se.__r, R = 0, C) {
|
|
900
|
+
for (h.state = h.__s, h.__d = !1, N && N(e), p = h.render(h.props, h.state, h.context), fe = 0; fe < h._sb.length; fe++) h.__h.push(h._sb[fe]);
|
|
901
901
|
h._sb = [];
|
|
902
902
|
} else do
|
|
903
|
-
h.__d = !1,
|
|
903
|
+
h.__d = !1, N && N(e), p = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
904
904
|
while (h.__d && ++R < 25);
|
|
905
|
-
h.state = h.__s, h.getChildContext != null && (n = gt(gt({}, n), h.getChildContext())), C && !c && h.getSnapshotBeforeUpdate != null && (f = h.getSnapshotBeforeUpdate(
|
|
905
|
+
h.state = h.__s, h.getChildContext != null && (n = gt(gt({}, n), h.getChildContext())), C && !c && h.getSnapshotBeforeUpdate != null && (f = h.getSnapshotBeforeUpdate(g, w)), _e = p, p != null && p.type === We && p.key == null && (_e = ma(p.props.children)), a = ha(t, Gr(_e) ? _e : [_e], e, r, n, i, o, s, a, l, d), h.base = e.__e, e.__u &= -161, h.__h.length && s.push(h), m && (h.__E = h.__ = null);
|
|
906
906
|
} catch (H) {
|
|
907
907
|
if (e.__v = null, l || o != null) if (H.then) {
|
|
908
908
|
for (e.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
@@ -936,10 +936,10 @@ function ma(t) {
|
|
|
936
936
|
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Gr(t) ? t.map(ma) : gt({}, t);
|
|
937
937
|
}
|
|
938
938
|
function wc(t, e, r, n, i, o, s, a, l) {
|
|
939
|
-
var d, p, h, c,
|
|
939
|
+
var d, p, h, c, g, w, f, m = r.props, S = e.props, C = e.type;
|
|
940
940
|
if (C == "svg" ? i = "http://www.w3.org/2000/svg" : C == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
941
|
-
for (d = 0; d < o.length; d++) if ((
|
|
942
|
-
t =
|
|
941
|
+
for (d = 0; d < o.length; d++) if ((g = o[d]) && "setAttribute" in g == !!C && (C ? g.localName == C : g.nodeType == 3)) {
|
|
942
|
+
t = g, o[d] = null;
|
|
943
943
|
break;
|
|
944
944
|
}
|
|
945
945
|
}
|
|
@@ -949,18 +949,18 @@ function wc(t, e, r, n, i, o, s, a, l) {
|
|
|
949
949
|
}
|
|
950
950
|
if (C == null) m === S || a && t.data == S || (t.data = S);
|
|
951
951
|
else {
|
|
952
|
-
if (o = o && Kr.call(t.childNodes), m = r.props || jr, !a && o != null) for (m = {}, d = 0; d < t.attributes.length; d++) m[(
|
|
953
|
-
for (d in m) if (
|
|
954
|
-
if (d == "dangerouslySetInnerHTML") h =
|
|
952
|
+
if (o = o && Kr.call(t.childNodes), m = r.props || jr, !a && o != null) for (m = {}, d = 0; d < t.attributes.length; d++) m[(g = t.attributes[d]).name] = g.value;
|
|
953
|
+
for (d in m) if (g = m[d], d != "children") {
|
|
954
|
+
if (d == "dangerouslySetInnerHTML") h = g;
|
|
955
955
|
else if (!(d in S)) {
|
|
956
956
|
if (d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S) continue;
|
|
957
|
-
An(t, d, null,
|
|
957
|
+
An(t, d, null, g, i);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
for (d in S)
|
|
960
|
+
for (d in S) g = S[d], d == "children" ? c = g : d == "dangerouslySetInnerHTML" ? p = g : d == "value" ? w = g : d == "checked" ? f = g : a && typeof g != "function" || m[d] === g || An(t, d, g, m[d], i);
|
|
961
961
|
if (p) a || h && (p.__html == h.__html || p.__html == t.innerHTML) || (t.innerHTML = p.__html), e.__k = [];
|
|
962
962
|
else if (h && (t.innerHTML = ""), ha(e.type == "template" ? t.content : t, Gr(c) ? c : [c], e, r, n, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, s, o ? o[0] : r.__k && br(r, 0), a, l), o != null) for (d = o.length; d--; ) so(o[d]);
|
|
963
|
-
a || (d = "value", C == "progress" &&
|
|
963
|
+
a || (d = "value", C == "progress" && w == null ? t.removeAttribute("value") : w != null && (w !== t[d] || C == "progress" && !w || C == "option" && w != m[d]) && An(t, d, w, m[d], i), d = "checked", f != null && f != t[d] && An(t, d, f, m[d], i));
|
|
964
964
|
}
|
|
965
965
|
return t;
|
|
966
966
|
}
|
|
@@ -1066,8 +1066,8 @@ function ti(t, e, r) {
|
|
|
1066
1066
|
var h = n.__c.props !== a;
|
|
1067
1067
|
return p.forEach(function(c) {
|
|
1068
1068
|
if (c.__N) {
|
|
1069
|
-
var
|
|
1070
|
-
c.__ = c.__N, c.__N = void 0,
|
|
1069
|
+
var g = c.__[0];
|
|
1070
|
+
c.__ = c.__N, c.__N = void 0, g !== c.__[0] && (h = !0);
|
|
1071
1071
|
}
|
|
1072
1072
|
}), o && o.call(this, a, l, d) || h;
|
|
1073
1073
|
};
|
|
@@ -1592,7 +1592,7 @@ var Rr = { exports: {} }, jc = Rr.exports, vs;
|
|
|
1592
1592
|
function zc() {
|
|
1593
1593
|
return vs || (vs = 1, (function(t, e) {
|
|
1594
1594
|
(function(r, n) {
|
|
1595
|
-
var i = "1.0.41", o = "", s = "?", a = "function", l = "undefined", d = "object", p = "string", h = "major", c = "model",
|
|
1595
|
+
var i = "1.0.41", o = "", s = "?", a = "function", l = "undefined", d = "object", p = "string", h = "major", c = "model", g = "name", w = "type", f = "vendor", m = "version", S = "architecture", C = "console", b = "mobile", I = "tablet", D = "smarttv", N = "wearable", R = "embedded", fe = 500, _e = "Amazon", ae = "Apple", Z = "ASUS", H = "BlackBerry", K = "Browser", de = "Chrome", le = "Edge", we = "Firefox", ve = "Google", ee = "Honor", z = "Huawei", U = "Lenovo", Y = "LG", te = "Microsoft", Se = "Motorola", re = "Nvidia", $ = "OnePlus", Q = "Opera", $e = "OPPO", je = "Samsung", ot = "Sharp", Xe = "Sony", yt = "Xiaomi", st = "Zebra", Ht = "Facebook", bt = "Chromium OS", pt = "Mac OS", Ct = " Browser", Wt = function(J, oe) {
|
|
1596
1596
|
var j = {};
|
|
1597
1597
|
for (var me in J)
|
|
1598
1598
|
oe[me] && oe[me].length % 2 === 0 ? j[me] = oe[me].concat(J[me]) : j[me] = J[me];
|
|
@@ -1628,25 +1628,25 @@ function zc() {
|
|
|
1628
1628
|
} else if (tt(oe[j], J))
|
|
1629
1629
|
return j === s ? n : j;
|
|
1630
1630
|
return oe.hasOwnProperty("*") ? oe["*"] : J;
|
|
1631
|
-
}, P = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, W = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, ne = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [m, [w, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [m, [w, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [w, m], [/opios[\/ ]+([\w\.]+)/i], [m, [w, Q + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [m, [w, Q + " GX"]], [/\bopr\/([\w\.]+)/i], [m, [w, Q]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [m, [w, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [m, [w, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [w, m], [/quark(?:pc)?\/([-\w\.]+)/i], [m, [w, "Quark"]], [/\bddg\/([\w\.]+)/i], [m, [w, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [m, [w, "UC" + K]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [m, [w, "WeChat"]], [/konqueror\/([\w\.]+)/i], [m, [w, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [m, [w, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [m, [w, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [m, [w, "Smart Lenovo " + K]], [/(avast|avg)\/([\w\.]+)/i], [[w, /(.+)/, "$1 Secure " + K], m], [/\bfocus\/([\w\.]+)/i], [m, [w, we + " Focus"]], [/\bopt\/([\w\.]+)/i], [m, [w, Q + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [m, [w, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [m, [w, "Dolphin"]], [/coast\/([\w\.]+)/i], [m, [w, Q + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [m, [w, "MIUI" + Ct]], [/fxios\/([\w\.-]+)/i], [m, [w, we]], [/\bqihoobrowser\/?([\w\.]*)/i], [m, [w, "360"]], [/\b(qq)\/([\w\.]+)/i], [[w, /(.+)/, "$1Browser"], m], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[w, /(.+)/, "$1" + Ct], m], [/samsungbrowser\/([\w\.]+)/i], [m, [w, je + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [m, [w, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[w, "Sogou Mobile"], m], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [w, m], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [w], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [m, w], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[w, Ht], m], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [w, m], [/\bgsa\/([\w\.]+) .*safari\//i], [m, [w, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [m, [w, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [m, [w, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[w, de + " WebView"], m], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [m, [w, "Android " + K]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [w, m], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [m, [w, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [m, w], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [w, [m, M, P]], [/(webkit|khtml)\/([\w\.]+)/i], [w, m], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[w, "Netscape"], m], [/(wolvic|librewolf)\/([\w\.]+)/i], [w, m], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [m, [w, we + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [w, [m, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [w, [m, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[S, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[S, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[S, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[S, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[S, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[S, /ower/, o, y]], [/ sun4\w[;\)]/i], [[S, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[S, y]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [c, [f, je], [g, I]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [f, je], [g, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [f, ae], [g, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [f, ae], [g, I]], [/(macintosh);/i], [c, [f, ae]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [f, ot], [g, b]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [f, ee], [g, I]], [/honor([-\w ]+)[;\)]/i], [c, [f, ee], [g, b]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [c, [f, z], [g, I]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [f, z], [g, b]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [f, yt], [g, I]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[c, /_/g, " "], [f, yt], [g, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [f, $e], [g, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [f, M, { OnePlus: ["304", "403", "203"], "*": $e }], [g, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [f, "Vivo"], [g, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [f, "Realme"], [g, b]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [c, [f, Se], [g, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [f, Se], [g, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [f, Y], [g, I]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [f, Y], [g, b]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [c, [f, U], [g, I]], [/(nokia) (t[12][01])/i], [f, c, [g, I]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [g, b], [f, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [f, ve], [g, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [f, ve], [g, b]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [c, [f, Xe], [g, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [f, Xe], [g, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [f, $], [g, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [f, _e], [g, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [f, _e], [g, b]], [/(playbook);[-\w\),; ]+(rim)/i], [c, f, [g, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [f, H], [g, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [f, Z], [g, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [f, Z], [g, b]], [/(nexus 9)/i], [c, [f, "HTC"], [g, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [c, /_/g, " "], [g, b]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [c, [f, "TCL"], [g, I]], [/(itel) ((\w+))/i], [[f, y], c, [g, M, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [f, "Acer"], [g, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [f, "Meizu"], [g, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [f, "Ulefone"], [g, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [f, "Energizer"], [g, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [f, "Cat"], [g, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [f, "Smartfren"], [g, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [f, "Nothing"], [g, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [f, "Archos"], [g, I]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [f, "Archos"], [g, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [f, c, [g, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [f, c, [g, b]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, c, [g, I]], [/(surface duo)/i], [c, [f, te], [g, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [f, "Fairphone"], [g, b]], [/(u304aa)/i], [c, [f, "AT&T"], [g, b]], [/\bsie-(\w*)/i], [c, [f, "Siemens"], [g, b]], [/\b(rct\w+) b/i], [c, [f, "RCA"], [g, I]], [/\b(venue[\d ]{2,7}) b/i], [c, [f, "Dell"], [g, I]], [/\b(q(?:mv|ta)\w+) b/i], [c, [f, "Verizon"], [g, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [f, "Barnes & Noble"], [g, I]], [/\b(tm\d{3}\w+) b/i], [c, [f, "NuVision"], [g, I]], [/\b(k88) b/i], [c, [f, "ZTE"], [g, I]], [/\b(nx\d{3}j) b/i], [c, [f, "ZTE"], [g, b]], [/\b(gen\d{3}) b.+49h/i], [c, [f, "Swiss"], [g, b]], [/\b(zur\d{3}) b/i], [c, [f, "Swiss"], [g, I]], [/\b((zeki)?tb.*\b) b/i], [c, [f, "Zeki"], [g, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], c, [g, I]], [/\b(ns-?\w{0,9}) b/i], [c, [f, "Insignia"], [g, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [f, "NextBook"], [g, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], c, [g, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], c, [g, b]], [/\b(ph-1) /i], [c, [f, "Essential"], [g, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [f, "Envizen"], [g, I]], [/\b(trio[-\w\. ]+) b/i], [c, [f, "MachSpeed"], [g, I]], [/\btu_(1491) b/i], [c, [f, "Rotor"], [g, I]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [f, re], [g, I]], [/(sprint) (\w+)/i], [f, c, [g, b]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [f, te], [g, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [f, st], [g, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [f, st], [g, b]], [/smart-tv.+(samsung)/i], [f, [g, N]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [f, je], [g, N]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, Y], [g, N]], [/(apple) ?tv/i], [f, [c, ae + " TV"], [g, N]], [/crkey/i], [[c, de + "cast"], [f, ve], [g, N]], [/droid.+aft(\w+)( bui|\))/i], [c, [f, _e], [g, N]], [/(shield \w+ tv)/i], [c, [f, re], [g, N]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [f, ot], [g, N]], [/(bravia[\w ]+)( bui|\))/i], [c, [f, Xe], [g, N]], [/(mi(tv|box)-?\w+) bui/i], [c, [f, yt], [g, N]], [/Hbbtv.*(technisat) (.*);/i], [f, c, [g, N]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, x], [c, x], [g, N]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [g, N]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[g, N]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, c, [g, C]], [/droid.+; (shield)( bui|\))/i], [c, [f, re], [g, C]], [/(playstation \w+)/i], [c, [f, Xe], [g, C]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [f, te], [g, C]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [f, je], [g, D]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [f, c, [g, D]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [f, $e], [g, D]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [f, ae], [g, D]], [/(opwwe\d{3})/i], [c, [f, $], [g, D]], [/(moto 360)/i], [c, [f, Se], [g, D]], [/(smartwatch 3)/i], [c, [f, Xe], [g, D]], [/(g watch r)/i], [c, [f, Y], [g, D]], [/droid.+; (wt63?0{2,3})\)/i], [c, [f, st], [g, D]], [/droid.+; (glass) \d/i], [c, [f, ve], [g, D]], [/(pico) (4|neo3(?: link|pro)?)/i], [f, c, [g, D]], [/; (quest( \d| pro)?)/i], [c, [f, Ht], [g, D]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [g, R]], [/(aeobc)\b/i], [c, [f, _e], [g, R]], [/(homepod).+mac os/i], [c, [f, ae], [g, R]], [/windows iot/i], [[g, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [g, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [g, I]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[g, I]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[g, b]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [w, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [w, m], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [m, [w, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [w, m], [/ladybird\//i], [[w, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [m, w]], os: [[/microsoft (windows) (vista|xp)/i], [w, m], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [w, [m, M, W]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[m, M, W], [w, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[m, /_/g, "."], [w, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[w, pt], [m, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [m, w], [/(ubuntu) ([\w\.]+) like android/i], [[w, /(.+)/, "$1 Touch"], m], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [w, m], [/\(bb(10);/i], [m, [w, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [m, [w, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [m, [w, we + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [m, [w, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [m, [w, "watchOS"]], [/crkey\/([\d\.]+)/i], [m, [w, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[w, bt], m], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [w, m], [/(sunos) ?([\w\.\d]*)/i], [[w, "Solaris"], m], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [w, m]] }, G = function(J, oe) {
|
|
1631
|
+
}, P = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, W = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, ne = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [m, [g, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [m, [g, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [g, m], [/opios[\/ ]+([\w\.]+)/i], [m, [g, Q + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [m, [g, Q + " GX"]], [/\bopr\/([\w\.]+)/i], [m, [g, Q]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [m, [g, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [m, [g, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [g, m], [/quark(?:pc)?\/([-\w\.]+)/i], [m, [g, "Quark"]], [/\bddg\/([\w\.]+)/i], [m, [g, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [m, [g, "UC" + K]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [m, [g, "WeChat"]], [/konqueror\/([\w\.]+)/i], [m, [g, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [m, [g, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [m, [g, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [m, [g, "Smart Lenovo " + K]], [/(avast|avg)\/([\w\.]+)/i], [[g, /(.+)/, "$1 Secure " + K], m], [/\bfocus\/([\w\.]+)/i], [m, [g, we + " Focus"]], [/\bopt\/([\w\.]+)/i], [m, [g, Q + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [m, [g, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [m, [g, "Dolphin"]], [/coast\/([\w\.]+)/i], [m, [g, Q + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [m, [g, "MIUI" + Ct]], [/fxios\/([\w\.-]+)/i], [m, [g, we]], [/\bqihoobrowser\/?([\w\.]*)/i], [m, [g, "360"]], [/\b(qq)\/([\w\.]+)/i], [[g, /(.+)/, "$1Browser"], m], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[g, /(.+)/, "$1" + Ct], m], [/samsungbrowser\/([\w\.]+)/i], [m, [g, je + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [m, [g, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[g, "Sogou Mobile"], m], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [g, m], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [g], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [m, g], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[g, Ht], m], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [g, m], [/\bgsa\/([\w\.]+) .*safari\//i], [m, [g, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [m, [g, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [m, [g, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[g, de + " WebView"], m], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [m, [g, "Android " + K]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [g, m], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [m, [g, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [m, g], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [g, [m, M, P]], [/(webkit|khtml)\/([\w\.]+)/i], [g, m], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[g, "Netscape"], m], [/(wolvic|librewolf)\/([\w\.]+)/i], [g, m], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [m, [g, we + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [g, [m, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [g, [m, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[S, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[S, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[S, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[S, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[S, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[S, /ower/, o, y]], [/ sun4\w[;\)]/i], [[S, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[S, y]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [c, [f, je], [w, I]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [f, je], [w, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [f, ae], [w, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [f, ae], [w, I]], [/(macintosh);/i], [c, [f, ae]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [f, ot], [w, b]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [f, ee], [w, I]], [/honor([-\w ]+)[;\)]/i], [c, [f, ee], [w, b]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [c, [f, z], [w, I]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [f, z], [w, b]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [f, yt], [w, I]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[c, /_/g, " "], [f, yt], [w, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [f, $e], [w, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [f, M, { OnePlus: ["304", "403", "203"], "*": $e }], [w, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [f, "Vivo"], [w, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [f, "Realme"], [w, b]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [c, [f, Se], [w, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [f, Se], [w, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [f, Y], [w, I]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [f, Y], [w, b]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [c, [f, U], [w, I]], [/(nokia) (t[12][01])/i], [f, c, [w, I]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [w, b], [f, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [f, ve], [w, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [f, ve], [w, b]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [c, [f, Xe], [w, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [f, Xe], [w, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [f, $], [w, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [f, _e], [w, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [f, _e], [w, b]], [/(playbook);[-\w\),; ]+(rim)/i], [c, f, [w, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [f, H], [w, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [f, Z], [w, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [f, Z], [w, b]], [/(nexus 9)/i], [c, [f, "HTC"], [w, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [c, /_/g, " "], [w, b]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [c, [f, "TCL"], [w, I]], [/(itel) ((\w+))/i], [[f, y], c, [w, M, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [f, "Acer"], [w, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [f, "Meizu"], [w, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [f, "Ulefone"], [w, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [f, "Energizer"], [w, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [f, "Cat"], [w, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [f, "Smartfren"], [w, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [f, "Nothing"], [w, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [f, "Archos"], [w, I]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [f, "Archos"], [w, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [f, c, [w, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [f, c, [w, b]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, c, [w, I]], [/(surface duo)/i], [c, [f, te], [w, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [f, "Fairphone"], [w, b]], [/(u304aa)/i], [c, [f, "AT&T"], [w, b]], [/\bsie-(\w*)/i], [c, [f, "Siemens"], [w, b]], [/\b(rct\w+) b/i], [c, [f, "RCA"], [w, I]], [/\b(venue[\d ]{2,7}) b/i], [c, [f, "Dell"], [w, I]], [/\b(q(?:mv|ta)\w+) b/i], [c, [f, "Verizon"], [w, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [f, "Barnes & Noble"], [w, I]], [/\b(tm\d{3}\w+) b/i], [c, [f, "NuVision"], [w, I]], [/\b(k88) b/i], [c, [f, "ZTE"], [w, I]], [/\b(nx\d{3}j) b/i], [c, [f, "ZTE"], [w, b]], [/\b(gen\d{3}) b.+49h/i], [c, [f, "Swiss"], [w, b]], [/\b(zur\d{3}) b/i], [c, [f, "Swiss"], [w, I]], [/\b((zeki)?tb.*\b) b/i], [c, [f, "Zeki"], [w, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], c, [w, I]], [/\b(ns-?\w{0,9}) b/i], [c, [f, "Insignia"], [w, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [f, "NextBook"], [w, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], c, [w, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], c, [w, b]], [/\b(ph-1) /i], [c, [f, "Essential"], [w, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [f, "Envizen"], [w, I]], [/\b(trio[-\w\. ]+) b/i], [c, [f, "MachSpeed"], [w, I]], [/\btu_(1491) b/i], [c, [f, "Rotor"], [w, I]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [f, re], [w, I]], [/(sprint) (\w+)/i], [f, c, [w, b]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [f, te], [w, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [f, st], [w, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [f, st], [w, b]], [/smart-tv.+(samsung)/i], [f, [w, D]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [f, je], [w, D]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, Y], [w, D]], [/(apple) ?tv/i], [f, [c, ae + " TV"], [w, D]], [/crkey/i], [[c, de + "cast"], [f, ve], [w, D]], [/droid.+aft(\w+)( bui|\))/i], [c, [f, _e], [w, D]], [/(shield \w+ tv)/i], [c, [f, re], [w, D]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [f, ot], [w, D]], [/(bravia[\w ]+)( bui|\))/i], [c, [f, Xe], [w, D]], [/(mi(tv|box)-?\w+) bui/i], [c, [f, yt], [w, D]], [/Hbbtv.*(technisat) (.*);/i], [f, c, [w, D]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, x], [c, x], [w, D]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [w, D]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[w, D]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, c, [w, C]], [/droid.+; (shield)( bui|\))/i], [c, [f, re], [w, C]], [/(playstation \w+)/i], [c, [f, Xe], [w, C]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [f, te], [w, C]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [f, je], [w, N]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [f, c, [w, N]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [f, $e], [w, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [f, ae], [w, N]], [/(opwwe\d{3})/i], [c, [f, $], [w, N]], [/(moto 360)/i], [c, [f, Se], [w, N]], [/(smartwatch 3)/i], [c, [f, Xe], [w, N]], [/(g watch r)/i], [c, [f, Y], [w, N]], [/droid.+; (wt63?0{2,3})\)/i], [c, [f, st], [w, N]], [/droid.+; (glass) \d/i], [c, [f, ve], [w, N]], [/(pico) (4|neo3(?: link|pro)?)/i], [f, c, [w, N]], [/; (quest( \d| pro)?)/i], [c, [f, Ht], [w, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [w, R]], [/(aeobc)\b/i], [c, [f, _e], [w, R]], [/(homepod).+mac os/i], [c, [f, ae], [w, R]], [/windows iot/i], [[w, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [w, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [w, I]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[w, I]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[w, b]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [g, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [g, m], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [m, [g, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [g, m], [/ladybird\//i], [[g, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [m, g]], os: [[/microsoft (windows) (vista|xp)/i], [g, m], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [g, [m, M, W]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[m, M, W], [g, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[m, /_/g, "."], [g, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[g, pt], [m, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [m, g], [/(ubuntu) ([\w\.]+) like android/i], [[g, /(.+)/, "$1 Touch"], m], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [g, m], [/\(bb(10);/i], [m, [g, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [m, [g, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [m, [g, we + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [m, [g, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [m, [g, "watchOS"]], [/crkey\/([\d\.]+)/i], [m, [g, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[g, bt], m], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [g, m], [/(sunos) ?([\w\.\d]*)/i], [[g, "Solaris"], m], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [g, m]] }, G = function(J, oe) {
|
|
1632
1632
|
if (typeof J === d && (oe = J, J = n), !(this instanceof G))
|
|
1633
1633
|
return new G(J, oe).getResult();
|
|
1634
1634
|
var j = typeof r !== l && r.navigator ? r.navigator : n, me = J || (j && j.userAgent ? j.userAgent : o), Be = j && j.userAgentData ? j.userAgentData : n, Ae = oe ? Wt(ne, oe) : ne, he = j && j.userAgent == me;
|
|
1635
1635
|
return this.getBrowser = function() {
|
|
1636
1636
|
var q = {};
|
|
1637
|
-
return q[
|
|
1637
|
+
return q[g] = n, q[m] = n, V.call(q, me, Ae.browser), q[h] = T(q[m]), he && j && j.brave && typeof j.brave.isBrave == a && (q[g] = "Brave"), q;
|
|
1638
1638
|
}, this.getCPU = function() {
|
|
1639
1639
|
var q = {};
|
|
1640
1640
|
return q[S] = n, V.call(q, me, Ae.cpu), q;
|
|
1641
1641
|
}, this.getDevice = function() {
|
|
1642
1642
|
var q = {};
|
|
1643
|
-
return q[f] = n, q[c] = n, q[
|
|
1643
|
+
return q[f] = n, q[c] = n, q[w] = n, V.call(q, me, Ae.device), he && !q[w] && Be && Be.mobile && (q[w] = b), he && q[c] == "Macintosh" && j && typeof j.standalone !== l && j.maxTouchPoints && j.maxTouchPoints > 2 && (q[c] = "iPad", q[w] = I), q;
|
|
1644
1644
|
}, this.getEngine = function() {
|
|
1645
1645
|
var q = {};
|
|
1646
|
-
return q[
|
|
1646
|
+
return q[g] = n, q[m] = n, V.call(q, me, Ae.engine), q;
|
|
1647
1647
|
}, this.getOS = function() {
|
|
1648
1648
|
var q = {};
|
|
1649
|
-
return q[
|
|
1649
|
+
return q[g] = n, q[m] = n, V.call(q, me, Ae.os), he && !q[g] && Be && Be.platform && Be.platform != "Unknown" && (q[g] = Be.platform.replace(/chrome os/i, bt).replace(/macos/i, pt)), q;
|
|
1650
1650
|
}, this.getResult = function() {
|
|
1651
1651
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1652
1652
|
}, this.getUA = function() {
|
|
@@ -1655,7 +1655,7 @@ function zc() {
|
|
|
1655
1655
|
return me = typeof q === p && q.length > fe ? x(q, fe) : q, this;
|
|
1656
1656
|
}, this.setUA(me), this;
|
|
1657
1657
|
};
|
|
1658
|
-
G.VERSION = i, G.BROWSER = _t([
|
|
1658
|
+
G.VERSION = i, G.BROWSER = _t([g, m, h]), G.CPU = _t([S]), G.DEVICE = _t([c, f, w, C, b, D, I, N, R]), G.ENGINE = G.OS = _t([g, m]), t.exports && (e = t.exports = G), e.UAParser = G;
|
|
1659
1659
|
var ge = typeof r !== l && (r.jQuery || r.Zepto);
|
|
1660
1660
|
if (ge && !ge.ua) {
|
|
1661
1661
|
var Pe = new G();
|
|
@@ -1698,7 +1698,7 @@ function Kc() {
|
|
|
1698
1698
|
return v.setUA(k);
|
|
1699
1699
|
}
|
|
1700
1700
|
};
|
|
1701
|
-
},
|
|
1701
|
+
}, g = /* @__PURE__ */ Object.freeze({
|
|
1702
1702
|
ClientUAInstance: i,
|
|
1703
1703
|
browser: o,
|
|
1704
1704
|
cpu: s,
|
|
@@ -1709,7 +1709,7 @@ function Kc() {
|
|
|
1709
1709
|
setUa: h,
|
|
1710
1710
|
parseUserAgent: c
|
|
1711
1711
|
});
|
|
1712
|
-
function
|
|
1712
|
+
function w(E, _) {
|
|
1713
1713
|
var v = Object.keys(E);
|
|
1714
1714
|
if (Object.getOwnPropertySymbols) {
|
|
1715
1715
|
var A = Object.getOwnPropertySymbols(E);
|
|
@@ -1722,9 +1722,9 @@ function Kc() {
|
|
|
1722
1722
|
function f(E) {
|
|
1723
1723
|
for (var _ = 1; _ < arguments.length; _++) {
|
|
1724
1724
|
var v = arguments[_] != null ? arguments[_] : {};
|
|
1725
|
-
_ % 2 ?
|
|
1725
|
+
_ % 2 ? w(Object(v), !0).forEach(function(A) {
|
|
1726
1726
|
I(E, A, v[A]);
|
|
1727
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(E, Object.getOwnPropertyDescriptors(v)) :
|
|
1727
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(E, Object.getOwnPropertyDescriptors(v)) : w(Object(v)).forEach(function(A) {
|
|
1728
1728
|
Object.defineProperty(E, A, Object.getOwnPropertyDescriptor(v, A));
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
@@ -1759,17 +1759,17 @@ function Kc() {
|
|
|
1759
1759
|
writable: !0
|
|
1760
1760
|
}) : E[_] = v, E;
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return
|
|
1762
|
+
function D() {
|
|
1763
|
+
return D = Object.assign || function(E) {
|
|
1764
1764
|
for (var _ = 1; _ < arguments.length; _++) {
|
|
1765
1765
|
var v = arguments[_];
|
|
1766
1766
|
for (var A in v)
|
|
1767
1767
|
Object.prototype.hasOwnProperty.call(v, A) && (E[A] = v[A]);
|
|
1768
1768
|
}
|
|
1769
1769
|
return E;
|
|
1770
|
-
},
|
|
1770
|
+
}, D.apply(this, arguments);
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function N(E, _) {
|
|
1773
1773
|
if (typeof _ != "function" && _ !== null)
|
|
1774
1774
|
throw new TypeError("Super expression must either be null or a function");
|
|
1775
1775
|
E.prototype = Object.create(_ && _.prototype, {
|
|
@@ -1999,7 +1999,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1999
1999
|
};
|
|
2000
2000
|
};
|
|
2001
2001
|
function bt(E) {
|
|
2002
|
-
var _ = E ? c(E) :
|
|
2002
|
+
var _ = E ? c(E) : g, v = _.device, A = _.browser, k = _.engine, pe = _.os, xe = _.ua, Ze = Se(v.type), On = Ze.isBrowser, Nl = Ze.isMobile, Dl = Ze.isTablet, Po = Ze.isSmartTV, Fo = Ze.isConsole, Uo = Ze.isWearable, Lo = Ze.isEmbedded;
|
|
2003
2003
|
if (On)
|
|
2004
2004
|
return je(On, A, k, pe, xe);
|
|
2005
2005
|
if (Po)
|
|
@@ -2133,7 +2133,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2133
2133
|
return $(_);
|
|
2134
2134
|
};
|
|
2135
2135
|
function fn(E) {
|
|
2136
|
-
var _ = E ||
|
|
2136
|
+
var _ = E || g, v = _.device, A = _.browser, k = _.os, pe = _.engine, xe = _.ua;
|
|
2137
2137
|
return {
|
|
2138
2138
|
isSmartTV: _t(v),
|
|
2139
2139
|
isConsole: T(v),
|
|
@@ -2236,7 +2236,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2236
2236
|
};
|
|
2237
2237
|
function xl(E) {
|
|
2238
2238
|
return /* @__PURE__ */ (function(_) {
|
|
2239
|
-
|
|
2239
|
+
N(v, _);
|
|
2240
2240
|
function v(A) {
|
|
2241
2241
|
var k;
|
|
2242
2242
|
return S(this, v), k = H(this, R(v).call(this, A)), k.isEventListenerAdded = !1, k.handleOrientationChange = k.handleOrientationChange.bind(Z(k)), k.onOrientationChange = k.onOrientationChange.bind(Z(k)), k.onPageLoad = k.onPageLoad.bind(Z(k)), k.state = {
|
|
@@ -2277,7 +2277,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2277
2277
|
}, {
|
|
2278
2278
|
key: "render",
|
|
2279
2279
|
value: function() {
|
|
2280
|
-
return r.createElement(E,
|
|
2280
|
+
return r.createElement(E, D({}, this.props, {
|
|
2281
2281
|
isLandscape: this.state.isLandscape,
|
|
2282
2282
|
isPortrait: this.state.isPortrait
|
|
2283
2283
|
}));
|
|
@@ -2573,22 +2573,50 @@ const Es = () => {
|
|
|
2573
2573
|
} catch (t) {
|
|
2574
2574
|
return window.location.origin;
|
|
2575
2575
|
}
|
|
2576
|
-
}, pd = (t) =>
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2576
|
+
}, pd = (t) => {
|
|
2577
|
+
const e = ad(fc);
|
|
2578
|
+
return {
|
|
2579
|
+
deviceId: e,
|
|
2580
|
+
metadata: {
|
|
2581
|
+
platform: "browser",
|
|
2582
|
+
osVersion: `${Je.osVersion}`,
|
|
2583
|
+
hostAppId: Es(),
|
|
2584
|
+
host: Es(),
|
|
2585
|
+
sdkVersion: "3.2.256-nightly".trim(),
|
|
2586
|
+
name: navigator.userAgent,
|
|
2587
|
+
deviceModel: `${Je.osName}/${Je.osVersion} ${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
2588
|
+
hostAppVersion: `${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
2589
|
+
userID: e
|
|
2590
|
+
},
|
|
2591
|
+
deviceType: "browser",
|
|
2592
|
+
heartbeatCadence: 0,
|
|
2593
|
+
serial: "",
|
|
2594
|
+
macAddress: ""
|
|
2595
|
+
};
|
|
2596
|
+
};
|
|
2597
|
+
function _d() {
|
|
2598
|
+
return F(this, null, function* () {
|
|
2599
|
+
if (typeof navigator == "undefined" || !("geolocation" in navigator)) return null;
|
|
2600
|
+
try {
|
|
2601
|
+
return !("permissions" in navigator) || (yield navigator.permissions.query({
|
|
2602
|
+
name: "geolocation"
|
|
2603
|
+
})).state !== "granted" ? null : yield new Promise((e) => {
|
|
2604
|
+
navigator.geolocation.getCurrentPosition(
|
|
2605
|
+
(r) => {
|
|
2606
|
+
e({
|
|
2607
|
+
lat: r.coords.latitude,
|
|
2608
|
+
lon: r.coords.longitude
|
|
2609
|
+
});
|
|
2610
|
+
},
|
|
2611
|
+
() => e(null)
|
|
2612
|
+
);
|
|
2613
|
+
});
|
|
2614
|
+
} catch (t) {
|
|
2615
|
+
return null;
|
|
2616
|
+
}
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
const Ts = {
|
|
2592
2620
|
apiKeyAuthTokenCollection: {},
|
|
2593
2621
|
sessionProperties: [],
|
|
2594
2622
|
currentSessionData: null,
|
|
@@ -2606,7 +2634,7 @@ const Es = () => {
|
|
|
2606
2634
|
startConfig: {},
|
|
2607
2635
|
listener: () => {
|
|
2608
2636
|
}
|
|
2609
|
-
},
|
|
2637
|
+
}, md = (t, e) => X(O({}, Ts), {
|
|
2610
2638
|
setApiKeyAuthTokenCollection: (r, n, i) => {
|
|
2611
2639
|
t({ apiKeyAuthTokenCollection: {
|
|
2612
2640
|
authToken: n,
|
|
@@ -2710,9 +2738,9 @@ class Ce {
|
|
|
2710
2738
|
return this.underlyingBaseError instanceof Ce && (e += `-${this.underlyingBaseError.fullChain}`), e;
|
|
2711
2739
|
}
|
|
2712
2740
|
}
|
|
2713
|
-
class
|
|
2741
|
+
class gd extends HTMLElement {
|
|
2714
2742
|
}
|
|
2715
|
-
function
|
|
2743
|
+
function wd(t, e) {
|
|
2716
2744
|
if (e.displayName ? console.log(`Register module: ${e.displayName}`) : console.error('Missed "displayName" when register module'), e.getSupportedTemplates && typeof e.getSupportedTemplates == "function") {
|
|
2717
2745
|
const r = e.getSupportedTemplates();
|
|
2718
2746
|
console.log(`${e == null ? void 0 : e.displayName} supported templates: ${r.join(", ")}`);
|
|
@@ -2997,12 +3025,12 @@ class wr {
|
|
|
2997
3025
|
}
|
|
2998
3026
|
}
|
|
2999
3027
|
const dt = wr.getInstance();
|
|
3000
|
-
var
|
|
3028
|
+
var vd = 0;
|
|
3001
3029
|
function u(t, e, r, n, i, o) {
|
|
3002
3030
|
e || (e = {});
|
|
3003
3031
|
var s, a, l = e;
|
|
3004
3032
|
if ("ref" in l) for (a in l = {}, e) a == "ref" ? s = e[a] : l[a] = e[a];
|
|
3005
|
-
var d = { type: t, props: l, key: r, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
3033
|
+
var d = { type: t, props: l, key: r, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --vd, __i: -1, __u: 0, __source: i, __self: o };
|
|
3006
3034
|
if (typeof t == "function" && (s = t.defaultProps)) for (a in s) l[a] === void 0 && (l[a] = s[a]);
|
|
3007
3035
|
return se.vnode && se.vnode(d), d;
|
|
3008
3036
|
}
|
|
@@ -3011,12 +3039,12 @@ const Eo = co(void 0), Os = ({ perform: t, children: e, setIsProcessingCallback:
|
|
|
3011
3039
|
if (!t)
|
|
3012
3040
|
throw new Error("usePerform must be used within a PerformProvider");
|
|
3013
3041
|
return { perform: t.perform };
|
|
3014
|
-
},
|
|
3042
|
+
}, yd = () => {
|
|
3015
3043
|
const t = Zr(Eo);
|
|
3016
3044
|
if (!t)
|
|
3017
3045
|
throw new Error("useSetIsProcessingCallback must be used within a Context Provider");
|
|
3018
3046
|
return { setIsProcessingCallback: t.setIsProcessingCallback };
|
|
3019
|
-
},
|
|
3047
|
+
}, bd = {
|
|
3020
3048
|
width: "86px",
|
|
3021
3049
|
height: "86px",
|
|
3022
3050
|
flex: "0 0 86px",
|
|
@@ -3073,17 +3101,17 @@ function To(t) {
|
|
|
3073
3101
|
typeof t[e] == "object" ? To(t[e]) : t[e] === "true" ? t[e] = !0 : t[e] === "false" && (t[e] = !1);
|
|
3074
3102
|
return t;
|
|
3075
3103
|
}
|
|
3076
|
-
function
|
|
3104
|
+
function Cd(t) {
|
|
3077
3105
|
return Object.entries(t).map(([e, r]) => ({
|
|
3078
3106
|
id: e,
|
|
3079
3107
|
value: typeof r == "string" ? r.trim() : r
|
|
3080
3108
|
})).filter((e) => !!e.value);
|
|
3081
3109
|
}
|
|
3082
|
-
const
|
|
3110
|
+
const Sd = (t) => Array.isArray(t) ? t.length === 0 : t === 0 ? !1 : !t;
|
|
3083
3111
|
function ce(t) {
|
|
3084
3112
|
return t && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t) ? t : void 0;
|
|
3085
3113
|
}
|
|
3086
|
-
const
|
|
3114
|
+
const Ed = (t, e) => t.reduce((r, n) => {
|
|
3087
3115
|
var i, o, s;
|
|
3088
3116
|
if (n.answerType === Pi.text && (i = n.property) != null && i.id) {
|
|
3089
3117
|
const a = e.find((l) => l.name === n.property.id);
|
|
@@ -3111,23 +3139,23 @@ const Sd = (t, e) => t.reduce((r, n) => {
|
|
|
3111
3139
|
} else
|
|
3112
3140
|
r(new Error("Unexpected result type"));
|
|
3113
3141
|
}, n.onerror = () => r(n.error), n.readAsDataURL(t);
|
|
3114
|
-
}),
|
|
3142
|
+
}), Td = () => F(null, null, function* () {
|
|
3115
3143
|
try {
|
|
3116
3144
|
return (yield navigator.mediaDevices.getUserMedia({ video: !0 })).getTracks().forEach((e) => e.stop()), "allowed";
|
|
3117
3145
|
} catch (t) {
|
|
3118
3146
|
return (t == null ? void 0 : t.name) === "NotAllowedError" ? "denied" : "error";
|
|
3119
3147
|
}
|
|
3120
|
-
}),
|
|
3148
|
+
}), Od = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Ka = (t) => (t == null ? void 0 : t.some((r) => r.type === "FORM")) ? Yi.FORM : Yi.DATA, Ga = ({ indicatorColor: t }) => {
|
|
3121
3149
|
const e = it(null), r = ce(t) || "#000000", n = 60, i = 5, o = 0.75, s = (n - i) / 2, a = 2 * Math.PI * s, l = 1 - o, d = 360 / 1e3;
|
|
3122
3150
|
return nt(() => {
|
|
3123
3151
|
if (!e.current) return;
|
|
3124
3152
|
let p = !0, h = 0, c = performance.now();
|
|
3125
|
-
function w
|
|
3153
|
+
function g(w) {
|
|
3126
3154
|
if (!p) return;
|
|
3127
|
-
const f =
|
|
3128
|
-
c =
|
|
3155
|
+
const f = w - c;
|
|
3156
|
+
c = w, h = (h + d * f) % 360, e.current && (e.current.style.transform = `rotate(${h}deg)`), requestAnimationFrame(g);
|
|
3129
3157
|
}
|
|
3130
|
-
return requestAnimationFrame(
|
|
3158
|
+
return requestAnimationFrame(g), () => {
|
|
3131
3159
|
p = !1;
|
|
3132
3160
|
};
|
|
3133
3161
|
}, []), /* @__PURE__ */ u("svg", { ref: e, width: n, height: n, viewBox: `0 0 ${n} ${n}`, children: /* @__PURE__ */ u(
|
|
@@ -3146,7 +3174,7 @@ const Sd = (t, e) => t.reduce((r, n) => {
|
|
|
3146
3174
|
}
|
|
3147
3175
|
) });
|
|
3148
3176
|
};
|
|
3149
|
-
function
|
|
3177
|
+
function Id({ size: t, color: e }) {
|
|
3150
3178
|
return /* @__PURE__ */ u("svg", { width: t || 86, height: t || 86, viewBox: "0 0 87 86", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3151
3179
|
/* @__PURE__ */ u(
|
|
3152
3180
|
"ellipse",
|
|
@@ -3182,7 +3210,7 @@ function Od({ size: t, color: e }) {
|
|
|
3182
3210
|
)
|
|
3183
3211
|
] });
|
|
3184
3212
|
}
|
|
3185
|
-
function
|
|
3213
|
+
function Ad({ size: t }) {
|
|
3186
3214
|
return /* @__PURE__ */ u("svg", { width: t || 48, height: t || 48, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3187
3215
|
/* @__PURE__ */ u("circle", { cx: "24.5", cy: "24", r: "18", stroke: "#0E1F97", strokeWidth: "3" }),
|
|
3188
3216
|
/* @__PURE__ */ u(
|
|
@@ -3208,7 +3236,7 @@ function Id({ size: t }) {
|
|
|
3208
3236
|
)
|
|
3209
3237
|
] });
|
|
3210
3238
|
}
|
|
3211
|
-
function
|
|
3239
|
+
function xd({ size: t, color: e }) {
|
|
3212
3240
|
return /* @__PURE__ */ u("svg", { width: t || 20, height: t || 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u(
|
|
3213
3241
|
"path",
|
|
3214
3242
|
{
|
|
@@ -3217,7 +3245,7 @@ function Ad({ size: t, color: e }) {
|
|
|
3217
3245
|
}
|
|
3218
3246
|
) });
|
|
3219
3247
|
}
|
|
3220
|
-
function
|
|
3248
|
+
function Rd({ size: t }) {
|
|
3221
3249
|
return /* @__PURE__ */ u("svg", { width: t || 20, height: t || 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u(
|
|
3222
3250
|
"path",
|
|
3223
3251
|
{
|
|
@@ -3228,7 +3256,7 @@ function xd({ size: t }) {
|
|
|
3228
3256
|
}
|
|
3229
3257
|
) });
|
|
3230
3258
|
}
|
|
3231
|
-
const
|
|
3259
|
+
const kd = ({ size: t, color: e }) => /* @__PURE__ */ u("svg", { width: t || 20, height: t || 20, viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3232
3260
|
/* @__PURE__ */ u("g", { clipPath: "url(#clip0_6789_106796)", children: /* @__PURE__ */ u(
|
|
3233
3261
|
"path",
|
|
3234
3262
|
{
|
|
@@ -3238,13 +3266,13 @@ const Rd = ({ size: t, color: e }) => /* @__PURE__ */ u("svg", { width: t || 20,
|
|
|
3238
3266
|
) }),
|
|
3239
3267
|
/* @__PURE__ */ u("defs", { children: /* @__PURE__ */ u("clipPath", { id: "clip0_6789_106796", children: /* @__PURE__ */ u("rect", { width: "19.4597", height: "19.458", fill: "white", transform: "translate(0.996094)" }) }) })
|
|
3240
3268
|
] });
|
|
3241
|
-
function
|
|
3269
|
+
function Nd({ size: t }) {
|
|
3242
3270
|
return /* @__PURE__ */ u("svg", { width: t || 24, height: t || 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3243
3271
|
/* @__PURE__ */ u("path", { d: "M20 12H6", stroke: "#8C8C8C", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3244
3272
|
/* @__PURE__ */ u("path", { d: "M13 19L6 12L13 5", stroke: "#8C8C8C", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
3245
3273
|
] });
|
|
3246
3274
|
}
|
|
3247
|
-
function
|
|
3275
|
+
function Dd({ size: t }) {
|
|
3248
3276
|
return /* @__PURE__ */ u("svg", { width: t || 48, height: t || 48, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3249
3277
|
/* @__PURE__ */ u(
|
|
3250
3278
|
"path",
|
|
@@ -3266,7 +3294,7 @@ function Nd({ size: t }) {
|
|
|
3266
3294
|
/* @__PURE__ */ u("rect", { x: "29.9004", y: "23.3999", width: "12", height: "2.4", fill: "#0E1F97" })
|
|
3267
3295
|
] });
|
|
3268
3296
|
}
|
|
3269
|
-
function
|
|
3297
|
+
function Md({ size: t, color: e }) {
|
|
3270
3298
|
return /* @__PURE__ */ u("svg", { width: t || 24, height: t || 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3271
3299
|
/* @__PURE__ */ u(
|
|
3272
3300
|
"path",
|
|
@@ -3285,7 +3313,7 @@ function Dd({ size: t, color: e }) {
|
|
|
3285
3313
|
/* @__PURE__ */ u("rect", { x: "13", y: "18", width: "2", height: "8", transform: "rotate(-180 13 18)", fill: "#8C8C8C" })
|
|
3286
3314
|
] });
|
|
3287
3315
|
}
|
|
3288
|
-
function
|
|
3316
|
+
function Pd({ size: t }) {
|
|
3289
3317
|
return /* @__PURE__ */ u("svg", { width: t || 24, height: t || 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3290
3318
|
/* @__PURE__ */ u("rect", { x: "12.5", y: "1.5", width: "10", height: "21", rx: "1.5", stroke: "#8C8C8C" }),
|
|
3291
3319
|
/* @__PURE__ */ u(
|
|
@@ -3299,7 +3327,7 @@ function Md({ size: t }) {
|
|
|
3299
3327
|
/* @__PURE__ */ u("circle", { cx: "17.5", cy: "20", r: "1", fill: "#8C8C8C" })
|
|
3300
3328
|
] });
|
|
3301
3329
|
}
|
|
3302
|
-
function
|
|
3330
|
+
function Fd({ size: t }) {
|
|
3303
3331
|
return /* @__PURE__ */ u("svg", { width: t || 48, height: t || 48, viewBox: "0 0 49 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3304
3332
|
/* @__PURE__ */ u("circle", { cx: "15.5004", cy: "10.8002", r: "3.6", stroke: "#0E1F97", strokeWidth: "3" }),
|
|
3305
3333
|
/* @__PURE__ */ u("circle", { cx: "35.2998", cy: "19.7998", r: "3", stroke: "#0E1F97", strokeWidth: "3" }),
|
|
@@ -3332,7 +3360,7 @@ const As = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
|
3332
3360
|
fill: e || "rgba(0,0,0,0.6)",
|
|
3333
3361
|
children: /* @__PURE__ */ u("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" })
|
|
3334
3362
|
}
|
|
3335
|
-
),
|
|
3363
|
+
), Ud = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
3336
3364
|
"svg",
|
|
3337
3365
|
{
|
|
3338
3366
|
width: t ? t * 3 : 39,
|
|
@@ -3380,7 +3408,7 @@ const As = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
|
3380
3408
|
]
|
|
3381
3409
|
}
|
|
3382
3410
|
);
|
|
3383
|
-
function
|
|
3411
|
+
function Ld({ size: t, color: e }) {
|
|
3384
3412
|
return /* @__PURE__ */ u("svg", { width: t || 86, height: t || 86, viewBox: "0 0 86 86", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3385
3413
|
/* @__PURE__ */ u(
|
|
3386
3414
|
"ellipse",
|
|
@@ -3403,7 +3431,7 @@ function Ud({ size: t, color: e }) {
|
|
|
3403
3431
|
)
|
|
3404
3432
|
] });
|
|
3405
3433
|
}
|
|
3406
|
-
function
|
|
3434
|
+
function Vd() {
|
|
3407
3435
|
return /* @__PURE__ */ u("svg", { width: "113", height: "16", viewBox: "0 0 113 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3408
3436
|
/* @__PURE__ */ u(
|
|
3409
3437
|
"path",
|
|
@@ -3450,7 +3478,7 @@ function Ld() {
|
|
|
3450
3478
|
)
|
|
3451
3479
|
] });
|
|
3452
3480
|
}
|
|
3453
|
-
const
|
|
3481
|
+
const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg", { width: t, height: t, viewBox: "0 0 100 100", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3454
3482
|
/* @__PURE__ */ u(
|
|
3455
3483
|
"ellipse",
|
|
3456
3484
|
{
|
|
@@ -3473,10 +3501,10 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3473
3501
|
strokeLinejoin: "round"
|
|
3474
3502
|
}
|
|
3475
3503
|
)
|
|
3476
|
-
] }),
|
|
3504
|
+
] }), Bd = () => /* @__PURE__ */ u("svg", { width: "20", height: "21", viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3477
3505
|
/* @__PURE__ */ u("rect", { x: "0.5", y: "1", width: "19", height: "19", rx: "9.5", stroke: "#7E57C5" }),
|
|
3478
3506
|
/* @__PURE__ */ u("rect", { x: "3", y: "3.5", width: "14", height: "14", rx: "7", fill: "#7E57C5" })
|
|
3479
|
-
] }),
|
|
3507
|
+
] }), Hd = () => /* @__PURE__ */ u("svg", { width: "20", height: "21", viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u("rect", { x: "0.5", y: "1", width: "19", height: "19", rx: "9.5", stroke: "#8C8C8C" }) }), Wd = () => /* @__PURE__ */ u("svg", { width: "20", height: "21", viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3480
3508
|
/* @__PURE__ */ u("rect", { x: "0.5", y: "1", width: "19", height: "19", rx: "3.5", fill: "#7E57C5", stroke: "#7E57C5" }),
|
|
3481
3509
|
/* @__PURE__ */ u(
|
|
3482
3510
|
"path",
|
|
@@ -3485,7 +3513,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3485
3513
|
fill: "white"
|
|
3486
3514
|
}
|
|
3487
3515
|
)
|
|
3488
|
-
] }),
|
|
3516
|
+
] }), jd = () => /* @__PURE__ */ u("svg", { width: "20", height: "21", viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u("rect", { x: "0.5", y: "1", width: "19", height: "19", rx: "3.5", stroke: "#8C8C8C" }) }), zd = ({ color: t = "#237804" }) => /* @__PURE__ */ u("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u(
|
|
3489
3517
|
"path",
|
|
3490
3518
|
{
|
|
3491
3519
|
fillRule: "evenodd",
|
|
@@ -3493,7 +3521,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3493
3521
|
d: "M7.15385 2.15377C7.35887 2.35879 7.35887 2.69121 7.15385 2.89623L2.67894 7.3712L0.153877 4.84616C-0.0511485 4.64114 -0.0511485 4.30872 0.153877 4.1037C0.358901 3.89867 0.691313 3.89867 0.896338 4.1037L2.67894 5.88628L6.41139 2.15377C6.61641 1.94874 6.94882 1.94874 7.15385 2.15377Z",
|
|
3494
3522
|
fill: t
|
|
3495
3523
|
}
|
|
3496
|
-
) }),
|
|
3524
|
+
) }), Kd = ({ color: t = "#262626" }) => /* @__PURE__ */ u("svg", { width: "10", height: "5", viewBox: "0 0 10 5", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ u(
|
|
3497
3525
|
"path",
|
|
3498
3526
|
{
|
|
3499
3527
|
fillRule: "evenodd",
|
|
@@ -3501,7 +3529,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3501
3529
|
d: "M8.86967 0.228964C9.07469 0.433989 9.07469 0.766401 8.86967 0.971426L4.99844 4.84266L1.12721 0.971426C0.922181 0.766401 0.922181 0.433989 1.12721 0.228964C1.33223 0.023939 1.66464 0.023939 1.86967 0.228964L4.99844 3.35773L8.12721 0.228964C8.33223 0.023939 8.66464 0.023939 8.86967 0.228964Z",
|
|
3502
3530
|
fill: t
|
|
3503
3531
|
}
|
|
3504
|
-
) }),
|
|
3532
|
+
) }), Gd = ({ size: t, color: e = "#ffffff" }) => /* @__PURE__ */ u("svg", { width: t || 40, height: t || 40, viewBox: "0 0 23 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3505
3533
|
/* @__PURE__ */ u("g", { clipPath: "url(#clip0_2629_17763)", children: [
|
|
3506
3534
|
/* @__PURE__ */ u(
|
|
3507
3535
|
"path",
|
|
@@ -3534,7 +3562,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3534
3562
|
/* @__PURE__ */ u("circle", { cx: "7.5", cy: "10", r: "1", fill: e })
|
|
3535
3563
|
] }),
|
|
3536
3564
|
/* @__PURE__ */ u("defs", { children: /* @__PURE__ */ u("clipPath", { id: "clip0_2629_17763", children: /* @__PURE__ */ u("rect", { width: "22", height: "22", fill: "white", transform: "translate(0.5 1.90735e-05)" }) }) })
|
|
3537
|
-
] }),
|
|
3565
|
+
] }), qd = ({ size: t = 40, color: e = "#ffffff" }) => /* @__PURE__ */ u("svg", { width: t, height: t, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3538
3566
|
/* @__PURE__ */ u("g", { clipPath: "url(#clip0_2629_17707)", children: [
|
|
3539
3567
|
/* @__PURE__ */ u(
|
|
3540
3568
|
"path",
|
|
@@ -3546,7 +3574,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3546
3574
|
/* @__PURE__ */ u("circle", { cx: "18", cy: "9.00003", r: "1", fill: e })
|
|
3547
3575
|
] }),
|
|
3548
3576
|
/* @__PURE__ */ u("defs", { children: /* @__PURE__ */ u("clipPath", { id: "clip0_2629_17707", children: /* @__PURE__ */ u("rect", { width: "22", height: "22", fill: e }) }) })
|
|
3549
|
-
] }),
|
|
3577
|
+
] }), Zd = () => /* @__PURE__ */ u("div", {}), ye = {
|
|
3550
3578
|
WARNING: "warning_icon",
|
|
3551
3579
|
SPINNER: "spinner",
|
|
3552
3580
|
ERROR: "failure",
|
|
@@ -3574,35 +3602,35 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3574
3602
|
GALLERY_ICON: "gallery",
|
|
3575
3603
|
CAMERA_ICON: "camera"
|
|
3576
3604
|
}, Ji = {
|
|
3577
|
-
[ye.WARNING]:
|
|
3605
|
+
[ye.WARNING]: Ld,
|
|
3578
3606
|
[ye.SPINNER]: Ga,
|
|
3579
|
-
[ye.ERROR]:
|
|
3580
|
-
[ye.AGE]:
|
|
3581
|
-
[ye.ANDROID]:
|
|
3582
|
-
[ye.ARROW]:
|
|
3583
|
-
[ye.APPLE]:
|
|
3584
|
-
[ye.BACK]:
|
|
3585
|
-
[ye.BIOMETRIC]:
|
|
3586
|
-
[ye.INFO]:
|
|
3587
|
-
[ye.TO_MOBILE]:
|
|
3588
|
-
[ye.UNDERAGE]:
|
|
3607
|
+
[ye.ERROR]: Id,
|
|
3608
|
+
[ye.AGE]: Ad,
|
|
3609
|
+
[ye.ANDROID]: xd,
|
|
3610
|
+
[ye.ARROW]: Rd,
|
|
3611
|
+
[ye.APPLE]: kd,
|
|
3612
|
+
[ye.BACK]: Nd,
|
|
3613
|
+
[ye.BIOMETRIC]: Dd,
|
|
3614
|
+
[ye.INFO]: Md,
|
|
3615
|
+
[ye.TO_MOBILE]: Pd,
|
|
3616
|
+
[ye.UNDERAGE]: Fd,
|
|
3589
3617
|
[ye.CROSS]: As,
|
|
3590
|
-
[ye.REGULA_LOGO]:
|
|
3618
|
+
[ye.REGULA_LOGO]: Ud,
|
|
3591
3619
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3592
3620
|
// @ts-ignore
|
|
3593
|
-
[ye.DEFAULT]:
|
|
3594
|
-
[ye.POWERED_BY]:
|
|
3595
|
-
[ye.SUCCESS]:
|
|
3596
|
-
[ye.CIRCLE_SELECTED]:
|
|
3597
|
-
[ye.CIRCLE_NORMAL]:
|
|
3598
|
-
[ye.SQUARE_SELECTED]:
|
|
3599
|
-
[ye.SQUARE_NORMAL]:
|
|
3600
|
-
[ye.SELECTED]:
|
|
3601
|
-
[ye.CHEVRON_DOWN]:
|
|
3621
|
+
[ye.DEFAULT]: Zd,
|
|
3622
|
+
[ye.POWERED_BY]: Vd,
|
|
3623
|
+
[ye.SUCCESS]: $d,
|
|
3624
|
+
[ye.CIRCLE_SELECTED]: Bd,
|
|
3625
|
+
[ye.CIRCLE_NORMAL]: Hd,
|
|
3626
|
+
[ye.SQUARE_SELECTED]: Wd,
|
|
3627
|
+
[ye.SQUARE_NORMAL]: jd,
|
|
3628
|
+
[ye.SELECTED]: zd,
|
|
3629
|
+
[ye.CHEVRON_DOWN]: Kd,
|
|
3602
3630
|
[ye.CLOSE_ICON]: As,
|
|
3603
|
-
[ye.GALLERY_ICON]:
|
|
3604
|
-
[ye.CAMERA_ICON]:
|
|
3605
|
-
},
|
|
3631
|
+
[ye.GALLERY_ICON]: Gd,
|
|
3632
|
+
[ye.CAMERA_ICON]: qd
|
|
3633
|
+
}, Yd = ({ type: t, size: e, color: r }) => {
|
|
3606
3634
|
const n = Ji[t] || Ji[ye.DEFAULT];
|
|
3607
3635
|
return /* @__PURE__ */ u(n, { size: e, color: r });
|
|
3608
3636
|
}, Ve = ({
|
|
@@ -3637,7 +3665,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3637
3665
|
);
|
|
3638
3666
|
if (t) {
|
|
3639
3667
|
const h = t in Ji ? t : "default";
|
|
3640
|
-
return /* @__PURE__ */ u(
|
|
3668
|
+
return /* @__PURE__ */ u(Yd, { type: h });
|
|
3641
3669
|
}
|
|
3642
3670
|
if (e)
|
|
3643
3671
|
return /* @__PURE__ */ u(We, { children: [
|
|
@@ -3668,7 +3696,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3668
3696
|
}
|
|
3669
3697
|
)
|
|
3670
3698
|
] });
|
|
3671
|
-
},
|
|
3699
|
+
}, Jd = ({ signature: t }) => /* @__PURE__ */ u(
|
|
3672
3700
|
"footer",
|
|
3673
3701
|
{
|
|
3674
3702
|
"data-ui": "gui-footer",
|
|
@@ -3683,7 +3711,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3683
3711
|
},
|
|
3684
3712
|
children: /* @__PURE__ */ u("a", { href: "", children: /* @__PURE__ */ u(Ve, O({}, t)) })
|
|
3685
3713
|
}
|
|
3686
|
-
),
|
|
3714
|
+
), Xd = {
|
|
3687
3715
|
display: "flex",
|
|
3688
3716
|
justifyContent: "center",
|
|
3689
3717
|
alignItems: "center",
|
|
@@ -3692,7 +3720,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3692
3720
|
minWidth: "36px",
|
|
3693
3721
|
border: "none",
|
|
3694
3722
|
cursor: "pointer"
|
|
3695
|
-
},
|
|
3723
|
+
}, Qd = ({
|
|
3696
3724
|
dataTestId: t,
|
|
3697
3725
|
responseBody: e,
|
|
3698
3726
|
image: r,
|
|
@@ -3710,11 +3738,11 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3710
3738
|
part: "gui-close-button",
|
|
3711
3739
|
"data-test": t,
|
|
3712
3740
|
onClick: () => {
|
|
3713
|
-
const
|
|
3714
|
-
To(
|
|
3741
|
+
const g = JSON.parse(JSON.stringify(e));
|
|
3742
|
+
To(g), p(g);
|
|
3715
3743
|
},
|
|
3716
3744
|
className: "hover-button",
|
|
3717
|
-
style: X(O(O({},
|
|
3745
|
+
style: X(O(O({}, Xd), o && { borderRadius: o }), {
|
|
3718
3746
|
backgroundColor: (c = ce(d)) != null ? c : "transparent"
|
|
3719
3747
|
}),
|
|
3720
3748
|
onMouseEnter: () => l(!0),
|
|
@@ -3737,7 +3765,7 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3737
3765
|
]
|
|
3738
3766
|
}
|
|
3739
3767
|
);
|
|
3740
|
-
},
|
|
3768
|
+
}, eu = ({ closeButton: t }) => /* @__PURE__ */ u(
|
|
3741
3769
|
"header",
|
|
3742
3770
|
{
|
|
3743
3771
|
style: {
|
|
@@ -3750,10 +3778,10 @@ const Vd = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3750
3778
|
},
|
|
3751
3779
|
"data-ui": "gui-header",
|
|
3752
3780
|
part: "gui-header",
|
|
3753
|
-
children: /* @__PURE__ */ u("div", { children: t && /* @__PURE__ */ u(
|
|
3781
|
+
children: /* @__PURE__ */ u("div", { children: t && /* @__PURE__ */ u(Qd, O({ dataTestId: "close-btn" }, t)) })
|
|
3754
3782
|
}
|
|
3755
3783
|
);
|
|
3756
|
-
function
|
|
3784
|
+
function tu(t) {
|
|
3757
3785
|
var i;
|
|
3758
3786
|
const e = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, r = [];
|
|
3759
3787
|
let n = 0;
|
|
@@ -3771,7 +3799,7 @@ function qa(t) {
|
|
|
3771
3799
|
const e = t.split(`
|
|
3772
3800
|
`);
|
|
3773
3801
|
return e.flatMap((r, n) => {
|
|
3774
|
-
const i =
|
|
3802
|
+
const i = tu(r);
|
|
3775
3803
|
return n === e.length - 1 ? i : [...i, /* @__PURE__ */ u("br", {}, "br-" + n)];
|
|
3776
3804
|
});
|
|
3777
3805
|
}
|
|
@@ -3808,10 +3836,10 @@ const Oe = ({
|
|
|
3808
3836
|
onClick: p
|
|
3809
3837
|
}) => {
|
|
3810
3838
|
var S, C;
|
|
3811
|
-
const [h, c] = Me(!1),
|
|
3839
|
+
const [h, c] = Me(!1), g = h && ce(o) ? o : n, { perform: w } = dr(), f = (b) => {
|
|
3812
3840
|
if (p && p(b), d !== "RESPONSE_BODY") return;
|
|
3813
3841
|
const I = JSON.parse(JSON.stringify(r));
|
|
3814
|
-
To(I),
|
|
3842
|
+
To(I), w(I, Yi.DATA);
|
|
3815
3843
|
}, m = {
|
|
3816
3844
|
height: "50px",
|
|
3817
3845
|
width: "100%",
|
|
@@ -3827,7 +3855,7 @@ const Oe = ({
|
|
|
3827
3855
|
gap: 5,
|
|
3828
3856
|
borderRadius: i || 0,
|
|
3829
3857
|
borderStyle: a && l ? "solid" : void 0,
|
|
3830
|
-
backgroundColor: (S = ce(
|
|
3858
|
+
backgroundColor: (S = ce(g)) != null ? S : "transparent",
|
|
3831
3859
|
borderColor: (C = ce(a)) != null ? C : "none",
|
|
3832
3860
|
borderWidth: l != null ? l : 0,
|
|
3833
3861
|
overflow: "hidden",
|
|
@@ -3859,7 +3887,7 @@ const Oe = ({
|
|
|
3859
3887
|
]
|
|
3860
3888
|
}
|
|
3861
3889
|
);
|
|
3862
|
-
},
|
|
3890
|
+
}, ru = (r) => {
|
|
3863
3891
|
var n = r, { items: t } = n, e = Xt(n, ["items"]);
|
|
3864
3892
|
return /* @__PURE__ */ u("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: O(O({}, {
|
|
3865
3893
|
display: "flex",
|
|
@@ -3875,7 +3903,7 @@ const Oe = ({
|
|
|
3875
3903
|
paddingTop: "20px"
|
|
3876
3904
|
}), e), children: t.map((o) => {
|
|
3877
3905
|
var s;
|
|
3878
|
-
return /* @__PURE__ */ u(qn, O({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o),
|
|
3906
|
+
return /* @__PURE__ */ u(qn, O({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Od());
|
|
3879
3907
|
}) });
|
|
3880
3908
|
}, Yt = ({
|
|
3881
3909
|
children: t,
|
|
@@ -3919,11 +3947,11 @@ const Oe = ({
|
|
|
3919
3947
|
width: "100%",
|
|
3920
3948
|
height: o
|
|
3921
3949
|
},
|
|
3922
|
-
children: /* @__PURE__ */ u(
|
|
3950
|
+
children: /* @__PURE__ */ u(eu, { closeButton: e.closeButton })
|
|
3923
3951
|
}
|
|
3924
3952
|
),
|
|
3925
3953
|
/* @__PURE__ */ u("div", { style: { height: "100%", width: "100%", flex: "1 1 100%", overflow: "hidden" }, children: t }),
|
|
3926
|
-
(i == null ? void 0 : i.length) && /* @__PURE__ */ u(
|
|
3954
|
+
(i == null ? void 0 : i.length) && /* @__PURE__ */ u(ru, { items: i }),
|
|
3927
3955
|
r && /* @__PURE__ */ u(
|
|
3928
3956
|
"div",
|
|
3929
3957
|
{
|
|
@@ -3934,7 +3962,7 @@ const Oe = ({
|
|
|
3934
3962
|
width: "100%",
|
|
3935
3963
|
height: s
|
|
3936
3964
|
},
|
|
3937
|
-
children: /* @__PURE__ */ u(
|
|
3965
|
+
children: /* @__PURE__ */ u(Jd, O({}, r))
|
|
3938
3966
|
}
|
|
3939
3967
|
)
|
|
3940
3968
|
]
|
|
@@ -3964,7 +3992,7 @@ const Oe = ({
|
|
|
3964
3992
|
},
|
|
3965
3993
|
children: t && qa(t)
|
|
3966
3994
|
}
|
|
3967
|
-
),
|
|
3995
|
+
), nu = ({
|
|
3968
3996
|
header: t,
|
|
3969
3997
|
footer: e,
|
|
3970
3998
|
image: r,
|
|
@@ -3990,7 +4018,7 @@ const Oe = ({
|
|
|
3990
4018
|
flexDirection: "column"
|
|
3991
4019
|
},
|
|
3992
4020
|
children: [
|
|
3993
|
-
r && /* @__PURE__ */ u("div", { style:
|
|
4021
|
+
r && /* @__PURE__ */ u("div", { style: bd, children: /* @__PURE__ */ u(Ve, O({}, r)) }),
|
|
3994
4022
|
(n == null ? void 0 : n.text) && /* @__PURE__ */ u(
|
|
3995
4023
|
"div",
|
|
3996
4024
|
{
|
|
@@ -4024,12 +4052,12 @@ const Oe = ({
|
|
|
4024
4052
|
]
|
|
4025
4053
|
}
|
|
4026
4054
|
) });
|
|
4027
|
-
},
|
|
4055
|
+
}, iu = {
|
|
4028
4056
|
width: "100%",
|
|
4029
4057
|
height: "auto",
|
|
4030
4058
|
marginBottom: "32px",
|
|
4031
4059
|
aspectRatio: "1.68"
|
|
4032
|
-
},
|
|
4060
|
+
}, ou = {
|
|
4033
4061
|
position: "relative",
|
|
4034
4062
|
display: "flex",
|
|
4035
4063
|
flexDirection: "column",
|
|
@@ -4040,7 +4068,7 @@ const Oe = ({
|
|
|
4040
4068
|
width: "100%",
|
|
4041
4069
|
minHeight: "100%",
|
|
4042
4070
|
overflow: "auto"
|
|
4043
|
-
},
|
|
4071
|
+
}, su = ({
|
|
4044
4072
|
title: t,
|
|
4045
4073
|
header: e,
|
|
4046
4074
|
footer: r,
|
|
@@ -4054,16 +4082,16 @@ const Oe = ({
|
|
|
4054
4082
|
part: "gui-info-screen-container",
|
|
4055
4083
|
"data-ui": "gui-info-screen-container",
|
|
4056
4084
|
id: "info-screen-container",
|
|
4057
|
-
style: X(O({},
|
|
4085
|
+
style: X(O({}, ou), {
|
|
4058
4086
|
justifyContent: n ? "flex-start" : "center"
|
|
4059
4087
|
}),
|
|
4060
4088
|
children: [
|
|
4061
|
-
n && /* @__PURE__ */ u("div", { style:
|
|
4089
|
+
n && /* @__PURE__ */ u("div", { style: iu, children: /* @__PURE__ */ u(Ve, O({}, n)) }),
|
|
4062
4090
|
t && /* @__PURE__ */ u("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ u(Oe, O({}, t)) }),
|
|
4063
4091
|
i && /* @__PURE__ */ u("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ u(ri, O({}, i)) })
|
|
4064
4092
|
]
|
|
4065
4093
|
}
|
|
4066
|
-
) }) }),
|
|
4094
|
+
) }) }), au = ({ indicatorColor: t = "black" }) => /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(Ga, { indicatorColor: t }) }), xs = ({
|
|
4067
4095
|
progressView: t,
|
|
4068
4096
|
footer: e,
|
|
4069
4097
|
backgroundColor: r
|
|
@@ -4081,9 +4109,9 @@ const Oe = ({
|
|
|
4081
4109
|
height: "100%",
|
|
4082
4110
|
width: "100%"
|
|
4083
4111
|
},
|
|
4084
|
-
children: /* @__PURE__ */ u(
|
|
4112
|
+
children: /* @__PURE__ */ u(au, { indicatorColor: ce(t == null ? void 0 : t.indicatorColor) || "#000000" })
|
|
4085
4113
|
}
|
|
4086
|
-
) }),
|
|
4114
|
+
) }), lu = ({
|
|
4087
4115
|
title: t,
|
|
4088
4116
|
description: e,
|
|
4089
4117
|
image: r,
|
|
@@ -4121,21 +4149,21 @@ const Oe = ({
|
|
|
4121
4149
|
/* @__PURE__ */ u("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ u(Ve, O({}, r)) })
|
|
4122
4150
|
]
|
|
4123
4151
|
}
|
|
4124
|
-
),
|
|
4152
|
+
), cu = {
|
|
4125
4153
|
display: "flex",
|
|
4126
4154
|
flexDirection: "column",
|
|
4127
4155
|
padding: "0 16px"
|
|
4128
|
-
},
|
|
4156
|
+
}, du = ({ items: t, backgroundColor: e, cornerRadius: r = 16 }) => /* @__PURE__ */ u(
|
|
4129
4157
|
"div",
|
|
4130
4158
|
{
|
|
4131
4159
|
className: "details",
|
|
4132
|
-
style: X(O({},
|
|
4160
|
+
style: X(O({}, cu), {
|
|
4133
4161
|
backgroundColor: ce(e) || "white",
|
|
4134
4162
|
borderRadius: r
|
|
4135
4163
|
}),
|
|
4136
|
-
children: t.map((n, i) => /* @__PURE__ */ u(
|
|
4164
|
+
children: t.map((n, i) => /* @__PURE__ */ u(lu, O({ isLastChild: i === t.length - 1 }, n), i))
|
|
4137
4165
|
}
|
|
4138
|
-
),
|
|
4166
|
+
), uu = ({
|
|
4139
4167
|
title: t,
|
|
4140
4168
|
header: e,
|
|
4141
4169
|
footer: r,
|
|
@@ -4160,14 +4188,14 @@ const Oe = ({
|
|
|
4160
4188
|
ref: s,
|
|
4161
4189
|
children: [
|
|
4162
4190
|
/* @__PURE__ */ u("div", { style: { marginBottom: t ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: t && /* @__PURE__ */ u(Oe, O({}, t)) }),
|
|
4163
|
-
n && /* @__PURE__ */ u(
|
|
4191
|
+
n && /* @__PURE__ */ u(du, O({}, n))
|
|
4164
4192
|
]
|
|
4165
4193
|
}
|
|
4166
4194
|
) });
|
|
4167
4195
|
};
|
|
4168
4196
|
var Xr = (t) => t.type === "checkbox", sr = (t) => t instanceof Date, qe = (t) => t == null;
|
|
4169
4197
|
const Za = (t) => typeof t == "object";
|
|
4170
|
-
var Ne = (t) => !qe(t) && !Array.isArray(t) && Za(t) && !sr(t), Ya = (t) => Ne(t) && t.target ? Xr(t.target) ? t.target.checked : t.target.value : t,
|
|
4198
|
+
var Ne = (t) => !qe(t) && !Array.isArray(t) && Za(t) && !sr(t), Ya = (t) => Ne(t) && t.target ? Xr(t.target) ? t.target.checked : t.target.value : t, fu = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Ja = (t, e) => t.has(fu(e)), hu = (t) => {
|
|
4171
4199
|
const e = t.constructor && t.constructor.prototype;
|
|
4172
4200
|
return Ne(e) && e.hasOwnProperty("isPrototypeOf");
|
|
4173
4201
|
}, Oo = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
@@ -4177,7 +4205,7 @@ function De(t) {
|
|
|
4177
4205
|
if (t instanceof Date)
|
|
4178
4206
|
e = new Date(t);
|
|
4179
4207
|
else if (!(Oo && (t instanceof Blob || n)) && (r || Ne(t)))
|
|
4180
|
-
if (e = r ? [] : Object.create(Object.getPrototypeOf(t)), !r && !
|
|
4208
|
+
if (e = r ? [] : Object.create(Object.getPrototypeOf(t)), !r && !hu(t))
|
|
4181
4209
|
e = t;
|
|
4182
4210
|
else
|
|
4183
4211
|
for (const i in t)
|
|
@@ -4241,7 +4269,7 @@ var Qa = (t, e, r, n = !0) => {
|
|
|
4241
4269
|
return i;
|
|
4242
4270
|
};
|
|
4243
4271
|
const Ro = typeof window != "undefined" ? ue.useLayoutEffect : ue.useEffect;
|
|
4244
|
-
function
|
|
4272
|
+
function pu(t) {
|
|
4245
4273
|
const e = xo(), { control: r = e.control, disabled: n, name: i, exact: o } = t || {}, [s, a] = ue.useState(r._formState), l = ue.useRef({
|
|
4246
4274
|
isDirty: !1,
|
|
4247
4275
|
isLoading: !1,
|
|
@@ -4287,43 +4315,43 @@ function Lt(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
4287
4315
|
}
|
|
4288
4316
|
return !0;
|
|
4289
4317
|
}
|
|
4290
|
-
function
|
|
4318
|
+
function _u(t) {
|
|
4291
4319
|
const e = xo(), { control: r = e.control, name: n, defaultValue: i, disabled: o, exact: s, compute: a } = t || {}, l = ue.useRef(i), d = ue.useRef(a), p = ue.useRef(void 0);
|
|
4292
4320
|
d.current = a;
|
|
4293
|
-
const h = ue.useMemo(() => r._getWatch(n, l.current), [r, n]), [c,
|
|
4321
|
+
const h = ue.useMemo(() => r._getWatch(n, l.current), [r, n]), [c, g] = ue.useState(d.current ? d.current(h) : h);
|
|
4294
4322
|
return Ro(() => r._subscribe({
|
|
4295
4323
|
name: n,
|
|
4296
4324
|
formState: {
|
|
4297
4325
|
values: !0
|
|
4298
4326
|
},
|
|
4299
4327
|
exact: s,
|
|
4300
|
-
callback: (
|
|
4328
|
+
callback: (w) => {
|
|
4301
4329
|
if (!o) {
|
|
4302
|
-
const f = el(n, r._names,
|
|
4330
|
+
const f = el(n, r._names, w.values || r._formValues, !1, l.current);
|
|
4303
4331
|
if (d.current) {
|
|
4304
4332
|
const m = d.current(f);
|
|
4305
|
-
Lt(m, p.current) || (
|
|
4333
|
+
Lt(m, p.current) || (g(m), p.current = m);
|
|
4306
4334
|
} else
|
|
4307
|
-
|
|
4335
|
+
g(f);
|
|
4308
4336
|
}
|
|
4309
4337
|
}
|
|
4310
4338
|
}), [r, o, n, s]), ue.useEffect(() => r._removeUnmounted()), c;
|
|
4311
4339
|
}
|
|
4312
|
-
function
|
|
4313
|
-
const e = xo(), { name: r, disabled: n, control: i = e.control, shouldUnregister: o, defaultValue: s } = t, a = Ja(i._names.array, r), l = ue.useMemo(() => L(i._formValues, r, L(i._defaultValues, r, s)), [i, r, s]), d =
|
|
4340
|
+
function mu(t) {
|
|
4341
|
+
const e = xo(), { name: r, disabled: n, control: i = e.control, shouldUnregister: o, defaultValue: s } = t, a = Ja(i._names.array, r), l = ue.useMemo(() => L(i._formValues, r, L(i._defaultValues, r, s)), [i, r, s]), d = _u({
|
|
4314
4342
|
control: i,
|
|
4315
4343
|
name: r,
|
|
4316
4344
|
defaultValue: l,
|
|
4317
4345
|
exact: !0
|
|
4318
|
-
}), p =
|
|
4346
|
+
}), p = pu({
|
|
4319
4347
|
control: i,
|
|
4320
4348
|
name: r,
|
|
4321
4349
|
exact: !0
|
|
4322
|
-
}), h = ue.useRef(t), c = ue.useRef(void 0),
|
|
4350
|
+
}), h = ue.useRef(t), c = ue.useRef(void 0), g = ue.useRef(i.register(r, O(X(O({}, t.rules), {
|
|
4323
4351
|
value: d
|
|
4324
4352
|
}), Qe(t.disabled) ? { disabled: t.disabled } : {})));
|
|
4325
4353
|
h.current = t;
|
|
4326
|
-
const
|
|
4354
|
+
const w = ue.useMemo(() => Object.defineProperties({}, {
|
|
4327
4355
|
invalid: {
|
|
4328
4356
|
enumerable: !0,
|
|
4329
4357
|
get: () => !!L(p.errors, r)
|
|
@@ -4344,13 +4372,13 @@ function _u(t) {
|
|
|
4344
4372
|
enumerable: !0,
|
|
4345
4373
|
get: () => L(p.errors, r)
|
|
4346
4374
|
}
|
|
4347
|
-
}), [p, r]), f = ue.useCallback((b) =>
|
|
4375
|
+
}), [p, r]), f = ue.useCallback((b) => g.current.onChange({
|
|
4348
4376
|
target: {
|
|
4349
4377
|
value: Ya(b),
|
|
4350
4378
|
name: r
|
|
4351
4379
|
},
|
|
4352
4380
|
type: Zn.CHANGE
|
|
4353
|
-
}), [r]), m = ue.useCallback(() =>
|
|
4381
|
+
}), [r]), m = ue.useCallback(() => g.current.onBlur({
|
|
4354
4382
|
target: {
|
|
4355
4383
|
value: L(i._formValues, r),
|
|
4356
4384
|
name: r
|
|
@@ -4361,7 +4389,7 @@ function _u(t) {
|
|
|
4361
4389
|
I && b && (I._f.ref = {
|
|
4362
4390
|
focus: () => b.focus && b.focus(),
|
|
4363
4391
|
select: () => b.select && b.select(),
|
|
4364
|
-
setCustomValidity: (
|
|
4392
|
+
setCustomValidity: (D) => b.setCustomValidity(D),
|
|
4365
4393
|
reportValidity: () => b.reportValidity()
|
|
4366
4394
|
});
|
|
4367
4395
|
}, [i._fields, r]), C = ue.useMemo(() => X(O({
|
|
@@ -4375,16 +4403,16 @@ function _u(t) {
|
|
|
4375
4403
|
return ue.useEffect(() => {
|
|
4376
4404
|
const b = i._options.shouldUnregister || o, I = c.current;
|
|
4377
4405
|
I && I !== r && !a && i.unregister(I), i.register(r, O(O({}, h.current.rules), Qe(h.current.disabled) ? { disabled: h.current.disabled } : {}));
|
|
4378
|
-
const
|
|
4379
|
-
const fe = L(i._fields,
|
|
4406
|
+
const D = (N, R) => {
|
|
4407
|
+
const fe = L(i._fields, N);
|
|
4380
4408
|
fe && fe._f && (fe._f.mount = R);
|
|
4381
4409
|
};
|
|
4382
|
-
if (
|
|
4383
|
-
const
|
|
4384
|
-
Ee(i._defaultValues, r,
|
|
4410
|
+
if (D(r, !0), b) {
|
|
4411
|
+
const N = De(L(i._options.defaultValues, r, h.current.defaultValue));
|
|
4412
|
+
Ee(i._defaultValues, r, N), Ie(L(i._formValues, r)) && Ee(i._formValues, r, N);
|
|
4385
4413
|
}
|
|
4386
4414
|
return !a && i.register(r), c.current = r, () => {
|
|
4387
|
-
(a ? b && !i._state.action : b) ? i.unregister(r) :
|
|
4415
|
+
(a ? b && !i._state.action : b) ? i.unregister(r) : D(r, !1);
|
|
4388
4416
|
};
|
|
4389
4417
|
}, [r, i, a, o]), ue.useEffect(() => {
|
|
4390
4418
|
i._setDisabledField({
|
|
@@ -4394,11 +4422,11 @@ function _u(t) {
|
|
|
4394
4422
|
}, [n, r, i]), ue.useMemo(() => ({
|
|
4395
4423
|
field: C,
|
|
4396
4424
|
formState: p,
|
|
4397
|
-
fieldState:
|
|
4398
|
-
}), [C, p,
|
|
4425
|
+
fieldState: w
|
|
4426
|
+
}), [C, p, w]);
|
|
4399
4427
|
}
|
|
4400
|
-
const tl = (t) => t.render(
|
|
4401
|
-
var
|
|
4428
|
+
const tl = (t) => t.render(mu(t));
|
|
4429
|
+
var gu = (t, e, r, n, i) => e ? X(O({}, r[t]), {
|
|
4402
4430
|
types: X(O({}, r[t] && r[t].types ? r[t].types : {}), {
|
|
4403
4431
|
[n]: i || !0
|
|
4404
4432
|
})
|
|
@@ -4439,32 +4467,32 @@ var Ye = (t) => Ne(t) && !Object.keys(t).length, ko = (t) => t.type === "file",
|
|
|
4439
4467
|
return !1;
|
|
4440
4468
|
const e = t ? t.ownerDocument : 0;
|
|
4441
4469
|
return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
|
|
4442
|
-
}, nl = (t) => t.type === "select-multiple", No = (t) => t.type === "radio",
|
|
4443
|
-
function
|
|
4470
|
+
}, nl = (t) => t.type === "select-multiple", No = (t) => t.type === "radio", wu = (t) => No(t) || Xr(t), Fi = (t) => Yn(t) && t.isConnected;
|
|
4471
|
+
function vu(t, e) {
|
|
4444
4472
|
const r = e.slice(0, -1).length;
|
|
4445
4473
|
let n = 0;
|
|
4446
4474
|
for (; n < r; )
|
|
4447
4475
|
t = Ie(t) ? n++ : t[e[n++]];
|
|
4448
4476
|
return t;
|
|
4449
4477
|
}
|
|
4450
|
-
function
|
|
4478
|
+
function yu(t) {
|
|
4451
4479
|
for (const e in t)
|
|
4452
4480
|
if (t.hasOwnProperty(e) && !Ie(t[e]))
|
|
4453
4481
|
return !1;
|
|
4454
4482
|
return !0;
|
|
4455
4483
|
}
|
|
4456
4484
|
function Re(t, e) {
|
|
4457
|
-
const r = Array.isArray(e) ? e : ni(e) ? [e] : Ao(e), n = r.length === 1 ? t :
|
|
4458
|
-
return n && delete n[o], i !== 0 && (Ne(n) && Ye(n) || Array.isArray(n) &&
|
|
4485
|
+
const r = Array.isArray(e) ? e : ni(e) ? [e] : Ao(e), n = r.length === 1 ? t : vu(t, r), i = r.length - 1, o = r[i];
|
|
4486
|
+
return n && delete n[o], i !== 0 && (Ne(n) && Ye(n) || Array.isArray(n) && yu(n)) && Re(t, r.slice(0, -1)), t;
|
|
4459
4487
|
}
|
|
4460
|
-
var
|
|
4488
|
+
var bu = (t) => {
|
|
4461
4489
|
for (const e in t)
|
|
4462
4490
|
if (ft(t[e]))
|
|
4463
4491
|
return !0;
|
|
4464
4492
|
return !1;
|
|
4465
4493
|
};
|
|
4466
4494
|
function il(t) {
|
|
4467
|
-
return Array.isArray(t) || Ne(t) && !
|
|
4495
|
+
return Array.isArray(t) || Ne(t) && !bu(t);
|
|
4468
4496
|
}
|
|
4469
4497
|
function Qi(t, e = {}) {
|
|
4470
4498
|
for (const r in t)
|
|
@@ -4506,7 +4534,7 @@ function Ms(t) {
|
|
|
4506
4534
|
const e = t.ref;
|
|
4507
4535
|
return ko(e) ? e.files : No(e) ? al(t.refs).value : nl(e) ? [...e.selectedOptions].map(({ value: r }) => r) : Xr(e) ? ol(t.refs).value : sl(Ie(e.value) ? t.ref.value : e.value, t);
|
|
4508
4536
|
}
|
|
4509
|
-
var
|
|
4537
|
+
var Cu = (t, e, r, n) => {
|
|
4510
4538
|
const i = {};
|
|
4511
4539
|
for (const o of t) {
|
|
4512
4540
|
const s = L(e, o);
|
|
@@ -4526,7 +4554,7 @@ var bu = (t, e, r, n) => {
|
|
|
4526
4554
|
isOnTouch: t === ut.onTouched
|
|
4527
4555
|
});
|
|
4528
4556
|
const Fs = "AsyncFunction";
|
|
4529
|
-
var
|
|
4557
|
+
var Su = (t) => !!t && !!t.validate && !!(ft(t.validate) && t.validate.constructor.name === Fs || Ne(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Fs)), Eu = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Us = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
|
|
4530
4558
|
const $r = (t, e, r, n) => {
|
|
4531
4559
|
for (const o of r || Object.keys(t)) {
|
|
4532
4560
|
const s = L(t, o);
|
|
@@ -4572,11 +4600,11 @@ function Ls(t, e, r) {
|
|
|
4572
4600
|
name: r
|
|
4573
4601
|
};
|
|
4574
4602
|
}
|
|
4575
|
-
var
|
|
4603
|
+
var Tu = (t, e, r, n) => {
|
|
4576
4604
|
r(t);
|
|
4577
4605
|
const s = t, { name: i } = s, o = Xt(s, ["name"]);
|
|
4578
4606
|
return Ye(o) || Object.keys(o).length >= Object.keys(e).length || Object.keys(o).find((a) => e[a] === (!n || ut.all));
|
|
4579
|
-
},
|
|
4607
|
+
}, Ou = (t, e, r) => !t || !e || t === e || Vr(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), Iu = (t, e, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(e || t) : (r ? n.isOnBlur : i.isOnBlur) ? !t : (r ? n.isOnChange : i.isOnChange) ? t : !0, Au = (t, e) => !Io(L(t, e)).length && Re(t, e), xu = (t, e, r) => {
|
|
4580
4608
|
const n = Vr(L(t, r));
|
|
4581
4609
|
return Ee(n, "root", e[r]), Ee(t, r, n), t;
|
|
4582
4610
|
};
|
|
@@ -4592,27 +4620,27 @@ var pr = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4592
4620
|
value: t,
|
|
4593
4621
|
message: ""
|
|
4594
4622
|
}, $s = (t, e, r, n, i, o) => F(null, null, function* () {
|
|
4595
|
-
const { ref: s, refs: a, required: l, maxLength: d, minLength: p, min: h, max: c, pattern:
|
|
4623
|
+
const { ref: s, refs: a, required: l, maxLength: d, minLength: p, min: h, max: c, pattern: g, validate: w, name: f, valueAsNumber: m, mount: S } = t._f, C = L(r, f);
|
|
4596
4624
|
if (!S || e.has(f))
|
|
4597
4625
|
return {};
|
|
4598
4626
|
const b = a ? a[0] : s, I = (H) => {
|
|
4599
4627
|
i && b.reportValidity && (b.setCustomValidity(Qe(H) ? "" : H || ""), b.reportValidity());
|
|
4600
|
-
},
|
|
4628
|
+
}, D = {}, N = No(s), R = Xr(s), fe = N || R, _e = (m || ko(s)) && Ie(s.value) && Ie(C) || Yn(s) && s.value === "" || C === "" || Array.isArray(C) && !C.length, ae = gu.bind(null, f, n, D), Z = (H, K, de, le = St.maxLength, we = St.minLength) => {
|
|
4601
4629
|
const ve = H ? K : de;
|
|
4602
|
-
|
|
4630
|
+
D[f] = O({
|
|
4603
4631
|
type: H ? le : we,
|
|
4604
4632
|
message: ve,
|
|
4605
4633
|
ref: s
|
|
4606
4634
|
}, ae(H ? le : we, ve));
|
|
4607
4635
|
};
|
|
4608
|
-
if (o ? !Array.isArray(C) || !C.length : l && (!fe && (_e || qe(C)) || Qe(C) && !C || R && !ol(a).isValid ||
|
|
4636
|
+
if (o ? !Array.isArray(C) || !C.length : l && (!fe && (_e || qe(C)) || Qe(C) && !C || R && !ol(a).isValid || N && !al(a).isValid)) {
|
|
4609
4637
|
const { value: H, message: K } = et(l) ? { value: !!l, message: l } : pr(l);
|
|
4610
|
-
if (H && (
|
|
4638
|
+
if (H && (D[f] = O({
|
|
4611
4639
|
type: St.required,
|
|
4612
4640
|
message: K,
|
|
4613
4641
|
ref: b
|
|
4614
4642
|
}, ae(St.required, K)), !n))
|
|
4615
|
-
return I(K),
|
|
4643
|
+
return I(K), D;
|
|
4616
4644
|
}
|
|
4617
4645
|
if (!_e && (!qe(h) || !qe(c))) {
|
|
4618
4646
|
let H, K;
|
|
@@ -4625,50 +4653,50 @@ var pr = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4625
4653
|
et(de.value) && C && (H = ee ? ve(C) > ve(de.value) : z ? C > de.value : we > new Date(de.value)), et(le.value) && C && (K = ee ? ve(C) < ve(le.value) : z ? C < le.value : we < new Date(le.value));
|
|
4626
4654
|
}
|
|
4627
4655
|
if ((H || K) && (Z(!!H, de.message, le.message, St.max, St.min), !n))
|
|
4628
|
-
return I(
|
|
4656
|
+
return I(D[f].message), D;
|
|
4629
4657
|
}
|
|
4630
4658
|
if ((d || p) && !_e && (et(C) || o && Array.isArray(C))) {
|
|
4631
4659
|
const H = pr(d), K = pr(p), de = !qe(H.value) && C.length > +H.value, le = !qe(K.value) && C.length < +K.value;
|
|
4632
4660
|
if ((de || le) && (Z(de, H.message, K.message), !n))
|
|
4633
|
-
return I(
|
|
4661
|
+
return I(D[f].message), D;
|
|
4634
4662
|
}
|
|
4635
|
-
if (
|
|
4636
|
-
const { value: H, message: K } = pr(
|
|
4637
|
-
if (Jn(H) && !C.match(H) && (
|
|
4663
|
+
if (g && !_e && et(C)) {
|
|
4664
|
+
const { value: H, message: K } = pr(g);
|
|
4665
|
+
if (Jn(H) && !C.match(H) && (D[f] = O({
|
|
4638
4666
|
type: St.pattern,
|
|
4639
4667
|
message: K,
|
|
4640
4668
|
ref: s
|
|
4641
4669
|
}, ae(St.pattern, K)), !n))
|
|
4642
|
-
return I(K),
|
|
4643
|
-
}
|
|
4644
|
-
if (
|
|
4645
|
-
if (ft(
|
|
4646
|
-
const H = yield
|
|
4647
|
-
if (K && (
|
|
4648
|
-
return I(K.message),
|
|
4649
|
-
} else if (Ne(
|
|
4670
|
+
return I(K), D;
|
|
4671
|
+
}
|
|
4672
|
+
if (w) {
|
|
4673
|
+
if (ft(w)) {
|
|
4674
|
+
const H = yield w(C, r), K = Vs(H, b);
|
|
4675
|
+
if (K && (D[f] = O(O({}, K), ae(St.validate, K.message)), !n))
|
|
4676
|
+
return I(K.message), D;
|
|
4677
|
+
} else if (Ne(w)) {
|
|
4650
4678
|
let H = {};
|
|
4651
|
-
for (const K in
|
|
4679
|
+
for (const K in w) {
|
|
4652
4680
|
if (!Ye(H) && !n)
|
|
4653
4681
|
break;
|
|
4654
|
-
const de = Vs(yield
|
|
4655
|
-
de && (H = O(O({}, de), ae(K, de.message)), I(de.message), n && (
|
|
4682
|
+
const de = Vs(yield w[K](C, r), b, K);
|
|
4683
|
+
de && (H = O(O({}, de), ae(K, de.message)), I(de.message), n && (D[f] = H));
|
|
4656
4684
|
}
|
|
4657
|
-
if (!Ye(H) && (
|
|
4685
|
+
if (!Ye(H) && (D[f] = O({
|
|
4658
4686
|
ref: b
|
|
4659
4687
|
}, H), !n))
|
|
4660
|
-
return
|
|
4688
|
+
return D;
|
|
4661
4689
|
}
|
|
4662
4690
|
}
|
|
4663
|
-
return I(!0),
|
|
4691
|
+
return I(!0), D;
|
|
4664
4692
|
});
|
|
4665
|
-
const
|
|
4693
|
+
const Ru = {
|
|
4666
4694
|
mode: ut.onSubmit,
|
|
4667
4695
|
reValidateMode: ut.onChange,
|
|
4668
4696
|
shouldFocusError: !0
|
|
4669
4697
|
};
|
|
4670
|
-
function
|
|
4671
|
-
let e = O(O({},
|
|
4698
|
+
function ku(t = {}) {
|
|
4699
|
+
let e = O(O({}, Ru), t), r = {
|
|
4672
4700
|
submitCount: 0,
|
|
4673
4701
|
isDirty: !1,
|
|
4674
4702
|
isReady: !1,
|
|
@@ -4707,7 +4735,7 @@ function Ru(t = {}) {
|
|
|
4707
4735
|
const c = {
|
|
4708
4736
|
array: Rs(),
|
|
4709
4737
|
state: Rs()
|
|
4710
|
-
},
|
|
4738
|
+
}, g = e.criteriaMode === ut.all, w = (y) => (T) => {
|
|
4711
4739
|
clearTimeout(d), d = setTimeout(y, T);
|
|
4712
4740
|
}, f = (y) => F(null, null, function* () {
|
|
4713
4741
|
if (!e.disabled && (p.isValid || h.isValid || y)) {
|
|
@@ -4731,7 +4759,7 @@ function Ru(t = {}) {
|
|
|
4731
4759
|
}
|
|
4732
4760
|
if (P && Array.isArray(L(r.errors, y))) {
|
|
4733
4761
|
const W = x(L(r.errors, y), V.argA, V.argB);
|
|
4734
|
-
M && Ee(r.errors, y, W),
|
|
4762
|
+
M && Ee(r.errors, y, W), Au(r.errors, y);
|
|
4735
4763
|
}
|
|
4736
4764
|
if ((p.touchedFields || h.touchedFields) && P && Array.isArray(L(r.touchedFields, y))) {
|
|
4737
4765
|
const W = x(L(r.touchedFields, y), V.argA, V.argB);
|
|
@@ -4761,7 +4789,7 @@ function Ru(t = {}) {
|
|
|
4761
4789
|
const P = L(o, y, Ie(x) ? L(i, y) : x);
|
|
4762
4790
|
Ie(P) || V && V.defaultChecked || T ? Ee(o, y, T ? P : Ms(M._f)) : de(y, P), s.mount && f();
|
|
4763
4791
|
}
|
|
4764
|
-
},
|
|
4792
|
+
}, D = (y, T, x, V, M) => {
|
|
4765
4793
|
let P = !1, W = !1;
|
|
4766
4794
|
const ne = {
|
|
4767
4795
|
name: y
|
|
@@ -4779,9 +4807,9 @@ function Ru(t = {}) {
|
|
|
4779
4807
|
P && M && c.state.next(ne);
|
|
4780
4808
|
}
|
|
4781
4809
|
return P ? ne : {};
|
|
4782
|
-
},
|
|
4810
|
+
}, N = (y, T, x, V) => {
|
|
4783
4811
|
const M = L(r.errors, y), P = (p.isValid || h.isValid) && Qe(T) && r.isValid !== T;
|
|
4784
|
-
if (e.delayError && x ? (l =
|
|
4812
|
+
if (e.delayError && x ? (l = w(() => C(y, x)), l(e.delayError)) : (clearTimeout(d), l = null, x ? Ee(r.errors, y, x) : Re(r.errors, y)), (x ? !Lt(M, x) : M) || !Ye(V) || P) {
|
|
4785
4813
|
const W = X(O(O({}, V), P && Qe(T) ? { isValid: T } : {}), {
|
|
4786
4814
|
errors: r.errors,
|
|
4787
4815
|
name: y
|
|
@@ -4790,7 +4818,7 @@ function Ru(t = {}) {
|
|
|
4790
4818
|
}
|
|
4791
4819
|
}, R = (y) => F(null, null, function* () {
|
|
4792
4820
|
m(y, !0);
|
|
4793
|
-
const T = yield e.resolver(o, e.context,
|
|
4821
|
+
const T = yield e.resolver(o, e.context, Cu(y || a.mount, n, e.criteriaMode, e.shouldUseNativeValidation));
|
|
4794
4822
|
return m(y), T;
|
|
4795
4823
|
}), fe = (y) => F(null, null, function* () {
|
|
4796
4824
|
const { errors: T } = yield R(y);
|
|
@@ -4810,12 +4838,12 @@ function Ru(t = {}) {
|
|
|
4810
4838
|
if (G) {
|
|
4811
4839
|
const W = G, { _f: ge } = W, Pe = Xt(W, ["_f"]);
|
|
4812
4840
|
if (ge) {
|
|
4813
|
-
const J = a.array.has(ge.name), oe = G._f &&
|
|
4841
|
+
const J = a.array.has(ge.name), oe = G._f && Su(G._f);
|
|
4814
4842
|
oe && p.validatingFields && m([ge.name], !0);
|
|
4815
|
-
const j = yield $s(G, a.disabled, o,
|
|
4843
|
+
const j = yield $s(G, a.disabled, o, g, e.shouldUseNativeValidation && !T, J);
|
|
4816
4844
|
if (oe && p.validatingFields && m([ge.name]), j[ge.name] && (x.valid = !1, T))
|
|
4817
4845
|
break;
|
|
4818
|
-
!T && (L(j, ge.name) ? J ?
|
|
4846
|
+
!T && (L(j, ge.name) ? J ? xu(r.errors, j, ge.name) : Ee(r.errors, ge.name, j[ge.name]) : Re(r.errors, ge.name));
|
|
4819
4847
|
}
|
|
4820
4848
|
!Ye(Pe) && (yield _e(Pe, T, x));
|
|
4821
4849
|
}
|
|
@@ -4839,7 +4867,7 @@ function Ru(t = {}) {
|
|
|
4839
4867
|
values: De(o)
|
|
4840
4868
|
})));
|
|
4841
4869
|
}
|
|
4842
|
-
(x.shouldDirty || x.shouldTouch) &&
|
|
4870
|
+
(x.shouldDirty || x.shouldTouch) && D(y, M, x.shouldTouch, x.shouldDirty, !0), x.shouldValidate && z(y);
|
|
4843
4871
|
}, le = (y, T, x) => {
|
|
4844
4872
|
for (const V in T) {
|
|
4845
4873
|
if (!T.hasOwnProperty(V))
|
|
@@ -4869,9 +4897,9 @@ function Ru(t = {}) {
|
|
|
4869
4897
|
}, W = Ps(e.mode), ne = Ps(e.reValidateMode);
|
|
4870
4898
|
if (M) {
|
|
4871
4899
|
let G, ge;
|
|
4872
|
-
const Pe = T.type ? Ms(M._f) : Ya(y), J = y.type === Zn.BLUR || y.type === Zn.FOCUS_OUT, oe = !
|
|
4900
|
+
const Pe = T.type ? Ms(M._f) : Ya(y), J = y.type === Zn.BLUR || y.type === Zn.FOCUS_OUT, oe = !Eu(M._f) && !e.resolver && !L(r.errors, x) && !M._f.deps || Iu(J, L(r.touchedFields, x), r.isSubmitted, ne, W), j = Us(x, a, J);
|
|
4873
4901
|
Ee(o, x, Pe), J ? (!T || !T.readOnly) && (M._f.onBlur && M._f.onBlur(y), l && l(0)) : M._f.onChange && M._f.onChange(y);
|
|
4874
|
-
const me =
|
|
4902
|
+
const me = D(x, Pe, J), Be = !Ye(me) || j;
|
|
4875
4903
|
if (!J && c.state.next({
|
|
4876
4904
|
name: x,
|
|
4877
4905
|
type: y.type,
|
|
@@ -4885,8 +4913,8 @@ function Ru(t = {}) {
|
|
|
4885
4913
|
G = q.error, x = q.name, ge = Ye(Ae);
|
|
4886
4914
|
}
|
|
4887
4915
|
} else
|
|
4888
|
-
m([x], !0), G = (yield $s(M, a.disabled, o,
|
|
4889
|
-
V && (M._f.deps && (!Array.isArray(M._f.deps) || M._f.deps.length > 0) && z(M._f.deps),
|
|
4916
|
+
m([x], !0), G = (yield $s(M, a.disabled, o, g, e.shouldUseNativeValidation))[x], m([x]), P(Pe), V && (G ? ge = !1 : (p.isValid || h.isValid) && (ge = yield _e(n, !0)));
|
|
4917
|
+
V && (M._f.deps && (!Array.isArray(M._f.deps) || M._f.deps.length > 0) && z(M._f.deps), N(x, ge, G, me));
|
|
4890
4918
|
}
|
|
4891
4919
|
}), ee = (y, T) => {
|
|
4892
4920
|
if (L(r.errors, T) && y.focus)
|
|
@@ -4930,7 +4958,7 @@ function Ru(t = {}) {
|
|
|
4930
4958
|
next: (x) => "values" in x && y(H(void 0, T), x)
|
|
4931
4959
|
}) : H(y, T, !0), $ = (y) => c.state.subscribe({
|
|
4932
4960
|
next: (T) => {
|
|
4933
|
-
|
|
4961
|
+
Ou(y.name, T.name, y.exact) && Tu(T, y.formState || p, Wt, y.reRenderRoot) && y.callback(X(O(O({
|
|
4934
4962
|
values: O({}, o)
|
|
4935
4963
|
}, r), T), {
|
|
4936
4964
|
defaultValues: i
|
|
@@ -4971,7 +4999,7 @@ function Ru(t = {}) {
|
|
|
4971
4999
|
ref: (M) => {
|
|
4972
5000
|
if (M) {
|
|
4973
5001
|
ot(y, T), x = L(n, y);
|
|
4974
|
-
const P = Ie(M.value) && M.querySelectorAll && M.querySelectorAll("input,select,textarea")[0] || M, W =
|
|
5002
|
+
const P = Ie(M.value) && M.querySelectorAll && M.querySelectorAll("input,select,textarea")[0] || M, W = wu(P), ne = x._f.refs || [];
|
|
4975
5003
|
if (W ? ne.find((G) => G === P) : P === x._f.ref)
|
|
4976
5004
|
return;
|
|
4977
5005
|
Ee(n, y, {
|
|
@@ -5171,7 +5199,7 @@ function Ru(t = {}) {
|
|
|
5171
5199
|
formControl: tt
|
|
5172
5200
|
});
|
|
5173
5201
|
}
|
|
5174
|
-
function
|
|
5202
|
+
function Nu(t = {}) {
|
|
5175
5203
|
const e = ue.useRef(void 0), r = ue.useRef(void 0), [n, i] = ue.useState({
|
|
5176
5204
|
isDirty: !1,
|
|
5177
5205
|
isValidating: !1,
|
|
@@ -5195,7 +5223,7 @@ function ku(t = {}) {
|
|
|
5195
5223
|
formState: n
|
|
5196
5224
|
}), t.defaultValues && !ft(t.defaultValues) && t.formControl.reset(t.defaultValues, t.resetOptions);
|
|
5197
5225
|
else {
|
|
5198
|
-
const s =
|
|
5226
|
+
const s = ku(t), { formControl: a } = s, l = Xt(s, ["formControl"]);
|
|
5199
5227
|
e.current = X(O({}, l), {
|
|
5200
5228
|
formState: n
|
|
5201
5229
|
});
|
|
@@ -5236,12 +5264,12 @@ function ku(t = {}) {
|
|
|
5236
5264
|
const Tr = (t, e) => {
|
|
5237
5265
|
const r = {};
|
|
5238
5266
|
return t.forEach((n, i) => {
|
|
5239
|
-
if (n.type === Is.NOT_EMPTY && (r.required = (o) => e &&
|
|
5267
|
+
if (n.type === Is.NOT_EMPTY && (r.required = (o) => e && Sd(o) ? n.message : !0), n.type === Is.REGEX) {
|
|
5240
5268
|
const o = new RegExp(n.regex);
|
|
5241
5269
|
r[`regex_${i}`] = (s) => !e && !s ? !0 : typeof s != "string" ? n.message : o.test(s) || n.message;
|
|
5242
5270
|
}
|
|
5243
5271
|
}), r;
|
|
5244
|
-
},
|
|
5272
|
+
}, Du = ({ isOpen: t, image: e }) => /* @__PURE__ */ u(
|
|
5245
5273
|
"div",
|
|
5246
5274
|
{
|
|
5247
5275
|
"data-ui": "gui-custom-select-chevron",
|
|
@@ -5258,7 +5286,7 @@ const Tr = (t, e) => {
|
|
|
5258
5286
|
},
|
|
5259
5287
|
children: e ? /* @__PURE__ */ u(Ve, O({}, e)) : /* @__PURE__ */ u(Ve, { imageId: "chevronDown" })
|
|
5260
5288
|
}
|
|
5261
|
-
),
|
|
5289
|
+
), Mu = ({
|
|
5262
5290
|
isChosen: t,
|
|
5263
5291
|
option: e,
|
|
5264
5292
|
onOptionClickCallback: r,
|
|
@@ -5273,11 +5301,11 @@ const Tr = (t, e) => {
|
|
|
5273
5301
|
style: {
|
|
5274
5302
|
padding: "5px 8px",
|
|
5275
5303
|
background: ((l, d) => {
|
|
5276
|
-
var p, h, c,
|
|
5304
|
+
var p, h, c, g;
|
|
5277
5305
|
if (!l && !d) return (p = ce(e.layout.backgroundColor)) != null ? p : "transparent";
|
|
5278
5306
|
if (!l && d) return (h = ce(e.layoutSelected.backgroundColor)) != null ? h : "transparent";
|
|
5279
5307
|
if (l && !d) return (c = ce(e.layout.highlightColor)) != null ? c : "#F4F4F4";
|
|
5280
|
-
if (l && d) return (
|
|
5308
|
+
if (l && d) return (g = ce(e.layoutSelected.highlightColor)) != null ? g : "#F4F4F4";
|
|
5281
5309
|
})(n, t),
|
|
5282
5310
|
fontSize: 13,
|
|
5283
5311
|
display: "flex",
|
|
@@ -5322,22 +5350,22 @@ const Tr = (t, e) => {
|
|
|
5322
5350
|
pickerLayout: h
|
|
5323
5351
|
}) => {
|
|
5324
5352
|
var H, K, de, le, we, ve, ee, z;
|
|
5325
|
-
const [c,
|
|
5353
|
+
const [c, g] = Me(!1), [w, f] = Me(i), [m, S] = Me("down"), [C, b] = Me(null), I = it(null), D = it(null);
|
|
5326
5354
|
Zt(() => {
|
|
5327
5355
|
var re, $, Q;
|
|
5328
5356
|
if (!c) return;
|
|
5329
|
-
const U = (re = I.current) == null ? void 0 : re.getBoundingClientRect(), Y = ($ =
|
|
5357
|
+
const U = (re = I.current) == null ? void 0 : re.getBoundingClientRect(), Y = ($ = D.current) == null ? void 0 : $.getBoundingClientRect(), te = (Q = d.current) == null ? void 0 : Q.getBoundingClientRect();
|
|
5330
5358
|
if (!U || !Y || !te) return;
|
|
5331
5359
|
const Se = U.bottom + Y.height < te.bottom;
|
|
5332
5360
|
S(Se ? "down" : "up");
|
|
5333
5361
|
}, [c]), nt(() => {
|
|
5334
|
-
o(
|
|
5335
|
-
}, [
|
|
5336
|
-
const
|
|
5362
|
+
o(w);
|
|
5363
|
+
}, [w]);
|
|
5364
|
+
const N = (U) => (Y) => {
|
|
5337
5365
|
var te;
|
|
5338
|
-
Y.stopPropagation(), (Y.type === "touchend" || ((te = Y.nativeEvent) == null ? void 0 : te.pointerType) === "touch") && b(null), a &&
|
|
5366
|
+
Y.stopPropagation(), (Y.type === "touchend" || ((te = Y.nativeEvent) == null ? void 0 : te.pointerType) === "touch") && b(null), a && g(!1), f((Se) => r ? Se.some(($) => $.value === U.value) ? Se.filter(($) => $.value !== U.value) : [...Se, U] : [U]);
|
|
5339
5367
|
}, R = () => {
|
|
5340
|
-
l && l(),
|
|
5368
|
+
l && l(), g(!1);
|
|
5341
5369
|
}, fe = (U) => (Y) => {
|
|
5342
5370
|
Y.stopPropagation(), f((te) => te.filter((Se) => Se.value !== U.value));
|
|
5343
5371
|
}, _e = (U) => {
|
|
@@ -5364,7 +5392,7 @@ const Tr = (t, e) => {
|
|
|
5364
5392
|
},
|
|
5365
5393
|
tabIndex: 0,
|
|
5366
5394
|
onBlur: R,
|
|
5367
|
-
onClick: () =>
|
|
5395
|
+
onClick: () => g(!c),
|
|
5368
5396
|
children: [
|
|
5369
5397
|
/* @__PURE__ */ u(
|
|
5370
5398
|
"div",
|
|
@@ -5379,7 +5407,7 @@ const Tr = (t, e) => {
|
|
|
5379
5407
|
width: "100%"
|
|
5380
5408
|
},
|
|
5381
5409
|
children: [
|
|
5382
|
-
!
|
|
5410
|
+
!w.length && /* @__PURE__ */ u(
|
|
5383
5411
|
"span",
|
|
5384
5412
|
{
|
|
5385
5413
|
style: {
|
|
@@ -5389,7 +5417,7 @@ const Tr = (t, e) => {
|
|
|
5389
5417
|
children: s
|
|
5390
5418
|
}
|
|
5391
5419
|
),
|
|
5392
|
-
|
|
5420
|
+
w.map((U) => {
|
|
5393
5421
|
var Y, te, Se, re, $;
|
|
5394
5422
|
if (r) {
|
|
5395
5423
|
const Q = p == null ? void 0 : p.chip;
|
|
@@ -5449,7 +5477,7 @@ const Tr = (t, e) => {
|
|
|
5449
5477
|
]
|
|
5450
5478
|
}
|
|
5451
5479
|
),
|
|
5452
|
-
n &&
|
|
5480
|
+
n && w.length ? /* @__PURE__ */ u(
|
|
5453
5481
|
"div",
|
|
5454
5482
|
{
|
|
5455
5483
|
style: {
|
|
@@ -5474,12 +5502,12 @@ const Tr = (t, e) => {
|
|
|
5474
5502
|
}
|
|
5475
5503
|
}
|
|
5476
5504
|
) : null,
|
|
5477
|
-
/* @__PURE__ */ u(
|
|
5505
|
+
/* @__PURE__ */ u(Du, { isOpen: c, image: p == null ? void 0 : p.expandButton }),
|
|
5478
5506
|
c && /* @__PURE__ */ u(
|
|
5479
5507
|
"div",
|
|
5480
5508
|
{
|
|
5481
5509
|
"data-ui": "gui-custom-select-dropdown-menu",
|
|
5482
|
-
ref:
|
|
5510
|
+
ref: D,
|
|
5483
5511
|
style: X(O({
|
|
5484
5512
|
position: "absolute"
|
|
5485
5513
|
}, m === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
@@ -5503,13 +5531,13 @@ const Tr = (t, e) => {
|
|
|
5503
5531
|
}),
|
|
5504
5532
|
onClick: (U) => U.stopPropagation(),
|
|
5505
5533
|
children: e.map((U) => {
|
|
5506
|
-
const Y =
|
|
5534
|
+
const Y = w.some((te) => te.value === U.value);
|
|
5507
5535
|
return /* @__PURE__ */ u(
|
|
5508
|
-
|
|
5536
|
+
Mu,
|
|
5509
5537
|
{
|
|
5510
5538
|
isChosen: Y,
|
|
5511
5539
|
option: U,
|
|
5512
|
-
onOptionClickCallback:
|
|
5540
|
+
onOptionClickCallback: N,
|
|
5513
5541
|
isHovered: C === U.value,
|
|
5514
5542
|
onHover: () => b(U.value),
|
|
5515
5543
|
onHoverEnd: () => b(null)
|
|
@@ -5522,7 +5550,7 @@ const Tr = (t, e) => {
|
|
|
5522
5550
|
]
|
|
5523
5551
|
}
|
|
5524
5552
|
) });
|
|
5525
|
-
},
|
|
5553
|
+
}, Pu = ({
|
|
5526
5554
|
control: t,
|
|
5527
5555
|
layout: e,
|
|
5528
5556
|
dataSourceQuestion: r,
|
|
@@ -5581,7 +5609,7 @@ const Tr = (t, e) => {
|
|
|
5581
5609
|
]
|
|
5582
5610
|
}
|
|
5583
5611
|
);
|
|
5584
|
-
},
|
|
5612
|
+
}, Fu = ({
|
|
5585
5613
|
control: t,
|
|
5586
5614
|
layout: e,
|
|
5587
5615
|
dataSourceQuestion: r,
|
|
@@ -5651,17 +5679,17 @@ const Tr = (t, e) => {
|
|
|
5651
5679
|
window.removeEventListener("keydown", r), window.removeEventListener("mousedown", n);
|
|
5652
5680
|
};
|
|
5653
5681
|
}, []), t;
|
|
5654
|
-
},
|
|
5682
|
+
}, Uu = ({
|
|
5655
5683
|
option: t,
|
|
5656
5684
|
layout: e,
|
|
5657
5685
|
dataSourceQuestion: r,
|
|
5658
5686
|
register: n,
|
|
5659
5687
|
watch: i
|
|
5660
5688
|
}) => {
|
|
5661
|
-
const [o, s] = Me(!1), a = cl(), l = String(r.id), p = i(l) === String(t.id), h = e.option, c = e.optionSelected,
|
|
5689
|
+
const [o, s] = Me(!1), a = cl(), l = String(r.id), p = i(l) === String(t.id), h = e.option, c = e.optionSelected, g = {
|
|
5662
5690
|
backgroundColor: ce(c.backgroundColor),
|
|
5663
5691
|
borderRadius: c.cornerRadius
|
|
5664
|
-
},
|
|
5692
|
+
}, w = {
|
|
5665
5693
|
backgroundColor: ce(h.backgroundColor),
|
|
5666
5694
|
borderRadius: h.cornerRadius
|
|
5667
5695
|
}, f = o && a ? { filter: `drop-shadow(0 0 1px ${Jr})` } : {};
|
|
@@ -5674,7 +5702,7 @@ const Tr = (t, e) => {
|
|
|
5674
5702
|
alignContent: "center",
|
|
5675
5703
|
gap: 8,
|
|
5676
5704
|
cursor: "pointer"
|
|
5677
|
-
}, p ?
|
|
5705
|
+
}, p ? g : w),
|
|
5678
5706
|
children: [
|
|
5679
5707
|
/* @__PURE__ */ u(
|
|
5680
5708
|
"div",
|
|
@@ -5714,7 +5742,7 @@ const Tr = (t, e) => {
|
|
|
5714
5742
|
]
|
|
5715
5743
|
}
|
|
5716
5744
|
) }, t.id);
|
|
5717
|
-
},
|
|
5745
|
+
}, Lu = ({
|
|
5718
5746
|
layout: t,
|
|
5719
5747
|
register: e,
|
|
5720
5748
|
watch: r,
|
|
@@ -5743,7 +5771,7 @@ const Tr = (t, e) => {
|
|
|
5743
5771
|
}
|
|
5744
5772
|
),
|
|
5745
5773
|
n.options.map((i) => /* @__PURE__ */ u(
|
|
5746
|
-
|
|
5774
|
+
Uu,
|
|
5747
5775
|
{
|
|
5748
5776
|
register: e,
|
|
5749
5777
|
watch: r,
|
|
@@ -5755,19 +5783,19 @@ const Tr = (t, e) => {
|
|
|
5755
5783
|
))
|
|
5756
5784
|
]
|
|
5757
5785
|
}
|
|
5758
|
-
) }),
|
|
5786
|
+
) }), Vu = ({
|
|
5759
5787
|
option: t,
|
|
5760
5788
|
layout: e,
|
|
5761
5789
|
dataSourceQuestion: r,
|
|
5762
5790
|
register: n,
|
|
5763
5791
|
watch: i
|
|
5764
5792
|
}) => {
|
|
5765
|
-
const [o, s] = Me(!1), a = cl(), l = String(r.id), p = i(l) === String(t.id), h = e.option, c = e.optionSelected,
|
|
5793
|
+
const [o, s] = Me(!1), a = cl(), l = String(r.id), p = i(l) === String(t.id), h = e.option, c = e.optionSelected, g = {
|
|
5766
5794
|
borderRadius: h.cornerRadius,
|
|
5767
5795
|
background: ce(h.backgroundColor),
|
|
5768
5796
|
borderColor: ce(h.borderColor),
|
|
5769
5797
|
borderWidth: h.borderWidth
|
|
5770
|
-
},
|
|
5798
|
+
}, w = {
|
|
5771
5799
|
borderRadius: c.cornerRadius,
|
|
5772
5800
|
background: ce(c.backgroundColor),
|
|
5773
5801
|
borderColor: ce(c.borderColor),
|
|
@@ -5789,7 +5817,7 @@ const Tr = (t, e) => {
|
|
|
5789
5817
|
cursor: "pointer",
|
|
5790
5818
|
borderStyle: "solid",
|
|
5791
5819
|
position: "relative"
|
|
5792
|
-
}, p ?
|
|
5820
|
+
}, p ? w : g), f),
|
|
5793
5821
|
children: [
|
|
5794
5822
|
/* @__PURE__ */ u(
|
|
5795
5823
|
"input",
|
|
@@ -5821,7 +5849,7 @@ const Tr = (t, e) => {
|
|
|
5821
5849
|
},
|
|
5822
5850
|
t.id
|
|
5823
5851
|
);
|
|
5824
|
-
},
|
|
5852
|
+
}, $u = ({
|
|
5825
5853
|
layout: t,
|
|
5826
5854
|
watch: e,
|
|
5827
5855
|
register: r,
|
|
@@ -5847,7 +5875,7 @@ const Tr = (t, e) => {
|
|
|
5847
5875
|
}
|
|
5848
5876
|
),
|
|
5849
5877
|
/* @__PURE__ */ u("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: n.options.map((i) => /* @__PURE__ */ u(
|
|
5850
|
-
|
|
5878
|
+
Vu,
|
|
5851
5879
|
{
|
|
5852
5880
|
register: r,
|
|
5853
5881
|
watch: e,
|
|
@@ -5859,7 +5887,7 @@ const Tr = (t, e) => {
|
|
|
5859
5887
|
)) })
|
|
5860
5888
|
]
|
|
5861
5889
|
}
|
|
5862
|
-
) }),
|
|
5890
|
+
) }), Bu = ({
|
|
5863
5891
|
children: t,
|
|
5864
5892
|
backgroundColor: e,
|
|
5865
5893
|
cornerRadius: r = 0,
|
|
@@ -5898,13 +5926,13 @@ const Tr = (t, e) => {
|
|
|
5898
5926
|
),
|
|
5899
5927
|
t
|
|
5900
5928
|
] });
|
|
5901
|
-
},
|
|
5929
|
+
}, Hu = ({ validationErrorsTypes: t, title: e }) => t ? /* @__PURE__ */ u("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(t).map(([r, n]) => /* @__PURE__ */ u(Oe, X(O({}, e), { text: n }), r)) }) : null, Wu = ({
|
|
5902
5930
|
layout: t,
|
|
5903
5931
|
dataSourceQuestion: e,
|
|
5904
5932
|
register: r
|
|
5905
5933
|
}) => {
|
|
5906
|
-
var o, s, a, l, d, p, h, c,
|
|
5907
|
-
const n = String(e.id), i = (
|
|
5934
|
+
var o, s, a, l, d, p, h, c, g, w, f, m, S, C, b, I;
|
|
5935
|
+
const n = String(e.id), i = (D) => D ? D === Rn.EMAIL ? "email" : D === Rn.FREE_TEXT ? "text" : D === Rn.NUMBER ? "number" : D === Rn.SECURE ? "password" : "text" : "text";
|
|
5908
5936
|
return /* @__PURE__ */ u(
|
|
5909
5937
|
"div",
|
|
5910
5938
|
{
|
|
@@ -5928,8 +5956,8 @@ const Tr = (t, e) => {
|
|
|
5928
5956
|
fontSize: (d = (l = t == null ? void 0 : t.textField) == null ? void 0 : l.fontSize) != null ? d : 15,
|
|
5929
5957
|
color: (h = ce((p = t == null ? void 0 : t.textField) == null ? void 0 : p.fontColor)) != null ? h : "#000000",
|
|
5930
5958
|
height: "42px",
|
|
5931
|
-
borderWidth: (
|
|
5932
|
-
borderColor: (f = ce((
|
|
5959
|
+
borderWidth: (g = (c = t == null ? void 0 : t.textField) == null ? void 0 : c.borderWidth) != null ? g : 1,
|
|
5960
|
+
borderColor: (f = ce((w = t == null ? void 0 : t.textField) == null ? void 0 : w.borderColor)) != null ? f : "#d9d9d9",
|
|
5933
5961
|
borderStyle: "solid",
|
|
5934
5962
|
borderRadius: (S = (m = t == null ? void 0 : t.textField) == null ? void 0 : m.cornerRadius) != null ? S : 8,
|
|
5935
5963
|
padding: "11px",
|
|
@@ -5944,12 +5972,12 @@ const Tr = (t, e) => {
|
|
|
5944
5972
|
]
|
|
5945
5973
|
}
|
|
5946
5974
|
);
|
|
5947
|
-
},
|
|
5975
|
+
}, ju = ({
|
|
5948
5976
|
layout: t,
|
|
5949
5977
|
dataSourceQuestion: e,
|
|
5950
5978
|
register: r
|
|
5951
5979
|
}) => {
|
|
5952
|
-
var i, o, s, a, l, d, p, h, c,
|
|
5980
|
+
var i, o, s, a, l, d, p, h, c, g, w, f, m;
|
|
5953
5981
|
const n = String(e.id);
|
|
5954
5982
|
return /* @__PURE__ */ u(
|
|
5955
5983
|
"div",
|
|
@@ -5984,7 +6012,7 @@ const Tr = (t, e) => {
|
|
|
5984
6012
|
borderWidth: (p = (d = t == null ? void 0 : t.textField) == null ? void 0 : d.borderWidth) != null ? p : 1,
|
|
5985
6013
|
borderColor: (c = ce((h = t == null ? void 0 : t.textField) == null ? void 0 : h.borderColor)) != null ? c : "#d9d9d9",
|
|
5986
6014
|
borderStyle: "solid",
|
|
5987
|
-
borderRadius: (
|
|
6015
|
+
borderRadius: (w = (g = t == null ? void 0 : t.textField) == null ? void 0 : g.cornerRadius) != null ? w : 8,
|
|
5988
6016
|
padding: "11px",
|
|
5989
6017
|
boxSizing: "border-box",
|
|
5990
6018
|
backgroundColor: (m = ce((f = t == null ? void 0 : t.textField) == null ? void 0 : f.backgroundColor)) != null ? m : "#FFFFFF",
|
|
@@ -6018,23 +6046,23 @@ const Tr = (t, e) => {
|
|
|
6018
6046
|
};
|
|
6019
6047
|
Ut.MODULE = Kn, Ut.ERROR_ENUM_NAME = "GuiModuleError", Ut.SHORT_CODE = "GM";
|
|
6020
6048
|
let zr = Ut;
|
|
6021
|
-
const
|
|
6022
|
-
const l = Ka(r), { perform: d } = dr(), p = s ?
|
|
6049
|
+
const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSource: o, properties: s, backgroundColor: a }) => {
|
|
6050
|
+
const l = Ka(r), { perform: d } = dr(), p = s ? Ed(o.questions, s) : {}, h = it(null), {
|
|
6023
6051
|
register: c,
|
|
6024
|
-
handleSubmit:
|
|
6025
|
-
formState: { errors:
|
|
6052
|
+
handleSubmit: g,
|
|
6053
|
+
formState: { errors: w },
|
|
6026
6054
|
reset: f,
|
|
6027
6055
|
watch: m,
|
|
6028
6056
|
control: S
|
|
6029
|
-
} =
|
|
6057
|
+
} = Nu({
|
|
6030
6058
|
criteriaMode: "all",
|
|
6031
6059
|
defaultValues: p
|
|
6032
6060
|
});
|
|
6033
6061
|
return /* @__PURE__ */ u(Yt, { header: t, footer: n, backgroundColor: a, children: /* @__PURE__ */ u(
|
|
6034
6062
|
"form",
|
|
6035
6063
|
{
|
|
6036
|
-
onSubmit:
|
|
6037
|
-
d(
|
|
6064
|
+
onSubmit: g((b) => {
|
|
6065
|
+
d(Cd(b), l), f();
|
|
6038
6066
|
}),
|
|
6039
6067
|
style: {
|
|
6040
6068
|
height: "100%",
|
|
@@ -6074,11 +6102,11 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6074
6102
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
6075
6103
|
children: o.questions.map((b) => {
|
|
6076
6104
|
var ae;
|
|
6077
|
-
const I = o.static,
|
|
6105
|
+
const I = o.static, D = (Z, H) => H.find((K) => {
|
|
6078
6106
|
var de;
|
|
6079
6107
|
if ((de = K.questionIds) != null && de.length)
|
|
6080
6108
|
return K.questionIds.find((le) => Z === le);
|
|
6081
|
-
}),
|
|
6109
|
+
}), N = (Z, H) => H.find((K) => !K.questionIds && K.answerType === Z), R = I ? D(String(b.id), i.itemTypes) || N(b.answerType, i.itemTypes) : i.itemTypes.find((Z) => Z.answerType === b.answerType);
|
|
6082
6110
|
if (!R) {
|
|
6083
6111
|
const Z = new zr({
|
|
6084
6112
|
errorCode: Gn.DECODING_FAILED,
|
|
@@ -6087,12 +6115,12 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6087
6115
|
d(Z);
|
|
6088
6116
|
return;
|
|
6089
6117
|
}
|
|
6090
|
-
const fe = R == null ? void 0 : R.displayType, _e = b.id in
|
|
6118
|
+
const fe = R == null ? void 0 : R.displayType, _e = b.id in w && ((ae = w[b.id]) == null ? void 0 : ae.types);
|
|
6091
6119
|
return (
|
|
6092
6120
|
/** Question */
|
|
6093
6121
|
/* @__PURE__ */ u(We, { children: [
|
|
6094
6122
|
/* @__PURE__ */ u(
|
|
6095
|
-
|
|
6123
|
+
Bu,
|
|
6096
6124
|
{
|
|
6097
6125
|
backgroundColor: R == null ? void 0 : R.backgroundColor,
|
|
6098
6126
|
cornerRadius: R == null ? void 0 : R.cornerRadius,
|
|
@@ -6102,7 +6130,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6102
6130
|
validationBorderWidth: R == null ? void 0 : R.validationBorderWidth,
|
|
6103
6131
|
children: [
|
|
6104
6132
|
fe === hr.TEXT_EXPANDABLE && /* @__PURE__ */ u(
|
|
6105
|
-
|
|
6133
|
+
ju,
|
|
6106
6134
|
{
|
|
6107
6135
|
layout: R,
|
|
6108
6136
|
dataSourceQuestion: b,
|
|
@@ -6110,7 +6138,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6110
6138
|
}
|
|
6111
6139
|
),
|
|
6112
6140
|
fe === hr.TEXT_SINGLE_LINE && /* @__PURE__ */ u(
|
|
6113
|
-
|
|
6141
|
+
Wu,
|
|
6114
6142
|
{
|
|
6115
6143
|
layout: R,
|
|
6116
6144
|
dataSourceQuestion: b,
|
|
@@ -6118,7 +6146,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6118
6146
|
}
|
|
6119
6147
|
),
|
|
6120
6148
|
fe === hr.SELECTOR_OPTIONS && /* @__PURE__ */ u(
|
|
6121
|
-
|
|
6149
|
+
Lu,
|
|
6122
6150
|
{
|
|
6123
6151
|
layout: R,
|
|
6124
6152
|
dataSourceQuestion: b,
|
|
@@ -6127,7 +6155,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6127
6155
|
}
|
|
6128
6156
|
),
|
|
6129
6157
|
fe === hr.SELECTOR_BUTTONS && /* @__PURE__ */ u(
|
|
6130
|
-
|
|
6158
|
+
$u,
|
|
6131
6159
|
{
|
|
6132
6160
|
layout: R,
|
|
6133
6161
|
dataSourceQuestion: b,
|
|
@@ -6136,7 +6164,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6136
6164
|
}
|
|
6137
6165
|
),
|
|
6138
6166
|
fe === hr.SELECTOR_DROPDOWN && /* @__PURE__ */ u(
|
|
6139
|
-
|
|
6167
|
+
Pu,
|
|
6140
6168
|
{
|
|
6141
6169
|
control: S,
|
|
6142
6170
|
layout: R,
|
|
@@ -6145,7 +6173,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6145
6173
|
}
|
|
6146
6174
|
),
|
|
6147
6175
|
fe === hr.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ u(
|
|
6148
|
-
|
|
6176
|
+
Fu,
|
|
6149
6177
|
{
|
|
6150
6178
|
control: S,
|
|
6151
6179
|
layout: R,
|
|
@@ -6157,7 +6185,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6157
6185
|
}
|
|
6158
6186
|
),
|
|
6159
6187
|
_e && /* @__PURE__ */ u(
|
|
6160
|
-
|
|
6188
|
+
Hu,
|
|
6161
6189
|
{
|
|
6162
6190
|
validationErrorsTypes: _e,
|
|
6163
6191
|
title: R.validationMessage
|
|
@@ -6192,9 +6220,9 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6192
6220
|
]
|
|
6193
6221
|
}
|
|
6194
6222
|
) });
|
|
6195
|
-
}, zu = {
|
|
6196
|
-
display: "none"
|
|
6197
6223
|
}, Ku = {
|
|
6224
|
+
display: "none"
|
|
6225
|
+
}, Gu = {
|
|
6198
6226
|
display: "flex",
|
|
6199
6227
|
alignItems: "center",
|
|
6200
6228
|
justifyContent: "center",
|
|
@@ -6204,7 +6232,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6204
6232
|
borderRadius: "16px",
|
|
6205
6233
|
backgroundColor: "#7e57c5",
|
|
6206
6234
|
cursor: "pointer"
|
|
6207
|
-
},
|
|
6235
|
+
}, qu = {
|
|
6208
6236
|
position: "relative",
|
|
6209
6237
|
display: "flex",
|
|
6210
6238
|
flexGrow: 1,
|
|
@@ -6216,7 +6244,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6216
6244
|
width: "100%",
|
|
6217
6245
|
minHeight: "100%",
|
|
6218
6246
|
overflow: "auto"
|
|
6219
|
-
},
|
|
6247
|
+
}, Zu = ({
|
|
6220
6248
|
header: t,
|
|
6221
6249
|
footer: e,
|
|
6222
6250
|
buttons: r,
|
|
@@ -6225,12 +6253,12 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6225
6253
|
}) => {
|
|
6226
6254
|
var p, h;
|
|
6227
6255
|
const { perform: o } = dr(), s = it(null), a = typeof i == "number" && (i === 0 || i > 1), l = (c) => F(null, null, function* () {
|
|
6228
|
-
var
|
|
6229
|
-
const
|
|
6230
|
-
if (
|
|
6256
|
+
var w;
|
|
6257
|
+
const g = Array.from((w = c.currentTarget.files) != null ? w : []);
|
|
6258
|
+
if (g.length)
|
|
6231
6259
|
try {
|
|
6232
6260
|
const m = (yield Promise.allSettled(
|
|
6233
|
-
|
|
6261
|
+
g.map((S) => F(null, null, function* () {
|
|
6234
6262
|
return {
|
|
6235
6263
|
content: yield za(S),
|
|
6236
6264
|
metadata: {
|
|
@@ -6259,14 +6287,14 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6259
6287
|
return /* @__PURE__ */ u(Yt, { header: t, footer: e, backgroundColor: n, children: /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(
|
|
6260
6288
|
"div",
|
|
6261
6289
|
{
|
|
6262
|
-
style: X(O({},
|
|
6290
|
+
style: X(O({}, qu), {
|
|
6263
6291
|
justifyContent: "center"
|
|
6264
6292
|
}),
|
|
6265
6293
|
children: [
|
|
6266
6294
|
/* @__PURE__ */ u(
|
|
6267
6295
|
"input",
|
|
6268
6296
|
X(O({
|
|
6269
|
-
style:
|
|
6297
|
+
style: Ku,
|
|
6270
6298
|
ref: s,
|
|
6271
6299
|
type: "file",
|
|
6272
6300
|
accept: "image/*"
|
|
@@ -6274,13 +6302,13 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6274
6302
|
onInput: l
|
|
6275
6303
|
})
|
|
6276
6304
|
),
|
|
6277
|
-
/* @__PURE__ */ u("button", { style:
|
|
6305
|
+
/* @__PURE__ */ u("button", { style: Gu, onClick: d, children: /* @__PURE__ */ u(Ve, { imageId: (h = (p = r == null ? void 0 : r[0]) == null ? void 0 : p.image) == null ? void 0 : h.imageId }) })
|
|
6278
6306
|
]
|
|
6279
6307
|
}
|
|
6280
6308
|
) }) });
|
|
6281
|
-
}, Zu = {
|
|
6282
|
-
display: "none"
|
|
6283
6309
|
}, Yu = {
|
|
6310
|
+
display: "none"
|
|
6311
|
+
}, Ju = {
|
|
6284
6312
|
display: "flex",
|
|
6285
6313
|
alignItems: "center",
|
|
6286
6314
|
justifyContent: "center",
|
|
@@ -6290,7 +6318,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6290
6318
|
borderRadius: "16px",
|
|
6291
6319
|
background: "#7e57c5",
|
|
6292
6320
|
cursor: "pointer"
|
|
6293
|
-
},
|
|
6321
|
+
}, Xu = {
|
|
6294
6322
|
position: "relative",
|
|
6295
6323
|
display: "flex",
|
|
6296
6324
|
alignItems: "center",
|
|
@@ -6299,7 +6327,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6299
6327
|
width: "100%",
|
|
6300
6328
|
minHeight: "100%",
|
|
6301
6329
|
overflow: "auto"
|
|
6302
|
-
},
|
|
6330
|
+
}, Qu = ({
|
|
6303
6331
|
header: t,
|
|
6304
6332
|
footer: e,
|
|
6305
6333
|
backgroundColor: r,
|
|
@@ -6308,12 +6336,12 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6308
6336
|
}) => {
|
|
6309
6337
|
var p, h;
|
|
6310
6338
|
const { perform: o } = dr(), s = it(null), a = typeof i == "number" && (i === 0 || i > 1), l = (c) => F(null, null, function* () {
|
|
6311
|
-
var
|
|
6312
|
-
const
|
|
6313
|
-
if (
|
|
6339
|
+
var w;
|
|
6340
|
+
const g = Array.from((w = c.currentTarget.files) != null ? w : []);
|
|
6341
|
+
if (g.length)
|
|
6314
6342
|
try {
|
|
6315
6343
|
const m = (yield Promise.allSettled(
|
|
6316
|
-
|
|
6344
|
+
g.map((S) => F(null, null, function* () {
|
|
6317
6345
|
return {
|
|
6318
6346
|
content: yield za(S),
|
|
6319
6347
|
metadata: {
|
|
@@ -6342,7 +6370,7 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6342
6370
|
return nt(() => {
|
|
6343
6371
|
F(null, null, function* () {
|
|
6344
6372
|
if (Je.isDesktop) return;
|
|
6345
|
-
const c = yield
|
|
6373
|
+
const c = yield Td();
|
|
6346
6374
|
(c === "denied" || c === "error") && o({
|
|
6347
6375
|
cancel: !1,
|
|
6348
6376
|
permissionDenied: !0,
|
|
@@ -6352,14 +6380,14 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6352
6380
|
}, []), /* @__PURE__ */ u(Yt, { header: t, footer: e, backgroundColor: r, children: /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(
|
|
6353
6381
|
"div",
|
|
6354
6382
|
{
|
|
6355
|
-
style: X(O({},
|
|
6383
|
+
style: X(O({}, Xu), {
|
|
6356
6384
|
justifyContent: "center"
|
|
6357
6385
|
}),
|
|
6358
6386
|
children: [
|
|
6359
6387
|
/* @__PURE__ */ u(
|
|
6360
6388
|
"input",
|
|
6361
6389
|
X(O({
|
|
6362
|
-
style:
|
|
6390
|
+
style: Yu,
|
|
6363
6391
|
ref: s,
|
|
6364
6392
|
type: "file",
|
|
6365
6393
|
accept: "image/*",
|
|
@@ -6368,12 +6396,12 @@ const ju = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6368
6396
|
onInput: l
|
|
6369
6397
|
})
|
|
6370
6398
|
),
|
|
6371
|
-
/* @__PURE__ */ u("button", { style:
|
|
6399
|
+
/* @__PURE__ */ u("button", { style: Ju, onClick: d, children: /* @__PURE__ */ u(Ve, { imageId: (h = (p = n == null ? void 0 : n[0]) == null ? void 0 : p.image) == null ? void 0 : h.imageId }) })
|
|
6372
6400
|
]
|
|
6373
6401
|
}
|
|
6374
6402
|
) }) });
|
|
6375
6403
|
};
|
|
6376
|
-
function
|
|
6404
|
+
function e1() {
|
|
6377
6405
|
const t = it(null), [e, r] = Me(!1);
|
|
6378
6406
|
return { ref: t, isPopoverOpen: e, openPopover: () => {
|
|
6379
6407
|
var o;
|
|
@@ -6391,7 +6419,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6391
6419
|
} catch (e) {
|
|
6392
6420
|
return "unknown";
|
|
6393
6421
|
}
|
|
6394
|
-
}),
|
|
6422
|
+
}), t1 = () => F(null, null, function* () {
|
|
6395
6423
|
try {
|
|
6396
6424
|
return yield navigator.permissions.query({ name: "geolocation" });
|
|
6397
6425
|
} catch (t) {
|
|
@@ -6437,13 +6465,13 @@ const Ui = () => F(null, null, function* () {
|
|
|
6437
6465
|
t
|
|
6438
6466
|
);
|
|
6439
6467
|
});
|
|
6440
|
-
}),
|
|
6468
|
+
}), r1 = {
|
|
6441
6469
|
height: "100%",
|
|
6442
6470
|
fontFamily: "sans-serif",
|
|
6443
6471
|
display: "flex",
|
|
6444
6472
|
flexDirection: "column",
|
|
6445
6473
|
gap: "15px"
|
|
6446
|
-
},
|
|
6474
|
+
}, n1 = {
|
|
6447
6475
|
flex: "1 1 100%",
|
|
6448
6476
|
display: "flex",
|
|
6449
6477
|
justifyContent: "flex-start",
|
|
@@ -6455,7 +6483,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6455
6483
|
width: "100%",
|
|
6456
6484
|
overflow: "auto",
|
|
6457
6485
|
position: "relative"
|
|
6458
|
-
},
|
|
6486
|
+
}, i1 = {
|
|
6459
6487
|
position: "fixed",
|
|
6460
6488
|
inset: 0,
|
|
6461
6489
|
backdropFilter: "blur(8px)",
|
|
@@ -6464,25 +6492,25 @@ const Ui = () => F(null, null, function* () {
|
|
|
6464
6492
|
zIndex: 1e3,
|
|
6465
6493
|
pointerEvents: "auto",
|
|
6466
6494
|
cursor: "default"
|
|
6467
|
-
},
|
|
6495
|
+
}, o1 = {
|
|
6468
6496
|
width: "100%",
|
|
6469
6497
|
height: "auto",
|
|
6470
6498
|
marginBottom: "32px",
|
|
6471
6499
|
aspectRatio: 1.61
|
|
6472
|
-
},
|
|
6500
|
+
}, s1 = {
|
|
6473
6501
|
marginBottom: 20,
|
|
6474
6502
|
lineHeight: "39.2px",
|
|
6475
6503
|
width: "100%"
|
|
6476
|
-
},
|
|
6504
|
+
}, a1 = {
|
|
6477
6505
|
lineHeight: "28px",
|
|
6478
6506
|
fontWeight: "400",
|
|
6479
6507
|
width: "100%"
|
|
6480
|
-
},
|
|
6508
|
+
}, l1 = {
|
|
6481
6509
|
padding: "32px 24px 0 24px",
|
|
6482
6510
|
border: "1px solid rgba(0, 0, 0, 0.06)",
|
|
6483
6511
|
width: "min(400px, calc(100vw - 32px))",
|
|
6484
6512
|
gridTemplateRows: "auto 1fr"
|
|
6485
|
-
},
|
|
6513
|
+
}, c1 = {
|
|
6486
6514
|
marginBottom: "10px",
|
|
6487
6515
|
fontWeight: 500,
|
|
6488
6516
|
display: "-webkit-box",
|
|
@@ -6491,20 +6519,20 @@ const Ui = () => F(null, null, function* () {
|
|
|
6491
6519
|
overflow: "hidden",
|
|
6492
6520
|
textOverflow: "ellipsis",
|
|
6493
6521
|
lineClamp: 2
|
|
6494
|
-
},
|
|
6522
|
+
}, d1 = {
|
|
6495
6523
|
marginBottom: "84px",
|
|
6496
6524
|
fontWeight: 400
|
|
6497
|
-
},
|
|
6525
|
+
}, u1 = {
|
|
6498
6526
|
height: "100%",
|
|
6499
6527
|
overflow: "scroll",
|
|
6500
6528
|
maxHeight: "calc(100dvh - 190px)"
|
|
6501
|
-
},
|
|
6529
|
+
}, f1 = {
|
|
6502
6530
|
position: "absolute",
|
|
6503
6531
|
bottom: 0,
|
|
6504
6532
|
left: 0,
|
|
6505
6533
|
padding: "24px",
|
|
6506
6534
|
width: "100%"
|
|
6507
|
-
},
|
|
6535
|
+
}, h1 = ({
|
|
6508
6536
|
title: t,
|
|
6509
6537
|
header: e,
|
|
6510
6538
|
footer: r,
|
|
@@ -6514,11 +6542,11 @@ const Ui = () => F(null, null, function* () {
|
|
|
6514
6542
|
backgroundColor: s,
|
|
6515
6543
|
popups: a
|
|
6516
6544
|
}) => {
|
|
6517
|
-
const l = Ka(o), { perform: d } = dr(), { setIsProcessingCallback: p } =
|
|
6545
|
+
const l = Ka(o), { perform: d } = dr(), { setIsProcessingCallback: p } = yd(), { ref: h, isPopoverOpen: c, openPopover: g, closePopover: w } = e1(), f = {
|
|
6518
6546
|
enableHighAccuracy: !0,
|
|
6519
6547
|
timeout: 15e3,
|
|
6520
6548
|
maximumAge: 6e4
|
|
6521
|
-
}, m = a.find((I) => I.reason === "system_restricted");
|
|
6549
|
+
}, m = a == null ? void 0 : a.find((I) => I.reason === "system_restricted");
|
|
6522
6550
|
Zt(() => {
|
|
6523
6551
|
Je.isSafari || p == null || p(!0);
|
|
6524
6552
|
}, []), nt(() => {
|
|
@@ -6529,18 +6557,18 @@ const Ui = () => F(null, null, function* () {
|
|
|
6529
6557
|
p == null || p(!1);
|
|
6530
6558
|
return;
|
|
6531
6559
|
}
|
|
6532
|
-
const
|
|
6533
|
-
I && d(
|
|
6560
|
+
const N = yield kn(f);
|
|
6561
|
+
I && d(N, l);
|
|
6534
6562
|
}), () => {
|
|
6535
6563
|
Je.isSafari || (I = !1);
|
|
6536
6564
|
};
|
|
6537
6565
|
}, []), nt(() => {
|
|
6538
6566
|
if (Je.isSafari) return;
|
|
6539
|
-
let I = !0,
|
|
6567
|
+
let I = !0, D = null;
|
|
6540
6568
|
return F(null, null, function* () {
|
|
6541
|
-
const
|
|
6542
|
-
|
|
6543
|
-
if (
|
|
6569
|
+
const N = yield t1();
|
|
6570
|
+
N && (D = N, N.onchange = () => F(null, null, function* () {
|
|
6571
|
+
if (N.state === "denied" && (p == null || p(!0), d(
|
|
6544
6572
|
{
|
|
6545
6573
|
location: {
|
|
6546
6574
|
locationState: "application_location_restricted",
|
|
@@ -6550,7 +6578,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6550
6578
|
}
|
|
6551
6579
|
},
|
|
6552
6580
|
l
|
|
6553
|
-
)),
|
|
6581
|
+
)), N.state === "granted") {
|
|
6554
6582
|
p == null || p(!0);
|
|
6555
6583
|
const R = yield kn(f);
|
|
6556
6584
|
if (!I) return;
|
|
@@ -6558,34 +6586,34 @@ const Ui = () => F(null, null, function* () {
|
|
|
6558
6586
|
}
|
|
6559
6587
|
}));
|
|
6560
6588
|
}), () => {
|
|
6561
|
-
Je.isSafari || (I = !1,
|
|
6589
|
+
Je.isSafari || (I = !1, D && (D.onchange = null));
|
|
6562
6590
|
};
|
|
6563
6591
|
}, []);
|
|
6564
6592
|
const S = (I) => F(null, null, function* () {
|
|
6565
6593
|
I.preventDefault();
|
|
6566
|
-
const
|
|
6567
|
-
if (
|
|
6568
|
-
|
|
6594
|
+
const D = yield Ui();
|
|
6595
|
+
if (D === "denied") {
|
|
6596
|
+
g();
|
|
6569
6597
|
return;
|
|
6570
6598
|
}
|
|
6571
|
-
|
|
6599
|
+
D === "prompt" && (yield kn());
|
|
6572
6600
|
}), C = (I) => F(null, null, function* () {
|
|
6573
6601
|
if (I.preventDefault(), (yield Ui()) === "denied") {
|
|
6574
|
-
|
|
6602
|
+
g();
|
|
6575
6603
|
return;
|
|
6576
6604
|
}
|
|
6577
6605
|
p == null || p(!0);
|
|
6578
|
-
const
|
|
6579
|
-
d(
|
|
6606
|
+
const N = yield kn(f);
|
|
6607
|
+
d(N, l);
|
|
6580
6608
|
}), b = (I) => {
|
|
6581
|
-
I.preventDefault(),
|
|
6609
|
+
I.preventDefault(), w();
|
|
6582
6610
|
};
|
|
6583
6611
|
return /* @__PURE__ */ u(Yt, { header: e, footer: r, backgroundColor: s, children: [
|
|
6584
|
-
/* @__PURE__ */ u("div", { style:
|
|
6585
|
-
/* @__PURE__ */ u("div", { style:
|
|
6586
|
-
n && /* @__PURE__ */ u("div", { style:
|
|
6587
|
-
t && /* @__PURE__ */ u("div", { style:
|
|
6588
|
-
i && /* @__PURE__ */ u("div", { style:
|
|
6612
|
+
/* @__PURE__ */ u("div", { style: r1, children: [
|
|
6613
|
+
/* @__PURE__ */ u("div", { style: n1, children: [
|
|
6614
|
+
n && /* @__PURE__ */ u("div", { style: o1, children: /* @__PURE__ */ u(Ve, O({}, n)) }),
|
|
6615
|
+
t && /* @__PURE__ */ u("div", { style: s1, children: /* @__PURE__ */ u(Oe, O({}, t)) }),
|
|
6616
|
+
i && /* @__PURE__ */ u("div", { style: a1, children: /* @__PURE__ */ u(ri, O({}, i)) })
|
|
6589
6617
|
] }),
|
|
6590
6618
|
!!(o != null && o.length) && /* @__PURE__ */ u(
|
|
6591
6619
|
"div",
|
|
@@ -6594,14 +6622,14 @@ const Ui = () => F(null, null, function* () {
|
|
|
6594
6622
|
display: "flex",
|
|
6595
6623
|
flexDirection: "column"
|
|
6596
6624
|
},
|
|
6597
|
-
children: o.map((I,
|
|
6625
|
+
children: o.map((I, D) => /* @__PURE__ */ u("div", { style: { padding: "5px" }, children: /* @__PURE__ */ u(
|
|
6598
6626
|
qn,
|
|
6599
6627
|
O(O({
|
|
6600
6628
|
dataTestId: "question-button"
|
|
6601
6629
|
}, I), I.type === "FORM" ? {
|
|
6602
6630
|
onClick: Je.isSafari ? C : S
|
|
6603
6631
|
} : {})
|
|
6604
|
-
) },
|
|
6632
|
+
) }, D))
|
|
6605
6633
|
}
|
|
6606
6634
|
)
|
|
6607
6635
|
] }),
|
|
@@ -6612,14 +6640,14 @@ const Ui = () => F(null, null, function* () {
|
|
|
6612
6640
|
popover: "manual",
|
|
6613
6641
|
role: "dialog",
|
|
6614
6642
|
"aria-modal": "true",
|
|
6615
|
-
style: X(O({},
|
|
6643
|
+
style: X(O({}, l1), {
|
|
6616
6644
|
borderRadius: m.cornerRadius || "27px",
|
|
6617
6645
|
backgroundColor: m.backgroundColor || "#ffffff"
|
|
6618
6646
|
}),
|
|
6619
6647
|
children: [
|
|
6620
|
-
/* @__PURE__ */ u("div", { style:
|
|
6621
|
-
/* @__PURE__ */ u("div", { style:
|
|
6622
|
-
m.actionButton1 && /* @__PURE__ */ u("div", { style:
|
|
6648
|
+
/* @__PURE__ */ u("div", { style: c1, children: /* @__PURE__ */ u(Oe, O({}, O({ fontSize: "24px" }, m.title))) }),
|
|
6649
|
+
/* @__PURE__ */ u("div", { style: d1, children: /* @__PURE__ */ u("div", { style: u1, children: /* @__PURE__ */ u(Oe, O({}, O({ fontSize: "17px" }, m.message))) }) }),
|
|
6650
|
+
m.actionButton1 && /* @__PURE__ */ u("div", { style: f1, children: /* @__PURE__ */ u(
|
|
6623
6651
|
qn,
|
|
6624
6652
|
O(O({
|
|
6625
6653
|
dataTestId: "question-button"
|
|
@@ -6631,9 +6659,9 @@ const Ui = () => F(null, null, function* () {
|
|
|
6631
6659
|
c && /* @__PURE__ */ u(
|
|
6632
6660
|
"div",
|
|
6633
6661
|
{
|
|
6634
|
-
style:
|
|
6662
|
+
style: i1,
|
|
6635
6663
|
onPointerDown: (I) => {
|
|
6636
|
-
I.preventDefault(), I.stopPropagation(),
|
|
6664
|
+
I.preventDefault(), I.stopPropagation(), w();
|
|
6637
6665
|
}
|
|
6638
6666
|
}
|
|
6639
6667
|
)
|
|
@@ -6644,7 +6672,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6644
6672
|
const s = i != null && i.length ? JSON.stringify(i) : "default-key";
|
|
6645
6673
|
if (e === ct.STATUS)
|
|
6646
6674
|
return /* @__PURE__ */ u(
|
|
6647
|
-
|
|
6675
|
+
nu,
|
|
6648
6676
|
{
|
|
6649
6677
|
header: r == null ? void 0 : r.header,
|
|
6650
6678
|
footer: r == null ? void 0 : r.footer,
|
|
@@ -6657,7 +6685,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6657
6685
|
);
|
|
6658
6686
|
if (e === ct.INFO)
|
|
6659
6687
|
return /* @__PURE__ */ u(
|
|
6660
|
-
|
|
6688
|
+
su,
|
|
6661
6689
|
{
|
|
6662
6690
|
header: r == null ? void 0 : r.header,
|
|
6663
6691
|
footer: r == null ? void 0 : r.footer,
|
|
@@ -6670,7 +6698,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6670
6698
|
);
|
|
6671
6699
|
if (e === ct.GEOLOCATION)
|
|
6672
6700
|
return /* @__PURE__ */ u(
|
|
6673
|
-
|
|
6701
|
+
h1,
|
|
6674
6702
|
{
|
|
6675
6703
|
header: r.header,
|
|
6676
6704
|
footer: r.footer,
|
|
@@ -6694,7 +6722,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6694
6722
|
);
|
|
6695
6723
|
if (e === ct.INFO_DETAILS)
|
|
6696
6724
|
return /* @__PURE__ */ u(
|
|
6697
|
-
|
|
6725
|
+
uu,
|
|
6698
6726
|
{
|
|
6699
6727
|
header: r == null ? void 0 : r.header,
|
|
6700
6728
|
title: r == null ? void 0 : r.title,
|
|
@@ -6706,7 +6734,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6706
6734
|
);
|
|
6707
6735
|
if (e === ct.CAMERA)
|
|
6708
6736
|
return /* @__PURE__ */ u(
|
|
6709
|
-
|
|
6737
|
+
Qu,
|
|
6710
6738
|
{
|
|
6711
6739
|
header: r == null ? void 0 : r.header,
|
|
6712
6740
|
buttons: r == null ? void 0 : r.buttons,
|
|
@@ -6717,7 +6745,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6717
6745
|
);
|
|
6718
6746
|
if (e === ct.GALLERY)
|
|
6719
6747
|
return /* @__PURE__ */ u(
|
|
6720
|
-
|
|
6748
|
+
Zu,
|
|
6721
6749
|
{
|
|
6722
6750
|
header: r == null ? void 0 : r.header,
|
|
6723
6751
|
buttons: r == null ? void 0 : r.buttons,
|
|
@@ -6728,7 +6756,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6728
6756
|
);
|
|
6729
6757
|
if (n && (n != null && n.questions.length) && e === ct.QUESTIONS)
|
|
6730
6758
|
return /* @__PURE__ */ u(
|
|
6731
|
-
|
|
6759
|
+
zu,
|
|
6732
6760
|
{
|
|
6733
6761
|
dataSource: n,
|
|
6734
6762
|
properties: i,
|
|
@@ -6755,7 +6783,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6755
6783
|
return o(a), null;
|
|
6756
6784
|
};
|
|
6757
6785
|
let Li = !1;
|
|
6758
|
-
const Hs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: t }),
|
|
6786
|
+
const Hs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: t }), p1 = ({ isProcessing: t, moduleProps: e, perform: r }) => {
|
|
6759
6787
|
const { templateId: n, templateLayout: i, dataSource: o, properties: s } = e, a = (l, d) => {
|
|
6760
6788
|
r && r(l, d);
|
|
6761
6789
|
};
|
|
@@ -6774,7 +6802,7 @@ const Hs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id:
|
|
|
6774
6802
|
templateLayout: i
|
|
6775
6803
|
}, e.backgroundColor ? { backgroundColor: e.backgroundColor } : {}), typeof e.selectionLimit == "number" ? { selectionLimit: e.selectionLimit } : {})
|
|
6776
6804
|
) }) });
|
|
6777
|
-
}, Br = class Br extends
|
|
6805
|
+
}, Br = class Br extends gd {
|
|
6778
6806
|
constructor() {
|
|
6779
6807
|
super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
|
|
6780
6808
|
}
|
|
@@ -6815,7 +6843,7 @@ const Hs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id:
|
|
|
6815
6843
|
}
|
|
6816
6844
|
Cr(
|
|
6817
6845
|
/* @__PURE__ */ u(
|
|
6818
|
-
|
|
6846
|
+
p1,
|
|
6819
6847
|
{
|
|
6820
6848
|
moduleProps: this.props.moduleProps,
|
|
6821
6849
|
perform: this.props.perform,
|
|
@@ -6844,8 +6872,8 @@ const Hs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id:
|
|
|
6844
6872
|
};
|
|
6845
6873
|
Br.displayName = Kn, Br.getSupportedTemplates = () => Object.values(ct), Br.getIdentifier = () => Kn;
|
|
6846
6874
|
let Xn = Br;
|
|
6847
|
-
|
|
6848
|
-
const
|
|
6875
|
+
wd(Kn, Xn);
|
|
6876
|
+
const _1 = (t, e) => ({
|
|
6849
6877
|
_isInitialized: !1,
|
|
6850
6878
|
_initializationInProgress: !1,
|
|
6851
6879
|
_isConnectedToPlatform: !1,
|
|
@@ -6903,21 +6931,21 @@ const p1 = (t, e) => ({
|
|
|
6903
6931
|
return {};
|
|
6904
6932
|
}),
|
|
6905
6933
|
_continueSession: (n, i) => F(null, null, function* () {
|
|
6906
|
-
var
|
|
6934
|
+
var g;
|
|
6907
6935
|
const o = e().startConfig, s = "apiKey" in o && typeof o.apiKey == "string", a = e().workflowId, l = i ? Mr.DID_CONTINUE_REMOTE_SESSION : Mr.DID_START_RESTORE_SESSION;
|
|
6908
6936
|
let d;
|
|
6909
6937
|
if (i)
|
|
6910
6938
|
d = i;
|
|
6911
6939
|
else if (s) {
|
|
6912
6940
|
if (!e().sessionRestoreMode) return {};
|
|
6913
|
-
const
|
|
6941
|
+
const w = o.apiKey, f = nr.getAuthTokenLs(), m = f && ((g = f[w]) == null ? void 0 : g.sessionId);
|
|
6914
6942
|
if (!m) return {};
|
|
6915
6943
|
m && (d = m);
|
|
6916
6944
|
} else {
|
|
6917
6945
|
if (!e().sessionRestoreMode) return {};
|
|
6918
|
-
const
|
|
6919
|
-
if (!
|
|
6920
|
-
const f =
|
|
6946
|
+
const w = e().getCurrentSessionDataLs();
|
|
6947
|
+
if (!w) return {};
|
|
6948
|
+
const f = w.sessionId, m = w.workflowId;
|
|
6921
6949
|
if (!f || m !== a) return {};
|
|
6922
6950
|
d = f;
|
|
6923
6951
|
}
|
|
@@ -7005,8 +7033,8 @@ const p1 = (t, e) => ({
|
|
|
7005
7033
|
underlyingBaseError: c.error
|
|
7006
7034
|
}) };
|
|
7007
7035
|
h && c.authToken !== h && nr.removeAuthTokenLs(n.apiKey);
|
|
7008
|
-
const
|
|
7009
|
-
return e().setApiKeyAuthTokenCollection(n.apiKey, c.authToken,
|
|
7036
|
+
const g = p && c.authToken === p.authToken && p, w = g ? g.tokenExpiresAt : Date.now() + a * 1e3;
|
|
7037
|
+
return e().setApiKeyAuthTokenCollection(n.apiKey, c.authToken, w), t({ _isConnectedToPlatform: !0 }), e().setStartConfig({
|
|
7010
7038
|
host: s.host,
|
|
7011
7039
|
isSecure: s.isSecure,
|
|
7012
7040
|
apiKey: n.apiKey,
|
|
@@ -7130,7 +7158,7 @@ const p1 = (t, e) => ({
|
|
|
7130
7158
|
},
|
|
7131
7159
|
prepareWorkflowAndPrepareUi(n) {
|
|
7132
7160
|
return F(this, null, function* () {
|
|
7133
|
-
var
|
|
7161
|
+
var w;
|
|
7134
7162
|
if (!e()._isInitialized)
|
|
7135
7163
|
return { error: new Ot({
|
|
7136
7164
|
errorCode: Et.INITIALIZATION_REQUIRED
|
|
@@ -7143,7 +7171,7 @@ const p1 = (t, e) => ({
|
|
|
7143
7171
|
return { error: new Ot({
|
|
7144
7172
|
errorCode: Et.SCENARIO_IN_PROGRESS
|
|
7145
7173
|
}) };
|
|
7146
|
-
const i = yield e().fetchService.getWorkflow(n), o = So(i.data), s = ((
|
|
7174
|
+
const i = yield e().fetchService.getWorkflow(n), o = So(i.data), s = ((w = o.client) == null ? void 0 : w.steps) && o.client.steps.some((f) => f.templateId === Hi);
|
|
7147
7175
|
let a = null;
|
|
7148
7176
|
if (i.code === 4 && (a = Tt.HTTP_ISSUE), i.code !== 0 && i.code !== 4 && (a = Tt.PROVIDER_ERROR), i.code === 0 && !i.data.id && (a = Tt.DECODING_FAILED), i.code === 0 && i.data.id && o === null && (a = Tt.DECODING_FAILED), s || (a = Tt.DECODING_FAILED), a !== null) {
|
|
7149
7177
|
const f = new jn({
|
|
@@ -7160,20 +7188,20 @@ const p1 = (t, e) => ({
|
|
|
7160
7188
|
c && n !== c && l.forEach((f) => {
|
|
7161
7189
|
f.component.deinitialize();
|
|
7162
7190
|
});
|
|
7163
|
-
const
|
|
7191
|
+
const g = e().modulesConfig;
|
|
7164
7192
|
return l.forEach((f) => {
|
|
7165
|
-
f.component.isReady() || f.component.initialize(
|
|
7193
|
+
f.component.isReady() || f.component.initialize(g);
|
|
7166
7194
|
}), e().setLayout(o.client.layout), e().setProcessingTemplate(o.client.steps), e().setWorkflowId(n), { workflow: o };
|
|
7167
7195
|
});
|
|
7168
7196
|
},
|
|
7169
|
-
startNewSession(
|
|
7170
|
-
return F(this,
|
|
7197
|
+
startNewSession(a) {
|
|
7198
|
+
return F(this, arguments, function* ({ completion: n, locale: i, metadata: o, location: s }) {
|
|
7171
7199
|
if (!e()._isInitialized)
|
|
7172
7200
|
return { error: new Ge({
|
|
7173
7201
|
errorCode: Ke.INITIALIZATION_REQUIRED
|
|
7174
7202
|
}) };
|
|
7175
|
-
const
|
|
7176
|
-
if (!
|
|
7203
|
+
const l = e().workflowId;
|
|
7204
|
+
if (!l)
|
|
7177
7205
|
return {
|
|
7178
7206
|
error: new Ge({
|
|
7179
7207
|
errorCode: Ke.PREPARED_REQUIRED
|
|
@@ -7185,63 +7213,68 @@ const p1 = (t, e) => ({
|
|
|
7185
7213
|
errorCode: Ke.ALREADY_STARTED
|
|
7186
7214
|
})
|
|
7187
7215
|
};
|
|
7188
|
-
const
|
|
7189
|
-
dt && dt.close(), n(
|
|
7216
|
+
const d = (I) => {
|
|
7217
|
+
dt && dt.close(), n(I);
|
|
7190
7218
|
};
|
|
7191
|
-
e().setWorkflowSessionCompletion(
|
|
7192
|
-
const
|
|
7193
|
-
if (
|
|
7194
|
-
const
|
|
7195
|
-
if (Date.now() >
|
|
7196
|
-
const
|
|
7197
|
-
apiKey:
|
|
7198
|
-
host:
|
|
7219
|
+
e().setWorkflowSessionCompletion(d);
|
|
7220
|
+
const p = e().startConfig, h = "apiKey" in p && typeof p.apiKey == "string", c = e().apiKeyAuthTokenCollection;
|
|
7221
|
+
if (h && "tokenExpiresAt" in c) {
|
|
7222
|
+
const I = c.tokenExpiresAt && typeof c.tokenExpiresAt == "number" ? c.tokenExpiresAt : 0;
|
|
7223
|
+
if (Date.now() > I) {
|
|
7224
|
+
const N = yield e().connectByApiKey({
|
|
7225
|
+
apiKey: p.apiKey,
|
|
7226
|
+
host: p.host,
|
|
7199
7227
|
deviceDescriptor: {
|
|
7200
7228
|
ttl: e()._ttl
|
|
7201
7229
|
}
|
|
7202
7230
|
});
|
|
7203
|
-
if (nr.removeAuthTokenLs(
|
|
7231
|
+
if (nr.removeAuthTokenLs(p.apiKey), N.error)
|
|
7204
7232
|
return { error: new ir({
|
|
7205
7233
|
errorCode: tr.CONNECTION_ISSUE,
|
|
7206
|
-
underlyingBaseError:
|
|
7234
|
+
underlyingBaseError: N.error
|
|
7207
7235
|
}) };
|
|
7208
|
-
if (
|
|
7209
|
-
const
|
|
7236
|
+
if (N && "authToken" in N) {
|
|
7237
|
+
const R = Date.now() + e()._ttl * 1e3;
|
|
7210
7238
|
e().setApiKeyAuthTokenCollection(
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7239
|
+
p.apiKey,
|
|
7240
|
+
N.authToken,
|
|
7241
|
+
R
|
|
7214
7242
|
);
|
|
7215
7243
|
}
|
|
7216
7244
|
}
|
|
7217
7245
|
}
|
|
7218
7246
|
e().setIsProcessing(!0);
|
|
7219
|
-
const
|
|
7220
|
-
if (!
|
|
7221
|
-
const
|
|
7247
|
+
const g = yield e().fetchService.getConnectionToken(!1);
|
|
7248
|
+
if (!g || typeof g != "string") {
|
|
7249
|
+
const I = new ir({
|
|
7222
7250
|
errorCode: tr.TOKEN_ERROR
|
|
7223
7251
|
});
|
|
7224
7252
|
return {
|
|
7225
7253
|
error: new Ge({
|
|
7226
7254
|
errorCode: Ke.START_SESSION_FAILED,
|
|
7227
|
-
underlyingBaseError:
|
|
7255
|
+
underlyingBaseError: I
|
|
7228
7256
|
})
|
|
7229
7257
|
};
|
|
7230
7258
|
}
|
|
7231
|
-
e().setServiceSessionToken(
|
|
7232
|
-
const
|
|
7233
|
-
if (
|
|
7234
|
-
const
|
|
7235
|
-
if ("sessionId" in
|
|
7236
|
-
if ("error" in
|
|
7237
|
-
return { error: g.error };
|
|
7238
|
-
if ("id" in g) return {};
|
|
7239
|
-
const f = yield e().fetchService.startSession(s, i, o), m = e()._checkIsSessionDataValid(f.data);
|
|
7240
|
-
if (!Ss(m))
|
|
7259
|
+
e().setServiceSessionToken(g);
|
|
7260
|
+
const w = yield e()._runSocketConnection(g);
|
|
7261
|
+
if (w.error) return { error: w.error };
|
|
7262
|
+
const f = e()._sessionIdFromUrl, m = yield e()._continueSession(i, f);
|
|
7263
|
+
if ("sessionId" in m) return { results: m };
|
|
7264
|
+
if ("error" in m)
|
|
7241
7265
|
return { error: m.error };
|
|
7242
|
-
|
|
7243
|
-
const S =
|
|
7244
|
-
|
|
7266
|
+
if ("id" in m) return {};
|
|
7267
|
+
const S = yield e().fetchService.startSession({
|
|
7268
|
+
workflowId: l,
|
|
7269
|
+
locale: i,
|
|
7270
|
+
metadata: o,
|
|
7271
|
+
location: s
|
|
7272
|
+
}), C = e()._checkIsSessionDataValid(S.data);
|
|
7273
|
+
if (!Ss(C))
|
|
7274
|
+
return { error: C.error };
|
|
7275
|
+
h ? e()._checkAndSetApiTokenToLs(C.id) : e().setCurrentSessionDataLsAndStore({ sessionId: C.id, workflowId: l });
|
|
7276
|
+
const b = C.currentStep;
|
|
7277
|
+
return e().setCurrentStepId(b), e().setNextStep(C.workflow, C.properties, b), e().listener({
|
|
7245
7278
|
eventType: Fn.MESSAGE,
|
|
7246
7279
|
message: Mr.DID_START_SESSION,
|
|
7247
7280
|
module: "IDV"
|
|
@@ -7274,7 +7307,7 @@ const p1 = (t, e) => ({
|
|
|
7274
7307
|
});
|
|
7275
7308
|
}
|
|
7276
7309
|
});
|
|
7277
|
-
class
|
|
7310
|
+
class m1 {
|
|
7278
7311
|
constructor() {
|
|
7279
7312
|
this._connectionTokenExpirationBufferMs = 6e4, this._origin = "", this._locale = "", this._workflowId = "", this._session = null, this._apiKeyAuthToken = { token: "", expiresAt: 0 }, this._connectionToken = { token: "", expiresAt: 0 }, this._connect = null, this._getErrorTextFromError = (e) => e instanceof Error ? e.message : String(e);
|
|
7280
7313
|
}
|
|
@@ -7604,17 +7637,17 @@ class _1 {
|
|
|
7604
7637
|
method: o
|
|
7605
7638
|
}), c = { httpCode: h.status, method: o, url: d };
|
|
7606
7639
|
if (!h.ok) {
|
|
7607
|
-
const
|
|
7608
|
-
return
|
|
7640
|
+
const w = yield this._getResponseTextFromBadResponse(h);
|
|
7641
|
+
return w && (c.what = w), { code: 5, data: c };
|
|
7609
7642
|
}
|
|
7610
|
-
let
|
|
7643
|
+
let g;
|
|
7611
7644
|
try {
|
|
7612
|
-
if (
|
|
7613
|
-
} catch (
|
|
7614
|
-
const f = this._getErrorTextFromError(
|
|
7645
|
+
if (g = yield h.json(), !g) return { code: 6, data: c };
|
|
7646
|
+
} catch (w) {
|
|
7647
|
+
const f = this._getErrorTextFromError(w);
|
|
7615
7648
|
return c.what = f, { code: 6, data: c };
|
|
7616
7649
|
}
|
|
7617
|
-
return { code: 0, data:
|
|
7650
|
+
return { code: 0, data: g };
|
|
7618
7651
|
} catch (h) {
|
|
7619
7652
|
const c = this._getErrorTextFromError(h);
|
|
7620
7653
|
return { code: 4, data: { httpCode: 0, method: o, url: d, what: c } };
|
|
@@ -7701,14 +7734,19 @@ class _1 {
|
|
|
7701
7734
|
return +/* @__PURE__ */ new Date() < +new Date(this._connectionToken.expiresAt) - this._connectionTokenExpirationBufferMs ? this._connectionToken.token : ((r = this._connect) == null ? void 0 : r.type) === "byUserPass" ? (yield this.connectByUserPass(this._connect.arg), this._connectionToken.token) : ((n = this._connect) == null ? void 0 : n.type) === "byApiKey" ? (yield this.connectByApiKey(this._connect.arg, e), this._connectionToken.token) : ((i = this._connect) == null ? void 0 : i.type) === "byUrl" ? (yield this.connectByUrl(this._connect.arg), this._connectionToken.token) : "";
|
|
7702
7735
|
});
|
|
7703
7736
|
}
|
|
7704
|
-
startSession(
|
|
7705
|
-
return F(this,
|
|
7706
|
-
|
|
7737
|
+
startSession(o) {
|
|
7738
|
+
return F(this, arguments, function* ({
|
|
7739
|
+
workflowId: e,
|
|
7740
|
+
locale: r,
|
|
7741
|
+
metadata: n,
|
|
7742
|
+
location: i
|
|
7743
|
+
}) {
|
|
7744
|
+
const s = {
|
|
7707
7745
|
locale: r
|
|
7708
7746
|
};
|
|
7709
|
-
ld(n) && (
|
|
7710
|
-
const
|
|
7711
|
-
return
|
|
7747
|
+
ld(n) && (s.metadata = n), i && (s.location = i);
|
|
7748
|
+
const a = yield this.getConnectionToken(!1), l = this._getAuthorizationHeaderFromConnectionToken(a), d = yield this._fetchSessionByWorkflowId(l, e, s);
|
|
7749
|
+
return d.code === 0 && (this._session = d.data, this._locale = r), d;
|
|
7712
7750
|
});
|
|
7713
7751
|
}
|
|
7714
7752
|
continueSession(e, r) {
|
|
@@ -7749,12 +7787,12 @@ class _1 {
|
|
|
7749
7787
|
});
|
|
7750
7788
|
}
|
|
7751
7789
|
}
|
|
7752
|
-
const
|
|
7790
|
+
const g1 = (t, e) => ({
|
|
7753
7791
|
fetchService: null,
|
|
7754
7792
|
isProcessing: !1,
|
|
7755
7793
|
isFinalWaitingUi: !1,
|
|
7756
7794
|
setAndInitFetchService: () => F(null, null, function* () {
|
|
7757
|
-
const n = new
|
|
7795
|
+
const n = new m1();
|
|
7758
7796
|
t({ fetchService: n });
|
|
7759
7797
|
}),
|
|
7760
7798
|
setFinalWaitingUi: (n) => {
|
|
@@ -7837,7 +7875,7 @@ const m1 = (t, e) => ({
|
|
|
7837
7875
|
},
|
|
7838
7876
|
loadModules: (n) => F(null, null, function* () {
|
|
7839
7877
|
try {
|
|
7840
|
-
const i = yield
|
|
7878
|
+
const i = yield w1(n);
|
|
7841
7879
|
return t(() => ({ externalModules: i })), {};
|
|
7842
7880
|
} catch (i) {
|
|
7843
7881
|
return e().resetFetchService(), e().resetProps(), { error: new Bn({
|
|
@@ -7879,11 +7917,11 @@ const m1 = (t, e) => ({
|
|
|
7879
7917
|
return o != null ? o : null;
|
|
7880
7918
|
},
|
|
7881
7919
|
_getSessionStateNextStepConditionResult: () => F(null, null, function* () {
|
|
7882
|
-
var
|
|
7883
|
-
const n = yield e().fetchService.getSessionState(), i = n.code === 0, o = i ? n.data : null, s = (
|
|
7884
|
-
let
|
|
7885
|
-
if (l && !d && (
|
|
7886
|
-
const S = new Lr({ errorCode:
|
|
7920
|
+
var w, f, m;
|
|
7921
|
+
const n = yield e().fetchService.getSessionState(), i = n.code === 0, o = i ? n.data : null, s = (w = o == null ? void 0 : o.currentStep) != null ? w : "", a = o == null ? void 0 : o.isProcessingFiles, l = (m = (f = o == null ? void 0 : o.workflow) == null ? void 0 : f.steps) != null ? m : [], d = od(l, s), p = n.code === 4, h = n.code !== 0 && n.code !== 4, c = i && (!n.data.workflow || !n.data.currentStep);
|
|
7922
|
+
let g = null;
|
|
7923
|
+
if (l && !d && (g = lt.NOT_DATA_TYPE), p && (g = lt.HTTP_ISSUE), h && (g = lt.PROVIDER_ERROR), a && (g = lt.IS_PROCESSING), c && (g = lt.DECODING_FAILED), g !== null) {
|
|
7924
|
+
const S = new Lr({ errorCode: g });
|
|
7887
7925
|
return { error: new Ge({
|
|
7888
7926
|
errorCode: Ke.INTERNAL_ISSUE,
|
|
7889
7927
|
underlyingBaseError: S
|
|
@@ -8030,8 +8068,8 @@ const m1 = (t, e) => ({
|
|
|
8030
8068
|
dataSource: (d = c.dataSource) != null ? d : null,
|
|
8031
8069
|
properties: o
|
|
8032
8070
|
})), s && (s.sessionId = (p = e().currentSessionData) == null ? void 0 : p.sessionId, s.serviceToken = e().serviceToken), s && cd((h = c == null ? void 0 : c.client) == null ? void 0 : h.templateLayout)) {
|
|
8033
|
-
const
|
|
8034
|
-
|
|
8071
|
+
const g = Cs(c.client.templateLayout, e().layout);
|
|
8072
|
+
g && (s.templateLayout = g);
|
|
8035
8073
|
}
|
|
8036
8074
|
}
|
|
8037
8075
|
const a = id(e().externalModules, i.steps, n);
|
|
@@ -8065,7 +8103,7 @@ const m1 = (t, e) => ({
|
|
|
8065
8103
|
})),
|
|
8066
8104
|
resetFetchService: () => t(() => ({ fetchService: null }))
|
|
8067
8105
|
});
|
|
8068
|
-
function
|
|
8106
|
+
function w1(t) {
|
|
8069
8107
|
return F(this, null, function* () {
|
|
8070
8108
|
const e = [];
|
|
8071
8109
|
for (const n of t)
|
|
@@ -8078,14 +8116,14 @@ function g1(t) {
|
|
|
8078
8116
|
});
|
|
8079
8117
|
}
|
|
8080
8118
|
const He = Bc(
|
|
8081
|
-
(...t) => O(O(O({},
|
|
8082
|
-
),
|
|
8083
|
-
if (!
|
|
8119
|
+
(...t) => O(O(O({}, md(...t)), _1(...t)), g1(...t))
|
|
8120
|
+
), v1 = (t) => /^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t) && t.length <= 100, Ws = (t, e) => {
|
|
8121
|
+
if (!v1(t))
|
|
8084
8122
|
throw new Error(`Invalid component name: ${t}`);
|
|
8085
8123
|
const r = document.createElement(t);
|
|
8086
8124
|
return r.style.width = "100%", r.style.height = "100%", r.setProps(e), r;
|
|
8087
8125
|
};
|
|
8088
|
-
class
|
|
8126
|
+
class y1 {
|
|
8089
8127
|
constructor(e) {
|
|
8090
8128
|
this.isPortrait = !1, this.isLandscape = !1, this.orientation = "portrait", this._handleOrientationChange = () => {
|
|
8091
8129
|
const r = this._getOrientation();
|
|
@@ -8103,7 +8141,7 @@ class v1 {
|
|
|
8103
8141
|
}
|
|
8104
8142
|
}
|
|
8105
8143
|
var Vi = { exports: {} }, js;
|
|
8106
|
-
function
|
|
8144
|
+
function b1() {
|
|
8107
8145
|
return js || (js = 1, (function(t) {
|
|
8108
8146
|
t.exports = /******/
|
|
8109
8147
|
(function(e) {
|
|
@@ -8190,7 +8228,7 @@ function y1() {
|
|
|
8190
8228
|
/* 1 */
|
|
8191
8229
|
/***/
|
|
8192
8230
|
(function(e, r, n) {
|
|
8193
|
-
var i = n(2), o = n(0), s = o.BROWSER_TYPES, a = o.OS_TYPES, l = o.DEVICE_TYPES, d = n(4), p = d.checkType, h = d.broPayload, c = d.mobilePayload,
|
|
8231
|
+
var i = n(2), o = n(0), s = o.BROWSER_TYPES, a = o.OS_TYPES, l = o.DEVICE_TYPES, d = n(4), p = d.checkType, h = d.broPayload, c = d.mobilePayload, g = d.wearPayload, w = d.consolePayload, f = d.stvPayload, m = d.getNavigatorInstance, S = d.isIOS13Check, C = new i(), b = C.getBrowser(), I = C.getDevice(), D = C.getEngine(), N = C.getOS(), R = C.getUA(), fe = s.CHROME, _e = s.CHROMIUM, ae = s.IE, Z = s.INTERNET_EXPLORER, H = s.OPERA, K = s.FIREFOX, de = s.SAFARI, le = s.EDGE, we = s.YANDEX, ve = s.MOBILE_SAFARI, ee = l.MOBILE, z = l.TABLET, U = l.SMART_TV, Y = l.BROWSER, te = l.WEARABLE, Se = l.CONSOLE, re = a.ANDROID, $ = a.WINDOWS_PHONE, Q = a.IOS, $e = a.WINDOWS, je = a.MAC_OS, ot = function() {
|
|
8194
8232
|
return I.type === ee;
|
|
8195
8233
|
}, Xe = function() {
|
|
8196
8234
|
return I.type === z;
|
|
@@ -8203,7 +8241,7 @@ function y1() {
|
|
|
8203
8241
|
return !1;
|
|
8204
8242
|
}
|
|
8205
8243
|
}, st = function() {
|
|
8206
|
-
return
|
|
8244
|
+
return N.name === a.WINDOWS && N.version === "10" ? typeof R == "string" && R.indexOf("Edg/") !== -1 : !1;
|
|
8207
8245
|
}, Ht = function() {
|
|
8208
8246
|
return I.type === U;
|
|
8209
8247
|
}, bt = function() {
|
|
@@ -8213,15 +8251,15 @@ function y1() {
|
|
|
8213
8251
|
}, Ct = function() {
|
|
8214
8252
|
return I.type === Se;
|
|
8215
8253
|
}, Wt = function() {
|
|
8216
|
-
return
|
|
8254
|
+
return N.name === re;
|
|
8217
8255
|
}, _t = function() {
|
|
8218
|
-
return
|
|
8256
|
+
return N.name === $e;
|
|
8219
8257
|
}, tt = function() {
|
|
8220
|
-
return
|
|
8258
|
+
return N.name === je;
|
|
8221
8259
|
}, y = function() {
|
|
8222
|
-
return
|
|
8260
|
+
return N.name === $;
|
|
8223
8261
|
}, T = function() {
|
|
8224
|
-
return
|
|
8262
|
+
return N.name === Q;
|
|
8225
8263
|
}, x = function() {
|
|
8226
8264
|
return b.name === fe;
|
|
8227
8265
|
}, V = function() {
|
|
@@ -8257,9 +8295,9 @@ function y1() {
|
|
|
8257
8295
|
}, he = function() {
|
|
8258
8296
|
return b.version;
|
|
8259
8297
|
}, q = function() {
|
|
8260
|
-
return
|
|
8298
|
+
return N.version ? N.version : "none";
|
|
8261
8299
|
}, ze = function() {
|
|
8262
|
-
return
|
|
8300
|
+
return N.name ? N.name : "none";
|
|
8263
8301
|
}, jt = function() {
|
|
8264
8302
|
return b.name;
|
|
8265
8303
|
}, Jt = function() {
|
|
@@ -8267,9 +8305,9 @@ function y1() {
|
|
|
8267
8305
|
}, Qr = function() {
|
|
8268
8306
|
return I.model ? I.model : "none";
|
|
8269
8307
|
}, en = function() {
|
|
8270
|
-
return
|
|
8308
|
+
return D.name;
|
|
8271
8309
|
}, tn = function() {
|
|
8272
|
-
return
|
|
8310
|
+
return D.version;
|
|
8273
8311
|
}, rn = function() {
|
|
8274
8312
|
return R;
|
|
8275
8313
|
}, nn = function() {
|
|
@@ -8278,15 +8316,15 @@ function y1() {
|
|
|
8278
8316
|
function Ci() {
|
|
8279
8317
|
var ie = mt.isBrowser, at = mt.isMobile, fr = mt.isTablet, Sn = mt.isSmartTV, En = mt.isConsole, Tn = mt.isWearable;
|
|
8280
8318
|
if (ie)
|
|
8281
|
-
return h(ie, b,
|
|
8319
|
+
return h(ie, b, D, N, R);
|
|
8282
8320
|
if (Sn)
|
|
8283
|
-
return f(Sn,
|
|
8321
|
+
return f(Sn, D, N, R);
|
|
8284
8322
|
if (En)
|
|
8285
|
-
return
|
|
8323
|
+
return w(En, D, N, R);
|
|
8286
8324
|
if (at || fr)
|
|
8287
|
-
return c(mt, I,
|
|
8325
|
+
return c(mt, I, N, R);
|
|
8288
8326
|
if (Tn)
|
|
8289
|
-
return
|
|
8327
|
+
return g(Tn, D, N, R);
|
|
8290
8328
|
}
|
|
8291
8329
|
e.exports = {
|
|
8292
8330
|
deviceDetect: Ci,
|
|
@@ -8344,7 +8382,7 @@ function y1() {
|
|
|
8344
8382
|
* Dual licensed under GPLv2 or MIT
|
|
8345
8383
|
*/
|
|
8346
8384
|
(function(o, s) {
|
|
8347
|
-
var a = "0.7.18", l = "", d = "?", p = "function", h = "undefined", c = "object",
|
|
8385
|
+
var a = "0.7.18", l = "", d = "?", p = "function", h = "undefined", c = "object", g = "string", w = "major", f = "model", m = "name", S = "type", C = "vendor", b = "version", I = "architecture", D = "console", N = "mobile", R = "tablet", fe = "smarttv", _e = "wearable", ae = "embedded", Z = { extend: function(ee, z) {
|
|
8348
8386
|
var U = {};
|
|
8349
8387
|
for (var Y in ee)
|
|
8350
8388
|
z[Y] && z[Y].length % 2 === 0 ? U[Y] = z[Y].concat(ee[Y]) : U[Y] = ee[Y];
|
|
@@ -8354,7 +8392,7 @@ function y1() {
|
|
|
8354
8392
|
}, lowerize: function(ee) {
|
|
8355
8393
|
return ee.toLowerCase();
|
|
8356
8394
|
}, major: function(ee) {
|
|
8357
|
-
return typeof ee ===
|
|
8395
|
+
return typeof ee === g ? ee.replace(/[^\d\.]/g, "").split(".")[0] : s;
|
|
8358
8396
|
}, trim: function(ee) {
|
|
8359
8397
|
return ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8360
8398
|
} }, H = { rgx: function(ee, z) {
|
|
@@ -8375,7 +8413,7 @@ function y1() {
|
|
|
8375
8413
|
} else if (Z.has(z[U], ee))
|
|
8376
8414
|
return U === d ? s : U;
|
|
8377
8415
|
return ee;
|
|
8378
|
-
} }, K = { browser: { oldsafari: { version: { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" } } }, device: { amazon: { model: { "Fire Phone": ["SD", "KF"] } }, sprint: { model: { "Evo Shift 4G": "7373KT" }, vendor: { HTC: "APA", Sprint: "Sprint" } } }, os: { windows: { version: { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" } } } }, de = { browser: [[/(opera\smini)\/([\w\.-]+)/i, /(opera\s[mobiletab]+).+version\/([\w\.-]+)/i, /(opera).+version\/([\w\.]+)/i, /(opera)[\/\s]+([\w\.]+)/i], [m, b], [/(opios)[\/\s]+([\w\.]+)/i], [[m, "Opera Mini"], b], [/\s(opr)\/([\w\.]+)/i], [[m, "Opera"], b], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i, /(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i, /(?:ms|\()(ie)\s([\w\.]+)/i, /(rekonq)\/([\w\.]*)/i, /(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i], [m, b], [/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i], [[m, "IE"], b], [/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i], [[m, "Edge"], b], [/(yabrowser)\/([\w\.]+)/i], [[m, "Yandex"], b], [/(puffin)\/([\w\.]+)/i], [[m, "Puffin"], b], [/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i], [[m, "UCBrowser"], b], [/(comodo_dragon)\/([\w\.]+)/i], [[m, /_/g, " "], b], [/(micromessenger)\/([\w\.]+)/i], [[m, "WeChat"], b], [/(qqbrowserlite)\/([\w\.]+)/i], [m, b], [/(QQ)\/([\d\.]+)/i], [m, b], [/m?(qqbrowser)[\/\s]?([\w\.]+)/i], [m, b], [/(BIDUBrowser)[\/\s]?([\w\.]+)/i], [m, b], [/(2345Explorer)[\/\s]?([\w\.]+)/i], [m, b], [/(MetaSr)[\/\s]?([\w\.]+)/i], [m], [/(LBBROWSER)/i], [m], [/xiaomi\/miuibrowser\/([\w\.]+)/i], [b, [m, "MIUI Browser"]], [/;fbav\/([\w\.]+);/i], [b, [m, "Facebook"]], [/headlesschrome(?:\/([\w\.]+)|\s)/i], [b, [m, "Chrome Headless"]], [/\swv\).+(chrome)\/([\w\.]+)/i], [[m, /(.+)/, "$1 WebView"], b], [/((?:oculus|samsung)browser)\/([\w\.]+)/i], [[m, /(.+(?:g|us))(.+)/, "$1 $2"], b], [/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i], [b, [m, "Android Browser"]], [/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i], [m, b], [/(dolfin)\/([\w\.]+)/i], [[m, "Dolphin"], b], [/((?:android.+)crmo|crios)\/([\w\.]+)/i], [[m, "Chrome"], b], [/(coast)\/([\w\.]+)/i], [[m, "Opera Coast"], b], [/fxios\/([\w\.-]+)/i], [b, [m, "Firefox"]], [/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i], [b, [m, "Mobile Safari"]], [/version\/([\w\.]+).+?(mobile\s?safari|safari)/i], [b, m], [/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [[m, "GSA"], b], [/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [m, [b, H.str, K.browser.oldsafari.version]], [/(konqueror)\/([\w\.]+)/i, /(webkit|khtml)\/([\w\.]+)/i], [m, b], [/(navigator|netscape)\/([\w\.-]+)/i], [[m, "Netscape"], b], [/(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i, /(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i, /(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i, /(links)\s\(([\w\.]+)/i, /(gobrowser)\/?([\w\.]*)/i, /(ice\s?browser)\/v?([\w\._]+)/i, /(mosaic)[\/\s]([\w\.]+)/i], [m, b]], cpu: [[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i], [[I, "amd64"]], [/(ia32(?=;))/i], [[I, Z.lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[I, "ia32"]], [/windows\s(ce|mobile);\sppc;/i], [[I, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i], [[I, /ower/, "", Z.lowerize]], [/(sun4\w)[;\)]/i], [[I, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [[I, Z.lowerize]]], device: [[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i], [f, C, [S, R]], [/applecoremedia\/[\w\.]+ \((ipad)/], [f, [C, "Apple"], [S, R]], [/(apple\s{0,1}tv)/i], [[f, "Apple TV"], [C, "Apple"]], [/(archos)\s(gamepad2?)/i, /(hp).+(touchpad)/i, /(hp).+(tablet)/i, /(kindle)\/([\w\.]+)/i, /\s(nook)[\w\s]+build\/(\w+)/i, /(dell)\s(strea[kpr\s\d]*[\dko])/i], [C, f, [S, R]], [/(kf[A-z]+)\sbuild\/.+silk\//i], [f, [C, "Amazon"], [S, R]], [/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i], [[f, H.str, K.device.amazon.model], [C, "Amazon"], [S, D]], [/\((ip[honed|\s\w*]+);.+(apple)/i], [f, C, [S, D]], [/\((ip[honed|\s\w*]+);/i], [f, [C, "Apple"], [S, D]], [/(blackberry)[\s-]?(\w+)/i, /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i, /(hp)\s([\w\s]+\w)/i, /(asus)-?(\w+)/i], [C, f, [S, D]], [/\(bb10;\s(\w+)/i], [f, [C, "BlackBerry"], [S, D]], [/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i], [f, [C, "Asus"], [S, R]], [/(sony)\s(tablet\s[ps])\sbuild\//i, /(sony)?(?:sgp.+)\sbuild\//i], [[C, "Sony"], [f, "Xperia Tablet"], [S, R]], [/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i], [f, [C, "Sony"], [S, D]], [/\s(ouya)\s/i, /(nintendo)\s([wids3u]+)/i], [C, f, [S, N]], [/android.+;\s(shield)\sbuild/i], [f, [C, "Nvidia"], [S, N]], [/(playstation\s[34portablevi]+)/i], [f, [C, "Sony"], [S, N]], [/(sprint\s(\w+))/i], [[C, H.str, K.device.sprint.vendor], [f, H.str, K.device.sprint.model], [S, D]], [/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i], [C, f, [S, R]], [/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, /(zte)-(\w*)/i, /(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i], [C, [f, /_/g, " "], [S, D]], [/(nexus\s9)/i], [f, [C, "HTC"], [S, R]], [/d\/huawei([\w\s-]+)[;\)]/i, /(nexus\s6p)/i], [f, [C, "Huawei"], [S, D]], [/(microsoft);\s(lumia[\s\w]+)/i], [C, f, [S, D]], [/[\s\(;](xbox(?:\sone)?)[\s\);]/i], [f, [C, "Microsoft"], [S, N]], [/(kin\.[onetw]{3})/i], [[f, /\./g, " "], [C, "Microsoft"], [S, D]], [/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i, /mot[\s-]?(\w*)/i, /(XT\d{3,4}) build\//i, /(nexus\s6)/i], [f, [C, "Motorola"], [S, D]], [/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i], [f, [C, "Motorola"], [S, R]], [/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i], [[C, Z.trim], [f, Z.trim], [S, fe]], [/hbbtv.+maple;(\d+)/i], [[f, /^/, "SmartTV"], [C, "Samsung"], [S, fe]], [/\(dtv[\);].+(aquos)/i], [f, [C, "Sharp"], [S, fe]], [/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i], [[C, "Samsung"], f, [S, R]], [/smart-tv.+(samsung)/i], [C, [S, fe], f], [/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i, /(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i, /sec-((sgh\w+))/i], [[C, "Samsung"], f, [S, D]], [/sie-(\w*)/i], [f, [C, "Siemens"], [S, D]], [/(maemo|nokia).*(n900|lumia\s\d+)/i, /(nokia)[\s_-]?([\w-]*)/i], [[C, "Nokia"], f, [S, D]], [/android\s3\.[\s\w;-]{10}(a\d{3})/i], [f, [C, "Acer"], [S, R]], [/android.+([vl]k\-?\d{3})\s+build/i], [f, [C, "LG"], [S, R]], [/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i], [[C, "LG"], f, [S, R]], [/(lg) netcast\.tv/i], [C, f, [S, fe]], [/(nexus\s[45])/i, /lg[e;\s\/-]+(\w*)/i, /android.+lg(\-?[\d\w]+)\s+build/i], [f, [C, "LG"], [S, D]], [/android.+(ideatab[a-z0-9\-\s]+)/i], [f, [C, "Lenovo"], [S, R]], [/linux;.+((jolla));/i], [C, f, [S, D]], [/((pebble))app\/[\d\.]+\s/i], [C, f, [S, _e]], [/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i], [C, f, [S, D]], [/crkey/i], [[f, "Chromecast"], [C, "Google"]], [/android.+;\s(glass)\s\d/i], [f, [C, "Google"], [S, _e]], [/android.+;\s(pixel c)\s/i], [f, [C, "Google"], [S, R]], [/android.+;\s(pixel xl|pixel)\s/i], [f, [C, "Google"], [S, D]], [/android.+;\s(\w+)\s+build\/hm\1/i, /android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i, /android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i, /android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i], [[f, /_/g, " "], [C, "Xiaomi"], [S, D]], [/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i], [[f, /_/g, " "], [C, "Xiaomi"], [S, R]], [/android.+;\s(m[1-5]\snote)\sbuild/i], [f, [C, "Meizu"], [S, R]], [/android.+a000(1)\s+build/i, /android.+oneplus\s(a\d{4})\s+build/i], [f, [C, "OnePlus"], [S, D]], [/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i], [f, [C, "RCA"], [S, R]], [/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i], [f, [C, "Dell"], [S, R]], [/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i], [f, [C, "Verizon"], [S, R]], [/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i], [[C, "Barnes & Noble"], f, [S, R]], [/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i], [f, [C, "NuVision"], [S, R]], [/android.+;\s(k88)\sbuild/i], [f, [C, "ZTE"], [S, R]], [/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i], [f, [C, "Swiss"], [S, D]], [/android.+[;\/]\s*(zur\d{3})\s+build/i], [f, [C, "Swiss"], [S, R]], [/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i], [f, [C, "Zeki"], [S, R]], [/(android).+[;\/]\s+([YR]\d{2})\s+build/i, /android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i], [[C, "Dragon Touch"], f, [S, R]], [/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i], [f, [C, "Insignia"], [S, R]], [/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i], [f, [C, "NextBook"], [S, R]], [/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i], [[C, "Voice"], f, [S, D]], [/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i], [[C, "LvTel"], f, [S, D]], [/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i], [f, [C, "Envizen"], [S, R]], [/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i], [C, f, [S, R]], [/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], [f, [C, "MachSpeed"], [S, R]], [/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i], [C, f, [S, R]], [/android.+[;\/]\s*TU_(1491)\s+build/i], [f, [C, "Rotor"], [S, R]], [/android.+(KS(.+))\s+build/i], [f, [C, "Amazon"], [S, R]], [/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i], [C, f, [S, R]], [/\s(tablet|tab)[;\/]/i, /\s(mobile)(?:[;\/]|\ssafari)/i], [[S, Z.lowerize], C, f], [/(android[\w\.\s\-]{0,9});.+build/i], [f, [C, "Generic"]]], engine: [[/windows.+\sedge\/([\w\.]+)/i], [b, [m, "EdgeHTML"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i, /(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i, /(icab)[\/\s]([23]\.[\d\.]+)/i], [m, b], [/rv\:([\w\.]{1,9}).+(gecko)/i], [b, m]], os: [[/microsoft\s(windows)\s(vista|xp)/i], [m, b], [/(windows)\snt\s6\.2;\s(arm)/i, /(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i, /(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i], [m, [b, H.str, K.os.windows.version]], [/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i], [[m, "Windows"], [b, H.str, K.os.windows.version]], [/\((bb)(10);/i], [[m, "BlackBerry"], b], [/(blackberry)\w*\/?([\w\.]*)/i, /(tizen)[\/\s]([\w\.]+)/i, /(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i, /linux;.+(sailfish);/i], [m, b], [/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i], [[m, "Symbian"], b], [/\((series40);/i], [m], [/mozilla.+\(mobile;.+gecko.+firefox/i], [[m, "Firefox OS"], b], [/(nintendo|playstation)\s([wids34portablevu]+)/i, /(mint)[\/\s\(]?(\w*)/i, /(mageia|vectorlinux)[;\s]/i, /(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i, /(hurd|linux)\s?([\w\.]*)/i, /(gnu)\s?([\w\.]*)/i], [m, b], [/(cros)\s[\w]+\s([\w\.]+\w)/i], [[m, "Chromium OS"], b], [/(sunos)\s?([\w\.\d]*)/i], [[m, "Solaris"], b], [/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i], [m, b], [/(haiku)\s(\w+)/i], [m, b], [/cfnetwork\/.+darwin/i, /ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i], [[b, /_/g, "."], [m, "iOS"]], [/(mac\sos\sx)\s?([\w\s\.]*)/i, /(macintosh|mac(?=_powerpc)\s)/i], [[m, "Mac OS"], [b, /_/g, "."]], [/((?:open)?solaris)[\/\s-]?([\w\.]*)/i, /(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i, /(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i, /(unix)\s?([\w\.]*)/i], [m, b]] }, le = function(ee, z) {
|
|
8416
|
+
} }, K = { browser: { oldsafari: { version: { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" } } }, device: { amazon: { model: { "Fire Phone": ["SD", "KF"] } }, sprint: { model: { "Evo Shift 4G": "7373KT" }, vendor: { HTC: "APA", Sprint: "Sprint" } } }, os: { windows: { version: { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" } } } }, de = { browser: [[/(opera\smini)\/([\w\.-]+)/i, /(opera\s[mobiletab]+).+version\/([\w\.-]+)/i, /(opera).+version\/([\w\.]+)/i, /(opera)[\/\s]+([\w\.]+)/i], [m, b], [/(opios)[\/\s]+([\w\.]+)/i], [[m, "Opera Mini"], b], [/\s(opr)\/([\w\.]+)/i], [[m, "Opera"], b], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i, /(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i, /(?:ms|\()(ie)\s([\w\.]+)/i, /(rekonq)\/([\w\.]*)/i, /(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i], [m, b], [/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i], [[m, "IE"], b], [/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i], [[m, "Edge"], b], [/(yabrowser)\/([\w\.]+)/i], [[m, "Yandex"], b], [/(puffin)\/([\w\.]+)/i], [[m, "Puffin"], b], [/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i], [[m, "UCBrowser"], b], [/(comodo_dragon)\/([\w\.]+)/i], [[m, /_/g, " "], b], [/(micromessenger)\/([\w\.]+)/i], [[m, "WeChat"], b], [/(qqbrowserlite)\/([\w\.]+)/i], [m, b], [/(QQ)\/([\d\.]+)/i], [m, b], [/m?(qqbrowser)[\/\s]?([\w\.]+)/i], [m, b], [/(BIDUBrowser)[\/\s]?([\w\.]+)/i], [m, b], [/(2345Explorer)[\/\s]?([\w\.]+)/i], [m, b], [/(MetaSr)[\/\s]?([\w\.]+)/i], [m], [/(LBBROWSER)/i], [m], [/xiaomi\/miuibrowser\/([\w\.]+)/i], [b, [m, "MIUI Browser"]], [/;fbav\/([\w\.]+);/i], [b, [m, "Facebook"]], [/headlesschrome(?:\/([\w\.]+)|\s)/i], [b, [m, "Chrome Headless"]], [/\swv\).+(chrome)\/([\w\.]+)/i], [[m, /(.+)/, "$1 WebView"], b], [/((?:oculus|samsung)browser)\/([\w\.]+)/i], [[m, /(.+(?:g|us))(.+)/, "$1 $2"], b], [/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i], [b, [m, "Android Browser"]], [/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i], [m, b], [/(dolfin)\/([\w\.]+)/i], [[m, "Dolphin"], b], [/((?:android.+)crmo|crios)\/([\w\.]+)/i], [[m, "Chrome"], b], [/(coast)\/([\w\.]+)/i], [[m, "Opera Coast"], b], [/fxios\/([\w\.-]+)/i], [b, [m, "Firefox"]], [/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i], [b, [m, "Mobile Safari"]], [/version\/([\w\.]+).+?(mobile\s?safari|safari)/i], [b, m], [/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [[m, "GSA"], b], [/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [m, [b, H.str, K.browser.oldsafari.version]], [/(konqueror)\/([\w\.]+)/i, /(webkit|khtml)\/([\w\.]+)/i], [m, b], [/(navigator|netscape)\/([\w\.-]+)/i], [[m, "Netscape"], b], [/(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i, /(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i, /(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i, /(links)\s\(([\w\.]+)/i, /(gobrowser)\/?([\w\.]*)/i, /(ice\s?browser)\/v?([\w\._]+)/i, /(mosaic)[\/\s]([\w\.]+)/i], [m, b]], cpu: [[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i], [[I, "amd64"]], [/(ia32(?=;))/i], [[I, Z.lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[I, "ia32"]], [/windows\s(ce|mobile);\sppc;/i], [[I, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i], [[I, /ower/, "", Z.lowerize]], [/(sun4\w)[;\)]/i], [[I, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [[I, Z.lowerize]]], device: [[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i], [f, C, [S, R]], [/applecoremedia\/[\w\.]+ \((ipad)/], [f, [C, "Apple"], [S, R]], [/(apple\s{0,1}tv)/i], [[f, "Apple TV"], [C, "Apple"]], [/(archos)\s(gamepad2?)/i, /(hp).+(touchpad)/i, /(hp).+(tablet)/i, /(kindle)\/([\w\.]+)/i, /\s(nook)[\w\s]+build\/(\w+)/i, /(dell)\s(strea[kpr\s\d]*[\dko])/i], [C, f, [S, R]], [/(kf[A-z]+)\sbuild\/.+silk\//i], [f, [C, "Amazon"], [S, R]], [/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i], [[f, H.str, K.device.amazon.model], [C, "Amazon"], [S, N]], [/\((ip[honed|\s\w*]+);.+(apple)/i], [f, C, [S, N]], [/\((ip[honed|\s\w*]+);/i], [f, [C, "Apple"], [S, N]], [/(blackberry)[\s-]?(\w+)/i, /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i, /(hp)\s([\w\s]+\w)/i, /(asus)-?(\w+)/i], [C, f, [S, N]], [/\(bb10;\s(\w+)/i], [f, [C, "BlackBerry"], [S, N]], [/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i], [f, [C, "Asus"], [S, R]], [/(sony)\s(tablet\s[ps])\sbuild\//i, /(sony)?(?:sgp.+)\sbuild\//i], [[C, "Sony"], [f, "Xperia Tablet"], [S, R]], [/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i], [f, [C, "Sony"], [S, N]], [/\s(ouya)\s/i, /(nintendo)\s([wids3u]+)/i], [C, f, [S, D]], [/android.+;\s(shield)\sbuild/i], [f, [C, "Nvidia"], [S, D]], [/(playstation\s[34portablevi]+)/i], [f, [C, "Sony"], [S, D]], [/(sprint\s(\w+))/i], [[C, H.str, K.device.sprint.vendor], [f, H.str, K.device.sprint.model], [S, N]], [/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i], [C, f, [S, R]], [/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, /(zte)-(\w*)/i, /(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i], [C, [f, /_/g, " "], [S, N]], [/(nexus\s9)/i], [f, [C, "HTC"], [S, R]], [/d\/huawei([\w\s-]+)[;\)]/i, /(nexus\s6p)/i], [f, [C, "Huawei"], [S, N]], [/(microsoft);\s(lumia[\s\w]+)/i], [C, f, [S, N]], [/[\s\(;](xbox(?:\sone)?)[\s\);]/i], [f, [C, "Microsoft"], [S, D]], [/(kin\.[onetw]{3})/i], [[f, /\./g, " "], [C, "Microsoft"], [S, N]], [/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i, /mot[\s-]?(\w*)/i, /(XT\d{3,4}) build\//i, /(nexus\s6)/i], [f, [C, "Motorola"], [S, N]], [/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i], [f, [C, "Motorola"], [S, R]], [/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i], [[C, Z.trim], [f, Z.trim], [S, fe]], [/hbbtv.+maple;(\d+)/i], [[f, /^/, "SmartTV"], [C, "Samsung"], [S, fe]], [/\(dtv[\);].+(aquos)/i], [f, [C, "Sharp"], [S, fe]], [/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i], [[C, "Samsung"], f, [S, R]], [/smart-tv.+(samsung)/i], [C, [S, fe], f], [/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i, /(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i, /sec-((sgh\w+))/i], [[C, "Samsung"], f, [S, N]], [/sie-(\w*)/i], [f, [C, "Siemens"], [S, N]], [/(maemo|nokia).*(n900|lumia\s\d+)/i, /(nokia)[\s_-]?([\w-]*)/i], [[C, "Nokia"], f, [S, N]], [/android\s3\.[\s\w;-]{10}(a\d{3})/i], [f, [C, "Acer"], [S, R]], [/android.+([vl]k\-?\d{3})\s+build/i], [f, [C, "LG"], [S, R]], [/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i], [[C, "LG"], f, [S, R]], [/(lg) netcast\.tv/i], [C, f, [S, fe]], [/(nexus\s[45])/i, /lg[e;\s\/-]+(\w*)/i, /android.+lg(\-?[\d\w]+)\s+build/i], [f, [C, "LG"], [S, N]], [/android.+(ideatab[a-z0-9\-\s]+)/i], [f, [C, "Lenovo"], [S, R]], [/linux;.+((jolla));/i], [C, f, [S, N]], [/((pebble))app\/[\d\.]+\s/i], [C, f, [S, _e]], [/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i], [C, f, [S, N]], [/crkey/i], [[f, "Chromecast"], [C, "Google"]], [/android.+;\s(glass)\s\d/i], [f, [C, "Google"], [S, _e]], [/android.+;\s(pixel c)\s/i], [f, [C, "Google"], [S, R]], [/android.+;\s(pixel xl|pixel)\s/i], [f, [C, "Google"], [S, N]], [/android.+;\s(\w+)\s+build\/hm\1/i, /android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i, /android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i, /android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i], [[f, /_/g, " "], [C, "Xiaomi"], [S, N]], [/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i], [[f, /_/g, " "], [C, "Xiaomi"], [S, R]], [/android.+;\s(m[1-5]\snote)\sbuild/i], [f, [C, "Meizu"], [S, R]], [/android.+a000(1)\s+build/i, /android.+oneplus\s(a\d{4})\s+build/i], [f, [C, "OnePlus"], [S, N]], [/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i], [f, [C, "RCA"], [S, R]], [/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i], [f, [C, "Dell"], [S, R]], [/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i], [f, [C, "Verizon"], [S, R]], [/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i], [[C, "Barnes & Noble"], f, [S, R]], [/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i], [f, [C, "NuVision"], [S, R]], [/android.+;\s(k88)\sbuild/i], [f, [C, "ZTE"], [S, R]], [/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i], [f, [C, "Swiss"], [S, N]], [/android.+[;\/]\s*(zur\d{3})\s+build/i], [f, [C, "Swiss"], [S, R]], [/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i], [f, [C, "Zeki"], [S, R]], [/(android).+[;\/]\s+([YR]\d{2})\s+build/i, /android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i], [[C, "Dragon Touch"], f, [S, R]], [/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i], [f, [C, "Insignia"], [S, R]], [/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i], [f, [C, "NextBook"], [S, R]], [/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i], [[C, "Voice"], f, [S, N]], [/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i], [[C, "LvTel"], f, [S, N]], [/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i], [f, [C, "Envizen"], [S, R]], [/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i], [C, f, [S, R]], [/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], [f, [C, "MachSpeed"], [S, R]], [/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i], [C, f, [S, R]], [/android.+[;\/]\s*TU_(1491)\s+build/i], [f, [C, "Rotor"], [S, R]], [/android.+(KS(.+))\s+build/i], [f, [C, "Amazon"], [S, R]], [/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i], [C, f, [S, R]], [/\s(tablet|tab)[;\/]/i, /\s(mobile)(?:[;\/]|\ssafari)/i], [[S, Z.lowerize], C, f], [/(android[\w\.\s\-]{0,9});.+build/i], [f, [C, "Generic"]]], engine: [[/windows.+\sedge\/([\w\.]+)/i], [b, [m, "EdgeHTML"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i, /(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i, /(icab)[\/\s]([23]\.[\d\.]+)/i], [m, b], [/rv\:([\w\.]{1,9}).+(gecko)/i], [b, m]], os: [[/microsoft\s(windows)\s(vista|xp)/i], [m, b], [/(windows)\snt\s6\.2;\s(arm)/i, /(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i, /(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i], [m, [b, H.str, K.os.windows.version]], [/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i], [[m, "Windows"], [b, H.str, K.os.windows.version]], [/\((bb)(10);/i], [[m, "BlackBerry"], b], [/(blackberry)\w*\/?([\w\.]*)/i, /(tizen)[\/\s]([\w\.]+)/i, /(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i, /linux;.+(sailfish);/i], [m, b], [/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i], [[m, "Symbian"], b], [/\((series40);/i], [m], [/mozilla.+\(mobile;.+gecko.+firefox/i], [[m, "Firefox OS"], b], [/(nintendo|playstation)\s([wids34portablevu]+)/i, /(mint)[\/\s\(]?(\w*)/i, /(mageia|vectorlinux)[;\s]/i, /(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i, /(hurd|linux)\s?([\w\.]*)/i, /(gnu)\s?([\w\.]*)/i], [m, b], [/(cros)\s[\w]+\s([\w\.]+\w)/i], [[m, "Chromium OS"], b], [/(sunos)\s?([\w\.\d]*)/i], [[m, "Solaris"], b], [/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i], [m, b], [/(haiku)\s(\w+)/i], [m, b], [/cfnetwork\/.+darwin/i, /ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i], [[b, /_/g, "."], [m, "iOS"]], [/(mac\sos\sx)\s?([\w\s\.]*)/i, /(macintosh|mac(?=_powerpc)\s)/i], [[m, "Mac OS"], [b, /_/g, "."]], [/((?:open)?solaris)[\/\s-]?([\w\.]*)/i, /(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i, /(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i, /(unix)\s?([\w\.]*)/i], [m, b]] }, le = function(ee, z) {
|
|
8379
8417
|
if (typeof ee == "object" && (z = ee, ee = s), !(this instanceof le))
|
|
8380
8418
|
return new le(ee, z).getResult();
|
|
8381
8419
|
var U = ee || (o && o.navigator && o.navigator.userAgent ? o.navigator.userAgent : l), Y = z ? Z.extend(de, z) : de;
|
|
@@ -8402,7 +8440,7 @@ function y1() {
|
|
|
8402
8440
|
return U = te, this;
|
|
8403
8441
|
}, this;
|
|
8404
8442
|
};
|
|
8405
|
-
le.VERSION = a, le.BROWSER = { NAME: m, MAJOR:
|
|
8443
|
+
le.VERSION = a, le.BROWSER = { NAME: m, MAJOR: w, VERSION: b }, le.CPU = { ARCHITECTURE: I }, le.DEVICE = { MODEL: f, VENDOR: C, TYPE: S, CONSOLE: D, MOBILE: N, SMARTTV: fe, TABLET: R, WEARABLE: _e, EMBEDDED: ae }, le.ENGINE = { NAME: m, VERSION: b }, le.OS = { NAME: m, VERSION: b }, typeof r !== h ? (typeof e !== h && e.exports && (r = e.exports = le), r.UAParser = le) : n(3) ? (i = (function() {
|
|
8406
8444
|
return le;
|
|
8407
8445
|
}).call(r, n, r, e), i !== s && (e.exports = i)) : o && (o.UAParser = le);
|
|
8408
8446
|
var we = o && (o.jQuery || o.Zepto);
|
|
@@ -8456,7 +8494,7 @@ function y1() {
|
|
|
8456
8494
|
default:
|
|
8457
8495
|
return a;
|
|
8458
8496
|
}
|
|
8459
|
-
}, d = function(S, C, b, I,
|
|
8497
|
+
}, d = function(S, C, b, I, D) {
|
|
8460
8498
|
return {
|
|
8461
8499
|
isBrowser: S,
|
|
8462
8500
|
browserMajorVersion: C.major,
|
|
@@ -8466,7 +8504,7 @@ function y1() {
|
|
|
8466
8504
|
engineVersion: b.version,
|
|
8467
8505
|
osName: I.name,
|
|
8468
8506
|
osVersion: I.version,
|
|
8469
|
-
userAgent:
|
|
8507
|
+
userAgent: D
|
|
8470
8508
|
};
|
|
8471
8509
|
}, p = function(S, C, b, I) {
|
|
8472
8510
|
return i({}, S, {
|
|
@@ -8494,7 +8532,7 @@ function y1() {
|
|
|
8494
8532
|
osVersion: b.version,
|
|
8495
8533
|
userAgent: I
|
|
8496
8534
|
};
|
|
8497
|
-
},
|
|
8535
|
+
}, g = function(S, C, b, I) {
|
|
8498
8536
|
return {
|
|
8499
8537
|
isWearable: S,
|
|
8500
8538
|
engineName: C.name,
|
|
@@ -8503,10 +8541,10 @@ function y1() {
|
|
|
8503
8541
|
osVersion: b.version,
|
|
8504
8542
|
userAgent: I
|
|
8505
8543
|
};
|
|
8506
|
-
},
|
|
8544
|
+
}, w = r.getNavigatorInstance = function() {
|
|
8507
8545
|
return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
8508
8546
|
}, f = r.isIOS13Check = function(S) {
|
|
8509
|
-
var C =
|
|
8547
|
+
var C = w();
|
|
8510
8548
|
return C && C.platform && (C.platform.indexOf(S) !== -1 || C.platform === "MacIntel" && C.maxTouchPoints > 1 && !window.MSStream);
|
|
8511
8549
|
};
|
|
8512
8550
|
e.exports = {
|
|
@@ -8515,8 +8553,8 @@ function y1() {
|
|
|
8515
8553
|
mobilePayload: p,
|
|
8516
8554
|
stvPayload: h,
|
|
8517
8555
|
consolePayload: c,
|
|
8518
|
-
wearPayload:
|
|
8519
|
-
getNavigatorInstance:
|
|
8556
|
+
wearPayload: g,
|
|
8557
|
+
getNavigatorInstance: w,
|
|
8520
8558
|
isIOS13Check: f
|
|
8521
8559
|
};
|
|
8522
8560
|
})
|
|
@@ -8524,14 +8562,14 @@ function y1() {
|
|
|
8524
8562
|
]);
|
|
8525
8563
|
})(Vi)), Vi.exports;
|
|
8526
8564
|
}
|
|
8527
|
-
var
|
|
8565
|
+
var C1 = b1(), S1 = Object.defineProperty, Or = (t, e, r, n) => {
|
|
8528
8566
|
for (var i = void 0, o = t.length - 1, s; o >= 0; o--)
|
|
8529
8567
|
(s = t[o]) && (i = s(e, r, i) || i);
|
|
8530
|
-
return i &&
|
|
8568
|
+
return i && S1(e, r, i), i;
|
|
8531
8569
|
};
|
|
8532
8570
|
const Do = class Do extends Dr {
|
|
8533
8571
|
constructor() {
|
|
8534
|
-
super(), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new
|
|
8572
|
+
super(), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new y1(this), this.store = He.getInitialState(), this.currentScreenConfig = this.store.currentScreenConfig, this.processingScreenFromWorkflow = this.store.processingTransformedTemplate, this.isProcessing = this.store.isProcessing, this.loadedModules = this.store.externalModules, this.modulesConfig = this.store.modulesConfig, this._listenerFromModule = (e, r) => {
|
|
8535
8573
|
this.store.listener({
|
|
8536
8574
|
eventType: Fn.MESSAGE,
|
|
8537
8575
|
message: r,
|
|
@@ -8578,7 +8616,7 @@ const Do = class Do extends Dr {
|
|
|
8578
8616
|
return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = Ws(e.id, r), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
|
|
8579
8617
|
}
|
|
8580
8618
|
get version() {
|
|
8581
|
-
return `${"3.2.
|
|
8619
|
+
return `${"3.2.256-nightly".trim()}`;
|
|
8582
8620
|
}
|
|
8583
8621
|
disconnectedCallback() {
|
|
8584
8622
|
Bi.clearLogs();
|
|
@@ -8587,7 +8625,7 @@ const Do = class Do extends Dr {
|
|
|
8587
8625
|
return !this.currentScreenConfig && !this.processingScreenFromWorkflow ? null : Ti`<div
|
|
8588
8626
|
part="idv"
|
|
8589
8627
|
class="idv"
|
|
8590
|
-
data-device="${
|
|
8628
|
+
data-device="${C1.isMobile && this.orientation.isPortrait ? "mobile" : "desktop"}"
|
|
8591
8629
|
data-direction="${ia.Ltr}"
|
|
8592
8630
|
>
|
|
8593
8631
|
<div class="container">
|
|
@@ -8617,7 +8655,7 @@ Or([
|
|
|
8617
8655
|
Or([
|
|
8618
8656
|
Er()
|
|
8619
8657
|
], Bt.prototype, "modulesConfig");
|
|
8620
|
-
class
|
|
8658
|
+
class P1 {
|
|
8621
8659
|
/** main commands */
|
|
8622
8660
|
initialize(e) {
|
|
8623
8661
|
return F(this, null, function* () {
|
|
@@ -8646,12 +8684,13 @@ class M1 {
|
|
|
8646
8684
|
}
|
|
8647
8685
|
startWorkflow(e) {
|
|
8648
8686
|
return F(this, null, function* () {
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8687
|
+
const r = yield _d();
|
|
8688
|
+
return new Promise((n) => {
|
|
8689
|
+
const i = (l) => {
|
|
8690
|
+
n(l);
|
|
8691
|
+
}, o = e == null ? void 0 : e.locale, s = e == null ? void 0 : e.metadata, a = fd(o);
|
|
8692
|
+
He.getState().startNewSession({ completion: i, locale: a, metadata: s, location: r }).then((l) => {
|
|
8693
|
+
l.error && (He.getState().removeCurrentSessionDataLsAndStore(), i(l)), l.results && (He.getState().removeCurrentSessionDataLsAndStore(), i(l)), He.getState().playWorkflow();
|
|
8655
8694
|
});
|
|
8656
8695
|
});
|
|
8657
8696
|
});
|
|
@@ -8663,7 +8702,7 @@ class M1 {
|
|
|
8663
8702
|
}
|
|
8664
8703
|
/** service commands */
|
|
8665
8704
|
get version() {
|
|
8666
|
-
return "3.2.
|
|
8705
|
+
return "3.2.256-nightly";
|
|
8667
8706
|
}
|
|
8668
8707
|
set nonce(e) {
|
|
8669
8708
|
He.getState().setNonce(e);
|
|
@@ -8679,15 +8718,15 @@ class M1 {
|
|
|
8679
8718
|
He.getState().setSessionRestoreMode(e);
|
|
8680
8719
|
}
|
|
8681
8720
|
}
|
|
8682
|
-
const
|
|
8683
|
-
|
|
8721
|
+
const E1 = window.customElements.get("idv-flow");
|
|
8722
|
+
E1 || window.customElements.define("idv-flow", Bt);
|
|
8684
8723
|
export {
|
|
8685
8724
|
Ce as BaseError,
|
|
8686
|
-
|
|
8725
|
+
gd as BaseModule,
|
|
8687
8726
|
Kt as ConnectionError,
|
|
8688
8727
|
Ln as DeinitializationError,
|
|
8689
8728
|
Fn as IdvEventTypesEnum,
|
|
8690
|
-
|
|
8729
|
+
P1 as IdvIntegrationService,
|
|
8691
8730
|
Mr as IdvServiceMessages,
|
|
8692
8731
|
Bt as IdvWebComponent,
|
|
8693
8732
|
ei as InitializeError,
|
|
@@ -8696,5 +8735,5 @@ export {
|
|
|
8696
8735
|
tr as StartSessionError,
|
|
8697
8736
|
Ke as WorkflowError,
|
|
8698
8737
|
Tt as WorkflowPlatformError,
|
|
8699
|
-
|
|
8738
|
+
wd as registerModule
|
|
8700
8739
|
};
|