@appcues/web-sdk 7.22.0 → 7.22.2
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/CHANGELOG.md +18 -0
- package/build/{bootstrap.npm.DMq-vI0T.js → bootstrap.npm.DVu00o0l.js} +2907 -2907
- package/build/{index.QI4DYuGc.js → index.C4xtQVZQ.js} +1 -1
- package/build/{index.npm.CfaoL5ef.js → index.npm.B4soqbH3.js} +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.DsYIY7WT.js → open-builder.CqAPcpHg.js} +946 -946
- package/package.json +1 -1
- /package/build/{checklist.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → checklist.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{container.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → container.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{debugger.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → debugger.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{modal-step-legacy-render.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → modal-step-legacy-render.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{modal.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → modal.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{satisfaction-survey.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → satisfaction-survey.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{test-mode.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → test-mode.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
- /package/build/{tooltip.f9681d189ecb108cc563ee5897bcd3e9689d7b07.css → tooltip.045d5c27f0910d4361d7c1398c89d399dee2edb5.css} +0 -0
|
@@ -15,7 +15,7 @@ function po(e, t) {
|
|
|
15
15
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
16
16
|
return n;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function re(e) {
|
|
19
19
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
20
20
|
if (n) return n.call(e);
|
|
21
21
|
if (e && typeof e.length == "number") return {
|
|
@@ -25,7 +25,7 @@ function ne(e) {
|
|
|
25
25
|
};
|
|
26
26
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function ie(e, t) {
|
|
29
29
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
30
30
|
if (!n) return e;
|
|
31
31
|
var r = n.call(e), o, i = [], a;
|
|
@@ -47,37 +47,37 @@ function me(e, t, n) {
|
|
|
47
47
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
48
48
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var ae;
|
|
51
51
|
(function(e) {
|
|
52
52
|
e.Start = "xstate.start", e.Stop = "xstate.stop", e.Raise = "xstate.raise", e.Send = "xstate.send", e.Cancel = "xstate.cancel", e.NullEvent = "", e.Assign = "xstate.assign", e.After = "xstate.after", e.DoneState = "done.state", e.DoneInvoke = "done.invoke", e.Log = "xstate.log", e.Init = "xstate.init", e.Invoke = "xstate.invoke", e.ErrorExecution = "error.execution", e.ErrorCommunication = "error.communication", e.ErrorPlatform = "error.platform", e.ErrorCustom = "xstate.error", e.Update = "xstate.update", e.Pure = "xstate.pure", e.Choose = "xstate.choose";
|
|
53
|
-
})(
|
|
53
|
+
})(ae || (ae = {}));
|
|
54
54
|
var qt;
|
|
55
55
|
(function(e) {
|
|
56
56
|
e.Parent = "#_parent", e.Internal = "#_internal";
|
|
57
57
|
})(qt || (qt = {}));
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
var ia =
|
|
62
|
-
|
|
63
|
-
var
|
|
58
|
+
var Gr = ae.Start, ho = ae.Stop, wr = ae.Raise, Sr = ae.Send, oa = ae.Cancel, Ic = ae.NullEvent, Jr = ae.Assign;
|
|
59
|
+
ae.After;
|
|
60
|
+
ae.DoneState;
|
|
61
|
+
var ia = ae.Log, jc = ae.Init, Kr = ae.Invoke;
|
|
62
|
+
ae.ErrorExecution;
|
|
63
|
+
var Go = ae.ErrorPlatform, Pc = ae.ErrorCustom, aa = ae.Update, Dc = ae.Choose, Hc = ae.Pure, sa = ".", Jo = {}, Yr = "xstate.guard", Lc = "", Pr;
|
|
64
64
|
function vo(e, t, n) {
|
|
65
65
|
n === void 0 && (n = sa);
|
|
66
66
|
var r = Sn(e, n), o = Sn(t, n);
|
|
67
|
-
return
|
|
67
|
+
return oe(o) ? oe(r) ? o === r : !1 : oe(r) ? r in o : Object.keys(r).every(function(i) {
|
|
68
68
|
return i in o ? vo(r[i], o[i]) : !1;
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
function ca(e) {
|
|
72
72
|
try {
|
|
73
|
-
return
|
|
73
|
+
return oe(e) || typeof e == "number" ? "".concat(e) : e.type;
|
|
74
74
|
} catch {
|
|
75
75
|
throw new Error("Events must be strings or objects with a string event.type property.");
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
function Qr(e, t) {
|
|
79
79
|
try {
|
|
80
|
-
return
|
|
80
|
+
return Xt(e) ? e : e.toString().split(t);
|
|
81
81
|
} catch {
|
|
82
82
|
throw new Error("'".concat(e, "' is not a valid state path."));
|
|
83
83
|
}
|
|
@@ -88,7 +88,7 @@ function $c(e) {
|
|
|
88
88
|
function Sn(e, t) {
|
|
89
89
|
if ($c(e))
|
|
90
90
|
return e.value;
|
|
91
|
-
if (
|
|
91
|
+
if (Xt(e))
|
|
92
92
|
return or(e);
|
|
93
93
|
if (typeof e != "string")
|
|
94
94
|
return e;
|
|
@@ -109,10 +109,10 @@ function mn(e, t) {
|
|
|
109
109
|
}
|
|
110
110
|
return n;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ko(e, t, n) {
|
|
113
113
|
var r, o, i = {};
|
|
114
114
|
try {
|
|
115
|
-
for (var a =
|
|
115
|
+
for (var a = re(Object.keys(e)), s = a.next(); !s.done; s = a.next()) {
|
|
116
116
|
var c = s.value, d = e[c];
|
|
117
117
|
n(d) && (i[c] = t(d, c, e));
|
|
118
118
|
}
|
|
@@ -133,7 +133,7 @@ var Mc = function(e) {
|
|
|
133
133
|
return function(t) {
|
|
134
134
|
var n, r, o = t;
|
|
135
135
|
try {
|
|
136
|
-
for (var i =
|
|
136
|
+
for (var i = re(e), a = i.next(); !a.done; a = i.next()) {
|
|
137
137
|
var s = a.value;
|
|
138
138
|
o = o[s];
|
|
139
139
|
}
|
|
@@ -155,7 +155,7 @@ function Uc(e, t) {
|
|
|
155
155
|
return function(n) {
|
|
156
156
|
var r, o, i = n;
|
|
157
157
|
try {
|
|
158
|
-
for (var a =
|
|
158
|
+
for (var a = re(e), s = a.next(); !s.done; s = a.next()) {
|
|
159
159
|
var c = s.value;
|
|
160
160
|
i = i[t][c];
|
|
161
161
|
}
|
|
@@ -176,7 +176,7 @@ function Uc(e, t) {
|
|
|
176
176
|
function Qn(e) {
|
|
177
177
|
if (!e)
|
|
178
178
|
return [[]];
|
|
179
|
-
if (
|
|
179
|
+
if (oe(e))
|
|
180
180
|
return [[e]];
|
|
181
181
|
var t = ve(Object.keys(e).map(function(n) {
|
|
182
182
|
var r = e[n];
|
|
@@ -188,10 +188,10 @@ function Qn(e) {
|
|
|
188
188
|
}
|
|
189
189
|
function ve(e) {
|
|
190
190
|
var t;
|
|
191
|
-
return (t = []).concat.apply(t, me([],
|
|
191
|
+
return (t = []).concat.apply(t, me([], ie(e), !1));
|
|
192
192
|
}
|
|
193
193
|
function la(e) {
|
|
194
|
-
return
|
|
194
|
+
return Xt(e) ? e : [e];
|
|
195
195
|
}
|
|
196
196
|
function Be(e) {
|
|
197
197
|
return e === void 0 ? [] : la(e);
|
|
@@ -202,7 +202,7 @@ function ir(e, t, n) {
|
|
|
202
202
|
return e(t, n.data);
|
|
203
203
|
var i = {};
|
|
204
204
|
try {
|
|
205
|
-
for (var a =
|
|
205
|
+
for (var a = re(Object.keys(e)), s = a.next(); !s.done; s = a.next()) {
|
|
206
206
|
var c = s.value, d = e[c];
|
|
207
207
|
ce(d) ? i[c] = d(t, n.data) : i[c] = d;
|
|
208
208
|
}
|
|
@@ -222,16 +222,16 @@ function ir(e, t, n) {
|
|
|
222
222
|
function Wc(e) {
|
|
223
223
|
return /^(done|error)\./.test(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Yo(e) {
|
|
226
226
|
return !!(e instanceof Promise || e !== null && (ce(e) || typeof e == "object") && ce(e.then));
|
|
227
227
|
}
|
|
228
228
|
function zc(e) {
|
|
229
229
|
return e !== null && typeof e == "object" && "transition" in e && typeof e.transition == "function";
|
|
230
230
|
}
|
|
231
231
|
function ua(e, t) {
|
|
232
|
-
var n, r, o =
|
|
232
|
+
var n, r, o = ie([[], []], 2), i = o[0], a = o[1];
|
|
233
233
|
try {
|
|
234
|
-
for (var s =
|
|
234
|
+
for (var s = re(e), c = s.next(); !c.done; c = s.next()) {
|
|
235
235
|
var d = c.value;
|
|
236
236
|
t(d) ? i.push(d) : a.push(d);
|
|
237
237
|
}
|
|
@@ -251,7 +251,7 @@ function ua(e, t) {
|
|
|
251
251
|
function da(e, t) {
|
|
252
252
|
return mn(e.states, function(n, r) {
|
|
253
253
|
if (n) {
|
|
254
|
-
var o = (
|
|
254
|
+
var o = (oe(t) ? void 0 : t[r]) || (n ? n.current : void 0);
|
|
255
255
|
if (o)
|
|
256
256
|
return {
|
|
257
257
|
current: o,
|
|
@@ -277,7 +277,7 @@ function Qo(e, t, n, r) {
|
|
|
277
277
|
u = d(i, t.data, v);
|
|
278
278
|
else
|
|
279
279
|
try {
|
|
280
|
-
for (var l =
|
|
280
|
+
for (var l = re(Object.keys(d)), p = l.next(); !p.done; p = l.next()) {
|
|
281
281
|
var f = p.value, y = d[f];
|
|
282
282
|
u[f] = ce(y) ? y(i, t.data, v) : y;
|
|
283
283
|
}
|
|
@@ -298,23 +298,23 @@ function Qo(e, t, n, r) {
|
|
|
298
298
|
}
|
|
299
299
|
var Fc = function() {
|
|
300
300
|
};
|
|
301
|
-
function
|
|
301
|
+
function Xt(e) {
|
|
302
302
|
return Array.isArray(e);
|
|
303
303
|
}
|
|
304
304
|
function ce(e) {
|
|
305
305
|
return typeof e == "function";
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function oe(e) {
|
|
308
308
|
return typeof e == "string";
|
|
309
309
|
}
|
|
310
310
|
function fa(e, t) {
|
|
311
311
|
if (e)
|
|
312
|
-
return
|
|
313
|
-
type:
|
|
312
|
+
return oe(e) ? {
|
|
313
|
+
type: Yr,
|
|
314
314
|
name: e,
|
|
315
315
|
predicate: t ? t[e] : void 0
|
|
316
316
|
} : ce(e) ? {
|
|
317
|
-
type:
|
|
317
|
+
type: Yr,
|
|
318
318
|
name: e.name,
|
|
319
319
|
predicate: e
|
|
320
320
|
} : e;
|
|
@@ -334,25 +334,25 @@ Pr = {}, Pr[mt] = function() {
|
|
|
334
334
|
}, Pr[Symbol.observable] = function() {
|
|
335
335
|
return this;
|
|
336
336
|
};
|
|
337
|
-
function
|
|
337
|
+
function Gt(e) {
|
|
338
338
|
return !!e && "__xstatenode" in e;
|
|
339
339
|
}
|
|
340
340
|
function qc(e) {
|
|
341
341
|
return !!e && typeof e.send == "function";
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var Gc = /* @__PURE__ */ (function() {
|
|
344
344
|
var e = 0;
|
|
345
345
|
return function() {
|
|
346
346
|
return e++, e.toString(16);
|
|
347
347
|
};
|
|
348
348
|
})();
|
|
349
349
|
function go(e, t) {
|
|
350
|
-
return
|
|
350
|
+
return oe(e) || typeof e == "number" ? L({
|
|
351
351
|
type: e
|
|
352
352
|
}, t) : e;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
if (!
|
|
354
|
+
function Ce(e, t) {
|
|
355
|
+
if (!oe(e) && "$$type" in e && e.$$type === "scxml")
|
|
356
356
|
return e;
|
|
357
357
|
var n = go(e);
|
|
358
358
|
return L({
|
|
@@ -364,7 +364,7 @@ function Re(e, t) {
|
|
|
364
364
|
}
|
|
365
365
|
function Ht(e, t) {
|
|
366
366
|
var n = la(t).map(function(r) {
|
|
367
|
-
return typeof r > "u" || typeof r == "string" ||
|
|
367
|
+
return typeof r > "u" || typeof r == "string" || Gt(r) ? {
|
|
368
368
|
target: r,
|
|
369
369
|
event: e
|
|
370
370
|
} : L(L({}, r), {
|
|
@@ -373,7 +373,7 @@ function Ht(e, t) {
|
|
|
373
373
|
});
|
|
374
374
|
return n;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Jc(e) {
|
|
377
377
|
if (!(e === void 0 || e === Lc))
|
|
378
378
|
return Be(e);
|
|
379
379
|
}
|
|
@@ -383,7 +383,7 @@ function pa(e, t, n, r, o) {
|
|
|
383
383
|
cond: t,
|
|
384
384
|
_event: r
|
|
385
385
|
};
|
|
386
|
-
if (t.type ===
|
|
386
|
+
if (t.type === Yr)
|
|
387
387
|
return (i?.[t.name] || t.predicate)(n, r.data, a);
|
|
388
388
|
var s = i?.[t.type];
|
|
389
389
|
if (!s)
|
|
@@ -395,7 +395,7 @@ function ha(e) {
|
|
|
395
395
|
type: e
|
|
396
396
|
} : e;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Zr(e, t, n) {
|
|
399
399
|
if (typeof e == "object")
|
|
400
400
|
return e;
|
|
401
401
|
var r = function() {
|
|
@@ -409,16 +409,16 @@ function Xr(e, t, n) {
|
|
|
409
409
|
function Un(e, t) {
|
|
410
410
|
return "".concat(e, ":invocation[").concat(t, "]");
|
|
411
411
|
}
|
|
412
|
-
var ar = /* @__PURE__ */
|
|
412
|
+
var ar = /* @__PURE__ */ Ce({
|
|
413
413
|
type: jc
|
|
414
414
|
});
|
|
415
|
-
function
|
|
415
|
+
function Xr(e, t) {
|
|
416
416
|
return t && t[e] || void 0;
|
|
417
417
|
}
|
|
418
418
|
function Tn(e, t) {
|
|
419
419
|
var n;
|
|
420
|
-
if (
|
|
421
|
-
var r =
|
|
420
|
+
if (oe(e) || typeof e == "number") {
|
|
421
|
+
var r = Xr(e, t);
|
|
422
422
|
ce(r) ? n = {
|
|
423
423
|
type: e,
|
|
424
424
|
exec: r
|
|
@@ -433,7 +433,7 @@ function Tn(e, t) {
|
|
|
433
433
|
exec: e
|
|
434
434
|
};
|
|
435
435
|
else {
|
|
436
|
-
var r =
|
|
436
|
+
var r = Xr(e.type, t);
|
|
437
437
|
if (ce(r))
|
|
438
438
|
n = L(L({}, e), {
|
|
439
439
|
exec: r
|
|
@@ -451,7 +451,7 @@ function Tn(e, t) {
|
|
|
451
451
|
var sr = function(e, t) {
|
|
452
452
|
if (!e)
|
|
453
453
|
return [];
|
|
454
|
-
var n =
|
|
454
|
+
var n = Xt(e) ? e : [e];
|
|
455
455
|
return n.map(function(r) {
|
|
456
456
|
return Tn(r, t);
|
|
457
457
|
});
|
|
@@ -459,26 +459,26 @@ var sr = function(e, t) {
|
|
|
459
459
|
function yo(e) {
|
|
460
460
|
var t = Tn(e);
|
|
461
461
|
return L(L({
|
|
462
|
-
id:
|
|
462
|
+
id: oe(e) ? e : t.id
|
|
463
463
|
}, t), {
|
|
464
464
|
type: t.type
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
467
|
function va(e) {
|
|
468
|
-
return
|
|
468
|
+
return oe(e) ? {
|
|
469
469
|
type: wr,
|
|
470
470
|
event: e
|
|
471
|
-
} :
|
|
471
|
+
} : Cn(e, {
|
|
472
472
|
to: qt.Internal
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Kc(e) {
|
|
476
476
|
return {
|
|
477
477
|
type: wr,
|
|
478
|
-
_event:
|
|
478
|
+
_event: Ce(e.event)
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Cn(e, t) {
|
|
482
482
|
return {
|
|
483
483
|
to: t ? t.to : void 0,
|
|
484
484
|
type: Sr,
|
|
@@ -487,11 +487,11 @@ function Rn(e, t) {
|
|
|
487
487
|
id: t && t.id !== void 0 ? t.id : ce(e) ? e.name : ca(e)
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Yc(e, t, n, r) {
|
|
491
491
|
var o = {
|
|
492
492
|
_event: n
|
|
493
|
-
}, i =
|
|
494
|
-
if (
|
|
493
|
+
}, i = Ce(ce(e.event) ? e.event(t, n.data, o) : e.event), a;
|
|
494
|
+
if (oe(e.delay)) {
|
|
495
495
|
var s = r && r[e.delay];
|
|
496
496
|
a = ce(s) ? s(t, n.data, o) : s;
|
|
497
497
|
} else
|
|
@@ -505,17 +505,17 @@ function Jc(e, t, n, r) {
|
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
function Qc(e, t) {
|
|
508
|
-
return
|
|
508
|
+
return Cn(e, L(L({}, t), {
|
|
509
509
|
to: qt.Parent
|
|
510
510
|
}));
|
|
511
511
|
}
|
|
512
|
-
var
|
|
512
|
+
var Zc = function(e, t, n) {
|
|
513
513
|
return L(L({}, e), {
|
|
514
|
-
value:
|
|
514
|
+
value: oe(e.expr) ? e.expr : e.expr(t, n.data, {
|
|
515
515
|
_event: n
|
|
516
516
|
})
|
|
517
517
|
});
|
|
518
|
-
},
|
|
518
|
+
}, Xc = function(e) {
|
|
519
519
|
return {
|
|
520
520
|
type: oa,
|
|
521
521
|
sendId: e
|
|
@@ -524,7 +524,7 @@ var Xc = function(e, t, n) {
|
|
|
524
524
|
function el(e) {
|
|
525
525
|
var t = yo(e);
|
|
526
526
|
return {
|
|
527
|
-
type:
|
|
527
|
+
type: ae.Start,
|
|
528
528
|
activity: t,
|
|
529
529
|
exec: void 0
|
|
530
530
|
};
|
|
@@ -532,7 +532,7 @@ function el(e) {
|
|
|
532
532
|
function tl(e) {
|
|
533
533
|
var t = ce(e) ? e : yo(e);
|
|
534
534
|
return {
|
|
535
|
-
type:
|
|
535
|
+
type: ae.Stop,
|
|
536
536
|
activity: t,
|
|
537
537
|
exec: void 0
|
|
538
538
|
};
|
|
@@ -541,23 +541,23 @@ function nl(e, t, n) {
|
|
|
541
541
|
var r = ce(e.activity) ? e.activity(t, n.data) : e.activity, o = typeof r == "string" ? {
|
|
542
542
|
id: r
|
|
543
543
|
} : r, i = {
|
|
544
|
-
type:
|
|
544
|
+
type: ae.Stop,
|
|
545
545
|
activity: o
|
|
546
546
|
};
|
|
547
547
|
return i;
|
|
548
548
|
}
|
|
549
549
|
var rl = function(e) {
|
|
550
550
|
return {
|
|
551
|
-
type:
|
|
551
|
+
type: Jr,
|
|
552
552
|
assignment: e
|
|
553
553
|
};
|
|
554
554
|
};
|
|
555
555
|
function ol(e, t) {
|
|
556
556
|
var n = t ? "#".concat(t) : "";
|
|
557
|
-
return "".concat(
|
|
557
|
+
return "".concat(ae.After, "(").concat(e, ")").concat(n);
|
|
558
558
|
}
|
|
559
559
|
function Wn(e, t) {
|
|
560
|
-
var n = "".concat(
|
|
560
|
+
var n = "".concat(ae.DoneState, ".").concat(e), r = {
|
|
561
561
|
type: n,
|
|
562
562
|
data: t
|
|
563
563
|
};
|
|
@@ -565,8 +565,8 @@ function Wn(e, t) {
|
|
|
565
565
|
return n;
|
|
566
566
|
}, r;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
var n = "".concat(
|
|
568
|
+
function Zn(e, t) {
|
|
569
|
+
var n = "".concat(ae.DoneInvoke, ".").concat(e), r = {
|
|
570
570
|
type: n,
|
|
571
571
|
data: t
|
|
572
572
|
};
|
|
@@ -575,7 +575,7 @@ function Xn(e, t) {
|
|
|
575
575
|
}, r;
|
|
576
576
|
}
|
|
577
577
|
function bn(e, t) {
|
|
578
|
-
var n = "".concat(
|
|
578
|
+
var n = "".concat(ae.ErrorPlatform, ".").concat(e), r = {
|
|
579
579
|
type: n,
|
|
580
580
|
data: t
|
|
581
581
|
};
|
|
@@ -585,12 +585,12 @@ function bn(e, t) {
|
|
|
585
585
|
}
|
|
586
586
|
function il(e) {
|
|
587
587
|
return {
|
|
588
|
-
type:
|
|
588
|
+
type: ae.Pure,
|
|
589
589
|
get: e
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
592
|
function al(e, t) {
|
|
593
|
-
return
|
|
593
|
+
return Cn(function(n, r) {
|
|
594
594
|
return r;
|
|
595
595
|
}, L(L({}, t), {
|
|
596
596
|
to: e
|
|
@@ -598,24 +598,24 @@ function al(e, t) {
|
|
|
598
598
|
}
|
|
599
599
|
function ga(e) {
|
|
600
600
|
return {
|
|
601
|
-
type:
|
|
601
|
+
type: ae.Choose,
|
|
602
602
|
conds: e
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
605
|
function eo(e, t, n, r, o, i) {
|
|
606
606
|
i === void 0 && (i = !1);
|
|
607
|
-
var a =
|
|
608
|
-
return l.type ===
|
|
607
|
+
var a = ie(i ? [[], o] : ua(o, function(l) {
|
|
608
|
+
return l.type === Jr;
|
|
609
609
|
}), 2), s = a[0], c = a[1], d = s.length ? Qo(n, r, s, t) : n, v = i ? [n] : void 0, u = ve(c.map(function(l) {
|
|
610
610
|
var p;
|
|
611
611
|
switch (l.type) {
|
|
612
612
|
case wr:
|
|
613
|
-
return
|
|
613
|
+
return Kc(l);
|
|
614
614
|
case Sr:
|
|
615
|
-
var f =
|
|
615
|
+
var f = Yc(l, d, r, e.options.delays);
|
|
616
616
|
return f;
|
|
617
617
|
case ia:
|
|
618
|
-
return
|
|
618
|
+
return Zc(l, d, r);
|
|
619
619
|
case Dc: {
|
|
620
620
|
var y = l, g = (p = y.conds.find(function(P) {
|
|
621
621
|
var D = fa(P.cond, e.options.guards);
|
|
@@ -623,35 +623,35 @@ function eo(e, t, n, r, o, i) {
|
|
|
623
623
|
})) === null || p === void 0 ? void 0 : p.actions;
|
|
624
624
|
if (!g)
|
|
625
625
|
return [];
|
|
626
|
-
var x =
|
|
626
|
+
var x = ie(eo(e, t, d, r, sr(Be(g), e.options.actions), i), 2), m = x[0], S = x[1];
|
|
627
627
|
return d = S, v?.push(d), m;
|
|
628
628
|
}
|
|
629
629
|
case Hc: {
|
|
630
630
|
var g = l.get(d, r.data);
|
|
631
631
|
if (!g)
|
|
632
632
|
return [];
|
|
633
|
-
var T =
|
|
633
|
+
var T = ie(eo(e, t, d, r, sr(Be(g), e.options.actions), i), 2), E = T[0], N = T[1];
|
|
634
634
|
return d = N, v?.push(d), E;
|
|
635
635
|
}
|
|
636
636
|
case ho:
|
|
637
637
|
return nl(l, d, r);
|
|
638
|
-
case
|
|
638
|
+
case Jr: {
|
|
639
639
|
d = Qo(d, r, [l], t), v?.push(d);
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
642
|
default:
|
|
643
|
-
var
|
|
643
|
+
var R = Tn(l, e.options.actions), O = R.exec;
|
|
644
644
|
if (O && v) {
|
|
645
645
|
var I = v.length - 1;
|
|
646
|
-
|
|
646
|
+
R = L(L({}, R), {
|
|
647
647
|
exec: function(P) {
|
|
648
|
-
for (var D = [],
|
|
649
|
-
D[
|
|
650
|
-
O.apply(void 0, me([v[I]],
|
|
648
|
+
for (var D = [], M = 1; M < arguments.length; M++)
|
|
649
|
+
D[M - 1] = arguments[M];
|
|
650
|
+
O.apply(void 0, me([v[I]], ie(D), !1));
|
|
651
651
|
}
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
|
-
return
|
|
654
|
+
return R;
|
|
655
655
|
}
|
|
656
656
|
}).filter(function(l) {
|
|
657
657
|
return !!l;
|
|
@@ -694,7 +694,7 @@ function cl(e, t, n, r) {
|
|
|
694
694
|
}
|
|
695
695
|
function ma(e, t, n) {
|
|
696
696
|
var r = ya(t);
|
|
697
|
-
if (r.deferred = !0,
|
|
697
|
+
if (r.deferred = !0, Gt(e)) {
|
|
698
698
|
var o = r.state = xn(void 0, function() {
|
|
699
699
|
return (n ? e.withContext(n) : e).initialState;
|
|
700
700
|
});
|
|
@@ -733,7 +733,7 @@ function dl(e) {
|
|
|
733
733
|
var lr = function(e) {
|
|
734
734
|
return e.type === "atomic" || e.type === "final";
|
|
735
735
|
};
|
|
736
|
-
function
|
|
736
|
+
function Jt(e) {
|
|
737
737
|
return Object.keys(e.states).map(function(t) {
|
|
738
738
|
return e.states[t];
|
|
739
739
|
}).filter(function(t) {
|
|
@@ -742,12 +742,12 @@ function Gt(e) {
|
|
|
742
742
|
}
|
|
743
743
|
function ba(e) {
|
|
744
744
|
var t = [e];
|
|
745
|
-
return lr(e) ? t : t.concat(ve(
|
|
745
|
+
return lr(e) ? t : t.concat(ve(Jt(e).map(ba)));
|
|
746
746
|
}
|
|
747
747
|
function Ut(e, t) {
|
|
748
748
|
var n, r, o, i, a, s, c, d, v = new Set(e), u = to(v), l = new Set(t);
|
|
749
749
|
try {
|
|
750
|
-
for (var p =
|
|
750
|
+
for (var p = re(l), f = p.next(); !f.done; f = p.next())
|
|
751
751
|
for (var y = f.value, g = y.parent; g && !l.has(g); )
|
|
752
752
|
l.add(g), g = g.parent;
|
|
753
753
|
} catch (I) {
|
|
@@ -763,7 +763,7 @@ function Ut(e, t) {
|
|
|
763
763
|
}
|
|
764
764
|
var x = to(l);
|
|
765
765
|
try {
|
|
766
|
-
for (var m =
|
|
766
|
+
for (var m = re(l), S = m.next(); !S.done; S = m.next()) {
|
|
767
767
|
var y = S.value;
|
|
768
768
|
if (y.type === "compound" && (!x.get(y) || !x.get(y).length))
|
|
769
769
|
u.get(y) ? u.get(y).forEach(function(P) {
|
|
@@ -773,7 +773,7 @@ function Ut(e, t) {
|
|
|
773
773
|
});
|
|
774
774
|
else if (y.type === "parallel")
|
|
775
775
|
try {
|
|
776
|
-
for (var T = (a = void 0,
|
|
776
|
+
for (var T = (a = void 0, re(Jt(y))), E = T.next(); !E.done; E = T.next()) {
|
|
777
777
|
var N = E.value;
|
|
778
778
|
l.has(N) || (l.add(N), u.get(N) ? u.get(N).forEach(function(P) {
|
|
779
779
|
return l.add(P);
|
|
@@ -805,7 +805,7 @@ function Ut(e, t) {
|
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
807
|
try {
|
|
808
|
-
for (var
|
|
808
|
+
for (var R = re(l), O = R.next(); !O.done; O = R.next())
|
|
809
809
|
for (var y = O.value, g = y.parent; g && !l.has(g); )
|
|
810
810
|
l.add(g), g = g.parent;
|
|
811
811
|
} catch (I) {
|
|
@@ -814,7 +814,7 @@ function Ut(e, t) {
|
|
|
814
814
|
};
|
|
815
815
|
} finally {
|
|
816
816
|
try {
|
|
817
|
-
O && !O.done && (d =
|
|
817
|
+
O && !O.done && (d = R.return) && d.call(R);
|
|
818
818
|
} finally {
|
|
819
819
|
if (c) throw c.error;
|
|
820
820
|
}
|
|
@@ -841,7 +841,7 @@ function xa(e, t) {
|
|
|
841
841
|
function to(e) {
|
|
842
842
|
var t, n, r = /* @__PURE__ */ new Map();
|
|
843
843
|
try {
|
|
844
|
-
for (var o =
|
|
844
|
+
for (var o = re(e), i = o.next(); !i.done; i = o.next()) {
|
|
845
845
|
var a = i.value;
|
|
846
846
|
r.has(a) || r.set(a, []), a.parent && (r.has(a.parent) || r.set(a.parent, []), r.get(a.parent).push(a));
|
|
847
847
|
}
|
|
@@ -862,20 +862,20 @@ function fl(e, t) {
|
|
|
862
862
|
var n = Ut([e], t);
|
|
863
863
|
return xa(e, to(n));
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Xn(e, t) {
|
|
866
866
|
return Array.isArray(e) ? e.some(function(n) {
|
|
867
867
|
return n === t;
|
|
868
868
|
}) : e instanceof Set ? e.has(t) : !1;
|
|
869
869
|
}
|
|
870
870
|
function pl(e) {
|
|
871
|
-
return me([],
|
|
871
|
+
return me([], ie(new Set(ve(me([], ie(e.map(function(t) {
|
|
872
872
|
return t.ownEvents;
|
|
873
873
|
})), !1)))), !1);
|
|
874
874
|
}
|
|
875
875
|
function En(e, t) {
|
|
876
|
-
return t.type === "compound" ?
|
|
877
|
-
return n.type === "final" &&
|
|
878
|
-
}) : t.type === "parallel" ?
|
|
876
|
+
return t.type === "compound" ? Jt(t).some(function(n) {
|
|
877
|
+
return n.type === "final" && Xn(e, n);
|
|
878
|
+
}) : t.type === "parallel" ? Jt(t).every(function(n) {
|
|
879
879
|
return En(e, n);
|
|
880
880
|
}) : !1;
|
|
881
881
|
}
|
|
@@ -884,7 +884,7 @@ function hl(e) {
|
|
|
884
884
|
return n.meta !== void 0 && (t[n.id] = n.meta), t;
|
|
885
885
|
}, {});
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Zo(e) {
|
|
888
888
|
return new Set(ve(e.map(function(t) {
|
|
889
889
|
return t.tags;
|
|
890
890
|
})));
|
|
@@ -894,7 +894,7 @@ function wa(e, t) {
|
|
|
894
894
|
return !0;
|
|
895
895
|
if (e === void 0 || t === void 0)
|
|
896
896
|
return !1;
|
|
897
|
-
if (
|
|
897
|
+
if (oe(e) || oe(t))
|
|
898
898
|
return e === t;
|
|
899
899
|
var n = Object.keys(e), r = Object.keys(t);
|
|
900
900
|
return n.length === r.length && n.every(function(o) {
|
|
@@ -921,7 +921,7 @@ var tt = (
|
|
|
921
921
|
/* @__PURE__ */ (function() {
|
|
922
922
|
function e(t) {
|
|
923
923
|
var n = this, r;
|
|
924
|
-
this.actions = [], this.activities =
|
|
924
|
+
this.actions = [], this.activities = Jo, this.meta = {}, this.events = [], this.value = t.value, this.context = t.context, this._event = t._event, this._sessionid = t._sessionid, this.event = this._event.data, this.historyValue = t.historyValue, this.history = t.history, this.actions = t.actions || [], this.activities = t.activities || Jo, this.meta = hl(t.configuration), this.events = t.events || [], this.matches = this.matches.bind(this), this.toStrings = this.toStrings.bind(this), this.configuration = t.configuration, this.transitions = t.transitions, this.children = t.children, this.done = !!t.done, this.tags = (r = Array.isArray(t.tags) ? new Set(t.tags) : t.tags) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set(), this.machine = t.machine, Object.defineProperty(this, "nextEvents", {
|
|
925
925
|
get: function() {
|
|
926
926
|
return pl(n.configuration);
|
|
927
927
|
}
|
|
@@ -981,10 +981,10 @@ var tt = (
|
|
|
981
981
|
return e.from(t, n);
|
|
982
982
|
}, e.prototype.toStrings = function(t, n) {
|
|
983
983
|
var r = this;
|
|
984
|
-
if (t === void 0 && (t = this.value), n === void 0 && (n = "."),
|
|
984
|
+
if (t === void 0 && (t = this.value), n === void 0 && (n = "."), oe(t))
|
|
985
985
|
return [t];
|
|
986
986
|
var o = Object.keys(t);
|
|
987
|
-
return o.concat.apply(o, me([],
|
|
987
|
+
return o.concat.apply(o, me([], ie(o.map(function(i) {
|
|
988
988
|
return r.toStrings(t[i], n).map(function(a) {
|
|
989
989
|
return i + n + a;
|
|
990
990
|
});
|
|
@@ -1014,7 +1014,7 @@ var tt = (
|
|
|
1014
1014
|
})()
|
|
1015
1015
|
), yl = {
|
|
1016
1016
|
deferEvents: !1
|
|
1017
|
-
},
|
|
1017
|
+
}, Xo = (
|
|
1018
1018
|
/** @class */
|
|
1019
1019
|
/* @__PURE__ */ (function() {
|
|
1020
1020
|
function e(t) {
|
|
@@ -1109,7 +1109,7 @@ function wl(e, t) {
|
|
|
1109
1109
|
return n;
|
|
1110
1110
|
},
|
|
1111
1111
|
subscribe: function(d, v, u) {
|
|
1112
|
-
var l =
|
|
1112
|
+
var l = Zr(d, v, u);
|
|
1113
1113
|
return r.add(l), l.next(n), {
|
|
1114
1114
|
unsubscribe: function() {
|
|
1115
1115
|
r.delete(l);
|
|
@@ -1137,9 +1137,9 @@ var Sl = (
|
|
|
1137
1137
|
function e(t, n) {
|
|
1138
1138
|
var r = this;
|
|
1139
1139
|
n === void 0 && (n = e.defaultOptions), this.machine = t, this.delayedEventsMap = {}, this.listeners = /* @__PURE__ */ new Set(), this.contextListeners = /* @__PURE__ */ new Set(), this.stopListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Set(), this.sendListeners = /* @__PURE__ */ new Set(), this.initialized = !1, this.status = Ne.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this.init = this.start, this.send = function(v, u) {
|
|
1140
|
-
if (
|
|
1140
|
+
if (Xt(v))
|
|
1141
1141
|
return r.batch(v), r.state;
|
|
1142
|
-
var l =
|
|
1142
|
+
var l = Ce(go(v, u));
|
|
1143
1143
|
if (r.status === Ne.Stopped)
|
|
1144
1144
|
return r.state;
|
|
1145
1145
|
if (r.status !== Ne.Running && !r.options.deferEvents)
|
|
@@ -1154,7 +1154,7 @@ Event: `
|
|
|
1154
1154
|
r.update(p, l);
|
|
1155
1155
|
}), r._state;
|
|
1156
1156
|
}, this.sendTo = function(v, u) {
|
|
1157
|
-
var l = r.parent && (u === qt.Parent || r.parent.id === u), p = l ? r.parent :
|
|
1157
|
+
var l = r.parent && (u === qt.Parent || r.parent.id === u), p = l ? r.parent : oe(u) ? r.children.get(u) || zn.get(u) : qc(u) ? u : void 0;
|
|
1158
1158
|
if (!p) {
|
|
1159
1159
|
if (!l)
|
|
1160
1160
|
throw new Error("Unable to send event to child '".concat(u, "' from service '").concat(r.id, "'."));
|
|
@@ -1166,7 +1166,7 @@ Event: `
|
|
|
1166
1166
|
})) : p.send(v.data);
|
|
1167
1167
|
};
|
|
1168
1168
|
var o = L(L({}, e.defaultOptions), n), i = o.clock, a = o.logger, s = o.parent, c = o.id, d = c !== void 0 ? c : t.id;
|
|
1169
|
-
this.id = d, this.logger = a, this.clock = i, this.parent = s, this.options = o, this.scheduler = new
|
|
1169
|
+
this.id = d, this.logger = a, this.clock = i, this.parent = s, this.options = o, this.scheduler = new Xo({
|
|
1170
1170
|
deferEvents: this.options.deferEvents
|
|
1171
1171
|
}), this.sessionId = zn.bookId();
|
|
1172
1172
|
}
|
|
@@ -1188,7 +1188,7 @@ Event: `
|
|
|
1188
1188
|
}), e.prototype.execute = function(t, n) {
|
|
1189
1189
|
var r, o;
|
|
1190
1190
|
try {
|
|
1191
|
-
for (var i =
|
|
1191
|
+
for (var i = re(t.actions), a = i.next(); !a.done; a = i.next()) {
|
|
1192
1192
|
var s = a.value;
|
|
1193
1193
|
this.exec(s, t, n);
|
|
1194
1194
|
}
|
|
@@ -1209,7 +1209,7 @@ Event: `
|
|
|
1209
1209
|
u.state.children[I.id] = I;
|
|
1210
1210
|
}), this.devTools && this.devTools.send(n.data, t), t.event)
|
|
1211
1211
|
try {
|
|
1212
|
-
for (var l =
|
|
1212
|
+
for (var l = re(this.eventListeners), p = l.next(); !p.done; p = l.next()) {
|
|
1213
1213
|
var f = p.value;
|
|
1214
1214
|
f(t.event);
|
|
1215
1215
|
}
|
|
@@ -1225,7 +1225,7 @@ Event: `
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
try {
|
|
1228
|
-
for (var y =
|
|
1228
|
+
for (var y = re(this.listeners), g = y.next(); !g.done; g = y.next()) {
|
|
1229
1229
|
var f = g.value;
|
|
1230
1230
|
f(t, t.event);
|
|
1231
1231
|
}
|
|
@@ -1241,7 +1241,7 @@ Event: `
|
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
try {
|
|
1244
|
-
for (var x =
|
|
1244
|
+
for (var x = re(this.contextListeners), m = x.next(); !m.done; m = x.next()) {
|
|
1245
1245
|
var S = m.value;
|
|
1246
1246
|
S(this.state.context, this.state.history ? this.state.history.context : void 0);
|
|
1247
1247
|
}
|
|
@@ -1262,9 +1262,9 @@ Event: `
|
|
|
1262
1262
|
return I.type === "final" && I.parent === u.machine;
|
|
1263
1263
|
}), N = E && E.doneData ? ir(E.doneData, t.context, n) : void 0;
|
|
1264
1264
|
try {
|
|
1265
|
-
for (var
|
|
1265
|
+
for (var R = re(this.doneListeners), O = R.next(); !O.done; O = R.next()) {
|
|
1266
1266
|
var f = O.value;
|
|
1267
|
-
f(
|
|
1267
|
+
f(Zn(this.id, N));
|
|
1268
1268
|
}
|
|
1269
1269
|
} catch (I) {
|
|
1270
1270
|
d = {
|
|
@@ -1272,7 +1272,7 @@ Event: `
|
|
|
1272
1272
|
};
|
|
1273
1273
|
} finally {
|
|
1274
1274
|
try {
|
|
1275
|
-
O && !O.done && (v =
|
|
1275
|
+
O && !O.done && (v = R.return) && v.call(R);
|
|
1276
1276
|
} finally {
|
|
1277
1277
|
if (d) throw d.error;
|
|
1278
1278
|
}
|
|
@@ -1320,7 +1320,7 @@ Event: `
|
|
|
1320
1320
|
}, e.prototype.stop = function() {
|
|
1321
1321
|
var t, n, r, o, i, a, s, c, d, v, u = this;
|
|
1322
1322
|
try {
|
|
1323
|
-
for (var l =
|
|
1323
|
+
for (var l = re(this.listeners), p = l.next(); !p.done; p = l.next()) {
|
|
1324
1324
|
var f = p.value;
|
|
1325
1325
|
this.listeners.delete(f);
|
|
1326
1326
|
}
|
|
@@ -1336,7 +1336,7 @@ Event: `
|
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
try {
|
|
1339
|
-
for (var y =
|
|
1339
|
+
for (var y = re(this.stopListeners), g = y.next(); !g.done; g = y.next()) {
|
|
1340
1340
|
var f = g.value;
|
|
1341
1341
|
f(), this.stopListeners.delete(f);
|
|
1342
1342
|
}
|
|
@@ -1352,7 +1352,7 @@ Event: `
|
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
try {
|
|
1355
|
-
for (var x =
|
|
1355
|
+
for (var x = re(this.contextListeners), m = x.next(); !m.done; m = x.next()) {
|
|
1356
1356
|
var f = m.value;
|
|
1357
1357
|
this.contextListeners.delete(f);
|
|
1358
1358
|
}
|
|
@@ -1368,7 +1368,7 @@ Event: `
|
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
try {
|
|
1371
|
-
for (var S =
|
|
1371
|
+
for (var S = re(this.doneListeners), T = S.next(); !T.done; T = S.next()) {
|
|
1372
1372
|
var f = T.value;
|
|
1373
1373
|
this.doneListeners.delete(f);
|
|
1374
1374
|
}
|
|
@@ -1385,22 +1385,22 @@ Event: `
|
|
|
1385
1385
|
}
|
|
1386
1386
|
if (!this.initialized)
|
|
1387
1387
|
return this;
|
|
1388
|
-
me([],
|
|
1388
|
+
me([], ie(this.state.configuration), !1).sort(function(O, I) {
|
|
1389
1389
|
return I.order - O.order;
|
|
1390
1390
|
}).forEach(function(O) {
|
|
1391
1391
|
var I, P;
|
|
1392
1392
|
try {
|
|
1393
|
-
for (var D =
|
|
1394
|
-
var F =
|
|
1393
|
+
for (var D = re(O.definition.exit), M = D.next(); !M.done; M = D.next()) {
|
|
1394
|
+
var F = M.value;
|
|
1395
1395
|
u.exec(F, u.state);
|
|
1396
1396
|
}
|
|
1397
|
-
} catch (
|
|
1397
|
+
} catch (Z) {
|
|
1398
1398
|
I = {
|
|
1399
|
-
error:
|
|
1399
|
+
error: Z
|
|
1400
1400
|
};
|
|
1401
1401
|
} finally {
|
|
1402
1402
|
try {
|
|
1403
|
-
|
|
1403
|
+
M && !M.done && (P = D.return) && P.call(D);
|
|
1404
1404
|
} finally {
|
|
1405
1405
|
if (I) throw I.error;
|
|
1406
1406
|
}
|
|
@@ -1409,9 +1409,9 @@ Event: `
|
|
|
1409
1409
|
ce(O.stop) && O.stop();
|
|
1410
1410
|
}), this.children.clear();
|
|
1411
1411
|
try {
|
|
1412
|
-
for (var E =
|
|
1413
|
-
var
|
|
1414
|
-
this.clock.clearTimeout(this.delayedEventsMap[
|
|
1412
|
+
for (var E = re(Object.keys(this.delayedEventsMap)), N = E.next(); !N.done; N = E.next()) {
|
|
1413
|
+
var R = N.value;
|
|
1414
|
+
this.clock.clearTimeout(this.delayedEventsMap[R]);
|
|
1415
1415
|
}
|
|
1416
1416
|
} catch (O) {
|
|
1417
1417
|
d = {
|
|
@@ -1424,7 +1424,7 @@ Event: `
|
|
|
1424
1424
|
if (d) throw d.error;
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
-
return this.scheduler.clear(), this.scheduler = new
|
|
1427
|
+
return this.scheduler.clear(), this.scheduler = new Xo({
|
|
1428
1428
|
deferEvents: this.options.deferEvents
|
|
1429
1429
|
}), this.initialized = !1, this.status = Ne.Stopped, this._initialState = void 0, zn.free(this.sessionId), this;
|
|
1430
1430
|
}, e.prototype.batch = function(t) {
|
|
@@ -1436,15 +1436,15 @@ Event: `
|
|
|
1436
1436
|
);
|
|
1437
1437
|
this.scheduler.schedule(function() {
|
|
1438
1438
|
var r, o, i = n.state, a = !1, s = [], c = function(l) {
|
|
1439
|
-
var p =
|
|
1439
|
+
var p = Ce(l);
|
|
1440
1440
|
n.forward(p), i = xn(n, function() {
|
|
1441
1441
|
return n.machine.transition(i, p);
|
|
1442
|
-
}), s.push.apply(s, me([],
|
|
1442
|
+
}), s.push.apply(s, me([], ie(i.actions.map(function(f) {
|
|
1443
1443
|
return gl(f, i);
|
|
1444
1444
|
})), !1)), a = a || !!i.changed;
|
|
1445
1445
|
};
|
|
1446
1446
|
try {
|
|
1447
|
-
for (var d =
|
|
1447
|
+
for (var d = re(t), v = d.next(); !v.done; v = d.next()) {
|
|
1448
1448
|
var u = v.value;
|
|
1449
1449
|
c(u);
|
|
1450
1450
|
}
|
|
@@ -1459,14 +1459,14 @@ Event: `
|
|
|
1459
1459
|
if (r) throw r.error;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
i.changed = a, i.actions = s, n.update(i,
|
|
1462
|
+
i.changed = a, i.actions = s, n.update(i, Ce(t[t.length - 1]));
|
|
1463
1463
|
});
|
|
1464
1464
|
}, e.prototype.sender = function(t) {
|
|
1465
1465
|
return this.send.bind(this, t);
|
|
1466
1466
|
}, e.prototype.nextState = function(t) {
|
|
1467
|
-
var n = this, r =
|
|
1468
|
-
if (r.name.indexOf(
|
|
1469
|
-
return i.indexOf(
|
|
1467
|
+
var n = this, r = Ce(t);
|
|
1468
|
+
if (r.name.indexOf(Go) === 0 && !this.state.nextEvents.some(function(i) {
|
|
1469
|
+
return i.indexOf(Go) === 0;
|
|
1470
1470
|
}))
|
|
1471
1471
|
throw r.data.data;
|
|
1472
1472
|
var o = xn(this, function() {
|
|
@@ -1476,7 +1476,7 @@ Event: `
|
|
|
1476
1476
|
}, e.prototype.forward = function(t) {
|
|
1477
1477
|
var n, r;
|
|
1478
1478
|
try {
|
|
1479
|
-
for (var o =
|
|
1479
|
+
for (var o = re(this.forwardTo), i = o.next(); !i.done; i = o.next()) {
|
|
1480
1480
|
var a = i.value, s = this.children.get(a);
|
|
1481
1481
|
if (!s)
|
|
1482
1482
|
throw new Error("Unable to forward event '".concat(t, "' from interpreter '").concat(this.id, "' to nonexistant child '").concat(a, "'."));
|
|
@@ -1502,7 +1502,7 @@ Event: `
|
|
|
1502
1502
|
this.clock.clearTimeout(this.delayedEventsMap[t]), delete this.delayedEventsMap[t];
|
|
1503
1503
|
}, e.prototype.exec = function(t, n, r) {
|
|
1504
1504
|
r === void 0 && (r = this.machine.options.actions);
|
|
1505
|
-
var o = n.context, i = n._event, a = t.exec ||
|
|
1505
|
+
var o = n.context, i = n._event, a = t.exec || Xr(t.type, r), s = ce(a) ? a : a ? a.exec : t.exec;
|
|
1506
1506
|
if (s)
|
|
1507
1507
|
try {
|
|
1508
1508
|
return s(o, i.data, {
|
|
@@ -1528,13 +1528,13 @@ Event: `
|
|
|
1528
1528
|
case oa:
|
|
1529
1529
|
this.cancel(t.sendId);
|
|
1530
1530
|
break;
|
|
1531
|
-
case
|
|
1531
|
+
case Gr: {
|
|
1532
1532
|
if (this.status !== Ne.Running)
|
|
1533
1533
|
return;
|
|
1534
1534
|
var d = t.activity;
|
|
1535
1535
|
if (!this.state.activities[d.id || d.type])
|
|
1536
1536
|
break;
|
|
1537
|
-
if (d.type ===
|
|
1537
|
+
if (d.type === ae.Invoke) {
|
|
1538
1538
|
var v = ha(d.src), u = this.machine.options.services ? this.machine.options.services[v.type] : void 0, l = d.id, p = d.data, f = "autoForward" in d ? d.autoForward : !!d.forward;
|
|
1539
1539
|
if (!u)
|
|
1540
1540
|
return;
|
|
@@ -1549,7 +1549,7 @@ Event: `
|
|
|
1549
1549
|
if (!g)
|
|
1550
1550
|
return;
|
|
1551
1551
|
var x = void 0;
|
|
1552
|
-
|
|
1552
|
+
Gt(g) && (g = y ? g.withContext(y) : g, x = {
|
|
1553
1553
|
autoForward: f
|
|
1554
1554
|
}), this.spawn(g, l, x);
|
|
1555
1555
|
} else
|
|
@@ -1572,7 +1572,7 @@ Event: `
|
|
|
1572
1572
|
var n = this.children.get(t);
|
|
1573
1573
|
n && (this.removeChild(t), ce(n.stop) && n.stop());
|
|
1574
1574
|
}, e.prototype.spawn = function(t, n, r) {
|
|
1575
|
-
if (
|
|
1575
|
+
if (Yo(t))
|
|
1576
1576
|
return this.spawnPromise(Promise.resolve(t), n);
|
|
1577
1577
|
if (ce(t))
|
|
1578
1578
|
return this.spawnCallback(t, n);
|
|
@@ -1580,7 +1580,7 @@ Event: `
|
|
|
1580
1580
|
return this.spawnActor(t, n);
|
|
1581
1581
|
if (Bc(t))
|
|
1582
1582
|
return this.spawnObservable(t, n);
|
|
1583
|
-
if (
|
|
1583
|
+
if (Gt(t))
|
|
1584
1584
|
return this.spawnMachine(t, L(L({}, r), {
|
|
1585
1585
|
id: n
|
|
1586
1586
|
}));
|
|
@@ -1602,7 +1602,7 @@ Event: `
|
|
|
1602
1602
|
});
|
|
1603
1603
|
var a = o;
|
|
1604
1604
|
return this.children.set(o.id, a), i.autoForward && this.forwardTo.add(o.id), o.onDone(function(s) {
|
|
1605
|
-
r.removeChild(o.id), r.send(
|
|
1605
|
+
r.removeChild(o.id), r.send(Ce(s, {
|
|
1606
1606
|
origin: o.id
|
|
1607
1607
|
}));
|
|
1608
1608
|
}).start(), a;
|
|
@@ -1615,7 +1615,7 @@ Event: `
|
|
|
1615
1615
|
}, e.prototype.spawnPromise = function(t, n) {
|
|
1616
1616
|
var r, o = this, i = !1, a;
|
|
1617
1617
|
t.then(function(c) {
|
|
1618
|
-
i || (a = c, o.removeChild(n), o.send(
|
|
1618
|
+
i || (a = c, o.removeChild(n), o.send(Ce(Zn(n, c), {
|
|
1619
1619
|
origin: n
|
|
1620
1620
|
})));
|
|
1621
1621
|
}, function(c) {
|
|
@@ -1623,7 +1623,7 @@ Event: `
|
|
|
1623
1623
|
o.removeChild(n);
|
|
1624
1624
|
var d = bn(n, c);
|
|
1625
1625
|
try {
|
|
1626
|
-
o.send(
|
|
1626
|
+
o.send(Ce(d, {
|
|
1627
1627
|
origin: n
|
|
1628
1628
|
}));
|
|
1629
1629
|
} catch {
|
|
@@ -1636,7 +1636,7 @@ Event: `
|
|
|
1636
1636
|
send: function() {
|
|
1637
1637
|
},
|
|
1638
1638
|
subscribe: function(c, d, v) {
|
|
1639
|
-
var u =
|
|
1639
|
+
var u = Zr(c, d, v), l = !1;
|
|
1640
1640
|
return t.then(function(p) {
|
|
1641
1641
|
l || (u.next(p), !l && u.complete());
|
|
1642
1642
|
}, function(p) {
|
|
@@ -1666,7 +1666,7 @@ Event: `
|
|
|
1666
1666
|
var r, o = this, i = !1, a = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c, d = function(l) {
|
|
1667
1667
|
c = l, s.forEach(function(p) {
|
|
1668
1668
|
return p(l);
|
|
1669
|
-
}), !i && o.send(
|
|
1669
|
+
}), !i && o.send(Ce(l, {
|
|
1670
1670
|
origin: n
|
|
1671
1671
|
}));
|
|
1672
1672
|
}, v;
|
|
@@ -1677,7 +1677,7 @@ Event: `
|
|
|
1677
1677
|
} catch (l) {
|
|
1678
1678
|
this.send(bn(n, l));
|
|
1679
1679
|
}
|
|
1680
|
-
if (
|
|
1680
|
+
if (Yo(v))
|
|
1681
1681
|
return this.spawnPromise(v, n);
|
|
1682
1682
|
var u = (r = {
|
|
1683
1683
|
id: n,
|
|
@@ -1687,7 +1687,7 @@ Event: `
|
|
|
1687
1687
|
});
|
|
1688
1688
|
},
|
|
1689
1689
|
subscribe: function(l) {
|
|
1690
|
-
var p =
|
|
1690
|
+
var p = Zr(l);
|
|
1691
1691
|
return s.add(p.next), {
|
|
1692
1692
|
unsubscribe: function() {
|
|
1693
1693
|
s.delete(p.next);
|
|
@@ -1711,15 +1711,15 @@ Event: `
|
|
|
1711
1711
|
return this.children.set(n, u), u;
|
|
1712
1712
|
}, e.prototype.spawnObservable = function(t, n) {
|
|
1713
1713
|
var r, o = this, i, a = t.subscribe(function(c) {
|
|
1714
|
-
i = c, o.send(
|
|
1714
|
+
i = c, o.send(Ce(c, {
|
|
1715
1715
|
origin: n
|
|
1716
1716
|
}));
|
|
1717
1717
|
}, function(c) {
|
|
1718
|
-
o.removeChild(n), o.send(
|
|
1718
|
+
o.removeChild(n), o.send(Ce(bn(n, c), {
|
|
1719
1719
|
origin: n
|
|
1720
1720
|
}));
|
|
1721
1721
|
}, function() {
|
|
1722
|
-
o.removeChild(n), o.send(
|
|
1722
|
+
o.removeChild(n), o.send(Ce(Zn(n), {
|
|
1723
1723
|
origin: n
|
|
1724
1724
|
}));
|
|
1725
1725
|
}), s = (r = {
|
|
@@ -1824,10 +1824,10 @@ Event: `
|
|
|
1824
1824
|
}, e.interpret = Ea, e;
|
|
1825
1825
|
})()
|
|
1826
1826
|
), El = function(e) {
|
|
1827
|
-
return
|
|
1827
|
+
return oe(e) ? L(L({}, no), {
|
|
1828
1828
|
name: e
|
|
1829
1829
|
}) : L(L(L({}, no), {
|
|
1830
|
-
name:
|
|
1830
|
+
name: Gc()
|
|
1831
1831
|
}), e);
|
|
1832
1832
|
};
|
|
1833
1833
|
function Sa(e, t) {
|
|
@@ -1853,13 +1853,13 @@ function _l(e) {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
function Vn(e) {
|
|
1855
1855
|
return L(L({
|
|
1856
|
-
type:
|
|
1856
|
+
type: Kr
|
|
1857
1857
|
}, e), {
|
|
1858
1858
|
toJSON: function() {
|
|
1859
1859
|
e.onDone, e.onError;
|
|
1860
1860
|
var t = po(e, ["onDone", "onError"]);
|
|
1861
1861
|
return L(L({}, t), {
|
|
1862
|
-
type:
|
|
1862
|
+
type: Kr,
|
|
1863
1863
|
src: _l(e.src)
|
|
1864
1864
|
});
|
|
1865
1865
|
}
|
|
@@ -1891,7 +1891,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
1891
1891
|
transitions: void 0,
|
|
1892
1892
|
candidates: {},
|
|
1893
1893
|
delayedTransitions: void 0
|
|
1894
|
-
}, this.idMap = {}, this.tags = [], this.options = Object.assign(Tl(), n), this.parent = o?.parent, this.key = this.config.key || o?.key || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : sa), this.id = this.config.id || me([this.machine.key],
|
|
1894
|
+
}, this.idMap = {}, this.tags = [], this.options = Object.assign(Tl(), n), this.parent = o?.parent, this.key = this.config.key || o?.key || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : sa), this.id = this.config.id || me([this.machine.key], ie(this.path), !1).join(this.delimiter), this.version = this.parent ? this.parent.version : this.config.version, this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.schema = this.parent ? this.machine.schema : (a = this.config.schema) !== null && a !== void 0 ? a : {}, this.description = this.config.description, this.initial = this.config.initial, this.states = this.config.states ? mn(this.config.states, function(d, v) {
|
|
1895
1895
|
var u, l = new e(d, {}, void 0, {
|
|
1896
1896
|
parent: i,
|
|
1897
1897
|
key: v
|
|
@@ -1903,7 +1903,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
1903
1903
|
var v, u;
|
|
1904
1904
|
d.order = s++;
|
|
1905
1905
|
try {
|
|
1906
|
-
for (var l =
|
|
1906
|
+
for (var l = re(Jt(d)), p = l.next(); !p.done; p = l.next()) {
|
|
1907
1907
|
var f = p.value;
|
|
1908
1908
|
c(f);
|
|
1909
1909
|
}
|
|
@@ -1928,19 +1928,19 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
1928
1928
|
return Tn(d);
|
|
1929
1929
|
}), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = Be(this.config.invoke).map(function(d, v) {
|
|
1930
1930
|
var u, l;
|
|
1931
|
-
if (
|
|
1931
|
+
if (Gt(d)) {
|
|
1932
1932
|
var p = Un(i.id, v);
|
|
1933
1933
|
return i.machine.options.services = L((u = {}, u[p] = d, u), i.machine.options.services), Vn({
|
|
1934
1934
|
src: p,
|
|
1935
1935
|
id: p
|
|
1936
1936
|
});
|
|
1937
|
-
} else if (
|
|
1937
|
+
} else if (oe(d.src)) {
|
|
1938
1938
|
var p = d.id || Un(i.id, v);
|
|
1939
1939
|
return Vn(L(L({}, d), {
|
|
1940
1940
|
id: p,
|
|
1941
1941
|
src: d.src
|
|
1942
1942
|
}));
|
|
1943
|
-
} else if (
|
|
1943
|
+
} else if (Gt(d.src) || ce(d.src)) {
|
|
1944
1944
|
var p = d.id || Un(i.id, v);
|
|
1945
1945
|
return i.machine.options.services = L((l = {}, l[p] = d.src, l), i.machine.options.services), Vn(L(L({
|
|
1946
1946
|
id: p
|
|
@@ -2056,16 +2056,16 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2056
2056
|
return [];
|
|
2057
2057
|
var r = function(i, a) {
|
|
2058
2058
|
var s = ce(i) ? "".concat(t.id, ":delay[").concat(a, "]") : i, c = ol(s, t.id);
|
|
2059
|
-
return t.onEntry.push(
|
|
2059
|
+
return t.onEntry.push(Cn(c, {
|
|
2060
2060
|
delay: i
|
|
2061
|
-
})), t.onExit.push(
|
|
2062
|
-
}, o =
|
|
2061
|
+
})), t.onExit.push(Xc(c)), c;
|
|
2062
|
+
}, o = Xt(n) ? n.map(function(i, a) {
|
|
2063
2063
|
var s = r(i.delay, a);
|
|
2064
2064
|
return L(L({}, i), {
|
|
2065
2065
|
event: s
|
|
2066
2066
|
});
|
|
2067
2067
|
}) : ve(Object.keys(n).map(function(i, a) {
|
|
2068
|
-
var s = n[i], c =
|
|
2068
|
+
var s = n[i], c = oe(s) ? {
|
|
2069
2069
|
target: s
|
|
2070
2070
|
} : s, d = isNaN(+i) ? i : +i, v = r(d, a);
|
|
2071
2071
|
return Be(c).map(function(u) {
|
|
@@ -2086,12 +2086,12 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2086
2086
|
if (!t)
|
|
2087
2087
|
return [];
|
|
2088
2088
|
var o = t instanceof tt ? t.value : Sn(t, this.delimiter);
|
|
2089
|
-
if (
|
|
2089
|
+
if (oe(o)) {
|
|
2090
2090
|
var i = this.getStateNode(o).initial;
|
|
2091
2091
|
return i !== void 0 ? this.getStateNodes((n = {}, n[o] = i, n)) : [this, this.states[o]];
|
|
2092
2092
|
}
|
|
2093
2093
|
var a = Object.keys(o), s = [this];
|
|
2094
|
-
return s.push.apply(s, me([],
|
|
2094
|
+
return s.push.apply(s, me([], ie(ve(a.map(function(c) {
|
|
2095
2095
|
return r.getStateNode(c).getStateNodes(o[c]);
|
|
2096
2096
|
}))), !1)), s;
|
|
2097
2097
|
}, e.prototype.handles = function(t) {
|
|
@@ -2103,7 +2103,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2103
2103
|
value: this.resolve(n.value),
|
|
2104
2104
|
configuration: r,
|
|
2105
2105
|
done: En(r, this),
|
|
2106
|
-
tags:
|
|
2106
|
+
tags: Zo(r),
|
|
2107
2107
|
machine: this.machine
|
|
2108
2108
|
}));
|
|
2109
2109
|
}, e.prototype.transitionLeafNode = function(t, n, r) {
|
|
@@ -2115,7 +2115,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2115
2115
|
}, e.prototype.transitionParallelNode = function(t, n, r) {
|
|
2116
2116
|
var o, i, a = {};
|
|
2117
2117
|
try {
|
|
2118
|
-
for (var s =
|
|
2118
|
+
for (var s = re(Object.keys(t)), c = s.next(); !c.done; c = s.next()) {
|
|
2119
2119
|
var d = c.value, v = t[d];
|
|
2120
2120
|
if (v) {
|
|
2121
2121
|
var u = this.getStateNode(d), l = u._transition(v, n, r);
|
|
@@ -2160,14 +2160,14 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2160
2160
|
}))
|
|
2161
2161
|
};
|
|
2162
2162
|
}, e.prototype._transition = function(t, n, r) {
|
|
2163
|
-
return
|
|
2163
|
+
return oe(t) ? this.transitionLeafNode(t, n, r) : Object.keys(t).length === 1 ? this.transitionCompoundNode(t, n, r) : this.transitionParallelNode(t, n, r);
|
|
2164
2164
|
}, e.prototype.getTransitionData = function(t, n) {
|
|
2165
|
-
return this._transition(t.value, t,
|
|
2165
|
+
return this._transition(t.value, t, Ce(n));
|
|
2166
2166
|
}, e.prototype.next = function(t, n) {
|
|
2167
2167
|
var r, o, i = this, a = n.name, s = [], c = [], d;
|
|
2168
2168
|
try {
|
|
2169
|
-
for (var v =
|
|
2170
|
-
var l = u.value, p = l.cond, f = l.in, y = t.context, g = f ?
|
|
2169
|
+
for (var v = re(this.getCandidates(a)), u = v.next(); !u.done; u = v.next()) {
|
|
2170
|
+
var l = u.value, p = l.cond, f = l.in, y = t.context, g = f ? oe(f) && $t(f) ? (
|
|
2171
2171
|
// Check if in state by ID
|
|
2172
2172
|
t.matches(Sn(this.getStateNodeById(f).path, this.delimiter))
|
|
2173
2173
|
) : (
|
|
@@ -2181,7 +2181,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2181
2181
|
`).concat(E.message));
|
|
2182
2182
|
}
|
|
2183
2183
|
if (x && g) {
|
|
2184
|
-
l.target !== void 0 && (c = l.target), s.push.apply(s, me([],
|
|
2184
|
+
l.target !== void 0 && (c = l.target), s.push.apply(s, me([], ie(l.actions), !1)), d = l;
|
|
2185
2185
|
break;
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
@@ -2238,13 +2238,13 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2238
2238
|
}, e.prototype.getActions = function(t, n, r, o) {
|
|
2239
2239
|
var i, a, s, c, d = Ut([], o ? this.getStateNodes(o.value) : [this]), v = t.configuration.length ? Ut(d, t.configuration) : d;
|
|
2240
2240
|
try {
|
|
2241
|
-
for (var u =
|
|
2241
|
+
for (var u = re(v), l = u.next(); !l.done; l = u.next()) {
|
|
2242
2242
|
var p = l.value;
|
|
2243
|
-
|
|
2243
|
+
Xn(d, p) || t.entrySet.push(p);
|
|
2244
2244
|
}
|
|
2245
|
-
} catch (
|
|
2245
|
+
} catch (R) {
|
|
2246
2246
|
i = {
|
|
2247
|
-
error:
|
|
2247
|
+
error: R
|
|
2248
2248
|
};
|
|
2249
2249
|
} finally {
|
|
2250
2250
|
try {
|
|
@@ -2254,13 +2254,13 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
2256
|
try {
|
|
2257
|
-
for (var f =
|
|
2257
|
+
for (var f = re(d), y = f.next(); !y.done; y = f.next()) {
|
|
2258
2258
|
var p = y.value;
|
|
2259
|
-
(!
|
|
2259
|
+
(!Xn(v, p) || Xn(t.exitSet, p.parent)) && t.exitSet.push(p);
|
|
2260
2260
|
}
|
|
2261
|
-
} catch (
|
|
2261
|
+
} catch (R) {
|
|
2262
2262
|
s = {
|
|
2263
|
-
error:
|
|
2263
|
+
error: R
|
|
2264
2264
|
};
|
|
2265
2265
|
} finally {
|
|
2266
2266
|
try {
|
|
@@ -2269,45 +2269,45 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2269
2269
|
if (s) throw s.error;
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
|
-
var g = ve(t.entrySet.map(function(
|
|
2272
|
+
var g = ve(t.entrySet.map(function(R) {
|
|
2273
2273
|
var O = [];
|
|
2274
|
-
if (
|
|
2274
|
+
if (R.type !== "final")
|
|
2275
2275
|
return O;
|
|
2276
|
-
var I =
|
|
2276
|
+
var I = R.parent;
|
|
2277
2277
|
if (!I.parent)
|
|
2278
2278
|
return O;
|
|
2279
2279
|
O.push(
|
|
2280
|
-
Wn(
|
|
2280
|
+
Wn(R.id, R.doneData),
|
|
2281
2281
|
// TODO: deprecate - final states should not emit done events for their own state.
|
|
2282
|
-
Wn(I.id,
|
|
2282
|
+
Wn(I.id, R.doneData ? ir(R.doneData, n, r) : void 0)
|
|
2283
2283
|
);
|
|
2284
2284
|
var P = I.parent;
|
|
2285
|
-
return P.type === "parallel" &&
|
|
2285
|
+
return P.type === "parallel" && Jt(P).every(function(D) {
|
|
2286
2286
|
return En(t.configuration, D);
|
|
2287
2287
|
}) && O.push(Wn(P.id)), O;
|
|
2288
2288
|
}));
|
|
2289
|
-
t.exitSet.sort(function(
|
|
2290
|
-
return O.order -
|
|
2291
|
-
}), t.entrySet.sort(function(
|
|
2292
|
-
return
|
|
2289
|
+
t.exitSet.sort(function(R, O) {
|
|
2290
|
+
return O.order - R.order;
|
|
2291
|
+
}), t.entrySet.sort(function(R, O) {
|
|
2292
|
+
return R.order - O.order;
|
|
2293
2293
|
});
|
|
2294
|
-
var x = new Set(t.entrySet), m = new Set(t.exitSet), S =
|
|
2295
|
-
return me(me([],
|
|
2294
|
+
var x = new Set(t.entrySet), m = new Set(t.exitSet), S = ie([ve(Array.from(x).map(function(R) {
|
|
2295
|
+
return me(me([], ie(R.activities.map(function(O) {
|
|
2296
2296
|
return el(O);
|
|
2297
|
-
})), !1),
|
|
2298
|
-
})).concat(g.map(va)), ve(Array.from(m).map(function(
|
|
2299
|
-
return me(me([],
|
|
2297
|
+
})), !1), ie(R.onEntry), !1);
|
|
2298
|
+
})).concat(g.map(va)), ve(Array.from(m).map(function(R) {
|
|
2299
|
+
return me(me([], ie(R.onExit), !1), ie(R.activities.map(function(O) {
|
|
2300
2300
|
return tl(O);
|
|
2301
2301
|
})), !1);
|
|
2302
2302
|
}))], 2), T = S[0], E = S[1], N = sr(E.concat(t.actions).concat(T), this.machine.options.actions);
|
|
2303
2303
|
return N;
|
|
2304
2304
|
}, e.prototype.transition = function(t, n, r) {
|
|
2305
2305
|
t === void 0 && (t = this.initialState);
|
|
2306
|
-
var o =
|
|
2306
|
+
var o = Ce(n), i;
|
|
2307
2307
|
if (t instanceof tt)
|
|
2308
2308
|
i = r === void 0 ? t : this.resolveState(tt.from(t, r));
|
|
2309
2309
|
else {
|
|
2310
|
-
var a =
|
|
2310
|
+
var a = oe(t) ? this.resolve(or(this.getResolvedPath(t))) : this.resolve(t), s = r ?? this.machine.context;
|
|
2311
2311
|
i = this.resolveState(tt.from(a, s));
|
|
2312
2312
|
}
|
|
2313
2313
|
if (this.strict && !this.events.includes(o.name) && !Wc(o.name))
|
|
@@ -2320,22 +2320,22 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2320
2320
|
source: i,
|
|
2321
2321
|
actions: []
|
|
2322
2322
|
}, d = Ut([], this.getStateNodes(i.value)), v = c.configuration.length ? Ut(d, c.configuration) : d;
|
|
2323
|
-
return c.configuration = me([],
|
|
2323
|
+
return c.configuration = me([], ie(v), !1), this.resolveTransition(c, i, i.context, o);
|
|
2324
2324
|
}, e.prototype.resolveRaisedTransition = function(t, n, r) {
|
|
2325
2325
|
var o, i = t.actions;
|
|
2326
|
-
return t = this.transition(t, n), t._event = r, t.event = r.data, (o = t.actions).unshift.apply(o, me([],
|
|
2326
|
+
return t = this.transition(t, n), t._event = r, t.event = r.data, (o = t.actions).unshift.apply(o, me([], ie(i), !1)), t;
|
|
2327
2327
|
}, e.prototype.resolveTransition = function(t, n, r, o) {
|
|
2328
2328
|
var i, a, s = this;
|
|
2329
2329
|
o === void 0 && (o = ar);
|
|
2330
2330
|
var c = t.configuration, d = !n || t.transitions.length > 0, v = d ? fl(this.machine, c) : void 0, u = n ? n.historyValue ? n.historyValue : t.source ? this.machine.historyValue(n.value) : void 0 : void 0, l = this.getActions(t, r, o, n), p = n ? L({}, n.activities) : {};
|
|
2331
2331
|
try {
|
|
2332
|
-
for (var f =
|
|
2332
|
+
for (var f = re(l), y = f.next(); !y.done; y = f.next()) {
|
|
2333
2333
|
var g = y.value;
|
|
2334
|
-
g.type ===
|
|
2334
|
+
g.type === Gr ? p[g.activity.id || g.activity.type] = g : g.type === ho && (p[g.activity.id || g.activity.type] = !1);
|
|
2335
2335
|
}
|
|
2336
|
-
} catch (
|
|
2336
|
+
} catch (G) {
|
|
2337
2337
|
i = {
|
|
2338
|
-
error:
|
|
2338
|
+
error: G
|
|
2339
2339
|
};
|
|
2340
2340
|
} finally {
|
|
2341
2341
|
try {
|
|
@@ -2344,13 +2344,13 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2344
2344
|
if (i) throw i.error;
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
var x =
|
|
2348
|
-
return
|
|
2349
|
-
}), 2), E = T[0], N = T[1],
|
|
2350
|
-
var
|
|
2351
|
-
return
|
|
2352
|
-
}), O =
|
|
2353
|
-
return
|
|
2347
|
+
var x = ie(eo(this, n, r, o, l, this.machine.config.preserveActionOrder), 2), m = x[0], S = x[1], T = ie(ua(m, function(G) {
|
|
2348
|
+
return G.type === wr || G.type === Sr && G.to === qt.Internal;
|
|
2349
|
+
}), 2), E = T[0], N = T[1], R = m.filter(function(G) {
|
|
2350
|
+
var B;
|
|
2351
|
+
return G.type === Gr && ((B = G.activity) === null || B === void 0 ? void 0 : B.type) === Kr;
|
|
2352
|
+
}), O = R.reduce(function(G, B) {
|
|
2353
|
+
return G[B.activity.id] = cl(B.activity, s.machine, S, o), G;
|
|
2354
2354
|
}, n ? L({}, n.children) : {}), I = d ? t.configuration : n ? n.configuration : [], P = En(I, this), D = new tt({
|
|
2355
2355
|
value: v || n.value,
|
|
2356
2356
|
context: S,
|
|
@@ -2366,27 +2366,27 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2366
2366
|
transitions: t.transitions,
|
|
2367
2367
|
children: O,
|
|
2368
2368
|
done: P,
|
|
2369
|
-
tags:
|
|
2369
|
+
tags: Zo(I),
|
|
2370
2370
|
machine: this
|
|
2371
|
-
}),
|
|
2372
|
-
D.changed = o.name === aa ||
|
|
2371
|
+
}), M = r !== S;
|
|
2372
|
+
D.changed = o.name === aa || M;
|
|
2373
2373
|
var F = D.history;
|
|
2374
2374
|
F && delete F.history;
|
|
2375
|
-
var
|
|
2376
|
-
return
|
|
2375
|
+
var Z = !P && (this._transient || c.some(function(G) {
|
|
2376
|
+
return G._transient;
|
|
2377
2377
|
}));
|
|
2378
|
-
if (!d && (!
|
|
2378
|
+
if (!d && (!Z || o.name === Fn))
|
|
2379
2379
|
return D;
|
|
2380
|
-
var
|
|
2380
|
+
var J = D;
|
|
2381
2381
|
if (!P)
|
|
2382
|
-
for (
|
|
2382
|
+
for (Z && (J = this.resolveRaisedTransition(J, {
|
|
2383
2383
|
type: Ic
|
|
2384
2384
|
}, o)); E.length; ) {
|
|
2385
2385
|
var te = E.shift();
|
|
2386
|
-
|
|
2386
|
+
J = this.resolveRaisedTransition(J, te._event, o);
|
|
2387
2387
|
}
|
|
2388
|
-
var
|
|
2389
|
-
return
|
|
2388
|
+
var ee = J.changed || (F ? !!J.actions.length || M || typeof F.value != typeof J.value || !wa(J.value, F.value) : void 0);
|
|
2389
|
+
return J.changed = ee, J.history = F, J;
|
|
2390
2390
|
}, e.prototype.getStateNode = function(t) {
|
|
2391
2391
|
if ($t(t))
|
|
2392
2392
|
return this.machine.getStateNodeById(t);
|
|
@@ -2427,7 +2427,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2427
2427
|
return i ? r.getStateNode(a).resolve(t[a] || i) : Lt;
|
|
2428
2428
|
});
|
|
2429
2429
|
case "compound":
|
|
2430
|
-
if (
|
|
2430
|
+
if (oe(t)) {
|
|
2431
2431
|
var o = this.getStateNode(t);
|
|
2432
2432
|
return o.type === "parallel" || o.type === "compound" ? (n = {}, n[t] = o.initialStateValue, n) : t;
|
|
2433
2433
|
}
|
|
@@ -2452,7 +2452,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2452
2452
|
return this.__cache.initialStateValue;
|
|
2453
2453
|
var n;
|
|
2454
2454
|
if (this.type === "parallel")
|
|
2455
|
-
n =
|
|
2455
|
+
n = Ko(this.states, function(r) {
|
|
2456
2456
|
return r.initialStateValue || Lt;
|
|
2457
2457
|
}, function(r) {
|
|
2458
2458
|
return r.type !== "history";
|
|
@@ -2500,7 +2500,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2500
2500
|
var t;
|
|
2501
2501
|
if (this.type === "history") {
|
|
2502
2502
|
var n = this.config;
|
|
2503
|
-
|
|
2503
|
+
oe(n.target) ? t = $t(n.target) ? or(this.machine.getStateNodeById(n.target).path.slice(this.path.length - 1)) : n.target : t = n.target;
|
|
2504
2504
|
}
|
|
2505
2505
|
return t;
|
|
2506
2506
|
},
|
|
@@ -2525,7 +2525,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2525
2525
|
}), e.prototype.getFromRelativePath = function(t) {
|
|
2526
2526
|
if (!t.length)
|
|
2527
2527
|
return [this];
|
|
2528
|
-
var n =
|
|
2528
|
+
var n = ie(t), r = n[0], o = n.slice(1);
|
|
2529
2529
|
if (!this.states)
|
|
2530
2530
|
throw new Error("Cannot retrieve subPath '".concat(r, "' from node with no states"));
|
|
2531
2531
|
var i = this.getStateNode(r);
|
|
@@ -2538,10 +2538,10 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2538
2538
|
if (Object.keys(this.states).length)
|
|
2539
2539
|
return {
|
|
2540
2540
|
current: t || this.initialStateValue,
|
|
2541
|
-
states:
|
|
2541
|
+
states: Ko(this.states, function(n, r) {
|
|
2542
2542
|
if (!t)
|
|
2543
2543
|
return n.historyValue();
|
|
2544
|
-
var o =
|
|
2544
|
+
var o = oe(t) ? void 0 : t[r];
|
|
2545
2545
|
return n.historyValue(o || n.initialStateValue);
|
|
2546
2546
|
}, function(n) {
|
|
2547
2547
|
return !n.history;
|
|
@@ -2559,7 +2559,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2559
2559
|
})) : r.initialStateNodes;
|
|
2560
2560
|
}
|
|
2561
2561
|
var i = Uc(r.path, "states")(t).current;
|
|
2562
|
-
return
|
|
2562
|
+
return oe(i) ? [r.getStateNode(i)] : ve(Qn(i).map(function(a) {
|
|
2563
2563
|
return n.history === "deep" ? r.getFromRelativePath(a) : [r.states[a[0]]];
|
|
2564
2564
|
}));
|
|
2565
2565
|
}, Object.defineProperty(e.prototype, "stateIds", {
|
|
@@ -2585,11 +2585,11 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2585
2585
|
var i = this.states, a = new Set(this.ownEvents);
|
|
2586
2586
|
if (i)
|
|
2587
2587
|
try {
|
|
2588
|
-
for (var s =
|
|
2588
|
+
for (var s = re(Object.keys(i)), c = s.next(); !c.done; c = s.next()) {
|
|
2589
2589
|
var d = c.value, v = i[d];
|
|
2590
2590
|
if (v.states)
|
|
2591
2591
|
try {
|
|
2592
|
-
for (var u = (r = void 0,
|
|
2592
|
+
for (var u = (r = void 0, re(v.events)), l = u.next(); !l.done; l = u.next()) {
|
|
2593
2593
|
var p = l.value;
|
|
2594
2594
|
a.add("".concat(p));
|
|
2595
2595
|
}
|
|
@@ -2640,7 +2640,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2640
2640
|
var n = this;
|
|
2641
2641
|
if (t !== void 0)
|
|
2642
2642
|
return t.map(function(r) {
|
|
2643
|
-
if (!
|
|
2643
|
+
if (!oe(r))
|
|
2644
2644
|
return r;
|
|
2645
2645
|
var o = r[0] === n.delimiter;
|
|
2646
2646
|
if (o && !n.parent)
|
|
@@ -2658,8 +2658,8 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2658
2658
|
return n.getStateNodeByPath(i);
|
|
2659
2659
|
});
|
|
2660
2660
|
}, e.prototype.formatTransition = function(t) {
|
|
2661
|
-
var n = this, r =
|
|
2662
|
-
return
|
|
2661
|
+
var n = this, r = Jc(t.target), o = "internal" in t ? t.internal : r ? r.some(function(c) {
|
|
2662
|
+
return oe(c) && c[0] === n.delimiter;
|
|
2663
2663
|
}) : !0, i = this.machine.options.guards, a = this.resolveTarget(r), s = L(L({}, t), {
|
|
2664
2664
|
actions: sr(Be(t.actions)),
|
|
2665
2665
|
cond: fa(t.cond, i),
|
|
@@ -2692,14 +2692,14 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
var v = this.config.always ? Ht("", this.config.always) : [], u = this.config.onDone ? Ht(String(Wn(this.id)), this.config.onDone) : [], l = ve(this.invoke.map(function(m) {
|
|
2694
2694
|
var S = [];
|
|
2695
|
-
return m.onDone && S.push.apply(S, me([],
|
|
2696
|
-
})), p = this.after, f = ve(me(me(me(me([],
|
|
2695
|
+
return m.onDone && S.push.apply(S, me([], ie(Ht(String(Zn(m.id)), m.onDone)), !1)), m.onError && S.push.apply(S, me([], ie(Ht(String(bn(m.id)), m.onError)), !1)), S;
|
|
2696
|
+
})), p = this.after, f = ve(me(me(me(me([], ie(u), !1), ie(l), !1), ie(o), !1), ie(v), !1).map(function(m) {
|
|
2697
2697
|
return Be(m).map(function(S) {
|
|
2698
2698
|
return r.formatTransition(S);
|
|
2699
2699
|
});
|
|
2700
2700
|
}));
|
|
2701
2701
|
try {
|
|
2702
|
-
for (var y =
|
|
2702
|
+
for (var y = re(p), g = y.next(); !g.done; g = y.next()) {
|
|
2703
2703
|
var x = g.value;
|
|
2704
2704
|
f.push(x);
|
|
2705
2705
|
}
|
|
@@ -2721,7 +2721,7 @@ var Fn = "", ro = "#", Hr = "*", Lt = {}, $t = function(e) {
|
|
|
2721
2721
|
function Er(e, t) {
|
|
2722
2722
|
return new kl(e, t);
|
|
2723
2723
|
}
|
|
2724
|
-
var pe = rl, kn =
|
|
2724
|
+
var pe = rl, kn = Cn, Ue = Qc, vn = al;
|
|
2725
2725
|
function ei(e) {
|
|
2726
2726
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2727
2727
|
}
|
|
@@ -2733,7 +2733,7 @@ var We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2733
2733
|
function Nt(e) {
|
|
2734
2734
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2736
|
+
function Rl(e) {
|
|
2737
2737
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
2738
2738
|
var t = e.default;
|
|
2739
2739
|
if (typeof t == "function") {
|
|
@@ -2758,7 +2758,7 @@ function Cl(e) {
|
|
|
2758
2758
|
}), n;
|
|
2759
2759
|
}
|
|
2760
2760
|
var oo = { exports: {} }, Ol = oo.exports, ni;
|
|
2761
|
-
function
|
|
2761
|
+
function Cl() {
|
|
2762
2762
|
return ni || (ni = 1, (function(e) {
|
|
2763
2763
|
(function(t, n) {
|
|
2764
2764
|
e.exports = n();
|
|
@@ -2902,13 +2902,13 @@ function Rl() {
|
|
|
2902
2902
|
});
|
|
2903
2903
|
})(oo)), oo.exports;
|
|
2904
2904
|
}
|
|
2905
|
-
var Al =
|
|
2905
|
+
var Al = Cl();
|
|
2906
2906
|
const Nl = /* @__PURE__ */ Nt(Al);
|
|
2907
2907
|
var zt = Object.prototype.hasOwnProperty;
|
|
2908
|
-
function
|
|
2908
|
+
function Ye(e) {
|
|
2909
2909
|
if (io(e))
|
|
2910
2910
|
return !1;
|
|
2911
|
-
if (!e ||
|
|
2911
|
+
if (!e || Kt(e) && e.length === 0)
|
|
2912
2912
|
return !0;
|
|
2913
2913
|
if (!_a(e)) {
|
|
2914
2914
|
for (var t in e)
|
|
@@ -2924,7 +2924,7 @@ function io(e) {
|
|
|
2924
2924
|
function _a(e) {
|
|
2925
2925
|
return typeof e == "string";
|
|
2926
2926
|
}
|
|
2927
|
-
function
|
|
2927
|
+
function Kt(e) {
|
|
2928
2928
|
return Array.isArray(e);
|
|
2929
2929
|
}
|
|
2930
2930
|
function ao(e, t) {
|
|
@@ -2937,7 +2937,7 @@ function Il(e) {
|
|
|
2937
2937
|
return t.toString() === e ? t : e;
|
|
2938
2938
|
}
|
|
2939
2939
|
function ur(e, t, n) {
|
|
2940
|
-
return e == null ? t ? n ? [] : {} : e :
|
|
2940
|
+
return e == null ? t ? n ? [] : {} : e : Kt(e) ? e.slice() : ao({}, e);
|
|
2941
2941
|
}
|
|
2942
2942
|
function dr(e, t) {
|
|
2943
2943
|
if (e !== t && ti(e) && ti(t)) {
|
|
@@ -2951,7 +2951,7 @@ function dr(e, t) {
|
|
|
2951
2951
|
return t;
|
|
2952
2952
|
}
|
|
2953
2953
|
function it(e, t, n, r) {
|
|
2954
|
-
if (io(n) && (n = [n]),
|
|
2954
|
+
if (io(n) && (n = [n]), Ye(n))
|
|
2955
2955
|
return t;
|
|
2956
2956
|
if (_a(n))
|
|
2957
2957
|
return it(e, t, n.split(".").map(Il), r);
|
|
@@ -2960,31 +2960,31 @@ function it(e, t, n, r) {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
var je = {};
|
|
2962
2962
|
je.set = function(e, t, n, r) {
|
|
2963
|
-
return
|
|
2963
|
+
return Ye(n) ? r : it(e, t, n, function(o, i) {
|
|
2964
2964
|
return o[i] = r, o;
|
|
2965
2965
|
});
|
|
2966
2966
|
};
|
|
2967
2967
|
je.update = function(e, t, n, r) {
|
|
2968
|
-
return
|
|
2968
|
+
return Ye(n) ? r(ur(t)) : it(e, t, n, function(o, i) {
|
|
2969
2969
|
return o[i] = r(o[i]), o;
|
|
2970
2970
|
});
|
|
2971
2971
|
};
|
|
2972
2972
|
je.push = function(e, t, n) {
|
|
2973
2973
|
var r = Array.prototype.slice.call(arguments, 3);
|
|
2974
|
-
return
|
|
2975
|
-
return
|
|
2974
|
+
return Ye(n) ? Kt(t) ? t.concat(r) : r : it(e, t, n, function(o, i) {
|
|
2975
|
+
return Kt(o[i]) ? o[i] = o[i].concat(r) : o[i] = r, o;
|
|
2976
2976
|
});
|
|
2977
2977
|
};
|
|
2978
2978
|
je.insert = function(e, t, n, r, o) {
|
|
2979
|
-
if (o = ~~o,
|
|
2980
|
-
if (!
|
|
2979
|
+
if (o = ~~o, Ye(n)) {
|
|
2980
|
+
if (!Kt(t))
|
|
2981
2981
|
return [r];
|
|
2982
2982
|
var i = t.slice(0, o);
|
|
2983
2983
|
return i.push(r), i.concat(t.slice(o));
|
|
2984
2984
|
}
|
|
2985
2985
|
return it(e, t, n, function(a, s) {
|
|
2986
2986
|
var c = a[s];
|
|
2987
|
-
if (!
|
|
2987
|
+
if (!Kt(c)) {
|
|
2988
2988
|
if (c != null && typeof c < "u")
|
|
2989
2989
|
throw new Error("Expected " + n + "to be an array. Instead got " + typeof n);
|
|
2990
2990
|
c = [];
|
|
@@ -2994,20 +2994,20 @@ je.insert = function(e, t, n, r, o) {
|
|
|
2994
2994
|
});
|
|
2995
2995
|
};
|
|
2996
2996
|
je.del = function(e, t, n) {
|
|
2997
|
-
if (!
|
|
2997
|
+
if (!Ye(n))
|
|
2998
2998
|
return it(e, t, n, function(r, o) {
|
|
2999
2999
|
return Array.isArray(r) ? r[o] !== void 0 && r.splice(o, 1) : zt.call(r, o) && delete r[o], r;
|
|
3000
3000
|
});
|
|
3001
3001
|
};
|
|
3002
3002
|
je.assign = function(e, t, n, r) {
|
|
3003
|
-
return
|
|
3003
|
+
return Ye(n) ? Ye(r) ? t : ao(ur(t), r) : it(e, t, n, function(o, i) {
|
|
3004
3004
|
r = Object(r);
|
|
3005
3005
|
var a = ur(o[i], !0);
|
|
3006
3006
|
return ao(a, r), o[i] = a, o;
|
|
3007
3007
|
});
|
|
3008
3008
|
};
|
|
3009
3009
|
je.merge = function(e, t, n, r) {
|
|
3010
|
-
return
|
|
3010
|
+
return Ye(n) ? Ye(r) ? t : dr(t, r) : it(e, t, n, function(o, i) {
|
|
3011
3011
|
return r = Object(r), o[i] = dr(o[i], r), o;
|
|
3012
3012
|
});
|
|
3013
3013
|
};
|
|
@@ -3043,9 +3043,9 @@ tr.exports;
|
|
|
3043
3043
|
var ri;
|
|
3044
3044
|
function Ul() {
|
|
3045
3045
|
return ri || (ri = 1, (function(e, t) {
|
|
3046
|
-
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, s = "[object Arguments]", c = "[object Array]", d = "[object AsyncFunction]", v = "[object Boolean]", u = "[object Date]", l = "[object Error]", p = "[object Function]", f = "[object GeneratorFunction]", y = "[object Map]", g = "[object Number]", x = "[object Null]", m = "[object Object]", S = "[object Promise]", T = "[object Proxy]", E = "[object RegExp]", N = "[object Set]",
|
|
3047
|
-
U[F] = U[
|
|
3048
|
-
var
|
|
3046
|
+
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, s = "[object Arguments]", c = "[object Array]", d = "[object AsyncFunction]", v = "[object Boolean]", u = "[object Date]", l = "[object Error]", p = "[object Function]", f = "[object GeneratorFunction]", y = "[object Map]", g = "[object Number]", x = "[object Null]", m = "[object Object]", S = "[object Promise]", T = "[object Proxy]", E = "[object RegExp]", N = "[object Set]", R = "[object String]", O = "[object Symbol]", I = "[object Undefined]", P = "[object WeakMap]", D = "[object ArrayBuffer]", M = "[object DataView]", F = "[object Float32Array]", Z = "[object Float64Array]", J = "[object Int8Array]", te = "[object Int16Array]", ee = "[object Int32Array]", G = "[object Uint8Array]", B = "[object Uint8ClampedArray]", le = "[object Uint16Array]", Y = "[object Uint32Array]", he = /[\\^$.*+?()[\]{}|]/g, xe = /^\[object .+?Constructor\]$/, ke = /^(?:0|[1-9]\d*)$/, U = {};
|
|
3047
|
+
U[F] = U[Z] = U[J] = U[te] = U[ee] = U[G] = U[B] = U[le] = U[Y] = !0, U[s] = U[c] = U[D] = U[v] = U[M] = U[u] = U[l] = U[p] = U[y] = U[g] = U[m] = U[E] = U[N] = U[R] = U[P] = !1;
|
|
3048
|
+
var q = typeof We == "object" && We && We.Object === Object && We, ne = typeof self == "object" && self && self.Object === Object && self, de = q || ne || Function("return this")(), we = t && !t.nodeType && t, He = we && !0 && e && !e.nodeType && e, Ae = He && He.exports === we, Le = Ae && q.process, ze = (function() {
|
|
3049
3049
|
try {
|
|
3050
3050
|
return Le && Le.binding && Le.binding("util");
|
|
3051
3051
|
} catch {
|
|
@@ -3102,12 +3102,12 @@ function Ul() {
|
|
|
3102
3102
|
j[++_] = z;
|
|
3103
3103
|
}), j;
|
|
3104
3104
|
}
|
|
3105
|
-
var un = Array.prototype, Pt = Function.prototype, pt = Object.prototype,
|
|
3106
|
-
var b = /[^.]+$/.exec(
|
|
3105
|
+
var un = Array.prototype, Pt = Function.prototype, pt = Object.prototype, Ze = de["__core-js_shared__"], St = Pt.toString, k = pt.hasOwnProperty, $ = (function() {
|
|
3106
|
+
var b = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
|
|
3107
3107
|
return b ? "Symbol(src)_1." + b : "";
|
|
3108
3108
|
})(), h = pt.toString, w = RegExp(
|
|
3109
3109
|
"^" + St.call(k).replace(he, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3110
|
-
), A = Ae ?
|
|
3110
|
+
), A = Ae ? de.Buffer : void 0, C = de.Symbol, H = de.Uint8Array, W = pt.propertyIsEnumerable, V = un.splice, K = C ? C.toStringTag : void 0, X = Object.getOwnPropertySymbols, se = A ? A.isBuffer : void 0, ue = cn(Object.keys, Object), Se = Dt(de, "DataView"), Re = Dt(de, "Map"), Je = Dt(de, "Promise"), dn = Dt(de, "Set"), Nr = Dt(de, "WeakMap"), fn = Dt(Object, "create"), $s = Tt(Se), Ms = Tt(Re), Us = Tt(Je), Ws = Tt(dn), zs = Tt(Nr), Ho = C ? C.prototype : void 0, Ir = Ho ? Ho.valueOf : void 0;
|
|
3111
3111
|
function Et(b) {
|
|
3112
3112
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3113
3113
|
for (this.clear(); ++_ < j; ) {
|
|
@@ -3134,40 +3134,40 @@ function Ul() {
|
|
|
3134
3134
|
var _ = this.__data__;
|
|
3135
3135
|
return fn ? _[b] !== void 0 : k.call(_, b);
|
|
3136
3136
|
}
|
|
3137
|
-
function
|
|
3137
|
+
function Gs(b, _) {
|
|
3138
3138
|
var j = this.__data__;
|
|
3139
3139
|
return this.size += this.has(b) ? 0 : 1, j[b] = fn && _ === void 0 ? r : _, this;
|
|
3140
3140
|
}
|
|
3141
|
-
Et.prototype.clear = Vs, Et.prototype.delete = Fs, Et.prototype.get = Bs, Et.prototype.has = qs, Et.prototype.set =
|
|
3142
|
-
function
|
|
3141
|
+
Et.prototype.clear = Vs, Et.prototype.delete = Fs, Et.prototype.get = Bs, Et.prototype.has = qs, Et.prototype.set = Gs;
|
|
3142
|
+
function Xe(b) {
|
|
3143
3143
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3144
3144
|
for (this.clear(); ++_ < j; ) {
|
|
3145
3145
|
var z = b[_];
|
|
3146
3146
|
this.set(z[0], z[1]);
|
|
3147
3147
|
}
|
|
3148
3148
|
}
|
|
3149
|
-
function
|
|
3149
|
+
function Js() {
|
|
3150
3150
|
this.__data__ = [], this.size = 0;
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function Ks(b) {
|
|
3153
3153
|
var _ = this.__data__, j = Dn(_, b);
|
|
3154
3154
|
if (j < 0)
|
|
3155
3155
|
return !1;
|
|
3156
3156
|
var z = _.length - 1;
|
|
3157
3157
|
return j == z ? _.pop() : V.call(_, j, 1), --this.size, !0;
|
|
3158
3158
|
}
|
|
3159
|
-
function
|
|
3159
|
+
function Ys(b) {
|
|
3160
3160
|
var _ = this.__data__, j = Dn(_, b);
|
|
3161
3161
|
return j < 0 ? void 0 : _[j][1];
|
|
3162
3162
|
}
|
|
3163
3163
|
function Qs(b) {
|
|
3164
3164
|
return Dn(this.__data__, b) > -1;
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Zs(b, _) {
|
|
3167
3167
|
var j = this.__data__, z = Dn(j, b);
|
|
3168
3168
|
return z < 0 ? (++this.size, j.push([b, _])) : j[z][1] = _, this;
|
|
3169
3169
|
}
|
|
3170
|
-
|
|
3170
|
+
Xe.prototype.clear = Js, Xe.prototype.delete = Ks, Xe.prototype.get = Ys, Xe.prototype.has = Qs, Xe.prototype.set = Zs;
|
|
3171
3171
|
function _t(b) {
|
|
3172
3172
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3173
3173
|
for (this.clear(); ++_ < j; ) {
|
|
@@ -3175,10 +3175,10 @@ function Ul() {
|
|
|
3175
3175
|
this.set(z[0], z[1]);
|
|
3176
3176
|
}
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function Xs() {
|
|
3179
3179
|
this.size = 0, this.__data__ = {
|
|
3180
3180
|
hash: new Et(),
|
|
3181
|
-
map: new (
|
|
3181
|
+
map: new (Re || Xe)(),
|
|
3182
3182
|
string: new Et()
|
|
3183
3183
|
};
|
|
3184
3184
|
}
|
|
@@ -3196,7 +3196,7 @@ function Ul() {
|
|
|
3196
3196
|
var j = Hn(this, b), z = j.size;
|
|
3197
3197
|
return j.set(b, _), this.size += j.size == z ? 0 : 1, this;
|
|
3198
3198
|
}
|
|
3199
|
-
_t.prototype.clear =
|
|
3199
|
+
_t.prototype.clear = Xs, _t.prototype.delete = ec, _t.prototype.get = tc, _t.prototype.has = nc, _t.prototype.set = rc;
|
|
3200
3200
|
function Pn(b) {
|
|
3201
3201
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3202
3202
|
for (this.__data__ = new _t(); ++_ < j; )
|
|
@@ -3210,11 +3210,11 @@ function Ul() {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
Pn.prototype.add = Pn.prototype.push = oc, Pn.prototype.has = ic;
|
|
3212
3212
|
function ht(b) {
|
|
3213
|
-
var _ = this.__data__ = new
|
|
3213
|
+
var _ = this.__data__ = new Xe(b);
|
|
3214
3214
|
this.size = _.size;
|
|
3215
3215
|
}
|
|
3216
3216
|
function ac() {
|
|
3217
|
-
this.__data__ = new
|
|
3217
|
+
this.__data__ = new Xe(), this.size = 0;
|
|
3218
3218
|
}
|
|
3219
3219
|
function sc(b) {
|
|
3220
3220
|
var _ = this.__data__, j = _.delete(b);
|
|
@@ -3228,9 +3228,9 @@ function Ul() {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
function uc(b, _) {
|
|
3230
3230
|
var j = this.__data__;
|
|
3231
|
-
if (j instanceof
|
|
3231
|
+
if (j instanceof Xe) {
|
|
3232
3232
|
var z = j.__data__;
|
|
3233
|
-
if (!
|
|
3233
|
+
if (!Re || z.length < n - 1)
|
|
3234
3234
|
return z.push([b, _]), this.size = ++j.size, this;
|
|
3235
3235
|
j = this.__data__ = new _t(z);
|
|
3236
3236
|
}
|
|
@@ -3258,7 +3258,7 @@ function Ul() {
|
|
|
3258
3258
|
return Ln(b) ? z : ut(z, j(b));
|
|
3259
3259
|
}
|
|
3260
3260
|
function pn(b) {
|
|
3261
|
-
return b == null ? b === void 0 ? I : x :
|
|
3261
|
+
return b == null ? b === void 0 ? I : x : K && K in Object(b) ? bc(b) : Tc(b);
|
|
3262
3262
|
}
|
|
3263
3263
|
function Lo(b) {
|
|
3264
3264
|
return hn(b) && pn(b) == s;
|
|
@@ -3297,7 +3297,7 @@ function Ul() {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
function gc(b) {
|
|
3299
3299
|
if (!_c(b))
|
|
3300
|
-
return
|
|
3300
|
+
return ue(b);
|
|
3301
3301
|
var _ = [];
|
|
3302
3302
|
for (var j in Object(b))
|
|
3303
3303
|
k.call(b, j) && j != "constructor" && _.push(j);
|
|
@@ -3338,7 +3338,7 @@ function Ul() {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
function yc(b, _, j, z, fe, Q, ye) {
|
|
3340
3340
|
switch (j) {
|
|
3341
|
-
case
|
|
3341
|
+
case M:
|
|
3342
3342
|
if (b.byteLength != _.byteLength || b.byteOffset != _.byteOffset)
|
|
3343
3343
|
return !1;
|
|
3344
3344
|
b = b.buffer, _ = _.buffer;
|
|
@@ -3351,7 +3351,7 @@ function Ul() {
|
|
|
3351
3351
|
case l:
|
|
3352
3352
|
return b.name == _.name && b.message == _.message;
|
|
3353
3353
|
case E:
|
|
3354
|
-
case
|
|
3354
|
+
case R:
|
|
3355
3355
|
return b == _ + "";
|
|
3356
3356
|
case y:
|
|
3357
3357
|
var Ee = sn;
|
|
@@ -3403,7 +3403,7 @@ function Ul() {
|
|
|
3403
3403
|
return Q.delete(b), Q.delete(_), Me;
|
|
3404
3404
|
}
|
|
3405
3405
|
function Uo(b) {
|
|
3406
|
-
return fc(b,
|
|
3406
|
+
return fc(b, Cc, xc);
|
|
3407
3407
|
}
|
|
3408
3408
|
function Hn(b, _) {
|
|
3409
3409
|
var j = b.__data__;
|
|
@@ -3414,26 +3414,26 @@ function Ul() {
|
|
|
3414
3414
|
return hc(j) ? j : void 0;
|
|
3415
3415
|
}
|
|
3416
3416
|
function bc(b) {
|
|
3417
|
-
var _ = k.call(b,
|
|
3417
|
+
var _ = k.call(b, K), j = b[K];
|
|
3418
3418
|
try {
|
|
3419
|
-
b[
|
|
3419
|
+
b[K] = void 0;
|
|
3420
3420
|
var z = !0;
|
|
3421
3421
|
} catch {
|
|
3422
3422
|
}
|
|
3423
3423
|
var fe = h.call(b);
|
|
3424
|
-
return z && (_ ? b[
|
|
3424
|
+
return z && (_ ? b[K] = j : delete b[K]), fe;
|
|
3425
3425
|
}
|
|
3426
3426
|
var xc = X ? function(b) {
|
|
3427
3427
|
return b == null ? [] : (b = Object(b), jt(X(b), function(_) {
|
|
3428
3428
|
return W.call(b, _);
|
|
3429
3429
|
}));
|
|
3430
3430
|
} : Ac, vt = pn;
|
|
3431
|
-
(Se && vt(new Se(new ArrayBuffer(1))) !=
|
|
3431
|
+
(Se && vt(new Se(new ArrayBuffer(1))) != M || Re && vt(new Re()) != y || Je && vt(Je.resolve()) != S || dn && vt(new dn()) != N || Nr && vt(new Nr()) != P) && (vt = function(b) {
|
|
3432
3432
|
var _ = pn(b), j = _ == m ? b.constructor : void 0, z = j ? Tt(j) : "";
|
|
3433
3433
|
if (z)
|
|
3434
3434
|
switch (z) {
|
|
3435
3435
|
case $s:
|
|
3436
|
-
return
|
|
3436
|
+
return M;
|
|
3437
3437
|
case Ms:
|
|
3438
3438
|
return y;
|
|
3439
3439
|
case Us:
|
|
@@ -3453,7 +3453,7 @@ function Ul() {
|
|
|
3453
3453
|
return _ == "string" || _ == "number" || _ == "symbol" || _ == "boolean" ? b !== "__proto__" : b === null;
|
|
3454
3454
|
}
|
|
3455
3455
|
function Ec(b) {
|
|
3456
|
-
return
|
|
3456
|
+
return !!$ && $ in b;
|
|
3457
3457
|
}
|
|
3458
3458
|
function _c(b) {
|
|
3459
3459
|
var _ = b && b.constructor, j = typeof _ == "function" && _.prototype || pt;
|
|
@@ -3483,10 +3483,10 @@ function Ul() {
|
|
|
3483
3483
|
})()) ? Lo : function(b) {
|
|
3484
3484
|
return hn(b) && k.call(b, "callee") && !W.call(b, "callee");
|
|
3485
3485
|
}, Ln = Array.isArray;
|
|
3486
|
-
function
|
|
3486
|
+
function Rc(b) {
|
|
3487
3487
|
return b != null && Vo(b.length) && !zo(b);
|
|
3488
3488
|
}
|
|
3489
|
-
var jr =
|
|
3489
|
+
var jr = se || Nc;
|
|
3490
3490
|
function Oc(b, _) {
|
|
3491
3491
|
return $o(b, _);
|
|
3492
3492
|
}
|
|
@@ -3507,8 +3507,8 @@ function Ul() {
|
|
|
3507
3507
|
return b != null && typeof b == "object";
|
|
3508
3508
|
}
|
|
3509
3509
|
var Bo = wt ? an(wt) : vc;
|
|
3510
|
-
function
|
|
3511
|
-
return
|
|
3510
|
+
function Cc(b) {
|
|
3511
|
+
return Rc(b) ? dc(b) : gc(b);
|
|
3512
3512
|
}
|
|
3513
3513
|
function Ac() {
|
|
3514
3514
|
return [];
|
|
@@ -3520,10 +3520,10 @@ function Ul() {
|
|
|
3520
3520
|
})(tr, tr.exports)), tr.exports;
|
|
3521
3521
|
}
|
|
3522
3522
|
var Wl = Ul();
|
|
3523
|
-
const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW",
|
|
3523
|
+
const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Rt = "STOP_EXPERIENCE", bt = {
|
|
3524
3524
|
NAVIGATION: "navigation",
|
|
3525
3525
|
DISMISSED: "dismissed"
|
|
3526
|
-
}, Vl = "EXTENDED_EVENT", Ta = "START_STEP", bo = "STOP_STEP", ka = "UPDATE_STEP",
|
|
3526
|
+
}, Vl = "EXTENDED_EVENT", Ta = "START_STEP", bo = "STOP_STEP", ka = "UPDATE_STEP", Ra = "SET_STEP_CONTAINER_TARGET", Oa = "UPDATE_STEP_CONTENT", Fl = "RECOVER_STEP", Bl = "AUTO_RECOVER_STEP", ql = "PARENT_RECOVER_STEP", Gl = "ERROR", Jl = "STEP_INTERACTION", Kl = "STEP_SEEN", Ca = "UPDATE_ROOT_STYLE", Yl = "RELOAD", Aa = "STEP_STOPPED", Ql = "EXPERIENCE_DISMISSED", Zl = "EXPERIENCE_SNOOZED", Xl = "FORWARD_TO_PARENT", Na = "TRANSITION_TO_END", Ia = "ACTIONS_STARTED", ja = "ACTIONS_FINISHED", eu = "experience.begin", tu = "experience.end", xo = "step.prebegin", wo = "step.begin", Pa = "step.prerender", Da = "step.postrender", fr = "step.end", Ha = "step.error", La = "step.container_change", $a = "RUN_HOOKS", nu = "RUN_HOOKS_DONE", So = "START_THEME_REMOVAL_LISTENER", Ma = "STOP_THEME_REMOVAL_LISTENER", ru = "GLOBAL_CONTAINER_REMOVED", Eo = "STEP_CONTAINER_REMOVED", _n = "appcues-experience-container", An = "APPCUES-EXPERIENCE-CONTAINER", Nn = "APPCUES-EXPERIENCE-CONTAINER-BUILDER", Ua = "data-appcues-container-id", _r = "RUN_TRAITS_DONE", Wa = "RUN_TRAITS_ERROR", ou = "BIND_ACTIONS_ERROR", iu = () => {
|
|
3527
3527
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
3528
3528
|
const { observerInstance: o } = e.get(r);
|
|
3529
3529
|
if (o) return;
|
|
@@ -3564,7 +3564,7 @@ const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Ct =
|
|
|
3564
3564
|
r.stopPropagation();
|
|
3565
3565
|
})
|
|
3566
3566
|
);
|
|
3567
|
-
}, ii = "|shadow-root|", ai = "|iframe|",
|
|
3567
|
+
}, ii = "|shadow-root|", ai = "|iframe|", Yt = (e, t) => {
|
|
3568
3568
|
try {
|
|
3569
3569
|
return e.includes(ii) || e.includes(ai) ? e.split(ii).flatMap((n) => n.split(ai)).reduce((n, r) => n === null ? [...t.querySelectorAll(r)] : n.flatMap((o) => o.shadowRoot ? [...o.shadowRoot.querySelectorAll(r)] : o.tagName === "IFRAME" ? [
|
|
3570
3570
|
...o.contentDocument.querySelectorAll(r)
|
|
@@ -3573,7 +3573,7 @@ const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Ct =
|
|
|
3573
3573
|
return [];
|
|
3574
3574
|
}
|
|
3575
3575
|
}, su = (e, t) => {
|
|
3576
|
-
const n =
|
|
3576
|
+
const n = Yt(e, t);
|
|
3577
3577
|
return n.length > 0 ? n[0] : null;
|
|
3578
3578
|
}, It = (e) => `appcues-container-${e}`, si = (e, t, n) => {
|
|
3579
3579
|
try {
|
|
@@ -3681,7 +3681,7 @@ const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Ct =
|
|
|
3681
3681
|
// would fail, because it is not a valid css selector.
|
|
3682
3682
|
// * means the parentElement, which is the element
|
|
3683
3683
|
// we are applying the querySelectorAll.
|
|
3684
|
-
v ?
|
|
3684
|
+
v ? Yt(`* ${s}`, v) : []
|
|
3685
3685
|
) : [v];
|
|
3686
3686
|
} catch {
|
|
3687
3687
|
return [];
|
|
@@ -3690,7 +3690,7 @@ const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Ct =
|
|
|
3690
3690
|
const i = It(t.id);
|
|
3691
3691
|
let a = [];
|
|
3692
3692
|
if (r) {
|
|
3693
|
-
const c = o().document, d = du(e, c), v = d.length > 0 ? d :
|
|
3693
|
+
const c = o().document, d = du(e, c), v = d.length > 0 ? d : Yt(e, c.documentElement);
|
|
3694
3694
|
v.length > 0 && (a = [...a, ...v]);
|
|
3695
3695
|
}
|
|
3696
3696
|
if (!n)
|
|
@@ -3699,7 +3699,7 @@ const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Ct =
|
|
|
3699
3699
|
`[${Ua}=${i}]`,
|
|
3700
3700
|
n
|
|
3701
3701
|
);
|
|
3702
|
-
return s && (s =
|
|
3702
|
+
return s && (s = Yt(e, s)), s = s ?? [], s.length > 0 && (a = [...a, ...s]), a;
|
|
3703
3703
|
}, fu = [
|
|
3704
3704
|
"keypress",
|
|
3705
3705
|
"keydown",
|
|
@@ -3730,7 +3730,7 @@ const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Ct =
|
|
|
3730
3730
|
s.body.append(c);
|
|
3731
3731
|
}, hu = (e) => ({ experience: t }) => {
|
|
3732
3732
|
const n = e("getWindowReference")().document, r = It(t.id);
|
|
3733
|
-
|
|
3733
|
+
Yt(
|
|
3734
3734
|
`#${r}`,
|
|
3735
3735
|
n.documentElement
|
|
3736
3736
|
).forEach((o) => n.body.removeChild(o));
|
|
@@ -3751,7 +3751,7 @@ const wn = /* @__PURE__ */ Nt(Wl), zl = "EXPERIENCE_STARTED", oi = "SHOW", Ct =
|
|
|
3751
3751
|
if (o !== So) return;
|
|
3752
3752
|
const i = e("getWindowReference"), a = i().document, s = It(t.id);
|
|
3753
3753
|
_o({
|
|
3754
|
-
getTarget: () =>
|
|
3754
|
+
getTarget: () => Yt(
|
|
3755
3755
|
`#${s}`,
|
|
3756
3756
|
a.documentElement
|
|
3757
3757
|
),
|
|
@@ -3794,10 +3794,10 @@ function xu() {
|
|
|
3794
3794
|
function n(h, w, A) {
|
|
3795
3795
|
if (!h) throw Error();
|
|
3796
3796
|
if (2 < arguments.length) {
|
|
3797
|
-
var
|
|
3797
|
+
var C = Array.prototype.slice.call(arguments, 2);
|
|
3798
3798
|
return function() {
|
|
3799
3799
|
var H = Array.prototype.slice.call(arguments);
|
|
3800
|
-
return Array.prototype.unshift.apply(H,
|
|
3800
|
+
return Array.prototype.unshift.apply(H, C), h.apply(w, H);
|
|
3801
3801
|
};
|
|
3802
3802
|
}
|
|
3803
3803
|
return function() {
|
|
@@ -3814,9 +3814,9 @@ function xu() {
|
|
|
3814
3814
|
this.a = h, this.o = w || h, this.c = this.o.document;
|
|
3815
3815
|
}
|
|
3816
3816
|
var a = !!window.FontFace;
|
|
3817
|
-
function s(h, w, A,
|
|
3817
|
+
function s(h, w, A, C) {
|
|
3818
3818
|
if (w = h.c.createElement(w), A) for (var H in A) A.hasOwnProperty(H) && (H == "style" ? w.style.cssText = A[H] : w.setAttribute(H, A[H]));
|
|
3819
|
-
return
|
|
3819
|
+
return C && w.appendChild(h.c.createTextNode(C)), w;
|
|
3820
3820
|
}
|
|
3821
3821
|
function c(h, w, A) {
|
|
3822
3822
|
h = h.c.getElementsByTagName(w)[0], h || (h = document.documentElement), h.insertBefore(A, h.lastChild);
|
|
@@ -3826,44 +3826,44 @@ function xu() {
|
|
|
3826
3826
|
}
|
|
3827
3827
|
function v(h, w, A) {
|
|
3828
3828
|
w = w || [], A = A || [];
|
|
3829
|
-
for (var
|
|
3830
|
-
for (var W = !1, V = 0; V <
|
|
3829
|
+
for (var C = h.className.split(/\s+/), H = 0; H < w.length; H += 1) {
|
|
3830
|
+
for (var W = !1, V = 0; V < C.length; V += 1) if (w[H] === C[V]) {
|
|
3831
3831
|
W = !0;
|
|
3832
3832
|
break;
|
|
3833
3833
|
}
|
|
3834
|
-
W ||
|
|
3834
|
+
W || C.push(w[H]);
|
|
3835
3835
|
}
|
|
3836
|
-
for (w = [], H = 0; H <
|
|
3837
|
-
for (W = !1, V = 0; V < A.length; V += 1) if (
|
|
3836
|
+
for (w = [], H = 0; H < C.length; H += 1) {
|
|
3837
|
+
for (W = !1, V = 0; V < A.length; V += 1) if (C[H] === A[V]) {
|
|
3838
3838
|
W = !0;
|
|
3839
3839
|
break;
|
|
3840
3840
|
}
|
|
3841
|
-
W || w.push(
|
|
3841
|
+
W || w.push(C[H]);
|
|
3842
3842
|
}
|
|
3843
3843
|
h.className = w.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
|
|
3844
3844
|
}
|
|
3845
3845
|
function u(h, w) {
|
|
3846
|
-
for (var A = h.className.split(/\s+/),
|
|
3846
|
+
for (var A = h.className.split(/\s+/), C = 0, H = A.length; C < H; C++) if (A[C] == w) return !0;
|
|
3847
3847
|
return !1;
|
|
3848
3848
|
}
|
|
3849
3849
|
function l(h) {
|
|
3850
3850
|
return h.o.location.hostname || h.a.location.hostname;
|
|
3851
3851
|
}
|
|
3852
3852
|
function p(h, w, A) {
|
|
3853
|
-
function
|
|
3854
|
-
|
|
3853
|
+
function C() {
|
|
3854
|
+
K && H && W && (K(V), K = null);
|
|
3855
3855
|
}
|
|
3856
3856
|
w = s(h, "link", { rel: "stylesheet", href: w, media: "all" });
|
|
3857
|
-
var H = !1, W = !0, V = null,
|
|
3857
|
+
var H = !1, W = !0, V = null, K = A || null;
|
|
3858
3858
|
a ? (w.onload = function() {
|
|
3859
|
-
H = !0,
|
|
3859
|
+
H = !0, C();
|
|
3860
3860
|
}, w.onerror = function() {
|
|
3861
|
-
H = !0, V = Error("Stylesheet failed to load"),
|
|
3861
|
+
H = !0, V = Error("Stylesheet failed to load"), C();
|
|
3862
3862
|
}) : setTimeout(function() {
|
|
3863
|
-
H = !0,
|
|
3863
|
+
H = !0, C();
|
|
3864
3864
|
}, 0), c(h, "head", w);
|
|
3865
3865
|
}
|
|
3866
|
-
function f(h, w, A,
|
|
3866
|
+
function f(h, w, A, C) {
|
|
3867
3867
|
var H = h.c.getElementsByTagName("head")[0];
|
|
3868
3868
|
if (H) {
|
|
3869
3869
|
var W = s(h, "script", { src: w }), V = !1;
|
|
@@ -3871,7 +3871,7 @@ function xu() {
|
|
|
3871
3871
|
V || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (V = !0, A && A(null), W.onload = W.onreadystatechange = null, W.parentNode.tagName == "HEAD" && H.removeChild(W));
|
|
3872
3872
|
}, H.appendChild(W), setTimeout(function() {
|
|
3873
3873
|
V || (V = !0, A && A(Error("Script load timeout")));
|
|
3874
|
-
},
|
|
3874
|
+
}, C || 5e3), W;
|
|
3875
3875
|
}
|
|
3876
3876
|
return null;
|
|
3877
3877
|
}
|
|
@@ -3908,12 +3908,12 @@ function xu() {
|
|
|
3908
3908
|
var w = [];
|
|
3909
3909
|
h = h.split(/,\s*/);
|
|
3910
3910
|
for (var A = 0; A < h.length; A++) {
|
|
3911
|
-
var
|
|
3912
|
-
|
|
3911
|
+
var C = h[A].replace(/['"]/g, "");
|
|
3912
|
+
C.indexOf(" ") != -1 || /^\d/.test(C) ? w.push("'" + C + "'") : w.push(C);
|
|
3913
3913
|
}
|
|
3914
3914
|
return w.join(",");
|
|
3915
3915
|
}
|
|
3916
|
-
function
|
|
3916
|
+
function R(h) {
|
|
3917
3917
|
return h.a + h.f;
|
|
3918
3918
|
}
|
|
3919
3919
|
function O(h) {
|
|
@@ -3921,8 +3921,8 @@ function xu() {
|
|
|
3921
3921
|
return h.a === "o" ? w = "oblique" : h.a === "i" && (w = "italic"), w;
|
|
3922
3922
|
}
|
|
3923
3923
|
function I(h) {
|
|
3924
|
-
var w = 4, A = "n",
|
|
3925
|
-
return h && ((
|
|
3924
|
+
var w = 4, A = "n", C = null;
|
|
3925
|
+
return h && ((C = h.match(/(normal|oblique|italic)/i)) && C[1] && (A = C[1].substr(0, 1).toLowerCase()), (C = h.match(/([1-9]00|normal|bold)/i)) && C[1] && (/bold/i.test(C[1]) ? w = 7 : /[1-9]00/.test(C[1]) && (w = parseInt(C[1].substr(0, 1), 10)))), A + w;
|
|
3926
3926
|
}
|
|
3927
3927
|
function P(h, w) {
|
|
3928
3928
|
this.c = h, this.f = h.o.document.documentElement, this.h = w, this.a = new S("-"), this.j = w.events !== !1, this.g = w.classes !== !1;
|
|
@@ -3930,62 +3930,62 @@ function xu() {
|
|
|
3930
3930
|
function D(h) {
|
|
3931
3931
|
h.g && v(h.f, [h.a.c("wf", "loading")]), F(h, "loading");
|
|
3932
3932
|
}
|
|
3933
|
-
function
|
|
3933
|
+
function M(h) {
|
|
3934
3934
|
if (h.g) {
|
|
3935
|
-
var w = u(h.f, h.a.c("wf", "active")), A = [],
|
|
3936
|
-
w || A.push(h.a.c("wf", "inactive")), v(h.f, A,
|
|
3935
|
+
var w = u(h.f, h.a.c("wf", "active")), A = [], C = [h.a.c("wf", "loading")];
|
|
3936
|
+
w || A.push(h.a.c("wf", "inactive")), v(h.f, A, C);
|
|
3937
3937
|
}
|
|
3938
3938
|
F(h, "inactive");
|
|
3939
3939
|
}
|
|
3940
3940
|
function F(h, w, A) {
|
|
3941
|
-
h.j && h.h[w] && (A ? h.h[w](A.c,
|
|
3941
|
+
h.j && h.h[w] && (A ? h.h[w](A.c, R(A)) : h.h[w]());
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3943
|
+
function Z() {
|
|
3944
3944
|
this.c = {};
|
|
3945
3945
|
}
|
|
3946
|
-
function
|
|
3947
|
-
var
|
|
3946
|
+
function J(h, w, A) {
|
|
3947
|
+
var C = [], H;
|
|
3948
3948
|
for (H in w) if (w.hasOwnProperty(H)) {
|
|
3949
3949
|
var W = h.c[H];
|
|
3950
|
-
W &&
|
|
3950
|
+
W && C.push(W(w[H], A));
|
|
3951
3951
|
}
|
|
3952
|
-
return
|
|
3952
|
+
return C;
|
|
3953
3953
|
}
|
|
3954
3954
|
function te(h, w) {
|
|
3955
3955
|
this.c = h, this.f = w, this.a = s(this.c, "span", { "aria-hidden": "true" }, this.f);
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function ee(h) {
|
|
3958
3958
|
c(h.c, "body", h.a);
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3960
|
+
function G(h) {
|
|
3961
3961
|
return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + N(h.c) + ";" + ("font-style:" + O(h) + ";font-weight:" + (h.f + "00") + ";");
|
|
3962
3962
|
}
|
|
3963
|
-
function
|
|
3964
|
-
this.g = h, this.j = w, this.a =
|
|
3963
|
+
function B(h, w, A, C, H, W) {
|
|
3964
|
+
this.g = h, this.j = w, this.a = C, this.c = A, this.f = H || 3e3, this.h = W || void 0;
|
|
3965
3965
|
}
|
|
3966
|
-
|
|
3967
|
-
var h = this.c.o.document, w = this, A = o(),
|
|
3966
|
+
B.prototype.start = function() {
|
|
3967
|
+
var h = this.c.o.document, w = this, A = o(), C = new Promise(function(V, K) {
|
|
3968
3968
|
function X() {
|
|
3969
|
-
o() - A >= w.f ?
|
|
3970
|
-
1 <=
|
|
3969
|
+
o() - A >= w.f ? K() : h.fonts.load(E(w.a), w.h).then(function(se) {
|
|
3970
|
+
1 <= se.length ? V() : setTimeout(X, 25);
|
|
3971
3971
|
}, function() {
|
|
3972
|
-
|
|
3972
|
+
K();
|
|
3973
3973
|
});
|
|
3974
3974
|
}
|
|
3975
3975
|
X();
|
|
3976
|
-
}), H = null, W = new Promise(function(V,
|
|
3977
|
-
H = setTimeout(
|
|
3976
|
+
}), H = null, W = new Promise(function(V, K) {
|
|
3977
|
+
H = setTimeout(K, w.f);
|
|
3978
3978
|
});
|
|
3979
|
-
Promise.race([W,
|
|
3979
|
+
Promise.race([W, C]).then(function() {
|
|
3980
3980
|
H && (clearTimeout(H), H = null), w.g(w.a);
|
|
3981
3981
|
}, function() {
|
|
3982
3982
|
w.j(w.a);
|
|
3983
3983
|
});
|
|
3984
3984
|
};
|
|
3985
|
-
function
|
|
3986
|
-
this.v = h, this.B = w, this.c = A, this.a =
|
|
3985
|
+
function le(h, w, A, C, H, W, V) {
|
|
3986
|
+
this.v = h, this.B = w, this.c = A, this.a = C, this.s = V || "BESbswy", this.f = {}, this.w = H || 3e3, this.u = W || null, this.m = this.j = this.h = this.g = null, this.g = new te(this.c, this.s), this.h = new te(this.c, this.s), this.j = new te(this.c, this.s), this.m = new te(this.c, this.s), h = new T(this.a.c + ",serif", R(this.a)), h = G(h), this.g.a.style.cssText = h, h = new T(this.a.c + ",sans-serif", R(this.a)), h = G(h), this.h.a.style.cssText = h, h = new T("serif", R(this.a)), h = G(h), this.j.a.style.cssText = h, h = new T("sans-serif", R(this.a)), h = G(h), this.m.a.style.cssText = h, ee(this.g), ee(this.h), ee(this.j), ee(this.m);
|
|
3987
3987
|
}
|
|
3988
|
-
var
|
|
3988
|
+
var Y = { D: "serif", C: "sans-serif" }, he = null;
|
|
3989
3989
|
function xe() {
|
|
3990
3990
|
if (he === null) {
|
|
3991
3991
|
var h = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
|
|
@@ -3993,77 +3993,77 @@ function xu() {
|
|
|
3993
3993
|
}
|
|
3994
3994
|
return he;
|
|
3995
3995
|
}
|
|
3996
|
-
|
|
3996
|
+
le.prototype.start = function() {
|
|
3997
3997
|
this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = o(), U(this);
|
|
3998
3998
|
};
|
|
3999
3999
|
function ke(h, w, A) {
|
|
4000
|
-
for (var
|
|
4000
|
+
for (var C in Y) if (Y.hasOwnProperty(C) && w === h.f[Y[C]] && A === h.f[Y[C]]) return !0;
|
|
4001
4001
|
return !1;
|
|
4002
4002
|
}
|
|
4003
4003
|
function U(h) {
|
|
4004
|
-
var w = h.g.a.offsetWidth, A = h.h.a.offsetWidth,
|
|
4005
|
-
(
|
|
4004
|
+
var w = h.g.a.offsetWidth, A = h.h.a.offsetWidth, C;
|
|
4005
|
+
(C = w === h.f.serif && A === h.f["sans-serif"]) || (C = xe() && ke(h, w, A)), C ? o() - h.A >= h.w ? xe() && ke(h, w, A) && (h.u === null || h.u.hasOwnProperty(h.a.c)) ? ne(h, h.v) : ne(h, h.B) : q(h) : ne(h, h.v);
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4007
|
+
function q(h) {
|
|
4008
4008
|
setTimeout(r(function() {
|
|
4009
4009
|
U(this);
|
|
4010
4010
|
}, h), 50);
|
|
4011
4011
|
}
|
|
4012
|
-
function
|
|
4012
|
+
function ne(h, w) {
|
|
4013
4013
|
setTimeout(r(function() {
|
|
4014
4014
|
d(this.g.a), d(this.h.a), d(this.j.a), d(this.m.a), w(this.a);
|
|
4015
4015
|
}, h), 0);
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function de(h, w, A) {
|
|
4018
4018
|
this.c = h, this.a = w, this.f = 0, this.m = this.j = !1, this.s = A;
|
|
4019
4019
|
}
|
|
4020
4020
|
var we = null;
|
|
4021
|
-
|
|
4021
|
+
de.prototype.g = function(h) {
|
|
4022
4022
|
var w = this.a;
|
|
4023
|
-
w.g && v(w.f, [w.a.c("wf", h.c,
|
|
4024
|
-
},
|
|
4023
|
+
w.g && v(w.f, [w.a.c("wf", h.c, R(h).toString(), "active")], [w.a.c("wf", h.c, R(h).toString(), "loading"), w.a.c("wf", h.c, R(h).toString(), "inactive")]), F(w, "fontactive", h), this.m = !0, He(this);
|
|
4024
|
+
}, de.prototype.h = function(h) {
|
|
4025
4025
|
var w = this.a;
|
|
4026
4026
|
if (w.g) {
|
|
4027
|
-
var A = u(w.f, w.a.c("wf", h.c,
|
|
4028
|
-
A ||
|
|
4027
|
+
var A = u(w.f, w.a.c("wf", h.c, R(h).toString(), "active")), C = [], H = [w.a.c("wf", h.c, R(h).toString(), "loading")];
|
|
4028
|
+
A || C.push(w.a.c("wf", h.c, R(h).toString(), "inactive")), v(w.f, C, H);
|
|
4029
4029
|
}
|
|
4030
4030
|
F(w, "fontinactive", h), He(this);
|
|
4031
4031
|
};
|
|
4032
4032
|
function He(h) {
|
|
4033
|
-
--h.f == 0 && h.j && (h.m ? (h = h.a, h.g && v(h.f, [h.a.c("wf", "active")], [h.a.c("wf", "loading"), h.a.c("wf", "inactive")]), F(h, "active")) :
|
|
4033
|
+
--h.f == 0 && h.j && (h.m ? (h = h.a, h.g && v(h.f, [h.a.c("wf", "active")], [h.a.c("wf", "loading"), h.a.c("wf", "inactive")]), F(h, "active")) : M(h.a));
|
|
4034
4034
|
}
|
|
4035
4035
|
function Ae(h) {
|
|
4036
|
-
this.j = h, this.a = new
|
|
4036
|
+
this.j = h, this.a = new Z(), this.h = 0, this.f = this.g = !0;
|
|
4037
4037
|
}
|
|
4038
4038
|
Ae.prototype.load = function(h) {
|
|
4039
4039
|
this.c = new i(this.j, h.context || this.j), this.g = h.events !== !1, this.f = h.classes !== !1, ze(this, new P(this.c, h), h);
|
|
4040
4040
|
};
|
|
4041
|
-
function Le(h, w, A,
|
|
4041
|
+
function Le(h, w, A, C, H) {
|
|
4042
4042
|
var W = --h.h == 0;
|
|
4043
4043
|
(h.f || h.g) && setTimeout(function() {
|
|
4044
|
-
var V = H || null,
|
|
4045
|
-
if (A.length === 0 && W)
|
|
4044
|
+
var V = H || null, K = C || null || {};
|
|
4045
|
+
if (A.length === 0 && W) M(w.a);
|
|
4046
4046
|
else {
|
|
4047
4047
|
w.f += A.length, W && (w.j = W);
|
|
4048
|
-
var X,
|
|
4048
|
+
var X, se = [];
|
|
4049
4049
|
for (X = 0; X < A.length; X++) {
|
|
4050
|
-
var
|
|
4051
|
-
if (
|
|
4052
|
-
var
|
|
4053
|
-
we =
|
|
4050
|
+
var ue = A[X], Se = K[ue.c], Re = w.a, Je = ue;
|
|
4051
|
+
if (Re.g && v(Re.f, [Re.a.c("wf", Je.c, R(Je).toString(), "loading")]), F(Re, "fontloading", Je), Re = null, we === null) if (window.FontFace) {
|
|
4052
|
+
var Je = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), dn = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
|
|
4053
|
+
we = Je ? 42 < parseInt(Je[1], 10) : !dn;
|
|
4054
4054
|
} else we = !1;
|
|
4055
|
-
we ?
|
|
4055
|
+
we ? Re = new B(r(w.g, w), r(w.h, w), w.c, ue, w.s, Se) : Re = new le(r(w.g, w), r(w.h, w), w.c, ue, w.s, V, Se), se.push(Re);
|
|
4056
4056
|
}
|
|
4057
|
-
for (X = 0; X <
|
|
4057
|
+
for (X = 0; X < se.length; X++) se[X].start();
|
|
4058
4058
|
}
|
|
4059
4059
|
}, 0);
|
|
4060
4060
|
}
|
|
4061
4061
|
function ze(h, w, A) {
|
|
4062
|
-
var H = [],
|
|
4062
|
+
var H = [], C = A.timeout;
|
|
4063
4063
|
D(w);
|
|
4064
|
-
var H =
|
|
4065
|
-
for (h.h = H.length, w = 0, A = H.length; w < A; w++) H[w].load(function(V,
|
|
4066
|
-
Le(h, W, V,
|
|
4064
|
+
var H = J(h.a, A, h.c), W = new de(h.c, w, C);
|
|
4065
|
+
for (h.h = H.length, w = 0, A = H.length; w < A; w++) H[w].load(function(V, K, X) {
|
|
4066
|
+
Le(h, W, V, K, X);
|
|
4067
4067
|
});
|
|
4068
4068
|
}
|
|
4069
4069
|
function wt(h, w) {
|
|
@@ -4071,38 +4071,38 @@ function xu() {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
wt.prototype.load = function(h) {
|
|
4073
4073
|
function w() {
|
|
4074
|
-
if (W["__mti_fntLst" +
|
|
4075
|
-
var V = W["__mti_fntLst" +
|
|
4076
|
-
if (V) for (var
|
|
4077
|
-
var
|
|
4078
|
-
V[
|
|
4074
|
+
if (W["__mti_fntLst" + C]) {
|
|
4075
|
+
var V = W["__mti_fntLst" + C](), K = [], X;
|
|
4076
|
+
if (V) for (var se = 0; se < V.length; se++) {
|
|
4077
|
+
var ue = V[se].fontfamily;
|
|
4078
|
+
V[se].fontStyle != null && V[se].fontWeight != null ? (X = V[se].fontStyle + V[se].fontWeight, K.push(new T(ue, X))) : K.push(new T(ue));
|
|
4079
4079
|
}
|
|
4080
|
-
h(
|
|
4080
|
+
h(K);
|
|
4081
4081
|
} else setTimeout(function() {
|
|
4082
4082
|
w();
|
|
4083
4083
|
}, 50);
|
|
4084
4084
|
}
|
|
4085
|
-
var A = this,
|
|
4086
|
-
if (
|
|
4085
|
+
var A = this, C = A.a.projectId, H = A.a.version;
|
|
4086
|
+
if (C) {
|
|
4087
4087
|
var W = A.c.o;
|
|
4088
|
-
f(this.c, (A.a.api || "https://fast.fonts.net/jsapi") + "/" +
|
|
4089
|
-
V ? h([]) : (W["__MonotypeConfiguration__" +
|
|
4088
|
+
f(this.c, (A.a.api || "https://fast.fonts.net/jsapi") + "/" + C + ".js" + (H ? "?v=" + H : ""), function(V) {
|
|
4089
|
+
V ? h([]) : (W["__MonotypeConfiguration__" + C] = function() {
|
|
4090
4090
|
return A.a;
|
|
4091
4091
|
}, w());
|
|
4092
|
-
}).id = "__MonotypeAPIScript__" +
|
|
4092
|
+
}).id = "__MonotypeAPIScript__" + C;
|
|
4093
4093
|
} else h([]);
|
|
4094
4094
|
};
|
|
4095
4095
|
function jt(h, w) {
|
|
4096
4096
|
this.c = h, this.a = w;
|
|
4097
4097
|
}
|
|
4098
4098
|
jt.prototype.load = function(h) {
|
|
4099
|
-
var w, A,
|
|
4100
|
-
for (w = 0, A =
|
|
4101
|
-
var
|
|
4102
|
-
for (w = 0, A = H.length; w < A; w++) if (
|
|
4103
|
-
else
|
|
4099
|
+
var w, A, C = this.a.urls || [], H = this.a.families || [], W = this.a.testStrings || {}, V = new y();
|
|
4100
|
+
for (w = 0, A = C.length; w < A; w++) p(this.c, C[w], g(V));
|
|
4101
|
+
var K = [];
|
|
4102
|
+
for (w = 0, A = H.length; w < A; w++) if (C = H[w].split(":"), C[1]) for (var X = C[1].split(","), se = 0; se < X.length; se += 1) K.push(new T(C[0], X[se]));
|
|
4103
|
+
else K.push(new T(C[0]));
|
|
4104
4104
|
x(V, function() {
|
|
4105
|
-
h(
|
|
4105
|
+
h(K, W);
|
|
4106
4106
|
});
|
|
4107
4107
|
};
|
|
4108
4108
|
function ut(h, w) {
|
|
@@ -4110,8 +4110,8 @@ function xu() {
|
|
|
4110
4110
|
}
|
|
4111
4111
|
var rn = "https://fonts.googleapis.com/css";
|
|
4112
4112
|
function on(h, w) {
|
|
4113
|
-
for (var A = w.length,
|
|
4114
|
-
var H = w[
|
|
4113
|
+
for (var A = w.length, C = 0; C < A; C++) {
|
|
4114
|
+
var H = w[C].split(":");
|
|
4115
4115
|
H.length == 3 && h.f.push(H.pop());
|
|
4116
4116
|
var W = "";
|
|
4117
4117
|
H.length == 2 && H[1] != "" && (W = ":"), h.a.push(H.join(W));
|
|
@@ -4120,7 +4120,7 @@ function xu() {
|
|
|
4120
4120
|
function an(h) {
|
|
4121
4121
|
if (h.a.length == 0) throw Error("No fonts to load!");
|
|
4122
4122
|
if (h.c.indexOf("kit=") != -1) return h.c;
|
|
4123
|
-
for (var w = h.a.length, A = [],
|
|
4123
|
+
for (var w = h.a.length, A = [], C = 0; C < w; C++) A.push(h.a[C].replace(/ /g, "+"));
|
|
4124
4124
|
return w = h.c + "?family=" + A.join("%7C"), 0 < h.f.length && (w += "&subset=" + h.f.join(",")), 0 < h.g.length && (w += "&text=" + encodeURIComponent(h.g)), w;
|
|
4125
4125
|
}
|
|
4126
4126
|
function dt(h) {
|
|
@@ -4129,25 +4129,25 @@ function xu() {
|
|
|
4129
4129
|
var ft = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, sn = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, cn = { i: "i", italic: "i", n: "n", normal: "n" }, ln = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
|
|
4130
4130
|
function un(h) {
|
|
4131
4131
|
for (var w = h.f.length, A = 0; A < w; A++) {
|
|
4132
|
-
var
|
|
4133
|
-
if (2 <=
|
|
4134
|
-
var V,
|
|
4135
|
-
if (V = [],
|
|
4136
|
-
var
|
|
4137
|
-
if (
|
|
4138
|
-
var Se = ln.exec(
|
|
4139
|
-
if (Se == null)
|
|
4132
|
+
var C = h.f[A].split(":"), H = C[0].replace(/\+/g, " "), W = ["n4"];
|
|
4133
|
+
if (2 <= C.length) {
|
|
4134
|
+
var V, K = C[1];
|
|
4135
|
+
if (V = [], K) for (var K = K.split(","), X = K.length, se = 0; se < X; se++) {
|
|
4136
|
+
var ue;
|
|
4137
|
+
if (ue = K[se], ue.match(/^[\w-]+$/)) {
|
|
4138
|
+
var Se = ln.exec(ue.toLowerCase());
|
|
4139
|
+
if (Se == null) ue = "";
|
|
4140
4140
|
else {
|
|
4141
|
-
if (
|
|
4142
|
-
else var
|
|
4143
|
-
|
|
4141
|
+
if (ue = Se[2], ue = ue == null || ue == "" ? "n" : cn[ue], Se = Se[1], Se == null || Se == "") Se = "4";
|
|
4142
|
+
else var Re = sn[Se], Se = Re || (isNaN(Se) ? "4" : Se.substr(0, 1));
|
|
4143
|
+
ue = [ue, Se].join("");
|
|
4144
4144
|
}
|
|
4145
|
-
} else
|
|
4146
|
-
|
|
4145
|
+
} else ue = "";
|
|
4146
|
+
ue && V.push(ue);
|
|
4147
4147
|
}
|
|
4148
|
-
0 < V.length && (W = V),
|
|
4148
|
+
0 < V.length && (W = V), C.length == 3 && (C = C[2], V = [], C = C ? C.split(",") : V, 0 < C.length && (C = ft[C[0]]) && (h.c[H] = C));
|
|
4149
4149
|
}
|
|
4150
|
-
for (h.c[H] || (
|
|
4150
|
+
for (h.c[H] || (C = ft[H]) && (h.c[H] = C), C = 0; C < W.length; C += 1) h.a.push(new T(H, W[C]));
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
4153
|
function Pt(h, w) {
|
|
@@ -4155,23 +4155,23 @@ function xu() {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
var pt = { Arimo: !0, Cousine: !0, Tinos: !0 };
|
|
4157
4157
|
Pt.prototype.load = function(h) {
|
|
4158
|
-
var w = new y(), A = this.c,
|
|
4159
|
-
on(
|
|
4158
|
+
var w = new y(), A = this.c, C = new ut(this.a.api, this.a.text), H = this.a.families;
|
|
4159
|
+
on(C, H);
|
|
4160
4160
|
var W = new dt(H);
|
|
4161
|
-
un(W), p(A, an(
|
|
4161
|
+
un(W), p(A, an(C), g(w)), x(w, function() {
|
|
4162
4162
|
h(W.a, W.c, pt);
|
|
4163
4163
|
});
|
|
4164
4164
|
};
|
|
4165
|
-
function
|
|
4165
|
+
function Ze(h, w) {
|
|
4166
4166
|
this.c = h, this.a = w;
|
|
4167
4167
|
}
|
|
4168
|
-
|
|
4168
|
+
Ze.prototype.load = function(h) {
|
|
4169
4169
|
var w = this.a.id, A = this.c.o;
|
|
4170
|
-
w ? f(this.c, (this.a.api || "https://use.typekit.net") + "/" + w + ".js", function(
|
|
4171
|
-
if (
|
|
4170
|
+
w ? f(this.c, (this.a.api || "https://use.typekit.net") + "/" + w + ".js", function(C) {
|
|
4171
|
+
if (C) h([]);
|
|
4172
4172
|
else if (A.Typekit && A.Typekit.config && A.Typekit.config.fn) {
|
|
4173
|
-
|
|
4174
|
-
for (var H = [], W = 0; W <
|
|
4173
|
+
C = A.Typekit.config.fn;
|
|
4174
|
+
for (var H = [], W = 0; W < C.length; W += 2) for (var V = C[W], K = C[W + 1], X = 0; X < K.length; X++) H.push(new T(V, K[X]));
|
|
4175
4175
|
try {
|
|
4176
4176
|
A.Typekit.load({ events: !1, classes: !1, async: !0 });
|
|
4177
4177
|
} catch {
|
|
@@ -4184,13 +4184,13 @@ function xu() {
|
|
|
4184
4184
|
this.c = h, this.f = w, this.a = [];
|
|
4185
4185
|
}
|
|
4186
4186
|
St.prototype.load = function(h) {
|
|
4187
|
-
var w = this.f.id, A = this.c.o,
|
|
4187
|
+
var w = this.f.id, A = this.c.o, C = this;
|
|
4188
4188
|
w ? (A.__webfontfontdeckmodule__ || (A.__webfontfontdeckmodule__ = {}), A.__webfontfontdeckmodule__[w] = function(H, W) {
|
|
4189
|
-
for (var V = 0,
|
|
4189
|
+
for (var V = 0, K = W.fonts.length; V < K; ++V) {
|
|
4190
4190
|
var X = W.fonts[V];
|
|
4191
|
-
|
|
4191
|
+
C.a.push(new T(X.name, I("font-weight:" + X.weight + ";font-style:" + X.style)));
|
|
4192
4192
|
}
|
|
4193
|
-
h(
|
|
4193
|
+
h(C.a);
|
|
4194
4194
|
}, f(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + l(this.c) + "/" + w + ".js", function(H) {
|
|
4195
4195
|
H && h([]);
|
|
4196
4196
|
})) : h([]);
|
|
@@ -4203,12 +4203,12 @@ function xu() {
|
|
|
4203
4203
|
}, k.a.c.monotype = function(h, w) {
|
|
4204
4204
|
return new wt(w, h);
|
|
4205
4205
|
}, k.a.c.typekit = function(h, w) {
|
|
4206
|
-
return new
|
|
4206
|
+
return new Ze(w, h);
|
|
4207
4207
|
}, k.a.c.google = function(h, w) {
|
|
4208
4208
|
return new Pt(w, h);
|
|
4209
4209
|
};
|
|
4210
|
-
var
|
|
4211
|
-
e.exports ? e.exports =
|
|
4210
|
+
var $ = { load: r(k.load, k) };
|
|
4211
|
+
e.exports ? e.exports = $ : (window.WebFont = $, window.WebFontConfig && k.load(window.WebFontConfig));
|
|
4212
4212
|
})();
|
|
4213
4213
|
})(ci)), ci.exports;
|
|
4214
4214
|
}
|
|
@@ -4298,7 +4298,7 @@ function Eu() {
|
|
|
4298
4298
|
}, Bn.exports;
|
|
4299
4299
|
}
|
|
4300
4300
|
var _u = Eu();
|
|
4301
|
-
const Tu = /* @__PURE__ */ Nt(_u), ku = window.AppcuesBundleSettings?.VERSION === "dev" ? "https://fast.appcues.com/v1" : window.AppcuesBundleSettings?.GENERIC_BUNDLE_DOMAIN ? `${window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN}/v1` : "https://fast.appcues.com/v1",
|
|
4301
|
+
const Tu = /* @__PURE__ */ Nt(_u), ku = window.AppcuesBundleSettings?.VERSION === "dev" ? "https://fast.appcues.com/v1" : window.AppcuesBundleSettings?.GENERIC_BUNDLE_DOMAIN ? `${window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN}/v1` : "https://fast.appcues.com/v1", Ru = 9999;
|
|
4302
4302
|
let pr = {
|
|
4303
4303
|
fastBaseUrl: null,
|
|
4304
4304
|
// null means use default
|
|
@@ -4307,13 +4307,13 @@ let pr = {
|
|
|
4307
4307
|
};
|
|
4308
4308
|
const Ou = (e = {}) => {
|
|
4309
4309
|
pr = { ...pr, ...e };
|
|
4310
|
-
},
|
|
4310
|
+
}, Cu = () => pr.fastBaseUrl ?? ku, di = () => pr.useAssetsPath;
|
|
4311
4311
|
function Au(e) {
|
|
4312
4312
|
return e.replace(/\/+$/, "");
|
|
4313
4313
|
}
|
|
4314
4314
|
const Nu = Tu(
|
|
4315
4315
|
(e, t) => {
|
|
4316
|
-
const n =
|
|
4316
|
+
const n = Cu();
|
|
4317
4317
|
if (di()) {
|
|
4318
4318
|
const r = Au(n);
|
|
4319
4319
|
return fetch(
|
|
@@ -4425,12 +4425,12 @@ const Nu = Tu(
|
|
|
4425
4425
|
e.set(n, r);
|
|
4426
4426
|
}
|
|
4427
4427
|
};
|
|
4428
|
-
},
|
|
4428
|
+
}, Ga = ({ getTrait: e, trait: t, ...n }) => {
|
|
4429
4429
|
const r = e(t.type);
|
|
4430
4430
|
r && r(n, t.config ?? {});
|
|
4431
|
-
}, { getCallback:
|
|
4432
|
-
let
|
|
4433
|
-
const
|
|
4431
|
+
}, { getCallback: Ja, registerCallback: be } = qa();
|
|
4432
|
+
let Gu = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
|
|
4433
|
+
const Ju = ({
|
|
4434
4434
|
experience: e,
|
|
4435
4435
|
callback: t,
|
|
4436
4436
|
step: n,
|
|
@@ -4442,7 +4442,7 @@ const Gu = ({
|
|
|
4442
4442
|
const v = ({ type: u, ...l }) => t(d ? {
|
|
4443
4443
|
...l,
|
|
4444
4444
|
eventType: u,
|
|
4445
|
-
type:
|
|
4445
|
+
type: Xl
|
|
4446
4446
|
} : { type: u, ...l });
|
|
4447
4447
|
return {
|
|
4448
4448
|
querySelector: (u) => za(u, {
|
|
@@ -4464,7 +4464,7 @@ const Gu = ({
|
|
|
4464
4464
|
},
|
|
4465
4465
|
setStepContainerTarget: (u) => {
|
|
4466
4466
|
v({
|
|
4467
|
-
type:
|
|
4467
|
+
type: Ra,
|
|
4468
4468
|
id: c.id,
|
|
4469
4469
|
container: u
|
|
4470
4470
|
});
|
|
@@ -4480,15 +4480,15 @@ const Gu = ({
|
|
|
4480
4480
|
type: Ql
|
|
4481
4481
|
}),
|
|
4482
4482
|
snoozeExperience: () => v({
|
|
4483
|
-
type:
|
|
4483
|
+
type: Zl
|
|
4484
4484
|
}),
|
|
4485
4485
|
seen: () => v({
|
|
4486
|
-
type:
|
|
4486
|
+
type: Kl,
|
|
4487
4487
|
id: c.id
|
|
4488
4488
|
}),
|
|
4489
4489
|
getConfig: () => c,
|
|
4490
4490
|
interaction: (u, l) => v({
|
|
4491
|
-
type:
|
|
4491
|
+
type: Jl,
|
|
4492
4492
|
id: c.id,
|
|
4493
4493
|
interactionType: u,
|
|
4494
4494
|
interactionData: l
|
|
@@ -4522,7 +4522,7 @@ const Gu = ({
|
|
|
4522
4522
|
getAction: s = () => null,
|
|
4523
4523
|
handleNavigation: c
|
|
4524
4524
|
}) => {
|
|
4525
|
-
const { findId: d } = a("vNodeHandlers"), v = a("getWindowReference"), u =
|
|
4525
|
+
const { findId: d } = a("vNodeHandlers"), v = a("getWindowReference"), u = Ju({
|
|
4526
4526
|
experience: e,
|
|
4527
4527
|
step: t,
|
|
4528
4528
|
callback: i,
|
|
@@ -4538,9 +4538,9 @@ const Gu = ({
|
|
|
4538
4538
|
getWindowReference: v
|
|
4539
4539
|
}),
|
|
4540
4540
|
reportError: (p) => {
|
|
4541
|
-
const f =
|
|
4541
|
+
const f = Gu();
|
|
4542
4542
|
return i({
|
|
4543
|
-
type:
|
|
4543
|
+
type: Gl,
|
|
4544
4544
|
message: p,
|
|
4545
4545
|
errorId: f
|
|
4546
4546
|
}), f;
|
|
@@ -4548,7 +4548,7 @@ const Gu = ({
|
|
|
4548
4548
|
onElementInserted: (p) => lu({ ...p, getWindowReference: v }),
|
|
4549
4549
|
onElementRemoved: (p) => _o({ ...p, getWindowReference: v }),
|
|
4550
4550
|
...u,
|
|
4551
|
-
stopExperience: () => i(
|
|
4551
|
+
stopExperience: () => i(Rt),
|
|
4552
4552
|
getExperienceId: () => e.id,
|
|
4553
4553
|
getWindowReference: v,
|
|
4554
4554
|
sendEvent: a("sendEvent"),
|
|
@@ -4571,7 +4571,7 @@ const Gu = ({
|
|
|
4571
4571
|
},
|
|
4572
4572
|
updateRootStyle: (p, f = {}) => {
|
|
4573
4573
|
i({
|
|
4574
|
-
type:
|
|
4574
|
+
type: Ca,
|
|
4575
4575
|
styles: p,
|
|
4576
4576
|
options: f,
|
|
4577
4577
|
getRoot: o
|
|
@@ -4579,20 +4579,20 @@ const Gu = ({
|
|
|
4579
4579
|
},
|
|
4580
4580
|
...l
|
|
4581
4581
|
} : l;
|
|
4582
|
-
}, pi = "formData.",
|
|
4582
|
+
}, pi = "formData.", Ku = "a, button, video, input, textarea, select, form", Yu = (e, t) => {
|
|
4583
4583
|
if (t.startsWith(pi)) {
|
|
4584
4584
|
const n = t.replace(pi, "");
|
|
4585
4585
|
return new FormData(e.target).get(n);
|
|
4586
4586
|
}
|
|
4587
4587
|
return Pl(e, t);
|
|
4588
|
-
}, { getCallback: nt, registerCallback: st } = qa(),
|
|
4588
|
+
}, { getCallback: nt, registerCallback: st } = qa(), Ka = (e, t, n) => {
|
|
4589
4589
|
const r = {
|
|
4590
4590
|
target: t.target,
|
|
4591
4591
|
detail: t.detail
|
|
4592
4592
|
};
|
|
4593
4593
|
return Object.entries(e).reduce(
|
|
4594
4594
|
(o, [i, a]) => {
|
|
4595
|
-
const s =
|
|
4595
|
+
const s = Yu(r, i);
|
|
4596
4596
|
return s ? jl(o, a, s) : o;
|
|
4597
4597
|
},
|
|
4598
4598
|
n
|
|
@@ -4647,7 +4647,7 @@ const Gu = ({
|
|
|
4647
4647
|
if (T) {
|
|
4648
4648
|
const E = {
|
|
4649
4649
|
...m,
|
|
4650
|
-
...
|
|
4650
|
+
...Ka(T, y, m)
|
|
4651
4651
|
};
|
|
4652
4652
|
x(E, g);
|
|
4653
4653
|
} else
|
|
@@ -4670,7 +4670,7 @@ const Gu = ({
|
|
|
4670
4670
|
({ el: c, event: d, handler: v }) => c.removeEventListener(d, v)
|
|
4671
4671
|
);
|
|
4672
4672
|
};
|
|
4673
|
-
},
|
|
4673
|
+
}, Zu = ({ overrideStyle: e, getContainer: t }, n) => () => (
|
|
4674
4674
|
// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
4675
4675
|
((r, o) => {
|
|
4676
4676
|
let i = () => {
|
|
@@ -4700,19 +4700,19 @@ const Gu = ({
|
|
|
4700
4700
|
handleNavigation: n("handleNavigation")
|
|
4701
4701
|
});
|
|
4702
4702
|
try {
|
|
4703
|
-
y[S].forEach(([N,
|
|
4703
|
+
y[S].forEach(([N, R, O]) => {
|
|
4704
4704
|
if (O && T) {
|
|
4705
4705
|
const I = {
|
|
4706
|
-
...
|
|
4707
|
-
...
|
|
4706
|
+
...R,
|
|
4707
|
+
...Ka(
|
|
4708
4708
|
O,
|
|
4709
4709
|
T,
|
|
4710
|
-
|
|
4710
|
+
R
|
|
4711
4711
|
)
|
|
4712
4712
|
};
|
|
4713
4713
|
N(I, E);
|
|
4714
4714
|
} else
|
|
4715
|
-
N(
|
|
4715
|
+
N(R, E);
|
|
4716
4716
|
});
|
|
4717
4717
|
} catch {
|
|
4718
4718
|
E.reportError(
|
|
@@ -4728,19 +4728,19 @@ const Gu = ({
|
|
|
4728
4728
|
on: T,
|
|
4729
4729
|
type: E,
|
|
4730
4730
|
config: N,
|
|
4731
|
-
allowedKeys:
|
|
4731
|
+
allowedKeys: R,
|
|
4732
4732
|
mapEventToConfig: O,
|
|
4733
4733
|
guardInteractiveChildren: I
|
|
4734
4734
|
}) => {
|
|
4735
4735
|
I && (x[T] = !0);
|
|
4736
4736
|
const P = nt(`${c.id}.${E}`) ?? nt(`${s.id}.${E}`) ?? nt(E);
|
|
4737
4737
|
return y[T] || (y[T] = []), P && y[T].push([P, N, O]), T.startsWith("hooks/") ? S.hook[T.replace("hooks/", "")] = () => g(T) : S.on[T] = (D) => {
|
|
4738
|
-
if (!(
|
|
4738
|
+
if (!(R && !R.includes(D.code))) {
|
|
4739
4739
|
if (x[T]) {
|
|
4740
|
-
const
|
|
4741
|
-
|
|
4740
|
+
const M = D.target.closest(
|
|
4741
|
+
Ku
|
|
4742
4742
|
);
|
|
4743
|
-
if (
|
|
4743
|
+
if (M && M !== D.currentTarget)
|
|
4744
4744
|
return;
|
|
4745
4745
|
}
|
|
4746
4746
|
D.preventDefault(), D.stopPropagation(), g(T, D);
|
|
@@ -4770,12 +4770,12 @@ const Gu = ({
|
|
|
4770
4770
|
}
|
|
4771
4771
|
}), () => i();
|
|
4772
4772
|
})
|
|
4773
|
-
),
|
|
4773
|
+
), Xu = ({ addHook: e }) => (t) => (n) => {
|
|
4774
4774
|
const { step: r } = t;
|
|
4775
4775
|
try {
|
|
4776
4776
|
r.traits.forEach(
|
|
4777
|
-
(o) =>
|
|
4778
|
-
getTrait:
|
|
4777
|
+
(o) => Ga({
|
|
4778
|
+
getTrait: Ja,
|
|
4779
4779
|
addHook: (i, a) => {
|
|
4780
4780
|
e(i, { callback: a, traitId: o.id });
|
|
4781
4781
|
},
|
|
@@ -4843,7 +4843,7 @@ function sd(e, t) {
|
|
|
4843
4843
|
function cd(e, t) {
|
|
4844
4844
|
rt(t) && (t = Ot(t, e)), e.appendChild(t);
|
|
4845
4845
|
}
|
|
4846
|
-
function
|
|
4846
|
+
function Ya(e) {
|
|
4847
4847
|
if (rt(e)) {
|
|
4848
4848
|
for (; e && rt(e); )
|
|
4849
4849
|
e = Ot(e).parent;
|
|
@@ -4854,7 +4854,7 @@ function Ja(e) {
|
|
|
4854
4854
|
function ld(e) {
|
|
4855
4855
|
var t;
|
|
4856
4856
|
if (rt(e)) {
|
|
4857
|
-
const n = Ot(e), r =
|
|
4857
|
+
const n = Ot(e), r = Ya(n);
|
|
4858
4858
|
if (r && n.lastChildNode) {
|
|
4859
4859
|
const o = Array.from(r.childNodes), i = o.indexOf(n.lastChildNode);
|
|
4860
4860
|
return (t = o[i + 1]) !== null && t !== void 0 ? t : null;
|
|
@@ -4898,7 +4898,7 @@ const ko = {
|
|
|
4898
4898
|
insertBefore: ad,
|
|
4899
4899
|
removeChild: sd,
|
|
4900
4900
|
appendChild: cd,
|
|
4901
|
-
parentNode:
|
|
4901
|
+
parentNode: Ya,
|
|
4902
4902
|
nextSibling: ld,
|
|
4903
4903
|
tagName: ud,
|
|
4904
4904
|
setTextContent: dd,
|
|
@@ -4913,7 +4913,7 @@ function Ie(e, t, n, r, o) {
|
|
|
4913
4913
|
return { sel: e, data: t, children: n, text: r, elm: o, key: i };
|
|
4914
4914
|
}
|
|
4915
4915
|
const Qt = Array.isArray;
|
|
4916
|
-
function
|
|
4916
|
+
function Ct(e) {
|
|
4917
4917
|
return typeof e == "string" || typeof e == "number" || e instanceof String || e instanceof Number;
|
|
4918
4918
|
}
|
|
4919
4919
|
const Lr = Ie("", {}, [], void 0, void 0);
|
|
@@ -4980,23 +4980,23 @@ function Qa(e, t, n) {
|
|
|
4980
4980
|
function c(f, y) {
|
|
4981
4981
|
var g, x, m, S, T;
|
|
4982
4982
|
let E;
|
|
4983
|
-
const N = f.data,
|
|
4984
|
-
(g =
|
|
4983
|
+
const N = f.data, R = N?.hook;
|
|
4984
|
+
(g = R?.init) === null || g === void 0 || g.call(R, f);
|
|
4985
4985
|
const O = f.children, I = f.sel;
|
|
4986
4986
|
if (I === "!")
|
|
4987
4987
|
(x = f.text) !== null && x !== void 0 || (f.text = ""), f.elm = o.createComment(f.text);
|
|
4988
4988
|
else if (I === "")
|
|
4989
4989
|
f.elm = o.createTextNode(f.text);
|
|
4990
4990
|
else if (I !== void 0) {
|
|
4991
|
-
const P = I.indexOf("#"), D = I.indexOf(".", P),
|
|
4992
|
-
for (f.elm = te,
|
|
4991
|
+
const P = I.indexOf("#"), D = I.indexOf(".", P), M = P > 0 ? P : I.length, F = D > 0 ? D : I.length, Z = P !== -1 || D !== -1 ? I.slice(0, Math.min(M, F)) : I, J = N?.ns, te = J === void 0 ? o.createElement(Z, N) : o.createElementNS(J, Z, N);
|
|
4992
|
+
for (f.elm = te, M < F && te.setAttribute("id", I.slice(M + 1, F)), D > 0 && te.setAttribute("class", I.slice(F + 1).replace(/\./g, " ")), E = 0; E < r.create.length; ++E)
|
|
4993
4993
|
r.create[E](Lr, f);
|
|
4994
|
-
if (
|
|
4994
|
+
if (Ct(f.text) && (!Qt(O) || O.length === 0) && o.appendChild(te, o.createTextNode(f.text)), Qt(O))
|
|
4995
4995
|
for (E = 0; E < O.length; ++E) {
|
|
4996
|
-
const
|
|
4997
|
-
|
|
4996
|
+
const ee = O[E];
|
|
4997
|
+
ee != null && o.appendChild(te, c(ee, y));
|
|
4998
4998
|
}
|
|
4999
|
-
|
|
4999
|
+
R !== void 0 && ((m = R.create) === null || m === void 0 || m.call(R, Lr, f), R.insert !== void 0 && y.push(f));
|
|
5000
5000
|
} else if (!((S = n?.experimental) === null || S === void 0) && S.fragments && f.children) {
|
|
5001
5001
|
for (f.elm = ((T = o.createDocumentFragment) !== null && T !== void 0 ? T : gd)(), E = 0; E < r.create.length; ++E)
|
|
5002
5002
|
r.create[E](Lr, f);
|
|
@@ -5038,19 +5038,19 @@ function Qa(e, t, n) {
|
|
|
5038
5038
|
const N = s(E.elm, T);
|
|
5039
5039
|
for (let O = 0; O < r.remove.length; ++O)
|
|
5040
5040
|
r.remove[O](E, N);
|
|
5041
|
-
const
|
|
5042
|
-
|
|
5041
|
+
const R = (S = (m = E?.data) === null || m === void 0 ? void 0 : m.hook) === null || S === void 0 ? void 0 : S.remove;
|
|
5042
|
+
R !== void 0 ? R(E, N) : N();
|
|
5043
5043
|
} else E.children ? (v(E), u(f, E.children, 0, E.children.length - 1)) : o.removeChild(f, E.elm);
|
|
5044
5044
|
}
|
|
5045
5045
|
}
|
|
5046
5046
|
function l(f, y, g, x) {
|
|
5047
|
-
let m = 0, S = 0, T = y.length - 1, E = y[0], N = y[T],
|
|
5048
|
-
for (; m <= T && S <=
|
|
5049
|
-
E == null ? E = y[++m] : N == null ? N = y[--T] : O == null ? O = g[++S] : I == null ? I = g[--
|
|
5050
|
-
S <=
|
|
5047
|
+
let m = 0, S = 0, T = y.length - 1, E = y[0], N = y[T], R = g.length - 1, O = g[0], I = g[R], P, D, M, F;
|
|
5048
|
+
for (; m <= T && S <= R; )
|
|
5049
|
+
E == null ? E = y[++m] : N == null ? N = y[--T] : O == null ? O = g[++S] : I == null ? I = g[--R] : gn(E, O) ? (p(E, O, x), E = y[++m], O = g[++S]) : gn(N, I) ? (p(N, I, x), N = y[--T], I = g[--R]) : gn(E, I) ? (p(E, I, x), o.insertBefore(f, E.elm, o.nextSibling(N.elm)), E = y[++m], I = g[--R]) : gn(N, O) ? (p(N, O, x), o.insertBefore(f, N.elm, E.elm), N = y[--T], O = g[++S]) : (P === void 0 && (P = bd(y, m, T)), D = P[O.key], D === void 0 ? (o.insertBefore(f, c(O, x), E.elm), O = g[++S]) : P[I.key] === void 0 ? (o.insertBefore(f, c(I, x), o.nextSibling(N.elm)), I = g[--R]) : (M = y[D], M.sel !== O.sel ? o.insertBefore(f, c(O, x), E.elm) : (p(M, O, x), y[D] = void 0, o.insertBefore(f, M.elm, E.elm)), O = g[++S]));
|
|
5050
|
+
S <= R && (F = g[R + 1] == null ? null : g[R + 1].elm, d(f, F, g, S, R, x)), m <= T && u(f, y, m, T);
|
|
5051
5051
|
}
|
|
5052
5052
|
function p(f, y, g) {
|
|
5053
|
-
var x, m, S, T, E, N,
|
|
5053
|
+
var x, m, S, T, E, N, R, O;
|
|
5054
5054
|
const I = (x = y.data) === null || x === void 0 ? void 0 : x.hook;
|
|
5055
5055
|
(m = I?.prepatch) === null || m === void 0 || m.call(I, f, y);
|
|
5056
5056
|
const P = y.elm = f.elm;
|
|
@@ -5060,10 +5060,10 @@ function Qa(e, t, n) {
|
|
|
5060
5060
|
(S = y.data) !== null && S !== void 0 || (y.data = {}), (T = f.data) !== null && T !== void 0 || (f.data = {});
|
|
5061
5061
|
for (let F = 0; F < r.update.length; ++F)
|
|
5062
5062
|
r.update[F](f, y);
|
|
5063
|
-
(
|
|
5063
|
+
(R = (N = (E = y.data) === null || E === void 0 ? void 0 : E.hook) === null || N === void 0 ? void 0 : N.update) === null || R === void 0 || R.call(N, f, y);
|
|
5064
5064
|
}
|
|
5065
|
-
const D = f.children,
|
|
5066
|
-
y.text === void 0 ? D !== void 0 &&
|
|
5065
|
+
const D = f.children, M = y.children;
|
|
5066
|
+
y.text === void 0 ? D !== void 0 && M !== void 0 ? D !== M && l(P, D, M, g) : M !== void 0 ? (f.text !== void 0 && o.setTextContent(P, ""), d(P, null, M, 0, M.length - 1, g)) : D !== void 0 ? u(P, D, 0, D.length - 1) : f.text !== void 0 && o.setTextContent(P, "") : f.text !== y.text && (D !== void 0 && u(P, D, 0, D.length - 1), o.setTextContent(P, y.text)), (O = I?.postpatch) === null || O === void 0 || O.call(I, f, y);
|
|
5067
5067
|
}
|
|
5068
5068
|
return function(f, y) {
|
|
5069
5069
|
let g, x, m;
|
|
@@ -5089,16 +5089,16 @@ function Tr(e, t, n) {
|
|
|
5089
5089
|
}
|
|
5090
5090
|
function at(e, t, n) {
|
|
5091
5091
|
let r = {}, o, i, a;
|
|
5092
|
-
if (n !== void 0 ? (t !== null && (r = t), Qt(n) ? o = n :
|
|
5092
|
+
if (n !== void 0 ? (t !== null && (r = t), Qt(n) ? o = n : Ct(n) ? i = n.toString() : n && n.sel && (o = [n])) : t != null && (Qt(t) ? o = t : Ct(t) ? i = t.toString() : t && t.sel ? o = [t] : r = t), o !== void 0)
|
|
5093
5093
|
for (a = 0; a < o.length; ++a)
|
|
5094
|
-
|
|
5094
|
+
Ct(o[a]) && (o[a] = Ie(void 0, void 0, void 0, o[a], void 0));
|
|
5095
5095
|
return e.startsWith("svg") && (e.length === 3 || e[3] === "." || e[3] === "#") && Tr(r, o, e), Ie(e, r, o, i, void 0);
|
|
5096
5096
|
}
|
|
5097
5097
|
function so(e) {
|
|
5098
5098
|
let t, n;
|
|
5099
|
-
if (Qt(e) ? t = e :
|
|
5099
|
+
if (Qt(e) ? t = e : Ct(t) ? n = e : t && t.sel && (t = [e]), t !== void 0)
|
|
5100
5100
|
for (let r = 0; r < t.length; ++r)
|
|
5101
|
-
|
|
5101
|
+
Ct(t[r]) && (t[r] = Ie(void 0, void 0, void 0, t[r], void 0));
|
|
5102
5102
|
return Ie(void 0, {}, t, n, void 0);
|
|
5103
5103
|
}
|
|
5104
5104
|
function nr(e, t) {
|
|
@@ -5142,19 +5142,19 @@ function Td(e, t) {
|
|
|
5142
5142
|
function kd(e) {
|
|
5143
5143
|
e.elm !== void 0 && e.elm.parentNode.removeChild(e.elm), e.elm = e.data.attachData.real;
|
|
5144
5144
|
}
|
|
5145
|
-
function
|
|
5145
|
+
function Rd(e, t) {
|
|
5146
5146
|
const n = t.elm, r = t.data.attachData, o = document.createElement("span");
|
|
5147
5147
|
t.elm = o, r.target.appendChild(n), r.real = n, r.placeholder = o;
|
|
5148
5148
|
}
|
|
5149
5149
|
function Od(e, t) {
|
|
5150
5150
|
t.data === void 0 && (t.data = {}), t.data.hook === void 0 && (t.data.hook = {});
|
|
5151
5151
|
const n = t.data, r = t.data.hook;
|
|
5152
|
-
return n.attachData = { target: e, placeholder: void 0, real: void 0 }, r.create =
|
|
5152
|
+
return n.attachData = { target: e, placeholder: void 0, real: void 0 }, r.create = Rd, r.prepatch = _d, r.postpatch = Td, r.destroy = kd, t;
|
|
5153
5153
|
}
|
|
5154
|
-
function
|
|
5154
|
+
function Cd(e) {
|
|
5155
5155
|
return e.slice(5).replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
5156
5156
|
}
|
|
5157
|
-
function
|
|
5157
|
+
function Za(e, t) {
|
|
5158
5158
|
var n;
|
|
5159
5159
|
const r = t !== void 0 ? t : ko;
|
|
5160
5160
|
let o;
|
|
@@ -5163,9 +5163,9 @@ function Xa(e, t) {
|
|
|
5163
5163
|
let p, f, y;
|
|
5164
5164
|
const g = e.attributes, x = e.childNodes;
|
|
5165
5165
|
for (f = 0, y = g.length; f < y; f++)
|
|
5166
|
-
p = g[f].nodeName, p.startsWith("data-") ? v[
|
|
5166
|
+
p = g[f].nodeName, p.startsWith("data-") ? v[Cd(p)] = g[f].nodeValue || "" : p !== "id" && p !== "class" && (d[p] = g[f].nodeValue);
|
|
5167
5167
|
for (f = 0, y = x.length; f < y; f++)
|
|
5168
|
-
l.push(
|
|
5168
|
+
l.push(Za(x[f], t));
|
|
5169
5169
|
return Object.keys(d).length > 0 && (u.attrs = d), Object.keys(v).length > 0 && (u.dataset = v), c.startsWith("svg") && (c.length === 3 || c[3] === "." || c[3] === "#") && Tr(u, l, c), Ie(c, u, l, void 0, e);
|
|
5170
5170
|
} else return r.isText(e) ? (o = r.getTextContent(e), Ie(void 0, void 0, void 0, o, e)) : r.isComment(e) ? (o = r.getTextContent(e), Ie("!", {}, [], o, e)) : Ie("", {}, [], void 0, e);
|
|
5171
5171
|
}
|
|
@@ -5184,7 +5184,7 @@ function vi(e, t) {
|
|
|
5184
5184
|
n in i || r.removeAttribute(n);
|
|
5185
5185
|
}
|
|
5186
5186
|
}
|
|
5187
|
-
const
|
|
5187
|
+
const Xa = {
|
|
5188
5188
|
create: vi,
|
|
5189
5189
|
update: vi
|
|
5190
5190
|
};
|
|
@@ -5337,16 +5337,16 @@ const os = {
|
|
|
5337
5337
|
remove: Wd
|
|
5338
5338
|
};
|
|
5339
5339
|
function Vd(e, ...t) {
|
|
5340
|
-
const n =
|
|
5340
|
+
const n = Ro(t, []);
|
|
5341
5341
|
return n.length === 1 && !n[0].sel && n[0].text ? Ie(void 0, void 0, void 0, n[0].text, void 0) : Ie(void 0, e ?? {}, n, void 0, void 0);
|
|
5342
5342
|
}
|
|
5343
|
-
function
|
|
5343
|
+
function Ro(e, t) {
|
|
5344
5344
|
for (const n of e)
|
|
5345
|
-
n != null && n !== !1 && n !== "" && (Array.isArray(n) ?
|
|
5345
|
+
n != null && n !== !1 && n !== "" && (Array.isArray(n) ? Ro(n, t) : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? t.push(Ie(void 0, void 0, void 0, String(n), void 0)) : t.push(n));
|
|
5346
5346
|
return t;
|
|
5347
5347
|
}
|
|
5348
5348
|
function Fd(e, t, ...n) {
|
|
5349
|
-
const r =
|
|
5349
|
+
const r = Ro(n, []);
|
|
5350
5350
|
return typeof e == "function" ? e(t, r) : r.length === 1 && !r[0].sel && r[0].text ? at(e, t, r[0].text) : at(e, t, r);
|
|
5351
5351
|
}
|
|
5352
5352
|
const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5354,7 +5354,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5354
5354
|
Fragment: Vd,
|
|
5355
5355
|
array: Qt,
|
|
5356
5356
|
attachTo: Od,
|
|
5357
|
-
attributesModule:
|
|
5357
|
+
attributesModule: Xa,
|
|
5358
5358
|
classModule: es,
|
|
5359
5359
|
datasetModule: Dd,
|
|
5360
5360
|
eventListenersModule: ns,
|
|
@@ -5363,16 +5363,16 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5363
5363
|
htmlDomApi: ko,
|
|
5364
5364
|
init: Qa,
|
|
5365
5365
|
jsx: Fd,
|
|
5366
|
-
primitive:
|
|
5366
|
+
primitive: Ct,
|
|
5367
5367
|
propsModule: rs,
|
|
5368
5368
|
styleModule: os,
|
|
5369
5369
|
thunk: Ed,
|
|
5370
|
-
toVNode:
|
|
5370
|
+
toVNode: Za,
|
|
5371
5371
|
vnode: Ie
|
|
5372
5372
|
}, Symbol.toStringTag, { value: "Module" })), qd = (...e) => (t) => e.reduce((n, r) => r(n), t), Si = (e) => e.reduce(
|
|
5373
5373
|
(t, { callback: n, context: r }) => t.then(() => n(r)),
|
|
5374
5374
|
Promise.resolve()
|
|
5375
|
-
),
|
|
5375
|
+
), Gd = ({
|
|
5376
5376
|
experience: e,
|
|
5377
5377
|
onRender: t,
|
|
5378
5378
|
onRenderReset: n,
|
|
@@ -5413,9 +5413,9 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5413
5413
|
},
|
|
5414
5414
|
getContainer: () => c() ?? d() ?? s().shadowRoot,
|
|
5415
5415
|
getRoot: () => a ?? s(),
|
|
5416
|
-
hasCustomContainer: (u, l) => l.type ===
|
|
5416
|
+
hasCustomContainer: (u, l) => l.type === Ca && l.options?.forceUpdate || !!c()
|
|
5417
5417
|
};
|
|
5418
|
-
},
|
|
5418
|
+
}, Jd = ({ container: e, nodes: t }, n = 0) => e.replace(/<% node %>/, t[n]), Kd = (e) => e.replaceAll("//twemoji.maxcdn.com/2/svg/", "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/"), Yd = (e) => e.split("_").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" "), Fe = ({ experience: e, experienceInstanceId: t }, n) => ({
|
|
5419
5419
|
experienceId: e.id,
|
|
5420
5420
|
experienceName: e.name,
|
|
5421
5421
|
experienceType: e.type,
|
|
@@ -5424,7 +5424,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5424
5424
|
localeId: e.context?.localeId || "default",
|
|
5425
5425
|
timestamp: Date.now(),
|
|
5426
5426
|
version: e.version,
|
|
5427
|
-
name:
|
|
5427
|
+
name: Yd(n),
|
|
5428
5428
|
experienceInstanceId: t
|
|
5429
5429
|
}), yt = ({ step: e }) => ({
|
|
5430
5430
|
stepId: e.id,
|
|
@@ -5525,7 +5525,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5525
5525
|
isEventEnabled: Qd
|
|
5526
5526
|
}
|
|
5527
5527
|
};
|
|
5528
|
-
},
|
|
5528
|
+
}, Zd = Er({
|
|
5529
5529
|
initial: "waitingForAsyncEvents",
|
|
5530
5530
|
context: {
|
|
5531
5531
|
runHooksDone: !1
|
|
@@ -5591,7 +5591,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5591
5591
|
type: "final"
|
|
5592
5592
|
}
|
|
5593
5593
|
}
|
|
5594
|
-
}),
|
|
5594
|
+
}), Xd = Er({
|
|
5595
5595
|
initial: "waitingForAsyncEvents",
|
|
5596
5596
|
context: {
|
|
5597
5597
|
runHooksDone: !1
|
|
@@ -5683,14 +5683,14 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5683
5683
|
target: "",
|
|
5684
5684
|
actions: [
|
|
5685
5685
|
"experienceDismissed",
|
|
5686
|
-
Ue({ type:
|
|
5686
|
+
Ue({ type: Rt, reason: bt.DISMISSED })
|
|
5687
5687
|
]
|
|
5688
5688
|
},
|
|
5689
5689
|
EXPERIENCE_SNOOZED: {
|
|
5690
5690
|
target: "",
|
|
5691
5691
|
actions: [
|
|
5692
5692
|
"experienceSnoozed",
|
|
5693
|
-
Ue({ type:
|
|
5693
|
+
Ue({ type: Rt, reason: bt.DISMISSED })
|
|
5694
5694
|
]
|
|
5695
5695
|
},
|
|
5696
5696
|
STEP_SEEN: {
|
|
@@ -5738,8 +5738,8 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5738
5738
|
cond: "didContentChanged"
|
|
5739
5739
|
}
|
|
5740
5740
|
],
|
|
5741
|
-
[
|
|
5742
|
-
actions: [Ue(
|
|
5741
|
+
[Rt]: {
|
|
5742
|
+
actions: [Ue(Rt)]
|
|
5743
5743
|
},
|
|
5744
5744
|
FORWARD_TO_PARENT: [
|
|
5745
5745
|
{
|
|
@@ -5935,7 +5935,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5935
5935
|
"post-render": {
|
|
5936
5936
|
invoke: {
|
|
5937
5937
|
id: "postRenderAsyncEventsHandler",
|
|
5938
|
-
src:
|
|
5938
|
+
src: Zd
|
|
5939
5939
|
},
|
|
5940
5940
|
entry: ["runStepPostRenderHooks"],
|
|
5941
5941
|
on: {
|
|
@@ -6002,7 +6002,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6002
6002
|
invoke: [
|
|
6003
6003
|
{
|
|
6004
6004
|
id: "errorAsyncEventsHandler",
|
|
6005
|
-
src:
|
|
6005
|
+
src: Xd
|
|
6006
6006
|
}
|
|
6007
6007
|
],
|
|
6008
6008
|
entry: ["unmount", "runStepErrorHooks", "stopThemeRemovalListener"],
|
|
@@ -6056,9 +6056,9 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6056
6056
|
setContainer: T,
|
|
6057
6057
|
resetRender: E,
|
|
6058
6058
|
getContainer: N,
|
|
6059
|
-
hasCustomContainer:
|
|
6059
|
+
hasCustomContainer: R,
|
|
6060
6060
|
getRoot: O
|
|
6061
|
-
} =
|
|
6061
|
+
} = Gd({
|
|
6062
6062
|
experience: r,
|
|
6063
6063
|
onRender: g,
|
|
6064
6064
|
onRenderReset: x,
|
|
@@ -6068,34 +6068,34 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6068
6068
|
addHook: I,
|
|
6069
6069
|
runStepPreBeginHooks: P,
|
|
6070
6070
|
runStepBeginHooks: D,
|
|
6071
|
-
runStepPreRenderHooks:
|
|
6071
|
+
runStepPreRenderHooks: M,
|
|
6072
6072
|
runStepPostRenderHooks: F,
|
|
6073
|
-
runStepEndHooks:
|
|
6074
|
-
runStepErrorHooks:
|
|
6073
|
+
runStepEndHooks: Z,
|
|
6074
|
+
runStepErrorHooks: J,
|
|
6075
6075
|
removeStepHooks: te,
|
|
6076
|
-
runStepContainerChangeHooks:
|
|
6076
|
+
runStepContainerChangeHooks: ee
|
|
6077
6077
|
} = t({
|
|
6078
6078
|
step: e,
|
|
6079
6079
|
overrideStyle: f
|
|
6080
|
-
}),
|
|
6080
|
+
}), G = Xu({
|
|
6081
6081
|
addHook: I
|
|
6082
|
-
}),
|
|
6082
|
+
}), B = Zu(
|
|
6083
6083
|
{
|
|
6084
6084
|
overrideStyle: f,
|
|
6085
6085
|
getContainer: N
|
|
6086
6086
|
},
|
|
6087
6087
|
o
|
|
6088
|
-
),
|
|
6088
|
+
), le = n(
|
|
6089
6089
|
{
|
|
6090
6090
|
overrideStyle: f,
|
|
6091
6091
|
getContainer: N,
|
|
6092
6092
|
getRoot: O
|
|
6093
6093
|
},
|
|
6094
6094
|
o
|
|
6095
|
-
),
|
|
6095
|
+
), Y = mu({
|
|
6096
6096
|
getRoot: O,
|
|
6097
6097
|
getWindowReference: y
|
|
6098
|
-
}), he = Uu(o), xe = is(o), ke = (U) => U.contentType === "text/html" ? a(
|
|
6098
|
+
}), he = Uu(o), xe = is(o), ke = (U) => U.contentType === "text/html" ? a(Kd(Jd(U.content))) : s(U.content);
|
|
6099
6099
|
return Er(
|
|
6100
6100
|
{
|
|
6101
6101
|
...ef,
|
|
@@ -6138,11 +6138,11 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6138
6138
|
// injecting action coming from hooks
|
|
6139
6139
|
runStepPreBeginHooks: P,
|
|
6140
6140
|
runStepBeginHooks: D,
|
|
6141
|
-
runStepPreRenderHooks:
|
|
6141
|
+
runStepPreRenderHooks: M,
|
|
6142
6142
|
runStepPostRenderHooks: F,
|
|
6143
|
-
runStepEndHooks:
|
|
6144
|
-
runStepErrorHooks:
|
|
6145
|
-
runStepContainerChangeHooks:
|
|
6143
|
+
runStepEndHooks: Z,
|
|
6144
|
+
runStepErrorHooks: J,
|
|
6145
|
+
runStepContainerChangeHooks: ee,
|
|
6146
6146
|
updateStepContext: Hu,
|
|
6147
6147
|
rebindActions: kn(
|
|
6148
6148
|
(U) => ({
|
|
@@ -6176,26 +6176,26 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6176
6176
|
setActionsFinished: Fu,
|
|
6177
6177
|
// stop reason handling
|
|
6178
6178
|
saveStopReason: pe({
|
|
6179
|
-
stopReason: (U,
|
|
6179
|
+
stopReason: (U, q) => q.reason
|
|
6180
6180
|
}),
|
|
6181
6181
|
addStoppedCallback: pe({
|
|
6182
|
-
stoppedCallbacks: (U,
|
|
6182
|
+
stoppedCallbacks: (U, q) => q.onStopped ? [...U.stoppedCallbacks, q.onStopped] : U.stoppedCallbacks
|
|
6183
6183
|
}),
|
|
6184
|
-
callStoppedCallbacks: (U) => U.stoppedCallbacks.forEach((
|
|
6184
|
+
callStoppedCallbacks: (U) => U.stoppedCallbacks.forEach((q) => {
|
|
6185
6185
|
try {
|
|
6186
|
-
|
|
6186
|
+
q();
|
|
6187
6187
|
} catch {
|
|
6188
6188
|
}
|
|
6189
6189
|
}),
|
|
6190
6190
|
deferTransitionToEnd: kn({ type: Na }, { delay: 0 }),
|
|
6191
6191
|
saveChangedStepTraits: pe({
|
|
6192
|
-
changedStepTraits: (U,
|
|
6192
|
+
changedStepTraits: (U, q) => q.changedStepTraits ?? null
|
|
6193
6193
|
}),
|
|
6194
6194
|
clearChangedStepTraits: pe({
|
|
6195
6195
|
changedStepTraits: () => null
|
|
6196
6196
|
}),
|
|
6197
6197
|
saveChangedExperienceTraits: pe({
|
|
6198
|
-
changedExperienceTraits: (U,
|
|
6198
|
+
changedExperienceTraits: (U, q) => q.changedExperienceTraits ?? null
|
|
6199
6199
|
}),
|
|
6200
6200
|
clearChangedExperienceTraits: pe({
|
|
6201
6201
|
changedExperienceTraits: () => null
|
|
@@ -6203,32 +6203,32 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6203
6203
|
},
|
|
6204
6204
|
services: {
|
|
6205
6205
|
// injecting services coming from step level
|
|
6206
|
-
runStepTraits:
|
|
6206
|
+
runStepTraits: G,
|
|
6207
6207
|
// injecting services coming from render
|
|
6208
6208
|
render: m,
|
|
6209
6209
|
// injecting services coming from hooks
|
|
6210
|
-
hooksService:
|
|
6210
|
+
hooksService: le,
|
|
6211
6211
|
// injecting services coming from steps
|
|
6212
|
-
actionsService:
|
|
6212
|
+
actionsService: B,
|
|
6213
6213
|
// injecting services coming from dom
|
|
6214
|
-
themeRemovalService:
|
|
6214
|
+
themeRemovalService: Y
|
|
6215
6215
|
},
|
|
6216
6216
|
guards: {
|
|
6217
|
-
hasCustomContainer:
|
|
6218
|
-
isAutoRecoverEvent: (U,
|
|
6217
|
+
hasCustomContainer: R,
|
|
6218
|
+
isAutoRecoverEvent: (U, q) => q.isAutoRecoverEvent,
|
|
6219
6219
|
isEventEnabled: xe.helpers.isEventEnabled,
|
|
6220
|
-
didContentChanged: (U,
|
|
6220
|
+
didContentChanged: (U, q) => !wn(U.step.content, q.stepConfig.content),
|
|
6221
6221
|
shouldOnlyReloadTraits: Bu,
|
|
6222
|
-
shouldStepReload: (U,
|
|
6223
|
-
didThemeChange: (U,
|
|
6224
|
-
isHooksDoneEventPostRenderType: (U,
|
|
6225
|
-
isHooksDoneEventPreRenderType: (U,
|
|
6226
|
-
isHooksDoneEventPreBeginType: (U,
|
|
6227
|
-
isHooksDoneEventBeginType: (U,
|
|
6228
|
-
isHooksDoneEventErrorType: (U,
|
|
6229
|
-
isHooksDoneEventEndType: (U,
|
|
6222
|
+
shouldStepReload: (U, q) => !wn(U.step.traits, q.stepConfig.traits) || !wn(U.step.actions, q.stepConfig.actions) || !wn(U.experience.traits, q.experience.traits),
|
|
6223
|
+
didThemeChange: (U, q) => U.experience.theme !== q.experience.theme,
|
|
6224
|
+
isHooksDoneEventPostRenderType: (U, q) => q.hookType === Da,
|
|
6225
|
+
isHooksDoneEventPreRenderType: (U, q) => q.hookType === Pa,
|
|
6226
|
+
isHooksDoneEventPreBeginType: (U, q) => q.hookType === xo,
|
|
6227
|
+
isHooksDoneEventBeginType: (U, q) => q.hookType === wo,
|
|
6228
|
+
isHooksDoneEventErrorType: (U, q) => q.hookType === Ha,
|
|
6229
|
+
isHooksDoneEventEndType: (U, q) => q.hookType === fr,
|
|
6230
6230
|
hasPendingActions: (U) => U.actionsRunning,
|
|
6231
|
-
shouldFireStepCompletedEvent: (U,
|
|
6231
|
+
shouldFireStepCompletedEvent: (U, q) => q.hookType === fr && // Require that the step has been seen, otherwise it cannot be completed
|
|
6232
6232
|
U.blockedEvents.STEP_SEEN && U.stopReason !== bt.NAVIGATION && U.stopReason !== bt.DISMISSED
|
|
6233
6233
|
}
|
|
6234
6234
|
}
|
|
@@ -6285,7 +6285,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6285
6285
|
type: bo
|
|
6286
6286
|
}));
|
|
6287
6287
|
}, af = In(ka), sf = In(
|
|
6288
|
-
|
|
6288
|
+
Ra
|
|
6289
6289
|
), cf = In(ql), lf = In(Oa), uf = (e, t) => {
|
|
6290
6290
|
Object.values(e.stepMachines).forEach((n) => {
|
|
6291
6291
|
n.send({
|
|
@@ -6329,7 +6329,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6329
6329
|
a.traits
|
|
6330
6330
|
);
|
|
6331
6331
|
o.send({
|
|
6332
|
-
type:
|
|
6332
|
+
type: Yl,
|
|
6333
6333
|
stepConfig: a,
|
|
6334
6334
|
experience: t.experience,
|
|
6335
6335
|
changedExperienceTraits: n,
|
|
@@ -6363,8 +6363,8 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6363
6363
|
}), gf = ({ addHook: e }) => ({ experience: t }) => (n) => {
|
|
6364
6364
|
try {
|
|
6365
6365
|
t.traits.forEach(
|
|
6366
|
-
(r) =>
|
|
6367
|
-
getTrait:
|
|
6366
|
+
(r) => Ga({
|
|
6367
|
+
getTrait: Ja,
|
|
6368
6368
|
trait: r,
|
|
6369
6369
|
addHook: (o, i) => {
|
|
6370
6370
|
e(o, { callback: i, traitId: r.id });
|
|
@@ -6489,7 +6489,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6489
6489
|
runExperienceBeginHooks: yf,
|
|
6490
6490
|
runExperienceEndHooks: mf
|
|
6491
6491
|
};
|
|
6492
|
-
},
|
|
6492
|
+
}, Rf = {
|
|
6493
6493
|
id: "experience",
|
|
6494
6494
|
initial: "idle",
|
|
6495
6495
|
invoke: [
|
|
@@ -6647,7 +6647,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6647
6647
|
}), u = is(t), l = pu(t), p = hu(t), f = yu(t);
|
|
6648
6648
|
return Er(
|
|
6649
6649
|
{
|
|
6650
|
-
...
|
|
6650
|
+
...Rf,
|
|
6651
6651
|
context: {
|
|
6652
6652
|
experience: e,
|
|
6653
6653
|
blockedEvents: {},
|
|
@@ -6707,7 +6707,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6707
6707
|
rs,
|
|
6708
6708
|
os,
|
|
6709
6709
|
ns,
|
|
6710
|
-
|
|
6710
|
+
Xa
|
|
6711
6711
|
],
|
|
6712
6712
|
void 0,
|
|
6713
6713
|
{
|
|
@@ -6716,7 +6716,7 @@ const Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6716
6716
|
}
|
|
6717
6717
|
}
|
|
6718
6718
|
);
|
|
6719
|
-
function
|
|
6719
|
+
function Cf(e) {
|
|
6720
6720
|
const t = (e.ownerDocument || document).createElement("div");
|
|
6721
6721
|
return e.append(t), ss(t, at("div"));
|
|
6722
6722
|
}
|
|
@@ -6724,7 +6724,7 @@ const Af = () => {
|
|
|
6724
6724
|
let e = null;
|
|
6725
6725
|
return {
|
|
6726
6726
|
onRender: (t, n) => {
|
|
6727
|
-
!e && !t || (e || (e =
|
|
6727
|
+
!e && !t || (e || (e = Cf(t)), e = ss(e, n));
|
|
6728
6728
|
},
|
|
6729
6729
|
onRenderReset: () => {
|
|
6730
6730
|
e = null;
|
|
@@ -6752,10 +6752,10 @@ function Nf() {
|
|
|
6752
6752
|
wbr: !0
|
|
6753
6753
|
}), Ti;
|
|
6754
6754
|
}
|
|
6755
|
-
var Mr,
|
|
6755
|
+
var Mr, Ri;
|
|
6756
6756
|
function If() {
|
|
6757
|
-
if (
|
|
6758
|
-
|
|
6757
|
+
if (Ri) return Mr;
|
|
6758
|
+
Ri = 1;
|
|
6759
6759
|
var e = /([\w-]+)|=|(['"])([.\s\S]*?)\2/g, t = Nf();
|
|
6760
6760
|
return Mr = function(n) {
|
|
6761
6761
|
var r = 0, o, i = !0, a = {
|
|
@@ -6800,11 +6800,11 @@ function jf() {
|
|
|
6800
6800
|
}), !a.length && o.length && r(a, o, 0, 0, i.ignoreWhitespace), a;
|
|
6801
6801
|
}, Ur;
|
|
6802
6802
|
}
|
|
6803
|
-
const cs = /* @__PURE__ */
|
|
6804
|
-
var Mt = {},
|
|
6803
|
+
const cs = /* @__PURE__ */ Rl(Bd);
|
|
6804
|
+
var Mt = {}, Ci;
|
|
6805
6805
|
function Pf() {
|
|
6806
|
-
if (
|
|
6807
|
-
|
|
6806
|
+
if (Ci) return Mt;
|
|
6807
|
+
Ci = 1, Object.defineProperty(Mt, "__esModule", {
|
|
6808
6808
|
value: !0
|
|
6809
6809
|
}), Mt.createTextVNode = t, Mt.transformName = n, Mt.unescapeEntities = i;
|
|
6810
6810
|
var e = cs;
|
|
@@ -7015,12 +7015,12 @@ const $f = /* @__PURE__ */ Nt(Lf), ls = "data-interaction-style", Mf = (e) => e.
|
|
|
7015
7015
|
makeElementsAccessible: Ff
|
|
7016
7016
|
}, Symbol.toStringTag, { value: "Module" })), qf = "@appcues/close", Pi = {
|
|
7017
7017
|
markComplete: !0
|
|
7018
|
-
},
|
|
7018
|
+
}, Gf = ({ markComplete: e = Pi.markComplete } = Pi, { stopExperience: t, step: n }) => {
|
|
7019
7019
|
e ? t() : n.dismissExperience();
|
|
7020
7020
|
};
|
|
7021
|
-
st(qf,
|
|
7022
|
-
const
|
|
7023
|
-
function
|
|
7021
|
+
st(qf, Gf);
|
|
7022
|
+
const Jf = "@appcues/redirectTo";
|
|
7023
|
+
function Kf(e, t) {
|
|
7024
7024
|
if (/^https?:\/\//i.test(t))
|
|
7025
7025
|
return t;
|
|
7026
7026
|
try {
|
|
@@ -7029,23 +7029,23 @@ function Zf(e, t) {
|
|
|
7029
7029
|
return t;
|
|
7030
7030
|
}
|
|
7031
7031
|
}
|
|
7032
|
-
const
|
|
7032
|
+
const Yf = ({ url: e = "", openInNewWindow: t = !1 } = {}, { reportError: n, getWindowReference: r }) => {
|
|
7033
7033
|
if (!e) {
|
|
7034
7034
|
n("Can't redirect to undefined URL");
|
|
7035
7035
|
return;
|
|
7036
7036
|
}
|
|
7037
|
-
const o = r(), i =
|
|
7037
|
+
const o = r(), i = Kf(o, e);
|
|
7038
7038
|
o.open(i, t ? "_blank" : "_self", "noopener");
|
|
7039
7039
|
};
|
|
7040
|
-
st(
|
|
7041
|
-
const Qf = "@appcues/trackEvent",
|
|
7040
|
+
st(Jf, Yf);
|
|
7041
|
+
const Qf = "@appcues/trackEvent", Zf = ({ name: e, properties: t = {} }, { sendCustomEvent: n }) => {
|
|
7042
7042
|
n(e, t);
|
|
7043
7043
|
};
|
|
7044
|
-
st(Qf,
|
|
7045
|
-
const
|
|
7044
|
+
st(Qf, Zf);
|
|
7045
|
+
const Xf = "@appcues/triggerFlow", ep = ({ flowId: e, url: t, prefetch: n = !1 } = {}, { showFlow: r }) => {
|
|
7046
7046
|
r({ flowId: e, url: t, prefetch: n });
|
|
7047
7047
|
};
|
|
7048
|
-
st(
|
|
7048
|
+
st(Xf, ep);
|
|
7049
7049
|
const tp = (e) => Object.keys(e).length === 0, np = (e) => e === "date.now" ? Date.now() : null, rp = (e) => typeof e == "string" && e.startsWith("{") && e.endsWith("}"), op = (e) => Object.entries(e).reduce((t, [n, r]) => {
|
|
7050
7050
|
if (rp(r)) {
|
|
7051
7051
|
const o = r.slice(1, -1), i = np(o);
|
|
@@ -7456,7 +7456,7 @@ const Hi = ({ updateRootStyle: e, getTraitConfig: t }) => {
|
|
|
7456
7456
|
e("step.begin", Hi), e("step.container_change", Hi);
|
|
7457
7457
|
};
|
|
7458
7458
|
be(up, fp);
|
|
7459
|
-
const gs = ["top", "right", "bottom", "left"], Li = ["start", "end"], $i = /* @__PURE__ */ gs.reduce((e, t) => e.concat(t, t + "-" + Li[0], t + "-" + Li[1]), []),
|
|
7459
|
+
const gs = ["top", "right", "bottom", "left"], Li = ["start", "end"], $i = /* @__PURE__ */ gs.reduce((e, t) => e.concat(t, t + "-" + Li[0], t + "-" + Li[1]), []), Rn = Math.min, Vt = Math.max, hr = Math.round, Ke = (e) => ({
|
|
7460
7460
|
x: e,
|
|
7461
7461
|
y: e
|
|
7462
7462
|
}), pp = {
|
|
@@ -7469,7 +7469,7 @@ const gs = ["top", "right", "bottom", "left"], Li = ["start", "end"], $i = /* @_
|
|
|
7469
7469
|
end: "start"
|
|
7470
7470
|
};
|
|
7471
7471
|
function lo(e, t, n) {
|
|
7472
|
-
return Vt(e,
|
|
7472
|
+
return Vt(e, Rn(t, n));
|
|
7473
7473
|
}
|
|
7474
7474
|
function en(e, t) {
|
|
7475
7475
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -7483,7 +7483,7 @@ function ot(e) {
|
|
|
7483
7483
|
function ys(e) {
|
|
7484
7484
|
return e === "x" ? "y" : "x";
|
|
7485
7485
|
}
|
|
7486
|
-
function
|
|
7486
|
+
function Co(e) {
|
|
7487
7487
|
return e === "y" ? "height" : "width";
|
|
7488
7488
|
}
|
|
7489
7489
|
const vp = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
@@ -7495,7 +7495,7 @@ function Ao(e) {
|
|
|
7495
7495
|
}
|
|
7496
7496
|
function gp(e, t, n) {
|
|
7497
7497
|
n === void 0 && (n = !1);
|
|
7498
|
-
const r = ot(e), o = Ao(e), i =
|
|
7498
|
+
const r = ot(e), o = Ao(e), i = Co(o);
|
|
7499
7499
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
7500
7500
|
return t.reference[i] > t.floating[i] && (a = Mi(a)), [a, Mi(a)];
|
|
7501
7501
|
}
|
|
@@ -7545,7 +7545,7 @@ function Ui(e, t, n) {
|
|
|
7545
7545
|
reference: r,
|
|
7546
7546
|
floating: o
|
|
7547
7547
|
} = e;
|
|
7548
|
-
const i = kr(t), a = Ao(t), s =
|
|
7548
|
+
const i = kr(t), a = Ao(t), s = Co(a), c = tn(t), d = i === "y", v = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, l = r[s] / 2 - o[s] / 2;
|
|
7549
7549
|
let p;
|
|
7550
7550
|
switch (c) {
|
|
7551
7551
|
case "top":
|
|
@@ -7715,17 +7715,17 @@ const xp = (e) => ({
|
|
|
7715
7715
|
const u = ms(v), l = {
|
|
7716
7716
|
x: n,
|
|
7717
7717
|
y: r
|
|
7718
|
-
}, p = Ao(o), f =
|
|
7719
|
-
let
|
|
7720
|
-
(!
|
|
7721
|
-
const O = T / 2 - E / 2, I =
|
|
7718
|
+
}, p = Ao(o), f = Co(p), y = await a.getDimensions(d), g = p === "y", x = g ? "top" : "left", m = g ? "bottom" : "right", S = g ? "clientHeight" : "clientWidth", T = i.reference[f] + i.reference[p] - l[p] - i.floating[f], E = l[p] - i.reference[p], N = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
7719
|
+
let R = N ? N[S] : 0;
|
|
7720
|
+
(!R || !await (a.isElement == null ? void 0 : a.isElement(N))) && (R = s.floating[S] || i.floating[f]);
|
|
7721
|
+
const O = T / 2 - E / 2, I = R / 2 - y[f] / 2 - 1, P = Rn(u[x], I), D = Rn(u[m], I), M = P, F = R - y[f] - D, Z = R / 2 - y[f] / 2 + O, J = lo(M, Z, F), te = !c.arrow && ot(o) != null && Z !== J && i.reference[f] / 2 - (Z < M ? P : D) - y[f] / 2 < 0, ee = te ? Z < M ? Z - M : Z - F : 0;
|
|
7722
7722
|
return {
|
|
7723
|
-
[p]: l[p] +
|
|
7723
|
+
[p]: l[p] + ee,
|
|
7724
7724
|
data: {
|
|
7725
|
-
[p]:
|
|
7726
|
-
centerOffset:
|
|
7725
|
+
[p]: J,
|
|
7726
|
+
centerOffset: Z - J - ee,
|
|
7727
7727
|
...te && {
|
|
7728
|
-
alignmentOffset:
|
|
7728
|
+
alignmentOffset: ee
|
|
7729
7729
|
}
|
|
7730
7730
|
},
|
|
7731
7731
|
reset: te
|
|
@@ -7777,21 +7777,21 @@ const Sp = function(e) {
|
|
|
7777
7777
|
placement: N
|
|
7778
7778
|
}
|
|
7779
7779
|
};
|
|
7780
|
-
const
|
|
7780
|
+
const R = E.map((I) => {
|
|
7781
7781
|
const P = ot(I.placement);
|
|
7782
7782
|
return [I.placement, P && v ? (
|
|
7783
7783
|
// Check along the mainAxis and main crossAxis side.
|
|
7784
|
-
I.overflows.slice(0, 2).reduce((D,
|
|
7784
|
+
I.overflows.slice(0, 2).reduce((D, M) => D + M, 0)
|
|
7785
7785
|
) : (
|
|
7786
7786
|
// Check only the mainAxis.
|
|
7787
7787
|
I.overflows[0]
|
|
7788
7788
|
), I.overflows];
|
|
7789
|
-
}).sort((I, P) => I[1] - P[1]), O = ((o =
|
|
7789
|
+
}).sort((I, P) => I[1] - P[1]), O = ((o = R.filter((I) => I[2].slice(
|
|
7790
7790
|
0,
|
|
7791
7791
|
// Aligned placements should not check their opposite crossAxis
|
|
7792
7792
|
// side.
|
|
7793
7793
|
ot(I[0]) ? 2 : 3
|
|
7794
|
-
).every((P) => P <= 0))[0]) == null ? void 0 : o[0]) ||
|
|
7794
|
+
).every((P) => P <= 0))[0]) == null ? void 0 : o[0]) || R[0][0];
|
|
7795
7795
|
return O !== s ? {
|
|
7796
7796
|
data: {
|
|
7797
7797
|
index: x + 1,
|
|
@@ -7906,7 +7906,7 @@ const kp = function(e) {
|
|
|
7906
7906
|
};
|
|
7907
7907
|
}
|
|
7908
7908
|
};
|
|
7909
|
-
},
|
|
7909
|
+
}, Rp = function(e) {
|
|
7910
7910
|
return e === void 0 && (e = {}), {
|
|
7911
7911
|
name: "shift",
|
|
7912
7912
|
options: e,
|
|
@@ -7963,7 +7963,7 @@ const kp = function(e) {
|
|
|
7963
7963
|
}
|
|
7964
7964
|
};
|
|
7965
7965
|
};
|
|
7966
|
-
function
|
|
7966
|
+
function Rr() {
|
|
7967
7967
|
return typeof window < "u";
|
|
7968
7968
|
}
|
|
7969
7969
|
function nn(e) {
|
|
@@ -7978,16 +7978,16 @@ function lt(e) {
|
|
|
7978
7978
|
return (t = (bs(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7979
7979
|
}
|
|
7980
7980
|
function bs(e) {
|
|
7981
|
-
return
|
|
7981
|
+
return Rr() ? e instanceof Node || e instanceof De(e).Node : !1;
|
|
7982
7982
|
}
|
|
7983
7983
|
function qe(e) {
|
|
7984
|
-
return
|
|
7984
|
+
return Rr() ? e instanceof Element || e instanceof De(e).Element : !1;
|
|
7985
7985
|
}
|
|
7986
7986
|
function Qe(e) {
|
|
7987
|
-
return
|
|
7987
|
+
return Rr() ? e instanceof HTMLElement || e instanceof De(e).HTMLElement : !1;
|
|
7988
7988
|
}
|
|
7989
7989
|
function Vi(e) {
|
|
7990
|
-
return !
|
|
7990
|
+
return !Rr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof De(e).ShadowRoot;
|
|
7991
7991
|
}
|
|
7992
7992
|
const Op = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
7993
7993
|
function jn(e) {
|
|
@@ -7996,12 +7996,12 @@ function jn(e) {
|
|
|
7996
7996
|
overflowX: n,
|
|
7997
7997
|
overflowY: r,
|
|
7998
7998
|
display: o
|
|
7999
|
-
} =
|
|
7999
|
+
} = Ge(e);
|
|
8000
8000
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Op.has(o);
|
|
8001
8001
|
}
|
|
8002
|
-
const
|
|
8002
|
+
const Cp = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
8003
8003
|
function Ap(e) {
|
|
8004
|
-
return
|
|
8004
|
+
return Cp.has(nn(e));
|
|
8005
8005
|
}
|
|
8006
8006
|
const Np = [":popover-open", ":modal"];
|
|
8007
8007
|
function Or(e) {
|
|
@@ -8015,12 +8015,12 @@ function Or(e) {
|
|
|
8015
8015
|
}
|
|
8016
8016
|
const Ip = ["transform", "translate", "scale", "rotate", "perspective"], jp = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Pp = ["paint", "layout", "strict", "content"];
|
|
8017
8017
|
function No(e) {
|
|
8018
|
-
const t = Io(), n = qe(e) ?
|
|
8018
|
+
const t = Io(), n = qe(e) ? Ge(e) : e;
|
|
8019
8019
|
return Ip.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || jp.some((r) => (n.willChange || "").includes(r)) || Pp.some((r) => (n.contain || "").includes(r));
|
|
8020
8020
|
}
|
|
8021
8021
|
function Dp(e) {
|
|
8022
8022
|
let t = xt(e);
|
|
8023
|
-
for (; Qe(t) && !
|
|
8023
|
+
for (; Qe(t) && !Zt(t); ) {
|
|
8024
8024
|
if (No(t))
|
|
8025
8025
|
return t;
|
|
8026
8026
|
if (Or(t))
|
|
@@ -8033,13 +8033,13 @@ function Io() {
|
|
|
8033
8033
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
8034
8034
|
}
|
|
8035
8035
|
const Hp = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
8036
|
-
function
|
|
8036
|
+
function Zt(e) {
|
|
8037
8037
|
return Hp.has(nn(e));
|
|
8038
8038
|
}
|
|
8039
|
-
function
|
|
8039
|
+
function Ge(e) {
|
|
8040
8040
|
return De(e).getComputedStyle(e);
|
|
8041
8041
|
}
|
|
8042
|
-
function
|
|
8042
|
+
function Cr(e) {
|
|
8043
8043
|
return qe(e) ? {
|
|
8044
8044
|
scrollLeft: e.scrollLeft,
|
|
8045
8045
|
scrollTop: e.scrollTop
|
|
@@ -8062,7 +8062,7 @@ function xt(e) {
|
|
|
8062
8062
|
}
|
|
8063
8063
|
function xs(e) {
|
|
8064
8064
|
const t = xt(e);
|
|
8065
|
-
return
|
|
8065
|
+
return Zt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Qe(t) && jn(t) ? t : xs(t);
|
|
8066
8066
|
}
|
|
8067
8067
|
function yr(e, t, n) {
|
|
8068
8068
|
var r;
|
|
@@ -8078,7 +8078,7 @@ function uo(e) {
|
|
|
8078
8078
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
8079
8079
|
}
|
|
8080
8080
|
function ws(e) {
|
|
8081
|
-
const t =
|
|
8081
|
+
const t = Ge(e);
|
|
8082
8082
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
8083
8083
|
const o = Qe(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = hr(n) !== i || hr(r) !== a;
|
|
8084
8084
|
return s && (n = i, r = a), {
|
|
@@ -8093,7 +8093,7 @@ function Ss(e) {
|
|
|
8093
8093
|
function Ft(e) {
|
|
8094
8094
|
const t = Ss(e);
|
|
8095
8095
|
if (!Qe(t))
|
|
8096
|
-
return
|
|
8096
|
+
return Ke(1);
|
|
8097
8097
|
const n = t.getBoundingClientRect(), {
|
|
8098
8098
|
width: r,
|
|
8099
8099
|
height: o,
|
|
@@ -8105,7 +8105,7 @@ function Ft(e) {
|
|
|
8105
8105
|
y: s
|
|
8106
8106
|
};
|
|
8107
8107
|
}
|
|
8108
|
-
const Lp = /* @__PURE__ */
|
|
8108
|
+
const Lp = /* @__PURE__ */ Ke(0);
|
|
8109
8109
|
function Es(e) {
|
|
8110
8110
|
const t = De(e);
|
|
8111
8111
|
return !Io() || !t.visualViewport ? Lp : {
|
|
@@ -8119,15 +8119,15 @@ function $p(e, t, n) {
|
|
|
8119
8119
|
function On(e, t, n, r) {
|
|
8120
8120
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
8121
8121
|
const o = e.getBoundingClientRect(), i = Ss(e);
|
|
8122
|
-
let a =
|
|
8122
|
+
let a = Ke(1);
|
|
8123
8123
|
t && (r ? qe(r) && (a = Ft(r)) : a = Ft(e));
|
|
8124
|
-
const s = $p(i, n, r) ? Es(i) :
|
|
8124
|
+
const s = $p(i, n, r) ? Es(i) : Ke(0);
|
|
8125
8125
|
let c = (o.left + s.x) / a.x, d = (o.top + s.y) / a.y, v = o.width / a.x, u = o.height / a.y;
|
|
8126
8126
|
if (i) {
|
|
8127
8127
|
const l = De(i), p = r && qe(r) ? De(r) : r;
|
|
8128
8128
|
let f = l, y = uo(f);
|
|
8129
8129
|
for (; y && r && p !== f; ) {
|
|
8130
|
-
const g = Ft(y), x = y.getBoundingClientRect(), m =
|
|
8130
|
+
const g = Ft(y), x = y.getBoundingClientRect(), m = Ge(y), S = x.left + (y.clientLeft + parseFloat(m.paddingLeft)) * g.x, T = x.top + (y.clientTop + parseFloat(m.paddingTop)) * g.y;
|
|
8131
8131
|
c *= g.x, d *= g.y, v *= g.x, u *= g.y, c += S, d += T, f = De(y), y = uo(f);
|
|
8132
8132
|
}
|
|
8133
8133
|
}
|
|
@@ -8139,7 +8139,7 @@ function On(e, t, n, r) {
|
|
|
8139
8139
|
});
|
|
8140
8140
|
}
|
|
8141
8141
|
function Ar(e, t) {
|
|
8142
|
-
const n =
|
|
8142
|
+
const n = Cr(e).scrollLeft;
|
|
8143
8143
|
return t ? t.left + n : On(lt(e)).left + n;
|
|
8144
8144
|
}
|
|
8145
8145
|
function _s(e, t) {
|
|
@@ -8162,13 +8162,13 @@ function Mp(e) {
|
|
|
8162
8162
|
let c = {
|
|
8163
8163
|
scrollLeft: 0,
|
|
8164
8164
|
scrollTop: 0
|
|
8165
|
-
}, d =
|
|
8166
|
-
const v =
|
|
8167
|
-
if ((u || !u && !i) && ((nn(r) !== "body" || jn(a)) && (c =
|
|
8165
|
+
}, d = Ke(1);
|
|
8166
|
+
const v = Ke(0), u = Qe(r);
|
|
8167
|
+
if ((u || !u && !i) && ((nn(r) !== "body" || jn(a)) && (c = Cr(r)), Qe(r))) {
|
|
8168
8168
|
const p = On(r);
|
|
8169
8169
|
d = Ft(r), v.x = p.x + r.clientLeft, v.y = p.y + r.clientTop;
|
|
8170
8170
|
}
|
|
8171
|
-
const l = a && !u && !i ? _s(a, c) :
|
|
8171
|
+
const l = a && !u && !i ? _s(a, c) : Ke(0);
|
|
8172
8172
|
return {
|
|
8173
8173
|
width: n.width * d.x,
|
|
8174
8174
|
height: n.height * d.y,
|
|
@@ -8180,10 +8180,10 @@ function Up(e) {
|
|
|
8180
8180
|
return Array.from(e.getClientRects());
|
|
8181
8181
|
}
|
|
8182
8182
|
function Wp(e) {
|
|
8183
|
-
const t = lt(e), n =
|
|
8183
|
+
const t = lt(e), n = Cr(e), r = e.ownerDocument.body, o = Vt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Vt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
8184
8184
|
let a = -n.scrollLeft + Ar(e);
|
|
8185
8185
|
const s = -n.scrollTop;
|
|
8186
|
-
return
|
|
8186
|
+
return Ge(r).direction === "rtl" && (a += Vt(t.clientWidth, r.clientWidth) - o), {
|
|
8187
8187
|
width: o,
|
|
8188
8188
|
height: i,
|
|
8189
8189
|
x: a,
|
|
@@ -8213,7 +8213,7 @@ function zp(e, t) {
|
|
|
8213
8213
|
}
|
|
8214
8214
|
const Vp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
8215
8215
|
function Fp(e, t) {
|
|
8216
|
-
const n = On(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Qe(e) ? Ft(e) :
|
|
8216
|
+
const n = On(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Qe(e) ? Ft(e) : Ke(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = o * i.x, d = r * i.y;
|
|
8217
8217
|
return {
|
|
8218
8218
|
width: a,
|
|
8219
8219
|
height: s,
|
|
@@ -8242,17 +8242,17 @@ function Bi(e, t, n) {
|
|
|
8242
8242
|
}
|
|
8243
8243
|
function Ts(e, t) {
|
|
8244
8244
|
const n = xt(e);
|
|
8245
|
-
return n === t || !qe(n) ||
|
|
8245
|
+
return n === t || !qe(n) || Zt(n) ? !1 : Ge(n).position === "fixed" || Ts(n, t);
|
|
8246
8246
|
}
|
|
8247
8247
|
function Bp(e, t) {
|
|
8248
8248
|
const n = t.get(e);
|
|
8249
8249
|
if (n)
|
|
8250
8250
|
return n;
|
|
8251
8251
|
let r = yr(e, [], !1).filter((s) => qe(s) && nn(s) !== "body"), o = null;
|
|
8252
|
-
const i =
|
|
8252
|
+
const i = Ge(e).position === "fixed";
|
|
8253
8253
|
let a = i ? xt(e) : e;
|
|
8254
|
-
for (; qe(a) && !
|
|
8255
|
-
const s =
|
|
8254
|
+
for (; qe(a) && !Zt(a); ) {
|
|
8255
|
+
const s = Ge(a), c = No(a);
|
|
8256
8256
|
!c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && o && Vp.has(o.position) || jn(a) && !c && Ts(e, a)) ? r = r.filter((d) => d !== a) : o = s, a = xt(a);
|
|
8257
8257
|
}
|
|
8258
8258
|
return t.set(e, r), r;
|
|
@@ -8266,7 +8266,7 @@ function qp(e) {
|
|
|
8266
8266
|
} = e;
|
|
8267
8267
|
const i = [...n === "clippingAncestors" ? Or(t) ? [] : Bp(t, this._c) : [].concat(n), r], a = i[0], s = i.reduce((c, d) => {
|
|
8268
8268
|
const v = Bi(t, d, o);
|
|
8269
|
-
return c.top = Vt(v.top, c.top), c.right =
|
|
8269
|
+
return c.top = Vt(v.top, c.top), c.right = Rn(v.right, c.right), c.bottom = Rn(v.bottom, c.bottom), c.left = Vt(v.left, c.left), c;
|
|
8270
8270
|
}, Bi(t, a, o));
|
|
8271
8271
|
return {
|
|
8272
8272
|
width: s.right - s.left,
|
|
@@ -8275,7 +8275,7 @@ function qp(e) {
|
|
|
8275
8275
|
y: s.top
|
|
8276
8276
|
};
|
|
8277
8277
|
}
|
|
8278
|
-
function
|
|
8278
|
+
function Gp(e) {
|
|
8279
8279
|
const {
|
|
8280
8280
|
width: t,
|
|
8281
8281
|
height: n
|
|
@@ -8285,23 +8285,23 @@ function Kp(e) {
|
|
|
8285
8285
|
height: n
|
|
8286
8286
|
};
|
|
8287
8287
|
}
|
|
8288
|
-
function
|
|
8288
|
+
function Jp(e, t, n) {
|
|
8289
8289
|
const r = Qe(t), o = lt(t), i = n === "fixed", a = On(e, !0, i, t);
|
|
8290
8290
|
let s = {
|
|
8291
8291
|
scrollLeft: 0,
|
|
8292
8292
|
scrollTop: 0
|
|
8293
8293
|
};
|
|
8294
|
-
const c =
|
|
8294
|
+
const c = Ke(0);
|
|
8295
8295
|
function d() {
|
|
8296
8296
|
c.x = Ar(o);
|
|
8297
8297
|
}
|
|
8298
8298
|
if (r || !r && !i)
|
|
8299
|
-
if ((nn(t) !== "body" || jn(o)) && (s =
|
|
8299
|
+
if ((nn(t) !== "body" || jn(o)) && (s = Cr(t)), r) {
|
|
8300
8300
|
const p = On(t, !0, i, t);
|
|
8301
8301
|
c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
|
|
8302
8302
|
} else o && d();
|
|
8303
8303
|
i && !r && o && d();
|
|
8304
|
-
const v = o && !r && !i ? _s(o, s) :
|
|
8304
|
+
const v = o && !r && !i ? _s(o, s) : Ke(0), u = a.left + s.scrollLeft - c.x - v.x, l = a.top + s.scrollTop - c.y - v.y;
|
|
8305
8305
|
return {
|
|
8306
8306
|
x: u,
|
|
8307
8307
|
y: l,
|
|
@@ -8310,10 +8310,10 @@ function Gp(e, t, n) {
|
|
|
8310
8310
|
};
|
|
8311
8311
|
}
|
|
8312
8312
|
function Wr(e) {
|
|
8313
|
-
return
|
|
8313
|
+
return Ge(e).position === "static";
|
|
8314
8314
|
}
|
|
8315
8315
|
function qi(e, t) {
|
|
8316
|
-
if (!Qe(e) ||
|
|
8316
|
+
if (!Qe(e) || Ge(e).position === "fixed")
|
|
8317
8317
|
return null;
|
|
8318
8318
|
if (t)
|
|
8319
8319
|
return t(e);
|
|
@@ -8326,7 +8326,7 @@ function ks(e, t) {
|
|
|
8326
8326
|
return n;
|
|
8327
8327
|
if (!Qe(e)) {
|
|
8328
8328
|
let o = xt(e);
|
|
8329
|
-
for (; o && !
|
|
8329
|
+
for (; o && !Zt(o); ) {
|
|
8330
8330
|
if (qe(o) && !Wr(o))
|
|
8331
8331
|
return o;
|
|
8332
8332
|
o = xt(o);
|
|
@@ -8336,12 +8336,12 @@ function ks(e, t) {
|
|
|
8336
8336
|
let r = qi(e, t);
|
|
8337
8337
|
for (; r && Ap(r) && Wr(r); )
|
|
8338
8338
|
r = qi(r, t);
|
|
8339
|
-
return r &&
|
|
8339
|
+
return r && Zt(r) && Wr(r) && !No(r) ? n : r || Dp(e) || n;
|
|
8340
8340
|
}
|
|
8341
|
-
const
|
|
8341
|
+
const Kp = async function(e) {
|
|
8342
8342
|
const t = this.getOffsetParent || ks, n = this.getDimensions, r = await n(e.floating);
|
|
8343
8343
|
return {
|
|
8344
|
-
reference:
|
|
8344
|
+
reference: Jp(e.reference, await t(e.floating), e.strategy),
|
|
8345
8345
|
floating: {
|
|
8346
8346
|
x: 0,
|
|
8347
8347
|
y: 0,
|
|
@@ -8350,21 +8350,21 @@ const Zp = async function(e) {
|
|
|
8350
8350
|
}
|
|
8351
8351
|
};
|
|
8352
8352
|
};
|
|
8353
|
-
function
|
|
8354
|
-
return
|
|
8353
|
+
function Yp(e) {
|
|
8354
|
+
return Ge(e).direction === "rtl";
|
|
8355
8355
|
}
|
|
8356
8356
|
const Qp = {
|
|
8357
8357
|
convertOffsetParentRelativeRectToViewportRelativeRect: Mp,
|
|
8358
8358
|
getDocumentElement: lt,
|
|
8359
8359
|
getClippingRect: qp,
|
|
8360
8360
|
getOffsetParent: ks,
|
|
8361
|
-
getElementRects:
|
|
8361
|
+
getElementRects: Kp,
|
|
8362
8362
|
getClientRects: Up,
|
|
8363
|
-
getDimensions:
|
|
8363
|
+
getDimensions: Gp,
|
|
8364
8364
|
getScale: Ft,
|
|
8365
8365
|
isElement: qe,
|
|
8366
|
-
isRTL:
|
|
8367
|
-
},
|
|
8366
|
+
isRTL: Yp
|
|
8367
|
+
}, Zp = kp, Xp = Sp, eh = Rp, th = Ep, nh = xp, rh = (e, t, n) => {
|
|
8368
8368
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
8369
8369
|
platform: Qp,
|
|
8370
8370
|
...n
|
|
@@ -8377,59 +8377,59 @@ const Qp = {
|
|
|
8377
8377
|
platform: i
|
|
8378
8378
|
});
|
|
8379
8379
|
};
|
|
8380
|
-
var zr,
|
|
8380
|
+
var zr, Gi;
|
|
8381
8381
|
function oh() {
|
|
8382
|
-
if (
|
|
8383
|
-
|
|
8382
|
+
if (Gi) return zr;
|
|
8383
|
+
Gi = 1;
|
|
8384
8384
|
var e = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, a = /^0o[0-7]+$/i, s = parseInt, c = typeof We == "object" && We && We.Object === Object && We, d = typeof self == "object" && self && self.Object === Object && self, v = c || d || Function("return this")(), u = Object.prototype, l = u.toString, p = Math.max, f = Math.min, y = function() {
|
|
8385
8385
|
return v.Date.now();
|
|
8386
8386
|
};
|
|
8387
|
-
function g(E, N,
|
|
8388
|
-
var O, I, P, D,
|
|
8387
|
+
function g(E, N, R) {
|
|
8388
|
+
var O, I, P, D, M, F, Z = 0, J = !1, te = !1, ee = !0;
|
|
8389
8389
|
if (typeof E != "function")
|
|
8390
8390
|
throw new TypeError(e);
|
|
8391
|
-
N = T(N) || 0, x(
|
|
8392
|
-
function
|
|
8393
|
-
var
|
|
8394
|
-
return O = I = void 0,
|
|
8391
|
+
N = T(N) || 0, x(R) && (J = !!R.leading, te = "maxWait" in R, P = te ? p(T(R.maxWait) || 0, N) : P, ee = "trailing" in R ? !!R.trailing : ee);
|
|
8392
|
+
function G(ne) {
|
|
8393
|
+
var de = O, we = I;
|
|
8394
|
+
return O = I = void 0, Z = ne, D = E.apply(we, de), D;
|
|
8395
8395
|
}
|
|
8396
|
-
function
|
|
8397
|
-
return
|
|
8396
|
+
function B(ne) {
|
|
8397
|
+
return Z = ne, M = setTimeout(he, N), J ? G(ne) : D;
|
|
8398
8398
|
}
|
|
8399
|
-
function
|
|
8400
|
-
var
|
|
8399
|
+
function le(ne) {
|
|
8400
|
+
var de = ne - F, we = ne - Z, He = N - de;
|
|
8401
8401
|
return te ? f(He, P - we) : He;
|
|
8402
8402
|
}
|
|
8403
|
-
function
|
|
8404
|
-
var
|
|
8405
|
-
return F === void 0 ||
|
|
8403
|
+
function Y(ne) {
|
|
8404
|
+
var de = ne - F, we = ne - Z;
|
|
8405
|
+
return F === void 0 || de >= N || de < 0 || te && we >= P;
|
|
8406
8406
|
}
|
|
8407
8407
|
function he() {
|
|
8408
|
-
var
|
|
8409
|
-
if (
|
|
8410
|
-
return xe(
|
|
8411
|
-
|
|
8408
|
+
var ne = y();
|
|
8409
|
+
if (Y(ne))
|
|
8410
|
+
return xe(ne);
|
|
8411
|
+
M = setTimeout(he, le(ne));
|
|
8412
8412
|
}
|
|
8413
|
-
function xe(
|
|
8414
|
-
return
|
|
8413
|
+
function xe(ne) {
|
|
8414
|
+
return M = void 0, ee && O ? G(ne) : (O = I = void 0, D);
|
|
8415
8415
|
}
|
|
8416
8416
|
function ke() {
|
|
8417
|
-
|
|
8417
|
+
M !== void 0 && clearTimeout(M), Z = 0, O = F = I = M = void 0;
|
|
8418
8418
|
}
|
|
8419
8419
|
function U() {
|
|
8420
|
-
return
|
|
8420
|
+
return M === void 0 ? D : xe(y());
|
|
8421
8421
|
}
|
|
8422
|
-
function
|
|
8423
|
-
var
|
|
8424
|
-
if (O = arguments, I = this, F =
|
|
8425
|
-
if (
|
|
8426
|
-
return
|
|
8422
|
+
function q() {
|
|
8423
|
+
var ne = y(), de = Y(ne);
|
|
8424
|
+
if (O = arguments, I = this, F = ne, de) {
|
|
8425
|
+
if (M === void 0)
|
|
8426
|
+
return B(F);
|
|
8427
8427
|
if (te)
|
|
8428
|
-
return
|
|
8428
|
+
return M = setTimeout(he, N), G(F);
|
|
8429
8429
|
}
|
|
8430
|
-
return
|
|
8430
|
+
return M === void 0 && (M = setTimeout(he, N)), D;
|
|
8431
8431
|
}
|
|
8432
|
-
return
|
|
8432
|
+
return q.cancel = ke, q.flush = U, q;
|
|
8433
8433
|
}
|
|
8434
8434
|
function x(E) {
|
|
8435
8435
|
var N = typeof E;
|
|
@@ -8453,100 +8453,100 @@ function oh() {
|
|
|
8453
8453
|
if (typeof E != "string")
|
|
8454
8454
|
return E === 0 ? E : +E;
|
|
8455
8455
|
E = E.replace(r, "");
|
|
8456
|
-
var
|
|
8457
|
-
return
|
|
8456
|
+
var R = i.test(E);
|
|
8457
|
+
return R || a.test(E) ? s(E.slice(2), R ? 2 : 8) : o.test(E) ? t : +E;
|
|
8458
8458
|
}
|
|
8459
8459
|
return zr = g, zr;
|
|
8460
8460
|
}
|
|
8461
8461
|
var ih = oh();
|
|
8462
|
-
const
|
|
8463
|
-
var Vr,
|
|
8462
|
+
const Rs = /* @__PURE__ */ Nt(ih);
|
|
8463
|
+
var Vr, Ji;
|
|
8464
8464
|
function ah() {
|
|
8465
|
-
if (
|
|
8466
|
-
|
|
8465
|
+
if (Ji) return Vr;
|
|
8466
|
+
Ji = 1;
|
|
8467
8467
|
var e = 200, t = "__lodash_hash_undefined__", n = 1 / 0, r = "[object Function]", o = "[object GeneratorFunction]", i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, s = typeof We == "object" && We && We.Object === Object && We, c = typeof self == "object" && self && self.Object === Object && self, d = s || c || Function("return this")();
|
|
8468
|
-
function v(k,
|
|
8468
|
+
function v(k, $) {
|
|
8469
8469
|
var h = k ? k.length : 0;
|
|
8470
|
-
return !!h && l(k,
|
|
8470
|
+
return !!h && l(k, $, 0) > -1;
|
|
8471
8471
|
}
|
|
8472
|
-
function u(k,
|
|
8473
|
-
for (var A = k.length,
|
|
8474
|
-
if (
|
|
8475
|
-
return
|
|
8472
|
+
function u(k, $, h, w) {
|
|
8473
|
+
for (var A = k.length, C = h + -1; ++C < A; )
|
|
8474
|
+
if ($(k[C], C, k))
|
|
8475
|
+
return C;
|
|
8476
8476
|
return -1;
|
|
8477
8477
|
}
|
|
8478
|
-
function l(k,
|
|
8479
|
-
if (
|
|
8478
|
+
function l(k, $, h) {
|
|
8479
|
+
if ($ !== $)
|
|
8480
8480
|
return u(k, p, h);
|
|
8481
8481
|
for (var w = h - 1, A = k.length; ++w < A; )
|
|
8482
|
-
if (k[w] ===
|
|
8482
|
+
if (k[w] === $)
|
|
8483
8483
|
return w;
|
|
8484
8484
|
return -1;
|
|
8485
8485
|
}
|
|
8486
8486
|
function p(k) {
|
|
8487
8487
|
return k !== k;
|
|
8488
8488
|
}
|
|
8489
|
-
function f(k,
|
|
8490
|
-
return k.has(
|
|
8489
|
+
function f(k, $) {
|
|
8490
|
+
return k.has($);
|
|
8491
8491
|
}
|
|
8492
|
-
function y(k,
|
|
8493
|
-
return k?.[
|
|
8492
|
+
function y(k, $) {
|
|
8493
|
+
return k?.[$];
|
|
8494
8494
|
}
|
|
8495
8495
|
function g(k) {
|
|
8496
|
-
var
|
|
8496
|
+
var $ = !1;
|
|
8497
8497
|
if (k != null && typeof k.toString != "function")
|
|
8498
8498
|
try {
|
|
8499
|
-
|
|
8499
|
+
$ = !!(k + "");
|
|
8500
8500
|
} catch {
|
|
8501
8501
|
}
|
|
8502
|
-
return
|
|
8502
|
+
return $;
|
|
8503
8503
|
}
|
|
8504
8504
|
function x(k) {
|
|
8505
|
-
var
|
|
8505
|
+
var $ = -1, h = Array(k.size);
|
|
8506
8506
|
return k.forEach(function(w) {
|
|
8507
|
-
h[
|
|
8507
|
+
h[++$] = w;
|
|
8508
8508
|
}), h;
|
|
8509
8509
|
}
|
|
8510
8510
|
var m = Array.prototype, S = Function.prototype, T = Object.prototype, E = d["__core-js_shared__"], N = (function() {
|
|
8511
8511
|
var k = /[^.]+$/.exec(E && E.keys && E.keys.IE_PROTO || "");
|
|
8512
8512
|
return k ? "Symbol(src)_1." + k : "";
|
|
8513
|
-
})(),
|
|
8514
|
-
"^" +
|
|
8515
|
-
), D = m.splice,
|
|
8516
|
-
function
|
|
8517
|
-
var
|
|
8518
|
-
for (this.clear();
|
|
8519
|
-
var w = k[
|
|
8513
|
+
})(), R = S.toString, O = T.hasOwnProperty, I = T.toString, P = RegExp(
|
|
8514
|
+
"^" + R.call(O).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
8515
|
+
), D = m.splice, M = ft(d, "Map"), F = ft(d, "Set"), Z = ft(Object, "create");
|
|
8516
|
+
function J(k) {
|
|
8517
|
+
var $ = -1, h = k ? k.length : 0;
|
|
8518
|
+
for (this.clear(); ++$ < h; ) {
|
|
8519
|
+
var w = k[$];
|
|
8520
8520
|
this.set(w[0], w[1]);
|
|
8521
8521
|
}
|
|
8522
8522
|
}
|
|
8523
8523
|
function te() {
|
|
8524
|
-
this.__data__ =
|
|
8524
|
+
this.__data__ = Z ? Z(null) : {};
|
|
8525
8525
|
}
|
|
8526
|
-
function
|
|
8526
|
+
function ee(k) {
|
|
8527
8527
|
return this.has(k) && delete this.__data__[k];
|
|
8528
8528
|
}
|
|
8529
|
-
function
|
|
8530
|
-
var
|
|
8531
|
-
if (
|
|
8532
|
-
var h =
|
|
8529
|
+
function G(k) {
|
|
8530
|
+
var $ = this.__data__;
|
|
8531
|
+
if (Z) {
|
|
8532
|
+
var h = $[k];
|
|
8533
8533
|
return h === t ? void 0 : h;
|
|
8534
8534
|
}
|
|
8535
|
-
return O.call(
|
|
8535
|
+
return O.call($, k) ? $[k] : void 0;
|
|
8536
8536
|
}
|
|
8537
|
-
function
|
|
8538
|
-
var
|
|
8539
|
-
return
|
|
8537
|
+
function B(k) {
|
|
8538
|
+
var $ = this.__data__;
|
|
8539
|
+
return Z ? $[k] !== void 0 : O.call($, k);
|
|
8540
8540
|
}
|
|
8541
|
-
function
|
|
8541
|
+
function le(k, $) {
|
|
8542
8542
|
var h = this.__data__;
|
|
8543
|
-
return h[k] =
|
|
8543
|
+
return h[k] = Z && $ === void 0 ? t : $, this;
|
|
8544
8544
|
}
|
|
8545
|
-
|
|
8546
|
-
function
|
|
8547
|
-
var
|
|
8548
|
-
for (this.clear();
|
|
8549
|
-
var w = k[
|
|
8545
|
+
J.prototype.clear = te, J.prototype.delete = ee, J.prototype.get = G, J.prototype.has = B, J.prototype.set = le;
|
|
8546
|
+
function Y(k) {
|
|
8547
|
+
var $ = -1, h = k ? k.length : 0;
|
|
8548
|
+
for (this.clear(); ++$ < h; ) {
|
|
8549
|
+
var w = k[$];
|
|
8550
8550
|
this.set(w[0], w[1]);
|
|
8551
8551
|
}
|
|
8552
8552
|
}
|
|
@@ -8554,36 +8554,36 @@ function ah() {
|
|
|
8554
8554
|
this.__data__ = [];
|
|
8555
8555
|
}
|
|
8556
8556
|
function xe(k) {
|
|
8557
|
-
var
|
|
8557
|
+
var $ = this.__data__, h = ut($, k);
|
|
8558
8558
|
if (h < 0)
|
|
8559
8559
|
return !1;
|
|
8560
|
-
var w =
|
|
8561
|
-
return h == w ?
|
|
8560
|
+
var w = $.length - 1;
|
|
8561
|
+
return h == w ? $.pop() : D.call($, h, 1), !0;
|
|
8562
8562
|
}
|
|
8563
8563
|
function ke(k) {
|
|
8564
|
-
var
|
|
8565
|
-
return h < 0 ? void 0 :
|
|
8564
|
+
var $ = this.__data__, h = ut($, k);
|
|
8565
|
+
return h < 0 ? void 0 : $[h][1];
|
|
8566
8566
|
}
|
|
8567
8567
|
function U(k) {
|
|
8568
8568
|
return ut(this.__data__, k) > -1;
|
|
8569
8569
|
}
|
|
8570
|
-
function
|
|
8570
|
+
function q(k, $) {
|
|
8571
8571
|
var h = this.__data__, w = ut(h, k);
|
|
8572
|
-
return w < 0 ? h.push([k,
|
|
8572
|
+
return w < 0 ? h.push([k, $]) : h[w][1] = $, this;
|
|
8573
8573
|
}
|
|
8574
|
-
|
|
8575
|
-
function
|
|
8576
|
-
var
|
|
8577
|
-
for (this.clear();
|
|
8578
|
-
var w = k[
|
|
8574
|
+
Y.prototype.clear = he, Y.prototype.delete = xe, Y.prototype.get = ke, Y.prototype.has = U, Y.prototype.set = q;
|
|
8575
|
+
function ne(k) {
|
|
8576
|
+
var $ = -1, h = k ? k.length : 0;
|
|
8577
|
+
for (this.clear(); ++$ < h; ) {
|
|
8578
|
+
var w = k[$];
|
|
8579
8579
|
this.set(w[0], w[1]);
|
|
8580
8580
|
}
|
|
8581
8581
|
}
|
|
8582
|
-
function
|
|
8582
|
+
function de() {
|
|
8583
8583
|
this.__data__ = {
|
|
8584
|
-
hash: new
|
|
8585
|
-
map: new (
|
|
8586
|
-
string: new
|
|
8584
|
+
hash: new J(),
|
|
8585
|
+
map: new (M || Y)(),
|
|
8586
|
+
string: new J()
|
|
8587
8587
|
};
|
|
8588
8588
|
}
|
|
8589
8589
|
function we(k) {
|
|
@@ -8595,14 +8595,14 @@ function ah() {
|
|
|
8595
8595
|
function Ae(k) {
|
|
8596
8596
|
return dt(this, k).has(k);
|
|
8597
8597
|
}
|
|
8598
|
-
function Le(k,
|
|
8599
|
-
return dt(this, k).set(k,
|
|
8598
|
+
function Le(k, $) {
|
|
8599
|
+
return dt(this, k).set(k, $), this;
|
|
8600
8600
|
}
|
|
8601
|
-
|
|
8601
|
+
ne.prototype.clear = de, ne.prototype.delete = we, ne.prototype.get = He, ne.prototype.has = Ae, ne.prototype.set = Le;
|
|
8602
8602
|
function ze(k) {
|
|
8603
|
-
var
|
|
8604
|
-
for (this.__data__ = new
|
|
8605
|
-
this.add(k[
|
|
8603
|
+
var $ = -1, h = k ? k.length : 0;
|
|
8604
|
+
for (this.__data__ = new ne(); ++$ < h; )
|
|
8605
|
+
this.add(k[$]);
|
|
8606
8606
|
}
|
|
8607
8607
|
function wt(k) {
|
|
8608
8608
|
return this.__data__.set(k, t), this;
|
|
@@ -8611,53 +8611,53 @@ function ah() {
|
|
|
8611
8611
|
return this.__data__.has(k);
|
|
8612
8612
|
}
|
|
8613
8613
|
ze.prototype.add = ze.prototype.push = wt, ze.prototype.has = jt;
|
|
8614
|
-
function ut(k,
|
|
8614
|
+
function ut(k, $) {
|
|
8615
8615
|
for (var h = k.length; h--; )
|
|
8616
|
-
if (Pt(k[h][0],
|
|
8616
|
+
if (Pt(k[h][0], $))
|
|
8617
8617
|
return h;
|
|
8618
8618
|
return -1;
|
|
8619
8619
|
}
|
|
8620
8620
|
function rn(k) {
|
|
8621
|
-
if (!
|
|
8621
|
+
if (!Ze(k) || cn(k))
|
|
8622
8622
|
return !1;
|
|
8623
|
-
var
|
|
8624
|
-
return
|
|
8625
|
-
}
|
|
8626
|
-
function on(k,
|
|
8627
|
-
var w = -1, A = v,
|
|
8628
|
-
if (
|
|
8629
|
-
var
|
|
8630
|
-
if (
|
|
8631
|
-
return x(
|
|
8623
|
+
var $ = pt(k) || g(k) ? P : a;
|
|
8624
|
+
return $.test(ln(k));
|
|
8625
|
+
}
|
|
8626
|
+
function on(k, $, h) {
|
|
8627
|
+
var w = -1, A = v, C = k.length, H = !0, W = [], V = W;
|
|
8628
|
+
if (C >= e) {
|
|
8629
|
+
var K = an(k);
|
|
8630
|
+
if (K)
|
|
8631
|
+
return x(K);
|
|
8632
8632
|
H = !1, A = f, V = new ze();
|
|
8633
8633
|
} else
|
|
8634
8634
|
V = W;
|
|
8635
8635
|
e:
|
|
8636
|
-
for (; ++w <
|
|
8637
|
-
var X = k[w],
|
|
8638
|
-
if (X = X !== 0 ? X : 0, H &&
|
|
8639
|
-
for (var
|
|
8640
|
-
if (V[
|
|
8636
|
+
for (; ++w < C; ) {
|
|
8637
|
+
var X = k[w], se = X;
|
|
8638
|
+
if (X = X !== 0 ? X : 0, H && se === se) {
|
|
8639
|
+
for (var ue = V.length; ue--; )
|
|
8640
|
+
if (V[ue] === se)
|
|
8641
8641
|
continue e;
|
|
8642
8642
|
W.push(X);
|
|
8643
|
-
} else A(V,
|
|
8643
|
+
} else A(V, se, h) || (V !== W && V.push(se), W.push(X));
|
|
8644
8644
|
}
|
|
8645
8645
|
return W;
|
|
8646
8646
|
}
|
|
8647
8647
|
var an = F && 1 / x(new F([, -0]))[1] == n ? function(k) {
|
|
8648
8648
|
return new F(k);
|
|
8649
8649
|
} : St;
|
|
8650
|
-
function dt(k,
|
|
8650
|
+
function dt(k, $) {
|
|
8651
8651
|
var h = k.__data__;
|
|
8652
|
-
return sn(
|
|
8652
|
+
return sn($) ? h[typeof $ == "string" ? "string" : "hash"] : h.map;
|
|
8653
8653
|
}
|
|
8654
|
-
function ft(k,
|
|
8655
|
-
var h = y(k,
|
|
8654
|
+
function ft(k, $) {
|
|
8655
|
+
var h = y(k, $);
|
|
8656
8656
|
return rn(h) ? h : void 0;
|
|
8657
8657
|
}
|
|
8658
8658
|
function sn(k) {
|
|
8659
|
-
var
|
|
8660
|
-
return
|
|
8659
|
+
var $ = typeof k;
|
|
8660
|
+
return $ == "string" || $ == "number" || $ == "symbol" || $ == "boolean" ? k !== "__proto__" : k === null;
|
|
8661
8661
|
}
|
|
8662
8662
|
function cn(k) {
|
|
8663
8663
|
return !!N && N in k;
|
|
@@ -8665,7 +8665,7 @@ function ah() {
|
|
|
8665
8665
|
function ln(k) {
|
|
8666
8666
|
if (k != null) {
|
|
8667
8667
|
try {
|
|
8668
|
-
return
|
|
8668
|
+
return R.call(k);
|
|
8669
8669
|
} catch {
|
|
8670
8670
|
}
|
|
8671
8671
|
try {
|
|
@@ -8678,24 +8678,24 @@ function ah() {
|
|
|
8678
8678
|
function un(k) {
|
|
8679
8679
|
return k && k.length ? on(k) : [];
|
|
8680
8680
|
}
|
|
8681
|
-
function Pt(k,
|
|
8682
|
-
return k ===
|
|
8681
|
+
function Pt(k, $) {
|
|
8682
|
+
return k === $ || k !== k && $ !== $;
|
|
8683
8683
|
}
|
|
8684
8684
|
function pt(k) {
|
|
8685
|
-
var
|
|
8686
|
-
return
|
|
8685
|
+
var $ = Ze(k) ? I.call(k) : "";
|
|
8686
|
+
return $ == r || $ == o;
|
|
8687
8687
|
}
|
|
8688
|
-
function
|
|
8689
|
-
var
|
|
8690
|
-
return !!k && (
|
|
8688
|
+
function Ze(k) {
|
|
8689
|
+
var $ = typeof k;
|
|
8690
|
+
return !!k && ($ == "object" || $ == "function");
|
|
8691
8691
|
}
|
|
8692
8692
|
function St() {
|
|
8693
8693
|
}
|
|
8694
8694
|
return Vr = un, Vr;
|
|
8695
8695
|
}
|
|
8696
8696
|
var sh = ah();
|
|
8697
|
-
const ch = /* @__PURE__ */ Nt(sh), Os = 10,
|
|
8698
|
-
const o = `-${
|
|
8697
|
+
const ch = /* @__PURE__ */ Nt(sh), Os = 10, Cs = 15, lh = (e, t, n, r) => {
|
|
8698
|
+
const o = `-${Cs / 2}px`, { staticSide: i, rotation: a, shadowOpacity: s } = {
|
|
8699
8699
|
top: {
|
|
8700
8700
|
staticSide: "bottom",
|
|
8701
8701
|
rotation: 45,
|
|
@@ -8728,13 +8728,13 @@ const ch = /* @__PURE__ */ Nt(sh), Os = 10, Rs = 15, lh = (e, t, n, r) => {
|
|
|
8728
8728
|
[i]: o,
|
|
8729
8729
|
zIndex: r
|
|
8730
8730
|
};
|
|
8731
|
-
},
|
|
8731
|
+
}, Ki = (e, t) => {
|
|
8732
8732
|
const n = e.slice(1);
|
|
8733
8733
|
return t.find(
|
|
8734
8734
|
({ config: r, type: o }) => o === "@appcues/overlay" && n === r.rootId
|
|
8735
8735
|
);
|
|
8736
8736
|
}, uh = (e, t) => {
|
|
8737
|
-
const n = Os +
|
|
8737
|
+
const n = Os + Cs / 2;
|
|
8738
8738
|
return t.includes("start") ? e - n : e + n;
|
|
8739
8739
|
}, dh = ({
|
|
8740
8740
|
placementUnit: e,
|
|
@@ -8765,7 +8765,7 @@ const ch = /* @__PURE__ */ Nt(sh), Os = 10, Rs = 15, lh = (e, t, n, r) => {
|
|
|
8765
8765
|
return !1;
|
|
8766
8766
|
}
|
|
8767
8767
|
};
|
|
8768
|
-
function
|
|
8768
|
+
function Yi(e) {
|
|
8769
8769
|
return e === "fixed" || e === "relative" || e === "absolute" || e === "sticky";
|
|
8770
8770
|
}
|
|
8771
8771
|
function Qi(e) {
|
|
@@ -8774,7 +8774,7 @@ function Qi(e) {
|
|
|
8774
8774
|
function As(e, t, n, r, o) {
|
|
8775
8775
|
let i = o, a = t.zIndex;
|
|
8776
8776
|
const s = t.position, c = e.parentElement, d = c ? r.getComputedStyle(c) : {};
|
|
8777
|
-
if (a !== "" && a !== "auto" && !
|
|
8777
|
+
if (a !== "" && a !== "auto" && !Yi(s) && !Qi(d) && (a = "auto"), (!i || a !== "" && a !== "auto" && (Yi(s) || Qi(d))) && (i = a), c && c !== n.body && c !== n.documentElement)
|
|
8778
8778
|
return As(c, d, n, r, i);
|
|
8779
8779
|
if (/^\d+$/.test(i)) {
|
|
8780
8780
|
let v = Number.parseInt(i, 10);
|
|
@@ -8870,7 +8870,7 @@ const fh = (e, t) => {
|
|
|
8870
8870
|
function c() {
|
|
8871
8871
|
e();
|
|
8872
8872
|
}
|
|
8873
|
-
const d =
|
|
8873
|
+
const d = Rs(c, 100);
|
|
8874
8874
|
function v() {
|
|
8875
8875
|
const u = t.getBoundingClientRect();
|
|
8876
8876
|
s && (u.x !== s.x || u.y !== s.y || u.width !== s.width || u.height !== s.height) && d(), s = u;
|
|
@@ -8904,121 +8904,121 @@ const fh = (e, t) => {
|
|
|
8904
8904
|
getTraitConfig: E
|
|
8905
8905
|
}) => {
|
|
8906
8906
|
const { traits: N } = m.getConfig(), {
|
|
8907
|
-
arrowId:
|
|
8907
|
+
arrowId: R = "arrow",
|
|
8908
8908
|
target: O,
|
|
8909
8909
|
rootId: I,
|
|
8910
8910
|
placement: P = "auto",
|
|
8911
8911
|
distance: D,
|
|
8912
|
-
skidding:
|
|
8912
|
+
skidding: M,
|
|
8913
8913
|
placementUnit: F = "pixels",
|
|
8914
|
-
shouldAutoCalculateZIndex:
|
|
8915
|
-
} = E(),
|
|
8914
|
+
shouldAutoCalculateZIndex: Z = !0
|
|
8915
|
+
} = E(), J = Ki(O.selector, N), te = N.find((B) => B.type === "@appcues/toggle")?.config?.startHidden ?? !0;
|
|
8916
8916
|
te || S(I, { position: "absolute" }), s = () => {
|
|
8917
|
-
const
|
|
8917
|
+
const B = m.querySelector(`#${I}`), le = m.querySelector(`#${R}`), Y = Bt(
|
|
8918
8918
|
g(O.selector),
|
|
8919
8919
|
O.filters
|
|
8920
8920
|
);
|
|
8921
8921
|
return {
|
|
8922
|
-
matchingElements:
|
|
8923
|
-
targetEl:
|
|
8924
|
-
rootEl:
|
|
8925
|
-
arrowEl:
|
|
8922
|
+
matchingElements: Y,
|
|
8923
|
+
targetEl: Y[0],
|
|
8924
|
+
rootEl: B[0],
|
|
8925
|
+
arrowEl: le[0]
|
|
8926
8926
|
};
|
|
8927
8927
|
};
|
|
8928
|
-
const
|
|
8929
|
-
const { targetEl:
|
|
8930
|
-
if (!r &&
|
|
8928
|
+
const ee = async () => {
|
|
8929
|
+
const { targetEl: B, rootEl: le, arrowEl: Y } = s();
|
|
8930
|
+
if (!r && B && le) {
|
|
8931
8931
|
r = !0;
|
|
8932
8932
|
const he = dh({
|
|
8933
8933
|
placement: P,
|
|
8934
|
-
targetEl:
|
|
8934
|
+
targetEl: B,
|
|
8935
8935
|
distance: D,
|
|
8936
|
-
skidding:
|
|
8936
|
+
skidding: M,
|
|
8937
8937
|
placementUnit: F
|
|
8938
8938
|
}), xe = [
|
|
8939
|
-
|
|
8939
|
+
Zp(({ placement: Le }) => ({
|
|
8940
8940
|
...he,
|
|
8941
|
-
crossAxis:
|
|
8941
|
+
crossAxis: Y && /start|end/gm.test(Le) ? uh(M, Le) : he.crossAxis
|
|
8942
8942
|
}))
|
|
8943
8943
|
];
|
|
8944
8944
|
P === "auto" && xe.push(
|
|
8945
8945
|
eh(),
|
|
8946
|
-
|
|
8946
|
+
Xp({
|
|
8947
8947
|
crossAxis: !0
|
|
8948
8948
|
})
|
|
8949
|
-
),
|
|
8949
|
+
), Y && xe.push(nh({ element: Y, padding: Os })), xe.push(th());
|
|
8950
8950
|
const {
|
|
8951
8951
|
middlewareData: ke,
|
|
8952
8952
|
strategy: U,
|
|
8953
|
-
x:
|
|
8954
|
-
y:
|
|
8955
|
-
placement:
|
|
8956
|
-
} = await rh(
|
|
8953
|
+
x: q,
|
|
8954
|
+
y: ne,
|
|
8955
|
+
placement: de
|
|
8956
|
+
} = await rh(B, le, {
|
|
8957
8957
|
middleware: xe,
|
|
8958
8958
|
placement: mh[P] ?? "auto",
|
|
8959
8959
|
strategy: l
|
|
8960
8960
|
}), { referenceHidden: we } = ke.hide;
|
|
8961
|
-
if (
|
|
8961
|
+
if (Y) {
|
|
8962
8962
|
const { x: Le, y: ze } = ke.arrow;
|
|
8963
|
-
S(
|
|
8964
|
-
...lh(
|
|
8963
|
+
S(R, {
|
|
8964
|
+
...lh(de, Le, ze),
|
|
8965
8965
|
transition: "top 200ms, left 200ms, right 200ms, bottom 200ms"
|
|
8966
8966
|
});
|
|
8967
8967
|
}
|
|
8968
8968
|
const He = {
|
|
8969
|
-
left: `${
|
|
8969
|
+
left: `${q}px`,
|
|
8970
8970
|
position: U,
|
|
8971
|
-
top: `${
|
|
8971
|
+
top: `${ne}px`
|
|
8972
8972
|
}, Ae = ph({
|
|
8973
|
-
targetEl:
|
|
8973
|
+
targetEl: B,
|
|
8974
8974
|
rootStyle: He,
|
|
8975
|
-
shouldAutoCalculateZIndex:
|
|
8975
|
+
shouldAutoCalculateZIndex: Z,
|
|
8976
8976
|
getWindowReference: T
|
|
8977
8977
|
});
|
|
8978
|
-
|
|
8978
|
+
B.style.visibility === "hidden" && (Ae.visibility = "hidden", v = B.style.visibility), we && le.style.visibility !== "hidden" && (d = le.style.visibility, u = !0, Ae.visibility = "hidden"), !we && u && (Ae.visibility = d ?? "visible", u = !1), !we && B.style.visibility !== "hidden" && B.style.visibility !== "" && v === "hidden" && (Ae.visibility = "visible"), P === "center" && (Ae.transform = "translate(-50%, 50%)"), Ae.transition = "top 200ms, left 200ms, right 200ms, bottom 200ms", S(I, Ae);
|
|
8979
8979
|
}
|
|
8980
8980
|
};
|
|
8981
8981
|
p = () => {
|
|
8982
|
-
r = !1,
|
|
8982
|
+
r = !1, ee();
|
|
8983
8983
|
}, c = bh(p);
|
|
8984
|
-
const
|
|
8984
|
+
const G = () => Bt(g(O.selector), O.filters);
|
|
8985
8985
|
n = async () => {
|
|
8986
8986
|
i && i(), a && a();
|
|
8987
|
-
const { matchingElements:
|
|
8988
|
-
|
|
8989
|
-
getTarget:
|
|
8987
|
+
const { matchingElements: B, rootEl: le } = s(), Y = B.length === 1, he = B.length > 1, xe = B.length === 0, ke = () => {
|
|
8988
|
+
J || (a = y({
|
|
8989
|
+
getTarget: G,
|
|
8990
8990
|
onRemoved: () => {
|
|
8991
8991
|
r = !1, f = x(`Target got removed => ${O.selector}`), c.remove();
|
|
8992
8992
|
}
|
|
8993
8993
|
}));
|
|
8994
8994
|
};
|
|
8995
|
-
if (
|
|
8995
|
+
if (Y && !le) {
|
|
8996
8996
|
f = x(
|
|
8997
8997
|
`Could not find root element #${I} for overlay positioning.`
|
|
8998
8998
|
);
|
|
8999
8999
|
return;
|
|
9000
9000
|
}
|
|
9001
|
-
if (
|
|
9002
|
-
const U =
|
|
9001
|
+
if (Y) {
|
|
9002
|
+
const U = J ? g(J.config.target.selector) : null;
|
|
9003
9003
|
if (te) {
|
|
9004
|
-
const
|
|
9004
|
+
const q = U != null ? mr(
|
|
9005
9005
|
U[0]?.parentElement,
|
|
9006
9006
|
T
|
|
9007
9007
|
) : !1;
|
|
9008
9008
|
l = mr(
|
|
9009
|
-
|
|
9009
|
+
B[0]?.parentElement,
|
|
9010
9010
|
T
|
|
9011
|
-
) ||
|
|
9011
|
+
) || q ? "fixed" : "absolute", S(I, { position: l });
|
|
9012
9012
|
}
|
|
9013
|
-
await
|
|
9014
|
-
|
|
9015
|
-
|
|
9013
|
+
await ee(), ke(), c.setElements(
|
|
9014
|
+
B[0],
|
|
9015
|
+
le,
|
|
9016
9016
|
U ? U[0] : null
|
|
9017
9017
|
).start();
|
|
9018
9018
|
return;
|
|
9019
9019
|
}
|
|
9020
9020
|
he && x(
|
|
9021
|
-
`Found ${
|
|
9021
|
+
`Found ${B.length} elements for selector ${O.selector}.`
|
|
9022
9022
|
), xe && (f = x(
|
|
9023
9023
|
`Could not find element for selector ${O.selector}.`
|
|
9024
9024
|
));
|
|
@@ -9033,7 +9033,7 @@ const fh = (e, t) => {
|
|
|
9033
9033
|
({ step: y, getTraitConfig: g, onElementInserted: x, querySelector: m }) => {
|
|
9034
9034
|
r = !1, o = !1;
|
|
9035
9035
|
const { target: S } = g(), { traits: T } = y.getConfig(), E = () => Bt(m(S.selector), S.filters);
|
|
9036
|
-
|
|
9036
|
+
Ki(S.selector, T) || (i = x({
|
|
9037
9037
|
getTarget: E,
|
|
9038
9038
|
onInserted: () => {
|
|
9039
9039
|
o = !1, y.recover({ errorId: f });
|
|
@@ -9071,7 +9071,7 @@ const Eh = {
|
|
|
9071
9071
|
y: `${i * t / 100}px`
|
|
9072
9072
|
};
|
|
9073
9073
|
};
|
|
9074
|
-
function
|
|
9074
|
+
function Rh({ addHook: e }) {
|
|
9075
9075
|
let t, n, r, o = [], i = [], a = null, s = null;
|
|
9076
9076
|
const c = (v) => {
|
|
9077
9077
|
if (a) return;
|
|
@@ -9101,7 +9101,7 @@ function Ch({ addHook: e }) {
|
|
|
9101
9101
|
allowOverlap: T = !1,
|
|
9102
9102
|
xOffset: E = 0,
|
|
9103
9103
|
yOffset: N = 0,
|
|
9104
|
-
distanceUnit:
|
|
9104
|
+
distanceUnit: R = "px",
|
|
9105
9105
|
sticky: O = !1,
|
|
9106
9106
|
rootDisplay: I = "inline-block",
|
|
9107
9107
|
clearContainer: P = !1
|
|
@@ -9110,32 +9110,32 @@ function Ch({ addHook: e }) {
|
|
|
9110
9110
|
const D = Bt(
|
|
9111
9111
|
y(x.selector),
|
|
9112
9112
|
x.filters
|
|
9113
|
-
),
|
|
9114
|
-
const
|
|
9113
|
+
), M = D.length === 1, F = D.length > 1, Z = D.length === 0, J = (G) => {
|
|
9114
|
+
const B = g().document.createElement("div");
|
|
9115
9115
|
if (s && (s.remove(), s = null), d(), P && m.includes("inner"))
|
|
9116
9116
|
if (P === "hide") {
|
|
9117
9117
|
c(g);
|
|
9118
|
-
const { document:
|
|
9119
|
-
Array.from(
|
|
9120
|
-
if (
|
|
9121
|
-
|
|
9122
|
-
else if (
|
|
9123
|
-
const he =
|
|
9124
|
-
he.classList.add(rr),
|
|
9118
|
+
const { document: le } = g();
|
|
9119
|
+
Array.from(G.childNodes).forEach((Y) => {
|
|
9120
|
+
if (Y.nodeType === Node.ELEMENT_NODE)
|
|
9121
|
+
Y.classList.add(rr), o.push(Y);
|
|
9122
|
+
else if (Y.nodeType === Node.TEXT_NODE && Y.textContent.trim()) {
|
|
9123
|
+
const he = le.createElement("span");
|
|
9124
|
+
he.classList.add(rr), Y.replaceWith(he), he.append(Y), i.push(he);
|
|
9125
9125
|
}
|
|
9126
9126
|
});
|
|
9127
9127
|
} else
|
|
9128
|
-
for (;
|
|
9129
|
-
|
|
9130
|
-
if (
|
|
9128
|
+
for (; G.firstChild; )
|
|
9129
|
+
G.firstChild.remove();
|
|
9130
|
+
if (G.insertAdjacentElement(
|
|
9131
9131
|
Eh[m],
|
|
9132
|
-
|
|
9132
|
+
B
|
|
9133
9133
|
) == null) {
|
|
9134
9134
|
l(`can't insert inline container on the ${m}`);
|
|
9135
9135
|
return;
|
|
9136
9136
|
}
|
|
9137
|
-
s =
|
|
9138
|
-
}, te = () => Bt(y(x.selector), x.filters),
|
|
9137
|
+
s = B, v.setStepContainerTarget(B);
|
|
9138
|
+
}, te = () => Bt(y(x.selector), x.filters), ee = () => {
|
|
9139
9139
|
n = p({
|
|
9140
9140
|
getTarget: te,
|
|
9141
9141
|
onRemoved: () => {
|
|
@@ -9143,34 +9143,34 @@ function Ch({ addHook: e }) {
|
|
|
9143
9143
|
}
|
|
9144
9144
|
});
|
|
9145
9145
|
};
|
|
9146
|
-
if (
|
|
9147
|
-
|
|
9148
|
-
const
|
|
9146
|
+
if (M) {
|
|
9147
|
+
J(D[0]);
|
|
9148
|
+
const G = {
|
|
9149
9149
|
display: I,
|
|
9150
9150
|
verticalAlign: S
|
|
9151
|
-
}, { x:
|
|
9152
|
-
distanceUnit:
|
|
9151
|
+
}, { x: B, y: le } = kh({
|
|
9152
|
+
distanceUnit: R,
|
|
9153
9153
|
xOffset: E,
|
|
9154
9154
|
yOffset: N,
|
|
9155
9155
|
targetEl: D[0]
|
|
9156
9156
|
});
|
|
9157
9157
|
if (T)
|
|
9158
|
-
|
|
9158
|
+
G.position = "absolute", G.transform = `translate(${B}, ${le})`;
|
|
9159
9159
|
else {
|
|
9160
|
-
const
|
|
9161
|
-
|
|
9160
|
+
const Y = m.includes("left") ? "right" : "left";
|
|
9161
|
+
G[`margin-${Y}`] = B, G[`margin-${S}`] = le;
|
|
9162
9162
|
}
|
|
9163
9163
|
if (O) {
|
|
9164
|
-
|
|
9165
|
-
const
|
|
9166
|
-
|
|
9164
|
+
G.position = "sticky";
|
|
9165
|
+
const Y = m.includes("left") ? "top" : "bottom";
|
|
9166
|
+
G[Y] = 0, G.zIndex = Ru;
|
|
9167
9167
|
}
|
|
9168
|
-
f(
|
|
9168
|
+
f(G), ee();
|
|
9169
9169
|
return;
|
|
9170
9170
|
}
|
|
9171
9171
|
F && l(
|
|
9172
9172
|
`Found ${D.length} elements for selector ${x.selector}.`
|
|
9173
|
-
),
|
|
9173
|
+
), Z && (r = l(
|
|
9174
9174
|
`Could not find element for selector ${x.selector}.`
|
|
9175
9175
|
));
|
|
9176
9176
|
}
|
|
@@ -9189,16 +9189,16 @@ function Ch({ addHook: e }) {
|
|
|
9189
9189
|
t && t(), n && n(), s && (s.remove(), s = null), d();
|
|
9190
9190
|
});
|
|
9191
9191
|
}
|
|
9192
|
-
be(_h,
|
|
9192
|
+
be(_h, Rh);
|
|
9193
9193
|
const Oh = (e, t, n) => {
|
|
9194
9194
|
const { height: r, width: o, left: i, top: a } = e.getBoundingClientRect();
|
|
9195
9195
|
return Math.floor(
|
|
9196
9196
|
Math.hypot(t - (i + o / 2), n - (a + r / 2)) / 2
|
|
9197
9197
|
);
|
|
9198
|
-
},
|
|
9198
|
+
}, Ch = (e, t) => {
|
|
9199
9199
|
const { height: n, width: r } = e.getBoundingClientRect(), o = Math.floor(Math.hypot(n, r) / 4);
|
|
9200
9200
|
return Math.max(t, 0) + o;
|
|
9201
|
-
}, Ah = (e) => e.key === "Escape", Nh = (e, t) => ![...e.composedPath()].filter((n) => n.nodeType === Node.ELEMENT_NODE).some((n) => n?.contains?.(t) ?? !1),
|
|
9201
|
+
}, Ah = (e) => e.key === "Escape", Nh = (e, t) => ![...e.composedPath()].filter((n) => n.nodeType === Node.ELEMENT_NODE).some((n) => n?.contains?.(t) ?? !1), Gn = (e, t) => ({
|
|
9202
9202
|
remove: () => {
|
|
9203
9203
|
e.removeEventListener("keydown", t), e.removeEventListener("click", t, !0);
|
|
9204
9204
|
},
|
|
@@ -9207,7 +9207,7 @@ const Oh = (e, t, n) => {
|
|
|
9207
9207
|
}
|
|
9208
9208
|
}), Fr = (e, t, n) => t.length === 0 ? (n("Element not found"), !1) : t.length > 1 ? (n(`More than one element found with id: ${e}`), !1) : !0, Ih = "@appcues/toggle.style", Ns = ({ targetId: e, styles: t = {} }, { updateStyle: n }) => {
|
|
9209
9209
|
n(e, t);
|
|
9210
|
-
},
|
|
9210
|
+
}, Zi = {
|
|
9211
9211
|
[Ih]: Ns
|
|
9212
9212
|
}, jh = ({ addHook: e, registerAction: t }, {
|
|
9213
9213
|
startHidden: n = !0,
|
|
@@ -9232,7 +9232,7 @@ const Oh = (e, t, n) => {
|
|
|
9232
9232
|
i && f(), l?.remove(), l = null;
|
|
9233
9233
|
});
|
|
9234
9234
|
const y = ({ on: x } = {}, m) => {
|
|
9235
|
-
const { reportError: S, step: T, updateStyle: E, getWindowReference: N } = m,
|
|
9235
|
+
const { reportError: S, step: T, updateStyle: E, getWindowReference: N } = m, R = N().document, O = T.querySelector(`#${r}`);
|
|
9236
9236
|
if (!Fr(r, O, S)) return;
|
|
9237
9237
|
i && f();
|
|
9238
9238
|
const I = {};
|
|
@@ -9244,17 +9244,17 @@ const Oh = (e, t, n) => {
|
|
|
9244
9244
|
visibility: "hidden",
|
|
9245
9245
|
"pointer-events": "none"
|
|
9246
9246
|
});
|
|
9247
|
-
}, o.duration * 1e3), a && v && (xr(
|
|
9247
|
+
}, o.duration * 1e3), a && v && (xr(R, "mousemove", s), p.forEach((P) => {
|
|
9248
9248
|
P.contentDocument?.body && xr(
|
|
9249
9249
|
P.contentDocument.body,
|
|
9250
9250
|
"mousemove",
|
|
9251
9251
|
s
|
|
9252
9252
|
);
|
|
9253
9253
|
}), v = !1), x?.close?.forEach(
|
|
9254
|
-
(P) =>
|
|
9254
|
+
(P) => Zi[P.type](P.config, m)
|
|
9255
9255
|
);
|
|
9256
9256
|
}, g = ({ on: x } = {}, m) => {
|
|
9257
|
-
const { reportError: S, step: T, updateStyle: E, getWindowReference: N } = m,
|
|
9257
|
+
const { reportError: S, step: T, updateStyle: E, getWindowReference: N } = m, R = N().document, O = T.querySelector(`#${r}`);
|
|
9258
9258
|
if (!Fr(r, O, S)) return;
|
|
9259
9259
|
const I = {};
|
|
9260
9260
|
if (o && (I.transition = `opacity ${o.duration}s ${o.easing}`), E(r, {
|
|
@@ -9263,36 +9263,36 @@ const Oh = (e, t, n) => {
|
|
|
9263
9263
|
opacity: "1",
|
|
9264
9264
|
"pointer-events": "auto"
|
|
9265
9265
|
}), x?.open?.forEach(
|
|
9266
|
-
(P) =>
|
|
9266
|
+
(P) => Zi[P.type](P.config, m)
|
|
9267
9267
|
), i && u.length === 0) {
|
|
9268
9268
|
const P = T.querySelector(":first-child")[0];
|
|
9269
|
-
d = (
|
|
9270
|
-
(Ah(
|
|
9269
|
+
d = (M) => {
|
|
9270
|
+
(Ah(M) || Nh(M, O[0])) && y({ on: x }, m);
|
|
9271
9271
|
};
|
|
9272
|
-
const D = p.map((
|
|
9273
|
-
|
|
9272
|
+
const D = p.map((M) => M.contentDocument?.body ? Gn(
|
|
9273
|
+
M.contentDocument.body,
|
|
9274
9274
|
d
|
|
9275
9275
|
) : null).filter(Boolean);
|
|
9276
9276
|
u.push(
|
|
9277
|
-
|
|
9278
|
-
|
|
9277
|
+
Gn(R, d),
|
|
9278
|
+
Gn(P, d),
|
|
9279
9279
|
...D
|
|
9280
|
-
), u.forEach((
|
|
9280
|
+
), u.forEach((M) => M.start());
|
|
9281
9281
|
}
|
|
9282
9282
|
if (l || (c = (P) => {
|
|
9283
9283
|
if (P.type === "keydown" && !["Enter", " "].includes(P.key))
|
|
9284
9284
|
return;
|
|
9285
9285
|
const D = [...P.composedPath()];
|
|
9286
9286
|
["a", "button"].includes(D[0].tagName.toLowerCase()) && y({ on: x }, m);
|
|
9287
|
-
}, l =
|
|
9288
|
-
const P =
|
|
9289
|
-
s =
|
|
9287
|
+
}, l = Gn(O[0], c), l.start()), a && !v) {
|
|
9288
|
+
const P = Ch(O[0], a);
|
|
9289
|
+
s = Rs((D) => {
|
|
9290
9290
|
Oh(
|
|
9291
9291
|
O[0],
|
|
9292
9292
|
D.clientX,
|
|
9293
9293
|
D.clientY
|
|
9294
9294
|
) > P && y({ on: x }, { reportError: S, step: T, updateStyle: E, getWindowReference: N });
|
|
9295
|
-
}, 60), br(
|
|
9295
|
+
}, 60), br(R, "mousemove", s), p.forEach((D) => {
|
|
9296
9296
|
D.contentDocument?.body && br(
|
|
9297
9297
|
D.contentDocument.body,
|
|
9298
9298
|
"mousemove",
|
|
@@ -9407,7 +9407,7 @@ const Is = {
|
|
|
9407
9407
|
}, Br = /* @__PURE__ */ new WeakMap(), Bh = (e) => {
|
|
9408
9408
|
const t = Is[e?.effect] || e?.keyframes, n = Array.isArray(t) ? t[t.length - 1] : null;
|
|
9409
9409
|
return n ? Number(n.opacity) === 0 || n.visibility === "hidden" || n.display === "none" : !1;
|
|
9410
|
-
},
|
|
9410
|
+
}, Jn = (e, t) => new Promise((n) => {
|
|
9411
9411
|
const {
|
|
9412
9412
|
keyframes: r,
|
|
9413
9413
|
duration: o = Wh,
|
|
@@ -9435,12 +9435,12 @@ const Is = {
|
|
|
9435
9435
|
if (!o) return;
|
|
9436
9436
|
const i = r(o.selector);
|
|
9437
9437
|
if (i.length !== 0)
|
|
9438
|
-
return
|
|
9438
|
+
return Jn(i[0], n);
|
|
9439
9439
|
}) : e("step.postrender", ({ querySelector: r }) => {
|
|
9440
9440
|
const { target: o } = n;
|
|
9441
9441
|
if (!o) return;
|
|
9442
9442
|
const i = r(o.selector);
|
|
9443
|
-
i.length !== 0 &&
|
|
9443
|
+
i.length !== 0 && Jn(i[0], n);
|
|
9444
9444
|
}), t(
|
|
9445
9445
|
"toggle",
|
|
9446
9446
|
({ toggleGroupId: r, target: o, animations: i, autoFocus: a = !0 }, { querySelector: s, getWindowReference: c }) => {
|
|
@@ -9450,7 +9450,7 @@ const Is = {
|
|
|
9450
9450
|
if (!u) return;
|
|
9451
9451
|
const l = Bh(u);
|
|
9452
9452
|
l || (v.inert = !1);
|
|
9453
|
-
const p = a ? Fh(c?.()?.document) : null, f =
|
|
9453
|
+
const p = a ? Fh(c?.()?.document) : null, f = Jn(v, u);
|
|
9454
9454
|
u.id && v.setAttribute(r, u.id);
|
|
9455
9455
|
const y = () => u.id != null && v.getAttribute(r) !== u.id;
|
|
9456
9456
|
if (!a) {
|
|
@@ -9480,7 +9480,7 @@ const Is = {
|
|
|
9480
9480
|
const l = i(c.selector);
|
|
9481
9481
|
if (l.length === 0) return;
|
|
9482
9482
|
const p = l[0], f = p.getAttribute(s);
|
|
9483
|
-
(!f || f === d.id) && !v || (await
|
|
9483
|
+
(!f || f === d.id) && !v || (await Jn(p, d ?? r), u.forEach((y) => {
|
|
9484
9484
|
a(y.type)(y?.config ?? {}, o);
|
|
9485
9485
|
}), v || p.setAttribute(s, d.id));
|
|
9486
9486
|
});
|
|
@@ -9490,7 +9490,7 @@ const js = {
|
|
|
9490
9490
|
pixels: "px",
|
|
9491
9491
|
percentage: "%"
|
|
9492
9492
|
};
|
|
9493
|
-
function
|
|
9493
|
+
function Gh(e, t, n, r) {
|
|
9494
9494
|
const o = js[n] || "px";
|
|
9495
9495
|
switch (e) {
|
|
9496
9496
|
case "left":
|
|
@@ -9519,7 +9519,7 @@ function Kh(e, t, n, r) {
|
|
|
9519
9519
|
};
|
|
9520
9520
|
}
|
|
9521
9521
|
}
|
|
9522
|
-
function
|
|
9522
|
+
function Jh(e, t, n, r) {
|
|
9523
9523
|
const o = js[n] || "px";
|
|
9524
9524
|
switch (e) {
|
|
9525
9525
|
case "top":
|
|
@@ -9548,7 +9548,7 @@ function Gh(e, t, n, r) {
|
|
|
9548
9548
|
};
|
|
9549
9549
|
}
|
|
9550
9550
|
}
|
|
9551
|
-
const
|
|
9551
|
+
const Kh = "@appcues/floating", Yh = ({ addHook: e }) => {
|
|
9552
9552
|
e("step.begin", ({ getTraitConfig: t, updateStyle: n, updateRootStyle: r }) => {
|
|
9553
9553
|
const {
|
|
9554
9554
|
target: o,
|
|
@@ -9561,13 +9561,13 @@ const Zh = "@appcues/floating", Jh = ({ addHook: e }) => {
|
|
|
9561
9561
|
unsetOppositeDirection: u = !1,
|
|
9562
9562
|
applyToRoot: l = !1
|
|
9563
9563
|
} = t(), p = [
|
|
9564
|
-
|
|
9564
|
+
Gh(
|
|
9565
9565
|
c,
|
|
9566
9566
|
a,
|
|
9567
9567
|
v,
|
|
9568
9568
|
u
|
|
9569
9569
|
),
|
|
9570
|
-
|
|
9570
|
+
Jh(
|
|
9571
9571
|
d,
|
|
9572
9572
|
s,
|
|
9573
9573
|
v,
|
|
@@ -9587,14 +9587,14 @@ const Zh = "@appcues/floating", Jh = ({ addHook: e }) => {
|
|
|
9587
9587
|
n(o.selector, f);
|
|
9588
9588
|
});
|
|
9589
9589
|
};
|
|
9590
|
-
be(
|
|
9590
|
+
be(Kh, Yh);
|
|
9591
9591
|
const Qh = "@appcues/dismissible";
|
|
9592
|
-
function
|
|
9592
|
+
function Xi(e) {
|
|
9593
9593
|
return `_experience_dismissed_${e}`;
|
|
9594
9594
|
}
|
|
9595
|
-
const
|
|
9595
|
+
const Zh = ({ addHook: e, registerAction: t }, { strategy: n = "permanent" }) => {
|
|
9596
9596
|
function r(o, i) {
|
|
9597
|
-
return n === "session" ? i().sessionStorage.getItem(
|
|
9597
|
+
return n === "session" ? i().sessionStorage.getItem(Xi(o)) === "1" : !1;
|
|
9598
9598
|
}
|
|
9599
9599
|
e(
|
|
9600
9600
|
"experience.begin",
|
|
@@ -9604,13 +9604,13 @@ const Xh = ({ addHook: e, registerAction: t }, { strategy: n = "permanent" }) =>
|
|
|
9604
9604
|
), t(
|
|
9605
9605
|
"dismiss",
|
|
9606
9606
|
(o, { stopExperience: i, updateUserProfile: a, getExperienceId: s, getWindowReference: c }) => {
|
|
9607
|
-
const d =
|
|
9607
|
+
const d = Xi(s());
|
|
9608
9608
|
n === "session" ? c().sessionStorage.setItem(d, "1") : n === "permanent" && a({ [d]: "permanently_dismissed" }), i();
|
|
9609
9609
|
}
|
|
9610
9610
|
);
|
|
9611
9611
|
};
|
|
9612
|
-
be(Qh,
|
|
9613
|
-
const
|
|
9612
|
+
be(Qh, Zh);
|
|
9613
|
+
const Xh = "@appcues/experienceStyle", ev = ({ addHook: e }) => {
|
|
9614
9614
|
e("step.begin", ({ updateRootStyle: t, getTraitConfig: n }) => {
|
|
9615
9615
|
const r = n();
|
|
9616
9616
|
t(r, { forceUpdate: !0 });
|
|
@@ -9622,7 +9622,7 @@ const Yh = "@appcues/experienceStyle", ev = ({ addHook: e }) => {
|
|
|
9622
9622
|
t(r, { forceUpdate: !0 });
|
|
9623
9623
|
});
|
|
9624
9624
|
};
|
|
9625
|
-
be(
|
|
9625
|
+
be(Xh, ev);
|
|
9626
9626
|
const tv = "@appcues/rootStyle", ea = ({ getTraitConfig: e, updateRootStyle: t }) => {
|
|
9627
9627
|
const { forceUpdate: n = !1, ...r } = e();
|
|
9628
9628
|
t(r, { forceUpdate: n });
|
|
@@ -9664,7 +9664,7 @@ const dv = "@appcues/sdk-middleware-events", fv = ({ addHook: e }, { onLaunchpad
|
|
|
9664
9664
|
});
|
|
9665
9665
|
};
|
|
9666
9666
|
be(dv, fv);
|
|
9667
|
-
const pv = "@appcues/knowledge-base-integration",
|
|
9667
|
+
const pv = "@appcues/knowledge-base-integration", Kn = (e, { querySelector: t, reportError: n }) => {
|
|
9668
9668
|
const r = t(e), o = r.length > 1, i = r.length === 0;
|
|
9669
9669
|
return o && n(
|
|
9670
9670
|
"The target element is duplicated, please provide a more specific selector"
|
|
@@ -9690,7 +9690,7 @@ const pv = "@appcues/knowledge-base-integration", Zn = (e, { querySelector: t, r
|
|
|
9690
9690
|
o?.removeEventListener("onSearch", v), o?.removeEventListener("onCancel", d);
|
|
9691
9691
|
}), t("bindListeners", (u, l) => {
|
|
9692
9692
|
const { navigation: p } = n;
|
|
9693
|
-
(!i || !o) && (i =
|
|
9693
|
+
(!i || !o) && (i = Kn(p.selector, l), o = Kn("appcues-search-header", l), a = Kn("appcues-search-results", l), s = Kn("#launchpad-container", l), o?.addEventListener("onSearch", v), o?.addEventListener("onCancel", d));
|
|
9694
9694
|
});
|
|
9695
9695
|
};
|
|
9696
9696
|
be(pv, hv);
|
|
@@ -9797,14 +9797,14 @@ const Po = "appcues-cutout-backdrop", na = "appcues-custom-backdrop", xv = "hard
|
|
|
9797
9797
|
r.id = Po, Tv(r), r.style.zIndex = n;
|
|
9798
9798
|
const o = e.createElement("div");
|
|
9799
9799
|
return o.className = fo, Ps(o, t), r.append(o), r;
|
|
9800
|
-
},
|
|
9800
|
+
}, Rv = ({ container: e, rect: t }) => {
|
|
9801
9801
|
const n = e.firstElementChild;
|
|
9802
9802
|
n && Ps(n, t);
|
|
9803
9803
|
}, Ov = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9804
9804
|
__proto__: null,
|
|
9805
9805
|
build: kv,
|
|
9806
|
-
update:
|
|
9807
|
-
}, Symbol.toStringTag, { value: "Module" })), Ds = 0.5,
|
|
9806
|
+
update: Rv
|
|
9807
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = 0.5, Cv = (e) => {
|
|
9808
9808
|
Object.assign(e.style, {
|
|
9809
9809
|
position: "fixed",
|
|
9810
9810
|
top: "0",
|
|
@@ -9831,7 +9831,7 @@ const Po = "appcues-cutout-backdrop", na = "appcues-custom-backdrop", xv = "hard
|
|
|
9831
9831
|
borderRadius: "0px",
|
|
9832
9832
|
pointerEvents: "none"
|
|
9833
9833
|
});
|
|
9834
|
-
},
|
|
9834
|
+
}, Yn = (e, t, n, r, o) => {
|
|
9835
9835
|
Object.assign(e.style, {
|
|
9836
9836
|
position: "absolute",
|
|
9837
9837
|
top: `${t}px`,
|
|
@@ -9843,10 +9843,10 @@ const Po = "appcues-cutout-backdrop", na = "appcues-custom-backdrop", xv = "hard
|
|
|
9843
9843
|
});
|
|
9844
9844
|
}, Ls = ([e, t, n, r], o, i) => {
|
|
9845
9845
|
const { top: a, left: s, right: c, bottom: d, width: v } = o, u = i.innerWidth, l = i.innerHeight;
|
|
9846
|
-
|
|
9846
|
+
Yn(e, 0, s, v, Math.max(0, a)), Yn(t, 0, c, Math.max(0, u - c), l), Yn(n, d, s, v, Math.max(0, l - d)), Yn(r, 0, 0, Math.max(0, s), l);
|
|
9847
9847
|
}, Av = ({ document: e, win: t, rect: n, zIndex: r }) => {
|
|
9848
9848
|
const o = e.createElement("div");
|
|
9849
|
-
o.id = Po,
|
|
9849
|
+
o.id = Po, Cv(o), o.style.zIndex = r;
|
|
9850
9850
|
const i = e.createElement("div"), a = e.createElement("div");
|
|
9851
9851
|
a.className = fo, Hs(i, a, n), i.append(a), o.append(i);
|
|
9852
9852
|
const s = ["top", "right", "bottom", "left"].map((c) => {
|
|
@@ -9930,46 +9930,46 @@ const Po = "appcues-cutout-backdrop", na = "appcues-custom-backdrop", xv = "hard
|
|
|
9930
9930
|
let l, p, f, y, g, x;
|
|
9931
9931
|
const m = (T, E, N) => {
|
|
9932
9932
|
u[T]?.remove();
|
|
9933
|
-
const
|
|
9934
|
-
|
|
9933
|
+
const R = N.document.createElement("style");
|
|
9934
|
+
R.textContent = E, l.prepend(R), u[T] = R;
|
|
9935
9935
|
}, S = () => {
|
|
9936
9936
|
y && g && (y.removeEventListener("scroll", g, !0), y.removeEventListener("resize", g));
|
|
9937
9937
|
};
|
|
9938
9938
|
if (n === !0 && !o && !i) {
|
|
9939
9939
|
const T = ({ getTraitConfig: E, updateRootStyle: N }) => {
|
|
9940
|
-
const { variables:
|
|
9941
|
-
N(Ev(
|
|
9940
|
+
const { variables: R } = E();
|
|
9941
|
+
N(Ev(R || {}), {
|
|
9942
9942
|
forceUpdate: !0
|
|
9943
9943
|
});
|
|
9944
9944
|
};
|
|
9945
9945
|
e("step.begin", T), e("step.container_change", T);
|
|
9946
9946
|
}
|
|
9947
9947
|
e("step.postrender", ({ step: T, getWindowReference: E, getTraitConfig: N }) => {
|
|
9948
|
-
const
|
|
9948
|
+
const R = N(), O = R.backdrop ?? n, I = R.customBackdrop ?? o, P = R.target ?? i, D = R.autoFocus ?? a, M = R.variables ?? r ?? {}, F = M.dialogZIndex ?? s, Z = M.backdropZIndex ?? c, J = M.backdropBlur ?? d, te = M.backdropColor ?? v;
|
|
9949
9949
|
[l] = T.querySelector("dialog") ?? [];
|
|
9950
|
-
const
|
|
9950
|
+
const ee = E();
|
|
9951
9951
|
if (l) {
|
|
9952
|
-
|
|
9952
|
+
O === !0 && I ? (p?.remove(), p = _v({
|
|
9953
9953
|
getWindowReference: E,
|
|
9954
|
-
backdropZIndex:
|
|
9955
|
-
backdropBlur:
|
|
9956
|
-
backdropColor:
|
|
9957
|
-
}), p &&
|
|
9958
|
-
const
|
|
9959
|
-
l[
|
|
9960
|
-
}
|
|
9961
|
-
S(), x?.(), f?.remove(), f = void 0,
|
|
9954
|
+
backdropZIndex: Z,
|
|
9955
|
+
backdropBlur: J,
|
|
9956
|
+
backdropColor: te
|
|
9957
|
+
}), p && ee.document.body.append(p)) : (p?.remove(), p = void 0), O === !0 && !I && !P ? m("backdrop", Sv, ee) : (u.backdrop?.remove(), u.backdrop = null), m("dialog", wv, ee), l.style.zIndex = F, l.removeAttribute("autofocus");
|
|
9958
|
+
const G = O === !0 && !I && !P ? "showModal" : "show", B = P ? { x: ee.scrollX, y: ee.scrollY } : null, le = l.open;
|
|
9959
|
+
l[G](), B && (ee.scrollX !== B.x || ee.scrollY !== B.y) && ee.scrollTo(B.x, B.y), G === "show" && D && !le && l.focus({ preventScroll: !0 });
|
|
9960
|
+
}
|
|
9961
|
+
S(), x?.(), f?.remove(), f = void 0, P && jv(O) && (y = E(), f = Pv({
|
|
9962
9962
|
getWindowReference: E,
|
|
9963
|
-
target:
|
|
9963
|
+
target: P,
|
|
9964
9964
|
backdropType: O,
|
|
9965
|
-
zIndex: (
|
|
9965
|
+
zIndex: (F ?? 2) - 1
|
|
9966
9966
|
}), f && (y.document.body.append(f), g = () => Dv({
|
|
9967
9967
|
container: f,
|
|
9968
9968
|
getWindowReference: E,
|
|
9969
|
-
target:
|
|
9969
|
+
target: P,
|
|
9970
9970
|
backdropType: O
|
|
9971
9971
|
}), y.addEventListener("scroll", g, !0), y.addEventListener("resize", g), O === xv && (x = Mv(y, {
|
|
9972
|
-
targetSelector:
|
|
9972
|
+
targetSelector: P
|
|
9973
9973
|
}))));
|
|
9974
9974
|
}), e("step.end", () => {
|
|
9975
9975
|
l?.close(), u.backdrop?.remove(), u.dialog?.remove(), p?.remove(), f?.remove(), S(), x?.();
|
|
@@ -10007,7 +10007,7 @@ const Fv = "@appcues/navigation", Bv = ({ addHook: e }, t) => {
|
|
|
10007
10007
|
});
|
|
10008
10008
|
};
|
|
10009
10009
|
be(Fv, Bv);
|
|
10010
|
-
const qv = "@appcues/scroll-into-view",
|
|
10010
|
+
const qv = "@appcues/scroll-into-view", Gv = ({ addHook: e }) => {
|
|
10011
10011
|
let t = !1;
|
|
10012
10012
|
e(
|
|
10013
10013
|
"step.postrender",
|
|
@@ -10033,8 +10033,8 @@ const qv = "@appcues/scroll-into-view", Kv = ({ addHook: e }) => {
|
|
|
10033
10033
|
t = !1;
|
|
10034
10034
|
});
|
|
10035
10035
|
};
|
|
10036
|
-
be(qv,
|
|
10037
|
-
const
|
|
10036
|
+
be(qv, Gv);
|
|
10037
|
+
const Jv = (e) => class extends e.HTMLElement {
|
|
10038
10038
|
constructor() {
|
|
10039
10039
|
super();
|
|
10040
10040
|
const t = this.ownerDocument || e.document;
|
|
@@ -10058,17 +10058,17 @@ const Gv = (e) => class extends e.HTMLElement {
|
|
|
10058
10058
|
async connectedCallback() {
|
|
10059
10059
|
this.shadowRoot.append(this.hideContentStyles), this.shadowRoot.append(...this.childNodes), this.getAttribute("themeId") && await Ba(this), this.shadowRoot.prepend(this.webComponentStyles), this.hideContentStyles.remove();
|
|
10060
10060
|
}
|
|
10061
|
-
}, qr = /* @__PURE__ */ new WeakMap(),
|
|
10061
|
+
}, qr = /* @__PURE__ */ new WeakMap(), Kv = (e = () => window) => {
|
|
10062
10062
|
const t = e();
|
|
10063
10063
|
if (qr.has(t))
|
|
10064
10064
|
return qr.get(t);
|
|
10065
10065
|
if (!t.customElements.get(_n)) {
|
|
10066
|
-
const r =
|
|
10066
|
+
const r = Jv(t);
|
|
10067
10067
|
t.customElements.define(_n, r);
|
|
10068
10068
|
}
|
|
10069
10069
|
const n = t.customElements.whenDefined(_n);
|
|
10070
10070
|
return qr.set(t, n), n;
|
|
10071
|
-
},
|
|
10071
|
+
}, Yv = !1;
|
|
10072
10072
|
function Qv({
|
|
10073
10073
|
runningExperiences: e = /* @__PURE__ */ new Map(),
|
|
10074
10074
|
sendEvent: t = () => {
|
|
@@ -10103,18 +10103,18 @@ function Qv({
|
|
|
10103
10103
|
throw new Error(`can't find external dependency called ${g}`);
|
|
10104
10104
|
} : l, f = ({ reason: g = bt.NAVIGATION } = {}) => {
|
|
10105
10105
|
e.forEach((x) => {
|
|
10106
|
-
x.experienceService.send({ type:
|
|
10106
|
+
x.experienceService.send({ type: Rt, reason: g }), x.experienceService.subscribe((m) => {
|
|
10107
10107
|
m.matches("end-final") && x.experienceService.stop();
|
|
10108
10108
|
});
|
|
10109
10109
|
}), e.clear();
|
|
10110
10110
|
}, y = (g, { reason: x = bt.NAVIGATION } = {}) => {
|
|
10111
|
-
e.has(g) && (e.get(g).experienceService.send({ type:
|
|
10111
|
+
e.has(g) && (e.get(g).experienceService.send({ type: Rt, reason: x }), e.delete(g));
|
|
10112
10112
|
};
|
|
10113
10113
|
return {
|
|
10114
10114
|
registerAction: st,
|
|
10115
10115
|
registerTrait: be,
|
|
10116
10116
|
show: async (g) => {
|
|
10117
|
-
|
|
10117
|
+
Kv(d), await d().customElements.whenDefined(_n);
|
|
10118
10118
|
const x = er(
|
|
10119
10119
|
er(
|
|
10120
10120
|
g,
|
|
@@ -10129,14 +10129,14 @@ function Qv({
|
|
|
10129
10129
|
(T) => er(
|
|
10130
10130
|
T,
|
|
10131
10131
|
"traits",
|
|
10132
|
-
(E) => (E ?? []).map((N,
|
|
10132
|
+
(E) => (E ?? []).map((N, R) => ({
|
|
10133
10133
|
...N,
|
|
10134
|
-
id: N.id || `${N.type}:${
|
|
10134
|
+
id: N.id || `${N.type}:${R}`
|
|
10135
10135
|
}))
|
|
10136
10136
|
)
|
|
10137
10137
|
)
|
|
10138
10138
|
), m = e.get(g.id)?.experienceService ?? Ea(Of(x, p), {
|
|
10139
|
-
devTools:
|
|
10139
|
+
devTools: Yv
|
|
10140
10140
|
}).start();
|
|
10141
10141
|
m.send({
|
|
10142
10142
|
type: oi,
|