@clevertask/scribe 0.0.3 → 0.0.5

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.
@@ -1,11 +1,11 @@
1
- import { a as $r, P as kr, E as Ur, A as Fr, y as qr, B as zr, C as Kr } from "./index-CUP7vhu5.js";
2
- import P, { forwardRef as Gr, useRef as Yr, useState as At, useDebugValue as cr, useEffect as _t, createContext as lr, useContext as dr, useLayoutEffect as Xr } from "react";
3
- import Jr, { flushSync as Qr } from "react-dom";
4
- var k = "top", G = "bottom", Y = "right", U = "left", Rt = "auto", Ue = [k, G, Y, U], Te = "start", He = "end", Zr = "clippingParents", fr = "viewport", je = "popper", en = "reference", Ht = /* @__PURE__ */ Ue.reduce(function(t, e) {
1
+ import { P as Ur, a as Fr, B as kr, y as qr, C as zr, E as Kr, G as Gr } from "./index-DzExyr-e.js";
2
+ import P, { useRef as Yr, useState as At, useDebugValue as lr, useEffect as _t, forwardRef as Xr, useLayoutEffect as Jr, useContext as dr, createContext as fr } from "react";
3
+ import Qr, { flushSync as Zr } from "react-dom";
4
+ var U = "top", G = "bottom", Y = "right", F = "left", Rt = "auto", Fe = [U, G, Y, F], Te = "start", He = "end", en = "clippingParents", pr = "viewport", je = "popper", tn = "reference", Wt = /* @__PURE__ */ Fe.reduce(function(t, e) {
5
5
  return t.concat([e + "-" + Te, e + "-" + He]);
6
- }, []), pr = /* @__PURE__ */ [].concat(Ue, [Rt]).reduce(function(t, e) {
6
+ }, []), vr = /* @__PURE__ */ [].concat(Fe, [Rt]).reduce(function(t, e) {
7
7
  return t.concat([e, e + "-" + Te, e + "-" + He]);
8
- }, []), tn = "beforeRead", rn = "read", nn = "afterRead", on = "beforeMain", an = "main", sn = "afterMain", un = "beforeWrite", cn = "write", ln = "afterWrite", dn = [tn, rn, nn, on, an, sn, un, cn, ln];
8
+ }, []), rn = "beforeRead", nn = "read", on = "afterRead", an = "beforeMain", sn = "main", un = "afterMain", cn = "beforeWrite", ln = "write", dn = "afterWrite", fn = [rn, nn, on, an, sn, un, cn, ln, dn];
9
9
  function re(t) {
10
10
  return t ? (t.nodeName || "").toLowerCase() : null;
11
11
  }
@@ -32,17 +32,17 @@ function Lt(t) {
32
32
  var e = q(t).ShadowRoot;
33
33
  return t instanceof e || t instanceof ShadowRoot;
34
34
  }
35
- function fn(t) {
35
+ function pn(t) {
36
36
  var e = t.state;
37
37
  Object.keys(e.elements).forEach(function(r) {
38
38
  var n = e.styles[r] || {}, i = e.attributes[r] || {}, a = e.elements[r];
39
- !K(a) || !re(a) || (Object.assign(a.style, n), Object.keys(i).forEach(function(d) {
40
- var u = i[d];
41
- u === !1 ? a.removeAttribute(d) : a.setAttribute(d, u === !0 ? "" : u);
39
+ !K(a) || !re(a) || (Object.assign(a.style, n), Object.keys(i).forEach(function(c) {
40
+ var u = i[c];
41
+ u === !1 ? a.removeAttribute(c) : a.setAttribute(c, u === !0 ? "" : u);
42
42
  }));
43
43
  });
44
44
  }
45
- function pn(t) {
45
+ function vn(t) {
46
46
  var e = t.state, r = {
47
47
  popper: {
48
48
  position: e.options.strategy,
@@ -57,7 +57,7 @@ function pn(t) {
57
57
  };
58
58
  return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
59
59
  Object.keys(e.elements).forEach(function(n) {
60
- var i = e.elements[n], a = e.attributes[n] || {}, d = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), u = d.reduce(function(s, p) {
60
+ var i = e.elements[n], a = e.attributes[n] || {}, c = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), u = c.reduce(function(s, p) {
61
61
  return s[p] = "", s;
62
62
  }, {});
63
63
  !K(i) || !re(i) || (Object.assign(i.style, u), Object.keys(a).forEach(function(s) {
@@ -66,12 +66,12 @@ function pn(t) {
66
66
  });
67
67
  };
68
68
  }
69
- const vr = {
69
+ const hr = {
70
70
  name: "applyStyles",
71
71
  enabled: !0,
72
72
  phase: "write",
73
- fn,
74
- effect: pn,
73
+ fn: pn,
74
+ effect: vn,
75
75
  requires: ["computeStyles"]
76
76
  };
77
77
  function te(t) {
@@ -84,23 +84,23 @@ function Et() {
84
84
  return e.brand + "/" + e.version;
85
85
  }).join(" ") : navigator.userAgent;
86
86
  }
87
- function hr() {
87
+ function mr() {
88
88
  return !/^((?!chrome|android).)*safari/i.test(Et());
89
89
  }
90
90
  function Ae(t, e, r) {
91
91
  e === void 0 && (e = !1), r === void 0 && (r = !1);
92
92
  var n = t.getBoundingClientRect(), i = 1, a = 1;
93
93
  e && K(t) && (i = t.offsetWidth > 0 && Ce(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && Ce(n.height) / t.offsetHeight || 1);
94
- var d = ge(t) ? q(t) : window, u = d.visualViewport, s = !hr() && r, p = (n.left + (s && u ? u.offsetLeft : 0)) / i, l = (n.top + (s && u ? u.offsetTop : 0)) / a, v = n.width / i, y = n.height / a;
94
+ var c = ge(t) ? q(t) : window, u = c.visualViewport, s = !mr() && r, p = (n.left + (s && u ? u.offsetLeft : 0)) / i, d = (n.top + (s && u ? u.offsetTop : 0)) / a, v = n.width / i, y = n.height / a;
95
95
  return {
96
96
  width: v,
97
97
  height: y,
98
- top: l,
98
+ top: d,
99
99
  right: p + v,
100
- bottom: l + y,
100
+ bottom: d + y,
101
101
  left: p,
102
102
  x: p,
103
- y: l
103
+ y: d
104
104
  };
105
105
  }
106
106
  function Mt(t) {
@@ -112,7 +112,7 @@ function Mt(t) {
112
112
  height: n
113
113
  };
114
114
  }
115
- function mr(t, e) {
115
+ function yr(t, e) {
116
116
  var r = e.getRootNode && e.getRootNode();
117
117
  if (t.contains(e))
118
118
  return !0;
@@ -129,7 +129,7 @@ function mr(t, e) {
129
129
  function ue(t) {
130
130
  return q(t).getComputedStyle(t);
131
131
  }
132
- function vn(t) {
132
+ function hn(t) {
133
133
  return ["table", "td", "th"].indexOf(re(t)) >= 0;
134
134
  }
135
135
  function de(t) {
@@ -150,11 +150,11 @@ function ut(t) {
150
150
  de(t)
151
151
  );
152
152
  }
153
- function Wt(t) {
153
+ function $t(t) {
154
154
  return !K(t) || // https://github.com/popperjs/popper-core/issues/837
155
155
  ue(t).position === "fixed" ? null : t.offsetParent;
156
156
  }
157
- function hn(t) {
157
+ function mn(t) {
158
158
  var e = /firefox/i.test(Et()), r = /Trident/i.test(Et());
159
159
  if (r && K(t)) {
160
160
  var n = ue(t);
@@ -170,10 +170,10 @@ function hn(t) {
170
170
  }
171
171
  return null;
172
172
  }
173
- function Fe(t) {
174
- for (var e = q(t), r = Wt(t); r && vn(r) && ue(r).position === "static"; )
175
- r = Wt(r);
176
- return r && (re(r) === "html" || re(r) === "body" && ue(r).position === "static") ? e : r || hn(t) || e;
173
+ function ke(t) {
174
+ for (var e = q(t), r = $t(t); r && hn(r) && ue(r).position === "static"; )
175
+ r = $t(r);
176
+ return r && (re(r) === "html" || re(r) === "body" && ue(r).position === "static") ? e : r || mn(t) || e;
177
177
  }
178
178
  function Nt(t) {
179
179
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -181,11 +181,11 @@ function Nt(t) {
181
181
  function Be(t, e, r) {
182
182
  return ye(t, at(e, r));
183
183
  }
184
- function mn(t, e, r) {
184
+ function yn(t, e, r) {
185
185
  var n = Be(t, e, r);
186
186
  return n > r ? r : n;
187
187
  }
188
- function yr() {
188
+ function gr() {
189
189
  return {
190
190
  top: 0,
191
191
  right: 0,
@@ -193,57 +193,57 @@ function yr() {
193
193
  left: 0
194
194
  };
195
195
  }
196
- function gr(t) {
197
- return Object.assign({}, yr(), t);
196
+ function br(t) {
197
+ return Object.assign({}, gr(), t);
198
198
  }
199
- function br(t, e) {
199
+ function Er(t, e) {
200
200
  return e.reduce(function(r, n) {
201
201
  return r[n] = t, r;
202
202
  }, {});
203
203
  }
204
- var yn = function(e, r) {
204
+ var gn = function(e, r) {
205
205
  return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
206
206
  placement: r.placement
207
- })) : e, gr(typeof e != "number" ? e : br(e, Ue));
207
+ })) : e, br(typeof e != "number" ? e : Er(e, Fe));
208
208
  };
209
- function gn(t) {
210
- var e, r = t.state, n = t.name, i = t.options, a = r.elements.arrow, d = r.modifiersData.popperOffsets, u = te(r.placement), s = Nt(u), p = [U, Y].indexOf(u) >= 0, l = p ? "height" : "width";
211
- if (!(!a || !d)) {
212
- var v = yn(i.padding, r), y = Mt(a), h = s === "y" ? k : U, b = s === "y" ? G : Y, m = r.rects.reference[l] + r.rects.reference[s] - d[s] - r.rects.popper[l], E = d[s] - r.rects.reference[s], D = Fe(a), T = D ? s === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, w = m / 2 - E / 2, o = v[h], O = T - y[l] - v[b], f = T / 2 - y[l] / 2 + w, x = Be(o, f, O), _ = s;
209
+ function bn(t) {
210
+ var e, r = t.state, n = t.name, i = t.options, a = r.elements.arrow, c = r.modifiersData.popperOffsets, u = te(r.placement), s = Nt(u), p = [F, Y].indexOf(u) >= 0, d = p ? "height" : "width";
211
+ if (!(!a || !c)) {
212
+ var v = gn(i.padding, r), y = Mt(a), h = s === "y" ? U : F, b = s === "y" ? G : Y, m = r.rects.reference[d] + r.rects.reference[s] - c[s] - r.rects.popper[d], E = c[s] - r.rects.reference[s], D = ke(a), T = D ? s === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, w = m / 2 - E / 2, o = v[h], O = T - y[d] - v[b], f = T / 2 - y[d] / 2 + w, x = Be(o, f, O), _ = s;
213
213
  r.modifiersData[n] = (e = {}, e[_] = x, e.centerOffset = x - f, e);
214
214
  }
215
215
  }
216
- function bn(t) {
216
+ function En(t) {
217
217
  var e = t.state, r = t.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
218
- i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || mr(e.elements.popper, i) && (e.elements.arrow = i));
218
+ i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || yr(e.elements.popper, i) && (e.elements.arrow = i));
219
219
  }
220
- const En = {
220
+ const wn = {
221
221
  name: "arrow",
222
222
  enabled: !0,
223
223
  phase: "main",
224
- fn: gn,
225
- effect: bn,
224
+ fn: bn,
225
+ effect: En,
226
226
  requires: ["popperOffsets"],
227
227
  requiresIfExists: ["preventOverflow"]
228
228
  };
229
229
  function _e(t) {
230
230
  return t.split("-")[1];
231
231
  }
232
- var wn = {
232
+ var On = {
233
233
  top: "auto",
234
234
  right: "auto",
235
235
  bottom: "auto",
236
236
  left: "auto"
237
237
  };
238
- function On(t, e) {
238
+ function Sn(t, e) {
239
239
  var r = t.x, n = t.y, i = e.devicePixelRatio || 1;
240
240
  return {
241
241
  x: Ce(r * i) / i || 0,
242
242
  y: Ce(n * i) / i || 0
243
243
  };
244
244
  }
245
- function $t(t) {
246
- var e, r = t.popper, n = t.popperRect, i = t.placement, a = t.variation, d = t.offsets, u = t.position, s = t.gpuAcceleration, p = t.adaptive, l = t.roundOffsets, v = t.isFixed, y = d.x, h = y === void 0 ? 0 : y, b = d.y, m = b === void 0 ? 0 : b, E = typeof l == "function" ? l({
245
+ function Ut(t) {
246
+ var e, r = t.popper, n = t.popperRect, i = t.placement, a = t.variation, c = t.offsets, u = t.position, s = t.gpuAcceleration, p = t.adaptive, d = t.roundOffsets, v = t.isFixed, y = c.x, h = y === void 0 ? 0 : y, b = c.y, m = b === void 0 ? 0 : b, E = typeof d == "function" ? d({
247
247
  x: h,
248
248
  y: m
249
249
  }) : {
@@ -251,10 +251,10 @@ function $t(t) {
251
251
  y: m
252
252
  };
253
253
  h = E.x, m = E.y;
254
- var D = d.hasOwnProperty("x"), T = d.hasOwnProperty("y"), w = U, o = k, O = window;
254
+ var D = c.hasOwnProperty("x"), T = c.hasOwnProperty("y"), w = F, o = U, O = window;
255
255
  if (p) {
256
- var f = Fe(r), x = "clientHeight", _ = "clientWidth";
257
- if (f === q(r) && (f = de(r), ue(f).position !== "static" && u === "absolute" && (x = "scrollHeight", _ = "scrollWidth")), f = f, i === k || (i === U || i === Y) && a === He) {
256
+ var f = ke(r), x = "clientHeight", _ = "clientWidth";
257
+ if (f === q(r) && (f = de(r), ue(f).position !== "static" && u === "absolute" && (x = "scrollHeight", _ = "scrollWidth")), f = f, i === U || (i === F || i === Y) && a === He) {
258
258
  o = G;
259
259
  var C = v && f === O && O.visualViewport ? O.visualViewport.height : (
260
260
  // $FlowFixMe[prop-missing]
@@ -262,7 +262,7 @@ function $t(t) {
262
262
  );
263
263
  m -= C - n.height, m *= s ? 1 : -1;
264
264
  }
265
- if (i === U || (i === k || i === G) && a === He) {
265
+ if (i === F || (i === U || i === G) && a === He) {
266
266
  w = Y;
267
267
  var L = v && f === O && O.visualViewport ? O.visualViewport.width : (
268
268
  // $FlowFixMe[prop-missing]
@@ -273,7 +273,7 @@ function $t(t) {
273
273
  }
274
274
  var V = Object.assign({
275
275
  position: u
276
- }, p && wn), M = l === !0 ? On({
276
+ }, p && On), M = d === !0 ? Sn({
277
277
  x: h,
278
278
  y: m
279
279
  }, q(r)) : {
@@ -286,8 +286,8 @@ function $t(t) {
286
286
  }
287
287
  return Object.assign({}, V, (e = {}, e[o] = T ? m + "px" : "", e[w] = D ? h + "px" : "", e.transform = "", e));
288
288
  }
289
- function Sn(t) {
290
- var e = t.state, r = t.options, n = r.gpuAcceleration, i = n === void 0 ? !0 : n, a = r.adaptive, d = a === void 0 ? !0 : a, u = r.roundOffsets, s = u === void 0 ? !0 : u, p = {
289
+ function xn(t) {
290
+ var e = t.state, r = t.options, n = r.gpuAcceleration, i = n === void 0 ? !0 : n, a = r.adaptive, c = a === void 0 ? !0 : a, u = r.roundOffsets, s = u === void 0 ? !0 : u, p = {
291
291
  placement: te(e.placement),
292
292
  variation: _e(e.placement),
293
293
  popper: e.elements.popper,
@@ -295,12 +295,12 @@ function Sn(t) {
295
295
  gpuAcceleration: i,
296
296
  isFixed: e.options.strategy === "fixed"
297
297
  };
298
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, $t(Object.assign({}, p, {
298
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Ut(Object.assign({}, p, {
299
299
  offsets: e.modifiersData.popperOffsets,
300
300
  position: e.options.strategy,
301
- adaptive: d,
301
+ adaptive: c,
302
302
  roundOffsets: s
303
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, $t(Object.assign({}, p, {
303
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Ut(Object.assign({}, p, {
304
304
  offsets: e.modifiersData.arrow,
305
305
  position: "absolute",
306
306
  adaptive: !1,
@@ -309,36 +309,36 @@ function Sn(t) {
309
309
  "data-popper-placement": e.placement
310
310
  });
311
311
  }
312
- const xn = {
312
+ const Dn = {
313
313
  name: "computeStyles",
314
314
  enabled: !0,
315
315
  phase: "beforeWrite",
316
- fn: Sn,
316
+ fn: xn,
317
317
  data: {}
318
318
  };
319
319
  var nt = {
320
320
  passive: !0
321
321
  };
322
- function Dn(t) {
323
- var e = t.state, r = t.instance, n = t.options, i = n.scroll, a = i === void 0 ? !0 : i, d = n.resize, u = d === void 0 ? !0 : d, s = q(e.elements.popper), p = [].concat(e.scrollParents.reference, e.scrollParents.popper);
324
- return a && p.forEach(function(l) {
325
- l.addEventListener("scroll", r.update, nt);
322
+ function Tn(t) {
323
+ var e = t.state, r = t.instance, n = t.options, i = n.scroll, a = i === void 0 ? !0 : i, c = n.resize, u = c === void 0 ? !0 : c, s = q(e.elements.popper), p = [].concat(e.scrollParents.reference, e.scrollParents.popper);
324
+ return a && p.forEach(function(d) {
325
+ d.addEventListener("scroll", r.update, nt);
326
326
  }), u && s.addEventListener("resize", r.update, nt), function() {
327
- a && p.forEach(function(l) {
328
- l.removeEventListener("scroll", r.update, nt);
327
+ a && p.forEach(function(d) {
328
+ d.removeEventListener("scroll", r.update, nt);
329
329
  }), u && s.removeEventListener("resize", r.update, nt);
330
330
  };
331
331
  }
332
- const Tn = {
332
+ const Cn = {
333
333
  name: "eventListeners",
334
334
  enabled: !0,
335
335
  phase: "write",
336
336
  fn: function() {
337
337
  },
338
- effect: Dn,
338
+ effect: Tn,
339
339
  data: {}
340
340
  };
341
- var Cn = {
341
+ var An = {
342
342
  left: "right",
343
343
  right: "left",
344
344
  bottom: "top",
@@ -346,16 +346,16 @@ var Cn = {
346
346
  };
347
347
  function ot(t) {
348
348
  return t.replace(/left|right|bottom|top/g, function(e) {
349
- return Cn[e];
349
+ return An[e];
350
350
  });
351
351
  }
352
- var An = {
352
+ var _n = {
353
353
  start: "end",
354
354
  end: "start"
355
355
  };
356
- function kt(t) {
356
+ function Ft(t) {
357
357
  return t.replace(/start|end/g, function(e) {
358
- return An[e];
358
+ return _n[e];
359
359
  });
360
360
  }
361
361
  function Vt(t) {
@@ -368,25 +368,25 @@ function Vt(t) {
368
368
  function jt(t) {
369
369
  return Ae(de(t)).left + Vt(t).scrollLeft;
370
370
  }
371
- function _n(t, e) {
372
- var r = q(t), n = de(t), i = r.visualViewport, a = n.clientWidth, d = n.clientHeight, u = 0, s = 0;
371
+ function Rn(t, e) {
372
+ var r = q(t), n = de(t), i = r.visualViewport, a = n.clientWidth, c = n.clientHeight, u = 0, s = 0;
373
373
  if (i) {
374
- a = i.width, d = i.height;
375
- var p = hr();
374
+ a = i.width, c = i.height;
375
+ var p = mr();
376
376
  (p || !p && e === "fixed") && (u = i.offsetLeft, s = i.offsetTop);
377
377
  }
378
378
  return {
379
379
  width: a,
380
- height: d,
380
+ height: c,
381
381
  x: u + jt(t),
382
382
  y: s
383
383
  };
384
384
  }
385
- function Rn(t) {
386
- var e, r = de(t), n = Vt(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = ye(r.scrollWidth, r.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), d = ye(r.scrollHeight, r.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), u = -n.scrollLeft + jt(t), s = -n.scrollTop;
385
+ function Ln(t) {
386
+ var e, r = de(t), n = Vt(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = ye(r.scrollWidth, r.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), c = ye(r.scrollHeight, r.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), u = -n.scrollLeft + jt(t), s = -n.scrollTop;
387
387
  return ue(i || r).direction === "rtl" && (u += ye(r.clientWidth, i ? i.clientWidth : 0) - a), {
388
388
  width: a,
389
- height: d,
389
+ height: c,
390
390
  x: u,
391
391
  y: s
392
392
  };
@@ -395,16 +395,16 @@ function Bt(t) {
395
395
  var e = ue(t), r = e.overflow, n = e.overflowX, i = e.overflowY;
396
396
  return /auto|scroll|overlay|hidden/.test(r + i + n);
397
397
  }
398
- function Er(t) {
399
- return ["html", "body", "#document"].indexOf(re(t)) >= 0 ? t.ownerDocument.body : K(t) && Bt(t) ? t : Er(ut(t));
398
+ function wr(t) {
399
+ return ["html", "body", "#document"].indexOf(re(t)) >= 0 ? t.ownerDocument.body : K(t) && Bt(t) ? t : wr(ut(t));
400
400
  }
401
401
  function Pe(t, e) {
402
402
  var r;
403
403
  e === void 0 && (e = []);
404
- var n = Er(t), i = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = q(n), d = i ? [a].concat(a.visualViewport || [], Bt(n) ? n : []) : n, u = e.concat(d);
404
+ var n = wr(t), i = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = q(n), c = i ? [a].concat(a.visualViewport || [], Bt(n) ? n : []) : n, u = e.concat(c);
405
405
  return i ? u : (
406
406
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
407
- u.concat(Pe(ut(d)))
407
+ u.concat(Pe(ut(c)))
408
408
  );
409
409
  }
410
410
  function wt(t) {
@@ -415,38 +415,38 @@ function wt(t) {
415
415
  bottom: t.y + t.height
416
416
  });
417
417
  }
418
- function Ln(t, e) {
418
+ function Mn(t, e) {
419
419
  var r = Ae(t, !1, e === "fixed");
420
420
  return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
421
421
  }
422
- function Ut(t, e, r) {
423
- return e === fr ? wt(_n(t, r)) : ge(e) ? Ln(e, r) : wt(Rn(de(t)));
422
+ function kt(t, e, r) {
423
+ return e === pr ? wt(Rn(t, r)) : ge(e) ? Mn(e, r) : wt(Ln(de(t)));
424
424
  }
425
- function Mn(t) {
426
- var e = Pe(ut(t)), r = ["absolute", "fixed"].indexOf(ue(t).position) >= 0, n = r && K(t) ? Fe(t) : t;
425
+ function Nn(t) {
426
+ var e = Pe(ut(t)), r = ["absolute", "fixed"].indexOf(ue(t).position) >= 0, n = r && K(t) ? ke(t) : t;
427
427
  return ge(n) ? e.filter(function(i) {
428
- return ge(i) && mr(i, n) && re(i) !== "body";
428
+ return ge(i) && yr(i, n) && re(i) !== "body";
429
429
  }) : [];
430
430
  }
431
- function Nn(t, e, r, n) {
432
- var i = e === "clippingParents" ? Mn(t) : [].concat(e), a = [].concat(i, [r]), d = a[0], u = a.reduce(function(s, p) {
433
- var l = Ut(t, p, n);
434
- return s.top = ye(l.top, s.top), s.right = at(l.right, s.right), s.bottom = at(l.bottom, s.bottom), s.left = ye(l.left, s.left), s;
435
- }, Ut(t, d, n));
431
+ function Vn(t, e, r, n) {
432
+ var i = e === "clippingParents" ? Nn(t) : [].concat(e), a = [].concat(i, [r]), c = a[0], u = a.reduce(function(s, p) {
433
+ var d = kt(t, p, n);
434
+ return s.top = ye(d.top, s.top), s.right = at(d.right, s.right), s.bottom = at(d.bottom, s.bottom), s.left = ye(d.left, s.left), s;
435
+ }, kt(t, c, n));
436
436
  return u.width = u.right - u.left, u.height = u.bottom - u.top, u.x = u.left, u.y = u.top, u;
437
437
  }
438
- function wr(t) {
439
- var e = t.reference, r = t.element, n = t.placement, i = n ? te(n) : null, a = n ? _e(n) : null, d = e.x + e.width / 2 - r.width / 2, u = e.y + e.height / 2 - r.height / 2, s;
438
+ function Or(t) {
439
+ var e = t.reference, r = t.element, n = t.placement, i = n ? te(n) : null, a = n ? _e(n) : null, c = e.x + e.width / 2 - r.width / 2, u = e.y + e.height / 2 - r.height / 2, s;
440
440
  switch (i) {
441
- case k:
441
+ case U:
442
442
  s = {
443
- x: d,
443
+ x: c,
444
444
  y: e.y - r.height
445
445
  };
446
446
  break;
447
447
  case G:
448
448
  s = {
449
- x: d,
449
+ x: c,
450
450
  y: e.y + e.height
451
451
  };
452
452
  break;
@@ -456,7 +456,7 @@ function wr(t) {
456
456
  y: u
457
457
  };
458
458
  break;
459
- case U:
459
+ case F:
460
460
  s = {
461
461
  x: e.x - r.width,
462
462
  y: u
@@ -470,13 +470,13 @@ function wr(t) {
470
470
  }
471
471
  var p = i ? Nt(i) : null;
472
472
  if (p != null) {
473
- var l = p === "y" ? "height" : "width";
473
+ var d = p === "y" ? "height" : "width";
474
474
  switch (a) {
475
475
  case Te:
476
- s[p] = s[p] - (e[l] / 2 - r[l] / 2);
476
+ s[p] = s[p] - (e[d] / 2 - r[d] / 2);
477
477
  break;
478
478
  case He:
479
- s[p] = s[p] + (e[l] / 2 - r[l] / 2);
479
+ s[p] = s[p] + (e[d] / 2 - r[d] / 2);
480
480
  break;
481
481
  }
482
482
  }
@@ -484,10 +484,9 @@ function wr(t) {
484
484
  }
485
485
  function We(t, e) {
486
486
  e === void 0 && (e = {});
487
- var r = e, n = r.placement, i = n === void 0 ? t.placement : n, a = r.strategy, d = a === void 0 ? t.strategy : a, u = r.boundary, s = u === void 0 ? Zr : u, p = r.rootBoundary, l = p === void 0 ? fr : p, v = r.elementContext, y = v === void 0 ? je : v, h = r.altBoundary, b = h === void 0 ? !1 : h, m = r.padding, E = m === void 0 ? 0 : m, D = gr(typeof E != "number" ? E : br(E, Ue)), T = y === je ? en : je, w = t.rects.popper, o = t.elements[b ? T : y], O = Nn(ge(o) ? o : o.contextElement || de(t.elements.popper), s, l, d), f = Ae(t.elements.reference), x = wr({
487
+ var r = e, n = r.placement, i = n === void 0 ? t.placement : n, a = r.strategy, c = a === void 0 ? t.strategy : a, u = r.boundary, s = u === void 0 ? en : u, p = r.rootBoundary, d = p === void 0 ? pr : p, v = r.elementContext, y = v === void 0 ? je : v, h = r.altBoundary, b = h === void 0 ? !1 : h, m = r.padding, E = m === void 0 ? 0 : m, D = br(typeof E != "number" ? E : Er(E, Fe)), T = y === je ? tn : je, w = t.rects.popper, o = t.elements[b ? T : y], O = Vn(ge(o) ? o : o.contextElement || de(t.elements.popper), s, d, c), f = Ae(t.elements.reference), x = Or({
488
488
  reference: f,
489
489
  element: w,
490
- strategy: "absolute",
491
490
  placement: i
492
491
  }), _ = wt(Object.assign({}, w, x)), C = y === je ? _ : f, L = {
493
492
  top: O.top - C.top + D.top,
@@ -498,17 +497,17 @@ function We(t, e) {
498
497
  if (y === je && V) {
499
498
  var M = V[i];
500
499
  Object.keys(L).forEach(function(N) {
501
- var I = [Y, G].indexOf(N) >= 0 ? 1 : -1, W = [k, G].indexOf(N) >= 0 ? "y" : "x";
500
+ var I = [Y, G].indexOf(N) >= 0 ? 1 : -1, W = [U, G].indexOf(N) >= 0 ? "y" : "x";
502
501
  L[N] += M[W] * I;
503
502
  });
504
503
  }
505
504
  return L;
506
505
  }
507
- function Vn(t, e) {
506
+ function jn(t, e) {
508
507
  e === void 0 && (e = {});
509
- var r = e, n = r.placement, i = r.boundary, a = r.rootBoundary, d = r.padding, u = r.flipVariations, s = r.allowedAutoPlacements, p = s === void 0 ? pr : s, l = _e(n), v = l ? u ? Ht : Ht.filter(function(b) {
510
- return _e(b) === l;
511
- }) : Ue, y = v.filter(function(b) {
508
+ var r = e, n = r.placement, i = r.boundary, a = r.rootBoundary, c = r.padding, u = r.flipVariations, s = r.allowedAutoPlacements, p = s === void 0 ? vr : s, d = _e(n), v = d ? u ? Wt : Wt.filter(function(b) {
509
+ return _e(b) === d;
510
+ }) : Fe, y = v.filter(function(b) {
512
511
  return p.indexOf(b) >= 0;
513
512
  });
514
513
  y.length === 0 && (y = v);
@@ -517,39 +516,39 @@ function Vn(t, e) {
517
516
  placement: m,
518
517
  boundary: i,
519
518
  rootBoundary: a,
520
- padding: d
519
+ padding: c
521
520
  })[te(m)], b;
522
521
  }, {});
523
522
  return Object.keys(h).sort(function(b, m) {
524
523
  return h[b] - h[m];
525
524
  });
526
525
  }
527
- function jn(t) {
526
+ function Bn(t) {
528
527
  if (te(t) === Rt)
529
528
  return [];
530
529
  var e = ot(t);
531
- return [kt(t), e, kt(e)];
530
+ return [Ft(t), e, Ft(e)];
532
531
  }
533
- function Bn(t) {
532
+ function Pn(t) {
534
533
  var e = t.state, r = t.options, n = t.name;
535
534
  if (!e.modifiersData[n]._skip) {
536
- for (var i = r.mainAxis, a = i === void 0 ? !0 : i, d = r.altAxis, u = d === void 0 ? !0 : d, s = r.fallbackPlacements, p = r.padding, l = r.boundary, v = r.rootBoundary, y = r.altBoundary, h = r.flipVariations, b = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, E = e.options.placement, D = te(E), T = D === E, w = s || (T || !b ? [ot(E)] : jn(E)), o = [E].concat(w).reduce(function(ne, X) {
537
- return ne.concat(te(X) === Rt ? Vn(e, {
535
+ for (var i = r.mainAxis, a = i === void 0 ? !0 : i, c = r.altAxis, u = c === void 0 ? !0 : c, s = r.fallbackPlacements, p = r.padding, d = r.boundary, v = r.rootBoundary, y = r.altBoundary, h = r.flipVariations, b = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, E = e.options.placement, D = te(E), T = D === E, w = s || (T || !b ? [ot(E)] : Bn(E)), o = [E].concat(w).reduce(function(ne, X) {
536
+ return ne.concat(te(X) === Rt ? jn(e, {
538
537
  placement: X,
539
- boundary: l,
538
+ boundary: d,
540
539
  rootBoundary: v,
541
540
  padding: p,
542
541
  flipVariations: b,
543
542
  allowedAutoPlacements: m
544
543
  }) : X);
545
544
  }, []), O = e.rects.reference, f = e.rects.popper, x = /* @__PURE__ */ new Map(), _ = !0, C = o[0], L = 0; L < o.length; L++) {
546
- var V = o[L], M = te(V), N = _e(V) === Te, I = [k, G].indexOf(M) >= 0, W = I ? "width" : "height", j = We(e, {
545
+ var V = o[L], M = te(V), N = _e(V) === Te, I = [U, G].indexOf(M) >= 0, W = I ? "width" : "height", j = We(e, {
547
546
  placement: V,
548
- boundary: l,
547
+ boundary: d,
549
548
  rootBoundary: v,
550
549
  altBoundary: y,
551
550
  padding: p
552
- }), B = I ? N ? Y : U : N ? G : k;
551
+ }), B = I ? N ? Y : F : N ? G : U;
553
552
  O[W] > f[W] && (B = ot(B));
554
553
  var H = ot(B), J = [];
555
554
  if (a && J.push(j[M] <= 0), u && J.push(j[B] <= 0, j[H] <= 0), J.every(function(ne) {
@@ -578,17 +577,17 @@ function Bn(t) {
578
577
  e.placement !== C && (e.modifiersData[n]._skip = !0, e.placement = C, e.reset = !0);
579
578
  }
580
579
  }
581
- const Pn = {
580
+ const In = {
582
581
  name: "flip",
583
582
  enabled: !0,
584
583
  phase: "main",
585
- fn: Bn,
584
+ fn: Pn,
586
585
  requiresIfExists: ["offset"],
587
586
  data: {
588
587
  _skip: !1
589
588
  }
590
589
  };
591
- function Ft(t, e, r) {
590
+ function qt(t, e, r) {
592
591
  return r === void 0 && (r = {
593
592
  x: 0,
594
593
  y: 0
@@ -599,85 +598,84 @@ function Ft(t, e, r) {
599
598
  left: t.left - e.width - r.x
600
599
  };
601
600
  }
602
- function qt(t) {
603
- return [k, Y, G, U].some(function(e) {
601
+ function zt(t) {
602
+ return [U, Y, G, F].some(function(e) {
604
603
  return t[e] >= 0;
605
604
  });
606
605
  }
607
- function In(t) {
608
- var e = t.state, r = t.name, n = e.rects.reference, i = e.rects.popper, a = e.modifiersData.preventOverflow, d = We(e, {
606
+ function Hn(t) {
607
+ var e = t.state, r = t.name, n = e.rects.reference, i = e.rects.popper, a = e.modifiersData.preventOverflow, c = We(e, {
609
608
  elementContext: "reference"
610
609
  }), u = We(e, {
611
610
  altBoundary: !0
612
- }), s = Ft(d, n), p = Ft(u, i, a), l = qt(s), v = qt(p);
611
+ }), s = qt(c, n), p = qt(u, i, a), d = zt(s), v = zt(p);
613
612
  e.modifiersData[r] = {
614
613
  referenceClippingOffsets: s,
615
614
  popperEscapeOffsets: p,
616
- isReferenceHidden: l,
615
+ isReferenceHidden: d,
617
616
  hasPopperEscaped: v
618
617
  }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
619
- "data-popper-reference-hidden": l,
618
+ "data-popper-reference-hidden": d,
620
619
  "data-popper-escaped": v
621
620
  });
622
621
  }
623
- const Hn = {
622
+ const Wn = {
624
623
  name: "hide",
625
624
  enabled: !0,
626
625
  phase: "main",
627
626
  requiresIfExists: ["preventOverflow"],
628
- fn: In
627
+ fn: Hn
629
628
  };
630
- function Wn(t, e, r) {
631
- var n = te(t), i = [U, k].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
629
+ function $n(t, e, r) {
630
+ var n = te(t), i = [F, U].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
632
631
  placement: t
633
- })) : r, d = a[0], u = a[1];
634
- return d = d || 0, u = (u || 0) * i, [U, Y].indexOf(n) >= 0 ? {
632
+ })) : r, c = a[0], u = a[1];
633
+ return c = c || 0, u = (u || 0) * i, [F, Y].indexOf(n) >= 0 ? {
635
634
  x: u,
636
- y: d
635
+ y: c
637
636
  } : {
638
- x: d,
637
+ x: c,
639
638
  y: u
640
639
  };
641
640
  }
642
- function $n(t) {
643
- var e = t.state, r = t.options, n = t.name, i = r.offset, a = i === void 0 ? [0, 0] : i, d = pr.reduce(function(l, v) {
644
- return l[v] = Wn(v, e.rects, a), l;
645
- }, {}), u = d[e.placement], s = u.x, p = u.y;
646
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += p), e.modifiersData[n] = d;
641
+ function Un(t) {
642
+ var e = t.state, r = t.options, n = t.name, i = r.offset, a = i === void 0 ? [0, 0] : i, c = vr.reduce(function(d, v) {
643
+ return d[v] = $n(v, e.rects, a), d;
644
+ }, {}), u = c[e.placement], s = u.x, p = u.y;
645
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += p), e.modifiersData[n] = c;
647
646
  }
648
- const kn = {
647
+ const Fn = {
649
648
  name: "offset",
650
649
  enabled: !0,
651
650
  phase: "main",
652
651
  requires: ["popperOffsets"],
653
- fn: $n
652
+ fn: Un
654
653
  };
655
- function Un(t) {
654
+ function kn(t) {
656
655
  var e = t.state, r = t.name;
657
- e.modifiersData[r] = wr({
656
+ e.modifiersData[r] = Or({
658
657
  reference: e.rects.reference,
659
658
  element: e.rects.popper,
660
- strategy: "absolute",
661
659
  placement: e.placement
662
660
  });
663
661
  }
664
- const Fn = {
662
+ const qn = {
665
663
  name: "popperOffsets",
666
664
  enabled: !0,
667
665
  phase: "read",
668
- fn: Un,
666
+ fn: kn,
669
667
  data: {}
670
668
  };
671
- function qn(t) {
669
+ function zn(t) {
672
670
  return t === "x" ? "y" : "x";
673
671
  }
674
- function zn(t) {
675
- var e = t.state, r = t.options, n = t.name, i = r.mainAxis, a = i === void 0 ? !0 : i, d = r.altAxis, u = d === void 0 ? !1 : d, s = r.boundary, p = r.rootBoundary, l = r.altBoundary, v = r.padding, y = r.tether, h = y === void 0 ? !0 : y, b = r.tetherOffset, m = b === void 0 ? 0 : b, E = We(e, {
672
+ function Kn(t) {
673
+ var e = t.state, r = t.options, n = t.name, i = r.mainAxis, a = i === void 0 ? !0 : i, c = r.altAxis, u = c === void 0 ? !1 : c, s = r.boundary, p = r.rootBoundary, d = r.altBoundary, v = r.padding, y = r.tether, h = y === void 0 ? !0 : y, b = r.tetherOffset, m = b === void 0 ? 0 : b, E = We(e, {
676
674
  boundary: s,
677
675
  rootBoundary: p,
678
676
  padding: v,
679
- altBoundary: l
680
- }), D = te(e.placement), T = _e(e.placement), w = !T, o = Nt(D), O = qn(o), f = e.modifiersData.popperOffsets, x = e.rects.reference, _ = e.rects.popper, C = typeof m == "function" ? m(Object.assign({}, e.rects, {
677
+ altBoundary: d
678
+ }), D = te(e.placement), T = _e(e.placement), w = !T, o = Nt(D), O = zn(o), f = e.modifiersData.popperOffsets, x = e.rects.reference, _ = e.rects.popper, C = typeof m == "function" ? m(Object.assign({}, e.rects, {
681
679
  placement: e.placement
682
680
  })) : m, L = typeof C == "number" ? {
683
681
  mainAxis: C,
@@ -691,42 +689,42 @@ function zn(t) {
691
689
  };
692
690
  if (f) {
693
691
  if (a) {
694
- var N, I = o === "y" ? k : U, W = o === "y" ? G : Y, j = o === "y" ? "height" : "width", B = f[o], H = B + E[I], J = B - E[W], Q = h ? -_[j] / 2 : 0, fe = T === Te ? x[j] : _[j], Z = T === Te ? -_[j] : -x[j], pe = e.elements.arrow, ne = h && pe ? Mt(pe) : {
692
+ var N, I = o === "y" ? U : F, W = o === "y" ? G : Y, j = o === "y" ? "height" : "width", B = f[o], H = B + E[I], J = B - E[W], Q = h ? -_[j] / 2 : 0, fe = T === Te ? x[j] : _[j], Z = T === Te ? -_[j] : -x[j], pe = e.elements.arrow, ne = h && pe ? Mt(pe) : {
695
693
  width: 0,
696
694
  height: 0
697
- }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : yr(), ie = X[I], be = X[W], oe = Be(0, x[j], ne[j]), Ee = w ? x[j] / 2 - Q - oe - ie - L.mainAxis : fe - oe - ie - L.mainAxis, ce = w ? -x[j] / 2 + Q + oe + be + L.mainAxis : Z + oe + be + L.mainAxis, we = e.elements.arrow && Fe(e.elements.arrow), ze = we ? o === "y" ? we.clientTop || 0 : we.clientLeft || 0 : 0, Re = (N = V == null ? void 0 : V[o]) != null ? N : 0, Ke = B + Ee - Re - ze, Ge = B + ce - Re, Le = Be(h ? at(H, Ke) : H, B, h ? ye(J, Ge) : J);
695
+ }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gr(), ie = X[I], be = X[W], oe = Be(0, x[j], ne[j]), Ee = w ? x[j] / 2 - Q - oe - ie - L.mainAxis : fe - oe - ie - L.mainAxis, ce = w ? -x[j] / 2 + Q + oe + be + L.mainAxis : Z + oe + be + L.mainAxis, we = e.elements.arrow && ke(e.elements.arrow), ze = we ? o === "y" ? we.clientTop || 0 : we.clientLeft || 0 : 0, Re = (N = V == null ? void 0 : V[o]) != null ? N : 0, Ke = B + Ee - Re - ze, Ge = B + ce - Re, Le = Be(h ? at(H, Ke) : H, B, h ? ye(J, Ge) : J);
698
696
  f[o] = Le, M[o] = Le - B;
699
697
  }
700
698
  if (u) {
701
- var Me, Ye = o === "x" ? k : U, Xe = o === "x" ? G : Y, ae = f[O], le = O === "y" ? "height" : "width", Ne = ae + E[Ye], ve = ae - E[Xe], Ve = [k, U].indexOf(D) !== -1, Je = (Me = V == null ? void 0 : V[O]) != null ? Me : 0, Qe = Ve ? Ne : ae - x[le] - _[le] - Je + L.altAxis, Ze = Ve ? ae + x[le] + _[le] - Je - L.altAxis : ve, et = h && Ve ? mn(Qe, ae, Ze) : Be(h ? Qe : Ne, ae, h ? Ze : ve);
699
+ var Me, Ye = o === "x" ? U : F, Xe = o === "x" ? G : Y, ae = f[O], le = O === "y" ? "height" : "width", Ne = ae + E[Ye], ve = ae - E[Xe], Ve = [U, F].indexOf(D) !== -1, Je = (Me = V == null ? void 0 : V[O]) != null ? Me : 0, Qe = Ve ? Ne : ae - x[le] - _[le] - Je + L.altAxis, Ze = Ve ? ae + x[le] + _[le] - Je - L.altAxis : ve, et = h && Ve ? yn(Qe, ae, Ze) : Be(h ? Qe : Ne, ae, h ? Ze : ve);
702
700
  f[O] = et, M[O] = et - ae;
703
701
  }
704
702
  e.modifiersData[n] = M;
705
703
  }
706
704
  }
707
- const Kn = {
705
+ const Gn = {
708
706
  name: "preventOverflow",
709
707
  enabled: !0,
710
708
  phase: "main",
711
- fn: zn,
709
+ fn: Kn,
712
710
  requiresIfExists: ["offset"]
713
711
  };
714
- function Gn(t) {
712
+ function Yn(t) {
715
713
  return {
716
714
  scrollLeft: t.scrollLeft,
717
715
  scrollTop: t.scrollTop
718
716
  };
719
717
  }
720
- function Yn(t) {
721
- return t === q(t) || !K(t) ? Vt(t) : Gn(t);
722
- }
723
718
  function Xn(t) {
719
+ return t === q(t) || !K(t) ? Vt(t) : Yn(t);
720
+ }
721
+ function Jn(t) {
724
722
  var e = t.getBoundingClientRect(), r = Ce(e.width) / t.offsetWidth || 1, n = Ce(e.height) / t.offsetHeight || 1;
725
723
  return r !== 1 || n !== 1;
726
724
  }
727
- function Jn(t, e, r) {
725
+ function Qn(t, e, r) {
728
726
  r === void 0 && (r = !1);
729
- var n = K(e), i = K(e) && Xn(e), a = de(e), d = Ae(t, i, r), u = {
727
+ var n = K(e), i = K(e) && Jn(e), a = de(e), c = Ae(t, i, r), u = {
730
728
  scrollLeft: 0,
731
729
  scrollTop: 0
732
730
  }, s = {
@@ -734,22 +732,22 @@ function Jn(t, e, r) {
734
732
  y: 0
735
733
  };
736
734
  return (n || !n && !r) && ((re(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
737
- Bt(a)) && (u = Yn(e)), K(e) ? (s = Ae(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = jt(a))), {
738
- x: d.left + u.scrollLeft - s.x,
739
- y: d.top + u.scrollTop - s.y,
740
- width: d.width,
741
- height: d.height
735
+ Bt(a)) && (u = Xn(e)), K(e) ? (s = Ae(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = jt(a))), {
736
+ x: c.left + u.scrollLeft - s.x,
737
+ y: c.top + u.scrollTop - s.y,
738
+ width: c.width,
739
+ height: c.height
742
740
  };
743
741
  }
744
- function Qn(t) {
742
+ function Zn(t) {
745
743
  var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
746
744
  t.forEach(function(a) {
747
745
  e.set(a.name, a);
748
746
  });
749
747
  function i(a) {
750
748
  r.add(a.name);
751
- var d = [].concat(a.requires || [], a.requiresIfExists || []);
752
- d.forEach(function(u) {
749
+ var c = [].concat(a.requires || [], a.requiresIfExists || []);
750
+ c.forEach(function(u) {
753
751
  if (!r.has(u)) {
754
752
  var s = e.get(u);
755
753
  s && i(s);
@@ -760,15 +758,15 @@ function Qn(t) {
760
758
  r.has(a.name) || i(a);
761
759
  }), n;
762
760
  }
763
- function Zn(t) {
764
- var e = Qn(t);
765
- return dn.reduce(function(r, n) {
761
+ function ei(t) {
762
+ var e = Zn(t);
763
+ return fn.reduce(function(r, n) {
766
764
  return r.concat(e.filter(function(i) {
767
765
  return i.phase === n;
768
766
  }));
769
767
  }, []);
770
768
  }
771
- function ei(t) {
769
+ function ti(t) {
772
770
  var e;
773
771
  return function() {
774
772
  return e || (e = new Promise(function(r) {
@@ -778,7 +776,7 @@ function ei(t) {
778
776
  })), e;
779
777
  };
780
778
  }
781
- function ti(t) {
779
+ function ri(t) {
782
780
  var e = t.reduce(function(r, n) {
783
781
  var i = r[n.name];
784
782
  return r[n.name] = i ? Object.assign({}, i, n, {
@@ -790,27 +788,27 @@ function ti(t) {
790
788
  return e[r];
791
789
  });
792
790
  }
793
- var zt = {
791
+ var Kt = {
794
792
  placement: "bottom",
795
793
  modifiers: [],
796
794
  strategy: "absolute"
797
795
  };
798
- function Kt() {
796
+ function Gt() {
799
797
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
800
798
  e[r] = arguments[r];
801
799
  return !e.some(function(n) {
802
800
  return !(n && typeof n.getBoundingClientRect == "function");
803
801
  });
804
802
  }
805
- function ri(t) {
803
+ function ni(t) {
806
804
  t === void 0 && (t = {});
807
- var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, i = e.defaultOptions, a = i === void 0 ? zt : i;
805
+ var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, i = e.defaultOptions, a = i === void 0 ? Kt : i;
808
806
  return function(u, s, p) {
809
807
  p === void 0 && (p = a);
810
- var l = {
808
+ var d = {
811
809
  placement: "bottom",
812
810
  orderedModifiers: [],
813
- options: Object.assign({}, zt, a),
811
+ options: Object.assign({}, Kt, a),
814
812
  modifiersData: {},
815
813
  elements: {
816
814
  reference: u,
@@ -819,15 +817,15 @@ function ri(t) {
819
817
  attributes: {},
820
818
  styles: {}
821
819
  }, v = [], y = !1, h = {
822
- state: l,
820
+ state: d,
823
821
  setOptions: function(D) {
824
- var T = typeof D == "function" ? D(l.options) : D;
825
- m(), l.options = Object.assign({}, a, l.options, T), l.scrollParents = {
822
+ var T = typeof D == "function" ? D(d.options) : D;
823
+ m(), d.options = Object.assign({}, a, d.options, T), d.scrollParents = {
826
824
  reference: ge(u) ? Pe(u) : u.contextElement ? Pe(u.contextElement) : [],
827
825
  popper: Pe(s)
828
826
  };
829
- var w = Zn(ti([].concat(n, l.options.modifiers)));
830
- return l.orderedModifiers = w.filter(function(o) {
827
+ var w = ei(ri([].concat(n, d.options.modifiers)));
828
+ return d.orderedModifiers = w.filter(function(o) {
831
829
  return o.enabled;
832
830
  }), b(), h.update();
833
831
  },
@@ -838,52 +836,52 @@ function ri(t) {
838
836
  // prefer the async Popper#update method
839
837
  forceUpdate: function() {
840
838
  if (!y) {
841
- var D = l.elements, T = D.reference, w = D.popper;
842
- if (Kt(T, w)) {
843
- l.rects = {
844
- reference: Jn(T, Fe(w), l.options.strategy === "fixed"),
839
+ var D = d.elements, T = D.reference, w = D.popper;
840
+ if (Gt(T, w)) {
841
+ d.rects = {
842
+ reference: Qn(T, ke(w), d.options.strategy === "fixed"),
845
843
  popper: Mt(w)
846
- }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(L) {
847
- return l.modifiersData[L.name] = Object.assign({}, L.data);
844
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(L) {
845
+ return d.modifiersData[L.name] = Object.assign({}, L.data);
848
846
  });
849
- for (var o = 0; o < l.orderedModifiers.length; o++) {
850
- if (l.reset === !0) {
851
- l.reset = !1, o = -1;
847
+ for (var o = 0; o < d.orderedModifiers.length; o++) {
848
+ if (d.reset === !0) {
849
+ d.reset = !1, o = -1;
852
850
  continue;
853
851
  }
854
- var O = l.orderedModifiers[o], f = O.fn, x = O.options, _ = x === void 0 ? {} : x, C = O.name;
855
- typeof f == "function" && (l = f({
856
- state: l,
852
+ var O = d.orderedModifiers[o], f = O.fn, x = O.options, _ = x === void 0 ? {} : x, C = O.name;
853
+ typeof f == "function" && (d = f({
854
+ state: d,
857
855
  options: _,
858
856
  name: C,
859
857
  instance: h
860
- }) || l);
858
+ }) || d);
861
859
  }
862
860
  }
863
861
  }
864
862
  },
865
863
  // Async and optimistically optimized update – it will not be executed if
866
864
  // not necessary (debounced to run at most once-per-tick)
867
- update: ei(function() {
865
+ update: ti(function() {
868
866
  return new Promise(function(E) {
869
- h.forceUpdate(), E(l);
867
+ h.forceUpdate(), E(d);
870
868
  });
871
869
  }),
872
870
  destroy: function() {
873
871
  m(), y = !0;
874
872
  }
875
873
  };
876
- if (!Kt(u, s))
874
+ if (!Gt(u, s))
877
875
  return h;
878
876
  h.setOptions(p).then(function(E) {
879
877
  !y && p.onFirstUpdate && p.onFirstUpdate(E);
880
878
  });
881
879
  function b() {
882
- l.orderedModifiers.forEach(function(E) {
880
+ d.orderedModifiers.forEach(function(E) {
883
881
  var D = E.name, T = E.options, w = T === void 0 ? {} : T, o = E.effect;
884
882
  if (typeof o == "function") {
885
883
  var O = o({
886
- state: l,
884
+ state: d,
887
885
  name: D,
888
886
  instance: h,
889
887
  options: w
@@ -901,15 +899,15 @@ function ri(t) {
901
899
  return h;
902
900
  };
903
901
  }
904
- var ni = [Tn, Fn, xn, vr, kn, Pn, Kn, En, Hn], ii = /* @__PURE__ */ ri({
905
- defaultModifiers: ni
906
- }), oi = "tippy-box", Or = "tippy-content", ai = "tippy-backdrop", Sr = "tippy-arrow", xr = "tippy-svg-arrow", me = {
902
+ var ii = [Cn, qn, Dn, hr, Fn, In, Gn, wn, Wn], oi = /* @__PURE__ */ ni({
903
+ defaultModifiers: ii
904
+ }), ai = "tippy-box", Sr = "tippy-content", si = "tippy-backdrop", xr = "tippy-arrow", Dr = "tippy-svg-arrow", me = {
907
905
  passive: !0,
908
906
  capture: !0
909
- }, Dr = function() {
907
+ }, Tr = function() {
910
908
  return document.body;
911
909
  };
912
- function si(t, e) {
910
+ function ui(t, e) {
913
911
  return {}.hasOwnProperty.call(t, e);
914
912
  }
915
913
  function ft(t, e, r) {
@@ -923,10 +921,10 @@ function Pt(t, e) {
923
921
  var r = {}.toString.call(t);
924
922
  return r.indexOf("[object") === 0 && r.indexOf(e + "]") > -1;
925
923
  }
926
- function Tr(t, e) {
924
+ function Cr(t, e) {
927
925
  return typeof t == "function" ? t.apply(void 0, e) : t;
928
926
  }
929
- function Gt(t, e) {
927
+ function Yt(t, e) {
930
928
  if (e === 0)
931
929
  return t;
932
930
  var r;
@@ -936,33 +934,33 @@ function Gt(t, e) {
936
934
  }, e);
937
935
  };
938
936
  }
939
- function ui(t, e) {
937
+ function ci(t, e) {
940
938
  var r = Object.assign({}, t);
941
939
  return e.forEach(function(n) {
942
940
  delete r[n];
943
941
  }), r;
944
942
  }
945
- function ci(t) {
943
+ function li(t) {
946
944
  return t.split(/\s+/).filter(Boolean);
947
945
  }
948
946
  function De(t) {
949
947
  return [].concat(t);
950
948
  }
951
- function Yt(t, e) {
949
+ function Xt(t, e) {
952
950
  t.indexOf(e) === -1 && t.push(e);
953
951
  }
954
- function li(t) {
952
+ function di(t) {
955
953
  return t.filter(function(e, r) {
956
954
  return t.indexOf(e) === r;
957
955
  });
958
956
  }
959
- function di(t) {
957
+ function fi(t) {
960
958
  return t.split("-")[0];
961
959
  }
962
960
  function st(t) {
963
961
  return [].slice.call(t);
964
962
  }
965
- function Xt(t) {
963
+ function Jt(t) {
966
964
  return Object.keys(t).reduce(function(e, r) {
967
965
  return t[r] !== void 0 && (e[r] = t[r]), e;
968
966
  }, {});
@@ -975,39 +973,39 @@ function $e(t) {
975
973
  return Pt(t, e);
976
974
  });
977
975
  }
978
- function fi(t) {
976
+ function pi(t) {
979
977
  return Pt(t, "NodeList");
980
978
  }
981
- function pi(t) {
979
+ function vi(t) {
982
980
  return Pt(t, "MouseEvent");
983
981
  }
984
- function vi(t) {
982
+ function hi(t) {
985
983
  return !!(t && t._tippy && t._tippy.reference === t);
986
984
  }
987
- function hi(t) {
988
- return $e(t) ? [t] : fi(t) ? st(t) : Array.isArray(t) ? t : st(document.querySelectorAll(t));
985
+ function mi(t) {
986
+ return $e(t) ? [t] : pi(t) ? st(t) : Array.isArray(t) ? t : st(document.querySelectorAll(t));
989
987
  }
990
988
  function pt(t, e) {
991
989
  t.forEach(function(r) {
992
990
  r && (r.style.transitionDuration = e + "ms");
993
991
  });
994
992
  }
995
- function Jt(t, e) {
993
+ function Qt(t, e) {
996
994
  t.forEach(function(r) {
997
995
  r && r.setAttribute("data-state", e);
998
996
  });
999
997
  }
1000
- function mi(t) {
998
+ function yi(t) {
1001
999
  var e, r = De(t), n = r[0];
1002
1000
  return n != null && (e = n.ownerDocument) != null && e.body ? n.ownerDocument : document;
1003
1001
  }
1004
- function yi(t, e) {
1002
+ function gi(t, e) {
1005
1003
  var r = e.clientX, n = e.clientY;
1006
1004
  return t.every(function(i) {
1007
- var a = i.popperRect, d = i.popperState, u = i.props, s = u.interactiveBorder, p = di(d.placement), l = d.modifiersData.offset;
1008
- if (!l)
1005
+ var a = i.popperRect, c = i.popperState, u = i.props, s = u.interactiveBorder, p = fi(c.placement), d = c.modifiersData.offset;
1006
+ if (!d)
1009
1007
  return !0;
1010
- var v = p === "bottom" ? l.top.y : 0, y = p === "top" ? l.bottom.y : 0, h = p === "right" ? l.left.x : 0, b = p === "left" ? l.right.x : 0, m = a.top - n + v > s, E = n - a.bottom - y > s, D = a.left - r + h > s, T = r - a.right - b > s;
1008
+ var v = p === "bottom" ? d.top.y : 0, y = p === "top" ? d.bottom.y : 0, h = p === "right" ? d.left.x : 0, b = p === "left" ? d.right.x : 0, m = a.top - n + v > s, E = n - a.bottom - y > s, D = a.left - r + h > s, T = r - a.right - b > s;
1011
1009
  return m || E || D || T;
1012
1010
  });
1013
1011
  }
@@ -1017,7 +1015,7 @@ function vt(t, e, r) {
1017
1015
  t[n](i, r);
1018
1016
  });
1019
1017
  }
1020
- function Qt(t, e) {
1018
+ function Zt(t, e) {
1021
1019
  for (var r = e; r; ) {
1022
1020
  var n;
1023
1021
  if (t.contains(r))
@@ -1028,25 +1026,25 @@ function Qt(t, e) {
1028
1026
  }
1029
1027
  var ee = {
1030
1028
  isTouch: !1
1031
- }, Zt = 0;
1032
- function gi() {
1033
- ee.isTouch || (ee.isTouch = !0, window.performance && document.addEventListener("mousemove", Cr));
1029
+ }, er = 0;
1030
+ function bi() {
1031
+ ee.isTouch || (ee.isTouch = !0, window.performance && document.addEventListener("mousemove", Ar));
1034
1032
  }
1035
- function Cr() {
1033
+ function Ar() {
1036
1034
  var t = performance.now();
1037
- t - Zt < 20 && (ee.isTouch = !1, document.removeEventListener("mousemove", Cr)), Zt = t;
1035
+ t - er < 20 && (ee.isTouch = !1, document.removeEventListener("mousemove", Ar)), er = t;
1038
1036
  }
1039
- function bi() {
1037
+ function Ei() {
1040
1038
  var t = document.activeElement;
1041
- if (vi(t)) {
1039
+ if (hi(t)) {
1042
1040
  var e = t._tippy;
1043
1041
  t.blur && !e.state.isVisible && t.blur();
1044
1042
  }
1045
1043
  }
1046
- function Ei() {
1047
- document.addEventListener("touchstart", gi, me), window.addEventListener("blur", bi);
1044
+ function wi() {
1045
+ document.addEventListener("touchstart", bi, me), window.addEventListener("blur", Ei);
1048
1046
  }
1049
- var wi = typeof window < "u" && typeof document < "u", Oi = wi ? (
1047
+ var Oi = typeof window < "u" && typeof document < "u", Si = Oi ? (
1050
1048
  // @ts-ignore
1051
1049
  !!window.msCrypto
1052
1050
  ) : !1;
@@ -1054,22 +1052,22 @@ function xe(t) {
1054
1052
  var e = t === "destroy" ? "n already-" : " ";
1055
1053
  return [t + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1056
1054
  }
1057
- function er(t) {
1055
+ function tr(t) {
1058
1056
  var e = /[ \t]{2,}/g, r = /^[ \t]*/gm;
1059
1057
  return t.replace(e, " ").replace(r, "").trim();
1060
1058
  }
1061
- function Si(t) {
1062
- return er(`
1059
+ function xi(t) {
1060
+ return tr(`
1063
1061
  %ctippy.js
1064
1062
 
1065
- %c` + er(t) + `
1063
+ %c` + tr(t) + `
1066
1064
 
1067
1065
  %c👷‍ This is a development-only message. It will be removed in production.
1068
1066
  `);
1069
1067
  }
1070
- function Ar(t) {
1068
+ function _r(t) {
1071
1069
  return [
1072
- Si(t),
1070
+ xi(t),
1073
1071
  // title
1074
1072
  "color: #00C584; font-size: 1.3em; font-weight: bold;",
1075
1073
  // message
@@ -1078,33 +1076,33 @@ function Ar(t) {
1078
1076
  "color: #a6a095;"
1079
1077
  ];
1080
1078
  }
1081
- var ke;
1082
- process.env.NODE_ENV !== "production" && xi();
1083
- function xi() {
1084
- ke = /* @__PURE__ */ new Set();
1079
+ var Ue;
1080
+ process.env.NODE_ENV !== "production" && Di();
1081
+ function Di() {
1082
+ Ue = /* @__PURE__ */ new Set();
1085
1083
  }
1086
1084
  function se(t, e) {
1087
- if (t && !ke.has(e)) {
1085
+ if (t && !Ue.has(e)) {
1088
1086
  var r;
1089
- ke.add(e), (r = console).warn.apply(r, Ar(e));
1087
+ Ue.add(e), (r = console).warn.apply(r, _r(e));
1090
1088
  }
1091
1089
  }
1092
1090
  function Ot(t, e) {
1093
- if (t && !ke.has(e)) {
1091
+ if (t && !Ue.has(e)) {
1094
1092
  var r;
1095
- ke.add(e), (r = console).error.apply(r, Ar(e));
1093
+ Ue.add(e), (r = console).error.apply(r, _r(e));
1096
1094
  }
1097
1095
  }
1098
- function Di(t) {
1096
+ function Ti(t) {
1099
1097
  var e = !t, r = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
1100
1098
  Ot(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ot(r, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
1101
1099
  }
1102
- var _r = {
1100
+ var Rr = {
1103
1101
  animateFill: !1,
1104
1102
  followCursor: !1,
1105
1103
  inlinePositioning: !1,
1106
1104
  sticky: !1
1107
- }, Ti = {
1105
+ }, Ci = {
1108
1106
  allowHTML: !1,
1109
1107
  animation: "fade",
1110
1108
  arrow: !0,
@@ -1114,8 +1112,8 @@ var _r = {
1114
1112
  role: "tooltip",
1115
1113
  theme: "",
1116
1114
  zIndex: 9999
1117
- }, F = Object.assign({
1118
- appendTo: Dr,
1115
+ }, k = Object.assign({
1116
+ appendTo: Tr,
1119
1117
  aria: {
1120
1118
  content: "auto",
1121
1119
  expanded: "auto"
@@ -1162,76 +1160,76 @@ var _r = {
1162
1160
  touch: !0,
1163
1161
  trigger: "mouseenter focus",
1164
1162
  triggerTarget: null
1165
- }, _r, Ti), Ci = Object.keys(F), Ai = function(e) {
1166
- process.env.NODE_ENV !== "production" && Lr(e, []);
1163
+ }, Rr, Ci), Ai = Object.keys(k), _i = function(e) {
1164
+ process.env.NODE_ENV !== "production" && Mr(e, []);
1167
1165
  var r = Object.keys(e);
1168
1166
  r.forEach(function(n) {
1169
- F[n] = e[n];
1167
+ k[n] = e[n];
1170
1168
  });
1171
1169
  };
1172
- function Rr(t) {
1170
+ function Lr(t) {
1173
1171
  var e = t.plugins || [], r = e.reduce(function(n, i) {
1174
- var a = i.name, d = i.defaultValue;
1172
+ var a = i.name, c = i.defaultValue;
1175
1173
  if (a) {
1176
1174
  var u;
1177
- n[a] = t[a] !== void 0 ? t[a] : (u = F[a]) != null ? u : d;
1175
+ n[a] = t[a] !== void 0 ? t[a] : (u = k[a]) != null ? u : c;
1178
1176
  }
1179
1177
  return n;
1180
1178
  }, {});
1181
1179
  return Object.assign({}, t, r);
1182
1180
  }
1183
- function _i(t, e) {
1184
- var r = e ? Object.keys(Rr(Object.assign({}, F, {
1181
+ function Ri(t, e) {
1182
+ var r = e ? Object.keys(Lr(Object.assign({}, k, {
1185
1183
  plugins: e
1186
- }))) : Ci, n = r.reduce(function(i, a) {
1187
- var d = (t.getAttribute("data-tippy-" + a) || "").trim();
1188
- if (!d)
1184
+ }))) : Ai, n = r.reduce(function(i, a) {
1185
+ var c = (t.getAttribute("data-tippy-" + a) || "").trim();
1186
+ if (!c)
1189
1187
  return i;
1190
1188
  if (a === "content")
1191
- i[a] = d;
1189
+ i[a] = c;
1192
1190
  else
1193
1191
  try {
1194
- i[a] = JSON.parse(d);
1192
+ i[a] = JSON.parse(c);
1195
1193
  } catch {
1196
- i[a] = d;
1194
+ i[a] = c;
1197
1195
  }
1198
1196
  return i;
1199
1197
  }, {});
1200
1198
  return n;
1201
1199
  }
1202
- function tr(t, e) {
1200
+ function rr(t, e) {
1203
1201
  var r = Object.assign({}, e, {
1204
- content: Tr(e.content, [t])
1205
- }, e.ignoreAttributes ? {} : _i(t, e.plugins));
1206
- return r.aria = Object.assign({}, F.aria, r.aria), r.aria = {
1202
+ content: Cr(e.content, [t])
1203
+ }, e.ignoreAttributes ? {} : Ri(t, e.plugins));
1204
+ return r.aria = Object.assign({}, k.aria, r.aria), r.aria = {
1207
1205
  expanded: r.aria.expanded === "auto" ? e.interactive : r.aria.expanded,
1208
1206
  content: r.aria.content === "auto" ? e.interactive ? null : "describedby" : r.aria.content
1209
1207
  }, r;
1210
1208
  }
1211
- function Lr(t, e) {
1209
+ function Mr(t, e) {
1212
1210
  t === void 0 && (t = {}), e === void 0 && (e = []);
1213
1211
  var r = Object.keys(t);
1214
1212
  r.forEach(function(n) {
1215
- var i = ui(F, Object.keys(_r)), a = !si(i, n);
1216
- a && (a = e.filter(function(d) {
1217
- return d.name === n;
1213
+ var i = ci(k, Object.keys(Rr)), a = !ui(i, n);
1214
+ a && (a = e.filter(function(c) {
1215
+ return c.name === n;
1218
1216
  }).length === 0), se(a, ["`" + n + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
1219
1217
 
1220
1218
  `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1221
1219
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1222
1220
  });
1223
1221
  }
1224
- var Ri = function() {
1222
+ var Li = function() {
1225
1223
  return "innerHTML";
1226
1224
  };
1227
1225
  function St(t, e) {
1228
- t[Ri()] = e;
1226
+ t[Li()] = e;
1229
1227
  }
1230
- function rr(t) {
1228
+ function nr(t) {
1231
1229
  var e = Ie();
1232
- return t === !0 ? e.className = Sr : (e.className = xr, $e(t) ? e.appendChild(t) : St(e, t)), e;
1230
+ return t === !0 ? e.className = xr : (e.className = Dr, $e(t) ? e.appendChild(t) : St(e, t)), e;
1233
1231
  }
1234
- function nr(t, e) {
1232
+ function ir(t, e) {
1235
1233
  $e(e.content) ? (St(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? St(t, e.content) : t.textContent = e.content);
1236
1234
  }
1237
1235
  function xt(t) {
@@ -1239,34 +1237,34 @@ function xt(t) {
1239
1237
  return {
1240
1238
  box: e,
1241
1239
  content: r.find(function(n) {
1242
- return n.classList.contains(Or);
1240
+ return n.classList.contains(Sr);
1243
1241
  }),
1244
1242
  arrow: r.find(function(n) {
1245
- return n.classList.contains(Sr) || n.classList.contains(xr);
1243
+ return n.classList.contains(xr) || n.classList.contains(Dr);
1246
1244
  }),
1247
1245
  backdrop: r.find(function(n) {
1248
- return n.classList.contains(ai);
1246
+ return n.classList.contains(si);
1249
1247
  })
1250
1248
  };
1251
1249
  }
1252
- function Mr(t) {
1250
+ function Nr(t) {
1253
1251
  var e = Ie(), r = Ie();
1254
- r.className = oi, r.setAttribute("data-state", "hidden"), r.setAttribute("tabindex", "-1");
1252
+ r.className = ai, r.setAttribute("data-state", "hidden"), r.setAttribute("tabindex", "-1");
1255
1253
  var n = Ie();
1256
- n.className = Or, n.setAttribute("data-state", "hidden"), nr(n, t.props), e.appendChild(r), r.appendChild(n), i(t.props, t.props);
1257
- function i(a, d) {
1258
- var u = xt(e), s = u.box, p = u.content, l = u.arrow;
1259
- d.theme ? s.setAttribute("data-theme", d.theme) : s.removeAttribute("data-theme"), typeof d.animation == "string" ? s.setAttribute("data-animation", d.animation) : s.removeAttribute("data-animation"), d.inertia ? s.setAttribute("data-inertia", "") : s.removeAttribute("data-inertia"), s.style.maxWidth = typeof d.maxWidth == "number" ? d.maxWidth + "px" : d.maxWidth, d.role ? s.setAttribute("role", d.role) : s.removeAttribute("role"), (a.content !== d.content || a.allowHTML !== d.allowHTML) && nr(p, t.props), d.arrow ? l ? a.arrow !== d.arrow && (s.removeChild(l), s.appendChild(rr(d.arrow))) : s.appendChild(rr(d.arrow)) : l && s.removeChild(l);
1254
+ n.className = Sr, n.setAttribute("data-state", "hidden"), ir(n, t.props), e.appendChild(r), r.appendChild(n), i(t.props, t.props);
1255
+ function i(a, c) {
1256
+ var u = xt(e), s = u.box, p = u.content, d = u.arrow;
1257
+ c.theme ? s.setAttribute("data-theme", c.theme) : s.removeAttribute("data-theme"), typeof c.animation == "string" ? s.setAttribute("data-animation", c.animation) : s.removeAttribute("data-animation"), c.inertia ? s.setAttribute("data-inertia", "") : s.removeAttribute("data-inertia"), s.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? s.setAttribute("role", c.role) : s.removeAttribute("role"), (a.content !== c.content || a.allowHTML !== c.allowHTML) && ir(p, t.props), c.arrow ? d ? a.arrow !== c.arrow && (s.removeChild(d), s.appendChild(nr(c.arrow))) : s.appendChild(nr(c.arrow)) : d && s.removeChild(d);
1260
1258
  }
1261
1259
  return {
1262
1260
  popper: e,
1263
1261
  onUpdate: i
1264
1262
  };
1265
1263
  }
1266
- Mr.$$tippy = !0;
1267
- var Li = 1, it = [], ht = [];
1268
- function Mi(t, e) {
1269
- var r = tr(t, Object.assign({}, F, Rr(Xt(e)))), n, i, a, d = !1, u = !1, s = !1, p = !1, l, v, y, h = [], b = Gt(Ke, r.interactiveDebounce), m, E = Li++, D = null, T = li(r.plugins), w = {
1264
+ Nr.$$tippy = !0;
1265
+ var Mi = 1, it = [], ht = [];
1266
+ function Ni(t, e) {
1267
+ var r = rr(t, Object.assign({}, k, Lr(Jt(e)))), n, i, a, c = !1, u = !1, s = !1, p = !1, d, v, y, h = [], b = Yt(Ke, r.interactiveDebounce), m, E = Mi++, D = null, T = di(r.plugins), w = {
1270
1268
  // Is the instance currently enabled?
1271
1269
  isEnabled: !0,
1272
1270
  // Is the tippy currently showing and not transitioning out?
@@ -1290,20 +1288,20 @@ function Mi(t, e) {
1290
1288
  clearDelayTimeouts: Qe,
1291
1289
  setProps: Ze,
1292
1290
  setContent: et,
1293
- show: jr,
1294
- hide: Br,
1295
- hideWithInteractivity: Pr,
1291
+ show: Br,
1292
+ hide: Pr,
1293
+ hideWithInteractivity: Ir,
1296
1294
  enable: Ve,
1297
1295
  disable: Je,
1298
- unmount: Ir,
1299
- destroy: Hr
1296
+ unmount: Hr,
1297
+ destroy: Wr
1300
1298
  };
1301
1299
  if (!r.render)
1302
1300
  return process.env.NODE_ENV !== "production" && Ot(!0, "render() function has not been supplied."), o;
1303
1301
  var O = r.render(o), f = O.popper, x = O.onUpdate;
1304
1302
  f.setAttribute("data-tippy-root", ""), f.id = "tippy-" + o.id, o.popper = f, t._tippy = o, f._tippy = o;
1305
- var _ = T.map(function(c) {
1306
- return c.fn(o);
1303
+ var _ = T.map(function(l) {
1304
+ return l.fn(o);
1307
1305
  }), C = t.hasAttribute("aria-expanded");
1308
1306
  return we(), Q(), B(), H("onCreate", [o]), r.showOnCreate && Ne(), f.addEventListener("mouseenter", function() {
1309
1307
  o.props.interactive && o.state.isVisible && o.clearDelayTimeouts();
@@ -1311,44 +1309,44 @@ function Mi(t, e) {
1311
1309
  o.props.interactive && o.props.trigger.indexOf("mouseenter") >= 0 && I().addEventListener("mousemove", b);
1312
1310
  }), o;
1313
1311
  function L() {
1314
- var c = o.props.touch;
1315
- return Array.isArray(c) ? c : [c, 0];
1312
+ var l = o.props.touch;
1313
+ return Array.isArray(l) ? l : [l, 0];
1316
1314
  }
1317
1315
  function V() {
1318
1316
  return L()[0] === "hold";
1319
1317
  }
1320
1318
  function M() {
1321
- var c;
1322
- return !!((c = o.props.render) != null && c.$$tippy);
1319
+ var l;
1320
+ return !!((l = o.props.render) != null && l.$$tippy);
1323
1321
  }
1324
1322
  function N() {
1325
1323
  return m || t;
1326
1324
  }
1327
1325
  function I() {
1328
- var c = N().parentNode;
1329
- return c ? mi(c) : document;
1326
+ var l = N().parentNode;
1327
+ return l ? yi(l) : document;
1330
1328
  }
1331
1329
  function W() {
1332
1330
  return xt(f);
1333
1331
  }
1334
- function j(c) {
1335
- return o.state.isMounted && !o.state.isVisible || ee.isTouch || l && l.type === "focus" ? 0 : ft(o.props.delay, c ? 0 : 1, F.delay);
1332
+ function j(l) {
1333
+ return o.state.isMounted && !o.state.isVisible || ee.isTouch || d && d.type === "focus" ? 0 : ft(o.props.delay, l ? 0 : 1, k.delay);
1336
1334
  }
1337
- function B(c) {
1338
- c === void 0 && (c = !1), f.style.pointerEvents = o.props.interactive && !c ? "" : "none", f.style.zIndex = "" + o.props.zIndex;
1335
+ function B(l) {
1336
+ l === void 0 && (l = !1), f.style.pointerEvents = o.props.interactive && !l ? "" : "none", f.style.zIndex = "" + o.props.zIndex;
1339
1337
  }
1340
- function H(c, g, S) {
1338
+ function H(l, g, S) {
1341
1339
  if (S === void 0 && (S = !0), _.forEach(function(A) {
1342
- A[c] && A[c].apply(A, g);
1340
+ A[l] && A[l].apply(A, g);
1343
1341
  }), S) {
1344
1342
  var R;
1345
- (R = o.props)[c].apply(R, g);
1343
+ (R = o.props)[l].apply(R, g);
1346
1344
  }
1347
1345
  }
1348
1346
  function J() {
1349
- var c = o.props.aria;
1350
- if (c.content) {
1351
- var g = "aria-" + c.content, S = f.id, R = De(o.props.triggerTarget || t);
1347
+ var l = o.props.aria;
1348
+ if (l.content) {
1349
+ var g = "aria-" + l.content, S = f.id, R = De(o.props.triggerTarget || t);
1352
1350
  R.forEach(function(A) {
1353
1351
  var $ = A.getAttribute(g);
1354
1352
  if (o.state.isVisible)
@@ -1362,28 +1360,28 @@ function Mi(t, e) {
1362
1360
  }
1363
1361
  function Q() {
1364
1362
  if (!(C || !o.props.aria.expanded)) {
1365
- var c = De(o.props.triggerTarget || t);
1366
- c.forEach(function(g) {
1363
+ var l = De(o.props.triggerTarget || t);
1364
+ l.forEach(function(g) {
1367
1365
  o.props.interactive ? g.setAttribute("aria-expanded", o.state.isVisible && g === N() ? "true" : "false") : g.removeAttribute("aria-expanded");
1368
1366
  });
1369
1367
  }
1370
1368
  }
1371
1369
  function fe() {
1372
- I().removeEventListener("mousemove", b), it = it.filter(function(c) {
1373
- return c !== b;
1370
+ I().removeEventListener("mousemove", b), it = it.filter(function(l) {
1371
+ return l !== b;
1374
1372
  });
1375
1373
  }
1376
- function Z(c) {
1377
- if (!(ee.isTouch && (s || c.type === "mousedown"))) {
1378
- var g = c.composedPath && c.composedPath()[0] || c.target;
1379
- if (!(o.props.interactive && Qt(f, g))) {
1374
+ function Z(l) {
1375
+ if (!(ee.isTouch && (s || l.type === "mousedown"))) {
1376
+ var g = l.composedPath && l.composedPath()[0] || l.target;
1377
+ if (!(o.props.interactive && Zt(f, g))) {
1380
1378
  if (De(o.props.triggerTarget || t).some(function(S) {
1381
- return Qt(S, g);
1379
+ return Zt(S, g);
1382
1380
  })) {
1383
1381
  if (ee.isTouch || o.state.isVisible && o.props.trigger.indexOf("click") >= 0)
1384
1382
  return;
1385
1383
  } else
1386
- H("onClickOutside", [o, c]);
1384
+ H("onClickOutside", [o, l]);
1387
1385
  o.props.hideOnClick === !0 && (o.clearDelayTimeouts(), o.hide(), u = !0, setTimeout(function() {
1388
1386
  u = !1;
1389
1387
  }), o.state.isMounted || ie());
@@ -1397,37 +1395,37 @@ function Mi(t, e) {
1397
1395
  s = !1;
1398
1396
  }
1399
1397
  function X() {
1400
- var c = I();
1401
- c.addEventListener("mousedown", Z, !0), c.addEventListener("touchend", Z, me), c.addEventListener("touchstart", ne, me), c.addEventListener("touchmove", pe, me);
1398
+ var l = I();
1399
+ l.addEventListener("mousedown", Z, !0), l.addEventListener("touchend", Z, me), l.addEventListener("touchstart", ne, me), l.addEventListener("touchmove", pe, me);
1402
1400
  }
1403
1401
  function ie() {
1404
- var c = I();
1405
- c.removeEventListener("mousedown", Z, !0), c.removeEventListener("touchend", Z, me), c.removeEventListener("touchstart", ne, me), c.removeEventListener("touchmove", pe, me);
1402
+ var l = I();
1403
+ l.removeEventListener("mousedown", Z, !0), l.removeEventListener("touchend", Z, me), l.removeEventListener("touchstart", ne, me), l.removeEventListener("touchmove", pe, me);
1406
1404
  }
1407
- function be(c, g) {
1408
- Ee(c, function() {
1405
+ function be(l, g) {
1406
+ Ee(l, function() {
1409
1407
  !o.state.isVisible && f.parentNode && f.parentNode.contains(f) && g();
1410
1408
  });
1411
1409
  }
1412
- function oe(c, g) {
1413
- Ee(c, g);
1410
+ function oe(l, g) {
1411
+ Ee(l, g);
1414
1412
  }
1415
- function Ee(c, g) {
1413
+ function Ee(l, g) {
1416
1414
  var S = W().box;
1417
1415
  function R(A) {
1418
1416
  A.target === S && (vt(S, "remove", R), g());
1419
1417
  }
1420
- if (c === 0)
1418
+ if (l === 0)
1421
1419
  return g();
1422
1420
  vt(S, "remove", v), vt(S, "add", R), v = R;
1423
1421
  }
1424
- function ce(c, g, S) {
1422
+ function ce(l, g, S) {
1425
1423
  S === void 0 && (S = !1);
1426
1424
  var R = De(o.props.triggerTarget || t);
1427
1425
  R.forEach(function(A) {
1428
- A.addEventListener(c, g, S), h.push({
1426
+ A.addEventListener(l, g, S), h.push({
1429
1427
  node: A,
1430
- eventType: c,
1428
+ eventType: l,
1431
1429
  handler: g,
1432
1430
  options: S
1433
1431
  });
@@ -1438,14 +1436,14 @@ function Mi(t, e) {
1438
1436
  passive: !0
1439
1437
  }), ce("touchend", Ge, {
1440
1438
  passive: !0
1441
- })), ci(o.props.trigger).forEach(function(c) {
1442
- if (c !== "manual")
1443
- switch (ce(c, Re), c) {
1439
+ })), li(o.props.trigger).forEach(function(l) {
1440
+ if (l !== "manual")
1441
+ switch (ce(l, Re), l) {
1444
1442
  case "mouseenter":
1445
1443
  ce("mouseleave", Ge);
1446
1444
  break;
1447
1445
  case "focus":
1448
- ce(Oi ? "focusout" : "blur", Le);
1446
+ ce(Si ? "focusout" : "blur", Le);
1449
1447
  break;
1450
1448
  case "focusin":
1451
1449
  ce("focusout", Le);
@@ -1454,23 +1452,23 @@ function Mi(t, e) {
1454
1452
  });
1455
1453
  }
1456
1454
  function ze() {
1457
- h.forEach(function(c) {
1458
- var g = c.node, S = c.eventType, R = c.handler, A = c.options;
1455
+ h.forEach(function(l) {
1456
+ var g = l.node, S = l.eventType, R = l.handler, A = l.options;
1459
1457
  g.removeEventListener(S, R, A);
1460
1458
  }), h = [];
1461
1459
  }
1462
- function Re(c) {
1460
+ function Re(l) {
1463
1461
  var g, S = !1;
1464
- if (!(!o.state.isEnabled || Me(c) || u)) {
1465
- var R = ((g = l) == null ? void 0 : g.type) === "focus";
1466
- l = c, m = c.currentTarget, Q(), !o.state.isVisible && pi(c) && it.forEach(function(A) {
1467
- return A(c);
1468
- }), c.type === "click" && (o.props.trigger.indexOf("mouseenter") < 0 || d) && o.props.hideOnClick !== !1 && o.state.isVisible ? S = !0 : Ne(c), c.type === "click" && (d = !S), S && !R && ve(c);
1462
+ if (!(!o.state.isEnabled || Me(l) || u)) {
1463
+ var R = ((g = d) == null ? void 0 : g.type) === "focus";
1464
+ d = l, m = l.currentTarget, Q(), !o.state.isVisible && vi(l) && it.forEach(function(A) {
1465
+ return A(l);
1466
+ }), l.type === "click" && (o.props.trigger.indexOf("mouseenter") < 0 || c) && o.props.hideOnClick !== !1 && o.state.isVisible ? S = !0 : Ne(l), l.type === "click" && (c = !S), S && !R && ve(l);
1469
1467
  }
1470
1468
  }
1471
- function Ke(c) {
1472
- var g = c.target, S = N().contains(g) || f.contains(g);
1473
- if (!(c.type === "mousemove" && S)) {
1469
+ function Ke(l) {
1470
+ var g = l.target, S = N().contains(g) || f.contains(g);
1471
+ if (!(l.type === "mousemove" && S)) {
1474
1472
  var R = le().concat(f).map(function(A) {
1475
1473
  var $, z = A._tippy, Oe = ($ = z.popperInstance) == null ? void 0 : $.state;
1476
1474
  return Oe ? {
@@ -1479,31 +1477,31 @@ function Mi(t, e) {
1479
1477
  props: r
1480
1478
  } : null;
1481
1479
  }).filter(Boolean);
1482
- yi(R, c) && (fe(), ve(c));
1480
+ gi(R, l) && (fe(), ve(l));
1483
1481
  }
1484
1482
  }
1485
- function Ge(c) {
1486
- var g = Me(c) || o.props.trigger.indexOf("click") >= 0 && d;
1483
+ function Ge(l) {
1484
+ var g = Me(l) || o.props.trigger.indexOf("click") >= 0 && c;
1487
1485
  if (!g) {
1488
1486
  if (o.props.interactive) {
1489
- o.hideWithInteractivity(c);
1487
+ o.hideWithInteractivity(l);
1490
1488
  return;
1491
1489
  }
1492
- ve(c);
1490
+ ve(l);
1493
1491
  }
1494
1492
  }
1495
- function Le(c) {
1496
- o.props.trigger.indexOf("focusin") < 0 && c.target !== N() || o.props.interactive && c.relatedTarget && f.contains(c.relatedTarget) || ve(c);
1493
+ function Le(l) {
1494
+ o.props.trigger.indexOf("focusin") < 0 && l.target !== N() || o.props.interactive && l.relatedTarget && f.contains(l.relatedTarget) || ve(l);
1497
1495
  }
1498
- function Me(c) {
1499
- return ee.isTouch ? V() !== c.type.indexOf("touch") >= 0 : !1;
1496
+ function Me(l) {
1497
+ return ee.isTouch ? V() !== l.type.indexOf("touch") >= 0 : !1;
1500
1498
  }
1501
1499
  function Ye() {
1502
1500
  Xe();
1503
- var c = o.props, g = c.popperOptions, S = c.placement, R = c.offset, A = c.getReferenceClientRect, $ = c.moveTransition, z = M() ? xt(f).arrow : null, Oe = A ? {
1501
+ var l = o.props, g = l.popperOptions, S = l.placement, R = l.offset, A = l.getReferenceClientRect, $ = l.moveTransition, z = M() ? xt(f).arrow : null, Oe = A ? {
1504
1502
  getBoundingClientRect: A,
1505
1503
  contextElement: A.contextElement || N()
1506
- } : t, It = {
1504
+ } : t, Ht = {
1507
1505
  name: "$$tippy",
1508
1506
  enabled: !0,
1509
1507
  phase: "beforeWrite",
@@ -1511,7 +1509,7 @@ function Mi(t, e) {
1511
1509
  fn: function(tt) {
1512
1510
  var Se = tt.state;
1513
1511
  if (M()) {
1514
- var Wr = W(), dt = Wr.box;
1512
+ var $r = W(), dt = $r.box;
1515
1513
  ["placement", "reference-hidden", "escaped"].forEach(function(rt) {
1516
1514
  rt === "placement" ? dt.setAttribute("data-placement", Se.placement) : Se.attributes.popper["data-popper-" + rt] ? dt.setAttribute("data-" + rt, "") : dt.removeAttribute("data-" + rt);
1517
1515
  }), Se.attributes.popper = {};
@@ -1542,14 +1540,14 @@ function Mi(t, e) {
1542
1540
  options: {
1543
1541
  adaptive: !$
1544
1542
  }
1545
- }, It];
1543
+ }, Ht];
1546
1544
  M() && z && he.push({
1547
1545
  name: "arrow",
1548
1546
  options: {
1549
1547
  element: z,
1550
1548
  padding: 3
1551
1549
  }
1552
- }), he.push.apply(he, (g == null ? void 0 : g.modifiers) || []), o.popperInstance = ii(Oe, f, Object.assign({}, g, {
1550
+ }), he.push.apply(he, (g == null ? void 0 : g.modifiers) || []), o.popperInstance = oi(Oe, f, Object.assign({}, g, {
1553
1551
  placement: S,
1554
1552
  onFirstUpdate: y,
1555
1553
  modifiers: he
@@ -1559,8 +1557,8 @@ function Mi(t, e) {
1559
1557
  o.popperInstance && (o.popperInstance.destroy(), o.popperInstance = null);
1560
1558
  }
1561
1559
  function ae() {
1562
- var c = o.props.appendTo, g, S = N();
1563
- o.props.interactive && c === Dr || c === "parent" ? g = S.parentNode : g = Tr(c, [S]), g.contains(f) || g.appendChild(f), o.state.isMounted = !0, Ye(), process.env.NODE_ENV !== "production" && se(o.props.interactive && c === F.appendTo && S.nextElementSibling !== f, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1560
+ var l = o.props.appendTo, g, S = N();
1561
+ o.props.interactive && l === Tr || l === "parent" ? g = S.parentNode : g = Cr(l, [S]), g.contains(f) || g.appendChild(f), o.state.isMounted = !0, Ye(), process.env.NODE_ENV !== "production" && se(o.props.interactive && l === k.appendTo && S.nextElementSibling !== f, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1564
1562
 
1565
1563
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1566
1564
 
@@ -1571,19 +1569,19 @@ function Mi(t, e) {
1571
1569
  function le() {
1572
1570
  return st(f.querySelectorAll("[data-tippy-root]"));
1573
1571
  }
1574
- function Ne(c) {
1575
- o.clearDelayTimeouts(), c && H("onTrigger", [o, c]), X();
1572
+ function Ne(l) {
1573
+ o.clearDelayTimeouts(), l && H("onTrigger", [o, l]), X();
1576
1574
  var g = j(!0), S = L(), R = S[0], A = S[1];
1577
1575
  ee.isTouch && R === "hold" && A && (g = A), g ? n = setTimeout(function() {
1578
1576
  o.show();
1579
1577
  }, g) : o.show();
1580
1578
  }
1581
- function ve(c) {
1582
- if (o.clearDelayTimeouts(), H("onUntrigger", [o, c]), !o.state.isVisible) {
1579
+ function ve(l) {
1580
+ if (o.clearDelayTimeouts(), H("onUntrigger", [o, l]), !o.state.isVisible) {
1583
1581
  ie();
1584
1582
  return;
1585
1583
  }
1586
- if (!(o.props.trigger.indexOf("mouseenter") >= 0 && o.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(c.type) >= 0 && d)) {
1584
+ if (!(o.props.trigger.indexOf("mouseenter") >= 0 && o.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(l.type) >= 0 && c)) {
1587
1585
  var g = j(!1);
1588
1586
  g ? i = setTimeout(function() {
1589
1587
  o.state.isVisible && o.hide();
@@ -1601,28 +1599,28 @@ function Mi(t, e) {
1601
1599
  function Qe() {
1602
1600
  clearTimeout(n), clearTimeout(i), cancelAnimationFrame(a);
1603
1601
  }
1604
- function Ze(c) {
1602
+ function Ze(l) {
1605
1603
  if (process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("setProps")), !o.state.isDestroyed) {
1606
- H("onBeforeUpdate", [o, c]), ze();
1607
- var g = o.props, S = tr(t, Object.assign({}, g, Xt(c), {
1604
+ H("onBeforeUpdate", [o, l]), ze();
1605
+ var g = o.props, S = rr(t, Object.assign({}, g, Jt(l), {
1608
1606
  ignoreAttributes: !0
1609
1607
  }));
1610
- o.props = S, we(), g.interactiveDebounce !== S.interactiveDebounce && (fe(), b = Gt(Ke, S.interactiveDebounce)), g.triggerTarget && !S.triggerTarget ? De(g.triggerTarget).forEach(function(R) {
1608
+ o.props = S, we(), g.interactiveDebounce !== S.interactiveDebounce && (fe(), b = Yt(Ke, S.interactiveDebounce)), g.triggerTarget && !S.triggerTarget ? De(g.triggerTarget).forEach(function(R) {
1611
1609
  R.removeAttribute("aria-expanded");
1612
1610
  }) : S.triggerTarget && t.removeAttribute("aria-expanded"), Q(), B(), x && x(g, S), o.popperInstance && (Ye(), le().forEach(function(R) {
1613
1611
  requestAnimationFrame(R._tippy.popperInstance.forceUpdate);
1614
- })), H("onAfterUpdate", [o, c]);
1612
+ })), H("onAfterUpdate", [o, l]);
1615
1613
  }
1616
1614
  }
1617
- function et(c) {
1615
+ function et(l) {
1618
1616
  o.setProps({
1619
- content: c
1617
+ content: l
1620
1618
  });
1621
1619
  }
1622
- function jr() {
1620
+ function Br() {
1623
1621
  process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("show"));
1624
- var c = o.state.isVisible, g = o.state.isDestroyed, S = !o.state.isEnabled, R = ee.isTouch && !o.props.touch, A = ft(o.props.duration, 0, F.duration);
1625
- if (!(c || g || S || R) && !N().hasAttribute("disabled") && (H("onShow", [o], !1), o.props.onShow(o) !== !1)) {
1622
+ var l = o.state.isVisible, g = o.state.isDestroyed, S = !o.state.isEnabled, R = ee.isTouch && !o.props.touch, A = ft(o.props.duration, 0, k.duration);
1623
+ if (!(l || g || S || R) && !N().hasAttribute("disabled") && (H("onShow", [o], !1), o.props.onShow(o) !== !1)) {
1626
1624
  if (o.state.isVisible = !0, M() && (f.style.visibility = "visible"), B(), X(), o.state.isMounted || (f.style.transition = "none"), M()) {
1627
1625
  var $ = W(), z = $.box, Oe = $.content;
1628
1626
  pt([z, Oe], 0);
@@ -1632,50 +1630,50 @@ function Mi(t, e) {
1632
1630
  if (!(!o.state.isVisible || p)) {
1633
1631
  if (p = !0, f.offsetHeight, f.style.transition = o.props.moveTransition, M() && o.props.animation) {
1634
1632
  var lt = W(), tt = lt.box, Se = lt.content;
1635
- pt([tt, Se], A), Jt([tt, Se], "visible");
1633
+ pt([tt, Se], A), Qt([tt, Se], "visible");
1636
1634
  }
1637
- J(), Q(), Yt(ht, o), (he = o.popperInstance) == null || he.forceUpdate(), H("onMount", [o]), o.props.animation && M() && oe(A, function() {
1635
+ J(), Q(), Xt(ht, o), (he = o.popperInstance) == null || he.forceUpdate(), H("onMount", [o]), o.props.animation && M() && oe(A, function() {
1638
1636
  o.state.isShown = !0, H("onShown", [o]);
1639
1637
  });
1640
1638
  }
1641
1639
  }, ae();
1642
1640
  }
1643
1641
  }
1644
- function Br() {
1642
+ function Pr() {
1645
1643
  process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("hide"));
1646
- var c = !o.state.isVisible, g = o.state.isDestroyed, S = !o.state.isEnabled, R = ft(o.props.duration, 1, F.duration);
1647
- if (!(c || g || S) && (H("onHide", [o], !1), o.props.onHide(o) !== !1)) {
1648
- if (o.state.isVisible = !1, o.state.isShown = !1, p = !1, d = !1, M() && (f.style.visibility = "hidden"), fe(), ie(), B(!0), M()) {
1644
+ var l = !o.state.isVisible, g = o.state.isDestroyed, S = !o.state.isEnabled, R = ft(o.props.duration, 1, k.duration);
1645
+ if (!(l || g || S) && (H("onHide", [o], !1), o.props.onHide(o) !== !1)) {
1646
+ if (o.state.isVisible = !1, o.state.isShown = !1, p = !1, c = !1, M() && (f.style.visibility = "hidden"), fe(), ie(), B(!0), M()) {
1649
1647
  var A = W(), $ = A.box, z = A.content;
1650
- o.props.animation && (pt([$, z], R), Jt([$, z], "hidden"));
1648
+ o.props.animation && (pt([$, z], R), Qt([$, z], "hidden"));
1651
1649
  }
1652
1650
  J(), Q(), o.props.animation ? M() && be(R, o.unmount) : o.unmount();
1653
1651
  }
1654
1652
  }
1655
- function Pr(c) {
1656
- process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("hideWithInteractivity")), I().addEventListener("mousemove", b), Yt(it, b), b(c);
1653
+ function Ir(l) {
1654
+ process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("hideWithInteractivity")), I().addEventListener("mousemove", b), Xt(it, b), b(l);
1657
1655
  }
1658
- function Ir() {
1659
- process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("unmount")), o.state.isVisible && o.hide(), o.state.isMounted && (Xe(), le().forEach(function(c) {
1660
- c._tippy.unmount();
1661
- }), f.parentNode && f.parentNode.removeChild(f), ht = ht.filter(function(c) {
1662
- return c !== o;
1656
+ function Hr() {
1657
+ process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("unmount")), o.state.isVisible && o.hide(), o.state.isMounted && (Xe(), le().forEach(function(l) {
1658
+ l._tippy.unmount();
1659
+ }), f.parentNode && f.parentNode.removeChild(f), ht = ht.filter(function(l) {
1660
+ return l !== o;
1663
1661
  }), o.state.isMounted = !1, H("onHidden", [o]));
1664
1662
  }
1665
- function Hr() {
1663
+ function Wr() {
1666
1664
  process.env.NODE_ENV !== "production" && se(o.state.isDestroyed, xe("destroy")), !o.state.isDestroyed && (o.clearDelayTimeouts(), o.unmount(), ze(), delete t._tippy, o.state.isDestroyed = !0, H("onDestroy", [o]));
1667
1665
  }
1668
1666
  }
1669
1667
  function qe(t, e) {
1670
1668
  e === void 0 && (e = {});
1671
- var r = F.plugins.concat(e.plugins || []);
1672
- process.env.NODE_ENV !== "production" && (Di(t), Lr(e, r)), Ei();
1669
+ var r = k.plugins.concat(e.plugins || []);
1670
+ process.env.NODE_ENV !== "production" && (Ti(t), Mr(e, r)), wi();
1673
1671
  var n = Object.assign({}, e, {
1674
1672
  plugins: r
1675
- }), i = hi(t);
1673
+ }), i = mi(t);
1676
1674
  if (process.env.NODE_ENV !== "production") {
1677
- var a = $e(n.content), d = i.length > 1;
1678
- se(a && d, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
1675
+ var a = $e(n.content), c = i.length > 1;
1676
+ se(a && c, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
1679
1677
 
1680
1678
  `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
1681
1679
 
@@ -1683,15 +1681,15 @@ function qe(t, e) {
1683
1681
  `, "2) content: () => element.cloneNode(true)"].join(" "));
1684
1682
  }
1685
1683
  var u = i.reduce(function(s, p) {
1686
- var l = p && Mi(p, n);
1687
- return l && s.push(l), s;
1684
+ var d = p && Ni(p, n);
1685
+ return d && s.push(d), s;
1688
1686
  }, []);
1689
1687
  return $e(t) ? u[0] : u;
1690
1688
  }
1691
- qe.defaultProps = F;
1692
- qe.setDefaultProps = Ai;
1689
+ qe.defaultProps = k;
1690
+ qe.setDefaultProps = _i;
1693
1691
  qe.currentInput = ee;
1694
- Object.assign({}, vr, {
1692
+ Object.assign({}, hr, {
1695
1693
  effect: function(e) {
1696
1694
  var r = e.state, n = {
1697
1695
  popper: {
@@ -1709,12 +1707,12 @@ Object.assign({}, vr, {
1709
1707
  }
1710
1708
  });
1711
1709
  qe.setDefaultProps({
1712
- render: Mr
1710
+ render: Nr
1713
1711
  });
1714
- class Ni {
1715
- constructor({ editor: e, element: r, view: n, tippyOptions: i = {}, updateDelay: a = 250, shouldShow: d }) {
1716
- this.preventHide = !1, this.shouldShow = ({ view: u, state: s, from: p, to: l }) => {
1717
- const { doc: v, selection: y } = s, { empty: h } = y, b = !v.textBetween(p, l).length && Fr(s.selection), m = this.element.contains(document.activeElement);
1712
+ class Vi {
1713
+ constructor({ editor: e, element: r, view: n, tippyOptions: i = {}, updateDelay: a = 250, shouldShow: c }) {
1714
+ this.preventHide = !1, this.shouldShow = ({ view: u, state: s, from: p, to: d }) => {
1715
+ const { doc: v, selection: y } = s, { empty: h } = y, b = !v.textBetween(p, d).length && kr(s.selection), m = this.element.contains(document.activeElement);
1718
1716
  return !(!(u.hasFocus() || m) || h || b || !this.editor.isEditable);
1719
1717
  }, this.mousedownHandler = () => {
1720
1718
  this.preventHide = !0;
@@ -1732,11 +1730,11 @@ class Ni {
1732
1730
  }, this.tippyBlurHandler = (u) => {
1733
1731
  this.blurHandler({ event: u });
1734
1732
  }, this.handleDebouncedUpdate = (u, s) => {
1735
- const p = !(s != null && s.selection.eq(u.state.selection)), l = !(s != null && s.doc.eq(u.state.doc));
1736
- !p && !l || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => {
1737
- this.updateHandler(u, p, l, s);
1733
+ const p = !(s != null && s.selection.eq(u.state.selection)), d = !(s != null && s.doc.eq(u.state.doc));
1734
+ !p && !d || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => {
1735
+ this.updateHandler(u, p, d, s);
1738
1736
  }, this.updateDelay));
1739
- }, this.updateHandler = (u, s, p, l) => {
1737
+ }, this.updateHandler = (u, s, p, d) => {
1740
1738
  var v, y, h;
1741
1739
  const { state: b, composing: m } = u, { selection: E } = b;
1742
1740
  if (m || !s && !p)
@@ -1748,7 +1746,7 @@ class Ni {
1748
1746
  element: this.element,
1749
1747
  view: u,
1750
1748
  state: b,
1751
- oldState: l,
1749
+ oldState: d,
1752
1750
  from: w,
1753
1751
  to: o
1754
1752
  }))) {
@@ -1768,7 +1766,7 @@ class Ni {
1768
1766
  return zr(u, w, o);
1769
1767
  })
1770
1768
  }), this.show();
1771
- }, this.editor = e, this.element = r, this.view = n, this.updateDelay = a, d && (this.shouldShow = d), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
1769
+ }, this.editor = e, this.element = r, this.view = n, this.updateDelay = a, c && (this.shouldShow = c), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
1772
1770
  }
1773
1771
  createTooltip() {
1774
1772
  const { element: e } = this.editor.options, r = !!e.parentElement;
@@ -1789,8 +1787,8 @@ class Ni {
1789
1787
  this.handleDebouncedUpdate(e, r);
1790
1788
  return;
1791
1789
  }
1792
- const a = !(r != null && r.selection.eq(e.state.selection)), d = !(r != null && r.doc.eq(e.state.doc));
1793
- this.updateHandler(e, a, d, r);
1790
+ const a = !(r != null && r.selection.eq(e.state.selection)), c = !(r != null && r.doc.eq(e.state.doc));
1791
+ this.updateHandler(e, a, c, r);
1794
1792
  }
1795
1793
  show() {
1796
1794
  var e;
@@ -1805,11 +1803,11 @@ class Ni {
1805
1803
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (r = this.tippy) === null || r === void 0 || r.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
1806
1804
  }
1807
1805
  }
1808
- const Nr = (t) => new $r({
1809
- key: typeof t.pluginKey == "string" ? new kr(t.pluginKey) : t.pluginKey,
1810
- view: (e) => new Ni({ view: e, ...t })
1806
+ const Vr = (t) => new Ur({
1807
+ key: typeof t.pluginKey == "string" ? new Fr(t.pluginKey) : t.pluginKey,
1808
+ view: (e) => new Vi({ view: e, ...t })
1811
1809
  });
1812
- Ur.create({
1810
+ Kr.create({
1813
1811
  name: "bubbleMenu",
1814
1812
  addOptions() {
1815
1813
  return {
@@ -1822,7 +1820,7 @@ Ur.create({
1822
1820
  },
1823
1821
  addProseMirrorPlugins() {
1824
1822
  return this.options.element ? [
1825
- Nr({
1823
+ Vr({
1826
1824
  pluginKey: this.options.pluginKey,
1827
1825
  editor: this.editor,
1828
1826
  element: this.options.element,
@@ -1833,7 +1831,7 @@ Ur.create({
1833
1831
  ] : [];
1834
1832
  }
1835
1833
  });
1836
- function Vi(t) {
1834
+ function ji(t) {
1837
1835
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1838
1836
  }
1839
1837
  var Dt = { exports: {} }, mt = {};
@@ -1846,15 +1844,15 @@ var Dt = { exports: {} }, mt = {};
1846
1844
  * This source code is licensed under the MIT license found in the
1847
1845
  * LICENSE file in the root directory of this source tree.
1848
1846
  */
1849
- var ir;
1850
- function ji() {
1851
- if (ir) return mt;
1852
- ir = 1;
1847
+ var or;
1848
+ function Bi() {
1849
+ if (or) return mt;
1850
+ or = 1;
1853
1851
  var t = P;
1854
1852
  function e(v, y) {
1855
1853
  return v === y && (v !== 0 || 1 / v === 1 / y) || v !== v && y !== y;
1856
1854
  }
1857
- var r = typeof Object.is == "function" ? Object.is : e, n = t.useState, i = t.useEffect, a = t.useLayoutEffect, d = t.useDebugValue;
1855
+ var r = typeof Object.is == "function" ? Object.is : e, n = t.useState, i = t.useEffect, a = t.useLayoutEffect, c = t.useDebugValue;
1858
1856
  function u(v, y) {
1859
1857
  var h = y(), b = n({ inst: { value: h, getSnapshot: y } }), m = b[0].inst, E = b[1];
1860
1858
  return a(function() {
@@ -1863,7 +1861,7 @@ function ji() {
1863
1861
  return s(m) && E({ inst: m }), v(function() {
1864
1862
  s(m) && E({ inst: m });
1865
1863
  });
1866
- }, [v]), d(h), h;
1864
+ }, [v]), c(h), h;
1867
1865
  }
1868
1866
  function s(v) {
1869
1867
  var y = v.getSnapshot;
@@ -1878,8 +1876,8 @@ function ji() {
1878
1876
  function p(v, y) {
1879
1877
  return y();
1880
1878
  }
1881
- var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : u;
1882
- return mt.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : l, mt;
1879
+ var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : u;
1880
+ return mt.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : d, mt;
1883
1881
  }
1884
1882
  var yt = {};
1885
1883
  /**
@@ -1891,9 +1889,9 @@ var yt = {};
1891
1889
  * This source code is licensed under the MIT license found in the
1892
1890
  * LICENSE file in the root directory of this source tree.
1893
1891
  */
1894
- var or;
1895
- function Bi() {
1896
- return or || (or = 1, process.env.NODE_ENV !== "production" && function() {
1892
+ var ar;
1893
+ function Pi() {
1894
+ return ar || (ar = 1, process.env.NODE_ENV !== "production" && function() {
1897
1895
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1898
1896
  var t = P, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1899
1897
  function r(w) {
@@ -1916,15 +1914,15 @@ function Bi() {
1916
1914
  function i(w, o) {
1917
1915
  return w === o && (w !== 0 || 1 / w === 1 / o) || w !== w && o !== o;
1918
1916
  }
1919
- var a = typeof Object.is == "function" ? Object.is : i, d = t.useState, u = t.useEffect, s = t.useLayoutEffect, p = t.useDebugValue, l = !1, v = !1;
1917
+ var a = typeof Object.is == "function" ? Object.is : i, c = t.useState, u = t.useEffect, s = t.useLayoutEffect, p = t.useDebugValue, d = !1, v = !1;
1920
1918
  function y(w, o, O) {
1921
- l || t.startTransition !== void 0 && (l = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
1919
+ d || t.startTransition !== void 0 && (d = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
1922
1920
  var f = o();
1923
1921
  if (!v) {
1924
1922
  var x = o();
1925
1923
  a(f, x) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), v = !0);
1926
1924
  }
1927
- var _ = d({
1925
+ var _ = c({
1928
1926
  inst: {
1929
1927
  value: f,
1930
1928
  getSnapshot: o
@@ -1962,17 +1960,17 @@ function Bi() {
1962
1960
  yt.useSyncExternalStore = T, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1963
1961
  }()), yt;
1964
1962
  }
1965
- process.env.NODE_ENV === "production" ? Dt.exports = ji() : Dt.exports = Bi();
1963
+ process.env.NODE_ENV === "production" ? Dt.exports = Bi() : Dt.exports = Pi();
1966
1964
  var ct = Dt.exports;
1967
- const Pi = (...t) => (e) => {
1965
+ const Ii = (...t) => (e) => {
1968
1966
  t.forEach((r) => {
1969
1967
  typeof r == "function" ? r(e) : r && (r.current = e);
1970
1968
  });
1971
- }, Ii = ({ contentComponent: t }) => {
1969
+ }, Hi = ({ contentComponent: t }) => {
1972
1970
  const e = ct.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
1973
1971
  return P.createElement(P.Fragment, null, Object.values(e));
1974
1972
  };
1975
- function Hi() {
1973
+ function Wi() {
1976
1974
  const t = /* @__PURE__ */ new Set();
1977
1975
  let e = {};
1978
1976
  return {
@@ -1996,7 +1994,7 @@ function Hi() {
1996
1994
  setRenderer(r, n) {
1997
1995
  e = {
1998
1996
  ...e,
1999
- [r]: Jr.createPortal(n.reactElement, n.element, r)
1997
+ [r]: Qr.createPortal(n.reactElement, n.element, r)
2000
1998
  }, t.forEach((i) => i());
2001
1999
  },
2002
2000
  /**
@@ -2008,7 +2006,7 @@ function Hi() {
2008
2006
  }
2009
2007
  };
2010
2008
  }
2011
- class Wi extends P.Component {
2009
+ class $i extends P.Component {
2012
2010
  constructor(e) {
2013
2011
  var r;
2014
2012
  super(e), this.editorContentRef = P.createRef(), this.initialized = !1, this.state = {
@@ -2029,7 +2027,7 @@ class Wi extends P.Component {
2029
2027
  const r = this.editorContentRef.current;
2030
2028
  r.append(...e.options.element.childNodes), e.setOptions({
2031
2029
  element: r
2032
- }), e.contentComponent = Hi(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = e.contentComponent.subscribe(() => {
2030
+ }), e.contentComponent = Wi(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = e.contentComponent.subscribe(() => {
2033
2031
  this.setState((n) => n.hasContentComponentInitialized ? n : {
2034
2032
  hasContentComponentInitialized: !0
2035
2033
  }), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
@@ -2052,20 +2050,20 @@ class Wi extends P.Component {
2052
2050
  return P.createElement(
2053
2051
  P.Fragment,
2054
2052
  null,
2055
- P.createElement("div", { ref: Pi(r, this.editorContentRef), ...n }),
2056
- (e == null ? void 0 : e.contentComponent) && P.createElement(Ii, { contentComponent: e.contentComponent })
2053
+ P.createElement("div", { ref: Ii(r, this.editorContentRef), ...n }),
2054
+ (e == null ? void 0 : e.contentComponent) && P.createElement(Hi, { contentComponent: e.contentComponent })
2057
2055
  );
2058
2056
  }
2059
2057
  }
2060
- const $i = Gr((t, e) => {
2058
+ const Ui = Xr((t, e) => {
2061
2059
  const r = P.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
2062
- return P.createElement(Wi, {
2060
+ return P.createElement($i, {
2063
2061
  key: r,
2064
2062
  innerRef: e,
2065
2063
  ...t
2066
2064
  });
2067
- }), ao = P.memo($i);
2068
- var ki = function t(e, r) {
2065
+ }), ao = P.memo(Ui);
2066
+ var Fi = function t(e, r) {
2069
2067
  if (e === r) return !0;
2070
2068
  if (e && r && typeof e == "object" && typeof r == "object") {
2071
2069
  if (e.constructor !== r.constructor) return !1;
@@ -2103,14 +2101,14 @@ var ki = function t(e, r) {
2103
2101
  for (i = n; i-- !== 0; )
2104
2102
  if (!Object.prototype.hasOwnProperty.call(r, a[i])) return !1;
2105
2103
  for (i = n; i-- !== 0; ) {
2106
- var d = a[i];
2107
- if (!(d === "_owner" && e.$$typeof) && !t(e[d], r[d]))
2104
+ var c = a[i];
2105
+ if (!(c === "_owner" && e.$$typeof) && !t(e[c], r[c]))
2108
2106
  return !1;
2109
2107
  }
2110
2108
  return !0;
2111
2109
  }
2112
2110
  return e !== e && r !== r;
2113
- }, Ui = /* @__PURE__ */ Vi(ki), Tt = { exports: {} }, gt = {};
2111
+ }, ki = /* @__PURE__ */ ji(Fi), Tt = { exports: {} }, gt = {};
2114
2112
  /**
2115
2113
  * @license React
2116
2114
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -2120,16 +2118,16 @@ var ki = function t(e, r) {
2120
2118
  * This source code is licensed under the MIT license found in the
2121
2119
  * LICENSE file in the root directory of this source tree.
2122
2120
  */
2123
- var ar;
2124
- function Fi() {
2125
- if (ar) return gt;
2126
- ar = 1;
2121
+ var sr;
2122
+ function qi() {
2123
+ if (sr) return gt;
2124
+ sr = 1;
2127
2125
  var t = P, e = ct;
2128
- function r(p, l) {
2129
- return p === l && (p !== 0 || 1 / p === 1 / l) || p !== p && l !== l;
2126
+ function r(p, d) {
2127
+ return p === d && (p !== 0 || 1 / p === 1 / d) || p !== p && d !== d;
2130
2128
  }
2131
- var n = typeof Object.is == "function" ? Object.is : r, i = e.useSyncExternalStore, a = t.useRef, d = t.useEffect, u = t.useMemo, s = t.useDebugValue;
2132
- return gt.useSyncExternalStoreWithSelector = function(p, l, v, y, h) {
2129
+ var n = typeof Object.is == "function" ? Object.is : r, i = e.useSyncExternalStore, a = t.useRef, c = t.useEffect, u = t.useMemo, s = t.useDebugValue;
2130
+ return gt.useSyncExternalStoreWithSelector = function(p, d, v, y, h) {
2133
2131
  var b = a(null);
2134
2132
  if (b.current === null) {
2135
2133
  var m = { hasValue: !1, value: null };
@@ -2150,13 +2148,13 @@ function Fi() {
2150
2148
  }
2151
2149
  var T = !1, w, o, O = v === void 0 ? null : v;
2152
2150
  return [function() {
2153
- return D(l());
2151
+ return D(d());
2154
2152
  }, O === null ? void 0 : function() {
2155
2153
  return D(O());
2156
2154
  }];
2157
- }, [l, v, y, h]);
2155
+ }, [d, v, y, h]);
2158
2156
  var E = i(p, b[0], b[1]);
2159
- return d(function() {
2157
+ return c(function() {
2160
2158
  m.hasValue = !0, m.value = E;
2161
2159
  }, [E]), s(E), E;
2162
2160
  }, gt;
@@ -2171,16 +2169,16 @@ var bt = {};
2171
2169
  * This source code is licensed under the MIT license found in the
2172
2170
  * LICENSE file in the root directory of this source tree.
2173
2171
  */
2174
- var sr;
2175
- function qi() {
2176
- return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
2172
+ var ur;
2173
+ function zi() {
2174
+ return ur || (ur = 1, process.env.NODE_ENV !== "production" && function() {
2177
2175
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2178
2176
  var t = P, e = ct;
2179
- function r(l, v) {
2180
- return l === v && (l !== 0 || 1 / l === 1 / v) || l !== l && v !== v;
2177
+ function r(d, v) {
2178
+ return d === v && (d !== 0 || 1 / d === 1 / v) || d !== d && v !== v;
2181
2179
  }
2182
- var n = typeof Object.is == "function" ? Object.is : r, i = e.useSyncExternalStore, a = t.useRef, d = t.useEffect, u = t.useMemo, s = t.useDebugValue;
2183
- function p(l, v, y, h, b) {
2180
+ var n = typeof Object.is == "function" ? Object.is : r, i = e.useSyncExternalStore, a = t.useRef, c = t.useEffect, u = t.useMemo, s = t.useDebugValue;
2181
+ function p(d, v, y, h, b) {
2184
2182
  var m = a(null), E;
2185
2183
  m.current === null ? (E = {
2186
2184
  hasValue: !1,
@@ -2209,18 +2207,18 @@ function qi() {
2209
2207
  return _(C());
2210
2208
  };
2211
2209
  return [L, V];
2212
- }, [v, y, h, b]), T = D[0], w = D[1], o = i(l, T, w);
2213
- return d(function() {
2210
+ }, [v, y, h, b]), T = D[0], w = D[1], o = i(d, T, w);
2211
+ return c(function() {
2214
2212
  E.hasValue = !0, E.value = o;
2215
2213
  }, [o]), s(o), o;
2216
2214
  }
2217
2215
  bt.useSyncExternalStoreWithSelector = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2218
2216
  }()), bt;
2219
2217
  }
2220
- process.env.NODE_ENV === "production" ? Tt.exports = Fi() : Tt.exports = qi();
2221
- var zi = Tt.exports;
2222
- const Ki = typeof window < "u" ? Xr : _t;
2223
- class Gi {
2218
+ process.env.NODE_ENV === "production" ? Tt.exports = qi() : Tt.exports = zi();
2219
+ var Ki = Tt.exports;
2220
+ const Gi = typeof window < "u" ? Jr : _t;
2221
+ class Yi {
2224
2222
  constructor(e) {
2225
2223
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = e, this.lastSnapshot = { editor: e, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
2226
2224
  }
@@ -2258,13 +2256,13 @@ class Gi {
2258
2256
  }
2259
2257
  }
2260
2258
  }
2261
- function Yi(t) {
2259
+ function Xi(t) {
2262
2260
  var e;
2263
- const [r] = At(() => new Gi(t.editor)), n = zi.useSyncExternalStoreWithSelector(r.subscribe, r.getSnapshot, r.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : Ui);
2264
- return Ki(() => r.watch(t.editor), [t.editor, r]), cr(n), n;
2261
+ const [r] = At(() => new Yi(t.editor)), n = Ki.useSyncExternalStoreWithSelector(r.subscribe, r.getSnapshot, r.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : ki);
2262
+ return Gi(() => r.watch(t.editor), [t.editor, r]), lr(n), n;
2265
2263
  }
2266
- const ur = process.env.NODE_ENV !== "production", Ct = typeof window > "u", Xi = Ct || !!(typeof window < "u" && window.next);
2267
- class Ji {
2264
+ const cr = process.env.NODE_ENV !== "production", Ct = typeof window > "u", Ji = Ct || !!(typeof window < "u" && window.next);
2265
+ class It {
2268
2266
  constructor(e) {
2269
2267
  this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
2270
2268
  }
@@ -2273,8 +2271,8 @@ class Ji {
2273
2271
  }
2274
2272
  getInitialEditor() {
2275
2273
  if (this.options.current.immediatelyRender === void 0)
2276
- return Ct || Xi ? (ur && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
2277
- if (this.options.current.immediatelyRender && Ct && ur)
2274
+ return Ct || Ji ? (cr && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
2275
+ if (this.options.current.immediatelyRender && Ct && cr)
2278
2276
  throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
2279
2277
  return this.options.current.immediatelyRender ? this.createEditor() : null;
2280
2278
  }
@@ -2330,7 +2328,7 @@ class Ji {
2330
2328
  return (a = (i = this.options.current).onPaste) === null || a === void 0 ? void 0 : a.call(i, ...n);
2331
2329
  }
2332
2330
  };
2333
- return new Kr(e);
2331
+ return new Gr(e);
2334
2332
  }
2335
2333
  /**
2336
2334
  * Get the current editor instance.
@@ -2352,13 +2350,19 @@ class Ji {
2352
2350
  this.subscriptions.delete(e);
2353
2351
  };
2354
2352
  }
2353
+ static compareOptions(e, r) {
2354
+ return Object.keys(e).every((n) => ["onCreate", "onBeforeCreate", "onDestroy", "onUpdate", "onTransaction", "onFocus", "onBlur", "onSelectionUpdate", "onContentError", "onDrop", "onPaste"].includes(n) ? !0 : n === "extensions" && e.extensions && r.extensions ? e.extensions.length !== r.extensions.length ? !1 : e.extensions.every((i, a) => {
2355
+ var c;
2356
+ return i === ((c = r.extensions) === null || c === void 0 ? void 0 : c[a]);
2357
+ }) : e[n] === r[n]);
2358
+ }
2355
2359
  /**
2356
2360
  * On each render, we will create, update, or destroy the editor instance.
2357
2361
  * @param deps The dependencies to watch for changes
2358
2362
  * @returns A cleanup function
2359
2363
  */
2360
2364
  onRender(e) {
2361
- return () => (this.isComponentMounted = !0, clearTimeout(this.scheduledDestructionTimeout), this.editor && !this.editor.isDestroyed && e.length === 0 ? this.editor.setOptions({
2365
+ return () => (this.isComponentMounted = !0, clearTimeout(this.scheduledDestructionTimeout), this.editor && !this.editor.isDestroyed && e.length === 0 ? It.compareOptions(this.options.current, this.editor.options) || this.editor.setOptions({
2362
2366
  ...this.options.current,
2363
2367
  editable: this.editor.isEditable
2364
2368
  }) : this.refreshEditorInstance(e), () => {
@@ -2398,40 +2402,40 @@ class Ji {
2398
2402
  function so(t = {}, e = []) {
2399
2403
  const r = Yr(t);
2400
2404
  r.current = t;
2401
- const [n] = At(() => new Ji(r)), i = ct.useSyncExternalStore(n.subscribe, n.getEditor, n.getServerSnapshot);
2402
- return cr(i), _t(n.onRender(e)), Yi({
2405
+ const [n] = At(() => new It(r)), i = ct.useSyncExternalStore(n.subscribe, n.getEditor, n.getServerSnapshot);
2406
+ return lr(i), _t(n.onRender(e)), Xi({
2403
2407
  editor: i,
2404
2408
  selector: ({ transactionNumber: a }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && a === 0 ? 0 : a + 1
2405
2409
  }), i;
2406
2410
  }
2407
- const Vr = lr({
2411
+ const jr = fr({
2408
2412
  editor: null
2409
2413
  });
2410
- Vr.Consumer;
2411
- const Qi = () => dr(Vr), uo = (t) => {
2414
+ jr.Consumer;
2415
+ const Qi = () => dr(jr), uo = (t) => {
2412
2416
  const [e, r] = At(null), { editor: n } = Qi();
2413
2417
  return _t(() => {
2414
2418
  var i;
2415
2419
  if (!e || !((i = t.editor) === null || i === void 0) && i.isDestroyed || n != null && n.isDestroyed)
2416
2420
  return;
2417
- const { pluginKey: a = "bubbleMenu", editor: d, tippyOptions: u = {}, updateDelay: s, shouldShow: p = null } = t, l = d || n;
2418
- if (!l) {
2421
+ const { pluginKey: a = "bubbleMenu", editor: c, tippyOptions: u = {}, updateDelay: s, shouldShow: p = null } = t, d = c || n;
2422
+ if (!d) {
2419
2423
  console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
2420
2424
  return;
2421
2425
  }
2422
- const v = Nr({
2426
+ const v = Vr({
2423
2427
  updateDelay: s,
2424
- editor: l,
2428
+ editor: d,
2425
2429
  element: e,
2426
2430
  pluginKey: a,
2427
2431
  shouldShow: p,
2428
2432
  tippyOptions: u
2429
2433
  });
2430
- return l.registerPlugin(v), () => {
2431
- l.unregisterPlugin(a);
2434
+ return d.registerPlugin(v), () => {
2435
+ d.unregisterPlugin(a);
2432
2436
  };
2433
2437
  }, [t.editor, n, e]), P.createElement("div", { ref: r, className: t.className, style: { visibility: "hidden" } }, t.children);
2434
- }, Zi = lr({
2438
+ }, Zi = fr({
2435
2439
  onDragStart: void 0
2436
2440
  }), eo = () => dr(Zi);
2437
2441
  P.forwardRef((t, e) => {
@@ -2456,7 +2460,7 @@ class co {
2456
2460
  * Immediately creates element and renders the provided React component.
2457
2461
  */
2458
2462
  constructor(e, { editor: r, props: n = {}, as: i = "div", className: a = "" }) {
2459
- this.ref = null, this.id = Math.floor(Math.random() * 4294967295).toString(), this.component = e, this.editor = r, this.props = n, this.element = document.createElement(i), this.element.classList.add("react-renderer"), a && this.element.classList.add(...a.split(" ")), this.editor.isInitialized ? Qr(() => {
2463
+ this.ref = null, this.id = Math.floor(Math.random() * 4294967295).toString(), this.component = e, this.editor = r, this.props = n, this.element = document.createElement(i), this.element.classList.add("react-renderer"), a && this.element.classList.add(...a.split(" ")), this.editor.isInitialized ? Zr(() => {
2460
2464
  this.render();
2461
2465
  }) : this.render();
2462
2466
  }