etudes 21.2.2 → 21.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/build/etudes.js +911 -900
- package/build/etudes.umd.cjs +5 -5
- package/build/primitives/CodeInput.d.ts +8 -0
- package/package.json +1 -1
package/build/etudes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ns, { Fragment as Io, cloneElement as Ss, Children as ln, isValidElement as un, forwardRef as _e, useRef as we, useEffect as Ee, useLayoutEffect as Re, useState as Oe, useCallback as ve, useMemo as
|
|
1
|
+
import Ns, { Fragment as Io, cloneElement as Ss, Children as ln, isValidElement as un, forwardRef as _e, useRef as we, useEffect as Ee, useLayoutEffect as Re, useState as Oe, useCallback as ve, useMemo as jt, Suspense as Ts } from "react";
|
|
2
2
|
function ko(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
4
|
}
|
|
@@ -29,13 +29,13 @@ var St = {};
|
|
|
29
29
|
var co;
|
|
30
30
|
function Os() {
|
|
31
31
|
return co || (co = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
|
-
function e(
|
|
33
|
-
if (
|
|
34
|
-
if (typeof
|
|
35
|
-
return
|
|
36
|
-
if (typeof
|
|
37
|
-
switch (
|
|
38
|
-
case
|
|
32
|
+
function e(C) {
|
|
33
|
+
if (C == null) return null;
|
|
34
|
+
if (typeof C == "function")
|
|
35
|
+
return C.$$typeof === oe ? null : C.displayName || C.name || null;
|
|
36
|
+
if (typeof C == "string") return C;
|
|
37
|
+
switch (C) {
|
|
38
|
+
case k:
|
|
39
39
|
return "Fragment";
|
|
40
40
|
case K:
|
|
41
41
|
return "Profiler";
|
|
@@ -48,34 +48,34 @@ function Os() {
|
|
|
48
48
|
case W:
|
|
49
49
|
return "Activity";
|
|
50
50
|
}
|
|
51
|
-
if (typeof
|
|
52
|
-
switch (typeof
|
|
51
|
+
if (typeof C == "object")
|
|
52
|
+
switch (typeof C.tag == "number" && console.error(
|
|
53
53
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
54
|
-
),
|
|
55
|
-
case
|
|
54
|
+
), C.$$typeof) {
|
|
55
|
+
case S:
|
|
56
56
|
return "Portal";
|
|
57
|
-
case Y:
|
|
58
|
-
return k.displayName || "Context";
|
|
59
|
-
case M:
|
|
60
|
-
return (k._context.displayName || "Context") + ".Consumer";
|
|
61
|
-
case w:
|
|
62
|
-
var G = k.render;
|
|
63
|
-
return k = k.displayName, k || (k = G.displayName || G.name || "", k = k !== "" ? "ForwardRef(" + k + ")" : "ForwardRef"), k;
|
|
64
57
|
case R:
|
|
65
|
-
return
|
|
58
|
+
return C.displayName || "Context";
|
|
66
59
|
case X:
|
|
67
|
-
|
|
60
|
+
return (C._context.displayName || "Context") + ".Consumer";
|
|
61
|
+
case w:
|
|
62
|
+
var G = C.render;
|
|
63
|
+
return C = C.displayName, C || (C = G.displayName || G.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
64
|
+
case M:
|
|
65
|
+
return G = C.displayName || null, G !== null ? G : e(C.type) || "Memo";
|
|
66
|
+
case B:
|
|
67
|
+
G = C._payload, C = C._init;
|
|
68
68
|
try {
|
|
69
|
-
return e(
|
|
69
|
+
return e(C(G));
|
|
70
70
|
} catch {
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
|
-
function r(
|
|
76
|
-
return "" +
|
|
75
|
+
function r(C) {
|
|
76
|
+
return "" + C;
|
|
77
77
|
}
|
|
78
|
-
function i(
|
|
78
|
+
function i(C) {
|
|
79
79
|
try {
|
|
80
80
|
var G = !1;
|
|
81
81
|
} catch {
|
|
@@ -83,91 +83,91 @@ function Os() {
|
|
|
83
83
|
}
|
|
84
84
|
if (G) {
|
|
85
85
|
G = console;
|
|
86
|
-
var J = G.error, q = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
86
|
+
var J = G.error, q = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
87
87
|
return J.call(
|
|
88
88
|
G,
|
|
89
89
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
90
|
q
|
|
91
|
-
), r(
|
|
91
|
+
), r(C);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function a(
|
|
95
|
-
if (
|
|
96
|
-
if (typeof
|
|
94
|
+
function a(C) {
|
|
95
|
+
if (C === k) return "<>";
|
|
96
|
+
if (typeof C == "object" && C !== null && C.$$typeof === B)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
99
|
-
var G = e(
|
|
99
|
+
var G = e(C);
|
|
100
100
|
return G ? "<" + G + ">" : "<...>";
|
|
101
101
|
} catch {
|
|
102
102
|
return "<...>";
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function c() {
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var C = Z.A;
|
|
107
|
+
return C === null ? null : C.getOwner();
|
|
108
108
|
}
|
|
109
109
|
function u() {
|
|
110
110
|
return Error("react-stack-top-frame");
|
|
111
111
|
}
|
|
112
|
-
function d(
|
|
113
|
-
if (U.call(
|
|
114
|
-
var G = Object.getOwnPropertyDescriptor(
|
|
112
|
+
function d(C) {
|
|
113
|
+
if (U.call(C, "key")) {
|
|
114
|
+
var G = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
115
115
|
if (G && G.isReactWarning) return !1;
|
|
116
116
|
}
|
|
117
|
-
return
|
|
117
|
+
return C.key !== void 0;
|
|
118
118
|
}
|
|
119
|
-
function g(
|
|
119
|
+
function g(C, G) {
|
|
120
120
|
function J() {
|
|
121
121
|
te || (te = !0, console.error(
|
|
122
122
|
"%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)",
|
|
123
123
|
G
|
|
124
124
|
));
|
|
125
125
|
}
|
|
126
|
-
J.isReactWarning = !0, Object.defineProperty(
|
|
126
|
+
J.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
127
127
|
get: J,
|
|
128
128
|
configurable: !0
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
function v() {
|
|
132
|
-
var
|
|
133
|
-
return ne[
|
|
132
|
+
var C = e(this.type);
|
|
133
|
+
return ne[C] || (ne[C] = !0, console.error(
|
|
134
134
|
"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."
|
|
135
|
-
)),
|
|
135
|
+
)), C = this.props.ref, C !== void 0 ? C : null;
|
|
136
136
|
}
|
|
137
|
-
function x(
|
|
137
|
+
function x(C, G, J, q, fe, he) {
|
|
138
138
|
var ue = J.ref;
|
|
139
|
-
return
|
|
139
|
+
return C = {
|
|
140
140
|
$$typeof: A,
|
|
141
|
-
type:
|
|
141
|
+
type: C,
|
|
142
142
|
key: G,
|
|
143
143
|
props: J,
|
|
144
144
|
_owner: q
|
|
145
|
-
}, (ue !== void 0 ? ue : null) !== null ? Object.defineProperty(
|
|
145
|
+
}, (ue !== void 0 ? ue : null) !== null ? Object.defineProperty(C, "ref", {
|
|
146
146
|
enumerable: !1,
|
|
147
147
|
get: v
|
|
148
|
-
}) : Object.defineProperty(
|
|
148
|
+
}) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
149
149
|
configurable: !1,
|
|
150
150
|
enumerable: !1,
|
|
151
151
|
writable: !0,
|
|
152
152
|
value: 0
|
|
153
|
-
}), Object.defineProperty(
|
|
153
|
+
}), Object.defineProperty(C, "_debugInfo", {
|
|
154
154
|
configurable: !1,
|
|
155
155
|
enumerable: !1,
|
|
156
156
|
writable: !0,
|
|
157
157
|
value: null
|
|
158
|
-
}), Object.defineProperty(
|
|
158
|
+
}), Object.defineProperty(C, "_debugStack", {
|
|
159
159
|
configurable: !1,
|
|
160
160
|
enumerable: !1,
|
|
161
161
|
writable: !0,
|
|
162
162
|
value: fe
|
|
163
|
-
}), Object.defineProperty(
|
|
163
|
+
}), Object.defineProperty(C, "_debugTask", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
writable: !0,
|
|
167
167
|
value: he
|
|
168
|
-
}), Object.freeze && (Object.freeze(
|
|
168
|
+
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
169
169
|
}
|
|
170
|
-
function O(
|
|
170
|
+
function O(C, G, J, q, fe, he) {
|
|
171
171
|
var ue = G.children;
|
|
172
172
|
if (ue !== void 0)
|
|
173
173
|
if (q)
|
|
@@ -181,7 +181,7 @@ function Os() {
|
|
|
181
181
|
);
|
|
182
182
|
else T(ue);
|
|
183
183
|
if (U.call(G, "key")) {
|
|
184
|
-
ue = e(
|
|
184
|
+
ue = e(C);
|
|
185
185
|
var Ne = Object.keys(G).filter(function(He) {
|
|
186
186
|
return He !== "key";
|
|
187
187
|
});
|
|
@@ -205,9 +205,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
205
205
|
} else J = G;
|
|
206
206
|
return ue && g(
|
|
207
207
|
J,
|
|
208
|
-
typeof
|
|
208
|
+
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
209
209
|
), x(
|
|
210
|
-
|
|
210
|
+
C,
|
|
211
211
|
ue,
|
|
212
212
|
J,
|
|
213
213
|
c(),
|
|
@@ -215,43 +215,43 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
he
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
|
-
function T(
|
|
219
|
-
I(
|
|
218
|
+
function T(C) {
|
|
219
|
+
I(C) ? C._store && (C._store.validated = 1) : typeof C == "object" && C !== null && C.$$typeof === B && (C._payload.status === "fulfilled" ? I(C._payload.value) && C._payload.value._store && (C._payload.value._store.validated = 1) : C._store && (C._store.validated = 1));
|
|
220
220
|
}
|
|
221
|
-
function I(
|
|
222
|
-
return typeof
|
|
221
|
+
function I(C) {
|
|
222
|
+
return typeof C == "object" && C !== null && C.$$typeof === A;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var j = Ns, A = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), R = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), oe = Symbol.for("react.client.reference"), Z = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, H = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
react_stack_bottom_frame: function(
|
|
229
|
-
return
|
|
227
|
+
j = {
|
|
228
|
+
react_stack_bottom_frame: function(C) {
|
|
229
|
+
return C();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var te, ne = {}, ae =
|
|
233
|
-
|
|
232
|
+
var te, ne = {}, ae = j.react_stack_bottom_frame.bind(
|
|
233
|
+
j,
|
|
234
234
|
u
|
|
235
235
|
)(), V = F(a(u)), z = {};
|
|
236
|
-
St.Fragment =
|
|
236
|
+
St.Fragment = k, St.jsx = function(C, G, J) {
|
|
237
237
|
var q = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
238
238
|
return O(
|
|
239
|
-
|
|
239
|
+
C,
|
|
240
240
|
G,
|
|
241
241
|
J,
|
|
242
242
|
!1,
|
|
243
243
|
q ? Error("react-stack-top-frame") : ae,
|
|
244
|
-
q ? F(a(
|
|
244
|
+
q ? F(a(C)) : V
|
|
245
245
|
);
|
|
246
|
-
}, St.jsxs = function(
|
|
246
|
+
}, St.jsxs = function(C, G, J) {
|
|
247
247
|
var q = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
248
248
|
return O(
|
|
249
|
-
|
|
249
|
+
C,
|
|
250
250
|
G,
|
|
251
251
|
J,
|
|
252
252
|
!0,
|
|
253
253
|
q ? Error("react-stack-top-frame") : ae,
|
|
254
|
-
q ? F(a(
|
|
254
|
+
q ? F(a(C)) : V
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
257
|
})()), St;
|
|
@@ -261,17 +261,17 @@ function Ps() {
|
|
|
261
261
|
return lo || (lo = 1, process.env.NODE_ENV === "production" ? Ut.exports = /* @__PURE__ */ _s() : Ut.exports = /* @__PURE__ */ Os()), Ut.exports;
|
|
262
262
|
}
|
|
263
263
|
var b = /* @__PURE__ */ Ps();
|
|
264
|
-
function
|
|
264
|
+
function Co(e) {
|
|
265
265
|
var r, i, a = "";
|
|
266
266
|
if (typeof e == "string" || typeof e == "number") a += e;
|
|
267
267
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
268
268
|
var c = e.length;
|
|
269
|
-
for (r = 0; r < c; r++) e[r] && (i =
|
|
269
|
+
for (r = 0; r < c; r++) e[r] && (i = Co(e[r])) && (a && (a += " "), a += i);
|
|
270
270
|
} else for (i in e) e[i] && (a && (a += " "), a += i);
|
|
271
271
|
return a;
|
|
272
272
|
}
|
|
273
273
|
function se() {
|
|
274
|
-
for (var e, r, i = 0, a = "", c = arguments.length; i < c; i++) (e = arguments[i]) && (r =
|
|
274
|
+
for (var e, r, i = 0, a = "", c = arguments.length; i < c; i++) (e = arguments[i]) && (r = Co(e)) && (a && (a += " "), a += r);
|
|
275
275
|
return a;
|
|
276
276
|
}
|
|
277
277
|
function nn({
|
|
@@ -331,7 +331,7 @@ function ze(e, r = {}) {
|
|
|
331
331
|
c[g] = u;
|
|
332
332
|
}), c;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Cl(e) {
|
|
335
335
|
return e;
|
|
336
336
|
}
|
|
337
337
|
function ce(...e) {
|
|
@@ -340,7 +340,7 @@ function ce(...e) {
|
|
|
340
340
|
...i || {}
|
|
341
341
|
}), {});
|
|
342
342
|
}
|
|
343
|
-
const
|
|
343
|
+
const jo = /* @__PURE__ */ _e(({
|
|
344
344
|
children: e,
|
|
345
345
|
className: r,
|
|
346
346
|
isActive: i = !1,
|
|
@@ -446,7 +446,7 @@ function Is({ isActive: e = !1, isSplit: r = !1, isTailHidden: i = !1 }) {
|
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
process.env.NODE_ENV === "development" && (
|
|
449
|
+
process.env.NODE_ENV === "development" && (jo.displayName = "Burger", rn.displayName = "BurgerBar");
|
|
450
450
|
const ks = /* @__PURE__ */ _e(({
|
|
451
451
|
children: e,
|
|
452
452
|
className: r,
|
|
@@ -461,24 +461,24 @@ const ks = /* @__PURE__ */ _e(({
|
|
|
461
461
|
...O
|
|
462
462
|
}, T) => {
|
|
463
463
|
const I = () => {
|
|
464
|
-
const
|
|
465
|
-
x?.(
|
|
466
|
-
},
|
|
464
|
+
const S = !a;
|
|
465
|
+
x?.(S), S ? g?.() : v?.();
|
|
466
|
+
}, j = {
|
|
467
467
|
root: se({
|
|
468
468
|
active: a
|
|
469
469
|
})
|
|
470
|
-
}, A =
|
|
470
|
+
}, A = js();
|
|
471
471
|
return /* @__PURE__ */ b.jsx(
|
|
472
472
|
"button",
|
|
473
473
|
{
|
|
474
474
|
...O,
|
|
475
475
|
ref: T,
|
|
476
476
|
"aria-expanded": a,
|
|
477
|
-
className: se(r,
|
|
477
|
+
className: se(r, j.root),
|
|
478
478
|
style: ce(i, A.root),
|
|
479
479
|
onClick: I,
|
|
480
480
|
children: /* @__PURE__ */ b.jsx(
|
|
481
|
-
|
|
481
|
+
jo,
|
|
482
482
|
{
|
|
483
483
|
isActive: a,
|
|
484
484
|
isSplit: u,
|
|
@@ -489,8 +489,8 @@ const ks = /* @__PURE__ */ _e(({
|
|
|
489
489
|
)
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
|
-
}),
|
|
493
|
-
function
|
|
492
|
+
}), Cs = rn;
|
|
493
|
+
function js() {
|
|
494
494
|
return {
|
|
495
495
|
root: {
|
|
496
496
|
background: "transparent",
|
|
@@ -500,94 +500,94 @@ function Cs() {
|
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
process.env.NODE_ENV === "development" && (ks.displayName = "BurgerButton",
|
|
503
|
+
process.env.NODE_ENV === "development" && (ks.displayName = "BurgerButton", Cs.displayName = "BurgerButtonBar");
|
|
504
504
|
var Te;
|
|
505
505
|
((e) => {
|
|
506
506
|
e.zero = r();
|
|
507
|
-
function r(
|
|
508
|
-
if (typeof
|
|
509
|
-
return { x:
|
|
510
|
-
if (!I(
|
|
511
|
-
return
|
|
512
|
-
x:
|
|
513
|
-
y:
|
|
507
|
+
function r(S = 0, k = 0) {
|
|
508
|
+
if (typeof S == "number")
|
|
509
|
+
return { x: S, y: k };
|
|
510
|
+
if (!I(S)) throw Error("Invalid parameters passed to constructor");
|
|
511
|
+
return S instanceof Array ? {
|
|
512
|
+
x: S[0],
|
|
513
|
+
y: S[1]
|
|
514
514
|
} : {
|
|
515
|
-
x:
|
|
516
|
-
y:
|
|
515
|
+
x: S.x,
|
|
516
|
+
y: S.y
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
e.make = r;
|
|
520
|
-
function i(
|
|
520
|
+
function i(S, k = {}) {
|
|
521
521
|
return r({
|
|
522
|
-
x: typeof
|
|
523
|
-
y: typeof
|
|
522
|
+
x: typeof k.x == "number" ? k.x : S.x,
|
|
523
|
+
y: typeof k.y == "number" ? k.y : S.y
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
e.clone = i;
|
|
527
|
-
function a(
|
|
527
|
+
function a(S, k) {
|
|
528
528
|
return r({
|
|
529
|
-
x:
|
|
530
|
-
y:
|
|
529
|
+
x: S.x + k.x,
|
|
530
|
+
y: S.y + k.y
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
e.add = a;
|
|
534
|
-
function c(
|
|
534
|
+
function c(S, k) {
|
|
535
535
|
return r({
|
|
536
|
-
x:
|
|
537
|
-
y:
|
|
536
|
+
x: S.x - k.x,
|
|
537
|
+
y: S.y - k.y
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
540
|
e.subtract = c;
|
|
541
|
-
function u(
|
|
541
|
+
function u(S, k) {
|
|
542
542
|
return r({
|
|
543
|
-
x:
|
|
544
|
-
y:
|
|
543
|
+
x: S.x * k.x,
|
|
544
|
+
y: S.y * k.y
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
e.multiply = u;
|
|
548
|
-
function d(
|
|
548
|
+
function d(S, k) {
|
|
549
549
|
return r({
|
|
550
|
-
x:
|
|
551
|
-
y:
|
|
550
|
+
x: S.x / k.x,
|
|
551
|
+
y: S.y / k.y
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
e.divide = d;
|
|
555
|
-
function g(
|
|
555
|
+
function g(S) {
|
|
556
556
|
return r({
|
|
557
|
-
x:
|
|
558
|
-
y:
|
|
557
|
+
x: S.y,
|
|
558
|
+
y: S.x
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
e.reflect = g;
|
|
562
|
-
function v(
|
|
563
|
-
return !(
|
|
562
|
+
function v(S, k) {
|
|
563
|
+
return !(S.x !== k.x || S.y !== k.y);
|
|
564
564
|
}
|
|
565
565
|
e.isEqual = v;
|
|
566
|
-
function x(
|
|
567
|
-
return `Point(x=${
|
|
566
|
+
function x(S) {
|
|
567
|
+
return `Point(x=${S.x}, y=${S.y})`;
|
|
568
568
|
}
|
|
569
569
|
e.toString = x;
|
|
570
|
-
function O(
|
|
570
|
+
function O(S) {
|
|
571
571
|
return Object.freeze({
|
|
572
|
-
x:
|
|
573
|
-
y:
|
|
572
|
+
x: S.x,
|
|
573
|
+
y: S.y
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
e.toJSON = O;
|
|
577
|
-
function T(
|
|
578
|
-
return [
|
|
577
|
+
function T(S) {
|
|
578
|
+
return [S.x, S.y];
|
|
579
579
|
}
|
|
580
580
|
e.toArray = T;
|
|
581
|
-
function I(
|
|
582
|
-
return
|
|
581
|
+
function I(S) {
|
|
582
|
+
return S instanceof Array ? !(S.length !== 2 || typeof S[0] != "number" || typeof S[1] != "number") : typeof S == "object" ? !(typeof S.x != "number" || typeof S.y != "number") : !1;
|
|
583
583
|
}
|
|
584
584
|
e.isValidDescriptor = I;
|
|
585
|
-
function
|
|
586
|
-
return typeof
|
|
585
|
+
function j(S) {
|
|
586
|
+
return typeof S == "object" && typeof S.x == "number" && typeof S.y == "number";
|
|
587
587
|
}
|
|
588
|
-
e.isPoint =
|
|
589
|
-
function A(
|
|
590
|
-
return
|
|
588
|
+
e.isPoint = j;
|
|
589
|
+
function A(S) {
|
|
590
|
+
return S.x === 0 && S.y === 0;
|
|
591
591
|
}
|
|
592
592
|
e.isZero = A;
|
|
593
593
|
})(Te || (Te = {}));
|
|
@@ -627,130 +627,130 @@ function $s(e, r) {
|
|
|
627
627
|
return console.error(i), !1;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
var
|
|
630
|
+
var je;
|
|
631
631
|
((e) => {
|
|
632
632
|
e.zero = r();
|
|
633
|
-
function r(
|
|
634
|
-
if (typeof
|
|
635
|
-
return { width:
|
|
636
|
-
if (!I(
|
|
637
|
-
return
|
|
638
|
-
width:
|
|
639
|
-
height:
|
|
633
|
+
function r(S = 0, k = 0) {
|
|
634
|
+
if (typeof S == "number")
|
|
635
|
+
return { width: S, height: k };
|
|
636
|
+
if (!I(S)) throw Error("Invalid parameters passed to constructor");
|
|
637
|
+
return S instanceof Array ? {
|
|
638
|
+
width: S[0],
|
|
639
|
+
height: S[1]
|
|
640
640
|
} : {
|
|
641
|
-
width:
|
|
642
|
-
height:
|
|
641
|
+
width: S.width,
|
|
642
|
+
height: S.height
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
e.make = r;
|
|
646
|
-
function i(
|
|
646
|
+
function i(S, k = {}) {
|
|
647
647
|
return r({
|
|
648
|
-
width: typeof
|
|
649
|
-
height: typeof
|
|
648
|
+
width: typeof k.width == "number" ? k.width : S.width,
|
|
649
|
+
height: typeof k.height == "number" ? k.height : S.height
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
e.clone = i;
|
|
653
|
-
function a(
|
|
653
|
+
function a(S, k) {
|
|
654
654
|
return r({
|
|
655
|
-
width:
|
|
656
|
-
height:
|
|
655
|
+
width: S.width + k.width,
|
|
656
|
+
height: S.height + k.height
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
e.add = a;
|
|
660
|
-
function c(
|
|
660
|
+
function c(S, k) {
|
|
661
661
|
return r({
|
|
662
|
-
width:
|
|
663
|
-
height:
|
|
662
|
+
width: S.width - k.width,
|
|
663
|
+
height: S.height - k.height
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
e.subtract = c;
|
|
667
|
-
function u(
|
|
667
|
+
function u(S, k) {
|
|
668
668
|
return r({
|
|
669
|
-
width:
|
|
670
|
-
height:
|
|
669
|
+
width: S.width * k.width,
|
|
670
|
+
height: S.height * k.height
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
e.multiply = u;
|
|
674
|
-
function d(
|
|
674
|
+
function d(S, k) {
|
|
675
675
|
return r({
|
|
676
|
-
width:
|
|
677
|
-
height:
|
|
676
|
+
width: S.width / k.width,
|
|
677
|
+
height: S.height / k.height
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
e.divide = d;
|
|
681
|
-
function g(
|
|
681
|
+
function g(S) {
|
|
682
682
|
return r({
|
|
683
|
-
width:
|
|
684
|
-
height:
|
|
683
|
+
width: S.height,
|
|
684
|
+
height: S.width
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
e.rotate = g;
|
|
688
|
-
function v(
|
|
689
|
-
return !(
|
|
688
|
+
function v(S, k) {
|
|
689
|
+
return !(S.width !== k.width || S.height !== k.height);
|
|
690
690
|
}
|
|
691
691
|
e.isEqual = v;
|
|
692
|
-
function x(
|
|
693
|
-
return `Size(width=${
|
|
692
|
+
function x(S) {
|
|
693
|
+
return `Size(width=${S.width}, height=${S.height})`;
|
|
694
694
|
}
|
|
695
695
|
e.toString = x;
|
|
696
|
-
function O(
|
|
696
|
+
function O(S) {
|
|
697
697
|
return Object.freeze({
|
|
698
|
-
width:
|
|
699
|
-
height:
|
|
698
|
+
width: S.width,
|
|
699
|
+
height: S.height
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
702
|
e.toJSON = O;
|
|
703
|
-
function T(
|
|
704
|
-
return [
|
|
703
|
+
function T(S) {
|
|
704
|
+
return [S.width, S.height];
|
|
705
705
|
}
|
|
706
706
|
e.toArray = T;
|
|
707
|
-
function I(
|
|
708
|
-
return
|
|
707
|
+
function I(S) {
|
|
708
|
+
return S instanceof Array ? !(S.length !== 2 || typeof S[0] != "number" || typeof S[1] != "number") : typeof S == "object" ? !(typeof S.width != "number" || typeof S.height != "number") : !1;
|
|
709
709
|
}
|
|
710
710
|
e.isValidDescriptor = I;
|
|
711
|
-
function
|
|
712
|
-
return typeof
|
|
711
|
+
function j(S) {
|
|
712
|
+
return typeof S == "object" && typeof S.width == "number" && typeof S.height == "number";
|
|
713
713
|
}
|
|
714
|
-
e.isSize =
|
|
715
|
-
function A(
|
|
716
|
-
return
|
|
714
|
+
e.isSize = j;
|
|
715
|
+
function A(S) {
|
|
716
|
+
return S.width === 0 && S.height === 0;
|
|
717
717
|
}
|
|
718
718
|
e.isZero = A;
|
|
719
|
-
})(
|
|
719
|
+
})(je || (je = {}));
|
|
720
720
|
var xe;
|
|
721
721
|
((e) => {
|
|
722
722
|
e.zero = r();
|
|
723
|
-
function r(w = 0, P = 0, E = 0,
|
|
723
|
+
function r(w = 0, P = 0, E = 0, M = 0) {
|
|
724
724
|
if (typeof w == "number" && typeof P == "number") {
|
|
725
|
-
const
|
|
725
|
+
const B = w, W = P;
|
|
726
726
|
return {
|
|
727
727
|
top: W,
|
|
728
|
-
right:
|
|
729
|
-
bottom: W +
|
|
730
|
-
left:
|
|
728
|
+
right: B + E,
|
|
729
|
+
bottom: W + M,
|
|
730
|
+
left: B,
|
|
731
731
|
width: E,
|
|
732
|
-
height:
|
|
732
|
+
height: M
|
|
733
733
|
};
|
|
734
|
-
} else if (Te.isPoint(w) &&
|
|
735
|
-
const
|
|
734
|
+
} else if (Te.isPoint(w) && je.isSize(P)) {
|
|
735
|
+
const B = w, W = P;
|
|
736
736
|
return {
|
|
737
|
-
top:
|
|
738
|
-
right:
|
|
739
|
-
bottom:
|
|
740
|
-
left:
|
|
737
|
+
top: B.y,
|
|
738
|
+
right: B.x + W.width,
|
|
739
|
+
bottom: B.y + W.height,
|
|
740
|
+
left: B.x,
|
|
741
741
|
width: W.width,
|
|
742
742
|
height: W.height
|
|
743
743
|
};
|
|
744
744
|
} else {
|
|
745
|
-
const
|
|
746
|
-
if (!K(
|
|
745
|
+
const B = w;
|
|
746
|
+
if (!K(B)) throw Error("Invalid parameters passed to constructor");
|
|
747
747
|
return {
|
|
748
|
-
top:
|
|
749
|
-
right:
|
|
750
|
-
bottom:
|
|
751
|
-
left:
|
|
752
|
-
width:
|
|
753
|
-
height:
|
|
748
|
+
top: B.y,
|
|
749
|
+
right: B.x + B.width,
|
|
750
|
+
bottom: B.y + B.height,
|
|
751
|
+
left: B.x,
|
|
752
|
+
width: B.width,
|
|
753
|
+
height: B.height
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
756
|
}
|
|
@@ -763,7 +763,7 @@ var xe;
|
|
|
763
763
|
}
|
|
764
764
|
e.center = i;
|
|
765
765
|
function a(w) {
|
|
766
|
-
return
|
|
766
|
+
return je.make({
|
|
767
767
|
width: w.width,
|
|
768
768
|
height: w.height
|
|
769
769
|
});
|
|
@@ -772,15 +772,15 @@ var xe;
|
|
|
772
772
|
function c(w, P = {}) {
|
|
773
773
|
try {
|
|
774
774
|
if (w == null) return;
|
|
775
|
-
if (
|
|
775
|
+
if (X(w)) return w;
|
|
776
776
|
if (Tt(w)) return c(document.documentElement || document.body.parentNode || document.body, P);
|
|
777
|
-
const E = w instanceof Array ? w : [w],
|
|
777
|
+
const E = w instanceof Array ? w : [w], M = E.length, B = P.reference || window, W = u(), oe = Tt(B) ? W : c(P.reference);
|
|
778
778
|
if (!W || !oe) return;
|
|
779
779
|
let Z;
|
|
780
|
-
for (let U = 0; U <
|
|
780
|
+
for (let U = 0; U < M; U++) {
|
|
781
781
|
const H = E[U], F = H.getBoundingClientRect(), te = r({
|
|
782
|
-
x: F.left + W.left - (Tt(
|
|
783
|
-
y: F.top + W.top - (Tt(
|
|
782
|
+
x: F.left + W.left - (Tt(B) ? 0 : oe.left),
|
|
783
|
+
y: F.top + W.top - (Tt(B) ? 0 : oe.top),
|
|
784
784
|
width: P.overflow ? H.scrollWidth : H instanceof HTMLElement ? H.offsetWidth : F.width,
|
|
785
785
|
height: P.overflow ? H.scrollHeight : H instanceof HTMLElement ? H.offsetHeight : F.height
|
|
786
786
|
});
|
|
@@ -794,8 +794,8 @@ var xe;
|
|
|
794
794
|
}
|
|
795
795
|
e.from = c;
|
|
796
796
|
function u() {
|
|
797
|
-
const w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0), P = Math.max(document.documentElement.clientHeight, window.innerHeight || 0), E = window.pageXOffset !== void 0 ? window.pageXOffset : (document.documentElement || document.body.parentNode || document.body).scrollLeft,
|
|
798
|
-
return r({ x: E, y:
|
|
797
|
+
const w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0), P = Math.max(document.documentElement.clientHeight, window.innerHeight || 0), E = window.pageXOffset !== void 0 ? window.pageXOffset : (document.documentElement || document.body.parentNode || document.body).scrollLeft, M = window.pageYOffset !== void 0 ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop;
|
|
798
|
+
return r({ x: E, y: M, width: w, height: P });
|
|
799
799
|
}
|
|
800
800
|
e.fromViewport = u;
|
|
801
801
|
function d(w, P = {}) {
|
|
@@ -808,20 +808,20 @@ var xe;
|
|
|
808
808
|
e.fromChildrenOf = d;
|
|
809
809
|
function g(w, P, E = {}) {
|
|
810
810
|
if (!P) return;
|
|
811
|
-
const
|
|
812
|
-
return w <= 0 ? r() : w >=
|
|
811
|
+
const M = Array.from(P.children);
|
|
812
|
+
return w <= 0 ? r() : w >= M.length ? c(M, { reference: E.reference, overflow: !1 }) : (M.splice(w), c(M, { reference: E.reference || P, overflow: !1 }));
|
|
813
813
|
}
|
|
814
814
|
e.fromChildrenBefore = g;
|
|
815
815
|
function v(w, P, E = {}) {
|
|
816
816
|
if (!P) return;
|
|
817
|
-
const
|
|
818
|
-
return w < 0 ? c(
|
|
817
|
+
const M = Array.from(P.children);
|
|
818
|
+
return w < 0 ? c(M, { reference: E.reference, overflow: !1 }) : w >= M.length - 1 ? r() : (M.splice(0, M.length - w - 1), c(M, { reference: E.reference || P, overflow: !1 }));
|
|
819
819
|
}
|
|
820
820
|
e.fromChildrenAfter = v;
|
|
821
821
|
function x(w, P, E = {}) {
|
|
822
822
|
if (!P) return;
|
|
823
|
-
const
|
|
824
|
-
return c(
|
|
823
|
+
const M = P.children[w];
|
|
824
|
+
return c(M, {
|
|
825
825
|
overflow: E.overflow,
|
|
826
826
|
reference: E.reference || P
|
|
827
827
|
});
|
|
@@ -830,15 +830,15 @@ var xe;
|
|
|
830
830
|
function O(...w) {
|
|
831
831
|
try {
|
|
832
832
|
const P = w.length, E = {};
|
|
833
|
-
let
|
|
833
|
+
let M, B;
|
|
834
834
|
for (let W = 0; W < P; W++) {
|
|
835
|
-
if (
|
|
836
|
-
|
|
835
|
+
if (M || (M = c(w[W])), W === 0 && W + 1 === P)
|
|
836
|
+
B = u();
|
|
837
837
|
else if (W + 1 < P)
|
|
838
|
-
|
|
838
|
+
B = c(w[W + 1]);
|
|
839
839
|
else
|
|
840
840
|
break;
|
|
841
|
-
!
|
|
841
|
+
!M || !B || (E.width = Math.max(0, Math.min(M.right, B.right) - Math.max(M.left, B.left)), E.height = Math.max(0, Math.min(M.bottom, B.bottom) - Math.max(M.top, B.top)), E.y = Math.max(M.top, B.top), E.x = Math.max(M.left, B.left), E.width * E.height === 0 && (E.width = 0, E.height = 0, E.y = NaN, E.x = NaN), M = r(E));
|
|
842
842
|
}
|
|
843
843
|
return r(E);
|
|
844
844
|
} catch (P) {
|
|
@@ -865,7 +865,7 @@ var xe;
|
|
|
865
865
|
});
|
|
866
866
|
}
|
|
867
867
|
e.concat = I;
|
|
868
|
-
function
|
|
868
|
+
function j(w) {
|
|
869
869
|
return r({
|
|
870
870
|
x: w.left,
|
|
871
871
|
y: w.top,
|
|
@@ -873,19 +873,19 @@ var xe;
|
|
|
873
873
|
height: w.width
|
|
874
874
|
});
|
|
875
875
|
}
|
|
876
|
-
e.rotate =
|
|
876
|
+
e.rotate = j;
|
|
877
877
|
function A(w, P) {
|
|
878
878
|
return !(w.top !== P.top || w.right !== P.right || w.bottom !== P.bottom || w.left !== P.left || w.width !== P.width || w.height !== P.height);
|
|
879
879
|
}
|
|
880
880
|
e.isEqual = A;
|
|
881
|
-
function
|
|
881
|
+
function S(w, P) {
|
|
882
882
|
return $s(P, w);
|
|
883
883
|
}
|
|
884
|
-
e.contains =
|
|
885
|
-
function
|
|
884
|
+
e.contains = S;
|
|
885
|
+
function k(w) {
|
|
886
886
|
return `Rect(top=${w.top}, right=${w.right}, bottom=${w.bottom}, left=${w.left}, width=${w.width}, height=${w.height})`;
|
|
887
887
|
}
|
|
888
|
-
e.toString =
|
|
888
|
+
e.toString = k;
|
|
889
889
|
function ee(w) {
|
|
890
890
|
return Object.freeze({
|
|
891
891
|
top: w.top,
|
|
@@ -901,14 +901,14 @@ var xe;
|
|
|
901
901
|
return !(typeof w.x != "number" || typeof w.y != "number" || typeof w.width != "number" || typeof w.height != "number");
|
|
902
902
|
}
|
|
903
903
|
e.isValidDescriptor = K;
|
|
904
|
-
function
|
|
904
|
+
function X(w) {
|
|
905
905
|
return typeof w == "object" && typeof w.top == "number" && typeof w.right == "number" && typeof w.bottom == "number" && typeof w.left == "number" && typeof w.width == "number" && typeof w.height == "number";
|
|
906
906
|
}
|
|
907
|
-
e.isRect =
|
|
908
|
-
function
|
|
907
|
+
e.isRect = X;
|
|
908
|
+
function R(w) {
|
|
909
909
|
return w.top === 0 && w.right === 0 && w.bottom === 0 && w.left === 0 && w.width === 0 && w.height === 0;
|
|
910
910
|
}
|
|
911
|
-
e.isZero =
|
|
911
|
+
e.isZero = R;
|
|
912
912
|
})(xe || (xe = {}));
|
|
913
913
|
function Tt(e) {
|
|
914
914
|
return e === window;
|
|
@@ -950,7 +950,7 @@ function pr(e, { onResize: r }) {
|
|
|
950
950
|
}, [e.current]);
|
|
951
951
|
}
|
|
952
952
|
function Ms() {
|
|
953
|
-
const [e, r] = Oe(
|
|
953
|
+
const [e, r] = Oe(je.zero);
|
|
954
954
|
return Re(() => {
|
|
955
955
|
const i = () => {
|
|
956
956
|
const a = xe.size(xe.fromViewport());
|
|
@@ -976,7 +976,7 @@ function nt(e) {
|
|
|
976
976
|
}), Re(() => {
|
|
977
977
|
const c = e.current, u = xe.from(c);
|
|
978
978
|
u && i(u);
|
|
979
|
-
}, [
|
|
979
|
+
}, [je.toString(a)]), r;
|
|
980
980
|
}
|
|
981
981
|
var on;
|
|
982
982
|
((e) => {
|
|
@@ -1031,15 +1031,15 @@ function Rs({ src: e, srcSet: r, sizes: i }, { onLoadStart: a, onLoadComplete: c
|
|
|
1031
1031
|
let O = !1;
|
|
1032
1032
|
const T = (A) => {
|
|
1033
1033
|
if (O) return;
|
|
1034
|
-
const
|
|
1035
|
-
v.current?.(
|
|
1034
|
+
const S = A.currentTarget;
|
|
1035
|
+
v.current?.(S);
|
|
1036
1036
|
}, I = (A) => {
|
|
1037
1037
|
if (O) return;
|
|
1038
|
-
const
|
|
1039
|
-
x.current?.(
|
|
1040
|
-
},
|
|
1041
|
-
return
|
|
1042
|
-
O = !0,
|
|
1038
|
+
const S = A.currentTarget;
|
|
1039
|
+
x.current?.(S);
|
|
1040
|
+
}, j = new Image();
|
|
1041
|
+
return j.addEventListener("load", T), j.addEventListener("error", I), g.current?.(j), r && (j.srcset = r), i && (j.sizes = i), j.src = e, d.current = j, () => {
|
|
1042
|
+
O = !0, j.removeEventListener("load", T), j.removeEventListener("error", I), d.current = void 0;
|
|
1043
1043
|
};
|
|
1044
1044
|
}, [e, r, i]);
|
|
1045
1045
|
}
|
|
@@ -1053,22 +1053,22 @@ function $o({
|
|
|
1053
1053
|
onLoadComplete: u,
|
|
1054
1054
|
onLoadError: d
|
|
1055
1055
|
} = {}) {
|
|
1056
|
-
const [g, v] = Oe(), x = Se(c), O = Se(u), T = Se(d), I = ve((
|
|
1057
|
-
a || v(void 0), x.current?.(
|
|
1058
|
-
}, [a]),
|
|
1059
|
-
v(zs(
|
|
1060
|
-
}, []), A = ve((
|
|
1061
|
-
a || v(void 0), T.current?.(
|
|
1056
|
+
const [g, v] = Oe(), x = Se(c), O = Se(u), T = Se(d), I = ve((S) => {
|
|
1057
|
+
a || v(void 0), x.current?.(S);
|
|
1058
|
+
}, [a]), j = ve((S) => {
|
|
1059
|
+
v(zs(S)), O.current?.(S);
|
|
1060
|
+
}, []), A = ve((S) => {
|
|
1061
|
+
a || v(void 0), T.current?.(S);
|
|
1062
1062
|
}, [a]);
|
|
1063
1063
|
return Rs({ src: e, srcSet: r, sizes: i }, {
|
|
1064
1064
|
onLoadStart: I,
|
|
1065
|
-
onLoadComplete:
|
|
1065
|
+
onLoadComplete: j,
|
|
1066
1066
|
onLoadError: A
|
|
1067
1067
|
}), g;
|
|
1068
1068
|
}
|
|
1069
1069
|
function zs(e) {
|
|
1070
1070
|
if (e && typeof e.width == "number" && typeof e.height == "number")
|
|
1071
|
-
return
|
|
1071
|
+
return je.make(e.width, e.height);
|
|
1072
1072
|
}
|
|
1073
1073
|
const Ao = /* @__PURE__ */ _e(({
|
|
1074
1074
|
alt: e,
|
|
@@ -1090,7 +1090,7 @@ const Ao = /* @__PURE__ */ _e(({
|
|
|
1090
1090
|
onLoadStart: u,
|
|
1091
1091
|
onLoadComplete: d,
|
|
1092
1092
|
onLoadError: g
|
|
1093
|
-
}),
|
|
1093
|
+
}), j = Fs();
|
|
1094
1094
|
return Ee(() => {
|
|
1095
1095
|
v?.(I);
|
|
1096
1096
|
}, [I?.width, I?.height]), /* @__PURE__ */ b.jsx(
|
|
@@ -1102,7 +1102,7 @@ const Ao = /* @__PURE__ */ _e(({
|
|
|
1102
1102
|
alt: e,
|
|
1103
1103
|
loading: i,
|
|
1104
1104
|
src: a,
|
|
1105
|
-
style: { ...
|
|
1105
|
+
style: { ...j.root, ...c }
|
|
1106
1106
|
}
|
|
1107
1107
|
);
|
|
1108
1108
|
});
|
|
@@ -1155,10 +1155,10 @@ const Ls = /* @__PURE__ */ _e(({
|
|
|
1155
1155
|
...O
|
|
1156
1156
|
}, T) => {
|
|
1157
1157
|
const I = (P) => {
|
|
1158
|
-
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1161
|
-
|
|
1158
|
+
k(P ? P.width / P.height : NaN);
|
|
1159
|
+
}, j = we(null), A = T ?? j, [S, k] = Oe(NaN), ee = isNaN(i) ? S : i, K = nt(A), X = K.width / K.height, R = je.make(
|
|
1160
|
+
X > 1 ? Math.max(K.width, K.height * ee) : Math.max(K.width, Math.max(K.height, K.width / ee) * ee),
|
|
1161
|
+
X > 1 ? Math.max(K.height, Math.max(K.width, K.height * ee) / ee) : Math.max(K.height, K.width / ee)
|
|
1162
1162
|
), w = ze(e, {
|
|
1163
1163
|
content: Ro,
|
|
1164
1164
|
viewport: zo
|
|
@@ -1177,9 +1177,9 @@ const Ls = /* @__PURE__ */ _e(({
|
|
|
1177
1177
|
sources: a,
|
|
1178
1178
|
src: u,
|
|
1179
1179
|
style: ce(Mn.viewport, {
|
|
1180
|
-
height: `${
|
|
1180
|
+
height: `${R.height}px`,
|
|
1181
1181
|
maxWidth: "unset",
|
|
1182
|
-
width: `${
|
|
1182
|
+
width: `${R.width}px`
|
|
1183
1183
|
}),
|
|
1184
1184
|
onLoadComplete: v,
|
|
1185
1185
|
onLoadError: x,
|
|
@@ -1192,9 +1192,9 @@ const Ls = /* @__PURE__ */ _e(({
|
|
|
1192
1192
|
{
|
|
1193
1193
|
element: w.viewport,
|
|
1194
1194
|
style: ce(Mn.viewport, {
|
|
1195
|
-
height: `${
|
|
1195
|
+
height: `${R.height}px`,
|
|
1196
1196
|
pointerEvents: "none",
|
|
1197
|
-
width: `${
|
|
1197
|
+
width: `${R.width}px`
|
|
1198
1198
|
})
|
|
1199
1199
|
}
|
|
1200
1200
|
),
|
|
@@ -1235,12 +1235,12 @@ function Ds(e, {
|
|
|
1235
1235
|
onLoadComplete: a,
|
|
1236
1236
|
onLoadError: c
|
|
1237
1237
|
} = {}) {
|
|
1238
|
-
const [u, d] = Oe(), g = Se(i), v = Se(a), x = Se(c), O = ve((
|
|
1239
|
-
r || d(void 0), g.current?.(
|
|
1240
|
-
}, [r]), T = ve((
|
|
1241
|
-
d(Hs(
|
|
1242
|
-
}, []), I = ve((
|
|
1243
|
-
r || d(void 0), x.current?.(
|
|
1238
|
+
const [u, d] = Oe(), g = Se(i), v = Se(a), x = Se(c), O = ve((j) => {
|
|
1239
|
+
r || d(void 0), g.current?.(j);
|
|
1240
|
+
}, [r]), T = ve((j) => {
|
|
1241
|
+
d(Hs(j)), v.current?.(j);
|
|
1242
|
+
}, []), I = ve((j) => {
|
|
1243
|
+
r || d(void 0), x.current?.(j);
|
|
1244
1244
|
}, [r]);
|
|
1245
1245
|
return Vs(e, {
|
|
1246
1246
|
onLoadStart: O,
|
|
@@ -1250,7 +1250,7 @@ function Ds(e, {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
function Hs(e) {
|
|
1252
1252
|
if (e && typeof e.videoWidth == "number" && typeof e.videoHeight == "number")
|
|
1253
|
-
return
|
|
1253
|
+
return je.make(e.videoWidth, e.videoHeight);
|
|
1254
1254
|
}
|
|
1255
1255
|
const Fo = /* @__PURE__ */ _e(({
|
|
1256
1256
|
autoLoop: e = !0,
|
|
@@ -1266,17 +1266,17 @@ const Fo = /* @__PURE__ */ _e(({
|
|
|
1266
1266
|
onFullscreenChange: O,
|
|
1267
1267
|
onLoadMetadata: T,
|
|
1268
1268
|
onLoadMetadataComplete: I,
|
|
1269
|
-
onLoadMetadataError:
|
|
1269
|
+
onLoadMetadataError: j,
|
|
1270
1270
|
onPause: A,
|
|
1271
|
-
onPlay:
|
|
1272
|
-
onSizeChange:
|
|
1271
|
+
onPlay: S,
|
|
1272
|
+
onSizeChange: k,
|
|
1273
1273
|
onTimeUpdate: ee,
|
|
1274
1274
|
...K
|
|
1275
|
-
},
|
|
1276
|
-
const
|
|
1275
|
+
}, X) => {
|
|
1276
|
+
const R = we(null), w = X ?? R, P = Ds(d, {
|
|
1277
1277
|
onLoadStart: T,
|
|
1278
1278
|
onLoadComplete: I,
|
|
1279
|
-
onLoadError:
|
|
1279
|
+
onLoadError: j
|
|
1280
1280
|
}), E = Bs();
|
|
1281
1281
|
Ee(() => {
|
|
1282
1282
|
if (!w.current) return;
|
|
@@ -1295,13 +1295,13 @@ const Fo = /* @__PURE__ */ _e(({
|
|
|
1295
1295
|
H(), w.current?.removeEventListener("webkitfullscreenchange", F), w.current?.removeEventListener("mozfullscreenchange", F), w.current?.removeEventListener("fullscreenchange", F);
|
|
1296
1296
|
};
|
|
1297
1297
|
}, [d]), Ee(() => {
|
|
1298
|
-
|
|
1298
|
+
k?.(P);
|
|
1299
1299
|
}, [P]);
|
|
1300
|
-
const
|
|
1300
|
+
const M = (F) => {
|
|
1301
1301
|
const te = F.currentTarget;
|
|
1302
1302
|
r && te.paused && U(), v?.();
|
|
1303
|
-
},
|
|
1304
|
-
|
|
1303
|
+
}, B = (F) => {
|
|
1304
|
+
S?.();
|
|
1305
1305
|
}, W = (F) => {
|
|
1306
1306
|
A?.();
|
|
1307
1307
|
}, oe = (F) => {
|
|
@@ -1326,10 +1326,10 @@ const Fo = /* @__PURE__ */ _e(({
|
|
|
1326
1326
|
playsInline: c,
|
|
1327
1327
|
poster: u,
|
|
1328
1328
|
style: { ...E.root, ...g },
|
|
1329
|
-
onCanPlay:
|
|
1329
|
+
onCanPlay: M,
|
|
1330
1330
|
onEnded: oe,
|
|
1331
1331
|
onPause: W,
|
|
1332
|
-
onPlay:
|
|
1332
|
+
onPlay: B,
|
|
1333
1333
|
onTimeUpdate: Z,
|
|
1334
1334
|
children: /* @__PURE__ */ b.jsx("source", { src: d })
|
|
1335
1335
|
}
|
|
@@ -1357,20 +1357,20 @@ const Ys = /* @__PURE__ */ _e(({
|
|
|
1357
1357
|
src: O,
|
|
1358
1358
|
onCanPlay: T,
|
|
1359
1359
|
onEnd: I,
|
|
1360
|
-
onFullscreenChange:
|
|
1360
|
+
onFullscreenChange: j,
|
|
1361
1361
|
onLoadMetadata: A,
|
|
1362
|
-
onLoadMetadataComplete:
|
|
1363
|
-
onLoadMetadataError:
|
|
1362
|
+
onLoadMetadataComplete: S,
|
|
1363
|
+
onLoadMetadataError: k,
|
|
1364
1364
|
onPause: ee,
|
|
1365
1365
|
onPlay: K,
|
|
1366
|
-
onSizeChange:
|
|
1367
|
-
...
|
|
1366
|
+
onSizeChange: X,
|
|
1367
|
+
...R
|
|
1368
1368
|
}, w) => {
|
|
1369
1369
|
const P = (F) => {
|
|
1370
|
-
W(F ? F.width / F.height : NaN),
|
|
1371
|
-
}, E = w ?? we(null),
|
|
1372
|
-
Z > 1 ? Math.max(
|
|
1373
|
-
Z > 1 ? Math.max(
|
|
1370
|
+
W(F ? F.width / F.height : NaN), X?.(F);
|
|
1371
|
+
}, E = w ?? we(null), M = nt(E), [B, W] = Oe(NaN), oe = isNaN(a) ? B : a, Z = M.width / M.height, U = je.make(
|
|
1372
|
+
Z > 1 ? Math.max(M.width, M.height * oe) : Math.max(M.width, Math.max(M.height, M.width / oe) * oe),
|
|
1373
|
+
Z > 1 ? Math.max(M.height, Math.max(M.width, M.height * oe) / oe) : Math.max(M.height, M.width / oe)
|
|
1374
1374
|
), H = ze(r, {
|
|
1375
1375
|
content: Lo,
|
|
1376
1376
|
viewport: Vo
|
|
@@ -1378,7 +1378,7 @@ const Ys = /* @__PURE__ */ _e(({
|
|
|
1378
1378
|
return /* @__PURE__ */ b.jsxs(
|
|
1379
1379
|
"div",
|
|
1380
1380
|
{
|
|
1381
|
-
...
|
|
1381
|
+
...R,
|
|
1382
1382
|
ref: E,
|
|
1383
1383
|
className: e,
|
|
1384
1384
|
style: ce(i, Rn.root),
|
|
@@ -1400,10 +1400,10 @@ const Ys = /* @__PURE__ */ _e(({
|
|
|
1400
1400
|
}),
|
|
1401
1401
|
onCanPlay: T,
|
|
1402
1402
|
onEnd: I,
|
|
1403
|
-
onFullscreenChange:
|
|
1403
|
+
onFullscreenChange: j,
|
|
1404
1404
|
onLoadMetadata: A,
|
|
1405
|
-
onLoadMetadataComplete:
|
|
1406
|
-
onLoadMetadataError:
|
|
1405
|
+
onLoadMetadataComplete: S,
|
|
1406
|
+
onLoadMetadataError: k,
|
|
1407
1407
|
onPause: ee,
|
|
1408
1408
|
onPlay: K,
|
|
1409
1409
|
onSizeChange: (F) => P(F)
|
|
@@ -1579,14 +1579,14 @@ function Js() {
|
|
|
1579
1579
|
function d(n, t) {
|
|
1580
1580
|
for (var o = 0; o < t.length; o++) {
|
|
1581
1581
|
var s = t[o];
|
|
1582
|
-
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(n,
|
|
1582
|
+
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(n, S(s.key), s);
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
1585
|
function g(n, t, o) {
|
|
1586
1586
|
return t && d(n.prototype, t), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
1587
1587
|
}
|
|
1588
1588
|
function v(n, t, o) {
|
|
1589
|
-
return (t =
|
|
1589
|
+
return (t = S(t)) in n ? Object.defineProperty(n, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = o, n;
|
|
1590
1590
|
}
|
|
1591
1591
|
function x(n, t) {
|
|
1592
1592
|
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1606,7 +1606,7 @@ function Js() {
|
|
|
1606
1606
|
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1607
1607
|
return n;
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function j(n) {
|
|
1610
1610
|
var t = (function() {
|
|
1611
1611
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
1612
1612
|
if (typeof Proxy == "function") return !0;
|
|
@@ -1642,7 +1642,7 @@ function Js() {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
}, A.apply(this, arguments);
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function S(n) {
|
|
1646
1646
|
var t = (function(o, s) {
|
|
1647
1647
|
if (typeof o != "object" || o === null) return o;
|
|
1648
1648
|
var l = o[Symbol.toPrimitive];
|
|
@@ -1655,24 +1655,24 @@ function Js() {
|
|
|
1655
1655
|
})(n, "string");
|
|
1656
1656
|
return typeof t == "symbol" ? t : t + "";
|
|
1657
1657
|
}
|
|
1658
|
-
var
|
|
1658
|
+
var k = function(n) {
|
|
1659
1659
|
return !(!n || !n.Window) && n instanceof n.Window;
|
|
1660
1660
|
}, ee = void 0, K = void 0;
|
|
1661
|
-
function
|
|
1661
|
+
function X(n) {
|
|
1662
1662
|
ee = n;
|
|
1663
1663
|
var t = n.document.createTextNode("");
|
|
1664
1664
|
t.ownerDocument !== n.document && typeof n.wrap == "function" && n.wrap(t) === t && (n = n.wrap(n)), K = n;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return
|
|
1666
|
+
function R(n) {
|
|
1667
|
+
return k(n) ? n : (n.ownerDocument || n).defaultView || K.window;
|
|
1668
1668
|
}
|
|
1669
|
-
typeof window < "u" && window &&
|
|
1669
|
+
typeof window < "u" && window && X(window);
|
|
1670
1670
|
var w = function(n) {
|
|
1671
1671
|
return !!n && c(n) === "object";
|
|
1672
1672
|
}, P = function(n) {
|
|
1673
1673
|
return typeof n == "function";
|
|
1674
1674
|
}, E = { window: function(n) {
|
|
1675
|
-
return n === K ||
|
|
1675
|
+
return n === K || k(n);
|
|
1676
1676
|
}, docFrag: function(n) {
|
|
1677
1677
|
return w(n) && n.nodeType === 11;
|
|
1678
1678
|
}, object: w, func: P, number: function(n) {
|
|
@@ -1683,21 +1683,21 @@ function Js() {
|
|
|
1683
1683
|
return typeof n == "string";
|
|
1684
1684
|
}, element: function(n) {
|
|
1685
1685
|
if (!n || c(n) !== "object") return !1;
|
|
1686
|
-
var t =
|
|
1686
|
+
var t = R(n) || K;
|
|
1687
1687
|
return /object|function/.test(typeof Element > "u" ? "undefined" : c(Element)) ? n instanceof Element || n instanceof t.Element : n.nodeType === 1 && typeof n.nodeName == "string";
|
|
1688
1688
|
}, plainObject: function(n) {
|
|
1689
1689
|
return w(n) && !!n.constructor && /function Object\b/.test(n.constructor.toString());
|
|
1690
1690
|
}, array: function(n) {
|
|
1691
1691
|
return w(n) && n.length !== void 0 && P(n.splice);
|
|
1692
1692
|
} };
|
|
1693
|
-
function
|
|
1693
|
+
function M(n) {
|
|
1694
1694
|
var t = n.interaction;
|
|
1695
1695
|
if (t.prepared.name === "drag") {
|
|
1696
1696
|
var o = t.prepared.axis;
|
|
1697
1697
|
o === "x" ? (t.coords.cur.page.y = t.coords.start.page.y, t.coords.cur.client.y = t.coords.start.client.y, t.coords.velocity.client.y = 0, t.coords.velocity.page.y = 0) : o === "y" && (t.coords.cur.page.x = t.coords.start.page.x, t.coords.cur.client.x = t.coords.start.client.x, t.coords.velocity.client.x = 0, t.coords.velocity.page.x = 0);
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function B(n) {
|
|
1701
1701
|
var t = n.iEvent, o = n.interaction;
|
|
1702
1702
|
if (o.prepared.name === "drag") {
|
|
1703
1703
|
var s = o.prepared.axis;
|
|
@@ -1710,12 +1710,12 @@ function Js() {
|
|
|
1710
1710
|
var W = { id: "actions/drag", install: function(n) {
|
|
1711
1711
|
var t = n.actions, o = n.Interactable, s = n.defaults;
|
|
1712
1712
|
o.prototype.draggable = W.draggable, t.map.drag = W, t.methodDict.drag = "draggable", s.actions.drag = W.defaults;
|
|
1713
|
-
}, listeners: { "interactions:before-action-move":
|
|
1713
|
+
}, listeners: { "interactions:before-action-move": M, "interactions:action-resume": M, "interactions:action-move": B, "auto-start:check": function(n) {
|
|
1714
1714
|
var t = n.interaction, o = n.interactable, s = n.buttons, l = o.options.drag;
|
|
1715
1715
|
if (l && l.enabled && (!t.pointerIsDown || !/mouse|pointer/.test(t.pointerType) || (s & o.options.drag.mouseButtons) != 0)) return n.action = { name: "drag", axis: l.lockAxis === "start" ? l.startAxis : l.lockAxis }, !1;
|
|
1716
1716
|
} }, draggable: function(n) {
|
|
1717
1717
|
return E.object(n) ? (this.options.drag.enabled = n.enabled !== !1, this.setPerAction("drag", n), this.setOnEvents("drag", n), /^(xy|x|y|start)$/.test(n.lockAxis) && (this.options.drag.lockAxis = n.lockAxis), /^(xy|x|y)$/.test(n.startAxis) && (this.options.drag.startAxis = n.startAxis), this) : E.bool(n) ? (this.options.drag.enabled = n, this) : this.options.drag;
|
|
1718
|
-
}, beforeMove:
|
|
1718
|
+
}, beforeMove: M, move: B, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
|
|
1719
1719
|
return "move";
|
|
1720
1720
|
}, filterEventType: function(n) {
|
|
1721
1721
|
return n.search("drag") === 0;
|
|
@@ -1755,11 +1755,11 @@ function Js() {
|
|
|
1755
1755
|
function z(n, t) {
|
|
1756
1756
|
return K !== ee && (t = t.replace(/\/deep\//g, " ")), n[te.prefixedMatchesSelector](t);
|
|
1757
1757
|
}
|
|
1758
|
-
var
|
|
1758
|
+
var C = function(n) {
|
|
1759
1759
|
return n.parentNode || n.host;
|
|
1760
1760
|
};
|
|
1761
1761
|
function G(n, t) {
|
|
1762
|
-
for (var o, s = [], l = n; (o =
|
|
1762
|
+
for (var o, s = [], l = n; (o = C(l)) && l !== t && o !== l.ownerDocument; ) s.unshift(l), l = o;
|
|
1763
1763
|
return s;
|
|
1764
1764
|
}
|
|
1765
1765
|
function J(n, t, o) {
|
|
@@ -1779,7 +1779,7 @@ function Js() {
|
|
|
1779
1779
|
function he(n) {
|
|
1780
1780
|
var t, o = fe(n);
|
|
1781
1781
|
if (!te.isIOS7 && o) {
|
|
1782
|
-
var s = { x: (t = (t =
|
|
1782
|
+
var s = { x: (t = (t = R(n)) || K).scrollX || t.document.documentElement.scrollLeft, y: t.scrollY || t.document.documentElement.scrollTop };
|
|
1783
1783
|
o.left += s.x, o.right += s.x, o.top += s.y, o.bottom += s.y;
|
|
1784
1784
|
}
|
|
1785
1785
|
return o;
|
|
@@ -1798,7 +1798,7 @@ function Js() {
|
|
|
1798
1798
|
function He(n, t, o) {
|
|
1799
1799
|
return n === "parent" ? V(o) : n === "self" ? t.getRect(o) : ae(o, n);
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function Ce(n, t, o, s) {
|
|
1802
1802
|
var l = n;
|
|
1803
1803
|
return E.string(l) ? l = He(l, t, o) : E.func(l) && (l = l.apply(void 0, s)), E.element(l) && (l = he(l)), l;
|
|
1804
1804
|
}
|
|
@@ -1813,7 +1813,7 @@ function Js() {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
function Ye(n, t, o) {
|
|
1815
1815
|
var s = o && n.options[o];
|
|
1816
|
-
return Ie(
|
|
1816
|
+
return Ie(Ce(s && s.origin || n.options.origin, n, t, [n && t])) || { x: 0, y: 0 };
|
|
1817
1817
|
}
|
|
1818
1818
|
function Xe(n, t) {
|
|
1819
1819
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(m) {
|
|
@@ -1940,19 +1940,19 @@ function Js() {
|
|
|
1940
1940
|
return n[gt(n, t)];
|
|
1941
1941
|
}, ut = (function(n) {
|
|
1942
1942
|
x(o, n);
|
|
1943
|
-
var t =
|
|
1943
|
+
var t = j(o);
|
|
1944
1944
|
function o(s, l, f) {
|
|
1945
1945
|
var p;
|
|
1946
1946
|
u(this, o), (p = t.call(this, l._interaction)).dropzone = void 0, p.dragEvent = void 0, p.relatedTarget = void 0, p.draggable = void 0, p.propagationStopped = !1, p.immediatePropagationStopped = !1;
|
|
1947
|
-
var h = f === "dragleave" ? s.prev : s.cur, m = h.element,
|
|
1948
|
-
return p.type = f, p.target = m, p.currentTarget = m, p.dropzone =
|
|
1947
|
+
var h = f === "dragleave" ? s.prev : s.cur, m = h.element, N = h.dropzone;
|
|
1948
|
+
return p.type = f, p.target = m, p.currentTarget = m, p.dropzone = N, p.dragEvent = l, p.relatedTarget = l.target, p.draggable = l.interactable, p.timeStamp = l.timeStamp, p;
|
|
1949
1949
|
}
|
|
1950
1950
|
return g(o, [{ key: "reject", value: function() {
|
|
1951
1951
|
var s = this, l = this._interaction.dropState;
|
|
1952
1952
|
if (this.type === "dropactivate" || this.dropzone && l.cur.dropzone === this.dropzone && l.cur.element === this.target) if (l.prev.dropzone = this.dropzone, l.prev.element = this.target, l.rejected = !0, l.events.enter = null, this.stopImmediatePropagation(), this.type === "dropactivate") {
|
|
1953
1953
|
var f = l.activeDrops, p = gt(f, (function(m) {
|
|
1954
|
-
var
|
|
1955
|
-
return
|
|
1954
|
+
var N = m.dropzone, y = m.element;
|
|
1955
|
+
return N === s.dropzone && y === s.target;
|
|
1956
1956
|
}));
|
|
1957
1957
|
l.activeDrops.splice(p, 1);
|
|
1958
1958
|
var h = new o(l, this.dragEvent, "dropdeactivate");
|
|
@@ -1973,8 +1973,8 @@ function Js() {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
function mn(n, t) {
|
|
1975
1975
|
for (var o = (function(f, p) {
|
|
1976
|
-
for (var h = [], m = 0,
|
|
1977
|
-
var y =
|
|
1976
|
+
for (var h = [], m = 0, N = f.interactables.list; m < N.length; m++) {
|
|
1977
|
+
var y = N[m];
|
|
1978
1978
|
if (y.options.drop.enabled) {
|
|
1979
1979
|
var _ = y.options.drop.accept;
|
|
1980
1980
|
if (!(E.element(_) && _ !== p || E.string(_) && !z(p, _) || E.func(_) && !_({ dropzone: y, draggableElement: p }))) for (var $ = 0, D = y.getAllElements(); $ < D.length; $++) {
|
|
@@ -1992,14 +1992,14 @@ function Js() {
|
|
|
1992
1992
|
}
|
|
1993
1993
|
function Or(n, t, o) {
|
|
1994
1994
|
for (var s = n.dropState, l = n.interactable, f = n.element, p = [], h = 0, m = s.activeDrops; h < m.length; h++) {
|
|
1995
|
-
var
|
|
1995
|
+
var N = m[h], y = N.dropzone, _ = N.element, $ = N.rect, D = y.dropCheck(t, o, l, f, _, $);
|
|
1996
1996
|
p.push(D ? _ : null);
|
|
1997
1997
|
}
|
|
1998
|
-
var L = (function(
|
|
1999
|
-
for (var ie, re, le, me = [], be = 0; be <
|
|
2000
|
-
var de =
|
|
1998
|
+
var L = (function(Y) {
|
|
1999
|
+
for (var ie, re, le, me = [], be = 0; be < Y.length; be++) {
|
|
2000
|
+
var de = Y[be], ye = Y[ie];
|
|
2001
2001
|
if (de && be !== ie) if (ye) {
|
|
2002
|
-
var Ae =
|
|
2002
|
+
var Ae = C(de), Pe = C(ye);
|
|
2003
2003
|
if (Ae !== de.ownerDocument) if (Pe !== de.ownerDocument) if (Ae !== Pe) {
|
|
2004
2004
|
me = me.length ? me : G(ye);
|
|
2005
2005
|
var Ve = void 0;
|
|
@@ -2017,7 +2017,7 @@ function Js() {
|
|
|
2017
2017
|
if (Et === Xt[2]) break;
|
|
2018
2018
|
Et = Et.previousSibling;
|
|
2019
2019
|
}
|
|
2020
|
-
} else le = ye, (parseInt(
|
|
2020
|
+
} else le = ye, (parseInt(R(re = de).getComputedStyle(re).zIndex, 10) || 0) >= (parseInt(R(le).getComputedStyle(le).zIndex, 10) || 0) && (ie = be);
|
|
2021
2021
|
else ie = be;
|
|
2022
2022
|
} else ie = be;
|
|
2023
2023
|
}
|
|
@@ -2048,33 +2048,33 @@ function Js() {
|
|
|
2048
2048
|
return (function(p, h) {
|
|
2049
2049
|
if (E.object(h)) {
|
|
2050
2050
|
if (p.options.drop.enabled = h.enabled !== !1, h.listeners) {
|
|
2051
|
-
var m = Xe(h.listeners),
|
|
2051
|
+
var m = Xe(h.listeners), N = Object.keys(m).reduce((function(_, $) {
|
|
2052
2052
|
return _[/^(enter|leave)/.test($) ? "drag".concat($) : /^(activate|deactivate|move)/.test($) ? "drop".concat($) : $] = m[$], _;
|
|
2053
2053
|
}), {}), y = p.options.drop.listeners;
|
|
2054
|
-
y && p.off(y), p.on(
|
|
2054
|
+
y && p.off(y), p.on(N), p.options.drop.listeners = N;
|
|
2055
2055
|
}
|
|
2056
2056
|
return E.func(h.ondrop) && p.on("drop", h.ondrop), E.func(h.ondropactivate) && p.on("dropactivate", h.ondropactivate), E.func(h.ondropdeactivate) && p.on("dropdeactivate", h.ondropdeactivate), E.func(h.ondragenter) && p.on("dragenter", h.ondragenter), E.func(h.ondragleave) && p.on("dragleave", h.ondragleave), E.func(h.ondropmove) && p.on("dropmove", h.ondropmove), /^(pointer|center)$/.test(h.overlap) ? p.options.drop.overlap = h.overlap : E.number(h.overlap) && (p.options.drop.overlap = Math.max(Math.min(1, h.overlap), 0)), "accept" in h && (p.options.drop.accept = h.accept), "checker" in h && (p.options.drop.checker = h.checker), p;
|
|
2057
2057
|
}
|
|
2058
2058
|
return E.bool(h) ? (p.options.drop.enabled = h, p) : p.options.drop;
|
|
2059
2059
|
})(this, f);
|
|
2060
|
-
}, s.prototype.dropCheck = function(f, p, h, m,
|
|
2061
|
-
return (function(_, $, D, L,
|
|
2060
|
+
}, s.prototype.dropCheck = function(f, p, h, m, N, y) {
|
|
2061
|
+
return (function(_, $, D, L, Y, ie, re) {
|
|
2062
2062
|
var le = !1;
|
|
2063
|
-
if (!(re = re || _.getRect(ie))) return !!_.options.drop.checker && _.options.drop.checker($, D, le, _, ie, L,
|
|
2063
|
+
if (!(re = re || _.getRect(ie))) return !!_.options.drop.checker && _.options.drop.checker($, D, le, _, ie, L, Y);
|
|
2064
2064
|
var me = _.options.drop.overlap;
|
|
2065
2065
|
if (me === "pointer") {
|
|
2066
|
-
var be = Ye(L,
|
|
2066
|
+
var be = Ye(L, Y, "drag"), de = br($);
|
|
2067
2067
|
de.x += be.x, de.y += be.y;
|
|
2068
2068
|
var ye = de.x > re.left && de.x < re.right, Ae = de.y > re.top && de.y < re.bottom;
|
|
2069
2069
|
le = ye && Ae;
|
|
2070
2070
|
}
|
|
2071
|
-
var Pe = L.getRect(
|
|
2071
|
+
var Pe = L.getRect(Y);
|
|
2072
2072
|
if (Pe && me === "center") {
|
|
2073
2073
|
var Ve = Pe.left + Pe.width / 2, De = Pe.top + Pe.height / 2;
|
|
2074
2074
|
le = Ve >= re.left && Ve <= re.right && De >= re.top && De <= re.bottom;
|
|
2075
2075
|
}
|
|
2076
|
-
return Pe && E.number(me) && (le = Math.max(0, Math.min(re.right, Pe.right) - Math.max(re.left, Pe.left)) * Math.max(0, Math.min(re.bottom, Pe.bottom) - Math.max(re.top, Pe.top)) / (Pe.width * Pe.height) >= me), _.options.drop.checker && (le = _.options.drop.checker($, D, le, _, ie, L,
|
|
2077
|
-
})(this, f, p, h, m,
|
|
2076
|
+
return Pe && E.number(me) && (le = Math.max(0, Math.min(re.right, Pe.right) - Math.max(re.left, Pe.left)) * Math.max(0, Math.min(re.bottom, Pe.bottom) - Math.max(re.top, Pe.top)) / (Pe.width * Pe.height) >= me), _.options.drop.checker && (le = _.options.drop.checker($, D, le, _, ie, L, Y)), le;
|
|
2077
|
+
})(this, f, p, h, m, N, y);
|
|
2078
2078
|
}, o.dynamicDrop = function(f) {
|
|
2079
2079
|
return E.bool(f) ? (n.dynamicDrop = f, o) : n.dynamicDrop;
|
|
2080
2080
|
}, Q(t.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), t.methodDict.drop = "dropzone", n.dynamicDrop = !1, l.actions.drop = Ir.defaults;
|
|
@@ -2110,8 +2110,8 @@ function Js() {
|
|
|
2110
2110
|
function bn(n) {
|
|
2111
2111
|
var t = n.interaction, o = n.iEvent, s = n.phase;
|
|
2112
2112
|
if (t.prepared.name === "gesture") {
|
|
2113
|
-
var l = t.pointers.map((function(
|
|
2114
|
-
return
|
|
2113
|
+
var l = t.pointers.map((function(N) {
|
|
2114
|
+
return N.pointer;
|
|
2115
2115
|
})), f = s === "start", p = s === "end", h = t.interactable.options.deltaSource;
|
|
2116
2116
|
if (o.touches = [l[0], l[1]], f) o.distance = gn(l, h), o.box = hn(l), o.scale = 1, o.ds = 0, o.angle = vn(l, h), o.da = 0, t.gesture.startDistance = o.distance, t.gesture.startAngle = o.angle;
|
|
2117
2117
|
else if (p || t.pointers.length < 2) {
|
|
@@ -2143,8 +2143,8 @@ function Js() {
|
|
|
2143
2143
|
if (t === !0) {
|
|
2144
2144
|
var h = E.number(f.width) ? f.width : f.right - f.left, m = E.number(f.height) ? f.height : f.bottom - f.top;
|
|
2145
2145
|
if (p = Math.min(p, Math.abs((n === "left" || n === "right" ? h : m) / 2)), h < 0 && (n === "left" ? n = "right" : n === "right" && (n = "left")), m < 0 && (n === "top" ? n = "bottom" : n === "bottom" && (n = "top")), n === "left") {
|
|
2146
|
-
var
|
|
2147
|
-
return o.x <
|
|
2146
|
+
var N = h >= 0 ? f.left : f.right;
|
|
2147
|
+
return o.x < N + p;
|
|
2148
2148
|
}
|
|
2149
2149
|
if (n === "top") {
|
|
2150
2150
|
var y = m >= 0 ? f.top : f.bottom;
|
|
@@ -2185,7 +2185,7 @@ function Js() {
|
|
|
2185
2185
|
(function(t) {
|
|
2186
2186
|
var o = t.iEvent, s = t.interaction;
|
|
2187
2187
|
if (s.prepared.name === "resize" && s.prepared.edges) {
|
|
2188
|
-
var l = o, f = s.interactable.options.resize.invert, p = f === "reposition" || f === "negate", h = s.rect, m = s._rects,
|
|
2188
|
+
var l = o, f = s.interactable.options.resize.invert, p = f === "reposition" || f === "negate", h = s.rect, m = s._rects, N = m.start, y = m.corrected, _ = m.delta, $ = m.previous;
|
|
2189
2189
|
if (Q($, y), p) {
|
|
2190
2190
|
if (Q(y, h), f === "reposition") {
|
|
2191
2191
|
if (y.top > y.bottom) {
|
|
@@ -2197,8 +2197,8 @@ function Js() {
|
|
|
2197
2197
|
y.left = y.right, y.right = L;
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
|
-
} else y.top = Math.min(h.top,
|
|
2201
|
-
for (var
|
|
2200
|
+
} else y.top = Math.min(h.top, N.bottom), y.bottom = Math.max(h.bottom, N.top), y.left = Math.min(h.left, N.right), y.right = Math.max(h.right, N.left);
|
|
2201
|
+
for (var Y in y.width = y.right - y.left, y.height = y.bottom - y.top, y) _[Y] = y[Y] - $[Y];
|
|
2202
2202
|
l.edges = s.prepared.edges, l.rect = y, l.deltaRect = _;
|
|
2203
2203
|
}
|
|
2204
2204
|
})(n), kr(n);
|
|
@@ -2215,7 +2215,7 @@ function Js() {
|
|
|
2215
2215
|
if (h && h.enabled && (!t.pointerIsDown || !/mouse|pointer/.test(t.pointerType) || (f & h.mouseButtons) != 0)) {
|
|
2216
2216
|
if (E.object(h.edges)) {
|
|
2217
2217
|
var m = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
2218
|
-
for (var
|
|
2218
|
+
for (var N in m) m[N] = hi(N, h.edges[N], p, t._latestPointer.eventTarget, s, l, h.margin || Ge.defaultMargin);
|
|
2219
2219
|
m.left = m.left && !m.right, m.top = m.top && !m.bottom, (m.left || m.right || m.top || m.bottom) && (n.action = { name: "resize", edges: m });
|
|
2220
2220
|
} else {
|
|
2221
2221
|
var y = h.axis !== "y" && p.x > l.right - Ge.defaultMargin, _ = h.axis !== "x" && p.y > l.bottom - Ge.defaultMargin;
|
|
@@ -2229,8 +2229,8 @@ function Js() {
|
|
|
2229
2229
|
if (o) f = l[s + o];
|
|
2230
2230
|
else if (t) {
|
|
2231
2231
|
for (var p = "", h = 0, m = ["top", "bottom", "left", "right"]; h < m.length; h++) {
|
|
2232
|
-
var
|
|
2233
|
-
t[
|
|
2232
|
+
var N = m[h];
|
|
2233
|
+
t[N] && (p += N);
|
|
2234
2234
|
}
|
|
2235
2235
|
f = l[p];
|
|
2236
2236
|
}
|
|
@@ -2239,7 +2239,7 @@ function Js() {
|
|
|
2239
2239
|
return n.search("resize") === 0;
|
|
2240
2240
|
}, defaultMargin: null }, gi = Ge, vi = { id: "actions", install: function(n) {
|
|
2241
2241
|
n.usePlugin(pi), n.usePlugin(gi), n.usePlugin(oe), n.usePlugin(di);
|
|
2242
|
-
} },
|
|
2242
|
+
} }, Cr = 0, Je = { request: function(n) {
|
|
2243
2243
|
return Ue(n);
|
|
2244
2244
|
}, cancel: function(n) {
|
|
2245
2245
|
return ot(n);
|
|
@@ -2249,10 +2249,10 @@ function Js() {
|
|
|
2249
2249
|
Ue = n["".concat(s, "RequestAnimationFrame")], ot = n["".concat(s, "CancelAnimationFrame")] || n["".concat(s, "CancelRequestAnimationFrame")];
|
|
2250
2250
|
}
|
|
2251
2251
|
Ue = Ue && Ue.bind(n), ot = ot && ot.bind(n), Ue || (Ue = function(l) {
|
|
2252
|
-
var f = Date.now(), p = Math.max(0, 16 - (f -
|
|
2252
|
+
var f = Date.now(), p = Math.max(0, 16 - (f - Cr)), h = n.setTimeout((function() {
|
|
2253
2253
|
l(f + p);
|
|
2254
2254
|
}), p);
|
|
2255
|
-
return
|
|
2255
|
+
return Cr = f + p, h;
|
|
2256
2256
|
}, ot = function(l) {
|
|
2257
2257
|
return clearTimeout(l);
|
|
2258
2258
|
});
|
|
@@ -2261,12 +2261,12 @@ function Js() {
|
|
|
2261
2261
|
}, stop: function() {
|
|
2262
2262
|
pe.isScrolling = !1, pe.interaction && (pe.interaction.autoScroll = null), Je.cancel(pe.i);
|
|
2263
2263
|
}, scroll: function() {
|
|
2264
|
-
var n = pe.interaction, t = n.interactable, o = n.element, s = n.prepared.name, l = t.options[s].autoScroll, f =
|
|
2264
|
+
var n = pe.interaction, t = n.interactable, o = n.element, s = n.prepared.name, l = t.options[s].autoScroll, f = jr(l.container, t, o), p = pe.now(), h = (p - pe.prevTime) / 1e3, m = l.speed * h;
|
|
2265
2265
|
if (m >= 1) {
|
|
2266
|
-
var
|
|
2267
|
-
if (
|
|
2266
|
+
var N = { x: pe.x * m, y: pe.y * m };
|
|
2267
|
+
if (N.x || N.y) {
|
|
2268
2268
|
var y = $r(f);
|
|
2269
|
-
E.window(f) ? f.scrollBy(
|
|
2269
|
+
E.window(f) ? f.scrollBy(N.x, N.y) : f && (f.scrollLeft += N.x, f.scrollTop += N.y);
|
|
2270
2270
|
var _ = $r(f), $ = { x: _.x - y.x, y: _.y - y.y };
|
|
2271
2271
|
($.x || $.y) && t.fire({ type: "autoscroll", target: o, interactable: t, delta: $, interaction: n, container: f });
|
|
2272
2272
|
}
|
|
@@ -2280,7 +2280,7 @@ function Js() {
|
|
|
2280
2280
|
var t = n.interaction, o = n.pointer;
|
|
2281
2281
|
if (t.interacting() && pe.check(t.interactable, t.prepared.name)) if (t.simulation) pe.x = pe.y = 0;
|
|
2282
2282
|
else {
|
|
2283
|
-
var s, l, f, p, h = t.interactable, m = t.element,
|
|
2283
|
+
var s, l, f, p, h = t.interactable, m = t.element, N = t.prepared.name, y = h.options[N].autoScroll, _ = jr(y.container, h, m);
|
|
2284
2284
|
if (E.window(_)) p = o.clientX < pe.margin, s = o.clientY < pe.margin, l = o.clientX > _.innerWidth - pe.margin, f = o.clientY > _.innerHeight - pe.margin;
|
|
2285
2285
|
else {
|
|
2286
2286
|
var $ = fe(_);
|
|
@@ -2289,8 +2289,8 @@ function Js() {
|
|
|
2289
2289
|
pe.x = l ? 1 : p ? -1 : 0, pe.y = f ? 1 : s ? -1 : 0, pe.isScrolling || (pe.margin = y.margin, pe.speed = y.speed, pe.start(t));
|
|
2290
2290
|
}
|
|
2291
2291
|
} };
|
|
2292
|
-
function
|
|
2293
|
-
return (E.string(n) ? He(n, t, o) : n) ||
|
|
2292
|
+
function jr(n, t, o) {
|
|
2293
|
+
return (E.string(n) ? He(n, t, o) : n) || R(o);
|
|
2294
2294
|
}
|
|
2295
2295
|
function $r(n) {
|
|
2296
2296
|
return E.window(n) && (n = window.document.body), { x: n.scrollLeft, y: n.scrollTop };
|
|
@@ -2325,8 +2325,8 @@ function Js() {
|
|
|
2325
2325
|
var wi = { id: "auto-start/interactableMethods", install: function(n) {
|
|
2326
2326
|
var t = n.Interactable;
|
|
2327
2327
|
t.prototype.getAction = function(o, s, l, f) {
|
|
2328
|
-
var p = (function(h, m,
|
|
2329
|
-
var $ = h.getRect(y), D = m.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[m.button], L = { action: null, interactable: h, interaction:
|
|
2328
|
+
var p = (function(h, m, N, y, _) {
|
|
2329
|
+
var $ = h.getRect(y), D = m.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[m.button], L = { action: null, interactable: h, interaction: N, element: y, rect: $, buttons: D };
|
|
2330
2330
|
return _.fire("auto-start:check", L), L.action;
|
|
2331
2331
|
})(this, s, l, f, n);
|
|
2332
2332
|
return this.options.actionChecker ? this.options.actionChecker(o, s, p, this, f, l) : p;
|
|
@@ -2341,10 +2341,10 @@ function Js() {
|
|
|
2341
2341
|
}
|
|
2342
2342
|
function Ei(n, t, o, s, l, f, p) {
|
|
2343
2343
|
for (var h = 0, m = s.length; h < m; h++) {
|
|
2344
|
-
var
|
|
2344
|
+
var N = s[h], y = l[h], _ = N.getAction(t, o, n, y);
|
|
2345
2345
|
if (_) {
|
|
2346
|
-
var $ = Ar(_,
|
|
2347
|
-
if ($) return { action: $, interactable:
|
|
2346
|
+
var $ = Ar(_, N, y, f, p);
|
|
2347
|
+
if ($) return { action: $, interactable: N, element: y };
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
2350
|
return { action: null, interactable: null, element: null };
|
|
@@ -2356,8 +2356,8 @@ function Js() {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
for (; E.element(h); ) {
|
|
2358
2358
|
f = [], p = [], l.interactables.forEachMatch(h, m);
|
|
2359
|
-
var
|
|
2360
|
-
if (
|
|
2359
|
+
var N = Ei(n, t, o, f, p, s, l);
|
|
2360
|
+
if (N.action && !N.interactable.options[N.action.name].manualStart) return N;
|
|
2361
2361
|
h = V(h);
|
|
2362
2362
|
}
|
|
2363
2363
|
return { action: null, interactable: null, element: null };
|
|
@@ -2367,11 +2367,11 @@ function Js() {
|
|
|
2367
2367
|
s = s || { name: null }, n.interactable = l, n.element = f, En(n.prepared, s), n.rect = l && s.name ? l.getRect(f) : null, Fr(n, o), o.fire("autoStart:prepared", { interaction: n });
|
|
2368
2368
|
}
|
|
2369
2369
|
function zt(n, t, o, s) {
|
|
2370
|
-
var l = n.options, f = l[o.name].max, p = l[o.name].maxPerElement, h = s.autoStart.maxInteractions, m = 0,
|
|
2370
|
+
var l = n.options, f = l[o.name].max, p = l[o.name].maxPerElement, h = s.autoStart.maxInteractions, m = 0, N = 0, y = 0;
|
|
2371
2371
|
if (!(f && p && h)) return !1;
|
|
2372
2372
|
for (var _ = 0, $ = s.interactions.list; _ < $.length; _++) {
|
|
2373
2373
|
var D = $[_], L = D.prepared.name;
|
|
2374
|
-
if (D.interacting() && (++m >= h || D.interactable === n && ((
|
|
2374
|
+
if (D.interacting() && (++m >= h || D.interactable === n && ((N += L === o.name ? 1 : 0) >= f || D.element === t && (y++, L === o.name && y >= p))))
|
|
2375
2375
|
return !1;
|
|
2376
2376
|
}
|
|
2377
2377
|
return h > 0;
|
|
@@ -2420,13 +2420,13 @@ function Js() {
|
|
|
2420
2420
|
} }, maxInteractions: zr, withinInteractionLimit: zt, validateAction: Ar }, Sn = Ni, Si = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(n, t) {
|
|
2421
2421
|
var o = n.interaction, s = n.eventTarget, l = n.dx, f = n.dy;
|
|
2422
2422
|
if (o.prepared.name === "drag") {
|
|
2423
|
-
var p = Math.abs(l), h = Math.abs(f), m = o.interactable.options.drag,
|
|
2424
|
-
if (o.prepared.axis = m.lockAxis === "start" ? y[0] : m.lockAxis, y !== "xy" &&
|
|
2423
|
+
var p = Math.abs(l), h = Math.abs(f), m = o.interactable.options.drag, N = m.startAxis, y = p > h ? "x" : p < h ? "y" : "xy";
|
|
2424
|
+
if (o.prepared.axis = m.lockAxis === "start" ? y[0] : m.lockAxis, y !== "xy" && N !== "xy" && N !== y) {
|
|
2425
2425
|
o.prepared.name = null;
|
|
2426
2426
|
for (var _ = s, $ = function(L) {
|
|
2427
2427
|
if (L !== o.interactable) {
|
|
2428
|
-
var
|
|
2429
|
-
if (!
|
|
2428
|
+
var Y = o.interactable.options.drag;
|
|
2429
|
+
if (!Y.manualStart && L.testIgnoreAllow(Y, _, s)) {
|
|
2430
2430
|
var ie = L.getAction(o.downPointer, o.downEvent, o, _);
|
|
2431
2431
|
if (ie && ie.name === "drag" && (function(re, le) {
|
|
2432
2432
|
if (!le) return !1;
|
|
@@ -2484,7 +2484,7 @@ function Js() {
|
|
|
2484
2484
|
var p = s.options.preventDefault;
|
|
2485
2485
|
if (p !== "never") if (p !== "always") {
|
|
2486
2486
|
if (l.events.supportsPassive && /^touch(start|move)$/.test(f.type)) {
|
|
2487
|
-
var h =
|
|
2487
|
+
var h = R(f.target).document, m = l.getDocOptions(h);
|
|
2488
2488
|
if (!m || !m.events || m.events.passive !== !1) return;
|
|
2489
2489
|
}
|
|
2490
2490
|
/^(mouse|pointer|touch)*(down|start)/i.test(f.type) || E.element(f.target) && z(f.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || f.preventDefault();
|
|
@@ -2517,8 +2517,8 @@ function Js() {
|
|
|
2517
2517
|
u(this, n), this.states = [], this.startOffset = { left: 0, right: 0, top: 0, bottom: 0 }, this.startDelta = void 0, this.result = void 0, this.endResult = void 0, this.startEdges = void 0, this.edges = void 0, this.interaction = void 0, this.interaction = t, this.result = Lt(), this.edges = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
2518
2518
|
}
|
|
2519
2519
|
return g(n, [{ key: "start", value: function(t, o) {
|
|
2520
|
-
var s, l, f = t.phase, p = this.interaction, h = (function(
|
|
2521
|
-
var y =
|
|
2520
|
+
var s, l, f = t.phase, p = this.interaction, h = (function(N) {
|
|
2521
|
+
var y = N.interactable.options[N.prepared.name], _ = y.modifiers;
|
|
2522
2522
|
return _ && _.length ? _ : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map((function($) {
|
|
2523
2523
|
var D = y[$];
|
|
2524
2524
|
return D && D.enabled && { options: D, methods: D._methods };
|
|
@@ -2540,26 +2540,26 @@ function Js() {
|
|
|
2540
2540
|
} }, { key: "setAll", value: function(t) {
|
|
2541
2541
|
var o = t.phase, s = t.preEnd, l = t.skipModifiers, f = t.rect, p = t.edges;
|
|
2542
2542
|
t.coords = Q({}, t.pageCoords), t.rect = Q({}, f), t.edges = Q({}, p);
|
|
2543
|
-
for (var h = l ? this.states.slice(l) : this.states, m = Lt(t.coords, t.rect),
|
|
2544
|
-
var y, _ = h[
|
|
2543
|
+
for (var h = l ? this.states.slice(l) : this.states, m = Lt(t.coords, t.rect), N = 0; N < h.length; N++) {
|
|
2544
|
+
var y, _ = h[N], $ = _.options, D = Q({}, t.coords), L = null;
|
|
2545
2545
|
(y = _.methods) != null && y.set && this.shouldDo($, s, o) && (t.state = _, L = _.methods.set(t), Fe(t.edges, t.rect, { x: t.coords.x - D.x, y: t.coords.y - D.y })), m.eventProps.push(L);
|
|
2546
2546
|
}
|
|
2547
2547
|
Q(this.edges, t.edges), m.delta.x = t.coords.x - t.pageCoords.x, m.delta.y = t.coords.y - t.pageCoords.y, m.rectDelta.left = t.rect.left - f.left, m.rectDelta.right = t.rect.right - f.right, m.rectDelta.top = t.rect.top - f.top, m.rectDelta.bottom = t.rect.bottom - f.bottom;
|
|
2548
|
-
var
|
|
2549
|
-
if (
|
|
2548
|
+
var Y = this.result.coords, ie = this.result.rect;
|
|
2549
|
+
if (Y && ie) {
|
|
2550
2550
|
var re = m.rect.left !== ie.left || m.rect.right !== ie.right || m.rect.top !== ie.top || m.rect.bottom !== ie.bottom;
|
|
2551
|
-
m.changed = re ||
|
|
2551
|
+
m.changed = re || Y.x !== m.coords.x || Y.y !== m.coords.y;
|
|
2552
2552
|
}
|
|
2553
2553
|
return m;
|
|
2554
2554
|
} }, { key: "applyToInteraction", value: function(t) {
|
|
2555
2555
|
var o = this.interaction, s = t.phase, l = o.coords.cur, f = o.coords.start, p = this.result, h = this.startDelta, m = p.delta;
|
|
2556
2556
|
s === "start" && Q(this.startDelta, p.delta);
|
|
2557
|
-
for (var
|
|
2558
|
-
var _ = y[
|
|
2557
|
+
for (var N = 0, y = [[f, h], [l, m]]; N < y.length; N++) {
|
|
2558
|
+
var _ = y[N], $ = _[0], D = _[1];
|
|
2559
2559
|
$.page.x += D.x, $.page.y += D.y, $.client.x += D.x, $.client.y += D.y;
|
|
2560
2560
|
}
|
|
2561
|
-
var L = this.result.rectDelta,
|
|
2562
|
-
|
|
2561
|
+
var L = this.result.rectDelta, Y = t.rect || o.rect;
|
|
2562
|
+
Y.left += L.left, Y.right += L.right, Y.top += L.top, Y.bottom += L.bottom, Y.width = Y.right - Y.left, Y.height = Y.bottom - Y.top;
|
|
2563
2563
|
} }, { key: "setAndApply", value: function(t) {
|
|
2564
2564
|
var o = this.interaction, s = t.phase, l = t.preEnd, f = t.skipModifiers, p = this.setAll(this.fillArg({ preEnd: l, phase: s, pageCoords: t.modifiedCoords || o.coords.cur.page }));
|
|
2565
2565
|
if (this.result = p, !p.changed && (!f || f < this.states.length) && o.interacting()) return !1;
|
|
@@ -2574,7 +2574,7 @@ function Js() {
|
|
|
2574
2574
|
for (var f = !1, p = 0; p < l.length; p++) {
|
|
2575
2575
|
var h = l[p];
|
|
2576
2576
|
t.state = h;
|
|
2577
|
-
var m = h.options,
|
|
2577
|
+
var m = h.options, N = h.methods, y = N.beforeEnd && N.beforeEnd(t);
|
|
2578
2578
|
if (y) return this.endResult = y, !1;
|
|
2579
2579
|
f = f || !f && this.shouldDo(m, !0, t.phase, !0);
|
|
2580
2580
|
}
|
|
@@ -2601,11 +2601,11 @@ function Js() {
|
|
|
2601
2601
|
} }, { key: "restoreInteractionCoords", value: function(t) {
|
|
2602
2602
|
var o = t.interaction, s = o.coords, l = o.rect, f = o.modification;
|
|
2603
2603
|
if (f.result) {
|
|
2604
|
-
for (var p = f.startDelta, h = f.result, m = h.delta,
|
|
2604
|
+
for (var p = f.startDelta, h = f.result, m = h.delta, N = h.rectDelta, y = 0, _ = [[s.start, p], [s.cur, m]]; y < _.length; y++) {
|
|
2605
2605
|
var $ = _[y], D = $[0], L = $[1];
|
|
2606
2606
|
D.page.x -= L.x, D.page.y -= L.y, D.client.x -= L.x, D.client.y -= L.y;
|
|
2607
2607
|
}
|
|
2608
|
-
l.left -=
|
|
2608
|
+
l.left -= N.left, l.right -= N.right, l.top -= N.top, l.bottom -= N.bottom;
|
|
2609
2609
|
}
|
|
2610
2610
|
} }, { key: "shouldDo", value: function(t, o, s, l) {
|
|
2611
2611
|
return !(!t || t.enabled === !1 || l && !t.endOnly || t.endOnly && !o || s === "start" && !t.setStart);
|
|
@@ -2659,12 +2659,12 @@ function Js() {
|
|
|
2659
2659
|
return n.interaction.modification.stop(n);
|
|
2660
2660
|
} } }, Vr = ki, Dr = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, On = (function(n) {
|
|
2661
2661
|
x(o, n);
|
|
2662
|
-
var t =
|
|
2663
|
-
function o(s, l, f, p, h, m,
|
|
2662
|
+
var t = j(o);
|
|
2663
|
+
function o(s, l, f, p, h, m, N) {
|
|
2664
2664
|
var y;
|
|
2665
2665
|
u(this, o), (y = t.call(this, s)).relatedTarget = null, y.screenX = void 0, y.screenY = void 0, y.button = void 0, y.buttons = void 0, y.ctrlKey = void 0, y.shiftKey = void 0, y.altKey = void 0, y.metaKey = void 0, y.page = void 0, y.client = void 0, y.delta = void 0, y.rect = void 0, y.x0 = void 0, y.y0 = void 0, y.t0 = void 0, y.dt = void 0, y.duration = void 0, y.clientX0 = void 0, y.clientY0 = void 0, y.velocity = void 0, y.speed = void 0, y.swipe = void 0, y.axes = void 0, y.preEnd = void 0, h = h || s.element;
|
|
2666
|
-
var _ = s.interactable, $ = (_ && _.options || Dr).deltaSource, D = Ye(_, h, f), L = p === "start",
|
|
2667
|
-
return y.page = Q({}, re.page), y.client = Q({}, re.client), y.rect = Q({}, s.rect), y.timeStamp = re.timeStamp,
|
|
2666
|
+
var _ = s.interactable, $ = (_ && _.options || Dr).deltaSource, D = Ye(_, h, f), L = p === "start", Y = p === "end", ie = L ? I(y) : s.prevEvent, re = L ? s.coords.start : Y ? { page: ie.page, client: ie.client, timeStamp: s.coords.cur.timeStamp } : s.coords.cur;
|
|
2667
|
+
return y.page = Q({}, re.page), y.client = Q({}, re.client), y.rect = Q({}, s.rect), y.timeStamp = re.timeStamp, Y || (y.page.x -= D.x, y.page.y -= D.y, y.client.x -= D.x, y.client.y -= D.y), y.ctrlKey = l.ctrlKey, y.altKey = l.altKey, y.shiftKey = l.shiftKey, y.metaKey = l.metaKey, y.button = l.button, y.buttons = l.buttons, y.target = h, y.currentTarget = h, y.preEnd = m, y.type = N || f + (p || ""), y.interactable = _, y.t0 = L ? s.pointers[s.pointers.length - 1].downTime : ie.t0, y.x0 = s.coords.start.page.x - D.x, y.y0 = s.coords.start.page.y - D.y, y.clientX0 = s.coords.start.client.x - D.x, y.clientY0 = s.coords.start.client.y - D.y, y.delta = L || Y ? { x: 0, y: 0 } : { x: y[$].x - ie[$].x, y: y[$].y - ie[$].y }, y.dt = s.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = Q({}, s.coords.velocity[$]), y.speed = pt(y.velocity.x, y.velocity.y), y.swipe = Y || p === "inertiastart" ? y.getSwipe() : null, y;
|
|
2668
2668
|
}
|
|
2669
2669
|
return g(o, [{ key: "getSwipe", value: function() {
|
|
2670
2670
|
var s = this._interaction;
|
|
@@ -2713,9 +2713,9 @@ function Js() {
|
|
|
2713
2713
|
}, set: function(n) {
|
|
2714
2714
|
this.velocity.y = n;
|
|
2715
2715
|
} } });
|
|
2716
|
-
var
|
|
2716
|
+
var Ci = g((function n(t, o, s, l, f) {
|
|
2717
2717
|
u(this, n), this.id = void 0, this.pointer = void 0, this.event = void 0, this.downTime = void 0, this.downTarget = void 0, this.id = t, this.pointer = o, this.event = s, this.downTime = l, this.downTarget = f;
|
|
2718
|
-
})),
|
|
2718
|
+
})), ji = (function(n) {
|
|
2719
2719
|
return n.interactable = "", n.element = "", n.prepared = "", n.pointerIsDown = "", n.pointerWasMoved = "", n._proxy = "", n;
|
|
2720
2720
|
})({}), Hr = (function(n) {
|
|
2721
2721
|
return n.start = "", n.move = "", n.end = "", n.stop = "", n.interacting = "", n;
|
|
@@ -2732,13 +2732,13 @@ function Js() {
|
|
|
2732
2732
|
return f[y];
|
|
2733
2733
|
} });
|
|
2734
2734
|
};
|
|
2735
|
-
for (var h in
|
|
2735
|
+
for (var h in ji) p(h);
|
|
2736
2736
|
var m = function(y) {
|
|
2737
2737
|
Object.defineProperty(o._proxy, y, { value: function() {
|
|
2738
2738
|
return f[y].apply(f, arguments);
|
|
2739
2739
|
} });
|
|
2740
2740
|
};
|
|
2741
|
-
for (var
|
|
2741
|
+
for (var N in Hr) m(N);
|
|
2742
2742
|
this._scopeFire("interactions:new", { interaction: this });
|
|
2743
2743
|
}
|
|
2744
2744
|
return g(n, [{ key: "pointerMoveTolerance", get: function() {
|
|
@@ -2752,8 +2752,8 @@ function Js() {
|
|
|
2752
2752
|
this.simulation || this.modification && this.modification.endResult || this.updatePointer(t, o, s, !1);
|
|
2753
2753
|
var l, f, p = this.coords.cur.page.x === this.coords.prev.page.x && this.coords.cur.page.y === this.coords.prev.page.y && this.coords.cur.client.x === this.coords.prev.client.x && this.coords.cur.client.y === this.coords.prev.client.y;
|
|
2754
2754
|
this.pointerIsDown && !this.pointerWasMoved && (l = this.coords.cur.client.x - this.coords.start.client.x, f = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved = pt(l, f) > this.pointerMoveTolerance);
|
|
2755
|
-
var h, m,
|
|
2756
|
-
p || (h = this.coords.velocity, m = this.coords.delta,
|
|
2755
|
+
var h, m, N, y = this.getPointerIndex(t), _ = { pointer: t, pointerIndex: y, pointerInfo: this.pointers[y], event: o, type: "move", eventTarget: s, dx: l, dy: f, duplicate: p, interaction: this };
|
|
2756
|
+
p || (h = this.coords.velocity, m = this.coords.delta, N = Math.max(m.timeStamp / 1e3, 1e-3), h.page.x = m.page.x / N, h.page.y = m.page.y / N, h.client.x = m.client.x / N, h.client.y = m.client.y / N, h.timeStamp = N), this._scopeFire("interactions:move", _), p || this.simulation || (this.interacting() && (_.type = null, this.move(_)), this.pointerWasMoved && At(this.coords.prev, this.coords.cur));
|
|
2757
2757
|
} }, { key: "move", value: function(t) {
|
|
2758
2758
|
t && t.event || yr(this.coords.delta), (t = Q({ pointer: this._latestPointer.pointer, event: this._latestPointer.event, eventTarget: this._latestPointer.eventTarget, interaction: this }, t || {})).phase = "move", this._doPhase(t);
|
|
2759
2759
|
} }, { key: "pointerUp", value: function(t, o, s, l) {
|
|
@@ -2780,10 +2780,10 @@ function Js() {
|
|
|
2780
2780
|
} }, { key: "getPointerInfo", value: function(t) {
|
|
2781
2781
|
return this.pointers[this.getPointerIndex(t)];
|
|
2782
2782
|
} }, { key: "updatePointer", value: function(t, o, s, l) {
|
|
2783
|
-
var f, p, h, m = ht(t),
|
|
2784
|
-
return l = l !== !1 && (l || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new
|
|
2783
|
+
var f, p, h, m = ht(t), N = this.getPointerIndex(t), y = this.pointers[N];
|
|
2784
|
+
return l = l !== !1 && (l || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new Ci(m, t, o, null, null), N = this.pointers.length, this.pointers.push(y)), fi(this.coords.cur, this.pointers.map((function(_) {
|
|
2785
2785
|
return _.pointer;
|
|
2786
|
-
})), this._now()), f = this.coords.delta, p = this.coords.prev, h = this.coords.cur, f.page.x = h.page.x - p.page.x, f.page.y = h.page.y - p.page.y, f.client.x = h.client.x - p.client.x, f.client.y = h.client.y - p.client.y, f.timeStamp = h.timeStamp - p.timeStamp, l && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = s, $t(this.downPointer, t), this.interacting() || (At(this.coords.start, this.coords.cur), At(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(t, o, s), this._scopeFire("interactions:update-pointer", { pointer: t, event: o, eventTarget: s, down: l, pointerInfo: y, pointerIndex:
|
|
2786
|
+
})), this._now()), f = this.coords.delta, p = this.coords.prev, h = this.coords.cur, f.page.x = h.page.x - p.page.x, f.page.y = h.page.y - p.page.y, f.client.x = h.client.x - p.client.x, f.client.y = h.client.y - p.client.y, f.timeStamp = h.timeStamp - p.timeStamp, l && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = s, $t(this.downPointer, t), this.interacting() || (At(this.coords.start, this.coords.cur), At(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(t, o, s), this._scopeFire("interactions:update-pointer", { pointer: t, event: o, eventTarget: s, down: l, pointerInfo: y, pointerIndex: N, interaction: this }), N;
|
|
2787
2787
|
} }, { key: "removePointer", value: function(t, o) {
|
|
2788
2788
|
var s = this.getPointerIndex(t);
|
|
2789
2789
|
if (s !== -1) {
|
|
@@ -2873,15 +2873,15 @@ function Js() {
|
|
|
2873
2873
|
o.active && t();
|
|
2874
2874
|
}));
|
|
2875
2875
|
} }, { key: "inertiaTick", value: function() {
|
|
2876
|
-
var t, o, s, l, f, p, h, m = this,
|
|
2876
|
+
var t, o, s, l, f, p, h, m = this, N = this.interaction, y = Vt(N).resistance, _ = (N._now() - this.t0) / 1e3;
|
|
2877
2877
|
if (_ < this.te) {
|
|
2878
2878
|
var $, D = 1 - (Math.exp(-y * _) - this.lambda_v0) / this.one_ve_v0;
|
|
2879
2879
|
this.isModified ? (t = 0, o = 0, s = this.targetOffset.x, l = this.targetOffset.y, f = this.modifiedOffset.x, p = this.modifiedOffset.y, $ = { x: Ur(h = D, t, s, f), y: Ur(h, o, l, p) }) : $ = { x: this.targetOffset.x * D, y: this.targetOffset.y * D };
|
|
2880
2880
|
var L = { x: $.x - this.currentOffset.x, y: $.y - this.currentOffset.y };
|
|
2881
|
-
this.currentOffset.x += L.x, this.currentOffset.y += L.y,
|
|
2881
|
+
this.currentOffset.x += L.x, this.currentOffset.y += L.y, N.offsetBy(L), N.move(), this.onNextFrame((function() {
|
|
2882
2882
|
return m.inertiaTick();
|
|
2883
2883
|
}));
|
|
2884
|
-
} else
|
|
2884
|
+
} else N.offsetBy({ x: this.modifiedOffset.x - this.currentOffset.x, y: this.modifiedOffset.y - this.currentOffset.y }), this.end();
|
|
2885
2885
|
} }, { key: "smoothEndTick", value: function() {
|
|
2886
2886
|
var t = this, o = this.interaction, s = o._now() - this.t0, l = Vt(o).smoothEndDuration;
|
|
2887
2887
|
if (s < l) {
|
|
@@ -2991,52 +2991,52 @@ function Js() {
|
|
|
2991
2991
|
}
|
|
2992
2992
|
var Di = { id: "events", install: function(n) {
|
|
2993
2993
|
var t, o = [], s = {}, l = [], f = { add: p, remove: h, addDelegate: function(y, _, $, D, L) {
|
|
2994
|
-
var
|
|
2994
|
+
var Y = xt(L);
|
|
2995
2995
|
if (!s[$]) {
|
|
2996
2996
|
s[$] = [];
|
|
2997
2997
|
for (var ie = 0; ie < l.length; ie++) {
|
|
2998
2998
|
var re = l[ie];
|
|
2999
|
-
p(re, $, m), p(re, $,
|
|
2999
|
+
p(re, $, m), p(re, $, N, !0);
|
|
3000
3000
|
}
|
|
3001
3001
|
}
|
|
3002
3002
|
var le = s[$], me = vt(le, (function(be) {
|
|
3003
3003
|
return be.selector === y && be.context === _;
|
|
3004
3004
|
}));
|
|
3005
|
-
me || (me = { selector: y, context: _, listeners: [] }, le.push(me)), me.listeners.push({ func: D, options:
|
|
3005
|
+
me || (me = { selector: y, context: _, listeners: [] }, le.push(me)), me.listeners.push({ func: D, options: Y });
|
|
3006
3006
|
}, removeDelegate: function(y, _, $, D, L) {
|
|
3007
|
-
var
|
|
3007
|
+
var Y, ie = xt(L), re = s[$], le = !1;
|
|
3008
3008
|
if (re)
|
|
3009
|
-
for (
|
|
3010
|
-
var me = re[
|
|
3009
|
+
for (Y = re.length - 1; Y >= 0; Y--) {
|
|
3010
|
+
var me = re[Y];
|
|
3011
3011
|
if (me.selector === y && me.context === _) {
|
|
3012
3012
|
for (var be = me.listeners, de = be.length - 1; de >= 0; de--) {
|
|
3013
3013
|
var ye = be[de];
|
|
3014
3014
|
if (ye.func === D && Dt(ye.options, ie)) {
|
|
3015
|
-
be.splice(de, 1), be.length || (re.splice(
|
|
3015
|
+
be.splice(de, 1), be.length || (re.splice(Y, 1), h(_, $, m), h(_, $, N, !0)), le = !0;
|
|
3016
3016
|
break;
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
3019
|
if (le) break;
|
|
3020
3020
|
}
|
|
3021
3021
|
}
|
|
3022
|
-
}, delegateListener: m, delegateUseCapture:
|
|
3022
|
+
}, delegateListener: m, delegateUseCapture: N, delegatedEvents: s, documents: l, targets: o, supportsOptions: !1, supportsPassive: !1 };
|
|
3023
3023
|
function p(y, _, $, D) {
|
|
3024
3024
|
if (y.addEventListener) {
|
|
3025
|
-
var L = xt(D),
|
|
3025
|
+
var L = xt(D), Y = vt(o, (function(ie) {
|
|
3026
3026
|
return ie.eventTarget === y;
|
|
3027
3027
|
}));
|
|
3028
|
-
|
|
3028
|
+
Y || (Y = { eventTarget: y, events: {} }, o.push(Y)), Y.events[_] || (Y.events[_] = []), vt(Y.events[_], (function(ie) {
|
|
3029
3029
|
return ie.func === $ && Dt(ie.options, L);
|
|
3030
|
-
})) || (y.addEventListener(_, $, f.supportsOptions ? L : L.capture),
|
|
3030
|
+
})) || (y.addEventListener(_, $, f.supportsOptions ? L : L.capture), Y.events[_].push({ func: $, options: L }));
|
|
3031
3031
|
}
|
|
3032
3032
|
}
|
|
3033
3033
|
function h(y, _, $, D) {
|
|
3034
3034
|
if (y.addEventListener && y.removeEventListener) {
|
|
3035
3035
|
var L = gt(o, (function(Ae) {
|
|
3036
3036
|
return Ae.eventTarget === y;
|
|
3037
|
-
})),
|
|
3038
|
-
if (
|
|
3039
|
-
var ie = !1, re =
|
|
3037
|
+
})), Y = o[L];
|
|
3038
|
+
if (Y && Y.events) if (_ !== "all") {
|
|
3039
|
+
var ie = !1, re = Y.events[_];
|
|
3040
3040
|
if (re) {
|
|
3041
3041
|
if ($ === "all") {
|
|
3042
3042
|
for (var le = re.length - 1; le >= 0; le--) {
|
|
@@ -3048,20 +3048,20 @@ function Js() {
|
|
|
3048
3048
|
for (var be = xt(D), de = 0; de < re.length; de++) {
|
|
3049
3049
|
var ye = re[de];
|
|
3050
3050
|
if (ye.func === $ && Dt(ye.options, be)) {
|
|
3051
|
-
y.removeEventListener(_, $, f.supportsOptions ? be : be.capture), re.splice(de, 1), re.length === 0 && (delete
|
|
3051
|
+
y.removeEventListener(_, $, f.supportsOptions ? be : be.capture), re.splice(de, 1), re.length === 0 && (delete Y.events[_], ie = !0);
|
|
3052
3052
|
break;
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
ie && !Object.keys(
|
|
3057
|
-
} else for (_ in
|
|
3056
|
+
ie && !Object.keys(Y.events).length && o.splice(L, 1);
|
|
3057
|
+
} else for (_ in Y.events) Y.events.hasOwnProperty(_) && h(y, _, "all");
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
function m(y, _) {
|
|
3061
|
-
for (var $ = xt(_), D = new Vi(y), L = s[y.type],
|
|
3061
|
+
for (var $ = xt(_), D = new Vi(y), L = s[y.type], Y = Nr(y)[0], ie = Y; E.element(ie); ) {
|
|
3062
3062
|
for (var re = 0; re < L.length; re++) {
|
|
3063
3063
|
var le = L[re], me = le.selector, be = le.context;
|
|
3064
|
-
if (z(ie, me) && ne(be,
|
|
3064
|
+
if (z(ie, me) && ne(be, Y) && ne(be, ie)) {
|
|
3065
3065
|
var de = le.listeners;
|
|
3066
3066
|
D.currentTarget = ie;
|
|
3067
3067
|
for (var ye = 0; ye < de.length; ye++) {
|
|
@@ -3073,7 +3073,7 @@ function Js() {
|
|
|
3073
3073
|
ie = V(ie);
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
function
|
|
3076
|
+
function N(y) {
|
|
3077
3077
|
return m(y, !0);
|
|
3078
3078
|
}
|
|
3079
3079
|
return (t = n.document) == null || t.createElement("div").addEventListener("test", null, { get capture() {
|
|
@@ -3110,8 +3110,8 @@ function Js() {
|
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
3112
|
if (t) return t;
|
|
3113
|
-
for (var
|
|
3114
|
-
var _ = y[
|
|
3113
|
+
for (var N = 0, y = f.interactions.list; N < y.length; N++) {
|
|
3114
|
+
var _ = y[N];
|
|
3115
3115
|
if (!(_.pointerType !== s || /down/i.test(l) && _.simulation)) return _;
|
|
3116
3116
|
}
|
|
3117
3117
|
return null;
|
|
@@ -3143,14 +3143,14 @@ function Js() {
|
|
|
3143
3143
|
var s = t.interactions.list, l = Er(o), f = Nr(o), p = f[0], h = f[1], m = [];
|
|
3144
3144
|
if (/^touch/.test(o.type)) {
|
|
3145
3145
|
t.prevTouchTime = t.now();
|
|
3146
|
-
for (var
|
|
3147
|
-
var _ = y[
|
|
3146
|
+
for (var N = 0, y = o.changedTouches; N < y.length; N++) {
|
|
3147
|
+
var _ = y[N], $ = { pointer: _, pointerId: ht(_), pointerType: l, eventType: o.type, eventTarget: p, curEventTarget: h, scope: t }, D = Zr($);
|
|
3148
3148
|
m.push([$.pointer, $.eventTarget, $.curEventTarget, D]);
|
|
3149
3149
|
}
|
|
3150
3150
|
} else {
|
|
3151
3151
|
var L = !1;
|
|
3152
3152
|
if (!te.supportsPointerEvent && /mouse/.test(o.type)) {
|
|
3153
|
-
for (var
|
|
3153
|
+
for (var Y = 0; Y < s.length && !L; Y++) L = s[Y].pointerType !== "mouse" && s[Y].pointerIsDown;
|
|
3154
3154
|
L = L || t.now() - t.prevTouchTime < 500 || o.timeStamp === 0;
|
|
3155
3155
|
}
|
|
3156
3156
|
if (!L) {
|
|
@@ -3168,12 +3168,12 @@ function Js() {
|
|
|
3168
3168
|
var t = n.pointerType, o = n.scope, s = { interaction: Hi.search(n), searchDetails: n };
|
|
3169
3169
|
return o.fire("interactions:find", s), s.interaction || o.interactions.new({ pointerType: t });
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3171
|
+
function Cn(n, t) {
|
|
3172
3172
|
var o = n.doc, s = n.scope, l = n.options, f = s.interactions.docEvents, p = s.events, h = p[t];
|
|
3173
3173
|
for (var m in s.browser.isIOS && !l.events && (l.events = { passive: !1 }), p.delegatedEvents) h(o, m, p.delegateListener), h(o, m, p.delegateUseCapture, !0);
|
|
3174
|
-
for (var
|
|
3174
|
+
for (var N = l && l.events, y = 0; y < f.length; y++) {
|
|
3175
3175
|
var _ = f[y];
|
|
3176
|
-
h(o, _.type, _.listener,
|
|
3176
|
+
h(o, _.type, _.listener, N);
|
|
3177
3177
|
}
|
|
3178
3178
|
}
|
|
3179
3179
|
var Bi = { id: "core/interactions", install: function(n) {
|
|
@@ -3184,52 +3184,52 @@ function Js() {
|
|
|
3184
3184
|
var l, f = te.pEventTypes;
|
|
3185
3185
|
function p() {
|
|
3186
3186
|
for (var h = 0, m = n.interactions.list; h < m.length; h++) {
|
|
3187
|
-
var
|
|
3188
|
-
if (
|
|
3187
|
+
var N = m[h];
|
|
3188
|
+
if (N.pointerIsDown && N.pointerType === "touch" && !N._interacting) for (var y = function() {
|
|
3189
3189
|
var D = $[_];
|
|
3190
3190
|
n.documents.some((function(L) {
|
|
3191
3191
|
return ne(L.doc, D.downTarget);
|
|
3192
|
-
})) ||
|
|
3193
|
-
}, _ = 0, $ =
|
|
3192
|
+
})) || N.removePointer(D.pointer, D.event);
|
|
3193
|
+
}, _ = 0, $ = N.pointers; _ < $.length; _++) y();
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
3196
|
(l = H.PointerEvent ? [{ type: f.down, listener: p }, { type: f.down, listener: t.pointerDown }, { type: f.move, listener: t.pointerMove }, { type: f.up, listener: t.pointerUp }, { type: f.cancel, listener: t.pointerUp }] : [{ type: "mousedown", listener: t.pointerDown }, { type: "mousemove", listener: t.pointerMove }, { type: "mouseup", listener: t.pointerUp }, { type: "touchstart", listener: p }, { type: "touchstart", listener: t.pointerDown }, { type: "touchmove", listener: t.pointerMove }, { type: "touchend", listener: t.pointerUp }, { type: "touchcancel", listener: t.pointerUp }]).push({ type: "blur", listener: function(h) {
|
|
3197
|
-
for (var m = 0,
|
|
3198
|
-
|
|
3197
|
+
for (var m = 0, N = n.interactions.list; m < N.length; m++)
|
|
3198
|
+
N[m].documentBlur(h);
|
|
3199
3199
|
} }), n.prevTouchTime = 0, n.Interaction = (function(h) {
|
|
3200
|
-
x(
|
|
3201
|
-
var m =
|
|
3202
|
-
function
|
|
3203
|
-
return u(this,
|
|
3200
|
+
x(N, h);
|
|
3201
|
+
var m = j(N);
|
|
3202
|
+
function N() {
|
|
3203
|
+
return u(this, N), m.apply(this, arguments);
|
|
3204
3204
|
}
|
|
3205
|
-
return g(
|
|
3205
|
+
return g(N, [{ key: "pointerMoveTolerance", get: function() {
|
|
3206
3206
|
return n.interactions.pointerMoveTolerance;
|
|
3207
3207
|
}, set: function(y) {
|
|
3208
3208
|
n.interactions.pointerMoveTolerance = y;
|
|
3209
3209
|
} }, { key: "_now", value: function() {
|
|
3210
3210
|
return n.now();
|
|
3211
|
-
} }]),
|
|
3211
|
+
} }]), N;
|
|
3212
3212
|
})(Ai), n.interactions = { list: [], new: function(h) {
|
|
3213
|
-
h.scopeFire = function(
|
|
3214
|
-
return n.fire(
|
|
3213
|
+
h.scopeFire = function(N, y) {
|
|
3214
|
+
return n.fire(N, y);
|
|
3215
3215
|
};
|
|
3216
3216
|
var m = new n.Interaction(h);
|
|
3217
3217
|
return n.interactions.list.push(m), m;
|
|
3218
3218
|
}, listeners: t, docEvents: l, pointerMoveTolerance: 1 }, n.usePlugin(Lr);
|
|
3219
3219
|
}, listeners: { "scope:add-document": function(n) {
|
|
3220
|
-
return
|
|
3220
|
+
return Cn(n, "add");
|
|
3221
3221
|
}, "scope:remove-document": function(n) {
|
|
3222
|
-
return
|
|
3222
|
+
return Cn(n, "remove");
|
|
3223
3223
|
}, "interactable:unset": function(n, t) {
|
|
3224
3224
|
for (var o = n.interactable, s = t.interactions.list.length - 1; s >= 0; s--) {
|
|
3225
3225
|
var l = t.interactions.list[s];
|
|
3226
3226
|
l.interactable === o && (l.stop(), t.fire("interactions:destroy", { interaction: l }), l.destroy(), t.interactions.list.length > 2 && t.interactions.list.splice(s, 1));
|
|
3227
3227
|
}
|
|
3228
|
-
} }, onDocSignal:
|
|
3228
|
+
} }, onDocSignal: Cn, doOnInteractions: Jr, methodNames: kn }, Yi = Bi, Qe = (function(n) {
|
|
3229
3229
|
return n[n.On = 0] = "On", n[n.Off = 1] = "Off", n;
|
|
3230
3230
|
})(Qe || {}), Xi = (function() {
|
|
3231
3231
|
function n(t, o, s, l) {
|
|
3232
|
-
u(this, n), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new Wr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = o.actions, this.target = t, this._context = o.context || s, this._win =
|
|
3232
|
+
u(this, n), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new Wr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = o.actions, this.target = t, this._context = o.context || s, this._win = R(Ne(t) ? this._context : t), this._doc = this._win.document, this._scopeEvents = l, this.set(o);
|
|
3233
3233
|
}
|
|
3234
3234
|
return g(n, [{ key: "_defaults", get: function() {
|
|
3235
3235
|
return { base: {}, perAction: {}, actions: {} };
|
|
@@ -3284,8 +3284,8 @@ function Js() {
|
|
|
3284
3284
|
var p = Xe(o, s, f);
|
|
3285
3285
|
for (var h in p) {
|
|
3286
3286
|
h === "wheel" && (h = te.wheelEvent);
|
|
3287
|
-
for (var m = 0,
|
|
3288
|
-
var y =
|
|
3287
|
+
for (var m = 0, N = p[h]; m < N.length; m++) {
|
|
3288
|
+
var y = N[m];
|
|
3289
3289
|
Ft(h, this._actions) ? this.events[t === Qe.On ? "on" : "off"](h, y) : E.string(this.target) ? this._scopeEvents[t === Qe.On ? "addDelegate" : "removeDelegate"](this.target, this._context, h, y, l) : this._scopeEvents[t === Qe.On ? "add" : "remove"](this.target, h, y, l);
|
|
3290
3290
|
}
|
|
3291
3291
|
}
|
|
@@ -3349,8 +3349,8 @@ function Js() {
|
|
|
3349
3349
|
return !!this.scope.interactables.get(f, p && p.context);
|
|
3350
3350
|
}, l.on = mt((function(f, p, h) {
|
|
3351
3351
|
if (E.string(f) && f.search(" ") !== -1 && (f = f.trim().split(/ +/)), E.array(f)) {
|
|
3352
|
-
for (var m = 0,
|
|
3353
|
-
var y =
|
|
3352
|
+
for (var m = 0, N = f; m < N.length; m++) {
|
|
3353
|
+
var y = N[m];
|
|
3354
3354
|
this.on(y, p, h);
|
|
3355
3355
|
}
|
|
3356
3356
|
return this;
|
|
@@ -3362,8 +3362,8 @@ function Js() {
|
|
|
3362
3362
|
return Ft(f, this.scope.actions) ? this.globalEvents[f] ? this.globalEvents[f].push(p) : this.globalEvents[f] = [p] : this.scope.events.add(this.scope.document, f, p, { options: h }), this;
|
|
3363
3363
|
}), "The interact.on() method is being deprecated"), l.off = mt((function(f, p, h) {
|
|
3364
3364
|
if (E.string(f) && f.search(" ") !== -1 && (f = f.trim().split(/ +/)), E.array(f)) {
|
|
3365
|
-
for (var m = 0,
|
|
3366
|
-
var y =
|
|
3365
|
+
for (var m = 0, N = f; m < N.length; m++) {
|
|
3366
|
+
var y = N[m];
|
|
3367
3367
|
this.off(y, p, h);
|
|
3368
3368
|
}
|
|
3369
3369
|
return this;
|
|
@@ -3396,7 +3396,7 @@ function Js() {
|
|
|
3396
3396
|
var o = this;
|
|
3397
3397
|
this.Interactable = (function(s) {
|
|
3398
3398
|
x(f, s);
|
|
3399
|
-
var l =
|
|
3399
|
+
var l = j(f);
|
|
3400
3400
|
function f() {
|
|
3401
3401
|
return u(this, f), l.apply(this, arguments);
|
|
3402
3402
|
}
|
|
@@ -3420,7 +3420,7 @@ function Js() {
|
|
|
3420
3420
|
}
|
|
3421
3421
|
} }, { key: "init", value: function(t) {
|
|
3422
3422
|
return this.isInitialized ? this : (function(o, s) {
|
|
3423
|
-
return o.isInitialized = !0, E.window(s) &&
|
|
3423
|
+
return o.isInitialized = !0, E.window(s) && X(s), H.init(s), te.init(s), Je.init(s), o.window = s, o.document = s.document, o.usePlugin(Yi), o.usePlugin(Di), o;
|
|
3424
3424
|
})(this, t);
|
|
3425
3425
|
} }, { key: "pluginIsInstalled", value: function(t) {
|
|
3426
3426
|
var o = t.id;
|
|
@@ -3440,10 +3440,10 @@ function Js() {
|
|
|
3440
3440
|
return this;
|
|
3441
3441
|
} }, { key: "addDocument", value: function(t, o) {
|
|
3442
3442
|
if (this.getDocIndex(t) !== -1) return !1;
|
|
3443
|
-
var s =
|
|
3443
|
+
var s = R(t);
|
|
3444
3444
|
o = o ? Q({}, o) : {}, this.documents.push({ doc: t, options: o }), this.events.documents.push(t), t !== this.document && this.events.add(s, "unload", this.onWindowUnload), this.fire("scope:add-document", { doc: t, window: s, scope: this, options: o });
|
|
3445
3445
|
} }, { key: "removeDocument", value: function(t) {
|
|
3446
|
-
var o = this.getDocIndex(t), s =
|
|
3446
|
+
var o = this.getDocIndex(t), s = R(t), l = this.documents[o].options;
|
|
3447
3447
|
this.events.remove(s, "unload", this.onWindowUnload), this.documents.splice(o, 1), this.events.documents.splice(o, 1), this.fire("scope:remove-document", { doc: t, window: s, scope: this, options: l });
|
|
3448
3448
|
} }, { key: "getDocIndex", value: function(t) {
|
|
3449
3449
|
for (var o = 0; o < this.documents.length; o++) if (this.documents[o].doc === t) return o;
|
|
@@ -3467,9 +3467,9 @@ function Js() {
|
|
|
3467
3467
|
var l = s[0], f = s[1];
|
|
3468
3468
|
return l in n || f in n;
|
|
3469
3469
|
})), o = function(s, l) {
|
|
3470
|
-
for (var f = n.range, p = n.limits, h = p === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : p, m = n.offset,
|
|
3471
|
-
var $ = t[_], D = $[0], L = $[1],
|
|
3472
|
-
y[D] = Math.max(h.left, Math.min(h.right,
|
|
3470
|
+
for (var f = n.range, p = n.limits, h = p === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : p, m = n.offset, N = m === void 0 ? { x: 0, y: 0 } : m, y = { range: f, grid: n, x: null, y: null }, _ = 0; _ < t.length; _++) {
|
|
3471
|
+
var $ = t[_], D = $[0], L = $[1], Y = Math.round((s - N.x) / n[D]), ie = Math.round((l - N.y) / n[L]);
|
|
3472
|
+
y[D] = Math.max(h.left, Math.min(h.right, Y * n[D] + N.x)), y[L] = Math.max(h.top, Math.min(h.bottom, ie * n[L] + N.y));
|
|
3473
3473
|
}
|
|
3474
3474
|
return y;
|
|
3475
3475
|
};
|
|
@@ -3478,8 +3478,8 @@ function Js() {
|
|
|
3478
3478
|
var t = n.interactStatic;
|
|
3479
3479
|
t.snappers = Q(t.snappers || {}, Wi), t.createSnapGrid = t.snappers.grid;
|
|
3480
3480
|
} }, Ji = Ki, Zi = { start: function(n) {
|
|
3481
|
-
var t = n.state, o = n.rect, s = n.edges, l = n.pageCoords, f = t.options, p = f.ratio, h = f.enabled, m = t.options,
|
|
3482
|
-
p === "preserve" && (p = o.width / o.height), t.startCoords = Q({}, l), t.startRect = Q({}, o), t.ratio = p, t.equalDelta =
|
|
3481
|
+
var t = n.state, o = n.rect, s = n.edges, l = n.pageCoords, f = t.options, p = f.ratio, h = f.enabled, m = t.options, N = m.equalDelta, y = m.modifiers;
|
|
3482
|
+
p === "preserve" && (p = o.width / o.height), t.startCoords = Q({}, l), t.startRect = Q({}, o), t.ratio = p, t.equalDelta = N;
|
|
3483
3483
|
var _ = t.linkedEdges = { top: s.top || s.left && !s.bottom, left: s.left || s.top && !s.right, bottom: s.bottom || s.right && !s.top, right: s.right || s.bottom && !s.left };
|
|
3484
3484
|
if (t.xIsPrimaryAxis = !(!s.left && !s.right), t.equalDelta) {
|
|
3485
3485
|
var $ = (_.left ? 1 : -1) * (_.top ? 1 : -1);
|
|
@@ -3494,8 +3494,8 @@ function Js() {
|
|
|
3494
3494
|
if (Q(n.edges, l), p(t, t.xIsPrimaryAxis, s, o), !t.subModification) return null;
|
|
3495
3495
|
var h = Q({}, o);
|
|
3496
3496
|
Fe(l, h, { x: s.x - f.x, y: s.y - f.y });
|
|
3497
|
-
var m = t.subModification.setAll(a(a({}, n), {}, { rect: h, edges: l, pageCoords: s, prevCoords: s, prevRect: h })),
|
|
3498
|
-
return m.changed && (p(t, Math.abs(
|
|
3497
|
+
var m = t.subModification.setAll(a(a({}, n), {}, { rect: h, edges: l, pageCoords: s, prevCoords: s, prevRect: h })), N = m.delta;
|
|
3498
|
+
return m.changed && (p(t, Math.abs(N.x) > Math.abs(N.y), m.coords, m.rect), Q(s, m.coords)), m.eventProps;
|
|
3499
3499
|
}, defaults: { ratio: "preserve", equalDelta: !1, modifiers: [], enabled: !1 } };
|
|
3500
3500
|
function Qi(n, t, o) {
|
|
3501
3501
|
var s = n.startCoords, l = n.edgeSign;
|
|
@@ -3507,8 +3507,8 @@ function Js() {
|
|
|
3507
3507
|
var m = s.width / p;
|
|
3508
3508
|
o.y = f.y + (m - l.height) * h.y;
|
|
3509
3509
|
} else {
|
|
3510
|
-
var
|
|
3511
|
-
o.x = f.x + (
|
|
3510
|
+
var N = s.height * p;
|
|
3511
|
+
o.x = f.x + (N - l.width) * h.x;
|
|
3512
3512
|
}
|
|
3513
3513
|
}
|
|
3514
3514
|
var ts = Ze(Zi, "aspectRatio"), to = function() {
|
|
@@ -3516,14 +3516,14 @@ function Js() {
|
|
|
3516
3516
|
to._defaults = {};
|
|
3517
3517
|
var Ht = to;
|
|
3518
3518
|
function it(n, t, o) {
|
|
3519
|
-
return E.func(n) ?
|
|
3519
|
+
return E.func(n) ? Ce(n, t.interactable, t.element, [o.x, o.y, t]) : Ce(n, t.interactable, t.element);
|
|
3520
3520
|
}
|
|
3521
3521
|
var Bt = { start: function(n) {
|
|
3522
3522
|
var t = n.rect, o = n.startOffset, s = n.state, l = n.interaction, f = n.pageCoords, p = s.options, h = p.elementRect, m = Q({ left: 0, top: 0, right: 0, bottom: 0 }, p.offset || {});
|
|
3523
3523
|
if (t && h) {
|
|
3524
|
-
var
|
|
3525
|
-
if (
|
|
3526
|
-
var y =
|
|
3524
|
+
var N = it(p.restriction, l, f);
|
|
3525
|
+
if (N) {
|
|
3526
|
+
var y = N.right - N.left - t.width, _ = N.bottom - N.top - t.height;
|
|
3527
3527
|
y < 0 && (m.left += y, m.right += y), _ < 0 && (m.top += _, m.bottom += _);
|
|
3528
3528
|
}
|
|
3529
3529
|
m.left += o.left - t.width * h.left, m.top += o.top - t.height * h.top, m.right += o.right - t.width * (1 - h.right), m.bottom += o.bottom - t.height * (1 - h.bottom);
|
|
@@ -3551,8 +3551,8 @@ function Js() {
|
|
|
3551
3551
|
}, set: function(n) {
|
|
3552
3552
|
var t = n.coords, o = n.edges, s = n.interaction, l = n.state, f = l.offset, p = l.options;
|
|
3553
3553
|
if (o) {
|
|
3554
|
-
var h = Q({}, t), m = it(p.inner, s, h) || {},
|
|
3555
|
-
oo(m, no), oo(
|
|
3554
|
+
var h = Q({}, t), m = it(p.inner, s, h) || {}, N = it(p.outer, s, h) || {};
|
|
3555
|
+
oo(m, no), oo(N, ro), o.top ? t.y = Math.min(Math.max(N.top + f.top, h.y), m.top + f.top) : o.bottom && (t.y = Math.max(Math.min(N.bottom + f.bottom, h.y), m.bottom + f.bottom)), o.left ? t.x = Math.min(Math.max(N.left + f.left, h.x), m.left + f.left) : o.right && (t.x = Math.max(Math.min(N.right + f.right, h.x), m.right + f.right));
|
|
3556
3556
|
}
|
|
3557
3557
|
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, rs = Ze(bt, "restrictEdges"), os = Q({ get elementRect() {
|
|
3558
3558
|
return { top: 0, left: 0, bottom: 1, right: 1 };
|
|
@@ -3565,15 +3565,15 @@ function Js() {
|
|
|
3565
3565
|
var p = Be(it(f.min, t, n.coords)) || ss, h = Be(it(f.max, t, n.coords)) || as;
|
|
3566
3566
|
o.options = { endOnly: f.endOnly, inner: Q({}, bt.noInner), outer: Q({}, bt.noOuter) }, l.top ? (o.options.inner.top = s.bottom - p.height, o.options.outer.top = s.bottom - h.height) : l.bottom && (o.options.inner.bottom = s.top + p.height, o.options.outer.bottom = s.top + h.height), l.left ? (o.options.inner.left = s.right - p.width, o.options.outer.left = s.right - h.width) : l.right && (o.options.inner.right = s.left + p.width, o.options.outer.right = s.left + h.width), bt.set(n), o.options = f;
|
|
3567
3567
|
}
|
|
3568
|
-
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"),
|
|
3569
|
-
var t, o = n.interaction, s = n.interactable, l = n.element, f = n.rect, p = n.state, h = n.startOffset, m = p.options,
|
|
3570
|
-
var D = $.interaction.element, L = Ie(
|
|
3571
|
-
return
|
|
3568
|
+
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), jn = { start: function(n) {
|
|
3569
|
+
var t, o = n.interaction, s = n.interactable, l = n.element, f = n.rect, p = n.state, h = n.startOffset, m = p.options, N = m.offsetWithOrigin ? (function($) {
|
|
3570
|
+
var D = $.interaction.element, L = Ie(Ce($.state.options.origin, null, null, [D])), Y = L || Ye($.interactable, D, $.interaction.prepared.name);
|
|
3571
|
+
return Y;
|
|
3572
3572
|
})(n) : { x: 0, y: 0 };
|
|
3573
3573
|
if (m.offset === "startCoords") t = { x: o.coords.start.page.x, y: o.coords.start.page.y };
|
|
3574
3574
|
else {
|
|
3575
|
-
var y =
|
|
3576
|
-
(t = Ie(y) || { x: 0, y: 0 }).x +=
|
|
3575
|
+
var y = Ce(m.offset, s, l, [o]);
|
|
3576
|
+
(t = Ie(y) || { x: 0, y: 0 }).x += N.x, t.y += N.y;
|
|
3577
3577
|
}
|
|
3578
3578
|
var _ = m.relativePoints;
|
|
3579
3579
|
p.offsets = f && _ && _.length ? _.map((function($, D) {
|
|
@@ -3582,7 +3582,7 @@ function Js() {
|
|
|
3582
3582
|
}, set: function(n) {
|
|
3583
3583
|
var t = n.interaction, o = n.coords, s = n.state, l = s.options, f = s.offsets, p = Ye(t.interactable, t.element, t.prepared.name), h = Q({}, o), m = [];
|
|
3584
3584
|
l.offsetWithOrigin || (h.x -= p.x, h.y -= p.y);
|
|
3585
|
-
for (var
|
|
3585
|
+
for (var N = 0, y = f; N < y.length; N++) for (var _ = y[N], $ = h.x - _.x, D = h.y - _.y, L = 0, Y = l.targets.length; L < Y; L++) {
|
|
3586
3586
|
var ie = l.targets[L], re = void 0;
|
|
3587
3587
|
(re = E.func(ie) ? ie($, D, t._proxy, _, L) : ie) && m.push({ x: (E.number(re.x) ? re.x : $) + _.x, y: (E.number(re.y) ? re.y : D) + _.y, range: E.number(re.range) ? re.range : l.range, source: ie, index: L, offset: _ });
|
|
3588
3588
|
}
|
|
@@ -3591,27 +3591,27 @@ function Js() {
|
|
|
3591
3591
|
de === 1 / 0 && le.inRange && le.range !== 1 / 0 && (Ve = !1), le.target && !(Ve ? le.inRange && de !== 1 / 0 ? Pe / de < le.distance / le.range : de === 1 / 0 && le.range !== 1 / 0 || Pe < le.distance : !le.inRange && Pe < le.distance) || (le.target = be, le.distance = Pe, le.range = de, le.inRange = Ve, le.delta.x = ye, le.delta.y = Ae);
|
|
3592
3592
|
}
|
|
3593
3593
|
return le.inRange && (o.x = le.target.x, o.y = le.target.y), s.closest = le, le;
|
|
3594
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, ls = Ze(
|
|
3594
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, ls = Ze(jn, "snap"), Yt = { start: function(n) {
|
|
3595
3595
|
var t = n.state, o = n.edges, s = t.options;
|
|
3596
3596
|
if (!o) return null;
|
|
3597
|
-
n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: s.offset || "self", origin: { x: 0, y: 0 }, range: s.range } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]],
|
|
3597
|
+
n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: s.offset || "self", origin: { x: 0, y: 0 }, range: s.range } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]], jn.start(n), t.offsets = n.state.offsets, n.state = t;
|
|
3598
3598
|
}, set: function(n) {
|
|
3599
3599
|
var t = n.interaction, o = n.state, s = n.coords, l = o.options, f = o.offsets, p = { x: s.x - f[0].x, y: s.y - f[0].y };
|
|
3600
3600
|
o.options = Q({}, l), o.options.targets = [];
|
|
3601
3601
|
for (var h = 0, m = l.targets || []; h < m.length; h++) {
|
|
3602
|
-
var
|
|
3603
|
-
if (y = E.func(
|
|
3602
|
+
var N = m[h], y = void 0;
|
|
3603
|
+
if (y = E.func(N) ? N(p.x, p.y, t) : N) {
|
|
3604
3604
|
for (var _ = 0, $ = o.targetFields; _ < $.length; _++) {
|
|
3605
|
-
var D = $[_], L = D[0],
|
|
3606
|
-
if (L in y ||
|
|
3607
|
-
y.x = y[L], y.y = y[
|
|
3605
|
+
var D = $[_], L = D[0], Y = D[1];
|
|
3606
|
+
if (L in y || Y in y) {
|
|
3607
|
+
y.x = y[L], y.y = y[Y];
|
|
3608
3608
|
break;
|
|
3609
3609
|
}
|
|
3610
3610
|
}
|
|
3611
3611
|
o.options.targets.push(y);
|
|
3612
3612
|
}
|
|
3613
3613
|
}
|
|
3614
|
-
var ie =
|
|
3614
|
+
var ie = jn.set(n);
|
|
3615
3615
|
return o.options = l, ie;
|
|
3616
3616
|
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, us = Ze(Yt, "snapSize"), $n = { aspectRatio: ts, restrictEdges: rs, restrict: ns, restrictRect: is, restrictSize: cs, snapEdges: Ze({ start: function(n) {
|
|
3617
3617
|
var t = n.edges;
|
|
@@ -3624,16 +3624,16 @@ function Js() {
|
|
|
3624
3624
|
}
|
|
3625
3625
|
} }, ds = fs, io = (function(n) {
|
|
3626
3626
|
x(o, n);
|
|
3627
|
-
var t =
|
|
3627
|
+
var t = j(o);
|
|
3628
3628
|
function o(s, l, f, p, h, m) {
|
|
3629
|
-
var
|
|
3630
|
-
if (u(this, o), $t(I(
|
|
3629
|
+
var N;
|
|
3630
|
+
if (u(this, o), $t(I(N = t.call(this, h)), f), f !== l && $t(I(N), l), N.timeStamp = m, N.originalEvent = f, N.type = s, N.pointerId = ht(l), N.pointerType = Er(l), N.target = p, N.currentTarget = null, s === "tap") {
|
|
3631
3631
|
var y = h.getPointerIndex(l);
|
|
3632
|
-
|
|
3633
|
-
var _ =
|
|
3634
|
-
|
|
3635
|
-
} else s === "doubletap" && (
|
|
3636
|
-
return
|
|
3632
|
+
N.dt = N.timeStamp - h.pointers[y].downTime;
|
|
3633
|
+
var _ = N.timeStamp - h.tapTime;
|
|
3634
|
+
N.double = !!h.prevTap && h.prevTap.type !== "doubletap" && h.prevTap.target === N.target && _ < 500;
|
|
3635
|
+
} else s === "doubletap" && (N.dt = l.timeStamp - h.tapTime, N.double = !0);
|
|
3636
|
+
return N;
|
|
3637
3637
|
}
|
|
3638
3638
|
return g(o, [{ key: "_subtractOrigin", value: function(s) {
|
|
3639
3639
|
var l = s.x, f = s.y;
|
|
@@ -3657,16 +3657,16 @@ function Js() {
|
|
|
3657
3657
|
n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && An(n), et({ interaction: o, pointer: s, event: l, eventTarget: f, type: "move" }, t));
|
|
3658
3658
|
}, "interactions:down": function(n, t) {
|
|
3659
3659
|
(function(o, s) {
|
|
3660
|
-
for (var l = o.interaction, f = o.pointer, p = o.event, h = o.eventTarget, m = o.pointerIndex,
|
|
3660
|
+
for (var l = o.interaction, f = o.pointer, p = o.event, h = o.eventTarget, m = o.pointerIndex, N = l.pointers[m].hold, y = ue(h), _ = { interaction: l, pointer: f, event: p, eventTarget: h, type: "hold", targets: [], path: y, node: null }, $ = 0; $ < y.length; $++) {
|
|
3661
3661
|
var D = y[$];
|
|
3662
3662
|
_.node = D, s.fire("pointerEvents:collect-targets", _);
|
|
3663
3663
|
}
|
|
3664
3664
|
if (_.targets.length) {
|
|
3665
|
-
for (var L = 1 / 0,
|
|
3666
|
-
var re = ie[
|
|
3665
|
+
for (var L = 1 / 0, Y = 0, ie = _.targets; Y < ie.length; Y++) {
|
|
3666
|
+
var re = ie[Y].eventable.options.holdDuration;
|
|
3667
3667
|
re < L && (L = re);
|
|
3668
3668
|
}
|
|
3669
|
-
|
|
3669
|
+
N.duration = L, N.timeout = setTimeout((function() {
|
|
3670
3670
|
et({ interaction: l, eventTarget: h, pointer: f, event: p, type: "hold" }, s);
|
|
3671
3671
|
}), L);
|
|
3672
3672
|
}
|
|
@@ -3680,30 +3680,30 @@ function Js() {
|
|
|
3680
3680
|
An(n), et(n, t);
|
|
3681
3681
|
} }, PointerEvent: io, fire: et, collectEventTargets: so, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 } }, types: { down: !0, move: !0, up: !0, cancel: !0, tap: !0, doubletap: !0, hold: !0 } };
|
|
3682
3682
|
function et(n, t) {
|
|
3683
|
-
var o = n.interaction, s = n.pointer, l = n.event, f = n.eventTarget, p = n.type, h = n.targets, m = h === void 0 ? so(n, t) : h,
|
|
3684
|
-
t.fire("pointerEvents:new", { pointerEvent:
|
|
3685
|
-
for (var y = { interaction: o, pointer: s, event: l, eventTarget: f, targets: m, type: p, pointerEvent:
|
|
3683
|
+
var o = n.interaction, s = n.pointer, l = n.event, f = n.eventTarget, p = n.type, h = n.targets, m = h === void 0 ? so(n, t) : h, N = new io(p, s, l, f, o, t.now());
|
|
3684
|
+
t.fire("pointerEvents:new", { pointerEvent: N });
|
|
3685
|
+
for (var y = { interaction: o, pointer: s, event: l, eventTarget: f, targets: m, type: p, pointerEvent: N }, _ = 0; _ < m.length; _++) {
|
|
3686
3686
|
var $ = m[_];
|
|
3687
|
-
for (var D in $.props || {})
|
|
3687
|
+
for (var D in $.props || {}) N[D] = $.props[D];
|
|
3688
3688
|
var L = Ye($.eventable, $.node);
|
|
3689
|
-
if (
|
|
3689
|
+
if (N._subtractOrigin(L), N.eventable = $.eventable, N.currentTarget = $.node, $.eventable.fire(N), N._addOrigin(L), N.immediatePropagationStopped || N.propagationStopped && _ + 1 < m.length && m[_ + 1].node !== N.currentTarget) break;
|
|
3690
3690
|
}
|
|
3691
3691
|
if (t.fire("pointerEvents:fired", y), p === "tap") {
|
|
3692
|
-
var
|
|
3693
|
-
o.prevTap =
|
|
3692
|
+
var Y = N.double ? et({ interaction: o, pointer: s, event: l, eventTarget: f, type: "doubletap" }, t) : N;
|
|
3693
|
+
o.prevTap = Y, o.tapTime = Y.timeStamp;
|
|
3694
3694
|
}
|
|
3695
|
-
return
|
|
3695
|
+
return N;
|
|
3696
3696
|
}
|
|
3697
3697
|
function so(n, t) {
|
|
3698
3698
|
var o = n.interaction, s = n.pointer, l = n.event, f = n.eventTarget, p = n.type, h = o.getPointerIndex(s), m = o.pointers[h];
|
|
3699
3699
|
if (p === "tap" && (o.pointerWasMoved || !m || m.downTarget !== f)) return [];
|
|
3700
|
-
for (var
|
|
3701
|
-
var $ =
|
|
3700
|
+
for (var N = ue(f), y = { interaction: o, pointer: s, event: l, eventTarget: f, type: p, path: N, targets: [], node: null }, _ = 0; _ < N.length; _++) {
|
|
3701
|
+
var $ = N[_];
|
|
3702
3702
|
y.node = $, t.fire("pointerEvents:collect-targets", y);
|
|
3703
3703
|
}
|
|
3704
3704
|
return p === "hold" && (y.targets = y.targets.filter((function(D) {
|
|
3705
|
-
var L,
|
|
3706
|
-
return D.eventable.options.holdDuration === ((L = o.pointers[h]) == null || (
|
|
3705
|
+
var L, Y;
|
|
3706
|
+
return D.eventable.options.holdDuration === ((L = o.pointers[h]) == null || (Y = L.hold) == null ? void 0 : Y.duration);
|
|
3707
3707
|
}))), y.targets;
|
|
3708
3708
|
}
|
|
3709
3709
|
function An(n) {
|
|
@@ -3762,7 +3762,7 @@ function Js() {
|
|
|
3762
3762
|
var t = n.Interactable;
|
|
3763
3763
|
n.actions.phases.reflow = !0, t.prototype.reflow = function(o) {
|
|
3764
3764
|
return (function(s, l, f) {
|
|
3765
|
-
for (var p = s.getAllElements(), h = f.window.Promise, m = h ? [] : null,
|
|
3765
|
+
for (var p = s.getAllElements(), h = f.window.Promise, m = h ? [] : null, N = function() {
|
|
3766
3766
|
var _ = p[y], $ = s.getRect(_);
|
|
3767
3767
|
if (!$) return 1;
|
|
3768
3768
|
var D, L = vt(f.interactions.list, (function(re) {
|
|
@@ -3772,7 +3772,7 @@ function Js() {
|
|
|
3772
3772
|
L._reflowResolve = re;
|
|
3773
3773
|
})));
|
|
3774
3774
|
else {
|
|
3775
|
-
var
|
|
3775
|
+
var Y = Be($), ie = /* @__PURE__ */ (function(re) {
|
|
3776
3776
|
return { coords: re, get page() {
|
|
3777
3777
|
return this.coords.page;
|
|
3778
3778
|
}, get client() {
|
|
@@ -3799,7 +3799,7 @@ function Js() {
|
|
|
3799
3799
|
return this.coords.buttons;
|
|
3800
3800
|
}, preventDefault: function() {
|
|
3801
3801
|
} };
|
|
3802
|
-
})({ page: { x:
|
|
3802
|
+
})({ page: { x: Y.x, y: Y.y }, client: { x: Y.x, y: Y.y }, timeStamp: f.now() });
|
|
3803
3803
|
D = (function(re, le, me, be, de) {
|
|
3804
3804
|
var ye = re.interactions.new({ pointerType: "reflow" }), Ae = { interaction: ye, event: de, pointer: de, eventTarget: me, phase: "reflow" };
|
|
3805
3805
|
ye.interactable = le, ye.element = me, ye.prevEvent = de, ye.updatePointer(de, de, me, !0), yr(ye.coords.delta), En(ye.prepared, be), ye._doPhase(Ae);
|
|
@@ -3810,7 +3810,7 @@ function Js() {
|
|
|
3810
3810
|
})(f, s, _, l, ie);
|
|
3811
3811
|
}
|
|
3812
3812
|
m && m.push(D);
|
|
3813
|
-
}, y = 0; y < p.length && !
|
|
3813
|
+
}, y = 0; y < p.length && !N(); y++) ;
|
|
3814
3814
|
return m && h.all(m).then((function() {
|
|
3815
3815
|
return s;
|
|
3816
3816
|
}));
|
|
@@ -3854,13 +3854,13 @@ function ea(e, {
|
|
|
3854
3854
|
const I = Te.make(T);
|
|
3855
3855
|
d.current?.(I);
|
|
3856
3856
|
},
|
|
3857
|
-
onmove: ({ client: T, clientX0: I, clientY0:
|
|
3858
|
-
const
|
|
3859
|
-
g.current?.(K, ee,
|
|
3857
|
+
onmove: ({ client: T, clientX0: I, clientY0: j, dx: A, dy: S }) => {
|
|
3858
|
+
const k = Te.make(I, j), ee = Te.make(T), K = Te.make(A, S);
|
|
3859
|
+
g.current?.(K, ee, k);
|
|
3860
3860
|
},
|
|
3861
|
-
onend: ({ client: T, clientX0: I, clientY0:
|
|
3862
|
-
const A = Te.make(I,
|
|
3863
|
-
v.current?.(
|
|
3861
|
+
onend: ({ client: T, clientX0: I, clientY0: j }) => {
|
|
3862
|
+
const A = Te.make(I, j), S = Te.make(T);
|
|
3863
|
+
v.current?.(S, A);
|
|
3864
3864
|
}
|
|
3865
3865
|
});
|
|
3866
3866
|
return () => {
|
|
@@ -3876,17 +3876,17 @@ function kt(e, {
|
|
|
3876
3876
|
onDragEnd: u,
|
|
3877
3877
|
...d
|
|
3878
3878
|
}) {
|
|
3879
|
-
const g = we(r), [v, x] = Oe(!1), [O, T] = Oe(!1), [I,
|
|
3879
|
+
const g = we(r), [v, x] = Oe(!1), [O, T] = Oe(!1), [I, j] = Oe(r), A = Se(a), S = Se(c), k = Se(u), ee = Se(i);
|
|
3880
3880
|
return ea(e, {
|
|
3881
3881
|
onDragStart: (w) => {
|
|
3882
3882
|
x(!0), T(!1), A.current?.(w);
|
|
3883
3883
|
},
|
|
3884
3884
|
onDragMove: (w, P, E) => {
|
|
3885
|
-
const
|
|
3886
|
-
po(g,
|
|
3885
|
+
const M = ee.current(g.current, w.x, w.y);
|
|
3886
|
+
po(g, M) && j(M), x(!0), T(!1), S.current?.(w, P, E);
|
|
3887
3887
|
},
|
|
3888
3888
|
onDragEnd: (w, P) => {
|
|
3889
|
-
x(!1), T(!0),
|
|
3889
|
+
x(!1), T(!0), k.current?.(w, P);
|
|
3890
3890
|
},
|
|
3891
3891
|
...d
|
|
3892
3892
|
}), Ee(() => {
|
|
@@ -3895,7 +3895,7 @@ function kt(e, {
|
|
|
3895
3895
|
isDragging: v,
|
|
3896
3896
|
isReleasing: O,
|
|
3897
3897
|
value: I,
|
|
3898
|
-
setValue:
|
|
3898
|
+
setValue: j
|
|
3899
3899
|
};
|
|
3900
3900
|
}
|
|
3901
3901
|
function po(e, r) {
|
|
@@ -3915,27 +3915,27 @@ const Ho = /* @__PURE__ */ _e(({
|
|
|
3915
3915
|
onLoadImageError: O,
|
|
3916
3916
|
onImageSizeChange: T,
|
|
3917
3917
|
...I
|
|
3918
|
-
},
|
|
3919
|
-
const A = ve((
|
|
3918
|
+
}, j) => {
|
|
3919
|
+
const A = ve((M, B, W) => M - B * r, [r]), S = we(null), k = nt(S), ee = $o({ src: i }, {
|
|
3920
3920
|
onLoadStart: v,
|
|
3921
3921
|
onLoadComplete: x,
|
|
3922
3922
|
onLoadError: O
|
|
3923
|
-
}), [K,
|
|
3923
|
+
}), [K, X] = Oe(e), { isDragging: R, value: w, setValue: P } = kt(S, {
|
|
3924
3924
|
initialValue: 0,
|
|
3925
3925
|
transform: A,
|
|
3926
3926
|
onDragStart: d,
|
|
3927
3927
|
onDragEnd: g
|
|
3928
3928
|
});
|
|
3929
3929
|
Ee(() => {
|
|
3930
|
-
if (
|
|
3931
|
-
const
|
|
3932
|
-
|
|
3933
|
-
}, [e, ee,
|
|
3934
|
-
if (!
|
|
3935
|
-
const
|
|
3936
|
-
K !==
|
|
3937
|
-
}, [w, ee,
|
|
3938
|
-
c?.(K,
|
|
3930
|
+
if (R || !ee) return;
|
|
3931
|
+
const M = na(e, ee, xe.size(k), a);
|
|
3932
|
+
M !== w && P(M), e !== K && X(e);
|
|
3933
|
+
}, [e, ee, k.width, k.height, a]), Ee(() => {
|
|
3934
|
+
if (!R || !ee) return;
|
|
3935
|
+
const M = ra(w, ee, xe.size(k), a);
|
|
3936
|
+
K !== M && X(M);
|
|
3937
|
+
}, [w, ee, k.width, k.height, a]), Ee(() => {
|
|
3938
|
+
c?.(K, R), u?.(K / 360, R);
|
|
3939
3939
|
}, [K]), Ee(() => {
|
|
3940
3940
|
T?.(ee);
|
|
3941
3941
|
}, [ee?.width, ee?.height]);
|
|
@@ -3944,10 +3944,10 @@ const Ho = /* @__PURE__ */ _e(({
|
|
|
3944
3944
|
"div",
|
|
3945
3945
|
{
|
|
3946
3946
|
...I,
|
|
3947
|
-
ref:
|
|
3947
|
+
ref: j,
|
|
3948
3948
|
"aria-valuenow": K,
|
|
3949
3949
|
role: "slider",
|
|
3950
|
-
children: /* @__PURE__ */ b.jsx("div", { ref:
|
|
3950
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: S, style: E.body })
|
|
3951
3951
|
}
|
|
3952
3952
|
);
|
|
3953
3953
|
});
|
|
@@ -3966,9 +3966,9 @@ function ta({ src: e = "", displacement: r = NaN }) {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
function Bo(e, r) {
|
|
3968
3968
|
const { width: i, height: a } = e, { height: c } = r;
|
|
3969
|
-
if (a <= 0) return
|
|
3969
|
+
if (a <= 0) return je.zero;
|
|
3970
3970
|
const d = c / a * i;
|
|
3971
|
-
return
|
|
3971
|
+
return je.make(d, c);
|
|
3972
3972
|
}
|
|
3973
3973
|
function na(e, r, i, a) {
|
|
3974
3974
|
const { width: c } = Bo(r, i), { width: u } = i, d = u * a;
|
|
@@ -3995,24 +3995,24 @@ const oa = /* @__PURE__ */ _e(({
|
|
|
3995
3995
|
onAngleChange: O,
|
|
3996
3996
|
onDragEnd: T,
|
|
3997
3997
|
onDragStart: I,
|
|
3998
|
-
onLoadImageComplete:
|
|
3998
|
+
onLoadImageComplete: j,
|
|
3999
3999
|
onLoadImageError: A,
|
|
4000
|
-
onLoadImageStart:
|
|
4001
|
-
onImageSizeChange:
|
|
4000
|
+
onLoadImageStart: S,
|
|
4001
|
+
onImageSizeChange: k,
|
|
4002
4002
|
onPositionChange: ee,
|
|
4003
4003
|
...K
|
|
4004
|
-
},
|
|
4005
|
-
const
|
|
4004
|
+
}, X) => {
|
|
4005
|
+
const R = we(null), w = nt(R), [P, E] = Oe(), [M, B] = Oe(!1), oe = ve(() => {
|
|
4006
4006
|
if (!P) return 0;
|
|
4007
|
-
const { width: z, height:
|
|
4008
|
-
return
|
|
4007
|
+
const { width: z, height: C } = P;
|
|
4008
|
+
return C === 0 ? 0 : z / C;
|
|
4009
4009
|
}, [P?.width, P?.height])(), U = ve(() => {
|
|
4010
4010
|
const z = Math.min(360, Math.max(0, u ?? (v ? v.width / (v.height * oe) * 360 : 0)));
|
|
4011
4011
|
return w.width * (z / 360);
|
|
4012
4012
|
}, [v?.width, v?.height, oe, w.width, u])(), F = ve(() => w.width <= 0 ? x : ((w.width - U) * 0.5 + x * U) / w.width, [w.width, U, x])(), te = ve(() => {
|
|
4013
|
-
|
|
4013
|
+
B(!0), I?.();
|
|
4014
4014
|
}, [I]), ne = ve(() => {
|
|
4015
|
-
|
|
4015
|
+
B(!1), T?.();
|
|
4016
4016
|
}, [T]), ae = ze(c, {
|
|
4017
4017
|
track: Kt,
|
|
4018
4018
|
reticle: Hn,
|
|
@@ -4022,14 +4022,14 @@ const oa = /* @__PURE__ */ _e(({
|
|
|
4022
4022
|
"div",
|
|
4023
4023
|
{
|
|
4024
4024
|
...K,
|
|
4025
|
-
ref:
|
|
4026
|
-
className: se(e, { dragging:
|
|
4025
|
+
ref: X,
|
|
4026
|
+
className: se(e, { dragging: M }),
|
|
4027
4027
|
style: ce(r, V.root),
|
|
4028
4028
|
children: [
|
|
4029
4029
|
/* @__PURE__ */ b.jsx(
|
|
4030
4030
|
Ho,
|
|
4031
4031
|
{
|
|
4032
|
-
ref:
|
|
4032
|
+
ref: R,
|
|
4033
4033
|
angle: i,
|
|
4034
4034
|
speed: d,
|
|
4035
4035
|
src: g,
|
|
@@ -4039,18 +4039,18 @@ const oa = /* @__PURE__ */ _e(({
|
|
|
4039
4039
|
onDragEnd: ne,
|
|
4040
4040
|
onDragStart: te,
|
|
4041
4041
|
onImageSizeChange: E,
|
|
4042
|
-
onLoadImageComplete:
|
|
4042
|
+
onLoadImageComplete: j,
|
|
4043
4043
|
onLoadImageError: A,
|
|
4044
|
-
onLoadImageStart:
|
|
4044
|
+
onLoadImageStart: S,
|
|
4045
4045
|
onPositionChange: ee
|
|
4046
4046
|
}
|
|
4047
4047
|
),
|
|
4048
4048
|
/* @__PURE__ */ b.jsx("div", { style: V.body, children: /* @__PURE__ */ b.jsxs("div", { style: V.controls, children: [
|
|
4049
|
-
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging:
|
|
4050
|
-
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging:
|
|
4051
|
-
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging:
|
|
4049
|
+
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging: M }), element: ae.track ?? /* @__PURE__ */ b.jsx(Kt, {}), style: V.track }),
|
|
4050
|
+
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging: M }), element: ae.reticle ?? /* @__PURE__ */ b.jsx(Hn, {}), style: V.reticle }),
|
|
4051
|
+
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging: M }), element: ae.track ?? /* @__PURE__ */ b.jsx(Kt, {}), style: V.track })
|
|
4052
4052
|
] }) }),
|
|
4053
|
-
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging:
|
|
4053
|
+
/* @__PURE__ */ b.jsx(ge, { className: se({ dragging: M }), element: ae.indicator ?? /* @__PURE__ */ b.jsx(Dn, {}), style: V.indicator })
|
|
4054
4054
|
]
|
|
4055
4055
|
}
|
|
4056
4056
|
);
|
|
@@ -4155,7 +4155,7 @@ function fn({
|
|
|
4155
4155
|
return /* @__PURE__ */ b.jsx(b.Fragment, { children: e.map((a, c) => /* @__PURE__ */ b.jsx(Io, { children: i?.(a, c) ?? (typeof r == "function" ? r(a, c) : r) }, `item-${c}`)) });
|
|
4156
4156
|
}
|
|
4157
4157
|
process.env.NODE_ENV === "development" && (fn.displayName = "Each");
|
|
4158
|
-
function
|
|
4158
|
+
function jl({
|
|
4159
4159
|
children: e,
|
|
4160
4160
|
condition: r
|
|
4161
4161
|
}) {
|
|
@@ -4206,39 +4206,39 @@ function ua({
|
|
|
4206
4206
|
maxWidth: v = 200,
|
|
4207
4207
|
threshold: x = 100
|
|
4208
4208
|
}) {
|
|
4209
|
-
const O = we(null), T = we(void 0), I = nt(O),
|
|
4210
|
-
const
|
|
4211
|
-
|
|
4212
|
-
const ee = a ?? (O.current ? da(O.current, x) : "tl"), K = fa(
|
|
4213
|
-
Object.keys(
|
|
4209
|
+
const O = we(null), T = we(void 0), I = nt(O), j = ve(() => {
|
|
4210
|
+
const k = window.document.createElement("span");
|
|
4211
|
+
k.className = se(r), k.innerHTML = g, k.role = "tooltip";
|
|
4212
|
+
const ee = a ?? (O.current ? da(O.current, x) : "tl"), K = fa(k), X = ga({ alignment: ee, arrowSize: je.make(u, c), gap: d, maxDialogWidth: v, fullDialogWidth: K.width, targetWidth: I.width }), R = ce(i, X.dialog);
|
|
4213
|
+
Object.keys(R).forEach((P) => k.style[P] = R[P]);
|
|
4214
4214
|
const w = window.document.createElement("span");
|
|
4215
|
-
return Object.keys(
|
|
4215
|
+
return Object.keys(X.arrow).forEach((P) => w.style[P] = X.arrow[P]), k.appendChild(w), k;
|
|
4216
4216
|
}, [r, a, g, v, Ke(i), I.width, x, c, u, d]), A = ve(() => {
|
|
4217
4217
|
T.current && (T.current.style.opacity = "1", T.current.ariaHidden = "false");
|
|
4218
|
-
}, []),
|
|
4218
|
+
}, []), S = ve(() => {
|
|
4219
4219
|
T.current && (T.current.style.opacity = "0", T.current.ariaHidden = "true");
|
|
4220
4220
|
}, []);
|
|
4221
4221
|
return Ee(() => {
|
|
4222
|
-
const
|
|
4223
|
-
return O.current?.appendChild(
|
|
4224
|
-
O.current?.removeChild(
|
|
4222
|
+
const k = j();
|
|
4223
|
+
return O.current?.appendChild(k), T.current = k, () => {
|
|
4224
|
+
O.current?.removeChild(k), T.current = void 0;
|
|
4225
4225
|
};
|
|
4226
|
-
}, [
|
|
4226
|
+
}, [j]), /* @__PURE__ */ b.jsx(
|
|
4227
4227
|
Xo,
|
|
4228
4228
|
{
|
|
4229
4229
|
ref: O,
|
|
4230
4230
|
onMouseEnter: A,
|
|
4231
|
-
onMouseLeave:
|
|
4231
|
+
onMouseLeave: S,
|
|
4232
4232
|
children: e
|
|
4233
4233
|
}
|
|
4234
4234
|
);
|
|
4235
4235
|
}
|
|
4236
4236
|
function fa(e) {
|
|
4237
|
-
if (typeof window > "u") return
|
|
4237
|
+
if (typeof window > "u") return je.zero;
|
|
4238
4238
|
const r = e.cloneNode(!1);
|
|
4239
4239
|
r.innerHTML = e.innerHTML, r.style.visibility = "hidden", r.style.whiteSpace = "pre", window.document.body.appendChild(r);
|
|
4240
4240
|
const i = r.getBoundingClientRect();
|
|
4241
|
-
return window.document.body.removeChild(r),
|
|
4241
|
+
return window.document.body.removeChild(r), je.make(i.width, i.height);
|
|
4242
4242
|
}
|
|
4243
4243
|
function da(e, r) {
|
|
4244
4244
|
const i = xe.fromViewport(), a = xe.intersecting(e);
|
|
@@ -4416,7 +4416,7 @@ function ga({ alignment: e, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogW
|
|
|
4416
4416
|
process.env.NODE_ENV === "development" && (ua.displayName = "WithTooltip");
|
|
4417
4417
|
function $l() {
|
|
4418
4418
|
const e = navigator.userAgent || navigator.vendor || window.opera;
|
|
4419
|
-
return
|
|
4419
|
+
return jt(() => {
|
|
4420
4420
|
switch (!0) {
|
|
4421
4421
|
case /android/i.test(e):
|
|
4422
4422
|
return "android";
|
|
@@ -4468,7 +4468,7 @@ function va() {
|
|
|
4468
4468
|
return typeof window > "u" ? 1 : window.devicePixelRatio || 1;
|
|
4469
4469
|
}
|
|
4470
4470
|
function Rl() {
|
|
4471
|
-
return
|
|
4471
|
+
return jt(() => va(), []);
|
|
4472
4472
|
}
|
|
4473
4473
|
function ma(e, {
|
|
4474
4474
|
isEnabled: r = !0,
|
|
@@ -4479,34 +4479,34 @@ function ma(e, {
|
|
|
4479
4479
|
}) {
|
|
4480
4480
|
const d = we(void 0), g = we(void 0), v = Se(a), x = Se(c), O = Se(u), T = ve((A) => {
|
|
4481
4481
|
if (!d.current) return;
|
|
4482
|
-
const
|
|
4483
|
-
g.current =
|
|
4482
|
+
const S = Te.make(A.clientX, A.clientY), k = Te.subtract(S, g.current ?? d.current);
|
|
4483
|
+
g.current = S, x.current?.(k, S, d.current);
|
|
4484
4484
|
}, []), I = ve((A) => {
|
|
4485
|
-
const
|
|
4486
|
-
if (!
|
|
4487
|
-
const
|
|
4488
|
-
O.current?.(
|
|
4489
|
-
}, [i, T]),
|
|
4490
|
-
const
|
|
4491
|
-
if (!
|
|
4485
|
+
const S = e.current;
|
|
4486
|
+
if (!S || !d.current) return;
|
|
4487
|
+
const k = Te.make(A.clientX, A.clientY), ee = Te.subtract(g.current ?? d.current, k);
|
|
4488
|
+
O.current?.(k, ee, d.current), d.current = void 0, g.current = void 0, S.removeEventListener("mousemove", T), S.removeEventListener("mouseup", I, { capture: !0 }), S.removeEventListener("mouseleave", I), i && (S.style.cursor = "grab");
|
|
4489
|
+
}, [i, T]), j = ve((A) => {
|
|
4490
|
+
const S = e.current;
|
|
4491
|
+
if (!S) return;
|
|
4492
4492
|
A.preventDefault();
|
|
4493
|
-
const
|
|
4494
|
-
d.current =
|
|
4493
|
+
const k = Te.make(A.clientX, A.clientY);
|
|
4494
|
+
d.current = k, g.current = k, S.addEventListener("mousemove", T), S.addEventListener("mouseup", I, { capture: !0 }), S.addEventListener("mouseleave", I), i && (S.style.cursor = "grabbing"), v.current?.(k);
|
|
4495
4495
|
}, [i, T, I]);
|
|
4496
4496
|
Re(() => {
|
|
4497
4497
|
const A = e.current;
|
|
4498
4498
|
if (!A || !r || !i) return;
|
|
4499
|
-
const
|
|
4499
|
+
const S = A.style.cursor;
|
|
4500
4500
|
return A.style.cursor = "grab", () => {
|
|
4501
|
-
A.style.cursor =
|
|
4501
|
+
A.style.cursor = S;
|
|
4502
4502
|
};
|
|
4503
4503
|
}, [r, i]), Re(() => {
|
|
4504
4504
|
const A = e.current;
|
|
4505
4505
|
if (!(!A || !r))
|
|
4506
|
-
return A.addEventListener("mousedown",
|
|
4507
|
-
A.removeEventListener("mousedown",
|
|
4506
|
+
return A.addEventListener("mousedown", j), () => {
|
|
4507
|
+
A.removeEventListener("mousedown", j), A.removeEventListener("mousemove", T), A.removeEventListener("mouseup", I, { capture: !0 }), A.removeEventListener("mouseleave", I);
|
|
4508
4508
|
};
|
|
4509
|
-
}, [r, T, I,
|
|
4509
|
+
}, [r, T, I, j]);
|
|
4510
4510
|
}
|
|
4511
4511
|
function zl(e) {
|
|
4512
4512
|
const [r, i] = Oe(!1), a = ve((d) => {
|
|
@@ -4552,7 +4552,7 @@ function xa() {
|
|
|
4552
4552
|
return typeof window > "u" ? !1 : !!(typeof window.navigator < "u" && (window.navigator.maxTouchPoints > 0 || "msMaxTouchPoints" in window.navigator && window.navigator.msMaxTouchPoints > 0) || window.matchMedia("(pointer: coarse)").matches || window.matchMedia("(hover: none)").matches || "ontouchstart" in window || "ontouchstart" in window.document.documentElement);
|
|
4553
4553
|
}
|
|
4554
4554
|
function ba() {
|
|
4555
|
-
return
|
|
4555
|
+
return jt(() => xa(), []);
|
|
4556
4556
|
}
|
|
4557
4557
|
function Ll(e, r) {
|
|
4558
4558
|
const i = Se(r);
|
|
@@ -4600,7 +4600,7 @@ function Sa(e, r, i) {
|
|
|
4600
4600
|
return hr?.setItem(r, JSON.stringify(a)), e;
|
|
4601
4601
|
}
|
|
4602
4602
|
function Vl(e) {
|
|
4603
|
-
return
|
|
4603
|
+
return jt(() => wa({ defaultTTL: e }), [e]);
|
|
4604
4604
|
}
|
|
4605
4605
|
function Dl(e, r = []) {
|
|
4606
4606
|
const i = Se(e), a = we(void 0), c = we(!1);
|
|
@@ -4670,7 +4670,7 @@ function ka(e, r, i) {
|
|
|
4670
4670
|
return gr?.setItem(r, JSON.stringify(a)), e;
|
|
4671
4671
|
}
|
|
4672
4672
|
function Hl(e) {
|
|
4673
|
-
return
|
|
4673
|
+
return jt(() => Oa({ defaultTTL: e }), [e]);
|
|
4674
4674
|
}
|
|
4675
4675
|
function qo(e) {
|
|
4676
4676
|
const [r, i] = Oe(xe.zero);
|
|
@@ -4681,7 +4681,7 @@ function qo(e) {
|
|
|
4681
4681
|
}
|
|
4682
4682
|
}), xe.size(r);
|
|
4683
4683
|
}
|
|
4684
|
-
function
|
|
4684
|
+
function Ca(e, { element: r, computed: i }) {
|
|
4685
4685
|
if (typeof window > "u") return;
|
|
4686
4686
|
const a = r ?? window.document.documentElement;
|
|
4687
4687
|
return i ? window.getComputedStyle(a).getPropertyValue(e) || void 0 : a.style.getPropertyValue(e) || void 0;
|
|
@@ -4694,7 +4694,7 @@ function ho(e, r, { element: i } = {}) {
|
|
|
4694
4694
|
function Bl(e, r, { element: i, isEnabled: a = !0 } = {}) {
|
|
4695
4695
|
Re(() => {
|
|
4696
4696
|
if (!a) return;
|
|
4697
|
-
const c = i ?? window.document.documentElement, u =
|
|
4697
|
+
const c = i ?? window.document.documentElement, u = Ca(e, { element: c, computed: !1 });
|
|
4698
4698
|
return ho(e, r, { element: c }), () => {
|
|
4699
4699
|
ho(e, u, { element: c });
|
|
4700
4700
|
};
|
|
@@ -4727,16 +4727,16 @@ const vr = /* @__PURE__ */ _e(({
|
|
|
4727
4727
|
selection: O,
|
|
4728
4728
|
selectionMode: T = "none",
|
|
4729
4729
|
onActivateAt: I,
|
|
4730
|
-
onDeselectAt:
|
|
4730
|
+
onDeselectAt: j,
|
|
4731
4731
|
onCustomEvent: A,
|
|
4732
|
-
onSelectAt:
|
|
4733
|
-
onSelectionChange:
|
|
4732
|
+
onSelectAt: S,
|
|
4733
|
+
onSelectionChange: k,
|
|
4734
4734
|
ItemComponent: ee,
|
|
4735
4735
|
...K
|
|
4736
|
-
},
|
|
4737
|
-
const
|
|
4738
|
-
P(U) ?
|
|
4739
|
-
},
|
|
4736
|
+
}, X) => {
|
|
4737
|
+
const R = $a(O ?? [], d), w = Aa({ itemLength: c, itemPadding: u, layout: g, numSegments: v, orientation: x }), P = (U) => R.indexOf(U) >= 0, E = (U) => {
|
|
4738
|
+
P(U) ? B(U) : M(U);
|
|
4739
|
+
}, M = (U) => {
|
|
4740
4740
|
if (P(U)) return;
|
|
4741
4741
|
let H;
|
|
4742
4742
|
switch (T) {
|
|
@@ -4751,28 +4751,28 @@ const vr = /* @__PURE__ */ _e(({
|
|
|
4751
4751
|
default:
|
|
4752
4752
|
return;
|
|
4753
4753
|
}
|
|
4754
|
-
const F =
|
|
4754
|
+
const F = R, te = H(R);
|
|
4755
4755
|
oe(F, te);
|
|
4756
|
-
},
|
|
4756
|
+
}, B = (U) => {
|
|
4757
4757
|
if (!P(U)) return;
|
|
4758
|
-
const H = (ne) => ne.filter((ae) => ae !== U), F =
|
|
4758
|
+
const H = (ne) => ne.filter((ae) => ae !== U), F = R, te = H(R);
|
|
4759
4759
|
oe(F, te);
|
|
4760
4760
|
}, W = (U) => {
|
|
4761
|
-
I?.(U), T !== "none" && (a ? E(U) :
|
|
4761
|
+
I?.(U), T !== "none" && (a ? E(U) : M(U));
|
|
4762
4762
|
}, oe = (U, H) => {
|
|
4763
4763
|
if (We(U, H)) return;
|
|
4764
4764
|
const F = U?.filter((ne) => H.indexOf(ne) === -1) ?? [], te = H.filter((ne) => U?.indexOf(ne) === -1);
|
|
4765
|
-
F.forEach((ne) =>
|
|
4765
|
+
F.forEach((ne) => j?.(ne)), te.forEach((ne) => S?.(ne)), k?.(H);
|
|
4766
4766
|
};
|
|
4767
4767
|
Ee(() => {
|
|
4768
|
-
const U =
|
|
4768
|
+
const U = R;
|
|
4769
4769
|
let H;
|
|
4770
4770
|
switch (T) {
|
|
4771
4771
|
case "multiple":
|
|
4772
|
-
H =
|
|
4772
|
+
H = R;
|
|
4773
4773
|
break;
|
|
4774
4774
|
case "single":
|
|
4775
|
-
H =
|
|
4775
|
+
H = R.slice(-1);
|
|
4776
4776
|
break;
|
|
4777
4777
|
default:
|
|
4778
4778
|
H = [];
|
|
@@ -4781,13 +4781,13 @@ const vr = /* @__PURE__ */ _e(({
|
|
|
4781
4781
|
oe(U, H);
|
|
4782
4782
|
}, [T]);
|
|
4783
4783
|
const Z = ze(r, {
|
|
4784
|
-
item:
|
|
4784
|
+
item: Ct
|
|
4785
4785
|
});
|
|
4786
4786
|
return /* @__PURE__ */ b.jsx(
|
|
4787
4787
|
"div",
|
|
4788
4788
|
{
|
|
4789
4789
|
...K,
|
|
4790
|
-
ref:
|
|
4790
|
+
ref: X,
|
|
4791
4791
|
"aria-multiselectable": T === "multiple",
|
|
4792
4792
|
className: se(e),
|
|
4793
4793
|
role: g === "grid" ? "grid" : T === "none" ? "list" : "listbox",
|
|
@@ -4824,7 +4824,7 @@ const vr = /* @__PURE__ */ _e(({
|
|
|
4824
4824
|
{
|
|
4825
4825
|
"aria-selected": te,
|
|
4826
4826
|
className: se({ active: te }),
|
|
4827
|
-
element: Z.item ?? /* @__PURE__ */ b.jsx(
|
|
4827
|
+
element: Z.item ?? /* @__PURE__ */ b.jsx(Ct, {}),
|
|
4828
4828
|
role: F,
|
|
4829
4829
|
selectionMode: T,
|
|
4830
4830
|
style: ne,
|
|
@@ -4836,12 +4836,12 @@ const vr = /* @__PURE__ */ _e(({
|
|
|
4836
4836
|
} })
|
|
4837
4837
|
}
|
|
4838
4838
|
);
|
|
4839
|
-
}),
|
|
4840
|
-
function
|
|
4839
|
+
}), Ct = ({ children: e, selectionMode: r, onActivateAt: i, ...a }) => i || r === "single" || r === "multiple" ? /* @__PURE__ */ b.jsx("button", { ...a, children: e }) : /* @__PURE__ */ b.jsx("div", { ...a, children: e });
|
|
4840
|
+
function ja(e, r) {
|
|
4841
4841
|
return !!(isNaN(e) || e >= r.length || e < 0);
|
|
4842
4842
|
}
|
|
4843
4843
|
function $a(e, r) {
|
|
4844
|
-
return Wo(e).filter((i) => !
|
|
4844
|
+
return Wo(e).filter((i) => !ja(i, r));
|
|
4845
4845
|
}
|
|
4846
4846
|
function Wo(e) {
|
|
4847
4847
|
return e.sort((r, i) => r - i);
|
|
@@ -4886,7 +4886,7 @@ function Aa({ itemLength: e = NaN, itemPadding: r = 0, layout: i = "collection",
|
|
|
4886
4886
|
}
|
|
4887
4887
|
};
|
|
4888
4888
|
}
|
|
4889
|
-
process.env.NODE_ENV === "development" && (vr.displayName = "Collection",
|
|
4889
|
+
process.env.NODE_ENV === "development" && (vr.displayName = "Collection", Ct.displayName = "CollectionItem");
|
|
4890
4890
|
const Ma = /* @__PURE__ */ _e(({
|
|
4891
4891
|
children: e,
|
|
4892
4892
|
style: r,
|
|
@@ -4901,37 +4901,37 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
4901
4901
|
onCollapseSectionAt: O,
|
|
4902
4902
|
onDeselectAt: T,
|
|
4903
4903
|
onExpandedSectionsChange: I,
|
|
4904
|
-
onExpandSectionAt:
|
|
4904
|
+
onExpandSectionAt: j,
|
|
4905
4905
|
onHeaderCustomEvent: A,
|
|
4906
|
-
onItemCustomEvent:
|
|
4907
|
-
onSelectAt:
|
|
4906
|
+
onItemCustomEvent: S,
|
|
4907
|
+
onSelectAt: k,
|
|
4908
4908
|
onSelectionChange: ee,
|
|
4909
4909
|
HeaderComponent: K,
|
|
4910
|
-
ItemComponent:
|
|
4911
|
-
...
|
|
4910
|
+
ItemComponent: X,
|
|
4911
|
+
...R
|
|
4912
4912
|
}, w) => {
|
|
4913
|
-
const P = Fa(g ?? {}, d), E = za(a ?? [], d),
|
|
4913
|
+
const P = Fa(g ?? {}, d), E = za(a ?? [], d), M = La({ orientation: c }), B = d.map(() => we(null)), W = B.map((V) => qo(V)), oe = (V, z) => (P[z]?.indexOf(V) ?? -1) >= 0, Z = (V) => E.indexOf(V) >= 0, U = (V) => {
|
|
4914
4914
|
let z;
|
|
4915
|
-
Z(V) ? z = (
|
|
4915
|
+
Z(V) ? z = (C) => C.filter((G) => G !== V) : i ? z = (C) => [V] : z = (C) => [...C.filter((G) => G !== V), V], te(E, z(E));
|
|
4916
4916
|
}, H = (V, z) => {
|
|
4917
4917
|
if (oe(V, z)) return;
|
|
4918
|
-
let
|
|
4918
|
+
let C;
|
|
4919
4919
|
switch (v) {
|
|
4920
4920
|
case "multiple":
|
|
4921
|
-
|
|
4921
|
+
C = (J) => ({
|
|
4922
4922
|
...J,
|
|
4923
4923
|
[z]: sn([...(J[z] ?? []).filter((q) => q !== V), V])
|
|
4924
4924
|
});
|
|
4925
4925
|
break;
|
|
4926
4926
|
case "single":
|
|
4927
|
-
|
|
4927
|
+
C = (J) => ({
|
|
4928
4928
|
[z]: [V]
|
|
4929
4929
|
});
|
|
4930
4930
|
break;
|
|
4931
4931
|
default:
|
|
4932
4932
|
return;
|
|
4933
4933
|
}
|
|
4934
|
-
const G =
|
|
4934
|
+
const G = C(P);
|
|
4935
4935
|
ne(P, G);
|
|
4936
4936
|
}, F = (V, z) => {
|
|
4937
4937
|
if (!oe(V, z)) return;
|
|
@@ -4942,17 +4942,17 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
4942
4942
|
ne(P, G);
|
|
4943
4943
|
}, te = (V, z) => {
|
|
4944
4944
|
if (We(V, z)) return;
|
|
4945
|
-
const
|
|
4946
|
-
|
|
4945
|
+
const C = V?.filter((J) => z.indexOf(J) === -1) ?? [], G = z.filter((J) => V?.indexOf(J) === -1);
|
|
4946
|
+
C.forEach((J) => O?.(J)), G.forEach((J) => j?.(J)), I?.(z);
|
|
4947
4947
|
}, ne = (V, z) => {
|
|
4948
4948
|
if (We(V, z)) return;
|
|
4949
|
-
const
|
|
4949
|
+
const C = d.length;
|
|
4950
4950
|
let G = [], J = [];
|
|
4951
|
-
for (let q = 0; q <
|
|
4951
|
+
for (let q = 0; q < C; q++) {
|
|
4952
4952
|
const fe = V?.[q] ?? [], he = z[q] ?? [], ue = fe.filter((Q) => he.indexOf(Q) === -1), Ne = he.filter((Q) => fe?.indexOf(Q) === -1);
|
|
4953
4953
|
G = [...G, ...ue.map((Q) => [Q, q])], J = [...J, ...Ne.map((Q) => [Q, q])];
|
|
4954
4954
|
}
|
|
4955
|
-
G.forEach((q) => T?.(q[0], q[1])), J.forEach((q) =>
|
|
4955
|
+
G.forEach((q) => T?.(q[0], q[1])), J.forEach((q) => k?.(q[0], q[1])), ee?.(z);
|
|
4956
4956
|
}, ae = ze(e, {
|
|
4957
4957
|
collapseIcon: Jo,
|
|
4958
4958
|
expandIcon: Ko,
|
|
@@ -4960,23 +4960,23 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
4960
4960
|
item: Yn,
|
|
4961
4961
|
section: go
|
|
4962
4962
|
});
|
|
4963
|
-
return /* @__PURE__ */ b.jsx("div", { ...
|
|
4964
|
-
const { collectionPadding:
|
|
4963
|
+
return /* @__PURE__ */ b.jsx("div", { ...R, ref: w, style: ce(r, M.root), children: /* @__PURE__ */ b.jsx(fn, { in: d, children: (V, z) => {
|
|
4964
|
+
const { collectionPadding: C = 0, items: G = [], itemLength: J = 50, itemPadding: q = 0, isSelectionTogglable: fe, layout: he = "list", maxVisible: ue = -1, numSegments: Ne = 1 } = V, Q = he === "list" ? G.length : Math.ceil(G.length / Ne), He = ue < 0 ? Q : Math.min(Q, ue), Ce = J * He + q * (He - 1), Ie = !Z(z), Be = W[z];
|
|
4965
4965
|
return /* @__PURE__ */ b.jsxs(
|
|
4966
4966
|
ge,
|
|
4967
4967
|
{
|
|
4968
4968
|
element: ae.section ?? /* @__PURE__ */ b.jsx(go, {}),
|
|
4969
|
-
style: ce(
|
|
4969
|
+
style: ce(M.section, c === "vertical" ? {
|
|
4970
4970
|
marginTop: z === 0 ? "0px" : `${u}px`,
|
|
4971
4971
|
...Be.height > 0 ? {
|
|
4972
|
-
height: Ie ? `${Be.height}px` : `${
|
|
4972
|
+
height: Ie ? `${Be.height}px` : `${Ce + Be.height + C}px`
|
|
4973
4973
|
} : {
|
|
4974
4974
|
visibility: "hidden"
|
|
4975
4975
|
}
|
|
4976
4976
|
} : {
|
|
4977
4977
|
marginLeft: z === 0 ? "0px" : `${u}px`,
|
|
4978
4978
|
...Be.width > 0 ? {
|
|
4979
|
-
width: Ie ? `${Be.width}px` : `${
|
|
4979
|
+
width: Ie ? `${Be.width}px` : `${Ce + Be.width + C}px`
|
|
4980
4980
|
} : {
|
|
4981
4981
|
visibility: "hidden"
|
|
4982
4982
|
}
|
|
@@ -4985,8 +4985,8 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
4985
4985
|
/* @__PURE__ */ b.jsx(
|
|
4986
4986
|
"div",
|
|
4987
4987
|
{
|
|
4988
|
-
ref:
|
|
4989
|
-
style: ce(
|
|
4988
|
+
ref: B[z],
|
|
4989
|
+
style: ce(M.headerContainer),
|
|
4990
4990
|
children: K ? /* @__PURE__ */ b.jsx(
|
|
4991
4991
|
K,
|
|
4992
4992
|
{
|
|
@@ -4996,7 +4996,7 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
4996
4996
|
isCollapsed: Ie,
|
|
4997
4997
|
role: "button",
|
|
4998
4998
|
section: V,
|
|
4999
|
-
style: ce(
|
|
4999
|
+
style: ce(M.header),
|
|
5000
5000
|
onClick: () => U(z),
|
|
5001
5001
|
onCustomEvent: (Fe, Ye) => A?.(z, Fe, Ye)
|
|
5002
5002
|
}
|
|
@@ -5007,7 +5007,7 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
5007
5007
|
className: se({ collapsed: Ie, expanded: !Ie }),
|
|
5008
5008
|
element: ae.header ?? /* @__PURE__ */ b.jsx(Bn, {}),
|
|
5009
5009
|
role: "button",
|
|
5010
|
-
style: ce(
|
|
5010
|
+
style: ce(M.header),
|
|
5011
5011
|
onClick: () => U(z),
|
|
5012
5012
|
children: [
|
|
5013
5013
|
/* @__PURE__ */ b.jsx("span", { dangerouslySetInnerHTML: { __html: V.label } }),
|
|
@@ -5016,7 +5016,7 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
5016
5016
|
{
|
|
5017
5017
|
className: se({ collapsed: Ie, expanded: !Ie }),
|
|
5018
5018
|
element: Ie ? ae.collapseIcon ?? ae.expandIcon : ae.expandIcon,
|
|
5019
|
-
style: ce(Ie ?
|
|
5019
|
+
style: ce(Ie ? M.collapseIcon : M.expandIcon)
|
|
5020
5020
|
}
|
|
5021
5021
|
)
|
|
5022
5022
|
]
|
|
@@ -5032,13 +5032,13 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
5032
5032
|
pointerEvents: Ie ? "none" : "auto"
|
|
5033
5033
|
}, c === "vertical" ? {
|
|
5034
5034
|
width: "100%",
|
|
5035
|
-
height: `${
|
|
5036
|
-
marginTop: `${
|
|
5035
|
+
height: `${Ce}px`,
|
|
5036
|
+
marginTop: `${C}px`,
|
|
5037
5037
|
overflowY: ue < 0 || ue >= Q ? "hidden" : "scroll"
|
|
5038
5038
|
} : {
|
|
5039
|
-
marginLeft: `${
|
|
5039
|
+
marginLeft: `${C}px`,
|
|
5040
5040
|
overflowX: ue < 0 || ue >= Q ? "hidden" : "scroll",
|
|
5041
|
-
width: `${
|
|
5041
|
+
width: `${Ce}px`,
|
|
5042
5042
|
height: "100%"
|
|
5043
5043
|
}),
|
|
5044
5044
|
children: /* @__PURE__ */ b.jsx(
|
|
@@ -5046,7 +5046,7 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
5046
5046
|
{
|
|
5047
5047
|
className: se({ collapsed: Ie, expanded: !Ie }),
|
|
5048
5048
|
isSelectionTogglable: fe,
|
|
5049
|
-
ItemComponent:
|
|
5049
|
+
ItemComponent: X,
|
|
5050
5050
|
itemLength: J,
|
|
5051
5051
|
itemPadding: q,
|
|
5052
5052
|
items: G,
|
|
@@ -5057,10 +5057,10 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
5057
5057
|
selectionMode: v,
|
|
5058
5058
|
style: ce(c === "vertical" ? { width: "100%" } : { height: "100%" }),
|
|
5059
5059
|
onActivateAt: (Fe) => x?.(Fe, z),
|
|
5060
|
-
onCustomEvent: (Fe, Ye, Xe) =>
|
|
5060
|
+
onCustomEvent: (Fe, Ye, Xe) => S?.(Fe, z, Ye, Xe),
|
|
5061
5061
|
onDeselectAt: (Fe) => F(Fe, z),
|
|
5062
5062
|
onSelectAt: (Fe) => H(Fe, z),
|
|
5063
|
-
children: !
|
|
5063
|
+
children: !X && (ae.item ?? /* @__PURE__ */ b.jsx(Yn, {}))
|
|
5064
5064
|
}
|
|
5065
5065
|
)
|
|
5066
5066
|
}
|
|
@@ -5069,7 +5069,7 @@ const Ma = /* @__PURE__ */ _e(({
|
|
|
5069
5069
|
}
|
|
5070
5070
|
);
|
|
5071
5071
|
} }) });
|
|
5072
|
-
}), Bn = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: e }), Ko = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: e }), Jo = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: e }), go = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: e }), Yn =
|
|
5072
|
+
}), Bn = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: e }), Ko = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: e }), Jo = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, children: e }), go = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: e }), Yn = Ct;
|
|
5073
5073
|
function Zo(e, r) {
|
|
5074
5074
|
return e >= r.length || e < 0;
|
|
5075
5075
|
}
|
|
@@ -5167,30 +5167,30 @@ const Va = /* @__PURE__ */ _e(({
|
|
|
5167
5167
|
ItemComponent: x,
|
|
5168
5168
|
...O
|
|
5169
5169
|
}, T) => {
|
|
5170
|
-
const I = we(void 0),
|
|
5171
|
-
|
|
5170
|
+
const I = we(void 0), j = we(null), A = we(void 0), S = we(void 0), k = we(void 0), ee = 1e3, K = Se(d), X = Se(g), R = Se(v), w = we(!1), P = we(!1), E = ba(), [M, B] = Oe(vo(j, c)), [W, oe] = Oe(!1), Z = Ba({ scrollSnapEnabled: E || !W, orientation: c }), U = e > 0, H = ve(() => {
|
|
5171
|
+
k.current !== void 0 && (clearTimeout(k.current), k.current = void 0);
|
|
5172
5172
|
}, []), F = ve(() => {
|
|
5173
|
-
H(),
|
|
5174
|
-
clearTimeout(
|
|
5173
|
+
H(), k.current = setTimeout(() => {
|
|
5174
|
+
clearTimeout(k.current), k.current = void 0;
|
|
5175
5175
|
}, ee);
|
|
5176
5176
|
}, [ee, H]), te = ve(() => {
|
|
5177
|
-
Da(
|
|
5177
|
+
Da(j, r, c), F();
|
|
5178
5178
|
}, [r, c]), ne = ve(() => {
|
|
5179
|
-
|
|
5179
|
+
B(vo(j, c));
|
|
5180
5180
|
}, [c]), ae = ve((q) => {
|
|
5181
5181
|
E || (A.current = Te.make(q.clientX, q.clientY), oe(!0));
|
|
5182
5182
|
}, [E]), V = ve((q) => {
|
|
5183
|
-
E || (
|
|
5183
|
+
E || (S.current = Te.make(q.clientX, q.clientY), te(), oe(!1));
|
|
5184
5184
|
}, [E, te]), z = ve((q) => {
|
|
5185
|
-
const fe = A.current, he =
|
|
5185
|
+
const fe = A.current, he = S.current;
|
|
5186
5186
|
if (!fe || !he) return;
|
|
5187
5187
|
const ue = 5, Ne = Te.subtract(fe, he);
|
|
5188
|
-
(Math.abs(Ne.x) > ue || Math.abs(Ne.y) > ue) && q.stopPropagation(), A.current = void 0,
|
|
5189
|
-
}, []),
|
|
5188
|
+
(Math.abs(Ne.x) > ue || Math.abs(Ne.y) > ue) && q.stopPropagation(), A.current = void 0, S.current = void 0;
|
|
5189
|
+
}, []), C = ve(() => {
|
|
5190
5190
|
const q = (r + a.length + 1) % a.length;
|
|
5191
|
-
|
|
5191
|
+
R.current?.(q);
|
|
5192
5192
|
}, [W, r, a.length]), G = ve(({ x: q, y: fe }) => {
|
|
5193
|
-
const he =
|
|
5193
|
+
const he = j.current;
|
|
5194
5194
|
!he || w.current || (H(), w.current = !0, requestAnimationFrame(() => {
|
|
5195
5195
|
switch (c) {
|
|
5196
5196
|
case "horizontal":
|
|
@@ -5204,27 +5204,27 @@ const Va = /* @__PURE__ */ _e(({
|
|
|
5204
5204
|
w.current = !1;
|
|
5205
5205
|
}));
|
|
5206
5206
|
}, [c]), J = ve(() => {
|
|
5207
|
-
const q =
|
|
5207
|
+
const q = j.current;
|
|
5208
5208
|
!q || P.current || (P.current = !0, requestAnimationFrame(() => {
|
|
5209
|
-
if (u && ne(), !(
|
|
5209
|
+
if (u && ne(), !(k.current !== void 0)) {
|
|
5210
5210
|
const he = Math.round(c === "horizontal" ? q.scrollLeft / q.clientWidth : q.scrollTop / q.clientHeight), ue = Math.max(0, Math.min(a.length - 1, he));
|
|
5211
|
-
ue !== r && (I.current = ue,
|
|
5211
|
+
ue !== r && (I.current = ue, R.current?.(ue));
|
|
5212
5212
|
}
|
|
5213
5213
|
P.current = !1;
|
|
5214
5214
|
}));
|
|
5215
5215
|
}, [a.length, r, c, u, ne]);
|
|
5216
|
-
return ma(
|
|
5216
|
+
return ma(j, {
|
|
5217
5217
|
isEnabled: !E && i && a.length > 1,
|
|
5218
5218
|
onDragMove: G
|
|
5219
5219
|
}), ya(W || !U ? -1 : e, {
|
|
5220
|
-
onInterval:
|
|
5220
|
+
onInterval: C
|
|
5221
5221
|
}, [r]), Re(() => {
|
|
5222
|
-
!U || E || (W ? K.current?.() :
|
|
5222
|
+
!U || E || (W ? K.current?.() : X.current?.());
|
|
5223
5223
|
}, [E, W, U]), Re(() => {
|
|
5224
|
-
const q =
|
|
5224
|
+
const q = j.current;
|
|
5225
5225
|
if (!q) return;
|
|
5226
5226
|
const fe = I.current === void 0, he = I.current === r;
|
|
5227
|
-
return q.addEventListener("scroll", J), u && ne(), he || (I.current = r, fe || (
|
|
5227
|
+
return q.addEventListener("scroll", J), u && ne(), he || (I.current = r, fe || (R.current?.(r), te())), () => {
|
|
5228
5228
|
q.removeEventListener("scroll", J);
|
|
5229
5229
|
};
|
|
5230
5230
|
}, [r, u, te, J, ne]), /* @__PURE__ */ b.jsx(
|
|
@@ -5238,11 +5238,11 @@ const Va = /* @__PURE__ */ _e(({
|
|
|
5238
5238
|
onPointerDown: ae,
|
|
5239
5239
|
onPointerLeave: V,
|
|
5240
5240
|
onPointerUp: V,
|
|
5241
|
-
children: /* @__PURE__ */ b.jsx("div", { ref:
|
|
5241
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: j, style: ce(Z.viewport), children: /* @__PURE__ */ b.jsx(fn, { in: a, children: ({ style: q, ...fe }, he) => /* @__PURE__ */ b.jsx("div", { style: ce(Z.itemContainer), children: /* @__PURE__ */ b.jsx(
|
|
5242
5242
|
x,
|
|
5243
5243
|
{
|
|
5244
5244
|
"aria-hidden": he !== r,
|
|
5245
|
-
exposure: u ?
|
|
5245
|
+
exposure: u ? M?.[he] : void 0,
|
|
5246
5246
|
style: ce(q, Z.item),
|
|
5247
5247
|
...fe
|
|
5248
5248
|
}
|
|
@@ -5318,70 +5318,81 @@ process.env.NODE_ENV === "development" && (Va.displayName = "Carousel");
|
|
|
5318
5318
|
const Qo = /* @__PURE__ */ _e(({
|
|
5319
5319
|
children: e,
|
|
5320
5320
|
autoFocus: r = !1,
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5321
|
+
inputMode: i,
|
|
5322
|
+
isDisabled: a = !1,
|
|
5323
|
+
isRequired: c = !0,
|
|
5324
|
+
placeholder: u,
|
|
5325
|
+
size: d,
|
|
5326
|
+
style: g,
|
|
5327
|
+
value: v,
|
|
5328
|
+
onChange: x,
|
|
5329
|
+
...O
|
|
5330
|
+
}, T) => {
|
|
5331
|
+
const I = Xa(v, d), j = we([]), A = Ya(), S = ze(e, {
|
|
5331
5332
|
field: an
|
|
5332
|
-
}),
|
|
5333
|
-
|
|
5334
|
-
},
|
|
5335
|
-
const
|
|
5336
|
-
R
|
|
5337
|
-
},
|
|
5338
|
-
switch (
|
|
5333
|
+
}), k = (R) => {
|
|
5334
|
+
R < 0 ? j.current[0]?.focus() : R >= d ? j.current[d - 1]?.focus() : j.current[R]?.focus();
|
|
5335
|
+
}, ee = (R) => (w) => {
|
|
5336
|
+
const P = I[R], E = w.target.value, M = Ga(E, P).slice(-1), B = I.slice();
|
|
5337
|
+
B[R] = M, x(B), k(M ? R + 1 : R - 1);
|
|
5338
|
+
}, K = (R) => (w) => {
|
|
5339
|
+
switch (w.key) {
|
|
5339
5340
|
case "Backspace": {
|
|
5340
|
-
if (
|
|
5341
|
-
const
|
|
5342
|
-
|
|
5341
|
+
if (w.preventDefault(), I[R]) {
|
|
5342
|
+
const P = I.slice();
|
|
5343
|
+
P[R] = "", x(P), k(R - 1);
|
|
5343
5344
|
} else
|
|
5344
|
-
|
|
5345
|
+
k(R - 1);
|
|
5345
5346
|
break;
|
|
5346
5347
|
}
|
|
5347
5348
|
case "ArrowLeft": {
|
|
5348
|
-
|
|
5349
|
+
w.preventDefault(), k(R - 1);
|
|
5349
5350
|
break;
|
|
5350
5351
|
}
|
|
5351
5352
|
case "ArrowRight": {
|
|
5352
|
-
|
|
5353
|
+
w.preventDefault(), k(R + 1);
|
|
5353
5354
|
break;
|
|
5354
5355
|
}
|
|
5355
5356
|
}
|
|
5356
|
-
},
|
|
5357
|
-
|
|
5358
|
-
const
|
|
5359
|
-
|
|
5360
|
-
const
|
|
5361
|
-
|
|
5357
|
+
}, X = (R) => (w) => {
|
|
5358
|
+
w.preventDefault();
|
|
5359
|
+
const P = w.clipboardData.getData("text").trim(), E = Ua(I.slice(), P.split("").slice(0, d), R);
|
|
5360
|
+
x(E);
|
|
5361
|
+
const M = Math.min(R + P.length, d - 1);
|
|
5362
|
+
k(M);
|
|
5362
5363
|
};
|
|
5363
5364
|
return Ee(() => {
|
|
5364
5365
|
if (!r) return;
|
|
5365
|
-
const
|
|
5366
|
-
|
|
5367
|
-
}, [r]), /* @__PURE__ */ b.jsx("div", { ...
|
|
5366
|
+
const R = I.findIndex((w) => w === "");
|
|
5367
|
+
R !== -1 && k(R);
|
|
5368
|
+
}, [r]), /* @__PURE__ */ b.jsx("div", { ...O, ref: T, style: ce(g, A.root), children: /* @__PURE__ */ b.jsx(nn, { count: d, children: (R) => /* @__PURE__ */ b.jsx(
|
|
5368
5369
|
ge,
|
|
5369
5370
|
{
|
|
5370
|
-
ref: (
|
|
5371
|
-
"aria-disabled":
|
|
5372
|
-
"aria-required":
|
|
5373
|
-
disabled:
|
|
5374
|
-
element:
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5371
|
+
ref: (w) => j.current[R] = w,
|
|
5372
|
+
"aria-disabled": a,
|
|
5373
|
+
"aria-required": c,
|
|
5374
|
+
disabled: a,
|
|
5375
|
+
element: S.field ?? /* @__PURE__ */ b.jsx(an, {}),
|
|
5376
|
+
inputMode: i,
|
|
5377
|
+
placeholder: u,
|
|
5378
|
+
required: c,
|
|
5379
|
+
style: ce(A.field),
|
|
5380
|
+
value: I[R],
|
|
5381
|
+
onChange: ee(R),
|
|
5382
|
+
onKeyDown: K(R),
|
|
5383
|
+
onPaste: X(R)
|
|
5382
5384
|
}
|
|
5383
5385
|
) }) });
|
|
5384
|
-
}), an = ({ ...e }) => /* @__PURE__ */ b.jsx(
|
|
5386
|
+
}), an = ({ ...e }) => /* @__PURE__ */ b.jsx(
|
|
5387
|
+
"input",
|
|
5388
|
+
{
|
|
5389
|
+
...e,
|
|
5390
|
+
autoCapitalize: "off",
|
|
5391
|
+
autoComplete: "off",
|
|
5392
|
+
autoCorrect: "off",
|
|
5393
|
+
type: "text"
|
|
5394
|
+
}
|
|
5395
|
+
);
|
|
5385
5396
|
function Ya() {
|
|
5386
5397
|
return {
|
|
5387
5398
|
root: {
|
|
@@ -5435,9 +5446,9 @@ const ei = /* @__PURE__ */ _e(({
|
|
|
5435
5446
|
onChange: O,
|
|
5436
5447
|
...T
|
|
5437
5448
|
}, I) => {
|
|
5438
|
-
const
|
|
5439
|
-
const
|
|
5440
|
-
O?.(
|
|
5449
|
+
const j = ve((A) => {
|
|
5450
|
+
const S = (g?.(A) ?? A) || r;
|
|
5451
|
+
O?.(S);
|
|
5441
5452
|
}, [O, g]);
|
|
5442
5453
|
return /* @__PURE__ */ b.jsx(
|
|
5443
5454
|
"input",
|
|
@@ -5454,7 +5465,7 @@ const ei = /* @__PURE__ */ _e(({
|
|
|
5454
5465
|
type: u,
|
|
5455
5466
|
value: d || r,
|
|
5456
5467
|
onBlur: ({ target: A }) => x?.(A.value),
|
|
5457
|
-
onChange: ({ target: A }) =>
|
|
5468
|
+
onChange: ({ target: A }) => j(A.value),
|
|
5458
5469
|
onFocus: ({ target: A }) => v?.(A.value)
|
|
5459
5470
|
}
|
|
5460
5471
|
);
|
|
@@ -5471,25 +5482,25 @@ const qa = /* @__PURE__ */ _e(({
|
|
|
5471
5482
|
...g
|
|
5472
5483
|
}, v) => {
|
|
5473
5484
|
const x = () => {
|
|
5474
|
-
d?.(
|
|
5485
|
+
d?.(S(u - 1));
|
|
5475
5486
|
}, O = () => {
|
|
5476
|
-
d?.(
|
|
5487
|
+
d?.(S(u + 1));
|
|
5477
5488
|
}, T = (P) => {
|
|
5478
5489
|
ee(P);
|
|
5479
5490
|
}, I = (P) => {
|
|
5480
5491
|
const E = A(P);
|
|
5481
|
-
E !== u ? d?.(E) : ee(
|
|
5482
|
-
},
|
|
5492
|
+
E !== u ? d?.(E) : ee(j(E));
|
|
5493
|
+
}, j = (P) => P.toLocaleString(), A = (P) => {
|
|
5483
5494
|
const E = parseInt(P, 10);
|
|
5484
|
-
return E.toString() !== P.replace(/^0+/, "") ? u :
|
|
5485
|
-
},
|
|
5495
|
+
return E.toString() !== P.replace(/^0+/, "") ? u : S(E);
|
|
5496
|
+
}, S = (P) => {
|
|
5486
5497
|
let E = P;
|
|
5487
5498
|
return isNaN(c) || (E = Math.max(c, E)), isNaN(a) || (E = Math.min(a, E)), E;
|
|
5488
|
-
}, [
|
|
5499
|
+
}, [k, ee] = Oe(j(u)), K = _a(u), X = !isNaN(a) && u + 1 > a, R = !isNaN(c) && u - 1 < c;
|
|
5489
5500
|
Ee(() => {
|
|
5490
5501
|
if (K === void 0 || K === u) return;
|
|
5491
|
-
const P =
|
|
5492
|
-
ee(
|
|
5502
|
+
const P = S(u);
|
|
5503
|
+
ee(j(P));
|
|
5493
5504
|
}, [u, c, a]);
|
|
5494
5505
|
const w = ze(e, {
|
|
5495
5506
|
textField: Xn,
|
|
@@ -5500,7 +5511,7 @@ const qa = /* @__PURE__ */ _e(({
|
|
|
5500
5511
|
/* @__PURE__ */ b.jsx(
|
|
5501
5512
|
ge,
|
|
5502
5513
|
{
|
|
5503
|
-
className: se({ disabled:
|
|
5514
|
+
className: se({ disabled: R }),
|
|
5504
5515
|
element: w.subscribeButton ?? /* @__PURE__ */ b.jsx(Gn, {}),
|
|
5505
5516
|
style: ce(Gt.subtract),
|
|
5506
5517
|
onClick: () => x()
|
|
@@ -5512,7 +5523,7 @@ const qa = /* @__PURE__ */ _e(({
|
|
|
5512
5523
|
element: w.textField ?? /* @__PURE__ */ b.jsx(Xn, {}),
|
|
5513
5524
|
isDisabled: !i,
|
|
5514
5525
|
style: ce(Gt.textField),
|
|
5515
|
-
value:
|
|
5526
|
+
value: k,
|
|
5516
5527
|
onChange: T,
|
|
5517
5528
|
onUnfocus: I
|
|
5518
5529
|
}
|
|
@@ -5520,7 +5531,7 @@ const qa = /* @__PURE__ */ _e(({
|
|
|
5520
5531
|
/* @__PURE__ */ b.jsx(
|
|
5521
5532
|
ge,
|
|
5522
5533
|
{
|
|
5523
|
-
className: se({ disabled:
|
|
5534
|
+
className: se({ disabled: X }),
|
|
5524
5535
|
element: w.addButton ?? /* @__PURE__ */ b.jsx(Un, {}),
|
|
5525
5536
|
style: ce(Gt.add),
|
|
5526
5537
|
onClick: () => O()
|
|
@@ -5559,9 +5570,9 @@ const Wa = /* @__PURE__ */ _e(({
|
|
|
5559
5570
|
const O = u * 2, T = Math.max(0, Math.min(360, a)), I = ze(e, {
|
|
5560
5571
|
track: qn,
|
|
5561
5572
|
knob: Wn
|
|
5562
|
-
}),
|
|
5563
|
-
return /* @__PURE__ */ b.jsxs("div", { ...v, ref: x, style: ce(r,
|
|
5564
|
-
/* @__PURE__ */ b.jsx("div", { style:
|
|
5573
|
+
}), j = Ja({ angle: i, diameter: O });
|
|
5574
|
+
return /* @__PURE__ */ b.jsxs("div", { ...v, ref: x, style: ce(r, j.root), children: [
|
|
5575
|
+
/* @__PURE__ */ b.jsx("div", { style: j.trackContainer, children: /* @__PURE__ */ b.jsx("svg", { height: O, style: j.svgContainer, viewBox: `0 0 ${O} ${O}`, width: O, children: /* @__PURE__ */ b.jsx(
|
|
5565
5576
|
ge,
|
|
5566
5577
|
{
|
|
5567
5578
|
cx: u,
|
|
@@ -5573,7 +5584,7 @@ const Wa = /* @__PURE__ */ _e(({
|
|
|
5573
5584
|
strokeWidth: g
|
|
5574
5585
|
}
|
|
5575
5586
|
) }) }),
|
|
5576
|
-
/* @__PURE__ */ b.jsx("div", { style: ce(
|
|
5587
|
+
/* @__PURE__ */ b.jsx("div", { style: ce(j.knobContainer), children: /* @__PURE__ */ b.jsx("svg", { style: j.svgContainer, viewBox: `0 0 ${O} ${O}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ b.jsx(
|
|
5577
5588
|
ge,
|
|
5578
5589
|
{
|
|
5579
5590
|
d: Ka(u, u, u - c / 2 - (g - c) / 2, -T / 2, T / 2),
|
|
@@ -5656,50 +5667,50 @@ const Za = /* @__PURE__ */ _e(({
|
|
|
5656
5667
|
itemLength: O,
|
|
5657
5668
|
itemPadding: T = 0,
|
|
5658
5669
|
items: I = [],
|
|
5659
|
-
maxVisibleItems:
|
|
5670
|
+
maxVisibleItems: j = -1,
|
|
5660
5671
|
numSegments: A = 1,
|
|
5661
|
-
orientation:
|
|
5662
|
-
selection:
|
|
5672
|
+
orientation: S = "vertical",
|
|
5673
|
+
selection: k = [],
|
|
5663
5674
|
selectionMode: ee = "single",
|
|
5664
5675
|
onActivateAt: K,
|
|
5665
|
-
onCollapse:
|
|
5666
|
-
onDeselectAt:
|
|
5676
|
+
onCollapse: X,
|
|
5677
|
+
onDeselectAt: R,
|
|
5667
5678
|
onExpand: w,
|
|
5668
5679
|
onSelectAt: P,
|
|
5669
5680
|
onSelectionChange: E,
|
|
5670
|
-
onToggleCustomEvent:
|
|
5671
|
-
ItemComponent:
|
|
5681
|
+
onToggleCustomEvent: M,
|
|
5682
|
+
ItemComponent: B,
|
|
5672
5683
|
ToggleComponent: W,
|
|
5673
5684
|
...oe
|
|
5674
5685
|
}, Z) => {
|
|
5675
|
-
const U = we(null), H = nt(U), F = I.length, te = nc(I,
|
|
5686
|
+
const U = we(null), H = nt(U), F = I.length, te = nc(I, j, A, v), ne = O ?? (S === "vertical" ? H.height : H.width), ae = ne * te + T * (te - 1), V = ec(k, I), [z, C] = Oe(u ?? !0), G = rc({ isCollapsed: z, collectionPadding: c, isInverted: d, maxVisibleItems: j, menuLength: ae, numItems: F, orientation: S }), J = ze(e, {
|
|
5676
5687
|
collapseIcon: ti,
|
|
5677
5688
|
collection: Kn,
|
|
5678
5689
|
expandIcon: ni,
|
|
5679
5690
|
item: Jn,
|
|
5680
5691
|
toggle: Zn
|
|
5681
5692
|
}), q = () => {
|
|
5682
|
-
z && (
|
|
5693
|
+
z && (C(!1), w?.());
|
|
5683
5694
|
}, fe = () => {
|
|
5684
|
-
z || (
|
|
5695
|
+
z || (C(!0), X?.());
|
|
5685
5696
|
}, he = () => {
|
|
5686
5697
|
z ? q() : fe();
|
|
5687
5698
|
}, ue = (Ne) => {
|
|
5688
5699
|
P?.(Ne), ee === "single" && a && fe();
|
|
5689
5700
|
};
|
|
5690
5701
|
return Ee(() => {
|
|
5691
|
-
u !== void 0 &&
|
|
5702
|
+
u !== void 0 && C(u);
|
|
5692
5703
|
}, [u]), Ee(() => {
|
|
5693
5704
|
const Ne = (Q) => {
|
|
5694
5705
|
if (z || !(Q.target instanceof Node)) return;
|
|
5695
|
-
let He = !0,
|
|
5696
|
-
for (;
|
|
5697
|
-
if (
|
|
5706
|
+
let He = !0, Ce = Q.target;
|
|
5707
|
+
for (; Ce; ) {
|
|
5708
|
+
if (Ce === U.current) {
|
|
5698
5709
|
He = !1;
|
|
5699
5710
|
break;
|
|
5700
5711
|
}
|
|
5701
|
-
if (!
|
|
5702
|
-
|
|
5712
|
+
if (!Ce.parentNode) break;
|
|
5713
|
+
Ce = Ce.parentNode;
|
|
5703
5714
|
}
|
|
5704
5715
|
He && fe();
|
|
5705
5716
|
};
|
|
@@ -5722,7 +5733,7 @@ const Za = /* @__PURE__ */ _e(({
|
|
|
5722
5733
|
className: se({ collapsed: z, expanded: !z }),
|
|
5723
5734
|
style: ce(G.toggle),
|
|
5724
5735
|
onClick: he,
|
|
5725
|
-
onCustomEvent: (Ne, Q) =>
|
|
5736
|
+
onCustomEvent: (Ne, Q) => M?.(Ne, Q)
|
|
5726
5737
|
}
|
|
5727
5738
|
) : /* @__PURE__ */ b.jsxs(
|
|
5728
5739
|
ge,
|
|
@@ -5751,27 +5762,27 @@ const Za = /* @__PURE__ */ _e(({
|
|
|
5751
5762
|
{
|
|
5752
5763
|
element: J.collection ?? /* @__PURE__ */ b.jsx(Kn, {}),
|
|
5753
5764
|
isSelectionTogglable: x,
|
|
5754
|
-
ItemComponent:
|
|
5765
|
+
ItemComponent: B,
|
|
5755
5766
|
itemLength: ne,
|
|
5756
5767
|
itemPadding: T,
|
|
5757
5768
|
items: I,
|
|
5758
5769
|
layout: v,
|
|
5759
5770
|
numSegments: A,
|
|
5760
|
-
orientation:
|
|
5771
|
+
orientation: S,
|
|
5761
5772
|
selection: V,
|
|
5762
5773
|
selectionMode: ee,
|
|
5763
5774
|
style: ce(G.collection),
|
|
5764
5775
|
onActivateAt: K,
|
|
5765
|
-
onDeselectAt:
|
|
5776
|
+
onDeselectAt: R,
|
|
5766
5777
|
onSelectAt: ue,
|
|
5767
5778
|
onSelectionChange: E,
|
|
5768
|
-
children: !
|
|
5779
|
+
children: !B && (J.item ?? /* @__PURE__ */ b.jsx(Jn, {}))
|
|
5769
5780
|
}
|
|
5770
5781
|
)
|
|
5771
5782
|
] })
|
|
5772
5783
|
}
|
|
5773
5784
|
);
|
|
5774
|
-
}), Kn = vr, Jn =
|
|
5785
|
+
}), Kn = vr, Jn = Ct, Zn = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("button", { ...r, children: e }), ti = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, "aria-hidden": !0, children: e }), ni = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("figure", { ...r, "aria-hidden": !0, children: e });
|
|
5775
5786
|
function Qa(e, r) {
|
|
5776
5787
|
return !!(isNaN(e) || e >= r.length || e < 0);
|
|
5777
5788
|
}
|
|
@@ -6435,7 +6446,7 @@ class Ic {
|
|
|
6435
6446
|
inr: { regex: /&(inr|#8377);/g, val: "₹" },
|
|
6436
6447
|
num_dec: { regex: /&#([0-9]{1,7});/g, val: (i, a) => String.fromCodePoint(Number.parseInt(a, 10)) },
|
|
6437
6448
|
num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (i, a) => String.fromCodePoint(Number.parseInt(a, 16)) }
|
|
6438
|
-
}, this.addExternalEntities = kc, this.parseXml = Mc, this.parseTextData =
|
|
6449
|
+
}, this.addExternalEntities = kc, this.parseXml = Mc, this.parseTextData = Cc, this.resolveNameSpace = jc, this.buildAttributesMap = Ac, this.isItStopNode = Lc, this.replaceEntitiesValue = zc, this.readStopNodeData = Dc, this.saveTextToParentTag = Fc, this.addChild = Rc, this.ignoreAttributesFn = ii(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
6439
6450
|
this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
|
|
6440
6451
|
for (let i = 0; i < this.options.stopNodes.length; i++) {
|
|
6441
6452
|
const a = this.options.stopNodes[i];
|
|
@@ -6454,14 +6465,14 @@ function kc(e) {
|
|
|
6454
6465
|
};
|
|
6455
6466
|
}
|
|
6456
6467
|
}
|
|
6457
|
-
function
|
|
6468
|
+
function Cc(e, r, i, a, c, u, d) {
|
|
6458
6469
|
if (e !== void 0 && (this.options.trimValues && !a && (e = e.trim()), e.length > 0)) {
|
|
6459
6470
|
d || (e = this.replaceEntitiesValue(e));
|
|
6460
6471
|
const g = this.options.tagValueProcessor(r, e, i, c, u);
|
|
6461
6472
|
return g == null ? e : typeof g != typeof e || g !== e ? g : this.options.trimValues ? er(e, this.options.parseTagValue, this.options.numberParseOptions) : e.trim() === e ? er(e, this.options.parseTagValue, this.options.numberParseOptions) : e;
|
|
6462
6473
|
}
|
|
6463
6474
|
}
|
|
6464
|
-
function
|
|
6475
|
+
function jc(e) {
|
|
6465
6476
|
if (this.options.removeNSPrefix) {
|
|
6466
6477
|
const r = e.split(":"), i = e.charAt(0) === "/" ? "/" : "";
|
|
6467
6478
|
if (r[0] === "xmlns")
|
|
@@ -6546,34 +6557,34 @@ const Mc = function(e) {
|
|
|
6546
6557
|
} else {
|
|
6547
6558
|
let v = Qn(e, d, this.options.removeNSPrefix), x = v.tagName;
|
|
6548
6559
|
const O = v.rawTagName;
|
|
6549
|
-
let T = v.tagExp, I = v.attrExpPresent,
|
|
6560
|
+
let T = v.tagExp, I = v.attrExpPresent, j = v.closeIndex;
|
|
6550
6561
|
this.options.transformTagName && (x = this.options.transformTagName(x)), i && a && i.tagname !== "!xml" && (a = this.saveTextToParentTag(a, i, c, !1));
|
|
6551
6562
|
const A = i;
|
|
6552
6563
|
A && this.options.unpairedTags.indexOf(A.tagname) !== -1 && (i = this.tagsNodeStack.pop(), c = c.substring(0, c.lastIndexOf("."))), x !== r.tagname && (c += c ? "." + x : x);
|
|
6553
|
-
const
|
|
6564
|
+
const S = d;
|
|
6554
6565
|
if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, c, x)) {
|
|
6555
|
-
let
|
|
6566
|
+
let k = "";
|
|
6556
6567
|
if (T.length > 0 && T.lastIndexOf("/") === T.length - 1)
|
|
6557
6568
|
x[x.length - 1] === "/" ? (x = x.substr(0, x.length - 1), c = c.substr(0, c.length - 1), T = x) : T = T.substr(0, T.length - 1), d = v.closeIndex;
|
|
6558
6569
|
else if (this.options.unpairedTags.indexOf(x) !== -1)
|
|
6559
6570
|
d = v.closeIndex;
|
|
6560
6571
|
else {
|
|
6561
|
-
const K = this.readStopNodeData(e, O,
|
|
6572
|
+
const K = this.readStopNodeData(e, O, j + 1);
|
|
6562
6573
|
if (!K) throw new Error(`Unexpected end of ${O}`);
|
|
6563
|
-
d = K.i,
|
|
6574
|
+
d = K.i, k = K.tagContent;
|
|
6564
6575
|
}
|
|
6565
6576
|
const ee = new ct(x);
|
|
6566
|
-
x !== T && I && (ee[":@"] = this.buildAttributesMap(T, c, x)),
|
|
6577
|
+
x !== T && I && (ee[":@"] = this.buildAttributesMap(T, c, x)), k && (k = this.parseTextData(k, x, c, !0, I, !0, !0)), c = c.substr(0, c.lastIndexOf(".")), ee.add(this.options.textNodeName, k), this.addChild(i, ee, c, S);
|
|
6567
6578
|
} else {
|
|
6568
6579
|
if (T.length > 0 && T.lastIndexOf("/") === T.length - 1) {
|
|
6569
6580
|
x[x.length - 1] === "/" ? (x = x.substr(0, x.length - 1), c = c.substr(0, c.length - 1), T = x) : T = T.substr(0, T.length - 1), this.options.transformTagName && (x = this.options.transformTagName(x));
|
|
6570
|
-
const
|
|
6571
|
-
x !== T && I && (
|
|
6581
|
+
const k = new ct(x);
|
|
6582
|
+
x !== T && I && (k[":@"] = this.buildAttributesMap(T, c, x)), this.addChild(i, k, c, S), c = c.substr(0, c.lastIndexOf("."));
|
|
6572
6583
|
} else {
|
|
6573
|
-
const
|
|
6574
|
-
this.tagsNodeStack.push(i), x !== T && I && (
|
|
6584
|
+
const k = new ct(x);
|
|
6585
|
+
this.tagsNodeStack.push(i), x !== T && I && (k[":@"] = this.buildAttributesMap(T, c, x)), this.addChild(i, k, c, S), i = k;
|
|
6575
6586
|
}
|
|
6576
|
-
a = "", d =
|
|
6587
|
+
a = "", d = j;
|
|
6577
6588
|
}
|
|
6578
6589
|
}
|
|
6579
6590
|
else
|
|
@@ -6818,15 +6829,15 @@ function ai(e, r, i, a) {
|
|
|
6818
6829
|
c += a + `<!--${g[v][0][r.textNodeName]}-->`, u = !0;
|
|
6819
6830
|
continue;
|
|
6820
6831
|
} else if (v[0] === "?") {
|
|
6821
|
-
const A = Eo(g[":@"], r),
|
|
6822
|
-
let
|
|
6823
|
-
|
|
6832
|
+
const A = Eo(g[":@"], r), S = v === "?xml" ? "" : a;
|
|
6833
|
+
let k = g[v][0][r.textNodeName];
|
|
6834
|
+
k = k.length !== 0 ? " " + k : "", c += S + `<${v}${k}${A}?>`, u = !0;
|
|
6824
6835
|
continue;
|
|
6825
6836
|
}
|
|
6826
6837
|
let O = a;
|
|
6827
6838
|
O !== "" && (O += r.indentBy);
|
|
6828
|
-
const T = Eo(g[":@"], r), I = a + `<${v}${T}`,
|
|
6829
|
-
r.unpairedTags.indexOf(v) !== -1 ? r.suppressUnpairedNode ? c += I + ">" : c += I + "/>" : (!
|
|
6839
|
+
const T = Eo(g[":@"], r), I = a + `<${v}${T}`, j = ai(g[v], r, x, O);
|
|
6840
|
+
r.unpairedTags.indexOf(v) !== -1 ? r.suppressUnpairedNode ? c += I + ">" : c += I + "/>" : (!j || j.length === 0) && r.suppressEmptyNode ? c += I + "/>" : j && j.endsWith(">") ? c += I + `>${j}${a}</${v}>` : (c += I + ">", j && a !== "" && (j.includes("/>") || j.includes("</")) ? c += a + r.indentBy + j + a : c += j, c += `</${v}>`), u = !0;
|
|
6830
6841
|
}
|
|
6831
6842
|
return c;
|
|
6832
6843
|
}
|
|
@@ -7014,7 +7025,7 @@ const tl = /* @__PURE__ */ _e(({
|
|
|
7014
7025
|
shouldStripStyles: u = !0,
|
|
7015
7026
|
...d
|
|
7016
7027
|
}, g) => {
|
|
7017
|
-
const x = ["id"].map((A) => `@_${A}`), O = ["class"].map((A) => `@_${A}`), T = ["fill", "stroke", "style"].map((A) => `@_${A}`), I = ["x", "y"].map((A) => `@_${A}`),
|
|
7028
|
+
const x = ["id"].map((A) => `@_${A}`), O = ["class"].map((A) => `@_${A}`), T = ["fill", "stroke", "style"].map((A) => `@_${A}`), I = ["x", "y"].map((A) => `@_${A}`), j = () => {
|
|
7018
7029
|
const A = new Uc({
|
|
7019
7030
|
attributeNamePrefix: "@_",
|
|
7020
7031
|
ignoreAttributes: !1,
|
|
@@ -7022,38 +7033,38 @@ const tl = /* @__PURE__ */ _e(({
|
|
|
7022
7033
|
ignorePiTags: !0,
|
|
7023
7034
|
removeNSPrefix: !0,
|
|
7024
7035
|
trimValues: !0,
|
|
7025
|
-
updateTag: (ee, K,
|
|
7036
|
+
updateTag: (ee, K, X) => {
|
|
7026
7037
|
if (u && ee.toLowerCase() === "style") return !1;
|
|
7027
|
-
const
|
|
7028
|
-
for (const w of
|
|
7029
|
-
ee.toLowerCase() === "svg" && (c && I.includes(w.toLowerCase()) && delete
|
|
7038
|
+
const R = Object.keys(X);
|
|
7039
|
+
for (const w of R)
|
|
7040
|
+
ee.toLowerCase() === "svg" && (c && I.includes(w.toLowerCase()) && delete X[w], e !== "preserve" && (w.toLowerCase() === "@_width" && delete X[w], w.toLowerCase() === "@_height" && delete X[w])), a && x.includes(w.toLowerCase()) && delete X[w], i && O.includes(w.toLowerCase()) && delete X[w], u && T.includes(w.toLowerCase()) && delete X[w];
|
|
7030
7041
|
if (ee.toLowerCase() === "svg")
|
|
7031
7042
|
switch (e) {
|
|
7032
7043
|
case "fill":
|
|
7033
|
-
|
|
7044
|
+
X["@_width"] = "100%", X["@_height"] = "100%";
|
|
7034
7045
|
break;
|
|
7035
7046
|
case "width":
|
|
7036
|
-
|
|
7047
|
+
X["@_width"] = "100%";
|
|
7037
7048
|
break;
|
|
7038
7049
|
case "height":
|
|
7039
|
-
|
|
7050
|
+
X["@_height"] = "100%";
|
|
7040
7051
|
break;
|
|
7041
7052
|
}
|
|
7042
7053
|
return ee;
|
|
7043
7054
|
}
|
|
7044
|
-
}),
|
|
7055
|
+
}), S = new rt({
|
|
7045
7056
|
attributeNamePrefix: "@_",
|
|
7046
7057
|
format: !1,
|
|
7047
7058
|
ignoreAttributes: !1
|
|
7048
|
-
}),
|
|
7049
|
-
return
|
|
7059
|
+
}), k = A.parse(r);
|
|
7060
|
+
return S.build(k);
|
|
7050
7061
|
};
|
|
7051
7062
|
return /* @__PURE__ */ b.jsx(
|
|
7052
7063
|
"figure",
|
|
7053
7064
|
{
|
|
7054
7065
|
...d,
|
|
7055
7066
|
ref: g,
|
|
7056
|
-
dangerouslySetInnerHTML: { __html:
|
|
7067
|
+
dangerouslySetInnerHTML: { __html: j() },
|
|
7057
7068
|
role: "img"
|
|
7058
7069
|
}
|
|
7059
7070
|
);
|
|
@@ -7084,10 +7095,10 @@ const No = "base-", rl = /* @__PURE__ */ _e(({
|
|
|
7084
7095
|
verticalSpacing: g = 0,
|
|
7085
7096
|
...v
|
|
7086
7097
|
}, x) => {
|
|
7087
|
-
const O = we(null), [T, I] = Oe(NaN), [
|
|
7088
|
-
const
|
|
7089
|
-
if (!
|
|
7090
|
-
const W =
|
|
7098
|
+
const O = we(null), [T, I] = Oe(NaN), [j, A] = Oe(NaN), [S, k] = Oe(NaN), [ee, K] = Oe(NaN), X = () => xe.from(O.current)?.width ?? 0, R = () => xe.from(O.current)?.height ?? 0, w = () => {
|
|
7099
|
+
const B = O.current;
|
|
7100
|
+
if (!B) return;
|
|
7101
|
+
const W = B.children, oe = d;
|
|
7091
7102
|
if (oe <= 0) {
|
|
7092
7103
|
console.error("[etudes::MasonryGrid] You must specify a minimum of 1 section(s) (a.k.a. row(s) for horizontal orientation, column(s) for vertical orientation) for a MasonryGrid instance");
|
|
7093
7104
|
return;
|
|
@@ -7106,8 +7117,8 @@ const No = "base-", rl = /* @__PURE__ */ _e(({
|
|
|
7106
7117
|
Z[z] = V;
|
|
7107
7118
|
}
|
|
7108
7119
|
}
|
|
7109
|
-
const U =
|
|
7110
|
-
if (I(U), A(H), isNaN(H) || (
|
|
7120
|
+
const U = X(), H = It(Z, oe);
|
|
7121
|
+
if (I(U), A(H), isNaN(H) || (B.style.height = `${H}px`), c)
|
|
7111
7122
|
for (const F of Array.from(W))
|
|
7112
7123
|
F instanceof HTMLElement && (F.style.left = `calc(${U}px - ${F.style.left} - ${F.getBoundingClientRect().width}px)`);
|
|
7113
7124
|
} else {
|
|
@@ -7124,27 +7135,27 @@ const No = "base-", rl = /* @__PURE__ */ _e(({
|
|
|
7124
7135
|
Z[z] = V;
|
|
7125
7136
|
}
|
|
7126
7137
|
}
|
|
7127
|
-
const U =
|
|
7128
|
-
if (A(U), I(H), isNaN(H) || (
|
|
7138
|
+
const U = R(), H = It(Z, oe);
|
|
7139
|
+
if (A(U), I(H), isNaN(H) || (B.style.width = `${H}px`), c)
|
|
7129
7140
|
for (const F of Array.from(W))
|
|
7130
7141
|
F instanceof HTMLElement && (F.style.top = `calc(${U}px - ${F.style.top} - ${F.getBoundingClientRect().height}px)`);
|
|
7131
7142
|
}
|
|
7132
|
-
}, P = ve((
|
|
7133
|
-
const W = xe.size(xe.from(
|
|
7134
|
-
(T !== oe ||
|
|
7143
|
+
}, P = ve((B) => {
|
|
7144
|
+
const W = xe.size(xe.from(B) ?? xe.zero), oe = X(), Z = R();
|
|
7145
|
+
(T !== oe || j !== Z || W.width !== S || W.height !== ee) && (w(), k(W.width), K(W.height));
|
|
7135
7146
|
}, [e, a, c, d, g, u]);
|
|
7136
7147
|
pr(O, {
|
|
7137
7148
|
onResize: P
|
|
7138
7149
|
}), Ee(() => {
|
|
7139
|
-
const
|
|
7140
|
-
if (
|
|
7141
|
-
const W =
|
|
7150
|
+
const B = sl(O.current?.innerHTML);
|
|
7151
|
+
if (B.length === 0) return w();
|
|
7152
|
+
const W = B.length;
|
|
7142
7153
|
for (let oe = 0; oe < W; oe++) {
|
|
7143
|
-
const Z =
|
|
7154
|
+
const Z = B[oe], U = new Image();
|
|
7144
7155
|
U.src = Z, U.onload = () => w();
|
|
7145
7156
|
}
|
|
7146
7157
|
}, [r]);
|
|
7147
|
-
const E = ol({ orientation: u }),
|
|
7158
|
+
const E = ol({ orientation: u }), M = il({ orientation: u, minHeight: j, minWidth: T });
|
|
7148
7159
|
return /* @__PURE__ */ b.jsx(
|
|
7149
7160
|
"div",
|
|
7150
7161
|
{
|
|
@@ -7152,7 +7163,7 @@ const No = "base-", rl = /* @__PURE__ */ _e(({
|
|
|
7152
7163
|
ref: x,
|
|
7153
7164
|
className: se(i, E.root),
|
|
7154
7165
|
role: "grid",
|
|
7155
|
-
children: /* @__PURE__ */ b.jsx("div", { ref: O, style:
|
|
7166
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: O, style: M.body, children: r })
|
|
7156
7167
|
}
|
|
7157
7168
|
);
|
|
7158
7169
|
});
|
|
@@ -7221,33 +7232,33 @@ const al = /* @__PURE__ */ _e(({
|
|
|
7221
7232
|
range: O,
|
|
7222
7233
|
steps: T = -1,
|
|
7223
7234
|
onChange: I,
|
|
7224
|
-
...
|
|
7235
|
+
...j
|
|
7225
7236
|
}, A) => {
|
|
7226
|
-
const
|
|
7237
|
+
const S = we(null), k = nt(S), ee = we(null), K = we(null), [X, R] = Oe(O ?? [v, g]), w = hl(v, g, T), [P, E] = X.map((G) => at(G, v, g, x, k, d, c, a)), M = E - P, B = ze(e, {
|
|
7227
7238
|
gutter: tr,
|
|
7228
7239
|
highlight: nr,
|
|
7229
7240
|
knob: Zt,
|
|
7230
7241
|
knobContainer: Ln,
|
|
7231
7242
|
label: Jt
|
|
7232
7243
|
}), W = ve((G, J, q) => {
|
|
7233
|
-
const fe = x === "horizontal" ? J : q, he = at(v, v, g, x,
|
|
7234
|
-
return _o(Math.max(he, Math.min(ue, Ne)), v, g, x,
|
|
7235
|
-
}, [d, c, a, v, g, x,
|
|
7236
|
-
const fe = x === "horizontal" ? J : q, he = at(
|
|
7237
|
-
return _o(Math.max(he, Math.min(ue, Ne)), v, g, x,
|
|
7238
|
-
}, [d, c, a, v, g, x,
|
|
7244
|
+
const fe = x === "horizontal" ? J : q, he = at(v, v, g, x, k, d, c, a), ue = at(X[1], v, g, x, k, d, c, a), Ne = at(G, v, g, x, k, d, c, a) + fe;
|
|
7245
|
+
return _o(Math.max(he, Math.min(ue, Ne)), v, g, x, k, d, c, a);
|
|
7246
|
+
}, [d, c, a, v, g, x, X[1], xe.toString(k)]), oe = ve((G, J, q) => {
|
|
7247
|
+
const fe = x === "horizontal" ? J : q, he = at(X[0], v, g, x, k, d, c, a), ue = at(g, v, g, x, k, d, c, a), Ne = at(G, v, g, x, k, d, c, a) + fe;
|
|
7248
|
+
return _o(Math.max(he, Math.min(ue, Ne)), v, g, x, k, d, c, a);
|
|
7249
|
+
}, [d, c, a, v, g, x, X[0], xe.toString(k)]), { isDragging: Z, isReleasing: U, value: H, setValue: F } = kt(ee, {
|
|
7239
7250
|
initialValue: O?.[0] ?? v,
|
|
7240
7251
|
transform: W
|
|
7241
7252
|
}), { isDragging: te, isReleasing: ne, value: ae, setValue: V } = kt(K, {
|
|
7242
7253
|
initialValue: O?.[1] ?? g,
|
|
7243
7254
|
transform: oe
|
|
7244
|
-
}), z = cl({ isDraggingEndKnob: te, isDraggingStartKnob: Z, isReleasingEndKnob: ne, isReleasingStartKnob: U }),
|
|
7255
|
+
}), z = cl({ isDraggingEndKnob: te, isDraggingStartKnob: Z, isReleasingEndKnob: ne, isReleasingStartKnob: U }), C = ll({ orientation: x, highlightLength: M, start: P, knobPadding: u, knobWidth: d, knobHeight: c });
|
|
7245
7256
|
return Ee(() => {
|
|
7246
|
-
|
|
7257
|
+
R([H, ae]);
|
|
7247
7258
|
}, [H, ae]), Ee(() => {
|
|
7248
|
-
I?.(
|
|
7249
|
-
}, [
|
|
7250
|
-
Z || te || ne || We(O,
|
|
7259
|
+
I?.(X);
|
|
7260
|
+
}, [X[0], X[1]]), Ee(() => {
|
|
7261
|
+
Z || te || ne || We(O, X) || (R(O ?? [v, g]), F(O?.[0] ?? v), V(O?.[1] ?? g));
|
|
7251
7262
|
}, [O?.[0], O?.[1], Z, te, ne]), Ee(() => {
|
|
7252
7263
|
w && F(Oo(H, w));
|
|
7253
7264
|
}, [U, Ke(w)]), Ee(() => {
|
|
@@ -7255,34 +7266,34 @@ const al = /* @__PURE__ */ _e(({
|
|
|
7255
7266
|
}, [ne, Ke(w)]), /* @__PURE__ */ b.jsx(
|
|
7256
7267
|
"div",
|
|
7257
7268
|
{
|
|
7258
|
-
...
|
|
7269
|
+
...j,
|
|
7259
7270
|
ref: A,
|
|
7260
7271
|
"aria-valuemax": g,
|
|
7261
7272
|
"aria-valuemin": v,
|
|
7262
7273
|
className: se(r, x),
|
|
7263
7274
|
role: "slider",
|
|
7264
|
-
children: /* @__PURE__ */ b.jsxs("div", { ref:
|
|
7265
|
-
/* @__PURE__ */ b.jsx(ge, { element:
|
|
7266
|
-
/* @__PURE__ */ b.jsx(ge, { element:
|
|
7275
|
+
children: /* @__PURE__ */ b.jsxs("div", { ref: S, style: C.body, children: [
|
|
7276
|
+
/* @__PURE__ */ b.jsx(ge, { element: B.gutter ?? /* @__PURE__ */ b.jsx(tr, {}), style: ce(C.gutter) }),
|
|
7277
|
+
/* @__PURE__ */ b.jsx(ge, { element: B.highlight ?? /* @__PURE__ */ b.jsx(nr, {}), style: ce(C.highlight) }),
|
|
7267
7278
|
/* @__PURE__ */ b.jsx(
|
|
7268
7279
|
ge,
|
|
7269
7280
|
{
|
|
7270
7281
|
ref: ee,
|
|
7271
7282
|
className: z.startKnobContainer,
|
|
7272
7283
|
disabled: We([H, ae], [v, v]),
|
|
7273
|
-
element:
|
|
7274
|
-
style: ce(
|
|
7284
|
+
element: B.knobContainer ?? /* @__PURE__ */ b.jsx(Ln, {}),
|
|
7285
|
+
style: ce(C.knobContainer, {
|
|
7275
7286
|
pointerEvents: We([H, ae], [v, v]) ? "none" : "auto"
|
|
7276
7287
|
}, x === "horizontal" ? {
|
|
7277
7288
|
left: `${P}px`,
|
|
7278
|
-
top: `${
|
|
7289
|
+
top: `${k.height * 0.5}px`
|
|
7279
7290
|
} : {
|
|
7280
|
-
left: `${
|
|
7291
|
+
left: `${k.width * 0.5}px`,
|
|
7281
7292
|
top: `${P}px`
|
|
7282
7293
|
}),
|
|
7283
|
-
children: /* @__PURE__ */ b.jsxs(ge, { className: z.startKnob, element:
|
|
7284
|
-
/* @__PURE__ */ b.jsx("div", { style:
|
|
7285
|
-
|
|
7294
|
+
children: /* @__PURE__ */ b.jsxs(ge, { className: z.startKnob, element: B.knob ?? /* @__PURE__ */ b.jsx(Zt, {}), style: ce(C.knob), children: [
|
|
7295
|
+
/* @__PURE__ */ b.jsx("div", { style: C.knobHitBox }),
|
|
7296
|
+
B.label && /* @__PURE__ */ b.jsx(ge, { className: z.startLabel, element: B.label ?? /* @__PURE__ */ b.jsx(Jt, {}), style: ce(C.label), children: Number(H.toFixed(i)).toLocaleString() })
|
|
7286
7297
|
] })
|
|
7287
7298
|
}
|
|
7288
7299
|
),
|
|
@@ -7292,19 +7303,19 @@ const al = /* @__PURE__ */ _e(({
|
|
|
7292
7303
|
ref: K,
|
|
7293
7304
|
className: z.endKnobContainer,
|
|
7294
7305
|
disabled: We([H, ae], [g, g]),
|
|
7295
|
-
element:
|
|
7296
|
-
style: ce(
|
|
7306
|
+
element: B.knobContainer ?? /* @__PURE__ */ b.jsx(Ln, {}),
|
|
7307
|
+
style: ce(C.knobContainer, {
|
|
7297
7308
|
pointerEvents: We([H, ae], [g, g]) ? "none" : "auto"
|
|
7298
7309
|
}, x === "horizontal" ? {
|
|
7299
7310
|
left: `${E}px`,
|
|
7300
|
-
top: `${
|
|
7311
|
+
top: `${k.height * 0.5}px`
|
|
7301
7312
|
} : {
|
|
7302
|
-
left: `${
|
|
7313
|
+
left: `${k.width * 0.5}px`,
|
|
7303
7314
|
top: `${E}px`
|
|
7304
7315
|
}),
|
|
7305
|
-
children: /* @__PURE__ */ b.jsxs(ge, { className: z.endKnob, element:
|
|
7306
|
-
/* @__PURE__ */ b.jsx("div", { style:
|
|
7307
|
-
|
|
7316
|
+
children: /* @__PURE__ */ b.jsxs(ge, { className: z.endKnob, element: B.knob ?? /* @__PURE__ */ b.jsx(Zt, {}), style: ce(C.knob), children: [
|
|
7317
|
+
/* @__PURE__ */ b.jsx("div", { style: C.knobHitBox }),
|
|
7318
|
+
B.label && /* @__PURE__ */ b.jsx(ge, { className: z.endLabel, element: B.label ?? /* @__PURE__ */ b.jsx(Jt, {}), style: ce(C.label), children: Number(ae.toFixed(i)).toLocaleString() })
|
|
7308
7319
|
] })
|
|
7309
7320
|
}
|
|
7310
7321
|
)
|
|
@@ -7529,20 +7540,20 @@ const vl = /* @__PURE__ */ _e(({
|
|
|
7529
7540
|
position: O = 0,
|
|
7530
7541
|
trackPadding: T = 0,
|
|
7531
7542
|
labelProvider: I,
|
|
7532
|
-
onDragEnd:
|
|
7543
|
+
onDragEnd: j,
|
|
7533
7544
|
onDragStart: A,
|
|
7534
|
-
onChange:
|
|
7535
|
-
...
|
|
7545
|
+
onChange: S,
|
|
7546
|
+
...k
|
|
7536
7547
|
}, ee) => {
|
|
7537
|
-
const K = we(null),
|
|
7548
|
+
const K = we(null), X = we(null), R = ve((te, ne, ae) => {
|
|
7538
7549
|
const V = xe.from(K.current) ?? xe.zero, z = a ? 1 - te : te;
|
|
7539
7550
|
switch (x) {
|
|
7540
7551
|
case "horizontal": {
|
|
7541
|
-
const
|
|
7552
|
+
const C = i ? V.width - g : V.width, G = z * C + ne, J = Math.max(0, Math.min(1, G / C));
|
|
7542
7553
|
return a ? 1 - J : J;
|
|
7543
7554
|
}
|
|
7544
7555
|
case "vertical": {
|
|
7545
|
-
const
|
|
7556
|
+
const C = i ? V.height - u : V.height, G = z * C + ae, J = Math.max(0, Math.min(1, G / C));
|
|
7546
7557
|
return a ? 1 - J : J;
|
|
7547
7558
|
}
|
|
7548
7559
|
default:
|
|
@@ -7554,29 +7565,29 @@ const vl = /* @__PURE__ */ _e(({
|
|
|
7554
7565
|
switch (x) {
|
|
7555
7566
|
case "horizontal": {
|
|
7556
7567
|
const V = (te.clientX + ae.left - ne.left) / ne.width, z = a ? 1 - V : V;
|
|
7557
|
-
|
|
7568
|
+
B(z);
|
|
7558
7569
|
break;
|
|
7559
7570
|
}
|
|
7560
7571
|
case "vertical": {
|
|
7561
7572
|
const V = (te.clientY + ae.top - ne.top) / ne.height, z = a ? 1 - V : V;
|
|
7562
|
-
|
|
7573
|
+
B(z);
|
|
7563
7574
|
break;
|
|
7564
7575
|
}
|
|
7565
7576
|
default:
|
|
7566
7577
|
console.error(`[etudes::Slider] Invalid orientation: ${x}`);
|
|
7567
7578
|
}
|
|
7568
|
-
}, [K.current, a, c, x]), { isDragging: P, isReleasing: E, value:
|
|
7579
|
+
}, [K.current, a, c, x]), { isDragging: P, isReleasing: E, value: M, setValue: B } = kt(X, {
|
|
7569
7580
|
initialValue: O,
|
|
7570
|
-
transform:
|
|
7581
|
+
transform: R,
|
|
7571
7582
|
onDragStart: A,
|
|
7572
|
-
onDragEnd:
|
|
7573
|
-
}), W = a ? 1 -
|
|
7583
|
+
onDragEnd: j
|
|
7584
|
+
}), W = a ? 1 - M : M, U = ml({ orientation: x, isAtEnd: a ? M === 0 : M === 1, isAtStart: a ? M === 1 : M === 0, isDragging: P, isReleasing: E }), H = yl({ orientation: x, isClipped: i, naturalPosition: W, knobPadding: d, knobHeight: u, knobWidth: g, isTrackInteractive: c });
|
|
7574
7585
|
Ee(() => {
|
|
7575
|
-
P || O ===
|
|
7586
|
+
P || O === M || B(O);
|
|
7576
7587
|
}, [O]), Ee(() => {
|
|
7577
|
-
P && v ||
|
|
7578
|
-
}, [
|
|
7579
|
-
P || !v ||
|
|
7588
|
+
P && v || S?.(M, P);
|
|
7589
|
+
}, [M]), Ee(() => {
|
|
7590
|
+
P || !v || S?.(M, !0);
|
|
7580
7591
|
}, [P]);
|
|
7581
7592
|
const F = ze(e, {
|
|
7582
7593
|
knob: or,
|
|
@@ -7587,10 +7598,10 @@ const vl = /* @__PURE__ */ _e(({
|
|
|
7587
7598
|
return /* @__PURE__ */ b.jsx(
|
|
7588
7599
|
"div",
|
|
7589
7600
|
{
|
|
7590
|
-
...
|
|
7601
|
+
...k,
|
|
7591
7602
|
ref: ee,
|
|
7592
7603
|
"aria-orientation": x,
|
|
7593
|
-
"aria-valuenow":
|
|
7604
|
+
"aria-valuenow": M,
|
|
7594
7605
|
className: se(r, U.root),
|
|
7595
7606
|
role: "slider",
|
|
7596
7607
|
children: /* @__PURE__ */ b.jsxs("div", { ref: K, style: H.body, children: [
|
|
@@ -7629,13 +7640,13 @@ const vl = /* @__PURE__ */ _e(({
|
|
|
7629
7640
|
/* @__PURE__ */ b.jsx(
|
|
7630
7641
|
ge,
|
|
7631
7642
|
{
|
|
7632
|
-
ref:
|
|
7643
|
+
ref: X,
|
|
7633
7644
|
className: se(U.knobContainer),
|
|
7634
7645
|
element: F.knobContainer ?? /* @__PURE__ */ b.jsx(ir, {}),
|
|
7635
7646
|
style: H.knobContainer,
|
|
7636
7647
|
children: /* @__PURE__ */ b.jsxs(ge, { className: se(U.knob), element: F.knob ?? /* @__PURE__ */ b.jsx(or, {}), style: ce(H.knob), children: [
|
|
7637
7648
|
/* @__PURE__ */ b.jsx("div", { style: H.knobHitBox }),
|
|
7638
|
-
I && /* @__PURE__ */ b.jsx(ge, { className: se(U.label), element: F.label ?? /* @__PURE__ */ b.jsx(sr, {}), style: ce(H.label), children: I(
|
|
7649
|
+
I && /* @__PURE__ */ b.jsx(ge, { className: se(U.label), element: F.label ?? /* @__PURE__ */ b.jsx(sr, {}), style: ce(H.label), children: I(M) })
|
|
7639
7650
|
] })
|
|
7640
7651
|
}
|
|
7641
7652
|
)
|
|
@@ -7757,15 +7768,15 @@ const xl = /* @__PURE__ */ _e(({
|
|
|
7757
7768
|
onlyDispatchesOnDragEnd: O = !1,
|
|
7758
7769
|
orientation: T = "vertical",
|
|
7759
7770
|
steps: I = bl(10),
|
|
7760
|
-
trackPadding:
|
|
7771
|
+
trackPadding: j = 0,
|
|
7761
7772
|
onDragEnd: A,
|
|
7762
|
-
onDragStart:
|
|
7763
|
-
onIndexChange:
|
|
7773
|
+
onDragStart: S,
|
|
7774
|
+
onIndexChange: k,
|
|
7764
7775
|
onPositionChange: ee,
|
|
7765
7776
|
...K
|
|
7766
|
-
},
|
|
7767
|
-
const
|
|
7768
|
-
const q = c ? tt(
|
|
7777
|
+
}, X) => {
|
|
7778
|
+
const R = we(null), w = we(null), P = nt(R), [E, M] = Oe(i), B = ve((C, G, J) => {
|
|
7779
|
+
const q = c ? tt(C) : C;
|
|
7769
7780
|
switch (T) {
|
|
7770
7781
|
case "horizontal": {
|
|
7771
7782
|
const fe = a ? P.width - v : P.width, he = q * fe + G, ue = qt(he / fe);
|
|
@@ -7780,30 +7791,30 @@ const xl = /* @__PURE__ */ _e(({
|
|
|
7780
7791
|
}
|
|
7781
7792
|
}, [P.width, P.height, a, c, v, d, T]), { isDragging: W, isReleasing: oe, value: Z, setValue: U } = kt(w, {
|
|
7782
7793
|
initialValue: dt(i, I),
|
|
7783
|
-
transform:
|
|
7784
|
-
onDragStart:
|
|
7794
|
+
transform: B,
|
|
7795
|
+
onDragStart: S,
|
|
7785
7796
|
onDragEnd: A
|
|
7786
|
-
}), H = ve((
|
|
7797
|
+
}), H = ve((C) => {
|
|
7787
7798
|
if (!u) return;
|
|
7788
7799
|
const G = xe.fromViewport();
|
|
7789
7800
|
switch (T) {
|
|
7790
7801
|
case "horizontal": {
|
|
7791
|
-
const J = (
|
|
7802
|
+
const J = (C.clientX + G.left - P.left) / P.width, q = c ? tt(J) : J, fe = Pt(q, I);
|
|
7792
7803
|
if (fe === E) {
|
|
7793
7804
|
const he = q > Z ? fe + 1 : fe - 1;
|
|
7794
|
-
|
|
7805
|
+
M(qt(he, I.length - 1));
|
|
7795
7806
|
} else
|
|
7796
|
-
|
|
7807
|
+
M(fe);
|
|
7797
7808
|
break;
|
|
7798
7809
|
}
|
|
7799
7810
|
case "vertical": {
|
|
7800
|
-
const J = (
|
|
7811
|
+
const J = (C.clientY + G.top - P.top) / P.height, q = c ? tt(J) : J, fe = Pt(q, I);
|
|
7801
7812
|
if (fe === E) {
|
|
7802
7813
|
const he = q > Z ? fe + 1 : fe - 1, ue = dt(he, I);
|
|
7803
|
-
U(ue),
|
|
7814
|
+
U(ue), M(qt(he, I.length - 1));
|
|
7804
7815
|
} else {
|
|
7805
7816
|
const he = dt(fe, I);
|
|
7806
|
-
U(he),
|
|
7817
|
+
U(he), M(fe);
|
|
7807
7818
|
}
|
|
7808
7819
|
break;
|
|
7809
7820
|
}
|
|
@@ -7817,39 +7828,39 @@ const xl = /* @__PURE__ */ _e(({
|
|
|
7817
7828
|
track: tn
|
|
7818
7829
|
});
|
|
7819
7830
|
return Ee(() => {
|
|
7820
|
-
W || (U(dt(i, I)),
|
|
7831
|
+
W || (U(dt(i, I)), M(i));
|
|
7821
7832
|
}, [i, W, Ke(I)]), Ee(() => {
|
|
7822
7833
|
if (W) {
|
|
7823
7834
|
if (O) return;
|
|
7824
|
-
|
|
7835
|
+
M(Pt(Z, I));
|
|
7825
7836
|
} else {
|
|
7826
|
-
const
|
|
7827
|
-
U(G),
|
|
7837
|
+
const C = Pt(Z, I), G = dt(C, I);
|
|
7838
|
+
U(G), M(C);
|
|
7828
7839
|
}
|
|
7829
7840
|
}, [Z, W, O, Ke(I)]), Ee(() => {
|
|
7830
7841
|
ee?.(Z, W);
|
|
7831
7842
|
}, [Z, W]), Ee(() => {
|
|
7832
|
-
|
|
7843
|
+
k?.(E, W);
|
|
7833
7844
|
}, [E, W]), /* @__PURE__ */ b.jsx(
|
|
7834
7845
|
"div",
|
|
7835
7846
|
{
|
|
7836
7847
|
...K,
|
|
7837
|
-
ref:
|
|
7848
|
+
ref: X,
|
|
7838
7849
|
"aria-valuenow": E,
|
|
7839
7850
|
className: se(r, ae.root),
|
|
7840
7851
|
role: "slider",
|
|
7841
|
-
children: /* @__PURE__ */ b.jsxs("div", { ref:
|
|
7852
|
+
children: /* @__PURE__ */ b.jsxs("div", { ref: R, style: V.body, children: [
|
|
7842
7853
|
/* @__PURE__ */ b.jsx(
|
|
7843
7854
|
ge,
|
|
7844
7855
|
{
|
|
7845
7856
|
className: se(c ? "end" : "start", ae.track),
|
|
7846
7857
|
element: z.track ?? /* @__PURE__ */ b.jsx(tn, {}),
|
|
7847
7858
|
style: ce(V.track, T === "vertical" ? {
|
|
7848
|
-
height: `calc(${F * 100}% - ${
|
|
7859
|
+
height: `calc(${F * 100}% - ${j <= 0 ? 0 : d * 0.5}px - ${j}px)`,
|
|
7849
7860
|
top: "0"
|
|
7850
7861
|
} : {
|
|
7851
7862
|
left: "0",
|
|
7852
|
-
width: `calc(${F * 100}% - ${
|
|
7863
|
+
width: `calc(${F * 100}% - ${j <= 0 ? 0 : v * 0.5}px - ${j}px)`
|
|
7853
7864
|
}),
|
|
7854
7865
|
onClick: H,
|
|
7855
7866
|
children: /* @__PURE__ */ b.jsx("div", { style: V.trackHitBox })
|
|
@@ -7862,10 +7873,10 @@ const xl = /* @__PURE__ */ _e(({
|
|
|
7862
7873
|
element: z.track ?? /* @__PURE__ */ b.jsx(tn, {}),
|
|
7863
7874
|
style: ce(V.track, T === "vertical" ? {
|
|
7864
7875
|
bottom: "0",
|
|
7865
|
-
height: `calc(${tt(F) * 100}% - ${
|
|
7876
|
+
height: `calc(${tt(F) * 100}% - ${j <= 0 ? 0 : d * 0.5}px - ${j}px)`
|
|
7866
7877
|
} : {
|
|
7867
7878
|
right: "0",
|
|
7868
|
-
width: `calc(${tt(F) * 100}% - ${
|
|
7879
|
+
width: `calc(${tt(F) * 100}% - ${j <= 0 ? 0 : v * 0.5}px - ${j}px)`
|
|
7869
7880
|
}),
|
|
7870
7881
|
onClick: H,
|
|
7871
7882
|
children: /* @__PURE__ */ b.jsx("div", { style: V.trackHitBox })
|
|
@@ -8025,19 +8036,19 @@ const Nl = /* @__PURE__ */ _e(({
|
|
|
8025
8036
|
onSwipeUp: d,
|
|
8026
8037
|
...g
|
|
8027
8038
|
}, v) => {
|
|
8028
|
-
const [x, O] = Oe(void 0), [T, I] = Oe(void 0), [
|
|
8029
|
-
if (isNaN(
|
|
8030
|
-
O(Te.make(
|
|
8031
|
-
},
|
|
8039
|
+
const [x, O] = Oe(void 0), [T, I] = Oe(void 0), [j, A] = Oe(NaN), S = (X, R) => {
|
|
8040
|
+
if (isNaN(X) || isNaN(R)) return K();
|
|
8041
|
+
O(Te.make(X, R));
|
|
8042
|
+
}, k = (X, R) => {
|
|
8032
8043
|
const w = x;
|
|
8033
8044
|
if (w === void 0) return;
|
|
8034
|
-
const P = w.x !==
|
|
8035
|
-
P && (E || A(Date.now()), I(Te.make(
|
|
8045
|
+
const P = w.x !== X || w.y !== R, E = !isNaN(j);
|
|
8046
|
+
P && (E || A(Date.now()), I(Te.make(X, R)));
|
|
8036
8047
|
}, ee = () => {
|
|
8037
|
-
const
|
|
8038
|
-
if (isNaN(
|
|
8039
|
-
const P = Date.now() -
|
|
8040
|
-
r && (Math.abs(
|
|
8048
|
+
const X = j, R = x, w = T;
|
|
8049
|
+
if (isNaN(X) || R === void 0 || w === void 0) return;
|
|
8050
|
+
const P = Date.now() - X, E = w.x - R.x, M = w.y - R.y, B = E / P, W = M / P;
|
|
8051
|
+
r && (Math.abs(B) >= i && Math.abs(B) > Math.abs(W) ? B > 0 ? u?.() : c?.() : Math.abs(W) >= i && Math.abs(W) > Math.abs(B) && (W > 0 ? a?.() : d?.())), K();
|
|
8041
8052
|
}, K = () => {
|
|
8042
8053
|
O(void 0), I(void 0), A(NaN);
|
|
8043
8054
|
};
|
|
@@ -8046,13 +8057,13 @@ const Nl = /* @__PURE__ */ _e(({
|
|
|
8046
8057
|
{
|
|
8047
8058
|
...g,
|
|
8048
8059
|
ref: v,
|
|
8049
|
-
onMouseDown: (
|
|
8060
|
+
onMouseDown: (X) => S(X.clientX, X.clientY),
|
|
8050
8061
|
onMouseLeave: () => K(),
|
|
8051
|
-
onMouseMove: (
|
|
8062
|
+
onMouseMove: (X) => k(X.clientX, X.clientY),
|
|
8052
8063
|
onMouseUp: () => ee(),
|
|
8053
8064
|
onTouchEnd: () => ee(),
|
|
8054
|
-
onTouchMove: (
|
|
8055
|
-
onTouchStart: (
|
|
8065
|
+
onTouchMove: (X) => k(X.targetTouches[0].clientX, X.targetTouches[0].clientY),
|
|
8066
|
+
onTouchStart: (X) => S(X.targetTouches[0].clientX, X.targetTouches[0].clientY),
|
|
8056
8067
|
children: e
|
|
8057
8068
|
}
|
|
8058
8069
|
);
|
|
@@ -8083,10 +8094,10 @@ const Tl = /* @__PURE__ */ _e(({
|
|
|
8083
8094
|
const x = we(null), O = qo(x), T = ze(r, {
|
|
8084
8095
|
knob: fr,
|
|
8085
8096
|
track: ur
|
|
8086
|
-
}), I = _l({ isOn: a }),
|
|
8087
|
-
return /* @__PURE__ */ b.jsxs("label", { ...g, ref: v, className: se(e, I.root), style: ce(u,
|
|
8088
|
-
/* @__PURE__ */ b.jsx("input", { checked: a, style:
|
|
8089
|
-
/* @__PURE__ */ b.jsx(ge, { className: I.track, element: T.track ?? /* @__PURE__ */ b.jsx(ur, {}), style:
|
|
8097
|
+
}), I = _l({ isOn: a }), j = Ol({ isOn: a, isInverted: i, orientation: c, knobSize: O });
|
|
8098
|
+
return /* @__PURE__ */ b.jsxs("label", { ...g, ref: v, className: se(e, I.root), style: ce(u, j.root), children: [
|
|
8099
|
+
/* @__PURE__ */ b.jsx("input", { checked: a, style: j.input, type: "checkbox", onChange: (A) => d?.(A.target.checked) }),
|
|
8100
|
+
/* @__PURE__ */ b.jsx(ge, { className: I.track, element: T.track ?? /* @__PURE__ */ b.jsx(ur, {}), style: j.track, children: /* @__PURE__ */ b.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ b.jsx(ge, { ref: x, className: I.knob, element: T.knob ?? /* @__PURE__ */ b.jsx(fr, {}), style: j.knob }) }) })
|
|
8090
8101
|
] });
|
|
8091
8102
|
}), ur = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: e }), fr = ({ children: e, ...r }) => /* @__PURE__ */ b.jsx("div", { ...r, children: e });
|
|
8092
8103
|
function _l({ isOn: e = !1 }) {
|
|
@@ -8096,7 +8107,7 @@ function _l({ isOn: e = !1 }) {
|
|
|
8096
8107
|
track: se({ active: e })
|
|
8097
8108
|
};
|
|
8098
8109
|
}
|
|
8099
|
-
function Ol({ isOn: e = !1, isInverted: r = !1, knobSize: i =
|
|
8110
|
+
function Ol({ isOn: e = !1, isInverted: r = !1, knobSize: i = je.zero, orientation: a = "horizontal" }) {
|
|
8100
8111
|
return {
|
|
8101
8112
|
root: {
|
|
8102
8113
|
alignItems: "center",
|
|
@@ -8184,16 +8195,16 @@ export {
|
|
|
8184
8195
|
Bn as AccordionHeader,
|
|
8185
8196
|
Yn as AccordionItem,
|
|
8186
8197
|
go as AccordionSection,
|
|
8187
|
-
|
|
8198
|
+
jo as Burger,
|
|
8188
8199
|
rn as BurgerBar,
|
|
8189
8200
|
ks as BurgerButton,
|
|
8190
|
-
|
|
8201
|
+
Cs as BurgerButtonBar,
|
|
8191
8202
|
Do as Button,
|
|
8192
8203
|
Va as Carousel,
|
|
8193
8204
|
ca as Case,
|
|
8194
8205
|
Xl as CodeInput,
|
|
8195
8206
|
vr as Collection,
|
|
8196
|
-
|
|
8207
|
+
Ct as CollectionItem,
|
|
8197
8208
|
aa as Conditional,
|
|
8198
8209
|
qa as Counter,
|
|
8199
8210
|
Un as CounterAddButton,
|
|
@@ -8255,7 +8266,7 @@ export {
|
|
|
8255
8266
|
tn as StepSliderTrack,
|
|
8256
8267
|
ge as Styled,
|
|
8257
8268
|
Nl as SwipeRegion,
|
|
8258
|
-
|
|
8269
|
+
jl as Switch,
|
|
8259
8270
|
Sl as TextArea,
|
|
8260
8271
|
ei as TextField,
|
|
8261
8272
|
Tl as Toggle,
|
|
@@ -8265,14 +8276,14 @@ export {
|
|
|
8265
8276
|
ua as WithTooltip,
|
|
8266
8277
|
kl as asClassNameDict,
|
|
8267
8278
|
ze as asComponentDict,
|
|
8268
|
-
|
|
8279
|
+
Cl as asStyleDict,
|
|
8269
8280
|
dr as cloneStyledElement,
|
|
8270
8281
|
Ke as createKey,
|
|
8271
8282
|
Po as createKeyDeep,
|
|
8272
8283
|
wa as createLocalCache,
|
|
8273
8284
|
Oa as createSessionCache,
|
|
8274
8285
|
bl as generateSteps,
|
|
8275
|
-
|
|
8286
|
+
Ca as getStyle,
|
|
8276
8287
|
xa as isTouchDevice,
|
|
8277
8288
|
ho as setStyle,
|
|
8278
8289
|
ce as styles,
|