react-shepherd 6.1.6 → 6.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +713 -683
- package/dist/index.umd.cjs +10 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import $n, { createContext as Mr, useContext as Fr } from "react";
|
|
2
|
+
var Pt = { exports: {} }, ze = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,11 +9,11 @@ var At = { exports: {} }, ze = {};
|
|
|
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
|
-
|
|
16
|
-
var e =
|
|
12
|
+
var hn;
|
|
13
|
+
function Lr() {
|
|
14
|
+
if (hn) return ze;
|
|
15
|
+
hn = 1;
|
|
16
|
+
var e = $n, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function s(c, a, u) {
|
|
18
18
|
var d, h = {}, f = null, g = null;
|
|
19
19
|
u !== void 0 && (f = "" + u), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (g = a.ref);
|
|
@@ -33,10 +33,10 @@ var Je = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var e =
|
|
36
|
+
var pn;
|
|
37
|
+
function Dr() {
|
|
38
|
+
return pn || (pn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var e = $n, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b = Symbol.iterator, E = "@@iterator";
|
|
40
40
|
function S(l) {
|
|
41
41
|
if (l === null || typeof l != "object")
|
|
42
42
|
return null;
|
|
@@ -55,10 +55,10 @@ function Mr() {
|
|
|
55
55
|
{
|
|
56
56
|
var x = _.ReactDebugCurrentFrame, P = x.getStackAddendum();
|
|
57
57
|
P !== "" && (p += "%s", v = v.concat([P]));
|
|
58
|
-
var
|
|
58
|
+
var I = v.map(function(C) {
|
|
59
59
|
return String(C);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
I.unshift("Warning: " + p), Function.prototype.apply.call(console[l], console, I);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
var y = !1, m = !1, R = !1, D = !1, K = !1, W;
|
|
@@ -115,9 +115,9 @@ function Mr() {
|
|
|
115
115
|
var x = l.displayName || null;
|
|
116
116
|
return x !== null ? x : F(l.type) || "Memo";
|
|
117
117
|
case f: {
|
|
118
|
-
var P = l,
|
|
118
|
+
var P = l, I = P._payload, C = P._init;
|
|
119
119
|
try {
|
|
120
|
-
return F(C(
|
|
120
|
+
return F(C(I));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function Mr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var L = Object.assign,
|
|
129
|
-
function
|
|
128
|
+
var L = Object.assign, V = 0, N, ne, fe, Q, Y, re, tt;
|
|
129
|
+
function Gt() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
Gt.__reactDisabledLog = !0;
|
|
132
|
+
function sr() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
N = console.log, ne = console.info,
|
|
134
|
+
if (V === 0) {
|
|
135
|
+
N = console.log, ne = console.info, fe = console.warn, Q = console.error, Y = console.group, re = console.groupCollapsed, tt = console.groupEnd;
|
|
136
136
|
var l = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: Gt,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,12 +149,12 @@ function Mr() {
|
|
|
149
149
|
groupEnd: l
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
V++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function lr() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (V--, V === 0) {
|
|
158
158
|
var l = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
@@ -168,7 +168,7 @@ function Mr() {
|
|
|
168
168
|
value: ne
|
|
169
169
|
}),
|
|
170
170
|
warn: L({}, l, {
|
|
171
|
-
value:
|
|
171
|
+
value: fe
|
|
172
172
|
}),
|
|
173
173
|
error: L({}, l, {
|
|
174
174
|
value: Q
|
|
@@ -184,30 +184,30 @@ function Mr() {
|
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
V < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
190
|
+
var bt = _.ReactCurrentDispatcher, yt;
|
|
191
191
|
function nt(l, p, v) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (yt === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (P) {
|
|
197
197
|
var x = P.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
|
|
198
|
+
yt = x && x[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + yt + l;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var wt = !1, rt;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
rt = new
|
|
206
|
+
var cr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
rt = new cr();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!l ||
|
|
209
|
+
function Zt(l, p) {
|
|
210
|
+
if (!l || wt)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
213
|
var v = rt.get(l);
|
|
@@ -215,11 +215,11 @@ function Mr() {
|
|
|
215
215
|
return v;
|
|
216
216
|
}
|
|
217
217
|
var x;
|
|
218
|
-
|
|
218
|
+
wt = !0;
|
|
219
219
|
var P = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var I;
|
|
222
|
+
I = bt.current, bt.current = null, sr();
|
|
223
223
|
try {
|
|
224
224
|
if (p) {
|
|
225
225
|
var C = function() {
|
|
@@ -232,55 +232,55 @@ function Mr() {
|
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(C, []);
|
|
235
|
-
} catch (
|
|
236
|
-
x =
|
|
235
|
+
} catch (z) {
|
|
236
|
+
x = z;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(l, [], C);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
C.call();
|
|
242
|
-
} catch (
|
|
243
|
-
x =
|
|
242
|
+
} catch (z) {
|
|
243
|
+
x = z;
|
|
244
244
|
}
|
|
245
245
|
l.call(C.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
x =
|
|
250
|
+
} catch (z) {
|
|
251
|
+
x = z;
|
|
252
252
|
}
|
|
253
253
|
l();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var T =
|
|
255
|
+
} catch (z) {
|
|
256
|
+
if (z && x && typeof z.stack == "string") {
|
|
257
|
+
for (var T = z.stack.split(`
|
|
258
258
|
`), q = x.stack.split(`
|
|
259
|
-
`), j = T.length - 1,
|
|
260
|
-
|
|
261
|
-
for (; j >= 1 &&
|
|
262
|
-
if (T[j] !== q[
|
|
263
|
-
if (j !== 1 ||
|
|
259
|
+
`), j = T.length - 1, B = q.length - 1; j >= 1 && B >= 0 && T[j] !== q[B]; )
|
|
260
|
+
B--;
|
|
261
|
+
for (; j >= 1 && B >= 0; j--, B--)
|
|
262
|
+
if (T[j] !== q[B]) {
|
|
263
|
+
if (j !== 1 || B !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (j--,
|
|
265
|
+
if (j--, B--, B < 0 || T[j] !== q[B]) {
|
|
266
266
|
var ee = `
|
|
267
267
|
` + T[j].replace(" at new ", " at ");
|
|
268
268
|
return l.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", l.displayName)), typeof l == "function" && rt.set(l, ee), ee;
|
|
269
269
|
}
|
|
270
|
-
while (j >= 1 &&
|
|
270
|
+
while (j >= 1 && B >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
wt = !1, bt.current = I, lr(), Error.prepareStackTrace = P;
|
|
276
276
|
}
|
|
277
277
|
var Ie = l ? l.displayName || l.name : "", Ee = Ie ? nt(Ie) : "";
|
|
278
278
|
return typeof l == "function" && rt.set(l, Ee), Ee;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function ar(l, p, v) {
|
|
281
|
+
return Zt(l, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ur(l) {
|
|
284
284
|
var p = l.prototype;
|
|
285
285
|
return !!(p && p.isReactComponent);
|
|
286
286
|
}
|
|
@@ -288,7 +288,7 @@ function Mr() {
|
|
|
288
288
|
if (l == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof l == "function")
|
|
291
|
-
return
|
|
291
|
+
return Zt(l, ur(l));
|
|
292
292
|
if (typeof l == "string")
|
|
293
293
|
return nt(l);
|
|
294
294
|
switch (l) {
|
|
@@ -300,32 +300,32 @@ function Mr() {
|
|
|
300
300
|
if (typeof l == "object")
|
|
301
301
|
switch (l.$$typeof) {
|
|
302
302
|
case a:
|
|
303
|
-
return
|
|
303
|
+
return ar(l.render);
|
|
304
304
|
case h:
|
|
305
305
|
return it(l.type, p, v);
|
|
306
306
|
case f: {
|
|
307
|
-
var x = l, P = x._payload,
|
|
307
|
+
var x = l, P = x._payload, I = x._init;
|
|
308
308
|
try {
|
|
309
|
-
return it(
|
|
309
|
+
return it(I(P), p, v);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var Ue = Object.prototype.hasOwnProperty,
|
|
316
|
+
var Ue = Object.prototype.hasOwnProperty, Qt = {}, en = _.ReactDebugCurrentFrame;
|
|
317
317
|
function ot(l) {
|
|
318
318
|
if (l) {
|
|
319
319
|
var p = l._owner, v = it(l.type, l._source, p ? p.type : null);
|
|
320
|
-
|
|
320
|
+
en.setExtraStackFrame(v);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
en.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function fr(l, p, v, x, P) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
326
|
+
var I = Function.call.bind(Ue);
|
|
327
327
|
for (var C in l)
|
|
328
|
-
if (
|
|
328
|
+
if (I(l, C)) {
|
|
329
329
|
var T = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof l[C] != "function") {
|
|
@@ -336,42 +336,42 @@ function Mr() {
|
|
|
336
336
|
} catch (j) {
|
|
337
337
|
T = j;
|
|
338
338
|
}
|
|
339
|
-
T && !(T instanceof Error) && (ot(P), w("%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", v, C, typeof T), ot(null)), T instanceof Error && !(T.message in
|
|
339
|
+
T && !(T instanceof Error) && (ot(P), w("%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", v, C, typeof T), ot(null)), T instanceof Error && !(T.message in Qt) && (Qt[T.message] = !0, ot(P), w("Failed %s type: %s", v, T.message), ot(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
343
|
+
var dr = Array.isArray;
|
|
344
|
+
function _t(l) {
|
|
345
|
+
return dr(l);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function hr(l) {
|
|
348
348
|
{
|
|
349
349
|
var p = typeof Symbol == "function" && Symbol.toStringTag, v = p && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
350
350
|
return v;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function pr(l) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return tn(l), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function tn(l) {
|
|
361
361
|
return "" + l;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
363
|
+
function nn(l) {
|
|
364
|
+
if (pr(l))
|
|
365
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(l)), tn(l);
|
|
366
366
|
}
|
|
367
|
-
var qe = _.ReactCurrentOwner,
|
|
367
|
+
var qe = _.ReactCurrentOwner, gr = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
function
|
|
372
|
+
}, rn, on, Et;
|
|
373
|
+
Et = {};
|
|
374
|
+
function mr(l) {
|
|
375
375
|
if (Ue.call(l, "ref")) {
|
|
376
376
|
var p = Object.getOwnPropertyDescriptor(l, "ref").get;
|
|
377
377
|
if (p && p.isReactWarning)
|
|
@@ -379,7 +379,7 @@ function Mr() {
|
|
|
379
379
|
}
|
|
380
380
|
return l.ref !== void 0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function vr(l) {
|
|
383
383
|
if (Ue.call(l, "key")) {
|
|
384
384
|
var p = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
385
385
|
if (p && p.isReactWarning)
|
|
@@ -387,16 +387,16 @@ function Mr() {
|
|
|
387
387
|
}
|
|
388
388
|
return l.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function br(l, p) {
|
|
391
391
|
if (typeof l.ref == "string" && qe.current && p && qe.current.stateNode !== p) {
|
|
392
392
|
var v = F(qe.current.type);
|
|
393
|
-
|
|
393
|
+
Et[v] || (w('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', F(qe.current.type), l.ref), Et[v] = !0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function yr(l, p) {
|
|
397
397
|
{
|
|
398
398
|
var v = function() {
|
|
399
|
-
|
|
399
|
+
rn || (rn = !0, w("%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));
|
|
400
400
|
};
|
|
401
401
|
v.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
402
402
|
get: v,
|
|
@@ -404,10 +404,10 @@ function Mr() {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function wr(l, p) {
|
|
408
408
|
{
|
|
409
409
|
var v = function() {
|
|
410
|
-
|
|
410
|
+
on || (on = !0, w("%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));
|
|
411
411
|
};
|
|
412
412
|
v.isReactWarning = !0, Object.defineProperty(l, "ref", {
|
|
413
413
|
get: v,
|
|
@@ -415,7 +415,7 @@ function Mr() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var
|
|
418
|
+
var _r = function(l, p, v, x, P, I, C) {
|
|
419
419
|
var T = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: t,
|
|
@@ -425,7 +425,7 @@ function Mr() {
|
|
|
425
425
|
ref: v,
|
|
426
426
|
props: C,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
428
|
+
_owner: I
|
|
429
429
|
};
|
|
430
430
|
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
@@ -444,41 +444,41 @@ function Mr() {
|
|
|
444
444
|
value: P
|
|
445
445
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
446
446
|
};
|
|
447
|
-
function
|
|
447
|
+
function Er(l, p, v, x, P) {
|
|
448
448
|
{
|
|
449
|
-
var
|
|
450
|
-
v !== void 0 && (
|
|
451
|
-
for (
|
|
452
|
-
Ue.call(p,
|
|
449
|
+
var I, C = {}, T = null, q = null;
|
|
450
|
+
v !== void 0 && (nn(v), T = "" + v), vr(p) && (nn(p.key), T = "" + p.key), mr(p) && (q = p.ref, br(p, P));
|
|
451
|
+
for (I in p)
|
|
452
|
+
Ue.call(p, I) && !gr.hasOwnProperty(I) && (C[I] = p[I]);
|
|
453
453
|
if (l && l.defaultProps) {
|
|
454
454
|
var j = l.defaultProps;
|
|
455
|
-
for (
|
|
456
|
-
C[
|
|
455
|
+
for (I in j)
|
|
456
|
+
C[I] === void 0 && (C[I] = j[I]);
|
|
457
457
|
}
|
|
458
458
|
if (T || q) {
|
|
459
|
-
var
|
|
460
|
-
T &&
|
|
459
|
+
var B = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
460
|
+
T && yr(C, B), q && wr(C, B);
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return _r(l, T, q, P, x, qe.current, C);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var
|
|
465
|
+
var xt = _.ReactCurrentOwner, sn = _.ReactDebugCurrentFrame;
|
|
466
466
|
function ke(l) {
|
|
467
467
|
if (l) {
|
|
468
468
|
var p = l._owner, v = it(l.type, l._source, p ? p.type : null);
|
|
469
|
-
|
|
469
|
+
sn.setExtraStackFrame(v);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
sn.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
473
|
+
var St;
|
|
474
|
+
St = !1;
|
|
475
|
+
function Ot(l) {
|
|
476
476
|
return typeof l == "object" && l !== null && l.$$typeof === t;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function ln() {
|
|
479
479
|
{
|
|
480
|
-
if (
|
|
481
|
-
var l = F(
|
|
480
|
+
if (xt.current) {
|
|
481
|
+
var l = F(xt.current.type);
|
|
482
482
|
if (l)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -487,13 +487,13 @@ Check the render method of \`` + l + "`.";
|
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function xr(l) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
493
|
+
var cn = {};
|
|
494
|
+
function Sr(l) {
|
|
495
495
|
{
|
|
496
|
-
var p =
|
|
496
|
+
var p = ln();
|
|
497
497
|
if (!p) {
|
|
498
498
|
var v = typeof l == "string" ? l : l.displayName || l.name;
|
|
499
499
|
v && (p = `
|
|
@@ -503,39 +503,39 @@ Check the top-level render call using <` + v + ">.");
|
|
|
503
503
|
return p;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function an(l, p) {
|
|
507
507
|
{
|
|
508
508
|
if (!l._store || l._store.validated || l.key != null)
|
|
509
509
|
return;
|
|
510
510
|
l._store.validated = !0;
|
|
511
|
-
var v =
|
|
512
|
-
if (
|
|
511
|
+
var v = Sr(p);
|
|
512
|
+
if (cn[v])
|
|
513
513
|
return;
|
|
514
|
-
|
|
514
|
+
cn[v] = !0;
|
|
515
515
|
var x = "";
|
|
516
|
-
l && l._owner && l._owner !==
|
|
516
|
+
l && l._owner && l._owner !== xt.current && (x = " It was passed a child from " + F(l._owner.type) + "."), ke(l), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, x), ke(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function un(l, p) {
|
|
520
520
|
{
|
|
521
521
|
if (typeof l != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
523
|
+
if (_t(l))
|
|
524
524
|
for (var v = 0; v < l.length; v++) {
|
|
525
525
|
var x = l[v];
|
|
526
|
-
|
|
526
|
+
Ot(x) && an(x, p);
|
|
527
527
|
}
|
|
528
|
-
else if (
|
|
528
|
+
else if (Ot(l))
|
|
529
529
|
l._store && (l._store.validated = !0);
|
|
530
530
|
else if (l) {
|
|
531
531
|
var P = S(l);
|
|
532
532
|
if (typeof P == "function" && P !== l.entries)
|
|
533
|
-
for (var
|
|
534
|
-
|
|
533
|
+
for (var I = P.call(l), C; !(C = I.next()).done; )
|
|
534
|
+
Ot(C.value) && an(C.value, p);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Or(l) {
|
|
539
539
|
{
|
|
540
540
|
var p = l.type;
|
|
541
541
|
if (p == null || typeof p == "string")
|
|
@@ -551,16 +551,16 @@ Check the top-level render call using <` + v + ">.");
|
|
|
551
551
|
return;
|
|
552
552
|
if (v) {
|
|
553
553
|
var x = F(p);
|
|
554
|
-
|
|
555
|
-
} else if (p.PropTypes !== void 0 && !
|
|
556
|
-
|
|
554
|
+
fr(v, l.props, "prop", x, l);
|
|
555
|
+
} else if (p.PropTypes !== void 0 && !St) {
|
|
556
|
+
St = !0;
|
|
557
557
|
var P = F(p);
|
|
558
558
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
559
559
|
}
|
|
560
560
|
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Rr(l) {
|
|
564
564
|
{
|
|
565
565
|
for (var p = Object.keys(l.props), v = 0; v < p.length; v++) {
|
|
566
566
|
var x = p[v];
|
|
@@ -572,71 +572,71 @@ Check the top-level render call using <` + v + ">.");
|
|
|
572
572
|
l.ref !== null && (ke(l), w("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
575
|
+
var fn = {};
|
|
576
|
+
function dn(l, p, v, x, P, I) {
|
|
577
577
|
{
|
|
578
578
|
var C = X(l);
|
|
579
579
|
if (!C) {
|
|
580
580
|
var T = "";
|
|
581
581
|
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
-
var q =
|
|
583
|
-
q ? T += q : T +=
|
|
582
|
+
var q = xr();
|
|
583
|
+
q ? T += q : T += ln();
|
|
584
584
|
var j;
|
|
585
|
-
l === null ? j = "null" :
|
|
585
|
+
l === null ? j = "null" : _t(l) ? j = "array" : l !== void 0 && l.$$typeof === t ? (j = "<" + (F(l.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : j = typeof l, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, T);
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
587
|
+
var B = Er(l, p, v, P, I);
|
|
588
|
+
if (B == null)
|
|
589
|
+
return B;
|
|
590
590
|
if (C) {
|
|
591
591
|
var ee = p.children;
|
|
592
592
|
if (ee !== void 0)
|
|
593
593
|
if (x)
|
|
594
|
-
if (
|
|
594
|
+
if (_t(ee)) {
|
|
595
595
|
for (var Ie = 0; Ie < ee.length; Ie++)
|
|
596
|
-
|
|
596
|
+
un(ee[Ie], l);
|
|
597
597
|
Object.freeze && Object.freeze(ee);
|
|
598
598
|
} else
|
|
599
599
|
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
|
-
|
|
601
|
+
un(ee, l);
|
|
602
602
|
}
|
|
603
603
|
if (Ue.call(p, "key")) {
|
|
604
|
-
var Ee = F(l),
|
|
605
|
-
return
|
|
606
|
-
}),
|
|
607
|
-
if (!
|
|
608
|
-
var
|
|
604
|
+
var Ee = F(l), z = Object.keys(p).filter(function(Ir) {
|
|
605
|
+
return Ir !== "key";
|
|
606
|
+
}), Rt = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!fn[Ee + Rt]) {
|
|
608
|
+
var kr = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
|
|
609
609
|
w(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
613
613
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, Rt, Ee, kr, Ee), fn[Ee + Rt] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return l === r ?
|
|
617
|
+
return l === r ? Rr(B) : Or(B), B;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
620
|
+
function Tr(l, p, v) {
|
|
621
|
+
return dn(l, p, v, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
623
|
+
function Cr(l, p, v) {
|
|
624
|
+
return dn(l, p, v, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
Je.Fragment = r, Je.jsx =
|
|
626
|
+
var Ar = Cr, Pr = Tr;
|
|
627
|
+
Je.Fragment = r, Je.jsx = Ar, Je.jsxs = Pr;
|
|
628
628
|
}()), Je;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
632
|
-
/*! shepherd.js 14.
|
|
633
|
-
function
|
|
630
|
+
process.env.NODE_ENV === "production" ? Pt.exports = Lr() : Pt.exports = Dr();
|
|
631
|
+
var jr = Pt.exports;
|
|
632
|
+
/*! shepherd.js 14.4.0 */
|
|
633
|
+
function Hr(e) {
|
|
634
634
|
return e instanceof Element;
|
|
635
635
|
}
|
|
636
636
|
function He(e) {
|
|
637
637
|
return e instanceof HTMLElement;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function ve(e) {
|
|
640
640
|
return typeof e == "function";
|
|
641
641
|
}
|
|
642
642
|
function Xe(e) {
|
|
@@ -645,7 +645,7 @@ function Xe(e) {
|
|
|
645
645
|
function U(e) {
|
|
646
646
|
return e === void 0;
|
|
647
647
|
}
|
|
648
|
-
class
|
|
648
|
+
class Dt {
|
|
649
649
|
/**
|
|
650
650
|
* Adds an event listener for the given event string.
|
|
651
651
|
*
|
|
@@ -722,16 +722,16 @@ class Ft {
|
|
|
722
722
|
return this;
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function J() {
|
|
726
|
+
return J = Object.assign ? Object.assign.bind() : function(e) {
|
|
727
727
|
for (var t = 1; t < arguments.length; t++) {
|
|
728
728
|
var n = arguments[t];
|
|
729
729
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
730
730
|
}
|
|
731
731
|
return e;
|
|
732
|
-
},
|
|
732
|
+
}, J.apply(null, arguments);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function jt(e, t) {
|
|
735
735
|
if (e == null) return {};
|
|
736
736
|
var n = {};
|
|
737
737
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -745,30 +745,30 @@ const ye = {
|
|
|
745
745
|
skip: Symbol("deepmerge-ts: skip")
|
|
746
746
|
};
|
|
747
747
|
ye.defaultMerge;
|
|
748
|
-
function
|
|
748
|
+
function $r(e, t) {
|
|
749
749
|
return t;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Br(e, t) {
|
|
752
752
|
return e.filter((n) => n !== void 0);
|
|
753
753
|
}
|
|
754
|
-
var
|
|
754
|
+
var gn;
|
|
755
755
|
(function(e) {
|
|
756
756
|
e[e.NOT = 0] = "NOT", e[e.RECORD = 1] = "RECORD", e[e.ARRAY = 2] = "ARRAY", e[e.SET = 3] = "SET", e[e.MAP = 4] = "MAP", e[e.OTHER = 5] = "OTHER";
|
|
757
|
-
})(
|
|
758
|
-
function
|
|
759
|
-
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 :
|
|
757
|
+
})(gn || (gn = {}));
|
|
758
|
+
function mn(e) {
|
|
759
|
+
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 : Wr(e) ? 1 : e instanceof Set ? 3 : e instanceof Map ? 4 : 5;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Vr(e) {
|
|
762
762
|
const t = /* @__PURE__ */ new Set();
|
|
763
763
|
for (const n of e)
|
|
764
764
|
for (const r of [...Object.keys(n), ...Object.getOwnPropertySymbols(n)])
|
|
765
765
|
t.add(r);
|
|
766
766
|
return t;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Nr(e, t) {
|
|
769
769
|
return typeof e == "object" && Object.prototype.propertyIsEnumerable.call(e, t);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Bn(e) {
|
|
772
772
|
return {
|
|
773
773
|
*[Symbol.iterator]() {
|
|
774
774
|
for (const t of e)
|
|
@@ -777,9 +777,9 @@ function jn(e) {
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
const
|
|
781
|
-
function
|
|
782
|
-
if (!
|
|
780
|
+
const vn = /* @__PURE__ */ new Set(["[object Object]", "[object Module]"]);
|
|
781
|
+
function Wr(e) {
|
|
782
|
+
if (!vn.has(Object.prototype.toString.call(e)))
|
|
783
783
|
return !1;
|
|
784
784
|
const {
|
|
785
785
|
constructor: t
|
|
@@ -787,20 +787,20 @@ function Vr(e) {
|
|
|
787
787
|
if (t === void 0)
|
|
788
788
|
return !0;
|
|
789
789
|
const n = t.prototype;
|
|
790
|
-
return !(n === null || typeof n != "object" || !
|
|
790
|
+
return !(n === null || typeof n != "object" || !vn.has(Object.prototype.toString.call(n)) || !n.hasOwnProperty("isPrototypeOf"));
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Yr(e, t, n) {
|
|
793
793
|
const r = {};
|
|
794
|
-
for (const i of
|
|
794
|
+
for (const i of Vr(e)) {
|
|
795
795
|
const o = [];
|
|
796
796
|
for (const a of e)
|
|
797
|
-
|
|
797
|
+
Nr(a, i) && o.push(a[i]);
|
|
798
798
|
if (o.length === 0)
|
|
799
799
|
continue;
|
|
800
800
|
const s = t.metaDataUpdater(n, {
|
|
801
801
|
key: i,
|
|
802
802
|
parents: e
|
|
803
|
-
}), c =
|
|
803
|
+
}), c = Vn(o, t, s);
|
|
804
804
|
c !== ye.skip && (i === "__proto__" ? Object.defineProperty(r, i, {
|
|
805
805
|
value: c,
|
|
806
806
|
configurable: !0,
|
|
@@ -810,94 +810,94 @@ function Br(e, t, n) {
|
|
|
810
810
|
}
|
|
811
811
|
return r;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Ur(e) {
|
|
814
814
|
return e.flat();
|
|
815
815
|
}
|
|
816
|
-
function
|
|
817
|
-
return new Set(
|
|
816
|
+
function qr(e) {
|
|
817
|
+
return new Set(Bn(e));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return new Map(
|
|
819
|
+
function zr(e) {
|
|
820
|
+
return new Map(Bn(e));
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Jr(e) {
|
|
823
823
|
return e.at(-1);
|
|
824
824
|
}
|
|
825
825
|
const st = {
|
|
826
|
-
mergeRecords:
|
|
827
|
-
mergeArrays:
|
|
828
|
-
mergeSets:
|
|
829
|
-
mergeMaps:
|
|
830
|
-
mergeOthers:
|
|
826
|
+
mergeRecords: Yr,
|
|
827
|
+
mergeArrays: Ur,
|
|
828
|
+
mergeSets: qr,
|
|
829
|
+
mergeMaps: zr,
|
|
830
|
+
mergeOthers: Jr
|
|
831
831
|
};
|
|
832
|
-
function
|
|
833
|
-
return
|
|
832
|
+
function Ht(...e) {
|
|
833
|
+
return Kr({})(...e);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
const n =
|
|
835
|
+
function Kr(e, t) {
|
|
836
|
+
const n = Xr(e, r);
|
|
837
837
|
function r(...i) {
|
|
838
|
-
return
|
|
838
|
+
return Vn(i, n, t);
|
|
839
839
|
}
|
|
840
840
|
return r;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Xr(e, t) {
|
|
843
843
|
var n, r, i;
|
|
844
844
|
return {
|
|
845
845
|
defaultMergeFunctions: st,
|
|
846
|
-
mergeFunctions:
|
|
847
|
-
metaDataUpdater: (n = e.metaDataUpdater) != null ? n :
|
|
846
|
+
mergeFunctions: J({}, st, Object.fromEntries(Object.entries(e).filter(([o, s]) => Object.hasOwn(st, o)).map(([o, s]) => s === !1 ? [o, st.mergeOthers] : [o, s]))),
|
|
847
|
+
metaDataUpdater: (n = e.metaDataUpdater) != null ? n : $r,
|
|
848
848
|
deepmerge: t,
|
|
849
849
|
useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
|
|
850
|
-
filterValues: e.filterValues === !1 ? void 0 : (i = e.filterValues) != null ? i :
|
|
850
|
+
filterValues: e.filterValues === !1 ? void 0 : (i = e.filterValues) != null ? i : Br,
|
|
851
851
|
actions: ye
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Vn(e, t, n) {
|
|
855
855
|
var r;
|
|
856
856
|
const i = (r = t.filterValues == null ? void 0 : t.filterValues(e, n)) != null ? r : e;
|
|
857
857
|
if (i.length === 0)
|
|
858
858
|
return;
|
|
859
859
|
if (i.length === 1)
|
|
860
|
-
return
|
|
861
|
-
const o =
|
|
860
|
+
return Tt(i, t, n);
|
|
861
|
+
const o = mn(i[0]);
|
|
862
862
|
if (o !== 0 && o !== 5) {
|
|
863
863
|
for (let s = 1; s < i.length; s++)
|
|
864
|
-
if (
|
|
865
|
-
return
|
|
864
|
+
if (mn(i[s]) !== o)
|
|
865
|
+
return Tt(i, t, n);
|
|
866
866
|
}
|
|
867
867
|
switch (o) {
|
|
868
868
|
case 1:
|
|
869
|
-
return
|
|
869
|
+
return Gr(i, t, n);
|
|
870
870
|
case 2:
|
|
871
|
-
return
|
|
871
|
+
return Zr(i, t, n);
|
|
872
872
|
case 3:
|
|
873
|
-
return
|
|
873
|
+
return Qr(i, t, n);
|
|
874
874
|
case 4:
|
|
875
|
-
return
|
|
875
|
+
return ei(i, t, n);
|
|
876
876
|
default:
|
|
877
|
-
return
|
|
877
|
+
return Tt(i, t, n);
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Gr(e, t, n) {
|
|
881
881
|
const r = t.mergeFunctions.mergeRecords(e, t, n);
|
|
882
882
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeRecords !== t.defaultMergeFunctions.mergeRecords ? t.defaultMergeFunctions.mergeRecords(e, t, n) : r;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Zr(e, t, n) {
|
|
885
885
|
const r = t.mergeFunctions.mergeArrays(e, t, n);
|
|
886
886
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeArrays !== t.defaultMergeFunctions.mergeArrays ? t.defaultMergeFunctions.mergeArrays(e) : r;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Qr(e, t, n) {
|
|
889
889
|
const r = t.mergeFunctions.mergeSets(e, t, n);
|
|
890
890
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeSets !== t.defaultMergeFunctions.mergeSets ? t.defaultMergeFunctions.mergeSets(e) : r;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function ei(e, t, n) {
|
|
893
893
|
const r = t.mergeFunctions.mergeMaps(e, t, n);
|
|
894
894
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeMaps !== t.defaultMergeFunctions.mergeMaps ? t.defaultMergeFunctions.mergeMaps(e) : r;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Tt(e, t, n) {
|
|
897
897
|
const r = t.mergeFunctions.mergeOthers(e, t, n);
|
|
898
898
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeOthers !== t.defaultMergeFunctions.mergeOthers ? t.defaultMergeFunctions.mergeOthers(e) : r;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function $t(e) {
|
|
901
901
|
const t = Object.getOwnPropertyNames(e.constructor.prototype);
|
|
902
902
|
for (let n = 0; n < t.length; n++) {
|
|
903
903
|
const r = t[n], i = e[r];
|
|
@@ -905,7 +905,7 @@ function jt(e) {
|
|
|
905
905
|
}
|
|
906
906
|
return e;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function ti(e, t) {
|
|
909
909
|
return (n) => {
|
|
910
910
|
if (e.isOpen()) {
|
|
911
911
|
const r = e.el && n.currentTarget === e.el;
|
|
@@ -913,13 +913,13 @@ function Zr(e, t) {
|
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function ni(e) {
|
|
917
917
|
const {
|
|
918
918
|
event: t,
|
|
919
919
|
selector: n
|
|
920
920
|
} = e.options.advanceOn || {};
|
|
921
921
|
if (t) {
|
|
922
|
-
const r =
|
|
922
|
+
const r = ti(e, n);
|
|
923
923
|
let i = null;
|
|
924
924
|
if (!U(n) && (i = document.querySelector(n), !i))
|
|
925
925
|
return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
|
|
@@ -927,20 +927,20 @@ function Qr(e) {
|
|
|
927
927
|
} else
|
|
928
928
|
return console.error("advanceOn was defined, but no event name was passed.");
|
|
929
929
|
}
|
|
930
|
-
class
|
|
930
|
+
class ri {
|
|
931
931
|
constructor(t) {
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
class
|
|
934
|
+
class ii {
|
|
935
935
|
constructor(t, n) {
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Nn(e) {
|
|
939
939
|
return !Xe(e) || e === "" ? "" : e.charAt(e.length - 1) !== "-" ? `${e}-` : e;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function oi(e) {
|
|
942
942
|
const t = e.options.attachTo || {}, n = Object.assign({}, t);
|
|
943
|
-
if (
|
|
943
|
+
if (ve(n.element) && (n.element = n.element.call(e)), Xe(n.element)) {
|
|
944
944
|
try {
|
|
945
945
|
n.element = document.querySelector(n.element);
|
|
946
946
|
} catch {
|
|
@@ -949,69 +949,69 @@ function ni(e) {
|
|
|
949
949
|
}
|
|
950
950
|
return n;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function si(e) {
|
|
953
953
|
return e.options.extraHighlights ? e.options.extraHighlights.flatMap((t) => Array.from(document.querySelectorAll(t))) : [];
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Wn(e) {
|
|
956
956
|
return e == null ? !0 : !e.element || !e.on;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Yn() {
|
|
959
959
|
let e = Date.now();
|
|
960
960
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
961
961
|
const n = (e + Math.random() * 16) % 16 | 0;
|
|
962
962
|
return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
|
-
const
|
|
965
|
+
const li = ["top", "right", "bottom", "left"], bn = ["start", "end"], yn = /* @__PURE__ */ li.reduce((e, t) => e.concat(t, t + "-" + bn[0], t + "-" + bn[1]), []), $e = Math.min, Oe = Math.max, at = Math.round, lt = Math.floor, le = (e) => ({
|
|
966
966
|
x: e,
|
|
967
967
|
y: e
|
|
968
|
-
}),
|
|
968
|
+
}), ci = {
|
|
969
969
|
left: "right",
|
|
970
970
|
right: "left",
|
|
971
971
|
bottom: "top",
|
|
972
972
|
top: "bottom"
|
|
973
|
-
},
|
|
973
|
+
}, ai = {
|
|
974
974
|
start: "end",
|
|
975
975
|
end: "start"
|
|
976
976
|
};
|
|
977
|
-
function
|
|
977
|
+
function kt(e, t, n) {
|
|
978
978
|
return Oe(e, $e(t, n));
|
|
979
979
|
}
|
|
980
980
|
function Ce(e, t) {
|
|
981
981
|
return typeof e == "function" ? e(t) : e;
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function he(e) {
|
|
984
984
|
return e.split("-")[0];
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function de(e) {
|
|
987
987
|
return e.split("-")[1];
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function Bt(e) {
|
|
990
990
|
return e === "x" ? "y" : "x";
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function Vt(e) {
|
|
993
993
|
return e === "y" ? "height" : "width";
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
return ["top", "bottom"].includes(
|
|
995
|
+
function Be(e) {
|
|
996
|
+
return ["top", "bottom"].includes(he(e)) ? "y" : "x";
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
return
|
|
998
|
+
function Nt(e) {
|
|
999
|
+
return Bt(Be(e));
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function Un(e, t, n) {
|
|
1002
1002
|
n === void 0 && (n = !1);
|
|
1003
|
-
const r =
|
|
1003
|
+
const r = de(e), i = Nt(e), o = Vt(i);
|
|
1004
1004
|
let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1005
1005
|
return t.reference[o] > t.floating[o] && (s = ft(s)), [s, ft(s)];
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function ui(e) {
|
|
1008
1008
|
const t = ft(e);
|
|
1009
1009
|
return [ut(e), t, ut(t)];
|
|
1010
1010
|
}
|
|
1011
1011
|
function ut(e) {
|
|
1012
|
-
return e.replace(/start|end/g, (t) =>
|
|
1012
|
+
return e.replace(/start|end/g, (t) => ai[t]);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function fi(e, t, n) {
|
|
1015
1015
|
const r = ["left", "right"], i = ["right", "left"], o = ["top", "bottom"], s = ["bottom", "top"];
|
|
1016
1016
|
switch (e) {
|
|
1017
1017
|
case "top":
|
|
@@ -1024,24 +1024,24 @@ function ci(e, t, n) {
|
|
|
1024
1024
|
return [];
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const i =
|
|
1029
|
-
let o =
|
|
1027
|
+
function di(e, t, n, r) {
|
|
1028
|
+
const i = de(e);
|
|
1029
|
+
let o = fi(he(e), n === "start", r);
|
|
1030
1030
|
return i && (o = o.map((s) => s + "-" + i), t && (o = o.concat(o.map(ut)))), o;
|
|
1031
1031
|
}
|
|
1032
1032
|
function ft(e) {
|
|
1033
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1033
|
+
return e.replace(/left|right|bottom|top/g, (t) => ci[t]);
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1035
|
+
function hi(e) {
|
|
1036
|
+
return J({
|
|
1037
1037
|
top: 0,
|
|
1038
1038
|
right: 0,
|
|
1039
1039
|
bottom: 0,
|
|
1040
1040
|
left: 0
|
|
1041
1041
|
}, e);
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
return typeof e != "number" ?
|
|
1043
|
+
function qn(e) {
|
|
1044
|
+
return typeof e != "number" ? hi(e) : {
|
|
1045
1045
|
top: e,
|
|
1046
1046
|
right: e,
|
|
1047
1047
|
bottom: e,
|
|
@@ -1066,13 +1066,13 @@ function dt(e) {
|
|
|
1066
1066
|
y: n
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
|
-
const
|
|
1070
|
-
function
|
|
1069
|
+
const pi = ["crossAxis", "alignment", "allowedPlacements", "autoAlignment"], gi = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], mi = ["mainAxis", "crossAxis", "limiter"];
|
|
1070
|
+
function wn(e, t, n) {
|
|
1071
1071
|
let {
|
|
1072
1072
|
reference: r,
|
|
1073
1073
|
floating: i
|
|
1074
1074
|
} = e;
|
|
1075
|
-
const o =
|
|
1075
|
+
const o = Be(t), s = Nt(t), c = Vt(s), a = he(t), u = o === "y", d = r.x + r.width / 2 - i.width / 2, h = r.y + r.height / 2 - i.height / 2, f = r[c] / 2 - i[c] / 2;
|
|
1076
1076
|
let g;
|
|
1077
1077
|
switch (a) {
|
|
1078
1078
|
case "top":
|
|
@@ -1105,7 +1105,7 @@ function vn(e, t, n) {
|
|
|
1105
1105
|
y: r.y
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
|
-
switch (
|
|
1108
|
+
switch (de(t)) {
|
|
1109
1109
|
case "start":
|
|
1110
1110
|
g[s] -= f * (n && u ? -1 : 1);
|
|
1111
1111
|
break;
|
|
@@ -1115,7 +1115,7 @@ function vn(e, t, n) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
return g;
|
|
1117
1117
|
}
|
|
1118
|
-
const
|
|
1118
|
+
const vi = async (e, t, n) => {
|
|
1119
1119
|
const {
|
|
1120
1120
|
placement: r = "bottom",
|
|
1121
1121
|
strategy: i = "absolute",
|
|
@@ -1129,7 +1129,7 @@ const pi = async (e, t, n) => {
|
|
|
1129
1129
|
}), {
|
|
1130
1130
|
x: d,
|
|
1131
1131
|
y: h
|
|
1132
|
-
} =
|
|
1132
|
+
} = wn(u, r, a), f = r, g = {}, b = 0;
|
|
1133
1133
|
for (let E = 0; E < c.length; E++) {
|
|
1134
1134
|
const {
|
|
1135
1135
|
name: S,
|
|
@@ -1153,8 +1153,8 @@ const pi = async (e, t, n) => {
|
|
|
1153
1153
|
floating: t
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
|
-
d = w ?? d, h = O ?? h, g =
|
|
1157
|
-
[S]:
|
|
1156
|
+
d = w ?? d, h = O ?? h, g = J({}, g, {
|
|
1157
|
+
[S]: J({}, g[S], y)
|
|
1158
1158
|
}), m && b <= 50 && (b++, typeof m == "object" && (m.placement && (f = m.placement), m.rects && (u = m.rects === !0 ? await s.getElementRects({
|
|
1159
1159
|
reference: e,
|
|
1160
1160
|
floating: t,
|
|
@@ -1162,7 +1162,7 @@ const pi = async (e, t, n) => {
|
|
|
1162
1162
|
}) : m.rects), {
|
|
1163
1163
|
x: d,
|
|
1164
1164
|
y: h
|
|
1165
|
-
} =
|
|
1165
|
+
} = wn(u, f, a)), E = -1);
|
|
1166
1166
|
}
|
|
1167
1167
|
return {
|
|
1168
1168
|
x: d,
|
|
@@ -1172,7 +1172,7 @@ const pi = async (e, t, n) => {
|
|
|
1172
1172
|
middlewareData: g
|
|
1173
1173
|
};
|
|
1174
1174
|
};
|
|
1175
|
-
async function
|
|
1175
|
+
async function Wt(e, t) {
|
|
1176
1176
|
var n;
|
|
1177
1177
|
t === void 0 && (t = {});
|
|
1178
1178
|
const {
|
|
@@ -1188,7 +1188,7 @@ async function Bt(e, t) {
|
|
|
1188
1188
|
elementContext: h = "floating",
|
|
1189
1189
|
altBoundary: f = !1,
|
|
1190
1190
|
padding: g = 0
|
|
1191
|
-
} = Ce(t, e), b =
|
|
1191
|
+
} = Ce(t, e), b = qn(g), S = c[f ? h === "floating" ? "reference" : "floating" : h], _ = dt(await o.getClippingRect({
|
|
1192
1192
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(S))) == null || n ? S : S.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(c.floating)),
|
|
1193
1193
|
boundary: u,
|
|
1194
1194
|
rootBoundary: d,
|
|
@@ -1217,7 +1217,7 @@ async function Bt(e, t) {
|
|
|
1217
1217
|
right: (m.right - _.right + b.right) / y.x
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
1220
|
-
const
|
|
1220
|
+
const bi = (e) => ({
|
|
1221
1221
|
name: "arrow",
|
|
1222
1222
|
options: e,
|
|
1223
1223
|
async fn(t) {
|
|
@@ -1235,18 +1235,18 @@ const gi = (e) => ({
|
|
|
1235
1235
|
} = Ce(e, t) || {};
|
|
1236
1236
|
if (u == null)
|
|
1237
1237
|
return {};
|
|
1238
|
-
const h =
|
|
1238
|
+
const h = qn(d), f = {
|
|
1239
1239
|
x: n,
|
|
1240
1240
|
y: r
|
|
1241
|
-
}, g =
|
|
1241
|
+
}, g = Nt(i), b = Vt(g), E = await s.getDimensions(u), S = g === "y", _ = S ? "top" : "left", w = S ? "bottom" : "right", O = S ? "clientHeight" : "clientWidth", y = o.reference[b] + o.reference[g] - f[g] - o.floating[b], m = f[g] - o.reference[g], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
1242
1242
|
let D = R ? R[O] : 0;
|
|
1243
1243
|
(!D || !await (s.isElement == null ? void 0 : s.isElement(R))) && (D = c.floating[O] || o.floating[b]);
|
|
1244
|
-
const K = y / 2 - m / 2, W = D / 2 - E[b] / 2 - 1, X = $e(h[_], W), $ = $e(h[w], W), A = X, F = D - E[b] - $, L = D / 2 - E[b] / 2 + K,
|
|
1244
|
+
const K = y / 2 - m / 2, W = D / 2 - E[b] / 2 - 1, X = $e(h[_], W), $ = $e(h[w], W), A = X, F = D - E[b] - $, L = D / 2 - E[b] / 2 + K, V = kt(A, L, F), N = !a.arrow && de(i) != null && L !== V && o.reference[b] / 2 - (L < A ? X : $) - E[b] / 2 < 0, ne = N ? L < A ? L - A : L - F : 0;
|
|
1245
1245
|
return {
|
|
1246
1246
|
[g]: f[g] + ne,
|
|
1247
|
-
data:
|
|
1248
|
-
[g]:
|
|
1249
|
-
centerOffset: L -
|
|
1247
|
+
data: J({
|
|
1248
|
+
[g]: V,
|
|
1249
|
+
centerOffset: L - V - ne
|
|
1250
1250
|
}, N && {
|
|
1251
1251
|
alignmentOffset: ne
|
|
1252
1252
|
}),
|
|
@@ -1254,10 +1254,10 @@ const gi = (e) => ({
|
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
1256
|
});
|
|
1257
|
-
function
|
|
1258
|
-
return (e ? [...n.filter((i) =>
|
|
1257
|
+
function yi(e, t, n) {
|
|
1258
|
+
return (e ? [...n.filter((i) => de(i) === e), ...n.filter((i) => de(i) !== e)] : n.filter((i) => he(i) === i)).filter((i) => e ? de(i) === e || (t ? ut(i) !== i : !1) : !0);
|
|
1259
1259
|
}
|
|
1260
|
-
const
|
|
1260
|
+
const wi = function(t) {
|
|
1261
1261
|
return t === void 0 && (t = {}), {
|
|
1262
1262
|
name: "autoPlacement",
|
|
1263
1263
|
options: t,
|
|
@@ -1272,19 +1272,19 @@ const vi = function(t) {
|
|
|
1272
1272
|
} = n, h = Ce(t, n), {
|
|
1273
1273
|
crossAxis: f = !1,
|
|
1274
1274
|
alignment: g,
|
|
1275
|
-
allowedPlacements: b =
|
|
1275
|
+
allowedPlacements: b = yn,
|
|
1276
1276
|
autoAlignment: E = !0
|
|
1277
|
-
} = h, S =
|
|
1277
|
+
} = h, S = jt(h, pi), _ = g !== void 0 || b === yn ? yi(g || null, E, b) : b, w = await Wt(n, S), O = ((r = c.autoPlacement) == null ? void 0 : r.index) || 0, y = _[O];
|
|
1278
1278
|
if (y == null)
|
|
1279
1279
|
return {};
|
|
1280
|
-
const m =
|
|
1280
|
+
const m = Un(y, s, await (u.isRTL == null ? void 0 : u.isRTL(d.floating)));
|
|
1281
1281
|
if (a !== y)
|
|
1282
1282
|
return {
|
|
1283
1283
|
reset: {
|
|
1284
1284
|
placement: _[0]
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
|
-
const R = [w[
|
|
1287
|
+
const R = [w[he(y)], w[m[0]], w[m[1]]], D = [...((i = c.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
1288
1288
|
placement: y,
|
|
1289
1289
|
overflows: R
|
|
1290
1290
|
}], K = _[O + 1];
|
|
@@ -1299,10 +1299,10 @@ const vi = function(t) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
1301
|
const W = D.map((A) => {
|
|
1302
|
-
const F =
|
|
1302
|
+
const F = de(A.placement);
|
|
1303
1303
|
return [A.placement, F && f ? (
|
|
1304
1304
|
// Check along the mainAxis and main crossAxis side.
|
|
1305
|
-
A.overflows.slice(0, 2).reduce((L,
|
|
1305
|
+
A.overflows.slice(0, 2).reduce((L, V) => L + V, 0)
|
|
1306
1306
|
) : (
|
|
1307
1307
|
// Check only the mainAxis.
|
|
1308
1308
|
A.overflows[0]
|
|
@@ -1311,7 +1311,7 @@ const vi = function(t) {
|
|
|
1311
1311
|
0,
|
|
1312
1312
|
// Aligned placements should not check their opposite crossAxis
|
|
1313
1313
|
// side.
|
|
1314
|
-
|
|
1314
|
+
de(A[0]) ? 2 : 3
|
|
1315
1315
|
).every((F) => F <= 0))[0]) == null ? void 0 : o[0]) || W[0][0];
|
|
1316
1316
|
return $ !== a ? {
|
|
1317
1317
|
data: {
|
|
@@ -1324,7 +1324,7 @@ const vi = function(t) {
|
|
|
1324
1324
|
} : {};
|
|
1325
1325
|
}
|
|
1326
1326
|
};
|
|
1327
|
-
},
|
|
1327
|
+
}, _i = function(t) {
|
|
1328
1328
|
return t === void 0 && (t = {}), {
|
|
1329
1329
|
name: "flip",
|
|
1330
1330
|
options: t,
|
|
@@ -1344,15 +1344,15 @@ const vi = function(t) {
|
|
|
1344
1344
|
fallbackStrategy: E = "bestFit",
|
|
1345
1345
|
fallbackAxisSideDirection: S = "none",
|
|
1346
1346
|
flipAlignment: _ = !0
|
|
1347
|
-
} = h, w =
|
|
1347
|
+
} = h, w = jt(h, gi);
|
|
1348
1348
|
if ((r = s.arrow) != null && r.alignmentOffset)
|
|
1349
1349
|
return {};
|
|
1350
|
-
const O =
|
|
1351
|
-
!b && K && D.push(...
|
|
1352
|
-
const W = [a, ...D], X = await
|
|
1350
|
+
const O = he(o), y = Be(a), m = he(a) === a, R = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), D = b || (m || !_ ? [ft(a)] : ui(a)), K = S !== "none";
|
|
1351
|
+
!b && K && D.push(...di(a, _, S, R));
|
|
1352
|
+
const W = [a, ...D], X = await Wt(n, w), $ = [];
|
|
1353
1353
|
let A = ((i = s.flip) == null ? void 0 : i.overflows) || [];
|
|
1354
1354
|
if (f && $.push(X[O]), g) {
|
|
1355
|
-
const N =
|
|
1355
|
+
const N = Un(o, c, R);
|
|
1356
1356
|
$.push(X[N[0]], X[N[1]]);
|
|
1357
1357
|
}
|
|
1358
1358
|
if (A = [...A, {
|
|
@@ -1371,38 +1371,38 @@ const vi = function(t) {
|
|
|
1371
1371
|
placement: ne
|
|
1372
1372
|
}
|
|
1373
1373
|
};
|
|
1374
|
-
let
|
|
1375
|
-
if (!
|
|
1374
|
+
let fe = (L = A.filter((Q) => Q.overflows[0] <= 0).sort((Q, Y) => Q.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
1375
|
+
if (!fe)
|
|
1376
1376
|
switch (E) {
|
|
1377
1377
|
case "bestFit": {
|
|
1378
|
-
var
|
|
1379
|
-
const Q = (
|
|
1378
|
+
var V;
|
|
1379
|
+
const Q = (V = A.filter((Y) => {
|
|
1380
1380
|
if (K) {
|
|
1381
|
-
const re =
|
|
1381
|
+
const re = Be(Y.placement);
|
|
1382
1382
|
return re === y || // Create a bias to the `y` side axis due to horizontal
|
|
1383
1383
|
// reading directions favoring greater width.
|
|
1384
1384
|
re === "y";
|
|
1385
1385
|
}
|
|
1386
1386
|
return !0;
|
|
1387
|
-
}).map((Y) => [Y.placement, Y.overflows.filter((re) => re > 0).reduce((re, tt) => re + tt, 0)]).sort((Y, re) => Y[1] - re[1])[0]) == null ? void 0 :
|
|
1388
|
-
Q && (
|
|
1387
|
+
}).map((Y) => [Y.placement, Y.overflows.filter((re) => re > 0).reduce((re, tt) => re + tt, 0)]).sort((Y, re) => Y[1] - re[1])[0]) == null ? void 0 : V[0];
|
|
1388
|
+
Q && (fe = Q);
|
|
1389
1389
|
break;
|
|
1390
1390
|
}
|
|
1391
1391
|
case "initialPlacement":
|
|
1392
|
-
|
|
1392
|
+
fe = a;
|
|
1393
1393
|
break;
|
|
1394
1394
|
}
|
|
1395
|
-
if (o !==
|
|
1395
|
+
if (o !== fe)
|
|
1396
1396
|
return {
|
|
1397
1397
|
reset: {
|
|
1398
|
-
placement:
|
|
1398
|
+
placement: fe
|
|
1399
1399
|
}
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
1402
|
return {};
|
|
1403
1403
|
}
|
|
1404
1404
|
};
|
|
1405
|
-
},
|
|
1405
|
+
}, Ei = function(t) {
|
|
1406
1406
|
return t === void 0 && (t = {}), {
|
|
1407
1407
|
name: "shift",
|
|
1408
1408
|
options: t,
|
|
@@ -1426,24 +1426,24 @@ const vi = function(t) {
|
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
} = s, d =
|
|
1429
|
+
} = s, d = jt(s, mi), h = {
|
|
1430
1430
|
x: r,
|
|
1431
1431
|
y: i
|
|
1432
|
-
}, f = await
|
|
1432
|
+
}, f = await Wt(n, d), g = Be(he(o)), b = Bt(g);
|
|
1433
1433
|
let E = h[b], S = h[g];
|
|
1434
1434
|
if (c) {
|
|
1435
1435
|
const w = b === "y" ? "top" : "left", O = b === "y" ? "bottom" : "right", y = E + f[w], m = E - f[O];
|
|
1436
|
-
E =
|
|
1436
|
+
E = kt(y, E, m);
|
|
1437
1437
|
}
|
|
1438
1438
|
if (a) {
|
|
1439
1439
|
const w = g === "y" ? "top" : "left", O = g === "y" ? "bottom" : "right", y = S + f[w], m = S - f[O];
|
|
1440
|
-
S =
|
|
1440
|
+
S = kt(y, S, m);
|
|
1441
1441
|
}
|
|
1442
|
-
const _ = u.fn(
|
|
1442
|
+
const _ = u.fn(J({}, n, {
|
|
1443
1443
|
[b]: E,
|
|
1444
1444
|
[g]: S
|
|
1445
1445
|
}));
|
|
1446
|
-
return
|
|
1446
|
+
return J({}, _, {
|
|
1447
1447
|
data: {
|
|
1448
1448
|
x: _.x - r,
|
|
1449
1449
|
y: _.y - i
|
|
@@ -1451,7 +1451,7 @@ const vi = function(t) {
|
|
|
1451
1451
|
});
|
|
1452
1452
|
}
|
|
1453
1453
|
};
|
|
1454
|
-
},
|
|
1454
|
+
}, xi = function(t) {
|
|
1455
1455
|
return t === void 0 && (t = {}), {
|
|
1456
1456
|
options: t,
|
|
1457
1457
|
fn(n) {
|
|
@@ -1468,12 +1468,12 @@ const vi = function(t) {
|
|
|
1468
1468
|
} = Ce(t, n), h = {
|
|
1469
1469
|
x: r,
|
|
1470
1470
|
y: i
|
|
1471
|
-
}, f =
|
|
1471
|
+
}, f = Be(o), g = Bt(f);
|
|
1472
1472
|
let b = h[g], E = h[f];
|
|
1473
1473
|
const S = Ce(a, n), _ = typeof S == "number" ? {
|
|
1474
1474
|
mainAxis: S,
|
|
1475
1475
|
crossAxis: 0
|
|
1476
|
-
} :
|
|
1476
|
+
} : J({
|
|
1477
1477
|
mainAxis: 0,
|
|
1478
1478
|
crossAxis: 0
|
|
1479
1479
|
}, S);
|
|
@@ -1483,7 +1483,7 @@ const vi = function(t) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
if (d) {
|
|
1485
1485
|
var w, O;
|
|
1486
|
-
const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(
|
|
1486
|
+
const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(he(o)), R = s.reference[f] - s.floating[y] + (m && ((w = c.offset) == null ? void 0 : w[f]) || 0) + (m ? 0 : _.crossAxis), D = s.reference[f] + s.reference[y] + (m ? 0 : ((O = c.offset) == null ? void 0 : O[f]) || 0) - (m ? _.crossAxis : 0);
|
|
1487
1487
|
E < R ? E = R : E > D && (E = D);
|
|
1488
1488
|
}
|
|
1489
1489
|
return {
|
|
@@ -1493,28 +1493,31 @@ const vi = function(t) {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
};
|
|
1495
1495
|
};
|
|
1496
|
+
function pt() {
|
|
1497
|
+
return typeof window < "u";
|
|
1498
|
+
}
|
|
1496
1499
|
function Ye(e) {
|
|
1497
|
-
return
|
|
1500
|
+
return zn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1498
1501
|
}
|
|
1499
1502
|
function G(e) {
|
|
1500
1503
|
var t;
|
|
1501
1504
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1502
1505
|
}
|
|
1503
|
-
function
|
|
1506
|
+
function ue(e) {
|
|
1504
1507
|
var t;
|
|
1505
|
-
return (t = (
|
|
1508
|
+
return (t = (zn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1506
1509
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return e instanceof Node || e instanceof G(e).Node;
|
|
1510
|
+
function zn(e) {
|
|
1511
|
+
return pt() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
1509
1512
|
}
|
|
1510
1513
|
function ie(e) {
|
|
1511
|
-
return e instanceof Element || e instanceof G(e).Element;
|
|
1514
|
+
return pt() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
1512
1515
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return e instanceof HTMLElement || e instanceof G(e).HTMLElement;
|
|
1516
|
+
function ce(e) {
|
|
1517
|
+
return pt() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
1515
1518
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
1519
|
+
function _n(e) {
|
|
1520
|
+
return !pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
1518
1521
|
}
|
|
1519
1522
|
function Qe(e) {
|
|
1520
1523
|
const {
|
|
@@ -1525,10 +1528,10 @@ function Qe(e) {
|
|
|
1525
1528
|
} = oe(e);
|
|
1526
1529
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
|
|
1527
1530
|
}
|
|
1528
|
-
function
|
|
1531
|
+
function Si(e) {
|
|
1529
1532
|
return ["table", "td", "th"].includes(Ye(e));
|
|
1530
1533
|
}
|
|
1531
|
-
function
|
|
1534
|
+
function gt(e) {
|
|
1532
1535
|
return [":popover-open", ":modal"].some((t) => {
|
|
1533
1536
|
try {
|
|
1534
1537
|
return e.matches(t);
|
|
@@ -1537,31 +1540,31 @@ function pt(e) {
|
|
|
1537
1540
|
}
|
|
1538
1541
|
});
|
|
1539
1542
|
}
|
|
1540
|
-
function
|
|
1541
|
-
const t =
|
|
1543
|
+
function Yt(e) {
|
|
1544
|
+
const t = Ut(), n = ie(e) ? oe(e) : e;
|
|
1542
1545
|
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));
|
|
1543
1546
|
}
|
|
1544
|
-
function
|
|
1547
|
+
function Oi(e) {
|
|
1545
1548
|
let t = be(e);
|
|
1546
|
-
for (;
|
|
1547
|
-
if (
|
|
1549
|
+
for (; ce(t) && !Ve(t); ) {
|
|
1550
|
+
if (Yt(t))
|
|
1548
1551
|
return t;
|
|
1549
|
-
if (
|
|
1552
|
+
if (gt(t))
|
|
1550
1553
|
return null;
|
|
1551
1554
|
t = be(t);
|
|
1552
1555
|
}
|
|
1553
1556
|
return null;
|
|
1554
1557
|
}
|
|
1555
|
-
function
|
|
1558
|
+
function Ut() {
|
|
1556
1559
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1557
1560
|
}
|
|
1558
|
-
function
|
|
1561
|
+
function Ve(e) {
|
|
1559
1562
|
return ["html", "body", "#document"].includes(Ye(e));
|
|
1560
1563
|
}
|
|
1561
1564
|
function oe(e) {
|
|
1562
1565
|
return G(e).getComputedStyle(e);
|
|
1563
1566
|
}
|
|
1564
|
-
function
|
|
1567
|
+
function mt(e) {
|
|
1565
1568
|
return ie(e) ? {
|
|
1566
1569
|
scrollLeft: e.scrollLeft,
|
|
1567
1570
|
scrollTop: e.scrollTop
|
|
@@ -1577,73 +1580,80 @@ function be(e) {
|
|
|
1577
1580
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1578
1581
|
e.assignedSlot || // DOM Element detected.
|
|
1579
1582
|
e.parentNode || // ShadowRoot detected.
|
|
1580
|
-
|
|
1581
|
-
|
|
1583
|
+
_n(e) && e.host || // Fallback.
|
|
1584
|
+
ue(e)
|
|
1582
1585
|
);
|
|
1583
|
-
return
|
|
1586
|
+
return _n(t) ? t.host : t;
|
|
1584
1587
|
}
|
|
1585
|
-
function
|
|
1588
|
+
function Jn(e) {
|
|
1586
1589
|
const t = be(e);
|
|
1587
|
-
return
|
|
1590
|
+
return Ve(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && Qe(t) ? t : Jn(t);
|
|
1588
1591
|
}
|
|
1589
1592
|
function Ge(e, t, n) {
|
|
1590
1593
|
var r;
|
|
1591
1594
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1592
|
-
const i =
|
|
1593
|
-
|
|
1595
|
+
const i = Jn(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), s = G(i);
|
|
1596
|
+
if (o) {
|
|
1597
|
+
const c = It(s);
|
|
1598
|
+
return t.concat(s, s.visualViewport || [], Qe(i) ? i : [], c && n ? Ge(c) : []);
|
|
1599
|
+
}
|
|
1600
|
+
return t.concat(i, Ge(i, [], n));
|
|
1594
1601
|
}
|
|
1595
|
-
function
|
|
1602
|
+
function It(e) {
|
|
1603
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1604
|
+
}
|
|
1605
|
+
function Kn(e) {
|
|
1596
1606
|
const t = oe(e);
|
|
1597
1607
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1598
|
-
const i =
|
|
1608
|
+
const i = ce(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = at(n) !== o || at(r) !== s;
|
|
1599
1609
|
return c && (n = o, r = s), {
|
|
1600
1610
|
width: n,
|
|
1601
1611
|
height: r,
|
|
1602
1612
|
$: c
|
|
1603
1613
|
};
|
|
1604
1614
|
}
|
|
1605
|
-
function
|
|
1615
|
+
function qt(e) {
|
|
1606
1616
|
return ie(e) ? e : e.contextElement;
|
|
1607
1617
|
}
|
|
1608
1618
|
function De(e) {
|
|
1609
|
-
const t =
|
|
1610
|
-
if (!
|
|
1611
|
-
return
|
|
1619
|
+
const t = qt(e);
|
|
1620
|
+
if (!ce(t))
|
|
1621
|
+
return le(1);
|
|
1612
1622
|
const n = t.getBoundingClientRect(), {
|
|
1613
1623
|
width: r,
|
|
1614
1624
|
height: i,
|
|
1615
1625
|
$: o
|
|
1616
|
-
} =
|
|
1626
|
+
} = Kn(t);
|
|
1617
1627
|
let s = (o ? at(n.width) : n.width) / r, c = (o ? at(n.height) : n.height) / i;
|
|
1618
1628
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1619
1629
|
x: s,
|
|
1620
1630
|
y: c
|
|
1621
1631
|
};
|
|
1622
1632
|
}
|
|
1623
|
-
const
|
|
1624
|
-
function
|
|
1633
|
+
const Ri = /* @__PURE__ */ le(0);
|
|
1634
|
+
function Xn(e) {
|
|
1625
1635
|
const t = G(e);
|
|
1626
|
-
return !
|
|
1636
|
+
return !Ut() || !t.visualViewport ? Ri : {
|
|
1627
1637
|
x: t.visualViewport.offsetLeft,
|
|
1628
1638
|
y: t.visualViewport.offsetTop
|
|
1629
1639
|
};
|
|
1630
1640
|
}
|
|
1631
|
-
function
|
|
1641
|
+
function Ti(e, t, n) {
|
|
1632
1642
|
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
1633
1643
|
}
|
|
1634
1644
|
function Ae(e, t, n, r) {
|
|
1635
1645
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1636
|
-
const i = e.getBoundingClientRect(), o =
|
|
1637
|
-
let s =
|
|
1646
|
+
const i = e.getBoundingClientRect(), o = qt(e);
|
|
1647
|
+
let s = le(1);
|
|
1638
1648
|
t && (r ? ie(r) && (s = De(r)) : s = De(e));
|
|
1639
|
-
const c =
|
|
1649
|
+
const c = Ti(o, n, r) ? Xn(o) : le(0);
|
|
1640
1650
|
let a = (i.left + c.x) / s.x, u = (i.top + c.y) / s.y, d = i.width / s.x, h = i.height / s.y;
|
|
1641
1651
|
if (o) {
|
|
1642
1652
|
const f = G(o), g = r && ie(r) ? G(r) : r;
|
|
1643
|
-
let b = f, E = b
|
|
1653
|
+
let b = f, E = It(b);
|
|
1644
1654
|
for (; E && r && g !== b; ) {
|
|
1645
1655
|
const S = De(E), _ = E.getBoundingClientRect(), w = oe(E), O = _.left + (E.clientLeft + parseFloat(w.paddingLeft)) * S.x, y = _.top + (E.clientTop + parseFloat(w.paddingTop)) * S.y;
|
|
1646
|
-
a *= S.x, u *= S.y, d *= S.x, h *= S.y, a += O, u += y, b = G(E), E = b
|
|
1656
|
+
a *= S.x, u *= S.y, d *= S.x, h *= S.y, a += O, u += y, b = G(E), E = It(b);
|
|
1647
1657
|
}
|
|
1648
1658
|
}
|
|
1649
1659
|
return dt({
|
|
@@ -1653,41 +1663,54 @@ function Ae(e, t, n, r) {
|
|
|
1653
1663
|
y: u
|
|
1654
1664
|
});
|
|
1655
1665
|
}
|
|
1656
|
-
function
|
|
1666
|
+
function zt(e, t) {
|
|
1667
|
+
const n = mt(e).scrollLeft;
|
|
1668
|
+
return t ? t.left + n : Ae(ue(e)).left + n;
|
|
1669
|
+
}
|
|
1670
|
+
function Gn(e, t, n) {
|
|
1671
|
+
n === void 0 && (n = !1);
|
|
1672
|
+
const r = e.getBoundingClientRect(), i = r.left + t.scrollLeft - (n ? 0 : (
|
|
1673
|
+
// RTL <body> scrollbar.
|
|
1674
|
+
zt(e, r)
|
|
1675
|
+
)), o = r.top + t.scrollTop;
|
|
1676
|
+
return {
|
|
1677
|
+
x: i,
|
|
1678
|
+
y: o
|
|
1679
|
+
};
|
|
1680
|
+
}
|
|
1681
|
+
function Ci(e) {
|
|
1657
1682
|
let {
|
|
1658
1683
|
elements: t,
|
|
1659
1684
|
rect: n,
|
|
1660
1685
|
offsetParent: r,
|
|
1661
1686
|
strategy: i
|
|
1662
1687
|
} = e;
|
|
1663
|
-
const o = i === "fixed", s =
|
|
1688
|
+
const o = i === "fixed", s = ue(r), c = t ? gt(t.floating) : !1;
|
|
1664
1689
|
if (r === s || c && o)
|
|
1665
1690
|
return n;
|
|
1666
1691
|
let a = {
|
|
1667
1692
|
scrollLeft: 0,
|
|
1668
1693
|
scrollTop: 0
|
|
1669
|
-
}, u =
|
|
1670
|
-
const d =
|
|
1671
|
-
if ((h || !h && !o) && ((Ye(r) !== "body" || Qe(s)) && (a =
|
|
1672
|
-
const
|
|
1673
|
-
u = De(r), d.x =
|
|
1694
|
+
}, u = le(1);
|
|
1695
|
+
const d = le(0), h = ce(r);
|
|
1696
|
+
if ((h || !h && !o) && ((Ye(r) !== "body" || Qe(s)) && (a = mt(r)), ce(r))) {
|
|
1697
|
+
const g = Ae(r);
|
|
1698
|
+
u = De(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
|
|
1674
1699
|
}
|
|
1700
|
+
const f = s && !h && !o ? Gn(s, a, !0) : le(0);
|
|
1675
1701
|
return {
|
|
1676
1702
|
width: n.width * u.x,
|
|
1677
1703
|
height: n.height * u.y,
|
|
1678
|
-
x: n.x * u.x - a.scrollLeft * u.x + d.x,
|
|
1679
|
-
y: n.y * u.y - a.scrollTop * u.y + d.y
|
|
1704
|
+
x: n.x * u.x - a.scrollLeft * u.x + d.x + f.x,
|
|
1705
|
+
y: n.y * u.y - a.scrollTop * u.y + d.y + f.y
|
|
1680
1706
|
};
|
|
1681
1707
|
}
|
|
1682
|
-
function
|
|
1708
|
+
function Ai(e) {
|
|
1683
1709
|
return Array.from(e.getClientRects());
|
|
1684
1710
|
}
|
|
1685
|
-
function
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
function Ti(e) {
|
|
1689
|
-
const t = de(e), n = gt(e), r = e.ownerDocument.body, i = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1690
|
-
let s = -n.scrollLeft + Jn(e);
|
|
1711
|
+
function Pi(e) {
|
|
1712
|
+
const t = ue(e), n = mt(e), r = e.ownerDocument.body, i = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1713
|
+
let s = -n.scrollLeft + zt(e);
|
|
1691
1714
|
const c = -n.scrollTop;
|
|
1692
1715
|
return oe(r).direction === "rtl" && (s += Oe(t.clientWidth, r.clientWidth) - i), {
|
|
1693
1716
|
width: i,
|
|
@@ -1696,12 +1719,12 @@ function Ti(e) {
|
|
|
1696
1719
|
y: c
|
|
1697
1720
|
};
|
|
1698
1721
|
}
|
|
1699
|
-
function
|
|
1700
|
-
const n = G(e), r =
|
|
1722
|
+
function ki(e, t) {
|
|
1723
|
+
const n = G(e), r = ue(e), i = n.visualViewport;
|
|
1701
1724
|
let o = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
|
|
1702
1725
|
if (i) {
|
|
1703
1726
|
o = i.width, s = i.height;
|
|
1704
|
-
const u =
|
|
1727
|
+
const u = Ut();
|
|
1705
1728
|
(!u || u && t === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
|
|
1706
1729
|
}
|
|
1707
1730
|
return {
|
|
@@ -1711,8 +1734,8 @@ function Ci(e, t) {
|
|
|
1711
1734
|
y: a
|
|
1712
1735
|
};
|
|
1713
1736
|
}
|
|
1714
|
-
function
|
|
1715
|
-
const n = Ae(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o =
|
|
1737
|
+
function Ii(e, t) {
|
|
1738
|
+
const n = Ae(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = ce(e) ? De(e) : le(1), s = e.clientWidth * o.x, c = e.clientHeight * o.y, a = i * o.x, u = r * o.y;
|
|
1716
1739
|
return {
|
|
1717
1740
|
width: s,
|
|
1718
1741
|
height: c,
|
|
@@ -1720,51 +1743,53 @@ function Ai(e, t) {
|
|
|
1720
1743
|
y: u
|
|
1721
1744
|
};
|
|
1722
1745
|
}
|
|
1723
|
-
function
|
|
1746
|
+
function En(e, t, n) {
|
|
1724
1747
|
let r;
|
|
1725
1748
|
if (t === "viewport")
|
|
1726
|
-
r =
|
|
1749
|
+
r = ki(e, n);
|
|
1727
1750
|
else if (t === "document")
|
|
1728
|
-
r =
|
|
1751
|
+
r = Pi(ue(e));
|
|
1729
1752
|
else if (ie(t))
|
|
1730
|
-
r =
|
|
1753
|
+
r = Ii(t, n);
|
|
1731
1754
|
else {
|
|
1732
|
-
const i =
|
|
1733
|
-
r =
|
|
1755
|
+
const i = Xn(e);
|
|
1756
|
+
r = {
|
|
1734
1757
|
x: t.x - i.x,
|
|
1735
|
-
y: t.y - i.y
|
|
1736
|
-
|
|
1758
|
+
y: t.y - i.y,
|
|
1759
|
+
width: t.width,
|
|
1760
|
+
height: t.height
|
|
1761
|
+
};
|
|
1737
1762
|
}
|
|
1738
1763
|
return dt(r);
|
|
1739
1764
|
}
|
|
1740
|
-
function
|
|
1765
|
+
function Zn(e, t) {
|
|
1741
1766
|
const n = be(e);
|
|
1742
|
-
return n === t || !ie(n) ||
|
|
1767
|
+
return n === t || !ie(n) || Ve(n) ? !1 : oe(n).position === "fixed" || Zn(n, t);
|
|
1743
1768
|
}
|
|
1744
|
-
function
|
|
1769
|
+
function Mi(e, t) {
|
|
1745
1770
|
const n = t.get(e);
|
|
1746
1771
|
if (n)
|
|
1747
1772
|
return n;
|
|
1748
1773
|
let r = Ge(e, [], !1).filter((c) => ie(c) && Ye(c) !== "body"), i = null;
|
|
1749
1774
|
const o = oe(e).position === "fixed";
|
|
1750
1775
|
let s = o ? be(e) : e;
|
|
1751
|
-
for (; ie(s) && !
|
|
1752
|
-
const c = oe(s), a =
|
|
1753
|
-
!a && c.position === "fixed" && (i = null), (o ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Qe(s) && !a &&
|
|
1776
|
+
for (; ie(s) && !Ve(s); ) {
|
|
1777
|
+
const c = oe(s), a = Yt(s);
|
|
1778
|
+
!a && c.position === "fixed" && (i = null), (o ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Qe(s) && !a && Zn(e, s)) ? r = r.filter((d) => d !== s) : i = c, s = be(s);
|
|
1754
1779
|
}
|
|
1755
1780
|
return t.set(e, r), r;
|
|
1756
1781
|
}
|
|
1757
|
-
function
|
|
1782
|
+
function Fi(e) {
|
|
1758
1783
|
let {
|
|
1759
1784
|
element: t,
|
|
1760
1785
|
boundary: n,
|
|
1761
1786
|
rootBoundary: r,
|
|
1762
1787
|
strategy: i
|
|
1763
1788
|
} = e;
|
|
1764
|
-
const s = [...n === "clippingAncestors" ?
|
|
1765
|
-
const h =
|
|
1789
|
+
const s = [...n === "clippingAncestors" ? gt(t) ? [] : Mi(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((u, d) => {
|
|
1790
|
+
const h = En(t, d, i);
|
|
1766
1791
|
return u.top = Oe(h.top, u.top), u.right = $e(h.right, u.right), u.bottom = $e(h.bottom, u.bottom), u.left = Oe(h.left, u.left), u;
|
|
1767
|
-
},
|
|
1792
|
+
}, En(t, c, i));
|
|
1768
1793
|
return {
|
|
1769
1794
|
width: a.right - a.left,
|
|
1770
1795
|
height: a.bottom - a.top,
|
|
@@ -1772,64 +1797,69 @@ function ki(e) {
|
|
|
1772
1797
|
y: a.top
|
|
1773
1798
|
};
|
|
1774
1799
|
}
|
|
1775
|
-
function
|
|
1800
|
+
function Li(e) {
|
|
1776
1801
|
const {
|
|
1777
1802
|
width: t,
|
|
1778
1803
|
height: n
|
|
1779
|
-
} =
|
|
1804
|
+
} = Kn(e);
|
|
1780
1805
|
return {
|
|
1781
1806
|
width: t,
|
|
1782
1807
|
height: n
|
|
1783
1808
|
};
|
|
1784
1809
|
}
|
|
1785
|
-
function
|
|
1786
|
-
const r =
|
|
1810
|
+
function Di(e, t, n) {
|
|
1811
|
+
const r = ce(t), i = ue(t), o = n === "fixed", s = Ae(e, !0, o, t);
|
|
1787
1812
|
let c = {
|
|
1788
1813
|
scrollLeft: 0,
|
|
1789
1814
|
scrollTop: 0
|
|
1790
1815
|
};
|
|
1791
|
-
const a =
|
|
1816
|
+
const a = le(0);
|
|
1792
1817
|
if (r || !r && !o)
|
|
1793
|
-
if ((Ye(t) !== "body" || Qe(i)) && (c =
|
|
1794
|
-
const
|
|
1795
|
-
a.x =
|
|
1796
|
-
} else i && (a.x =
|
|
1797
|
-
const u = s.left + c.scrollLeft - a.x,
|
|
1818
|
+
if ((Ye(t) !== "body" || Qe(i)) && (c = mt(t)), r) {
|
|
1819
|
+
const f = Ae(t, !0, o, t);
|
|
1820
|
+
a.x = f.x + t.clientLeft, a.y = f.y + t.clientTop;
|
|
1821
|
+
} else i && (a.x = zt(i));
|
|
1822
|
+
const u = i && !r && !o ? Gn(i, c) : le(0), d = s.left + c.scrollLeft - a.x - u.x, h = s.top + c.scrollTop - a.y - u.y;
|
|
1798
1823
|
return {
|
|
1799
|
-
x:
|
|
1800
|
-
y:
|
|
1824
|
+
x: d,
|
|
1825
|
+
y: h,
|
|
1801
1826
|
width: s.width,
|
|
1802
1827
|
height: s.height
|
|
1803
1828
|
};
|
|
1804
1829
|
}
|
|
1805
|
-
function
|
|
1830
|
+
function Ct(e) {
|
|
1806
1831
|
return oe(e).position === "static";
|
|
1807
1832
|
}
|
|
1808
|
-
function
|
|
1809
|
-
|
|
1833
|
+
function xn(e, t) {
|
|
1834
|
+
if (!ce(e) || oe(e).position === "fixed")
|
|
1835
|
+
return null;
|
|
1836
|
+
if (t)
|
|
1837
|
+
return t(e);
|
|
1838
|
+
let n = e.offsetParent;
|
|
1839
|
+
return ue(e) === n && (n = n.ownerDocument.body), n;
|
|
1810
1840
|
}
|
|
1811
|
-
function
|
|
1841
|
+
function Qn(e, t) {
|
|
1812
1842
|
const n = G(e);
|
|
1813
|
-
if (
|
|
1843
|
+
if (gt(e))
|
|
1814
1844
|
return n;
|
|
1815
|
-
if (!
|
|
1845
|
+
if (!ce(e)) {
|
|
1816
1846
|
let i = be(e);
|
|
1817
|
-
for (; i && !
|
|
1818
|
-
if (ie(i) && !
|
|
1847
|
+
for (; i && !Ve(i); ) {
|
|
1848
|
+
if (ie(i) && !Ct(i))
|
|
1819
1849
|
return i;
|
|
1820
1850
|
i = be(i);
|
|
1821
1851
|
}
|
|
1822
1852
|
return n;
|
|
1823
1853
|
}
|
|
1824
|
-
let r =
|
|
1825
|
-
for (; r &&
|
|
1826
|
-
r =
|
|
1827
|
-
return r &&
|
|
1854
|
+
let r = xn(e, t);
|
|
1855
|
+
for (; r && Si(r) && Ct(r); )
|
|
1856
|
+
r = xn(r, t);
|
|
1857
|
+
return r && Ve(r) && Ct(r) && !Yt(r) ? n : r || Oi(e) || n;
|
|
1828
1858
|
}
|
|
1829
|
-
const
|
|
1830
|
-
const n = this.getOffsetParent ||
|
|
1859
|
+
const ji = async function(t) {
|
|
1860
|
+
const n = this.getOffsetParent || Qn, r = this.getDimensions, i = await r(t.floating);
|
|
1831
1861
|
return {
|
|
1832
|
-
reference:
|
|
1862
|
+
reference: Di(t.reference, await n(t.floating), t.strategy),
|
|
1833
1863
|
floating: {
|
|
1834
1864
|
x: 0,
|
|
1835
1865
|
y: 0,
|
|
@@ -1838,24 +1868,24 @@ const Fi = async function(t) {
|
|
|
1838
1868
|
}
|
|
1839
1869
|
};
|
|
1840
1870
|
};
|
|
1841
|
-
function
|
|
1871
|
+
function Hi(e) {
|
|
1842
1872
|
return oe(e).direction === "rtl";
|
|
1843
1873
|
}
|
|
1844
|
-
const
|
|
1845
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1846
|
-
getDocumentElement:
|
|
1847
|
-
getClippingRect:
|
|
1848
|
-
getOffsetParent:
|
|
1849
|
-
getElementRects:
|
|
1850
|
-
getClientRects:
|
|
1851
|
-
getDimensions:
|
|
1874
|
+
const $i = {
|
|
1875
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ci,
|
|
1876
|
+
getDocumentElement: ue,
|
|
1877
|
+
getClippingRect: Fi,
|
|
1878
|
+
getOffsetParent: Qn,
|
|
1879
|
+
getElementRects: ji,
|
|
1880
|
+
getClientRects: Ai,
|
|
1881
|
+
getDimensions: Li,
|
|
1852
1882
|
getScale: De,
|
|
1853
1883
|
isElement: ie,
|
|
1854
|
-
isRTL:
|
|
1884
|
+
isRTL: Hi
|
|
1855
1885
|
};
|
|
1856
|
-
function
|
|
1886
|
+
function Bi(e, t) {
|
|
1857
1887
|
let n = null, r;
|
|
1858
|
-
const i =
|
|
1888
|
+
const i = ue(e);
|
|
1859
1889
|
function o() {
|
|
1860
1890
|
var c;
|
|
1861
1891
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -1887,7 +1917,7 @@ function ji(e, t) {
|
|
|
1887
1917
|
O = !1;
|
|
1888
1918
|
}
|
|
1889
1919
|
try {
|
|
1890
|
-
n = new IntersectionObserver(y,
|
|
1920
|
+
n = new IntersectionObserver(y, J({}, w, {
|
|
1891
1921
|
// Handle <iframe>s
|
|
1892
1922
|
root: i.ownerDocument
|
|
1893
1923
|
}));
|
|
@@ -1898,7 +1928,7 @@ function ji(e, t) {
|
|
|
1898
1928
|
}
|
|
1899
1929
|
return s(!0), o;
|
|
1900
1930
|
}
|
|
1901
|
-
function
|
|
1931
|
+
function Vi(e, t, n, r) {
|
|
1902
1932
|
r === void 0 && (r = {});
|
|
1903
1933
|
const {
|
|
1904
1934
|
ancestorScroll: i = !0,
|
|
@@ -1906,13 +1936,13 @@ function Hi(e, t, n, r) {
|
|
|
1906
1936
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1907
1937
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1908
1938
|
animationFrame: a = !1
|
|
1909
|
-
} = r, u =
|
|
1939
|
+
} = r, u = qt(e), d = i || o ? [...u ? Ge(u) : [], ...Ge(t)] : [];
|
|
1910
1940
|
d.forEach((_) => {
|
|
1911
1941
|
i && _.addEventListener("scroll", n, {
|
|
1912
1942
|
passive: !0
|
|
1913
1943
|
}), o && _.addEventListener("resize", n);
|
|
1914
1944
|
});
|
|
1915
|
-
const h = u && c ?
|
|
1945
|
+
const h = u && c ? Bi(u, n) : null;
|
|
1916
1946
|
let f = -1, g = null;
|
|
1917
1947
|
s && (g = new ResizeObserver((_) => {
|
|
1918
1948
|
let [w] = _;
|
|
@@ -1934,39 +1964,39 @@ function Hi(e, t, n, r) {
|
|
|
1934
1964
|
}), h == null || h(), (_ = g) == null || _.disconnect(), g = null, a && cancelAnimationFrame(b);
|
|
1935
1965
|
};
|
|
1936
1966
|
}
|
|
1937
|
-
const
|
|
1938
|
-
const r = /* @__PURE__ */ new Map(), i =
|
|
1939
|
-
platform:
|
|
1940
|
-
}, n), o =
|
|
1967
|
+
const Ni = wi, Wi = Ei, Yi = _i, Ui = bi, qi = xi, zi = (e, t, n) => {
|
|
1968
|
+
const r = /* @__PURE__ */ new Map(), i = J({
|
|
1969
|
+
platform: $i
|
|
1970
|
+
}, n), o = J({}, i.platform, {
|
|
1941
1971
|
_c: r
|
|
1942
1972
|
});
|
|
1943
|
-
return
|
|
1973
|
+
return vi(e, t, J({}, i, {
|
|
1944
1974
|
platform: o
|
|
1945
1975
|
}));
|
|
1946
1976
|
};
|
|
1947
|
-
function
|
|
1977
|
+
function Ji(e) {
|
|
1948
1978
|
e.cleanup && e.cleanup();
|
|
1949
1979
|
const t = e._getResolvedAttachToOptions();
|
|
1950
1980
|
let n = t.element;
|
|
1951
|
-
const r =
|
|
1952
|
-
return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup =
|
|
1981
|
+
const r = eo(t, e), i = Wn(t);
|
|
1982
|
+
return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Vi(n, e.el, () => {
|
|
1953
1983
|
if (!e.el) {
|
|
1954
1984
|
e.cleanup == null || e.cleanup();
|
|
1955
1985
|
return;
|
|
1956
1986
|
}
|
|
1957
|
-
|
|
1987
|
+
Gi(n, e, r, i);
|
|
1958
1988
|
}), e.target = t.element, r;
|
|
1959
1989
|
}
|
|
1960
|
-
function
|
|
1990
|
+
function Ki(e, t) {
|
|
1961
1991
|
return {
|
|
1962
|
-
floatingUIOptions:
|
|
1992
|
+
floatingUIOptions: Ht(e.floatingUIOptions || {}, t.floatingUIOptions || {})
|
|
1963
1993
|
};
|
|
1964
1994
|
}
|
|
1965
|
-
function
|
|
1995
|
+
function Xi(e) {
|
|
1966
1996
|
e.cleanup && e.cleanup(), e.cleanup = null;
|
|
1967
1997
|
}
|
|
1968
|
-
function
|
|
1969
|
-
return
|
|
1998
|
+
function Gi(e, t, n, r) {
|
|
1999
|
+
return zi(e, t.el, n).then(Zi(t, r)).then((i) => new Promise((o) => {
|
|
1970
2000
|
setTimeout(() => o(i), 300);
|
|
1971
2001
|
})).then((i) => {
|
|
1972
2002
|
i != null && i.el && i.el.focus({
|
|
@@ -1974,7 +2004,7 @@ function Ji(e, t, n, r) {
|
|
|
1974
2004
|
});
|
|
1975
2005
|
});
|
|
1976
2006
|
}
|
|
1977
|
-
function
|
|
2007
|
+
function Zi(e, t) {
|
|
1978
2008
|
return ({
|
|
1979
2009
|
x: n,
|
|
1980
2010
|
y: r,
|
|
@@ -1989,9 +2019,9 @@ function Ki(e, t) {
|
|
|
1989
2019
|
position: "absolute",
|
|
1990
2020
|
left: `${n}px`,
|
|
1991
2021
|
top: `${r}px`
|
|
1992
|
-
}), e.el.dataset.popperPlacement = i,
|
|
2022
|
+
}), e.el.dataset.popperPlacement = i, Qi(e.el, o)), e);
|
|
1993
2023
|
}
|
|
1994
|
-
function
|
|
2024
|
+
function Qi(e, t) {
|
|
1995
2025
|
const n = e.querySelector(".shepherd-arrow");
|
|
1996
2026
|
if (He(n) && t.arrow) {
|
|
1997
2027
|
const {
|
|
@@ -2004,63 +2034,63 @@ function Xi(e, t) {
|
|
|
2004
2034
|
});
|
|
2005
2035
|
}
|
|
2006
2036
|
}
|
|
2007
|
-
function
|
|
2037
|
+
function eo(e, t) {
|
|
2008
2038
|
var n, r, i;
|
|
2009
2039
|
const o = {
|
|
2010
2040
|
strategy: "absolute"
|
|
2011
2041
|
};
|
|
2012
2042
|
o.middleware = [];
|
|
2013
|
-
const s =
|
|
2043
|
+
const s = to(t), c = Wn(e), a = (n = e.on) == null ? void 0 : n.includes("auto"), u = (e == null || (r = e.on) == null ? void 0 : r.includes("-start")) || (e == null || (i = e.on) == null ? void 0 : i.includes("-end"));
|
|
2014
2044
|
if (!c) {
|
|
2015
2045
|
if (a) {
|
|
2016
2046
|
var d;
|
|
2017
|
-
o.middleware.push(
|
|
2047
|
+
o.middleware.push(Ni({
|
|
2018
2048
|
crossAxis: !0,
|
|
2019
2049
|
alignment: u ? e == null || (d = e.on) == null ? void 0 : d.split("-").pop() : null
|
|
2020
2050
|
}));
|
|
2021
2051
|
} else
|
|
2022
|
-
o.middleware.push(
|
|
2052
|
+
o.middleware.push(Yi());
|
|
2023
2053
|
o.middleware.push(
|
|
2024
2054
|
// Replicate PopperJS default behavior.
|
|
2025
|
-
|
|
2026
|
-
limiter:
|
|
2055
|
+
Wi({
|
|
2056
|
+
limiter: qi(),
|
|
2027
2057
|
crossAxis: !0
|
|
2028
2058
|
})
|
|
2029
|
-
), s && o.middleware.push(
|
|
2059
|
+
), s && o.middleware.push(Ui({
|
|
2030
2060
|
element: s,
|
|
2031
2061
|
padding: u ? 4 : 0
|
|
2032
2062
|
})), a || (o.placement = e.on);
|
|
2033
2063
|
}
|
|
2034
|
-
return
|
|
2064
|
+
return Ht(o, t.options.floatingUIOptions || {});
|
|
2035
2065
|
}
|
|
2036
|
-
function
|
|
2066
|
+
function to(e) {
|
|
2037
2067
|
return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
|
|
2038
2068
|
}
|
|
2039
2069
|
function Z() {
|
|
2040
2070
|
}
|
|
2041
|
-
function
|
|
2071
|
+
function no(e, t) {
|
|
2042
2072
|
for (const n in t) e[n] = t[n];
|
|
2043
2073
|
return (
|
|
2044
2074
|
/** @type {T & S} */
|
|
2045
2075
|
e
|
|
2046
2076
|
);
|
|
2047
2077
|
}
|
|
2048
|
-
function
|
|
2078
|
+
function er(e) {
|
|
2049
2079
|
return e();
|
|
2050
2080
|
}
|
|
2051
|
-
function
|
|
2081
|
+
function Sn() {
|
|
2052
2082
|
return /* @__PURE__ */ Object.create(null);
|
|
2053
2083
|
}
|
|
2054
2084
|
function et(e) {
|
|
2055
|
-
e.forEach(
|
|
2085
|
+
e.forEach(er);
|
|
2056
2086
|
}
|
|
2057
|
-
function
|
|
2087
|
+
function Jt(e) {
|
|
2058
2088
|
return typeof e == "function";
|
|
2059
2089
|
}
|
|
2060
|
-
function
|
|
2090
|
+
function pe(e, t) {
|
|
2061
2091
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
2062
2092
|
}
|
|
2063
|
-
function
|
|
2093
|
+
function ro(e) {
|
|
2064
2094
|
return Object.keys(e).length === 0;
|
|
2065
2095
|
}
|
|
2066
2096
|
function Ne(e, t) {
|
|
@@ -2072,38 +2102,38 @@ function se(e, t, n) {
|
|
|
2072
2102
|
function te(e) {
|
|
2073
2103
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2074
2104
|
}
|
|
2075
|
-
function
|
|
2105
|
+
function io(e, t) {
|
|
2076
2106
|
for (let n = 0; n < e.length; n += 1)
|
|
2077
2107
|
e[n] && e[n].d(t);
|
|
2078
2108
|
}
|
|
2079
|
-
function
|
|
2109
|
+
function ae(e) {
|
|
2080
2110
|
return document.createElement(e);
|
|
2081
2111
|
}
|
|
2082
|
-
function
|
|
2112
|
+
function On(e) {
|
|
2083
2113
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
2084
2114
|
}
|
|
2085
|
-
function
|
|
2115
|
+
function tr(e) {
|
|
2086
2116
|
return document.createTextNode(e);
|
|
2087
2117
|
}
|
|
2088
2118
|
function ht() {
|
|
2089
|
-
return
|
|
2119
|
+
return tr(" ");
|
|
2090
2120
|
}
|
|
2091
|
-
function
|
|
2092
|
-
return
|
|
2121
|
+
function oo() {
|
|
2122
|
+
return tr("");
|
|
2093
2123
|
}
|
|
2094
|
-
function
|
|
2124
|
+
function vt(e, t, n, r) {
|
|
2095
2125
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
2096
2126
|
}
|
|
2097
|
-
function
|
|
2127
|
+
function M(e, t, n) {
|
|
2098
2128
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
2099
2129
|
}
|
|
2100
|
-
const
|
|
2101
|
-
function
|
|
2130
|
+
const so = ["width", "height"];
|
|
2131
|
+
function Rn(e, t) {
|
|
2102
2132
|
const n = Object.getOwnPropertyDescriptors(e.__proto__);
|
|
2103
2133
|
for (const r in t)
|
|
2104
|
-
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 &&
|
|
2134
|
+
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 && so.indexOf(r) === -1 ? e[r] = t[r] : M(e, r, t[r]);
|
|
2105
2135
|
}
|
|
2106
|
-
function
|
|
2136
|
+
function lo(e) {
|
|
2107
2137
|
return Array.from(e.childNodes);
|
|
2108
2138
|
}
|
|
2109
2139
|
function Me(e, t, n) {
|
|
@@ -2113,29 +2143,29 @@ let Ze;
|
|
|
2113
2143
|
function Ke(e) {
|
|
2114
2144
|
Ze = e;
|
|
2115
2145
|
}
|
|
2116
|
-
function
|
|
2146
|
+
function nr() {
|
|
2117
2147
|
if (!Ze) throw new Error("Function called outside component initialization");
|
|
2118
2148
|
return Ze;
|
|
2119
2149
|
}
|
|
2120
|
-
function
|
|
2121
|
-
|
|
2150
|
+
function co(e) {
|
|
2151
|
+
nr().$$.on_mount.push(e);
|
|
2122
2152
|
}
|
|
2123
|
-
function
|
|
2124
|
-
|
|
2153
|
+
function Kt(e) {
|
|
2154
|
+
nr().$$.after_update.push(e);
|
|
2125
2155
|
}
|
|
2126
2156
|
const Le = [], We = [];
|
|
2127
2157
|
let je = [];
|
|
2128
|
-
const
|
|
2129
|
-
let
|
|
2130
|
-
function
|
|
2131
|
-
|
|
2158
|
+
const Tn = [], ao = /* @__PURE__ */ Promise.resolve();
|
|
2159
|
+
let Mt = !1;
|
|
2160
|
+
function uo() {
|
|
2161
|
+
Mt || (Mt = !0, ao.then(rr));
|
|
2132
2162
|
}
|
|
2133
|
-
function
|
|
2163
|
+
function Ft(e) {
|
|
2134
2164
|
je.push(e);
|
|
2135
2165
|
}
|
|
2136
|
-
const
|
|
2166
|
+
const At = /* @__PURE__ */ new Set();
|
|
2137
2167
|
let Fe = 0;
|
|
2138
|
-
function
|
|
2168
|
+
function rr() {
|
|
2139
2169
|
if (Fe !== 0)
|
|
2140
2170
|
return;
|
|
2141
2171
|
const e = Ze;
|
|
@@ -2143,7 +2173,7 @@ function er() {
|
|
|
2143
2173
|
try {
|
|
2144
2174
|
for (; Fe < Le.length; ) {
|
|
2145
2175
|
const t = Le[Fe];
|
|
2146
|
-
Fe++, Ke(t),
|
|
2176
|
+
Fe++, Ke(t), fo(t.$$);
|
|
2147
2177
|
}
|
|
2148
2178
|
} catch (t) {
|
|
2149
2179
|
throw Le.length = 0, Fe = 0, t;
|
|
@@ -2151,22 +2181,22 @@ function er() {
|
|
|
2151
2181
|
for (Ke(null), Le.length = 0, Fe = 0; We.length; ) We.pop()();
|
|
2152
2182
|
for (let t = 0; t < je.length; t += 1) {
|
|
2153
2183
|
const n = je[t];
|
|
2154
|
-
|
|
2184
|
+
At.has(n) || (At.add(n), n());
|
|
2155
2185
|
}
|
|
2156
2186
|
je.length = 0;
|
|
2157
2187
|
} while (Le.length);
|
|
2158
|
-
for (;
|
|
2159
|
-
|
|
2160
|
-
|
|
2188
|
+
for (; Tn.length; )
|
|
2189
|
+
Tn.pop()();
|
|
2190
|
+
Mt = !1, At.clear(), Ke(e);
|
|
2161
2191
|
}
|
|
2162
|
-
function
|
|
2192
|
+
function fo(e) {
|
|
2163
2193
|
if (e.fragment !== null) {
|
|
2164
2194
|
e.update(), et(e.before_update);
|
|
2165
2195
|
const t = e.dirty;
|
|
2166
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
2196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
|
|
2167
2197
|
}
|
|
2168
2198
|
}
|
|
2169
|
-
function
|
|
2199
|
+
function ho(e) {
|
|
2170
2200
|
const t = [], n = [];
|
|
2171
2201
|
je.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), je = t;
|
|
2172
2202
|
}
|
|
@@ -2194,10 +2224,10 @@ function H(e, t, n, r) {
|
|
|
2194
2224
|
}), e.o(t);
|
|
2195
2225
|
} else r && r();
|
|
2196
2226
|
}
|
|
2197
|
-
function
|
|
2227
|
+
function Cn(e) {
|
|
2198
2228
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
2199
2229
|
}
|
|
2200
|
-
function
|
|
2230
|
+
function po(e, t) {
|
|
2201
2231
|
const n = {}, r = {}, i = {
|
|
2202
2232
|
$$scope: 1
|
|
2203
2233
|
};
|
|
@@ -2226,19 +2256,19 @@ function we(e, t, n) {
|
|
|
2226
2256
|
fragment: r,
|
|
2227
2257
|
after_update: i
|
|
2228
2258
|
} = e.$$;
|
|
2229
|
-
r && r.m(t, n),
|
|
2230
|
-
const o = e.$$.on_mount.map(
|
|
2259
|
+
r && r.m(t, n), Ft(() => {
|
|
2260
|
+
const o = e.$$.on_mount.map(er).filter(Jt);
|
|
2231
2261
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : et(o), e.$$.on_mount = [];
|
|
2232
|
-
}), i.forEach(
|
|
2262
|
+
}), i.forEach(Ft);
|
|
2233
2263
|
}
|
|
2234
2264
|
function _e(e, t) {
|
|
2235
2265
|
const n = e.$$;
|
|
2236
|
-
n.fragment !== null && (
|
|
2266
|
+
n.fragment !== null && (ho(n.after_update), et(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
2237
2267
|
}
|
|
2238
|
-
function
|
|
2239
|
-
e.$$.dirty[0] === -1 && (Le.push(e),
|
|
2268
|
+
function go(e, t) {
|
|
2269
|
+
e.$$.dirty[0] === -1 && (Le.push(e), uo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
2240
2270
|
}
|
|
2241
|
-
function
|
|
2271
|
+
function ge(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
2242
2272
|
const a = Ze;
|
|
2243
2273
|
Ke(e);
|
|
2244
2274
|
const u = e.$$ = {
|
|
@@ -2248,7 +2278,7 @@ function pe(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2248
2278
|
props: o,
|
|
2249
2279
|
update: Z,
|
|
2250
2280
|
not_equal: i,
|
|
2251
|
-
bound:
|
|
2281
|
+
bound: Sn(),
|
|
2252
2282
|
// lifecycle
|
|
2253
2283
|
on_mount: [],
|
|
2254
2284
|
on_destroy: [],
|
|
@@ -2257,7 +2287,7 @@ function pe(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2257
2287
|
after_update: [],
|
|
2258
2288
|
context: new Map(t.context || (a ? a.$$.context : [])),
|
|
2259
2289
|
// everything else
|
|
2260
|
-
callbacks:
|
|
2290
|
+
callbacks: Sn(),
|
|
2261
2291
|
dirty: c,
|
|
2262
2292
|
skip_bound: !1,
|
|
2263
2293
|
root: t.target || a.$$.root
|
|
@@ -2266,18 +2296,18 @@ function pe(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2266
2296
|
let d = !1;
|
|
2267
2297
|
if (u.ctx = n ? n(e, t.props || {}, (h, f, ...g) => {
|
|
2268
2298
|
const b = g.length ? g[0] : f;
|
|
2269
|
-
return u.ctx && i(u.ctx[h], u.ctx[h] = b) && (!u.skip_bound && u.bound[h] && u.bound[h](b), d &&
|
|
2299
|
+
return u.ctx && i(u.ctx[h], u.ctx[h] = b) && (!u.skip_bound && u.bound[h] && u.bound[h](b), d && go(e, h)), f;
|
|
2270
2300
|
}) : [], u.update(), d = !0, et(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
2271
2301
|
if (t.hydrate) {
|
|
2272
|
-
const h =
|
|
2302
|
+
const h = lo(t.target);
|
|
2273
2303
|
u.fragment && u.fragment.l(h), h.forEach(te);
|
|
2274
2304
|
} else
|
|
2275
2305
|
u.fragment && u.fragment.c();
|
|
2276
|
-
t.intro && k(e.$$.fragment), we(e, t.target, t.anchor),
|
|
2306
|
+
t.intro && k(e.$$.fragment), we(e, t.target, t.anchor), rr();
|
|
2277
2307
|
}
|
|
2278
2308
|
Ke(a);
|
|
2279
2309
|
}
|
|
2280
|
-
class
|
|
2310
|
+
class me {
|
|
2281
2311
|
constructor() {
|
|
2282
2312
|
this.$$ = void 0, this.$$set = void 0;
|
|
2283
2313
|
}
|
|
@@ -2292,7 +2322,7 @@ class ge {
|
|
|
2292
2322
|
* @returns {() => void}
|
|
2293
2323
|
*/
|
|
2294
2324
|
$on(t, n) {
|
|
2295
|
-
if (!
|
|
2325
|
+
if (!Jt(n))
|
|
2296
2326
|
return Z;
|
|
2297
2327
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
2298
2328
|
return r.push(n), () => {
|
|
@@ -2305,30 +2335,30 @@ class ge {
|
|
|
2305
2335
|
* @returns {void}
|
|
2306
2336
|
*/
|
|
2307
2337
|
$set(t) {
|
|
2308
|
-
this.$$set && !
|
|
2338
|
+
this.$$set && !ro(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
2309
2339
|
}
|
|
2310
2340
|
}
|
|
2311
|
-
const
|
|
2341
|
+
const mo = "4";
|
|
2312
2342
|
typeof window < "u" && (window.__svelte || (window.__svelte = {
|
|
2313
2343
|
v: /* @__PURE__ */ new Set()
|
|
2314
|
-
})).v.add(
|
|
2315
|
-
function
|
|
2344
|
+
})).v.add(mo);
|
|
2345
|
+
function vo(e) {
|
|
2316
2346
|
let t, n, r, i, o;
|
|
2317
2347
|
return {
|
|
2318
2348
|
c() {
|
|
2319
|
-
t =
|
|
2349
|
+
t = ae("button"), M(t, "aria-label", n = /*label*/
|
|
2320
2350
|
e[3] ? (
|
|
2321
2351
|
/*label*/
|
|
2322
2352
|
e[3]
|
|
2323
|
-
) : null),
|
|
2353
|
+
) : null), M(t, "class", r = `${/*classes*/
|
|
2324
2354
|
e[1] || ""} shepherd-button ${/*secondary*/
|
|
2325
2355
|
e[4] ? "shepherd-button-secondary" : ""}`), t.disabled = /*disabled*/
|
|
2326
|
-
e[2],
|
|
2356
|
+
e[2], M(t, "tabindex", "0"), M(t, "type", "button");
|
|
2327
2357
|
},
|
|
2328
2358
|
m(s, c) {
|
|
2329
2359
|
se(s, t, c), t.innerHTML = /*text*/
|
|
2330
|
-
e[5], i || (o =
|
|
2331
|
-
|
|
2360
|
+
e[5], i || (o = vt(t, "click", function() {
|
|
2361
|
+
Jt(
|
|
2332
2362
|
/*action*/
|
|
2333
2363
|
e[0]
|
|
2334
2364
|
) && e[0].apply(this, arguments);
|
|
@@ -2342,10 +2372,10 @@ function po(e) {
|
|
|
2342
2372
|
e[3] ? (
|
|
2343
2373
|
/*label*/
|
|
2344
2374
|
e[3]
|
|
2345
|
-
) : null) &&
|
|
2375
|
+
) : null) && M(t, "aria-label", n), c & /*classes, secondary*/
|
|
2346
2376
|
18 && r !== (r = `${/*classes*/
|
|
2347
2377
|
e[1] || ""} shepherd-button ${/*secondary*/
|
|
2348
|
-
e[4] ? "shepherd-button-secondary" : ""}`) &&
|
|
2378
|
+
e[4] ? "shepherd-button-secondary" : ""}`) && M(t, "class", r), c & /*disabled*/
|
|
2349
2379
|
4 && (t.disabled = /*disabled*/
|
|
2350
2380
|
e[2]);
|
|
2351
2381
|
},
|
|
@@ -2356,13 +2386,13 @@ function po(e) {
|
|
|
2356
2386
|
}
|
|
2357
2387
|
};
|
|
2358
2388
|
}
|
|
2359
|
-
function
|
|
2389
|
+
function bo(e, t, n) {
|
|
2360
2390
|
let {
|
|
2361
2391
|
config: r,
|
|
2362
2392
|
step: i
|
|
2363
2393
|
} = t, o, s, c, a, u, d;
|
|
2364
2394
|
function h(f) {
|
|
2365
|
-
return
|
|
2395
|
+
return ve(f) ? f = f.call(i) : f;
|
|
2366
2396
|
}
|
|
2367
2397
|
return e.$$set = (f) => {
|
|
2368
2398
|
"config" in f && n(6, r = f.config), "step" in f && n(7, i = f.step);
|
|
@@ -2371,25 +2401,25 @@ function go(e, t, n) {
|
|
|
2371
2401
|
192 && (n(0, o = r.action ? r.action.bind(i.tour) : null), n(1, s = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, d = r.text ? h(r.text) : null));
|
|
2372
2402
|
}, [o, s, c, a, u, d, r, i];
|
|
2373
2403
|
}
|
|
2374
|
-
class
|
|
2404
|
+
class yo extends me {
|
|
2375
2405
|
constructor(t) {
|
|
2376
|
-
super(),
|
|
2406
|
+
super(), ge(this, t, bo, vo, pe, {
|
|
2377
2407
|
config: 6,
|
|
2378
2408
|
step: 7
|
|
2379
2409
|
});
|
|
2380
2410
|
}
|
|
2381
2411
|
}
|
|
2382
|
-
function
|
|
2412
|
+
function An(e, t, n) {
|
|
2383
2413
|
const r = e.slice();
|
|
2384
2414
|
return r[2] = t[n], r;
|
|
2385
2415
|
}
|
|
2386
|
-
function
|
|
2387
|
-
let t, n, r =
|
|
2416
|
+
function Pn(e) {
|
|
2417
|
+
let t, n, r = Cn(
|
|
2388
2418
|
/*buttons*/
|
|
2389
2419
|
e[1]
|
|
2390
2420
|
), i = [];
|
|
2391
2421
|
for (let s = 0; s < r.length; s += 1)
|
|
2392
|
-
i[s] =
|
|
2422
|
+
i[s] = kn(An(e, r, s));
|
|
2393
2423
|
const o = (s) => H(i[s], 1, 1, () => {
|
|
2394
2424
|
i[s] = null;
|
|
2395
2425
|
});
|
|
@@ -2397,7 +2427,7 @@ function Tn(e) {
|
|
|
2397
2427
|
c() {
|
|
2398
2428
|
for (let s = 0; s < i.length; s += 1)
|
|
2399
2429
|
i[s].c();
|
|
2400
|
-
t =
|
|
2430
|
+
t = oo();
|
|
2401
2431
|
},
|
|
2402
2432
|
m(s, c) {
|
|
2403
2433
|
for (let a = 0; a < i.length; a += 1)
|
|
@@ -2407,14 +2437,14 @@ function Tn(e) {
|
|
|
2407
2437
|
p(s, c) {
|
|
2408
2438
|
if (c & /*buttons, step*/
|
|
2409
2439
|
3) {
|
|
2410
|
-
r =
|
|
2440
|
+
r = Cn(
|
|
2411
2441
|
/*buttons*/
|
|
2412
2442
|
s[1]
|
|
2413
2443
|
);
|
|
2414
2444
|
let a;
|
|
2415
2445
|
for (a = 0; a < r.length; a += 1) {
|
|
2416
|
-
const u =
|
|
2417
|
-
i[a] ? (i[a].p(u, c), k(i[a], 1)) : (i[a] =
|
|
2446
|
+
const u = An(s, r, a);
|
|
2447
|
+
i[a] ? (i[a].p(u, c), k(i[a], 1)) : (i[a] = kn(u), i[a].c(), k(i[a], 1), i[a].m(t.parentNode, t));
|
|
2418
2448
|
}
|
|
2419
2449
|
for (Re(), a = r.length; a < i.length; a += 1)
|
|
2420
2450
|
o(a);
|
|
@@ -2435,13 +2465,13 @@ function Tn(e) {
|
|
|
2435
2465
|
n = !1;
|
|
2436
2466
|
},
|
|
2437
2467
|
d(s) {
|
|
2438
|
-
s && te(t),
|
|
2468
|
+
s && te(t), io(i, s);
|
|
2439
2469
|
}
|
|
2440
2470
|
};
|
|
2441
2471
|
}
|
|
2442
|
-
function
|
|
2472
|
+
function kn(e) {
|
|
2443
2473
|
let t, n;
|
|
2444
|
-
return t = new
|
|
2474
|
+
return t = new yo({
|
|
2445
2475
|
props: {
|
|
2446
2476
|
config: (
|
|
2447
2477
|
/*config*/
|
|
@@ -2478,14 +2508,14 @@ function Cn(e) {
|
|
|
2478
2508
|
}
|
|
2479
2509
|
};
|
|
2480
2510
|
}
|
|
2481
|
-
function
|
|
2511
|
+
function wo(e) {
|
|
2482
2512
|
let t, n, r = (
|
|
2483
2513
|
/*buttons*/
|
|
2484
|
-
e[1] &&
|
|
2514
|
+
e[1] && Pn(e)
|
|
2485
2515
|
);
|
|
2486
2516
|
return {
|
|
2487
2517
|
c() {
|
|
2488
|
-
t =
|
|
2518
|
+
t = ae("footer"), r && r.c(), M(t, "class", "shepherd-footer");
|
|
2489
2519
|
},
|
|
2490
2520
|
m(i, o) {
|
|
2491
2521
|
se(i, t, o), r && r.m(t, null), n = !0;
|
|
@@ -2493,7 +2523,7 @@ function vo(e) {
|
|
|
2493
2523
|
p(i, [o]) {
|
|
2494
2524
|
/*buttons*/
|
|
2495
2525
|
i[1] ? r ? (r.p(i, o), o & /*buttons*/
|
|
2496
|
-
2 && k(r, 1)) : (r =
|
|
2526
|
+
2 && k(r, 1)) : (r = Pn(i), r.c(), k(r, 1), r.m(t, null)) : r && (Re(), H(r, 1, 1, () => {
|
|
2497
2527
|
r = null;
|
|
2498
2528
|
}), Te());
|
|
2499
2529
|
},
|
|
@@ -2508,7 +2538,7 @@ function vo(e) {
|
|
|
2508
2538
|
}
|
|
2509
2539
|
};
|
|
2510
2540
|
}
|
|
2511
|
-
function
|
|
2541
|
+
function _o(e, t, n) {
|
|
2512
2542
|
let r, {
|
|
2513
2543
|
step: i
|
|
2514
2544
|
} = t;
|
|
@@ -2519,25 +2549,25 @@ function bo(e, t, n) {
|
|
|
2519
2549
|
1 && n(1, r = i.options.buttons);
|
|
2520
2550
|
}, [i, r];
|
|
2521
2551
|
}
|
|
2522
|
-
class
|
|
2552
|
+
class Eo extends me {
|
|
2523
2553
|
constructor(t) {
|
|
2524
|
-
super(),
|
|
2554
|
+
super(), ge(this, t, _o, wo, pe, {
|
|
2525
2555
|
step: 0
|
|
2526
2556
|
});
|
|
2527
2557
|
}
|
|
2528
2558
|
}
|
|
2529
|
-
function
|
|
2559
|
+
function xo(e) {
|
|
2530
2560
|
let t, n, r, i, o;
|
|
2531
2561
|
return {
|
|
2532
2562
|
c() {
|
|
2533
|
-
t =
|
|
2563
|
+
t = ae("button"), n = ae("span"), n.textContent = "×", M(n, "aria-hidden", "true"), M(t, "aria-label", r = /*cancelIcon*/
|
|
2534
2564
|
e[0].label ? (
|
|
2535
2565
|
/*cancelIcon*/
|
|
2536
2566
|
e[0].label
|
|
2537
|
-
) : "Close Tour"),
|
|
2567
|
+
) : "Close Tour"), M(t, "class", "shepherd-cancel-icon"), M(t, "type", "button");
|
|
2538
2568
|
},
|
|
2539
2569
|
m(s, c) {
|
|
2540
|
-
se(s, t, c), Ne(t, n), i || (o =
|
|
2570
|
+
se(s, t, c), Ne(t, n), i || (o = vt(
|
|
2541
2571
|
t,
|
|
2542
2572
|
"click",
|
|
2543
2573
|
/*handleCancelClick*/
|
|
@@ -2550,7 +2580,7 @@ function wo(e) {
|
|
|
2550
2580
|
s[0].label ? (
|
|
2551
2581
|
/*cancelIcon*/
|
|
2552
2582
|
s[0].label
|
|
2553
|
-
) : "Close Tour") &&
|
|
2583
|
+
) : "Close Tour") && M(t, "aria-label", r);
|
|
2554
2584
|
},
|
|
2555
2585
|
i: Z,
|
|
2556
2586
|
o: Z,
|
|
@@ -2559,7 +2589,7 @@ function wo(e) {
|
|
|
2559
2589
|
}
|
|
2560
2590
|
};
|
|
2561
2591
|
}
|
|
2562
|
-
function
|
|
2592
|
+
function So(e, t, n) {
|
|
2563
2593
|
let {
|
|
2564
2594
|
cancelIcon: r,
|
|
2565
2595
|
step: i
|
|
@@ -2571,31 +2601,31 @@ function _o(e, t, n) {
|
|
|
2571
2601
|
"cancelIcon" in s && n(0, r = s.cancelIcon), "step" in s && n(2, i = s.step);
|
|
2572
2602
|
}, [r, o, i];
|
|
2573
2603
|
}
|
|
2574
|
-
class
|
|
2604
|
+
class Oo extends me {
|
|
2575
2605
|
constructor(t) {
|
|
2576
|
-
super(),
|
|
2606
|
+
super(), ge(this, t, So, xo, pe, {
|
|
2577
2607
|
cancelIcon: 0,
|
|
2578
2608
|
step: 2
|
|
2579
2609
|
});
|
|
2580
2610
|
}
|
|
2581
2611
|
}
|
|
2582
|
-
function
|
|
2612
|
+
function Ro(e) {
|
|
2583
2613
|
let t;
|
|
2584
2614
|
return {
|
|
2585
2615
|
c() {
|
|
2586
|
-
t =
|
|
2616
|
+
t = ae("h3"), M(
|
|
2587
2617
|
t,
|
|
2588
2618
|
"id",
|
|
2589
2619
|
/*labelId*/
|
|
2590
2620
|
e[1]
|
|
2591
|
-
),
|
|
2621
|
+
), M(t, "class", "shepherd-title");
|
|
2592
2622
|
},
|
|
2593
2623
|
m(n, r) {
|
|
2594
2624
|
se(n, t, r), e[3](t);
|
|
2595
2625
|
},
|
|
2596
2626
|
p(n, [r]) {
|
|
2597
2627
|
r & /*labelId*/
|
|
2598
|
-
2 &&
|
|
2628
|
+
2 && M(
|
|
2599
2629
|
t,
|
|
2600
2630
|
"id",
|
|
2601
2631
|
/*labelId*/
|
|
@@ -2609,14 +2639,14 @@ function xo(e) {
|
|
|
2609
2639
|
}
|
|
2610
2640
|
};
|
|
2611
2641
|
}
|
|
2612
|
-
function
|
|
2642
|
+
function To(e, t, n) {
|
|
2613
2643
|
let {
|
|
2614
2644
|
labelId: r,
|
|
2615
2645
|
element: i,
|
|
2616
2646
|
title: o
|
|
2617
2647
|
} = t;
|
|
2618
|
-
|
|
2619
|
-
|
|
2648
|
+
Kt(() => {
|
|
2649
|
+
ve(o) && n(2, o = o()), n(0, i.innerHTML = o, i);
|
|
2620
2650
|
});
|
|
2621
2651
|
function s(c) {
|
|
2622
2652
|
We[c ? "unshift" : "push"](() => {
|
|
@@ -2627,18 +2657,18 @@ function So(e, t, n) {
|
|
|
2627
2657
|
"labelId" in c && n(1, r = c.labelId), "element" in c && n(0, i = c.element), "title" in c && n(2, o = c.title);
|
|
2628
2658
|
}, [i, r, o, s];
|
|
2629
2659
|
}
|
|
2630
|
-
class
|
|
2660
|
+
class Co extends me {
|
|
2631
2661
|
constructor(t) {
|
|
2632
|
-
super(),
|
|
2662
|
+
super(), ge(this, t, To, Ro, pe, {
|
|
2633
2663
|
labelId: 1,
|
|
2634
2664
|
element: 0,
|
|
2635
2665
|
title: 2
|
|
2636
2666
|
});
|
|
2637
2667
|
}
|
|
2638
2668
|
}
|
|
2639
|
-
function
|
|
2669
|
+
function In(e) {
|
|
2640
2670
|
let t, n;
|
|
2641
|
-
return t = new
|
|
2671
|
+
return t = new Co({
|
|
2642
2672
|
props: {
|
|
2643
2673
|
labelId: (
|
|
2644
2674
|
/*labelId*/
|
|
@@ -2675,9 +2705,9 @@ function An(e) {
|
|
|
2675
2705
|
}
|
|
2676
2706
|
};
|
|
2677
2707
|
}
|
|
2678
|
-
function
|
|
2708
|
+
function Mn(e) {
|
|
2679
2709
|
let t, n;
|
|
2680
|
-
return t = new
|
|
2710
|
+
return t = new Oo({
|
|
2681
2711
|
props: {
|
|
2682
2712
|
cancelIcon: (
|
|
2683
2713
|
/*cancelIcon*/
|
|
@@ -2714,18 +2744,18 @@ function Pn(e) {
|
|
|
2714
2744
|
}
|
|
2715
2745
|
};
|
|
2716
2746
|
}
|
|
2717
|
-
function
|
|
2747
|
+
function Ao(e) {
|
|
2718
2748
|
let t, n, r, i = (
|
|
2719
2749
|
/*title*/
|
|
2720
|
-
e[2] &&
|
|
2750
|
+
e[2] && In(e)
|
|
2721
2751
|
), o = (
|
|
2722
2752
|
/*cancelIcon*/
|
|
2723
2753
|
e[3] && /*cancelIcon*/
|
|
2724
|
-
e[3].enabled &&
|
|
2754
|
+
e[3].enabled && Mn(e)
|
|
2725
2755
|
);
|
|
2726
2756
|
return {
|
|
2727
2757
|
c() {
|
|
2728
|
-
t =
|
|
2758
|
+
t = ae("header"), i && i.c(), n = ht(), o && o.c(), M(t, "class", "shepherd-header");
|
|
2729
2759
|
},
|
|
2730
2760
|
m(s, c) {
|
|
2731
2761
|
se(s, t, c), i && i.m(t, null), Ne(t, n), o && o.m(t, null), r = !0;
|
|
@@ -2733,12 +2763,12 @@ function Ro(e) {
|
|
|
2733
2763
|
p(s, [c]) {
|
|
2734
2764
|
/*title*/
|
|
2735
2765
|
s[2] ? i ? (i.p(s, c), c & /*title*/
|
|
2736
|
-
4 && k(i, 1)) : (i =
|
|
2766
|
+
4 && k(i, 1)) : (i = In(s), i.c(), k(i, 1), i.m(t, n)) : i && (Re(), H(i, 1, 1, () => {
|
|
2737
2767
|
i = null;
|
|
2738
2768
|
}), Te()), /*cancelIcon*/
|
|
2739
2769
|
s[3] && /*cancelIcon*/
|
|
2740
2770
|
s[3].enabled ? o ? (o.p(s, c), c & /*cancelIcon*/
|
|
2741
|
-
8 && k(o, 1)) : (o =
|
|
2771
|
+
8 && k(o, 1)) : (o = Mn(s), o.c(), k(o, 1), o.m(t, null)) : o && (Re(), H(o, 1, 1, () => {
|
|
2742
2772
|
o = null;
|
|
2743
2773
|
}), Te());
|
|
2744
2774
|
},
|
|
@@ -2753,7 +2783,7 @@ function Ro(e) {
|
|
|
2753
2783
|
}
|
|
2754
2784
|
};
|
|
2755
2785
|
}
|
|
2756
|
-
function
|
|
2786
|
+
function Po(e, t, n) {
|
|
2757
2787
|
let {
|
|
2758
2788
|
labelId: r,
|
|
2759
2789
|
step: i
|
|
@@ -2765,19 +2795,19 @@ function To(e, t, n) {
|
|
|
2765
2795
|
2 && (n(2, o = i.options.title), n(3, s = i.options.cancelIcon));
|
|
2766
2796
|
}, [r, i, o, s];
|
|
2767
2797
|
}
|
|
2768
|
-
class
|
|
2798
|
+
class ko extends me {
|
|
2769
2799
|
constructor(t) {
|
|
2770
|
-
super(),
|
|
2800
|
+
super(), ge(this, t, Po, Ao, pe, {
|
|
2771
2801
|
labelId: 0,
|
|
2772
2802
|
step: 1
|
|
2773
2803
|
});
|
|
2774
2804
|
}
|
|
2775
2805
|
}
|
|
2776
|
-
function
|
|
2806
|
+
function Io(e) {
|
|
2777
2807
|
let t;
|
|
2778
2808
|
return {
|
|
2779
2809
|
c() {
|
|
2780
|
-
t =
|
|
2810
|
+
t = ae("div"), M(t, "class", "shepherd-text"), M(
|
|
2781
2811
|
t,
|
|
2782
2812
|
"id",
|
|
2783
2813
|
/*descriptionId*/
|
|
@@ -2789,7 +2819,7 @@ function Ao(e) {
|
|
|
2789
2819
|
},
|
|
2790
2820
|
p(n, [r]) {
|
|
2791
2821
|
r & /*descriptionId*/
|
|
2792
|
-
2 &&
|
|
2822
|
+
2 && M(
|
|
2793
2823
|
t,
|
|
2794
2824
|
"id",
|
|
2795
2825
|
/*descriptionId*/
|
|
@@ -2803,17 +2833,17 @@ function Ao(e) {
|
|
|
2803
2833
|
}
|
|
2804
2834
|
};
|
|
2805
2835
|
}
|
|
2806
|
-
function
|
|
2836
|
+
function Mo(e, t, n) {
|
|
2807
2837
|
let {
|
|
2808
2838
|
descriptionId: r,
|
|
2809
2839
|
element: i,
|
|
2810
2840
|
step: o
|
|
2811
2841
|
} = t;
|
|
2812
|
-
|
|
2842
|
+
Kt(() => {
|
|
2813
2843
|
let {
|
|
2814
2844
|
text: c
|
|
2815
2845
|
} = o.options;
|
|
2816
|
-
|
|
2846
|
+
ve(c) && (c = c.call(o)), He(c) ? i.appendChild(c) : n(0, i.innerHTML = c, i);
|
|
2817
2847
|
});
|
|
2818
2848
|
function s(c) {
|
|
2819
2849
|
We[c ? "unshift" : "push"](() => {
|
|
@@ -2824,18 +2854,18 @@ function Po(e, t, n) {
|
|
|
2824
2854
|
"descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, i = c.element), "step" in c && n(2, o = c.step);
|
|
2825
2855
|
}, [i, r, o, s];
|
|
2826
2856
|
}
|
|
2827
|
-
class
|
|
2857
|
+
class Fo extends me {
|
|
2828
2858
|
constructor(t) {
|
|
2829
|
-
super(),
|
|
2859
|
+
super(), ge(this, t, Mo, Io, pe, {
|
|
2830
2860
|
descriptionId: 1,
|
|
2831
2861
|
element: 0,
|
|
2832
2862
|
step: 2
|
|
2833
2863
|
});
|
|
2834
2864
|
}
|
|
2835
2865
|
}
|
|
2836
|
-
function
|
|
2866
|
+
function Fn(e) {
|
|
2837
2867
|
let t, n;
|
|
2838
|
-
return t = new
|
|
2868
|
+
return t = new ko({
|
|
2839
2869
|
props: {
|
|
2840
2870
|
labelId: (
|
|
2841
2871
|
/*labelId*/
|
|
@@ -2872,9 +2902,9 @@ function kn(e) {
|
|
|
2872
2902
|
}
|
|
2873
2903
|
};
|
|
2874
2904
|
}
|
|
2875
|
-
function
|
|
2905
|
+
function Ln(e) {
|
|
2876
2906
|
let t, n;
|
|
2877
|
-
return t = new
|
|
2907
|
+
return t = new Fo({
|
|
2878
2908
|
props: {
|
|
2879
2909
|
descriptionId: (
|
|
2880
2910
|
/*descriptionId*/
|
|
@@ -2911,9 +2941,9 @@ function In(e) {
|
|
|
2911
2941
|
}
|
|
2912
2942
|
};
|
|
2913
2943
|
}
|
|
2914
|
-
function
|
|
2944
|
+
function Dn(e) {
|
|
2915
2945
|
let t, n;
|
|
2916
|
-
return t = new
|
|
2946
|
+
return t = new Eo({
|
|
2917
2947
|
props: {
|
|
2918
2948
|
step: (
|
|
2919
2949
|
/*step*/
|
|
@@ -2944,7 +2974,7 @@ function Mn(e) {
|
|
|
2944
2974
|
}
|
|
2945
2975
|
};
|
|
2946
2976
|
}
|
|
2947
|
-
function
|
|
2977
|
+
function Lo(e) {
|
|
2948
2978
|
let t, n = !U(
|
|
2949
2979
|
/*step*/
|
|
2950
2980
|
e[2].options.title
|
|
@@ -2957,10 +2987,10 @@ function Io(e) {
|
|
|
2957
2987
|
/*step*/
|
|
2958
2988
|
e[2].options.buttons
|
|
2959
2989
|
) && /*step*/
|
|
2960
|
-
e[2].options.buttons.length, c, a = n &&
|
|
2990
|
+
e[2].options.buttons.length, c, a = n && Fn(e), u = i && Ln(e), d = s && Dn(e);
|
|
2961
2991
|
return {
|
|
2962
2992
|
c() {
|
|
2963
|
-
t =
|
|
2993
|
+
t = ae("div"), a && a.c(), r = ht(), u && u.c(), o = ht(), d && d.c(), M(t, "class", "shepherd-content");
|
|
2964
2994
|
},
|
|
2965
2995
|
m(h, f) {
|
|
2966
2996
|
se(h, t, f), a && a.m(t, null), Ne(t, r), u && u.m(t, null), Ne(t, o), d && d.m(t, null), c = !0;
|
|
@@ -2973,14 +3003,14 @@ function Io(e) {
|
|
|
2973
3003
|
) || /*step*/
|
|
2974
3004
|
h[2].options.cancelIcon && /*step*/
|
|
2975
3005
|
h[2].options.cancelIcon.enabled), n ? a ? (a.p(h, f), f & /*step*/
|
|
2976
|
-
4 && k(a, 1)) : (a =
|
|
3006
|
+
4 && k(a, 1)) : (a = Fn(h), a.c(), k(a, 1), a.m(t, r)) : a && (Re(), H(a, 1, 1, () => {
|
|
2977
3007
|
a = null;
|
|
2978
3008
|
}), Te()), f & /*step*/
|
|
2979
3009
|
4 && (i = !U(
|
|
2980
3010
|
/*step*/
|
|
2981
3011
|
h[2].options.text
|
|
2982
3012
|
)), i ? u ? (u.p(h, f), f & /*step*/
|
|
2983
|
-
4 && k(u, 1)) : (u =
|
|
3013
|
+
4 && k(u, 1)) : (u = Ln(h), u.c(), k(u, 1), u.m(t, o)) : u && (Re(), H(u, 1, 1, () => {
|
|
2984
3014
|
u = null;
|
|
2985
3015
|
}), Te()), f & /*step*/
|
|
2986
3016
|
4 && (s = Array.isArray(
|
|
@@ -2988,7 +3018,7 @@ function Io(e) {
|
|
|
2988
3018
|
h[2].options.buttons
|
|
2989
3019
|
) && /*step*/
|
|
2990
3020
|
h[2].options.buttons.length), s ? d ? (d.p(h, f), f & /*step*/
|
|
2991
|
-
4 && k(d, 1)) : (d =
|
|
3021
|
+
4 && k(d, 1)) : (d = Dn(h), d.c(), k(d, 1), d.m(t, null)) : d && (Re(), H(d, 1, 1, () => {
|
|
2992
3022
|
d = null;
|
|
2993
3023
|
}), Te());
|
|
2994
3024
|
},
|
|
@@ -3003,7 +3033,7 @@ function Io(e) {
|
|
|
3003
3033
|
}
|
|
3004
3034
|
};
|
|
3005
3035
|
}
|
|
3006
|
-
function
|
|
3036
|
+
function Do(e, t, n) {
|
|
3007
3037
|
let {
|
|
3008
3038
|
descriptionId: r,
|
|
3009
3039
|
labelId: i,
|
|
@@ -3013,20 +3043,20 @@ function Mo(e, t, n) {
|
|
|
3013
3043
|
"descriptionId" in s && n(0, r = s.descriptionId), "labelId" in s && n(1, i = s.labelId), "step" in s && n(2, o = s.step);
|
|
3014
3044
|
}, [r, i, o];
|
|
3015
3045
|
}
|
|
3016
|
-
class
|
|
3046
|
+
class jo extends me {
|
|
3017
3047
|
constructor(t) {
|
|
3018
|
-
super(),
|
|
3048
|
+
super(), ge(this, t, Do, Lo, pe, {
|
|
3019
3049
|
descriptionId: 0,
|
|
3020
3050
|
labelId: 1,
|
|
3021
3051
|
step: 2
|
|
3022
3052
|
});
|
|
3023
3053
|
}
|
|
3024
3054
|
}
|
|
3025
|
-
function
|
|
3055
|
+
function jn(e) {
|
|
3026
3056
|
let t;
|
|
3027
3057
|
return {
|
|
3028
3058
|
c() {
|
|
3029
|
-
t =
|
|
3059
|
+
t = ae("div"), M(t, "class", "shepherd-arrow"), M(t, "data-popper-arrow", "");
|
|
3030
3060
|
},
|
|
3031
3061
|
m(n, r) {
|
|
3032
3062
|
se(n, t, r);
|
|
@@ -3036,15 +3066,15 @@ function Fn(e) {
|
|
|
3036
3066
|
}
|
|
3037
3067
|
};
|
|
3038
3068
|
}
|
|
3039
|
-
function
|
|
3069
|
+
function Ho(e) {
|
|
3040
3070
|
let t, n, r, i, o, s, c, a, u = (
|
|
3041
3071
|
/*step*/
|
|
3042
3072
|
e[4].options.arrow && /*step*/
|
|
3043
3073
|
e[4].options.attachTo && /*step*/
|
|
3044
3074
|
e[4].options.attachTo.element && /*step*/
|
|
3045
|
-
e[4].options.attachTo.on &&
|
|
3075
|
+
e[4].options.attachTo.on && jn()
|
|
3046
3076
|
);
|
|
3047
|
-
r = new
|
|
3077
|
+
r = new jo({
|
|
3048
3078
|
props: {
|
|
3049
3079
|
descriptionId: (
|
|
3050
3080
|
/*descriptionId*/
|
|
@@ -3084,10 +3114,10 @@ function Lo(e) {
|
|
|
3084
3114
|
}
|
|
3085
3115
|
], h = {};
|
|
3086
3116
|
for (let f = 0; f < d.length; f += 1)
|
|
3087
|
-
h =
|
|
3117
|
+
h = no(h, d[f]);
|
|
3088
3118
|
return {
|
|
3089
3119
|
c() {
|
|
3090
|
-
t =
|
|
3120
|
+
t = ae("dialog"), u && u.c(), n = ht(), Pe(r.$$.fragment), Rn(t, h), Me(
|
|
3091
3121
|
t,
|
|
3092
3122
|
"shepherd-has-cancel-icon",
|
|
3093
3123
|
/*hasCancelIcon*/
|
|
@@ -3100,7 +3130,7 @@ function Lo(e) {
|
|
|
3100
3130
|
), Me(t, "shepherd-element", !0);
|
|
3101
3131
|
},
|
|
3102
3132
|
m(f, g) {
|
|
3103
|
-
se(f, t, g), u && u.m(t, null), Ne(t, n), we(r, t, null), e[13](t), s = !0, c || (a =
|
|
3133
|
+
se(f, t, g), u && u.m(t, null), Ne(t, n), we(r, t, null), e[13](t), s = !0, c || (a = vt(
|
|
3104
3134
|
t,
|
|
3105
3135
|
"keydown",
|
|
3106
3136
|
/*handleKeyDown*/
|
|
@@ -3112,7 +3142,7 @@ function Lo(e) {
|
|
|
3112
3142
|
f[4].options.arrow && /*step*/
|
|
3113
3143
|
f[4].options.attachTo && /*step*/
|
|
3114
3144
|
f[4].options.attachTo.element && /*step*/
|
|
3115
|
-
f[4].options.attachTo.on ? u || (u =
|
|
3145
|
+
f[4].options.attachTo.on ? u || (u = jn(), u.c(), u.m(t, n)) : u && (u.d(1), u = null);
|
|
3116
3146
|
const b = {};
|
|
3117
3147
|
g & /*descriptionId*/
|
|
3118
3148
|
4 && (b.descriptionId = /*descriptionId*/
|
|
@@ -3120,7 +3150,7 @@ function Lo(e) {
|
|
|
3120
3150
|
8 && (b.labelId = /*labelId*/
|
|
3121
3151
|
f[3]), g & /*step*/
|
|
3122
3152
|
16 && (b.step = /*step*/
|
|
3123
|
-
f[4]), r.$set(b),
|
|
3153
|
+
f[4]), r.$set(b), Rn(t, h = po(d, [(!s || g & /*step, descriptionId*/
|
|
3124
3154
|
20 && i !== (i = U(
|
|
3125
3155
|
/*step*/
|
|
3126
3156
|
f[4].options.text
|
|
@@ -3163,11 +3193,11 @@ function Lo(e) {
|
|
|
3163
3193
|
}
|
|
3164
3194
|
};
|
|
3165
3195
|
}
|
|
3166
|
-
const
|
|
3167
|
-
function
|
|
3196
|
+
const $o = 9, Bo = 27, Vo = 37, No = 39;
|
|
3197
|
+
function Hn(e) {
|
|
3168
3198
|
return e.split(" ").filter((t) => !!t.length);
|
|
3169
3199
|
}
|
|
3170
|
-
function
|
|
3200
|
+
function Wo(e, t, n) {
|
|
3171
3201
|
let {
|
|
3172
3202
|
classPrefix: r,
|
|
3173
3203
|
element: i,
|
|
@@ -3180,11 +3210,11 @@ function Vo(e, t, n) {
|
|
|
3180
3210
|
dataStepId: h
|
|
3181
3211
|
} = t, f, g, b;
|
|
3182
3212
|
const E = () => i;
|
|
3183
|
-
|
|
3213
|
+
co(() => {
|
|
3184
3214
|
n(1, h = {
|
|
3185
3215
|
[`data-${r}shepherd-step-id`]: d.id
|
|
3186
3216
|
}), n(9, c = i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, s = c[0]), n(10, u = c[c.length - 1]);
|
|
3187
|
-
}),
|
|
3217
|
+
}), Kt(() => {
|
|
3188
3218
|
b !== d.options.classes && S();
|
|
3189
3219
|
});
|
|
3190
3220
|
function S() {
|
|
@@ -3192,13 +3222,13 @@ function Vo(e, t, n) {
|
|
|
3192
3222
|
}
|
|
3193
3223
|
function _(m) {
|
|
3194
3224
|
if (Xe(m)) {
|
|
3195
|
-
const R =
|
|
3225
|
+
const R = Hn(m);
|
|
3196
3226
|
R.length && i.classList.remove(...R);
|
|
3197
3227
|
}
|
|
3198
3228
|
}
|
|
3199
3229
|
function w(m) {
|
|
3200
3230
|
if (Xe(m)) {
|
|
3201
|
-
const R =
|
|
3231
|
+
const R = Hn(m);
|
|
3202
3232
|
R.length && i.classList.add(...R);
|
|
3203
3233
|
}
|
|
3204
3234
|
}
|
|
@@ -3207,20 +3237,20 @@ function Vo(e, t, n) {
|
|
|
3207
3237
|
tour: R
|
|
3208
3238
|
} = d;
|
|
3209
3239
|
switch (m.keyCode) {
|
|
3210
|
-
case
|
|
3240
|
+
case $o:
|
|
3211
3241
|
if (c.length === 0) {
|
|
3212
3242
|
m.preventDefault();
|
|
3213
3243
|
break;
|
|
3214
3244
|
}
|
|
3215
3245
|
m.shiftKey ? (document.activeElement === s || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), s.focus());
|
|
3216
3246
|
break;
|
|
3217
|
-
case
|
|
3247
|
+
case Bo:
|
|
3218
3248
|
R.options.exitOnEsc && (m.preventDefault(), m.stopPropagation(), d.cancel());
|
|
3219
3249
|
break;
|
|
3220
|
-
case
|
|
3250
|
+
case Vo:
|
|
3221
3251
|
R.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), R.back());
|
|
3222
3252
|
break;
|
|
3223
|
-
case
|
|
3253
|
+
case No:
|
|
3224
3254
|
R.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), R.next());
|
|
3225
3255
|
break;
|
|
3226
3256
|
}
|
|
@@ -3237,9 +3267,9 @@ function Vo(e, t, n) {
|
|
|
3237
3267
|
16 && (n(5, f = d.options && d.options.cancelIcon && d.options.cancelIcon.enabled), n(6, g = d.options && d.options.title));
|
|
3238
3268
|
}, [i, h, o, a, d, f, g, O, s, c, u, r, E, y];
|
|
3239
3269
|
}
|
|
3240
|
-
class
|
|
3270
|
+
class Yo extends me {
|
|
3241
3271
|
constructor(t) {
|
|
3242
|
-
super(),
|
|
3272
|
+
super(), ge(this, t, Wo, Ho, pe, {
|
|
3243
3273
|
classPrefix: 11,
|
|
3244
3274
|
element: 0,
|
|
3245
3275
|
descriptionId: 2,
|
|
@@ -3256,9 +3286,9 @@ class Bo extends ge {
|
|
|
3256
3286
|
return this.$$.ctx[12];
|
|
3257
3287
|
}
|
|
3258
3288
|
}
|
|
3259
|
-
class
|
|
3289
|
+
class Lt extends Dt {
|
|
3260
3290
|
constructor(t, n = {}) {
|
|
3261
|
-
return super(), this._resolvedAttachTo = void 0, this._resolvedExtraHighlightElements = 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 ?
|
|
3291
|
+
return super(), this._resolvedAttachTo = void 0, this._resolvedExtraHighlightElements = 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 ? Nn(this.tour.options.classPrefix) : "", this.styles = t.styles, this._resolvedAttachTo = null, $t(this), this._setOptions(n), this;
|
|
3262
3292
|
}
|
|
3263
3293
|
/**
|
|
3264
3294
|
* Cancel the tour
|
|
@@ -3279,7 +3309,7 @@ class Mt extends Ft {
|
|
|
3279
3309
|
* Triggers `destroy` event
|
|
3280
3310
|
*/
|
|
3281
3311
|
destroy() {
|
|
3282
|
-
|
|
3312
|
+
Xi(this), He(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
|
|
3283
3313
|
}
|
|
3284
3314
|
/**
|
|
3285
3315
|
* Returns the tour for the step
|
|
@@ -3300,14 +3330,14 @@ class Mt extends Ft {
|
|
|
3300
3330
|
* @returns {{}|{element, on}}
|
|
3301
3331
|
*/
|
|
3302
3332
|
_resolveExtraHiglightElements() {
|
|
3303
|
-
return this._resolvedExtraHighlightElements =
|
|
3333
|
+
return this._resolvedExtraHighlightElements = si(this), this._resolvedExtraHighlightElements;
|
|
3304
3334
|
}
|
|
3305
3335
|
/**
|
|
3306
3336
|
* Resolves attachTo options.
|
|
3307
3337
|
* @returns {{}|{element, on}}
|
|
3308
3338
|
*/
|
|
3309
3339
|
_resolveAttachToOptions() {
|
|
3310
|
-
return this._resolvedAttachTo =
|
|
3340
|
+
return this._resolvedAttachTo = oi(this), this._resolvedAttachTo;
|
|
3311
3341
|
}
|
|
3312
3342
|
/**
|
|
3313
3343
|
* A selector for resolved attachTo options.
|
|
@@ -3328,7 +3358,7 @@ class Mt extends Ft {
|
|
|
3328
3358
|
* Wraps `_show` and ensures `beforeShowPromise` resolves before calling show
|
|
3329
3359
|
*/
|
|
3330
3360
|
show() {
|
|
3331
|
-
return
|
|
3361
|
+
return ve(this.options.beforeShowPromise) ? Promise.resolve(this.options.beforeShowPromise()).then(() => this._show()) : Promise.resolve(this._show());
|
|
3332
3362
|
}
|
|
3333
3363
|
/**
|
|
3334
3364
|
* Updates the options of the step.
|
|
@@ -3362,7 +3392,7 @@ class Mt extends Ft {
|
|
|
3362
3392
|
*/
|
|
3363
3393
|
_createTooltipContent() {
|
|
3364
3394
|
const t = `${this.id}-description`, n = `${this.id}-label`;
|
|
3365
|
-
return this.shepherdElementComponent = new
|
|
3395
|
+
return this.shepherdElementComponent = new Yo({
|
|
3366
3396
|
target: this.tour.options.stepsContainer || document.body,
|
|
3367
3397
|
props: {
|
|
3368
3398
|
classPrefix: this.classPrefix,
|
|
@@ -3386,7 +3416,7 @@ class Mt extends Ft {
|
|
|
3386
3416
|
const {
|
|
3387
3417
|
element: n
|
|
3388
3418
|
} = this._getResolvedAttachToOptions();
|
|
3389
|
-
|
|
3419
|
+
ve(this.options.scrollToHandler) ? this.options.scrollToHandler(n) : Hr(n) && typeof n.scrollIntoView == "function" && n.scrollIntoView(t);
|
|
3390
3420
|
}
|
|
3391
3421
|
/**
|
|
3392
3422
|
* _getClassOptions gets all possible classes for the step
|
|
@@ -3403,13 +3433,13 @@ class Mt extends Ft {
|
|
|
3403
3433
|
*/
|
|
3404
3434
|
_setOptions(t = {}) {
|
|
3405
3435
|
let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
|
|
3406
|
-
n =
|
|
3436
|
+
n = Ht({}, n || {}), this.options = Object.assign({
|
|
3407
3437
|
arrow: !0
|
|
3408
|
-
}, n, t,
|
|
3438
|
+
}, n, t, Ki(n, t));
|
|
3409
3439
|
const {
|
|
3410
3440
|
when: r
|
|
3411
3441
|
} = this.options;
|
|
3412
|
-
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${
|
|
3442
|
+
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Yn()}`, r && Object.keys(r).forEach((i) => {
|
|
3413
3443
|
this.on(i, r[i], this);
|
|
3414
3444
|
});
|
|
3415
3445
|
}
|
|
@@ -3418,7 +3448,7 @@ class Mt extends Ft {
|
|
|
3418
3448
|
* @private
|
|
3419
3449
|
*/
|
|
3420
3450
|
_setupElements() {
|
|
3421
|
-
U(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn &&
|
|
3451
|
+
U(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && ni(this), Ji(this);
|
|
3422
3452
|
}
|
|
3423
3453
|
/**
|
|
3424
3454
|
* Triggers `before-show`, generates the tooltip DOM content,
|
|
@@ -3461,7 +3491,7 @@ class Mt extends Ft {
|
|
|
3461
3491
|
});
|
|
3462
3492
|
}
|
|
3463
3493
|
}
|
|
3464
|
-
function
|
|
3494
|
+
function Uo(e) {
|
|
3465
3495
|
if (e) {
|
|
3466
3496
|
const {
|
|
3467
3497
|
steps: t
|
|
@@ -3473,7 +3503,7 @@ function No(e) {
|
|
|
3473
3503
|
});
|
|
3474
3504
|
}
|
|
3475
3505
|
}
|
|
3476
|
-
function
|
|
3506
|
+
function qo(e) {
|
|
3477
3507
|
let t = "";
|
|
3478
3508
|
const {
|
|
3479
3509
|
innerWidth: n,
|
|
@@ -3500,20 +3530,20 @@ function Wo(e) {
|
|
|
3500
3530
|
t += `M${c + d},${a} a${d},${d},0,0,0-${d},${d} V${s + a - g} a${g},${g},0,0,0,${g},${g} H${o + c - f} a${f},${f},0,0,0,${f}-${f} V${a + h} a${h},${h},0,0,0-${h}-${h} Z`;
|
|
3501
3531
|
}), `M${n},${r} H0 V0 H${n} V${r} Z ${t}`.replace(/\s/g, "");
|
|
3502
3532
|
}
|
|
3503
|
-
function
|
|
3533
|
+
function zo(e) {
|
|
3504
3534
|
let t, n, r, i, o;
|
|
3505
3535
|
return {
|
|
3506
3536
|
c() {
|
|
3507
|
-
t =
|
|
3537
|
+
t = On("svg"), n = On("path"), M(
|
|
3508
3538
|
n,
|
|
3509
3539
|
"d",
|
|
3510
3540
|
/*pathDefinition*/
|
|
3511
3541
|
e[2]
|
|
3512
|
-
),
|
|
3542
|
+
), M(t, "class", r = `${/*modalIsVisible*/
|
|
3513
3543
|
e[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`);
|
|
3514
3544
|
},
|
|
3515
3545
|
m(s, c) {
|
|
3516
|
-
se(s, t, c), Ne(t, n), e[11](t), i || (o =
|
|
3546
|
+
se(s, t, c), Ne(t, n), e[11](t), i || (o = vt(
|
|
3517
3547
|
t,
|
|
3518
3548
|
"touchmove",
|
|
3519
3549
|
/*_preventModalOverlayTouch*/
|
|
@@ -3522,14 +3552,14 @@ function Yo(e) {
|
|
|
3522
3552
|
},
|
|
3523
3553
|
p(s, [c]) {
|
|
3524
3554
|
c & /*pathDefinition*/
|
|
3525
|
-
4 &&
|
|
3555
|
+
4 && M(
|
|
3526
3556
|
n,
|
|
3527
3557
|
"d",
|
|
3528
3558
|
/*pathDefinition*/
|
|
3529
3559
|
s[2]
|
|
3530
3560
|
), c & /*modalIsVisible*/
|
|
3531
3561
|
2 && r !== (r = `${/*modalIsVisible*/
|
|
3532
|
-
s[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) &&
|
|
3562
|
+
s[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && M(t, "class", r);
|
|
3533
3563
|
},
|
|
3534
3564
|
i: Z,
|
|
3535
3565
|
o: Z,
|
|
@@ -3538,13 +3568,13 @@ function Yo(e) {
|
|
|
3538
3568
|
}
|
|
3539
3569
|
};
|
|
3540
3570
|
}
|
|
3541
|
-
function
|
|
3571
|
+
function ir(e) {
|
|
3542
3572
|
if (!e)
|
|
3543
3573
|
return null;
|
|
3544
3574
|
const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
|
|
3545
|
-
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e :
|
|
3575
|
+
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : ir(e.parentElement);
|
|
3546
3576
|
}
|
|
3547
|
-
function
|
|
3577
|
+
function Jo(e) {
|
|
3548
3578
|
let t = {
|
|
3549
3579
|
top: 0,
|
|
3550
3580
|
left: 0
|
|
@@ -3564,7 +3594,7 @@ function Uo(e) {
|
|
|
3564
3594
|
}
|
|
3565
3595
|
return t;
|
|
3566
3596
|
}
|
|
3567
|
-
function
|
|
3597
|
+
function Ko(e, t) {
|
|
3568
3598
|
const n = e.getBoundingClientRect();
|
|
3569
3599
|
let r = n.y || n.top, i = n.bottom || r + n.height;
|
|
3570
3600
|
if (t) {
|
|
@@ -3577,7 +3607,7 @@ function qo(e, t) {
|
|
|
3577
3607
|
height: o
|
|
3578
3608
|
};
|
|
3579
3609
|
}
|
|
3580
|
-
function
|
|
3610
|
+
function Xo(e, t, n) {
|
|
3581
3611
|
let {
|
|
3582
3612
|
element: r,
|
|
3583
3613
|
openingProperties: i
|
|
@@ -3606,19 +3636,19 @@ function zo(e, t, n) {
|
|
|
3606
3636
|
const {
|
|
3607
3637
|
y: F,
|
|
3608
3638
|
height: L
|
|
3609
|
-
} =
|
|
3610
|
-
x:
|
|
3639
|
+
} = Ko(A, K), {
|
|
3640
|
+
x: V,
|
|
3611
3641
|
width: N,
|
|
3612
3642
|
left: ne
|
|
3613
3643
|
} = A.getBoundingClientRect();
|
|
3614
3644
|
$.some((Q) => {
|
|
3615
3645
|
if (Q === A) return !1;
|
|
3616
3646
|
const Y = Q.getBoundingClientRect();
|
|
3617
|
-
return
|
|
3647
|
+
return V >= Y.left && V + N <= Y.right && F >= Y.top && F + L <= Y.bottom;
|
|
3618
3648
|
}) || i.push({
|
|
3619
3649
|
width: N + y * 2,
|
|
3620
3650
|
height: L + y * 2,
|
|
3621
|
-
x: (
|
|
3651
|
+
x: (V || ne) + R - y,
|
|
3622
3652
|
y: F + D - y,
|
|
3623
3653
|
r: m
|
|
3624
3654
|
});
|
|
@@ -3653,7 +3683,7 @@ function zo(e, t, n) {
|
|
|
3653
3683
|
modalOverlayOpeningRadius: R,
|
|
3654
3684
|
modalOverlayOpeningXOffset: D = 0,
|
|
3655
3685
|
modalOverlayOpeningYOffset: K = 0
|
|
3656
|
-
} = y.options, W =
|
|
3686
|
+
} = y.options, W = Jo(y.target), X = ir(y.target), $ = () => {
|
|
3657
3687
|
s = void 0, h(m, R, D + W.left, K + W.top, X, y.target, y._resolvedExtraHighlightElements), s = requestAnimationFrame($);
|
|
3658
3688
|
};
|
|
3659
3689
|
$(), S();
|
|
@@ -3667,12 +3697,12 @@ function zo(e, t, n) {
|
|
|
3667
3697
|
"element" in y && n(0, r = y.element), "openingProperties" in y && n(4, i = y.openingProperties);
|
|
3668
3698
|
}, e.$$.update = () => {
|
|
3669
3699
|
e.$$.dirty & /*openingProperties*/
|
|
3670
|
-
16 && n(2, c =
|
|
3700
|
+
16 && n(2, c = qo(i));
|
|
3671
3701
|
}, [r, o, c, E, i, a, u, d, h, f, g, O];
|
|
3672
3702
|
}
|
|
3673
|
-
class
|
|
3703
|
+
class Go extends me {
|
|
3674
3704
|
constructor(t) {
|
|
3675
|
-
super(),
|
|
3705
|
+
super(), ge(this, t, Xo, zo, pe, {
|
|
3676
3706
|
element: 0,
|
|
3677
3707
|
openingProperties: 4,
|
|
3678
3708
|
getElement: 5,
|
|
@@ -3702,19 +3732,19 @@ class Jo extends ge {
|
|
|
3702
3732
|
return this.$$.ctx[10];
|
|
3703
3733
|
}
|
|
3704
3734
|
}
|
|
3705
|
-
class
|
|
3735
|
+
class Zo extends Dt {
|
|
3706
3736
|
constructor() {
|
|
3707
|
-
super(), this.activeTour = void 0,
|
|
3737
|
+
super(), this.activeTour = void 0, $t(this);
|
|
3708
3738
|
}
|
|
3709
3739
|
}
|
|
3710
|
-
class
|
|
3740
|
+
class Qo extends Dt {
|
|
3711
3741
|
constructor(t = {}) {
|
|
3712
|
-
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,
|
|
3742
|
+
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, $t(this);
|
|
3713
3743
|
const n = {
|
|
3714
3744
|
exitOnEsc: !0,
|
|
3715
3745
|
keyboardNavigation: !0
|
|
3716
3746
|
};
|
|
3717
|
-
return this.options = Object.assign({}, n, t), this.classPrefix =
|
|
3747
|
+
return this.options = Object.assign({}, n, t), this.classPrefix = Nn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((i) => {
|
|
3718
3748
|
((o) => {
|
|
3719
3749
|
this.on(o, (s) => {
|
|
3720
3750
|
s = s || {}, s.tour = this, Se.trigger(o, s);
|
|
@@ -3731,7 +3761,7 @@ class Xo extends Ft {
|
|
|
3731
3761
|
*/
|
|
3732
3762
|
addStep(t, n) {
|
|
3733
3763
|
let r = t;
|
|
3734
|
-
return r instanceof
|
|
3764
|
+
return r instanceof Lt ? r.tour = this : r = new Lt(this, r), U(n) ? this.steps.push(r) : this.steps.splice(n, 0, r), r;
|
|
3735
3765
|
}
|
|
3736
3766
|
/**
|
|
3737
3767
|
* Add multiple steps to the tour
|
|
@@ -3759,7 +3789,7 @@ class Xo extends Ft {
|
|
|
3759
3789
|
if (this.options.confirmCancel) {
|
|
3760
3790
|
const t = this.options.confirmCancelMessage || "Are you sure you want to stop the tour?";
|
|
3761
3791
|
let n;
|
|
3762
|
-
|
|
3792
|
+
ve(this.options.confirmCancel) ? n = await this.options.confirmCancel() : n = window.confirm(t), n && this._done("cancel");
|
|
3763
3793
|
} else
|
|
3764
3794
|
this._done("cancel");
|
|
3765
3795
|
}
|
|
@@ -3823,7 +3853,7 @@ class Xo extends Ft {
|
|
|
3823
3853
|
*/
|
|
3824
3854
|
show(t = 0, n = !0) {
|
|
3825
3855
|
const r = Xe(t) ? this.getById(t) : this.steps[t];
|
|
3826
|
-
r && (this._updateStateBeforeShow(),
|
|
3856
|
+
r && (this._updateStateBeforeShow(), ve(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.currentStep = r, this.trigger("show", {
|
|
3827
3857
|
step: r,
|
|
3828
3858
|
previous: this.currentStep
|
|
3829
3859
|
}), r.show()));
|
|
@@ -3841,7 +3871,7 @@ class Xo extends Ft {
|
|
|
3841
3871
|
*/
|
|
3842
3872
|
_done(t) {
|
|
3843
3873
|
const n = this.steps.indexOf(this.currentStep);
|
|
3844
|
-
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()),
|
|
3874
|
+
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), Uo(this), this.trigger(t, {
|
|
3845
3875
|
index: n
|
|
3846
3876
|
}), Se.activeTour = null, this.trigger("inactive", {
|
|
3847
3877
|
tour: this
|
|
@@ -3863,7 +3893,7 @@ class Xo extends Ft {
|
|
|
3863
3893
|
* setupModal create the modal container and instance
|
|
3864
3894
|
*/
|
|
3865
3895
|
setupModal() {
|
|
3866
|
-
this.modal = new
|
|
3896
|
+
this.modal = new Go({
|
|
3867
3897
|
target: this.options.modalContainer || document.body,
|
|
3868
3898
|
props: {
|
|
3869
3899
|
// @ts-expect-error TODO: investigate where styles comes from
|
|
@@ -3900,29 +3930,29 @@ class Xo extends Ft {
|
|
|
3900
3930
|
* @private
|
|
3901
3931
|
*/
|
|
3902
3932
|
_setTourID(t) {
|
|
3903
|
-
const n = this.options.tourName || "tour", r = t ||
|
|
3933
|
+
const n = this.options.tourName || "tour", r = t || Yn();
|
|
3904
3934
|
this.id = `${n}--${r}`;
|
|
3905
3935
|
}
|
|
3906
3936
|
}
|
|
3907
|
-
const Se = new
|
|
3908
|
-
Se.Step =
|
|
3909
|
-
Se.Tour =
|
|
3910
|
-
const
|
|
3937
|
+
const Se = new Zo(), or = typeof window > "u";
|
|
3938
|
+
Se.Step = or ? ri : Lt;
|
|
3939
|
+
Se.Tour = or ? ii : Qo;
|
|
3940
|
+
const Xt = Mr(
|
|
3911
3941
|
void 0
|
|
3912
|
-
),
|
|
3913
|
-
const e =
|
|
3942
|
+
), ts = Xt.Consumer, ns = () => {
|
|
3943
|
+
const e = Fr(Xt);
|
|
3914
3944
|
if (!e)
|
|
3915
3945
|
throw new Error(
|
|
3916
3946
|
"useShepherd must be used within a ShepherdJourneyProvider"
|
|
3917
3947
|
);
|
|
3918
3948
|
const { Shepherd: t } = e;
|
|
3919
3949
|
return t;
|
|
3920
|
-
},
|
|
3950
|
+
}, rs = ({
|
|
3921
3951
|
children: e
|
|
3922
|
-
}) => /* @__PURE__ */
|
|
3952
|
+
}) => /* @__PURE__ */ jr.jsx(Xt.Provider, { value: { Shepherd: Se }, children: e });
|
|
3923
3953
|
export {
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3954
|
+
ts as JourneyMethods,
|
|
3955
|
+
Xt as ShepherdJourneyContext,
|
|
3956
|
+
rs as ShepherdJourneyProvider,
|
|
3957
|
+
ns as useShepherd
|
|
3928
3958
|
};
|