@inploi/plugin-feedback 6.2.0 → 6.3.1

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.
@@ -7,8 +7,7 @@ function invariant(condition, message) {
7
7
  }
8
8
  var n, l$2, u$3, i$2, r$4, o$2, e$1, f$3, c$2, s$2, a$2, h$2, p$2 = {}, v$2 = [], y$2 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, d$2 = Array.isArray;
9
9
  function w$3(n2, l2) {
10
- for (var u2 in l2)
11
- n2[u2] = l2[u2];
10
+ for (var u2 in l2) n2[u2] = l2[u2];
12
11
  return n2;
13
12
  }
14
13
  function g$3(n2) {
@@ -16,11 +15,8 @@ function g$3(n2) {
16
15
  }
17
16
  function _$2(l2, u2, t2) {
18
17
  var i2, r2, o2, e2 = {};
19
- for (o2 in u2)
20
- "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
21
- if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
22
- for (o2 in l2.defaultProps)
23
- void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
18
+ for (o2 in u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
19
+ if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
24
20
  return m$2(l2, e2, i2, r2, null);
25
21
  }
26
22
  function m$2(n2, t2, i2, r2, o2) {
@@ -37,11 +33,8 @@ function x$3(n2, l2) {
37
33
  this.props = n2, this.context = l2;
38
34
  }
39
35
  function S(n2, l2) {
40
- if (null == l2)
41
- return n2.__ ? S(n2.__, n2.__i + 1) : null;
42
- for (var u2; l2 < n2.__k.length; l2++)
43
- if (null != (u2 = n2.__k[l2]) && null != u2.__e)
44
- return u2.__e;
36
+ if (null == l2) return n2.__ ? S(n2.__, n2.__i + 1) : null;
37
+ for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e;
45
38
  return "function" == typeof n2.type ? S(n2) : null;
46
39
  }
47
40
  function C$3(n2) {
@@ -51,40 +44,32 @@ function C$3(n2) {
51
44
  }
52
45
  }
53
46
  function M$2(n2) {
54
- if (null != (n2 = n2.__) && null != n2.__c)
55
- return n2.__e = n2.__c.base = null, n2.__k.some(function(l2) {
56
- if (null != l2 && null != l2.__e)
57
- return n2.__e = n2.__c.base = l2.__e;
58
- }), M$2(n2);
47
+ if (null != (n2 = n2.__) && null != n2.__c) return n2.__e = n2.__c.base = null, n2.__k.some(function(l2) {
48
+ if (null != l2 && null != l2.__e) return n2.__e = n2.__c.base = l2.__e;
49
+ }), M$2(n2);
59
50
  }
60
51
  function $$2(n2) {
61
52
  (!n2.__d && (n2.__d = true) && i$2.push(n2) && !I$2.__r++ || r$4 != l$2.debounceRendering) && ((r$4 = l$2.debounceRendering) || o$2)(I$2);
62
53
  }
63
54
  function I$2() {
64
- for (var n2, l2 = 1; i$2.length; )
65
- i$2.length > l2 && i$2.sort(e$1), n2 = i$2.shift(), l2 = i$2.length, C$3(n2);
55
+ for (var n2, l2 = 1; i$2.length; ) i$2.length > l2 && i$2.sort(e$1), n2 = i$2.shift(), l2 = i$2.length, C$3(n2);
66
56
  I$2.__r = 0;
67
57
  }
68
58
  function P$3(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
69
59
  var a2, h2, y2, d2, w2, g2, _2, m2 = t2 && t2.__k || v$2, b2 = l2.length;
70
- for (f2 = A$3(u2, l2, m2, f2, b2), a2 = 0; a2 < b2; a2++)
71
- null != (y2 = u2.__k[a2]) && (h2 = -1 != y2.__i && m2[y2.__i] || p$2, y2.__i = a2, g2 = z$3(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), d2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && D$3(h2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), (_2 = !!(4 & y2.__u)) || h2.__k === y2.__k ? f2 = H$2(y2, f2, n2, _2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : d2 && (f2 = d2.nextSibling), y2.__u &= -7);
60
+ for (f2 = A$3(u2, l2, m2, f2, b2), a2 = 0; a2 < b2; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 != y2.__i && m2[y2.__i] || p$2, y2.__i = a2, g2 = z$3(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), d2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && D$3(h2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), (_2 = !!(4 & y2.__u)) || h2.__k === y2.__k ? f2 = H$2(y2, f2, n2, _2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : d2 && (f2 = d2.nextSibling), y2.__u &= -7);
72
61
  return u2.__e = w2, f2;
73
62
  }
74
63
  function A$3(n2, l2, u2, t2, i2) {
75
64
  var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
76
- for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++)
77
- null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? ("string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? o2 = n2.__k[r2] = m$2(null, o2, null, null, null) : d$2(o2) ? o2 = n2.__k[r2] = m$2(k$3, { children: o2 }, null, null, null) : void 0 === o2.constructor && o2.__b > 0 ? o2 = n2.__k[r2] = m$2(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : n2.__k[r2] = o2, f2 = r2 + h2, o2.__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = T$2(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
78
- if (a2)
79
- for (r2 = 0; r2 < s2; r2++)
80
- null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), E$1(e2, e2));
65
+ for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? ("string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? o2 = n2.__k[r2] = m$2(null, o2, null, null, null) : d$2(o2) ? o2 = n2.__k[r2] = m$2(k$3, { children: o2 }, null, null, null) : void 0 === o2.constructor && o2.__b > 0 ? o2 = n2.__k[r2] = m$2(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : n2.__k[r2] = o2, f2 = r2 + h2, o2.__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = T$2(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
66
+ if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), E$1(e2, e2));
81
67
  return t2;
82
68
  }
83
69
  function H$2(n2, l2, u2, t2) {
84
70
  var i2, r2;
85
71
  if ("function" == typeof n2.type) {
86
- for (i2 = n2.__k, r2 = 0; i2 && r2 < i2.length; r2++)
87
- i2[r2] && (i2[r2].__ = n2, l2 = H$2(i2[r2], l2, u2, t2));
72
+ for (i2 = n2.__k, r2 = 0; i2 && r2 < i2.length; r2++) i2[r2] && (i2[r2].__ = n2, l2 = H$2(i2[r2], l2, u2, t2));
88
73
  return l2;
89
74
  }
90
75
  n2.__e != l2 && (t2 && (l2 && n2.type && !l2.parentNode && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null)), l2 = n2.__e);
@@ -100,12 +85,9 @@ function L$1(n2, l2) {
100
85
  }
101
86
  function T$2(n2, l2, u2, t2) {
102
87
  var i2, r2, o2, e2 = n2.key, f2 = n2.type, c2 = l2[u2], s2 = null != c2 && 0 == (2 & c2.__u);
103
- if (null === c2 && null == e2 || s2 && e2 == c2.key && f2 == c2.type)
104
- return u2;
88
+ if (null === c2 && null == e2 || s2 && e2 == c2.key && f2 == c2.type) return u2;
105
89
  if (t2 > (s2 ? 1 : 0)) {
106
- for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; )
107
- if (null != (c2 = l2[o2 = i2 >= 0 ? i2-- : r2++]) && 0 == (2 & c2.__u) && e2 == c2.key && f2 == c2.type)
108
- return o2;
90
+ for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) if (null != (c2 = l2[o2 = i2 >= 0 ? i2-- : r2++]) && 0 == (2 & c2.__u) && e2 == c2.key && f2 == c2.type) return o2;
109
91
  }
110
92
  return -1;
111
93
  }
@@ -114,97 +96,73 @@ function j$2(n2, l2, u2) {
114
96
  }
115
97
  function F$3(n2, l2, u2, t2, i2) {
116
98
  var r2, o2;
117
- n:
118
- if ("style" == l2)
119
- if ("string" == typeof u2)
120
- n2.style.cssText = u2;
121
- else {
122
- if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2)
123
- for (l2 in t2)
124
- u2 && l2 in u2 || j$2(n2.style, l2, "");
125
- if (u2)
126
- for (l2 in u2)
127
- t2 && u2[l2] == t2[l2] || j$2(n2.style, l2, u2[l2]);
128
- }
129
- else if ("o" == l2[0] && "n" == l2[1])
130
- r2 = l2 != (l2 = l2.replace(f$3, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$2, n2.addEventListener(l2, r2 ? a$2 : s$2, r2)) : n2.removeEventListener(l2, r2 ? a$2 : s$2, r2);
131
- else {
132
- if ("http://www.w3.org/2000/svg" == i2)
133
- l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
134
- else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2)
135
- try {
136
- n2[l2] = null == u2 ? "" : u2;
137
- break n;
138
- } catch (n3) {
139
- }
140
- "function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
99
+ n: if ("style" == l2) if ("string" == typeof u2) n2.style.cssText = u2;
100
+ else {
101
+ if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || j$2(n2.style, l2, "");
102
+ if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || j$2(n2.style, l2, u2[l2]);
103
+ }
104
+ else if ("o" == l2[0] && "n" == l2[1]) r2 = l2 != (l2 = l2.replace(f$3, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$2, n2.addEventListener(l2, r2 ? a$2 : s$2, r2)) : n2.removeEventListener(l2, r2 ? a$2 : s$2, r2);
105
+ else {
106
+ if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
107
+ else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2) try {
108
+ n2[l2] = null == u2 ? "" : u2;
109
+ break n;
110
+ } catch (n3) {
141
111
  }
112
+ "function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
113
+ }
142
114
  }
143
115
  function O$2(n2) {
144
116
  return function(u2) {
145
117
  if (this.l) {
146
118
  var t2 = this.l[u2.type + n2];
147
- if (null == u2.t)
148
- u2.t = c$2++;
149
- else if (u2.t < t2.u)
150
- return;
119
+ if (null == u2.t) u2.t = c$2++;
120
+ else if (u2.t < t2.u) return;
151
121
  return t2(l$2.event ? l$2.event(u2) : u2);
152
122
  }
153
123
  };
154
124
  }
155
125
  function z$3(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
156
126
  var a2, h2, p2, y2, _2, m2, b2, S2, C2, M2, $2, I2, A2, H2, L2, T2 = u2.type;
157
- if (void 0 !== u2.constructor)
158
- return null;
127
+ if (void 0 !== u2.constructor) return null;
159
128
  128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l$2.__b) && a2(u2);
160
- n:
161
- if ("function" == typeof T2)
162
- try {
163
- if (S2 = u2.props, C2 = "prototype" in T2 && T2.prototype.render, M2 = (a2 = T2.contextType) && i2[a2.__c], $2 = a2 ? M2 ? M2.props.value : a2.__ : i2, t2.__c ? b2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (C2 ? u2.__c = h2 = new T2(S2, $2) : (u2.__c = h2 = new x$3(S2, $2), h2.constructor = T2, h2.render = G$2), M2 && M2.sub(h2), h2.state || (h2.state = {}), h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), C2 && null == h2.__s && (h2.__s = h2.state), C2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = w$3({}, h2.__s)), w$3(h2.__s, T2.getDerivedStateFromProps(S2, h2.__s))), y2 = h2.props, _2 = h2.state, h2.__v = u2, p2)
164
- C2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), C2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
165
- else {
166
- if (C2 && null == T2.getDerivedStateFromProps && S2 !== y2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(S2, $2), u2.__v == t2.__v || !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(S2, h2.__s, $2)) {
167
- u2.__v != t2.__v && (h2.props = S2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
168
- n3 && (n3.__ = u2);
169
- }), v$2.push.apply(h2.__h, h2._sb), h2._sb = [], h2.__h.length && e2.push(h2);
170
- break n;
171
- }
172
- null != h2.componentWillUpdate && h2.componentWillUpdate(S2, h2.__s, $2), C2 && null != h2.componentDidUpdate && h2.__h.push(function() {
173
- h2.componentDidUpdate(y2, _2, m2);
174
- });
175
- }
176
- if (h2.context = $2, h2.props = S2, h2.__P = n2, h2.__e = false, I2 = l$2.__r, A2 = 0, C2)
177
- h2.state = h2.__s, h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), v$2.push.apply(h2.__h, h2._sb), h2._sb = [];
178
- else
179
- do {
180
- h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
181
- } while (h2.__d && ++A2 < 25);
182
- h2.state = h2.__s, null != h2.getChildContext && (i2 = w$3(w$3({}, i2), h2.getChildContext())), C2 && !p2 && null != h2.getSnapshotBeforeUpdate && (m2 = h2.getSnapshotBeforeUpdate(y2, _2)), H2 = null != a2 && a2.type === k$3 && null == a2.key ? q$3(a2.props.children) : a2, f2 = P$3(n2, d$2(H2) ? H2 : [H2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), b2 && (h2.__E = h2.__ = null);
183
- } catch (n3) {
184
- if (u2.__v = null, c2 || null != o2)
185
- if (n3.then) {
186
- for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; )
187
- f2 = f2.nextSibling;
188
- o2[o2.indexOf(f2)] = null, u2.__e = f2;
189
- } else {
190
- for (L2 = o2.length; L2--; )
191
- g$3(o2[L2]);
192
- N$2(u2);
193
- }
194
- else
195
- u2.__e = t2.__e, u2.__k = t2.__k, n3.then || N$2(u2);
196
- l$2.__e(n3, u2, t2);
129
+ n: if ("function" == typeof T2) try {
130
+ if (S2 = u2.props, C2 = "prototype" in T2 && T2.prototype.render, M2 = (a2 = T2.contextType) && i2[a2.__c], $2 = a2 ? M2 ? M2.props.value : a2.__ : i2, t2.__c ? b2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (C2 ? u2.__c = h2 = new T2(S2, $2) : (u2.__c = h2 = new x$3(S2, $2), h2.constructor = T2, h2.render = G$2), M2 && M2.sub(h2), h2.state || (h2.state = {}), h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), C2 && null == h2.__s && (h2.__s = h2.state), C2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = w$3({}, h2.__s)), w$3(h2.__s, T2.getDerivedStateFromProps(S2, h2.__s))), y2 = h2.props, _2 = h2.state, h2.__v = u2, p2) C2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), C2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
131
+ else {
132
+ if (C2 && null == T2.getDerivedStateFromProps && S2 !== y2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(S2, $2), u2.__v == t2.__v || !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(S2, h2.__s, $2)) {
133
+ u2.__v != t2.__v && (h2.props = S2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
134
+ n3 && (n3.__ = u2);
135
+ }), v$2.push.apply(h2.__h, h2._sb), h2._sb = [], h2.__h.length && e2.push(h2);
136
+ break n;
197
137
  }
198
- else
199
- null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = B$3(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
138
+ null != h2.componentWillUpdate && h2.componentWillUpdate(S2, h2.__s, $2), C2 && null != h2.componentDidUpdate && h2.__h.push(function() {
139
+ h2.componentDidUpdate(y2, _2, m2);
140
+ });
141
+ }
142
+ if (h2.context = $2, h2.props = S2, h2.__P = n2, h2.__e = false, I2 = l$2.__r, A2 = 0, C2) h2.state = h2.__s, h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), v$2.push.apply(h2.__h, h2._sb), h2._sb = [];
143
+ else do {
144
+ h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
145
+ } while (h2.__d && ++A2 < 25);
146
+ h2.state = h2.__s, null != h2.getChildContext && (i2 = w$3(w$3({}, i2), h2.getChildContext())), C2 && !p2 && null != h2.getSnapshotBeforeUpdate && (m2 = h2.getSnapshotBeforeUpdate(y2, _2)), H2 = null != a2 && a2.type === k$3 && null == a2.key ? q$3(a2.props.children) : a2, f2 = P$3(n2, d$2(H2) ? H2 : [H2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), b2 && (h2.__E = h2.__ = null);
147
+ } catch (n3) {
148
+ if (u2.__v = null, c2 || null != o2) if (n3.then) {
149
+ for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; ) f2 = f2.nextSibling;
150
+ o2[o2.indexOf(f2)] = null, u2.__e = f2;
151
+ } else {
152
+ for (L2 = o2.length; L2--; ) g$3(o2[L2]);
153
+ N$2(u2);
154
+ }
155
+ else u2.__e = t2.__e, u2.__k = t2.__k, n3.then || N$2(u2);
156
+ l$2.__e(n3, u2, t2);
157
+ }
158
+ else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = B$3(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
200
159
  return (a2 = l$2.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
201
160
  }
202
161
  function N$2(n2) {
203
162
  n2 && (n2.__c && (n2.__c.__e = true), n2.__k && n2.__k.some(N$2));
204
163
  }
205
164
  function V$1(n2, u2, t2) {
206
- for (var i2 = 0; i2 < t2.length; i2++)
207
- D$3(t2[i2], t2[++i2], t2[++i2]);
165
+ for (var i2 = 0; i2 < t2.length; i2++) D$3(t2[i2], t2[++i2], t2[++i2]);
208
166
  l$2.__c && l$2.__c(u2, n2), n2.some(function(u3) {
209
167
  try {
210
168
  n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
@@ -221,32 +179,22 @@ function q$3(n2) {
221
179
  function B$3(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
222
180
  var a2, h2, v2, y2, w2, _2, m2, b2 = i2.props || p$2, k2 = t2.props, x2 = t2.type;
223
181
  if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
224
- for (a2 = 0; a2 < e2.length; a2++)
225
- if ((w2 = e2[a2]) && "setAttribute" in w2 == !!x2 && (x2 ? w2.localName == x2 : 3 == w2.nodeType)) {
226
- u2 = w2, e2[a2] = null;
227
- break;
228
- }
182
+ for (a2 = 0; a2 < e2.length; a2++) if ((w2 = e2[a2]) && "setAttribute" in w2 == !!x2 && (x2 ? w2.localName == x2 : 3 == w2.nodeType)) {
183
+ u2 = w2, e2[a2] = null;
184
+ break;
185
+ }
229
186
  }
230
187
  if (null == u2) {
231
- if (null == x2)
232
- return document.createTextNode(k2);
188
+ if (null == x2) return document.createTextNode(k2);
233
189
  u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l$2.__m && l$2.__m(t2, e2), c2 = false), e2 = null;
234
190
  }
235
- if (null == x2)
236
- b2 === k2 || c2 && u2.data == k2 || (u2.data = k2);
191
+ if (null == x2) b2 === k2 || c2 && u2.data == k2 || (u2.data = k2);
237
192
  else {
238
- if (e2 = e2 && n.call(u2.childNodes), !c2 && null != e2)
239
- for (b2 = {}, a2 = 0; a2 < u2.attributes.length; a2++)
240
- b2[(w2 = u2.attributes[a2]).name] = w2.value;
241
- for (a2 in b2)
242
- w2 = b2[a2], "dangerouslySetInnerHTML" == a2 ? v2 = w2 : "children" == a2 || a2 in k2 || "value" == a2 && "defaultValue" in k2 || "checked" == a2 && "defaultChecked" in k2 || F$3(u2, a2, null, w2, o2);
243
- for (a2 in k2)
244
- w2 = k2[a2], "children" == a2 ? y2 = w2 : "dangerouslySetInnerHTML" == a2 ? h2 = w2 : "value" == a2 ? _2 = w2 : "checked" == a2 ? m2 = w2 : c2 && "function" != typeof w2 || b2[a2] === w2 || F$3(u2, a2, w2, b2[a2], o2);
245
- if (h2)
246
- c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
247
- else if (v2 && (u2.innerHTML = ""), P$3("template" == t2.type ? u2.content : u2, d$2(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2)
248
- for (a2 = e2.length; a2--; )
249
- g$3(e2[a2]);
193
+ if (e2 = e2 && n.call(u2.childNodes), !c2 && null != e2) for (b2 = {}, a2 = 0; a2 < u2.attributes.length; a2++) b2[(w2 = u2.attributes[a2]).name] = w2.value;
194
+ for (a2 in b2) w2 = b2[a2], "dangerouslySetInnerHTML" == a2 ? v2 = w2 : "children" == a2 || a2 in k2 || "value" == a2 && "defaultValue" in k2 || "checked" == a2 && "defaultChecked" in k2 || F$3(u2, a2, null, w2, o2);
195
+ for (a2 in k2) w2 = k2[a2], "children" == a2 ? y2 = w2 : "dangerouslySetInnerHTML" == a2 ? h2 = w2 : "value" == a2 ? _2 = w2 : "checked" == a2 ? m2 = w2 : c2 && "function" != typeof w2 || b2[a2] === w2 || F$3(u2, a2, w2, b2[a2], o2);
196
+ if (h2) c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
197
+ else if (v2 && (u2.innerHTML = ""), P$3("template" == t2.type ? u2.content : u2, d$2(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) g$3(e2[a2]);
250
198
  c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b2[a2]) && F$3(u2, a2, _2, b2[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && F$3(u2, a2, m2, b2[a2], o2));
251
199
  }
252
200
  return u2;
@@ -256,8 +204,7 @@ function D$3(n2, u2, t2) {
256
204
  if ("function" == typeof n2) {
257
205
  var i2 = "function" == typeof n2.__u;
258
206
  i2 && n2.__u(), i2 && null == u2 || (n2.__u = n2(u2));
259
- } else
260
- n2.current = u2;
207
+ } else n2.current = u2;
261
208
  } catch (n3) {
262
209
  l$2.__e(n3, t2);
263
210
  }
@@ -265,17 +212,14 @@ function D$3(n2, u2, t2) {
265
212
  function E$1(n2, u2, t2) {
266
213
  var i2, r2;
267
214
  if (l$2.unmount && l$2.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || D$3(i2, null, u2)), null != (i2 = n2.__c)) {
268
- if (i2.componentWillUnmount)
269
- try {
270
- i2.componentWillUnmount();
271
- } catch (n3) {
272
- l$2.__e(n3, u2);
273
- }
215
+ if (i2.componentWillUnmount) try {
216
+ i2.componentWillUnmount();
217
+ } catch (n3) {
218
+ l$2.__e(n3, u2);
219
+ }
274
220
  i2.base = i2.__P = null;
275
221
  }
276
- if (i2 = n2.__k)
277
- for (r2 = 0; r2 < i2.length; r2++)
278
- i2[r2] && E$1(i2[r2], u2, t2 || "function" != typeof n2.type);
222
+ if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && E$1(i2[r2], u2, t2 || "function" != typeof n2.type);
279
223
  t2 || g$3(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
280
224
  }
281
225
  function G$2(n2, l2, u2) {
@@ -290,8 +234,7 @@ function K$1(n2, l2) {
290
234
  }
291
235
  function Q$1(l2, u2, t2) {
292
236
  var i2, r2, o2, e2, f2 = w$3({}, l2.props);
293
- for (o2 in l2.type && l2.type.defaultProps && (e2 = l2.type.defaultProps), u2)
294
- "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : f2[o2] = void 0 === u2[o2] && null != e2 ? e2[o2] : u2[o2];
237
+ for (o2 in l2.type && l2.type.defaultProps && (e2 = l2.type.defaultProps), u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : f2[o2] = void 0 === u2[o2] && null != e2 ? e2[o2] : u2[o2];
295
238
  return arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), m$2(l2.type, f2, i2 || l2.key, r2 || l2.ref, null);
296
239
  }
297
240
  function R$2(n2) {
@@ -318,14 +261,11 @@ function R$2(n2) {
318
261
  }).contextType = l2, l2;
319
262
  }
320
263
  n = v$2.slice, l$2 = { __e: function(n2, l2, u2, t2) {
321
- for (var i2, r2, o2; l2 = l2.__; )
322
- if ((i2 = l2.__c) && !i2.__)
323
- try {
324
- if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2)
325
- return i2.__E = i2;
326
- } catch (l3) {
327
- n2 = l3;
328
- }
264
+ for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
265
+ if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
266
+ } catch (l3) {
267
+ n2 = l3;
268
+ }
329
269
  throw n2;
330
270
  } }, u$3 = 0, x$3.prototype.setState = function(n2, l2) {
331
271
  var u2;
@@ -347,8 +287,7 @@ function y$1(e2) {
347
287
  }
348
288
  var _$1 = /["&<]/;
349
289
  function g$2(e2) {
350
- if (0 === e2.length || false === _$1.test(e2))
351
- return e2;
290
+ if (0 === e2.length || false === _$1.test(e2)) return e2;
352
291
  for (var t2 = 0, n2 = 0, r2 = "", o2 = ""; n2 < e2.length; n2++) {
353
292
  switch (e2.charCodeAt(n2)) {
354
293
  case 34:
@@ -395,8 +334,7 @@ function B$2(a2, u2, s2) {
395
334
  var p2 = O$1(a2, u2 || F$2, false, void 0, f2, false, s2);
396
335
  return W$1(p2) ? p2.join(H$1) : p2;
397
336
  } catch (e2) {
398
- if (e2.then)
399
- throw new Error('Use "renderToStringAsync" for suspenseful rendering.');
337
+ if (e2.then) throw new Error('Use "renderToStringAsync" for suspenseful rendering.');
400
338
  throw e2;
401
339
  } finally {
402
340
  l$2[o$1] && l$2[o$1](a2, M$1), l$2[i$1] = l2, M$1.length = 0;
@@ -407,11 +345,9 @@ function I$1(e2, t2) {
407
345
  return e2[a$1] ? (o2 = false, (n2 = e2[a$1]).state = n2[s$1]) : n2 = new r2(e2.props, t2), e2[a$1] = n2, n2.__v = e2, n2.props = e2.props, n2.context = t2, v$1(n2), null == n2.state && (n2.state = F$2), null == n2[s$1] && (n2[s$1] = n2.state), r2.getDerivedStateFromProps ? n2.state = z$2({}, n2.state, r2.getDerivedStateFromProps(n2.props, n2.state)) : o2 && n2.componentWillMount ? (n2.componentWillMount(), n2.state = n2[s$1] !== n2.state ? n2[s$1] : n2.state) : !o2 && n2.componentWillUpdate && n2.componentWillUpdate(), $$1 && $$1(e2), n2.render(n2.props, n2.state, t2);
408
346
  }
409
347
  function O$1(t2, r2, o2, i2, u2, _2, b2) {
410
- if (null == t2 || true === t2 || false === t2 || t2 === H$1)
411
- return H$1;
348
+ if (null == t2 || true === t2 || false === t2 || t2 === H$1) return H$1;
412
349
  var x2 = typeof t2;
413
- if ("object" != x2)
414
- return "function" == x2 ? H$1 : "string" == x2 ? g$2(t2) : t2 + H$1;
350
+ if ("object" != x2) return "function" == x2 ? H$1 : "string" == x2 ? g$2(t2) : t2 + H$1;
415
351
  if (W$1(t2)) {
416
352
  var k2, C2 = H$1;
417
353
  u2[c$1] = t2;
@@ -424,25 +360,21 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
424
360
  }
425
361
  return k2 ? (C2 && k2.push(C2), k2) : C2;
426
362
  }
427
- if (void 0 !== t2.constructor)
428
- return H$1;
363
+ if (void 0 !== t2.constructor) return H$1;
429
364
  t2.__ = u2, D$2 && D$2(t2);
430
365
  var Z2 = t2.type, M2 = t2.props;
431
366
  if ("function" == typeof Z2) {
432
367
  var B2, V2, K2, J2 = r2;
433
368
  if (Z2 === k$3) {
434
369
  if ("tpl" in M2) {
435
- for (var Q2 = H$1, X2 = 0; X2 < M2.tpl.length; X2++)
436
- if (Q2 += M2.tpl[X2], M2.exprs && X2 < M2.exprs.length) {
437
- var Y2 = M2.exprs[X2];
438
- if (null == Y2)
439
- continue;
440
- "object" != typeof Y2 || void 0 !== Y2.constructor && !W$1(Y2) ? Q2 += Y2 : Q2 += O$1(Y2, r2, o2, i2, t2, _2, b2);
441
- }
370
+ for (var Q2 = H$1, X2 = 0; X2 < M2.tpl.length; X2++) if (Q2 += M2.tpl[X2], M2.exprs && X2 < M2.exprs.length) {
371
+ var Y2 = M2.exprs[X2];
372
+ if (null == Y2) continue;
373
+ "object" != typeof Y2 || void 0 !== Y2.constructor && !W$1(Y2) ? Q2 += Y2 : Q2 += O$1(Y2, r2, o2, i2, t2, _2, b2);
374
+ }
442
375
  return Q2;
443
376
  }
444
- if ("UNSTABLE_comment" in M2)
445
- return "<!--" + g$2(M2.UNSTABLE_comment) + "-->";
377
+ if ("UNSTABLE_comment" in M2) return "<!--" + g$2(M2.UNSTABLE_comment) + "-->";
446
378
  V2 = M2.children;
447
379
  } else {
448
380
  if (null != (B2 = Z2.contextType)) {
@@ -450,9 +382,8 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
450
382
  J2 = ee ? ee.props.value : B2.__;
451
383
  }
452
384
  var te = Z2.prototype && "function" == typeof Z2.prototype.render;
453
- if (te)
454
- V2 = /**#__NOINLINE__**/
455
- I$1(t2, J2), K2 = t2[a$1];
385
+ if (te) V2 = /**#__NOINLINE__**/
386
+ I$1(t2, J2), K2 = t2[a$1];
456
387
  else {
457
388
  t2[a$1] = K2 = /**#__NOINLINE__**/
458
389
  A$2(t2, J2);
@@ -461,7 +392,7 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
461
392
  try {
462
393
  V2 = Z2.call(K2, M2, J2);
463
394
  } catch (e2) {
464
- throw _2 && e2 && "function" == typeof e2.then && (t2._suspended = true), e2;
395
+ throw e2;
465
396
  }
466
397
  }
467
398
  v$1(K2);
@@ -484,8 +415,8 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
484
415
  return N$1 + e2 + q$2;
485
416
  }) : re;
486
417
  } catch (n2) {
487
- if (!_2 && b2 && b2.onError) {
488
- var oe = function e2(n3) {
418
+ if (b2 && b2.onError) {
419
+ var oe = (function e2(n3) {
489
420
  return b2.onError(n3, t2, function(t3, n4) {
490
421
  try {
491
422
  return O$1(t3, r2, o2, i2, n4, _2, b2);
@@ -493,26 +424,12 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
493
424
  return e2(t4);
494
425
  }
495
426
  });
496
- }(n2);
497
- if (void 0 !== oe)
498
- return oe;
427
+ })(n2);
428
+ if (void 0 !== oe) return oe;
499
429
  var ie = l$2.__e;
500
430
  return ie && ie(n2, t2), H$1;
501
431
  }
502
- if (!_2)
503
- throw n2;
504
- if (!n2 || "function" != typeof n2.then)
505
- throw n2;
506
- return n2.then(function e2() {
507
- try {
508
- var n3 = O$1(V2, r2, o2, i2, t2, _2, b2);
509
- return t2._suspended ? N$1 + n3 + q$2 : n3;
510
- } catch (t3) {
511
- if (!t3 || "function" != typeof t3.then)
512
- throw t3;
513
- return t3.then(e2);
514
- }
515
- });
432
+ throw n2;
516
433
  }
517
434
  }
518
435
  var ae, ce = "<" + Z2, ue = H$1;
@@ -529,13 +446,11 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
529
446
  case "__source":
530
447
  continue;
531
448
  case "htmlFor":
532
- if ("for" in M2)
533
- continue;
449
+ if ("for" in M2) continue;
534
450
  se = "for";
535
451
  break;
536
452
  case "className":
537
- if ("class" in M2)
538
- continue;
453
+ if ("class" in M2) continue;
539
454
  se = "class";
540
455
  break;
541
456
  case "defaultChecked":
@@ -570,21 +485,17 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
570
485
  se = "http-equiv";
571
486
  break;
572
487
  default:
573
- if (f$2.test(se))
574
- se = se.replace(f$2, "$1:$2").toLowerCase();
488
+ if (f$2.test(se)) se = se.replace(f$2, "$1:$2").toLowerCase();
575
489
  else {
576
- if (l$1.test(se))
577
- continue;
490
+ if (l$1.test(se)) continue;
578
491
  "-" !== se[4] && !d$1.has(se) || null == le ? o2 ? h$1.test(se) && (se = "panose1" === se ? "panose-1" : se.replace(/([A-Z])/g, "-$1").toLowerCase()) : p$1.test(se) && (se = se.toLowerCase()) : le += H$1;
579
492
  }
580
493
  }
581
494
  null != le && false !== le && (ce = true === le || le === H$1 ? ce + " " + se : ce + " " + se + '="' + ("string" == typeof le ? g$2(le) : le + H$1) + '"');
582
495
  }
583
496
  }
584
- if (l$1.test(Z2))
585
- throw new Error(Z2 + " is not a valid HTML tag name in " + ce + ">");
586
- if (ue || ("string" == typeof ae ? ue = g$2(ae) : null != ae && false !== ae && true !== ae && (ue = O$1(ae, r2, "svg" === Z2 || "foreignObject" !== Z2 && o2, i2, t2, _2, b2))), P$2 && P$2(t2), U$1 && U$1(t2), !ue && R$1.has(Z2))
587
- return ce + "/>";
497
+ if (l$1.test(Z2)) throw new Error(Z2 + " is not a valid HTML tag name in " + ce + ">");
498
+ if (ue || ("string" == typeof ae ? ue = g$2(ae) : null != ae && false !== ae && true !== ae && (ue = O$1(ae, r2, "svg" === Z2 || "foreignObject" !== Z2 && o2, i2, t2, _2, b2))), P$2 && P$2(t2), U$1 && U$1(t2), !ue && R$1.has(Z2)) return ce + "/>";
588
499
  var fe = "</" + Z2 + ">", pe = ce + ">";
589
500
  return W$1(ue) ? [pe].concat(ue, [fe]) : "string" != typeof ue ? [pe, ue, fe] : pe + ue + fe;
590
501
  }
@@ -596,28 +507,19 @@ var f$1 = 0;
596
507
  function u$1(e2, t2, n2, o2, i2, u2) {
597
508
  t2 || (t2 = {});
598
509
  var a2, c2, p2 = t2;
599
- if ("ref" in p2)
600
- for (c2 in p2 = {}, t2)
601
- "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
510
+ if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
602
511
  var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f$1, __i: -1, __u: 0, __source: i2, __self: u2 };
603
- if ("function" == typeof e2 && (a2 = e2.defaultProps))
604
- for (c2 in a2)
605
- void 0 === p2[c2] && (p2[c2] = a2[c2]);
512
+ if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
606
513
  return l$2.vnode && l$2.vnode(l2), l2;
607
514
  }
608
515
  function _extends() {
609
- _extends = Object.assign ? Object.assign.bind() : function(target) {
610
- for (var i2 = 1; i2 < arguments.length; i2++) {
611
- var source = arguments[i2];
612
- for (var key in source) {
613
- if (Object.prototype.hasOwnProperty.call(source, key)) {
614
- target[key] = source[key];
615
- }
616
- }
516
+ return _extends = Object.assign ? Object.assign.bind() : function(n2) {
517
+ for (var e2 = 1; e2 < arguments.length; e2++) {
518
+ var t2 = arguments[e2];
519
+ for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
617
520
  }
618
- return target;
619
- };
620
- return _extends.apply(this, arguments);
521
+ return n2;
522
+ }, _extends.apply(null, arguments);
621
523
  }
622
524
  var t, r$2, u, i, o = 0, f = [], c = l$2, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;
623
525
  function p(n2, t2) {
@@ -635,15 +537,13 @@ function h(n2, u2, i2) {
635
537
  t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
636
538
  }], o2.__c = r$2, !r$2.__f)) {
637
539
  var f2 = function(n3, t2, r2) {
638
- if (!o2.__c.__H)
639
- return true;
540
+ if (!o2.__c.__H) return true;
640
541
  var u3 = o2.__c.__H.__.filter(function(n4) {
641
542
  return n4.__c;
642
543
  });
643
544
  if (u3.every(function(n4) {
644
545
  return !n4.__N;
645
- }))
646
- return !c2 || c2.call(this, n3, t2, r2);
546
+ })) return !c2 || c2.call(this, n3, t2, r2);
647
547
  var i3 = o2.__c.props !== n3;
648
548
  return u3.some(function(n4) {
649
549
  if (n4.__N) {
@@ -685,10 +585,9 @@ function F$1(n2, t2, r2) {
685
585
  n2(null), r3 && "function" == typeof r3 && r3();
686
586
  };
687
587
  }
688
- if (n2)
689
- return n2.current = t2(), function() {
690
- return n2.current = null;
691
- };
588
+ if (n2) return n2.current = t2(), function() {
589
+ return n2.current = null;
590
+ };
692
591
  }, null == r2 ? r2 : r2.concat(n2));
693
592
  }
694
593
  function T$1(n2, r2) {
@@ -718,8 +617,7 @@ function b(n2) {
718
617
  function g$1() {
719
618
  var n2 = p(t++, 11);
720
619
  if (!n2.__) {
721
- for (var u2 = r$2.__v; null !== u2 && !u2.__m && null !== u2.__; )
722
- u2 = u2.__;
620
+ for (var u2 = r$2.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
723
621
  var i2 = u2.__m || (u2.__m = [0, 0]);
724
622
  n2.__ = "P" + i2[0] + "-" + i2[1]++;
725
623
  }
@@ -728,12 +626,11 @@ function g$1() {
728
626
  function j$1() {
729
627
  for (var n2; n2 = f.shift(); ) {
730
628
  var t2 = n2.__H;
731
- if (n2.__P && t2)
732
- try {
733
- t2.__h.some(z$1), t2.__h.some(B$1), t2.__h = [];
734
- } catch (r2) {
735
- t2.__h = [], c.__e(r2, n2.__v);
736
- }
629
+ if (n2.__P && t2) try {
630
+ t2.__h.some(z$1), t2.__h.some(B$1), t2.__h = [];
631
+ } catch (r2) {
632
+ t2.__h = [], c.__e(r2, n2.__v);
633
+ }
737
634
  }
738
635
  }
739
636
  c.__b = function(n2) {
@@ -799,17 +696,12 @@ function D$1(n2, t2) {
799
696
  return "function" == typeof t2 ? t2(n2) : t2;
800
697
  }
801
698
  function g(n2, t2) {
802
- for (var e2 in t2)
803
- n2[e2] = t2[e2];
699
+ for (var e2 in t2) n2[e2] = t2[e2];
804
700
  return n2;
805
701
  }
806
702
  function E(n2, t2) {
807
- for (var e2 in n2)
808
- if ("__source" !== e2 && !(e2 in t2))
809
- return true;
810
- for (var r2 in t2)
811
- if ("__source" !== r2 && n2[r2] !== t2[r2])
812
- return true;
703
+ for (var e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return true;
704
+ for (var r2 in t2) if ("__source" !== r2 && n2[r2] !== t2[r2]) return true;
813
705
  return false;
814
706
  }
815
707
  function C(n2, t2) {
@@ -860,7 +752,7 @@ var T = l$2.__b;
860
752
  l$2.__b = function(n2) {
861
753
  n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), T && T(n2);
862
754
  };
863
- var A = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
755
+ var A = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
864
756
  function D(n2) {
865
757
  function t2(t3) {
866
758
  var e2 = g({}, t3);
@@ -874,15 +766,12 @@ var L = function(n2, t2) {
874
766
  return n2 ? L$1(n2).length : 0;
875
767
  }, only: function(n2) {
876
768
  var t2 = L$1(n2);
877
- if (1 !== t2.length)
878
- throw "Children.only";
769
+ if (1 !== t2.length) throw "Children.only";
879
770
  return t2[0];
880
771
  }, toArray: L$1 }, U = l$2.__e;
881
772
  l$2.__e = function(n2, t2, e2, r2) {
882
773
  if (n2.then) {
883
- for (var u2, o2 = t2; o2 = o2.__; )
884
- if ((u2 = o2.__c) && u2.__c)
885
- return null == t2.__e && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
774
+ for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return null == t2.__e && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
886
775
  }
887
776
  U(n2, t2, e2, r2);
888
777
  };
@@ -903,8 +792,7 @@ function P() {
903
792
  this.__u = 0, this.o = null, this.__b = null;
904
793
  }
905
794
  function j(n2) {
906
- if (!n2.__)
907
- return null;
795
+ if (!n2.__) return null;
908
796
  var t2 = n2.__.__c;
909
797
  return t2 && t2.__a && t2.__a(n2);
910
798
  }
@@ -915,10 +803,8 @@ function z(n2) {
915
803
  n3 && (o2 = n3.default || n3), u2 = true;
916
804
  }, function(n3) {
917
805
  r2 = n3, u2 = true;
918
- }), r2)
919
- throw r2;
920
- if (!u2)
921
- throw e2;
806
+ }), r2) throw r2;
807
+ if (!u2) throw e2;
922
808
  return o2 ? _$2(o2, i3) : null;
923
809
  }
924
810
  return i2.displayName = "Lazy", i2.__f = true, i2;
@@ -945,8 +831,7 @@ l$2.unmount = function(n2) {
945
831
  r2.__v.__k[0] = W(n3, n3.__c.__P, n3.__c.__O);
946
832
  }
947
833
  var t3;
948
- for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); )
949
- t3.__P = l2, t3.forceUpdate();
834
+ for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.__P = l2, t3.forceUpdate();
950
835
  }
951
836
  };
952
837
  r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
@@ -964,14 +849,11 @@ l$2.unmount = function(n2) {
964
849
  return i2 && (i2.__u &= -33), [_$2(k$3, null, e2.__a ? null : n2.children), i2];
965
850
  };
966
851
  var H = function(n2, t2, e2) {
967
- if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size))
968
- for (e2 = n2.i; e2; ) {
969
- for (; e2.length > 3; )
970
- e2.pop()();
971
- if (e2[1] < e2[0])
972
- break;
973
- n2.i = e2 = e2[2];
974
- }
852
+ if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size)) for (e2 = n2.i; e2; ) {
853
+ for (; e2.length > 3; ) e2.pop()();
854
+ if (e2[1] < e2[0]) break;
855
+ n2.i = e2 = e2[2];
856
+ }
975
857
  };
976
858
  function Z(n2) {
977
859
  return this.getChildContext = function() {
@@ -983,8 +865,7 @@ function Y(n2) {
983
865
  if (e2.componentWillUnmount = function() {
984
866
  J$1(null, e2.v), e2.v = null, e2.h = null;
985
867
  }, e2.h && e2.h !== r2 && e2.componentWillUnmount(), !e2.v) {
986
- for (var u2 = e2.__v; null !== u2 && !u2.__m && null !== u2.__; )
987
- u2 = u2.__;
868
+ for (var u2 = e2.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
988
869
  e2.h = r2, e2.v = { nodeType: 1, parentNode: r2, childNodes: [], __k: { __m: u2.__m }, contains: function() {
989
870
  return true;
990
871
  }, namespaceURI: r2.namespaceURI, insertBefore: function(n3, t2) {
@@ -1011,8 +892,7 @@ function $(n2, e2) {
1011
892
  this.i = null, this.l = /* @__PURE__ */ new Map();
1012
893
  var t2 = L$1(n2.children);
1013
894
  n2.revealOrder && "b" === n2.revealOrder[0] && t2.reverse();
1014
- for (var e2 = t2.length; e2--; )
1015
- this.l.set(t2[e2], this.i = [1, 0, this.i]);
895
+ for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
1016
896
  return n2.children;
1017
897
  }, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
1018
898
  var n2 = this;
@@ -1020,8 +900,8 @@ function $(n2, e2) {
1020
900
  H(n2, e2, t2);
1021
901
  });
1022
902
  };
1023
- var q = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = function(n2) {
1024
- return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
903
+ var q = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = function(n2) {
904
+ return ("undefined" != typeof Symbol && "symbol" == typeof /* @__PURE__ */ Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
1025
905
  };
1026
906
  function nn(n2, t2, e2) {
1027
907
  return null == t2.__k && (t2.textContent = ""), J$1(n2, t2), "function" == typeof e2 && e2(), n2 ? n2.__c : null;
@@ -1052,7 +932,7 @@ var ln, cn = { enumerable: false, configurable: true, get: function() {
1052
932
  return this.class;
1053
933
  } }, fn = l$2.vnode;
1054
934
  l$2.vnode = function(n2) {
1055
- "string" == typeof n2.type && function(n3) {
935
+ "string" == typeof n2.type && (function(n3) {
1056
936
  var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = -1 === e2.indexOf("-");
1057
937
  for (var i2 in t2) {
1058
938
  var l2 = t2[i2];
@@ -1066,7 +946,7 @@ l$2.vnode = function(n2) {
1066
946
  })), "select" == e2 && null != u2.defaultValue && (u2.value = L$1(t2.children).forEach(function(n4) {
1067
947
  n4.props.selected = u2.multiple ? -1 != u2.defaultValue.indexOf(n4.props.value) : u2.defaultValue == n4.props.value;
1068
948
  })), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : t2.className && (u2.class = u2.className = t2.className), n3.props = u2;
1069
- }(n2), n2.$$typeof = q, fn && fn(n2);
949
+ })(n2), n2.$$typeof = q, fn && fn(n2);
1070
950
  };
1071
951
  var an = l$2.__r;
1072
952
  l$2.__r = function(n2) {
@@ -1159,15 +1039,12 @@ const $2AODx$react = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
1159
1039
  function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
1160
1040
  return function handleEvent(event) {
1161
1041
  originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
1162
- if (checkForDefaultPrevented === false || !event.defaultPrevented)
1163
- return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
1042
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
1164
1043
  };
1165
1044
  }
1166
1045
  function $6ed0406888f73fc4$var$setRef(ref, value) {
1167
- if (typeof ref === "function")
1168
- ref(value);
1169
- else if (ref !== null && ref !== void 0)
1170
- ref.current = value;
1046
+ if (typeof ref === "function") ref(value);
1047
+ else if (ref !== null && ref !== void 0) ref.current = value;
1171
1048
  }
1172
1049
  function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
1173
1050
  return (node) => refs.forEach(
@@ -1200,10 +1077,8 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
1200
1077
  function useContext(consumerName, scope) {
1201
1078
  const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
1202
1079
  const context = x$1(Context);
1203
- if (context)
1204
- return context;
1205
- if (defaultContext !== void 0)
1206
- return defaultContext;
1080
+ if (context) return context;
1081
+ if (defaultContext !== void 0) return defaultContext;
1207
1082
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
1208
1083
  }
1209
1084
  Provider.displayName = rootComponentName + "Provider";
@@ -1240,8 +1115,7 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
1240
1115
  }
1241
1116
  function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
1242
1117
  const baseScope = scopes[0];
1243
- if (scopes.length === 1)
1244
- return baseScope;
1118
+ if (scopes.length === 1) return baseScope;
1245
1119
  const createScope1 = () => {
1246
1120
  const scopeHooks = scopes.map(
1247
1121
  (createScope) => ({
@@ -1279,11 +1153,9 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ D((props, forw
1279
1153
  const newElement = slottable.props.children;
1280
1154
  const newChildren = childrenArray.map((child) => {
1281
1155
  if (child === slottable) {
1282
- if (O.count(newElement) > 1)
1283
- return O.only(null);
1156
+ if (O.count(newElement) > 1) return O.only(null);
1284
1157
  return /* @__PURE__ */ mn(newElement) ? newElement.props.children : null;
1285
- } else
1286
- return child;
1158
+ } else return child;
1287
1159
  });
1288
1160
  return /* @__PURE__ */ _$2($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
1289
1161
  ref: forwardedRef
@@ -1296,11 +1168,10 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ D((props, forw
1296
1168
  $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
1297
1169
  const $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ D((props, forwardedRef) => {
1298
1170
  const { children, ...slotProps } = props;
1299
- if (/* @__PURE__ */ mn(children))
1300
- return /* @__PURE__ */ _n(children, {
1301
- ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
1302
- ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
1303
- });
1171
+ if (/* @__PURE__ */ mn(children)) return /* @__PURE__ */ _n(children, {
1172
+ ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
1173
+ ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
1174
+ });
1304
1175
  return O.count(children) > 1 ? O.only(null) : null;
1305
1176
  });
1306
1177
  $5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
@@ -1319,23 +1190,19 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
1319
1190
  const childPropValue = childProps[propName];
1320
1191
  const isHandler = /^on[A-Z]/.test(propName);
1321
1192
  if (isHandler) {
1322
- if (slotPropValue && childPropValue)
1323
- overrideProps[propName] = (...args) => {
1324
- childPropValue(...args);
1325
- slotPropValue(...args);
1326
- };
1327
- else if (slotPropValue)
1328
- overrideProps[propName] = slotPropValue;
1329
- } else if (propName === "style")
1330
- overrideProps[propName] = {
1331
- ...slotPropValue,
1332
- ...childPropValue
1193
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
1194
+ childPropValue(...args);
1195
+ slotPropValue(...args);
1333
1196
  };
1334
- else if (propName === "className")
1335
- overrideProps[propName] = [
1336
- slotPropValue,
1337
- childPropValue
1338
- ].filter(Boolean).join(" ");
1197
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
1198
+ } else if (propName === "style") overrideProps[propName] = {
1199
+ ...slotPropValue,
1200
+ ...childPropValue
1201
+ };
1202
+ else if (propName === "className") overrideProps[propName] = [
1203
+ slotPropValue,
1204
+ childPropValue
1205
+ ].filter(Boolean).join(" ");
1339
1206
  }
1340
1207
  return {
1341
1208
  ...slotProps,
@@ -1365,7 +1232,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
1365
1232
  const { asChild, ...primitiveProps } = props;
1366
1233
  const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
1367
1234
  y(() => {
1368
- window[Symbol.for("radix-ui")] = true;
1235
+ window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
1369
1236
  }, []);
1370
1237
  return /* @__PURE__ */ _$2(Comp, _extends({}, primitiveProps, {
1371
1238
  ref: forwardedRef
@@ -1378,10 +1245,9 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
1378
1245
  };
1379
1246
  }, {});
1380
1247
  function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
1381
- if (target)
1382
- En(
1383
- () => target.dispatchEvent(event)
1384
- );
1248
+ if (target) En(
1249
+ () => target.dispatchEvent(event)
1250
+ );
1385
1251
  }
1386
1252
  function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
1387
1253
  const callbackRef = A$1(callback);
@@ -1400,8 +1266,7 @@ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDoc
1400
1266
  const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
1401
1267
  y(() => {
1402
1268
  const handleKeyDown = (event) => {
1403
- if (event.key === "Escape")
1404
- onEscapeKeyDown(event);
1269
+ if (event.key === "Escape") onEscapeKeyDown(event);
1405
1270
  };
1406
1271
  ownerDocument.addEventListener("keydown", handleKeyDown);
1407
1272
  return () => ownerDocument.removeEventListener("keydown", handleKeyDown);
@@ -1445,12 +1310,10 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
1445
1310
  ].some(
1446
1311
  (branch) => branch.contains(target)
1447
1312
  );
1448
- if (!isPointerEventsEnabled || isPointerDownOnBranch)
1449
- return;
1313
+ if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
1450
1314
  onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
1451
1315
  onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
1452
- if (!event.defaultPrevented)
1453
- onDismiss === null || onDismiss === void 0 || onDismiss();
1316
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
1454
1317
  }, ownerDocument);
1455
1318
  const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event) => {
1456
1319
  const target = event.target;
@@ -1459,17 +1322,14 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
1459
1322
  ].some(
1460
1323
  (branch) => branch.contains(target)
1461
1324
  );
1462
- if (isFocusInBranch)
1463
- return;
1325
+ if (isFocusInBranch) return;
1464
1326
  onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
1465
1327
  onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
1466
- if (!event.defaultPrevented)
1467
- onDismiss === null || onDismiss === void 0 || onDismiss();
1328
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
1468
1329
  }, ownerDocument);
1469
1330
  $addc16e1bbe58fd0$export$3a72a57244d6e765((event) => {
1470
1331
  const isHighestLayer = index2 === context.layers.size - 1;
1471
- if (!isHighestLayer)
1472
- return;
1332
+ if (!isHighestLayer) return;
1473
1333
  onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
1474
1334
  if (!event.defaultPrevented && onDismiss) {
1475
1335
  event.preventDefault();
@@ -1477,8 +1337,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
1477
1337
  }
1478
1338
  }, ownerDocument);
1479
1339
  y(() => {
1480
- if (!node1)
1481
- return;
1340
+ if (!node1) return;
1482
1341
  if (disableOutsidePointerEvents) {
1483
1342
  if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
1484
1343
  $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
@@ -1489,8 +1348,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
1489
1348
  context.layers.add(node1);
1490
1349
  $5cb92bef7577960e$var$dispatchUpdate();
1491
1350
  return () => {
1492
- if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1)
1493
- ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
1351
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
1494
1352
  };
1495
1353
  }, [
1496
1354
  node1,
@@ -1500,8 +1358,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
1500
1358
  ]);
1501
1359
  y(() => {
1502
1360
  return () => {
1503
- if (!node1)
1504
- return;
1361
+ if (!node1) return;
1505
1362
  context.layers.delete(node1);
1506
1363
  context.layersWithOutsidePointerEventsDisabled.delete(node1);
1507
1364
  $5cb92bef7577960e$var$dispatchUpdate();
@@ -1548,8 +1405,7 @@ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, owner
1548
1405
  ownerDocument.addEventListener("click", handleClickRef.current, {
1549
1406
  once: true
1550
1407
  });
1551
- } else
1552
- handleAndDispatchPointerDownOutsideEvent();
1408
+ } else handleAndDispatchPointerDownOutsideEvent();
1553
1409
  } else
1554
1410
  ownerDocument.removeEventListener("click", handleClickRef.current);
1555
1411
  isPointerInsideReactTreeRef.current = false;
@@ -1607,14 +1463,11 @@ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detai
1607
1463
  cancelable: true,
1608
1464
  detail
1609
1465
  });
1610
- if (handler)
1611
- target.addEventListener(name, handler, {
1612
- once: true
1613
- });
1614
- if (discrete)
1615
- $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
1616
- else
1617
- target.dispatchEvent(event);
1466
+ if (handler) target.addEventListener(name, handler, {
1467
+ once: true
1468
+ });
1469
+ if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
1470
+ else target.dispatchEvent(event);
1618
1471
  }
1619
1472
  let $3db38b7d1fb3fe6a$var$count = 0;
1620
1473
  function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
@@ -1625,10 +1478,9 @@ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
1625
1478
  document.body.insertAdjacentElement("beforeend", (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());
1626
1479
  $3db38b7d1fb3fe6a$var$count++;
1627
1480
  return () => {
1628
- if ($3db38b7d1fb3fe6a$var$count === 1)
1629
- document.querySelectorAll("[data-radix-focus-guard]").forEach(
1630
- (node) => node.remove()
1631
- );
1481
+ if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll("[data-radix-focus-guard]").forEach(
1482
+ (node) => node.remove()
1483
+ );
1632
1484
  $3db38b7d1fb3fe6a$var$count--;
1633
1485
  };
1634
1486
  }, []);
@@ -1668,41 +1520,31 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
1668
1520
  y(() => {
1669
1521
  if (trapped) {
1670
1522
  let handleFocusIn = function(event) {
1671
- if (focusScope.paused || !container1)
1672
- return;
1523
+ if (focusScope.paused || !container1) return;
1673
1524
  const target = event.target;
1674
- if (container1.contains(target))
1675
- lastFocusedElementRef.current = target;
1676
- else
1677
- $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
1678
- select: true
1679
- });
1525
+ if (container1.contains(target)) lastFocusedElementRef.current = target;
1526
+ else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
1527
+ select: true
1528
+ });
1680
1529
  }, handleFocusOut = function(event) {
1681
- if (focusScope.paused || !container1)
1682
- return;
1530
+ if (focusScope.paused || !container1) return;
1683
1531
  const relatedTarget = event.relatedTarget;
1684
- if (relatedTarget === null)
1685
- return;
1686
- if (!container1.contains(relatedTarget))
1687
- $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
1688
- select: true
1689
- });
1532
+ if (relatedTarget === null) return;
1533
+ if (!container1.contains(relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
1534
+ select: true
1535
+ });
1690
1536
  }, handleMutations = function(mutations) {
1691
1537
  const focusedElement = document.activeElement;
1692
- if (focusedElement !== document.body)
1693
- return;
1694
- for (const mutation of mutations)
1695
- if (mutation.removedNodes.length > 0)
1696
- $d3863c46a17e8a28$var$focus(container1);
1538
+ if (focusedElement !== document.body) return;
1539
+ for (const mutation of mutations) if (mutation.removedNodes.length > 0) $d3863c46a17e8a28$var$focus(container1);
1697
1540
  };
1698
1541
  document.addEventListener("focusin", handleFocusIn);
1699
1542
  document.addEventListener("focusout", handleFocusOut);
1700
1543
  const mutationObserver = new MutationObserver(handleMutations);
1701
- if (container1)
1702
- mutationObserver.observe(container1, {
1703
- childList: true,
1704
- subtree: true
1705
- });
1544
+ if (container1) mutationObserver.observe(container1, {
1545
+ childList: true,
1546
+ subtree: true
1547
+ });
1706
1548
  return () => {
1707
1549
  document.removeEventListener("focusin", handleFocusIn);
1708
1550
  document.removeEventListener("focusout", handleFocusOut);
@@ -1727,8 +1569,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
1727
1569
  $d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {
1728
1570
  select: true
1729
1571
  });
1730
- if (document.activeElement === previouslyFocusedElement)
1731
- $d3863c46a17e8a28$var$focus(container1);
1572
+ if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);
1732
1573
  }
1733
1574
  }
1734
1575
  return () => {
@@ -1737,10 +1578,9 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
1737
1578
  const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);
1738
1579
  container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
1739
1580
  container1.dispatchEvent(unmountEvent);
1740
- if (!unmountEvent.defaultPrevented)
1741
- $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {
1742
- select: true
1743
- });
1581
+ if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {
1582
+ select: true
1583
+ });
1744
1584
  container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
1745
1585
  $d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);
1746
1586
  }, 0);
@@ -1753,10 +1593,8 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
1753
1593
  focusScope
1754
1594
  ]);
1755
1595
  const handleKeyDown = q$1((event) => {
1756
- if (!loop && !trapped)
1757
- return;
1758
- if (focusScope.paused)
1759
- return;
1596
+ if (!loop && !trapped) return;
1597
+ if (focusScope.paused) return;
1760
1598
  const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
1761
1599
  const focusedElement = document.activeElement;
1762
1600
  if (isTabKey && focusedElement) {
@@ -1764,21 +1602,18 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
1764
1602
  const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);
1765
1603
  const hasTabbableElementsInside = first && last;
1766
1604
  if (!hasTabbableElementsInside) {
1767
- if (focusedElement === container)
1768
- event.preventDefault();
1605
+ if (focusedElement === container) event.preventDefault();
1769
1606
  } else {
1770
1607
  if (!event.shiftKey && focusedElement === last) {
1771
1608
  event.preventDefault();
1772
- if (loop)
1773
- $d3863c46a17e8a28$var$focus(first, {
1774
- select: true
1775
- });
1609
+ if (loop) $d3863c46a17e8a28$var$focus(first, {
1610
+ select: true
1611
+ });
1776
1612
  } else if (event.shiftKey && focusedElement === first) {
1777
1613
  event.preventDefault();
1778
- if (loop)
1779
- $d3863c46a17e8a28$var$focus(last, {
1780
- select: true
1781
- });
1614
+ if (loop) $d3863c46a17e8a28$var$focus(last, {
1615
+ select: true
1616
+ });
1782
1617
  }
1783
1618
  }
1784
1619
  }
@@ -1800,8 +1635,7 @@ function $d3863c46a17e8a28$var$focusFirst(candidates, { select = false } = {}) {
1800
1635
  $d3863c46a17e8a28$var$focus(candidate, {
1801
1636
  select
1802
1637
  });
1803
- if (document.activeElement !== previouslyFocusedElement)
1804
- return;
1638
+ if (document.activeElement !== previouslyFocusedElement) return;
1805
1639
  }
1806
1640
  }
1807
1641
  function $d3863c46a17e8a28$var$getTabbableEdges(container) {
@@ -1818,31 +1652,25 @@ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {
1818
1652
  const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
1819
1653
  acceptNode: (node) => {
1820
1654
  const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
1821
- if (node.disabled || node.hidden || isHiddenInput)
1822
- return NodeFilter.FILTER_SKIP;
1655
+ if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
1823
1656
  return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1824
1657
  }
1825
1658
  });
1826
- while (walker.nextNode())
1827
- nodes.push(walker.currentNode);
1659
+ while (walker.nextNode()) nodes.push(walker.currentNode);
1828
1660
  return nodes;
1829
1661
  }
1830
1662
  function $d3863c46a17e8a28$var$findVisible(elements, container) {
1831
1663
  for (const element of elements) {
1832
1664
  if (!$d3863c46a17e8a28$var$isHidden(element, {
1833
1665
  upTo: container
1834
- }))
1835
- return element;
1666
+ })) return element;
1836
1667
  }
1837
1668
  }
1838
1669
  function $d3863c46a17e8a28$var$isHidden(node, { upTo }) {
1839
- if (getComputedStyle(node).visibility === "hidden")
1840
- return true;
1670
+ if (getComputedStyle(node).visibility === "hidden") return true;
1841
1671
  while (node) {
1842
- if (upTo !== void 0 && node === upTo)
1843
- return false;
1844
- if (getComputedStyle(node).display === "none")
1845
- return true;
1672
+ if (upTo !== void 0 && node === upTo) return false;
1673
+ if (getComputedStyle(node).display === "none") return true;
1846
1674
  node = node.parentElement;
1847
1675
  }
1848
1676
  return false;
@@ -1856,8 +1684,7 @@ function $d3863c46a17e8a28$var$focus(element, { select = false } = {}) {
1856
1684
  element.focus({
1857
1685
  preventScroll: true
1858
1686
  });
1859
- if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select)
1860
- element.select();
1687
+ if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();
1861
1688
  }
1862
1689
  }
1863
1690
  const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();
@@ -1866,8 +1693,7 @@ function $d3863c46a17e8a28$var$createFocusScopesStack() {
1866
1693
  return {
1867
1694
  add(focusScope) {
1868
1695
  const activeFocusScope = stack[0];
1869
- if (focusScope !== activeFocusScope)
1870
- activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
1696
+ if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
1871
1697
  stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);
1872
1698
  stack.unshift(focusScope);
1873
1699
  },
@@ -1883,8 +1709,7 @@ function $d3863c46a17e8a28$var$arrayRemove(array, item) {
1883
1709
  ...array
1884
1710
  ];
1885
1711
  const index2 = updatedArray.indexOf(item);
1886
- if (index2 !== -1)
1887
- updatedArray.splice(index2, 1);
1712
+ if (index2 !== -1) updatedArray.splice(index2, 1);
1888
1713
  return updatedArray;
1889
1714
  }
1890
1715
  function $d3863c46a17e8a28$var$removeLinks(items) {
@@ -1899,10 +1724,9 @@ let $1746a345f3d73bb7$var$count = 0;
1899
1724
  function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
1900
1725
  const [id, setId] = d($1746a345f3d73bb7$var$useReactId());
1901
1726
  $9f79659886946c16$export$e5c5a5f917a5871c(() => {
1902
- if (!deterministicId)
1903
- setId(
1904
- (reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
1905
- );
1727
+ setId(
1728
+ (reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
1729
+ );
1906
1730
  }, [
1907
1731
  deterministicId
1908
1732
  ]);
@@ -1976,8 +1800,7 @@ function getSideList(side, isStart, rtl) {
1976
1800
  switch (side) {
1977
1801
  case "top":
1978
1802
  case "bottom":
1979
- if (rtl)
1980
- return isStart ? rlPlacement : lrPlacement;
1803
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
1981
1804
  return isStart ? lrPlacement : rlPlacement;
1982
1805
  case "left":
1983
1806
  case "right":
@@ -3535,8 +3358,7 @@ function deepEqual(a2, b2) {
3535
3358
  if (a2 && b2 && typeof a2 === "object") {
3536
3359
  if (Array.isArray(a2)) {
3537
3360
  length = a2.length;
3538
- if (length !== b2.length)
3539
- return false;
3361
+ if (length !== b2.length) return false;
3540
3362
  for (i2 = length; i2-- !== 0; ) {
3541
3363
  if (!deepEqual(a2[i2], b2[i2])) {
3542
3364
  return false;
@@ -3678,10 +3500,8 @@ function useFloating(options2) {
3678
3500
  };
3679
3501
  }, []);
3680
3502
  index(() => {
3681
- if (referenceEl)
3682
- referenceRef.current = referenceEl;
3683
- if (floatingEl)
3684
- floatingRef.current = floatingEl;
3503
+ if (referenceEl) referenceRef.current = referenceEl;
3504
+ if (floatingEl) floatingRef.current = floatingEl;
3685
3505
  if (referenceEl && floatingEl) {
3686
3506
  if (whileElementsMountedRef.current) {
3687
3507
  return whileElementsMountedRef.current(referenceEl, floatingEl, update);
@@ -3792,6 +3612,19 @@ const arrow = (options2, deps) => ({
3792
3612
  ...arrow$1(options2),
3793
3613
  options: [options2, deps]
3794
3614
  });
3615
+ const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /* @__PURE__ */ D((props, forwardedRef) => {
3616
+ const { children, width = 10, height = 5, ...arrowProps } = props;
3617
+ return /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends({}, arrowProps, {
3618
+ ref: forwardedRef,
3619
+ width,
3620
+ height,
3621
+ viewBox: "0 0 30 10",
3622
+ preserveAspectRatio: "none"
3623
+ }), props.asChild ? children : /* @__PURE__ */ _$2("polygon", {
3624
+ points: "0,0 30,0 15,10"
3625
+ }));
3626
+ });
3627
+ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
3795
3628
  function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
3796
3629
  const [size2, setSize] = d(void 0);
3797
3630
  $9f79659886946c16$export$e5c5a5f917a5871c(() => {
@@ -3801,10 +3634,8 @@ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
3801
3634
  height: element.offsetHeight
3802
3635
  });
3803
3636
  const resizeObserver = new ResizeObserver((entries) => {
3804
- if (!Array.isArray(entries))
3805
- return;
3806
- if (!entries.length)
3807
- return;
3637
+ if (!Array.isArray(entries)) return;
3638
+ if (!entries.length) return;
3808
3639
  const entry = entries[0];
3809
3640
  let width;
3810
3641
  let height;
@@ -3946,8 +3777,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
3946
3777
  const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
3947
3778
  const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
3948
3779
  $9f79659886946c16$export$e5c5a5f917a5871c(() => {
3949
- if (isPositioned)
3950
- handlePlaced === null || handlePlaced === void 0 || handlePlaced();
3780
+ if (isPositioned) handlePlaced === null || handlePlaced === void 0 || handlePlaced();
3951
3781
  }, [
3952
3782
  isPositioned,
3953
3783
  handlePlaced
@@ -3957,8 +3787,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
3957
3787
  const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;
3958
3788
  const [contentZIndex, setContentZIndex] = d();
3959
3789
  $9f79659886946c16$export$e5c5a5f917a5871c(() => {
3960
- if (content)
3961
- setContentZIndex(window.getComputedStyle(content).zIndex);
3790
+ if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
3962
3791
  }, [
3963
3792
  content
3964
3793
  ]);
@@ -3999,6 +3828,55 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
3999
3828
  }
4000
3829
  }))));
4001
3830
  });
3831
+ const $cf1ac5d9fe0e8206$var$ARROW_NAME = "PopperArrow";
3832
+ const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {
3833
+ top: "bottom",
3834
+ right: "left",
3835
+ bottom: "top",
3836
+ left: "right"
3837
+ };
3838
+ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /* @__PURE__ */ D(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd02(props, forwardedRef) {
3839
+ const { __scopePopper, ...arrowProps } = props;
3840
+ const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);
3841
+ const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];
3842
+ return (
3843
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3844
+ // doesn't report size as we'd expect on SVG elements.
3845
+ // it reports their bounding box which is effectively the largest path inside the SVG.
3846
+ /* @__PURE__ */ _$2("span", {
3847
+ ref: contentContext.onArrowChange,
3848
+ style: {
3849
+ position: "absolute",
3850
+ left: contentContext.arrowX,
3851
+ top: contentContext.arrowY,
3852
+ [baseSide]: 0,
3853
+ transformOrigin: {
3854
+ top: "",
3855
+ right: "0 0",
3856
+ bottom: "center 0",
3857
+ left: "100% 0"
3858
+ }[contentContext.placedSide],
3859
+ transform: {
3860
+ top: "translateY(100%)",
3861
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
3862
+ bottom: `rotate(180deg)`,
3863
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
3864
+ }[contentContext.placedSide],
3865
+ visibility: contentContext.shouldHideArrow ? "hidden" : void 0
3866
+ }
3867
+ }, /* @__PURE__ */ _$2($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends({}, arrowProps, {
3868
+ ref: forwardedRef,
3869
+ style: {
3870
+ ...arrowProps.style,
3871
+ // ensures the element can be measured correctly (mostly for if SVG)
3872
+ display: "block"
3873
+ }
3874
+ })))
3875
+ );
3876
+ });
3877
+ /* @__PURE__ */ Object.assign($cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0, {
3878
+ displayName: $cf1ac5d9fe0e8206$var$ARROW_NAME
3879
+ });
4002
3880
  function $cf1ac5d9fe0e8206$var$isNotNull(value) {
4003
3881
  return value !== null;
4004
3882
  }
@@ -4111,16 +3989,13 @@ function $921a889cee6df7e8$var$usePresence(present) {
4111
3989
  if (hasPresentChanged) {
4112
3990
  const prevAnimationName = prevAnimationNameRef.current;
4113
3991
  const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
4114
- if (present)
4115
- send("MOUNT");
3992
+ if (present) send("MOUNT");
4116
3993
  else if (currentAnimationName === "none" || (styles === null || styles === void 0 ? void 0 : styles.display) === "none")
4117
3994
  send("UNMOUNT");
4118
3995
  else {
4119
3996
  const isAnimating = prevAnimationName !== currentAnimationName;
4120
- if (wasPresent && isAnimating)
4121
- send("ANIMATION_OUT");
4122
- else
4123
- send("UNMOUNT");
3997
+ if (wasPresent && isAnimating) send("ANIMATION_OUT");
3998
+ else send("UNMOUNT");
4124
3999
  }
4125
4000
  prevPresentRef.current = present;
4126
4001
  }
@@ -4162,8 +4037,7 @@ function $921a889cee6df7e8$var$usePresence(present) {
4162
4037
  "unmountSuspended"
4163
4038
  ].includes(state),
4164
4039
  ref: q$1((node) => {
4165
- if (node)
4166
- stylesRef.current = getComputedStyle(node);
4040
+ if (node) stylesRef.current = getComputedStyle(node);
4167
4041
  setNode(node);
4168
4042
  }, [])
4169
4043
  };
@@ -4184,10 +4058,8 @@ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop, defaultProp, onChange
4184
4058
  if (isControlled) {
4185
4059
  const setter = nextValue;
4186
4060
  const value = typeof nextValue === "function" ? setter(prop) : nextValue;
4187
- if (value !== prop)
4188
- handleChange(value);
4189
- } else
4190
- setUncontrolledProp(nextValue);
4061
+ if (value !== prop) handleChange(value);
4062
+ } else setUncontrolledProp(nextValue);
4191
4063
  }, [
4192
4064
  isControlled,
4193
4065
  prop,
@@ -4326,7 +4198,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
4326
4198
  markerName = "data-aria-hidden";
4327
4199
  }
4328
4200
  var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
4329
- var activeParentNode = parentNode || getDefaultParent(originalTarget);
4201
+ var activeParentNode = getDefaultParent(originalTarget);
4330
4202
  if (!activeParentNode) {
4331
4203
  return function() {
4332
4204
  return null;
@@ -4339,9 +4211,7 @@ var __assign = function() {
4339
4211
  __assign = Object.assign || function __assign2(t2) {
4340
4212
  for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
4341
4213
  s2 = arguments[i2];
4342
- for (var p2 in s2)
4343
- if (Object.prototype.hasOwnProperty.call(s2, p2))
4344
- t2[p2] = s2[p2];
4214
+ for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t2[p2] = s2[p2];
4345
4215
  }
4346
4216
  return t2;
4347
4217
  };
@@ -4349,9 +4219,8 @@ var __assign = function() {
4349
4219
  };
4350
4220
  function __rest(s2, e2) {
4351
4221
  var t2 = {};
4352
- for (var p2 in s2)
4353
- if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
4354
- t2[p2] = s2[p2];
4222
+ for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
4223
+ t2[p2] = s2[p2];
4355
4224
  if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
4356
4225
  for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) {
4357
4226
  if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
@@ -4360,14 +4229,12 @@ function __rest(s2, e2) {
4360
4229
  return t2;
4361
4230
  }
4362
4231
  function __spreadArray(to, from, pack) {
4363
- if (pack || arguments.length === 2)
4364
- for (var i2 = 0, l2 = from.length, ar; i2 < l2; i2++) {
4365
- if (ar || !(i2 in from)) {
4366
- if (!ar)
4367
- ar = Array.prototype.slice.call(from, 0, i2);
4368
- ar[i2] = from[i2];
4369
- }
4232
+ if (pack || arguments.length === 2) for (var i2 = 0, l2 = from.length, ar; i2 < l2; i2++) {
4233
+ if (ar || !(i2 in from)) {
4234
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i2);
4235
+ ar[i2] = from[i2];
4370
4236
  }
4237
+ }
4371
4238
  return to.concat(ar || Array.prototype.slice.call(from));
4372
4239
  }
4373
4240
  typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
@@ -4414,7 +4281,7 @@ function useCallbackRef(initialValue, callback) {
4414
4281
  var useIsomorphicLayoutEffect = typeof window !== "undefined" ? _ : y;
4415
4282
  var currentValues = /* @__PURE__ */ new WeakMap();
4416
4283
  function useMergeRefs(refs, defaultValue) {
4417
- var callbackRef = useCallbackRef(defaultValue || null, function(newValue) {
4284
+ var callbackRef = useCallbackRef(null, function(newValue) {
4418
4285
  return refs.forEach(function(ref) {
4419
4286
  return assignRef(ref, newValue);
4420
4287
  });
@@ -4571,11 +4438,7 @@ RemoveScroll.classNames = {
4571
4438
  fullWidth: fullWidthClassName,
4572
4439
  zeroRight: zeroRightClassName
4573
4440
  };
4574
- var currentNonce;
4575
4441
  var getNonce = function() {
4576
- if (currentNonce) {
4577
- return currentNonce;
4578
- }
4579
4442
  if (typeof __webpack_nonce__ !== "undefined") {
4580
4443
  return __webpack_nonce__;
4581
4444
  }
@@ -4815,9 +4678,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
4815
4678
  !targetInLock && target !== document.body || // self content
4816
4679
  targetInLock && (endTarget.contains(target) || endTarget === target)
4817
4680
  );
4818
- if (isDeltaPositive && (noOverscroll && availableScroll === 0 || !noOverscroll && delta > availableScroll)) {
4681
+ if (isDeltaPositive && (availableScroll === 0 || false)) {
4819
4682
  shouldCancelScroll = true;
4820
- } else if (!isDeltaPositive && (noOverscroll && availableScrollTop === 0 || !noOverscroll && -delta > availableScrollTop)) {
4683
+ } else if (!isDeltaPositive && (availableScrollTop === 0 || false)) {
4821
4684
  shouldCancelScroll = true;
4822
4685
  }
4823
4686
  return shouldCancelScroll;
@@ -4901,7 +4764,7 @@ function RemoveScrollSideCar(props) {
4901
4764
  return true;
4902
4765
  }
4903
4766
  var cancelingAxis = activeAxis.current || currentAxis;
4904
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
4767
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
4905
4768
  }, []);
4906
4769
  var shouldPrevent = q$1(function(_event) {
4907
4770
  var event = _event;
@@ -4981,9 +4844,8 @@ var ReactRemoveScroll = D(function(props, ref) {
4981
4844
  return _$2(RemoveScroll, __assign({}, props, { ref, sideCar: SideCar }));
4982
4845
  });
4983
4846
  ReactRemoveScroll.classNames = RemoveScroll.classNames;
4984
- const $am6gm$RemoveScroll = ReactRemoveScroll;
4985
4847
  const $cb5cc270b50c6fcd$var$POPOVER_NAME = "Popover";
4986
- const [$cb5cc270b50c6fcd$var$createPopoverContext, $cb5cc270b50c6fcd$export$c8393c9e73286932] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
4848
+ const [$cb5cc270b50c6fcd$var$createPopoverContext] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
4987
4849
  $cf1ac5d9fe0e8206$export$722aac194ae923
4988
4850
  ]);
4989
4851
  const $cb5cc270b50c6fcd$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
@@ -5081,10 +4943,9 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ D((props, forw
5081
4943
  const isRightClickOutsideRef = A$1(false);
5082
4944
  y(() => {
5083
4945
  const content = contentRef.current;
5084
- if (content)
5085
- return hideOthers(content);
4946
+ if (content) return hideOthers(content);
5086
4947
  }, []);
5087
- return /* @__PURE__ */ _$2($am6gm$RemoveScroll, {
4948
+ return /* @__PURE__ */ _$2(ReactRemoveScroll, {
5088
4949
  as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
5089
4950
  allowPinchZoom: true
5090
4951
  }, /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends({}, props, {
@@ -5094,8 +4955,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ D((props, forw
5094
4955
  onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onCloseAutoFocus, (event) => {
5095
4956
  var _context$triggerRef$c;
5096
4957
  event.preventDefault();
5097
- if (!isRightClickOutsideRef.current)
5098
- (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
4958
+ if (!isRightClickOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
5099
4959
  }),
5100
4960
  onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event) => {
5101
4961
  const originalEvent = event.detail.originalEvent;
@@ -5127,8 +4987,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ D((props, f
5127
4987
  (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
5128
4988
  if (!event.defaultPrevented) {
5129
4989
  var _context$triggerRef$c2;
5130
- if (!hasInteractedOutsideRef.current)
5131
- (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus();
4990
+ if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus();
5132
4991
  event.preventDefault();
5133
4992
  }
5134
4993
  hasInteractedOutsideRef.current = false;
@@ -5139,15 +4998,12 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ D((props, f
5139
4998
  (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
5140
4999
  if (!event.defaultPrevented) {
5141
5000
  hasInteractedOutsideRef.current = true;
5142
- if (event.detail.originalEvent.type === "pointerdown")
5143
- hasPointerDownOutsideRef.current = true;
5001
+ if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.current = true;
5144
5002
  }
5145
5003
  const target = event.target;
5146
5004
  const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);
5147
- if (targetIsTrigger)
5148
- event.preventDefault();
5149
- if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current)
5150
- event.preventDefault();
5005
+ if (targetIsTrigger) event.preventDefault();
5006
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) event.preventDefault();
5151
5007
  }
5152
5008
  }));
5153
5009
  });
@@ -5195,39 +5051,26 @@ const $cb5cc270b50c6fcd$export$602eac185826482c = $cb5cc270b50c6fcd$export$dd679
5195
5051
  const $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2 = $cb5cc270b50c6fcd$export$d7e1f420b25549ff;
5196
5052
  function r$1(e2) {
5197
5053
  var t2, f2, n2 = "";
5198
- if ("string" == typeof e2 || "number" == typeof e2)
5199
- n2 += e2;
5200
- else if ("object" == typeof e2)
5201
- if (Array.isArray(e2)) {
5202
- var o2 = e2.length;
5203
- for (t2 = 0; t2 < o2; t2++)
5204
- e2[t2] && (f2 = r$1(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
5205
- } else
5206
- for (f2 in e2)
5207
- e2[f2] && (n2 && (n2 += " "), n2 += f2);
5054
+ if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
5055
+ else if ("object" == typeof e2) if (Array.isArray(e2)) {
5056
+ var o2 = e2.length;
5057
+ for (t2 = 0; t2 < o2; t2++) e2[t2] && (f2 = r$1(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
5058
+ } else for (f2 in e2) e2[f2] && (n2 && (n2 += " "), n2 += f2);
5208
5059
  return n2;
5209
5060
  }
5210
5061
  function clsx$1() {
5211
- for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++)
5212
- (e2 = arguments[f2]) && (t2 = r$1(e2)) && (n2 && (n2 += " "), n2 += t2);
5062
+ for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++) (e2 = arguments[f2]) && (t2 = r$1(e2)) && (n2 && (n2 += " "), n2 += t2);
5213
5063
  return n2;
5214
5064
  }
5215
5065
  function r(e2) {
5216
5066
  var t2, f2, n2 = "";
5217
- if ("string" == typeof e2 || "number" == typeof e2)
5218
- n2 += e2;
5219
- else if ("object" == typeof e2)
5220
- if (Array.isArray(e2))
5221
- for (t2 = 0; t2 < e2.length; t2++)
5222
- e2[t2] && (f2 = r(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
5223
- else
5224
- for (t2 in e2)
5225
- e2[t2] && (n2 && (n2 += " "), n2 += t2);
5067
+ if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
5068
+ else if ("object" == typeof e2) if (Array.isArray(e2)) for (t2 = 0; t2 < e2.length; t2++) e2[t2] && (f2 = r(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
5069
+ else for (t2 in e2) e2[t2] && (n2 && (n2 += " "), n2 += t2);
5226
5070
  return n2;
5227
5071
  }
5228
5072
  function clsx() {
5229
- for (var e2, t2, f2 = 0, n2 = ""; f2 < arguments.length; )
5230
- (e2 = arguments[f2++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
5073
+ for (var e2, t2, f2 = 0, n2 = ""; f2 < arguments.length; ) (e2 = arguments[f2++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
5231
5074
  return n2;
5232
5075
  }
5233
5076
  const falsyToString = (value) => typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
@@ -5236,18 +5079,12 @@ const defineConfig = (options2) => {
5236
5079
  for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
5237
5080
  inputs[_key] = arguments[_key];
5238
5081
  }
5239
- var ref, ref1;
5240
- if (typeof (options2 === null || options2 === void 0 ? void 0 : (ref = options2.hooks) === null || ref === void 0 ? void 0 : ref["cx:done"]) !== "undefined")
5241
- return options2 === null || options2 === void 0 ? void 0 : options2.hooks["cx:done"](clsx(inputs));
5242
- if (typeof (options2 === null || options2 === void 0 ? void 0 : (ref1 = options2.hooks) === null || ref1 === void 0 ? void 0 : ref1.onComplete) !== "undefined")
5243
- return options2 === null || options2 === void 0 ? void 0 : options2.hooks.onComplete(clsx(inputs));
5244
5082
  return clsx(inputs);
5245
5083
  };
5246
5084
  const cva1 = (config) => {
5247
5085
  return (props) => {
5248
5086
  var ref;
5249
- if ((config === null || config === void 0 ? void 0 : config.variants) == null)
5250
- return cx1(config === null || config === void 0 ? void 0 : config.base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
5087
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx1(config === null || config === void 0 ? void 0 : config.base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
5251
5088
  const { variants, defaultVariants } = config;
5252
5089
  const getVariantClassNames = Object.keys(variants).map((variant) => {
5253
5090
  const variantProp = props === null || props === void 0 ? void 0 : props[variant];
@@ -5284,7 +5121,7 @@ const defineConfig = (options2) => {
5284
5121
  };
5285
5122
  return { compose: compose1, cva: cva1, cx: cx1 };
5286
5123
  };
5287
- const { compose, cva, cx } = defineConfig();
5124
+ const { cva } = defineConfig();
5288
5125
  const FEEDBACK_WIDGET_ID = "inploi-feedback";
5289
5126
  var FALLBACK_PLURAL_ORDER = ["other", "few", "many", "two", "one", "zero"];
5290
5127
  var createTranslateFunction = ({
@@ -5627,11 +5464,9 @@ const options = [
5627
5464
  ];
5628
5465
  const submitWithMetaEnter = (e2) => {
5629
5466
  const isSubmitCombo = e2.key === "Enter" && e2.metaKey;
5630
- if (!isSubmitCombo)
5631
- return;
5467
+ if (!isSubmitCombo) return;
5632
5468
  const form = e2.currentTarget.form;
5633
- if (!form)
5634
- return;
5469
+ if (!form) return;
5635
5470
  form.requestSubmit();
5636
5471
  };
5637
5472
  const Label = () => {
@@ -5651,8 +5486,7 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
5651
5486
  const held = A$1(params.score);
5652
5487
  held.current = params.score;
5653
5488
  y(() => {
5654
- if (params.score !== void 0)
5655
- setScore(params.score);
5489
+ if (params.score !== void 0) setScore(params.score);
5656
5490
  }, [params.score]);
5657
5491
  const [open, setOpen] = d();
5658
5492
  return /* @__PURE__ */ u$1(TranslationProvider, { locale: params.locale, terms: params.terms, children: /* @__PURE__ */ u$1("div", { role: "group", "aria-labelledby": `${id}-label`, class: variants, children: [
@@ -5662,10 +5496,8 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
5662
5496
  {
5663
5497
  open: open === option.value,
5664
5498
  onOpenChange: (next) => {
5665
- if (next)
5666
- setOpen(option.value);
5667
- else
5668
- setOpen((current) => current === option.value ? void 0 : current);
5499
+ if (next) setOpen(option.value);
5500
+ else setOpen((current) => current === option.value ? void 0 : current);
5669
5501
  },
5670
5502
  children: [
5671
5503
  /* @__PURE__ */ u$1(
@@ -5686,7 +5518,7 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
5686
5518
  return;
5687
5519
  }
5688
5520
  (_b = params.onScore) == null ? void 0 : _b.call(params, newVal);
5689
- analytics.log({ event: "FEEDBACK", properties: { key: params.key, score: newVal } }).then(
5521
+ analytics.log({ event: "FEEDBACK", properties: { ...params.source, key: params.key, score: newVal } }).then(
5690
5522
  () => {
5691
5523
  var _a2;
5692
5524
  return (_a2 = params.onRate) == null ? void 0 : _a2.call(params, newVal);
@@ -5750,8 +5582,7 @@ const CommentForm = ({
5750
5582
  const [submission, setSubmission] = d({ state: "idle" });
5751
5583
  _(() => {
5752
5584
  var _a;
5753
- if (submission.state === "success" && transferFocus.current)
5754
- (_a = success.current) == null ? void 0 : _a.focus({ preventScroll: true });
5585
+ if (submission.state === "success" && transferFocus.current) (_a = success.current) == null ? void 0 : _a.focus({ preventScroll: true });
5755
5586
  }, [submission.state]);
5756
5587
  if (submission.state === "success") {
5757
5588
  return /* @__PURE__ */ u$1(
@@ -5784,7 +5615,7 @@ const CommentForm = ({
5784
5615
  return;
5785
5616
  }
5786
5617
  Promise.all([
5787
- analytics.log({ event: "FEEDBACK", properties: { key: params.key, comment } }),
5618
+ analytics.log({ event: "FEEDBACK", properties: { ...params.source, key: params.key, comment } }),
5788
5619
  /** Min delay of 500ms so it feels like it’s doing stuff */
5789
5620
  new Promise((resolve) => setTimeout(resolve, 1e3))
5790
5621
  ]).then(() => {
@@ -6829,8 +6660,7 @@ const feedbackPlugin = () => createPlugin(({ apiClient, logger, analytics }) =>
6829
6660
  },
6830
6661
  /** Release components, portals and document listeners when an owning widget unmounts. */
6831
6662
  destroy: () => {
6832
- for (const target of targets)
6833
- J$1(null, target);
6663
+ for (const target of targets) J$1(null, target);
6834
6664
  targets.clear();
6835
6665
  },
6836
6666
  "~brand": "@inploi/plugin-feedback"