@frigate-nvr/image-annotator 1.0.4 → 1.0.6
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.
|
@@ -4,7 +4,7 @@ import ft, { createElement as qe, PureComponent as Pt, useState as Rt } from "re
|
|
|
4
4
|
import { a as _t, g as Dt } from "../_commonjsHelpers-DjF3Plf2.js";
|
|
5
5
|
import ct, { flushSync as Tt } from "react-dom";
|
|
6
6
|
import { u as Ct } from "../index.esm-FeyXGhGs.js";
|
|
7
|
-
var Pe = { exports: {} }, ht = {},
|
|
7
|
+
var Pe = { exports: {} }, ht = {}, ke = { exports: {} }, be = { exports: {} }, N = {};
|
|
8
8
|
/** @license React v16.13.1
|
|
9
9
|
* react-is.production.min.js
|
|
10
10
|
*
|
|
@@ -17,7 +17,7 @@ var Ge;
|
|
|
17
17
|
function Ot() {
|
|
18
18
|
if (Ge) return N;
|
|
19
19
|
Ge = 1;
|
|
20
|
-
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120,
|
|
20
|
+
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, z = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
21
21
|
function h(l) {
|
|
22
22
|
if (typeof l == "object" && l !== null) {
|
|
23
23
|
var R = l.$$typeof;
|
|
@@ -36,7 +36,7 @@ function Ot() {
|
|
|
36
36
|
case s:
|
|
37
37
|
case p:
|
|
38
38
|
case z:
|
|
39
|
-
case
|
|
39
|
+
case w:
|
|
40
40
|
case a:
|
|
41
41
|
return l;
|
|
42
42
|
default:
|
|
@@ -51,7 +51,7 @@ function Ot() {
|
|
|
51
51
|
function d(l) {
|
|
52
52
|
return h(l) === u;
|
|
53
53
|
}
|
|
54
|
-
return N.AsyncMode = f, N.ConcurrentMode = u, N.ContextConsumer = s, N.ContextProvider = a, N.Element = i, N.ForwardRef = p, N.Fragment = r, N.Lazy = z, N.Memo =
|
|
54
|
+
return N.AsyncMode = f, N.ConcurrentMode = u, N.ContextConsumer = s, N.ContextProvider = a, N.Element = i, N.ForwardRef = p, N.Fragment = r, N.Lazy = z, N.Memo = w, N.Portal = t, N.Profiler = o, N.StrictMode = n, N.Suspense = g, N.isAsyncMode = function(l) {
|
|
55
55
|
return d(l) || h(l) === f;
|
|
56
56
|
}, N.isConcurrentMode = d, N.isContextConsumer = function(l) {
|
|
57
57
|
return h(l) === s;
|
|
@@ -66,7 +66,7 @@ function Ot() {
|
|
|
66
66
|
}, N.isLazy = function(l) {
|
|
67
67
|
return h(l) === z;
|
|
68
68
|
}, N.isMemo = function(l) {
|
|
69
|
-
return h(l) ===
|
|
69
|
+
return h(l) === w;
|
|
70
70
|
}, N.isPortal = function(l) {
|
|
71
71
|
return h(l) === t;
|
|
72
72
|
}, N.isProfiler = function(l) {
|
|
@@ -76,7 +76,7 @@ function Ot() {
|
|
|
76
76
|
}, N.isSuspense = function(l) {
|
|
77
77
|
return h(l) === g;
|
|
78
78
|
}, N.isValidElementType = function(l) {
|
|
79
|
-
return typeof l == "string" || typeof l == "function" || l === r || l === u || l === o || l === n || l === g || l === b || typeof l == "object" && l !== null && (l.$$typeof === z || l.$$typeof ===
|
|
79
|
+
return typeof l == "string" || typeof l == "function" || l === r || l === u || l === o || l === n || l === g || l === b || typeof l == "object" && l !== null && (l.$$typeof === z || l.$$typeof === w || l.$$typeof === a || l.$$typeof === s || l.$$typeof === p || l.$$typeof === E || l.$$typeof === D || l.$$typeof === y || l.$$typeof === S);
|
|
80
80
|
}, N.typeOf = h, N;
|
|
81
81
|
}
|
|
82
82
|
var H = {};
|
|
@@ -91,10 +91,10 @@ var H = {};
|
|
|
91
91
|
var Ve;
|
|
92
92
|
function Mt() {
|
|
93
93
|
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
94
|
-
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120,
|
|
94
|
+
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, z = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
95
95
|
function h(v) {
|
|
96
96
|
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
97
|
-
v === r || v === u || v === o || v === n || v === g || v === b || typeof v == "object" && v !== null && (v.$$typeof === z || v.$$typeof ===
|
|
97
|
+
v === r || v === u || v === o || v === n || v === g || v === b || typeof v == "object" && v !== null && (v.$$typeof === z || v.$$typeof === w || v.$$typeof === a || v.$$typeof === s || v.$$typeof === p || v.$$typeof === E || v.$$typeof === D || v.$$typeof === y || v.$$typeof === S);
|
|
98
98
|
}
|
|
99
99
|
function d(v) {
|
|
100
100
|
if (typeof v == "object" && v !== null) {
|
|
@@ -116,7 +116,7 @@ function Mt() {
|
|
|
116
116
|
case s:
|
|
117
117
|
case p:
|
|
118
118
|
case z:
|
|
119
|
-
case
|
|
119
|
+
case w:
|
|
120
120
|
case a:
|
|
121
121
|
return Ue;
|
|
122
122
|
default:
|
|
@@ -128,7 +128,7 @@ function Mt() {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
var l = f, R = u, x = s,
|
|
131
|
+
var l = f, R = u, x = s, $ = a, B = i, I = p, X = r, k = z, q = w, V = t, ie = o, j = n, Z = g, ne = !1;
|
|
132
132
|
function K(v) {
|
|
133
133
|
return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), c(v) || d(v) === f;
|
|
134
134
|
}
|
|
@@ -154,7 +154,7 @@ function Mt() {
|
|
|
154
154
|
return d(v) === z;
|
|
155
155
|
}
|
|
156
156
|
function C(v) {
|
|
157
|
-
return d(v) ===
|
|
157
|
+
return d(v) === w;
|
|
158
158
|
}
|
|
159
159
|
function W(v) {
|
|
160
160
|
return d(v) === t;
|
|
@@ -168,7 +168,7 @@ function Mt() {
|
|
|
168
168
|
function Q(v) {
|
|
169
169
|
return d(v) === g;
|
|
170
170
|
}
|
|
171
|
-
H.AsyncMode = l, H.ConcurrentMode = R, H.ContextConsumer = x, H.ContextProvider =
|
|
171
|
+
H.AsyncMode = l, H.ConcurrentMode = R, H.ContextConsumer = x, H.ContextProvider = $, H.Element = B, H.ForwardRef = I, H.Fragment = X, H.Lazy = k, H.Memo = q, H.Portal = V, H.Profiler = ie, H.StrictMode = j, H.Suspense = Z, H.isAsyncMode = K, H.isConcurrentMode = c, H.isContextConsumer = m, H.isContextProvider = O, H.isElement = T, H.isForwardRef = P, H.isFragment = M, H.isLazy = _, H.isMemo = C, H.isPortal = W, H.isProfiler = L, H.isStrictMode = A, H.isSuspense = Q, H.isValidElementType = h, H.typeOf = d;
|
|
172
172
|
}()), H;
|
|
173
173
|
}
|
|
174
174
|
var Ke;
|
|
@@ -227,7 +227,7 @@ function Wt() {
|
|
|
227
227
|
}, Te;
|
|
228
228
|
}
|
|
229
229
|
var Ce, Ze;
|
|
230
|
-
function
|
|
230
|
+
function Ie() {
|
|
231
231
|
if (Ze) return Ce;
|
|
232
232
|
Ze = 1;
|
|
233
233
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -244,7 +244,7 @@ function At() {
|
|
|
244
244
|
var e = function() {
|
|
245
245
|
};
|
|
246
246
|
if (process.env.NODE_ENV !== "production") {
|
|
247
|
-
var i =
|
|
247
|
+
var i = Ie(), t = {}, r = dt();
|
|
248
248
|
e = function(o) {
|
|
249
249
|
var a = "Warning: " + o;
|
|
250
250
|
typeof console < "u" && console.error(a);
|
|
@@ -274,9 +274,9 @@ function At() {
|
|
|
274
274
|
(f || "React class") + ": type specification of " + s + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
275
275
|
), g instanceof Error && !(g.message in t)) {
|
|
276
276
|
t[g.message] = !0;
|
|
277
|
-
var
|
|
277
|
+
var w = u ? u() : "";
|
|
278
278
|
e(
|
|
279
|
-
"Failed " + s + " type: " + g.message + (
|
|
279
|
+
"Failed " + s + " type: " + g.message + (w ?? "")
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
@@ -290,7 +290,7 @@ var We, tt;
|
|
|
290
290
|
function Nt() {
|
|
291
291
|
if (tt) return We;
|
|
292
292
|
tt = 1;
|
|
293
|
-
var e = pt(), i = Wt(), t =
|
|
293
|
+
var e = pt(), i = Wt(), t = Ie(), r = dt(), n = At(), o = function() {
|
|
294
294
|
};
|
|
295
295
|
process.env.NODE_ENV !== "production" && (o = function(s) {
|
|
296
296
|
var f = "Warning: " + s;
|
|
@@ -310,7 +310,7 @@ function Nt() {
|
|
|
310
310
|
if (typeof m == "function")
|
|
311
311
|
return m;
|
|
312
312
|
}
|
|
313
|
-
var b = "<<anonymous>>",
|
|
313
|
+
var b = "<<anonymous>>", w = {
|
|
314
314
|
array: D("array"),
|
|
315
315
|
bigint: D("bigint"),
|
|
316
316
|
bool: D("boolean"),
|
|
@@ -324,20 +324,20 @@ function Nt() {
|
|
|
324
324
|
element: d(),
|
|
325
325
|
elementType: l(),
|
|
326
326
|
instanceOf: R,
|
|
327
|
-
node:
|
|
328
|
-
objectOf:
|
|
327
|
+
node: I(),
|
|
328
|
+
objectOf: $,
|
|
329
329
|
oneOf: x,
|
|
330
330
|
oneOfType: B,
|
|
331
|
-
shape:
|
|
331
|
+
shape: k,
|
|
332
332
|
exact: q
|
|
333
333
|
};
|
|
334
334
|
function z(c, m) {
|
|
335
335
|
return c === m ? c !== 0 || 1 / c === 1 / m : c !== c && m !== m;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function S(c, m) {
|
|
338
338
|
this.message = c, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
S.prototype = Error.prototype;
|
|
341
341
|
function E(c) {
|
|
342
342
|
if (process.env.NODE_ENV !== "production")
|
|
343
343
|
var m = {}, O = 0;
|
|
@@ -356,17 +356,17 @@ function Nt() {
|
|
|
356
356
|
), m[se] = !0, O++);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
return _[C] == null ? M ? _[C] === null ? new
|
|
359
|
+
return _[C] == null ? M ? _[C] === null ? new S("The " + L + " `" + A + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new S("The " + L + " `" + A + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : c(_, C, W, L, A);
|
|
360
360
|
}
|
|
361
361
|
var P = T.bind(null, !1);
|
|
362
362
|
return P.isRequired = T.bind(null, !0), P;
|
|
363
363
|
}
|
|
364
364
|
function D(c) {
|
|
365
365
|
function m(O, T, P, M, _, C) {
|
|
366
|
-
var W = O[T], L =
|
|
366
|
+
var W = O[T], L = j(W);
|
|
367
367
|
if (L !== c) {
|
|
368
368
|
var A = Z(W);
|
|
369
|
-
return new
|
|
369
|
+
return new S(
|
|
370
370
|
"Invalid " + M + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("`" + c + "`."),
|
|
371
371
|
{ expectedType: c }
|
|
372
372
|
);
|
|
@@ -381,11 +381,11 @@ function Nt() {
|
|
|
381
381
|
function h(c) {
|
|
382
382
|
function m(O, T, P, M, _) {
|
|
383
383
|
if (typeof c != "function")
|
|
384
|
-
return new
|
|
384
|
+
return new S("Property `" + _ + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
385
385
|
var C = O[T];
|
|
386
386
|
if (!Array.isArray(C)) {
|
|
387
|
-
var W =
|
|
388
|
-
return new
|
|
387
|
+
var W = j(C);
|
|
388
|
+
return new S("Invalid " + M + " `" + _ + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected an array."));
|
|
389
389
|
}
|
|
390
390
|
for (var L = 0; L < C.length; L++) {
|
|
391
391
|
var A = c(C, L, P, M, _ + "[" + L + "]", t);
|
|
@@ -400,8 +400,8 @@ function Nt() {
|
|
|
400
400
|
function c(m, O, T, P, M) {
|
|
401
401
|
var _ = m[O];
|
|
402
402
|
if (!s(_)) {
|
|
403
|
-
var C =
|
|
404
|
-
return new
|
|
403
|
+
var C = j(_);
|
|
404
|
+
return new S("Invalid " + P + " `" + M + "` of type " + ("`" + C + "` supplied to `" + T + "`, expected a single ReactElement."));
|
|
405
405
|
}
|
|
406
406
|
return null;
|
|
407
407
|
}
|
|
@@ -411,8 +411,8 @@ function Nt() {
|
|
|
411
411
|
function c(m, O, T, P, M) {
|
|
412
412
|
var _ = m[O];
|
|
413
413
|
if (!e.isValidElementType(_)) {
|
|
414
|
-
var C =
|
|
415
|
-
return new
|
|
414
|
+
var C = j(_);
|
|
415
|
+
return new S("Invalid " + P + " `" + M + "` of type " + ("`" + C + "` supplied to `" + T + "`, expected a single ReactElement type."));
|
|
416
416
|
}
|
|
417
417
|
return null;
|
|
418
418
|
}
|
|
@@ -422,7 +422,7 @@ function Nt() {
|
|
|
422
422
|
function m(O, T, P, M, _) {
|
|
423
423
|
if (!(O[T] instanceof c)) {
|
|
424
424
|
var C = c.name || b, W = K(O[T]);
|
|
425
|
-
return new
|
|
425
|
+
return new S("Invalid " + M + " `" + _ + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected ") + ("instance of `" + C + "`."));
|
|
426
426
|
}
|
|
427
427
|
return null;
|
|
428
428
|
}
|
|
@@ -441,17 +441,17 @@ function Nt() {
|
|
|
441
441
|
var se = Z(v);
|
|
442
442
|
return se === "symbol" ? String(v) : v;
|
|
443
443
|
});
|
|
444
|
-
return new
|
|
444
|
+
return new S("Invalid " + M + " `" + _ + "` of value `" + String(C) + "` " + ("supplied to `" + P + "`, expected one of " + L + "."));
|
|
445
445
|
}
|
|
446
446
|
return E(m);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function $(c) {
|
|
449
449
|
function m(O, T, P, M, _) {
|
|
450
450
|
if (typeof c != "function")
|
|
451
|
-
return new
|
|
452
|
-
var C = O[T], W =
|
|
451
|
+
return new S("Property `" + _ + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
452
|
+
var C = O[T], W = j(C);
|
|
453
453
|
if (W !== "object")
|
|
454
|
-
return new
|
|
454
|
+
return new S("Invalid " + M + " `" + _ + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected an object."));
|
|
455
455
|
for (var L in C)
|
|
456
456
|
if (r(C, L)) {
|
|
457
457
|
var A = c(C, L, P, M, _ + "." + L, t);
|
|
@@ -480,26 +480,26 @@ function Nt() {
|
|
|
480
480
|
v.data && r(v.data, "expectedType") && L.push(v.data.expectedType);
|
|
481
481
|
}
|
|
482
482
|
var se = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
|
|
483
|
-
return new
|
|
483
|
+
return new S("Invalid " + C + " `" + W + "` supplied to " + ("`" + _ + "`" + se + "."));
|
|
484
484
|
}
|
|
485
485
|
return E(T);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function I() {
|
|
488
488
|
function c(m, O, T, P, M) {
|
|
489
|
-
return V(m[O]) ? null : new
|
|
489
|
+
return V(m[O]) ? null : new S("Invalid " + P + " `" + M + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
|
|
490
490
|
}
|
|
491
491
|
return E(c);
|
|
492
492
|
}
|
|
493
493
|
function X(c, m, O, T, P) {
|
|
494
|
-
return new
|
|
494
|
+
return new S(
|
|
495
495
|
(c || "React class") + ": " + m + " type `" + O + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
496
496
|
);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function k(c) {
|
|
499
499
|
function m(O, T, P, M, _) {
|
|
500
|
-
var C = O[T], W =
|
|
500
|
+
var C = O[T], W = j(C);
|
|
501
501
|
if (W !== "object")
|
|
502
|
-
return new
|
|
502
|
+
return new S("Invalid " + M + " `" + _ + "` of type `" + W + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
503
503
|
for (var L in c) {
|
|
504
504
|
var A = c[L];
|
|
505
505
|
if (typeof A != "function")
|
|
@@ -514,16 +514,16 @@ function Nt() {
|
|
|
514
514
|
}
|
|
515
515
|
function q(c) {
|
|
516
516
|
function m(O, T, P, M, _) {
|
|
517
|
-
var C = O[T], W =
|
|
517
|
+
var C = O[T], W = j(C);
|
|
518
518
|
if (W !== "object")
|
|
519
|
-
return new
|
|
519
|
+
return new S("Invalid " + M + " `" + _ + "` of type `" + W + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
520
520
|
var L = i({}, O[T], c);
|
|
521
521
|
for (var A in L) {
|
|
522
522
|
var Q = c[A];
|
|
523
523
|
if (r(c, A) && typeof Q != "function")
|
|
524
524
|
return X(P, M, _, A, Z(Q));
|
|
525
525
|
if (!Q)
|
|
526
|
-
return new
|
|
526
|
+
return new S(
|
|
527
527
|
"Invalid " + M + " `" + _ + "` key `" + A + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(O[T], null, " ") + `
|
|
528
528
|
Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
529
529
|
);
|
|
@@ -571,14 +571,14 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
|
571
571
|
function ie(c, m) {
|
|
572
572
|
return c === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function j(c) {
|
|
575
575
|
var m = typeof c;
|
|
576
576
|
return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : ie(m, c) ? "symbol" : m;
|
|
577
577
|
}
|
|
578
578
|
function Z(c) {
|
|
579
579
|
if (typeof c > "u" || c === null)
|
|
580
580
|
return "" + c;
|
|
581
|
-
var m =
|
|
581
|
+
var m = j(c);
|
|
582
582
|
if (m === "object") {
|
|
583
583
|
if (c instanceof Date)
|
|
584
584
|
return "date";
|
|
@@ -604,14 +604,14 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
|
|
|
604
604
|
function K(c) {
|
|
605
605
|
return !c.constructor || !c.constructor.name ? b : c.constructor.name;
|
|
606
606
|
}
|
|
607
|
-
return
|
|
607
|
+
return w.checkPropTypes = n, w.resetWarningCache = n.resetWarningCache, w.PropTypes = w, w;
|
|
608
608
|
}, We;
|
|
609
609
|
}
|
|
610
610
|
var Ae, rt;
|
|
611
611
|
function Ht() {
|
|
612
612
|
if (rt) return Ae;
|
|
613
613
|
rt = 1;
|
|
614
|
-
var e =
|
|
614
|
+
var e = Ie();
|
|
615
615
|
function i() {
|
|
616
616
|
}
|
|
617
617
|
function t() {
|
|
@@ -656,11 +656,11 @@ function Ht() {
|
|
|
656
656
|
}, Ae;
|
|
657
657
|
}
|
|
658
658
|
if (process.env.NODE_ENV !== "production") {
|
|
659
|
-
var Lt = pt(),
|
|
660
|
-
|
|
659
|
+
var Lt = pt(), $t = !0;
|
|
660
|
+
ke.exports = Nt()(Lt.isElement, $t);
|
|
661
661
|
} else
|
|
662
|
-
|
|
663
|
-
var gt =
|
|
662
|
+
ke.exports = Ht()();
|
|
663
|
+
var gt = ke.exports;
|
|
664
664
|
function vt(e) {
|
|
665
665
|
var i, t, r = "";
|
|
666
666
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
@@ -672,25 +672,25 @@ function it() {
|
|
|
672
672
|
for (var e, i, t = 0, r = ""; t < arguments.length; ) (e = arguments[t++]) && (i = vt(e)) && (r && (r += " "), r += i);
|
|
673
673
|
return r;
|
|
674
674
|
}
|
|
675
|
-
const
|
|
675
|
+
const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
676
676
|
__proto__: null,
|
|
677
677
|
clsx: it,
|
|
678
678
|
default: it
|
|
679
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
680
|
-
var
|
|
679
|
+
}, Symbol.toStringTag, { value: "Module" })), jt = /* @__PURE__ */ _t(kt);
|
|
680
|
+
var Y = {}, le = {};
|
|
681
681
|
Object.defineProperty(le, "__esModule", {
|
|
682
682
|
value: !0
|
|
683
683
|
});
|
|
684
684
|
le.dontSetMe = Ut;
|
|
685
|
-
le.findInArray =
|
|
685
|
+
le.findInArray = It;
|
|
686
686
|
le.int = Ft;
|
|
687
|
-
le.isFunction =
|
|
687
|
+
le.isFunction = Yt;
|
|
688
688
|
le.isNum = Bt;
|
|
689
|
-
function
|
|
689
|
+
function It(e, i) {
|
|
690
690
|
for (let t = 0, r = e.length; t < r; t++)
|
|
691
691
|
if (i.apply(i, [e[t], t, e])) return e[t];
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Yt(e) {
|
|
694
694
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
695
695
|
}
|
|
696
696
|
function Bt(e) {
|
|
@@ -735,27 +735,27 @@ function qt(e) {
|
|
|
735
735
|
return i;
|
|
736
736
|
}
|
|
737
737
|
de.default = yt();
|
|
738
|
-
Object.defineProperty(
|
|
738
|
+
Object.defineProperty(Y, "__esModule", {
|
|
739
739
|
value: !0
|
|
740
740
|
});
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
741
|
+
Y.addClassName = wt;
|
|
742
|
+
Y.addEvent = Kt;
|
|
743
|
+
Y.addUserSelectStyles = ar;
|
|
744
|
+
Y.createCSSTransform = ir;
|
|
745
|
+
Y.createSVGTransform = nr;
|
|
746
|
+
Y.getTouch = or;
|
|
747
|
+
Y.getTouchIdentifier = sr;
|
|
748
|
+
Y.getTranslation = Ye;
|
|
749
|
+
Y.innerHeight = er;
|
|
750
|
+
Y.innerWidth = tr;
|
|
751
|
+
Y.matchesSelector = St;
|
|
752
|
+
Y.matchesSelectorAndParentsTo = Vt;
|
|
753
|
+
Y.offsetXYFromParent = rr;
|
|
754
|
+
Y.outerHeight = Zt;
|
|
755
|
+
Y.outerWidth = Qt;
|
|
756
|
+
Y.removeClassName = xt;
|
|
757
|
+
Y.removeEvent = Jt;
|
|
758
|
+
Y.removeUserSelectStyles = lr;
|
|
759
759
|
var re = le, nt = Gt(de);
|
|
760
760
|
function bt(e) {
|
|
761
761
|
if (typeof WeakMap != "function") return null;
|
|
@@ -780,16 +780,16 @@ function Gt(e, i) {
|
|
|
780
780
|
}
|
|
781
781
|
return r.default = e, t && t.set(e, r), r;
|
|
782
782
|
}
|
|
783
|
-
let
|
|
784
|
-
function
|
|
785
|
-
return
|
|
783
|
+
let Se = "";
|
|
784
|
+
function St(e, i) {
|
|
785
|
+
return Se || (Se = (0, re.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(t) {
|
|
786
786
|
return (0, re.isFunction)(e[t]);
|
|
787
|
-
})), (0, re.isFunction)(e[
|
|
787
|
+
})), (0, re.isFunction)(e[Se]) ? e[Se](i) : !1;
|
|
788
788
|
}
|
|
789
789
|
function Vt(e, i, t) {
|
|
790
790
|
let r = e;
|
|
791
791
|
do {
|
|
792
|
-
if (
|
|
792
|
+
if (St(r, i)) return !0;
|
|
793
793
|
if (r === t) return !1;
|
|
794
794
|
r = r.parentNode;
|
|
795
795
|
} while (r);
|
|
@@ -842,15 +842,15 @@ function rr(e, i, t) {
|
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
844
|
function ir(e, i) {
|
|
845
|
-
const t =
|
|
845
|
+
const t = Ye(e, i, "px");
|
|
846
846
|
return {
|
|
847
847
|
[(0, nt.browserPrefixToKey)("transform", nt.default)]: t
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
function nr(e, i) {
|
|
851
|
-
return
|
|
851
|
+
return Ye(e, i, "");
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Ye(e, i, t) {
|
|
854
854
|
let {
|
|
855
855
|
x: r,
|
|
856
856
|
y: n
|
|
@@ -873,7 +873,7 @@ function ar(e) {
|
|
|
873
873
|
let i = e.getElementById("react-draggable-style-el");
|
|
874
874
|
i || (i = e.createElement("style"), i.type = "text/css", i.id = "react-draggable-style-el", i.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
875
875
|
`, i.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
876
|
-
`, e.getElementsByTagName("head")[0].appendChild(i)), e.body &&
|
|
876
|
+
`, e.getElementsByTagName("head")[0].appendChild(i)), e.body && wt(e.body, "react-draggable-transparent-selection");
|
|
877
877
|
}
|
|
878
878
|
function lr(e) {
|
|
879
879
|
if (e)
|
|
@@ -887,7 +887,7 @@ function lr(e) {
|
|
|
887
887
|
} catch {
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function wt(e, i) {
|
|
891
891
|
e.classList ? e.classList.add(i) : e.className.match(new RegExp("(?:^|\\s)".concat(i, "(?!\\S)"))) || (e.className += " ".concat(i));
|
|
892
892
|
}
|
|
893
893
|
function xt(e, i) {
|
|
@@ -904,7 +904,7 @@ ue.createDraggableData = gr;
|
|
|
904
904
|
ue.getBoundPosition = ur;
|
|
905
905
|
ue.getControlPosition = pr;
|
|
906
906
|
ue.snapToGrid = fr;
|
|
907
|
-
var te = le, ve =
|
|
907
|
+
var te = le, ve = Y;
|
|
908
908
|
function ur(e, i, t) {
|
|
909
909
|
if (!e.props.bounds) return [i, t];
|
|
910
910
|
let {
|
|
@@ -1002,7 +1002,7 @@ Object.defineProperty(Re, "__esModule", {
|
|
|
1002
1002
|
value: !0
|
|
1003
1003
|
});
|
|
1004
1004
|
Re.default = void 0;
|
|
1005
|
-
var He = br(ft), ee = Fe(gt), mr = Fe(ct), G =
|
|
1005
|
+
var He = br(ft), ee = Fe(gt), mr = Fe(ct), G = Y, fe = ue, Le = le, ye = Fe(_e);
|
|
1006
1006
|
function Fe(e) {
|
|
1007
1007
|
return e && e.__esModule ? e : { default: e };
|
|
1008
1008
|
}
|
|
@@ -1030,13 +1030,13 @@ function br(e, i) {
|
|
|
1030
1030
|
return r.default = e, t && t.set(e, r), r;
|
|
1031
1031
|
}
|
|
1032
1032
|
function J(e, i, t) {
|
|
1033
|
-
return i =
|
|
1033
|
+
return i = Sr(i), i in e ? Object.defineProperty(e, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = t, e;
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
var i =
|
|
1035
|
+
function Sr(e) {
|
|
1036
|
+
var i = wr(e, "string");
|
|
1037
1037
|
return typeof i == "symbol" ? i : String(i);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function wr(e, i) {
|
|
1040
1040
|
if (typeof e != "object" || e === null) return e;
|
|
1041
1041
|
var t = e[Symbol.toPrimitive];
|
|
1042
1042
|
if (t !== void 0) {
|
|
@@ -1308,7 +1308,7 @@ J(De, "defaultProps", {
|
|
|
1308
1308
|
return f.default;
|
|
1309
1309
|
}
|
|
1310
1310
|
}), e.default = void 0;
|
|
1311
|
-
var i = b(ft), t = p(gt), r = p(ct), n = p(
|
|
1311
|
+
var i = b(ft), t = p(gt), r = p(ct), n = p(jt), o = Y, a = ue, s = le, f = p(Re), u = p(_e);
|
|
1312
1312
|
function p(y) {
|
|
1313
1313
|
return y && y.__esModule ? y : { default: y };
|
|
1314
1314
|
}
|
|
@@ -1330,25 +1330,25 @@ J(De, "defaultProps", {
|
|
|
1330
1330
|
var l = {}, R = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1331
1331
|
for (var x in y)
|
|
1332
1332
|
if (x !== "default" && Object.prototype.hasOwnProperty.call(y, x)) {
|
|
1333
|
-
var
|
|
1334
|
-
|
|
1333
|
+
var $ = R ? Object.getOwnPropertyDescriptor(y, x) : null;
|
|
1334
|
+
$ && ($.get || $.set) ? Object.defineProperty(l, x, $) : l[x] = y[x];
|
|
1335
1335
|
}
|
|
1336
1336
|
return l.default = y, d && d.set(y, l), l;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
return
|
|
1338
|
+
function w() {
|
|
1339
|
+
return w = Object.assign ? Object.assign.bind() : function(y) {
|
|
1340
1340
|
for (var h = 1; h < arguments.length; h++) {
|
|
1341
1341
|
var d = arguments[h];
|
|
1342
1342
|
for (var l in d)
|
|
1343
1343
|
Object.prototype.hasOwnProperty.call(d, l) && (y[l] = d[l]);
|
|
1344
1344
|
}
|
|
1345
1345
|
return y;
|
|
1346
|
-
},
|
|
1346
|
+
}, w.apply(this, arguments);
|
|
1347
1347
|
}
|
|
1348
1348
|
function z(y, h, d) {
|
|
1349
|
-
return h =
|
|
1349
|
+
return h = S(h), h in y ? Object.defineProperty(y, h, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : y[h] = d, y;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function S(y) {
|
|
1352
1352
|
var h = E(y, "string");
|
|
1353
1353
|
return typeof h == "symbol" ? h : String(h);
|
|
1354
1354
|
}
|
|
@@ -1401,11 +1401,11 @@ J(De, "defaultProps", {
|
|
|
1401
1401
|
if (this.props.bounds) {
|
|
1402
1402
|
const {
|
|
1403
1403
|
x: B,
|
|
1404
|
-
y:
|
|
1404
|
+
y: I
|
|
1405
1405
|
} = x;
|
|
1406
1406
|
x.x += this.state.slackX, x.y += this.state.slackY;
|
|
1407
|
-
const [X,
|
|
1408
|
-
x.x = X, x.y =
|
|
1407
|
+
const [X, k] = (0, a.getBoundPosition)(this, x.x, x.y);
|
|
1408
|
+
x.x = X, x.y = k, x.slackX = this.state.slackX + (B - x.x), x.slackY = this.state.slackY + (I - x.y), R.x = x.x, R.y = x.y, R.deltaX = x.x - this.state.x, R.deltaY = x.y - this.state.y;
|
|
1409
1409
|
}
|
|
1410
1410
|
if (this.props.onDrag(d, R) === !1) return !1;
|
|
1411
1411
|
this.setState(x);
|
|
@@ -1420,9 +1420,9 @@ J(De, "defaultProps", {
|
|
|
1420
1420
|
if (!!this.props.position) {
|
|
1421
1421
|
const {
|
|
1422
1422
|
x: B,
|
|
1423
|
-
y:
|
|
1423
|
+
y: I
|
|
1424
1424
|
} = this.props.position;
|
|
1425
|
-
x.x = B, x.y =
|
|
1425
|
+
x.x = B, x.y = I;
|
|
1426
1426
|
}
|
|
1427
1427
|
this.setState(x);
|
|
1428
1428
|
}), this.state = {
|
|
@@ -1466,15 +1466,15 @@ J(De, "defaultProps", {
|
|
|
1466
1466
|
children: l,
|
|
1467
1467
|
defaultPosition: R,
|
|
1468
1468
|
defaultClassName: x,
|
|
1469
|
-
defaultClassNameDragging:
|
|
1469
|
+
defaultClassNameDragging: $,
|
|
1470
1470
|
defaultClassNameDragged: B,
|
|
1471
|
-
position:
|
|
1471
|
+
position: I,
|
|
1472
1472
|
positionOffset: X,
|
|
1473
|
-
scale:
|
|
1473
|
+
scale: k,
|
|
1474
1474
|
...q
|
|
1475
1475
|
} = this.props;
|
|
1476
1476
|
let V = {}, ie = null;
|
|
1477
|
-
const Z = !!!
|
|
1477
|
+
const Z = !!!I || this.state.dragging, ne = I || R, K = {
|
|
1478
1478
|
// Set left if horizontal drag is enabled
|
|
1479
1479
|
x: (0, a.canDragX)(this) && Z ? this.state.x : ne.x,
|
|
1480
1480
|
// Set top if vertical drag is enabled
|
|
@@ -1482,10 +1482,10 @@ J(De, "defaultProps", {
|
|
|
1482
1482
|
};
|
|
1483
1483
|
this.state.isElementSVG ? ie = (0, o.createSVGTransform)(K, X) : V = (0, o.createCSSTransform)(K, X);
|
|
1484
1484
|
const c = (0, n.default)(l.props.className || "", x, {
|
|
1485
|
-
[
|
|
1485
|
+
[$]: this.state.dragging,
|
|
1486
1486
|
[B]: this.state.dragged
|
|
1487
1487
|
});
|
|
1488
|
-
return /* @__PURE__ */ i.createElement(f.default,
|
|
1488
|
+
return /* @__PURE__ */ i.createElement(f.default, w({}, q, {
|
|
1489
1489
|
onStart: this.onDragStart,
|
|
1490
1490
|
onDrag: this.onDrag,
|
|
1491
1491
|
onStop: this.onDragStop
|
|
@@ -1664,7 +1664,7 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
1664
1664
|
top: "0px",
|
|
1665
1665
|
left: "0px",
|
|
1666
1666
|
cursor: "col-resize"
|
|
1667
|
-
},
|
|
1667
|
+
}, we = {
|
|
1668
1668
|
width: "20px",
|
|
1669
1669
|
height: "20px",
|
|
1670
1670
|
position: "absolute"
|
|
@@ -1673,10 +1673,10 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
1673
1673
|
right: F(F({}, st), { left: void 0, right: "-5px" }),
|
|
1674
1674
|
bottom: F(F({}, ot), { top: void 0, bottom: "-5px" }),
|
|
1675
1675
|
left: F(F({}, st), { left: "-5px" }),
|
|
1676
|
-
topRight: F(F({},
|
|
1677
|
-
bottomRight: F(F({},
|
|
1678
|
-
bottomLeft: F(F({},
|
|
1679
|
-
topLeft: F(F({},
|
|
1676
|
+
topRight: F(F({}, we), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
|
|
1677
|
+
bottomRight: F(F({}, we), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
|
|
1678
|
+
bottomLeft: F(F({}, we), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
|
|
1679
|
+
topLeft: F(F({}, we), { left: "-10px", top: "-10px", cursor: "nw-resize" })
|
|
1680
1680
|
}, _r = (
|
|
1681
1681
|
/** @class */
|
|
1682
1682
|
function(e) {
|
|
@@ -1735,7 +1735,7 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
1735
1735
|
return Math.abs(a - e) < Math.abs(i[o] - e) ? s : o;
|
|
1736
1736
|
}, 0), n = Math.abs(i[r] - e);
|
|
1737
1737
|
return t === 0 || n < t ? i[r] : e;
|
|
1738
|
-
},
|
|
1738
|
+
}, $e = function(e) {
|
|
1739
1739
|
return e = e.toString(), e === "auto" || e.endsWith("px") || e.endsWith("%") || e.endsWith("vh") || e.endsWith("vw") || e.endsWith("vmax") || e.endsWith("vmin") ? e : e + "px";
|
|
1740
1740
|
}, Ee = function(e, i, t, r) {
|
|
1741
1741
|
if (e && typeof e == "string") {
|
|
@@ -1880,8 +1880,8 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
1880
1880
|
var u = t.getParentSize(), p = Number(t.state[s].toString().replace("px", "")), g = p / u[s] * 100;
|
|
1881
1881
|
return g + "%";
|
|
1882
1882
|
}
|
|
1883
|
-
return
|
|
1884
|
-
}, o = r && typeof r.width < "u" && !this.state.isResizing ?
|
|
1883
|
+
return $e(t.state[s]);
|
|
1884
|
+
}, o = r && typeof r.width < "u" && !this.state.isResizing ? $e(r.width) : n("width"), a = r && typeof r.height < "u" && !this.state.isResizing ? $e(r.height) : n("height");
|
|
1885
1885
|
return { width: o, height: a };
|
|
1886
1886
|
},
|
|
1887
1887
|
enumerable: !1,
|
|
@@ -1928,15 +1928,15 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
1928
1928
|
} else this.props.bounds === "window" ? this.window && (f = a ? this.resizableRight : this.window.innerWidth - this.resizableLeft, u = s ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (f = a ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), u = s ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
|
|
1929
1929
|
return f && Number.isFinite(f) && (t = t && t < f ? t : f), u && Number.isFinite(u) && (r = r && r < u ? r : u), { maxWidth: t, maxHeight: r };
|
|
1930
1930
|
}, i.prototype.calculateNewSizeFromDirection = function(t, r) {
|
|
1931
|
-
var n = this.props.scale || 1, o = Mr(this.props.resizeRatio || 1), a = o[0], s = o[1], f = this.state, u = f.direction, p = f.original, g = this.props, b = g.lockAspectRatio,
|
|
1932
|
-
return ge("right", u) && (
|
|
1931
|
+
var n = this.props.scale || 1, o = Mr(this.props.resizeRatio || 1), a = o[0], s = o[1], f = this.state, u = f.direction, p = f.original, g = this.props, b = g.lockAspectRatio, w = g.lockAspectRatioExtraHeight, z = g.lockAspectRatioExtraWidth, S = p.width, E = p.height, D = w || 0, y = z || 0;
|
|
1932
|
+
return ge("right", u) && (S = p.width + (t - p.x) * a / n, b && (E = (S - y) / this.ratio + D)), ge("left", u) && (S = p.width - (t - p.x) * a / n, b && (E = (S - y) / this.ratio + D)), ge("bottom", u) && (E = p.height + (r - p.y) * s / n, b && (S = (E - D) * this.ratio + y)), ge("top", u) && (E = p.height - (r - p.y) * s / n, b && (S = (E - D) * this.ratio + y)), { newWidth: S, newHeight: E };
|
|
1933
1933
|
}, i.prototype.calculateNewSizeFromAspectRatio = function(t, r, n, o) {
|
|
1934
|
-
var a = this.props, s = a.lockAspectRatio, f = a.lockAspectRatioExtraHeight, u = a.lockAspectRatioExtraWidth, p = typeof o.width > "u" ? 10 : o.width, g = typeof n.width > "u" || n.width < 0 ? t : n.width, b = typeof o.height > "u" ? 10 : o.height,
|
|
1934
|
+
var a = this.props, s = a.lockAspectRatio, f = a.lockAspectRatioExtraHeight, u = a.lockAspectRatioExtraWidth, p = typeof o.width > "u" ? 10 : o.width, g = typeof n.width > "u" || n.width < 0 ? t : n.width, b = typeof o.height > "u" ? 10 : o.height, w = typeof n.height > "u" || n.height < 0 ? r : n.height, z = f || 0, S = u || 0;
|
|
1935
1935
|
if (s) {
|
|
1936
|
-
var E = (b - z) * this.ratio +
|
|
1936
|
+
var E = (b - z) * this.ratio + S, D = (w - z) * this.ratio + S, y = (p - S) / this.ratio + z, h = (g - S) / this.ratio + z, d = Math.max(p, E), l = Math.min(g, D), R = Math.max(b, y), x = Math.min(w, h);
|
|
1937
1937
|
t = xe(t, d, l), r = xe(r, R, x);
|
|
1938
1938
|
} else
|
|
1939
|
-
t = xe(t, p, g), r = xe(r, b,
|
|
1939
|
+
t = xe(t, p, g), r = xe(r, b, w);
|
|
1940
1940
|
return { newWidth: t, newHeight: r };
|
|
1941
1941
|
}, i.prototype.setBoundingClientRect = function() {
|
|
1942
1942
|
if (this.props.bounds === "parent") {
|
|
@@ -1994,18 +1994,18 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
1994
1994
|
t.preventDefault(), t.stopPropagation();
|
|
1995
1995
|
} catch {
|
|
1996
1996
|
}
|
|
1997
|
-
var n = this.props, o = n.maxWidth, a = n.maxHeight, s = n.minWidth, f = n.minHeight, u = ze(t) ? t.touches[0].clientX : t.clientX, p = ze(t) ? t.touches[0].clientY : t.clientY, g = this.state, b = g.direction,
|
|
1997
|
+
var n = this.props, o = n.maxWidth, a = n.maxHeight, s = n.minWidth, f = n.minHeight, u = ze(t) ? t.touches[0].clientX : t.clientX, p = ze(t) ? t.touches[0].clientY : t.clientY, g = this.state, b = g.direction, w = g.original, z = g.width, S = g.height, E = this.getParentSize(), D = Or(E, this.window.innerWidth, this.window.innerHeight, o, a, s, f);
|
|
1998
1998
|
o = D.maxWidth, a = D.maxHeight, s = D.minWidth, f = D.minHeight;
|
|
1999
1999
|
var y = this.calculateNewSizeFromDirection(u, p), h = y.newHeight, d = y.newWidth, l = this.calculateNewMaxFromBoundary(o, a);
|
|
2000
2000
|
this.props.snap && this.props.snap.x && (d = lt(d, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (h = lt(h, this.props.snap.y, this.props.snapGap));
|
|
2001
2001
|
var R = this.calculateNewSizeFromAspectRatio(d, h, { width: l.maxWidth, height: l.maxHeight }, { width: s, height: f });
|
|
2002
2002
|
if (d = R.newWidth, h = R.newHeight, this.props.grid) {
|
|
2003
|
-
var x = at(d, this.props.grid[0]),
|
|
2004
|
-
d =
|
|
2003
|
+
var x = at(d, this.props.grid[0]), $ = at(h, this.props.grid[1]), B = this.props.snapGap || 0, I = B === 0 || Math.abs(x - d) <= B ? x : d, X = B === 0 || Math.abs($ - h) <= B ? $ : h;
|
|
2004
|
+
d = I, h = X;
|
|
2005
2005
|
}
|
|
2006
|
-
var
|
|
2007
|
-
width: d -
|
|
2008
|
-
height: h -
|
|
2006
|
+
var k = {
|
|
2007
|
+
width: d - w.width,
|
|
2008
|
+
height: h - w.height
|
|
2009
2009
|
};
|
|
2010
2010
|
if (z && typeof z == "string") {
|
|
2011
2011
|
if (z.endsWith("%")) {
|
|
@@ -2019,27 +2019,27 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
2019
2019
|
d = ie + "vh";
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
|
-
if (
|
|
2023
|
-
if (
|
|
2022
|
+
if (S && typeof S == "string") {
|
|
2023
|
+
if (S.endsWith("%")) {
|
|
2024
2024
|
var q = h / E.height * 100;
|
|
2025
2025
|
h = q + "%";
|
|
2026
|
-
} else if (
|
|
2026
|
+
} else if (S.endsWith("vw")) {
|
|
2027
2027
|
var V = h / this.window.innerWidth * 100;
|
|
2028
2028
|
h = V + "vw";
|
|
2029
|
-
} else if (
|
|
2029
|
+
} else if (S.endsWith("vh")) {
|
|
2030
2030
|
var ie = h / this.window.innerHeight * 100;
|
|
2031
2031
|
h = ie + "vh";
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
|
-
var
|
|
2034
|
+
var j = {
|
|
2035
2035
|
width: this.createSizeForCssProperty(d, "width"),
|
|
2036
2036
|
height: this.createSizeForCssProperty(h, "height")
|
|
2037
2037
|
};
|
|
2038
|
-
this.flexDir === "row" ?
|
|
2039
|
-
var Z = this.state.width !==
|
|
2038
|
+
this.flexDir === "row" ? j.flexBasis = j.width : this.flexDir === "column" && (j.flexBasis = j.height);
|
|
2039
|
+
var Z = this.state.width !== j.width, ne = this.state.height !== j.height, K = this.state.flexBasis !== j.flexBasis, c = Z || ne || K;
|
|
2040
2040
|
c && Tt(function() {
|
|
2041
|
-
r.setState(
|
|
2042
|
-
}), this.props.onResize && c && this.props.onResize(t, b, this.resizable,
|
|
2041
|
+
r.setState(j);
|
|
2042
|
+
}), this.props.onResize && c && this.props.onResize(t, b, this.resizable, k);
|
|
2043
2043
|
}
|
|
2044
2044
|
}, i.prototype.onMouseUp = function(t) {
|
|
2045
2045
|
var r, n, o = this.state, a = o.isResizing, s = o.direction, f = o.original;
|
|
@@ -2126,15 +2126,15 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
2126
2126
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
2127
2127
|
and limitations under the License.
|
|
2128
2128
|
***************************************************************************** */
|
|
2129
|
-
var
|
|
2130
|
-
return
|
|
2129
|
+
var je = function(e, i) {
|
|
2130
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
2131
2131
|
t.__proto__ = r;
|
|
2132
2132
|
} || function(t, r) {
|
|
2133
2133
|
for (var n in r) r.hasOwnProperty(n) && (t[n] = r[n]);
|
|
2134
|
-
},
|
|
2134
|
+
}, je(e, i);
|
|
2135
2135
|
};
|
|
2136
2136
|
function Nr(e, i) {
|
|
2137
|
-
|
|
2137
|
+
je(e, i);
|
|
2138
2138
|
function t() {
|
|
2139
2139
|
this.constructor = e;
|
|
2140
2140
|
}
|
|
@@ -2164,7 +2164,7 @@ var Lr = {
|
|
|
2164
2164
|
position: "absolute",
|
|
2165
2165
|
top: 0,
|
|
2166
2166
|
left: 0
|
|
2167
|
-
},
|
|
2167
|
+
}, $r = function(e) {
|
|
2168
2168
|
return {
|
|
2169
2169
|
bottom: e,
|
|
2170
2170
|
bottomLeft: e,
|
|
@@ -2175,7 +2175,7 @@ var Lr = {
|
|
|
2175
2175
|
topLeft: e,
|
|
2176
2176
|
topRight: e
|
|
2177
2177
|
};
|
|
2178
|
-
},
|
|
2178
|
+
}, kr = (
|
|
2179
2179
|
/** @class */
|
|
2180
2180
|
function(e) {
|
|
2181
2181
|
Nr(i, e);
|
|
@@ -2240,24 +2240,24 @@ var Lr = {
|
|
|
2240
2240
|
if (this.props.bounds === "parent")
|
|
2241
2241
|
s = o;
|
|
2242
2242
|
else if (this.props.bounds === "body") {
|
|
2243
|
-
var f = o.getBoundingClientRect(), u = f.left, p = f.top, g = document.body.getBoundingClientRect(), b = -(u - o.offsetLeft * a - g.left) / a,
|
|
2244
|
-
return this.setState({ bounds: { top:
|
|
2243
|
+
var f = o.getBoundingClientRect(), u = f.left, p = f.top, g = document.body.getBoundingClientRect(), b = -(u - o.offsetLeft * a - g.left) / a, w = -(p - o.offsetTop * a - g.top) / a, z = (document.body.offsetWidth - this.resizable.size.width * a) / a + b, S = (document.body.offsetHeight - this.resizable.size.height * a) / a + w;
|
|
2244
|
+
return this.setState({ bounds: { top: w, right: z, bottom: S, left: b } });
|
|
2245
2245
|
} else if (this.props.bounds === "window") {
|
|
2246
2246
|
if (!this.resizable)
|
|
2247
2247
|
return;
|
|
2248
|
-
var E = o.getBoundingClientRect(), D = E.left, y = E.top, h = -(D - o.offsetLeft * a) / a, d = -(y - o.offsetTop * a) / a, z = (window.innerWidth - this.resizable.size.width * a) / a + h,
|
|
2249
|
-
return this.setState({ bounds: { top: d, right: z, bottom:
|
|
2248
|
+
var E = o.getBoundingClientRect(), D = E.left, y = E.top, h = -(D - o.offsetLeft * a) / a, d = -(y - o.offsetTop * a) / a, z = (window.innerWidth - this.resizable.size.width * a) / a + h, S = (window.innerHeight - this.resizable.size.height * a) / a + d;
|
|
2249
|
+
return this.setState({ bounds: { top: d, right: z, bottom: S, left: h } });
|
|
2250
2250
|
} else typeof this.props.bounds == "string" ? s = document.querySelector(this.props.bounds) : this.props.bounds instanceof HTMLElement && (s = this.props.bounds);
|
|
2251
2251
|
if (!(!(s instanceof HTMLElement) || !(o instanceof HTMLElement))) {
|
|
2252
|
-
var l = s.getBoundingClientRect(), R = l.left, x = l.top,
|
|
2252
|
+
var l = s.getBoundingClientRect(), R = l.left, x = l.top, $ = o.getBoundingClientRect(), B = $.left, I = $.top, X = (R - B) / a, k = x - I;
|
|
2253
2253
|
if (this.resizable) {
|
|
2254
2254
|
this.updateOffsetFromParent();
|
|
2255
2255
|
var q = this.offsetFromParent;
|
|
2256
2256
|
this.setState({
|
|
2257
2257
|
bounds: {
|
|
2258
|
-
top:
|
|
2258
|
+
top: k - q.top,
|
|
2259
2259
|
right: X + (s.offsetWidth - this.resizable.size.width) - q.left / a,
|
|
2260
|
-
bottom:
|
|
2260
|
+
bottom: k + (s.offsetHeight - this.resizable.size.height) - q.top,
|
|
2261
2261
|
left: X - q.left / a
|
|
2262
2262
|
}
|
|
2263
2263
|
});
|
|
@@ -2294,36 +2294,36 @@ var Lr = {
|
|
|
2294
2294
|
this.props.bounds === "parent" ? u = f : this.props.bounds === "body" ? u = document.body : this.props.bounds === "window" ? u = window : typeof this.props.bounds == "string" ? u = document.querySelector(this.props.bounds) : this.props.bounds instanceof HTMLElement && (u = this.props.bounds);
|
|
2295
2295
|
var p = this.getSelfElement();
|
|
2296
2296
|
if (p instanceof Element && (u instanceof HTMLElement || u === window) && f instanceof HTMLElement) {
|
|
2297
|
-
var g = this.getMaxSizesFromProps(), b = g.maxWidth,
|
|
2297
|
+
var g = this.getMaxSizesFromProps(), b = g.maxWidth, w = g.maxHeight, z = this.getParentSize();
|
|
2298
2298
|
if (b && typeof b == "string")
|
|
2299
2299
|
if (b.endsWith("%")) {
|
|
2300
|
-
var
|
|
2301
|
-
b = z.width *
|
|
2300
|
+
var S = Number(b.replace("%", "")) / 100;
|
|
2301
|
+
b = z.width * S;
|
|
2302
2302
|
} else b.endsWith("px") && (b = Number(b.replace("px", "")));
|
|
2303
|
-
if (
|
|
2304
|
-
if (
|
|
2305
|
-
var
|
|
2306
|
-
|
|
2307
|
-
} else
|
|
2308
|
-
var E = p.getBoundingClientRect(), D = E.left, y = E.top, h = this.props.bounds === "window" ? { left: 0, top: 0 } : u.getBoundingClientRect(), d = h.left, l = h.top, R = this.getOffsetWidth(u), x = this.getOffsetHeight(u),
|
|
2309
|
-
if ((
|
|
2310
|
-
var
|
|
2311
|
-
this.setState({ maxWidth:
|
|
2303
|
+
if (w && typeof w == "string")
|
|
2304
|
+
if (w.endsWith("%")) {
|
|
2305
|
+
var S = Number(w.replace("%", "")) / 100;
|
|
2306
|
+
w = z.height * S;
|
|
2307
|
+
} else w.endsWith("px") && (w = Number(w.replace("px", "")));
|
|
2308
|
+
var E = p.getBoundingClientRect(), D = E.left, y = E.top, h = this.props.bounds === "window" ? { left: 0, top: 0 } : u.getBoundingClientRect(), d = h.left, l = h.top, R = this.getOffsetWidth(u), x = this.getOffsetHeight(u), $ = r.toLowerCase().endsWith("left"), B = r.toLowerCase().endsWith("right"), I = r.startsWith("top"), X = r.startsWith("bottom");
|
|
2309
|
+
if (($ || I) && this.resizable) {
|
|
2310
|
+
var k = (D - d) / o + this.resizable.size.width;
|
|
2311
|
+
this.setState({ maxWidth: k > Number(b) ? b : k });
|
|
2312
2312
|
}
|
|
2313
|
-
if (B || this.props.lockAspectRatio &&
|
|
2314
|
-
var
|
|
2315
|
-
this.setState({ maxWidth:
|
|
2313
|
+
if (B || this.props.lockAspectRatio && !$ && !I) {
|
|
2314
|
+
var k = R + (d - D) / o;
|
|
2315
|
+
this.setState({ maxWidth: k > Number(b) ? b : k });
|
|
2316
2316
|
}
|
|
2317
|
-
if ((
|
|
2318
|
-
var
|
|
2317
|
+
if ((I || $) && this.resizable) {
|
|
2318
|
+
var k = (y - l) / o + this.resizable.size.height;
|
|
2319
2319
|
this.setState({
|
|
2320
|
-
maxHeight:
|
|
2320
|
+
maxHeight: k > Number(w) ? w : k
|
|
2321
2321
|
});
|
|
2322
2322
|
}
|
|
2323
|
-
if (X || this.props.lockAspectRatio && !
|
|
2324
|
-
var
|
|
2323
|
+
if (X || this.props.lockAspectRatio && !I && !$) {
|
|
2324
|
+
var k = x + (l - y) / o;
|
|
2325
2325
|
this.setState({
|
|
2326
|
-
maxHeight:
|
|
2326
|
+
maxHeight: k > Number(w) ? w : k
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
@@ -2338,10 +2338,10 @@ var Lr = {
|
|
|
2338
2338
|
u.includes(r) && (r === "bottomLeft" ? a.x += s : (r === "topRight" || (a.x += s), a.y += f));
|
|
2339
2339
|
var p = this.draggable.state;
|
|
2340
2340
|
(a.x !== p.x || a.y !== p.y) && this.draggable.setState(a), this.updateOffsetFromParent();
|
|
2341
|
-
var g = this.offsetFromParent, b = this.getDraggablePosition().x + g.left,
|
|
2342
|
-
this.resizingPosition = { x: b, y:
|
|
2341
|
+
var g = this.offsetFromParent, b = this.getDraggablePosition().x + g.left, w = this.getDraggablePosition().y + g.top;
|
|
2342
|
+
this.resizingPosition = { x: b, y: w }, this.props.onResize && this.props.onResize(t, r, n, o, {
|
|
2343
2343
|
x: b,
|
|
2344
|
-
y:
|
|
2344
|
+
y: w
|
|
2345
2345
|
});
|
|
2346
2346
|
}, i.prototype.onResizeStop = function(t, r, n, o) {
|
|
2347
2347
|
this.setState({
|
|
@@ -2366,16 +2366,16 @@ var Lr = {
|
|
|
2366
2366
|
top: f.top - s + g - u.y * t
|
|
2367
2367
|
};
|
|
2368
2368
|
}, i.prototype.render = function() {
|
|
2369
|
-
var t = this, r = this.props, n = r.disableDragging, o = r.style, a = r.dragHandleClassName, s = r.position, f = r.onMouseDown, u = r.onMouseUp, p = r.dragAxis, g = r.dragGrid, b = r.bounds,
|
|
2369
|
+
var t = this, r = this.props, n = r.disableDragging, o = r.style, a = r.dragHandleClassName, s = r.position, f = r.onMouseDown, u = r.onMouseUp, p = r.dragAxis, g = r.dragGrid, b = r.bounds, w = r.enableUserSelectHack, z = r.cancel, S = r.children;
|
|
2370
2370
|
r.onResizeStart, r.onResize, r.onResizeStop, r.onDragStart, r.onDrag, r.onDragStop;
|
|
2371
|
-
var E = r.resizeHandleStyles, D = r.resizeHandleClasses, y = r.resizeHandleComponent, h = r.enableResizing, d = r.resizeGrid, l = r.resizeHandleWrapperClass, R = r.resizeHandleWrapperStyle, x = r.scale,
|
|
2371
|
+
var E = r.resizeHandleStyles, D = r.resizeHandleClasses, y = r.resizeHandleComponent, h = r.enableResizing, d = r.resizeGrid, l = r.resizeHandleWrapperClass, R = r.resizeHandleWrapperStyle, x = r.scale, $ = r.allowAnyClick, B = Hr(r, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]), I = this.props.default ? U({}, this.props.default) : void 0;
|
|
2372
2372
|
delete B.default;
|
|
2373
|
-
var X = n || a ? { cursor: "auto" } : { cursor: "move" },
|
|
2374
|
-
s && (
|
|
2373
|
+
var X = n || a ? { cursor: "auto" } : { cursor: "move" }, k = U(U(U({}, Lr), X), o), q = this.offsetFromParent, V = q.left, ie = q.top, j;
|
|
2374
|
+
s && (j = {
|
|
2375
2375
|
x: s.x - V,
|
|
2376
2376
|
y: s.y - ie
|
|
2377
2377
|
});
|
|
2378
|
-
var Z = this.state.resizing ? void 0 :
|
|
2378
|
+
var Z = this.state.resizing ? void 0 : j, ne = this.state.resizing ? "both" : p;
|
|
2379
2379
|
return qe(
|
|
2380
2380
|
Er,
|
|
2381
2381
|
{
|
|
@@ -2383,7 +2383,7 @@ var Lr = {
|
|
|
2383
2383
|
K && (t.draggable = K);
|
|
2384
2384
|
},
|
|
2385
2385
|
handle: a ? ".".concat(a) : void 0,
|
|
2386
|
-
defaultPosition:
|
|
2386
|
+
defaultPosition: I,
|
|
2387
2387
|
onMouseDown: f,
|
|
2388
2388
|
// @ts-expect-error
|
|
2389
2389
|
onMouseUp: u,
|
|
@@ -2395,15 +2395,15 @@ var Lr = {
|
|
|
2395
2395
|
grid: g,
|
|
2396
2396
|
bounds: b ? this.state.bounds : void 0,
|
|
2397
2397
|
position: Z,
|
|
2398
|
-
enableUserSelectHack:
|
|
2398
|
+
enableUserSelectHack: w,
|
|
2399
2399
|
cancel: z,
|
|
2400
2400
|
scale: x,
|
|
2401
|
-
allowAnyClick:
|
|
2401
|
+
allowAnyClick: $,
|
|
2402
2402
|
nodeRef: this.resizableElement
|
|
2403
2403
|
},
|
|
2404
2404
|
qe(Ar, U({}, B, { ref: function(K) {
|
|
2405
2405
|
K && (t.resizable = K, t.resizableElement.current = K.resizable);
|
|
2406
|
-
}, defaultSize:
|
|
2406
|
+
}, defaultSize: I, size: this.props.size, enable: typeof h == "boolean" ? $r(h) : h, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: k, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.state.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.state.resizing ? this.state.maxHeight : this.props.maxHeight, grid: d, handleWrapperClass: l, handleWrapperStyle: R, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: E, handleClasses: D, handleComponent: y, scale: this.props.scale }), S)
|
|
2407
2407
|
);
|
|
2408
2408
|
}, i.defaultProps = {
|
|
2409
2409
|
maxWidth: Number.MAX_SAFE_INTEGER,
|
|
@@ -2423,24 +2423,33 @@ var Lr = {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
}, i;
|
|
2425
2425
|
}(Pt)
|
|
2426
|
-
),
|
|
2427
|
-
const
|
|
2426
|
+
), jr = /* @__PURE__ */ ((e) => (e[e.truePositive = 0] = "truePositive", e[e.falsePositive = 1] = "falsePositive", e[e.suggestion = 2] = "suggestion", e))(jr || {});
|
|
2427
|
+
const Ir = {
|
|
2428
2428
|
0: "#84cc16",
|
|
2429
2429
|
1: "#cc2216",
|
|
2430
2430
|
2: "#84cc16"
|
|
2431
|
-
},
|
|
2431
|
+
}, Yr = {
|
|
2432
2432
|
0: "#ffffff",
|
|
2433
2433
|
1: "#c95d55",
|
|
2434
2434
|
2: "#3dd8ff"
|
|
2435
2435
|
}, Vr = (e) => {
|
|
2436
2436
|
const [i, t] = Rt(e.initialScale ?? 1);
|
|
2437
|
-
Ct(({ state:
|
|
2438
|
-
t(
|
|
2437
|
+
Ct(({ state: g }) => {
|
|
2438
|
+
t(g.scale);
|
|
2439
2439
|
});
|
|
2440
|
-
let r = e.selected ?
|
|
2440
|
+
let r = e.selected ? Ir[e.type] : Yr[e.type];
|
|
2441
2441
|
const n = e.type !== 1;
|
|
2442
|
-
|
|
2443
|
-
|
|
2442
|
+
e.difficult && (r = e.selected ? "#fae352" : "#ad9e3d");
|
|
2443
|
+
const o = Math.ceil(10 / i), a = o * 2, s = Math.ceil(o / 2), f = s * 2, u = {
|
|
2444
|
+
position: "absolute",
|
|
2445
|
+
userSelect: "none"
|
|
2446
|
+
}, p = {
|
|
2447
|
+
...u,
|
|
2448
|
+
width: `${a.toString()}px`,
|
|
2449
|
+
height: `${a.toString()}px`
|
|
2450
|
+
};
|
|
2451
|
+
return /* @__PURE__ */ Xe(
|
|
2452
|
+
kr,
|
|
2444
2453
|
{
|
|
2445
2454
|
className: `${e.className ?? ""} border-solid`,
|
|
2446
2455
|
style: {
|
|
@@ -2463,6 +2472,64 @@ const Yr = {
|
|
|
2463
2472
|
disableDragging: !n,
|
|
2464
2473
|
enableResizing: n,
|
|
2465
2474
|
onMouseDown: e.onMouseDown,
|
|
2475
|
+
resizeHandleStyles: {
|
|
2476
|
+
right: {
|
|
2477
|
+
...u,
|
|
2478
|
+
width: `${o.toString()}px`,
|
|
2479
|
+
height: "100%",
|
|
2480
|
+
top: "0px",
|
|
2481
|
+
cursor: "col-resize",
|
|
2482
|
+
right: `-${s.toString()}px`
|
|
2483
|
+
},
|
|
2484
|
+
bottom: {
|
|
2485
|
+
...u,
|
|
2486
|
+
width: "100%",
|
|
2487
|
+
height: `${o.toString()}px`,
|
|
2488
|
+
left: "0px",
|
|
2489
|
+
cursor: "row-resize",
|
|
2490
|
+
bottom: `-${s.toString()}px`
|
|
2491
|
+
},
|
|
2492
|
+
left: {
|
|
2493
|
+
...u,
|
|
2494
|
+
width: `${o.toString()}px`,
|
|
2495
|
+
height: "100%",
|
|
2496
|
+
top: "0px",
|
|
2497
|
+
left: `-${s.toString()}px`,
|
|
2498
|
+
cursor: "col-resize"
|
|
2499
|
+
},
|
|
2500
|
+
top: {
|
|
2501
|
+
...u,
|
|
2502
|
+
width: "100%",
|
|
2503
|
+
height: `${o.toString()}px`,
|
|
2504
|
+
left: "0px",
|
|
2505
|
+
cursor: "row-resize",
|
|
2506
|
+
top: `-${s.toString()}px`
|
|
2507
|
+
},
|
|
2508
|
+
bottomRight: {
|
|
2509
|
+
...p,
|
|
2510
|
+
right: `-${f}px`,
|
|
2511
|
+
bottom: `-${f}px`,
|
|
2512
|
+
cursor: "se-resize"
|
|
2513
|
+
},
|
|
2514
|
+
bottomLeft: {
|
|
2515
|
+
...p,
|
|
2516
|
+
left: `-${f}px`,
|
|
2517
|
+
bottom: `-${f}px`,
|
|
2518
|
+
cursor: "sw-resize"
|
|
2519
|
+
},
|
|
2520
|
+
topLeft: {
|
|
2521
|
+
...p,
|
|
2522
|
+
left: `-${f}px`,
|
|
2523
|
+
top: `-${f}px`,
|
|
2524
|
+
cursor: "nw-resize"
|
|
2525
|
+
},
|
|
2526
|
+
topRight: {
|
|
2527
|
+
...p,
|
|
2528
|
+
right: `-${f}px`,
|
|
2529
|
+
top: `-${f}px`,
|
|
2530
|
+
cursor: "ne-resize"
|
|
2531
|
+
}
|
|
2532
|
+
},
|
|
2466
2533
|
children: [
|
|
2467
2534
|
/* @__PURE__ */ he(
|
|
2468
2535
|
"mark",
|
|
@@ -2548,6 +2615,6 @@ const Yr = {
|
|
|
2548
2615
|
};
|
|
2549
2616
|
export {
|
|
2550
2617
|
Vr as BoundingBox,
|
|
2551
|
-
|
|
2618
|
+
jr as BoundingBoxType
|
|
2552
2619
|
};
|
|
2553
2620
|
//# sourceMappingURL=BoundingBox.js.map
|