@react-hive/honey-layout 9.2.1 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +879 -881
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -162,232 +162,230 @@ var yt = {};
|
|
|
162
162
|
var wr;
|
|
163
163
|
function Rs() {
|
|
164
164
|
return wr || (wr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
165
|
-
function e(
|
|
166
|
-
if (
|
|
167
|
-
if (typeof
|
|
168
|
-
return
|
|
169
|
-
if (typeof
|
|
170
|
-
switch (
|
|
171
|
-
case
|
|
165
|
+
function e(b) {
|
|
166
|
+
if (b == null) return null;
|
|
167
|
+
if (typeof b == "function")
|
|
168
|
+
return b.$$typeof === H ? null : b.displayName || b.name || null;
|
|
169
|
+
if (typeof b == "string") return b;
|
|
170
|
+
switch (b) {
|
|
171
|
+
case E:
|
|
172
172
|
return "Fragment";
|
|
173
|
-
case
|
|
173
|
+
case R:
|
|
174
174
|
return "Profiler";
|
|
175
|
-
case
|
|
175
|
+
case T:
|
|
176
176
|
return "StrictMode";
|
|
177
|
-
case k:
|
|
178
|
-
return "Suspense";
|
|
179
177
|
case C:
|
|
180
|
-
return "
|
|
178
|
+
return "Suspense";
|
|
181
179
|
case P:
|
|
180
|
+
return "SuspenseList";
|
|
181
|
+
case D:
|
|
182
182
|
return "Activity";
|
|
183
183
|
}
|
|
184
|
-
if (typeof
|
|
185
|
-
switch (typeof
|
|
184
|
+
if (typeof b == "object")
|
|
185
|
+
switch (typeof b.tag == "number" && console.error(
|
|
186
186
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
187
|
-
),
|
|
188
|
-
case
|
|
187
|
+
), b.$$typeof) {
|
|
188
|
+
case h:
|
|
189
189
|
return "Portal";
|
|
190
|
-
case
|
|
191
|
-
return
|
|
192
|
-
case
|
|
193
|
-
return (
|
|
194
|
-
case D:
|
|
195
|
-
var $ = y.render;
|
|
196
|
-
return y = y.displayName, y || (y = $.displayName || $.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
|
|
197
|
-
case A:
|
|
198
|
-
return $ = y.displayName || null, $ !== null ? $ : e(y.type) || "Memo";
|
|
190
|
+
case I:
|
|
191
|
+
return b.displayName || "Context";
|
|
192
|
+
case _:
|
|
193
|
+
return (b._context.displayName || "Context") + ".Consumer";
|
|
199
194
|
case N:
|
|
200
|
-
|
|
195
|
+
var L = b.render;
|
|
196
|
+
return b = b.displayName, b || (b = L.displayName || L.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
|
|
197
|
+
case j:
|
|
198
|
+
return L = b.displayName || null, L !== null ? L : e(b.type) || "Memo";
|
|
199
|
+
case A:
|
|
200
|
+
L = b._payload, b = b._init;
|
|
201
201
|
try {
|
|
202
|
-
return e(
|
|
202
|
+
return e(b(L));
|
|
203
203
|
} catch {
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
return null;
|
|
207
207
|
}
|
|
208
|
-
function t(
|
|
209
|
-
return "" +
|
|
208
|
+
function t(b) {
|
|
209
|
+
return "" + b;
|
|
210
210
|
}
|
|
211
|
-
function n(
|
|
211
|
+
function n(b) {
|
|
212
212
|
try {
|
|
213
|
-
t(
|
|
214
|
-
var
|
|
213
|
+
t(b);
|
|
214
|
+
var L = !1;
|
|
215
215
|
} catch {
|
|
216
|
-
|
|
216
|
+
L = !0;
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
var
|
|
221
|
-
return
|
|
222
|
-
|
|
218
|
+
if (L) {
|
|
219
|
+
L = console;
|
|
220
|
+
var O = L.error, X = typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object";
|
|
221
|
+
return O.call(
|
|
222
|
+
L,
|
|
223
223
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
224
|
-
|
|
225
|
-
), t(
|
|
224
|
+
X
|
|
225
|
+
), t(b);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function r(
|
|
229
|
-
if (
|
|
230
|
-
if (typeof
|
|
228
|
+
function r(b) {
|
|
229
|
+
if (b === E) return "<>";
|
|
230
|
+
if (typeof b == "object" && b !== null && b.$$typeof === A)
|
|
231
231
|
return "<...>";
|
|
232
232
|
try {
|
|
233
|
-
var
|
|
234
|
-
return
|
|
233
|
+
var L = e(b);
|
|
234
|
+
return L ? "<" + L + ">" : "<...>";
|
|
235
235
|
} catch {
|
|
236
236
|
return "<...>";
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
function o() {
|
|
240
|
-
var
|
|
241
|
-
return
|
|
240
|
+
var b = U.A;
|
|
241
|
+
return b === null ? null : b.getOwner();
|
|
242
242
|
}
|
|
243
243
|
function i() {
|
|
244
244
|
return Error("react-stack-top-frame");
|
|
245
245
|
}
|
|
246
|
-
function s(
|
|
247
|
-
if (
|
|
248
|
-
var
|
|
249
|
-
if (
|
|
246
|
+
function s(b) {
|
|
247
|
+
if ($.call(b, "key")) {
|
|
248
|
+
var L = Object.getOwnPropertyDescriptor(b, "key").get;
|
|
249
|
+
if (L && L.isReactWarning) return !1;
|
|
250
250
|
}
|
|
251
|
-
return
|
|
251
|
+
return b.key !== void 0;
|
|
252
252
|
}
|
|
253
|
-
function u(
|
|
254
|
-
function
|
|
255
|
-
|
|
253
|
+
function u(b, L) {
|
|
254
|
+
function O() {
|
|
255
|
+
Y || (Y = !0, console.error(
|
|
256
256
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
257
|
-
|
|
257
|
+
L
|
|
258
258
|
));
|
|
259
259
|
}
|
|
260
|
-
|
|
261
|
-
get:
|
|
260
|
+
O.isReactWarning = !0, Object.defineProperty(b, "key", {
|
|
261
|
+
get: O,
|
|
262
262
|
configurable: !0
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
function l() {
|
|
266
|
-
var
|
|
267
|
-
return
|
|
266
|
+
var b = e(this.type);
|
|
267
|
+
return k[b] || (k[b] = !0, console.error(
|
|
268
268
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
269
|
-
)),
|
|
270
|
-
}
|
|
271
|
-
function c(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
269
|
+
)), b = this.props.ref, b !== void 0 ? b : null;
|
|
270
|
+
}
|
|
271
|
+
function c(b, L, O, X, K, Z) {
|
|
272
|
+
var G = O.ref;
|
|
273
|
+
return b = {
|
|
274
|
+
$$typeof: v,
|
|
275
|
+
type: b,
|
|
276
|
+
key: L,
|
|
277
|
+
props: O,
|
|
278
|
+
_owner: X
|
|
279
|
+
}, (G !== void 0 ? G : null) !== null ? Object.defineProperty(b, "ref", {
|
|
279
280
|
enumerable: !1,
|
|
280
281
|
get: l
|
|
281
|
-
}) : Object.defineProperty(
|
|
282
|
+
}) : Object.defineProperty(b, "ref", { enumerable: !1, value: null }), b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
282
283
|
configurable: !1,
|
|
283
284
|
enumerable: !1,
|
|
284
285
|
writable: !0,
|
|
285
286
|
value: 0
|
|
286
|
-
}), Object.defineProperty(
|
|
287
|
+
}), Object.defineProperty(b, "_debugInfo", {
|
|
287
288
|
configurable: !1,
|
|
288
289
|
enumerable: !1,
|
|
289
290
|
writable: !0,
|
|
290
291
|
value: null
|
|
291
|
-
}), Object.defineProperty(
|
|
292
|
+
}), Object.defineProperty(b, "_debugStack", {
|
|
292
293
|
configurable: !1,
|
|
293
294
|
enumerable: !1,
|
|
294
295
|
writable: !0,
|
|
295
296
|
value: K
|
|
296
|
-
}), Object.defineProperty(
|
|
297
|
+
}), Object.defineProperty(b, "_debugTask", {
|
|
297
298
|
configurable: !1,
|
|
298
299
|
enumerable: !1,
|
|
299
300
|
writable: !0,
|
|
300
|
-
value:
|
|
301
|
-
}), Object.freeze && (Object.freeze(
|
|
302
|
-
}
|
|
303
|
-
function p(
|
|
304
|
-
var
|
|
305
|
-
if (
|
|
306
|
-
if (
|
|
307
|
-
if (
|
|
308
|
-
for (
|
|
309
|
-
f(
|
|
310
|
-
Object.freeze && Object.freeze(
|
|
301
|
+
value: Z
|
|
302
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
303
|
+
}
|
|
304
|
+
function p(b, L, O, X, K, Z) {
|
|
305
|
+
var G = L.children;
|
|
306
|
+
if (G !== void 0)
|
|
307
|
+
if (X)
|
|
308
|
+
if (y(G)) {
|
|
309
|
+
for (X = 0; X < G.length; X++)
|
|
310
|
+
f(G[X]);
|
|
311
|
+
Object.freeze && Object.freeze(G);
|
|
311
312
|
} else
|
|
312
313
|
console.error(
|
|
313
314
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
314
315
|
);
|
|
315
|
-
else f(
|
|
316
|
-
if (
|
|
317
|
-
|
|
318
|
-
var
|
|
319
|
-
return
|
|
316
|
+
else f(G);
|
|
317
|
+
if ($.call(L, "key")) {
|
|
318
|
+
G = e(b);
|
|
319
|
+
var W = Object.keys(L).filter(function(se) {
|
|
320
|
+
return se !== "key";
|
|
320
321
|
});
|
|
321
|
-
|
|
322
|
+
X = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", B[G + X] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
322
323
|
`A props object containing a "key" prop is being spread into JSX:
|
|
323
324
|
let props = %s;
|
|
324
325
|
<%s {...props} />
|
|
325
326
|
React keys must be passed directly to JSX without using spread:
|
|
326
327
|
let props = %s;
|
|
327
328
|
<%s key={someKey} {...props} />`,
|
|
328
|
-
_,
|
|
329
|
-
B,
|
|
330
329
|
X,
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
G,
|
|
331
|
+
W,
|
|
332
|
+
G
|
|
333
|
+
), B[G + X] = !0);
|
|
333
334
|
}
|
|
334
|
-
if (
|
|
335
|
-
|
|
336
|
-
for (var
|
|
337
|
-
|
|
338
|
-
} else
|
|
339
|
-
return
|
|
340
|
-
|
|
341
|
-
typeof
|
|
335
|
+
if (G = null, O !== void 0 && (n(O), G = "" + O), s(L) && (n(L.key), G = "" + L.key), "key" in L) {
|
|
336
|
+
O = {};
|
|
337
|
+
for (var J in L)
|
|
338
|
+
J !== "key" && (O[J] = L[J]);
|
|
339
|
+
} else O = L;
|
|
340
|
+
return G && u(
|
|
341
|
+
O,
|
|
342
|
+
typeof b == "function" ? b.displayName || b.name || "Unknown" : b
|
|
342
343
|
), c(
|
|
343
|
-
|
|
344
|
-
B,
|
|
344
|
+
b,
|
|
345
345
|
G,
|
|
346
|
-
|
|
346
|
+
O,
|
|
347
347
|
o(),
|
|
348
|
-
H,
|
|
349
348
|
K,
|
|
350
|
-
|
|
349
|
+
Z
|
|
351
350
|
);
|
|
352
351
|
}
|
|
353
|
-
function f(
|
|
354
|
-
typeof
|
|
352
|
+
function f(b) {
|
|
353
|
+
a(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === A && (b._payload.status === "fulfilled" ? a(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
|
|
354
|
+
}
|
|
355
|
+
function a(b) {
|
|
356
|
+
return typeof b == "object" && b !== null && b.$$typeof === v;
|
|
355
357
|
}
|
|
356
|
-
var
|
|
358
|
+
var g = jn, v = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), I = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), U = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, y = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
357
359
|
return null;
|
|
358
360
|
};
|
|
359
|
-
|
|
360
|
-
react_stack_bottom_frame: function(
|
|
361
|
-
return
|
|
361
|
+
g = {
|
|
362
|
+
react_stack_bottom_frame: function(b) {
|
|
363
|
+
return b();
|
|
362
364
|
}
|
|
363
365
|
};
|
|
364
|
-
var
|
|
365
|
-
|
|
366
|
+
var Y, k = {}, S = g.react_stack_bottom_frame.bind(
|
|
367
|
+
g,
|
|
366
368
|
i
|
|
367
|
-
)(),
|
|
368
|
-
yt.Fragment =
|
|
369
|
-
var
|
|
369
|
+
)(), F = M(r(i)), B = {};
|
|
370
|
+
yt.Fragment = E, yt.jsx = function(b, L, O) {
|
|
371
|
+
var X = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
370
372
|
return p(
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
373
|
+
b,
|
|
374
|
+
L,
|
|
375
|
+
O,
|
|
374
376
|
!1,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
G ? Error("react-stack-top-frame") : I,
|
|
378
|
-
G ? b(r(y)) : S
|
|
377
|
+
X ? Error("react-stack-top-frame") : S,
|
|
378
|
+
X ? M(r(b)) : F
|
|
379
379
|
);
|
|
380
|
-
}, yt.jsxs = function(
|
|
381
|
-
var
|
|
380
|
+
}, yt.jsxs = function(b, L, O) {
|
|
381
|
+
var X = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
382
382
|
return p(
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
383
|
+
b,
|
|
384
|
+
L,
|
|
385
|
+
O,
|
|
386
386
|
!0,
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
G ? Error("react-stack-top-frame") : I,
|
|
390
|
-
G ? b(r(y)) : S
|
|
387
|
+
X ? Error("react-stack-top-frame") : S,
|
|
388
|
+
X ? M(r(b)) : F
|
|
391
389
|
);
|
|
392
390
|
};
|
|
393
391
|
})()), yt;
|
|
@@ -544,87 +542,87 @@ function Ls() {
|
|
|
544
542
|
var e = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, u = parseInt, l = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, c = typeof self == "object" && self && self.Object === Object && self, p = l || c || Function("return this")(), f = Object.prototype, a = f.toString, g = Math.max, v = Math.min, h = function() {
|
|
545
543
|
return p.Date.now();
|
|
546
544
|
};
|
|
547
|
-
function E(C,
|
|
548
|
-
var
|
|
545
|
+
function E(C, P, j) {
|
|
546
|
+
var A, D, H, U, $, y, M = 0, Y = !1, k = !1, S = !0;
|
|
549
547
|
if (typeof C != "function")
|
|
550
548
|
throw new TypeError(e);
|
|
551
|
-
|
|
552
|
-
function
|
|
553
|
-
var
|
|
554
|
-
return
|
|
555
|
-
}
|
|
556
|
-
function y(B) {
|
|
557
|
-
return M = B, F = setTimeout(_, A), U ? j(B) : Y;
|
|
549
|
+
P = N(P) || 0, R(j) && (Y = !!j.leading, k = "maxWait" in j, H = k ? g(N(j.maxWait) || 0, P) : H, S = "trailing" in j ? !!j.trailing : S);
|
|
550
|
+
function F(W) {
|
|
551
|
+
var J = A, se = D;
|
|
552
|
+
return A = D = void 0, M = W, U = C.apply(se, J), U;
|
|
558
553
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
561
|
-
return I ? v(le, W - oe) : le;
|
|
554
|
+
function B(W) {
|
|
555
|
+
return M = W, $ = setTimeout(O, P), Y ? F(W) : U;
|
|
562
556
|
}
|
|
563
|
-
function
|
|
564
|
-
var
|
|
565
|
-
return
|
|
557
|
+
function b(W) {
|
|
558
|
+
var J = W - y, se = W - M, ge = P - J;
|
|
559
|
+
return k ? v(ge, H - se) : ge;
|
|
566
560
|
}
|
|
567
|
-
function
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
return Q(B);
|
|
571
|
-
F = setTimeout(_, $(B));
|
|
561
|
+
function L(W) {
|
|
562
|
+
var J = W - y, se = W - M;
|
|
563
|
+
return y === void 0 || J >= P || J < 0 || k && se >= H;
|
|
572
564
|
}
|
|
573
|
-
function
|
|
574
|
-
|
|
565
|
+
function O() {
|
|
566
|
+
var W = h();
|
|
567
|
+
if (L(W))
|
|
568
|
+
return X(W);
|
|
569
|
+
$ = setTimeout(O, b(W));
|
|
575
570
|
}
|
|
576
|
-
function
|
|
577
|
-
|
|
571
|
+
function X(W) {
|
|
572
|
+
return $ = void 0, S && A ? F(W) : (A = D = void 0, U);
|
|
578
573
|
}
|
|
579
574
|
function K() {
|
|
580
|
-
|
|
581
|
-
}
|
|
582
|
-
function
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
575
|
+
$ !== void 0 && clearTimeout($), M = 0, A = y = D = $ = void 0;
|
|
576
|
+
}
|
|
577
|
+
function Z() {
|
|
578
|
+
return $ === void 0 ? U : X(h());
|
|
579
|
+
}
|
|
580
|
+
function G() {
|
|
581
|
+
var W = h(), J = L(W);
|
|
582
|
+
if (A = arguments, D = this, y = W, J) {
|
|
583
|
+
if ($ === void 0)
|
|
584
|
+
return B(y);
|
|
585
|
+
if (k)
|
|
586
|
+
return $ = setTimeout(O, P), F(y);
|
|
589
587
|
}
|
|
590
|
-
return
|
|
588
|
+
return $ === void 0 && ($ = setTimeout(O, P)), U;
|
|
591
589
|
}
|
|
592
|
-
return
|
|
590
|
+
return G.cancel = K, G.flush = Z, G;
|
|
593
591
|
}
|
|
594
|
-
function T(C,
|
|
595
|
-
var
|
|
592
|
+
function T(C, P, j) {
|
|
593
|
+
var A = !0, D = !0;
|
|
596
594
|
if (typeof C != "function")
|
|
597
595
|
throw new TypeError(e);
|
|
598
|
-
return R(
|
|
599
|
-
leading:
|
|
600
|
-
maxWait:
|
|
601
|
-
trailing:
|
|
596
|
+
return R(j) && (A = "leading" in j ? !!j.leading : A, D = "trailing" in j ? !!j.trailing : D), E(C, P, {
|
|
597
|
+
leading: A,
|
|
598
|
+
maxWait: P,
|
|
599
|
+
trailing: D
|
|
602
600
|
});
|
|
603
601
|
}
|
|
604
602
|
function R(C) {
|
|
605
|
-
var
|
|
606
|
-
return !!C && (
|
|
603
|
+
var P = typeof C;
|
|
604
|
+
return !!C && (P == "object" || P == "function");
|
|
607
605
|
}
|
|
608
|
-
function
|
|
606
|
+
function _(C) {
|
|
609
607
|
return !!C && typeof C == "object";
|
|
610
608
|
}
|
|
611
|
-
function
|
|
612
|
-
return typeof C == "symbol" ||
|
|
609
|
+
function I(C) {
|
|
610
|
+
return typeof C == "symbol" || _(C) && a.call(C) == n;
|
|
613
611
|
}
|
|
614
|
-
function
|
|
612
|
+
function N(C) {
|
|
615
613
|
if (typeof C == "number")
|
|
616
614
|
return C;
|
|
617
|
-
if (
|
|
615
|
+
if (I(C))
|
|
618
616
|
return t;
|
|
619
617
|
if (R(C)) {
|
|
620
|
-
var
|
|
621
|
-
C = R(
|
|
618
|
+
var P = typeof C.valueOf == "function" ? C.valueOf() : C;
|
|
619
|
+
C = R(P) ? P + "" : P;
|
|
622
620
|
}
|
|
623
621
|
if (typeof C != "string")
|
|
624
622
|
return C === 0 ? C : +C;
|
|
625
623
|
C = C.replace(r, "");
|
|
626
|
-
var
|
|
627
|
-
return
|
|
624
|
+
var j = i.test(C);
|
|
625
|
+
return j || s.test(C) ? u(C.slice(2), j ? 2 : 8) : o.test(C) ? t : +C;
|
|
628
626
|
}
|
|
629
627
|
return bn = T, bn;
|
|
630
628
|
}
|
|
@@ -658,63 +656,63 @@ const Ds = /* @__PURE__ */ fo(Ms), Is = (e, { resizeThrottle: t = 0, overrideScr
|
|
|
658
656
|
return;
|
|
659
657
|
const u = r(s);
|
|
660
658
|
let l = !1, c = 0, p = 0, f = 0, a = 0, g = 0;
|
|
661
|
-
const v = async (
|
|
662
|
-
o && !await o(s,
|
|
663
|
-
}, h = async (
|
|
664
|
-
if (l && (l = !1,
|
|
665
|
-
const
|
|
659
|
+
const v = async (A, D, H) => {
|
|
660
|
+
o && !await o(s, H) || (l = !0, c = A, p = D, f = A, a = D, g = Date.now());
|
|
661
|
+
}, h = async (A, D) => {
|
|
662
|
+
if (l && (l = !1, A && i)) {
|
|
663
|
+
const H = Date.now() - g, U = f - c, $ = a - p;
|
|
666
664
|
await i({
|
|
667
|
-
deltaX:
|
|
668
|
-
deltaY:
|
|
665
|
+
deltaX: U,
|
|
666
|
+
deltaY: $,
|
|
669
667
|
get movingSpeedX() {
|
|
670
|
-
return vr(
|
|
668
|
+
return vr(U, H);
|
|
671
669
|
},
|
|
672
670
|
get movingSpeedY() {
|
|
673
|
-
return vr(
|
|
671
|
+
return vr($, H);
|
|
674
672
|
}
|
|
675
|
-
}, s,
|
|
673
|
+
}, s, D);
|
|
676
674
|
}
|
|
677
|
-
}, E = async (
|
|
678
|
-
await h(
|
|
679
|
-
}, T = async (
|
|
680
|
-
await E(!0,
|
|
681
|
-
}, R = async (
|
|
675
|
+
}, E = async (A, D) => {
|
|
676
|
+
await h(A, D), window.removeEventListener("mousemove", _), window.removeEventListener("mouseup", T), window.removeEventListener("touchmove", I), window.removeEventListener("touchend", N), window.removeEventListener("touchcancel", C);
|
|
677
|
+
}, T = async (A) => {
|
|
678
|
+
await E(!0, A);
|
|
679
|
+
}, R = async (A, D, H) => {
|
|
682
680
|
if (!l)
|
|
683
681
|
return;
|
|
684
|
-
const
|
|
685
|
-
deltaX:
|
|
686
|
-
deltaY:
|
|
687
|
-
distanceX:
|
|
688
|
-
distanceY:
|
|
689
|
-
euclideanDistance: ds(c, p,
|
|
682
|
+
const U = {
|
|
683
|
+
deltaX: A - f,
|
|
684
|
+
deltaY: D - a,
|
|
685
|
+
distanceX: A - c,
|
|
686
|
+
distanceY: D - p,
|
|
687
|
+
euclideanDistance: ds(c, p, A, D)
|
|
690
688
|
};
|
|
691
|
-
if (!await u(
|
|
692
|
-
f =
|
|
689
|
+
if (!await u(U)) {
|
|
690
|
+
f = A, a = D, await E(!t, H);
|
|
693
691
|
return;
|
|
694
692
|
}
|
|
695
|
-
f =
|
|
696
|
-
},
|
|
697
|
-
await R(
|
|
698
|
-
},
|
|
699
|
-
const
|
|
700
|
-
await R(
|
|
701
|
-
},
|
|
702
|
-
await E(!0,
|
|
703
|
-
}, C = async (
|
|
704
|
-
await E(!0,
|
|
705
|
-
},
|
|
706
|
-
|
|
707
|
-
const
|
|
708
|
-
await v(
|
|
693
|
+
f = A, a = D;
|
|
694
|
+
}, _ = async (A) => {
|
|
695
|
+
await R(A.clientX, A.clientY, A);
|
|
696
|
+
}, I = async (A) => {
|
|
697
|
+
const D = A.touches[0];
|
|
698
|
+
await R(D.clientX, D.clientY, A);
|
|
699
|
+
}, N = async (A) => {
|
|
700
|
+
await E(!0, A);
|
|
701
|
+
}, C = async (A) => {
|
|
702
|
+
await E(!0, A);
|
|
703
|
+
}, P = async (A) => {
|
|
704
|
+
A.stopPropagation();
|
|
705
|
+
const D = A.touches[0];
|
|
706
|
+
await v(D.clientX, D.clientY, A), window.addEventListener("touchmove", I, {
|
|
709
707
|
passive: !0
|
|
710
|
-
}), window.addEventListener("touchend",
|
|
711
|
-
},
|
|
712
|
-
|
|
708
|
+
}), window.addEventListener("touchend", N), window.addEventListener("touchcancel", C);
|
|
709
|
+
}, j = async (A) => {
|
|
710
|
+
A.stopPropagation(), await v(A.clientX, A.clientY, A), window.addEventListener("mousemove", _), window.addEventListener("mouseup", T);
|
|
713
711
|
};
|
|
714
|
-
return s.addEventListener("mousedown",
|
|
712
|
+
return s.addEventListener("mousedown", j), s.addEventListener("touchstart", P, {
|
|
715
713
|
passive: !0
|
|
716
714
|
}), () => {
|
|
717
|
-
s.removeEventListener("mousedown",
|
|
715
|
+
s.removeEventListener("mousedown", j), s.removeEventListener("touchstart", P);
|
|
718
716
|
};
|
|
719
717
|
}, [n, o, r, i]);
|
|
720
718
|
}, Au = (e, t, { enabled: n = !0, preventDefault: r = !0 } = {}) => {
|
|
@@ -794,10 +792,10 @@ function je(e) {
|
|
|
794
792
|
function Yn(e) {
|
|
795
793
|
return en() ? e instanceof Node || e instanceof Re(e).Node : !1;
|
|
796
794
|
}
|
|
797
|
-
function
|
|
795
|
+
function ie(e) {
|
|
798
796
|
return en() ? e instanceof Element || e instanceof Re(e).Element : !1;
|
|
799
797
|
}
|
|
800
|
-
function
|
|
798
|
+
function le(e) {
|
|
801
799
|
return en() ? e instanceof HTMLElement || e instanceof Re(e).HTMLElement : !1;
|
|
802
800
|
}
|
|
803
801
|
function Bt(e) {
|
|
@@ -829,12 +827,12 @@ function tn(e) {
|
|
|
829
827
|
}
|
|
830
828
|
const Bs = ["transform", "translate", "scale", "rotate", "perspective"], Ws = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vs = ["paint", "layout", "strict", "content"];
|
|
831
829
|
function zn(e) {
|
|
832
|
-
const t = nn(), n =
|
|
830
|
+
const t = nn(), n = ie(e) ? _e(e) : e;
|
|
833
831
|
return Bs.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Ws.some((r) => (n.willChange || "").includes(r)) || Vs.some((r) => (n.contain || "").includes(r));
|
|
834
832
|
}
|
|
835
833
|
function Us(e) {
|
|
836
834
|
let t = We(e);
|
|
837
|
-
for (;
|
|
835
|
+
for (; le(t) && !He(t); ) {
|
|
838
836
|
if (zn(t))
|
|
839
837
|
return t;
|
|
840
838
|
if (tn(t))
|
|
@@ -854,7 +852,7 @@ function _e(e) {
|
|
|
854
852
|
return Re(e).getComputedStyle(e);
|
|
855
853
|
}
|
|
856
854
|
function rn(e) {
|
|
857
|
-
return
|
|
855
|
+
return ie(e) ? {
|
|
858
856
|
scrollLeft: e.scrollLeft,
|
|
859
857
|
scrollTop: e.scrollTop
|
|
860
858
|
} : {
|
|
@@ -876,7 +874,7 @@ function We(e) {
|
|
|
876
874
|
}
|
|
877
875
|
function ho(e) {
|
|
878
876
|
const t = We(e);
|
|
879
|
-
return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
877
|
+
return He(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && Tt(t) ? t : ho(t);
|
|
880
878
|
}
|
|
881
879
|
function ze(e, t, n) {
|
|
882
880
|
var r;
|
|
@@ -1258,7 +1256,7 @@ function be(e) {
|
|
|
1258
1256
|
return e?.ownerDocument || document;
|
|
1259
1257
|
}
|
|
1260
1258
|
function Xn(e) {
|
|
1261
|
-
return
|
|
1259
|
+
return le(e) && e.matches(bc);
|
|
1262
1260
|
}
|
|
1263
1261
|
function Ar(e) {
|
|
1264
1262
|
return e ? e.getAttribute("role") === "combobox" && Xn(e) : !1;
|
|
@@ -1307,13 +1305,13 @@ function lt(e, t) {
|
|
|
1307
1305
|
return t || n.push("", void 0), n.includes(e);
|
|
1308
1306
|
}
|
|
1309
1307
|
var Sc = typeof document < "u", Oc = function() {
|
|
1310
|
-
},
|
|
1308
|
+
}, de = Sc ? Hn : Oc;
|
|
1311
1309
|
const _c = {
|
|
1312
1310
|
...x
|
|
1313
1311
|
};
|
|
1314
1312
|
function Me(e) {
|
|
1315
1313
|
const t = x.useRef(e);
|
|
1316
|
-
return
|
|
1314
|
+
return de(() => {
|
|
1317
1315
|
t.current = e;
|
|
1318
1316
|
}), t;
|
|
1319
1317
|
}
|
|
@@ -1508,7 +1506,7 @@ function Lc() {
|
|
|
1508
1506
|
return s.H.useFormState(l, c, p);
|
|
1509
1507
|
}, ve.useFormStatus = function() {
|
|
1510
1508
|
return s.H.useHostTransitionStatus();
|
|
1511
|
-
}, ve.version = "19.
|
|
1509
|
+
}, ve.version = "19.2.0", ve;
|
|
1512
1510
|
}
|
|
1513
1511
|
var ye = {};
|
|
1514
1512
|
/**
|
|
@@ -1730,7 +1728,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1730
1728
|
return s().useFormState(f, a, g);
|
|
1731
1729
|
}, ye.useFormStatus = function() {
|
|
1732
1730
|
return s().useHostTransitionStatus();
|
|
1733
|
-
}, ye.version = "19.
|
|
1731
|
+
}, ye.version = "19.2.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1734
1732
|
})()), ye;
|
|
1735
1733
|
}
|
|
1736
1734
|
var Ir;
|
|
@@ -1820,9 +1818,9 @@ const Ic = async (e, t, n) => {
|
|
|
1820
1818
|
fn: T
|
|
1821
1819
|
} = u[h], {
|
|
1822
1820
|
x: R,
|
|
1823
|
-
y:
|
|
1824
|
-
data:
|
|
1825
|
-
reset:
|
|
1821
|
+
y: _,
|
|
1822
|
+
data: I,
|
|
1823
|
+
reset: N
|
|
1826
1824
|
} = await T({
|
|
1827
1825
|
x: p,
|
|
1828
1826
|
y: f,
|
|
@@ -1837,17 +1835,17 @@ const Ic = async (e, t, n) => {
|
|
|
1837
1835
|
floating: t
|
|
1838
1836
|
}
|
|
1839
1837
|
});
|
|
1840
|
-
p = R ?? p, f =
|
|
1838
|
+
p = R ?? p, f = _ ?? f, g = {
|
|
1841
1839
|
...g,
|
|
1842
1840
|
[E]: {
|
|
1843
1841
|
...g[E],
|
|
1844
|
-
...
|
|
1842
|
+
...I
|
|
1845
1843
|
}
|
|
1846
|
-
},
|
|
1844
|
+
}, N && v <= 50 && (v++, typeof N == "object" && (N.placement && (a = N.placement), N.rects && (c = N.rects === !0 ? await s.getElementRects({
|
|
1847
1845
|
reference: e,
|
|
1848
1846
|
floating: t,
|
|
1849
1847
|
strategy: o
|
|
1850
|
-
}) :
|
|
1848
|
+
}) : N.rects), {
|
|
1851
1849
|
x: p,
|
|
1852
1850
|
y: f
|
|
1853
1851
|
} = kr(c, a, l)), h = -1);
|
|
@@ -1886,23 +1884,23 @@ async function sn(e, t) {
|
|
|
1886
1884
|
y: o,
|
|
1887
1885
|
width: s.floating.width,
|
|
1888
1886
|
height: s.floating.height
|
|
1889
|
-
} : s.reference,
|
|
1887
|
+
} : s.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u.floating)), I = await (i.isElement == null ? void 0 : i.isElement(_)) ? await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1890
1888
|
x: 1,
|
|
1891
1889
|
y: 1
|
|
1892
1890
|
} : {
|
|
1893
1891
|
x: 1,
|
|
1894
1892
|
y: 1
|
|
1895
|
-
},
|
|
1893
|
+
}, N = Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1896
1894
|
elements: u,
|
|
1897
1895
|
rect: R,
|
|
1898
|
-
offsetParent:
|
|
1896
|
+
offsetParent: _,
|
|
1899
1897
|
strategy: l
|
|
1900
1898
|
}) : R);
|
|
1901
1899
|
return {
|
|
1902
|
-
top: (T.top -
|
|
1903
|
-
bottom: (
|
|
1904
|
-
left: (T.left -
|
|
1905
|
-
right: (
|
|
1900
|
+
top: (T.top - N.top + v.top) / I.y,
|
|
1901
|
+
bottom: (N.bottom - T.bottom + v.bottom) / I.y,
|
|
1902
|
+
left: (T.left - N.left + v.left) / I.x,
|
|
1903
|
+
right: (N.right - T.right + v.right) / I.x
|
|
1906
1904
|
};
|
|
1907
1905
|
}
|
|
1908
1906
|
const kc = (e) => ({
|
|
@@ -1926,20 +1924,20 @@ const kc = (e) => ({
|
|
|
1926
1924
|
const f = bo(p), a = {
|
|
1927
1925
|
x: n,
|
|
1928
1926
|
y: r
|
|
1929
|
-
}, g = qn(o), v = Gn(g), h = await s.getDimensions(c), E = g === "y", T = E ? "top" : "left", R = E ? "bottom" : "right",
|
|
1930
|
-
let
|
|
1931
|
-
(!
|
|
1932
|
-
const
|
|
1927
|
+
}, g = qn(o), v = Gn(g), h = await s.getDimensions(c), E = g === "y", T = E ? "top" : "left", R = E ? "bottom" : "right", _ = E ? "clientHeight" : "clientWidth", I = i.reference[v] + i.reference[g] - a[g] - i.floating[v], N = a[g] - i.reference[g], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
1928
|
+
let P = C ? C[_] : 0;
|
|
1929
|
+
(!P || !await (s.isElement == null ? void 0 : s.isElement(C))) && (P = u.floating[_] || i.floating[v]);
|
|
1930
|
+
const j = I / 2 - N / 2, A = P / 2 - h[v] / 2 - 1, D = Ge(f[T], A), H = Ge(f[R], A), U = D, $ = P - h[v] - H, y = P / 2 - h[v] / 2 + j, M = Mn(U, y, $), Y = !l.arrow && De(o) != null && y !== M && i.reference[v] / 2 - (y < U ? D : H) - h[v] / 2 < 0, k = Y ? y < U ? y - U : y - $ : 0;
|
|
1933
1931
|
return {
|
|
1934
|
-
[g]: a[g] +
|
|
1932
|
+
[g]: a[g] + k,
|
|
1935
1933
|
data: {
|
|
1936
1934
|
[g]: M,
|
|
1937
|
-
centerOffset:
|
|
1938
|
-
...
|
|
1939
|
-
alignmentOffset:
|
|
1935
|
+
centerOffset: y - M - k,
|
|
1936
|
+
...Y && {
|
|
1937
|
+
alignmentOffset: k
|
|
1940
1938
|
}
|
|
1941
1939
|
},
|
|
1942
|
-
reset:
|
|
1940
|
+
reset: Y
|
|
1943
1941
|
};
|
|
1944
1942
|
}
|
|
1945
1943
|
});
|
|
@@ -1967,49 +1965,49 @@ const jc = function(e) {
|
|
|
1967
1965
|
} = tt(e, t), h = f !== void 0 || a === Tr ? Nc(f || null, g, a) : a, E = await sn(t, v), T = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, R = h[T];
|
|
1968
1966
|
if (R == null)
|
|
1969
1967
|
return {};
|
|
1970
|
-
const
|
|
1968
|
+
const _ = yo(R, i, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
|
|
1971
1969
|
if (u !== R)
|
|
1972
1970
|
return {
|
|
1973
1971
|
reset: {
|
|
1974
1972
|
placement: h[0]
|
|
1975
1973
|
}
|
|
1976
1974
|
};
|
|
1977
|
-
const
|
|
1975
|
+
const I = [E[Ne(R)], E[_[0]], E[_[1]]], N = [...((r = s.autoPlacement) == null ? void 0 : r.overflows) || [], {
|
|
1978
1976
|
placement: R,
|
|
1979
|
-
overflows:
|
|
1977
|
+
overflows: I
|
|
1980
1978
|
}], C = h[T + 1];
|
|
1981
1979
|
if (C)
|
|
1982
1980
|
return {
|
|
1983
1981
|
data: {
|
|
1984
1982
|
index: T + 1,
|
|
1985
|
-
overflows:
|
|
1983
|
+
overflows: N
|
|
1986
1984
|
},
|
|
1987
1985
|
reset: {
|
|
1988
1986
|
placement: C
|
|
1989
1987
|
}
|
|
1990
1988
|
};
|
|
1991
|
-
const
|
|
1992
|
-
const
|
|
1993
|
-
return [
|
|
1989
|
+
const P = N.map((D) => {
|
|
1990
|
+
const H = De(D.placement);
|
|
1991
|
+
return [D.placement, H && p ? (
|
|
1994
1992
|
// Check along the mainAxis and main crossAxis side.
|
|
1995
|
-
|
|
1993
|
+
D.overflows.slice(0, 2).reduce((U, $) => U + $, 0)
|
|
1996
1994
|
) : (
|
|
1997
1995
|
// Check only the mainAxis.
|
|
1998
|
-
|
|
1999
|
-
),
|
|
2000
|
-
}).sort((
|
|
1996
|
+
D.overflows[0]
|
|
1997
|
+
), D.overflows];
|
|
1998
|
+
}).sort((D, H) => D[1] - H[1]), A = ((o = P.filter((D) => D[2].slice(
|
|
2001
1999
|
0,
|
|
2002
2000
|
// Aligned placements should not check their opposite crossAxis
|
|
2003
2001
|
// side.
|
|
2004
|
-
De(
|
|
2005
|
-
).every((
|
|
2006
|
-
return
|
|
2002
|
+
De(D[0]) ? 2 : 3
|
|
2003
|
+
).every((H) => H <= 0))[0]) == null ? void 0 : o[0]) || P[0][0];
|
|
2004
|
+
return A !== u ? {
|
|
2007
2005
|
data: {
|
|
2008
2006
|
index: T + 1,
|
|
2009
|
-
overflows:
|
|
2007
|
+
overflows: N
|
|
2010
2008
|
},
|
|
2011
2009
|
reset: {
|
|
2012
|
-
placement:
|
|
2010
|
+
placement: A
|
|
2013
2011
|
}
|
|
2014
2012
|
} : {};
|
|
2015
2013
|
}
|
|
@@ -2038,57 +2036,57 @@ const jc = function(e) {
|
|
|
2038
2036
|
} = tt(e, t);
|
|
2039
2037
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
2040
2038
|
return {};
|
|
2041
|
-
const T = Ne(o), R = $e(u),
|
|
2042
|
-
!a && C &&
|
|
2043
|
-
const
|
|
2044
|
-
let
|
|
2045
|
-
if (p &&
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2039
|
+
const T = Ne(o), R = $e(u), _ = Ne(u) === u, I = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), N = a || (_ || !h ? [Ut(u)] : Ks(u)), C = v !== "none";
|
|
2040
|
+
!a && C && N.push(...ec(u, h, v, I));
|
|
2041
|
+
const P = [u, ...N], j = await sn(t, E), A = [];
|
|
2042
|
+
let D = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
2043
|
+
if (p && A.push(j[T]), f) {
|
|
2044
|
+
const y = yo(o, s, I);
|
|
2045
|
+
A.push(j[y[0]], j[y[1]]);
|
|
2048
2046
|
}
|
|
2049
|
-
if (
|
|
2047
|
+
if (D = [...D, {
|
|
2050
2048
|
placement: o,
|
|
2051
|
-
overflows:
|
|
2052
|
-
}], !
|
|
2053
|
-
var
|
|
2054
|
-
const
|
|
2049
|
+
overflows: A
|
|
2050
|
+
}], !A.every((y) => y <= 0)) {
|
|
2051
|
+
var H, U;
|
|
2052
|
+
const y = (((H = i.flip) == null ? void 0 : H.index) || 0) + 1, M = P[y];
|
|
2055
2053
|
if (M && (!(f === "alignment" ? R !== $e(M) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2056
2054
|
// overflows the main axis.
|
|
2057
|
-
|
|
2055
|
+
D.every((S) => $e(S.placement) === R ? S.overflows[0] > 0 : !0)))
|
|
2058
2056
|
return {
|
|
2059
2057
|
data: {
|
|
2060
|
-
index:
|
|
2061
|
-
overflows:
|
|
2058
|
+
index: y,
|
|
2059
|
+
overflows: D
|
|
2062
2060
|
},
|
|
2063
2061
|
reset: {
|
|
2064
2062
|
placement: M
|
|
2065
2063
|
}
|
|
2066
2064
|
};
|
|
2067
|
-
let
|
|
2068
|
-
if (!
|
|
2065
|
+
let Y = (U = D.filter((k) => k.overflows[0] <= 0).sort((k, S) => k.overflows[1] - S.overflows[1])[0]) == null ? void 0 : U.placement;
|
|
2066
|
+
if (!Y)
|
|
2069
2067
|
switch (g) {
|
|
2070
2068
|
case "bestFit": {
|
|
2071
|
-
var
|
|
2072
|
-
const
|
|
2069
|
+
var $;
|
|
2070
|
+
const k = ($ = D.filter((S) => {
|
|
2073
2071
|
if (C) {
|
|
2074
|
-
const
|
|
2075
|
-
return
|
|
2072
|
+
const F = $e(S.placement);
|
|
2073
|
+
return F === R || // Create a bias to the `y` side axis due to horizontal
|
|
2076
2074
|
// reading directions favoring greater width.
|
|
2077
|
-
|
|
2075
|
+
F === "y";
|
|
2078
2076
|
}
|
|
2079
2077
|
return !0;
|
|
2080
|
-
}).map((S) => [S.placement, S.overflows.filter((
|
|
2081
|
-
|
|
2078
|
+
}).map((S) => [S.placement, S.overflows.filter((F) => F > 0).reduce((F, B) => F + B, 0)]).sort((S, F) => S[1] - F[1])[0]) == null ? void 0 : $[0];
|
|
2079
|
+
k && (Y = k);
|
|
2082
2080
|
break;
|
|
2083
2081
|
}
|
|
2084
2082
|
case "initialPlacement":
|
|
2085
|
-
|
|
2083
|
+
Y = u;
|
|
2086
2084
|
break;
|
|
2087
2085
|
}
|
|
2088
|
-
if (o !==
|
|
2086
|
+
if (o !== Y)
|
|
2089
2087
|
return {
|
|
2090
2088
|
reset: {
|
|
2091
|
-
placement:
|
|
2089
|
+
placement: Y
|
|
2092
2090
|
}
|
|
2093
2091
|
};
|
|
2094
2092
|
}
|
|
@@ -2176,12 +2174,12 @@ const Bc = function(e) {
|
|
|
2176
2174
|
}, p = await sn(t, l), f = $e(Ne(o)), a = vo(f);
|
|
2177
2175
|
let g = c[a], v = c[f];
|
|
2178
2176
|
if (i) {
|
|
2179
|
-
const E = a === "y" ? "top" : "left", T = a === "y" ? "bottom" : "right", R = g + p[E],
|
|
2180
|
-
g = Mn(R, g,
|
|
2177
|
+
const E = a === "y" ? "top" : "left", T = a === "y" ? "bottom" : "right", R = g + p[E], _ = g - p[T];
|
|
2178
|
+
g = Mn(R, g, _);
|
|
2181
2179
|
}
|
|
2182
2180
|
if (s) {
|
|
2183
|
-
const E = f === "y" ? "top" : "left", T = f === "y" ? "bottom" : "right", R = v + p[E],
|
|
2184
|
-
v = Mn(R, v,
|
|
2181
|
+
const E = f === "y" ? "top" : "left", T = f === "y" ? "bottom" : "right", R = v + p[E], _ = v - p[T];
|
|
2182
|
+
v = Mn(R, v, _);
|
|
2185
2183
|
}
|
|
2186
2184
|
const h = u.fn({
|
|
2187
2185
|
...t,
|
|
@@ -2222,19 +2220,19 @@ const Bc = function(e) {
|
|
|
2222
2220
|
} = i.floating;
|
|
2223
2221
|
let E, T;
|
|
2224
2222
|
f === "top" || f === "bottom" ? (E = f, T = a === (await (s.isRTL == null ? void 0 : s.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (T = f, E = a === "end" ? "top" : "bottom");
|
|
2225
|
-
const R = h - p.top - p.bottom,
|
|
2226
|
-
let
|
|
2227
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
2228
|
-
const
|
|
2229
|
-
g ?
|
|
2223
|
+
const R = h - p.top - p.bottom, _ = v - p.left - p.right, I = Ge(h - p[E], R), N = Ge(v - p[T], _), C = !t.middlewareData.shift;
|
|
2224
|
+
let P = I, j = N;
|
|
2225
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = _), (r = t.middlewareData.shift) != null && r.enabled.y && (P = R), C && !a) {
|
|
2226
|
+
const D = Oe(p.left, 0), H = Oe(p.right, 0), U = Oe(p.top, 0), $ = Oe(p.bottom, 0);
|
|
2227
|
+
g ? j = v - 2 * (D !== 0 || H !== 0 ? D + H : Oe(p.left, p.right)) : P = h - 2 * (U !== 0 || $ !== 0 ? U + $ : Oe(p.top, p.bottom));
|
|
2230
2228
|
}
|
|
2231
2229
|
await l({
|
|
2232
2230
|
...t,
|
|
2233
|
-
availableWidth:
|
|
2234
|
-
availableHeight:
|
|
2231
|
+
availableWidth: j,
|
|
2232
|
+
availableHeight: P
|
|
2235
2233
|
});
|
|
2236
|
-
const
|
|
2237
|
-
return v !==
|
|
2234
|
+
const A = await s.getDimensions(u.floating);
|
|
2235
|
+
return v !== A.width || h !== A.height ? {
|
|
2238
2236
|
reset: {
|
|
2239
2237
|
rects: !0
|
|
2240
2238
|
}
|
|
@@ -2245,7 +2243,7 @@ const Bc = function(e) {
|
|
|
2245
2243
|
function Io(e) {
|
|
2246
2244
|
const t = _e(e);
|
|
2247
2245
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
2248
|
-
const o =
|
|
2246
|
+
const o = le(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, u = Wt(n) !== i || Wt(r) !== s;
|
|
2249
2247
|
return u && (n = i, r = s), {
|
|
2250
2248
|
width: n,
|
|
2251
2249
|
height: r,
|
|
@@ -2253,11 +2251,11 @@ function Io(e) {
|
|
|
2253
2251
|
};
|
|
2254
2252
|
}
|
|
2255
2253
|
function Jn(e) {
|
|
2256
|
-
return
|
|
2254
|
+
return ie(e) ? e : e.contextElement;
|
|
2257
2255
|
}
|
|
2258
2256
|
function ct(e) {
|
|
2259
2257
|
const t = Jn(e);
|
|
2260
|
-
if (!
|
|
2258
|
+
if (!le(t))
|
|
2261
2259
|
return ke(1);
|
|
2262
2260
|
const n = t.getBoundingClientRect(), {
|
|
2263
2261
|
width: r,
|
|
@@ -2285,15 +2283,15 @@ function Qe(e, t, n, r) {
|
|
|
2285
2283
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2286
2284
|
const o = e.getBoundingClientRect(), i = Jn(e);
|
|
2287
2285
|
let s = ke(1);
|
|
2288
|
-
t && (r ?
|
|
2286
|
+
t && (r ? ie(r) && (s = ct(r)) : s = ct(e));
|
|
2289
2287
|
const u = Yc(i, n, r) ? ko(i) : ke(0);
|
|
2290
2288
|
let l = (o.left + u.x) / s.x, c = (o.top + u.y) / s.y, p = o.width / s.x, f = o.height / s.y;
|
|
2291
2289
|
if (i) {
|
|
2292
|
-
const a = Re(i), g = r &&
|
|
2290
|
+
const a = Re(i), g = r && ie(r) ? Re(r) : r;
|
|
2293
2291
|
let v = a, h = Ln(v);
|
|
2294
2292
|
for (; h && r && g !== v; ) {
|
|
2295
|
-
const E = ct(h), T = h.getBoundingClientRect(), R = _e(h),
|
|
2296
|
-
l *= E.x, c *= E.y, p *= E.x, f *= E.y, l +=
|
|
2293
|
+
const E = ct(h), T = h.getBoundingClientRect(), R = _e(h), _ = T.left + (h.clientLeft + parseFloat(R.paddingLeft)) * E.x, I = T.top + (h.clientTop + parseFloat(R.paddingTop)) * E.y;
|
|
2294
|
+
l *= E.x, c *= E.y, p *= E.x, f *= E.y, l += _, c += I, v = Re(h), h = Ln(v);
|
|
2297
2295
|
}
|
|
2298
2296
|
}
|
|
2299
2297
|
return Yt({
|
|
@@ -2328,8 +2326,8 @@ function zc(e) {
|
|
|
2328
2326
|
scrollLeft: 0,
|
|
2329
2327
|
scrollTop: 0
|
|
2330
2328
|
}, c = ke(1);
|
|
2331
|
-
const p = ke(0), f =
|
|
2332
|
-
if ((f || !f && !i) && ((Xe(r) !== "body" || Tt(s)) && (l = rn(r)),
|
|
2329
|
+
const p = ke(0), f = le(r);
|
|
2330
|
+
if ((f || !f && !i) && ((Xe(r) !== "body" || Tt(s)) && (l = rn(r)), le(r))) {
|
|
2333
2331
|
const g = Qe(r);
|
|
2334
2332
|
c = ct(r), p.x = g.x + r.clientLeft, p.y = g.y + r.clientTop;
|
|
2335
2333
|
}
|
|
@@ -2378,7 +2376,7 @@ function Xc(e, t) {
|
|
|
2378
2376
|
}
|
|
2379
2377
|
const Kc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2380
2378
|
function Jc(e, t) {
|
|
2381
|
-
const n = Qe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i =
|
|
2379
|
+
const n = Qe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = le(e) ? ct(e) : ke(1), s = e.clientWidth * i.x, u = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
|
|
2382
2380
|
return {
|
|
2383
2381
|
width: s,
|
|
2384
2382
|
height: u,
|
|
@@ -2392,7 +2390,7 @@ function jr(e, t, n) {
|
|
|
2392
2390
|
r = Xc(e, n);
|
|
2393
2391
|
else if (t === "document")
|
|
2394
2392
|
r = qc(je(e));
|
|
2395
|
-
else if (
|
|
2393
|
+
else if (ie(t))
|
|
2396
2394
|
r = Jc(t, n);
|
|
2397
2395
|
else {
|
|
2398
2396
|
const o = ko(e);
|
|
@@ -2407,16 +2405,16 @@ function jr(e, t, n) {
|
|
|
2407
2405
|
}
|
|
2408
2406
|
function jo(e, t) {
|
|
2409
2407
|
const n = We(e);
|
|
2410
|
-
return n === t || !
|
|
2408
|
+
return n === t || !ie(n) || He(n) ? !1 : _e(n).position === "fixed" || jo(n, t);
|
|
2411
2409
|
}
|
|
2412
2410
|
function Zc(e, t) {
|
|
2413
2411
|
const n = t.get(e);
|
|
2414
2412
|
if (n)
|
|
2415
2413
|
return n;
|
|
2416
|
-
let r = ze(e, [], !1).filter((u) =>
|
|
2414
|
+
let r = ze(e, [], !1).filter((u) => ie(u) && Xe(u) !== "body"), o = null;
|
|
2417
2415
|
const i = _e(e).position === "fixed";
|
|
2418
2416
|
let s = i ? We(e) : e;
|
|
2419
|
-
for (;
|
|
2417
|
+
for (; ie(s) && !He(s); ) {
|
|
2420
2418
|
const u = _e(s), l = zn(s);
|
|
2421
2419
|
!l && u.position === "fixed" && (o = null), (i ? !l && !o : !l && u.position === "static" && !!o && Kc.has(o.position) || Tt(s) && !l && jo(e, s)) ? r = r.filter((p) => p !== s) : o = u, s = We(s);
|
|
2422
2420
|
}
|
|
@@ -2451,7 +2449,7 @@ function ea(e) {
|
|
|
2451
2449
|
};
|
|
2452
2450
|
}
|
|
2453
2451
|
function ta(e, t, n) {
|
|
2454
|
-
const r =
|
|
2452
|
+
const r = le(t), o = je(t), i = n === "fixed", s = Qe(e, !0, i, t);
|
|
2455
2453
|
let u = {
|
|
2456
2454
|
scrollLeft: 0,
|
|
2457
2455
|
scrollTop: 0
|
|
@@ -2478,7 +2476,7 @@ function Rn(e) {
|
|
|
2478
2476
|
return _e(e).position === "static";
|
|
2479
2477
|
}
|
|
2480
2478
|
function Fr(e, t) {
|
|
2481
|
-
if (!
|
|
2479
|
+
if (!le(e) || _e(e).position === "fixed")
|
|
2482
2480
|
return null;
|
|
2483
2481
|
if (t)
|
|
2484
2482
|
return t(e);
|
|
@@ -2489,10 +2487,10 @@ function Fo(e, t) {
|
|
|
2489
2487
|
const n = Re(e);
|
|
2490
2488
|
if (tn(e))
|
|
2491
2489
|
return n;
|
|
2492
|
-
if (!
|
|
2490
|
+
if (!le(e)) {
|
|
2493
2491
|
let o = We(e);
|
|
2494
2492
|
for (; o && !He(o); ) {
|
|
2495
|
-
if (
|
|
2493
|
+
if (ie(o) && !Rn(o))
|
|
2496
2494
|
return o;
|
|
2497
2495
|
o = We(o);
|
|
2498
2496
|
}
|
|
@@ -2527,7 +2525,7 @@ const oa = {
|
|
|
2527
2525
|
getClientRects: Gc,
|
|
2528
2526
|
getDimensions: ea,
|
|
2529
2527
|
getScale: ct,
|
|
2530
|
-
isElement:
|
|
2528
|
+
isElement: ie,
|
|
2531
2529
|
isRTL: ra
|
|
2532
2530
|
};
|
|
2533
2531
|
function $o(e, t) {
|
|
@@ -2550,30 +2548,30 @@ function ia(e, t) {
|
|
|
2550
2548
|
} = c;
|
|
2551
2549
|
if (u || t(), !a || !g)
|
|
2552
2550
|
return;
|
|
2553
|
-
const v = kt(f), h = kt(o.clientWidth - (p + a)), E = kt(o.clientHeight - (f + g)), T = kt(p),
|
|
2551
|
+
const v = kt(f), h = kt(o.clientWidth - (p + a)), E = kt(o.clientHeight - (f + g)), T = kt(p), _ = {
|
|
2554
2552
|
rootMargin: -v + "px " + -h + "px " + -E + "px " + -T + "px",
|
|
2555
2553
|
threshold: Oe(0, Ge(1, l)) || 1
|
|
2556
2554
|
};
|
|
2557
|
-
let
|
|
2558
|
-
function
|
|
2559
|
-
const
|
|
2560
|
-
if (
|
|
2561
|
-
if (!
|
|
2555
|
+
let I = !0;
|
|
2556
|
+
function N(C) {
|
|
2557
|
+
const P = C[0].intersectionRatio;
|
|
2558
|
+
if (P !== l) {
|
|
2559
|
+
if (!I)
|
|
2562
2560
|
return s();
|
|
2563
|
-
|
|
2561
|
+
P ? s(!1, P) : r = setTimeout(() => {
|
|
2564
2562
|
s(!1, 1e-7);
|
|
2565
2563
|
}, 1e3);
|
|
2566
2564
|
}
|
|
2567
|
-
|
|
2565
|
+
P === 1 && !$o(c, e.getBoundingClientRect()) && s(), I = !1;
|
|
2568
2566
|
}
|
|
2569
2567
|
try {
|
|
2570
|
-
n = new IntersectionObserver(
|
|
2571
|
-
...
|
|
2568
|
+
n = new IntersectionObserver(N, {
|
|
2569
|
+
..._,
|
|
2572
2570
|
// Handle <iframe>s
|
|
2573
2571
|
root: o.ownerDocument
|
|
2574
2572
|
});
|
|
2575
2573
|
} catch {
|
|
2576
|
-
n = new IntersectionObserver(
|
|
2574
|
+
n = new IntersectionObserver(N, _);
|
|
2577
2575
|
}
|
|
2578
2576
|
n.observe(e);
|
|
2579
2577
|
}
|
|
@@ -2598,8 +2596,8 @@ function sa(e, t, n, r) {
|
|
|
2598
2596
|
s && (g = new ResizeObserver((T) => {
|
|
2599
2597
|
let [R] = T;
|
|
2600
2598
|
R && R.target === c && g && (g.unobserve(t), cancelAnimationFrame(a), a = requestAnimationFrame(() => {
|
|
2601
|
-
var
|
|
2602
|
-
(
|
|
2599
|
+
var _;
|
|
2600
|
+
(_ = g) == null || _.observe(t);
|
|
2603
2601
|
})), n();
|
|
2604
2602
|
}), c && !l && g.observe(c), g.observe(t));
|
|
2605
2603
|
let v, h = l ? Qe(e) : null;
|
|
@@ -2698,82 +2696,82 @@ function ma(e) {
|
|
|
2698
2696
|
Xt(a, r) || g(r);
|
|
2699
2697
|
const [v, h] = x.useState(null), [E, T] = x.useState(null), R = x.useCallback((S) => {
|
|
2700
2698
|
S !== C.current && (C.current = S, h(S));
|
|
2701
|
-
}, []),
|
|
2702
|
-
S !==
|
|
2703
|
-
}, []),
|
|
2704
|
-
if (!C.current || !
|
|
2699
|
+
}, []), _ = x.useCallback((S) => {
|
|
2700
|
+
S !== P.current && (P.current = S, T(S));
|
|
2701
|
+
}, []), I = i || v, N = s || E, C = x.useRef(null), P = x.useRef(null), j = x.useRef(p), A = l != null, D = En(l), H = En(o), U = En(c), $ = x.useCallback(() => {
|
|
2702
|
+
if (!C.current || !P.current)
|
|
2705
2703
|
return;
|
|
2706
2704
|
const S = {
|
|
2707
2705
|
placement: t,
|
|
2708
2706
|
strategy: n,
|
|
2709
2707
|
middleware: a
|
|
2710
2708
|
};
|
|
2711
|
-
|
|
2712
|
-
const
|
|
2713
|
-
...
|
|
2709
|
+
H.current && (S.platform = H.current), da(C.current, P.current, S).then((F) => {
|
|
2710
|
+
const B = {
|
|
2711
|
+
...F,
|
|
2714
2712
|
// The floating element's position may be recomputed while it's closed
|
|
2715
2713
|
// but still mounted (such as when transitioning out). To ensure
|
|
2716
2714
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
2717
2715
|
// setting it to `true` when `open === false` (must be specified).
|
|
2718
|
-
isPositioned:
|
|
2716
|
+
isPositioned: U.current !== !1
|
|
2719
2717
|
};
|
|
2720
|
-
|
|
2721
|
-
f(
|
|
2718
|
+
y.current && !Xt(j.current, B) && (j.current = B, Kn.flushSync(() => {
|
|
2719
|
+
f(B);
|
|
2722
2720
|
}));
|
|
2723
2721
|
});
|
|
2724
|
-
}, [a, t, n,
|
|
2722
|
+
}, [a, t, n, H, U]);
|
|
2725
2723
|
$t(() => {
|
|
2726
|
-
c === !1 &&
|
|
2724
|
+
c === !1 && j.current.isPositioned && (j.current.isPositioned = !1, f((S) => ({
|
|
2727
2725
|
...S,
|
|
2728
2726
|
isPositioned: !1
|
|
2729
2727
|
})));
|
|
2730
2728
|
}, [c]);
|
|
2731
|
-
const
|
|
2732
|
-
$t(() => (
|
|
2733
|
-
|
|
2729
|
+
const y = x.useRef(!1);
|
|
2730
|
+
$t(() => (y.current = !0, () => {
|
|
2731
|
+
y.current = !1;
|
|
2734
2732
|
}), []), $t(() => {
|
|
2735
|
-
if (
|
|
2736
|
-
if (
|
|
2737
|
-
return
|
|
2738
|
-
|
|
2733
|
+
if (I && (C.current = I), N && (P.current = N), I && N) {
|
|
2734
|
+
if (D.current)
|
|
2735
|
+
return D.current(I, N, $);
|
|
2736
|
+
$();
|
|
2739
2737
|
}
|
|
2740
|
-
}, [
|
|
2738
|
+
}, [I, N, $, D, A]);
|
|
2741
2739
|
const M = x.useMemo(() => ({
|
|
2742
2740
|
reference: C,
|
|
2743
|
-
floating:
|
|
2741
|
+
floating: P,
|
|
2744
2742
|
setReference: R,
|
|
2745
|
-
setFloating:
|
|
2746
|
-
}), [R,
|
|
2747
|
-
reference:
|
|
2748
|
-
floating:
|
|
2749
|
-
}), [
|
|
2743
|
+
setFloating: _
|
|
2744
|
+
}), [R, _]), Y = x.useMemo(() => ({
|
|
2745
|
+
reference: I,
|
|
2746
|
+
floating: N
|
|
2747
|
+
}), [I, N]), k = x.useMemo(() => {
|
|
2750
2748
|
const S = {
|
|
2751
2749
|
position: n,
|
|
2752
2750
|
left: 0,
|
|
2753
2751
|
top: 0
|
|
2754
2752
|
};
|
|
2755
|
-
if (!
|
|
2753
|
+
if (!Y.floating)
|
|
2756
2754
|
return S;
|
|
2757
|
-
const
|
|
2755
|
+
const F = Hr(Y.floating, p.x), B = Hr(Y.floating, p.y);
|
|
2758
2756
|
return u ? {
|
|
2759
2757
|
...S,
|
|
2760
|
-
transform: "translate(" +
|
|
2761
|
-
...Ho(
|
|
2758
|
+
transform: "translate(" + F + "px, " + B + "px)",
|
|
2759
|
+
...Ho(Y.floating) >= 1.5 && {
|
|
2762
2760
|
willChange: "transform"
|
|
2763
2761
|
}
|
|
2764
2762
|
} : {
|
|
2765
2763
|
position: n,
|
|
2766
|
-
left:
|
|
2767
|
-
top:
|
|
2764
|
+
left: F,
|
|
2765
|
+
top: B
|
|
2768
2766
|
};
|
|
2769
|
-
}, [n, u,
|
|
2767
|
+
}, [n, u, Y.floating, p.x, p.y]);
|
|
2770
2768
|
return x.useMemo(() => ({
|
|
2771
2769
|
...p,
|
|
2772
|
-
update:
|
|
2770
|
+
update: $,
|
|
2773
2771
|
refs: M,
|
|
2774
|
-
elements:
|
|
2775
|
-
floatingStyles:
|
|
2776
|
-
}), [p,
|
|
2772
|
+
elements: Y,
|
|
2773
|
+
floatingStyles: k
|
|
2774
|
+
}), [p, $, M, Y, k]);
|
|
2777
2775
|
}
|
|
2778
2776
|
const ha = (e) => {
|
|
2779
2777
|
function t(n) {
|
|
@@ -2825,7 +2823,7 @@ const Ur = () => (
|
|
|
2825
2823
|
);
|
|
2826
2824
|
function Oa() {
|
|
2827
2825
|
const [e, t] = x.useState(() => Vr ? Ur() : void 0);
|
|
2828
|
-
return
|
|
2826
|
+
return de(() => {
|
|
2829
2827
|
e == null && t(Ur());
|
|
2830
2828
|
}, []), x.useEffect(() => {
|
|
2831
2829
|
Vr = !0;
|
|
@@ -2878,55 +2876,55 @@ const Pa = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
|
2878
2876
|
...E
|
|
2879
2877
|
} = t;
|
|
2880
2878
|
process.env.NODE_ENV !== "production" && (n || Ca("The `ref` prop is required for `FloatingArrow`."));
|
|
2881
|
-
const T = Ot(), [R,
|
|
2882
|
-
if (
|
|
2879
|
+
const T = Ot(), [R, _] = x.useState(!1);
|
|
2880
|
+
if (de(() => {
|
|
2883
2881
|
if (!o) return;
|
|
2884
|
-
_e(o).direction === "rtl" &&
|
|
2882
|
+
_e(o).direction === "rtl" && _(!0);
|
|
2885
2883
|
}, [o]), !o)
|
|
2886
2884
|
return null;
|
|
2887
|
-
const [
|
|
2888
|
-
let
|
|
2889
|
-
(C && s != null && s.x || !C && s != null && s.y) && (
|
|
2890
|
-
const
|
|
2891
|
-
let
|
|
2892
|
-
|
|
2893
|
-
const M = i?.x != null ?
|
|
2894
|
-
top:
|
|
2895
|
-
left:
|
|
2896
|
-
bottom:
|
|
2897
|
-
right:
|
|
2898
|
-
}[
|
|
2885
|
+
const [I, N] = r.split("-"), C = I === "top" || I === "bottom";
|
|
2886
|
+
let P = f;
|
|
2887
|
+
(C && s != null && s.x || !C && s != null && s.y) && (P = null);
|
|
2888
|
+
const j = p * 2, A = j / 2, D = u / 2 * (c / -8 + 1), H = l / 2 * c / 4, U = !!g, $ = P && N === "end" ? "bottom" : "top";
|
|
2889
|
+
let y = P && N === "end" ? "right" : "left";
|
|
2890
|
+
P && R && (y = N === "end" ? "left" : "right");
|
|
2891
|
+
const M = i?.x != null ? P || i.x : "", Y = i?.y != null ? P || i.y : "", k = g || "M0,0" + (" H" + u) + (" L" + (u - D) + "," + (l - H)) + (" Q" + u / 2 + "," + l + " " + D + "," + (l - H)) + " Z", S = {
|
|
2892
|
+
top: U ? "rotate(180deg)" : "",
|
|
2893
|
+
left: U ? "rotate(90deg)" : "rotate(-90deg)",
|
|
2894
|
+
bottom: U ? "" : "rotate(180deg)",
|
|
2895
|
+
right: U ? "rotate(-90deg)" : "rotate(90deg)"
|
|
2896
|
+
}[I];
|
|
2899
2897
|
return /* @__PURE__ */ z.jsxs("svg", {
|
|
2900
2898
|
...E,
|
|
2901
2899
|
"aria-hidden": !0,
|
|
2902
2900
|
ref: n,
|
|
2903
|
-
width:
|
|
2901
|
+
width: U ? u : u + j,
|
|
2904
2902
|
height: u,
|
|
2905
2903
|
viewBox: "0 0 " + u + " " + (l > u ? l : u),
|
|
2906
2904
|
style: {
|
|
2907
2905
|
position: "absolute",
|
|
2908
2906
|
pointerEvents: "none",
|
|
2909
|
-
[
|
|
2910
|
-
[
|
|
2911
|
-
[
|
|
2912
|
-
transform: [S, v].filter((
|
|
2907
|
+
[y]: M,
|
|
2908
|
+
[$]: Y,
|
|
2909
|
+
[I]: C || U ? "100%" : "calc(100% - " + j / 2 + "px)",
|
|
2910
|
+
transform: [S, v].filter((F) => !!F).join(" "),
|
|
2913
2911
|
...h
|
|
2914
2912
|
},
|
|
2915
|
-
children: [
|
|
2913
|
+
children: [j > 0 && /* @__PURE__ */ z.jsx("path", {
|
|
2916
2914
|
clipPath: "url(#" + T + ")",
|
|
2917
2915
|
fill: "none",
|
|
2918
2916
|
stroke: a,
|
|
2919
|
-
strokeWidth:
|
|
2920
|
-
d:
|
|
2917
|
+
strokeWidth: j + (g ? 0 : 1),
|
|
2918
|
+
d: k
|
|
2921
2919
|
}), /* @__PURE__ */ z.jsx("path", {
|
|
2922
|
-
stroke:
|
|
2923
|
-
d:
|
|
2920
|
+
stroke: j && !g ? E.fill : "none",
|
|
2921
|
+
d: k
|
|
2924
2922
|
}), /* @__PURE__ */ z.jsx("clipPath", {
|
|
2925
2923
|
id: T,
|
|
2926
2924
|
children: /* @__PURE__ */ z.jsx("rect", {
|
|
2927
|
-
x: -
|
|
2928
|
-
y:
|
|
2929
|
-
width: u +
|
|
2925
|
+
x: -A,
|
|
2926
|
+
y: A * (U ? -1 : 1),
|
|
2927
|
+
width: u + j,
|
|
2930
2928
|
height: u
|
|
2931
2929
|
})
|
|
2932
2930
|
})]
|
|
@@ -2954,7 +2952,7 @@ const Wo = /* @__PURE__ */ x.createContext(null), Vo = /* @__PURE__ */ x.createC
|
|
|
2954
2952
|
}, _t = () => x.useContext(Vo);
|
|
2955
2953
|
function La(e) {
|
|
2956
2954
|
const t = Ot(), n = _t(), o = dt();
|
|
2957
|
-
return
|
|
2955
|
+
return de(() => {
|
|
2958
2956
|
if (!t) return;
|
|
2959
2957
|
const i = {
|
|
2960
2958
|
id: t,
|
|
@@ -3032,146 +3030,146 @@ function Ia(e, t) {
|
|
|
3032
3030
|
mouseOnly: p = !1,
|
|
3033
3031
|
restMs: f = 0,
|
|
3034
3032
|
move: a = !0
|
|
3035
|
-
} = t, g = _t(), v = dt(), h = Me(c), E = Me(l), T = Me(n), R = Me(f),
|
|
3036
|
-
}),
|
|
3037
|
-
var
|
|
3038
|
-
const S = (
|
|
3033
|
+
} = t, g = _t(), v = dt(), h = Me(c), E = Me(l), T = Me(n), R = Me(f), _ = x.useRef(), I = x.useRef(-1), N = x.useRef(), C = x.useRef(-1), P = x.useRef(!0), j = x.useRef(!1), A = x.useRef(() => {
|
|
3034
|
+
}), D = x.useRef(!1), H = we(() => {
|
|
3035
|
+
var k;
|
|
3036
|
+
const S = (k = o.current.openEvent) == null ? void 0 : k.type;
|
|
3039
3037
|
return S?.includes("mouse") && S !== "mousedown";
|
|
3040
3038
|
});
|
|
3041
3039
|
x.useEffect(() => {
|
|
3042
3040
|
if (!u) return;
|
|
3043
|
-
function
|
|
3041
|
+
function k(S) {
|
|
3044
3042
|
let {
|
|
3045
|
-
open:
|
|
3043
|
+
open: F
|
|
3046
3044
|
} = S;
|
|
3047
|
-
|
|
3045
|
+
F || (xe(I), xe(C), P.current = !0, D.current = !1);
|
|
3048
3046
|
}
|
|
3049
|
-
return i.on("openchange",
|
|
3050
|
-
i.off("openchange",
|
|
3047
|
+
return i.on("openchange", k), () => {
|
|
3048
|
+
i.off("openchange", k);
|
|
3051
3049
|
};
|
|
3052
3050
|
}, [u, i]), x.useEffect(() => {
|
|
3053
3051
|
if (!u || !h.current || !n) return;
|
|
3054
|
-
function
|
|
3055
|
-
|
|
3052
|
+
function k(F) {
|
|
3053
|
+
H() && r(!1, F, "hover");
|
|
3056
3054
|
}
|
|
3057
3055
|
const S = be(s.floating).documentElement;
|
|
3058
|
-
return S.addEventListener("mouseleave",
|
|
3059
|
-
S.removeEventListener("mouseleave",
|
|
3056
|
+
return S.addEventListener("mouseleave", k), () => {
|
|
3057
|
+
S.removeEventListener("mouseleave", k);
|
|
3060
3058
|
};
|
|
3061
|
-
}, [s.floating, n, r, u, h,
|
|
3062
|
-
const
|
|
3063
|
-
S === void 0 && (S = !0),
|
|
3064
|
-
const
|
|
3065
|
-
|
|
3066
|
-
}, [E, r]),
|
|
3067
|
-
|
|
3068
|
-
}),
|
|
3069
|
-
if (
|
|
3070
|
-
const
|
|
3071
|
-
|
|
3059
|
+
}, [s.floating, n, r, u, h, H]);
|
|
3060
|
+
const U = x.useCallback(function(k, S, F) {
|
|
3061
|
+
S === void 0 && (S = !0), F === void 0 && (F = "hover");
|
|
3062
|
+
const B = Tn(E.current, "close", _.current);
|
|
3063
|
+
B && !N.current ? (xe(I), I.current = window.setTimeout(() => r(!1, k, F), B)) : S && (xe(I), r(!1, k, F));
|
|
3064
|
+
}, [E, r]), $ = we(() => {
|
|
3065
|
+
A.current(), N.current = void 0;
|
|
3066
|
+
}), y = we(() => {
|
|
3067
|
+
if (j.current) {
|
|
3068
|
+
const k = be(s.floating).body;
|
|
3069
|
+
k.style.pointerEvents = "", k.removeAttribute(Yr), j.current = !1;
|
|
3072
3070
|
}
|
|
3073
3071
|
}), M = we(() => o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1);
|
|
3074
3072
|
x.useEffect(() => {
|
|
3075
3073
|
if (!u) return;
|
|
3076
|
-
function
|
|
3077
|
-
if (xe(
|
|
3074
|
+
function k(L) {
|
|
3075
|
+
if (xe(I), P.current = !1, p && !lt(_.current) || Sn(R.current) > 0 && !Tn(E.current, "open"))
|
|
3078
3076
|
return;
|
|
3079
|
-
const
|
|
3080
|
-
|
|
3081
|
-
T.current || r(!0,
|
|
3082
|
-
},
|
|
3077
|
+
const O = Tn(E.current, "open", _.current);
|
|
3078
|
+
O ? I.current = window.setTimeout(() => {
|
|
3079
|
+
T.current || r(!0, L, "hover");
|
|
3080
|
+
}, O) : n || r(!0, L, "hover");
|
|
3083
3081
|
}
|
|
3084
|
-
function S(
|
|
3082
|
+
function S(L) {
|
|
3085
3083
|
if (M()) {
|
|
3086
|
-
|
|
3084
|
+
y();
|
|
3087
3085
|
return;
|
|
3088
3086
|
}
|
|
3089
|
-
|
|
3090
|
-
const
|
|
3091
|
-
if (xe(C),
|
|
3092
|
-
n || xe(
|
|
3087
|
+
A.current();
|
|
3088
|
+
const O = be(s.floating);
|
|
3089
|
+
if (xe(C), D.current = !1, h.current && o.current.floatingContext) {
|
|
3090
|
+
n || xe(I), N.current = h.current({
|
|
3093
3091
|
...o.current.floatingContext,
|
|
3094
3092
|
tree: g,
|
|
3095
|
-
x:
|
|
3096
|
-
y:
|
|
3093
|
+
x: L.clientX,
|
|
3094
|
+
y: L.clientY,
|
|
3097
3095
|
onClose() {
|
|
3098
|
-
|
|
3096
|
+
y(), $(), M() || U(L, !0, "safe-polygon");
|
|
3099
3097
|
}
|
|
3100
3098
|
});
|
|
3101
|
-
const
|
|
3102
|
-
|
|
3103
|
-
|
|
3099
|
+
const K = N.current;
|
|
3100
|
+
O.addEventListener("mousemove", K), A.current = () => {
|
|
3101
|
+
O.removeEventListener("mousemove", K);
|
|
3104
3102
|
};
|
|
3105
3103
|
return;
|
|
3106
3104
|
}
|
|
3107
|
-
(
|
|
3105
|
+
(_.current === "touch" ? !he(s.floating, L.relatedTarget) : !0) && U(L);
|
|
3108
3106
|
}
|
|
3109
|
-
function
|
|
3107
|
+
function F(L) {
|
|
3110
3108
|
M() || o.current.floatingContext && (h.current == null || h.current({
|
|
3111
3109
|
...o.current.floatingContext,
|
|
3112
3110
|
tree: g,
|
|
3113
|
-
x:
|
|
3114
|
-
y:
|
|
3111
|
+
x: L.clientX,
|
|
3112
|
+
y: L.clientY,
|
|
3115
3113
|
onClose() {
|
|
3116
|
-
|
|
3114
|
+
y(), $(), M() || U(L);
|
|
3117
3115
|
}
|
|
3118
|
-
})(
|
|
3116
|
+
})(L));
|
|
3119
3117
|
}
|
|
3120
|
-
function
|
|
3121
|
-
xe(
|
|
3118
|
+
function B() {
|
|
3119
|
+
xe(I);
|
|
3122
3120
|
}
|
|
3123
|
-
function
|
|
3124
|
-
M() ||
|
|
3121
|
+
function b(L) {
|
|
3122
|
+
M() || U(L, !1);
|
|
3125
3123
|
}
|
|
3126
|
-
if (
|
|
3127
|
-
const
|
|
3128
|
-
return n &&
|
|
3124
|
+
if (ie(s.domReference)) {
|
|
3125
|
+
const L = s.domReference, O = s.floating;
|
|
3126
|
+
return n && L.addEventListener("mouseleave", F), a && L.addEventListener("mousemove", k, {
|
|
3129
3127
|
once: !0
|
|
3130
|
-
}),
|
|
3131
|
-
n &&
|
|
3128
|
+
}), L.addEventListener("mouseenter", k), L.addEventListener("mouseleave", S), O && (O.addEventListener("mouseleave", F), O.addEventListener("mouseenter", B), O.addEventListener("mouseleave", b)), () => {
|
|
3129
|
+
n && L.removeEventListener("mouseleave", F), a && L.removeEventListener("mousemove", k), L.removeEventListener("mouseenter", k), L.removeEventListener("mouseleave", S), O && (O.removeEventListener("mouseleave", F), O.removeEventListener("mouseenter", B), O.removeEventListener("mouseleave", b));
|
|
3132
3130
|
};
|
|
3133
3131
|
}
|
|
3134
|
-
}, [s, u, e, p, a,
|
|
3135
|
-
var
|
|
3136
|
-
if (u && n && (
|
|
3137
|
-
|
|
3138
|
-
const
|
|
3139
|
-
if (
|
|
3132
|
+
}, [s, u, e, p, a, U, $, y, r, n, T, g, E, h, o, M, R]), de(() => {
|
|
3133
|
+
var k;
|
|
3134
|
+
if (u && n && (k = h.current) != null && (k = k.__options) != null && k.blockPointerEvents && H()) {
|
|
3135
|
+
j.current = !0;
|
|
3136
|
+
const F = s.floating;
|
|
3137
|
+
if (ie(s.domReference) && F) {
|
|
3140
3138
|
var S;
|
|
3141
|
-
const
|
|
3142
|
-
|
|
3143
|
-
const
|
|
3144
|
-
return
|
|
3145
|
-
|
|
3139
|
+
const B = be(s.floating).body;
|
|
3140
|
+
B.setAttribute(Yr, "");
|
|
3141
|
+
const b = s.domReference, L = g == null || (S = g.nodesRef.current.find((O) => O.id === v)) == null || (S = S.context) == null ? void 0 : S.elements.floating;
|
|
3142
|
+
return L && (L.style.pointerEvents = ""), B.style.pointerEvents = "none", b.style.pointerEvents = "auto", F.style.pointerEvents = "auto", () => {
|
|
3143
|
+
B.style.pointerEvents = "", b.style.pointerEvents = "", F.style.pointerEvents = "";
|
|
3146
3144
|
};
|
|
3147
3145
|
}
|
|
3148
3146
|
}
|
|
3149
|
-
}, [u, n, v, s, g, h,
|
|
3150
|
-
n || (
|
|
3151
|
-
}, [n,
|
|
3152
|
-
|
|
3153
|
-
}, [u, s.domReference,
|
|
3154
|
-
const
|
|
3155
|
-
function
|
|
3156
|
-
|
|
3147
|
+
}, [u, n, v, s, g, h, H]), de(() => {
|
|
3148
|
+
n || (_.current = void 0, D.current = !1, $(), y());
|
|
3149
|
+
}, [n, $, y]), x.useEffect(() => () => {
|
|
3150
|
+
$(), xe(I), xe(C), y();
|
|
3151
|
+
}, [u, s.domReference, $, y]);
|
|
3152
|
+
const Y = x.useMemo(() => {
|
|
3153
|
+
function k(S) {
|
|
3154
|
+
_.current = S.pointerType;
|
|
3157
3155
|
}
|
|
3158
3156
|
return {
|
|
3159
|
-
onPointerDown:
|
|
3160
|
-
onPointerEnter:
|
|
3157
|
+
onPointerDown: k,
|
|
3158
|
+
onPointerEnter: k,
|
|
3161
3159
|
onMouseMove(S) {
|
|
3162
3160
|
const {
|
|
3163
|
-
nativeEvent:
|
|
3161
|
+
nativeEvent: F
|
|
3164
3162
|
} = S;
|
|
3165
|
-
function
|
|
3166
|
-
!
|
|
3163
|
+
function B() {
|
|
3164
|
+
!P.current && !T.current && r(!0, F, "hover");
|
|
3167
3165
|
}
|
|
3168
|
-
p && !lt(
|
|
3166
|
+
p && !lt(_.current) || n || Sn(R.current) === 0 || D.current && S.movementX ** 2 + S.movementY ** 2 < 2 || (xe(C), _.current === "touch" ? B() : (D.current = !0, C.current = window.setTimeout(B, Sn(R.current))));
|
|
3169
3167
|
}
|
|
3170
3168
|
};
|
|
3171
3169
|
}, [p, r, n, T, R]);
|
|
3172
3170
|
return x.useMemo(() => u ? {
|
|
3173
|
-
reference:
|
|
3174
|
-
} : {}, [u,
|
|
3171
|
+
reference: Y
|
|
3172
|
+
} : {}, [u, Y]);
|
|
3175
3173
|
}
|
|
3176
3174
|
let zr = 0;
|
|
3177
3175
|
function ot(e, t) {
|
|
@@ -3238,8 +3236,8 @@ function $a(e, t, n, r) {
|
|
|
3238
3236
|
if (u.has(v))
|
|
3239
3237
|
a(v);
|
|
3240
3238
|
else {
|
|
3241
|
-
const h = i ? v.getAttribute(i) : null, E = h !== null && h !== "false", T = Gr(i), R = (T.get(v) || 0) + 1,
|
|
3242
|
-
T.set(v, R), p.set(v,
|
|
3239
|
+
const h = i ? v.getAttribute(i) : null, E = h !== null && h !== "false", T = Gr(i), R = (T.get(v) || 0) + 1, _ = (p.get(v) || 0) + 1;
|
|
3240
|
+
T.set(v, R), p.set(v, _), c.push(v), R === 1 && E && jt.add(v), _ === 1 && v.setAttribute(o, ""), !E && i && v.setAttribute(i, i === "inert" ? "" : "true");
|
|
3243
3241
|
}
|
|
3244
3242
|
});
|
|
3245
3243
|
}
|
|
@@ -3269,7 +3267,7 @@ const an = {
|
|
|
3269
3267
|
left: 0
|
|
3270
3268
|
}, Kt = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
3271
3269
|
const [r, o] = x.useState();
|
|
3272
|
-
|
|
3270
|
+
de(() => {
|
|
3273
3271
|
Ao() && o("button");
|
|
3274
3272
|
}, []);
|
|
3275
3273
|
const i = {
|
|
@@ -3292,17 +3290,17 @@ function Ha(e) {
|
|
|
3292
3290
|
id: t,
|
|
3293
3291
|
root: n
|
|
3294
3292
|
} = e, r = Ot(), o = zo(), [i, s] = x.useState(null), u = x.useRef(null);
|
|
3295
|
-
return
|
|
3293
|
+
return de(() => () => {
|
|
3296
3294
|
i?.remove(), queueMicrotask(() => {
|
|
3297
3295
|
u.current = null;
|
|
3298
3296
|
});
|
|
3299
|
-
}, [i]),
|
|
3297
|
+
}, [i]), de(() => {
|
|
3300
3298
|
if (!r || u.current) return;
|
|
3301
3299
|
const l = t ? document.getElementById(t) : null;
|
|
3302
3300
|
if (!l) return;
|
|
3303
3301
|
const c = document.createElement("div");
|
|
3304
3302
|
c.id = r, c.setAttribute(Xr, ""), l.appendChild(c), u.current = c, s(c);
|
|
3305
|
-
}, [t, r]),
|
|
3303
|
+
}, [t, r]), de(() => {
|
|
3306
3304
|
if (n === null || !r || u.current) return;
|
|
3307
3305
|
let l = n || o?.portalNode;
|
|
3308
3306
|
l && !Yn(l) && (l = l.current), l = l || document.body;
|
|
@@ -3443,105 +3441,105 @@ function za(e) {
|
|
|
3443
3441
|
dataRef: T,
|
|
3444
3442
|
elements: {
|
|
3445
3443
|
domReference: R,
|
|
3446
|
-
floating:
|
|
3444
|
+
floating: _
|
|
3447
3445
|
}
|
|
3448
|
-
} = t,
|
|
3446
|
+
} = t, I = we(() => {
|
|
3449
3447
|
var q;
|
|
3450
3448
|
return (q = T.current.floatingContext) == null ? void 0 : q.nodeId;
|
|
3451
|
-
}),
|
|
3452
|
-
return q === void 0 && (q =
|
|
3453
|
-
}),
|
|
3454
|
-
const
|
|
3455
|
-
return
|
|
3449
|
+
}), N = we(g), C = typeof s == "number" && s < 0, P = Ar(R) && C, j = ja(), A = j ? i : !0, D = !A || j && a, H = Me(o), U = Me(s), $ = Me(u), y = _t(), M = zo(), Y = x.useRef(null), k = x.useRef(null), S = x.useRef(!1), F = x.useRef(!1), B = x.useRef(-1), b = x.useRef(-1), L = M != null, O = Nn(_), X = we(function(q) {
|
|
3450
|
+
return q === void 0 && (q = O), q ? on(q, St()) : [];
|
|
3451
|
+
}), K = we((q) => {
|
|
3452
|
+
const te = X(q);
|
|
3453
|
+
return H.current.map((Q) => R && Q === "reference" ? R : O && Q === "floating" ? O : te).filter(Boolean).flat();
|
|
3456
3454
|
});
|
|
3457
3455
|
x.useEffect(() => {
|
|
3458
3456
|
if (r || !c) return;
|
|
3459
|
-
function q(
|
|
3460
|
-
if (
|
|
3461
|
-
he(
|
|
3462
|
-
const ue =
|
|
3463
|
-
|
|
3457
|
+
function q(Q) {
|
|
3458
|
+
if (Q.key === "Tab") {
|
|
3459
|
+
he(O, Ve(be(O))) && X().length === 0 && !P && xn(Q);
|
|
3460
|
+
const ue = K(), fe = Ie(Q);
|
|
3461
|
+
H.current[0] === "reference" && fe === R && (xn(Q), Q.shiftKey ? ot(ue[ue.length - 1]) : ot(ue[1])), H.current[1] === "floating" && fe === O && Q.shiftKey && (xn(Q), ot(ue[0]));
|
|
3464
3462
|
}
|
|
3465
3463
|
}
|
|
3466
|
-
const
|
|
3467
|
-
return
|
|
3468
|
-
|
|
3464
|
+
const te = be(O);
|
|
3465
|
+
return te.addEventListener("keydown", q), () => {
|
|
3466
|
+
te.removeEventListener("keydown", q);
|
|
3469
3467
|
};
|
|
3470
|
-
}, [r, R,
|
|
3471
|
-
if (r || !
|
|
3472
|
-
function q(
|
|
3473
|
-
const
|
|
3474
|
-
|
|
3468
|
+
}, [r, R, O, c, H, P, X, K]), x.useEffect(() => {
|
|
3469
|
+
if (r || !_) return;
|
|
3470
|
+
function q(te) {
|
|
3471
|
+
const Q = Ie(te), fe = X().indexOf(Q);
|
|
3472
|
+
fe !== -1 && (B.current = fe);
|
|
3475
3473
|
}
|
|
3476
|
-
return
|
|
3477
|
-
|
|
3474
|
+
return _.addEventListener("focusin", q), () => {
|
|
3475
|
+
_.removeEventListener("focusin", q);
|
|
3478
3476
|
};
|
|
3479
|
-
}, [r,
|
|
3477
|
+
}, [r, _, X]), x.useEffect(() => {
|
|
3480
3478
|
if (r || !f) return;
|
|
3481
3479
|
function q() {
|
|
3482
|
-
|
|
3483
|
-
|
|
3480
|
+
F.current = !0, setTimeout(() => {
|
|
3481
|
+
F.current = !1;
|
|
3484
3482
|
});
|
|
3485
3483
|
}
|
|
3486
|
-
function
|
|
3487
|
-
const re =
|
|
3484
|
+
function te(fe) {
|
|
3485
|
+
const re = fe.relatedTarget, Ce = fe.currentTarget, Ee = Ie(fe);
|
|
3488
3486
|
queueMicrotask(() => {
|
|
3489
|
-
const pe =
|
|
3487
|
+
const pe = I(), Ae = !(he(R, re) || he(_, re) || he(re, _) || he(M?.portalNode, re) || re != null && re.hasAttribute(et("focus-guard")) || y && (st(y.nodesRef.current, pe).find((Te) => {
|
|
3490
3488
|
var me, Pe;
|
|
3491
3489
|
return he((me = Te.context) == null ? void 0 : me.elements.floating, re) || he((Pe = Te.context) == null ? void 0 : Pe.elements.domReference, re);
|
|
3492
|
-
}) || Pr(
|
|
3490
|
+
}) || Pr(y.nodesRef.current, pe).find((Te) => {
|
|
3493
3491
|
var me, Pe, gt;
|
|
3494
3492
|
return [(me = Te.context) == null ? void 0 : me.elements.floating, Nn((Pe = Te.context) == null ? void 0 : Pe.elements.floating)].includes(re) || ((gt = Te.context) == null ? void 0 : gt.elements.domReference) === re;
|
|
3495
3493
|
})));
|
|
3496
|
-
if (Ce === R &&
|
|
3497
|
-
|
|
3498
|
-
const Te =
|
|
3499
|
-
|
|
3494
|
+
if (Ce === R && O && Zr(O, H), l && Ce !== R && !(Ee != null && Ee.isConnected) && Ve(be(O)) === be(O).body) {
|
|
3495
|
+
le(O) && O.focus();
|
|
3496
|
+
const Te = B.current, me = X(), Pe = me[Te] || me[me.length - 1] || O;
|
|
3497
|
+
le(Pe) && Pe.focus();
|
|
3500
3498
|
}
|
|
3501
3499
|
if (T.current.insideReactTree) {
|
|
3502
3500
|
T.current.insideReactTree = !1;
|
|
3503
3501
|
return;
|
|
3504
3502
|
}
|
|
3505
|
-
(
|
|
3506
|
-
re !== Jr() && (S.current = !0, h(!1,
|
|
3503
|
+
(P || !c) && re && Ae && !F.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
3504
|
+
re !== Jr() && (S.current = !0, h(!1, fe, "focus-out"));
|
|
3507
3505
|
});
|
|
3508
3506
|
}
|
|
3509
|
-
const
|
|
3507
|
+
const Q = !!(!y && M);
|
|
3510
3508
|
function ue() {
|
|
3511
|
-
xe(
|
|
3509
|
+
xe(b), T.current.insideReactTree = !0, b.current = window.setTimeout(() => {
|
|
3512
3510
|
T.current.insideReactTree = !1;
|
|
3513
3511
|
});
|
|
3514
3512
|
}
|
|
3515
|
-
if (
|
|
3516
|
-
return R.addEventListener("focusout",
|
|
3517
|
-
R.removeEventListener("focusout",
|
|
3513
|
+
if (_ && le(R))
|
|
3514
|
+
return R.addEventListener("focusout", te), R.addEventListener("pointerdown", q), _.addEventListener("focusout", te), Q && _.addEventListener("focusout", ue, !0), () => {
|
|
3515
|
+
R.removeEventListener("focusout", te), R.removeEventListener("pointerdown", q), _.removeEventListener("focusout", te), Q && _.removeEventListener("focusout", ue, !0);
|
|
3518
3516
|
};
|
|
3519
|
-
}, [r, R,
|
|
3520
|
-
const
|
|
3517
|
+
}, [r, R, _, O, c, y, M, h, f, l, X, P, I, H, T]);
|
|
3518
|
+
const Z = x.useRef(null), G = x.useRef(null), W = Kr([Z, M?.beforeInsideRef]), J = Kr([G, M?.afterInsideRef]);
|
|
3521
3519
|
x.useEffect(() => {
|
|
3522
|
-
var q,
|
|
3523
|
-
if (r || !
|
|
3524
|
-
const
|
|
3520
|
+
var q, te;
|
|
3521
|
+
if (r || !_) return;
|
|
3522
|
+
const Q = Array.from((M == null || (q = M.portalNode) == null ? void 0 : q.querySelectorAll("[" + et("portal") + "]")) || []), fe = (te = (y ? Pr(y.nodesRef.current, I()) : []).find((Ee) => {
|
|
3525
3523
|
var pe;
|
|
3526
3524
|
return Ar(((pe = Ee.context) == null ? void 0 : pe.elements.domReference) || null);
|
|
3527
|
-
})) == null || (
|
|
3525
|
+
})) == null || (te = te.context) == null ? void 0 : te.elements.domReference, re = [_, fe, ...Q, ...N(), Y.current, k.current, Z.current, G.current, M?.beforeOutsideRef.current, M?.afterOutsideRef.current, H.current.includes("reference") || P ? R : null].filter((Ee) => Ee != null), Ce = c || P ? qr(re, !D, D) : qr(re);
|
|
3528
3526
|
return () => {
|
|
3529
3527
|
Ce();
|
|
3530
3528
|
};
|
|
3531
|
-
}, [r, R,
|
|
3532
|
-
if (r || !
|
|
3533
|
-
const q = be(
|
|
3529
|
+
}, [r, R, _, c, H, M, P, A, D, y, I, N]), de(() => {
|
|
3530
|
+
if (r || !le(O)) return;
|
|
3531
|
+
const q = be(O), te = Ve(q);
|
|
3534
3532
|
queueMicrotask(() => {
|
|
3535
|
-
const
|
|
3536
|
-
!C && !re && v && ot(
|
|
3537
|
-
preventScroll:
|
|
3533
|
+
const Q = K(O), ue = U.current, fe = (typeof ue == "number" ? Q[ue] : ue.current) || O, re = he(O, te);
|
|
3534
|
+
!C && !re && v && ot(fe, {
|
|
3535
|
+
preventScroll: fe === O
|
|
3538
3536
|
});
|
|
3539
3537
|
});
|
|
3540
|
-
}, [r, v,
|
|
3541
|
-
if (r || !
|
|
3542
|
-
const q = be(
|
|
3543
|
-
Va(
|
|
3544
|
-
function
|
|
3538
|
+
}, [r, v, O, C, K, U]), de(() => {
|
|
3539
|
+
if (r || !O) return;
|
|
3540
|
+
const q = be(O), te = Ve(q);
|
|
3541
|
+
Va(te);
|
|
3542
|
+
function Q(re) {
|
|
3545
3543
|
let {
|
|
3546
3544
|
reason: Ce,
|
|
3547
3545
|
event: Ee,
|
|
@@ -3561,26 +3559,26 @@ function za(e) {
|
|
|
3561
3559
|
}), Ae ? S.current = !1 : S.current = !0;
|
|
3562
3560
|
}
|
|
3563
3561
|
}
|
|
3564
|
-
E.on("openchange",
|
|
3562
|
+
E.on("openchange", Q);
|
|
3565
3563
|
const ue = q.createElement("span");
|
|
3566
|
-
ue.setAttribute("tabindex", "-1"), ue.setAttribute("aria-hidden", "true"), Object.assign(ue.style, an),
|
|
3567
|
-
function
|
|
3568
|
-
if (typeof
|
|
3564
|
+
ue.setAttribute("tabindex", "-1"), ue.setAttribute("aria-hidden", "true"), Object.assign(ue.style, an), L && R && R.insertAdjacentElement("afterend", ue);
|
|
3565
|
+
function fe() {
|
|
3566
|
+
if (typeof $.current == "boolean") {
|
|
3569
3567
|
const re = R || Jr();
|
|
3570
3568
|
return re && re.isConnected ? re : ue;
|
|
3571
3569
|
}
|
|
3572
|
-
return
|
|
3570
|
+
return $.current.current || ue;
|
|
3573
3571
|
}
|
|
3574
3572
|
return () => {
|
|
3575
|
-
E.off("openchange",
|
|
3576
|
-
const re = Ve(q), Ce = he(
|
|
3573
|
+
E.off("openchange", Q);
|
|
3574
|
+
const re = Ve(q), Ce = he(_, re) || y && st(y.nodesRef.current, I(), !1).some((pe) => {
|
|
3577
3575
|
var Ae;
|
|
3578
3576
|
return he((Ae = pe.context) == null ? void 0 : Ae.elements.floating, re);
|
|
3579
|
-
}), Ee =
|
|
3577
|
+
}), Ee = fe();
|
|
3580
3578
|
queueMicrotask(() => {
|
|
3581
3579
|
const pe = Ua(Ee);
|
|
3582
3580
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3583
|
-
|
|
3581
|
+
$.current && !S.current && le(pe) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
3584
3582
|
// since it likely entered a different element which should be
|
|
3585
3583
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
3586
3584
|
(!(pe !== re && re !== q.body) || Ce) && pe.focus({
|
|
@@ -3588,11 +3586,11 @@ function za(e) {
|
|
|
3588
3586
|
}), ue.remove();
|
|
3589
3587
|
});
|
|
3590
3588
|
};
|
|
3591
|
-
}, [r,
|
|
3589
|
+
}, [r, _, O, $, T, E, y, L, R, I]), x.useEffect(() => (queueMicrotask(() => {
|
|
3592
3590
|
S.current = !1;
|
|
3593
3591
|
}), () => {
|
|
3594
3592
|
queueMicrotask(Zn);
|
|
3595
|
-
}), [r]),
|
|
3593
|
+
}), [r]), de(() => {
|
|
3596
3594
|
if (!r && M)
|
|
3597
3595
|
return M.setFocusManagerState({
|
|
3598
3596
|
modal: c,
|
|
@@ -3603,57 +3601,57 @@ function za(e) {
|
|
|
3603
3601
|
}), () => {
|
|
3604
3602
|
M.setFocusManagerState(null);
|
|
3605
3603
|
};
|
|
3606
|
-
}, [r, M, c, v, h, f, R]),
|
|
3607
|
-
r ||
|
|
3608
|
-
}, [r,
|
|
3609
|
-
function
|
|
3604
|
+
}, [r, M, c, v, h, f, R]), de(() => {
|
|
3605
|
+
r || O && Zr(O, H);
|
|
3606
|
+
}, [r, O, H]);
|
|
3607
|
+
function se(q) {
|
|
3610
3608
|
return r || !p || !c ? null : /* @__PURE__ */ z.jsx(Ya, {
|
|
3611
|
-
ref: q === "start" ?
|
|
3612
|
-
onClick: (
|
|
3609
|
+
ref: q === "start" ? Y : k,
|
|
3610
|
+
onClick: (te) => h(!1, te.nativeEvent),
|
|
3613
3611
|
children: typeof p == "string" ? p : "Dismiss"
|
|
3614
3612
|
});
|
|
3615
3613
|
}
|
|
3616
|
-
const
|
|
3614
|
+
const ge = !r && A && (c ? !P : !0) && (L || c);
|
|
3617
3615
|
return /* @__PURE__ */ z.jsxs(z.Fragment, {
|
|
3618
|
-
children: [
|
|
3616
|
+
children: [ge && /* @__PURE__ */ z.jsx(Kt, {
|
|
3619
3617
|
"data-type": "inside",
|
|
3620
|
-
ref:
|
|
3618
|
+
ref: W,
|
|
3621
3619
|
onFocus: (q) => {
|
|
3622
3620
|
if (c) {
|
|
3623
|
-
const
|
|
3624
|
-
ot(o[0] === "reference" ?
|
|
3621
|
+
const Q = K();
|
|
3622
|
+
ot(o[0] === "reference" ? Q[0] : Q[Q.length - 1]);
|
|
3625
3623
|
} else if (M != null && M.preserveTabOrder && M.portalNode)
|
|
3626
3624
|
if (S.current = !1, wt(q, M.portalNode)) {
|
|
3627
|
-
const
|
|
3628
|
-
|
|
3625
|
+
const Q = Mo(R);
|
|
3626
|
+
Q?.focus();
|
|
3629
3627
|
} else {
|
|
3630
|
-
var
|
|
3631
|
-
(
|
|
3628
|
+
var te;
|
|
3629
|
+
(te = M.beforeOutsideRef.current) == null || te.focus();
|
|
3632
3630
|
}
|
|
3633
3631
|
}
|
|
3634
|
-
}), !
|
|
3632
|
+
}), !P && se("start"), n, se("end"), ge && /* @__PURE__ */ z.jsx(Kt, {
|
|
3635
3633
|
"data-type": "inside",
|
|
3636
|
-
ref:
|
|
3634
|
+
ref: J,
|
|
3637
3635
|
onFocus: (q) => {
|
|
3638
3636
|
if (c)
|
|
3639
|
-
ot(
|
|
3637
|
+
ot(K()[0]);
|
|
3640
3638
|
else if (M != null && M.preserveTabOrder && M.portalNode)
|
|
3641
3639
|
if (f && (S.current = !0), wt(q, M.portalNode)) {
|
|
3642
|
-
const
|
|
3643
|
-
|
|
3640
|
+
const Q = Do(R);
|
|
3641
|
+
Q?.focus();
|
|
3644
3642
|
} else {
|
|
3645
|
-
var
|
|
3646
|
-
(
|
|
3643
|
+
var te;
|
|
3644
|
+
(te = M.afterOutsideRef.current) == null || te.focus();
|
|
3647
3645
|
}
|
|
3648
3646
|
}
|
|
3649
3647
|
})]
|
|
3650
3648
|
});
|
|
3651
3649
|
}
|
|
3652
3650
|
function Qr(e) {
|
|
3653
|
-
return
|
|
3651
|
+
return le(e.target) && e.target.tagName === "BUTTON";
|
|
3654
3652
|
}
|
|
3655
3653
|
function Ga(e) {
|
|
3656
|
-
return
|
|
3654
|
+
return le(e.target) && e.target.tagName === "A";
|
|
3657
3655
|
}
|
|
3658
3656
|
function eo(e) {
|
|
3659
3657
|
return Xn(e);
|
|
@@ -3745,45 +3743,45 @@ function Ka(e, t) {
|
|
|
3745
3743
|
axis: l = "both",
|
|
3746
3744
|
x: c = null,
|
|
3747
3745
|
y: p = null
|
|
3748
|
-
} = t, f = x.useRef(!1), a = x.useRef(null), [g, v] = x.useState(), [h, E] = x.useState([]), T = we((C,
|
|
3746
|
+
} = t, f = x.useRef(!1), a = x.useRef(null), [g, v] = x.useState(), [h, E] = x.useState([]), T = we((C, P) => {
|
|
3749
3747
|
f.current || r.current.openEvent && !to(r.current.openEvent) || s.setPositionReference(Xa(i, {
|
|
3750
3748
|
x: C,
|
|
3751
|
-
y:
|
|
3749
|
+
y: P,
|
|
3752
3750
|
axis: l,
|
|
3753
3751
|
dataRef: r,
|
|
3754
3752
|
pointerType: g
|
|
3755
3753
|
}));
|
|
3756
3754
|
}), R = we((C) => {
|
|
3757
3755
|
c != null || p != null || (n ? a.current || E([]) : T(C.clientX, C.clientY));
|
|
3758
|
-
}),
|
|
3759
|
-
if (!
|
|
3756
|
+
}), _ = lt(g) ? o : n, I = x.useCallback(() => {
|
|
3757
|
+
if (!_ || !u || c != null || p != null) return;
|
|
3760
3758
|
const C = Re(o);
|
|
3761
|
-
function
|
|
3762
|
-
const
|
|
3763
|
-
he(o,
|
|
3759
|
+
function P(j) {
|
|
3760
|
+
const A = Ie(j);
|
|
3761
|
+
he(o, A) ? (C.removeEventListener("mousemove", P), a.current = null) : T(j.clientX, j.clientY);
|
|
3764
3762
|
}
|
|
3765
3763
|
if (!r.current.openEvent || to(r.current.openEvent)) {
|
|
3766
|
-
C.addEventListener("mousemove",
|
|
3767
|
-
const
|
|
3768
|
-
C.removeEventListener("mousemove",
|
|
3764
|
+
C.addEventListener("mousemove", P);
|
|
3765
|
+
const j = () => {
|
|
3766
|
+
C.removeEventListener("mousemove", P), a.current = null;
|
|
3769
3767
|
};
|
|
3770
|
-
return a.current =
|
|
3768
|
+
return a.current = j, j;
|
|
3771
3769
|
}
|
|
3772
3770
|
s.setPositionReference(i);
|
|
3773
|
-
}, [
|
|
3774
|
-
x.useEffect(() =>
|
|
3771
|
+
}, [_, u, c, p, o, r, s, i, T]);
|
|
3772
|
+
x.useEffect(() => I(), [I, h]), x.useEffect(() => {
|
|
3775
3773
|
u && !o && (f.current = !1);
|
|
3776
3774
|
}, [u, o]), x.useEffect(() => {
|
|
3777
3775
|
!u && n && (f.current = !0);
|
|
3778
|
-
}, [u, n]),
|
|
3776
|
+
}, [u, n]), de(() => {
|
|
3779
3777
|
u && (c != null || p != null) && (f.current = !1, T(c, p));
|
|
3780
3778
|
}, [u, c, p, T]);
|
|
3781
|
-
const
|
|
3782
|
-
function C(
|
|
3779
|
+
const N = x.useMemo(() => {
|
|
3780
|
+
function C(P) {
|
|
3783
3781
|
let {
|
|
3784
|
-
pointerType:
|
|
3785
|
-
} =
|
|
3786
|
-
v(
|
|
3782
|
+
pointerType: j
|
|
3783
|
+
} = P;
|
|
3784
|
+
v(j);
|
|
3787
3785
|
}
|
|
3788
3786
|
return {
|
|
3789
3787
|
onPointerDown: C,
|
|
@@ -3793,8 +3791,8 @@ function Ka(e, t) {
|
|
|
3793
3791
|
};
|
|
3794
3792
|
}, [R]);
|
|
3795
3793
|
return x.useMemo(() => u ? {
|
|
3796
|
-
reference:
|
|
3797
|
-
} : {}, [u,
|
|
3794
|
+
reference: N
|
|
3795
|
+
} : {}, [u, N]);
|
|
3798
3796
|
}
|
|
3799
3797
|
const Ja = {
|
|
3800
3798
|
pointerdown: "onPointerDown",
|
|
@@ -3829,102 +3827,102 @@ function Qa(e, t) {
|
|
|
3829
3827
|
bubbles: g,
|
|
3830
3828
|
capture: v
|
|
3831
3829
|
} = t, h = _t(), E = we(typeof l == "function" ? l : () => !1), T = typeof l == "function" ? E : l, R = x.useRef(!1), {
|
|
3832
|
-
escapeKey:
|
|
3833
|
-
outsidePress:
|
|
3830
|
+
escapeKey: _,
|
|
3831
|
+
outsidePress: I
|
|
3834
3832
|
} = no(g), {
|
|
3835
|
-
escapeKey:
|
|
3833
|
+
escapeKey: N,
|
|
3836
3834
|
outsidePress: C
|
|
3837
|
-
} = no(v),
|
|
3835
|
+
} = no(v), P = x.useRef(!1), j = we((y) => {
|
|
3838
3836
|
var M;
|
|
3839
|
-
if (!n || !s || !u ||
|
|
3837
|
+
if (!n || !s || !u || y.key !== "Escape" || P.current)
|
|
3840
3838
|
return;
|
|
3841
|
-
const
|
|
3842
|
-
if (!
|
|
3839
|
+
const Y = (M = i.current.floatingContext) == null ? void 0 : M.nodeId, k = h ? st(h.nodesRef.current, Y) : [];
|
|
3840
|
+
if (!_ && (y.stopPropagation(), k.length > 0)) {
|
|
3843
3841
|
let S = !0;
|
|
3844
|
-
if (
|
|
3845
|
-
var
|
|
3846
|
-
if ((
|
|
3842
|
+
if (k.forEach((F) => {
|
|
3843
|
+
var B;
|
|
3844
|
+
if ((B = F.context) != null && B.open && !F.context.dataRef.current.__escapeKeyBubbles) {
|
|
3847
3845
|
S = !1;
|
|
3848
3846
|
return;
|
|
3849
3847
|
}
|
|
3850
3848
|
}), !S)
|
|
3851
3849
|
return;
|
|
3852
3850
|
}
|
|
3853
|
-
r(!1, Rc(
|
|
3854
|
-
}),
|
|
3851
|
+
r(!1, Rc(y) ? y.nativeEvent : y, "escape-key");
|
|
3852
|
+
}), A = we((y) => {
|
|
3855
3853
|
var M;
|
|
3856
|
-
const
|
|
3857
|
-
var
|
|
3858
|
-
|
|
3854
|
+
const Y = () => {
|
|
3855
|
+
var k;
|
|
3856
|
+
j(y), (k = Ie(y)) == null || k.removeEventListener("keydown", Y);
|
|
3859
3857
|
};
|
|
3860
|
-
(M = Ie(
|
|
3861
|
-
}),
|
|
3858
|
+
(M = Ie(y)) == null || M.addEventListener("keydown", Y);
|
|
3859
|
+
}), D = we((y) => {
|
|
3862
3860
|
var M;
|
|
3863
|
-
const
|
|
3861
|
+
const Y = i.current.insideReactTree;
|
|
3864
3862
|
i.current.insideReactTree = !1;
|
|
3865
|
-
const
|
|
3866
|
-
if (R.current = !1, c === "click" &&
|
|
3863
|
+
const k = R.current;
|
|
3864
|
+
if (R.current = !1, c === "click" && k || Y || typeof T == "function" && !T(y))
|
|
3867
3865
|
return;
|
|
3868
|
-
const S = Ie(
|
|
3869
|
-
let
|
|
3870
|
-
for (;
|
|
3871
|
-
const
|
|
3872
|
-
if (He(
|
|
3866
|
+
const S = Ie(y), F = "[" + et("inert") + "]", B = be(o.floating).querySelectorAll(F);
|
|
3867
|
+
let b = ie(S) ? S : null;
|
|
3868
|
+
for (; b && !He(b); ) {
|
|
3869
|
+
const K = We(b);
|
|
3870
|
+
if (He(K) || !ie(K))
|
|
3873
3871
|
break;
|
|
3874
|
-
|
|
3872
|
+
b = K;
|
|
3875
3873
|
}
|
|
3876
|
-
if (
|
|
3874
|
+
if (B.length && ie(S) && !wc(S) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
3877
3875
|
!he(S, o.floating) && // If the target root element contains none of the markers, then the
|
|
3878
3876
|
// element was injected after the floating element rendered.
|
|
3879
|
-
Array.from(
|
|
3877
|
+
Array.from(B).every((K) => !he(b, K)))
|
|
3880
3878
|
return;
|
|
3881
|
-
if (
|
|
3882
|
-
const
|
|
3883
|
-
if (
|
|
3879
|
+
if (le(S) && $) {
|
|
3880
|
+
const K = He(S), Z = _e(S), G = /auto|scroll/, W = K || G.test(Z.overflowX), J = K || G.test(Z.overflowY), se = W && S.clientWidth > 0 && S.scrollWidth > S.clientWidth, ge = J && S.clientHeight > 0 && S.scrollHeight > S.clientHeight, q = Z.direction === "rtl", te = ge && (q ? y.offsetX <= S.offsetWidth - S.clientWidth : y.offsetX > S.clientWidth), Q = se && y.offsetY > S.clientHeight;
|
|
3881
|
+
if (te || Q)
|
|
3884
3882
|
return;
|
|
3885
3883
|
}
|
|
3886
|
-
const
|
|
3887
|
-
var
|
|
3888
|
-
return wn(
|
|
3884
|
+
const L = (M = i.current.floatingContext) == null ? void 0 : M.nodeId, O = h && st(h.nodesRef.current, L).some((K) => {
|
|
3885
|
+
var Z;
|
|
3886
|
+
return wn(y, (Z = K.context) == null ? void 0 : Z.elements.floating);
|
|
3889
3887
|
});
|
|
3890
|
-
if (wn(
|
|
3888
|
+
if (wn(y, o.floating) || wn(y, o.domReference) || O)
|
|
3891
3889
|
return;
|
|
3892
|
-
const
|
|
3893
|
-
if (
|
|
3894
|
-
let
|
|
3895
|
-
if (
|
|
3896
|
-
var
|
|
3897
|
-
if ((
|
|
3898
|
-
|
|
3890
|
+
const X = h ? st(h.nodesRef.current, L) : [];
|
|
3891
|
+
if (X.length > 0) {
|
|
3892
|
+
let K = !0;
|
|
3893
|
+
if (X.forEach((Z) => {
|
|
3894
|
+
var G;
|
|
3895
|
+
if ((G = Z.context) != null && G.open && !Z.context.dataRef.current.__outsidePressBubbles) {
|
|
3896
|
+
K = !1;
|
|
3899
3897
|
return;
|
|
3900
3898
|
}
|
|
3901
|
-
}), !
|
|
3899
|
+
}), !K)
|
|
3902
3900
|
return;
|
|
3903
3901
|
}
|
|
3904
|
-
r(!1,
|
|
3905
|
-
}),
|
|
3902
|
+
r(!1, y, "outside-press");
|
|
3903
|
+
}), H = we((y) => {
|
|
3906
3904
|
var M;
|
|
3907
|
-
const
|
|
3908
|
-
var
|
|
3909
|
-
|
|
3905
|
+
const Y = () => {
|
|
3906
|
+
var k;
|
|
3907
|
+
D(y), (k = Ie(y)) == null || k.removeEventListener(c, Y);
|
|
3910
3908
|
};
|
|
3911
|
-
(M = Ie(
|
|
3909
|
+
(M = Ie(y)) == null || M.addEventListener(c, Y);
|
|
3912
3910
|
});
|
|
3913
3911
|
x.useEffect(() => {
|
|
3914
3912
|
if (!n || !s)
|
|
3915
3913
|
return;
|
|
3916
|
-
i.current.__escapeKeyBubbles =
|
|
3917
|
-
let
|
|
3918
|
-
function M(
|
|
3919
|
-
r(!1,
|
|
3914
|
+
i.current.__escapeKeyBubbles = _, i.current.__outsidePressBubbles = I;
|
|
3915
|
+
let y = -1;
|
|
3916
|
+
function M(B) {
|
|
3917
|
+
r(!1, B, "ancestor-scroll");
|
|
3920
3918
|
}
|
|
3921
|
-
function
|
|
3922
|
-
window.clearTimeout(
|
|
3919
|
+
function Y() {
|
|
3920
|
+
window.clearTimeout(y), P.current = !0;
|
|
3923
3921
|
}
|
|
3924
|
-
function
|
|
3925
|
-
|
|
3922
|
+
function k() {
|
|
3923
|
+
y = window.setTimeout(
|
|
3926
3924
|
() => {
|
|
3927
|
-
|
|
3925
|
+
P.current = !1;
|
|
3928
3926
|
},
|
|
3929
3927
|
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
3930
3928
|
// Only apply to WebKit for the test to remain 0ms.
|
|
@@ -3932,37 +3930,37 @@ function Qa(e, t) {
|
|
|
3932
3930
|
);
|
|
3933
3931
|
}
|
|
3934
3932
|
const S = be(o.floating);
|
|
3935
|
-
u && (S.addEventListener("keydown",
|
|
3936
|
-
let
|
|
3937
|
-
return a && (
|
|
3938
|
-
var
|
|
3939
|
-
return
|
|
3940
|
-
}),
|
|
3941
|
-
|
|
3933
|
+
u && (S.addEventListener("keydown", N ? A : j, N), S.addEventListener("compositionstart", Y), S.addEventListener("compositionend", k)), T && S.addEventListener(c, C ? H : D, C);
|
|
3934
|
+
let F = [];
|
|
3935
|
+
return a && (ie(o.domReference) && (F = ze(o.domReference)), ie(o.floating) && (F = F.concat(ze(o.floating))), !ie(o.reference) && o.reference && o.reference.contextElement && (F = F.concat(ze(o.reference.contextElement)))), F = F.filter((B) => {
|
|
3936
|
+
var b;
|
|
3937
|
+
return B !== ((b = S.defaultView) == null ? void 0 : b.visualViewport);
|
|
3938
|
+
}), F.forEach((B) => {
|
|
3939
|
+
B.addEventListener("scroll", M, {
|
|
3942
3940
|
passive: !0
|
|
3943
3941
|
});
|
|
3944
3942
|
}), () => {
|
|
3945
|
-
u && (S.removeEventListener("keydown",
|
|
3946
|
-
|
|
3947
|
-
}), window.clearTimeout(
|
|
3943
|
+
u && (S.removeEventListener("keydown", N ? A : j, N), S.removeEventListener("compositionstart", Y), S.removeEventListener("compositionend", k)), T && S.removeEventListener(c, C ? H : D, C), F.forEach((B) => {
|
|
3944
|
+
B.removeEventListener("scroll", M);
|
|
3945
|
+
}), window.clearTimeout(y);
|
|
3948
3946
|
};
|
|
3949
|
-
}, [i, o, u, T, c, n, r, a, s,
|
|
3947
|
+
}, [i, o, u, T, c, n, r, a, s, _, I, j, N, A, D, C, H]), x.useEffect(() => {
|
|
3950
3948
|
i.current.insideReactTree = !1;
|
|
3951
3949
|
}, [i, T, c]);
|
|
3952
|
-
const
|
|
3953
|
-
onKeyDown:
|
|
3950
|
+
const U = x.useMemo(() => ({
|
|
3951
|
+
onKeyDown: j,
|
|
3954
3952
|
...p && {
|
|
3955
|
-
[Ja[f]]: (
|
|
3956
|
-
r(!1,
|
|
3953
|
+
[Ja[f]]: (y) => {
|
|
3954
|
+
r(!1, y.nativeEvent, "reference-press");
|
|
3957
3955
|
},
|
|
3958
3956
|
...f !== "click" && {
|
|
3959
|
-
onClick(
|
|
3960
|
-
r(!1,
|
|
3957
|
+
onClick(y) {
|
|
3958
|
+
r(!1, y.nativeEvent, "reference-press");
|
|
3961
3959
|
}
|
|
3962
3960
|
}
|
|
3963
3961
|
}
|
|
3964
|
-
}), [
|
|
3965
|
-
onKeyDown:
|
|
3962
|
+
}), [j, r, p, f]), $ = x.useMemo(() => ({
|
|
3963
|
+
onKeyDown: j,
|
|
3966
3964
|
onMouseDown() {
|
|
3967
3965
|
R.current = !0;
|
|
3968
3966
|
},
|
|
@@ -3972,11 +3970,11 @@ function Qa(e, t) {
|
|
|
3972
3970
|
[Za[c]]: () => {
|
|
3973
3971
|
i.current.insideReactTree = !0;
|
|
3974
3972
|
}
|
|
3975
|
-
}), [
|
|
3973
|
+
}), [j, c, i]);
|
|
3976
3974
|
return x.useMemo(() => s ? {
|
|
3977
|
-
reference:
|
|
3978
|
-
floating:
|
|
3979
|
-
} : {}, [s,
|
|
3975
|
+
reference: U,
|
|
3976
|
+
floating: $
|
|
3977
|
+
} : {}, [s, U, $]);
|
|
3980
3978
|
}
|
|
3981
3979
|
function eu(e) {
|
|
3982
3980
|
const {
|
|
@@ -3986,7 +3984,7 @@ function eu(e) {
|
|
|
3986
3984
|
} = e, o = Ot(), i = x.useRef({}), [s] = x.useState(() => Bo()), u = dt() != null;
|
|
3987
3985
|
if (process.env.NODE_ENV !== "production") {
|
|
3988
3986
|
const g = r.reference;
|
|
3989
|
-
g && !
|
|
3987
|
+
g && !ie(g) && Aa("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3990
3988
|
}
|
|
3991
3989
|
const [l, c] = x.useState(r.reference), p = we((g, v, h) => {
|
|
3992
3990
|
i.current.openEvent = g ? v : void 0, s.emit("openchange", {
|
|
@@ -4024,7 +4022,7 @@ function tu(e) {
|
|
|
4024
4022
|
...e.elements
|
|
4025
4023
|
}
|
|
4026
4024
|
}), r = e.rootContext || n, o = r.elements, [i, s] = x.useState(null), [u, l] = x.useState(null), p = o?.domReference || i, f = x.useRef(null), a = _t();
|
|
4027
|
-
|
|
4025
|
+
de(() => {
|
|
4028
4026
|
p && (f.current = p);
|
|
4029
4027
|
}, [p]);
|
|
4030
4028
|
const g = ma({
|
|
@@ -4035,18 +4033,18 @@ function tu(e) {
|
|
|
4035
4033
|
reference: u
|
|
4036
4034
|
}
|
|
4037
4035
|
}
|
|
4038
|
-
}), v = x.useCallback((
|
|
4039
|
-
const
|
|
4040
|
-
getBoundingClientRect: () =>
|
|
4041
|
-
getClientRects: () =>
|
|
4042
|
-
contextElement:
|
|
4043
|
-
} :
|
|
4044
|
-
l(
|
|
4045
|
-
}, [g.refs]), h = x.useCallback((
|
|
4046
|
-
(
|
|
4036
|
+
}), v = x.useCallback((_) => {
|
|
4037
|
+
const I = ie(_) ? {
|
|
4038
|
+
getBoundingClientRect: () => _.getBoundingClientRect(),
|
|
4039
|
+
getClientRects: () => _.getClientRects(),
|
|
4040
|
+
contextElement: _
|
|
4041
|
+
} : _;
|
|
4042
|
+
l(I), g.refs.setReference(I);
|
|
4043
|
+
}, [g.refs]), h = x.useCallback((_) => {
|
|
4044
|
+
(ie(_) || _ === null) && (f.current = _, s(_)), (ie(g.refs.reference.current) || g.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
4047
4045
|
// `null` to support `positionReference` + an unstable `reference`
|
|
4048
4046
|
// callback ref.
|
|
4049
|
-
|
|
4047
|
+
_ !== null && !ie(_)) && g.refs.setReference(_);
|
|
4050
4048
|
}, [g.refs]), E = x.useMemo(() => ({
|
|
4051
4049
|
...g.refs,
|
|
4052
4050
|
setReference: h,
|
|
@@ -4062,10 +4060,10 @@ function tu(e) {
|
|
|
4062
4060
|
elements: T,
|
|
4063
4061
|
nodeId: t
|
|
4064
4062
|
}), [g, E, T, t, r]);
|
|
4065
|
-
return
|
|
4063
|
+
return de(() => {
|
|
4066
4064
|
r.dataRef.current.floatingContext = R;
|
|
4067
|
-
const
|
|
4068
|
-
|
|
4065
|
+
const _ = a?.nodesRef.current.find((I) => I.id === t);
|
|
4066
|
+
_ && (_.context = R);
|
|
4069
4067
|
}), x.useMemo(() => ({
|
|
4070
4068
|
...g,
|
|
4071
4069
|
context: R,
|
|
@@ -4092,7 +4090,7 @@ function nu(e, t) {
|
|
|
4092
4090
|
if (!u) return;
|
|
4093
4091
|
const g = Re(s.domReference);
|
|
4094
4092
|
function v() {
|
|
4095
|
-
!n &&
|
|
4093
|
+
!n && le(s.domReference) && s.domReference === Ve(be(s.domReference)) && (c.current = !0);
|
|
4096
4094
|
}
|
|
4097
4095
|
function h() {
|
|
4098
4096
|
f.current = !0;
|
|
@@ -4124,7 +4122,7 @@ function nu(e, t) {
|
|
|
4124
4122
|
onFocus(g) {
|
|
4125
4123
|
if (c.current) return;
|
|
4126
4124
|
const v = Ie(g.nativeEvent);
|
|
4127
|
-
if (l &&
|
|
4125
|
+
if (l && ie(v)) {
|
|
4128
4126
|
if (Cn() && !g.relatedTarget) {
|
|
4129
4127
|
if (!f.current && !Xn(v))
|
|
4130
4128
|
return;
|
|
@@ -4135,7 +4133,7 @@ function nu(e, t) {
|
|
|
4135
4133
|
},
|
|
4136
4134
|
onBlur(g) {
|
|
4137
4135
|
c.current = !1;
|
|
4138
|
-
const v = g.relatedTarget, h = g.nativeEvent, E =
|
|
4136
|
+
const v = g.relatedTarget, h = g.nativeEvent, E = ie(v) && v.hasAttribute(et("focus-guard")) && v.getAttribute("data-type") === "outside";
|
|
4139
4137
|
p.current = window.setTimeout(() => {
|
|
4140
4138
|
var T;
|
|
4141
4139
|
const R = Ve(s.domReference ? s.domReference.ownerDocument : document);
|
|
@@ -4255,12 +4253,12 @@ function iu(e, t) {
|
|
|
4255
4253
|
};
|
|
4256
4254
|
}, [a, f, p, l]), T = x.useCallback((R) => {
|
|
4257
4255
|
let {
|
|
4258
|
-
active:
|
|
4259
|
-
selected:
|
|
4256
|
+
active: _,
|
|
4257
|
+
selected: I
|
|
4260
4258
|
} = R;
|
|
4261
|
-
const
|
|
4259
|
+
const N = {
|
|
4262
4260
|
role: "option",
|
|
4263
|
-
...
|
|
4261
|
+
..._ && {
|
|
4264
4262
|
id: f + "-fui-option"
|
|
4265
4263
|
}
|
|
4266
4264
|
};
|
|
@@ -4268,8 +4266,8 @@ function iu(e, t) {
|
|
|
4268
4266
|
case "select":
|
|
4269
4267
|
case "combobox":
|
|
4270
4268
|
return {
|
|
4271
|
-
...
|
|
4272
|
-
"aria-selected":
|
|
4269
|
+
...N,
|
|
4270
|
+
"aria-selected": I
|
|
4273
4271
|
};
|
|
4274
4272
|
}
|
|
4275
4273
|
return {};
|
|
@@ -4303,7 +4301,7 @@ function cu(e, t) {
|
|
|
4303
4301
|
} = e, {
|
|
4304
4302
|
duration: o = 250
|
|
4305
4303
|
} = t, s = (typeof o == "number" ? o : o.close) || 0, [u, l] = x.useState("unmounted"), c = su(n, s);
|
|
4306
|
-
return !c && u === "close" && l("unmounted"),
|
|
4304
|
+
return !c && u === "close" && l("unmounted"), de(() => {
|
|
4307
4305
|
if (r) {
|
|
4308
4306
|
if (n) {
|
|
4309
4307
|
l("initial");
|
|
@@ -4344,28 +4342,28 @@ function au(e, t) {
|
|
|
4344
4342
|
status: E
|
|
4345
4343
|
} = cu(e, {
|
|
4346
4344
|
duration: s
|
|
4347
|
-
}), T = Me(n), R = Me(r),
|
|
4348
|
-
return
|
|
4349
|
-
const
|
|
4350
|
-
if (E === "initial" && v((
|
|
4351
|
-
transitionProperty:
|
|
4352
|
-
...
|
|
4353
|
-
...
|
|
4345
|
+
}), T = Me(n), R = Me(r), _ = Me(o), I = Me(i);
|
|
4346
|
+
return de(() => {
|
|
4347
|
+
const N = it(T.current, c), C = it(_.current, c), P = it(I.current, c), j = it(R.current, c) || Object.keys(N).reduce((A, D) => (A[D] = "", A), {});
|
|
4348
|
+
if (E === "initial" && v((A) => ({
|
|
4349
|
+
transitionProperty: A.transitionProperty,
|
|
4350
|
+
...P,
|
|
4351
|
+
...N
|
|
4354
4352
|
})), E === "open" && v({
|
|
4355
|
-
transitionProperty: Object.keys(
|
|
4353
|
+
transitionProperty: Object.keys(j).map(ro).join(","),
|
|
4356
4354
|
transitionDuration: f + "ms",
|
|
4357
|
-
...
|
|
4358
|
-
...
|
|
4355
|
+
...P,
|
|
4356
|
+
...j
|
|
4359
4357
|
}), E === "close") {
|
|
4360
|
-
const
|
|
4358
|
+
const A = C || N;
|
|
4361
4359
|
v({
|
|
4362
|
-
transitionProperty: Object.keys(
|
|
4360
|
+
transitionProperty: Object.keys(A).map(ro).join(","),
|
|
4363
4361
|
transitionDuration: a + "ms",
|
|
4364
|
-
...
|
|
4365
|
-
...
|
|
4362
|
+
...P,
|
|
4363
|
+
...A
|
|
4366
4364
|
});
|
|
4367
4365
|
}
|
|
4368
|
-
}, [a,
|
|
4366
|
+
}, [a, _, T, R, I, f, E, c]), {
|
|
4369
4367
|
isMounted: h,
|
|
4370
4368
|
styles: g
|
|
4371
4369
|
};
|
|
@@ -4416,71 +4414,71 @@ function lu(e) {
|
|
|
4416
4414
|
nodeId: T,
|
|
4417
4415
|
tree: R
|
|
4418
4416
|
} = f;
|
|
4419
|
-
return function(
|
|
4420
|
-
function
|
|
4417
|
+
return function(I) {
|
|
4418
|
+
function N() {
|
|
4421
4419
|
xe(o), E();
|
|
4422
4420
|
}
|
|
4423
4421
|
if (xe(o), !h.domReference || !h.floating || v == null || a == null || g == null)
|
|
4424
4422
|
return;
|
|
4425
4423
|
const {
|
|
4426
4424
|
clientX: C,
|
|
4427
|
-
clientY:
|
|
4428
|
-
} =
|
|
4429
|
-
if (
|
|
4425
|
+
clientY: P
|
|
4426
|
+
} = I, j = [C, P], A = ka(I), D = I.type === "mouseleave", H = On(h.floating, A), U = On(h.domReference, A), $ = h.domReference.getBoundingClientRect(), y = h.floating.getBoundingClientRect(), M = v.split("-")[0], Y = a > y.right - y.width / 2, k = g > y.bottom - y.height / 2, S = uu(j, $), F = y.width > $.width, B = y.height > $.height, b = (F ? $ : y).left, L = (F ? $ : y).right, O = (B ? $ : y).top, X = (B ? $ : y).bottom;
|
|
4427
|
+
if (H && (i = !0, !D))
|
|
4430
4428
|
return;
|
|
4431
|
-
if (
|
|
4429
|
+
if (U && (i = !1), U && !D) {
|
|
4432
4430
|
i = !0;
|
|
4433
4431
|
return;
|
|
4434
4432
|
}
|
|
4435
|
-
if (
|
|
4433
|
+
if (D && ie(I.relatedTarget) && On(h.floating, I.relatedTarget) || R && Go(R.nodesRef.current, T).length)
|
|
4436
4434
|
return;
|
|
4437
|
-
if (M === "top" && g >=
|
|
4438
|
-
return
|
|
4439
|
-
let
|
|
4435
|
+
if (M === "top" && g >= $.bottom - 1 || M === "bottom" && g <= $.top + 1 || M === "left" && a >= $.right - 1 || M === "right" && a <= $.left + 1)
|
|
4436
|
+
return N();
|
|
4437
|
+
let K = [];
|
|
4440
4438
|
switch (M) {
|
|
4441
4439
|
case "top":
|
|
4442
|
-
|
|
4440
|
+
K = [[b, $.top + 1], [b, y.bottom - 1], [L, y.bottom - 1], [L, $.top + 1]];
|
|
4443
4441
|
break;
|
|
4444
4442
|
case "bottom":
|
|
4445
|
-
|
|
4443
|
+
K = [[b, y.top + 1], [b, $.bottom - 1], [L, $.bottom - 1], [L, y.top + 1]];
|
|
4446
4444
|
break;
|
|
4447
4445
|
case "left":
|
|
4448
|
-
|
|
4446
|
+
K = [[y.right - 1, X], [y.right - 1, O], [$.left + 1, O], [$.left + 1, X]];
|
|
4449
4447
|
break;
|
|
4450
4448
|
case "right":
|
|
4451
|
-
|
|
4449
|
+
K = [[$.right - 1, X], [$.right - 1, O], [y.left + 1, O], [y.left + 1, X]];
|
|
4452
4450
|
break;
|
|
4453
4451
|
}
|
|
4454
|
-
function
|
|
4455
|
-
let [
|
|
4452
|
+
function Z(G) {
|
|
4453
|
+
let [W, J] = G;
|
|
4456
4454
|
switch (M) {
|
|
4457
4455
|
case "top": {
|
|
4458
|
-
const
|
|
4459
|
-
return [
|
|
4456
|
+
const se = [F ? W + t / 2 : Y ? W + t * 4 : W - t * 4, J + t + 1], ge = [F ? W - t / 2 : Y ? W + t * 4 : W - t * 4, J + t + 1], q = [[y.left, Y || F ? y.bottom - t : y.top], [y.right, Y ? F ? y.bottom - t : y.top : y.bottom - t]];
|
|
4457
|
+
return [se, ge, ...q];
|
|
4460
4458
|
}
|
|
4461
4459
|
case "bottom": {
|
|
4462
|
-
const
|
|
4463
|
-
return [
|
|
4460
|
+
const se = [F ? W + t / 2 : Y ? W + t * 4 : W - t * 4, J - t], ge = [F ? W - t / 2 : Y ? W + t * 4 : W - t * 4, J - t], q = [[y.left, Y || F ? y.top + t : y.bottom], [y.right, Y ? F ? y.top + t : y.bottom : y.top + t]];
|
|
4461
|
+
return [se, ge, ...q];
|
|
4464
4462
|
}
|
|
4465
4463
|
case "left": {
|
|
4466
|
-
const
|
|
4467
|
-
return [...[[
|
|
4464
|
+
const se = [W + t + 1, B ? J + t / 2 : k ? J + t * 4 : J - t * 4], ge = [W + t + 1, B ? J - t / 2 : k ? J + t * 4 : J - t * 4];
|
|
4465
|
+
return [...[[k || B ? y.right - t : y.left, y.top], [k ? B ? y.right - t : y.left : y.right - t, y.bottom]], se, ge];
|
|
4468
4466
|
}
|
|
4469
4467
|
case "right": {
|
|
4470
|
-
const
|
|
4471
|
-
return [
|
|
4468
|
+
const se = [W - t, B ? J + t / 2 : k ? J + t * 4 : J - t * 4], ge = [W - t, B ? J - t / 2 : k ? J + t * 4 : J - t * 4], q = [[k || B ? y.left + t : y.right, y.top], [k ? B ? y.left + t : y.right : y.left + t, y.bottom]];
|
|
4469
|
+
return [se, ge, ...q];
|
|
4472
4470
|
}
|
|
4473
4471
|
}
|
|
4474
4472
|
}
|
|
4475
|
-
if (!oo([C,
|
|
4473
|
+
if (!oo([C, P], K)) {
|
|
4476
4474
|
if (i && !S)
|
|
4477
|
-
return
|
|
4478
|
-
if (!
|
|
4479
|
-
const
|
|
4480
|
-
if (
|
|
4481
|
-
return
|
|
4475
|
+
return N();
|
|
4476
|
+
if (!D && r) {
|
|
4477
|
+
const G = c(I.clientX, I.clientY);
|
|
4478
|
+
if (G !== null && G < 0.1)
|
|
4479
|
+
return N();
|
|
4482
4480
|
}
|
|
4483
|
-
oo([C,
|
|
4481
|
+
oo([C, P], Z([a, g])) ? !i && r && (o.current = window.setTimeout(N, 40)) : N();
|
|
4484
4482
|
}
|
|
4485
4483
|
};
|
|
4486
4484
|
};
|
|
@@ -4546,73 +4544,73 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
|
|
|
4546
4544
|
shiftOptions: E,
|
|
4547
4545
|
useArrow: T = !1,
|
|
4548
4546
|
arrowOptions: R,
|
|
4549
|
-
transitionOptions:
|
|
4550
|
-
useAutoPlacement:
|
|
4551
|
-
autoPlacementOptions:
|
|
4547
|
+
transitionOptions: _,
|
|
4548
|
+
useAutoPlacement: I = !1,
|
|
4549
|
+
autoPlacementOptions: N,
|
|
4552
4550
|
useAutoUpdate: C = !1,
|
|
4553
|
-
autoUpdateOptions:
|
|
4554
|
-
useAutoSize:
|
|
4555
|
-
minAcceptableWidth:
|
|
4556
|
-
minAcceptableHeight:
|
|
4557
|
-
maxAcceptableWidth:
|
|
4558
|
-
maxAcceptableHeight:
|
|
4559
|
-
onOpen:
|
|
4560
|
-
onClose:
|
|
4551
|
+
autoUpdateOptions: P,
|
|
4552
|
+
useAutoSize: j = !1,
|
|
4553
|
+
minAcceptableWidth: A = 0,
|
|
4554
|
+
minAcceptableHeight: D = 0,
|
|
4555
|
+
maxAcceptableWidth: H,
|
|
4556
|
+
maxAcceptableHeight: U,
|
|
4557
|
+
onOpen: $,
|
|
4558
|
+
onClose: y
|
|
4561
4559
|
}) => {
|
|
4562
|
-
const { theme: M } = Un(),
|
|
4560
|
+
const { theme: M } = Un(), Y = La(), [k, S] = $n(!1), F = Et(null), B = e && (c ?? k);
|
|
4563
4561
|
qe(() => {
|
|
4564
|
-
|
|
4565
|
-
}, [
|
|
4566
|
-
|
|
4562
|
+
B && $?.();
|
|
4563
|
+
}, [B]), Ps(e, (Z) => {
|
|
4564
|
+
Z || S(!1);
|
|
4567
4565
|
});
|
|
4568
|
-
const
|
|
4569
|
-
f &&
|
|
4570
|
-
let
|
|
4571
|
-
if (
|
|
4566
|
+
const b = [];
|
|
4567
|
+
f && b.push(va(a ?? M.spacings.base));
|
|
4568
|
+
let L = null;
|
|
4569
|
+
if (I ? b.push(xa(N)) : g && (L = ba({
|
|
4572
4570
|
// https://floating-ui.com/docs/flip#combining-with-shift
|
|
4573
4571
|
crossAxis: !1,
|
|
4574
4572
|
fallbackStrategy: "bestFit",
|
|
4575
4573
|
...v
|
|
4576
|
-
})),
|
|
4577
|
-
const
|
|
4578
|
-
apply({ elements:
|
|
4579
|
-
Object.assign(
|
|
4580
|
-
minWidth: `${Math.max(
|
|
4581
|
-
minHeight: `${Math.max(
|
|
4582
|
-
maxWidth: `${Math.min(
|
|
4583
|
-
maxHeight: `${Math.min(
|
|
4574
|
+
})), j) {
|
|
4575
|
+
const Z = wa({
|
|
4576
|
+
apply({ elements: G, rects: W, availableWidth: J, availableHeight: se }) {
|
|
4577
|
+
Object.assign(G.floating.style, {
|
|
4578
|
+
minWidth: `${Math.max(A, W.reference.width)}px`,
|
|
4579
|
+
minHeight: `${Math.max(D, W.reference.height)}px`,
|
|
4580
|
+
maxWidth: `${Math.min(J, H ?? 1 / 0)}px`,
|
|
4581
|
+
maxHeight: `${Math.min(se, U ?? 1 / 0)}px`
|
|
4584
4582
|
});
|
|
4585
4583
|
}
|
|
4586
4584
|
});
|
|
4587
|
-
|
|
4588
|
-
} else
|
|
4589
|
-
h &&
|
|
4585
|
+
L ? v?.fallbackStrategy === "initialPlacement" ? b.push(Z, L) : b.push(L, Z) : b.push(Z);
|
|
4586
|
+
} else L && b.push(L);
|
|
4587
|
+
h && b.push(
|
|
4590
4588
|
// https://floating-ui.com/docs/shift
|
|
4591
4589
|
ya({
|
|
4592
4590
|
padding: M.spacings.base,
|
|
4593
4591
|
...E
|
|
4594
4592
|
})
|
|
4595
|
-
), T &&
|
|
4593
|
+
), T && b.push(
|
|
4596
4594
|
Ra({
|
|
4597
|
-
element:
|
|
4595
|
+
element: F,
|
|
4598
4596
|
// https://floating-ui.com/docs/floatingarrow#arrow-does-not-avoid-rounded-corners
|
|
4599
4597
|
padding: M.spacings.base,
|
|
4600
4598
|
...R
|
|
4601
4599
|
})
|
|
4602
4600
|
);
|
|
4603
|
-
const
|
|
4604
|
-
nodeId:
|
|
4605
|
-
open:
|
|
4606
|
-
middleware:
|
|
4607
|
-
onOpenChange: (
|
|
4608
|
-
S(
|
|
4601
|
+
const O = tu({
|
|
4602
|
+
nodeId: Y,
|
|
4603
|
+
open: B,
|
|
4604
|
+
middleware: b,
|
|
4605
|
+
onOpenChange: (Z, G, W) => {
|
|
4606
|
+
S(Z), Z || y?.(W, G);
|
|
4609
4607
|
},
|
|
4610
4608
|
// https://floating-ui.com/docs/usefloating#whileelementsmounted
|
|
4611
4609
|
...C && {
|
|
4612
|
-
whileElementsMounted: (
|
|
4610
|
+
whileElementsMounted: (Z, G, W) => sa(Z, G, W, P)
|
|
4613
4611
|
},
|
|
4614
4612
|
...p
|
|
4615
|
-
}),
|
|
4613
|
+
}), X = pu(O.context, {
|
|
4616
4614
|
enabled: e,
|
|
4617
4615
|
event: t,
|
|
4618
4616
|
dismissOptions: n,
|
|
@@ -4622,17 +4620,17 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
|
|
|
4622
4620
|
clientPointsOptions: s,
|
|
4623
4621
|
roleOptions: u,
|
|
4624
4622
|
extraInteractions: l
|
|
4625
|
-
}),
|
|
4623
|
+
}), K = au(O.context, {
|
|
4626
4624
|
duration: 250,
|
|
4627
|
-
...
|
|
4625
|
+
..._
|
|
4628
4626
|
});
|
|
4629
4627
|
return {
|
|
4630
|
-
nodeId:
|
|
4631
|
-
isOpen:
|
|
4632
|
-
floating:
|
|
4633
|
-
arrowRef:
|
|
4634
|
-
interactions:
|
|
4635
|
-
transition:
|
|
4628
|
+
nodeId: Y,
|
|
4629
|
+
isOpen: B,
|
|
4630
|
+
floating: O,
|
|
4631
|
+
arrowRef: F,
|
|
4632
|
+
interactions: X,
|
|
4633
|
+
transition: K
|
|
4636
4634
|
};
|
|
4637
4635
|
}, qo = () => {
|
|
4638
4636
|
const e = Zt(
|
|
@@ -4656,7 +4654,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
|
|
|
4656
4654
|
}) => {
|
|
4657
4655
|
const { useArrow: p, onClose: f } = c, { nodeId: a, floating: g, isOpen: v, arrowRef: h, interactions: E, transition: T } = mu(c), R = Ht(() => {
|
|
4658
4656
|
f?.("escape-key");
|
|
4659
|
-
}, [f]),
|
|
4657
|
+
}, [f]), _ = Rt(
|
|
4660
4658
|
() => ({
|
|
4661
4659
|
context: l,
|
|
4662
4660
|
floatingContext: g.context
|
|
@@ -4670,8 +4668,8 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
|
|
|
4670
4668
|
...E.getReferenceProps(),
|
|
4671
4669
|
...t,
|
|
4672
4670
|
"data-testid": "honey-popup",
|
|
4673
|
-
children: /* @__PURE__ */ z.jsxs(mo, { value:
|
|
4674
|
-
Pn(e,
|
|
4671
|
+
children: /* @__PURE__ */ z.jsxs(mo, { value: _, children: [
|
|
4672
|
+
Pn(e, _),
|
|
4675
4673
|
/* @__PURE__ */ z.jsx(Ma, { id: a, children: T.isMounted && /* @__PURE__ */ z.jsx(gu, { ...s, children: /* @__PURE__ */ z.jsx(
|
|
4676
4674
|
za,
|
|
4677
4675
|
{
|
|
@@ -4709,7 +4707,7 @@ const fu = ({ children: e, enabled: t = !0, ...n }) => {
|
|
|
4709
4707
|
...i
|
|
4710
4708
|
}
|
|
4711
4709
|
),
|
|
4712
|
-
Pn(n,
|
|
4710
|
+
Pn(n, _)
|
|
4713
4711
|
]
|
|
4714
4712
|
}
|
|
4715
4713
|
)
|
|
@@ -4881,16 +4879,16 @@ bt.exports;
|
|
|
4881
4879
|
var so;
|
|
4882
4880
|
function yu() {
|
|
4883
4881
|
return so || (so = 1, (function(e, t) {
|
|
4884
|
-
var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, s = 9007199254740991, u = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", p = "[object Boolean]", f = "[object Date]", a = "[object Error]", g = "[object Function]", v = "[object GeneratorFunction]", h = "[object Map]", E = "[object Number]", T = "[object Null]", R = "[object Object]",
|
|
4885
|
-
|
|
4886
|
-
var
|
|
4882
|
+
var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, s = 9007199254740991, u = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", p = "[object Boolean]", f = "[object Date]", a = "[object Error]", g = "[object Function]", v = "[object GeneratorFunction]", h = "[object Map]", E = "[object Number]", T = "[object Null]", R = "[object Object]", _ = "[object Proxy]", I = "[object RegExp]", N = "[object Set]", C = "[object String]", P = "[object Undefined]", j = "[object WeakMap]", A = "[object ArrayBuffer]", D = "[object DataView]", H = "[object Float32Array]", U = "[object Float64Array]", $ = "[object Int8Array]", y = "[object Int16Array]", M = "[object Int32Array]", Y = "[object Uint8Array]", k = "[object Uint8ClampedArray]", S = "[object Uint16Array]", F = "[object Uint32Array]", B = /[\\^$.*+?()[\]{}|]/g, b = /^\[object .+?Constructor\]$/, L = /^(?:0|[1-9]\d*)$/, O = {};
|
|
4883
|
+
O[H] = O[U] = O[$] = O[y] = O[M] = O[Y] = O[k] = O[S] = O[F] = !0, O[u] = O[l] = O[A] = O[p] = O[D] = O[f] = O[a] = O[g] = O[h] = O[E] = O[R] = O[I] = O[N] = O[C] = O[j] = !1;
|
|
4884
|
+
var X = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, K = typeof self == "object" && self && self.Object === Object && self, Z = X || K || Function("return this")(), G = t && !t.nodeType && t, W = G && !0 && e && !e.nodeType && e, J = W && W.exports === G, se = J && X.process, ge = (function() {
|
|
4887
4885
|
try {
|
|
4888
|
-
var d =
|
|
4889
|
-
return d ||
|
|
4886
|
+
var d = W && W.require && W.require("util").types;
|
|
4887
|
+
return d || se && se.binding && se.binding("util");
|
|
4890
4888
|
} catch {
|
|
4891
4889
|
}
|
|
4892
|
-
})(), q =
|
|
4893
|
-
function
|
|
4890
|
+
})(), q = ge && ge.isTypedArray;
|
|
4891
|
+
function te(d, m, w) {
|
|
4894
4892
|
switch (w.length) {
|
|
4895
4893
|
case 0:
|
|
4896
4894
|
return d.call(m);
|
|
@@ -4903,7 +4901,7 @@ function yu() {
|
|
|
4903
4901
|
}
|
|
4904
4902
|
return d.apply(m, w);
|
|
4905
4903
|
}
|
|
4906
|
-
function
|
|
4904
|
+
function Q(d, m) {
|
|
4907
4905
|
for (var w = -1, V = Array(d); ++w < d; )
|
|
4908
4906
|
V[w] = m(w);
|
|
4909
4907
|
return V;
|
|
@@ -4913,7 +4911,7 @@ function yu() {
|
|
|
4913
4911
|
return d(m);
|
|
4914
4912
|
};
|
|
4915
4913
|
}
|
|
4916
|
-
function
|
|
4914
|
+
function fe(d, m) {
|
|
4917
4915
|
return d?.[m];
|
|
4918
4916
|
}
|
|
4919
4917
|
function re(d, m) {
|
|
@@ -4921,12 +4919,12 @@ function yu() {
|
|
|
4921
4919
|
return d(m(w));
|
|
4922
4920
|
};
|
|
4923
4921
|
}
|
|
4924
|
-
var Ce = Array.prototype, Ee = Function.prototype, pe = Object.prototype, Ae =
|
|
4922
|
+
var Ce = Array.prototype, Ee = Function.prototype, pe = Object.prototype, Ae = Z["__core-js_shared__"], Te = Ee.toString, me = pe.hasOwnProperty, Pe = (function() {
|
|
4925
4923
|
var d = /[^.]+$/.exec(Ae && Ae.keys && Ae.keys.IE_PROTO || "");
|
|
4926
4924
|
return d ? "Symbol(src)_1." + d : "";
|
|
4927
4925
|
})(), gt = pe.toString, Jo = Te.call(Object), Zo = RegExp(
|
|
4928
|
-
"^" + Te.call(me).replace(
|
|
4929
|
-
), Ct =
|
|
4926
|
+
"^" + Te.call(me).replace(B, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
4927
|
+
), Ct = J ? Z.Buffer : void 0, Qn = Z.Symbol, er = Z.Uint8Array;
|
|
4930
4928
|
Ct && Ct.allocUnsafe;
|
|
4931
4929
|
var tr = re(Object.getPrototypeOf, Object), nr = Object.create, Qo = pe.propertyIsEnumerable, ei = Ce.splice, Ke = Qn ? Qn.toStringTag : void 0, At = (function() {
|
|
4932
4930
|
try {
|
|
@@ -4934,7 +4932,7 @@ function yu() {
|
|
|
4934
4932
|
return d({}, "", {}), d;
|
|
4935
4933
|
} catch {
|
|
4936
4934
|
}
|
|
4937
|
-
})(), ti = Ct ? Ct.isBuffer : void 0, rr = Math.max, ni = Date.now, or = fn(
|
|
4935
|
+
})(), ti = Ct ? Ct.isBuffer : void 0, rr = Math.max, ni = Date.now, or = fn(Z, "Map"), pt = fn(Object, "create"), ri = /* @__PURE__ */ (function() {
|
|
4938
4936
|
function d() {
|
|
4939
4937
|
}
|
|
4940
4938
|
return function(m) {
|
|
@@ -5065,14 +5063,14 @@ function yu() {
|
|
|
5065
5063
|
}
|
|
5066
5064
|
rt.prototype.clear = bi, rt.prototype.delete = wi, rt.prototype.get = xi, rt.prototype.has = Ri, rt.prototype.set = Ei;
|
|
5067
5065
|
function Ti(d, m) {
|
|
5068
|
-
var w = pn(d), V = !w && gn(d),
|
|
5066
|
+
var w = pn(d), V = !w && gn(d), ee = !w && !V && ur(d), oe = !w && !V && !ee && fr(d), ce = w || V || ee || oe, ne = ce ? Q(d.length, String) : [], ae = ne.length;
|
|
5069
5067
|
for (var Le in d)
|
|
5070
5068
|
ce && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
5071
5069
|
(Le == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
cr(Le, ae)) ||
|
|
5075
|
-
return
|
|
5070
|
+
ee && (Le == "offset" || Le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
5071
|
+
oe && (Le == "buffer" || Le == "byteLength" || Le == "byteOffset") || // Skip index properties.
|
|
5072
|
+
cr(Le, ae)) || ne.push(Le);
|
|
5073
|
+
return ne;
|
|
5076
5074
|
}
|
|
5077
5075
|
function un(d, m, w) {
|
|
5078
5076
|
(w !== void 0 && !Dt(d[m], w) || w === void 0 && !(m in d)) && ln(d, m, w);
|
|
@@ -5097,7 +5095,7 @@ function yu() {
|
|
|
5097
5095
|
}
|
|
5098
5096
|
var Oi = $i();
|
|
5099
5097
|
function Lt(d) {
|
|
5100
|
-
return d == null ? d === void 0 ?
|
|
5098
|
+
return d == null ? d === void 0 ? P : T : Ke && Ke in Object(d) ? Hi(d) : zi(d);
|
|
5101
5099
|
}
|
|
5102
5100
|
function ir(d) {
|
|
5103
5101
|
return mt(d) && Lt(d) == u;
|
|
@@ -5105,11 +5103,11 @@ function yu() {
|
|
|
5105
5103
|
function _i(d) {
|
|
5106
5104
|
if (!Ze(d) || Ui(d))
|
|
5107
5105
|
return !1;
|
|
5108
|
-
var m = hn(d) ? Zo :
|
|
5106
|
+
var m = hn(d) ? Zo : b;
|
|
5109
5107
|
return m.test(Ki(d));
|
|
5110
5108
|
}
|
|
5111
5109
|
function Ci(d) {
|
|
5112
|
-
return mt(d) && lr(d.length) && !!
|
|
5110
|
+
return mt(d) && lr(d.length) && !!O[Lt(d)];
|
|
5113
5111
|
}
|
|
5114
5112
|
function Ai(d) {
|
|
5115
5113
|
if (!Ze(d))
|
|
@@ -5119,28 +5117,28 @@ function yu() {
|
|
|
5119
5117
|
V == "constructor" && (m || !me.call(d, V)) || w.push(V);
|
|
5120
5118
|
return w;
|
|
5121
5119
|
}
|
|
5122
|
-
function sr(d, m, w, V,
|
|
5123
|
-
d !== m && Oi(m, function(
|
|
5124
|
-
if (
|
|
5125
|
-
Pi(d, m, ce, w, sr, V,
|
|
5120
|
+
function sr(d, m, w, V, ee) {
|
|
5121
|
+
d !== m && Oi(m, function(oe, ce) {
|
|
5122
|
+
if (ee || (ee = new rt()), Ze(oe))
|
|
5123
|
+
Pi(d, m, ce, w, sr, V, ee);
|
|
5126
5124
|
else {
|
|
5127
|
-
var
|
|
5128
|
-
|
|
5125
|
+
var ne = V ? V(dn(d, ce), oe, ce + "", d, m, ee) : void 0;
|
|
5126
|
+
ne === void 0 && (ne = oe), un(d, ce, ne);
|
|
5129
5127
|
}
|
|
5130
5128
|
}, dr);
|
|
5131
5129
|
}
|
|
5132
|
-
function Pi(d, m, w, V,
|
|
5133
|
-
var
|
|
5130
|
+
function Pi(d, m, w, V, ee, oe, ce) {
|
|
5131
|
+
var ne = dn(d, w), ae = dn(m, w), Le = ce.get(ae);
|
|
5134
5132
|
if (Le) {
|
|
5135
5133
|
un(d, w, Le);
|
|
5136
5134
|
return;
|
|
5137
5135
|
}
|
|
5138
|
-
var Se =
|
|
5136
|
+
var Se = oe ? oe(ne, ae, w + "", d, m, ce) : void 0, ht = Se === void 0;
|
|
5139
5137
|
if (ht) {
|
|
5140
5138
|
var vn = pn(ae), yn = !vn && ur(ae), pr = !vn && !yn && fr(ae);
|
|
5141
|
-
Se = ae, vn || yn || pr ? pn(
|
|
5139
|
+
Se = ae, vn || yn || pr ? pn(ne) ? Se = ne : Ji(ne) ? Se = Ni(ne) : yn ? (ht = !1, Se = Di(ae)) : pr ? (ht = !1, Se = ki(ae)) : Se = [] : Zi(ae) || gn(ae) ? (Se = ne, gn(ne) ? Se = Qi(ne) : (!Ze(ne) || hn(ne)) && (Se = Bi(ae))) : ht = !1;
|
|
5142
5140
|
}
|
|
5143
|
-
ht && (ce.set(ae, Se),
|
|
5141
|
+
ht && (ce.set(ae, Se), ee(Se, ae, V, oe, ce), ce.delete(ae)), un(d, w, Se);
|
|
5144
5142
|
}
|
|
5145
5143
|
function Li(d, m) {
|
|
5146
5144
|
return qi(Gi(d, m, gr), d + "");
|
|
@@ -5171,29 +5169,29 @@ function yu() {
|
|
|
5171
5169
|
return m;
|
|
5172
5170
|
}
|
|
5173
5171
|
function ji(d, m, w, V) {
|
|
5174
|
-
var
|
|
5172
|
+
var ee = !w;
|
|
5175
5173
|
w || (w = {});
|
|
5176
|
-
for (var
|
|
5177
|
-
var
|
|
5178
|
-
ae === void 0 && (ae = d[
|
|
5174
|
+
for (var oe = -1, ce = m.length; ++oe < ce; ) {
|
|
5175
|
+
var ne = m[oe], ae = void 0;
|
|
5176
|
+
ae === void 0 && (ae = d[ne]), ee ? ln(w, ne, ae) : Si(w, ne, ae);
|
|
5179
5177
|
}
|
|
5180
5178
|
return w;
|
|
5181
5179
|
}
|
|
5182
5180
|
function Fi(d) {
|
|
5183
5181
|
return Li(function(m, w) {
|
|
5184
|
-
var V = -1,
|
|
5185
|
-
for (
|
|
5186
|
-
var
|
|
5187
|
-
|
|
5182
|
+
var V = -1, ee = w.length, oe = ee > 1 ? w[ee - 1] : void 0, ce = ee > 2 ? w[2] : void 0;
|
|
5183
|
+
for (oe = d.length > 3 && typeof oe == "function" ? (ee--, oe) : void 0, ce && Wi(w[0], w[1], ce) && (oe = ee < 3 ? void 0 : oe, ee = 1), m = Object(m); ++V < ee; ) {
|
|
5184
|
+
var ne = w[V];
|
|
5185
|
+
ne && d(m, ne, V, oe);
|
|
5188
5186
|
}
|
|
5189
5187
|
return m;
|
|
5190
5188
|
});
|
|
5191
5189
|
}
|
|
5192
5190
|
function $i(d) {
|
|
5193
5191
|
return function(m, w, V) {
|
|
5194
|
-
for (var
|
|
5195
|
-
var ae = ce[++
|
|
5196
|
-
if (w(
|
|
5192
|
+
for (var ee = -1, oe = Object(m), ce = V(m), ne = ce.length; ne--; ) {
|
|
5193
|
+
var ae = ce[++ee];
|
|
5194
|
+
if (w(oe[ae], ae, oe) === !1)
|
|
5197
5195
|
break;
|
|
5198
5196
|
}
|
|
5199
5197
|
return m;
|
|
@@ -5204,7 +5202,7 @@ function yu() {
|
|
|
5204
5202
|
return Vi(m) ? w[typeof m == "string" ? "string" : "hash"] : w.map;
|
|
5205
5203
|
}
|
|
5206
5204
|
function fn(d, m) {
|
|
5207
|
-
var w =
|
|
5205
|
+
var w = fe(d, m);
|
|
5208
5206
|
return _i(w) ? w : void 0;
|
|
5209
5207
|
}
|
|
5210
5208
|
function Hi(d) {
|
|
@@ -5214,15 +5212,15 @@ function yu() {
|
|
|
5214
5212
|
var V = !0;
|
|
5215
5213
|
} catch {
|
|
5216
5214
|
}
|
|
5217
|
-
var
|
|
5218
|
-
return V && (m ? d[Ke] = w : delete d[Ke]),
|
|
5215
|
+
var ee = gt.call(d);
|
|
5216
|
+
return V && (m ? d[Ke] = w : delete d[Ke]), ee;
|
|
5219
5217
|
}
|
|
5220
5218
|
function Bi(d) {
|
|
5221
5219
|
return typeof d.constructor == "function" && !ar(d) ? ri(tr(d)) : {};
|
|
5222
5220
|
}
|
|
5223
5221
|
function cr(d, m) {
|
|
5224
5222
|
var w = typeof d;
|
|
5225
|
-
return m = m ?? s, !!m && (w == "number" || w != "symbol" &&
|
|
5223
|
+
return m = m ?? s, !!m && (w == "number" || w != "symbol" && L.test(d)) && d > -1 && d % 1 == 0 && d < m;
|
|
5226
5224
|
}
|
|
5227
5225
|
function Wi(d, m, w) {
|
|
5228
5226
|
if (!Ze(w))
|
|
@@ -5253,12 +5251,12 @@ function yu() {
|
|
|
5253
5251
|
}
|
|
5254
5252
|
function Gi(d, m, w) {
|
|
5255
5253
|
return m = rr(m === void 0 ? d.length - 1 : m, 0), function() {
|
|
5256
|
-
for (var V = arguments,
|
|
5257
|
-
ce[
|
|
5258
|
-
|
|
5259
|
-
for (var
|
|
5260
|
-
|
|
5261
|
-
return
|
|
5254
|
+
for (var V = arguments, ee = -1, oe = rr(V.length - m, 0), ce = Array(oe); ++ee < oe; )
|
|
5255
|
+
ce[ee] = V[m + ee];
|
|
5256
|
+
ee = -1;
|
|
5257
|
+
for (var ne = Array(m + 1); ++ee < m; )
|
|
5258
|
+
ne[ee] = V[ee];
|
|
5259
|
+
return ne[m] = w(ce), te(d, this, ne);
|
|
5262
5260
|
};
|
|
5263
5261
|
}
|
|
5264
5262
|
function dn(d, m) {
|
|
@@ -5269,8 +5267,8 @@ function yu() {
|
|
|
5269
5267
|
function Xi(d) {
|
|
5270
5268
|
var m = 0, w = 0;
|
|
5271
5269
|
return function() {
|
|
5272
|
-
var V = ni(),
|
|
5273
|
-
if (w = V,
|
|
5270
|
+
var V = ni(), ee = i - (V - w);
|
|
5271
|
+
if (w = V, ee > 0) {
|
|
5274
5272
|
if (++m >= o)
|
|
5275
5273
|
return arguments[0];
|
|
5276
5274
|
} else
|
|
@@ -5310,7 +5308,7 @@ function yu() {
|
|
|
5310
5308
|
if (!Ze(d))
|
|
5311
5309
|
return !1;
|
|
5312
5310
|
var m = Lt(d);
|
|
5313
|
-
return m == g || m == v || m == c || m ==
|
|
5311
|
+
return m == g || m == v || m == c || m == _;
|
|
5314
5312
|
}
|
|
5315
5313
|
function lr(d) {
|
|
5316
5314
|
return typeof d == "number" && d > -1 && d % 1 == 0 && d <= s;
|