@inertiaui/modal-react 0.6.1 → 0.6.3
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 +1141 -1129
- package/dist/inertiaui-modal.umd.cjs +12 -12
- package/package.json +1 -1
- package/src/ModalRoot.jsx +29 -6
package/dist/inertiaui-modal.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var Fo = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
2
|
+
var Io = (t, e, r) => e in t ? Fo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var ce = (t, e, r) => Io(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import * as ht from "react";
|
|
5
|
-
import A, { createContext as
|
|
6
|
-
import
|
|
7
|
-
import { router as vt } from "@inertiajs/react";
|
|
8
|
-
import { createPortal as
|
|
5
|
+
import A, { createContext as fe, useState as Q, useEffect as Y, useContext as ie, useRef as k, createElement as Ar, useMemo as J, forwardRef as Vr, useImperativeHandle as na, useLayoutEffect as Co, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as Pt, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
|
|
6
|
+
import Lt from "axios";
|
|
7
|
+
import { router as vt, usePage as jo } from "@inertiajs/react";
|
|
8
|
+
import { createPortal as Lo } from "react-dom";
|
|
9
9
|
const ct = {
|
|
10
10
|
type: "modal",
|
|
11
11
|
navigate: !1,
|
|
@@ -26,7 +26,7 @@ const ct = {
|
|
|
26
26
|
position: "right"
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
class
|
|
29
|
+
class Wo {
|
|
30
30
|
constructor() {
|
|
31
31
|
this.config = {}, this.reset();
|
|
32
32
|
}
|
|
@@ -62,12 +62,12 @@ class Lo {
|
|
|
62
62
|
return n;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
var
|
|
67
|
-
function
|
|
65
|
+
const zt = new Wo(), Oc = () => zt.reset(), Pc = (t, e) => zt.put(t, e), qr = (t) => zt.get(t), ze = (t, e) => zt.get(t ? `slideover.${e}` : `modal.${e}`);
|
|
66
|
+
var Tr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
67
|
+
function Uo(t) {
|
|
68
68
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Bo(t) {
|
|
71
71
|
if (t.__esModule) return t;
|
|
72
72
|
var e = t.default;
|
|
73
73
|
if (typeof e == "function") {
|
|
@@ -86,7 +86,7 @@ function Uo(t) {
|
|
|
86
86
|
});
|
|
87
87
|
}), r;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
89
|
+
var $r = { exports: {} }, ft = {};
|
|
90
90
|
/**
|
|
91
91
|
* @license React
|
|
92
92
|
* react-jsx-runtime.production.min.js
|
|
@@ -96,17 +96,17 @@ var Tr = { exports: {} }, ft = {};
|
|
|
96
96
|
* This source code is licensed under the MIT license found in the
|
|
97
97
|
* LICENSE file in the root directory of this source tree.
|
|
98
98
|
*/
|
|
99
|
-
var
|
|
100
|
-
function
|
|
101
|
-
if (
|
|
102
|
-
|
|
99
|
+
var En;
|
|
100
|
+
function Ho() {
|
|
101
|
+
if (En) return ft;
|
|
102
|
+
En = 1;
|
|
103
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 };
|
|
104
|
-
function l(u, i,
|
|
105
|
-
var s,
|
|
106
|
-
|
|
107
|
-
for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (
|
|
108
|
-
if (u && u.defaultProps) for (s in i = u.defaultProps, i)
|
|
109
|
-
return { $$typeof: e, type: u, key: v, ref: w, props:
|
|
104
|
+
function l(u, i, f) {
|
|
105
|
+
var s, h = {}, v = null, w = null;
|
|
106
|
+
f !== void 0 && (v = "" + f), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
|
|
107
|
+
for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (h[s] = i[s]);
|
|
108
|
+
if (u && u.defaultProps) for (s in i = u.defaultProps, i) h[s] === void 0 && (h[s] = i[s]);
|
|
109
|
+
return { $$typeof: e, type: u, key: v, ref: w, props: h, _owner: a.current };
|
|
110
110
|
}
|
|
111
111
|
return ft.Fragment = r, ft.jsx = l, ft.jsxs = l, ft;
|
|
112
112
|
}
|
|
@@ -120,18 +120,18 @@ var dt = {};
|
|
|
120
120
|
* This source code is licensed under the MIT license found in the
|
|
121
121
|
* LICENSE file in the root directory of this source tree.
|
|
122
122
|
*/
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
return
|
|
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"),
|
|
123
|
+
var Sn;
|
|
124
|
+
function Vo() {
|
|
125
|
+
return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
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"), f = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), d = Symbol.iterator, y = "@@iterator";
|
|
127
127
|
function p(c) {
|
|
128
128
|
if (c === null || typeof c != "object")
|
|
129
129
|
return null;
|
|
130
|
-
var E =
|
|
130
|
+
var E = d && c[d] || c[y];
|
|
131
131
|
return typeof E == "function" ? E : null;
|
|
132
132
|
}
|
|
133
133
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
134
|
-
function
|
|
134
|
+
function g(c) {
|
|
135
135
|
{
|
|
136
136
|
for (var E = arguments.length, x = new Array(E > 1 ? E - 1 : 0), P = 1; P < E; P++)
|
|
137
137
|
x[P - 1] = arguments[P];
|
|
@@ -142,22 +142,22 @@ function Ho() {
|
|
|
142
142
|
{
|
|
143
143
|
var P = m.ReactDebugCurrentFrame, N = P.getStackAddendum();
|
|
144
144
|
N !== "" && (E += "%s", x = x.concat([N]));
|
|
145
|
-
var L = x.map(function(
|
|
146
|
-
return String(
|
|
145
|
+
var L = x.map(function(C) {
|
|
146
|
+
return String(C);
|
|
147
147
|
});
|
|
148
148
|
L.unshift("Warning: " + E), Function.prototype.apply.call(console[c], console, L);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
var S = !1, O = !1, _ = !1, M = !1, W = !1, H;
|
|
152
152
|
H = Symbol.for("react.module.reference");
|
|
153
|
-
function
|
|
154
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c ===
|
|
153
|
+
function j(c) {
|
|
154
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === f || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === h || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
|
|
155
155
|
// types supported by any Flight configuration anywhere since
|
|
156
156
|
// we don't know which Flight build this will end up being used
|
|
157
157
|
// with.
|
|
158
158
|
c.$$typeof === H || c.getModuleId !== void 0));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function z(c, E, x) {
|
|
161
161
|
var P = c.displayName;
|
|
162
162
|
if (P)
|
|
163
163
|
return P;
|
|
@@ -170,7 +170,7 @@ function Ho() {
|
|
|
170
170
|
function $(c) {
|
|
171
171
|
if (c == null)
|
|
172
172
|
return null;
|
|
173
|
-
if (typeof c.tag == "number" &&
|
|
173
|
+
if (typeof c.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
174
174
|
return c.displayName || c.name || null;
|
|
175
175
|
if (typeof c == "string")
|
|
176
176
|
return c;
|
|
@@ -183,7 +183,7 @@ function Ho() {
|
|
|
183
183
|
return "Profiler";
|
|
184
184
|
case a:
|
|
185
185
|
return "StrictMode";
|
|
186
|
-
case
|
|
186
|
+
case f:
|
|
187
187
|
return "Suspense";
|
|
188
188
|
case s:
|
|
189
189
|
return "SuspenseList";
|
|
@@ -197,14 +197,14 @@ function Ho() {
|
|
|
197
197
|
var x = c;
|
|
198
198
|
return V(x._context) + ".Provider";
|
|
199
199
|
case i:
|
|
200
|
-
return
|
|
201
|
-
case
|
|
200
|
+
return z(c, c.render, "ForwardRef");
|
|
201
|
+
case h:
|
|
202
202
|
var P = c.displayName || null;
|
|
203
203
|
return P !== null ? P : $(c.type) || "Memo";
|
|
204
204
|
case v: {
|
|
205
|
-
var N = c, L = N._payload,
|
|
205
|
+
var N = c, L = N._payload, C = N._init;
|
|
206
206
|
try {
|
|
207
|
-
return $(
|
|
207
|
+
return $(C(L));
|
|
208
208
|
} catch {
|
|
209
209
|
return null;
|
|
210
210
|
}
|
|
@@ -212,14 +212,14 @@ function Ho() {
|
|
|
212
212
|
}
|
|
213
213
|
return null;
|
|
214
214
|
}
|
|
215
|
-
var T = Object.assign, D = 0, ue,
|
|
215
|
+
var T = Object.assign, D = 0, ue, pe, ge, te, ye, q, _e;
|
|
216
216
|
function ee() {
|
|
217
217
|
}
|
|
218
218
|
ee.__reactDisabledLog = !0;
|
|
219
|
-
function
|
|
219
|
+
function or() {
|
|
220
220
|
{
|
|
221
221
|
if (D === 0) {
|
|
222
|
-
ue = console.log,
|
|
222
|
+
ue = console.log, pe = console.info, ge = console.warn, te = console.error, ye = console.group, q = console.groupCollapsed, _e = console.groupEnd;
|
|
223
223
|
var c = {
|
|
224
224
|
configurable: !0,
|
|
225
225
|
enumerable: !0,
|
|
@@ -252,7 +252,7 @@ function Ho() {
|
|
|
252
252
|
value: ue
|
|
253
253
|
}),
|
|
254
254
|
info: T({}, c, {
|
|
255
|
-
value:
|
|
255
|
+
value: pe
|
|
256
256
|
}),
|
|
257
257
|
warn: T({}, c, {
|
|
258
258
|
value: ge
|
|
@@ -261,7 +261,7 @@ function Ho() {
|
|
|
261
261
|
value: te
|
|
262
262
|
}),
|
|
263
263
|
group: T({}, c, {
|
|
264
|
-
value:
|
|
264
|
+
value: ye
|
|
265
265
|
}),
|
|
266
266
|
groupCollapsed: T({}, c, {
|
|
267
267
|
value: q
|
|
@@ -271,7 +271,7 @@ function Ho() {
|
|
|
271
271
|
})
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
D < 0 &&
|
|
274
|
+
D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
var lt = m.ReactCurrentDispatcher, Ne;
|
|
@@ -288,16 +288,16 @@ function Ho() {
|
|
|
288
288
|
` + Ne + c;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
var Oe = !1,
|
|
291
|
+
var Oe = !1, Ft;
|
|
292
292
|
{
|
|
293
293
|
var ao = typeof WeakMap == "function" ? WeakMap : Map;
|
|
294
|
-
|
|
294
|
+
Ft = new ao();
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function ln(c, E) {
|
|
297
297
|
if (!c || Oe)
|
|
298
298
|
return "";
|
|
299
299
|
{
|
|
300
|
-
var x =
|
|
300
|
+
var x = Ft.get(c);
|
|
301
301
|
if (x !== void 0)
|
|
302
302
|
return x;
|
|
303
303
|
}
|
|
@@ -306,30 +306,30 @@ function Ho() {
|
|
|
306
306
|
var N = Error.prepareStackTrace;
|
|
307
307
|
Error.prepareStackTrace = void 0;
|
|
308
308
|
var L;
|
|
309
|
-
L = lt.current, lt.current = null,
|
|
309
|
+
L = lt.current, lt.current = null, or();
|
|
310
310
|
try {
|
|
311
311
|
if (E) {
|
|
312
|
-
var
|
|
312
|
+
var C = function() {
|
|
313
313
|
throw Error();
|
|
314
314
|
};
|
|
315
|
-
if (Object.defineProperty(
|
|
315
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
316
316
|
set: function() {
|
|
317
317
|
throw Error();
|
|
318
318
|
}
|
|
319
319
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
320
320
|
try {
|
|
321
|
-
Reflect.construct(
|
|
321
|
+
Reflect.construct(C, []);
|
|
322
322
|
} catch (oe) {
|
|
323
323
|
P = oe;
|
|
324
324
|
}
|
|
325
|
-
Reflect.construct(c, [],
|
|
325
|
+
Reflect.construct(c, [], C);
|
|
326
326
|
} else {
|
|
327
327
|
try {
|
|
328
|
-
|
|
328
|
+
C.call();
|
|
329
329
|
} catch (oe) {
|
|
330
330
|
P = oe;
|
|
331
331
|
}
|
|
332
|
-
c.call(
|
|
332
|
+
c.call(C.prototype);
|
|
333
333
|
}
|
|
334
334
|
} else {
|
|
335
335
|
try {
|
|
@@ -343,18 +343,18 @@ function Ho() {
|
|
|
343
343
|
if (oe && P && typeof oe.stack == "string") {
|
|
344
344
|
for (var F = oe.stack.split(`
|
|
345
345
|
`), ne = P.stack.split(`
|
|
346
|
-
`), G = F.length - 1,
|
|
347
|
-
|
|
348
|
-
for (; G >= 1 &&
|
|
349
|
-
if (F[G] !== ne[
|
|
350
|
-
if (G !== 1 ||
|
|
346
|
+
`), G = F.length - 1, K = ne.length - 1; G >= 1 && K >= 0 && F[G] !== ne[K]; )
|
|
347
|
+
K--;
|
|
348
|
+
for (; G >= 1 && K >= 0; G--, K--)
|
|
349
|
+
if (F[G] !== ne[K]) {
|
|
350
|
+
if (G !== 1 || K !== 1)
|
|
351
351
|
do
|
|
352
|
-
if (G--,
|
|
352
|
+
if (G--, K--, K < 0 || F[G] !== ne[K]) {
|
|
353
353
|
var se = `
|
|
354
354
|
` + F[G].replace(" at new ", " at ");
|
|
355
|
-
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" && Ft.set(c, se), se;
|
|
356
356
|
}
|
|
357
|
-
while (G >= 1 &&
|
|
357
|
+
while (G >= 1 && K >= 0);
|
|
358
358
|
break;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -362,24 +362,24 @@ function Ho() {
|
|
|
362
362
|
Oe = !1, lt.current = L, De(), Error.prepareStackTrace = N;
|
|
363
363
|
}
|
|
364
364
|
var Ye = c ? c.displayName || c.name : "", ke = Ye ? xe(Ye) : "";
|
|
365
|
-
return typeof c == "function" &&
|
|
365
|
+
return typeof c == "function" && Ft.set(c, ke), ke;
|
|
366
366
|
}
|
|
367
367
|
function oo(c, E, x) {
|
|
368
|
-
return
|
|
368
|
+
return ln(c, !1);
|
|
369
369
|
}
|
|
370
370
|
function io(c) {
|
|
371
371
|
var E = c.prototype;
|
|
372
372
|
return !!(E && E.isReactComponent);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function It(c, E, x) {
|
|
375
375
|
if (c == null)
|
|
376
376
|
return "";
|
|
377
377
|
if (typeof c == "function")
|
|
378
|
-
return
|
|
378
|
+
return ln(c, io(c));
|
|
379
379
|
if (typeof c == "string")
|
|
380
380
|
return xe(c);
|
|
381
381
|
switch (c) {
|
|
382
|
-
case
|
|
382
|
+
case f:
|
|
383
383
|
return xe("Suspense");
|
|
384
384
|
case s:
|
|
385
385
|
return xe("SuspenseList");
|
|
@@ -388,47 +388,47 @@ function Ho() {
|
|
|
388
388
|
switch (c.$$typeof) {
|
|
389
389
|
case i:
|
|
390
390
|
return oo(c.render);
|
|
391
|
-
case
|
|
392
|
-
return
|
|
391
|
+
case h:
|
|
392
|
+
return It(c.type, E, x);
|
|
393
393
|
case v: {
|
|
394
394
|
var P = c, N = P._payload, L = P._init;
|
|
395
395
|
try {
|
|
396
|
-
return
|
|
396
|
+
return It(L(N), E, x);
|
|
397
397
|
} catch {
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
return "";
|
|
402
402
|
}
|
|
403
|
-
var ut = Object.prototype.hasOwnProperty,
|
|
403
|
+
var ut = Object.prototype.hasOwnProperty, un = {}, sn = m.ReactDebugCurrentFrame;
|
|
404
404
|
function Ct(c) {
|
|
405
405
|
if (c) {
|
|
406
|
-
var E = c._owner, x =
|
|
407
|
-
|
|
406
|
+
var E = c._owner, x = It(c.type, c._source, E ? E.type : null);
|
|
407
|
+
sn.setExtraStackFrame(x);
|
|
408
408
|
} else
|
|
409
|
-
|
|
409
|
+
sn.setExtraStackFrame(null);
|
|
410
410
|
}
|
|
411
411
|
function lo(c, E, x, P, N) {
|
|
412
412
|
{
|
|
413
413
|
var L = Function.call.bind(ut);
|
|
414
|
-
for (var
|
|
415
|
-
if (L(c,
|
|
414
|
+
for (var C in c)
|
|
415
|
+
if (L(c, C)) {
|
|
416
416
|
var F = void 0;
|
|
417
417
|
try {
|
|
418
|
-
if (typeof c[
|
|
419
|
-
var ne = Error((P || "React class") + ": " + x + " type `" +
|
|
418
|
+
if (typeof c[C] != "function") {
|
|
419
|
+
var ne = Error((P || "React class") + ": " + x + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
420
420
|
throw ne.name = "Invariant Violation", ne;
|
|
421
421
|
}
|
|
422
|
-
F = c[
|
|
422
|
+
F = c[C](E, C, P, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
423
423
|
} catch (G) {
|
|
424
424
|
F = G;
|
|
425
425
|
}
|
|
426
|
-
F && !(F instanceof Error) && (Ct(N),
|
|
426
|
+
F && !(F instanceof Error) && (Ct(N), g("%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, C, typeof F), Ct(null)), F instanceof Error && !(F.message in un) && (un[F.message] = !0, Ct(N), g("Failed %s type: %s", x, F.message), Ct(null));
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
var uo = Array.isArray;
|
|
431
|
-
function
|
|
431
|
+
function ir(c) {
|
|
432
432
|
return uo(c);
|
|
433
433
|
}
|
|
434
434
|
function so(c) {
|
|
@@ -439,25 +439,25 @@ function Ho() {
|
|
|
439
439
|
}
|
|
440
440
|
function co(c) {
|
|
441
441
|
try {
|
|
442
|
-
return
|
|
442
|
+
return cn(c), !1;
|
|
443
443
|
} catch {
|
|
444
444
|
return !0;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function cn(c) {
|
|
448
448
|
return "" + c;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function fn(c) {
|
|
451
451
|
if (co(c))
|
|
452
|
-
return
|
|
452
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), cn(c);
|
|
453
453
|
}
|
|
454
454
|
var st = m.ReactCurrentOwner, fo = {
|
|
455
455
|
key: !0,
|
|
456
456
|
ref: !0,
|
|
457
457
|
__self: !0,
|
|
458
458
|
__source: !0
|
|
459
|
-
},
|
|
460
|
-
|
|
459
|
+
}, dn, pn, lr;
|
|
460
|
+
lr = {};
|
|
461
461
|
function po(c) {
|
|
462
462
|
if (ut.call(c, "ref")) {
|
|
463
463
|
var E = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
@@ -477,13 +477,13 @@ function Ho() {
|
|
|
477
477
|
function vo(c, E) {
|
|
478
478
|
if (typeof c.ref == "string" && st.current && E && st.current.stateNode !== E) {
|
|
479
479
|
var x = $(st.current.type);
|
|
480
|
-
|
|
480
|
+
lr[x] || (g('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), lr[x] = !0);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function mo(c, E) {
|
|
484
484
|
{
|
|
485
485
|
var x = function() {
|
|
486
|
-
|
|
486
|
+
dn || (dn = !0, g("%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));
|
|
487
487
|
};
|
|
488
488
|
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
489
489
|
get: x,
|
|
@@ -494,7 +494,7 @@ function Ho() {
|
|
|
494
494
|
function ho(c, E) {
|
|
495
495
|
{
|
|
496
496
|
var x = function() {
|
|
497
|
-
|
|
497
|
+
pn || (pn = !0, g("%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));
|
|
498
498
|
};
|
|
499
499
|
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
500
500
|
get: x,
|
|
@@ -502,7 +502,7 @@ function Ho() {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
var go = function(c, E, x, P, N, L,
|
|
505
|
+
var go = function(c, E, x, P, N, L, C) {
|
|
506
506
|
var F = {
|
|
507
507
|
// This tag allows us to uniquely identify this as a React Element
|
|
508
508
|
$$typeof: e,
|
|
@@ -510,7 +510,7 @@ function Ho() {
|
|
|
510
510
|
type: c,
|
|
511
511
|
key: E,
|
|
512
512
|
ref: x,
|
|
513
|
-
props:
|
|
513
|
+
props: C,
|
|
514
514
|
// Record the component responsible for creating this element.
|
|
515
515
|
_owner: L
|
|
516
516
|
};
|
|
@@ -533,39 +533,39 @@ function Ho() {
|
|
|
533
533
|
};
|
|
534
534
|
function bo(c, E, x, P, N) {
|
|
535
535
|
{
|
|
536
|
-
var L,
|
|
537
|
-
x !== void 0 && (
|
|
536
|
+
var L, C = {}, F = null, ne = null;
|
|
537
|
+
x !== void 0 && (fn(x), F = "" + x), yo(E) && (fn(E.key), F = "" + E.key), po(E) && (ne = E.ref, vo(E, N));
|
|
538
538
|
for (L in E)
|
|
539
|
-
ut.call(E, L) && !fo.hasOwnProperty(L) && (
|
|
539
|
+
ut.call(E, L) && !fo.hasOwnProperty(L) && (C[L] = E[L]);
|
|
540
540
|
if (c && c.defaultProps) {
|
|
541
541
|
var G = c.defaultProps;
|
|
542
542
|
for (L in G)
|
|
543
|
-
|
|
543
|
+
C[L] === void 0 && (C[L] = G[L]);
|
|
544
544
|
}
|
|
545
545
|
if (F || ne) {
|
|
546
|
-
var
|
|
547
|
-
F && mo(
|
|
546
|
+
var K = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
547
|
+
F && mo(C, K), ne && ho(C, K);
|
|
548
548
|
}
|
|
549
|
-
return go(c, F, ne, N, P, st.current,
|
|
549
|
+
return go(c, F, ne, N, P, st.current, C);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var ur = m.ReactCurrentOwner, yn = m.ReactDebugCurrentFrame;
|
|
553
553
|
function Ge(c) {
|
|
554
554
|
if (c) {
|
|
555
|
-
var E = c._owner, x =
|
|
556
|
-
|
|
555
|
+
var E = c._owner, x = It(c.type, c._source, E ? E.type : null);
|
|
556
|
+
yn.setExtraStackFrame(x);
|
|
557
557
|
} else
|
|
558
|
-
|
|
558
|
+
yn.setExtraStackFrame(null);
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
|
|
562
|
-
function
|
|
560
|
+
var sr;
|
|
561
|
+
sr = !1;
|
|
562
|
+
function cr(c) {
|
|
563
563
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function vn() {
|
|
566
566
|
{
|
|
567
|
-
if (
|
|
568
|
-
var c = $(
|
|
567
|
+
if (ur.current) {
|
|
568
|
+
var c = $(ur.current.type);
|
|
569
569
|
if (c)
|
|
570
570
|
return `
|
|
571
571
|
|
|
@@ -577,10 +577,10 @@ Check the render method of \`` + c + "`.";
|
|
|
577
577
|
function wo(c) {
|
|
578
578
|
return "";
|
|
579
579
|
}
|
|
580
|
-
var
|
|
580
|
+
var mn = {};
|
|
581
581
|
function Eo(c) {
|
|
582
582
|
{
|
|
583
|
-
var E =
|
|
583
|
+
var E = vn();
|
|
584
584
|
if (!E) {
|
|
585
585
|
var x = typeof c == "string" ? c : c.displayName || c.name;
|
|
586
586
|
x && (E = `
|
|
@@ -590,35 +590,35 @@ Check the top-level render call using <` + x + ">.");
|
|
|
590
590
|
return E;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function hn(c, E) {
|
|
594
594
|
{
|
|
595
595
|
if (!c._store || c._store.validated || c.key != null)
|
|
596
596
|
return;
|
|
597
597
|
c._store.validated = !0;
|
|
598
598
|
var x = Eo(E);
|
|
599
|
-
if (
|
|
599
|
+
if (mn[x])
|
|
600
600
|
return;
|
|
601
|
-
|
|
601
|
+
mn[x] = !0;
|
|
602
602
|
var P = "";
|
|
603
|
-
c && c._owner && c._owner !==
|
|
603
|
+
c && c._owner && c._owner !== ur.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), g('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);
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function gn(c, E) {
|
|
607
607
|
{
|
|
608
608
|
if (typeof c != "object")
|
|
609
609
|
return;
|
|
610
|
-
if (
|
|
610
|
+
if (ir(c))
|
|
611
611
|
for (var x = 0; x < c.length; x++) {
|
|
612
612
|
var P = c[x];
|
|
613
|
-
|
|
613
|
+
cr(P) && hn(P, E);
|
|
614
614
|
}
|
|
615
|
-
else if (
|
|
615
|
+
else if (cr(c))
|
|
616
616
|
c._store && (c._store.validated = !0);
|
|
617
617
|
else if (c) {
|
|
618
618
|
var N = p(c);
|
|
619
619
|
if (typeof N == "function" && N !== c.entries)
|
|
620
|
-
for (var L = N.call(c),
|
|
621
|
-
|
|
620
|
+
for (var L = N.call(c), C; !(C = L.next()).done; )
|
|
621
|
+
cr(C.value) && hn(C.value, E);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
}
|
|
@@ -632,19 +632,19 @@ Check the top-level render call using <` + x + ">.");
|
|
|
632
632
|
x = E.propTypes;
|
|
633
633
|
else if (typeof E == "object" && (E.$$typeof === i || // Note: Memo only checks outer props here.
|
|
634
634
|
// Inner props are checked in the reconciler.
|
|
635
|
-
E.$$typeof ===
|
|
635
|
+
E.$$typeof === h))
|
|
636
636
|
x = E.propTypes;
|
|
637
637
|
else
|
|
638
638
|
return;
|
|
639
639
|
if (x) {
|
|
640
640
|
var P = $(E);
|
|
641
641
|
lo(x, c.props, "prop", P, c);
|
|
642
|
-
} else if (E.PropTypes !== void 0 && !
|
|
643
|
-
|
|
642
|
+
} else if (E.PropTypes !== void 0 && !sr) {
|
|
643
|
+
sr = !0;
|
|
644
644
|
var N = $(E);
|
|
645
|
-
|
|
645
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
646
646
|
}
|
|
647
|
-
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved &&
|
|
647
|
+
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
function xo(c) {
|
|
@@ -652,80 +652,80 @@ Check the top-level render call using <` + x + ">.");
|
|
|
652
652
|
for (var E = Object.keys(c.props), x = 0; x < E.length; x++) {
|
|
653
653
|
var P = E[x];
|
|
654
654
|
if (P !== "children" && P !== "key") {
|
|
655
|
-
Ge(c),
|
|
655
|
+
Ge(c), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
|
|
656
656
|
break;
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
c.ref !== null && (Ge(c),
|
|
659
|
+
c.ref !== null && (Ge(c), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
var
|
|
663
|
-
function
|
|
662
|
+
var bn = {};
|
|
663
|
+
function wn(c, E, x, P, N, L) {
|
|
664
664
|
{
|
|
665
|
-
var
|
|
666
|
-
if (!
|
|
665
|
+
var C = j(c);
|
|
666
|
+
if (!C) {
|
|
667
667
|
var F = "";
|
|
668
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.");
|
|
669
669
|
var ne = wo();
|
|
670
|
-
ne ? F += ne : F +=
|
|
670
|
+
ne ? F += ne : F += vn();
|
|
671
671
|
var G;
|
|
672
|
-
c === null ? G = "null" :
|
|
672
|
+
c === null ? G = "null" : ir(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, g("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);
|
|
673
673
|
}
|
|
674
|
-
var
|
|
675
|
-
if (
|
|
676
|
-
return
|
|
677
|
-
if (
|
|
674
|
+
var K = bo(c, E, x, N, L);
|
|
675
|
+
if (K == null)
|
|
676
|
+
return K;
|
|
677
|
+
if (C) {
|
|
678
678
|
var se = E.children;
|
|
679
679
|
if (se !== void 0)
|
|
680
680
|
if (P)
|
|
681
|
-
if (
|
|
681
|
+
if (ir(se)) {
|
|
682
682
|
for (var Ye = 0; Ye < se.length; Ye++)
|
|
683
|
-
|
|
683
|
+
gn(se[Ye], c);
|
|
684
684
|
Object.freeze && Object.freeze(se);
|
|
685
685
|
} else
|
|
686
|
-
|
|
686
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
687
687
|
else
|
|
688
|
-
|
|
688
|
+
gn(se, c);
|
|
689
689
|
}
|
|
690
690
|
if (ut.call(E, "key")) {
|
|
691
691
|
var ke = $(c), oe = Object.keys(E).filter(function(Ro) {
|
|
692
692
|
return Ro !== "key";
|
|
693
|
-
}),
|
|
694
|
-
if (!
|
|
693
|
+
}), fr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
694
|
+
if (!bn[ke + fr]) {
|
|
695
695
|
var $o = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
|
|
696
|
-
|
|
696
|
+
g(`A props object containing a "key" prop is being spread into JSX:
|
|
697
697
|
let props = %s;
|
|
698
698
|
<%s {...props} />
|
|
699
699
|
React keys must be passed directly to JSX without using spread:
|
|
700
700
|
let props = %s;
|
|
701
|
-
<%s key={someKey} {...props} />`,
|
|
701
|
+
<%s key={someKey} {...props} />`, fr, ke, $o, ke), bn[ke + fr] = !0;
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
return c === n ? xo(
|
|
704
|
+
return c === n ? xo(K) : So(K), K;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
function Oo(c, E, x) {
|
|
708
|
-
return
|
|
708
|
+
return wn(c, E, x, !0);
|
|
709
709
|
}
|
|
710
710
|
function Po(c, E, x) {
|
|
711
|
-
return
|
|
711
|
+
return wn(c, E, x, !1);
|
|
712
712
|
}
|
|
713
713
|
var Ao = Po, To = Oo;
|
|
714
714
|
dt.Fragment = n, dt.jsx = Ao, dt.jsxs = To;
|
|
715
715
|
}()), dt;
|
|
716
716
|
}
|
|
717
|
-
process.env.NODE_ENV === "production" ?
|
|
718
|
-
var R =
|
|
719
|
-
function
|
|
717
|
+
process.env.NODE_ENV === "production" ? $r.exports = Ho() : $r.exports = Vo();
|
|
718
|
+
var R = $r.exports;
|
|
719
|
+
function qo(t, e) {
|
|
720
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), {});
|
|
721
721
|
}
|
|
722
722
|
function aa(t, e) {
|
|
723
723
|
return Array.isArray(t) ? t.filter((r) => e.includes(r)) : e.reduce((r, n) => (n in t && (r[n] = t[n]), r), {});
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Go(t) {
|
|
726
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), {});
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Yo(t, e = 3, r = 10) {
|
|
729
729
|
return new Promise((n, a) => {
|
|
730
730
|
const o = t();
|
|
731
731
|
if (o) {
|
|
@@ -739,44 +739,44 @@ function Go(t, e = 3, r = 10) {
|
|
|
739
739
|
}, r);
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
return
|
|
742
|
+
var zo = function(e) {
|
|
743
|
+
return Ko(e) && !Xo(e);
|
|
744
744
|
};
|
|
745
|
-
function
|
|
745
|
+
function Ko(t) {
|
|
746
746
|
return !!t && typeof t == "object";
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function Xo(t) {
|
|
749
749
|
var e = Object.prototype.toString.call(t);
|
|
750
|
-
return e === "[object RegExp]" || e === "[object Date]" ||
|
|
751
|
-
}
|
|
752
|
-
var Xo = typeof Symbol == "function" && Symbol.for, Jo = Xo ? Symbol.for("react.element") : 60103;
|
|
753
|
-
function Qo(t) {
|
|
754
|
-
return t.$$typeof === Jo;
|
|
750
|
+
return e === "[object RegExp]" || e === "[object Date]" || Zo(t);
|
|
755
751
|
}
|
|
752
|
+
var Jo = typeof Symbol == "function" && Symbol.for, Qo = Jo ? Symbol.for("react.element") : 60103;
|
|
756
753
|
function Zo(t) {
|
|
754
|
+
return t.$$typeof === Qo;
|
|
755
|
+
}
|
|
756
|
+
function ei(t) {
|
|
757
757
|
return Array.isArray(t) ? [] : {};
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
return e.clone !== !1 && e.isMergeableObject(t) ? Ze(
|
|
759
|
+
function Ot(t, e) {
|
|
760
|
+
return e.clone !== !1 && e.isMergeableObject(t) ? Ze(ei(t), t, e) : t;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function ti(t, e, r) {
|
|
763
763
|
return t.concat(e).map(function(n) {
|
|
764
|
-
return
|
|
764
|
+
return Ot(n, r);
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function ri(t, e) {
|
|
768
768
|
if (!e.customMerge)
|
|
769
769
|
return Ze;
|
|
770
770
|
var r = e.customMerge(t);
|
|
771
771
|
return typeof r == "function" ? r : Ze;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function ni(t) {
|
|
774
774
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
|
|
775
775
|
return Object.propertyIsEnumerable.call(t, e);
|
|
776
776
|
}) : [];
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
return Object.keys(t).concat(
|
|
778
|
+
function xn(t) {
|
|
779
|
+
return Object.keys(t).concat(ni(t));
|
|
780
780
|
}
|
|
781
781
|
function oa(t, e) {
|
|
782
782
|
try {
|
|
@@ -785,21 +785,21 @@ function oa(t, e) {
|
|
|
785
785
|
return !1;
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function ai(t, e) {
|
|
789
789
|
return oa(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function oi(t, e, r) {
|
|
792
792
|
var n = {};
|
|
793
|
-
return r.isMergeableObject(t) &&
|
|
794
|
-
n[a] =
|
|
795
|
-
}),
|
|
796
|
-
|
|
793
|
+
return r.isMergeableObject(t) && xn(t).forEach(function(a) {
|
|
794
|
+
n[a] = Ot(t[a], r);
|
|
795
|
+
}), xn(e).forEach(function(a) {
|
|
796
|
+
ai(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ri(a, r)(t[a], e[a], r) : n[a] = Ot(e[a], r));
|
|
797
797
|
}), n;
|
|
798
798
|
}
|
|
799
799
|
function Ze(t, e, r) {
|
|
800
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
800
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ti, r.isMergeableObject = r.isMergeableObject || zo, r.cloneUnlessOtherwiseSpecified = Ot;
|
|
801
801
|
var n = Array.isArray(e), a = Array.isArray(t), o = n === a;
|
|
802
|
-
return o ? n ? r.arrayMerge(t, e, r) :
|
|
802
|
+
return o ? n ? r.arrayMerge(t, e, r) : oi(t, e, r) : Ot(e, r);
|
|
803
803
|
}
|
|
804
804
|
Ze.all = function(e, r) {
|
|
805
805
|
if (!Array.isArray(e))
|
|
@@ -808,9 +808,9 @@ Ze.all = function(e, r) {
|
|
|
808
808
|
return Ze(n, a, r);
|
|
809
809
|
}, {});
|
|
810
810
|
};
|
|
811
|
-
var
|
|
812
|
-
const
|
|
813
|
-
var
|
|
811
|
+
var ii = Ze, li = ii;
|
|
812
|
+
const ui = /* @__PURE__ */ Uo(li);
|
|
813
|
+
var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = SyntaxError, At = TypeError, pi = URIError, yi = function() {
|
|
814
814
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
815
815
|
return !1;
|
|
816
816
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -833,52 +833,52 @@ var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = Synta
|
|
|
833
833
|
return !1;
|
|
834
834
|
}
|
|
835
835
|
return !0;
|
|
836
|
-
},
|
|
837
|
-
return typeof
|
|
838
|
-
},
|
|
836
|
+
}, On = typeof Symbol < "u" && Symbol, vi = yi, mi = function() {
|
|
837
|
+
return typeof On != "function" || typeof Symbol != "function" || typeof On("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : vi();
|
|
838
|
+
}, dr = {
|
|
839
839
|
__proto__: null,
|
|
840
840
|
foo: {}
|
|
841
|
-
},
|
|
842
|
-
return { __proto__:
|
|
843
|
-
},
|
|
841
|
+
}, hi = Object, gi = function() {
|
|
842
|
+
return { __proto__: dr }.foo === dr.foo && !(dr instanceof hi);
|
|
843
|
+
}, bi = "Function.prototype.bind called on incompatible ", wi = Object.prototype.toString, Ei = Math.max, Si = "[object Function]", Pn = function(e, r) {
|
|
844
844
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
845
845
|
n[a] = e[a];
|
|
846
846
|
for (var o = 0; o < r.length; o += 1)
|
|
847
847
|
n[o + e.length] = r[o];
|
|
848
848
|
return n;
|
|
849
|
-
},
|
|
849
|
+
}, xi = function(e, r) {
|
|
850
850
|
for (var n = [], a = r, o = 0; a < e.length; a += 1, o += 1)
|
|
851
851
|
n[o] = e[a];
|
|
852
852
|
return n;
|
|
853
|
-
},
|
|
853
|
+
}, Oi = function(t, e) {
|
|
854
854
|
for (var r = "", n = 0; n < t.length; n += 1)
|
|
855
855
|
r += t[n], n + 1 < t.length && (r += e);
|
|
856
856
|
return r;
|
|
857
|
-
},
|
|
857
|
+
}, Pi = function(e) {
|
|
858
858
|
var r = this;
|
|
859
|
-
if (typeof r != "function" ||
|
|
860
|
-
throw new TypeError(
|
|
861
|
-
for (var n =
|
|
859
|
+
if (typeof r != "function" || wi.apply(r) !== Si)
|
|
860
|
+
throw new TypeError(bi + r);
|
|
861
|
+
for (var n = xi(arguments, 1), a, o = function() {
|
|
862
862
|
if (this instanceof a) {
|
|
863
863
|
var s = r.apply(
|
|
864
864
|
this,
|
|
865
|
-
|
|
865
|
+
Pn(n, arguments)
|
|
866
866
|
);
|
|
867
867
|
return Object(s) === s ? s : this;
|
|
868
868
|
}
|
|
869
869
|
return r.apply(
|
|
870
870
|
e,
|
|
871
|
-
|
|
871
|
+
Pn(n, arguments)
|
|
872
872
|
);
|
|
873
|
-
}, l =
|
|
873
|
+
}, l = Ei(0, r.length - n.length), u = [], i = 0; i < l; i++)
|
|
874
874
|
u[i] = "$" + i;
|
|
875
|
-
if (a = Function("binder", "return function (" +
|
|
876
|
-
var
|
|
875
|
+
if (a = Function("binder", "return function (" + Oi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
876
|
+
var f = function() {
|
|
877
877
|
};
|
|
878
|
-
|
|
878
|
+
f.prototype = r.prototype, a.prototype = new f(), f.prototype = null;
|
|
879
879
|
}
|
|
880
880
|
return a;
|
|
881
|
-
},
|
|
881
|
+
}, Ai = Pi, Gr = Function.prototype.bind || Ai, Ti = Function.prototype.call, $i = Object.prototype.hasOwnProperty, Ri = Gr, Fi = Ri.call(Ti, $i), I, Ii = si, Ci = ci, Mi = fi, _i = di, et = ia, Qe = At, Di = pi, la = Function, pr = function(t) {
|
|
882
882
|
try {
|
|
883
883
|
return la('"use strict"; return (' + t + ").constructor;")();
|
|
884
884
|
} catch {
|
|
@@ -890,105 +890,105 @@ if (Be)
|
|
|
890
890
|
} catch {
|
|
891
891
|
Be = null;
|
|
892
892
|
}
|
|
893
|
-
var
|
|
893
|
+
var yr = function() {
|
|
894
894
|
throw new Qe();
|
|
895
|
-
},
|
|
895
|
+
}, Ni = Be ? function() {
|
|
896
896
|
try {
|
|
897
|
-
return arguments.callee,
|
|
897
|
+
return arguments.callee, yr;
|
|
898
898
|
} catch {
|
|
899
899
|
try {
|
|
900
900
|
return Be(arguments, "callee").get;
|
|
901
901
|
} catch {
|
|
902
|
-
return
|
|
902
|
+
return yr;
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
}() :
|
|
905
|
+
}() : yr, Ke = mi(), ki = gi(), Z = Object.getPrototypeOf || (ki ? function(t) {
|
|
906
906
|
return t.__proto__;
|
|
907
|
-
} : null), Je = {},
|
|
907
|
+
} : null), Je = {}, ji = typeof Uint8Array > "u" || !Z ? I : Z(Uint8Array), He = {
|
|
908
908
|
__proto__: null,
|
|
909
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
909
|
+
"%AggregateError%": typeof AggregateError > "u" ? I : AggregateError,
|
|
910
910
|
"%Array%": Array,
|
|
911
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
912
|
-
"%ArrayIteratorPrototype%": Ke && Z ? Z([][Symbol.iterator]()) :
|
|
913
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
911
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? I : ArrayBuffer,
|
|
912
|
+
"%ArrayIteratorPrototype%": Ke && Z ? Z([][Symbol.iterator]()) : I,
|
|
913
|
+
"%AsyncFromSyncIteratorPrototype%": I,
|
|
914
914
|
"%AsyncFunction%": Je,
|
|
915
915
|
"%AsyncGenerator%": Je,
|
|
916
916
|
"%AsyncGeneratorFunction%": Je,
|
|
917
917
|
"%AsyncIteratorPrototype%": Je,
|
|
918
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
919
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
920
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
921
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
918
|
+
"%Atomics%": typeof Atomics > "u" ? I : Atomics,
|
|
919
|
+
"%BigInt%": typeof BigInt > "u" ? I : BigInt,
|
|
920
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? I : BigInt64Array,
|
|
921
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? I : BigUint64Array,
|
|
922
922
|
"%Boolean%": Boolean,
|
|
923
|
-
"%DataView%": typeof DataView > "u" ?
|
|
923
|
+
"%DataView%": typeof DataView > "u" ? I : DataView,
|
|
924
924
|
"%Date%": Date,
|
|
925
925
|
"%decodeURI%": decodeURI,
|
|
926
926
|
"%decodeURIComponent%": decodeURIComponent,
|
|
927
927
|
"%encodeURI%": encodeURI,
|
|
928
928
|
"%encodeURIComponent%": encodeURIComponent,
|
|
929
|
-
"%Error%":
|
|
929
|
+
"%Error%": Ii,
|
|
930
930
|
"%eval%": eval,
|
|
931
931
|
// eslint-disable-line no-eval
|
|
932
932
|
"%EvalError%": Ci,
|
|
933
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
934
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
935
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
933
|
+
"%Float32Array%": typeof Float32Array > "u" ? I : Float32Array,
|
|
934
|
+
"%Float64Array%": typeof Float64Array > "u" ? I : Float64Array,
|
|
935
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? I : FinalizationRegistry,
|
|
936
936
|
"%Function%": la,
|
|
937
937
|
"%GeneratorFunction%": Je,
|
|
938
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
939
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
940
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
938
|
+
"%Int8Array%": typeof Int8Array > "u" ? I : Int8Array,
|
|
939
|
+
"%Int16Array%": typeof Int16Array > "u" ? I : Int16Array,
|
|
940
|
+
"%Int32Array%": typeof Int32Array > "u" ? I : Int32Array,
|
|
941
941
|
"%isFinite%": isFinite,
|
|
942
942
|
"%isNaN%": isNaN,
|
|
943
|
-
"%IteratorPrototype%": Ke && Z ? Z(Z([][Symbol.iterator]())) :
|
|
944
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
945
|
-
"%Map%": typeof Map > "u" ?
|
|
946
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !Ke || !Z ?
|
|
943
|
+
"%IteratorPrototype%": Ke && Z ? Z(Z([][Symbol.iterator]())) : I,
|
|
944
|
+
"%JSON%": typeof JSON == "object" ? JSON : I,
|
|
945
|
+
"%Map%": typeof Map > "u" ? I : Map,
|
|
946
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Ke || !Z ? I : Z((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
947
947
|
"%Math%": Math,
|
|
948
948
|
"%Number%": Number,
|
|
949
949
|
"%Object%": Object,
|
|
950
950
|
"%parseFloat%": parseFloat,
|
|
951
951
|
"%parseInt%": parseInt,
|
|
952
|
-
"%Promise%": typeof Promise > "u" ?
|
|
953
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
954
|
-
"%RangeError%":
|
|
955
|
-
"%ReferenceError%":
|
|
956
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
952
|
+
"%Promise%": typeof Promise > "u" ? I : Promise,
|
|
953
|
+
"%Proxy%": typeof Proxy > "u" ? I : Proxy,
|
|
954
|
+
"%RangeError%": Mi,
|
|
955
|
+
"%ReferenceError%": _i,
|
|
956
|
+
"%Reflect%": typeof Reflect > "u" ? I : Reflect,
|
|
957
957
|
"%RegExp%": RegExp,
|
|
958
|
-
"%Set%": typeof Set > "u" ?
|
|
959
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !Ke || !Z ?
|
|
960
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
958
|
+
"%Set%": typeof Set > "u" ? I : Set,
|
|
959
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Ke || !Z ? I : Z((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
960
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? I : SharedArrayBuffer,
|
|
961
961
|
"%String%": String,
|
|
962
|
-
"%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) :
|
|
963
|
-
"%Symbol%": Ke ? Symbol :
|
|
962
|
+
"%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) : I,
|
|
963
|
+
"%Symbol%": Ke ? Symbol : I,
|
|
964
964
|
"%SyntaxError%": et,
|
|
965
|
-
"%ThrowTypeError%":
|
|
966
|
-
"%TypedArray%":
|
|
965
|
+
"%ThrowTypeError%": Ni,
|
|
966
|
+
"%TypedArray%": ji,
|
|
967
967
|
"%TypeError%": Qe,
|
|
968
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
969
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
970
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
971
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
972
|
-
"%URIError%":
|
|
973
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
974
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
975
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
968
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? I : Uint8Array,
|
|
969
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? I : Uint8ClampedArray,
|
|
970
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? I : Uint16Array,
|
|
971
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? I : Uint32Array,
|
|
972
|
+
"%URIError%": Di,
|
|
973
|
+
"%WeakMap%": typeof WeakMap > "u" ? I : WeakMap,
|
|
974
|
+
"%WeakRef%": typeof WeakRef > "u" ? I : WeakRef,
|
|
975
|
+
"%WeakSet%": typeof WeakSet > "u" ? I : WeakSet
|
|
976
976
|
};
|
|
977
977
|
if (Z)
|
|
978
978
|
try {
|
|
979
979
|
null.error;
|
|
980
980
|
} catch (t) {
|
|
981
|
-
var
|
|
982
|
-
He["%Error.prototype%"] =
|
|
981
|
+
var Li = Z(Z(t));
|
|
982
|
+
He["%Error.prototype%"] = Li;
|
|
983
983
|
}
|
|
984
|
-
var
|
|
984
|
+
var Wi = function t(e) {
|
|
985
985
|
var r;
|
|
986
986
|
if (e === "%AsyncFunction%")
|
|
987
|
-
r =
|
|
987
|
+
r = pr("async function () {}");
|
|
988
988
|
else if (e === "%GeneratorFunction%")
|
|
989
|
-
r =
|
|
989
|
+
r = pr("function* () {}");
|
|
990
990
|
else if (e === "%AsyncGeneratorFunction%")
|
|
991
|
-
r =
|
|
991
|
+
r = pr("async function* () {}");
|
|
992
992
|
else if (e === "%AsyncGenerator%") {
|
|
993
993
|
var n = t("%AsyncGeneratorFunction%");
|
|
994
994
|
n && (r = n.prototype);
|
|
@@ -997,7 +997,7 @@ var Li = function t(e) {
|
|
|
997
997
|
a && Z && (r = Z(a.prototype));
|
|
998
998
|
}
|
|
999
999
|
return He[e] = r, r;
|
|
1000
|
-
},
|
|
1000
|
+
}, An = {
|
|
1001
1001
|
__proto__: null,
|
|
1002
1002
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
1003
1003
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -1050,21 +1050,21 @@ var Li = function t(e) {
|
|
|
1050
1050
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1051
1051
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1052
1052
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1053
|
-
},
|
|
1054
|
-
var r =
|
|
1053
|
+
}, Tt = Gr, Wt = Fi, Ui = Tt.call(Function.call, Array.prototype.concat), Bi = Tt.call(Function.apply, Array.prototype.splice), Tn = Tt.call(Function.call, String.prototype.replace), Ut = Tt.call(Function.call, String.prototype.slice), Hi = Tt.call(Function.call, RegExp.prototype.exec), Vi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qi = /\\(\\)?/g, Gi = function(e) {
|
|
1054
|
+
var r = Ut(e, 0, 1), n = Ut(e, -1);
|
|
1055
1055
|
if (r === "%" && n !== "%")
|
|
1056
1056
|
throw new et("invalid intrinsic syntax, expected closing `%`");
|
|
1057
1057
|
if (n === "%" && r !== "%")
|
|
1058
1058
|
throw new et("invalid intrinsic syntax, expected opening `%`");
|
|
1059
1059
|
var a = [];
|
|
1060
|
-
return
|
|
1061
|
-
a[a.length] = u ?
|
|
1060
|
+
return Tn(e, Vi, function(o, l, u, i) {
|
|
1061
|
+
a[a.length] = u ? Tn(i, qi, "$1") : l || o;
|
|
1062
1062
|
}), a;
|
|
1063
|
-
},
|
|
1063
|
+
}, Yi = function(e, r) {
|
|
1064
1064
|
var n = e, a;
|
|
1065
|
-
if (
|
|
1065
|
+
if (Wt(An, n) && (a = An[n], n = "%" + a[0] + "%"), Wt(He, n)) {
|
|
1066
1066
|
var o = He[n];
|
|
1067
|
-
if (o === Je && (o =
|
|
1067
|
+
if (o === Je && (o = Wi(n)), typeof o > "u" && !r)
|
|
1068
1068
|
throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1069
1069
|
return {
|
|
1070
1070
|
alias: a,
|
|
@@ -1078,15 +1078,15 @@ var Li = function t(e) {
|
|
|
1078
1078
|
throw new Qe("intrinsic name must be a non-empty string");
|
|
1079
1079
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
1080
1080
|
throw new Qe('"allowMissing" argument must be a boolean');
|
|
1081
|
-
if (
|
|
1081
|
+
if (Hi(/^%?[^%]*%?$/, e) === null)
|
|
1082
1082
|
throw new et("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1083
|
-
var n =
|
|
1084
|
-
|
|
1085
|
-
for (var s = 1,
|
|
1086
|
-
var v = n[s], w =
|
|
1087
|
-
if ((w === '"' || w === "'" || w === "`" ||
|
|
1083
|
+
var n = Gi(e), a = n.length > 0 ? n[0] : "", o = Yi("%" + a + "%", r), l = o.name, u = o.value, i = !1, f = o.alias;
|
|
1084
|
+
f && (a = f[0], Bi(n, Ui([0, 1], f)));
|
|
1085
|
+
for (var s = 1, h = !0; s < n.length; s += 1) {
|
|
1086
|
+
var v = n[s], w = Ut(v, 0, 1), d = Ut(v, -1);
|
|
1087
|
+
if ((w === '"' || w === "'" || w === "`" || d === '"' || d === "'" || d === "`") && w !== d)
|
|
1088
1088
|
throw new et("property names with quotes must have matching quotes");
|
|
1089
|
-
if ((v === "constructor" || !
|
|
1089
|
+
if ((v === "constructor" || !h) && (i = !0), a += "." + v, l = "%" + a + "%", Wt(He, l))
|
|
1090
1090
|
u = He[l];
|
|
1091
1091
|
else if (u != null) {
|
|
1092
1092
|
if (!(v in u)) {
|
|
@@ -1096,17 +1096,17 @@ var Li = function t(e) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
if (Be && s + 1 >= n.length) {
|
|
1098
1098
|
var y = Be(u, v);
|
|
1099
|
-
|
|
1099
|
+
h = !!y, h && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
|
|
1100
1100
|
} else
|
|
1101
|
-
|
|
1102
|
-
|
|
1101
|
+
h = Wt(u, v), u = u[v];
|
|
1102
|
+
h && !i && (He[l] = u);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
return u;
|
|
1106
|
-
}, ua = { exports: {} },
|
|
1107
|
-
function
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1106
|
+
}, ua = { exports: {} }, vr, $n;
|
|
1107
|
+
function Yr() {
|
|
1108
|
+
if ($n) return vr;
|
|
1109
|
+
$n = 1;
|
|
1110
1110
|
var t = nt, e = t("%Object.defineProperty%", !0) || !1;
|
|
1111
1111
|
if (e)
|
|
1112
1112
|
try {
|
|
@@ -1114,16 +1114,16 @@ function Gr() {
|
|
|
1114
1114
|
} catch {
|
|
1115
1115
|
e = !1;
|
|
1116
1116
|
}
|
|
1117
|
-
return
|
|
1117
|
+
return vr = e, vr;
|
|
1118
1118
|
}
|
|
1119
|
-
var
|
|
1120
|
-
if (
|
|
1119
|
+
var zi = nt, kt = zi("%Object.getOwnPropertyDescriptor%", !0);
|
|
1120
|
+
if (kt)
|
|
1121
1121
|
try {
|
|
1122
|
-
|
|
1122
|
+
kt([], "length");
|
|
1123
1123
|
} catch {
|
|
1124
|
-
|
|
1124
|
+
kt = null;
|
|
1125
1125
|
}
|
|
1126
|
-
var sa =
|
|
1126
|
+
var sa = kt, Rn = Yr(), Ki = ia, Xe = At, Fn = sa, Xi = function(e, r, n) {
|
|
1127
1127
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
1128
1128
|
throw new Xe("`obj` must be an object or a function`");
|
|
1129
1129
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -1136,9 +1136,9 @@ var sa = Nt, $n = Gr(), zi = ia, Xe = Pt, Rn = sa, Ki = function(e, r, n) {
|
|
|
1136
1136
|
throw new Xe("`nonConfigurable`, if provided, must be a boolean or null");
|
|
1137
1137
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
1138
1138
|
throw new Xe("`loose`, if provided, must be a boolean");
|
|
1139
|
-
var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!
|
|
1140
|
-
if (
|
|
1141
|
-
|
|
1139
|
+
var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!Fn && Fn(e, r);
|
|
1140
|
+
if (Rn)
|
|
1141
|
+
Rn(e, r, {
|
|
1142
1142
|
configurable: l === null && i ? i.configurable : !l,
|
|
1143
1143
|
enumerable: a === null && i ? i.enumerable : !a,
|
|
1144
1144
|
value: n,
|
|
@@ -1147,37 +1147,37 @@ var sa = Nt, $n = Gr(), zi = ia, Xe = Pt, Rn = sa, Ki = function(e, r, n) {
|
|
|
1147
1147
|
else if (u || !a && !o && !l)
|
|
1148
1148
|
e[r] = n;
|
|
1149
1149
|
else
|
|
1150
|
-
throw new
|
|
1151
|
-
},
|
|
1152
|
-
return
|
|
1150
|
+
throw new Ki("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
1151
|
+
}, Rr = Yr(), ca = function() {
|
|
1152
|
+
return !!Rr;
|
|
1153
1153
|
};
|
|
1154
1154
|
ca.hasArrayLengthDefineBug = function() {
|
|
1155
|
-
if (
|
|
1155
|
+
if (!Rr)
|
|
1156
1156
|
return null;
|
|
1157
1157
|
try {
|
|
1158
|
-
return
|
|
1158
|
+
return Rr([], "length", { value: 1 }).length !== 1;
|
|
1159
1159
|
} catch {
|
|
1160
1160
|
return !0;
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
|
-
var
|
|
1163
|
+
var Ji = ca, Qi = nt, In = Xi, Zi = Ji(), Cn = sa, Mn = At, el = Qi("%Math.floor%"), tl = function(e, r) {
|
|
1164
1164
|
if (typeof e != "function")
|
|
1165
|
-
throw new
|
|
1166
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
1167
|
-
throw new
|
|
1165
|
+
throw new Mn("`fn` is not a function");
|
|
1166
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || el(r) !== r)
|
|
1167
|
+
throw new Mn("`length` must be a positive 32-bit integer");
|
|
1168
1168
|
var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
|
|
1169
1169
|
if ("length" in e && Cn) {
|
|
1170
1170
|
var l = Cn(e, "length");
|
|
1171
1171
|
l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
|
|
1172
1172
|
}
|
|
1173
|
-
return (a || o || !n) && (
|
|
1173
|
+
return (a || o || !n) && (Zi ? In(
|
|
1174
1174
|
/** @type {Parameters<define>[0]} */
|
|
1175
1175
|
e,
|
|
1176
1176
|
"length",
|
|
1177
1177
|
r,
|
|
1178
1178
|
!0,
|
|
1179
1179
|
!0
|
|
1180
|
-
) :
|
|
1180
|
+
) : In(
|
|
1181
1181
|
/** @type {Parameters<define>[0]} */
|
|
1182
1182
|
e,
|
|
1183
1183
|
"length",
|
|
@@ -1185,14 +1185,14 @@ var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Pt, Zi = Ji("%Math.floor
|
|
|
1185
1185
|
)), e;
|
|
1186
1186
|
};
|
|
1187
1187
|
(function(t) {
|
|
1188
|
-
var e =
|
|
1188
|
+
var e = Gr, r = nt, n = tl, a = At, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Yr(), f = r("%Math.max%");
|
|
1189
1189
|
t.exports = function(v) {
|
|
1190
1190
|
if (typeof v != "function")
|
|
1191
1191
|
throw new a("a function is required");
|
|
1192
1192
|
var w = u(e, l, arguments);
|
|
1193
1193
|
return n(
|
|
1194
1194
|
w,
|
|
1195
|
-
1 +
|
|
1195
|
+
1 + f(0, v.length - (arguments.length - 1)),
|
|
1196
1196
|
!0
|
|
1197
1197
|
);
|
|
1198
1198
|
};
|
|
@@ -1201,31 +1201,31 @@ var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Pt, Zi = Ji("%Math.floor
|
|
|
1201
1201
|
};
|
|
1202
1202
|
i ? i(t.exports, "apply", { value: s }) : t.exports.apply = s;
|
|
1203
1203
|
})(ua);
|
|
1204
|
-
var
|
|
1204
|
+
var rl = ua.exports, fa = nt, da = rl, nl = da(fa("String.prototype.indexOf")), al = function(e, r) {
|
|
1205
1205
|
var n = fa(e, !!r);
|
|
1206
|
-
return typeof n == "function" &&
|
|
1206
|
+
return typeof n == "function" && nl(e, ".prototype.") > -1 ? da(n) : n;
|
|
1207
1207
|
};
|
|
1208
|
-
const
|
|
1208
|
+
const ol = {}, il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1209
1209
|
__proto__: null,
|
|
1210
|
-
default:
|
|
1211
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1212
|
-
var
|
|
1210
|
+
default: ol
|
|
1211
|
+
}, Symbol.toStringTag, { value: "Module" })), ll = /* @__PURE__ */ Bo(il);
|
|
1212
|
+
var zr = typeof Map == "function" && Map.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Map.prototype.forEach, Kr = typeof Set == "function" && Set.prototype, hr = Object.getOwnPropertyDescriptor && Kr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ht = Kr && hr && typeof hr.get == "function" ? hr.get : null, Dn = Kr && Set.prototype.forEach, ul = typeof WeakMap == "function" && WeakMap.prototype, gt = ul ? WeakMap.prototype.has : null, sl = typeof WeakSet == "function" && WeakSet.prototype, bt = sl ? WeakSet.prototype.has : null, cl = typeof WeakRef == "function" && WeakRef.prototype, Nn = cl ? WeakRef.prototype.deref : null, fl = Boolean.prototype.valueOf, dl = Object.prototype.toString, pl = Function.prototype.toString, yl = String.prototype.match, Xr = String.prototype.slice, Re = String.prototype.replace, vl = String.prototype.toUpperCase, kn = String.prototype.toLowerCase, pa = RegExp.prototype.test, jn = Array.prototype.concat, Ee = Array.prototype.join, ml = Array.prototype.slice, Ln = Math.floor, Fr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gr = Object.getOwnPropertySymbols, Ir = 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, Wn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1213
1213
|
return t.__proto__;
|
|
1214
1214
|
} : null);
|
|
1215
|
-
function
|
|
1215
|
+
function Un(t, e) {
|
|
1216
1216
|
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || pa.call(/e/, e))
|
|
1217
1217
|
return e;
|
|
1218
1218
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1219
1219
|
if (typeof t == "number") {
|
|
1220
|
-
var n = t < 0 ? -
|
|
1220
|
+
var n = t < 0 ? -Ln(-t) : Ln(t);
|
|
1221
1221
|
if (n !== t) {
|
|
1222
|
-
var a = String(n), o =
|
|
1222
|
+
var a = String(n), o = Xr.call(e, a.length + 1);
|
|
1223
1223
|
return Re.call(a, r, "$&_") + "." + Re.call(Re.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
return Re.call(e, r, "$&_");
|
|
1227
1227
|
}
|
|
1228
|
-
var Cr =
|
|
1228
|
+
var Cr = ll, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, hl = function t(e, r, n, a) {
|
|
1229
1229
|
var o = r || {};
|
|
1230
1230
|
if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
1231
1231
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -1251,22 +1251,22 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
|
|
|
1251
1251
|
if (e === 0)
|
|
1252
1252
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
1253
1253
|
var i = String(e);
|
|
1254
|
-
return u ?
|
|
1254
|
+
return u ? Un(e, i) : i;
|
|
1255
1255
|
}
|
|
1256
1256
|
if (typeof e == "bigint") {
|
|
1257
|
-
var
|
|
1258
|
-
return u ?
|
|
1257
|
+
var f = String(e) + "n";
|
|
1258
|
+
return u ? Un(e, f) : f;
|
|
1259
1259
|
}
|
|
1260
1260
|
var s = typeof o.depth > "u" ? 5 : o.depth;
|
|
1261
1261
|
if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
|
|
1262
|
-
return
|
|
1263
|
-
var
|
|
1262
|
+
return Mr(e) ? "[Array]" : "[Object]";
|
|
1263
|
+
var h = Dl(o, n);
|
|
1264
1264
|
if (typeof a > "u")
|
|
1265
1265
|
a = [];
|
|
1266
1266
|
else if (ha(a, e) >= 0)
|
|
1267
1267
|
return "[Circular]";
|
|
1268
1268
|
function v($, T, D) {
|
|
1269
|
-
if (T && (a =
|
|
1269
|
+
if (T && (a = ml.call(a), a.push(T)), D) {
|
|
1270
1270
|
var ue = {
|
|
1271
1271
|
depth: o.depth
|
|
1272
1272
|
};
|
|
@@ -1274,68 +1274,68 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
|
|
|
1274
1274
|
}
|
|
1275
1275
|
return t($, o, n + 1, a);
|
|
1276
1276
|
}
|
|
1277
|
-
if (typeof e == "function" && !
|
|
1278
|
-
var w =
|
|
1279
|
-
return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (
|
|
1277
|
+
if (typeof e == "function" && !Vn(e)) {
|
|
1278
|
+
var w = Al(e), d = Mt(e, v);
|
|
1279
|
+
return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (d.length > 0 ? " { " + Ee.call(d, ", ") + " }" : "");
|
|
1280
1280
|
}
|
|
1281
1281
|
if (ma(e)) {
|
|
1282
|
-
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
1282
|
+
var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ir.call(e);
|
|
1283
1283
|
return typeof e == "object" && !tt ? pt(y) : y;
|
|
1284
1284
|
}
|
|
1285
1285
|
if (Cl(e)) {
|
|
1286
|
-
for (var p = "<" +
|
|
1287
|
-
p += " " + m[
|
|
1288
|
-
return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" +
|
|
1286
|
+
for (var p = "<" + kn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
|
|
1287
|
+
p += " " + m[g].name + "=" + va(gl(m[g].value), "double", o);
|
|
1288
|
+
return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + kn.call(String(e.nodeName)) + ">", p;
|
|
1289
1289
|
}
|
|
1290
|
-
if (
|
|
1290
|
+
if (Mr(e)) {
|
|
1291
1291
|
if (e.length === 0)
|
|
1292
1292
|
return "[]";
|
|
1293
|
-
var b =
|
|
1294
|
-
return
|
|
1293
|
+
var b = Mt(e, v);
|
|
1294
|
+
return h && !_l(b) ? "[" + _r(b, h) + "]" : "[ " + Ee.call(b, ", ") + " ]";
|
|
1295
1295
|
}
|
|
1296
|
-
if (
|
|
1297
|
-
var S =
|
|
1298
|
-
return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(
|
|
1296
|
+
if (wl(e)) {
|
|
1297
|
+
var S = Mt(e, v);
|
|
1298
|
+
return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(jn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
|
|
1299
1299
|
}
|
|
1300
1300
|
if (typeof e == "object" && l) {
|
|
1301
|
-
if (
|
|
1301
|
+
if (Hn && typeof e[Hn] == "function" && Cr)
|
|
1302
1302
|
return Cr(e, { depth: s - n });
|
|
1303
1303
|
if (l !== "symbol" && typeof e.inspect == "function")
|
|
1304
1304
|
return e.inspect();
|
|
1305
1305
|
}
|
|
1306
|
-
if (
|
|
1306
|
+
if (Tl(e)) {
|
|
1307
1307
|
var O = [];
|
|
1308
|
-
return
|
|
1308
|
+
return _n && _n.call(e, function($, T) {
|
|
1309
1309
|
O.push(v(T, e, !0) + " => " + v($, e));
|
|
1310
|
-
}),
|
|
1310
|
+
}), qn("Map", Bt.call(e), O, h);
|
|
1311
1311
|
}
|
|
1312
|
-
if (
|
|
1312
|
+
if (Fl(e)) {
|
|
1313
1313
|
var _ = [];
|
|
1314
|
-
return
|
|
1314
|
+
return Dn && Dn.call(e, function($) {
|
|
1315
1315
|
_.push(v($, e));
|
|
1316
|
-
}),
|
|
1316
|
+
}), qn("Set", Ht.call(e), _, h);
|
|
1317
1317
|
}
|
|
1318
|
-
if (Tl(e))
|
|
1319
|
-
return gr("WeakMap");
|
|
1320
|
-
if (Fl(e))
|
|
1321
|
-
return gr("WeakSet");
|
|
1322
1318
|
if ($l(e))
|
|
1323
|
-
return
|
|
1324
|
-
if (
|
|
1319
|
+
return br("WeakMap");
|
|
1320
|
+
if (Il(e))
|
|
1321
|
+
return br("WeakSet");
|
|
1322
|
+
if (Rl(e))
|
|
1323
|
+
return br("WeakRef");
|
|
1324
|
+
if (Sl(e))
|
|
1325
1325
|
return pt(v(Number(e)));
|
|
1326
|
+
if (Ol(e))
|
|
1327
|
+
return pt(v(Fr.call(e)));
|
|
1326
1328
|
if (xl(e))
|
|
1327
|
-
return pt(
|
|
1328
|
-
if (
|
|
1329
|
-
return pt(cl.call(e));
|
|
1330
|
-
if (wl(e))
|
|
1329
|
+
return pt(fl.call(e));
|
|
1330
|
+
if (El(e))
|
|
1331
1331
|
return pt(v(String(e)));
|
|
1332
1332
|
if (typeof window < "u" && e === window)
|
|
1333
1333
|
return "{ [object Window] }";
|
|
1334
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
1334
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Tr < "u" && e === Tr)
|
|
1335
1335
|
return "{ [object globalThis] }";
|
|
1336
|
-
if (!
|
|
1337
|
-
var M =
|
|
1338
|
-
return M.length === 0 ? V + "{}" :
|
|
1336
|
+
if (!bl(e) && !Vn(e)) {
|
|
1337
|
+
var M = Mt(e, v), W = Wn ? Wn(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", j = !W && re && Object(e) === e && re in e ? Xr.call(Ce(e), 8, -1) : H ? "Object" : "", z = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = z + (j || H ? "[" + Ee.call(jn.call([], j || [], H || []), ": ") + "] " : "");
|
|
1338
|
+
return M.length === 0 ? V + "{}" : h ? V + "{" + _r(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
|
|
1339
1339
|
}
|
|
1340
1340
|
return String(e);
|
|
1341
1341
|
};
|
|
@@ -1343,65 +1343,65 @@ function va(t, e, r) {
|
|
|
1343
1343
|
var n = (r.quoteStyle || e) === "double" ? '"' : "'";
|
|
1344
1344
|
return n + t + n;
|
|
1345
1345
|
}
|
|
1346
|
-
function hl(t) {
|
|
1347
|
-
return Re.call(String(t), /"/g, """);
|
|
1348
|
-
}
|
|
1349
|
-
function Ir(t) {
|
|
1350
|
-
return Ie(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
|
|
1351
|
-
}
|
|
1352
1346
|
function gl(t) {
|
|
1353
|
-
return
|
|
1347
|
+
return Re.call(String(t), /"/g, """);
|
|
1354
1348
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1349
|
+
function Mr(t) {
|
|
1350
|
+
return Ce(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
|
|
1357
1351
|
}
|
|
1358
1352
|
function bl(t) {
|
|
1359
|
-
return
|
|
1353
|
+
return Ce(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
|
|
1354
|
+
}
|
|
1355
|
+
function Vn(t) {
|
|
1356
|
+
return Ce(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
|
|
1360
1357
|
}
|
|
1361
1358
|
function wl(t) {
|
|
1362
|
-
return
|
|
1359
|
+
return Ce(t) === "[object Error]" && (!re || !(typeof t == "object" && re in t));
|
|
1363
1360
|
}
|
|
1364
1361
|
function El(t) {
|
|
1365
|
-
return
|
|
1362
|
+
return Ce(t) === "[object String]" && (!re || !(typeof t == "object" && re in t));
|
|
1366
1363
|
}
|
|
1367
1364
|
function Sl(t) {
|
|
1368
|
-
return
|
|
1365
|
+
return Ce(t) === "[object Number]" && (!re || !(typeof t == "object" && re in t));
|
|
1366
|
+
}
|
|
1367
|
+
function xl(t) {
|
|
1368
|
+
return Ce(t) === "[object Boolean]" && (!re || !(typeof t == "object" && re in t));
|
|
1369
1369
|
}
|
|
1370
1370
|
function ma(t) {
|
|
1371
1371
|
if (tt)
|
|
1372
1372
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
1373
1373
|
if (typeof t == "symbol")
|
|
1374
1374
|
return !0;
|
|
1375
|
-
if (!t || typeof t != "object" || !
|
|
1375
|
+
if (!t || typeof t != "object" || !Ir)
|
|
1376
1376
|
return !1;
|
|
1377
1377
|
try {
|
|
1378
|
-
return
|
|
1378
|
+
return Ir.call(t), !0;
|
|
1379
1379
|
} catch {
|
|
1380
1380
|
}
|
|
1381
1381
|
return !1;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
if (!t || typeof t != "object" || !
|
|
1383
|
+
function Ol(t) {
|
|
1384
|
+
if (!t || typeof t != "object" || !Fr)
|
|
1385
1385
|
return !1;
|
|
1386
1386
|
try {
|
|
1387
|
-
return
|
|
1387
|
+
return Fr.call(t), !0;
|
|
1388
1388
|
} catch {
|
|
1389
1389
|
}
|
|
1390
1390
|
return !1;
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1392
|
+
var Pl = Object.prototype.hasOwnProperty || function(t) {
|
|
1393
1393
|
return t in this;
|
|
1394
1394
|
};
|
|
1395
1395
|
function Te(t, e) {
|
|
1396
|
-
return
|
|
1396
|
+
return Pl.call(t, e);
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
return
|
|
1398
|
+
function Ce(t) {
|
|
1399
|
+
return dl.call(t);
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function Al(t) {
|
|
1402
1402
|
if (t.name)
|
|
1403
1403
|
return t.name;
|
|
1404
|
-
var e =
|
|
1404
|
+
var e = yl.call(pl.call(t), /^function\s*([\w$]+)/);
|
|
1405
1405
|
return e ? e[1] : null;
|
|
1406
1406
|
}
|
|
1407
1407
|
function ha(t, e) {
|
|
@@ -1412,13 +1412,13 @@ function ha(t, e) {
|
|
|
1412
1412
|
return r;
|
|
1413
1413
|
return -1;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1416
|
-
if (!
|
|
1415
|
+
function Tl(t) {
|
|
1416
|
+
if (!Bt || !t || typeof t != "object")
|
|
1417
1417
|
return !1;
|
|
1418
1418
|
try {
|
|
1419
|
-
|
|
1419
|
+
Bt.call(t);
|
|
1420
1420
|
try {
|
|
1421
|
-
|
|
1421
|
+
Ht.call(t);
|
|
1422
1422
|
} catch {
|
|
1423
1423
|
return !0;
|
|
1424
1424
|
}
|
|
@@ -1427,7 +1427,7 @@ function Al(t) {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
return !1;
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function $l(t) {
|
|
1431
1431
|
if (!gt || !t || typeof t != "object")
|
|
1432
1432
|
return !1;
|
|
1433
1433
|
try {
|
|
@@ -1442,22 +1442,22 @@ function Tl(t) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
return !1;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1446
|
-
if (!
|
|
1445
|
+
function Rl(t) {
|
|
1446
|
+
if (!Nn || !t || typeof t != "object")
|
|
1447
1447
|
return !1;
|
|
1448
1448
|
try {
|
|
1449
|
-
return
|
|
1449
|
+
return Nn.call(t), !0;
|
|
1450
1450
|
} catch {
|
|
1451
1451
|
}
|
|
1452
1452
|
return !1;
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
if (!
|
|
1454
|
+
function Fl(t) {
|
|
1455
|
+
if (!Ht || !t || typeof t != "object")
|
|
1456
1456
|
return !1;
|
|
1457
1457
|
try {
|
|
1458
|
-
|
|
1458
|
+
Ht.call(t);
|
|
1459
1459
|
try {
|
|
1460
|
-
|
|
1460
|
+
Bt.call(t);
|
|
1461
1461
|
} catch {
|
|
1462
1462
|
return !0;
|
|
1463
1463
|
}
|
|
@@ -1466,7 +1466,7 @@ function Rl(t) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return !1;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Il(t) {
|
|
1470
1470
|
if (!bt || !t || typeof t != "object")
|
|
1471
1471
|
return !1;
|
|
1472
1472
|
try {
|
|
@@ -1487,12 +1487,12 @@ function Cl(t) {
|
|
|
1487
1487
|
function ga(t, e) {
|
|
1488
1488
|
if (t.length > e.maxStringLength) {
|
|
1489
1489
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
1490
|
-
return ga(
|
|
1490
|
+
return ga(Xr.call(t, 0, e.maxStringLength), e) + n;
|
|
1491
1491
|
}
|
|
1492
|
-
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, Ml);
|
|
1493
1493
|
return va(a, "single", e);
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Ml(t) {
|
|
1496
1496
|
var e = t.charCodeAt(0), r = {
|
|
1497
1497
|
8: "b",
|
|
1498
1498
|
9: "t",
|
|
@@ -1500,26 +1500,26 @@ function Il(t) {
|
|
|
1500
1500
|
12: "f",
|
|
1501
1501
|
13: "r"
|
|
1502
1502
|
}[e];
|
|
1503
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") +
|
|
1503
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + vl.call(e.toString(16));
|
|
1504
1504
|
}
|
|
1505
1505
|
function pt(t) {
|
|
1506
1506
|
return "Object(" + t + ")";
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function br(t) {
|
|
1509
1509
|
return t + " { ? }";
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1512
|
-
var a = n ?
|
|
1511
|
+
function qn(t, e, r, n) {
|
|
1512
|
+
var a = n ? _r(r, n) : Ee.call(r, ", ");
|
|
1513
1513
|
return t + " (" + e + ") {" + a + "}";
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function _l(t) {
|
|
1516
1516
|
for (var e = 0; e < t.length; e++)
|
|
1517
1517
|
if (ha(t[e], `
|
|
1518
1518
|
`) >= 0)
|
|
1519
1519
|
return !1;
|
|
1520
1520
|
return !0;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Dl(t, e) {
|
|
1523
1523
|
var r;
|
|
1524
1524
|
if (t.indent === " ")
|
|
1525
1525
|
r = " ";
|
|
@@ -1532,7 +1532,7 @@ function _l(t, e) {
|
|
|
1532
1532
|
prev: Ee.call(Array(e + 1), r)
|
|
1533
1533
|
};
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function _r(t, e) {
|
|
1536
1536
|
if (t.length === 0)
|
|
1537
1537
|
return "";
|
|
1538
1538
|
var r = `
|
|
@@ -1540,14 +1540,14 @@ function Mr(t, e) {
|
|
|
1540
1540
|
return r + Ee.call(t, "," + r) + `
|
|
1541
1541
|
` + e.prev;
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1544
|
-
var r =
|
|
1543
|
+
function Mt(t, e) {
|
|
1544
|
+
var r = Mr(t), n = [];
|
|
1545
1545
|
if (r) {
|
|
1546
1546
|
n.length = t.length;
|
|
1547
1547
|
for (var a = 0; a < t.length; a++)
|
|
1548
1548
|
n[a] = Te(t, a) ? e(t[a], t) : "";
|
|
1549
1549
|
}
|
|
1550
|
-
var o = typeof
|
|
1550
|
+
var o = typeof gr == "function" ? gr(t) : [], l;
|
|
1551
1551
|
if (tt) {
|
|
1552
1552
|
l = {};
|
|
1553
1553
|
for (var u = 0; u < o.length; u++)
|
|
@@ -1555,21 +1555,21 @@ function It(t, e) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
for (var i in t)
|
|
1557
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))));
|
|
1558
|
-
if (typeof
|
|
1559
|
-
for (var
|
|
1560
|
-
ya.call(t, o[
|
|
1558
|
+
if (typeof gr == "function")
|
|
1559
|
+
for (var f = 0; f < o.length; f++)
|
|
1560
|
+
ya.call(t, o[f]) && n.push("[" + e(o[f]) + "]: " + e(t[o[f]], t));
|
|
1561
1561
|
return n;
|
|
1562
1562
|
}
|
|
1563
|
-
var ba = nt, at =
|
|
1563
|
+
var ba = nt, at = al, Nl = hl, kl = At, _t = ba("%WeakMap%", !0), Dt = ba("%Map%", !0), jl = at("WeakMap.prototype.get", !0), Ll = at("WeakMap.prototype.set", !0), Wl = at("WeakMap.prototype.has", !0), Ul = at("Map.prototype.get", !0), Bl = at("Map.prototype.set", !0), Hl = at("Map.prototype.has", !0), Jr = function(t, e) {
|
|
1564
1564
|
for (var r = t, n; (n = r.next) !== null; r = n)
|
|
1565
1565
|
if (n.key === e)
|
|
1566
1566
|
return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
|
|
1567
1567
|
t.next, t.next = n, n;
|
|
1568
|
-
},
|
|
1569
|
-
var r =
|
|
1568
|
+
}, Vl = function(t, e) {
|
|
1569
|
+
var r = Jr(t, e);
|
|
1570
1570
|
return r && r.value;
|
|
1571
|
-
},
|
|
1572
|
-
var n =
|
|
1571
|
+
}, ql = function(t, e, r) {
|
|
1572
|
+
var n = Jr(t, e);
|
|
1573
1573
|
n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
1574
1574
|
{
|
|
1575
1575
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -1577,60 +1577,60 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1577
1577
|
next: t.next,
|
|
1578
1578
|
value: r
|
|
1579
1579
|
};
|
|
1580
|
-
},
|
|
1581
|
-
return !!
|
|
1582
|
-
},
|
|
1580
|
+
}, Gl = function(t, e) {
|
|
1581
|
+
return !!Jr(t, e);
|
|
1582
|
+
}, Yl = function() {
|
|
1583
1583
|
var e, r, n, a = {
|
|
1584
1584
|
assert: function(o) {
|
|
1585
1585
|
if (!a.has(o))
|
|
1586
|
-
throw new
|
|
1586
|
+
throw new kl("Side channel does not contain " + Nl(o));
|
|
1587
1587
|
},
|
|
1588
1588
|
get: function(o) {
|
|
1589
|
-
if (
|
|
1589
|
+
if (_t && o && (typeof o == "object" || typeof o == "function")) {
|
|
1590
1590
|
if (e)
|
|
1591
|
-
return
|
|
1592
|
-
} else if (
|
|
1591
|
+
return jl(e, o);
|
|
1592
|
+
} else if (Dt) {
|
|
1593
1593
|
if (r)
|
|
1594
|
-
return
|
|
1594
|
+
return Ul(r, o);
|
|
1595
1595
|
} else if (n)
|
|
1596
|
-
return
|
|
1596
|
+
return Vl(n, o);
|
|
1597
1597
|
},
|
|
1598
1598
|
has: function(o) {
|
|
1599
|
-
if (
|
|
1599
|
+
if (_t && o && (typeof o == "object" || typeof o == "function")) {
|
|
1600
1600
|
if (e)
|
|
1601
|
-
return
|
|
1602
|
-
} else if (
|
|
1601
|
+
return Wl(e, o);
|
|
1602
|
+
} else if (Dt) {
|
|
1603
1603
|
if (r)
|
|
1604
|
-
return
|
|
1604
|
+
return Hl(r, o);
|
|
1605
1605
|
} else if (n)
|
|
1606
|
-
return
|
|
1606
|
+
return Gl(n, o);
|
|
1607
1607
|
return !1;
|
|
1608
1608
|
},
|
|
1609
1609
|
set: function(o, l) {
|
|
1610
|
-
|
|
1610
|
+
_t && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new _t()), Ll(e, o, l)) : Dt ? (r || (r = new Dt()), Bl(r, o, l)) : (n || (n = { key: {}, next: null }), ql(n, o, l));
|
|
1611
1611
|
}
|
|
1612
1612
|
};
|
|
1613
1613
|
return a;
|
|
1614
|
-
},
|
|
1614
|
+
}, zl = String.prototype.replace, Kl = /%20/g, wr = {
|
|
1615
1615
|
RFC1738: "RFC1738",
|
|
1616
1616
|
RFC3986: "RFC3986"
|
|
1617
|
-
},
|
|
1618
|
-
default:
|
|
1617
|
+
}, Qr = {
|
|
1618
|
+
default: wr.RFC3986,
|
|
1619
1619
|
formatters: {
|
|
1620
1620
|
RFC1738: function(t) {
|
|
1621
|
-
return
|
|
1621
|
+
return zl.call(t, Kl, "+");
|
|
1622
1622
|
},
|
|
1623
1623
|
RFC3986: function(t) {
|
|
1624
1624
|
return String(t);
|
|
1625
1625
|
}
|
|
1626
1626
|
},
|
|
1627
|
-
RFC1738:
|
|
1628
|
-
RFC3986:
|
|
1629
|
-
},
|
|
1627
|
+
RFC1738: wr.RFC1738,
|
|
1628
|
+
RFC3986: wr.RFC3986
|
|
1629
|
+
}, Xl = Qr, Er = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
|
|
1630
1630
|
for (var t = [], e = 0; e < 256; ++e)
|
|
1631
1631
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1632
1632
|
return t;
|
|
1633
|
-
}(),
|
|
1633
|
+
}(), Jl = function(e) {
|
|
1634
1634
|
for (; e.length > 1; ) {
|
|
1635
1635
|
var r = e.pop(), n = r.obj[r.prop];
|
|
1636
1636
|
if (Le(n)) {
|
|
@@ -1643,14 +1643,14 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1643
1643
|
for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
|
|
1644
1644
|
typeof e[a] < "u" && (n[a] = e[a]);
|
|
1645
1645
|
return n;
|
|
1646
|
-
},
|
|
1646
|
+
}, Ql = function t(e, r, n) {
|
|
1647
1647
|
if (!r)
|
|
1648
1648
|
return e;
|
|
1649
1649
|
if (typeof r != "object") {
|
|
1650
1650
|
if (Le(e))
|
|
1651
1651
|
e.push(r);
|
|
1652
1652
|
else if (e && typeof e == "object")
|
|
1653
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
1653
|
+
(n && (n.plainObjects || n.allowPrototypes) || !Er.call(Object.prototype, r)) && (e[r] = !0);
|
|
1654
1654
|
else
|
|
1655
1655
|
return [e, r];
|
|
1656
1656
|
return e;
|
|
@@ -1659,20 +1659,20 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1659
1659
|
return [e].concat(r);
|
|
1660
1660
|
var a = e;
|
|
1661
1661
|
return Le(e) && !Le(r) && (a = wa(e, n)), Le(e) && Le(r) ? (r.forEach(function(o, l) {
|
|
1662
|
-
if (
|
|
1662
|
+
if (Er.call(e, l)) {
|
|
1663
1663
|
var u = e[l];
|
|
1664
1664
|
u && typeof u == "object" && o && typeof o == "object" ? e[l] = t(u, o, n) : e.push(o);
|
|
1665
1665
|
} else
|
|
1666
1666
|
e[l] = o;
|
|
1667
1667
|
}), e) : Object.keys(r).reduce(function(o, l) {
|
|
1668
1668
|
var u = r[l];
|
|
1669
|
-
return
|
|
1669
|
+
return Er.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
|
|
1670
1670
|
}, a);
|
|
1671
|
-
},
|
|
1671
|
+
}, Zl = function(e, r) {
|
|
1672
1672
|
return Object.keys(r).reduce(function(n, a) {
|
|
1673
1673
|
return n[a] = r[a], n;
|
|
1674
1674
|
}, e);
|
|
1675
|
-
},
|
|
1675
|
+
}, eu = function(t, e, r) {
|
|
1676
1676
|
var n = t.replace(/\+/g, " ");
|
|
1677
1677
|
if (r === "iso-8859-1")
|
|
1678
1678
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1681,7 +1681,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1681
1681
|
} catch {
|
|
1682
1682
|
return n;
|
|
1683
1683
|
}
|
|
1684
|
-
},
|
|
1684
|
+
}, Sr = 1024, tu = function(e, r, n, a, o) {
|
|
1685
1685
|
if (e.length === 0)
|
|
1686
1686
|
return e;
|
|
1687
1687
|
var l = e;
|
|
@@ -1689,11 +1689,11 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1689
1689
|
return escape(l).replace(/%u[0-9a-f]{4}/gi, function(w) {
|
|
1690
1690
|
return "%26%23" + parseInt(w.slice(2), 16) + "%3B";
|
|
1691
1691
|
});
|
|
1692
|
-
for (var u = "", i = 0; i < l.length; i +=
|
|
1693
|
-
for (var
|
|
1694
|
-
var v =
|
|
1695
|
-
if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o ===
|
|
1696
|
-
s[s.length] =
|
|
1692
|
+
for (var u = "", i = 0; i < l.length; i += Sr) {
|
|
1693
|
+
for (var f = l.length >= Sr ? l.slice(i, i + Sr) : l, s = [], h = 0; h < f.length; ++h) {
|
|
1694
|
+
var v = f.charCodeAt(h);
|
|
1695
|
+
if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Xl.RFC1738 && (v === 40 || v === 41)) {
|
|
1696
|
+
s[s.length] = f.charAt(h);
|
|
1697
1697
|
continue;
|
|
1698
1698
|
}
|
|
1699
1699
|
if (v < 128) {
|
|
@@ -1708,25 +1708,25 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1708
1708
|
s[s.length] = be[224 | v >> 12] + be[128 | v >> 6 & 63] + be[128 | v & 63];
|
|
1709
1709
|
continue;
|
|
1710
1710
|
}
|
|
1711
|
-
|
|
1711
|
+
h += 1, v = 65536 + ((v & 1023) << 10 | f.charCodeAt(h) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
|
|
1712
1712
|
}
|
|
1713
1713
|
u += s.join("");
|
|
1714
1714
|
}
|
|
1715
1715
|
return u;
|
|
1716
|
-
},
|
|
1716
|
+
}, ru = function(e) {
|
|
1717
1717
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < r.length; ++a)
|
|
1718
1718
|
for (var o = r[a], l = o.obj[o.prop], u = Object.keys(l), i = 0; i < u.length; ++i) {
|
|
1719
|
-
var
|
|
1720
|
-
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop:
|
|
1719
|
+
var f = u[i], s = l[f];
|
|
1720
|
+
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: f }), n.push(s));
|
|
1721
1721
|
}
|
|
1722
|
-
return
|
|
1723
|
-
}, ru = function(e) {
|
|
1724
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1722
|
+
return Jl(r), e;
|
|
1725
1723
|
}, nu = function(e) {
|
|
1724
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1725
|
+
}, au = function(e) {
|
|
1726
1726
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1727
|
-
}, au = function(e, r) {
|
|
1728
|
-
return [].concat(e, r);
|
|
1729
1727
|
}, ou = function(e, r) {
|
|
1728
|
+
return [].concat(e, r);
|
|
1729
|
+
}, iu = function(e, r) {
|
|
1730
1730
|
if (Le(e)) {
|
|
1731
1731
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
1732
1732
|
n.push(r(e[a]));
|
|
@@ -1735,16 +1735,16 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1735
1735
|
return r(e);
|
|
1736
1736
|
}, Ea = {
|
|
1737
1737
|
arrayToObject: wa,
|
|
1738
|
-
assign:
|
|
1739
|
-
combine:
|
|
1740
|
-
compact:
|
|
1741
|
-
decode:
|
|
1742
|
-
encode:
|
|
1743
|
-
isBuffer:
|
|
1744
|
-
isRegExp:
|
|
1745
|
-
maybeMap:
|
|
1746
|
-
merge:
|
|
1747
|
-
}, Sa =
|
|
1738
|
+
assign: Zl,
|
|
1739
|
+
combine: ou,
|
|
1740
|
+
compact: ru,
|
|
1741
|
+
decode: eu,
|
|
1742
|
+
encode: tu,
|
|
1743
|
+
isBuffer: au,
|
|
1744
|
+
isRegExp: nu,
|
|
1745
|
+
maybeMap: iu,
|
|
1746
|
+
merge: Ql
|
|
1747
|
+
}, Sa = Yl, jt = Ea, wt = Qr, lu = Object.prototype.hasOwnProperty, xa = {
|
|
1748
1748
|
brackets: function(e) {
|
|
1749
1749
|
return e + "[]";
|
|
1750
1750
|
},
|
|
@@ -1755,9 +1755,9 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1755
1755
|
repeat: function(e) {
|
|
1756
1756
|
return e;
|
|
1757
1757
|
}
|
|
1758
|
-
}, we = Array.isArray,
|
|
1759
|
-
|
|
1760
|
-
},
|
|
1758
|
+
}, we = Array.isArray, uu = Array.prototype.push, Oa = function(t, e) {
|
|
1759
|
+
uu.apply(t, we(e) ? e : [e]);
|
|
1760
|
+
}, su = Date.prototype.toISOString, Gn = wt.default, X = {
|
|
1761
1761
|
addQueryPrefix: !1,
|
|
1762
1762
|
allowDots: !1,
|
|
1763
1763
|
allowEmptyArrays: !1,
|
|
@@ -1767,65 +1767,65 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1767
1767
|
delimiter: "&",
|
|
1768
1768
|
encode: !0,
|
|
1769
1769
|
encodeDotInKeys: !1,
|
|
1770
|
-
encoder:
|
|
1770
|
+
encoder: jt.encode,
|
|
1771
1771
|
encodeValuesOnly: !1,
|
|
1772
|
-
format:
|
|
1773
|
-
formatter: wt.formatters[
|
|
1772
|
+
format: Gn,
|
|
1773
|
+
formatter: wt.formatters[Gn],
|
|
1774
1774
|
// deprecated
|
|
1775
1775
|
indices: !1,
|
|
1776
1776
|
serializeDate: function(e) {
|
|
1777
|
-
return
|
|
1777
|
+
return su.call(e);
|
|
1778
1778
|
},
|
|
1779
1779
|
skipNulls: !1,
|
|
1780
1780
|
strictNullHandling: !1
|
|
1781
|
-
},
|
|
1781
|
+
}, cu = function(e) {
|
|
1782
1782
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1783
|
-
},
|
|
1784
|
-
for (var b = e, S =
|
|
1783
|
+
}, xr = {}, fu = function t(e, r, n, a, o, l, u, i, f, s, h, v, w, d, y, p, m, g) {
|
|
1784
|
+
for (var b = e, S = g, O = 0, _ = !1; (S = S.get(xr)) !== void 0 && !_; ) {
|
|
1785
1785
|
var M = S.get(e);
|
|
1786
1786
|
if (O += 1, typeof M < "u") {
|
|
1787
1787
|
if (M === O)
|
|
1788
1788
|
throw new RangeError("Cyclic object value");
|
|
1789
1789
|
_ = !0;
|
|
1790
1790
|
}
|
|
1791
|
-
typeof S.get(
|
|
1791
|
+
typeof S.get(xr) > "u" && (O = 0);
|
|
1792
1792
|
}
|
|
1793
|
-
if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b =
|
|
1794
|
-
return
|
|
1793
|
+
if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = jt.maybeMap(b, function(ye) {
|
|
1794
|
+
return ye instanceof Date ? w(ye) : ye;
|
|
1795
1795
|
})), b === null) {
|
|
1796
1796
|
if (l)
|
|
1797
|
-
return
|
|
1797
|
+
return f && !p ? f(r, X.encoder, m, "key", d) : r;
|
|
1798
1798
|
b = "";
|
|
1799
1799
|
}
|
|
1800
|
-
if (
|
|
1801
|
-
if (
|
|
1802
|
-
var W = p ? r :
|
|
1803
|
-
return [y(W) + "=" + y(
|
|
1800
|
+
if (cu(b) || jt.isBuffer(b)) {
|
|
1801
|
+
if (f) {
|
|
1802
|
+
var W = p ? r : f(r, X.encoder, m, "key", d);
|
|
1803
|
+
return [y(W) + "=" + y(f(b, X.encoder, m, "value", d))];
|
|
1804
1804
|
}
|
|
1805
1805
|
return [y(r) + "=" + y(String(b))];
|
|
1806
1806
|
}
|
|
1807
1807
|
var H = [];
|
|
1808
1808
|
if (typeof b > "u")
|
|
1809
1809
|
return H;
|
|
1810
|
-
var
|
|
1810
|
+
var j;
|
|
1811
1811
|
if (n === "comma" && we(b))
|
|
1812
|
-
p &&
|
|
1812
|
+
p && f && (b = jt.maybeMap(b, f)), j = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
|
|
1813
1813
|
else if (we(s))
|
|
1814
|
-
|
|
1814
|
+
j = s;
|
|
1815
1815
|
else {
|
|
1816
|
-
var
|
|
1817
|
-
|
|
1816
|
+
var z = Object.keys(b);
|
|
1817
|
+
j = h ? z.sort(h) : z;
|
|
1818
1818
|
}
|
|
1819
1819
|
var V = i ? r.replace(/\./g, "%2E") : r, $ = a && we(b) && b.length === 1 ? V + "[]" : V;
|
|
1820
1820
|
if (o && we(b) && b.length === 0)
|
|
1821
1821
|
return $ + "[]";
|
|
1822
|
-
for (var T = 0; T <
|
|
1823
|
-
var D =
|
|
1822
|
+
for (var T = 0; T < j.length; ++T) {
|
|
1823
|
+
var D = j[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
|
|
1824
1824
|
if (!(u && ue === null)) {
|
|
1825
|
-
var
|
|
1826
|
-
|
|
1825
|
+
var pe = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, pe) : $ : $ + (v ? "." + pe : "[" + pe + "]");
|
|
1826
|
+
g.set(e, O);
|
|
1827
1827
|
var te = Sa();
|
|
1828
|
-
te.set(
|
|
1828
|
+
te.set(xr, g), Oa(H, t(
|
|
1829
1829
|
ue,
|
|
1830
1830
|
ge,
|
|
1831
1831
|
n,
|
|
@@ -1834,12 +1834,12 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1834
1834
|
l,
|
|
1835
1835
|
u,
|
|
1836
1836
|
i,
|
|
1837
|
-
n === "comma" && p && we(b) ? null :
|
|
1837
|
+
n === "comma" && p && we(b) ? null : f,
|
|
1838
1838
|
s,
|
|
1839
|
-
|
|
1839
|
+
h,
|
|
1840
1840
|
v,
|
|
1841
1841
|
w,
|
|
1842
|
-
|
|
1842
|
+
d,
|
|
1843
1843
|
y,
|
|
1844
1844
|
p,
|
|
1845
1845
|
m,
|
|
@@ -1848,7 +1848,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
1850
|
return H;
|
|
1851
|
-
},
|
|
1851
|
+
}, du = function(e) {
|
|
1852
1852
|
if (!e)
|
|
1853
1853
|
return X;
|
|
1854
1854
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -1862,7 +1862,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1862
1862
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1863
1863
|
var n = wt.default;
|
|
1864
1864
|
if (typeof e.format < "u") {
|
|
1865
|
-
if (!
|
|
1865
|
+
if (!lu.call(wt.formatters, e.format))
|
|
1866
1866
|
throw new TypeError("Unknown format option provided.");
|
|
1867
1867
|
n = e.format;
|
|
1868
1868
|
}
|
|
@@ -1893,19 +1893,19 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1893
1893
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1894
1894
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : X.strictNullHandling
|
|
1895
1895
|
};
|
|
1896
|
-
},
|
|
1897
|
-
var r = t, n =
|
|
1896
|
+
}, pu = function(t, e) {
|
|
1897
|
+
var r = t, n = du(e), a, o;
|
|
1898
1898
|
typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : we(n.filter) && (o = n.filter, a = o);
|
|
1899
1899
|
var l = [];
|
|
1900
1900
|
if (typeof r != "object" || r === null)
|
|
1901
1901
|
return "";
|
|
1902
1902
|
var u = xa[n.arrayFormat], i = u === "comma" && n.commaRoundTrip;
|
|
1903
1903
|
a || (a = Object.keys(r)), n.sort && a.sort(n.sort);
|
|
1904
|
-
for (var
|
|
1905
|
-
var
|
|
1906
|
-
n.skipNulls && r[
|
|
1907
|
-
r[
|
|
1908
|
-
|
|
1904
|
+
for (var f = Sa(), s = 0; s < a.length; ++s) {
|
|
1905
|
+
var h = a[s];
|
|
1906
|
+
n.skipNulls && r[h] === null || Oa(l, fu(
|
|
1907
|
+
r[h],
|
|
1908
|
+
h,
|
|
1909
1909
|
u,
|
|
1910
1910
|
i,
|
|
1911
1911
|
n.allowEmptyArrays,
|
|
@@ -1921,12 +1921,12 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1921
1921
|
n.formatter,
|
|
1922
1922
|
n.encodeValuesOnly,
|
|
1923
1923
|
n.charset,
|
|
1924
|
-
|
|
1924
|
+
f
|
|
1925
1925
|
));
|
|
1926
1926
|
}
|
|
1927
1927
|
var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
|
|
1928
1928
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
|
|
1929
|
-
}, rt = Ea,
|
|
1929
|
+
}, rt = Ea, Dr = Object.prototype.hasOwnProperty, yu = Array.isArray, B = {
|
|
1930
1930
|
allowDots: !1,
|
|
1931
1931
|
allowEmptyArrays: !1,
|
|
1932
1932
|
allowPrototypes: !1,
|
|
@@ -1947,55 +1947,55 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
1947
1947
|
plainObjects: !1,
|
|
1948
1948
|
strictDepth: !1,
|
|
1949
1949
|
strictNullHandling: !1
|
|
1950
|
-
},
|
|
1950
|
+
}, vu = function(t) {
|
|
1951
1951
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
1952
1952
|
return String.fromCharCode(parseInt(r, 10));
|
|
1953
1953
|
});
|
|
1954
1954
|
}, Pa = function(t, e) {
|
|
1955
1955
|
return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
1956
|
-
},
|
|
1956
|
+
}, mu = "utf8=%26%2310003%3B", hu = "utf8=%E2%9C%93", gu = function(e, r) {
|
|
1957
1957
|
var n = { __proto__: null }, a = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1958
1958
|
a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1959
|
-
var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i,
|
|
1959
|
+
var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, f = r.charset;
|
|
1960
1960
|
if (r.charsetSentinel)
|
|
1961
1961
|
for (i = 0; i < l.length; ++i)
|
|
1962
|
-
l[i].indexOf("utf8=") === 0 && (l[i] ===
|
|
1962
|
+
l[i].indexOf("utf8=") === 0 && (l[i] === hu ? f = "utf-8" : l[i] === mu && (f = "iso-8859-1"), u = i, i = l.length);
|
|
1963
1963
|
for (i = 0; i < l.length; ++i)
|
|
1964
1964
|
if (i !== u) {
|
|
1965
|
-
var s = l[i],
|
|
1966
|
-
v === -1 ? (w = r.decoder(s, B.decoder,
|
|
1965
|
+
var s = l[i], h = s.indexOf("]="), v = h === -1 ? s.indexOf("=") : h + 1, w, d;
|
|
1966
|
+
v === -1 ? (w = r.decoder(s, B.decoder, f, "key"), d = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, f, "key"), d = rt.maybeMap(
|
|
1967
1967
|
Pa(s.slice(v + 1), r),
|
|
1968
1968
|
function(p) {
|
|
1969
|
-
return r.decoder(p, B.decoder,
|
|
1969
|
+
return r.decoder(p, B.decoder, f, "value");
|
|
1970
1970
|
}
|
|
1971
|
-
)),
|
|
1972
|
-
var y =
|
|
1973
|
-
y && r.duplicates === "combine" ? n[w] = rt.combine(n[w],
|
|
1971
|
+
)), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = vu(d)), s.indexOf("[]=") > -1 && (d = yu(d) ? [d] : d);
|
|
1972
|
+
var y = Dr.call(n, w);
|
|
1973
|
+
y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], d) : (!y || r.duplicates === "last") && (n[w] = d);
|
|
1974
1974
|
}
|
|
1975
1975
|
return n;
|
|
1976
|
-
},
|
|
1976
|
+
}, bu = function(t, e, r, n) {
|
|
1977
1977
|
for (var a = n ? e : Pa(e, r), o = t.length - 1; o >= 0; --o) {
|
|
1978
1978
|
var l, u = t[o];
|
|
1979
1979
|
if (u === "[]" && r.parseArrays)
|
|
1980
1980
|
l = r.allowEmptyArrays && (a === "" || r.strictNullHandling && a === null) ? [] : [].concat(a);
|
|
1981
1981
|
else {
|
|
1982
1982
|
l = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1983
|
-
var i = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u,
|
|
1984
|
-
!r.parseArrays &&
|
|
1983
|
+
var i = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, f = r.decodeDotInKeys ? i.replace(/%2E/g, ".") : i, s = parseInt(f, 10);
|
|
1984
|
+
!r.parseArrays && f === "" ? l = { 0: a } : !isNaN(s) && u !== f && String(s) === f && s >= 0 && r.parseArrays && s <= r.arrayLimit ? (l = [], l[s] = a) : f !== "__proto__" && (l[f] = a);
|
|
1985
1985
|
}
|
|
1986
1986
|
a = l;
|
|
1987
1987
|
}
|
|
1988
1988
|
return a;
|
|
1989
|
-
},
|
|
1989
|
+
}, wu = function(e, r, n, a) {
|
|
1990
1990
|
if (e) {
|
|
1991
|
-
var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o),
|
|
1992
|
-
if (
|
|
1993
|
-
if (!n.plainObjects &&
|
|
1991
|
+
var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), f = i ? o.slice(0, i.index) : o, s = [];
|
|
1992
|
+
if (f) {
|
|
1993
|
+
if (!n.plainObjects && Dr.call(Object.prototype, f) && !n.allowPrototypes)
|
|
1994
1994
|
return;
|
|
1995
|
-
s.push(
|
|
1995
|
+
s.push(f);
|
|
1996
1996
|
}
|
|
1997
|
-
for (var
|
|
1998
|
-
if (
|
|
1997
|
+
for (var h = 0; n.depth > 0 && (i = u.exec(o)) !== null && h < n.depth; ) {
|
|
1998
|
+
if (h += 1, !n.plainObjects && Dr.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1999
1999
|
return;
|
|
2000
2000
|
s.push(i[1]);
|
|
2001
2001
|
}
|
|
@@ -2004,9 +2004,9 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2004
2004
|
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
2005
2005
|
s.push("[" + o.slice(i.index) + "]");
|
|
2006
2006
|
}
|
|
2007
|
-
return
|
|
2007
|
+
return bu(s, r, n, a);
|
|
2008
2008
|
}
|
|
2009
|
-
},
|
|
2009
|
+
}, Eu = function(e) {
|
|
2010
2010
|
if (!e)
|
|
2011
2011
|
return B;
|
|
2012
2012
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2044,26 +2044,26 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2044
2044
|
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : B.strictDepth,
|
|
2045
2045
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
|
|
2046
2046
|
};
|
|
2047
|
-
},
|
|
2048
|
-
var r =
|
|
2047
|
+
}, Su = function(t, e) {
|
|
2048
|
+
var r = Eu(e);
|
|
2049
2049
|
if (t === "" || t === null || typeof t > "u")
|
|
2050
2050
|
return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2051
|
-
for (var n = typeof t == "string" ?
|
|
2052
|
-
var u = o[l], i =
|
|
2051
|
+
for (var n = typeof t == "string" ? gu(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 = wu(u, n[u], r, typeof t == "string");
|
|
2053
2053
|
a = rt.merge(a, i, r);
|
|
2054
2054
|
}
|
|
2055
2055
|
return r.allowSparse === !0 ? a : rt.compact(a);
|
|
2056
|
-
},
|
|
2057
|
-
formats:
|
|
2058
|
-
parse:
|
|
2059
|
-
stringify:
|
|
2060
|
-
},
|
|
2056
|
+
}, xu = pu, Ou = Su, Pu = Qr, Yn = {
|
|
2057
|
+
formats: Pu,
|
|
2058
|
+
parse: Ou,
|
|
2059
|
+
stringify: xu
|
|
2060
|
+
}, Au = { exports: {} };
|
|
2061
2061
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
2062
2062
|
* @license MIT */
|
|
2063
2063
|
(function(t, e) {
|
|
2064
2064
|
(function(r, n) {
|
|
2065
2065
|
t.exports = n();
|
|
2066
|
-
})(
|
|
2066
|
+
})(Tr, function() {
|
|
2067
2067
|
var r = {};
|
|
2068
2068
|
r.version = "0.2.0";
|
|
2069
2069
|
var n = r.settings = {
|
|
@@ -2080,93 +2080,93 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2080
2080
|
parent: "body",
|
|
2081
2081
|
template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
|
|
2082
2082
|
};
|
|
2083
|
-
r.configure = function(
|
|
2083
|
+
r.configure = function(d) {
|
|
2084
2084
|
var y, p;
|
|
2085
|
-
for (y in
|
|
2086
|
-
p =
|
|
2085
|
+
for (y in d)
|
|
2086
|
+
p = d[y], p !== void 0 && d.hasOwnProperty(y) && (n[y] = p);
|
|
2087
2087
|
return this;
|
|
2088
|
-
}, r.status = null, r.set = function(
|
|
2088
|
+
}, r.status = null, r.set = function(d) {
|
|
2089
2089
|
var y = r.isStarted();
|
|
2090
|
-
|
|
2091
|
-
var p = r.render(!y), m = p.querySelector(n.barSelector),
|
|
2090
|
+
d = a(d, n.minimum, 1), r.status = d === 1 ? null : d;
|
|
2091
|
+
var p = r.render(!y), m = p.querySelector(n.barSelector), g = n.speed, b = n.easing;
|
|
2092
2092
|
return p.offsetWidth, u(function(S) {
|
|
2093
|
-
n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(
|
|
2093
|
+
n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(d, g, b)), d === 1 ? (i(p, {
|
|
2094
2094
|
transition: "none",
|
|
2095
2095
|
opacity: 1
|
|
2096
2096
|
}), p.offsetWidth, setTimeout(function() {
|
|
2097
2097
|
i(p, {
|
|
2098
|
-
transition: "all " +
|
|
2098
|
+
transition: "all " + g + "ms linear",
|
|
2099
2099
|
opacity: 0
|
|
2100
2100
|
}), setTimeout(function() {
|
|
2101
2101
|
r.remove(), S();
|
|
2102
|
-
},
|
|
2103
|
-
},
|
|
2102
|
+
}, g);
|
|
2103
|
+
}, g)) : setTimeout(S, g);
|
|
2104
2104
|
}), this;
|
|
2105
2105
|
}, r.isStarted = function() {
|
|
2106
2106
|
return typeof r.status == "number";
|
|
2107
2107
|
}, r.start = function() {
|
|
2108
2108
|
r.status || r.set(0);
|
|
2109
|
-
var
|
|
2109
|
+
var d = function() {
|
|
2110
2110
|
setTimeout(function() {
|
|
2111
|
-
r.status && (r.trickle(),
|
|
2111
|
+
r.status && (r.trickle(), d());
|
|
2112
2112
|
}, n.trickleSpeed);
|
|
2113
2113
|
};
|
|
2114
|
-
return n.trickle &&
|
|
2115
|
-
}, r.done = function(
|
|
2116
|
-
return !
|
|
2117
|
-
}, r.inc = function(
|
|
2114
|
+
return n.trickle && d(), this;
|
|
2115
|
+
}, r.done = function(d) {
|
|
2116
|
+
return !d && !r.status ? this : r.inc(0.3 + 0.5 * Math.random()).set(1);
|
|
2117
|
+
}, r.inc = function(d) {
|
|
2118
2118
|
var y = r.status;
|
|
2119
|
-
return y ? (typeof
|
|
2119
|
+
return y ? (typeof d != "number" && (d = (1 - y) * a(Math.random() * y, 0.1, 0.95)), y = a(y + d, 0, 0.994), r.set(y)) : r.start();
|
|
2120
2120
|
}, r.trickle = function() {
|
|
2121
2121
|
return r.inc(Math.random() * n.trickleRate);
|
|
2122
2122
|
}, function() {
|
|
2123
|
-
var
|
|
2123
|
+
var d = 0, y = 0;
|
|
2124
2124
|
r.promise = function(p) {
|
|
2125
|
-
return !p || p.state() === "resolved" ? this : (y === 0 && r.start(),
|
|
2126
|
-
y--, y === 0 ? (
|
|
2125
|
+
return !p || p.state() === "resolved" ? this : (y === 0 && r.start(), d++, y++, p.always(function() {
|
|
2126
|
+
y--, y === 0 ? (d = 0, r.done()) : r.set((d - y) / d);
|
|
2127
2127
|
}), this);
|
|
2128
2128
|
};
|
|
2129
|
-
}(), r.render = function(
|
|
2129
|
+
}(), r.render = function(d) {
|
|
2130
2130
|
if (r.isRendered()) return document.getElementById("nprogress");
|
|
2131
2131
|
s(document.documentElement, "nprogress-busy");
|
|
2132
2132
|
var y = document.createElement("div");
|
|
2133
2133
|
y.id = "nprogress", y.innerHTML = n.template;
|
|
2134
|
-
var p = y.querySelector(n.barSelector), m =
|
|
2134
|
+
var p = y.querySelector(n.barSelector), m = d ? "-100" : o(r.status || 0), g = document.querySelector(n.parent), b;
|
|
2135
2135
|
return i(p, {
|
|
2136
2136
|
transition: "all 0 linear",
|
|
2137
2137
|
transform: "translate3d(" + m + "%,0,0)"
|
|
2138
|
-
}), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)),
|
|
2138
|
+
}), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), g != document.body && s(g, "nprogress-custom-parent"), g.appendChild(y), y;
|
|
2139
2139
|
}, r.remove = function() {
|
|
2140
|
-
|
|
2141
|
-
var
|
|
2142
|
-
|
|
2140
|
+
h(document.documentElement, "nprogress-busy"), h(document.querySelector(n.parent), "nprogress-custom-parent");
|
|
2141
|
+
var d = document.getElementById("nprogress");
|
|
2142
|
+
d && w(d);
|
|
2143
2143
|
}, r.isRendered = function() {
|
|
2144
2144
|
return !!document.getElementById("nprogress");
|
|
2145
2145
|
}, r.getPositioningCSS = function() {
|
|
2146
|
-
var
|
|
2147
|
-
return y + "Perspective" in
|
|
2146
|
+
var d = document.body.style, y = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : "";
|
|
2147
|
+
return y + "Perspective" in d ? "translate3d" : y + "Transform" in d ? "translate" : "margin";
|
|
2148
2148
|
};
|
|
2149
|
-
function a(
|
|
2150
|
-
return
|
|
2149
|
+
function a(d, y, p) {
|
|
2150
|
+
return d < y ? y : d > p ? p : d;
|
|
2151
2151
|
}
|
|
2152
|
-
function o(
|
|
2153
|
-
return (-1 +
|
|
2152
|
+
function o(d) {
|
|
2153
|
+
return (-1 + d) * 100;
|
|
2154
2154
|
}
|
|
2155
|
-
function l(
|
|
2155
|
+
function l(d, y, p) {
|
|
2156
2156
|
var m;
|
|
2157
|
-
return n.positionUsing === "translate3d" ? m = { transform: "translate3d(" + o(
|
|
2157
|
+
return n.positionUsing === "translate3d" ? m = { transform: "translate3d(" + o(d) + "%,0,0)" } : n.positionUsing === "translate" ? m = { transform: "translate(" + o(d) + "%,0)" } : m = { "margin-left": o(d) + "%" }, m.transition = "all " + y + "ms " + p, m;
|
|
2158
2158
|
}
|
|
2159
2159
|
var u = /* @__PURE__ */ function() {
|
|
2160
|
-
var
|
|
2160
|
+
var d = [];
|
|
2161
2161
|
function y() {
|
|
2162
|
-
var p =
|
|
2162
|
+
var p = d.shift();
|
|
2163
2163
|
p && p(y);
|
|
2164
2164
|
}
|
|
2165
2165
|
return function(p) {
|
|
2166
|
-
|
|
2166
|
+
d.push(p), d.length == 1 && y();
|
|
2167
2167
|
};
|
|
2168
2168
|
}(), i = /* @__PURE__ */ function() {
|
|
2169
|
-
var
|
|
2169
|
+
var d = ["Webkit", "O", "Moz", "ms"], y = {};
|
|
2170
2170
|
function p(S) {
|
|
2171
2171
|
return S.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(O, _) {
|
|
2172
2172
|
return _.toUpperCase();
|
|
@@ -2175,15 +2175,15 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2175
2175
|
function m(S) {
|
|
2176
2176
|
var O = document.body.style;
|
|
2177
2177
|
if (S in O) return S;
|
|
2178
|
-
for (var _ =
|
|
2179
|
-
if (W =
|
|
2178
|
+
for (var _ = d.length, M = S.charAt(0).toUpperCase() + S.slice(1), W; _--; )
|
|
2179
|
+
if (W = d[_] + M, W in O) return W;
|
|
2180
2180
|
return S;
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function g(S) {
|
|
2183
2183
|
return S = p(S), y[S] || (y[S] = m(S));
|
|
2184
2184
|
}
|
|
2185
2185
|
function b(S, O, _) {
|
|
2186
|
-
O =
|
|
2186
|
+
O = g(O), S.style[O] = _;
|
|
2187
2187
|
}
|
|
2188
2188
|
return function(S, O) {
|
|
2189
2189
|
var _ = arguments, M, W;
|
|
@@ -2194,105 +2194,105 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
|
|
|
2194
2194
|
b(S, _[1], _[2]);
|
|
2195
2195
|
};
|
|
2196
2196
|
}();
|
|
2197
|
-
function d
|
|
2198
|
-
var p = typeof
|
|
2197
|
+
function f(d, y) {
|
|
2198
|
+
var p = typeof d == "string" ? d : v(d);
|
|
2199
2199
|
return p.indexOf(" " + y + " ") >= 0;
|
|
2200
2200
|
}
|
|
2201
|
-
function s(
|
|
2202
|
-
var p = v(
|
|
2203
|
-
|
|
2201
|
+
function s(d, y) {
|
|
2202
|
+
var p = v(d), m = p + y;
|
|
2203
|
+
f(p, y) || (d.className = m.substring(1));
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2206
|
-
var p = v(
|
|
2207
|
-
d
|
|
2205
|
+
function h(d, y) {
|
|
2206
|
+
var p = v(d), m;
|
|
2207
|
+
f(d, y) && (m = p.replace(" " + y + " ", " "), d.className = m.substring(1, m.length - 1));
|
|
2208
2208
|
}
|
|
2209
|
-
function v(
|
|
2210
|
-
return (" " + (
|
|
2209
|
+
function v(d) {
|
|
2210
|
+
return (" " + (d.className || "") + " ").replace(/\s+/gi, " ");
|
|
2211
2211
|
}
|
|
2212
|
-
function w(
|
|
2213
|
-
|
|
2212
|
+
function w(d) {
|
|
2213
|
+
d && d.parentNode && d.parentNode.removeChild(d);
|
|
2214
2214
|
}
|
|
2215
2215
|
return r;
|
|
2216
2216
|
});
|
|
2217
|
-
})(
|
|
2218
|
-
function
|
|
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("#"),
|
|
2220
|
-
return t === "get" && Object.keys(r).length && (
|
|
2221
|
-
}
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2224
|
-
let Aa = null, Ta = null,
|
|
2225
|
-
const
|
|
2217
|
+
})(Au);
|
|
2218
|
+
function Tu(t, e, r, n = "brackets") {
|
|
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("#"), f = new URL(e.toString(), "http://localhost");
|
|
2220
|
+
return t === "get" && Object.keys(r).length && (f.search = Yn.stringify(ui(Yn.parse(f.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${f.protocol}//${f.host}` : "", o ? f.pathname : "", l ? f.pathname.substring(1) : "", u ? f.search : "", i ? f.hash : ""].join(""), r];
|
|
2221
|
+
}
|
|
2222
|
+
const Kt = fe(null);
|
|
2223
|
+
Kt.displayName = "ModalStackContext";
|
|
2224
|
+
let Aa = null, Ta = null, Et = null, Nr = null, kr = [];
|
|
2225
|
+
const $u = ({ children: t }) => {
|
|
2226
2226
|
const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
|
|
2227
2227
|
r((p) => {
|
|
2228
|
-
const m = y([...p]),
|
|
2228
|
+
const m = y([...p]), g = (b) => {
|
|
2229
2229
|
var S;
|
|
2230
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;
|
|
2231
2231
|
};
|
|
2232
2232
|
return m.forEach((b, S) => {
|
|
2233
|
-
m[S].onTopOfStack =
|
|
2233
|
+
m[S].onTopOfStack = g(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);
|
|
2234
2234
|
}), m;
|
|
2235
2235
|
});
|
|
2236
2236
|
};
|
|
2237
|
-
|
|
2238
|
-
|
|
2237
|
+
Y(() => {
|
|
2238
|
+
kr = e;
|
|
2239
2239
|
}, [e]);
|
|
2240
2240
|
class l {
|
|
2241
|
-
constructor(p, m,
|
|
2242
|
-
|
|
2241
|
+
constructor(p, m, g, b, S) {
|
|
2242
|
+
ce(this, "update", (p, m, g) => {
|
|
2243
2243
|
o(
|
|
2244
|
-
(b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback =
|
|
2244
|
+
(b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = g), S))
|
|
2245
2245
|
);
|
|
2246
2246
|
});
|
|
2247
|
-
|
|
2247
|
+
ce(this, "show", () => {
|
|
2248
2248
|
o(
|
|
2249
2249
|
(p) => p.map((m) => (m.id === this.id && !m.isOpen && (m.isOpen = !0, m.shouldRender = !0), m))
|
|
2250
2250
|
);
|
|
2251
2251
|
});
|
|
2252
|
-
|
|
2252
|
+
ce(this, "setOpen", (p) => {
|
|
2253
2253
|
p ? this.show() : this.close();
|
|
2254
2254
|
});
|
|
2255
|
-
|
|
2255
|
+
ce(this, "close", () => {
|
|
2256
2256
|
o(
|
|
2257
2257
|
(p) => p.map((m) => {
|
|
2258
|
-
var
|
|
2258
|
+
var g;
|
|
2259
2259
|
return m.id === this.id && m.isOpen && (Object.keys(m.listeners).forEach((b) => {
|
|
2260
2260
|
m.off(b);
|
|
2261
|
-
}), m.isOpen = !1, (
|
|
2261
|
+
}), m.isOpen = !1, (g = m.onCloseCallback) == null || g.call(m)), m;
|
|
2262
2262
|
})
|
|
2263
2263
|
);
|
|
2264
2264
|
});
|
|
2265
|
-
|
|
2265
|
+
ce(this, "afterLeave", () => {
|
|
2266
2266
|
this.isOpen || o((p) => {
|
|
2267
|
-
const m = p.map((
|
|
2267
|
+
const m = p.map((g) => {
|
|
2268
2268
|
var b;
|
|
2269
|
-
return
|
|
2269
|
+
return g.id === this.id && !g.isOpen && (g.shouldRender = !1, (b = g.afterLeaveCallback) == null || b.call(g), g.afterLeaveCallback = null), g;
|
|
2270
2270
|
});
|
|
2271
2271
|
return this.index === 0 ? [] : m;
|
|
2272
2272
|
});
|
|
2273
2273
|
});
|
|
2274
|
-
|
|
2274
|
+
ce(this, "on", (p, m) => {
|
|
2275
2275
|
this.listeners[p] = this.listeners[p] ?? [], this.listeners[p].push(m);
|
|
2276
2276
|
});
|
|
2277
|
-
|
|
2278
|
-
var
|
|
2279
|
-
m ? this.listeners[p] = ((
|
|
2277
|
+
ce(this, "off", (p, m) => {
|
|
2278
|
+
var g;
|
|
2279
|
+
m ? this.listeners[p] = ((g = this.listeners[p]) == null ? void 0 : g.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
|
|
2280
2280
|
});
|
|
2281
|
-
|
|
2282
|
-
var
|
|
2283
|
-
(
|
|
2281
|
+
ce(this, "emit", (p, ...m) => {
|
|
2282
|
+
var g;
|
|
2283
|
+
(g = this.listeners[p]) == null || g.forEach((b) => b(...m));
|
|
2284
2284
|
});
|
|
2285
|
-
|
|
2285
|
+
ce(this, "registerEventListenersFromProps", (p) => {
|
|
2286
2286
|
const m = [];
|
|
2287
|
-
return Object.keys(p).filter((
|
|
2288
|
-
const b =
|
|
2289
|
-
this.on(b, p[
|
|
2290
|
-
}), () => m.forEach((
|
|
2287
|
+
return Object.keys(p).filter((g) => g.startsWith("on")).forEach((g) => {
|
|
2288
|
+
const b = g.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
2289
|
+
this.on(b, p[g]), m.push(() => this.off(b, p[g]));
|
|
2290
|
+
}), () => m.forEach((g) => g());
|
|
2291
2291
|
});
|
|
2292
|
-
|
|
2293
|
-
var
|
|
2292
|
+
ce(this, "reload", (p = {}) => {
|
|
2293
|
+
var g;
|
|
2294
2294
|
let m = Object.keys(this.response.props);
|
|
2295
|
-
p.only && (m = aa(m, p.only)), p.except && (m =
|
|
2295
|
+
p.only && (m = aa(m, p.only)), p.except && (m = qo(m, p.except)), (g = this.response) != null && g.url && Lt.get(this.response.url, {
|
|
2296
2296
|
headers: {
|
|
2297
2297
|
Accept: "text/html, application/xhtml+xml",
|
|
2298
2298
|
"X-Inertia": !0,
|
|
@@ -2300,29 +2300,33 @@ const Tu = ({ children: t }) => {
|
|
|
2300
2300
|
"X-Inertia-Version": this.response.version,
|
|
2301
2301
|
"X-Inertia-Partial-Data": m.join(","),
|
|
2302
2302
|
"X-InertiaUI-Modal": !0,
|
|
2303
|
-
"X-InertiaUI-Modal-Use-Router": 0
|
|
2303
|
+
"X-InertiaUI-Modal-Use-Router": 0,
|
|
2304
|
+
"X-InertiaUI-Modal-Base-Url": Et
|
|
2304
2305
|
}
|
|
2305
2306
|
}).then((b) => {
|
|
2306
|
-
|
|
2307
|
+
this.updateProps(b.data.props);
|
|
2307
2308
|
});
|
|
2308
2309
|
});
|
|
2309
|
-
|
|
2310
|
+
ce(this, "updateProps", (p) => {
|
|
2311
|
+
Object.assign(this.props, p), o((m) => m);
|
|
2312
|
+
});
|
|
2313
|
+
this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = g, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
|
|
2310
2314
|
}
|
|
2311
2315
|
static generateId() {
|
|
2312
2316
|
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)}`;
|
|
2313
2317
|
}
|
|
2314
2318
|
}
|
|
2315
|
-
const u = (y, p = {}, m = null,
|
|
2316
|
-
const S = new l(y, p, m,
|
|
2319
|
+
const u = (y, p = {}, m = null, g = null) => Ta(y.component).then((b) => i(b, y, p, m, g)), i = (y, p, m, g, b) => {
|
|
2320
|
+
const S = new l(y, p, m, g, b);
|
|
2317
2321
|
return S.index = e.length, o((O) => [...O, S]), S.show(), S;
|
|
2318
2322
|
};
|
|
2319
|
-
function
|
|
2323
|
+
function f(y, p, m, g) {
|
|
2320
2324
|
if (!n[y])
|
|
2321
2325
|
throw new Error(`The local modal "${y}" has not been registered.`);
|
|
2322
|
-
const b = i(null, {}, p, m,
|
|
2326
|
+
const b = i(null, {}, p, m, g);
|
|
2323
2327
|
return b.name = y, n[y].callback(b), b;
|
|
2324
2328
|
}
|
|
2325
|
-
const s = (y, p = {}) =>
|
|
2329
|
+
const s = (y, p = {}) => h(
|
|
2326
2330
|
y,
|
|
2327
2331
|
p.method ?? "get",
|
|
2328
2332
|
p.data ?? {},
|
|
@@ -2331,32 +2335,33 @@ const Tu = ({ children: t }) => {
|
|
|
2331
2335
|
p.onClose,
|
|
2332
2336
|
p.onAfterLeave,
|
|
2333
2337
|
p.queryStringArrayFormat ?? "brackets",
|
|
2334
|
-
p.navigate ??
|
|
2335
|
-
),
|
|
2338
|
+
p.navigate ?? qr("navigate")
|
|
2339
|
+
), h = (y, p, m = {}, g = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
|
|
2336
2340
|
if (y.startsWith("#")) {
|
|
2337
|
-
W(
|
|
2341
|
+
W(f(y.substring(1), b, S, O));
|
|
2338
2342
|
return;
|
|
2339
2343
|
}
|
|
2340
|
-
const [
|
|
2344
|
+
const [j, z] = Tu(p, y || "", m, _);
|
|
2341
2345
|
let V = M && e.length === 0;
|
|
2342
|
-
if (e.length === 0 && (
|
|
2343
|
-
...
|
|
2346
|
+
if (e.length === 0 && (Et = typeof window < "u" ? window.location.href : ""), g = {
|
|
2347
|
+
...g,
|
|
2344
2348
|
Accept: "text/html, application/xhtml+xml",
|
|
2345
2349
|
"X-Requested-With": "XMLHttpRequest",
|
|
2346
2350
|
"X-Inertia": !0,
|
|
2347
2351
|
"X-Inertia-Version": Aa,
|
|
2348
2352
|
"X-InertiaUI-Modal": !0,
|
|
2349
|
-
"X-InertiaUI-Modal-Use-Router": V ? 1 : 0
|
|
2353
|
+
"X-InertiaUI-Modal-Use-Router": V ? 1 : 0,
|
|
2354
|
+
"X-InertiaUI-Modal-Base-Url": Et
|
|
2350
2355
|
}, V)
|
|
2351
|
-
return vt.visit(
|
|
2356
|
+
return Nr = null, vt.visit(j, {
|
|
2352
2357
|
method: p,
|
|
2353
|
-
data:
|
|
2354
|
-
headers:
|
|
2358
|
+
data: z,
|
|
2359
|
+
headers: g,
|
|
2355
2360
|
preserveScroll: !0,
|
|
2356
2361
|
preserveState: !0,
|
|
2357
2362
|
onError: H,
|
|
2358
2363
|
onFinish: () => {
|
|
2359
|
-
|
|
2364
|
+
Yo(() => Nr).then(($) => {
|
|
2360
2365
|
const T = $.onCloseCallback, D = $.afterLeaveCallback;
|
|
2361
2366
|
$.update(
|
|
2362
2367
|
b,
|
|
@@ -2366,28 +2371,28 @@ const Tu = ({ children: t }) => {
|
|
|
2366
2371
|
() => {
|
|
2367
2372
|
O == null || O(), D == null || D();
|
|
2368
2373
|
}
|
|
2369
|
-
), W($)
|
|
2374
|
+
), W($);
|
|
2370
2375
|
});
|
|
2371
2376
|
}
|
|
2372
2377
|
});
|
|
2373
|
-
|
|
2374
|
-
url:
|
|
2378
|
+
Lt({
|
|
2379
|
+
url: j,
|
|
2375
2380
|
method: p,
|
|
2376
|
-
data:
|
|
2377
|
-
headers:
|
|
2381
|
+
data: z,
|
|
2382
|
+
headers: g
|
|
2378
2383
|
}).then(($) => W(u($.data, b, S, O))).catch(($) => {
|
|
2379
2384
|
H($);
|
|
2380
2385
|
});
|
|
2381
|
-
}),
|
|
2386
|
+
}), d = {
|
|
2382
2387
|
stack: e,
|
|
2383
2388
|
localModals: n,
|
|
2384
2389
|
push: i,
|
|
2385
2390
|
pushFromResponseData: u,
|
|
2386
2391
|
closeAll: () => {
|
|
2387
|
-
|
|
2392
|
+
kr.reverse().forEach((y) => y.close());
|
|
2388
2393
|
},
|
|
2389
2394
|
reset: () => o(() => []),
|
|
2390
|
-
visit:
|
|
2395
|
+
visit: h,
|
|
2391
2396
|
visitModal: s,
|
|
2392
2397
|
registerLocalModal: (y, p) => {
|
|
2393
2398
|
a((m) => ({
|
|
@@ -2402,76 +2407,83 @@ const Tu = ({ children: t }) => {
|
|
|
2402
2407
|
});
|
|
2403
2408
|
}
|
|
2404
2409
|
};
|
|
2405
|
-
return /* @__PURE__ */ R.jsx(
|
|
2406
|
-
},
|
|
2407
|
-
const t = ie(
|
|
2410
|
+
return /* @__PURE__ */ R.jsx(Kt.Provider, { value: d, children: t });
|
|
2411
|
+
}, Xt = () => {
|
|
2412
|
+
const t = ie(Kt);
|
|
2408
2413
|
if (t === null)
|
|
2409
2414
|
throw new Error("useModalStack must be used within a ModalStackProvider");
|
|
2410
2415
|
return t;
|
|
2411
|
-
}, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"],
|
|
2416
|
+
}, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Ac = (t, e) => {
|
|
2412
2417
|
e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
|
|
2413
2418
|
const r = ({ Component: n, props: a, key: o }) => {
|
|
2414
2419
|
const l = () => {
|
|
2415
|
-
const u =
|
|
2416
|
-
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((
|
|
2420
|
+
const u = Ar(n, { key: o, ...a });
|
|
2421
|
+
return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((f, s) => Ar(s, a, f)) : u;
|
|
2417
2422
|
};
|
|
2418
2423
|
return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
2419
2424
|
l(),
|
|
2420
|
-
/* @__PURE__ */ R.jsx(
|
|
2425
|
+
/* @__PURE__ */ R.jsx(Ru, {})
|
|
2421
2426
|
] });
|
|
2422
2427
|
};
|
|
2423
|
-
return /* @__PURE__ */ R.jsx(
|
|
2424
|
-
},
|
|
2425
|
-
|
|
2428
|
+
return /* @__PURE__ */ R.jsx($u, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
|
|
2429
|
+
}, Ru = ({ children: t }) => {
|
|
2430
|
+
var u;
|
|
2431
|
+
const e = ie(Kt);
|
|
2426
2432
|
let r = !1, n = !1;
|
|
2427
|
-
|
|
2428
|
-
() => vt.on("navigate", function(
|
|
2429
|
-
const
|
|
2430
|
-
if (!
|
|
2433
|
+
Y(() => vt.on("start", () => r = !0), []), Y(() => vt.on("finish", () => r = !1), []), Y(
|
|
2434
|
+
() => vt.on("navigate", function(i) {
|
|
2435
|
+
const f = i.detail.page.props._inertiaui_modal;
|
|
2436
|
+
if (!f) {
|
|
2431
2437
|
n && e.closeAll();
|
|
2432
2438
|
return;
|
|
2433
2439
|
}
|
|
2434
|
-
n =
|
|
2435
|
-
if (!
|
|
2440
|
+
n = f, Et = f.baseUrl, e.pushFromResponseData(f, {}, () => {
|
|
2441
|
+
if (!f.baseUrl) {
|
|
2436
2442
|
console.error("No base url in modal response data so cannot navigate back");
|
|
2437
2443
|
return;
|
|
2438
2444
|
}
|
|
2439
|
-
!r && window.location.href !==
|
|
2445
|
+
!r && window.location.href !== f.baseUrl && vt.visit(f.baseUrl, {
|
|
2440
2446
|
preserveScroll: !0,
|
|
2441
2447
|
preserveState: !0
|
|
2442
2448
|
});
|
|
2443
|
-
}).then((
|
|
2444
|
-
Nr =
|
|
2449
|
+
}).then((s) => {
|
|
2450
|
+
Nr = s;
|
|
2445
2451
|
});
|
|
2446
2452
|
}),
|
|
2447
2453
|
[]
|
|
2448
2454
|
);
|
|
2449
|
-
const a = (
|
|
2450
|
-
|
|
2455
|
+
const a = (i) => (kr.length && (i.headers["X-InertiaUI-Modal-Base-Url"] = Et), i);
|
|
2456
|
+
Y(() => (Lt.interceptors.request.use(a), () => Lt.interceptors.request.eject(a)), []);
|
|
2457
|
+
const o = jo(), l = k();
|
|
2458
|
+
return Y(() => {
|
|
2459
|
+
var s, h;
|
|
2460
|
+
const i = (s = o.props) == null ? void 0 : s._inertiaui_modal, f = l.current;
|
|
2461
|
+
l.current = i, i && f && i.component === f.component && i.url === f.url && ((h = e.stack[0]) == null || h.updateProps(i.props ?? {}));
|
|
2462
|
+
}, [(u = o.props) == null ? void 0 : u._inertiaui_modal]), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
2451
2463
|
t,
|
|
2452
2464
|
e.stack.length > 0 && /* @__PURE__ */ R.jsx(Ra, { index: 0 })
|
|
2453
2465
|
] });
|
|
2454
|
-
},
|
|
2455
|
-
|
|
2466
|
+
}, Zr = A.createContext(null);
|
|
2467
|
+
Zr.displayName = "ModalIndexContext";
|
|
2456
2468
|
const $a = () => {
|
|
2457
|
-
const t = A.useContext(
|
|
2469
|
+
const t = A.useContext(Zr);
|
|
2458
2470
|
if (t === void 0)
|
|
2459
2471
|
throw new Error("useModalIndex must be used within a ModalIndexProvider");
|
|
2460
2472
|
return t;
|
|
2461
2473
|
}, Ra = ({ index: t }) => {
|
|
2462
|
-
const { stack: e } =
|
|
2463
|
-
return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(
|
|
2474
|
+
const { stack: e } = Xt(), r = J(() => e[t], [e, t]);
|
|
2475
|
+
return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Zr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
|
|
2464
2476
|
r.component,
|
|
2465
2477
|
{
|
|
2466
2478
|
...r.props,
|
|
2467
2479
|
onModalEvent: (...n) => r.emit(...n)
|
|
2468
2480
|
}
|
|
2469
2481
|
) });
|
|
2470
|
-
}, Fa =
|
|
2471
|
-
const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } =
|
|
2472
|
-
var
|
|
2473
|
-
return (
|
|
2474
|
-
}, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ??
|
|
2482
|
+
}, Fa = Vr(({ name: t, children: e, ...r }, n) => {
|
|
2483
|
+
const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Xt(), [i, f] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
|
|
2484
|
+
var d;
|
|
2485
|
+
return (d = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : d.index;
|
|
2486
|
+
}, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? qr("type") === "slideover", [r.slideover]), w = J(
|
|
2475
2487
|
() => ({
|
|
2476
2488
|
slideover: v,
|
|
2477
2489
|
closeButton: r.closeButton ?? ze(v, "closeButton"),
|
|
@@ -2484,13 +2496,13 @@ const $a = () => {
|
|
|
2484
2496
|
}),
|
|
2485
2497
|
[r, s == null ? void 0 : s.config]
|
|
2486
2498
|
);
|
|
2487
|
-
return
|
|
2499
|
+
return Y(() => {
|
|
2488
2500
|
if (t) {
|
|
2489
|
-
let
|
|
2501
|
+
let d = null;
|
|
2490
2502
|
return l(t, (y) => {
|
|
2491
|
-
|
|
2503
|
+
d = y.registerEventListenersFromProps(r), f(y);
|
|
2492
2504
|
}), () => {
|
|
2493
|
-
|
|
2505
|
+
d == null || d(), d = null, u(t);
|
|
2494
2506
|
};
|
|
2495
2507
|
}
|
|
2496
2508
|
return s.registerEventListenersFromProps(r);
|
|
@@ -2500,7 +2512,7 @@ const $a = () => {
|
|
|
2500
2512
|
afterLeave: () => s.afterLeave(),
|
|
2501
2513
|
close: () => s.close(),
|
|
2502
2514
|
config: w,
|
|
2503
|
-
emit: (...
|
|
2515
|
+
emit: (...d) => s.emit(...d),
|
|
2504
2516
|
getChildModal: () => s.getChildModal(),
|
|
2505
2517
|
getParentModal: () => s.getParentModal(),
|
|
2506
2518
|
id: s == null ? void 0 : s.id,
|
|
@@ -2530,27 +2542,27 @@ const $a = () => {
|
|
|
2530
2542
|
setOpen: s.setOpen,
|
|
2531
2543
|
shouldRender: s.shouldRender
|
|
2532
2544
|
}) : e,
|
|
2533
|
-
|
|
2545
|
+
h && /* @__PURE__ */ R.jsx(Ra, { index: h })
|
|
2534
2546
|
] });
|
|
2535
2547
|
});
|
|
2536
2548
|
Fa.displayName = "HeadlessModal";
|
|
2537
|
-
function
|
|
2549
|
+
function Ia(t) {
|
|
2538
2550
|
var e, r, n = "";
|
|
2539
2551
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
2540
2552
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
2541
2553
|
var a = t.length;
|
|
2542
|
-
for (e = 0; e < a; e++) t[e] && (r =
|
|
2554
|
+
for (e = 0; e < a; e++) t[e] && (r = Ia(t[e])) && (n && (n += " "), n += r);
|
|
2543
2555
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
2544
2556
|
return n;
|
|
2545
2557
|
}
|
|
2546
|
-
function
|
|
2547
|
-
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e =
|
|
2558
|
+
function Vt() {
|
|
2559
|
+
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ia(t)) && (n && (n += " "), n += e);
|
|
2548
2560
|
return n;
|
|
2549
2561
|
}
|
|
2550
|
-
var
|
|
2562
|
+
var Fu = Object.defineProperty, Iu = (t, e, r) => e in t ? Fu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Or = (t, e, r) => (Iu(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
2551
2563
|
let Cu = class {
|
|
2552
2564
|
constructor() {
|
|
2553
|
-
|
|
2565
|
+
Or(this, "current", this.detect()), Or(this, "handoffState", "pending"), Or(this, "currentId", 0);
|
|
2554
2566
|
}
|
|
2555
2567
|
set(e) {
|
|
2556
2568
|
this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
|
|
@@ -2577,10 +2589,10 @@ let Cu = class {
|
|
|
2577
2589
|
return this.handoffState === "complete";
|
|
2578
2590
|
}
|
|
2579
2591
|
}, Ve = new Cu();
|
|
2580
|
-
function
|
|
2592
|
+
function Jt(t) {
|
|
2581
2593
|
return Ve.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
|
|
2582
2594
|
}
|
|
2583
|
-
function
|
|
2595
|
+
function Qt(t) {
|
|
2584
2596
|
typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
|
|
2585
2597
|
throw e;
|
|
2586
2598
|
}));
|
|
@@ -2598,7 +2610,7 @@ function Me() {
|
|
|
2598
2610
|
return e.add(() => clearTimeout(n));
|
|
2599
2611
|
}, microTask(...r) {
|
|
2600
2612
|
let n = { current: !0 };
|
|
2601
|
-
return
|
|
2613
|
+
return Qt(() => {
|
|
2602
2614
|
n.current && r[0]();
|
|
2603
2615
|
}), e.add(() => {
|
|
2604
2616
|
n.current = !1;
|
|
@@ -2621,15 +2633,15 @@ function Me() {
|
|
|
2621
2633
|
} };
|
|
2622
2634
|
return e;
|
|
2623
2635
|
}
|
|
2624
|
-
function
|
|
2636
|
+
function en() {
|
|
2625
2637
|
let [t] = Q(Me);
|
|
2626
|
-
return
|
|
2638
|
+
return Y(() => () => t.dispose(), [t]), t;
|
|
2627
2639
|
}
|
|
2628
2640
|
let ae = (t, e) => {
|
|
2629
|
-
Ve.isServer ?
|
|
2641
|
+
Ve.isServer ? Y(t, e) : Co(t, e);
|
|
2630
2642
|
};
|
|
2631
2643
|
function qe(t) {
|
|
2632
|
-
let e =
|
|
2644
|
+
let e = k(t);
|
|
2633
2645
|
return ae(() => {
|
|
2634
2646
|
e.current = t;
|
|
2635
2647
|
}, [t]), e;
|
|
@@ -2637,83 +2649,83 @@ function qe(t) {
|
|
|
2637
2649
|
let U = function(t) {
|
|
2638
2650
|
let e = qe(t);
|
|
2639
2651
|
return A.useCallback((...r) => e.current(...r), [e]);
|
|
2640
|
-
},
|
|
2641
|
-
function
|
|
2642
|
-
return ie(
|
|
2652
|
+
}, Mu = fe(void 0);
|
|
2653
|
+
function _u() {
|
|
2654
|
+
return ie(Mu);
|
|
2643
2655
|
}
|
|
2644
|
-
function
|
|
2656
|
+
function jr(...t) {
|
|
2645
2657
|
return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
|
|
2646
2658
|
}
|
|
2647
|
-
function
|
|
2659
|
+
function Ie(t, e, ...r) {
|
|
2648
2660
|
if (t in e) {
|
|
2649
2661
|
let a = e[t];
|
|
2650
2662
|
return typeof a == "function" ? a(...r) : a;
|
|
2651
2663
|
}
|
|
2652
2664
|
let n = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((a) => `"${a}"`).join(", ")}.`);
|
|
2653
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
2654
|
-
}
|
|
2655
|
-
var
|
|
2656
|
-
function
|
|
2657
|
-
let t =
|
|
2658
|
-
return ve((e) =>
|
|
2659
|
-
}
|
|
2660
|
-
function
|
|
2661
|
-
u = u ??
|
|
2662
|
-
let i =
|
|
2663
|
-
if (o) return
|
|
2664
|
-
let
|
|
2665
|
-
if (
|
|
2666
|
-
let { static: s = !1, ...
|
|
2667
|
-
if (s) return
|
|
2668
|
-
}
|
|
2669
|
-
if (
|
|
2670
|
-
let { unmount: s = !0, ...
|
|
2671
|
-
return
|
|
2665
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, Ie), n;
|
|
2666
|
+
}
|
|
2667
|
+
var qt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(qt || {}), Fe = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Fe || {});
|
|
2668
|
+
function de() {
|
|
2669
|
+
let t = Nu();
|
|
2670
|
+
return ve((e) => Du({ mergeRefs: t, ...e }), [t]);
|
|
2671
|
+
}
|
|
2672
|
+
function Du({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
|
|
2673
|
+
u = u ?? ku;
|
|
2674
|
+
let i = Ca(e, t);
|
|
2675
|
+
if (o) return Nt(i, r, n, l, u);
|
|
2676
|
+
let f = a ?? 0;
|
|
2677
|
+
if (f & 2) {
|
|
2678
|
+
let { static: s = !1, ...h } = i;
|
|
2679
|
+
if (s) return Nt(h, r, n, l, u);
|
|
2680
|
+
}
|
|
2681
|
+
if (f & 1) {
|
|
2682
|
+
let { unmount: s = !0, ...h } = i;
|
|
2683
|
+
return Ie(s ? 0 : 1, { 0() {
|
|
2672
2684
|
return null;
|
|
2673
2685
|
}, 1() {
|
|
2674
|
-
return
|
|
2686
|
+
return Nt({ ...h, hidden: !0, style: { display: "none" } }, r, n, l, u);
|
|
2675
2687
|
} });
|
|
2676
2688
|
}
|
|
2677
|
-
return
|
|
2689
|
+
return Nt(i, r, n, l, u);
|
|
2678
2690
|
}
|
|
2679
|
-
function
|
|
2680
|
-
let { as: o = r, children: l, refName: u = "ref", ...i } =
|
|
2691
|
+
function Nt(t, e = {}, r, n, a) {
|
|
2692
|
+
let { as: o = r, children: l, refName: u = "ref", ...i } = Pr(t, ["unmount", "static"]), f = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
|
|
2681
2693
|
"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);
|
|
2682
|
-
let
|
|
2694
|
+
let h = {};
|
|
2683
2695
|
if (e) {
|
|
2684
2696
|
let v = !1, w = [];
|
|
2685
|
-
for (let [
|
|
2697
|
+
for (let [d, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(d.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
|
|
2686
2698
|
if (v) {
|
|
2687
|
-
|
|
2688
|
-
for (let
|
|
2699
|
+
h["data-headlessui-state"] = w.join(" ");
|
|
2700
|
+
for (let d of w) h[`data-${d}`] = "";
|
|
2689
2701
|
}
|
|
2690
2702
|
}
|
|
2691
|
-
if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(
|
|
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(
|
|
2703
|
+
if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(h)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
|
|
2704
|
+
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(h))).map((v) => ` - ${v}`).join(`
|
|
2693
2705
|
`), "", "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(`
|
|
2694
2706
|
`)].join(`
|
|
2695
2707
|
`));
|
|
2696
2708
|
} else {
|
|
2697
|
-
let v = s.props, w = v == null ? void 0 : v.className,
|
|
2698
|
-
for (let m in
|
|
2699
|
-
return _o(s, Object.assign({}, p,
|
|
2709
|
+
let v = s.props, w = v == null ? void 0 : v.className, d = typeof w == "function" ? (...m) => jr(w(...m), i.className) : jr(w, i.className), y = d ? { className: d } : {}, p = Ca(s.props, je(Pr(i, ["ref"])));
|
|
2710
|
+
for (let m in h) m in p && delete h[m];
|
|
2711
|
+
return _o(s, Object.assign({}, p, h, f, { ref: a(s.ref, f.ref) }, y));
|
|
2700
2712
|
}
|
|
2701
|
-
return
|
|
2713
|
+
return Ar(o, Object.assign({}, Pr(i, ["ref"]), o !== he && f, o !== he && h), s);
|
|
2702
2714
|
}
|
|
2703
|
-
function
|
|
2704
|
-
let t =
|
|
2715
|
+
function Nu() {
|
|
2716
|
+
let t = k([]), e = ve((r) => {
|
|
2705
2717
|
for (let n of t.current) n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
2706
2718
|
}, []);
|
|
2707
2719
|
return (...r) => {
|
|
2708
2720
|
if (!r.every((n) => n == null)) return t.current = r, e;
|
|
2709
2721
|
};
|
|
2710
2722
|
}
|
|
2711
|
-
function
|
|
2723
|
+
function ku(...t) {
|
|
2712
2724
|
return t.every((e) => e == null) ? void 0 : (e) => {
|
|
2713
2725
|
for (let r of t) r != null && (typeof r == "function" ? r(e) : r.current = e);
|
|
2714
2726
|
};
|
|
2715
2727
|
}
|
|
2716
|
-
function
|
|
2728
|
+
function Ca(...t) {
|
|
2717
2729
|
if (t.length === 0) return {};
|
|
2718
2730
|
if (t.length === 1) return t[0];
|
|
2719
2731
|
let e = {}, r = {};
|
|
@@ -2733,32 +2745,32 @@ function Ia(...t) {
|
|
|
2733
2745
|
}
|
|
2734
2746
|
function le(t) {
|
|
2735
2747
|
var e;
|
|
2736
|
-
return Object.assign(
|
|
2748
|
+
return Object.assign(Vr(t), { displayName: (e = t.displayName) != null ? e : t.name });
|
|
2737
2749
|
}
|
|
2738
2750
|
function je(t) {
|
|
2739
2751
|
let e = Object.assign({}, t);
|
|
2740
2752
|
for (let r in e) e[r] === void 0 && delete e[r];
|
|
2741
2753
|
return e;
|
|
2742
2754
|
}
|
|
2743
|
-
function
|
|
2755
|
+
function Pr(t, e = []) {
|
|
2744
2756
|
let r = Object.assign({}, t);
|
|
2745
2757
|
for (let n of e) n in r && delete r[n];
|
|
2746
2758
|
return r;
|
|
2747
2759
|
}
|
|
2748
|
-
let
|
|
2749
|
-
var
|
|
2750
|
-
function
|
|
2760
|
+
let ju = "span";
|
|
2761
|
+
var Gt = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(Gt || {});
|
|
2762
|
+
function Lu(t, e) {
|
|
2751
2763
|
var r;
|
|
2752
2764
|
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" } } };
|
|
2753
|
-
return
|
|
2765
|
+
return de()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ju, name: "Hidden" });
|
|
2754
2766
|
}
|
|
2755
|
-
let
|
|
2756
|
-
function
|
|
2767
|
+
let Lr = le(Lu), Ma = Symbol();
|
|
2768
|
+
function Wu(t, e = !0) {
|
|
2757
2769
|
return Object.assign(t, { [Ma]: e });
|
|
2758
2770
|
}
|
|
2759
2771
|
function Se(...t) {
|
|
2760
|
-
let e =
|
|
2761
|
-
|
|
2772
|
+
let e = k(t);
|
|
2773
|
+
Y(() => {
|
|
2762
2774
|
e.current = t;
|
|
2763
2775
|
}, [t]);
|
|
2764
2776
|
let r = U((n) => {
|
|
@@ -2766,41 +2778,41 @@ function Se(...t) {
|
|
|
2766
2778
|
});
|
|
2767
2779
|
return t.every((n) => n == null || (n == null ? void 0 : n[Ma])) ? void 0 : r;
|
|
2768
2780
|
}
|
|
2769
|
-
let
|
|
2770
|
-
|
|
2781
|
+
let tn = fe(null);
|
|
2782
|
+
tn.displayName = "DescriptionContext";
|
|
2771
2783
|
function _a() {
|
|
2772
|
-
let t = ie(
|
|
2784
|
+
let t = ie(tn);
|
|
2773
2785
|
if (t === null) {
|
|
2774
2786
|
let e = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
2775
2787
|
throw Error.captureStackTrace && Error.captureStackTrace(e, _a), e;
|
|
2776
2788
|
}
|
|
2777
2789
|
return t;
|
|
2778
2790
|
}
|
|
2779
|
-
function
|
|
2791
|
+
function Uu() {
|
|
2780
2792
|
let [t, e] = Q([]);
|
|
2781
2793
|
return [t.length > 0 ? t.join(" ") : void 0, J(() => function(r) {
|
|
2782
2794
|
let n = U((o) => (e((l) => [...l, o]), () => e((l) => {
|
|
2783
2795
|
let u = l.slice(), i = u.indexOf(o);
|
|
2784
2796
|
return i !== -1 && u.splice(i, 1), u;
|
|
2785
2797
|
}))), a = J(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
|
|
2786
|
-
return A.createElement(
|
|
2798
|
+
return A.createElement(tn.Provider, { value: a }, r.children);
|
|
2787
2799
|
}, [e])];
|
|
2788
2800
|
}
|
|
2789
|
-
let
|
|
2790
|
-
function
|
|
2791
|
-
let r =
|
|
2801
|
+
let Bu = "p";
|
|
2802
|
+
function Hu(t, e) {
|
|
2803
|
+
let r = Pt(), n = _u(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
|
|
2792
2804
|
ae(() => l.register(a), [a, l.register]);
|
|
2793
|
-
let i = n || !1,
|
|
2794
|
-
return
|
|
2805
|
+
let i = n || !1, f = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
|
|
2806
|
+
return de()({ ourProps: s, theirProps: o, slot: f, defaultTag: Bu, name: l.name || "Description" });
|
|
2795
2807
|
}
|
|
2796
|
-
let
|
|
2808
|
+
let Vu = le(Hu), qu = Object.assign(Vu, {});
|
|
2797
2809
|
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 || {});
|
|
2798
|
-
let
|
|
2810
|
+
let Gu = fe(() => {
|
|
2799
2811
|
});
|
|
2800
|
-
function
|
|
2801
|
-
return A.createElement(
|
|
2812
|
+
function Yu({ value: t, children: e }) {
|
|
2813
|
+
return A.createElement(Gu.Provider, { value: t }, e);
|
|
2802
2814
|
}
|
|
2803
|
-
let
|
|
2815
|
+
let zu = class extends Map {
|
|
2804
2816
|
constructor(e) {
|
|
2805
2817
|
super(), this.factory = e;
|
|
2806
2818
|
}
|
|
@@ -2823,7 +2835,7 @@ function Na(t, e) {
|
|
|
2823
2835
|
function ka(t) {
|
|
2824
2836
|
return Do(t.subscribe, t.getSnapshot, t.getSnapshot);
|
|
2825
2837
|
}
|
|
2826
|
-
let
|
|
2838
|
+
let Ku = new zu(() => Na(() => [], { ADD(t) {
|
|
2827
2839
|
return this.includes(t) ? this : [...this, t];
|
|
2828
2840
|
}, REMOVE(t) {
|
|
2829
2841
|
let e = this.indexOf(t);
|
|
@@ -2832,27 +2844,27 @@ let zu = new Yu(() => Na(() => [], { ADD(t) {
|
|
|
2832
2844
|
return r.splice(e, 1), r;
|
|
2833
2845
|
} }));
|
|
2834
2846
|
function ot(t, e) {
|
|
2835
|
-
let r =
|
|
2847
|
+
let r = Ku.get(e), n = Pt(), a = ka(r);
|
|
2836
2848
|
if (ae(() => {
|
|
2837
2849
|
if (t) return r.dispatch("ADD", n), () => r.dispatch("REMOVE", n);
|
|
2838
2850
|
}, [r, t]), !t) return !1;
|
|
2839
2851
|
let o = a.indexOf(n), l = a.length;
|
|
2840
2852
|
return o === -1 && (o = l, l += 1), o === l - 1;
|
|
2841
2853
|
}
|
|
2842
|
-
let
|
|
2854
|
+
let Wr = /* @__PURE__ */ new Map(), St = /* @__PURE__ */ new Map();
|
|
2843
2855
|
function Kn(t) {
|
|
2844
2856
|
var e;
|
|
2845
|
-
let r = (e =
|
|
2846
|
-
return
|
|
2857
|
+
let r = (e = St.get(t)) != null ? e : 0;
|
|
2858
|
+
return St.set(t, r + 1), r !== 0 ? () => Xn(t) : (Wr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
|
|
2847
2859
|
}
|
|
2848
2860
|
function Xn(t) {
|
|
2849
2861
|
var e;
|
|
2850
|
-
let r = (e =
|
|
2851
|
-
if (r === 1 ?
|
|
2852
|
-
let n =
|
|
2853
|
-
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert,
|
|
2862
|
+
let r = (e = St.get(t)) != null ? e : 1;
|
|
2863
|
+
if (r === 1 ? St.delete(t) : St.set(t, r - 1), r !== 1) return;
|
|
2864
|
+
let n = Wr.get(t);
|
|
2865
|
+
n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Wr.delete(t));
|
|
2854
2866
|
}
|
|
2855
|
-
function
|
|
2867
|
+
function Xu(t, { allowed: e, disallowed: r } = {}) {
|
|
2856
2868
|
let n = ot(t, "inert-others");
|
|
2857
2869
|
ae(() => {
|
|
2858
2870
|
var a, o;
|
|
@@ -2862,23 +2874,23 @@ function Ku(t, { allowed: e, disallowed: r } = {}) {
|
|
|
2862
2874
|
let u = (o = e == null ? void 0 : e()) != null ? o : [];
|
|
2863
2875
|
for (let i of u) {
|
|
2864
2876
|
if (!i) continue;
|
|
2865
|
-
let
|
|
2866
|
-
if (!
|
|
2877
|
+
let f = Jt(i);
|
|
2878
|
+
if (!f) continue;
|
|
2867
2879
|
let s = i.parentElement;
|
|
2868
|
-
for (; s && s !==
|
|
2869
|
-
for (let
|
|
2880
|
+
for (; s && s !== f.body; ) {
|
|
2881
|
+
for (let h of s.children) u.some((v) => h.contains(v)) || l.add(Kn(h));
|
|
2870
2882
|
s = s.parentElement;
|
|
2871
2883
|
}
|
|
2872
2884
|
}
|
|
2873
2885
|
return l.dispose;
|
|
2874
2886
|
}, [n, e, r]);
|
|
2875
2887
|
}
|
|
2876
|
-
function
|
|
2888
|
+
function Ju(t, e, r) {
|
|
2877
2889
|
let n = qe((a) => {
|
|
2878
2890
|
let o = a.getBoundingClientRect();
|
|
2879
2891
|
o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
|
|
2880
2892
|
});
|
|
2881
|
-
|
|
2893
|
+
Y(() => {
|
|
2882
2894
|
if (!t) return;
|
|
2883
2895
|
let a = e === null ? null : e instanceof HTMLElement ? e : e.current;
|
|
2884
2896
|
if (!a) return;
|
|
@@ -2894,29 +2906,29 @@ function Xu(t, e, r) {
|
|
|
2894
2906
|
return () => o.dispose();
|
|
2895
2907
|
}, [e, n, t]);
|
|
2896
2908
|
}
|
|
2897
|
-
let
|
|
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 || {}),
|
|
2899
|
-
function Zu(t = document.body) {
|
|
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)));
|
|
2901
|
-
}
|
|
2909
|
+
let Yt = ["[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(","), Qu = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
|
|
2910
|
+
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 || {}), Ur = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Ur || {}), Zu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Zu || {});
|
|
2902
2911
|
function es(t = document.body) {
|
|
2903
|
-
return t == null ? [] : Array.from(t.querySelectorAll(
|
|
2912
|
+
return t == null ? [] : Array.from(t.querySelectorAll(Yt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2913
|
+
}
|
|
2914
|
+
function ts(t = document.body) {
|
|
2915
|
+
return t == null ? [] : Array.from(t.querySelectorAll(Qu)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2904
2916
|
}
|
|
2905
2917
|
var ja = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ja || {});
|
|
2906
|
-
function
|
|
2918
|
+
function rs(t, e = 0) {
|
|
2907
2919
|
var r;
|
|
2908
|
-
return t === ((r =
|
|
2909
|
-
return t.matches(
|
|
2920
|
+
return t === ((r = Jt(t)) == null ? void 0 : r.body) ? !1 : Ie(e, { 0() {
|
|
2921
|
+
return t.matches(Yt);
|
|
2910
2922
|
}, 1() {
|
|
2911
2923
|
let n = t;
|
|
2912
2924
|
for (; n !== null; ) {
|
|
2913
|
-
if (n.matches(
|
|
2925
|
+
if (n.matches(Yt)) return !0;
|
|
2914
2926
|
n = n.parentElement;
|
|
2915
2927
|
}
|
|
2916
2928
|
return !1;
|
|
2917
2929
|
} });
|
|
2918
2930
|
}
|
|
2919
|
-
var
|
|
2931
|
+
var ns = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(ns || {});
|
|
2920
2932
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (t) => {
|
|
2921
2933
|
t.metaKey || t.altKey || t.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2922
2934
|
}, !0), document.addEventListener("click", (t) => {
|
|
@@ -2925,12 +2937,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
2925
2937
|
function Ae(t) {
|
|
2926
2938
|
t == null || t.focus({ preventScroll: !0 });
|
|
2927
2939
|
}
|
|
2928
|
-
let
|
|
2929
|
-
function
|
|
2940
|
+
let as = ["textarea", "input"].join(",");
|
|
2941
|
+
function os(t) {
|
|
2930
2942
|
var e, r;
|
|
2931
|
-
return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t,
|
|
2943
|
+
return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t, as)) != null ? r : !1;
|
|
2932
2944
|
}
|
|
2933
|
-
function
|
|
2945
|
+
function is(t, e = (r) => r) {
|
|
2934
2946
|
return t.slice().sort((r, n) => {
|
|
2935
2947
|
let a = e(r), o = e(n);
|
|
2936
2948
|
if (a === null || o === null) return 0;
|
|
@@ -2938,9 +2950,9 @@ function os(t, e = (r) => r) {
|
|
|
2938
2950
|
return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
2939
2951
|
});
|
|
2940
2952
|
}
|
|
2941
|
-
function
|
|
2942
|
-
let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ?
|
|
2943
|
-
a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((
|
|
2953
|
+
function xt(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
|
|
2954
|
+
let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? is(t) : t : e & 64 ? ts(t) : es(t);
|
|
2955
|
+
a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((d) => d != null && "current" in d ? (d == null ? void 0 : d.current) === w : d === w))), n = n ?? o.activeElement;
|
|
2944
2956
|
let u = (() => {
|
|
2945
2957
|
if (e & 5) return 1;
|
|
2946
2958
|
if (e & 10) return -1;
|
|
@@ -2951,31 +2963,31 @@ function St(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] }
|
|
|
2951
2963
|
if (e & 4) return Math.max(0, l.indexOf(n)) + 1;
|
|
2952
2964
|
if (e & 8) return l.length - 1;
|
|
2953
2965
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2954
|
-
})(),
|
|
2966
|
+
})(), f = e & 32 ? { preventScroll: !0 } : {}, s = 0, h = l.length, v;
|
|
2955
2967
|
do {
|
|
2956
|
-
if (s >=
|
|
2968
|
+
if (s >= h || s + h <= 0) return 0;
|
|
2957
2969
|
let w = i + s;
|
|
2958
|
-
if (e & 16) w = (w +
|
|
2970
|
+
if (e & 16) w = (w + h) % h;
|
|
2959
2971
|
else {
|
|
2960
2972
|
if (w < 0) return 3;
|
|
2961
|
-
if (w >=
|
|
2973
|
+
if (w >= h) return 1;
|
|
2962
2974
|
}
|
|
2963
|
-
v = l[w], v == null || v.focus(
|
|
2975
|
+
v = l[w], v == null || v.focus(f), s += u;
|
|
2964
2976
|
} while (v !== o.activeElement);
|
|
2965
|
-
return e & 6 &&
|
|
2977
|
+
return e & 6 && os(v) && v.select(), 2;
|
|
2966
2978
|
}
|
|
2967
2979
|
function La() {
|
|
2968
2980
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2969
2981
|
}
|
|
2970
|
-
function
|
|
2982
|
+
function ls() {
|
|
2971
2983
|
return /Android/gi.test(window.navigator.userAgent);
|
|
2972
2984
|
}
|
|
2973
|
-
function
|
|
2974
|
-
return La() ||
|
|
2985
|
+
function us() {
|
|
2986
|
+
return La() || ls();
|
|
2975
2987
|
}
|
|
2976
2988
|
function yt(t, e, r, n) {
|
|
2977
2989
|
let a = qe(r);
|
|
2978
|
-
|
|
2990
|
+
Y(() => {
|
|
2979
2991
|
if (!t) return;
|
|
2980
2992
|
function o(l) {
|
|
2981
2993
|
a.current(l);
|
|
@@ -2985,7 +2997,7 @@ function yt(t, e, r, n) {
|
|
|
2985
2997
|
}
|
|
2986
2998
|
function Wa(t, e, r, n) {
|
|
2987
2999
|
let a = qe(r);
|
|
2988
|
-
|
|
3000
|
+
Y(() => {
|
|
2989
3001
|
if (!t) return;
|
|
2990
3002
|
function o(l) {
|
|
2991
3003
|
a.current(l);
|
|
@@ -2994,40 +3006,40 @@ function Wa(t, e, r, n) {
|
|
|
2994
3006
|
}, [t, e, n]);
|
|
2995
3007
|
}
|
|
2996
3008
|
const Jn = 30;
|
|
2997
|
-
function
|
|
2998
|
-
let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i,
|
|
3009
|
+
function ss(t, e, r) {
|
|
3010
|
+
let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i, f) {
|
|
2999
3011
|
if (i.defaultPrevented) return;
|
|
3000
|
-
let s =
|
|
3012
|
+
let s = f(i);
|
|
3001
3013
|
if (s === null || !s.getRootNode().contains(s) || !s.isConnected) return;
|
|
3002
|
-
let
|
|
3014
|
+
let h = function v(w) {
|
|
3003
3015
|
return typeof w == "function" ? v(w()) : Array.isArray(w) || w instanceof Set ? w : [w];
|
|
3004
3016
|
}(e);
|
|
3005
|
-
for (let v of
|
|
3006
|
-
return !
|
|
3007
|
-
}, [a, e]), l =
|
|
3017
|
+
for (let v of h) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
|
|
3018
|
+
return !rs(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
|
|
3019
|
+
}, [a, e]), l = k(null);
|
|
3008
3020
|
yt(n, "pointerdown", (i) => {
|
|
3009
|
-
var
|
|
3010
|
-
l.current = ((s = (
|
|
3021
|
+
var f, s;
|
|
3022
|
+
l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
|
|
3011
3023
|
}, !0), yt(n, "mousedown", (i) => {
|
|
3012
|
-
var
|
|
3013
|
-
l.current = ((s = (
|
|
3024
|
+
var f, s;
|
|
3025
|
+
l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
|
|
3014
3026
|
}, !0), yt(n, "click", (i) => {
|
|
3015
|
-
|
|
3027
|
+
us() || l.current && (o(i, () => l.current), l.current = null);
|
|
3016
3028
|
}, !0);
|
|
3017
|
-
let u =
|
|
3029
|
+
let u = k({ x: 0, y: 0 });
|
|
3018
3030
|
yt(n, "touchstart", (i) => {
|
|
3019
3031
|
u.current.x = i.touches[0].clientX, u.current.y = i.touches[0].clientY;
|
|
3020
3032
|
}, !0), yt(n, "touchend", (i) => {
|
|
3021
|
-
let
|
|
3022
|
-
if (!(Math.abs(
|
|
3033
|
+
let f = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
|
|
3034
|
+
if (!(Math.abs(f.x - u.current.x) >= Jn || Math.abs(f.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
|
|
3023
3035
|
}, !0), Wa(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
3024
3036
|
}
|
|
3025
|
-
function
|
|
3026
|
-
return J(() =>
|
|
3037
|
+
function $t(...t) {
|
|
3038
|
+
return J(() => Jt(...t), [...t]);
|
|
3027
3039
|
}
|
|
3028
3040
|
function Ua(t, e, r, n) {
|
|
3029
3041
|
let a = qe(r);
|
|
3030
|
-
|
|
3042
|
+
Y(() => {
|
|
3031
3043
|
t = t ?? window;
|
|
3032
3044
|
function o(l) {
|
|
3033
3045
|
a.current(l);
|
|
@@ -3035,7 +3047,7 @@ function Ua(t, e, r, n) {
|
|
|
3035
3047
|
return t.addEventListener(e, o, n), () => t.removeEventListener(e, o, n);
|
|
3036
3048
|
}, [t, e, n]);
|
|
3037
3049
|
}
|
|
3038
|
-
function
|
|
3050
|
+
function cs() {
|
|
3039
3051
|
let t;
|
|
3040
3052
|
return { before({ doc: e }) {
|
|
3041
3053
|
var r;
|
|
@@ -3046,7 +3058,7 @@ function ss() {
|
|
|
3046
3058
|
r.style(n, "paddingRight", `${o}px`);
|
|
3047
3059
|
} };
|
|
3048
3060
|
}
|
|
3049
|
-
function
|
|
3061
|
+
function fs() {
|
|
3050
3062
|
return La() ? { before({ doc: t, d: e, meta: r }) {
|
|
3051
3063
|
function n(a) {
|
|
3052
3064
|
return r.containers.flatMap((o) => o()).some((o) => o.contains(a));
|
|
@@ -3062,7 +3074,7 @@ function cs() {
|
|
|
3062
3074
|
if (u.target instanceof HTMLElement) try {
|
|
3063
3075
|
let i = u.target.closest("a");
|
|
3064
3076
|
if (!i) return;
|
|
3065
|
-
let { hash:
|
|
3077
|
+
let { hash: f } = new URL(i.href), s = t.querySelector(f);
|
|
3066
3078
|
s && !n(s) && (l = s);
|
|
3067
3079
|
} catch {
|
|
3068
3080
|
}
|
|
@@ -3089,12 +3101,12 @@ function cs() {
|
|
|
3089
3101
|
});
|
|
3090
3102
|
} } : {};
|
|
3091
3103
|
}
|
|
3092
|
-
function
|
|
3104
|
+
function ds() {
|
|
3093
3105
|
return { before({ doc: t, d: e }) {
|
|
3094
3106
|
e.style(t.documentElement, "overflow", "hidden");
|
|
3095
3107
|
} };
|
|
3096
3108
|
}
|
|
3097
|
-
function
|
|
3109
|
+
function ps(t) {
|
|
3098
3110
|
let e = {};
|
|
3099
3111
|
for (let r of t) Object.assign(e, r(e));
|
|
3100
3112
|
return e;
|
|
@@ -3107,7 +3119,7 @@ let Ue = Na(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
|
|
|
3107
3119
|
let r = this.get(t);
|
|
3108
3120
|
return r && (r.count--, r.meta.delete(e)), this;
|
|
3109
3121
|
}, SCROLL_PREVENT({ doc: t, d: e, meta: r }) {
|
|
3110
|
-
let n = { doc: t, d: e, meta:
|
|
3122
|
+
let n = { doc: t, d: e, meta: ps(r) }, a = [fs(), cs(), ds()];
|
|
3111
3123
|
a.forEach(({ before: o }) => o == null ? void 0 : o(n)), a.forEach(({ after: o }) => o == null ? void 0 : o(n));
|
|
3112
3124
|
}, SCROLL_ALLOW({ d: t }) {
|
|
3113
3125
|
t.dispose();
|
|
@@ -3122,21 +3134,21 @@ Ue.subscribe(() => {
|
|
|
3122
3134
|
(a && !n || !a && n) && Ue.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && Ue.dispatch("TEARDOWN", r);
|
|
3123
3135
|
}
|
|
3124
3136
|
});
|
|
3125
|
-
function
|
|
3137
|
+
function ys(t, e, r = () => ({ containers: [] })) {
|
|
3126
3138
|
let n = ka(Ue), a = e ? n.get(e) : void 0, o = a ? a.count > 0 : !1;
|
|
3127
3139
|
return ae(() => {
|
|
3128
3140
|
if (!(!e || !t)) return Ue.dispatch("PUSH", e, r), () => Ue.dispatch("POP", e, r);
|
|
3129
3141
|
}, [t, e]), o;
|
|
3130
3142
|
}
|
|
3131
|
-
function
|
|
3143
|
+
function vs(t, e, r = () => [document.body]) {
|
|
3132
3144
|
let n = ot(t, "scroll-lock");
|
|
3133
|
-
|
|
3145
|
+
ys(n, e, (a) => {
|
|
3134
3146
|
var o;
|
|
3135
3147
|
return { containers: [...(o = a.containers) != null ? o : [], r] };
|
|
3136
3148
|
});
|
|
3137
3149
|
}
|
|
3138
|
-
function
|
|
3139
|
-
let [e, r] = Q(t), n = ve((i) => r(i), [e]), a = ve((i) => r((
|
|
3150
|
+
function ms(t = 0) {
|
|
3151
|
+
let [e, r] = Q(t), n = ve((i) => r(i), [e]), a = ve((i) => r((f) => f | i), [e]), o = ve((i) => (e & i) === i, [e]), l = ve((i) => r((f) => f & ~i), [r]), u = ve((i) => r((f) => f ^ i), [r]);
|
|
3140
3152
|
return { flags: e, setFlag: n, addFlag: a, hasFlag: o, removeFlag: l, toggleFlag: u };
|
|
3141
3153
|
}
|
|
3142
3154
|
var Qn, Zn;
|
|
@@ -3144,14 +3156,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Qn
|
|
|
3144
3156
|
return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
|
|
3145
3157
|
`)), [];
|
|
3146
3158
|
});
|
|
3147
|
-
var
|
|
3148
|
-
function
|
|
3159
|
+
var hs = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(hs || {});
|
|
3160
|
+
function gs(t) {
|
|
3149
3161
|
let e = {};
|
|
3150
3162
|
for (let r in t) t[r] === !0 && (e[`data-${r}`] = "");
|
|
3151
3163
|
return e;
|
|
3152
3164
|
}
|
|
3153
|
-
function
|
|
3154
|
-
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } =
|
|
3165
|
+
function bs(t, e, r, n) {
|
|
3166
|
+
let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = ms(t && a ? 3 : 0), f = k(!1), s = k(!1), h = en();
|
|
3155
3167
|
return ae(() => {
|
|
3156
3168
|
var v;
|
|
3157
3169
|
if (t) {
|
|
@@ -3159,26 +3171,26 @@ function gs(t, e, r, n) {
|
|
|
3159
3171
|
r && u(3);
|
|
3160
3172
|
return;
|
|
3161
3173
|
}
|
|
3162
|
-
return (v = n == null ? void 0 : n.start) == null || v.call(n, r),
|
|
3163
|
-
s.current ? s.current = !1 : s.current =
|
|
3174
|
+
return (v = n == null ? void 0 : n.start) == null || v.call(n, r), ws(e, { inFlight: f, prepare() {
|
|
3175
|
+
s.current ? s.current = !1 : s.current = f.current, f.current = !0, !s.current && (r ? (u(3), i(4)) : (u(4), i(2)));
|
|
3164
3176
|
}, run() {
|
|
3165
3177
|
s.current ? r ? (i(3), u(4)) : (i(4), u(3)) : r ? i(1) : u(1);
|
|
3166
3178
|
}, done() {
|
|
3167
3179
|
var w;
|
|
3168
|
-
s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (
|
|
3180
|
+
s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (f.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
|
|
3169
3181
|
} });
|
|
3170
3182
|
}
|
|
3171
|
-
}, [t, r, e,
|
|
3183
|
+
}, [t, r, e, h]), 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 }];
|
|
3172
3184
|
}
|
|
3173
|
-
function
|
|
3185
|
+
function ws(t, { prepare: e, run: r, done: n, inFlight: a }) {
|
|
3174
3186
|
let o = Me();
|
|
3175
|
-
return
|
|
3187
|
+
return Ss(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
|
|
3176
3188
|
r(), o.requestAnimationFrame(() => {
|
|
3177
|
-
o.add(
|
|
3189
|
+
o.add(Es(t, n));
|
|
3178
3190
|
});
|
|
3179
3191
|
}), o.dispose;
|
|
3180
3192
|
}
|
|
3181
|
-
function
|
|
3193
|
+
function Es(t, e) {
|
|
3182
3194
|
var r, n;
|
|
3183
3195
|
let a = Me();
|
|
3184
3196
|
if (!t) return a.dispose;
|
|
@@ -3191,7 +3203,7 @@ function ws(t, e) {
|
|
|
3191
3203
|
o || e();
|
|
3192
3204
|
}), a.dispose);
|
|
3193
3205
|
}
|
|
3194
|
-
function
|
|
3206
|
+
function Ss(t, { inFlight: e, prepare: r }) {
|
|
3195
3207
|
if (e != null && e.current) {
|
|
3196
3208
|
r();
|
|
3197
3209
|
return;
|
|
@@ -3199,9 +3211,9 @@ function Es(t, { inFlight: e, prepare: r }) {
|
|
|
3199
3211
|
let n = t.style.transition;
|
|
3200
3212
|
t.style.transition = "none", r(), t.offsetHeight, t.style.transition = n;
|
|
3201
3213
|
}
|
|
3202
|
-
function
|
|
3203
|
-
let r =
|
|
3204
|
-
|
|
3214
|
+
function rn(t, e) {
|
|
3215
|
+
let r = k([]), n = U(t);
|
|
3216
|
+
Y(() => {
|
|
3205
3217
|
let a = [...r.current];
|
|
3206
3218
|
for (let [o, l] of e.entries()) if (r.current[o] !== l) {
|
|
3207
3219
|
let u = n(e, a);
|
|
@@ -3209,61 +3221,61 @@ function tn(t, e) {
|
|
|
3209
3221
|
}
|
|
3210
3222
|
}, [n, ...e]);
|
|
3211
3223
|
}
|
|
3212
|
-
let
|
|
3213
|
-
|
|
3224
|
+
let Zt = fe(null);
|
|
3225
|
+
Zt.displayName = "OpenClosedContext";
|
|
3214
3226
|
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 || {});
|
|
3215
|
-
function
|
|
3216
|
-
return ie(
|
|
3227
|
+
function er() {
|
|
3228
|
+
return ie(Zt);
|
|
3217
3229
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return A.createElement(
|
|
3230
|
+
function xs({ value: t, children: e }) {
|
|
3231
|
+
return A.createElement(Zt.Provider, { value: t }, e);
|
|
3220
3232
|
}
|
|
3221
|
-
function
|
|
3222
|
-
return A.createElement(
|
|
3233
|
+
function Os({ children: t }) {
|
|
3234
|
+
return A.createElement(Zt.Provider, { value: null }, t);
|
|
3223
3235
|
}
|
|
3224
|
-
function
|
|
3236
|
+
function Ps(t) {
|
|
3225
3237
|
function e() {
|
|
3226
3238
|
document.readyState !== "loading" && (t(), document.removeEventListener("DOMContentLoaded", e));
|
|
3227
3239
|
}
|
|
3228
3240
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", e), e());
|
|
3229
3241
|
}
|
|
3230
3242
|
let $e = [];
|
|
3231
|
-
|
|
3243
|
+
Ps(() => {
|
|
3232
3244
|
function t(e) {
|
|
3233
3245
|
if (!(e.target instanceof HTMLElement) || e.target === document.body || $e[0] === e.target) return;
|
|
3234
3246
|
let r = e.target;
|
|
3235
|
-
r = r.closest(
|
|
3247
|
+
r = r.closest(Yt), $e.unshift(r ?? e.target), $e = $e.filter((n) => n != null && n.isConnected), $e.splice(10);
|
|
3236
3248
|
}
|
|
3237
3249
|
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 });
|
|
3238
3250
|
});
|
|
3239
3251
|
function Ba(t) {
|
|
3240
|
-
let e = U(t), r =
|
|
3241
|
-
|
|
3242
|
-
r.current = !0,
|
|
3252
|
+
let e = U(t), r = k(!1);
|
|
3253
|
+
Y(() => (r.current = !1, () => {
|
|
3254
|
+
r.current = !0, Qt(() => {
|
|
3243
3255
|
r.current && e();
|
|
3244
3256
|
});
|
|
3245
3257
|
}), [e]);
|
|
3246
3258
|
}
|
|
3247
|
-
function
|
|
3259
|
+
function As() {
|
|
3248
3260
|
let t = typeof document > "u";
|
|
3249
3261
|
return "useSyncExternalStore" in ht ? ((e) => e.useSyncExternalStore)(ht)(() => () => {
|
|
3250
3262
|
}, () => !1, () => !t) : !1;
|
|
3251
3263
|
}
|
|
3252
|
-
function
|
|
3253
|
-
let t =
|
|
3264
|
+
function Rt() {
|
|
3265
|
+
let t = As(), [e, r] = ht.useState(Ve.isHandoffComplete);
|
|
3254
3266
|
return e && Ve.isHandoffComplete === !1 && r(!1), ht.useEffect(() => {
|
|
3255
3267
|
e !== !0 && r(!0);
|
|
3256
3268
|
}, [e]), ht.useEffect(() => Ve.handoff(), []), t ? !1 : e;
|
|
3257
3269
|
}
|
|
3258
|
-
let Ha =
|
|
3259
|
-
function
|
|
3270
|
+
let Ha = fe(!1);
|
|
3271
|
+
function Ts() {
|
|
3260
3272
|
return ie(Ha);
|
|
3261
3273
|
}
|
|
3262
3274
|
function ea(t) {
|
|
3263
3275
|
return A.createElement(Ha.Provider, { value: t.force }, t.children);
|
|
3264
3276
|
}
|
|
3265
|
-
function
|
|
3266
|
-
let e =
|
|
3277
|
+
function $s(t) {
|
|
3278
|
+
let e = Ts(), r = ie(qa), n = $t(t), [a, o] = Q(() => {
|
|
3267
3279
|
var l;
|
|
3268
3280
|
if (!e && r !== null) return (l = r.current) != null ? l : null;
|
|
3269
3281
|
if (Ve.isServer) return null;
|
|
@@ -3273,57 +3285,57 @@ function Ts(t) {
|
|
|
3273
3285
|
let i = n.createElement("div");
|
|
3274
3286
|
return i.setAttribute("id", "headlessui-portal-root"), n.body.appendChild(i);
|
|
3275
3287
|
});
|
|
3276
|
-
return
|
|
3288
|
+
return Y(() => {
|
|
3277
3289
|
a !== null && (n != null && n.body.contains(a) || n == null || n.body.appendChild(a));
|
|
3278
|
-
}, [a, n]),
|
|
3290
|
+
}, [a, n]), Y(() => {
|
|
3279
3291
|
e || r !== null && o(r.current);
|
|
3280
3292
|
}, [r, o, e]), a;
|
|
3281
3293
|
}
|
|
3282
|
-
let Va = he,
|
|
3283
|
-
let r = t, n =
|
|
3284
|
-
n.current =
|
|
3285
|
-
}), e), o =
|
|
3286
|
-
var
|
|
3287
|
-
return Ve.isServer ? null : (
|
|
3288
|
-
}), i = ie(
|
|
3294
|
+
let Va = he, Rs = le(function(t, e) {
|
|
3295
|
+
let r = t, n = k(null), a = Se(Wu((h) => {
|
|
3296
|
+
n.current = h;
|
|
3297
|
+
}), e), o = $t(n), l = $s(n), [u] = Q(() => {
|
|
3298
|
+
var h;
|
|
3299
|
+
return Ve.isServer ? null : (h = o == null ? void 0 : o.createElement("div")) != null ? h : null;
|
|
3300
|
+
}), i = ie(Br), f = Rt();
|
|
3289
3301
|
ae(() => {
|
|
3290
3302
|
!l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
|
|
3291
3303
|
}, [l, u]), ae(() => {
|
|
3292
3304
|
if (u && i) return i.register(u);
|
|
3293
3305
|
}, [i, u]), Ba(() => {
|
|
3294
|
-
var
|
|
3295
|
-
!l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((
|
|
3306
|
+
var h;
|
|
3307
|
+
!l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((h = l.parentElement) == null || h.removeChild(l)));
|
|
3296
3308
|
});
|
|
3297
|
-
let s =
|
|
3298
|
-
return
|
|
3309
|
+
let s = de();
|
|
3310
|
+
return f ? !l || !u ? null : Lo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
|
|
3299
3311
|
});
|
|
3300
|
-
function
|
|
3301
|
-
let r = Se(e), { enabled: n = !0, ...a } = t, o =
|
|
3302
|
-
return n ? A.createElement(
|
|
3312
|
+
function Fs(t, e) {
|
|
3313
|
+
let r = Se(e), { enabled: n = !0, ...a } = t, o = de();
|
|
3314
|
+
return n ? A.createElement(Rs, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
|
|
3303
3315
|
}
|
|
3304
|
-
let
|
|
3316
|
+
let Is = he, qa = fe(null);
|
|
3305
3317
|
function Cs(t, e) {
|
|
3306
|
-
let { target: r, ...n } = t, a = { ref: Se(e) }, o =
|
|
3307
|
-
return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag:
|
|
3318
|
+
let { target: r, ...n } = t, a = { ref: Se(e) }, o = de();
|
|
3319
|
+
return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Is, name: "Popover.Group" }));
|
|
3308
3320
|
}
|
|
3309
|
-
let
|
|
3310
|
-
function
|
|
3311
|
-
let t = ie(
|
|
3321
|
+
let Br = fe(null);
|
|
3322
|
+
function Ms() {
|
|
3323
|
+
let t = ie(Br), e = k([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
|
|
3312
3324
|
let l = e.current.indexOf(o);
|
|
3313
3325
|
l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
|
|
3314
3326
|
}), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
|
|
3315
3327
|
return [e, J(() => function({ children: o }) {
|
|
3316
|
-
return A.createElement(
|
|
3328
|
+
return A.createElement(Br.Provider, { value: a }, o);
|
|
3317
3329
|
}, [a])];
|
|
3318
3330
|
}
|
|
3319
|
-
let
|
|
3320
|
-
function
|
|
3331
|
+
let _s = le(Fs), Ga = le(Cs), Ds = Object.assign(_s, { Group: Ga });
|
|
3332
|
+
function Ns(t, e = typeof document < "u" ? document.defaultView : null, r) {
|
|
3321
3333
|
let n = ot(t, "escape");
|
|
3322
3334
|
Ua(e, "keydown", (a) => {
|
|
3323
3335
|
n && (a.defaultPrevented || a.key === Da.Escape && r(a));
|
|
3324
3336
|
});
|
|
3325
3337
|
}
|
|
3326
|
-
function
|
|
3338
|
+
function ks() {
|
|
3327
3339
|
var t;
|
|
3328
3340
|
let [e] = Q(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [r, n] = Q((t = e == null ? void 0 : e.matches) != null ? t : !1);
|
|
3329
3341
|
return ae(() => {
|
|
@@ -3334,24 +3346,24 @@ function Ns() {
|
|
|
3334
3346
|
return e.addEventListener("change", a), () => e.removeEventListener("change", a);
|
|
3335
3347
|
}, [e]), r;
|
|
3336
3348
|
}
|
|
3337
|
-
function
|
|
3338
|
-
let n =
|
|
3349
|
+
function js({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
|
|
3350
|
+
let n = $t(r), a = U(() => {
|
|
3339
3351
|
var o, l;
|
|
3340
3352
|
let u = [];
|
|
3341
3353
|
for (let i of t) i !== null && (i instanceof HTMLElement ? u.push(i) : "current" in i && i.current instanceof HTMLElement && u.push(i.current));
|
|
3342
3354
|
if (e != null && e.current) for (let i of e.current) u.push(i);
|
|
3343
|
-
for (let i of (o = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? o : []) i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (r && (i.contains(r) || i.contains((l = r == null ? void 0 : r.getRootNode()) == null ? void 0 : l.host)) || u.some((
|
|
3355
|
+
for (let i of (o = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? o : []) i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (r && (i.contains(r) || i.contains((l = r == null ? void 0 : r.getRootNode()) == null ? void 0 : l.host)) || u.some((f) => i.contains(f)) || u.push(i));
|
|
3344
3356
|
return u;
|
|
3345
3357
|
});
|
|
3346
3358
|
return { resolveContainers: a, contains: U((o) => a().some((l) => l.contains(o))) };
|
|
3347
3359
|
}
|
|
3348
|
-
let Ya =
|
|
3360
|
+
let Ya = fe(null);
|
|
3349
3361
|
function ta({ children: t, node: e }) {
|
|
3350
3362
|
let [r, n] = Q(null), a = za(e ?? r);
|
|
3351
|
-
return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(
|
|
3363
|
+
return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(Lr, { features: Gt.Hidden, ref: (o) => {
|
|
3352
3364
|
var l, u;
|
|
3353
3365
|
if (o) {
|
|
3354
|
-
for (let i of (u = (l =
|
|
3366
|
+
for (let i of (u = (l = Jt(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)) {
|
|
3355
3367
|
n(i);
|
|
3356
3368
|
break;
|
|
3357
3369
|
}
|
|
@@ -3362,15 +3374,15 @@ function za(t = null) {
|
|
|
3362
3374
|
var e;
|
|
3363
3375
|
return (e = ie(Ya)) != null ? e : t;
|
|
3364
3376
|
}
|
|
3365
|
-
function
|
|
3366
|
-
let t =
|
|
3377
|
+
function nn() {
|
|
3378
|
+
let t = k(!1);
|
|
3367
3379
|
return ae(() => (t.current = !0, () => {
|
|
3368
3380
|
t.current = !1;
|
|
3369
3381
|
}), []), t;
|
|
3370
3382
|
}
|
|
3371
3383
|
var mt = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(mt || {});
|
|
3372
|
-
function
|
|
3373
|
-
let t =
|
|
3384
|
+
function Ls() {
|
|
3385
|
+
let t = k(0);
|
|
3374
3386
|
return Wa(!0, "keydown", (e) => {
|
|
3375
3387
|
e.key === "Tab" && (t.current = e.shiftKey ? 1 : 0);
|
|
3376
3388
|
}, !0), t;
|
|
@@ -3382,42 +3394,42 @@ function Ka(t) {
|
|
|
3382
3394
|
for (let r of t.current) r.current instanceof HTMLElement && e.add(r.current);
|
|
3383
3395
|
return e;
|
|
3384
3396
|
}
|
|
3385
|
-
let
|
|
3397
|
+
let Ws = "div";
|
|
3386
3398
|
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 || {});
|
|
3387
|
-
function
|
|
3388
|
-
let r =
|
|
3389
|
-
|
|
3390
|
-
let
|
|
3391
|
-
|
|
3392
|
-
let s =
|
|
3393
|
-
|
|
3394
|
-
let
|
|
3399
|
+
function Us(t, e) {
|
|
3400
|
+
let r = k(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
|
|
3401
|
+
Rt() || (u = 0);
|
|
3402
|
+
let f = $t(r);
|
|
3403
|
+
qs(u, { ownerDocument: f });
|
|
3404
|
+
let s = Gs(u, { ownerDocument: f, container: r, initialFocus: a, initialFocusFallback: o });
|
|
3405
|
+
Ys(u, { ownerDocument: f, container: r, containers: l, previousActiveElement: s });
|
|
3406
|
+
let h = Ls(), v = U((g) => {
|
|
3395
3407
|
let b = r.current;
|
|
3396
3408
|
b && ((S) => S())(() => {
|
|
3397
|
-
|
|
3398
|
-
|
|
3409
|
+
Ie(h.current, { [mt.Forwards]: () => {
|
|
3410
|
+
xt(b, Pe.First, { skipElements: [g.relatedTarget, o] });
|
|
3399
3411
|
}, [mt.Backwards]: () => {
|
|
3400
|
-
|
|
3412
|
+
xt(b, Pe.Last, { skipElements: [g.relatedTarget, o] });
|
|
3401
3413
|
} });
|
|
3402
3414
|
});
|
|
3403
|
-
}), w = ot(!!(u & 2), "focus-trap#tab-lock"),
|
|
3404
|
-
|
|
3415
|
+
}), w = ot(!!(u & 2), "focus-trap#tab-lock"), d = en(), y = k(!1), p = { ref: n, onKeyDown(g) {
|
|
3416
|
+
g.key == "Tab" && (y.current = !0, d.requestAnimationFrame(() => {
|
|
3405
3417
|
y.current = !1;
|
|
3406
3418
|
}));
|
|
3407
|
-
}, onBlur(
|
|
3419
|
+
}, onBlur(g) {
|
|
3408
3420
|
if (!(u & 4)) return;
|
|
3409
3421
|
let b = Ka(l);
|
|
3410
3422
|
r.current instanceof HTMLElement && b.add(r.current);
|
|
3411
|
-
let S =
|
|
3412
|
-
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ?
|
|
3413
|
-
} }, m =
|
|
3414
|
-
return A.createElement(A.Fragment, null, w && A.createElement(
|
|
3415
|
-
}
|
|
3416
|
-
let
|
|
3417
|
-
function
|
|
3418
|
-
let e =
|
|
3419
|
-
return
|
|
3420
|
-
n === !0 && r === !1 &&
|
|
3423
|
+
let S = g.relatedTarget;
|
|
3424
|
+
S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? xt(r.current, Ie(h.current, { [mt.Forwards]: () => Pe.Next, [mt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: g.target }) : g.target instanceof HTMLElement && Ae(g.target)));
|
|
3425
|
+
} }, m = de();
|
|
3426
|
+
return A.createElement(A.Fragment, null, w && A.createElement(Lr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: Gt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ws, name: "FocusTrap" }), w && A.createElement(Lr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: Gt.Focusable }));
|
|
3427
|
+
}
|
|
3428
|
+
let Bs = le(Us), Hs = Object.assign(Bs, { features: We });
|
|
3429
|
+
function Vs(t = !0) {
|
|
3430
|
+
let e = k($e.slice());
|
|
3431
|
+
return rn(([r], [n]) => {
|
|
3432
|
+
n === !0 && r === !1 && Qt(() => {
|
|
3421
3433
|
e.current.splice(0);
|
|
3422
3434
|
}), n === !1 && r === !0 && (e.current = $e.slice());
|
|
3423
3435
|
}, [t, $e, e]), U(() => {
|
|
@@ -3425,40 +3437,40 @@ function Hs(t = !0) {
|
|
|
3425
3437
|
return (r = e.current.find((n) => n != null && n.isConnected)) != null ? r : null;
|
|
3426
3438
|
});
|
|
3427
3439
|
}
|
|
3428
|
-
function
|
|
3429
|
-
let r = !!(t & 8), n =
|
|
3430
|
-
|
|
3440
|
+
function qs(t, { ownerDocument: e }) {
|
|
3441
|
+
let r = !!(t & 8), n = Vs(r);
|
|
3442
|
+
rn(() => {
|
|
3431
3443
|
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
|
|
3432
3444
|
}, [r]), Ba(() => {
|
|
3433
3445
|
r && Ae(n());
|
|
3434
3446
|
});
|
|
3435
3447
|
}
|
|
3436
|
-
function
|
|
3437
|
-
let o =
|
|
3438
|
-
return
|
|
3448
|
+
function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
|
|
3449
|
+
let o = k(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = nn();
|
|
3450
|
+
return rn(() => {
|
|
3439
3451
|
if (t === 0) return;
|
|
3440
3452
|
if (!l) {
|
|
3441
3453
|
a != null && a.current && Ae(a.current);
|
|
3442
3454
|
return;
|
|
3443
3455
|
}
|
|
3444
3456
|
let i = r.current;
|
|
3445
|
-
i &&
|
|
3457
|
+
i && Qt(() => {
|
|
3446
3458
|
if (!u.current) return;
|
|
3447
|
-
let
|
|
3459
|
+
let f = e == null ? void 0 : e.activeElement;
|
|
3448
3460
|
if (n != null && n.current) {
|
|
3449
|
-
if ((n == null ? void 0 : n.current) ===
|
|
3450
|
-
o.current =
|
|
3461
|
+
if ((n == null ? void 0 : n.current) === f) {
|
|
3462
|
+
o.current = f;
|
|
3451
3463
|
return;
|
|
3452
3464
|
}
|
|
3453
|
-
} else if (i.contains(
|
|
3454
|
-
o.current =
|
|
3465
|
+
} else if (i.contains(f)) {
|
|
3466
|
+
o.current = f;
|
|
3455
3467
|
return;
|
|
3456
3468
|
}
|
|
3457
3469
|
if (n != null && n.current) Ae(n.current);
|
|
3458
3470
|
else {
|
|
3459
3471
|
if (t & 16) {
|
|
3460
|
-
if (
|
|
3461
|
-
} else if (
|
|
3472
|
+
if (xt(i, Pe.First | Pe.AutoFocus) !== Ur.Error) return;
|
|
3473
|
+
} else if (xt(i, Pe.First) !== Ur.Error) return;
|
|
3462
3474
|
if (a != null && a.current && (Ae(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
|
|
3463
3475
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
3464
3476
|
}
|
|
@@ -3466,16 +3478,16 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
|
|
|
3466
3478
|
});
|
|
3467
3479
|
}, [a, l, t]), o;
|
|
3468
3480
|
}
|
|
3469
|
-
function
|
|
3470
|
-
let o =
|
|
3481
|
+
function Ys(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
|
|
3482
|
+
let o = nn(), l = !!(t & 4);
|
|
3471
3483
|
Ua(e == null ? void 0 : e.defaultView, "focus", (u) => {
|
|
3472
3484
|
if (!l || !o.current) return;
|
|
3473
3485
|
let i = Ka(n);
|
|
3474
3486
|
r.current instanceof HTMLElement && i.add(r.current);
|
|
3475
|
-
let
|
|
3476
|
-
if (!
|
|
3487
|
+
let f = a.current;
|
|
3488
|
+
if (!f) return;
|
|
3477
3489
|
let s = u.target;
|
|
3478
|
-
s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(
|
|
3490
|
+
s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(f)) : Ae(a.current);
|
|
3479
3491
|
}, !0);
|
|
3480
3492
|
}
|
|
3481
3493
|
function Xa(t, e) {
|
|
@@ -3486,72 +3498,72 @@ function Ja(t) {
|
|
|
3486
3498
|
var e;
|
|
3487
3499
|
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;
|
|
3488
3500
|
}
|
|
3489
|
-
let
|
|
3490
|
-
|
|
3491
|
-
var
|
|
3492
|
-
function
|
|
3493
|
-
let t = ie(
|
|
3501
|
+
let tr = fe(null);
|
|
3502
|
+
tr.displayName = "TransitionContext";
|
|
3503
|
+
var zs = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(zs || {});
|
|
3504
|
+
function Ks() {
|
|
3505
|
+
let t = ie(tr);
|
|
3494
3506
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3495
3507
|
return t;
|
|
3496
3508
|
}
|
|
3497
|
-
function
|
|
3498
|
-
let t = ie(
|
|
3509
|
+
function Xs() {
|
|
3510
|
+
let t = ie(rr);
|
|
3499
3511
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3500
3512
|
return t;
|
|
3501
3513
|
}
|
|
3502
|
-
let
|
|
3503
|
-
|
|
3504
|
-
function
|
|
3505
|
-
return "children" in t ?
|
|
3514
|
+
let rr = fe(null);
|
|
3515
|
+
rr.displayName = "NestingContext";
|
|
3516
|
+
function nr(t) {
|
|
3517
|
+
return "children" in t ? nr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
|
|
3506
3518
|
}
|
|
3507
3519
|
function Qa(t, e) {
|
|
3508
|
-
let r = qe(t), n =
|
|
3520
|
+
let r = qe(t), n = k([]), a = nn(), o = en(), l = U((w, d = Fe.Hidden) => {
|
|
3509
3521
|
let y = n.current.findIndex(({ el: p }) => p === w);
|
|
3510
|
-
y !== -1 && (
|
|
3522
|
+
y !== -1 && (Ie(d, { [Fe.Unmount]() {
|
|
3511
3523
|
n.current.splice(y, 1);
|
|
3512
3524
|
}, [Fe.Hidden]() {
|
|
3513
3525
|
n.current[y].state = "hidden";
|
|
3514
3526
|
} }), o.microTask(() => {
|
|
3515
3527
|
var p;
|
|
3516
|
-
!
|
|
3528
|
+
!nr(n) && a.current && ((p = r.current) == null || p.call(r));
|
|
3517
3529
|
}));
|
|
3518
3530
|
}), u = U((w) => {
|
|
3519
|
-
let
|
|
3520
|
-
return
|
|
3521
|
-
}), i =
|
|
3522
|
-
i.current.splice(0), e && (e.chains.current[
|
|
3531
|
+
let d = n.current.find(({ el: y }) => y === w);
|
|
3532
|
+
return d ? d.state !== "visible" && (d.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
|
|
3533
|
+
}), i = k([]), f = k(Promise.resolve()), s = k({ enter: [], leave: [] }), h = U((w, d, y) => {
|
|
3534
|
+
i.current.splice(0), e && (e.chains.current[d] = e.chains.current[d].filter(([p]) => p !== w)), e == null || e.chains.current[d].push([w, new Promise((p) => {
|
|
3523
3535
|
i.current.push(p);
|
|
3524
|
-
})]), e == null || e.chains.current[
|
|
3525
|
-
Promise.all(s.current[
|
|
3526
|
-
})]),
|
|
3527
|
-
}), v = U((w,
|
|
3528
|
-
Promise.all(s.current[
|
|
3536
|
+
})]), e == null || e.chains.current[d].push([w, new Promise((p) => {
|
|
3537
|
+
Promise.all(s.current[d].map(([m, g]) => g)).then(() => p());
|
|
3538
|
+
})]), d === "enter" ? f.current = f.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(d)) : y(d);
|
|
3539
|
+
}), v = U((w, d, y) => {
|
|
3540
|
+
Promise.all(s.current[d].splice(0).map(([p, m]) => m)).then(() => {
|
|
3529
3541
|
var p;
|
|
3530
3542
|
(p = i.current.shift()) == null || p();
|
|
3531
|
-
}).then(() => y(
|
|
3543
|
+
}).then(() => y(d));
|
|
3532
3544
|
});
|
|
3533
|
-
return J(() => ({ children: n, register: u, unregister: l, onStart:
|
|
3545
|
+
return J(() => ({ children: n, register: u, unregister: l, onStart: h, onStop: v, wait: f, chains: s }), [u, l, n, h, v, s, f]);
|
|
3534
3546
|
}
|
|
3535
|
-
let Za = he, eo =
|
|
3536
|
-
function
|
|
3547
|
+
let Za = he, eo = qt.RenderStrategy;
|
|
3548
|
+
function Js(t, e) {
|
|
3537
3549
|
var r, n;
|
|
3538
|
-
let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter:
|
|
3550
|
+
let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: f, enterFrom: s, enterTo: h, entered: v, leave: w, leaveFrom: d, leaveTo: y, ...p } = t, [m, g] = Q(null), b = k(null), S = Ja(t), O = Se(...S ? [b, e, g] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = Ks(), [j, z] = Q(M ? "visible" : "hidden"), V = Xs(), { register: $, unregister: T } = V;
|
|
3539
3551
|
ae(() => $(b), [$, b]), ae(() => {
|
|
3540
3552
|
if (_ === Fe.Hidden && b.current) {
|
|
3541
|
-
if (M &&
|
|
3542
|
-
|
|
3553
|
+
if (M && j !== "visible") {
|
|
3554
|
+
z("visible");
|
|
3543
3555
|
return;
|
|
3544
3556
|
}
|
|
3545
|
-
return
|
|
3557
|
+
return Ie(j, { hidden: () => T(b), visible: () => $(b) });
|
|
3546
3558
|
}
|
|
3547
|
-
}, [
|
|
3548
|
-
let D =
|
|
3559
|
+
}, [j, b, $, T, M, _]);
|
|
3560
|
+
let D = Rt();
|
|
3549
3561
|
ae(() => {
|
|
3550
|
-
if (S && D &&
|
|
3551
|
-
}, [b,
|
|
3552
|
-
let ue = H && !W,
|
|
3553
|
-
ge.current || (
|
|
3554
|
-
}, V),
|
|
3562
|
+
if (S && D && j === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3563
|
+
}, [b, j, D, S]);
|
|
3564
|
+
let ue = H && !W, pe = W && M && H, ge = k(!1), te = Qa(() => {
|
|
3565
|
+
ge.current || (z("hidden"), T(b));
|
|
3566
|
+
}, V), ye = U((Ne) => {
|
|
3555
3567
|
ge.current = !0;
|
|
3556
3568
|
let xe = Ne ? "enter" : "leave";
|
|
3557
3569
|
te.onStart(b, xe, (Oe) => {
|
|
@@ -3561,90 +3573,90 @@ function Xs(t, e) {
|
|
|
3561
3573
|
let xe = Ne ? "enter" : "leave";
|
|
3562
3574
|
ge.current = !1, te.onStop(b, xe, (Oe) => {
|
|
3563
3575
|
Oe === "enter" ? l == null || l() : Oe === "leave" && (i == null || i());
|
|
3564
|
-
}), xe === "leave" && !
|
|
3576
|
+
}), xe === "leave" && !nr(te) && (z("hidden"), T(b));
|
|
3565
3577
|
});
|
|
3566
|
-
|
|
3567
|
-
S && a || (
|
|
3578
|
+
Y(() => {
|
|
3579
|
+
S && a || (ye(M), q(M));
|
|
3568
3580
|
}, [M, S, a]);
|
|
3569
|
-
let _e = !(!a || !S || !D || ue), [, ee] =
|
|
3570
|
-
|
|
3571
|
-
let lt =
|
|
3572
|
-
return A.createElement(
|
|
3581
|
+
let _e = !(!a || !S || !D || ue), [, ee] = bs(_e, m, M, { start: ye, end: q }), or = je({ ref: O, className: ((n = jr(p.className, pe && f, pe && s, ee.enter && f, ee.enter && ee.closed && s, ee.enter && !ee.closed && h, ee.leave && w, ee.leave && !ee.closed && d, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...gs(ee) }), De = 0;
|
|
3582
|
+
j === "visible" && (De |= me.Open), j === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
|
|
3583
|
+
let lt = de();
|
|
3584
|
+
return A.createElement(rr.Provider, { value: te }, A.createElement(xs, { value: De }, lt({ ourProps: or, theirProps: p, defaultTag: Za, features: eo, visible: j === "visible", name: "Transition.Child" })));
|
|
3573
3585
|
}
|
|
3574
|
-
function
|
|
3575
|
-
let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l =
|
|
3576
|
-
|
|
3577
|
-
let
|
|
3578
|
-
if (r === void 0 &&
|
|
3579
|
-
let [s,
|
|
3580
|
-
r ||
|
|
3581
|
-
}), [w,
|
|
3586
|
+
function Qs(t, e) {
|
|
3587
|
+
let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = k(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
|
|
3588
|
+
Rt();
|
|
3589
|
+
let f = er();
|
|
3590
|
+
if (r === void 0 && f !== null && (r = (f & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3591
|
+
let [s, h] = Q(r ? "visible" : "hidden"), v = Qa(() => {
|
|
3592
|
+
r || h("hidden");
|
|
3593
|
+
}), [w, d] = Q(!0), y = k([r]);
|
|
3582
3594
|
ae(() => {
|
|
3583
|
-
w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r),
|
|
3595
|
+
w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), d(!1));
|
|
3584
3596
|
}, [y, r]);
|
|
3585
3597
|
let p = J(() => ({ show: r, appear: n, initial: w }), [r, n, w]);
|
|
3586
3598
|
ae(() => {
|
|
3587
|
-
r ?
|
|
3599
|
+
r ? h("visible") : !nr(v) && l.current !== null && h("hidden");
|
|
3588
3600
|
}, [r, v]);
|
|
3589
|
-
let m = { unmount: a },
|
|
3601
|
+
let m = { unmount: a }, g = U(() => {
|
|
3590
3602
|
var O;
|
|
3591
|
-
w &&
|
|
3603
|
+
w && d(!1), (O = t.beforeEnter) == null || O.call(t);
|
|
3592
3604
|
}), b = U(() => {
|
|
3593
3605
|
var O;
|
|
3594
|
-
w &&
|
|
3595
|
-
}), S =
|
|
3596
|
-
return A.createElement(
|
|
3606
|
+
w && d(!1), (O = t.beforeLeave) == null || O.call(t);
|
|
3607
|
+
}), S = de();
|
|
3608
|
+
return A.createElement(rr.Provider, { value: v }, A.createElement(tr.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
|
|
3597
3609
|
}
|
|
3598
|
-
function
|
|
3599
|
-
let r = ie(
|
|
3600
|
-
return A.createElement(A.Fragment, null, !r && n ? A.createElement(
|
|
3610
|
+
function Zs(t, e) {
|
|
3611
|
+
let r = ie(tr) !== null, n = er() !== null;
|
|
3612
|
+
return A.createElement(A.Fragment, null, !r && n ? A.createElement(Hr, { ref: e, ...t }) : A.createElement(to, { ref: e, ...t }));
|
|
3601
3613
|
}
|
|
3602
|
-
let
|
|
3603
|
-
var
|
|
3604
|
-
let
|
|
3614
|
+
let Hr = le(Qs), to = le(Js), it = le(Zs), ro = Object.assign(Hr, { Child: it, Root: Hr });
|
|
3615
|
+
var ec = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(ec || {}), tc = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(tc || {});
|
|
3616
|
+
let rc = { 0(t, e) {
|
|
3605
3617
|
return t.titleId === e.id ? t : { ...t, titleId: e.id };
|
|
3606
|
-
} },
|
|
3607
|
-
|
|
3608
|
-
function
|
|
3609
|
-
let e = ie(
|
|
3618
|
+
} }, an = fe(null);
|
|
3619
|
+
an.displayName = "DialogContext";
|
|
3620
|
+
function ar(t) {
|
|
3621
|
+
let e = ie(an);
|
|
3610
3622
|
if (e === null) {
|
|
3611
3623
|
let r = new Error(`<${t} /> is missing a parent <Dialog /> component.`);
|
|
3612
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r,
|
|
3624
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, ar), r;
|
|
3613
3625
|
}
|
|
3614
3626
|
return e;
|
|
3615
3627
|
}
|
|
3616
|
-
function
|
|
3617
|
-
return
|
|
3628
|
+
function nc(t, e) {
|
|
3629
|
+
return Ie(e.type, rc, t, e);
|
|
3618
3630
|
}
|
|
3619
3631
|
let ra = le(function(t, e) {
|
|
3620
|
-
let r =
|
|
3632
|
+
let r = Pt(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: f = !1, unmount: s = !1, ...h } = t, v = k(!1);
|
|
3621
3633
|
u = function() {
|
|
3622
3634
|
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");
|
|
3623
3635
|
}();
|
|
3624
|
-
let w =
|
|
3636
|
+
let w = er();
|
|
3625
3637
|
a === void 0 && w !== null && (a = (w & me.Open) === me.Open);
|
|
3626
|
-
let
|
|
3638
|
+
let d = k(null), y = Se(d, e), p = $t(d), m = a ? 0 : 1, [g, b] = No(nc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = Rt() ? m === 0 : !1, [M, W] = Ms(), H = { get current() {
|
|
3627
3639
|
var q;
|
|
3628
|
-
return (q =
|
|
3629
|
-
} },
|
|
3630
|
-
|
|
3640
|
+
return (q = g.panelRef.current) != null ? q : d.current;
|
|
3641
|
+
} }, j = za(), { resolveContainers: z } = js({ mainTreeNode: j, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
|
|
3642
|
+
Xu(f || V ? !1 : _, { allowed: U(() => {
|
|
3631
3643
|
var q, _e;
|
|
3632
|
-
return [(_e = (q =
|
|
3644
|
+
return [(_e = (q = d.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
|
|
3633
3645
|
}), disallowed: U(() => {
|
|
3634
3646
|
var q;
|
|
3635
|
-
return [(q =
|
|
3636
|
-
}) }),
|
|
3647
|
+
return [(q = j == null ? void 0 : j.closest("body > *:not(#headlessui-portal-root)")) != null ? q : null];
|
|
3648
|
+
}) }), ss(_, z, (q) => {
|
|
3637
3649
|
q.preventDefault(), S();
|
|
3638
|
-
}),
|
|
3650
|
+
}), Ns(_, p == null ? void 0 : p.defaultView, (q) => {
|
|
3639
3651
|
q.preventDefault(), q.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), S();
|
|
3640
|
-
}),
|
|
3641
|
-
let [$, T] =
|
|
3642
|
-
_ && !
|
|
3643
|
-
let
|
|
3644
|
-
return A.createElement(
|
|
3645
|
-
}),
|
|
3646
|
-
function
|
|
3647
|
-
let { transition: r = !1, open: n, ...a } = t, o =
|
|
3652
|
+
}), vs(f || V ? !1 : _, p, z), Ju(_, d, S);
|
|
3653
|
+
let [$, T] = Uu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, g], [m, g, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), pe = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": f ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": g.titleId, "aria-describedby": $, unmount: s }, ge = !ks(), te = We.None;
|
|
3654
|
+
_ && !f && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
|
|
3655
|
+
let ye = de();
|
|
3656
|
+
return A.createElement(Os, null, A.createElement(ea, { force: !0 }, A.createElement(Ds, null, A.createElement(an.Provider, { value: D }, A.createElement(Ga, { target: d }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Hs, { initialFocus: l, initialFocusFallback: d, containers: z, features: te }, A.createElement(Yu, { value: S }, ye({ ourProps: pe, theirProps: h, slot: ue, defaultTag: ac, features: oc, visible: m === 0, name: "Dialog" })))))))))));
|
|
3657
|
+
}), ac = "div", oc = qt.RenderStrategy | qt.Static;
|
|
3658
|
+
function ic(t, e) {
|
|
3659
|
+
let { transition: r = !1, open: n, ...a } = t, o = er(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
|
|
3648
3660
|
if (!l && !u) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
3649
3661
|
if (!l) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
3650
3662
|
if (!u) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
@@ -3652,28 +3664,28 @@ function oc(t, e) {
|
|
|
3652
3664
|
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}`);
|
|
3653
3665
|
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 }));
|
|
3654
3666
|
}
|
|
3655
|
-
let
|
|
3656
|
-
function
|
|
3657
|
-
let r =
|
|
3667
|
+
let lc = "div";
|
|
3668
|
+
function uc(t, e) {
|
|
3669
|
+
let r = Pt(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = ar("Dialog.Panel"), f = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), h = U((p) => {
|
|
3658
3670
|
p.stopPropagation();
|
|
3659
|
-
}), v = { ref:
|
|
3660
|
-
return A.createElement(w, { ...
|
|
3661
|
-
}
|
|
3662
|
-
let
|
|
3663
|
-
function
|
|
3664
|
-
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] =
|
|
3665
|
-
return A.createElement(i, { ...
|
|
3666
|
-
}
|
|
3667
|
-
let
|
|
3668
|
-
function
|
|
3669
|
-
let r =
|
|
3670
|
-
|
|
3671
|
-
let i = J(() => ({ open: o === 0 }), [o]),
|
|
3672
|
-
return
|
|
3673
|
-
}
|
|
3674
|
-
let
|
|
3675
|
-
le(
|
|
3676
|
-
let
|
|
3671
|
+
}), v = { ref: f, id: n, onClick: h }, w = a ? it : he, d = a ? { unmount: u } : {}, y = de();
|
|
3672
|
+
return A.createElement(w, { ...d }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: lc, name: "Dialog.Panel" }));
|
|
3673
|
+
}
|
|
3674
|
+
let sc = "div";
|
|
3675
|
+
function cc(t, e) {
|
|
3676
|
+
let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = ar("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, f = r ? { unmount: o } : {}, s = de();
|
|
3677
|
+
return A.createElement(i, { ...f }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: sc, name: "Dialog.Backdrop" }));
|
|
3678
|
+
}
|
|
3679
|
+
let fc = "h2";
|
|
3680
|
+
function dc(t, e) {
|
|
3681
|
+
let r = Pt(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = ar("Dialog.Title"), u = Se(e);
|
|
3682
|
+
Y(() => (l(n), () => l(null)), [n, l]);
|
|
3683
|
+
let i = J(() => ({ open: o === 0 }), [o]), f = { ref: u, id: n };
|
|
3684
|
+
return de()({ ourProps: f, theirProps: a, slot: i, defaultTag: fc, name: "Dialog.Title" });
|
|
3685
|
+
}
|
|
3686
|
+
let pc = le(ic), on = le(uc);
|
|
3687
|
+
le(cc);
|
|
3688
|
+
let yc = le(dc), vc = Object.assign(pc, { Panel: on, Title: yc, Description: qu });
|
|
3677
3689
|
function no({ onClick: t }) {
|
|
3678
3690
|
return /* @__PURE__ */ R.jsxs(
|
|
3679
3691
|
"button",
|
|
@@ -3707,10 +3719,10 @@ function no({ onClick: t }) {
|
|
|
3707
3719
|
}
|
|
3708
3720
|
);
|
|
3709
3721
|
}
|
|
3710
|
-
const
|
|
3722
|
+
const mc = ({ 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(
|
|
3711
3723
|
"div",
|
|
3712
3724
|
{
|
|
3713
|
-
className:
|
|
3725
|
+
className: Vt("im-modal-positioner flex min-h-full justify-center", {
|
|
3714
3726
|
"items-start": e.position === "top",
|
|
3715
3727
|
"items-center": e.position === "center",
|
|
3716
3728
|
"items-end": e.position === "bottom"
|
|
@@ -3723,7 +3735,7 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3723
3735
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
3724
3736
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
3725
3737
|
afterLeave: t.afterLeave,
|
|
3726
|
-
className:
|
|
3738
|
+
className: Vt("im-modal-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
|
|
3727
3739
|
"sm:max-w-sm": e.maxWidth === "sm",
|
|
3728
3740
|
"sm:max-w-md": e.maxWidth === "md",
|
|
3729
3741
|
"sm:max-w-md md:max-w-lg": e.maxWidth === "lg",
|
|
@@ -3735,17 +3747,17 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3735
3747
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
|
|
3736
3748
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3737
3749
|
}),
|
|
3738
|
-
children: /* @__PURE__ */ R.jsxs(
|
|
3750
|
+
children: /* @__PURE__ */ R.jsxs(on, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3739
3751
|
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
3752
|
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3741
3753
|
] })
|
|
3742
3754
|
}
|
|
3743
3755
|
)
|
|
3744
3756
|
}
|
|
3745
|
-
) }),
|
|
3757
|
+
) }), hc = ({ 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(
|
|
3746
3758
|
"div",
|
|
3747
3759
|
{
|
|
3748
|
-
className:
|
|
3760
|
+
className: Vt("im-slideover-positioner flex min-h-full items-center", {
|
|
3749
3761
|
"justify-start": e.position === "left",
|
|
3750
3762
|
"justify-end": e.position === "right"
|
|
3751
3763
|
}),
|
|
@@ -3757,7 +3769,7 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3757
3769
|
leaveFrom: "opacity-100 translate-x-0",
|
|
3758
3770
|
leaveTo: `opacity-0 ${e.position === "left" ? "-translate-x-full" : "translate-x-full"}`,
|
|
3759
3771
|
afterLeave: t.afterLeave,
|
|
3760
|
-
className:
|
|
3772
|
+
className: Vt("im-slideover-wrapper w-full transition duration-300 ease-in-out", t.onTopOfStack ? "" : "blur-sm", {
|
|
3761
3773
|
"sm:max-w-sm": e.maxWidth === "sm",
|
|
3762
3774
|
"sm:max-w-md": e.maxWidth === "md",
|
|
3763
3775
|
"sm:max-w-md md:max-w-lg": e.maxWidth === "lg",
|
|
@@ -3769,15 +3781,15 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3769
3781
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
|
|
3770
3782
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
3771
3783
|
}),
|
|
3772
|
-
children: /* @__PURE__ */ R.jsxs(
|
|
3784
|
+
children: /* @__PURE__ */ R.jsxs(on, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
|
|
3773
3785
|
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
3786
|
typeof r == "function" ? r({ modalContext: t, config: e }) : r
|
|
3775
3787
|
] })
|
|
3776
3788
|
}
|
|
3777
3789
|
)
|
|
3778
3790
|
}
|
|
3779
|
-
) }),
|
|
3780
|
-
const a = (l) => typeof e == "function" ? e(l) : e, o =
|
|
3791
|
+
) }), gc = Vr(({ name: t, children: e, ...r }, n) => {
|
|
3792
|
+
const a = (l) => typeof e == "function" ? e(l) : e, o = k(null);
|
|
3781
3793
|
return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
|
|
3782
3794
|
Fa,
|
|
3783
3795
|
{
|
|
@@ -3788,24 +3800,24 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3788
3800
|
afterLeave: l,
|
|
3789
3801
|
close: u,
|
|
3790
3802
|
config: i,
|
|
3791
|
-
emit:
|
|
3803
|
+
emit: f,
|
|
3792
3804
|
getChildModal: s,
|
|
3793
|
-
getParentModal:
|
|
3805
|
+
getParentModal: h,
|
|
3794
3806
|
id: v,
|
|
3795
3807
|
index: w,
|
|
3796
|
-
isOpen:
|
|
3808
|
+
isOpen: d,
|
|
3797
3809
|
modalContext: y,
|
|
3798
3810
|
onTopOfStack: p,
|
|
3799
3811
|
reload: m,
|
|
3800
|
-
setOpen:
|
|
3812
|
+
setOpen: g,
|
|
3801
3813
|
shouldRender: b
|
|
3802
3814
|
}) => /* @__PURE__ */ R.jsx(
|
|
3803
3815
|
ro,
|
|
3804
3816
|
{
|
|
3805
3817
|
appear: !0,
|
|
3806
|
-
show:
|
|
3818
|
+
show: d ?? !1,
|
|
3807
3819
|
children: /* @__PURE__ */ R.jsxs(
|
|
3808
|
-
|
|
3820
|
+
vc,
|
|
3809
3821
|
{
|
|
3810
3822
|
as: "div",
|
|
3811
3823
|
className: "im-dialog relative z-20",
|
|
@@ -3833,7 +3845,7 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3833
3845
|
) : null,
|
|
3834
3846
|
w > 0 && p ? /* @__PURE__ */ R.jsx("div", { className: "im-backdrop fixed inset-0 z-30 bg-black/75" }) : null,
|
|
3835
3847
|
i.slideover ? /* @__PURE__ */ R.jsx(
|
|
3836
|
-
|
|
3848
|
+
hc,
|
|
3837
3849
|
{
|
|
3838
3850
|
modalContext: y,
|
|
3839
3851
|
config: i,
|
|
@@ -3841,21 +3853,21 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3841
3853
|
afterLeave: l,
|
|
3842
3854
|
close: u,
|
|
3843
3855
|
config: i,
|
|
3844
|
-
emit:
|
|
3856
|
+
emit: f,
|
|
3845
3857
|
getChildModal: s,
|
|
3846
|
-
getParentModal:
|
|
3858
|
+
getParentModal: h,
|
|
3847
3859
|
id: v,
|
|
3848
3860
|
index: w,
|
|
3849
|
-
isOpen:
|
|
3861
|
+
isOpen: d,
|
|
3850
3862
|
modalContext: y,
|
|
3851
3863
|
onTopOfStack: p,
|
|
3852
3864
|
reload: m,
|
|
3853
|
-
setOpen:
|
|
3865
|
+
setOpen: g,
|
|
3854
3866
|
shouldRender: b
|
|
3855
3867
|
})
|
|
3856
3868
|
}
|
|
3857
3869
|
) : /* @__PURE__ */ R.jsx(
|
|
3858
|
-
|
|
3870
|
+
mc,
|
|
3859
3871
|
{
|
|
3860
3872
|
modalContext: y,
|
|
3861
3873
|
config: i,
|
|
@@ -3863,16 +3875,16 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3863
3875
|
afterLeave: l,
|
|
3864
3876
|
close: u,
|
|
3865
3877
|
config: i,
|
|
3866
|
-
emit:
|
|
3878
|
+
emit: f,
|
|
3867
3879
|
getChildModal: s,
|
|
3868
|
-
getParentModal:
|
|
3880
|
+
getParentModal: h,
|
|
3869
3881
|
id: v,
|
|
3870
3882
|
index: w,
|
|
3871
|
-
isOpen:
|
|
3883
|
+
isOpen: d,
|
|
3872
3884
|
modalContext: y,
|
|
3873
3885
|
onTopOfStack: p,
|
|
3874
3886
|
reload: m,
|
|
3875
|
-
setOpen:
|
|
3887
|
+
setOpen: g,
|
|
3876
3888
|
shouldRender: b
|
|
3877
3889
|
})
|
|
3878
3890
|
}
|
|
@@ -3885,8 +3897,8 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
|
|
|
3885
3897
|
}
|
|
3886
3898
|
);
|
|
3887
3899
|
});
|
|
3888
|
-
|
|
3889
|
-
const
|
|
3900
|
+
gc.displayName = "Modal";
|
|
3901
|
+
const Rc = ({
|
|
3890
3902
|
href: t,
|
|
3891
3903
|
method: e = "get",
|
|
3892
3904
|
data: r = {},
|
|
@@ -3896,45 +3908,45 @@ const $c = ({
|
|
|
3896
3908
|
onAfterLeave: l = null,
|
|
3897
3909
|
onBlur: u = null,
|
|
3898
3910
|
onClose: i = null,
|
|
3899
|
-
onError:
|
|
3911
|
+
onError: f = null,
|
|
3900
3912
|
onFocus: s = null,
|
|
3901
|
-
onStart:
|
|
3913
|
+
onStart: h = null,
|
|
3902
3914
|
onSuccess: v = null,
|
|
3903
3915
|
navigate: w = null,
|
|
3904
|
-
children:
|
|
3916
|
+
children: d,
|
|
3905
3917
|
...y
|
|
3906
3918
|
}) => {
|
|
3907
|
-
const [p, m] = Q(!1), [
|
|
3919
|
+
const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Xt(), _ = J(() => w ?? qr("navigate"), [w]), M = {}, W = {};
|
|
3908
3920
|
Object.keys(y).forEach((T) => {
|
|
3909
3921
|
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]);
|
|
3910
3922
|
});
|
|
3911
|
-
const [H,
|
|
3912
|
-
|
|
3913
|
-
|
|
3923
|
+
const [H, j] = Q(!1);
|
|
3924
|
+
Y(() => {
|
|
3925
|
+
g && (g.onTopOfStack && H ? s == null || s() : !g.onTopOfStack && !H && (u == null || u()), j(!g.onTopOfStack));
|
|
3914
3926
|
}, [S]);
|
|
3915
|
-
const
|
|
3927
|
+
const z = ve(() => {
|
|
3916
3928
|
i == null || i();
|
|
3917
3929
|
}, [i]), V = ve(() => {
|
|
3918
3930
|
b(null), l == null || l();
|
|
3919
3931
|
}, [l]), $ = ve(
|
|
3920
3932
|
(T) => {
|
|
3921
|
-
T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0),
|
|
3933
|
+
T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), h == null || h()), O(
|
|
3922
3934
|
t,
|
|
3923
3935
|
e,
|
|
3924
3936
|
r,
|
|
3925
3937
|
a,
|
|
3926
|
-
|
|
3927
|
-
() =>
|
|
3938
|
+
Go(aa(y, zn)),
|
|
3939
|
+
() => z(S.length),
|
|
3928
3940
|
V,
|
|
3929
3941
|
o,
|
|
3930
3942
|
_
|
|
3931
3943
|
).then((D) => {
|
|
3932
3944
|
b(D), D.registerEventListenersFromProps(W), v == null || v();
|
|
3933
3945
|
}).catch((D) => {
|
|
3934
|
-
console.error(D),
|
|
3946
|
+
console.error(D), f == null || f(D);
|
|
3935
3947
|
}).finally(() => m(!1)));
|
|
3936
3948
|
},
|
|
3937
|
-
[t, e, r, a, o, y,
|
|
3949
|
+
[t, e, r, a, o, y, z, V]
|
|
3938
3950
|
);
|
|
3939
3951
|
return /* @__PURE__ */ R.jsx(
|
|
3940
3952
|
n,
|
|
@@ -3942,24 +3954,24 @@ const $c = ({
|
|
|
3942
3954
|
...M,
|
|
3943
3955
|
href: t,
|
|
3944
3956
|
onClick: $,
|
|
3945
|
-
children: typeof
|
|
3957
|
+
children: typeof d == "function" ? d({ loading: p }) : d
|
|
3946
3958
|
}
|
|
3947
3959
|
);
|
|
3948
3960
|
};
|
|
3949
|
-
function
|
|
3950
|
-
return
|
|
3961
|
+
function Fc() {
|
|
3962
|
+
return Xt().stack[$a()] ?? null;
|
|
3951
3963
|
}
|
|
3952
3964
|
export {
|
|
3953
3965
|
Fa as HeadlessModal,
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3966
|
+
gc as Modal,
|
|
3967
|
+
Rc as ModalLink,
|
|
3968
|
+
Ru as ModalRoot,
|
|
3969
|
+
$u as ModalStackProvider,
|
|
3970
|
+
qr as getConfig,
|
|
3971
|
+
Pc as putConfig,
|
|
3972
|
+
Ac as renderApp,
|
|
3973
|
+
Oc as resetConfig,
|
|
3974
|
+
Fc as useModal,
|
|
3963
3975
|
$a as useModalIndex,
|
|
3964
|
-
|
|
3976
|
+
Xt as useModalStack
|
|
3965
3977
|
};
|