react-shepherd 5.0.2 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +941 -855
- package/dist/index.umd.cjs +10 -10
- package/package.json +5 -5
- package/src/index.tsx +2 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Kn, { createContext as qr, useContext as Kr } from "react";
|
|
2
|
+
var Pt = { exports: {} }, Ve = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,12 +9,12 @@ var Rt = { exports: {} }, Ne = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
var e =
|
|
12
|
+
var yn;
|
|
13
|
+
function zr() {
|
|
14
|
+
if (yn)
|
|
15
|
+
return Ve;
|
|
16
|
+
yn = 1;
|
|
17
|
+
var e = Kn, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
18
|
function i(c, l, u) {
|
|
19
19
|
var f, h = {}, d = null, m = null;
|
|
20
20
|
u !== void 0 && (d = "" + u), l.key !== void 0 && (d = "" + l.key), l.ref !== void 0 && (m = l.ref);
|
|
@@ -25,9 +25,9 @@ function Kr() {
|
|
|
25
25
|
h[f] === void 0 && (h[f] = l[f]);
|
|
26
26
|
return { $$typeof: t, type: c, key: d, ref: m, props: h, _owner: o.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return Ve.Fragment = n, Ve.jsx = i, Ve.jsxs = i, Ve;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Ue = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -37,10 +37,10 @@ var Ve = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var e =
|
|
40
|
+
var vn;
|
|
41
|
+
function Jr() {
|
|
42
|
+
return vn || (vn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var e = Kn, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, E = "@@iterator";
|
|
44
44
|
function S(a) {
|
|
45
45
|
if (a === null || typeof a != "object")
|
|
46
46
|
return null;
|
|
@@ -52,10 +52,10 @@ function zr() {
|
|
|
52
52
|
{
|
|
53
53
|
for (var p = arguments.length, b = new Array(p > 1 ? p - 1 : 0), x = 1; x < p; x++)
|
|
54
54
|
b[x - 1] = arguments[x];
|
|
55
|
-
|
|
55
|
+
T("error", a, b);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function T(a, p, b) {
|
|
59
59
|
{
|
|
60
60
|
var x = w.ReactDebugCurrentFrame, P = x.getStackAddendum();
|
|
61
61
|
P !== "" && (p += "%s", b = b.concat([P]));
|
|
@@ -65,10 +65,10 @@ function zr() {
|
|
|
65
65
|
k.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, k);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var v = !1, g = !1,
|
|
68
|
+
var v = !1, g = !1, C = !1, N = !1, ee = !1, $;
|
|
69
69
|
$ = Symbol.for("react.module.reference");
|
|
70
70
|
function H(a) {
|
|
71
|
-
return !!(typeof a == "string" || typeof a == "function" || a === r || a === s ||
|
|
71
|
+
return !!(typeof a == "string" || typeof a == "function" || a === r || a === s || ee || a === o || a === u || a === f || N || a === m || v || g || C || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === h || a.$$typeof === i || a.$$typeof === c || a.$$typeof === l || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -129,18 +129,18 @@ function zr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var M = Object.assign, G = 0, X, Y,
|
|
133
|
-
function
|
|
132
|
+
var M = Object.assign, G = 0, X, Y, ae, he, Ze, en, tn;
|
|
133
|
+
function nn() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
nn.__reactDisabledLog = !0;
|
|
136
|
+
function _r() {
|
|
137
137
|
{
|
|
138
138
|
if (G === 0) {
|
|
139
|
-
X = console.log, Y = console.info,
|
|
139
|
+
X = console.log, Y = console.info, ae = console.warn, he = console.error, Ze = console.group, en = console.groupCollapsed, tn = console.groupEnd;
|
|
140
140
|
var a = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: nn,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -156,7 +156,7 @@ function zr() {
|
|
|
156
156
|
G++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Er() {
|
|
160
160
|
{
|
|
161
161
|
if (G--, G === 0) {
|
|
162
162
|
var a = {
|
|
@@ -172,19 +172,19 @@ function zr() {
|
|
|
172
172
|
value: Y
|
|
173
173
|
}),
|
|
174
174
|
warn: M({}, a, {
|
|
175
|
-
value:
|
|
175
|
+
value: ae
|
|
176
176
|
}),
|
|
177
177
|
error: M({}, a, {
|
|
178
178
|
value: he
|
|
179
179
|
}),
|
|
180
180
|
group: M({}, a, {
|
|
181
|
-
value:
|
|
181
|
+
value: Ze
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: M({}, a, {
|
|
184
|
-
value:
|
|
184
|
+
value: en
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: M({}, a, {
|
|
187
|
-
value:
|
|
187
|
+
value: tn
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ function zr() {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var mt = w.ReactCurrentDispatcher, gt;
|
|
195
|
-
function
|
|
195
|
+
function Qe(a, p, b) {
|
|
196
196
|
{
|
|
197
197
|
if (gt === void 0)
|
|
198
198
|
try {
|
|
@@ -205,16 +205,16 @@ function zr() {
|
|
|
205
205
|
` + gt + a;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var bt = !1,
|
|
208
|
+
var bt = !1, et;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var xr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
et = new xr();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function rn(a, p) {
|
|
214
214
|
if (!a || bt)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var b =
|
|
217
|
+
var b = et.get(a);
|
|
218
218
|
if (b !== void 0)
|
|
219
219
|
return b;
|
|
220
220
|
}
|
|
@@ -223,7 +223,7 @@ function zr() {
|
|
|
223
223
|
var P = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var k;
|
|
226
|
-
k = mt.current, mt.current = null,
|
|
226
|
+
k = mt.current, mt.current = null, _r();
|
|
227
227
|
try {
|
|
228
228
|
if (p) {
|
|
229
229
|
var R = function() {
|
|
@@ -236,98 +236,98 @@ function zr() {
|
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(R, []);
|
|
239
|
-
} catch (
|
|
240
|
-
x =
|
|
239
|
+
} catch (ce) {
|
|
240
|
+
x = ce;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(a, [], R);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
R.call();
|
|
246
|
-
} catch (
|
|
247
|
-
x =
|
|
246
|
+
} catch (ce) {
|
|
247
|
+
x = ce;
|
|
248
248
|
}
|
|
249
249
|
a.call(R.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
x =
|
|
254
|
+
} catch (ce) {
|
|
255
|
+
x = ce;
|
|
256
256
|
}
|
|
257
257
|
a();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var O =
|
|
259
|
+
} catch (ce) {
|
|
260
|
+
if (ce && x && typeof ce.stack == "string") {
|
|
261
|
+
for (var O = ce.stack.split(`
|
|
262
262
|
`), U = x.stack.split(`
|
|
263
|
-
`), D = O.length - 1,
|
|
264
|
-
|
|
265
|
-
for (; D >= 1 &&
|
|
266
|
-
if (O[D] !== U[
|
|
267
|
-
if (D !== 1 ||
|
|
263
|
+
`), D = O.length - 1, B = U.length - 1; D >= 1 && B >= 0 && O[D] !== U[B]; )
|
|
264
|
+
B--;
|
|
265
|
+
for (; D >= 1 && B >= 0; D--, B--)
|
|
266
|
+
if (O[D] !== U[B]) {
|
|
267
|
+
if (D !== 1 || B !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (D--,
|
|
269
|
+
if (D--, B--, B < 0 || O[D] !== U[B]) {
|
|
270
270
|
var Z = `
|
|
271
271
|
` + O[D].replace(" at new ", " at ");
|
|
272
|
-
return a.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", a.displayName)), typeof a == "function" &&
|
|
272
|
+
return a.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", a.displayName)), typeof a == "function" && et.set(a, Z), Z;
|
|
273
273
|
}
|
|
274
|
-
while (D >= 1 &&
|
|
274
|
+
while (D >= 1 && B >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
bt = !1, mt.current = k,
|
|
279
|
+
bt = !1, mt.current = k, Er(), Error.prepareStackTrace = P;
|
|
280
280
|
}
|
|
281
|
-
var Pe = a ? a.displayName || a.name : "",
|
|
282
|
-
return typeof a == "function" &&
|
|
281
|
+
var Pe = a ? a.displayName || a.name : "", bn = Pe ? Qe(Pe) : "";
|
|
282
|
+
return typeof a == "function" && et.set(a, bn), bn;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function Sr(a, p, b) {
|
|
285
|
+
return rn(a, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Or(a) {
|
|
288
288
|
var p = a.prototype;
|
|
289
289
|
return !!(p && p.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function tt(a, p, b) {
|
|
292
292
|
if (a == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof a == "function")
|
|
295
|
-
return
|
|
295
|
+
return rn(a, Or(a));
|
|
296
296
|
if (typeof a == "string")
|
|
297
|
-
return
|
|
297
|
+
return Qe(a);
|
|
298
298
|
switch (a) {
|
|
299
299
|
case u:
|
|
300
|
-
return
|
|
300
|
+
return Qe("Suspense");
|
|
301
301
|
case f:
|
|
302
|
-
return
|
|
302
|
+
return Qe("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof a == "object")
|
|
305
305
|
switch (a.$$typeof) {
|
|
306
306
|
case l:
|
|
307
|
-
return
|
|
307
|
+
return Sr(a.render);
|
|
308
308
|
case h:
|
|
309
|
-
return
|
|
309
|
+
return tt(a.type, p, b);
|
|
310
310
|
case d: {
|
|
311
311
|
var x = a, P = x._payload, k = x._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return tt(k(P), p, b);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var nt = Object.prototype.hasOwnProperty, on = {}, sn = w.ReactDebugCurrentFrame;
|
|
321
|
+
function rt(a) {
|
|
322
322
|
if (a) {
|
|
323
|
-
var p = a._owner, b =
|
|
324
|
-
|
|
323
|
+
var p = a._owner, b = tt(a.type, a._source, p ? p.type : null);
|
|
324
|
+
sn.setExtraStackFrame(b);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
sn.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Tr(a, p, b, x, P) {
|
|
329
329
|
{
|
|
330
|
-
var k = Function.call.bind(
|
|
330
|
+
var k = Function.call.bind(nt);
|
|
331
331
|
for (var R in a)
|
|
332
332
|
if (k(a, R)) {
|
|
333
333
|
var O = void 0;
|
|
@@ -340,7 +340,7 @@ function zr() {
|
|
|
340
340
|
} catch (D) {
|
|
341
341
|
O = D;
|
|
342
342
|
}
|
|
343
|
-
O && !(O instanceof Error) && (
|
|
343
|
+
O && !(O instanceof Error) && (rt(P), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", b, R, typeof O), rt(null)), O instanceof Error && !(O.message in on) && (on[O.message] = !0, rt(P), _("Failed %s type: %s", b, O.message), rt(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -348,59 +348,59 @@ function zr() {
|
|
|
348
348
|
function yt(a) {
|
|
349
349
|
return Cr(a);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Rr(a) {
|
|
352
352
|
{
|
|
353
353
|
var p = typeof Symbol == "function" && Symbol.toStringTag, b = p && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
354
354
|
return b;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Pr(a) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return an(a), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function an(a) {
|
|
365
365
|
return "" + a;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
367
|
+
function cn(a) {
|
|
368
|
+
if (Pr(a))
|
|
369
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rr(a)), an(a);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Ne = w.ReactCurrentOwner, Ir = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
376
|
+
}, ln, un, vt;
|
|
377
377
|
vt = {};
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
378
|
+
function kr(a) {
|
|
379
|
+
if (nt.call(a, "ref")) {
|
|
380
380
|
var p = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
381
381
|
if (p && p.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return a.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
386
|
+
function Ar(a) {
|
|
387
|
+
if (nt.call(a, "key")) {
|
|
388
388
|
var p = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
389
389
|
if (p && p.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return a.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof a.ref == "string" &&
|
|
396
|
-
var b = W(
|
|
397
|
-
vt[b] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(
|
|
394
|
+
function Mr(a, p) {
|
|
395
|
+
if (typeof a.ref == "string" && Ne.current && p && Ne.current.stateNode !== p) {
|
|
396
|
+
var b = W(Ne.current.type);
|
|
397
|
+
vt[b] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(Ne.current.type), a.ref), vt[b] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Dr(a, p) {
|
|
401
401
|
{
|
|
402
402
|
var b = function() {
|
|
403
|
-
|
|
403
|
+
ln || (ln = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
404
404
|
};
|
|
405
405
|
b.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
406
406
|
get: b,
|
|
@@ -408,10 +408,10 @@ function zr() {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Fr(a, p) {
|
|
412
412
|
{
|
|
413
413
|
var b = function() {
|
|
414
|
-
|
|
414
|
+
un || (un = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
415
415
|
};
|
|
416
416
|
b.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
417
417
|
get: b,
|
|
@@ -419,7 +419,7 @@ function zr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
422
|
+
var Lr = function(a, p, b, x, P, k, R) {
|
|
423
423
|
var O = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: t,
|
|
@@ -448,38 +448,38 @@ function zr() {
|
|
|
448
448
|
value: P
|
|
449
449
|
}), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function jr(a, p, b, x, P) {
|
|
452
452
|
{
|
|
453
453
|
var k, R = {}, O = null, U = null;
|
|
454
|
-
b !== void 0 && (
|
|
454
|
+
b !== void 0 && (cn(b), O = "" + b), Ar(p) && (cn(p.key), O = "" + p.key), kr(p) && (U = p.ref, Mr(p, P));
|
|
455
455
|
for (k in p)
|
|
456
|
-
|
|
456
|
+
nt.call(p, k) && !Ir.hasOwnProperty(k) && (R[k] = p[k]);
|
|
457
457
|
if (a && a.defaultProps) {
|
|
458
458
|
var D = a.defaultProps;
|
|
459
459
|
for (k in D)
|
|
460
460
|
R[k] === void 0 && (R[k] = D[k]);
|
|
461
461
|
}
|
|
462
462
|
if (O || U) {
|
|
463
|
-
var
|
|
464
|
-
O &&
|
|
463
|
+
var B = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
464
|
+
O && Dr(R, B), U && Fr(R, B);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return Lr(a, O, U, P, x, Ne.current, R);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var wt = w.ReactCurrentOwner,
|
|
469
|
+
var wt = w.ReactCurrentOwner, fn = w.ReactDebugCurrentFrame;
|
|
470
470
|
function Re(a) {
|
|
471
471
|
if (a) {
|
|
472
|
-
var p = a._owner, b =
|
|
473
|
-
|
|
472
|
+
var p = a._owner, b = tt(a.type, a._source, p ? p.type : null);
|
|
473
|
+
fn.setExtraStackFrame(b);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
fn.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
477
|
var _t;
|
|
478
478
|
_t = !1;
|
|
479
479
|
function Et(a) {
|
|
480
480
|
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function dn() {
|
|
483
483
|
{
|
|
484
484
|
if (wt.current) {
|
|
485
485
|
var a = W(wt.current.type);
|
|
@@ -491,7 +491,7 @@ Check the render method of \`` + a + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Br(a) {
|
|
495
495
|
{
|
|
496
496
|
if (a !== void 0) {
|
|
497
497
|
var p = a.fileName.replace(/^.*[\\\/]/, ""), b = a.lineNumber;
|
|
@@ -502,10 +502,10 @@ Check your code at ` + p + ":" + b + ".";
|
|
|
502
502
|
return "";
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
function
|
|
505
|
+
var hn = {};
|
|
506
|
+
function $r(a) {
|
|
507
507
|
{
|
|
508
|
-
var p =
|
|
508
|
+
var p = dn();
|
|
509
509
|
if (!p) {
|
|
510
510
|
var b = typeof a == "string" ? a : a.displayName || a.name;
|
|
511
511
|
b && (p = `
|
|
@@ -515,27 +515,27 @@ Check the top-level render call using <` + b + ">.");
|
|
|
515
515
|
return p;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function pn(a, p) {
|
|
519
519
|
{
|
|
520
520
|
if (!a._store || a._store.validated || a.key != null)
|
|
521
521
|
return;
|
|
522
522
|
a._store.validated = !0;
|
|
523
|
-
var b =
|
|
524
|
-
if (
|
|
523
|
+
var b = $r(p);
|
|
524
|
+
if (hn[b])
|
|
525
525
|
return;
|
|
526
|
-
|
|
526
|
+
hn[b] = !0;
|
|
527
527
|
var x = "";
|
|
528
528
|
a && a._owner && a._owner !== wt.current && (x = " It was passed a child from " + W(a._owner.type) + "."), Re(a), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, x), Re(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function mn(a, p) {
|
|
532
532
|
{
|
|
533
533
|
if (typeof a != "object")
|
|
534
534
|
return;
|
|
535
535
|
if (yt(a))
|
|
536
536
|
for (var b = 0; b < a.length; b++) {
|
|
537
537
|
var x = a[b];
|
|
538
|
-
Et(x) &&
|
|
538
|
+
Et(x) && pn(x, p);
|
|
539
539
|
}
|
|
540
540
|
else if (Et(a))
|
|
541
541
|
a._store && (a._store.validated = !0);
|
|
@@ -543,11 +543,11 @@ Check the top-level render call using <` + b + ">.");
|
|
|
543
543
|
var P = S(a);
|
|
544
544
|
if (typeof P == "function" && P !== a.entries)
|
|
545
545
|
for (var k = P.call(a), R; !(R = k.next()).done; )
|
|
546
|
-
Et(R.value) &&
|
|
546
|
+
Et(R.value) && pn(R.value, p);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Wr(a) {
|
|
551
551
|
{
|
|
552
552
|
var p = a.type;
|
|
553
553
|
if (p == null || typeof p == "string")
|
|
@@ -563,7 +563,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
563
563
|
return;
|
|
564
564
|
if (b) {
|
|
565
565
|
var x = W(p);
|
|
566
|
-
|
|
566
|
+
Tr(b, a.props, "prop", x, a);
|
|
567
567
|
} else if (p.PropTypes !== void 0 && !_t) {
|
|
568
568
|
_t = !0;
|
|
569
569
|
var P = W(p);
|
|
@@ -572,7 +572,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
572
572
|
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Nr(a) {
|
|
576
576
|
{
|
|
577
577
|
for (var p = Object.keys(a.props), b = 0; b < p.length; b++) {
|
|
578
578
|
var x = p[b];
|
|
@@ -584,65 +584,65 @@ Check the top-level render call using <` + b + ">.");
|
|
|
584
584
|
a.ref !== null && (Re(a), _("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function gn(a, p, b, x, P, k) {
|
|
588
588
|
{
|
|
589
589
|
var R = H(a);
|
|
590
590
|
if (!R) {
|
|
591
591
|
var O = "";
|
|
592
592
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
-
var U =
|
|
594
|
-
U ? O += U : O +=
|
|
593
|
+
var U = Br(P);
|
|
594
|
+
U ? O += U : O += dn();
|
|
595
595
|
var D;
|
|
596
596
|
a === null ? D = "null" : yt(a) ? D = "array" : a !== void 0 && a.$$typeof === t ? (D = "<" + (W(a.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : D = typeof a, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, O);
|
|
597
597
|
}
|
|
598
|
-
var
|
|
599
|
-
if (
|
|
600
|
-
return
|
|
598
|
+
var B = jr(a, p, b, P, k);
|
|
599
|
+
if (B == null)
|
|
600
|
+
return B;
|
|
601
601
|
if (R) {
|
|
602
602
|
var Z = p.children;
|
|
603
603
|
if (Z !== void 0)
|
|
604
604
|
if (x)
|
|
605
605
|
if (yt(Z)) {
|
|
606
606
|
for (var Pe = 0; Pe < Z.length; Pe++)
|
|
607
|
-
|
|
607
|
+
mn(Z[Pe], a);
|
|
608
608
|
Object.freeze && Object.freeze(Z);
|
|
609
609
|
} else
|
|
610
610
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
611
|
else
|
|
612
|
-
|
|
612
|
+
mn(Z, a);
|
|
613
613
|
}
|
|
614
|
-
return a === r ?
|
|
614
|
+
return a === r ? Nr(B) : Wr(B), B;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function Nr(a, p, b) {
|
|
618
|
-
return pn(a, p, b, !0);
|
|
619
|
-
}
|
|
620
617
|
function Vr(a, p, b) {
|
|
621
|
-
return
|
|
618
|
+
return gn(a, p, b, !0);
|
|
619
|
+
}
|
|
620
|
+
function Ur(a, p, b) {
|
|
621
|
+
return gn(a, p, b, !1);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
}()),
|
|
626
|
-
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var
|
|
629
|
-
/*! shepherd.js 12.0.
|
|
630
|
-
function
|
|
623
|
+
var Hr = Ur, Yr = Vr;
|
|
624
|
+
Ue.Fragment = r, Ue.jsx = Hr, Ue.jsxs = Yr;
|
|
625
|
+
}()), Ue;
|
|
626
|
+
}
|
|
627
|
+
process.env.NODE_ENV === "production" ? Pt.exports = zr() : Pt.exports = Jr();
|
|
628
|
+
var Gr = Pt.exports;
|
|
629
|
+
/*! shepherd.js 12.0.6 */
|
|
630
|
+
function Xr(e) {
|
|
631
631
|
return e instanceof Element;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Je(e) {
|
|
634
634
|
return e instanceof HTMLElement;
|
|
635
635
|
}
|
|
636
636
|
function pe(e) {
|
|
637
637
|
return typeof e == "function";
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function qe(e) {
|
|
640
640
|
return typeof e == "string";
|
|
641
641
|
}
|
|
642
642
|
function V(e) {
|
|
643
643
|
return e === void 0;
|
|
644
644
|
}
|
|
645
|
-
class
|
|
645
|
+
class Vt {
|
|
646
646
|
/**
|
|
647
647
|
* Adds an event listener for the given event string.
|
|
648
648
|
*
|
|
@@ -654,7 +654,11 @@ class Nt {
|
|
|
654
654
|
*/
|
|
655
655
|
on(t, n, r, o = !1) {
|
|
656
656
|
var s;
|
|
657
|
-
return V(this.bindings) && (this.bindings = {}), V(this.bindings[t]) && (this.bindings[t] = []), (s = this.bindings[t]) == null || s.push({
|
|
657
|
+
return V(this.bindings) && (this.bindings = {}), V(this.bindings[t]) && (this.bindings[t] = []), (s = this.bindings[t]) == null || s.push({
|
|
658
|
+
handler: n,
|
|
659
|
+
ctx: r,
|
|
660
|
+
once: o
|
|
661
|
+
}), this;
|
|
658
662
|
}
|
|
659
663
|
/**
|
|
660
664
|
* Adds an event listener that only fires once for the given event string.
|
|
@@ -675,11 +679,20 @@ class Nt {
|
|
|
675
679
|
* @returns
|
|
676
680
|
*/
|
|
677
681
|
off(t, n) {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
682
|
+
if (V(this.bindings) || V(this.bindings[t]))
|
|
683
|
+
return this;
|
|
684
|
+
if (V(n))
|
|
685
|
+
delete this.bindings[t];
|
|
686
|
+
else {
|
|
687
|
+
var r;
|
|
688
|
+
(r = this.bindings[t]) == null || r.forEach((o, s) => {
|
|
689
|
+
if (o.handler === n) {
|
|
690
|
+
var i;
|
|
691
|
+
(i = this.bindings[t]) == null || i.splice(s, 1);
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
return this;
|
|
683
696
|
}
|
|
684
697
|
/**
|
|
685
698
|
* Triggers an event listener for the given event string.
|
|
@@ -689,19 +702,28 @@ class Nt {
|
|
|
689
702
|
*/
|
|
690
703
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
691
704
|
trigger(t, ...n) {
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
705
|
+
if (!V(this.bindings) && this.bindings[t]) {
|
|
706
|
+
var r;
|
|
707
|
+
(r = this.bindings[t]) == null || r.forEach((o, s) => {
|
|
708
|
+
const {
|
|
709
|
+
ctx: i,
|
|
710
|
+
handler: c,
|
|
711
|
+
once: l
|
|
712
|
+
} = o, u = i || this;
|
|
713
|
+
if (c.apply(u, n), l) {
|
|
714
|
+
var f;
|
|
715
|
+
(f = this.bindings[t]) == null || f.splice(s, 1);
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
return this;
|
|
698
720
|
}
|
|
699
721
|
}
|
|
700
|
-
function
|
|
722
|
+
function He(e) {
|
|
701
723
|
var t, n;
|
|
702
724
|
function r(s, i) {
|
|
703
725
|
try {
|
|
704
|
-
var c = e[s](i), l = c.value, u = l instanceof
|
|
726
|
+
var c = e[s](i), l = c.value, u = l instanceof zn;
|
|
705
727
|
Promise.resolve(u ? l.v : l).then(function(f) {
|
|
706
728
|
if (u) {
|
|
707
729
|
var h = s === "return" ? "return" : "next";
|
|
@@ -749,70 +771,70 @@ function Ue(e) {
|
|
|
749
771
|
});
|
|
750
772
|
}, typeof e.return != "function" && (this.return = void 0);
|
|
751
773
|
}
|
|
752
|
-
|
|
774
|
+
He.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
753
775
|
return this;
|
|
754
|
-
},
|
|
776
|
+
}, He.prototype.next = function(e) {
|
|
755
777
|
return this._invoke("next", e);
|
|
756
|
-
},
|
|
778
|
+
}, He.prototype.throw = function(e) {
|
|
757
779
|
return this._invoke("throw", e);
|
|
758
|
-
},
|
|
780
|
+
}, He.prototype.return = function(e) {
|
|
759
781
|
return this._invoke("return", e);
|
|
760
782
|
};
|
|
761
|
-
function
|
|
783
|
+
function zn(e, t) {
|
|
762
784
|
this.v = e, this.k = t;
|
|
763
785
|
}
|
|
764
|
-
function
|
|
765
|
-
return new
|
|
766
|
-
}
|
|
767
|
-
function Xr(e) {
|
|
768
|
-
return function() {
|
|
769
|
-
return new Ue(e.apply(this, arguments));
|
|
770
|
-
};
|
|
786
|
+
function wn(e) {
|
|
787
|
+
return new zn(e, 0);
|
|
771
788
|
}
|
|
772
|
-
function
|
|
773
|
-
return
|
|
789
|
+
function j() {
|
|
790
|
+
return j = Object.assign ? Object.assign.bind() : function(e) {
|
|
774
791
|
for (var t = 1; t < arguments.length; t++) {
|
|
775
792
|
var n = arguments[t];
|
|
776
793
|
for (var r in n)
|
|
777
|
-
|
|
794
|
+
({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
778
795
|
}
|
|
779
796
|
return e;
|
|
780
|
-
},
|
|
797
|
+
}, j.apply(null, arguments);
|
|
781
798
|
}
|
|
782
|
-
function
|
|
799
|
+
function Jn(e, t) {
|
|
783
800
|
if (e == null)
|
|
784
801
|
return {};
|
|
785
802
|
var n = {};
|
|
786
803
|
for (var r in e)
|
|
787
|
-
if (
|
|
804
|
+
if ({}.hasOwnProperty.call(e, r)) {
|
|
788
805
|
if (t.indexOf(r) >= 0)
|
|
789
806
|
continue;
|
|
790
807
|
n[r] = e[r];
|
|
791
808
|
}
|
|
792
809
|
return n;
|
|
793
810
|
}
|
|
811
|
+
function Zr(e) {
|
|
812
|
+
return function() {
|
|
813
|
+
return new He(e.apply(this, arguments));
|
|
814
|
+
};
|
|
815
|
+
}
|
|
794
816
|
const be = {
|
|
795
817
|
defaultMerge: Symbol("deepmerge-ts: default merge"),
|
|
796
818
|
skip: Symbol("deepmerge-ts: skip")
|
|
797
819
|
};
|
|
798
820
|
be.defaultMerge;
|
|
799
|
-
function
|
|
821
|
+
function Qr(e, t) {
|
|
800
822
|
return t;
|
|
801
823
|
}
|
|
802
|
-
function
|
|
803
|
-
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 :
|
|
824
|
+
function _n(e) {
|
|
825
|
+
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 : no(e) ? 1 : e instanceof Set ? 3 : e instanceof Map ? 4 : 5;
|
|
804
826
|
}
|
|
805
|
-
function
|
|
827
|
+
function eo(e) {
|
|
806
828
|
const t = /* @__PURE__ */ new Set();
|
|
807
829
|
for (const n of e)
|
|
808
830
|
for (const r of [...Object.keys(n), ...Object.getOwnPropertySymbols(n)])
|
|
809
831
|
t.add(r);
|
|
810
832
|
return t;
|
|
811
833
|
}
|
|
812
|
-
function
|
|
834
|
+
function to(e, t) {
|
|
813
835
|
return typeof e == "object" && Object.prototype.propertyIsEnumerable.call(e, t);
|
|
814
836
|
}
|
|
815
|
-
function
|
|
837
|
+
function Gn(e) {
|
|
816
838
|
return {
|
|
817
839
|
// eslint-disable-next-line functional/functional-parameters
|
|
818
840
|
*[Symbol.iterator]() {
|
|
@@ -822,9 +844,9 @@ function zn(e) {
|
|
|
822
844
|
}
|
|
823
845
|
};
|
|
824
846
|
}
|
|
825
|
-
const
|
|
826
|
-
function
|
|
827
|
-
if (!
|
|
847
|
+
const En = /* @__PURE__ */ new Set(["[object Object]", "[object Module]"]);
|
|
848
|
+
function no(e) {
|
|
849
|
+
if (!En.has(Object.prototype.toString.call(e)))
|
|
828
850
|
return !1;
|
|
829
851
|
const {
|
|
830
852
|
constructor: t
|
|
@@ -832,20 +854,20 @@ function to(e) {
|
|
|
832
854
|
if (t === void 0)
|
|
833
855
|
return !0;
|
|
834
856
|
const n = t.prototype;
|
|
835
|
-
return !(n === null || typeof n != "object" || !
|
|
857
|
+
return !(n === null || typeof n != "object" || !En.has(Object.prototype.toString.call(n)) || !n.hasOwnProperty("isPrototypeOf"));
|
|
836
858
|
}
|
|
837
|
-
function
|
|
859
|
+
function ro(e, t, n) {
|
|
838
860
|
const r = {};
|
|
839
|
-
for (const o of
|
|
861
|
+
for (const o of eo(e)) {
|
|
840
862
|
const s = [];
|
|
841
863
|
for (const l of e)
|
|
842
|
-
|
|
864
|
+
to(l, o) && s.push(l[o]);
|
|
843
865
|
if (s.length === 0)
|
|
844
866
|
continue;
|
|
845
867
|
const i = t.metaDataUpdater(n, {
|
|
846
868
|
key: o,
|
|
847
869
|
parents: e
|
|
848
|
-
}), c =
|
|
870
|
+
}), c = Zn(s, t, i);
|
|
849
871
|
c !== be.skip && (o === "__proto__" ? Object.defineProperty(r, o, {
|
|
850
872
|
value: c,
|
|
851
873
|
configurable: !0,
|
|
@@ -855,84 +877,84 @@ function no(e, t, n) {
|
|
|
855
877
|
}
|
|
856
878
|
return r;
|
|
857
879
|
}
|
|
858
|
-
function ro(e) {
|
|
859
|
-
return e.flat();
|
|
860
|
-
}
|
|
861
880
|
function oo(e) {
|
|
862
|
-
return
|
|
881
|
+
return e.flat();
|
|
863
882
|
}
|
|
864
883
|
function io(e) {
|
|
865
|
-
return new
|
|
884
|
+
return new Set(Gn(e));
|
|
866
885
|
}
|
|
867
|
-
function
|
|
886
|
+
function so(e) {
|
|
887
|
+
return new Map(Gn(e));
|
|
888
|
+
}
|
|
889
|
+
function Xn(e) {
|
|
868
890
|
return e.at(-1);
|
|
869
891
|
}
|
|
870
892
|
var xt = /* @__PURE__ */ Object.freeze({
|
|
871
893
|
__proto__: null,
|
|
872
|
-
mergeArrays:
|
|
873
|
-
mergeMaps:
|
|
874
|
-
mergeOthers:
|
|
875
|
-
mergeRecords:
|
|
876
|
-
mergeSets:
|
|
894
|
+
mergeArrays: oo,
|
|
895
|
+
mergeMaps: so,
|
|
896
|
+
mergeOthers: Xn,
|
|
897
|
+
mergeRecords: ro,
|
|
898
|
+
mergeSets: io
|
|
877
899
|
});
|
|
878
|
-
function
|
|
879
|
-
return
|
|
900
|
+
function Ut(...e) {
|
|
901
|
+
return ao({})(...e);
|
|
880
902
|
}
|
|
881
|
-
function
|
|
882
|
-
const n =
|
|
903
|
+
function ao(e, t) {
|
|
904
|
+
const n = co(e, r);
|
|
883
905
|
function r(...o) {
|
|
884
|
-
return
|
|
906
|
+
return Zn(o, n, t);
|
|
885
907
|
}
|
|
886
908
|
return r;
|
|
887
909
|
}
|
|
888
|
-
function
|
|
910
|
+
function co(e, t) {
|
|
889
911
|
var n, r;
|
|
890
912
|
return {
|
|
891
913
|
defaultMergeFunctions: xt,
|
|
892
|
-
mergeFunctions:
|
|
893
|
-
metaDataUpdater: (n = e.metaDataUpdater) != null ? n :
|
|
914
|
+
mergeFunctions: j({}, xt, Object.fromEntries(Object.entries(e).filter(([o, s]) => Object.hasOwn(xt, o)).map(([o, s]) => s === !1 ? [o, Xn] : [o, s]))),
|
|
915
|
+
metaDataUpdater: (n = e.metaDataUpdater) != null ? n : Qr,
|
|
894
916
|
deepmerge: t,
|
|
895
917
|
useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
|
|
896
918
|
actions: be
|
|
897
919
|
};
|
|
898
920
|
}
|
|
899
|
-
function
|
|
921
|
+
function Zn(e, t, n) {
|
|
900
922
|
if (e.length === 0)
|
|
901
923
|
return;
|
|
902
924
|
if (e.length === 1)
|
|
903
925
|
return St(e, t, n);
|
|
904
|
-
const r =
|
|
926
|
+
const r = _n(e[0]);
|
|
905
927
|
if (r !== 0 && r !== 5) {
|
|
906
928
|
for (let o = 1; o < e.length; o++)
|
|
907
|
-
if (
|
|
929
|
+
if (_n(e[o]) !== r)
|
|
908
930
|
return St(e, t, n);
|
|
909
931
|
}
|
|
910
932
|
switch (r) {
|
|
911
933
|
case 1:
|
|
912
|
-
return co(e, t, n);
|
|
913
|
-
case 2:
|
|
914
934
|
return lo(e, t, n);
|
|
915
|
-
case
|
|
935
|
+
case 2:
|
|
916
936
|
return uo(e, t, n);
|
|
917
|
-
case
|
|
937
|
+
case 3:
|
|
918
938
|
return fo(e, t, n);
|
|
939
|
+
case 4:
|
|
940
|
+
return ho(e, t, n);
|
|
919
941
|
default:
|
|
920
942
|
return St(e, t, n);
|
|
921
943
|
}
|
|
922
944
|
}
|
|
923
|
-
function
|
|
945
|
+
function lo(e, t, n) {
|
|
924
946
|
const r = t.mergeFunctions.mergeRecords(e, t, n);
|
|
925
947
|
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeRecords !== t.defaultMergeFunctions.mergeRecords ? t.defaultMergeFunctions.mergeRecords(e, t, n) : r;
|
|
926
948
|
}
|
|
927
|
-
function
|
|
949
|
+
function uo(e, t, n) {
|
|
928
950
|
const r = t.mergeFunctions.mergeArrays(e, t, n);
|
|
929
951
|
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeArrays !== t.defaultMergeFunctions.mergeArrays ? t.defaultMergeFunctions.mergeArrays(e) : r;
|
|
930
952
|
}
|
|
931
|
-
function
|
|
953
|
+
function fo(e, t, n) {
|
|
932
954
|
const r = t.mergeFunctions.mergeSets(e, t, n);
|
|
933
955
|
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeSets !== t.defaultMergeFunctions.mergeSets ? t.defaultMergeFunctions.mergeSets(e) : r;
|
|
934
956
|
}
|
|
935
|
-
function
|
|
957
|
+
function ho(e, t, n) {
|
|
936
958
|
const r = t.mergeFunctions.mergeMaps(e, t, n);
|
|
937
959
|
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeMaps !== t.defaultMergeFunctions.mergeMaps ? t.defaultMergeFunctions.mergeMaps(e) : r;
|
|
938
960
|
}
|
|
@@ -940,7 +962,7 @@ function St(e, t, n) {
|
|
|
940
962
|
const r = t.mergeFunctions.mergeOthers(e, t, n);
|
|
941
963
|
return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeOthers !== t.defaultMergeFunctions.mergeOthers ? t.defaultMergeFunctions.mergeOthers(e) : r;
|
|
942
964
|
}
|
|
943
|
-
function
|
|
965
|
+
function Qn(e) {
|
|
944
966
|
const t = Object.getOwnPropertyNames(e.constructor.prototype);
|
|
945
967
|
for (let n = 0; n < t.length; n++) {
|
|
946
968
|
const r = t[n], o = e[r];
|
|
@@ -948,7 +970,7 @@ function Xn(e) {
|
|
|
948
970
|
}
|
|
949
971
|
return e;
|
|
950
972
|
}
|
|
951
|
-
function
|
|
973
|
+
function po(e, t) {
|
|
952
974
|
return (n) => {
|
|
953
975
|
if (e.isOpen()) {
|
|
954
976
|
const r = e.el && n.currentTarget === e.el;
|
|
@@ -956,10 +978,13 @@ function ho(e, t) {
|
|
|
956
978
|
}
|
|
957
979
|
};
|
|
958
980
|
}
|
|
959
|
-
function
|
|
960
|
-
const {
|
|
981
|
+
function mo(e) {
|
|
982
|
+
const {
|
|
983
|
+
event: t,
|
|
984
|
+
selector: n
|
|
985
|
+
} = e.options.advanceOn || {};
|
|
961
986
|
if (t) {
|
|
962
|
-
const r =
|
|
987
|
+
const r = po(e, n);
|
|
963
988
|
let o = null;
|
|
964
989
|
if (!V(n) && (o = document.querySelector(n), !o))
|
|
965
990
|
return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
|
|
@@ -967,20 +992,20 @@ function po(e) {
|
|
|
967
992
|
} else
|
|
968
993
|
return console.error("advanceOn was defined, but no event name was passed.");
|
|
969
994
|
}
|
|
970
|
-
class
|
|
995
|
+
class go {
|
|
971
996
|
constructor(t) {
|
|
972
997
|
}
|
|
973
998
|
}
|
|
974
|
-
class
|
|
999
|
+
class bo {
|
|
975
1000
|
constructor(t, n) {
|
|
976
1001
|
}
|
|
977
1002
|
}
|
|
978
|
-
function
|
|
979
|
-
return !
|
|
1003
|
+
function er(e) {
|
|
1004
|
+
return !qe(e) || e === "" ? "" : e.charAt(e.length - 1) !== "-" ? `${e}-` : e;
|
|
980
1005
|
}
|
|
981
|
-
function
|
|
1006
|
+
function yo(e) {
|
|
982
1007
|
const t = e.options.attachTo || {}, n = Object.assign({}, t);
|
|
983
|
-
if (pe(n.element) && (n.element = n.element.call(e)),
|
|
1008
|
+
if (pe(n.element) && (n.element = n.element.call(e)), qe(n.element)) {
|
|
984
1009
|
try {
|
|
985
1010
|
n.element = document.querySelector(n.element);
|
|
986
1011
|
} catch {
|
|
@@ -989,29 +1014,29 @@ function bo(e) {
|
|
|
989
1014
|
}
|
|
990
1015
|
return n;
|
|
991
1016
|
}
|
|
992
|
-
function
|
|
1017
|
+
function tr(e) {
|
|
993
1018
|
return e == null ? !0 : !e.element || !e.on;
|
|
994
1019
|
}
|
|
995
|
-
function
|
|
1020
|
+
function nr() {
|
|
996
1021
|
let e = Date.now();
|
|
997
1022
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
998
1023
|
const n = (e + Math.random() * 16) % 16 | 0;
|
|
999
1024
|
return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
|
|
1000
1025
|
});
|
|
1001
1026
|
}
|
|
1002
|
-
const Fe = Math.min, _e = Math.max,
|
|
1027
|
+
const Fe = Math.min, _e = Math.max, st = Math.round, ot = Math.floor, me = (e) => ({
|
|
1003
1028
|
x: e,
|
|
1004
1029
|
y: e
|
|
1005
|
-
}),
|
|
1030
|
+
}), vo = {
|
|
1006
1031
|
left: "right",
|
|
1007
1032
|
right: "left",
|
|
1008
1033
|
bottom: "top",
|
|
1009
1034
|
top: "bottom"
|
|
1010
|
-
},
|
|
1035
|
+
}, wo = {
|
|
1011
1036
|
start: "end",
|
|
1012
1037
|
end: "start"
|
|
1013
1038
|
};
|
|
1014
|
-
function
|
|
1039
|
+
function It(e, t, n) {
|
|
1015
1040
|
return _e(e, Fe(t, n));
|
|
1016
1041
|
}
|
|
1017
1042
|
function Le(e, t) {
|
|
@@ -1020,35 +1045,35 @@ function Le(e, t) {
|
|
|
1020
1045
|
function Oe(e) {
|
|
1021
1046
|
return e.split("-")[0];
|
|
1022
1047
|
}
|
|
1023
|
-
function
|
|
1048
|
+
function ut(e) {
|
|
1024
1049
|
return e.split("-")[1];
|
|
1025
1050
|
}
|
|
1026
|
-
function
|
|
1051
|
+
function Ht(e) {
|
|
1027
1052
|
return e === "x" ? "y" : "x";
|
|
1028
1053
|
}
|
|
1029
|
-
function
|
|
1054
|
+
function Yt(e) {
|
|
1030
1055
|
return e === "y" ? "height" : "width";
|
|
1031
1056
|
}
|
|
1032
|
-
function
|
|
1057
|
+
function ft(e) {
|
|
1033
1058
|
return ["top", "bottom"].includes(Oe(e)) ? "y" : "x";
|
|
1034
1059
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1060
|
+
function qt(e) {
|
|
1061
|
+
return Ht(ft(e));
|
|
1037
1062
|
}
|
|
1038
|
-
function
|
|
1063
|
+
function _o(e, t, n) {
|
|
1039
1064
|
n === void 0 && (n = !1);
|
|
1040
|
-
const r =
|
|
1065
|
+
const r = ut(e), o = qt(e), s = Yt(o);
|
|
1041
1066
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1042
|
-
return t.reference[s] > t.floating[s] && (i =
|
|
1067
|
+
return t.reference[s] > t.floating[s] && (i = at(i)), [i, at(i)];
|
|
1043
1068
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const t =
|
|
1046
|
-
return [
|
|
1069
|
+
function Eo(e) {
|
|
1070
|
+
const t = at(e);
|
|
1071
|
+
return [kt(e), t, kt(t)];
|
|
1047
1072
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return e.replace(/start|end/g, (t) =>
|
|
1073
|
+
function kt(e) {
|
|
1074
|
+
return e.replace(/start|end/g, (t) => wo[t]);
|
|
1050
1075
|
}
|
|
1051
|
-
function
|
|
1076
|
+
function xo(e, t, n) {
|
|
1052
1077
|
const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
|
|
1053
1078
|
switch (e) {
|
|
1054
1079
|
case "top":
|
|
@@ -1061,45 +1086,45 @@ function Eo(e, t, n) {
|
|
|
1061
1086
|
return [];
|
|
1062
1087
|
}
|
|
1063
1088
|
}
|
|
1064
|
-
function
|
|
1065
|
-
const o =
|
|
1066
|
-
let s =
|
|
1067
|
-
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(
|
|
1089
|
+
function So(e, t, n, r) {
|
|
1090
|
+
const o = ut(e);
|
|
1091
|
+
let s = xo(Oe(e), n === "start", r);
|
|
1092
|
+
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(kt)))), s;
|
|
1068
1093
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1094
|
+
function at(e) {
|
|
1095
|
+
return e.replace(/left|right|bottom|top/g, (t) => vo[t]);
|
|
1071
1096
|
}
|
|
1072
|
-
function
|
|
1073
|
-
return
|
|
1097
|
+
function Oo(e) {
|
|
1098
|
+
return j({
|
|
1074
1099
|
top: 0,
|
|
1075
1100
|
right: 0,
|
|
1076
1101
|
bottom: 0,
|
|
1077
1102
|
left: 0
|
|
1078
1103
|
}, e);
|
|
1079
1104
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return typeof e != "number" ?
|
|
1105
|
+
function rr(e) {
|
|
1106
|
+
return typeof e != "number" ? Oo(e) : {
|
|
1082
1107
|
top: e,
|
|
1083
1108
|
right: e,
|
|
1084
1109
|
bottom: e,
|
|
1085
1110
|
left: e
|
|
1086
1111
|
};
|
|
1087
1112
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return
|
|
1113
|
+
function ct(e) {
|
|
1114
|
+
return j({}, e, {
|
|
1090
1115
|
top: e.y,
|
|
1091
1116
|
left: e.x,
|
|
1092
1117
|
right: e.x + e.width,
|
|
1093
1118
|
bottom: e.y + e.height
|
|
1094
1119
|
});
|
|
1095
1120
|
}
|
|
1096
|
-
const
|
|
1097
|
-
function
|
|
1121
|
+
const To = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], Co = ["mainAxis", "crossAxis", "limiter"];
|
|
1122
|
+
function xn(e, t, n) {
|
|
1098
1123
|
let {
|
|
1099
1124
|
reference: r,
|
|
1100
1125
|
floating: o
|
|
1101
1126
|
} = e;
|
|
1102
|
-
const s =
|
|
1127
|
+
const s = ft(t), i = qt(t), c = Yt(i), l = Oe(t), u = s === "y", f = r.x + r.width / 2 - o.width / 2, h = r.y + r.height / 2 - o.height / 2, d = r[c] / 2 - o[c] / 2;
|
|
1103
1128
|
let m;
|
|
1104
1129
|
switch (l) {
|
|
1105
1130
|
case "top":
|
|
@@ -1132,7 +1157,7 @@ function _n(e, t, n) {
|
|
|
1132
1157
|
y: r.y
|
|
1133
1158
|
};
|
|
1134
1159
|
}
|
|
1135
|
-
switch (
|
|
1160
|
+
switch (ut(t)) {
|
|
1136
1161
|
case "start":
|
|
1137
1162
|
m[i] -= d * (n && u ? -1 : 1);
|
|
1138
1163
|
break;
|
|
@@ -1142,7 +1167,7 @@ function _n(e, t, n) {
|
|
|
1142
1167
|
}
|
|
1143
1168
|
return m;
|
|
1144
1169
|
}
|
|
1145
|
-
const
|
|
1170
|
+
const Ro = async (e, t, n) => {
|
|
1146
1171
|
const {
|
|
1147
1172
|
placement: r = "bottom",
|
|
1148
1173
|
strategy: o = "absolute",
|
|
@@ -1156,14 +1181,14 @@ const To = async (e, t, n) => {
|
|
|
1156
1181
|
}), {
|
|
1157
1182
|
x: f,
|
|
1158
1183
|
y: h
|
|
1159
|
-
} =
|
|
1184
|
+
} = xn(u, r, l), d = r, m = {}, y = 0;
|
|
1160
1185
|
for (let E = 0; E < c.length; E++) {
|
|
1161
1186
|
const {
|
|
1162
1187
|
name: S,
|
|
1163
1188
|
fn: w
|
|
1164
1189
|
} = c[E], {
|
|
1165
1190
|
x: _,
|
|
1166
|
-
y:
|
|
1191
|
+
y: T,
|
|
1167
1192
|
data: v,
|
|
1168
1193
|
reset: g
|
|
1169
1194
|
} = await w({
|
|
@@ -1180,8 +1205,8 @@ const To = async (e, t, n) => {
|
|
|
1180
1205
|
floating: t
|
|
1181
1206
|
}
|
|
1182
1207
|
});
|
|
1183
|
-
f = _ ?? f, h =
|
|
1184
|
-
[S]:
|
|
1208
|
+
f = _ ?? f, h = T ?? h, m = j({}, m, {
|
|
1209
|
+
[S]: j({}, m[S], v)
|
|
1185
1210
|
}), g && y <= 50 && (y++, typeof g == "object" && (g.placement && (d = g.placement), g.rects && (u = g.rects === !0 ? await i.getElementRects({
|
|
1186
1211
|
reference: e,
|
|
1187
1212
|
floating: t,
|
|
@@ -1189,7 +1214,7 @@ const To = async (e, t, n) => {
|
|
|
1189
1214
|
}) : g.rects), {
|
|
1190
1215
|
x: f,
|
|
1191
1216
|
y: h
|
|
1192
|
-
} =
|
|
1217
|
+
} = xn(u, d, l)), E = -1);
|
|
1193
1218
|
}
|
|
1194
1219
|
return {
|
|
1195
1220
|
x: f,
|
|
@@ -1199,7 +1224,7 @@ const To = async (e, t, n) => {
|
|
|
1199
1224
|
middlewareData: m
|
|
1200
1225
|
};
|
|
1201
1226
|
};
|
|
1202
|
-
async function
|
|
1227
|
+
async function or(e, t) {
|
|
1203
1228
|
var n;
|
|
1204
1229
|
t === void 0 && (t = {});
|
|
1205
1230
|
const {
|
|
@@ -1215,24 +1240,24 @@ async function nr(e, t) {
|
|
|
1215
1240
|
elementContext: h = "floating",
|
|
1216
1241
|
altBoundary: d = !1,
|
|
1217
1242
|
padding: m = 0
|
|
1218
|
-
} = Le(t, e), y =
|
|
1243
|
+
} = Le(t, e), y = rr(m), S = c[d ? h === "floating" ? "reference" : "floating" : h], w = ct(await s.getClippingRect({
|
|
1219
1244
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(S))) == null || n ? S : S.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
1220
1245
|
boundary: u,
|
|
1221
1246
|
rootBoundary: f,
|
|
1222
1247
|
strategy: l
|
|
1223
|
-
})), _ = h === "floating" ?
|
|
1248
|
+
})), _ = h === "floating" ? j({}, i.floating, {
|
|
1224
1249
|
x: r,
|
|
1225
1250
|
y: o
|
|
1226
|
-
}) : i.reference,
|
|
1251
|
+
}) : i.reference, T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), v = await (s.isElement == null ? void 0 : s.isElement(T)) ? await (s.getScale == null ? void 0 : s.getScale(T)) || {
|
|
1227
1252
|
x: 1,
|
|
1228
1253
|
y: 1
|
|
1229
1254
|
} : {
|
|
1230
1255
|
x: 1,
|
|
1231
1256
|
y: 1
|
|
1232
|
-
}, g =
|
|
1257
|
+
}, g = ct(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1233
1258
|
elements: c,
|
|
1234
1259
|
rect: _,
|
|
1235
|
-
offsetParent:
|
|
1260
|
+
offsetParent: T,
|
|
1236
1261
|
strategy: l
|
|
1237
1262
|
}) : _);
|
|
1238
1263
|
return {
|
|
@@ -1242,7 +1267,7 @@ async function nr(e, t) {
|
|
|
1242
1267
|
right: (g.right - w.right + y.right) / v.x
|
|
1243
1268
|
};
|
|
1244
1269
|
}
|
|
1245
|
-
const
|
|
1270
|
+
const Po = (e) => ({
|
|
1246
1271
|
name: "arrow",
|
|
1247
1272
|
options: e,
|
|
1248
1273
|
async fn(t) {
|
|
@@ -1260,16 +1285,16 @@ const Ro = (e) => ({
|
|
|
1260
1285
|
} = Le(e, t) || {};
|
|
1261
1286
|
if (u == null)
|
|
1262
1287
|
return {};
|
|
1263
|
-
const h =
|
|
1288
|
+
const h = rr(f), d = {
|
|
1264
1289
|
x: n,
|
|
1265
1290
|
y: r
|
|
1266
|
-
}, m =
|
|
1267
|
-
let N =
|
|
1268
|
-
(!N || !await (i.isElement == null ? void 0 : i.isElement(
|
|
1269
|
-
const
|
|
1291
|
+
}, m = qt(o), y = Yt(m), E = await i.getDimensions(u), S = m === "y", w = S ? "top" : "left", _ = S ? "bottom" : "right", T = S ? "clientHeight" : "clientWidth", v = s.reference[y] + s.reference[m] - d[m] - s.floating[y], g = d[m] - s.reference[m], C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
1292
|
+
let N = C ? C[T] : 0;
|
|
1293
|
+
(!N || !await (i.isElement == null ? void 0 : i.isElement(C))) && (N = c.floating[T] || s.floating[y]);
|
|
1294
|
+
const ee = v / 2 - g / 2, $ = N / 2 - E[y] / 2 - 1, H = Fe(h[w], $), z = Fe(h[_], $), J = H, W = N - E[y] - z, M = N / 2 - E[y] / 2 + ee, G = It(J, M, W), X = !l.arrow && ut(o) != null && M !== G && s.reference[y] / 2 - (M < J ? H : z) - E[y] / 2 < 0, Y = X ? M < J ? M - J : M - W : 0;
|
|
1270
1295
|
return {
|
|
1271
1296
|
[m]: d[m] + Y,
|
|
1272
|
-
data:
|
|
1297
|
+
data: j({
|
|
1273
1298
|
[m]: G,
|
|
1274
1299
|
centerOffset: M - G - Y
|
|
1275
1300
|
}, X && {
|
|
@@ -1278,7 +1303,7 @@ const Ro = (e) => ({
|
|
|
1278
1303
|
reset: X
|
|
1279
1304
|
};
|
|
1280
1305
|
}
|
|
1281
|
-
}),
|
|
1306
|
+
}), Io = function(t) {
|
|
1282
1307
|
return t === void 0 && (t = {}), {
|
|
1283
1308
|
name: "flip",
|
|
1284
1309
|
options: t,
|
|
@@ -1298,16 +1323,16 @@ const Ro = (e) => ({
|
|
|
1298
1323
|
fallbackStrategy: E = "bestFit",
|
|
1299
1324
|
fallbackAxisSideDirection: S = "none",
|
|
1300
1325
|
flipAlignment: w = !0
|
|
1301
|
-
} = h, _ =
|
|
1326
|
+
} = h, _ = Jn(h, To);
|
|
1302
1327
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
1303
1328
|
return {};
|
|
1304
|
-
const
|
|
1305
|
-
!y && S !== "none" &&
|
|
1306
|
-
const N = [l, ...
|
|
1329
|
+
const T = Oe(s), v = Oe(l) === l, g = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), C = y || (v || !w ? [at(l)] : Eo(l));
|
|
1330
|
+
!y && S !== "none" && C.push(...So(l, w, S, g));
|
|
1331
|
+
const N = [l, ...C], ee = await or(n, _), $ = [];
|
|
1307
1332
|
let H = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1308
|
-
if (d && $.push(
|
|
1309
|
-
const M =
|
|
1310
|
-
$.push(
|
|
1333
|
+
if (d && $.push(ee[T]), m) {
|
|
1334
|
+
const M = _o(s, c, g);
|
|
1335
|
+
$.push(ee[M[0]], ee[M[1]]);
|
|
1311
1336
|
}
|
|
1312
1337
|
if (H = [...H, {
|
|
1313
1338
|
placement: s,
|
|
@@ -1325,12 +1350,12 @@ const Ro = (e) => ({
|
|
|
1325
1350
|
placement: G
|
|
1326
1351
|
}
|
|
1327
1352
|
};
|
|
1328
|
-
let X = (J = H.filter((Y) => Y.overflows[0] <= 0).sort((Y,
|
|
1353
|
+
let X = (J = H.filter((Y) => Y.overflows[0] <= 0).sort((Y, ae) => Y.overflows[1] - ae.overflows[1])[0]) == null ? void 0 : J.placement;
|
|
1329
1354
|
if (!X)
|
|
1330
1355
|
switch (E) {
|
|
1331
1356
|
case "bestFit": {
|
|
1332
1357
|
var W;
|
|
1333
|
-
const Y = (W = H.map((
|
|
1358
|
+
const Y = (W = H.map((ae) => [ae.placement, ae.overflows.filter((he) => he > 0).reduce((he, Ze) => he + Ze, 0)]).sort((ae, he) => ae[1] - he[1])[0]) == null ? void 0 : W[0];
|
|
1334
1359
|
Y && (X = Y);
|
|
1335
1360
|
break;
|
|
1336
1361
|
}
|
|
@@ -1348,7 +1373,7 @@ const Ro = (e) => ({
|
|
|
1348
1373
|
return {};
|
|
1349
1374
|
}
|
|
1350
1375
|
};
|
|
1351
|
-
},
|
|
1376
|
+
}, ko = function(t) {
|
|
1352
1377
|
return t === void 0 && (t = {}), {
|
|
1353
1378
|
name: "shift",
|
|
1354
1379
|
options: t,
|
|
@@ -1363,33 +1388,33 @@ const Ro = (e) => ({
|
|
|
1363
1388
|
limiter: u = {
|
|
1364
1389
|
fn: (_) => {
|
|
1365
1390
|
let {
|
|
1366
|
-
x:
|
|
1391
|
+
x: T,
|
|
1367
1392
|
y: v
|
|
1368
1393
|
} = _;
|
|
1369
1394
|
return {
|
|
1370
|
-
x:
|
|
1395
|
+
x: T,
|
|
1371
1396
|
y: v
|
|
1372
1397
|
};
|
|
1373
1398
|
}
|
|
1374
1399
|
}
|
|
1375
|
-
} = i, f =
|
|
1400
|
+
} = i, f = Jn(i, Co), h = {
|
|
1376
1401
|
x: r,
|
|
1377
1402
|
y: o
|
|
1378
|
-
}, d = await
|
|
1403
|
+
}, d = await or(n, f), m = ft(Oe(s)), y = Ht(m);
|
|
1379
1404
|
let E = h[y], S = h[m];
|
|
1380
1405
|
if (c) {
|
|
1381
|
-
const _ = y === "y" ? "top" : "left",
|
|
1382
|
-
E =
|
|
1406
|
+
const _ = y === "y" ? "top" : "left", T = y === "y" ? "bottom" : "right", v = E + d[_], g = E - d[T];
|
|
1407
|
+
E = It(v, E, g);
|
|
1383
1408
|
}
|
|
1384
1409
|
if (l) {
|
|
1385
|
-
const _ = m === "y" ? "top" : "left",
|
|
1386
|
-
S =
|
|
1410
|
+
const _ = m === "y" ? "top" : "left", T = m === "y" ? "bottom" : "right", v = S + d[_], g = S - d[T];
|
|
1411
|
+
S = It(v, S, g);
|
|
1387
1412
|
}
|
|
1388
|
-
const w = u.fn(
|
|
1413
|
+
const w = u.fn(j({}, n, {
|
|
1389
1414
|
[y]: E,
|
|
1390
1415
|
[m]: S
|
|
1391
1416
|
}));
|
|
1392
|
-
return
|
|
1417
|
+
return j({}, w, {
|
|
1393
1418
|
data: {
|
|
1394
1419
|
x: w.x - r,
|
|
1395
1420
|
y: w.y - o
|
|
@@ -1397,7 +1422,7 @@ const Ro = (e) => ({
|
|
|
1397
1422
|
});
|
|
1398
1423
|
}
|
|
1399
1424
|
};
|
|
1400
|
-
},
|
|
1425
|
+
}, Ao = function(t) {
|
|
1401
1426
|
return t === void 0 && (t = {}), {
|
|
1402
1427
|
options: t,
|
|
1403
1428
|
fn(n) {
|
|
@@ -1414,23 +1439,23 @@ const Ro = (e) => ({
|
|
|
1414
1439
|
} = Le(t, n), h = {
|
|
1415
1440
|
x: r,
|
|
1416
1441
|
y: o
|
|
1417
|
-
}, d =
|
|
1442
|
+
}, d = ft(s), m = Ht(d);
|
|
1418
1443
|
let y = h[m], E = h[d];
|
|
1419
1444
|
const S = Le(l, n), w = typeof S == "number" ? {
|
|
1420
1445
|
mainAxis: S,
|
|
1421
1446
|
crossAxis: 0
|
|
1422
|
-
} :
|
|
1447
|
+
} : j({
|
|
1423
1448
|
mainAxis: 0,
|
|
1424
1449
|
crossAxis: 0
|
|
1425
1450
|
}, S);
|
|
1426
1451
|
if (u) {
|
|
1427
|
-
const v = m === "y" ? "height" : "width", g = i.reference[m] - i.floating[v] + w.mainAxis,
|
|
1428
|
-
y < g ? y = g : y >
|
|
1452
|
+
const v = m === "y" ? "height" : "width", g = i.reference[m] - i.floating[v] + w.mainAxis, C = i.reference[m] + i.reference[v] - w.mainAxis;
|
|
1453
|
+
y < g ? y = g : y > C && (y = C);
|
|
1429
1454
|
}
|
|
1430
1455
|
if (f) {
|
|
1431
|
-
var _,
|
|
1432
|
-
const v = m === "y" ? "width" : "height", g = ["top", "left"].includes(Oe(s)),
|
|
1433
|
-
E <
|
|
1456
|
+
var _, T;
|
|
1457
|
+
const v = m === "y" ? "width" : "height", g = ["top", "left"].includes(Oe(s)), C = i.reference[d] - i.floating[v] + (g && ((_ = c.offset) == null ? void 0 : _[d]) || 0) + (g ? 0 : w.crossAxis), N = i.reference[d] + i.reference[v] + (g ? 0 : ((T = c.offset) == null ? void 0 : T[d]) || 0) - (g ? w.crossAxis : 0);
|
|
1458
|
+
E < C ? E = C : E > N && (E = N);
|
|
1434
1459
|
}
|
|
1435
1460
|
return {
|
|
1436
1461
|
[m]: y,
|
|
@@ -1439,8 +1464,8 @@ const Ro = (e) => ({
|
|
|
1439
1464
|
}
|
|
1440
1465
|
};
|
|
1441
1466
|
};
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1467
|
+
function We(e) {
|
|
1468
|
+
return ir(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1444
1469
|
}
|
|
1445
1470
|
function q(e) {
|
|
1446
1471
|
var t;
|
|
@@ -1448,56 +1473,56 @@ function q(e) {
|
|
|
1448
1473
|
}
|
|
1449
1474
|
function le(e) {
|
|
1450
1475
|
var t;
|
|
1451
|
-
return (t = (
|
|
1476
|
+
return (t = (ir(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1452
1477
|
}
|
|
1453
|
-
function
|
|
1478
|
+
function ir(e) {
|
|
1454
1479
|
return e instanceof Node || e instanceof q(e).Node;
|
|
1455
1480
|
}
|
|
1456
|
-
function
|
|
1481
|
+
function oe(e) {
|
|
1457
1482
|
return e instanceof Element || e instanceof q(e).Element;
|
|
1458
1483
|
}
|
|
1459
|
-
function
|
|
1484
|
+
function ie(e) {
|
|
1460
1485
|
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
1461
1486
|
}
|
|
1462
|
-
function
|
|
1487
|
+
function Sn(e) {
|
|
1463
1488
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
1464
1489
|
}
|
|
1465
|
-
function
|
|
1490
|
+
function Ge(e) {
|
|
1466
1491
|
const {
|
|
1467
1492
|
overflow: t,
|
|
1468
1493
|
overflowX: n,
|
|
1469
1494
|
overflowY: r,
|
|
1470
1495
|
display: o
|
|
1471
|
-
} =
|
|
1496
|
+
} = ne(e);
|
|
1472
1497
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
1473
1498
|
}
|
|
1474
|
-
function
|
|
1475
|
-
return ["table", "td", "th"].includes(
|
|
1499
|
+
function Mo(e) {
|
|
1500
|
+
return ["table", "td", "th"].includes(We(e));
|
|
1476
1501
|
}
|
|
1477
|
-
function
|
|
1478
|
-
const t =
|
|
1502
|
+
function Kt(e) {
|
|
1503
|
+
const t = zt(), n = ne(e);
|
|
1479
1504
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1480
1505
|
}
|
|
1481
|
-
function
|
|
1482
|
-
let t =
|
|
1483
|
-
for (;
|
|
1484
|
-
if (
|
|
1506
|
+
function Do(e) {
|
|
1507
|
+
let t = ge(e);
|
|
1508
|
+
for (; ie(t) && !je(t); ) {
|
|
1509
|
+
if (Kt(t))
|
|
1485
1510
|
return t;
|
|
1486
|
-
t =
|
|
1511
|
+
t = ge(t);
|
|
1487
1512
|
}
|
|
1488
1513
|
return null;
|
|
1489
1514
|
}
|
|
1490
|
-
function
|
|
1515
|
+
function zt() {
|
|
1491
1516
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1492
1517
|
}
|
|
1493
|
-
function
|
|
1494
|
-
return ["html", "body", "#document"].includes(
|
|
1518
|
+
function je(e) {
|
|
1519
|
+
return ["html", "body", "#document"].includes(We(e));
|
|
1495
1520
|
}
|
|
1496
|
-
function
|
|
1521
|
+
function ne(e) {
|
|
1497
1522
|
return q(e).getComputedStyle(e);
|
|
1498
1523
|
}
|
|
1499
1524
|
function dt(e) {
|
|
1500
|
-
return
|
|
1525
|
+
return oe(e) ? {
|
|
1501
1526
|
scrollLeft: e.scrollLeft,
|
|
1502
1527
|
scrollTop: e.scrollTop
|
|
1503
1528
|
} : {
|
|
@@ -1505,92 +1530,92 @@ function dt(e) {
|
|
|
1505
1530
|
scrollTop: e.pageYOffset
|
|
1506
1531
|
};
|
|
1507
1532
|
}
|
|
1508
|
-
function
|
|
1509
|
-
if (
|
|
1533
|
+
function ge(e) {
|
|
1534
|
+
if (We(e) === "html")
|
|
1510
1535
|
return e;
|
|
1511
1536
|
const t = (
|
|
1512
1537
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1513
1538
|
e.assignedSlot || // DOM Element detected.
|
|
1514
1539
|
e.parentNode || // ShadowRoot detected.
|
|
1515
|
-
|
|
1540
|
+
Sn(e) && e.host || // Fallback.
|
|
1516
1541
|
le(e)
|
|
1517
1542
|
);
|
|
1518
|
-
return
|
|
1543
|
+
return Sn(t) ? t.host : t;
|
|
1519
1544
|
}
|
|
1520
|
-
function
|
|
1521
|
-
const t =
|
|
1522
|
-
return
|
|
1545
|
+
function sr(e) {
|
|
1546
|
+
const t = ge(e);
|
|
1547
|
+
return je(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ie(t) && Ge(t) ? t : sr(t);
|
|
1523
1548
|
}
|
|
1524
|
-
function
|
|
1549
|
+
function Ke(e, t, n) {
|
|
1525
1550
|
var r;
|
|
1526
1551
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1527
|
-
const o =
|
|
1528
|
-
return s ? t.concat(i, i.visualViewport || [],
|
|
1552
|
+
const o = sr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = q(o);
|
|
1553
|
+
return s ? t.concat(i, i.visualViewport || [], Ge(o) ? o : [], i.frameElement && n ? Ke(i.frameElement) : []) : t.concat(o, Ke(o, [], n));
|
|
1529
1554
|
}
|
|
1530
|
-
function
|
|
1531
|
-
const t =
|
|
1555
|
+
function ar(e) {
|
|
1556
|
+
const t = ne(e);
|
|
1532
1557
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1533
|
-
const o =
|
|
1558
|
+
const o = ie(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, c = st(n) !== s || st(r) !== i;
|
|
1534
1559
|
return c && (n = s, r = i), {
|
|
1535
1560
|
width: n,
|
|
1536
1561
|
height: r,
|
|
1537
1562
|
$: c
|
|
1538
1563
|
};
|
|
1539
1564
|
}
|
|
1540
|
-
function
|
|
1541
|
-
return
|
|
1565
|
+
function Jt(e) {
|
|
1566
|
+
return oe(e) ? e : e.contextElement;
|
|
1542
1567
|
}
|
|
1543
1568
|
function Me(e) {
|
|
1544
|
-
const t =
|
|
1545
|
-
if (!
|
|
1569
|
+
const t = Jt(e);
|
|
1570
|
+
if (!ie(t))
|
|
1546
1571
|
return me(1);
|
|
1547
1572
|
const n = t.getBoundingClientRect(), {
|
|
1548
1573
|
width: r,
|
|
1549
1574
|
height: o,
|
|
1550
1575
|
$: s
|
|
1551
|
-
} =
|
|
1552
|
-
let i = (s ?
|
|
1576
|
+
} = ar(t);
|
|
1577
|
+
let i = (s ? st(n.width) : n.width) / r, c = (s ? st(n.height) : n.height) / o;
|
|
1553
1578
|
return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1554
1579
|
x: i,
|
|
1555
1580
|
y: c
|
|
1556
1581
|
};
|
|
1557
1582
|
}
|
|
1558
|
-
const
|
|
1559
|
-
function
|
|
1583
|
+
const Fo = /* @__PURE__ */ me(0);
|
|
1584
|
+
function cr(e) {
|
|
1560
1585
|
const t = q(e);
|
|
1561
|
-
return !
|
|
1586
|
+
return !zt() || !t.visualViewport ? Fo : {
|
|
1562
1587
|
x: t.visualViewport.offsetLeft,
|
|
1563
1588
|
y: t.visualViewport.offsetTop
|
|
1564
1589
|
};
|
|
1565
1590
|
}
|
|
1566
|
-
function
|
|
1591
|
+
function Lo(e, t, n) {
|
|
1567
1592
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1568
1593
|
}
|
|
1569
|
-
function
|
|
1594
|
+
function Te(e, t, n, r) {
|
|
1570
1595
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1571
|
-
const o = e.getBoundingClientRect(), s =
|
|
1596
|
+
const o = e.getBoundingClientRect(), s = Jt(e);
|
|
1572
1597
|
let i = me(1);
|
|
1573
|
-
t && (r ?
|
|
1574
|
-
const c =
|
|
1598
|
+
t && (r ? oe(r) && (i = Me(r)) : i = Me(e));
|
|
1599
|
+
const c = Lo(s, n, r) ? cr(s) : me(0);
|
|
1575
1600
|
let l = (o.left + c.x) / i.x, u = (o.top + c.y) / i.y, f = o.width / i.x, h = o.height / i.y;
|
|
1576
1601
|
if (s) {
|
|
1577
|
-
const d = q(s), m = r &&
|
|
1602
|
+
const d = q(s), m = r && oe(r) ? q(r) : r;
|
|
1578
1603
|
let y = d, E = y.frameElement;
|
|
1579
1604
|
for (; E && r && m !== y; ) {
|
|
1580
|
-
const S = Me(E), w = E.getBoundingClientRect(), _ =
|
|
1581
|
-
l *= S.x, u *= S.y, f *= S.x, h *= S.y, l +=
|
|
1605
|
+
const S = Me(E), w = E.getBoundingClientRect(), _ = ne(E), T = w.left + (E.clientLeft + parseFloat(_.paddingLeft)) * S.x, v = w.top + (E.clientTop + parseFloat(_.paddingTop)) * S.y;
|
|
1606
|
+
l *= S.x, u *= S.y, f *= S.x, h *= S.y, l += T, u += v, y = q(E), E = y.frameElement;
|
|
1582
1607
|
}
|
|
1583
1608
|
}
|
|
1584
|
-
return
|
|
1609
|
+
return ct({
|
|
1585
1610
|
width: f,
|
|
1586
1611
|
height: h,
|
|
1587
1612
|
x: l,
|
|
1588
1613
|
y: u
|
|
1589
1614
|
});
|
|
1590
1615
|
}
|
|
1591
|
-
const
|
|
1592
|
-
function
|
|
1593
|
-
return
|
|
1616
|
+
const jo = [":popover-open", ":modal"];
|
|
1617
|
+
function Gt(e) {
|
|
1618
|
+
return jo.some((t) => {
|
|
1594
1619
|
try {
|
|
1595
1620
|
return e.matches(t);
|
|
1596
1621
|
} catch {
|
|
@@ -1598,23 +1623,23 @@ function ar(e) {
|
|
|
1598
1623
|
}
|
|
1599
1624
|
});
|
|
1600
1625
|
}
|
|
1601
|
-
function
|
|
1626
|
+
function Bo(e) {
|
|
1602
1627
|
let {
|
|
1603
1628
|
elements: t,
|
|
1604
1629
|
rect: n,
|
|
1605
1630
|
offsetParent: r,
|
|
1606
1631
|
strategy: o
|
|
1607
1632
|
} = e;
|
|
1608
|
-
const s = o === "fixed", i = le(r), c = t ?
|
|
1633
|
+
const s = o === "fixed", i = le(r), c = t ? Gt(t.floating) : !1;
|
|
1609
1634
|
if (r === i || c && s)
|
|
1610
1635
|
return n;
|
|
1611
1636
|
let l = {
|
|
1612
1637
|
scrollLeft: 0,
|
|
1613
1638
|
scrollTop: 0
|
|
1614
1639
|
}, u = me(1);
|
|
1615
|
-
const f = me(0), h =
|
|
1616
|
-
if ((h || !h && !s) && ((
|
|
1617
|
-
const d =
|
|
1640
|
+
const f = me(0), h = ie(r);
|
|
1641
|
+
if ((h || !h && !s) && ((We(r) !== "body" || Ge(i)) && (l = dt(r)), ie(r))) {
|
|
1642
|
+
const d = Te(r);
|
|
1618
1643
|
u = Me(r), f.x = d.x + r.clientLeft, f.y = d.y + r.clientTop;
|
|
1619
1644
|
}
|
|
1620
1645
|
return {
|
|
@@ -1624,29 +1649,29 @@ function jo(e) {
|
|
|
1624
1649
|
y: n.y * u.y - l.scrollTop * u.y + f.y
|
|
1625
1650
|
};
|
|
1626
1651
|
}
|
|
1627
|
-
function
|
|
1652
|
+
function $o(e) {
|
|
1628
1653
|
return Array.from(e.getClientRects());
|
|
1629
1654
|
}
|
|
1630
|
-
function
|
|
1631
|
-
return
|
|
1655
|
+
function lr(e) {
|
|
1656
|
+
return Te(le(e)).left + dt(e).scrollLeft;
|
|
1632
1657
|
}
|
|
1633
|
-
function
|
|
1658
|
+
function Wo(e) {
|
|
1634
1659
|
const t = le(e), n = dt(e), r = e.ownerDocument.body, o = _e(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = _e(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1635
|
-
let i = -n.scrollLeft +
|
|
1660
|
+
let i = -n.scrollLeft + lr(e);
|
|
1636
1661
|
const c = -n.scrollTop;
|
|
1637
|
-
return
|
|
1662
|
+
return ne(r).direction === "rtl" && (i += _e(t.clientWidth, r.clientWidth) - o), {
|
|
1638
1663
|
width: o,
|
|
1639
1664
|
height: s,
|
|
1640
1665
|
x: i,
|
|
1641
1666
|
y: c
|
|
1642
1667
|
};
|
|
1643
1668
|
}
|
|
1644
|
-
function
|
|
1669
|
+
function No(e, t) {
|
|
1645
1670
|
const n = q(e), r = le(e), o = n.visualViewport;
|
|
1646
1671
|
let s = r.clientWidth, i = r.clientHeight, c = 0, l = 0;
|
|
1647
1672
|
if (o) {
|
|
1648
1673
|
s = o.width, i = o.height;
|
|
1649
|
-
const u =
|
|
1674
|
+
const u = zt();
|
|
1650
1675
|
(!u || u && t === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
1651
1676
|
}
|
|
1652
1677
|
return {
|
|
@@ -1656,8 +1681,8 @@ function Wo(e, t) {
|
|
|
1656
1681
|
y: l
|
|
1657
1682
|
};
|
|
1658
1683
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const n =
|
|
1684
|
+
function Vo(e, t) {
|
|
1685
|
+
const n = Te(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = ie(e) ? Me(e) : me(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, l = o * s.x, u = r * s.y;
|
|
1661
1686
|
return {
|
|
1662
1687
|
width: i,
|
|
1663
1688
|
height: c,
|
|
@@ -1665,51 +1690,51 @@ function No(e, t) {
|
|
|
1665
1690
|
y: u
|
|
1666
1691
|
};
|
|
1667
1692
|
}
|
|
1668
|
-
function
|
|
1693
|
+
function On(e, t, n) {
|
|
1669
1694
|
let r;
|
|
1670
1695
|
if (t === "viewport")
|
|
1671
|
-
r =
|
|
1696
|
+
r = No(e, n);
|
|
1672
1697
|
else if (t === "document")
|
|
1673
|
-
r =
|
|
1674
|
-
else if (
|
|
1675
|
-
r =
|
|
1698
|
+
r = Wo(le(e));
|
|
1699
|
+
else if (oe(t))
|
|
1700
|
+
r = Vo(t, n);
|
|
1676
1701
|
else {
|
|
1677
|
-
const o =
|
|
1678
|
-
r =
|
|
1702
|
+
const o = cr(e);
|
|
1703
|
+
r = j({}, t, {
|
|
1679
1704
|
x: t.x - o.x,
|
|
1680
1705
|
y: t.y - o.y
|
|
1681
1706
|
});
|
|
1682
1707
|
}
|
|
1683
|
-
return
|
|
1708
|
+
return ct(r);
|
|
1684
1709
|
}
|
|
1685
|
-
function
|
|
1686
|
-
const n =
|
|
1687
|
-
return n === t || !
|
|
1710
|
+
function ur(e, t) {
|
|
1711
|
+
const n = ge(e);
|
|
1712
|
+
return n === t || !oe(n) || je(n) ? !1 : ne(n).position === "fixed" || ur(n, t);
|
|
1688
1713
|
}
|
|
1689
|
-
function
|
|
1714
|
+
function Uo(e, t) {
|
|
1690
1715
|
const n = t.get(e);
|
|
1691
1716
|
if (n)
|
|
1692
1717
|
return n;
|
|
1693
|
-
let r =
|
|
1694
|
-
const s =
|
|
1695
|
-
let i = s ?
|
|
1696
|
-
for (;
|
|
1697
|
-
const c =
|
|
1698
|
-
!l && c.position === "fixed" && (o = null), (s ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
1718
|
+
let r = Ke(e, [], !1).filter((c) => oe(c) && We(c) !== "body"), o = null;
|
|
1719
|
+
const s = ne(e).position === "fixed";
|
|
1720
|
+
let i = s ? ge(e) : e;
|
|
1721
|
+
for (; oe(i) && !je(i); ) {
|
|
1722
|
+
const c = ne(i), l = Kt(i);
|
|
1723
|
+
!l && c.position === "fixed" && (o = null), (s ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ge(i) && !l && ur(e, i)) ? r = r.filter((f) => f !== i) : o = c, i = ge(i);
|
|
1699
1724
|
}
|
|
1700
1725
|
return t.set(e, r), r;
|
|
1701
1726
|
}
|
|
1702
|
-
function
|
|
1727
|
+
function Ho(e) {
|
|
1703
1728
|
let {
|
|
1704
1729
|
element: t,
|
|
1705
1730
|
boundary: n,
|
|
1706
1731
|
rootBoundary: r,
|
|
1707
1732
|
strategy: o
|
|
1708
1733
|
} = e;
|
|
1709
|
-
const i = [...n === "clippingAncestors" ?
|
|
1710
|
-
const h =
|
|
1734
|
+
const i = [...n === "clippingAncestors" ? Gt(t) ? [] : Uo(t, this._c) : [].concat(n), r], c = i[0], l = i.reduce((u, f) => {
|
|
1735
|
+
const h = On(t, f, o);
|
|
1711
1736
|
return u.top = _e(h.top, u.top), u.right = Fe(h.right, u.right), u.bottom = Fe(h.bottom, u.bottom), u.left = _e(h.left, u.left), u;
|
|
1712
|
-
},
|
|
1737
|
+
}, On(t, c, o));
|
|
1713
1738
|
return {
|
|
1714
1739
|
width: l.right - l.left,
|
|
1715
1740
|
height: l.bottom - l.top,
|
|
@@ -1717,29 +1742,29 @@ function Uo(e) {
|
|
|
1717
1742
|
y: l.top
|
|
1718
1743
|
};
|
|
1719
1744
|
}
|
|
1720
|
-
function
|
|
1745
|
+
function Yo(e) {
|
|
1721
1746
|
const {
|
|
1722
1747
|
width: t,
|
|
1723
1748
|
height: n
|
|
1724
|
-
} =
|
|
1749
|
+
} = ar(e);
|
|
1725
1750
|
return {
|
|
1726
1751
|
width: t,
|
|
1727
1752
|
height: n
|
|
1728
1753
|
};
|
|
1729
1754
|
}
|
|
1730
|
-
function
|
|
1731
|
-
const r =
|
|
1755
|
+
function qo(e, t, n) {
|
|
1756
|
+
const r = ie(t), o = le(t), s = n === "fixed", i = Te(e, !0, s, t);
|
|
1732
1757
|
let c = {
|
|
1733
1758
|
scrollLeft: 0,
|
|
1734
1759
|
scrollTop: 0
|
|
1735
1760
|
};
|
|
1736
1761
|
const l = me(0);
|
|
1737
1762
|
if (r || !r && !s)
|
|
1738
|
-
if ((
|
|
1739
|
-
const h =
|
|
1763
|
+
if ((We(t) !== "body" || Ge(o)) && (c = dt(t)), r) {
|
|
1764
|
+
const h = Te(t, !0, s, t);
|
|
1740
1765
|
l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
|
|
1741
1766
|
} else
|
|
1742
|
-
o && (l.x =
|
|
1767
|
+
o && (l.x = lr(o));
|
|
1743
1768
|
const u = i.left + c.scrollLeft - l.x, f = i.top + c.scrollTop - l.y;
|
|
1744
1769
|
return {
|
|
1745
1770
|
x: u,
|
|
@@ -1748,44 +1773,58 @@ function Yo(e, t, n) {
|
|
|
1748
1773
|
height: i.height
|
|
1749
1774
|
};
|
|
1750
1775
|
}
|
|
1751
|
-
function
|
|
1752
|
-
return
|
|
1776
|
+
function Ot(e) {
|
|
1777
|
+
return ne(e).position === "static";
|
|
1753
1778
|
}
|
|
1754
|
-
function
|
|
1779
|
+
function Tn(e, t) {
|
|
1780
|
+
return !ie(e) || ne(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1781
|
+
}
|
|
1782
|
+
function fr(e, t) {
|
|
1755
1783
|
const n = q(e);
|
|
1756
|
-
if (
|
|
1784
|
+
if (Gt(e))
|
|
1785
|
+
return n;
|
|
1786
|
+
if (!ie(e)) {
|
|
1787
|
+
let o = ge(e);
|
|
1788
|
+
for (; o && !je(o); ) {
|
|
1789
|
+
if (oe(o) && !Ot(o))
|
|
1790
|
+
return o;
|
|
1791
|
+
o = ge(o);
|
|
1792
|
+
}
|
|
1757
1793
|
return n;
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1794
|
+
}
|
|
1795
|
+
let r = Tn(e, t);
|
|
1796
|
+
for (; r && Mo(r) && Ot(r); )
|
|
1797
|
+
r = Tn(r, t);
|
|
1798
|
+
return r && je(r) && Ot(r) && !Kt(r) ? n : r || Do(e) || n;
|
|
1762
1799
|
}
|
|
1763
|
-
const
|
|
1764
|
-
const n = this.getOffsetParent ||
|
|
1800
|
+
const Ko = async function(t) {
|
|
1801
|
+
const n = this.getOffsetParent || fr, r = this.getDimensions, o = await r(t.floating);
|
|
1765
1802
|
return {
|
|
1766
|
-
reference:
|
|
1767
|
-
floating:
|
|
1803
|
+
reference: qo(t.reference, await n(t.floating), t.strategy),
|
|
1804
|
+
floating: {
|
|
1768
1805
|
x: 0,
|
|
1769
|
-
y: 0
|
|
1770
|
-
|
|
1806
|
+
y: 0,
|
|
1807
|
+
width: o.width,
|
|
1808
|
+
height: o.height
|
|
1809
|
+
}
|
|
1771
1810
|
};
|
|
1772
1811
|
};
|
|
1773
|
-
function
|
|
1774
|
-
return
|
|
1812
|
+
function zo(e) {
|
|
1813
|
+
return ne(e).direction === "rtl";
|
|
1775
1814
|
}
|
|
1776
|
-
const
|
|
1777
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1815
|
+
const Jo = {
|
|
1816
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Bo,
|
|
1778
1817
|
getDocumentElement: le,
|
|
1779
|
-
getClippingRect:
|
|
1780
|
-
getOffsetParent:
|
|
1781
|
-
getElementRects:
|
|
1782
|
-
getClientRects:
|
|
1783
|
-
getDimensions:
|
|
1818
|
+
getClippingRect: Ho,
|
|
1819
|
+
getOffsetParent: fr,
|
|
1820
|
+
getElementRects: Ko,
|
|
1821
|
+
getClientRects: $o,
|
|
1822
|
+
getDimensions: Yo,
|
|
1784
1823
|
getScale: Me,
|
|
1785
|
-
isElement:
|
|
1786
|
-
isRTL:
|
|
1824
|
+
isElement: oe,
|
|
1825
|
+
isRTL: zo
|
|
1787
1826
|
};
|
|
1788
|
-
function
|
|
1827
|
+
function Go(e, t) {
|
|
1789
1828
|
let n = null, r;
|
|
1790
1829
|
const o = le(e);
|
|
1791
1830
|
function s() {
|
|
@@ -1802,24 +1841,24 @@ function Jo(e, t) {
|
|
|
1802
1841
|
} = e.getBoundingClientRect();
|
|
1803
1842
|
if (c || t(), !h || !d)
|
|
1804
1843
|
return;
|
|
1805
|
-
const m =
|
|
1844
|
+
const m = ot(f), y = ot(o.clientWidth - (u + h)), E = ot(o.clientHeight - (f + d)), S = ot(u), _ = {
|
|
1806
1845
|
rootMargin: -m + "px " + -y + "px " + -E + "px " + -S + "px",
|
|
1807
1846
|
threshold: _e(0, Fe(1, l)) || 1
|
|
1808
1847
|
};
|
|
1809
|
-
let
|
|
1848
|
+
let T = !0;
|
|
1810
1849
|
function v(g) {
|
|
1811
|
-
const
|
|
1812
|
-
if (
|
|
1813
|
-
if (!
|
|
1850
|
+
const C = g[0].intersectionRatio;
|
|
1851
|
+
if (C !== l) {
|
|
1852
|
+
if (!T)
|
|
1814
1853
|
return i();
|
|
1815
|
-
|
|
1854
|
+
C ? i(!1, C) : r = setTimeout(() => {
|
|
1816
1855
|
i(!1, 1e-7);
|
|
1817
|
-
},
|
|
1856
|
+
}, 1e3);
|
|
1818
1857
|
}
|
|
1819
|
-
|
|
1858
|
+
T = !1;
|
|
1820
1859
|
}
|
|
1821
1860
|
try {
|
|
1822
|
-
n = new IntersectionObserver(v,
|
|
1861
|
+
n = new IntersectionObserver(v, j({}, _, {
|
|
1823
1862
|
// Handle <iframe>s
|
|
1824
1863
|
root: o.ownerDocument
|
|
1825
1864
|
}));
|
|
@@ -1830,7 +1869,7 @@ function Jo(e, t) {
|
|
|
1830
1869
|
}
|
|
1831
1870
|
return i(!0), s;
|
|
1832
1871
|
}
|
|
1833
|
-
function
|
|
1872
|
+
function Xo(e, t, n, r) {
|
|
1834
1873
|
r === void 0 && (r = {});
|
|
1835
1874
|
const {
|
|
1836
1875
|
ancestorScroll: o = !0,
|
|
@@ -1838,25 +1877,25 @@ function Go(e, t, n, r) {
|
|
|
1838
1877
|
elementResize: i = typeof ResizeObserver == "function",
|
|
1839
1878
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1840
1879
|
animationFrame: l = !1
|
|
1841
|
-
} = r, u =
|
|
1880
|
+
} = r, u = Jt(e), f = o || s ? [...u ? Ke(u) : [], ...Ke(t)] : [];
|
|
1842
1881
|
f.forEach((w) => {
|
|
1843
1882
|
o && w.addEventListener("scroll", n, {
|
|
1844
1883
|
passive: !0
|
|
1845
1884
|
}), s && w.addEventListener("resize", n);
|
|
1846
1885
|
});
|
|
1847
|
-
const h = u && c ?
|
|
1886
|
+
const h = u && c ? Go(u, n) : null;
|
|
1848
1887
|
let d = -1, m = null;
|
|
1849
1888
|
i && (m = new ResizeObserver((w) => {
|
|
1850
1889
|
let [_] = w;
|
|
1851
1890
|
_ && _.target === u && m && (m.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
1852
|
-
var
|
|
1853
|
-
(
|
|
1891
|
+
var T;
|
|
1892
|
+
(T = m) == null || T.observe(t);
|
|
1854
1893
|
})), n();
|
|
1855
1894
|
}), u && !l && m.observe(u), m.observe(t));
|
|
1856
|
-
let y, E = l ?
|
|
1895
|
+
let y, E = l ? Te(e) : null;
|
|
1857
1896
|
l && S();
|
|
1858
1897
|
function S() {
|
|
1859
|
-
const w =
|
|
1898
|
+
const w = Te(e);
|
|
1860
1899
|
E && (w.x !== E.x || w.y !== E.y || w.width !== E.width || w.height !== E.height) && n(), E = w, y = requestAnimationFrame(S);
|
|
1861
1900
|
}
|
|
1862
1901
|
return n(), () => {
|
|
@@ -1866,47 +1905,53 @@ function Go(e, t, n, r) {
|
|
|
1866
1905
|
}), h == null || h(), (w = m) == null || w.disconnect(), m = null, l && cancelAnimationFrame(y);
|
|
1867
1906
|
};
|
|
1868
1907
|
}
|
|
1869
|
-
const
|
|
1870
|
-
const r = /* @__PURE__ */ new Map(), o =
|
|
1871
|
-
platform:
|
|
1872
|
-
}, n), s =
|
|
1908
|
+
const Zo = ko, Qo = Io, ei = Po, ti = Ao, ni = (e, t, n) => {
|
|
1909
|
+
const r = /* @__PURE__ */ new Map(), o = j({
|
|
1910
|
+
platform: Jo
|
|
1911
|
+
}, n), s = j({}, o.platform, {
|
|
1873
1912
|
_c: r
|
|
1874
1913
|
});
|
|
1875
|
-
return
|
|
1914
|
+
return Ro(e, t, j({}, o, {
|
|
1876
1915
|
platform: s
|
|
1877
1916
|
}));
|
|
1878
1917
|
};
|
|
1879
|
-
function
|
|
1918
|
+
function ri(e) {
|
|
1880
1919
|
e.cleanup && e.cleanup();
|
|
1881
1920
|
const t = e._getResolvedAttachToOptions();
|
|
1882
1921
|
let n = t.element;
|
|
1883
|
-
const r =
|
|
1884
|
-
return o && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup =
|
|
1885
|
-
var s;
|
|
1922
|
+
const r = li(t, e), o = tr(t);
|
|
1923
|
+
return o && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Xo(n, e.el, () => {
|
|
1886
1924
|
if (!e.el) {
|
|
1887
|
-
|
|
1925
|
+
e.cleanup == null || e.cleanup();
|
|
1888
1926
|
return;
|
|
1889
1927
|
}
|
|
1890
|
-
|
|
1928
|
+
si(n, e, r, o);
|
|
1891
1929
|
}), e.target = t.element, r;
|
|
1892
1930
|
}
|
|
1893
|
-
function
|
|
1931
|
+
function oi(e, t) {
|
|
1894
1932
|
return {
|
|
1895
|
-
floatingUIOptions:
|
|
1933
|
+
floatingUIOptions: Ut(e.floatingUIOptions || {}, t.floatingUIOptions || {})
|
|
1896
1934
|
};
|
|
1897
1935
|
}
|
|
1898
|
-
function
|
|
1936
|
+
function ii(e) {
|
|
1899
1937
|
e.cleanup && e.cleanup(), e.cleanup = null;
|
|
1900
1938
|
}
|
|
1901
|
-
function
|
|
1902
|
-
return
|
|
1939
|
+
function si(e, t, n, r) {
|
|
1940
|
+
return ni(e, t.el, n).then(ai(t, r)).then((o) => new Promise((s) => {
|
|
1903
1941
|
setTimeout(() => s(o), 300);
|
|
1904
1942
|
})).then((o) => {
|
|
1905
|
-
o != null && o.el && o.el.focus({
|
|
1943
|
+
o != null && o.el && o.el.focus({
|
|
1944
|
+
preventScroll: !0
|
|
1945
|
+
});
|
|
1906
1946
|
});
|
|
1907
1947
|
}
|
|
1908
|
-
function
|
|
1909
|
-
return ({
|
|
1948
|
+
function ai(e, t) {
|
|
1949
|
+
return ({
|
|
1950
|
+
x: n,
|
|
1951
|
+
y: r,
|
|
1952
|
+
placement: o,
|
|
1953
|
+
middlewareData: s
|
|
1954
|
+
}) => (e.el && (t ? Object.assign(e.el.style, {
|
|
1910
1955
|
position: "fixed",
|
|
1911
1956
|
left: "50%",
|
|
1912
1957
|
top: "50%",
|
|
@@ -1915,39 +1960,44 @@ function si(e, t) {
|
|
|
1915
1960
|
position: "absolute",
|
|
1916
1961
|
left: `${n}px`,
|
|
1917
1962
|
top: `${r}px`
|
|
1918
|
-
}), e.el.dataset.popperPlacement = o,
|
|
1963
|
+
}), e.el.dataset.popperPlacement = o, ci(e.el, s)), e);
|
|
1919
1964
|
}
|
|
1920
|
-
function
|
|
1965
|
+
function ci(e, t) {
|
|
1921
1966
|
const n = e.querySelector(".shepherd-arrow");
|
|
1922
|
-
if (
|
|
1923
|
-
const {
|
|
1967
|
+
if (Je(n) && t.arrow) {
|
|
1968
|
+
const {
|
|
1969
|
+
x: r,
|
|
1970
|
+
y: o
|
|
1971
|
+
} = t.arrow;
|
|
1924
1972
|
Object.assign(n.style, {
|
|
1925
1973
|
left: r != null ? `${r}px` : "",
|
|
1926
1974
|
top: o != null ? `${o}px` : ""
|
|
1927
1975
|
});
|
|
1928
1976
|
}
|
|
1929
1977
|
}
|
|
1930
|
-
function
|
|
1978
|
+
function li(e, t) {
|
|
1931
1979
|
const n = {
|
|
1932
1980
|
strategy: "absolute"
|
|
1933
1981
|
};
|
|
1934
1982
|
n.middleware = [];
|
|
1935
|
-
const r =
|
|
1936
|
-
return
|
|
1937
|
-
|
|
1983
|
+
const r = ui(t);
|
|
1984
|
+
return tr(e) || (n.middleware.push(
|
|
1985
|
+
Qo(),
|
|
1938
1986
|
// Replicate PopperJS default behavior.
|
|
1939
|
-
|
|
1940
|
-
limiter:
|
|
1987
|
+
Zo({
|
|
1988
|
+
limiter: ti(),
|
|
1941
1989
|
crossAxis: !0
|
|
1942
1990
|
})
|
|
1943
|
-
), r && n.middleware.push(
|
|
1991
|
+
), r && n.middleware.push(ei({
|
|
1992
|
+
element: r
|
|
1993
|
+
})), n.placement = e.on), Ut(t.options.floatingUIOptions || {}, n);
|
|
1944
1994
|
}
|
|
1945
|
-
function
|
|
1995
|
+
function ui(e) {
|
|
1946
1996
|
return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
|
|
1947
1997
|
}
|
|
1948
1998
|
function K() {
|
|
1949
1999
|
}
|
|
1950
|
-
function
|
|
2000
|
+
function fi(e, t) {
|
|
1951
2001
|
for (const n in t)
|
|
1952
2002
|
e[n] = t[n];
|
|
1953
2003
|
return (
|
|
@@ -1955,22 +2005,22 @@ function ui(e, t) {
|
|
|
1955
2005
|
e
|
|
1956
2006
|
);
|
|
1957
2007
|
}
|
|
1958
|
-
function
|
|
2008
|
+
function dr(e) {
|
|
1959
2009
|
return e();
|
|
1960
2010
|
}
|
|
1961
|
-
function
|
|
2011
|
+
function Cn() {
|
|
1962
2012
|
return /* @__PURE__ */ Object.create(null);
|
|
1963
2013
|
}
|
|
1964
|
-
function
|
|
1965
|
-
e.forEach(
|
|
2014
|
+
function Xe(e) {
|
|
2015
|
+
e.forEach(dr);
|
|
1966
2016
|
}
|
|
1967
|
-
function
|
|
2017
|
+
function Xt(e) {
|
|
1968
2018
|
return typeof e == "function";
|
|
1969
2019
|
}
|
|
1970
2020
|
function ue(e, t) {
|
|
1971
2021
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
1972
2022
|
}
|
|
1973
|
-
function
|
|
2023
|
+
function di(e) {
|
|
1974
2024
|
return Object.keys(e).length === 0;
|
|
1975
2025
|
}
|
|
1976
2026
|
function Be(e, t) {
|
|
@@ -1979,27 +2029,27 @@ function Be(e, t) {
|
|
|
1979
2029
|
function re(e, t, n) {
|
|
1980
2030
|
e.insertBefore(t, n || null);
|
|
1981
2031
|
}
|
|
1982
|
-
function
|
|
2032
|
+
function Q(e) {
|
|
1983
2033
|
e.parentNode && e.parentNode.removeChild(e);
|
|
1984
2034
|
}
|
|
1985
|
-
function
|
|
2035
|
+
function hi(e, t) {
|
|
1986
2036
|
for (let n = 0; n < e.length; n += 1)
|
|
1987
2037
|
e[n] && e[n].d(t);
|
|
1988
2038
|
}
|
|
1989
|
-
function
|
|
2039
|
+
function se(e) {
|
|
1990
2040
|
return document.createElement(e);
|
|
1991
2041
|
}
|
|
1992
|
-
function
|
|
2042
|
+
function Rn(e) {
|
|
1993
2043
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
1994
2044
|
}
|
|
1995
|
-
function
|
|
2045
|
+
function hr(e) {
|
|
1996
2046
|
return document.createTextNode(e);
|
|
1997
2047
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return
|
|
2048
|
+
function lt() {
|
|
2049
|
+
return hr(" ");
|
|
2000
2050
|
}
|
|
2001
|
-
function
|
|
2002
|
-
return
|
|
2051
|
+
function pi() {
|
|
2052
|
+
return hr("");
|
|
2003
2053
|
}
|
|
2004
2054
|
function ht(e, t, n, r) {
|
|
2005
2055
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
@@ -2007,82 +2057,82 @@ function ht(e, t, n, r) {
|
|
|
2007
2057
|
function A(e, t, n) {
|
|
2008
2058
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
2009
2059
|
}
|
|
2010
|
-
const
|
|
2011
|
-
function
|
|
2060
|
+
const mi = ["width", "height"];
|
|
2061
|
+
function Pn(e, t) {
|
|
2012
2062
|
const n = Object.getOwnPropertyDescriptors(e.__proto__);
|
|
2013
2063
|
for (const r in t)
|
|
2014
|
-
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set &&
|
|
2064
|
+
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && mi.indexOf(r) === -1 ? e[r] = t[r] : A(e, r, t[r]);
|
|
2015
2065
|
}
|
|
2016
|
-
function
|
|
2066
|
+
function gi(e) {
|
|
2017
2067
|
return Array.from(e.childNodes);
|
|
2018
2068
|
}
|
|
2019
2069
|
function Ie(e, t, n) {
|
|
2020
2070
|
e.classList.toggle(t, !!n);
|
|
2021
2071
|
}
|
|
2022
|
-
let
|
|
2023
|
-
function
|
|
2024
|
-
|
|
2072
|
+
let ze;
|
|
2073
|
+
function Ye(e) {
|
|
2074
|
+
ze = e;
|
|
2025
2075
|
}
|
|
2026
|
-
function
|
|
2027
|
-
if (!
|
|
2076
|
+
function pr() {
|
|
2077
|
+
if (!ze)
|
|
2028
2078
|
throw new Error("Function called outside component initialization");
|
|
2029
|
-
return
|
|
2079
|
+
return ze;
|
|
2030
2080
|
}
|
|
2031
|
-
function
|
|
2032
|
-
|
|
2081
|
+
function bi(e) {
|
|
2082
|
+
pr().$$.on_mount.push(e);
|
|
2033
2083
|
}
|
|
2034
|
-
function
|
|
2035
|
-
|
|
2084
|
+
function Zt(e) {
|
|
2085
|
+
pr().$$.after_update.push(e);
|
|
2036
2086
|
}
|
|
2037
2087
|
const Ae = [], $e = [];
|
|
2038
2088
|
let De = [];
|
|
2039
|
-
const
|
|
2040
|
-
let
|
|
2041
|
-
function
|
|
2042
|
-
|
|
2089
|
+
const In = [], yi = /* @__PURE__ */ Promise.resolve();
|
|
2090
|
+
let At = !1;
|
|
2091
|
+
function vi() {
|
|
2092
|
+
At || (At = !0, yi.then(mr));
|
|
2043
2093
|
}
|
|
2044
|
-
function
|
|
2094
|
+
function Mt(e) {
|
|
2045
2095
|
De.push(e);
|
|
2046
2096
|
}
|
|
2047
|
-
const
|
|
2097
|
+
const Tt = /* @__PURE__ */ new Set();
|
|
2048
2098
|
let ke = 0;
|
|
2049
|
-
function
|
|
2099
|
+
function mr() {
|
|
2050
2100
|
if (ke !== 0)
|
|
2051
2101
|
return;
|
|
2052
|
-
const e =
|
|
2102
|
+
const e = ze;
|
|
2053
2103
|
do {
|
|
2054
2104
|
try {
|
|
2055
2105
|
for (; ke < Ae.length; ) {
|
|
2056
2106
|
const t = Ae[ke];
|
|
2057
|
-
ke++,
|
|
2107
|
+
ke++, Ye(t), wi(t.$$);
|
|
2058
2108
|
}
|
|
2059
2109
|
} catch (t) {
|
|
2060
2110
|
throw Ae.length = 0, ke = 0, t;
|
|
2061
2111
|
}
|
|
2062
|
-
for (
|
|
2112
|
+
for (Ye(null), Ae.length = 0, ke = 0; $e.length; )
|
|
2063
2113
|
$e.pop()();
|
|
2064
2114
|
for (let t = 0; t < De.length; t += 1) {
|
|
2065
2115
|
const n = De[t];
|
|
2066
|
-
|
|
2116
|
+
Tt.has(n) || (Tt.add(n), n());
|
|
2067
2117
|
}
|
|
2068
2118
|
De.length = 0;
|
|
2069
2119
|
} while (Ae.length);
|
|
2070
|
-
for (;
|
|
2071
|
-
|
|
2072
|
-
|
|
2120
|
+
for (; In.length; )
|
|
2121
|
+
In.pop()();
|
|
2122
|
+
At = !1, Tt.clear(), Ye(e);
|
|
2073
2123
|
}
|
|
2074
|
-
function
|
|
2124
|
+
function wi(e) {
|
|
2075
2125
|
if (e.fragment !== null) {
|
|
2076
|
-
e.update(),
|
|
2126
|
+
e.update(), Xe(e.before_update);
|
|
2077
2127
|
const t = e.dirty;
|
|
2078
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
2128
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Mt);
|
|
2079
2129
|
}
|
|
2080
2130
|
}
|
|
2081
|
-
function
|
|
2131
|
+
function _i(e) {
|
|
2082
2132
|
const t = [], n = [];
|
|
2083
2133
|
De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
|
|
2084
2134
|
}
|
|
2085
|
-
const
|
|
2135
|
+
const it = /* @__PURE__ */ new Set();
|
|
2086
2136
|
let we;
|
|
2087
2137
|
function Ee() {
|
|
2088
2138
|
we = {
|
|
@@ -2093,25 +2143,25 @@ function Ee() {
|
|
|
2093
2143
|
};
|
|
2094
2144
|
}
|
|
2095
2145
|
function xe() {
|
|
2096
|
-
we.r ||
|
|
2146
|
+
we.r || Xe(we.c), we = we.p;
|
|
2097
2147
|
}
|
|
2098
2148
|
function I(e, t) {
|
|
2099
|
-
e && e.i && (
|
|
2149
|
+
e && e.i && (it.delete(e), e.i(t));
|
|
2100
2150
|
}
|
|
2101
2151
|
function L(e, t, n, r) {
|
|
2102
2152
|
if (e && e.o) {
|
|
2103
|
-
if (
|
|
2153
|
+
if (it.has(e))
|
|
2104
2154
|
return;
|
|
2105
|
-
|
|
2106
|
-
|
|
2155
|
+
it.add(e), we.c.push(() => {
|
|
2156
|
+
it.delete(e), r && (n && e.d(1), r());
|
|
2107
2157
|
}), e.o(t);
|
|
2108
2158
|
} else
|
|
2109
2159
|
r && r();
|
|
2110
2160
|
}
|
|
2111
|
-
function
|
|
2161
|
+
function kn(e) {
|
|
2112
2162
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
2113
2163
|
}
|
|
2114
|
-
function
|
|
2164
|
+
function Ei(e, t) {
|
|
2115
2165
|
const n = {}, r = {}, o = {
|
|
2116
2166
|
$$scope: 1
|
|
2117
2167
|
};
|
|
@@ -2132,7 +2182,7 @@ function _i(e, t) {
|
|
|
2132
2182
|
i in n || (n[i] = void 0);
|
|
2133
2183
|
return n;
|
|
2134
2184
|
}
|
|
2135
|
-
function
|
|
2185
|
+
function Ce(e) {
|
|
2136
2186
|
e && e.c();
|
|
2137
2187
|
}
|
|
2138
2188
|
function ye(e, t, n) {
|
|
@@ -2140,21 +2190,21 @@ function ye(e, t, n) {
|
|
|
2140
2190
|
fragment: r,
|
|
2141
2191
|
after_update: o
|
|
2142
2192
|
} = e.$$;
|
|
2143
|
-
r && r.m(t, n),
|
|
2144
|
-
const s = e.$$.on_mount.map(
|
|
2145
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
2146
|
-
}), o.forEach(
|
|
2193
|
+
r && r.m(t, n), Mt(() => {
|
|
2194
|
+
const s = e.$$.on_mount.map(dr).filter(Xt);
|
|
2195
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Xe(s), e.$$.on_mount = [];
|
|
2196
|
+
}), o.forEach(Mt);
|
|
2147
2197
|
}
|
|
2148
2198
|
function ve(e, t) {
|
|
2149
2199
|
const n = e.$$;
|
|
2150
|
-
n.fragment !== null && (
|
|
2200
|
+
n.fragment !== null && (_i(n.after_update), Xe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
2151
2201
|
}
|
|
2152
|
-
function
|
|
2153
|
-
e.$$.dirty[0] === -1 && (Ae.push(e),
|
|
2202
|
+
function xi(e, t) {
|
|
2203
|
+
e.$$.dirty[0] === -1 && (Ae.push(e), vi(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
2154
2204
|
}
|
|
2155
2205
|
function fe(e, t, n, r, o, s, i = null, c = [-1]) {
|
|
2156
|
-
const l =
|
|
2157
|
-
|
|
2206
|
+
const l = ze;
|
|
2207
|
+
Ye(e);
|
|
2158
2208
|
const u = e.$$ = {
|
|
2159
2209
|
fragment: null,
|
|
2160
2210
|
ctx: [],
|
|
@@ -2162,7 +2212,7 @@ function fe(e, t, n, r, o, s, i = null, c = [-1]) {
|
|
|
2162
2212
|
props: s,
|
|
2163
2213
|
update: K,
|
|
2164
2214
|
not_equal: o,
|
|
2165
|
-
bound:
|
|
2215
|
+
bound: Cn(),
|
|
2166
2216
|
// lifecycle
|
|
2167
2217
|
on_mount: [],
|
|
2168
2218
|
on_destroy: [],
|
|
@@ -2171,7 +2221,7 @@ function fe(e, t, n, r, o, s, i = null, c = [-1]) {
|
|
|
2171
2221
|
after_update: [],
|
|
2172
2222
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
2173
2223
|
// everything else
|
|
2174
|
-
callbacks:
|
|
2224
|
+
callbacks: Cn(),
|
|
2175
2225
|
dirty: c,
|
|
2176
2226
|
skip_bound: !1,
|
|
2177
2227
|
root: t.target || l.$$.root
|
|
@@ -2180,16 +2230,16 @@ function fe(e, t, n, r, o, s, i = null, c = [-1]) {
|
|
|
2180
2230
|
let f = !1;
|
|
2181
2231
|
if (u.ctx = n ? n(e, t.props || {}, (h, d, ...m) => {
|
|
2182
2232
|
const y = m.length ? m[0] : d;
|
|
2183
|
-
return u.ctx && o(u.ctx[h], u.ctx[h] = y) && (!u.skip_bound && u.bound[h] && u.bound[h](y), f &&
|
|
2184
|
-
}) : [], u.update(), f = !0,
|
|
2233
|
+
return u.ctx && o(u.ctx[h], u.ctx[h] = y) && (!u.skip_bound && u.bound[h] && u.bound[h](y), f && xi(e, h)), d;
|
|
2234
|
+
}) : [], u.update(), f = !0, Xe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
2185
2235
|
if (t.hydrate) {
|
|
2186
|
-
const h =
|
|
2187
|
-
u.fragment && u.fragment.l(h), h.forEach(
|
|
2236
|
+
const h = gi(t.target);
|
|
2237
|
+
u.fragment && u.fragment.l(h), h.forEach(Q);
|
|
2188
2238
|
} else
|
|
2189
2239
|
u.fragment && u.fragment.c();
|
|
2190
|
-
t.intro && I(e.$$.fragment), ye(e, t.target, t.anchor),
|
|
2240
|
+
t.intro && I(e.$$.fragment), ye(e, t.target, t.anchor), mr();
|
|
2191
2241
|
}
|
|
2192
|
-
|
|
2242
|
+
Ye(l);
|
|
2193
2243
|
}
|
|
2194
2244
|
class de {
|
|
2195
2245
|
constructor() {
|
|
@@ -2206,7 +2256,7 @@ class de {
|
|
|
2206
2256
|
* @returns {() => void}
|
|
2207
2257
|
*/
|
|
2208
2258
|
$on(t, n) {
|
|
2209
|
-
if (!
|
|
2259
|
+
if (!Xt(n))
|
|
2210
2260
|
return K;
|
|
2211
2261
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
2212
2262
|
return r.push(n), () => {
|
|
@@ -2219,18 +2269,18 @@ class de {
|
|
|
2219
2269
|
* @returns {void}
|
|
2220
2270
|
*/
|
|
2221
2271
|
$set(t) {
|
|
2222
|
-
this.$$set && !
|
|
2272
|
+
this.$$set && !di(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
2223
2273
|
}
|
|
2224
2274
|
}
|
|
2225
|
-
const
|
|
2275
|
+
const Si = "4";
|
|
2226
2276
|
typeof window < "u" && (window.__svelte || (window.__svelte = {
|
|
2227
2277
|
v: /* @__PURE__ */ new Set()
|
|
2228
|
-
})).v.add(
|
|
2229
|
-
function
|
|
2278
|
+
})).v.add(Si);
|
|
2279
|
+
function Oi(e) {
|
|
2230
2280
|
let t, n, r, o, s;
|
|
2231
2281
|
return {
|
|
2232
2282
|
c() {
|
|
2233
|
-
t =
|
|
2283
|
+
t = se("button"), A(t, "aria-label", n = /*label*/
|
|
2234
2284
|
e[3] ? (
|
|
2235
2285
|
/*label*/
|
|
2236
2286
|
e[3]
|
|
@@ -2242,7 +2292,7 @@ function Si(e) {
|
|
|
2242
2292
|
m(i, c) {
|
|
2243
2293
|
re(i, t, c), t.innerHTML = /*text*/
|
|
2244
2294
|
e[5], o || (s = ht(t, "click", function() {
|
|
2245
|
-
|
|
2295
|
+
Xt(
|
|
2246
2296
|
/*action*/
|
|
2247
2297
|
e[0]
|
|
2248
2298
|
) && e[0].apply(this, arguments);
|
|
@@ -2266,11 +2316,11 @@ function Si(e) {
|
|
|
2266
2316
|
i: K,
|
|
2267
2317
|
o: K,
|
|
2268
2318
|
d(i) {
|
|
2269
|
-
i &&
|
|
2319
|
+
i && Q(t), o = !1, s();
|
|
2270
2320
|
}
|
|
2271
2321
|
};
|
|
2272
2322
|
}
|
|
2273
|
-
function
|
|
2323
|
+
function Ti(e, t, n) {
|
|
2274
2324
|
let {
|
|
2275
2325
|
config: r,
|
|
2276
2326
|
step: o
|
|
@@ -2287,23 +2337,23 @@ function Oi(e, t, n) {
|
|
|
2287
2337
|
}
|
|
2288
2338
|
class Ci extends de {
|
|
2289
2339
|
constructor(t) {
|
|
2290
|
-
super(), fe(this, t,
|
|
2340
|
+
super(), fe(this, t, Ti, Oi, ue, {
|
|
2291
2341
|
config: 6,
|
|
2292
2342
|
step: 7
|
|
2293
2343
|
});
|
|
2294
2344
|
}
|
|
2295
2345
|
}
|
|
2296
|
-
function
|
|
2346
|
+
function An(e, t, n) {
|
|
2297
2347
|
const r = e.slice();
|
|
2298
2348
|
return r[2] = t[n], r;
|
|
2299
2349
|
}
|
|
2300
|
-
function
|
|
2301
|
-
let t, n, r =
|
|
2350
|
+
function Mn(e) {
|
|
2351
|
+
let t, n, r = kn(
|
|
2302
2352
|
/*buttons*/
|
|
2303
2353
|
e[1]
|
|
2304
2354
|
), o = [];
|
|
2305
2355
|
for (let i = 0; i < r.length; i += 1)
|
|
2306
|
-
o[i] = An(
|
|
2356
|
+
o[i] = Dn(An(e, r, i));
|
|
2307
2357
|
const s = (i) => L(o[i], 1, 1, () => {
|
|
2308
2358
|
o[i] = null;
|
|
2309
2359
|
});
|
|
@@ -2311,7 +2361,7 @@ function kn(e) {
|
|
|
2311
2361
|
c() {
|
|
2312
2362
|
for (let i = 0; i < o.length; i += 1)
|
|
2313
2363
|
o[i].c();
|
|
2314
|
-
t =
|
|
2364
|
+
t = pi();
|
|
2315
2365
|
},
|
|
2316
2366
|
m(i, c) {
|
|
2317
2367
|
for (let l = 0; l < o.length; l += 1)
|
|
@@ -2321,14 +2371,14 @@ function kn(e) {
|
|
|
2321
2371
|
p(i, c) {
|
|
2322
2372
|
if (c & /*buttons, step*/
|
|
2323
2373
|
3) {
|
|
2324
|
-
r =
|
|
2374
|
+
r = kn(
|
|
2325
2375
|
/*buttons*/
|
|
2326
2376
|
i[1]
|
|
2327
2377
|
);
|
|
2328
2378
|
let l;
|
|
2329
2379
|
for (l = 0; l < r.length; l += 1) {
|
|
2330
|
-
const u =
|
|
2331
|
-
o[l] ? (o[l].p(u, c), I(o[l], 1)) : (o[l] =
|
|
2380
|
+
const u = An(i, r, l);
|
|
2381
|
+
o[l] ? (o[l].p(u, c), I(o[l], 1)) : (o[l] = Dn(u), o[l].c(), I(o[l], 1), o[l].m(t.parentNode, t));
|
|
2332
2382
|
}
|
|
2333
2383
|
for (Ee(), l = r.length; l < o.length; l += 1)
|
|
2334
2384
|
s(l);
|
|
@@ -2349,11 +2399,11 @@ function kn(e) {
|
|
|
2349
2399
|
n = !1;
|
|
2350
2400
|
},
|
|
2351
2401
|
d(i) {
|
|
2352
|
-
i &&
|
|
2402
|
+
i && Q(t), hi(o, i);
|
|
2353
2403
|
}
|
|
2354
2404
|
};
|
|
2355
2405
|
}
|
|
2356
|
-
function
|
|
2406
|
+
function Dn(e) {
|
|
2357
2407
|
let t, n;
|
|
2358
2408
|
return t = new Ci({
|
|
2359
2409
|
props: {
|
|
@@ -2368,7 +2418,7 @@ function An(e) {
|
|
|
2368
2418
|
}
|
|
2369
2419
|
}), {
|
|
2370
2420
|
c() {
|
|
2371
|
-
|
|
2421
|
+
Ce(t.$$.fragment);
|
|
2372
2422
|
},
|
|
2373
2423
|
m(r, o) {
|
|
2374
2424
|
ye(t, r, o), n = !0;
|
|
@@ -2392,14 +2442,14 @@ function An(e) {
|
|
|
2392
2442
|
}
|
|
2393
2443
|
};
|
|
2394
2444
|
}
|
|
2395
|
-
function
|
|
2445
|
+
function Ri(e) {
|
|
2396
2446
|
let t, n, r = (
|
|
2397
2447
|
/*buttons*/
|
|
2398
|
-
e[1] &&
|
|
2448
|
+
e[1] && Mn(e)
|
|
2399
2449
|
);
|
|
2400
2450
|
return {
|
|
2401
2451
|
c() {
|
|
2402
|
-
t =
|
|
2452
|
+
t = se("footer"), r && r.c(), A(t, "class", "shepherd-footer");
|
|
2403
2453
|
},
|
|
2404
2454
|
m(o, s) {
|
|
2405
2455
|
re(o, t, s), r && r.m(t, null), n = !0;
|
|
@@ -2407,7 +2457,7 @@ function Ti(e) {
|
|
|
2407
2457
|
p(o, [s]) {
|
|
2408
2458
|
/*buttons*/
|
|
2409
2459
|
o[1] ? r ? (r.p(o, s), s & /*buttons*/
|
|
2410
|
-
2 && I(r, 1)) : (r =
|
|
2460
|
+
2 && I(r, 1)) : (r = Mn(o), r.c(), I(r, 1), r.m(t, null)) : r && (Ee(), L(r, 1, 1, () => {
|
|
2411
2461
|
r = null;
|
|
2412
2462
|
}), xe());
|
|
2413
2463
|
},
|
|
@@ -2418,11 +2468,11 @@ function Ti(e) {
|
|
|
2418
2468
|
L(r), n = !1;
|
|
2419
2469
|
},
|
|
2420
2470
|
d(o) {
|
|
2421
|
-
o &&
|
|
2471
|
+
o && Q(t), r && r.d();
|
|
2422
2472
|
}
|
|
2423
2473
|
};
|
|
2424
2474
|
}
|
|
2425
|
-
function
|
|
2475
|
+
function Pi(e, t, n) {
|
|
2426
2476
|
let r, {
|
|
2427
2477
|
step: o
|
|
2428
2478
|
} = t;
|
|
@@ -2433,18 +2483,18 @@ function Ri(e, t, n) {
|
|
|
2433
2483
|
1 && n(1, r = o.options.buttons);
|
|
2434
2484
|
}, [o, r];
|
|
2435
2485
|
}
|
|
2436
|
-
class
|
|
2486
|
+
class Ii extends de {
|
|
2437
2487
|
constructor(t) {
|
|
2438
|
-
super(), fe(this, t,
|
|
2488
|
+
super(), fe(this, t, Pi, Ri, ue, {
|
|
2439
2489
|
step: 0
|
|
2440
2490
|
});
|
|
2441
2491
|
}
|
|
2442
2492
|
}
|
|
2443
|
-
function
|
|
2493
|
+
function ki(e) {
|
|
2444
2494
|
let t, n, r, o, s;
|
|
2445
2495
|
return {
|
|
2446
2496
|
c() {
|
|
2447
|
-
t =
|
|
2497
|
+
t = se("button"), n = se("span"), n.textContent = "×", A(n, "aria-hidden", "true"), A(t, "aria-label", r = /*cancelIcon*/
|
|
2448
2498
|
e[0].label ? (
|
|
2449
2499
|
/*cancelIcon*/
|
|
2450
2500
|
e[0].label
|
|
@@ -2469,11 +2519,11 @@ function Ii(e) {
|
|
|
2469
2519
|
i: K,
|
|
2470
2520
|
o: K,
|
|
2471
2521
|
d(i) {
|
|
2472
|
-
i &&
|
|
2522
|
+
i && Q(t), o = !1, s();
|
|
2473
2523
|
}
|
|
2474
2524
|
};
|
|
2475
2525
|
}
|
|
2476
|
-
function
|
|
2526
|
+
function Ai(e, t, n) {
|
|
2477
2527
|
let {
|
|
2478
2528
|
cancelIcon: r,
|
|
2479
2529
|
step: o
|
|
@@ -2485,19 +2535,19 @@ function ki(e, t, n) {
|
|
|
2485
2535
|
"cancelIcon" in i && n(0, r = i.cancelIcon), "step" in i && n(2, o = i.step);
|
|
2486
2536
|
}, [r, s, o];
|
|
2487
2537
|
}
|
|
2488
|
-
class
|
|
2538
|
+
class Mi extends de {
|
|
2489
2539
|
constructor(t) {
|
|
2490
|
-
super(), fe(this, t,
|
|
2540
|
+
super(), fe(this, t, Ai, ki, ue, {
|
|
2491
2541
|
cancelIcon: 0,
|
|
2492
2542
|
step: 2
|
|
2493
2543
|
});
|
|
2494
2544
|
}
|
|
2495
2545
|
}
|
|
2496
|
-
function
|
|
2546
|
+
function Di(e) {
|
|
2497
2547
|
let t;
|
|
2498
2548
|
return {
|
|
2499
2549
|
c() {
|
|
2500
|
-
t =
|
|
2550
|
+
t = se("h3"), A(
|
|
2501
2551
|
t,
|
|
2502
2552
|
"id",
|
|
2503
2553
|
/*labelId*/
|
|
@@ -2519,17 +2569,17 @@ function Mi(e) {
|
|
|
2519
2569
|
i: K,
|
|
2520
2570
|
o: K,
|
|
2521
2571
|
d(n) {
|
|
2522
|
-
n &&
|
|
2572
|
+
n && Q(t), e[3](null);
|
|
2523
2573
|
}
|
|
2524
2574
|
};
|
|
2525
2575
|
}
|
|
2526
|
-
function
|
|
2576
|
+
function Fi(e, t, n) {
|
|
2527
2577
|
let {
|
|
2528
2578
|
labelId: r,
|
|
2529
2579
|
element: o,
|
|
2530
2580
|
title: s
|
|
2531
2581
|
} = t;
|
|
2532
|
-
|
|
2582
|
+
Zt(() => {
|
|
2533
2583
|
pe(s) && n(2, s = s()), n(0, o.innerHTML = s, o);
|
|
2534
2584
|
});
|
|
2535
2585
|
function i(c) {
|
|
@@ -2541,18 +2591,18 @@ function Di(e, t, n) {
|
|
|
2541
2591
|
"labelId" in c && n(1, r = c.labelId), "element" in c && n(0, o = c.element), "title" in c && n(2, s = c.title);
|
|
2542
2592
|
}, [o, r, s, i];
|
|
2543
2593
|
}
|
|
2544
|
-
class
|
|
2594
|
+
class Li extends de {
|
|
2545
2595
|
constructor(t) {
|
|
2546
|
-
super(), fe(this, t,
|
|
2596
|
+
super(), fe(this, t, Fi, Di, ue, {
|
|
2547
2597
|
labelId: 1,
|
|
2548
2598
|
element: 0,
|
|
2549
2599
|
title: 2
|
|
2550
2600
|
});
|
|
2551
2601
|
}
|
|
2552
2602
|
}
|
|
2553
|
-
function
|
|
2603
|
+
function Fn(e) {
|
|
2554
2604
|
let t, n;
|
|
2555
|
-
return t = new
|
|
2605
|
+
return t = new Li({
|
|
2556
2606
|
props: {
|
|
2557
2607
|
labelId: (
|
|
2558
2608
|
/*labelId*/
|
|
@@ -2565,7 +2615,7 @@ function Mn(e) {
|
|
|
2565
2615
|
}
|
|
2566
2616
|
}), {
|
|
2567
2617
|
c() {
|
|
2568
|
-
|
|
2618
|
+
Ce(t.$$.fragment);
|
|
2569
2619
|
},
|
|
2570
2620
|
m(r, o) {
|
|
2571
2621
|
ye(t, r, o), n = !0;
|
|
@@ -2589,9 +2639,9 @@ function Mn(e) {
|
|
|
2589
2639
|
}
|
|
2590
2640
|
};
|
|
2591
2641
|
}
|
|
2592
|
-
function
|
|
2642
|
+
function Ln(e) {
|
|
2593
2643
|
let t, n;
|
|
2594
|
-
return t = new
|
|
2644
|
+
return t = new Mi({
|
|
2595
2645
|
props: {
|
|
2596
2646
|
cancelIcon: (
|
|
2597
2647
|
/*cancelIcon*/
|
|
@@ -2604,7 +2654,7 @@ function Dn(e) {
|
|
|
2604
2654
|
}
|
|
2605
2655
|
}), {
|
|
2606
2656
|
c() {
|
|
2607
|
-
|
|
2657
|
+
Ce(t.$$.fragment);
|
|
2608
2658
|
},
|
|
2609
2659
|
m(r, o) {
|
|
2610
2660
|
ye(t, r, o), n = !0;
|
|
@@ -2628,18 +2678,18 @@ function Dn(e) {
|
|
|
2628
2678
|
}
|
|
2629
2679
|
};
|
|
2630
2680
|
}
|
|
2631
|
-
function
|
|
2681
|
+
function ji(e) {
|
|
2632
2682
|
let t, n, r, o = (
|
|
2633
2683
|
/*title*/
|
|
2634
|
-
e[2] &&
|
|
2684
|
+
e[2] && Fn(e)
|
|
2635
2685
|
), s = (
|
|
2636
2686
|
/*cancelIcon*/
|
|
2637
2687
|
e[3] && /*cancelIcon*/
|
|
2638
|
-
e[3].enabled &&
|
|
2688
|
+
e[3].enabled && Ln(e)
|
|
2639
2689
|
);
|
|
2640
2690
|
return {
|
|
2641
2691
|
c() {
|
|
2642
|
-
t =
|
|
2692
|
+
t = se("header"), o && o.c(), n = lt(), s && s.c(), A(t, "class", "shepherd-header");
|
|
2643
2693
|
},
|
|
2644
2694
|
m(i, c) {
|
|
2645
2695
|
re(i, t, c), o && o.m(t, null), Be(t, n), s && s.m(t, null), r = !0;
|
|
@@ -2647,12 +2697,12 @@ function Li(e) {
|
|
|
2647
2697
|
p(i, [c]) {
|
|
2648
2698
|
/*title*/
|
|
2649
2699
|
i[2] ? o ? (o.p(i, c), c & /*title*/
|
|
2650
|
-
4 && I(o, 1)) : (o =
|
|
2700
|
+
4 && I(o, 1)) : (o = Fn(i), o.c(), I(o, 1), o.m(t, n)) : o && (Ee(), L(o, 1, 1, () => {
|
|
2651
2701
|
o = null;
|
|
2652
2702
|
}), xe()), /*cancelIcon*/
|
|
2653
2703
|
i[3] && /*cancelIcon*/
|
|
2654
2704
|
i[3].enabled ? s ? (s.p(i, c), c & /*cancelIcon*/
|
|
2655
|
-
8 && I(s, 1)) : (s =
|
|
2705
|
+
8 && I(s, 1)) : (s = Ln(i), s.c(), I(s, 1), s.m(t, null)) : s && (Ee(), L(s, 1, 1, () => {
|
|
2656
2706
|
s = null;
|
|
2657
2707
|
}), xe());
|
|
2658
2708
|
},
|
|
@@ -2663,11 +2713,11 @@ function Li(e) {
|
|
|
2663
2713
|
L(o), L(s), r = !1;
|
|
2664
2714
|
},
|
|
2665
2715
|
d(i) {
|
|
2666
|
-
i &&
|
|
2716
|
+
i && Q(t), o && o.d(), s && s.d();
|
|
2667
2717
|
}
|
|
2668
2718
|
};
|
|
2669
2719
|
}
|
|
2670
|
-
function
|
|
2720
|
+
function Bi(e, t, n) {
|
|
2671
2721
|
let {
|
|
2672
2722
|
labelId: r,
|
|
2673
2723
|
step: o
|
|
@@ -2679,19 +2729,19 @@ function ji(e, t, n) {
|
|
|
2679
2729
|
2 && (n(2, s = o.options.title), n(3, i = o.options.cancelIcon));
|
|
2680
2730
|
}, [r, o, s, i];
|
|
2681
2731
|
}
|
|
2682
|
-
class
|
|
2732
|
+
class $i extends de {
|
|
2683
2733
|
constructor(t) {
|
|
2684
|
-
super(), fe(this, t,
|
|
2734
|
+
super(), fe(this, t, Bi, ji, ue, {
|
|
2685
2735
|
labelId: 0,
|
|
2686
2736
|
step: 1
|
|
2687
2737
|
});
|
|
2688
2738
|
}
|
|
2689
2739
|
}
|
|
2690
|
-
function
|
|
2740
|
+
function Wi(e) {
|
|
2691
2741
|
let t;
|
|
2692
2742
|
return {
|
|
2693
2743
|
c() {
|
|
2694
|
-
t =
|
|
2744
|
+
t = se("div"), A(t, "class", "shepherd-text"), A(
|
|
2695
2745
|
t,
|
|
2696
2746
|
"id",
|
|
2697
2747
|
/*descriptionId*/
|
|
@@ -2713,21 +2763,21 @@ function $i(e) {
|
|
|
2713
2763
|
i: K,
|
|
2714
2764
|
o: K,
|
|
2715
2765
|
d(n) {
|
|
2716
|
-
n &&
|
|
2766
|
+
n && Q(t), e[3](null);
|
|
2717
2767
|
}
|
|
2718
2768
|
};
|
|
2719
2769
|
}
|
|
2720
|
-
function
|
|
2770
|
+
function Ni(e, t, n) {
|
|
2721
2771
|
let {
|
|
2722
2772
|
descriptionId: r,
|
|
2723
2773
|
element: o,
|
|
2724
2774
|
step: s
|
|
2725
2775
|
} = t;
|
|
2726
|
-
|
|
2776
|
+
Zt(() => {
|
|
2727
2777
|
let {
|
|
2728
2778
|
text: c
|
|
2729
2779
|
} = s.options;
|
|
2730
|
-
pe(c) && (c = c.call(s)),
|
|
2780
|
+
pe(c) && (c = c.call(s)), Je(c) ? o.appendChild(c) : n(0, o.innerHTML = c, o);
|
|
2731
2781
|
});
|
|
2732
2782
|
function i(c) {
|
|
2733
2783
|
$e[c ? "unshift" : "push"](() => {
|
|
@@ -2738,18 +2788,18 @@ function Wi(e, t, n) {
|
|
|
2738
2788
|
"descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, o = c.element), "step" in c && n(2, s = c.step);
|
|
2739
2789
|
}, [o, r, s, i];
|
|
2740
2790
|
}
|
|
2741
|
-
class
|
|
2791
|
+
class Vi extends de {
|
|
2742
2792
|
constructor(t) {
|
|
2743
|
-
super(), fe(this, t,
|
|
2793
|
+
super(), fe(this, t, Ni, Wi, ue, {
|
|
2744
2794
|
descriptionId: 1,
|
|
2745
2795
|
element: 0,
|
|
2746
2796
|
step: 2
|
|
2747
2797
|
});
|
|
2748
2798
|
}
|
|
2749
2799
|
}
|
|
2750
|
-
function
|
|
2800
|
+
function jn(e) {
|
|
2751
2801
|
let t, n;
|
|
2752
|
-
return t = new
|
|
2802
|
+
return t = new $i({
|
|
2753
2803
|
props: {
|
|
2754
2804
|
labelId: (
|
|
2755
2805
|
/*labelId*/
|
|
@@ -2762,7 +2812,7 @@ function Fn(e) {
|
|
|
2762
2812
|
}
|
|
2763
2813
|
}), {
|
|
2764
2814
|
c() {
|
|
2765
|
-
|
|
2815
|
+
Ce(t.$$.fragment);
|
|
2766
2816
|
},
|
|
2767
2817
|
m(r, o) {
|
|
2768
2818
|
ye(t, r, o), n = !0;
|
|
@@ -2786,9 +2836,9 @@ function Fn(e) {
|
|
|
2786
2836
|
}
|
|
2787
2837
|
};
|
|
2788
2838
|
}
|
|
2789
|
-
function
|
|
2839
|
+
function Bn(e) {
|
|
2790
2840
|
let t, n;
|
|
2791
|
-
return t = new
|
|
2841
|
+
return t = new Vi({
|
|
2792
2842
|
props: {
|
|
2793
2843
|
descriptionId: (
|
|
2794
2844
|
/*descriptionId*/
|
|
@@ -2801,7 +2851,7 @@ function Ln(e) {
|
|
|
2801
2851
|
}
|
|
2802
2852
|
}), {
|
|
2803
2853
|
c() {
|
|
2804
|
-
|
|
2854
|
+
Ce(t.$$.fragment);
|
|
2805
2855
|
},
|
|
2806
2856
|
m(r, o) {
|
|
2807
2857
|
ye(t, r, o), n = !0;
|
|
@@ -2825,9 +2875,9 @@ function Ln(e) {
|
|
|
2825
2875
|
}
|
|
2826
2876
|
};
|
|
2827
2877
|
}
|
|
2828
|
-
function
|
|
2878
|
+
function $n(e) {
|
|
2829
2879
|
let t, n;
|
|
2830
|
-
return t = new
|
|
2880
|
+
return t = new Ii({
|
|
2831
2881
|
props: {
|
|
2832
2882
|
step: (
|
|
2833
2883
|
/*step*/
|
|
@@ -2836,7 +2886,7 @@ function jn(e) {
|
|
|
2836
2886
|
}
|
|
2837
2887
|
}), {
|
|
2838
2888
|
c() {
|
|
2839
|
-
|
|
2889
|
+
Ce(t.$$.fragment);
|
|
2840
2890
|
},
|
|
2841
2891
|
m(r, o) {
|
|
2842
2892
|
ye(t, r, o), n = !0;
|
|
@@ -2858,7 +2908,7 @@ function jn(e) {
|
|
|
2858
2908
|
}
|
|
2859
2909
|
};
|
|
2860
2910
|
}
|
|
2861
|
-
function
|
|
2911
|
+
function Ui(e) {
|
|
2862
2912
|
let t, n = !V(
|
|
2863
2913
|
/*step*/
|
|
2864
2914
|
e[2].options.title
|
|
@@ -2871,10 +2921,10 @@ function Vi(e) {
|
|
|
2871
2921
|
/*step*/
|
|
2872
2922
|
e[2].options.buttons
|
|
2873
2923
|
) && /*step*/
|
|
2874
|
-
e[2].options.buttons.length, c, l = n &&
|
|
2924
|
+
e[2].options.buttons.length, c, l = n && jn(e), u = o && Bn(e), f = i && $n(e);
|
|
2875
2925
|
return {
|
|
2876
2926
|
c() {
|
|
2877
|
-
t =
|
|
2927
|
+
t = se("div"), l && l.c(), r = lt(), u && u.c(), s = lt(), f && f.c(), A(t, "class", "shepherd-content");
|
|
2878
2928
|
},
|
|
2879
2929
|
m(h, d) {
|
|
2880
2930
|
re(h, t, d), l && l.m(t, null), Be(t, r), u && u.m(t, null), Be(t, s), f && f.m(t, null), c = !0;
|
|
@@ -2887,14 +2937,14 @@ function Vi(e) {
|
|
|
2887
2937
|
) || /*step*/
|
|
2888
2938
|
h[2].options.cancelIcon && /*step*/
|
|
2889
2939
|
h[2].options.cancelIcon.enabled), n ? l ? (l.p(h, d), d & /*step*/
|
|
2890
|
-
4 && I(l, 1)) : (l =
|
|
2940
|
+
4 && I(l, 1)) : (l = jn(h), l.c(), I(l, 1), l.m(t, r)) : l && (Ee(), L(l, 1, 1, () => {
|
|
2891
2941
|
l = null;
|
|
2892
2942
|
}), xe()), d & /*step*/
|
|
2893
2943
|
4 && (o = !V(
|
|
2894
2944
|
/*step*/
|
|
2895
2945
|
h[2].options.text
|
|
2896
2946
|
)), o ? u ? (u.p(h, d), d & /*step*/
|
|
2897
|
-
4 && I(u, 1)) : (u =
|
|
2947
|
+
4 && I(u, 1)) : (u = Bn(h), u.c(), I(u, 1), u.m(t, s)) : u && (Ee(), L(u, 1, 1, () => {
|
|
2898
2948
|
u = null;
|
|
2899
2949
|
}), xe()), d & /*step*/
|
|
2900
2950
|
4 && (i = Array.isArray(
|
|
@@ -2902,7 +2952,7 @@ function Vi(e) {
|
|
|
2902
2952
|
h[2].options.buttons
|
|
2903
2953
|
) && /*step*/
|
|
2904
2954
|
h[2].options.buttons.length), i ? f ? (f.p(h, d), d & /*step*/
|
|
2905
|
-
4 && I(f, 1)) : (f =
|
|
2955
|
+
4 && I(f, 1)) : (f = $n(h), f.c(), I(f, 1), f.m(t, null)) : f && (Ee(), L(f, 1, 1, () => {
|
|
2906
2956
|
f = null;
|
|
2907
2957
|
}), xe());
|
|
2908
2958
|
},
|
|
@@ -2913,11 +2963,11 @@ function Vi(e) {
|
|
|
2913
2963
|
L(l), L(u), L(f), c = !1;
|
|
2914
2964
|
},
|
|
2915
2965
|
d(h) {
|
|
2916
|
-
h &&
|
|
2966
|
+
h && Q(t), l && l.d(), u && u.d(), f && f.d();
|
|
2917
2967
|
}
|
|
2918
2968
|
};
|
|
2919
2969
|
}
|
|
2920
|
-
function
|
|
2970
|
+
function Hi(e, t, n) {
|
|
2921
2971
|
let {
|
|
2922
2972
|
descriptionId: r,
|
|
2923
2973
|
labelId: o,
|
|
@@ -2927,38 +2977,38 @@ function Ui(e, t, n) {
|
|
|
2927
2977
|
"descriptionId" in i && n(0, r = i.descriptionId), "labelId" in i && n(1, o = i.labelId), "step" in i && n(2, s = i.step);
|
|
2928
2978
|
}, [r, o, s];
|
|
2929
2979
|
}
|
|
2930
|
-
class
|
|
2980
|
+
class Yi extends de {
|
|
2931
2981
|
constructor(t) {
|
|
2932
|
-
super(), fe(this, t,
|
|
2982
|
+
super(), fe(this, t, Hi, Ui, ue, {
|
|
2933
2983
|
descriptionId: 0,
|
|
2934
2984
|
labelId: 1,
|
|
2935
2985
|
step: 2
|
|
2936
2986
|
});
|
|
2937
2987
|
}
|
|
2938
2988
|
}
|
|
2939
|
-
function
|
|
2989
|
+
function Wn(e) {
|
|
2940
2990
|
let t;
|
|
2941
2991
|
return {
|
|
2942
2992
|
c() {
|
|
2943
|
-
t =
|
|
2993
|
+
t = se("div"), A(t, "class", "shepherd-arrow"), A(t, "data-popper-arrow", "");
|
|
2944
2994
|
},
|
|
2945
2995
|
m(n, r) {
|
|
2946
2996
|
re(n, t, r);
|
|
2947
2997
|
},
|
|
2948
2998
|
d(n) {
|
|
2949
|
-
n &&
|
|
2999
|
+
n && Q(t);
|
|
2950
3000
|
}
|
|
2951
3001
|
};
|
|
2952
3002
|
}
|
|
2953
|
-
function
|
|
3003
|
+
function qi(e) {
|
|
2954
3004
|
let t, n, r, o, s, i, c, l, u = (
|
|
2955
3005
|
/*step*/
|
|
2956
3006
|
e[4].options.arrow && /*step*/
|
|
2957
3007
|
e[4].options.attachTo && /*step*/
|
|
2958
3008
|
e[4].options.attachTo.element && /*step*/
|
|
2959
|
-
e[4].options.attachTo.on &&
|
|
3009
|
+
e[4].options.attachTo.on && Wn()
|
|
2960
3010
|
);
|
|
2961
|
-
r = new
|
|
3011
|
+
r = new Yi({
|
|
2962
3012
|
props: {
|
|
2963
3013
|
descriptionId: (
|
|
2964
3014
|
/*descriptionId*/
|
|
@@ -3001,10 +3051,10 @@ function Yi(e) {
|
|
|
3001
3051
|
}
|
|
3002
3052
|
], h = {};
|
|
3003
3053
|
for (let d = 0; d < f.length; d += 1)
|
|
3004
|
-
h =
|
|
3054
|
+
h = fi(h, f[d]);
|
|
3005
3055
|
return {
|
|
3006
3056
|
c() {
|
|
3007
|
-
t =
|
|
3057
|
+
t = se("div"), u && u.c(), n = lt(), Ce(r.$$.fragment), Pn(t, h), Ie(
|
|
3008
3058
|
t,
|
|
3009
3059
|
"shepherd-has-cancel-icon",
|
|
3010
3060
|
/*hasCancelIcon*/
|
|
@@ -3029,7 +3079,7 @@ function Yi(e) {
|
|
|
3029
3079
|
d[4].options.arrow && /*step*/
|
|
3030
3080
|
d[4].options.attachTo && /*step*/
|
|
3031
3081
|
d[4].options.attachTo.element && /*step*/
|
|
3032
|
-
d[4].options.attachTo.on ? u || (u =
|
|
3082
|
+
d[4].options.attachTo.on ? u || (u = Wn(), u.c(), u.m(t, n)) : u && (u.d(1), u = null);
|
|
3033
3083
|
const y = {};
|
|
3034
3084
|
m & /*descriptionId*/
|
|
3035
3085
|
4 && (y.descriptionId = /*descriptionId*/
|
|
@@ -3037,7 +3087,7 @@ function Yi(e) {
|
|
|
3037
3087
|
8 && (y.labelId = /*labelId*/
|
|
3038
3088
|
d[3]), m & /*step*/
|
|
3039
3089
|
16 && (y.step = /*step*/
|
|
3040
|
-
d[4]), r.$set(y),
|
|
3090
|
+
d[4]), r.$set(y), Pn(t, h = Ei(f, [(!i || m & /*step, descriptionId*/
|
|
3041
3091
|
20 && o !== (o = V(
|
|
3042
3092
|
/*step*/
|
|
3043
3093
|
d[4].options.text
|
|
@@ -3078,15 +3128,15 @@ function Yi(e) {
|
|
|
3078
3128
|
L(r.$$.fragment, d), i = !1;
|
|
3079
3129
|
},
|
|
3080
3130
|
d(d) {
|
|
3081
|
-
d &&
|
|
3131
|
+
d && Q(t), u && u.d(), ve(r), e[13](null), c = !1, l();
|
|
3082
3132
|
}
|
|
3083
3133
|
};
|
|
3084
3134
|
}
|
|
3085
|
-
const
|
|
3086
|
-
function
|
|
3135
|
+
const Ki = 9, zi = 27, Ji = 37, Gi = 39;
|
|
3136
|
+
function Nn(e) {
|
|
3087
3137
|
return e.split(" ").filter((t) => !!t.length);
|
|
3088
3138
|
}
|
|
3089
|
-
function
|
|
3139
|
+
function Xi(e, t, n) {
|
|
3090
3140
|
let {
|
|
3091
3141
|
classPrefix: r,
|
|
3092
3142
|
element: o,
|
|
@@ -3099,48 +3149,48 @@ function Gi(e, t, n) {
|
|
|
3099
3149
|
dataStepId: h
|
|
3100
3150
|
} = t, d, m, y;
|
|
3101
3151
|
const E = () => o;
|
|
3102
|
-
|
|
3152
|
+
bi(() => {
|
|
3103
3153
|
n(1, h = {
|
|
3104
3154
|
[`data-${r}shepherd-step-id`]: f.id
|
|
3105
3155
|
}), n(9, c = o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, i = c[0]), n(10, u = c[c.length - 1]);
|
|
3106
|
-
}),
|
|
3156
|
+
}), Zt(() => {
|
|
3107
3157
|
y !== f.options.classes && S();
|
|
3108
3158
|
});
|
|
3109
3159
|
function S() {
|
|
3110
3160
|
w(y), y = f.options.classes, _(y);
|
|
3111
3161
|
}
|
|
3112
3162
|
function w(g) {
|
|
3113
|
-
if (
|
|
3114
|
-
const
|
|
3115
|
-
|
|
3163
|
+
if (qe(g)) {
|
|
3164
|
+
const C = Nn(g);
|
|
3165
|
+
C.length && o.classList.remove(...C);
|
|
3116
3166
|
}
|
|
3117
3167
|
}
|
|
3118
3168
|
function _(g) {
|
|
3119
|
-
if (
|
|
3120
|
-
const
|
|
3121
|
-
|
|
3169
|
+
if (qe(g)) {
|
|
3170
|
+
const C = Nn(g);
|
|
3171
|
+
C.length && o.classList.add(...C);
|
|
3122
3172
|
}
|
|
3123
3173
|
}
|
|
3124
|
-
const
|
|
3174
|
+
const T = (g) => {
|
|
3125
3175
|
const {
|
|
3126
|
-
tour:
|
|
3176
|
+
tour: C
|
|
3127
3177
|
} = f;
|
|
3128
3178
|
switch (g.keyCode) {
|
|
3129
|
-
case
|
|
3179
|
+
case Ki:
|
|
3130
3180
|
if (c.length === 0) {
|
|
3131
3181
|
g.preventDefault();
|
|
3132
3182
|
break;
|
|
3133
3183
|
}
|
|
3134
3184
|
g.shiftKey ? (document.activeElement === i || document.activeElement.classList.contains("shepherd-element")) && (g.preventDefault(), u.focus()) : document.activeElement === u && (g.preventDefault(), i.focus());
|
|
3135
3185
|
break;
|
|
3136
|
-
case Ki:
|
|
3137
|
-
T.options.exitOnEsc && (g.preventDefault(), g.stopPropagation(), f.cancel());
|
|
3138
|
-
break;
|
|
3139
3186
|
case zi:
|
|
3140
|
-
|
|
3187
|
+
C.options.exitOnEsc && (g.preventDefault(), g.stopPropagation(), f.cancel());
|
|
3141
3188
|
break;
|
|
3142
3189
|
case Ji:
|
|
3143
|
-
|
|
3190
|
+
C.options.keyboardNavigation && (g.preventDefault(), g.stopPropagation(), C.back());
|
|
3191
|
+
break;
|
|
3192
|
+
case Gi:
|
|
3193
|
+
C.options.keyboardNavigation && (g.preventDefault(), g.stopPropagation(), C.next());
|
|
3144
3194
|
break;
|
|
3145
3195
|
}
|
|
3146
3196
|
};
|
|
@@ -3154,11 +3204,11 @@ function Gi(e, t, n) {
|
|
|
3154
3204
|
}, e.$$.update = () => {
|
|
3155
3205
|
e.$$.dirty & /*step*/
|
|
3156
3206
|
16 && (n(5, d = f.options && f.options.cancelIcon && f.options.cancelIcon.enabled), n(6, m = f.options && f.options.title));
|
|
3157
|
-
}, [o, h, s, l, f, d, m,
|
|
3207
|
+
}, [o, h, s, l, f, d, m, T, i, c, u, r, E, v];
|
|
3158
3208
|
}
|
|
3159
|
-
class
|
|
3209
|
+
class Zi extends de {
|
|
3160
3210
|
constructor(t) {
|
|
3161
|
-
super(), fe(this, t,
|
|
3211
|
+
super(), fe(this, t, Xi, qi, ue, {
|
|
3162
3212
|
classPrefix: 11,
|
|
3163
3213
|
element: 0,
|
|
3164
3214
|
descriptionId: 2,
|
|
@@ -3175,9 +3225,9 @@ class Xi extends de {
|
|
|
3175
3225
|
return this.$$.ctx[12];
|
|
3176
3226
|
}
|
|
3177
3227
|
}
|
|
3178
|
-
class
|
|
3228
|
+
class Dt extends Vt {
|
|
3179
3229
|
constructor(t, n = {}) {
|
|
3180
|
-
return super(), this.tour = t, this.classPrefix = this.tour.options ?
|
|
3230
|
+
return super(), this._resolvedAttachTo = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ? er(this.tour.options.classPrefix) : "", this.styles = t.styles, this._resolvedAttachTo = null, Qn(this), this._setOptions(n), this;
|
|
3181
3231
|
}
|
|
3182
3232
|
/**
|
|
3183
3233
|
* Cancel the tour
|
|
@@ -3198,7 +3248,7 @@ class Mt extends Nt {
|
|
|
3198
3248
|
* Triggers `destroy` event
|
|
3199
3249
|
*/
|
|
3200
3250
|
destroy() {
|
|
3201
|
-
|
|
3251
|
+
ii(this), Je(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
|
|
3202
3252
|
}
|
|
3203
3253
|
/**
|
|
3204
3254
|
* Returns the tour for the step
|
|
@@ -3219,7 +3269,7 @@ class Mt extends Nt {
|
|
|
3219
3269
|
* @returns {{}|{element, on}}
|
|
3220
3270
|
*/
|
|
3221
3271
|
_resolveAttachToOptions() {
|
|
3222
|
-
return this._resolvedAttachTo =
|
|
3272
|
+
return this._resolvedAttachTo = yo(this), this._resolvedAttachTo;
|
|
3223
3273
|
}
|
|
3224
3274
|
/**
|
|
3225
3275
|
* A selector for resolved attachTo options.
|
|
@@ -3248,7 +3298,9 @@ class Mt extends Nt {
|
|
|
3248
3298
|
* @param {StepOptions} options The options for the step
|
|
3249
3299
|
*/
|
|
3250
3300
|
updateStepOptions(t) {
|
|
3251
|
-
Object.assign(this.options, t), this.shepherdElementComponent && this.shepherdElementComponent.$set({
|
|
3301
|
+
Object.assign(this.options, t), this.shepherdElementComponent && this.shepherdElementComponent.$set({
|
|
3302
|
+
step: this
|
|
3303
|
+
});
|
|
3252
3304
|
}
|
|
3253
3305
|
/**
|
|
3254
3306
|
* Returns the element for the step
|
|
@@ -3272,7 +3324,7 @@ class Mt extends Nt {
|
|
|
3272
3324
|
*/
|
|
3273
3325
|
_createTooltipContent() {
|
|
3274
3326
|
const t = `${this.id}-description`, n = `${this.id}-label`;
|
|
3275
|
-
return this.shepherdElementComponent = new
|
|
3327
|
+
return this.shepherdElementComponent = new Zi({
|
|
3276
3328
|
target: this.tour.options.stepsContainer || document.body,
|
|
3277
3329
|
props: {
|
|
3278
3330
|
classPrefix: this.classPrefix,
|
|
@@ -3293,8 +3345,10 @@ class Mt extends Nt {
|
|
|
3293
3345
|
* @private
|
|
3294
3346
|
*/
|
|
3295
3347
|
_scrollTo(t) {
|
|
3296
|
-
const {
|
|
3297
|
-
|
|
3348
|
+
const {
|
|
3349
|
+
element: n
|
|
3350
|
+
} = this._getResolvedAttachToOptions();
|
|
3351
|
+
pe(this.options.scrollToHandler) ? this.options.scrollToHandler(n) : Xr(n) && typeof n.scrollIntoView == "function" && n.scrollIntoView(t);
|
|
3298
3352
|
}
|
|
3299
3353
|
/**
|
|
3300
3354
|
* _getClassOptions gets all possible classes for the step
|
|
@@ -3302,10 +3356,7 @@ class Mt extends Nt {
|
|
|
3302
3356
|
* @returns {string} unique string from array of classes
|
|
3303
3357
|
*/
|
|
3304
3358
|
_getClassOptions(t) {
|
|
3305
|
-
const n = this.tour && this.tour.options && this.tour.options.defaultStepOptions, r = t.classes ? t.classes : "", o = n && n.classes ? n.classes : "", s = [
|
|
3306
|
-
...r.split(" "),
|
|
3307
|
-
...o.split(" ")
|
|
3308
|
-
], i = new Set(s);
|
|
3359
|
+
const n = this.tour && this.tour.options && this.tour.options.defaultStepOptions, r = t.classes ? t.classes : "", o = n && n.classes ? n.classes : "", s = [...r.split(" "), ...o.split(" ")], i = new Set(s);
|
|
3309
3360
|
return Array.from(i).join(" ").trim();
|
|
3310
3361
|
}
|
|
3311
3362
|
/**
|
|
@@ -3314,11 +3365,13 @@ class Mt extends Nt {
|
|
|
3314
3365
|
*/
|
|
3315
3366
|
_setOptions(t = {}) {
|
|
3316
3367
|
let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
|
|
3317
|
-
n =
|
|
3368
|
+
n = Ut({}, n || {}), this.options = Object.assign({
|
|
3318
3369
|
arrow: !0
|
|
3319
|
-
}, n, t,
|
|
3320
|
-
const {
|
|
3321
|
-
|
|
3370
|
+
}, n, t, oi(n, t));
|
|
3371
|
+
const {
|
|
3372
|
+
when: r
|
|
3373
|
+
} = this.options;
|
|
3374
|
+
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${nr()}`, r && Object.keys(r).forEach((o) => {
|
|
3322
3375
|
this.on(o, r[o], this);
|
|
3323
3376
|
});
|
|
3324
3377
|
}
|
|
@@ -3327,7 +3380,7 @@ class Mt extends Nt {
|
|
|
3327
3380
|
* @private
|
|
3328
3381
|
*/
|
|
3329
3382
|
_setupElements() {
|
|
3330
|
-
V(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn &&
|
|
3383
|
+
V(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && mo(this), ri(this);
|
|
3331
3384
|
}
|
|
3332
3385
|
/**
|
|
3333
3386
|
* Triggers `before-show`, generates the tooltip DOM content,
|
|
@@ -3335,12 +3388,12 @@ class Mt extends Nt {
|
|
|
3335
3388
|
* @private
|
|
3336
3389
|
*/
|
|
3337
3390
|
_show() {
|
|
3338
|
-
var
|
|
3339
|
-
this.trigger("before-show"), this._resolveAttachToOptions(), this._setupElements(), this.tour.modal || this.tour.setupModal(), (
|
|
3391
|
+
var t;
|
|
3392
|
+
this.trigger("before-show"), this._resolveAttachToOptions(), this._setupElements(), this.tour.modal || this.tour.setupModal(), (t = this.tour.modal) == null || t.setupForStep(this), this._styleTargetElementForStep(this), this.el && (this.el.hidden = !1), this.options.scrollTo && setTimeout(() => {
|
|
3340
3393
|
this._scrollTo(this.options.scrollTo);
|
|
3341
3394
|
}), this.el && (this.el.hidden = !1);
|
|
3342
|
-
const
|
|
3343
|
-
|
|
3395
|
+
const n = this.shepherdElementComponent.getElement(), r = this.target || document.body;
|
|
3396
|
+
r.classList.add(`${this.classPrefix}shepherd-enabled`), r.classList.add(`${this.classPrefix}shepherd-target`), n.classList.add("shepherd-enabled"), this.trigger("show");
|
|
3344
3397
|
}
|
|
3345
3398
|
/**
|
|
3346
3399
|
* Modulates the styles of the passed step's target element, based on the step's options and
|
|
@@ -3363,42 +3416,40 @@ class Mt extends Nt {
|
|
|
3363
3416
|
this.options.highlightClass && t.classList.remove(this.options.highlightClass), t.classList.remove("shepherd-target-click-disabled", `${this.classPrefix}shepherd-enabled`, `${this.classPrefix}shepherd-target`);
|
|
3364
3417
|
}
|
|
3365
3418
|
}
|
|
3366
|
-
function
|
|
3419
|
+
function Qi(e) {
|
|
3367
3420
|
let t = {};
|
|
3368
3421
|
if (e.navigator) {
|
|
3369
3422
|
const n = e.navigator.userAgent;
|
|
3370
|
-
t = {
|
|
3371
|
-
|
|
3372
|
-
$
|
|
3373
|
-
$browser: mr(n, e.navigator.vendor, !!e.opera),
|
|
3423
|
+
t = j({}, t, {
|
|
3424
|
+
$os: ts(e),
|
|
3425
|
+
$browser: gr(n, e.navigator.vendor, !!e.opera),
|
|
3374
3426
|
$referrer: e.document.referrer,
|
|
3375
|
-
$referring_domain:
|
|
3376
|
-
$device:
|
|
3427
|
+
$referring_domain: rs(e.document.referrer),
|
|
3428
|
+
$device: ns(n),
|
|
3377
3429
|
$current_url: e.location.href,
|
|
3378
3430
|
$host: e.location.host,
|
|
3379
3431
|
$pathname: e.location.pathname,
|
|
3380
|
-
$browser_version:
|
|
3432
|
+
$browser_version: es(n, e.navigator.vendor, !!e.opera),
|
|
3381
3433
|
$screen_height: e.screen.height,
|
|
3382
3434
|
$screen_width: e.screen.width,
|
|
3383
3435
|
$screen_dpr: e.devicePixelRatio
|
|
3384
|
-
};
|
|
3436
|
+
});
|
|
3385
3437
|
}
|
|
3386
|
-
return t = {
|
|
3387
|
-
...t,
|
|
3438
|
+
return t = j({}, t, {
|
|
3388
3439
|
$lib: "js",
|
|
3389
3440
|
// $lib_version: version,
|
|
3390
3441
|
$insert_id: Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10),
|
|
3391
3442
|
$time: (/* @__PURE__ */ new Date()).getTime() / 1e3
|
|
3392
3443
|
// epoch time in seconds
|
|
3393
|
-
}, t;
|
|
3444
|
+
}), t;
|
|
3394
3445
|
}
|
|
3395
3446
|
function F(e, t) {
|
|
3396
3447
|
return e.indexOf(t) >= 0;
|
|
3397
3448
|
}
|
|
3398
|
-
function
|
|
3449
|
+
function gr(e, t, n) {
|
|
3399
3450
|
return t = t || "", n || F(e, " OPR/") ? F(e, "Mini") ? "Opera Mini" : "Opera" : /(BlackBerry|PlayBook|BB10)/i.test(e) ? "BlackBerry" : F(e, "IEMobile") || F(e, "WPDesktop") ? "Internet Explorer Mobile" : F(e, "SamsungBrowser/") ? "Samsung Internet" : F(e, "Edge") || F(e, "Edg/") ? "Microsoft Edge" : F(e, "FBIOS") ? "Facebook Mobile" : F(e, "Chrome") ? "Chrome" : F(e, "CriOS") ? "Chrome iOS" : F(e, "UCWEB") || F(e, "UCBrowser") ? "UC Browser" : F(e, "FxiOS") ? "Firefox iOS" : F(t, "Apple") ? F(e, "Mobile") ? "Mobile Safari" : "Safari" : F(e, "Android") ? "Android Mobile" : F(e, "Konqueror") ? "Konqueror" : F(e, "Firefox") ? "Firefox" : F(e, "MSIE") || F(e, "Trident/") ? "Internet Explorer" : F(e, "Gecko") ? "Mozilla" : "";
|
|
3400
3451
|
}
|
|
3401
|
-
function
|
|
3452
|
+
function es(e, t, n) {
|
|
3402
3453
|
const r = {
|
|
3403
3454
|
"Internet Explorer Mobile": /rv:(\d+(\.\d+)?)/,
|
|
3404
3455
|
"Microsoft Edge": /Edge?\/(\d+(\.\d+)?)/,
|
|
@@ -3416,41 +3467,43 @@ function Qi(e, t, n) {
|
|
|
3416
3467
|
"Samsung Internet": /SamsungBrowser\/(\d+(\.\d+)?)/,
|
|
3417
3468
|
"Internet Explorer": /(rv:|MSIE )(\d+(\.\d+)?)/,
|
|
3418
3469
|
Mozilla: /rv:(\d+(\.\d+)?)/
|
|
3419
|
-
}, o =
|
|
3470
|
+
}, o = gr(e, t, n), s = r[o] || void 0;
|
|
3420
3471
|
if (s === void 0)
|
|
3421
3472
|
return null;
|
|
3422
3473
|
const i = e.match(s);
|
|
3423
3474
|
return i ? parseFloat(i[i.length - 2]) : null;
|
|
3424
3475
|
}
|
|
3425
|
-
function
|
|
3476
|
+
function ts(e) {
|
|
3426
3477
|
const t = e.navigator.userAgent;
|
|
3427
3478
|
return /Windows/i.test(t) ? /Phone/.test(t) || /WPDesktop/.test(t) ? "Windows Phone" : "Windows" : /(iPhone|iPad|iPod)/.test(t) ? "iOS" : /Android/.test(t) ? "Android" : /(BlackBerry|PlayBook|BB10)/i.test(t) ? "BlackBerry" : /Mac/i.test(t) ? "Mac OS X" : /Linux/.test(t) ? "Linux" : /CrOS/.test(t) ? "Chrome OS" : "";
|
|
3428
3479
|
}
|
|
3429
|
-
function
|
|
3480
|
+
function ns(e) {
|
|
3430
3481
|
return /Windows Phone/i.test(e) || /WPDesktop/.test(e) ? "Windows Phone" : /iPad/.test(e) ? "iPad" : /iPod/.test(e) ? "iPod Touch" : /iPhone/.test(e) ? "iPhone" : /(BlackBerry|PlayBook|BB10)/i.test(e) ? "BlackBerry" : /Android/.test(e) ? "Android" : "";
|
|
3431
3482
|
}
|
|
3432
|
-
function
|
|
3483
|
+
function rs(e) {
|
|
3433
3484
|
const t = e.split("/");
|
|
3434
3485
|
return t.length >= 3 ? t[2] : "";
|
|
3435
3486
|
}
|
|
3436
|
-
function
|
|
3487
|
+
function os(e) {
|
|
3437
3488
|
if (e) {
|
|
3438
|
-
const {
|
|
3489
|
+
const {
|
|
3490
|
+
steps: t
|
|
3491
|
+
} = e;
|
|
3439
3492
|
t.forEach((n) => {
|
|
3440
|
-
n.options && n.options.canClickTarget === !1 && n.options.attachTo &&
|
|
3493
|
+
n.options && n.options.canClickTarget === !1 && n.options.attachTo && Je(n.target) && n.target.classList.remove("shepherd-target-click-disabled");
|
|
3441
3494
|
});
|
|
3442
3495
|
}
|
|
3443
3496
|
}
|
|
3444
|
-
const
|
|
3445
|
-
let
|
|
3446
|
-
function os() {
|
|
3447
|
-
return Wn || (Wn = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction]);
|
|
3448
|
-
}
|
|
3497
|
+
const Ft = (e, t) => t.some((n) => e instanceof n);
|
|
3498
|
+
let Vn, Un;
|
|
3449
3499
|
function is() {
|
|
3450
|
-
return
|
|
3500
|
+
return Vn || (Vn = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction]);
|
|
3501
|
+
}
|
|
3502
|
+
function ss() {
|
|
3503
|
+
return Un || (Un = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey]);
|
|
3451
3504
|
}
|
|
3452
|
-
const
|
|
3453
|
-
function
|
|
3505
|
+
const Lt = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap();
|
|
3506
|
+
function as(e) {
|
|
3454
3507
|
const t = new Promise((n, r) => {
|
|
3455
3508
|
const o = () => {
|
|
3456
3509
|
e.removeEventListener("success", s), e.removeEventListener("error", i);
|
|
@@ -3463,8 +3516,8 @@ function ss(e) {
|
|
|
3463
3516
|
});
|
|
3464
3517
|
return pt.set(t, e), t;
|
|
3465
3518
|
}
|
|
3466
|
-
function
|
|
3467
|
-
if (
|
|
3519
|
+
function cs(e) {
|
|
3520
|
+
if (Lt.has(e))
|
|
3468
3521
|
return;
|
|
3469
3522
|
const t = new Promise((n, r) => {
|
|
3470
3523
|
const o = () => {
|
|
@@ -3476,13 +3529,13 @@ function as(e) {
|
|
|
3476
3529
|
};
|
|
3477
3530
|
e.addEventListener("complete", s), e.addEventListener("error", i), e.addEventListener("abort", i);
|
|
3478
3531
|
});
|
|
3479
|
-
|
|
3532
|
+
Lt.set(e, t);
|
|
3480
3533
|
}
|
|
3481
|
-
let
|
|
3534
|
+
let jt = {
|
|
3482
3535
|
get(e, t, n) {
|
|
3483
3536
|
if (e instanceof IDBTransaction) {
|
|
3484
3537
|
if (t === "done")
|
|
3485
|
-
return
|
|
3538
|
+
return Lt.get(e);
|
|
3486
3539
|
if (t === "store")
|
|
3487
3540
|
return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
|
|
3488
3541
|
}
|
|
@@ -3495,29 +3548,29 @@ let Lt = {
|
|
|
3495
3548
|
return e instanceof IDBTransaction && (t === "done" || t === "store") ? !0 : t in e;
|
|
3496
3549
|
}
|
|
3497
3550
|
};
|
|
3498
|
-
function
|
|
3499
|
-
|
|
3551
|
+
function br(e) {
|
|
3552
|
+
jt = e(jt);
|
|
3500
3553
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return
|
|
3503
|
-
return e.apply(
|
|
3554
|
+
function ls(e) {
|
|
3555
|
+
return ss().includes(e) ? function(...t) {
|
|
3556
|
+
return e.apply(Bt(this), t), Se(this.request);
|
|
3504
3557
|
} : function(...t) {
|
|
3505
|
-
return Se(e.apply(
|
|
3558
|
+
return Se(e.apply(Bt(this), t));
|
|
3506
3559
|
};
|
|
3507
3560
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return typeof e == "function" ?
|
|
3561
|
+
function us(e) {
|
|
3562
|
+
return typeof e == "function" ? ls(e) : (e instanceof IDBTransaction && cs(e), Ft(e, is()) ? new Proxy(e, jt) : e);
|
|
3510
3563
|
}
|
|
3511
3564
|
function Se(e) {
|
|
3512
3565
|
if (e instanceof IDBRequest)
|
|
3513
|
-
return
|
|
3566
|
+
return as(e);
|
|
3514
3567
|
if (Ct.has(e))
|
|
3515
3568
|
return Ct.get(e);
|
|
3516
|
-
const t =
|
|
3569
|
+
const t = us(e);
|
|
3517
3570
|
return t !== e && (Ct.set(e, t), pt.set(t, e)), t;
|
|
3518
3571
|
}
|
|
3519
|
-
const
|
|
3520
|
-
function
|
|
3572
|
+
const Bt = (e) => pt.get(e);
|
|
3573
|
+
function fs(e, t, {
|
|
3521
3574
|
blocked: n,
|
|
3522
3575
|
upgrade: r,
|
|
3523
3576
|
blocking: o,
|
|
@@ -3536,16 +3589,16 @@ function us(e, t, {
|
|
|
3536
3589
|
}).catch(() => {
|
|
3537
3590
|
}), c;
|
|
3538
3591
|
}
|
|
3539
|
-
const
|
|
3540
|
-
function
|
|
3592
|
+
const ds = ["get", "getKey", "getAll", "getAllKeys", "count"], hs = ["put", "add", "delete", "clear"], Rt = /* @__PURE__ */ new Map();
|
|
3593
|
+
function Hn(e, t) {
|
|
3541
3594
|
if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
|
|
3542
3595
|
return;
|
|
3543
|
-
if (
|
|
3544
|
-
return
|
|
3545
|
-
const n = t.replace(/FromIndex$/, ""), r = t !== n, o =
|
|
3596
|
+
if (Rt.get(t))
|
|
3597
|
+
return Rt.get(t);
|
|
3598
|
+
const n = t.replace(/FromIndex$/, ""), r = t !== n, o = hs.includes(n);
|
|
3546
3599
|
if (
|
|
3547
3600
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
3548
|
-
!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(o ||
|
|
3601
|
+
!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(o || ds.includes(n))
|
|
3549
3602
|
)
|
|
3550
3603
|
return;
|
|
3551
3604
|
const s = async function(c, ...l) {
|
|
@@ -3553,50 +3606,50 @@ function Vn(e, t) {
|
|
|
3553
3606
|
let f = u.store;
|
|
3554
3607
|
return r && (f = f.index(l.shift())), (await Promise.all([f[n](...l), o && u.done]))[0];
|
|
3555
3608
|
};
|
|
3556
|
-
return
|
|
3609
|
+
return Rt.set(t, s), s;
|
|
3557
3610
|
}
|
|
3558
|
-
|
|
3559
|
-
get: (t, n, r) =>
|
|
3560
|
-
has: (t, n) => !!
|
|
3611
|
+
br((e) => j({}, e, {
|
|
3612
|
+
get: (t, n, r) => Hn(t, n) || e.get(t, n, r),
|
|
3613
|
+
has: (t, n) => !!Hn(t, n) || e.has(t, n)
|
|
3561
3614
|
}));
|
|
3562
|
-
const
|
|
3615
|
+
const ps = ["continue", "continuePrimaryKey", "advance"], Yn = {}, $t = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), ms = {
|
|
3563
3616
|
get(e, t) {
|
|
3564
|
-
if (!
|
|
3617
|
+
if (!ps.includes(t))
|
|
3565
3618
|
return e[t];
|
|
3566
|
-
let n =
|
|
3567
|
-
return n || (n =
|
|
3568
|
-
|
|
3619
|
+
let n = Yn[t];
|
|
3620
|
+
return n || (n = Yn[t] = function(...r) {
|
|
3621
|
+
$t.set(this, yr.get(this)[t](...r));
|
|
3569
3622
|
}), n;
|
|
3570
3623
|
}
|
|
3571
3624
|
};
|
|
3572
|
-
function
|
|
3573
|
-
return
|
|
3625
|
+
function gs() {
|
|
3626
|
+
return Wt.apply(this, arguments);
|
|
3574
3627
|
}
|
|
3575
|
-
function
|
|
3576
|
-
return
|
|
3628
|
+
function Wt() {
|
|
3629
|
+
return Wt = Zr(function* (...e) {
|
|
3577
3630
|
let t = this;
|
|
3578
|
-
if (t instanceof IDBCursor || (t = yield
|
|
3631
|
+
if (t instanceof IDBCursor || (t = yield wn(t.openCursor(...e))), !t)
|
|
3579
3632
|
return;
|
|
3580
3633
|
t = t;
|
|
3581
|
-
const n = new Proxy(t,
|
|
3582
|
-
for (
|
|
3583
|
-
yield n, t = yield
|
|
3584
|
-
}),
|
|
3634
|
+
const n = new Proxy(t, ms);
|
|
3635
|
+
for (yr.set(n, t), pt.set(n, Bt(t)); t; )
|
|
3636
|
+
yield n, t = yield wn($t.get(n) || t.continue()), $t.delete(n);
|
|
3637
|
+
}), Wt.apply(this, arguments);
|
|
3585
3638
|
}
|
|
3586
|
-
function
|
|
3587
|
-
return t === Symbol.asyncIterator &&
|
|
3639
|
+
function qn(e, t) {
|
|
3640
|
+
return t === Symbol.asyncIterator && Ft(e, [IDBIndex, IDBObjectStore, IDBCursor]) || t === "iterate" && Ft(e, [IDBIndex, IDBObjectStore]);
|
|
3588
3641
|
}
|
|
3589
|
-
|
|
3642
|
+
br((e) => j({}, e, {
|
|
3590
3643
|
get(t, n, r) {
|
|
3591
|
-
return
|
|
3644
|
+
return qn(t, n) ? gs : e.get(t, n, r);
|
|
3592
3645
|
},
|
|
3593
3646
|
has(t, n) {
|
|
3594
|
-
return
|
|
3647
|
+
return qn(t, n) || e.has(t, n);
|
|
3595
3648
|
}
|
|
3596
3649
|
}));
|
|
3597
|
-
class
|
|
3650
|
+
class bs {
|
|
3598
3651
|
constructor(t, n, r) {
|
|
3599
|
-
if (!t)
|
|
3652
|
+
if (this.apiKey = void 0, this.apiPath = void 0, this.properties = void 0, this.tourStateDb = void 0, !t)
|
|
3600
3653
|
throw new Error("Shepherd Pro: Missing required apiKey option.");
|
|
3601
3654
|
if (!n)
|
|
3602
3655
|
throw new Error("Shepherd Pro: Missing required apiPath option.");
|
|
@@ -3616,8 +3669,10 @@ class gs {
|
|
|
3616
3669
|
});
|
|
3617
3670
|
if (!t.ok)
|
|
3618
3671
|
throw new Error("Could not fetch state for tours 🐑");
|
|
3619
|
-
const {
|
|
3620
|
-
|
|
3672
|
+
const {
|
|
3673
|
+
data: n
|
|
3674
|
+
} = await t.json();
|
|
3675
|
+
if (this.tourStateDb = await fs("TourState", 1, {
|
|
3621
3676
|
upgrade(r) {
|
|
3622
3677
|
r.createObjectStore("tours", {
|
|
3623
3678
|
keyPath: "uniqueId"
|
|
@@ -3648,22 +3703,43 @@ class gs {
|
|
|
3648
3703
|
});
|
|
3649
3704
|
if (!n.ok)
|
|
3650
3705
|
throw new Error("Could not create an event 🐑");
|
|
3651
|
-
const {
|
|
3706
|
+
const {
|
|
3707
|
+
data: r
|
|
3708
|
+
} = await n.json();
|
|
3652
3709
|
return r;
|
|
3653
3710
|
} catch (n) {
|
|
3654
3711
|
throw new Error("Error fetching data: " + (n instanceof Error ? n.message : "Unknown error"));
|
|
3655
3712
|
}
|
|
3656
3713
|
}
|
|
3657
3714
|
}
|
|
3658
|
-
function
|
|
3659
|
-
|
|
3715
|
+
function ys({
|
|
3716
|
+
width: e,
|
|
3717
|
+
height: t,
|
|
3718
|
+
x: n = 0,
|
|
3719
|
+
y: r = 0,
|
|
3720
|
+
r: o = 0
|
|
3721
|
+
}) {
|
|
3722
|
+
const {
|
|
3723
|
+
innerWidth: s,
|
|
3724
|
+
innerHeight: i
|
|
3725
|
+
} = window, {
|
|
3726
|
+
topLeft: c = 0,
|
|
3727
|
+
topRight: l = 0,
|
|
3728
|
+
bottomRight: u = 0,
|
|
3729
|
+
bottomLeft: f = 0
|
|
3730
|
+
} = typeof o == "number" ? {
|
|
3731
|
+
topLeft: o,
|
|
3732
|
+
topRight: o,
|
|
3733
|
+
bottomRight: o,
|
|
3734
|
+
bottomLeft: o
|
|
3735
|
+
} : o;
|
|
3660
3736
|
return `M${s},${i}H0V0H${s}V${i}ZM${n + c},${r}a${c},${c},0,0,0-${c},${c}V${t + r - f}a${f},${f},0,0,0,${f},${f}H${e + n - u}a${u},${u},0,0,0,${u}-${u}V${r + l}a${l},${l},0,0,0-${l}-${l}Z`;
|
|
3661
3737
|
}
|
|
3662
|
-
function
|
|
3738
|
+
function vs(e) {
|
|
3663
3739
|
let t, n, r, o, s;
|
|
3664
3740
|
return {
|
|
3665
3741
|
c() {
|
|
3666
|
-
t =
|
|
3742
|
+
t = Rn("svg"), n = Rn("path"), A(
|
|
3667
3743
|
n,
|
|
3668
3744
|
"d",
|
|
3669
3745
|
/*pathDefinition*/
|
|
@@ -3693,17 +3769,17 @@ function ys(e) {
|
|
|
3693
3769
|
i: K,
|
|
3694
3770
|
o: K,
|
|
3695
3771
|
d(i) {
|
|
3696
|
-
i &&
|
|
3772
|
+
i && Q(t), e[11](null), o = !1, s();
|
|
3697
3773
|
}
|
|
3698
3774
|
};
|
|
3699
3775
|
}
|
|
3700
|
-
function
|
|
3776
|
+
function vr(e) {
|
|
3701
3777
|
if (!e)
|
|
3702
3778
|
return null;
|
|
3703
3779
|
const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
|
|
3704
|
-
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e :
|
|
3780
|
+
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : vr(e.parentElement);
|
|
3705
3781
|
}
|
|
3706
|
-
function
|
|
3782
|
+
function ws(e) {
|
|
3707
3783
|
let t = {
|
|
3708
3784
|
top: 0,
|
|
3709
3785
|
left: 0
|
|
@@ -3723,7 +3799,7 @@ function vs(e) {
|
|
|
3723
3799
|
}
|
|
3724
3800
|
return t;
|
|
3725
3801
|
}
|
|
3726
|
-
function
|
|
3802
|
+
function _s(e, t) {
|
|
3727
3803
|
const n = e.getBoundingClientRect();
|
|
3728
3804
|
let r = n.y || n.top, o = n.bottom || r + n.height;
|
|
3729
3805
|
if (t) {
|
|
@@ -3736,7 +3812,7 @@ function ws(e, t) {
|
|
|
3736
3812
|
height: s
|
|
3737
3813
|
};
|
|
3738
3814
|
}
|
|
3739
|
-
function
|
|
3815
|
+
function Es(e, t, n) {
|
|
3740
3816
|
let {
|
|
3741
3817
|
element: r,
|
|
3742
3818
|
openingProperties: o
|
|
@@ -3755,12 +3831,12 @@ function _s(e, t, n) {
|
|
|
3755
3831
|
function f() {
|
|
3756
3832
|
n(1, s = !1), w();
|
|
3757
3833
|
}
|
|
3758
|
-
function h(v = 0, g = 0,
|
|
3834
|
+
function h(v = 0, g = 0, C = 0, N = 0, ee, $) {
|
|
3759
3835
|
if ($) {
|
|
3760
3836
|
const {
|
|
3761
3837
|
y: H,
|
|
3762
3838
|
height: z
|
|
3763
|
-
} =
|
|
3839
|
+
} = _s($, ee), {
|
|
3764
3840
|
x: J,
|
|
3765
3841
|
width: W,
|
|
3766
3842
|
left: M
|
|
@@ -3768,7 +3844,7 @@ function _s(e, t, n) {
|
|
|
3768
3844
|
n(4, o = {
|
|
3769
3845
|
width: W + v * 2,
|
|
3770
3846
|
height: z + v * 2,
|
|
3771
|
-
x: (J || M) +
|
|
3847
|
+
x: (J || M) + C - v,
|
|
3772
3848
|
y: H + N - v,
|
|
3773
3849
|
r: g
|
|
3774
3850
|
});
|
|
@@ -3799,15 +3875,15 @@ function _s(e, t, n) {
|
|
|
3799
3875
|
function _(v) {
|
|
3800
3876
|
const {
|
|
3801
3877
|
modalOverlayOpeningPadding: g,
|
|
3802
|
-
modalOverlayOpeningRadius:
|
|
3878
|
+
modalOverlayOpeningRadius: C,
|
|
3803
3879
|
modalOverlayOpeningXOffset: N = 0,
|
|
3804
|
-
modalOverlayOpeningYOffset:
|
|
3805
|
-
} = v.options, $ =
|
|
3806
|
-
i = void 0, h(g,
|
|
3880
|
+
modalOverlayOpeningYOffset: ee = 0
|
|
3881
|
+
} = v.options, $ = ws(v.target), H = vr(v.target), z = () => {
|
|
3882
|
+
i = void 0, h(g, C, N + $.left, ee + $.top, H, v.target), i = requestAnimationFrame(z);
|
|
3807
3883
|
};
|
|
3808
3884
|
z(), S();
|
|
3809
3885
|
}
|
|
3810
|
-
function
|
|
3886
|
+
function T(v) {
|
|
3811
3887
|
$e[v ? "unshift" : "push"](() => {
|
|
3812
3888
|
r = v, n(0, r);
|
|
3813
3889
|
});
|
|
@@ -3816,12 +3892,12 @@ function _s(e, t, n) {
|
|
|
3816
3892
|
"element" in v && n(0, r = v.element), "openingProperties" in v && n(4, o = v.openingProperties);
|
|
3817
3893
|
}, e.$$.update = () => {
|
|
3818
3894
|
e.$$.dirty & /*openingProperties*/
|
|
3819
|
-
16 && n(2, c =
|
|
3820
|
-
}, [r, s, c, E, o, l, u, f, h, d, m,
|
|
3895
|
+
16 && n(2, c = ys(o));
|
|
3896
|
+
}, [r, s, c, E, o, l, u, f, h, d, m, T];
|
|
3821
3897
|
}
|
|
3822
|
-
class
|
|
3898
|
+
class xs extends de {
|
|
3823
3899
|
constructor(t) {
|
|
3824
|
-
super(), fe(this, t,
|
|
3900
|
+
super(), fe(this, t, Es, vs, ue, {
|
|
3825
3901
|
element: 0,
|
|
3826
3902
|
openingProperties: 4,
|
|
3827
3903
|
getElement: 5,
|
|
@@ -3851,10 +3927,10 @@ class Es extends de {
|
|
|
3851
3927
|
return this.$$.ctx[10];
|
|
3852
3928
|
}
|
|
3853
3929
|
}
|
|
3854
|
-
const
|
|
3855
|
-
class
|
|
3856
|
-
constructor() {
|
|
3857
|
-
super(...
|
|
3930
|
+
const Ss = "https://shepherdpro.com", Nt = "shepherdPro:userId";
|
|
3931
|
+
class Os extends Vt {
|
|
3932
|
+
constructor(...t) {
|
|
3933
|
+
super(...t), this.apiKey = void 0, this.apiPath = void 0, this.dataRequester = void 0, this.isProEnabled = !1, this.properties = void 0, this.activeTour = void 0;
|
|
3858
3934
|
}
|
|
3859
3935
|
/**
|
|
3860
3936
|
* Call init to take full advantage of ShepherdPro functionality
|
|
@@ -3865,9 +3941,9 @@ class Ss extends Nt {
|
|
|
3865
3941
|
async init(t, n, r) {
|
|
3866
3942
|
if (!t)
|
|
3867
3943
|
throw new Error("Shepherd Pro: Missing required apiKey option.");
|
|
3868
|
-
if (this.apiKey = t, this.apiPath = n ??
|
|
3869
|
-
this.dataRequester = new
|
|
3870
|
-
const o = localStorage.getItem(
|
|
3944
|
+
if (this.apiKey = t, this.apiPath = n ?? Ss, this.properties = r ?? {}, this.properties.context = Qi(window), this.apiKey) {
|
|
3945
|
+
this.dataRequester = new bs(this.apiKey, this.apiPath, this.properties), this.isProEnabled = !0;
|
|
3946
|
+
const o = localStorage.getItem(Nt), s = [this.dataRequester.getTourState()];
|
|
3871
3947
|
o || s.push(this.createNewActor()), await Promise.all(s);
|
|
3872
3948
|
}
|
|
3873
3949
|
}
|
|
@@ -3880,51 +3956,53 @@ class Ss extends Nt {
|
|
|
3880
3956
|
eventType: "setup"
|
|
3881
3957
|
}
|
|
3882
3958
|
});
|
|
3883
|
-
localStorage.setItem(
|
|
3959
|
+
localStorage.setItem(Nt, String(t.actorId));
|
|
3884
3960
|
}
|
|
3885
3961
|
/**
|
|
3886
3962
|
* Checks if a given tour's id is enabled
|
|
3887
3963
|
* @param tourId A string denoting the id of the tour
|
|
3888
3964
|
*/
|
|
3889
3965
|
async isTourEnabled(t) {
|
|
3890
|
-
var r;
|
|
3966
|
+
var n, r;
|
|
3891
3967
|
if (!this.dataRequester)
|
|
3892
3968
|
return;
|
|
3893
|
-
const
|
|
3894
|
-
return (
|
|
3969
|
+
const o = await ((n = this.dataRequester.tourStateDb) == null ? void 0 : n.get("tours", t));
|
|
3970
|
+
return (r = o == null ? void 0 : o.isActive) != null ? r : !0;
|
|
3895
3971
|
}
|
|
3896
3972
|
}
|
|
3897
|
-
class
|
|
3973
|
+
class Ts extends Vt {
|
|
3898
3974
|
constructor(t = {}) {
|
|
3899
|
-
super(), this.trackedEvents = ["active", "cancel", "complete", "show"],
|
|
3975
|
+
super(), this.trackedEvents = ["active", "cancel", "complete", "show"], this.classPrefix = void 0, this.currentStep = void 0, this.focusedElBeforeOpen = void 0, this.id = void 0, this.modal = void 0, this.options = void 0, this.steps = void 0, Qn(this);
|
|
3900
3976
|
const n = {
|
|
3901
3977
|
exitOnEsc: !0,
|
|
3902
3978
|
keyboardNavigation: !0
|
|
3903
3979
|
};
|
|
3904
|
-
this.options = Object.assign({}, n, t), this.classPrefix =
|
|
3905
|
-
"active",
|
|
3906
|
-
"cancel",
|
|
3907
|
-
"complete",
|
|
3908
|
-
"inactive",
|
|
3909
|
-
"show",
|
|
3910
|
-
"start"
|
|
3911
|
-
].map((s) => {
|
|
3980
|
+
this.options = Object.assign({}, n, t), this.classPrefix = er(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((s) => {
|
|
3912
3981
|
((i) => {
|
|
3913
3982
|
this.on(i, (c) => {
|
|
3914
|
-
c = c || {}, c.tour = this,
|
|
3983
|
+
c = c || {}, c.tour = this, te.trigger(i, c);
|
|
3915
3984
|
});
|
|
3916
3985
|
})(s);
|
|
3917
3986
|
}), this._setTourID(t.id);
|
|
3918
|
-
const {
|
|
3987
|
+
const {
|
|
3988
|
+
dataRequester: o
|
|
3989
|
+
} = te;
|
|
3919
3990
|
return o && this.trackedEvents.forEach((s) => this.on(s, (i) => {
|
|
3920
|
-
const {
|
|
3991
|
+
const {
|
|
3992
|
+
tour: c
|
|
3993
|
+
} = i, {
|
|
3994
|
+
id: l,
|
|
3995
|
+
steps: u
|
|
3996
|
+
} = c;
|
|
3921
3997
|
let f;
|
|
3922
3998
|
if (s !== "active") {
|
|
3923
|
-
const {
|
|
3999
|
+
const {
|
|
4000
|
+
step: d
|
|
4001
|
+
} = i;
|
|
3924
4002
|
d && (f = u.findIndex((m) => m.id === d.id) + 1);
|
|
3925
4003
|
}
|
|
3926
4004
|
const h = {
|
|
3927
|
-
currentUserId: localStorage.getItem(
|
|
4005
|
+
currentUserId: localStorage.getItem(Nt),
|
|
3928
4006
|
eventType: s,
|
|
3929
4007
|
journeyData: {
|
|
3930
4008
|
id: l,
|
|
@@ -3933,7 +4011,9 @@ class Os extends Nt {
|
|
|
3933
4011
|
tourOptions: c.options
|
|
3934
4012
|
}
|
|
3935
4013
|
};
|
|
3936
|
-
o.sendEvents({
|
|
4014
|
+
o.sendEvents({
|
|
4015
|
+
data: h
|
|
4016
|
+
});
|
|
3937
4017
|
})), this;
|
|
3938
4018
|
}
|
|
3939
4019
|
/**
|
|
@@ -3945,7 +4025,7 @@ class Os extends Nt {
|
|
|
3945
4025
|
*/
|
|
3946
4026
|
addStep(t, n) {
|
|
3947
4027
|
let r = t;
|
|
3948
|
-
return r instanceof
|
|
4028
|
+
return r instanceof Dt ? r.tour = this : r = new Dt(this, r), V(n) ? this.steps.push(r) : this.steps.splice(n, 0, r), r;
|
|
3949
4029
|
}
|
|
3950
4030
|
/**
|
|
3951
4031
|
* Add multiple steps to the tour
|
|
@@ -4009,7 +4089,7 @@ class Os extends Nt {
|
|
|
4009
4089
|
* Check if the tour is active
|
|
4010
4090
|
*/
|
|
4011
4091
|
isActive() {
|
|
4012
|
-
return
|
|
4092
|
+
return te.activeTour === this;
|
|
4013
4093
|
}
|
|
4014
4094
|
/**
|
|
4015
4095
|
* Go to the next step in the tour
|
|
@@ -4036,7 +4116,7 @@ class Os extends Nt {
|
|
|
4036
4116
|
* @param {boolean} forward - True if we are going forward, false if backward
|
|
4037
4117
|
*/
|
|
4038
4118
|
show(t = 0, n = !0) {
|
|
4039
|
-
const r =
|
|
4119
|
+
const r = qe(t) ? this.getById(t) : this.steps[t];
|
|
4040
4120
|
r && (this._updateStateBeforeShow(), pe(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.trigger("show", {
|
|
4041
4121
|
step: r,
|
|
4042
4122
|
previous: this.currentStep
|
|
@@ -4046,7 +4126,7 @@ class Os extends Nt {
|
|
|
4046
4126
|
* Start the tour
|
|
4047
4127
|
*/
|
|
4048
4128
|
async start() {
|
|
4049
|
-
|
|
4129
|
+
te.isProEnabled && !await te.isTourEnabled(this.options.id) || (this.trigger("start"), this.focusedElBeforeOpen = document.activeElement, this.currentStep = null, this.setupModal(), this._setupActiveTour(), this.next());
|
|
4050
4130
|
}
|
|
4051
4131
|
/**
|
|
4052
4132
|
* Called whenever the tour is cancelled or completed, basically anytime we exit the tour
|
|
@@ -4055,23 +4135,29 @@ class Os extends Nt {
|
|
|
4055
4135
|
*/
|
|
4056
4136
|
_done(t) {
|
|
4057
4137
|
const n = this.steps.indexOf(this.currentStep);
|
|
4058
|
-
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()),
|
|
4138
|
+
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), os(this), this.trigger(t, {
|
|
4139
|
+
index: n
|
|
4140
|
+
}), te.activeTour = null, this.trigger("inactive", {
|
|
4141
|
+
tour: this
|
|
4142
|
+
}), this.modal && this.modal.hide(), (t === "cancel" || t === "complete") && this.modal) {
|
|
4059
4143
|
const r = document.querySelector(".shepherd-modal-overlay-container");
|
|
4060
4144
|
r && (r.remove(), this.modal = null);
|
|
4061
4145
|
}
|
|
4062
|
-
|
|
4146
|
+
Je(this.focusedElBeforeOpen) && this.focusedElBeforeOpen.focus();
|
|
4063
4147
|
}
|
|
4064
4148
|
/**
|
|
4065
4149
|
* Make this tour "active"
|
|
4066
4150
|
*/
|
|
4067
4151
|
_setupActiveTour() {
|
|
4068
|
-
this.trigger("active", {
|
|
4152
|
+
this.trigger("active", {
|
|
4153
|
+
tour: this
|
|
4154
|
+
}), te.activeTour = this;
|
|
4069
4155
|
}
|
|
4070
4156
|
/**
|
|
4071
4157
|
* setupModal create the modal container and instance
|
|
4072
4158
|
*/
|
|
4073
4159
|
setupModal() {
|
|
4074
|
-
this.modal = new
|
|
4160
|
+
this.modal = new xs({
|
|
4075
4161
|
target: this.options.modalContainer || document.body,
|
|
4076
4162
|
props: {
|
|
4077
4163
|
// @ts-expect-error TODO: investigate where styles comes from
|
|
@@ -4108,32 +4194,32 @@ class Os extends Nt {
|
|
|
4108
4194
|
* @private
|
|
4109
4195
|
*/
|
|
4110
4196
|
_setTourID(t) {
|
|
4111
|
-
const n = this.options.tourName || "tour", r = t ||
|
|
4197
|
+
const n = this.options.tourName || "tour", r = t || nr();
|
|
4112
4198
|
this.id = `${n}--${r}`;
|
|
4113
4199
|
}
|
|
4114
4200
|
}
|
|
4115
|
-
const
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
const
|
|
4201
|
+
const te = new Os(), wr = typeof window > "u";
|
|
4202
|
+
te.Step = wr ? go : Dt;
|
|
4203
|
+
te.Tour = wr ? bo : Ts;
|
|
4204
|
+
const Qt = qr(
|
|
4119
4205
|
void 0
|
|
4120
|
-
),
|
|
4121
|
-
const e =
|
|
4206
|
+
), Rs = Qt.Consumer, Ps = () => {
|
|
4207
|
+
const e = Kr(Qt);
|
|
4122
4208
|
if (!e)
|
|
4123
4209
|
throw new Error(
|
|
4124
4210
|
"useShepherd must be used within a ShepherdJourneyProvider"
|
|
4125
4211
|
);
|
|
4126
4212
|
const { Shepherd: t } = e;
|
|
4127
4213
|
return t;
|
|
4128
|
-
},
|
|
4214
|
+
}, Is = ({
|
|
4129
4215
|
apiKey: e,
|
|
4130
4216
|
apiPath: t,
|
|
4131
4217
|
properties: n,
|
|
4132
4218
|
children: r
|
|
4133
|
-
}) => (typeof window < "u" &&
|
|
4219
|
+
}) => (typeof window < "u" && e && te.init(e, t, n), /* @__PURE__ */ Gr.jsx(Qt.Provider, { value: { Shepherd: te }, children: r }));
|
|
4134
4220
|
export {
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4221
|
+
Rs as JourneyMethods,
|
|
4222
|
+
Qt as ShepherdJourneyContext,
|
|
4223
|
+
Is as ShepherdJourneyProvider,
|
|
4224
|
+
Ps as useShepherd
|
|
4139
4225
|
};
|