@clubmed/trident-ui 2.1.0-beta.4 → 2.1.0-beta.5
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/chunks/Layer.js +2022 -0
- package/chunks/Layer.js.map +1 -0
- package/chunks/useTransitionState.js +69 -0
- package/chunks/useTransitionState.js.map +1 -0
- package/examples/backdrop-demo.js +1 -1
- package/examples/layer-buttons-demo.d.ts +1 -0
- package/examples/layer-buttons-demo.js +43 -0
- package/examples/layer-buttons-demo.js.map +1 -0
- package/examples/layer-demo.d.ts +1 -0
- package/examples/layer-demo.js +30 -0
- package/examples/layer-demo.js.map +1 -0
- package/examples/layer-header-demo.d.ts +1 -0
- package/examples/layer-header-demo.js +27 -0
- package/examples/layer-header-demo.js.map +1 -0
- package/examples/layer-nested-demo.d.ts +1 -0
- package/examples/layer-nested-demo.js +51 -0
- package/examples/layer-nested-demo.js.map +1 -0
- package/examples/layer-pinned-demo.d.ts +1 -0
- package/examples/layer-pinned-demo.js +36 -0
- package/examples/layer-pinned-demo.js.map +1 -0
- package/examples/layer-scale-demo.d.ts +1 -0
- package/examples/layer-scale-demo.js +34 -0
- package/examples/layer-scale-demo.js.map +1 -0
- package/examples/layer-use-layer-demo.d.ts +1 -0
- package/examples/layer-use-layer-demo.js +33 -0
- package/examples/layer-use-layer-demo.js.map +1 -0
- package/package.json +2 -1
- package/ui/Backdrop.d.ts +5 -0
- package/ui/Backdrop.js +54 -2
- package/ui/Backdrop.js.map +1 -0
- package/ui/Layer.d.ts +72 -0
- package/ui/Layer.js +2 -0
- package/ui/LayerHeader.d.ts +33 -0
- package/ui/LayerHeader.js +45 -0
- package/ui/LayerHeader.js.map +1 -0
- package/ui/Loader.js +2 -1
- package/ui/Loader.js.map +1 -1
- package/ui/Popin.d.ts +6 -0
- package/ui/Popin.js +11 -10
- package/ui/Popin.js.map +1 -1
- package/ui/hooks/useIsomorphicLayoutEffect.d.ts +6 -0
- package/ui/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/ui/hooks/useIsomorphicLayoutEffect.js.map +1 -0
- package/ui/hooks/useLayer.d.ts +13 -0
- package/ui/hooks/useLayer.js +31 -0
- package/ui/hooks/useLayer.js.map +1 -0
- package/ui/hooks/useTransitionState.d.ts +7 -0
- package/ui/hooks/useTransitionState.js +15 -0
- package/ui/hooks/useTransitionState.js.map +1 -0
- package/ui/hooks/useVisualViewportBox.d.ts +7 -0
- package/ui/hooks/useVisualViewportBox.js +22 -0
- package/ui/hooks/useVisualViewportBox.js.map +1 -0
- package/chunks/Backdrop.js +0 -105
- package/chunks/Backdrop.js.map +0 -1
package/chunks/Layer.js
ADDED
|
@@ -0,0 +1,2022 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { i as e, t } from "./chunk.js";
|
|
3
|
+
import { t as n } from "./clsx.js";
|
|
4
|
+
import { Portal as r } from "../ui/Portal.js";
|
|
5
|
+
import { useTransitionState as i } from "../ui/hooks/useTransitionState.js";
|
|
6
|
+
import { useVisualViewportBox as a } from "../ui/hooks/useVisualViewportBox.js";
|
|
7
|
+
import { LayerHeader as o } from "../ui/LayerHeader.js";
|
|
8
|
+
import * as s from "react";
|
|
9
|
+
import c, { Fragment as l, PureComponent as u, createContext as d, forwardRef as f, useCallback as p, useEffect as m, useId as h, useMemo as g, useRef as _, useState as v } from "react";
|
|
10
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
11
|
+
//#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
12
|
+
var x = function() {
|
|
13
|
+
return x = Object.assign || function(e) {
|
|
14
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
15
|
+
return e;
|
|
16
|
+
}, x.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
function S(e, t) {
|
|
19
|
+
var n = {};
|
|
20
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
21
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
22
|
+
return n;
|
|
23
|
+
}
|
|
24
|
+
function C() {
|
|
25
|
+
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
26
|
+
for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
|
|
27
|
+
return r;
|
|
28
|
+
}
|
|
29
|
+
function w(e, t, n) {
|
|
30
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
31
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.13_react@19.2.4/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
35
|
+
var T = "right-scroll-bar-position", E = "width-before-scroll-bar", D = "with-scroll-bars-hidden", O = "--removed-body-scroll-bar-size";
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.13_react@19.2.4/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
38
|
+
function k(e, t) {
|
|
39
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.13_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
43
|
+
function A(e, t) {
|
|
44
|
+
var n = v(function() {
|
|
45
|
+
return {
|
|
46
|
+
value: e,
|
|
47
|
+
callback: t,
|
|
48
|
+
facade: {
|
|
49
|
+
get current() {
|
|
50
|
+
return n.value;
|
|
51
|
+
},
|
|
52
|
+
set current(e) {
|
|
53
|
+
var t = n.value;
|
|
54
|
+
t !== e && (n.value = e, n.callback(e, t));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
})[0];
|
|
59
|
+
return n.callback = t, n.facade;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.13_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
63
|
+
var j = typeof window < "u" ? s.useLayoutEffect : s.useEffect, M = /* @__PURE__ */ new WeakMap();
|
|
64
|
+
function N(e, t) {
|
|
65
|
+
var n = A(t || null, function(t) {
|
|
66
|
+
return e.forEach(function(e) {
|
|
67
|
+
return k(e, t);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
return j(function() {
|
|
71
|
+
var t = M.get(n);
|
|
72
|
+
if (t) {
|
|
73
|
+
var r = new Set(t), i = new Set(e), a = n.current;
|
|
74
|
+
r.forEach(function(e) {
|
|
75
|
+
i.has(e) || k(e, null);
|
|
76
|
+
}), i.forEach(function(e) {
|
|
77
|
+
r.has(e) || k(e, a);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
M.set(n, e);
|
|
81
|
+
}, [e]), n;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.13_react@19.2.4/node_modules/use-sidecar/dist/es2015/medium.js
|
|
85
|
+
function P(e) {
|
|
86
|
+
return e;
|
|
87
|
+
}
|
|
88
|
+
function F(e, t) {
|
|
89
|
+
t === void 0 && (t = P);
|
|
90
|
+
var n = [], r = !1;
|
|
91
|
+
return {
|
|
92
|
+
read: function() {
|
|
93
|
+
if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
94
|
+
return n.length ? n[n.length - 1] : e;
|
|
95
|
+
},
|
|
96
|
+
useMedium: function(e) {
|
|
97
|
+
var i = t(e, r);
|
|
98
|
+
return n.push(i), function() {
|
|
99
|
+
n = n.filter(function(e) {
|
|
100
|
+
return e !== i;
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
assignSyncMedium: function(e) {
|
|
105
|
+
for (r = !0; n.length;) {
|
|
106
|
+
var t = n;
|
|
107
|
+
n = [], t.forEach(e);
|
|
108
|
+
}
|
|
109
|
+
n = {
|
|
110
|
+
push: function(t) {
|
|
111
|
+
return e(t);
|
|
112
|
+
},
|
|
113
|
+
filter: function() {
|
|
114
|
+
return n;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
assignMedium: function(e) {
|
|
119
|
+
r = !0;
|
|
120
|
+
var t = [];
|
|
121
|
+
if (n.length) {
|
|
122
|
+
var i = n;
|
|
123
|
+
n = [], i.forEach(e), t = n;
|
|
124
|
+
}
|
|
125
|
+
var a = function() {
|
|
126
|
+
var n = t;
|
|
127
|
+
t = [], n.forEach(e);
|
|
128
|
+
}, o = function() {
|
|
129
|
+
return Promise.resolve().then(a);
|
|
130
|
+
};
|
|
131
|
+
o(), n = {
|
|
132
|
+
push: function(e) {
|
|
133
|
+
t.push(e), o();
|
|
134
|
+
},
|
|
135
|
+
filter: function(e) {
|
|
136
|
+
return t = t.filter(e), n;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function I(e, t) {
|
|
143
|
+
return t === void 0 && (t = P), F(e, t);
|
|
144
|
+
}
|
|
145
|
+
function L(e) {
|
|
146
|
+
e === void 0 && (e = {});
|
|
147
|
+
var t = F(null);
|
|
148
|
+
return t.options = x({
|
|
149
|
+
async: !0,
|
|
150
|
+
ssr: !1
|
|
151
|
+
}, e), t;
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.13_react@19.2.4/node_modules/use-sidecar/dist/es2015/exports.js
|
|
155
|
+
var ee = function(e) {
|
|
156
|
+
var t = e.sideCar, n = S(e, ["sideCar"]);
|
|
157
|
+
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
158
|
+
var r = t.read();
|
|
159
|
+
if (!r) throw Error("Sidecar medium not found");
|
|
160
|
+
return s.createElement(r, x({}, n));
|
|
161
|
+
};
|
|
162
|
+
ee.isSideCarExport = !0;
|
|
163
|
+
function te(e, t) {
|
|
164
|
+
return e.useMedium(t), ee;
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.13_react@19.2.4/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
168
|
+
var ne = L(), R = function() {}, z = s.forwardRef(function(e, t) {
|
|
169
|
+
var n = s.useRef(null), r = s.useState({
|
|
170
|
+
onScrollCapture: R,
|
|
171
|
+
onWheelCapture: R,
|
|
172
|
+
onTouchMoveCapture: R
|
|
173
|
+
}), i = r[0], a = r[1], o = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, C = S(e, [
|
|
174
|
+
"forwardProps",
|
|
175
|
+
"children",
|
|
176
|
+
"className",
|
|
177
|
+
"removeScrollBar",
|
|
178
|
+
"enabled",
|
|
179
|
+
"shards",
|
|
180
|
+
"sideCar",
|
|
181
|
+
"noRelative",
|
|
182
|
+
"noIsolation",
|
|
183
|
+
"inert",
|
|
184
|
+
"allowPinchZoom",
|
|
185
|
+
"as",
|
|
186
|
+
"gapMode"
|
|
187
|
+
]), w = p, T = N([n, t]), E = x(x({}, C), i);
|
|
188
|
+
return s.createElement(s.Fragment, null, d && s.createElement(w, {
|
|
189
|
+
sideCar: ne,
|
|
190
|
+
removeScrollBar: u,
|
|
191
|
+
shards: f,
|
|
192
|
+
noRelative: m,
|
|
193
|
+
noIsolation: h,
|
|
194
|
+
inert: g,
|
|
195
|
+
setCallbacks: a,
|
|
196
|
+
allowPinchZoom: !!_,
|
|
197
|
+
lockRef: n,
|
|
198
|
+
gapMode: b
|
|
199
|
+
}), o ? s.cloneElement(s.Children.only(c), x(x({}, E), { ref: T })) : s.createElement(y, x({}, E, {
|
|
200
|
+
className: l,
|
|
201
|
+
ref: T
|
|
202
|
+
}), c));
|
|
203
|
+
});
|
|
204
|
+
z.defaultProps = {
|
|
205
|
+
enabled: !0,
|
|
206
|
+
removeScrollBar: !0,
|
|
207
|
+
inert: !1
|
|
208
|
+
}, z.classNames = {
|
|
209
|
+
fullWidth: E,
|
|
210
|
+
zeroRight: T
|
|
211
|
+
};
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
214
|
+
function B() {
|
|
215
|
+
return B = Object.assign ? Object.assign.bind() : function(e) {
|
|
216
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
217
|
+
var n = arguments[t];
|
|
218
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
219
|
+
}
|
|
220
|
+
return e;
|
|
221
|
+
}, B.apply(null, arguments);
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
|
|
225
|
+
var re = /* @__PURE__ */ t(((e) => {
|
|
226
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
227
|
+
function b(e) {
|
|
228
|
+
if (typeof e == "object" && e) {
|
|
229
|
+
var t = e.$$typeof;
|
|
230
|
+
switch (t) {
|
|
231
|
+
case n: switch (e = e.type, e) {
|
|
232
|
+
case l:
|
|
233
|
+
case u:
|
|
234
|
+
case i:
|
|
235
|
+
case o:
|
|
236
|
+
case a:
|
|
237
|
+
case f: return e;
|
|
238
|
+
default: switch (e &&= e.$$typeof, e) {
|
|
239
|
+
case c:
|
|
240
|
+
case d:
|
|
241
|
+
case h:
|
|
242
|
+
case m:
|
|
243
|
+
case s: return e;
|
|
244
|
+
default: return t;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
case r: return t;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function x(e) {
|
|
252
|
+
return b(e) === u;
|
|
253
|
+
}
|
|
254
|
+
e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
|
|
255
|
+
return x(e) || b(e) === l;
|
|
256
|
+
}, e.isConcurrentMode = x, e.isContextConsumer = function(e) {
|
|
257
|
+
return b(e) === c;
|
|
258
|
+
}, e.isContextProvider = function(e) {
|
|
259
|
+
return b(e) === s;
|
|
260
|
+
}, e.isElement = function(e) {
|
|
261
|
+
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
262
|
+
}, e.isForwardRef = function(e) {
|
|
263
|
+
return b(e) === d;
|
|
264
|
+
}, e.isFragment = function(e) {
|
|
265
|
+
return b(e) === i;
|
|
266
|
+
}, e.isLazy = function(e) {
|
|
267
|
+
return b(e) === h;
|
|
268
|
+
}, e.isMemo = function(e) {
|
|
269
|
+
return b(e) === m;
|
|
270
|
+
}, e.isPortal = function(e) {
|
|
271
|
+
return b(e) === r;
|
|
272
|
+
}, e.isProfiler = function(e) {
|
|
273
|
+
return b(e) === o;
|
|
274
|
+
}, e.isStrictMode = function(e) {
|
|
275
|
+
return b(e) === a;
|
|
276
|
+
}, e.isSuspense = function(e) {
|
|
277
|
+
return b(e) === f;
|
|
278
|
+
}, e.isValidElementType = function(e) {
|
|
279
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
|
|
280
|
+
}, e.typeOf = b;
|
|
281
|
+
})), V = /* @__PURE__ */ t(((e) => {
|
|
282
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
283
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
284
|
+
function b(e) {
|
|
285
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
|
|
286
|
+
}
|
|
287
|
+
function x(e) {
|
|
288
|
+
if (typeof e == "object" && e) {
|
|
289
|
+
var t = e.$$typeof;
|
|
290
|
+
switch (t) {
|
|
291
|
+
case n:
|
|
292
|
+
var p = e.type;
|
|
293
|
+
switch (p) {
|
|
294
|
+
case l:
|
|
295
|
+
case u:
|
|
296
|
+
case i:
|
|
297
|
+
case o:
|
|
298
|
+
case a:
|
|
299
|
+
case f: return p;
|
|
300
|
+
default:
|
|
301
|
+
var g = p && p.$$typeof;
|
|
302
|
+
switch (g) {
|
|
303
|
+
case c:
|
|
304
|
+
case d:
|
|
305
|
+
case h:
|
|
306
|
+
case m:
|
|
307
|
+
case s: return g;
|
|
308
|
+
default: return t;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
case r: return t;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
var S = l, C = u, w = c, T = s, E = n, D = d, O = i, k = h, A = m, j = r, M = o, N = a, P = f, F = !1;
|
|
316
|
+
function I(e) {
|
|
317
|
+
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), L(e) || x(e) === l;
|
|
318
|
+
}
|
|
319
|
+
function L(e) {
|
|
320
|
+
return x(e) === u;
|
|
321
|
+
}
|
|
322
|
+
function ee(e) {
|
|
323
|
+
return x(e) === c;
|
|
324
|
+
}
|
|
325
|
+
function te(e) {
|
|
326
|
+
return x(e) === s;
|
|
327
|
+
}
|
|
328
|
+
function ne(e) {
|
|
329
|
+
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
330
|
+
}
|
|
331
|
+
function R(e) {
|
|
332
|
+
return x(e) === d;
|
|
333
|
+
}
|
|
334
|
+
function z(e) {
|
|
335
|
+
return x(e) === i;
|
|
336
|
+
}
|
|
337
|
+
function B(e) {
|
|
338
|
+
return x(e) === h;
|
|
339
|
+
}
|
|
340
|
+
function re(e) {
|
|
341
|
+
return x(e) === m;
|
|
342
|
+
}
|
|
343
|
+
function V(e) {
|
|
344
|
+
return x(e) === r;
|
|
345
|
+
}
|
|
346
|
+
function H(e) {
|
|
347
|
+
return x(e) === o;
|
|
348
|
+
}
|
|
349
|
+
function ie(e) {
|
|
350
|
+
return x(e) === a;
|
|
351
|
+
}
|
|
352
|
+
function ae(e) {
|
|
353
|
+
return x(e) === f;
|
|
354
|
+
}
|
|
355
|
+
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = ee, e.isContextProvider = te, e.isElement = ne, e.isForwardRef = R, e.isFragment = z, e.isLazy = B, e.isMemo = re, e.isPortal = V, e.isProfiler = H, e.isStrictMode = ie, e.isSuspense = ae, e.isValidElementType = b, e.typeOf = x;
|
|
356
|
+
})();
|
|
357
|
+
})), H = /* @__PURE__ */ t(((e, t) => {
|
|
358
|
+
process.env.NODE_ENV === "production" ? t.exports = re() : t.exports = V();
|
|
359
|
+
})), ie = /* @__PURE__ */ t(((e, t) => {
|
|
360
|
+
var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
361
|
+
function a(e) {
|
|
362
|
+
if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
|
|
363
|
+
return Object(e);
|
|
364
|
+
}
|
|
365
|
+
function o() {
|
|
366
|
+
try {
|
|
367
|
+
if (!Object.assign) return !1;
|
|
368
|
+
var e = /* @__PURE__ */ new String("abc");
|
|
369
|
+
if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") return !1;
|
|
370
|
+
for (var t = {}, n = 0; n < 10; n++) t["_" + String.fromCharCode(n)] = n;
|
|
371
|
+
if (Object.getOwnPropertyNames(t).map(function(e) {
|
|
372
|
+
return t[e];
|
|
373
|
+
}).join("") !== "0123456789") return !1;
|
|
374
|
+
var r = {};
|
|
375
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
|
|
376
|
+
r[e] = e;
|
|
377
|
+
}), Object.keys(Object.assign({}, r)).join("") === "abcdefghijklmnopqrst";
|
|
378
|
+
} catch {
|
|
379
|
+
return !1;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
t.exports = o() ? Object.assign : function(e, t) {
|
|
383
|
+
for (var o, s = a(e), c, l = 1; l < arguments.length; l++) {
|
|
384
|
+
for (var u in o = Object(arguments[l]), o) r.call(o, u) && (s[u] = o[u]);
|
|
385
|
+
if (n) {
|
|
386
|
+
c = n(o);
|
|
387
|
+
for (var d = 0; d < c.length; d++) i.call(o, c[d]) && (s[c[d]] = o[c[d]]);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return s;
|
|
391
|
+
};
|
|
392
|
+
})), ae = /* @__PURE__ */ t(((e, t) => {
|
|
393
|
+
t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
394
|
+
})), oe = /* @__PURE__ */ t(((e, t) => {
|
|
395
|
+
t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
396
|
+
})), se = /* @__PURE__ */ t(((e, t) => {
|
|
397
|
+
var n = function() {};
|
|
398
|
+
if (process.env.NODE_ENV !== "production") {
|
|
399
|
+
var r = ae(), i = {}, a = oe();
|
|
400
|
+
n = function(e) {
|
|
401
|
+
var t = "Warning: " + e;
|
|
402
|
+
typeof console < "u" && console.error(t);
|
|
403
|
+
try {
|
|
404
|
+
throw Error(t);
|
|
405
|
+
} catch {}
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
function o(e, t, o, s, c) {
|
|
409
|
+
if (process.env.NODE_ENV !== "production") {
|
|
410
|
+
for (var l in e) if (a(e, l)) {
|
|
411
|
+
var u;
|
|
412
|
+
try {
|
|
413
|
+
if (typeof e[l] != "function") {
|
|
414
|
+
var d = Error((s || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
415
|
+
throw d.name = "Invariant Violation", d;
|
|
416
|
+
}
|
|
417
|
+
u = e[l](t, l, s, o, null, r);
|
|
418
|
+
} catch (e) {
|
|
419
|
+
u = e;
|
|
420
|
+
}
|
|
421
|
+
if (u && !(u instanceof Error) && n((s || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), u instanceof Error && !(u.message in i)) {
|
|
422
|
+
i[u.message] = !0;
|
|
423
|
+
var f = c ? c() : "";
|
|
424
|
+
n("Failed " + o + " type: " + u.message + (f ?? ""));
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
o.resetWarningCache = function() {
|
|
430
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
431
|
+
}, t.exports = o;
|
|
432
|
+
})), ce = /* @__PURE__ */ t(((e, t) => {
|
|
433
|
+
var n = H(), r = ie(), i = ae(), a = oe(), o = se(), s = function() {};
|
|
434
|
+
process.env.NODE_ENV !== "production" && (s = function(e) {
|
|
435
|
+
var t = "Warning: " + e;
|
|
436
|
+
typeof console < "u" && console.error(t);
|
|
437
|
+
try {
|
|
438
|
+
throw Error(t);
|
|
439
|
+
} catch {}
|
|
440
|
+
});
|
|
441
|
+
function c() {
|
|
442
|
+
return null;
|
|
443
|
+
}
|
|
444
|
+
t.exports = function(e, t) {
|
|
445
|
+
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
446
|
+
function d(e) {
|
|
447
|
+
var t = e && (l && e[l] || e[u]);
|
|
448
|
+
if (typeof t == "function") return t;
|
|
449
|
+
}
|
|
450
|
+
var f = "<<anonymous>>", p = {
|
|
451
|
+
array: _("array"),
|
|
452
|
+
bigint: _("bigint"),
|
|
453
|
+
bool: _("boolean"),
|
|
454
|
+
func: _("function"),
|
|
455
|
+
number: _("number"),
|
|
456
|
+
object: _("object"),
|
|
457
|
+
string: _("string"),
|
|
458
|
+
symbol: _("symbol"),
|
|
459
|
+
any: v(),
|
|
460
|
+
arrayOf: y,
|
|
461
|
+
element: b(),
|
|
462
|
+
elementType: x(),
|
|
463
|
+
instanceOf: S,
|
|
464
|
+
node: E(),
|
|
465
|
+
objectOf: w,
|
|
466
|
+
oneOf: C,
|
|
467
|
+
oneOfType: T,
|
|
468
|
+
shape: O,
|
|
469
|
+
exact: k
|
|
470
|
+
};
|
|
471
|
+
function m(e, t) {
|
|
472
|
+
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
473
|
+
}
|
|
474
|
+
function h(e, t) {
|
|
475
|
+
this.message = e, this.data = t && typeof t == "object" ? t : {}, this.stack = "";
|
|
476
|
+
}
|
|
477
|
+
h.prototype = Error.prototype;
|
|
478
|
+
function g(e) {
|
|
479
|
+
if (process.env.NODE_ENV !== "production") var n = {}, r = 0;
|
|
480
|
+
function a(a, o, c, l, u, d, p) {
|
|
481
|
+
if (l ||= f, d ||= c, p !== i) {
|
|
482
|
+
if (t) {
|
|
483
|
+
var m = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
|
|
484
|
+
throw m.name = "Invariant Violation", m;
|
|
485
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
486
|
+
var g = l + ":" + c;
|
|
487
|
+
!n[g] && r < 3 && (s("You are manually calling a React.PropTypes validation function for the `" + d + "` prop on `" + l + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."), n[g] = !0, r++);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return o[c] == null ? a ? o[c] === null ? new h("The " + u + " `" + d + "` is marked as required " + ("in `" + l + "`, but its value is `null`.")) : new h("The " + u + " `" + d + "` is marked as required in " + ("`" + l + "`, but its value is `undefined`.")) : null : e(o, c, l, u, d);
|
|
491
|
+
}
|
|
492
|
+
var o = a.bind(null, !1);
|
|
493
|
+
return o.isRequired = a.bind(null, !0), o;
|
|
494
|
+
}
|
|
495
|
+
function _(e) {
|
|
496
|
+
function t(t, n, r, i, a, o) {
|
|
497
|
+
var s = t[n];
|
|
498
|
+
if (M(s) !== e) {
|
|
499
|
+
var c = N(s);
|
|
500
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected ") + ("`" + e + "`."), { expectedType: e });
|
|
501
|
+
}
|
|
502
|
+
return null;
|
|
503
|
+
}
|
|
504
|
+
return g(t);
|
|
505
|
+
}
|
|
506
|
+
function v() {
|
|
507
|
+
return g(c);
|
|
508
|
+
}
|
|
509
|
+
function y(e) {
|
|
510
|
+
function t(t, n, r, a, o) {
|
|
511
|
+
if (typeof e != "function") return new h("Property `" + o + "` of component `" + r + "` has invalid PropType notation inside arrayOf.");
|
|
512
|
+
var s = t[n];
|
|
513
|
+
if (!Array.isArray(s)) {
|
|
514
|
+
var c = M(s);
|
|
515
|
+
return new h("Invalid " + a + " `" + o + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected an array."));
|
|
516
|
+
}
|
|
517
|
+
for (var l = 0; l < s.length; l++) {
|
|
518
|
+
var u = e(s, l, r, a, o + "[" + l + "]", i);
|
|
519
|
+
if (u instanceof Error) return u;
|
|
520
|
+
}
|
|
521
|
+
return null;
|
|
522
|
+
}
|
|
523
|
+
return g(t);
|
|
524
|
+
}
|
|
525
|
+
function b() {
|
|
526
|
+
function t(t, n, r, i, a) {
|
|
527
|
+
var o = t[n];
|
|
528
|
+
if (!e(o)) {
|
|
529
|
+
var s = M(o);
|
|
530
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement."));
|
|
531
|
+
}
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
return g(t);
|
|
535
|
+
}
|
|
536
|
+
function x() {
|
|
537
|
+
function e(e, t, r, i, a) {
|
|
538
|
+
var o = e[t];
|
|
539
|
+
if (!n.isValidElementType(o)) {
|
|
540
|
+
var s = M(o);
|
|
541
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement type."));
|
|
542
|
+
}
|
|
543
|
+
return null;
|
|
544
|
+
}
|
|
545
|
+
return g(e);
|
|
546
|
+
}
|
|
547
|
+
function S(e) {
|
|
548
|
+
function t(t, n, r, i, a) {
|
|
549
|
+
if (!(t[n] instanceof e)) {
|
|
550
|
+
var o = e.name || f, s = F(t[n]);
|
|
551
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected ") + ("instance of `" + o + "`."));
|
|
552
|
+
}
|
|
553
|
+
return null;
|
|
554
|
+
}
|
|
555
|
+
return g(t);
|
|
556
|
+
}
|
|
557
|
+
function C(e) {
|
|
558
|
+
if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : s("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
559
|
+
function t(t, n, r, i, a) {
|
|
560
|
+
for (var o = t[n], s = 0; s < e.length; s++) if (m(o, e[s])) return null;
|
|
561
|
+
var c = JSON.stringify(e, function(e, t) {
|
|
562
|
+
return N(t) === "symbol" ? String(t) : t;
|
|
563
|
+
});
|
|
564
|
+
return new h("Invalid " + i + " `" + a + "` of value `" + String(o) + "` " + ("supplied to `" + r + "`, expected one of " + c + "."));
|
|
565
|
+
}
|
|
566
|
+
return g(t);
|
|
567
|
+
}
|
|
568
|
+
function w(e) {
|
|
569
|
+
function t(t, n, r, o, s) {
|
|
570
|
+
if (typeof e != "function") return new h("Property `" + s + "` of component `" + r + "` has invalid PropType notation inside objectOf.");
|
|
571
|
+
var c = t[n], l = M(c);
|
|
572
|
+
if (l !== "object") return new h("Invalid " + o + " `" + s + "` of type " + ("`" + l + "` supplied to `" + r + "`, expected an object."));
|
|
573
|
+
for (var u in c) if (a(c, u)) {
|
|
574
|
+
var d = e(c, u, r, o, s + "." + u, i);
|
|
575
|
+
if (d instanceof Error) return d;
|
|
576
|
+
}
|
|
577
|
+
return null;
|
|
578
|
+
}
|
|
579
|
+
return g(t);
|
|
580
|
+
}
|
|
581
|
+
function T(e) {
|
|
582
|
+
if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
583
|
+
for (var t = 0; t < e.length; t++) {
|
|
584
|
+
var n = e[t];
|
|
585
|
+
if (typeof n != "function") return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + P(n) + " at index " + t + "."), c;
|
|
586
|
+
}
|
|
587
|
+
function r(t, n, r, o, s) {
|
|
588
|
+
for (var c = [], l = 0; l < e.length; l++) {
|
|
589
|
+
var u = e[l], d = u(t, n, r, o, s, i);
|
|
590
|
+
if (d == null) return null;
|
|
591
|
+
d.data && a(d.data, "expectedType") && c.push(d.data.expectedType);
|
|
592
|
+
}
|
|
593
|
+
var f = c.length > 0 ? ", expected one of type [" + c.join(", ") + "]" : "";
|
|
594
|
+
return new h("Invalid " + o + " `" + s + "` supplied to " + ("`" + r + "`" + f + "."));
|
|
595
|
+
}
|
|
596
|
+
return g(r);
|
|
597
|
+
}
|
|
598
|
+
function E() {
|
|
599
|
+
function e(e, t, n, r, i) {
|
|
600
|
+
return A(e[t]) ? null : new h("Invalid " + r + " `" + i + "` supplied to " + ("`" + n + "`, expected a ReactNode."));
|
|
601
|
+
}
|
|
602
|
+
return g(e);
|
|
603
|
+
}
|
|
604
|
+
function D(e, t, n, r, i) {
|
|
605
|
+
return new h((e || "React class") + ": " + t + " type `" + n + "." + r + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + i + "`.");
|
|
606
|
+
}
|
|
607
|
+
function O(e) {
|
|
608
|
+
function t(t, n, r, a, o) {
|
|
609
|
+
var s = t[n], c = M(s);
|
|
610
|
+
if (c !== "object") return new h("Invalid " + a + " `" + o + "` of type `" + c + "` " + ("supplied to `" + r + "`, expected `object`."));
|
|
611
|
+
for (var l in e) {
|
|
612
|
+
var u = e[l];
|
|
613
|
+
if (typeof u != "function") return D(r, a, o, l, N(u));
|
|
614
|
+
var d = u(s, l, r, a, o + "." + l, i);
|
|
615
|
+
if (d) return d;
|
|
616
|
+
}
|
|
617
|
+
return null;
|
|
618
|
+
}
|
|
619
|
+
return g(t);
|
|
620
|
+
}
|
|
621
|
+
function k(e) {
|
|
622
|
+
function t(t, n, o, s, c) {
|
|
623
|
+
var l = t[n], u = M(l);
|
|
624
|
+
if (u !== "object") return new h("Invalid " + s + " `" + c + "` of type `" + u + "` " + ("supplied to `" + o + "`, expected `object`."));
|
|
625
|
+
for (var d in r({}, t[n], e)) {
|
|
626
|
+
var f = e[d];
|
|
627
|
+
if (a(e, d) && typeof f != "function") return D(o, s, c, d, N(f));
|
|
628
|
+
if (!f) return new h("Invalid " + s + " `" + c + "` key `" + d + "` supplied to `" + o + "`.\nBad object: " + JSON.stringify(t[n], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e), null, " "));
|
|
629
|
+
var p = f(l, d, o, s, c + "." + d, i);
|
|
630
|
+
if (p) return p;
|
|
631
|
+
}
|
|
632
|
+
return null;
|
|
633
|
+
}
|
|
634
|
+
return g(t);
|
|
635
|
+
}
|
|
636
|
+
function A(t) {
|
|
637
|
+
switch (typeof t) {
|
|
638
|
+
case "number":
|
|
639
|
+
case "string":
|
|
640
|
+
case "undefined": return !0;
|
|
641
|
+
case "boolean": return !t;
|
|
642
|
+
case "object":
|
|
643
|
+
if (Array.isArray(t)) return t.every(A);
|
|
644
|
+
if (t === null || e(t)) return !0;
|
|
645
|
+
var n = d(t);
|
|
646
|
+
if (n) {
|
|
647
|
+
var r = n.call(t), i;
|
|
648
|
+
if (n !== t.entries) {
|
|
649
|
+
for (; !(i = r.next()).done;) if (!A(i.value)) return !1;
|
|
650
|
+
} else for (; !(i = r.next()).done;) {
|
|
651
|
+
var a = i.value;
|
|
652
|
+
if (a && !A(a[1])) return !1;
|
|
653
|
+
}
|
|
654
|
+
} else return !1;
|
|
655
|
+
return !0;
|
|
656
|
+
default: return !1;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
function j(e, t) {
|
|
660
|
+
return e === "symbol" ? !0 : t ? t["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && t instanceof Symbol : !1;
|
|
661
|
+
}
|
|
662
|
+
function M(e) {
|
|
663
|
+
var t = typeof e;
|
|
664
|
+
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : j(t, e) ? "symbol" : t;
|
|
665
|
+
}
|
|
666
|
+
function N(e) {
|
|
667
|
+
if (e == null) return "" + e;
|
|
668
|
+
var t = M(e);
|
|
669
|
+
if (t === "object") {
|
|
670
|
+
if (e instanceof Date) return "date";
|
|
671
|
+
if (e instanceof RegExp) return "regexp";
|
|
672
|
+
}
|
|
673
|
+
return t;
|
|
674
|
+
}
|
|
675
|
+
function P(e) {
|
|
676
|
+
var t = N(e);
|
|
677
|
+
switch (t) {
|
|
678
|
+
case "array":
|
|
679
|
+
case "object": return "an " + t;
|
|
680
|
+
case "boolean":
|
|
681
|
+
case "date":
|
|
682
|
+
case "regexp": return "a " + t;
|
|
683
|
+
default: return t;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
function F(e) {
|
|
687
|
+
return !e.constructor || !e.constructor.name ? f : e.constructor.name;
|
|
688
|
+
}
|
|
689
|
+
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
|
|
690
|
+
};
|
|
691
|
+
})), le = /* @__PURE__ */ t(((e, t) => {
|
|
692
|
+
var n = ae();
|
|
693
|
+
function r() {}
|
|
694
|
+
function i() {}
|
|
695
|
+
i.resetWarningCache = r, t.exports = function() {
|
|
696
|
+
function e(e, t, r, i, a, o) {
|
|
697
|
+
if (o !== n) {
|
|
698
|
+
var s = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
699
|
+
throw s.name = "Invariant Violation", s;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
e.isRequired = e;
|
|
703
|
+
function t() {
|
|
704
|
+
return e;
|
|
705
|
+
}
|
|
706
|
+
var a = {
|
|
707
|
+
array: e,
|
|
708
|
+
bigint: e,
|
|
709
|
+
bool: e,
|
|
710
|
+
func: e,
|
|
711
|
+
number: e,
|
|
712
|
+
object: e,
|
|
713
|
+
string: e,
|
|
714
|
+
symbol: e,
|
|
715
|
+
any: e,
|
|
716
|
+
arrayOf: t,
|
|
717
|
+
element: e,
|
|
718
|
+
elementType: e,
|
|
719
|
+
instanceOf: t,
|
|
720
|
+
node: e,
|
|
721
|
+
objectOf: t,
|
|
722
|
+
oneOf: t,
|
|
723
|
+
oneOfType: t,
|
|
724
|
+
shape: t,
|
|
725
|
+
exact: t,
|
|
726
|
+
checkPropTypes: i,
|
|
727
|
+
resetWarningCache: r
|
|
728
|
+
};
|
|
729
|
+
return a.PropTypes = a, a;
|
|
730
|
+
};
|
|
731
|
+
})), ue = /* @__PURE__ */ t(((e, t) => {
|
|
732
|
+
if (process.env.NODE_ENV !== "production") {
|
|
733
|
+
var n = H();
|
|
734
|
+
t.exports = ce()(n.isElement, !0);
|
|
735
|
+
} else t.exports = le()();
|
|
736
|
+
})), de = "data-focus-lock", fe = "data-focus-lock-disabled", pe = "data-no-focus-lock", me = "data-autofocus-inside", he = "data-no-autofocus", U = /* @__PURE__ */ e(ue()), ge = {
|
|
737
|
+
width: "1px",
|
|
738
|
+
height: "0px",
|
|
739
|
+
padding: 0,
|
|
740
|
+
overflow: "hidden",
|
|
741
|
+
position: "fixed",
|
|
742
|
+
top: "1px",
|
|
743
|
+
left: "1px"
|
|
744
|
+
}, _e = function(e) {
|
|
745
|
+
var t = e.children, n = t === void 0 ? null : t;
|
|
746
|
+
return /* @__PURE__ */ c.createElement(l, null, /* @__PURE__ */ c.createElement("div", {
|
|
747
|
+
key: "guard-first",
|
|
748
|
+
"data-focus-guard": !0,
|
|
749
|
+
"data-focus-auto-guard": !0,
|
|
750
|
+
style: ge
|
|
751
|
+
}), n, n && /* @__PURE__ */ c.createElement("div", {
|
|
752
|
+
key: "guard-last",
|
|
753
|
+
"data-focus-guard": !0,
|
|
754
|
+
"data-focus-auto-guard": !0,
|
|
755
|
+
style: ge
|
|
756
|
+
}));
|
|
757
|
+
};
|
|
758
|
+
_e.propTypes = process.env.NODE_ENV === "production" ? {} : { children: U.default.node };
|
|
759
|
+
//#endregion
|
|
760
|
+
//#region ../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@19.2.13_react@19.2.4/node_modules/react-focus-lock/dist/es2015/medium.js
|
|
761
|
+
var ve = I({}, function(e) {
|
|
762
|
+
return {
|
|
763
|
+
target: e.target,
|
|
764
|
+
currentTarget: e.currentTarget
|
|
765
|
+
};
|
|
766
|
+
}), ye = I(), be = I(), xe = L({
|
|
767
|
+
async: !0,
|
|
768
|
+
ssr: typeof document < "u"
|
|
769
|
+
}), Se = /* @__PURE__ */ d(void 0), Ce = [], we = /* @__PURE__ */ f(function(e, t) {
|
|
770
|
+
var n, r = v(), i = r[0], a = r[1], o = _(), s = _(!1), u = _(null), d = v({})[1], f = e.children, h = e.disabled, y = h === void 0 ? !1 : h, b = e.noFocusGuards, x = b === void 0 ? !1 : b, S = e.persistentFocus, C = S === void 0 ? !1 : S, w = e.crossFrame, T = w === void 0 ? !0 : w, E = e.autoFocus, D = E === void 0 ? !0 : E, O = e.allowTextSelection, k = e.group, A = e.className, j = e.whiteList, M = e.hasPositiveIndices, P = e.shards, F = P === void 0 ? Ce : P, I = e.as, L = I === void 0 ? "div" : I, ee = e.lockProps, te = ee === void 0 ? {} : ee, ne = e.sideCar, R = e.returnFocus, z = R === void 0 ? !1 : R, re = e.focusOptions, V = e.onActivation, H = e.onDeactivation, ie = v({})[0], ae = p(function(e) {
|
|
771
|
+
var t = e.captureFocusRestore;
|
|
772
|
+
if (!u.current) {
|
|
773
|
+
var n = document?.activeElement;
|
|
774
|
+
u.current = n, n !== document.body && (u.current = t(n));
|
|
775
|
+
}
|
|
776
|
+
o.current && V && V(o.current), s.current = !0, d();
|
|
777
|
+
}, [V]), oe = p(function() {
|
|
778
|
+
s.current = !1, H && H(o.current), d();
|
|
779
|
+
}, [H]), se = p(function(e) {
|
|
780
|
+
var t = u.current;
|
|
781
|
+
if (t) {
|
|
782
|
+
var n = (typeof t == "function" ? t() : t) || document.body, r = typeof z == "function" ? z(n) : z;
|
|
783
|
+
if (r) {
|
|
784
|
+
var i = typeof r == "object" ? r : void 0;
|
|
785
|
+
u.current = null, e ? Promise.resolve().then(function() {
|
|
786
|
+
return n.focus(i);
|
|
787
|
+
}) : n.focus(i);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}, [z]), ce = p(function(e) {
|
|
791
|
+
s.current && ve.useMedium(e);
|
|
792
|
+
}, []), le = ye.useMedium, ue = p(function(e) {
|
|
793
|
+
o.current !== e && (o.current = e, a(e));
|
|
794
|
+
}, []);
|
|
795
|
+
process.env.NODE_ENV !== "production" && (O !== void 0 && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), m(function() {
|
|
796
|
+
!o.current && typeof L != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
797
|
+
}, []));
|
|
798
|
+
var pe = B((n = {}, n[fe] = y && "disabled", n[de] = k, n), te), me = x !== !0, he = me && x !== "tail", U = N([t, ue]), _e = g(function() {
|
|
799
|
+
return {
|
|
800
|
+
observed: o,
|
|
801
|
+
shards: F,
|
|
802
|
+
enabled: !y,
|
|
803
|
+
get active() {
|
|
804
|
+
return s.current;
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
}, [
|
|
808
|
+
y,
|
|
809
|
+
s,
|
|
810
|
+
F,
|
|
811
|
+
o
|
|
812
|
+
]);
|
|
813
|
+
return /* @__PURE__ */ c.createElement(l, null, me && [/* @__PURE__ */ c.createElement("div", {
|
|
814
|
+
key: "guard-first",
|
|
815
|
+
"data-focus-guard": !0,
|
|
816
|
+
tabIndex: y ? -1 : 0,
|
|
817
|
+
style: ge
|
|
818
|
+
}), M ? /* @__PURE__ */ c.createElement("div", {
|
|
819
|
+
key: "guard-nearest",
|
|
820
|
+
"data-focus-guard": !0,
|
|
821
|
+
tabIndex: y ? -1 : 1,
|
|
822
|
+
style: ge
|
|
823
|
+
}) : null], !y && /* @__PURE__ */ c.createElement(ne, {
|
|
824
|
+
id: ie,
|
|
825
|
+
sideCar: xe,
|
|
826
|
+
observed: i,
|
|
827
|
+
disabled: y,
|
|
828
|
+
persistentFocus: C,
|
|
829
|
+
crossFrame: T,
|
|
830
|
+
autoFocus: D,
|
|
831
|
+
whiteList: j,
|
|
832
|
+
shards: F,
|
|
833
|
+
onActivation: ae,
|
|
834
|
+
onDeactivation: oe,
|
|
835
|
+
returnFocus: se,
|
|
836
|
+
focusOptions: re,
|
|
837
|
+
noFocusGuards: x
|
|
838
|
+
}), /* @__PURE__ */ c.createElement(L, B({ ref: U }, pe, {
|
|
839
|
+
className: A,
|
|
840
|
+
onBlur: le,
|
|
841
|
+
onFocus: ce
|
|
842
|
+
}), /* @__PURE__ */ c.createElement(Se.Provider, { value: _e }, f)), he && /* @__PURE__ */ c.createElement("div", {
|
|
843
|
+
"data-focus-guard": !0,
|
|
844
|
+
tabIndex: y ? -1 : 0,
|
|
845
|
+
style: ge
|
|
846
|
+
}));
|
|
847
|
+
});
|
|
848
|
+
we.propTypes = process.env.NODE_ENV === "production" ? {} : {
|
|
849
|
+
children: U.node,
|
|
850
|
+
disabled: U.bool,
|
|
851
|
+
returnFocus: (0, U.oneOfType)([
|
|
852
|
+
U.bool,
|
|
853
|
+
U.object,
|
|
854
|
+
U.func
|
|
855
|
+
]),
|
|
856
|
+
focusOptions: U.object,
|
|
857
|
+
noFocusGuards: U.bool,
|
|
858
|
+
hasPositiveIndices: U.bool,
|
|
859
|
+
allowTextSelection: U.bool,
|
|
860
|
+
autoFocus: U.bool,
|
|
861
|
+
persistentFocus: U.bool,
|
|
862
|
+
crossFrame: U.bool,
|
|
863
|
+
group: U.string,
|
|
864
|
+
className: U.string,
|
|
865
|
+
whiteList: U.func,
|
|
866
|
+
shards: (0, U.arrayOf)(U.any),
|
|
867
|
+
as: (0, U.oneOfType)([
|
|
868
|
+
U.string,
|
|
869
|
+
U.func,
|
|
870
|
+
U.object
|
|
871
|
+
]),
|
|
872
|
+
lockProps: U.object,
|
|
873
|
+
onActivation: U.func,
|
|
874
|
+
onDeactivation: U.func,
|
|
875
|
+
sideCar: U.any.isRequired
|
|
876
|
+
};
|
|
877
|
+
//#endregion
|
|
878
|
+
//#region ../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@19.2.13_react@19.2.4/node_modules/react-focus-lock/dist/es2015/util.js
|
|
879
|
+
function Te(e) {
|
|
880
|
+
setTimeout(e, 1);
|
|
881
|
+
}
|
|
882
|
+
var Ee = function(e) {
|
|
883
|
+
return e && "current" in e ? e.current : e;
|
|
884
|
+
}, De = we, Oe = L(), ke = "data-focus-on-hidden", Ae = { preventScroll: !0 }, je = s.forwardRef(function(e, t) {
|
|
885
|
+
var n = s.useState(!1), r = n[0], i = n[1], a = s.useState(null), o = a[0], c = a[1], l = e.children, u = e.autoFocus, d = e.shards, f = e.crossFrame, p = e.enabled, m = p === void 0 ? !0 : p, h = e.scrollLock, g = h === void 0 ? !0 : h, _ = e.focusLock, v = _ === void 0 ? !0 : _, y = e.returnFocus, b = y === void 0 ? !0 : y, C = e.inert, w = e.allowPinchZoom, T = e.sideCar, E = e.className, D = e.shouldIgnore, O = e.preventScrollOnFocus, k = e.style, A = e.as, j = e.gapMode, M = S(e, [
|
|
886
|
+
"children",
|
|
887
|
+
"autoFocus",
|
|
888
|
+
"shards",
|
|
889
|
+
"crossFrame",
|
|
890
|
+
"enabled",
|
|
891
|
+
"scrollLock",
|
|
892
|
+
"focusLock",
|
|
893
|
+
"returnFocus",
|
|
894
|
+
"inert",
|
|
895
|
+
"allowPinchZoom",
|
|
896
|
+
"sideCar",
|
|
897
|
+
"className",
|
|
898
|
+
"shouldIgnore",
|
|
899
|
+
"preventScrollOnFocus",
|
|
900
|
+
"style",
|
|
901
|
+
"as",
|
|
902
|
+
"gapMode"
|
|
903
|
+
]), N = T, P = x(x({}, r), {
|
|
904
|
+
as: A,
|
|
905
|
+
style: k,
|
|
906
|
+
sideCar: T,
|
|
907
|
+
shards: d,
|
|
908
|
+
allowPinchZoom: w,
|
|
909
|
+
gapMode: j,
|
|
910
|
+
inert: C,
|
|
911
|
+
enabled: m && g
|
|
912
|
+
}), F = s.useCallback(function(e) {
|
|
913
|
+
c(e);
|
|
914
|
+
}, []), I = s.useCallback(function() {
|
|
915
|
+
c(null);
|
|
916
|
+
}, []);
|
|
917
|
+
return s.createElement(s.Fragment, null, s.createElement(De, {
|
|
918
|
+
ref: t,
|
|
919
|
+
sideCar: T,
|
|
920
|
+
disabled: !(m && v),
|
|
921
|
+
returnFocus: b,
|
|
922
|
+
autoFocus: u,
|
|
923
|
+
shards: d,
|
|
924
|
+
crossFrame: f,
|
|
925
|
+
onActivation: F,
|
|
926
|
+
onDeactivation: I,
|
|
927
|
+
className: E,
|
|
928
|
+
whiteList: D,
|
|
929
|
+
lockProps: P,
|
|
930
|
+
focusOptions: O ? Ae : void 0,
|
|
931
|
+
as: z
|
|
932
|
+
}, l), m && s.createElement(N, x({}, M, {
|
|
933
|
+
sideCar: Oe,
|
|
934
|
+
setLockProps: i,
|
|
935
|
+
shards: d,
|
|
936
|
+
activeNode: o
|
|
937
|
+
})));
|
|
938
|
+
});
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
941
|
+
function Me(e, t) {
|
|
942
|
+
return Me = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
943
|
+
return e.__proto__ = t, e;
|
|
944
|
+
}, Me(e, t);
|
|
945
|
+
}
|
|
946
|
+
//#endregion
|
|
947
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
948
|
+
function Ne(e, t) {
|
|
949
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Me(e, t);
|
|
950
|
+
}
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
953
|
+
function Pe(e) {
|
|
954
|
+
"@babel/helpers - typeof";
|
|
955
|
+
return Pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
956
|
+
return typeof e;
|
|
957
|
+
} : function(e) {
|
|
958
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
959
|
+
}, Pe(e);
|
|
960
|
+
}
|
|
961
|
+
//#endregion
|
|
962
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
963
|
+
function Fe(e, t) {
|
|
964
|
+
if (Pe(e) != "object" || !e) return e;
|
|
965
|
+
var n = e[Symbol.toPrimitive];
|
|
966
|
+
if (n !== void 0) {
|
|
967
|
+
var r = n.call(e, t || "default");
|
|
968
|
+
if (Pe(r) != "object") return r;
|
|
969
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
970
|
+
}
|
|
971
|
+
return (t === "string" ? String : Number)(e);
|
|
972
|
+
}
|
|
973
|
+
//#endregion
|
|
974
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
975
|
+
function Ie(e) {
|
|
976
|
+
var t = Fe(e, "string");
|
|
977
|
+
return Pe(t) == "symbol" ? t : t + "";
|
|
978
|
+
}
|
|
979
|
+
//#endregion
|
|
980
|
+
//#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
981
|
+
function Le(e, t, n) {
|
|
982
|
+
return (t = Ie(t)) in e ? Object.defineProperty(e, t, {
|
|
983
|
+
value: n,
|
|
984
|
+
enumerable: !0,
|
|
985
|
+
configurable: !0,
|
|
986
|
+
writable: !0
|
|
987
|
+
}) : e[t] = n, e;
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region ../../node_modules/.pnpm/react-clientside-effect@1.2.8_react@19.2.4/node_modules/react-clientside-effect/lib/index.es.js
|
|
991
|
+
function Re(e, t) {
|
|
992
|
+
if (process.env.NODE_ENV !== "production") {
|
|
993
|
+
if (typeof e != "function") throw Error("Expected reducePropsToState to be a function.");
|
|
994
|
+
if (typeof t != "function") throw Error("Expected handleStateChangeOnClient to be a function.");
|
|
995
|
+
}
|
|
996
|
+
function n(e) {
|
|
997
|
+
return e.displayName || e.name || "Component";
|
|
998
|
+
}
|
|
999
|
+
return function(r) {
|
|
1000
|
+
if (process.env.NODE_ENV !== "production" && typeof r != "function") throw Error("Expected WrappedComponent to be a React component.");
|
|
1001
|
+
var i = [], a;
|
|
1002
|
+
function o() {
|
|
1003
|
+
a = e(i.map(function(e) {
|
|
1004
|
+
return e.props;
|
|
1005
|
+
})), t(a);
|
|
1006
|
+
}
|
|
1007
|
+
var s = /* @__PURE__ */ function(e) {
|
|
1008
|
+
Ne(t, e);
|
|
1009
|
+
function t() {
|
|
1010
|
+
return e.apply(this, arguments) || this;
|
|
1011
|
+
}
|
|
1012
|
+
t.peek = function() {
|
|
1013
|
+
return a;
|
|
1014
|
+
};
|
|
1015
|
+
var n = t.prototype;
|
|
1016
|
+
return n.componentDidMount = function() {
|
|
1017
|
+
i.push(this), o();
|
|
1018
|
+
}, n.componentDidUpdate = function() {
|
|
1019
|
+
o();
|
|
1020
|
+
}, n.componentWillUnmount = function() {
|
|
1021
|
+
var e = i.indexOf(this);
|
|
1022
|
+
i.splice(e, 1), o();
|
|
1023
|
+
}, n.render = function() {
|
|
1024
|
+
return /* @__PURE__ */ c.createElement(r, this.props);
|
|
1025
|
+
}, t;
|
|
1026
|
+
}(u);
|
|
1027
|
+
return Le(s, "displayName", "SideEffect(" + n(r) + ")"), s;
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
//#endregion
|
|
1031
|
+
//#region ../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/array.js
|
|
1032
|
+
var W = function(e) {
|
|
1033
|
+
for (var t = Array(e.length), n = 0; n < e.length; ++n) t[n] = e[n];
|
|
1034
|
+
return t;
|
|
1035
|
+
}, G = function(e) {
|
|
1036
|
+
return Array.isArray(e) ? e : [e];
|
|
1037
|
+
}, ze = function(e) {
|
|
1038
|
+
return Array.isArray(e) ? e[0] : e;
|
|
1039
|
+
}, Be = function(e) {
|
|
1040
|
+
if (e.nodeType !== Node.ELEMENT_NODE) return !1;
|
|
1041
|
+
var t = window.getComputedStyle(e, null);
|
|
1042
|
+
return !t || !t.getPropertyValue ? !1 : t.getPropertyValue("display") === "none" || t.getPropertyValue("visibility") === "hidden";
|
|
1043
|
+
}, Ve = function(e) {
|
|
1044
|
+
return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? e.parentNode.host : e.parentNode;
|
|
1045
|
+
}, He = function(e) {
|
|
1046
|
+
return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
|
|
1047
|
+
}, Ue = function(e) {
|
|
1048
|
+
return e.hasAttribute("inert");
|
|
1049
|
+
}, We = function(e, t) {
|
|
1050
|
+
return !e || He(e) || !Be(e) && !Ue(e) && t(Ve(e));
|
|
1051
|
+
}, Ge = function(e, t) {
|
|
1052
|
+
var n = e.get(t);
|
|
1053
|
+
if (n !== void 0) return n;
|
|
1054
|
+
var r = We(t, Ge.bind(void 0, e));
|
|
1055
|
+
return e.set(t, r), r;
|
|
1056
|
+
}, Ke = function(e, t) {
|
|
1057
|
+
return e && !He(e) ? $e(e) ? t(Ve(e)) : !1 : !0;
|
|
1058
|
+
}, qe = function(e, t) {
|
|
1059
|
+
var n = e.get(t);
|
|
1060
|
+
if (n !== void 0) return n;
|
|
1061
|
+
var r = Ke(t, qe.bind(void 0, e));
|
|
1062
|
+
return e.set(t, r), r;
|
|
1063
|
+
}, Je = function(e) {
|
|
1064
|
+
return e.dataset;
|
|
1065
|
+
}, Ye = function(e) {
|
|
1066
|
+
return e.tagName === "BUTTON";
|
|
1067
|
+
}, Xe = function(e) {
|
|
1068
|
+
return e.tagName === "INPUT";
|
|
1069
|
+
}, Ze = function(e) {
|
|
1070
|
+
return Xe(e) && e.type === "radio";
|
|
1071
|
+
}, Qe = function(e) {
|
|
1072
|
+
return !((Xe(e) || Ye(e)) && (e.type === "hidden" || e.disabled));
|
|
1073
|
+
}, $e = function(e) {
|
|
1074
|
+
var t = e.getAttribute(he);
|
|
1075
|
+
return ![
|
|
1076
|
+
!0,
|
|
1077
|
+
"true",
|
|
1078
|
+
""
|
|
1079
|
+
].includes(t);
|
|
1080
|
+
}, et = function(e) {
|
|
1081
|
+
return !!(e && Je(e)?.focusGuard);
|
|
1082
|
+
}, tt = function(e) {
|
|
1083
|
+
return !et(e);
|
|
1084
|
+
}, nt = function(e) {
|
|
1085
|
+
return !!e;
|
|
1086
|
+
}, rt = function(e, t) {
|
|
1087
|
+
var n = Math.max(0, e.tabIndex), r = Math.max(0, t.tabIndex), i = n - r, a = e.index - t.index;
|
|
1088
|
+
if (i) {
|
|
1089
|
+
if (!n) return 1;
|
|
1090
|
+
if (!r) return -1;
|
|
1091
|
+
}
|
|
1092
|
+
return i || a;
|
|
1093
|
+
}, it = function(e) {
|
|
1094
|
+
return e.tabIndex < 0 && !e.hasAttribute("tabindex") ? 0 : e.tabIndex;
|
|
1095
|
+
}, at = function(e, t, n) {
|
|
1096
|
+
return W(e).map(function(e, t) {
|
|
1097
|
+
var r = it(e);
|
|
1098
|
+
return {
|
|
1099
|
+
node: e,
|
|
1100
|
+
index: t,
|
|
1101
|
+
tabIndex: n && r === -1 ? (e.dataset || {}).focusGuard ? 0 : -1 : r
|
|
1102
|
+
};
|
|
1103
|
+
}).filter(function(e) {
|
|
1104
|
+
return !t || e.tabIndex >= 0;
|
|
1105
|
+
}).sort(rt);
|
|
1106
|
+
}, ot = [
|
|
1107
|
+
"button:enabled",
|
|
1108
|
+
"select:enabled",
|
|
1109
|
+
"textarea:enabled",
|
|
1110
|
+
"input:enabled",
|
|
1111
|
+
"a[href]",
|
|
1112
|
+
"area[href]",
|
|
1113
|
+
"summary",
|
|
1114
|
+
"iframe",
|
|
1115
|
+
"object",
|
|
1116
|
+
"embed",
|
|
1117
|
+
"audio[controls]",
|
|
1118
|
+
"video[controls]",
|
|
1119
|
+
"[tabindex]",
|
|
1120
|
+
"[contenteditable]",
|
|
1121
|
+
"[autofocus]"
|
|
1122
|
+
].join(","), st = `${ot}, [data-focus-guard]`, ct = function(e, t) {
|
|
1123
|
+
return W((e.shadowRoot || e).children).reduce(function(e, n) {
|
|
1124
|
+
return e.concat(n.matches(t ? st : ot) ? [n] : [], ct(n));
|
|
1125
|
+
}, []);
|
|
1126
|
+
}, lt = function(e, t) {
|
|
1127
|
+
return e instanceof HTMLIFrameElement && e.contentDocument?.body ? K([e.contentDocument.body], t) : [e];
|
|
1128
|
+
}, K = function(e, t) {
|
|
1129
|
+
return e.reduce(function(e, n) {
|
|
1130
|
+
var r, i = ct(n, t), a = (r = []).concat.apply(r, i.map(function(e) {
|
|
1131
|
+
return lt(e, t);
|
|
1132
|
+
}));
|
|
1133
|
+
return e.concat(a, n.parentNode ? W(n.parentNode.querySelectorAll(ot)).filter(function(e) {
|
|
1134
|
+
return e === n;
|
|
1135
|
+
}) : []);
|
|
1136
|
+
}, []);
|
|
1137
|
+
}, ut = function(e) {
|
|
1138
|
+
return W(e.querySelectorAll(`[${me}]`)).map(function(e) {
|
|
1139
|
+
return K([e]);
|
|
1140
|
+
}).reduce(function(e, t) {
|
|
1141
|
+
return e.concat(t);
|
|
1142
|
+
}, []);
|
|
1143
|
+
}, dt = function(e, t) {
|
|
1144
|
+
return W(e).filter(function(e) {
|
|
1145
|
+
return Ge(t, e);
|
|
1146
|
+
}).filter(function(e) {
|
|
1147
|
+
return Qe(e);
|
|
1148
|
+
});
|
|
1149
|
+
}, ft = function(e, t) {
|
|
1150
|
+
return t === void 0 && (t = /* @__PURE__ */ new Map()), W(e).filter(function(e) {
|
|
1151
|
+
return qe(t, e);
|
|
1152
|
+
});
|
|
1153
|
+
}, pt = function(e, t, n) {
|
|
1154
|
+
return at(dt(K(e, n), t), !0, n);
|
|
1155
|
+
}, mt = function(e, t) {
|
|
1156
|
+
return at(dt(K(e), t), !1);
|
|
1157
|
+
}, ht = function(e, t) {
|
|
1158
|
+
return dt(ut(e), t);
|
|
1159
|
+
}, q = function(e, t) {
|
|
1160
|
+
return e.shadowRoot ? q(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : W(e.children).some(function(e) {
|
|
1161
|
+
if (e instanceof HTMLIFrameElement) {
|
|
1162
|
+
var n = e.contentDocument?.body;
|
|
1163
|
+
return n ? q(n, t) : !1;
|
|
1164
|
+
}
|
|
1165
|
+
return q(e, t);
|
|
1166
|
+
});
|
|
1167
|
+
}, gt = function(e) {
|
|
1168
|
+
for (var t = /* @__PURE__ */ new Set(), n = e.length, r = 0; r < n; r += 1) for (var i = r + 1; i < n; i += 1) {
|
|
1169
|
+
var a = e[r].compareDocumentPosition(e[i]);
|
|
1170
|
+
(a & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0 && t.add(i), (a & Node.DOCUMENT_POSITION_CONTAINS) > 0 && t.add(r);
|
|
1171
|
+
}
|
|
1172
|
+
return e.filter(function(e, n) {
|
|
1173
|
+
return !t.has(n);
|
|
1174
|
+
});
|
|
1175
|
+
}, _t = function(e) {
|
|
1176
|
+
return e.parentNode ? _t(e.parentNode) : e;
|
|
1177
|
+
}, vt = function(e) {
|
|
1178
|
+
return G(e).filter(Boolean).reduce(function(e, t) {
|
|
1179
|
+
var n = t.getAttribute(de);
|
|
1180
|
+
return e.push.apply(e, n ? gt(W(_t(t).querySelectorAll(`[${de}="${n}"]:not([${fe}="disabled"])`))) : [t]), e;
|
|
1181
|
+
}, []);
|
|
1182
|
+
}, yt = function(e) {
|
|
1183
|
+
try {
|
|
1184
|
+
return e();
|
|
1185
|
+
} catch {
|
|
1186
|
+
return;
|
|
1187
|
+
}
|
|
1188
|
+
}, bt = function(e) {
|
|
1189
|
+
if (e === void 0 && (e = document), !(!e || !e.activeElement)) {
|
|
1190
|
+
var t = e.activeElement;
|
|
1191
|
+
return t.shadowRoot ? bt(t.shadowRoot) : t instanceof HTMLIFrameElement && yt(function() {
|
|
1192
|
+
return t.contentWindow.document;
|
|
1193
|
+
}) ? bt(t.contentWindow.document) : t;
|
|
1194
|
+
}
|
|
1195
|
+
}, xt = function(e, t) {
|
|
1196
|
+
return e === t;
|
|
1197
|
+
}, St = function(e, t) {
|
|
1198
|
+
return !!W(e.querySelectorAll("iframe")).some(function(e) {
|
|
1199
|
+
return xt(e, t);
|
|
1200
|
+
});
|
|
1201
|
+
}, Ct = function(e, t) {
|
|
1202
|
+
return t === void 0 && (t = bt(ze(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : vt(e).some(function(e) {
|
|
1203
|
+
return q(e, t) || St(e, t);
|
|
1204
|
+
});
|
|
1205
|
+
}, wt = function(e) {
|
|
1206
|
+
e === void 0 && (e = document);
|
|
1207
|
+
var t = bt(e);
|
|
1208
|
+
return t ? W(e.querySelectorAll(`[${pe}]`)).some(function(e) {
|
|
1209
|
+
return q(e, t);
|
|
1210
|
+
}) : !1;
|
|
1211
|
+
}, Tt = function(e, t) {
|
|
1212
|
+
return t.filter(Ze).filter(function(t) {
|
|
1213
|
+
return t.name === e.name;
|
|
1214
|
+
}).filter(function(e) {
|
|
1215
|
+
return e.checked;
|
|
1216
|
+
})[0] || e;
|
|
1217
|
+
}, Et = function(e, t) {
|
|
1218
|
+
return Ze(e) && e.name ? Tt(e, t) : e;
|
|
1219
|
+
}, Dt = function(e) {
|
|
1220
|
+
var t = /* @__PURE__ */ new Set();
|
|
1221
|
+
return e.forEach(function(n) {
|
|
1222
|
+
return t.add(Et(n, e));
|
|
1223
|
+
}), e.filter(function(e) {
|
|
1224
|
+
return t.has(e);
|
|
1225
|
+
});
|
|
1226
|
+
}, Ot = function(e) {
|
|
1227
|
+
return e[0] && e.length > 1 ? Et(e[0], e) : e[0];
|
|
1228
|
+
}, kt = function(e, t) {
|
|
1229
|
+
return e.indexOf(Et(t, e));
|
|
1230
|
+
}, At = "NEW_FOCUS", jt = function(e, t, n, r, i) {
|
|
1231
|
+
var a = e.length, o = e[0], s = e[a - 1], c = et(r);
|
|
1232
|
+
if (!(r && e.indexOf(r) >= 0)) {
|
|
1233
|
+
var l = r === void 0 ? -1 : n.indexOf(r), u = i ? n.indexOf(i) : l, d = i ? e.indexOf(i) : -1;
|
|
1234
|
+
if (l === -1) return d === -1 ? At : d;
|
|
1235
|
+
if (d === -1) return At;
|
|
1236
|
+
var f = l - u, p = n.indexOf(o), m = n.indexOf(s), h = Dt(n), g = r === void 0 ? -1 : h.indexOf(r), _ = i ? h.indexOf(i) : g, v = h.filter(function(e) {
|
|
1237
|
+
return e.tabIndex >= 0;
|
|
1238
|
+
}), y = r === void 0 ? -1 : v.indexOf(r), b = i ? v.indexOf(i) : y, x = y >= 0 && b >= 0 ? b - y : _ - g;
|
|
1239
|
+
if (!f && d >= 0 || t.length === 0) return d;
|
|
1240
|
+
var S = kt(e, t[0]), C = kt(e, t[t.length - 1]);
|
|
1241
|
+
if (l <= p && c && Math.abs(f) > 1) return C;
|
|
1242
|
+
if (l >= m && c && Math.abs(f) > 1) return S;
|
|
1243
|
+
if (f && Math.abs(x) > 1) return d;
|
|
1244
|
+
if (l <= p) return C;
|
|
1245
|
+
if (l > m) return S;
|
|
1246
|
+
if (f) return Math.abs(f) > 1 ? d : (a + d + f) % a;
|
|
1247
|
+
}
|
|
1248
|
+
}, Mt = function(e) {
|
|
1249
|
+
return function(t) {
|
|
1250
|
+
var n = Je(t)?.autofocus;
|
|
1251
|
+
return t.autofocus || n !== void 0 && n !== "false" || e.indexOf(t) >= 0;
|
|
1252
|
+
};
|
|
1253
|
+
}, Nt = function(e, t, n) {
|
|
1254
|
+
var r = ft(e.map(function(e) {
|
|
1255
|
+
return e.node;
|
|
1256
|
+
}).filter(Mt(n)));
|
|
1257
|
+
return r && r.length ? Ot(r) : Ot(ft(t));
|
|
1258
|
+
}, Pt = function(e, t) {
|
|
1259
|
+
return t === void 0 && (t = []), t.push(e), e.parentNode && Pt(e.parentNode.host || e.parentNode, t), t;
|
|
1260
|
+
}, Ft = function(e, t) {
|
|
1261
|
+
for (var n = Pt(e), r = Pt(t), i = 0; i < n.length; i += 1) {
|
|
1262
|
+
var a = n[i];
|
|
1263
|
+
if (r.indexOf(a) >= 0) return a;
|
|
1264
|
+
}
|
|
1265
|
+
return !1;
|
|
1266
|
+
}, It = function(e, t, n) {
|
|
1267
|
+
var r = G(e), i = G(t), a = r[0], o = !1;
|
|
1268
|
+
return i.filter(Boolean).forEach(function(e) {
|
|
1269
|
+
o = Ft(o || e, e) || o, n.filter(Boolean).forEach(function(e) {
|
|
1270
|
+
var t = Ft(a, e);
|
|
1271
|
+
t && (o = !o || q(t, o) ? t : Ft(t, o));
|
|
1272
|
+
});
|
|
1273
|
+
}), o;
|
|
1274
|
+
}, Lt = function(e, t) {
|
|
1275
|
+
return e.reduce(function(e, n) {
|
|
1276
|
+
return e.concat(ht(n, t));
|
|
1277
|
+
}, []);
|
|
1278
|
+
}, Rt = function(e, t) {
|
|
1279
|
+
var n = /* @__PURE__ */ new Map();
|
|
1280
|
+
return t.forEach(function(e) {
|
|
1281
|
+
return n.set(e.node, e);
|
|
1282
|
+
}), e.map(function(e) {
|
|
1283
|
+
return n.get(e);
|
|
1284
|
+
}).filter(nt);
|
|
1285
|
+
}, zt = function(e, t) {
|
|
1286
|
+
var n = bt(G(e).length > 0 ? document : ze(e).ownerDocument), r = vt(e).filter(tt), i = It(n || e, e, r), a = /* @__PURE__ */ new Map(), o = mt(r, a), s = o.filter(function(e) {
|
|
1287
|
+
var t = e.node;
|
|
1288
|
+
return tt(t);
|
|
1289
|
+
});
|
|
1290
|
+
if (s[0]) {
|
|
1291
|
+
var c = mt([i], a).map(function(e) {
|
|
1292
|
+
return e.node;
|
|
1293
|
+
}), l = Rt(c, s), u = l.map(function(e) {
|
|
1294
|
+
return e.node;
|
|
1295
|
+
}), d = l.filter(function(e) {
|
|
1296
|
+
return e.tabIndex >= 0;
|
|
1297
|
+
}).map(function(e) {
|
|
1298
|
+
return e.node;
|
|
1299
|
+
}), f = jt(u, d, c, n, t);
|
|
1300
|
+
if (f === "NEW_FOCUS") {
|
|
1301
|
+
var p = Nt(o, d, Lt(r, a)) || Nt(o, u, Lt(r, a));
|
|
1302
|
+
if (p) return { node: p };
|
|
1303
|
+
console.warn("focus-lock: cannot find any node to move focus into");
|
|
1304
|
+
return;
|
|
1305
|
+
}
|
|
1306
|
+
return f === void 0 ? f : l[f];
|
|
1307
|
+
}
|
|
1308
|
+
}, Bt = function(e) {
|
|
1309
|
+
var t = vt(e).filter(tt), n = at(K([It(e, e, t)], !0), !0, !0), r = K(t, !1);
|
|
1310
|
+
return n.map(function(e) {
|
|
1311
|
+
var t = e.node;
|
|
1312
|
+
return {
|
|
1313
|
+
node: t,
|
|
1314
|
+
index: e.index,
|
|
1315
|
+
lockItem: r.indexOf(t) >= 0,
|
|
1316
|
+
guard: et(t)
|
|
1317
|
+
};
|
|
1318
|
+
});
|
|
1319
|
+
}, Vt = function(e, t) {
|
|
1320
|
+
e && ("focus" in e && e.focus(t), "contentWindow" in e && e.contentWindow && e.contentWindow.focus());
|
|
1321
|
+
}, Ht = 0, Ut = !1, Wt = function(e, t, n) {
|
|
1322
|
+
n === void 0 && (n = {});
|
|
1323
|
+
var r = zt(e, t);
|
|
1324
|
+
if (!Ut && r) {
|
|
1325
|
+
if (Ht > 2) {
|
|
1326
|
+
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), Ut = !0, setTimeout(function() {
|
|
1327
|
+
Ut = !1;
|
|
1328
|
+
}, 1);
|
|
1329
|
+
return;
|
|
1330
|
+
}
|
|
1331
|
+
Ht++, Vt(r.node, n.focusOptions), Ht--;
|
|
1332
|
+
}
|
|
1333
|
+
};
|
|
1334
|
+
//#endregion
|
|
1335
|
+
//#region ../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/return-focus.js
|
|
1336
|
+
function Gt(e) {
|
|
1337
|
+
if (!e) return null;
|
|
1338
|
+
if (typeof WeakRef > "u") return function() {
|
|
1339
|
+
return e || null;
|
|
1340
|
+
};
|
|
1341
|
+
var t = e ? new WeakRef(e) : null;
|
|
1342
|
+
return function() {
|
|
1343
|
+
return t?.deref() || null;
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
var Kt = function(e) {
|
|
1347
|
+
if (!e) return null;
|
|
1348
|
+
for (var t = [], n = e; n && n !== document.body;) t.push({
|
|
1349
|
+
current: Gt(n),
|
|
1350
|
+
parent: Gt(n.parentElement),
|
|
1351
|
+
left: Gt(n.previousElementSibling),
|
|
1352
|
+
right: Gt(n.nextElementSibling)
|
|
1353
|
+
}), n = n.parentElement;
|
|
1354
|
+
return {
|
|
1355
|
+
element: Gt(e),
|
|
1356
|
+
stack: t,
|
|
1357
|
+
ownerDocument: e.ownerDocument
|
|
1358
|
+
};
|
|
1359
|
+
}, qt = function(e) {
|
|
1360
|
+
if (e) for (var t = e.stack, n = e.ownerDocument, r = /* @__PURE__ */ new Map(), i = 0, a = t; i < a.length; i++) {
|
|
1361
|
+
var o = a[i], s = o.parent?.call(o);
|
|
1362
|
+
if (s && n.contains(s)) {
|
|
1363
|
+
for (var c = o.left?.call(o), l = o.current(), u = s.contains(l) ? l : void 0, d = o.right?.call(o), f = pt([s], r), p = u ?? c?.nextElementSibling ?? d ?? c; p;) {
|
|
1364
|
+
for (var m = 0, h = f; m < h.length; m++) {
|
|
1365
|
+
var g = h[m];
|
|
1366
|
+
if (p?.contains(g.node)) return g.node;
|
|
1367
|
+
}
|
|
1368
|
+
p = p.nextElementSibling;
|
|
1369
|
+
}
|
|
1370
|
+
if (f.length) return f[0].node;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}, Jt = function(e) {
|
|
1374
|
+
var t = Kt(e);
|
|
1375
|
+
return function() {
|
|
1376
|
+
return qt(t);
|
|
1377
|
+
};
|
|
1378
|
+
}, Yt = function(e, t, n) {
|
|
1379
|
+
if (!e || !t) return console.error("no element or scope given"), {};
|
|
1380
|
+
var r = G(t);
|
|
1381
|
+
if (r.every(function(t) {
|
|
1382
|
+
return !q(t, e);
|
|
1383
|
+
})) return console.error("Active element is not contained in the scope"), {};
|
|
1384
|
+
var i = n ? pt(r, /* @__PURE__ */ new Map()) : mt(r, /* @__PURE__ */ new Map()), a = i.findIndex(function(t) {
|
|
1385
|
+
return t.node === e;
|
|
1386
|
+
});
|
|
1387
|
+
if (a !== -1) return {
|
|
1388
|
+
prev: i[a - 1],
|
|
1389
|
+
next: i[a + 1],
|
|
1390
|
+
first: i[0],
|
|
1391
|
+
last: i[i.length - 1]
|
|
1392
|
+
};
|
|
1393
|
+
}, Xt = function(e, t) {
|
|
1394
|
+
var n = t ? pt(G(e), /* @__PURE__ */ new Map()) : mt(G(e), /* @__PURE__ */ new Map());
|
|
1395
|
+
return {
|
|
1396
|
+
first: n[0],
|
|
1397
|
+
last: n[n.length - 1]
|
|
1398
|
+
};
|
|
1399
|
+
}, Zt = function(e) {
|
|
1400
|
+
return Object.assign({
|
|
1401
|
+
scope: document.body,
|
|
1402
|
+
cycle: !0,
|
|
1403
|
+
onlyTabbable: !0
|
|
1404
|
+
}, e);
|
|
1405
|
+
}, Qt = function(e, t, n) {
|
|
1406
|
+
t === void 0 && (t = {});
|
|
1407
|
+
var r = Zt(t), i = Yt(e, r.scope, r.onlyTabbable);
|
|
1408
|
+
if (i) {
|
|
1409
|
+
var a = n(i, r.cycle);
|
|
1410
|
+
a && Vt(a.node, r.focusOptions);
|
|
1411
|
+
}
|
|
1412
|
+
}, $t = function(e, t) {
|
|
1413
|
+
t === void 0 && (t = {}), Qt(e, t, function(e, t) {
|
|
1414
|
+
var n = e.next, r = e.first;
|
|
1415
|
+
return n || t && r;
|
|
1416
|
+
});
|
|
1417
|
+
}, en = function(e, t) {
|
|
1418
|
+
t === void 0 && (t = {}), Qt(e, t, function(e, t) {
|
|
1419
|
+
var n = e.prev, r = e.last;
|
|
1420
|
+
return n || t && r;
|
|
1421
|
+
});
|
|
1422
|
+
}, tn = function(e, t, n) {
|
|
1423
|
+
var r = Xt(e, t.onlyTabbable ?? !0)[n];
|
|
1424
|
+
r && Vt(r.node, t.focusOptions);
|
|
1425
|
+
}, nn = function(e, t) {
|
|
1426
|
+
t === void 0 && (t = {}), tn(e, t, "first");
|
|
1427
|
+
}, rn = function(e, t) {
|
|
1428
|
+
t === void 0 && (t = {}), tn(e, t, "last");
|
|
1429
|
+
}, an = function() {
|
|
1430
|
+
return document && document.activeElement === document.body;
|
|
1431
|
+
}, on = function() {
|
|
1432
|
+
return an() || wt();
|
|
1433
|
+
}, J = null, Y = null, sn = function() {
|
|
1434
|
+
return null;
|
|
1435
|
+
}, X = null, cn = !1, ln = !1, un = function() {
|
|
1436
|
+
return !0;
|
|
1437
|
+
}, dn = function(e) {
|
|
1438
|
+
return (J.whiteList || un)(e);
|
|
1439
|
+
}, fn = function(e, t) {
|
|
1440
|
+
X = {
|
|
1441
|
+
observerNode: e,
|
|
1442
|
+
portaledElement: t
|
|
1443
|
+
};
|
|
1444
|
+
}, pn = function(e) {
|
|
1445
|
+
return X && X.portaledElement === e;
|
|
1446
|
+
};
|
|
1447
|
+
function mn(e, t, n, r) {
|
|
1448
|
+
var i = null, a = e;
|
|
1449
|
+
do {
|
|
1450
|
+
var o = r[a];
|
|
1451
|
+
if (o.guard) o.node.dataset.focusAutoGuard && (i = o);
|
|
1452
|
+
else if (o.lockItem) {
|
|
1453
|
+
if (a !== e) return;
|
|
1454
|
+
i = null;
|
|
1455
|
+
} else break;
|
|
1456
|
+
} while ((a += n) !== t);
|
|
1457
|
+
i && (i.node.tabIndex = 0);
|
|
1458
|
+
}
|
|
1459
|
+
var hn = function(e) {
|
|
1460
|
+
return e ? !!cn : cn === "meanwhile";
|
|
1461
|
+
}, gn = function e(t, n, r) {
|
|
1462
|
+
return n && (n.host === t && (!n.activeElement || r.contains(n.activeElement)) || n.parentNode && e(t, n.parentNode, r));
|
|
1463
|
+
}, _n = function(e, t) {
|
|
1464
|
+
return t.some(function(t) {
|
|
1465
|
+
return gn(e, t, t);
|
|
1466
|
+
});
|
|
1467
|
+
}, vn = function(e) {
|
|
1468
|
+
return mt(e, /* @__PURE__ */ new Map());
|
|
1469
|
+
}, yn = function(e) {
|
|
1470
|
+
return !vn([e.parentNode]).some(function(t) {
|
|
1471
|
+
return t.node === e;
|
|
1472
|
+
});
|
|
1473
|
+
}, bn = function() {
|
|
1474
|
+
var e = !1;
|
|
1475
|
+
if (J) {
|
|
1476
|
+
var t = J, n = t.observed, r = t.persistentFocus, i = t.autoFocus, a = t.shards, o = t.crossFrame, s = t.focusOptions, c = t.noFocusGuards, l = n || X && X.portaledElement;
|
|
1477
|
+
if (an() && Y && Y !== document.body && (!document.body.contains(Y) || yn(Y))) {
|
|
1478
|
+
var u = sn();
|
|
1479
|
+
u && u.focus();
|
|
1480
|
+
}
|
|
1481
|
+
var d = document && document.activeElement;
|
|
1482
|
+
if (l) {
|
|
1483
|
+
var f = [l].concat(a.map(Ee).filter(Boolean));
|
|
1484
|
+
if ((!d || dn(d)) && (r || function() {
|
|
1485
|
+
if (!hn(o) || !c || !Y || ln) return !1;
|
|
1486
|
+
var e = vn(f), t = e.findIndex(function(e) {
|
|
1487
|
+
return e.node === Y;
|
|
1488
|
+
});
|
|
1489
|
+
return t === 0 || t === e.length - 1;
|
|
1490
|
+
}() || !on() || !Y && i) && (l && !(Ct(f) || d && _n(d, f) || pn(d, l)) && (document && !Y && d && !i ? (d.blur && d.blur(), document.body.focus()) : (e = Wt(f, Y, { focusOptions: s }), X = {})), Y = document && document.activeElement, Y !== document.body && (sn = Jt(Y)), cn = !1), document && d !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
|
|
1491
|
+
var p = document && document.activeElement, m = Bt(f), h = m.map(function(e) {
|
|
1492
|
+
return e.node;
|
|
1493
|
+
}).indexOf(p);
|
|
1494
|
+
h > -1 && (m.filter(function(e) {
|
|
1495
|
+
var t = e.guard, n = e.node;
|
|
1496
|
+
return t && n.dataset.focusAutoGuard;
|
|
1497
|
+
}).forEach(function(e) {
|
|
1498
|
+
return e.node.removeAttribute("tabIndex");
|
|
1499
|
+
}), mn(h, m.length, 1, m), mn(h, -1, -1, m));
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
return e;
|
|
1504
|
+
}, xn = function(e) {
|
|
1505
|
+
bn() && e && (e.stopPropagation(), e.preventDefault());
|
|
1506
|
+
}, Sn = function() {
|
|
1507
|
+
return Te(bn);
|
|
1508
|
+
}, Cn = function(e) {
|
|
1509
|
+
var t = e.target, n = e.currentTarget;
|
|
1510
|
+
n.contains(t) || fn(n, t);
|
|
1511
|
+
}, wn = function() {
|
|
1512
|
+
return null;
|
|
1513
|
+
}, Tn = function(e) {
|
|
1514
|
+
var t = e.children;
|
|
1515
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
1516
|
+
onBlur: Sn,
|
|
1517
|
+
onFocus: Cn
|
|
1518
|
+
}, t);
|
|
1519
|
+
};
|
|
1520
|
+
Tn.propTypes = process.env.NODE_ENV === "production" ? {} : { children: U.default.node.isRequired };
|
|
1521
|
+
var En = function() {
|
|
1522
|
+
ln = !0;
|
|
1523
|
+
}, Dn = function() {
|
|
1524
|
+
ln = !1, cn = "just", Te(function() {
|
|
1525
|
+
cn = "meanwhile";
|
|
1526
|
+
});
|
|
1527
|
+
}, On = function() {
|
|
1528
|
+
document.addEventListener("focusin", xn), document.addEventListener("focusout", Sn), window.addEventListener("focus", En), window.addEventListener("blur", Dn);
|
|
1529
|
+
}, kn = function() {
|
|
1530
|
+
document.removeEventListener("focusin", xn), document.removeEventListener("focusout", Sn), window.removeEventListener("focus", En), window.removeEventListener("blur", Dn);
|
|
1531
|
+
};
|
|
1532
|
+
function An(e) {
|
|
1533
|
+
return e.filter(function(e) {
|
|
1534
|
+
return !e.disabled;
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
var jn = {
|
|
1538
|
+
moveFocusInside: Wt,
|
|
1539
|
+
focusInside: Ct,
|
|
1540
|
+
focusNextElement: $t,
|
|
1541
|
+
focusPrevElement: en,
|
|
1542
|
+
focusFirstElement: nn,
|
|
1543
|
+
focusLastElement: rn,
|
|
1544
|
+
captureFocusRestore: Jt
|
|
1545
|
+
};
|
|
1546
|
+
function Mn(e) {
|
|
1547
|
+
var t = e.slice(-1)[0];
|
|
1548
|
+
t && !J && On();
|
|
1549
|
+
var n = J, r = n && t && t.id === n.id;
|
|
1550
|
+
J = t, n && !r && (n.onDeactivation(), e.filter(function(e) {
|
|
1551
|
+
return e.id === n.id;
|
|
1552
|
+
}).length || n.returnFocus(!t)), t ? (Y = null, (!r || n.observed !== t.observed) && t.onActivation(jn), bn(!0), Te(bn)) : (kn(), Y = null);
|
|
1553
|
+
}
|
|
1554
|
+
ve.assignSyncMedium(Cn), ye.assignMedium(Sn), be.assignMedium(function(e) {
|
|
1555
|
+
return e(jn);
|
|
1556
|
+
}), te(xe, Re(An, Mn)(wn));
|
|
1557
|
+
//#endregion
|
|
1558
|
+
//#region ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
1559
|
+
var Nn, Pn = function() {
|
|
1560
|
+
if (Nn) return Nn;
|
|
1561
|
+
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
1562
|
+
};
|
|
1563
|
+
//#endregion
|
|
1564
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.13_react@19.2.4/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
1565
|
+
function Fn() {
|
|
1566
|
+
if (!document) return null;
|
|
1567
|
+
var e = document.createElement("style");
|
|
1568
|
+
e.type = "text/css";
|
|
1569
|
+
var t = Pn();
|
|
1570
|
+
return t && e.setAttribute("nonce", t), e;
|
|
1571
|
+
}
|
|
1572
|
+
function In(e, t) {
|
|
1573
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
1574
|
+
}
|
|
1575
|
+
function Ln(e) {
|
|
1576
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
1577
|
+
}
|
|
1578
|
+
var Rn = function() {
|
|
1579
|
+
var e = 0, t = null;
|
|
1580
|
+
return {
|
|
1581
|
+
add: function(n) {
|
|
1582
|
+
e == 0 && (t = Fn()) && (In(t, n), Ln(t)), e++;
|
|
1583
|
+
},
|
|
1584
|
+
remove: function() {
|
|
1585
|
+
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
}, zn = function() {
|
|
1589
|
+
var e = Rn();
|
|
1590
|
+
return function(t, n) {
|
|
1591
|
+
s.useEffect(function() {
|
|
1592
|
+
return e.add(t), function() {
|
|
1593
|
+
e.remove();
|
|
1594
|
+
};
|
|
1595
|
+
}, [t && n]);
|
|
1596
|
+
};
|
|
1597
|
+
}, Bn = function() {
|
|
1598
|
+
var e = zn();
|
|
1599
|
+
return function(t) {
|
|
1600
|
+
var n = t.styles, r = t.dynamic;
|
|
1601
|
+
return e(n, r), null;
|
|
1602
|
+
};
|
|
1603
|
+
}, Vn = {
|
|
1604
|
+
left: 0,
|
|
1605
|
+
top: 0,
|
|
1606
|
+
right: 0,
|
|
1607
|
+
gap: 0
|
|
1608
|
+
}, Hn = function(e) {
|
|
1609
|
+
return parseInt(e || "", 10) || 0;
|
|
1610
|
+
}, Un = function(e) {
|
|
1611
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1612
|
+
return [
|
|
1613
|
+
Hn(n),
|
|
1614
|
+
Hn(r),
|
|
1615
|
+
Hn(i)
|
|
1616
|
+
];
|
|
1617
|
+
}, Wn = function(e) {
|
|
1618
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Vn;
|
|
1619
|
+
var t = Un(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
1620
|
+
return {
|
|
1621
|
+
left: t[0],
|
|
1622
|
+
top: t[1],
|
|
1623
|
+
right: t[2],
|
|
1624
|
+
gap: Math.max(0, r - n + t[2] - t[0])
|
|
1625
|
+
};
|
|
1626
|
+
}, Gn = Bn(), Kn = "data-scroll-locked", qn = function(e, t, n, r) {
|
|
1627
|
+
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
1628
|
+
return n === void 0 && (n = "margin"), `
|
|
1629
|
+
.${D} {
|
|
1630
|
+
overflow: hidden ${r};
|
|
1631
|
+
padding-right: ${s}px ${r};
|
|
1632
|
+
}
|
|
1633
|
+
body[${Kn}] {
|
|
1634
|
+
overflow: hidden ${r};
|
|
1635
|
+
overscroll-behavior: contain;
|
|
1636
|
+
${[
|
|
1637
|
+
t && `position: relative ${r};`,
|
|
1638
|
+
n === "margin" && `
|
|
1639
|
+
padding-left: ${i}px;
|
|
1640
|
+
padding-top: ${a}px;
|
|
1641
|
+
padding-right: ${o}px;
|
|
1642
|
+
margin-left:0;
|
|
1643
|
+
margin-top:0;
|
|
1644
|
+
margin-right: ${s}px ${r};
|
|
1645
|
+
`,
|
|
1646
|
+
n === "padding" && `padding-right: ${s}px ${r};`
|
|
1647
|
+
].filter(Boolean).join("")}
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
.${T} {
|
|
1651
|
+
right: ${s}px ${r};
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.${E} {
|
|
1655
|
+
margin-right: ${s}px ${r};
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
.${T} .${T} {
|
|
1659
|
+
right: 0 ${r};
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
.${E} .${E} {
|
|
1663
|
+
margin-right: 0 ${r};
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
body[${Kn}] {
|
|
1667
|
+
${O}: ${s}px;
|
|
1668
|
+
}
|
|
1669
|
+
`;
|
|
1670
|
+
}, Jn = function() {
|
|
1671
|
+
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
1672
|
+
return isFinite(e) ? e : 0;
|
|
1673
|
+
}, Yn = function() {
|
|
1674
|
+
s.useEffect(function() {
|
|
1675
|
+
return document.body.setAttribute(Kn, (Jn() + 1).toString()), function() {
|
|
1676
|
+
var e = Jn() - 1;
|
|
1677
|
+
e <= 0 ? document.body.removeAttribute(Kn) : document.body.setAttribute(Kn, e.toString());
|
|
1678
|
+
};
|
|
1679
|
+
}, []);
|
|
1680
|
+
}, Xn = function(e) {
|
|
1681
|
+
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
1682
|
+
Yn();
|
|
1683
|
+
var a = s.useMemo(function() {
|
|
1684
|
+
return Wn(i);
|
|
1685
|
+
}, [i]);
|
|
1686
|
+
return s.createElement(Gn, { styles: qn(a, !t, i, n ? "" : "!important") });
|
|
1687
|
+
}, Zn = !1;
|
|
1688
|
+
if (typeof window < "u") try {
|
|
1689
|
+
var Qn = Object.defineProperty({}, "passive", { get: function() {
|
|
1690
|
+
return Zn = !0, !0;
|
|
1691
|
+
} });
|
|
1692
|
+
window.addEventListener("test", Qn, Qn), window.removeEventListener("test", Qn, Qn);
|
|
1693
|
+
} catch {
|
|
1694
|
+
Zn = !1;
|
|
1695
|
+
}
|
|
1696
|
+
var Z = Zn ? { passive: !1 } : !1, $n = function(e) {
|
|
1697
|
+
return e.tagName === "TEXTAREA";
|
|
1698
|
+
}, er = function(e, t) {
|
|
1699
|
+
if (!(e instanceof Element)) return !1;
|
|
1700
|
+
var n = window.getComputedStyle(e);
|
|
1701
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !$n(e) && n[t] === "visible");
|
|
1702
|
+
}, tr = function(e) {
|
|
1703
|
+
return er(e, "overflowY");
|
|
1704
|
+
}, nr = function(e) {
|
|
1705
|
+
return er(e, "overflowX");
|
|
1706
|
+
}, rr = function(e, t) {
|
|
1707
|
+
var n = t.ownerDocument, r = t;
|
|
1708
|
+
do {
|
|
1709
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), or(e, r)) {
|
|
1710
|
+
var i = sr(e, r);
|
|
1711
|
+
if (i[1] > i[2]) return !0;
|
|
1712
|
+
}
|
|
1713
|
+
r = r.parentNode;
|
|
1714
|
+
} while (r && r !== n.body);
|
|
1715
|
+
return !1;
|
|
1716
|
+
}, ir = function(e) {
|
|
1717
|
+
return [
|
|
1718
|
+
e.scrollTop,
|
|
1719
|
+
e.scrollHeight,
|
|
1720
|
+
e.clientHeight
|
|
1721
|
+
];
|
|
1722
|
+
}, ar = function(e) {
|
|
1723
|
+
return [
|
|
1724
|
+
e.scrollLeft,
|
|
1725
|
+
e.scrollWidth,
|
|
1726
|
+
e.clientWidth
|
|
1727
|
+
];
|
|
1728
|
+
}, or = function(e, t) {
|
|
1729
|
+
return e === "v" ? tr(t) : nr(t);
|
|
1730
|
+
}, sr = function(e, t) {
|
|
1731
|
+
return e === "v" ? ir(t) : ar(t);
|
|
1732
|
+
}, cr = function(e, t) {
|
|
1733
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1734
|
+
}, lr = function(e, t, n, r, i) {
|
|
1735
|
+
var a = cr(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
1736
|
+
do {
|
|
1737
|
+
if (!s) break;
|
|
1738
|
+
var p = sr(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
1739
|
+
(m || h) && or(e, s) && (d += h, f += m);
|
|
1740
|
+
var g = s.parentNode;
|
|
1741
|
+
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
1742
|
+
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
1743
|
+
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
1744
|
+
}, ur = function(e) {
|
|
1745
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1746
|
+
}, dr = function(e) {
|
|
1747
|
+
return [e.deltaX, e.deltaY];
|
|
1748
|
+
}, fr = function(e) {
|
|
1749
|
+
return e && "current" in e ? e.current : e;
|
|
1750
|
+
}, pr = function(e, t) {
|
|
1751
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
1752
|
+
}, mr = function(e) {
|
|
1753
|
+
return `
|
|
1754
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
1755
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
1756
|
+
`;
|
|
1757
|
+
}, hr = 0, Q = [];
|
|
1758
|
+
function gr(e) {
|
|
1759
|
+
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), i = s.useState(hr++)[0], a = s.useState(Bn)[0], o = s.useRef(e);
|
|
1760
|
+
s.useEffect(function() {
|
|
1761
|
+
o.current = e;
|
|
1762
|
+
}, [e]), s.useEffect(function() {
|
|
1763
|
+
if (e.inert) {
|
|
1764
|
+
document.body.classList.add(`block-interactivity-${i}`);
|
|
1765
|
+
var t = w([e.lockRef.current], (e.shards || []).map(fr), !0).filter(Boolean);
|
|
1766
|
+
return t.forEach(function(e) {
|
|
1767
|
+
return e.classList.add(`allow-interactivity-${i}`);
|
|
1768
|
+
}), function() {
|
|
1769
|
+
document.body.classList.remove(`block-interactivity-${i}`), t.forEach(function(e) {
|
|
1770
|
+
return e.classList.remove(`allow-interactivity-${i}`);
|
|
1771
|
+
});
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
}, [
|
|
1775
|
+
e.inert,
|
|
1776
|
+
e.lockRef.current,
|
|
1777
|
+
e.shards
|
|
1778
|
+
]);
|
|
1779
|
+
var c = s.useCallback(function(e, t) {
|
|
1780
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
1781
|
+
var i = ur(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
|
|
1782
|
+
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
1783
|
+
var f = window.getSelection(), p = f && f.anchorNode;
|
|
1784
|
+
if (p && (p === u || p.contains(u))) return !1;
|
|
1785
|
+
var m = rr(d, u);
|
|
1786
|
+
if (!m) return !0;
|
|
1787
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = rr(d, u)), !m) return !1;
|
|
1788
|
+
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
1789
|
+
var h = r.current || l;
|
|
1790
|
+
return lr(h, t, e, h === "h" ? s : c, !0);
|
|
1791
|
+
}, []), l = s.useCallback(function(e) {
|
|
1792
|
+
var n = e;
|
|
1793
|
+
if (!(!Q.length || Q[Q.length - 1] !== a)) {
|
|
1794
|
+
var r = "deltaY" in n ? dr(n) : ur(n), i = t.current.filter(function(e) {
|
|
1795
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && pr(e.delta, r);
|
|
1796
|
+
})[0];
|
|
1797
|
+
if (i && i.should) {
|
|
1798
|
+
n.cancelable && n.preventDefault();
|
|
1799
|
+
return;
|
|
1800
|
+
}
|
|
1801
|
+
if (!i) {
|
|
1802
|
+
var s = (o.current.shards || []).map(fr).filter(Boolean).filter(function(e) {
|
|
1803
|
+
return e.contains(n.target);
|
|
1804
|
+
});
|
|
1805
|
+
(s.length > 0 ? c(n, s[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
}, []), u = s.useCallback(function(e, n, r, i) {
|
|
1809
|
+
var a = {
|
|
1810
|
+
name: e,
|
|
1811
|
+
delta: n,
|
|
1812
|
+
target: r,
|
|
1813
|
+
should: i,
|
|
1814
|
+
shadowParent: _r(r)
|
|
1815
|
+
};
|
|
1816
|
+
t.current.push(a), setTimeout(function() {
|
|
1817
|
+
t.current = t.current.filter(function(e) {
|
|
1818
|
+
return e !== a;
|
|
1819
|
+
});
|
|
1820
|
+
}, 1);
|
|
1821
|
+
}, []), d = s.useCallback(function(e) {
|
|
1822
|
+
n.current = ur(e), r.current = void 0;
|
|
1823
|
+
}, []), f = s.useCallback(function(t) {
|
|
1824
|
+
u(t.type, dr(t), t.target, c(t, e.lockRef.current));
|
|
1825
|
+
}, []), p = s.useCallback(function(t) {
|
|
1826
|
+
u(t.type, ur(t), t.target, c(t, e.lockRef.current));
|
|
1827
|
+
}, []);
|
|
1828
|
+
s.useEffect(function() {
|
|
1829
|
+
return Q.push(a), e.setCallbacks({
|
|
1830
|
+
onScrollCapture: f,
|
|
1831
|
+
onWheelCapture: f,
|
|
1832
|
+
onTouchMoveCapture: p
|
|
1833
|
+
}), document.addEventListener("wheel", l, Z), document.addEventListener("touchmove", l, Z), document.addEventListener("touchstart", d, Z), function() {
|
|
1834
|
+
Q = Q.filter(function(e) {
|
|
1835
|
+
return e !== a;
|
|
1836
|
+
}), document.removeEventListener("wheel", l, Z), document.removeEventListener("touchmove", l, Z), document.removeEventListener("touchstart", d, Z);
|
|
1837
|
+
};
|
|
1838
|
+
}, []);
|
|
1839
|
+
var m = e.removeScrollBar, h = e.inert;
|
|
1840
|
+
return s.createElement(s.Fragment, null, h ? s.createElement(a, { styles: mr(i) }) : null, m ? s.createElement(Xn, {
|
|
1841
|
+
noRelative: e.noRelative,
|
|
1842
|
+
gapMode: e.gapMode
|
|
1843
|
+
}) : null);
|
|
1844
|
+
}
|
|
1845
|
+
function _r(e) {
|
|
1846
|
+
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1847
|
+
return t;
|
|
1848
|
+
}
|
|
1849
|
+
te(ne, gr);
|
|
1850
|
+
//#endregion
|
|
1851
|
+
//#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
1852
|
+
var vr = function(e) {
|
|
1853
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
1854
|
+
}, $ = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = {}, xr = 0, Sr = function(e) {
|
|
1855
|
+
return e && (e.host || Sr(e.parentNode));
|
|
1856
|
+
}, Cr = function(e, t) {
|
|
1857
|
+
return t.map(function(t) {
|
|
1858
|
+
if (e.contains(t)) return t;
|
|
1859
|
+
var n = Sr(t);
|
|
1860
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
1861
|
+
}).filter(function(e) {
|
|
1862
|
+
return !!e;
|
|
1863
|
+
});
|
|
1864
|
+
}, wr = function(e, t, n, r) {
|
|
1865
|
+
var i = Cr(t, Array.isArray(e) ? e : [e]);
|
|
1866
|
+
br[n] || (br[n] = /* @__PURE__ */ new WeakMap());
|
|
1867
|
+
var a = br[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
1868
|
+
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
1869
|
+
};
|
|
1870
|
+
i.forEach(l);
|
|
1871
|
+
var u = function(e) {
|
|
1872
|
+
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
1873
|
+
if (s.has(e)) u(e);
|
|
1874
|
+
else try {
|
|
1875
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = ($.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
1876
|
+
$.set(e, c), a.set(e, l), o.push(e), c === 1 && i && yr.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
1877
|
+
} catch (t) {
|
|
1878
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
1879
|
+
}
|
|
1880
|
+
});
|
|
1881
|
+
};
|
|
1882
|
+
return u(t), s.clear(), xr++, function() {
|
|
1883
|
+
o.forEach(function(e) {
|
|
1884
|
+
var t = $.get(e) - 1, i = a.get(e) - 1;
|
|
1885
|
+
$.set(e, t), a.set(e, i), t || (yr.has(e) || e.removeAttribute(r), yr.delete(e)), i || e.removeAttribute(n);
|
|
1886
|
+
}), xr--, xr || ($ = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = {});
|
|
1887
|
+
};
|
|
1888
|
+
}, Tr = function(e, t, n) {
|
|
1889
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
1890
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || vr(e);
|
|
1891
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), wr(r, i, n, "aria-hidden")) : function() {
|
|
1892
|
+
return null;
|
|
1893
|
+
};
|
|
1894
|
+
}, Er = Bn(), Dr = "\n [" + ke + "] {\n pointer-events: none !important;\n }\n", Or = function() {
|
|
1895
|
+
return s.createElement(Er, { styles: Dr });
|
|
1896
|
+
}, kr = function(e) {
|
|
1897
|
+
return "current" in e ? e.current : e;
|
|
1898
|
+
};
|
|
1899
|
+
function Ar(e) {
|
|
1900
|
+
var t = e.setLockProps, n = e.onEscapeKey, r = e.onClickOutside, i = e.shards, a = e.onActivation, o = e.onDeactivation, c = e.noIsolation, l = e.activeNode, u = _(null), d = _(0);
|
|
1901
|
+
return s.useEffect(function() {
|
|
1902
|
+
var e = function(e) {
|
|
1903
|
+
e.defaultPrevented || (e.code === "Escape" || e.key === "Escape" || e.keyCode === 27) && n && n(e);
|
|
1904
|
+
}, t = function(e) {
|
|
1905
|
+
e.defaultPrevented || e.target === u.current || e instanceof MouseEvent && e.button !== 0 || i && i.map(kr).some(function(t) {
|
|
1906
|
+
return t && t.contains(e.target) || t === e.target;
|
|
1907
|
+
}) || r && r(e);
|
|
1908
|
+
}, a = function(e) {
|
|
1909
|
+
t(e), d.current = e.touches.length;
|
|
1910
|
+
}, o = function(e) {
|
|
1911
|
+
d.current = e.touches.length;
|
|
1912
|
+
};
|
|
1913
|
+
if (l) return l.ownerDocument.addEventListener("keydown", e), l.ownerDocument.addEventListener("mousedown", t), l.ownerDocument.addEventListener("touchstart", a), l.ownerDocument.addEventListener("touchend", o), function() {
|
|
1914
|
+
l.ownerDocument.removeEventListener("keydown", e), l.ownerDocument.removeEventListener("mousedown", t), l.ownerDocument.removeEventListener("touchstart", a), l.ownerDocument.removeEventListener("touchend", o);
|
|
1915
|
+
};
|
|
1916
|
+
}, [
|
|
1917
|
+
l,
|
|
1918
|
+
r,
|
|
1919
|
+
n
|
|
1920
|
+
]), m(function() {
|
|
1921
|
+
if (l) return a && a(l), function() {
|
|
1922
|
+
o && o();
|
|
1923
|
+
};
|
|
1924
|
+
}, [!!l]), m(function() {
|
|
1925
|
+
if (!(c || !l)) return Tr(C([l], (i || []).map(kr)), l.ownerDocument.body, ke);
|
|
1926
|
+
}, [l, c]), m(function() {
|
|
1927
|
+
return t({
|
|
1928
|
+
onMouseDown: function(e) {
|
|
1929
|
+
u.current = e.target;
|
|
1930
|
+
},
|
|
1931
|
+
onTouchStart: function(e) {
|
|
1932
|
+
u.current = e.target;
|
|
1933
|
+
}
|
|
1934
|
+
}), function() {
|
|
1935
|
+
t(!1);
|
|
1936
|
+
};
|
|
1937
|
+
}, []), s.createElement(Or, null);
|
|
1938
|
+
}
|
|
1939
|
+
//#endregion
|
|
1940
|
+
//#region ../../node_modules/.pnpm/react-focus-on@3.10.2_@types+react@19.2.13_react@19.2.4/node_modules/react-focus-on/dist/es2015/sidecar.js
|
|
1941
|
+
var jr = te(Oe, Ar), Mr = function(e) {
|
|
1942
|
+
return s.createElement(jr, x({}, e));
|
|
1943
|
+
}, Nr = s.forwardRef(function(e, t) {
|
|
1944
|
+
return s.createElement(je, x({}, e, {
|
|
1945
|
+
ref: t,
|
|
1946
|
+
sideCar: Mr
|
|
1947
|
+
}));
|
|
1948
|
+
}), Pr = {
|
|
1949
|
+
scale: {
|
|
1950
|
+
from: "scale-[0.167] opacity-0",
|
|
1951
|
+
to: "scale-100 opacity-100"
|
|
1952
|
+
},
|
|
1953
|
+
slide: {
|
|
1954
|
+
from: "translate-x-full rtl:-translate-x-full opacity-0",
|
|
1955
|
+
to: "translate-x-0 opacity-100"
|
|
1956
|
+
}
|
|
1957
|
+
}, Fr = 600, Ir = (e) => {
|
|
1958
|
+
if (!e?.current) return;
|
|
1959
|
+
let { x: t, y: n, width: r, height: i } = e.current.getBoundingClientRect();
|
|
1960
|
+
return `${t + r / 2}px ${n + i / 2}px`;
|
|
1961
|
+
}, Lr = ({ animation: e = "slide", children: t, className: s, hasFocusTrap: c = !0, hasPinchZoom: l = !0, heading: u, hLevel: d = 1, isOpen: f = !1, leftButton: p, onClose: g, origin: x, pinToVisualViewport: S = !1, rightButton: C, style: w, target: T = "portal", ...E }) => {
|
|
1962
|
+
let D = h(), O = a(), [k, A] = v(), j = _(0), [{ isMounted: M, status: N }, P] = i({
|
|
1963
|
+
timeout: Fr,
|
|
1964
|
+
mountOnEnter: !0,
|
|
1965
|
+
unmountOnExit: !0,
|
|
1966
|
+
preEnter: !0
|
|
1967
|
+
});
|
|
1968
|
+
m(() => {
|
|
1969
|
+
f && e === "scale" && A(Ir(x)), P(f);
|
|
1970
|
+
}, [
|
|
1971
|
+
e,
|
|
1972
|
+
f,
|
|
1973
|
+
x,
|
|
1974
|
+
P
|
|
1975
|
+
]), m(() => {
|
|
1976
|
+
f && (j.current = window.scrollY || document.documentElement.scrollTop), !f && j.current > 0 && requestAnimationFrame(() => {
|
|
1977
|
+
window.scrollTo(0, j.current);
|
|
1978
|
+
});
|
|
1979
|
+
}, [f]);
|
|
1980
|
+
let F = N === "preEnter" || N === "exiting" || N === "exited", I = N === "preEnter" || N === "entering" || N === "exiting";
|
|
1981
|
+
return /* @__PURE__ */ y(r, {
|
|
1982
|
+
target: T,
|
|
1983
|
+
children: M && /* @__PURE__ */ y(Nr, {
|
|
1984
|
+
allowPinchZoom: l,
|
|
1985
|
+
enabled: c && f,
|
|
1986
|
+
onClickOutside: g,
|
|
1987
|
+
onEscapeKey: g,
|
|
1988
|
+
scrollLock: !0,
|
|
1989
|
+
children: /* @__PURE__ */ b("div", {
|
|
1990
|
+
...E,
|
|
1991
|
+
"aria-labelledby": D,
|
|
1992
|
+
"aria-modal": "true",
|
|
1993
|
+
className: n("fixed inset-0 z-50 flex max-h-screen max-w-screen flex-col bg-white transition-[translate,scale,opacity] duration-600", "origin-(--layer-origin,center)", s, {
|
|
1994
|
+
"will-change-[translate,scale,opacity]": I,
|
|
1995
|
+
[Pr[e].from]: F,
|
|
1996
|
+
[Pr[e].to]: !F
|
|
1997
|
+
}),
|
|
1998
|
+
ref: S ? O : void 0,
|
|
1999
|
+
style: k ? {
|
|
2000
|
+
...w,
|
|
2001
|
+
"--layer-origin": k
|
|
2002
|
+
} : w,
|
|
2003
|
+
role: "dialog",
|
|
2004
|
+
inert: f ? void 0 : !0,
|
|
2005
|
+
children: [/* @__PURE__ */ y(o, {
|
|
2006
|
+
hLevel: d,
|
|
2007
|
+
id: D,
|
|
2008
|
+
leftButton: p,
|
|
2009
|
+
rightButton: C,
|
|
2010
|
+
children: u
|
|
2011
|
+
}), /* @__PURE__ */ y("div", {
|
|
2012
|
+
className: "relative flex-1 overflow-y-auto overscroll-contain",
|
|
2013
|
+
children: t
|
|
2014
|
+
})]
|
|
2015
|
+
})
|
|
2016
|
+
})
|
|
2017
|
+
});
|
|
2018
|
+
};
|
|
2019
|
+
//#endregion
|
|
2020
|
+
export { Lr as t };
|
|
2021
|
+
|
|
2022
|
+
//# sourceMappingURL=Layer.js.map
|