@regulaforensics/idv-gui 3.6.343-nightly → 3.6.345-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/main.iife.js +4 -4
- package/dist/main.js +280 -282
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -9,7 +9,7 @@ var nn = (e, i, t) => i in e ? na(e, i, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var t of yi(i))
|
|
10
10
|
sn.call(i, t) && nn(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, W = (e, i) => oa(e, sa(i));
|
|
13
13
|
var yt = (e, i) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var r in e)
|
|
@@ -56,7 +56,7 @@ function Kt(e, i, t, r, o) {
|
|
|
56
56
|
function Hn() {
|
|
57
57
|
return { current: null };
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function be(e) {
|
|
60
60
|
return e.children;
|
|
61
61
|
}
|
|
62
62
|
function $e(e, i) {
|
|
@@ -95,7 +95,7 @@ function $n(e, i, t, r, o, n, c, g, s, u, M) {
|
|
|
95
95
|
}
|
|
96
96
|
function la(e, i, t, r, o) {
|
|
97
97
|
var n, c, g, s, u, M = t.length, l = M, a = 0;
|
|
98
|
-
for (e.__k = new Array(o), n = 0; n < o; n++) (c = i[n]) != null && typeof c != "boolean" && typeof c != "function" ? (typeof c == "string" || typeof c == "number" || typeof c == "bigint" || c.constructor == String ? c = e.__k[n] = Kt(null, c, null, null, null) : ui(c) ? c = e.__k[n] = Kt(
|
|
98
|
+
for (e.__k = new Array(o), n = 0; n < o; n++) (c = i[n]) != null && typeof c != "boolean" && typeof c != "function" ? (typeof c == "string" || typeof c == "number" || typeof c == "bigint" || c.constructor == String ? c = e.__k[n] = Kt(null, c, null, null, null) : ui(c) ? c = e.__k[n] = Kt(be, { children: c }, null, null, null) : c.constructor === void 0 && c.__b > 0 ? c = e.__k[n] = Kt(c.type, c.props, c.key, c.ref ? c.ref : null, c.__v) : e.__k[n] = c, s = n + a, c.__ = e, c.__b = e.__b + 1, g = null, (u = c.__i = ca(c, t, s, l)) != -1 && (l--, (g = t[u]) && (g.__u |= 2)), g == null || g.__v == null ? (u == -1 && (o > M ? a-- : o < M && a++), typeof c.type != "function" && (c.__u |= 4)) : u != s && (u == s - 1 ? a-- : u == s + 1 ? a++ : (u > s ? a-- : a++, c.__u |= 4))) : e.__k[n] = null;
|
|
99
99
|
if (l) for (n = 0; n < M; n++) (g = t[n]) != null && (2 & g.__u) == 0 && (g.__e == r && (r = Ft(g)), qn(g, g));
|
|
100
100
|
return r;
|
|
101
101
|
}
|
|
@@ -156,7 +156,7 @@ function ln(e) {
|
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
function ar(e, i, t, r, o, n, c, g, s, u) {
|
|
159
|
-
var M, l, a, d, N, y, A, p, x, E, O,
|
|
159
|
+
var M, l, a, d, N, y, A, p, x, E, O, b, H, ie, V, K = i.type;
|
|
160
160
|
if (i.constructor !== void 0) return null;
|
|
161
161
|
128 & t.__u && (s = !!(32 & t.__u), n = [g = i.__e = t.__e]), (M = te.__b) && M(i);
|
|
162
162
|
e: if (typeof K == "function") try {
|
|
@@ -172,11 +172,11 @@ function ar(e, i, t, r, o, n, c, g, s, u) {
|
|
|
172
172
|
l.componentDidUpdate(d, N, y);
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
if (l.context = O, l.props = p, l.__P = e, l.__e = !1,
|
|
175
|
+
if (l.context = O, l.props = p, l.__P = e, l.__e = !1, b = te.__r, H = 0, x) l.state = l.__s, l.__d = !1, b && b(i), M = l.render(l.props, l.state, l.context), Ei.push.apply(l.__h, l._sb), l._sb = [];
|
|
176
176
|
else do
|
|
177
|
-
l.__d = !1,
|
|
177
|
+
l.__d = !1, b && b(i), M = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
178
178
|
while (l.__d && ++H < 25);
|
|
179
|
-
l.state = l.__s, l.getChildContext != null && (r = tt(tt({}, r), l.getChildContext())), x && !a && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(d, N)), ie = M != null && M.type ===
|
|
179
|
+
l.state = l.__s, l.getChildContext != null && (r = tt(tt({}, r), l.getChildContext())), x && !a && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(d, N)), ie = M != null && M.type === be && M.key == null ? Kn(M.props.children) : M, g = $n(e, ui(ie) ? ie : [ie], i, t, r, o, n, c, g, s, u), l.base = i.__e, i.__u &= -161, l.__h.length && c.push(l), A && (l.__E = l.__ = null);
|
|
180
180
|
} catch (U) {
|
|
181
181
|
if (i.__v = null, s || n != null) if (U.then) {
|
|
182
182
|
for (i.__u |= s ? 160 : 128; g && g.nodeType == 8 && g.nextSibling; ) g = g.nextSibling;
|
|
@@ -258,12 +258,12 @@ function qn(e, i, t) {
|
|
|
258
258
|
function ga(e, i, t) {
|
|
259
259
|
return this.constructor(e, t);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function _t(e, i, t) {
|
|
262
262
|
var r, o, n, c;
|
|
263
|
-
i == document && (i = document.documentElement), te.__ && te.__(e, i), o = (r = typeof t == "function") ? null : t && t.__k || i.__k, n = [], c = [], ar(i, e = (!r && t || i).__k = rt(
|
|
263
|
+
i == document && (i = document.documentElement), te.__ && te.__(e, i), o = (r = typeof t == "function") ? null : t && t.__k || i.__k, n = [], c = [], ar(i, e = (!r && t || i).__k = rt(be, null, [e]), o || mi, mi, i.namespaceURI, !r && t ? [t] : o ? null : i.firstChild ? ai.call(i.childNodes) : null, n, !r && t ? t : o ? o.__e : i.firstChild, r, c), Xn(n, e, c);
|
|
264
264
|
}
|
|
265
265
|
function eo(e, i) {
|
|
266
|
-
|
|
266
|
+
_t(e, i, eo);
|
|
267
267
|
}
|
|
268
268
|
function da(e, i, t) {
|
|
269
269
|
var r, o, n, c, g = tt({}, e.props);
|
|
@@ -305,7 +305,7 @@ ai = Ei.slice, te = { __e: function(e, i, t, r) {
|
|
|
305
305
|
t = this.__s != null && this.__s != this.state ? this.__s : this.__s = tt({}, this.state), typeof e == "function" && (e = e(tt({}, t), this.props)), e && tt(t, e), e != null && this.__v && (i && this._sb.push(i), Hi(this));
|
|
306
306
|
}, $e.prototype.forceUpdate = function(e) {
|
|
307
307
|
this.__v && (this.__e = !0, e && this.__h.push(e), Hi(this));
|
|
308
|
-
}, $e.prototype.render =
|
|
308
|
+
}, $e.prototype.render = be, jt = [], Bn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Vn = function(e, i) {
|
|
309
309
|
return e.__v.__b - i.__v.__b;
|
|
310
310
|
}, wi.__r = 0, Ui = Math.random().toString(8), hi = "__d" + Ui, Xt = "__a" + Ui, Wn = /(PointerCapture)$|Capture$/i, or = 0, Wi = ln(!1), Zi = ln(!0), Zn = 0;
|
|
311
311
|
var Na = 0;
|
|
@@ -759,7 +759,7 @@ const xa = (e, i) => !!(e.base64 && !(i != null && i.base64.has(e.base64)) || e.
|
|
|
759
759
|
[ge.CIRCLE_NORMAL]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB4PSIwLjUiIHk9IjEiIHdpZHRoPSIxOSIgaGVpZ2h0PSIxOSIgcng9IjkuNSIgc3Ryb2tlPSIjOEM4QzhDIi8+Cjwvc3ZnPgo=",
|
|
760
760
|
[ge.CIRCLE_SELECTED]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB4PSIwLjUiIHk9IjEiIHdpZHRoPSIxOSIgaGVpZ2h0PSIxOSIgcng9IjkuNSIgc3Ryb2tlPSIjN0U1N0M1Ii8+CiAgPHJlY3QgeD0iMyIgeT0iMy41IiB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHJ4PSI3IiBmaWxsPSIjN0U1N0M1Ii8+Cjwvc3ZnPgo=",
|
|
761
761
|
[ge.CROSS]: () => "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJyZ2JhKDAsMCwwLDAuNikiPgogIDxwYXRoIGQ9Ik0xOSA2LjQxTDE3LjU5IDUgMTIgMTAuNTkgNi40MSA1IDUgNi40MSAxMC41OSAxMiA1IDE3LjU5IDYuNDEgMTkgMTIgMTMuNDEgMTcuNTkgMTkgMTkgMTcuNTkgMTMuNDEgMTJ6Ii8+Cjwvc3ZnPgo=",
|
|
762
|
-
[ge.CLOSE_ICON]: () => "data:image/svg+xml;base64,
|
|
762
|
+
[ge.CLOSE_ICON]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgb3BhY2l0eT0iMC42Ij4KPHJlY3Qgd2lkdGg9IjM2IiBoZWlnaHQ9IjM2IiByeD0iMTgiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yNSAxMUwxMSAyNU0xMSAxMUwyNSAyNSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K",
|
|
763
763
|
[ge.ERROR]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODYiIGhlaWdodD0iODYiIHZpZXdCb3g9IjAgMCA4NyA4NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZWxsaXBzZSBjeD0iNDMuNDA1MyIgY3k9IjQzIiByeD0iNDAiIHJ5PSI0MCIgdHJhbnNmb3JtPSJyb3RhdGUoOTAgNDMuNDA1MyA0MykiIHN0cm9rZT0iI0ZGM0IzMCIgc3Ryb2tlLXdpZHRoPSIzIi8+CiAgPHBhdGggZD0iTTU2LjkwNTMgMjlMMjkuNDA1MyA1Ni41IiBzdHJva2U9IiNGRjNCMzAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CiAgPHBhdGggZD0iTTI5LjQwNTMgMjlMNTYuOTA1MyA1Ni41IiBzdHJva2U9IiNGRjNCMzAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=",
|
|
764
764
|
[ge.GALLERY_ICON]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyMyAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMjYyOV8xNzc2MykiPgogICAgPHBhdGggZD0iTTMuOTk5OTMgMTdDMy41MzUzMyAxNyAzLjMwMzAzIDE3IDMuMTA5ODUgMTYuOTYxNkMyLjMxNjQyIDE2LjgwMzggMS42OTYxOCAxNi4xODM1IDEuNTM4NCAxNS4zOTAxQzEuNDk5OTggMTUuMTk2OSAxLjQ5OTk5IDE0Ljk2NDYgMS41IDE0LjVMMS41MDAxOSA3LjE5OTkzQzEuNTAwMjIgNi4wNzk4NSAxLjUwMDI0IDUuNTE5ODEgMS43MTgyMyA1LjA5MkMxLjkwOTk4IDQuNzE1NjggMi4yMTU5NCA0LjQwOTczIDIuNTkyMjYgNC4yMTc5OUMzLjAyMDA4IDQuMDAwMDEgMy41ODAxMiA0LjAwMDAxIDQuNzAwMiA0LjAwMDAyTDE3IDQuMDAwMDRDMTcuNDY0NiA0LjAwMDA0IDE3LjY5NjkgNC4wMDAwNSAxNy44OTAxIDQuMDM4NDdDMTguNjgzNSA0LjE5NjI4IDE5LjMwMzcgNC44MTY0OSAxOS40NjE1IDUuNjA5ODlDMTkuNDk5OSA1LjgwMzA4IDE5LjQ5OTkgNi4wMzUzOSAxOS40OTk5IDYuNTAwMDEiIHN0cm9rZT0iI2ZmZmZmZiIvPgogICAgPHBhdGggZD0iTTYuNzAwMiA2LjUwMDAyTDE4LjI5OTggNi41MDAwMkMxOC44NjgxIDYuNTAwMDIgMTkuMjY0OCA2LjUwMDIxIDE5LjU3MzIgNi41MjU0MUMxOS44NzUzIDYuNTUwMTEgMjAuMDQ5MSA2LjU5NjE1IDIwLjE4MDcgNi42NjMxQzIwLjQ2MjkgNi44MDY5MSAyMC42OTMxIDcuMDM3MTEgMjAuODM2OSA3LjMxOTM1QzIwLjkwMzkgNy40NTA5MyAyMC45NDk5IDcuNjI0NzIgMjAuOTc0NiA3LjkyNjc3QzIwLjk5OTggOC4yMzUxOSAyMSA4LjYzMTkxIDIxIDkuMjAwMjFWMTUuNzk5OEMyMSAxNi4zNjgxIDIwLjk5OTggMTYuNzY0OCAyMC45NzQ2IDE3LjA3MzNDMjAuOTQ5OSAxNy4zNzUzIDIwLjkwMzkgMTcuNTQ5MSAyMC44MzY5IDE3LjY4MDdDMjAuNjkzMSAxNy45NjI5IDIwLjQ2MjkgMTguMTkzMSAyMC4xODA3IDE4LjMzNjlDMjAuMDQ5MSAxOC40MDM5IDE5Ljg3NTMgMTguNDQ5OSAxOS41NzMyIDE4LjQ3NDZDMTkuMjY0OCAxOC40OTk4IDE4Ljg2ODEgMTguNSAxOC4yOTk4IDE4LjVINi43MDAyQzYuMTMxODggMTguNSA1LjczNTE5IDE4LjQ5OTggNS40MjY3NiAxOC40NzQ2QzUuMTI0NzEgMTguNDQ5OSA0Ljk1MDkxIDE4LjQwMzkgNC44MTkzNCAxOC4zMzY5QzQuNTM3MDkgMTguMTkzMSA0LjMwNjg5IDE3Ljk2MjkgNC4xNjMwOSAxNy42ODA3QzQuMDk2MTQgMTcuNTQ5MSA0LjA1MDA5IDE3LjM3NTMgNC4wMjUzOSAxNy4wNzMzQzQuMDAwMiAxNi43NjQ4IDMuOTk5OTkgMTYuMzY4MSA0IDE1Ljc5OThMNCA5LjIwMDIxQzQuMDAwMDEgOC42MzE5MiA0LjAwMDE4IDguMjM1MTkgNC4wMjUzOSA3LjkyNjc3QzQuMDUwMTIgNy42MjQ1IDQuMDk3MDMgNy40NTA5NiA0LjE2NDA2IDcuMzE5MzVDNC4zMDc4OCA3LjAzNzEyIDQuNTM3MSA2LjgwNjkxIDQuODE5MzQgNi42NjMxQzQuOTUwOTkgNi41OTYwNiA1LjEyNTI5IDYuNTUwMTIgNS40Mjc3MyA2LjUyNTQxQzUuNzM2MDkgNi41MDAyNCA2LjEzMjE1IDYuNTAwMDEgNi43MDAyIDYuNTAwMDJaIiBzdHJva2U9IiNmZmZmZmYiLz4KICAgIDxwYXRoIGQ9Ik00IDE2TDcuNjY4NTIgMTIuNzM5MUM4LjExMjcxIDEyLjM0NDMgOC44MDExOCAxMi40MjE3IDkuMTQ2NjIgMTIuOTA1M0wxMSAxNS41TDE0LjY2NDcgMTAuNjEzOEMxNS4wNzUgMTAuMDY2NiAxNS45MDEzIDEwLjA4MzcgMTYuMjg4NyAxMC42NDcyTDIxIDE3LjUiIHN0cm9rZT0iI2ZmZmZmZiIvPgogICAgPHBhdGggZD0iTTkgMTguNUwxMSAxNS41TDE0LjY2NDcgMTAuNjEzOEMxNS4wNzUgMTAuMDY2NiAxNS45MDEzIDEwLjA4MzcgMTYuMjg4NyAxMC42NDcyTDIxIDE3LjUiIHN0cm9rZT0iI2ZmZmZmZiIvPgogICAgPGNpcmNsZSBjeD0iNy41IiBjeT0iMTAiIHI9IjEiIGZpbGw9IiNmZmZmZmYiLz4KICA8L2c+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9ImNsaXAwXzI2MjlfMTc3NjMiPgogICAgICA8cmVjdCB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjUgMS45MDczNWUtMDUpIi8+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KPC9zdmc+Cg==",
|
|
765
765
|
[ge.INFO]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTIgMjNDMTguMDc0NiAyMyAyMyAxOC4wNzQ2IDIzIDEyQzIzIDUuOTI1NDUgMTguMDc0NiAxIDEyIDAuOTk5OTk5QzUuOTI1NDUgMC45OTk5OTkgMSA1LjkyNTQ1IDEgMTJDMSAxOC4wNzQ2IDUuOTI1NDUgMjMgMTIgMjNaTTEyIDIuODY2MDdDMTcuMDQzMyAyLjg2NjA3IDIxLjEzMzkgNi45NTY3IDIxLjEzMzkgMTJDMjEuMTMzOSAxNy4wNDMzIDE3LjA0MzMgMjEuMTMzOSAxMiAyMS4xMzM5QzYuOTU2NyAyMS4xMzM5IDIuODY2MDcgMTcuMDQzMyAyLjg2NjA3IDEyQzIuODY2MDcgNi45NTY3IDYuOTU2NyAyLjg2NjA3IDEyIDIuODY2MDdaIiBmaWxsPSIjOEM4QzhDIi8+CiAgPHBhdGggZD0iTTEzIDdDMTMgNi43MzQ3OCAxMi44OTQ2IDYuNDgwNDMgMTIuNzA3MSA2LjI5Mjg5QzEyLjUxOTYgNi4xMDUzNiAxMi4yNjUyIDYgMTIgNkMxMS43MzQ4IDYgMTEuNDgwNCA2LjEwNTM2IDExLjI5MjkgNi4yOTI4OUMxMS4xMDU0IDYuNDgwNDMgMTEgNi43MzQ3OCAxMSA3QzExIDcuMjY1MjIgMTEuMTA1NCA3LjUxOTU3IDExLjI5MjkgNy43MDcxMUMxMS40ODA0IDcuODk0NjQgMTEuNzM0OCA4IDEyIDhDMTIuMjY1MiA4IDEyLjUxOTYgNy44OTQ2NCAxMi43MDcxIDcuNzA3MTFDMTIuODk0NiA3LjUxOTU3IDEzIDcuMjY1MjIgMTMgN1oiIGZpbGw9IiM4QzhDOEMiLz4KICA8cmVjdCB4PSIxMyIgeT0iMTgiIHdpZHRoPSIyIiBoZWlnaHQ9IjgiIHRyYW5zZm9ybT0icm90YXRlKC0xODAgMTMgMTgpIiBmaWxsPSIjOEM4QzhDIi8+Cjwvc3ZnPgo=",
|
|
@@ -786,7 +786,7 @@ const xa = (e, i) => !!(e.base64 && !(i != null && i.base64.has(e.base64)) || e.
|
|
|
786
786
|
"img",
|
|
787
787
|
{
|
|
788
788
|
src: g,
|
|
789
|
-
style:
|
|
789
|
+
style: W(T({
|
|
790
790
|
display: "block"
|
|
791
791
|
}, n ? { width: "100%", height: "100%" } : { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" }), {
|
|
792
792
|
objectFit: ni(t),
|
|
@@ -795,7 +795,7 @@ const xa = (e, i) => !!(e.base64 && !(i != null && i.base64.has(e.base64)) || e.
|
|
|
795
795
|
})
|
|
796
796
|
}
|
|
797
797
|
);
|
|
798
|
-
}, gi = "#005fcc", pi = "idv-gui",
|
|
798
|
+
}, gi = "#005fcc", pi = "idv-gui", bt = {
|
|
799
799
|
DECODING_FAILED: 0,
|
|
800
800
|
IMAGE_LOADING_FAILED: 1
|
|
801
801
|
}, Ri = {
|
|
@@ -805,14 +805,14 @@ const xa = (e, i) => !!(e.base64 && !(i != null && i.base64.has(e.base64)) || e.
|
|
|
805
805
|
}, yn = {
|
|
806
806
|
NOT_EMPTY: "notEmpty",
|
|
807
807
|
REGEX: "regex"
|
|
808
|
-
},
|
|
808
|
+
}, ba = {
|
|
809
809
|
APP_DENIED: "app_denied",
|
|
810
810
|
SYSTEM_RESTRICTED: "system_restricted"
|
|
811
811
|
};
|
|
812
812
|
function ao(e) {
|
|
813
813
|
return e === it.CENTER ? "center" : e === it.RIGHT || e === it.END ? "end" : "start";
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function _a(e) {
|
|
816
816
|
return e === it.CENTER ? "center" : e === it.END ? "end" : e === it.LEFT ? "left" : e === it.RIGHT ? "right" : "start";
|
|
817
817
|
}
|
|
818
818
|
function vi(e) {
|
|
@@ -836,17 +836,17 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
836
836
|
if (r.answerType === Ri.text && (o = r.property) != null && o.id) {
|
|
837
837
|
const g = i.find((s) => s.name === r.property.id);
|
|
838
838
|
if (g != null && g.string)
|
|
839
|
-
return
|
|
839
|
+
return W(T({}, t), { [r.id]: g.string });
|
|
840
840
|
}
|
|
841
841
|
if (r.answerType === Ri.selector && (n = r.property) != null && n.id) {
|
|
842
842
|
const g = i.find((s) => s.name === r.property.id);
|
|
843
843
|
if (g != null && g.string)
|
|
844
|
-
return
|
|
844
|
+
return W(T({}, t), { [r.id]: g.string });
|
|
845
845
|
}
|
|
846
846
|
if (r.answerType === Ri.multiSelector && (c = r.property) != null && c.id) {
|
|
847
847
|
const g = i.find((s) => s.name === r.property.id);
|
|
848
848
|
if (g != null && g.array)
|
|
849
|
-
return
|
|
849
|
+
return W(T({}, t), { [r.id]: g.array });
|
|
850
850
|
}
|
|
851
851
|
return t;
|
|
852
852
|
}, {}), uo = (e) => new Promise((i, t) => {
|
|
@@ -878,13 +878,13 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
878
878
|
} = g, [N, y] = me(!0), A = N && u, p = () => {
|
|
879
879
|
y(!1);
|
|
880
880
|
}, x = () => {
|
|
881
|
-
c((
|
|
881
|
+
c((b) => b + 1);
|
|
882
882
|
}, E = i ? { width: "100%", height: "100%" } : { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" };
|
|
883
883
|
if (M)
|
|
884
884
|
return /* @__PURE__ */ D(
|
|
885
885
|
"img",
|
|
886
886
|
{
|
|
887
|
-
style:
|
|
887
|
+
style: W(T({}, E), {
|
|
888
888
|
objectFit: ni(l),
|
|
889
889
|
borderRadius: a,
|
|
890
890
|
backgroundColor: X(d) || "transparent",
|
|
@@ -895,11 +895,11 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
895
895
|
}
|
|
896
896
|
);
|
|
897
897
|
if (s) {
|
|
898
|
-
const
|
|
898
|
+
const b = s in oi ? s : "default";
|
|
899
899
|
return /* @__PURE__ */ D(
|
|
900
900
|
Ir,
|
|
901
901
|
{
|
|
902
|
-
type:
|
|
902
|
+
type: b,
|
|
903
903
|
contentMode: l,
|
|
904
904
|
cornerRadius: a,
|
|
905
905
|
backgroundColor: X(d) || "transparent",
|
|
@@ -907,7 +907,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
907
907
|
}
|
|
908
908
|
);
|
|
909
909
|
}
|
|
910
|
-
return u ? /* @__PURE__ */ D(
|
|
910
|
+
return u ? /* @__PURE__ */ D(be, { children: [
|
|
911
911
|
A && /* @__PURE__ */ D(
|
|
912
912
|
"div",
|
|
913
913
|
{
|
|
@@ -922,7 +922,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
922
922
|
/* @__PURE__ */ D(
|
|
923
923
|
"img",
|
|
924
924
|
{
|
|
925
|
-
style:
|
|
925
|
+
style: W(T({}, E), {
|
|
926
926
|
objectFit: ni(l),
|
|
927
927
|
borderRadius: a,
|
|
928
928
|
backgroundColor: X(d) || "transparent",
|
|
@@ -953,11 +953,11 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
953
953
|
display: "flex",
|
|
954
954
|
justifyContent: "center",
|
|
955
955
|
alignItems: "center",
|
|
956
|
-
borderRadius: "18px",
|
|
957
956
|
height: "36px",
|
|
958
957
|
minWidth: "36px",
|
|
959
958
|
border: "none",
|
|
960
|
-
cursor: "pointer"
|
|
959
|
+
cursor: "pointer",
|
|
960
|
+
padding: 0
|
|
961
961
|
}, Ya = ({
|
|
962
962
|
dataTestId: e,
|
|
963
963
|
responseBody: i,
|
|
@@ -980,7 +980,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
980
980
|
vi(d), M(d, li.DATA);
|
|
981
981
|
},
|
|
982
982
|
className: "hover-button",
|
|
983
|
-
style:
|
|
983
|
+
style: W(T(T({}, Ra), n && { borderRadius: n }), {
|
|
984
984
|
backgroundColor: (a = X(u)) != null ? a : "transparent"
|
|
985
985
|
}),
|
|
986
986
|
onMouseEnter: () => s(!0),
|
|
@@ -992,9 +992,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
992
992
|
style: {
|
|
993
993
|
display: "flex",
|
|
994
994
|
justifyContent: "center",
|
|
995
|
-
alignItems: "center"
|
|
996
|
-
width: "24px",
|
|
997
|
-
height: "24px"
|
|
995
|
+
alignItems: "center"
|
|
998
996
|
},
|
|
999
997
|
children: /* @__PURE__ */ D(Ce, T({}, t))
|
|
1000
998
|
}
|
|
@@ -1031,7 +1029,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
1031
1029
|
htmlFor: u,
|
|
1032
1030
|
isGenericTemplate: M = !1
|
|
1033
1031
|
}) => {
|
|
1034
|
-
const l = M ? it.START : it.LEFT, a = o || l, d = M ?
|
|
1032
|
+
const l = M ? it.START : it.LEFT, a = o || l, d = M ? _a(a) : ao(a), N = T(W(T({
|
|
1035
1033
|
fontFamily: [i, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
|
|
1036
1034
|
fontSize: t
|
|
1037
1035
|
}, M && { fontWeight: Ca(s) }), {
|
|
@@ -1056,7 +1054,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
1056
1054
|
isGenericTemplate: l = !1,
|
|
1057
1055
|
onClick: a
|
|
1058
1056
|
}) => {
|
|
1059
|
-
var O,
|
|
1057
|
+
var O, b;
|
|
1060
1058
|
const [d, N] = me(!1), y = d && X(n) ? n : r, { perform: A } = Mt(), p = (H) => {
|
|
1061
1059
|
if (a && a(H), u !== "RESPONSE_BODY") return;
|
|
1062
1060
|
const ie = JSON.parse(JSON.stringify(t));
|
|
@@ -1078,7 +1076,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
1078
1076
|
borderRadius: o || 0,
|
|
1079
1077
|
borderStyle: g && s ? "solid" : void 0,
|
|
1080
1078
|
backgroundColor: (O = X(y)) != null ? O : "transparent",
|
|
1081
|
-
borderColor: (
|
|
1079
|
+
borderColor: (b = X(g)) != null ? b : "none",
|
|
1082
1080
|
borderWidth: s != null ? s : 0,
|
|
1083
1081
|
overflow: "hidden",
|
|
1084
1082
|
transition: ".3s",
|
|
@@ -1115,7 +1113,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
1115
1113
|
style: {
|
|
1116
1114
|
flexGrow: i ? 0 : 1
|
|
1117
1115
|
},
|
|
1118
|
-
children: /* @__PURE__ */ D(Te, T({}, e))
|
|
1116
|
+
children: /* @__PURE__ */ D(Te, W(T({}, e), { isGenericTemplate: l }))
|
|
1119
1117
|
}
|
|
1120
1118
|
)
|
|
1121
1119
|
]
|
|
@@ -1310,13 +1308,13 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
1310
1308
|
description: o,
|
|
1311
1309
|
buttons: n,
|
|
1312
1310
|
backgroundColor: c
|
|
1313
|
-
}) => /* @__PURE__ */ D(gt, { header: i, footer: t, buttons: n, backgroundColor: c, children: /* @__PURE__ */ D(
|
|
1311
|
+
}) => /* @__PURE__ */ D(gt, { header: i, footer: t, buttons: n, backgroundColor: c, children: /* @__PURE__ */ D(be, { children: /* @__PURE__ */ D(
|
|
1314
1312
|
"div",
|
|
1315
1313
|
{
|
|
1316
1314
|
part: "gui-info-screen-container",
|
|
1317
1315
|
"data-ui": "gui-info-screen-container",
|
|
1318
1316
|
id: "info-screen-container",
|
|
1319
|
-
style:
|
|
1317
|
+
style: W(T({}, Wa), {
|
|
1320
1318
|
justifyContent: r ? "flex-start" : "center"
|
|
1321
1319
|
}),
|
|
1322
1320
|
children: [
|
|
@@ -1356,7 +1354,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
1356
1354
|
"div",
|
|
1357
1355
|
{
|
|
1358
1356
|
className: "details-item",
|
|
1359
|
-
style:
|
|
1357
|
+
style: W(T({}, {
|
|
1360
1358
|
display: "flex",
|
|
1361
1359
|
alignItems: "flex-start",
|
|
1362
1360
|
justifyContent: "space-between",
|
|
@@ -1391,7 +1389,7 @@ const La = (e, i) => e.reduce((t, r) => {
|
|
|
1391
1389
|
"div",
|
|
1392
1390
|
{
|
|
1393
1391
|
className: "details",
|
|
1394
|
-
style:
|
|
1392
|
+
style: W(T({}, $a), {
|
|
1395
1393
|
backgroundColor: X(i) || "white",
|
|
1396
1394
|
borderRadius: t
|
|
1397
1395
|
}),
|
|
@@ -1576,8 +1574,8 @@ te.unmount = function(e) {
|
|
|
1576
1574
|
}
|
|
1577
1575
|
this.__b = null;
|
|
1578
1576
|
}
|
|
1579
|
-
var o = i.__a && rt(
|
|
1580
|
-
return o && (o.__u &= -33), [rt(
|
|
1577
|
+
var o = i.__a && rt(be, null, e.fallback);
|
|
1578
|
+
return o && (o.__u &= -33), [rt(be, null, i.__a ? null : e.children), o];
|
|
1581
1579
|
};
|
|
1582
1580
|
var zn = function(e, i, t) {
|
|
1583
1581
|
if (++t[1] === t[0] && e.l.delete(i), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (t = e.i; t; ) {
|
|
@@ -1594,7 +1592,7 @@ function eu(e) {
|
|
|
1594
1592
|
function tu(e) {
|
|
1595
1593
|
var i = this, t = e.h;
|
|
1596
1594
|
if (i.componentWillUnmount = function() {
|
|
1597
|
-
|
|
1595
|
+
_t(null, i.v), i.v = null, i.h = null;
|
|
1598
1596
|
}, i.h && i.h !== t && i.componentWillUnmount(), !i.v) {
|
|
1599
1597
|
for (var r = i.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
|
|
1600
1598
|
i.h = t, i.v = { nodeType: 1, parentNode: t, childNodes: [], __k: { __m: r.__m }, contains: function() {
|
|
@@ -1605,7 +1603,7 @@ function tu(e) {
|
|
|
1605
1603
|
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), i.h.removeChild(o);
|
|
1606
1604
|
} };
|
|
1607
1605
|
}
|
|
1608
|
-
|
|
1606
|
+
_t(rt(eu, { context: i.context }, e.__v), i.v);
|
|
1609
1607
|
}
|
|
1610
1608
|
function yo(e, i) {
|
|
1611
1609
|
var t = rt(tu, { __v: e, h: i });
|
|
@@ -1635,7 +1633,7 @@ var jo = typeof Symbol != "undefined" && Symbol.for && /* @__PURE__ */ Symbol.fo
|
|
|
1635
1633
|
return (typeof Symbol != "undefined" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
1636
1634
|
};
|
|
1637
1635
|
function Ao(e, i, t) {
|
|
1638
|
-
return i.__k == null && (i.textContent = ""),
|
|
1636
|
+
return i.__k == null && (i.textContent = ""), _t(e, i), typeof t == "function" && t(), e ? e.__c : null;
|
|
1639
1637
|
}
|
|
1640
1638
|
function To(e, i, t) {
|
|
1641
1639
|
return eo(e, i), typeof t == "function" && t(), e ? e.__c : null;
|
|
@@ -1696,7 +1694,7 @@ function Ni(e) {
|
|
|
1696
1694
|
return !!e && e.$$typeof === jo;
|
|
1697
1695
|
}
|
|
1698
1696
|
function Oo(e) {
|
|
1699
|
-
return Ni(e) && e.type ===
|
|
1697
|
+
return Ni(e) && e.type === be;
|
|
1700
1698
|
}
|
|
1701
1699
|
function mo(e) {
|
|
1702
1700
|
return !!e && typeof e.displayName == "string" && e.displayName.indexOf("Memo(") == 0;
|
|
@@ -1705,7 +1703,7 @@ function Eo(e) {
|
|
|
1705
1703
|
return Ni(e) ? da.apply(null, arguments) : e;
|
|
1706
1704
|
}
|
|
1707
1705
|
function wo(e) {
|
|
1708
|
-
return !!e.__k && (
|
|
1706
|
+
return !!e.__k && (_t(null, e), !0);
|
|
1709
1707
|
}
|
|
1710
1708
|
function po(e) {
|
|
1711
1709
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
@@ -1719,14 +1717,14 @@ var xo = function(e, i) {
|
|
|
1719
1717
|
};
|
|
1720
1718
|
var r = e(i);
|
|
1721
1719
|
return te.debounceRendering = t, r;
|
|
1722
|
-
},
|
|
1720
|
+
}, bo = Ni, B = { useState: me, useId: dr, useReducer: Si, useEffect: Be, useLayoutEffect: ht, useInsertionEffect: Ar, useTransition: jr, useDeferredValue: yr, useSyncExternalStore: Dr, startTransition: fr, useRef: Je, useImperativeHandle: cr, useMemo: ci, useCallback: Mr, useContext: zt, useDebugValue: gr, version: "18.3.1", Children: go, render: Ao, hydrate: To, unmountComponentAtNode: wo, createPortal: yo, createElement: rt, createContext: lr, createFactory: zo, cloneElement: Eo, createRef: Hn, Fragment: be, isValidElement: Ni, isElement: bo, isFragment: Oo, isMemo: mo, findDOMNode: po, Component: $e, PureComponent: xi, memo: co, forwardRef: Mo, flushSync: Co, unstable_batchedUpdates: xo, StrictMode: be, Suspense: ei, SuspenseList: Rt, lazy: fo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ho };
|
|
1723
1721
|
const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1724
1722
|
__proto__: null,
|
|
1725
1723
|
Children: go,
|
|
1726
1724
|
Component: $e,
|
|
1727
|
-
Fragment:
|
|
1725
|
+
Fragment: be,
|
|
1728
1726
|
PureComponent: xi,
|
|
1729
|
-
StrictMode:
|
|
1727
|
+
StrictMode: be,
|
|
1730
1728
|
Suspense: ei,
|
|
1731
1729
|
SuspenseList: Rt,
|
|
1732
1730
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ho,
|
|
@@ -1741,7 +1739,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1741
1739
|
flushSync: Co,
|
|
1742
1740
|
forwardRef: Mo,
|
|
1743
1741
|
hydrate: To,
|
|
1744
|
-
isElement:
|
|
1742
|
+
isElement: bo,
|
|
1745
1743
|
isFragment: Oo,
|
|
1746
1744
|
isMemo: mo,
|
|
1747
1745
|
isValidElement: Ni,
|
|
@@ -1770,8 +1768,8 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1770
1768
|
version: uu
|
|
1771
1769
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1772
1770
|
var Ii = (e) => e.type === "checkbox", Ct = (e) => e instanceof Date, Ye = (e) => e == null;
|
|
1773
|
-
const
|
|
1774
|
-
var Ee = (e) => !Ye(e) && !Array.isArray(e) &&
|
|
1771
|
+
const _o = (e) => typeof e == "object";
|
|
1772
|
+
var Ee = (e) => !Ye(e) && !Array.isArray(e) && _o(e) && !Ct(e), So = (e) => Ee(e) && e.target ? Ii(e.target) ? e.target.checked : e.target.value : e, vo = (e, i) => i.split(".").some((t, r, o) => !isNaN(Number(t)) && e.has(o.slice(0, r).join("."))), cu = (e) => {
|
|
1775
1773
|
const i = e.constructor && e.constructor.prototype;
|
|
1776
1774
|
return Ee(i) && i.hasOwnProperty("isPrototypeOf");
|
|
1777
1775
|
}, hr = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
@@ -1869,7 +1867,7 @@ function Mu(e) {
|
|
|
1869
1867
|
s.current.isValid && t._setValid(!0);
|
|
1870
1868
|
}, [t]), B.useMemo(() => Uo(c, t, s.current, !1), [c, t]);
|
|
1871
1869
|
}
|
|
1872
|
-
var Qe = (e) => typeof e == "string", qi = (e, i, t, r, o) => Qe(e) ? (r && i.watch.add(e), k(t, e, o)) : Array.isArray(e) ? e.map((n) => (r && i.watch.add(n), k(t, n))) : (r && (i.watchAll = !0), t), er = (e) => Ye(e) || !
|
|
1870
|
+
var Qe = (e) => typeof e == "string", qi = (e, i, t, r, o) => Qe(e) ? (r && i.watch.add(e), k(t, e, o)) : Array.isArray(e) ? e.map((n) => (r && i.watch.add(n), k(t, n))) : (r && (i.watchAll = !0), t), er = (e) => Ye(e) || !_o(e);
|
|
1873
1871
|
function Ge(e, i, t = /* @__PURE__ */ new WeakSet()) {
|
|
1874
1872
|
if (er(e) || er(i))
|
|
1875
1873
|
return Object.is(e, i);
|
|
@@ -1900,16 +1898,16 @@ function gu(e) {
|
|
|
1900
1898
|
const O = t._getWatch(r, s.current);
|
|
1901
1899
|
return u.current ? u.current(O) : O;
|
|
1902
1900
|
}), y = B.useCallback((O) => {
|
|
1903
|
-
const
|
|
1904
|
-
return u.current ? u.current(
|
|
1901
|
+
const b = qi(r, t._names, O || t._formValues, !1, s.current);
|
|
1902
|
+
return u.current ? u.current(b) : b;
|
|
1905
1903
|
}, [t._formValues, t._names, r]), A = B.useCallback((O) => {
|
|
1906
1904
|
if (!n) {
|
|
1907
|
-
const
|
|
1905
|
+
const b = qi(r, t._names, O || t._formValues, !1, s.current);
|
|
1908
1906
|
if (u.current) {
|
|
1909
|
-
const H = u.current(
|
|
1907
|
+
const H = u.current(b);
|
|
1910
1908
|
Ge(H, M.current) || (N(H), M.current = H);
|
|
1911
1909
|
} else
|
|
1912
|
-
N(
|
|
1910
|
+
N(b);
|
|
1913
1911
|
}
|
|
1914
1912
|
}, [t._formValues, t._names, n, r]);
|
|
1915
1913
|
Er(() => ((l.current !== t || !Ge(a.current, r)) && (l.current = t, a.current = r, A()), t._subscribe({
|
|
@@ -1940,7 +1938,7 @@ function du(e) {
|
|
|
1940
1938
|
control: o,
|
|
1941
1939
|
name: t,
|
|
1942
1940
|
exact: g
|
|
1943
|
-
}), a = B.useRef(e), d = B.useRef(void 0), N = B.useRef(o.register(t, T(
|
|
1941
|
+
}), a = B.useRef(e), d = B.useRef(void 0), N = B.useRef(o.register(t, T(W(T({}, e.rules), {
|
|
1944
1942
|
value: M
|
|
1945
1943
|
}), Fe(e.disabled) ? { disabled: e.disabled } : {})));
|
|
1946
1944
|
a.current = e;
|
|
@@ -1978,14 +1976,14 @@ function du(e) {
|
|
|
1978
1976
|
},
|
|
1979
1977
|
type: At.BLUR
|
|
1980
1978
|
}), [t, o._formValues]), x = B.useCallback((O) => {
|
|
1981
|
-
const
|
|
1982
|
-
|
|
1979
|
+
const b = k(o._fields, t);
|
|
1980
|
+
b && b._f && O && (b._f.ref = {
|
|
1983
1981
|
focus: () => Ue(O.focus) && O.focus(),
|
|
1984
1982
|
select: () => Ue(O.select) && O.select(),
|
|
1985
1983
|
setCustomValidity: (H) => Ue(O.setCustomValidity) && O.setCustomValidity(H),
|
|
1986
1984
|
reportValidity: () => Ue(O.reportValidity) && O.reportValidity()
|
|
1987
1985
|
});
|
|
1988
|
-
}, [o._fields, t]), E = B.useMemo(() =>
|
|
1986
|
+
}, [o._fields, t]), E = B.useMemo(() => W(T({
|
|
1989
1987
|
name: t,
|
|
1990
1988
|
value: M
|
|
1991
1989
|
}, Fe(r) || l.disabled ? { disabled: l.disabled || r } : {}), {
|
|
@@ -1994,8 +1992,8 @@ function du(e) {
|
|
|
1994
1992
|
ref: x
|
|
1995
1993
|
}), [t, r, l.disabled, A, p, x, M]);
|
|
1996
1994
|
return B.useEffect(() => {
|
|
1997
|
-
const O = o._options.shouldUnregister || n,
|
|
1998
|
-
|
|
1995
|
+
const O = o._options.shouldUnregister || n, b = d.current;
|
|
1996
|
+
b && b !== t && !s && o.unregister(b), o.register(t, T(T({}, a.current.rules), Fe(a.current.disabled) ? { disabled: a.current.disabled } : {}));
|
|
1999
1997
|
const H = (ie, V) => {
|
|
2000
1998
|
const K = k(o._fields, ie);
|
|
2001
1999
|
K && K._f && (K._f.mount = V);
|
|
@@ -2020,8 +2018,8 @@ function du(e) {
|
|
|
2020
2018
|
}
|
|
2021
2019
|
const Qo = (e) => e.render(du(e)), Nu = B.createContext(null);
|
|
2022
2020
|
Nu.displayName = "HookFormContext";
|
|
2023
|
-
var Iu = (e, i, t, r, o) => i ?
|
|
2024
|
-
types:
|
|
2021
|
+
var Iu = (e, i, t, r, o) => i ? W(T({}, t[e]), {
|
|
2022
|
+
types: W(T({}, t[e] && t[e].types ? t[e].types : {}), {
|
|
2025
2023
|
[r]: o || !0
|
|
2026
2024
|
})
|
|
2027
2025
|
}) : {}, ti = (e) => Array.isArray(e) ? e : [e], pn = () => {
|
|
@@ -2125,15 +2123,15 @@ var Fo = (e) => {
|
|
|
2125
2123
|
}
|
|
2126
2124
|
return xn;
|
|
2127
2125
|
}, Bo = (e, { valueAsNumber: i, valueAsDate: t, setValueAs: r }) => Ae(e) ? e : i ? e === "" ? NaN : e && +e : t && Qe(e) ? new Date(e) : r ? r(e) : e;
|
|
2128
|
-
const
|
|
2126
|
+
const bn = {
|
|
2129
2127
|
isValid: !1,
|
|
2130
2128
|
value: null
|
|
2131
2129
|
};
|
|
2132
2130
|
var Vo = (e) => Array.isArray(e) ? e.reduce((i, t) => t && t.checked && !t.disabled ? {
|
|
2133
2131
|
isValid: !0,
|
|
2134
2132
|
value: t.value
|
|
2135
|
-
} : i,
|
|
2136
|
-
function
|
|
2133
|
+
} : i, bn) : bn;
|
|
2134
|
+
function _n(e) {
|
|
2137
2135
|
const i = e.ref;
|
|
2138
2136
|
return wr(i) ? i.files : pr(i) ? Vo(e.refs).value : Yo(i) ? [...i.selectedOptions].map(({ value: t }) => t) : Ii(i) ? Fo(e.refs).value : Bo(Ae(i.value) ? e.ref.value : i.value, e);
|
|
2139
2137
|
}
|
|
@@ -2149,7 +2147,7 @@ var Au = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Tu = (e, i, t, r)
|
|
|
2149
2147
|
fields: o,
|
|
2150
2148
|
shouldUseNativeValidation: r
|
|
2151
2149
|
};
|
|
2152
|
-
},
|
|
2150
|
+
}, bi = (e) => e instanceof RegExp, Ht = (e) => Ae(e) ? e : bi(e) ? e.source : Ee(e) ? bi(e.value) ? e.value.source : e.value : e, Sn = (e) => ({
|
|
2153
2151
|
isOnSubmit: !e || e === He.onSubmit,
|
|
2154
2152
|
isOnBlur: e === He.onBlur,
|
|
2155
2153
|
isOnChange: e === He.onChange,
|
|
@@ -2219,7 +2217,7 @@ function Un(e, i, t = "validate") {
|
|
|
2219
2217
|
ref: i
|
|
2220
2218
|
};
|
|
2221
2219
|
}
|
|
2222
|
-
var Qt = (e) => Ee(e) && !
|
|
2220
|
+
var Qt = (e) => Ee(e) && !bi(e) ? e : {
|
|
2223
2221
|
value: e,
|
|
2224
2222
|
message: ""
|
|
2225
2223
|
}, Qn = (e, i, t, r, o, n) => De(null, null, function* () {
|
|
@@ -2228,9 +2226,9 @@ var Qt = (e) => Ee(e) && !_i(e) ? e : {
|
|
|
2228
2226
|
return {};
|
|
2229
2227
|
const E = g ? g[0] : c, O = (Y) => {
|
|
2230
2228
|
o && E.reportValidity && (E.setCustomValidity(Fe(Y) ? "" : Y || ""), E.reportValidity());
|
|
2231
|
-
},
|
|
2229
|
+
}, b = {}, H = pr(c), ie = Ii(c), V = H || ie, K = (A || wr(c)) && Ae(c.value) && Ae(x) || Ci(c) && c.value === "" || x === "" || Array.isArray(x) && !x.length, U = Iu.bind(null, y, r, b), re = (Y, q, J, le = Ze.maxLength, fe = Ze.minLength) => {
|
|
2232
2230
|
const de = Y ? q : J;
|
|
2233
|
-
|
|
2231
|
+
b[y] = T({
|
|
2234
2232
|
type: Y ? le : fe,
|
|
2235
2233
|
message: de,
|
|
2236
2234
|
ref: c
|
|
@@ -2238,12 +2236,12 @@ var Qt = (e) => Ee(e) && !_i(e) ? e : {
|
|
|
2238
2236
|
};
|
|
2239
2237
|
if (n ? !Array.isArray(x) || !x.length : s && (!V && (K || Ye(x)) || Fe(x) && !x || ie && !Fo(g).isValid || H && !Vo(g).isValid)) {
|
|
2240
2238
|
const { value: Y, message: q } = Qe(s) ? { value: !!s, message: s } : Qt(s);
|
|
2241
|
-
if (Y && (
|
|
2239
|
+
if (Y && (b[y] = T({
|
|
2242
2240
|
type: Ze.required,
|
|
2243
2241
|
message: q,
|
|
2244
2242
|
ref: E
|
|
2245
2243
|
}, U(Ze.required, q)), !r))
|
|
2246
|
-
return O(q),
|
|
2244
|
+
return O(q), b;
|
|
2247
2245
|
}
|
|
2248
2246
|
if (!K && (!Ye(l) || !Ye(a))) {
|
|
2249
2247
|
let Y, q;
|
|
@@ -2256,42 +2254,42 @@ var Qt = (e) => Ee(e) && !_i(e) ? e : {
|
|
|
2256
2254
|
Qe(J.value) && x && (Y = ve ? de(x) > de(J.value) : ce ? x > J.value : fe > new Date(J.value)), Qe(le.value) && x && (q = ve ? de(x) < de(le.value) : ce ? x < le.value : fe < new Date(le.value));
|
|
2257
2255
|
}
|
|
2258
2256
|
if ((Y || q) && (re(!!Y, J.message, le.message, Ze.max, Ze.min), !r))
|
|
2259
|
-
return O(
|
|
2257
|
+
return O(b[y].message), b;
|
|
2260
2258
|
}
|
|
2261
2259
|
if ((u || M) && !K && (Qe(x) || n && Array.isArray(x))) {
|
|
2262
2260
|
const Y = Qt(u), q = Qt(M), J = !Ye(Y.value) && x.length > +Y.value, le = !Ye(q.value) && x.length < +q.value;
|
|
2263
2261
|
if ((J || le) && (re(J, Y.message, q.message), !r))
|
|
2264
|
-
return O(
|
|
2262
|
+
return O(b[y].message), b;
|
|
2265
2263
|
}
|
|
2266
2264
|
if (d && !K && Qe(x)) {
|
|
2267
2265
|
const { value: Y, message: q } = Qt(d);
|
|
2268
|
-
if (
|
|
2266
|
+
if (bi(Y) && !x.match(Y) && (b[y] = T({
|
|
2269
2267
|
type: Ze.pattern,
|
|
2270
2268
|
message: q,
|
|
2271
2269
|
ref: c
|
|
2272
2270
|
}, U(Ze.pattern, q)), !r))
|
|
2273
|
-
return O(q),
|
|
2271
|
+
return O(q), b;
|
|
2274
2272
|
}
|
|
2275
2273
|
if (N) {
|
|
2276
2274
|
if (Ue(N)) {
|
|
2277
2275
|
const Y = yield N(x, t), q = Un(Y, E);
|
|
2278
|
-
if (q && (
|
|
2279
|
-
return O(q.message),
|
|
2276
|
+
if (q && (b[y] = T(T({}, q), U(Ze.validate, q.message)), !r))
|
|
2277
|
+
return O(q.message), b;
|
|
2280
2278
|
} else if (Ee(N)) {
|
|
2281
2279
|
let Y = {};
|
|
2282
2280
|
for (const q in N) {
|
|
2283
2281
|
if (!ke(Y) && !r)
|
|
2284
2282
|
break;
|
|
2285
2283
|
const J = Un(yield N[q](x, t), E, q);
|
|
2286
|
-
J && (Y = T(T({}, J), U(q, J.message)), O(J.message), r && (
|
|
2284
|
+
J && (Y = T(T({}, J), U(q, J.message)), O(J.message), r && (b[y] = Y));
|
|
2287
2285
|
}
|
|
2288
|
-
if (!ke(Y) && (
|
|
2286
|
+
if (!ke(Y) && (b[y] = T({
|
|
2289
2287
|
ref: E
|
|
2290
2288
|
}, Y), !r))
|
|
2291
|
-
return
|
|
2289
|
+
return b;
|
|
2292
2290
|
}
|
|
2293
2291
|
}
|
|
2294
|
-
return O(!0),
|
|
2292
|
+
return O(!0), b;
|
|
2295
2293
|
});
|
|
2296
2294
|
const xu = {
|
|
2297
2295
|
mode: He.onSubmit,
|
|
@@ -2363,17 +2361,17 @@ function Cu(e = {}) {
|
|
|
2363
2361
|
}, x = (f) => {
|
|
2364
2362
|
const h = $t(o, n), m = Au(f);
|
|
2365
2363
|
Ne(t.dirtyFields, m, k(h, m));
|
|
2366
|
-
}, E = (f, h = [], m, v, S = !0,
|
|
2364
|
+
}, E = (f, h = [], m, v, S = !0, _ = !0) => {
|
|
2367
2365
|
if (v && m && !i.disabled) {
|
|
2368
|
-
if (c.action = !0,
|
|
2366
|
+
if (c.action = !0, _ && Array.isArray(k(r, f))) {
|
|
2369
2367
|
const R = m(k(r, f), v.argA, v.argB);
|
|
2370
2368
|
S && Ne(r, f, R);
|
|
2371
2369
|
}
|
|
2372
|
-
if (
|
|
2370
|
+
if (_ && Array.isArray(k(t.errors, f))) {
|
|
2373
2371
|
const R = m(k(t.errors, f), v.argA, v.argB);
|
|
2374
2372
|
S && Ne(t.errors, f, R), wu(t.errors, f);
|
|
2375
2373
|
}
|
|
2376
|
-
if ((l.touchedFields || a.touchedFields) &&
|
|
2374
|
+
if ((l.touchedFields || a.touchedFields) && _ && Array.isArray(k(t.touchedFields, f))) {
|
|
2377
2375
|
const R = m(k(t.touchedFields, f), v.argA, v.argB);
|
|
2378
2376
|
S && Ne(t.touchedFields, f, R);
|
|
2379
2377
|
}
|
|
@@ -2390,7 +2388,7 @@ function Cu(e = {}) {
|
|
|
2390
2388
|
Ne(t.errors, f, h), d.state.next({
|
|
2391
2389
|
errors: t.errors
|
|
2392
2390
|
});
|
|
2393
|
-
},
|
|
2391
|
+
}, b = (f) => {
|
|
2394
2392
|
t.errors = f, d.state.next({
|
|
2395
2393
|
errors: t.errors,
|
|
2396
2394
|
isValid: !1
|
|
@@ -2398,31 +2396,31 @@ function Cu(e = {}) {
|
|
|
2398
2396
|
}, H = (f, h, m, v) => {
|
|
2399
2397
|
const S = k(r, f);
|
|
2400
2398
|
if (S) {
|
|
2401
|
-
const
|
|
2402
|
-
Ae(
|
|
2399
|
+
const _ = k(n, f, Ae(m) ? k(o, f) : m);
|
|
2400
|
+
Ae(_) || v && v.defaultChecked || h ? Ne(n, f, h ? _ : _n(S._f)) : de(f, _), c.mount && !c.action && A();
|
|
2403
2401
|
}
|
|
2404
2402
|
}, ie = (f, h, m, v, S) => {
|
|
2405
|
-
let
|
|
2403
|
+
let _ = !1, R = !1;
|
|
2406
2404
|
const ee = {
|
|
2407
2405
|
name: f
|
|
2408
2406
|
};
|
|
2409
2407
|
if (!i.disabled) {
|
|
2410
2408
|
if (!m || v) {
|
|
2411
|
-
(l.isDirty || a.isDirty) && (R = t.isDirty, t.isDirty = ee.isDirty = J(),
|
|
2409
|
+
(l.isDirty || a.isDirty) && (R = t.isDirty, t.isDirty = ee.isDirty = J(), _ = R !== ee.isDirty);
|
|
2412
2410
|
const L = Ge(k(o, f), h);
|
|
2413
|
-
R = !!k(t.dirtyFields, f), L ? xe(t.dirtyFields, f) : Ne(t.dirtyFields, f, !0), ee.dirtyFields = t.dirtyFields,
|
|
2411
|
+
R = !!k(t.dirtyFields, f), L ? xe(t.dirtyFields, f) : Ne(t.dirtyFields, f, !0), ee.dirtyFields = t.dirtyFields, _ = _ || (l.dirtyFields || a.dirtyFields) && R !== !L;
|
|
2414
2412
|
}
|
|
2415
2413
|
if (m) {
|
|
2416
2414
|
const L = k(t.touchedFields, f);
|
|
2417
|
-
L || (Ne(t.touchedFields, f, m), ee.touchedFields = t.touchedFields,
|
|
2415
|
+
L || (Ne(t.touchedFields, f, m), ee.touchedFields = t.touchedFields, _ = _ || (l.touchedFields || a.touchedFields) && L !== m);
|
|
2418
2416
|
}
|
|
2419
|
-
|
|
2417
|
+
_ && S && d.state.next(ee);
|
|
2420
2418
|
}
|
|
2421
|
-
return
|
|
2419
|
+
return _ ? ee : {};
|
|
2422
2420
|
}, V = (f, h, m, v) => {
|
|
2423
|
-
const S = k(t.errors, f),
|
|
2424
|
-
if (i.delayError && m ? (s = y(() => O(f, m)), s(i.delayError)) : (clearTimeout(u), s = null, m ? Ne(t.errors, f, m) : xe(t.errors, f)), (m ? !Ge(S, m) : S) || !ke(v) ||
|
|
2425
|
-
const R =
|
|
2421
|
+
const S = k(t.errors, f), _ = (l.isValid || a.isValid) && Fe(h) && t.isValid !== h;
|
|
2422
|
+
if (i.delayError && m ? (s = y(() => O(f, m)), s(i.delayError)) : (clearTimeout(u), s = null, m ? Ne(t.errors, f, m) : xe(t.errors, f)), (m ? !Ge(S, m) : S) || !ke(v) || _) {
|
|
2423
|
+
const R = W(T(T({}, v), _ && Fe(h) ? { isValid: h } : {}), {
|
|
2426
2424
|
errors: t.errors,
|
|
2427
2425
|
name: f
|
|
2428
2426
|
});
|
|
@@ -2461,7 +2459,7 @@ function Cu(e = {}) {
|
|
|
2461
2459
|
return v;
|
|
2462
2460
|
}
|
|
2463
2461
|
return !0;
|
|
2464
|
-
}), Y = (
|
|
2462
|
+
}), Y = (_) => De(null, [_], function* ({ fields: f, onlyCheckValid: h, name: m, eventType: v, context: S = {
|
|
2465
2463
|
valid: !0,
|
|
2466
2464
|
runRootValidation: !1
|
|
2467
2465
|
} }) {
|
|
@@ -2473,7 +2471,7 @@ function Cu(e = {}) {
|
|
|
2473
2471
|
for (const ee in f) {
|
|
2474
2472
|
const L = f[ee];
|
|
2475
2473
|
if (L) {
|
|
2476
|
-
const R = L, { _f: F } = R,
|
|
2474
|
+
const R = L, { _f: F } = R, Z = yt(R, ["_f"]);
|
|
2477
2475
|
if (F) {
|
|
2478
2476
|
const ne = g.array.has(F.name), Se = L._f && hu(L._f);
|
|
2479
2477
|
Se && l.validatingFields && p([F.name], !0);
|
|
@@ -2481,10 +2479,10 @@ function Cu(e = {}) {
|
|
|
2481
2479
|
if (Se && l.validatingFields && p([F.name]), ye[F.name] && (S.valid = !1, h) || (!h && (k(ye, F.name) ? ne ? pu(t.errors, ye, F.name) : Ne(t.errors, F.name, ye[F.name]) : xe(t.errors, F.name)), e.shouldUseNativeValidation && ye[F.name]))
|
|
2482
2480
|
break;
|
|
2483
2481
|
}
|
|
2484
|
-
!ke(
|
|
2482
|
+
!ke(Z) && (yield Y({
|
|
2485
2483
|
context: S,
|
|
2486
2484
|
onlyCheckValid: h,
|
|
2487
|
-
fields:
|
|
2485
|
+
fields: Z,
|
|
2488
2486
|
name: ee,
|
|
2489
2487
|
eventType: v
|
|
2490
2488
|
}));
|
|
@@ -2501,10 +2499,10 @@ function Cu(e = {}) {
|
|
|
2501
2499
|
const v = k(r, f);
|
|
2502
2500
|
let S = h;
|
|
2503
2501
|
if (v) {
|
|
2504
|
-
const
|
|
2505
|
-
|
|
2502
|
+
const _ = v._f;
|
|
2503
|
+
_ && (!_.disabled && Ne(n, f, Bo(h, _)), S = Ci(_.ref) && Ye(h) ? "" : h, Yo(_.ref) ? [..._.ref.options].forEach((R) => R.selected = S.includes(R.value)) : _.refs ? Ii(_.ref) ? _.refs.forEach((R) => {
|
|
2506
2504
|
(!R.defaultChecked || !R.disabled) && (Array.isArray(S) ? R.checked = !!S.find((ee) => ee === R.value) : R.checked = S === R.value || !!S);
|
|
2507
|
-
}) :
|
|
2505
|
+
}) : _.refs.forEach((R) => R.checked = R.value === S) : wr(_.ref) ? _.ref.value = "" : (_.ref.value = S, _.ref.type || d.state.next({
|
|
2508
2506
|
name: f,
|
|
2509
2507
|
values: pe(n)
|
|
2510
2508
|
})));
|
|
@@ -2514,19 +2512,19 @@ function Cu(e = {}) {
|
|
|
2514
2512
|
for (const v in h) {
|
|
2515
2513
|
if (!h.hasOwnProperty(v))
|
|
2516
2514
|
return;
|
|
2517
|
-
const S = h[v],
|
|
2518
|
-
(g.array.has(f) || Ee(S) || R && !R._f) && !Ct(S) ? ve(
|
|
2515
|
+
const S = h[v], _ = f + "." + v, R = k(r, _);
|
|
2516
|
+
(g.array.has(f) || Ee(S) || R && !R._f) && !Ct(S) ? ve(_, S, m) : de(_, S, m);
|
|
2519
2517
|
}
|
|
2520
2518
|
}, ce = (f, h, m = {}) => {
|
|
2521
|
-
const v = k(r, f), S = g.array.has(f),
|
|
2522
|
-
Ne(n, f,
|
|
2519
|
+
const v = k(r, f), S = g.array.has(f), _ = pe(h);
|
|
2520
|
+
Ne(n, f, _), S ? (d.array.next({
|
|
2523
2521
|
name: f,
|
|
2524
2522
|
values: pe(n)
|
|
2525
2523
|
}), (l.isDirty || l.dirtyFields || a.isDirty || a.dirtyFields) && m.shouldDirty && (x(f), d.state.next({
|
|
2526
2524
|
name: f,
|
|
2527
2525
|
dirtyFields: t.dirtyFields,
|
|
2528
|
-
isDirty: J(f,
|
|
2529
|
-
}))) : v && !v._f && !Ye(
|
|
2526
|
+
isDirty: J(f, _)
|
|
2527
|
+
}))) : v && !v._f && !Ye(_) ? ve(f, _, m) : de(f, _, m), Ln(f, g) ? d.state.next(W(T({}, t), {
|
|
2530
2528
|
name: f,
|
|
2531
2529
|
values: pe(n)
|
|
2532
2530
|
})) : d.state.next({
|
|
@@ -2537,14 +2535,14 @@ function Cu(e = {}) {
|
|
|
2537
2535
|
c.mount = !0;
|
|
2538
2536
|
const h = f.target;
|
|
2539
2537
|
let m = h.name, v = !0;
|
|
2540
|
-
const S = k(r, m),
|
|
2538
|
+
const S = k(r, m), _ = (L) => {
|
|
2541
2539
|
v = Number.isNaN(L) || Ct(L) && isNaN(L.getTime()) || Ge(L, k(n, m, L));
|
|
2542
2540
|
}, R = Sn(i.mode), ee = Sn(i.reValidateMode);
|
|
2543
2541
|
if (S) {
|
|
2544
2542
|
let L, F;
|
|
2545
|
-
const
|
|
2546
|
-
Ne(n, m,
|
|
2547
|
-
const se = ie(m,
|
|
2543
|
+
const Z = h.type ? _n(S._f) : So(f), ne = f.type === At.BLUR || f.type === At.FOCUS_OUT, Se = !zu(S._f) && !e.validate && !i.resolver && !k(t.errors, m) && !S._f.deps || Eu(ne, k(t.touchedFields, m), t.isSubmitted, ee, R), ye = Ln(m, g, ne);
|
|
2544
|
+
Ne(n, m, Z), ne ? (!h || !h.readOnly) && (S._f.onBlur && S._f.onBlur(f), s && s(0)) : S._f.onChange && S._f.onChange(f);
|
|
2545
|
+
const se = ie(m, Z, ne), $ = !ke(se) || ye;
|
|
2548
2546
|
if (!ne && d.state.next({
|
|
2549
2547
|
name: m,
|
|
2550
2548
|
type: f.type,
|
|
@@ -2556,12 +2554,12 @@ function Cu(e = {}) {
|
|
|
2556
2554
|
eventType: f.type
|
|
2557
2555
|
})), !ne && ye && d.state.next(T({}, t)), i.resolver) {
|
|
2558
2556
|
const { errors: Le } = yield K([m]);
|
|
2559
|
-
if (p([m]),
|
|
2557
|
+
if (p([m]), _(Z), v) {
|
|
2560
2558
|
const Dt = kn(t.errors, r, m), ft = kn(Le, r, Dt.name || m);
|
|
2561
2559
|
L = ft.error, m = ft.name, F = ke(Le);
|
|
2562
2560
|
}
|
|
2563
2561
|
} else
|
|
2564
|
-
p([m], !0), L = (yield Qn(S, g.disabled, n, N, i.shouldUseNativeValidation))[m], p([m]),
|
|
2562
|
+
p([m], !0), L = (yield Qn(S, g.disabled, n, N, i.shouldUseNativeValidation))[m], p([m]), _(Z), v && (L ? F = !1 : (l.isValid || a.isValid) && (F = yield Y({
|
|
2565
2563
|
fields: r,
|
|
2566
2564
|
onlyCheckValid: !0,
|
|
2567
2565
|
name: m,
|
|
@@ -2573,29 +2571,29 @@ function Cu(e = {}) {
|
|
|
2573
2571
|
if (k(t.errors, h) && f.focus)
|
|
2574
2572
|
return f.focus(), 1;
|
|
2575
2573
|
}, je = (m, ...v) => De(null, [m, ...v], function* (f, h = {}) {
|
|
2576
|
-
let S,
|
|
2574
|
+
let S, _;
|
|
2577
2575
|
const R = ti(f);
|
|
2578
2576
|
if (i.resolver) {
|
|
2579
2577
|
const ee = yield U(Ae(f) ? f : R);
|
|
2580
|
-
S = ke(ee),
|
|
2581
|
-
} else f ? (
|
|
2578
|
+
S = ke(ee), _ = f ? !R.some((L) => k(ee, L)) : S;
|
|
2579
|
+
} else f ? (_ = (yield Promise.all(R.map((ee) => De(null, null, function* () {
|
|
2582
2580
|
const L = k(r, ee);
|
|
2583
2581
|
return yield Y({
|
|
2584
2582
|
fields: L && L._f ? { [ee]: L } : L,
|
|
2585
2583
|
eventType: At.TRIGGER
|
|
2586
2584
|
});
|
|
2587
|
-
})))).every(Boolean), !(!
|
|
2585
|
+
})))).every(Boolean), !(!_ && !t.isValid) && A()) : _ = S = yield Y({
|
|
2588
2586
|
fields: r,
|
|
2589
2587
|
name: f,
|
|
2590
2588
|
eventType: At.TRIGGER
|
|
2591
2589
|
});
|
|
2592
|
-
return d.state.next(
|
|
2590
|
+
return d.state.next(W(T(T({}, !Qe(f) || (l.isValid || a.isValid) && S !== t.isValid ? {} : { name: f }), i.resolver || !f ? { isValid: S } : {}), {
|
|
2593
2591
|
errors: t.errors
|
|
2594
|
-
})), h.shouldFocus && !
|
|
2592
|
+
})), h.shouldFocus && !_ && ii(r, Me, f ? R : g.mount), _;
|
|
2595
2593
|
}), Oe = (f, h) => {
|
|
2596
2594
|
let m = T({}, c.mount ? n : o);
|
|
2597
2595
|
return h && (m = Ro(h.dirtyFields ? t.dirtyFields : t.touchedFields, m)), Ae(f) ? m : Qe(f) ? k(m, f) : f.map((v) => k(m, v));
|
|
2598
|
-
},
|
|
2596
|
+
}, _e = (f, h) => ({
|
|
2599
2597
|
invalid: !!k((h || t).errors, f),
|
|
2600
2598
|
isDirty: !!k((h || t).dirtyFields, f),
|
|
2601
2599
|
error: k((h || t).errors, f),
|
|
@@ -2612,8 +2610,8 @@ function Cu(e = {}) {
|
|
|
2612
2610
|
errors: {}
|
|
2613
2611
|
});
|
|
2614
2612
|
}, oe = (f, h, m) => {
|
|
2615
|
-
const v = (k(r, f, { _f: {} })._f || {}).ref, F = k(t.errors, f) || {}, { ref:
|
|
2616
|
-
Ne(t.errors, f,
|
|
2613
|
+
const v = (k(r, f, { _f: {} })._f || {}).ref, F = k(t.errors, f) || {}, { ref: _, message: R, type: ee } = F, L = yt(F, ["ref", "message", "type"]);
|
|
2614
|
+
Ne(t.errors, f, W(T(T({}, L), h), {
|
|
2617
2615
|
ref: v
|
|
2618
2616
|
})), d.state.next({
|
|
2619
2617
|
name: f,
|
|
@@ -2624,13 +2622,13 @@ function Cu(e = {}) {
|
|
|
2624
2622
|
next: (m) => "values" in m && f(le(void 0, h), m)
|
|
2625
2623
|
}) : le(f, h, !0), Xe = (f) => d.state.subscribe({
|
|
2626
2624
|
next: (h) => {
|
|
2627
|
-
mu(f.name, h.name, f.exact) && Ou(h, f.formState || l, qe, f.reRenderRoot) && f.callback(
|
|
2625
|
+
mu(f.name, h.name, f.exact) && Ou(h, f.formState || l, qe, f.reRenderRoot) && f.callback(W(T(T({
|
|
2628
2626
|
values: T({}, n)
|
|
2629
2627
|
}, t), h), {
|
|
2630
2628
|
defaultValues: o
|
|
2631
2629
|
}));
|
|
2632
2630
|
}
|
|
2633
|
-
}).unsubscribe, Ot = (f) => (c.mount = !0, a = T(T({}, a), f.formState), Xe(
|
|
2631
|
+
}).unsubscribe, Ot = (f) => (c.mount = !0, a = T(T({}, a), f.formState), Xe(W(T({}, f), {
|
|
2634
2632
|
formState: T(T({}, M), f.formState)
|
|
2635
2633
|
}))), Ve = (f, h = {}) => {
|
|
2636
2634
|
for (const m of f ? ti(f) : g.mount)
|
|
@@ -2646,15 +2644,15 @@ function Cu(e = {}) {
|
|
|
2646
2644
|
}, ot = (f, h = {}) => {
|
|
2647
2645
|
let m = k(r, f);
|
|
2648
2646
|
const v = Fe(h.disabled) || Fe(i.disabled), S = !g.registerName.has(f) && m && !m._f.mount;
|
|
2649
|
-
return Ne(r, f,
|
|
2650
|
-
_f: T(
|
|
2647
|
+
return Ne(r, f, W(T({}, m || {}), {
|
|
2648
|
+
_f: T(W(T({}, m && m._f ? m._f : { ref: { name: f } }), {
|
|
2651
2649
|
name: f,
|
|
2652
2650
|
mount: !0
|
|
2653
2651
|
}), h)
|
|
2654
2652
|
})), g.mount.add(f), m && !S ? dt({
|
|
2655
2653
|
disabled: Fe(h.disabled) ? h.disabled : i.disabled,
|
|
2656
2654
|
name: f
|
|
2657
|
-
}) : H(f, !0, h.value),
|
|
2655
|
+
}) : H(f, !0, h.value), W(T(T({}, v ? { disabled: h.disabled || i.disabled } : {}), i.progressive ? {
|
|
2658
2656
|
required: !!h.required,
|
|
2659
2657
|
min: Ht(h.min),
|
|
2660
2658
|
max: Ht(h.max),
|
|
@@ -2665,10 +2663,10 @@ function Cu(e = {}) {
|
|
|
2665
2663
|
name: f,
|
|
2666
2664
|
onChange: G,
|
|
2667
2665
|
onBlur: G,
|
|
2668
|
-
ref: (
|
|
2669
|
-
if (
|
|
2666
|
+
ref: (_) => {
|
|
2667
|
+
if (_) {
|
|
2670
2668
|
g.registerName.add(f), ot(f, h), g.registerName.delete(f), m = k(r, f);
|
|
2671
|
-
const R = Ae(
|
|
2669
|
+
const R = Ae(_.value) && _.querySelectorAll && _.querySelectorAll("input,select,textarea")[0] || _, ee = Du(R), L = m._f.refs || [];
|
|
2672
2670
|
if (ee ? L.find((F) => F === R) : R === m._f.ref)
|
|
2673
2671
|
return;
|
|
2674
2672
|
Ne(r, f, {
|
|
@@ -2699,24 +2697,24 @@ function Cu(e = {}) {
|
|
|
2699
2697
|
if (d.state.next({
|
|
2700
2698
|
isSubmitting: !0
|
|
2701
2699
|
}), i.resolver) {
|
|
2702
|
-
const { errors:
|
|
2703
|
-
p(), t.errors =
|
|
2700
|
+
const { errors: _, values: R } = yield K();
|
|
2701
|
+
p(), t.errors = _, S = pe(R);
|
|
2704
2702
|
} else
|
|
2705
2703
|
yield Y({
|
|
2706
2704
|
fields: r,
|
|
2707
2705
|
eventType: At.SUBMIT
|
|
2708
2706
|
});
|
|
2709
2707
|
if (g.disabled.size)
|
|
2710
|
-
for (const
|
|
2711
|
-
xe(S,
|
|
2708
|
+
for (const _ of g.disabled)
|
|
2709
|
+
xe(S, _);
|
|
2712
2710
|
if (xe(t.errors, Lo), ke(t.errors)) {
|
|
2713
2711
|
d.state.next({
|
|
2714
2712
|
errors: {}
|
|
2715
2713
|
});
|
|
2716
2714
|
try {
|
|
2717
2715
|
yield f(S, m);
|
|
2718
|
-
} catch (
|
|
2719
|
-
v =
|
|
2716
|
+
} catch (_) {
|
|
2717
|
+
v = _;
|
|
2720
2718
|
}
|
|
2721
2719
|
} else
|
|
2722
2720
|
h && (yield h(T({}, t.errors), m)), Nt(), setTimeout(Nt);
|
|
@@ -2731,7 +2729,7 @@ function Cu(e = {}) {
|
|
|
2731
2729
|
}), mt = (f, h = {}) => {
|
|
2732
2730
|
k(r, f) && (Ae(h.defaultValue) ? ce(f, pe(k(o, f))) : (ce(f, h.defaultValue), Ne(o, f, pe(h.defaultValue))), h.keepTouched || xe(t.touchedFields, f), h.keepDirty || (xe(t.dirtyFields, f), t.isDirty = h.defaultValue ? J(f, pe(k(o, f))) : J()), h.keepError || (xe(t.errors, f), l.isValid && A()), d.state.next(T({}, t)));
|
|
2733
2731
|
}, Et = (f, h = {}) => {
|
|
2734
|
-
const m = f ? pe(f) : o, v = pe(m), S = ke(f),
|
|
2732
|
+
const m = f ? pe(f) : o, v = pe(m), S = ke(f), _ = S ? o : v;
|
|
2735
2733
|
if (h.keepDefaultValues || (o = m), !h.keepValues) {
|
|
2736
2734
|
if (h.keepDirtyValues) {
|
|
2737
2735
|
const R = /* @__PURE__ */ new Set([
|
|
@@ -2739,8 +2737,8 @@ function Cu(e = {}) {
|
|
|
2739
2737
|
...Object.keys($t(o, n))
|
|
2740
2738
|
]);
|
|
2741
2739
|
for (const ee of Array.from(R)) {
|
|
2742
|
-
const L = k(t.dirtyFields, ee), F = k(n, ee),
|
|
2743
|
-
L && !Ae(F) ? Ne(
|
|
2740
|
+
const L = k(t.dirtyFields, ee), F = k(n, ee), Z = k(_, ee);
|
|
2741
|
+
L && !Ae(F) ? Ne(_, ee, F) : !L && !Ae(Z) && ce(ee, Z);
|
|
2744
2742
|
}
|
|
2745
2743
|
} else {
|
|
2746
2744
|
if (hr && Ae(f))
|
|
@@ -2759,14 +2757,14 @@ function Cu(e = {}) {
|
|
|
2759
2757
|
}
|
|
2760
2758
|
if (h.keepFieldsRef)
|
|
2761
2759
|
for (const R of g.mount)
|
|
2762
|
-
ce(R, k(
|
|
2760
|
+
ce(R, k(_, R));
|
|
2763
2761
|
else
|
|
2764
2762
|
r = {};
|
|
2765
2763
|
}
|
|
2766
|
-
n = i.shouldUnregister ? h.keepDefaultValues ? pe(o) : {} : pe(
|
|
2767
|
-
values: T({},
|
|
2764
|
+
n = i.shouldUnregister ? h.keepDefaultValues ? pe(o) : {} : pe(_), d.array.next({
|
|
2765
|
+
values: T({}, _)
|
|
2768
2766
|
}), d.state.next({
|
|
2769
|
-
values: T({},
|
|
2767
|
+
values: T({}, _)
|
|
2770
2768
|
});
|
|
2771
2769
|
}
|
|
2772
2770
|
g = {
|
|
@@ -2778,7 +2776,7 @@ function Cu(e = {}) {
|
|
|
2778
2776
|
watch: /* @__PURE__ */ new Set(),
|
|
2779
2777
|
watchAll: !1,
|
|
2780
2778
|
focus: ""
|
|
2781
|
-
}, c.mount = !l.isValid || !!h.keepIsValid || !!h.keepDirtyValues || !i.shouldUnregister && !ke(
|
|
2779
|
+
}, c.mount = !l.isValid || !!h.keepIsValid || !!h.keepDirtyValues || !i.shouldUnregister && !ke(_), c.watch = !!i.shouldUnregister, c.keepIsValid = !!h.keepIsValid, c.action = !1, h.keepErrors || (t.errors = {}), d.state.next({
|
|
2782
2780
|
submitCount: h.keepSubmitCount ? t.submitCount : 0,
|
|
2783
2781
|
isDirty: S ? !1 : h.keepDirty ? t.isDirty : !!(h.keepDefaultValues && !Ge(f, o)),
|
|
2784
2782
|
isSubmitted: h.keepIsSubmitted ? t.isSubmitted : !1,
|
|
@@ -2803,7 +2801,7 @@ function Cu(e = {}) {
|
|
|
2803
2801
|
control: {
|
|
2804
2802
|
register: ot,
|
|
2805
2803
|
unregister: Ve,
|
|
2806
|
-
getFieldState:
|
|
2804
|
+
getFieldState: _e,
|
|
2807
2805
|
handleSubmit: It,
|
|
2808
2806
|
setError: oe,
|
|
2809
2807
|
_subscribe: Xe,
|
|
@@ -2815,7 +2813,7 @@ function Cu(e = {}) {
|
|
|
2815
2813
|
_setValid: A,
|
|
2816
2814
|
_setFieldArray: E,
|
|
2817
2815
|
_setDisabledField: dt,
|
|
2818
|
-
_setErrors:
|
|
2816
|
+
_setErrors: b,
|
|
2819
2817
|
_getFieldArray: fe,
|
|
2820
2818
|
_reset: Et,
|
|
2821
2819
|
_resetDefaultValues: () => Ue(i.defaultValues) && i.defaultValues().then((f) => {
|
|
@@ -2871,13 +2869,13 @@ function Cu(e = {}) {
|
|
|
2871
2869
|
unregister: Ve,
|
|
2872
2870
|
setError: oe,
|
|
2873
2871
|
setFocus: st,
|
|
2874
|
-
getFieldState:
|
|
2872
|
+
getFieldState: _e
|
|
2875
2873
|
};
|
|
2876
|
-
return
|
|
2874
|
+
return W(T({}, at), {
|
|
2877
2875
|
formControl: at
|
|
2878
2876
|
});
|
|
2879
2877
|
}
|
|
2880
|
-
function
|
|
2878
|
+
function bu(e = {}) {
|
|
2881
2879
|
const i = B.useRef(void 0), t = B.useRef(void 0), [r, o] = B.useState({
|
|
2882
2880
|
isDirty: !1,
|
|
2883
2881
|
isValidating: !1,
|
|
@@ -2897,12 +2895,12 @@ function _u(e = {}) {
|
|
|
2897
2895
|
});
|
|
2898
2896
|
if (!i.current)
|
|
2899
2897
|
if (e.formControl)
|
|
2900
|
-
i.current =
|
|
2898
|
+
i.current = W(T({}, e.formControl), {
|
|
2901
2899
|
formState: r
|
|
2902
2900
|
}), e.defaultValues && !Ue(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
2903
2901
|
else {
|
|
2904
2902
|
const c = Cu(e), { formControl: g } = c, s = yt(c, ["formControl"]);
|
|
2905
|
-
i.current =
|
|
2903
|
+
i.current = W(T({}, s), {
|
|
2906
2904
|
formState: r
|
|
2907
2905
|
});
|
|
2908
2906
|
}
|
|
@@ -2913,7 +2911,7 @@ function _u(e = {}) {
|
|
|
2913
2911
|
callback: () => o(T({}, n._formState)),
|
|
2914
2912
|
reRenderRoot: !0
|
|
2915
2913
|
});
|
|
2916
|
-
return o((s) =>
|
|
2914
|
+
return o((s) => W(T({}, s), {
|
|
2917
2915
|
isReady: !0
|
|
2918
2916
|
})), n._formState.isReady = !0, g;
|
|
2919
2917
|
}, [n]), B.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), B.useEffect(() => {
|
|
@@ -2948,7 +2946,7 @@ const Wt = (e, i) => {
|
|
|
2948
2946
|
t[`regex_${o}`] = (c) => !i && !c ? !0 : typeof c != "string" ? r.message : n.test(c) || r.message;
|
|
2949
2947
|
}
|
|
2950
2948
|
}), t;
|
|
2951
|
-
},
|
|
2949
|
+
}, _u = ({ isOpen: e, image: i }) => /* @__PURE__ */ D(
|
|
2952
2950
|
"div",
|
|
2953
2951
|
{
|
|
2954
2952
|
"data-ui": "gui-custom-select-chevron",
|
|
@@ -2999,7 +2997,7 @@ const Wt = (e, i) => {
|
|
|
2999
2997
|
onMouseEnter: o,
|
|
3000
2998
|
onMouseLeave: n,
|
|
3001
2999
|
children: [
|
|
3002
|
-
/* @__PURE__ */ D(Te,
|
|
3000
|
+
/* @__PURE__ */ D(Te, W(T({}, i.layout.title), { text: i.label })),
|
|
3003
3001
|
/* @__PURE__ */ D(
|
|
3004
3002
|
"div",
|
|
3005
3003
|
{
|
|
@@ -3029,11 +3027,11 @@ const Wt = (e, i) => {
|
|
|
3029
3027
|
pickerLayout: l
|
|
3030
3028
|
}) => {
|
|
3031
3029
|
var Y, q, J, le, fe, de, ve, ce;
|
|
3032
|
-
const [a, d] = me(!1), [N, y] = me(o), [A, p] = me("down"), [x, E] = me(null), O = Je(null),
|
|
3030
|
+
const [a, d] = me(!1), [N, y] = me(o), [A, p] = me("down"), [x, E] = me(null), O = Je(null), b = Je(null);
|
|
3033
3031
|
ht(() => {
|
|
3034
|
-
var
|
|
3032
|
+
var _e, P, oe;
|
|
3035
3033
|
if (!a) return;
|
|
3036
|
-
const G = (
|
|
3034
|
+
const G = (_e = O.current) == null ? void 0 : _e.getBoundingClientRect(), Me = (P = b.current) == null ? void 0 : P.getBoundingClientRect(), je = (oe = u.current) == null ? void 0 : oe.getBoundingClientRect();
|
|
3037
3035
|
if (!G || !Me || !je) return;
|
|
3038
3036
|
const Oe = G.bottom + Me.height < je.bottom;
|
|
3039
3037
|
p(Oe ? "down" : "up");
|
|
@@ -3101,7 +3099,7 @@ const Wt = (e, i) => {
|
|
|
3101
3099
|
}
|
|
3102
3100
|
),
|
|
3103
3101
|
N.map((G) => {
|
|
3104
|
-
var Me, je, Oe,
|
|
3102
|
+
var Me, je, Oe, _e, P;
|
|
3105
3103
|
if (t) {
|
|
3106
3104
|
const oe = M == null ? void 0 : M.chip;
|
|
3107
3105
|
return /* @__PURE__ */ D(
|
|
@@ -3119,8 +3117,8 @@ const Wt = (e, i) => {
|
|
|
3119
3117
|
children: [
|
|
3120
3118
|
/* @__PURE__ */ D(
|
|
3121
3119
|
Te,
|
|
3122
|
-
|
|
3123
|
-
fontSize: (
|
|
3120
|
+
W(T({}, oe == null ? void 0 : oe.title), {
|
|
3121
|
+
fontSize: (_e = (Oe = oe == null ? void 0 : oe.title) == null ? void 0 : Oe.fontSize) != null ? _e : 13,
|
|
3124
3122
|
text: G.label
|
|
3125
3123
|
})
|
|
3126
3124
|
),
|
|
@@ -3151,7 +3149,7 @@ const Wt = (e, i) => {
|
|
|
3151
3149
|
display: "flex",
|
|
3152
3150
|
userSelect: "none"
|
|
3153
3151
|
},
|
|
3154
|
-
children: /* @__PURE__ */ D(Te,
|
|
3152
|
+
children: /* @__PURE__ */ D(Te, W(T({}, oe), { fontSize: (P = oe == null ? void 0 : oe.fontSize) != null ? P : 13, text: G.label }))
|
|
3155
3153
|
},
|
|
3156
3154
|
G.value
|
|
3157
3155
|
);
|
|
@@ -3185,13 +3183,13 @@ const Wt = (e, i) => {
|
|
|
3185
3183
|
}
|
|
3186
3184
|
}
|
|
3187
3185
|
) : null,
|
|
3188
|
-
/* @__PURE__ */ D(
|
|
3186
|
+
/* @__PURE__ */ D(_u, { isOpen: a, image: M == null ? void 0 : M.expandButton }),
|
|
3189
3187
|
a && /* @__PURE__ */ D(
|
|
3190
3188
|
"div",
|
|
3191
3189
|
{
|
|
3192
3190
|
"data-ui": "gui-custom-select-dropdown-menu",
|
|
3193
|
-
ref:
|
|
3194
|
-
style:
|
|
3191
|
+
ref: b,
|
|
3192
|
+
style: W(T({
|
|
3195
3193
|
position: "absolute"
|
|
3196
3194
|
}, A === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
3197
3195
|
insetInline: 0,
|
|
@@ -3255,7 +3253,7 @@ const Wt = (e, i) => {
|
|
|
3255
3253
|
boxSizing: "border-box"
|
|
3256
3254
|
},
|
|
3257
3255
|
children: [
|
|
3258
|
-
i.title && /* @__PURE__ */ D(Te,
|
|
3256
|
+
i.title && /* @__PURE__ */ D(Te, W(T({}, i.title), { text: t.text, htmlFor: n })),
|
|
3259
3257
|
/* @__PURE__ */ D(
|
|
3260
3258
|
Qo,
|
|
3261
3259
|
{
|
|
@@ -3314,7 +3312,7 @@ const Wt = (e, i) => {
|
|
|
3314
3312
|
boxSizing: "border-box"
|
|
3315
3313
|
},
|
|
3316
3314
|
children: [
|
|
3317
|
-
i.title && /* @__PURE__ */ D(Te,
|
|
3315
|
+
i.title && /* @__PURE__ */ D(Te, W(T({}, i.title), { text: t.text, htmlFor: n })),
|
|
3318
3316
|
/* @__PURE__ */ D(
|
|
3319
3317
|
Qo,
|
|
3320
3318
|
{
|
|
@@ -3399,10 +3397,10 @@ const Wt = (e, i) => {
|
|
|
3399
3397
|
children: /* @__PURE__ */ D(Ce, T({}, M ? a.image : l.image))
|
|
3400
3398
|
}
|
|
3401
3399
|
),
|
|
3402
|
-
/* @__PURE__ */ D(Te,
|
|
3400
|
+
/* @__PURE__ */ D(Te, W(T({}, M ? a.title : l.title), { text: e.text })),
|
|
3403
3401
|
/* @__PURE__ */ D(
|
|
3404
3402
|
"input",
|
|
3405
|
-
|
|
3403
|
+
W(T({
|
|
3406
3404
|
style: {
|
|
3407
3405
|
width: 1,
|
|
3408
3406
|
height: 1,
|
|
@@ -3451,7 +3449,7 @@ const Wt = (e, i) => {
|
|
|
3451
3449
|
padding: 0,
|
|
3452
3450
|
marginBottom: "16px"
|
|
3453
3451
|
},
|
|
3454
|
-
children: /* @__PURE__ */ D(Te,
|
|
3452
|
+
children: /* @__PURE__ */ D(Te, W(T({}, e.title), { text: r.text }))
|
|
3455
3453
|
}
|
|
3456
3454
|
),
|
|
3457
3455
|
r.options.map((o) => /* @__PURE__ */ D(
|
|
@@ -3505,7 +3503,7 @@ const Wt = (e, i) => {
|
|
|
3505
3503
|
children: [
|
|
3506
3504
|
/* @__PURE__ */ D(
|
|
3507
3505
|
"input",
|
|
3508
|
-
|
|
3506
|
+
W(T({
|
|
3509
3507
|
style: {
|
|
3510
3508
|
width: 1,
|
|
3511
3509
|
height: 1,
|
|
@@ -3526,7 +3524,7 @@ const Wt = (e, i) => {
|
|
|
3526
3524
|
onBlur: () => c(!1)
|
|
3527
3525
|
})
|
|
3528
3526
|
),
|
|
3529
|
-
/* @__PURE__ */ D(Te,
|
|
3527
|
+
/* @__PURE__ */ D(Te, W(T({}, M ? a.title : l.title), { text: e.text }))
|
|
3530
3528
|
]
|
|
3531
3529
|
}
|
|
3532
3530
|
)
|
|
@@ -3555,7 +3553,7 @@ const Wt = (e, i) => {
|
|
|
3555
3553
|
padding: 0,
|
|
3556
3554
|
marginBottom: "16px"
|
|
3557
3555
|
},
|
|
3558
|
-
children: /* @__PURE__ */ D(Te,
|
|
3556
|
+
children: /* @__PURE__ */ D(Te, W(T({}, e.title), { text: r.text }))
|
|
3559
3557
|
}
|
|
3560
3558
|
),
|
|
3561
3559
|
/* @__PURE__ */ D("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: r.options.map((o) => /* @__PURE__ */ D(
|
|
@@ -3610,13 +3608,13 @@ const Wt = (e, i) => {
|
|
|
3610
3608
|
),
|
|
3611
3609
|
e
|
|
3612
3610
|
] });
|
|
3613
|
-
}, Pu = ({ validationErrorsTypes: e, title: i }) => e ? /* @__PURE__ */ D("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([t, r]) => /* @__PURE__ */ D(Te,
|
|
3611
|
+
}, Pu = ({ validationErrorsTypes: e, title: i }) => e ? /* @__PURE__ */ D("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([t, r]) => /* @__PURE__ */ D(Te, W(T({}, i), { text: r }), t)) }) : null, Fu = ({
|
|
3614
3612
|
layout: e,
|
|
3615
3613
|
dataSourceQuestion: i,
|
|
3616
3614
|
register: t
|
|
3617
3615
|
}) => {
|
|
3618
3616
|
var n, c, g, s, u, M, l, a, d, N, y, A, p, x, E, O;
|
|
3619
|
-
const r = String(i.id), o = (
|
|
3617
|
+
const r = String(i.id), o = (b) => b ? b === Ai.EMAIL ? "email" : b === Ai.FREE_TEXT ? "text" : b === Ai.NUMBER ? "number" : b === Ai.SECURE ? "password" : "text" : "text";
|
|
3620
3618
|
return /* @__PURE__ */ D(
|
|
3621
3619
|
"div",
|
|
3622
3620
|
{
|
|
@@ -3626,10 +3624,10 @@ const Wt = (e, i) => {
|
|
|
3626
3624
|
gap: "16px"
|
|
3627
3625
|
},
|
|
3628
3626
|
children: [
|
|
3629
|
-
/* @__PURE__ */ D(Te,
|
|
3627
|
+
/* @__PURE__ */ D(Te, W(T({}, e.title), { text: i.text, htmlFor: r })),
|
|
3630
3628
|
/* @__PURE__ */ D(
|
|
3631
3629
|
"input",
|
|
3632
|
-
|
|
3630
|
+
W(T({}, t(r, {
|
|
3633
3631
|
required: !!i.required,
|
|
3634
3632
|
validate: Wt(i.validators, !!i.required)
|
|
3635
3633
|
})), {
|
|
@@ -3672,10 +3670,10 @@ const Wt = (e, i) => {
|
|
|
3672
3670
|
gap: "16px"
|
|
3673
3671
|
},
|
|
3674
3672
|
children: [
|
|
3675
|
-
/* @__PURE__ */ D(Te,
|
|
3673
|
+
/* @__PURE__ */ D(Te, W(T({}, e.title), { text: i.text, htmlFor: r })),
|
|
3676
3674
|
/* @__PURE__ */ D(
|
|
3677
3675
|
"textarea",
|
|
3678
|
-
|
|
3676
|
+
W(T({}, t(r, {
|
|
3679
3677
|
required: !!i.required,
|
|
3680
3678
|
validate: Wt(i.validators, !!i.required)
|
|
3681
3679
|
})), {
|
|
@@ -3714,7 +3712,7 @@ const Wt = (e, i) => {
|
|
|
3714
3712
|
underlyingError: r,
|
|
3715
3713
|
underlyingBaseError: o
|
|
3716
3714
|
}) {
|
|
3717
|
-
const n = xt.getErrorKey(i,
|
|
3715
|
+
const n = xt.getErrorKey(i, bt);
|
|
3718
3716
|
super({
|
|
3719
3717
|
errorCode: i,
|
|
3720
3718
|
errorCodeKey: n,
|
|
@@ -3735,14 +3733,14 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
|
|
|
3735
3733
|
const s = li.FORM, { perform: u } = Mt();
|
|
3736
3734
|
if (!n || (n == null ? void 0 : n.questions.length) === 0) {
|
|
3737
3735
|
const O = new Tt({
|
|
3738
|
-
errorCode:
|
|
3736
|
+
errorCode: bt.DECODING_FAILED,
|
|
3739
3737
|
message: "No dataSource or no data for questions in the dataSource"
|
|
3740
3738
|
});
|
|
3741
3739
|
return u(O), null;
|
|
3742
3740
|
}
|
|
3743
3741
|
if (!(o != null && o.itemTypes) || Array.isArray(o == null ? void 0 : o.itemTypes) && ((E = o == null ? void 0 : o.itemTypes) == null ? void 0 : E.length) === 0) {
|
|
3744
3742
|
const O = new Tt({
|
|
3745
|
-
errorCode:
|
|
3743
|
+
errorCode: bt.DECODING_FAILED,
|
|
3746
3744
|
message: "No questions in the itemTypes field or itemTypes is not an array"
|
|
3747
3745
|
});
|
|
3748
3746
|
return u(O), null;
|
|
@@ -3754,7 +3752,7 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
|
|
|
3754
3752
|
reset: y,
|
|
3755
3753
|
watch: A,
|
|
3756
3754
|
control: p
|
|
3757
|
-
} =
|
|
3755
|
+
} = bu({
|
|
3758
3756
|
criteriaMode: "all",
|
|
3759
3757
|
defaultValues: M
|
|
3760
3758
|
});
|
|
@@ -3802,14 +3800,14 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
|
|
|
3802
3800
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
3803
3801
|
children: n.questions.map((O) => {
|
|
3804
3802
|
var re;
|
|
3805
|
-
const
|
|
3803
|
+
const b = n.static, H = (Y, q) => q.find((J) => {
|
|
3806
3804
|
var le;
|
|
3807
3805
|
if ((le = J.questionIds) != null && le.length)
|
|
3808
3806
|
return J.questionIds.find((fe) => Y === fe);
|
|
3809
|
-
}), ie = (Y, q) => q.find((J) => !J.questionIds && J.answerType === Y), V =
|
|
3807
|
+
}), ie = (Y, q) => q.find((J) => !J.questionIds && J.answerType === Y), V = b ? H(String(O.id), o.itemTypes) || ie(O.answerType, o.itemTypes) : o.itemTypes.find((Y) => Y.answerType === O.answerType);
|
|
3810
3808
|
if (!V) {
|
|
3811
3809
|
const Y = new Tt({
|
|
3812
|
-
errorCode:
|
|
3810
|
+
errorCode: bt.DECODING_FAILED,
|
|
3813
3811
|
message: "The question template has not been found"
|
|
3814
3812
|
});
|
|
3815
3813
|
u(Y);
|
|
@@ -3818,7 +3816,7 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
|
|
|
3818
3816
|
const K = V == null ? void 0 : V.displayType, U = O.id in N && ((re = N[O.id]) == null ? void 0 : re.types);
|
|
3819
3817
|
return (
|
|
3820
3818
|
/** Question */
|
|
3821
|
-
/* @__PURE__ */ D(
|
|
3819
|
+
/* @__PURE__ */ D(be, { children: [
|
|
3822
3820
|
/* @__PURE__ */ D(
|
|
3823
3821
|
Yu,
|
|
3824
3822
|
{
|
|
@@ -3914,7 +3912,7 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
|
|
|
3914
3912
|
alignItems: "flex-end",
|
|
3915
3913
|
padding: "2px"
|
|
3916
3914
|
},
|
|
3917
|
-
children: t.map((O,
|
|
3915
|
+
children: t.map((O, b) => /* @__PURE__ */ D(si, T({ dataTestId: "question-button" }, O), b))
|
|
3918
3916
|
}
|
|
3919
3917
|
)
|
|
3920
3918
|
]
|
|
@@ -3984,16 +3982,16 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
|
|
|
3984
3982
|
var a;
|
|
3985
3983
|
(a = c.current) == null || a.showPicker();
|
|
3986
3984
|
};
|
|
3987
|
-
return /* @__PURE__ */ D(gt, { header: e, footer: i, backgroundColor: r, children: /* @__PURE__ */ D(
|
|
3985
|
+
return /* @__PURE__ */ D(gt, { header: e, footer: i, backgroundColor: r, children: /* @__PURE__ */ D(be, { children: /* @__PURE__ */ D(
|
|
3988
3986
|
"div",
|
|
3989
3987
|
{
|
|
3990
|
-
style:
|
|
3988
|
+
style: W(T({}, Hu), {
|
|
3991
3989
|
justifyContent: "center"
|
|
3992
3990
|
}),
|
|
3993
3991
|
children: [
|
|
3994
3992
|
/* @__PURE__ */ D(
|
|
3995
3993
|
"input",
|
|
3996
|
-
|
|
3994
|
+
W(T({
|
|
3997
3995
|
style: Wu,
|
|
3998
3996
|
ref: c,
|
|
3999
3997
|
type: "file",
|
|
@@ -4037,14 +4035,14 @@ var Jt = { exports: {} }, Xu = Jt.exports, Rn;
|
|
|
4037
4035
|
function Ku() {
|
|
4038
4036
|
return Rn || (Rn = 1, (function(e, i) {
|
|
4039
4037
|
(function(t, r) {
|
|
4040
|
-
var o = "1.0.41", n = "", c = "?", g = "function", s = "undefined", u = "object", M = "string", l = "major", a = "model", d = "name", N = "type", y = "vendor", A = "version", p = "architecture", x = "console", E = "mobile", O = "tablet",
|
|
4041
|
-
var
|
|
4038
|
+
var o = "1.0.41", n = "", c = "?", g = "function", s = "undefined", u = "object", M = "string", l = "major", a = "model", d = "name", N = "type", y = "vendor", A = "version", p = "architecture", x = "console", E = "mobile", O = "tablet", b = "smarttv", H = "wearable", ie = "embedded", V = 500, K = "Amazon", U = "Apple", re = "ASUS", Y = "BlackBerry", q = "Browser", J = "Chrome", le = "Edge", fe = "Firefox", de = "Google", ve = "Honor", ce = "Huawei", G = "Lenovo", Me = "LG", je = "Microsoft", Oe = "Motorola", _e = "Nvidia", P = "OnePlus", oe = "Opera", nt = "OPPO", Xe = "Samsung", Ot = "Sharp", Ve = "Sony", dt = "Xiaomi", ot = "Zebra", Nt = "Facebook", Lt = "Chromium OS", It = "Mac OS", mt = " Browser", Et = function(L, F) {
|
|
4039
|
+
var Z = {};
|
|
4042
4040
|
for (var ne in L)
|
|
4043
|
-
F[ne] && F[ne].length % 2 === 0 ?
|
|
4044
|
-
return
|
|
4041
|
+
F[ne] && F[ne].length % 2 === 0 ? Z[ne] = F[ne].concat(L[ne]) : Z[ne] = L[ne];
|
|
4042
|
+
return Z;
|
|
4045
4043
|
}, Ke = function(L) {
|
|
4046
|
-
for (var F = {},
|
|
4047
|
-
F[L[
|
|
4044
|
+
for (var F = {}, Z = 0; Z < L.length; Z++)
|
|
4045
|
+
F[L[Z].toUpperCase()] = L[Z];
|
|
4048
4046
|
return F;
|
|
4049
4047
|
}, st = function(L, F) {
|
|
4050
4048
|
return typeof L === M ? qe(F).indexOf(qe(L)) !== -1 : !1;
|
|
@@ -4056,36 +4054,36 @@ function Ku() {
|
|
|
4056
4054
|
if (typeof L === M)
|
|
4057
4055
|
return L = L.replace(/^\s\s*/, n), typeof F === s ? L : L.substring(0, V);
|
|
4058
4056
|
}, f = function(L, F) {
|
|
4059
|
-
for (var
|
|
4060
|
-
var Dt = F[
|
|
4057
|
+
for (var Z = 0, ne, Se, ye, se, $, Le; Z < F.length && !$; ) {
|
|
4058
|
+
var Dt = F[Z], ft = F[Z + 1];
|
|
4061
4059
|
for (ne = Se = 0; ne < Dt.length && !$ && Dt[ne]; )
|
|
4062
4060
|
if ($ = Dt[ne++].exec(L), $)
|
|
4063
4061
|
for (ye = 0; ye < ft.length; ye++)
|
|
4064
4062
|
Le = $[++Se], se = ft[ye], typeof se === u && se.length > 0 ? se.length === 2 ? typeof se[1] == g ? this[se[0]] = se[1].call(this, Le) : this[se[0]] = se[1] : se.length === 3 ? typeof se[1] === g && !(se[1].exec && se[1].test) ? this[se[0]] = Le ? se[1].call(this, Le, se[2]) : r : this[se[0]] = Le ? Le.replace(se[1], se[2]) : r : se.length === 4 && (this[se[0]] = Le ? se[3].call(this, Le.replace(se[1], se[2])) : r) : this[se] = Le || r;
|
|
4065
|
-
|
|
4063
|
+
Z += 2;
|
|
4066
4064
|
}
|
|
4067
4065
|
}, h = function(L, F) {
|
|
4068
|
-
for (var
|
|
4069
|
-
if (typeof F[
|
|
4070
|
-
for (var ne = 0; ne < F[
|
|
4071
|
-
if (st(F[
|
|
4072
|
-
return
|
|
4073
|
-
} else if (st(F[
|
|
4074
|
-
return
|
|
4066
|
+
for (var Z in F)
|
|
4067
|
+
if (typeof F[Z] === u && F[Z].length > 0) {
|
|
4068
|
+
for (var ne = 0; ne < F[Z].length; ne++)
|
|
4069
|
+
if (st(F[Z][ne], L))
|
|
4070
|
+
return Z === c ? r : Z;
|
|
4071
|
+
} else if (st(F[Z], L))
|
|
4072
|
+
return Z === c ? r : Z;
|
|
4075
4073
|
return F.hasOwnProperty("*") ? F["*"] : L;
|
|
4076
|
-
}, m = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, v = { 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" }, S = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [A, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [A, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, A], [/opios[\/ ]+([\w\.]+)/i], [A, [d, oe + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [A, [d, oe + " GX"]], [/\bopr\/([\w\.]+)/i], [A, [d, oe]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [A, [d, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [A, [d, "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], [d, A], [/quark(?:pc)?\/([-\w\.]+)/i], [A, [d, "Quark"]], [/\bddg\/([\w\.]+)/i], [A, [d, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [A, [d, "UC" + q]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [A, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [A, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [A, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [A, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [A, [d, "Smart Lenovo " + q]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + q], A], [/\bfocus\/([\w\.]+)/i], [A, [d, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [A, [d, oe + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [A, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [A, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [A, [d, oe + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [A, [d, "MIUI" + mt]], [/fxios\/([\w\.-]+)/i], [A, [d, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [A, [d, "360"]], [/\b(qq)\/([\w\.]+)/i], [[d, /(.+)/, "$1Browser"], A], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1" + mt], A], [/samsungbrowser\/([\w\.]+)/i], [A, [d, Xe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [A, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], A], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [d, A], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [d], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [A, d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Nt], A], [/(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], [d, A], [/\bgsa\/([\w\.]+) .*safari\//i], [A, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [A, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [A, [d, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, J + " WebView"], A], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [A, [d, "Android " + q]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, A], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [A, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [A, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [A, h, m]], [/(webkit|khtml)\/([\w\.]+)/i], [d, A], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], A], [/(wolvic|librewolf)\/([\w\.]+)/i], [d, A], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [A, [d, fe + " 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], [d, [A, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [d, [A, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[p, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[p, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[p, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[p, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[p, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[p, /ower/, n, qe]], [/ sun4\w[;\)]/i], [[p, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[p, qe]]], 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], [a, [y, Xe], [N, O]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [y, Xe], [N, E]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [y, U], [N, E]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [y, U], [N, O]], [/(macintosh);/i], [a, [y, U]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [y, Ot], [N, E]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [y, ve], [N, O]], [/honor([-\w ]+)[;\)]/i], [a, [y, ve], [N, E]], [/\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], [a, [y, ce], [N, O]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [y, ce], [N, E]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [y, dt], [N, O]], [/\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], [[a, /_/g, " "], [y, dt], [N, E]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [y, nt], [N, E]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [y, h, { OnePlus: ["304", "403", "203"], "*": nt }], [N, O]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [y, "Vivo"], [N, E]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [y, "Realme"], [N, E]], [/\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], [a, [y, Oe], [N, E]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [y, Oe], [N, O]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [y, Me], [N, O]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [y, Me], [N, E]], [/(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], [a, [y, G], [N, O]], [/(nokia) (t[12][01])/i], [y, a, [N, O]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, E], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [y, de], [N, O]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [y, de], [N, E]], [/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], [a, [y, Ve], [N, E]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [y, Ve], [N, O]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [y, P], [N, E]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [y, K], [N, O]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [y, K], [N, E]], [/(playbook);[-\w\),; ]+(rim)/i], [a, y, [N, O]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [y, Y], [N, E]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [y, re], [N, O]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [y, re], [N, E]], [/(nexus 9)/i], [a, [y, "HTC"], [N, O]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [a, /_/g, " "], [N, E]], [/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], [a, [y, "TCL"], [N, O]], [/(itel) ((\w+))/i], [[y, qe], a, [N, h, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [y, "Acer"], [N, O]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [y, "Meizu"], [N, E]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [y, "Ulefone"], [N, E]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [y, "Energizer"], [N, E]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [y, "Cat"], [N, E]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [y, "Smartfren"], [N, E]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [y, "Nothing"], [N, E]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [y, "Archos"], [N, O]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [y, "Archos"], [N, E]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, a, [N, O]], [/(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], [y, a, [N, E]], [/(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], [y, a, [N, O]], [/(surface duo)/i], [a, [y, je], [N, O]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [y, "Fairphone"], [N, E]], [/(u304aa)/i], [a, [y, "AT&T"], [N, E]], [/\bsie-(\w*)/i], [a, [y, "Siemens"], [N, E]], [/\b(rct\w+) b/i], [a, [y, "RCA"], [N, O]], [/\b(venue[\d ]{2,7}) b/i], [a, [y, "Dell"], [N, O]], [/\b(q(?:mv|ta)\w+) b/i], [a, [y, "Verizon"], [N, O]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [y, "Barnes & Noble"], [N, O]], [/\b(tm\d{3}\w+) b/i], [a, [y, "NuVision"], [N, O]], [/\b(k88) b/i], [a, [y, "ZTE"], [N, O]], [/\b(nx\d{3}j) b/i], [a, [y, "ZTE"], [N, E]], [/\b(gen\d{3}) b.+49h/i], [a, [y, "Swiss"], [N, E]], [/\b(zur\d{3}) b/i], [a, [y, "Swiss"], [N, O]], [/\b((zeki)?tb.*\b) b/i], [a, [y, "Zeki"], [N, O]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], a, [N, O]], [/\b(ns-?\w{0,9}) b/i], [a, [y, "Insignia"], [N, O]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [y, "NextBook"], [N, O]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], a, [N, E]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], a, [N, E]], [/\b(ph-1) /i], [a, [y, "Essential"], [N, E]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [y, "Envizen"], [N, O]], [/\b(trio[-\w\. ]+) b/i], [a, [y, "MachSpeed"], [N, O]], [/\btu_(1491) b/i], [a, [y, "Rotor"], [N, O]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [y, be], [N, O]], [/(sprint) (\w+)/i], [y, a, [N, E]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [y, je], [N, E]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [y, ot], [N, O]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [y, ot], [N, E]], [/smart-tv.+(samsung)/i], [y, [N, _]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [y, Xe], [N, _]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, Me], [N, _]], [/(apple) ?tv/i], [y, [a, U + " TV"], [N, _]], [/crkey/i], [[a, J + "cast"], [y, de], [N, _]], [/droid.+aft(\w+)( bui|\))/i], [a, [y, K], [N, _]], [/(shield \w+ tv)/i], [a, [y, be], [N, _]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [y, Ot], [N, _]], [/(bravia[\w ]+)( bui|\))/i], [a, [y, Ve], [N, _]], [/(mi(tv|box)-?\w+) bui/i], [a, [y, dt], [N, _]], [/Hbbtv.*(technisat) (.*);/i], [y, a, [N, _]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, at], [a, at], [N, _]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, _]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, _]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, a, [N, x]], [/droid.+; (shield)( bui|\))/i], [a, [y, be], [N, x]], [/(playstation \w+)/i], [a, [y, Ve], [N, x]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [y, je], [N, x]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [y, Xe], [N, H]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, a, [N, H]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [y, nt], [N, H]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [y, U], [N, H]], [/(opwwe\d{3})/i], [a, [y, P], [N, H]], [/(moto 360)/i], [a, [y, Oe], [N, H]], [/(smartwatch 3)/i], [a, [y, Ve], [N, H]], [/(g watch r)/i], [a, [y, Me], [N, H]], [/droid.+; (wt63?0{2,3})\)/i], [a, [y, ot], [N, H]], [/droid.+; (glass) \d/i], [a, [y, de], [N, H]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, a, [N, H]], [/; (quest( \d| pro)?)/i], [a, [y, Nt], [N, H]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [N, ie]], [/(aeobc)\b/i], [a, [y, K], [N, ie]], [/(homepod).+mac os/i], [a, [y, U], [N, ie]], [/windows iot/i], [[N, ie]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, E]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, O]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, O]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, E]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [A, [d, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [d, A], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [A, [d, "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], [d, A], [/ladybird\//i], [[d, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [A, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, A], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [d, [A, h, v]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[A, h, v], [d, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[A, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, It], [A, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [A, d], [/(ubuntu) ([\w\.]+) like android/i], [[d, /(.+)/, "$1 Touch"], A], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [d, A], [/\(bb(10);/i], [A, [d, Y]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [A, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [A, [d, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [A, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [A, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [A, [d, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, Lt], A], [/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], [d, A], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], A], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, A]] }, b = function(L, F) {
|
|
4077
|
-
if (typeof L === u && (F = L, L = r), !(this instanceof
|
|
4078
|
-
return new
|
|
4079
|
-
var
|
|
4074
|
+
}, m = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, v = { 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" }, S = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [A, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [A, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, A], [/opios[\/ ]+([\w\.]+)/i], [A, [d, oe + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [A, [d, oe + " GX"]], [/\bopr\/([\w\.]+)/i], [A, [d, oe]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [A, [d, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [A, [d, "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], [d, A], [/quark(?:pc)?\/([-\w\.]+)/i], [A, [d, "Quark"]], [/\bddg\/([\w\.]+)/i], [A, [d, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [A, [d, "UC" + q]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [A, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [A, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [A, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [A, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [A, [d, "Smart Lenovo " + q]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + q], A], [/\bfocus\/([\w\.]+)/i], [A, [d, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [A, [d, oe + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [A, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [A, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [A, [d, oe + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [A, [d, "MIUI" + mt]], [/fxios\/([\w\.-]+)/i], [A, [d, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [A, [d, "360"]], [/\b(qq)\/([\w\.]+)/i], [[d, /(.+)/, "$1Browser"], A], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1" + mt], A], [/samsungbrowser\/([\w\.]+)/i], [A, [d, Xe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [A, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], A], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [d, A], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [d], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [A, d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Nt], A], [/(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], [d, A], [/\bgsa\/([\w\.]+) .*safari\//i], [A, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [A, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [A, [d, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, J + " WebView"], A], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [A, [d, "Android " + q]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, A], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [A, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [A, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [A, h, m]], [/(webkit|khtml)\/([\w\.]+)/i], [d, A], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], A], [/(wolvic|librewolf)\/([\w\.]+)/i], [d, A], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [A, [d, fe + " 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], [d, [A, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [d, [A, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[p, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[p, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[p, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[p, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[p, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[p, /ower/, n, qe]], [/ sun4\w[;\)]/i], [[p, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[p, qe]]], 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], [a, [y, Xe], [N, O]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [y, Xe], [N, E]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [y, U], [N, E]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [y, U], [N, O]], [/(macintosh);/i], [a, [y, U]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [y, Ot], [N, E]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [y, ve], [N, O]], [/honor([-\w ]+)[;\)]/i], [a, [y, ve], [N, E]], [/\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], [a, [y, ce], [N, O]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [y, ce], [N, E]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [y, dt], [N, O]], [/\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], [[a, /_/g, " "], [y, dt], [N, E]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [y, nt], [N, E]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [y, h, { OnePlus: ["304", "403", "203"], "*": nt }], [N, O]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [y, "Vivo"], [N, E]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [y, "Realme"], [N, E]], [/\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], [a, [y, Oe], [N, E]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [y, Oe], [N, O]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [y, Me], [N, O]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [y, Me], [N, E]], [/(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], [a, [y, G], [N, O]], [/(nokia) (t[12][01])/i], [y, a, [N, O]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, E], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [y, de], [N, O]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [y, de], [N, E]], [/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], [a, [y, Ve], [N, E]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [y, Ve], [N, O]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [y, P], [N, E]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [y, K], [N, O]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [y, K], [N, E]], [/(playbook);[-\w\),; ]+(rim)/i], [a, y, [N, O]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [y, Y], [N, E]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [y, re], [N, O]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [y, re], [N, E]], [/(nexus 9)/i], [a, [y, "HTC"], [N, O]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [a, /_/g, " "], [N, E]], [/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], [a, [y, "TCL"], [N, O]], [/(itel) ((\w+))/i], [[y, qe], a, [N, h, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [y, "Acer"], [N, O]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [y, "Meizu"], [N, E]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [y, "Ulefone"], [N, E]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [y, "Energizer"], [N, E]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [y, "Cat"], [N, E]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [y, "Smartfren"], [N, E]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [y, "Nothing"], [N, E]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [y, "Archos"], [N, O]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [y, "Archos"], [N, E]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, a, [N, O]], [/(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], [y, a, [N, E]], [/(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], [y, a, [N, O]], [/(surface duo)/i], [a, [y, je], [N, O]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [y, "Fairphone"], [N, E]], [/(u304aa)/i], [a, [y, "AT&T"], [N, E]], [/\bsie-(\w*)/i], [a, [y, "Siemens"], [N, E]], [/\b(rct\w+) b/i], [a, [y, "RCA"], [N, O]], [/\b(venue[\d ]{2,7}) b/i], [a, [y, "Dell"], [N, O]], [/\b(q(?:mv|ta)\w+) b/i], [a, [y, "Verizon"], [N, O]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [y, "Barnes & Noble"], [N, O]], [/\b(tm\d{3}\w+) b/i], [a, [y, "NuVision"], [N, O]], [/\b(k88) b/i], [a, [y, "ZTE"], [N, O]], [/\b(nx\d{3}j) b/i], [a, [y, "ZTE"], [N, E]], [/\b(gen\d{3}) b.+49h/i], [a, [y, "Swiss"], [N, E]], [/\b(zur\d{3}) b/i], [a, [y, "Swiss"], [N, O]], [/\b((zeki)?tb.*\b) b/i], [a, [y, "Zeki"], [N, O]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], a, [N, O]], [/\b(ns-?\w{0,9}) b/i], [a, [y, "Insignia"], [N, O]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [y, "NextBook"], [N, O]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], a, [N, E]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], a, [N, E]], [/\b(ph-1) /i], [a, [y, "Essential"], [N, E]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [y, "Envizen"], [N, O]], [/\b(trio[-\w\. ]+) b/i], [a, [y, "MachSpeed"], [N, O]], [/\btu_(1491) b/i], [a, [y, "Rotor"], [N, O]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [y, _e], [N, O]], [/(sprint) (\w+)/i], [y, a, [N, E]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [y, je], [N, E]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [y, ot], [N, O]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [y, ot], [N, E]], [/smart-tv.+(samsung)/i], [y, [N, b]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [y, Xe], [N, b]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, Me], [N, b]], [/(apple) ?tv/i], [y, [a, U + " TV"], [N, b]], [/crkey/i], [[a, J + "cast"], [y, de], [N, b]], [/droid.+aft(\w+)( bui|\))/i], [a, [y, K], [N, b]], [/(shield \w+ tv)/i], [a, [y, _e], [N, b]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [y, Ot], [N, b]], [/(bravia[\w ]+)( bui|\))/i], [a, [y, Ve], [N, b]], [/(mi(tv|box)-?\w+) bui/i], [a, [y, dt], [N, b]], [/Hbbtv.*(technisat) (.*);/i], [y, a, [N, b]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, at], [a, at], [N, b]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, b]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, b]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, a, [N, x]], [/droid.+; (shield)( bui|\))/i], [a, [y, _e], [N, x]], [/(playstation \w+)/i], [a, [y, Ve], [N, x]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [y, je], [N, x]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [y, Xe], [N, H]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, a, [N, H]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [y, nt], [N, H]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [y, U], [N, H]], [/(opwwe\d{3})/i], [a, [y, P], [N, H]], [/(moto 360)/i], [a, [y, Oe], [N, H]], [/(smartwatch 3)/i], [a, [y, Ve], [N, H]], [/(g watch r)/i], [a, [y, Me], [N, H]], [/droid.+; (wt63?0{2,3})\)/i], [a, [y, ot], [N, H]], [/droid.+; (glass) \d/i], [a, [y, de], [N, H]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, a, [N, H]], [/; (quest( \d| pro)?)/i], [a, [y, Nt], [N, H]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [N, ie]], [/(aeobc)\b/i], [a, [y, K], [N, ie]], [/(homepod).+mac os/i], [a, [y, U], [N, ie]], [/windows iot/i], [[N, ie]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, E]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, O]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, O]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, E]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [A, [d, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [d, A], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [A, [d, "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], [d, A], [/ladybird\//i], [[d, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [A, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, A], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [d, [A, h, v]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[A, h, v], [d, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[A, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, It], [A, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [A, d], [/(ubuntu) ([\w\.]+) like android/i], [[d, /(.+)/, "$1 Touch"], A], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [d, A], [/\(bb(10);/i], [A, [d, Y]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [A, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [A, [d, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [A, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [A, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [A, [d, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, Lt], A], [/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], [d, A], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], A], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, A]] }, _ = function(L, F) {
|
|
4075
|
+
if (typeof L === u && (F = L, L = r), !(this instanceof _))
|
|
4076
|
+
return new _(L, F).getResult();
|
|
4077
|
+
var Z = typeof t !== s && t.navigator ? t.navigator : r, ne = L || (Z && Z.userAgent ? Z.userAgent : n), Se = Z && Z.userAgentData ? Z.userAgentData : r, ye = F ? Et(S, F) : S, se = Z && Z.userAgent == ne;
|
|
4080
4078
|
return this.getBrowser = function() {
|
|
4081
4079
|
var $ = {};
|
|
4082
|
-
return $[d] = r, $[A] = r, f.call($, ne, ye.browser), $[l] = Zt($[A]), se &&
|
|
4080
|
+
return $[d] = r, $[A] = r, f.call($, ne, ye.browser), $[l] = Zt($[A]), se && Z && Z.brave && typeof Z.brave.isBrave == g && ($[d] = "Brave"), $;
|
|
4083
4081
|
}, this.getCPU = function() {
|
|
4084
4082
|
var $ = {};
|
|
4085
4083
|
return $[p] = r, f.call($, ne, ye.cpu), $;
|
|
4086
4084
|
}, this.getDevice = function() {
|
|
4087
4085
|
var $ = {};
|
|
4088
|
-
return $[y] = r, $[a] = r, $[N] = r, f.call($, ne, ye.device), se && !$[N] && Se && Se.mobile && ($[N] = E), se && $[a] == "Macintosh" &&
|
|
4086
|
+
return $[y] = r, $[a] = r, $[N] = r, f.call($, ne, ye.device), se && !$[N] && Se && Se.mobile && ($[N] = E), se && $[a] == "Macintosh" && Z && typeof Z.standalone !== s && Z.maxTouchPoints && Z.maxTouchPoints > 2 && ($[a] = "iPad", $[N] = O), $;
|
|
4089
4087
|
}, this.getEngine = function() {
|
|
4090
4088
|
var $ = {};
|
|
4091
4089
|
return $[d] = r, $[A] = r, f.call($, ne, ye.engine), $;
|
|
@@ -4100,17 +4098,17 @@ function Ku() {
|
|
|
4100
4098
|
return ne = typeof $ === M && $.length > V ? at($, V) : $, this;
|
|
4101
4099
|
}, this.setUA(ne), this;
|
|
4102
4100
|
};
|
|
4103
|
-
|
|
4101
|
+
_.VERSION = o, _.BROWSER = Ke([d, A, l]), _.CPU = Ke([p]), _.DEVICE = Ke([a, y, N, x, E, b, O, H, ie]), _.ENGINE = _.OS = Ke([d, A]), e.exports && (i = e.exports = _), i.UAParser = _;
|
|
4104
4102
|
var R = typeof t !== s && (t.jQuery || t.Zepto);
|
|
4105
4103
|
if (R && !R.ua) {
|
|
4106
|
-
var ee = new
|
|
4104
|
+
var ee = new _();
|
|
4107
4105
|
R.ua = ee.getResult(), R.ua.get = function() {
|
|
4108
4106
|
return ee.getUA();
|
|
4109
4107
|
}, R.ua.set = function(L) {
|
|
4110
4108
|
ee.setUA(L);
|
|
4111
4109
|
var F = ee.getResult();
|
|
4112
|
-
for (var
|
|
4113
|
-
R.ua[
|
|
4110
|
+
for (var Z in F)
|
|
4111
|
+
R.ua[Z] = F[Z];
|
|
4114
4112
|
};
|
|
4115
4113
|
}
|
|
4116
4114
|
})(typeof window == "object" ? window : Xu);
|
|
@@ -4204,15 +4202,15 @@ function qu() {
|
|
|
4204
4202
|
writable: !0
|
|
4205
4203
|
}) : z[I] = j, z;
|
|
4206
4204
|
}
|
|
4207
|
-
function
|
|
4208
|
-
return
|
|
4205
|
+
function b() {
|
|
4206
|
+
return b = Object.assign || function(z) {
|
|
4209
4207
|
for (var I = 1; I < arguments.length; I++) {
|
|
4210
4208
|
var j = arguments[I];
|
|
4211
4209
|
for (var w in j)
|
|
4212
4210
|
Object.prototype.hasOwnProperty.call(j, w) && (z[w] = j[w]);
|
|
4213
4211
|
}
|
|
4214
4212
|
return z;
|
|
4215
|
-
},
|
|
4213
|
+
}, b.apply(this, arguments);
|
|
4216
4214
|
}
|
|
4217
4215
|
function H(z, I) {
|
|
4218
4216
|
if (typeof I != "function" && I !== null)
|
|
@@ -4374,7 +4372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4374
4372
|
default:
|
|
4375
4373
|
return je;
|
|
4376
4374
|
}
|
|
4377
|
-
},
|
|
4375
|
+
}, _e = function(I) {
|
|
4378
4376
|
return l(I);
|
|
4379
4377
|
}, P = function(I) {
|
|
4380
4378
|
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
@@ -4497,7 +4495,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4497
4495
|
}, S = function(I) {
|
|
4498
4496
|
var j = I.name;
|
|
4499
4497
|
return j === Me.Windows;
|
|
4500
|
-
},
|
|
4498
|
+
}, _ = function(I) {
|
|
4501
4499
|
var j = I.name;
|
|
4502
4500
|
return j === Me.MAC_OS;
|
|
4503
4501
|
}, R = function(I) {
|
|
@@ -4512,7 +4510,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4512
4510
|
}, F = function(I) {
|
|
4513
4511
|
var j = I.name;
|
|
4514
4512
|
return P(j);
|
|
4515
|
-
},
|
|
4513
|
+
}, Z = function(I) {
|
|
4516
4514
|
var j = I.name;
|
|
4517
4515
|
return j === G.Chrome;
|
|
4518
4516
|
}, ne = function(I) {
|
|
@@ -4545,10 +4543,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4545
4543
|
}, Cr = function(I) {
|
|
4546
4544
|
var j = I.name;
|
|
4547
4545
|
return j === G.SamsungBrowser;
|
|
4548
|
-
},
|
|
4546
|
+
}, br = function(I) {
|
|
4549
4547
|
var j = I.version;
|
|
4550
4548
|
return P(j);
|
|
4551
|
-
},
|
|
4549
|
+
}, _r = function(I) {
|
|
4552
4550
|
var j = I.major;
|
|
4553
4551
|
return P(j);
|
|
4554
4552
|
}, Sr = function(I) {
|
|
@@ -4594,15 +4592,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4594
4592
|
isAndroid: v(C),
|
|
4595
4593
|
isWinPhone: R(C),
|
|
4596
4594
|
isIOS: ee(C) || et(),
|
|
4597
|
-
isChrome:
|
|
4595
|
+
isChrome: Z(w),
|
|
4598
4596
|
isFirefox: ne(w),
|
|
4599
4597
|
isSafari: $(w),
|
|
4600
4598
|
isOpera: Dt(w),
|
|
4601
4599
|
isIE: ft(w),
|
|
4602
4600
|
osVersion: L(C),
|
|
4603
4601
|
osName: F(C),
|
|
4604
|
-
fullBrowserVersion:
|
|
4605
|
-
browserVersion:
|
|
4602
|
+
fullBrowserVersion: br(w),
|
|
4603
|
+
browserVersion: _r(w),
|
|
4606
4604
|
browserName: Sr(w),
|
|
4607
4605
|
mobileVendor: f(j),
|
|
4608
4606
|
mobileModel: h(j),
|
|
@@ -4620,12 +4618,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4620
4618
|
isEdgeChromium: kt(we),
|
|
4621
4619
|
isLegacyEdge: ye(w) && !kt(we),
|
|
4622
4620
|
isWindows: S(C),
|
|
4623
|
-
isMacOs:
|
|
4621
|
+
isMacOs: _(C),
|
|
4624
4622
|
isMIUI: xr(w),
|
|
4625
4623
|
isSamsungBrowser: Cr(w)
|
|
4626
4624
|
};
|
|
4627
4625
|
}
|
|
4628
|
-
var Fr = Ke(g), Br = Zt(g), Vr = qe(g), us = at(g), ls = Le(n) || et(), cs = Se(n), Di = Et(g) || et(), Wr = It(g), Zr = mt(g) || et(), Hr = st(g), Ms = st(g), Gr = v(u), $r = R(u), Jr = ee(u) || et(), gs =
|
|
4626
|
+
var Fr = Ke(g), Br = Zt(g), Vr = qe(g), us = at(g), ls = Le(n) || et(), cs = Se(n), Di = Et(g) || et(), Wr = It(g), Zr = mt(g) || et(), Hr = st(g), Ms = st(g), Gr = v(u), $r = R(u), Jr = ee(u) || et(), gs = Z(n), ds = ne(n), Ns = $(n), Is = Dt(n), Xr = ft(n), Ds = L(u), fs = F(u), ys = br(n), js = _r(n), As = Sr(n), Ts = f(g), hs = h(g), zs = vr(s), Os = Lr(s), ms = Yr(M), Es = ye(n) || kt(M), ws = se(n), ps = m(g), xs = Ur(), Cs = et(), bs = Qr(), _s = Rr(), Ss = kr(), vs = kt(M), Ls = ye(n) && !kt(M), ks = S(u), Us = _(u), Qs = xr(n), Rs = Cr(n), Ys = function(I) {
|
|
4629
4627
|
if (!I || typeof I != "string") {
|
|
4630
4628
|
console.error("No valid user agent string was provided");
|
|
4631
4629
|
return;
|
|
@@ -4722,7 +4720,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4722
4720
|
}, {
|
|
4723
4721
|
key: "render",
|
|
4724
4722
|
value: function() {
|
|
4725
|
-
return t.createElement(z,
|
|
4723
|
+
return t.createElement(z, b({}, this.props, {
|
|
4726
4724
|
isLandscape: this.state.isLandscape,
|
|
4727
4725
|
isPortrait: this.state.isPortrait
|
|
4728
4726
|
}));
|
|
@@ -4760,7 +4758,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4760
4758
|
var I = z || window.navigator.userAgent, j = Kr(I), w = Pr(j);
|
|
4761
4759
|
return [w, j];
|
|
4762
4760
|
}
|
|
4763
|
-
return Q.AndroidView = Ps, Q.BrowserTypes = G, Q.BrowserView = Fs, Q.ConsoleView = Js, Q.CustomView = Ks, Q.IEView = Bs, Q.IOSView = Vs, Q.MobileOnlyView = Gs, Q.MobileView = Ws, Q.OsTypes = Me, Q.SmartTVView = $s, Q.TabletView = Zs, Q.WearableView = Xs, Q.WinPhoneView = Hs, Q.browserName = As, Q.browserVersion = js, Q.deviceDetect = Lt, Q.deviceType = ps, Q.engineName = zs, Q.engineVersion = Os, Q.fullBrowserVersion = ys, Q.getSelectorsByUserAgent = Ys, Q.getUA = ms, Q.isAndroid = Gr, Q.isBrowser = Hr, Q.isChrome = gs, Q.isChromium = cs, Q.isConsole = Br, Q.isDesktop = Ms, Q.isEdge = Es, Q.isEdgeChromium = vs, Q.isElectron = Ss, Q.isEmbedded = us, Q.isFirefox = ds, Q.isIE = Xr, Q.isIOS = Jr, Q.isIOS13 = xs, Q.isIPad13 = Cs, Q.isIPhone13 =
|
|
4761
|
+
return Q.AndroidView = Ps, Q.BrowserTypes = G, Q.BrowserView = Fs, Q.ConsoleView = Js, Q.CustomView = Ks, Q.IEView = Bs, Q.IOSView = Vs, Q.MobileOnlyView = Gs, Q.MobileView = Ws, Q.OsTypes = Me, Q.SmartTVView = $s, Q.TabletView = Zs, Q.WearableView = Xs, Q.WinPhoneView = Hs, Q.browserName = As, Q.browserVersion = js, Q.deviceDetect = Lt, Q.deviceType = ps, Q.engineName = zs, Q.engineVersion = Os, Q.fullBrowserVersion = ys, Q.getSelectorsByUserAgent = Ys, Q.getUA = ms, Q.isAndroid = Gr, Q.isBrowser = Hr, Q.isChrome = gs, Q.isChromium = cs, Q.isConsole = Br, Q.isDesktop = Ms, Q.isEdge = Es, Q.isEdgeChromium = vs, Q.isElectron = Ss, Q.isEmbedded = us, Q.isFirefox = ds, Q.isIE = Xr, Q.isIOS = Jr, Q.isIOS13 = xs, Q.isIPad13 = Cs, Q.isIPhone13 = bs, Q.isIPod13 = _s, Q.isLegacyEdge = Ls, Q.isMIUI = Qs, Q.isMacOs = Us, Q.isMobile = Di, Q.isMobileOnly = Wr, Q.isMobileSafari = ls, Q.isOpera = Is, Q.isSafari = Ns, Q.isSamsungBrowser = Rs, Q.isSmartTV = Fr, Q.isTablet = Zr, Q.isWearable = Vr, Q.isWinPhone = $r, Q.isWindows = ks, Q.isYandex = ws, Q.mobileModel = hs, Q.mobileVendor = Ts, Q.osName = fs, Q.osVersion = Ds, Q.parseUserAgent = a, Q.setUserAgent = _e, Q.useDeviceData = Kr, Q.useDeviceSelectors = ta, Q.useMobileOrientation = ea, Q.withOrientationChange = qs, Q;
|
|
4764
4762
|
}
|
|
4765
4763
|
var wt = qu();
|
|
4766
4764
|
const el = {
|
|
@@ -4834,16 +4832,16 @@ const el = {
|
|
|
4834
4832
|
files: []
|
|
4835
4833
|
});
|
|
4836
4834
|
});
|
|
4837
|
-
}, []), /* @__PURE__ */ D(gt, { header: e, footer: i, backgroundColor: t, children: /* @__PURE__ */ D(
|
|
4835
|
+
}, []), /* @__PURE__ */ D(gt, { header: e, footer: i, backgroundColor: t, children: /* @__PURE__ */ D(be, { children: /* @__PURE__ */ D(
|
|
4838
4836
|
"div",
|
|
4839
4837
|
{
|
|
4840
|
-
style:
|
|
4838
|
+
style: W(T({}, il), {
|
|
4841
4839
|
justifyContent: "center"
|
|
4842
4840
|
}),
|
|
4843
4841
|
children: [
|
|
4844
4842
|
/* @__PURE__ */ D(
|
|
4845
4843
|
"input",
|
|
4846
|
-
|
|
4844
|
+
W(T({
|
|
4847
4845
|
style: el,
|
|
4848
4846
|
ref: c,
|
|
4849
4847
|
type: "file",
|
|
@@ -5011,7 +5009,7 @@ const el = {
|
|
|
5011
5009
|
enableHighAccuracy: !0,
|
|
5012
5010
|
timeout: typeof u == "number" && u > 0 ? u * 1e3 : 15e3,
|
|
5013
5011
|
maximumAge: 6e4
|
|
5014
|
-
}, O = g == null ? void 0 : g.find((U) => U.reason ===
|
|
5012
|
+
}, O = g == null ? void 0 : g.find((U) => U.reason === ba.SYSTEM_RESTRICTED);
|
|
5015
5013
|
ht(() => {
|
|
5016
5014
|
wt.isSafari || s || a == null || a(!0);
|
|
5017
5015
|
}, []), Be(() => {
|
|
@@ -5054,7 +5052,7 @@ const el = {
|
|
|
5054
5052
|
wt.isSafari || (U = !1, re && (re.onchange = null));
|
|
5055
5053
|
};
|
|
5056
5054
|
}, []);
|
|
5057
|
-
const
|
|
5055
|
+
const b = (U) => De(null, null, function* () {
|
|
5058
5056
|
U.preventDefault();
|
|
5059
5057
|
const re = yield Bi();
|
|
5060
5058
|
if (re === "denied") {
|
|
@@ -5095,7 +5093,7 @@ const el = {
|
|
|
5095
5093
|
T(T({
|
|
5096
5094
|
dataTestId: "question-button"
|
|
5097
5095
|
}, U), U.type === "FORM" ? {
|
|
5098
|
-
onClick: wt.isSafari ? H :
|
|
5096
|
+
onClick: wt.isSafari ? H : b
|
|
5099
5097
|
} : {})
|
|
5100
5098
|
) }, re))
|
|
5101
5099
|
}
|
|
@@ -5111,7 +5109,7 @@ const el = {
|
|
|
5111
5109
|
children: /* @__PURE__ */ D(
|
|
5112
5110
|
"div",
|
|
5113
5111
|
{
|
|
5114
|
-
style:
|
|
5112
|
+
style: W(T({}, Ml), {
|
|
5115
5113
|
borderRadius: (O == null ? void 0 : O.cornerRadius) || "27px",
|
|
5116
5114
|
backgroundColor: (O == null ? void 0 : O.backgroundColor) || "#ffffff"
|
|
5117
5115
|
}),
|
|
@@ -5210,7 +5208,7 @@ const el = {
|
|
|
5210
5208
|
p(!1);
|
|
5211
5209
|
}, O = () => {
|
|
5212
5210
|
g((V) => V + 1);
|
|
5213
|
-
},
|
|
5211
|
+
}, b = () => {
|
|
5214
5212
|
const V = JSON.parse(JSON.stringify(t));
|
|
5215
5213
|
vi(V), y(V, li.DATA);
|
|
5216
5214
|
}, H = { width: "100%", height: "100%" };
|
|
@@ -5218,7 +5216,7 @@ const el = {
|
|
|
5218
5216
|
if (l && (ie = /* @__PURE__ */ D(
|
|
5219
5217
|
"img",
|
|
5220
5218
|
{
|
|
5221
|
-
style:
|
|
5219
|
+
style: W(T({}, H), {
|
|
5222
5220
|
objectFit: ni(a),
|
|
5223
5221
|
borderRadius: d,
|
|
5224
5222
|
backgroundColor: X(N) || "transparent",
|
|
@@ -5240,11 +5238,11 @@ const el = {
|
|
|
5240
5238
|
}
|
|
5241
5239
|
);
|
|
5242
5240
|
}
|
|
5243
|
-
return M && (ie = /* @__PURE__ */ D(
|
|
5241
|
+
return M && (ie = /* @__PURE__ */ D(be, { children: [
|
|
5244
5242
|
x && /* @__PURE__ */ D(
|
|
5245
5243
|
"div",
|
|
5246
5244
|
{
|
|
5247
|
-
style:
|
|
5245
|
+
style: W(T({}, H), {
|
|
5248
5246
|
backgroundColor: "#e0e0e0",
|
|
5249
5247
|
borderRadius: d
|
|
5250
5248
|
})
|
|
@@ -5253,7 +5251,7 @@ const el = {
|
|
|
5253
5251
|
/* @__PURE__ */ D(
|
|
5254
5252
|
"img",
|
|
5255
5253
|
{
|
|
5256
|
-
style:
|
|
5254
|
+
style: W(T({}, H), {
|
|
5257
5255
|
objectFit: ni(a),
|
|
5258
5256
|
borderRadius: d,
|
|
5259
5257
|
backgroundColor: X(N) || "transparent",
|
|
@@ -5279,7 +5277,7 @@ const el = {
|
|
|
5279
5277
|
display: "inline-flex",
|
|
5280
5278
|
cursor: "pointer"
|
|
5281
5279
|
}, Mi(r)),
|
|
5282
|
-
onClick:
|
|
5280
|
+
onClick: b,
|
|
5283
5281
|
children: ie
|
|
5284
5282
|
}
|
|
5285
5283
|
);
|
|
@@ -5469,7 +5467,7 @@ const Oi = ({
|
|
|
5469
5467
|
},
|
|
5470
5468
|
children: /* @__PURE__ */ D(
|
|
5471
5469
|
Oi,
|
|
5472
|
-
|
|
5470
|
+
W(T({}, i), {
|
|
5473
5471
|
backgroundColor: "transparent"
|
|
5474
5472
|
})
|
|
5475
5473
|
)
|
|
@@ -5506,19 +5504,19 @@ const Oi = ({
|
|
|
5506
5504
|
}
|
|
5507
5505
|
return null;
|
|
5508
5506
|
};
|
|
5509
|
-
var El = Object.defineProperty,
|
|
5507
|
+
var El = Object.defineProperty, _i = Object.getOwnPropertySymbols, Jo = Object.prototype.hasOwnProperty, Xo = Object.prototype.propertyIsEnumerable, Pn = (e, i, t) => i in e ? El(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, ir = (e, i) => {
|
|
5510
5508
|
for (var t in i || (i = {}))
|
|
5511
5509
|
Jo.call(i, t) && Pn(e, t, i[t]);
|
|
5512
|
-
if (
|
|
5513
|
-
for (var t of
|
|
5510
|
+
if (_i)
|
|
5511
|
+
for (var t of _i(i))
|
|
5514
5512
|
Xo.call(i, t) && Pn(e, t, i[t]);
|
|
5515
5513
|
return e;
|
|
5516
5514
|
}, rr = (e, i) => {
|
|
5517
5515
|
var t = {};
|
|
5518
5516
|
for (var r in e)
|
|
5519
5517
|
Jo.call(e, r) && i.indexOf(r) < 0 && (t[r] = e[r]);
|
|
5520
|
-
if (e != null &&
|
|
5521
|
-
for (var r of
|
|
5518
|
+
if (e != null && _i)
|
|
5519
|
+
for (var r of _i(e))
|
|
5522
5520
|
i.indexOf(r) < 0 && Xo.call(e, r) && (t[r] = e[r]);
|
|
5523
5521
|
return t;
|
|
5524
5522
|
};
|
|
@@ -5702,15 +5700,15 @@ var St;
|
|
|
5702
5700
|
let A = [];
|
|
5703
5701
|
const p = ue.reedSolomonComputeDivisor(a);
|
|
5704
5702
|
for (let E = 0, O = 0; E < l; E++) {
|
|
5705
|
-
let
|
|
5706
|
-
O +=
|
|
5707
|
-
const H = ue.reedSolomonComputeRemainder(
|
|
5708
|
-
E < N &&
|
|
5703
|
+
let b = s.slice(O, O + y - a + (E < N ? 0 : 1));
|
|
5704
|
+
O += b.length;
|
|
5705
|
+
const H = ue.reedSolomonComputeRemainder(b, p);
|
|
5706
|
+
E < N && b.push(0), A.push(b.concat(H));
|
|
5709
5707
|
}
|
|
5710
5708
|
let x = [];
|
|
5711
5709
|
for (let E = 0; E < A[0].length; E++)
|
|
5712
|
-
A.forEach((O,
|
|
5713
|
-
(E != y - a ||
|
|
5710
|
+
A.forEach((O, b) => {
|
|
5711
|
+
(E != y - a || b >= N) && x.push(O[E]);
|
|
5714
5712
|
});
|
|
5715
5713
|
return o(x.length == d), x;
|
|
5716
5714
|
}
|
|
@@ -6090,7 +6088,7 @@ function ns(e, i = 0) {
|
|
|
6090
6088
|
function os(e, i) {
|
|
6091
6089
|
return e.slice().map((t, r) => r < i.y || r >= i.y + i.h ? t : t.map((o, n) => n < i.x || n >= i.x + i.w ? o : !1));
|
|
6092
6090
|
}
|
|
6093
|
-
function
|
|
6091
|
+
function bl(e, i, t, r) {
|
|
6094
6092
|
if (r == null)
|
|
6095
6093
|
return null;
|
|
6096
6094
|
const o = e.length + t * 2, n = Math.floor(i * Cl), c = o / i, g = (r.width || n) * c, s = (r.height || n) * c, u = r.x == null ? e.length / 2 - g / 2 : r.x * c, M = r.y == null ? e.length / 2 - s / 2 : r.y * c, l = r.opacity == null ? 1 : r.opacity;
|
|
@@ -6102,7 +6100,7 @@ function _l(e, i, t, r) {
|
|
|
6102
6100
|
const d = r.crossOrigin;
|
|
6103
6101
|
return { x: u, y: M, h: s, w: g, excavation: a, opacity: l, crossOrigin: d };
|
|
6104
6102
|
}
|
|
6105
|
-
function
|
|
6103
|
+
function _l(e, i) {
|
|
6106
6104
|
return i != null ? Math.max(Math.floor(i), 0) : e ? pl : xl;
|
|
6107
6105
|
}
|
|
6108
6106
|
function ss({
|
|
@@ -6128,7 +6126,7 @@ function ss({
|
|
|
6128
6126
|
}, [e, i, t, g]);
|
|
6129
6127
|
const { cells: u, margin: M, numCells: l, calculatedImageSettings: a } = B.useMemo(() => {
|
|
6130
6128
|
let d = s.getModules();
|
|
6131
|
-
const N =
|
|
6129
|
+
const N = _l(r, o), y = d.length + N * 2, A = bl(
|
|
6132
6130
|
d,
|
|
6133
6131
|
c,
|
|
6134
6132
|
N,
|
|
@@ -6180,7 +6178,7 @@ var Sl = (function() {
|
|
|
6180
6178
|
"boostLevel",
|
|
6181
6179
|
"marginSize",
|
|
6182
6180
|
"imageSettings"
|
|
6183
|
-
]), { style: A } = y, p = rr(y, ["style"]), x = d == null ? void 0 : d.src, E = B.useRef(null), O = B.useRef(null),
|
|
6181
|
+
]), { style: A } = y, p = rr(y, ["style"]), x = d == null ? void 0 : d.src, E = B.useRef(null), O = B.useRef(null), b = B.useCallback(
|
|
6184
6182
|
(J) => {
|
|
6185
6183
|
E.current = J, typeof t == "function" ? t(J) : t && (t.current = J);
|
|
6186
6184
|
},
|
|
@@ -6210,8 +6208,8 @@ var Sl = (function() {
|
|
|
6210
6208
|
J.height = J.width = n * ce;
|
|
6211
6209
|
const G = n / U * ce;
|
|
6212
6210
|
le.scale(G, G), le.fillStyle = g, le.fillRect(0, 0, U, U), le.fillStyle = s, Sl ? le.fill(new Path2D(ns(fe, V))) : K.forEach(function(Me, je) {
|
|
6213
|
-
Me.forEach(function(Oe,
|
|
6214
|
-
Oe && le.fillRect(
|
|
6211
|
+
Me.forEach(function(Oe, _e) {
|
|
6212
|
+
Oe && le.fillRect(_e + V, je + V, 1, 1);
|
|
6215
6213
|
});
|
|
6216
6214
|
}), re && (le.globalAlpha = re.opacity), ve && le.drawImage(
|
|
6217
6215
|
de,
|
|
@@ -6244,7 +6242,7 @@ var Sl = (function() {
|
|
|
6244
6242
|
style: Y,
|
|
6245
6243
|
height: n,
|
|
6246
6244
|
width: n,
|
|
6247
|
-
ref:
|
|
6245
|
+
ref: b,
|
|
6248
6246
|
role: "img"
|
|
6249
6247
|
}, p)
|
|
6250
6248
|
), q);
|
|
@@ -6287,11 +6285,11 @@ var as = B.forwardRef(
|
|
|
6287
6285
|
imageSettings: N,
|
|
6288
6286
|
size: n
|
|
6289
6287
|
});
|
|
6290
|
-
let O = p,
|
|
6288
|
+
let O = p, b = null;
|
|
6291
6289
|
N != null && E != null && (E.excavation != null && (O = os(
|
|
6292
6290
|
p,
|
|
6293
6291
|
E.excavation
|
|
6294
|
-
)),
|
|
6292
|
+
)), b = /* @__PURE__ */ B.createElement(
|
|
6295
6293
|
"image",
|
|
6296
6294
|
{
|
|
6297
6295
|
href: N.src,
|
|
@@ -6324,7 +6322,7 @@ var as = B.forwardRef(
|
|
|
6324
6322
|
}
|
|
6325
6323
|
),
|
|
6326
6324
|
/* @__PURE__ */ B.createElement("path", { fill: s, d: H, shapeRendering: "crispEdges" }),
|
|
6327
|
-
|
|
6325
|
+
b
|
|
6328
6326
|
);
|
|
6329
6327
|
}
|
|
6330
6328
|
);
|
|
@@ -6367,7 +6365,7 @@ const Ll = {
|
|
|
6367
6365
|
const { perform: s } = Mt();
|
|
6368
6366
|
if (!c && typeof c != "string") {
|
|
6369
6367
|
const u = new Tt({
|
|
6370
|
-
errorCode:
|
|
6368
|
+
errorCode: bt.DECODING_FAILED,
|
|
6371
6369
|
message: "No QR URL in the client config"
|
|
6372
6370
|
});
|
|
6373
6371
|
return s(u), null;
|
|
@@ -6378,7 +6376,7 @@ const Ll = {
|
|
|
6378
6376
|
part: "gui-device-transfer-screen-container",
|
|
6379
6377
|
"data-ui": "gui-device-transfer-screen-container",
|
|
6380
6378
|
id: "device-transfer-screen-container",
|
|
6381
|
-
style:
|
|
6379
|
+
style: W(T({}, kl), {
|
|
6382
6380
|
justifyContent: "flex-start"
|
|
6383
6381
|
}),
|
|
6384
6382
|
children: [
|
|
@@ -6512,13 +6510,13 @@ const Ll = {
|
|
|
6512
6510
|
if (i === We.GENERIC)
|
|
6513
6511
|
return /* @__PURE__ */ D(ml, { rootElement: t.rootElement });
|
|
6514
6512
|
const o = new Tt({
|
|
6515
|
-
errorCode:
|
|
6513
|
+
errorCode: bt.DECODING_FAILED,
|
|
6516
6514
|
message: "Unsupported step template id"
|
|
6517
6515
|
});
|
|
6518
6516
|
return r(o), null;
|
|
6519
6517
|
};
|
|
6520
6518
|
let Vi = !1;
|
|
6521
|
-
const Zl = ({ children: e }) => /* @__PURE__ */ D(
|
|
6519
|
+
const Zl = ({ children: e }) => /* @__PURE__ */ D(be, { children: [
|
|
6522
6520
|
/* @__PURE__ */ D("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
|
|
6523
6521
|
e
|
|
6524
6522
|
] }), Pl = ({
|
|
@@ -6562,7 +6560,7 @@ const Zl = ({ children: e }) => /* @__PURE__ */ D(_e, { children: [
|
|
|
6562
6560
|
const t = i.moduleProps.failedAssets;
|
|
6563
6561
|
if (t && t.blockingAssets.size > 0) {
|
|
6564
6562
|
const o = new Tt({
|
|
6565
|
-
errorCode:
|
|
6563
|
+
errorCode: bt.IMAGE_LOADING_FAILED,
|
|
6566
6564
|
message: `Failed to load image asset${t.blockingAssets.size > 1 ? "s" : ""}: ${[...t.blockingAssets].join(", ")}`
|
|
6567
6565
|
});
|
|
6568
6566
|
(r = i.perform) == null || r.call(i, o);
|
|
@@ -6602,7 +6600,7 @@ const Zl = ({ children: e }) => /* @__PURE__ */ D(_e, { children: [
|
|
|
6602
6600
|
}
|
|
6603
6601
|
`, this.shadowRoot.querySelector("#idv-gui-styles") || this.shadowRoot.appendChild(i);
|
|
6604
6602
|
}
|
|
6605
|
-
|
|
6603
|
+
_t(
|
|
6606
6604
|
/* @__PURE__ */ D(
|
|
6607
6605
|
Fl,
|
|
6608
6606
|
{
|
|
@@ -6618,7 +6616,7 @@ const Zl = ({ children: e }) => /* @__PURE__ */ D(_e, { children: [
|
|
|
6618
6616
|
);
|
|
6619
6617
|
}
|
|
6620
6618
|
disconnectedCallback() {
|
|
6621
|
-
|
|
6619
|
+
_t(null, this._shadowRoot), setTimeout(() => {
|
|
6622
6620
|
this._mounted && (this._mounted = !1);
|
|
6623
6621
|
});
|
|
6624
6622
|
}
|
|
@@ -6641,8 +6639,8 @@ export {
|
|
|
6641
6639
|
Fl as GuiIdvReactComponent,
|
|
6642
6640
|
We as GuiIdvSteps,
|
|
6643
6641
|
Zl as GuiIdvStyleInjectionWrapper,
|
|
6644
|
-
|
|
6642
|
+
bt as GuiModuleError,
|
|
6645
6643
|
ge as IDV_UI_ICONS,
|
|
6646
|
-
|
|
6644
|
+
ba as PopupReason,
|
|
6647
6645
|
oi as idvIconDataUrlMap
|
|
6648
6646
|
};
|