@documenso/embed-react 0.0.1 → 0.0.2-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,2184 +1,80 @@
1
- var Vr = { exports: {} }, Je = {}, Yr = { exports: {} }, g = {};
2
- /**
3
- * @license React
4
- * react.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- var pt;
12
- function Wt() {
13
- if (pt) return g;
14
- pt = 1;
15
- var l = Symbol.for("react.element"), v = Symbol.for("react.portal"), oe = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), W = Symbol.for("react.provider"), U = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), X = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), K = Symbol.iterator;
16
- function ae(n) {
17
- return n === null || typeof n != "object" ? null : (n = K && n[K] || n["@@iterator"], typeof n == "function" ? n : null);
18
- }
19
- var re = { isMounted: function() {
20
- return !1;
21
- }, enqueueForceUpdate: function() {
22
- }, enqueueReplaceState: function() {
23
- }, enqueueSetState: function() {
24
- } }, fe = Object.assign, Fe = {};
25
- function ue(n, i, _) {
26
- this.props = n, this.context = i, this.refs = Fe, this.updater = _ || re;
27
- }
28
- ue.prototype.isReactComponent = {}, ue.prototype.setState = function(n, i) {
29
- if (typeof n != "object" && typeof n != "function" && n != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
30
- this.updater.enqueueSetState(this, n, i, "setState");
31
- }, ue.prototype.forceUpdate = function(n) {
32
- this.updater.enqueueForceUpdate(this, n, "forceUpdate");
33
- };
34
- function ie() {
35
- }
36
- ie.prototype = ue.prototype;
37
- function F(n, i, _) {
38
- this.props = n, this.context = i, this.refs = Fe, this.updater = _ || re;
39
- }
40
- var ge = F.prototype = new ie();
41
- ge.constructor = F, fe(ge, ue.prototype), ge.isPureReactComponent = !0;
42
- var se = Array.isArray, V = Object.prototype.hasOwnProperty, ee = { current: null }, le = { key: !0, ref: !0, __self: !0, __source: !0 };
43
- function pe(n, i, _) {
44
- var E, w = {}, A = null, P = null;
45
- if (i != null) for (E in i.ref !== void 0 && (P = i.ref), i.key !== void 0 && (A = "" + i.key), i) V.call(i, E) && !le.hasOwnProperty(E) && (w[E] = i[E]);
46
- var O = arguments.length - 2;
47
- if (O === 1) w.children = _;
48
- else if (1 < O) {
49
- for (var S = Array(O), Y = 0; Y < O; Y++) S[Y] = arguments[Y + 2];
50
- w.children = S;
51
- }
52
- if (n && n.defaultProps) for (E in O = n.defaultProps, O) w[E] === void 0 && (w[E] = O[E]);
53
- return { $$typeof: l, type: n, key: A, ref: P, props: w, _owner: ee.current };
54
- }
55
- function Se(n, i) {
56
- return { $$typeof: l, type: n.type, key: i, ref: n.ref, props: n.props, _owner: n._owner };
57
- }
58
- function Te(n) {
59
- return typeof n == "object" && n !== null && n.$$typeof === l;
60
- }
61
- function Be(n) {
62
- var i = { "=": "=0", ":": "=2" };
63
- return "$" + n.replace(/[=:]/g, function(_) {
64
- return i[_];
65
- });
66
- }
67
- var Oe = /\/+/g;
68
- function Q(n, i) {
69
- return typeof n == "object" && n !== null && n.key != null ? Be("" + n.key) : i.toString(36);
70
- }
71
- function te(n, i, _, E, w) {
72
- var A = typeof n;
73
- (A === "undefined" || A === "boolean") && (n = null);
74
- var P = !1;
75
- if (n === null) P = !0;
76
- else switch (A) {
77
- case "string":
78
- case "number":
79
- P = !0;
80
- break;
81
- case "object":
82
- switch (n.$$typeof) {
83
- case l:
84
- case v:
85
- P = !0;
86
- }
87
- }
88
- if (P) return P = n, w = w(P), n = E === "" ? "." + Q(P, 0) : E, se(w) ? (_ = "", n != null && (_ = n.replace(Oe, "$&/") + "/"), te(w, i, _, "", function(Y) {
89
- return Y;
90
- })) : w != null && (Te(w) && (w = Se(w, _ + (!w.key || P && P.key === w.key ? "" : ("" + w.key).replace(Oe, "$&/") + "/") + n)), i.push(w)), 1;
91
- if (P = 0, E = E === "" ? "." : E + ":", se(n)) for (var O = 0; O < n.length; O++) {
92
- A = n[O];
93
- var S = E + Q(A, O);
94
- P += te(A, i, _, S, w);
95
- }
96
- else if (S = ae(n), typeof S == "function") for (n = S.call(n), O = 0; !(A = n.next()).done; ) A = A.value, S = E + Q(A, O++), P += te(A, i, _, S, w);
97
- else if (A === "object") throw i = String(n), Error("Objects are not valid as a React child (found: " + (i === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : i) + "). If you meant to render a collection of children, use an array instead.");
98
- return P;
99
- }
100
- function H(n, i, _) {
101
- if (n == null) return n;
102
- var E = [], w = 0;
103
- return te(n, E, "", "", function(A) {
104
- return i.call(_, A, w++);
105
- }), E;
106
- }
107
- function ce(n) {
108
- if (n._status === -1) {
109
- var i = n._result;
110
- i = i(), i.then(function(_) {
111
- (n._status === 0 || n._status === -1) && (n._status = 1, n._result = _);
112
- }, function(_) {
113
- (n._status === 0 || n._status === -1) && (n._status = 2, n._result = _);
114
- }), n._status === -1 && (n._status = 0, n._result = i);
115
- }
116
- if (n._status === 1) return n._result.default;
117
- throw n._result;
118
- }
119
- var d = { current: null }, de = { transition: null }, ke = { ReactCurrentDispatcher: d, ReactCurrentBatchConfig: de, ReactCurrentOwner: ee };
120
- function ye() {
121
- throw Error("act(...) is not supported in production builds of React.");
122
- }
123
- return g.Children = { map: H, forEach: function(n, i, _) {
124
- H(n, function() {
125
- i.apply(this, arguments);
126
- }, _);
127
- }, count: function(n) {
128
- var i = 0;
129
- return H(n, function() {
130
- i++;
131
- }), i;
132
- }, toArray: function(n) {
133
- return H(n, function(i) {
134
- return i;
135
- }) || [];
136
- }, only: function(n) {
137
- if (!Te(n)) throw Error("React.Children.only expected to receive a single React element child.");
138
- return n;
139
- } }, g.Component = ue, g.Fragment = oe, g.Profiler = $, g.PureComponent = F, g.StrictMode = z, g.Suspense = k, g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ke, g.act = ye, g.cloneElement = function(n, i, _) {
140
- if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
141
- var E = fe({}, n.props), w = n.key, A = n.ref, P = n._owner;
142
- if (i != null) {
143
- if (i.ref !== void 0 && (A = i.ref, P = ee.current), i.key !== void 0 && (w = "" + i.key), n.type && n.type.defaultProps) var O = n.type.defaultProps;
144
- for (S in i) V.call(i, S) && !le.hasOwnProperty(S) && (E[S] = i[S] === void 0 && O !== void 0 ? O[S] : i[S]);
145
- }
146
- var S = arguments.length - 2;
147
- if (S === 1) E.children = _;
148
- else if (1 < S) {
149
- O = Array(S);
150
- for (var Y = 0; Y < S; Y++) O[Y] = arguments[Y + 2];
151
- E.children = O;
152
- }
153
- return { $$typeof: l, type: n.type, key: w, ref: A, props: E, _owner: P };
154
- }, g.createContext = function(n) {
155
- return n = { $$typeof: U, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: W, _context: n }, n.Consumer = n;
156
- }, g.createElement = pe, g.createFactory = function(n) {
157
- var i = pe.bind(null, n);
158
- return i.type = n, i;
159
- }, g.createRef = function() {
160
- return { current: null };
161
- }, g.forwardRef = function(n) {
162
- return { $$typeof: q, render: n };
163
- }, g.isValidElement = Te, g.lazy = function(n) {
164
- return { $$typeof: D, _payload: { _status: -1, _result: n }, _init: ce };
165
- }, g.memo = function(n, i) {
166
- return { $$typeof: X, type: n, compare: i === void 0 ? null : i };
167
- }, g.startTransition = function(n) {
168
- var i = de.transition;
169
- de.transition = {};
170
- try {
171
- n();
172
- } finally {
173
- de.transition = i;
174
- }
175
- }, g.unstable_act = ye, g.useCallback = function(n, i) {
176
- return d.current.useCallback(n, i);
177
- }, g.useContext = function(n) {
178
- return d.current.useContext(n);
179
- }, g.useDebugValue = function() {
180
- }, g.useDeferredValue = function(n) {
181
- return d.current.useDeferredValue(n);
182
- }, g.useEffect = function(n, i) {
183
- return d.current.useEffect(n, i);
184
- }, g.useId = function() {
185
- return d.current.useId();
186
- }, g.useImperativeHandle = function(n, i, _) {
187
- return d.current.useImperativeHandle(n, i, _);
188
- }, g.useInsertionEffect = function(n, i) {
189
- return d.current.useInsertionEffect(n, i);
190
- }, g.useLayoutEffect = function(n, i) {
191
- return d.current.useLayoutEffect(n, i);
192
- }, g.useMemo = function(n, i) {
193
- return d.current.useMemo(n, i);
194
- }, g.useReducer = function(n, i, _) {
195
- return d.current.useReducer(n, i, _);
196
- }, g.useRef = function(n) {
197
- return d.current.useRef(n);
198
- }, g.useState = function(n) {
199
- return d.current.useState(n);
200
- }, g.useSyncExternalStore = function(n, i, _) {
201
- return d.current.useSyncExternalStore(n, i, _);
202
- }, g.useTransition = function() {
203
- return d.current.useTransition();
204
- }, g.version = "18.3.1", g;
205
- }
206
- var Qe = { exports: {} };
207
- /**
208
- * @license React
209
- * react.development.js
210
- *
211
- * Copyright (c) Facebook, Inc. and its affiliates.
212
- *
213
- * This source code is licensed under the MIT license found in the
214
- * LICENSE file in the root directory of this source tree.
215
- */
216
- Qe.exports;
217
- var yt;
218
- function Ut() {
219
- return yt || (yt = 1, function(l, v) {
220
- process.env.NODE_ENV !== "production" && function() {
221
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
222
- var oe = "18.3.1", z = Symbol.for("react.element"), $ = Symbol.for("react.portal"), W = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), X = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), ae = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), fe = Symbol.for("react.lazy"), Fe = Symbol.for("react.offscreen"), ue = Symbol.iterator, ie = "@@iterator";
223
- function F(e) {
224
- if (e === null || typeof e != "object")
225
- return null;
226
- var r = ue && e[ue] || e[ie];
227
- return typeof r == "function" ? r : null;
228
- }
229
- var ge = {
230
- /**
231
- * @internal
232
- * @type {ReactComponent}
233
- */
234
- current: null
235
- }, se = {
236
- transition: null
237
- }, V = {
238
- current: null,
239
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
240
- isBatchingLegacy: !1,
241
- didScheduleLegacyUpdate: !1
242
- }, ee = {
243
- /**
244
- * @internal
245
- * @type {ReactComponent}
246
- */
247
- current: null
248
- }, le = {}, pe = null;
249
- function Se(e) {
250
- pe = e;
251
- }
252
- le.setExtraStackFrame = function(e) {
253
- pe = e;
254
- }, le.getCurrentStack = null, le.getStackAddendum = function() {
255
- var e = "";
256
- pe && (e += pe);
257
- var r = le.getCurrentStack;
258
- return r && (e += r() || ""), e;
259
- };
260
- var Te = !1, Be = !1, Oe = !1, Q = !1, te = !1, H = {
261
- ReactCurrentDispatcher: ge,
262
- ReactCurrentBatchConfig: se,
263
- ReactCurrentOwner: ee
264
- };
265
- H.ReactDebugCurrentFrame = le, H.ReactCurrentActQueue = V;
266
- function ce(e) {
267
- {
268
- for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
269
- a[o - 1] = arguments[o];
270
- de("warn", e, a);
271
- }
272
- }
273
- function d(e) {
274
- {
275
- for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
276
- a[o - 1] = arguments[o];
277
- de("error", e, a);
278
- }
279
- }
280
- function de(e, r, a) {
281
- {
282
- var o = H.ReactDebugCurrentFrame, c = o.getStackAddendum();
283
- c !== "" && (r += "%s", a = a.concat([c]));
284
- var p = a.map(function(f) {
285
- return String(f);
286
- });
287
- p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
288
- }
289
- }
290
- var ke = {};
291
- function ye(e, r) {
292
- {
293
- var a = e.constructor, o = a && (a.displayName || a.name) || "ReactClass", c = o + "." + r;
294
- if (ke[c])
295
- return;
296
- d("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", r, o), ke[c] = !0;
297
- }
298
- }
299
- var n = {
300
- /**
301
- * Checks whether or not this composite component is mounted.
302
- * @param {ReactClass} publicInstance The instance we want to test.
303
- * @return {boolean} True if mounted, false otherwise.
304
- * @protected
305
- * @final
306
- */
307
- isMounted: function(e) {
308
- return !1;
309
- },
310
- /**
311
- * Forces an update. This should only be invoked when it is known with
312
- * certainty that we are **not** in a DOM transaction.
313
- *
314
- * You may want to call this when you know that some deeper aspect of the
315
- * component's state has changed but `setState` was not called.
316
- *
317
- * This will not invoke `shouldComponentUpdate`, but it will invoke
318
- * `componentWillUpdate` and `componentDidUpdate`.
319
- *
320
- * @param {ReactClass} publicInstance The instance that should rerender.
321
- * @param {?function} callback Called after component is updated.
322
- * @param {?string} callerName name of the calling function in the public API.
323
- * @internal
324
- */
325
- enqueueForceUpdate: function(e, r, a) {
326
- ye(e, "forceUpdate");
327
- },
328
- /**
329
- * Replaces all of the state. Always use this or `setState` to mutate state.
330
- * You should treat `this.state` as immutable.
331
- *
332
- * There is no guarantee that `this.state` will be immediately updated, so
333
- * accessing `this.state` after calling this method may return the old value.
334
- *
335
- * @param {ReactClass} publicInstance The instance that should rerender.
336
- * @param {object} completeState Next state.
337
- * @param {?function} callback Called after component is updated.
338
- * @param {?string} callerName name of the calling function in the public API.
339
- * @internal
340
- */
341
- enqueueReplaceState: function(e, r, a, o) {
342
- ye(e, "replaceState");
343
- },
344
- /**
345
- * Sets a subset of the state. This only exists because _pendingState is
346
- * internal. This provides a merging strategy that is not available to deep
347
- * properties which is confusing. TODO: Expose pendingState or don't use it
348
- * during the merge.
349
- *
350
- * @param {ReactClass} publicInstance The instance that should rerender.
351
- * @param {object} partialState Next partial state to be merged with state.
352
- * @param {?function} callback Called after component is updated.
353
- * @param {?string} Name of the calling function in the public API.
354
- * @internal
355
- */
356
- enqueueSetState: function(e, r, a, o) {
357
- ye(e, "setState");
358
- }
359
- }, i = Object.assign, _ = {};
360
- Object.freeze(_);
361
- function E(e, r, a) {
362
- this.props = e, this.context = r, this.refs = _, this.updater = a || n;
363
- }
364
- E.prototype.isReactComponent = {}, E.prototype.setState = function(e, r) {
365
- if (typeof e != "object" && typeof e != "function" && e != null)
366
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
367
- this.updater.enqueueSetState(this, e, r, "setState");
368
- }, E.prototype.forceUpdate = function(e) {
369
- this.updater.enqueueForceUpdate(this, e, "forceUpdate");
370
- };
371
- {
372
- var w = {
373
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
374
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
375
- }, A = function(e, r) {
376
- Object.defineProperty(E.prototype, e, {
377
- get: function() {
378
- ce("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
379
- }
380
- });
381
- };
382
- for (var P in w)
383
- w.hasOwnProperty(P) && A(P, w[P]);
384
- }
385
- function O() {
386
- }
387
- O.prototype = E.prototype;
388
- function S(e, r, a) {
389
- this.props = e, this.context = r, this.refs = _, this.updater = a || n;
390
- }
391
- var Y = S.prototype = new O();
392
- Y.constructor = S, i(Y, E.prototype), Y.isPureReactComponent = !0;
393
- function _r() {
394
- var e = {
395
- current: null
396
- };
397
- return Object.seal(e), e;
398
- }
399
- var Ze = Array.isArray;
400
- function Le(e) {
401
- return Ze(e);
402
- }
403
- function br(e) {
404
- {
405
- var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
406
- return a;
407
- }
408
- }
409
- function Ne(e) {
410
- try {
411
- return _e(e), !1;
412
- } catch {
413
- return !0;
414
- }
415
- }
416
- function _e(e) {
417
- return "" + e;
418
- }
419
- function Pe(e) {
420
- if (Ne(e))
421
- return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", br(e)), _e(e);
422
- }
423
- function er(e, r, a) {
424
- var o = e.displayName;
425
- if (o)
426
- return o;
427
- var c = r.displayName || r.name || "";
428
- return c !== "" ? a + "(" + c + ")" : a;
429
- }
430
- function je(e) {
431
- return e.displayName || "Context";
432
- }
433
- function ve(e) {
434
- if (e == null)
435
- return null;
436
- if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
437
- return e.displayName || e.name || null;
438
- if (typeof e == "string")
439
- return e;
440
- switch (e) {
441
- case W:
442
- return "Fragment";
443
- case $:
444
- return "Portal";
445
- case q:
446
- return "Profiler";
447
- case U:
448
- return "StrictMode";
449
- case K:
450
- return "Suspense";
451
- case ae:
452
- return "SuspenseList";
453
- }
454
- if (typeof e == "object")
455
- switch (e.$$typeof) {
456
- case X:
457
- var r = e;
458
- return je(r) + ".Consumer";
459
- case k:
460
- var a = e;
461
- return je(a._context) + ".Provider";
462
- case D:
463
- return er(e, e.render, "ForwardRef");
464
- case re:
465
- var o = e.displayName || null;
466
- return o !== null ? o : ve(e.type) || "Memo";
467
- case fe: {
468
- var c = e, p = c._payload, f = c._init;
469
- try {
470
- return ve(f(p));
471
- } catch {
472
- return null;
473
- }
474
- }
475
- }
476
- return null;
477
- }
478
- var Ae = Object.prototype.hasOwnProperty, Me = {
479
- key: !0,
480
- ref: !0,
481
- __self: !0,
482
- __source: !0
483
- }, rr, tr, We;
484
- We = {};
485
- function ze(e) {
486
- if (Ae.call(e, "ref")) {
487
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
488
- if (r && r.isReactWarning)
489
- return !1;
490
- }
491
- return e.ref !== void 0;
492
- }
493
- function be(e) {
494
- if (Ae.call(e, "key")) {
495
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
496
- if (r && r.isReactWarning)
497
- return !1;
498
- }
499
- return e.key !== void 0;
500
- }
501
- function Er(e, r) {
502
- var a = function() {
503
- rr || (rr = !0, d("%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));
504
- };
505
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
506
- get: a,
507
- configurable: !0
508
- });
509
- }
510
- function nr(e, r) {
511
- var a = function() {
512
- tr || (tr = !0, d("%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));
513
- };
514
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
515
- get: a,
516
- configurable: !0
517
- });
518
- }
519
- function ar(e) {
520
- if (typeof e.ref == "string" && ee.current && e.__self && ee.current.stateNode !== e.__self) {
521
- var r = ve(ee.current.type);
522
- We[r] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), We[r] = !0);
523
- }
524
- }
525
- var De = function(e, r, a, o, c, p, f) {
526
- var m = {
527
- // This tag allows us to uniquely identify this as a React Element
528
- $$typeof: z,
529
- // Built-in properties that belong on the element
530
- type: e,
531
- key: r,
532
- ref: a,
533
- props: f,
534
- // Record the component responsible for creating this element.
535
- _owner: p
536
- };
537
- return m._store = {}, Object.defineProperty(m._store, "validated", {
538
- configurable: !1,
539
- enumerable: !1,
540
- writable: !0,
541
- value: !1
542
- }), Object.defineProperty(m, "_self", {
543
- configurable: !1,
544
- enumerable: !1,
545
- writable: !1,
546
- value: o
547
- }), Object.defineProperty(m, "_source", {
548
- configurable: !1,
549
- enumerable: !1,
550
- writable: !1,
551
- value: c
552
- }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
553
- };
554
- function Rr(e, r, a) {
555
- var o, c = {}, p = null, f = null, m = null, R = null;
556
- if (r != null) {
557
- ze(r) && (f = r.ref, ar(r)), be(r) && (Pe(r.key), p = "" + r.key), m = r.__self === void 0 ? null : r.__self, R = r.__source === void 0 ? null : r.__source;
558
- for (o in r)
559
- Ae.call(r, o) && !Me.hasOwnProperty(o) && (c[o] = r[o]);
560
- }
561
- var j = arguments.length - 2;
562
- if (j === 1)
563
- c.children = a;
564
- else if (j > 1) {
565
- for (var x = Array(j), I = 0; I < j; I++)
566
- x[I] = arguments[I + 2];
567
- Object.freeze && Object.freeze(x), c.children = x;
568
- }
569
- if (e && e.defaultProps) {
570
- var N = e.defaultProps;
571
- for (o in N)
572
- c[o] === void 0 && (c[o] = N[o]);
573
- }
574
- if (p || f) {
575
- var B = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
576
- p && Er(c, B), f && nr(c, B);
577
- }
578
- return De(e, p, f, m, R, ee.current, c);
579
- }
580
- function wr(e, r) {
581
- var a = De(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
582
- return a;
583
- }
584
- function Cr(e, r, a) {
585
- if (e == null)
586
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
587
- var o, c = i({}, e.props), p = e.key, f = e.ref, m = e._self, R = e._source, j = e._owner;
588
- if (r != null) {
589
- ze(r) && (f = r.ref, j = ee.current), be(r) && (Pe(r.key), p = "" + r.key);
590
- var x;
591
- e.type && e.type.defaultProps && (x = e.type.defaultProps);
592
- for (o in r)
593
- Ae.call(r, o) && !Me.hasOwnProperty(o) && (r[o] === void 0 && x !== void 0 ? c[o] = x[o] : c[o] = r[o]);
594
- }
595
- var I = arguments.length - 2;
596
- if (I === 1)
597
- c.children = a;
598
- else if (I > 1) {
599
- for (var N = Array(I), B = 0; B < I; B++)
600
- N[B] = arguments[B + 2];
601
- c.children = N;
602
- }
603
- return De(e.type, p, f, m, R, j, c);
604
- }
605
- function Ee(e) {
606
- return typeof e == "object" && e !== null && e.$$typeof === z;
607
- }
608
- var or = ".", Sr = ":";
609
- function Tr(e) {
610
- var r = /[=:]/g, a = {
611
- "=": "=0",
612
- ":": "=2"
613
- }, o = e.replace(r, function(c) {
614
- return a[c];
615
- });
616
- return "$" + o;
617
- }
618
- var Ue = !1, ur = /\/+/g;
619
- function me(e) {
620
- return e.replace(ur, "$&/");
621
- }
622
- function xe(e, r) {
623
- return typeof e == "object" && e !== null && e.key != null ? (Pe(e.key), Tr("" + e.key)) : r.toString(36);
624
- }
625
- function Re(e, r, a, o, c) {
626
- var p = typeof e;
627
- (p === "undefined" || p === "boolean") && (e = null);
628
- var f = !1;
629
- if (e === null)
630
- f = !0;
631
- else
632
- switch (p) {
633
- case "string":
634
- case "number":
635
- f = !0;
636
- break;
637
- case "object":
638
- switch (e.$$typeof) {
639
- case z:
640
- case $:
641
- f = !0;
642
- }
643
- }
644
- if (f) {
645
- var m = e, R = c(m), j = o === "" ? or + xe(m, 0) : o;
646
- if (Le(R)) {
647
- var x = "";
648
- j != null && (x = me(j) + "/"), Re(R, r, x, "", function(Mt) {
649
- return Mt;
650
- });
651
- } else R != null && (Ee(R) && (R.key && (!m || m.key !== R.key) && Pe(R.key), R = wr(
652
- R,
653
- // Keep both the (mapped) and old keys if they differ, just as
654
- // traverseAllChildren used to do for objects as children
655
- a + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
656
- (R.key && (!m || m.key !== R.key) ? (
657
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
658
- // eslint-disable-next-line react-internal/safe-string-coercion
659
- me("" + R.key) + "/"
660
- ) : "") + j
661
- )), r.push(R));
662
- return 1;
663
- }
664
- var I, N, B = 0, J = o === "" ? or : o + Sr;
665
- if (Le(e))
666
- for (var gr = 0; gr < e.length; gr++)
667
- I = e[gr], N = J + xe(I, gr), B += Re(I, r, a, N, c);
668
- else {
669
- var Ur = F(e);
670
- if (typeof Ur == "function") {
671
- var lt = e;
672
- Ur === lt.entries && (Ue || ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Ue = !0);
673
- for (var Lt = Ur.call(lt), dt, Nt = 0; !(dt = Lt.next()).done; )
674
- I = dt.value, N = J + xe(I, Nt++), B += Re(I, r, a, N, c);
675
- } else if (p === "object") {
676
- var vt = String(e);
677
- throw new Error("Objects are not valid as a React child (found: " + (vt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : vt) + "). If you meant to render a collection of children, use an array instead.");
678
- }
679
- }
680
- return B;
681
- }
682
- function Ie(e, r, a) {
683
- if (e == null)
684
- return e;
685
- var o = [], c = 0;
686
- return Re(e, o, "", "", function(p) {
687
- return r.call(a, p, c++);
688
- }), o;
689
- }
690
- function Or(e) {
691
- var r = 0;
692
- return Ie(e, function() {
693
- r++;
694
- }), r;
695
- }
696
- function ir(e, r, a) {
697
- Ie(e, function() {
698
- r.apply(this, arguments);
699
- }, a);
700
- }
701
- function kr(e) {
702
- return Ie(e, function(r) {
703
- return r;
704
- }) || [];
705
- }
706
- function sr(e) {
707
- if (!Ee(e))
708
- throw new Error("React.Children.only expected to receive a single React element child.");
709
- return e;
710
- }
711
- function cr(e) {
712
- var r = {
713
- $$typeof: X,
714
- // As a workaround to support multiple concurrent renderers, we categorize
715
- // some renderers as primary and others as secondary. We only expect
716
- // there to be two concurrent renderers at most: React Native (primary) and
717
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
718
- // Secondary renderers store their context values on separate fields.
719
- _currentValue: e,
720
- _currentValue2: e,
721
- // Used to track how many concurrent renderers this context currently
722
- // supports within in a single renderer. Such as parallel server rendering.
723
- _threadCount: 0,
724
- // These are circular
725
- Provider: null,
726
- Consumer: null,
727
- // Add these to use same hidden class in VM as ServerContext
728
- _defaultValue: null,
729
- _globalName: null
730
- };
731
- r.Provider = {
732
- $$typeof: k,
733
- _context: r
734
- };
735
- var a = !1, o = !1, c = !1;
736
- {
737
- var p = {
738
- $$typeof: X,
739
- _context: r
740
- };
741
- Object.defineProperties(p, {
742
- Provider: {
743
- get: function() {
744
- return o || (o = !0, d("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider;
745
- },
746
- set: function(f) {
747
- r.Provider = f;
748
- }
749
- },
750
- _currentValue: {
751
- get: function() {
752
- return r._currentValue;
753
- },
754
- set: function(f) {
755
- r._currentValue = f;
756
- }
757
- },
758
- _currentValue2: {
759
- get: function() {
760
- return r._currentValue2;
761
- },
762
- set: function(f) {
763
- r._currentValue2 = f;
764
- }
765
- },
766
- _threadCount: {
767
- get: function() {
768
- return r._threadCount;
769
- },
770
- set: function(f) {
771
- r._threadCount = f;
772
- }
773
- },
774
- Consumer: {
775
- get: function() {
776
- return a || (a = !0, d("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer;
777
- }
778
- },
779
- displayName: {
780
- get: function() {
781
- return r.displayName;
782
- },
783
- set: function(f) {
784
- c || (ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", f), c = !0);
785
- }
786
- }
787
- }), r.Consumer = p;
788
- }
789
- return r._currentRenderer = null, r._currentRenderer2 = null, r;
790
- }
791
- var $e = -1, qe = 0, Ke = 1, fr = 2;
792
- function Pr(e) {
793
- if (e._status === $e) {
794
- var r = e._result, a = r();
795
- if (a.then(function(p) {
796
- if (e._status === qe || e._status === $e) {
797
- var f = e;
798
- f._status = Ke, f._result = p;
799
- }
800
- }, function(p) {
801
- if (e._status === qe || e._status === $e) {
802
- var f = e;
803
- f._status = fr, f._result = p;
804
- }
805
- }), e._status === $e) {
806
- var o = e;
807
- o._status = qe, o._result = a;
808
- }
809
- }
810
- if (e._status === Ke) {
811
- var c = e._result;
812
- return c === void 0 && d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
813
-
814
- Your code should look like:
815
- const MyComponent = lazy(() => import('./MyComponent'))
816
-
817
- Did you accidentally put curly braces around the import?`, c), "default" in c || d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
818
-
819
- Your code should look like:
820
- const MyComponent = lazy(() => import('./MyComponent'))`, c), c.default;
821
- } else
822
- throw e._result;
823
- }
824
- function jr(e) {
825
- var r = {
826
- // We use these fields to store the result.
827
- _status: $e,
828
- _result: e
829
- }, a = {
830
- $$typeof: fe,
831
- _payload: r,
832
- _init: Pr
833
- };
834
- {
835
- var o, c;
836
- Object.defineProperties(a, {
837
- defaultProps: {
838
- configurable: !0,
839
- get: function() {
840
- return o;
841
- },
842
- set: function(p) {
843
- d("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = p, Object.defineProperty(a, "defaultProps", {
844
- enumerable: !0
845
- });
846
- }
847
- },
848
- propTypes: {
849
- configurable: !0,
850
- get: function() {
851
- return c;
852
- },
853
- set: function(p) {
854
- d("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), c = p, Object.defineProperty(a, "propTypes", {
855
- enumerable: !0
856
- });
857
- }
858
- }
859
- });
860
- }
861
- return a;
862
- }
863
- function Ar(e) {
864
- e != null && e.$$typeof === re ? d("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? d("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && d("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && d("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
865
- var r = {
866
- $$typeof: D,
867
- render: e
868
- };
869
- {
870
- var a;
871
- Object.defineProperty(r, "displayName", {
872
- enumerable: !1,
873
- configurable: !0,
874
- get: function() {
875
- return a;
876
- },
877
- set: function(o) {
878
- a = o, !e.name && !e.displayName && (e.displayName = o);
879
- }
880
- });
881
- }
882
- return r;
883
- }
884
- var lr;
885
- lr = Symbol.for("react.module.reference");
886
- function t(e) {
887
- return !!(typeof e == "string" || typeof e == "function" || e === W || e === q || te || e === U || e === K || e === ae || Q || e === Fe || Te || Be || Oe || typeof e == "object" && e !== null && (e.$$typeof === fe || e.$$typeof === re || e.$$typeof === k || e.$$typeof === X || e.$$typeof === D || // This needs to include all possible module reference object
888
- // types supported by any Flight configuration anywhere since
889
- // we don't know which Flight build this will end up being used
890
- // with.
891
- e.$$typeof === lr || e.getModuleId !== void 0));
892
- }
893
- function u(e, r) {
894
- t(e) || d("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
895
- var a = {
896
- $$typeof: re,
897
- type: e,
898
- compare: r === void 0 ? null : r
899
- };
900
- {
901
- var o;
902
- Object.defineProperty(a, "displayName", {
903
- enumerable: !1,
904
- configurable: !0,
905
- get: function() {
906
- return o;
907
- },
908
- set: function(c) {
909
- o = c, !e.name && !e.displayName && (e.displayName = c);
910
- }
911
- });
912
- }
913
- return a;
914
- }
915
- function s() {
916
- var e = ge.current;
917
- return e === null && d(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
918
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
919
- 2. You might be breaking the Rules of Hooks
920
- 3. You might have more than one copy of React in the same app
921
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
922
- }
923
- function y(e) {
924
- var r = s();
925
- if (e._context !== void 0) {
926
- var a = e._context;
927
- a.Consumer === e ? d("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : a.Provider === e && d("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
928
- }
929
- return r.useContext(e);
930
- }
931
- function C(e) {
932
- var r = s();
933
- return r.useState(e);
934
- }
935
- function T(e, r, a) {
936
- var o = s();
937
- return o.useReducer(e, r, a);
938
- }
939
- function b(e) {
940
- var r = s();
941
- return r.useRef(e);
942
- }
943
- function h(e, r) {
944
- var a = s();
945
- return a.useEffect(e, r);
946
- }
947
- function G(e, r) {
948
- var a = s();
949
- return a.useInsertionEffect(e, r);
950
- }
951
- function L(e, r) {
952
- var a = s();
953
- return a.useLayoutEffect(e, r);
954
- }
955
- function M(e, r) {
956
- var a = s();
957
- return a.useCallback(e, r);
958
- }
959
- function ne(e, r) {
960
- var a = s();
961
- return a.useMemo(e, r);
962
- }
963
- function we(e, r, a) {
964
- var o = s();
965
- return o.useImperativeHandle(e, r, a);
966
- }
967
- function he(e, r) {
968
- {
969
- var a = s();
970
- return a.useDebugValue(e, r);
971
- }
972
- }
973
- function Z() {
974
- var e = s();
975
- return e.useTransition();
976
- }
977
- function He(e) {
978
- var r = s();
979
- return r.useDeferredValue(e);
980
- }
981
- function Dr() {
982
- var e = s();
983
- return e.useId();
984
- }
985
- function xr(e, r, a) {
986
- var o = s();
987
- return o.useSyncExternalStore(e, r, a);
988
- }
989
- var Ge = 0, Br, zr, qr, Kr, Hr, Gr, Jr;
990
- function Xr() {
991
- }
992
- Xr.__reactDisabledLog = !0;
993
- function _t() {
994
- {
995
- if (Ge === 0) {
996
- Br = console.log, zr = console.info, qr = console.warn, Kr = console.error, Hr = console.group, Gr = console.groupCollapsed, Jr = console.groupEnd;
997
- var e = {
998
- configurable: !0,
999
- enumerable: !0,
1000
- value: Xr,
1001
- writable: !0
1002
- };
1003
- Object.defineProperties(console, {
1004
- info: e,
1005
- log: e,
1006
- warn: e,
1007
- error: e,
1008
- group: e,
1009
- groupCollapsed: e,
1010
- groupEnd: e
1011
- });
1012
- }
1013
- Ge++;
1014
- }
1015
- }
1016
- function bt() {
1017
- {
1018
- if (Ge--, Ge === 0) {
1019
- var e = {
1020
- configurable: !0,
1021
- enumerable: !0,
1022
- writable: !0
1023
- };
1024
- Object.defineProperties(console, {
1025
- log: i({}, e, {
1026
- value: Br
1027
- }),
1028
- info: i({}, e, {
1029
- value: zr
1030
- }),
1031
- warn: i({}, e, {
1032
- value: qr
1033
- }),
1034
- error: i({}, e, {
1035
- value: Kr
1036
- }),
1037
- group: i({}, e, {
1038
- value: Hr
1039
- }),
1040
- groupCollapsed: i({}, e, {
1041
- value: Gr
1042
- }),
1043
- groupEnd: i({}, e, {
1044
- value: Jr
1045
- })
1046
- });
1047
- }
1048
- Ge < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1049
- }
1050
- }
1051
- var Ir = H.ReactCurrentDispatcher, $r;
1052
- function dr(e, r, a) {
1053
- {
1054
- if ($r === void 0)
1055
- try {
1056
- throw Error();
1057
- } catch (c) {
1058
- var o = c.stack.trim().match(/\n( *(at )?)/);
1059
- $r = o && o[1] || "";
1060
- }
1061
- return `
1062
- ` + $r + e;
1063
- }
1064
- }
1065
- var Fr = !1, vr;
1066
- {
1067
- var Et = typeof WeakMap == "function" ? WeakMap : Map;
1068
- vr = new Et();
1069
- }
1070
- function Qr(e, r) {
1071
- if (!e || Fr)
1072
- return "";
1073
- {
1074
- var a = vr.get(e);
1075
- if (a !== void 0)
1076
- return a;
1077
- }
1078
- var o;
1079
- Fr = !0;
1080
- var c = Error.prepareStackTrace;
1081
- Error.prepareStackTrace = void 0;
1082
- var p;
1083
- p = Ir.current, Ir.current = null, _t();
1084
- try {
1085
- if (r) {
1086
- var f = function() {
1087
- throw Error();
1088
- };
1089
- if (Object.defineProperty(f.prototype, "props", {
1090
- set: function() {
1091
- throw Error();
1092
- }
1093
- }), typeof Reflect == "object" && Reflect.construct) {
1094
- try {
1095
- Reflect.construct(f, []);
1096
- } catch (J) {
1097
- o = J;
1098
- }
1099
- Reflect.construct(e, [], f);
1100
- } else {
1101
- try {
1102
- f.call();
1103
- } catch (J) {
1104
- o = J;
1105
- }
1106
- e.call(f.prototype);
1107
- }
1108
- } else {
1109
- try {
1110
- throw Error();
1111
- } catch (J) {
1112
- o = J;
1113
- }
1114
- e();
1115
- }
1116
- } catch (J) {
1117
- if (J && o && typeof J.stack == "string") {
1118
- for (var m = J.stack.split(`
1119
- `), R = o.stack.split(`
1120
- `), j = m.length - 1, x = R.length - 1; j >= 1 && x >= 0 && m[j] !== R[x]; )
1121
- x--;
1122
- for (; j >= 1 && x >= 0; j--, x--)
1123
- if (m[j] !== R[x]) {
1124
- if (j !== 1 || x !== 1)
1125
- do
1126
- if (j--, x--, x < 0 || m[j] !== R[x]) {
1127
- var I = `
1128
- ` + m[j].replace(" at new ", " at ");
1129
- return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && vr.set(e, I), I;
1130
- }
1131
- while (j >= 1 && x >= 0);
1132
- break;
1133
- }
1134
- }
1135
- } finally {
1136
- Fr = !1, Ir.current = p, bt(), Error.prepareStackTrace = c;
1137
- }
1138
- var N = e ? e.displayName || e.name : "", B = N ? dr(N) : "";
1139
- return typeof e == "function" && vr.set(e, B), B;
1140
- }
1141
- function Rt(e, r, a) {
1142
- return Qr(e, !1);
1143
- }
1144
- function wt(e) {
1145
- var r = e.prototype;
1146
- return !!(r && r.isReactComponent);
1147
- }
1148
- function pr(e, r, a) {
1149
- if (e == null)
1150
- return "";
1151
- if (typeof e == "function")
1152
- return Qr(e, wt(e));
1153
- if (typeof e == "string")
1154
- return dr(e);
1155
- switch (e) {
1156
- case K:
1157
- return dr("Suspense");
1158
- case ae:
1159
- return dr("SuspenseList");
1160
- }
1161
- if (typeof e == "object")
1162
- switch (e.$$typeof) {
1163
- case D:
1164
- return Rt(e.render);
1165
- case re:
1166
- return pr(e.type, r, a);
1167
- case fe: {
1168
- var o = e, c = o._payload, p = o._init;
1169
- try {
1170
- return pr(p(c), r, a);
1171
- } catch {
1172
- }
1173
- }
1174
- }
1175
- return "";
1176
- }
1177
- var Zr = {}, et = H.ReactDebugCurrentFrame;
1178
- function yr(e) {
1179
- if (e) {
1180
- var r = e._owner, a = pr(e.type, e._source, r ? r.type : null);
1181
- et.setExtraStackFrame(a);
1182
- } else
1183
- et.setExtraStackFrame(null);
1184
- }
1185
- function Ct(e, r, a, o, c) {
1186
- {
1187
- var p = Function.call.bind(Ae);
1188
- for (var f in e)
1189
- if (p(e, f)) {
1190
- var m = void 0;
1191
- try {
1192
- if (typeof e[f] != "function") {
1193
- var R = Error((o || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1194
- throw R.name = "Invariant Violation", R;
1195
- }
1196
- m = e[f](r, f, o, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1197
- } catch (j) {
1198
- m = j;
1199
- }
1200
- m && !(m instanceof Error) && (yr(c), d("%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).", o || "React class", a, f, typeof m), yr(null)), m instanceof Error && !(m.message in Zr) && (Zr[m.message] = !0, yr(c), d("Failed %s type: %s", a, m.message), yr(null));
1201
- }
1202
- }
1203
- }
1204
- function Ve(e) {
1205
- if (e) {
1206
- var r = e._owner, a = pr(e.type, e._source, r ? r.type : null);
1207
- Se(a);
1208
- } else
1209
- Se(null);
1210
- }
1211
- var Lr;
1212
- Lr = !1;
1213
- function rt() {
1214
- if (ee.current) {
1215
- var e = ve(ee.current.type);
1216
- if (e)
1217
- return `
1218
-
1219
- Check the render method of \`` + e + "`.";
1220
- }
1221
- return "";
1222
- }
1223
- function St(e) {
1224
- if (e !== void 0) {
1225
- var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
1226
- return `
1227
-
1228
- Check your code at ` + r + ":" + a + ".";
1229
- }
1230
- return "";
1231
- }
1232
- function Tt(e) {
1233
- return e != null ? St(e.__source) : "";
1234
- }
1235
- var tt = {};
1236
- function Ot(e) {
1237
- var r = rt();
1238
- if (!r) {
1239
- var a = typeof e == "string" ? e : e.displayName || e.name;
1240
- a && (r = `
1241
-
1242
- Check the top-level render call using <` + a + ">.");
1243
- }
1244
- return r;
1245
- }
1246
- function nt(e, r) {
1247
- if (!(!e._store || e._store.validated || e.key != null)) {
1248
- e._store.validated = !0;
1249
- var a = Ot(r);
1250
- if (!tt[a]) {
1251
- tt[a] = !0;
1252
- var o = "";
1253
- e && e._owner && e._owner !== ee.current && (o = " It was passed a child from " + ve(e._owner.type) + "."), Ve(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, o), Ve(null);
1254
- }
1255
- }
1256
- }
1257
- function at(e, r) {
1258
- if (typeof e == "object") {
1259
- if (Le(e))
1260
- for (var a = 0; a < e.length; a++) {
1261
- var o = e[a];
1262
- Ee(o) && nt(o, r);
1263
- }
1264
- else if (Ee(e))
1265
- e._store && (e._store.validated = !0);
1266
- else if (e) {
1267
- var c = F(e);
1268
- if (typeof c == "function" && c !== e.entries)
1269
- for (var p = c.call(e), f; !(f = p.next()).done; )
1270
- Ee(f.value) && nt(f.value, r);
1271
- }
1272
- }
1273
- }
1274
- function ot(e) {
1275
- {
1276
- var r = e.type;
1277
- if (r == null || typeof r == "string")
1278
- return;
1279
- var a;
1280
- if (typeof r == "function")
1281
- a = r.propTypes;
1282
- else if (typeof r == "object" && (r.$$typeof === D || // Note: Memo only checks outer props here.
1283
- // Inner props are checked in the reconciler.
1284
- r.$$typeof === re))
1285
- a = r.propTypes;
1286
- else
1287
- return;
1288
- if (a) {
1289
- var o = ve(r);
1290
- Ct(a, e.props, "prop", o, e);
1291
- } else if (r.PropTypes !== void 0 && !Lr) {
1292
- Lr = !0;
1293
- var c = ve(r);
1294
- d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
1295
- }
1296
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1297
- }
1298
- }
1299
- function kt(e) {
1300
- {
1301
- for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
1302
- var o = r[a];
1303
- if (o !== "children" && o !== "key") {
1304
- Ve(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), Ve(null);
1305
- break;
1306
- }
1307
- }
1308
- e.ref !== null && (Ve(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), Ve(null));
1309
- }
1310
- }
1311
- function ut(e, r, a) {
1312
- var o = t(e);
1313
- if (!o) {
1314
- var c = "";
1315
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1316
- var p = Tt(r);
1317
- p ? c += p : c += rt();
1318
- var f;
1319
- e === null ? f = "null" : Le(e) ? f = "array" : e !== void 0 && e.$$typeof === z ? (f = "<" + (ve(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, d("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, c);
1320
- }
1321
- var m = Rr.apply(this, arguments);
1322
- if (m == null)
1323
- return m;
1324
- if (o)
1325
- for (var R = 2; R < arguments.length; R++)
1326
- at(arguments[R], e);
1327
- return e === W ? kt(m) : ot(m), m;
1328
- }
1329
- var it = !1;
1330
- function Pt(e) {
1331
- var r = ut.bind(null, e);
1332
- return r.type = e, it || (it = !0, ce("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
1333
- enumerable: !1,
1334
- get: function() {
1335
- return ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
1336
- value: e
1337
- }), e;
1338
- }
1339
- }), r;
1340
- }
1341
- function jt(e, r, a) {
1342
- for (var o = Cr.apply(this, arguments), c = 2; c < arguments.length; c++)
1343
- at(arguments[c], o.type);
1344
- return ot(o), o;
1345
- }
1346
- function At(e, r) {
1347
- var a = se.transition;
1348
- se.transition = {};
1349
- var o = se.transition;
1350
- se.transition._updatedFibers = /* @__PURE__ */ new Set();
1351
- try {
1352
- e();
1353
- } finally {
1354
- if (se.transition = a, a === null && o._updatedFibers) {
1355
- var c = o._updatedFibers.size;
1356
- c > 10 && ce("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
1357
- }
1358
- }
1359
- }
1360
- var st = !1, mr = null;
1361
- function Dt(e) {
1362
- if (mr === null)
1363
- try {
1364
- var r = ("require" + Math.random()).slice(0, 7), a = l && l[r];
1365
- mr = a.call(l, "timers").setImmediate;
1366
- } catch {
1367
- mr = function(c) {
1368
- st === !1 && (st = !0, typeof MessageChannel > "u" && d("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
1369
- var p = new MessageChannel();
1370
- p.port1.onmessage = c, p.port2.postMessage(void 0);
1371
- };
1372
- }
1373
- return mr(e);
1374
- }
1375
- var Ye = 0, ct = !1;
1376
- function ft(e) {
1377
- {
1378
- var r = Ye;
1379
- Ye++, V.current === null && (V.current = []);
1380
- var a = V.isBatchingLegacy, o;
1381
- try {
1382
- if (V.isBatchingLegacy = !0, o = e(), !a && V.didScheduleLegacyUpdate) {
1383
- var c = V.current;
1384
- c !== null && (V.didScheduleLegacyUpdate = !1, Wr(c));
1385
- }
1386
- } catch (N) {
1387
- throw hr(r), N;
1388
- } finally {
1389
- V.isBatchingLegacy = a;
1390
- }
1391
- if (o !== null && typeof o == "object" && typeof o.then == "function") {
1392
- var p = o, f = !1, m = {
1393
- then: function(N, B) {
1394
- f = !0, p.then(function(J) {
1395
- hr(r), Ye === 0 ? Nr(J, N, B) : N(J);
1396
- }, function(J) {
1397
- hr(r), B(J);
1398
- });
1399
- }
1400
- };
1401
- return !ct && typeof Promise < "u" && Promise.resolve().then(function() {
1402
- }).then(function() {
1403
- f || (ct = !0, d("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
1404
- }), m;
1405
- } else {
1406
- var R = o;
1407
- if (hr(r), Ye === 0) {
1408
- var j = V.current;
1409
- j !== null && (Wr(j), V.current = null);
1410
- var x = {
1411
- then: function(N, B) {
1412
- V.current === null ? (V.current = [], Nr(R, N, B)) : N(R);
1413
- }
1414
- };
1415
- return x;
1416
- } else {
1417
- var I = {
1418
- then: function(N, B) {
1419
- N(R);
1420
- }
1421
- };
1422
- return I;
1423
- }
1424
- }
1425
- }
1426
- }
1427
- function hr(e) {
1428
- e !== Ye - 1 && d("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Ye = e;
1429
- }
1430
- function Nr(e, r, a) {
1431
- {
1432
- var o = V.current;
1433
- if (o !== null)
1434
- try {
1435
- Wr(o), Dt(function() {
1436
- o.length === 0 ? (V.current = null, r(e)) : Nr(e, r, a);
1437
- });
1438
- } catch (c) {
1439
- a(c);
1440
- }
1441
- else
1442
- r(e);
1443
- }
1444
- }
1445
- var Mr = !1;
1446
- function Wr(e) {
1447
- if (!Mr) {
1448
- Mr = !0;
1449
- var r = 0;
1450
- try {
1451
- for (; r < e.length; r++) {
1452
- var a = e[r];
1453
- do
1454
- a = a(!0);
1455
- while (a !== null);
1456
- }
1457
- e.length = 0;
1458
- } catch (o) {
1459
- throw e = e.slice(r + 1), o;
1460
- } finally {
1461
- Mr = !1;
1462
- }
1463
- }
1464
- }
1465
- var xt = ut, It = jt, $t = Pt, Ft = {
1466
- map: Ie,
1467
- forEach: ir,
1468
- count: Or,
1469
- toArray: kr,
1470
- only: sr
1471
- };
1472
- v.Children = Ft, v.Component = E, v.Fragment = W, v.Profiler = q, v.PureComponent = S, v.StrictMode = U, v.Suspense = K, v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, v.act = ft, v.cloneElement = It, v.createContext = cr, v.createElement = xt, v.createFactory = $t, v.createRef = _r, v.forwardRef = Ar, v.isValidElement = Ee, v.lazy = jr, v.memo = u, v.startTransition = At, v.unstable_act = ft, v.useCallback = M, v.useContext = y, v.useDebugValue = he, v.useDeferredValue = He, v.useEffect = h, v.useId = Dr, v.useImperativeHandle = we, v.useInsertionEffect = G, v.useLayoutEffect = L, v.useMemo = ne, v.useReducer = T, v.useRef = b, v.useState = C, v.useSyncExternalStore = xr, v.useTransition = Z, v.version = oe, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1473
- }();
1474
- }(Qe, Qe.exports)), Qe.exports;
1475
- }
1476
- process.env.NODE_ENV === "production" ? Yr.exports = Wt() : Yr.exports = Ut();
1477
- var Ce = Yr.exports;
1478
- /**
1479
- * @license React
1480
- * react-jsx-runtime.production.min.js
1481
- *
1482
- * Copyright (c) Facebook, Inc. and its affiliates.
1483
- *
1484
- * This source code is licensed under the MIT license found in the
1485
- * LICENSE file in the root directory of this source tree.
1486
- */
1487
- var mt;
1488
- function Vt() {
1489
- if (mt) return Je;
1490
- mt = 1;
1491
- var l = Ce, v = Symbol.for("react.element"), oe = Symbol.for("react.fragment"), z = Object.prototype.hasOwnProperty, $ = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, W = { key: !0, ref: !0, __self: !0, __source: !0 };
1492
- function U(q, k, X) {
1493
- var D, K = {}, ae = null, re = null;
1494
- X !== void 0 && (ae = "" + X), k.key !== void 0 && (ae = "" + k.key), k.ref !== void 0 && (re = k.ref);
1495
- for (D in k) z.call(k, D) && !W.hasOwnProperty(D) && (K[D] = k[D]);
1496
- if (q && q.defaultProps) for (D in k = q.defaultProps, k) K[D] === void 0 && (K[D] = k[D]);
1497
- return { $$typeof: v, type: q, key: ae, ref: re, props: K, _owner: $.current };
1498
- }
1499
- return Je.Fragment = oe, Je.jsx = U, Je.jsxs = U, Je;
1500
- }
1501
- var Xe = {};
1502
- /**
1503
- * @license React
1504
- * react-jsx-runtime.development.js
1505
- *
1506
- * Copyright (c) Facebook, Inc. and its affiliates.
1507
- *
1508
- * This source code is licensed under the MIT license found in the
1509
- * LICENSE file in the root directory of this source tree.
1510
- */
1511
- var ht;
1512
- function Yt() {
1513
- return ht || (ht = 1, process.env.NODE_ENV !== "production" && function() {
1514
- var l = Ce, v = Symbol.for("react.element"), oe = Symbol.for("react.portal"), z = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), U = Symbol.for("react.provider"), q = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), ae = Symbol.for("react.lazy"), re = Symbol.for("react.offscreen"), fe = Symbol.iterator, Fe = "@@iterator";
1515
- function ue(t) {
1516
- if (t === null || typeof t != "object")
1517
- return null;
1518
- var u = fe && t[fe] || t[Fe];
1519
- return typeof u == "function" ? u : null;
1520
- }
1521
- var ie = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1522
- function F(t) {
1523
- {
1524
- for (var u = arguments.length, s = new Array(u > 1 ? u - 1 : 0), y = 1; y < u; y++)
1525
- s[y - 1] = arguments[y];
1526
- ge("error", t, s);
1527
- }
1528
- }
1529
- function ge(t, u, s) {
1530
- {
1531
- var y = ie.ReactDebugCurrentFrame, C = y.getStackAddendum();
1532
- C !== "" && (u += "%s", s = s.concat([C]));
1533
- var T = s.map(function(b) {
1534
- return String(b);
1535
- });
1536
- T.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, T);
1537
- }
1538
- }
1539
- var se = !1, V = !1, ee = !1, le = !1, pe = !1, Se;
1540
- Se = Symbol.for("react.module.reference");
1541
- function Te(t) {
1542
- return !!(typeof t == "string" || typeof t == "function" || t === z || t === W || pe || t === $ || t === X || t === D || le || t === re || se || V || ee || typeof t == "object" && t !== null && (t.$$typeof === ae || t.$$typeof === K || t.$$typeof === U || t.$$typeof === q || t.$$typeof === k || // This needs to include all possible module reference object
1543
- // types supported by any Flight configuration anywhere since
1544
- // we don't know which Flight build this will end up being used
1545
- // with.
1546
- t.$$typeof === Se || t.getModuleId !== void 0));
1547
- }
1548
- function Be(t, u, s) {
1549
- var y = t.displayName;
1550
- if (y)
1551
- return y;
1552
- var C = u.displayName || u.name || "";
1553
- return C !== "" ? s + "(" + C + ")" : s;
1554
- }
1555
- function Oe(t) {
1556
- return t.displayName || "Context";
1557
- }
1558
- function Q(t) {
1559
- if (t == null)
1560
- return null;
1561
- if (typeof t.tag == "number" && F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
1562
- return t.displayName || t.name || null;
1563
- if (typeof t == "string")
1564
- return t;
1565
- switch (t) {
1566
- case z:
1567
- return "Fragment";
1568
- case oe:
1569
- return "Portal";
1570
- case W:
1571
- return "Profiler";
1572
- case $:
1573
- return "StrictMode";
1574
- case X:
1575
- return "Suspense";
1576
- case D:
1577
- return "SuspenseList";
1578
- }
1579
- if (typeof t == "object")
1580
- switch (t.$$typeof) {
1581
- case q:
1582
- var u = t;
1583
- return Oe(u) + ".Consumer";
1584
- case U:
1585
- var s = t;
1586
- return Oe(s._context) + ".Provider";
1587
- case k:
1588
- return Be(t, t.render, "ForwardRef");
1589
- case K:
1590
- var y = t.displayName || null;
1591
- return y !== null ? y : Q(t.type) || "Memo";
1592
- case ae: {
1593
- var C = t, T = C._payload, b = C._init;
1594
- try {
1595
- return Q(b(T));
1596
- } catch {
1597
- return null;
1598
- }
1599
- }
1600
- }
1601
- return null;
1602
- }
1603
- var te = Object.assign, H = 0, ce, d, de, ke, ye, n, i;
1604
- function _() {
1605
- }
1606
- _.__reactDisabledLog = !0;
1607
- function E() {
1608
- {
1609
- if (H === 0) {
1610
- ce = console.log, d = console.info, de = console.warn, ke = console.error, ye = console.group, n = console.groupCollapsed, i = console.groupEnd;
1611
- var t = {
1612
- configurable: !0,
1613
- enumerable: !0,
1614
- value: _,
1615
- writable: !0
1616
- };
1617
- Object.defineProperties(console, {
1618
- info: t,
1619
- log: t,
1620
- warn: t,
1621
- error: t,
1622
- group: t,
1623
- groupCollapsed: t,
1624
- groupEnd: t
1625
- });
1626
- }
1627
- H++;
1628
- }
1629
- }
1630
- function w() {
1631
- {
1632
- if (H--, H === 0) {
1633
- var t = {
1634
- configurable: !0,
1635
- enumerable: !0,
1636
- writable: !0
1637
- };
1638
- Object.defineProperties(console, {
1639
- log: te({}, t, {
1640
- value: ce
1641
- }),
1642
- info: te({}, t, {
1643
- value: d
1644
- }),
1645
- warn: te({}, t, {
1646
- value: de
1647
- }),
1648
- error: te({}, t, {
1649
- value: ke
1650
- }),
1651
- group: te({}, t, {
1652
- value: ye
1653
- }),
1654
- groupCollapsed: te({}, t, {
1655
- value: n
1656
- }),
1657
- groupEnd: te({}, t, {
1658
- value: i
1659
- })
1660
- });
1661
- }
1662
- H < 0 && F("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1663
- }
1664
- }
1665
- var A = ie.ReactCurrentDispatcher, P;
1666
- function O(t, u, s) {
1667
- {
1668
- if (P === void 0)
1669
- try {
1670
- throw Error();
1671
- } catch (C) {
1672
- var y = C.stack.trim().match(/\n( *(at )?)/);
1673
- P = y && y[1] || "";
1674
- }
1675
- return `
1676
- ` + P + t;
1677
- }
1678
- }
1679
- var S = !1, Y;
1680
- {
1681
- var _r = typeof WeakMap == "function" ? WeakMap : Map;
1682
- Y = new _r();
1683
- }
1684
- function Ze(t, u) {
1685
- if (!t || S)
1686
- return "";
1687
- {
1688
- var s = Y.get(t);
1689
- if (s !== void 0)
1690
- return s;
1691
- }
1692
- var y;
1693
- S = !0;
1694
- var C = Error.prepareStackTrace;
1695
- Error.prepareStackTrace = void 0;
1696
- var T;
1697
- T = A.current, A.current = null, E();
1698
- try {
1699
- if (u) {
1700
- var b = function() {
1701
- throw Error();
1702
- };
1703
- if (Object.defineProperty(b.prototype, "props", {
1704
- set: function() {
1705
- throw Error();
1706
- }
1707
- }), typeof Reflect == "object" && Reflect.construct) {
1708
- try {
1709
- Reflect.construct(b, []);
1710
- } catch (Z) {
1711
- y = Z;
1712
- }
1713
- Reflect.construct(t, [], b);
1714
- } else {
1715
- try {
1716
- b.call();
1717
- } catch (Z) {
1718
- y = Z;
1719
- }
1720
- t.call(b.prototype);
1721
- }
1722
- } else {
1723
- try {
1724
- throw Error();
1725
- } catch (Z) {
1726
- y = Z;
1727
- }
1728
- t();
1729
- }
1730
- } catch (Z) {
1731
- if (Z && y && typeof Z.stack == "string") {
1732
- for (var h = Z.stack.split(`
1733
- `), G = y.stack.split(`
1734
- `), L = h.length - 1, M = G.length - 1; L >= 1 && M >= 0 && h[L] !== G[M]; )
1735
- M--;
1736
- for (; L >= 1 && M >= 0; L--, M--)
1737
- if (h[L] !== G[M]) {
1738
- if (L !== 1 || M !== 1)
1739
- do
1740
- if (L--, M--, M < 0 || h[L] !== G[M]) {
1741
- var ne = `
1742
- ` + h[L].replace(" at new ", " at ");
1743
- return t.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", t.displayName)), typeof t == "function" && Y.set(t, ne), ne;
1744
- }
1745
- while (L >= 1 && M >= 0);
1746
- break;
1747
- }
1748
- }
1749
- } finally {
1750
- S = !1, A.current = T, w(), Error.prepareStackTrace = C;
1751
- }
1752
- var we = t ? t.displayName || t.name : "", he = we ? O(we) : "";
1753
- return typeof t == "function" && Y.set(t, he), he;
1754
- }
1755
- function Le(t, u, s) {
1756
- return Ze(t, !1);
1757
- }
1758
- function br(t) {
1759
- var u = t.prototype;
1760
- return !!(u && u.isReactComponent);
1761
- }
1762
- function Ne(t, u, s) {
1763
- if (t == null)
1764
- return "";
1765
- if (typeof t == "function")
1766
- return Ze(t, br(t));
1767
- if (typeof t == "string")
1768
- return O(t);
1769
- switch (t) {
1770
- case X:
1771
- return O("Suspense");
1772
- case D:
1773
- return O("SuspenseList");
1774
- }
1775
- if (typeof t == "object")
1776
- switch (t.$$typeof) {
1777
- case k:
1778
- return Le(t.render);
1779
- case K:
1780
- return Ne(t.type, u, s);
1781
- case ae: {
1782
- var y = t, C = y._payload, T = y._init;
1783
- try {
1784
- return Ne(T(C), u, s);
1785
- } catch {
1786
- }
1787
- }
1788
- }
1789
- return "";
1790
- }
1791
- var _e = Object.prototype.hasOwnProperty, Pe = {}, er = ie.ReactDebugCurrentFrame;
1792
- function je(t) {
1793
- if (t) {
1794
- var u = t._owner, s = Ne(t.type, t._source, u ? u.type : null);
1795
- er.setExtraStackFrame(s);
1796
- } else
1797
- er.setExtraStackFrame(null);
1798
- }
1799
- function ve(t, u, s, y, C) {
1800
- {
1801
- var T = Function.call.bind(_e);
1802
- for (var b in t)
1803
- if (T(t, b)) {
1804
- var h = void 0;
1805
- try {
1806
- if (typeof t[b] != "function") {
1807
- var G = Error((y || "React class") + ": " + s + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1808
- throw G.name = "Invariant Violation", G;
1809
- }
1810
- h = t[b](u, b, y, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1811
- } catch (L) {
1812
- h = L;
1813
- }
1814
- h && !(h instanceof Error) && (je(C), 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).", y || "React class", s, b, typeof h), je(null)), h instanceof Error && !(h.message in Pe) && (Pe[h.message] = !0, je(C), F("Failed %s type: %s", s, h.message), je(null));
1815
- }
1816
- }
1817
- }
1818
- var Ae = Array.isArray;
1819
- function Me(t) {
1820
- return Ae(t);
1821
- }
1822
- function rr(t) {
1823
- {
1824
- var u = typeof Symbol == "function" && Symbol.toStringTag, s = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
1825
- return s;
1826
- }
1827
- }
1828
- function tr(t) {
1829
- try {
1830
- return We(t), !1;
1831
- } catch {
1832
- return !0;
1833
- }
1834
- }
1835
- function We(t) {
1836
- return "" + t;
1837
- }
1838
- function ze(t) {
1839
- if (tr(t))
1840
- return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(t)), We(t);
1841
- }
1842
- var be = ie.ReactCurrentOwner, Er = {
1843
- key: !0,
1844
- ref: !0,
1845
- __self: !0,
1846
- __source: !0
1847
- }, nr, ar, De;
1848
- De = {};
1849
- function Rr(t) {
1850
- if (_e.call(t, "ref")) {
1851
- var u = Object.getOwnPropertyDescriptor(t, "ref").get;
1852
- if (u && u.isReactWarning)
1853
- return !1;
1854
- }
1855
- return t.ref !== void 0;
1856
- }
1857
- function wr(t) {
1858
- if (_e.call(t, "key")) {
1859
- var u = Object.getOwnPropertyDescriptor(t, "key").get;
1860
- if (u && u.isReactWarning)
1861
- return !1;
1862
- }
1863
- return t.key !== void 0;
1864
- }
1865
- function Cr(t, u) {
1866
- if (typeof t.ref == "string" && be.current && u && be.current.stateNode !== u) {
1867
- var s = Q(be.current.type);
1868
- De[s] || (F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Q(be.current.type), t.ref), De[s] = !0);
1869
- }
1870
- }
1871
- function Ee(t, u) {
1872
- {
1873
- var s = function() {
1874
- nr || (nr = !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)", u));
1875
- };
1876
- s.isReactWarning = !0, Object.defineProperty(t, "key", {
1877
- get: s,
1878
- configurable: !0
1879
- });
1880
- }
1881
- }
1882
- function or(t, u) {
1883
- {
1884
- var s = function() {
1885
- ar || (ar = !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)", u));
1886
- };
1887
- s.isReactWarning = !0, Object.defineProperty(t, "ref", {
1888
- get: s,
1889
- configurable: !0
1890
- });
1891
- }
1892
- }
1893
- var Sr = function(t, u, s, y, C, T, b) {
1894
- var h = {
1895
- // This tag allows us to uniquely identify this as a React Element
1896
- $$typeof: v,
1897
- // Built-in properties that belong on the element
1898
- type: t,
1899
- key: u,
1900
- ref: s,
1901
- props: b,
1902
- // Record the component responsible for creating this element.
1903
- _owner: T
1904
- };
1905
- return h._store = {}, Object.defineProperty(h._store, "validated", {
1906
- configurable: !1,
1907
- enumerable: !1,
1908
- writable: !0,
1909
- value: !1
1910
- }), Object.defineProperty(h, "_self", {
1911
- configurable: !1,
1912
- enumerable: !1,
1913
- writable: !1,
1914
- value: y
1915
- }), Object.defineProperty(h, "_source", {
1916
- configurable: !1,
1917
- enumerable: !1,
1918
- writable: !1,
1919
- value: C
1920
- }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
1921
- };
1922
- function Tr(t, u, s, y, C) {
1923
- {
1924
- var T, b = {}, h = null, G = null;
1925
- s !== void 0 && (ze(s), h = "" + s), wr(u) && (ze(u.key), h = "" + u.key), Rr(u) && (G = u.ref, Cr(u, C));
1926
- for (T in u)
1927
- _e.call(u, T) && !Er.hasOwnProperty(T) && (b[T] = u[T]);
1928
- if (t && t.defaultProps) {
1929
- var L = t.defaultProps;
1930
- for (T in L)
1931
- b[T] === void 0 && (b[T] = L[T]);
1932
- }
1933
- if (h || G) {
1934
- var M = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
1935
- h && Ee(b, M), G && or(b, M);
1936
- }
1937
- return Sr(t, h, G, C, y, be.current, b);
1938
- }
1939
- }
1940
- var Ue = ie.ReactCurrentOwner, ur = ie.ReactDebugCurrentFrame;
1941
- function me(t) {
1942
- if (t) {
1943
- var u = t._owner, s = Ne(t.type, t._source, u ? u.type : null);
1944
- ur.setExtraStackFrame(s);
1945
- } else
1946
- ur.setExtraStackFrame(null);
1947
- }
1948
- var xe;
1949
- xe = !1;
1950
- function Re(t) {
1951
- return typeof t == "object" && t !== null && t.$$typeof === v;
1952
- }
1953
- function Ie() {
1954
- {
1955
- if (Ue.current) {
1956
- var t = Q(Ue.current.type);
1957
- if (t)
1958
- return `
1959
-
1960
- Check the render method of \`` + t + "`.";
1961
- }
1962
- return "";
1963
- }
1964
- }
1965
- function Or(t) {
1966
- return "";
1967
- }
1968
- var ir = {};
1969
- function kr(t) {
1970
- {
1971
- var u = Ie();
1972
- if (!u) {
1973
- var s = typeof t == "string" ? t : t.displayName || t.name;
1974
- s && (u = `
1975
-
1976
- Check the top-level render call using <` + s + ">.");
1977
- }
1978
- return u;
1979
- }
1980
- }
1981
- function sr(t, u) {
1982
- {
1983
- if (!t._store || t._store.validated || t.key != null)
1984
- return;
1985
- t._store.validated = !0;
1986
- var s = kr(u);
1987
- if (ir[s])
1988
- return;
1989
- ir[s] = !0;
1990
- var y = "";
1991
- t && t._owner && t._owner !== Ue.current && (y = " It was passed a child from " + Q(t._owner.type) + "."), me(t), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, y), me(null);
1992
- }
1993
- }
1994
- function cr(t, u) {
1995
- {
1996
- if (typeof t != "object")
1997
- return;
1998
- if (Me(t))
1999
- for (var s = 0; s < t.length; s++) {
2000
- var y = t[s];
2001
- Re(y) && sr(y, u);
2002
- }
2003
- else if (Re(t))
2004
- t._store && (t._store.validated = !0);
2005
- else if (t) {
2006
- var C = ue(t);
2007
- if (typeof C == "function" && C !== t.entries)
2008
- for (var T = C.call(t), b; !(b = T.next()).done; )
2009
- Re(b.value) && sr(b.value, u);
2010
- }
2011
- }
2012
- }
2013
- function $e(t) {
2014
- {
2015
- var u = t.type;
2016
- if (u == null || typeof u == "string")
2017
- return;
2018
- var s;
2019
- if (typeof u == "function")
2020
- s = u.propTypes;
2021
- else if (typeof u == "object" && (u.$$typeof === k || // Note: Memo only checks outer props here.
2022
- // Inner props are checked in the reconciler.
2023
- u.$$typeof === K))
2024
- s = u.propTypes;
2025
- else
2026
- return;
2027
- if (s) {
2028
- var y = Q(u);
2029
- ve(s, t.props, "prop", y, t);
2030
- } else if (u.PropTypes !== void 0 && !xe) {
2031
- xe = !0;
2032
- var C = Q(u);
2033
- F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
2034
- }
2035
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2036
- }
2037
- }
2038
- function qe(t) {
2039
- {
2040
- for (var u = Object.keys(t.props), s = 0; s < u.length; s++) {
2041
- var y = u[s];
2042
- if (y !== "children" && y !== "key") {
2043
- me(t), F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), me(null);
2044
- break;
2045
- }
2046
- }
2047
- t.ref !== null && (me(t), F("Invalid attribute `ref` supplied to `React.Fragment`."), me(null));
2048
- }
2049
- }
2050
- var Ke = {};
2051
- function fr(t, u, s, y, C, T) {
2052
- {
2053
- var b = Te(t);
2054
- if (!b) {
2055
- var h = "";
2056
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2057
- var G = Or();
2058
- G ? h += G : h += Ie();
2059
- var L;
2060
- t === null ? L = "null" : Me(t) ? L = "array" : t !== void 0 && t.$$typeof === v ? (L = "<" + (Q(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : L = typeof t, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, h);
2061
- }
2062
- var M = Tr(t, u, s, C, T);
2063
- if (M == null)
2064
- return M;
2065
- if (b) {
2066
- var ne = u.children;
2067
- if (ne !== void 0)
2068
- if (y)
2069
- if (Me(ne)) {
2070
- for (var we = 0; we < ne.length; we++)
2071
- cr(ne[we], t);
2072
- Object.freeze && Object.freeze(ne);
2073
- } else
2074
- 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.");
2075
- else
2076
- cr(ne, t);
2077
- }
2078
- if (_e.call(u, "key")) {
2079
- var he = Q(t), Z = Object.keys(u).filter(function(xr) {
2080
- return xr !== "key";
2081
- }), He = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
2082
- if (!Ke[he + He]) {
2083
- var Dr = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
2084
- F(`A props object containing a "key" prop is being spread into JSX:
2085
- let props = %s;
2086
- <%s {...props} />
2087
- React keys must be passed directly to JSX without using spread:
2088
- let props = %s;
2089
- <%s key={someKey} {...props} />`, He, he, Dr, he), Ke[he + He] = !0;
2090
- }
2091
- }
2092
- return t === z ? qe(M) : $e(M), M;
2093
- }
2094
- }
2095
- function Pr(t, u, s) {
2096
- return fr(t, u, s, !0);
2097
- }
2098
- function jr(t, u, s) {
2099
- return fr(t, u, s, !1);
2100
- }
2101
- var Ar = jr, lr = Pr;
2102
- Xe.Fragment = z, Xe.jsx = Ar, Xe.jsxs = lr;
2103
- }()), Xe;
2104
- }
2105
- process.env.NODE_ENV === "production" ? Vr.exports = Vt() : Vr.exports = Yt();
2106
- var gt = Vr.exports;
2107
- function Bt(l) {
2108
- const v = Ce.useRef(null);
2109
- function oe() {
2110
- const $ = l.host || "https://app.documenso.com", W = btoa(
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { useRef as r, useEffect as u } from "react";
3
+ function g(e) {
4
+ const c = r(null);
5
+ function l() {
6
+ const n = e.host || "https://app.documenso.com", a = btoa(
2111
7
  JSON.stringify({
2112
- name: l.name,
2113
- lockName: l.lockName,
2114
- email: l.email,
2115
- lockEmail: l.lockEmail,
2116
- css: l.css
8
+ name: e.name,
9
+ lockName: e.lockName,
10
+ email: e.email,
11
+ lockEmail: e.lockEmail,
12
+ css: e.css
2117
13
  })
2118
- ), U = new URL(`/embed/direct/${l.token}`, $);
2119
- return l.externalId && U.searchParams.set("externalId", l.externalId), `${U}#${W}`;
14
+ ), t = new URL(`/embed/direct/${e.token}`, n);
15
+ return e.externalId && t.searchParams.set("externalId", e.externalId), `${t}#${a}`;
2120
16
  }
2121
- function z($) {
2122
- var W, U, q, k, X, D;
2123
- if (((W = v.current) == null ? void 0 : W.contentWindow) === $.source)
2124
- switch ($.data.action) {
17
+ function d(n) {
18
+ var a, t, m, i, o, s;
19
+ if (((a = c.current) == null ? void 0 : a.contentWindow) === n.source)
20
+ switch (n.data.action) {
2125
21
  case "document-ready":
2126
- (U = l.onDocumentReady) == null || U.call(l);
22
+ (t = e.onDocumentReady) == null || t.call(e);
2127
23
  break;
2128
24
  case "document-completed":
2129
- (q = l.onDocumentCompleted) == null || q.call(l, $.data.data);
25
+ (m = e.onDocumentCompleted) == null || m.call(e, n.data.data);
2130
26
  break;
2131
27
  case "document-error":
2132
- (k = l.onDocumentError) == null || k.call(l, $.data.data);
28
+ (i = e.onDocumentError) == null || i.call(e, n.data.data);
2133
29
  break;
2134
30
  case "field-signed":
2135
- (X = l.onFieldSigned) == null || X.call(l);
31
+ (o = e.onFieldSigned) == null || o.call(e);
2136
32
  break;
2137
33
  case "field-unsigned":
2138
- (D = l.onFieldUnsigned) == null || D.call(l);
34
+ (s = e.onFieldUnsigned) == null || s.call(e);
2139
35
  break;
2140
36
  }
2141
37
  }
2142
- return Ce.useEffect(() => {
2143
- window.addEventListener("message", z);
2144
- }, []), Ce.useEffect(() => () => {
2145
- window.removeEventListener("message", z);
2146
- }, []), /* @__PURE__ */ gt.jsx("iframe", { ref: v, className: l.className, src: oe() });
38
+ return u(() => {
39
+ window.addEventListener("message", d);
40
+ }, []), u(() => () => {
41
+ window.removeEventListener("message", d);
42
+ }, []), /* @__PURE__ */ f("iframe", { ref: c, className: e.className, src: l() });
2147
43
  }
2148
- function zt(l) {
2149
- const v = Ce.useRef(null);
2150
- function oe() {
2151
- const $ = l.host || "https://app.documenso.com", W = btoa(
44
+ function w(e) {
45
+ const c = r(null);
46
+ function l() {
47
+ const n = e.host || "https://app.documenso.com", a = btoa(
2152
48
  JSON.stringify({
2153
- name: l.name,
2154
- lockName: l.lockName,
2155
- css: l.css
49
+ name: e.name,
50
+ lockName: e.lockName,
51
+ css: e.css
2156
52
  })
2157
53
  );
2158
- return `${new URL(`/embed/sign/${l.token}`, $)}#${W}`;
54
+ return `${new URL(`/embed/sign/${e.token}`, n)}#${a}`;
2159
55
  }
2160
- function z($) {
2161
- var W, U, q, k;
2162
- if (((W = v.current) == null ? void 0 : W.contentWindow) === $.source)
2163
- switch ($.data.action) {
56
+ function d(n) {
57
+ var a, t, m, i;
58
+ if (((a = c.current) == null ? void 0 : a.contentWindow) === n.source)
59
+ switch (n.data.action) {
2164
60
  case "document-ready":
2165
- (U = l.onDocumentReady) == null || U.call(l);
61
+ (t = e.onDocumentReady) == null || t.call(e);
2166
62
  break;
2167
63
  case "document-completed":
2168
- (q = l.onDocumentCompleted) == null || q.call(l, $.data.data);
64
+ (m = e.onDocumentCompleted) == null || m.call(e, n.data.data);
2169
65
  break;
2170
66
  case "document-error":
2171
- (k = l.onDocumentError) == null || k.call(l, $.data.data);
67
+ (i = e.onDocumentError) == null || i.call(e, n.data.data);
2172
68
  break;
2173
69
  }
2174
70
  }
2175
- return Ce.useEffect(() => {
2176
- window.addEventListener("message", z);
2177
- }, []), Ce.useEffect(() => () => {
2178
- window.removeEventListener("message", z);
2179
- }, []), /* @__PURE__ */ gt.jsx("iframe", { ref: v, className: l.className, src: oe() });
71
+ return u(() => {
72
+ window.addEventListener("message", d);
73
+ }, []), u(() => () => {
74
+ window.removeEventListener("message", d);
75
+ }, []), /* @__PURE__ */ f("iframe", { ref: c, className: e.className, src: l() });
2180
76
  }
2181
77
  export {
2182
- Bt as EmbedDirectTemplate,
2183
- zt as EmbedSignDocument
78
+ g as EmbedDirectTemplate,
79
+ w as EmbedSignDocument
2184
80
  };