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