@fluidattacks/design 3.1.12 → 3.1.14

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 (159) hide show
  1. package/dist/assets/design.css +1 -0
  2. package/dist/components/@core/index.js +15 -16
  3. package/dist/components/accordion/accordion-content/index.js +3 -7
  4. package/dist/components/accordion/index.js +5 -19
  5. package/dist/components/alert/index.js +4 -111
  6. package/dist/components/button/index.js +4 -16
  7. package/dist/components/card/card-header/index.js +4 -12
  8. package/dist/components/card/card-with-image/index.js +5 -16
  9. package/dist/components/card/card-with-input/index.js +5 -54
  10. package/dist/components/card/card-with-selector/index.js +4 -14
  11. package/dist/components/card/card-with-switch/index.js +4 -10
  12. package/dist/components/card/index.js +6 -10
  13. package/dist/components/carousel/index.js +4 -47
  14. package/dist/components/checkbox/index.js +4 -82
  15. package/dist/components/cloud-image/index.js +2 -2
  16. package/dist/components/code-snippet/index.js +6 -25
  17. package/dist/components/code-snippet/location-code/index.js +7 -123
  18. package/dist/components/colors/index.js +7 -7
  19. package/dist/components/confirm-dialog/index.js +4 -20
  20. package/dist/components/container/index.js +4 -25
  21. package/dist/components/content-card/category-tag/index.js +4 -11
  22. package/dist/components/content-card/event-date/index.js +5 -16
  23. package/dist/components/content-card/index.js +4 -61
  24. package/dist/components/content-card-carousel/index.js +4 -13
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
  26. package/dist/components/divider/index.js +4 -8
  27. package/dist/components/empty-state/empty-button/index.js +3 -4
  28. package/dist/components/empty-state/index.js +3 -46
  29. package/dist/components/file-preview/index.js +3 -26
  30. package/dist/components/form/index.js +4 -24
  31. package/dist/components/grid-container/index.js +4 -26
  32. package/dist/components/group-selector/index.js +6 -24
  33. package/dist/components/group-selector/option-container/index.js +3 -7
  34. package/dist/components/icon/index.js +4 -46
  35. package/dist/components/icon-button/index.js +4 -25
  36. package/dist/components/indicator-card/index.js +5 -13
  37. package/dist/components/info-sidebar/index.js +4 -14
  38. package/dist/components/inputs/fields/combobox/index.js +7 -24
  39. package/dist/components/inputs/fields/combobox/option/index.js +2 -3
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -14
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -13
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +4 -14
  43. package/dist/components/inputs/fields/date/calendar/index.js +6 -13
  44. package/dist/components/inputs/fields/date/index.js +8 -16
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +7 -14
  46. package/dist/components/inputs/fields/date-range/index.js +6 -26
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +7 -33
  48. package/dist/components/inputs/fields/date-time/index.js +6 -16
  49. package/dist/components/inputs/fields/editable/index.js +4 -14
  50. package/dist/components/inputs/fields/input/index.js +5 -11
  51. package/dist/components/inputs/fields/input-file/index.js +6 -30
  52. package/dist/components/inputs/fields/input-tags/index.js +4 -17
  53. package/dist/components/inputs/fields/number/index.js +4 -8
  54. package/dist/components/inputs/fields/number-range/index.js +4 -9
  55. package/dist/components/inputs/fields/phone/index.js +7 -417
  56. package/dist/components/inputs/fields/text-area/index.js +5 -11
  57. package/dist/components/inputs/index.js +14 -26
  58. package/dist/components/inputs/label/index.js +5 -10
  59. package/dist/components/inputs/outline-container/index.js +4 -16
  60. package/dist/components/inputs/utils/action-button/index.js +4 -8
  61. package/dist/components/inputs/utils/calendar-button/index.js +5 -11
  62. package/dist/components/inputs/utils/date-selector/index.js +3 -6
  63. package/dist/components/inputs/utils/date-time-field/index.js +10 -30
  64. package/dist/components/inputs/utils/dialog/index.js +5 -9
  65. package/dist/components/inputs/utils/number-field/index.js +5 -11
  66. package/dist/components/inputs/utils/popover/index.js +5 -11
  67. package/dist/components/interactive-card/icon/index.js +2 -4
  68. package/dist/components/interactive-card/index.js +4 -13
  69. package/dist/components/language-selector/index.js +4 -11
  70. package/dist/components/language-selector/item-list/index.js +2 -5
  71. package/dist/components/link/index.js +3 -50
  72. package/dist/components/list-item/index.js +6 -14
  73. package/dist/components/little-flag/index.js +3 -13
  74. package/dist/components/loading/index.js +4 -65
  75. package/dist/components/logo/index.js +3 -5
  76. package/dist/components/logo-carousel/index.js +4 -50
  77. package/dist/components/lottie/index.js +3 -13
  78. package/dist/components/menu/index.js +5 -20
  79. package/dist/components/message-banner/index.js +5 -33
  80. package/dist/components/modal/index.js +6 -17
  81. package/dist/components/modal/modal-confirm/index.js +3 -8
  82. package/dist/components/modal/modal-footer/index.js +5 -14
  83. package/dist/components/modal/modal-header/index.js +6 -23
  84. package/dist/components/notification/index.js +5 -66
  85. package/dist/components/notification-sign/index.js +4 -28
  86. package/dist/components/number-input/index.js +5 -50
  87. package/dist/components/oauth-selector/index.js +6 -24
  88. package/dist/components/oauth-selector/option-container/index.js +4 -13
  89. package/dist/components/plan-card/index.js +3 -82
  90. package/dist/components/plan-card/recommended-tag/index.js +3 -8
  91. package/dist/components/pop-up/description/index.js +5 -11
  92. package/dist/components/pop-up/index.js +7 -21
  93. package/dist/components/premium-feature/index.js +4 -43
  94. package/dist/components/priority-score/index.js +4 -12
  95. package/dist/components/progress/index.js +5 -32
  96. package/dist/components/progress-bar/index.js +3 -93
  97. package/dist/components/radio-button/index.js +4 -86
  98. package/dist/components/scroll-button/index.js +4 -22
  99. package/dist/components/search/index.js +7 -61
  100. package/dist/components/search-bar/index.js +4 -30
  101. package/dist/components/search-bar/item-searching/index.js +2 -7
  102. package/dist/components/severity-badge/index.js +4 -12
  103. package/dist/components/severity-overview/badge/index.js +4 -16
  104. package/dist/components/severity-overview/index.js +3 -5
  105. package/dist/components/show-on-hover/index.js +3 -23
  106. package/dist/components/slide-out-menu/index.js +6 -2006
  107. package/dist/components/slide-out-menu/menu-item/index.js +4 -13
  108. package/dist/components/slider/index.js +7 -91
  109. package/dist/components/slider/thumb/index.js +5 -8
  110. package/dist/components/step-lapse/index.js +4 -99
  111. package/dist/components/table-button/index.js +4 -54
  112. package/dist/components/tabs/fixed-tabs/index.js +3 -7
  113. package/dist/components/tabs/index.js +6 -12
  114. package/dist/components/tabs/tab/index.js +3 -6
  115. package/dist/components/tag/index.js +4 -114
  116. package/dist/components/timeline/card/index.js +2 -5
  117. package/dist/components/timeline/index.js +4 -5
  118. package/dist/components/toggle/index.js +4 -61
  119. package/dist/components/toggle-buttons/index.js +4 -72
  120. package/dist/components/tooltip/index.js +3 -6
  121. package/dist/components/tour/index.js +7 -2514
  122. package/dist/components/typography/heading/index.js +4 -7
  123. package/dist/components/typography/index.js +4 -6
  124. package/dist/components/typography/span/index.js +4 -7
  125. package/dist/components/typography/text/index.js +4 -7
  126. package/dist/components/web-form/index.js +4 -69
  127. package/dist/components-C2JBXbtI.mjs +9653 -0
  128. package/dist/hooks/index.js +6 -10
  129. package/dist/index.js +113 -205
  130. package/dist/vendor-CVMqCpkZ.mjs +14504 -0
  131. package/package.json +2 -3
  132. package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
  133. package/dist/assets/index.css +0 -1
  134. package/dist/assets/index2.css +0 -1
  135. package/dist/index-38JqtnAI.mjs +0 -122
  136. package/dist/index-B5yoGFs6.mjs +0 -54
  137. package/dist/index-BLbKylyw.mjs +0 -209
  138. package/dist/index-Bu448Tz2.mjs +0 -106
  139. package/dist/index-BwFnfaRh.mjs +0 -2310
  140. package/dist/index-Co_k0WFk.mjs +0 -75
  141. package/dist/index-Cu7uUMlx.mjs +0 -82
  142. package/dist/index-D-lcuEHY.mjs +0 -1018
  143. package/dist/index-DrfjITyT.mjs +0 -61
  144. package/dist/styles-7_q7nHce.mjs +0 -110
  145. package/dist/styles-BA0WIQL-.mjs +0 -74
  146. package/dist/styles-C3cZmKVJ.mjs +0 -131
  147. package/dist/styles-CI-I6joH.mjs +0 -144
  148. package/dist/styles-Cx93EcVo.mjs +0 -76
  149. package/dist/styles-D85YYIjM.mjs +0 -131
  150. package/dist/styles-EIbGRPlk.mjs +0 -106
  151. package/dist/styles-Q1VXuWI7.mjs +0 -65
  152. package/dist/styles-fH2c4cfc.mjs +0 -77
  153. package/dist/styles-lSVV9kjn.mjs +0 -133
  154. package/dist/use-carousel-CvRxi2FI.mjs +0 -17
  155. package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
  156. package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
  157. package/dist/use-modal-CkrZ-_-M.mjs +0 -14
  158. package/dist/use-search-DpLNvt7Q.mjs +0 -12
  159. package/dist/utils-CQvBF-wY.mjs +0 -4
@@ -1,2516 +1,9 @@
1
- import { jsx as dr } from "react/jsx-runtime";
2
- import { isUndefined as hr } from "lodash";
3
- import * as _ from "react";
4
- import D, { isValidElement as Cn, cloneElement as Tt, useState as kt, useCallback as yr } from "react";
5
- import { g as Le } from "../../_commonjsHelpers-C6fGbg64.mjs";
6
- import * as Qe from "react-dom";
7
- import He, { createPortal as mr } from "react-dom";
8
- function jn(e) {
9
- return (t) => typeof t === e;
10
- }
11
- var gr = jn("function"), Pt = (e) => Object.prototype.toString.call(e).slice(8, -1) === "RegExp", Nt = (e) => !br(e) && !/* @__PURE__ */ ((t) => t === null)(e) && (gr(e) || typeof e == "object"), br = jn("undefined");
12
- function q(e, t) {
13
- if (e === t) return !0;
14
- if (e && Nt(e) && t && Nt(t)) {
15
- if (e.constructor !== t.constructor) return !1;
16
- if (Array.isArray(e) && Array.isArray(t)) return function(o, i) {
17
- const { length: s } = o;
18
- if (s !== i.length) return !1;
19
- for (let a = s; a-- != 0; ) if (!q(o[a], i[a])) return !1;
20
- return !0;
21
- }(e, t);
22
- if (e instanceof Map && t instanceof Map) return function(o, i) {
23
- if (o.size !== i.size) return !1;
24
- for (const s of o.entries()) if (!i.has(s[0])) return !1;
25
- for (const s of o.entries()) if (!q(s[1], i.get(s[0]))) return !1;
26
- return !0;
27
- }(e, t);
28
- if (e instanceof Set && t instanceof Set) return function(o, i) {
29
- if (o.size !== i.size) return !1;
30
- for (const s of o.entries()) if (!i.has(s[0])) return !1;
31
- return !0;
32
- }(e, t);
33
- if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) return function(o, i) {
34
- if (o.byteLength !== i.byteLength) return !1;
35
- const s = new DataView(o.buffer), a = new DataView(i.buffer);
36
- let l = o.byteLength;
37
- for (; l--; ) if (s.getUint8(l) !== a.getUint8(l)) return !1;
38
- return !0;
39
- }(e, t);
40
- if (Pt(e) && Pt(t)) return e.source === t.source && e.flags === t.flags;
41
- if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
42
- if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
43
- const n = Object.keys(e), r = Object.keys(t);
44
- if (n.length !== r.length) return !1;
45
- for (let o = n.length; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(t, n[o])) return !1;
46
- for (let o = n.length; o-- != 0; ) {
47
- const i = n[o];
48
- if ((i !== "_owner" || !e.$$typeof) && !q(e[i], t[i])) return !1;
49
- }
50
- return !0;
51
- }
52
- return !(!Number.isNaN(e) || !Number.isNaN(t)) || e === t;
53
- }
54
- var vr = ["Array", "ArrayBuffer", "AsyncFunction", "AsyncGenerator", "AsyncGeneratorFunction", "Date", "Error", "Function", "Generator", "GeneratorFunction", "HTMLElement", "Map", "Object", "Promise", "RegExp", "Set", "WeakMap", "WeakSet"], wr = ["bigint", "boolean", "null", "number", "string", "symbol", "undefined"];
55
- function Ge(e) {
56
- const t = Object.prototype.toString.call(e).slice(8, -1);
57
- return /HTML\w+Element/.test(t) ? "HTMLElement" : (n = t, vr.includes(n) ? t : void 0);
58
- var n;
59
- }
60
- function X(e) {
61
- return (t) => Ge(t) === e;
62
- }
63
- function he(e) {
64
- return (t) => typeof t === e;
65
- }
66
- var Or = ["innerHTML", "ownerDocument", "style", "attributes", "nodeValue"];
67
- function T(e) {
68
- if (e === null) return "null";
69
- switch (typeof e) {
70
- case "bigint":
71
- return "bigint";
72
- case "boolean":
73
- return "boolean";
74
- case "number":
75
- return "number";
76
- case "string":
77
- return "string";
78
- case "symbol":
79
- return "symbol";
80
- case "undefined":
81
- return "undefined";
82
- }
83
- return T.array(e) ? "Array" : T.plainFunction(e) ? "Function" : Ge(e) || "Object";
84
- }
85
- T.array = Array.isArray, T.arrayOf = (e, t) => !(!T.array(e) && !T.function(t)) && e.every((n) => t(n)), T.asyncGeneratorFunction = (e) => Ge(e) === "AsyncGeneratorFunction", T.asyncFunction = X("AsyncFunction"), T.bigint = he("bigint"), T.boolean = (e) => e === !0 || e === !1, T.date = X("Date"), T.defined = (e) => !T.undefined(e), T.domElement = (e) => T.object(e) && !T.plainObject(e) && e.nodeType === 1 && T.string(e.nodeName) && Or.every((t) => t in e), T.empty = (e) => T.string(e) && e.length === 0 || T.array(e) && e.length === 0 || T.object(e) && !T.map(e) && !T.set(e) && Object.keys(e).length === 0 || T.set(e) && e.size === 0 || T.map(e) && e.size === 0, T.error = X("Error"), T.function = he("function"), T.generator = (e) => T.iterable(e) && T.function(e.next) && T.function(e.throw), T.generatorFunction = X("GeneratorFunction"), T.instanceOf = (e, t) => !(!e || !t) && Object.getPrototypeOf(e) === t.prototype, T.iterable = (e) => !T.nullOrUndefined(e) && T.function(e[Symbol.iterator]), T.map = X("Map"), T.nan = (e) => Number.isNaN(e), T.null = (e) => e === null, T.nullOrUndefined = (e) => T.null(e) || T.undefined(e), T.number = (e) => he("number")(e) && !T.nan(e), T.numericString = (e) => T.string(e) && e.length > 0 && !Number.isNaN(Number(e)), T.object = (e) => !T.nullOrUndefined(e) && (T.function(e) || typeof e == "object"), T.oneOf = (e, t) => !!T.array(e) && e.indexOf(t) > -1, T.plainFunction = X("Function"), T.plainObject = (e) => {
86
- if (Ge(e) !== "Object") return !1;
87
- const t = Object.getPrototypeOf(e);
88
- return t === null || t === Object.getPrototypeOf({});
89
- }, T.primitive = (e) => {
90
- return T.null(e) || (t = typeof e, wr.includes(t));
91
- var t;
92
- }, T.promise = X("Promise"), T.propertyOf = (e, t, n) => {
93
- if (!T.object(e) || !t) return !1;
94
- const r = e[t];
95
- return T.function(n) ? n(r) : T.defined(r);
96
- }, T.regexp = X("RegExp"), T.set = X("Set"), T.string = he("string"), T.symbol = he("symbol"), T.undefined = he("undefined"), T.weakMap = X("WeakMap"), T.weakSet = X("WeakSet");
97
- var Ct, jt, P = T;
98
- function It(e, t, n) {
99
- const { actual: r, key: o, previous: i, type: s } = n, a = ne(e, o), l = ne(t, o);
100
- let c = [a, l].every(P.number) && (s === "increased" ? a < l : a > l);
101
- return P.undefined(r) || (c = c && l === r), P.undefined(i) || (c = c && a === i), c;
102
- }
103
- function Rt(e, t, n) {
104
- const { key: r, type: o, value: i } = n, s = ne(e, r), a = ne(t, r), l = o === "added" ? s : a, c = o === "added" ? a : s;
105
- return P.nullOrUndefined(i) ? [s, a].every(P.array) ? !c.every(gt(l)) : [s, a].every(P.plainObject) ? function(u, p) {
106
- return p.some((d) => !u.includes(d));
107
- }(Object.keys(l), Object.keys(c)) : ![s, a].every((u) => P.primitive(u) && P.defined(u)) && (o === "added" ? !P.defined(s) && P.defined(a) : P.defined(s) && !P.defined(a)) : P.defined(l) ? !(!P.array(l) && !P.plainObject(l)) && function(u, p, d) {
108
- return !!In(u, p) && ([u, p].every(P.array) ? !u.some(Mt(d)) && p.some(Mt(d)) : [u, p].every(P.plainObject) ? !Object.entries(u).some(At(d)) && Object.entries(p).some(At(d)) : p === d);
109
- }(l, c, i) : q(c, i);
110
- }
111
- function Lt(e, t, { key: n } = {}) {
112
- let r = ne(e, n), o = ne(t, n);
113
- if (!In(r, o)) throw new TypeError("Inputs have different types");
114
- if (!function(...i) {
115
- return i.every((s) => P.string(s) || P.array(s) || P.plainObject(s));
116
- }(r, o)) throw new TypeError("Inputs don't have length");
117
- return [r, o].every(P.plainObject) && (r = Object.keys(r), o = Object.keys(o)), [r, o];
118
- }
119
- function At(e) {
120
- return ([t, n]) => P.array(e) ? q(e, n) || e.some((r) => q(r, n) || P.array(n) && gt(n)(r)) : P.plainObject(e) && e[t] ? !!e[t] && q(e[t], n) : q(e, n);
121
- }
122
- function Mt(e) {
123
- return (t) => P.array(e) ? e.some((n) => q(n, t) || P.array(t) && gt(t)(n)) : q(e, t);
124
- }
125
- function xe(e, t) {
126
- return P.array(e) ? e.some((n) => q(n, t)) : q(e, t);
127
- }
128
- function gt(e) {
129
- return (t) => e.some((n) => q(n, t));
130
- }
131
- function In(...e) {
132
- return e.every(P.array) || e.every(P.number) || e.every(P.plainObject) || e.every(P.string);
133
- }
134
- function ne(e, t) {
135
- return P.plainObject(e) || P.array(e) ? P.string(t) ? t.split(".").reduce((n, r) => n && n[r], e) : P.number(t) ? e[t] : e : e;
136
- }
137
- function qe(e, t) {
138
- if ([e, t].some(P.nullOrUndefined)) throw new Error("Missing required parameters");
139
- if (![e, t].every((n) => P.plainObject(n) || P.array(n))) throw new Error("Expected plain objects or array");
140
- return { added: (n, r) => {
141
- try {
142
- return Rt(e, t, { key: n, type: "added", value: r });
143
- } catch {
144
- return !1;
145
- }
146
- }, changed: (n, r, o) => {
147
- try {
148
- const i = ne(e, n), s = ne(t, n), a = P.defined(r), l = P.defined(o);
149
- if (a || l) {
150
- const c = l ? xe(o, i) : !xe(r, i), u = xe(r, s);
151
- return c && u;
152
- }
153
- return [i, s].every(P.array) || [i, s].every(P.plainObject) ? !q(i, s) : i !== s;
154
- } catch {
155
- return !1;
156
- }
157
- }, changedFrom: (n, r, o) => {
158
- if (!P.defined(n)) return !1;
159
- try {
160
- const i = ne(e, n), s = ne(t, n), a = P.defined(o);
161
- return xe(r, i) && (a ? xe(o, s) : !a);
162
- } catch {
163
- return !1;
164
- }
165
- }, decreased: (n, r, o) => {
166
- if (!P.defined(n)) return !1;
167
- try {
168
- return It(e, t, { key: n, actual: r, previous: o, type: "decreased" });
169
- } catch {
170
- return !1;
171
- }
172
- }, emptied: (n) => {
173
- try {
174
- const [r, o] = Lt(e, t, { key: n });
175
- return !!r.length && !o.length;
176
- } catch {
177
- return !1;
178
- }
179
- }, filled: (n) => {
180
- try {
181
- const [r, o] = Lt(e, t, { key: n });
182
- return !r.length && !!o.length;
183
- } catch {
184
- return !1;
185
- }
186
- }, increased: (n, r, o) => {
187
- if (!P.defined(n)) return !1;
188
- try {
189
- return It(e, t, { key: n, actual: r, previous: o, type: "increased" });
190
- } catch {
191
- return !1;
192
- }
193
- }, removed: (n, r) => {
194
- try {
195
- return Rt(e, t, { key: n, type: "removed", value: r });
196
- } catch {
197
- return !1;
198
- }
199
- } };
200
- }
201
- var Er = function() {
202
- if (jt) return Ct;
203
- jt = 1;
204
- var e = new Error("Element already at target scroll position"), t = new Error("Scroll cancelled"), n = Math.min, r = Date.now;
205
- function o(a) {
206
- return function(l, c, u, p) {
207
- typeof (u = u || {}) == "function" && (p = u, u = {}), typeof p != "function" && (p = s);
208
- var d = r(), h = l[a], y = u.ease || i, v = isNaN(u.duration) ? 350 : +u.duration, g = !1;
209
- return h === c ? p(e, l[a]) : requestAnimationFrame(function x(w) {
210
- if (g) return p(t, l[a]);
211
- var b = r(), k = n(1, (b - d) / v), f = y(k);
212
- l[a] = f * (c - h) + h, k < 1 ? requestAnimationFrame(x) : requestAnimationFrame(function() {
213
- p(null, l[a]);
214
- });
215
- }), function() {
216
- g = !0;
217
- };
218
- };
219
- }
220
- function i(a) {
221
- return 0.5 * (1 - Math.cos(Math.PI * a));
222
- }
223
- function s() {
224
- }
225
- return Ct = { left: o("scrollLeft"), top: o("scrollTop") };
226
- }();
227
- const Sr = Le(Er);
228
- var Dt, Ft, _t, et, tt = { exports: {} };
229
- const Rn = Le((Dt || (Dt = 1, _t = tt.exports, et = function() {
230
- function e(t) {
231
- var n = getComputedStyle(t, null).getPropertyValue("overflow");
232
- return n.indexOf("scroll") > -1 || n.indexOf("auto") > -1;
233
- }
234
- return function(t) {
235
- if (t instanceof HTMLElement || t instanceof SVGElement) {
236
- for (var n = t.parentNode; n.parentNode; ) {
237
- if (e(n)) return n;
238
- n = n.parentNode;
239
- }
240
- return document.scrollingElement || document.documentElement;
241
- }
242
- };
243
- }, (Ft = tt).exports ? Ft.exports = et() : _t.Scrollparent = et()), tt.exports));
244
- var Bt, Wt, xr = function() {
245
- if (Wt) return Bt;
246
- Wt = 1;
247
- var e = function(n, r) {
248
- return n + t(r);
249
- }, t = function(n) {
250
- return n === null || typeof n == "boolean" || n === void 0 ? "" : typeof n == "number" ? n.toString() : typeof n == "string" ? n : Array.isArray(n) ? n.reduce(e, "") : function(r) {
251
- return Object.prototype.hasOwnProperty.call(r, "props");
252
- }(n) && Object.prototype.hasOwnProperty.call(n.props, "children") ? t(n.props.children) : "";
253
- };
254
- return t.default = t, Bt = t;
255
- }();
256
- const zt = Le(xr);
257
- var Ut, Ht;
258
- const Q = Le(function() {
259
- if (Ht) return Ut;
260
- Ht = 1;
261
- var e = function(l) {
262
- return /* @__PURE__ */ function(c) {
263
- return !!c && typeof c == "object";
264
- }(l) && !function(c) {
265
- var u = Object.prototype.toString.call(c);
266
- return u === "[object RegExp]" || u === "[object Date]" || function(p) {
267
- return p.$$typeof === t;
268
- }(c);
269
- }(l);
270
- }, t = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
271
- function n(l, c) {
272
- return c.clone !== !1 && c.isMergeableObject(l) ? a((u = l, Array.isArray(u) ? [] : {}), l, c) : l;
273
- var u;
274
- }
275
- function r(l, c, u) {
276
- return l.concat(c).map(function(p) {
277
- return n(p, u);
278
- });
279
- }
280
- function o(l) {
281
- return Object.keys(l).concat(function(c) {
282
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(c).filter(function(u) {
283
- return Object.propertyIsEnumerable.call(c, u);
284
- }) : [];
285
- }(l));
286
- }
287
- function i(l, c) {
288
- try {
289
- return c in l;
290
- } catch {
291
- return !1;
292
- }
293
- }
294
- function s(l, c, u) {
295
- var p = {};
296
- return u.isMergeableObject(l) && o(l).forEach(function(d) {
297
- p[d] = n(l[d], u);
298
- }), o(c).forEach(function(d) {
299
- (function(h, y) {
300
- return i(h, y) && !(Object.hasOwnProperty.call(h, y) && Object.propertyIsEnumerable.call(h, y));
301
- })(l, d) || (i(l, d) && u.isMergeableObject(c[d]) ? p[d] = function(h, y) {
302
- if (!y.customMerge) return a;
303
- var v = y.customMerge(h);
304
- return typeof v == "function" ? v : a;
305
- }(d, u)(l[d], c[d], u) : p[d] = n(c[d], u));
306
- }), p;
307
- }
308
- function a(l, c, u) {
309
- (u = u || {}).arrayMerge = u.arrayMerge || r, u.isMergeableObject = u.isMergeableObject || e, u.cloneUnlessOtherwiseSpecified = n;
310
- var p = Array.isArray(c);
311
- return p === Array.isArray(l) ? p ? u.arrayMerge(l, c, u) : s(l, c, u) : n(c, u);
312
- }
313
- return a.all = function(l, c) {
314
- if (!Array.isArray(l)) throw new Error("first argument should be an array");
315
- return l.reduce(function(u, p) {
316
- return a(u, p, c);
317
- }, {});
318
- }, Ut = a;
319
- }());
320
- var $t, ze = { exports: {} }, nt = { exports: {} }, z = {}, Vt, Gt, rt, qt, Yt, Kt, Jt, Xt, Zt, Qt, ot, en, tn, nn, rn, U = {};
321
- /** @license React v16.13.1
322
- * react-is.development.js
323
- *
324
- * Copyright (c) Facebook, Inc. and its affiliates.
325
- *
326
- * This source code is licensed under the MIT license found in the
327
- * LICENSE file in the root directory of this source tree.
328
- */
329
- function Ln() {
330
- return Gt || (Gt = 1, process.env.NODE_ENV === "production" ? nt.exports = function() {
331
- if ($t) return z;
332
- $t = 1;
333
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
334
- function b(f) {
335
- if (typeof f == "object" && f !== null) {
336
- var E = f.$$typeof;
337
- switch (E) {
338
- case t:
339
- switch (f = f.type) {
340
- case l:
341
- case c:
342
- case r:
343
- case i:
344
- case o:
345
- case p:
346
- return f;
347
- default:
348
- switch (f = f && f.$$typeof) {
349
- case a:
350
- case u:
351
- case y:
352
- case h:
353
- case s:
354
- return f;
355
- default:
356
- return E;
357
- }
358
- }
359
- case n:
360
- return E;
361
- }
362
- }
363
- }
364
- function k(f) {
365
- return b(f) === c;
366
- }
367
- return z.AsyncMode = l, z.ConcurrentMode = c, z.ContextConsumer = a, z.ContextProvider = s, z.Element = t, z.ForwardRef = u, z.Fragment = r, z.Lazy = y, z.Memo = h, z.Portal = n, z.Profiler = i, z.StrictMode = o, z.Suspense = p, z.isAsyncMode = function(f) {
368
- return k(f) || b(f) === l;
369
- }, z.isConcurrentMode = k, z.isContextConsumer = function(f) {
370
- return b(f) === a;
371
- }, z.isContextProvider = function(f) {
372
- return b(f) === s;
373
- }, z.isElement = function(f) {
374
- return typeof f == "object" && f !== null && f.$$typeof === t;
375
- }, z.isForwardRef = function(f) {
376
- return b(f) === u;
377
- }, z.isFragment = function(f) {
378
- return b(f) === r;
379
- }, z.isLazy = function(f) {
380
- return b(f) === y;
381
- }, z.isMemo = function(f) {
382
- return b(f) === h;
383
- }, z.isPortal = function(f) {
384
- return b(f) === n;
385
- }, z.isProfiler = function(f) {
386
- return b(f) === i;
387
- }, z.isStrictMode = function(f) {
388
- return b(f) === o;
389
- }, z.isSuspense = function(f) {
390
- return b(f) === p;
391
- }, z.isValidElementType = function(f) {
392
- return typeof f == "string" || typeof f == "function" || f === r || f === c || f === i || f === o || f === p || f === d || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === h || f.$$typeof === s || f.$$typeof === a || f.$$typeof === u || f.$$typeof === g || f.$$typeof === x || f.$$typeof === w || f.$$typeof === v);
393
- }, z.typeOf = b, z;
394
- }() : nt.exports = (Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
395
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
396
- function b(R) {
397
- if (typeof R == "object" && R !== null) {
398
- var Ze = R.$$typeof;
399
- switch (Ze) {
400
- case t:
401
- var We = R.type;
402
- switch (We) {
403
- case l:
404
- case c:
405
- case r:
406
- case i:
407
- case o:
408
- case p:
409
- return We;
410
- default:
411
- var xt = We && We.$$typeof;
412
- switch (xt) {
413
- case a:
414
- case u:
415
- case y:
416
- case h:
417
- case s:
418
- return xt;
419
- default:
420
- return Ze;
421
- }
422
- }
423
- case n:
424
- return Ze;
425
- }
426
- }
427
- }
428
- var k = l, f = c, E = a, C = s, O = t, j = u, I = r, L = y, M = h, B = n, $ = i, H = o, oe = p, ue = !1;
429
- function Se(R) {
430
- return b(R) === c;
431
- }
432
- U.AsyncMode = k, U.ConcurrentMode = f, U.ContextConsumer = E, U.ContextProvider = C, U.Element = O, U.ForwardRef = j, U.Fragment = I, U.Lazy = L, U.Memo = M, U.Portal = B, U.Profiler = $, U.StrictMode = H, U.Suspense = oe, U.isAsyncMode = function(R) {
433
- return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Se(R) || b(R) === l;
434
- }, U.isConcurrentMode = Se, U.isContextConsumer = function(R) {
435
- return b(R) === a;
436
- }, U.isContextProvider = function(R) {
437
- return b(R) === s;
438
- }, U.isElement = function(R) {
439
- return typeof R == "object" && R !== null && R.$$typeof === t;
440
- }, U.isForwardRef = function(R) {
441
- return b(R) === u;
442
- }, U.isFragment = function(R) {
443
- return b(R) === r;
444
- }, U.isLazy = function(R) {
445
- return b(R) === y;
446
- }, U.isMemo = function(R) {
447
- return b(R) === h;
448
- }, U.isPortal = function(R) {
449
- return b(R) === n;
450
- }, U.isProfiler = function(R) {
451
- return b(R) === i;
452
- }, U.isStrictMode = function(R) {
453
- return b(R) === o;
454
- }, U.isSuspense = function(R) {
455
- return b(R) === p;
456
- }, U.isValidElementType = function(R) {
457
- return typeof R == "string" || typeof R == "function" || R === r || R === c || R === i || R === o || R === p || R === d || typeof R == "object" && R !== null && (R.$$typeof === y || R.$$typeof === h || R.$$typeof === s || R.$$typeof === a || R.$$typeof === u || R.$$typeof === g || R.$$typeof === x || R.$$typeof === w || R.$$typeof === v);
458
- }, U.typeOf = b;
459
- }()), U)), nt.exports;
460
- }
461
- /*
462
- object-assign
463
- (c) Sindre Sorhus
464
- @license MIT
465
- */
466
- function Tr() {
467
- if (qt) return rt;
468
- qt = 1;
469
- var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
470
- return rt = function() {
471
- try {
472
- if (!Object.assign) return !1;
473
- var r = new String("abc");
474
- if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5") return !1;
475
- for (var o = {}, i = 0; i < 10; i++) o["_" + String.fromCharCode(i)] = i;
476
- if (Object.getOwnPropertyNames(o).map(function(a) {
477
- return o[a];
478
- }).join("") !== "0123456789") return !1;
479
- var s = {};
480
- return "abcdefghijklmnopqrst".split("").forEach(function(a) {
481
- s[a] = a;
482
- }), Object.keys(Object.assign({}, s)).join("") === "abcdefghijklmnopqrst";
483
- } catch {
484
- return !1;
485
- }
486
- }() ? Object.assign : function(r, o) {
487
- for (var i, s, a = function(p) {
488
- if (p == null) throw new TypeError("Object.assign cannot be called with null or undefined");
489
- return Object(p);
490
- }(r), l = 1; l < arguments.length; l++) {
491
- for (var c in i = Object(arguments[l])) t.call(i, c) && (a[c] = i[c]);
492
- if (e) {
493
- s = e(i);
494
- for (var u = 0; u < s.length; u++) n.call(i, s[u]) && (a[s[u]] = i[s[u]]);
495
- }
496
- }
497
- return a;
498
- }, rt;
499
- }
500
- function bt() {
501
- return Kt ? Yt : (Kt = 1, Yt = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
502
- }
503
- function An() {
504
- return Xt ? Jt : (Xt = 1, Jt = Function.call.bind(Object.prototype.hasOwnProperty));
505
- }
506
- function kr() {
507
- if (Qt) return Zt;
508
- Qt = 1;
509
- var e = function() {
510
- };
511
- if (process.env.NODE_ENV !== "production") {
512
- var t = bt(), n = {}, r = An();
513
- e = function(i) {
514
- var s = "Warning: " + i;
515
- typeof console < "u" && console.error(s);
516
- try {
517
- throw new Error(s);
518
- } catch {
519
- }
520
- };
521
- }
522
- function o(i, s, a, l, c) {
523
- if (process.env.NODE_ENV !== "production") {
524
- for (var u in i) if (r(i, u)) {
525
- var p;
526
- try {
527
- if (typeof i[u] != "function") {
528
- var d = Error((l || "React class") + ": " + a + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
529
- throw d.name = "Invariant Violation", d;
530
- }
531
- p = i[u](s, u, l, a, null, t);
532
- } catch (y) {
533
- p = y;
534
- }
535
- if (!p || p instanceof Error || e((l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), p instanceof Error && !(p.message in n)) {
536
- n[p.message] = !0;
537
- var h = c ? c() : "";
538
- e("Failed " + a + " type: " + p.message + (h ?? ""));
539
- }
540
- }
541
- }
542
- }
543
- return o.resetWarningCache = function() {
544
- process.env.NODE_ENV !== "production" && (n = {});
545
- }, Zt = o;
546
- }
547
- function Pr() {
548
- if (en) return ot;
549
- en = 1;
550
- var e = Ln(), t = Tr(), n = bt(), r = An(), o = kr(), i = function() {
551
- };
552
- function s() {
553
- return null;
554
- }
555
- return process.env.NODE_ENV !== "production" && (i = function(a) {
556
- var l = "Warning: " + a;
557
- typeof console < "u" && console.error(l);
558
- try {
559
- throw new Error(l);
560
- } catch {
561
- }
562
- }), ot = function(a, l) {
563
- var c = typeof Symbol == "function" && Symbol.iterator, u = "<<anonymous>>", p = { array: v("array"), bigint: v("bigint"), bool: v("boolean"), func: v("function"), number: v("number"), object: v("object"), string: v("string"), symbol: v("symbol"), any: y(s), arrayOf: function(f) {
564
- return y(function(E, C, O, j, I) {
565
- if (typeof f != "function") return new h("Property `" + I + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
566
- var L = E[C];
567
- if (!Array.isArray(L)) return new h("Invalid " + j + " `" + I + "` of type `" + w(L) + "` supplied to `" + O + "`, expected an array.");
568
- for (var M = 0; M < L.length; M++) {
569
- var B = f(L, M, O, j, I + "[" + M + "]", n);
570
- if (B instanceof Error) return B;
571
- }
572
- return null;
573
- });
574
- }, element: y(function(f, E, C, O, j) {
575
- var I = f[E];
576
- return a(I) ? null : new h("Invalid " + O + " `" + j + "` of type `" + w(I) + "` supplied to `" + C + "`, expected a single ReactElement.");
577
- }), elementType: y(function(f, E, C, O, j) {
578
- var I = f[E];
579
- return e.isValidElementType(I) ? null : new h("Invalid " + O + " `" + j + "` of type `" + w(I) + "` supplied to `" + C + "`, expected a single ReactElement type.");
580
- }), instanceOf: function(f) {
581
- return y(function(E, C, O, j, I) {
582
- if (!(E[C] instanceof f)) {
583
- var L = f.name || u;
584
- return new h("Invalid " + j + " `" + I + "` of type `" + (((M = E[C]).constructor && M.constructor.name ? M.constructor.name : u) + "` supplied to `") + O + "`, expected instance of `" + L + "`.");
585
- }
586
- var M;
587
- return null;
588
- });
589
- }, node: y(function(f, E, C, O, j) {
590
- return x(f[E]) ? null : new h("Invalid " + O + " `" + j + "` supplied to `" + C + "`, expected a ReactNode.");
591
- }), objectOf: function(f) {
592
- return y(function(E, C, O, j, I) {
593
- if (typeof f != "function") return new h("Property `" + I + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
594
- var L = E[C], M = w(L);
595
- if (M !== "object") return new h("Invalid " + j + " `" + I + "` of type `" + M + "` supplied to `" + O + "`, expected an object.");
596
- for (var B in L) if (r(L, B)) {
597
- var $ = f(L, B, O, j, I + "." + B, n);
598
- if ($ instanceof Error) return $;
599
- }
600
- return null;
601
- });
602
- }, oneOf: function(f) {
603
- return Array.isArray(f) ? y(function(E, C, O, j, I) {
604
- for (var L = E[C], M = 0; M < f.length; M++) if (d(L, f[M])) return null;
605
- var B = JSON.stringify(f, function($, H) {
606
- return b(H) === "symbol" ? String(H) : H;
607
- });
608
- return new h("Invalid " + j + " `" + I + "` of value `" + String(L) + "` supplied to `" + O + "`, expected one of " + B + ".");
609
- }) : (process.env.NODE_ENV !== "production" && i(arguments.length > 1 ? "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." : "Invalid argument supplied to oneOf, expected an array."), s);
610
- }, oneOfType: function(f) {
611
- if (!Array.isArray(f)) return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
612
- for (var E = 0; E < f.length; E++) {
613
- var C = f[E];
614
- if (typeof C != "function") return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + k(C) + " at index " + E + "."), s;
615
- }
616
- return y(function(O, j, I, L, M) {
617
- for (var B = [], $ = 0; $ < f.length; $++) {
618
- var H = (0, f[$])(O, j, I, L, M, n);
619
- if (H == null) return null;
620
- H.data && r(H.data, "expectedType") && B.push(H.data.expectedType);
621
- }
622
- return new h("Invalid " + L + " `" + M + "` supplied to `" + I + "`" + (B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "") + ".");
623
- });
624
- }, shape: function(f) {
625
- return y(function(E, C, O, j, I) {
626
- var L = E[C], M = w(L);
627
- if (M !== "object") return new h("Invalid " + j + " `" + I + "` of type `" + M + "` supplied to `" + O + "`, expected `object`.");
628
- for (var B in f) {
629
- var $ = f[B];
630
- if (typeof $ != "function") return g(O, j, I, B, b($));
631
- var H = $(L, B, O, j, I + "." + B, n);
632
- if (H) return H;
633
- }
634
- return null;
635
- });
636
- }, exact: function(f) {
637
- return y(function(E, C, O, j, I) {
638
- var L = E[C], M = w(L);
639
- if (M !== "object") return new h("Invalid " + j + " `" + I + "` of type `" + M + "` supplied to `" + O + "`, expected `object`.");
640
- var B = t({}, E[C], f);
641
- for (var $ in B) {
642
- var H = f[$];
643
- if (r(f, $) && typeof H != "function") return g(O, j, I, $, b(H));
644
- if (!H) return new h("Invalid " + j + " `" + I + "` key `" + $ + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(E[C], null, " ") + `
645
- Valid keys: ` + JSON.stringify(Object.keys(f), null, " "));
646
- var oe = H(L, $, O, j, I + "." + $, n);
647
- if (oe) return oe;
648
- }
649
- return null;
650
- });
651
- } };
652
- function d(f, E) {
653
- return f === E ? f !== 0 || 1 / f == 1 / E : f != f && E != E;
654
- }
655
- function h(f, E) {
656
- this.message = f, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
657
- }
658
- function y(f) {
659
- if (process.env.NODE_ENV !== "production") var E = {}, C = 0;
660
- function O(I, L, M, B, $, H, oe) {
661
- if (B = B || u, H = H || M, oe !== n) {
662
- if (l) {
663
- var ue = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
664
- throw ue.name = "Invariant Violation", ue;
665
- }
666
- if (process.env.NODE_ENV !== "production" && typeof console < "u") {
667
- var Se = B + ":" + M;
668
- !E[Se] && C < 3 && (i("You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."), E[Se] = !0, C++);
669
- }
670
- }
671
- return L[M] == null ? I ? L[M] === null ? new h("The " + $ + " `" + H + "` is marked as required in `" + B + "`, but its value is `null`.") : new h("The " + $ + " `" + H + "` is marked as required in `" + B + "`, but its value is `undefined`.") : null : f(L, M, B, $, H);
672
- }
673
- var j = O.bind(null, !1);
674
- return j.isRequired = O.bind(null, !0), j;
675
- }
676
- function v(f) {
677
- return y(function(E, C, O, j, I, L) {
678
- var M = E[C];
679
- return w(M) !== f ? new h("Invalid " + j + " `" + I + "` of type `" + b(M) + "` supplied to `" + O + "`, expected `" + f + "`.", { expectedType: f }) : null;
680
- });
681
- }
682
- function g(f, E, C, O, j) {
683
- return new h((f || "React class") + ": " + E + " type `" + C + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`.");
684
- }
685
- function x(f) {
686
- switch (typeof f) {
687
- case "number":
688
- case "string":
689
- case "undefined":
690
- return !0;
691
- case "boolean":
692
- return !f;
693
- case "object":
694
- if (Array.isArray(f)) return f.every(x);
695
- if (f === null || a(f)) return !0;
696
- var E = function(I) {
697
- var L = I && (c && I[c] || I["@@iterator"]);
698
- if (typeof L == "function") return L;
699
- }(f);
700
- if (!E) return !1;
701
- var C, O = E.call(f);
702
- if (E !== f.entries) {
703
- for (; !(C = O.next()).done; ) if (!x(C.value)) return !1;
704
- } else for (; !(C = O.next()).done; ) {
705
- var j = C.value;
706
- if (j && !x(j[1])) return !1;
707
- }
708
- return !0;
709
- default:
710
- return !1;
711
- }
712
- }
713
- function w(f) {
714
- var E = typeof f;
715
- return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : function(C, O) {
716
- return C === "symbol" || !!O && (O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol);
717
- }(E, f) ? "symbol" : E;
718
- }
719
- function b(f) {
720
- if (f == null) return "" + f;
721
- var E = w(f);
722
- if (E === "object") {
723
- if (f instanceof Date) return "date";
724
- if (f instanceof RegExp) return "regexp";
725
- }
726
- return E;
727
- }
728
- function k(f) {
729
- var E = b(f);
730
- switch (E) {
731
- case "array":
732
- case "object":
733
- return "an " + E;
734
- case "boolean":
735
- case "date":
736
- case "regexp":
737
- return "a " + E;
738
- default:
739
- return E;
740
- }
741
- }
742
- return h.prototype = Error.prototype, p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
743
- }, ot;
744
- }
745
- function Nr() {
746
- if (nn) return tn;
747
- nn = 1;
748
- var e = bt();
749
- function t() {
750
- }
751
- function n() {
752
- }
753
- return n.resetWarningCache = t, tn = function() {
754
- function r(s, a, l, c, u, p) {
755
- if (p !== e) {
756
- var d = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
757
- throw d.name = "Invariant Violation", d;
758
- }
759
- }
760
- function o() {
761
- return r;
762
- }
763
- r.isRequired = r;
764
- var i = { array: r, bigint: r, bool: r, func: r, number: r, object: r, string: r, symbol: r, any: r, arrayOf: o, element: r, elementType: r, instanceOf: o, node: r, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: n, resetWarningCache: t };
765
- return i.PropTypes = i, i;
766
- };
767
- }
768
- function Cr() {
769
- if (rn) return ze.exports;
770
- if (rn = 1, process.env.NODE_ENV !== "production") {
771
- var e = Ln();
772
- ze.exports = Pr()(e.isElement, !0);
773
- } else ze.exports = Nr()();
774
- return ze.exports;
775
- }
776
- const S = Le(Cr());
777
- /**!
778
- * @fileOverview Kickass library to create and place poppers near their reference elements.
779
- * @version 1.16.1
780
- * @license
781
- * Copyright (c) 2016 Federico Zivolo and contributors
782
- *
783
- * Permission is hereby granted, free of charge, to any person obtaining a copy
784
- * of this software and associated documentation files (the "Software"), to deal
785
- * in the Software without restriction, including without limitation the rights
786
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
787
- * copies of the Software, and to permit persons to whom the Software is
788
- * furnished to do so, subject to the following conditions:
789
- *
790
- * The above copyright notice and this permission notice shall be included in all
791
- * copies or substantial portions of the Software.
792
- *
793
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
794
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
795
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
796
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
797
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
798
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
799
- * SOFTWARE.
800
- */
801
- var Ae = typeof window < "u" && typeof document < "u" && typeof navigator < "u", jr = function() {
802
- for (var e = ["Edge", "Trident", "Firefox"], t = 0; t < e.length; t += 1) if (Ae && navigator.userAgent.indexOf(e[t]) >= 0) return 1;
803
- return 0;
804
- }(), Ir = Ae && window.Promise ? function(e) {
805
- var t = !1;
806
- return function() {
807
- t || (t = !0, window.Promise.resolve().then(function() {
808
- t = !1, e();
809
- }));
810
- };
811
- } : function(e) {
812
- var t = !1;
813
- return function() {
814
- t || (t = !0, setTimeout(function() {
815
- t = !1, e();
816
- }, jr));
817
- };
818
- };
819
- function Mn(e) {
820
- return e && {}.toString.call(e) === "[object Function]";
821
- }
822
- function de(e, t) {
823
- if (e.nodeType !== 1) return [];
824
- var n = e.ownerDocument.defaultView.getComputedStyle(e, null);
825
- return t ? n[t] : n;
826
- }
827
- function vt(e) {
828
- return e.nodeName === "HTML" ? e : e.parentNode || e.host;
829
- }
830
- function Me(e) {
831
- if (!e) return document.body;
832
- switch (e.nodeName) {
833
- case "HTML":
834
- case "BODY":
835
- return e.ownerDocument.body;
836
- case "#document":
837
- return e.body;
838
- }
839
- var t = de(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
840
- return /(auto|scroll|overlay)/.test(n + o + r) ? e : Me(vt(e));
841
- }
842
- function Dn(e) {
843
- return e && e.referenceNode ? e.referenceNode : e;
844
- }
845
- var on = Ae && !(!window.MSInputMethodContext || !document.documentMode), sn = Ae && /MSIE 10/.test(navigator.userAgent);
846
- function Ee(e) {
847
- return e === 11 ? on : e === 10 ? sn : on || sn;
848
- }
849
- function ve(e) {
850
- if (!e) return document.documentElement;
851
- for (var t = Ee(10) ? document.body : null, n = e.offsetParent || null; n === t && e.nextElementSibling; ) n = (e = e.nextElementSibling).offsetParent;
852
- var r = n && n.nodeName;
853
- return r && r !== "BODY" && r !== "HTML" ? ["TH", "TD", "TABLE"].indexOf(n.nodeName) !== -1 && de(n, "position") === "static" ? ve(n) : n : e ? e.ownerDocument.documentElement : document.documentElement;
854
- }
855
- function ct(e) {
856
- return e.parentNode !== null ? ct(e.parentNode) : e;
857
- }
858
- function Ye(e, t) {
859
- if (!(e && e.nodeType && t && t.nodeType)) return document.documentElement;
860
- var n = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, r = n ? e : t, o = n ? t : e, i = document.createRange();
861
- i.setStart(r, 0), i.setEnd(o, 0);
862
- var s, a, l = i.commonAncestorContainer;
863
- if (e !== l && t !== l || r.contains(o)) return (a = (s = l).nodeName) === "BODY" || a !== "HTML" && ve(s.firstElementChild) !== s ? ve(l) : l;
864
- var c = ct(e);
865
- return c.host ? Ye(c.host, t) : Ye(e, ct(t).host);
866
- }
867
- function Oe(e) {
868
- var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top") === "top" ? "scrollTop" : "scrollLeft", n = e.nodeName;
869
- if (n === "BODY" || n === "HTML") {
870
- var r = e.ownerDocument.documentElement;
871
- return (e.ownerDocument.scrollingElement || r)[t];
872
- }
873
- return e[t];
874
- }
875
- function an(e, t) {
876
- var n = t === "x" ? "Left" : "Top", r = n === "Left" ? "Right" : "Bottom";
877
- return parseFloat(e["border" + n + "Width"]) + parseFloat(e["border" + r + "Width"]);
878
- }
879
- function ln(e, t, n, r) {
880
- return Math.max(t["offset" + e], t["scroll" + e], n["client" + e], n["offset" + e], n["scroll" + e], Ee(10) ? parseInt(n["offset" + e]) + parseInt(r["margin" + (e === "Height" ? "Top" : "Left")]) + parseInt(r["margin" + (e === "Height" ? "Bottom" : "Right")]) : 0);
881
- }
882
- function Fn(e) {
883
- var t = e.body, n = e.documentElement, r = Ee(10) && getComputedStyle(n);
884
- return { height: ln("Height", t, n, r), width: ln("Width", t, n, r) };
885
- }
886
- var Rr = /* @__PURE__ */ function() {
887
- function e(t, n) {
888
- for (var r = 0; r < n.length; r++) {
889
- var o = n[r];
890
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
891
- }
892
- }
893
- return function(t, n, r) {
894
- return n && e(t.prototype, n), r && e(t, r), t;
895
- };
896
- }(), ye = function(e, t, n) {
897
- return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
898
- }, J = Object.assign || function(e) {
899
- for (var t = 1; t < arguments.length; t++) {
900
- var n = arguments[t];
901
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
902
- }
903
- return e;
904
- };
905
- function le(e) {
906
- return J({}, e, { right: e.left + e.width, bottom: e.top + e.height });
907
- }
908
- function ut(e) {
909
- var t = {};
910
- try {
911
- if (Ee(10)) {
912
- t = e.getBoundingClientRect();
913
- var n = Oe(e, "top"), r = Oe(e, "left");
914
- t.top += n, t.left += r, t.bottom += n, t.right += r;
915
- } else t = e.getBoundingClientRect();
916
- } catch {
917
- }
918
- var o = { left: t.left, top: t.top, width: t.right - t.left, height: t.bottom - t.top }, i = e.nodeName === "HTML" ? Fn(e.ownerDocument) : {}, s = i.width || e.clientWidth || o.width, a = i.height || e.clientHeight || o.height, l = e.offsetWidth - s, c = e.offsetHeight - a;
919
- if (l || c) {
920
- var u = de(e);
921
- l -= an(u, "x"), c -= an(u, "y"), o.width -= l, o.height -= c;
922
- }
923
- return le(o);
924
- }
925
- function pt(e, t) {
926
- var n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = Ee(10), o = t.nodeName === "HTML", i = ut(e), s = ut(t), a = Me(e), l = de(t), c = parseFloat(l.borderTopWidth), u = parseFloat(l.borderLeftWidth);
927
- n && o && (s.top = Math.max(s.top, 0), s.left = Math.max(s.left, 0));
928
- var p = le({ top: i.top - s.top - c, left: i.left - s.left - u, width: i.width, height: i.height });
929
- if (p.marginTop = 0, p.marginLeft = 0, !r && o) {
930
- var d = parseFloat(l.marginTop), h = parseFloat(l.marginLeft);
931
- p.top -= c - d, p.bottom -= c - d, p.left -= u - h, p.right -= u - h, p.marginTop = d, p.marginLeft = h;
932
- }
933
- return (r && !n ? t.contains(a) : t === a && a.nodeName !== "BODY") && (p = function(y, v) {
934
- var g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], x = Oe(v, "top"), w = Oe(v, "left"), b = g ? -1 : 1;
935
- return y.top += x * b, y.bottom += x * b, y.left += w * b, y.right += w * b, y;
936
- }(p, t)), p;
937
- }
938
- function _n(e) {
939
- var t = e.nodeName;
940
- if (t === "BODY" || t === "HTML") return !1;
941
- if (de(e, "position") === "fixed") return !0;
942
- var n = vt(e);
943
- return !!n && _n(n);
944
- }
945
- function Bn(e) {
946
- if (!e || !e.parentElement || Ee()) return document.documentElement;
947
- for (var t = e.parentElement; t && de(t, "transform") === "none"; ) t = t.parentElement;
948
- return t || document.documentElement;
949
- }
950
- function ft(e, t, n, r) {
951
- var o = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], i = { top: 0, left: 0 }, s = o ? Bn(e) : Ye(e, Dn(t));
952
- if (r === "viewport") i = function(h) {
953
- var y = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], v = h.ownerDocument.documentElement, g = pt(h, v), x = Math.max(v.clientWidth, window.innerWidth || 0), w = Math.max(v.clientHeight, window.innerHeight || 0), b = y ? 0 : Oe(v), k = y ? 0 : Oe(v, "left");
954
- return le({ top: b - g.top + g.marginTop, left: k - g.left + g.marginLeft, width: x, height: w });
955
- }(s, o);
956
- else {
957
- var a = void 0;
958
- r === "scrollParent" ? (a = Me(vt(t))).nodeName === "BODY" && (a = e.ownerDocument.documentElement) : a = r === "window" ? e.ownerDocument.documentElement : r;
959
- var l = pt(a, s, o);
960
- if (a.nodeName !== "HTML" || _n(s)) i = l;
961
- else {
962
- var c = Fn(e.ownerDocument), u = c.height, p = c.width;
963
- i.top += l.top - l.marginTop, i.bottom = u + l.top, i.left += l.left - l.marginLeft, i.right = p + l.left;
964
- }
965
- }
966
- var d = typeof (n = n || 0) == "number";
967
- return i.left += d ? n : n.left || 0, i.top += d ? n : n.top || 0, i.right -= d ? n : n.right || 0, i.bottom -= d ? n : n.bottom || 0, i;
968
- }
969
- function Wn(e, t, n, r, o) {
970
- var i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
971
- if (e.indexOf("auto") === -1) return e;
972
- var s = ft(n, r, i, o), a = { top: { width: s.width, height: t.top - s.top }, right: { width: s.right - t.right, height: s.height }, bottom: { width: s.width, height: s.bottom - t.bottom }, left: { width: t.left - s.left, height: s.height } }, l = Object.keys(a).map(function(d) {
973
- return J({ key: d }, a[d], { area: (h = a[d], h.width * h.height) });
974
- var h;
975
- }).sort(function(d, h) {
976
- return h.area - d.area;
977
- }), c = l.filter(function(d) {
978
- var h = d.width, y = d.height;
979
- return h >= n.clientWidth && y >= n.clientHeight;
980
- }), u = c.length > 0 ? c[0].key : l[0].key, p = e.split("-")[1];
981
- return u + (p ? "-" + p : "");
982
- }
983
- function zn(e, t, n) {
984
- var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
985
- return pt(n, r ? Bn(t) : Ye(t, Dn(n)), r);
986
- }
987
- function Un(e) {
988
- var t = e.ownerDocument.defaultView.getComputedStyle(e), n = parseFloat(t.marginTop || 0) + parseFloat(t.marginBottom || 0), r = parseFloat(t.marginLeft || 0) + parseFloat(t.marginRight || 0);
989
- return { width: e.offsetWidth + r, height: e.offsetHeight + n };
990
- }
991
- function $e(e) {
992
- var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
993
- return e.replace(/left|right|bottom|top/g, function(n) {
994
- return t[n];
995
- });
996
- }
997
- function Hn(e, t, n) {
998
- n = n.split("-")[0];
999
- var r = Un(e), o = { width: r.width, height: r.height }, i = ["right", "left"].indexOf(n) !== -1, s = i ? "top" : "left", a = i ? "left" : "top", l = i ? "height" : "width", c = i ? "width" : "height";
1000
- return o[s] = t[s] + t[l] / 2 - r[l] / 2, o[a] = n === a ? t[a] - r[c] : t[$e(a)], o;
1001
- }
1002
- function Ie(e, t) {
1003
- return Array.prototype.find ? e.find(t) : e.filter(t)[0];
1004
- }
1005
- function $n(e, t, n) {
1006
- return (n === void 0 ? e : e.slice(0, function(r, o, i) {
1007
- if (Array.prototype.findIndex) return r.findIndex(function(a) {
1008
- return a[o] === i;
1009
- });
1010
- var s = Ie(r, function(a) {
1011
- return a[o] === i;
1012
- });
1013
- return r.indexOf(s);
1014
- }(e, "name", n))).forEach(function(r) {
1015
- r.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
1016
- var o = r.function || r.fn;
1017
- r.enabled && Mn(o) && (t.offsets.popper = le(t.offsets.popper), t.offsets.reference = le(t.offsets.reference), t = o(t, r));
1018
- }), t;
1019
- }
1020
- function Lr() {
1021
- if (!this.state.isDestroyed) {
1022
- var e = { instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: !1, offsets: {} };
1023
- e.offsets.reference = zn(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = Wn(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = Hn(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", e = $n(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e));
1024
- }
1025
- }
1026
- function Vn(e, t) {
1027
- return e.some(function(n) {
1028
- var r = n.name;
1029
- return n.enabled && r === t;
1030
- });
1031
- }
1032
- function dt(e) {
1033
- for (var t = [!1, "ms", "Webkit", "Moz", "O"], n = e.charAt(0).toUpperCase() + e.slice(1), r = 0; r < t.length; r++) {
1034
- var o = t[r], i = o ? "" + o + n : e;
1035
- if (document.body.style[i] !== void 0) return i;
1036
- }
1037
- return null;
1038
- }
1039
- function Ar() {
1040
- return this.state.isDestroyed = !0, Vn(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[dt("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this;
1041
- }
1042
- function Gn(e) {
1043
- var t = e.ownerDocument;
1044
- return t ? t.defaultView : window;
1045
- }
1046
- function qn(e, t, n, r) {
1047
- var o = e.nodeName === "BODY", i = o ? e.ownerDocument.defaultView : e;
1048
- i.addEventListener(t, n, { passive: !0 }), o || qn(Me(i.parentNode), t, n, r), r.push(i);
1049
- }
1050
- function Mr(e, t, n, r) {
1051
- n.updateBound = r, Gn(e).addEventListener("resize", n.updateBound, { passive: !0 });
1052
- var o = Me(e);
1053
- return qn(o, "scroll", n.updateBound, n.scrollParents), n.scrollElement = o, n.eventsEnabled = !0, n;
1054
- }
1055
- function Dr() {
1056
- this.state.eventsEnabled || (this.state = Mr(this.reference, this.options, this.state, this.scheduleUpdate));
1057
- }
1058
- function Fr() {
1059
- var e, t;
1060
- this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = (e = this.reference, t = this.state, Gn(e).removeEventListener("resize", t.updateBound), t.scrollParents.forEach(function(n) {
1061
- n.removeEventListener("scroll", t.updateBound);
1062
- }), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t));
1063
- }
1064
- function wt(e) {
1065
- return e !== "" && !isNaN(parseFloat(e)) && isFinite(e);
1066
- }
1067
- function it(e, t) {
1068
- Object.keys(t).forEach(function(n) {
1069
- var r = "";
1070
- ["width", "height", "top", "right", "bottom", "left"].indexOf(n) !== -1 && wt(t[n]) && (r = "px"), e.style[n] = t[n] + r;
1071
- });
1072
- }
1073
- var _r = Ae && /Firefox/i.test(navigator.userAgent);
1074
- function cn(e, t, n) {
1075
- var r = Ie(e, function(a) {
1076
- return a.name === t;
1077
- }), o = !!r && e.some(function(a) {
1078
- return a.name === n && a.enabled && a.order < r.order;
1079
- });
1080
- if (!o) {
1081
- var i = "`" + t + "`", s = "`" + n + "`";
1082
- console.warn(s + " modifier is required by " + i + " modifier in order to work, be sure to include it before " + i + "!");
1083
- }
1084
- return o;
1085
- }
1086
- var Yn = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], st = Yn.slice(3);
1087
- function un(e) {
1088
- var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = st.indexOf(e), r = st.slice(n + 1).concat(st.slice(0, n));
1089
- return t ? r.reverse() : r;
1090
- }
1091
- var Br = "flip", Wr = "clockwise", zr = "counterclockwise";
1092
- function Ur(e, t, n, r) {
1093
- var o = [0, 0], i = ["right", "left"].indexOf(r) !== -1, s = e.split(/(\+|\-)/).map(function(u) {
1094
- return u.trim();
1095
- }), a = s.indexOf(Ie(s, function(u) {
1096
- return u.search(/,|\s/) !== -1;
1097
- }));
1098
- s[a] && s[a].indexOf(",") === -1 && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
1099
- var l = /\s*,\s*|\s+/, c = a !== -1 ? [s.slice(0, a).concat([s[a].split(l)[0]]), [s[a].split(l)[1]].concat(s.slice(a + 1))] : [s];
1100
- return c = c.map(function(u, p) {
1101
- var d = (p === 1 ? !i : i) ? "height" : "width", h = !1;
1102
- return u.reduce(function(y, v) {
1103
- return y[y.length - 1] === "" && ["+", "-"].indexOf(v) !== -1 ? (y[y.length - 1] = v, h = !0, y) : h ? (y[y.length - 1] += v, h = !1, y) : y.concat(v);
1104
- }, []).map(function(y) {
1105
- return function(v, g, x, w) {
1106
- var b = v.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), k = +b[1], f = b[2];
1107
- return k ? f.indexOf("%") === 0 ? le(f === "%p" ? x : w)[g] / 100 * k : f === "vh" || f === "vw" ? (f === "vh" ? Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : Math.max(document.documentElement.clientWidth, window.innerWidth || 0)) / 100 * k : k : v;
1108
- }(y, d, t, n);
1109
- });
1110
- }), c.forEach(function(u, p) {
1111
- u.forEach(function(d, h) {
1112
- wt(d) && (o[p] += d * (u[h - 1] === "-" ? -1 : 1));
1113
- });
1114
- }), o;
1115
- }
1116
- var Hr = { shift: { order: 100, enabled: !0, fn: function(e) {
1117
- var t = e.placement, n = t.split("-")[0], r = t.split("-")[1];
1118
- if (r) {
1119
- var o = e.offsets, i = o.reference, s = o.popper, a = ["bottom", "top"].indexOf(n) !== -1, l = a ? "left" : "top", c = a ? "width" : "height", u = { start: ye({}, l, i[l]), end: ye({}, l, i[l] + i[c] - s[c]) };
1120
- e.offsets.popper = J({}, s, u[r]);
1121
- }
1122
- return e;
1123
- } }, offset: { order: 200, enabled: !0, fn: function(e, t) {
1124
- var n = t.offset, r = e.placement, o = e.offsets, i = o.popper, s = o.reference, a = r.split("-")[0], l = void 0;
1125
- return l = wt(+n) ? [+n, 0] : Ur(n, i, s, a), a === "left" ? (i.top += l[0], i.left -= l[1]) : a === "right" ? (i.top += l[0], i.left += l[1]) : a === "top" ? (i.left += l[0], i.top -= l[1]) : a === "bottom" && (i.left += l[0], i.top += l[1]), e.popper = i, e;
1126
- }, offset: 0 }, preventOverflow: { order: 300, enabled: !0, fn: function(e, t) {
1127
- var n = t.boundariesElement || ve(e.instance.popper);
1128
- e.instance.reference === n && (n = ve(n));
1129
- var r = dt("transform"), o = e.instance.popper.style, i = o.top, s = o.left, a = o[r];
1130
- o.top = "", o.left = "", o[r] = "";
1131
- var l = ft(e.instance.popper, e.instance.reference, t.padding, n, e.positionFixed);
1132
- o.top = i, o.left = s, o[r] = a, t.boundaries = l;
1133
- var c = t.priority, u = e.offsets.popper, p = { primary: function(d) {
1134
- var h = u[d];
1135
- return u[d] < l[d] && !t.escapeWithReference && (h = Math.max(u[d], l[d])), ye({}, d, h);
1136
- }, secondary: function(d) {
1137
- var h = d === "right" ? "left" : "top", y = u[h];
1138
- return u[d] > l[d] && !t.escapeWithReference && (y = Math.min(u[h], l[d] - (d === "right" ? u.width : u.height))), ye({}, h, y);
1139
- } };
1140
- return c.forEach(function(d) {
1141
- var h = ["left", "top"].indexOf(d) !== -1 ? "primary" : "secondary";
1142
- u = J({}, u, p[h](d));
1143
- }), e.offsets.popper = u, e;
1144
- }, priority: ["left", "right", "top", "bottom"], padding: 5, boundariesElement: "scrollParent" }, keepTogether: { order: 400, enabled: !0, fn: function(e) {
1145
- var t = e.offsets, n = t.popper, r = t.reference, o = e.placement.split("-")[0], i = Math.floor, s = ["top", "bottom"].indexOf(o) !== -1, a = s ? "right" : "bottom", l = s ? "left" : "top", c = s ? "width" : "height";
1146
- return n[a] < i(r[l]) && (e.offsets.popper[l] = i(r[l]) - n[c]), n[l] > i(r[a]) && (e.offsets.popper[l] = i(r[a])), e;
1147
- } }, arrow: { order: 500, enabled: !0, fn: function(e, t) {
1148
- var n;
1149
- if (!cn(e.instance.modifiers, "arrow", "keepTogether")) return e;
1150
- var r = t.element;
1151
- if (typeof r == "string") {
1152
- if (!(r = e.instance.popper.querySelector(r))) return e;
1153
- } else if (!e.instance.popper.contains(r)) return console.warn("WARNING: `arrow.element` must be child of its popper element!"), e;
1154
- var o = e.placement.split("-")[0], i = e.offsets, s = i.popper, a = i.reference, l = ["left", "right"].indexOf(o) !== -1, c = l ? "height" : "width", u = l ? "Top" : "Left", p = u.toLowerCase(), d = l ? "left" : "top", h = l ? "bottom" : "right", y = Un(r)[c];
1155
- a[h] - y < s[p] && (e.offsets.popper[p] -= s[p] - (a[h] - y)), a[p] + y > s[h] && (e.offsets.popper[p] += a[p] + y - s[h]), e.offsets.popper = le(e.offsets.popper);
1156
- var v = a[p] + a[c] / 2 - y / 2, g = de(e.instance.popper), x = parseFloat(g["margin" + u]), w = parseFloat(g["border" + u + "Width"]), b = v - e.offsets.popper[p] - x - w;
1157
- return b = Math.max(Math.min(s[c] - y, b), 0), e.arrowElement = r, e.offsets.arrow = (ye(n = {}, p, Math.round(b)), ye(n, d, ""), n), e;
1158
- }, element: "[x-arrow]" }, flip: { order: 600, enabled: !0, fn: function(e, t) {
1159
- if (Vn(e.instance.modifiers, "inner") || e.flipped && e.placement === e.originalPlacement) return e;
1160
- var n = ft(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement, e.positionFixed), r = e.placement.split("-")[0], o = $e(r), i = e.placement.split("-")[1] || "", s = [];
1161
- switch (t.behavior) {
1162
- case Br:
1163
- s = [r, o];
1164
- break;
1165
- case Wr:
1166
- s = un(r);
1167
- break;
1168
- case zr:
1169
- s = un(r, !0);
1170
- break;
1171
- default:
1172
- s = t.behavior;
1173
- }
1174
- return s.forEach(function(a, l) {
1175
- if (r !== a || s.length === l + 1) return e;
1176
- r = e.placement.split("-")[0], o = $e(r);
1177
- var c = e.offsets.popper, u = e.offsets.reference, p = Math.floor, d = r === "left" && p(c.right) > p(u.left) || r === "right" && p(c.left) < p(u.right) || r === "top" && p(c.bottom) > p(u.top) || r === "bottom" && p(c.top) < p(u.bottom), h = p(c.left) < p(n.left), y = p(c.right) > p(n.right), v = p(c.top) < p(n.top), g = p(c.bottom) > p(n.bottom), x = r === "left" && h || r === "right" && y || r === "top" && v || r === "bottom" && g, w = ["top", "bottom"].indexOf(r) !== -1, b = !!t.flipVariations && (w && i === "start" && h || w && i === "end" && y || !w && i === "start" && v || !w && i === "end" && g), k = !!t.flipVariationsByContent && (w && i === "start" && y || w && i === "end" && h || !w && i === "start" && g || !w && i === "end" && v), f = b || k;
1178
- (d || x || f) && (e.flipped = !0, (d || x) && (r = s[l + 1]), f && (i = /* @__PURE__ */ function(E) {
1179
- return E === "end" ? "start" : E === "start" ? "end" : E;
1180
- }(i)), e.placement = r + (i ? "-" + i : ""), e.offsets.popper = J({}, e.offsets.popper, Hn(e.instance.popper, e.offsets.reference, e.placement)), e = $n(e.instance.modifiers, e, "flip"));
1181
- }), e;
1182
- }, behavior: "flip", padding: 5, boundariesElement: "viewport", flipVariations: !1, flipVariationsByContent: !1 }, inner: { order: 700, enabled: !1, fn: function(e) {
1183
- var t = e.placement, n = t.split("-")[0], r = e.offsets, o = r.popper, i = r.reference, s = ["left", "right"].indexOf(n) !== -1, a = ["top", "left"].indexOf(n) === -1;
1184
- return o[s ? "left" : "top"] = i[n] - (a ? o[s ? "width" : "height"] : 0), e.placement = $e(t), e.offsets.popper = le(o), e;
1185
- } }, hide: { order: 800, enabled: !0, fn: function(e) {
1186
- if (!cn(e.instance.modifiers, "hide", "preventOverflow")) return e;
1187
- var t = e.offsets.reference, n = Ie(e.instance.modifiers, function(r) {
1188
- return r.name === "preventOverflow";
1189
- }).boundaries;
1190
- if (t.bottom < n.top || t.left > n.right || t.top > n.bottom || t.right < n.left) {
1191
- if (e.hide === !0) return e;
1192
- e.hide = !0, e.attributes["x-out-of-boundaries"] = "";
1193
- } else {
1194
- if (e.hide === !1) return e;
1195
- e.hide = !1, e.attributes["x-out-of-boundaries"] = !1;
1196
- }
1197
- return e;
1198
- } }, computeStyle: { order: 850, enabled: !0, fn: function(e, t) {
1199
- var n = t.x, r = t.y, o = e.offsets.popper, i = Ie(e.instance.modifiers, function(b) {
1200
- return b.name === "applyStyle";
1201
- }).gpuAcceleration;
1202
- i !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
1203
- var s = i !== void 0 ? i : t.gpuAcceleration, a = ve(e.instance.popper), l = ut(a), c = { position: o.position }, u = function(b, k) {
1204
- var f = b.offsets, E = f.popper, C = f.reference, O = Math.round, j = Math.floor, I = function(ue) {
1205
- return ue;
1206
- }, L = O(C.width), M = O(E.width), B = ["left", "right"].indexOf(b.placement) !== -1, $ = b.placement.indexOf("-") !== -1, H = k ? B || $ || L % 2 == M % 2 ? O : j : I, oe = k ? O : I;
1207
- return { left: H(L % 2 == 1 && M % 2 == 1 && !$ && k ? E.left - 1 : E.left), top: oe(E.top), bottom: oe(E.bottom), right: H(E.right) };
1208
- }(e, window.devicePixelRatio < 2 || !_r), p = n === "bottom" ? "top" : "bottom", d = r === "right" ? "left" : "right", h = dt("transform"), y = void 0, v = void 0;
1209
- if (v = p === "bottom" ? a.nodeName === "HTML" ? -a.clientHeight + u.bottom : -l.height + u.bottom : u.top, y = d === "right" ? a.nodeName === "HTML" ? -a.clientWidth + u.right : -l.width + u.right : u.left, s && h) c[h] = "translate3d(" + y + "px, " + v + "px, 0)", c[p] = 0, c[d] = 0, c.willChange = "transform";
1210
- else {
1211
- var g = p === "bottom" ? -1 : 1, x = d === "right" ? -1 : 1;
1212
- c[p] = v * g, c[d] = y * x, c.willChange = p + ", " + d;
1213
- }
1214
- var w = { "x-placement": e.placement };
1215
- return e.attributes = J({}, w, e.attributes), e.styles = J({}, c, e.styles), e.arrowStyles = J({}, e.offsets.arrow, e.arrowStyles), e;
1216
- }, gpuAcceleration: !0, x: "bottom", y: "right" }, applyStyle: { order: 900, enabled: !0, fn: function(e) {
1217
- var t, n;
1218
- return it(e.instance.popper, e.styles), t = e.instance.popper, n = e.attributes, Object.keys(n).forEach(function(r) {
1219
- n[r] !== !1 ? t.setAttribute(r, n[r]) : t.removeAttribute(r);
1220
- }), e.arrowElement && Object.keys(e.arrowStyles).length && it(e.arrowElement, e.arrowStyles), e;
1221
- }, onLoad: function(e, t, n, r, o) {
1222
- var i = zn(o, t, e, n.positionFixed), s = Wn(n.placement, i, t, e, n.modifiers.flip.boundariesElement, n.modifiers.flip.padding);
1223
- return t.setAttribute("x-placement", s), it(t, { position: n.positionFixed ? "fixed" : "absolute" }), n;
1224
- }, gpuAcceleration: void 0 } }, $r = { placement: "bottom", positionFixed: !1, eventsEnabled: !0, removeOnDestroy: !1, onCreate: function() {
1225
- }, onUpdate: function() {
1226
- }, modifiers: Hr }, Ce = function() {
1227
- function e(t, n) {
1228
- var r = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1229
- (function(s, a) {
1230
- if (!(s instanceof a)) throw new TypeError("Cannot call a class as a function");
1231
- })(this, e), this.scheduleUpdate = function() {
1232
- return requestAnimationFrame(r.update);
1233
- }, this.update = Ir(this.update.bind(this)), this.options = J({}, e.Defaults, o), this.state = { isDestroyed: !1, isCreated: !1, scrollParents: [] }, this.reference = t && t.jquery ? t[0] : t, this.popper = n && n.jquery ? n[0] : n, this.options.modifiers = {}, Object.keys(J({}, e.Defaults.modifiers, o.modifiers)).forEach(function(s) {
1234
- r.options.modifiers[s] = J({}, e.Defaults.modifiers[s] || {}, o.modifiers ? o.modifiers[s] : {});
1235
- }), this.modifiers = Object.keys(this.options.modifiers).map(function(s) {
1236
- return J({ name: s }, r.options.modifiers[s]);
1237
- }).sort(function(s, a) {
1238
- return s.order - a.order;
1239
- }), this.modifiers.forEach(function(s) {
1240
- s.enabled && Mn(s.onLoad) && s.onLoad(r.reference, r.popper, r.options, s, r.state);
1241
- }), this.update();
1242
- var i = this.options.eventsEnabled;
1243
- i && this.enableEventListeners(), this.state.eventsEnabled = i;
1244
- }
1245
- return Rr(e, [{ key: "update", value: function() {
1246
- return Lr.call(this);
1247
- } }, { key: "destroy", value: function() {
1248
- return Ar.call(this);
1249
- } }, { key: "enableEventListeners", value: function() {
1250
- return Dr.call(this);
1251
- } }, { key: "disableEventListeners", value: function() {
1252
- return Fr.call(this);
1253
- } }]), e;
1254
- }();
1255
- Ce.Utils = (typeof window < "u" ? window : global).PopperUtils, Ce.placements = Yn, Ce.Defaults = $r;
1256
- var Vr = ["innerHTML", "ownerDocument", "style", "attributes", "nodeValue"], Gr = ["Array", "ArrayBuffer", "AsyncFunction", "AsyncGenerator", "AsyncGeneratorFunction", "Date", "Error", "Function", "Generator", "GeneratorFunction", "HTMLElement", "Map", "Object", "Promise", "RegExp", "Set", "WeakMap", "WeakSet"], qr = ["bigint", "boolean", "null", "number", "string", "symbol", "undefined"];
1257
- function Ke(e) {
1258
- var t, n = Object.prototype.toString.call(e).slice(8, -1);
1259
- return /HTML\w+Element/.test(n) ? "HTMLElement" : (t = n, Gr.includes(t) ? n : void 0);
1260
- }
1261
- function Z(e) {
1262
- return function(t) {
1263
- return Ke(t) === e;
1264
- };
1265
- }
1266
- function me(e) {
1267
- return function(t) {
1268
- return typeof t === e;
1269
- };
1270
- }
1271
- function m(e) {
1272
- if (e === null) return "null";
1273
- switch (typeof e) {
1274
- case "bigint":
1275
- return "bigint";
1276
- case "boolean":
1277
- return "boolean";
1278
- case "number":
1279
- return "number";
1280
- case "string":
1281
- return "string";
1282
- case "symbol":
1283
- return "symbol";
1284
- case "undefined":
1285
- return "undefined";
1286
- }
1287
- if (m.array(e)) return "Array";
1288
- if (m.plainFunction(e)) return "Function";
1289
- var t = Ke(e);
1290
- return t || "Object";
1291
- }
1292
- function Kn(e) {
1293
- return function(t) {
1294
- return typeof t === e;
1295
- };
1296
- }
1297
- m.array = Array.isArray, m.arrayOf = function(e, t) {
1298
- return !(!m.array(e) && !m.function(t)) && e.every(function(n) {
1299
- return t(n);
1300
- });
1301
- }, m.asyncGeneratorFunction = function(e) {
1302
- return Ke(e) === "AsyncGeneratorFunction";
1303
- }, m.asyncFunction = Z("AsyncFunction"), m.bigint = me("bigint"), m.boolean = function(e) {
1304
- return e === !0 || e === !1;
1305
- }, m.date = Z("Date"), m.defined = function(e) {
1306
- return !m.undefined(e);
1307
- }, m.domElement = function(e) {
1308
- return m.object(e) && !m.plainObject(e) && e.nodeType === 1 && m.string(e.nodeName) && Vr.every(function(t) {
1309
- return t in e;
1310
- });
1311
- }, m.empty = function(e) {
1312
- return m.string(e) && e.length === 0 || m.array(e) && e.length === 0 || m.object(e) && !m.map(e) && !m.set(e) && Object.keys(e).length === 0 || m.set(e) && e.size === 0 || m.map(e) && e.size === 0;
1313
- }, m.error = Z("Error"), m.function = me("function"), m.generator = function(e) {
1314
- return m.iterable(e) && m.function(e.next) && m.function(e.throw);
1315
- }, m.generatorFunction = Z("GeneratorFunction"), m.instanceOf = function(e, t) {
1316
- return !(!e || !t) && Object.getPrototypeOf(e) === t.prototype;
1317
- }, m.iterable = function(e) {
1318
- return !m.nullOrUndefined(e) && m.function(e[Symbol.iterator]);
1319
- }, m.map = Z("Map"), m.nan = function(e) {
1320
- return Number.isNaN(e);
1321
- }, m.null = function(e) {
1322
- return e === null;
1323
- }, m.nullOrUndefined = function(e) {
1324
- return m.null(e) || m.undefined(e);
1325
- }, m.number = function(e) {
1326
- return me("number")(e) && !m.nan(e);
1327
- }, m.numericString = function(e) {
1328
- return m.string(e) && e.length > 0 && !Number.isNaN(Number(e));
1329
- }, m.object = function(e) {
1330
- return !m.nullOrUndefined(e) && (m.function(e) || typeof e == "object");
1331
- }, m.oneOf = function(e, t) {
1332
- return !!m.array(e) && e.indexOf(t) > -1;
1333
- }, m.plainFunction = Z("Function"), m.plainObject = function(e) {
1334
- if (Ke(e) !== "Object") return !1;
1335
- var t = Object.getPrototypeOf(e);
1336
- return t === null || t === Object.getPrototypeOf({});
1337
- }, m.primitive = function(e) {
1338
- return m.null(e) || (t = typeof e, qr.includes(t));
1339
- var t;
1340
- }, m.promise = Z("Promise"), m.propertyOf = function(e, t, n) {
1341
- if (!m.object(e) || !t) return !1;
1342
- var r = e[t];
1343
- return m.function(n) ? n(r) : m.defined(r);
1344
- }, m.regexp = Z("RegExp"), m.set = Z("Set"), m.string = me("string"), m.symbol = me("symbol"), m.undefined = me("undefined"), m.weakMap = Z("WeakMap"), m.weakSet = Z("WeakSet");
1345
- var Yr = Kn("function"), pn = function(e) {
1346
- return Object.prototype.toString.call(e).slice(8, -1) === "RegExp";
1347
- }, fn = function(e) {
1348
- return !Kr(e) && !/* @__PURE__ */ function(t) {
1349
- return t === null;
1350
- }(e) && (Yr(e) || typeof e == "object");
1351
- }, Kr = Kn("undefined"), at = function(e) {
1352
- var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
1353
- if (n) return n.call(e);
1354
- if (e && typeof e.length == "number") return { next: function() {
1355
- return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
1356
- } };
1357
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
1358
- };
1359
- function Y(e, t) {
1360
- if (e === t) return !0;
1361
- if (e && fn(e) && t && fn(t)) {
1362
- if (e.constructor !== t.constructor) return !1;
1363
- if (Array.isArray(e) && Array.isArray(t)) return function(s, a) {
1364
- var l = s.length;
1365
- if (l !== a.length) return !1;
1366
- for (var c = l; c-- != 0; ) if (!Y(s[c], a[c])) return !1;
1367
- return !0;
1368
- }(e, t);
1369
- if (e instanceof Map && t instanceof Map) return function(s, a) {
1370
- var l, c, u, p;
1371
- if (s.size !== a.size) return !1;
1372
- try {
1373
- for (var d = at(s.entries()), h = d.next(); !h.done; h = d.next()) {
1374
- var y = h.value;
1375
- if (!a.has(y[0])) return !1;
1376
- }
1377
- } catch (x) {
1378
- l = { error: x };
1379
- } finally {
1380
- try {
1381
- h && !h.done && (c = d.return) && c.call(d);
1382
- } finally {
1383
- if (l) throw l.error;
1384
- }
1385
- }
1386
- try {
1387
- for (var v = at(s.entries()), g = v.next(); !g.done; g = v.next()) if (!Y((y = g.value)[1], a.get(y[0]))) return !1;
1388
- } catch (x) {
1389
- u = { error: x };
1390
- } finally {
1391
- try {
1392
- g && !g.done && (p = v.return) && p.call(v);
1393
- } finally {
1394
- if (u) throw u.error;
1395
- }
1396
- }
1397
- return !0;
1398
- }(e, t);
1399
- if (e instanceof Set && t instanceof Set) return function(s, a) {
1400
- var l, c;
1401
- if (s.size !== a.size) return !1;
1402
- try {
1403
- for (var u = at(s.entries()), p = u.next(); !p.done; p = u.next()) {
1404
- var d = p.value;
1405
- if (!a.has(d[0])) return !1;
1406
- }
1407
- } catch (h) {
1408
- l = { error: h };
1409
- } finally {
1410
- try {
1411
- p && !p.done && (c = u.return) && c.call(u);
1412
- } finally {
1413
- if (l) throw l.error;
1414
- }
1415
- }
1416
- return !0;
1417
- }(e, t);
1418
- if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) return function(s, a) {
1419
- if (s.byteLength !== a.byteLength) return !1;
1420
- for (var l = new DataView(s.buffer), c = new DataView(a.buffer), u = s.byteLength; u--; ) if (l.getUint8(u) !== c.getUint8(u)) return !1;
1421
- return !0;
1422
- }(e, t);
1423
- if (pn(e) && pn(t)) return e.source === t.source && e.flags === t.flags;
1424
- if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
1425
- if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
1426
- var n = Object.keys(e), r = Object.keys(t);
1427
- if (n.length !== r.length) return !1;
1428
- for (var o = n.length; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(t, n[o])) return !1;
1429
- for (o = n.length; o-- != 0; ) {
1430
- var i = n[o];
1431
- if ((i !== "_owner" || !e.$$typeof) && !Y(e[i], t[i])) return !1;
1432
- }
1433
- return !0;
1434
- }
1435
- return !(!Number.isNaN(e) || !Number.isNaN(t)) || e === t;
1436
- }
1437
- function dn(e, t, n) {
1438
- var r = n.actual, o = n.key, i = n.previous, s = n.type, a = re(e, o), l = re(t, o), c = [a, l].every(m.number) && (s === "increased" ? a < l : a > l);
1439
- return m.undefined(r) || (c = c && l === r), m.undefined(i) || (c = c && a === i), c;
1440
- }
1441
- function hn(e, t, n) {
1442
- var r = n.key, o = n.type, i = n.value, s = re(e, r), a = re(t, r), l = o === "added" ? s : a, c = o === "added" ? a : s;
1443
- return m.nullOrUndefined(i) ? [s, a].every(m.array) ? !c.every(Ot(l)) : [s, a].every(m.plainObject) ? function(u, p) {
1444
- return p.some(function(d) {
1445
- return !u.includes(d);
1446
- });
1447
- }(Object.keys(l), Object.keys(c)) : ![s, a].every(function(u) {
1448
- return m.primitive(u) && m.defined(u);
1449
- }) && (o === "added" ? !m.defined(s) && m.defined(a) : m.defined(s) && !m.defined(a)) : m.defined(l) ? !(!m.array(l) && !m.plainObject(l)) && function(u, p, d) {
1450
- return !!Jn(u, p) && ([u, p].every(m.array) ? !u.some(gn(d)) && p.some(gn(d)) : [u, p].every(m.plainObject) ? !Object.entries(u).some(mn(d)) && Object.entries(p).some(mn(d)) : p === d);
1451
- }(l, c, i) : Y(c, i);
1452
- }
1453
- function yn(e, t, n) {
1454
- var r = (n === void 0 ? {} : n).key, o = re(e, r), i = re(t, r);
1455
- if (!Jn(o, i)) throw new TypeError("Inputs have different types");
1456
- if (!function() {
1457
- for (var s = [], a = 0; a < arguments.length; a++) s[a] = arguments[a];
1458
- return s.every(function(l) {
1459
- return m.string(l) || m.array(l) || m.plainObject(l);
1460
- });
1461
- }(o, i)) throw new TypeError("Inputs don't have length");
1462
- return [o, i].every(m.plainObject) && (o = Object.keys(o), i = Object.keys(i)), [o, i];
1463
- }
1464
- function mn(e) {
1465
- return function(t) {
1466
- var n = t[0], r = t[1];
1467
- return m.array(e) ? Y(e, r) || e.some(function(o) {
1468
- return Y(o, r) || m.array(r) && Ot(r)(o);
1469
- }) : m.plainObject(e) && e[n] ? !!e[n] && Y(e[n], r) : Y(e, r);
1470
- };
1471
- }
1472
- function gn(e) {
1473
- return function(t) {
1474
- return m.array(e) ? e.some(function(n) {
1475
- return Y(n, t) || m.array(t) && Ot(t)(n);
1476
- }) : Y(e, t);
1477
- };
1478
- }
1479
- function Te(e, t) {
1480
- return m.array(e) ? e.some(function(n) {
1481
- return Y(n, t);
1482
- }) : Y(e, t);
1483
- }
1484
- function Ot(e) {
1485
- return function(t) {
1486
- return e.some(function(n) {
1487
- return Y(n, t);
1488
- });
1489
- };
1490
- }
1491
- function Jn() {
1492
- for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1493
- return e.every(m.array) || e.every(m.number) || e.every(m.plainObject) || e.every(m.string);
1494
- }
1495
- function re(e, t) {
1496
- return m.plainObject(e) || m.array(e) ? m.string(t) ? t.split(".").reduce(function(n, r) {
1497
- return n && n[r];
1498
- }, e) : m.number(t) ? e[t] : e : e;
1499
- }
1500
- function bn(e, t) {
1501
- var n = Object.keys(e);
1502
- if (Object.getOwnPropertySymbols) {
1503
- var r = Object.getOwnPropertySymbols(e);
1504
- t && (r = r.filter(function(o) {
1505
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
1506
- })), n.push.apply(n, r);
1507
- }
1508
- return n;
1509
- }
1510
- function V(e) {
1511
- for (var t = 1; t < arguments.length; t++) {
1512
- var n = arguments[t] != null ? arguments[t] : {};
1513
- t % 2 ? bn(Object(n), !0).forEach(function(r) {
1514
- G(e, r, n[r]);
1515
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bn(Object(n)).forEach(function(r) {
1516
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1517
- });
1518
- }
1519
- return e;
1520
- }
1521
- function De(e, t) {
1522
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1523
- }
1524
- function Fe(e, t, n) {
1525
- return t && function(r, o) {
1526
- for (var i = 0; i < o.length; i++) {
1527
- var s = o[i];
1528
- s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, Zn(s.key), s);
1529
- }
1530
- }(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1531
- }
1532
- function G(e, t, n) {
1533
- return (t = Zn(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1534
- }
1535
- function _e(e, t) {
1536
- if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1537
- e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ht(e, t);
1538
- }
1539
- function Je(e) {
1540
- return Je = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1541
- return t.__proto__ || Object.getPrototypeOf(t);
1542
- }, Je(e);
1543
- }
1544
- function ht(e, t) {
1545
- return ht = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1546
- return n.__proto__ = r, n;
1547
- }, ht(e, t);
1548
- }
1549
- function Xn(e, t) {
1550
- if (e == null) return {};
1551
- var n, r, o = function(s, a) {
1552
- if (s == null) return {};
1553
- var l, c, u = {}, p = Object.keys(s);
1554
- for (c = 0; c < p.length; c++) l = p[c], a.indexOf(l) >= 0 || (u[l] = s[l]);
1555
- return u;
1556
- }(e, t);
1557
- if (Object.getOwnPropertySymbols) {
1558
- var i = Object.getOwnPropertySymbols(e);
1559
- for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
1560
- }
1561
- return o;
1562
- }
1563
- function ie(e) {
1564
- if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1565
- return e;
1566
- }
1567
- function Be(e) {
1568
- var t = function() {
1569
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1570
- if (typeof Proxy == "function") return !0;
1571
- try {
1572
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1573
- })), !0;
1574
- } catch {
1575
- return !1;
1576
- }
1577
- }();
1578
- return function() {
1579
- var n, r = Je(e);
1580
- if (t) {
1581
- var o = Je(this).constructor;
1582
- n = Reflect.construct(r, arguments, o);
1583
- } else n = r.apply(this, arguments);
1584
- return function(i, s) {
1585
- if (s && (typeof s == "object" || typeof s == "function")) return s;
1586
- if (s !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1587
- return ie(i);
1588
- }(this, n);
1589
- };
1590
- }
1591
- function Zn(e) {
1592
- var t = function(n, r) {
1593
- if (typeof n != "object" || n === null) return n;
1594
- var o = n[Symbol.toPrimitive];
1595
- if (o !== void 0) {
1596
- var i = o.call(n, r || "default");
1597
- if (typeof i != "object") return i;
1598
- throw new TypeError("@@toPrimitive must return a primitive value.");
1599
- }
1600
- return (r === "string" ? String : Number)(n);
1601
- }(e, "string");
1602
- return typeof t == "symbol" ? t : String(t);
1603
- }
1604
- var Jr = { flip: { padding: 20 }, preventOverflow: { padding: 10 } };
1605
- function vn(e, t, n) {
1606
- return function(r, o) {
1607
- if (typeof r != "function") throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");
1608
- if (o) throw new TypeError("The error message is optional, but must be a string if provided.");
1609
- }(e, n), function(r, o, i) {
1610
- for (var s = arguments.length, a = new Array(s > 3 ? s - 3 : 0), l = 3; l < s; l++) a[l - 3] = arguments[l];
1611
- return function(c, u, p, d) {
1612
- return typeof c == "boolean" ? c : typeof c == "function" ? c(u, p, d) : !!c && !!c;
1613
- }(t, r, o, i) ? function(c, u) {
1614
- return Object.hasOwnProperty.call(c, u);
1615
- }(r, o) ? e.apply(void 0, [r, o, i].concat(a)) : function(c, u, p) {
1616
- return new Error("Required ".concat(c[u], " `").concat(u, "` was not specified in `").concat(p, "`."));
1617
- }(r, o, i) : e.apply(void 0, [r, o, i].concat(a));
1618
- };
1619
- }
1620
- var W = { INIT: "init", IDLE: "idle", OPENING: "opening", OPEN: "open", CLOSING: "closing", ERROR: "error" }, ke = He.createPortal !== void 0;
1621
- function ee() {
1622
- return !(typeof window > "u" || !window.document || !window.document.createElement);
1623
- }
1624
- function lt() {
1625
- return "ontouchstart" in window && /Mobi/.test(navigator.userAgent);
1626
- }
1627
- function Ue(e) {
1628
- var t = e.title, n = e.data, r = e.warn, o = r !== void 0 && r, i = e.debug, s = i !== void 0 && i, a = o ? console.warn || console.error : console.log;
1629
- s && t && n && (console.groupCollapsed("%creact-floater: ".concat(t), "color: #9b00ff; font-weight: bold; font-size: 12px;"), Array.isArray(n) ? n.forEach(function(l) {
1630
- m.plainObject(l) && l.key ? a.apply(console, [l.key, l.value]) : a.apply(console, [l]);
1631
- }) : a.apply(console, [n]), console.groupEnd());
1632
- }
1633
- function wn() {
1634
- }
1635
- var Qn = function() {
1636
- _e(t, D.Component);
1637
- var e = Be(t);
1638
- function t() {
1639
- return De(this, t), e.apply(this, arguments);
1640
- }
1641
- return Fe(t, [{ key: "componentDidMount", value: function() {
1642
- ee() && (this.node || this.appendNode(), ke || this.renderPortal());
1643
- } }, { key: "componentDidUpdate", value: function() {
1644
- ee() && (ke || this.renderPortal());
1645
- } }, { key: "componentWillUnmount", value: function() {
1646
- ee() && this.node && (ke || He.unmountComponentAtNode(this.node), this.node && this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = void 0));
1647
- } }, { key: "appendNode", value: function() {
1648
- var n = this.props, r = n.id, o = n.zIndex;
1649
- this.node || (this.node = document.createElement("div"), r && (this.node.id = r), o && (this.node.style.zIndex = o), document.body.appendChild(this.node));
1650
- } }, { key: "renderPortal", value: function() {
1651
- if (!ee()) return null;
1652
- var n = this.props, r = n.children, o = n.setRef;
1653
- return this.node || this.appendNode(), ke ? He.createPortal(r, this.node) : (o(He.unstable_renderSubtreeIntoContainer(this, r.length > 1 ? D.createElement("div", null, r) : r[0], this.node)), null);
1654
- } }, { key: "renderReact16", value: function() {
1655
- var n = this.props, r = n.hasChildren, o = n.placement, i = n.target;
1656
- return r || i || o === "center" ? this.renderPortal() : null;
1657
- } }, { key: "render", value: function() {
1658
- return ke ? this.renderReact16() : null;
1659
- } }]), t;
1660
- }();
1661
- G(Qn, "propTypes", { children: S.oneOfType([S.element, S.array]), hasChildren: S.bool, id: S.oneOfType([S.string, S.number]), placement: S.string, setRef: S.func.isRequired, target: S.oneOfType([S.object, S.string]), zIndex: S.number });
1662
- var er = function() {
1663
- _e(t, D.Component);
1664
- var e = Be(t);
1665
- function t() {
1666
- return De(this, t), e.apply(this, arguments);
1667
- }
1668
- return Fe(t, [{ key: "parentStyle", get: function() {
1669
- var n = this.props, r = n.placement, o = n.styles.arrow.length, i = { pointerEvents: "none", position: "absolute", width: "100%" };
1670
- return r.startsWith("top") ? (i.bottom = 0, i.left = 0, i.right = 0, i.height = o) : r.startsWith("bottom") ? (i.left = 0, i.right = 0, i.top = 0, i.height = o) : r.startsWith("left") ? (i.right = 0, i.top = 0, i.bottom = 0) : r.startsWith("right") && (i.left = 0, i.top = 0), i;
1671
- } }, { key: "render", value: function() {
1672
- var n, r = this.props, o = r.placement, i = r.setArrowRef, s = r.styles.arrow, a = s.color, l = s.display, c = s.length, u = s.margin, p = s.position, d = s.spread, h = { display: l, position: p }, y = d, v = c;
1673
- return o.startsWith("top") ? (n = "0,0 ".concat(y / 2, ",").concat(v, " ").concat(y, ",0"), h.bottom = 0, h.marginLeft = u, h.marginRight = u) : o.startsWith("bottom") ? (n = "".concat(y, ",").concat(v, " ").concat(y / 2, ",0 0,").concat(v), h.top = 0, h.marginLeft = u, h.marginRight = u) : o.startsWith("left") ? (v = d, n = "0,0 ".concat(y = c, ",").concat(v / 2, " 0,").concat(v), h.right = 0, h.marginTop = u, h.marginBottom = u) : o.startsWith("right") && (v = d, n = "".concat(y = c, ",").concat(v, " ").concat(y, ",0 0,").concat(v / 2), h.left = 0, h.marginTop = u, h.marginBottom = u), D.createElement("div", { className: "__floater__arrow", style: this.parentStyle }, D.createElement("span", { ref: i, style: h }, D.createElement("svg", { width: y, height: v, version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, D.createElement("polygon", { points: n, fill: a }))));
1674
- } }]), t;
1675
- }();
1676
- G(er, "propTypes", { placement: S.string.isRequired, setArrowRef: S.func.isRequired, styles: S.object.isRequired });
1677
- var Xr = ["color", "height", "width"];
1678
- function tr(e) {
1679
- var t = e.handleClick, n = e.styles, r = n.color, o = n.height, i = n.width, s = Xn(n, Xr);
1680
- return D.createElement("button", { "aria-label": "close", onClick: t, style: s, type: "button" }, D.createElement("svg", { width: "".concat(i, "px"), height: "".concat(o, "px"), viewBox: "0 0 18 18", version: "1.1", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid" }, D.createElement("g", null, D.createElement("path", { d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z", fill: r }))));
1681
- }
1682
- function nr(e) {
1683
- var t = e.content, n = e.footer, r = e.handleClick, o = e.open, i = e.positionWrapper, s = e.showCloseButton, a = e.title, l = e.styles, c = { content: D.isValidElement(t) ? t : D.createElement("div", { className: "__floater__content", style: l.content }, t) };
1684
- return a && (c.title = D.isValidElement(a) ? a : D.createElement("div", { className: "__floater__title", style: l.title }, a)), n && (c.footer = D.isValidElement(n) ? n : D.createElement("div", { className: "__floater__footer", style: l.footer }, n)), !s && !i || m.boolean(o) || (c.close = D.createElement(tr, { styles: l.close, handleClick: r })), D.createElement("div", { className: "__floater__container", style: l.container }, c.close, c.title, c.content, c.footer);
1685
- }
1686
- tr.propTypes = { handleClick: S.func.isRequired, styles: S.object.isRequired }, nr.propTypes = { content: S.node.isRequired, footer: S.node, handleClick: S.func.isRequired, open: S.bool, positionWrapper: S.bool.isRequired, showCloseButton: S.bool.isRequired, styles: S.object.isRequired, title: S.node };
1687
- var rr = function() {
1688
- _e(t, D.Component);
1689
- var e = Be(t);
1690
- function t() {
1691
- return De(this, t), e.apply(this, arguments);
1692
- }
1693
- return Fe(t, [{ key: "style", get: function() {
1694
- var n = this.props, r = n.disableAnimation, o = n.component, i = n.placement, s = n.hideArrow, a = n.status, l = n.styles, c = l.arrow.length, u = l.floater, p = l.floaterCentered, d = l.floaterClosing, h = l.floaterOpening, y = l.floaterWithAnimation, v = l.floaterWithComponent, g = {};
1695
- return s || (i.startsWith("top") ? g.padding = "0 0 ".concat(c, "px") : i.startsWith("bottom") ? g.padding = "".concat(c, "px 0 0") : i.startsWith("left") ? g.padding = "0 ".concat(c, "px 0 0") : i.startsWith("right") && (g.padding = "0 0 0 ".concat(c, "px"))), [W.OPENING, W.OPEN].indexOf(a) !== -1 && (g = V(V({}, g), h)), a === W.CLOSING && (g = V(V({}, g), d)), a !== W.OPEN || r || (g = V(V({}, g), y)), i === "center" && (g = V(V({}, g), p)), o && (g = V(V({}, g), v)), V(V({}, u), g);
1696
- } }, { key: "render", value: function() {
1697
- var n = this.props, r = n.component, o = n.handleClick, i = n.hideArrow, s = n.setFloaterRef, a = n.status, l = {}, c = ["__floater"];
1698
- return l.content = r ? D.isValidElement(r) ? D.cloneElement(r, { closeFn: o }) : r({ closeFn: o }) : D.createElement(nr, this.props), a === W.OPEN && c.push("__floater__open"), i || (l.arrow = D.createElement(er, this.props)), D.createElement("div", { ref: s, className: c.join(" "), style: this.style }, D.createElement("div", { className: "__floater__body" }, l.content, l.arrow));
1699
- } }]), t;
1700
- }();
1701
- G(rr, "propTypes", { component: S.oneOfType([S.func, S.element]), content: S.node, disableAnimation: S.bool.isRequired, footer: S.node, handleClick: S.func.isRequired, hideArrow: S.bool.isRequired, open: S.bool, placement: S.string.isRequired, positionWrapper: S.bool.isRequired, setArrowRef: S.func.isRequired, setFloaterRef: S.func.isRequired, showCloseButton: S.bool, status: S.string.isRequired, styles: S.object.isRequired, title: S.node });
1702
- var or = function() {
1703
- _e(t, D.Component);
1704
- var e = Be(t);
1705
- function t() {
1706
- return De(this, t), e.apply(this, arguments);
1707
- }
1708
- return Fe(t, [{ key: "render", value: function() {
1709
- var n, r = this.props, o = r.children, i = r.handleClick, s = r.handleMouseEnter, a = r.handleMouseLeave, l = r.setChildRef, c = r.setWrapperRef, u = r.style, p = r.styles;
1710
- if (o) if (D.Children.count(o) === 1) if (D.isValidElement(o)) {
1711
- var d = m.function(o.type) ? "innerRef" : "ref";
1712
- n = D.cloneElement(D.Children.only(o), G({}, d, l));
1713
- } else n = D.createElement("span", null, o);
1714
- else n = o;
1715
- return n ? D.createElement("span", { ref: c, style: V(V({}, p), u), onClick: i, onMouseEnter: s, onMouseLeave: a }, n) : null;
1716
- } }]), t;
1717
- }();
1718
- G(or, "propTypes", { children: S.node, handleClick: S.func.isRequired, handleMouseEnter: S.func.isRequired, handleMouseLeave: S.func.isRequired, setChildRef: S.func.isRequired, setWrapperRef: S.func.isRequired, style: S.object, styles: S.object.isRequired });
1719
- var Zr = { zIndex: 100 }, Qr = ["arrow", "flip", "offset"], eo = ["position", "top", "right", "bottom", "left"], yt = function() {
1720
- _e(t, D.Component);
1721
- var e = Be(t);
1722
- function t(n) {
1723
- var r;
1724
- return De(this, t), G(ie(r = e.call(this, n)), "setArrowRef", function(o) {
1725
- r.arrowRef = o;
1726
- }), G(ie(r), "setChildRef", function(o) {
1727
- r.childRef = o;
1728
- }), G(ie(r), "setFloaterRef", function(o) {
1729
- r.floaterRef = o;
1730
- }), G(ie(r), "setWrapperRef", function(o) {
1731
- r.wrapperRef = o;
1732
- }), G(ie(r), "handleTransitionEnd", function() {
1733
- var o = r.state.status, i = r.props.callback;
1734
- r.wrapperPopper && r.wrapperPopper.instance.update(), r.setState({ status: o === W.OPENING ? W.OPEN : W.IDLE }, function() {
1735
- var s = r.state.status;
1736
- i(s === W.OPEN ? "open" : "close", r.props);
1737
- });
1738
- }), G(ie(r), "handleClick", function() {
1739
- var o = r.props, i = o.event, s = o.open;
1740
- if (!m.boolean(s)) {
1741
- var a = r.state, l = a.positionWrapper, c = a.status;
1742
- (r.event === "click" || r.event === "hover" && l) && (Ue({ title: "click", data: [{ event: i, status: c === W.OPEN ? "closing" : "opening" }], debug: r.debug }), r.toggle());
1743
- }
1744
- }), G(ie(r), "handleMouseEnter", function() {
1745
- var o = r.props, i = o.event, s = o.open;
1746
- if (!m.boolean(s) && !lt()) {
1747
- var a = r.state.status;
1748
- r.event === "hover" && a === W.IDLE && (Ue({ title: "mouseEnter", data: [{ key: "originalEvent", value: i }], debug: r.debug }), clearTimeout(r.eventDelayTimeout), r.toggle());
1749
- }
1750
- }), G(ie(r), "handleMouseLeave", function() {
1751
- var o = r.props, i = o.event, s = o.eventDelay, a = o.open;
1752
- if (!m.boolean(a) && !lt()) {
1753
- var l = r.state, c = l.status, u = l.positionWrapper;
1754
- r.event === "hover" && (Ue({ title: "mouseLeave", data: [{ key: "originalEvent", value: i }], debug: r.debug }), s ? [W.OPENING, W.OPEN].indexOf(c) === -1 || u || r.eventDelayTimeout || (r.eventDelayTimeout = setTimeout(function() {
1755
- delete r.eventDelayTimeout, r.toggle();
1756
- }, 1e3 * s)) : r.toggle(W.IDLE));
1757
- }
1758
- }), r.state = { currentPlacement: n.placement, needsUpdate: !1, positionWrapper: n.wrapperOptions.position && !!n.target, status: W.INIT, statusWrapper: W.INIT }, r._isMounted = !1, r.hasMounted = !1, ee() && window.addEventListener("load", function() {
1759
- r.popper && r.popper.instance.update(), r.wrapperPopper && r.wrapperPopper.instance.update();
1760
- }), r;
1761
- }
1762
- return Fe(t, [{ key: "componentDidMount", value: function() {
1763
- if (ee()) {
1764
- var n = this.state.positionWrapper, r = this.props, o = r.children, i = r.open, s = r.target;
1765
- this._isMounted = !0, Ue({ title: "init", data: { hasChildren: !!o, hasTarget: !!s, isControlled: m.boolean(i), positionWrapper: n, target: this.target, floater: this.floaterRef }, debug: this.debug }), this.hasMounted || (this.initPopper(), this.hasMounted = !0), !o && s && m.boolean(i);
1766
- }
1767
- } }, { key: "componentDidUpdate", value: function(n, r) {
1768
- if (ee()) {
1769
- var o, i = this.props, s = i.autoOpen, a = i.open, l = i.target, c = i.wrapperOptions, u = function(h, y) {
1770
- if ([h, y].some(m.nullOrUndefined)) throw new Error("Missing required parameters");
1771
- if (![h, y].every(function(g) {
1772
- return m.plainObject(g) || m.array(g);
1773
- })) throw new Error("Expected plain objects or array");
1774
- var v = function(g, x, w) {
1775
- try {
1776
- var b = re(h, g), k = re(y, g), f = m.defined(x), E = m.defined(w);
1777
- if (f || E) {
1778
- var C = E ? Te(w, b) : !Te(x, b), O = Te(x, k);
1779
- return C && O;
1780
- }
1781
- return [b, k].every(m.array) || [b, k].every(m.plainObject) ? !Y(b, k) : b !== k;
1782
- } catch {
1783
- return !1;
1784
- }
1785
- };
1786
- return { added: function(g, x) {
1787
- try {
1788
- return hn(h, y, { key: g, type: "added", value: x });
1789
- } catch {
1790
- return !1;
1791
- }
1792
- }, changed: v, changedFrom: function(g, x, w) {
1793
- if (!m.defined(g)) return !1;
1794
- try {
1795
- var b = re(h, g), k = re(y, g), f = m.defined(w);
1796
- return Te(x, b) && (f ? Te(w, k) : !f);
1797
- } catch {
1798
- return !1;
1799
- }
1800
- }, changedTo: function(g, x) {
1801
- return !!m.defined(g) && (process.env.NODE_ENV === "development" && console.warn("`changedTo` is deprecated! Replace it with `change`"), v(g, x));
1802
- }, decreased: function(g, x, w) {
1803
- if (!m.defined(g)) return !1;
1804
- try {
1805
- return dn(h, y, { key: g, actual: x, previous: w, type: "decreased" });
1806
- } catch {
1807
- return !1;
1808
- }
1809
- }, emptied: function(g) {
1810
- try {
1811
- var x = yn(h, y, { key: g }), w = x[0], b = x[1];
1812
- return !!w.length && !b.length;
1813
- } catch {
1814
- return !1;
1815
- }
1816
- }, filled: function(g) {
1817
- try {
1818
- var x = yn(h, y, { key: g }), w = x[0], b = x[1];
1819
- return !w.length && !!b.length;
1820
- } catch {
1821
- return !1;
1822
- }
1823
- }, increased: function(g, x, w) {
1824
- if (!m.defined(g)) return !1;
1825
- try {
1826
- return dn(h, y, { key: g, actual: x, previous: w, type: "increased" });
1827
- } catch {
1828
- return !1;
1829
- }
1830
- }, removed: function(g, x) {
1831
- try {
1832
- return hn(h, y, { key: g, type: "removed", value: x });
1833
- } catch {
1834
- return !1;
1835
- }
1836
- } };
1837
- }(r, this.state), p = u.changedFrom, d = u.changed;
1838
- n.open !== a && (m.boolean(a) && (o = a ? W.OPENING : W.CLOSING), this.toggle(o)), n.wrapperOptions.position === c.position && n.target === l || this.changeWrapperPosition(this.props), (d("status", W.IDLE) && a || p("status", W.INIT, W.IDLE) && s) && this.toggle(W.OPEN), this.popper && d("status", W.OPENING) && this.popper.instance.update(), this.floaterRef && (d("status", W.OPENING) || d("status", W.CLOSING)) && function(h, y, v) {
1839
- var g;
1840
- g = function(x) {
1841
- v(x), function(w, b, k) {
1842
- var f = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
1843
- w.removeEventListener(b, k, f);
1844
- }(h, y, g);
1845
- }, function(x, w, b) {
1846
- var k = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
1847
- x.addEventListener(w, b, k);
1848
- }(h, y, g, arguments.length > 3 && arguments[3] !== void 0 && arguments[3]);
1849
- }(this.floaterRef, "transitionend", this.handleTransitionEnd), d("needsUpdate", !0) && this.rebuildPopper();
1850
- }
1851
- } }, { key: "componentWillUnmount", value: function() {
1852
- ee() && (this._isMounted = !1, this.popper && this.popper.instance.destroy(), this.wrapperPopper && this.wrapperPopper.instance.destroy());
1853
- } }, { key: "initPopper", value: function() {
1854
- var n = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.target, o = this.state.positionWrapper, i = this.props, s = i.disableFlip, a = i.getPopper, l = i.hideArrow, c = i.offset, u = i.placement, p = i.wrapperOptions, d = u === "top" || u === "bottom" ? "flip" : ["right", "bottom-end", "top-end", "left", "top-start", "bottom-start"];
1855
- if (u === "center") this.setState({ status: W.IDLE });
1856
- else if (r && this.floaterRef) {
1857
- var h = this.options, y = h.arrow, v = h.flip, g = h.offset, x = Xn(h, Qr);
1858
- new Ce(r, this.floaterRef, { placement: u, modifiers: V({ arrow: V({ enabled: !l, element: this.arrowRef }, y), flip: V({ enabled: !s, behavior: d }, v), offset: V({ offset: "0, ".concat(c, "px") }, g) }, x), onCreate: function(b) {
1859
- var k;
1860
- n.popper = b, (k = n.floaterRef) !== null && k !== void 0 && k.isConnected ? (a(b, "floater"), n._isMounted && n.setState({ currentPlacement: b.placement, status: W.IDLE }), u !== b.placement && setTimeout(function() {
1861
- b.instance.update();
1862
- }, 1)) : n.setState({ needsUpdate: !0 });
1863
- }, onUpdate: function(b) {
1864
- n.popper = b;
1865
- var k = n.state.currentPlacement;
1866
- n._isMounted && b.placement !== k && n.setState({ currentPlacement: b.placement });
1867
- } });
1868
- }
1869
- if (o) {
1870
- var w = m.undefined(p.offset) ? 0 : p.offset;
1871
- new Ce(this.target, this.wrapperRef, { placement: p.placement || u, modifiers: { arrow: { enabled: !1 }, offset: { offset: "0, ".concat(w, "px") }, flip: { enabled: !1 } }, onCreate: function(b) {
1872
- n.wrapperPopper = b, n._isMounted && n.setState({ statusWrapper: W.IDLE }), a(b, "wrapper"), u !== b.placement && setTimeout(function() {
1873
- b.instance.update();
1874
- }, 1);
1875
- } });
1876
- }
1877
- } }, { key: "rebuildPopper", value: function() {
1878
- var n = this;
1879
- this.floaterRefInterval = setInterval(function() {
1880
- var r;
1881
- (r = n.floaterRef) !== null && r !== void 0 && r.isConnected && (clearInterval(n.floaterRefInterval), n.setState({ needsUpdate: !1 }), n.initPopper());
1882
- }, 50);
1883
- } }, { key: "changeWrapperPosition", value: function(n) {
1884
- var r = n.target, o = n.wrapperOptions;
1885
- this.setState({ positionWrapper: o.position && !!r });
1886
- } }, { key: "toggle", value: function(n) {
1887
- var r = this.state.status === W.OPEN ? W.CLOSING : W.OPENING;
1888
- m.undefined(n) || (r = n), this.setState({ status: r });
1889
- } }, { key: "debug", get: function() {
1890
- return this.props.debug || ee() && "ReactFloaterDebug" in window && !!window.ReactFloaterDebug;
1891
- } }, { key: "event", get: function() {
1892
- var n = this.props, r = n.disableHoverToClick, o = n.event;
1893
- return o === "hover" && lt() && !r ? "click" : o;
1894
- } }, { key: "options", get: function() {
1895
- var n = this.props.options;
1896
- return Q(Jr, n || {});
1897
- } }, { key: "styles", get: function() {
1898
- var n, r = this, o = this.state, i = o.status, s = o.positionWrapper, a = o.statusWrapper, l = this.props.styles, c = Q(function(p) {
1899
- var d = Q(Zr, p.options || {});
1900
- return { wrapper: { cursor: "help", display: "inline-flex", flexDirection: "column", zIndex: d.zIndex }, wrapperPosition: { left: -1e3, position: "absolute", top: -1e3, visibility: "hidden" }, floater: { display: "inline-block", filter: "drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))", maxWidth: 300, opacity: 0, position: "relative", transition: "opacity 0.3s", visibility: "hidden", zIndex: d.zIndex }, floaterOpening: { opacity: 1, visibility: "visible" }, floaterWithAnimation: { opacity: 1, transition: "opacity 0.3s, transform 0.2s", visibility: "visible" }, floaterWithComponent: { maxWidth: "100%" }, floaterClosing: { opacity: 0, visibility: "visible" }, floaterCentered: { left: "50%", position: "fixed", top: "50%", transform: "translate(-50%, -50%)" }, container: { backgroundColor: "#fff", color: "#666", minHeight: 60, minWidth: 200, padding: 20, position: "relative", zIndex: 10 }, title: { borderBottom: "1px solid #555", color: "#555", fontSize: 18, marginBottom: 5, paddingBottom: 6, paddingRight: 18 }, content: { fontSize: 15 }, close: { backgroundColor: "transparent", border: 0, borderRadius: 0, color: "#555", fontSize: 0, height: 15, outline: "none", padding: 10, position: "absolute", right: 0, top: 0, width: 15, WebkitAppearance: "none" }, footer: { borderTop: "1px solid #ccc", fontSize: 13, marginTop: 10, paddingTop: 5 }, arrow: { color: "#fff", display: "inline-flex", length: 16, margin: 8, position: "absolute", spread: 32 }, options: d };
1901
- }(l), l);
1902
- if (s && (n = [W.IDLE].indexOf(i) === -1 || [W.IDLE].indexOf(a) === -1 ? c.wrapperPosition : this.wrapperPopper.styles, c.wrapper = V(V({}, c.wrapper), n)), this.target) {
1903
- var u = window.getComputedStyle(this.target);
1904
- this.wrapperStyles ? c.wrapper = V(V({}, c.wrapper), this.wrapperStyles) : ["relative", "static"].indexOf(u.position) === -1 && (this.wrapperStyles = {}, s || (eo.forEach(function(p) {
1905
- r.wrapperStyles[p] = u[p];
1906
- }), c.wrapper = V(V({}, c.wrapper), this.wrapperStyles), this.target.style.position = "relative", this.target.style.top = "auto", this.target.style.right = "auto", this.target.style.bottom = "auto", this.target.style.left = "auto"));
1907
- }
1908
- return c;
1909
- } }, { key: "target", get: function() {
1910
- if (!ee()) return null;
1911
- var n = this.props.target;
1912
- return n ? m.domElement(n) ? n : document.querySelector(n) : this.childRef || this.wrapperRef;
1913
- } }, { key: "render", value: function() {
1914
- var n = this.state, r = n.currentPlacement, o = n.positionWrapper, i = n.status, s = this.props, a = s.children, l = s.component, c = s.content, u = s.disableAnimation, p = s.footer, d = s.hideArrow, h = s.id, y = s.open, v = s.showCloseButton, g = s.style, x = s.target, w = s.title, b = D.createElement(or, { handleClick: this.handleClick, handleMouseEnter: this.handleMouseEnter, handleMouseLeave: this.handleMouseLeave, setChildRef: this.setChildRef, setWrapperRef: this.setWrapperRef, style: g, styles: this.styles.wrapper }, a), k = {};
1915
- return o ? k.wrapperInPortal = b : k.wrapperAsChildren = b, D.createElement("span", null, D.createElement(Qn, { hasChildren: !!a, id: h, placement: r, setRef: this.setFloaterRef, target: x, zIndex: this.styles.options.zIndex }, D.createElement(rr, { component: l, content: c, disableAnimation: u, footer: p, handleClick: this.handleClick, hideArrow: d || r === "center", open: y, placement: r, positionWrapper: o, setArrowRef: this.setArrowRef, setFloaterRef: this.setFloaterRef, showCloseButton: v, status: i, styles: this.styles, title: w }), k.wrapperInPortal), k.wrapperAsChildren);
1916
- } }]), t;
1917
- }();
1918
- G(yt, "propTypes", { autoOpen: S.bool, callback: S.func, children: S.node, component: vn(S.oneOfType([S.func, S.element]), function(e) {
1919
- return !e.content;
1920
- }), content: vn(S.node, function(e) {
1921
- return !e.component;
1922
- }), debug: S.bool, disableAnimation: S.bool, disableFlip: S.bool, disableHoverToClick: S.bool, event: S.oneOf(["hover", "click"]), eventDelay: S.number, footer: S.node, getPopper: S.func, hideArrow: S.bool, id: S.oneOfType([S.string, S.number]), offset: S.number, open: S.bool, options: S.object, placement: S.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto", "center"]), showCloseButton: S.bool, style: S.object, styles: S.object, target: S.oneOfType([S.object, S.string]), title: S.node, wrapperOptions: S.shape({ offset: S.number, placement: S.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto"]), position: S.bool }) }), G(yt, "defaultProps", { autoOpen: !1, callback: wn, debug: !1, disableAnimation: !1, disableFlip: !1, disableHoverToClick: !1, event: "click", eventDelay: 0.4, getPopper: wn, hideArrow: !1, offset: 15, placement: "bottom", showCloseButton: !1, styles: {}, target: null, wrapperOptions: { position: !1 } });
1923
- var to = Object.defineProperty, N = (e, t, n) => ((r, o, i) => o in r ? to(r, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[o] = i)(e, typeof t != "symbol" ? t + "" : t, n), no = "init", Et = "start", ir = "stop", sr = "reset", fe = "prev", Xe = "next", ro = "go", we = "close", St = "skip", On = "update", K = { TOUR_START: "tour:start", STEP_BEFORE: "step:before", BEACON: "beacon", TOOLTIP: "tooltip", STEP_AFTER: "step:after", TOUR_END: "tour:end", TOUR_STATUS: "tour:status", TARGET_NOT_FOUND: "error:target_not_found", ERROR: "error" }, A = { INIT: "init", READY: "ready", BEACON: "beacon", TOOLTIP: "tooltip", COMPLETE: "complete", ERROR: "error" }, F = { IDLE: "idle", READY: "ready", WAITING: "waiting", RUNNING: "running", PAUSED: "paused", SKIPPED: "skipped", FINISHED: "finished", ERROR: "error" };
1924
- function ae() {
1925
- var e;
1926
- return !(typeof window > "u" || !((e = window.document) != null && e.createElement));
1927
- }
1928
- function En(e) {
1929
- return e ? e.getBoundingClientRect() : null;
1930
- }
1931
- function oo(e = !1) {
1932
- const { body: t, documentElement: n } = document;
1933
- if (!t || !n) return 0;
1934
- if (e) {
1935
- const r = [t.scrollHeight, t.offsetHeight, n.clientHeight, n.scrollHeight, n.offsetHeight].sort((i, s) => i - s), o = Math.floor(r.length / 2);
1936
- return r.length % 2 == 0 ? (r[o - 1] + r[o]) / 2 : r[o];
1937
- }
1938
- return Math.max(t.scrollHeight, t.offsetHeight, n.clientHeight, n.scrollHeight, n.offsetHeight);
1939
- }
1940
- function se(e) {
1941
- if (typeof e == "string") try {
1942
- return document.querySelector(e);
1943
- } catch (t) {
1944
- return process.env.NODE_ENV !== "production" && console.error(t), null;
1945
- }
1946
- return e;
1947
- }
1948
- function je(e, t, n) {
1949
- if (!e) return pe();
1950
- const r = Rn(e);
1951
- if (r) {
1952
- if (r.isSameNode(pe())) return n ? document : pe();
1953
- if (!(r.scrollHeight > r.offsetHeight) && !t) return r.style.overflow = "initial", pe();
1954
- }
1955
- return r;
1956
- }
1957
- function Re(e, t) {
1958
- if (!e) return !1;
1959
- const n = je(e, t);
1960
- return !!n && !n.isSameNode(pe());
1961
- }
1962
- function be(e, t = "fixed") {
1963
- if (!(e && e instanceof HTMLElement)) return !1;
1964
- const { nodeName: n } = e, r = function(o) {
1965
- return o && o.nodeType === 1 ? getComputedStyle(o) : null;
1966
- }(e);
1967
- return n !== "BODY" && n !== "HTML" && (!(!r || r.position !== t) || !!e.parentNode && be(e.parentNode, t));
1968
- }
1969
- function io(e, t, n) {
1970
- var r;
1971
- if (!e) return 0;
1972
- const { offsetTop: o = 0, scrollTop: i = 0 } = (r = Rn(e)) != null ? r : {};
1973
- let s = e.getBoundingClientRect().top + i;
1974
- o && (Re(e, n) || function(l) {
1975
- return l.offsetParent !== document.body;
1976
- }(e)) && (s -= o);
1977
- const a = Math.floor(s - t);
1978
- return a < 0 ? 0 : a;
1979
- }
1980
- function pe() {
1981
- var e;
1982
- return (e = document.scrollingElement) != null ? e : document.documentElement;
1983
- }
1984
- var Pe = mr !== void 0;
1985
- function ar(e = navigator.userAgent) {
1986
- let t = e;
1987
- return typeof window > "u" ? t = "node" : document.documentMode ? t = "ie" : /Edge/.test(e) ? t = "edge" : window.opera || e.includes(" OPR/") ? t = "opera" : window.InstallTrigger !== void 0 ? t = "firefox" : window.chrome ? t = "chrome" : /(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e) && (t = "safari"), t;
1988
- }
1989
- function Ve(e) {
1990
- return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
1991
- }
1992
- function te(e, t = {}) {
1993
- const { defaultValue: n, step: r, steps: o } = t;
1994
- let i = zt(e);
1995
- return i ? (i.includes("{step}") || i.includes("{steps}")) && r && o && (i = i.replace("{step}", r.toString()).replace("{steps}", o.toString())) : Cn(e) && !Object.values(e.props).length && Ve(e.type) === "function" ? i = te(e.type({}), t) : i = zt(n), i;
1996
- }
1997
- function so(e) {
1998
- const t = e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i, (r, o, i, s) => o + o + i + i + s + s), n = /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);
1999
- return n ? [parseInt(n[1], 16), parseInt(n[2], 16), parseInt(n[3], 16)] : [];
2000
- }
2001
- function Sn(e) {
2002
- return e.disableBeacon || e.placement === "center";
2003
- }
2004
- function xn() {
2005
- return !["chrome", "safari", "firefox", "opera"].includes(ar());
2006
- }
2007
- function ce({ data: e, debug: t = !1, title: n, warn: r = !1 }) {
2008
- const o = r ? console.warn || console.error : console.log;
2009
- t && (n && e ? (console.groupCollapsed(`%creact-joyride: ${n}`, "color: #ff0044; font-weight: bold; font-size: 12px;"), Array.isArray(e) ? e.forEach((i) => {
2010
- P.plainObject(i) && i.key ? o.apply(console, [i.key, i.value]) : o.apply(console, [i]);
2011
- }) : o.apply(console, [e]), console.groupEnd()) : console.error("Missing title or data props"));
2012
- }
2013
- function lr(e, ...t) {
2014
- if (!P.plainObject(e)) throw new TypeError("Expected an object");
2015
- const n = {};
2016
- for (const r in e) ({}).hasOwnProperty.call(e, r) && (t.includes(r) || (n[r] = e[r]));
2017
- return n;
2018
- }
2019
- function mt(e, t, n) {
2020
- const r = (i) => i.replace("{step}", String(t)).replace("{steps}", String(n));
2021
- if (Ve(e) === "string") return r(e);
2022
- if (!Cn(e)) return e;
2023
- const { children: o } = e.props;
2024
- return Ve(o) === "string" && o.includes("{step}") ? Tt(e, { children: r(o) }) : Array.isArray(o) ? Tt(e, { children: o.map((i) => typeof i == "string" ? r(i) : mt(i, t, n)) }) : Ve(e.type) === "function" && !Object.values(e.props).length ? mt(e.type({}), t, n) : e;
2025
- }
2026
- var ao = { options: { preventOverflow: { boundariesElement: "scrollParent" } }, wrapperOptions: { offset: -18, position: !0 } }, cr = { back: "Back", close: "Close", last: "Last", next: "Next", nextLabelWithProgress: "Next (Step {step} of {steps})", open: "Open the dialog", skip: "Skip" }, lo = { event: "click", placement: "bottom", offset: 10, disableBeacon: !1, disableCloseOnEsc: !1, disableOverlay: !1, disableOverlayClose: !1, disableScrollParentFix: !1, disableScrolling: !1, hideBackButton: !1, hideCloseButton: !1, hideFooter: !1, isFixed: !1, locale: cr, showProgress: !1, showSkipButton: !1, spotlightClicks: !1, spotlightPadding: 10 }, co = { continuous: !1, debug: !1, disableCloseOnEsc: !1, disableOverlay: !1, disableOverlayClose: !1, disableScrolling: !1, disableScrollParentFix: !1, getHelpers: void 0, hideBackButton: !1, run: !0, scrollOffset: 20, scrollDuration: 300, scrollToFirstStep: !1, showSkipButton: !1, showProgress: !1, spotlightClicks: !1, spotlightPadding: 10, steps: [] }, uo = { arrowColor: "#fff", backgroundColor: "#fff", beaconSize: 36, overlayColor: "rgba(0, 0, 0, 0.5)", primaryColor: "#f04", spotlightShadow: "0 0 15px rgba(0, 0, 0, 0.5)", textColor: "#333", width: 380, zIndex: 100 }, Ne = { backgroundColor: "transparent", border: 0, borderRadius: 0, color: "#555", cursor: "pointer", fontSize: 16, lineHeight: 1, padding: 8, WebkitAppearance: "none" }, Tn = { borderRadius: 4, position: "absolute" };
2027
- function po(e) {
2028
- return function(t, ...n) {
2029
- if (!P.plainObject(t)) throw new TypeError("Expected an object");
2030
- if (!n.length) return t;
2031
- const r = {};
2032
- for (const o in t) ({}).hasOwnProperty.call(t, o) && n.includes(o) && (r[o] = t[o]);
2033
- return r;
2034
- }(e, "beaconComponent", "disableCloseOnEsc", "disableOverlay", "disableOverlayClose", "disableScrolling", "disableScrollParentFix", "floaterProps", "hideBackButton", "hideCloseButton", "locale", "showProgress", "showSkipButton", "spotlightClicks", "spotlightPadding", "styles", "tooltipComponent");
2035
- }
2036
- function ge(e, t) {
2037
- var n, r, o, i, s, a;
2038
- const l = t ?? {}, c = Q.all([lo, po(e), l], { isMergeableObject: P.plainObject }), u = function(h, y) {
2039
- var v, g, x, w, b;
2040
- const { floaterProps: k, styles: f } = h, E = Q((v = y.floaterProps) != null ? v : {}, k ?? {}), C = Q(f ?? {}, (g = y.styles) != null ? g : {}), O = Q(uo, C.options || {}), j = y.placement === "center" || y.disableBeacon;
2041
- let { width: I } = O;
2042
- window.innerWidth > 480 && (I = 380), "width" in O && (I = typeof O.width == "number" && window.innerWidth < O.width ? window.innerWidth - 30 : O.width);
2043
- const L = { bottom: 0, left: 0, overflow: "hidden", position: "absolute", right: 0, top: 0, zIndex: O.zIndex }, M = { beacon: { ...Ne, display: j ? "none" : "inline-block", height: O.beaconSize, position: "relative", width: O.beaconSize, zIndex: O.zIndex }, beaconInner: { animation: "joyride-beacon-inner 1.2s infinite ease-in-out", backgroundColor: O.primaryColor, borderRadius: "50%", display: "block", height: "50%", left: "50%", opacity: 0.7, position: "absolute", top: "50%", transform: "translate(-50%, -50%)", width: "50%" }, beaconOuter: { animation: "joyride-beacon-outer 1.2s infinite ease-in-out", backgroundColor: `rgba(${so(O.primaryColor).join(",")}, 0.2)`, border: `2px solid ${O.primaryColor}`, borderRadius: "50%", boxSizing: "border-box", display: "block", height: "100%", left: 0, opacity: 0.9, position: "absolute", top: 0, transformOrigin: "center", width: "100%" }, tooltip: { backgroundColor: O.backgroundColor, borderRadius: 5, boxSizing: "border-box", color: O.textColor, fontSize: 16, maxWidth: "100%", padding: 15, position: "relative", width: I }, tooltipContainer: { lineHeight: 1.4, textAlign: "center" }, tooltipTitle: { fontSize: 18, margin: 0 }, tooltipContent: { padding: "20px 10px" }, tooltipFooter: { alignItems: "center", display: "flex", justifyContent: "flex-end", marginTop: 15 }, tooltipFooterSpacer: { flex: 1 }, buttonNext: { ...Ne, backgroundColor: O.primaryColor, borderRadius: 4, color: "#fff" }, buttonBack: { ...Ne, color: O.primaryColor, marginLeft: "auto", marginRight: 5 }, buttonClose: { ...Ne, color: O.textColor, height: 14, padding: 15, position: "absolute", right: 0, top: 0, width: 14 }, buttonSkip: { ...Ne, color: O.textColor, fontSize: 14 }, overlay: { ...L, backgroundColor: O.overlayColor, mixBlendMode: "hard-light" }, overlayLegacy: { ...L }, overlayLegacyCenter: { ...L, backgroundColor: O.overlayColor }, spotlight: { ...Tn, backgroundColor: "gray" }, spotlightLegacy: { ...Tn, boxShadow: `0 0 0 9999px ${O.overlayColor}, ${O.spotlightShadow}` }, floaterStyles: { arrow: { color: (b = (w = (x = E == null ? void 0 : E.styles) == null ? void 0 : x.arrow) == null ? void 0 : w.color) != null ? b : O.arrowColor }, options: { zIndex: O.zIndex + 100 } }, options: O };
2044
- return Q(M, C);
2045
- }(e, c), p = Re(se(c.target), c.disableScrollParentFix), d = Q.all([ao, (n = e.floaterProps) != null ? n : {}, (r = c.floaterProps) != null ? r : {}]);
2046
- return d.offset = c.offset, d.styles = Q((o = d.styles) != null ? o : {}, u.floaterStyles), d.offset += (s = (i = e.spotlightPadding) != null ? i : c.spotlightPadding) != null ? s : 0, c.placementBeacon && d.wrapperOptions && (d.wrapperOptions.placement = c.placementBeacon), p && d.options.preventOverflow && (d.options.preventOverflow.boundariesElement = "window"), { ...c, locale: Q.all([cr, (a = e.locale) != null ? a : {}, c.locale || {}]), floaterProps: d, styles: lr(u, "floaterStyles") };
2047
- }
2048
- function ur(e, t = !1) {
2049
- return P.plainObject(e) ? !!e.target || (ce({ title: "validateStep", data: "target is missing from the step", warn: !0, debug: t }), !1) : (ce({ title: "validateStep", data: "step must be an object", warn: !0, debug: t }), !1);
2050
- }
2051
- function kn(e, t = !1) {
2052
- return P.array(e) ? e.every((n) => ur(n, t)) : (ce({ title: "validateSteps", data: "steps must be an array", warn: !0, debug: t }), !1);
2053
- }
2054
- var Pn, pr = { action: "init", controlled: !1, index: 0, lifecycle: A.INIT, origin: null, size: 0, status: F.IDLE }, Nn = (Pn = lr(pr, "controlled", "size"), Object.keys(Pn)), fo = class {
2055
- constructor(e) {
2056
- N(this, "beaconPopper"), N(this, "tooltipPopper"), N(this, "data", /* @__PURE__ */ new Map()), N(this, "listener"), N(this, "store", /* @__PURE__ */ new Map()), N(this, "addListener", (o) => {
2057
- this.listener = o;
2058
- }), N(this, "setSteps", (o) => {
2059
- const { size: i, status: s } = this.getState(), a = { size: o.length, status: s };
2060
- this.data.set("steps", o), s === F.WAITING && !i && o.length && (a.status = F.RUNNING), this.setState(a);
2061
- }), N(this, "getPopper", (o) => o === "beacon" ? this.beaconPopper : this.tooltipPopper), N(this, "setPopper", (o, i) => {
2062
- o === "beacon" ? this.beaconPopper = i : this.tooltipPopper = i;
2063
- }), N(this, "cleanupPoppers", () => {
2064
- this.beaconPopper = null, this.tooltipPopper = null;
2065
- }), N(this, "close", (o = null) => {
2066
- const { index: i, status: s } = this.getState();
2067
- s === F.RUNNING && this.setState({ ...this.getNextState({ action: we, index: i + 1, origin: o }) });
2068
- }), N(this, "go", (o) => {
2069
- const { controlled: i, status: s } = this.getState();
2070
- if (i || s !== F.RUNNING) return;
2071
- const a = this.getSteps()[o];
2072
- this.setState({ ...this.getNextState({ action: ro, index: o }), status: a ? s : F.FINISHED });
2073
- }), N(this, "info", () => this.getState()), N(this, "next", () => {
2074
- const { index: o, status: i } = this.getState();
2075
- i === F.RUNNING && this.setState(this.getNextState({ action: Xe, index: o + 1 }));
2076
- }), N(this, "open", () => {
2077
- const { status: o } = this.getState();
2078
- o === F.RUNNING && this.setState({ ...this.getNextState({ action: On, lifecycle: A.TOOLTIP }) });
2079
- }), N(this, "prev", () => {
2080
- const { index: o, status: i } = this.getState();
2081
- i === F.RUNNING && this.setState({ ...this.getNextState({ action: fe, index: o - 1 }) });
2082
- }), N(this, "reset", (o = !1) => {
2083
- const { controlled: i } = this.getState();
2084
- i || this.setState({ ...this.getNextState({ action: sr, index: 0 }), status: o ? F.RUNNING : F.READY });
2085
- }), N(this, "skip", () => {
2086
- const { status: o } = this.getState();
2087
- o === F.RUNNING && this.setState({ action: St, lifecycle: A.INIT, status: F.SKIPPED });
2088
- }), N(this, "start", (o) => {
2089
- const { index: i, size: s } = this.getState();
2090
- this.setState({ ...this.getNextState({ action: Et, index: P.number(o) ? o : i }, !0), status: s ? F.RUNNING : F.WAITING });
2091
- }), N(this, "stop", (o = !1) => {
2092
- const { index: i, status: s } = this.getState();
2093
- [F.FINISHED, F.SKIPPED].includes(s) || this.setState({ ...this.getNextState({ action: ir, index: i + (o ? 1 : 0) }), status: F.PAUSED });
2094
- }), N(this, "update", (o) => {
2095
- var i, s, a, l;
2096
- if (a = o, l = Nn, !(P.plainObject(a) && P.array(l) && Object.keys(a).every((c) => l.includes(c)))) throw new Error(`State is not valid. Valid keys: ${Nn.join(", ")}`);
2097
- this.setState({ ...this.getNextState({ ...this.getState(), ...o, action: (i = o.action) != null ? i : On, origin: (s = o.origin) != null ? s : null }, !0) });
2098
- });
2099
- const { continuous: t = !1, stepIndex: n, steps: r = [] } = e ?? {};
2100
- this.setState({ action: no, controlled: P.number(n), continuous: t, index: P.number(n) ? n : 0, lifecycle: A.INIT, origin: null, status: r.length ? F.READY : F.IDLE }, !0), this.beaconPopper = null, this.tooltipPopper = null, this.listener = null, this.setSteps(r);
2101
- }
2102
- getState() {
2103
- return this.store.size ? { action: this.store.get("action") || "", controlled: this.store.get("controlled") || !1, index: parseInt(this.store.get("index"), 10), lifecycle: this.store.get("lifecycle") || "", origin: this.store.get("origin") || null, size: this.store.get("size") || 0, status: this.store.get("status") || "" } : { ...pr };
2104
- }
2105
- getNextState(e, t = !1) {
2106
- var n, r, o, i, s;
2107
- const { action: a, controlled: l, index: c, size: u, status: p } = this.getState(), d = P.number(e.index) ? e.index : c, h = l && !t ? c : Math.min(Math.max(d, 0), u);
2108
- return { action: (n = e.action) != null ? n : a, controlled: l, index: h, lifecycle: (r = e.lifecycle) != null ? r : A.INIT, origin: (o = e.origin) != null ? o : null, size: (i = e.size) != null ? i : u, status: h === u ? F.FINISHED : (s = e.status) != null ? s : p };
2109
- }
2110
- getSteps() {
2111
- const e = this.data.get("steps");
2112
- return Array.isArray(e) ? e : [];
2113
- }
2114
- hasUpdatedState(e) {
2115
- return JSON.stringify(e) !== JSON.stringify(this.getState());
2116
- }
2117
- setState(e, t = !1) {
2118
- const n = this.getState(), { action: r, index: o, lifecycle: i, origin: s = null, size: a, status: l } = { ...n, ...e };
2119
- this.store.set("action", r), this.store.set("index", o), this.store.set("lifecycle", i), this.store.set("origin", s), this.store.set("size", a), this.store.set("status", l), t && (this.store.set("controlled", e.controlled), this.store.set("continuous", e.continuous)), this.listener && this.hasUpdatedState(n) && this.listener(this.getState());
2120
- }
2121
- getHelpers() {
2122
- return { close: this.close, go: this.go, info: this.info, next: this.next, open: this.open, prev: this.prev, reset: this.reset, skip: this.skip };
2123
- }
2124
- }, ho = function({ styles: e }) {
2125
- return _.createElement("div", { key: "JoyrideSpotlight", className: "react-joyride__spotlight", "data-test-id": "spotlight", style: e });
2126
- }, yo = class extends _.Component {
2127
- constructor() {
2128
- super(...arguments), N(this, "isActive", !1), N(this, "resizeTimeout"), N(this, "scrollTimeout"), N(this, "scrollParent"), N(this, "state", { isScrolling: !1, mouseOverSpotlight: !1, showSpotlight: !0 }), N(this, "hideSpotlight", () => {
2129
- const { continuous: e, disableOverlay: t, lifecycle: n } = this.props, r = [A.INIT, A.BEACON, A.COMPLETE, A.ERROR];
2130
- return t || (e ? r.includes(n) : n !== A.TOOLTIP);
2131
- }), N(this, "handleMouseMove", (e) => {
2132
- const { mouseOverSpotlight: t } = this.state, { height: n, left: r, position: o, top: i, width: s } = this.spotlightStyles, a = o === "fixed" ? e.clientY : e.pageY, l = o === "fixed" ? e.clientX : e.pageX, c = l >= r && l <= r + s && a >= i && a <= i + n;
2133
- c !== t && this.updateState({ mouseOverSpotlight: c });
2134
- }), N(this, "handleScroll", () => {
2135
- const { target: e } = this.props, t = se(e);
2136
- if (this.scrollParent !== document) {
2137
- const { isScrolling: n } = this.state;
2138
- n || this.updateState({ isScrolling: !0, showSpotlight: !1 }), clearTimeout(this.scrollTimeout), this.scrollTimeout = window.setTimeout(() => {
2139
- this.updateState({ isScrolling: !1, showSpotlight: !0 });
2140
- }, 50);
2141
- } else be(t, "sticky") && this.updateState({});
2142
- }), N(this, "handleResize", () => {
2143
- clearTimeout(this.resizeTimeout), this.resizeTimeout = window.setTimeout(() => {
2144
- this.isActive && this.forceUpdate();
2145
- }, 100);
2146
- });
2147
- }
2148
- componentDidMount() {
2149
- const { debug: e, disableScrolling: t, disableScrollParentFix: n = !1, target: r } = this.props, o = se(r);
2150
- this.scrollParent = je(o ?? document.body, n, !0), this.isActive = !0, process.env.NODE_ENV !== "production" && !t && Re(o, !0) && ce({ title: "step has a custom scroll parent and can cause trouble with scrolling", data: [{ key: "parent", value: this.scrollParent }], debug: e }), window.addEventListener("resize", this.handleResize);
2151
- }
2152
- componentDidUpdate(e) {
2153
- var t;
2154
- const { disableScrollParentFix: n, lifecycle: r, spotlightClicks: o, target: i } = this.props, { changed: s } = qe(e, this.props);
2155
- if (s("target") || s("disableScrollParentFix")) {
2156
- const a = se(i);
2157
- this.scrollParent = je(a ?? document.body, n, !0);
2158
- }
2159
- s("lifecycle", A.TOOLTIP) && ((t = this.scrollParent) == null || t.addEventListener("scroll", this.handleScroll, { passive: !0 }), setTimeout(() => {
2160
- const { isScrolling: a } = this.state;
2161
- a || this.updateState({ showSpotlight: !0 });
2162
- }, 100)), (s("spotlightClicks") || s("disableOverlay") || s("lifecycle")) && (o && r === A.TOOLTIP ? window.addEventListener("mousemove", this.handleMouseMove, !1) : r !== A.TOOLTIP && window.removeEventListener("mousemove", this.handleMouseMove));
2163
- }
2164
- componentWillUnmount() {
2165
- var e;
2166
- this.isActive = !1, window.removeEventListener("mousemove", this.handleMouseMove), window.removeEventListener("resize", this.handleResize), clearTimeout(this.resizeTimeout), clearTimeout(this.scrollTimeout), (e = this.scrollParent) == null || e.removeEventListener("scroll", this.handleScroll);
2167
- }
2168
- get overlayStyles() {
2169
- const { mouseOverSpotlight: e } = this.state, { disableOverlayClose: t, placement: n, styles: r } = this.props;
2170
- let o = r.overlay;
2171
- return xn() && (o = n === "center" ? r.overlayLegacyCenter : r.overlayLegacy), { cursor: t ? "default" : "pointer", height: oo(), pointerEvents: e ? "none" : "auto", ...o };
2172
- }
2173
- get spotlightStyles() {
2174
- var e, t, n;
2175
- const { showSpotlight: r } = this.state, { disableScrollParentFix: o = !1, spotlightClicks: i, spotlightPadding: s = 0, styles: a, target: l } = this.props, c = se(l), u = En(c), p = be(c), d = function(h, y, v) {
2176
- var g, x, w;
2177
- const b = En(h), k = je(h, v), f = Re(h, v), E = be(h);
2178
- let C = 0, O = (g = b == null ? void 0 : b.top) != null ? g : 0;
2179
- return f && E ? O = ((x = h == null ? void 0 : h.offsetTop) != null ? x : 0) - ((w = k == null ? void 0 : k.scrollTop) != null ? w : 0) : k instanceof HTMLElement && (C = k.scrollTop, f || be(h) || (O += C), k.isSameNode(pe()) || (O += pe().scrollTop)), Math.floor(O - y);
2180
- }(c, s, o);
2181
- return { ...xn() ? a.spotlightLegacy : a.spotlight, height: Math.round(((e = u == null ? void 0 : u.height) != null ? e : 0) + 2 * s), left: Math.round(((t = u == null ? void 0 : u.left) != null ? t : 0) - s), opacity: r ? 1 : 0, pointerEvents: i ? "none" : "auto", position: p ? "fixed" : "absolute", top: d, transition: "opacity 0.2s", width: Math.round(((n = u == null ? void 0 : u.width) != null ? n : 0) + 2 * s) };
2182
- }
2183
- updateState(e) {
2184
- this.isActive && this.setState((t) => ({ ...t, ...e }));
2185
- }
2186
- render() {
2187
- const { showSpotlight: e } = this.state, { onClickOverlay: t, placement: n } = this.props, { hideSpotlight: r, overlayStyles: o, spotlightStyles: i } = this;
2188
- if (r()) return null;
2189
- let s = n !== "center" && e && _.createElement(ho, { styles: i });
2190
- if (ar() === "safari") {
2191
- const { mixBlendMode: a, zIndex: l, ...c } = o;
2192
- s = _.createElement("div", { style: { ...c } }, s), delete o.backgroundColor;
2193
- }
2194
- return _.createElement("div", { className: "react-joyride__overlay", "data-test-id": "overlay", onClick: t, role: "presentation", style: o }, s);
2195
- }
2196
- }, mo = class extends _.Component {
2197
- constructor() {
2198
- super(...arguments), N(this, "node", null);
2199
- }
2200
- componentDidMount() {
2201
- const { id: e } = this.props;
2202
- ae() && (this.node = document.createElement("div"), this.node.id = e, document.body.appendChild(this.node), Pe || this.renderReact15());
2203
- }
2204
- componentDidUpdate() {
2205
- ae() && (Pe || this.renderReact15());
2206
- }
2207
- componentWillUnmount() {
2208
- ae() && this.node && (Pe || Qe.unmountComponentAtNode(this.node), this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = null));
2209
- }
2210
- renderReact15() {
2211
- if (!ae()) return;
2212
- const { children: e } = this.props;
2213
- this.node && Qe.unstable_renderSubtreeIntoContainer(this, e, this.node);
2214
- }
2215
- renderReact16() {
2216
- if (!ae() || !Pe) return null;
2217
- const { children: e } = this.props;
2218
- return this.node ? Qe.createPortal(e, this.node) : null;
2219
- }
2220
- render() {
2221
- return Pe ? this.renderReact16() : null;
2222
- }
2223
- }, go = class {
2224
- constructor(e, t) {
2225
- if (N(this, "element"), N(this, "options"), N(this, "canBeTabbed", (n) => {
2226
- const { tabIndex: r } = n;
2227
- return !(r === null || r < 0) && this.canHaveFocus(n);
2228
- }), N(this, "canHaveFocus", (n) => {
2229
- const r = n.nodeName.toLowerCase();
2230
- return (/input|select|textarea|button|object/.test(r) && !n.getAttribute("disabled") || r === "a" && !!n.getAttribute("href")) && this.isVisible(n);
2231
- }), N(this, "findValidTabElements", () => [].slice.call(this.element.querySelectorAll("*"), 0).filter(this.canBeTabbed)), N(this, "handleKeyDown", (n) => {
2232
- const { code: r = "Tab" } = this.options;
2233
- n.code === r && this.interceptTab(n);
2234
- }), N(this, "interceptTab", (n) => {
2235
- n.preventDefault();
2236
- const r = this.findValidTabElements(), { shiftKey: o } = n;
2237
- if (!r.length) return;
2238
- let i = document.activeElement ? r.indexOf(document.activeElement) : 0;
2239
- i === -1 || !o && i + 1 === r.length ? i = 0 : o && i === 0 ? i = r.length - 1 : i += o ? -1 : 1, r[i].focus();
2240
- }), N(this, "isHidden", (n) => {
2241
- const r = n.offsetWidth <= 0 && n.offsetHeight <= 0, o = window.getComputedStyle(n);
2242
- return !(!r || n.innerHTML) || r && o.getPropertyValue("overflow") !== "visible" || o.getPropertyValue("display") === "none";
2243
- }), N(this, "isVisible", (n) => {
2244
- let r = n;
2245
- for (; r; ) if (r instanceof HTMLElement) {
2246
- if (r === document.body) break;
2247
- if (this.isHidden(r)) return !1;
2248
- r = r.parentNode;
2249
- }
2250
- return !0;
2251
- }), N(this, "removeScope", () => {
2252
- window.removeEventListener("keydown", this.handleKeyDown);
2253
- }), N(this, "checkFocus", (n) => {
2254
- document.activeElement !== n && (n.focus(), window.requestAnimationFrame(() => this.checkFocus(n)));
2255
- }), N(this, "setFocus", () => {
2256
- const { selector: n } = this.options;
2257
- if (!n) return;
2258
- const r = this.element.querySelector(n);
2259
- r && window.requestAnimationFrame(() => this.checkFocus(r));
2260
- }), !(e instanceof HTMLElement)) throw new TypeError("Invalid parameter: element must be an HTMLElement");
2261
- this.element = e, this.options = t, window.addEventListener("keydown", this.handleKeyDown, !1), this.setFocus();
2262
- }
2263
- }, bo = class extends _.Component {
2264
- constructor(e) {
2265
- if (super(e), N(this, "beacon", null), N(this, "setBeaconRef", (r) => {
2266
- this.beacon = r;
2267
- }), e.beaconComponent) return;
2268
- const t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
2269
- n.id = "joyride-beacon-animation", e.nonce && n.setAttribute("nonce", e.nonce), n.appendChild(document.createTextNode(`
2270
- @keyframes joyride-beacon-inner {
2271
- 20% {
2272
- opacity: 0.9;
2273
- }
2274
-
2275
- 90% {
2276
- opacity: 0.7;
2277
- }
2278
- }
2279
-
2280
- @keyframes joyride-beacon-outer {
2281
- 0% {
2282
- transform: scale(1);
2283
- }
2284
-
2285
- 45% {
2286
- opacity: 0.7;
2287
- transform: scale(0.75);
2288
- }
2289
-
2290
- 100% {
2291
- opacity: 0.9;
2292
- transform: scale(1);
2293
- }
2294
- }
2295
- `)), t.appendChild(n);
2296
- }
2297
- componentDidMount() {
2298
- const { shouldFocus: e } = this.props;
2299
- process.env.NODE_ENV !== "production" && (P.domElement(this.beacon) || console.warn("beacon is not a valid DOM element")), setTimeout(() => {
2300
- P.domElement(this.beacon) && e && this.beacon.focus();
2301
- }, 0);
2302
- }
2303
- componentWillUnmount() {
2304
- const e = document.getElementById("joyride-beacon-animation");
2305
- e != null && e.parentNode && e.parentNode.removeChild(e);
2306
- }
2307
- render() {
2308
- const { beaconComponent: e, continuous: t, index: n, isLastStep: r, locale: o, onClickOrHover: i, size: s, step: a, styles: l } = this.props, c = te(o.open), u = { "aria-label": c, onClick: i, onMouseEnter: i, ref: this.setBeaconRef, title: c };
2309
- let p;
2310
- if (e) {
2311
- const d = e;
2312
- p = _.createElement(d, { continuous: t, index: n, isLastStep: r, size: s, step: a, ...u });
2313
- } else p = _.createElement("button", { key: "JoyrideBeacon", className: "react-joyride__beacon", "data-test-id": "button-beacon", style: l.beacon, type: "button", ...u }, _.createElement("span", { style: l.beaconInner }), _.createElement("span", { style: l.beaconOuter }));
2314
- return p;
2315
- }
2316
- }, vo = function({ styles: e, ...t }) {
2317
- const { color: n, height: r, width: o, ...i } = e;
2318
- return D.createElement("button", { style: i, type: "button", ...t }, D.createElement("svg", { height: typeof r == "number" ? `${r}px` : r, preserveAspectRatio: "xMidYMid", version: "1.1", viewBox: "0 0 18 18", width: typeof o == "number" ? `${o}px` : o, xmlns: "http://www.w3.org/2000/svg" }, D.createElement("g", null, D.createElement("path", { d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z", fill: n }))));
2319
- }, wo = function(e) {
2320
- const { backProps: t, closeProps: n, index: r, isLastStep: o, primaryProps: i, skipProps: s, step: a, tooltipProps: l } = e, { content: c, hideBackButton: u, hideCloseButton: p, hideFooter: d, showSkipButton: h, styles: y, title: v } = a, g = {};
2321
- return g.primary = _.createElement("button", { "data-test-id": "button-primary", style: y.buttonNext, type: "button", ...i }), h && !o && (g.skip = _.createElement("button", { "aria-live": "off", "data-test-id": "button-skip", style: y.buttonSkip, type: "button", ...s })), !u && r > 0 && (g.back = _.createElement("button", { "data-test-id": "button-back", style: y.buttonBack, type: "button", ...t })), g.close = !p && _.createElement(vo, { "data-test-id": "button-close", styles: y.buttonClose, ...n }), _.createElement("div", { key: "JoyrideTooltip", "aria-label": te(v ?? c), className: "react-joyride__tooltip", style: y.tooltip, ...l }, _.createElement("div", { style: y.tooltipContainer }, v && _.createElement("h1", { "aria-label": te(v), style: y.tooltipTitle }, v), _.createElement("div", { style: y.tooltipContent }, c)), !d && _.createElement("div", { style: y.tooltipFooter }, _.createElement("div", { style: y.tooltipFooterSpacer }, g.skip), g.back, g.primary), g.close);
2322
- }, Oo = class extends _.Component {
2323
- constructor() {
2324
- super(...arguments), N(this, "handleClickBack", (e) => {
2325
- e.preventDefault();
2326
- const { helpers: t } = this.props;
2327
- t.prev();
2328
- }), N(this, "handleClickClose", (e) => {
2329
- e.preventDefault();
2330
- const { helpers: t } = this.props;
2331
- t.close("button_close");
2332
- }), N(this, "handleClickPrimary", (e) => {
2333
- e.preventDefault();
2334
- const { continuous: t, helpers: n } = this.props;
2335
- t ? n.next() : n.close("button_primary");
2336
- }), N(this, "handleClickSkip", (e) => {
2337
- e.preventDefault();
2338
- const { helpers: t } = this.props;
2339
- t.skip();
2340
- }), N(this, "getElementsProps", () => {
2341
- const { continuous: e, index: t, isLastStep: n, setTooltipRef: r, size: o, step: i } = this.props, { back: s, close: a, last: l, next: c, nextLabelWithProgress: u, skip: p } = i.locale, d = te(s), h = te(a), y = te(l), v = te(c), g = te(p);
2342
- let x = a, w = h;
2343
- if (e) {
2344
- if (x = c, w = v, i.showProgress && !n) {
2345
- const b = te(u, { step: t + 1, steps: o });
2346
- x = mt(u, t + 1, o), w = b;
2347
- }
2348
- n && (x = l, w = y);
2349
- }
2350
- return { backProps: { "aria-label": d, children: s, "data-action": "back", onClick: this.handleClickBack, role: "button", title: d }, closeProps: { "aria-label": h, children: a, "data-action": "close", onClick: this.handleClickClose, role: "button", title: h }, primaryProps: { "aria-label": w, children: x, "data-action": "primary", onClick: this.handleClickPrimary, role: "button", title: w }, skipProps: { "aria-label": g, children: p, "data-action": "skip", onClick: this.handleClickSkip, role: "button", title: g }, tooltipProps: { "aria-modal": !0, ref: r, role: "alertdialog" } };
2351
- });
2352
- }
2353
- render() {
2354
- const { continuous: e, index: t, isLastStep: n, setTooltipRef: r, size: o, step: i } = this.props, { beaconComponent: s, tooltipComponent: a, ...l } = i;
2355
- let c;
2356
- if (a) {
2357
- const u = { ...this.getElementsProps(), continuous: e, index: t, isLastStep: n, size: o, step: l, setTooltipRef: r }, p = a;
2358
- c = _.createElement(p, { ...u });
2359
- } else c = _.createElement(wo, { ...this.getElementsProps(), continuous: e, index: t, isLastStep: n, size: o, step: i });
2360
- return c;
2361
- }
2362
- }, Eo = class extends _.Component {
2363
- constructor() {
2364
- super(...arguments), N(this, "scope", null), N(this, "tooltip", null), N(this, "handleClickHoverBeacon", (e) => {
2365
- const { step: t, store: n } = this.props;
2366
- e.type === "mouseenter" && t.event !== "hover" || n.update({ lifecycle: A.TOOLTIP });
2367
- }), N(this, "setTooltipRef", (e) => {
2368
- this.tooltip = e;
2369
- }), N(this, "setPopper", (e, t) => {
2370
- var n;
2371
- const { action: r, lifecycle: o, step: i, store: s } = this.props;
2372
- t === "wrapper" ? s.setPopper("beacon", e) : s.setPopper("tooltip", e), s.getPopper("beacon") && (s.getPopper("tooltip") || i.placement === "center") && o === A.INIT && s.update({ action: r, lifecycle: A.READY }), (n = i.floaterProps) != null && n.getPopper && i.floaterProps.getPopper(e, t);
2373
- }), N(this, "renderTooltip", (e) => {
2374
- const { continuous: t, helpers: n, index: r, size: o, step: i } = this.props;
2375
- return _.createElement(Oo, { continuous: t, helpers: n, index: r, isLastStep: r + 1 === o, setTooltipRef: this.setTooltipRef, size: o, step: i, ...e });
2376
- });
2377
- }
2378
- componentDidMount() {
2379
- const { debug: e, index: t } = this.props;
2380
- ce({ title: `step:${t}`, data: [{ key: "props", value: this.props }], debug: e });
2381
- }
2382
- componentDidUpdate(e) {
2383
- var t;
2384
- const { action: n, callback: r, continuous: o, controlled: i, debug: s, helpers: a, index: l, lifecycle: c, shouldScroll: u, status: p, step: d, store: h } = this.props, { changed: y, changedFrom: v } = qe(e, this.props), g = a.info(), x = o && n !== we && (l > 0 || n === fe), w = y("action") || y("index") || y("lifecycle") || y("status"), b = v("lifecycle", [A.TOOLTIP, A.INIT], A.INIT), k = y("action", [Xe, fe, St, we]), f = i && l === e.index;
2385
- if (k && (b || f) && r({ ...g, index: e.index, lifecycle: A.COMPLETE, step: e.step, type: K.STEP_AFTER }), d.placement === "center" && p === F.RUNNING && y("index") && n !== Et && c === A.INIT && h.update({ lifecycle: A.READY }), w) {
2386
- const E = se(d.target), C = !!E;
2387
- C && function(j) {
2388
- var I;
2389
- if (!j) return !1;
2390
- let L = j;
2391
- for (; L && L !== document.body; ) {
2392
- if (L instanceof HTMLElement) {
2393
- const { display: M, visibility: B } = getComputedStyle(L);
2394
- if (M === "none" || B === "hidden") return !1;
2395
- }
2396
- L = (I = L.parentElement) != null ? I : null;
2397
- }
2398
- return !0;
2399
- }(E) ? (v("status", F.READY, F.RUNNING) || v("lifecycle", A.INIT, A.READY)) && r({ ...g, step: d, type: K.STEP_BEFORE }) : (console.warn(C ? "Target not visible" : "Target not mounted", d), r({ ...g, type: K.TARGET_NOT_FOUND, step: d }), i || h.update({ index: l + (n === fe ? -1 : 1) }));
2400
- }
2401
- v("lifecycle", A.INIT, A.READY) && h.update({ lifecycle: Sn(d) || x ? A.TOOLTIP : A.BEACON }), y("index") && ce({ title: `step:${c}`, data: [{ key: "props", value: this.props }], debug: s }), y("lifecycle", A.BEACON) && r({ ...g, step: d, type: K.BEACON }), y("lifecycle", A.TOOLTIP) && (r({ ...g, step: d, type: K.TOOLTIP }), u && this.tooltip && (this.scope = new go(this.tooltip, { selector: "[data-action=primary]" }), this.scope.setFocus())), v("lifecycle", [A.TOOLTIP, A.INIT], A.INIT) && ((t = this.scope) == null || t.removeScope(), h.cleanupPoppers());
2402
- }
2403
- componentWillUnmount() {
2404
- var e;
2405
- (e = this.scope) == null || e.removeScope();
2406
- }
2407
- get open() {
2408
- const { lifecycle: e, step: t } = this.props;
2409
- return Sn(t) || e === A.TOOLTIP;
2410
- }
2411
- render() {
2412
- const { continuous: e, debug: t, index: n, nonce: r, shouldScroll: o, size: i, step: s } = this.props, a = se(s.target);
2413
- return ur(s) && P.domElement(a) ? _.createElement("div", { key: `JoyrideStep-${n}`, className: "react-joyride__step" }, _.createElement(yt, { ...s.floaterProps, component: this.renderTooltip, debug: t, getPopper: this.setPopper, id: `react-joyride-step-${n}`, open: this.open, placement: s.placement, target: s.target }, _.createElement(bo, { beaconComponent: s.beaconComponent, continuous: e, index: n, isLastStep: n + 1 === i, locale: s.locale, nonce: r, onClickOrHover: this.handleClickHoverBeacon, shouldFocus: o, size: i, step: s, styles: s.styles }))) : null;
2414
- }
2415
- }, fr = class extends _.Component {
2416
- constructor(e) {
2417
- super(e), N(this, "helpers"), N(this, "store"), N(this, "callback", (a) => {
2418
- const { callback: l } = this.props;
2419
- P.function(l) && l(a);
2420
- }), N(this, "handleKeyboard", (a) => {
2421
- const { index: l, lifecycle: c } = this.state, { steps: u } = this.props, p = u[l];
2422
- c === A.TOOLTIP && a.code === "Escape" && p && !p.disableCloseOnEsc && this.store.close("keyboard");
2423
- }), N(this, "handleClickOverlay", () => {
2424
- const { index: a } = this.state, { steps: l } = this.props;
2425
- ge(this.props, l[a]).disableOverlayClose || this.helpers.close("overlay");
2426
- }), N(this, "syncState", (a) => {
2427
- this.setState(a);
2428
- });
2429
- const { debug: t, getHelpers: n, run: r = !0, stepIndex: o } = e;
2430
- var i;
2431
- this.store = (i = { ...e, controlled: r && P.number(o) }, new fo(i)), this.helpers = this.store.getHelpers();
2432
- const { addListener: s } = this.store;
2433
- ce({ title: "init", data: [{ key: "props", value: this.props }, { key: "state", value: this.state }], debug: t }), s(this.syncState), n && n(this.helpers), this.state = this.store.getState();
2434
- }
2435
- componentDidMount() {
2436
- if (!ae()) return;
2437
- const { debug: e, disableCloseOnEsc: t, run: n, steps: r } = this.props, { start: o } = this.store;
2438
- kn(r, e) && n && o(), t || document.body.addEventListener("keydown", this.handleKeyboard, { passive: !0 });
2439
- }
2440
- componentDidUpdate(e, t) {
2441
- if (!ae()) return;
2442
- const { action: n, controlled: r, index: o, status: i } = this.state, { debug: s, run: a, stepIndex: l, steps: c } = this.props, { stepIndex: u, steps: p } = e, { reset: d, setSteps: h, start: y, stop: v, update: g } = this.store, { changed: x } = qe(e, this.props), { changed: w, changedFrom: b } = qe(t, this.state), k = ge(this.props, c[o]), f = !q(p, c), E = P.number(l) && x("stepIndex"), C = se(k.target);
2443
- if (f && (kn(c, s) ? h(c) : console.warn("Steps are not valid", c)), x("run") && (a ? y(l) : v()), E) {
2444
- let j = P.number(u) && u < l ? Xe : fe;
2445
- n === ir && (j = Et), [F.FINISHED, F.SKIPPED].includes(i) || g({ action: n === we ? we : j, index: l, lifecycle: A.INIT });
2446
- }
2447
- r || i !== F.RUNNING || o !== 0 || C || (this.store.update({ index: o + 1 }), this.callback({ ...this.state, type: K.TARGET_NOT_FOUND, step: k }));
2448
- const O = { ...this.state, index: o, step: k };
2449
- if (w("action", [Xe, fe, St, we]) && w("status", F.PAUSED)) {
2450
- const j = ge(this.props, c[t.index]);
2451
- this.callback({ ...O, index: t.index, lifecycle: A.COMPLETE, step: j, type: K.STEP_AFTER });
2452
- }
2453
- if (w("status", [F.FINISHED, F.SKIPPED])) {
2454
- const j = ge(this.props, c[t.index]);
2455
- r || this.callback({ ...O, index: t.index, lifecycle: A.COMPLETE, step: j, type: K.STEP_AFTER }), this.callback({ ...O, type: K.TOUR_END, step: j, index: t.index }), d();
2456
- } else b("status", [F.IDLE, F.READY], F.RUNNING) ? this.callback({ ...O, type: K.TOUR_START }) : (w("status") || w("action", sr)) && this.callback({ ...O, type: K.TOUR_STATUS });
2457
- this.scrollToStep(t);
2458
- }
2459
- componentWillUnmount() {
2460
- const { disableCloseOnEsc: e } = this.props;
2461
- e || document.body.removeEventListener("keydown", this.handleKeyboard);
2462
- }
2463
- scrollToStep(e) {
2464
- const { index: t, lifecycle: n, status: r } = this.state, { debug: o, disableScrollParentFix: i = !1, scrollDuration: s, scrollOffset: a = 20, scrollToFirstStep: l = !1, steps: c } = this.props, u = ge(this.props, c[t]), p = se(u.target), d = function(h) {
2465
- const { isFirstStep: y, lifecycle: v, previousLifecycle: g, scrollToFirstStep: x, step: w, target: b } = h;
2466
- return !w.disableScrolling && (!y || x || v === A.TOOLTIP) && w.placement !== "center" && (!w.isFixed || !be(b)) && g !== v && [A.BEACON, A.TOOLTIP].includes(v);
2467
- }({ isFirstStep: t === 0, lifecycle: n, previousLifecycle: e.lifecycle, scrollToFirstStep: l, step: u, target: p });
2468
- if (r === F.RUNNING && d) {
2469
- const h = Re(p, i), y = je(p, i);
2470
- let v = Math.floor(io(p, a, i)) || 0;
2471
- ce({ title: "scrollToStep", data: [{ key: "index", value: t }, { key: "lifecycle", value: n }, { key: "status", value: r }], debug: o });
2472
- const g = this.store.getPopper("beacon"), x = this.store.getPopper("tooltip");
2473
- if (n === A.BEACON && g) {
2474
- const { offsets: w, placement: b } = g;
2475
- ["bottom"].includes(b) || h || (v = Math.floor(w.popper.top - a));
2476
- } else if (n === A.TOOLTIP && x) {
2477
- const { flipped: w, offsets: b, placement: k } = x;
2478
- !["top", "right", "left"].includes(k) || w || h ? v -= u.spotlightPadding : v = Math.floor(b.popper.top - a);
2479
- }
2480
- v = v >= 0 ? v : 0, r === F.RUNNING && function(w, b) {
2481
- const { duration: k, element: f } = b;
2482
- return new Promise((E, C) => {
2483
- const { scrollTop: O } = f, j = w > O ? w - O : O - w;
2484
- Sr.top(f, w, { duration: j < 100 ? 50 : k }, (I) => I && I.message !== "Element already at target scroll position" ? C(I) : E());
2485
- });
2486
- }(v, { element: y, duration: s }).then(() => {
2487
- setTimeout(() => {
2488
- var w;
2489
- (w = this.store.getPopper("tooltip")) == null || w.instance.update();
2490
- }, 10);
2491
- });
2492
- }
2493
- }
2494
- render() {
2495
- if (!ae()) return null;
2496
- const { index: e, lifecycle: t, status: n } = this.state, { continuous: r = !1, debug: o = !1, nonce: i, scrollToFirstStep: s = !1, steps: a } = this.props, l = {};
2497
- if (n === F.RUNNING && a[e]) {
2498
- const c = ge(this.props, a[e]);
2499
- l.step = _.createElement(Eo, { ...this.state, callback: this.callback, continuous: r, debug: o, helpers: this.helpers, nonce: i, shouldScroll: !c.disableScrolling && (e !== 0 || s), step: c, store: this.store }), l.overlay = _.createElement(mo, { id: "react-joyride-portal" }, _.createElement(yo, { ...c, continuous: r, debug: o, lifecycle: t, onClickOverlay: this.handleClickOverlay }));
2500
- }
2501
- return _.createElement("div", { className: "react-joyride" }, l.step, l.overlay);
2502
- }
2503
- };
2504
- N(fr, "defaultProps", co);
2505
- var So = fr;
2506
- const Co = { content: "", disableBeacon: !0, hideCloseButton: !1, locale: { back: "Back", close: "Close", last: "Close", next: "Next", open: "Open the dialog", skip: "Skip" }, showSkipButton: !0, styles: { buttonBack: { fontFamily: "roboto" }, buttonNext: { fontFamily: "roboto" }, buttonSkip: { fontFamily: "roboto" }, options: { zIndex: 9999 }, tooltipContainer: { fontFamily: "roboto", textAlign: "left" } }, target: "" }, jo = ({ run: e, steps: t, onFinish: n }) => {
2507
- const [r, o] = kt(e), [i, s] = kt(0), a = yr((l) => {
2508
- const { action: c, index: u, status: p, type: d } = l;
2509
- [K.STEP_AFTER, K.TARGET_NOT_FOUND].includes(d) ? s(u + (c === fe ? -1 : 1)) : ([F.FINISHED, F.SKIPPED].includes(p) || c === "close") && (o(!1), hr(n) || n());
2510
- }, [n]);
2511
- return dr(So, { callback: a, continuous: !0, disableOverlayClose: !0, disableScrollParentFix: !0, run: r, spotlightClicks: !0, stepIndex: i, steps: t, styles: { buttonNext: { display: i === t.length - 1 ? "none" : "block" }, options: { zIndex: 9999 } } });
2512
- };
1
+ import "react/jsx-runtime";
2
+ import "lodash";
3
+ import "react";
4
+ import "../../vendor-CVMqCpkZ.mjs";
5
+ import { aJ as i, aI as e } from "../../components-C2JBXbtI.mjs";
2513
6
  export {
2514
- jo as Tour,
2515
- Co as baseStep
7
+ i as Tour,
8
+ e as baseStep
2516
9
  };