@inertiaui/modal-react 0.5.4 → 0.6.1
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/inertiaui-modal.js +736 -731
- package/dist/inertiaui-modal.umd.cjs +17 -17
- package/package.json +1 -1
- package/src/HeadlessModal.jsx +13 -13
- package/src/Modal.jsx +7 -7
- package/src/ModalContent.jsx +17 -17
- package/src/ModalRenderer.jsx +1 -1
- package/src/ModalRoot.jsx +16 -16
- package/src/SlideoverContent.jsx +18 -18
- package/src/inertiauiModal.js +2 -1
- package/src/useModal.js +6 -0
package/dist/inertiaui-modal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ye = (t, e, r) =>
|
|
4
|
-
import * as
|
|
5
|
-
import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as
|
|
1
|
+
var Fo = Object.defineProperty;
|
|
2
|
+
var Co = (t, e, r) => e in t ? Fo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var ye = (t, e, r) => Co(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import * as ht from "react";
|
|
5
|
+
import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as Pr, useMemo as J, forwardRef as Hr, useImperativeHandle as na, useLayoutEffect as Io, useRef as j, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as Ot, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
|
|
6
6
|
import jt from "axios";
|
|
7
|
-
import { router as
|
|
8
|
-
import { createPortal as
|
|
9
|
-
const
|
|
7
|
+
import { router as vt } from "@inertiajs/react";
|
|
8
|
+
import { createPortal as jo } from "react-dom";
|
|
9
|
+
const ct = {
|
|
10
10
|
type: "modal",
|
|
11
11
|
navigate: !1,
|
|
12
12
|
modal: {
|
|
@@ -26,19 +26,20 @@ const Ct = {
|
|
|
26
26
|
position: "right"
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
class
|
|
29
|
+
class Lo {
|
|
30
30
|
constructor() {
|
|
31
31
|
this.config = {}, this.reset();
|
|
32
32
|
}
|
|
33
33
|
reset() {
|
|
34
|
-
this.config = JSON.parse(JSON.stringify(
|
|
34
|
+
this.config = JSON.parse(JSON.stringify(ct));
|
|
35
35
|
}
|
|
36
36
|
put(e, r) {
|
|
37
37
|
if (typeof e == "object") {
|
|
38
38
|
this.config = {
|
|
39
|
-
type: e.type ??
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
type: e.type ?? ct.type,
|
|
40
|
+
navigate: e.navigate ?? ct.navigate,
|
|
41
|
+
modal: { ...ct.modal, ...e.modal ?? {} },
|
|
42
|
+
slideover: { ...ct.slideover, ...e.slideover ?? {} }
|
|
42
43
|
};
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
@@ -61,12 +62,12 @@ class jo {
|
|
|
61
62
|
return n;
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
const Yt = new
|
|
65
|
-
var
|
|
66
|
-
function
|
|
65
|
+
const Yt = new Lo(), xc = () => Yt.reset(), Oc = (t, e) => Yt.put(t, e), Vr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
|
|
66
|
+
var Ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
67
|
+
function Wo(t) {
|
|
67
68
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function Uo(t) {
|
|
70
71
|
if (t.__esModule) return t;
|
|
71
72
|
var e = t.default;
|
|
72
73
|
if (typeof e == "function") {
|
|
@@ -85,7 +86,7 @@ function Wo(t) {
|
|
|
85
86
|
});
|
|
86
87
|
}), r;
|
|
87
88
|
}
|
|
88
|
-
var
|
|
89
|
+
var Tr = { exports: {} }, ft = {};
|
|
89
90
|
/**
|
|
90
91
|
* @license React
|
|
91
92
|
* react-jsx-runtime.production.min.js
|
|
@@ -96,20 +97,20 @@ var Ar = { exports: {} }, ct = {};
|
|
|
96
97
|
* LICENSE file in the root directory of this source tree.
|
|
97
98
|
*/
|
|
98
99
|
var wn;
|
|
99
|
-
function
|
|
100
|
-
if (wn) return
|
|
100
|
+
function Bo() {
|
|
101
|
+
if (wn) return ft;
|
|
101
102
|
wn = 1;
|
|
102
103
|
var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
103
104
|
function l(u, i, d) {
|
|
104
|
-
var s,
|
|
105
|
+
var s, g = {}, v = null, w = null;
|
|
105
106
|
d !== void 0 && (v = "" + d), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
|
|
106
|
-
for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (
|
|
107
|
-
if (u && u.defaultProps) for (s in i = u.defaultProps, i)
|
|
108
|
-
return { $$typeof: e, type: u, key: v, ref: w, props:
|
|
107
|
+
for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (g[s] = i[s]);
|
|
108
|
+
if (u && u.defaultProps) for (s in i = u.defaultProps, i) g[s] === void 0 && (g[s] = i[s]);
|
|
109
|
+
return { $$typeof: e, type: u, key: v, ref: w, props: g, _owner: a.current };
|
|
109
110
|
}
|
|
110
|
-
return
|
|
111
|
+
return ft.Fragment = r, ft.jsx = l, ft.jsxs = l, ft;
|
|
111
112
|
}
|
|
112
|
-
var
|
|
113
|
+
var dt = {};
|
|
113
114
|
/**
|
|
114
115
|
* @license React
|
|
115
116
|
* react-jsx-runtime.development.js
|
|
@@ -120,9 +121,9 @@ var ft = {};
|
|
|
120
121
|
* LICENSE file in the root directory of this source tree.
|
|
121
122
|
*/
|
|
122
123
|
var En;
|
|
123
|
-
function
|
|
124
|
+
function Ho() {
|
|
124
125
|
return En || (En = 1, process.env.NODE_ENV !== "production" && function() {
|
|
125
|
-
var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"),
|
|
126
|
+
var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), f = Symbol.iterator, y = "@@iterator";
|
|
126
127
|
function p(c) {
|
|
127
128
|
if (c === null || typeof c != "object")
|
|
128
129
|
return null;
|
|
@@ -130,7 +131,7 @@ function Bo() {
|
|
|
130
131
|
return typeof E == "function" ? E : null;
|
|
131
132
|
}
|
|
132
133
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
133
|
-
function
|
|
134
|
+
function h(c) {
|
|
134
135
|
{
|
|
135
136
|
for (var E = arguments.length, x = new Array(E > 1 ? E - 1 : 0), P = 1; P < E; P++)
|
|
136
137
|
x[P - 1] = arguments[P];
|
|
@@ -150,7 +151,7 @@ function Bo() {
|
|
|
150
151
|
var S = !1, O = !1, _ = !1, M = !1, W = !1, H;
|
|
151
152
|
H = Symbol.for("react.module.reference");
|
|
152
153
|
function k(c) {
|
|
153
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === d || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof ===
|
|
154
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === d || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === g || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
|
|
154
155
|
// types supported by any Flight configuration anywhere since
|
|
155
156
|
// we don't know which Flight build this will end up being used
|
|
156
157
|
// with.
|
|
@@ -169,7 +170,7 @@ function Bo() {
|
|
|
169
170
|
function $(c) {
|
|
170
171
|
if (c == null)
|
|
171
172
|
return null;
|
|
172
|
-
if (typeof c.tag == "number" &&
|
|
173
|
+
if (typeof c.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
173
174
|
return c.displayName || c.name || null;
|
|
174
175
|
if (typeof c == "string")
|
|
175
176
|
return c;
|
|
@@ -197,7 +198,7 @@ function Bo() {
|
|
|
197
198
|
return V(x._context) + ".Provider";
|
|
198
199
|
case i:
|
|
199
200
|
return Y(c, c.render, "ForwardRef");
|
|
200
|
-
case
|
|
201
|
+
case g:
|
|
201
202
|
var P = c.displayName || null;
|
|
202
203
|
return P !== null ? P : $(c.type) || "Memo";
|
|
203
204
|
case v: {
|
|
@@ -215,7 +216,7 @@ function Bo() {
|
|
|
215
216
|
function ee() {
|
|
216
217
|
}
|
|
217
218
|
ee.__reactDisabledLog = !0;
|
|
218
|
-
function
|
|
219
|
+
function ar() {
|
|
219
220
|
{
|
|
220
221
|
if (D === 0) {
|
|
221
222
|
ue = console.log, de = console.info, ge = console.warn, te = console.error, pe = console.group, q = console.groupCollapsed, _e = console.groupEnd;
|
|
@@ -270,7 +271,7 @@ function Bo() {
|
|
|
270
271
|
})
|
|
271
272
|
});
|
|
272
273
|
}
|
|
273
|
-
D < 0 &&
|
|
274
|
+
D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
274
275
|
}
|
|
275
276
|
}
|
|
276
277
|
var lt = m.ReactCurrentDispatcher, Ne;
|
|
@@ -287,16 +288,16 @@ function Bo() {
|
|
|
287
288
|
` + Ne + c;
|
|
288
289
|
}
|
|
289
290
|
}
|
|
290
|
-
var Oe = !1,
|
|
291
|
+
var Oe = !1, Rt;
|
|
291
292
|
{
|
|
292
|
-
var
|
|
293
|
-
|
|
293
|
+
var ao = typeof WeakMap == "function" ? WeakMap : Map;
|
|
294
|
+
Rt = new ao();
|
|
294
295
|
}
|
|
295
296
|
function on(c, E) {
|
|
296
297
|
if (!c || Oe)
|
|
297
298
|
return "";
|
|
298
299
|
{
|
|
299
|
-
var x =
|
|
300
|
+
var x = Rt.get(c);
|
|
300
301
|
if (x !== void 0)
|
|
301
302
|
return x;
|
|
302
303
|
}
|
|
@@ -305,7 +306,7 @@ function Bo() {
|
|
|
305
306
|
var N = Error.prepareStackTrace;
|
|
306
307
|
Error.prepareStackTrace = void 0;
|
|
307
308
|
var L;
|
|
308
|
-
L = lt.current, lt.current = null,
|
|
309
|
+
L = lt.current, lt.current = null, ar();
|
|
309
310
|
try {
|
|
310
311
|
if (E) {
|
|
311
312
|
var I = function() {
|
|
@@ -351,7 +352,7 @@ function Bo() {
|
|
|
351
352
|
if (G--, z--, z < 0 || F[G] !== ne[z]) {
|
|
352
353
|
var se = `
|
|
353
354
|
` + F[G].replace(" at new ", " at ");
|
|
354
|
-
return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" &&
|
|
355
|
+
return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && Rt.set(c, se), se;
|
|
355
356
|
}
|
|
356
357
|
while (G >= 1 && z >= 0);
|
|
357
358
|
break;
|
|
@@ -361,20 +362,20 @@ function Bo() {
|
|
|
361
362
|
Oe = !1, lt.current = L, De(), Error.prepareStackTrace = N;
|
|
362
363
|
}
|
|
363
364
|
var Ye = c ? c.displayName || c.name : "", ke = Ye ? xe(Ye) : "";
|
|
364
|
-
return typeof c == "function" &&
|
|
365
|
+
return typeof c == "function" && Rt.set(c, ke), ke;
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
+
function oo(c, E, x) {
|
|
367
368
|
return on(c, !1);
|
|
368
369
|
}
|
|
369
|
-
function
|
|
370
|
+
function io(c) {
|
|
370
371
|
var E = c.prototype;
|
|
371
372
|
return !!(E && E.isReactComponent);
|
|
372
373
|
}
|
|
373
|
-
function
|
|
374
|
+
function Ft(c, E, x) {
|
|
374
375
|
if (c == null)
|
|
375
376
|
return "";
|
|
376
377
|
if (typeof c == "function")
|
|
377
|
-
return on(c,
|
|
378
|
+
return on(c, io(c));
|
|
378
379
|
if (typeof c == "string")
|
|
379
380
|
return xe(c);
|
|
380
381
|
switch (c) {
|
|
@@ -386,13 +387,13 @@ function Bo() {
|
|
|
386
387
|
if (typeof c == "object")
|
|
387
388
|
switch (c.$$typeof) {
|
|
388
389
|
case i:
|
|
389
|
-
return
|
|
390
|
-
case
|
|
391
|
-
return
|
|
390
|
+
return oo(c.render);
|
|
391
|
+
case g:
|
|
392
|
+
return Ft(c.type, E, x);
|
|
392
393
|
case v: {
|
|
393
394
|
var P = c, N = P._payload, L = P._init;
|
|
394
395
|
try {
|
|
395
|
-
return
|
|
396
|
+
return Ft(L(N), E, x);
|
|
396
397
|
} catch {
|
|
397
398
|
}
|
|
398
399
|
}
|
|
@@ -400,14 +401,14 @@ function Bo() {
|
|
|
400
401
|
return "";
|
|
401
402
|
}
|
|
402
403
|
var ut = Object.prototype.hasOwnProperty, ln = {}, un = m.ReactDebugCurrentFrame;
|
|
403
|
-
function
|
|
404
|
+
function Ct(c) {
|
|
404
405
|
if (c) {
|
|
405
|
-
var E = c._owner, x =
|
|
406
|
+
var E = c._owner, x = Ft(c.type, c._source, E ? E.type : null);
|
|
406
407
|
un.setExtraStackFrame(x);
|
|
407
408
|
} else
|
|
408
409
|
un.setExtraStackFrame(null);
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
+
function lo(c, E, x, P, N) {
|
|
411
412
|
{
|
|
412
413
|
var L = Function.call.bind(ut);
|
|
413
414
|
for (var I in c)
|
|
@@ -422,21 +423,21 @@ function Bo() {
|
|
|
422
423
|
} catch (G) {
|
|
423
424
|
F = G;
|
|
424
425
|
}
|
|
425
|
-
F && !(F instanceof Error) && (
|
|
426
|
+
F && !(F instanceof Error) && (Ct(N), h("%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).", P || "React class", x, I, typeof F), Ct(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ct(N), h("Failed %s type: %s", x, F.message), Ct(null));
|
|
426
427
|
}
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
|
-
var
|
|
430
|
-
function
|
|
431
|
-
return
|
|
430
|
+
var uo = Array.isArray;
|
|
431
|
+
function or(c) {
|
|
432
|
+
return uo(c);
|
|
432
433
|
}
|
|
433
|
-
function
|
|
434
|
+
function so(c) {
|
|
434
435
|
{
|
|
435
436
|
var E = typeof Symbol == "function" && Symbol.toStringTag, x = E && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
436
437
|
return x;
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
+
function co(c) {
|
|
440
441
|
try {
|
|
441
442
|
return sn(c), !1;
|
|
442
443
|
} catch {
|
|
@@ -447,17 +448,17 @@ function Bo() {
|
|
|
447
448
|
return "" + c;
|
|
448
449
|
}
|
|
449
450
|
function cn(c) {
|
|
450
|
-
if (
|
|
451
|
-
return
|
|
451
|
+
if (co(c))
|
|
452
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), sn(c);
|
|
452
453
|
}
|
|
453
|
-
var st = m.ReactCurrentOwner,
|
|
454
|
+
var st = m.ReactCurrentOwner, fo = {
|
|
454
455
|
key: !0,
|
|
455
456
|
ref: !0,
|
|
456
457
|
__self: !0,
|
|
457
458
|
__source: !0
|
|
458
|
-
}, fn, dn,
|
|
459
|
-
|
|
460
|
-
function
|
|
459
|
+
}, fn, dn, ir;
|
|
460
|
+
ir = {};
|
|
461
|
+
function po(c) {
|
|
461
462
|
if (ut.call(c, "ref")) {
|
|
462
463
|
var E = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
463
464
|
if (E && E.isReactWarning)
|
|
@@ -465,7 +466,7 @@ function Bo() {
|
|
|
465
466
|
}
|
|
466
467
|
return c.ref !== void 0;
|
|
467
468
|
}
|
|
468
|
-
function
|
|
469
|
+
function yo(c) {
|
|
469
470
|
if (ut.call(c, "key")) {
|
|
470
471
|
var E = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
471
472
|
if (E && E.isReactWarning)
|
|
@@ -473,16 +474,16 @@ function Bo() {
|
|
|
473
474
|
}
|
|
474
475
|
return c.key !== void 0;
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
+
function vo(c, E) {
|
|
477
478
|
if (typeof c.ref == "string" && st.current && E && st.current.stateNode !== E) {
|
|
478
479
|
var x = $(st.current.type);
|
|
479
|
-
|
|
480
|
+
ir[x] || (h('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', $(st.current.type), c.ref), ir[x] = !0);
|
|
480
481
|
}
|
|
481
482
|
}
|
|
482
|
-
function
|
|
483
|
+
function mo(c, E) {
|
|
483
484
|
{
|
|
484
485
|
var x = function() {
|
|
485
|
-
fn || (fn = !0,
|
|
486
|
+
fn || (fn = !0, h("%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)", E));
|
|
486
487
|
};
|
|
487
488
|
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
488
489
|
get: x,
|
|
@@ -490,10 +491,10 @@ function Bo() {
|
|
|
490
491
|
});
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
+
function ho(c, E) {
|
|
494
495
|
{
|
|
495
496
|
var x = function() {
|
|
496
|
-
dn || (dn = !0,
|
|
497
|
+
dn || (dn = !0, h("%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)", E));
|
|
497
498
|
};
|
|
498
499
|
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
499
500
|
get: x,
|
|
@@ -501,7 +502,7 @@ function Bo() {
|
|
|
501
502
|
});
|
|
502
503
|
}
|
|
503
504
|
}
|
|
504
|
-
var
|
|
505
|
+
var go = function(c, E, x, P, N, L, I) {
|
|
505
506
|
var F = {
|
|
506
507
|
// This tag allows us to uniquely identify this as a React Element
|
|
507
508
|
$$typeof: e,
|
|
@@ -530,12 +531,12 @@ function Bo() {
|
|
|
530
531
|
value: N
|
|
531
532
|
}), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
|
|
532
533
|
};
|
|
533
|
-
function
|
|
534
|
+
function bo(c, E, x, P, N) {
|
|
534
535
|
{
|
|
535
536
|
var L, I = {}, F = null, ne = null;
|
|
536
|
-
x !== void 0 && (cn(x), F = "" + x),
|
|
537
|
+
x !== void 0 && (cn(x), F = "" + x), yo(E) && (cn(E.key), F = "" + E.key), po(E) && (ne = E.ref, vo(E, N));
|
|
537
538
|
for (L in E)
|
|
538
|
-
ut.call(E, L) && !
|
|
539
|
+
ut.call(E, L) && !fo.hasOwnProperty(L) && (I[L] = E[L]);
|
|
539
540
|
if (c && c.defaultProps) {
|
|
540
541
|
var G = c.defaultProps;
|
|
541
542
|
for (L in G)
|
|
@@ -543,28 +544,28 @@ function Bo() {
|
|
|
543
544
|
}
|
|
544
545
|
if (F || ne) {
|
|
545
546
|
var z = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
546
|
-
F &&
|
|
547
|
+
F && mo(I, z), ne && ho(I, z);
|
|
547
548
|
}
|
|
548
|
-
return
|
|
549
|
+
return go(c, F, ne, N, P, st.current, I);
|
|
549
550
|
}
|
|
550
551
|
}
|
|
551
|
-
var
|
|
552
|
+
var lr = m.ReactCurrentOwner, pn = m.ReactDebugCurrentFrame;
|
|
552
553
|
function Ge(c) {
|
|
553
554
|
if (c) {
|
|
554
|
-
var E = c._owner, x =
|
|
555
|
+
var E = c._owner, x = Ft(c.type, c._source, E ? E.type : null);
|
|
555
556
|
pn.setExtraStackFrame(x);
|
|
556
557
|
} else
|
|
557
558
|
pn.setExtraStackFrame(null);
|
|
558
559
|
}
|
|
559
|
-
var
|
|
560
|
-
|
|
561
|
-
function
|
|
560
|
+
var ur;
|
|
561
|
+
ur = !1;
|
|
562
|
+
function sr(c) {
|
|
562
563
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
563
564
|
}
|
|
564
565
|
function yn() {
|
|
565
566
|
{
|
|
566
|
-
if (
|
|
567
|
-
var c = $(
|
|
567
|
+
if (lr.current) {
|
|
568
|
+
var c = $(lr.current.type);
|
|
568
569
|
if (c)
|
|
569
570
|
return `
|
|
570
571
|
|
|
@@ -573,11 +574,11 @@ Check the render method of \`` + c + "`.";
|
|
|
573
574
|
return "";
|
|
574
575
|
}
|
|
575
576
|
}
|
|
576
|
-
function
|
|
577
|
+
function wo(c) {
|
|
577
578
|
return "";
|
|
578
579
|
}
|
|
579
580
|
var vn = {};
|
|
580
|
-
function
|
|
581
|
+
function Eo(c) {
|
|
581
582
|
{
|
|
582
583
|
var E = yn();
|
|
583
584
|
if (!E) {
|
|
@@ -594,34 +595,34 @@ Check the top-level render call using <` + x + ">.");
|
|
|
594
595
|
if (!c._store || c._store.validated || c.key != null)
|
|
595
596
|
return;
|
|
596
597
|
c._store.validated = !0;
|
|
597
|
-
var x =
|
|
598
|
+
var x = Eo(E);
|
|
598
599
|
if (vn[x])
|
|
599
600
|
return;
|
|
600
601
|
vn[x] = !0;
|
|
601
602
|
var P = "";
|
|
602
|
-
c && c._owner && c._owner !==
|
|
603
|
+
c && c._owner && c._owner !== lr.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), Ge(null);
|
|
603
604
|
}
|
|
604
605
|
}
|
|
605
606
|
function hn(c, E) {
|
|
606
607
|
{
|
|
607
608
|
if (typeof c != "object")
|
|
608
609
|
return;
|
|
609
|
-
if (
|
|
610
|
+
if (or(c))
|
|
610
611
|
for (var x = 0; x < c.length; x++) {
|
|
611
612
|
var P = c[x];
|
|
612
|
-
|
|
613
|
+
sr(P) && mn(P, E);
|
|
613
614
|
}
|
|
614
|
-
else if (
|
|
615
|
+
else if (sr(c))
|
|
615
616
|
c._store && (c._store.validated = !0);
|
|
616
617
|
else if (c) {
|
|
617
618
|
var N = p(c);
|
|
618
619
|
if (typeof N == "function" && N !== c.entries)
|
|
619
620
|
for (var L = N.call(c), I; !(I = L.next()).done; )
|
|
620
|
-
|
|
621
|
+
sr(I.value) && mn(I.value, E);
|
|
621
622
|
}
|
|
622
623
|
}
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
+
function So(c) {
|
|
625
626
|
{
|
|
626
627
|
var E = c.type;
|
|
627
628
|
if (E == null || typeof E == "string")
|
|
@@ -631,31 +632,31 @@ Check the top-level render call using <` + x + ">.");
|
|
|
631
632
|
x = E.propTypes;
|
|
632
633
|
else if (typeof E == "object" && (E.$$typeof === i || // Note: Memo only checks outer props here.
|
|
633
634
|
// Inner props are checked in the reconciler.
|
|
634
|
-
E.$$typeof ===
|
|
635
|
+
E.$$typeof === g))
|
|
635
636
|
x = E.propTypes;
|
|
636
637
|
else
|
|
637
638
|
return;
|
|
638
639
|
if (x) {
|
|
639
640
|
var P = $(E);
|
|
640
|
-
|
|
641
|
-
} else if (E.PropTypes !== void 0 && !
|
|
642
|
-
|
|
641
|
+
lo(x, c.props, "prop", P, c);
|
|
642
|
+
} else if (E.PropTypes !== void 0 && !ur) {
|
|
643
|
+
ur = !0;
|
|
643
644
|
var N = $(E);
|
|
644
|
-
|
|
645
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
645
646
|
}
|
|
646
|
-
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved &&
|
|
647
|
+
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
647
648
|
}
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
+
function xo(c) {
|
|
650
651
|
{
|
|
651
652
|
for (var E = Object.keys(c.props), x = 0; x < E.length; x++) {
|
|
652
653
|
var P = E[x];
|
|
653
654
|
if (P !== "children" && P !== "key") {
|
|
654
|
-
Ge(c),
|
|
655
|
+
Ge(c), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
|
|
655
656
|
break;
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
|
-
c.ref !== null && (Ge(c),
|
|
659
|
+
c.ref !== null && (Ge(c), h("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
|
|
659
660
|
}
|
|
660
661
|
}
|
|
661
662
|
var gn = {};
|
|
@@ -665,66 +666,66 @@ Check the top-level render call using <` + x + ">.");
|
|
|
665
666
|
if (!I) {
|
|
666
667
|
var F = "";
|
|
667
668
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
668
|
-
var ne =
|
|
669
|
+
var ne = wo();
|
|
669
670
|
ne ? F += ne : F += yn();
|
|
670
671
|
var G;
|
|
671
|
-
c === null ? G = "null" :
|
|
672
|
+
c === null ? G = "null" : or(c) ? G = "array" : c !== void 0 && c.$$typeof === e ? (G = "<" + ($(c.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, F);
|
|
672
673
|
}
|
|
673
|
-
var z =
|
|
674
|
+
var z = bo(c, E, x, N, L);
|
|
674
675
|
if (z == null)
|
|
675
676
|
return z;
|
|
676
677
|
if (I) {
|
|
677
678
|
var se = E.children;
|
|
678
679
|
if (se !== void 0)
|
|
679
680
|
if (P)
|
|
680
|
-
if (
|
|
681
|
+
if (or(se)) {
|
|
681
682
|
for (var Ye = 0; Ye < se.length; Ye++)
|
|
682
683
|
hn(se[Ye], c);
|
|
683
684
|
Object.freeze && Object.freeze(se);
|
|
684
685
|
} else
|
|
685
|
-
|
|
686
|
+
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
686
687
|
else
|
|
687
688
|
hn(se, c);
|
|
688
689
|
}
|
|
689
690
|
if (ut.call(E, "key")) {
|
|
690
|
-
var ke = $(c), oe = Object.keys(E).filter(function(
|
|
691
|
-
return
|
|
692
|
-
}),
|
|
693
|
-
if (!gn[ke +
|
|
694
|
-
var
|
|
695
|
-
|
|
691
|
+
var ke = $(c), oe = Object.keys(E).filter(function(Ro) {
|
|
692
|
+
return Ro !== "key";
|
|
693
|
+
}), cr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
694
|
+
if (!gn[ke + cr]) {
|
|
695
|
+
var $o = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
|
|
696
|
+
h(`A props object containing a "key" prop is being spread into JSX:
|
|
696
697
|
let props = %s;
|
|
697
698
|
<%s {...props} />
|
|
698
699
|
React keys must be passed directly to JSX without using spread:
|
|
699
700
|
let props = %s;
|
|
700
|
-
<%s key={someKey} {...props} />`,
|
|
701
|
+
<%s key={someKey} {...props} />`, cr, ke, $o, ke), gn[ke + cr] = !0;
|
|
701
702
|
}
|
|
702
703
|
}
|
|
703
|
-
return c === n ?
|
|
704
|
+
return c === n ? xo(z) : So(z), z;
|
|
704
705
|
}
|
|
705
706
|
}
|
|
706
|
-
function
|
|
707
|
+
function Oo(c, E, x) {
|
|
707
708
|
return bn(c, E, x, !0);
|
|
708
709
|
}
|
|
709
|
-
function
|
|
710
|
+
function Po(c, E, x) {
|
|
710
711
|
return bn(c, E, x, !1);
|
|
711
712
|
}
|
|
712
|
-
var
|
|
713
|
-
|
|
714
|
-
}()),
|
|
713
|
+
var Ao = Po, To = Oo;
|
|
714
|
+
dt.Fragment = n, dt.jsx = Ao, dt.jsxs = To;
|
|
715
|
+
}()), dt;
|
|
715
716
|
}
|
|
716
|
-
process.env.NODE_ENV === "production" ?
|
|
717
|
-
var R =
|
|
718
|
-
function
|
|
717
|
+
process.env.NODE_ENV === "production" ? Tr.exports = Bo() : Tr.exports = Ho();
|
|
718
|
+
var R = Tr.exports;
|
|
719
|
+
function Vo(t, e) {
|
|
719
720
|
return Array.isArray(t) ? t.filter((r) => !e.includes(r)) : Object.keys(t).reduce((r, n) => (e.includes(n) || (r[n] = t[n]), r), {});
|
|
720
721
|
}
|
|
721
722
|
function aa(t, e) {
|
|
722
723
|
return Array.isArray(t) ? t.filter((r) => e.includes(r)) : e.reduce((r, n) => (n in t && (r[n] = t[n]), r), {});
|
|
723
724
|
}
|
|
724
|
-
function
|
|
725
|
+
function qo(t) {
|
|
725
726
|
return Array.isArray(t) ? t.filter((e) => e !== null) : Object.keys(t).reduce((e, r) => (r in t && t[r] !== null && (e[r] = t[r]), e), {});
|
|
726
727
|
}
|
|
727
|
-
function
|
|
728
|
+
function Go(t, e = 3, r = 10) {
|
|
728
729
|
return new Promise((n, a) => {
|
|
729
730
|
const o = t();
|
|
730
731
|
if (o) {
|
|
@@ -738,44 +739,44 @@ function qo(t, e = 3, r = 10) {
|
|
|
738
739
|
}, r);
|
|
739
740
|
});
|
|
740
741
|
}
|
|
741
|
-
var
|
|
742
|
-
return
|
|
742
|
+
var Yo = function(e) {
|
|
743
|
+
return zo(e) && !Ko(e);
|
|
743
744
|
};
|
|
744
|
-
function
|
|
745
|
+
function zo(t) {
|
|
745
746
|
return !!t && typeof t == "object";
|
|
746
747
|
}
|
|
747
|
-
function
|
|
748
|
+
function Ko(t) {
|
|
748
749
|
var e = Object.prototype.toString.call(t);
|
|
749
|
-
return e === "[object RegExp]" || e === "[object Date]" ||
|
|
750
|
-
}
|
|
751
|
-
var Ko = typeof Symbol == "function" && Symbol.for, Xo = Ko ? Symbol.for("react.element") : 60103;
|
|
752
|
-
function Jo(t) {
|
|
753
|
-
return t.$$typeof === Xo;
|
|
750
|
+
return e === "[object RegExp]" || e === "[object Date]" || Qo(t);
|
|
754
751
|
}
|
|
752
|
+
var Xo = typeof Symbol == "function" && Symbol.for, Jo = Xo ? Symbol.for("react.element") : 60103;
|
|
755
753
|
function Qo(t) {
|
|
754
|
+
return t.$$typeof === Jo;
|
|
755
|
+
}
|
|
756
|
+
function Zo(t) {
|
|
756
757
|
return Array.isArray(t) ? [] : {};
|
|
757
758
|
}
|
|
758
|
-
function
|
|
759
|
-
return e.clone !== !1 && e.isMergeableObject(t) ? Ze(
|
|
759
|
+
function xt(t, e) {
|
|
760
|
+
return e.clone !== !1 && e.isMergeableObject(t) ? Ze(Zo(t), t, e) : t;
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
+
function ei(t, e, r) {
|
|
762
763
|
return t.concat(e).map(function(n) {
|
|
763
|
-
return
|
|
764
|
+
return xt(n, r);
|
|
764
765
|
});
|
|
765
766
|
}
|
|
766
|
-
function
|
|
767
|
+
function ti(t, e) {
|
|
767
768
|
if (!e.customMerge)
|
|
768
769
|
return Ze;
|
|
769
770
|
var r = e.customMerge(t);
|
|
770
771
|
return typeof r == "function" ? r : Ze;
|
|
771
772
|
}
|
|
772
|
-
function
|
|
773
|
+
function ri(t) {
|
|
773
774
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
|
|
774
775
|
return Object.propertyIsEnumerable.call(t, e);
|
|
775
776
|
}) : [];
|
|
776
777
|
}
|
|
777
778
|
function Sn(t) {
|
|
778
|
-
return Object.keys(t).concat(
|
|
779
|
+
return Object.keys(t).concat(ri(t));
|
|
779
780
|
}
|
|
780
781
|
function oa(t, e) {
|
|
781
782
|
try {
|
|
@@ -784,21 +785,21 @@ function oa(t, e) {
|
|
|
784
785
|
return !1;
|
|
785
786
|
}
|
|
786
787
|
}
|
|
787
|
-
function
|
|
788
|
+
function ni(t, e) {
|
|
788
789
|
return oa(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
|
|
789
790
|
}
|
|
790
|
-
function
|
|
791
|
+
function ai(t, e, r) {
|
|
791
792
|
var n = {};
|
|
792
793
|
return r.isMergeableObject(t) && Sn(t).forEach(function(a) {
|
|
793
|
-
n[a] =
|
|
794
|
+
n[a] = xt(t[a], r);
|
|
794
795
|
}), Sn(e).forEach(function(a) {
|
|
795
|
-
|
|
796
|
+
ni(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ti(a, r)(t[a], e[a], r) : n[a] = xt(e[a], r));
|
|
796
797
|
}), n;
|
|
797
798
|
}
|
|
798
799
|
function Ze(t, e, r) {
|
|
799
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
800
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ei, r.isMergeableObject = r.isMergeableObject || Yo, r.cloneUnlessOtherwiseSpecified = xt;
|
|
800
801
|
var n = Array.isArray(e), a = Array.isArray(t), o = n === a;
|
|
801
|
-
return o ? n ? r.arrayMerge(t, e, r) :
|
|
802
|
+
return o ? n ? r.arrayMerge(t, e, r) : ai(t, e, r) : xt(e, r);
|
|
802
803
|
}
|
|
803
804
|
Ze.all = function(e, r) {
|
|
804
805
|
if (!Array.isArray(e))
|
|
@@ -807,9 +808,9 @@ Ze.all = function(e, r) {
|
|
|
807
808
|
return Ze(n, a, r);
|
|
808
809
|
}, {});
|
|
809
810
|
};
|
|
810
|
-
var
|
|
811
|
-
const
|
|
812
|
-
var
|
|
811
|
+
var oi = Ze, ii = oi;
|
|
812
|
+
const li = /* @__PURE__ */ Wo(ii);
|
|
813
|
+
var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = SyntaxError, Pt = TypeError, di = URIError, pi = function() {
|
|
813
814
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
814
815
|
return !1;
|
|
815
816
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -832,32 +833,32 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
|
|
|
832
833
|
return !1;
|
|
833
834
|
}
|
|
834
835
|
return !0;
|
|
835
|
-
}, xn = typeof Symbol < "u" && Symbol,
|
|
836
|
-
return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
837
|
-
},
|
|
836
|
+
}, xn = typeof Symbol < "u" && Symbol, yi = pi, vi = function() {
|
|
837
|
+
return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yi();
|
|
838
|
+
}, fr = {
|
|
838
839
|
__proto__: null,
|
|
839
840
|
foo: {}
|
|
840
|
-
},
|
|
841
|
-
return { __proto__:
|
|
842
|
-
},
|
|
841
|
+
}, mi = Object, hi = function() {
|
|
842
|
+
return { __proto__: fr }.foo === fr.foo && !(fr instanceof mi);
|
|
843
|
+
}, gi = "Function.prototype.bind called on incompatible ", bi = Object.prototype.toString, wi = Math.max, Ei = "[object Function]", On = function(e, r) {
|
|
843
844
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
844
845
|
n[a] = e[a];
|
|
845
846
|
for (var o = 0; o < r.length; o += 1)
|
|
846
847
|
n[o + e.length] = r[o];
|
|
847
848
|
return n;
|
|
848
|
-
},
|
|
849
|
+
}, Si = function(e, r) {
|
|
849
850
|
for (var n = [], a = r, o = 0; a < e.length; a += 1, o += 1)
|
|
850
851
|
n[o] = e[a];
|
|
851
852
|
return n;
|
|
852
|
-
},
|
|
853
|
+
}, xi = function(t, e) {
|
|
853
854
|
for (var r = "", n = 0; n < t.length; n += 1)
|
|
854
855
|
r += t[n], n + 1 < t.length && (r += e);
|
|
855
856
|
return r;
|
|
856
|
-
},
|
|
857
|
+
}, Oi = function(e) {
|
|
857
858
|
var r = this;
|
|
858
|
-
if (typeof r != "function" ||
|
|
859
|
-
throw new TypeError(
|
|
860
|
-
for (var n =
|
|
859
|
+
if (typeof r != "function" || bi.apply(r) !== Ei)
|
|
860
|
+
throw new TypeError(gi + r);
|
|
861
|
+
for (var n = Si(arguments, 1), a, o = function() {
|
|
861
862
|
if (this instanceof a) {
|
|
862
863
|
var s = r.apply(
|
|
863
864
|
this,
|
|
@@ -869,15 +870,15 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
|
|
|
869
870
|
e,
|
|
870
871
|
On(n, arguments)
|
|
871
872
|
);
|
|
872
|
-
}, l =
|
|
873
|
+
}, l = wi(0, r.length - n.length), u = [], i = 0; i < l; i++)
|
|
873
874
|
u[i] = "$" + i;
|
|
874
|
-
if (a = Function("binder", "return function (" +
|
|
875
|
+
if (a = Function("binder", "return function (" + xi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
875
876
|
var d = function() {
|
|
876
877
|
};
|
|
877
878
|
d.prototype = r.prototype, a.prototype = new d(), d.prototype = null;
|
|
878
879
|
}
|
|
879
880
|
return a;
|
|
880
|
-
},
|
|
881
|
+
}, Pi = Oi, qr = Function.prototype.bind || Pi, Ai = Function.prototype.call, Ti = Object.prototype.hasOwnProperty, $i = qr, Ri = $i.call(Ai, Ti), C, Fi = ui, Ci = si, Ii = ci, Mi = fi, et = ia, Qe = Pt, _i = di, la = Function, dr = function(t) {
|
|
881
882
|
try {
|
|
882
883
|
return la('"use strict"; return (' + t + ").constructor;")();
|
|
883
884
|
} catch {
|
|
@@ -889,21 +890,21 @@ if (Be)
|
|
|
889
890
|
} catch {
|
|
890
891
|
Be = null;
|
|
891
892
|
}
|
|
892
|
-
var
|
|
893
|
+
var pr = function() {
|
|
893
894
|
throw new Qe();
|
|
894
|
-
},
|
|
895
|
+
}, Di = Be ? function() {
|
|
895
896
|
try {
|
|
896
|
-
return arguments.callee,
|
|
897
|
+
return arguments.callee, pr;
|
|
897
898
|
} catch {
|
|
898
899
|
try {
|
|
899
900
|
return Be(arguments, "callee").get;
|
|
900
901
|
} catch {
|
|
901
|
-
return
|
|
902
|
+
return pr;
|
|
902
903
|
}
|
|
903
904
|
}
|
|
904
|
-
}() :
|
|
905
|
+
}() : pr, Ke = vi(), Ni = hi(), Z = Object.getPrototypeOf || (Ni ? function(t) {
|
|
905
906
|
return t.__proto__;
|
|
906
|
-
} : null), Je = {},
|
|
907
|
+
} : null), Je = {}, ki = typeof Uint8Array > "u" || !Z ? C : Z(Uint8Array), He = {
|
|
907
908
|
__proto__: null,
|
|
908
909
|
"%AggregateError%": typeof AggregateError > "u" ? C : AggregateError,
|
|
909
910
|
"%Array%": Array,
|
|
@@ -925,10 +926,10 @@ var dr = function() {
|
|
|
925
926
|
"%decodeURIComponent%": decodeURIComponent,
|
|
926
927
|
"%encodeURI%": encodeURI,
|
|
927
928
|
"%encodeURIComponent%": encodeURIComponent,
|
|
928
|
-
"%Error%":
|
|
929
|
+
"%Error%": Fi,
|
|
929
930
|
"%eval%": eval,
|
|
930
931
|
// eslint-disable-line no-eval
|
|
931
|
-
"%EvalError%":
|
|
932
|
+
"%EvalError%": Ci,
|
|
932
933
|
"%Float32Array%": typeof Float32Array > "u" ? C : Float32Array,
|
|
933
934
|
"%Float64Array%": typeof Float64Array > "u" ? C : Float64Array,
|
|
934
935
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? C : FinalizationRegistry,
|
|
@@ -950,8 +951,8 @@ var dr = function() {
|
|
|
950
951
|
"%parseInt%": parseInt,
|
|
951
952
|
"%Promise%": typeof Promise > "u" ? C : Promise,
|
|
952
953
|
"%Proxy%": typeof Proxy > "u" ? C : Proxy,
|
|
953
|
-
"%RangeError%":
|
|
954
|
-
"%ReferenceError%":
|
|
954
|
+
"%RangeError%": Ii,
|
|
955
|
+
"%ReferenceError%": Mi,
|
|
955
956
|
"%Reflect%": typeof Reflect > "u" ? C : Reflect,
|
|
956
957
|
"%RegExp%": RegExp,
|
|
957
958
|
"%Set%": typeof Set > "u" ? C : Set,
|
|
@@ -961,14 +962,14 @@ var dr = function() {
|
|
|
961
962
|
"%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) : C,
|
|
962
963
|
"%Symbol%": Ke ? Symbol : C,
|
|
963
964
|
"%SyntaxError%": et,
|
|
964
|
-
"%ThrowTypeError%":
|
|
965
|
-
"%TypedArray%":
|
|
965
|
+
"%ThrowTypeError%": Di,
|
|
966
|
+
"%TypedArray%": ki,
|
|
966
967
|
"%TypeError%": Qe,
|
|
967
968
|
"%Uint8Array%": typeof Uint8Array > "u" ? C : Uint8Array,
|
|
968
969
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? C : Uint8ClampedArray,
|
|
969
970
|
"%Uint16Array%": typeof Uint16Array > "u" ? C : Uint16Array,
|
|
970
971
|
"%Uint32Array%": typeof Uint32Array > "u" ? C : Uint32Array,
|
|
971
|
-
"%URIError%":
|
|
972
|
+
"%URIError%": _i,
|
|
972
973
|
"%WeakMap%": typeof WeakMap > "u" ? C : WeakMap,
|
|
973
974
|
"%WeakRef%": typeof WeakRef > "u" ? C : WeakRef,
|
|
974
975
|
"%WeakSet%": typeof WeakSet > "u" ? C : WeakSet
|
|
@@ -977,17 +978,17 @@ if (Z)
|
|
|
977
978
|
try {
|
|
978
979
|
null.error;
|
|
979
980
|
} catch (t) {
|
|
980
|
-
var
|
|
981
|
-
He["%Error.prototype%"] =
|
|
981
|
+
var ji = Z(Z(t));
|
|
982
|
+
He["%Error.prototype%"] = ji;
|
|
982
983
|
}
|
|
983
|
-
var
|
|
984
|
+
var Li = function t(e) {
|
|
984
985
|
var r;
|
|
985
986
|
if (e === "%AsyncFunction%")
|
|
986
|
-
r =
|
|
987
|
+
r = dr("async function () {}");
|
|
987
988
|
else if (e === "%GeneratorFunction%")
|
|
988
|
-
r =
|
|
989
|
+
r = dr("function* () {}");
|
|
989
990
|
else if (e === "%AsyncGeneratorFunction%")
|
|
990
|
-
r =
|
|
991
|
+
r = dr("async function* () {}");
|
|
991
992
|
else if (e === "%AsyncGenerator%") {
|
|
992
993
|
var n = t("%AsyncGeneratorFunction%");
|
|
993
994
|
n && (r = n.prototype);
|
|
@@ -1049,21 +1050,21 @@ var ji = function t(e) {
|
|
|
1049
1050
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1050
1051
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1051
1052
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1052
|
-
},
|
|
1053
|
+
}, At = qr, Lt = Ri, Wi = At.call(Function.call, Array.prototype.concat), Ui = At.call(Function.apply, Array.prototype.splice), An = At.call(Function.call, String.prototype.replace), Wt = At.call(Function.call, String.prototype.slice), Bi = At.call(Function.call, RegExp.prototype.exec), Hi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Vi = /\\(\\)?/g, qi = function(e) {
|
|
1053
1054
|
var r = Wt(e, 0, 1), n = Wt(e, -1);
|
|
1054
1055
|
if (r === "%" && n !== "%")
|
|
1055
1056
|
throw new et("invalid intrinsic syntax, expected closing `%`");
|
|
1056
1057
|
if (n === "%" && r !== "%")
|
|
1057
1058
|
throw new et("invalid intrinsic syntax, expected opening `%`");
|
|
1058
1059
|
var a = [];
|
|
1059
|
-
return An(e,
|
|
1060
|
-
a[a.length] = u ? An(i,
|
|
1060
|
+
return An(e, Hi, function(o, l, u, i) {
|
|
1061
|
+
a[a.length] = u ? An(i, Vi, "$1") : l || o;
|
|
1061
1062
|
}), a;
|
|
1062
|
-
},
|
|
1063
|
+
}, Gi = function(e, r) {
|
|
1063
1064
|
var n = e, a;
|
|
1064
1065
|
if (Lt(Pn, n) && (a = Pn[n], n = "%" + a[0] + "%"), Lt(He, n)) {
|
|
1065
1066
|
var o = He[n];
|
|
1066
|
-
if (o === Je && (o =
|
|
1067
|
+
if (o === Je && (o = Li(n)), typeof o > "u" && !r)
|
|
1067
1068
|
throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1068
1069
|
return {
|
|
1069
1070
|
alias: a,
|
|
@@ -1077,15 +1078,15 @@ var ji = function t(e) {
|
|
|
1077
1078
|
throw new Qe("intrinsic name must be a non-empty string");
|
|
1078
1079
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
1079
1080
|
throw new Qe('"allowMissing" argument must be a boolean');
|
|
1080
|
-
if (
|
|
1081
|
+
if (Bi(/^%?[^%]*%?$/, e) === null)
|
|
1081
1082
|
throw new et("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1082
|
-
var n =
|
|
1083
|
-
d && (a = d[0],
|
|
1084
|
-
for (var s = 1,
|
|
1083
|
+
var n = qi(e), a = n.length > 0 ? n[0] : "", o = Gi("%" + a + "%", r), l = o.name, u = o.value, i = !1, d = o.alias;
|
|
1084
|
+
d && (a = d[0], Ui(n, Wi([0, 1], d)));
|
|
1085
|
+
for (var s = 1, g = !0; s < n.length; s += 1) {
|
|
1085
1086
|
var v = n[s], w = Wt(v, 0, 1), f = Wt(v, -1);
|
|
1086
1087
|
if ((w === '"' || w === "'" || w === "`" || f === '"' || f === "'" || f === "`") && w !== f)
|
|
1087
1088
|
throw new et("property names with quotes must have matching quotes");
|
|
1088
|
-
if ((v === "constructor" || !
|
|
1089
|
+
if ((v === "constructor" || !g) && (i = !0), a += "." + v, l = "%" + a + "%", Lt(He, l))
|
|
1089
1090
|
u = He[l];
|
|
1090
1091
|
else if (u != null) {
|
|
1091
1092
|
if (!(v in u)) {
|
|
@@ -1095,16 +1096,16 @@ var ji = function t(e) {
|
|
|
1095
1096
|
}
|
|
1096
1097
|
if (Be && s + 1 >= n.length) {
|
|
1097
1098
|
var y = Be(u, v);
|
|
1098
|
-
|
|
1099
|
+
g = !!y, g && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
|
|
1099
1100
|
} else
|
|
1100
|
-
|
|
1101
|
-
|
|
1101
|
+
g = Lt(u, v), u = u[v];
|
|
1102
|
+
g && !i && (He[l] = u);
|
|
1102
1103
|
}
|
|
1103
1104
|
}
|
|
1104
1105
|
return u;
|
|
1105
|
-
}, ua = { exports: {} },
|
|
1106
|
-
function
|
|
1107
|
-
if (Tn) return
|
|
1106
|
+
}, ua = { exports: {} }, yr, Tn;
|
|
1107
|
+
function Gr() {
|
|
1108
|
+
if (Tn) return yr;
|
|
1108
1109
|
Tn = 1;
|
|
1109
1110
|
var t = nt, e = t("%Object.defineProperty%", !0) || !1;
|
|
1110
1111
|
if (e)
|
|
@@ -1113,16 +1114,16 @@ function qr() {
|
|
|
1113
1114
|
} catch {
|
|
1114
1115
|
e = !1;
|
|
1115
1116
|
}
|
|
1116
|
-
return
|
|
1117
|
+
return yr = e, yr;
|
|
1117
1118
|
}
|
|
1118
|
-
var
|
|
1119
|
+
var Yi = nt, Nt = Yi("%Object.getOwnPropertyDescriptor%", !0);
|
|
1119
1120
|
if (Nt)
|
|
1120
1121
|
try {
|
|
1121
1122
|
Nt([], "length");
|
|
1122
1123
|
} catch {
|
|
1123
1124
|
Nt = null;
|
|
1124
1125
|
}
|
|
1125
|
-
var sa = Nt, $n =
|
|
1126
|
+
var sa = Nt, $n = Gr(), zi = ia, Xe = Pt, Rn = sa, Ki = function(e, r, n) {
|
|
1126
1127
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
1127
1128
|
throw new Xe("`obj` must be an object or a function`");
|
|
1128
1129
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -1146,30 +1147,30 @@ var sa = Nt, $n = qr(), Yi = ia, Xe = Ot, Rn = sa, zi = function(e, r, n) {
|
|
|
1146
1147
|
else if (u || !a && !o && !l)
|
|
1147
1148
|
e[r] = n;
|
|
1148
1149
|
else
|
|
1149
|
-
throw new
|
|
1150
|
-
},
|
|
1151
|
-
return
|
|
1150
|
+
throw new zi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
1151
|
+
}, $r = Gr(), ca = function() {
|
|
1152
|
+
return !!$r;
|
|
1152
1153
|
};
|
|
1153
1154
|
ca.hasArrayLengthDefineBug = function() {
|
|
1154
|
-
if (
|
|
1155
|
+
if (!$r)
|
|
1155
1156
|
return null;
|
|
1156
1157
|
try {
|
|
1157
|
-
return
|
|
1158
|
+
return $r([], "length", { value: 1 }).length !== 1;
|
|
1158
1159
|
} catch {
|
|
1159
1160
|
return !0;
|
|
1160
1161
|
}
|
|
1161
1162
|
};
|
|
1162
|
-
var
|
|
1163
|
+
var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Pt, Zi = Ji("%Math.floor%"), el = function(e, r) {
|
|
1163
1164
|
if (typeof e != "function")
|
|
1164
1165
|
throw new In("`fn` is not a function");
|
|
1165
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
1166
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || Zi(r) !== r)
|
|
1166
1167
|
throw new In("`length` must be a positive 32-bit integer");
|
|
1167
1168
|
var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
|
|
1168
1169
|
if ("length" in e && Cn) {
|
|
1169
1170
|
var l = Cn(e, "length");
|
|
1170
1171
|
l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
|
|
1171
1172
|
}
|
|
1172
|
-
return (a || o || !n) && (
|
|
1173
|
+
return (a || o || !n) && (Qi ? Fn(
|
|
1173
1174
|
/** @type {Parameters<define>[0]} */
|
|
1174
1175
|
e,
|
|
1175
1176
|
"length",
|
|
@@ -1184,7 +1185,7 @@ var Ki = ca, Xi = nt, Fn = zi, Ji = Ki(), Cn = sa, In = Ot, Qi = Xi("%Math.floor
|
|
|
1184
1185
|
)), e;
|
|
1185
1186
|
};
|
|
1186
1187
|
(function(t) {
|
|
1187
|
-
var e =
|
|
1188
|
+
var e = qr, r = nt, n = el, a = Pt, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Gr(), d = r("%Math.max%");
|
|
1188
1189
|
t.exports = function(v) {
|
|
1189
1190
|
if (typeof v != "function")
|
|
1190
1191
|
throw new a("a function is required");
|
|
@@ -1200,15 +1201,15 @@ var Ki = ca, Xi = nt, Fn = zi, Ji = Ki(), Cn = sa, In = Ot, Qi = Xi("%Math.floor
|
|
|
1200
1201
|
};
|
|
1201
1202
|
i ? i(t.exports, "apply", { value: s }) : t.exports.apply = s;
|
|
1202
1203
|
})(ua);
|
|
1203
|
-
var
|
|
1204
|
+
var tl = ua.exports, fa = nt, da = tl, rl = da(fa("String.prototype.indexOf")), nl = function(e, r) {
|
|
1204
1205
|
var n = fa(e, !!r);
|
|
1205
|
-
return typeof n == "function" &&
|
|
1206
|
+
return typeof n == "function" && rl(e, ".prototype.") > -1 ? da(n) : n;
|
|
1206
1207
|
};
|
|
1207
|
-
const
|
|
1208
|
+
const al = {}, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1208
1209
|
__proto__: null,
|
|
1209
|
-
default:
|
|
1210
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1211
|
-
var
|
|
1210
|
+
default: al
|
|
1211
|
+
}, Symbol.toStringTag, { value: "Module" })), il = /* @__PURE__ */ Uo(ol);
|
|
1212
|
+
var Yr = typeof Map == "function" && Map.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && vr && typeof vr.get == "function" ? vr.get : null, Mn = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Set.prototype.forEach, ll = typeof WeakMap == "function" && WeakMap.prototype, gt = ll ? WeakMap.prototype.has : null, ul = typeof WeakSet == "function" && WeakSet.prototype, bt = ul ? WeakSet.prototype.has : null, sl = typeof WeakRef == "function" && WeakRef.prototype, Dn = sl ? WeakRef.prototype.deref : null, cl = Boolean.prototype.valueOf, fl = Object.prototype.toString, dl = Function.prototype.toString, pl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, yl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, vl = Array.prototype.slice, jn = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, hr = Object.getOwnPropertySymbols, Fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Ln = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1212
1213
|
return t.__proto__;
|
|
1213
1214
|
} : null);
|
|
1214
1215
|
function Wn(t, e) {
|
|
@@ -1218,13 +1219,13 @@ function Wn(t, e) {
|
|
|
1218
1219
|
if (typeof t == "number") {
|
|
1219
1220
|
var n = t < 0 ? -jn(-t) : jn(t);
|
|
1220
1221
|
if (n !== t) {
|
|
1221
|
-
var a = String(n), o =
|
|
1222
|
+
var a = String(n), o = Kr.call(e, a.length + 1);
|
|
1222
1223
|
return Re.call(a, r, "$&_") + "." + Re.call(Re.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1223
1224
|
}
|
|
1224
1225
|
}
|
|
1225
1226
|
return Re.call(e, r, "$&_");
|
|
1226
1227
|
}
|
|
1227
|
-
var
|
|
1228
|
+
var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a) {
|
|
1228
1229
|
var o = r || {};
|
|
1229
1230
|
if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
1230
1231
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -1258,14 +1259,14 @@ var Fr = ol, Un = Fr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
|
|
|
1258
1259
|
}
|
|
1259
1260
|
var s = typeof o.depth > "u" ? 5 : o.depth;
|
|
1260
1261
|
if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
|
|
1261
|
-
return
|
|
1262
|
-
var
|
|
1262
|
+
return Ir(e) ? "[Array]" : "[Object]";
|
|
1263
|
+
var g = _l(o, n);
|
|
1263
1264
|
if (typeof a > "u")
|
|
1264
1265
|
a = [];
|
|
1265
1266
|
else if (ha(a, e) >= 0)
|
|
1266
1267
|
return "[Circular]";
|
|
1267
1268
|
function v($, T, D) {
|
|
1268
|
-
if (T && (a =
|
|
1269
|
+
if (T && (a = vl.call(a), a.push(T)), D) {
|
|
1269
1270
|
var ue = {
|
|
1270
1271
|
depth: o.depth
|
|
1271
1272
|
};
|
|
@@ -1274,67 +1275,67 @@ var Fr = ol, Un = Fr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
|
|
|
1274
1275
|
return t($, o, n + 1, a);
|
|
1275
1276
|
}
|
|
1276
1277
|
if (typeof e == "function" && !Hn(e)) {
|
|
1277
|
-
var w =
|
|
1278
|
+
var w = Pl(e), f = It(e, v);
|
|
1278
1279
|
return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (f.length > 0 ? " { " + Ee.call(f, ", ") + " }" : "");
|
|
1279
1280
|
}
|
|
1280
1281
|
if (ma(e)) {
|
|
1281
|
-
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
1282
|
-
return typeof e == "object" && !tt ?
|
|
1282
|
+
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Fr.call(e);
|
|
1283
|
+
return typeof e == "object" && !tt ? pt(y) : y;
|
|
1283
1284
|
}
|
|
1284
|
-
if (
|
|
1285
|
-
for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [],
|
|
1286
|
-
p += " " + m[
|
|
1285
|
+
if (Cl(e)) {
|
|
1286
|
+
for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], h = 0; h < m.length; h++)
|
|
1287
|
+
p += " " + m[h].name + "=" + va(hl(m[h].value), "double", o);
|
|
1287
1288
|
return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + Nn.call(String(e.nodeName)) + ">", p;
|
|
1288
1289
|
}
|
|
1289
|
-
if (
|
|
1290
|
+
if (Ir(e)) {
|
|
1290
1291
|
if (e.length === 0)
|
|
1291
1292
|
return "[]";
|
|
1292
1293
|
var b = It(e, v);
|
|
1293
|
-
return
|
|
1294
|
+
return g && !Ml(b) ? "[" + Mr(b, g) + "]" : "[ " + Ee.call(b, ", ") + " ]";
|
|
1294
1295
|
}
|
|
1295
|
-
if (
|
|
1296
|
+
if (bl(e)) {
|
|
1296
1297
|
var S = It(e, v);
|
|
1297
1298
|
return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(kn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
|
|
1298
1299
|
}
|
|
1299
1300
|
if (typeof e == "object" && l) {
|
|
1300
|
-
if (Bn && typeof e[Bn] == "function" &&
|
|
1301
|
-
return
|
|
1301
|
+
if (Bn && typeof e[Bn] == "function" && Cr)
|
|
1302
|
+
return Cr(e, { depth: s - n });
|
|
1302
1303
|
if (l !== "symbol" && typeof e.inspect == "function")
|
|
1303
1304
|
return e.inspect();
|
|
1304
1305
|
}
|
|
1305
|
-
if (
|
|
1306
|
+
if (Al(e)) {
|
|
1306
1307
|
var O = [];
|
|
1307
1308
|
return Mn && Mn.call(e, function($, T) {
|
|
1308
1309
|
O.push(v(T, e, !0) + " => " + v($, e));
|
|
1309
|
-
}), Vn("Map", Ut.call(e), O,
|
|
1310
|
+
}), Vn("Map", Ut.call(e), O, g);
|
|
1310
1311
|
}
|
|
1311
|
-
if (
|
|
1312
|
+
if (Rl(e)) {
|
|
1312
1313
|
var _ = [];
|
|
1313
1314
|
return _n && _n.call(e, function($) {
|
|
1314
1315
|
_.push(v($, e));
|
|
1315
|
-
}), Vn("Set", Bt.call(e), _,
|
|
1316
|
+
}), Vn("Set", Bt.call(e), _, g);
|
|
1316
1317
|
}
|
|
1317
|
-
if (Al(e))
|
|
1318
|
-
return hr("WeakMap");
|
|
1319
|
-
if (Rl(e))
|
|
1320
|
-
return hr("WeakSet");
|
|
1321
1318
|
if (Tl(e))
|
|
1322
|
-
return
|
|
1323
|
-
if (
|
|
1324
|
-
return
|
|
1325
|
-
if (
|
|
1326
|
-
return
|
|
1319
|
+
return gr("WeakMap");
|
|
1320
|
+
if (Fl(e))
|
|
1321
|
+
return gr("WeakSet");
|
|
1322
|
+
if ($l(e))
|
|
1323
|
+
return gr("WeakRef");
|
|
1327
1324
|
if (El(e))
|
|
1328
|
-
return
|
|
1329
|
-
if (
|
|
1330
|
-
return
|
|
1325
|
+
return pt(v(Number(e)));
|
|
1326
|
+
if (xl(e))
|
|
1327
|
+
return pt(v(Rr.call(e)));
|
|
1328
|
+
if (Sl(e))
|
|
1329
|
+
return pt(cl.call(e));
|
|
1330
|
+
if (wl(e))
|
|
1331
|
+
return pt(v(String(e)));
|
|
1331
1332
|
if (typeof window < "u" && e === window)
|
|
1332
1333
|
return "{ [object Window] }";
|
|
1333
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
1334
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Ar < "u" && e === Ar)
|
|
1334
1335
|
return "{ [object globalThis] }";
|
|
1335
|
-
if (!
|
|
1336
|
-
var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ?
|
|
1337
|
-
return M.length === 0 ? V + "{}" :
|
|
1336
|
+
if (!gl(e) && !Hn(e)) {
|
|
1337
|
+
var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ? Kr.call(Ie(e), 8, -1) : H ? "Object" : "", Y = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = Y + (k || H ? "[" + Ee.call(kn.call([], k || [], H || []), ": ") + "] " : "");
|
|
1338
|
+
return M.length === 0 ? V + "{}" : g ? V + "{" + Mr(M, g) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
|
|
1338
1339
|
}
|
|
1339
1340
|
return String(e);
|
|
1340
1341
|
};
|
|
@@ -1342,28 +1343,28 @@ function va(t, e, r) {
|
|
|
1342
1343
|
var n = (r.quoteStyle || e) === "double" ? '"' : "'";
|
|
1343
1344
|
return n + t + n;
|
|
1344
1345
|
}
|
|
1345
|
-
function
|
|
1346
|
+
function hl(t) {
|
|
1346
1347
|
return Re.call(String(t), /"/g, """);
|
|
1347
1348
|
}
|
|
1348
|
-
function
|
|
1349
|
+
function Ir(t) {
|
|
1349
1350
|
return Ie(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
|
|
1350
1351
|
}
|
|
1351
|
-
function
|
|
1352
|
+
function gl(t) {
|
|
1352
1353
|
return Ie(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
|
|
1353
1354
|
}
|
|
1354
1355
|
function Hn(t) {
|
|
1355
1356
|
return Ie(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
|
|
1356
1357
|
}
|
|
1357
|
-
function
|
|
1358
|
+
function bl(t) {
|
|
1358
1359
|
return Ie(t) === "[object Error]" && (!re || !(typeof t == "object" && re in t));
|
|
1359
1360
|
}
|
|
1360
|
-
function
|
|
1361
|
+
function wl(t) {
|
|
1361
1362
|
return Ie(t) === "[object String]" && (!re || !(typeof t == "object" && re in t));
|
|
1362
1363
|
}
|
|
1363
|
-
function
|
|
1364
|
+
function El(t) {
|
|
1364
1365
|
return Ie(t) === "[object Number]" && (!re || !(typeof t == "object" && re in t));
|
|
1365
1366
|
}
|
|
1366
|
-
function
|
|
1367
|
+
function Sl(t) {
|
|
1367
1368
|
return Ie(t) === "[object Boolean]" && (!re || !(typeof t == "object" && re in t));
|
|
1368
1369
|
}
|
|
1369
1370
|
function ma(t) {
|
|
@@ -1371,36 +1372,36 @@ function ma(t) {
|
|
|
1371
1372
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
1372
1373
|
if (typeof t == "symbol")
|
|
1373
1374
|
return !0;
|
|
1374
|
-
if (!t || typeof t != "object" || !
|
|
1375
|
+
if (!t || typeof t != "object" || !Fr)
|
|
1375
1376
|
return !1;
|
|
1376
1377
|
try {
|
|
1377
|
-
return
|
|
1378
|
+
return Fr.call(t), !0;
|
|
1378
1379
|
} catch {
|
|
1379
1380
|
}
|
|
1380
1381
|
return !1;
|
|
1381
1382
|
}
|
|
1382
|
-
function
|
|
1383
|
-
if (!t || typeof t != "object" ||
|
|
1383
|
+
function xl(t) {
|
|
1384
|
+
if (!t || typeof t != "object" || !Rr)
|
|
1384
1385
|
return !1;
|
|
1385
1386
|
try {
|
|
1386
|
-
return
|
|
1387
|
+
return Rr.call(t), !0;
|
|
1387
1388
|
} catch {
|
|
1388
1389
|
}
|
|
1389
1390
|
return !1;
|
|
1390
1391
|
}
|
|
1391
|
-
var
|
|
1392
|
+
var Ol = Object.prototype.hasOwnProperty || function(t) {
|
|
1392
1393
|
return t in this;
|
|
1393
1394
|
};
|
|
1394
1395
|
function Te(t, e) {
|
|
1395
|
-
return
|
|
1396
|
+
return Ol.call(t, e);
|
|
1396
1397
|
}
|
|
1397
1398
|
function Ie(t) {
|
|
1398
|
-
return
|
|
1399
|
+
return fl.call(t);
|
|
1399
1400
|
}
|
|
1400
|
-
function
|
|
1401
|
+
function Pl(t) {
|
|
1401
1402
|
if (t.name)
|
|
1402
1403
|
return t.name;
|
|
1403
|
-
var e =
|
|
1404
|
+
var e = pl.call(dl.call(t), /^function\s*([\w$]+)/);
|
|
1404
1405
|
return e ? e[1] : null;
|
|
1405
1406
|
}
|
|
1406
1407
|
function ha(t, e) {
|
|
@@ -1411,7 +1412,7 @@ function ha(t, e) {
|
|
|
1411
1412
|
return r;
|
|
1412
1413
|
return -1;
|
|
1413
1414
|
}
|
|
1414
|
-
function
|
|
1415
|
+
function Al(t) {
|
|
1415
1416
|
if (!Ut || !t || typeof t != "object")
|
|
1416
1417
|
return !1;
|
|
1417
1418
|
try {
|
|
@@ -1426,13 +1427,13 @@ function Pl(t) {
|
|
|
1426
1427
|
}
|
|
1427
1428
|
return !1;
|
|
1428
1429
|
}
|
|
1429
|
-
function
|
|
1430
|
-
if (!
|
|
1430
|
+
function Tl(t) {
|
|
1431
|
+
if (!gt || !t || typeof t != "object")
|
|
1431
1432
|
return !1;
|
|
1432
1433
|
try {
|
|
1433
|
-
|
|
1434
|
+
gt.call(t, gt);
|
|
1434
1435
|
try {
|
|
1435
|
-
|
|
1436
|
+
bt.call(t, bt);
|
|
1436
1437
|
} catch {
|
|
1437
1438
|
return !0;
|
|
1438
1439
|
}
|
|
@@ -1441,7 +1442,7 @@ function Al(t) {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
return !1;
|
|
1443
1444
|
}
|
|
1444
|
-
function
|
|
1445
|
+
function $l(t) {
|
|
1445
1446
|
if (!Dn || !t || typeof t != "object")
|
|
1446
1447
|
return !1;
|
|
1447
1448
|
try {
|
|
@@ -1450,7 +1451,7 @@ function Tl(t) {
|
|
|
1450
1451
|
}
|
|
1451
1452
|
return !1;
|
|
1452
1453
|
}
|
|
1453
|
-
function
|
|
1454
|
+
function Rl(t) {
|
|
1454
1455
|
if (!Bt || !t || typeof t != "object")
|
|
1455
1456
|
return !1;
|
|
1456
1457
|
try {
|
|
@@ -1465,13 +1466,13 @@ function $l(t) {
|
|
|
1465
1466
|
}
|
|
1466
1467
|
return !1;
|
|
1467
1468
|
}
|
|
1468
|
-
function
|
|
1469
|
-
if (!
|
|
1469
|
+
function Fl(t) {
|
|
1470
|
+
if (!bt || !t || typeof t != "object")
|
|
1470
1471
|
return !1;
|
|
1471
1472
|
try {
|
|
1472
|
-
|
|
1473
|
+
bt.call(t, bt);
|
|
1473
1474
|
try {
|
|
1474
|
-
|
|
1475
|
+
gt.call(t, gt);
|
|
1475
1476
|
} catch {
|
|
1476
1477
|
return !0;
|
|
1477
1478
|
}
|
|
@@ -1480,18 +1481,18 @@ function Rl(t) {
|
|
|
1480
1481
|
}
|
|
1481
1482
|
return !1;
|
|
1482
1483
|
}
|
|
1483
|
-
function
|
|
1484
|
+
function Cl(t) {
|
|
1484
1485
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
1485
1486
|
}
|
|
1486
1487
|
function ga(t, e) {
|
|
1487
1488
|
if (t.length > e.maxStringLength) {
|
|
1488
1489
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
1489
|
-
return ga(
|
|
1490
|
+
return ga(Kr.call(t, 0, e.maxStringLength), e) + n;
|
|
1490
1491
|
}
|
|
1491
|
-
var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
1492
|
+
var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Il);
|
|
1492
1493
|
return va(a, "single", e);
|
|
1493
1494
|
}
|
|
1494
|
-
function
|
|
1495
|
+
function Il(t) {
|
|
1495
1496
|
var e = t.charCodeAt(0), r = {
|
|
1496
1497
|
8: "b",
|
|
1497
1498
|
9: "t",
|
|
@@ -1499,26 +1500,26 @@ function Cl(t) {
|
|
|
1499
1500
|
12: "f",
|
|
1500
1501
|
13: "r"
|
|
1501
1502
|
}[e];
|
|
1502
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") +
|
|
1503
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + yl.call(e.toString(16));
|
|
1503
1504
|
}
|
|
1504
|
-
function
|
|
1505
|
+
function pt(t) {
|
|
1505
1506
|
return "Object(" + t + ")";
|
|
1506
1507
|
}
|
|
1507
|
-
function
|
|
1508
|
+
function gr(t) {
|
|
1508
1509
|
return t + " { ? }";
|
|
1509
1510
|
}
|
|
1510
1511
|
function Vn(t, e, r, n) {
|
|
1511
|
-
var a = n ?
|
|
1512
|
+
var a = n ? Mr(r, n) : Ee.call(r, ", ");
|
|
1512
1513
|
return t + " (" + e + ") {" + a + "}";
|
|
1513
1514
|
}
|
|
1514
|
-
function
|
|
1515
|
+
function Ml(t) {
|
|
1515
1516
|
for (var e = 0; e < t.length; e++)
|
|
1516
1517
|
if (ha(t[e], `
|
|
1517
1518
|
`) >= 0)
|
|
1518
1519
|
return !1;
|
|
1519
1520
|
return !0;
|
|
1520
1521
|
}
|
|
1521
|
-
function
|
|
1522
|
+
function _l(t, e) {
|
|
1522
1523
|
var r;
|
|
1523
1524
|
if (t.indent === " ")
|
|
1524
1525
|
r = " ";
|
|
@@ -1531,7 +1532,7 @@ function Ml(t, e) {
|
|
|
1531
1532
|
prev: Ee.call(Array(e + 1), r)
|
|
1532
1533
|
};
|
|
1533
1534
|
}
|
|
1534
|
-
function
|
|
1535
|
+
function Mr(t, e) {
|
|
1535
1536
|
if (t.length === 0)
|
|
1536
1537
|
return "";
|
|
1537
1538
|
var r = `
|
|
@@ -1540,13 +1541,13 @@ function Ir(t, e) {
|
|
|
1540
1541
|
` + e.prev;
|
|
1541
1542
|
}
|
|
1542
1543
|
function It(t, e) {
|
|
1543
|
-
var r =
|
|
1544
|
+
var r = Ir(t), n = [];
|
|
1544
1545
|
if (r) {
|
|
1545
1546
|
n.length = t.length;
|
|
1546
1547
|
for (var a = 0; a < t.length; a++)
|
|
1547
1548
|
n[a] = Te(t, a) ? e(t[a], t) : "";
|
|
1548
1549
|
}
|
|
1549
|
-
var o = typeof
|
|
1550
|
+
var o = typeof hr == "function" ? hr(t) : [], l;
|
|
1550
1551
|
if (tt) {
|
|
1551
1552
|
l = {};
|
|
1552
1553
|
for (var u = 0; u < o.length; u++)
|
|
@@ -1554,21 +1555,21 @@ function It(t, e) {
|
|
|
1554
1555
|
}
|
|
1555
1556
|
for (var i in t)
|
|
1556
1557
|
Te(t, i) && (r && String(Number(i)) === i && i < t.length || tt && l["$" + i] instanceof Symbol || (pa.call(/[^\w$]/, i) ? n.push(e(i, t) + ": " + e(t[i], t)) : n.push(i + ": " + e(t[i], t))));
|
|
1557
|
-
if (typeof
|
|
1558
|
+
if (typeof hr == "function")
|
|
1558
1559
|
for (var d = 0; d < o.length; d++)
|
|
1559
1560
|
ya.call(t, o[d]) && n.push("[" + e(o[d]) + "]: " + e(t[o[d]], t));
|
|
1560
1561
|
return n;
|
|
1561
1562
|
}
|
|
1562
|
-
var ba = nt, at =
|
|
1563
|
+
var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), kl = at("WeakMap.prototype.get", !0), jl = at("WeakMap.prototype.set", !0), Ll = at("WeakMap.prototype.has", !0), Wl = at("Map.prototype.get", !0), Ul = at("Map.prototype.set", !0), Bl = at("Map.prototype.has", !0), Xr = function(t, e) {
|
|
1563
1564
|
for (var r = t, n; (n = r.next) !== null; r = n)
|
|
1564
1565
|
if (n.key === e)
|
|
1565
1566
|
return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
|
|
1566
1567
|
t.next, t.next = n, n;
|
|
1567
|
-
},
|
|
1568
|
-
var r =
|
|
1568
|
+
}, Hl = function(t, e) {
|
|
1569
|
+
var r = Xr(t, e);
|
|
1569
1570
|
return r && r.value;
|
|
1570
|
-
},
|
|
1571
|
-
var n =
|
|
1571
|
+
}, Vl = function(t, e, r) {
|
|
1572
|
+
var n = Xr(t, e);
|
|
1572
1573
|
n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
1573
1574
|
{
|
|
1574
1575
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -1576,60 +1577,60 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1576
1577
|
next: t.next,
|
|
1577
1578
|
value: r
|
|
1578
1579
|
};
|
|
1579
|
-
},
|
|
1580
|
-
return !!
|
|
1581
|
-
},
|
|
1580
|
+
}, ql = function(t, e) {
|
|
1581
|
+
return !!Xr(t, e);
|
|
1582
|
+
}, Gl = function() {
|
|
1582
1583
|
var e, r, n, a = {
|
|
1583
1584
|
assert: function(o) {
|
|
1584
1585
|
if (!a.has(o))
|
|
1585
|
-
throw new
|
|
1586
|
+
throw new Nl("Side channel does not contain " + Dl(o));
|
|
1586
1587
|
},
|
|
1587
1588
|
get: function(o) {
|
|
1588
1589
|
if (Mt && o && (typeof o == "object" || typeof o == "function")) {
|
|
1589
1590
|
if (e)
|
|
1590
|
-
return
|
|
1591
|
+
return kl(e, o);
|
|
1591
1592
|
} else if (_t) {
|
|
1592
1593
|
if (r)
|
|
1593
|
-
return
|
|
1594
|
+
return Wl(r, o);
|
|
1594
1595
|
} else if (n)
|
|
1595
|
-
return
|
|
1596
|
+
return Hl(n, o);
|
|
1596
1597
|
},
|
|
1597
1598
|
has: function(o) {
|
|
1598
1599
|
if (Mt && o && (typeof o == "object" || typeof o == "function")) {
|
|
1599
1600
|
if (e)
|
|
1600
|
-
return
|
|
1601
|
+
return Ll(e, o);
|
|
1601
1602
|
} else if (_t) {
|
|
1602
1603
|
if (r)
|
|
1603
|
-
return
|
|
1604
|
+
return Bl(r, o);
|
|
1604
1605
|
} else if (n)
|
|
1605
|
-
return
|
|
1606
|
+
return ql(n, o);
|
|
1606
1607
|
return !1;
|
|
1607
1608
|
},
|
|
1608
1609
|
set: function(o, l) {
|
|
1609
|
-
Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()),
|
|
1610
|
+
Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()), jl(e, o, l)) : _t ? (r || (r = new _t()), Ul(r, o, l)) : (n || (n = { key: {}, next: null }), Vl(n, o, l));
|
|
1610
1611
|
}
|
|
1611
1612
|
};
|
|
1612
1613
|
return a;
|
|
1613
|
-
},
|
|
1614
|
+
}, Yl = String.prototype.replace, zl = /%20/g, br = {
|
|
1614
1615
|
RFC1738: "RFC1738",
|
|
1615
1616
|
RFC3986: "RFC3986"
|
|
1616
|
-
},
|
|
1617
|
-
default:
|
|
1617
|
+
}, Jr = {
|
|
1618
|
+
default: br.RFC3986,
|
|
1618
1619
|
formatters: {
|
|
1619
1620
|
RFC1738: function(t) {
|
|
1620
|
-
return
|
|
1621
|
+
return Yl.call(t, zl, "+");
|
|
1621
1622
|
},
|
|
1622
1623
|
RFC3986: function(t) {
|
|
1623
1624
|
return String(t);
|
|
1624
1625
|
}
|
|
1625
1626
|
},
|
|
1626
|
-
RFC1738:
|
|
1627
|
-
RFC3986:
|
|
1628
|
-
},
|
|
1627
|
+
RFC1738: br.RFC1738,
|
|
1628
|
+
RFC3986: br.RFC3986
|
|
1629
|
+
}, Kl = Jr, wr = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
|
|
1629
1630
|
for (var t = [], e = 0; e < 256; ++e)
|
|
1630
1631
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1631
1632
|
return t;
|
|
1632
|
-
}(),
|
|
1633
|
+
}(), Xl = function(e) {
|
|
1633
1634
|
for (; e.length > 1; ) {
|
|
1634
1635
|
var r = e.pop(), n = r.obj[r.prop];
|
|
1635
1636
|
if (Le(n)) {
|
|
@@ -1642,14 +1643,14 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1642
1643
|
for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
|
|
1643
1644
|
typeof e[a] < "u" && (n[a] = e[a]);
|
|
1644
1645
|
return n;
|
|
1645
|
-
},
|
|
1646
|
+
}, Jl = function t(e, r, n) {
|
|
1646
1647
|
if (!r)
|
|
1647
1648
|
return e;
|
|
1648
1649
|
if (typeof r != "object") {
|
|
1649
1650
|
if (Le(e))
|
|
1650
1651
|
e.push(r);
|
|
1651
1652
|
else if (e && typeof e == "object")
|
|
1652
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
1653
|
+
(n && (n.plainObjects || n.allowPrototypes) || !wr.call(Object.prototype, r)) && (e[r] = !0);
|
|
1653
1654
|
else
|
|
1654
1655
|
return [e, r];
|
|
1655
1656
|
return e;
|
|
@@ -1658,20 +1659,20 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1658
1659
|
return [e].concat(r);
|
|
1659
1660
|
var a = e;
|
|
1660
1661
|
return Le(e) && !Le(r) && (a = wa(e, n)), Le(e) && Le(r) ? (r.forEach(function(o, l) {
|
|
1661
|
-
if (
|
|
1662
|
+
if (wr.call(e, l)) {
|
|
1662
1663
|
var u = e[l];
|
|
1663
1664
|
u && typeof u == "object" && o && typeof o == "object" ? e[l] = t(u, o, n) : e.push(o);
|
|
1664
1665
|
} else
|
|
1665
1666
|
e[l] = o;
|
|
1666
1667
|
}), e) : Object.keys(r).reduce(function(o, l) {
|
|
1667
1668
|
var u = r[l];
|
|
1668
|
-
return
|
|
1669
|
+
return wr.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
|
|
1669
1670
|
}, a);
|
|
1670
|
-
},
|
|
1671
|
+
}, Ql = function(e, r) {
|
|
1671
1672
|
return Object.keys(r).reduce(function(n, a) {
|
|
1672
1673
|
return n[a] = r[a], n;
|
|
1673
1674
|
}, e);
|
|
1674
|
-
},
|
|
1675
|
+
}, Zl = function(t, e, r) {
|
|
1675
1676
|
var n = t.replace(/\+/g, " ");
|
|
1676
1677
|
if (r === "iso-8859-1")
|
|
1677
1678
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1680,7 +1681,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1680
1681
|
} catch {
|
|
1681
1682
|
return n;
|
|
1682
1683
|
}
|
|
1683
|
-
},
|
|
1684
|
+
}, Er = 1024, eu = function(e, r, n, a, o) {
|
|
1684
1685
|
if (e.length === 0)
|
|
1685
1686
|
return e;
|
|
1686
1687
|
var l = e;
|
|
@@ -1688,11 +1689,11 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1688
1689
|
return escape(l).replace(/%u[0-9a-f]{4}/gi, function(w) {
|
|
1689
1690
|
return "%26%23" + parseInt(w.slice(2), 16) + "%3B";
|
|
1690
1691
|
});
|
|
1691
|
-
for (var u = "", i = 0; i < l.length; i +=
|
|
1692
|
-
for (var d = l.length >=
|
|
1693
|
-
var v = d.charCodeAt(
|
|
1694
|
-
if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o ===
|
|
1695
|
-
s[s.length] = d.charAt(
|
|
1692
|
+
for (var u = "", i = 0; i < l.length; i += Er) {
|
|
1693
|
+
for (var d = l.length >= Er ? l.slice(i, i + Er) : l, s = [], g = 0; g < d.length; ++g) {
|
|
1694
|
+
var v = d.charCodeAt(g);
|
|
1695
|
+
if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Kl.RFC1738 && (v === 40 || v === 41)) {
|
|
1696
|
+
s[s.length] = d.charAt(g);
|
|
1696
1697
|
continue;
|
|
1697
1698
|
}
|
|
1698
1699
|
if (v < 128) {
|
|
@@ -1707,25 +1708,25 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1707
1708
|
s[s.length] = be[224 | v >> 12] + be[128 | v >> 6 & 63] + be[128 | v & 63];
|
|
1708
1709
|
continue;
|
|
1709
1710
|
}
|
|
1710
|
-
|
|
1711
|
+
g += 1, v = 65536 + ((v & 1023) << 10 | d.charCodeAt(g) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
|
|
1711
1712
|
}
|
|
1712
1713
|
u += s.join("");
|
|
1713
1714
|
}
|
|
1714
1715
|
return u;
|
|
1715
|
-
},
|
|
1716
|
+
}, tu = function(e) {
|
|
1716
1717
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < r.length; ++a)
|
|
1717
1718
|
for (var o = r[a], l = o.obj[o.prop], u = Object.keys(l), i = 0; i < u.length; ++i) {
|
|
1718
1719
|
var d = u[i], s = l[d];
|
|
1719
1720
|
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: d }), n.push(s));
|
|
1720
1721
|
}
|
|
1721
|
-
return
|
|
1722
|
-
}, tu = function(e) {
|
|
1723
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1722
|
+
return Xl(r), e;
|
|
1724
1723
|
}, ru = function(e) {
|
|
1724
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1725
|
+
}, nu = function(e) {
|
|
1725
1726
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1726
|
-
}, nu = function(e, r) {
|
|
1727
|
-
return [].concat(e, r);
|
|
1728
1727
|
}, au = function(e, r) {
|
|
1728
|
+
return [].concat(e, r);
|
|
1729
|
+
}, ou = function(e, r) {
|
|
1729
1730
|
if (Le(e)) {
|
|
1730
1731
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
1731
1732
|
n.push(r(e[a]));
|
|
@@ -1734,16 +1735,16 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1734
1735
|
return r(e);
|
|
1735
1736
|
}, Ea = {
|
|
1736
1737
|
arrayToObject: wa,
|
|
1737
|
-
assign:
|
|
1738
|
-
combine:
|
|
1739
|
-
compact:
|
|
1740
|
-
decode:
|
|
1741
|
-
encode:
|
|
1742
|
-
isBuffer:
|
|
1743
|
-
isRegExp:
|
|
1744
|
-
maybeMap:
|
|
1745
|
-
merge:
|
|
1746
|
-
}, Sa =
|
|
1738
|
+
assign: Ql,
|
|
1739
|
+
combine: au,
|
|
1740
|
+
compact: tu,
|
|
1741
|
+
decode: Zl,
|
|
1742
|
+
encode: eu,
|
|
1743
|
+
isBuffer: nu,
|
|
1744
|
+
isRegExp: ru,
|
|
1745
|
+
maybeMap: ou,
|
|
1746
|
+
merge: Jl
|
|
1747
|
+
}, Sa = Gl, kt = Ea, wt = Jr, iu = Object.prototype.hasOwnProperty, xa = {
|
|
1747
1748
|
brackets: function(e) {
|
|
1748
1749
|
return e + "[]";
|
|
1749
1750
|
},
|
|
@@ -1754,9 +1755,9 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1754
1755
|
repeat: function(e) {
|
|
1755
1756
|
return e;
|
|
1756
1757
|
}
|
|
1757
|
-
}, we = Array.isArray,
|
|
1758
|
-
|
|
1759
|
-
},
|
|
1758
|
+
}, we = Array.isArray, lu = Array.prototype.push, Oa = function(t, e) {
|
|
1759
|
+
lu.apply(t, we(e) ? e : [e]);
|
|
1760
|
+
}, uu = Date.prototype.toISOString, qn = wt.default, X = {
|
|
1760
1761
|
addQueryPrefix: !1,
|
|
1761
1762
|
allowDots: !1,
|
|
1762
1763
|
allowEmptyArrays: !1,
|
|
@@ -1769,25 +1770,25 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1769
1770
|
encoder: kt.encode,
|
|
1770
1771
|
encodeValuesOnly: !1,
|
|
1771
1772
|
format: qn,
|
|
1772
|
-
formatter:
|
|
1773
|
+
formatter: wt.formatters[qn],
|
|
1773
1774
|
// deprecated
|
|
1774
1775
|
indices: !1,
|
|
1775
1776
|
serializeDate: function(e) {
|
|
1776
|
-
return
|
|
1777
|
+
return uu.call(e);
|
|
1777
1778
|
},
|
|
1778
1779
|
skipNulls: !1,
|
|
1779
1780
|
strictNullHandling: !1
|
|
1780
|
-
},
|
|
1781
|
+
}, su = function(e) {
|
|
1781
1782
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1782
|
-
},
|
|
1783
|
-
for (var b = e, S =
|
|
1783
|
+
}, Sr = {}, cu = function t(e, r, n, a, o, l, u, i, d, s, g, v, w, f, y, p, m, h) {
|
|
1784
|
+
for (var b = e, S = h, O = 0, _ = !1; (S = S.get(Sr)) !== void 0 && !_; ) {
|
|
1784
1785
|
var M = S.get(e);
|
|
1785
1786
|
if (O += 1, typeof M < "u") {
|
|
1786
1787
|
if (M === O)
|
|
1787
1788
|
throw new RangeError("Cyclic object value");
|
|
1788
1789
|
_ = !0;
|
|
1789
1790
|
}
|
|
1790
|
-
typeof S.get(
|
|
1791
|
+
typeof S.get(Sr) > "u" && (O = 0);
|
|
1791
1792
|
}
|
|
1792
1793
|
if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = kt.maybeMap(b, function(pe) {
|
|
1793
1794
|
return pe instanceof Date ? w(pe) : pe;
|
|
@@ -1796,7 +1797,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1796
1797
|
return d && !p ? d(r, X.encoder, m, "key", f) : r;
|
|
1797
1798
|
b = "";
|
|
1798
1799
|
}
|
|
1799
|
-
if (
|
|
1800
|
+
if (su(b) || kt.isBuffer(b)) {
|
|
1800
1801
|
if (d) {
|
|
1801
1802
|
var W = p ? r : d(r, X.encoder, m, "key", f);
|
|
1802
1803
|
return [y(W) + "=" + y(d(b, X.encoder, m, "value", f))];
|
|
@@ -1813,7 +1814,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1813
1814
|
k = s;
|
|
1814
1815
|
else {
|
|
1815
1816
|
var Y = Object.keys(b);
|
|
1816
|
-
k =
|
|
1817
|
+
k = g ? Y.sort(g) : Y;
|
|
1817
1818
|
}
|
|
1818
1819
|
var V = i ? r.replace(/\./g, "%2E") : r, $ = a && we(b) && b.length === 1 ? V + "[]" : V;
|
|
1819
1820
|
if (o && we(b) && b.length === 0)
|
|
@@ -1822,9 +1823,9 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1822
1823
|
var D = k[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
|
|
1823
1824
|
if (!(u && ue === null)) {
|
|
1824
1825
|
var de = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, de) : $ : $ + (v ? "." + de : "[" + de + "]");
|
|
1825
|
-
|
|
1826
|
+
h.set(e, O);
|
|
1826
1827
|
var te = Sa();
|
|
1827
|
-
te.set(
|
|
1828
|
+
te.set(Sr, h), Oa(H, t(
|
|
1828
1829
|
ue,
|
|
1829
1830
|
ge,
|
|
1830
1831
|
n,
|
|
@@ -1835,7 +1836,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1835
1836
|
i,
|
|
1836
1837
|
n === "comma" && p && we(b) ? null : d,
|
|
1837
1838
|
s,
|
|
1838
|
-
|
|
1839
|
+
g,
|
|
1839
1840
|
v,
|
|
1840
1841
|
w,
|
|
1841
1842
|
f,
|
|
@@ -1847,7 +1848,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1847
1848
|
}
|
|
1848
1849
|
}
|
|
1849
1850
|
return H;
|
|
1850
|
-
},
|
|
1851
|
+
}, fu = function(e) {
|
|
1851
1852
|
if (!e)
|
|
1852
1853
|
return X;
|
|
1853
1854
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -1859,13 +1860,13 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1859
1860
|
var r = e.charset || X.charset;
|
|
1860
1861
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1861
1862
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1862
|
-
var n =
|
|
1863
|
+
var n = wt.default;
|
|
1863
1864
|
if (typeof e.format < "u") {
|
|
1864
|
-
if (!
|
|
1865
|
+
if (!iu.call(wt.formatters, e.format))
|
|
1865
1866
|
throw new TypeError("Unknown format option provided.");
|
|
1866
1867
|
n = e.format;
|
|
1867
1868
|
}
|
|
1868
|
-
var a =
|
|
1869
|
+
var a = wt.formatters[n], o = X.filter;
|
|
1869
1870
|
(typeof e.filter == "function" || we(e.filter)) && (o = e.filter);
|
|
1870
1871
|
var l;
|
|
1871
1872
|
if (e.arrayFormat in xa ? l = e.arrayFormat : "indices" in e ? l = e.indices ? "indices" : "repeat" : l = X.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
@@ -1892,8 +1893,8 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1892
1893
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1893
1894
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : X.strictNullHandling
|
|
1894
1895
|
};
|
|
1895
|
-
},
|
|
1896
|
-
var r = t, n =
|
|
1896
|
+
}, du = function(t, e) {
|
|
1897
|
+
var r = t, n = fu(e), a, o;
|
|
1897
1898
|
typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : we(n.filter) && (o = n.filter, a = o);
|
|
1898
1899
|
var l = [];
|
|
1899
1900
|
if (typeof r != "object" || r === null)
|
|
@@ -1901,10 +1902,10 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1901
1902
|
var u = xa[n.arrayFormat], i = u === "comma" && n.commaRoundTrip;
|
|
1902
1903
|
a || (a = Object.keys(r)), n.sort && a.sort(n.sort);
|
|
1903
1904
|
for (var d = Sa(), s = 0; s < a.length; ++s) {
|
|
1904
|
-
var
|
|
1905
|
-
n.skipNulls && r[
|
|
1906
|
-
r[
|
|
1907
|
-
|
|
1905
|
+
var g = a[s];
|
|
1906
|
+
n.skipNulls && r[g] === null || Oa(l, cu(
|
|
1907
|
+
r[g],
|
|
1908
|
+
g,
|
|
1908
1909
|
u,
|
|
1909
1910
|
i,
|
|
1910
1911
|
n.allowEmptyArrays,
|
|
@@ -1925,7 +1926,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1925
1926
|
}
|
|
1926
1927
|
var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
|
|
1927
1928
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
|
|
1928
|
-
}, rt = Ea,
|
|
1929
|
+
}, rt = Ea, _r = Object.prototype.hasOwnProperty, pu = Array.isArray, B = {
|
|
1929
1930
|
allowDots: !1,
|
|
1930
1931
|
allowEmptyArrays: !1,
|
|
1931
1932
|
allowPrototypes: !1,
|
|
@@ -1946,33 +1947,33 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1946
1947
|
plainObjects: !1,
|
|
1947
1948
|
strictDepth: !1,
|
|
1948
1949
|
strictNullHandling: !1
|
|
1949
|
-
},
|
|
1950
|
+
}, yu = function(t) {
|
|
1950
1951
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
1951
1952
|
return String.fromCharCode(parseInt(r, 10));
|
|
1952
1953
|
});
|
|
1953
1954
|
}, Pa = function(t, e) {
|
|
1954
1955
|
return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
1955
|
-
},
|
|
1956
|
+
}, vu = "utf8=%26%2310003%3B", mu = "utf8=%E2%9C%93", hu = function(e, r) {
|
|
1956
1957
|
var n = { __proto__: null }, a = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1957
1958
|
a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1958
1959
|
var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, d = r.charset;
|
|
1959
1960
|
if (r.charsetSentinel)
|
|
1960
1961
|
for (i = 0; i < l.length; ++i)
|
|
1961
|
-
l[i].indexOf("utf8=") === 0 && (l[i] ===
|
|
1962
|
+
l[i].indexOf("utf8=") === 0 && (l[i] === mu ? d = "utf-8" : l[i] === vu && (d = "iso-8859-1"), u = i, i = l.length);
|
|
1962
1963
|
for (i = 0; i < l.length; ++i)
|
|
1963
1964
|
if (i !== u) {
|
|
1964
|
-
var s = l[i],
|
|
1965
|
+
var s = l[i], g = s.indexOf("]="), v = g === -1 ? s.indexOf("=") : g + 1, w, f;
|
|
1965
1966
|
v === -1 ? (w = r.decoder(s, B.decoder, d, "key"), f = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, d, "key"), f = rt.maybeMap(
|
|
1966
1967
|
Pa(s.slice(v + 1), r),
|
|
1967
1968
|
function(p) {
|
|
1968
1969
|
return r.decoder(p, B.decoder, d, "value");
|
|
1969
1970
|
}
|
|
1970
|
-
)), f && r.interpretNumericEntities && d === "iso-8859-1" && (f =
|
|
1971
|
-
var y =
|
|
1971
|
+
)), f && r.interpretNumericEntities && d === "iso-8859-1" && (f = yu(f)), s.indexOf("[]=") > -1 && (f = pu(f) ? [f] : f);
|
|
1972
|
+
var y = _r.call(n, w);
|
|
1972
1973
|
y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], f) : (!y || r.duplicates === "last") && (n[w] = f);
|
|
1973
1974
|
}
|
|
1974
1975
|
return n;
|
|
1975
|
-
},
|
|
1976
|
+
}, gu = function(t, e, r, n) {
|
|
1976
1977
|
for (var a = n ? e : Pa(e, r), o = t.length - 1; o >= 0; --o) {
|
|
1977
1978
|
var l, u = t[o];
|
|
1978
1979
|
if (u === "[]" && r.parseArrays)
|
|
@@ -1985,16 +1986,16 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1985
1986
|
a = l;
|
|
1986
1987
|
}
|
|
1987
1988
|
return a;
|
|
1988
|
-
},
|
|
1989
|
+
}, bu = function(e, r, n, a) {
|
|
1989
1990
|
if (e) {
|
|
1990
1991
|
var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), d = i ? o.slice(0, i.index) : o, s = [];
|
|
1991
1992
|
if (d) {
|
|
1992
|
-
if (!n.plainObjects &&
|
|
1993
|
+
if (!n.plainObjects && _r.call(Object.prototype, d) && !n.allowPrototypes)
|
|
1993
1994
|
return;
|
|
1994
1995
|
s.push(d);
|
|
1995
1996
|
}
|
|
1996
|
-
for (var
|
|
1997
|
-
if (
|
|
1997
|
+
for (var g = 0; n.depth > 0 && (i = u.exec(o)) !== null && g < n.depth; ) {
|
|
1998
|
+
if (g += 1, !n.plainObjects && _r.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1998
1999
|
return;
|
|
1999
2000
|
s.push(i[1]);
|
|
2000
2001
|
}
|
|
@@ -2003,9 +2004,9 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2003
2004
|
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
2004
2005
|
s.push("[" + o.slice(i.index) + "]");
|
|
2005
2006
|
}
|
|
2006
|
-
return
|
|
2007
|
+
return gu(s, r, n, a);
|
|
2007
2008
|
}
|
|
2008
|
-
},
|
|
2009
|
+
}, wu = function(e) {
|
|
2009
2010
|
if (!e)
|
|
2010
2011
|
return B;
|
|
2011
2012
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2043,26 +2044,26 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2043
2044
|
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : B.strictDepth,
|
|
2044
2045
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
|
|
2045
2046
|
};
|
|
2046
|
-
},
|
|
2047
|
-
var r =
|
|
2047
|
+
}, Eu = function(t, e) {
|
|
2048
|
+
var r = wu(e);
|
|
2048
2049
|
if (t === "" || t === null || typeof t > "u")
|
|
2049
2050
|
return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2050
|
-
for (var n = typeof t == "string" ?
|
|
2051
|
-
var u = o[l], i =
|
|
2051
|
+
for (var n = typeof t == "string" ? hu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
|
|
2052
|
+
var u = o[l], i = bu(u, n[u], r, typeof t == "string");
|
|
2052
2053
|
a = rt.merge(a, i, r);
|
|
2053
2054
|
}
|
|
2054
2055
|
return r.allowSparse === !0 ? a : rt.compact(a);
|
|
2055
|
-
},
|
|
2056
|
-
formats:
|
|
2057
|
-
parse:
|
|
2058
|
-
stringify:
|
|
2059
|
-
},
|
|
2056
|
+
}, Su = du, xu = Eu, Ou = Jr, Gn = {
|
|
2057
|
+
formats: Ou,
|
|
2058
|
+
parse: xu,
|
|
2059
|
+
stringify: Su
|
|
2060
|
+
}, Pu = { exports: {} };
|
|
2060
2061
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
2061
2062
|
* @license MIT */
|
|
2062
2063
|
(function(t, e) {
|
|
2063
2064
|
(function(r, n) {
|
|
2064
2065
|
t.exports = n();
|
|
2065
|
-
})(
|
|
2066
|
+
})(Ar, function() {
|
|
2066
2067
|
var r = {};
|
|
2067
2068
|
r.version = "0.2.0";
|
|
2068
2069
|
var n = r.settings = {
|
|
@@ -2087,19 +2088,19 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2087
2088
|
}, r.status = null, r.set = function(f) {
|
|
2088
2089
|
var y = r.isStarted();
|
|
2089
2090
|
f = a(f, n.minimum, 1), r.status = f === 1 ? null : f;
|
|
2090
|
-
var p = r.render(!y), m = p.querySelector(n.barSelector),
|
|
2091
|
+
var p = r.render(!y), m = p.querySelector(n.barSelector), h = n.speed, b = n.easing;
|
|
2091
2092
|
return p.offsetWidth, u(function(S) {
|
|
2092
|
-
n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(f,
|
|
2093
|
+
n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(f, h, b)), f === 1 ? (i(p, {
|
|
2093
2094
|
transition: "none",
|
|
2094
2095
|
opacity: 1
|
|
2095
2096
|
}), p.offsetWidth, setTimeout(function() {
|
|
2096
2097
|
i(p, {
|
|
2097
|
-
transition: "all " +
|
|
2098
|
+
transition: "all " + h + "ms linear",
|
|
2098
2099
|
opacity: 0
|
|
2099
2100
|
}), setTimeout(function() {
|
|
2100
2101
|
r.remove(), S();
|
|
2101
|
-
},
|
|
2102
|
-
},
|
|
2102
|
+
}, h);
|
|
2103
|
+
}, h)) : setTimeout(S, h);
|
|
2103
2104
|
}), this;
|
|
2104
2105
|
}, r.isStarted = function() {
|
|
2105
2106
|
return typeof r.status == "number";
|
|
@@ -2130,13 +2131,13 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2130
2131
|
s(document.documentElement, "nprogress-busy");
|
|
2131
2132
|
var y = document.createElement("div");
|
|
2132
2133
|
y.id = "nprogress", y.innerHTML = n.template;
|
|
2133
|
-
var p = y.querySelector(n.barSelector), m = f ? "-100" : o(r.status || 0),
|
|
2134
|
+
var p = y.querySelector(n.barSelector), m = f ? "-100" : o(r.status || 0), h = document.querySelector(n.parent), b;
|
|
2134
2135
|
return i(p, {
|
|
2135
2136
|
transition: "all 0 linear",
|
|
2136
2137
|
transform: "translate3d(" + m + "%,0,0)"
|
|
2137
|
-
}), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)),
|
|
2138
|
+
}), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), h != document.body && s(h, "nprogress-custom-parent"), h.appendChild(y), y;
|
|
2138
2139
|
}, r.remove = function() {
|
|
2139
|
-
|
|
2140
|
+
g(document.documentElement, "nprogress-busy"), g(document.querySelector(n.parent), "nprogress-custom-parent");
|
|
2140
2141
|
var f = document.getElementById("nprogress");
|
|
2141
2142
|
f && w(f);
|
|
2142
2143
|
}, r.isRendered = function() {
|
|
@@ -2178,11 +2179,11 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2178
2179
|
if (W = f[_] + M, W in O) return W;
|
|
2179
2180
|
return S;
|
|
2180
2181
|
}
|
|
2181
|
-
function
|
|
2182
|
+
function h(S) {
|
|
2182
2183
|
return S = p(S), y[S] || (y[S] = m(S));
|
|
2183
2184
|
}
|
|
2184
2185
|
function b(S, O, _) {
|
|
2185
|
-
O =
|
|
2186
|
+
O = h(O), S.style[O] = _;
|
|
2186
2187
|
}
|
|
2187
2188
|
return function(S, O) {
|
|
2188
2189
|
var _ = arguments, M, W;
|
|
@@ -2201,7 +2202,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2201
2202
|
var p = v(f), m = p + y;
|
|
2202
2203
|
d(p, y) || (f.className = m.substring(1));
|
|
2203
2204
|
}
|
|
2204
|
-
function
|
|
2205
|
+
function g(f, y) {
|
|
2205
2206
|
var p = v(f), m;
|
|
2206
2207
|
d(f, y) && (m = p.replace(" " + y + " ", " "), f.className = m.substring(1, m.length - 1));
|
|
2207
2208
|
}
|
|
@@ -2213,23 +2214,23 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2213
2214
|
}
|
|
2214
2215
|
return r;
|
|
2215
2216
|
});
|
|
2216
|
-
})(
|
|
2217
|
-
function
|
|
2217
|
+
})(Pu);
|
|
2218
|
+
function Au(t, e, r, n = "brackets") {
|
|
2218
2219
|
let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), d = new URL(e.toString(), "http://localhost");
|
|
2219
|
-
return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(
|
|
2220
|
+
return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(li(Gn.parse(d.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${d.protocol}//${d.host}` : "", o ? d.pathname : "", l ? d.pathname.substring(1) : "", u ? d.search : "", i ? d.hash : ""].join(""), r];
|
|
2220
2221
|
}
|
|
2221
2222
|
const zt = ce(null);
|
|
2222
2223
|
zt.displayName = "ModalStackContext";
|
|
2223
|
-
let Aa = null, Ta = null,
|
|
2224
|
-
const
|
|
2224
|
+
let Aa = null, Ta = null, Dr = null, Nr = null, Yn = [];
|
|
2225
|
+
const Tu = ({ children: t }) => {
|
|
2225
2226
|
const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
|
|
2226
2227
|
r((p) => {
|
|
2227
|
-
const m = y([...p]),
|
|
2228
|
+
const m = y([...p]), h = (b) => {
|
|
2228
2229
|
var S;
|
|
2229
2230
|
return m.length < 2 ? !0 : ((S = m.map((O) => ({ id: O.id, shouldRender: O.shouldRender })).reverse().find((O) => O.shouldRender)) == null ? void 0 : S.id) === b;
|
|
2230
2231
|
};
|
|
2231
2232
|
return m.forEach((b, S) => {
|
|
2232
|
-
m[S].onTopOfStack =
|
|
2233
|
+
m[S].onTopOfStack = h(b.id), m[S].getParentModal = () => S < 1 ? null : m.slice(0, S).reverse().find((O) => O.isOpen), m[S].getChildModal = () => S === m.length - 1 ? null : m.slice(S + 1).find((O) => O.isOpen);
|
|
2233
2234
|
}), m;
|
|
2234
2235
|
});
|
|
2235
2236
|
};
|
|
@@ -2237,10 +2238,10 @@ const Au = ({ children: t }) => {
|
|
|
2237
2238
|
Yn = e;
|
|
2238
2239
|
}, [e]);
|
|
2239
2240
|
class l {
|
|
2240
|
-
constructor(p, m,
|
|
2241
|
-
ye(this, "update", (p, m,
|
|
2241
|
+
constructor(p, m, h, b, S) {
|
|
2242
|
+
ye(this, "update", (p, m, h) => {
|
|
2242
2243
|
o(
|
|
2243
|
-
(b) => b.map((S) => (S.id === this.id && (S.
|
|
2244
|
+
(b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = h), S))
|
|
2244
2245
|
);
|
|
2245
2246
|
});
|
|
2246
2247
|
ye(this, "show", () => {
|
|
@@ -2254,18 +2255,18 @@ const Au = ({ children: t }) => {
|
|
|
2254
2255
|
ye(this, "close", () => {
|
|
2255
2256
|
o(
|
|
2256
2257
|
(p) => p.map((m) => {
|
|
2257
|
-
var
|
|
2258
|
+
var h;
|
|
2258
2259
|
return m.id === this.id && m.isOpen && (Object.keys(m.listeners).forEach((b) => {
|
|
2259
2260
|
m.off(b);
|
|
2260
|
-
}), m.isOpen = !1, (
|
|
2261
|
+
}), m.isOpen = !1, (h = m.onCloseCallback) == null || h.call(m)), m;
|
|
2261
2262
|
})
|
|
2262
2263
|
);
|
|
2263
2264
|
});
|
|
2264
2265
|
ye(this, "afterLeave", () => {
|
|
2265
2266
|
this.isOpen || o((p) => {
|
|
2266
|
-
const m = p.map((
|
|
2267
|
+
const m = p.map((h) => {
|
|
2267
2268
|
var b;
|
|
2268
|
-
return
|
|
2269
|
+
return h.id === this.id && !h.isOpen && (h.shouldRender = !1, (b = h.afterLeaveCallback) == null || b.call(h), h.afterLeaveCallback = null), h;
|
|
2269
2270
|
});
|
|
2270
2271
|
return this.index === 0 ? [] : m;
|
|
2271
2272
|
});
|
|
@@ -2274,24 +2275,24 @@ const Au = ({ children: t }) => {
|
|
|
2274
2275
|
this.listeners[p] = this.listeners[p] ?? [], this.listeners[p].push(m);
|
|
2275
2276
|
});
|
|
2276
2277
|
ye(this, "off", (p, m) => {
|
|
2277
|
-
var
|
|
2278
|
-
m ? this.listeners[p] = ((
|
|
2278
|
+
var h;
|
|
2279
|
+
m ? this.listeners[p] = ((h = this.listeners[p]) == null ? void 0 : h.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
|
|
2279
2280
|
});
|
|
2280
2281
|
ye(this, "emit", (p, ...m) => {
|
|
2281
|
-
var
|
|
2282
|
-
(
|
|
2282
|
+
var h;
|
|
2283
|
+
(h = this.listeners[p]) == null || h.forEach((b) => b(...m));
|
|
2283
2284
|
});
|
|
2284
2285
|
ye(this, "registerEventListenersFromProps", (p) => {
|
|
2285
2286
|
const m = [];
|
|
2286
|
-
return Object.keys(p).filter((
|
|
2287
|
-
const b =
|
|
2288
|
-
this.on(b, p[
|
|
2289
|
-
}), () => m.forEach((
|
|
2287
|
+
return Object.keys(p).filter((h) => h.startsWith("on")).forEach((h) => {
|
|
2288
|
+
const b = h.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
2289
|
+
this.on(b, p[h]), m.push(() => this.off(b, p[h]));
|
|
2290
|
+
}), () => m.forEach((h) => h());
|
|
2290
2291
|
});
|
|
2291
2292
|
ye(this, "reload", (p = {}) => {
|
|
2292
|
-
var
|
|
2293
|
+
var h;
|
|
2293
2294
|
let m = Object.keys(this.response.props);
|
|
2294
|
-
p.only && (m = aa(m, p.only)), p.except && (m =
|
|
2295
|
+
p.only && (m = aa(m, p.only)), p.except && (m = Vo(m, p.except)), (h = this.response) != null && h.url && jt.get(this.response.url, {
|
|
2295
2296
|
headers: {
|
|
2296
2297
|
Accept: "text/html, application/xhtml+xml",
|
|
2297
2298
|
"X-Inertia": !0,
|
|
@@ -2302,26 +2303,26 @@ const Au = ({ children: t }) => {
|
|
|
2302
2303
|
"X-InertiaUI-Modal-Use-Router": 0
|
|
2303
2304
|
}
|
|
2304
2305
|
}).then((b) => {
|
|
2305
|
-
Object.assign(this.
|
|
2306
|
+
Object.assign(this.props, b.data.props), o((S) => S);
|
|
2306
2307
|
});
|
|
2307
2308
|
});
|
|
2308
|
-
this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.
|
|
2309
|
+
this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = h, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
|
|
2309
2310
|
}
|
|
2310
2311
|
static generateId() {
|
|
2311
2312
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? `inertiaui_modal_${crypto.randomUUID()}` : `inertiaui_modal_${Date.now().toString(36)}_${Math.random().toString(36).substr(2, 9)}`;
|
|
2312
2313
|
}
|
|
2313
2314
|
}
|
|
2314
|
-
const u = (y, p = {}, m = null,
|
|
2315
|
-
const S = new l(y, p, m,
|
|
2315
|
+
const u = (y, p = {}, m = null, h = null) => Ta(y.component).then((b) => i(b, y, p, m, h)), i = (y, p, m, h, b) => {
|
|
2316
|
+
const S = new l(y, p, m, h, b);
|
|
2316
2317
|
return S.index = e.length, o((O) => [...O, S]), S.show(), S;
|
|
2317
2318
|
};
|
|
2318
|
-
function d(y, p, m,
|
|
2319
|
+
function d(y, p, m, h) {
|
|
2319
2320
|
if (!n[y])
|
|
2320
2321
|
throw new Error(`The local modal "${y}" has not been registered.`);
|
|
2321
|
-
const b = i(null, {}, p, m,
|
|
2322
|
+
const b = i(null, {}, p, m, h);
|
|
2322
2323
|
return b.name = y, n[y].callback(b), b;
|
|
2323
2324
|
}
|
|
2324
|
-
const s = (y, p = {}) =>
|
|
2325
|
+
const s = (y, p = {}) => g(
|
|
2325
2326
|
y,
|
|
2326
2327
|
p.method ?? "get",
|
|
2327
2328
|
p.data ?? {},
|
|
@@ -2330,16 +2331,16 @@ const Au = ({ children: t }) => {
|
|
|
2330
2331
|
p.onClose,
|
|
2331
2332
|
p.onAfterLeave,
|
|
2332
2333
|
p.queryStringArrayFormat ?? "brackets",
|
|
2333
|
-
p.navigate ??
|
|
2334
|
-
),
|
|
2334
|
+
p.navigate ?? Vr("navigate")
|
|
2335
|
+
), g = (y, p, m = {}, h = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
|
|
2335
2336
|
if (y.startsWith("#")) {
|
|
2336
2337
|
W(d(y.substring(1), b, S, O));
|
|
2337
2338
|
return;
|
|
2338
2339
|
}
|
|
2339
|
-
const [k, Y] =
|
|
2340
|
+
const [k, Y] = Au(p, y || "", m, _);
|
|
2340
2341
|
let V = M && e.length === 0;
|
|
2341
|
-
if (e.length === 0 && (
|
|
2342
|
-
...
|
|
2342
|
+
if (e.length === 0 && (Dr = typeof window < "u" ? window.location.href : ""), h = {
|
|
2343
|
+
...h,
|
|
2343
2344
|
Accept: "text/html, application/xhtml+xml",
|
|
2344
2345
|
"X-Requested-With": "XMLHttpRequest",
|
|
2345
2346
|
"X-Inertia": !0,
|
|
@@ -2347,15 +2348,15 @@ const Au = ({ children: t }) => {
|
|
|
2347
2348
|
"X-InertiaUI-Modal": !0,
|
|
2348
2349
|
"X-InertiaUI-Modal-Use-Router": V ? 1 : 0
|
|
2349
2350
|
}, V)
|
|
2350
|
-
return
|
|
2351
|
+
return vt.visit(k, {
|
|
2351
2352
|
method: p,
|
|
2352
2353
|
data: Y,
|
|
2353
|
-
headers:
|
|
2354
|
+
headers: h,
|
|
2354
2355
|
preserveScroll: !0,
|
|
2355
2356
|
preserveState: !0,
|
|
2356
2357
|
onError: H,
|
|
2357
2358
|
onFinish: () => {
|
|
2358
|
-
|
|
2359
|
+
Go(() => Nr).then(($) => {
|
|
2359
2360
|
const T = $.onCloseCallback, D = $.afterLeaveCallback;
|
|
2360
2361
|
$.update(
|
|
2361
2362
|
b,
|
|
@@ -2365,7 +2366,7 @@ const Au = ({ children: t }) => {
|
|
|
2365
2366
|
() => {
|
|
2366
2367
|
O == null || O(), D == null || D();
|
|
2367
2368
|
}
|
|
2368
|
-
), W($),
|
|
2369
|
+
), W($), Nr = null;
|
|
2369
2370
|
});
|
|
2370
2371
|
}
|
|
2371
2372
|
});
|
|
@@ -2373,7 +2374,7 @@ const Au = ({ children: t }) => {
|
|
|
2373
2374
|
url: k,
|
|
2374
2375
|
method: p,
|
|
2375
2376
|
data: Y,
|
|
2376
|
-
headers:
|
|
2377
|
+
headers: h
|
|
2377
2378
|
}).then(($) => W(u($.data, b, S, O))).catch(($) => {
|
|
2378
2379
|
H($);
|
|
2379
2380
|
});
|
|
@@ -2386,7 +2387,7 @@ const Au = ({ children: t }) => {
|
|
|
2386
2387
|
Yn.reverse().forEach((y) => y.close());
|
|
2387
2388
|
},
|
|
2388
2389
|
reset: () => o(() => []),
|
|
2389
|
-
visit:
|
|
2390
|
+
visit: g,
|
|
2390
2391
|
visitModal: s,
|
|
2391
2392
|
registerLocalModal: (y, p) => {
|
|
2392
2393
|
a((m) => ({
|
|
@@ -2402,7 +2403,7 @@ const Au = ({ children: t }) => {
|
|
|
2402
2403
|
}
|
|
2403
2404
|
};
|
|
2404
2405
|
return /* @__PURE__ */ R.jsx(zt.Provider, { value: f, children: t });
|
|
2405
|
-
},
|
|
2406
|
+
}, Kt = () => {
|
|
2406
2407
|
const t = ie(zt);
|
|
2407
2408
|
if (t === null)
|
|
2408
2409
|
throw new Error("useModalStack must be used within a ModalStackProvider");
|
|
@@ -2411,66 +2412,66 @@ const Au = ({ children: t }) => {
|
|
|
2411
2412
|
e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
|
|
2412
2413
|
const r = ({ Component: n, props: a, key: o }) => {
|
|
2413
2414
|
const l = () => {
|
|
2414
|
-
const u =
|
|
2415
|
-
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) =>
|
|
2415
|
+
const u = Pr(n, { key: o, ...a });
|
|
2416
|
+
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) => Pr(s, a, d)) : u;
|
|
2416
2417
|
};
|
|
2417
2418
|
return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
2418
2419
|
l(),
|
|
2419
|
-
/* @__PURE__ */ R.jsx(
|
|
2420
|
+
/* @__PURE__ */ R.jsx($u, {})
|
|
2420
2421
|
] });
|
|
2421
2422
|
};
|
|
2422
|
-
return /* @__PURE__ */ R.jsx(
|
|
2423
|
-
},
|
|
2423
|
+
return /* @__PURE__ */ R.jsx(Tu, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
|
|
2424
|
+
}, $u = ({ children: t }) => {
|
|
2424
2425
|
const e = ie(zt);
|
|
2425
2426
|
let r = !1, n = !1;
|
|
2426
|
-
K(() =>
|
|
2427
|
-
() =>
|
|
2427
|
+
K(() => vt.on("start", () => r = !0), []), K(() => vt.on("finish", () => r = !1), []), K(
|
|
2428
|
+
() => vt.on("navigate", function(o) {
|
|
2428
2429
|
const l = o.detail.page.props._inertiaui_modal;
|
|
2429
2430
|
if (!l) {
|
|
2430
2431
|
n && e.closeAll();
|
|
2431
2432
|
return;
|
|
2432
2433
|
}
|
|
2433
|
-
n = l,
|
|
2434
|
+
n = l, Dr = l.baseUrl, e.pushFromResponseData(l, {}, () => {
|
|
2434
2435
|
if (!l.baseUrl) {
|
|
2435
2436
|
console.error("No base url in modal response data so cannot navigate back");
|
|
2436
2437
|
return;
|
|
2437
2438
|
}
|
|
2438
|
-
!r && window.location.href !== l.baseUrl &&
|
|
2439
|
+
!r && window.location.href !== l.baseUrl && vt.visit(l.baseUrl, {
|
|
2439
2440
|
preserveScroll: !0,
|
|
2440
2441
|
preserveState: !0
|
|
2441
2442
|
});
|
|
2442
2443
|
}).then((u) => {
|
|
2443
|
-
|
|
2444
|
+
Nr = u;
|
|
2444
2445
|
});
|
|
2445
2446
|
}),
|
|
2446
2447
|
[]
|
|
2447
2448
|
);
|
|
2448
|
-
const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] =
|
|
2449
|
+
const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] = Dr, o);
|
|
2449
2450
|
return K(() => (jt.interceptors.request.use(a), () => jt.interceptors.request.eject(a)), []), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
2450
2451
|
t,
|
|
2451
|
-
e.stack.length > 0 && /* @__PURE__ */ R.jsx(
|
|
2452
|
+
e.stack.length > 0 && /* @__PURE__ */ R.jsx(Ra, { index: 0 })
|
|
2452
2453
|
] });
|
|
2453
2454
|
}, Qr = A.createContext(null);
|
|
2454
2455
|
Qr.displayName = "ModalIndexContext";
|
|
2455
|
-
const $
|
|
2456
|
+
const $a = () => {
|
|
2456
2457
|
const t = A.useContext(Qr);
|
|
2457
2458
|
if (t === void 0)
|
|
2458
2459
|
throw new Error("useModalIndex must be used within a ModalIndexProvider");
|
|
2459
2460
|
return t;
|
|
2460
|
-
},
|
|
2461
|
-
const { stack: e } =
|
|
2461
|
+
}, Ra = ({ index: t }) => {
|
|
2462
|
+
const { stack: e } = Kt(), r = J(() => e[t], [e, t]);
|
|
2462
2463
|
return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Qr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
|
|
2463
2464
|
r.component,
|
|
2464
2465
|
{
|
|
2465
|
-
...r.
|
|
2466
|
+
...r.props,
|
|
2466
2467
|
onModalEvent: (...n) => r.emit(...n)
|
|
2467
2468
|
}
|
|
2468
2469
|
) });
|
|
2469
|
-
},
|
|
2470
|
-
const a = $
|
|
2470
|
+
}, Fa = Hr(({ name: t, children: e, ...r }, n) => {
|
|
2471
|
+
const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Kt(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), g = J(() => {
|
|
2471
2472
|
var f;
|
|
2472
2473
|
return (f = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : f.index;
|
|
2473
|
-
}, [a, o]), v = J(() => (s == null ? void 0 : s.
|
|
2474
|
+
}, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? Vr("type") === "slideover", [r.slideover]), w = J(
|
|
2474
2475
|
() => ({
|
|
2475
2476
|
slideover: v,
|
|
2476
2477
|
closeButton: r.closeButton ?? ze(v, "closeButton"),
|
|
@@ -2479,9 +2480,9 @@ const $u = () => {
|
|
|
2479
2480
|
paddingClasses: r.paddingClasses ?? ze(v, "paddingClasses"),
|
|
2480
2481
|
panelClasses: r.panelClasses ?? ze(v, "panelClasses"),
|
|
2481
2482
|
position: r.position ?? ze(v, "position"),
|
|
2482
|
-
...s == null ? void 0 : s.
|
|
2483
|
+
...s == null ? void 0 : s.config
|
|
2483
2484
|
}),
|
|
2484
|
-
[r, s == null ? void 0 : s.
|
|
2485
|
+
[r, s == null ? void 0 : s.config]
|
|
2485
2486
|
);
|
|
2486
2487
|
return K(() => {
|
|
2487
2488
|
if (t) {
|
|
@@ -2498,6 +2499,7 @@ const $u = () => {
|
|
|
2498
2499
|
() => ({
|
|
2499
2500
|
afterLeave: () => s.afterLeave(),
|
|
2500
2501
|
close: () => s.close(),
|
|
2502
|
+
config: w,
|
|
2501
2503
|
emit: (...f) => s.emit(...f),
|
|
2502
2504
|
getChildModal: () => s.getChildModal(),
|
|
2503
2505
|
getParentModal: () => s.getParentModal(),
|
|
@@ -2505,7 +2507,6 @@ const $u = () => {
|
|
|
2505
2507
|
index: s == null ? void 0 : s.index,
|
|
2506
2508
|
isOpen: s == null ? void 0 : s.isOpen,
|
|
2507
2509
|
modalContext: s,
|
|
2508
|
-
modalProps: w,
|
|
2509
2510
|
onTopOfStack: s == null ? void 0 : s.onTopOfStack,
|
|
2510
2511
|
reload: () => s.reload(),
|
|
2511
2512
|
setOpen: () => s.setOpen(),
|
|
@@ -2516,6 +2517,7 @@ const $u = () => {
|
|
|
2516
2517
|
typeof e == "function" ? e({
|
|
2517
2518
|
afterLeave: s.afterLeave,
|
|
2518
2519
|
close: s.close,
|
|
2520
|
+
config: w,
|
|
2519
2521
|
emit: s.emit,
|
|
2520
2522
|
getChildModal: s.getChildModal,
|
|
2521
2523
|
getParentModal: s.getParentModal,
|
|
@@ -2523,33 +2525,32 @@ const $u = () => {
|
|
|
2523
2525
|
index: s.index,
|
|
2524
2526
|
isOpen: s.isOpen,
|
|
2525
2527
|
modalContext: s,
|
|
2526
|
-
modalProps: w,
|
|
2527
2528
|
onTopOfStack: s.onTopOfStack,
|
|
2528
2529
|
reload: s.reload,
|
|
2529
2530
|
setOpen: s.setOpen,
|
|
2530
2531
|
shouldRender: s.shouldRender
|
|
2531
2532
|
}) : e,
|
|
2532
|
-
|
|
2533
|
+
g && /* @__PURE__ */ R.jsx(Ra, { index: g })
|
|
2533
2534
|
] });
|
|
2534
2535
|
});
|
|
2535
|
-
|
|
2536
|
-
function
|
|
2536
|
+
Fa.displayName = "HeadlessModal";
|
|
2537
|
+
function Ca(t) {
|
|
2537
2538
|
var e, r, n = "";
|
|
2538
2539
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
2539
2540
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
2540
2541
|
var a = t.length;
|
|
2541
|
-
for (e = 0; e < a; e++) t[e] && (r =
|
|
2542
|
+
for (e = 0; e < a; e++) t[e] && (r = Ca(t[e])) && (n && (n += " "), n += r);
|
|
2542
2543
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
2543
2544
|
return n;
|
|
2544
2545
|
}
|
|
2545
2546
|
function Ht() {
|
|
2546
|
-
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e =
|
|
2547
|
+
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ca(t)) && (n && (n += " "), n += e);
|
|
2547
2548
|
return n;
|
|
2548
2549
|
}
|
|
2549
|
-
var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r,
|
|
2550
|
+
var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xr = (t, e, r) => (Fu(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
2550
2551
|
let Cu = class {
|
|
2551
2552
|
constructor() {
|
|
2552
|
-
|
|
2553
|
+
xr(this, "current", this.detect()), xr(this, "handoffState", "pending"), xr(this, "currentId", 0);
|
|
2553
2554
|
}
|
|
2554
2555
|
set(e) {
|
|
2555
2556
|
this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
|
|
@@ -2576,10 +2577,10 @@ let Cu = class {
|
|
|
2576
2577
|
return this.handoffState === "complete";
|
|
2577
2578
|
}
|
|
2578
2579
|
}, Ve = new Cu();
|
|
2579
|
-
function
|
|
2580
|
+
function Xt(t) {
|
|
2580
2581
|
return Ve.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
|
|
2581
2582
|
}
|
|
2582
|
-
function
|
|
2583
|
+
function Jt(t) {
|
|
2583
2584
|
typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
|
|
2584
2585
|
throw e;
|
|
2585
2586
|
}));
|
|
@@ -2597,7 +2598,7 @@ function Me() {
|
|
|
2597
2598
|
return e.add(() => clearTimeout(n));
|
|
2598
2599
|
}, microTask(...r) {
|
|
2599
2600
|
let n = { current: !0 };
|
|
2600
|
-
return
|
|
2601
|
+
return Jt(() => {
|
|
2601
2602
|
n.current && r[0]();
|
|
2602
2603
|
}), e.add(() => {
|
|
2603
2604
|
n.current = !1;
|
|
@@ -2625,7 +2626,7 @@ function Zr() {
|
|
|
2625
2626
|
return K(() => () => t.dispose(), [t]), t;
|
|
2626
2627
|
}
|
|
2627
2628
|
let ae = (t, e) => {
|
|
2628
|
-
Ve.isServer ? K(t, e) :
|
|
2629
|
+
Ve.isServer ? K(t, e) : Io(t, e);
|
|
2629
2630
|
};
|
|
2630
2631
|
function qe(t) {
|
|
2631
2632
|
let e = j(t);
|
|
@@ -2640,7 +2641,7 @@ let U = function(t) {
|
|
|
2640
2641
|
function Mu() {
|
|
2641
2642
|
return ie(Iu);
|
|
2642
2643
|
}
|
|
2643
|
-
function
|
|
2644
|
+
function kr(...t) {
|
|
2644
2645
|
return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
|
|
2645
2646
|
}
|
|
2646
2647
|
function Ce(t, e, ...r) {
|
|
@@ -2658,46 +2659,46 @@ function fe() {
|
|
|
2658
2659
|
}
|
|
2659
2660
|
function _u({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
|
|
2660
2661
|
u = u ?? Nu;
|
|
2661
|
-
let i =
|
|
2662
|
+
let i = Ia(e, t);
|
|
2662
2663
|
if (o) return Dt(i, r, n, l, u);
|
|
2663
2664
|
let d = a ?? 0;
|
|
2664
2665
|
if (d & 2) {
|
|
2665
|
-
let { static: s = !1, ...
|
|
2666
|
-
if (s) return Dt(
|
|
2666
|
+
let { static: s = !1, ...g } = i;
|
|
2667
|
+
if (s) return Dt(g, r, n, l, u);
|
|
2667
2668
|
}
|
|
2668
2669
|
if (d & 1) {
|
|
2669
|
-
let { unmount: s = !0, ...
|
|
2670
|
+
let { unmount: s = !0, ...g } = i;
|
|
2670
2671
|
return Ce(s ? 0 : 1, { 0() {
|
|
2671
2672
|
return null;
|
|
2672
2673
|
}, 1() {
|
|
2673
|
-
return Dt({ ...
|
|
2674
|
+
return Dt({ ...g, hidden: !0, style: { display: "none" } }, r, n, l, u);
|
|
2674
2675
|
} });
|
|
2675
2676
|
}
|
|
2676
2677
|
return Dt(i, r, n, l, u);
|
|
2677
2678
|
}
|
|
2678
2679
|
function Dt(t, e = {}, r, n, a) {
|
|
2679
|
-
let { as: o = r, children: l, refName: u = "ref", ...i } =
|
|
2680
|
+
let { as: o = r, children: l, refName: u = "ref", ...i } = Or(t, ["unmount", "static"]), d = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
|
|
2680
2681
|
"className" in i && i.className && typeof i.className == "function" && (i.className = i.className(e)), i["aria-labelledby"] && i["aria-labelledby"] === i.id && (i["aria-labelledby"] = void 0);
|
|
2681
|
-
let
|
|
2682
|
+
let g = {};
|
|
2682
2683
|
if (e) {
|
|
2683
2684
|
let v = !1, w = [];
|
|
2684
2685
|
for (let [f, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(f.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
|
|
2685
2686
|
if (v) {
|
|
2686
|
-
|
|
2687
|
-
for (let f of w)
|
|
2687
|
+
g["data-headlessui-state"] = w.join(" ");
|
|
2688
|
+
for (let f of w) g[`data-${f}`] = "";
|
|
2688
2689
|
}
|
|
2689
2690
|
}
|
|
2690
|
-
if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(
|
|
2691
|
-
if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(
|
|
2691
|
+
if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(g)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
|
|
2692
|
+
if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(g))).map((v) => ` - ${v}`).join(`
|
|
2692
2693
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
|
|
2693
2694
|
`)].join(`
|
|
2694
2695
|
`));
|
|
2695
2696
|
} else {
|
|
2696
|
-
let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) =>
|
|
2697
|
-
for (let m in
|
|
2698
|
-
return
|
|
2697
|
+
let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) => kr(w(...m), i.className) : kr(w, i.className), y = f ? { className: f } : {}, p = Ia(s.props, je(Or(i, ["ref"])));
|
|
2698
|
+
for (let m in g) m in p && delete g[m];
|
|
2699
|
+
return _o(s, Object.assign({}, p, g, d, { ref: a(s.ref, d.ref) }, y));
|
|
2699
2700
|
}
|
|
2700
|
-
return
|
|
2701
|
+
return Pr(o, Object.assign({}, Or(i, ["ref"]), o !== he && d, o !== he && g), s);
|
|
2701
2702
|
}
|
|
2702
2703
|
function Du() {
|
|
2703
2704
|
let t = j([]), e = ve((r) => {
|
|
@@ -2712,7 +2713,7 @@ function Nu(...t) {
|
|
|
2712
2713
|
for (let r of t) r != null && (typeof r == "function" ? r(e) : r.current = e);
|
|
2713
2714
|
};
|
|
2714
2715
|
}
|
|
2715
|
-
function
|
|
2716
|
+
function Ia(...t) {
|
|
2716
2717
|
if (t.length === 0) return {};
|
|
2717
2718
|
if (t.length === 1) return t[0];
|
|
2718
2719
|
let e = {}, r = {};
|
|
@@ -2732,14 +2733,14 @@ function Ca(...t) {
|
|
|
2732
2733
|
}
|
|
2733
2734
|
function le(t) {
|
|
2734
2735
|
var e;
|
|
2735
|
-
return Object.assign(
|
|
2736
|
+
return Object.assign(Hr(t), { displayName: (e = t.displayName) != null ? e : t.name });
|
|
2736
2737
|
}
|
|
2737
2738
|
function je(t) {
|
|
2738
2739
|
let e = Object.assign({}, t);
|
|
2739
2740
|
for (let r in e) e[r] === void 0 && delete e[r];
|
|
2740
2741
|
return e;
|
|
2741
2742
|
}
|
|
2742
|
-
function
|
|
2743
|
+
function Or(t, e = []) {
|
|
2743
2744
|
let r = Object.assign({}, t);
|
|
2744
2745
|
for (let n of e) n in r && delete r[n];
|
|
2745
2746
|
return r;
|
|
@@ -2751,9 +2752,9 @@ function ju(t, e) {
|
|
|
2751
2752
|
let { features: n = 1, ...a } = t, o = { ref: e, "aria-hidden": (n & 2) === 2 ? !0 : (r = a["aria-hidden"]) != null ? r : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
|
|
2752
2753
|
return fe()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ku, name: "Hidden" });
|
|
2753
2754
|
}
|
|
2754
|
-
let
|
|
2755
|
+
let jr = le(ju), Ma = Symbol();
|
|
2755
2756
|
function Lu(t, e = !0) {
|
|
2756
|
-
return Object.assign(t, { [
|
|
2757
|
+
return Object.assign(t, { [Ma]: e });
|
|
2757
2758
|
}
|
|
2758
2759
|
function Se(...t) {
|
|
2759
2760
|
let e = j(t);
|
|
@@ -2763,15 +2764,15 @@ function Se(...t) {
|
|
|
2763
2764
|
let r = U((n) => {
|
|
2764
2765
|
for (let a of e.current) a != null && (typeof a == "function" ? a(n) : a.current = n);
|
|
2765
2766
|
});
|
|
2766
|
-
return t.every((n) => n == null || (n == null ? void 0 : n[
|
|
2767
|
+
return t.every((n) => n == null || (n == null ? void 0 : n[Ma])) ? void 0 : r;
|
|
2767
2768
|
}
|
|
2768
2769
|
let en = ce(null);
|
|
2769
2770
|
en.displayName = "DescriptionContext";
|
|
2770
|
-
function
|
|
2771
|
+
function _a() {
|
|
2771
2772
|
let t = ie(en);
|
|
2772
2773
|
if (t === null) {
|
|
2773
2774
|
let e = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
2774
|
-
throw Error.captureStackTrace && Error.captureStackTrace(e,
|
|
2775
|
+
throw Error.captureStackTrace && Error.captureStackTrace(e, _a), e;
|
|
2775
2776
|
}
|
|
2776
2777
|
return t;
|
|
2777
2778
|
}
|
|
@@ -2787,13 +2788,13 @@ function Wu() {
|
|
|
2787
2788
|
}
|
|
2788
2789
|
let Uu = "p";
|
|
2789
2790
|
function Bu(t, e) {
|
|
2790
|
-
let r =
|
|
2791
|
+
let r = Ot(), n = Mu(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
|
|
2791
2792
|
ae(() => l.register(a), [a, l.register]);
|
|
2792
2793
|
let i = n || !1, d = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
|
|
2793
2794
|
return fe()({ ourProps: s, theirProps: o, slot: d, defaultTag: Uu, name: l.name || "Description" });
|
|
2794
2795
|
}
|
|
2795
2796
|
let Hu = le(Bu), Vu = Object.assign(Hu, {});
|
|
2796
|
-
var
|
|
2797
|
+
var Da = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Da || {});
|
|
2797
2798
|
let qu = ce(() => {
|
|
2798
2799
|
});
|
|
2799
2800
|
function Gu({ value: t, children: e }) {
|
|
@@ -2808,7 +2809,7 @@ let Yu = class extends Map {
|
|
|
2808
2809
|
return r === void 0 && (r = this.factory(e), this.set(e, r)), r;
|
|
2809
2810
|
}
|
|
2810
2811
|
};
|
|
2811
|
-
function
|
|
2812
|
+
function Na(t, e) {
|
|
2812
2813
|
let r = t(), n = /* @__PURE__ */ new Set();
|
|
2813
2814
|
return { getSnapshot() {
|
|
2814
2815
|
return r;
|
|
@@ -2819,10 +2820,10 @@ function Da(t, e) {
|
|
|
2819
2820
|
l && (r = l, n.forEach((u) => u()));
|
|
2820
2821
|
} };
|
|
2821
2822
|
}
|
|
2822
|
-
function
|
|
2823
|
-
return
|
|
2823
|
+
function ka(t) {
|
|
2824
|
+
return Do(t.subscribe, t.getSnapshot, t.getSnapshot);
|
|
2824
2825
|
}
|
|
2825
|
-
let zu = new Yu(() =>
|
|
2826
|
+
let zu = new Yu(() => Na(() => [], { ADD(t) {
|
|
2826
2827
|
return this.includes(t) ? this : [...this, t];
|
|
2827
2828
|
}, REMOVE(t) {
|
|
2828
2829
|
let e = this.indexOf(t);
|
|
@@ -2831,25 +2832,25 @@ let zu = new Yu(() => Da(() => [], { ADD(t) {
|
|
|
2831
2832
|
return r.splice(e, 1), r;
|
|
2832
2833
|
} }));
|
|
2833
2834
|
function ot(t, e) {
|
|
2834
|
-
let r = zu.get(e), n =
|
|
2835
|
+
let r = zu.get(e), n = Ot(), a = ka(r);
|
|
2835
2836
|
if (ae(() => {
|
|
2836
2837
|
if (t) return r.dispatch("ADD", n), () => r.dispatch("REMOVE", n);
|
|
2837
2838
|
}, [r, t]), !t) return !1;
|
|
2838
2839
|
let o = a.indexOf(n), l = a.length;
|
|
2839
2840
|
return o === -1 && (o = l, l += 1), o === l - 1;
|
|
2840
2841
|
}
|
|
2841
|
-
let
|
|
2842
|
+
let Lr = /* @__PURE__ */ new Map(), Et = /* @__PURE__ */ new Map();
|
|
2842
2843
|
function Kn(t) {
|
|
2843
2844
|
var e;
|
|
2844
|
-
let r = (e =
|
|
2845
|
-
return
|
|
2845
|
+
let r = (e = Et.get(t)) != null ? e : 0;
|
|
2846
|
+
return Et.set(t, r + 1), r !== 0 ? () => Xn(t) : (Lr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
|
|
2846
2847
|
}
|
|
2847
2848
|
function Xn(t) {
|
|
2848
2849
|
var e;
|
|
2849
|
-
let r = (e =
|
|
2850
|
-
if (r === 1 ?
|
|
2851
|
-
let n =
|
|
2852
|
-
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert,
|
|
2850
|
+
let r = (e = Et.get(t)) != null ? e : 1;
|
|
2851
|
+
if (r === 1 ? Et.delete(t) : Et.set(t, r - 1), r !== 1) return;
|
|
2852
|
+
let n = Lr.get(t);
|
|
2853
|
+
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Lr.delete(t));
|
|
2853
2854
|
}
|
|
2854
2855
|
function Ku(t, { allowed: e, disallowed: r } = {}) {
|
|
2855
2856
|
let n = ot(t, "inert-others");
|
|
@@ -2861,11 +2862,11 @@ function Ku(t, { allowed: e, disallowed: r } = {}) {
|
|
|
2861
2862
|
let u = (o = e == null ? void 0 : e()) != null ? o : [];
|
|
2862
2863
|
for (let i of u) {
|
|
2863
2864
|
if (!i) continue;
|
|
2864
|
-
let d =
|
|
2865
|
+
let d = Xt(i);
|
|
2865
2866
|
if (!d) continue;
|
|
2866
2867
|
let s = i.parentElement;
|
|
2867
2868
|
for (; s && s !== d.body; ) {
|
|
2868
|
-
for (let
|
|
2869
|
+
for (let g of s.children) u.some((v) => g.contains(v)) || l.add(Kn(g));
|
|
2869
2870
|
s = s.parentElement;
|
|
2870
2871
|
}
|
|
2871
2872
|
}
|
|
@@ -2894,17 +2895,17 @@ function Xu(t, e, r) {
|
|
|
2894
2895
|
}, [e, n, t]);
|
|
2895
2896
|
}
|
|
2896
2897
|
let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Ju = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
|
|
2897
|
-
var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}),
|
|
2898
|
+
var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Wr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Wr || {}), Qu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Qu || {});
|
|
2898
2899
|
function Zu(t = document.body) {
|
|
2899
2900
|
return t == null ? [] : Array.from(t.querySelectorAll(Gt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2900
2901
|
}
|
|
2901
2902
|
function es(t = document.body) {
|
|
2902
2903
|
return t == null ? [] : Array.from(t.querySelectorAll(Ju)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2903
2904
|
}
|
|
2904
|
-
var
|
|
2905
|
+
var ja = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ja || {});
|
|
2905
2906
|
function ts(t, e = 0) {
|
|
2906
2907
|
var r;
|
|
2907
|
-
return t === ((r =
|
|
2908
|
+
return t === ((r = Xt(t)) == null ? void 0 : r.body) ? !1 : Ce(e, { 0() {
|
|
2908
2909
|
return t.matches(Gt);
|
|
2909
2910
|
}, 1() {
|
|
2910
2911
|
let n = t;
|
|
@@ -2937,7 +2938,7 @@ function os(t, e = (r) => r) {
|
|
|
2937
2938
|
return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
2938
2939
|
});
|
|
2939
2940
|
}
|
|
2940
|
-
function
|
|
2941
|
+
function St(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
|
|
2941
2942
|
let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? os(t) : t : e & 64 ? es(t) : Zu(t);
|
|
2942
2943
|
a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((f) => f != null && "current" in f ? (f == null ? void 0 : f.current) === w : f === w))), n = n ?? o.activeElement;
|
|
2943
2944
|
let u = (() => {
|
|
@@ -2950,29 +2951,29 @@ function Et(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] }
|
|
|
2950
2951
|
if (e & 4) return Math.max(0, l.indexOf(n)) + 1;
|
|
2951
2952
|
if (e & 8) return l.length - 1;
|
|
2952
2953
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2953
|
-
})(), d = e & 32 ? { preventScroll: !0 } : {}, s = 0,
|
|
2954
|
+
})(), d = e & 32 ? { preventScroll: !0 } : {}, s = 0, g = l.length, v;
|
|
2954
2955
|
do {
|
|
2955
|
-
if (s >=
|
|
2956
|
+
if (s >= g || s + g <= 0) return 0;
|
|
2956
2957
|
let w = i + s;
|
|
2957
|
-
if (e & 16) w = (w +
|
|
2958
|
+
if (e & 16) w = (w + g) % g;
|
|
2958
2959
|
else {
|
|
2959
2960
|
if (w < 0) return 3;
|
|
2960
|
-
if (w >=
|
|
2961
|
+
if (w >= g) return 1;
|
|
2961
2962
|
}
|
|
2962
2963
|
v = l[w], v == null || v.focus(d), s += u;
|
|
2963
2964
|
} while (v !== o.activeElement);
|
|
2964
2965
|
return e & 6 && as(v) && v.select(), 2;
|
|
2965
2966
|
}
|
|
2966
|
-
function
|
|
2967
|
+
function La() {
|
|
2967
2968
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2968
2969
|
}
|
|
2969
2970
|
function is() {
|
|
2970
2971
|
return /Android/gi.test(window.navigator.userAgent);
|
|
2971
2972
|
}
|
|
2972
2973
|
function ls() {
|
|
2973
|
-
return
|
|
2974
|
+
return La() || is();
|
|
2974
2975
|
}
|
|
2975
|
-
function
|
|
2976
|
+
function yt(t, e, r, n) {
|
|
2976
2977
|
let a = qe(r);
|
|
2977
2978
|
K(() => {
|
|
2978
2979
|
if (!t) return;
|
|
@@ -2982,7 +2983,7 @@ function pt(t, e, r, n) {
|
|
|
2982
2983
|
return document.addEventListener(e, o, n), () => document.removeEventListener(e, o, n);
|
|
2983
2984
|
}, [t, e, n]);
|
|
2984
2985
|
}
|
|
2985
|
-
function
|
|
2986
|
+
function Wa(t, e, r, n) {
|
|
2986
2987
|
let a = qe(r);
|
|
2987
2988
|
K(() => {
|
|
2988
2989
|
if (!t) return;
|
|
@@ -2998,33 +2999,33 @@ function us(t, e, r) {
|
|
|
2998
2999
|
if (i.defaultPrevented) return;
|
|
2999
3000
|
let s = d(i);
|
|
3000
3001
|
if (s === null || !s.getRootNode().contains(s) || !s.isConnected) return;
|
|
3001
|
-
let
|
|
3002
|
+
let g = function v(w) {
|
|
3002
3003
|
return typeof w == "function" ? v(w()) : Array.isArray(w) || w instanceof Set ? w : [w];
|
|
3003
3004
|
}(e);
|
|
3004
|
-
for (let v of
|
|
3005
|
-
return !ts(s,
|
|
3005
|
+
for (let v of g) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
|
|
3006
|
+
return !ts(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
|
|
3006
3007
|
}, [a, e]), l = j(null);
|
|
3007
|
-
|
|
3008
|
+
yt(n, "pointerdown", (i) => {
|
|
3008
3009
|
var d, s;
|
|
3009
3010
|
l.current = ((s = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : s[0]) || i.target;
|
|
3010
|
-
}, !0),
|
|
3011
|
+
}, !0), yt(n, "mousedown", (i) => {
|
|
3011
3012
|
var d, s;
|
|
3012
3013
|
l.current = ((s = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : s[0]) || i.target;
|
|
3013
|
-
}, !0),
|
|
3014
|
+
}, !0), yt(n, "click", (i) => {
|
|
3014
3015
|
ls() || l.current && (o(i, () => l.current), l.current = null);
|
|
3015
3016
|
}, !0);
|
|
3016
3017
|
let u = j({ x: 0, y: 0 });
|
|
3017
|
-
|
|
3018
|
+
yt(n, "touchstart", (i) => {
|
|
3018
3019
|
u.current.x = i.touches[0].clientX, u.current.y = i.touches[0].clientY;
|
|
3019
|
-
}, !0),
|
|
3020
|
+
}, !0), yt(n, "touchend", (i) => {
|
|
3020
3021
|
let d = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
|
|
3021
3022
|
if (!(Math.abs(d.x - u.current.x) >= Jn || Math.abs(d.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
|
|
3022
|
-
}, !0),
|
|
3023
|
+
}, !0), Wa(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
3023
3024
|
}
|
|
3024
|
-
function
|
|
3025
|
-
return J(() =>
|
|
3025
|
+
function Tt(...t) {
|
|
3026
|
+
return J(() => Xt(...t), [...t]);
|
|
3026
3027
|
}
|
|
3027
|
-
function
|
|
3028
|
+
function Ua(t, e, r, n) {
|
|
3028
3029
|
let a = qe(r);
|
|
3029
3030
|
K(() => {
|
|
3030
3031
|
t = t ?? window;
|
|
@@ -3046,7 +3047,7 @@ function ss() {
|
|
|
3046
3047
|
} };
|
|
3047
3048
|
}
|
|
3048
3049
|
function cs() {
|
|
3049
|
-
return
|
|
3050
|
+
return La() ? { before({ doc: t, d: e, meta: r }) {
|
|
3050
3051
|
function n(a) {
|
|
3051
3052
|
return r.containers.flatMap((o) => o()).some((o) => o.contains(a));
|
|
3052
3053
|
}
|
|
@@ -3098,7 +3099,7 @@ function ds(t) {
|
|
|
3098
3099
|
for (let r of t) Object.assign(e, r(e));
|
|
3099
3100
|
return e;
|
|
3100
3101
|
}
|
|
3101
|
-
let Ue =
|
|
3102
|
+
let Ue = Na(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
|
|
3102
3103
|
var r;
|
|
3103
3104
|
let n = (r = this.get(t)) != null ? r : { doc: t, count: 0, d: Me(), meta: /* @__PURE__ */ new Set() };
|
|
3104
3105
|
return n.count++, n.meta.add(e), this.set(t, n), this;
|
|
@@ -3122,7 +3123,7 @@ Ue.subscribe(() => {
|
|
|
3122
3123
|
}
|
|
3123
3124
|
});
|
|
3124
3125
|
function ps(t, e, r = () => ({ containers: [] })) {
|
|
3125
|
-
let n =
|
|
3126
|
+
let n = ka(Ue), a = e ? n.get(e) : void 0, o = a ? a.count > 0 : !1;
|
|
3126
3127
|
return ae(() => {
|
|
3127
3128
|
if (!(!e || !t)) return Ue.dispatch("PUSH", e, r), () => Ue.dispatch("POP", e, r);
|
|
3128
3129
|
}, [t, e]), o;
|
|
@@ -3150,7 +3151,7 @@ function hs(t) {
|
|
|
3150
3151
|
return e;
|
|
3151
3152
|
}
|
|
3152
3153
|
function gs(t, e, r, n) {
|
|
3153
|
-
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1),
|
|
3154
|
+
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), g = Zr();
|
|
3154
3155
|
return ae(() => {
|
|
3155
3156
|
var v;
|
|
3156
3157
|
if (t) {
|
|
@@ -3167,7 +3168,7 @@ function gs(t, e, r, n) {
|
|
|
3167
3168
|
s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (d.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
|
|
3168
3169
|
} });
|
|
3169
3170
|
}
|
|
3170
|
-
}, [t, r, e,
|
|
3171
|
+
}, [t, r, e, g]), t ? [a, { closed: l(1), enter: l(2), leave: l(4), transition: l(2) || l(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
3171
3172
|
}
|
|
3172
3173
|
function bs(t, { prepare: e, run: r, done: n, inFlight: a }) {
|
|
3173
3174
|
let o = Me();
|
|
@@ -3208,17 +3209,17 @@ function tn(t, e) {
|
|
|
3208
3209
|
}
|
|
3209
3210
|
}, [n, ...e]);
|
|
3210
3211
|
}
|
|
3211
|
-
let
|
|
3212
|
-
|
|
3212
|
+
let Qt = ce(null);
|
|
3213
|
+
Qt.displayName = "OpenClosedContext";
|
|
3213
3214
|
var me = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(me || {});
|
|
3214
|
-
function
|
|
3215
|
-
return ie(
|
|
3215
|
+
function Zt() {
|
|
3216
|
+
return ie(Qt);
|
|
3216
3217
|
}
|
|
3217
3218
|
function Ss({ value: t, children: e }) {
|
|
3218
|
-
return A.createElement(
|
|
3219
|
+
return A.createElement(Qt.Provider, { value: t }, e);
|
|
3219
3220
|
}
|
|
3220
3221
|
function xs({ children: t }) {
|
|
3221
|
-
return A.createElement(
|
|
3222
|
+
return A.createElement(Qt.Provider, { value: null }, t);
|
|
3222
3223
|
}
|
|
3223
3224
|
function Os(t) {
|
|
3224
3225
|
function e() {
|
|
@@ -3235,34 +3236,34 @@ Os(() => {
|
|
|
3235
3236
|
}
|
|
3236
3237
|
window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
|
|
3237
3238
|
});
|
|
3238
|
-
function
|
|
3239
|
+
function Ba(t) {
|
|
3239
3240
|
let e = U(t), r = j(!1);
|
|
3240
3241
|
K(() => (r.current = !1, () => {
|
|
3241
|
-
r.current = !0,
|
|
3242
|
+
r.current = !0, Jt(() => {
|
|
3242
3243
|
r.current && e();
|
|
3243
3244
|
});
|
|
3244
3245
|
}), [e]);
|
|
3245
3246
|
}
|
|
3246
3247
|
function Ps() {
|
|
3247
3248
|
let t = typeof document > "u";
|
|
3248
|
-
return "useSyncExternalStore" in
|
|
3249
|
+
return "useSyncExternalStore" in ht ? ((e) => e.useSyncExternalStore)(ht)(() => () => {
|
|
3249
3250
|
}, () => !1, () => !t) : !1;
|
|
3250
3251
|
}
|
|
3251
|
-
function
|
|
3252
|
-
let t = Ps(), [e, r] =
|
|
3253
|
-
return e && Ve.isHandoffComplete === !1 && r(!1),
|
|
3252
|
+
function $t() {
|
|
3253
|
+
let t = Ps(), [e, r] = ht.useState(Ve.isHandoffComplete);
|
|
3254
|
+
return e && Ve.isHandoffComplete === !1 && r(!1), ht.useEffect(() => {
|
|
3254
3255
|
e !== !0 && r(!0);
|
|
3255
|
-
}, [e]),
|
|
3256
|
+
}, [e]), ht.useEffect(() => Ve.handoff(), []), t ? !1 : e;
|
|
3256
3257
|
}
|
|
3257
|
-
let
|
|
3258
|
+
let Ha = ce(!1);
|
|
3258
3259
|
function As() {
|
|
3259
|
-
return ie(
|
|
3260
|
+
return ie(Ha);
|
|
3260
3261
|
}
|
|
3261
3262
|
function ea(t) {
|
|
3262
|
-
return A.createElement(
|
|
3263
|
+
return A.createElement(Ha.Provider, { value: t.force }, t.children);
|
|
3263
3264
|
}
|
|
3264
3265
|
function Ts(t) {
|
|
3265
|
-
let e = As(), r = ie(
|
|
3266
|
+
let e = As(), r = ie(qa), n = Tt(t), [a, o] = Q(() => {
|
|
3266
3267
|
var l;
|
|
3267
3268
|
if (!e && r !== null) return (l = r.current) != null ? l : null;
|
|
3268
3269
|
if (Ve.isServer) return null;
|
|
@@ -3278,48 +3279,48 @@ function Ts(t) {
|
|
|
3278
3279
|
e || r !== null && o(r.current);
|
|
3279
3280
|
}, [r, o, e]), a;
|
|
3280
3281
|
}
|
|
3281
|
-
let
|
|
3282
|
-
let r = t, n = j(null), a = Se(Lu((
|
|
3283
|
-
n.current =
|
|
3284
|
-
}), e), o =
|
|
3285
|
-
var
|
|
3286
|
-
return Ve.isServer ? null : (
|
|
3287
|
-
}), i = ie(
|
|
3282
|
+
let Va = he, $s = le(function(t, e) {
|
|
3283
|
+
let r = t, n = j(null), a = Se(Lu((g) => {
|
|
3284
|
+
n.current = g;
|
|
3285
|
+
}), e), o = Tt(n), l = Ts(n), [u] = Q(() => {
|
|
3286
|
+
var g;
|
|
3287
|
+
return Ve.isServer ? null : (g = o == null ? void 0 : o.createElement("div")) != null ? g : null;
|
|
3288
|
+
}), i = ie(Ur), d = $t();
|
|
3288
3289
|
ae(() => {
|
|
3289
3290
|
!l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
|
|
3290
3291
|
}, [l, u]), ae(() => {
|
|
3291
3292
|
if (u && i) return i.register(u);
|
|
3292
|
-
}, [i, u]),
|
|
3293
|
-
var
|
|
3294
|
-
!l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((
|
|
3293
|
+
}, [i, u]), Ba(() => {
|
|
3294
|
+
var g;
|
|
3295
|
+
!l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l)));
|
|
3295
3296
|
});
|
|
3296
3297
|
let s = fe();
|
|
3297
|
-
return d ? !l || !u ? null :
|
|
3298
|
+
return d ? !l || !u ? null : jo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
|
|
3298
3299
|
});
|
|
3299
3300
|
function Rs(t, e) {
|
|
3300
3301
|
let r = Se(e), { enabled: n = !0, ...a } = t, o = fe();
|
|
3301
|
-
return n ? A.createElement($s, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag:
|
|
3302
|
+
return n ? A.createElement($s, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
|
|
3302
3303
|
}
|
|
3303
|
-
let Fs = he,
|
|
3304
|
+
let Fs = he, qa = ce(null);
|
|
3304
3305
|
function Cs(t, e) {
|
|
3305
3306
|
let { target: r, ...n } = t, a = { ref: Se(e) }, o = fe();
|
|
3306
|
-
return A.createElement(
|
|
3307
|
+
return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Fs, name: "Popover.Group" }));
|
|
3307
3308
|
}
|
|
3308
|
-
let
|
|
3309
|
+
let Ur = ce(null);
|
|
3309
3310
|
function Is() {
|
|
3310
|
-
let t = ie(
|
|
3311
|
+
let t = ie(Ur), e = j([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
|
|
3311
3312
|
let l = e.current.indexOf(o);
|
|
3312
3313
|
l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
|
|
3313
3314
|
}), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
|
|
3314
3315
|
return [e, J(() => function({ children: o }) {
|
|
3315
|
-
return A.createElement(
|
|
3316
|
+
return A.createElement(Ur.Provider, { value: a }, o);
|
|
3316
3317
|
}, [a])];
|
|
3317
3318
|
}
|
|
3318
|
-
let Ms = le(Rs),
|
|
3319
|
+
let Ms = le(Rs), Ga = le(Cs), _s = Object.assign(Ms, { Group: Ga });
|
|
3319
3320
|
function Ds(t, e = typeof document < "u" ? document.defaultView : null, r) {
|
|
3320
3321
|
let n = ot(t, "escape");
|
|
3321
|
-
|
|
3322
|
-
n && (a.defaultPrevented || a.key ===
|
|
3322
|
+
Ua(e, "keydown", (a) => {
|
|
3323
|
+
n && (a.defaultPrevented || a.key === Da.Escape && r(a));
|
|
3323
3324
|
});
|
|
3324
3325
|
}
|
|
3325
3326
|
function Ns() {
|
|
@@ -3334,7 +3335,7 @@ function Ns() {
|
|
|
3334
3335
|
}, [e]), r;
|
|
3335
3336
|
}
|
|
3336
3337
|
function ks({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
|
|
3337
|
-
let n =
|
|
3338
|
+
let n = Tt(r), a = U(() => {
|
|
3338
3339
|
var o, l;
|
|
3339
3340
|
let u = [];
|
|
3340
3341
|
for (let i of t) i !== null && (i instanceof HTMLElement ? u.push(i) : "current" in i && i.current instanceof HTMLElement && u.push(i.current));
|
|
@@ -3344,22 +3345,22 @@ function ks({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
|
|
|
3344
3345
|
});
|
|
3345
3346
|
return { resolveContainers: a, contains: U((o) => a().some((l) => l.contains(o))) };
|
|
3346
3347
|
}
|
|
3347
|
-
let
|
|
3348
|
+
let Ya = ce(null);
|
|
3348
3349
|
function ta({ children: t, node: e }) {
|
|
3349
|
-
let [r, n] = Q(null), a =
|
|
3350
|
-
return A.createElement(
|
|
3350
|
+
let [r, n] = Q(null), a = za(e ?? r);
|
|
3351
|
+
return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(jr, { features: qt.Hidden, ref: (o) => {
|
|
3351
3352
|
var l, u;
|
|
3352
3353
|
if (o) {
|
|
3353
|
-
for (let i of (u = (l =
|
|
3354
|
+
for (let i of (u = (l = Xt(o)) == null ? void 0 : l.querySelectorAll("html > *, body > *")) != null ? u : []) if (i !== document.body && i !== document.head && i instanceof HTMLElement && i != null && i.contains(o)) {
|
|
3354
3355
|
n(i);
|
|
3355
3356
|
break;
|
|
3356
3357
|
}
|
|
3357
3358
|
}
|
|
3358
3359
|
} }));
|
|
3359
3360
|
}
|
|
3360
|
-
function
|
|
3361
|
+
function za(t = null) {
|
|
3361
3362
|
var e;
|
|
3362
|
-
return (e = ie(
|
|
3363
|
+
return (e = ie(Ya)) != null ? e : t;
|
|
3363
3364
|
}
|
|
3364
3365
|
function rn() {
|
|
3365
3366
|
let t = j(!1);
|
|
@@ -3367,14 +3368,14 @@ function rn() {
|
|
|
3367
3368
|
t.current = !1;
|
|
3368
3369
|
}), []), t;
|
|
3369
3370
|
}
|
|
3370
|
-
var
|
|
3371
|
+
var mt = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(mt || {});
|
|
3371
3372
|
function js() {
|
|
3372
3373
|
let t = j(0);
|
|
3373
|
-
return
|
|
3374
|
+
return Wa(!0, "keydown", (e) => {
|
|
3374
3375
|
e.key === "Tab" && (t.current = e.shiftKey ? 1 : 0);
|
|
3375
3376
|
}, !0), t;
|
|
3376
3377
|
}
|
|
3377
|
-
function
|
|
3378
|
+
function Ka(t) {
|
|
3378
3379
|
if (!t) return /* @__PURE__ */ new Set();
|
|
3379
3380
|
if (typeof t == "function") return new Set(t());
|
|
3380
3381
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -3385,38 +3386,38 @@ let Ls = "div";
|
|
|
3385
3386
|
var We = ((t) => (t[t.None = 0] = "None", t[t.InitialFocus = 1] = "InitialFocus", t[t.TabLock = 2] = "TabLock", t[t.FocusLock = 4] = "FocusLock", t[t.RestoreFocus = 8] = "RestoreFocus", t[t.AutoFocus = 16] = "AutoFocus", t))(We || {});
|
|
3386
3387
|
function Ws(t, e) {
|
|
3387
3388
|
let r = j(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
|
|
3388
|
-
|
|
3389
|
-
let d =
|
|
3389
|
+
$t() || (u = 0);
|
|
3390
|
+
let d = Tt(r);
|
|
3390
3391
|
Vs(u, { ownerDocument: d });
|
|
3391
3392
|
let s = qs(u, { ownerDocument: d, container: r, initialFocus: a, initialFocusFallback: o });
|
|
3392
3393
|
Gs(u, { ownerDocument: d, container: r, containers: l, previousActiveElement: s });
|
|
3393
|
-
let
|
|
3394
|
+
let g = js(), v = U((h) => {
|
|
3394
3395
|
let b = r.current;
|
|
3395
3396
|
b && ((S) => S())(() => {
|
|
3396
|
-
Ce(
|
|
3397
|
-
|
|
3398
|
-
}, [
|
|
3399
|
-
|
|
3397
|
+
Ce(g.current, { [mt.Forwards]: () => {
|
|
3398
|
+
St(b, Pe.First, { skipElements: [h.relatedTarget, o] });
|
|
3399
|
+
}, [mt.Backwards]: () => {
|
|
3400
|
+
St(b, Pe.Last, { skipElements: [h.relatedTarget, o] });
|
|
3400
3401
|
} });
|
|
3401
3402
|
});
|
|
3402
|
-
}), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(
|
|
3403
|
-
|
|
3403
|
+
}), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(h) {
|
|
3404
|
+
h.key == "Tab" && (y.current = !0, f.requestAnimationFrame(() => {
|
|
3404
3405
|
y.current = !1;
|
|
3405
3406
|
}));
|
|
3406
|
-
}, onBlur(
|
|
3407
|
+
}, onBlur(h) {
|
|
3407
3408
|
if (!(u & 4)) return;
|
|
3408
|
-
let b =
|
|
3409
|
+
let b = Ka(l);
|
|
3409
3410
|
r.current instanceof HTMLElement && b.add(r.current);
|
|
3410
|
-
let S =
|
|
3411
|
-
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (
|
|
3411
|
+
let S = h.relatedTarget;
|
|
3412
|
+
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? St(r.current, Ce(g.current, { [mt.Forwards]: () => Pe.Next, [mt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Ae(h.target)));
|
|
3412
3413
|
} }, m = fe();
|
|
3413
|
-
return A.createElement(A.Fragment, null, w && A.createElement(
|
|
3414
|
+
return A.createElement(A.Fragment, null, w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ls, name: "FocusTrap" }), w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
|
|
3414
3415
|
}
|
|
3415
3416
|
let Us = le(Ws), Bs = Object.assign(Us, { features: We });
|
|
3416
3417
|
function Hs(t = !0) {
|
|
3417
3418
|
let e = j($e.slice());
|
|
3418
3419
|
return tn(([r], [n]) => {
|
|
3419
|
-
n === !0 && r === !1 &&
|
|
3420
|
+
n === !0 && r === !1 && Jt(() => {
|
|
3420
3421
|
e.current.splice(0);
|
|
3421
3422
|
}), n === !1 && r === !0 && (e.current = $e.slice());
|
|
3422
3423
|
}, [t, $e, e]), U(() => {
|
|
@@ -3428,7 +3429,7 @@ function Vs(t, { ownerDocument: e }) {
|
|
|
3428
3429
|
let r = !!(t & 8), n = Hs(r);
|
|
3429
3430
|
tn(() => {
|
|
3430
3431
|
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
|
|
3431
|
-
}, [r]),
|
|
3432
|
+
}, [r]), Ba(() => {
|
|
3432
3433
|
r && Ae(n());
|
|
3433
3434
|
});
|
|
3434
3435
|
}
|
|
@@ -3441,7 +3442,7 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3441
3442
|
return;
|
|
3442
3443
|
}
|
|
3443
3444
|
let i = r.current;
|
|
3444
|
-
i &&
|
|
3445
|
+
i && Jt(() => {
|
|
3445
3446
|
if (!u.current) return;
|
|
3446
3447
|
let d = e == null ? void 0 : e.activeElement;
|
|
3447
3448
|
if (n != null && n.current) {
|
|
@@ -3456,8 +3457,8 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3456
3457
|
if (n != null && n.current) Ae(n.current);
|
|
3457
3458
|
else {
|
|
3458
3459
|
if (t & 16) {
|
|
3459
|
-
if (
|
|
3460
|
-
} else if (
|
|
3460
|
+
if (St(i, Pe.First | Pe.AutoFocus) !== Wr.Error) return;
|
|
3461
|
+
} else if (St(i, Pe.First) !== Wr.Error) return;
|
|
3461
3462
|
if (a != null && a.current && (Ae(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
|
|
3462
3463
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
3463
3464
|
}
|
|
@@ -3467,43 +3468,43 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3467
3468
|
}
|
|
3468
3469
|
function Gs(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
|
|
3469
3470
|
let o = rn(), l = !!(t & 4);
|
|
3470
|
-
|
|
3471
|
+
Ua(e == null ? void 0 : e.defaultView, "focus", (u) => {
|
|
3471
3472
|
if (!l || !o.current) return;
|
|
3472
|
-
let i =
|
|
3473
|
+
let i = Ka(n);
|
|
3473
3474
|
r.current instanceof HTMLElement && i.add(r.current);
|
|
3474
3475
|
let d = a.current;
|
|
3475
3476
|
if (!d) return;
|
|
3476
3477
|
let s = u.target;
|
|
3477
|
-
s && s instanceof HTMLElement ?
|
|
3478
|
+
s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(d)) : Ae(a.current);
|
|
3478
3479
|
}, !0);
|
|
3479
3480
|
}
|
|
3480
|
-
function
|
|
3481
|
+
function Xa(t, e) {
|
|
3481
3482
|
for (let r of t) if (r.contains(e)) return !0;
|
|
3482
3483
|
return !1;
|
|
3483
3484
|
}
|
|
3484
|
-
function
|
|
3485
|
+
function Ja(t) {
|
|
3485
3486
|
var e;
|
|
3486
|
-
return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e :
|
|
3487
|
+
return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e : Za) !== he || A.Children.count(t.children) === 1;
|
|
3487
3488
|
}
|
|
3488
|
-
let
|
|
3489
|
-
|
|
3489
|
+
let er = ce(null);
|
|
3490
|
+
er.displayName = "TransitionContext";
|
|
3490
3491
|
var Ys = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(Ys || {});
|
|
3491
3492
|
function zs() {
|
|
3492
|
-
let t = ie(
|
|
3493
|
+
let t = ie(er);
|
|
3493
3494
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3494
3495
|
return t;
|
|
3495
3496
|
}
|
|
3496
3497
|
function Ks() {
|
|
3497
|
-
let t = ie(
|
|
3498
|
+
let t = ie(tr);
|
|
3498
3499
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3499
3500
|
return t;
|
|
3500
3501
|
}
|
|
3501
|
-
let
|
|
3502
|
-
|
|
3503
|
-
function
|
|
3504
|
-
return "children" in t ?
|
|
3502
|
+
let tr = ce(null);
|
|
3503
|
+
tr.displayName = "NestingContext";
|
|
3504
|
+
function rr(t) {
|
|
3505
|
+
return "children" in t ? rr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
|
|
3505
3506
|
}
|
|
3506
|
-
function
|
|
3507
|
+
function Qa(t, e) {
|
|
3507
3508
|
let r = qe(t), n = j([]), a = rn(), o = Zr(), l = U((w, f = Fe.Hidden) => {
|
|
3508
3509
|
let y = n.current.findIndex(({ el: p }) => p === w);
|
|
3509
3510
|
y !== -1 && (Ce(f, { [Fe.Unmount]() {
|
|
@@ -3512,16 +3513,16 @@ function Ja(t, e) {
|
|
|
3512
3513
|
n.current[y].state = "hidden";
|
|
3513
3514
|
} }), o.microTask(() => {
|
|
3514
3515
|
var p;
|
|
3515
|
-
!
|
|
3516
|
+
!rr(n) && a.current && ((p = r.current) == null || p.call(r));
|
|
3516
3517
|
}));
|
|
3517
3518
|
}), u = U((w) => {
|
|
3518
3519
|
let f = n.current.find(({ el: y }) => y === w);
|
|
3519
3520
|
return f ? f.state !== "visible" && (f.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
|
|
3520
|
-
}), i = j([]), d = j(Promise.resolve()), s = j({ enter: [], leave: [] }),
|
|
3521
|
+
}), i = j([]), d = j(Promise.resolve()), s = j({ enter: [], leave: [] }), g = U((w, f, y) => {
|
|
3521
3522
|
i.current.splice(0), e && (e.chains.current[f] = e.chains.current[f].filter(([p]) => p !== w)), e == null || e.chains.current[f].push([w, new Promise((p) => {
|
|
3522
3523
|
i.current.push(p);
|
|
3523
3524
|
})]), e == null || e.chains.current[f].push([w, new Promise((p) => {
|
|
3524
|
-
Promise.all(s.current[f].map(([m,
|
|
3525
|
+
Promise.all(s.current[f].map(([m, h]) => h)).then(() => p());
|
|
3525
3526
|
})]), f === "enter" ? d.current = d.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(f)) : y(f);
|
|
3526
3527
|
}), v = U((w, f, y) => {
|
|
3527
3528
|
Promise.all(s.current[f].splice(0).map(([p, m]) => m)).then(() => {
|
|
@@ -3529,12 +3530,12 @@ function Ja(t, e) {
|
|
|
3529
3530
|
(p = i.current.shift()) == null || p();
|
|
3530
3531
|
}).then(() => y(f));
|
|
3531
3532
|
});
|
|
3532
|
-
return J(() => ({ children: n, register: u, unregister: l, onStart:
|
|
3533
|
+
return J(() => ({ children: n, register: u, unregister: l, onStart: g, onStop: v, wait: d, chains: s }), [u, l, n, g, v, s, d]);
|
|
3533
3534
|
}
|
|
3534
|
-
let
|
|
3535
|
+
let Za = he, eo = Vt.RenderStrategy;
|
|
3535
3536
|
function Xs(t, e) {
|
|
3536
3537
|
var r, n;
|
|
3537
|
-
let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: d, enterFrom: s, enterTo:
|
|
3538
|
+
let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: d, enterFrom: s, enterTo: g, entered: v, leave: w, leaveFrom: f, leaveTo: y, ...p } = t, [m, h] = Q(null), b = j(null), S = Ja(t), O = Se(...S ? [b, e, h] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = zs(), [k, Y] = Q(M ? "visible" : "hidden"), V = Ks(), { register: $, unregister: T } = V;
|
|
3538
3539
|
ae(() => $(b), [$, b]), ae(() => {
|
|
3539
3540
|
if (_ === Fe.Hidden && b.current) {
|
|
3540
3541
|
if (M && k !== "visible") {
|
|
@@ -3544,11 +3545,11 @@ function Xs(t, e) {
|
|
|
3544
3545
|
return Ce(k, { hidden: () => T(b), visible: () => $(b) });
|
|
3545
3546
|
}
|
|
3546
3547
|
}, [k, b, $, T, M, _]);
|
|
3547
|
-
let D =
|
|
3548
|
+
let D = $t();
|
|
3548
3549
|
ae(() => {
|
|
3549
3550
|
if (S && D && k === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3550
3551
|
}, [b, k, D, S]);
|
|
3551
|
-
let ue = H && !W, de = W && M && H, ge = j(!1), te =
|
|
3552
|
+
let ue = H && !W, de = W && M && H, ge = j(!1), te = Qa(() => {
|
|
3552
3553
|
ge.current || (Y("hidden"), T(b));
|
|
3553
3554
|
}, V), pe = U((Ne) => {
|
|
3554
3555
|
ge.current = !0;
|
|
@@ -3560,55 +3561,55 @@ function Xs(t, e) {
|
|
|
3560
3561
|
let xe = Ne ? "enter" : "leave";
|
|
3561
3562
|
ge.current = !1, te.onStop(b, xe, (Oe) => {
|
|
3562
3563
|
Oe === "enter" ? l == null || l() : Oe === "leave" && (i == null || i());
|
|
3563
|
-
}), xe === "leave" && !
|
|
3564
|
+
}), xe === "leave" && !rr(te) && (Y("hidden"), T(b));
|
|
3564
3565
|
});
|
|
3565
3566
|
K(() => {
|
|
3566
3567
|
S && a || (pe(M), q(M));
|
|
3567
3568
|
}, [M, S, a]);
|
|
3568
|
-
let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }),
|
|
3569
|
+
let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }), ar = je({ ref: O, className: ((n = kr(p.className, de && d, de && s, ee.enter && d, ee.enter && ee.closed && s, ee.enter && !ee.closed && g, ee.leave && w, ee.leave && !ee.closed && f, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...hs(ee) }), De = 0;
|
|
3569
3570
|
k === "visible" && (De |= me.Open), k === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
|
|
3570
3571
|
let lt = fe();
|
|
3571
|
-
return A.createElement(
|
|
3572
|
+
return A.createElement(tr.Provider, { value: te }, A.createElement(Ss, { value: De }, lt({ ourProps: ar, theirProps: p, defaultTag: Za, features: eo, visible: k === "visible", name: "Transition.Child" })));
|
|
3572
3573
|
}
|
|
3573
3574
|
function Js(t, e) {
|
|
3574
|
-
let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = j(null), u =
|
|
3575
|
-
|
|
3576
|
-
let d =
|
|
3575
|
+
let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = j(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
|
|
3576
|
+
$t();
|
|
3577
|
+
let d = Zt();
|
|
3577
3578
|
if (r === void 0 && d !== null && (r = (d & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3578
|
-
let [s,
|
|
3579
|
-
r ||
|
|
3579
|
+
let [s, g] = Q(r ? "visible" : "hidden"), v = Qa(() => {
|
|
3580
|
+
r || g("hidden");
|
|
3580
3581
|
}), [w, f] = Q(!0), y = j([r]);
|
|
3581
3582
|
ae(() => {
|
|
3582
3583
|
w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), f(!1));
|
|
3583
3584
|
}, [y, r]);
|
|
3584
3585
|
let p = J(() => ({ show: r, appear: n, initial: w }), [r, n, w]);
|
|
3585
3586
|
ae(() => {
|
|
3586
|
-
r ?
|
|
3587
|
+
r ? g("visible") : !rr(v) && l.current !== null && g("hidden");
|
|
3587
3588
|
}, [r, v]);
|
|
3588
|
-
let m = { unmount: a },
|
|
3589
|
+
let m = { unmount: a }, h = U(() => {
|
|
3589
3590
|
var O;
|
|
3590
3591
|
w && f(!1), (O = t.beforeEnter) == null || O.call(t);
|
|
3591
3592
|
}), b = U(() => {
|
|
3592
3593
|
var O;
|
|
3593
3594
|
w && f(!1), (O = t.beforeLeave) == null || O.call(t);
|
|
3594
3595
|
}), S = fe();
|
|
3595
|
-
return A.createElement(
|
|
3596
|
+
return A.createElement(tr.Provider, { value: v }, A.createElement(er.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: h, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
|
|
3596
3597
|
}
|
|
3597
3598
|
function Qs(t, e) {
|
|
3598
|
-
let r = ie(
|
|
3599
|
-
return A.createElement(A.Fragment, null, !r && n ? A.createElement(
|
|
3599
|
+
let r = ie(er) !== null, n = Zt() !== null;
|
|
3600
|
+
return A.createElement(A.Fragment, null, !r && n ? A.createElement(Br, { ref: e, ...t }) : A.createElement(to, { ref: e, ...t }));
|
|
3600
3601
|
}
|
|
3601
|
-
let
|
|
3602
|
+
let Br = le(Js), to = le(Xs), it = le(Qs), ro = Object.assign(Br, { Child: it, Root: Br });
|
|
3602
3603
|
var Zs = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Zs || {}), ec = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(ec || {});
|
|
3603
3604
|
let tc = { 0(t, e) {
|
|
3604
3605
|
return t.titleId === e.id ? t : { ...t, titleId: e.id };
|
|
3605
3606
|
} }, nn = ce(null);
|
|
3606
3607
|
nn.displayName = "DialogContext";
|
|
3607
|
-
function
|
|
3608
|
+
function nr(t) {
|
|
3608
3609
|
let e = ie(nn);
|
|
3609
3610
|
if (e === null) {
|
|
3610
3611
|
let r = new Error(`<${t} /> is missing a parent <Dialog /> component.`);
|
|
3611
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
3612
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, nr), r;
|
|
3612
3613
|
}
|
|
3613
3614
|
return e;
|
|
3614
3615
|
}
|
|
@@ -3616,16 +3617,16 @@ function rc(t, e) {
|
|
|
3616
3617
|
return Ce(e.type, tc, t, e);
|
|
3617
3618
|
}
|
|
3618
3619
|
let ra = le(function(t, e) {
|
|
3619
|
-
let r =
|
|
3620
|
+
let r = Ot(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: d = !1, unmount: s = !1, ...g } = t, v = j(!1);
|
|
3620
3621
|
u = function() {
|
|
3621
3622
|
return u === "dialog" || u === "alertdialog" ? u : (v.current || (v.current = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
3622
3623
|
}();
|
|
3623
|
-
let w =
|
|
3624
|
+
let w = Zt();
|
|
3624
3625
|
a === void 0 && w !== null && (a = (w & me.Open) === me.Open);
|
|
3625
|
-
let f = j(null), y = Se(f, e), p =
|
|
3626
|
+
let f = j(null), y = Se(f, e), p = Tt(f), m = a ? 0 : 1, [h, b] = No(rc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = $t() ? m === 0 : !1, [M, W] = Is(), H = { get current() {
|
|
3626
3627
|
var q;
|
|
3627
|
-
return (q =
|
|
3628
|
-
} }, k =
|
|
3628
|
+
return (q = h.panelRef.current) != null ? q : f.current;
|
|
3629
|
+
} }, k = za(), { resolveContainers: Y } = ks({ mainTreeNode: k, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
|
|
3629
3630
|
Ku(d || V ? !1 : _, { allowed: U(() => {
|
|
3630
3631
|
var q, _e;
|
|
3631
3632
|
return [(_e = (q = f.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
|
|
@@ -3637,35 +3638,35 @@ let ra = le(function(t, e) {
|
|
|
3637
3638
|
}), Ds(_, p == null ? void 0 : p.defaultView, (q) => {
|
|
3638
3639
|
q.preventDefault(), q.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), S();
|
|
3639
3640
|
}), ys(d || V ? !1 : _, p, Y), Xu(_, f, S);
|
|
3640
|
-
let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s },
|
|
3641
|
+
let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, h], [m, h, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), de = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": d ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": h.titleId, "aria-describedby": $, unmount: s }, ge = !Ns(), te = We.None;
|
|
3641
3642
|
_ && !d && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
|
|
3642
3643
|
let pe = fe();
|
|
3643
|
-
return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(
|
|
3644
|
+
return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(Ga, { target: f }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Bs, { initialFocus: l, initialFocusFallback: f, containers: Y, features: te }, A.createElement(Gu, { value: S }, pe({ ourProps: de, theirProps: g, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
|
|
3644
3645
|
}), nc = "div", ac = Vt.RenderStrategy | Vt.Static;
|
|
3645
3646
|
function oc(t, e) {
|
|
3646
|
-
let { transition: r = !1, open: n, ...a } = t, o =
|
|
3647
|
+
let { transition: r = !1, open: n, ...a } = t, o = Zt(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
|
|
3647
3648
|
if (!l && !u) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
3648
3649
|
if (!l) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
3649
3650
|
if (!u) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
3650
3651
|
if (!o && typeof t.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);
|
|
3651
3652
|
if (typeof t.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);
|
|
3652
|
-
return (n !== void 0 || r) && !a.static ? A.createElement(ta, null, A.createElement(
|
|
3653
|
+
return (n !== void 0 || r) && !a.static ? A.createElement(ta, null, A.createElement(ro, { show: n, transition: r, unmount: a.unmount }, A.createElement(ra, { ref: e, ...a }))) : A.createElement(ta, null, A.createElement(ra, { ref: e, open: n, ...a }));
|
|
3653
3654
|
}
|
|
3654
3655
|
let ic = "div";
|
|
3655
3656
|
function lc(t, e) {
|
|
3656
|
-
let r =
|
|
3657
|
+
let r = Ot(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = nr("Dialog.Panel"), d = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), g = U((p) => {
|
|
3657
3658
|
p.stopPropagation();
|
|
3658
|
-
}), v = { ref: d, id: n, onClick:
|
|
3659
|
+
}), v = { ref: d, id: n, onClick: g }, w = a ? it : he, f = a ? { unmount: u } : {}, y = fe();
|
|
3659
3660
|
return A.createElement(w, { ...f }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: ic, name: "Dialog.Panel" }));
|
|
3660
3661
|
}
|
|
3661
3662
|
let uc = "div";
|
|
3662
3663
|
function sc(t, e) {
|
|
3663
|
-
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] =
|
|
3664
|
+
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = nr("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, d = r ? { unmount: o } : {}, s = fe();
|
|
3664
3665
|
return A.createElement(i, { ...d }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: uc, name: "Dialog.Backdrop" }));
|
|
3665
3666
|
}
|
|
3666
3667
|
let cc = "h2";
|
|
3667
3668
|
function fc(t, e) {
|
|
3668
|
-
let r =
|
|
3669
|
+
let r = Ot(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = nr("Dialog.Title"), u = Se(e);
|
|
3669
3670
|
K(() => (l(n), () => l(null)), [n, l]);
|
|
3670
3671
|
let i = J(() => ({ open: o === 0 }), [o]), d = { ref: u, id: n };
|
|
3671
3672
|
return fe()({ ourProps: d, theirProps: a, slot: i, defaultTag: cc, name: "Dialog.Title" });
|
|
@@ -3673,7 +3674,7 @@ function fc(t, e) {
|
|
|
3673
3674
|
let dc = le(oc), an = le(lc);
|
|
3674
3675
|
le(sc);
|
|
3675
3676
|
let pc = le(fc), yc = Object.assign(dc, { Panel: an, Title: pc, Description: Vu });
|
|
3676
|
-
function
|
|
3677
|
+
function no({ onClick: t }) {
|
|
3677
3678
|
return /* @__PURE__ */ R.jsxs(
|
|
3678
3679
|
"button",
|
|
3679
3680
|
{
|
|
@@ -3706,7 +3707,7 @@ function ro({ onClick: t }) {
|
|
|
3706
3707
|
}
|
|
3707
3708
|
);
|
|
3708
3709
|
}
|
|
3709
|
-
const vc = ({ modalContext: t,
|
|
3710
|
+
const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ R.jsx(
|
|
3710
3711
|
"div",
|
|
3711
3712
|
{
|
|
3712
3713
|
className: Ht("im-modal-positioner flex min-h-full justify-center", {
|
|
@@ -3735,13 +3736,13 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3735
3736
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3736
3737
|
}),
|
|
3737
3738
|
children: /* @__PURE__ */ R.jsxs(an, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3738
|
-
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(
|
|
3739
|
-
typeof r == "function" ? r({ modalContext: t,
|
|
3739
|
+
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
|
|
3740
|
+
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3740
3741
|
] })
|
|
3741
3742
|
}
|
|
3742
3743
|
)
|
|
3743
3744
|
}
|
|
3744
|
-
) }), mc = ({ modalContext: t,
|
|
3745
|
+
) }), mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ R.jsx(
|
|
3745
3746
|
"div",
|
|
3746
3747
|
{
|
|
3747
3748
|
className: Ht("im-slideover-positioner flex min-h-full items-center", {
|
|
@@ -3769,16 +3770,16 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3769
3770
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3770
3771
|
}),
|
|
3771
3772
|
children: /* @__PURE__ */ R.jsxs(an, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3772
|
-
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(
|
|
3773
|
-
typeof r == "function" ? r({ modalContext: t,
|
|
3773
|
+
e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(no, { onClick: t.close }) }),
|
|
3774
|
+
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3774
3775
|
] })
|
|
3775
3776
|
}
|
|
3776
3777
|
)
|
|
3777
3778
|
}
|
|
3778
|
-
) }), hc =
|
|
3779
|
+
) }), hc = Hr(({ name: t, children: e, ...r }, n) => {
|
|
3779
3780
|
const a = (l) => typeof e == "function" ? e(l) : e, o = j(null);
|
|
3780
3781
|
return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
|
|
3781
|
-
|
|
3782
|
+
Fa,
|
|
3782
3783
|
{
|
|
3783
3784
|
ref: o,
|
|
3784
3785
|
name: t,
|
|
@@ -3786,33 +3787,33 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3786
3787
|
children: ({
|
|
3787
3788
|
afterLeave: l,
|
|
3788
3789
|
close: u,
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3790
|
+
config: i,
|
|
3791
|
+
emit: d,
|
|
3792
|
+
getChildModal: s,
|
|
3793
|
+
getParentModal: g,
|
|
3794
|
+
id: v,
|
|
3795
|
+
index: w,
|
|
3796
|
+
isOpen: f,
|
|
3797
|
+
modalContext: y,
|
|
3797
3798
|
onTopOfStack: p,
|
|
3798
3799
|
reload: m,
|
|
3799
|
-
setOpen:
|
|
3800
|
+
setOpen: h,
|
|
3800
3801
|
shouldRender: b
|
|
3801
3802
|
}) => /* @__PURE__ */ R.jsx(
|
|
3802
|
-
|
|
3803
|
+
ro,
|
|
3803
3804
|
{
|
|
3804
3805
|
appear: !0,
|
|
3805
|
-
show:
|
|
3806
|
+
show: f ?? !1,
|
|
3806
3807
|
children: /* @__PURE__ */ R.jsxs(
|
|
3807
3808
|
yc,
|
|
3808
3809
|
{
|
|
3809
3810
|
as: "div",
|
|
3810
3811
|
className: "im-dialog relative z-20",
|
|
3811
|
-
onClose: () =>
|
|
3812
|
-
"data-inertiaui-modal-id":
|
|
3813
|
-
"data-inertiaui-modal-index":
|
|
3812
|
+
onClose: () => i.closeExplicitly ? null : u(),
|
|
3813
|
+
"data-inertiaui-modal-id": v,
|
|
3814
|
+
"data-inertiaui-modal-index": w,
|
|
3814
3815
|
children: [
|
|
3815
|
-
|
|
3816
|
+
w === 0 ? /* @__PURE__ */ R.jsx(
|
|
3816
3817
|
it,
|
|
3817
3818
|
{
|
|
3818
3819
|
enter: "transition transform ease-in-out duration-300",
|
|
@@ -3830,48 +3831,48 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
|
|
|
3830
3831
|
) : /* @__PURE__ */ R.jsx("div", {})
|
|
3831
3832
|
}
|
|
3832
3833
|
) : null,
|
|
3833
|
-
|
|
3834
|
-
|
|
3834
|
+
w > 0 && p ? /* @__PURE__ */ R.jsx("div", { className: "im-backdrop fixed inset-0 z-30 bg-black/75" }) : null,
|
|
3835
|
+
i.slideover ? /* @__PURE__ */ R.jsx(
|
|
3835
3836
|
mc,
|
|
3836
3837
|
{
|
|
3837
|
-
modalContext:
|
|
3838
|
-
|
|
3838
|
+
modalContext: y,
|
|
3839
|
+
config: i,
|
|
3839
3840
|
children: a({
|
|
3840
3841
|
afterLeave: l,
|
|
3841
3842
|
close: u,
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3843
|
+
config: i,
|
|
3844
|
+
emit: d,
|
|
3845
|
+
getChildModal: s,
|
|
3846
|
+
getParentModal: g,
|
|
3847
|
+
id: v,
|
|
3848
|
+
index: w,
|
|
3849
|
+
isOpen: f,
|
|
3850
|
+
modalContext: y,
|
|
3850
3851
|
onTopOfStack: p,
|
|
3851
3852
|
reload: m,
|
|
3852
|
-
setOpen:
|
|
3853
|
+
setOpen: h,
|
|
3853
3854
|
shouldRender: b
|
|
3854
3855
|
})
|
|
3855
3856
|
}
|
|
3856
3857
|
) : /* @__PURE__ */ R.jsx(
|
|
3857
3858
|
vc,
|
|
3858
3859
|
{
|
|
3859
|
-
modalContext:
|
|
3860
|
-
|
|
3860
|
+
modalContext: y,
|
|
3861
|
+
config: i,
|
|
3861
3862
|
children: a({
|
|
3862
3863
|
afterLeave: l,
|
|
3863
3864
|
close: u,
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3865
|
+
config: i,
|
|
3866
|
+
emit: d,
|
|
3867
|
+
getChildModal: s,
|
|
3868
|
+
getParentModal: g,
|
|
3869
|
+
id: v,
|
|
3870
|
+
index: w,
|
|
3871
|
+
isOpen: f,
|
|
3872
|
+
modalContext: y,
|
|
3872
3873
|
onTopOfStack: p,
|
|
3873
3874
|
reload: m,
|
|
3874
|
-
setOpen:
|
|
3875
|
+
setOpen: h,
|
|
3875
3876
|
shouldRender: b
|
|
3876
3877
|
})
|
|
3877
3878
|
}
|
|
@@ -3897,19 +3898,19 @@ const $c = ({
|
|
|
3897
3898
|
onClose: i = null,
|
|
3898
3899
|
onError: d = null,
|
|
3899
3900
|
onFocus: s = null,
|
|
3900
|
-
onStart:
|
|
3901
|
+
onStart: g = null,
|
|
3901
3902
|
onSuccess: v = null,
|
|
3902
3903
|
navigate: w = null,
|
|
3903
3904
|
children: f,
|
|
3904
3905
|
...y
|
|
3905
3906
|
}) => {
|
|
3906
|
-
const [p, m] = Q(!1), [
|
|
3907
|
+
const [p, m] = Q(!1), [h, b] = Q(null), { stack: S, visit: O } = Kt(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
|
|
3907
3908
|
Object.keys(y).forEach((T) => {
|
|
3908
3909
|
zn.includes(T) || (T.startsWith("on") && typeof y[T] == "function" ? T.toLowerCase() in window ? M[T] = y[T] : W[T] = y[T] : M[T] = y[T]);
|
|
3909
3910
|
});
|
|
3910
3911
|
const [H, k] = Q(!1);
|
|
3911
3912
|
K(() => {
|
|
3912
|
-
|
|
3913
|
+
h && (h.onTopOfStack && H ? s == null || s() : !h.onTopOfStack && !H && (u == null || u()), k(!h.onTopOfStack));
|
|
3913
3914
|
}, [S]);
|
|
3914
3915
|
const Y = ve(() => {
|
|
3915
3916
|
i == null || i();
|
|
@@ -3917,12 +3918,12 @@ const $c = ({
|
|
|
3917
3918
|
b(null), l == null || l();
|
|
3918
3919
|
}, [l]), $ = ve(
|
|
3919
3920
|
(T) => {
|
|
3920
|
-
T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0),
|
|
3921
|
+
T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), g == null || g()), O(
|
|
3921
3922
|
t,
|
|
3922
3923
|
e,
|
|
3923
3924
|
r,
|
|
3924
3925
|
a,
|
|
3925
|
-
|
|
3926
|
+
qo(aa(y, zn)),
|
|
3926
3927
|
() => Y(S.length),
|
|
3927
3928
|
V,
|
|
3928
3929
|
o,
|
|
@@ -3945,16 +3946,20 @@ const $c = ({
|
|
|
3945
3946
|
}
|
|
3946
3947
|
);
|
|
3947
3948
|
};
|
|
3949
|
+
function Rc() {
|
|
3950
|
+
return Kt().stack[$a()] ?? null;
|
|
3951
|
+
}
|
|
3948
3952
|
export {
|
|
3949
|
-
|
|
3953
|
+
Fa as HeadlessModal,
|
|
3950
3954
|
hc as Modal,
|
|
3951
3955
|
$c as ModalLink,
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3956
|
+
$u as ModalRoot,
|
|
3957
|
+
Tu as ModalStackProvider,
|
|
3958
|
+
Vr as getConfig,
|
|
3955
3959
|
Oc as putConfig,
|
|
3956
3960
|
Pc as renderApp,
|
|
3957
3961
|
xc as resetConfig,
|
|
3958
|
-
|
|
3959
|
-
|
|
3962
|
+
Rc as useModal,
|
|
3963
|
+
$a as useModalIndex,
|
|
3964
|
+
Kt as useModalStack
|
|
3960
3965
|
};
|