@regulaforensics/idv-capture-web 3.4.311-nightly → 3.4.313-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/main.iife.js +9 -9
- package/dist/main.js +253 -246
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -72,7 +72,7 @@ const ol = (t) => new ca(typeof t == "string" ? t : t + "", void 0, go), sl = (t
|
|
|
72
72
|
for (const i of e.cssRules) r += i.cssText;
|
|
73
73
|
return ol(r);
|
|
74
74
|
})(t) : t;
|
|
75
|
-
const { is: cl, defineProperty: ll, getOwnPropertyDescriptor: ul, getOwnPropertyNames: dl, getOwnPropertySymbols: Ml, getPrototypeOf: gl } = Object, Jt = globalThis, ts = Jt.trustedTypes, fl = ts ? ts.emptyScript : "", xn = Jt.reactiveElementPolyfillSupport,
|
|
75
|
+
const { is: cl, defineProperty: ll, getOwnPropertyDescriptor: ul, getOwnPropertyNames: dl, getOwnPropertySymbols: Ml, getPrototypeOf: gl } = Object, Jt = globalThis, ts = Jt.trustedTypes, fl = ts ? ts.emptyScript : "", xn = Jt.reactiveElementPolyfillSupport, Qr = (t, e) => t, Yi = { toAttribute(t, e) {
|
|
76
76
|
switch (e) {
|
|
77
77
|
case Boolean:
|
|
78
78
|
t = t ? fl : null;
|
|
@@ -103,7 +103,7 @@ const { is: cl, defineProperty: ll, getOwnPropertyDescriptor: ul, getOwnProperty
|
|
|
103
103
|
} }, fo = (t, e) => !cl(t, e), rs = { attribute: !0, type: String, converter: Yi, reflect: !1, useDefault: !1, hasChanged: fo };
|
|
104
104
|
var ra, ia;
|
|
105
105
|
(ra = Symbol.metadata) != null || (Symbol.metadata = /* @__PURE__ */ Symbol("metadata")), (ia = Jt.litPropertyMetadata) != null || (Jt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
106
|
-
let
|
|
106
|
+
let wr = class extends HTMLElement {
|
|
107
107
|
static addInitializer(e) {
|
|
108
108
|
var r;
|
|
109
109
|
this._$Ei(), ((r = this.l) != null ? r : this.l = []).push(e);
|
|
@@ -134,13 +134,13 @@ let mr = class extends HTMLElement {
|
|
|
134
134
|
return (r = this.elementProperties.get(e)) != null ? r : rs;
|
|
135
135
|
}
|
|
136
136
|
static _$Ei() {
|
|
137
|
-
if (this.hasOwnProperty(
|
|
137
|
+
if (this.hasOwnProperty(Qr("elementProperties"))) return;
|
|
138
138
|
const e = gl(this);
|
|
139
139
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
140
140
|
}
|
|
141
141
|
static finalize() {
|
|
142
|
-
if (this.hasOwnProperty(
|
|
143
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
142
|
+
if (this.hasOwnProperty(Qr("finalized"))) return;
|
|
143
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Qr("properties"))) {
|
|
144
144
|
const r = this.properties, i = [...dl(r), ...Ml(r)];
|
|
145
145
|
for (const n of i) this.createProperty(n, r[n]);
|
|
146
146
|
}
|
|
@@ -314,23 +314,23 @@ let mr = class extends HTMLElement {
|
|
|
314
314
|
}
|
|
315
315
|
};
|
|
316
316
|
var na;
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
\f\r]`,
|
|
320
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), as = /'/g, cs = /"/g, da = /^(?:script|style|textarea|title)$/i, hl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), zn = hl(1),
|
|
317
|
+
wr.elementStyles = [], wr.shadowRootOptions = { mode: "open" }, wr[Qr("elementProperties")] = /* @__PURE__ */ new Map(), wr[Qr("finalized")] = /* @__PURE__ */ new Map(), xn == null || xn({ ReactiveElement: wr }), ((na = Jt.reactiveElementVersions) != null ? na : Jt.reactiveElementVersions = []).push("2.1.2");
|
|
318
|
+
const Yr = globalThis, is = (t) => t, Fi = Yr.trustedTypes, ns = Fi ? Fi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, la = "$lit$", Kt = `lit$${Math.random().toFixed(9).slice(2)}$`, ua = "?" + Kt, Nl = `<${ua}>`, fr = document, Jr = () => fr.createComment(""), Xr = (t) => t === null || typeof t != "object" && typeof t != "function", No = Array.isArray, Il = (t) => No(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", bn = `[
|
|
319
|
+
\f\r]`, Lr = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, os = /-->/g, ss = />/g, ir = RegExp(`>|${bn}(?:([^\\s"'>=/]+)(${bn}*=${bn}*(?:[^
|
|
320
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), as = /'/g, cs = /"/g, da = /^(?:script|style|textarea|title)$/i, hl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), zn = hl(1), Cr = /* @__PURE__ */ Symbol.for("lit-noChange"), be = /* @__PURE__ */ Symbol.for("lit-nothing"), ls = /* @__PURE__ */ new WeakMap(), ur = fr.createTreeWalker(fr, 129);
|
|
321
321
|
function Ma(t, e) {
|
|
322
322
|
if (!No(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
323
323
|
return ns !== void 0 ? ns.createHTML(e) : e;
|
|
324
324
|
}
|
|
325
325
|
const Dl = (t, e) => {
|
|
326
326
|
const r = t.length - 1, i = [];
|
|
327
|
-
let n, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s =
|
|
327
|
+
let n, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = Lr;
|
|
328
328
|
for (let c = 0; c < r; c++) {
|
|
329
329
|
const a = t[c];
|
|
330
330
|
let l, M, d = -1, u = 0;
|
|
331
|
-
for (; u < a.length && (s.lastIndex = u, M = s.exec(a), M !== null); ) u = s.lastIndex, s ===
|
|
331
|
+
for (; u < a.length && (s.lastIndex = u, M = s.exec(a), M !== null); ) u = s.lastIndex, s === Lr ? M[1] === "!--" ? s = os : M[1] !== void 0 ? s = ss : M[2] !== void 0 ? (da.test(M[2]) && (n = RegExp("</" + M[2], "g")), s = ir) : M[3] !== void 0 && (s = ir) : s === ir ? M[0] === ">" ? (s = n != null ? n : Lr, d = -1) : M[1] === void 0 ? d = -2 : (d = s.lastIndex - M[2].length, l = M[1], s = M[3] === void 0 ? ir : M[3] === '"' ? cs : as) : s === cs || s === as ? s = ir : s === os || s === ss ? s = Lr : (s = ir, n = void 0);
|
|
332
332
|
const g = s === ir && t[c + 1].startsWith("/>") ? " " : "";
|
|
333
|
-
o += s ===
|
|
333
|
+
o += s === Lr ? a + Nl : d >= 0 ? (i.push(l), a.slice(0, d) + la + a.slice(d) + Kt + g) : a + Kt + (d === -2 ? c : g);
|
|
334
334
|
}
|
|
335
335
|
return [Ma(t, o + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
336
336
|
};
|
|
@@ -340,11 +340,11 @@ let Gn = class ga {
|
|
|
340
340
|
this.parts = [];
|
|
341
341
|
let o = 0, s = 0;
|
|
342
342
|
const c = e.length - 1, a = this.parts, [l, M] = Dl(e, r);
|
|
343
|
-
if (this.el = ga.createElement(l, i),
|
|
343
|
+
if (this.el = ga.createElement(l, i), ur.currentNode = this.el.content, r === 2 || r === 3) {
|
|
344
344
|
const d = this.el.content.firstChild;
|
|
345
345
|
d.replaceWith(...d.childNodes);
|
|
346
346
|
}
|
|
347
|
-
for (; (n =
|
|
347
|
+
for (; (n = ur.nextNode()) !== null && a.length < c; ) {
|
|
348
348
|
if (n.nodeType === 1) {
|
|
349
349
|
if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(la)) {
|
|
350
350
|
const u = M[s++], g = n.getAttribute(d).split(Kt), f = /([.?@])?(.*)/.exec(u);
|
|
@@ -354,7 +354,7 @@ let Gn = class ga {
|
|
|
354
354
|
const d = n.textContent.split(Kt), u = d.length - 1;
|
|
355
355
|
if (u > 0) {
|
|
356
356
|
n.textContent = Fi ? Fi.emptyScript : "";
|
|
357
|
-
for (let g = 0; g < u; g++) n.append(d[g], Jr()),
|
|
357
|
+
for (let g = 0; g < u; g++) n.append(d[g], Jr()), ur.nextNode(), a.push({ type: 2, index: ++o });
|
|
358
358
|
n.append(d[u], Jr());
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -367,16 +367,16 @@ let Gn = class ga {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
static createElement(e, r) {
|
|
370
|
-
const i =
|
|
370
|
+
const i = fr.createElement("template");
|
|
371
371
|
return i.innerHTML = e, i;
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
|
-
function
|
|
374
|
+
function vr(t, e, r = t, i) {
|
|
375
375
|
var s, c, a;
|
|
376
|
-
if (e ===
|
|
376
|
+
if (e === Cr) return e;
|
|
377
377
|
let n = i !== void 0 ? (s = r._$Co) == null ? void 0 : s[i] : r._$Cl;
|
|
378
378
|
const o = Xr(e) ? void 0 : e._$litDirective$;
|
|
379
|
-
return (n == null ? void 0 : n.constructor) !== o && ((c = n == null ? void 0 : n._$AO) == null || c.call(n, !1), o === void 0 ? n = void 0 : (n = new o(t), n._$AT(t, r, i)), i !== void 0 ? ((a = r._$Co) != null ? a : r._$Co = [])[i] = n : r._$Cl = n), n !== void 0 && (e =
|
|
379
|
+
return (n == null ? void 0 : n.constructor) !== o && ((c = n == null ? void 0 : n._$AO) == null || c.call(n, !1), o === void 0 ? n = void 0 : (n = new o(t), n._$AT(t, r, i)), i !== void 0 ? ((a = r._$Co) != null ? a : r._$Co = [])[i] = n : r._$Cl = n), n !== void 0 && (e = vr(t, n._$AS(t, e.values), n, i)), e;
|
|
380
380
|
}
|
|
381
381
|
let yl = class {
|
|
382
382
|
constructor(e, r) {
|
|
@@ -390,17 +390,17 @@ let yl = class {
|
|
|
390
390
|
}
|
|
391
391
|
u(e) {
|
|
392
392
|
var l;
|
|
393
|
-
const { el: { content: r }, parts: i } = this._$AD, n = ((l = e == null ? void 0 : e.creationScope) != null ? l :
|
|
394
|
-
|
|
395
|
-
let o =
|
|
393
|
+
const { el: { content: r }, parts: i } = this._$AD, n = ((l = e == null ? void 0 : e.creationScope) != null ? l : fr).importNode(r, !0);
|
|
394
|
+
ur.currentNode = n;
|
|
395
|
+
let o = ur.nextNode(), s = 0, c = 0, a = i[0];
|
|
396
396
|
for (; a !== void 0; ) {
|
|
397
397
|
if (s === a.index) {
|
|
398
398
|
let M;
|
|
399
399
|
a.type === 2 ? M = new Io(o, o.nextSibling, this, e) : a.type === 1 ? M = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (M = new El(o, this, e)), this._$AV.push(M), a = i[++c];
|
|
400
400
|
}
|
|
401
|
-
s !== (a == null ? void 0 : a.index) && (o =
|
|
401
|
+
s !== (a == null ? void 0 : a.index) && (o = ur.nextNode(), s++);
|
|
402
402
|
}
|
|
403
|
-
return
|
|
403
|
+
return ur.currentNode = fr, n;
|
|
404
404
|
}
|
|
405
405
|
p(e) {
|
|
406
406
|
let r = 0;
|
|
@@ -427,7 +427,7 @@ let yl = class {
|
|
|
427
427
|
return this._$AB;
|
|
428
428
|
}
|
|
429
429
|
_$AI(e, r = this) {
|
|
430
|
-
e =
|
|
430
|
+
e = vr(this, e, r), Xr(e) ? e === be || e == null || e === "" ? (this._$AH !== be && this._$AR(), this._$AH = be) : e !== this._$AH && e !== Cr && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Il(e) ? this.k(e) : this._(e);
|
|
431
431
|
}
|
|
432
432
|
O(e) {
|
|
433
433
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -436,7 +436,7 @@ let yl = class {
|
|
|
436
436
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
437
437
|
}
|
|
438
438
|
_(e) {
|
|
439
|
-
this._$AH !== be && Xr(this._$AH) ? this._$AA.nextSibling.data = e : this.T(
|
|
439
|
+
this._$AH !== be && Xr(this._$AH) ? this._$AA.nextSibling.data = e : this.T(fr.createTextNode(e)), this._$AH = e;
|
|
440
440
|
}
|
|
441
441
|
$(e) {
|
|
442
442
|
var o;
|
|
@@ -482,11 +482,11 @@ let yl = class {
|
|
|
482
482
|
_$AI(e, r = this, i, n) {
|
|
483
483
|
const o = this.strings;
|
|
484
484
|
let s = !1;
|
|
485
|
-
if (o === void 0) e =
|
|
485
|
+
if (o === void 0) e = vr(this, e, r, 0), s = !Xr(e) || e !== this._$AH && e !== Cr, s && (this._$AH = e);
|
|
486
486
|
else {
|
|
487
487
|
const c = e;
|
|
488
488
|
let a, l;
|
|
489
|
-
for (e = o[0], a = 0; a < o.length - 1; a++) l =
|
|
489
|
+
for (e = o[0], a = 0; a < o.length - 1; a++) l = vr(this, c[i + a], r, a), l === Cr && (l = this._$AH[a]), s || (s = !Xr(l) || l !== this._$AH[a]), l === be ? e = be : e !== be && (e += (l != null ? l : "") + o[a + 1]), this._$AH[a] = l;
|
|
490
490
|
}
|
|
491
491
|
s && !n && this.j(e);
|
|
492
492
|
}
|
|
@@ -513,7 +513,7 @@ let yl = class {
|
|
|
513
513
|
}
|
|
514
514
|
_$AI(e, r = this) {
|
|
515
515
|
var s;
|
|
516
|
-
if ((e = (s =
|
|
516
|
+
if ((e = (s = vr(this, e, r, 0)) != null ? s : be) === Cr) return;
|
|
517
517
|
const i = this._$AH, n = e === be && i !== be || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, o = e !== be && (i === be || n);
|
|
518
518
|
n && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
519
519
|
}
|
|
@@ -529,12 +529,12 @@ let yl = class {
|
|
|
529
529
|
return this._$AM._$AU;
|
|
530
530
|
}
|
|
531
531
|
_$AI(e) {
|
|
532
|
-
|
|
532
|
+
vr(this, e);
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
|
-
const Ln =
|
|
535
|
+
const Ln = Yr.litHtmlPolyfillSupport;
|
|
536
536
|
var oa;
|
|
537
|
-
Ln == null || Ln(Gn, Io), ((oa =
|
|
537
|
+
Ln == null || Ln(Gn, Io), ((oa = Yr.litHtmlVersions) != null ? oa : Yr.litHtmlVersions = []).push("3.3.2");
|
|
538
538
|
const ml = (t, e, r) => {
|
|
539
539
|
var o, s;
|
|
540
540
|
const i = (o = r == null ? void 0 : r.renderBefore) != null ? o : e;
|
|
@@ -545,8 +545,8 @@ const ml = (t, e, r) => {
|
|
|
545
545
|
}
|
|
546
546
|
return n._$AI(t), n;
|
|
547
547
|
};
|
|
548
|
-
const
|
|
549
|
-
let
|
|
548
|
+
const Mr = globalThis;
|
|
549
|
+
let Fr = class extends wr {
|
|
550
550
|
constructor() {
|
|
551
551
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
552
552
|
}
|
|
@@ -568,15 +568,15 @@ let Yr = class extends mr {
|
|
|
568
568
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
569
569
|
}
|
|
570
570
|
render() {
|
|
571
|
-
return
|
|
571
|
+
return Cr;
|
|
572
572
|
}
|
|
573
573
|
};
|
|
574
574
|
var sa;
|
|
575
|
-
|
|
576
|
-
const kn =
|
|
577
|
-
kn == null || kn({ LitElement:
|
|
575
|
+
Fr._$litElement$ = !0, Fr.finalized = !0, (sa = Mr.litElementHydrateSupport) == null || sa.call(Mr, { LitElement: Fr });
|
|
576
|
+
const kn = Mr.litElementPolyfillSupport;
|
|
577
|
+
kn == null || kn({ LitElement: Fr });
|
|
578
578
|
var aa;
|
|
579
|
-
((aa =
|
|
579
|
+
((aa = Mr.litElementVersions) != null ? aa : Mr.litElementVersions = []).push("4.2.2");
|
|
580
580
|
const wl = { attribute: !0, type: String, converter: Yi, reflect: !1, hasChanged: fo }, Sl = (t = wl, e, r) => {
|
|
581
581
|
const { kind: i, metadata: n } = r;
|
|
582
582
|
let o = globalThis.litPropertyMetadata.get(n);
|
|
@@ -604,7 +604,7 @@ function jl(t) {
|
|
|
604
604
|
return n.constructor.createProperty(o, i), s ? Object.getOwnPropertyDescriptor(n, o) : void 0;
|
|
605
605
|
})(t, e, r);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function hr(t) {
|
|
608
608
|
return jl(X(w({}, t), { state: !0, attribute: !1 }));
|
|
609
609
|
}
|
|
610
610
|
class _l {
|
|
@@ -675,9 +675,9 @@ function Et(t, e, r) {
|
|
|
675
675
|
var i, n, o, s = {};
|
|
676
676
|
for (o in e) o == "key" ? i = e[o] : o == "ref" ? n = e[o] : s[o] = e[o];
|
|
677
677
|
if (arguments.length > 2 && (s.children = arguments.length > 3 ? ei.call(arguments, 2) : r), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) s[o] === void 0 && (s[o] = t.defaultProps[o]);
|
|
678
|
-
return
|
|
678
|
+
return Vr(t, s, i, n, null);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function Vr(t, e, r, i, n) {
|
|
681
681
|
var o = { type: t, props: e, key: r, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n == null ? ++Ia : n, __i: -1, __u: 0 };
|
|
682
682
|
return n == null && Me.vnode != null && Me.vnode(o), o;
|
|
683
683
|
}
|
|
@@ -690,10 +690,10 @@ function He(t) {
|
|
|
690
690
|
function gt(t, e) {
|
|
691
691
|
this.props = t, this.context = e;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
if (e == null) return t.__ ?
|
|
693
|
+
function xr(t, e) {
|
|
694
|
+
if (e == null) return t.__ ? xr(t.__, t.__i + 1) : null;
|
|
695
695
|
for (var r; e < t.__k.length; e++) if ((r = t.__k[e]) != null && r.__e != null) return r.__e;
|
|
696
|
-
return typeof t.type == "function" ?
|
|
696
|
+
return typeof t.type == "function" ? xr(t) : null;
|
|
697
697
|
}
|
|
698
698
|
function Ea(t) {
|
|
699
699
|
var e, r;
|
|
@@ -709,7 +709,7 @@ function Xn(t) {
|
|
|
709
709
|
(!t.__d && (t.__d = !0) && or.push(t) && !Vi.__r++ || ds != Me.debounceRendering) && ((ds = Me.debounceRendering) || ha)(Vi);
|
|
710
710
|
}
|
|
711
711
|
function Vi() {
|
|
712
|
-
for (var t, e, r, i, n, o, s, c = 1; or.length; ) or.length > c && or.sort(Da), t = or.shift(), c = or.length, t.__d && (r = void 0, i = void 0, n = (i = (e = t).__v).__e, o = [], s = [], e.__P && ((r = Tt({}, i)).__v = i.__v + 1, Me.vnode && Me.vnode(r), yo(e.__P, r, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [n] : null, o, n == null ?
|
|
712
|
+
for (var t, e, r, i, n, o, s, c = 1; or.length; ) or.length > c && or.sort(Da), t = or.shift(), c = or.length, t.__d && (r = void 0, i = void 0, n = (i = (e = t).__v).__e, o = [], s = [], e.__P && ((r = Tt({}, i)).__v = i.__v + 1, Me.vnode && Me.vnode(r), yo(e.__P, r, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [n] : null, o, n == null ? xr(i) : n, !!(32 & i.__u), s), r.__v = i.__v, r.__.__k[r.__i] = r, Sa(o, r, s), i.__e = i.__ = null, r.__e != n && Ea(r)));
|
|
713
713
|
Vi.__r = 0;
|
|
714
714
|
}
|
|
715
715
|
function ma(t, e, r, i, n, o, s, c, a, l, M) {
|
|
@@ -719,8 +719,8 @@ function ma(t, e, r, i, n, o, s, c, a, l, M) {
|
|
|
719
719
|
}
|
|
720
720
|
function vl(t, e, r, i, n) {
|
|
721
721
|
var o, s, c, a, l, M = r.length, d = M, u = 0;
|
|
722
|
-
for (t.__k = new Array(n), o = 0; o < n; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = t.__k[o] =
|
|
723
|
-
if (d) for (o = 0; o < M; o++) (c = r[o]) != null && (2 & c.__u) == 0 && (c.__e == i && (i =
|
|
722
|
+
for (t.__k = new Array(n), o = 0; o < n; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = t.__k[o] = Vr(null, s, null, null, null) : ti(s) ? s = t.__k[o] = Vr(He, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = t.__k[o] = Vr(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : t.__k[o] = s, a = o + u, s.__ = t, s.__b = t.__b + 1, c = null, (l = s.__i = xl(s, r, a, d)) != -1 && (d--, (c = r[l]) && (c.__u |= 2)), c == null || c.__v == null ? (l == -1 && (n > M ? u-- : n < M && u++), typeof s.type != "function" && (s.__u |= 4)) : l != a && (l == a - 1 ? u-- : l == a + 1 ? u++ : (l > a ? u-- : u++, s.__u |= 4))) : t.__k[o] = null;
|
|
723
|
+
if (d) for (o = 0; o < M; o++) (c = r[o]) != null && (2 & c.__u) == 0 && (c.__e == i && (i = xr(c)), _a(c, c));
|
|
724
724
|
return i;
|
|
725
725
|
}
|
|
726
726
|
function wa(t, e, r, i) {
|
|
@@ -729,7 +729,7 @@ function wa(t, e, r, i) {
|
|
|
729
729
|
for (n = t.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = t, e = wa(n[o], e, r, i));
|
|
730
730
|
return e;
|
|
731
731
|
}
|
|
732
|
-
t.__e != e && (i && (e && t.type && !e.parentNode && (e =
|
|
732
|
+
t.__e != e && (i && (e && t.type && !e.parentNode && (e = xr(t)), r.insertBefore(t.__e, e || null)), e = t.__e);
|
|
733
733
|
do
|
|
734
734
|
e = e && e.nextSibling;
|
|
735
735
|
while (e != null && e.nodeType == 8);
|
|
@@ -860,7 +860,7 @@ function bl(t, e, r, i, n, o, s, c, a) {
|
|
|
860
860
|
}
|
|
861
861
|
for (l in D) g = D[l], l == "children" ? u = g : l == "dangerouslySetInnerHTML" ? M = g : l == "value" ? f = g : l == "checked" ? N = g : c && typeof g != "function" || I[l] === g || ki(t, l, g, I[l], n);
|
|
862
862
|
if (M) c || d && (M.__html == d.__html || M.__html == t.innerHTML) || (t.innerHTML = M.__html), e.__k = [];
|
|
863
|
-
else if (d && (t.innerHTML = ""), ma(e.type == "template" ? t.content : t, ti(u) ? u : [u], e, r, i, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : r.__k &&
|
|
863
|
+
else if (d && (t.innerHTML = ""), ma(e.type == "template" ? t.content : t, ti(u) ? u : [u], e, r, i, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : r.__k && xr(r, 0), c, a), o != null) for (l = o.length; l--; ) Do(o[l]);
|
|
864
864
|
c || (l = "value", y == "progress" && f == null ? t.removeAttribute("value") : f != null && (f !== t[l] || y == "progress" && !f || y == "option" && f != I[l]) && ki(t, l, f, I[l], n), l = "checked", N != null && N != t[l] && ki(t, l, N, I[l], n));
|
|
865
865
|
}
|
|
866
866
|
return t;
|
|
@@ -891,17 +891,17 @@ function _a(t, e, r) {
|
|
|
891
891
|
function zl(t, e, r) {
|
|
892
892
|
return this.constructor(t, r);
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Nr(t, e, r) {
|
|
895
895
|
var i, n, o, s;
|
|
896
896
|
e == document && (e = document.documentElement), Me.__ && Me.__(t, e), n = (i = typeof r == "function") ? null : r && r.__k || e.__k, o = [], s = [], yo(e, t = (!i && r || e).__k = Et(He, null, [t]), n || qr, qr, e.namespaceURI, !i && r ? [r] : n ? null : e.firstChild ? ei.call(e.childNodes) : null, o, !i && r ? r : n ? n.__e : e.firstChild, i, s), Sa(o, t, s);
|
|
897
897
|
}
|
|
898
898
|
function Oa(t, e) {
|
|
899
|
-
|
|
899
|
+
Nr(t, e, Oa);
|
|
900
900
|
}
|
|
901
901
|
function Ll(t, e, r) {
|
|
902
902
|
var i, n, o, s, c = Tt({}, t.props);
|
|
903
903
|
for (o in t.type && t.type.defaultProps && (s = t.type.defaultProps), e) o == "key" ? i = e[o] : o == "ref" ? n = e[o] : c[o] = e[o] === void 0 && s != null ? s[o] : e[o];
|
|
904
|
-
return arguments.length > 2 && (c.children = arguments.length > 3 ? ei.call(arguments, 2) : r),
|
|
904
|
+
return arguments.length > 2 && (c.children = arguments.length > 3 ? ei.call(arguments, 2) : r), Vr(t.type, c, i || t.key, n || t.ref, null);
|
|
905
905
|
}
|
|
906
906
|
function Ao(t) {
|
|
907
907
|
function e(r) {
|
|
@@ -941,17 +941,17 @@ ei = Aa.slice, Me = { __e: function(t, e, r, i) {
|
|
|
941
941
|
}, gt.prototype.render = He, or = [], ha = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Da = function(t, e) {
|
|
942
942
|
return t.__v.__b - e.__v.__b;
|
|
943
943
|
}, Vi.__r = 0, ya = /(PointerCapture)$|Capture$/i, ho = 0, Kn = gs(!1), Jn = gs(!0), pa = 0;
|
|
944
|
-
var Vt, Ee, Un, fs,
|
|
945
|
-
function
|
|
946
|
-
je.__h && je.__h(Ee, t,
|
|
944
|
+
var Vt, Ee, Un, fs, br = 0, Ca = [], je = Me, Ns = je.__b, Is = je.__r, hs = je.diffed, Ds = je.__c, ys = je.unmount, ps = je.__;
|
|
945
|
+
function Dr(t, e) {
|
|
946
|
+
je.__h && je.__h(Ee, t, br || e), br = 0;
|
|
947
947
|
var r = Ee.__H || (Ee.__H = { __: [], __h: [] });
|
|
948
948
|
return t >= r.__.length && r.__.push({}), r.__[t];
|
|
949
949
|
}
|
|
950
950
|
function Re(t) {
|
|
951
|
-
return
|
|
951
|
+
return br = 1, ln(va, t);
|
|
952
952
|
}
|
|
953
953
|
function ln(t, e, r) {
|
|
954
|
-
var i =
|
|
954
|
+
var i = Dr(Vt++, 2);
|
|
955
955
|
if (i.t = t, !i.__c && (i.__ = [r ? r(e) : va(void 0, e), function(c) {
|
|
956
956
|
var a = i.__N ? i.__N[0] : i.__[0], l = i.t(a, c);
|
|
957
957
|
a !== l && (i.__N = [l, i.__[1]], i.__c.setState({}));
|
|
@@ -985,20 +985,20 @@ function ln(t, e, r) {
|
|
|
985
985
|
return i.__N || i.__;
|
|
986
986
|
}
|
|
987
987
|
function ot(t, e) {
|
|
988
|
-
var r =
|
|
988
|
+
var r = Dr(Vt++, 3);
|
|
989
989
|
!je.__s && So(r.__H, e) && (r.__ = t, r.u = e, Ee.__H.__h.push(r));
|
|
990
990
|
}
|
|
991
991
|
function qt(t, e) {
|
|
992
|
-
var r =
|
|
992
|
+
var r = Dr(Vt++, 4);
|
|
993
993
|
!je.__s && So(r.__H, e) && (r.__ = t, r.u = e, Ee.__h.push(r));
|
|
994
994
|
}
|
|
995
995
|
function ft(t) {
|
|
996
|
-
return
|
|
996
|
+
return br = 5, ri(function() {
|
|
997
997
|
return { current: t };
|
|
998
998
|
}, []);
|
|
999
999
|
}
|
|
1000
1000
|
function To(t, e, r) {
|
|
1001
|
-
|
|
1001
|
+
br = 6, qt(function() {
|
|
1002
1002
|
if (typeof t == "function") {
|
|
1003
1003
|
var i = t(e());
|
|
1004
1004
|
return function() {
|
|
@@ -1011,23 +1011,23 @@ function To(t, e, r) {
|
|
|
1011
1011
|
}, r == null ? r : r.concat(t));
|
|
1012
1012
|
}
|
|
1013
1013
|
function ri(t, e) {
|
|
1014
|
-
var r =
|
|
1014
|
+
var r = Dr(Vt++, 7);
|
|
1015
1015
|
return So(r.__H, e) && (r.__ = t(), r.__H = e, r.__h = t), r.__;
|
|
1016
1016
|
}
|
|
1017
1017
|
function Eo(t, e) {
|
|
1018
|
-
return
|
|
1018
|
+
return br = 8, ri(function() {
|
|
1019
1019
|
return t;
|
|
1020
1020
|
}, e);
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1023
|
-
var e = Ee.context[t.__c], r =
|
|
1022
|
+
function yr(t) {
|
|
1023
|
+
var e = Ee.context[t.__c], r = Dr(Vt++, 9);
|
|
1024
1024
|
return r.c = t, e ? (r.__ == null && (r.__ = !0, e.sub(Ee)), e.props.value) : t.__;
|
|
1025
1025
|
}
|
|
1026
1026
|
function mo(t, e) {
|
|
1027
1027
|
je.useDebugValue && je.useDebugValue(e ? e(t) : t);
|
|
1028
1028
|
}
|
|
1029
1029
|
function kl(t) {
|
|
1030
|
-
var e =
|
|
1030
|
+
var e = Dr(Vt++, 10), r = Re();
|
|
1031
1031
|
return e.__ = t, Ee.componentDidCatch || (Ee.componentDidCatch = function(i, n) {
|
|
1032
1032
|
e.__ && e.__(i, n), r[1](i);
|
|
1033
1033
|
}), [r[0], function() {
|
|
@@ -1035,7 +1035,7 @@ function kl(t) {
|
|
|
1035
1035
|
}];
|
|
1036
1036
|
}
|
|
1037
1037
|
function wo() {
|
|
1038
|
-
var t =
|
|
1038
|
+
var t = Dr(Vt++, 11);
|
|
1039
1039
|
if (!t.__) {
|
|
1040
1040
|
for (var e = Ee.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__;
|
|
1041
1041
|
var r = e.__m || (e.__m = [0, 0]);
|
|
@@ -1206,7 +1206,7 @@ function Ua(t, e, r) {
|
|
|
1206
1206
|
return Ua(i, e, r);
|
|
1207
1207
|
}), t.__c && t.__c.__P === e && (t.__e && r.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = r)), t;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function Br() {
|
|
1210
1210
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1211
1211
|
}
|
|
1212
1212
|
function Ra(t) {
|
|
@@ -1227,13 +1227,13 @@ function Pa(t) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function jr() {
|
|
1231
1231
|
this.i = null, this.l = null;
|
|
1232
1232
|
}
|
|
1233
1233
|
Me.unmount = function(t) {
|
|
1234
1234
|
var e = t.__c;
|
|
1235
1235
|
e && (e.__z = !0), e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), ms && ms(t);
|
|
1236
|
-
}, (
|
|
1236
|
+
}, (Br.prototype = new gt()).__c = function(t, e) {
|
|
1237
1237
|
var r = e.__c, i = this;
|
|
1238
1238
|
i.o == null && (i.o = []), i.o.push(r);
|
|
1239
1239
|
var n = Ra(i.__v), o = !1, s = function() {
|
|
@@ -1253,9 +1253,9 @@ Me.unmount = function(t) {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
};
|
|
1255
1255
|
i.__u++ || 32 & e.__u || i.setState({ __a: i.__b = i.__v.__k[0] }), t.then(s, s);
|
|
1256
|
-
},
|
|
1256
|
+
}, Br.prototype.componentWillUnmount = function() {
|
|
1257
1257
|
this.o = [];
|
|
1258
|
-
},
|
|
1258
|
+
}, Br.prototype.render = function(t, e) {
|
|
1259
1259
|
if (this.__b) {
|
|
1260
1260
|
if (this.__v.__k) {
|
|
1261
1261
|
var r = document.createElement("div"), i = this.__v.__k[0].__c;
|
|
@@ -1281,7 +1281,7 @@ function Yl(t) {
|
|
|
1281
1281
|
function Fl(t) {
|
|
1282
1282
|
var e = this, r = t.h;
|
|
1283
1283
|
if (e.componentWillUnmount = function() {
|
|
1284
|
-
|
|
1284
|
+
Nr(null, e.v), e.v = null, e.h = null;
|
|
1285
1285
|
}, e.h && e.h !== r && e.componentWillUnmount(), !e.v) {
|
|
1286
1286
|
for (var i = e.__v; i !== null && !i.__m && i.__ !== null; ) i = i.__;
|
|
1287
1287
|
e.h = r, e.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: i.__m }, contains: function() {
|
|
@@ -1292,13 +1292,13 @@ function Fl(t) {
|
|
|
1292
1292
|
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.h.removeChild(n);
|
|
1293
1293
|
} };
|
|
1294
1294
|
}
|
|
1295
|
-
|
|
1295
|
+
Nr(Et(Yl, { context: e.context }, t.__v), e.v);
|
|
1296
1296
|
}
|
|
1297
1297
|
function Qa(t, e) {
|
|
1298
1298
|
var r = Et(Fl, { __v: t, h: e });
|
|
1299
1299
|
return r.containerInfo = e, r;
|
|
1300
1300
|
}
|
|
1301
|
-
(
|
|
1301
|
+
(jr.prototype = new gt()).__a = function(t) {
|
|
1302
1302
|
var e = this, r = Ra(e.__v), i = e.l.get(t);
|
|
1303
1303
|
return i[0]++, function(n) {
|
|
1304
1304
|
var o = function() {
|
|
@@ -1306,13 +1306,13 @@ function Qa(t, e) {
|
|
|
1306
1306
|
};
|
|
1307
1307
|
r ? r(o) : o();
|
|
1308
1308
|
};
|
|
1309
|
-
},
|
|
1309
|
+
}, jr.prototype.render = function(t) {
|
|
1310
1310
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1311
1311
|
var e = Ft(t.children);
|
|
1312
1312
|
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
|
|
1313
1313
|
for (var r = e.length; r--; ) this.l.set(e[r], this.i = [1, 0, this.i]);
|
|
1314
1314
|
return t.children;
|
|
1315
|
-
},
|
|
1315
|
+
}, jr.prototype.componentDidUpdate = jr.prototype.componentDidMount = function() {
|
|
1316
1316
|
var t = this;
|
|
1317
1317
|
this.l.forEach(function(e, r) {
|
|
1318
1318
|
ws(t, r, e);
|
|
@@ -1322,7 +1322,7 @@ var Ya = typeof Symbol != "undefined" && Symbol.for && /* @__PURE__ */ Symbol.fo
|
|
|
1322
1322
|
return (typeof Symbol != "undefined" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
1323
1323
|
};
|
|
1324
1324
|
function Fa(t, e, r) {
|
|
1325
|
-
return e.__k == null && (e.textContent = ""),
|
|
1325
|
+
return e.__k == null && (e.textContent = ""), Nr(t, e), typeof r == "function" && r(), t ? t.__c : null;
|
|
1326
1326
|
}
|
|
1327
1327
|
function Va(t, e, r) {
|
|
1328
1328
|
return Oa(t, e), typeof r == "function" && r(), t ? t.__c : null;
|
|
@@ -1378,7 +1378,7 @@ Me.diffed = function(t) {
|
|
|
1378
1378
|
};
|
|
1379
1379
|
var Ba = { ReactCurrentDispatcher: { current: { readContext: function(t) {
|
|
1380
1380
|
return xo.__n[t.__c].props.value;
|
|
1381
|
-
}, useCallback: Eo, useContext:
|
|
1381
|
+
}, useCallback: Eo, useContext: yr, useDebugValue: mo, useDeferredValue: Oo, useEffect: ot, useId: wo, useImperativeHandle: To, useInsertionEffect: vo, useLayoutEffect: qt, useMemo: ri, useReducer: ln, useRef: ft, useState: Re, useSyncExternalStore: jo, useTransition: Co } } }, Xl = "18.3.1";
|
|
1382
1382
|
function $a(t) {
|
|
1383
1383
|
return Et.bind(null, t);
|
|
1384
1384
|
}
|
|
@@ -1395,7 +1395,7 @@ function Za(t) {
|
|
|
1395
1395
|
return ii(t) ? Ll.apply(null, arguments) : t;
|
|
1396
1396
|
}
|
|
1397
1397
|
function Ga(t) {
|
|
1398
|
-
return !!t.__k && (
|
|
1398
|
+
return !!t.__k && (Nr(null, t), !0);
|
|
1399
1399
|
}
|
|
1400
1400
|
function Ka(t) {
|
|
1401
1401
|
return t && (t.base || t.nodeType === 1 && t) || null;
|
|
@@ -1404,7 +1404,7 @@ var Ja = function(t, e) {
|
|
|
1404
1404
|
return t(e);
|
|
1405
1405
|
}, Xa = function(t, e) {
|
|
1406
1406
|
return t(e);
|
|
1407
|
-
}, qa = He, ec = ii, W = { useState: Re, useId: wo, useReducer: ln, useEffect: ot, useLayoutEffect: qt, useInsertionEffect: vo, useTransition: Co, useDeferredValue: Oo, useSyncExternalStore: jo, startTransition: _o, useRef: ft, useImperativeHandle: To, useMemo: ri, useCallback: Eo, useContext:
|
|
1407
|
+
}, qa = He, ec = ii, W = { useState: Re, useId: wo, useReducer: ln, useEffect: ot, useLayoutEffect: qt, useInsertionEffect: vo, useTransition: Co, useDeferredValue: Oo, useSyncExternalStore: jo, startTransition: _o, useRef: ft, useImperativeHandle: To, useMemo: ri, useCallback: Eo, useContext: yr, useDebugValue: mo, version: "18.3.1", Children: La, render: Fa, hydrate: Va, unmountComponentAtNode: Ga, createPortal: Qa, createElement: Et, createContext: Ao, createFactory: $a, cloneElement: Za, createRef: Ta, Fragment: He, isValidElement: ii, isElement: ec, isFragment: Wa, isMemo: Ha, findDOMNode: Ka, Component: gt, PureComponent: Bi, memo: ba, forwardRef: za, flushSync: Xa, unstable_batchedUpdates: Ja, StrictMode: qa, Suspense: Br, SuspenseList: jr, lazy: Pa, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ba };
|
|
1408
1408
|
const ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1409
1409
|
__proto__: null,
|
|
1410
1410
|
Children: La,
|
|
@@ -1412,8 +1412,8 @@ const ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1412
1412
|
Fragment: He,
|
|
1413
1413
|
PureComponent: Bi,
|
|
1414
1414
|
StrictMode: qa,
|
|
1415
|
-
Suspense:
|
|
1416
|
-
SuspenseList:
|
|
1415
|
+
Suspense: Br,
|
|
1416
|
+
SuspenseList: jr,
|
|
1417
1417
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ba,
|
|
1418
1418
|
cloneElement: Za,
|
|
1419
1419
|
createContext: Ao,
|
|
@@ -1437,7 +1437,7 @@ const ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1437
1437
|
unmountComponentAtNode: Ga,
|
|
1438
1438
|
unstable_batchedUpdates: Ja,
|
|
1439
1439
|
useCallback: Eo,
|
|
1440
|
-
useContext:
|
|
1440
|
+
useContext: yr,
|
|
1441
1441
|
useDebugValue: mo,
|
|
1442
1442
|
useDeferredValue: Oo,
|
|
1443
1443
|
useEffect: ot,
|
|
@@ -1492,7 +1492,7 @@ function iu(t) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
var B = {};
|
|
1494
1494
|
const nu = /* @__PURE__ */ iu(ql);
|
|
1495
|
-
var
|
|
1495
|
+
var Pr = { exports: {} }, ou = Pr.exports, vs;
|
|
1496
1496
|
function su() {
|
|
1497
1497
|
return vs || (vs = 1, (function(t, e) {
|
|
1498
1498
|
(function(r, i) {
|
|
@@ -1573,7 +1573,7 @@ function su() {
|
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
1575
1575
|
})(typeof window == "object" ? window : ou);
|
|
1576
|
-
})(
|
|
1576
|
+
})(Pr, Pr.exports)), Pr.exports;
|
|
1577
1577
|
}
|
|
1578
1578
|
var xs;
|
|
1579
1579
|
function au() {
|
|
@@ -2084,7 +2084,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2084
2084
|
isSamsungBrowser: li(O)
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
|
-
var Ai = ct(c), Ti = T(c), Ei = tt(c), gn = S(c), fn = Ue(o) || st(), Nn = ke(o),
|
|
2087
|
+
var Ai = ct(c), Ti = T(c), Ei = tt(c), gn = S(c), fn = Ue(o) || st(), Nn = ke(o), Ar = Wt(c) || st(), mi = ht(c), wi = Dt(c) || st(), Si = yt(c), In = yt(c), ji = k(l), _i = re(l), Oi = pe(l) || st(), hn = K(o), Dn = ge(o), yn = ee(o), pn = Ht(o), Ci = tr(o), An = ie(l), Tn = se(l), En = ui(o), mn = di(o), wn = Mi(o), Sn = _(c), jn = Y(c), _n = gi(a), On = fi(a), Cn = yi(M), pt = Le(o) || Zt(M), vn = Ie(o), de = R(c), lt = Ii(), Tr = st(), vi = hi(), xi = Di(), bi = Ni(), xc = Zt(M), bc = Le(o) && !Zt(M), zc = H(l), Lc = te(l), kc = ci(o), Uc = li(o), Rc = function(h) {
|
|
2088
2088
|
if (!h || typeof h != "string") {
|
|
2089
2089
|
console.error("No valid user agent string was provided");
|
|
2090
2090
|
return;
|
|
@@ -2111,7 +2111,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2111
2111
|
return Oi ? p ? r.createElement(e.Fragment, null, O) : r.createElement("div", v, O) : null;
|
|
2112
2112
|
}, Vc = function(h) {
|
|
2113
2113
|
var p = h.renderWithFragment, O = h.children, v = P(h, ["renderWithFragment", "children"]);
|
|
2114
|
-
return
|
|
2114
|
+
return Ar ? p ? r.createElement(e.Fragment, null, O) : r.createElement("div", v, O) : null;
|
|
2115
2115
|
}, Bc = function(h) {
|
|
2116
2116
|
var p = h.renderWithFragment, O = h.children, v = P(h, ["renderWithFragment", "children"]);
|
|
2117
2117
|
return wi ? p ? r.createElement(e.Fragment, null, O) : r.createElement("div", v, O) : null;
|
|
@@ -2171,7 +2171,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2171
2171
|
}, {
|
|
2172
2172
|
key: "componentDidMount",
|
|
2173
2173
|
value: function() {
|
|
2174
|
-
(typeof window == "undefined" ? "undefined" : I(window)) !== void 0 &&
|
|
2174
|
+
(typeof window == "undefined" ? "undefined" : I(window)) !== void 0 && Ar && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
2175
2175
|
}
|
|
2176
2176
|
}, {
|
|
2177
2177
|
key: "componentWillUnmount",
|
|
@@ -2206,7 +2206,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2206
2206
|
p.orientation !== Ce.orientation && O(Ce);
|
|
2207
2207
|
}, [p.orientation]);
|
|
2208
2208
|
return e.useEffect(function() {
|
|
2209
|
-
return (typeof window == "undefined" ? "undefined" : I(window)) !== void 0 &&
|
|
2209
|
+
return (typeof window == "undefined" ? "undefined" : I(window)) !== void 0 && Ar && (v(), window.addEventListener("load", v, !1), window.addEventListener("resize", v, !1)), function() {
|
|
2210
2210
|
window.removeEventListener("resize", v, !1), window.removeEventListener("load", v, !1);
|
|
2211
2211
|
};
|
|
2212
2212
|
}, [v]), p;
|
|
@@ -2219,7 +2219,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2219
2219
|
var h = j || window.navigator.userAgent, p = Bo(h), O = pi(p);
|
|
2220
2220
|
return [O, p];
|
|
2221
2221
|
}
|
|
2222
|
-
return B.AndroidView = Pc, B.BrowserTypes = U, B.BrowserView = Qc, B.ConsoleView = Zc, B.CustomView = Kc, B.IEView = Yc, B.IOSView = Fc, B.MobileOnlyView = Wc, B.MobileView = Vc, B.OsTypes = J, B.SmartTVView = Hc, B.TabletView = Bc, B.WearableView = Gc, B.WinPhoneView = $c, B.browserName = wn, B.browserVersion = mn, B.deviceDetect = $t, B.deviceType = de, B.engineName = _n, B.engineVersion = On, B.fullBrowserVersion = En, B.getSelectorsByUserAgent = Rc, B.getUA = Cn, B.isAndroid = ji, B.isBrowser = Si, B.isChrome = hn, B.isChromium = Nn, B.isConsole = Ti, B.isDesktop = In, B.isEdge = pt, B.isEdgeChromium = xc, B.isElectron = bi, B.isEmbedded = gn, B.isFirefox = Dn, B.isIE = Ci, B.isIOS = Oi, B.isIOS13 = lt, B.isIPad13 =
|
|
2222
|
+
return B.AndroidView = Pc, B.BrowserTypes = U, B.BrowserView = Qc, B.ConsoleView = Zc, B.CustomView = Kc, B.IEView = Yc, B.IOSView = Fc, B.MobileOnlyView = Wc, B.MobileView = Vc, B.OsTypes = J, B.SmartTVView = Hc, B.TabletView = Bc, B.WearableView = Gc, B.WinPhoneView = $c, B.browserName = wn, B.browserVersion = mn, B.deviceDetect = $t, B.deviceType = de, B.engineName = _n, B.engineVersion = On, B.fullBrowserVersion = En, B.getSelectorsByUserAgent = Rc, B.getUA = Cn, B.isAndroid = ji, B.isBrowser = Si, B.isChrome = hn, B.isChromium = Nn, B.isConsole = Ti, B.isDesktop = In, B.isEdge = pt, B.isEdgeChromium = xc, B.isElectron = bi, B.isEmbedded = gn, B.isFirefox = Dn, B.isIE = Ci, B.isIOS = Oi, B.isIOS13 = lt, B.isIPad13 = Tr, B.isIPhone13 = vi, B.isIPod13 = xi, B.isLegacyEdge = bc, B.isMIUI = kc, B.isMacOs = Lc, B.isMobile = Ar, B.isMobileOnly = mi, B.isMobileSafari = fn, B.isOpera = pn, B.isSafari = yn, B.isSamsungBrowser = Uc, B.isSmartTV = Ai, B.isTablet = wi, B.isWearable = Ei, B.isWinPhone = _i, B.isWindows = zc, B.isYandex = vn, B.mobileModel = jn, B.mobileVendor = Sn, B.osName = Tn, B.osVersion = An, B.parseUserAgent = u, B.setUserAgent = ue, B.useDeviceData = Bo, B.useDeviceSelectors = qc, B.useMobileOrientation = Xc, B.withOrientationChange = Jc, B;
|
|
2223
2223
|
}
|
|
2224
2224
|
var Je = au();
|
|
2225
2225
|
const $i = {
|
|
@@ -2231,8 +2231,8 @@ const $i = {
|
|
|
2231
2231
|
DOCREADER: "DOCREADER",
|
|
2232
2232
|
LIVENESS: "LIVENESS"
|
|
2233
2233
|
}, lu = Object.values(cu);
|
|
2234
|
-
var
|
|
2235
|
-
const uu = 120, du = 200, ro = "PROGRESS", wt = "IDV", nr = "idv-session-data",
|
|
2234
|
+
var $r = /* @__PURE__ */ ((t) => (t.DID_START_SESSION = "DID_START_SESSION", t.DID_END_SESSION = "DID_END_SESSION", t.DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION", t.DID_CONTINUE_REMOTE_SESSION = "DID_CONTINUE_REMOTE_SESSION", t))($r || {}), _t = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.CONNECTION_ISSUE = 1] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 2] = "WORKFLOW_ISSUE", t[t.INTERNAL_ISSUE = 3] = "INTERNAL_ISSUE", t[t.SCENARIO_IN_PROGRESS = 4] = "SCENARIO_IN_PROGRESS", t))(_t || {}), Qe = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.CONFIG_MISSED_OR_INVALID = 1] = "CONFIG_MISSED_OR_INVALID", t[t.INITIALIZATION_REQUIRED = 2] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Qe || {}), Xe = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.PREPARED_REQUIRED = 1] = "PREPARED_REQUIRED", t[t.START_SESSION_FAILED = 2] = "START_SESSION_FAILED", t[t.UNKNOWN_STEP = 3] = "UNKNOWN_STEP", t[t.MODULES_ISSUE = 4] = "MODULES_ISSUE", t[t.ALREADY_STARTED = 5] = "ALREADY_STARTED", t[t.INTERNAL_ISSUE = 6] = "INTERNAL_ISSUE", t))(Xe || {}), un = /* @__PURE__ */ ((t) => (t[t.CONFIG_MISSED_OR_INVALID = 0] = "CONFIG_MISSED_OR_INVALID", t[t.MODULES_INSTANTIATION_FAILURE = 1] = "MODULES_INSTANTIATION_FAILURE", t[t.INITIALIZATION_IN_PROGRESS = 2] = "INITIALIZATION_IN_PROGRESS", t))(un || {}), Wi = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 1] = "WORKFLOW_ISSUE", t))(Wi || {}), Ot = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t))(Ot || {}), sr = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.TOKEN_ERROR = 3] = "TOKEN_ERROR", t[t.CONNECTION_ISSUE = 4] = "CONNECTION_ISSUE", t))(sr || {}), ut = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.SAME_STEP = 3] = "SAME_STEP", t[t.IS_PROCESSING = 4] = "IS_PROCESSING", t[t.NOT_DATA_TYPE = 5] = "NOT_DATA_TYPE", t))(ut || {}), Hi = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Hi || {}), Gt = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t))(Gt || {});
|
|
2235
|
+
const uu = 120, du = 200, ro = "PROGRESS", wt = "IDV", nr = "idv-session-data", kr = "idv-session-auth-token", Mu = "rgl-uid", gu = "en", fu = (t, e) => bo(t, e), bo = (t, e) => {
|
|
2236
2236
|
const r = io(t, e);
|
|
2237
2237
|
for (const i in r)
|
|
2238
2238
|
if (Object.prototype.hasOwnProperty.call(r, i)) {
|
|
@@ -2352,16 +2352,16 @@ const wu = (t, e, r) => {
|
|
|
2352
2352
|
};
|
|
2353
2353
|
}, ar = {
|
|
2354
2354
|
setAuthTokenToLs: (t, e, r, i, n) => {
|
|
2355
|
-
const o = localStorage.getItem(
|
|
2355
|
+
const o = localStorage.getItem(kr), s = o ? JSON.parse(o) : {}, c = {
|
|
2356
2356
|
authToken: t,
|
|
2357
2357
|
tokenExpiresAt: n,
|
|
2358
2358
|
workflowId: i,
|
|
2359
2359
|
sessionId: r
|
|
2360
2360
|
};
|
|
2361
|
-
s[e] = c, localStorage.setItem(
|
|
2361
|
+
s[e] = c, localStorage.setItem(kr, JSON.stringify(s));
|
|
2362
2362
|
},
|
|
2363
2363
|
getAuthTokenLs: () => {
|
|
2364
|
-
const t = localStorage.getItem(
|
|
2364
|
+
const t = localStorage.getItem(kr);
|
|
2365
2365
|
if (!t) return null;
|
|
2366
2366
|
try {
|
|
2367
2367
|
const e = JSON.parse(t);
|
|
@@ -2372,11 +2372,11 @@ const wu = (t, e, r) => {
|
|
|
2372
2372
|
},
|
|
2373
2373
|
removeAuthTokenLs: (t) => {
|
|
2374
2374
|
if (!t) return !1;
|
|
2375
|
-
const e = localStorage.getItem(
|
|
2375
|
+
const e = localStorage.getItem(kr);
|
|
2376
2376
|
if (!e) return !1;
|
|
2377
2377
|
try {
|
|
2378
2378
|
const r = JSON.parse(e);
|
|
2379
|
-
return Object.prototype.hasOwnProperty.call(r, t) ? (delete r[t], localStorage.setItem(
|
|
2379
|
+
return Object.prototype.hasOwnProperty.call(r, t) ? (delete r[t], localStorage.setItem(kr, JSON.stringify(r)), !0) : !1;
|
|
2380
2380
|
} catch (r) {
|
|
2381
2381
|
return !1;
|
|
2382
2382
|
}
|
|
@@ -2496,7 +2496,7 @@ const ks = () => {
|
|
|
2496
2496
|
osVersion: `${Je.osVersion}`,
|
|
2497
2497
|
hostAppId: ks(),
|
|
2498
2498
|
host: ks(),
|
|
2499
|
-
sdkVersion: "3.4.
|
|
2499
|
+
sdkVersion: "3.4.313-nightly".trim(),
|
|
2500
2500
|
name: navigator.userAgent,
|
|
2501
2501
|
deviceModel: `${Je.osName}/${Je.osVersion} ${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
2502
2502
|
hostAppVersion: `${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
@@ -2812,7 +2812,7 @@ const kt = class kt extends me {
|
|
|
2812
2812
|
}
|
|
2813
2813
|
};
|
|
2814
2814
|
kt.MODULE = wt, kt.ERROR_ENUM_NAME = "ConnectionError", kt.SHORT_CODE = "CO";
|
|
2815
|
-
let
|
|
2815
|
+
let Wr = kt;
|
|
2816
2816
|
const Ut = class Ut extends me {
|
|
2817
2817
|
constructor({
|
|
2818
2818
|
errorCode: e,
|
|
@@ -2835,7 +2835,7 @@ const Ut = class Ut extends me {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
};
|
|
2837
2837
|
Ut.MODULE = wt, Ut.ERROR_ENUM_NAME = "SessionError", Ut.SHORT_CODE = "SE";
|
|
2838
|
-
let
|
|
2838
|
+
let Hr = Ut;
|
|
2839
2839
|
const Rt = class Rt extends me {
|
|
2840
2840
|
constructor({
|
|
2841
2841
|
errorCode: e,
|
|
@@ -2905,14 +2905,14 @@ const Qt = class Qt extends me {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
Qt.MODULE = wt, Qt.ERROR_ENUM_NAME = "WorkflowPlatformError", Qt.SHORT_CODE = "WPE";
|
|
2907
2907
|
let Ji = Qt;
|
|
2908
|
-
class
|
|
2908
|
+
class _r {
|
|
2909
2909
|
constructor() {
|
|
2910
2910
|
this.webSocket = null, this.messageCallbacks = /* @__PURE__ */ new Set(), this.reconnectCallbacks = /* @__PURE__ */ new Set(), this.connected = !1, this.wasEverConnected = !1, this.lastConnectConfig = null, this.reconnectAttempt = 0, this.baseReconnectDelay = 1e3, this.maxReconnectDelay = 1e4, this.multiplier = 1.5, this.reconnectAttemptThreshold = Math.log(this.maxReconnectDelay / this.baseReconnectDelay) / Math.log(this.multiplier), this.resetReconnectAttempt = () => {
|
|
2911
2911
|
this.reconnectAttempt = 0;
|
|
2912
2912
|
}, this.calculateReconnectDelay = () => this.reconnectAttempt < this.reconnectAttemptThreshold ? this.baseReconnectDelay * Xo(this.multiplier, this.reconnectAttempt) : this.maxReconnectDelay;
|
|
2913
2913
|
}
|
|
2914
2914
|
static getInstance() {
|
|
2915
|
-
return
|
|
2915
|
+
return _r.instance || (_r.instance = new _r()), _r.instance;
|
|
2916
2916
|
}
|
|
2917
2917
|
isConnected() {
|
|
2918
2918
|
return this.connected;
|
|
@@ -2951,7 +2951,7 @@ class jr {
|
|
|
2951
2951
|
(e = this.webSocket) == null || e.close(), this.webSocket = null, this.connected = !1, this.wasEverConnected = !1, this.lastConnectConfig = null, this.clearSubscriptions();
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
|
-
const rt =
|
|
2954
|
+
const rt = _r.getInstance();
|
|
2955
2955
|
var Fu = 0;
|
|
2956
2956
|
function E(t, e, r, i, n, o) {
|
|
2957
2957
|
e || (e = {});
|
|
@@ -2962,22 +2962,22 @@ function E(t, e, r, i, n, o) {
|
|
|
2962
2962
|
return Me.vnode && Me.vnode(l), l;
|
|
2963
2963
|
}
|
|
2964
2964
|
const ni = Ao(void 0), Vu = ({ perform: t, children: e, setIsProcessingCallback: r, devSettings: i, failedAssets: n }) => /* @__PURE__ */ E(ni.Provider, { value: { perform: t, setIsProcessingCallback: r, devSettings: i, failedAssets: n }, children: e }), Bu = () => {
|
|
2965
|
-
const t =
|
|
2965
|
+
const t = yr(ni);
|
|
2966
2966
|
if (!t)
|
|
2967
2967
|
throw new Error("useDevSettings must be used within a Context Provider");
|
|
2968
2968
|
return { devSettings: t == null ? void 0 : t.devSettings };
|
|
2969
2969
|
}, er = () => {
|
|
2970
|
-
const t =
|
|
2970
|
+
const t = yr(ni);
|
|
2971
2971
|
if (!t)
|
|
2972
2972
|
throw new Error("usePerform must be used within a PerformProvider");
|
|
2973
2973
|
return { perform: t.perform };
|
|
2974
2974
|
}, $u = () => {
|
|
2975
|
-
const t =
|
|
2975
|
+
const t = yr(ni);
|
|
2976
2976
|
if (!t)
|
|
2977
2977
|
throw new Error("useSetIsProcessingCallback must be used within a Context Provider");
|
|
2978
2978
|
return { setIsProcessingCallback: t.setIsProcessingCallback };
|
|
2979
2979
|
}, Wu = () => {
|
|
2980
|
-
const t =
|
|
2980
|
+
const t = yr(ni);
|
|
2981
2981
|
if (!t)
|
|
2982
2982
|
throw new Error("useFailedAssets must be used within a Context Provider");
|
|
2983
2983
|
return { failedAssets: t.failedAssets };
|
|
@@ -3008,7 +3008,7 @@ const ni = Ao(void 0), Vu = ({ perform: t, children: e, setIsProcessingCallback:
|
|
|
3008
3008
|
ASPECT_FILL: "ASPECT_FILL",
|
|
3009
3009
|
ASPECT_FIT: "ASPECT_FIT",
|
|
3010
3010
|
FILL: "FILL"
|
|
3011
|
-
},
|
|
3011
|
+
}, Er = {
|
|
3012
3012
|
TEXT_EXPANDABLE: "text_expandable",
|
|
3013
3013
|
TEXT_SINGLE_LINE: "text_single_line",
|
|
3014
3014
|
SELECTOR_OPTIONS: "selector_options",
|
|
@@ -3099,7 +3099,7 @@ const ni = Ao(void 0), Vu = ({ perform: t, children: e, setIsProcessingCallback:
|
|
|
3099
3099
|
}, tc = ({ type: t, color: e }) => {
|
|
3100
3100
|
const r = oo[t] || oo[Ae.DEFAULT], i = r == null ? void 0 : r(e);
|
|
3101
3101
|
return t === Ae.SPINNER ? /* @__PURE__ */ E(Zu, { dataUrl: i }) : /* @__PURE__ */ E("img", { src: i, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
|
|
3102
|
-
}, oi = "#005fcc", qi = "idv-gui",
|
|
3102
|
+
}, oi = "#005fcc", qi = "idv-gui", gr = {
|
|
3103
3103
|
DECODING_FAILED: 0,
|
|
3104
3104
|
IMAGE_LOADING_FAILED: 1
|
|
3105
3105
|
}, Bn = {
|
|
@@ -3731,9 +3731,9 @@ const rd = (t, e) => e ? !!(t.base64 && e.base64.has(t.base64) || t.imageURL &&
|
|
|
3731
3731
|
}
|
|
3732
3732
|
) });
|
|
3733
3733
|
};
|
|
3734
|
-
var ai = (t) => t.type === "checkbox",
|
|
3734
|
+
var ai = (t) => t.type === "checkbox", dr = (t) => t instanceof Date, Ke = (t) => t == null;
|
|
3735
3735
|
const sc = (t) => typeof t == "object";
|
|
3736
|
-
var ze = (t) => !Ke(t) && !Array.isArray(t) && sc(t) && !
|
|
3736
|
+
var ze = (t) => !Ke(t) && !Array.isArray(t) && sc(t) && !dr(t), ac = (t) => ze(t) && t.target ? ai(t.target) ? t.target.checked : t.target.value : t, hd = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, cc = (t, e) => t.has(hd(e)), Dd = (t) => {
|
|
3737
3737
|
const e = t.constructor && t.constructor.prototype;
|
|
3738
3738
|
return ze(e) && e.hasOwnProperty("isPrototypeOf");
|
|
3739
3739
|
}, ko = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
@@ -3832,7 +3832,7 @@ var nt = (t) => typeof t == "string", so = (t, e, r, i, n) => nt(t) ? (i && e.wa
|
|
|
3832
3832
|
function Mt(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
3833
3833
|
if (ao(t) || ao(e))
|
|
3834
3834
|
return Object.is(t, e);
|
|
3835
|
-
if (
|
|
3835
|
+
if (dr(t) && dr(e))
|
|
3836
3836
|
return Object.is(t.getTime(), e.getTime());
|
|
3837
3837
|
const i = Object.keys(t), n = Object.keys(e);
|
|
3838
3838
|
if (i.length !== n.length)
|
|
@@ -3846,7 +3846,7 @@ function Mt(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
3846
3846
|
return !1;
|
|
3847
3847
|
if (o !== "ref") {
|
|
3848
3848
|
const c = e[o];
|
|
3849
|
-
if (
|
|
3849
|
+
if (dr(s) && dr(c) || ze(s) && ze(c) || Array.isArray(s) && Array.isArray(c) ? !Mt(s, c, r) : !Object.is(s, c))
|
|
3850
3850
|
return !1;
|
|
3851
3851
|
}
|
|
3852
3852
|
}
|
|
@@ -3983,7 +3983,7 @@ var Ed = (t, e, r, i, n) => e ? X(w({}, r[t]), {
|
|
|
3983
3983
|
types: X(w({}, r[t] && r[t].types ? r[t].types : {}), {
|
|
3984
3984
|
[i]: n || !0
|
|
3985
3985
|
})
|
|
3986
|
-
}) : {},
|
|
3986
|
+
}) : {}, Zr = (t) => Array.isArray(t) ? t : [t], Fs = () => {
|
|
3987
3987
|
let t = [];
|
|
3988
3988
|
return {
|
|
3989
3989
|
get observers() {
|
|
@@ -4054,12 +4054,12 @@ function co(t, e = {}) {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
return e;
|
|
4056
4056
|
}
|
|
4057
|
-
function
|
|
4057
|
+
function Sr(t, e, r) {
|
|
4058
4058
|
r || (r = co(e));
|
|
4059
4059
|
for (const i in t) {
|
|
4060
4060
|
const n = t[i];
|
|
4061
4061
|
if (fc(n))
|
|
4062
|
-
Se(e) || ao(r[i]) ? r[i] = co(n, Array.isArray(n) ? [] : {}) :
|
|
4062
|
+
Se(e) || ao(r[i]) ? r[i] = co(n, Array.isArray(n) ? [] : {}) : Sr(n, Ke(e) ? {} : e[i], r[i]);
|
|
4063
4063
|
else {
|
|
4064
4064
|
const o = e[i];
|
|
4065
4065
|
r[i] = !Mt(n, o);
|
|
@@ -4108,7 +4108,7 @@ var _d = (t, e, r, i) => {
|
|
|
4108
4108
|
fields: n,
|
|
4109
4109
|
shouldUseNativeValidation: i
|
|
4110
4110
|
};
|
|
4111
|
-
}, nn = (t) => t instanceof RegExp,
|
|
4111
|
+
}, nn = (t) => t instanceof RegExp, Ur = (t) => Se(t) ? t : nn(t) ? t.source : ze(t) ? nn(t.value) ? t.value.source : t.value : t, Hs = (t) => ({
|
|
4112
4112
|
isOnSubmit: !t || t === dt.onSubmit,
|
|
4113
4113
|
isOnBlur: t === dt.onBlur,
|
|
4114
4114
|
isOnChange: t === dt.onChange,
|
|
@@ -4117,7 +4117,7 @@ var _d = (t, e, r, i) => {
|
|
|
4117
4117
|
});
|
|
4118
4118
|
const Zs = "AsyncFunction";
|
|
4119
4119
|
var Od = (t) => !!t && !!t.validate && !!(We(t.validate) && t.validate.constructor.name === Zs || ze(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Zs)), Cd = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Gs = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((i) => t.startsWith(i) && /^\.\w+/.test(t.slice(i.length))));
|
|
4120
|
-
const
|
|
4120
|
+
const Gr = (t, e, r, i) => {
|
|
4121
4121
|
for (const o of r || Object.keys(t)) {
|
|
4122
4122
|
const s = Q(t, o);
|
|
4123
4123
|
if (s) {
|
|
@@ -4127,9 +4127,9 @@ const Zr = (t, e, r, i) => {
|
|
|
4127
4127
|
return !0;
|
|
4128
4128
|
if (c.ref && e(c.ref, c.name) && !i)
|
|
4129
4129
|
return !0;
|
|
4130
|
-
if (
|
|
4130
|
+
if (Gr(a, e))
|
|
4131
4131
|
break;
|
|
4132
|
-
} else if (ze(a) &&
|
|
4132
|
+
} else if (ze(a) && Gr(a, e))
|
|
4133
4133
|
break;
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
@@ -4166,8 +4166,8 @@ var vd = (t, e, r, i) => {
|
|
|
4166
4166
|
r(t);
|
|
4167
4167
|
const s = t, { name: n } = s, o = rr(s, ["name"]);
|
|
4168
4168
|
return $e(o) || Object.keys(o).length >= Object.keys(e).length || Object.keys(o).find((c) => e[c] === (!i || dt.all));
|
|
4169
|
-
}, xd = (t, e, r) => !t || !e || t === e ||
|
|
4170
|
-
const i =
|
|
4169
|
+
}, xd = (t, e, r) => !t || !e || t === e || Zr(t).some((i) => i && (r ? i === e : i.startsWith(e) || e.startsWith(i))), bd = (t, e, r, i, n) => n.isOnAll ? !1 : !r && n.isOnTouch ? !(e || t) : (r ? i.isOnBlur : n.isOnBlur) ? !t : (r ? i.isOnChange : n.isOnChange) ? t : !0, zd = (t, e) => !Uo(Q(t, e)).length && xe(t, e), Ld = (t, e, r) => {
|
|
4170
|
+
const i = Zr(Q(t, r));
|
|
4171
4171
|
return we(i, "root", e[r]), we(t, r, i), t;
|
|
4172
4172
|
};
|
|
4173
4173
|
function Js(t, e, r = "validate") {
|
|
@@ -4178,7 +4178,7 @@ function Js(t, e, r = "validate") {
|
|
|
4178
4178
|
ref: e
|
|
4179
4179
|
};
|
|
4180
4180
|
}
|
|
4181
|
-
var
|
|
4181
|
+
var mr = (t) => ze(t) && !nn(t) ? t : {
|
|
4182
4182
|
value: t,
|
|
4183
4183
|
message: ""
|
|
4184
4184
|
}, Xs = (t, e, r, i, n, o) => b(null, null, function* () {
|
|
@@ -4196,7 +4196,7 @@ var Er = (t) => ze(t) && !nn(t) ? t : {
|
|
|
4196
4196
|
}, P(z ? q : ye, Ne));
|
|
4197
4197
|
};
|
|
4198
4198
|
if (o ? !Array.isArray(y) || !y.length : a && (!F && (le || Ke(y)) || it(y) && !y || L && !Nc(c).isValid || x && !hc(c).isValid)) {
|
|
4199
|
-
const { value: z, message: G } = nt(a) ? { value: !!a, message: a } :
|
|
4199
|
+
const { value: z, message: G } = nt(a) ? { value: !!a, message: a } : mr(a);
|
|
4200
4200
|
if (z && (C[N] = w({
|
|
4201
4201
|
type: jt.required,
|
|
4202
4202
|
message: G,
|
|
@@ -4206,7 +4206,7 @@ var Er = (t) => ze(t) && !nn(t) ? t : {
|
|
|
4206
4206
|
}
|
|
4207
4207
|
if (!le && (!Ke(d) || !Ke(u))) {
|
|
4208
4208
|
let z, G;
|
|
4209
|
-
const oe =
|
|
4209
|
+
const oe = mr(u), q = mr(d);
|
|
4210
4210
|
if (!Ke(y) && !isNaN(y)) {
|
|
4211
4211
|
const ye = s.valueAsNumber || y && +y;
|
|
4212
4212
|
Ke(oe.value) || (z = ye > oe.value), Ke(q.value) || (G = ye < q.value);
|
|
@@ -4218,12 +4218,12 @@ var Er = (t) => ze(t) && !nn(t) ? t : {
|
|
|
4218
4218
|
return m(C[N].message), C;
|
|
4219
4219
|
}
|
|
4220
4220
|
if ((l || M) && !le && (nt(y) || o && Array.isArray(y))) {
|
|
4221
|
-
const z =
|
|
4221
|
+
const z = mr(l), G = mr(M), oe = !Ke(z.value) && y.length > +z.value, q = !Ke(G.value) && y.length < +G.value;
|
|
4222
4222
|
if ((oe || q) && ($(oe, z.message, G.message), !i))
|
|
4223
4223
|
return m(C[N].message), C;
|
|
4224
4224
|
}
|
|
4225
4225
|
if (g && !le && nt(y)) {
|
|
4226
|
-
const { value: z, message: G } =
|
|
4226
|
+
const { value: z, message: G } = mr(g);
|
|
4227
4227
|
if (nn(z) && !y.match(z) && (C[N] = w({
|
|
4228
4228
|
type: jt.pattern,
|
|
4229
4229
|
message: G,
|
|
@@ -4328,7 +4328,7 @@ function Ud(t = {}) {
|
|
|
4328
4328
|
const H = _(Q(r.touchedFields, T), Y.argA, Y.argB);
|
|
4329
4329
|
R && we(r.touchedFields, T, H);
|
|
4330
4330
|
}
|
|
4331
|
-
(d.dirtyFields || u.dirtyFields) && (r.dirtyFields =
|
|
4331
|
+
(d.dirtyFields || u.dirtyFields) && (r.dirtyFields = Sr(n, o)), g.state.next({
|
|
4332
4332
|
name: T,
|
|
4333
4333
|
isDirty: z(T, S),
|
|
4334
4334
|
dirtyFields: r.dirtyFields,
|
|
@@ -4434,7 +4434,7 @@ function Ud(t = {}) {
|
|
|
4434
4434
|
if (!S.hasOwnProperty(Y))
|
|
4435
4435
|
return;
|
|
4436
4436
|
const R = S[Y], k = T + "." + Y, H = Q(i, k);
|
|
4437
|
-
(c.array.has(T) || ze(R) || H && !H._f) && !
|
|
4437
|
+
(c.array.has(T) || ze(R) || H && !H._f) && !dr(R) ? ye(k, R, _) : q(k, R, _);
|
|
4438
4438
|
}
|
|
4439
4439
|
}, Ne = (T, S, _ = {}) => {
|
|
4440
4440
|
const Y = Q(i, T), R = c.array.has(T), k = ve(S);
|
|
@@ -4443,7 +4443,7 @@ function Ud(t = {}) {
|
|
|
4443
4443
|
values: ve(o)
|
|
4444
4444
|
}), (d.isDirty || d.dirtyFields || u.isDirty || u.dirtyFields) && _.shouldDirty && g.state.next({
|
|
4445
4445
|
name: T,
|
|
4446
|
-
dirtyFields:
|
|
4446
|
+
dirtyFields: Sr(n, o),
|
|
4447
4447
|
isDirty: z(T, k)
|
|
4448
4448
|
})) : Y && !Y._f && !Ke(k) ? ye(T, k, _) : q(T, k, _), Gs(T, c) ? g.state.next(X(w({}, r), {
|
|
4449
4449
|
name: T,
|
|
@@ -4457,7 +4457,7 @@ function Ud(t = {}) {
|
|
|
4457
4457
|
const S = T.target;
|
|
4458
4458
|
let _ = S.name, Y = !0;
|
|
4459
4459
|
const R = Q(i, _), k = (re) => {
|
|
4460
|
-
Y = Number.isNaN(re) ||
|
|
4460
|
+
Y = Number.isNaN(re) || dr(re) && isNaN(re.getTime()) || Mt(re, Q(o, _, re));
|
|
4461
4461
|
}, H = Hs(e.mode), te = Hs(e.reValidateMode);
|
|
4462
4462
|
if (R) {
|
|
4463
4463
|
let re, pe;
|
|
@@ -4485,7 +4485,7 @@ function Ud(t = {}) {
|
|
|
4485
4485
|
return T.focus(), 1;
|
|
4486
4486
|
}, U = (_, ...Y) => b(null, [_, ...Y], function* (T, S = {}) {
|
|
4487
4487
|
let R, k;
|
|
4488
|
-
const H =
|
|
4488
|
+
const H = Zr(T);
|
|
4489
4489
|
if (e.resolver) {
|
|
4490
4490
|
const te = yield le(Se(T) ? T : H);
|
|
4491
4491
|
R = $e(te), k = T ? !H.some((re) => Q(te, re)) : R;
|
|
@@ -4495,7 +4495,7 @@ function Ud(t = {}) {
|
|
|
4495
4495
|
})))).every(Boolean), !(!k && !r.isValid) && I()) : k = R = yield P(i);
|
|
4496
4496
|
return g.state.next(X(w(w({}, !nt(T) || (d.isValid || u.isValid) && R !== r.isValid ? {} : { name: T }), e.resolver || !T ? { isValid: R } : {}), {
|
|
4497
4497
|
errors: r.errors
|
|
4498
|
-
})), S.shouldFocus && !k &&
|
|
4498
|
+
})), S.shouldFocus && !k && Gr(i, Z, T ? H : c.mount), k;
|
|
4499
4499
|
}), J = (T, S) => {
|
|
4500
4500
|
let _ = w({}, s.mount ? o : n);
|
|
4501
4501
|
return S && (_ = Mc(S.dirtyFields ? r.dirtyFields : r.touchedFields, _)), Se(T) ? _ : nt(T) ? Q(_, T) : T.map((Y) => Q(_, Y));
|
|
@@ -4506,7 +4506,7 @@ function Ud(t = {}) {
|
|
|
4506
4506
|
isValidating: !!Q(r.validatingFields, T),
|
|
4507
4507
|
isTouched: !!Q((S || r).touchedFields, T)
|
|
4508
4508
|
}), Te = (T) => {
|
|
4509
|
-
T &&
|
|
4509
|
+
T && Zr(T).forEach((S) => xe(r.errors, S)), g.state.next({
|
|
4510
4510
|
errors: T ? r.errors : {}
|
|
4511
4511
|
});
|
|
4512
4512
|
}, ue = (T, S, _) => {
|
|
@@ -4531,7 +4531,7 @@ function Ud(t = {}) {
|
|
|
4531
4531
|
}).unsubscribe, Ze = (T) => (s.mount = !0, u = w(w({}, u), T.formState), ne(X(w({}, T), {
|
|
4532
4532
|
formState: w(w({}, M), T.formState)
|
|
4533
4533
|
}))), Ve = (T, S = {}) => {
|
|
4534
|
-
for (const _ of T ?
|
|
4534
|
+
for (const _ of T ? Zr(T) : c.mount)
|
|
4535
4535
|
c.mount.delete(_), c.array.delete(_), S.keepValue || (xe(i, _), xe(o, _)), !S.keepError && xe(r.errors, _), !S.keepDirty && xe(r.dirtyFields, _), !S.keepTouched && xe(r.touchedFields, _), !S.keepIsValidating && xe(r.validatingFields, _), !e.shouldUnregister && !S.keepDefaultValue && xe(n, _);
|
|
4536
4536
|
g.state.next({
|
|
4537
4537
|
values: ve(o)
|
|
@@ -4554,11 +4554,11 @@ function Ud(t = {}) {
|
|
|
4554
4554
|
name: T
|
|
4555
4555
|
}) : C(T, !0, S.value), X(w(w({}, Y ? { disabled: S.disabled || e.disabled } : {}), e.progressive ? {
|
|
4556
4556
|
required: !!S.required,
|
|
4557
|
-
min:
|
|
4558
|
-
max:
|
|
4559
|
-
minLength:
|
|
4560
|
-
maxLength:
|
|
4561
|
-
pattern:
|
|
4557
|
+
min: Ur(S.min),
|
|
4558
|
+
max: Ur(S.max),
|
|
4559
|
+
minLength: Ur(S.minLength),
|
|
4560
|
+
maxLength: Ur(S.maxLength),
|
|
4561
|
+
pattern: Ur(S.pattern)
|
|
4562
4562
|
} : {}), {
|
|
4563
4563
|
name: T,
|
|
4564
4564
|
onChange: ae,
|
|
@@ -4583,8 +4583,8 @@ function Ud(t = {}) {
|
|
|
4583
4583
|
_ = Q(i, T, {}), _._f && (_._f.mount = !1), (e.shouldUnregister || S.shouldUnregister) && !(cc(c.array, T) && s.action) && c.unMount.add(T);
|
|
4584
4584
|
}
|
|
4585
4585
|
});
|
|
4586
|
-
}, at = () => e.shouldFocusError &&
|
|
4587
|
-
it(T) && (g.state.next({ disabled: T }),
|
|
4586
|
+
}, at = () => e.shouldFocusError && Gr(i, Z, c.mount), It = (T) => {
|
|
4587
|
+
it(T) && (g.state.next({ disabled: T }), Gr(i, (S, _) => {
|
|
4588
4588
|
const Y = Q(i, _);
|
|
4589
4589
|
Y && (S.disabled = Y._f.disabled || T, Array.isArray(Y._f.refs) && Y._f.refs.forEach((R) => {
|
|
4590
4590
|
R.disabled = Y._f.disabled || T;
|
|
@@ -4631,7 +4631,7 @@ function Ud(t = {}) {
|
|
|
4631
4631
|
if (S.keepDirtyValues) {
|
|
4632
4632
|
const H = /* @__PURE__ */ new Set([
|
|
4633
4633
|
...c.mount,
|
|
4634
|
-
...Object.keys(
|
|
4634
|
+
...Object.keys(Sr(n, o))
|
|
4635
4635
|
]);
|
|
4636
4636
|
for (const te of Array.from(H)) {
|
|
4637
4637
|
const re = Q(r.dirtyFields, te), pe = Q(o, te), ie = Q(k, te);
|
|
@@ -4676,7 +4676,7 @@ function Ud(t = {}) {
|
|
|
4676
4676
|
submitCount: S.keepSubmitCount ? r.submitCount : 0,
|
|
4677
4677
|
isDirty: R ? !1 : S.keepDirty ? r.isDirty : !!(S.keepDefaultValues && !Mt(T, n)),
|
|
4678
4678
|
isSubmitted: S.keepIsSubmitted ? r.isSubmitted : !1,
|
|
4679
|
-
dirtyFields: R ? {} : S.keepDirtyValues ? S.keepDefaultValues && o ?
|
|
4679
|
+
dirtyFields: R ? {} : S.keepDirtyValues ? S.keepDefaultValues && o ? Sr(n, o) : r.dirtyFields : S.keepDefaultValues && T ? Sr(n, T) : S.keepDirty ? r.dirtyFields : {},
|
|
4680
4680
|
touchedFields: S.keepTouched ? r.touchedFields : {},
|
|
4681
4681
|
errors: S.keepErrors ? r.errors : {},
|
|
4682
4682
|
isSubmitSuccessful: S.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
|
|
@@ -4834,7 +4834,7 @@ function Rd(t = {}) {
|
|
|
4834
4834
|
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(w({}, o._formState))), o._removeUnmounted();
|
|
4835
4835
|
}), e.current.formState = W.useMemo(() => uc(i, o), [o, i]), e.current;
|
|
4836
4836
|
}
|
|
4837
|
-
const
|
|
4837
|
+
const zr = (t, e) => {
|
|
4838
4838
|
const r = {};
|
|
4839
4839
|
return t.forEach((i, n) => {
|
|
4840
4840
|
if (i.type === Ps.NOT_EMPTY && (r.required = (o) => e && Ju(o) ? i.message : !0), i.type === Ps.REGEX) {
|
|
@@ -5157,7 +5157,7 @@ const br = (t, e) => {
|
|
|
5157
5157
|
control: t,
|
|
5158
5158
|
rules: {
|
|
5159
5159
|
required: !!r.required,
|
|
5160
|
-
validate:
|
|
5160
|
+
validate: zr(r.validators, !!r.required)
|
|
5161
5161
|
},
|
|
5162
5162
|
render: ({ field: s }) => {
|
|
5163
5163
|
const c = n.find((a) => a.value === s.value);
|
|
@@ -5216,7 +5216,7 @@ const br = (t, e) => {
|
|
|
5216
5216
|
control: t,
|
|
5217
5217
|
rules: {
|
|
5218
5218
|
required: !!r.required,
|
|
5219
|
-
validate:
|
|
5219
|
+
validate: zr(r.validators, !!r.required)
|
|
5220
5220
|
},
|
|
5221
5221
|
render: ({ field: s }) => {
|
|
5222
5222
|
const c = n.filter((a) => {
|
|
@@ -5306,7 +5306,7 @@ const br = (t, e) => {
|
|
|
5306
5306
|
}
|
|
5307
5307
|
}, i(a, {
|
|
5308
5308
|
required: !!r.required,
|
|
5309
|
-
validate:
|
|
5309
|
+
validate: zr(
|
|
5310
5310
|
r.validators,
|
|
5311
5311
|
!!r.required
|
|
5312
5312
|
)
|
|
@@ -5409,7 +5409,7 @@ const br = (t, e) => {
|
|
|
5409
5409
|
}
|
|
5410
5410
|
}, i(a, {
|
|
5411
5411
|
required: !!r.required,
|
|
5412
|
-
validate:
|
|
5412
|
+
validate: zr(
|
|
5413
5413
|
r.validators,
|
|
5414
5414
|
!!r.required
|
|
5415
5415
|
)
|
|
@@ -5525,7 +5525,7 @@ const br = (t, e) => {
|
|
|
5525
5525
|
"input",
|
|
5526
5526
|
X(w({}, r(i, {
|
|
5527
5527
|
required: !!e.required,
|
|
5528
|
-
validate:
|
|
5528
|
+
validate: zr(e.validators, !!e.required)
|
|
5529
5529
|
})), {
|
|
5530
5530
|
id: i,
|
|
5531
5531
|
type: n((o = t.textField) == null ? void 0 : o.inputType),
|
|
@@ -5571,7 +5571,7 @@ const br = (t, e) => {
|
|
|
5571
5571
|
"textarea",
|
|
5572
5572
|
X(w({}, r(i, {
|
|
5573
5573
|
required: !!e.required,
|
|
5574
|
-
validate:
|
|
5574
|
+
validate: zr(e.validators, !!e.required)
|
|
5575
5575
|
})), {
|
|
5576
5576
|
id: i,
|
|
5577
5577
|
placeholder: (n = e.placeholder) != null ? n : "",
|
|
@@ -5608,7 +5608,7 @@ const br = (t, e) => {
|
|
|
5608
5608
|
underlyingError: i,
|
|
5609
5609
|
underlyingBaseError: n
|
|
5610
5610
|
}) {
|
|
5611
|
-
const o = me.getErrorKey(e,
|
|
5611
|
+
const o = me.getErrorKey(e, gr);
|
|
5612
5612
|
super({
|
|
5613
5613
|
errorCode: e,
|
|
5614
5614
|
errorCodeKey: o,
|
|
@@ -5629,14 +5629,14 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5629
5629
|
const a = dn.FORM, { perform: l } = er();
|
|
5630
5630
|
if (!o || (o == null ? void 0 : o.questions.length) === 0) {
|
|
5631
5631
|
const m = new Xt({
|
|
5632
|
-
errorCode:
|
|
5632
|
+
errorCode: gr.DECODING_FAILED,
|
|
5633
5633
|
message: "No dataSource or no data for questions in the dataSource"
|
|
5634
5634
|
});
|
|
5635
5635
|
return l(m), null;
|
|
5636
5636
|
}
|
|
5637
5637
|
if (!(n != null && n.itemTypes) || Array.isArray(n == null ? void 0 : n.itemTypes) && ((A = n == null ? void 0 : n.itemTypes) == null ? void 0 : A.length) === 0) {
|
|
5638
5638
|
const m = new Xt({
|
|
5639
|
-
errorCode:
|
|
5639
|
+
errorCode: gr.DECODING_FAILED,
|
|
5640
5640
|
message: "No questions in the itemTypes field or itemTypes is not an array"
|
|
5641
5641
|
});
|
|
5642
5642
|
return l(m), null;
|
|
@@ -5703,7 +5703,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5703
5703
|
}), L = (z, G) => G.find((oe) => !oe.questionIds && oe.answerType === z), F = C ? x(String(m.id), n.itemTypes) || L(m.answerType, n.itemTypes) : n.itemTypes.find((z) => z.answerType === m.answerType);
|
|
5704
5704
|
if (!F) {
|
|
5705
5705
|
const z = new Xt({
|
|
5706
|
-
errorCode:
|
|
5706
|
+
errorCode: gr.DECODING_FAILED,
|
|
5707
5707
|
message: "The question template has not been found"
|
|
5708
5708
|
});
|
|
5709
5709
|
l(z);
|
|
@@ -5723,7 +5723,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5723
5723
|
validationBorderColor: F == null ? void 0 : F.validationBorderColor,
|
|
5724
5724
|
validationBorderWidth: F == null ? void 0 : F.validationBorderWidth,
|
|
5725
5725
|
children: [
|
|
5726
|
-
le ===
|
|
5726
|
+
le === Er.TEXT_EXPANDABLE && /* @__PURE__ */ E(
|
|
5727
5727
|
Kd,
|
|
5728
5728
|
{
|
|
5729
5729
|
layout: F,
|
|
@@ -5731,7 +5731,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5731
5731
|
register: u
|
|
5732
5732
|
}
|
|
5733
5733
|
),
|
|
5734
|
-
le ===
|
|
5734
|
+
le === Er.TEXT_SINGLE_LINE && /* @__PURE__ */ E(
|
|
5735
5735
|
Gd,
|
|
5736
5736
|
{
|
|
5737
5737
|
layout: F,
|
|
@@ -5739,7 +5739,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5739
5739
|
register: u
|
|
5740
5740
|
}
|
|
5741
5741
|
),
|
|
5742
|
-
le ===
|
|
5742
|
+
le === Er.SELECTOR_OPTIONS && /* @__PURE__ */ E(
|
|
5743
5743
|
Bd,
|
|
5744
5744
|
{
|
|
5745
5745
|
layout: F,
|
|
@@ -5748,7 +5748,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5748
5748
|
register: u
|
|
5749
5749
|
}
|
|
5750
5750
|
),
|
|
5751
|
-
le ===
|
|
5751
|
+
le === Er.SELECTOR_BUTTONS && /* @__PURE__ */ E(
|
|
5752
5752
|
Wd,
|
|
5753
5753
|
{
|
|
5754
5754
|
layout: F,
|
|
@@ -5757,7 +5757,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5757
5757
|
register: u
|
|
5758
5758
|
}
|
|
5759
5759
|
),
|
|
5760
|
-
le ===
|
|
5760
|
+
le === Er.SELECTOR_DROPDOWN && /* @__PURE__ */ E(
|
|
5761
5761
|
Yd,
|
|
5762
5762
|
{
|
|
5763
5763
|
control: D,
|
|
@@ -5766,7 +5766,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5766
5766
|
parentElementRef: d
|
|
5767
5767
|
}
|
|
5768
5768
|
),
|
|
5769
|
-
le ===
|
|
5769
|
+
le === Er.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ E(
|
|
5770
5770
|
Fd,
|
|
5771
5771
|
{
|
|
5772
5772
|
control: D,
|
|
@@ -6008,7 +6008,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6008
6008
|
} catch (t) {
|
|
6009
6009
|
return null;
|
|
6010
6010
|
}
|
|
6011
|
-
}),
|
|
6011
|
+
}), Rr = (t) => b(null, null, function* () {
|
|
6012
6012
|
return new Promise((e) => {
|
|
6013
6013
|
if (!navigator.geolocation)
|
|
6014
6014
|
return e({
|
|
@@ -6159,7 +6159,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6159
6159
|
u == null || u(!1);
|
|
6160
6160
|
return;
|
|
6161
6161
|
}
|
|
6162
|
-
const z = yield
|
|
6162
|
+
const z = yield Rr(A);
|
|
6163
6163
|
P && d(z, M);
|
|
6164
6164
|
}), () => {
|
|
6165
6165
|
Je.isSafari || a || (P = !1);
|
|
@@ -6182,7 +6182,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6182
6182
|
M
|
|
6183
6183
|
)), z.state === "granted") {
|
|
6184
6184
|
u == null || u(!0);
|
|
6185
|
-
const G = yield
|
|
6185
|
+
const G = yield Rr(A);
|
|
6186
6186
|
if (!P) return;
|
|
6187
6187
|
d(G, M);
|
|
6188
6188
|
}
|
|
@@ -6198,8 +6198,8 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6198
6198
|
N();
|
|
6199
6199
|
return;
|
|
6200
6200
|
}
|
|
6201
|
-
if ($ === "prompt" && (yield
|
|
6202
|
-
const z = yield
|
|
6201
|
+
if ($ === "prompt" && (yield Rr()), $ === "granted") {
|
|
6202
|
+
const z = yield Rr(A);
|
|
6203
6203
|
d(z, M);
|
|
6204
6204
|
}
|
|
6205
6205
|
}), x = (P) => b(null, null, function* () {
|
|
@@ -6208,7 +6208,7 @@ const Jd = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6208
6208
|
return;
|
|
6209
6209
|
}
|
|
6210
6210
|
u == null || u(!0);
|
|
6211
|
-
const z = yield
|
|
6211
|
+
const z = yield Rr(A);
|
|
6212
6212
|
d(z, M);
|
|
6213
6213
|
}), L = (P) => {
|
|
6214
6214
|
P.preventDefault(), I();
|
|
@@ -6284,7 +6284,7 @@ var yM = Object.defineProperty, on = Object.getOwnPropertySymbols, pc = Object.p
|
|
|
6284
6284
|
e.indexOf(i) < 0 && Ac.call(t, i) && (r[i] = t[i]);
|
|
6285
6285
|
return r;
|
|
6286
6286
|
};
|
|
6287
|
-
var
|
|
6287
|
+
var Ir;
|
|
6288
6288
|
((t) => {
|
|
6289
6289
|
const e = class De {
|
|
6290
6290
|
/*-- Constructor (low level) and fields --*/
|
|
@@ -6789,7 +6789,7 @@ var Nr;
|
|
|
6789
6789
|
o.NUMERIC_REGEX = /^[0-9]*$/, o.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, o.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
6790
6790
|
let s = o;
|
|
6791
6791
|
t.QrSegment = o;
|
|
6792
|
-
})(
|
|
6792
|
+
})(Ir || (Ir = {}));
|
|
6793
6793
|
((t) => {
|
|
6794
6794
|
((e) => {
|
|
6795
6795
|
const r = class {
|
|
@@ -6801,7 +6801,7 @@ var Nr;
|
|
|
6801
6801
|
};
|
|
6802
6802
|
r.LOW = new r(0, 1), r.MEDIUM = new r(1, 0), r.QUARTILE = new r(2, 3), r.HIGH = new r(3, 2), e.Ecc = r;
|
|
6803
6803
|
})(t.QrCode || (t.QrCode = {}));
|
|
6804
|
-
})(
|
|
6804
|
+
})(Ir || (Ir = {}));
|
|
6805
6805
|
((t) => {
|
|
6806
6806
|
((e) => {
|
|
6807
6807
|
const r = class {
|
|
@@ -6818,13 +6818,13 @@ var Nr;
|
|
|
6818
6818
|
};
|
|
6819
6819
|
r.NUMERIC = new r(1, [10, 12, 14]), r.ALPHANUMERIC = new r(2, [9, 11, 13]), r.BYTE = new r(4, [8, 16, 16]), r.KANJI = new r(8, [8, 10, 12]), r.ECI = new r(7, [0, 0, 0]), e.Mode = r;
|
|
6820
6820
|
})(t.QrSegment || (t.QrSegment = {}));
|
|
6821
|
-
})(
|
|
6822
|
-
var
|
|
6821
|
+
})(Ir || (Ir = {}));
|
|
6822
|
+
var Or = Ir;
|
|
6823
6823
|
var pM = {
|
|
6824
|
-
L:
|
|
6825
|
-
M:
|
|
6826
|
-
Q:
|
|
6827
|
-
H:
|
|
6824
|
+
L: Or.QrCode.Ecc.LOW,
|
|
6825
|
+
M: Or.QrCode.Ecc.MEDIUM,
|
|
6826
|
+
Q: Or.QrCode.Ecc.QUARTILE,
|
|
6827
|
+
H: Or.QrCode.Ecc.HIGH
|
|
6828
6828
|
}, Tc = 128, Ec = "L", mc = "#FFFFFF", wc = "#000000", Sc = !1, jc = 1, AM = 4, TM = 0, EM = 0.1;
|
|
6829
6829
|
function _c(t, e = 0) {
|
|
6830
6830
|
const r = [];
|
|
@@ -6878,8 +6878,8 @@ function Cc({
|
|
|
6878
6878
|
boostLevel: c
|
|
6879
6879
|
}) {
|
|
6880
6880
|
let a = W.useMemo(() => {
|
|
6881
|
-
const f = (Array.isArray(t) ? t : [t]).reduce((N, I) => (N.push(...
|
|
6882
|
-
return
|
|
6881
|
+
const f = (Array.isArray(t) ? t : [t]).reduce((N, I) => (N.push(...Or.QrSegment.makeSegments(I)), N), []);
|
|
6882
|
+
return Or.QrCode.encodeSegments(
|
|
6883
6883
|
f,
|
|
6884
6884
|
pM[e],
|
|
6885
6885
|
r,
|
|
@@ -7129,7 +7129,7 @@ const _M = {
|
|
|
7129
7129
|
const { perform: a } = er();
|
|
7130
7130
|
if (!s && typeof s != "string") {
|
|
7131
7131
|
const l = new Xt({
|
|
7132
|
-
errorCode:
|
|
7132
|
+
errorCode: gr.DECODING_FAILED,
|
|
7133
7133
|
message: "No QR URL in the client config"
|
|
7134
7134
|
});
|
|
7135
7135
|
return a(l), null;
|
|
@@ -7272,7 +7272,7 @@ const _M = {
|
|
|
7272
7272
|
}
|
|
7273
7273
|
);
|
|
7274
7274
|
const n = new Xt({
|
|
7275
|
-
errorCode:
|
|
7275
|
+
errorCode: gr.DECODING_FAILED,
|
|
7276
7276
|
message: "Unsupported step template id"
|
|
7277
7277
|
});
|
|
7278
7278
|
return i(n), null;
|
|
@@ -7305,19 +7305,21 @@ const zM = ({ children: t, locale: e }) => {
|
|
|
7305
7305
|
failedAssets: e.failedAssets,
|
|
7306
7306
|
children: /* @__PURE__ */ E(zM, { locale: e.locale, children: /* @__PURE__ */ E(bM, { moduleProps: e }) })
|
|
7307
7307
|
}
|
|
7308
|
-
),
|
|
7308
|
+
), Kr = class Kr extends Ru {
|
|
7309
7309
|
constructor() {
|
|
7310
|
-
super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
|
|
7310
|
+
super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this._renderVersion = 0, this.props = null;
|
|
7311
7311
|
}
|
|
7312
7312
|
setProps(e) {
|
|
7313
|
-
var
|
|
7314
|
-
|
|
7313
|
+
var i;
|
|
7314
|
+
const r = e.moduleProps.failedAssets;
|
|
7315
|
+
if (r && r.blockingAssets.size > 0) {
|
|
7315
7316
|
const n = new Xt({
|
|
7316
|
-
errorCode:
|
|
7317
|
+
errorCode: gr.IMAGE_LOADING_FAILED,
|
|
7318
|
+
message: `Failed to load image asset${r.blockingAssets.size > 1 ? "s" : ""}: ${[...r.blockingAssets].join(", ")}`
|
|
7317
7319
|
});
|
|
7318
7320
|
(i = e.perform) == null || i.call(e, n);
|
|
7319
7321
|
}
|
|
7320
|
-
this.props = {
|
|
7322
|
+
this._renderVersion++, this.props = {
|
|
7321
7323
|
idvEventListener: e.idvEventListener,
|
|
7322
7324
|
moduleProps: e.moduleProps,
|
|
7323
7325
|
isProcessing: e.isProcessing,
|
|
@@ -7352,7 +7354,7 @@ const zM = ({ children: t, locale: e }) => {
|
|
|
7352
7354
|
}
|
|
7353
7355
|
`, this.shadowRoot.querySelector("#idv-gui-styles") || this.shadowRoot.appendChild(e);
|
|
7354
7356
|
}
|
|
7355
|
-
|
|
7357
|
+
Nr(
|
|
7356
7358
|
/* @__PURE__ */ E(
|
|
7357
7359
|
LM,
|
|
7358
7360
|
{
|
|
@@ -7361,13 +7363,14 @@ const zM = ({ children: t, locale: e }) => {
|
|
|
7361
7363
|
idvEventListener: this.props.idvEventListener,
|
|
7362
7364
|
isProcessing: this.props.isProcessing,
|
|
7363
7365
|
devSettings: this.props.devSettings
|
|
7364
|
-
}
|
|
7366
|
+
},
|
|
7367
|
+
this._renderVersion
|
|
7365
7368
|
),
|
|
7366
7369
|
this._shadowRoot
|
|
7367
7370
|
);
|
|
7368
7371
|
}
|
|
7369
7372
|
disconnectedCallback() {
|
|
7370
|
-
|
|
7373
|
+
Nr(null, this._shadowRoot), setTimeout(() => {
|
|
7371
7374
|
this._mounted && (this._mounted = !1);
|
|
7372
7375
|
});
|
|
7373
7376
|
}
|
|
@@ -7382,8 +7385,8 @@ const zM = ({ children: t, locale: e }) => {
|
|
|
7382
7385
|
Hn = !1;
|
|
7383
7386
|
}
|
|
7384
7387
|
};
|
|
7385
|
-
|
|
7386
|
-
let sn =
|
|
7388
|
+
Kr.displayName = qi, Kr.getSupportedTemplates = () => Object.values(At), Kr.getIdentifier = () => qi;
|
|
7389
|
+
let sn = Kr;
|
|
7387
7390
|
Pu(qi, sn);
|
|
7388
7391
|
const kM = (t, e) => ({
|
|
7389
7392
|
_isInitialized: !1,
|
|
@@ -7445,7 +7448,7 @@ const kM = (t, e) => ({
|
|
|
7445
7448
|
}),
|
|
7446
7449
|
_continueSession: (i, n) => b(null, null, function* () {
|
|
7447
7450
|
var g, f;
|
|
7448
|
-
const o = e().startConfig, s = "apiKey" in o && typeof o.apiKey == "string", c = (g = e().workflow) == null ? void 0 : g.id, a = n ?
|
|
7451
|
+
const o = e().startConfig, s = "apiKey" in o && typeof o.apiKey == "string", c = (g = e().workflow) == null ? void 0 : g.id, a = n ? $r.DID_CONTINUE_REMOTE_SESSION : $r.DID_START_RESTORE_SESSION;
|
|
7449
7452
|
let l;
|
|
7450
7453
|
if (n)
|
|
7451
7454
|
l = n;
|
|
@@ -7801,7 +7804,7 @@ const kM = (t, e) => ({
|
|
|
7801
7804
|
locale: y.locale
|
|
7802
7805
|
}), e().listener({
|
|
7803
7806
|
eventType: $i.MESSAGE,
|
|
7804
|
-
message:
|
|
7807
|
+
message: $r.DID_START_SESSION,
|
|
7805
7808
|
module: "IDV"
|
|
7806
7809
|
}), {};
|
|
7807
7810
|
});
|
|
@@ -8318,7 +8321,7 @@ class UM {
|
|
|
8318
8321
|
});
|
|
8319
8322
|
}
|
|
8320
8323
|
}
|
|
8321
|
-
const RM = 3e4,
|
|
8324
|
+
const RM = 3e4, lr = class lr {
|
|
8322
8325
|
static collectAssetsFromJson(e) {
|
|
8323
8326
|
const r = [], i = (n) => {
|
|
8324
8327
|
if (!n || typeof n != "object") return;
|
|
@@ -8341,23 +8344,20 @@ const RM = 3e4, Kr = class Kr {
|
|
|
8341
8344
|
if (e.prepareRequired) {
|
|
8342
8345
|
if (e.base64) {
|
|
8343
8346
|
if (yield this.checkImageBySrc(e.base64)) return;
|
|
8344
|
-
this.failedAssets.base64.add(e.base64)
|
|
8347
|
+
if (this.failedAssets.base64.add(e.base64), e.failurePolicy === "error") {
|
|
8348
|
+
this.failedAssets.blockingAssets.add("base64 string");
|
|
8349
|
+
return;
|
|
8350
|
+
}
|
|
8345
8351
|
}
|
|
8346
8352
|
if (!e.imageId) {
|
|
8347
8353
|
if (e.imageURL) {
|
|
8348
8354
|
if (yield this.checkImageBySrc(e.imageURL)) return;
|
|
8349
|
-
this.failedAssets.imageURL.add(e.imageURL)
|
|
8350
|
-
|
|
8351
|
-
switch (e.failurePolicy) {
|
|
8352
|
-
case "error":
|
|
8353
|
-
this.failedAssets.isCritical = !0;
|
|
8354
|
-
return;
|
|
8355
|
-
case "placeholderImage":
|
|
8356
|
-
e.placeholderImage && (yield this.checkImage(e.placeholderImage));
|
|
8357
|
-
return;
|
|
8358
|
-
default:
|
|
8355
|
+
if (this.failedAssets.imageURL.add(e.imageURL), e.failurePolicy === "error") {
|
|
8356
|
+
this.failedAssets.blockingAssets.add(e.imageURL);
|
|
8359
8357
|
return;
|
|
8358
|
+
}
|
|
8360
8359
|
}
|
|
8360
|
+
e.failurePolicy === "placeholderImage" && e.placeholderImage && (yield this.checkImage(e.placeholderImage));
|
|
8361
8361
|
}
|
|
8362
8362
|
}
|
|
8363
8363
|
});
|
|
@@ -8373,7 +8373,14 @@ const RM = 3e4, Kr = class Kr {
|
|
|
8373
8373
|
};
|
|
8374
8374
|
try {
|
|
8375
8375
|
if (e.length === 0) return s(!1);
|
|
8376
|
-
n = setTimeout(() => s(!1), RM), i = new Image(), i.onload = () =>
|
|
8376
|
+
n = setTimeout(() => s(!1), RM), i = new Image(), i.onload = () => b(null, null, function* () {
|
|
8377
|
+
if (!(i != null && i.decode)) return s(!0);
|
|
8378
|
+
try {
|
|
8379
|
+
yield i.decode();
|
|
8380
|
+
} catch (a) {
|
|
8381
|
+
}
|
|
8382
|
+
lr.decodedImages.set(e, i), s(!0);
|
|
8383
|
+
}), i.onerror = () => s(!1), i.src = e;
|
|
8377
8384
|
} catch (a) {
|
|
8378
8385
|
s(!1);
|
|
8379
8386
|
}
|
|
@@ -8383,24 +8390,24 @@ const RM = 3e4, Kr = class Kr {
|
|
|
8383
8390
|
static warmupImagesFromJson(e) {
|
|
8384
8391
|
return b(this, null, function* () {
|
|
8385
8392
|
if (!e) return this.failedAssets;
|
|
8386
|
-
const i =
|
|
8393
|
+
const i = lr.collectAssetsFromJson(e).map((n) => lr.checkImage(n));
|
|
8387
8394
|
return yield Promise.allSettled(i), this.failedAssets;
|
|
8388
8395
|
});
|
|
8389
8396
|
}
|
|
8390
8397
|
static clearFailedAssets() {
|
|
8391
|
-
this.failedAssets = {
|
|
8398
|
+
this.decodedImages.clear(), this.failedAssets = {
|
|
8392
8399
|
imageURL: /* @__PURE__ */ new Set(),
|
|
8393
8400
|
base64: /* @__PURE__ */ new Set(),
|
|
8394
|
-
|
|
8401
|
+
blockingAssets: /* @__PURE__ */ new Set()
|
|
8395
8402
|
};
|
|
8396
8403
|
}
|
|
8397
8404
|
};
|
|
8398
|
-
|
|
8405
|
+
lr.decodedImages = /* @__PURE__ */ new Map(), lr.failedAssets = {
|
|
8399
8406
|
imageURL: /* @__PURE__ */ new Set(),
|
|
8400
8407
|
base64: /* @__PURE__ */ new Set(),
|
|
8401
|
-
|
|
8408
|
+
blockingAssets: /* @__PURE__ */ new Set()
|
|
8402
8409
|
};
|
|
8403
|
-
let an =
|
|
8410
|
+
let an = lr;
|
|
8404
8411
|
const PM = (t, e) => ({
|
|
8405
8412
|
fetchService: null,
|
|
8406
8413
|
isProcessing: !1,
|
|
@@ -8416,7 +8423,7 @@ const PM = (t, e) => ({
|
|
|
8416
8423
|
return b(this, null, function* () {
|
|
8417
8424
|
const o = yield e().fetchService.connectByApiKey(i, !1);
|
|
8418
8425
|
if (o.code !== 0) {
|
|
8419
|
-
const s = o.code === 4 ? Gt.HTTP_ISSUE : Gt.PROVIDER_ERROR, c = new
|
|
8426
|
+
const s = o.code === 4 ? Gt.HTTP_ISSUE : Gt.PROVIDER_ERROR, c = new Wr({
|
|
8420
8427
|
errorCode: s,
|
|
8421
8428
|
message: JSON.stringify(o.data)
|
|
8422
8429
|
});
|
|
@@ -8433,7 +8440,7 @@ const PM = (t, e) => ({
|
|
|
8433
8440
|
const n = yield e().fetchService.connectByUserPass(i);
|
|
8434
8441
|
if (n.code !== 0) {
|
|
8435
8442
|
const o = n.code === 4 ? Gt.HTTP_ISSUE : Gt.PROVIDER_ERROR;
|
|
8436
|
-
return { error: new
|
|
8443
|
+
return { error: new Wr({
|
|
8437
8444
|
errorCode: o,
|
|
8438
8445
|
message: JSON.stringify(n.data)
|
|
8439
8446
|
}) };
|
|
@@ -8445,7 +8452,7 @@ const PM = (t, e) => ({
|
|
|
8445
8452
|
return b(this, null, function* () {
|
|
8446
8453
|
const o = yield e().fetchService.connectByUrl(i);
|
|
8447
8454
|
if (o.code !== 0) {
|
|
8448
|
-
const s = o.code === 4 ? Gt.HTTP_ISSUE : Gt.PROVIDER_ERROR, c = new
|
|
8455
|
+
const s = o.code === 4 ? Gt.HTTP_ISSUE : Gt.PROVIDER_ERROR, c = new Wr({
|
|
8449
8456
|
errorCode: s,
|
|
8450
8457
|
message: JSON.stringify(o.data)
|
|
8451
8458
|
}), a = new Gi({
|
|
@@ -8514,7 +8521,7 @@ const PM = (t, e) => ({
|
|
|
8514
8521
|
const l = yield e().fetchService.pushData(i, n, o);
|
|
8515
8522
|
let M = null;
|
|
8516
8523
|
if (l.code === 4 && (M = ut.HTTP_ISSUE), l.code !== 0 && l.code !== 4 && (M = ut.PROVIDER_ERROR), M !== null) {
|
|
8517
|
-
const d = new
|
|
8524
|
+
const d = new Hr({
|
|
8518
8525
|
errorCode: ut.HTTP_ISSUE
|
|
8519
8526
|
});
|
|
8520
8527
|
s = new qe({
|
|
@@ -8537,7 +8544,7 @@ const PM = (t, e) => ({
|
|
|
8537
8544
|
const i = yield e().fetchService.getSessionState(), n = i.code === 0, o = n ? i.data : null, s = (f = o == null ? void 0 : o.currentStep) != null ? f : "", c = o == null ? void 0 : o.isProcessingFiles, a = (I = (N = o == null ? void 0 : o.workflow) == null ? void 0 : N.steps) != null ? I : [], l = Su(a, s), M = i.code === 4, d = i.code !== 0 && i.code !== 4, u = n && (!i.data.workflow || !i.data.currentStep);
|
|
8538
8545
|
let g = null;
|
|
8539
8546
|
if (a && !l && (g = ut.NOT_DATA_TYPE), M && (g = ut.HTTP_ISSUE), d && (g = ut.PROVIDER_ERROR), c && (g = ut.IS_PROCESSING), u && (g = ut.DECODING_FAILED), g !== null) {
|
|
8540
|
-
const D = new
|
|
8547
|
+
const D = new Hr({ errorCode: g });
|
|
8541
8548
|
return { error: new qe({
|
|
8542
8549
|
errorCode: Xe.INTERNAL_ISSUE,
|
|
8543
8550
|
underlyingBaseError: D
|
|
@@ -8572,7 +8579,7 @@ const PM = (t, e) => ({
|
|
|
8572
8579
|
g(!0);
|
|
8573
8580
|
}), i != null && i.error ? { error: i.error } : i != null && i.data ? { sessionData: i.data } : { error: new qe({
|
|
8574
8581
|
errorCode: Xe.INTERNAL_ISSUE,
|
|
8575
|
-
underlyingBaseError: new
|
|
8582
|
+
underlyingBaseError: new Hr({ errorCode: ut.DECODING_FAILED })
|
|
8576
8583
|
}) };
|
|
8577
8584
|
}),
|
|
8578
8585
|
setFinalStepAndStopProcess: (i) => {
|
|
@@ -8589,7 +8596,7 @@ const PM = (t, e) => ({
|
|
|
8589
8596
|
}
|
|
8590
8597
|
}), e().resetSession(), e().listener({
|
|
8591
8598
|
eventType: $i.MESSAGE,
|
|
8592
|
-
message:
|
|
8599
|
+
message: $r.DID_END_SESSION,
|
|
8593
8600
|
module: "IDV"
|
|
8594
8601
|
}));
|
|
8595
8602
|
},
|
|
@@ -8914,8 +8921,8 @@ function VM() {
|
|
|
8914
8921
|
}, pe = function() {
|
|
8915
8922
|
return A.name === $ || A.name === P;
|
|
8916
8923
|
}, ie = function() {
|
|
8917
|
-
var lt = I(),
|
|
8918
|
-
return typeof
|
|
8924
|
+
var lt = I(), Tr = lt && lt.userAgent.toLowerCase();
|
|
8925
|
+
return typeof Tr == "string" ? /electron/.test(Tr) : !1;
|
|
8919
8926
|
}, se = function() {
|
|
8920
8927
|
var lt = I();
|
|
8921
8928
|
return lt && (/iPad|iPhone|iPod/.test(lt.platform) || lt.platform === "MacIntel" && lt.maxTouchPoints > 1) && !window.MSStream;
|
|
@@ -8947,16 +8954,16 @@ function VM() {
|
|
|
8947
8954
|
return L;
|
|
8948
8955
|
}, Mi = function() {
|
|
8949
8956
|
return m.type;
|
|
8950
|
-
}, gi = St(), fi = Dt(), Ni = ht(), Zt = te() || K(), Ii = Y(), st = at() || K(), hi = Nt(), Di = et() || K(), yi = $t(), pi = Wt(), Ai = tt(), Ti = T() || K(), Ei = S(), gn = _(), fn = H(), Nn = re(),
|
|
8957
|
+
}, gi = St(), fi = Dt(), Ni = ht(), Zt = te() || K(), Ii = Y(), st = at() || K(), hi = Nt(), Di = et() || K(), yi = $t(), pi = Wt(), Ai = tt(), Ti = T() || K(), Ei = S(), gn = _(), fn = H(), Nn = re(), Ar = pe(), mi = ee(), wi = Ue(), Si = Le(), In = Ie(), ji = Ht(), _i = tr(), Oi = ci(), hn = li(), Dn = ui(), yn = di(), pn = R() || It(), Ci = k(), An = Mi(), Tn = se(), En = K(), mn = ge(), wn = ke(), Sn = ie(), jn = It(), _n = R(), On = ct(), Cn = yt(), pt = M(m.type);
|
|
8951
8958
|
function vn() {
|
|
8952
|
-
var de = pt.isBrowser, lt = pt.isMobile,
|
|
8959
|
+
var de = pt.isBrowser, lt = pt.isMobile, Tr = pt.isTablet, vi = pt.isSmartTV, xi = pt.isConsole, bi = pt.isWearable;
|
|
8953
8960
|
if (de)
|
|
8954
8961
|
return d(de, A, C, x, L);
|
|
8955
8962
|
if (vi)
|
|
8956
8963
|
return N(vi, C, x, L);
|
|
8957
8964
|
if (xi)
|
|
8958
8965
|
return f(xi, C, x, L);
|
|
8959
|
-
if (lt ||
|
|
8966
|
+
if (lt || Tr)
|
|
8960
8967
|
return u(pt, m, x, L);
|
|
8961
8968
|
if (bi)
|
|
8962
8969
|
return g(bi, C, x, L);
|
|
@@ -8979,7 +8986,7 @@ function VM() {
|
|
|
8979
8986
|
isFirefox: gn,
|
|
8980
8987
|
isSafari: fn,
|
|
8981
8988
|
isOpera: Nn,
|
|
8982
|
-
isIE:
|
|
8989
|
+
isIE: Ar,
|
|
8983
8990
|
osVersion: mi,
|
|
8984
8991
|
osName: wi,
|
|
8985
8992
|
fullBrowserVersion: Si,
|
|
@@ -9250,12 +9257,12 @@ const $M = sl`
|
|
|
9250
9257
|
z-index: 1000;
|
|
9251
9258
|
}
|
|
9252
9259
|
`;
|
|
9253
|
-
var WM = Object.defineProperty,
|
|
9260
|
+
var WM = Object.defineProperty, pr = (t, e, r, i) => {
|
|
9254
9261
|
for (var n = void 0, o = t.length - 1, s; o >= 0; o--)
|
|
9255
9262
|
(s = t[o]) && (n = s(e, r, n) || n);
|
|
9256
9263
|
return n && WM(e, r, n), n;
|
|
9257
9264
|
};
|
|
9258
|
-
const Vo = class Vo extends
|
|
9265
|
+
const Vo = class Vo extends Fr {
|
|
9259
9266
|
constructor() {
|
|
9260
9267
|
super(...arguments), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new FM(this), this.store = Be.getInitialState(), this.currentScreenConfig = this.store.currentScreenConfig, this.processingScreenFromWorkflow = this.store.getProcessingTemplate(), this.isProcessing = this.store.isProcessing, this.loadedModules = this.store.externalModules, this.modulesConfig = this.store.modulesConfig, this.nonce = this.store.nonce, this._listenerFromModule = (e, r) => {
|
|
9261
9268
|
this.store.listener({
|
|
@@ -9308,7 +9315,7 @@ const Vo = class Vo extends Yr {
|
|
|
9308
9315
|
return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = ea(e.id, r), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
|
|
9309
9316
|
}
|
|
9310
9317
|
get version() {
|
|
9311
|
-
return `${"3.4.
|
|
9318
|
+
return `${"3.4.313-nightly".trim()}`;
|
|
9312
9319
|
}
|
|
9313
9320
|
disconnectedCallback() {
|
|
9314
9321
|
var e;
|
|
@@ -9329,26 +9336,26 @@ const Vo = class Vo extends Yr {
|
|
|
9329
9336
|
};
|
|
9330
9337
|
Vo.styles = [$M];
|
|
9331
9338
|
let mt = Vo;
|
|
9332
|
-
|
|
9333
|
-
|
|
9339
|
+
pr([
|
|
9340
|
+
hr()
|
|
9334
9341
|
], mt.prototype, "store");
|
|
9335
|
-
|
|
9336
|
-
|
|
9342
|
+
pr([
|
|
9343
|
+
hr()
|
|
9337
9344
|
], mt.prototype, "currentScreenConfig");
|
|
9338
|
-
|
|
9339
|
-
|
|
9345
|
+
pr([
|
|
9346
|
+
hr()
|
|
9340
9347
|
], mt.prototype, "processingScreenFromWorkflow");
|
|
9341
|
-
|
|
9342
|
-
|
|
9348
|
+
pr([
|
|
9349
|
+
hr()
|
|
9343
9350
|
], mt.prototype, "isProcessing");
|
|
9344
|
-
|
|
9345
|
-
|
|
9351
|
+
pr([
|
|
9352
|
+
hr()
|
|
9346
9353
|
], mt.prototype, "loadedModules");
|
|
9347
|
-
|
|
9348
|
-
|
|
9354
|
+
pr([
|
|
9355
|
+
hr()
|
|
9349
9356
|
], mt.prototype, "modulesConfig");
|
|
9350
|
-
|
|
9351
|
-
|
|
9357
|
+
pr([
|
|
9358
|
+
hr()
|
|
9352
9359
|
], mt.prototype, "nonce");
|
|
9353
9360
|
class sg {
|
|
9354
9361
|
/** main commands */
|
|
@@ -9398,7 +9405,7 @@ class sg {
|
|
|
9398
9405
|
}
|
|
9399
9406
|
/** service commands */
|
|
9400
9407
|
get version() {
|
|
9401
|
-
return "3.4.
|
|
9408
|
+
return "3.4.313-nightly";
|
|
9402
9409
|
}
|
|
9403
9410
|
set nonce(e) {
|
|
9404
9411
|
Be.getState().setNonce(e);
|
|
@@ -9423,7 +9430,7 @@ export {
|
|
|
9423
9430
|
Hi as DeinitializationError,
|
|
9424
9431
|
$i as IdvEventTypesEnum,
|
|
9425
9432
|
sg as IdvIntegrationService,
|
|
9426
|
-
|
|
9433
|
+
$r as IdvServiceMessages,
|
|
9427
9434
|
mt as IdvWebComponent,
|
|
9428
9435
|
un as InitializeError,
|
|
9429
9436
|
_t as PrepareWorkflowError,
|