@select-org/select-post-builder 1.1.38 → 1.1.39

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.
@@ -1125,7 +1125,7 @@ const resolveConfig = (n) => {
1125
1125
  return;
1126
1126
  const N = AxiosHeaders$1.from(
1127
1127
  "getAllResponseHeaders" in O && O.getAllResponseHeaders()
1128
- ), V = {
1128
+ ), j = {
1129
1129
  data: !b || b === "text" || b === "json" ? O.responseText : O.response,
1130
1130
  status: O.status,
1131
1131
  statusText: O.statusText,
@@ -1140,7 +1140,7 @@ const resolveConfig = (n) => {
1140
1140
  function(W) {
1141
1141
  p(W), R();
1142
1142
  },
1143
- V
1143
+ j
1144
1144
  ), O = null;
1145
1145
  }
1146
1146
  "onloadend" in O ? O.onloadend = k : O.onreadystatechange = function() {
@@ -1148,21 +1148,21 @@ const resolveConfig = (n) => {
1148
1148
  }, O.onabort = function() {
1149
1149
  O && (p(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, n, O)), O = null);
1150
1150
  }, O.onerror = function(I) {
1151
- const V = I && I.message ? I.message : "Network Error", D = new AxiosError$1(V, AxiosError$1.ERR_NETWORK, n, O);
1151
+ const j = I && I.message ? I.message : "Network Error", D = new AxiosError$1(j, AxiosError$1.ERR_NETWORK, n, O);
1152
1152
  D.event = I || null, p(D), O = null;
1153
1153
  }, O.ontimeout = function() {
1154
1154
  let I = m.timeout ? "timeout of " + m.timeout + "ms exceeded" : "timeout exceeded";
1155
- const V = m.transitional || transitionalDefaults;
1155
+ const j = m.transitional || transitionalDefaults;
1156
1156
  m.timeoutErrorMessage && (I = m.timeoutErrorMessage), p(
1157
1157
  new AxiosError$1(
1158
1158
  I,
1159
- V.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
1159
+ j.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
1160
1160
  n,
1161
1161
  O
1162
1162
  )
1163
1163
  ), O = null;
1164
- }, g === void 0 && y.setContentType(null), "setRequestHeader" in O && utils$1.forEach(y.toJSON(), function(I, V) {
1165
- O.setRequestHeader(V, I);
1164
+ }, g === void 0 && y.setContentType(null), "setRequestHeader" in O && utils$1.forEach(y.toJSON(), function(I, j) {
1165
+ O.setRequestHeader(j, I);
1166
1166
  }), utils$1.isUndefined(m.withCredentials) || (O.withCredentials = !!m.withCredentials), b && b !== "json" && (O.responseType = m.responseType), T && ([_, C] = progressEventReducer(T, !0), O.addEventListener("progress", _)), E && O.upload && ([A, P] = progressEventReducer(E), O.upload.addEventListener("progress", A), O.upload.addEventListener("loadend", P)), (m.cancelToken || m.signal) && (S = (N) => {
1167
1167
  O && (p(!N || N.type ? new CanceledError$1(null, n, O) : N), O.abort(), O = null);
1168
1168
  }, m.cancelToken && m.cancelToken.subscribe(S), m.signal && (m.signal.aborted ? S() : m.signal.addEventListener("abort", S)));
@@ -1335,7 +1335,7 @@ const resolveConfig = (n) => {
1335
1335
  signal: L,
1336
1336
  cancelToken: N,
1337
1337
  timeout: I,
1338
- onDownloadProgress: V,
1338
+ onDownloadProgress: j,
1339
1339
  onUploadProgress: D,
1340
1340
  responseType: W,
1341
1341
  headers: $,
@@ -1378,15 +1378,15 @@ const resolveConfig = (n) => {
1378
1378
  };
1379
1379
  Q = g && new d(R, H);
1380
1380
  let B = await (g ? ee(Q, Z) : ee(R, H));
1381
- const j = S && (W === "stream" || W === "response");
1382
- if (S && (V || j && Y)) {
1381
+ const V = S && (W === "stream" || W === "response");
1382
+ if (S && (j || V && Y)) {
1383
1383
  const re = {};
1384
1384
  ["status", "statusText", "headers"].forEach((ne) => {
1385
1385
  re[ne] = B[ne];
1386
1386
  });
1387
- const ie = utils$1.toFiniteNumber(B.headers.get("content-length")), [oe, se] = V && progressEventDecorator(
1387
+ const ie = utils$1.toFiniteNumber(B.headers.get("content-length")), [oe, se] = j && progressEventDecorator(
1388
1388
  ie,
1389
- progressEventReducer(asyncDecorator(V), !0)
1389
+ progressEventReducer(asyncDecorator(j), !0)
1390
1390
  ) || [];
1391
1391
  B = new p(
1392
1392
  trackStream(B.body, DEFAULT_CHUNK_SIZE, oe, () => {
@@ -1400,7 +1400,7 @@ const resolveConfig = (n) => {
1400
1400
  B,
1401
1401
  C
1402
1402
  );
1403
- return !j && Y && Y(), await new Promise((re, ie) => {
1403
+ return !V && Y && Y(), await new Promise((re, ie) => {
1404
1404
  settle(re, ie, {
1405
1405
  data: J,
1406
1406
  headers: AxiosHeaders$1.from(B.headers),
@@ -2523,7 +2523,7 @@ function getDefaultSwipeDirections(n) {
2523
2523
  }
2524
2524
  const Toast = (n) => {
2525
2525
  var u, d, p, m, g, y, b, E, T;
2526
- const { invert: S, toast: A, unstyled: _, interacting: P, setHeights: C, visibleToasts: R, heights: O, index: k, toasts: L, expanded: N, removeToast: I, defaultRichColors: V, closeButton: D, style: W, cancelButtonStyle: $, actionButtonStyle: K, className: Z = "", descriptionClassName: ee = "", duration: q, position: Q, gap: Y, expandByDefault: te, classNames: F, icons: H, closeButtonAriaLabel: B = "Close toast" } = n, [j, J] = React__default.useState(null), [re, ie] = React__default.useState(null), [oe, se] = React__default.useState(!1), [ne, le] = React__default.useState(!1), [de, ue] = React__default.useState(!1), [pe, he] = React__default.useState(!1), [me, ye] = React__default.useState(!1), [be, fe] = React__default.useState(0), [Se, Oe] = React__default.useState(0), Ae = React__default.useRef(A.duration || q || TOAST_LIFETIME), _e = React__default.useRef(null), Re = React__default.useRef(null), Le = k === 0, Ce = k + 1 <= R, Ie = A.type, Me = A.dismissible !== !1, Pe = A.className || "", $e = A.descriptionClassName || "", De = React__default.useMemo(() => O.findIndex((we) => we.toastId === A.id) || 0, [
2526
+ const { invert: S, toast: A, unstyled: _, interacting: P, setHeights: C, visibleToasts: R, heights: O, index: k, toasts: L, expanded: N, removeToast: I, defaultRichColors: j, closeButton: D, style: W, cancelButtonStyle: $, actionButtonStyle: K, className: Z = "", descriptionClassName: ee = "", duration: q, position: Q, gap: Y, expandByDefault: te, classNames: F, icons: H, closeButtonAriaLabel: B = "Close toast" } = n, [V, J] = React__default.useState(null), [re, ie] = React__default.useState(null), [oe, se] = React__default.useState(!1), [ne, le] = React__default.useState(!1), [de, ue] = React__default.useState(!1), [pe, he] = React__default.useState(!1), [me, ye] = React__default.useState(!1), [be, fe] = React__default.useState(0), [Se, Oe] = React__default.useState(0), Ae = React__default.useRef(A.duration || q || TOAST_LIFETIME), _e = React__default.useRef(null), Re = React__default.useRef(null), Le = k === 0, Ce = k + 1 <= R, Ie = A.type, Me = A.dismissible !== !1, Pe = A.className || "", $e = A.descriptionClassName || "", De = React__default.useMemo(() => O.findIndex((we) => we.toastId === A.id) || 0, [
2527
2527
  O,
2528
2528
  A.id
2529
2529
  ]), Ue = React__default.useMemo(() => {
@@ -2646,7 +2646,7 @@ const Toast = (n) => {
2646
2646
  ref: Re,
2647
2647
  className: cn$1(Z, Pe, F?.toast, A == null || (u = A.classNames) == null ? void 0 : u.toast, F?.default, F?.[Ie], A == null || (d = A.classNames) == null ? void 0 : d[Ie]),
2648
2648
  "data-sonner-toast": "",
2649
- "data-rich-colors": (rt = A.richColors) != null ? rt : V,
2649
+ "data-rich-colors": (rt = A.richColors) != null ? rt : j,
2650
2650
  "data-styled": !(A.jsx || A.unstyled || _),
2651
2651
  "data-mounted": oe,
2652
2652
  "data-promise": !!A.promise,
@@ -2687,9 +2687,9 @@ const Toast = (n) => {
2687
2687
  var we, Ve, ke;
2688
2688
  if (pe || !Me) return;
2689
2689
  qe.current = null;
2690
- const He = Number(((we = Re.current) == null ? void 0 : we.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), et = Number(((Ve = Re.current) == null ? void 0 : Ve.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Ke = (/* @__PURE__ */ new Date()).getTime() - ((ke = _e.current) == null ? void 0 : ke.getTime()), nt = j === "x" ? He : et, pt = Math.abs(nt) / Ke;
2690
+ const He = Number(((we = Re.current) == null ? void 0 : we.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), et = Number(((Ve = Re.current) == null ? void 0 : Ve.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Ke = (/* @__PURE__ */ new Date()).getTime() - ((ke = _e.current) == null ? void 0 : ke.getTime()), nt = V === "x" ? He : et, pt = Math.abs(nt) / Ke;
2691
2691
  if (Math.abs(nt) >= SWIPE_THRESHOLD || pt > 0.11) {
2692
- fe(je.current), A.onDismiss == null || A.onDismiss.call(A, A), ie(j === "x" ? He > 0 ? "right" : "left" : et > 0 ? "down" : "up"), ze(), he(!0);
2692
+ fe(je.current), A.onDismiss == null || A.onDismiss.call(A, A), ie(V === "x" ? He > 0 ? "right" : "left" : et > 0 ? "down" : "up"), ze(), he(!0);
2693
2693
  return;
2694
2694
  } else {
2695
2695
  var at, ct;
@@ -2703,13 +2703,13 @@ const Toast = (n) => {
2703
2703
  const Ke = we.clientY - qe.current.y, nt = we.clientX - qe.current.x;
2704
2704
  var pt;
2705
2705
  const at = (pt = n.swipeDirections) != null ? pt : getDefaultSwipeDirections(Q);
2706
- !j && (Math.abs(nt) > 1 || Math.abs(Ke) > 1) && J(Math.abs(nt) > Math.abs(Ke) ? "x" : "y");
2706
+ !V && (Math.abs(nt) > 1 || Math.abs(Ke) > 1) && J(Math.abs(nt) > Math.abs(Ke) ? "x" : "y");
2707
2707
  let ct = {
2708
2708
  x: 0,
2709
2709
  y: 0
2710
2710
  };
2711
2711
  const ut = (st) => 1 / (1.5 + Math.abs(st) / 20);
2712
- if (j === "y") {
2712
+ if (V === "y") {
2713
2713
  if (at.includes("top") || at.includes("bottom"))
2714
2714
  if (at.includes("top") && Ke < 0 || at.includes("bottom") && Ke > 0)
2715
2715
  ct.y = Ke;
@@ -2717,7 +2717,7 @@ const Toast = (n) => {
2717
2717
  const st = Ke * ut(Ke);
2718
2718
  ct.y = Math.abs(st) < Math.abs(Ke) ? st : Ke;
2719
2719
  }
2720
- } else if (j === "x" && (at.includes("left") || at.includes("right")))
2720
+ } else if (V === "x" && (at.includes("left") || at.includes("right")))
2721
2721
  if (at.includes("left") && nt < 0 || at.includes("right") && nt > 0)
2722
2722
  ct.x = nt;
2723
2723
  else {
@@ -2801,7 +2801,7 @@ const Toaster$1 = /* @__PURE__ */ React__default.forwardRef(function(u, d) {
2801
2801
  const { id: p, invert: m, position: g = "bottom-right", hotkey: y = [
2802
2802
  "altKey",
2803
2803
  "KeyT"
2804
- ], expand: b, closeButton: E, className: T, offset: S, mobileOffset: A, theme: _ = "light", richColors: P, duration: C, style: R, visibleToasts: O = VISIBLE_TOASTS_AMOUNT, toastOptions: k, dir: L = getDocumentDirection(), gap: N = GAP, icons: I, containerAriaLabel: V = "Notifications" } = u, [D, W] = React__default.useState([]), $ = React__default.useMemo(() => p ? D.filter((oe) => oe.toasterId === p) : D.filter((oe) => !oe.toasterId), [
2804
+ ], expand: b, closeButton: E, className: T, offset: S, mobileOffset: A, theme: _ = "light", richColors: P, duration: C, style: R, visibleToasts: O = VISIBLE_TOASTS_AMOUNT, toastOptions: k, dir: L = getDocumentDirection(), gap: N = GAP, icons: I, containerAriaLabel: j = "Notifications" } = u, [D, W] = React__default.useState([]), $ = React__default.useMemo(() => p ? D.filter((oe) => oe.toasterId === p) : D.filter((oe) => !oe.toasterId), [
2805
2805
  D,
2806
2806
  p
2807
2807
  ]), K = React__default.useMemo(() => Array.from(new Set([
@@ -2809,7 +2809,7 @@ const Toaster$1 = /* @__PURE__ */ React__default.forwardRef(function(u, d) {
2809
2809
  ].concat($.filter((oe) => oe.position).map((oe) => oe.position)))), [
2810
2810
  $,
2811
2811
  g
2812
- ]), [Z, ee] = React__default.useState([]), [q, Q] = React__default.useState(!1), [Y, te] = React__default.useState(!1), [F, H] = React__default.useState(_ !== "system" ? _ : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), B = React__default.useRef(null), j = y.join("+").replace(/Key/g, "").replace(/Digit/g, ""), J = React__default.useRef(null), re = React__default.useRef(!1), ie = React__default.useCallback((oe) => {
2812
+ ]), [Z, ee] = React__default.useState([]), [q, Q] = React__default.useState(!1), [Y, te] = React__default.useState(!1), [F, H] = React__default.useState(_ !== "system" ? _ : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), B = React__default.useRef(null), V = y.join("+").replace(/Key/g, "").replace(/Digit/g, ""), J = React__default.useRef(null), re = React__default.useRef(!1), ie = React__default.useCallback((oe) => {
2813
2813
  W((se) => {
2814
2814
  var ne;
2815
2815
  return (ne = se.find((le) => le.id === oe.id)) != null && ne.delete || ToastState.dismiss(oe.id), se.filter(({ id: le }) => le !== oe.id);
@@ -2894,7 +2894,7 @@ const Toaster$1 = /* @__PURE__ */ React__default.forwardRef(function(u, d) {
2894
2894
  ]), // Remove item from normal navigation flow, only available via hotkey
2895
2895
  /* @__PURE__ */ React__default.createElement("section", {
2896
2896
  ref: d,
2897
- "aria-label": `${V} ${j}`,
2897
+ "aria-label": `${j} ${V}`,
2898
2898
  tabIndex: -1,
2899
2899
  "aria-live": "polite",
2900
2900
  "aria-relevant": "additions text",
@@ -3527,10 +3527,10 @@ function createCollection(n) {
3527
3527
  T.displayName = b;
3528
3528
  const S = n + "CollectionItemSlot", A = "data-radix-collection-item", _ = /* @__PURE__ */ createSlot$6(S), P = React__default.forwardRef(
3529
3529
  (R, O) => {
3530
- const { scope: k, children: L, ...N } = R, I = React__default.useRef(null), V = useComposedRefs(O, I), D = g(S, k);
3530
+ const { scope: k, children: L, ...N } = R, I = React__default.useRef(null), j = useComposedRefs(O, I), D = g(S, k);
3531
3531
  return React__default.useEffect(() => (D.itemMap.set(I, { ref: I, ...N }), () => {
3532
3532
  D.itemMap.delete(I);
3533
- })), /* @__PURE__ */ jsx(_, { [A]: "", ref: V, children: L });
3533
+ })), /* @__PURE__ */ jsx(_, { [A]: "", ref: j, children: L });
3534
3534
  }
3535
3535
  );
3536
3536
  P.displayName = S;
@@ -3714,7 +3714,7 @@ var RovingFocusGroupImpl = React.forwardRef((n, u) => {
3714
3714
  defaultProp: b ?? null,
3715
3715
  onChange: E,
3716
3716
  caller: GROUP_NAME$3
3717
- }), [k, L] = React.useState(!1), N = useCallbackRef$1(T), I = useCollection$2(d), V = React.useRef(!1), [D, W] = React.useState(0);
3717
+ }), [k, L] = React.useState(!1), N = useCallbackRef$1(T), I = useCollection$2(d), j = React.useRef(!1), [D, W] = React.useState(0);
3718
3718
  return React.useEffect(() => {
3719
3719
  const $ = _.current;
3720
3720
  if ($)
@@ -3749,10 +3749,10 @@ var RovingFocusGroupImpl = React.forwardRef((n, u) => {
3749
3749
  ref: P,
3750
3750
  style: { outline: "none", ...n.style },
3751
3751
  onMouseDown: composeEventHandlers(n.onMouseDown, () => {
3752
- V.current = !0;
3752
+ j.current = !0;
3753
3753
  }),
3754
3754
  onFocus: composeEventHandlers(n.onFocus, ($) => {
3755
- const K = !V.current;
3755
+ const K = !j.current;
3756
3756
  if ($.target === $.currentTarget && K && !k) {
3757
3757
  const Z = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS$1);
3758
3758
  if ($.currentTarget.dispatchEvent(Z), !Z.defaultPrevented) {
@@ -3762,7 +3762,7 @@ var RovingFocusGroupImpl = React.forwardRef((n, u) => {
3762
3762
  focusFirst$2(te, S);
3763
3763
  }
3764
3764
  }
3765
- V.current = !1;
3765
+ j.current = !1;
3766
3766
  }),
3767
3767
  onBlur: composeEventHandlers(n.onBlur, () => L(!1))
3768
3768
  }
@@ -4413,9 +4413,9 @@ const concatArrays = (n, u) => {
4413
4413
  if (y.indexOf(I) > -1)
4414
4414
  continue;
4415
4415
  y.push(I);
4416
- const V = m(k, O);
4417
- for (let D = 0; D < V.length; ++D) {
4418
- const W = V[D];
4416
+ const j = m(k, O);
4417
+ for (let D = 0; D < j.length; ++D) {
4418
+ const W = j[D];
4419
4419
  y.push(N + W);
4420
4420
  }
4421
4421
  E = S + (E.length > 0 ? " " + E : E);
@@ -4479,9 +4479,9 @@ const concatArrays = (n, u) => {
4479
4479
  "bottom-left",
4480
4480
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
4481
4481
  "left-bottom"
4482
- ], V = () => [...I(), isArbitraryVariable, isArbitraryValue], D = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], $ = () => [isArbitraryVariable, isArbitraryValue, E], K = () => [isFraction, "full", "auto", ...$()], Z = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], ee = () => ["auto", {
4482
+ ], j = () => [...I(), isArbitraryVariable, isArbitraryValue], D = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], $ = () => [isArbitraryVariable, isArbitraryValue, E], K = () => [isFraction, "full", "auto", ...$()], Z = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], ee = () => ["auto", {
4483
4483
  span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
4484
- }, isInteger, isArbitraryVariable, isArbitraryValue], q = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], Q = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], F = () => ["auto", ...$()], H = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...$()], B = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...$()], j = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...$()], J = () => [n, isArbitraryVariable, isArbitraryValue], re = () => [...I(), isArbitraryVariablePosition, isArbitraryPosition, {
4484
+ }, isInteger, isArbitraryVariable, isArbitraryValue], q = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], Q = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], F = () => ["auto", ...$()], H = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...$()], B = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...$()], V = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...$()], J = () => [n, isArbitraryVariable, isArbitraryValue], re = () => [...I(), isArbitraryVariablePosition, isArbitraryPosition, {
4485
4485
  position: [isArbitraryVariable, isArbitraryValue]
4486
4486
  }], ie = () => ["no-repeat", {
4487
4487
  repeat: ["", "x", "y", "space", "round"]
@@ -4626,7 +4626,7 @@ const concatArrays = (n, u) => {
4626
4626
  * @see https://tailwindcss.com/docs/object-position
4627
4627
  */
4628
4628
  "object-position": [{
4629
- object: V()
4629
+ object: j()
4630
4630
  }],
4631
4631
  /**
4632
4632
  * Overflow
@@ -5208,21 +5208,21 @@ const concatArrays = (n, u) => {
5208
5208
  * @see https://tailwindcss.com/docs/height
5209
5209
  */
5210
5210
  "block-size": [{
5211
- block: ["auto", ...j()]
5211
+ block: ["auto", ...V()]
5212
5212
  }],
5213
5213
  /**
5214
5214
  * Min-Block Size
5215
5215
  * @see https://tailwindcss.com/docs/min-height
5216
5216
  */
5217
5217
  "min-block-size": [{
5218
- "min-block": ["auto", ...j()]
5218
+ "min-block": ["auto", ...V()]
5219
5219
  }],
5220
5220
  /**
5221
5221
  * Max-Block Size
5222
5222
  * @see https://tailwindcss.com/docs/max-height
5223
5223
  */
5224
5224
  "max-block-size": [{
5225
- "max-block": ["none", ...j()]
5225
+ "max-block": ["none", ...V()]
5226
5226
  }],
5227
5227
  /**
5228
5228
  * Width
@@ -6573,7 +6573,7 @@ const concatArrays = (n, u) => {
6573
6573
  * @see https://tailwindcss.com/docs/perspective-origin
6574
6574
  */
6575
6575
  "perspective-origin": [{
6576
- "perspective-origin": V()
6576
+ "perspective-origin": j()
6577
6577
  }],
6578
6578
  /**
6579
6579
  * Rotate
@@ -6669,7 +6669,7 @@ const concatArrays = (n, u) => {
6669
6669
  * @see https://tailwindcss.com/docs/transform-origin
6670
6670
  */
6671
6671
  "transform-origin": [{
6672
- origin: V()
6672
+ origin: j()
6673
6673
  }],
6674
6674
  /**
6675
6675
  * Transform Style
@@ -8193,8 +8193,8 @@ function equalObjects(n, u, d, p, m, g) {
8193
8193
  O || (O = _ == "constructor");
8194
8194
  }
8195
8195
  if (R && !O) {
8196
- var I = n.constructor, V = u.constructor;
8197
- I != V && "constructor" in n && "constructor" in u && !(typeof I == "function" && I instanceof I && typeof V == "function" && V instanceof V) && (R = !1);
8196
+ var I = n.constructor, j = u.constructor;
8197
+ I != j && "constructor" in n && "constructor" in u && !(typeof I == "function" && I instanceof I && typeof j == "function" && j instanceof j) && (R = !1);
8198
8198
  }
8199
8199
  return g.delete(n), g.delete(u), R;
8200
8200
  }
@@ -8344,7 +8344,7 @@ function debounce$2(n, u, d) {
8344
8344
  function I() {
8345
8345
  return b === void 0 ? y : L(now());
8346
8346
  }
8347
- function V() {
8347
+ function j() {
8348
8348
  var D = now(), W = O(D);
8349
8349
  if (p = arguments, m = this, E = D, W) {
8350
8350
  if (b === void 0)
@@ -8354,7 +8354,7 @@ function debounce$2(n, u, d) {
8354
8354
  }
8355
8355
  return b === void 0 && (b = setTimeout(k, u)), y;
8356
8356
  }
8357
- return V.cancel = N, V.flush = I, V;
8357
+ return j.cancel = N, j.flush = I, j;
8358
8358
  }
8359
8359
  function last(n) {
8360
8360
  var u = n == null ? 0 : n.length;
@@ -8736,7 +8736,7 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
8736
8736
  onInteractOutside: y,
8737
8737
  onDismiss: b,
8738
8738
  ...E
8739
- } = n, T = React.useContext(DismissableLayerContext), [S, A] = React.useState(null), _ = S?.ownerDocument ?? globalThis?.document, [, P] = React.useState({}), C = useComposedRefs(u, (W) => A(W)), R = Array.from(T.layers), [O] = [...T.layersWithOutsidePointerEventsDisabled].slice(-1), k = R.indexOf(O), L = S ? R.indexOf(S) : -1, N = T.layersWithOutsidePointerEventsDisabled.size > 0, I = L >= k, V = usePointerDownOutside((W) => {
8739
+ } = n, T = React.useContext(DismissableLayerContext), [S, A] = React.useState(null), _ = S?.ownerDocument ?? globalThis?.document, [, P] = React.useState({}), C = useComposedRefs(u, (W) => A(W)), R = Array.from(T.layers), [O] = [...T.layersWithOutsidePointerEventsDisabled].slice(-1), k = R.indexOf(O), L = S ? R.indexOf(S) : -1, N = T.layersWithOutsidePointerEventsDisabled.size > 0, I = L >= k, j = usePointerDownOutside((W) => {
8740
8740
  const $ = W.target, K = [...T.branches].some((Z) => Z.contains($));
8741
8741
  !I || K || (m?.(W), y?.(W), W.defaultPrevented || b?.());
8742
8742
  }, _), D = useFocusOutside((W) => {
@@ -8768,7 +8768,7 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
8768
8768
  onBlurCapture: composeEventHandlers(n.onBlurCapture, D.onBlurCapture),
8769
8769
  onPointerDownCapture: composeEventHandlers(
8770
8770
  n.onPointerDownCapture,
8771
- V.onPointerDownCapture
8771
+ j.onPointerDownCapture
8772
8772
  )
8773
8773
  }
8774
8774
  );
@@ -8879,8 +8879,8 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount", AUTOFOCUS_ON_UNMOUNT = "
8879
8879
  I !== null && (b.contains(I) || focus(A.current, { select: !0 }));
8880
8880
  }, k = function(N) {
8881
8881
  if (document.activeElement === document.body)
8882
- for (const V of N)
8883
- V.removedNodes.length > 0 && focus(b);
8882
+ for (const j of N)
8883
+ j.removedNodes.length > 0 && focus(b);
8884
8884
  };
8885
8885
  document.addEventListener("focusin", R), document.addEventListener("focusout", O);
8886
8886
  const L = new MutationObserver(k);
@@ -9163,17 +9163,17 @@ async function detectOverflow$1(n, u) {
9163
9163
  } : {
9164
9164
  x: 1,
9165
9165
  y: 1
9166
- }, V = rectToClientRect$1(g.convertOffsetParentRelativeRectToViewportRelativeRect ? await g.convertOffsetParentRelativeRectToViewportRelativeRect({
9166
+ }, j = rectToClientRect$1(g.convertOffsetParentRelativeRectToViewportRelativeRect ? await g.convertOffsetParentRelativeRectToViewportRelativeRect({
9167
9167
  elements: b,
9168
9168
  rect: L,
9169
9169
  offsetParent: N,
9170
9170
  strategy: E
9171
9171
  }) : L);
9172
9172
  return {
9173
- top: (k.top - V.top + C.top) / I.y,
9174
- bottom: (V.bottom - k.bottom + C.bottom) / I.y,
9175
- left: (k.left - V.left + C.left) / I.x,
9176
- right: (V.right - k.right + C.right) / I.x
9173
+ top: (k.top - j.top + C.top) / I.y,
9174
+ bottom: (j.bottom - k.bottom + C.bottom) / I.y,
9175
+ left: (k.left - j.left + C.left) / I.x,
9176
+ right: (j.right - k.right + C.right) / I.x
9177
9177
  };
9178
9178
  }
9179
9179
  const MAX_RESET_COUNT = 50, computePosition$1 = async (n, u, d) => {
@@ -9205,7 +9205,7 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (n, u, d) => {
9205
9205
  } = O, {
9206
9206
  x: N,
9207
9207
  y: I,
9208
- data: V,
9208
+ data: j,
9209
9209
  reset: D
9210
9210
  } = await L({
9211
9211
  x: S,
@@ -9223,7 +9223,7 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (n, u, d) => {
9223
9223
  });
9224
9224
  S = N ?? S, A = I ?? A, C[k] = {
9225
9225
  ...C[k],
9226
- ...V
9226
+ ...j
9227
9227
  }, D && P < MAX_RESET_COUNT && (P++, typeof D == "object" && (D.placement && (_ = D.placement), D.rects && (T = D.rects === !0 ? await y.getElementRects({
9228
9228
  reference: n,
9229
9229
  floating: u,
@@ -9261,10 +9261,10 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (n, u, d) => {
9261
9261
  const A = getPaddingObject(S), _ = {
9262
9262
  x: d,
9263
9263
  y: p
9264
- }, P = getAlignmentAxis(m), C = getAxisLength(P), R = await y.getDimensions(T), O = P === "y", k = O ? "top" : "left", L = O ? "bottom" : "right", N = O ? "clientHeight" : "clientWidth", I = g.reference[C] + g.reference[P] - _[P] - g.floating[C], V = _[P] - g.reference[P], D = await (y.getOffsetParent == null ? void 0 : y.getOffsetParent(T));
9264
+ }, P = getAlignmentAxis(m), C = getAxisLength(P), R = await y.getDimensions(T), O = P === "y", k = O ? "top" : "left", L = O ? "bottom" : "right", N = O ? "clientHeight" : "clientWidth", I = g.reference[C] + g.reference[P] - _[P] - g.floating[C], j = _[P] - g.reference[P], D = await (y.getOffsetParent == null ? void 0 : y.getOffsetParent(T));
9265
9265
  let W = D ? D[N] : 0;
9266
9266
  (!W || !await (y.isElement == null ? void 0 : y.isElement(D))) && (W = b.floating[N] || g.floating[C]);
9267
- const $ = I / 2 - V / 2, K = W / 2 - R[C] / 2 - 1, Z = min$1(A[k], K), ee = min$1(A[L], K), q = Z, Q = W - R[C] - ee, Y = W / 2 - R[C] / 2 + $, te = clamp(q, Y, Q), F = !E.arrow && getAlignment(m) != null && Y !== te && g.reference[C] / 2 - (Y < q ? Z : ee) - R[C] / 2 < 0, H = F ? Y < q ? Y - q : Y - Q : 0;
9267
+ const $ = I / 2 - j / 2, K = W / 2 - R[C] / 2 - 1, Z = min$1(A[k], K), ee = min$1(A[L], K), q = Z, Q = W - R[C] - ee, Y = W / 2 - R[C] / 2 + $, te = clamp(q, Y, Q), F = !E.arrow && getAlignment(m) != null && Y !== te && g.reference[C] / 2 - (Y < q ? Z : ee) - R[C] / 2 < 0, H = F ? Y < q ? Y - q : Y - Q : 0;
9268
9268
  return {
9269
9269
  [P]: _[P] + H,
9270
9270
  data: {
@@ -9301,9 +9301,9 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (n, u, d) => {
9301
9301
  } = evaluate(n, u);
9302
9302
  if ((d = g.arrow) != null && d.alignmentOffset)
9303
9303
  return {};
9304
- const k = getSide(m), L = getSideAxis(b), N = getSide(b) === b, I = await (E.isRTL == null ? void 0 : E.isRTL(T.floating)), V = _ || (N || !R ? [getOppositePlacement$1(b)] : getExpandedPlacements(b)), D = C !== "none";
9305
- !_ && D && V.push(...getOppositeAxisPlacements(b, R, C, I));
9306
- const W = [b, ...V], $ = await E.detectOverflow(u, O), K = [];
9304
+ const k = getSide(m), L = getSideAxis(b), N = getSide(b) === b, I = await (E.isRTL == null ? void 0 : E.isRTL(T.floating)), j = _ || (N || !R ? [getOppositePlacement$1(b)] : getExpandedPlacements(b)), D = C !== "none";
9305
+ !_ && D && j.push(...getOppositeAxisPlacements(b, R, C, I));
9306
+ const W = [b, ...j], $ = await E.detectOverflow(u, O), K = [];
9307
9307
  let Z = ((p = g.flip) == null ? void 0 : p.overflows) || [];
9308
9308
  if (S && K.push($[k]), A) {
9309
9309
  const Y = getAlignmentSides(m, y, I);
@@ -9334,13 +9334,13 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (n, u, d) => {
9334
9334
  var Q;
9335
9335
  const H = (Q = Z.filter((B) => {
9336
9336
  if (D) {
9337
- const j = getSideAxis(B.placement);
9338
- return j === L || // Create a bias to the `y` side axis due to horizontal
9337
+ const V = getSideAxis(B.placement);
9338
+ return V === L || // Create a bias to the `y` side axis due to horizontal
9339
9339
  // reading directions favoring greater width.
9340
- j === "y";
9340
+ V === "y";
9341
9341
  }
9342
9342
  return !0;
9343
- }).map((B) => [B.placement, B.overflows.filter((j) => j > 0).reduce((j, J) => j + J, 0)]).sort((B, j) => B[1] - j[1])[0]) == null ? void 0 : Q[0];
9343
+ }).map((B) => [B.placement, B.overflows.filter((V) => V > 0).reduce((V, J) => V + J, 0)]).sort((B, V) => B[1] - V[1])[0]) == null ? void 0 : Q[0];
9344
9344
  H && (F = H);
9345
9345
  break;
9346
9346
  }
@@ -9547,13 +9547,13 @@ const offset$4 = function(n) {
9547
9547
  ...R
9548
9548
  };
9549
9549
  if (E) {
9550
- const N = _ === "y" ? "height" : "width", I = g.reference[_] - g.floating[N] + O.mainAxis, V = g.reference[_] + g.reference[N] - O.mainAxis;
9551
- P < I ? P = I : P > V && (P = V);
9550
+ const N = _ === "y" ? "height" : "width", I = g.reference[_] - g.floating[N] + O.mainAxis, j = g.reference[_] + g.reference[N] - O.mainAxis;
9551
+ P < I ? P = I : P > j && (P = j);
9552
9552
  }
9553
9553
  if (T) {
9554
9554
  var k, L;
9555
- const N = _ === "y" ? "width" : "height", I = originSides.has(getSide(m)), V = g.reference[A] - g.floating[N] + (I && ((k = y.offset) == null ? void 0 : k[A]) || 0) + (I ? 0 : O.crossAxis), D = g.reference[A] + g.reference[N] + (I ? 0 : ((L = y.offset) == null ? void 0 : L[A]) || 0) - (I ? O.crossAxis : 0);
9556
- C < V ? C = V : C > D && (C = D);
9555
+ const N = _ === "y" ? "width" : "height", I = originSides.has(getSide(m)), j = g.reference[A] - g.floating[N] + (I && ((k = y.offset) == null ? void 0 : k[A]) || 0) + (I ? 0 : O.crossAxis), D = g.reference[A] + g.reference[N] + (I ? 0 : ((L = y.offset) == null ? void 0 : L[A]) || 0) - (I ? O.crossAxis : 0);
9556
+ C < j ? C = j : C > D && (C = D);
9557
9557
  }
9558
9558
  return {
9559
9559
  [_]: P,
@@ -9582,8 +9582,8 @@ const offset$4 = function(n) {
9582
9582
  } = g.floating;
9583
9583
  let O, k;
9584
9584
  A === "top" || A === "bottom" ? (O = A, k = _ === (await (y.isRTL == null ? void 0 : y.isRTL(b.floating)) ? "start" : "end") ? "left" : "right") : (k = A, O = _ === "end" ? "top" : "bottom");
9585
- const L = R - S.top - S.bottom, N = C - S.left - S.right, I = min$1(R - S[O], L), V = min$1(C - S[k], N), D = !u.middlewareData.shift;
9586
- let W = I, $ = V;
9585
+ const L = R - S.top - S.bottom, N = C - S.left - S.right, I = min$1(R - S[O], L), j = min$1(C - S[k], N), D = !u.middlewareData.shift;
9586
+ let W = I, $ = j;
9587
9587
  if ((d = u.middlewareData.shift) != null && d.enabled.x && ($ = N), (p = u.middlewareData.shift) != null && p.enabled.y && (W = L), D && !_) {
9588
9588
  const Z = max$1(S.left, 0), ee = max$1(S.right, 0), q = max$1(S.top, 0), Q = max$1(S.bottom, 0);
9589
9589
  P ? $ = C - 2 * (Z !== 0 || ee !== 0 ? Z + ee : max$1(S.left, S.right)) : W = R - 2 * (q !== 0 || Q !== 0 ? q + Q : max$1(S.top, S.bottom));
@@ -10030,7 +10030,7 @@ function observeMove(n, u) {
10030
10030
  threshold: max$1(0, min$1(1, E)) || 1
10031
10031
  };
10032
10032
  let I = !0;
10033
- function V(D) {
10033
+ function j(D) {
10034
10034
  const W = D[0].intersectionRatio;
10035
10035
  if (W !== E) {
10036
10036
  if (!I)
@@ -10042,13 +10042,13 @@ function observeMove(n, u) {
10042
10042
  W === 1 && !rectsAreEqual(T, n.getBoundingClientRect()) && y(), I = !1;
10043
10043
  }
10044
10044
  try {
10045
- d = new IntersectionObserver(V, {
10045
+ d = new IntersectionObserver(j, {
10046
10046
  ...N,
10047
10047
  // Handle <iframe>s
10048
10048
  root: m.ownerDocument
10049
10049
  });
10050
10050
  } catch {
10051
- d = new IntersectionObserver(V, N);
10051
+ d = new IntersectionObserver(j, N);
10052
10052
  }
10053
10053
  d.observe(n);
10054
10054
  }
@@ -10175,7 +10175,7 @@ function useFloating(n) {
10175
10175
  B !== D.current && (D.current = B, R(B));
10176
10176
  }, []), N = React.useCallback((B) => {
10177
10177
  B !== W.current && (W.current = B, k(B));
10178
- }, []), I = g || C, V = y || O, D = React.useRef(null), W = React.useRef(null), $ = React.useRef(S), K = E != null, Z = useLatestRef(E), ee = useLatestRef(m), q = useLatestRef(T), Q = React.useCallback(() => {
10178
+ }, []), I = g || C, j = y || O, D = React.useRef(null), W = React.useRef(null), $ = React.useRef(S), K = E != null, Z = useLatestRef(E), ee = useLatestRef(m), q = useLatestRef(T), Q = React.useCallback(() => {
10179
10179
  if (!D.current || !W.current)
10180
10180
  return;
10181
10181
  const B = {
@@ -10183,9 +10183,9 @@ function useFloating(n) {
10183
10183
  strategy: d,
10184
10184
  middleware: _
10185
10185
  };
10186
- ee.current && (B.platform = ee.current), computePosition(D.current, W.current, B).then((j) => {
10186
+ ee.current && (B.platform = ee.current), computePosition(D.current, W.current, B).then((V) => {
10187
10187
  const J = {
10188
- ...j,
10188
+ ...V,
10189
10189
  // The floating element's position may be recomputed while it's closed
10190
10190
  // but still mounted (such as when transitioning out). To ensure
10191
10191
  // `isPositioned` will be `false` initially on the next open, avoid
@@ -10207,12 +10207,12 @@ function useFloating(n) {
10207
10207
  index(() => (Y.current = !0, () => {
10208
10208
  Y.current = !1;
10209
10209
  }), []), index(() => {
10210
- if (I && (D.current = I), V && (W.current = V), I && V) {
10210
+ if (I && (D.current = I), j && (W.current = j), I && j) {
10211
10211
  if (Z.current)
10212
- return Z.current(I, V, Q);
10212
+ return Z.current(I, j, Q);
10213
10213
  Q();
10214
10214
  }
10215
- }, [I, V, Q, Z, K]);
10215
+ }, [I, j, Q, Z, K]);
10216
10216
  const te = React.useMemo(() => ({
10217
10217
  reference: D,
10218
10218
  floating: W,
@@ -10220,8 +10220,8 @@ function useFloating(n) {
10220
10220
  setFloating: N
10221
10221
  }), [L, N]), F = React.useMemo(() => ({
10222
10222
  reference: I,
10223
- floating: V
10224
- }), [I, V]), H = React.useMemo(() => {
10223
+ floating: j
10224
+ }), [I, j]), H = React.useMemo(() => {
10225
10225
  const B = {
10226
10226
  position: d,
10227
10227
  left: 0,
@@ -10229,16 +10229,16 @@ function useFloating(n) {
10229
10229
  };
10230
10230
  if (!F.floating)
10231
10231
  return B;
10232
- const j = roundByDPR(F.floating, S.x), J = roundByDPR(F.floating, S.y);
10232
+ const V = roundByDPR(F.floating, S.x), J = roundByDPR(F.floating, S.y);
10233
10233
  return b ? {
10234
10234
  ...B,
10235
- transform: "translate(" + j + "px, " + J + "px)",
10235
+ transform: "translate(" + V + "px, " + J + "px)",
10236
10236
  ...getDPR(F.floating) >= 1.5 && {
10237
10237
  willChange: "transform"
10238
10238
  }
10239
10239
  } : {
10240
10240
  position: d,
10241
- left: j,
10241
+ left: V,
10242
10242
  top: J
10243
10243
  };
10244
10244
  }, [d, b, F.floating, S.x, S.y]);
@@ -10388,7 +10388,7 @@ var CONTENT_NAME$6 = "PopperContent", [PopperContentProvider, useContentContext]
10388
10388
  updatePositionStrategy: P = "optimized",
10389
10389
  onPlaced: C,
10390
10390
  ...R
10391
- } = n, O = usePopperContext(CONTENT_NAME$6, d), [k, L] = React.useState(null), N = useComposedRefs(u, (de) => L(de)), [I, V] = React.useState(null), D = useSize(I), W = D?.width ?? 0, $ = D?.height ?? 0, K = p + (g !== "center" ? "-" + g : ""), Z = typeof S == "number" ? S : { top: 0, right: 0, bottom: 0, left: 0, ...S }, ee = Array.isArray(T) ? T : [T], q = ee.length > 0, Q = {
10391
+ } = n, O = usePopperContext(CONTENT_NAME$6, d), [k, L] = React.useState(null), N = useComposedRefs(u, (de) => L(de)), [I, j] = React.useState(null), D = useSize(I), W = D?.width ?? 0, $ = D?.height ?? 0, K = p + (g !== "center" ? "-" + g : ""), Z = typeof S == "number" ? S : { top: 0, right: 0, bottom: 0, left: 0, ...S }, ee = Array.isArray(T) ? T : [T], q = ee.length > 0, Q = {
10392
10392
  padding: Z,
10393
10393
  boundary: ee.filter(isNotNull),
10394
10394
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -10423,7 +10423,7 @@ var CONTENT_NAME$6 = "PopperContent", [PopperContentProvider, useContentContext]
10423
10423
  transformOrigin({ arrowWidth: W, arrowHeight: $ }),
10424
10424
  _ && hide$2({ strategy: "referenceHidden", ...Q })
10425
10425
  ]
10426
- }), [j, J] = getSideAndAlignFromPlacement(F), re = useCallbackRef$1(C);
10426
+ }), [V, J] = getSideAndAlignFromPlacement(F), re = useCallbackRef$1(C);
10427
10427
  useLayoutEffect2(() => {
10428
10428
  H && re?.();
10429
10429
  }, [H, re]);
@@ -10458,15 +10458,15 @@ var CONTENT_NAME$6 = "PopperContent", [PopperContentProvider, useContentContext]
10458
10458
  PopperContentProvider,
10459
10459
  {
10460
10460
  scope: d,
10461
- placedSide: j,
10462
- onArrowChange: V,
10461
+ placedSide: V,
10462
+ onArrowChange: j,
10463
10463
  arrowX: ie,
10464
10464
  arrowY: oe,
10465
10465
  shouldHideArrow: se,
10466
10466
  children: /* @__PURE__ */ jsx(
10467
10467
  Primitive$5.div,
10468
10468
  {
10469
- "data-side": j,
10469
+ "data-side": V,
10470
10470
  "data-align": J,
10471
10471
  ...R,
10472
10472
  ref: N,
@@ -10826,11 +10826,11 @@ var effectCar = createSidecarMedium(), nothing = function() {
10826
10826
  onScrollCapture: nothing,
10827
10827
  onWheelCapture: nothing,
10828
10828
  onTouchMoveCapture: nothing
10829
- }), m = p[0], g = p[1], y = n.forwardProps, b = n.children, E = n.className, T = n.removeScrollBar, S = n.enabled, A = n.shards, _ = n.sideCar, P = n.noRelative, C = n.noIsolation, R = n.inert, O = n.allowPinchZoom, k = n.as, L = k === void 0 ? "div" : k, N = n.gapMode, I = __rest(n, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), V = _, D = useMergeRefs([d, u]), W = __assign$1(__assign$1({}, I), m);
10829
+ }), m = p[0], g = p[1], y = n.forwardProps, b = n.children, E = n.className, T = n.removeScrollBar, S = n.enabled, A = n.shards, _ = n.sideCar, P = n.noRelative, C = n.noIsolation, R = n.inert, O = n.allowPinchZoom, k = n.as, L = k === void 0 ? "div" : k, N = n.gapMode, I = __rest(n, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), j = _, D = useMergeRefs([d, u]), W = __assign$1(__assign$1({}, I), m);
10830
10830
  return React.createElement(
10831
10831
  React.Fragment,
10832
10832
  null,
10833
- S && React.createElement(V, { sideCar: effectCar, removeScrollBar: T, shards: A, noRelative: P, noIsolation: C, inert: R, setCallbacks: g, allowPinchZoom: !!O, lockRef: d, gapMode: N }),
10833
+ S && React.createElement(j, { sideCar: effectCar, removeScrollBar: T, shards: A, noRelative: P, noIsolation: C, inert: R, setCallbacks: g, allowPinchZoom: !!O, lockRef: d, gapMode: N }),
10834
10834
  y ? React.cloneElement(React.Children.only(b), __assign$1(__assign$1({}, W), { ref: D })) : React.createElement(L, __assign$1({}, W, { className: E, ref: D }), b)
10835
10835
  );
10836
10836
  });
@@ -11077,7 +11077,7 @@ function RemoveScrollSideCar(n) {
11077
11077
  var b = React.useCallback(function(R, O) {
11078
11078
  if ("touches" in R && R.touches.length === 2 || R.type === "wheel" && R.ctrlKey)
11079
11079
  return !y.current.allowPinchZoom;
11080
- var k = getTouchXY(R), L = d.current, N = "deltaX" in R ? R.deltaX : L[0] - k[0], I = "deltaY" in R ? R.deltaY : L[1] - k[1], V, D = R.target, W = Math.abs(N) > Math.abs(I) ? "h" : "v";
11080
+ var k = getTouchXY(R), L = d.current, N = "deltaX" in R ? R.deltaX : L[0] - k[0], I = "deltaY" in R ? R.deltaY : L[1] - k[1], j, D = R.target, W = Math.abs(N) > Math.abs(I) ? "h" : "v";
11081
11081
  if ("touches" in R && W === "h" && D.type === "range")
11082
11082
  return !1;
11083
11083
  var $ = window.getSelection(), K = $ && $.anchorNode, Z = K ? K === D || K.contains(D) : !1;
@@ -11086,25 +11086,25 @@ function RemoveScrollSideCar(n) {
11086
11086
  var ee = locationCouldBeScrolled(W, D);
11087
11087
  if (!ee)
11088
11088
  return !0;
11089
- if (ee ? V = W : (V = W === "v" ? "h" : "v", ee = locationCouldBeScrolled(W, D)), !ee)
11089
+ if (ee ? j = W : (j = W === "v" ? "h" : "v", ee = locationCouldBeScrolled(W, D)), !ee)
11090
11090
  return !1;
11091
- if (!p.current && "changedTouches" in R && (N || I) && (p.current = V), !V)
11091
+ if (!p.current && "changedTouches" in R && (N || I) && (p.current = j), !j)
11092
11092
  return !0;
11093
- var q = p.current || V;
11093
+ var q = p.current || j;
11094
11094
  return handleScroll(q, O, R, q === "h" ? N : I);
11095
11095
  }, []), E = React.useCallback(function(R) {
11096
11096
  var O = R;
11097
11097
  if (!(!lockStack.length || lockStack[lockStack.length - 1] !== g)) {
11098
- var k = "deltaY" in O ? getDeltaXY(O) : getTouchXY(O), L = u.current.filter(function(V) {
11099
- return V.name === O.type && (V.target === O.target || O.target === V.shadowParent) && deltaCompare(V.delta, k);
11098
+ var k = "deltaY" in O ? getDeltaXY(O) : getTouchXY(O), L = u.current.filter(function(j) {
11099
+ return j.name === O.type && (j.target === O.target || O.target === j.shadowParent) && deltaCompare(j.delta, k);
11100
11100
  })[0];
11101
11101
  if (L && L.should) {
11102
11102
  O.cancelable && O.preventDefault();
11103
11103
  return;
11104
11104
  }
11105
11105
  if (!L) {
11106
- var N = (y.current.shards || []).map(extractRef).filter(Boolean).filter(function(V) {
11107
- return V.contains(O.target);
11106
+ var N = (y.current.shards || []).map(extractRef).filter(Boolean).filter(function(j) {
11107
+ return j.contains(O.target);
11108
11108
  }), I = N.length > 0 ? b(O, N[0]) : !y.current.noIsolation;
11109
11109
  I && O.cancelable && O.preventDefault();
11110
11110
  }
@@ -11171,7 +11171,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS$1 = [" ",
11171
11171
  disabled: _,
11172
11172
  required: P,
11173
11173
  form: C
11174
- } = n, R = usePopperScope$3(u), [O, k] = React.useState(null), [L, N] = React.useState(null), [I, V] = React.useState(!1), D = useDirection(T), [W, $] = useControllableState({
11174
+ } = n, R = usePopperScope$3(u), [O, k] = React.useState(null), [L, N] = React.useState(null), [I, j] = React.useState(!1), D = useDirection(T), [W, $] = useControllableState({
11175
11175
  prop: p,
11176
11176
  defaultProp: m ?? !1,
11177
11177
  onChange: g,
@@ -11192,7 +11192,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS$1 = [" ",
11192
11192
  valueNode: L,
11193
11193
  onValueNodeChange: N,
11194
11194
  valueNodeHasChildren: I,
11195
- onValueNodeHasChildrenChange: V,
11195
+ onValueNodeHasChildrenChange: j,
11196
11196
  contentId: useId(),
11197
11197
  value: K,
11198
11198
  onValueChange: Z,
@@ -11350,7 +11350,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
11350
11350
  avoidCollisions: O,
11351
11351
  //
11352
11352
  ...k
11353
- } = n, L = useSelectContext(CONTENT_NAME$5, d), [N, I] = React.useState(null), [V, D] = React.useState(null), W = useComposedRefs(u, (de) => I(de)), [$, K] = React.useState(null), [Z, ee] = React.useState(
11353
+ } = n, L = useSelectContext(CONTENT_NAME$5, d), [N, I] = React.useState(null), [j, D] = React.useState(null), W = useComposedRefs(u, (de) => I(de)), [$, K] = React.useState(null), [Z, ee] = React.useState(
11354
11354
  null
11355
11355
  ), q = useCollection$1(d), [Q, Y] = React.useState(!1), te = React.useRef(!1);
11356
11356
  React.useEffect(() => {
@@ -11360,9 +11360,9 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
11360
11360
  (de) => {
11361
11361
  const [ue, ...pe] = q().map((ye) => ye.ref.current), [he] = pe.slice(-1), me = document.activeElement;
11362
11362
  for (const ye of de)
11363
- if (ye === me || (ye?.scrollIntoView({ block: "nearest" }), ye === ue && V && (V.scrollTop = 0), ye === he && V && (V.scrollTop = V.scrollHeight), ye?.focus(), document.activeElement !== me)) return;
11363
+ if (ye === me || (ye?.scrollIntoView({ block: "nearest" }), ye === ue && j && (j.scrollTop = 0), ye === he && j && (j.scrollTop = j.scrollHeight), ye?.focus(), document.activeElement !== me)) return;
11364
11364
  },
11365
- [q, V]
11365
+ [q, j]
11366
11366
  ), H = React.useCallback(
11367
11367
  () => F([$, N]),
11368
11368
  [F, $, N]
@@ -11370,23 +11370,23 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
11370
11370
  React.useEffect(() => {
11371
11371
  Q && H();
11372
11372
  }, [Q, H]);
11373
- const { onOpenChange: B, triggerPointerDownPosRef: j } = L;
11373
+ const { onOpenChange: B, triggerPointerDownPosRef: V } = L;
11374
11374
  React.useEffect(() => {
11375
11375
  if (N) {
11376
11376
  let de = { x: 0, y: 0 };
11377
11377
  const ue = (he) => {
11378
11378
  de = {
11379
- x: Math.abs(Math.round(he.pageX) - (j.current?.x ?? 0)),
11380
- y: Math.abs(Math.round(he.pageY) - (j.current?.y ?? 0))
11379
+ x: Math.abs(Math.round(he.pageX) - (V.current?.x ?? 0)),
11380
+ y: Math.abs(Math.round(he.pageY) - (V.current?.y ?? 0))
11381
11381
  };
11382
11382
  }, pe = (he) => {
11383
- de.x <= 10 && de.y <= 10 ? he.preventDefault() : N.contains(he.target) || B(!1), document.removeEventListener("pointermove", ue), j.current = null;
11383
+ de.x <= 10 && de.y <= 10 ? he.preventDefault() : N.contains(he.target) || B(!1), document.removeEventListener("pointermove", ue), V.current = null;
11384
11384
  };
11385
- return j.current !== null && (document.addEventListener("pointermove", ue), document.addEventListener("pointerup", pe, { capture: !0, once: !0 })), () => {
11385
+ return V.current !== null && (document.addEventListener("pointermove", ue), document.addEventListener("pointerup", pe, { capture: !0, once: !0 })), () => {
11386
11386
  document.removeEventListener("pointermove", ue), document.removeEventListener("pointerup", pe, { capture: !0 });
11387
11387
  };
11388
11388
  }
11389
- }, [N, B, j]), React.useEffect(() => {
11389
+ }, [N, B, V]), React.useEffect(() => {
11390
11390
  const de = () => B(!1);
11391
11391
  return window.addEventListener("blur", de), window.addEventListener("resize", de), () => {
11392
11392
  window.removeEventListener("blur", de), window.removeEventListener("resize", de);
@@ -11424,7 +11424,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
11424
11424
  {
11425
11425
  scope: d,
11426
11426
  content: N,
11427
- viewport: V,
11427
+ viewport: j,
11428
11428
  onViewportChange: D,
11429
11429
  itemRefCallback: ie,
11430
11430
  selectedItem: $,
@@ -11519,7 +11519,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
11519
11519
  ]);
11520
11520
  b.style.minWidth = fe + "px", b.style.right = Ae + "px";
11521
11521
  }
11522
- const ee = _(), q = window.innerHeight - CONTENT_MARGIN * 2, Q = R.scrollHeight, Y = window.getComputedStyle(T), te = parseInt(Y.borderTopWidth, 10), F = parseInt(Y.paddingTop, 10), H = parseInt(Y.borderBottomWidth, 10), B = parseInt(Y.paddingBottom, 10), j = te + F + Q + B + H, J = Math.min(O.offsetHeight * 5, j), re = window.getComputedStyle(R), ie = parseInt(re.paddingTop, 10), oe = parseInt(re.paddingBottom, 10), se = W.top + W.height / 2 - CONTENT_MARGIN, ne = q - se, le = O.offsetHeight / 2, de = O.offsetTop + le, ue = te + F + de, pe = j - ue;
11522
+ const ee = _(), q = window.innerHeight - CONTENT_MARGIN * 2, Q = R.scrollHeight, Y = window.getComputedStyle(T), te = parseInt(Y.borderTopWidth, 10), F = parseInt(Y.paddingTop, 10), H = parseInt(Y.borderBottomWidth, 10), B = parseInt(Y.paddingBottom, 10), V = te + F + Q + B + H, J = Math.min(O.offsetHeight * 5, V), re = window.getComputedStyle(R), ie = parseInt(re.paddingTop, 10), oe = parseInt(re.paddingBottom, 10), se = W.top + W.height / 2 - CONTENT_MARGIN, ne = q - se, le = O.offsetHeight / 2, de = O.offsetTop + le, ue = te + F + de, pe = V - ue;
11523
11523
  if (ue <= se) {
11524
11524
  const me = ee.length > 0 && O === ee[ee.length - 1].ref.current;
11525
11525
  b.style.bottom = "0px";
@@ -11554,9 +11554,9 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
11554
11554
  p
11555
11555
  ]);
11556
11556
  useLayoutEffect2(() => N(), [N]);
11557
- const [I, V] = React.useState();
11557
+ const [I, j] = React.useState();
11558
11558
  useLayoutEffect2(() => {
11559
- T && V(window.getComputedStyle(T).zIndex);
11559
+ T && j(window.getComputedStyle(T).zIndex);
11560
11560
  }, [T]);
11561
11561
  const D = React.useCallback(
11562
11562
  (W) => {
@@ -12673,53 +12673,60 @@ function Skeleton({ className: n, ...u }) {
12673
12673
  );
12674
12674
  }
12675
12675
  const GroupSelector = ({ store: n, onGroupSelect: u }) => {
12676
- const { core: d } = useApi(), [p, m] = useState([]), [g, y] = useState(!0), b = useRef(v4()).current, E = useStore(n, (_) => _.groupId), S = useStore(n, (_) => _.selectedGroupId) ?? E ?? "";
12676
+ const { core: d } = useApi(), [p, m] = useState([]), [g, y] = useState(!0), [b, E] = useState(!1), T = useRef(v4()).current, S = useStore(n, (R) => R.groupId), A = useStore(n, (R) => R.selectedGroupId), _ = useStore(n, (R) => R.enableGroupSelector), P = A ?? S ?? "";
12677
12677
  useEffect(() => {
12678
- let _ = !1;
12678
+ let R = !1;
12679
12679
  return (async () => {
12680
12680
  try {
12681
- const C = await d.fetchConversationList(999, 0);
12682
- if (_) return;
12683
- m(C ?? []);
12681
+ const k = await d.fetchConversationList(999, 0);
12682
+ if (R) return;
12683
+ m(k ?? []);
12684
12684
  } catch {
12685
- if (_) return;
12685
+ if (R) return;
12686
12686
  } finally {
12687
- if (_) return;
12688
- y(!1);
12687
+ R || y(!1);
12689
12688
  }
12690
12689
  })(), () => {
12691
- _ = !0;
12690
+ R = !0;
12692
12691
  };
12693
- }, [d]);
12694
- const A = (_) => {
12695
- n.getState().selectGroup(_), u?.(_);
12692
+ }, [d]), useEffect(() => {
12693
+ if (!g) {
12694
+ if (_ && !P) {
12695
+ E(!0);
12696
+ return;
12697
+ }
12698
+ E(!1);
12699
+ }
12700
+ }, [P, _, g]);
12701
+ const C = (R) => {
12702
+ n.getState().selectGroup(R), E(!1), u?.(R);
12696
12703
  };
12697
- return g ? /* @__PURE__ */ jsx("div", { className: "not-prose flex items-center gap-3", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-8 min-w-48 max-w-80 rounded-md" }) }) : /* @__PURE__ */ jsx("div", { className: "not-prose flex items-center gap-3", children: /* @__PURE__ */ jsxs(Select, { value: S, onValueChange: A, children: [
12704
+ return g ? /* @__PURE__ */ jsx("div", { className: "not-prose flex items-center gap-3", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-8 min-w-48 max-w-80 rounded-md" }) }) : /* @__PURE__ */ jsx("div", { className: "not-prose flex items-center gap-3", children: /* @__PURE__ */ jsxs(Select, { open: b, onOpenChange: E, value: P, onValueChange: C, children: [
12698
12705
  /* @__PURE__ */ jsx(
12699
12706
  SelectTrigger,
12700
12707
  {
12701
12708
  size: "sm",
12702
- id: `group-selector-${S}-${b}`,
12709
+ id: `group-selector-${P}-${T}`,
12703
12710
  className: "bg-background min-w-48 max-w-80 truncate",
12704
12711
  "aria-label": "Select group",
12705
12712
  children: /* @__PURE__ */ jsx(SelectValue, { className: "text-sm max-w-80 truncate", placeholder: "Select a group…" })
12706
12713
  }
12707
12714
  ),
12708
- /* @__PURE__ */ jsx(SelectContent, { align: "start", children: p.map((_) => /* @__PURE__ */ jsxs(
12715
+ /* @__PURE__ */ jsx(SelectContent, { align: "start", children: p.map((R) => /* @__PURE__ */ jsxs(
12709
12716
  SelectItem,
12710
12717
  {
12711
- value: _?.conversation_id,
12712
- title: _?.conversation_detail?.name,
12718
+ value: R?.conversation_id,
12719
+ title: R?.conversation_detail?.name,
12713
12720
  className: "max-w-80 truncate",
12714
12721
  children: [
12715
12722
  /* @__PURE__ */ jsxs(Avatar, { className: "size-6", children: [
12716
- /* @__PURE__ */ jsx(AvatarImage, { src: _?.conversation_detail?.avatar ?? void 0 }),
12717
- /* @__PURE__ */ jsx(AvatarFallback, { children: _?.conversation_detail?.name?.charAt(0) })
12723
+ /* @__PURE__ */ jsx(AvatarImage, { src: R?.conversation_detail?.avatar ?? void 0 }),
12724
+ /* @__PURE__ */ jsx(AvatarFallback, { children: R?.conversation_detail?.name?.charAt(0) })
12718
12725
  ] }),
12719
- /* @__PURE__ */ jsx("span", { className: "text-sm max-w-60 truncate", children: _?.conversation_detail?.name ?? _?.conversation_id })
12726
+ /* @__PURE__ */ jsx("span", { className: "text-sm max-w-60 truncate", children: R?.conversation_detail?.name ?? R?.conversation_id })
12720
12727
  ]
12721
12728
  },
12722
- _?.conversation_id
12729
+ R?.conversation_id
12723
12730
  )) })
12724
12731
  ] }) });
12725
12732
  }, GifIcon = (n) => /* @__PURE__ */ jsx(
@@ -12860,7 +12867,7 @@ var TOOLTIP_NAME = "Tooltip", [TooltipContextProvider, useTooltipContext] = crea
12860
12867
  caller: TOOLTIP_NAME
12861
12868
  }), N = React.useMemo(() => k ? O.current ? "delayed-open" : "instant-open" : "closed", [k]), I = React.useCallback(() => {
12862
12869
  window.clearTimeout(P.current), P.current = 0, O.current = !1, L(!0);
12863
- }, [L]), V = React.useCallback(() => {
12870
+ }, [L]), j = React.useCallback(() => {
12864
12871
  window.clearTimeout(P.current), P.current = 0, L(!1);
12865
12872
  }, [L]), D = React.useCallback(() => {
12866
12873
  window.clearTimeout(P.current), P.current = window.setTimeout(() => {
@@ -12882,10 +12889,10 @@ var TOOLTIP_NAME = "Tooltip", [TooltipContextProvider, useTooltipContext] = crea
12882
12889
  E.isOpenDelayedRef.current ? D() : I();
12883
12890
  }, [E.isOpenDelayedRef, D, I]),
12884
12891
  onTriggerLeave: React.useCallback(() => {
12885
- C ? V() : (window.clearTimeout(P.current), P.current = 0);
12886
- }, [V, C]),
12892
+ C ? j() : (window.clearTimeout(P.current), P.current = 0);
12893
+ }, [j, C]),
12887
12894
  onOpen: I,
12888
- onClose: V,
12895
+ onClose: j,
12889
12896
  disableHoverableContent: C,
12890
12897
  children: d
12891
12898
  }
@@ -12938,8 +12945,8 @@ var CONTENT_NAME$4 = "TooltipContent", TooltipContent$1 = React.forwardRef(
12938
12945
  b(null), A(!1);
12939
12946
  }, [A]), P = React.useCallback(
12940
12947
  (C, R) => {
12941
- const O = C.currentTarget, k = { x: C.clientX, y: C.clientY }, L = getExitSideFromRect(k, O.getBoundingClientRect()), N = getPaddedExitPoints(k, L), I = getPointsFromRect(R.getBoundingClientRect()), V = getHull([...N, ...I]);
12942
- b(V), A(!0);
12948
+ const O = C.currentTarget, k = { x: C.clientX, y: C.clientY }, L = getExitSideFromRect(k, O.getBoundingClientRect()), N = getPaddedExitPoints(k, L), I = getPointsFromRect(R.getBoundingClientRect()), j = getHull([...N, ...I]);
12949
+ b(j), A(!0);
12943
12950
  },
12944
12951
  [A]
12945
12952
  );
@@ -13328,48 +13335,48 @@ var CONTENT_NAME$3 = "MenuContent", [MenuContentProvider, useMenuContentContext]
13328
13335
  onDismiss: P,
13329
13336
  disableOutsideScroll: C,
13330
13337
  ...R
13331
- } = n, O = useMenuContext(CONTENT_NAME$3, d), k = useMenuRootContext(CONTENT_NAME$3, d), L = usePopperScope$1(d), N = useRovingFocusGroupScope(d), I = useCollection(d), [V, D] = React.useState(null), W = React.useRef(null), $ = useComposedRefs(u, W, O.onContentChange), K = React.useRef(0), Z = React.useRef(""), ee = React.useRef(0), q = React.useRef(null), Q = React.useRef("right"), Y = React.useRef(0), te = C ? ReactRemoveScroll : React.Fragment, F = C ? { as: Slot$2, allowPinchZoom: !0 } : void 0, H = (j) => {
13332
- const J = Z.current + j, re = I().filter((de) => !de.disabled), ie = document.activeElement, oe = re.find((de) => de.ref.current === ie)?.textValue, se = re.map((de) => de.textValue), ne = getNextMatch(se, J, oe), le = re.find((de) => de.textValue === ne)?.ref.current;
13338
+ } = n, O = useMenuContext(CONTENT_NAME$3, d), k = useMenuRootContext(CONTENT_NAME$3, d), L = usePopperScope$1(d), N = useRovingFocusGroupScope(d), I = useCollection(d), [j, D] = React.useState(null), W = React.useRef(null), $ = useComposedRefs(u, W, O.onContentChange), K = React.useRef(0), Z = React.useRef(""), ee = React.useRef(0), q = React.useRef(null), Q = React.useRef("right"), Y = React.useRef(0), te = C ? ReactRemoveScroll : React.Fragment, F = C ? { as: Slot$2, allowPinchZoom: !0 } : void 0, H = (V) => {
13339
+ const J = Z.current + V, re = I().filter((de) => !de.disabled), ie = document.activeElement, oe = re.find((de) => de.ref.current === ie)?.textValue, se = re.map((de) => de.textValue), ne = getNextMatch(se, J, oe), le = re.find((de) => de.textValue === ne)?.ref.current;
13333
13340
  (function de(ue) {
13334
13341
  Z.current = ue, window.clearTimeout(K.current), ue !== "" && (K.current = window.setTimeout(() => de(""), 1e3));
13335
13342
  })(J), le && setTimeout(() => le.focus());
13336
13343
  };
13337
13344
  React.useEffect(() => () => window.clearTimeout(K.current), []), useFocusGuards();
13338
- const B = React.useCallback((j) => Q.current === q.current?.side && isPointerInGraceArea(j, q.current?.area), []);
13345
+ const B = React.useCallback((V) => Q.current === q.current?.side && isPointerInGraceArea(V, q.current?.area), []);
13339
13346
  return /* @__PURE__ */ jsx(
13340
13347
  MenuContentProvider,
13341
13348
  {
13342
13349
  scope: d,
13343
13350
  searchRef: Z,
13344
13351
  onItemEnter: React.useCallback(
13345
- (j) => {
13346
- B(j) && j.preventDefault();
13352
+ (V) => {
13353
+ B(V) && V.preventDefault();
13347
13354
  },
13348
13355
  [B]
13349
13356
  ),
13350
13357
  onItemLeave: React.useCallback(
13351
- (j) => {
13352
- B(j) || (W.current?.focus(), D(null));
13358
+ (V) => {
13359
+ B(V) || (W.current?.focus(), D(null));
13353
13360
  },
13354
13361
  [B]
13355
13362
  ),
13356
13363
  onTriggerLeave: React.useCallback(
13357
- (j) => {
13358
- B(j) && j.preventDefault();
13364
+ (V) => {
13365
+ B(V) && V.preventDefault();
13359
13366
  },
13360
13367
  [B]
13361
13368
  ),
13362
13369
  pointerGraceTimerRef: ee,
13363
- onPointerGraceIntentChange: React.useCallback((j) => {
13364
- q.current = j;
13370
+ onPointerGraceIntentChange: React.useCallback((V) => {
13371
+ q.current = V;
13365
13372
  }, []),
13366
13373
  children: /* @__PURE__ */ jsx(te, { ...F, children: /* @__PURE__ */ jsx(
13367
13374
  FocusScope,
13368
13375
  {
13369
13376
  asChild: !0,
13370
13377
  trapped: m,
13371
- onMountAutoFocus: composeEventHandlers(g, (j) => {
13372
- j.preventDefault(), W.current?.focus({ preventScroll: !0 });
13378
+ onMountAutoFocus: composeEventHandlers(g, (V) => {
13379
+ V.preventDefault(), W.current?.focus({ preventScroll: !0 });
13373
13380
  }),
13374
13381
  onUnmountAutoFocus: y,
13375
13382
  children: /* @__PURE__ */ jsx(
@@ -13390,10 +13397,10 @@ var CONTENT_NAME$3 = "MenuContent", [MenuContentProvider, useMenuContentContext]
13390
13397
  dir: k.dir,
13391
13398
  orientation: "vertical",
13392
13399
  loop: p,
13393
- currentTabStopId: V,
13400
+ currentTabStopId: j,
13394
13401
  onCurrentTabStopIdChange: D,
13395
- onEntryFocus: composeEventHandlers(E, (j) => {
13396
- k.isUsingKeyboardRef.current || j.preventDefault();
13402
+ onEntryFocus: composeEventHandlers(E, (V) => {
13403
+ k.isUsingKeyboardRef.current || V.preventDefault();
13397
13404
  }),
13398
13405
  preventScrollOnEntryFocus: !0,
13399
13406
  children: /* @__PURE__ */ jsx(
@@ -13408,25 +13415,25 @@ var CONTENT_NAME$3 = "MenuContent", [MenuContentProvider, useMenuContentContext]
13408
13415
  ...R,
13409
13416
  ref: $,
13410
13417
  style: { outline: "none", ...R.style },
13411
- onKeyDown: composeEventHandlers(R.onKeyDown, (j) => {
13412
- const re = j.target.closest("[data-radix-menu-content]") === j.currentTarget, ie = j.ctrlKey || j.altKey || j.metaKey, oe = j.key.length === 1;
13413
- re && (j.key === "Tab" && j.preventDefault(), !ie && oe && H(j.key));
13418
+ onKeyDown: composeEventHandlers(R.onKeyDown, (V) => {
13419
+ const re = V.target.closest("[data-radix-menu-content]") === V.currentTarget, ie = V.ctrlKey || V.altKey || V.metaKey, oe = V.key.length === 1;
13420
+ re && (V.key === "Tab" && V.preventDefault(), !ie && oe && H(V.key));
13414
13421
  const se = W.current;
13415
- if (j.target !== se || !FIRST_LAST_KEYS.includes(j.key)) return;
13416
- j.preventDefault();
13422
+ if (V.target !== se || !FIRST_LAST_KEYS.includes(V.key)) return;
13423
+ V.preventDefault();
13417
13424
  const le = I().filter((de) => !de.disabled).map((de) => de.ref.current);
13418
- LAST_KEYS.includes(j.key) && le.reverse(), focusFirst(le);
13425
+ LAST_KEYS.includes(V.key) && le.reverse(), focusFirst(le);
13419
13426
  }),
13420
- onBlur: composeEventHandlers(n.onBlur, (j) => {
13421
- j.currentTarget.contains(j.target) || (window.clearTimeout(K.current), Z.current = "");
13427
+ onBlur: composeEventHandlers(n.onBlur, (V) => {
13428
+ V.currentTarget.contains(V.target) || (window.clearTimeout(K.current), Z.current = "");
13422
13429
  }),
13423
13430
  onPointerMove: composeEventHandlers(
13424
13431
  n.onPointerMove,
13425
- whenMouse((j) => {
13426
- const J = j.target, re = Y.current !== j.clientX;
13427
- if (j.currentTarget.contains(J) && re) {
13428
- const ie = j.clientX > Y.current ? "right" : "left";
13429
- Q.current = ie, Y.current = j.clientX;
13432
+ whenMouse((V) => {
13433
+ const J = V.target, re = Y.current !== V.clientX;
13434
+ if (V.currentTarget.contains(J) && re) {
13435
+ const ie = V.clientX > Y.current ? "right" : "left";
13436
+ Q.current = ie, Y.current = V.clientX;
13430
13437
  }
13431
13438
  })
13432
13439
  )
@@ -14887,7 +14894,7 @@ function useVoiceRecorder({ maxDuration: n = 60 } = {}) {
14887
14894
  }, 1e3), C.current = setTimeout(() => {
14888
14895
  b.current?.state === "recording" && N();
14889
14896
  }, n * 1e3);
14890
- }, [n, L, N]), V = useCallback(() => {
14897
+ }, [n, L, N]), j = useCallback(() => {
14891
14898
  P.current = !0;
14892
14899
  const D = b.current;
14893
14900
  D && D.state === "recording" ? D.stop() : L();
@@ -14902,7 +14909,7 @@ function useVoiceRecorder({ maxDuration: n = 60 } = {}) {
14902
14909
  volume: g,
14903
14910
  startRecording: I,
14904
14911
  stopRecording: N,
14905
- cancelRecording: V
14912
+ cancelRecording: j
14906
14913
  };
14907
14914
  }
14908
14915
  var lottie$2 = { exports: {} }, lottie$1 = lottie$2.exports, hasRequiredLottie;
@@ -15204,17 +15211,17 @@ function requireLottie() {
15204
15211
  p || (p = y(function(P) {
15205
15212
  function C() {
15206
15213
  function O(te, F) {
15207
- var H, B, j = te.length, J, re, ie, oe;
15208
- for (B = 0; B < j; B += 1)
15214
+ var H, B, V = te.length, J, re, ie, oe;
15215
+ for (B = 0; B < V; B += 1)
15209
15216
  if (H = te[B], "ks" in H && !H.completed) {
15210
15217
  if (H.completed = !0, H.hasMask) {
15211
15218
  var se = H.masksProperties;
15212
15219
  for (re = se.length, J = 0; J < re; J += 1)
15213
15220
  if (se[J].pt.k.i)
15214
- V(se[J].pt.k);
15221
+ j(se[J].pt.k);
15215
15222
  else
15216
15223
  for (oe = se[J].pt.k.length, ie = 0; ie < oe; ie += 1)
15217
- se[J].pt.k[ie].s && V(se[J].pt.k[ie].s[0]), se[J].pt.k[ie].e && V(se[J].pt.k[ie].e[0]);
15224
+ se[J].pt.k[ie].s && j(se[J].pt.k[ie].s[0]), se[J].pt.k[ie].e && j(se[J].pt.k[ie].e[0]);
15218
15225
  }
15219
15226
  H.ty === 0 ? (H.layers = N(H.refId, F), O(H.layers, F)) : H.ty === 4 ? I(H.shapes) : H.ty === 5 && Q(H);
15220
15227
  }
@@ -15239,17 +15246,17 @@ function requireLottie() {
15239
15246
  return H ? H.layers.__used ? JSON.parse(JSON.stringify(H.layers)) : (H.layers.__used = !0, H.layers) : null;
15240
15247
  }
15241
15248
  function I(te) {
15242
- var F, H = te.length, B, j;
15249
+ var F, H = te.length, B, V;
15243
15250
  for (F = H - 1; F >= 0; F -= 1)
15244
15251
  if (te[F].ty === "sh")
15245
15252
  if (te[F].ks.k.i)
15246
- V(te[F].ks.k);
15253
+ j(te[F].ks.k);
15247
15254
  else
15248
- for (j = te[F].ks.k.length, B = 0; B < j; B += 1)
15249
- te[F].ks.k[B].s && V(te[F].ks.k[B].s[0]), te[F].ks.k[B].e && V(te[F].ks.k[B].e[0]);
15255
+ for (V = te[F].ks.k.length, B = 0; B < V; B += 1)
15256
+ te[F].ks.k[B].s && j(te[F].ks.k[B].s[0]), te[F].ks.k[B].e && j(te[F].ks.k[B].e[0]);
15250
15257
  else te[F].ty === "gr" && I(te[F].it);
15251
15258
  }
15252
- function V(te) {
15259
+ function j(te) {
15253
15260
  var F, H = te.i.length;
15254
15261
  for (F = 0; F < H; F += 1)
15255
15262
  te.i[F][0] += te.v[F][0], te.i[F][1] += te.v[F][1], te.o[F][0] += te.v[F][0], te.o[F][1] += te.v[F][1];
@@ -15261,24 +15268,24 @@ function requireLottie() {
15261
15268
  var W = /* @__PURE__ */ (function() {
15262
15269
  var te = [4, 4, 14];
15263
15270
  function F(B) {
15264
- var j = B.t.d;
15271
+ var V = B.t.d;
15265
15272
  B.t.d = {
15266
15273
  k: [{
15267
- s: j,
15274
+ s: V,
15268
15275
  t: 0
15269
15276
  }]
15270
15277
  };
15271
15278
  }
15272
15279
  function H(B) {
15273
- var j, J = B.length;
15274
- for (j = 0; j < J; j += 1)
15275
- B[j].ty === 5 && F(B[j]);
15280
+ var V, J = B.length;
15281
+ for (V = 0; V < J; V += 1)
15282
+ B[V].ty === 5 && F(B[V]);
15276
15283
  }
15277
15284
  return function(B) {
15278
15285
  if (D(te, B.v) && (H(B.layers), B.assets)) {
15279
- var j, J = B.assets.length;
15280
- for (j = 0; j < J; j += 1)
15281
- B.assets[j].layers && H(B.assets[j].layers);
15286
+ var V, J = B.assets.length;
15287
+ for (V = 0; V < J; V += 1)
15288
+ B.assets[V].layers && H(B.assets[V].layers);
15282
15289
  }
15283
15290
  };
15284
15291
  })(), $ = /* @__PURE__ */ (function() {
@@ -15287,8 +15294,8 @@ function requireLottie() {
15287
15294
  if (F.chars && !D(te, F.v)) {
15288
15295
  var H, B = F.chars.length;
15289
15296
  for (H = 0; H < B; H += 1) {
15290
- var j = F.chars[H];
15291
- j.data && j.data.shapes && (I(j.data.shapes), j.data.ip = 0, j.data.op = 99999, j.data.st = 0, j.data.sr = 1, j.data.ks = {
15297
+ var V = F.chars[H];
15298
+ V.data && V.data.shapes && (I(V.data.shapes), V.data.ip = 0, V.data.op = 99999, V.data.st = 0, V.data.sr = 1, V.data.ks = {
15292
15299
  p: {
15293
15300
  k: [0, 0],
15294
15301
  a: 0
@@ -15309,9 +15316,9 @@ function requireLottie() {
15309
15316
  k: 100,
15310
15317
  a: 0
15311
15318
  }
15312
- }, F.chars[H].t || (j.data.shapes.push({
15319
+ }, F.chars[H].t || (V.data.shapes.push({
15313
15320
  ty: "no"
15314
- }), j.data.shapes[0].it.push({
15321
+ }), V.data.shapes[0].it.push({
15315
15322
  p: {
15316
15323
  k: [0, 0],
15317
15324
  a: 0
@@ -15348,74 +15355,74 @@ function requireLottie() {
15348
15355
  })(), K = /* @__PURE__ */ (function() {
15349
15356
  var te = [5, 7, 15];
15350
15357
  function F(B) {
15351
- var j = B.t.p;
15352
- typeof j.a == "number" && (j.a = {
15358
+ var V = B.t.p;
15359
+ typeof V.a == "number" && (V.a = {
15353
15360
  a: 0,
15354
- k: j.a
15355
- }), typeof j.p == "number" && (j.p = {
15361
+ k: V.a
15362
+ }), typeof V.p == "number" && (V.p = {
15356
15363
  a: 0,
15357
- k: j.p
15358
- }), typeof j.r == "number" && (j.r = {
15364
+ k: V.p
15365
+ }), typeof V.r == "number" && (V.r = {
15359
15366
  a: 0,
15360
- k: j.r
15367
+ k: V.r
15361
15368
  });
15362
15369
  }
15363
15370
  function H(B) {
15364
- var j, J = B.length;
15365
- for (j = 0; j < J; j += 1)
15366
- B[j].ty === 5 && F(B[j]);
15371
+ var V, J = B.length;
15372
+ for (V = 0; V < J; V += 1)
15373
+ B[V].ty === 5 && F(B[V]);
15367
15374
  }
15368
15375
  return function(B) {
15369
15376
  if (D(te, B.v) && (H(B.layers), B.assets)) {
15370
- var j, J = B.assets.length;
15371
- for (j = 0; j < J; j += 1)
15372
- B.assets[j].layers && H(B.assets[j].layers);
15377
+ var V, J = B.assets.length;
15378
+ for (V = 0; V < J; V += 1)
15379
+ B.assets[V].layers && H(B.assets[V].layers);
15373
15380
  }
15374
15381
  };
15375
15382
  })(), Z = /* @__PURE__ */ (function() {
15376
15383
  var te = [4, 1, 9];
15377
15384
  function F(B) {
15378
- var j, J = B.length, re, ie;
15379
- for (j = 0; j < J; j += 1)
15380
- if (B[j].ty === "gr")
15381
- F(B[j].it);
15382
- else if (B[j].ty === "fl" || B[j].ty === "st")
15383
- if (B[j].c.k && B[j].c.k[0].i)
15384
- for (ie = B[j].c.k.length, re = 0; re < ie; re += 1)
15385
- B[j].c.k[re].s && (B[j].c.k[re].s[0] /= 255, B[j].c.k[re].s[1] /= 255, B[j].c.k[re].s[2] /= 255, B[j].c.k[re].s[3] /= 255), B[j].c.k[re].e && (B[j].c.k[re].e[0] /= 255, B[j].c.k[re].e[1] /= 255, B[j].c.k[re].e[2] /= 255, B[j].c.k[re].e[3] /= 255);
15385
+ var V, J = B.length, re, ie;
15386
+ for (V = 0; V < J; V += 1)
15387
+ if (B[V].ty === "gr")
15388
+ F(B[V].it);
15389
+ else if (B[V].ty === "fl" || B[V].ty === "st")
15390
+ if (B[V].c.k && B[V].c.k[0].i)
15391
+ for (ie = B[V].c.k.length, re = 0; re < ie; re += 1)
15392
+ B[V].c.k[re].s && (B[V].c.k[re].s[0] /= 255, B[V].c.k[re].s[1] /= 255, B[V].c.k[re].s[2] /= 255, B[V].c.k[re].s[3] /= 255), B[V].c.k[re].e && (B[V].c.k[re].e[0] /= 255, B[V].c.k[re].e[1] /= 255, B[V].c.k[re].e[2] /= 255, B[V].c.k[re].e[3] /= 255);
15386
15393
  else
15387
- B[j].c.k[0] /= 255, B[j].c.k[1] /= 255, B[j].c.k[2] /= 255, B[j].c.k[3] /= 255;
15394
+ B[V].c.k[0] /= 255, B[V].c.k[1] /= 255, B[V].c.k[2] /= 255, B[V].c.k[3] /= 255;
15388
15395
  }
15389
15396
  function H(B) {
15390
- var j, J = B.length;
15391
- for (j = 0; j < J; j += 1)
15392
- B[j].ty === 4 && F(B[j].shapes);
15397
+ var V, J = B.length;
15398
+ for (V = 0; V < J; V += 1)
15399
+ B[V].ty === 4 && F(B[V].shapes);
15393
15400
  }
15394
15401
  return function(B) {
15395
15402
  if (D(te, B.v) && (H(B.layers), B.assets)) {
15396
- var j, J = B.assets.length;
15397
- for (j = 0; j < J; j += 1)
15398
- B.assets[j].layers && H(B.assets[j].layers);
15403
+ var V, J = B.assets.length;
15404
+ for (V = 0; V < J; V += 1)
15405
+ B.assets[V].layers && H(B.assets[V].layers);
15399
15406
  }
15400
15407
  };
15401
15408
  })(), ee = /* @__PURE__ */ (function() {
15402
15409
  var te = [4, 4, 18];
15403
15410
  function F(B) {
15404
- var j, J = B.length, re, ie;
15405
- for (j = J - 1; j >= 0; j -= 1)
15406
- if (B[j].ty === "sh")
15407
- if (B[j].ks.k.i)
15408
- B[j].ks.k.c = B[j].closed;
15411
+ var V, J = B.length, re, ie;
15412
+ for (V = J - 1; V >= 0; V -= 1)
15413
+ if (B[V].ty === "sh")
15414
+ if (B[V].ks.k.i)
15415
+ B[V].ks.k.c = B[V].closed;
15409
15416
  else
15410
- for (ie = B[j].ks.k.length, re = 0; re < ie; re += 1)
15411
- B[j].ks.k[re].s && (B[j].ks.k[re].s[0].c = B[j].closed), B[j].ks.k[re].e && (B[j].ks.k[re].e[0].c = B[j].closed);
15412
- else B[j].ty === "gr" && F(B[j].it);
15417
+ for (ie = B[V].ks.k.length, re = 0; re < ie; re += 1)
15418
+ B[V].ks.k[re].s && (B[V].ks.k[re].s[0].c = B[V].closed), B[V].ks.k[re].e && (B[V].ks.k[re].e[0].c = B[V].closed);
15419
+ else B[V].ty === "gr" && F(B[V].it);
15413
15420
  }
15414
15421
  function H(B) {
15415
- var j, J, re = B.length, ie, oe, se, ne;
15422
+ var V, J, re = B.length, ie, oe, se, ne;
15416
15423
  for (J = 0; J < re; J += 1) {
15417
- if (j = B[J], j.hasMask) {
15418
- var le = j.masksProperties;
15424
+ if (V = B[J], V.hasMask) {
15425
+ var le = V.masksProperties;
15419
15426
  for (oe = le.length, ie = 0; ie < oe; ie += 1)
15420
15427
  if (le[ie].pt.k.i)
15421
15428
  le[ie].pt.k.c = le[ie].cl;
@@ -15423,14 +15430,14 @@ function requireLottie() {
15423
15430
  for (ne = le[ie].pt.k.length, se = 0; se < ne; se += 1)
15424
15431
  le[ie].pt.k[se].s && (le[ie].pt.k[se].s[0].c = le[ie].cl), le[ie].pt.k[se].e && (le[ie].pt.k[se].e[0].c = le[ie].cl);
15425
15432
  }
15426
- j.ty === 4 && F(j.shapes);
15433
+ V.ty === 4 && F(V.shapes);
15427
15434
  }
15428
15435
  }
15429
15436
  return function(B) {
15430
15437
  if (D(te, B.v) && (H(B.layers), B.assets)) {
15431
- var j, J = B.assets.length;
15432
- for (j = 0; j < J; j += 1)
15433
- B.assets[j].layers && H(B.assets[j].layers);
15438
+ var V, J = B.assets.length;
15439
+ for (V = 0; V < J; V += 1)
15440
+ B.assets[V].layers && H(B.assets[V].layers);
15434
15441
  }
15435
15442
  };
15436
15443
  })();
@@ -15448,7 +15455,7 @@ function requireLottie() {
15448
15455
  var N = L.getResponseHeader("content-type");
15449
15456
  return N && L.responseType === "json" && N.indexOf("json") !== -1 || L.response && _typeof$5(L.response) === "object" ? L.response : L.response && typeof L.response == "string" ? JSON.parse(L.response) : L.responseText ? JSON.parse(L.responseText) : null;
15450
15457
  }
15451
- function k(L, N, I, V) {
15458
+ function k(L, N, I, j) {
15452
15459
  var D, W = new XMLHttpRequest();
15453
15460
  try {
15454
15461
  W.responseType = "json";
@@ -15462,7 +15469,7 @@ function requireLottie() {
15462
15469
  try {
15463
15470
  D = O(W), I(D);
15464
15471
  } catch ($) {
15465
- V && V($);
15472
+ j && j($);
15466
15473
  }
15467
15474
  };
15468
15475
  try {
@@ -15572,8 +15579,8 @@ function requireLottie() {
15572
15579
  if (k.e)
15573
15580
  I = k.p;
15574
15581
  else if (L) {
15575
- var V = k.p;
15576
- V.indexOf("images/") !== -1 && (V = V.split("/")[1]), I = L + V;
15582
+ var j = k.p;
15583
+ j.indexOf("images/") !== -1 && (j = j.split("/")[1]), I = L + j;
15577
15584
  } else
15578
15585
  I = N, I += k.u ? k.u : "", I += k.p;
15579
15586
  return I;
@@ -16002,8 +16009,8 @@ function requireLottie() {
16002
16009
  return u[B].animation;
16003
16010
  B += 1;
16004
16011
  }
16005
- var j = new AnimationItem();
16006
- return _(j, F), j.setData(F, H), j;
16012
+ var V = new AnimationItem();
16013
+ return _(V, F), V.setData(F, H), V;
16007
16014
  }
16008
16015
  function T() {
16009
16016
  var F, H = u.length, B = [];
@@ -16057,11 +16064,11 @@ function requireLottie() {
16057
16064
  u[H].animation.pause(F);
16058
16065
  }
16059
16066
  function I(F, H, B) {
16060
- var j;
16061
- for (j = 0; j < p; j += 1)
16062
- u[j].animation.goToAndStop(F, H, B);
16067
+ var V;
16068
+ for (V = 0; V < p; V += 1)
16069
+ u[V].animation.goToAndStop(F, H, B);
16063
16070
  }
16064
- function V(F) {
16071
+ function j(F) {
16065
16072
  var H;
16066
16073
  for (H = 0; H < p; H += 1)
16067
16074
  u[H].animation.stop(F);
@@ -16077,9 +16084,9 @@ function requireLottie() {
16077
16084
  u[H].animation.destroy(F);
16078
16085
  }
16079
16086
  function $(F, H, B) {
16080
- var j = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), J, re = j.length;
16087
+ var V = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), J, re = V.length;
16081
16088
  for (J = 0; J < re; J += 1)
16082
- B && j[J].setAttribute("data-bm-type", B), E(j[J], F);
16089
+ B && V[J].setAttribute("data-bm-type", B), E(V[J], F);
16083
16090
  if (H && re === 0) {
16084
16091
  B || (B = "svg");
16085
16092
  var ie = document.getElementsByTagName("body")[0];
@@ -16117,16 +16124,16 @@ function requireLottie() {
16117
16124
  for (H = 0; H < p; H += 1)
16118
16125
  u[H].animation.unmute(F);
16119
16126
  }
16120
- return n.registerAnimation = E, n.loadAnimation = P, n.setSpeed = C, n.setDirection = R, n.play = O, n.pause = N, n.stop = V, n.togglePause = D, n.searchAnimations = $, n.resize = K, n.goToAndStop = I, n.destroy = W, n.freeze = ee, n.unfreeze = q, n.setVolume = Q, n.mute = Y, n.unmute = te, n.getRegisteredAnimations = T, n;
16127
+ return n.registerAnimation = E, n.loadAnimation = P, n.setSpeed = C, n.setDirection = R, n.play = O, n.pause = N, n.stop = j, n.togglePause = D, n.searchAnimations = $, n.resize = K, n.goToAndStop = I, n.destroy = W, n.freeze = ee, n.unfreeze = q, n.setVolume = Q, n.mute = Y, n.unmute = te, n.getRegisteredAnimations = T, n;
16121
16128
  })(), BezierFactory = (function() {
16122
16129
  var n = {};
16123
16130
  n.getBezierEasing = d;
16124
16131
  var u = {};
16125
- function d(L, N, I, V, D) {
16126
- var W = D || ("bez_" + L + "_" + N + "_" + I + "_" + V).replace(/\./g, "p");
16132
+ function d(L, N, I, j, D) {
16133
+ var W = D || ("bez_" + L + "_" + N + "_" + I + "_" + j).replace(/\./g, "p");
16127
16134
  if (u[W])
16128
16135
  return u[W];
16129
- var $ = new k([L, N, I, V]);
16136
+ var $ = new k([L, N, I, j]);
16130
16137
  return u[W] = $, $;
16131
16138
  }
16132
16139
  var p = 4, m = 1e-3, g = 1e-7, y = 10, b = 11, E = 1 / (b - 1), T = typeof Float32Array == "function";
@@ -16145,18 +16152,18 @@ function requireLottie() {
16145
16152
  function C(L, N, I) {
16146
16153
  return 3 * S(N, I) * L * L + 2 * A(N, I) * L + _(N);
16147
16154
  }
16148
- function R(L, N, I, V, D) {
16155
+ function R(L, N, I, j, D) {
16149
16156
  var W, $, K = 0;
16150
16157
  do
16151
- $ = N + (I - N) / 2, W = P($, V, D) - L, W > 0 ? I = $ : N = $;
16158
+ $ = N + (I - N) / 2, W = P($, j, D) - L, W > 0 ? I = $ : N = $;
16152
16159
  while (Math.abs(W) > g && ++K < y);
16153
16160
  return $;
16154
16161
  }
16155
- function O(L, N, I, V) {
16162
+ function O(L, N, I, j) {
16156
16163
  for (var D = 0; D < p; ++D) {
16157
- var W = C(N, I, V);
16164
+ var W = C(N, I, j);
16158
16165
  if (W === 0) return N;
16159
- var $ = P(N, I, V) - L;
16166
+ var $ = P(N, I, j) - L;
16160
16167
  N -= $ / W;
16161
16168
  }
16162
16169
  return N;
@@ -16166,27 +16173,27 @@ function requireLottie() {
16166
16173
  }
16167
16174
  return k.prototype = {
16168
16175
  get: function(N) {
16169
- var I = this._p[0], V = this._p[1], D = this._p[2], W = this._p[3];
16170
- return this._precomputed || this._precompute(), I === V && D === W ? N : N === 0 ? 0 : N === 1 ? 1 : P(this._getTForX(N), V, W);
16176
+ var I = this._p[0], j = this._p[1], D = this._p[2], W = this._p[3];
16177
+ return this._precomputed || this._precompute(), I === j && D === W ? N : N === 0 ? 0 : N === 1 ? 1 : P(this._getTForX(N), j, W);
16171
16178
  },
16172
16179
  // Private part
16173
16180
  _precompute: function() {
16174
- var N = this._p[0], I = this._p[1], V = this._p[2], D = this._p[3];
16175
- this._precomputed = !0, (N !== I || V !== D) && this._calcSampleValues();
16181
+ var N = this._p[0], I = this._p[1], j = this._p[2], D = this._p[3];
16182
+ this._precomputed = !0, (N !== I || j !== D) && this._calcSampleValues();
16176
16183
  },
16177
16184
  _calcSampleValues: function() {
16178
- for (var N = this._p[0], I = this._p[2], V = 0; V < b; ++V)
16179
- this._mSampleValues[V] = P(V * E, N, I);
16185
+ for (var N = this._p[0], I = this._p[2], j = 0; j < b; ++j)
16186
+ this._mSampleValues[j] = P(j * E, N, I);
16180
16187
  },
16181
16188
  /**
16182
16189
  * getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
16183
16190
  */
16184
16191
  _getTForX: function(N) {
16185
- for (var I = this._p[0], V = this._p[2], D = this._mSampleValues, W = 0, $ = 1, K = b - 1; $ !== K && D[$] <= N; ++$)
16192
+ for (var I = this._p[0], j = this._p[2], D = this._mSampleValues, W = 0, $ = 1, K = b - 1; $ !== K && D[$] <= N; ++$)
16186
16193
  W += E;
16187
16194
  --$;
16188
- var Z = (N - D[$]) / (D[$ + 1] - D[$]), ee = W + Z * E, q = C(ee, I, V);
16189
- return q >= m ? O(N, ee, I, V) : q === 0 ? ee : R(N, W, W + E, I, V);
16195
+ var Z = (N - D[$]) / (D[$ + 1] - D[$]), ee = W + Z * E, q = C(ee, I, j);
16196
+ return q >= m ? O(N, ee, I, j) : q === 0 ? ee : R(N, W, W + E, I, j);
16190
16197
  }
16191
16198
  }, n;
16192
16199
  })(), pooling = /* @__PURE__ */ (function() {
@@ -16244,25 +16251,25 @@ function requireLottie() {
16244
16251
  function d(_, P, C, R, O, k, L, N, I) {
16245
16252
  if (C === 0 && k === 0 && I === 0)
16246
16253
  return u(_, P, R, O, L, N);
16247
- var V = n.sqrt(n.pow(R - _, 2) + n.pow(O - P, 2) + n.pow(k - C, 2)), D = n.sqrt(n.pow(L - _, 2) + n.pow(N - P, 2) + n.pow(I - C, 2)), W = n.sqrt(n.pow(L - R, 2) + n.pow(N - O, 2) + n.pow(I - k, 2)), $;
16248
- return V > D ? V > W ? $ = V - D - W : $ = W - D - V : W > D ? $ = W - D - V : $ = D - V - W, $ > -1e-4 && $ < 1e-4;
16254
+ var j = n.sqrt(n.pow(R - _, 2) + n.pow(O - P, 2) + n.pow(k - C, 2)), D = n.sqrt(n.pow(L - _, 2) + n.pow(N - P, 2) + n.pow(I - C, 2)), W = n.sqrt(n.pow(L - R, 2) + n.pow(N - O, 2) + n.pow(I - k, 2)), $;
16255
+ return j > D ? j > W ? $ = j - D - W : $ = W - D - j : W > D ? $ = W - D - j : $ = D - j - W, $ > -1e-4 && $ < 1e-4;
16249
16256
  }
16250
16257
  var p = /* @__PURE__ */ (function() {
16251
16258
  return function(_, P, C, R) {
16252
- var O = getDefaultCurveSegments(), k, L, N, I, V, D = 0, W, $ = [], K = [], Z = bezierLengthPool.newElement();
16259
+ var O = getDefaultCurveSegments(), k, L, N, I, j, D = 0, W, $ = [], K = [], Z = bezierLengthPool.newElement();
16253
16260
  for (N = C.length, k = 0; k < O; k += 1) {
16254
- for (V = k / (O - 1), W = 0, L = 0; L < N; L += 1)
16255
- I = bmPow(1 - V, 3) * _[L] + 3 * bmPow(1 - V, 2) * V * C[L] + 3 * (1 - V) * bmPow(V, 2) * R[L] + bmPow(V, 3) * P[L], $[L] = I, K[L] !== null && (W += bmPow($[L] - K[L], 2)), K[L] = $[L];
16256
- W && (W = bmSqrt(W), D += W), Z.percents[k] = V, Z.lengths[k] = D;
16261
+ for (j = k / (O - 1), W = 0, L = 0; L < N; L += 1)
16262
+ I = bmPow(1 - j, 3) * _[L] + 3 * bmPow(1 - j, 2) * j * C[L] + 3 * (1 - j) * bmPow(j, 2) * R[L] + bmPow(j, 3) * P[L], $[L] = I, K[L] !== null && (W += bmPow($[L] - K[L], 2)), K[L] = $[L];
16263
+ W && (W = bmSqrt(W), D += W), Z.percents[k] = j, Z.lengths[k] = D;
16257
16264
  }
16258
16265
  return Z.addedLength = D, Z;
16259
16266
  };
16260
16267
  })();
16261
16268
  function m(_) {
16262
- var P = segmentsLengthPool.newElement(), C = _.c, R = _.v, O = _.o, k = _.i, L, N = _._length, I = P.lengths, V = 0;
16269
+ var P = segmentsLengthPool.newElement(), C = _.c, R = _.v, O = _.o, k = _.i, L, N = _._length, I = P.lengths, j = 0;
16263
16270
  for (L = 0; L < N - 1; L += 1)
16264
- I[L] = p(R[L], R[L + 1], O[L], k[L + 1]), V += I[L].addedLength;
16265
- return C && N && (I[L] = p(R[L], R[0], O[L], k[0]), V += I[L].addedLength), P.totalLength = V, P;
16271
+ I[L] = p(R[L], R[L + 1], O[L], k[L + 1]), j += I[L].addedLength;
16272
+ return C && N && (I[L] = p(R[L], R[0], O[L], k[0]), j += I[L].addedLength), P.totalLength = j, P;
16266
16273
  }
16267
16274
  function g(_) {
16268
16275
  this.segmentLength = 0, this.points = new Array(_);
@@ -16275,11 +16282,11 @@ function requireLottie() {
16275
16282
  return function(P, C, R, O) {
16276
16283
  var k = (P[0] + "_" + P[1] + "_" + C[0] + "_" + C[1] + "_" + R[0] + "_" + R[1] + "_" + O[0] + "_" + O[1]).replace(/\./g, "p");
16277
16284
  if (!_[k]) {
16278
- var L = getDefaultCurveSegments(), N, I, V, D, W, $ = 0, K, Z, ee = null;
16285
+ var L = getDefaultCurveSegments(), N, I, j, D, W, $ = 0, K, Z, ee = null;
16279
16286
  P.length === 2 && (P[0] !== C[0] || P[1] !== C[1]) && u(P[0], P[1], C[0], C[1], P[0] + R[0], P[1] + R[1]) && u(P[0], P[1], C[0], C[1], C[0] + O[0], C[1] + O[1]) && (L = 2);
16280
16287
  var q = new g(L);
16281
- for (V = R.length, N = 0; N < L; N += 1) {
16282
- for (Z = createSizedArray(V), W = N / (L - 1), K = 0, I = 0; I < V; I += 1)
16288
+ for (j = R.length, N = 0; N < L; N += 1) {
16289
+ for (Z = createSizedArray(j), W = N / (L - 1), K = 0, I = 0; I < j; I += 1)
16283
16290
  D = bmPow(1 - W, 3) * P[I] + 3 * bmPow(1 - W, 2) * W * (P[I] + R[I]) + 3 * (1 - W) * bmPow(W, 2) * (C[I] + O[I]) + bmPow(W, 3) * C[I], Z[I] = D, ee !== null && (K += bmPow(Z[I] - ee[I], 2));
16284
16291
  K = bmSqrt(K), $ += K, q.points[N] = new y(K, Z), ee = Z;
16285
16292
  }
@@ -16292,26 +16299,26 @@ function requireLottie() {
16292
16299
  var C = P.percents, R = P.lengths, O = C.length, k = bmFloor((O - 1) * _), L = _ * P.addedLength, N = 0;
16293
16300
  if (k === O - 1 || k === 0 || L === R[k])
16294
16301
  return C[k];
16295
- for (var I = R[k] > L ? -1 : 1, V = !0; V; )
16296
- if (R[k] <= L && R[k + 1] > L ? (N = (L - R[k]) / (R[k + 1] - R[k]), V = !1) : k += I, k < 0 || k >= O - 1) {
16302
+ for (var I = R[k] > L ? -1 : 1, j = !0; j; )
16303
+ if (R[k] <= L && R[k + 1] > L ? (N = (L - R[k]) / (R[k + 1] - R[k]), j = !1) : k += I, k < 0 || k >= O - 1) {
16297
16304
  if (k === O - 1)
16298
16305
  return C[k];
16299
- V = !1;
16306
+ j = !1;
16300
16307
  }
16301
16308
  return C[k] + (C[k + 1] - C[k]) * N;
16302
16309
  }
16303
16310
  function T(_, P, C, R, O, k) {
16304
- var L = E(O, k), N = 1 - L, I = n.round((N * N * N * _[0] + (L * N * N + N * L * N + N * N * L) * C[0] + (L * L * N + N * L * L + L * N * L) * R[0] + L * L * L * P[0]) * 1e3) / 1e3, V = n.round((N * N * N * _[1] + (L * N * N + N * L * N + N * N * L) * C[1] + (L * L * N + N * L * L + L * N * L) * R[1] + L * L * L * P[1]) * 1e3) / 1e3;
16305
- return [I, V];
16311
+ var L = E(O, k), N = 1 - L, I = n.round((N * N * N * _[0] + (L * N * N + N * L * N + N * N * L) * C[0] + (L * L * N + N * L * L + L * N * L) * R[0] + L * L * L * P[0]) * 1e3) / 1e3, j = n.round((N * N * N * _[1] + (L * N * N + N * L * N + N * N * L) * C[1] + (L * L * N + N * L * L + L * N * L) * R[1] + L * L * L * P[1]) * 1e3) / 1e3;
16312
+ return [I, j];
16306
16313
  }
16307
16314
  var S = createTypedArray("float32", 8);
16308
16315
  function A(_, P, C, R, O, k, L) {
16309
16316
  O < 0 ? O = 0 : O > 1 && (O = 1);
16310
16317
  var N = E(O, L);
16311
16318
  k = k > 1 ? 1 : k;
16312
- var I = E(k, L), V, D = _.length, W = 1 - N, $ = 1 - I, K = W * W * W, Z = N * W * W * 3, ee = N * N * W * 3, q = N * N * N, Q = W * W * $, Y = N * W * $ + W * N * $ + W * W * I, te = N * N * $ + W * N * I + N * W * I, F = N * N * I, H = W * $ * $, B = N * $ * $ + W * I * $ + W * $ * I, j = N * I * $ + W * I * I + N * $ * I, J = N * I * I, re = $ * $ * $, ie = I * $ * $ + $ * I * $ + $ * $ * I, oe = I * I * $ + $ * I * I + I * $ * I, se = I * I * I;
16313
- for (V = 0; V < D; V += 1)
16314
- S[V * 4] = n.round((K * _[V] + Z * C[V] + ee * R[V] + q * P[V]) * 1e3) / 1e3, S[V * 4 + 1] = n.round((Q * _[V] + Y * C[V] + te * R[V] + F * P[V]) * 1e3) / 1e3, S[V * 4 + 2] = n.round((H * _[V] + B * C[V] + j * R[V] + J * P[V]) * 1e3) / 1e3, S[V * 4 + 3] = n.round((re * _[V] + ie * C[V] + oe * R[V] + se * P[V]) * 1e3) / 1e3;
16319
+ var I = E(k, L), j, D = _.length, W = 1 - N, $ = 1 - I, K = W * W * W, Z = N * W * W * 3, ee = N * N * W * 3, q = N * N * N, Q = W * W * $, Y = N * W * $ + W * N * $ + W * W * I, te = N * N * $ + W * N * I + N * W * I, F = N * N * I, H = W * $ * $, B = N * $ * $ + W * I * $ + W * $ * I, V = N * I * $ + W * I * I + N * $ * I, J = N * I * I, re = $ * $ * $, ie = I * $ * $ + $ * I * $ + $ * $ * I, oe = I * I * $ + $ * I * I + I * $ * I, se = I * I * I;
16320
+ for (j = 0; j < D; j += 1)
16321
+ S[j * 4] = n.round((K * _[j] + Z * C[j] + ee * R[j] + q * P[j]) * 1e3) / 1e3, S[j * 4 + 1] = n.round((Q * _[j] + Y * C[j] + te * R[j] + F * P[j]) * 1e3) / 1e3, S[j * 4 + 2] = n.round((H * _[j] + B * C[j] + V * R[j] + J * P[j]) * 1e3) / 1e3, S[j * 4 + 3] = n.round((re * _[j] + ie * C[j] + oe * R[j] + se * P[j]) * 1e3) / 1e3;
16315
16322
  return S;
16316
16323
  }
16317
16324
  return {
@@ -16344,9 +16351,9 @@ function requireLottie() {
16344
16351
  S.bezierData || (S.bezierData = bez.buildBezierData(E.s, T.s || E.e, E.to, E.ti));
16345
16352
  var I = S.bezierData;
16346
16353
  if (n >= k || n < L) {
16347
- var V = n >= k ? I.points.length - 1 : 0;
16348
- for (_ = I.points[V].point.length, A = 0; A < _; A += 1)
16349
- p[A] = I.points[V].point[A];
16354
+ var j = n >= k ? I.points.length - 1 : 0;
16355
+ for (_ = I.points[j].point.length, A = 0; A < _; A += 1)
16356
+ p[A] = I.points[j].point[A];
16350
16357
  } else {
16351
16358
  S.__fnct ? O = S.__fnct : (O = BezierFactory.getBezierEasing(E.o.x, E.o.y, E.i.x, E.i.y, E.n).get, S.__fnct = O), P = O((n - L) / (k - L));
16352
16359
  var D = I.segmentLength * P, W, $ = u.lastFrame < n && u._lastKeyframeIndex === g ? u._lastAddedLength : 0;
@@ -16598,30 +16605,30 @@ function requireLottie() {
16598
16605
  })(), ShapePropertyFactory = (function() {
16599
16606
  var n = -999999;
16600
16607
  function u(k, L, N) {
16601
- var I = N.lastIndex, V, D, W, $, K, Z, ee, q, Q, Y = this.keyframes;
16608
+ var I = N.lastIndex, j, D, W, $, K, Z, ee, q, Q, Y = this.keyframes;
16602
16609
  if (k < Y[0].t - this.offsetTime)
16603
- V = Y[0].s[0], W = !0, I = 0;
16610
+ j = Y[0].s[0], W = !0, I = 0;
16604
16611
  else if (k >= Y[Y.length - 1].t - this.offsetTime)
16605
- V = Y[Y.length - 1].s ? Y[Y.length - 1].s[0] : Y[Y.length - 2].e[0], W = !0;
16612
+ j = Y[Y.length - 1].s ? Y[Y.length - 1].s[0] : Y[Y.length - 2].e[0], W = !0;
16606
16613
  else {
16607
- for (var te = I, F = Y.length - 1, H = !0, B, j, J; H && (B = Y[te], j = Y[te + 1], !(j.t - this.offsetTime > k)); )
16614
+ for (var te = I, F = Y.length - 1, H = !0, B, V, J; H && (B = Y[te], V = Y[te + 1], !(V.t - this.offsetTime > k)); )
16608
16615
  te < F - 1 ? te += 1 : H = !1;
16609
16616
  if (J = this.keyframesMetadata[te] || {}, W = B.h === 1, I = te, !W) {
16610
- if (k >= j.t - this.offsetTime)
16617
+ if (k >= V.t - this.offsetTime)
16611
16618
  q = 1;
16612
16619
  else if (k < B.t - this.offsetTime)
16613
16620
  q = 0;
16614
16621
  else {
16615
16622
  var re;
16616
- J.__fnct ? re = J.__fnct : (re = BezierFactory.getBezierEasing(B.o.x, B.o.y, B.i.x, B.i.y).get, J.__fnct = re), q = re((k - (B.t - this.offsetTime)) / (j.t - this.offsetTime - (B.t - this.offsetTime)));
16623
+ J.__fnct ? re = J.__fnct : (re = BezierFactory.getBezierEasing(B.o.x, B.o.y, B.i.x, B.i.y).get, J.__fnct = re), q = re((k - (B.t - this.offsetTime)) / (V.t - this.offsetTime - (B.t - this.offsetTime)));
16617
16624
  }
16618
- D = j.s ? j.s[0] : B.e[0];
16625
+ D = V.s ? V.s[0] : B.e[0];
16619
16626
  }
16620
- V = B.s[0];
16627
+ j = B.s[0];
16621
16628
  }
16622
- for (Z = L._length, ee = V.i[0].length, N.lastIndex = I, $ = 0; $ < Z; $ += 1)
16629
+ for (Z = L._length, ee = j.i[0].length, N.lastIndex = I, $ = 0; $ < Z; $ += 1)
16623
16630
  for (K = 0; K < ee; K += 1)
16624
- Q = W ? V.i[$][K] : V.i[$][K] + (D.i[$][K] - V.i[$][K]) * q, L.i[$][K] = Q, Q = W ? V.o[$][K] : V.o[$][K] + (D.o[$][K] - V.o[$][K]) * q, L.o[$][K] = Q, Q = W ? V.v[$][K] : V.v[$][K] + (D.v[$][K] - V.v[$][K]) * q, L.v[$][K] = Q;
16631
+ Q = W ? j.i[$][K] : j.i[$][K] + (D.i[$][K] - j.i[$][K]) * q, L.i[$][K] = Q, Q = W ? j.o[$][K] : j.o[$][K] + (D.o[$][K] - j.o[$][K]) * q, L.o[$][K] = Q, Q = W ? j.v[$][K] : j.v[$][K] + (D.v[$][K] - j.v[$][K]) * q, L.v[$][K] = Q;
16625
16632
  }
16626
16633
  function d() {
16627
16634
  var k = this.comp.renderedFrame - this.offsetTime, L = this.keyframes[0].t - this.offsetTime, N = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, I = this._caching.lastFrame;
@@ -16690,8 +16697,8 @@ function requireLottie() {
16690
16697
  this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
16691
16698
  },
16692
16699
  convertEllToPath: function() {
16693
- var I = this.p.v[0], V = this.p.v[1], D = this.s.v[0] / 2, W = this.s.v[1] / 2, $ = this.d !== 3, K = this.v;
16694
- K.v[0][0] = I, K.v[0][1] = V - W, K.v[1][0] = $ ? I + D : I - D, K.v[1][1] = V, K.v[2][0] = I, K.v[2][1] = V + W, K.v[3][0] = $ ? I - D : I + D, K.v[3][1] = V, K.i[0][0] = $ ? I - D * k : I + D * k, K.i[0][1] = V - W, K.i[1][0] = $ ? I + D : I - D, K.i[1][1] = V - W * k, K.i[2][0] = $ ? I + D * k : I - D * k, K.i[2][1] = V + W, K.i[3][0] = $ ? I - D : I + D, K.i[3][1] = V + W * k, K.o[0][0] = $ ? I + D * k : I - D * k, K.o[0][1] = V - W, K.o[1][0] = $ ? I + D : I - D, K.o[1][1] = V + W * k, K.o[2][0] = $ ? I - D * k : I + D * k, K.o[2][1] = V + W, K.o[3][0] = $ ? I - D : I + D, K.o[3][1] = V - W * k;
16700
+ var I = this.p.v[0], j = this.p.v[1], D = this.s.v[0] / 2, W = this.s.v[1] / 2, $ = this.d !== 3, K = this.v;
16701
+ K.v[0][0] = I, K.v[0][1] = j - W, K.v[1][0] = $ ? I + D : I - D, K.v[1][1] = j, K.v[2][0] = I, K.v[2][1] = j + W, K.v[3][0] = $ ? I - D : I + D, K.v[3][1] = j, K.i[0][0] = $ ? I - D * k : I + D * k, K.i[0][1] = j - W, K.i[1][0] = $ ? I + D : I - D, K.i[1][1] = j - W * k, K.i[2][0] = $ ? I + D * k : I - D * k, K.i[2][1] = j + W, K.i[3][0] = $ ? I - D : I + D, K.i[3][1] = j + W * k, K.o[0][0] = $ ? I + D * k : I - D * k, K.o[0][1] = j - W, K.o[1][0] = $ ? I + D : I - D, K.o[1][1] = j + W * k, K.o[2][0] = $ ? I - D * k : I + D * k, K.o[2][1] = j + W, K.o[3][0] = $ ? I - D : I + D, K.o[3][1] = j - W * k;
16695
16702
  }
16696
16703
  }, extendPrototype([DynamicPropertyContainer], L), L;
16697
16704
  })(), A = (function() {
@@ -16704,19 +16711,19 @@ function requireLottie() {
16704
16711
  this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
16705
16712
  },
16706
16713
  convertStarToPath: function() {
16707
- var N = Math.floor(this.pt.v) * 2, I = Math.PI * 2 / N, V = !0, D = this.or.v, W = this.ir.v, $ = this.os.v, K = this.is.v, Z = 2 * Math.PI * D / (N * 2), ee = 2 * Math.PI * W / (N * 2), q, Q, Y, te, F = -Math.PI / 2;
16714
+ var N = Math.floor(this.pt.v) * 2, I = Math.PI * 2 / N, j = !0, D = this.or.v, W = this.ir.v, $ = this.os.v, K = this.is.v, Z = 2 * Math.PI * D / (N * 2), ee = 2 * Math.PI * W / (N * 2), q, Q, Y, te, F = -Math.PI / 2;
16708
16715
  F += this.r.v;
16709
16716
  var H = this.data.d === 3 ? -1 : 1;
16710
16717
  for (this.v._length = 0, q = 0; q < N; q += 1) {
16711
- Q = V ? D : W, Y = V ? $ : K, te = V ? Z : ee;
16712
- var B = Q * Math.cos(F), j = Q * Math.sin(F), J = B === 0 && j === 0 ? 0 : j / Math.sqrt(B * B + j * j), re = B === 0 && j === 0 ? 0 : -B / Math.sqrt(B * B + j * j);
16713
- B += +this.p.v[0], j += +this.p.v[1], this.v.setTripleAt(B, j, B - J * te * Y * H, j - re * te * Y * H, B + J * te * Y * H, j + re * te * Y * H, q, !0), V = !V, F += I * H;
16718
+ Q = j ? D : W, Y = j ? $ : K, te = j ? Z : ee;
16719
+ var B = Q * Math.cos(F), V = Q * Math.sin(F), J = B === 0 && V === 0 ? 0 : V / Math.sqrt(B * B + V * V), re = B === 0 && V === 0 ? 0 : -B / Math.sqrt(B * B + V * V);
16720
+ B += +this.p.v[0], V += +this.p.v[1], this.v.setTripleAt(B, V, B - J * te * Y * H, V - re * te * Y * H, B + J * te * Y * H, V + re * te * Y * H, q, !0), j = !j, F += I * H;
16714
16721
  }
16715
16722
  },
16716
16723
  convertPolygonToPath: function() {
16717
- var N = Math.floor(this.pt.v), I = Math.PI * 2 / N, V = this.or.v, D = this.os.v, W = 2 * Math.PI * V / (N * 4), $, K = -Math.PI * 0.5, Z = this.data.d === 3 ? -1 : 1;
16724
+ var N = Math.floor(this.pt.v), I = Math.PI * 2 / N, j = this.or.v, D = this.os.v, W = 2 * Math.PI * j / (N * 4), $, K = -Math.PI * 0.5, Z = this.data.d === 3 ? -1 : 1;
16718
16725
  for (K += this.r.v, this.v._length = 0, $ = 0; $ < N; $ += 1) {
16719
- var ee = V * Math.cos(K), q = V * Math.sin(K), Q = ee === 0 && q === 0 ? 0 : q / Math.sqrt(ee * ee + q * q), Y = ee === 0 && q === 0 ? 0 : -ee / Math.sqrt(ee * ee + q * q);
16726
+ var ee = j * Math.cos(K), q = j * Math.sin(K), Q = ee === 0 && q === 0 ? 0 : q / Math.sqrt(ee * ee + q * q), Y = ee === 0 && q === 0 ? 0 : -ee / Math.sqrt(ee * ee + q * q);
16720
16727
  ee += +this.p.v[0], q += +this.p.v[1], this.v.setTripleAt(ee, q, ee - Q * W * D * Z, q - Y * W * D * Z, ee + Q * W * D * Z, q + Y * W * D * Z, $, !0), K += I * Z;
16721
16728
  }
16722
16729
  this.paths.length = 0, this.paths[0] = this.v;
@@ -16728,8 +16735,8 @@ function requireLottie() {
16728
16735
  }
16729
16736
  return k.prototype = {
16730
16737
  convertRectToPath: function() {
16731
- var N = this.p.v[0], I = this.p.v[1], V = this.s.v[0] / 2, D = this.s.v[1] / 2, W = bmMin(V, D, this.r.v), $ = W * (1 - roundCorner);
16732
- this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(N + V, I - D + W, N + V, I - D + W, N + V, I - D + $, 0, !0), this.v.setTripleAt(N + V, I + D - W, N + V, I + D - $, N + V, I + D - W, 1, !0), W !== 0 ? (this.v.setTripleAt(N + V - W, I + D, N + V - W, I + D, N + V - $, I + D, 2, !0), this.v.setTripleAt(N - V + W, I + D, N - V + $, I + D, N - V + W, I + D, 3, !0), this.v.setTripleAt(N - V, I + D - W, N - V, I + D - W, N - V, I + D - $, 4, !0), this.v.setTripleAt(N - V, I - D + W, N - V, I - D + $, N - V, I - D + W, 5, !0), this.v.setTripleAt(N - V + W, I - D, N - V + W, I - D, N - V + $, I - D, 6, !0), this.v.setTripleAt(N + V - W, I - D, N + V - $, I - D, N + V - W, I - D, 7, !0)) : (this.v.setTripleAt(N - V, I + D, N - V + $, I + D, N - V, I + D, 2), this.v.setTripleAt(N - V, I - D, N - V, I - D + $, N - V, I - D, 3))) : (this.v.setTripleAt(N + V, I - D + W, N + V, I - D + $, N + V, I - D + W, 0, !0), W !== 0 ? (this.v.setTripleAt(N + V - W, I - D, N + V - W, I - D, N + V - $, I - D, 1, !0), this.v.setTripleAt(N - V + W, I - D, N - V + $, I - D, N - V + W, I - D, 2, !0), this.v.setTripleAt(N - V, I - D + W, N - V, I - D + W, N - V, I - D + $, 3, !0), this.v.setTripleAt(N - V, I + D - W, N - V, I + D - $, N - V, I + D - W, 4, !0), this.v.setTripleAt(N - V + W, I + D, N - V + W, I + D, N - V + $, I + D, 5, !0), this.v.setTripleAt(N + V - W, I + D, N + V - $, I + D, N + V - W, I + D, 6, !0), this.v.setTripleAt(N + V, I + D - W, N + V, I + D - W, N + V, I + D - $, 7, !0)) : (this.v.setTripleAt(N - V, I - D, N - V + $, I - D, N - V, I - D, 1, !0), this.v.setTripleAt(N - V, I + D, N - V, I + D - $, N - V, I + D, 2, !0), this.v.setTripleAt(N + V, I + D, N + V - $, I + D, N + V, I + D, 3, !0)));
16738
+ var N = this.p.v[0], I = this.p.v[1], j = this.s.v[0] / 2, D = this.s.v[1] / 2, W = bmMin(j, D, this.r.v), $ = W * (1 - roundCorner);
16739
+ this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(N + j, I - D + W, N + j, I - D + W, N + j, I - D + $, 0, !0), this.v.setTripleAt(N + j, I + D - W, N + j, I + D - $, N + j, I + D - W, 1, !0), W !== 0 ? (this.v.setTripleAt(N + j - W, I + D, N + j - W, I + D, N + j - $, I + D, 2, !0), this.v.setTripleAt(N - j + W, I + D, N - j + $, I + D, N - j + W, I + D, 3, !0), this.v.setTripleAt(N - j, I + D - W, N - j, I + D - W, N - j, I + D - $, 4, !0), this.v.setTripleAt(N - j, I - D + W, N - j, I - D + $, N - j, I - D + W, 5, !0), this.v.setTripleAt(N - j + W, I - D, N - j + W, I - D, N - j + $, I - D, 6, !0), this.v.setTripleAt(N + j - W, I - D, N + j - $, I - D, N + j - W, I - D, 7, !0)) : (this.v.setTripleAt(N - j, I + D, N - j + $, I + D, N - j, I + D, 2), this.v.setTripleAt(N - j, I - D, N - j, I - D + $, N - j, I - D, 3))) : (this.v.setTripleAt(N + j, I - D + W, N + j, I - D + $, N + j, I - D + W, 0, !0), W !== 0 ? (this.v.setTripleAt(N + j - W, I - D, N + j - W, I - D, N + j - $, I - D, 1, !0), this.v.setTripleAt(N - j + W, I - D, N - j + $, I - D, N - j + W, I - D, 2, !0), this.v.setTripleAt(N - j, I - D + W, N - j, I - D + W, N - j, I - D + $, 3, !0), this.v.setTripleAt(N - j, I + D - W, N - j, I + D - $, N - j, I + D - W, 4, !0), this.v.setTripleAt(N - j + W, I + D, N - j + W, I + D, N - j + $, I + D, 5, !0), this.v.setTripleAt(N + j - W, I + D, N + j - $, I + D, N + j - W, I + D, 6, !0), this.v.setTripleAt(N + j, I + D - W, N + j, I + D - W, N + j, I + D - $, 7, !0)) : (this.v.setTripleAt(N - j, I - D, N - j + $, I - D, N - j, I - D, 1, !0), this.v.setTripleAt(N - j, I + D, N - j, I + D - $, N - j, I + D, 2, !0), this.v.setTripleAt(N + j, I + D, N + j - $, I + D, N + j, I + D, 3, !0)));
16733
16740
  },
16734
16741
  getValue: function() {
16735
16742
  this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
@@ -16740,7 +16747,7 @@ function requireLottie() {
16740
16747
  function P(k, L, N) {
16741
16748
  var I;
16742
16749
  if (N === 3 || N === 4) {
16743
- var V = N === 3 ? L.pt : L.ks, D = V.k;
16750
+ var j = N === 3 ? L.pt : L.ks, D = j.k;
16744
16751
  D.length ? I = new T(k, L, N) : I = new b(k, L, N);
16745
16752
  } else N === 5 ? I = new _(k, L) : N === 6 ? I = new S(k, L) : N === 7 && (I = new A(k, L));
16746
16753
  return I.k && k.addDynamicProperty(I), I;
@@ -16762,144 +16769,144 @@ function requireLottie() {
16762
16769
  function g(B) {
16763
16770
  if (B === 0)
16764
16771
  return this;
16765
- var j = n(B), J = u(B);
16766
- return this._t(j, -J, 0, 0, J, j, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
16772
+ var V = n(B), J = u(B);
16773
+ return this._t(V, -J, 0, 0, J, V, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
16767
16774
  }
16768
16775
  function y(B) {
16769
16776
  if (B === 0)
16770
16777
  return this;
16771
- var j = n(B), J = u(B);
16772
- return this._t(1, 0, 0, 0, 0, j, -J, 0, 0, J, j, 0, 0, 0, 0, 1);
16778
+ var V = n(B), J = u(B);
16779
+ return this._t(1, 0, 0, 0, 0, V, -J, 0, 0, J, V, 0, 0, 0, 0, 1);
16773
16780
  }
16774
16781
  function b(B) {
16775
16782
  if (B === 0)
16776
16783
  return this;
16777
- var j = n(B), J = u(B);
16778
- return this._t(j, 0, J, 0, 0, 1, 0, 0, -J, 0, j, 0, 0, 0, 0, 1);
16784
+ var V = n(B), J = u(B);
16785
+ return this._t(V, 0, J, 0, 0, 1, 0, 0, -J, 0, V, 0, 0, 0, 0, 1);
16779
16786
  }
16780
16787
  function E(B) {
16781
16788
  if (B === 0)
16782
16789
  return this;
16783
- var j = n(B), J = u(B);
16784
- return this._t(j, -J, 0, 0, J, j, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
16790
+ var V = n(B), J = u(B);
16791
+ return this._t(V, -J, 0, 0, J, V, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
16785
16792
  }
16786
- function T(B, j) {
16787
- return this._t(1, j, B, 1, 0, 0);
16793
+ function T(B, V) {
16794
+ return this._t(1, V, B, 1, 0, 0);
16788
16795
  }
16789
- function S(B, j) {
16790
- return this.shear(d(B), d(j));
16796
+ function S(B, V) {
16797
+ return this.shear(d(B), d(V));
16791
16798
  }
16792
- function A(B, j) {
16793
- var J = n(j), re = u(j);
16799
+ function A(B, V) {
16800
+ var J = n(V), re = u(V);
16794
16801
  return this._t(J, re, 0, 0, -re, J, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, d(B), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(J, -re, 0, 0, re, J, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
16795
16802
  }
16796
- function _(B, j, J) {
16797
- return !J && J !== 0 && (J = 1), B === 1 && j === 1 && J === 1 ? this : this._t(B, 0, 0, 0, 0, j, 0, 0, 0, 0, J, 0, 0, 0, 0, 1);
16803
+ function _(B, V, J) {
16804
+ return !J && J !== 0 && (J = 1), B === 1 && V === 1 && J === 1 ? this : this._t(B, 0, 0, 0, 0, V, 0, 0, 0, 0, J, 0, 0, 0, 0, 1);
16798
16805
  }
16799
- function P(B, j, J, re, ie, oe, se, ne, le, de, ue, pe, he, me, ye, be) {
16800
- return this.props[0] = B, this.props[1] = j, this.props[2] = J, this.props[3] = re, this.props[4] = ie, this.props[5] = oe, this.props[6] = se, this.props[7] = ne, this.props[8] = le, this.props[9] = de, this.props[10] = ue, this.props[11] = pe, this.props[12] = he, this.props[13] = me, this.props[14] = ye, this.props[15] = be, this;
16806
+ function P(B, V, J, re, ie, oe, se, ne, le, de, ue, pe, he, me, ye, be) {
16807
+ return this.props[0] = B, this.props[1] = V, this.props[2] = J, this.props[3] = re, this.props[4] = ie, this.props[5] = oe, this.props[6] = se, this.props[7] = ne, this.props[8] = le, this.props[9] = de, this.props[10] = ue, this.props[11] = pe, this.props[12] = he, this.props[13] = me, this.props[14] = ye, this.props[15] = be, this;
16801
16808
  }
16802
- function C(B, j, J) {
16803
- return J = J || 0, B !== 0 || j !== 0 || J !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, B, j, J, 1) : this;
16809
+ function C(B, V, J) {
16810
+ return J = J || 0, B !== 0 || V !== 0 || J !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, B, V, J, 1) : this;
16804
16811
  }
16805
- function R(B, j, J, re, ie, oe, se, ne, le, de, ue, pe, he, me, ye, be) {
16812
+ function R(B, V, J, re, ie, oe, se, ne, le, de, ue, pe, he, me, ye, be) {
16806
16813
  var fe = this.props;
16807
- if (B === 1 && j === 0 && J === 0 && re === 0 && ie === 0 && oe === 1 && se === 0 && ne === 0 && le === 0 && de === 0 && ue === 1 && pe === 0)
16814
+ if (B === 1 && V === 0 && J === 0 && re === 0 && ie === 0 && oe === 1 && se === 0 && ne === 0 && le === 0 && de === 0 && ue === 1 && pe === 0)
16808
16815
  return fe[12] = fe[12] * B + fe[15] * he, fe[13] = fe[13] * oe + fe[15] * me, fe[14] = fe[14] * ue + fe[15] * ye, fe[15] *= be, this._identityCalculated = !1, this;
16809
16816
  var Se = fe[0], Oe = fe[1], Ae = fe[2], _e = fe[3], Re = fe[4], Le = fe[5], Ce = fe[6], Ie = fe[7], Me = fe[8], Pe = fe[9], $e = fe[10], De = fe[11], Ue = fe[12], Be = fe[13], Xe = fe[14], je = fe[15];
16810
- return fe[0] = Se * B + Oe * ie + Ae * le + _e * he, fe[1] = Se * j + Oe * oe + Ae * de + _e * me, fe[2] = Se * J + Oe * se + Ae * ue + _e * ye, fe[3] = Se * re + Oe * ne + Ae * pe + _e * be, fe[4] = Re * B + Le * ie + Ce * le + Ie * he, fe[5] = Re * j + Le * oe + Ce * de + Ie * me, fe[6] = Re * J + Le * se + Ce * ue + Ie * ye, fe[7] = Re * re + Le * ne + Ce * pe + Ie * be, fe[8] = Me * B + Pe * ie + $e * le + De * he, fe[9] = Me * j + Pe * oe + $e * de + De * me, fe[10] = Me * J + Pe * se + $e * ue + De * ye, fe[11] = Me * re + Pe * ne + $e * pe + De * be, fe[12] = Ue * B + Be * ie + Xe * le + je * he, fe[13] = Ue * j + Be * oe + Xe * de + je * me, fe[14] = Ue * J + Be * se + Xe * ue + je * ye, fe[15] = Ue * re + Be * ne + Xe * pe + je * be, this._identityCalculated = !1, this;
16817
+ return fe[0] = Se * B + Oe * ie + Ae * le + _e * he, fe[1] = Se * V + Oe * oe + Ae * de + _e * me, fe[2] = Se * J + Oe * se + Ae * ue + _e * ye, fe[3] = Se * re + Oe * ne + Ae * pe + _e * be, fe[4] = Re * B + Le * ie + Ce * le + Ie * he, fe[5] = Re * V + Le * oe + Ce * de + Ie * me, fe[6] = Re * J + Le * se + Ce * ue + Ie * ye, fe[7] = Re * re + Le * ne + Ce * pe + Ie * be, fe[8] = Me * B + Pe * ie + $e * le + De * he, fe[9] = Me * V + Pe * oe + $e * de + De * me, fe[10] = Me * J + Pe * se + $e * ue + De * ye, fe[11] = Me * re + Pe * ne + $e * pe + De * be, fe[12] = Ue * B + Be * ie + Xe * le + je * he, fe[13] = Ue * V + Be * oe + Xe * de + je * me, fe[14] = Ue * J + Be * se + Xe * ue + je * ye, fe[15] = Ue * re + Be * ne + Xe * pe + je * be, this._identityCalculated = !1, this;
16811
16818
  }
16812
16819
  function O(B) {
16813
- var j = B.props;
16814
- return this.transform(j[0], j[1], j[2], j[3], j[4], j[5], j[6], j[7], j[8], j[9], j[10], j[11], j[12], j[13], j[14], j[15]);
16820
+ var V = B.props;
16821
+ return this.transform(V[0], V[1], V[2], V[3], V[4], V[5], V[6], V[7], V[8], V[9], V[10], V[11], V[12], V[13], V[14], V[15]);
16815
16822
  }
16816
16823
  function k() {
16817
16824
  return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
16818
16825
  }
16819
16826
  function L(B) {
16820
- for (var j = 0; j < 16; ) {
16821
- if (B.props[j] !== this.props[j])
16827
+ for (var V = 0; V < 16; ) {
16828
+ if (B.props[V] !== this.props[V])
16822
16829
  return !1;
16823
- j += 1;
16830
+ V += 1;
16824
16831
  }
16825
16832
  return !0;
16826
16833
  }
16827
16834
  function N(B) {
16828
- var j;
16829
- for (j = 0; j < 16; j += 1)
16830
- B.props[j] = this.props[j];
16835
+ var V;
16836
+ for (V = 0; V < 16; V += 1)
16837
+ B.props[V] = this.props[V];
16831
16838
  return B;
16832
16839
  }
16833
16840
  function I(B) {
16834
- var j;
16835
- for (j = 0; j < 16; j += 1)
16836
- this.props[j] = B[j];
16841
+ var V;
16842
+ for (V = 0; V < 16; V += 1)
16843
+ this.props[V] = B[V];
16837
16844
  }
16838
- function V(B, j, J) {
16845
+ function j(B, V, J) {
16839
16846
  return {
16840
- x: B * this.props[0] + j * this.props[4] + J * this.props[8] + this.props[12],
16841
- y: B * this.props[1] + j * this.props[5] + J * this.props[9] + this.props[13],
16842
- z: B * this.props[2] + j * this.props[6] + J * this.props[10] + this.props[14]
16847
+ x: B * this.props[0] + V * this.props[4] + J * this.props[8] + this.props[12],
16848
+ y: B * this.props[1] + V * this.props[5] + J * this.props[9] + this.props[13],
16849
+ z: B * this.props[2] + V * this.props[6] + J * this.props[10] + this.props[14]
16843
16850
  };
16844
16851
  }
16845
- function D(B, j, J) {
16846
- return B * this.props[0] + j * this.props[4] + J * this.props[8] + this.props[12];
16852
+ function D(B, V, J) {
16853
+ return B * this.props[0] + V * this.props[4] + J * this.props[8] + this.props[12];
16847
16854
  }
16848
- function W(B, j, J) {
16849
- return B * this.props[1] + j * this.props[5] + J * this.props[9] + this.props[13];
16855
+ function W(B, V, J) {
16856
+ return B * this.props[1] + V * this.props[5] + J * this.props[9] + this.props[13];
16850
16857
  }
16851
- function $(B, j, J) {
16852
- return B * this.props[2] + j * this.props[6] + J * this.props[10] + this.props[14];
16858
+ function $(B, V, J) {
16859
+ return B * this.props[2] + V * this.props[6] + J * this.props[10] + this.props[14];
16853
16860
  }
16854
16861
  function K() {
16855
- var B = this.props[0] * this.props[5] - this.props[1] * this.props[4], j = this.props[5] / B, J = -this.props[1] / B, re = -this.props[4] / B, ie = this.props[0] / B, oe = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / B, se = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / B, ne = new Matrix();
16856
- return ne.props[0] = j, ne.props[1] = J, ne.props[4] = re, ne.props[5] = ie, ne.props[12] = oe, ne.props[13] = se, ne;
16862
+ var B = this.props[0] * this.props[5] - this.props[1] * this.props[4], V = this.props[5] / B, J = -this.props[1] / B, re = -this.props[4] / B, ie = this.props[0] / B, oe = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / B, se = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / B, ne = new Matrix();
16863
+ return ne.props[0] = V, ne.props[1] = J, ne.props[4] = re, ne.props[5] = ie, ne.props[12] = oe, ne.props[13] = se, ne;
16857
16864
  }
16858
16865
  function Z(B) {
16859
- var j = this.getInverseMatrix();
16860
- return j.applyToPointArray(B[0], B[1], B[2] || 0);
16866
+ var V = this.getInverseMatrix();
16867
+ return V.applyToPointArray(B[0], B[1], B[2] || 0);
16861
16868
  }
16862
16869
  function ee(B) {
16863
- var j, J = B.length, re = [];
16864
- for (j = 0; j < J; j += 1)
16865
- re[j] = Z(B[j]);
16870
+ var V, J = B.length, re = [];
16871
+ for (V = 0; V < J; V += 1)
16872
+ re[V] = Z(B[V]);
16866
16873
  return re;
16867
16874
  }
16868
- function q(B, j, J) {
16875
+ function q(B, V, J) {
16869
16876
  var re = createTypedArray("float32", 6);
16870
16877
  if (this.isIdentity())
16871
- re[0] = B[0], re[1] = B[1], re[2] = j[0], re[3] = j[1], re[4] = J[0], re[5] = J[1];
16878
+ re[0] = B[0], re[1] = B[1], re[2] = V[0], re[3] = V[1], re[4] = J[0], re[5] = J[1];
16872
16879
  else {
16873
16880
  var ie = this.props[0], oe = this.props[1], se = this.props[4], ne = this.props[5], le = this.props[12], de = this.props[13];
16874
- re[0] = B[0] * ie + B[1] * se + le, re[1] = B[0] * oe + B[1] * ne + de, re[2] = j[0] * ie + j[1] * se + le, re[3] = j[0] * oe + j[1] * ne + de, re[4] = J[0] * ie + J[1] * se + le, re[5] = J[0] * oe + J[1] * ne + de;
16881
+ re[0] = B[0] * ie + B[1] * se + le, re[1] = B[0] * oe + B[1] * ne + de, re[2] = V[0] * ie + V[1] * se + le, re[3] = V[0] * oe + V[1] * ne + de, re[4] = J[0] * ie + J[1] * se + le, re[5] = J[0] * oe + J[1] * ne + de;
16875
16882
  }
16876
16883
  return re;
16877
16884
  }
16878
- function Q(B, j, J) {
16885
+ function Q(B, V, J) {
16879
16886
  var re;
16880
- return this.isIdentity() ? re = [B, j, J] : re = [B * this.props[0] + j * this.props[4] + J * this.props[8] + this.props[12], B * this.props[1] + j * this.props[5] + J * this.props[9] + this.props[13], B * this.props[2] + j * this.props[6] + J * this.props[10] + this.props[14]], re;
16887
+ return this.isIdentity() ? re = [B, V, J] : re = [B * this.props[0] + V * this.props[4] + J * this.props[8] + this.props[12], B * this.props[1] + V * this.props[5] + J * this.props[9] + this.props[13], B * this.props[2] + V * this.props[6] + J * this.props[10] + this.props[14]], re;
16881
16888
  }
16882
- function Y(B, j) {
16889
+ function Y(B, V) {
16883
16890
  if (this.isIdentity())
16884
- return B + "," + j;
16891
+ return B + "," + V;
16885
16892
  var J = this.props;
16886
- return Math.round((B * J[0] + j * J[4] + J[12]) * 100) / 100 + "," + Math.round((B * J[1] + j * J[5] + J[13]) * 100) / 100;
16893
+ return Math.round((B * J[0] + V * J[4] + J[12]) * 100) / 100 + "," + Math.round((B * J[1] + V * J[5] + J[13]) * 100) / 100;
16887
16894
  }
16888
16895
  function te() {
16889
- for (var B = 0, j = this.props, J = "matrix3d(", re = 1e4; B < 16; )
16890
- J += p(j[B] * re) / re, J += B === 15 ? ")" : ",", B += 1;
16896
+ for (var B = 0, V = this.props, J = "matrix3d(", re = 1e4; B < 16; )
16897
+ J += p(V[B] * re) / re, J += B === 15 ? ")" : ",", B += 1;
16891
16898
  return J;
16892
16899
  }
16893
16900
  function F(B) {
16894
- var j = 1e4;
16895
- return B < 1e-6 && B > 0 || B > -1e-6 && B < 0 ? p(B * j) / j : B;
16901
+ var V = 1e4;
16902
+ return B < 1e-6 && B > 0 || B > -1e-6 && B < 0 ? p(B * V) / V : B;
16896
16903
  }
16897
16904
  function H() {
16898
- var B = this.props, j = F(B[0]), J = F(B[1]), re = F(B[4]), ie = F(B[5]), oe = F(B[12]), se = F(B[13]);
16899
- return "matrix(" + j + "," + J + "," + re + "," + ie + "," + oe + "," + se + ")";
16905
+ var B = this.props, V = F(B[0]), J = F(B[1]), re = F(B[4]), ie = F(B[5]), oe = F(B[12]), se = F(B[13]);
16906
+ return "matrix(" + V + "," + J + "," + re + "," + ie + "," + oe + "," + se + ")";
16900
16907
  }
16901
16908
  return function() {
16902
- this.reset = m, this.rotate = g, this.rotateX = y, this.rotateY = b, this.rotateZ = E, this.skew = S, this.skewFromAxis = A, this.shear = T, this.scale = _, this.setTransform = P, this.translate = C, this.transform = R, this.multiply = O, this.applyToPoint = V, this.applyToX = D, this.applyToY = W, this.applyToZ = $, this.applyToPointArray = Q, this.applyToTriplePoints = q, this.applyToPointStringified = Y, this.toCSS = te, this.to2dCSS = H, this.clone = N, this.cloneFromProps = I, this.equals = L, this.inversePoints = ee, this.inversePoint = Z, this.getInverseMatrix = K, this._t = this.transform, this.isIdentity = k, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
16909
+ this.reset = m, this.rotate = g, this.rotateX = y, this.rotateY = b, this.rotateZ = E, this.skew = S, this.skewFromAxis = A, this.shear = T, this.scale = _, this.setTransform = P, this.translate = C, this.transform = R, this.multiply = O, this.applyToPoint = j, this.applyToX = D, this.applyToY = W, this.applyToZ = $, this.applyToPointArray = Q, this.applyToTriplePoints = q, this.applyToPointStringified = Y, this.toCSS = te, this.to2dCSS = H, this.clone = N, this.cloneFromProps = I, this.equals = L, this.inversePoints = ee, this.inversePoint = Z, this.getInverseMatrix = K, this._t = this.transform, this.isIdentity = k, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
16903
16910
  };
16904
16911
  })();
16905
16912
  function _typeof$3(n) {
@@ -17098,17 +17105,17 @@ function requireLottie() {
17098
17105
  s: 0,
17099
17106
  e: R.totalShapeLength * (L - 1)
17100
17107
  }));
17101
- var V = this.addShapes(R, C[0]);
17108
+ var j = this.addShapes(R, C[0]);
17102
17109
  if (C[0].s !== C[0].e) {
17103
17110
  if (C.length > 1) {
17104
17111
  var D = R.shape.paths.shapes[R.shape.paths._length - 1];
17105
17112
  if (D.c) {
17106
- var W = V.pop();
17107
- this.addPaths(V, O), V = this.addShapes(R, C[1], W);
17113
+ var W = j.pop();
17114
+ this.addPaths(j, O), j = this.addShapes(R, C[1], W);
17108
17115
  } else
17109
- this.addPaths(V, O), V = this.addShapes(R, C[1]);
17116
+ this.addPaths(j, O), j = this.addShapes(R, C[1]);
17110
17117
  }
17111
- this.addPaths(V, O);
17118
+ this.addPaths(j, O);
17112
17119
  }
17113
17120
  }
17114
17121
  R.shape.paths = O;
@@ -17723,40 +17730,40 @@ function requireLottie() {
17723
17730
  d = d.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
17724
17731
  var p = 127988, m = 917631, g = 917601, y = 917626, b = 65039, E = 8205, T = 127462, S = 127487, A = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
17725
17732
  function _(F) {
17726
- var H = F.split(","), B, j = H.length, J = [];
17727
- for (B = 0; B < j; B += 1)
17733
+ var H = F.split(","), B, V = H.length, J = [];
17734
+ for (B = 0; B < V; B += 1)
17728
17735
  H[B] !== "sans-serif" && H[B] !== "monospace" && J.push(H[B]);
17729
17736
  return J.join(",");
17730
17737
  }
17731
17738
  function P(F, H) {
17732
17739
  var B = createTag("span");
17733
17740
  B.setAttribute("aria-hidden", !0), B.style.fontFamily = H;
17734
- var j = createTag("span");
17735
- j.innerText = "giItT1WQy@!-/#", B.style.position = "absolute", B.style.left = "-10000px", B.style.top = "-10000px", B.style.fontSize = "300px", B.style.fontVariant = "normal", B.style.fontStyle = "normal", B.style.fontWeight = "normal", B.style.letterSpacing = "0", B.appendChild(j), document.body.appendChild(B);
17736
- var J = j.offsetWidth;
17737
- return j.style.fontFamily = _(F) + ", " + H, {
17738
- node: j,
17741
+ var V = createTag("span");
17742
+ V.innerText = "giItT1WQy@!-/#", B.style.position = "absolute", B.style.left = "-10000px", B.style.top = "-10000px", B.style.fontSize = "300px", B.style.fontVariant = "normal", B.style.fontStyle = "normal", B.style.fontWeight = "normal", B.style.letterSpacing = "0", B.appendChild(V), document.body.appendChild(B);
17743
+ var J = V.offsetWidth;
17744
+ return V.style.fontFamily = _(F) + ", " + H, {
17745
+ node: V,
17739
17746
  w: J,
17740
17747
  parent: B
17741
17748
  };
17742
17749
  }
17743
17750
  function C() {
17744
- var F, H = this.fonts.length, B, j, J = H;
17751
+ var F, H = this.fonts.length, B, V, J = H;
17745
17752
  for (F = 0; F < H; F += 1)
17746
- this.fonts[F].loaded ? J -= 1 : this.fonts[F].fOrigin === "n" || this.fonts[F].origin === 0 ? this.fonts[F].loaded = !0 : (B = this.fonts[F].monoCase.node, j = this.fonts[F].monoCase.w, B.offsetWidth !== j ? (J -= 1, this.fonts[F].loaded = !0) : (B = this.fonts[F].sansCase.node, j = this.fonts[F].sansCase.w, B.offsetWidth !== j && (J -= 1, this.fonts[F].loaded = !0)), this.fonts[F].loaded && (this.fonts[F].sansCase.parent.parentNode.removeChild(this.fonts[F].sansCase.parent), this.fonts[F].monoCase.parent.parentNode.removeChild(this.fonts[F].monoCase.parent)));
17753
+ this.fonts[F].loaded ? J -= 1 : this.fonts[F].fOrigin === "n" || this.fonts[F].origin === 0 ? this.fonts[F].loaded = !0 : (B = this.fonts[F].monoCase.node, V = this.fonts[F].monoCase.w, B.offsetWidth !== V ? (J -= 1, this.fonts[F].loaded = !0) : (B = this.fonts[F].sansCase.node, V = this.fonts[F].sansCase.w, B.offsetWidth !== V && (J -= 1, this.fonts[F].loaded = !0)), this.fonts[F].loaded && (this.fonts[F].sansCase.parent.parentNode.removeChild(this.fonts[F].sansCase.parent), this.fonts[F].monoCase.parent.parentNode.removeChild(this.fonts[F].monoCase.parent)));
17747
17754
  J !== 0 && Date.now() - this.initTime < n ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
17748
17755
  }
17749
17756
  function R(F, H) {
17750
- var B = document.body && H ? "svg" : "canvas", j, J = getFontProperties(F);
17757
+ var B = document.body && H ? "svg" : "canvas", V, J = getFontProperties(F);
17751
17758
  if (B === "svg") {
17752
17759
  var re = createNS("text");
17753
- re.style.fontSize = "100px", re.setAttribute("font-family", F.fFamily), re.setAttribute("font-style", J.style), re.setAttribute("font-weight", J.weight), re.textContent = "1", F.fClass ? (re.style.fontFamily = "inherit", re.setAttribute("class", F.fClass)) : re.style.fontFamily = F.fFamily, H.appendChild(re), j = re;
17760
+ re.style.fontSize = "100px", re.setAttribute("font-family", F.fFamily), re.setAttribute("font-style", J.style), re.setAttribute("font-weight", J.weight), re.textContent = "1", F.fClass ? (re.style.fontFamily = "inherit", re.setAttribute("class", F.fClass)) : re.style.fontFamily = F.fFamily, H.appendChild(re), V = re;
17754
17761
  } else {
17755
17762
  var ie = new OffscreenCanvas(500, 500).getContext("2d");
17756
- ie.font = J.style + " " + J.weight + " 100px " + F.fFamily, j = ie;
17763
+ ie.font = J.style + " " + J.weight + " 100px " + F.fFamily, V = ie;
17757
17764
  }
17758
17765
  function oe(se) {
17759
- return B === "svg" ? (j.textContent = se, j.getComputedTextLength()) : j.measureText(se).width;
17766
+ return B === "svg" ? (V.textContent = se, V.getComputedTextLength()) : V.measureText(se).width;
17760
17767
  }
17761
17768
  return {
17762
17769
  measureText: oe
@@ -17777,65 +17784,65 @@ function requireLottie() {
17777
17784
  }), this.fonts = F.list;
17778
17785
  return;
17779
17786
  }
17780
- var B = F.list, j, J = B.length, re = J;
17781
- for (j = 0; j < J; j += 1) {
17787
+ var B = F.list, V, J = B.length, re = J;
17788
+ for (V = 0; V < J; V += 1) {
17782
17789
  var ie = !0, oe, se;
17783
- if (B[j].loaded = !1, B[j].monoCase = P(B[j].fFamily, "monospace"), B[j].sansCase = P(B[j].fFamily, "sans-serif"), !B[j].fPath)
17784
- B[j].loaded = !0, re -= 1;
17785
- else if (B[j].fOrigin === "p" || B[j].origin === 3) {
17786
- if (oe = document.querySelectorAll('style[f-forigin="p"][f-family="' + B[j].fFamily + '"], style[f-origin="3"][f-family="' + B[j].fFamily + '"]'), oe.length > 0 && (ie = !1), ie) {
17790
+ if (B[V].loaded = !1, B[V].monoCase = P(B[V].fFamily, "monospace"), B[V].sansCase = P(B[V].fFamily, "sans-serif"), !B[V].fPath)
17791
+ B[V].loaded = !0, re -= 1;
17792
+ else if (B[V].fOrigin === "p" || B[V].origin === 3) {
17793
+ if (oe = document.querySelectorAll('style[f-forigin="p"][f-family="' + B[V].fFamily + '"], style[f-origin="3"][f-family="' + B[V].fFamily + '"]'), oe.length > 0 && (ie = !1), ie) {
17787
17794
  var ne = createTag("style");
17788
- ne.setAttribute("f-forigin", B[j].fOrigin), ne.setAttribute("f-origin", B[j].origin), ne.setAttribute("f-family", B[j].fFamily), ne.type = "text/css", ne.innerText = "@font-face {font-family: " + B[j].fFamily + "; font-style: normal; src: url('" + B[j].fPath + "');}", H.appendChild(ne);
17795
+ ne.setAttribute("f-forigin", B[V].fOrigin), ne.setAttribute("f-origin", B[V].origin), ne.setAttribute("f-family", B[V].fFamily), ne.type = "text/css", ne.innerText = "@font-face {font-family: " + B[V].fFamily + "; font-style: normal; src: url('" + B[V].fPath + "');}", H.appendChild(ne);
17789
17796
  }
17790
- } else if (B[j].fOrigin === "g" || B[j].origin === 1) {
17797
+ } else if (B[V].fOrigin === "g" || B[V].origin === 1) {
17791
17798
  for (oe = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), se = 0; se < oe.length; se += 1)
17792
- oe[se].href.indexOf(B[j].fPath) !== -1 && (ie = !1);
17799
+ oe[se].href.indexOf(B[V].fPath) !== -1 && (ie = !1);
17793
17800
  if (ie) {
17794
17801
  var le = createTag("link");
17795
- le.setAttribute("f-forigin", B[j].fOrigin), le.setAttribute("f-origin", B[j].origin), le.type = "text/css", le.rel = "stylesheet", le.href = B[j].fPath, document.body.appendChild(le);
17802
+ le.setAttribute("f-forigin", B[V].fOrigin), le.setAttribute("f-origin", B[V].origin), le.type = "text/css", le.rel = "stylesheet", le.href = B[V].fPath, document.body.appendChild(le);
17796
17803
  }
17797
- } else if (B[j].fOrigin === "t" || B[j].origin === 2) {
17804
+ } else if (B[V].fOrigin === "t" || B[V].origin === 2) {
17798
17805
  for (oe = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), se = 0; se < oe.length; se += 1)
17799
- B[j].fPath === oe[se].src && (ie = !1);
17806
+ B[V].fPath === oe[se].src && (ie = !1);
17800
17807
  if (ie) {
17801
17808
  var de = createTag("link");
17802
- de.setAttribute("f-forigin", B[j].fOrigin), de.setAttribute("f-origin", B[j].origin), de.setAttribute("rel", "stylesheet"), de.setAttribute("href", B[j].fPath), H.appendChild(de);
17809
+ de.setAttribute("f-forigin", B[V].fOrigin), de.setAttribute("f-origin", B[V].origin), de.setAttribute("rel", "stylesheet"), de.setAttribute("href", B[V].fPath), H.appendChild(de);
17803
17810
  }
17804
17811
  }
17805
- B[j].helper = R(B[j], H), B[j].cache = {}, this.fonts.push(B[j]);
17812
+ B[V].helper = R(B[V], H), B[V].cache = {}, this.fonts.push(B[V]);
17806
17813
  }
17807
17814
  re === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
17808
17815
  }
17809
17816
  function k(F) {
17810
17817
  if (F) {
17811
17818
  this.chars || (this.chars = []);
17812
- var H, B = F.length, j, J = this.chars.length, re;
17819
+ var H, B = F.length, V, J = this.chars.length, re;
17813
17820
  for (H = 0; H < B; H += 1) {
17814
- for (j = 0, re = !1; j < J; )
17815
- this.chars[j].style === F[H].style && this.chars[j].fFamily === F[H].fFamily && this.chars[j].ch === F[H].ch && (re = !0), j += 1;
17821
+ for (V = 0, re = !1; V < J; )
17822
+ this.chars[V].style === F[H].style && this.chars[V].fFamily === F[H].fFamily && this.chars[V].ch === F[H].ch && (re = !0), V += 1;
17816
17823
  re || (this.chars.push(F[H]), J += 1);
17817
17824
  }
17818
17825
  }
17819
17826
  }
17820
17827
  function L(F, H, B) {
17821
- for (var j = 0, J = this.chars.length; j < J; ) {
17822
- if (this.chars[j].ch === F && this.chars[j].style === H && this.chars[j].fFamily === B)
17823
- return this.chars[j];
17824
- j += 1;
17828
+ for (var V = 0, J = this.chars.length; V < J; ) {
17829
+ if (this.chars[V].ch === F && this.chars[V].style === H && this.chars[V].fFamily === B)
17830
+ return this.chars[V];
17831
+ V += 1;
17825
17832
  }
17826
17833
  return (typeof F == "string" && F.charCodeAt(0) !== 13 || !F) && console && console.warn && !this._warned && (this._warned = !0), u;
17827
17834
  }
17828
17835
  function N(F, H, B) {
17829
- var j = this.getFontByName(H), J = F;
17830
- if (!j.cache[J]) {
17831
- var re = j.helper;
17836
+ var V = this.getFontByName(H), J = F;
17837
+ if (!V.cache[J]) {
17838
+ var re = V.helper;
17832
17839
  if (F === " ") {
17833
17840
  var ie = re.measureText("|" + F + "|"), oe = re.measureText("||");
17834
- j.cache[J] = (ie - oe) / 100;
17841
+ V.cache[J] = (ie - oe) / 100;
17835
17842
  } else
17836
- j.cache[J] = re.measureText(F) / 100;
17843
+ V.cache[J] = re.measureText(F) / 100;
17837
17844
  }
17838
- return j.cache[J] * B;
17845
+ return V.cache[J] * B;
17839
17846
  }
17840
17847
  function I(F) {
17841
17848
  for (var H = 0, B = this.fonts.length; H < B; ) {
@@ -17845,11 +17852,11 @@ function requireLottie() {
17845
17852
  }
17846
17853
  return this.fonts[0];
17847
17854
  }
17848
- function V(F) {
17855
+ function j(F) {
17849
17856
  var H = 0, B = F.charCodeAt(0);
17850
17857
  if (B >= 55296 && B <= 56319) {
17851
- var j = F.charCodeAt(1);
17852
- j >= 56320 && j <= 57343 && (H = (B - 55296) * 1024 + j - 56320 + 65536);
17858
+ var V = F.charCodeAt(1);
17859
+ V >= 56320 && V <= 57343 && (H = (B - 55296) * 1024 + V - 56320 + 65536);
17853
17860
  }
17854
17861
  return H;
17855
17862
  }
@@ -17864,7 +17871,7 @@ function requireLottie() {
17864
17871
  return F === b;
17865
17872
  }
17866
17873
  function K(F) {
17867
- var H = V(F);
17874
+ var H = j(F);
17868
17875
  return H >= T && H <= S;
17869
17876
  }
17870
17877
  function Z(F) {
@@ -17874,16 +17881,16 @@ function requireLottie() {
17874
17881
  return d.indexOf(F) !== -1;
17875
17882
  }
17876
17883
  function q(F, H) {
17877
- var B = V(F.substr(H, 2));
17884
+ var B = j(F.substr(H, 2));
17878
17885
  if (B !== p)
17879
17886
  return !1;
17880
- var j = 0;
17881
- for (H += 2; j < 5; ) {
17882
- if (B = V(F.substr(H, 2)), B < g || B > y)
17887
+ var V = 0;
17888
+ for (H += 2; V < 5; ) {
17889
+ if (B = j(F.substr(H, 2)), B < g || B > y)
17883
17890
  return !1;
17884
- j += 1, H += 2;
17891
+ V += 1, H += 2;
17885
17892
  }
17886
- return V(F.substr(H, 2)) === m;
17893
+ return j(F.substr(H, 2)) === m;
17887
17894
  }
17888
17895
  function Q() {
17889
17896
  this.isLoaded = !0;
@@ -18383,8 +18390,8 @@ function requireLottie() {
18383
18390
  var I = createNS("g");
18384
18391
  for (S = 0; S < A; S += 1)
18385
18392
  I.appendChild(T[S]);
18386
- var V = createNS("mask");
18387
- V.setAttribute("mask-type", "alpha"), V.setAttribute("id", _ + "_" + E), V.appendChild(y), p.appendChild(V), I.setAttribute("mask", "url(" + getLocationHref() + "#" + _ + "_" + E + ")"), T.length = 0, T.push(I);
18393
+ var j = createNS("mask");
18394
+ j.setAttribute("mask-type", "alpha"), j.setAttribute("id", _ + "_" + E), j.appendChild(y), p.appendChild(j), I.setAttribute("mask", "url(" + getLocationHref() + "#" + _ + "_" + E + ")"), T.length = 0, T.push(I);
18388
18395
  } else
18389
18396
  T.push(y);
18390
18397
  b[m].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[m] = {
@@ -18851,13 +18858,13 @@ function requireLottie() {
18851
18858
  function g() {
18852
18859
  }
18853
18860
  function y(A, _, P) {
18854
- var C, R, O, k, L, N, I = _.styles.length, V = _.lvl, D, W, $, K;
18861
+ var C, R, O, k, L, N, I = _.styles.length, j = _.lvl, D, W, $, K;
18855
18862
  for (N = 0; N < I; N += 1) {
18856
- if (k = _.sh._mdf || P, _.styles[N].lvl < V) {
18857
- for (W = u.reset(), $ = V - _.styles[N].lvl, K = _.transformers.length - 1; !k && $ > 0; )
18863
+ if (k = _.sh._mdf || P, _.styles[N].lvl < j) {
18864
+ for (W = u.reset(), $ = j - _.styles[N].lvl, K = _.transformers.length - 1; !k && $ > 0; )
18858
18865
  k = _.transformers[K].mProps._mdf || k, $ -= 1, K -= 1;
18859
18866
  if (k)
18860
- for ($ = V - _.styles[N].lvl, K = _.transformers.length - 1; $ > 0; )
18867
+ for ($ = j - _.styles[N].lvl, K = _.transformers.length - 1; $ > 0; )
18861
18868
  W.multiply(_.transformers[K].mProps.v), $ -= 1, K -= 1;
18862
18869
  } else
18863
18870
  W = n;
@@ -18887,17 +18894,17 @@ function requireLottie() {
18887
18894
  var N = A.t === 1 ? "x1" : "cx", I = N === "x1" ? "y1" : "cy";
18888
18895
  C.setAttribute(N, O[0]), C.setAttribute(I, O[1]), R && !_.g._collapsable && (_.of.setAttribute(N, O[0]), _.of.setAttribute(I, O[1]));
18889
18896
  }
18890
- var V, D, W, $;
18897
+ var j, D, W, $;
18891
18898
  if (_.g._cmdf || P) {
18892
- V = _.cst;
18899
+ j = _.cst;
18893
18900
  var K = _.g.c;
18894
- for (W = V.length, D = 0; D < W; D += 1)
18895
- $ = V[D], $.setAttribute("offset", K[D * 4] + "%"), $.setAttribute("stop-color", "rgb(" + K[D * 4 + 1] + "," + K[D * 4 + 2] + "," + K[D * 4 + 3] + ")");
18901
+ for (W = j.length, D = 0; D < W; D += 1)
18902
+ $ = j[D], $.setAttribute("offset", K[D * 4] + "%"), $.setAttribute("stop-color", "rgb(" + K[D * 4 + 1] + "," + K[D * 4 + 2] + "," + K[D * 4 + 3] + ")");
18896
18903
  }
18897
18904
  if (R && (_.g._omdf || P)) {
18898
18905
  var Z = _.g.o;
18899
- for (_.g._collapsable ? V = _.cst : V = _.ost, W = V.length, D = 0; D < W; D += 1)
18900
- $ = V[D], _.g._collapsable || $.setAttribute("offset", Z[D * 2] + "%"), $.setAttribute("stop-opacity", Z[D * 2 + 1]);
18906
+ for (_.g._collapsable ? j = _.cst : j = _.ost, W = j.length, D = 0; D < W; D += 1)
18907
+ $ = j[D], _.g._collapsable || $.setAttribute("offset", Z[D * 2] + "%"), $.setAttribute("stop-opacity", Z[D * 2 + 1]);
18901
18908
  }
18902
18909
  if (A.t === 1)
18903
18910
  (_.e._mdf || P) && (C.setAttribute("x2", k[0]), C.setAttribute("y2", k[1]), R && !_.g._collapsable && (_.of.setAttribute("x2", k[0]), _.of.setAttribute("y2", k[1])));
@@ -19097,8 +19104,8 @@ function requireLottie() {
19097
19104
  return u;
19098
19105
  }, TextProperty.prototype.completeTextData = function(n) {
19099
19106
  n.__complete = !0;
19100
- var u = this.elem.globalData.fontManager, d = this.data, p = [], m, g, y, b = 0, E, T = d.m.g, S = 0, A = 0, _ = 0, P = [], C = 0, R = 0, O, k, L = u.getFontByName(n.f), N, I = 0, V = getFontProperties(L);
19101
- n.fWeight = V.weight, n.fStyle = V.style, n.finalSize = n.s, n.finalText = this.buildFinalText(n.t), g = n.finalText.length, n.finalLineHeight = n.lh;
19107
+ var u = this.elem.globalData.fontManager, d = this.data, p = [], m, g, y, b = 0, E, T = d.m.g, S = 0, A = 0, _ = 0, P = [], C = 0, R = 0, O, k, L = u.getFontByName(n.f), N, I = 0, j = getFontProperties(L);
19108
+ n.fWeight = j.weight, n.fStyle = j.style, n.finalSize = n.s, n.finalText = this.buildFinalText(n.t), g = n.finalText.length, n.finalLineHeight = n.lh;
19102
19109
  var D = n.tr / 1e3 * n.finalSize, W;
19103
19110
  if (n.sz)
19104
19111
  for (var $ = !0, K = n.sz[0], Z = n.sz[1], ee, q; $; ) {
@@ -19150,10 +19157,10 @@ function requireLottie() {
19150
19157
  n.lineWidths = P;
19151
19158
  var F = d.a, H, B;
19152
19159
  k = F.length;
19153
- var j, J, re = [];
19160
+ var V, J, re = [];
19154
19161
  for (O = 0; O < k; O += 1) {
19155
- for (H = F[O], H.a.sc && (n.strokeColorAnim = !0), H.a.sw && (n.strokeWidthAnim = !0), (H.a.fc || H.a.fh || H.a.fs || H.a.fb) && (n.fillColorAnim = !0), J = 0, j = H.s.b, m = 0; m < g; m += 1)
19156
- B = p[m], B.anIndexes[O] = J, (j == 1 && B.val !== "" || j == 2 && B.val !== "" && B.val !== " " || j == 3 && (B.n || B.val == " " || m == g - 1) || j == 4 && (B.n || m == g - 1)) && (H.s.rn === 1 && re.push(J), J += 1);
19162
+ for (H = F[O], H.a.sc && (n.strokeColorAnim = !0), H.a.sw && (n.strokeWidthAnim = !0), (H.a.fc || H.a.fh || H.a.fs || H.a.fb) && (n.fillColorAnim = !0), J = 0, V = H.s.b, m = 0; m < g; m += 1)
19163
+ B = p[m], B.anIndexes[O] = J, (V == 1 && B.val !== "" || V == 2 && B.val !== "" && B.val !== " " || V == 3 && (B.n || B.val == " " || m == g - 1) || V == 4 && (B.n || m == g - 1)) && (H.s.rn === 1 && re.push(J), J += 1);
19157
19164
  d.a[O].s.totalChars = J;
19158
19165
  var ie = -1, oe;
19159
19166
  if (H.s.rn === 1)
@@ -19281,7 +19288,7 @@ function requireLottie() {
19281
19288
  }, TextAnimatorProperty.prototype.getMeasures = function(n, u) {
19282
19289
  if (this.lettersChangedFlag = u, !(!this._mdf && !this._isFirstFrame && !u && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
19283
19290
  this._isFirstFrame = !1;
19284
- var d = this._moreOptions.alignment.v, p = this._animatorsData, m = this._textData, g = this.mHelper, y = this._renderType, b = this.renderedLetters.length, E, T, S, A, _ = n.l, P, C, R, O, k, L, N, I, V, D, W, $, K, Z, ee;
19291
+ var d = this._moreOptions.alignment.v, p = this._animatorsData, m = this._textData, g = this.mHelper, y = this._renderType, b = this.renderedLetters.length, E, T, S, A, _ = n.l, P, C, R, O, k, L, N, I, j, D, W, $, K, Z, ee;
19285
19292
  if (this._hasMaskedPath) {
19286
19293
  if (ee = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
19287
19294
  var q = ee.v;
@@ -19295,13 +19302,13 @@ function requireLottie() {
19295
19302
  S = A, ee.v.c && (Q = bez.buildBezierData(q.v[S], q.v[0], [q.o[S][0] - q.v[S][0], q.o[S][1] - q.v[S][1]], [q.i[0][0] - q.v[0][0], q.i[0][1] - q.v[0][1]]), P.tLength += Q.segmentLength, P.segments.push(Q), $ += Q.segmentLength), this._pathData.pi = P;
19296
19303
  }
19297
19304
  if (P = this._pathData.pi, C = this._pathData.f.v, N = 0, L = 1, O = 0, k = !0, D = P.segments, C < 0 && ee.v.c)
19298
- for (P.tLength < Math.abs(C) && (C = -Math.abs(C) % P.tLength), N = D.length - 1, V = D[N].points, L = V.length - 1; C < 0; )
19299
- C += V[L].partialLength, L -= 1, L < 0 && (N -= 1, V = D[N].points, L = V.length - 1);
19300
- V = D[N].points, I = V[L - 1], R = V[L], W = R.partialLength;
19305
+ for (P.tLength < Math.abs(C) && (C = -Math.abs(C) % P.tLength), N = D.length - 1, j = D[N].points, L = j.length - 1; C < 0; )
19306
+ C += j[L].partialLength, L -= 1, L < 0 && (N -= 1, j = D[N].points, L = j.length - 1);
19307
+ j = D[N].points, I = j[L - 1], R = j[L], W = R.partialLength;
19301
19308
  }
19302
19309
  A = _.length, E = 0, T = 0;
19303
- var Y = n.finalSize * 1.2 * 0.714, te = !0, F, H, B, j, J;
19304
- j = p.length;
19310
+ var Y = n.finalSize * 1.2 * 0.714, te = !0, F, H, B, V, J;
19311
+ V = p.length;
19305
19312
  var re, ie = -1, oe, se, ne, le = C, de = N, ue = L, pe = -1, he, me, ye, be, fe, Se, Oe, Ae, _e = "", Re = this.defaultPropsArray, Le;
19306
19313
  if (n.j === 2 || n.j === 1) {
19307
19314
  var Ce = 0, Ie = 0, Me = n.j === 2 ? -0.5 : -1, Pe = 0, $e = !0;
@@ -19311,7 +19318,7 @@ function requireLottie() {
19311
19318
  _[Pe].animatorJustifyOffset = Ce, Pe += 1;
19312
19319
  Ce = 0, $e = !0;
19313
19320
  } else {
19314
- for (B = 0; B < j; B += 1)
19321
+ for (B = 0; B < V; B += 1)
19315
19322
  F = p[B].a, F.t.propType && ($e && n.j === 2 && (Ie += F.t.v * Me), H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), re.length ? Ce += F.t.v * re[0] * Me : Ce += F.t.v * re * Me);
19316
19323
  $e = !1;
19317
19324
  }
@@ -19320,7 +19327,7 @@ function requireLottie() {
19320
19327
  }
19321
19328
  for (S = 0; S < A; S += 1) {
19322
19329
  if (g.reset(), he = 1, _[S].n)
19323
- E = 0, T += n.yOffset, T += te ? 1 : 0, C = le, te = !1, this._hasMaskedPath && (N = de, L = ue, V = D[N].points, I = V[L - 1], R = V[L], W = R.partialLength, O = 0), _e = "", Ae = "", Se = "", Le = "", Re = this.defaultPropsArray;
19330
+ E = 0, T += n.yOffset, T += te ? 1 : 0, C = le, te = !1, this._hasMaskedPath && (N = de, L = ue, j = D[N].points, I = j[L - 1], R = j[L], W = R.partialLength, O = 0), _e = "", Ae = "", Se = "", Le = "", Re = this.defaultPropsArray;
19324
19331
  else {
19325
19332
  if (this._hasMaskedPath) {
19326
19333
  if (pe !== _[S].line) {
@@ -19336,20 +19343,20 @@ function requireLottie() {
19336
19343
  }
19337
19344
  ie !== _[S].ind && (_[ie] && (C += _[ie].extra), C += _[S].an / 2, ie = _[S].ind), C += d[0] * _[S].an * 5e-3;
19338
19345
  var De = 0;
19339
- for (B = 0; B < j; B += 1)
19346
+ for (B = 0; B < V; B += 1)
19340
19347
  F = p[B].a, F.p.propType && (H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), re.length ? De += F.p.v[0] * re[0] : De += F.p.v[0] * re), F.a.propType && (H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), re.length ? De += F.a.v[0] * re[0] : De += F.a.v[0] * re);
19341
19348
  for (k = !0, this._pathData.a.v && (C = _[0].an * 0.5 + ($ - this._pathData.f.v - _[0].an * 0.5 - _[_.length - 1].an * 0.5) * ie / (A - 1), C += this._pathData.f.v); k; )
19342
- O + W >= C + De || !V ? (K = (C + De - O) / R.partialLength, se = I.point[0] + (R.point[0] - I.point[0]) * K, ne = I.point[1] + (R.point[1] - I.point[1]) * K, g.translate(-d[0] * _[S].an * 5e-3, -(d[1] * Y) * 0.01), k = !1) : V && (O += R.partialLength, L += 1, L >= V.length && (L = 0, N += 1, D[N] ? V = D[N].points : ee.v.c ? (L = 0, N = 0, V = D[N].points) : (O -= R.partialLength, V = null)), V && (I = R, R = V[L], W = R.partialLength));
19349
+ O + W >= C + De || !j ? (K = (C + De - O) / R.partialLength, se = I.point[0] + (R.point[0] - I.point[0]) * K, ne = I.point[1] + (R.point[1] - I.point[1]) * K, g.translate(-d[0] * _[S].an * 5e-3, -(d[1] * Y) * 0.01), k = !1) : j && (O += R.partialLength, L += 1, L >= j.length && (L = 0, N += 1, D[N] ? j = D[N].points : ee.v.c ? (L = 0, N = 0, j = D[N].points) : (O -= R.partialLength, j = null)), j && (I = R, R = j[L], W = R.partialLength));
19343
19350
  oe = _[S].an / 2 - _[S].add, g.translate(-oe, 0, 0);
19344
19351
  } else
19345
19352
  oe = _[S].an / 2 - _[S].add, g.translate(-oe, 0, 0), g.translate(-d[0] * _[S].an * 5e-3, -d[1] * Y * 0.01, 0);
19346
- for (B = 0; B < j; B += 1)
19353
+ for (B = 0; B < V; B += 1)
19347
19354
  F = p[B].a, F.t.propType && (H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), (E !== 0 || n.j !== 0) && (this._hasMaskedPath ? re.length ? C += F.t.v * re[0] : C += F.t.v * re : re.length ? E += F.t.v * re[0] : E += F.t.v * re));
19348
- for (n.strokeWidthAnim && (ye = n.sw || 0), n.strokeColorAnim && (n.sc ? me = [n.sc[0], n.sc[1], n.sc[2]] : me = [0, 0, 0]), n.fillColorAnim && n.fc && (be = [n.fc[0], n.fc[1], n.fc[2]]), B = 0; B < j; B += 1)
19355
+ for (n.strokeWidthAnim && (ye = n.sw || 0), n.strokeColorAnim && (n.sc ? me = [n.sc[0], n.sc[1], n.sc[2]] : me = [0, 0, 0]), n.fillColorAnim && n.fc && (be = [n.fc[0], n.fc[1], n.fc[2]]), B = 0; B < V; B += 1)
19349
19356
  F = p[B].a, F.a.propType && (H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), re.length ? g.translate(-F.a.v[0] * re[0], -F.a.v[1] * re[1], F.a.v[2] * re[2]) : g.translate(-F.a.v[0] * re, -F.a.v[1] * re, F.a.v[2] * re));
19350
- for (B = 0; B < j; B += 1)
19357
+ for (B = 0; B < V; B += 1)
19351
19358
  F = p[B].a, F.s.propType && (H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), re.length ? g.scale(1 + (F.s.v[0] - 1) * re[0], 1 + (F.s.v[1] - 1) * re[1], 1) : g.scale(1 + (F.s.v[0] - 1) * re, 1 + (F.s.v[1] - 1) * re, 1));
19352
- for (B = 0; B < j; B += 1) {
19359
+ for (B = 0; B < V; B += 1) {
19353
19360
  if (F = p[B].a, H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), F.sk.propType && (re.length ? g.skewFromAxis(-F.sk.v * re[0], F.sa.v * re[1]) : g.skewFromAxis(-F.sk.v * re, F.sa.v * re)), F.r.propType && (re.length ? g.rotateZ(-F.r.v * re[2]) : g.rotateZ(-F.r.v * re)), F.ry.propType && (re.length ? g.rotateY(F.ry.v * re[1]) : g.rotateY(F.ry.v * re)), F.rx.propType && (re.length ? g.rotateX(F.rx.v * re[0]) : g.rotateX(F.rx.v * re)), F.o.propType && (re.length ? he += (F.o.v * re[0] - he) * re[0] : he += (F.o.v * re - he) * re), n.strokeWidthAnim && F.sw.propType && (re.length ? ye += F.sw.v * re[0] : ye += F.sw.v * re), n.strokeColorAnim && F.sc.propType)
19354
19361
  for (fe = 0; fe < 3; fe += 1)
19355
19362
  re.length ? me[fe] += (F.sc.v[fe] - me[fe]) * re[0] : me[fe] += (F.sc.v[fe] - me[fe]) * re;
@@ -19360,7 +19367,7 @@ function requireLottie() {
19360
19367
  F.fh.propType && (re.length ? be = addHueToRGB(be, F.fh.v * re[0]) : be = addHueToRGB(be, F.fh.v * re)), F.fs.propType && (re.length ? be = addSaturationToRGB(be, F.fs.v * re[0]) : be = addSaturationToRGB(be, F.fs.v * re)), F.fb.propType && (re.length ? be = addBrightnessToRGB(be, F.fb.v * re[0]) : be = addBrightnessToRGB(be, F.fb.v * re));
19361
19368
  }
19362
19369
  }
19363
- for (B = 0; B < j; B += 1)
19370
+ for (B = 0; B < V; B += 1)
19364
19371
  F = p[B].a, F.p.propType && (H = p[B].s, re = H.getMult(_[S].anIndexes[B], m.a[B].s.totalChars), this._hasMaskedPath ? re.length ? g.translate(0, F.p.v[1] * re[0], -F.p.v[2] * re[1]) : g.translate(0, F.p.v[1] * re, -F.p.v[2] * re) : re.length ? g.translate(F.p.v[0] * re[0], F.p.v[1] * re[1], -F.p.v[2] * re[2]) : g.translate(F.p.v[0] * re, F.p.v[1] * re, -F.p.v[2] * re));
19365
19372
  if (n.strokeWidthAnim && (Se = ye < 0 ? 0 : ye), n.strokeColorAnim && (Oe = "rgb(" + Math.round(me[0] * 255) + "," + Math.round(me[1] * 255) + "," + Math.round(me[2] * 255) + ")"), n.fillColorAnim && n.fc && (Ae = "rgb(" + Math.round(be[0] * 255) + "," + Math.round(be[1] * 255) + "," + Math.round(be[2] * 255) + ")"), this._hasMaskedPath) {
19366
19373
  if (g.translate(0, -n.ls), g.translate(0, d[1] * Y * 0.01 + T, 0), this._pathData.p.v) {
@@ -19489,8 +19496,8 @@ function requireLottie() {
19489
19496
  }), !b || !A || n === 0) {
19490
19497
  if (E = N > n ? this.textSpans[n].span : createNS(b ? "g" : "text"), N <= n) {
19491
19498
  if (E.setAttribute("stroke-linecap", "butt"), E.setAttribute("stroke-linejoin", "round"), E.setAttribute("stroke-miterlimit", "4"), this.textSpans[n].span = E, b) {
19492
- var V = createNS("g");
19493
- E.appendChild(V), this.textSpans[n].childSpan = V;
19499
+ var j = createNS("g");
19500
+ E.appendChild(j), this.textSpans[n].childSpan = j;
19494
19501
  }
19495
19502
  this.textSpans[n].span = E, this.layerElement.appendChild(E);
19496
19503
  }
@@ -20124,9 +20131,9 @@ function requireLottie() {
20124
20131
  n.sc && (d = !0, this.values.stroke = this.buildColor(n.sc), this.values.sWidth = n.sw);
20125
20132
  var p = this.globalData.fontManager.getFontByName(n.f), m, g, y = n.l, b = this.mHelper;
20126
20133
  this.stroke = d, this.values.fValue = n.finalSize + "px " + this.globalData.fontManager.getFontByName(n.f).fFamily, g = n.finalText.length;
20127
- var E, T, S, A, _, P, C, R, O, k, L = this.data.singleShape, N = n.tr * 1e-3 * n.finalSize, I = 0, V = 0, D = !0, W = 0;
20134
+ var E, T, S, A, _, P, C, R, O, k, L = this.data.singleShape, N = n.tr * 1e-3 * n.finalSize, I = 0, j = 0, D = !0, W = 0;
20128
20135
  for (m = 0; m < g; m += 1) {
20129
- E = this.globalData.fontManager.getCharData(n.finalText[m], p.fStyle, this.globalData.fontManager.getFontByName(n.f).fFamily), T = E && E.data || {}, b.reset(), L && y[m].n && (I = -N, V += n.yOffset, V += D ? 1 : 0, D = !1), _ = T.shapes ? T.shapes[0].it : [], C = _.length, b.scale(n.finalSize / 100, n.finalSize / 100), L && this.applyTextPropertiesToMatrix(n, b, y[m].line, I, V), O = createSizedArray(C - 1);
20136
+ E = this.globalData.fontManager.getCharData(n.finalText[m], p.fStyle, this.globalData.fontManager.getFontByName(n.f).fFamily), T = E && E.data || {}, b.reset(), L && y[m].n && (I = -N, j += n.yOffset, j += D ? 1 : 0, D = !1), _ = T.shapes ? T.shapes[0].it : [], C = _.length, b.scale(n.finalSize / 100, n.finalSize / 100), L && this.applyTextPropertiesToMatrix(n, b, y[m].line, I, j), O = createSizedArray(C - 1);
20130
20137
  var $ = 0;
20131
20138
  for (P = 0; P < C; P += 1)
20132
20139
  if (_[P].ty === "sh") {
@@ -20577,8 +20584,8 @@ function requireLottie() {
20577
20584
  this.innerElem.appendChild(T);
20578
20585
  else {
20579
20586
  this.innerElem.appendChild(S);
20580
- var V = T.style, D = "translate3d(0," + -n.finalSize / 1.2 + "px,0)";
20581
- V.transform = D, V.webkitTransform = D;
20587
+ var j = T.style, D = "translate3d(0," + -n.finalSize / 1.2 + "px,0)";
20588
+ j.transform = D, j.webkitTransform = D;
20582
20589
  }
20583
20590
  this.isMasked ? this.textSpans[R] = T : this.textSpans[R] = S, this.textSpans[R].style.display = "block", this.textPaths[R] = T, R += 1;
20584
20591
  }
@@ -20873,7 +20880,7 @@ function requireLottie() {
20873
20880
  }
20874
20881
  function seedRandom(n, u) {
20875
20882
  var d = this, p = 256, m = 6, g = 52, y = "random", b = u.pow(p, m), E = u.pow(2, g), T = E * 2, S = p - 1, A;
20876
- function _(N, I, V) {
20883
+ function _(N, I, j) {
20877
20884
  var D = [];
20878
20885
  I = I === !0 ? {
20879
20886
  entropy: !0
@@ -20889,7 +20896,7 @@ function requireLottie() {
20889
20896
  return $.g(4) | 0;
20890
20897
  }, K.quick = function() {
20891
20898
  return $.g(4) / 4294967296;
20892
- }, K.double = K, O(L($.S), n), (I.pass || V || function(Z, ee, q, Q) {
20899
+ }, K.double = K, O(L($.S), n), (I.pass || j || function(Z, ee, q, Q) {
20893
20900
  return Q && (Q.S && C(Q, $), Z.state = function() {
20894
20901
  return C($, {});
20895
20902
  }), q ? (u[y] = Z, ee) : Z;
@@ -20897,11 +20904,11 @@ function requireLottie() {
20897
20904
  }
20898
20905
  u["seed" + y] = _;
20899
20906
  function P(N) {
20900
- var I, V = N.length, D = this, W = 0, $ = D.i = D.j = 0, K = D.S = [];
20901
- for (V || (N = [V++]); W < p; )
20907
+ var I, j = N.length, D = this, W = 0, $ = D.i = D.j = 0, K = D.S = [];
20908
+ for (j || (N = [j++]); W < p; )
20902
20909
  K[W] = W++;
20903
20910
  for (W = 0; W < p; W++)
20904
- K[W] = K[$ = S & $ + N[W % V] + (I = K[W])], K[$] = I;
20911
+ K[W] = K[$ = S & $ + N[W % j] + (I = K[W])], K[$] = I;
20905
20912
  D.g = function(Z) {
20906
20913
  for (var ee, q = 0, Q = D.i, Y = D.j, te = D.S; Z--; )
20907
20914
  ee = te[Q = S & Q + 1], q = q * p + te[S & (te[Q] = te[Y = S & Y + ee]) + (te[Y] = ee)];
@@ -20912,18 +20919,18 @@ function requireLottie() {
20912
20919
  return I.i = N.i, I.j = N.j, I.S = N.S.slice(), I;
20913
20920
  }
20914
20921
  function R(N, I) {
20915
- var V = [], D = _typeof$2(N), W;
20922
+ var j = [], D = _typeof$2(N), W;
20916
20923
  if (I && D == "object")
20917
20924
  for (W in N)
20918
20925
  try {
20919
- V.push(R(N[W], I - 1));
20926
+ j.push(R(N[W], I - 1));
20920
20927
  } catch {
20921
20928
  }
20922
- return V.length ? V : D == "string" ? N : N + "\0";
20929
+ return j.length ? j : D == "string" ? N : N + "\0";
20923
20930
  }
20924
20931
  function O(N, I) {
20925
- for (var V = N + "", D, W = 0; W < V.length; )
20926
- I[S & W] = S & (D ^= I[S & W] * 19) + V.charCodeAt(W++);
20932
+ for (var j = N + "", D, W = 0; W < j.length; )
20933
+ I[S & W] = S & (D ^= I[S & W] * 19) + j.charCodeAt(W++);
20927
20934
  return L(I);
20928
20935
  }
20929
20936
  function k() {
@@ -20931,8 +20938,8 @@ function requireLottie() {
20931
20938
  var N = new Uint8Array(p);
20932
20939
  return (d.crypto || d.msCrypto).getRandomValues(N), L(N);
20933
20940
  } catch {
20934
- var I = d.navigator, V = I && I.plugins;
20935
- return [+/* @__PURE__ */ new Date(), d, V, d.screen, L(n)];
20941
+ var I = d.navigator, j = I && I.plugins;
20942
+ return [+/* @__PURE__ */ new Date(), d, j, d.screen, L(n)];
20936
20943
  }
20937
20944
  }
20938
20945
  function L(N) {
@@ -21687,21 +21694,21 @@ function requireLottie() {
21687
21694
  return k;
21688
21695
  }
21689
21696
  function u(C, R, O) {
21690
- var k, L = function(V) {
21697
+ var k, L = function(j) {
21691
21698
  for (var D = 0, W = k.length; D < W; ) {
21692
- if (k[D]._name === V || k[D].mn === V || k[D].propertyIndex === V || k[D].ix === V || k[D].ind === V)
21699
+ if (k[D]._name === j || k[D].mn === j || k[D].propertyIndex === j || k[D].ix === j || k[D].ind === j)
21693
21700
  return k[D];
21694
21701
  D += 1;
21695
21702
  }
21696
- return typeof V == "number" ? k[V - 1] : null;
21703
+ return typeof j == "number" ? k[j - 1] : null;
21697
21704
  };
21698
21705
  L.propertyGroup = propertyGroupFactory(L, O), k = n(C.it, R.it, L.propertyGroup), L.numProperties = k.length;
21699
21706
  var N = E(C.it[C.it.length - 1], R.it[R.it.length - 1], L.propertyGroup);
21700
21707
  return L.transform = N, L.propertyIndex = C.cix, L._name = C.nm, L;
21701
21708
  }
21702
21709
  function d(C, R, O) {
21703
- var k = function(V) {
21704
- switch (V) {
21710
+ var k = function(j) {
21711
+ switch (j) {
21705
21712
  case "ADBE Vectors Group":
21706
21713
  case "Contents":
21707
21714
  case 2:
@@ -21780,8 +21787,8 @@ function requireLottie() {
21780
21787
  get: ExpressionPropertyInterface(R.d.dataProps[$].p)
21781
21788
  });
21782
21789
  }
21783
- var I, V = C.d ? C.d.length : 0, D = {};
21784
- for (I = 0; I < V; I += 1)
21790
+ var I, j = C.d ? C.d.length : 0, D = {};
21791
+ for (I = 0; I < j; I += 1)
21785
21792
  N(I), R.d.dataProps[I].p.setGroupProperty(L);
21786
21793
  function W($) {
21787
21794
  return $ === "Color" || $ === "color" ? W.color : $ === "Opacity" || $ === "opacity" ? W.opacity : $ === "Stroke Width" || $ === "stroke width" ? W.strokeWidth : null;
@@ -21968,10 +21975,10 @@ function requireLottie() {
21968
21975
  function L(I) {
21969
21976
  if (typeof I == "number")
21970
21977
  return I = I === void 0 ? 1 : I, I === 0 ? O : k[I - 1];
21971
- for (var V = 0, D = k.length; V < D; ) {
21972
- if (k[V]._name === I)
21973
- return k[V];
21974
- V += 1;
21978
+ for (var j = 0, D = k.length; j < D; ) {
21979
+ if (k[j]._name === I)
21980
+ return k[j];
21981
+ j += 1;
21975
21982
  }
21976
21983
  return null;
21977
21984
  }
@@ -22105,7 +22112,7 @@ function requireLottie() {
22105
22112
  return this.pv;
22106
22113
  var L, N;
22107
22114
  C ? (P ? L = Math.abs(k - this.elem.comp.globalData.frameRate * P) : L = Math.max(0, k - this.elem.data.ip), N = k - L) : ((!P || P > O.length - 1) && (P = O.length - 1), N = O[O.length - 1 - P].t, L = k - N);
22108
- var I, V, D;
22115
+ var I, j, D;
22109
22116
  if (_ === "pingpong") {
22110
22117
  var W = Math.floor((R - N) / L);
22111
22118
  if (W % 2 !== 0)
@@ -22113,7 +22120,7 @@ function requireLottie() {
22113
22120
  } else if (_ === "offset") {
22114
22121
  var $ = this.getValueAtTime(N / this.comp.globalData.frameRate, 0), K = this.getValueAtTime(k / this.comp.globalData.frameRate, 0), Z = this.getValueAtTime(((R - N) % L + N) / this.comp.globalData.frameRate, 0), ee = Math.floor((R - N) / L);
22115
22122
  if (this.pv.length) {
22116
- for (D = new Array($.length), V = D.length, I = 0; I < V; I += 1)
22123
+ for (D = new Array($.length), j = D.length, I = 0; I < j; I += 1)
22117
22124
  D[I] = (K[I] - $[I]) * ee + Z[I];
22118
22125
  return D;
22119
22126
  }
@@ -22121,7 +22128,7 @@ function requireLottie() {
22121
22128
  } else if (_ === "continue") {
22122
22129
  var q = this.getValueAtTime(k / this.comp.globalData.frameRate, 0), Q = this.getValueAtTime((k - 1e-3) / this.comp.globalData.frameRate, 0);
22123
22130
  if (this.pv.length) {
22124
- for (D = new Array(q.length), V = D.length, I = 0; I < V; I += 1)
22131
+ for (D = new Array(q.length), j = D.length, I = 0; I < j; I += 1)
22125
22132
  D[I] = q[I] + (q[I] - Q[I]) * ((R - k) / this.comp.globalData.frameRate) / 5e-4;
22126
22133
  return D;
22127
22134
  }
@@ -22138,7 +22145,7 @@ function requireLottie() {
22138
22145
  return this.pv;
22139
22146
  var L, N;
22140
22147
  C ? (P ? L = Math.abs(this.elem.comp.globalData.frameRate * P) : L = Math.max(0, this.elem.data.op - k), N = k + L) : ((!P || P > O.length - 1) && (P = O.length - 1), N = O[P].t, L = N - k);
22141
- var I, V, D;
22148
+ var I, j, D;
22142
22149
  if (_ === "pingpong") {
22143
22150
  var W = Math.floor((k - R) / L);
22144
22151
  if (W % 2 === 0)
@@ -22146,7 +22153,7 @@ function requireLottie() {
22146
22153
  } else if (_ === "offset") {
22147
22154
  var $ = this.getValueAtTime(k / this.comp.globalData.frameRate, 0), K = this.getValueAtTime(N / this.comp.globalData.frameRate, 0), Z = this.getValueAtTime((L - (k - R) % L + k) / this.comp.globalData.frameRate, 0), ee = Math.floor((k - R) / L) + 1;
22148
22155
  if (this.pv.length) {
22149
- for (D = new Array($.length), V = D.length, I = 0; I < V; I += 1)
22156
+ for (D = new Array($.length), j = D.length, I = 0; I < j; I += 1)
22150
22157
  D[I] = Z[I] - (K[I] - $[I]) * ee;
22151
22158
  return D;
22152
22159
  }
@@ -22154,7 +22161,7 @@ function requireLottie() {
22154
22161
  } else if (_ === "continue") {
22155
22162
  var q = this.getValueAtTime(k / this.comp.globalData.frameRate, 0), Q = this.getValueAtTime((k + 1e-3) / this.comp.globalData.frameRate, 0);
22156
22163
  if (this.pv.length) {
22157
- for (D = new Array(q.length), V = D.length, I = 0; I < V; I += 1)
22164
+ for (D = new Array(q.length), j = D.length, I = 0; I < j; I += 1)
22158
22165
  D[I] = q[I] + (q[I] - Q[I]) * (k - R) / 1e-3;
22159
22166
  return D;
22160
22167
  }
@@ -22169,12 +22176,12 @@ function requireLottie() {
22169
22176
  return this.pv;
22170
22177
  var C = this.comp.renderedFrame / this.comp.globalData.frameRate, R = C - _, O = C + _, k = P > 1 ? (O - R) / (P - 1) : 1, L = 0, N = 0, I;
22171
22178
  this.pv.length ? I = createTypedArray("float32", this.pv.length) : I = 0;
22172
- for (var V; L < P; ) {
22173
- if (V = this.getValueAtTime(R + L * k), this.pv.length)
22179
+ for (var j; L < P; ) {
22180
+ if (j = this.getValueAtTime(R + L * k), this.pv.length)
22174
22181
  for (N = 0; N < this.pv.length; N += 1)
22175
- I[N] += V[N];
22182
+ I[N] += j[N];
22176
22183
  else
22177
- I += V;
22184
+ I += j;
22178
22185
  L += 1;
22179
22186
  }
22180
22187
  if (this.pv.length)
@@ -22205,8 +22212,8 @@ function requireLottie() {
22205
22212
  var L = this.r.getValueAtTime(_);
22206
22213
  P.rotate(-L * this.r.mult);
22207
22214
  } else if (!this.r && this.appliedTransformations < 4) {
22208
- var N = this.rz.getValueAtTime(_), I = this.ry.getValueAtTime(_), V = this.rx.getValueAtTime(_), D = this.or.getValueAtTime(_);
22209
- P.rotateZ(-N * this.rz.mult).rotateY(I * this.ry.mult).rotateX(V * this.rx.mult).rotateZ(-D[2] * this.or.mult).rotateY(D[1] * this.or.mult).rotateX(D[0] * this.or.mult);
22215
+ var N = this.rz.getValueAtTime(_), I = this.ry.getValueAtTime(_), j = this.rx.getValueAtTime(_), D = this.or.getValueAtTime(_);
22216
+ P.rotateZ(-N * this.rz.mult).rotateY(I * this.ry.mult).rotateX(j * this.rx.mult).rotateZ(-D[2] * this.or.mult).rotateY(D[1] * this.or.mult).rotateX(D[0] * this.or.mult);
22210
22217
  }
22211
22218
  if (this.data.p && this.data.p.s) {
22212
22219
  var W = this.px.getValueAtTime(_), $ = this.py.getValueAtTime(_);
@@ -22275,13 +22282,13 @@ function requireLottie() {
22275
22282
  pointOnPath: function(P, C) {
22276
22283
  var R = this.v;
22277
22284
  C !== void 0 && (R = this.getValueAtTime(C, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(R));
22278
- for (var O = this._segmentsLength, k = O.lengths, L = O.totalLength * P, N = 0, I = k.length, V = 0, D; N < I; ) {
22279
- if (V + k[N].addedLength > L) {
22280
- var W = N, $ = R.c && N === I - 1 ? 0 : N + 1, K = (L - V) / k[N].addedLength;
22285
+ for (var O = this._segmentsLength, k = O.lengths, L = O.totalLength * P, N = 0, I = k.length, j = 0, D; N < I; ) {
22286
+ if (j + k[N].addedLength > L) {
22287
+ var W = N, $ = R.c && N === I - 1 ? 0 : N + 1, K = (L - j) / k[N].addedLength;
22281
22288
  D = bez.getPointInSegment(R.v[W], R.v[$], R.o[W], R.i[$], K, k[N]);
22282
22289
  break;
22283
22290
  } else
22284
- V += k[N].addedLength;
22291
+ j += k[N].addedLength;
22285
22292
  N += 1;
22286
22293
  }
22287
22294
  return D || (D = R.c ? [R.v[0][0], R.v[0][1]] : [R.v[R._length - 1][0], R.v[R._length - 1][1]]), D;
@@ -22291,8 +22298,8 @@ function requireLottie() {
22291
22298
  var O = this.pointOnPath(P, C), k = this.pointOnPath(P + 1e-3, C), L = k[0] - O[0], N = k[1] - O[1], I = Math.sqrt(Math.pow(L, 2) + Math.pow(N, 2));
22292
22299
  if (I === 0)
22293
22300
  return [0, 0];
22294
- var V = R === "tangent" ? [L / I, N / I] : [-N / I, L / I];
22295
- return V;
22301
+ var j = R === "tangent" ? [L / I, N / I] : [-N / I, L / I];
22302
+ return j;
22296
22303
  },
22297
22304
  tangentOnPath: function(P, C) {
22298
22305
  return this.vectorOnPath(P, C, "tangent");
@@ -22659,7 +22666,7 @@ function _unsupportedIterableToArray(n, u) {
22659
22666
  var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function n(u, d) {
22660
22667
  var p = u.animationData, m = u.loop, g = u.autoplay, y = u.initialSegment, b = u.onComplete, E = u.onLoopComplete, T = u.onEnterFrame, S = u.onSegmentStart, A = u.onConfigReady, _ = u.onDataReady, P = u.onDataFailed, C = u.onLoadedImages, R = u.onDOMLoaded, O = u.onDestroy;
22661
22668
  u.lottieRef, u.renderer, u.name, u.assetsPath, u.rendererSettings;
22662
- var k = _objectWithoutProperties(u, _excluded$1), L = useState(!1), N = _slicedToArray(L, 2), I = N[0], V = N[1], D = useRef(), W = useRef(null), $ = function() {
22669
+ var k = _objectWithoutProperties(u, _excluded$1), L = useState(!1), N = _slicedToArray(L, 2), I = N[0], j = N[1], D = useRef(), W = useRef(null), $ = function() {
22663
22670
  var ie;
22664
22671
  (ie = D.current) === null || ie === void 0 || ie.play();
22665
22672
  }, K = function() {
@@ -22692,21 +22699,21 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
22692
22699
  }, B = function() {
22693
22700
  var ie;
22694
22701
  (ie = D.current) === null || ie === void 0 || ie.destroy(), D.current = void 0;
22695
- }, j = function() {
22702
+ }, V = function() {
22696
22703
  var ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe;
22697
22704
  if (W.current) {
22698
22705
  (oe = D.current) === null || oe === void 0 || oe.destroy();
22699
22706
  var se = _objectSpread2(_objectSpread2(_objectSpread2({}, u), ie), {}, {
22700
22707
  container: W.current
22701
22708
  });
22702
- return D.current = lottie.loadAnimation(se), V(!!D.current), function() {
22709
+ return D.current = lottie.loadAnimation(se), j(!!D.current), function() {
22703
22710
  var ne;
22704
22711
  (ne = D.current) === null || ne === void 0 || ne.destroy(), D.current = void 0;
22705
22712
  };
22706
22713
  }
22707
22714
  };
22708
22715
  useEffect(function() {
22709
- var re = j();
22716
+ var re = V();
22710
22717
  return function() {
22711
22718
  return re?.();
22712
22719
  };
@@ -22845,8 +22852,8 @@ var useInitInteractivity = function n(u) {
22845
22852
  });
22846
22853
  if (N) {
22847
22854
  if (N.type === "seek" && N.position && Array.isArray(N.position.x) && Array.isArray(N.position.y) && N.frames.length === 2) {
22848
- var I = (O - N.position.x[0]) / (N.position.x[1] - N.position.x[0]), V = (k - N.position.y[0]) / (N.position.y[1] - N.position.y[0]);
22849
- p.playSegments(N.frames, !0), p.goToAndStop(Math.ceil((I + V) / 2 * (N.frames[1] - N.frames[0])), !0);
22855
+ var I = (O - N.position.x[0]) / (N.position.x[1] - N.position.x[0]), j = (k - N.position.y[0]) / (N.position.y[1] - N.position.y[0]);
22856
+ p.playSegments(N.frames, !0), p.goToAndStop(Math.ceil((I + j) / 2 * (N.frames[1] - N.frames[0])), !0);
22850
22857
  }
22851
22858
  N.type === "loop" && p.playSegments(N.frames, !0), N.type === "play" && (p.isPaused && p.resetSegments(!1), p.playSegments(N.frames)), N.type === "stop" && p.goToAndStop(N.frames[0], !0);
22852
22859
  }
@@ -22876,7 +22883,7 @@ var useInitInteractivity = function n(u) {
22876
22883
  wrapperRef: b
22877
22884
  }), y;
22878
22885
  }, _excluded = ["style", "interactivity"], Lottie = function n(u) {
22879
- var d, p, m, g = u.style, y = u.interactivity, b = _objectWithoutProperties(u, _excluded), E = useLottie(b, g), T = E.View, S = E.play, A = E.stop, _ = E.pause, P = E.setSpeed, C = E.goToAndStop, R = E.goToAndPlay, O = E.setDirection, k = E.playSegments, L = E.setSubframe, N = E.getDuration, I = E.destroy, V = E.animationContainerRef, D = E.animationLoaded, W = E.animationItem;
22886
+ var d, p, m, g = u.style, y = u.interactivity, b = _objectWithoutProperties(u, _excluded), E = useLottie(b, g), T = E.View, S = E.play, A = E.stop, _ = E.pause, P = E.setSpeed, C = E.goToAndStop, R = E.goToAndPlay, O = E.setDirection, k = E.playSegments, L = E.setSubframe, N = E.getDuration, I = E.destroy, j = E.animationContainerRef, D = E.animationLoaded, W = E.animationItem;
22880
22887
  return useEffect(function() {
22881
22888
  u.lottieRef && (u.lottieRef.current = {
22882
22889
  play: S,
@@ -22890,7 +22897,7 @@ var useInitInteractivity = function n(u) {
22890
22897
  setSubframe: L,
22891
22898
  getDuration: N,
22892
22899
  destroy: I,
22893
- animationContainerRef: V,
22900
+ animationContainerRef: j,
22894
22901
  animationLoaded: D,
22895
22902
  animationItem: W
22896
22903
  });
@@ -22908,7 +22915,7 @@ var useInitInteractivity = function n(u) {
22908
22915
  setSubframe: L,
22909
22916
  getDuration: N,
22910
22917
  destroy: I,
22911
- animationContainerRef: V,
22918
+ animationContainerRef: j,
22912
22919
  animationLoaded: D,
22913
22920
  animationItem: W
22914
22921
  },
@@ -23173,7 +23180,7 @@ var e = {}, t = { get exports() {
23173
23180
  A(g, P, _ + (ee = Math.min(65535, R - _)) == R ? 1 : 0), P = p.F._copyExact(m, _, ee, g, P + 8), _ += ee;
23174
23181
  return P >>> 3;
23175
23182
  }
23176
- var O = T.lits, k = T.strt, L = T.prev, N = 0, I = 0, V = 0, D = 0, W = 0, $ = 0;
23183
+ var O = T.lits, k = T.strt, L = T.prev, N = 0, I = 0, j = 0, D = 0, W = 0, $ = 0;
23177
23184
  for (R > 2 && (k[$ = p.F._hash(m, 0)] = 0), _ = 0; _ < R; _++) {
23178
23185
  if (W = $, _ + 1 < R - 2) {
23179
23186
  $ = p.F._hash(m, _ + 1);
@@ -23181,7 +23188,7 @@ var e = {}, t = { get exports() {
23181
23188
  L[K] = k[$], k[$] = K;
23182
23189
  }
23183
23190
  if (C <= _) {
23184
- (N > 14e3 || I > 26697) && R - _ > 100 && (C < _ && (O[N] = _ - C, N += 2, C = _), P = p.F._writeBlock(_ == R - 1 || C == R ? 1 : 0, O, N, D, m, V, _ - V, g, P), N = I = D = 0, V = _);
23191
+ (N > 14e3 || I > 26697) && R - _ > 100 && (C < _ && (O[N] = _ - C, N += 2, C = _), P = p.F._writeBlock(_ == R - 1 || C == R ? 1 : 0, O, N, D, m, j, _ - j, g, P), N = I = D = 0, j = _);
23185
23192
  var Z = 0;
23186
23193
  _ < R - 2 && (Z = p.F._bestMatch(m, _, L, W, Math.min(E[2], R - _), E[3]));
23187
23194
  var ee = Z >>> 16, q = 65535 & Z;
@@ -23195,7 +23202,7 @@ var e = {}, t = { get exports() {
23195
23202
  I++;
23196
23203
  }
23197
23204
  }
23198
- for (V == _ && m.length != 0 || (C < _ && (O[N] = _ - C, N += 2, C = _), P = p.F._writeBlock(1, O, N, D, m, V, _ - V, g, P), N = 0, I = 0, N = I = D = 0, V = _); (7 & P) != 0; ) P++;
23205
+ for (j == _ && m.length != 0 || (C < _ && (O[N] = _ - C, N += 2, C = _), P = p.F._writeBlock(1, O, N, D, m, j, _ - j, g, P), N = 0, I = 0, N = I = D = 0, j = _); (7 & P) != 0; ) P++;
23199
23206
  return P >>> 3;
23200
23207
  }, p.F._bestMatch = function(m, g, y, b, E, T) {
23201
23208
  var S = 32767 & g, A = y[S], _ = S - A + 32768 & 32767;
@@ -23223,8 +23230,8 @@ var e = {}, t = { get exports() {
23223
23230
  }, p.F._hash = function(m, g) {
23224
23231
  return (m[g] << 8 | m[g + 1]) + (m[g + 2] << 4) & 65535;
23225
23232
  }, p.saved = 0, p.F._writeBlock = function(m, g, y, b, E, T, S, A, _) {
23226
- var P, C, R, O, k, L, N, I, V, D = p.F.U, W = p.F._putsF, $ = p.F._putsE;
23227
- D.lhst[256]++, C = (P = p.F.getTrees())[0], R = P[1], O = P[2], k = P[3], L = P[4], N = P[5], I = P[6], V = P[7];
23233
+ var P, C, R, O, k, L, N, I, j, D = p.F.U, W = p.F._putsF, $ = p.F._putsE;
23234
+ D.lhst[256]++, C = (P = p.F.getTrees())[0], R = P[1], O = P[2], k = P[3], L = P[4], N = P[5], I = P[6], j = P[7];
23228
23235
  var K = 32 + ((_ + 3 & 7) == 0 ? 0 : 8 - (_ + 3 & 7)) + (S << 3), Z = b + p.F.contSize(D.fltree, D.lhst) + p.F.contSize(D.fdtree, D.dhst), ee = b + p.F.contSize(D.ltree, D.lhst) + p.F.contSize(D.dtree, D.dhst);
23229
23236
  ee += 14 + 3 * N + p.F.contSize(D.itree, D.ihst) + (2 * D.ihst[16] + 3 * D.ihst[17] + 7 * D.ihst[18]);
23230
23237
  for (var q = 0; q < 286; q++) D.lhst[q] = 0;
@@ -23239,10 +23246,10 @@ var e = {}, t = { get exports() {
23239
23246
  if (Q == 1 && (Y = D.fltree, te = D.fdtree), Q == 2) {
23240
23247
  p.F.makeCodes(D.ltree, C), p.F.revCodes(D.ltree, C), p.F.makeCodes(D.dtree, R), p.F.revCodes(D.dtree, R), p.F.makeCodes(D.itree, O), p.F.revCodes(D.itree, O), Y = D.ltree, te = D.dtree, $(A, _, k - 257), $(A, _ += 5, L - 1), $(A, _ += 5, N - 4), _ += 4;
23241
23248
  for (var F = 0; F < N; F++) $(A, _ + 3 * F, D.itree[1 + (D.ordr[F] << 1)]);
23242
- _ += 3 * N, _ = p.F._codeTiny(I, D.itree, A, _), _ = p.F._codeTiny(V, D.itree, A, _);
23249
+ _ += 3 * N, _ = p.F._codeTiny(I, D.itree, A, _), _ = p.F._codeTiny(j, D.itree, A, _);
23243
23250
  }
23244
23251
  for (var H = T, B = 0; B < y; B += 2) {
23245
- for (var j = g[B], J = j >>> 23, re = H + (8388607 & j); H < re; ) _ = p.F._writeLit(E[H++], Y, A, _);
23252
+ for (var V = g[B], J = V >>> 23, re = H + (8388607 & V); H < re; ) _ = p.F._writeLit(E[H++], Y, A, _);
23246
23253
  if (J != 0) {
23247
23254
  var ie = g[B + 1], oe = ie >> 16, se = ie >> 8 & 255, ne = 255 & ie;
23248
23255
  $(A, _ = p.F._writeLit(257 + se, Y, A, _), J - D.of0[se]), _ += D.exb[se], W(A, _ = p.F._writeLit(ne, te, A, _), oe - D.df0[ne]), _ += D.dxb[ne], H += J;
@@ -23300,8 +23307,8 @@ var e = {}, t = { get exports() {
23300
23307
  var P = b[0].lit;
23301
23308
  return _ = P == 0 ? 1 : 0, g[1 + (P << 1)] = 1, g[1 + (_ << 1)] = 1, 1;
23302
23309
  }
23303
- b.sort((function(I, V) {
23304
- return I.f - V.f;
23310
+ b.sort((function(I, j) {
23311
+ return I.f - j.f;
23305
23312
  }));
23306
23313
  var C = b[0], R = b[1], O = 0, k = 1, L = 2;
23307
23314
  for (b[0] = { lit: -1, f: C.f + R.f, l: C, r: R, d: 0 }; k != A - 1; ) C = O != k && (L == A || b[O].f < b[L].f) ? b[O++] : b[L++], R = O != k && (L == A || b[O].f < b[L].f) ? b[O++] : b[L++], b[k++] = { lit: -1, f: C.f + R.f, l: C, r: R };
@@ -23332,19 +23339,19 @@ var e = {}, t = { get exports() {
23332
23339
  if (m[0] == 3 && m[1] == 0) return g || new y(0);
23333
23340
  var b = p.F, E = b._bitsF, T = b._bitsE, S = b._decodeTiny, A = b.makeCodes, _ = b.codes2map, P = b._get17, C = b.U, R = g == null;
23334
23341
  R && (g = new y(m.length >>> 2 << 3));
23335
- for (var O, k, L = 0, N = 0, I = 0, V = 0, D = 0, W = 0, $ = 0, K = 0, Z = 0; L == 0; ) if (L = E(m, Z, 1), N = E(m, Z + 1, 2), Z += 3, N != 0) {
23342
+ for (var O, k, L = 0, N = 0, I = 0, j = 0, D = 0, W = 0, $ = 0, K = 0, Z = 0; L == 0; ) if (L = E(m, Z, 1), N = E(m, Z + 1, 2), Z += 3, N != 0) {
23336
23343
  if (R && (g = p.F._check(g, K + (1 << 17))), N == 1 && (O = C.flmap, k = C.fdmap, W = 511, $ = 31), N == 2) {
23337
- I = T(m, Z, 5) + 257, V = T(m, Z + 5, 5) + 1, D = T(m, Z + 10, 4) + 4, Z += 14;
23344
+ I = T(m, Z, 5) + 257, j = T(m, Z + 5, 5) + 1, D = T(m, Z + 10, 4) + 4, Z += 14;
23338
23345
  for (var ee = 0; ee < 38; ee += 2) C.itree[ee] = 0, C.itree[ee + 1] = 0;
23339
23346
  var q = 1;
23340
23347
  for (ee = 0; ee < D; ee++) {
23341
23348
  var Q = T(m, Z + 3 * ee, 3);
23342
23349
  C.itree[1 + (C.ordr[ee] << 1)] = Q, Q > q && (q = Q);
23343
23350
  }
23344
- Z += 3 * D, A(C.itree, q), _(C.itree, q, C.imap), O = C.lmap, k = C.dmap, Z = S(C.imap, (1 << q) - 1, I + V, m, Z, C.ttree);
23351
+ Z += 3 * D, A(C.itree, q), _(C.itree, q, C.imap), O = C.lmap, k = C.dmap, Z = S(C.imap, (1 << q) - 1, I + j, m, Z, C.ttree);
23345
23352
  var Y = b._copyOut(C.ttree, 0, I, C.ltree);
23346
23353
  W = (1 << Y) - 1;
23347
- var te = b._copyOut(C.ttree, I, V, C.dtree);
23354
+ var te = b._copyOut(C.ttree, I, j, C.dtree);
23348
23355
  $ = (1 << te) - 1, A(C.ltree, Y), _(C.ltree, Y, O), A(C.dtree, te), _(C.dtree, te, k);
23349
23356
  }
23350
23357
  for (; ; ) {
@@ -23356,8 +23363,8 @@ var e = {}, t = { get exports() {
23356
23363
  if (H == 256) break;
23357
23364
  var B = K + H - 254;
23358
23365
  if (H > 264) {
23359
- var j = C.ldef[H - 257];
23360
- B = K + (j >>> 3) + T(m, Z, 7 & j), Z += 7 & j;
23366
+ var V = C.ldef[H - 257];
23367
+ B = K + (V >>> 3) + T(m, Z, 7 & V), Z += 7 & V;
23361
23368
  }
23362
23369
  var J = k[P(m, Z) & $];
23363
23370
  Z += 15 & J;
@@ -23469,14 +23476,14 @@ const UPNG = (function() {
23469
23476
  return P;
23470
23477
  } };
23471
23478
  function u(S, A, _, P) {
23472
- const C = A * _, R = g(P), O = Math.ceil(A * R / 8), k = new Uint8Array(4 * C), L = new Uint32Array(k.buffer), { ctype: N } = P, { depth: I } = P, V = n.readUshort;
23479
+ const C = A * _, R = g(P), O = Math.ceil(A * R / 8), k = new Uint8Array(4 * C), L = new Uint32Array(k.buffer), { ctype: N } = P, { depth: I } = P, j = n.readUshort;
23473
23480
  if (N == 6) {
23474
- const j = C << 2;
23475
- if (I == 8) for (var D = 0; D < j; D += 4) k[D] = S[D], k[D + 1] = S[D + 1], k[D + 2] = S[D + 2], k[D + 3] = S[D + 3];
23476
- if (I == 16) for (D = 0; D < j; D++) k[D] = S[D << 1];
23481
+ const V = C << 2;
23482
+ if (I == 8) for (var D = 0; D < V; D += 4) k[D] = S[D], k[D + 1] = S[D + 1], k[D + 2] = S[D + 2], k[D + 3] = S[D + 3];
23483
+ if (I == 16) for (D = 0; D < V; D++) k[D] = S[D << 1];
23477
23484
  } else if (N == 2) {
23478
- const j = P.tabs.tRNS;
23479
- if (j == null) {
23485
+ const V = P.tabs.tRNS;
23486
+ if (V == null) {
23480
23487
  if (I == 8) for (D = 0; D < C; D++) {
23481
23488
  var W = 3 * D;
23482
23489
  L[D] = 255 << 24 | S[W + 2] << 16 | S[W + 1] << 8 | S[W];
@@ -23484,32 +23491,32 @@ const UPNG = (function() {
23484
23491
  if (I == 16) for (D = 0; D < C; D++)
23485
23492
  W = 6 * D, L[D] = 255 << 24 | S[W + 4] << 16 | S[W + 2] << 8 | S[W];
23486
23493
  } else {
23487
- var $ = j[0];
23488
- const J = j[1], re = j[2];
23494
+ var $ = V[0];
23495
+ const J = V[1], re = V[2];
23489
23496
  if (I == 8) for (D = 0; D < C; D++) {
23490
23497
  var K = D << 2;
23491
23498
  W = 3 * D, L[D] = 255 << 24 | S[W + 2] << 16 | S[W + 1] << 8 | S[W], S[W] == $ && S[W + 1] == J && S[W + 2] == re && (k[K + 3] = 0);
23492
23499
  }
23493
23500
  if (I == 16) for (D = 0; D < C; D++)
23494
- K = D << 2, W = 6 * D, L[D] = 255 << 24 | S[W + 4] << 16 | S[W + 2] << 8 | S[W], V(S, W) == $ && V(S, W + 2) == J && V(S, W + 4) == re && (k[K + 3] = 0);
23501
+ K = D << 2, W = 6 * D, L[D] = 255 << 24 | S[W + 4] << 16 | S[W + 2] << 8 | S[W], j(S, W) == $ && j(S, W + 2) == J && j(S, W + 4) == re && (k[K + 3] = 0);
23495
23502
  }
23496
23503
  } else if (N == 3) {
23497
- const j = P.tabs.PLTE, J = P.tabs.tRNS, re = J ? J.length : 0;
23504
+ const V = P.tabs.PLTE, J = P.tabs.tRNS, re = J ? J.length : 0;
23498
23505
  if (I == 1) for (var Z = 0; Z < _; Z++) {
23499
23506
  var ee = Z * O, q = Z * A;
23500
23507
  for (D = 0; D < A; D++) {
23501
23508
  K = q + D << 2;
23502
23509
  var Q = 3 * (Y = S[ee + (D >> 3)] >> 7 - ((7 & D) << 0) & 1);
23503
- k[K] = j[Q], k[K + 1] = j[Q + 1], k[K + 2] = j[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23510
+ k[K] = V[Q], k[K + 1] = V[Q + 1], k[K + 2] = V[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23504
23511
  }
23505
23512
  }
23506
23513
  if (I == 2) for (Z = 0; Z < _; Z++) for (ee = Z * O, q = Z * A, D = 0; D < A; D++)
23507
- K = q + D << 2, Q = 3 * (Y = S[ee + (D >> 2)] >> 6 - ((3 & D) << 1) & 3), k[K] = j[Q], k[K + 1] = j[Q + 1], k[K + 2] = j[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23514
+ K = q + D << 2, Q = 3 * (Y = S[ee + (D >> 2)] >> 6 - ((3 & D) << 1) & 3), k[K] = V[Q], k[K + 1] = V[Q + 1], k[K + 2] = V[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23508
23515
  if (I == 4) for (Z = 0; Z < _; Z++) for (ee = Z * O, q = Z * A, D = 0; D < A; D++)
23509
- K = q + D << 2, Q = 3 * (Y = S[ee + (D >> 1)] >> 4 - ((1 & D) << 2) & 15), k[K] = j[Q], k[K + 1] = j[Q + 1], k[K + 2] = j[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23516
+ K = q + D << 2, Q = 3 * (Y = S[ee + (D >> 1)] >> 4 - ((1 & D) << 2) & 15), k[K] = V[Q], k[K + 1] = V[Q + 1], k[K + 2] = V[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23510
23517
  if (I == 8) for (D = 0; D < C; D++) {
23511
23518
  var Y;
23512
- K = D << 2, Q = 3 * (Y = S[D]), k[K] = j[Q], k[K + 1] = j[Q + 1], k[K + 2] = j[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23519
+ K = D << 2, Q = 3 * (Y = S[D]), k[K] = V[Q], k[K + 1] = V[Q + 1], k[K + 2] = V[Q + 2], k[K + 3] = Y < re ? J[Y] : 255;
23513
23520
  }
23514
23521
  } else if (N == 4) {
23515
23522
  if (I == 8) for (D = 0; D < C; D++) {
@@ -23522,39 +23529,39 @@ const UPNG = (function() {
23522
23529
  K = D << 2, te = S[F = D << 2], k[K] = te, k[K + 1] = te, k[K + 2] = te, k[K + 3] = S[F + 2];
23523
23530
  }
23524
23531
  } else if (N == 0) for ($ = P.tabs.tRNS ? P.tabs.tRNS : -1, Z = 0; Z < _; Z++) {
23525
- const j = Z * O, J = Z * A;
23532
+ const V = Z * O, J = Z * A;
23526
23533
  if (I == 1) for (var H = 0; H < A; H++) {
23527
- var B = (te = 255 * (S[j + (H >>> 3)] >>> 7 - (7 & H) & 1)) == 255 * $ ? 0 : 255;
23534
+ var B = (te = 255 * (S[V + (H >>> 3)] >>> 7 - (7 & H) & 1)) == 255 * $ ? 0 : 255;
23528
23535
  L[J + H] = B << 24 | te << 16 | te << 8 | te;
23529
23536
  }
23530
23537
  else if (I == 2) for (H = 0; H < A; H++)
23531
- B = (te = 85 * (S[j + (H >>> 2)] >>> 6 - ((3 & H) << 1) & 3)) == 85 * $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23538
+ B = (te = 85 * (S[V + (H >>> 2)] >>> 6 - ((3 & H) << 1) & 3)) == 85 * $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23532
23539
  else if (I == 4) for (H = 0; H < A; H++)
23533
- B = (te = 17 * (S[j + (H >>> 1)] >>> 4 - ((1 & H) << 2) & 15)) == 17 * $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23540
+ B = (te = 17 * (S[V + (H >>> 1)] >>> 4 - ((1 & H) << 2) & 15)) == 17 * $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23534
23541
  else if (I == 8) for (H = 0; H < A; H++)
23535
- B = (te = S[j + H]) == $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23542
+ B = (te = S[V + H]) == $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23536
23543
  else if (I == 16) for (H = 0; H < A; H++)
23537
- te = S[j + (H << 1)], B = V(S, j + (H << 1)) == $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23544
+ te = S[V + (H << 1)], B = j(S, V + (H << 1)) == $ ? 0 : 255, L[J + H] = B << 24 | te << 16 | te << 8 | te;
23538
23545
  }
23539
23546
  return k;
23540
23547
  }
23541
23548
  function d(S, A, _, P) {
23542
23549
  const C = g(S), R = Math.ceil(_ * C / 8), O = new Uint8Array((R + 1 + S.interlace) * P);
23543
23550
  return A = S.tabs.CgBI ? m(A, O) : p(A, O), S.interlace == 0 ? A = y(A, S, 0, _, P) : S.interlace == 1 && (A = (function(L, N) {
23544
- const I = N.width, V = N.height, D = g(N), W = D >> 3, $ = Math.ceil(I * D / 8), K = new Uint8Array(V * $);
23551
+ const I = N.width, j = N.height, D = g(N), W = D >> 3, $ = Math.ceil(I * D / 8), K = new Uint8Array(j * $);
23545
23552
  let Z = 0;
23546
23553
  const ee = [0, 0, 4, 0, 2, 0, 1], q = [0, 4, 0, 2, 0, 1, 0], Q = [8, 8, 8, 4, 4, 2, 2], Y = [8, 8, 4, 4, 2, 2, 1];
23547
23554
  let te = 0;
23548
23555
  for (; te < 7; ) {
23549
23556
  const H = Q[te], B = Y[te];
23550
- let j = 0, J = 0, re = ee[te];
23551
- for (; re < V; ) re += H, J++;
23557
+ let V = 0, J = 0, re = ee[te];
23558
+ for (; re < j; ) re += H, J++;
23552
23559
  let ie = q[te];
23553
- for (; ie < I; ) ie += B, j++;
23554
- const oe = Math.ceil(j * D / 8);
23555
- y(L, N, Z, j, J);
23560
+ for (; ie < I; ) ie += B, V++;
23561
+ const oe = Math.ceil(V * D / 8);
23562
+ y(L, N, Z, V, J);
23556
23563
  let se = 0, ne = ee[te];
23557
- for (; ne < V; ) {
23564
+ for (; ne < j; ) {
23558
23565
  let le = q[te], de = Z + se * oe << 3;
23559
23566
  for (; le < I; ) {
23560
23567
  var F;
@@ -23566,7 +23573,7 @@ const UPNG = (function() {
23566
23573
  }
23567
23574
  se++, ne += H;
23568
23575
  }
23569
- j * J != 0 && (Z += J * (1 + oe)), te += 1;
23576
+ V * J != 0 && (Z += J * (1 + oe)), te += 1;
23570
23577
  }
23571
23578
  return K;
23572
23579
  })(A, S)), A;
@@ -23578,28 +23585,28 @@ const UPNG = (function() {
23578
23585
  const S = { H: {} };
23579
23586
  return S.H.N = function(A, _) {
23580
23587
  const P = Uint8Array;
23581
- let C, R, O = 0, k = 0, L = 0, N = 0, I = 0, V = 0, D = 0, W = 0, $ = 0;
23588
+ let C, R, O = 0, k = 0, L = 0, N = 0, I = 0, j = 0, D = 0, W = 0, $ = 0;
23582
23589
  if (A[0] == 3 && A[1] == 0) return _ || new P(0);
23583
23590
  const K = S.H, Z = K.b, ee = K.e, q = K.R, Q = K.n, Y = K.A, te = K.Z, F = K.m, H = _ == null;
23584
23591
  for (H && (_ = new P(A.length >>> 2 << 5)); O == 0; ) if (O = Z(A, $, 1), k = Z(A, $ + 1, 2), $ += 3, k != 0) {
23585
- if (H && (_ = S.H.W(_, W + (1 << 17))), k == 1 && (C = F.J, R = F.h, V = 511, D = 31), k == 2) {
23592
+ if (H && (_ = S.H.W(_, W + (1 << 17))), k == 1 && (C = F.J, R = F.h, j = 511, D = 31), k == 2) {
23586
23593
  L = ee(A, $, 5) + 257, N = ee(A, $ + 5, 5) + 1, I = ee(A, $ + 10, 4) + 4, $ += 14;
23587
- let j = 1;
23594
+ let V = 1;
23588
23595
  for (var B = 0; B < 38; B += 2) F.Q[B] = 0, F.Q[B + 1] = 0;
23589
23596
  for (B = 0; B < I; B++) {
23590
23597
  const ie = ee(A, $ + 3 * B, 3);
23591
- F.Q[1 + (F.X[B] << 1)] = ie, ie > j && (j = ie);
23598
+ F.Q[1 + (F.X[B] << 1)] = ie, ie > V && (V = ie);
23592
23599
  }
23593
- $ += 3 * I, Q(F.Q, j), Y(F.Q, j, F.u), C = F.w, R = F.d, $ = q(F.u, (1 << j) - 1, L + N, A, $, F.v);
23600
+ $ += 3 * I, Q(F.Q, V), Y(F.Q, V, F.u), C = F.w, R = F.d, $ = q(F.u, (1 << V) - 1, L + N, A, $, F.v);
23594
23601
  const J = K.V(F.v, 0, L, F.C);
23595
- V = (1 << J) - 1;
23602
+ j = (1 << J) - 1;
23596
23603
  const re = K.V(F.v, L, N, F.D);
23597
23604
  D = (1 << re) - 1, Q(F.C, J), Y(F.C, J, C), Q(F.D, re), Y(F.D, re, R);
23598
23605
  }
23599
23606
  for (; ; ) {
23600
- const j = C[te(A, $) & V];
23601
- $ += 15 & j;
23602
- const J = j >>> 4;
23607
+ const V = C[te(A, $) & j];
23608
+ $ += 15 & V;
23609
+ const J = V >>> 4;
23603
23610
  if (!(J >>> 8)) _[W++] = J;
23604
23611
  else {
23605
23612
  if (J == 256) break;
@@ -23619,8 +23626,8 @@ const UPNG = (function() {
23619
23626
  }
23620
23627
  } else {
23621
23628
  (7 & $) != 0 && ($ += 8 - (7 & $));
23622
- const j = 4 + ($ >>> 3), J = A[j - 4] | A[j - 3] << 8;
23623
- H && (_ = S.H.W(_, W + J)), _.set(new P(A.buffer, A.byteOffset + j, J), W), $ = j + J << 3, W += J;
23629
+ const V = 4 + ($ >>> 3), J = A[V - 4] | A[V - 3] << 8;
23630
+ H && (_ = S.H.W(_, W + J)), _.set(new P(A.buffer, A.byteOffset + V, J), W), $ = V + J << 3, W += J;
23624
23631
  }
23625
23632
  return _.length == W ? _ : _.slice(0, W);
23626
23633
  }, S.H.W = function(A, _) {
@@ -23634,11 +23641,11 @@ const UPNG = (function() {
23634
23641
  for (; N < P; ) {
23635
23642
  const I = A[L(C, R) & _];
23636
23643
  R += 15 & I;
23637
- const V = I >>> 4;
23638
- if (V <= 15) O[N] = V, N++;
23644
+ const j = I >>> 4;
23645
+ if (j <= 15) O[N] = j, N++;
23639
23646
  else {
23640
23647
  let D = 0, W = 0;
23641
- V == 16 ? (W = 3 + k(C, R, 2), R += 2, D = O[N - 1]) : V == 17 ? (W = 3 + k(C, R, 3), R += 3) : V == 18 && (W = 11 + k(C, R, 7), R += 7);
23648
+ j == 16 ? (W = 3 + k(C, R, 2), R += 2, D = O[N - 1]) : j == 17 ? (W = 3 + k(C, R, 3), R += 3) : j == 18 && (W = 11 + k(C, R, 7), R += 7);
23642
23649
  const $ = N + W;
23643
23650
  for (; N < $; ) O[N] = D, N++;
23644
23651
  }
@@ -23659,17 +23666,17 @@ const UPNG = (function() {
23659
23666
  const N = P.j;
23660
23667
  for (var I = 0; I <= _; I++) N[I] = 0;
23661
23668
  for (I = 1; I < C; I += 2) N[A[I]]++;
23662
- const V = P.K;
23663
- for (R = 0, N[0] = 0, O = 1; O <= _; O++) R = R + N[O - 1] << 1, V[O] = R;
23664
- for (k = 0; k < C; k += 2) L = A[k + 1], L != 0 && (A[k] = V[L], V[L]++);
23669
+ const j = P.K;
23670
+ for (R = 0, N[0] = 0, O = 1; O <= _; O++) R = R + N[O - 1] << 1, j[O] = R;
23671
+ for (k = 0; k < C; k += 2) L = A[k + 1], L != 0 && (A[k] = j[L], j[L]++);
23665
23672
  }, S.H.A = function(A, _, P) {
23666
23673
  const C = A.length, R = S.H.m.r;
23667
23674
  for (let O = 0; O < C; O += 2) if (A[O + 1] != 0) {
23668
23675
  const k = O >> 1, L = A[O + 1], N = k << 4 | L, I = _ - L;
23669
- let V = A[O] << I;
23670
- const D = V + (1 << I);
23671
- for (; V != D; )
23672
- P[R[V] >>> 15 - _] = N, V++;
23676
+ let j = A[O] << I;
23677
+ const D = j + (1 << I);
23678
+ for (; j != D; )
23679
+ P[R[j] >>> 15 - _] = N, j++;
23673
23680
  }
23674
23681
  }, S.H.l = function(A, _) {
23675
23682
  const P = S.H.m.r, C = 15 - _;
@@ -23719,7 +23726,7 @@ const UPNG = (function() {
23719
23726
  R = Math.ceil(R / 8);
23720
23727
  let N = S[_], I = 0;
23721
23728
  if (N > 1 && (S[_] = [0, 0, 1][N - 2]), N == 3) for (I = R; I < O; I++) S[I + 1] = S[I + 1] + (S[I + 1 - R] >>> 1) & 255;
23722
- for (let V = 0; V < C; V++) if (k = _ + V * O, L = k + V + 1, N = S[L - 1], I = 0, N == 0) for (; I < O; I++) S[k + I] = S[L + I];
23729
+ for (let j = 0; j < C; j++) if (k = _ + j * O, L = k + j + 1, N = S[L - 1], I = 0, N == 0) for (; I < O; I++) S[k + I] = S[L + I];
23723
23730
  else if (N == 1) {
23724
23731
  for (; I < R; I++) S[k + I] = S[L + I];
23725
23732
  for (; I < O; I++) S[k + I] = S[L + I] + S[k + I - R];
@@ -23742,16 +23749,16 @@ const UPNG = (function() {
23742
23749
  }
23743
23750
  function T(S, A, _, P, C, R, O, k, L) {
23744
23751
  const N = Math.min(A, C), I = Math.min(_, R);
23745
- let V = 0, D = 0;
23746
- for (let te = 0; te < I; te++) for (let F = 0; F < N; F++) if (O >= 0 && k >= 0 ? (V = te * A + F << 2, D = (k + te) * C + O + F << 2) : (V = (-k + te) * A - O + F << 2, D = te * C + F << 2), L == 0) P[D] = S[V], P[D + 1] = S[V + 1], P[D + 2] = S[V + 2], P[D + 3] = S[V + 3];
23752
+ let j = 0, D = 0;
23753
+ for (let te = 0; te < I; te++) for (let F = 0; F < N; F++) if (O >= 0 && k >= 0 ? (j = te * A + F << 2, D = (k + te) * C + O + F << 2) : (j = (-k + te) * A - O + F << 2, D = te * C + F << 2), L == 0) P[D] = S[j], P[D + 1] = S[j + 1], P[D + 2] = S[j + 2], P[D + 3] = S[j + 3];
23747
23754
  else if (L == 1) {
23748
- var W = S[V + 3] * 0.00392156862745098, $ = S[V] * W, K = S[V + 1] * W, Z = S[V + 2] * W, ee = P[D + 3] * (1 / 255), q = P[D] * ee, Q = P[D + 1] * ee, Y = P[D + 2] * ee;
23749
- const H = 1 - W, B = W + ee * H, j = B == 0 ? 0 : 1 / B;
23750
- P[D + 3] = 255 * B, P[D + 0] = ($ + q * H) * j, P[D + 1] = (K + Q * H) * j, P[D + 2] = (Z + Y * H) * j;
23755
+ var W = S[j + 3] * 0.00392156862745098, $ = S[j] * W, K = S[j + 1] * W, Z = S[j + 2] * W, ee = P[D + 3] * (1 / 255), q = P[D] * ee, Q = P[D + 1] * ee, Y = P[D + 2] * ee;
23756
+ const H = 1 - W, B = W + ee * H, V = B == 0 ? 0 : 1 / B;
23757
+ P[D + 3] = 255 * B, P[D + 0] = ($ + q * H) * V, P[D + 1] = (K + Q * H) * V, P[D + 2] = (Z + Y * H) * V;
23751
23758
  } else if (L == 2)
23752
- W = S[V + 3], $ = S[V], K = S[V + 1], Z = S[V + 2], ee = P[D + 3], q = P[D], Q = P[D + 1], Y = P[D + 2], W == ee && $ == q && K == Q && Z == Y ? (P[D] = 0, P[D + 1] = 0, P[D + 2] = 0, P[D + 3] = 0) : (P[D] = $, P[D + 1] = K, P[D + 2] = Z, P[D + 3] = W);
23759
+ W = S[j + 3], $ = S[j], K = S[j + 1], Z = S[j + 2], ee = P[D + 3], q = P[D], Q = P[D + 1], Y = P[D + 2], W == ee && $ == q && K == Q && Z == Y ? (P[D] = 0, P[D + 1] = 0, P[D + 2] = 0, P[D + 3] = 0) : (P[D] = $, P[D + 1] = K, P[D + 2] = Z, P[D + 3] = W);
23753
23760
  else if (L == 3) {
23754
- if (W = S[V + 3], $ = S[V], K = S[V + 1], Z = S[V + 2], ee = P[D + 3], q = P[D], Q = P[D + 1], Y = P[D + 2], W == ee && $ == q && K == Q && Z == Y) continue;
23761
+ if (W = S[j + 3], $ = S[j], K = S[j + 1], Z = S[j + 2], ee = P[D + 3], q = P[D], Q = P[D + 1], Y = P[D + 2], W == ee && $ == q && K == Q && Z == Y) continue;
23755
23762
  if (W < 220 && ee > 20) return !1;
23756
23763
  }
23757
23764
  return !0;
@@ -23760,7 +23767,7 @@ const UPNG = (function() {
23760
23767
  const _ = new Uint8Array(A);
23761
23768
  let P = 8;
23762
23769
  const C = n, R = C.readUshort, O = C.readUint, k = { tabs: {}, frames: [] }, L = new Uint8Array(_.length);
23763
- let N, I = 0, V = 0;
23770
+ let N, I = 0, j = 0;
23764
23771
  const D = [137, 80, 78, 71, 13, 10, 26, 10];
23765
23772
  for (var W = 0; W < 8; W++) if (_[W] != D[W]) throw "The input is not a PNG file!";
23766
23773
  for (; P < _.length; ) {
@@ -23785,15 +23792,15 @@ const UPNG = (function() {
23785
23792
  I += te;
23786
23793
  } else if (F == "acTL") k.tabs[F] = { num_frames: O(_, P), num_plays: O(_, P + 4) }, N = new Uint8Array(_.length);
23787
23794
  else if (F == "fcTL") {
23788
- V != 0 && ((Y = k.frames[k.frames.length - 1]).data = d(k, N.slice(0, V), Y.rect.width, Y.rect.height), V = 0);
23795
+ j != 0 && ((Y = k.frames[k.frames.length - 1]).data = d(k, N.slice(0, j), Y.rect.width, Y.rect.height), j = 0);
23789
23796
  const H = { x: O(_, P + 12), y: O(_, P + 16), width: O(_, P + 4), height: O(_, P + 8) };
23790
23797
  let B = R(_, P + 22);
23791
23798
  B = R(_, P + 20) / (B == 0 ? 100 : B);
23792
- const j = { rect: H, delay: Math.round(1e3 * B), dispose: _[P + 24], blend: _[P + 25] };
23793
- k.frames.push(j);
23799
+ const V = { rect: H, delay: Math.round(1e3 * B), dispose: _[P + 24], blend: _[P + 25] };
23800
+ k.frames.push(V);
23794
23801
  } else if (F == "fdAT") {
23795
- for (W = 0; W < te - 4; W++) N[V + W] = _[P + W + 4];
23796
- V += te - 4;
23802
+ for (W = 0; W < te - 4; W++) N[j + W] = _[P + W + 4];
23803
+ j += te - 4;
23797
23804
  } else if (F == "pHYs") k.tabs[F] = [C.readUint(_, P), C.readUint(_, P + 4), _[P + 8]];
23798
23805
  else if (F == "cHRM")
23799
23806
  for (k.tabs[F] = [], W = 0; W < 8; W++) k.tabs[F].push(C.readUint(_, P + 4 * W));
@@ -23823,7 +23830,7 @@ const UPNG = (function() {
23823
23830
  P += te, C.readUint(_, P), P += 4;
23824
23831
  }
23825
23832
  var Y;
23826
- return V != 0 && ((Y = k.frames[k.frames.length - 1]).data = d(k, N.slice(0, V), Y.rect.width, Y.rect.height)), k.data = d(k, L, k.width, k.height), delete k.compress, delete k.interlace, delete k.filter, k;
23833
+ return j != 0 && ((Y = k.frames[k.frames.length - 1]).data = d(k, N.slice(0, j), Y.rect.width, Y.rect.height)), k.data = d(k, L, k.width, k.height), delete k.compress, delete k.interlace, delete k.filter, k;
23827
23834
  }, toRGBA8: function(A) {
23828
23835
  const _ = A.width, P = A.height;
23829
23836
  if (A.tabs.acTL == null) return [u(A.data, _, P, A).buffer];
@@ -23831,11 +23838,11 @@ const UPNG = (function() {
23831
23838
  A.frames[0].data == null && (A.frames[0].data = A.data);
23832
23839
  const R = _ * P * 4, O = new Uint8Array(R), k = new Uint8Array(R), L = new Uint8Array(R);
23833
23840
  for (let I = 0; I < A.frames.length; I++) {
23834
- const V = A.frames[I], D = V.rect.x, W = V.rect.y, $ = V.rect.width, K = V.rect.height, Z = u(V.data, $, K, A);
23841
+ const j = A.frames[I], D = j.rect.x, W = j.rect.y, $ = j.rect.width, K = j.rect.height, Z = u(j.data, $, K, A);
23835
23842
  if (I != 0) for (var N = 0; N < R; N++) L[N] = O[N];
23836
- if (V.blend == 0 ? T(Z, $, K, O, _, P, D, W, 0) : V.blend == 1 && T(Z, $, K, O, _, P, D, W, 1), C.push(O.buffer.slice(0)), V.dispose != 0) {
23837
- if (V.dispose == 1) T(k, $, K, O, _, P, D, W, 0);
23838
- else if (V.dispose == 2) for (N = 0; N < R; N++) O[N] = L[N];
23843
+ if (j.blend == 0 ? T(Z, $, K, O, _, P, D, W, 0) : j.blend == 1 && T(Z, $, K, O, _, P, D, W, 1), C.push(O.buffer.slice(0)), j.dispose != 0) {
23844
+ if (j.dispose == 1) T(k, $, K, O, _, P, D, W, 0);
23845
+ else if (j.dispose == 2) for (N = 0; N < R; N++) O[N] = L[N];
23839
23846
  }
23840
23847
  }
23841
23848
  return C;
@@ -23874,9 +23881,9 @@ const UPNG = (function() {
23874
23881
  }
23875
23882
  for (H = 0; H < te; H++) {
23876
23883
  let ne = 4294967295;
23877
- for (var B = 0, j = 0; j < te; j++) {
23878
- var J = y(F[H], F[j]);
23879
- j != H && J < ne && (ne = J, B = j);
23884
+ for (var B = 0, V = 0; V < te; V++) {
23885
+ var J = y(F[H], F[V]);
23886
+ V != H && J < ne && (ne = J, B = V);
23880
23887
  }
23881
23888
  }
23882
23889
  const re = new Uint32Array(q.buffer), ie = new Int16Array(K * Z * 4), oe = [0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5];
@@ -23885,9 +23892,9 @@ const UPNG = (function() {
23885
23892
  var se;
23886
23893
  H = 4 * (ne * K + le), Y != 2 ? se = [g($[H] + ie[H]), g($[H + 1] + ie[H + 1]), g($[H + 2] + ie[H + 2]), g($[H + 3] + ie[H + 3])] : (J = oe[4 * (3 & ne) + (3 & le)], se = [g($[H] + J), g($[H + 1] + J), g($[H + 2] + J), g($[H + 3] + J)]), B = 0;
23887
23894
  let de = 16777215;
23888
- for (j = 0; j < te; j++) {
23889
- const he = y(se, F[j]);
23890
- he < de && (de = he, B = j);
23895
+ for (V = 0; V < te; V++) {
23896
+ const he = y(se, F[V]);
23897
+ he < de && (de = he, B = V);
23891
23898
  }
23892
23899
  const ue = F[B], pe = [se[0] - ue[0], se[1] - ue[1], se[2] - ue[2], se[3] - ue[3]];
23893
23900
  Y == 1 && (le != K - 1 && m(pe, ie, H + 4, 7), ne != Z - 1 && (le != 0 && m(pe, ie, H + 4 * K - 4, 3), m(pe, ie, H + 4 * K, 5), le != K - 1 && m(pe, ie, H + 4 * K + 4, 1))), Q[H >> 2] = B, re[H >> 2] = ee[B];
@@ -23898,8 +23905,8 @@ const UPNG = (function() {
23898
23905
  const { crc: Q } = p, Y = u.writeUint, te = u.writeUshort, F = u.writeASCII;
23899
23906
  let H = 8;
23900
23907
  const B = $.frames.length > 1;
23901
- let j, J = !1, re = 33 + (B ? 20 : 0);
23902
- if (q.sRGB != null && (re += 13), q.pHYs != null && (re += 21), q.iCCP != null && (j = pako.deflate(q.iCCP), re += 21 + j.length + 4), $.ctype == 3) {
23908
+ let V, J = !1, re = 33 + (B ? 20 : 0);
23909
+ if (q.sRGB != null && (re += 13), q.pHYs != null && (re += 21), q.iCCP != null && (V = pako.deflate(q.iCCP), re += 21 + V.length + 4), $.ctype == 3) {
23903
23910
  for (var ie = $.plte.length, oe = 0; oe < ie; oe++) $.plte[oe] >>> 24 != 255 && (J = !0);
23904
23911
  re += 8 + 3 * ie + 4 + (J ? 8 + 1 * ie + 4 : 0);
23905
23912
  }
@@ -23909,8 +23916,8 @@ const UPNG = (function() {
23909
23916
  const ne = new Uint8Array(re), le = [137, 80, 78, 71, 13, 10, 26, 10];
23910
23917
  for (oe = 0; oe < 8; oe++) ne[oe] = le[oe];
23911
23918
  if (Y(ne, H, 13), H += 4, F(ne, H, "IHDR"), H += 4, Y(ne, H, K), H += 4, Y(ne, H, Z), H += 4, ne[H] = $.depth, H++, ne[H] = $.ctype, H++, ne[H] = 0, H++, ne[H] = 0, H++, ne[H] = 0, H++, Y(ne, H, Q(ne, H - 17, 17)), H += 4, q.sRGB != null && (Y(ne, H, 1), H += 4, F(ne, H, "sRGB"), H += 4, ne[H] = q.sRGB, H++, Y(ne, H, Q(ne, H - 5, 5)), H += 4), q.iCCP != null) {
23912
- const pe = 13 + j.length;
23913
- Y(ne, H, pe), H += 4, F(ne, H, "iCCP"), H += 4, F(ne, H, "ICC profile"), H += 11, H += 2, ne.set(j, H), H += j.length, Y(ne, H, Q(ne, H - (pe + 4), pe + 4)), H += 4;
23919
+ const pe = 13 + V.length;
23920
+ Y(ne, H, pe), H += 4, F(ne, H, "iCCP"), H += 4, F(ne, H, "ICC profile"), H += 11, H += 2, ne.set(V, H), H += V.length, Y(ne, H, Q(ne, H - (pe + 4), pe + 4)), H += 4;
23914
23921
  }
23915
23922
  if (q.pHYs != null && (Y(ne, H, 9), H += 4, F(ne, H, "pHYs"), H += 4, Y(ne, H, q.pHYs[0]), H += 4, Y(ne, H, q.pHYs[1]), H += 4, ne[H] = q.pHYs[2], H++, Y(ne, H, Q(ne, H - 13, 13)), H += 4), B && (Y(ne, H, 8), H += 4, F(ne, H, "acTL"), H += 4, Y(ne, H, $.frames.length), H += 4, Y(ne, H, q.loop != null ? q.loop : 0), H += 4, Y(ne, H, Q(ne, H - 12, 12)), H += 4), $.ctype == 3) {
23916
23923
  for (Y(ne, H, 3 * (ie = $.plte.length)), H += 4, F(ne, H, "PLTE"), H += 4, oe = 0; oe < ie; oe++) {
@@ -23943,7 +23950,7 @@ const UPNG = (function() {
23943
23950
  }
23944
23951
  function S($, K, Z, ee, q) {
23945
23952
  const Q = q[0], Y = q[1], te = q[2], F = q[3], H = q[4], B = q[5];
23946
- let j = 6, J = 8, re = 255;
23953
+ let V = 6, J = 8, re = 255;
23947
23954
  for (var ie = 0; ie < $.length; ie++) {
23948
23955
  const Oe = new Uint8Array($[ie]);
23949
23956
  for (var oe = Oe.length, se = 0; se < oe; se += 4) re &= Oe[se + 3];
@@ -24045,7 +24052,7 @@ const UPNG = (function() {
24045
24052
  else if (J == 2) for (Se = 0; Se < ye; Se++) fe[se + (Se >> 2)] |= Le[Ie + Se] << 6 - 2 * (3 & Se);
24046
24053
  else if (J == 1) for (Se = 0; Se < ye; Se++) fe[se + (Se >> 3)] |= Le[Ie + Se] << 7 - 1 * (7 & Se);
24047
24054
  }
24048
- Ae = fe, j = 3, Re = 1;
24055
+ Ae = fe, V = 3, Re = 1;
24049
24056
  } else if (ne == 0 && le.length == 1) {
24050
24057
  fe = new Uint8Array(ye * Oe * 3);
24051
24058
  const Le = ye * Oe;
@@ -24053,18 +24060,18 @@ const UPNG = (function() {
24053
24060
  const Ce = 3 * se, Ie = 4 * se;
24054
24061
  fe[Ce] = Ae[Ie], fe[Ce + 1] = Ae[Ie + 1], fe[Ce + 2] = Ae[Ie + 2];
24055
24062
  }
24056
- Ae = fe, j = 2, Re = 3, _e = 3 * ye;
24063
+ Ae = fe, V = 2, Re = 3, _e = 3 * ye;
24057
24064
  }
24058
24065
  me.img = Ae, me.bpl = _e, me.bpp = Re;
24059
24066
  }
24060
- return { ctype: j, depth: J, plte: ue, frames: le };
24067
+ return { ctype: V, depth: J, plte: ue, frames: le };
24061
24068
  }
24062
24069
  function A($, K, Z, ee, q, Q, Y) {
24063
- const te = Uint8Array, F = Uint32Array, H = new te($[q - 1]), B = new F($[q - 1]), j = q + 1 < $.length ? new te($[q + 1]) : null, J = new te($[q]), re = new F(J.buffer);
24070
+ const te = Uint8Array, F = Uint32Array, H = new te($[q - 1]), B = new F($[q - 1]), V = q + 1 < $.length ? new te($[q + 1]) : null, J = new te($[q]), re = new F(J.buffer);
24064
24071
  let ie = K, oe = Z, se = -1, ne = -1;
24065
24072
  for (let de = 0; de < Q.height; de++) for (let ue = 0; ue < Q.width; ue++) {
24066
24073
  const pe = Q.x + ue, he = Q.y + de, me = he * K + pe, ye = re[me];
24067
- ye == 0 || ee[q - 1].dispose == 0 && B[me] == ye && (j == null || j[4 * me + 3] != 0) || (pe < ie && (ie = pe), pe > se && (se = pe), he < oe && (oe = he), he > ne && (ne = he));
24074
+ ye == 0 || ee[q - 1].dispose == 0 && B[me] == ye && (V == null || V[4 * me + 3] != 0) || (pe < ie && (ie = pe), pe > se && (se = pe), he < oe && (oe = he), he > ne && (ne = he));
24068
24075
  }
24069
24076
  se == -1 && (ie = oe = se = ne = 0), Y && ((1 & ie) == 1 && ie--, (1 & oe) == 1 && oe--), Q = { x: ie, y: oe, width: se - ie + 1, height: ne - oe + 1 };
24070
24077
  const le = ee[q];
@@ -24078,12 +24085,12 @@ const UPNG = (function() {
24078
24085
  let F, H = [0, 1, 2, 3, 4];
24079
24086
  Q != -1 ? H = [Q] : (K * ee > 5e5 || Z == 1) && (H = [0]), Y && (F = { level: 0 });
24080
24087
  const B = UZIP;
24081
- for (var j = 0; j < H.length; j++) {
24082
- for (let ie = 0; ie < K; ie++) C(q, $, ie, ee, Z, H[j]);
24088
+ for (var V = 0; V < H.length; V++) {
24089
+ for (let ie = 0; ie < K; ie++) C(q, $, ie, ee, Z, H[V]);
24083
24090
  te.push(B.deflate(q, F));
24084
24091
  }
24085
24092
  let J, re = 1e9;
24086
- for (j = 0; j < te.length; j++) te[j].length < re && (J = j, re = te[j].length);
24093
+ for (V = 0; V < te.length; V++) te[V].length < re && (J = V, re = te[V].length);
24087
24094
  return te[J];
24088
24095
  }
24089
24096
  function C($, K, Z, ee, q, Q) {
@@ -24114,19 +24121,19 @@ const UPNG = (function() {
24114
24121
  function R($, K) {
24115
24122
  const Z = new Uint8Array($), ee = Z.slice(0), q = new Uint32Array(ee.buffer), Q = O(ee, K), Y = Q[0], te = Q[1], F = Z.length, H = new Uint8Array(F >> 2);
24116
24123
  let B;
24117
- if (Z.length < 2e7) for (var j = 0; j < F; j += 4)
24118
- B = k(Y, J = Z[j] * (1 / 255), re = Z[j + 1] * (1 / 255), ie = Z[j + 2] * (1 / 255), oe = Z[j + 3] * (1 / 255)), H[j >> 2] = B.ind, q[j >> 2] = B.est.rgba;
24119
- else for (j = 0; j < F; j += 4) {
24120
- var J = Z[j] * 0.00392156862745098, re = Z[j + 1] * (1 / 255), ie = Z[j + 2] * (1 / 255), oe = Z[j + 3] * (1 / 255);
24124
+ if (Z.length < 2e7) for (var V = 0; V < F; V += 4)
24125
+ B = k(Y, J = Z[V] * (1 / 255), re = Z[V + 1] * (1 / 255), ie = Z[V + 2] * (1 / 255), oe = Z[V + 3] * (1 / 255)), H[V >> 2] = B.ind, q[V >> 2] = B.est.rgba;
24126
+ else for (V = 0; V < F; V += 4) {
24127
+ var J = Z[V] * 0.00392156862745098, re = Z[V + 1] * (1 / 255), ie = Z[V + 2] * (1 / 255), oe = Z[V + 3] * (1 / 255);
24121
24128
  for (B = Y; B.left; ) B = L(B.est, J, re, ie, oe) <= 0 ? B.left : B.right;
24122
- H[j >> 2] = B.ind, q[j >> 2] = B.est.rgba;
24129
+ H[V >> 2] = B.ind, q[V >> 2] = B.est.rgba;
24123
24130
  }
24124
24131
  return { abuf: ee.buffer, inds: H, plte: te };
24125
24132
  }
24126
24133
  function O($, K, Z) {
24127
24134
  Z == null && (Z = 1e-4);
24128
24135
  const ee = new Uint32Array($.buffer), q = { i0: 0, i1: $.length, bst: null, est: null, tdst: 0, left: null, right: null };
24129
- q.bst = V($, q.i0, q.i1), q.est = D(q.bst);
24136
+ q.bst = j($, q.i0, q.i1), q.est = D(q.bst);
24130
24137
  const Q = [q];
24131
24138
  for (; Q.length < K; ) {
24132
24139
  let te = 0, F = 0;
@@ -24137,19 +24144,19 @@ const UPNG = (function() {
24137
24144
  H.est.L = 0;
24138
24145
  continue;
24139
24146
  }
24140
- const j = { i0: H.i0, i1: B, bst: null, est: null, tdst: 0, left: null, right: null };
24141
- j.bst = V($, j.i0, j.i1), j.est = D(j.bst);
24147
+ const V = { i0: H.i0, i1: B, bst: null, est: null, tdst: 0, left: null, right: null };
24148
+ V.bst = j($, V.i0, V.i1), V.est = D(V.bst);
24142
24149
  const J = { i0: B, i1: H.i1, bst: null, est: null, tdst: 0, left: null, right: null };
24143
- for (J.bst = { R: [], m: [], N: H.bst.N - j.bst.N }, Y = 0; Y < 16; Y++) J.bst.R[Y] = H.bst.R[Y] - j.bst.R[Y];
24144
- for (Y = 0; Y < 4; Y++) J.bst.m[Y] = H.bst.m[Y] - j.bst.m[Y];
24145
- J.est = D(J.bst), H.left = j, H.right = J, Q[F] = j, Q.push(J);
24150
+ for (J.bst = { R: [], m: [], N: H.bst.N - V.bst.N }, Y = 0; Y < 16; Y++) J.bst.R[Y] = H.bst.R[Y] - V.bst.R[Y];
24151
+ for (Y = 0; Y < 4; Y++) J.bst.m[Y] = H.bst.m[Y] - V.bst.m[Y];
24152
+ J.est = D(J.bst), H.left = V, H.right = J, Q[F] = V, Q.push(J);
24146
24153
  }
24147
24154
  for (Q.sort(((te, F) => F.bst.N - te.bst.N)), Y = 0; Y < Q.length; Y++) Q[Y].ind = Y;
24148
24155
  return [q, Q];
24149
24156
  }
24150
24157
  function k($, K, Z, ee, q) {
24151
- if ($.left == null) return $.tdst = (function(j, J, re, ie, oe) {
24152
- const se = J - j[0], ne = re - j[1], le = ie - j[2], de = oe - j[3];
24158
+ if ($.left == null) return $.tdst = (function(V, J, re, ie, oe) {
24159
+ const se = J - V[0], ne = re - V[1], le = ie - V[2], de = oe - V[3];
24153
24160
  return se * se + ne * ne + le * le + de * de;
24154
24161
  })($.est.q, K, Z, ee, q), $;
24155
24162
  const Q = L($.est, K, Z, ee, q);
@@ -24178,7 +24185,7 @@ const UPNG = (function() {
24178
24185
  function I($, K, Z) {
24179
24186
  return $[K] * Z[0] + $[K + 1] * Z[1] + $[K + 2] * Z[2] + $[K + 3] * Z[3];
24180
24187
  }
24181
- function V($, K, Z) {
24188
+ function j($, K, Z) {
24182
24189
  const ee = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], q = [0, 0, 0, 0], Q = Z - K >> 2;
24183
24190
  for (let Y = K; Y < Z; Y += 4) {
24184
24191
  const te = $[Y] * 0.00392156862745098, F = $[Y + 1] * (1 / 255), H = $[Y + 2] * (1 / 255), B = $[Y + 3] * (1 / 255);
@@ -24187,11 +24194,11 @@ const UPNG = (function() {
24187
24194
  return ee[4] = ee[1], ee[8] = ee[2], ee[9] = ee[6], ee[12] = ee[3], ee[13] = ee[7], ee[14] = ee[11], { R: ee, m: q, N: Q };
24188
24195
  }
24189
24196
  function D($) {
24190
- const { R: K } = $, { m: Z } = $, { N: ee } = $, q = Z[0], Q = Z[1], Y = Z[2], te = Z[3], F = ee == 0 ? 0 : 1 / ee, H = [K[0] - q * q * F, K[1] - q * Q * F, K[2] - q * Y * F, K[3] - q * te * F, K[4] - Q * q * F, K[5] - Q * Q * F, K[6] - Q * Y * F, K[7] - Q * te * F, K[8] - Y * q * F, K[9] - Y * Q * F, K[10] - Y * Y * F, K[11] - Y * te * F, K[12] - te * q * F, K[13] - te * Q * F, K[14] - te * Y * F, K[15] - te * te * F], B = H, j = W;
24197
+ const { R: K } = $, { m: Z } = $, { N: ee } = $, q = Z[0], Q = Z[1], Y = Z[2], te = Z[3], F = ee == 0 ? 0 : 1 / ee, H = [K[0] - q * q * F, K[1] - q * Q * F, K[2] - q * Y * F, K[3] - q * te * F, K[4] - Q * q * F, K[5] - Q * Q * F, K[6] - Q * Y * F, K[7] - Q * te * F, K[8] - Y * q * F, K[9] - Y * Q * F, K[10] - Y * Y * F, K[11] - Y * te * F, K[12] - te * q * F, K[13] - te * Q * F, K[14] - te * Y * F, K[15] - te * te * F], B = H, V = W;
24191
24198
  let J = [Math.random(), Math.random(), Math.random(), Math.random()], re = 0, ie = 0;
24192
- if (ee != 0) for (let se = 0; se < 16 && (J = j.multVec(B, J), ie = Math.sqrt(j.dot(J, J)), J = j.sml(1 / ie, J), !(se != 0 && Math.abs(ie - re) < 1e-9)); se++) re = ie;
24199
+ if (ee != 0) for (let se = 0; se < 16 && (J = V.multVec(B, J), ie = Math.sqrt(V.dot(J, J)), J = V.sml(1 / ie, J), !(se != 0 && Math.abs(ie - re) < 1e-9)); se++) re = ie;
24193
24200
  const oe = [q * F, Q * F, Y * F, te * F];
24194
- return { Cov: H, q: oe, e: J, L: re, eMq255: j.dot(j.sml(255, oe), J), eMq: j.dot(J, oe), rgba: (Math.round(255 * oe[3]) << 24 | Math.round(255 * oe[2]) << 16 | Math.round(255 * oe[1]) << 8 | Math.round(255 * oe[0]) << 0) >>> 0 };
24201
+ return { Cov: H, q: oe, e: J, L: re, eMq255: V.dot(V.sml(255, oe), J), eMq: V.dot(J, oe), rgba: (Math.round(255 * oe[3]) << 24 | Math.round(255 * oe[2]) << 16 | Math.round(255 * oe[1]) << 8 | Math.round(255 * oe[0]) << 0) >>> 0 };
24195
24202
  }
24196
24203
  var W = { multVec: ($, K) => [$[0] * K[0] + $[1] * K[1] + $[2] * K[2] + $[3] * K[3], $[4] * K[0] + $[5] * K[1] + $[6] * K[2] + $[7] * K[3], $[8] * K[0] + $[9] * K[1] + $[10] * K[2] + $[11] * K[3], $[12] * K[0] + $[13] * K[1] + $[14] * K[2] + $[15] * K[3]], dot: ($, K) => $[0] * K[0] + $[1] * K[1] + $[2] * K[2] + $[3] * K[3], sml: ($, K) => [$ * K[0], $ * K[1], $ * K[2], $ * K[3]] };
24197
24204
  UPNG.encode = function(K, Z, ee, q, Q, Y, te) {
@@ -24199,15 +24206,15 @@ const UPNG = (function() {
24199
24206
  const F = S(K, Z, ee, q, [!1, !1, !1, 0, te, !1]);
24200
24207
  return T(F, -1), E(F, Z, ee, Q, Y);
24201
24208
  }, UPNG.encodeLL = function(K, Z, ee, q, Q, Y, te, F) {
24202
- const H = { ctype: 0 + (q == 1 ? 0 : 2) + (Q == 0 ? 0 : 4), depth: Y, frames: [] }, B = (q + Q) * Y, j = B * Z;
24203
- for (let J = 0; J < K.length; J++) H.frames.push({ rect: { x: 0, y: 0, width: Z, height: ee }, img: new Uint8Array(K[J]), blend: 0, dispose: 1, bpp: Math.ceil(B / 8), bpl: Math.ceil(j / 8) });
24209
+ const H = { ctype: 0 + (q == 1 ? 0 : 2) + (Q == 0 ? 0 : 4), depth: Y, frames: [] }, B = (q + Q) * Y, V = B * Z;
24210
+ for (let J = 0; J < K.length; J++) H.frames.push({ rect: { x: 0, y: 0, width: Z, height: ee }, img: new Uint8Array(K[J]), blend: 0, dispose: 1, bpp: Math.ceil(B / 8), bpl: Math.ceil(V / 8) });
24204
24211
  return T(H, 0, !0), E(H, Z, ee, te, F);
24205
24212
  }, UPNG.encode.compress = S, UPNG.encode.dither = b, UPNG.quantize = R, UPNG.quantize.getKDtree = O, UPNG.quantize.getNearest = k;
24206
24213
  })();
24207
24214
  const r = { toArrayBuffer(n, u) {
24208
24215
  const d = n.width, p = n.height, m = d << 2, g = n.getContext("2d").getImageData(0, 0, d, p), y = new Uint32Array(g.data.buffer), b = (32 * d + 31) / 32 << 2, E = b * p, T = 122 + E, S = new ArrayBuffer(T), A = new DataView(S), _ = 1 << 20;
24209
24216
  let P, C, R, O, k = _, L = 0, N = 0, I = 0;
24210
- function V($) {
24217
+ function j($) {
24211
24218
  A.setUint16(N, $, !0), N += 2;
24212
24219
  }
24213
24220
  function D($) {
@@ -24216,7 +24223,7 @@ const r = { toArrayBuffer(n, u) {
24216
24223
  function W($) {
24217
24224
  N += $;
24218
24225
  }
24219
- V(19778), D(T), W(4), D(122), D(108), D(d), D(-p >>> 0), V(1), V(32), D(3), D(E), D(2835), D(2835), W(8), D(16711680), D(65280), D(255), D(4278190080), D(1466527264), (function $() {
24226
+ j(19778), D(T), W(4), D(122), D(108), D(d), D(-p >>> 0), j(1), j(32), D(3), D(E), D(2835), D(2835), W(8), D(16711680), D(65280), D(255), D(4278190080), D(1466527264), (function $() {
24220
24227
  for (; L < p && k > 0; ) {
24221
24228
  for (O = 122 + L * b, P = 0; P < m; ) k--, C = y[I++], R = C >>> 24, A.setUint32(O + P, C << 8 | R), P += 4;
24222
24229
  L++;
@@ -24483,7 +24490,7 @@ function followExifOrientation(n, u) {
24483
24490
  }
24484
24491
  function compress(n, u, d = 0) {
24485
24492
  return new Promise((function(p, m) {
24486
- let g, y, b, E, T, S, A, _, P, C, R, O, k, L, N, I, V, D, W, $;
24493
+ let g, y, b, E, T, S, A, _, P, C, R, O, k, L, N, I, j, D, W, $;
24487
24494
  function K(ee = 5) {
24488
24495
  if (u.signal && u.signal.aborted) throw u.signal.reason;
24489
24496
  g += ee, u.onProgress(Math.min(g, 100));
@@ -24516,10 +24523,10 @@ function compress(n, u, d = 0) {
24516
24523
  {
24517
24524
  let F = function() {
24518
24525
  if (y-- && (N > b || N > k)) {
24519
- let B, j;
24520
- return B = $ ? 0.95 * W.width : W.width, j = $ ? 0.95 * W.height : W.height, [V, D] = getNewCanvasAndCtx(B, j), D.drawImage(W, 0, 0, B, j), _ *= P === "image/png" ? 0.85 : 0.95, canvasToFile(V, P, n.name, n.lastModified, _).then((function(J) {
24526
+ let B, V;
24527
+ return B = $ ? 0.95 * W.width : W.width, V = $ ? 0.95 * W.height : W.height, [j, D] = getNewCanvasAndCtx(B, V), D.drawImage(W, 0, 0, B, V), _ *= P === "image/png" ? 0.85 : 0.95, canvasToFile(j, P, n.name, n.lastModified, _).then((function(J) {
24521
24528
  try {
24522
- return I = J, cleanupCanvasMemory(W), W = V, N = I.size, Z(Math.min(99, Math.floor((L - N) / (L - b) * 100))), F;
24529
+ return I = J, cleanupCanvasMemory(W), W = j, N = I.size, Z(Math.min(99, Math.floor((L - N) / (L - b) * 100))), F;
24523
24530
  } catch (re) {
24524
24531
  return m(re);
24525
24532
  }
@@ -24527,7 +24534,7 @@ function compress(n, u, d = 0) {
24527
24534
  }
24528
24535
  return [1];
24529
24536
  }, H = function() {
24530
- return cleanupCanvasMemory(W), cleanupCanvasMemory(V), cleanupCanvasMemory(T), cleanupCanvasMemory(A), cleanupCanvasMemory(E), Z(100), p(I);
24537
+ return cleanupCanvasMemory(W), cleanupCanvasMemory(j), cleanupCanvasMemory(T), cleanupCanvasMemory(A), cleanupCanvasMemory(E), Z(100), p(I);
24531
24538
  };
24532
24539
  if (C = Y, K(), R = C.size > b, O = C.size > n.size, !R && !O) return Z(100), p(C);
24533
24540
  var te;
@@ -24539,8 +24546,8 @@ function compress(n, u, d = 0) {
24539
24546
  if (B.length) return B.pop() ? H.call(this) : B;
24540
24547
  B = F;
24541
24548
  } else B = B.call(this);
24542
- } catch (j) {
24543
- return m(j);
24549
+ } catch (V) {
24550
+ return m(V);
24544
24551
  }
24545
24552
  }
24546
24553
  }).bind(this))(F);
@@ -24698,7 +24705,7 @@ const ImageSearchModal$1 = lazy(
24698
24705
  placement: g,
24699
24706
  onVoiceComment: y
24700
24707
  }) => {
24701
- const b = useRef(null), [E, T] = useState(null), [S, A] = useState(!1), [_, P] = useState(!1), [C, R] = useState(!1), { editor: O } = useCurrentEditor(), k = useEditorStateSnapshot(O), { showCrossMentionIndicator: L } = useEditorWithMentionTracking(O, { debounceMs: 150 }), { trackFeature: N } = useAnalyticsTracking(), { t: I } = usePostBuilder(), { fileStore: V } = useApi(), { isRecording: D, duration: W, volume: $, startRecording: K, stopRecording: Z, cancelRecording: ee } = useVoiceRecorder({ maxDuration: 60 }), [q, Q] = useState(!1), Y = useUploadingState(O), te = g === EditorPlacement.Comment && !!y && k?.isEmpty && !p && !D, F = async () => {
24708
+ const b = useRef(null), [E, T] = useState(null), [S, A] = useState(!1), [_, P] = useState(!1), [C, R] = useState(!1), { editor: O } = useCurrentEditor(), k = useEditorStateSnapshot(O), { showCrossMentionIndicator: L } = useEditorWithMentionTracking(O, { debounceMs: 150 }), { trackFeature: N } = useAnalyticsTracking(), { t: I } = usePostBuilder(), { fileStore: j } = useApi(), { isRecording: D, duration: W, volume: $, startRecording: K, stopRecording: Z, cancelRecording: ee } = useVoiceRecorder({ maxDuration: 60 }), [q, Q] = useState(!1), Y = useUploadingState(O), te = g === EditorPlacement.Comment && !!y && k?.isEmpty && !p && !D, F = async () => {
24702
24709
  try {
24703
24710
  await K();
24704
24711
  } catch {
@@ -24709,7 +24716,7 @@ const ImageSearchModal$1 = lazy(
24709
24716
  try {
24710
24717
  const { blob: ue, duration: pe } = await Z();
24711
24718
  Q(!0);
24712
- const he = ue.type.split("/")[1]?.split(";")[0] ?? "webm", me = new File([ue], `${v4()}.${he}`), ye = await V.uploadVoice(me);
24719
+ const he = ue.type.split("/")[1]?.split(";")[0] ?? "webm", me = new File([ue], `${v4()}.${he}`), ye = await j.uploadVoice(me);
24713
24720
  ye?.url && y?.({ voiceUrl: ye.url, voiceTime: pe });
24714
24721
  } catch {
24715
24722
  } finally {
@@ -24719,7 +24726,7 @@ const ImageSearchModal$1 = lazy(
24719
24726
  ee();
24720
24727
  };
24721
24728
  if (!O) return null;
24722
- const j = TOOLBAR_FEATURES[u], J = (ue) => {
24729
+ const V = TOOLBAR_FEATURES[u], J = (ue) => {
24723
24730
  if (k?.isLink) {
24724
24731
  O.chain().focus().unsetLink().run(), ue.preventDefault();
24725
24732
  return;
@@ -24792,7 +24799,7 @@ const ImageSearchModal$1 = lazy(
24792
24799
  });
24793
24800
  }, de = (ue) => ue?.isHeading1 ? Heading1 : ue?.isHeading2 ? Heading2 : ue?.isHeading3 ? Heading3 : Type;
24794
24801
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col grow overflow-y-auto", children: [
24795
- j.showFormatting && /* @__PURE__ */ jsxs("div", { className: "shrink-0 flex flex-wrap items-center gap-2 sm:gap-2 p-2", children: [
24802
+ V.showFormatting && /* @__PURE__ */ jsxs("div", { className: "shrink-0 flex flex-wrap items-center gap-2 sm:gap-2 p-2", children: [
24796
24803
  /* @__PURE__ */ jsx(
24797
24804
  ToolbarButton,
24798
24805
  {
@@ -25083,7 +25090,7 @@ const ImageSearchModal$1 = lazy(
25083
25090
  onChange: se
25084
25091
  }
25085
25092
  ),
25086
- j.showImage && /* @__PURE__ */ jsx(
25093
+ V.showImage && /* @__PURE__ */ jsx(
25087
25094
  ToolbarButton,
25088
25095
  {
25089
25096
  id: FEATURE_NAME_MAP.image,
@@ -25094,7 +25101,7 @@ const ImageSearchModal$1 = lazy(
25094
25101
  onClick: oe
25095
25102
  }
25096
25103
  ),
25097
- j.showVideo && /* @__PURE__ */ jsx(
25104
+ V.showVideo && /* @__PURE__ */ jsx(
25098
25105
  ToolbarButton,
25099
25106
  {
25100
25107
  id: FEATURE_NAME_MAP.video,
@@ -25105,7 +25112,7 @@ const ImageSearchModal$1 = lazy(
25105
25112
  onClick: oe
25106
25113
  }
25107
25114
  ),
25108
- j.showAudio && /* @__PURE__ */ jsx(
25115
+ V.showAudio && /* @__PURE__ */ jsx(
25109
25116
  ToolbarButton,
25110
25117
  {
25111
25118
  id: FEATURE_NAME_MAP.audio,
@@ -25116,7 +25123,7 @@ const ImageSearchModal$1 = lazy(
25116
25123
  onClick: oe
25117
25124
  }
25118
25125
  ),
25119
- j.showImageSearch && /* @__PURE__ */ jsxs(Fragment$1, { children: [
25126
+ V.showImageSearch && /* @__PURE__ */ jsxs(Fragment$1, { children: [
25120
25127
  /* @__PURE__ */ jsx(
25121
25128
  ToolbarButton,
25122
25129
  {
@@ -25137,7 +25144,7 @@ const ImageSearchModal$1 = lazy(
25137
25144
  }
25138
25145
  ) })
25139
25146
  ] }),
25140
- j.showLink && /* @__PURE__ */ jsxs(Fragment$1, { children: [
25147
+ V.showLink && /* @__PURE__ */ jsxs(Fragment$1, { children: [
25141
25148
  /* @__PURE__ */ jsx(VerticalSeparator, {}),
25142
25149
  /* @__PURE__ */ jsx(
25143
25150
  ToolbarButton,
@@ -25986,13 +25993,13 @@ const useHostAnalyticsBridge = () => {
25986
25993
  T === "right" ? K = R.current + $ : T === "left" && (K = R.current - $), K = Math.min(p, Math.max(d, K)), _(K), m?.(K), k.current = null;
25987
25994
  }, I = (D) => {
25988
25995
  !b || !T || (O.current = D.clientX - C.current, k.current || (k.current = requestAnimationFrame(N)));
25989
- }, V = () => {
25996
+ }, j = () => {
25990
25997
  E(!1), S(null), k.current && (cancelAnimationFrame(k.current), k.current = null);
25991
25998
  };
25992
25999
  return useEffect(() => {
25993
26000
  if (b)
25994
- return window.addEventListener("mousemove", I), window.addEventListener("mouseup", V), () => {
25995
- window.removeEventListener("mousemove", I), window.removeEventListener("mouseup", V);
26001
+ return window.addEventListener("mousemove", I), window.addEventListener("mouseup", j), () => {
26002
+ window.removeEventListener("mousemove", I), window.removeEventListener("mouseup", j);
25996
26003
  };
25997
26004
  }, [b]), /* @__PURE__ */ jsxs(
25998
26005
  "div",
@@ -28060,7 +28067,7 @@ function ImageSearchModal({
28060
28067
  });
28061
28068
  },
28062
28069
  [N, y]
28063
- ), V = useCallback(
28070
+ ), j = useCallback(
28064
28071
  ($) => {
28065
28072
  const K = $;
28066
28073
  if (N.cancel(), b(K), O(K, E)) return;
@@ -28094,7 +28101,7 @@ function ImageSearchModal({
28094
28101
  {
28095
28102
  defaultValue: "gifs",
28096
28103
  value: y,
28097
- onValueChange: V,
28104
+ onValueChange: j,
28098
28105
  className: "flex-1 grow flex flex-col overflow-y-auto",
28099
28106
  children: [
28100
28107
  /* @__PURE__ */ jsx("div", { className: "px-4", children: /* @__PURE__ */ jsxs(TabsList, { className: "grid w-full grid-cols-2", children: [
@@ -28511,8 +28518,8 @@ const mediaSearch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
28511
28518
  y((Y) => {
28512
28519
  const te = [...Y];
28513
28520
  Q.forEach((H, B) => {
28514
- const j = K + B;
28515
- H !== null && j < te.length && (te[j] = H);
28521
+ const V = K + B;
28522
+ H !== null && V < te.length && (te[V] = H);
28516
28523
  });
28517
28524
  const F = te.filter((H) => !isPlaceholder(H));
28518
28525
  return Q?.forEach((H) => {
@@ -28570,7 +28577,7 @@ const mediaSearch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
28570
28577
  }, 0), Q;
28571
28578
  });
28572
28579
  }
28573
- }, V = (D) => {
28580
+ }, j = (D) => {
28574
28581
  if (!R) return;
28575
28582
  const W = g[D], $ = g.filter((K, Z) => Z !== D);
28576
28583
  isPlaceholder(W) || E({
@@ -28604,7 +28611,7 @@ const mediaSearch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
28604
28611
  choice: D,
28605
28612
  index: W,
28606
28613
  canRemove: R,
28607
- onRemove: () => V(W)
28614
+ onRemove: () => j(W)
28608
28615
  },
28609
28616
  D.key
28610
28617
  ) : /* @__PURE__ */ jsx(
@@ -28613,7 +28620,7 @@ const mediaSearch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
28613
28620
  choice: D,
28614
28621
  index: W,
28615
28622
  canRemove: R,
28616
- onRemove: () => V(W)
28623
+ onRemove: () => j(W)
28617
28624
  },
28618
28625
  D.key
28619
28626
  )
@@ -29144,7 +29151,7 @@ const URL_REGEX = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|12
29144
29151
  hideTextInput: m = !1,
29145
29152
  children: g
29146
29153
  }) => {
29147
- const { editor: y } = useCurrentEditor(), { core: b } = useApi(), { t: E } = usePostBuilder(), [T, S] = useState(n?.uid ?? null), [A, _] = useState(n?.link ?? ""), [P, C] = useState(n?.text || ""), [R, O] = useState(void 0), [k, L] = useState(!1), [N, I] = useState(!1), V = useRef(null), D = (q) => {
29154
+ const { editor: y } = useCurrentEditor(), { core: b } = useApi(), { t: E } = usePostBuilder(), [T, S] = useState(n?.uid ?? null), [A, _] = useState(n?.link ?? ""), [P, C] = useState(n?.text || ""), [R, O] = useState(void 0), [k, L] = useState(!1), [N, I] = useState(!1), j = useRef(null), D = (q) => {
29148
29155
  if (d?.(q), !q || !y) return;
29149
29156
  const Q = getMarkAttrsAtSelection(y?.state, "customLink"), Y = normalizeUrl(Q?.href ?? "");
29150
29157
  O(isValidUrl(Y)), L(isValidUrl(Y)), S(Q?.uid ?? null), _(Q?.href ?? ""), C(Q?.text || Q?.href || "");
@@ -29166,8 +29173,8 @@ const URL_REGEX = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|12
29166
29173
  });
29167
29174
  }, ee = (q) => {
29168
29175
  if (q.key === "Enter") {
29169
- if (q.preventDefault(), V.current === q.target || m) return Z(A, P, T ?? void 0);
29170
- V?.current?.focus();
29176
+ if (q.preventDefault(), j.current === q.target || m) return Z(A, P, T ?? void 0);
29177
+ j?.current?.focus();
29171
29178
  }
29172
29179
  };
29173
29180
  return useEffect(() => {
@@ -29206,7 +29213,7 @@ const URL_REGEX = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|12
29206
29213
  /* @__PURE__ */ jsx(
29207
29214
  InputGroupInput,
29208
29215
  {
29209
- ref: V,
29216
+ ref: j,
29210
29217
  value: P,
29211
29218
  onChange: $,
29212
29219
  onKeyDown: ee,
@@ -29578,7 +29585,7 @@ const LinkMarkView = ({ mark: n, editor: u }) => {
29578
29585
  }
29579
29586
  )
29580
29587
  ] });
29581
- };
29588
+ }, LINK_AUTO_RESOLVE_REHYDRATE_META = "linkAutoResolve:rehydrate";
29582
29589
  function isSameMarkType(n, u) {
29583
29590
  return !n || !u ? !1 : n === u || n.name === u.name;
29584
29591
  }
@@ -29752,6 +29759,41 @@ function createInitialPluginState() {
29752
29759
  processedLinks: /* @__PURE__ */ new Set()
29753
29760
  };
29754
29761
  }
29762
+ function limitLinksForSinglePreviewMode(n, u, d) {
29763
+ if (!d || n.length <= 1)
29764
+ return n;
29765
+ const p = n.reduce((m, g) => g.pos > m.pos ? g : m);
29766
+ return n.forEach((m) => {
29767
+ m.uid !== p.uid && u.processedLinks.add(m.uid);
29768
+ }), [p];
29769
+ }
29770
+ function queueRehydratedLinksResolution(n, u, d, p) {
29771
+ const m = n.schema.marks.customLink;
29772
+ if (!m)
29773
+ return;
29774
+ const g = collectLinkMarksInRange(n, m, 0, n.doc.content.size), y = limitLinksForSinglePreviewMode(
29775
+ computeLinksToResolve(
29776
+ /* @__PURE__ */ new Map(),
29777
+ g,
29778
+ /* @__PURE__ */ new Map(),
29779
+ d,
29780
+ (b) => doesPreviewExist(u.editor, b)
29781
+ ),
29782
+ d,
29783
+ p
29784
+ );
29785
+ y.length !== 0 && queueMicrotask(() => {
29786
+ y.forEach((b) => {
29787
+ if (!(d.processedLinks.has(b.uid) || d.resolvingLinks.has(b.uid))) {
29788
+ if (doesPreviewExist(u.editor, b.uid)) {
29789
+ d.processedLinks.add(b.uid);
29790
+ return;
29791
+ }
29792
+ resolveLinkAndHandlePreview(b, u, p, d);
29793
+ }
29794
+ });
29795
+ });
29796
+ }
29755
29797
  function resolveLinkAndHandlePreview(n, u, d, p) {
29756
29798
  const { api: m, editor: g } = u, y = findByType(g?.getJSON(), "mediaGroup");
29757
29799
  if (!m || d && y.length >= 1) return;
@@ -29812,70 +29854,76 @@ function createLinkAutoResolvePlugin(n, u = !1) {
29812
29854
  }
29813
29855
  },
29814
29856
  appendTransaction: (p, m, g) => {
29815
- const y = g.schema.marks.customLink;
29816
- if (!y || !p.some((k) => k.docChanged))
29817
- return null;
29818
- const b = getChangedRange(m, g);
29857
+ const y = p.some(
29858
+ (N) => typeof N.getMeta == "function" && N.getMeta(LINK_AUTO_RESOLVE_REHYDRATE_META)
29859
+ ), b = g.schema.marks.customLink;
29819
29860
  if (!b)
29820
29861
  return null;
29821
29862
  const E = d.getState(g);
29822
29863
  if (!E)
29823
29864
  return null;
29824
- const T = u ? syncLinkHrefWithText(
29865
+ if (y)
29866
+ return queueRehydratedLinksResolution(g, n, E, u), null;
29867
+ if (!p.some((N) => N.docChanged))
29868
+ return null;
29869
+ const T = getChangedRange(m, g);
29870
+ if (!T)
29871
+ return null;
29872
+ const S = d.getState(g);
29873
+ if (!S)
29874
+ return null;
29875
+ const A = u ? syncLinkHrefWithText(
29825
29876
  g,
29826
- y,
29877
+ b,
29827
29878
  n.editor,
29828
29879
  u,
29829
- E,
29880
+ S,
29830
29881
  0,
29831
29882
  g.doc.content.size
29832
- ) : null, S = collectLinkMarksInRange(
29883
+ ) : null, _ = collectLinkMarksInRange(
29833
29884
  m,
29834
- y,
29835
- b.fromOld,
29836
- b.toOld
29837
- ), A = collectLinkMarksInRange(
29885
+ b,
29886
+ T.fromOld,
29887
+ T.toOld
29888
+ ), P = collectLinkMarksInRange(
29838
29889
  g,
29839
- y,
29840
- b.fromNew,
29841
- b.toNew
29842
- ), _ = n?.editor, { tr: P, newUids: C } = assignUidsToLinks(
29890
+ b,
29891
+ T.fromNew,
29892
+ T.toNew
29893
+ ), C = n?.editor, { tr: R, newUids: O } = assignUidsToLinks(
29843
29894
  g,
29844
- y,
29845
- b.fromNew,
29846
- b.toNew,
29847
- _
29848
- ), R = computeLinksToResolve(
29895
+ b,
29896
+ T.fromNew,
29897
+ T.toNew,
29898
+ C
29899
+ ), k = computeLinksToResolve(
29900
+ _,
29901
+ P,
29902
+ O,
29849
29903
  S,
29850
- A,
29851
- C,
29852
- E,
29853
- (k) => doesPreviewExist(n.editor, k)
29904
+ (N) => doesPreviewExist(n.editor, N)
29905
+ ), L = limitLinksForSinglePreviewMode(
29906
+ k,
29907
+ S,
29908
+ u
29854
29909
  );
29855
- let O = R;
29856
- if (u && R.length > 1) {
29857
- const k = R.reduce((L, N) => N.pos > L.pos ? N : L);
29858
- R.forEach((L) => {
29859
- L.uid !== k.uid && E.processedLinks.add(L.uid);
29860
- }), O = [k];
29861
- }
29862
- if (O.length > 0 ? queueMicrotask(() => {
29863
- O.forEach((k) => {
29864
- resolveLinkAndHandlePreview(k, n, u, E);
29910
+ if (L.length > 0 ? queueMicrotask(() => {
29911
+ L.forEach((N) => {
29912
+ resolveLinkAndHandlePreview(N, n, u, S);
29865
29913
  });
29866
- }) : R.length, T && P)
29914
+ }) : k.length, A && R)
29867
29915
  try {
29868
- return P.steps.forEach((k, L) => {
29869
- if (k && T) {
29870
- T.step(k);
29871
- const N = P.mapping.maps[L];
29872
- N && T.mapping.appendMap(N);
29916
+ return R.steps.forEach((N, I) => {
29917
+ if (N && A) {
29918
+ A.step(N);
29919
+ const j = R.mapping.maps[I];
29920
+ j && A.mapping.appendMap(j);
29873
29921
  }
29874
- }), T;
29922
+ }), A;
29875
29923
  } catch {
29876
- return T;
29924
+ return A;
29877
29925
  }
29878
- return T ?? P ?? null;
29926
+ return A ?? R ?? null;
29879
29927
  }
29880
29928
  });
29881
29929
  }
@@ -30047,7 +30095,8 @@ const hasMediaInEditor = (n, u) => {
30047
30095
  })), T;
30048
30096
  },
30049
30097
  updateLinkByUid: createUpdateMarkByUidCommand("customLink"),
30050
- deleteLinkByUid: createDeleteMarkByUidCommand("customLink")
30098
+ deleteLinkByUid: createDeleteMarkByUidCommand("customLink"),
30099
+ rehydrateLinkPreviews: () => ({ tr: n, dispatch: u }) => (u && u(n.setMeta(LINK_AUTO_RESOLVE_REHYDRATE_META, !0)), !0)
30051
30100
  };
30052
30101
  },
30053
30102
  addMarkView() {
@@ -30305,7 +30354,7 @@ function createDOMPurify() {
30305
30354
  const Te = d.createElement("template");
30306
30355
  Te.content && Te.content.ownerDocument && (d = Te.content.ownerDocument);
30307
30356
  }
30308
- let I, V = "";
30357
+ let I, j = "";
30309
30358
  const {
30310
30359
  implementation: D,
30311
30360
  createNodeIterator: W,
@@ -30324,7 +30373,7 @@ function createDOMPurify() {
30324
30373
  ARIA_ATTR: F,
30325
30374
  IS_SCRIPT_OR_DATA: H,
30326
30375
  ATTR_WHITESPACE: B,
30327
- CUSTOM_ELEMENT: j
30376
+ CUSTOM_ELEMENT: V
30328
30377
  } = EXPRESSIONS;
30329
30378
  let {
30330
30379
  IS_ALLOWED_URI: J
@@ -30392,9 +30441,9 @@ function createDOMPurify() {
30392
30441
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
30393
30442
  if (typeof ae.TRUSTED_TYPES_POLICY.createScriptURL != "function")
30394
30443
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
30395
- I = ae.TRUSTED_TYPES_POLICY, V = I.createHTML("");
30444
+ I = ae.TRUSTED_TYPES_POLICY, j = I.createHTML("");
30396
30445
  } else
30397
- I === void 0 && (I = _createTrustedTypesPolicy(P, m)), I !== null && typeof V == "string" && (V = I.createHTML(""));
30446
+ I === void 0 && (I = _createTrustedTypesPolicy(P, m)), I !== null && typeof j == "string" && (j = I.createHTML(""));
30398
30447
  freeze && freeze(ae), He = ae;
30399
30448
  }
30400
30449
  }, pt = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), at = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), ct = function(ae) {
@@ -30455,7 +30504,7 @@ function createDOMPurify() {
30455
30504
  if (!ge || !ge.documentElement) {
30456
30505
  ge = D.createDocument(xe, "template", null);
30457
30506
  try {
30458
- ge.documentElement.innerHTML = Fe ? V : Ye;
30507
+ ge.documentElement.innerHTML = Fe ? j : Ye;
30459
30508
  } catch {
30460
30509
  }
30461
30510
  }
@@ -30539,7 +30588,7 @@ function createDOMPurify() {
30539
30588
  }
30540
30589
  return !0;
30541
30590
  }, St = function(ae) {
30542
- return ae !== "annotation-xml" && stringMatch(ae, j);
30591
+ return ae !== "annotation-xml" && stringMatch(ae, V);
30543
30592
  }, Tt = function(ae) {
30544
30593
  dt(ee.beforeSanitizeAttributes, ae, null);
30545
30594
  const {
@@ -30637,7 +30686,7 @@ function createDOMPurify() {
30637
30686
  Te.indexOf("<") === -1)
30638
30687
  return I && Le ? I.createHTML(Te) : Te;
30639
30688
  if (ge = mt(Te), !ge)
30640
- return _e ? null : Le ? V : "";
30689
+ return _e ? null : Le ? j : "";
30641
30690
  }
30642
30691
  ge && Ae && ut(ge.firstChild);
30643
30692
  const Ze = vt($e ? Te : ge);
@@ -31342,7 +31391,7 @@ var toPaddingObject = function n(u, d) {
31342
31391
  function arrow(n) {
31343
31392
  var u, d = n.state, p = n.name, m = n.options, g = d.elements.arrow, y = d.modifiersData.popperOffsets, b = getBasePlacement$1(d.placement), E = getMainAxisFromPlacement(b), T = [left, right].indexOf(b) >= 0, S = T ? "height" : "width";
31344
31393
  if (!(!g || !y)) {
31345
- var A = toPaddingObject(m.padding, d), _ = getLayoutRect(g), P = E === "y" ? top : left, C = E === "y" ? bottom : right, R = d.rects.reference[S] + d.rects.reference[E] - y[E] - d.rects.popper[S], O = y[E] - d.rects.reference[E], k = getOffsetParent(g), L = k ? E === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, N = R / 2 - O / 2, I = A[P], V = L - _[S] - A[C], D = L / 2 - _[S] / 2 + N, W = within(I, D, V), $ = E;
31394
+ var A = toPaddingObject(m.padding, d), _ = getLayoutRect(g), P = E === "y" ? top : left, C = E === "y" ? bottom : right, R = d.rects.reference[S] + d.rects.reference[E] - y[E] - d.rects.popper[S], O = y[E] - d.rects.reference[E], k = getOffsetParent(g), L = k ? E === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, N = R / 2 - O / 2, I = A[P], j = L - _[S] - A[C], D = L / 2 - _[S] / 2 + N, W = within(I, D, j), $ = E;
31346
31395
  d.modifiersData[p] = (u = {}, u[$] = W, u.centerOffset = W - D, u);
31347
31396
  }
31348
31397
  }
@@ -31384,12 +31433,12 @@ function mapToStyles(n) {
31384
31433
  y: R
31385
31434
  };
31386
31435
  P = O.x, R = O.y;
31387
- var k = y.hasOwnProperty("x"), L = y.hasOwnProperty("y"), N = left, I = top, V = window;
31436
+ var k = y.hasOwnProperty("x"), L = y.hasOwnProperty("y"), N = left, I = top, j = window;
31388
31437
  if (T) {
31389
31438
  var D = getOffsetParent(d), W = "clientHeight", $ = "clientWidth";
31390
31439
  if (D === getWindow(d) && (D = getDocumentElement(d), getComputedStyle$1(D).position !== "static" && b === "absolute" && (W = "scrollHeight", $ = "scrollWidth")), D = D, m === top || (m === left || m === right) && g === end) {
31391
31440
  I = bottom;
31392
- var K = A && D === V && V.visualViewport ? V.visualViewport.height : (
31441
+ var K = A && D === j && j.visualViewport ? j.visualViewport.height : (
31393
31442
  // $FlowFixMe[prop-missing]
31394
31443
  D[W]
31395
31444
  );
@@ -31397,7 +31446,7 @@ function mapToStyles(n) {
31397
31446
  }
31398
31447
  if (m === left || (m === top || m === bottom) && g === end) {
31399
31448
  N = right;
31400
- var Z = A && D === V && V.visualViewport ? V.visualViewport.width : (
31449
+ var Z = A && D === j && j.visualViewport ? j.visualViewport.width : (
31401
31450
  // $FlowFixMe[prop-missing]
31402
31451
  D[$]
31403
31452
  );
@@ -31415,7 +31464,7 @@ function mapToStyles(n) {
31415
31464
  };
31416
31465
  if (P = q.x, R = q.y, E) {
31417
31466
  var Q;
31418
- return Object.assign({}, ee, (Q = {}, Q[I] = L ? "0" : "", Q[N] = k ? "0" : "", Q.transform = (V.devicePixelRatio || 1) <= 1 ? "translate(" + P + "px, " + R + "px)" : "translate3d(" + P + "px, " + R + "px, 0)", Q));
31467
+ return Object.assign({}, ee, (Q = {}, Q[I] = L ? "0" : "", Q[N] = k ? "0" : "", Q.transform = (j.devicePixelRatio || 1) <= 1 ? "translate(" + P + "px, " + R + "px)" : "translate3d(" + P + "px, " + R + "px, 0)", Q));
31419
31468
  }
31420
31469
  return Object.assign({}, ee, (u = {}, u[I] = L ? R + "px" : "", u[N] = k ? P + "px" : "", u.transform = "", u));
31421
31470
  }
@@ -31617,15 +31666,15 @@ function computeOffsets(n) {
31617
31666
  }
31618
31667
  function detectOverflow(n, u) {
31619
31668
  u === void 0 && (u = {});
31620
- var d = u, p = d.placement, m = p === void 0 ? n.placement : p, g = d.strategy, y = g === void 0 ? n.strategy : g, b = d.boundary, E = b === void 0 ? clippingParents : b, T = d.rootBoundary, S = T === void 0 ? viewport : T, A = d.elementContext, _ = A === void 0 ? popper : A, P = d.altBoundary, C = P === void 0 ? !1 : P, R = d.padding, O = R === void 0 ? 0 : R, k = mergePaddingObject(typeof O != "number" ? O : expandToHashMap(O, basePlacements)), L = _ === popper ? reference : popper, N = n.rects.popper, I = n.elements[C ? L : _], V = getClippingRect(isElement$1(I) ? I : I.contextElement || getDocumentElement(n.elements.popper), E, S, y), D = getBoundingClientRect(n.elements.reference), W = computeOffsets({
31669
+ var d = u, p = d.placement, m = p === void 0 ? n.placement : p, g = d.strategy, y = g === void 0 ? n.strategy : g, b = d.boundary, E = b === void 0 ? clippingParents : b, T = d.rootBoundary, S = T === void 0 ? viewport : T, A = d.elementContext, _ = A === void 0 ? popper : A, P = d.altBoundary, C = P === void 0 ? !1 : P, R = d.padding, O = R === void 0 ? 0 : R, k = mergePaddingObject(typeof O != "number" ? O : expandToHashMap(O, basePlacements)), L = _ === popper ? reference : popper, N = n.rects.popper, I = n.elements[C ? L : _], j = getClippingRect(isElement$1(I) ? I : I.contextElement || getDocumentElement(n.elements.popper), E, S, y), D = getBoundingClientRect(n.elements.reference), W = computeOffsets({
31621
31670
  reference: D,
31622
31671
  element: N,
31623
31672
  placement: m
31624
31673
  }), $ = rectToClientRect(Object.assign({}, N, W)), K = _ === popper ? $ : D, Z = {
31625
- top: V.top - K.top + k.top,
31626
- bottom: K.bottom - V.bottom + k.bottom,
31627
- left: V.left - K.left + k.left,
31628
- right: K.right - V.right + k.right
31674
+ top: j.top - K.top + k.top,
31675
+ bottom: K.bottom - j.bottom + k.bottom,
31676
+ left: j.left - K.left + k.left,
31677
+ right: K.right - j.right + k.right
31629
31678
  }, ee = n.modifiersData.offset;
31630
31679
  if (_ === popper && ee) {
31631
31680
  var q = ee[m];
@@ -31674,7 +31723,7 @@ function flip(n) {
31674
31723
  flipVariations: C,
31675
31724
  allowedAutoPlacements: R
31676
31725
  }) : ne);
31677
- }, []), V = u.rects.reference, D = u.rects.popper, W = /* @__PURE__ */ new Map(), $ = !0, K = I[0], Z = 0; Z < I.length; Z++) {
31726
+ }, []), j = u.rects.reference, D = u.rects.popper, W = /* @__PURE__ */ new Map(), $ = !0, K = I[0], Z = 0; Z < I.length; Z++) {
31678
31727
  var ee = I[Z], q = getBasePlacement$1(ee), Q = getVariation(ee) === start, Y = [top, bottom].indexOf(q) >= 0, te = Y ? "width" : "height", F = detectOverflow(u, {
31679
31728
  placement: ee,
31680
31729
  boundary: S,
@@ -31682,15 +31731,15 @@ function flip(n) {
31682
31731
  altBoundary: _,
31683
31732
  padding: T
31684
31733
  }), H = Y ? Q ? right : left : Q ? bottom : top;
31685
- V[te] > D[te] && (H = getOppositePlacement(H));
31686
- var B = getOppositePlacement(H), j = [];
31687
- if (g && j.push(F[q] <= 0), b && j.push(F[H] <= 0, F[B] <= 0), j.every(function(se) {
31734
+ j[te] > D[te] && (H = getOppositePlacement(H));
31735
+ var B = getOppositePlacement(H), V = [];
31736
+ if (g && V.push(F[q] <= 0), b && V.push(F[H] <= 0, F[B] <= 0), V.every(function(se) {
31688
31737
  return se;
31689
31738
  })) {
31690
31739
  K = ee, $ = !1;
31691
31740
  break;
31692
31741
  }
31693
- W.set(ee, j);
31742
+ W.set(ee, V);
31694
31743
  }
31695
31744
  if ($)
31696
31745
  for (var J = C ? 3 : 1, re = function(ne) {
@@ -31808,7 +31857,7 @@ function preventOverflow(n) {
31808
31857
  rootBoundary: T,
31809
31858
  padding: A,
31810
31859
  altBoundary: S
31811
- }), k = getBasePlacement$1(u.placement), L = getVariation(u.placement), N = !L, I = getMainAxisFromPlacement(k), V = getAltAxis(I), D = u.modifiersData.popperOffsets, W = u.rects.reference, $ = u.rects.popper, K = typeof R == "function" ? R(Object.assign({}, u.rects, {
31860
+ }), k = getBasePlacement$1(u.placement), L = getVariation(u.placement), N = !L, I = getMainAxisFromPlacement(k), j = getAltAxis(I), D = u.modifiersData.popperOffsets, W = u.rects.reference, $ = u.rects.popper, K = typeof R == "function" ? R(Object.assign({}, u.rects, {
31812
31861
  placement: u.placement
31813
31862
  })) : R, Z = typeof K == "number" ? {
31814
31863
  mainAxis: K,
@@ -31822,15 +31871,15 @@ function preventOverflow(n) {
31822
31871
  };
31823
31872
  if (D) {
31824
31873
  if (g) {
31825
- var Q, Y = I === "y" ? top : left, te = I === "y" ? bottom : right, F = I === "y" ? "height" : "width", H = D[I], B = H + O[Y], j = H - O[te], J = P ? -$[F] / 2 : 0, re = L === start ? W[F] : $[F], ie = L === start ? -$[F] : -W[F], oe = u.elements.arrow, se = P && oe ? getLayoutRect(oe) : {
31874
+ var Q, Y = I === "y" ? top : left, te = I === "y" ? bottom : right, F = I === "y" ? "height" : "width", H = D[I], B = H + O[Y], V = H - O[te], J = P ? -$[F] / 2 : 0, re = L === start ? W[F] : $[F], ie = L === start ? -$[F] : -W[F], oe = u.elements.arrow, se = P && oe ? getLayoutRect(oe) : {
31826
31875
  width: 0,
31827
31876
  height: 0
31828
- }, ne = u.modifiersData["arrow#persistent"] ? u.modifiersData["arrow#persistent"].padding : getFreshSideObject(), le = ne[Y], de = ne[te], ue = within(0, W[F], se[F]), pe = N ? W[F] / 2 - J - ue - le - Z.mainAxis : re - ue - le - Z.mainAxis, he = N ? -W[F] / 2 + J + ue + de + Z.mainAxis : ie + ue + de + Z.mainAxis, me = u.elements.arrow && getOffsetParent(u.elements.arrow), ye = me ? I === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, be = (Q = ee?.[I]) != null ? Q : 0, fe = H + pe - be - ye, Se = H + he - be, Oe = within(P ? min(B, fe) : B, H, P ? max(j, Se) : j);
31877
+ }, ne = u.modifiersData["arrow#persistent"] ? u.modifiersData["arrow#persistent"].padding : getFreshSideObject(), le = ne[Y], de = ne[te], ue = within(0, W[F], se[F]), pe = N ? W[F] / 2 - J - ue - le - Z.mainAxis : re - ue - le - Z.mainAxis, he = N ? -W[F] / 2 + J + ue + de + Z.mainAxis : ie + ue + de + Z.mainAxis, me = u.elements.arrow && getOffsetParent(u.elements.arrow), ye = me ? I === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, be = (Q = ee?.[I]) != null ? Q : 0, fe = H + pe - be - ye, Se = H + he - be, Oe = within(P ? min(B, fe) : B, H, P ? max(V, Se) : V);
31829
31878
  D[I] = Oe, q[I] = Oe - H;
31830
31879
  }
31831
31880
  if (b) {
31832
- var Ae, _e = I === "x" ? top : left, Re = I === "x" ? bottom : right, Le = D[V], Ce = V === "y" ? "height" : "width", Ie = Le + O[_e], Me = Le - O[Re], Pe = [top, left].indexOf(k) !== -1, $e = (Ae = ee?.[V]) != null ? Ae : 0, De = Pe ? Ie : Le - W[Ce] - $[Ce] - $e + Z.altAxis, Ue = Pe ? Le + W[Ce] + $[Ce] - $e - Z.altAxis : Me, Be = P && Pe ? withinMaxClamp(De, Le, Ue) : within(P ? De : Ie, Le, P ? Ue : Me);
31833
- D[V] = Be, q[V] = Be - Le;
31881
+ var Ae, _e = I === "x" ? top : left, Re = I === "x" ? bottom : right, Le = D[j], Ce = j === "y" ? "height" : "width", Ie = Le + O[_e], Me = Le - O[Re], Pe = [top, left].indexOf(k) !== -1, $e = (Ae = ee?.[j]) != null ? Ae : 0, De = Pe ? Ie : Le - W[Ce] - $[Ce] - $e + Z.altAxis, Ue = Pe ? Le + W[Ce] + $[Ce] - $e - Z.altAxis : Me, Be = P && Pe ? withinMaxClamp(De, Le, Ue) : within(P ? De : Ie, Le, P ? Ue : Me);
31882
+ D[j] = Be, q[j] = Be - Le;
31834
31883
  }
31835
31884
  u.modifiersData[p] = q;
31836
31885
  }
@@ -31982,7 +32031,7 @@ function popperGenerator(n) {
31982
32031
  S.reset = !1, I = -1;
31983
32032
  continue;
31984
32033
  }
31985
- var V = S.orderedModifiers[I], D = V.fn, W = V.options, $ = W === void 0 ? {} : W, K = V.name;
32034
+ var j = S.orderedModifiers[I], D = j.fn, W = j.options, $ = W === void 0 ? {} : W, K = j.name;
31986
32035
  typeof D == "function" && (S = D({
31987
32036
  state: S,
31988
32037
  options: $,
@@ -32013,14 +32062,14 @@ function popperGenerator(n) {
32013
32062
  S.orderedModifiers.forEach(function(O) {
32014
32063
  var k = O.name, L = O.options, N = L === void 0 ? {} : L, I = O.effect;
32015
32064
  if (typeof I == "function") {
32016
- var V = I({
32065
+ var j = I({
32017
32066
  state: S,
32018
32067
  name: k,
32019
32068
  instance: P,
32020
32069
  options: N
32021
32070
  }), D = function() {
32022
32071
  };
32023
- A.push(V || D);
32072
+ A.push(j || D);
32024
32073
  }
32025
32074
  });
32026
32075
  }
@@ -32431,7 +32480,7 @@ function createTippy(n, u) {
32431
32480
  };
32432
32481
  if (!d.render)
32433
32482
  return process.env.NODE_ENV !== "production" && errorWhen(!0, "render() function has not been supplied."), I;
32434
- var V = d.render(I), D = V.popper, W = V.onUpdate;
32483
+ var j = d.render(I), D = j.popper, W = j.onUpdate;
32435
32484
  D.setAttribute("data-tippy-root", ""), D.id = "tippy-" + I.id, I.popper = D, n._tippy = I, D._tippy = I;
32436
32485
  var $ = L.map(function(ce) {
32437
32486
  return ce.fn(I);
@@ -32476,7 +32525,7 @@ function createTippy(n, u) {
32476
32525
  (Fe = I.props)[ce].apply(Fe, ve);
32477
32526
  }
32478
32527
  }
32479
- function j() {
32528
+ function V() {
32480
32529
  var ce = I.props.aria;
32481
32530
  if (ce.content) {
32482
32531
  var ve = "aria-" + ce.content, xe = D.id, Fe = normalizeToArray(I.props.triggerTarget || n);
@@ -32765,7 +32814,7 @@ function createTippy(n, u) {
32765
32814
  var we = te(), Ve = we.box, ke = we.content;
32766
32815
  setTransitionDuration([Ve, ke], Ne), setVisibilityState([Ve, ke], "visible");
32767
32816
  }
32768
- j(), J(), pushIfUnique(mountedInstances, I), (We = I.popperInstance) == null || We.forceUpdate(), B("onMount", [I]), I.props.animation && q() && ue(Ne, function() {
32817
+ V(), J(), pushIfUnique(mountedInstances, I), (We = I.popperInstance) == null || We.forceUpdate(), B("onMount", [I]), I.props.animation && q() && ue(Ne, function() {
32769
32818
  I.state.isShown = !0, B("onShown", [I]);
32770
32819
  });
32771
32820
  }
@@ -32780,7 +32829,7 @@ function createTippy(n, u) {
32780
32829
  var Ne = te(), ze = Ne.box, Ge = Ne.content;
32781
32830
  I.props.animation && (setTransitionDuration([ze, Ge], Fe), setVisibilityState([ze, Ge], "hidden"));
32782
32831
  }
32783
- j(), J(), I.props.animation ? q() && de(Fe, I.unmount) : I.unmount();
32832
+ V(), J(), I.props.animation ? q() && de(Fe, I.unmount) : I.unmount();
32784
32833
  }
32785
32834
  }
32786
32835
  function Je(ce) {
@@ -33910,7 +33959,7 @@ const configureMentionExtension = (n, u, d, p) => {
33910
33959
  return `${y?.char ?? "@"}${g.attrs.label ?? g.attrs.id}`;
33911
33960
  },
33912
33961
  renderHTML({ node: g, suggestion: y, isFocused: b }) {
33913
- const E = y?.char ?? "@", T = g?.attrs?.avatar, S = g?.attrs?.type, A = g?.attrs?.from, _ = g?.attrs?.inThisThread, P = g?.attrs?.isCrossExposureEnable, C = g?.attrs?.matchStartPosition, R = g?.attrs?.selectId, O = g.attrs.label ?? g.attrs.id, k = g.attrs.id, L = g?.attrs?.name, N = isReactNativeWebView(), V = {
33962
+ const E = y?.char ?? "@", T = g?.attrs?.avatar, S = g?.attrs?.type, A = g?.attrs?.from, _ = g?.attrs?.inThisThread, P = g?.attrs?.isCrossExposureEnable, C = g?.attrs?.matchStartPosition, R = g?.attrs?.selectId, O = g.attrs.label ?? g.attrs.id, k = g.attrs.id, L = g?.attrs?.name, N = isReactNativeWebView(), j = {
33914
33963
  "data-type": "mention",
33915
33964
  "data-id": k,
33916
33965
  "data-label": O,
@@ -33933,7 +33982,7 @@ const configureMentionExtension = (n, u, d, p) => {
33933
33982
  return [
33934
33983
  "span",
33935
33984
  {
33936
- ...V,
33985
+ ...j,
33937
33986
  onclick: W
33938
33987
  },
33939
33988
  `${E}${O}`
@@ -33943,7 +33992,7 @@ const configureMentionExtension = (n, u, d, p) => {
33943
33992
  return [
33944
33993
  "a",
33945
33994
  {
33946
- ...V,
33995
+ ...j,
33947
33996
  ...b ? {} : { href: D, target: "_blank" },
33948
33997
  "data-mention-link": "true"
33949
33998
  },
@@ -34101,7 +34150,7 @@ const configureMentionExtension = (n, u, d, p) => {
34101
34150
  return "unknown";
34102
34151
  }
34103
34152
  }, [m, g]);
34104
- return p ? /* @__PURE__ */ jsx(NodeViewWrapper, { children: /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-24 flex items-center justify-center rounded-lg", children: /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: b("fetchingMetadataKey") }) }) }) : m ? /* @__PURE__ */ jsx(NodeViewWrapper, { contentEditable: !1, "data-drag-handle": !0, children: y === LinkPreviewType.Compact ? /* @__PURE__ */ jsx(
34153
+ return p ? /* @__PURE__ */ jsx(NodeViewWrapper, { children: /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-24 my-4 flex items-center justify-center rounded-lg", children: /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: b("fetchingMetadataKey") }) }) }) : m ? /* @__PURE__ */ jsx(NodeViewWrapper, { contentEditable: !1, "data-drag-handle": !0, children: y === LinkPreviewType.Compact ? /* @__PURE__ */ jsx(
34105
34154
  LinkPreviewCompact,
34106
34155
  {
34107
34156
  ...n.attrs,
@@ -34456,13 +34505,13 @@ const LinkPreview = Node$1.create({
34456
34505
  C.type.name === "mediaGroup" && (_ = R, P = C);
34457
34506
  }), _ !== null && P) {
34458
34507
  const C = P.content.size;
34459
- [...A].sort((V, D) => D.pos - V.pos).forEach(({ pos: V, size: D }) => {
34460
- g.delete(V, V + D);
34508
+ [...A].sort((j, D) => D.pos - j.pos).forEach(({ pos: j, size: D }) => {
34509
+ g.delete(j, j + D);
34461
34510
  });
34462
- const k = A.filter((V) => V.pos < _).reduce((V, D) => V + D.size, 0), N = _ - k + 1 + C;
34511
+ const k = A.filter((j) => j.pos < _).reduce((j, D) => j + D.size, 0), N = _ - k + 1 + C;
34463
34512
  let I = 0;
34464
- A.forEach(({ node: V }) => {
34465
- g.insert(N + I, V), I += V.nodeSize;
34513
+ A.forEach(({ node: j }) => {
34514
+ g.insert(N + I, j), I += j.nodeSize;
34466
34515
  }), y = !0;
34467
34516
  } else {
34468
34517
  if (!p.schema.nodes.mediaGroup)
@@ -34716,7 +34765,7 @@ const getStarterKitConfig = ({
34716
34765
  const R = useMemo(() => !!A(n), [n, A]), O = useEditor(
34717
34766
  {
34718
34767
  extensions: getExtensions({ editorType: n, api: T, store: S, user: m }),
34719
- content: n === EditorTypes.Poll ? A(n) ?? "" : "",
34768
+ content: A(n) ?? "",
34720
34769
  editorProps: getEditorProps(),
34721
34770
  onCreate: ({ editor: D }) => {
34722
34771
  S.getState().setEditor(D), n === EditorTypes.Blog && D?.chain()?.focus("end")?.run(), n === EditorTypes.Media && D?.chain()?.focus("end")?.run(), n === EditorTypes.Poll && !R && initializePollEditor(D), n === EditorTypes.Poll && R && D?.chain()?.focus("end")?.run();
@@ -34746,7 +34795,9 @@ const getStarterKitConfig = ({
34746
34795
  let D;
34747
34796
  if (!b || !O || !O?.view || n === EditorTypes.Poll) return;
34748
34797
  const W = A(n);
34749
- return W && O?.isEditable && (D = setTimeout(() => O.commands.setContent(W), 0)), () => {
34798
+ return W && O?.isEditable && (D = setTimeout(() => {
34799
+ O.commands.setContent(W), O.commands.rehydrateLinkPreviews();
34800
+ }, 0)), () => {
34750
34801
  D && clearTimeout(D);
34751
34802
  };
34752
34803
  }, [O, n, u, A, b]);
@@ -34756,7 +34807,7 @@ const getStarterKitConfig = ({
34756
34807
  O && !O.isDestroyed && _(n, O);
34757
34808
  }, [O, n, _]), I = useCallback(() => {
34758
34809
  C.current = !0;
34759
- }, []), V = useCallback(() => {
34810
+ }, []), j = useCallback(() => {
34760
34811
  O && !O.isDestroyed && O?.commands?.focus("end");
34761
34812
  }, [O]);
34762
34813
  return {
@@ -34767,7 +34818,7 @@ const getStarterKitConfig = ({
34767
34818
  saveBeforeSwitch: L,
34768
34819
  saveDraft: N,
34769
34820
  discardDraft: I,
34770
- keepEditing: V
34821
+ keepEditing: j
34771
34822
  };
34772
34823
  }, getEditorData = (n) => ({
34773
34824
  html: n?.getHTML(),
@@ -34872,13 +34923,13 @@ const getStarterKitConfig = ({
34872
34923
  }) => {
34873
34924
  const [A, _] = useState(!1), [P, C] = useState(!0), [R, O] = useState(null), { trackPublish: k } = useAnalyticsTracking(), { t: L } = usePostBuilder(), N = useStore(T, (Y) => Y.groupId) ?? void 0, { clearContent: I } = usePersistence(S, N);
34874
34925
  useHostAnalyticsBridge(), useEditorTracking({ editor: n, editorType: d });
34875
- const V = useRef(null), [D, W] = useState(), $ = useCallback(
34926
+ const j = useRef(null), [D, W] = useState(), $ = useCallback(
34876
34927
  (Y) => {
34877
34928
  if (n && hasActiveUploads(n)) {
34878
34929
  O(Y);
34879
34930
  return;
34880
34931
  }
34881
- V.current && W(V.current.offsetHeight), p(Y);
34932
+ j.current && W(j.current.offsetHeight), p(Y);
34882
34933
  },
34883
34934
  [n, p]
34884
34935
  );
@@ -34910,10 +34961,10 @@ const getStarterKitConfig = ({
34910
34961
  }, Q = useCallback(
34911
34962
  (Y) => {
34912
34963
  if (!n) return;
34913
- const te = n?.getHTML(), F = n?.getJSON(), H = n?.getText(), { selectedGroupId: B, groupId: j } = T.getState(), re = generateCreatePostPayload(d, {
34964
+ const te = n?.getHTML(), F = n?.getJSON(), H = n?.getText(), { selectedGroupId: B, groupId: V } = T.getState(), re = generateCreatePostPayload(d, {
34914
34965
  editor: n,
34915
34966
  sendCrossMention: Y,
34916
- groupId: B || j || void 0
34967
+ groupId: B || V || void 0
34917
34968
  }), ie = re?.type === NewPostType.NEW_POST_POLL;
34918
34969
  if (re?.error) {
34919
34970
  toast.error(re.error);
@@ -34939,7 +34990,7 @@ const getStarterKitConfig = ({
34939
34990
  postId: re?.postId,
34940
34991
  postType: re?.type,
34941
34992
  ...oe
34942
- }), y?.({ payload: re, html: te, json: F, text: H }), g && (I(), n?.chain()?.focus()?.clearContent()?.run());
34993
+ }), y?.({ payload: re, html: te, json: F, text: H }), g && (I(), d === EditorTypes.Poll ? n?.chain()?.focus()?.setContent({ type: "doc", content: [{ type: "paragraph" }, { type: "poll" }] })?.run() : n?.chain()?.focus()?.clearContent()?.run());
34943
34994
  },
34944
34995
  [I, g, n, d, y, T, k]
34945
34996
  );
@@ -34958,7 +35009,7 @@ const getStarterKitConfig = ({
34958
35009
  }, [n, Q]), /* @__PURE__ */ jsxs(
34959
35010
  "div",
34960
35011
  {
34961
- ref: V,
35012
+ ref: j,
34962
35013
  style: {
34963
35014
  minHeight: D ? `${D}px` : void 0
34964
35015
  },
@@ -35029,7 +35080,7 @@ const getStarterKitConfig = ({
35029
35080
  {
35030
35081
  variant: "destructive",
35031
35082
  onClick: () => {
35032
- R && (n.commands.deleteAllUploadingMedia(), V.current && W(V.current.offsetHeight), p(R), O(null));
35083
+ R && (n.commands.deleteAllUploadingMedia(), j.current && W(j.current.offsetHeight), p(R), O(null));
35033
35084
  },
35034
35085
  children: L("continueKey")
35035
35086
  }
@@ -35158,7 +35209,7 @@ const PostBuilderEditor = ({
35158
35209
  onReady: P,
35159
35210
  disableNavigationWarning: C
35160
35211
  }) => {
35161
- const [R, O] = useState(EditorTypes.Media), [k, L] = useState(""), N = useAnalyticsStore((B) => B.createSession), I = useAnalyticsStore((B) => B.deleteSession), V = useAnalyticsStore((B) => B.trackEditorFocus), {
35212
+ const [R, O] = useState(EditorTypes.Media), [k, L] = useState(""), N = useAnalyticsStore((B) => B.createSession), I = useAnalyticsStore((B) => B.deleteSession), j = useAnalyticsStore((B) => B.trackEditorFocus), {
35162
35213
  editor: D,
35163
35214
  actions: W,
35164
35215
  store: $,
@@ -35187,10 +35238,10 @@ const PostBuilderEditor = ({
35187
35238
  I(B);
35188
35239
  };
35189
35240
  }, [N, I, y, n]), useEffect(() => {
35190
- const B = (j) => {
35241
+ const B = (V) => {
35191
35242
  if (!D) return;
35192
- const { newSessionId: J } = j.detail;
35193
- L(J), D.isFocused && V(J);
35243
+ const { newSessionId: J } = V.detail;
35244
+ L(J), D.isFocused && j(J);
35194
35245
  };
35195
35246
  return window.addEventListener(
35196
35247
  PostBuilderEvents.POST_SESSION_ROTATED,
@@ -35201,7 +35252,7 @@ const PostBuilderEditor = ({
35201
35252
  B
35202
35253
  );
35203
35254
  };
35204
- }, [D, V]), useEffect(() => {
35255
+ }, [D, j]), useEffect(() => {
35205
35256
  if (!D || !k) return;
35206
35257
  const B = requestAnimationFrame(() => {
35207
35258
  D.view?.dom && (D.view.dom.setAttribute("data-session-id", k), D.view.dom.setAttribute("data-editor-type", R));
@@ -35212,13 +35263,13 @@ const PostBuilderEditor = ({
35212
35263
  useEffect(() => {
35213
35264
  if (!D || !_) return;
35214
35265
  const B = () => {
35215
- const j = !D.isEmpty;
35216
- j !== F.current && (F.current = j, _(j));
35266
+ const V = R === EditorTypes.Poll ? !isPollEmpty(D.getJSON()) : !D.isEmpty;
35267
+ V !== F.current && (F.current = V, _(V));
35217
35268
  };
35218
35269
  return D.on("update", B), () => {
35219
35270
  D.off("update", B);
35220
35271
  };
35221
- }, [D, _]);
35272
+ }, [D, _, R]);
35222
35273
  const H = useRef(!1);
35223
35274
  return useEffect(() => {
35224
35275
  !D || H.current || !P || (H.current = !0, P({ saveDraft: q, discardDraft: Q, keepEditing: ee }));