@annotorious/react 3.0.19 → 3.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotorious-react.es10.js +8 -8
- package/dist/annotorious-react.es11.js.map +1 -1
- package/dist/annotorious-react.es13.js +157 -163
- package/dist/annotorious-react.es13.js.map +1 -1
- package/dist/annotorious-react.es15.js +8 -8
- package/dist/annotorious-react.es16.js +196 -193
- package/dist/annotorious-react.es16.js.map +1 -1
- package/dist/annotorious-react.es17.js +12 -9
- package/dist/annotorious-react.es17.js.map +1 -1
- package/dist/annotorious-react.es19.js +23 -16
- package/dist/annotorious-react.es19.js.map +1 -1
- package/dist/annotorious-react.es2.js +54 -54
- package/dist/annotorious-react.es20.js +328 -528
- package/dist/annotorious-react.es20.js.map +1 -1
- package/dist/annotorious-react.es21.js +36 -36
- package/dist/annotorious-react.es21.js.map +1 -1
- package/dist/annotorious-react.es28.js +184 -184
- package/dist/annotorious-react.es28.js.map +1 -1
- package/dist/annotorious-react.es8.js +3 -3
- package/dist/annotorious-react.es8.js.map +1 -1
- package/package.json +12 -12
|
@@ -1,609 +1,409 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
import
|
|
1
|
+
import { __exports as _ } from "./annotorious-react.es23.js";
|
|
2
|
+
import we from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.development.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
return null;
|
|
19
|
-
|
|
20
|
-
return typeof r == "function" ? r : null;
|
|
21
|
-
}
|
|
22
|
-
var h = Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
23
|
-
function f(e) {
|
|
24
|
-
{
|
|
25
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
26
|
-
t[n - 1] = arguments[n];
|
|
27
|
-
Se("error", e, t);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function Se(e, r, t) {
|
|
31
|
-
{
|
|
32
|
-
var n = h.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
33
|
-
o !== "" && (r += "%s", t = t.concat([o]));
|
|
34
|
-
var u = t.map(function(i) {
|
|
35
|
-
return String(i);
|
|
36
|
-
});
|
|
37
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
var we = !1, Oe = !1, Pe = !1, je = !1, ke = !1, z;
|
|
41
|
-
z = Symbol.for("react.module.reference");
|
|
42
|
-
function xe(e) {
|
|
43
|
-
return !!(typeof e == "string" || typeof e == "function" || e === C || e === N || ke || e === K || e === A || e === D || je || e === me || we || Oe || Pe || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === w || e.$$typeof === G || e.$$typeof === J || e.$$typeof === S || // This needs to include all possible module reference object
|
|
44
|
-
// types supported by any Flight configuration anywhere since
|
|
45
|
-
// we don't know which Flight build this will end up being used
|
|
46
|
-
// with.
|
|
47
|
-
e.$$typeof === z || e.getModuleId !== void 0));
|
|
48
|
-
}
|
|
49
|
-
function Ae(e, r, t) {
|
|
50
|
-
var n = e.displayName;
|
|
51
|
-
if (n)
|
|
52
|
-
return n;
|
|
53
|
-
var o = r.displayName || r.name || "";
|
|
54
|
-
return o !== "" ? t + "(" + o + ")" : t;
|
|
55
|
-
}
|
|
56
|
-
function X(e) {
|
|
57
|
-
return e.displayName || "Context";
|
|
58
|
-
}
|
|
59
|
-
function p(e) {
|
|
60
|
-
if (e == null)
|
|
61
|
-
return null;
|
|
62
|
-
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
63
|
-
return e.displayName || e.name || null;
|
|
64
|
-
if (typeof e == "string")
|
|
65
|
-
return e;
|
|
12
|
+
var ue;
|
|
13
|
+
function he() {
|
|
14
|
+
return ue ? _ : (ue = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15
|
+
function s(e) {
|
|
16
|
+
if (e == null) return null;
|
|
17
|
+
if (typeof e == "function")
|
|
18
|
+
return e.$$typeof === me ? null : e.displayName || e.name || null;
|
|
19
|
+
if (typeof e == "string") return e;
|
|
66
20
|
switch (e) {
|
|
67
|
-
case
|
|
21
|
+
case j:
|
|
68
22
|
return "Fragment";
|
|
69
|
-
case
|
|
23
|
+
case ge:
|
|
70
24
|
return "Portal";
|
|
71
|
-
case N:
|
|
72
|
-
return "Profiler";
|
|
73
25
|
case K:
|
|
26
|
+
return "Profiler";
|
|
27
|
+
case H:
|
|
74
28
|
return "StrictMode";
|
|
75
29
|
case A:
|
|
76
30
|
return "Suspense";
|
|
77
|
-
case
|
|
31
|
+
case R:
|
|
78
32
|
return "SuspenseList";
|
|
79
33
|
}
|
|
80
34
|
if (typeof e == "object")
|
|
81
|
-
switch (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return
|
|
35
|
+
switch (typeof e.tag == "number" && console.error(
|
|
36
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
37
|
+
), e.$$typeof) {
|
|
38
|
+
case q:
|
|
39
|
+
return (e.displayName || "Context") + ".Provider";
|
|
40
|
+
case X:
|
|
41
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
88
42
|
case S:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return
|
|
93
|
-
case
|
|
94
|
-
|
|
43
|
+
var r = e.render;
|
|
44
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
45
|
+
case k:
|
|
46
|
+
return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
|
|
47
|
+
case p:
|
|
48
|
+
r = e._payload, e = e._init;
|
|
95
49
|
try {
|
|
96
|
-
return
|
|
50
|
+
return s(e(r));
|
|
97
51
|
} catch {
|
|
98
|
-
return null;
|
|
99
52
|
}
|
|
100
|
-
}
|
|
101
53
|
}
|
|
102
54
|
return null;
|
|
103
55
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
ae.__reactDisabledLog = !0;
|
|
108
|
-
function De() {
|
|
109
|
-
{
|
|
110
|
-
if (R === 0) {
|
|
111
|
-
H = console.log, Z = console.info, Q = console.warn, ee = console.error, re = console.group, te = console.groupCollapsed, ne = console.groupEnd;
|
|
112
|
-
var e = {
|
|
113
|
-
configurable: !0,
|
|
114
|
-
enumerable: !0,
|
|
115
|
-
value: ae,
|
|
116
|
-
writable: !0
|
|
117
|
-
};
|
|
118
|
-
Object.defineProperties(console, {
|
|
119
|
-
info: e,
|
|
120
|
-
log: e,
|
|
121
|
-
warn: e,
|
|
122
|
-
error: e,
|
|
123
|
-
group: e,
|
|
124
|
-
groupCollapsed: e,
|
|
125
|
-
groupEnd: e
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
R++;
|
|
129
|
-
}
|
|
56
|
+
function M(e) {
|
|
57
|
+
return "" + e;
|
|
130
58
|
}
|
|
131
|
-
function
|
|
132
|
-
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
writable: !0
|
|
138
|
-
};
|
|
139
|
-
Object.defineProperties(console, {
|
|
140
|
-
log: g({}, e, {
|
|
141
|
-
value: H
|
|
142
|
-
}),
|
|
143
|
-
info: g({}, e, {
|
|
144
|
-
value: Z
|
|
145
|
-
}),
|
|
146
|
-
warn: g({}, e, {
|
|
147
|
-
value: Q
|
|
148
|
-
}),
|
|
149
|
-
error: g({}, e, {
|
|
150
|
-
value: ee
|
|
151
|
-
}),
|
|
152
|
-
group: g({}, e, {
|
|
153
|
-
value: re
|
|
154
|
-
}),
|
|
155
|
-
groupCollapsed: g({}, e, {
|
|
156
|
-
value: te
|
|
157
|
-
}),
|
|
158
|
-
groupEnd: g({}, e, {
|
|
159
|
-
value: ne
|
|
160
|
-
})
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
59
|
+
function W(e) {
|
|
60
|
+
try {
|
|
61
|
+
M(e);
|
|
62
|
+
var r = !1;
|
|
63
|
+
} catch {
|
|
64
|
+
r = !0;
|
|
164
65
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
174
|
-
W = n && n[1] || "";
|
|
175
|
-
}
|
|
176
|
-
return `
|
|
177
|
-
` + W + e;
|
|
66
|
+
if (r) {
|
|
67
|
+
r = console;
|
|
68
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
69
|
+
return t.call(
|
|
70
|
+
r,
|
|
71
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
72
|
+
n
|
|
73
|
+
), M(e);
|
|
178
74
|
}
|
|
179
75
|
}
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
var Ie = typeof WeakMap == "function" ? WeakMap : Map;
|
|
183
|
-
P = new Ie();
|
|
76
|
+
function $() {
|
|
184
77
|
}
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
78
|
+
function le() {
|
|
79
|
+
if (v === 0) {
|
|
80
|
+
Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
|
|
81
|
+
var e = {
|
|
82
|
+
configurable: !0,
|
|
83
|
+
enumerable: !0,
|
|
84
|
+
value: $,
|
|
85
|
+
writable: !0
|
|
86
|
+
};
|
|
87
|
+
Object.defineProperties(console, {
|
|
88
|
+
info: e,
|
|
89
|
+
log: e,
|
|
90
|
+
warn: e,
|
|
91
|
+
error: e,
|
|
92
|
+
group: e,
|
|
93
|
+
groupCollapsed: e,
|
|
94
|
+
groupEnd: e
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
v++;
|
|
98
|
+
}
|
|
99
|
+
function fe() {
|
|
100
|
+
if (v--, v === 0) {
|
|
101
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
102
|
+
Object.defineProperties(console, {
|
|
103
|
+
log: E({}, e, { value: Z }),
|
|
104
|
+
info: E({}, e, { value: F }),
|
|
105
|
+
warn: E({}, e, { value: I }),
|
|
106
|
+
error: E({}, e, { value: L }),
|
|
107
|
+
group: E({}, e, { value: Q }),
|
|
108
|
+
groupCollapsed: E({}, e, { value: D }),
|
|
109
|
+
groupEnd: E({}, e, { value: ee })
|
|
110
|
+
});
|
|
192
111
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
112
|
+
0 > v && console.error(
|
|
113
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
function y(e) {
|
|
117
|
+
if (x === void 0)
|
|
118
|
+
try {
|
|
119
|
+
throw Error();
|
|
120
|
+
} catch (t) {
|
|
121
|
+
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
122
|
+
x = r && r[1] || "", re = -1 < t.stack.indexOf(`
|
|
123
|
+
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
124
|
+
}
|
|
125
|
+
return `
|
|
126
|
+
` + x + e + re;
|
|
127
|
+
}
|
|
128
|
+
function U(e, r) {
|
|
129
|
+
if (!e || P) return "";
|
|
130
|
+
var t = Y.get(e);
|
|
131
|
+
if (t !== void 0) return t;
|
|
132
|
+
P = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
133
|
+
var n = null;
|
|
134
|
+
n = d.H, d.H = null, le();
|
|
199
135
|
try {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
throw Error();
|
|
203
|
-
};
|
|
204
|
-
if (Object.defineProperty(i.prototype, "props", {
|
|
205
|
-
set: function() {
|
|
206
|
-
throw Error();
|
|
207
|
-
}
|
|
208
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
136
|
+
var u = {
|
|
137
|
+
DetermineComponentFrameRoot: function() {
|
|
209
138
|
try {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
139
|
+
if (r) {
|
|
140
|
+
var i = function() {
|
|
141
|
+
throw Error();
|
|
142
|
+
};
|
|
143
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
144
|
+
set: function() {
|
|
145
|
+
throw Error();
|
|
146
|
+
}
|
|
147
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
148
|
+
try {
|
|
149
|
+
Reflect.construct(i, []);
|
|
150
|
+
} catch (c) {
|
|
151
|
+
var w = c;
|
|
152
|
+
}
|
|
153
|
+
Reflect.construct(e, [], i);
|
|
154
|
+
} else {
|
|
155
|
+
try {
|
|
156
|
+
i.call();
|
|
157
|
+
} catch (c) {
|
|
158
|
+
w = c;
|
|
159
|
+
}
|
|
160
|
+
e.call(i.prototype);
|
|
161
|
+
}
|
|
162
|
+
} else {
|
|
163
|
+
try {
|
|
164
|
+
throw Error();
|
|
165
|
+
} catch (c) {
|
|
166
|
+
w = c;
|
|
167
|
+
}
|
|
168
|
+
(i = e()) && typeof i.catch == "function" && i.catch(function() {
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
} catch (c) {
|
|
172
|
+
if (c && w && typeof c.stack == "string")
|
|
173
|
+
return [c.stack, w.stack];
|
|
220
174
|
}
|
|
221
|
-
|
|
175
|
+
return [null, null];
|
|
222
176
|
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
177
|
+
};
|
|
178
|
+
u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
179
|
+
var a = Object.getOwnPropertyDescriptor(
|
|
180
|
+
u.DetermineComponentFrameRoot,
|
|
181
|
+
"name"
|
|
182
|
+
);
|
|
183
|
+
a && a.configurable && Object.defineProperty(
|
|
184
|
+
u.DetermineComponentFrameRoot,
|
|
185
|
+
"name",
|
|
186
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
187
|
+
);
|
|
188
|
+
var o = u.DetermineComponentFrameRoot(), f = o[0], g = o[1];
|
|
189
|
+
if (f && g) {
|
|
190
|
+
var l = f.split(`
|
|
191
|
+
`), b = g.split(`
|
|
192
|
+
`);
|
|
193
|
+
for (o = a = 0; a < l.length && !l[a].includes(
|
|
194
|
+
"DetermineComponentFrameRoot"
|
|
195
|
+
); )
|
|
196
|
+
a++;
|
|
197
|
+
for (; o < b.length && !b[o].includes(
|
|
198
|
+
"DetermineComponentFrameRoot"
|
|
199
|
+
); )
|
|
200
|
+
o++;
|
|
201
|
+
if (a === l.length || o === b.length)
|
|
202
|
+
for (a = l.length - 1, o = b.length - 1; 1 <= a && 0 <= o && l[a] !== b[o]; )
|
|
203
|
+
o--;
|
|
204
|
+
for (; 1 <= a && 0 <= o; a--, o--)
|
|
205
|
+
if (l[a] !== b[o]) {
|
|
206
|
+
if (a !== 1 || o !== 1)
|
|
240
207
|
do
|
|
241
|
-
if (
|
|
242
|
-
var
|
|
243
|
-
` + a
|
|
244
|
-
|
|
208
|
+
if (a--, o--, 0 > o || l[a] !== b[o]) {
|
|
209
|
+
var m = `
|
|
210
|
+
` + l[a].replace(
|
|
211
|
+
" at new ",
|
|
212
|
+
" at "
|
|
213
|
+
);
|
|
214
|
+
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
|
|
245
215
|
}
|
|
246
|
-
while (
|
|
216
|
+
while (1 <= a && 0 <= o);
|
|
247
217
|
break;
|
|
248
218
|
}
|
|
249
219
|
}
|
|
250
220
|
} finally {
|
|
251
|
-
|
|
221
|
+
P = !1, d.H = n, fe(), Error.prepareStackTrace = t;
|
|
252
222
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (e ==
|
|
265
|
-
return "";
|
|
266
|
-
if (typeof e == "function")
|
|
267
|
-
return ie(e, Ye(e));
|
|
268
|
-
if (typeof e == "string")
|
|
269
|
-
return O(e);
|
|
223
|
+
return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
|
|
224
|
+
}
|
|
225
|
+
function T(e) {
|
|
226
|
+
if (e == null) return "";
|
|
227
|
+
if (typeof e == "function") {
|
|
228
|
+
var r = e.prototype;
|
|
229
|
+
return U(
|
|
230
|
+
e,
|
|
231
|
+
!(!r || !r.isReactComponent)
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
if (typeof e == "string") return y(e);
|
|
270
235
|
switch (e) {
|
|
271
236
|
case A:
|
|
272
|
-
return
|
|
273
|
-
case
|
|
274
|
-
return
|
|
237
|
+
return y("Suspense");
|
|
238
|
+
case R:
|
|
239
|
+
return y("SuspenseList");
|
|
275
240
|
}
|
|
276
241
|
if (typeof e == "object")
|
|
277
242
|
switch (e.$$typeof) {
|
|
278
243
|
case S:
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
282
|
-
case
|
|
283
|
-
|
|
244
|
+
return e = U(e.render, !1), e;
|
|
245
|
+
case k:
|
|
246
|
+
return T(e.type);
|
|
247
|
+
case p:
|
|
248
|
+
r = e._payload, e = e._init;
|
|
284
249
|
try {
|
|
285
|
-
return
|
|
250
|
+
return T(e(r));
|
|
286
251
|
} catch {
|
|
287
252
|
}
|
|
288
|
-
}
|
|
289
253
|
}
|
|
290
254
|
return "";
|
|
291
255
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var r = e._owner, t = j(e.type, e._source, r ? r.type : null);
|
|
296
|
-
ue.setExtraStackFrame(t);
|
|
297
|
-
} else
|
|
298
|
-
ue.setExtraStackFrame(null);
|
|
299
|
-
}
|
|
300
|
-
function $e(e, r, t, n, o) {
|
|
301
|
-
{
|
|
302
|
-
var u = Function.call.bind(_);
|
|
303
|
-
for (var i in e)
|
|
304
|
-
if (u(e, i)) {
|
|
305
|
-
var a = void 0;
|
|
306
|
-
try {
|
|
307
|
-
if (typeof e[i] != "function") {
|
|
308
|
-
var c = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
309
|
-
throw c.name = "Invariant Violation", c;
|
|
310
|
-
}
|
|
311
|
-
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
312
|
-
} catch (s) {
|
|
313
|
-
a = s;
|
|
314
|
-
}
|
|
315
|
-
a && !(a instanceof Error) && (k(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), k(null)), a instanceof Error && !(a.message in oe) && (oe[a.message] = !0, k(o), f("Failed %s type: %s", t, a.message), k(null));
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
var Me = Array.isArray;
|
|
320
|
-
function $(e) {
|
|
321
|
-
return Me(e);
|
|
322
|
-
}
|
|
323
|
-
function Ve(e) {
|
|
324
|
-
{
|
|
325
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
326
|
-
return t;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function Le(e) {
|
|
330
|
-
try {
|
|
331
|
-
return se(e), !1;
|
|
332
|
-
} catch {
|
|
333
|
-
return !0;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
function se(e) {
|
|
337
|
-
return "" + e;
|
|
256
|
+
function C() {
|
|
257
|
+
var e = d.A;
|
|
258
|
+
return e === null ? null : e.getOwner();
|
|
338
259
|
}
|
|
339
|
-
function
|
|
340
|
-
if (
|
|
341
|
-
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), se(e);
|
|
342
|
-
}
|
|
343
|
-
var m = h.ReactCurrentOwner, Ue = {
|
|
344
|
-
key: !0,
|
|
345
|
-
ref: !0,
|
|
346
|
-
__self: !0,
|
|
347
|
-
__source: !0
|
|
348
|
-
}, fe, ce, M;
|
|
349
|
-
M = {};
|
|
350
|
-
function Be(e) {
|
|
351
|
-
if (_.call(e, "ref")) {
|
|
352
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
353
|
-
if (r && r.isReactWarning)
|
|
354
|
-
return !1;
|
|
355
|
-
}
|
|
356
|
-
return e.ref !== void 0;
|
|
357
|
-
}
|
|
358
|
-
function Ke(e) {
|
|
359
|
-
if (_.call(e, "key")) {
|
|
260
|
+
function ce(e) {
|
|
261
|
+
if (J.call(e, "key")) {
|
|
360
262
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
361
|
-
if (r && r.isReactWarning)
|
|
362
|
-
return !1;
|
|
263
|
+
if (r && r.isReactWarning) return !1;
|
|
363
264
|
}
|
|
364
265
|
return e.key !== void 0;
|
|
365
266
|
}
|
|
366
|
-
function
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
function Ge(e, r) {
|
|
373
|
-
{
|
|
374
|
-
var t = function() {
|
|
375
|
-
fe || (fe = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
376
|
-
};
|
|
377
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
378
|
-
get: t,
|
|
379
|
-
configurable: !0
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function Je(e, r) {
|
|
384
|
-
{
|
|
385
|
-
var t = function() {
|
|
386
|
-
ce || (ce = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
387
|
-
};
|
|
388
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
389
|
-
get: t,
|
|
390
|
-
configurable: !0
|
|
391
|
-
});
|
|
267
|
+
function se(e, r) {
|
|
268
|
+
function t() {
|
|
269
|
+
te || (te = !0, console.error(
|
|
270
|
+
"%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)",
|
|
271
|
+
r
|
|
272
|
+
));
|
|
392
273
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
274
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
275
|
+
get: t,
|
|
276
|
+
configurable: !0
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
function ie() {
|
|
280
|
+
var e = s(this.type);
|
|
281
|
+
return oe[e] || (oe[e] = !0, console.error(
|
|
282
|
+
"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."
|
|
283
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
284
|
+
}
|
|
285
|
+
function de(e, r, t, n, u, a) {
|
|
286
|
+
return t = a.ref, e = {
|
|
287
|
+
$$typeof: O,
|
|
399
288
|
type: e,
|
|
400
289
|
key: r,
|
|
401
|
-
|
|
402
|
-
props: i,
|
|
403
|
-
// Record the component responsible for creating this element.
|
|
290
|
+
props: a,
|
|
404
291
|
_owner: u
|
|
405
|
-
}
|
|
406
|
-
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
407
|
-
configurable: !1,
|
|
292
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
408
293
|
enumerable: !1,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}), Object.defineProperty(a, "_self", {
|
|
294
|
+
get: ie
|
|
295
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
412
296
|
configurable: !1,
|
|
413
297
|
enumerable: !1,
|
|
414
|
-
writable: !
|
|
415
|
-
value:
|
|
416
|
-
}), Object.defineProperty(
|
|
298
|
+
writable: !0,
|
|
299
|
+
value: 0
|
|
300
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
417
301
|
configurable: !1,
|
|
418
302
|
enumerable: !1,
|
|
419
|
-
writable: !
|
|
420
|
-
value:
|
|
421
|
-
}), Object.freeze && (Object.freeze(
|
|
422
|
-
}
|
|
423
|
-
function
|
|
424
|
-
{
|
|
425
|
-
var
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
return qe(e, a, c, o, n, m.current, i);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
var V = h.ReactCurrentOwner, ve = h.ReactDebugCurrentFrame;
|
|
442
|
-
function y(e) {
|
|
443
|
-
if (e) {
|
|
444
|
-
var r = e._owner, t = j(e.type, e._source, r ? r.type : null);
|
|
445
|
-
ve.setExtraStackFrame(t);
|
|
303
|
+
writable: !0,
|
|
304
|
+
value: null
|
|
305
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
306
|
+
}
|
|
307
|
+
function z(e, r, t, n, u, a) {
|
|
308
|
+
if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ve || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
|
|
309
|
+
var o = r.children;
|
|
310
|
+
if (o !== void 0)
|
|
311
|
+
if (n)
|
|
312
|
+
if (N(o)) {
|
|
313
|
+
for (n = 0; n < o.length; n++)
|
|
314
|
+
V(o[n], e);
|
|
315
|
+
Object.freeze && Object.freeze(o);
|
|
316
|
+
} else
|
|
317
|
+
console.error(
|
|
318
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
319
|
+
);
|
|
320
|
+
else V(o, e);
|
|
446
321
|
} else
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
return `
|
|
460
|
-
|
|
461
|
-
Check the render method of \`` + e + "`.";
|
|
462
|
-
}
|
|
463
|
-
return "";
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
function Xe(e) {
|
|
467
|
-
return "";
|
|
468
|
-
}
|
|
469
|
-
var pe = {};
|
|
470
|
-
function He(e) {
|
|
471
|
-
{
|
|
472
|
-
var r = de();
|
|
473
|
-
if (!r) {
|
|
474
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
475
|
-
t && (r = `
|
|
476
|
-
|
|
477
|
-
Check the top-level render call using <` + t + ">.");
|
|
478
|
-
}
|
|
479
|
-
return r;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
function ge(e, r) {
|
|
483
|
-
{
|
|
484
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
485
|
-
return;
|
|
486
|
-
e._store.validated = !0;
|
|
487
|
-
var t = He(r);
|
|
488
|
-
if (pe[t])
|
|
489
|
-
return;
|
|
490
|
-
pe[t] = !0;
|
|
491
|
-
var n = "";
|
|
492
|
-
e && e._owner && e._owner !== V.current && (n = " It was passed a child from " + p(e._owner.type) + "."), y(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), y(null);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
function be(e, r) {
|
|
496
|
-
{
|
|
497
|
-
if (typeof e != "object")
|
|
498
|
-
return;
|
|
499
|
-
if ($(e))
|
|
500
|
-
for (var t = 0; t < e.length; t++) {
|
|
501
|
-
var n = e[t];
|
|
502
|
-
U(n) && ge(n, r);
|
|
503
|
-
}
|
|
504
|
-
else if (U(e))
|
|
505
|
-
e._store && (e._store.validated = !0);
|
|
506
|
-
else if (e) {
|
|
507
|
-
var o = Ce(e);
|
|
508
|
-
if (typeof o == "function" && o !== e.entries)
|
|
509
|
-
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
510
|
-
U(i.value) && ge(i.value, r);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
function Ze(e) {
|
|
515
|
-
{
|
|
516
|
-
var r = e.type;
|
|
517
|
-
if (r == null || typeof r == "string")
|
|
518
|
-
return;
|
|
519
|
-
var t;
|
|
520
|
-
if (typeof r == "function")
|
|
521
|
-
t = r.propTypes;
|
|
522
|
-
else if (typeof r == "object" && (r.$$typeof === S || // Note: Memo only checks outer props here.
|
|
523
|
-
// Inner props are checked in the reconciler.
|
|
524
|
-
r.$$typeof === w))
|
|
525
|
-
t = r.propTypes;
|
|
526
|
-
else
|
|
527
|
-
return;
|
|
528
|
-
if (t) {
|
|
529
|
-
var n = p(r);
|
|
530
|
-
$e(t, e.props, "prop", n, e);
|
|
531
|
-
} else if (r.PropTypes !== void 0 && !L) {
|
|
532
|
-
L = !0;
|
|
533
|
-
var o = p(r);
|
|
534
|
-
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
535
|
-
}
|
|
536
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
function Qe(e) {
|
|
540
|
-
{
|
|
541
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
542
|
-
var n = r[t];
|
|
543
|
-
if (n !== "children" && n !== "key") {
|
|
544
|
-
y(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), y(null);
|
|
545
|
-
break;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
e.ref !== null && (y(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), y(null));
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
var he = {};
|
|
552
|
-
function ye(e, r, t, n, o, u) {
|
|
553
|
-
{
|
|
554
|
-
var i = xe(e);
|
|
555
|
-
if (!i) {
|
|
556
|
-
var a = "";
|
|
557
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
558
|
-
var c = Xe();
|
|
559
|
-
c ? a += c : a += de();
|
|
560
|
-
var s;
|
|
561
|
-
e === null ? s = "null" : $(e) ? s = "array" : e !== void 0 && e.$$typeof === x ? (s = "<" + (p(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
562
|
-
}
|
|
563
|
-
var l = ze(e, r, t, o, u);
|
|
564
|
-
if (l == null)
|
|
565
|
-
return l;
|
|
566
|
-
if (i) {
|
|
567
|
-
var d = r.children;
|
|
568
|
-
if (d !== void 0)
|
|
569
|
-
if (n)
|
|
570
|
-
if ($(d)) {
|
|
571
|
-
for (var E = 0; E < d.length; E++)
|
|
572
|
-
be(d[E], e);
|
|
573
|
-
Object.freeze && Object.freeze(d);
|
|
574
|
-
} else
|
|
575
|
-
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
576
|
-
else
|
|
577
|
-
be(d, e);
|
|
578
|
-
}
|
|
579
|
-
if (_.call(r, "key")) {
|
|
580
|
-
var b = p(e), v = Object.keys(r).filter(function(ir) {
|
|
581
|
-
return ir !== "key";
|
|
582
|
-
}), B = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
583
|
-
if (!he[b + B]) {
|
|
584
|
-
var ar = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
|
|
585
|
-
f(`A props object containing a "key" prop is being spread into JSX:
|
|
322
|
+
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
|
|
323
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
324
|
+
n,
|
|
325
|
+
o
|
|
326
|
+
);
|
|
327
|
+
if (J.call(r, "key")) {
|
|
328
|
+
o = s(e);
|
|
329
|
+
var f = Object.keys(r).filter(function(l) {
|
|
330
|
+
return l !== "key";
|
|
331
|
+
});
|
|
332
|
+
n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
333
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
586
334
|
let props = %s;
|
|
587
335
|
<%s {...props} />
|
|
588
336
|
React keys must be passed directly to JSX without using spread:
|
|
589
337
|
let props = %s;
|
|
590
|
-
<%s key={someKey} {...props} />`,
|
|
338
|
+
<%s key={someKey} {...props} />`,
|
|
339
|
+
n,
|
|
340
|
+
o,
|
|
341
|
+
f,
|
|
342
|
+
o
|
|
343
|
+
), ne[o + n] = !0);
|
|
344
|
+
}
|
|
345
|
+
if (o = null, t !== void 0 && (W(t), o = "" + t), ce(r) && (W(r.key), o = "" + r.key), "key" in r) {
|
|
346
|
+
t = {};
|
|
347
|
+
for (var g in r)
|
|
348
|
+
g !== "key" && (t[g] = r[g]);
|
|
349
|
+
} else t = r;
|
|
350
|
+
return o && se(
|
|
351
|
+
t,
|
|
352
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
353
|
+
), de(e, o, a, u, C(), t);
|
|
354
|
+
}
|
|
355
|
+
function V(e, r) {
|
|
356
|
+
if (typeof e == "object" && e && e.$$typeof !== ye) {
|
|
357
|
+
if (N(e))
|
|
358
|
+
for (var t = 0; t < e.length; t++) {
|
|
359
|
+
var n = e[t];
|
|
360
|
+
h(n) && G(n, r);
|
|
591
361
|
}
|
|
592
|
-
|
|
593
|
-
|
|
362
|
+
else if (h(e))
|
|
363
|
+
e._store && (e._store.validated = 1);
|
|
364
|
+
else if (e === null || typeof e != "object" ? t = null : (t = B && e[B] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
365
|
+
for (; !(e = t.next()).done; )
|
|
366
|
+
h(e.value) && G(e.value, r);
|
|
594
367
|
}
|
|
595
368
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
598
|
-
}
|
|
599
|
-
function
|
|
600
|
-
|
|
369
|
+
function h(e) {
|
|
370
|
+
return typeof e == "object" && e !== null && e.$$typeof === O;
|
|
371
|
+
}
|
|
372
|
+
function G(e, r) {
|
|
373
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ee(r), !ae[r])) {
|
|
374
|
+
ae[r] = !0;
|
|
375
|
+
var t = "";
|
|
376
|
+
e && e._owner != null && e._owner !== C() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
377
|
+
var n = d.getCurrentStack;
|
|
378
|
+
d.getCurrentStack = function() {
|
|
379
|
+
var u = T(e.type);
|
|
380
|
+
return n && (u += n() || ""), u;
|
|
381
|
+
}, console.error(
|
|
382
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
383
|
+
r,
|
|
384
|
+
t
|
|
385
|
+
), d.getCurrentStack = n;
|
|
386
|
+
}
|
|
601
387
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
388
|
+
function Ee(e) {
|
|
389
|
+
var r = "", t = C();
|
|
390
|
+
return t && (t = s(t.type)) && (r = `
|
|
391
|
+
|
|
392
|
+
Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
|
|
393
|
+
|
|
394
|
+
Check the top-level render call using <` + e + ">."), r;
|
|
395
|
+
}
|
|
396
|
+
var be = we, O = Symbol.for("react.transitional.element"), ge = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), d = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, E = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, v = 0, Z, F, I, L, Q, D, ee;
|
|
397
|
+
$.__reactDisabledLog = !0;
|
|
398
|
+
var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), te, oe = {}, ne = {}, ae = {};
|
|
399
|
+
_.Fragment = j, _.jsx = function(e, r, t, n, u) {
|
|
400
|
+
return z(e, r, t, !1, n, u);
|
|
401
|
+
}, _.jsxs = function(e, r, t, n, u) {
|
|
402
|
+
return z(e, r, t, !0, n, u);
|
|
403
|
+
};
|
|
404
|
+
}(), _);
|
|
605
405
|
}
|
|
606
406
|
export {
|
|
607
|
-
|
|
407
|
+
he as __require
|
|
608
408
|
};
|
|
609
409
|
//# sourceMappingURL=annotorious-react.es20.js.map
|