@8btc/wujie-ppt 0.0.13-beta → 0.0.15-beta

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.
@@ -4731,7 +4731,11 @@ const yv = {
4731
4731
  );
4732
4732
  }, rb = "_elementOutlineSvg_1jkv6_1", nb = {
4733
4733
  elementOutlineSvg: rb
4734
- }, xc = ({ width: t, height: e, outline: r }) => {
4734
+ }, xc = ({
4735
+ width: t,
4736
+ height: e,
4737
+ outline: r
4738
+ }) => {
4735
4739
  const { outlineWidth: n, outlineColor: i, strokeDashArray: a } = io(r);
4736
4740
  return r ? /* @__PURE__ */ A.createElement(
4737
4741
  "svg",
@@ -32057,9 +32061,14 @@ const W3 = ({
32057
32061
  for (t = MB(t); u < t.length; )
32058
32062
  r = t.charCodeAt(u++), n = t.charCodeAt(u++), i = t.charCodeAt(u++), a = r >> 2, o = (r & 3) << 4 | n >> 4, s = (n & 15) << 2 | i >> 6, l = i & 63, isNaN(n) ? s = l = 64 : isNaN(i) && (l = 64), e = e + iu.charAt(a) + iu.charAt(o) + iu.charAt(s) + iu.charAt(l);
32059
32063
  return e;
32064
+ }, AB = (t) => {
32065
+ if (typeof t != "string") return t;
32066
+ let e = t;
32067
+ const r = /fill\s*[=:]\s*["']?#([0-9a-fA-F]{8})["']?/g, n = /fill\s*[=:]\s*["']?rgba\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*[0-9.]+\s*\)["']?/g;
32068
+ return e = e.replace(r, (i) => i.includes(":") ? "fill: transparent" : 'fill="transparent"'), e = e.replace(n, (i) => i.includes(":") ? "fill: transparent" : 'fill="transparent"'), e;
32060
32069
  }, m2 = (t) => {
32061
- const r = new XMLSerializer().serializeToString(t);
32062
- return CB + DB(r);
32070
+ let r = new XMLSerializer().serializeToString(t);
32071
+ return r = AB(r), CB + DB(r);
32063
32072
  }, le = (t) => {
32064
32073
  if (!t)
32065
32074
  return {
@@ -32071,13 +32080,13 @@ const W3 = ({
32071
32080
  alpha: r,
32072
32081
  color: n
32073
32082
  };
32074
- }, AB = (t) => {
32083
+ }, PB = (t) => {
32075
32084
  const e = /^data:image\/svg\+xml;base64,/.test(t), r = /\.svg$/.test(t);
32076
32085
  return e || r;
32077
32086
  }, Ih = (t) => {
32078
32087
  const e = /^data:image\/[^;]+;base64,/;
32079
32088
  return t.match(e) !== null;
32080
- }, au = 16, PB = () => {
32089
+ }, au = 16, kB = () => {
32081
32090
  const { viewportRatio: t, viewportSize: e, theme: r, slides: n, title: i } = Rt(), a = nt(() => 96 * (e / 960), [e]), o = nt(() => 96 / 72 * (e / 960), [e]), s = (p) => {
32082
32091
  const v = EB(p);
32083
32092
  let g = !1, m = 0;
@@ -32224,7 +32233,7 @@ const W3 = ({
32224
32233
  if (H.background) {
32225
32234
  const D = H.background;
32226
32235
  if (D.type === "image" && D.image)
32227
- AB(D.image.src) ? F.addImage({
32236
+ PB(D.image.src) ? F.addImage({
32228
32237
  data: D.image.src,
32229
32238
  x: 0,
32230
32239
  y: 0,
@@ -32307,7 +32316,7 @@ const W3 = ({
32307
32316
  const G = document.querySelector(
32308
32317
  `.thumbnail-list .base-element-${D.id} svg`
32309
32318
  );
32310
- if (G.clientWidth < 1 || G.clientHeight < 1) continue;
32319
+ if (!G || G.clientWidth < 1 || G.clientHeight < 1) continue;
32311
32320
  const Q = {
32312
32321
  data: m2(G),
32313
32322
  x: D.left / a,
@@ -32539,37 +32548,44 @@ const W3 = ({
32539
32548
  S.write({ outputType: "blob" }).then(b).catch(_);
32540
32549
  }, 200);
32541
32550
  } };
32542
- }, kB = ({ initialSlidesData: t, onDataUpdate: e, renderPageExtra: r }, n) => {
32543
- const { setSlides: i, setTheme: a, setViewportRatio: o, setViewportSize: s } = Rt.getState(), { applyThemeToAllSlides: l, applyPresetTheme: u, applyFontToAllSlides: c } = uB(), { exportPPTX: f } = PB();
32551
+ }, NB = ({ initialSlidesData: t, onDataUpdate: e, renderPageExtra: r }, n) => {
32552
+ const {
32553
+ slides: i,
32554
+ theme: a,
32555
+ setSlides: o,
32556
+ setTheme: s,
32557
+ setViewportRatio: l,
32558
+ setViewportSize: u
32559
+ } = Rt.getState(), { applyThemeToAllSlides: c, applyPresetTheme: f, applyFontToAllSlides: d } = uB(), { exportPPTX: h } = kB();
32544
32560
  return Lt(() => {
32545
32561
  if (t) {
32546
- const { slides: d, theme: h, viewportRatio: p, viewportSize: v } = lB(t);
32547
- i(d), a(h), o(p), s(v);
32562
+ const { slides: p, theme: v, viewportRatio: g, viewportSize: m } = lB(t);
32563
+ o(p), s(v), l(g), u(m);
32548
32564
  }
32549
32565
  }, []), Lt(() => {
32550
- const d = Rt.subscribe((h) => {
32551
- const p = {
32552
- slides: h.slides,
32553
- title: h.title,
32554
- theme: h.theme,
32555
- viewportRatio: h.viewportRatio
32566
+ const p = Rt.subscribe((v, g) => {
32567
+ const m = {
32568
+ slides: v.slides,
32569
+ title: v.title,
32570
+ theme: v.theme,
32571
+ viewportRatio: v.viewportRatio
32556
32572
  };
32557
- e(p);
32573
+ (g.slides !== v.slides || g.theme !== v.theme) && e(m);
32558
32574
  });
32559
- return () => d();
32575
+ return () => p();
32560
32576
  }, [e]), Ed(n, () => ({
32561
- applyThemeToAllSlides: l,
32562
- applyPresetTheme: u,
32563
- applyFontToAllSlides: c,
32564
- exportPPTX: f
32577
+ applyThemeToAllSlides: c,
32578
+ applyPresetTheme: f,
32579
+ applyFontToAllSlides: d,
32580
+ exportPPTX: h
32565
32581
  })), /* @__PURE__ */ A.createElement("div", { style: { width: "100%", height: "100%", position: "relative" } }, /* @__PURE__ */ A.createElement(iB, { renderPageExtra: r }));
32566
- }, BV = yc(kB), NB = "_thumbnails_1awpq_1", OB = "_thumbnailList_1awpq_6", RB = "_thumbnailItem_1awpq_11", IB = "_thumbnail_1awpq_1", BB = "_active_1awpq_19", $B = "_label_1awpq_25", Hn = {
32567
- thumbnails: NB,
32568
- thumbnailList: OB,
32569
- thumbnailItem: RB,
32570
- thumbnail: IB,
32571
- active: BB,
32572
- label: $B
32582
+ }, IV = yc(NB), OB = "_thumbnails_1awpq_1", RB = "_thumbnailList_1awpq_6", IB = "_thumbnailItem_1awpq_11", BB = "_thumbnail_1awpq_1", $B = "_active_1awpq_19", VB = "_label_1awpq_25", Hn = {
32583
+ thumbnails: OB,
32584
+ thumbnailList: RB,
32585
+ thumbnailItem: IB,
32586
+ thumbnail: BB,
32587
+ active: $B,
32588
+ label: VB
32573
32589
  };
32574
32590
  var Xp = ol(), Nt = (t) => al(t, Xp), Up = ol();
32575
32591
  Nt.write = (t) => al(t, Up);
@@ -32632,7 +32648,7 @@ function al(t, e) {
32632
32648
  function e7() {
32633
32649
  qn < 0 && (qn = 0, Nt.frameLoop !== "demand" && qp(r7));
32634
32650
  }
32635
- function VB() {
32651
+ function zB() {
32636
32652
  qn = -1;
32637
32653
  }
32638
32654
  function r7() {
@@ -32643,7 +32659,7 @@ function n7() {
32643
32659
  qn = Nt.now();
32644
32660
  const e = t7(qn);
32645
32661
  if (e && (i7(Ba.splice(0, e), (r) => r.handler()), jn -= e), !jn) {
32646
- VB();
32662
+ zB();
32647
32663
  return;
32648
32664
  }
32649
32665
  qc.flush(), Xp.flush(t ? Math.min(64, qn - t) : 16.667), Yp.flush(), Up.flush(), Zp.flush();
@@ -32671,12 +32687,12 @@ function i7(t, e) {
32671
32687
  }
32672
32688
  });
32673
32689
  }
32674
- var zB = Object.defineProperty, FB = (t, e) => {
32690
+ var FB = Object.defineProperty, HB = (t, e) => {
32675
32691
  for (var r in e)
32676
- zB(t, r, { get: e[r], enumerable: !0 });
32692
+ FB(t, r, { get: e[r], enumerable: !0 });
32677
32693
  }, $r = {};
32678
- FB($r, {
32679
- assign: () => GB,
32694
+ HB($r, {
32695
+ assign: () => WB,
32680
32696
  colors: () => ti,
32681
32697
  createStringInterpolator: () => Qp,
32682
32698
  skipAnimation: () => o7,
@@ -32685,7 +32701,7 @@ FB($r, {
32685
32701
  });
32686
32702
  function md() {
32687
32703
  }
32688
- var HB = (t, e, r) => Object.defineProperty(t, e, { value: r, writable: !0, configurable: !0 }), ot = {
32704
+ var GB = (t, e, r) => Object.defineProperty(t, e, { value: r, writable: !0, configurable: !0 }), ot = {
32689
32705
  arr: Array.isArray,
32690
32706
  obj: (t) => !!t && t.constructor.name === "Object",
32691
32707
  fun: (t) => typeof t == "function",
@@ -32719,7 +32735,7 @@ function ps(t, e) {
32719
32735
  t.clear(), Vt(r, e);
32720
32736
  }
32721
32737
  }
32722
- var Jo = (t, ...e) => ps(t, (r) => r(...e)), jp = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Qp, a7, ti = null, o7 = !1, Kp = md, GB = (t) => {
32738
+ var Jo = (t, ...e) => ps(t, (r) => r(...e)), jp = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Qp, a7, ti = null, o7 = !1, Kp = md, WB = (t) => {
32723
32739
  t.to && (a7 = t.to), t.now && (Nt.now = t.now), t.colors !== void 0 && (ti = t.colors), t.skipAnimation != null && (o7 = t.skipAnimation), t.createStringInterpolator && (Qp = t.createStringInterpolator), t.requestAnimationFrame && Nt.use(t.requestAnimationFrame), t.batchedUpdates && (Nt.batchedUpdates = t.batchedUpdates), t.willAdvance && (Kp = t.willAdvance), t.frameLoop && (Nt.frameLoop = t.frameLoop);
32724
32740
  }, vs = /* @__PURE__ */ new Set(), wr = [], Bh = [], dc = 0, jc = {
32725
32741
  get idle() {
@@ -32727,7 +32743,7 @@ var Jo = (t, ...e) => ps(t, (r) => r(...e)), jp = () => typeof window > "u" || !
32727
32743
  },
32728
32744
  /** Advance the given animation on every frame until idle. */
32729
32745
  start(t) {
32730
- dc > t.priority ? (vs.add(t), Nt.onStart(WB)) : (s7(t), Nt(yd));
32746
+ dc > t.priority ? (vs.add(t), Nt.onStart(XB)) : (s7(t), Nt(yd));
32731
32747
  },
32732
32748
  /** Advance all animations by the given time. */
32733
32749
  advance: yd,
@@ -32749,7 +32765,7 @@ var Jo = (t, ...e) => ps(t, (r) => r(...e)), jp = () => typeof window > "u" || !
32749
32765
  wr = [], vs.clear();
32750
32766
  }
32751
32767
  };
32752
- function WB() {
32768
+ function XB() {
32753
32769
  vs.forEach(s7), vs.clear(), Nt(yd);
32754
32770
  }
32755
32771
  function s7(t) {
@@ -32757,7 +32773,7 @@ function s7(t) {
32757
32773
  }
32758
32774
  function l7(t) {
32759
32775
  wr.splice(
32760
- XB(wr, (e) => e.priority > t.priority),
32776
+ UB(wr, (e) => e.priority > t.priority),
32761
32777
  0,
32762
32778
  t
32763
32779
  );
@@ -32770,11 +32786,11 @@ function yd(t) {
32770
32786
  }
32771
32787
  return dc = 0, Bh = wr, Bh.length = 0, wr = e, wr.length > 0;
32772
32788
  }
32773
- function XB(t, e) {
32789
+ function UB(t, e) {
32774
32790
  const r = t.findIndex(e);
32775
32791
  return r < 0 ? t.length : r;
32776
32792
  }
32777
- var UB = (t, e, r) => Math.min(Math.max(r, t), e), YB = {
32793
+ var YB = (t, e, r) => Math.min(Math.max(r, t), e), ZB = {
32778
32794
  transparent: 0,
32779
32795
  aliceblue: 4042850303,
32780
32796
  antiquewhite: 4209760255,
@@ -32929,34 +32945,34 @@ var UB = (t, e, r) => Math.min(Math.max(r, t), e), YB = {
32929
32945
  function Qc(...t) {
32930
32946
  return "\\(\\s*(" + t.join(")\\s*,\\s*(") + ")\\s*\\)";
32931
32947
  }
32932
- var ZB = new RegExp("rgb" + Qc(Rr, Rr, Rr)), qB = new RegExp("rgba" + Qc(Rr, Rr, Rr, Rr)), jB = new RegExp("hsl" + Qc(Rr, pc, pc)), QB = new RegExp(
32948
+ var qB = new RegExp("rgb" + Qc(Rr, Rr, Rr)), jB = new RegExp("rgba" + Qc(Rr, Rr, Rr, Rr)), QB = new RegExp("hsl" + Qc(Rr, pc, pc)), KB = new RegExp(
32933
32949
  "hsla" + Qc(Rr, pc, pc, Rr)
32934
- ), KB = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, JB = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, t$ = /^#([0-9a-fA-F]{6})$/, e$ = /^#([0-9a-fA-F]{8})$/;
32935
- function r$(t) {
32950
+ ), JB = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, t$ = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, e$ = /^#([0-9a-fA-F]{6})$/, r$ = /^#([0-9a-fA-F]{8})$/;
32951
+ function n$(t) {
32936
32952
  let e;
32937
- return typeof t == "number" ? t >>> 0 === t && t >= 0 && t <= 4294967295 ? t : null : (e = t$.exec(t)) ? parseInt(e[1] + "ff", 16) >>> 0 : ti && ti[t] !== void 0 ? ti[t] : (e = ZB.exec(t)) ? (wa(e[1]) << 24 | // r
32953
+ return typeof t == "number" ? t >>> 0 === t && t >= 0 && t <= 4294967295 ? t : null : (e = e$.exec(t)) ? parseInt(e[1] + "ff", 16) >>> 0 : ti && ti[t] !== void 0 ? ti[t] : (e = qB.exec(t)) ? (wa(e[1]) << 24 | // r
32938
32954
  wa(e[2]) << 16 | // g
32939
32955
  wa(e[3]) << 8 | // b
32940
32956
  255) >>> // a
32941
- 0 : (e = qB.exec(t)) ? (wa(e[1]) << 24 | // r
32957
+ 0 : (e = jB.exec(t)) ? (wa(e[1]) << 24 | // r
32942
32958
  wa(e[2]) << 16 | // g
32943
32959
  wa(e[3]) << 8 | // b
32944
32960
  b2(e[4])) >>> // a
32945
- 0 : (e = KB.exec(t)) ? parseInt(
32961
+ 0 : (e = JB.exec(t)) ? parseInt(
32946
32962
  e[1] + e[1] + // r
32947
32963
  e[2] + e[2] + // g
32948
32964
  e[3] + e[3] + // b
32949
32965
  "ff",
32950
32966
  // a
32951
32967
  16
32952
- ) >>> 0 : (e = e$.exec(t)) ? parseInt(e[1], 16) >>> 0 : (e = JB.exec(t)) ? parseInt(
32968
+ ) >>> 0 : (e = r$.exec(t)) ? parseInt(e[1], 16) >>> 0 : (e = t$.exec(t)) ? parseInt(
32953
32969
  e[1] + e[1] + // r
32954
32970
  e[2] + e[2] + // g
32955
32971
  e[3] + e[3] + // b
32956
32972
  e[4] + e[4],
32957
32973
  // a
32958
32974
  16
32959
- ) >>> 0 : (e = jB.exec(t)) ? (y2(
32975
+ ) >>> 0 : (e = QB.exec(t)) ? (y2(
32960
32976
  _2(e[1]),
32961
32977
  // h
32962
32978
  ou(e[2]),
@@ -32964,7 +32980,7 @@ function r$(t) {
32964
32980
  ou(e[3])
32965
32981
  // l
32966
32982
  ) | 255) >>> // a
32967
- 0 : (e = QB.exec(t)) ? (y2(
32983
+ 0 : (e = KB.exec(t)) ? (y2(
32968
32984
  _2(e[1]),
32969
32985
  // h
32970
32986
  ou(e[2]),
@@ -32997,7 +33013,7 @@ function ou(t) {
32997
33013
  return e < 0 ? 0 : e > 100 ? 1 : e / 100;
32998
33014
  }
32999
33015
  function S2(t) {
33000
- let e = r$(t);
33016
+ let e = n$(t);
33001
33017
  if (e === null) return t;
33002
33018
  e = e || 0;
33003
33019
  const r = (e & 4278190080) >>> 24, n = (e & 16711680) >>> 16, i = (e & 65280) >>> 8, a = (e & 255) / 255;
@@ -33016,8 +33032,8 @@ var $s = (t, e, r) => {
33016
33032
  return Qp(t);
33017
33033
  const n = t, i = n.output, a = n.range || [0, 1], o = n.extrapolateLeft || n.extrapolate || "extend", s = n.extrapolateRight || n.extrapolate || "extend", l = n.easing || ((u) => u);
33018
33034
  return (u) => {
33019
- const c = i$(u, a);
33020
- return n$(
33035
+ const c = a$(u, a);
33036
+ return i$(
33021
33037
  u,
33022
33038
  a[c],
33023
33039
  a[c + 1],
@@ -33030,7 +33046,7 @@ var $s = (t, e, r) => {
33030
33046
  );
33031
33047
  };
33032
33048
  };
33033
- function n$(t, e, r, n, i, a, o, s, l) {
33049
+ function i$(t, e, r, n, i, a, o, s, l) {
33034
33050
  let u = l ? l(t) : t;
33035
33051
  if (u < e) {
33036
33052
  if (o === "identity") return u;
@@ -33042,16 +33058,16 @@ function n$(t, e, r, n, i, a, o, s, l) {
33042
33058
  }
33043
33059
  return n === i ? n : e === r ? t <= e ? n : i : (e === -1 / 0 ? u = -u : r === 1 / 0 ? u = u - e : u = (u - e) / (r - e), u = a(u), n === -1 / 0 ? u = -u : i === 1 / 0 ? u = u + n : u = u * (i - n) + n, u);
33044
33060
  }
33045
- function i$(t, e) {
33061
+ function a$(t, e) {
33046
33062
  for (var r = 1; r < e.length - 1 && !(e[r] >= t); ++r)
33047
33063
  ;
33048
33064
  return r - 1;
33049
33065
  }
33050
- var a$ = (t, e = "end") => (r) => {
33066
+ var o$ = (t, e = "end") => (r) => {
33051
33067
  r = e === "end" ? Math.min(r, 0.999) : Math.max(r, 1e-3);
33052
33068
  const n = r * t, i = e === "end" ? Math.floor(n) : Math.ceil(n);
33053
- return UB(0, 1, i / t);
33054
- }, vc = 1.70158, su = vc * 1.525, x2 = vc + 1, w2 = 2 * Math.PI / 3, T2 = 2 * Math.PI / 4.5, lu = (t) => t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375, o$ = {
33069
+ return YB(0, 1, i / t);
33070
+ }, vc = 1.70158, su = vc * 1.525, x2 = vc + 1, w2 = 2 * Math.PI / 3, T2 = 2 * Math.PI / 4.5, lu = (t) => t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375, s$ = {
33055
33071
  linear: (t) => t,
33056
33072
  easeInQuad: (t) => t * t,
33057
33073
  easeOutQuad: (t) => 1 - (1 - t) * (1 - t),
@@ -33083,24 +33099,24 @@ var a$ = (t, e = "end") => (r) => {
33083
33099
  easeInBounce: (t) => 1 - lu(1 - t),
33084
33100
  easeOutBounce: lu,
33085
33101
  easeInOutBounce: (t) => t < 0.5 ? (1 - lu(1 - 2 * t)) / 2 : (1 + lu(2 * t - 1)) / 2,
33086
- steps: a$
33102
+ steps: o$
33087
33103
  }, Vs = Symbol.for("FluidValue.get"), eo = Symbol.for("FluidValue.observers"), br = (t) => !!(t && t[Vs]), qe = (t) => t && t[Vs] ? t[Vs]() : t, L2 = (t) => t[eo] || null;
33088
- function s$(t, e) {
33104
+ function l$(t, e) {
33089
33105
  t.eventObserved ? t.eventObserved(e) : t(e);
33090
33106
  }
33091
33107
  function zs(t, e) {
33092
33108
  const r = t[eo];
33093
33109
  r && r.forEach((n) => {
33094
- s$(n, e);
33110
+ l$(n, e);
33095
33111
  });
33096
33112
  }
33097
33113
  var u7 = class {
33098
33114
  constructor(t) {
33099
33115
  if (!t && !(t = this.get))
33100
33116
  throw Error("Unknown getter");
33101
- l$(this, t);
33117
+ u$(this, t);
33102
33118
  }
33103
- }, l$ = (t, e) => c7(t, Vs, e);
33119
+ }, u$ = (t, e) => c7(t, Vs, e);
33104
33120
  function co(t, e) {
33105
33121
  if (t[Vs]) {
33106
33122
  let r = t[eo];
@@ -33119,8 +33135,8 @@ var c7 = (t, e, r) => Object.defineProperty(t, e, {
33119
33135
  value: r,
33120
33136
  writable: !0,
33121
33137
  configurable: !0
33122
- }), Tu = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, u$ = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, E2 = new RegExp(`(${Tu.source})(%|[a-z]+)`, "i"), c$ = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Kc = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, f7 = (t) => {
33123
- const [e, r] = f$(t);
33138
+ }), Tu = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, c$ = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, E2 = new RegExp(`(${Tu.source})(%|[a-z]+)`, "i"), f$ = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Kc = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, f7 = (t) => {
33139
+ const [e, r] = h$(t);
33124
33140
  if (!e || jp())
33125
33141
  return t;
33126
33142
  const n = window.getComputedStyle(document.documentElement).getPropertyValue(e);
@@ -33136,12 +33152,12 @@ var c7 = (t, e, r) => Object.defineProperty(t, e, {
33136
33152
  return r;
33137
33153
  }
33138
33154
  return t;
33139
- }, f$ = (t) => {
33155
+ }, h$ = (t) => {
33140
33156
  const e = Kc.exec(t);
33141
33157
  if (!e) return [,];
33142
33158
  const [, r, n] = e;
33143
33159
  return [r, n];
33144
- }, Vh, h$ = (t, e, r, n, i) => `rgba(${Math.round(e)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`, h7 = (t) => {
33160
+ }, Vh, d$ = (t, e, r, n, i) => `rgba(${Math.round(e)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`, h7 = (t) => {
33145
33161
  Vh || (Vh = ti ? (
33146
33162
  // match color names, ignore partial matches
33147
33163
  new RegExp(`(${Object.keys(ti).join("|")})(?!\\w)`, "g")
@@ -33149,7 +33165,7 @@ var c7 = (t, e, r) => Object.defineProperty(t, e, {
33149
33165
  // never match
33150
33166
  /^\b$/
33151
33167
  ));
33152
- const e = t.output.map((a) => qe(a).replace(Kc, f7).replace(u$, S2).replace(Vh, S2)), r = e.map((a) => a.match(Tu).map(Number)), i = r[0].map(
33168
+ const e = t.output.map((a) => qe(a).replace(Kc, f7).replace(c$, S2).replace(Vh, S2)), r = e.map((a) => a.match(Tu).map(Number)), i = r[0].map(
33153
33169
  (a, o) => r.map((s) => {
33154
33170
  if (!(o in s))
33155
33171
  throw Error('The arity of each "output" value must be equal');
@@ -33165,7 +33181,7 @@ var c7 = (t, e, r) => Object.defineProperty(t, e, {
33165
33181
  return e[0].replace(
33166
33182
  Tu,
33167
33183
  () => `${i[s++](a)}${o || ""}`
33168
- ).replace(c$, h$);
33184
+ ).replace(f$, d$);
33169
33185
  };
33170
33186
  }, Jp = "react-spring: ", d7 = (t) => {
33171
33187
  const e = t;
@@ -33175,15 +33191,15 @@ var c7 = (t, e, r) => Object.defineProperty(t, e, {
33175
33191
  return (...n) => {
33176
33192
  r || (e(...n), r = !0);
33177
33193
  };
33178
- }, d$ = d7(console.warn);
33179
- function p$() {
33180
- d$(
33194
+ }, p$ = d7(console.warn);
33195
+ function v$() {
33196
+ p$(
33181
33197
  `${Jp}The "interpolate" function is deprecated in v9 (use "to" instead)`
33182
33198
  );
33183
33199
  }
33184
- var v$ = d7(console.warn);
33185
- function g$() {
33186
- v$(
33200
+ var g$ = d7(console.warn);
33201
+ function m$() {
33202
+ g$(
33187
33203
  `${Jp}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
33188
33204
  );
33189
33205
  }
@@ -33191,26 +33207,26 @@ function Jc(t) {
33191
33207
  return ot.str(t) && (t[0] == "#" || /\d/.test(t) || // Do not identify a CSS variable as an AnimatedString if its SSR
33192
33208
  !jp() && Kc.test(t) || t in (ti || {}));
33193
33209
  }
33194
- var tv = jp() ? Lt : O7, m$ = () => {
33210
+ var tv = jp() ? Lt : O7, y$ = () => {
33195
33211
  const t = bt(!1);
33196
33212
  return tv(() => (t.current = !0, () => {
33197
33213
  t.current = !1;
33198
33214
  }), []), t;
33199
33215
  };
33200
33216
  function p7() {
33201
- const t = Mt()[1], e = m$();
33217
+ const t = Mt()[1], e = y$();
33202
33218
  return () => {
33203
33219
  e.current && t(Math.random());
33204
33220
  };
33205
33221
  }
33206
- var v7 = (t) => Lt(t, y$), y$ = [];
33222
+ var v7 = (t) => Lt(t, _$), _$ = [];
33207
33223
  function C2(t) {
33208
33224
  const e = bt(void 0);
33209
33225
  return Lt(() => {
33210
33226
  e.current = t;
33211
33227
  }), e.current;
33212
33228
  }
33213
- var Hs = Symbol.for("Animated:node"), _$ = (t) => !!t && t[Hs] === t, qr = (t) => t && t[Hs], ev = (t, e) => HB(t, Hs, e), tf = (t) => t && t[Hs] && t[Hs].getPayload(), g7 = class {
33229
+ var Hs = Symbol.for("Animated:node"), b$ = (t) => !!t && t[Hs] === t, qr = (t) => t && t[Hs], ev = (t, e) => GB(t, Hs, e), tf = (t) => t && t[Hs] && t[Hs].getPayload(), g7 = class {
33214
33230
  constructor() {
33215
33231
  ev(this, this);
33216
33232
  }
@@ -33276,7 +33292,7 @@ var Hs = Symbol.for("Animated:node"), _$ = (t) => !!t && t[Hs] === t, qr = (t) =
33276
33292
  getValue(t) {
33277
33293
  const e = {};
33278
33294
  return sn(this.source, (r, n) => {
33279
- _$(r) ? e[n] = r.getValue(t) : br(r) ? e[n] = qe(r) : t || (e[n] = r);
33295
+ b$(r) ? e[n] = r.getValue(t) : br(r) ? e[n] = qe(r) : t || (e[n] = r);
33280
33296
  }), e;
33281
33297
  }
33282
33298
  /** Replace the raw object data */
@@ -33299,7 +33315,7 @@ var Hs = Symbol.for("Animated:node"), _$ = (t) => !!t && t[Hs] === t, qr = (t) =
33299
33315
  const e = tf(t);
33300
33316
  e && Vt(e, (r) => this.add(r));
33301
33317
  }
33302
- }, b$ = class _7 extends rf {
33318
+ }, S$ = class _7 extends rf {
33303
33319
  constructor(e) {
33304
33320
  super(e);
33305
33321
  }
@@ -33312,15 +33328,15 @@ var Hs = Symbol.for("Animated:node"), _$ = (t) => !!t && t[Hs] === t, qr = (t) =
33312
33328
  }
33313
33329
  setValue(e) {
33314
33330
  const r = this.getPayload();
33315
- return e.length == r.length ? r.map((n, i) => n.setValue(e[i])).some(Boolean) : (super.setValue(e.map(S$)), !0);
33331
+ return e.length == r.length ? r.map((n, i) => n.setValue(e[i])).some(Boolean) : (super.setValue(e.map(x$)), !0);
33316
33332
  }
33317
33333
  };
33318
- function S$(t) {
33334
+ function x$(t) {
33319
33335
  return (Jc(t) ? gc : ef).create(t);
33320
33336
  }
33321
33337
  function _d(t) {
33322
33338
  const e = qr(t);
33323
- return e ? e.constructor : ot.arr(t) ? b$ : Jc(t) ? gc : ef;
33339
+ return e ? e.constructor : ot.arr(t) ? S$ : Jc(t) ? gc : ef;
33324
33340
  }
33325
33341
  var M2 = (t, e) => {
33326
33342
  const r = (
@@ -33332,15 +33348,15 @@ var M2 = (t, e) => {
33332
33348
  const a = bt(null), o = r && // eslint-disable-next-line react-hooks/rules-of-hooks
33333
33349
  ne(
33334
33350
  (p) => {
33335
- a.current = T$(i, p);
33351
+ a.current = L$(i, p);
33336
33352
  },
33337
33353
  [i]
33338
- ), [s, l] = w$(n, e), u = p7(), c = () => {
33354
+ ), [s, l] = T$(n, e), u = p7(), c = () => {
33339
33355
  const p = a.current;
33340
33356
  if (r && !p)
33341
33357
  return;
33342
33358
  (p ? e.applyAnimatedValues(p, s.getValue(!0)) : !1) === !1 && u();
33343
- }, f = new x$(c, l), d = bt(void 0);
33359
+ }, f = new w$(c, l), d = bt(void 0);
33344
33360
  tv(() => (d.current = f, Vt(l, (p) => co(p, f)), () => {
33345
33361
  d.current && (Vt(
33346
33362
  d.current.deps,
@@ -33353,7 +33369,7 @@ var M2 = (t, e) => {
33353
33369
  const h = e.getComponentProps(s.getValue());
33354
33370
  return /* @__PURE__ */ H2.createElement(t, { ...h, ref: o });
33355
33371
  });
33356
- }, x$ = class {
33372
+ }, w$ = class {
33357
33373
  constructor(t, e) {
33358
33374
  this.update = t, this.deps = e;
33359
33375
  }
@@ -33361,17 +33377,17 @@ var M2 = (t, e) => {
33361
33377
  t.type == "change" && Nt.write(this.update);
33362
33378
  }
33363
33379
  };
33364
- function w$(t, e) {
33380
+ function T$(t, e) {
33365
33381
  const r = /* @__PURE__ */ new Set();
33366
33382
  return mc.dependencies = r, t.style && (t = {
33367
33383
  ...t,
33368
33384
  style: e.createAnimatedStyle(t.style)
33369
33385
  }), t = new rf(t), mc.dependencies = null, [t, r];
33370
33386
  }
33371
- function T$(t, e) {
33387
+ function L$(t, e) {
33372
33388
  return t && (ot.fun(t) ? t(e) : t.current = e), e;
33373
33389
  }
33374
- var D2 = Symbol.for("AnimatedComponent"), L$ = (t, {
33390
+ var D2 = Symbol.for("AnimatedComponent"), E$ = (t, {
33375
33391
  applyAnimatedValues: e = () => !1,
33376
33392
  createAnimatedStyle: r = (i) => new rf(i),
33377
33393
  getComponentProps: n = (i) => i
@@ -33393,8 +33409,8 @@ var D2 = Symbol.for("AnimatedComponent"), L$ = (t, {
33393
33409
  function zi(t, ...e) {
33394
33410
  return ot.fun(t) ? t(...e) : t;
33395
33411
  }
33396
- var gs = (t, e) => t === !0 || !!(e && t && (ot.fun(t) ? t(e) : or(t).includes(e))), b7 = (t, e) => ot.obj(t) ? e && t[e] : t, S7 = (t, e) => t.default === !0 ? t[e] : t.default ? t.default[e] : void 0, E$ = (t) => t, rv = (t, e = E$) => {
33397
- let r = C$;
33412
+ var gs = (t, e) => t === !0 || !!(e && t && (ot.fun(t) ? t(e) : or(t).includes(e))), b7 = (t, e) => ot.obj(t) ? e && t[e] : t, S7 = (t, e) => t.default === !0 ? t[e] : t.default ? t.default[e] : void 0, C$ = (t) => t, rv = (t, e = C$) => {
33413
+ let r = M$;
33398
33414
  t.default && t.default !== !0 && (t = t.default, r = Object.keys(t));
33399
33415
  const n = {};
33400
33416
  for (const i of r) {
@@ -33402,7 +33418,7 @@ var gs = (t, e) => t === !0 || !!(e && t && (ot.fun(t) ? t(e) : or(t).includes(e
33402
33418
  ot.und(a) || (n[i] = a);
33403
33419
  }
33404
33420
  return n;
33405
- }, C$ = [
33421
+ }, M$ = [
33406
33422
  "config",
33407
33423
  "onProps",
33408
33424
  "onStart",
@@ -33410,7 +33426,7 @@ var gs = (t, e) => t === !0 || !!(e && t && (ot.fun(t) ? t(e) : or(t).includes(e
33410
33426
  "onPause",
33411
33427
  "onResume",
33412
33428
  "onRest"
33413
- ], M$ = {
33429
+ ], D$ = {
33414
33430
  config: 1,
33415
33431
  from: 1,
33416
33432
  to: 1,
@@ -33446,16 +33462,16 @@ var gs = (t, e) => t === !0 || !!(e && t && (ot.fun(t) ? t(e) : or(t).includes(e
33446
33462
  callId: 1,
33447
33463
  parentId: 1
33448
33464
  };
33449
- function D$(t) {
33465
+ function A$(t) {
33450
33466
  const e = {};
33451
33467
  let r = 0;
33452
33468
  if (sn(t, (n, i) => {
33453
- M$[i] || (e[i] = n, r++);
33469
+ D$[i] || (e[i] = n, r++);
33454
33470
  }), r)
33455
33471
  return e;
33456
33472
  }
33457
33473
  function x7(t) {
33458
- const e = D$(t);
33474
+ const e = A$(t);
33459
33475
  if (e) {
33460
33476
  const r = { to: e };
33461
33477
  return sn(t, (n, i) => i in e || (r[i] = n)), r;
@@ -33468,22 +33484,22 @@ function Gs(t) {
33468
33484
  output: [t, t]
33469
33485
  })(1) : t;
33470
33486
  }
33471
- function A$(t) {
33487
+ function P$(t) {
33472
33488
  for (const e in t) return !0;
33473
33489
  return !1;
33474
33490
  }
33475
33491
  function bd(t) {
33476
33492
  return ot.fun(t) || ot.arr(t) && ot.obj(t[0]);
33477
33493
  }
33478
- function P$(t, e) {
33494
+ function k$(t, e) {
33479
33495
  var r;
33480
33496
  (r = t.ref) == null || r.delete(t), e == null || e.delete(t);
33481
33497
  }
33482
- function k$(t, e) {
33498
+ function N$(t, e) {
33483
33499
  var r;
33484
33500
  e && t.ref !== e && ((r = t.ref) == null || r.delete(t), e.add(t), t.ref = e);
33485
33501
  }
33486
- var N$ = {
33502
+ var O$ = {
33487
33503
  default: { tension: 170, friction: 26 },
33488
33504
  gentle: { tension: 120, friction: 14 },
33489
33505
  wobbly: { tension: 180, friction: 12 },
@@ -33491,17 +33507,17 @@ var N$ = {
33491
33507
  slow: { tension: 280, friction: 60 },
33492
33508
  molasses: { tension: 280, friction: 120 }
33493
33509
  }, Sd = {
33494
- ...N$.default,
33510
+ ...O$.default,
33495
33511
  mass: 1,
33496
33512
  damping: 1,
33497
- easing: o$.linear,
33513
+ easing: s$.linear,
33498
33514
  clamp: !1
33499
- }, O$ = class {
33515
+ }, R$ = class {
33500
33516
  constructor() {
33501
33517
  this.velocity = 0, Object.assign(this, Sd);
33502
33518
  }
33503
33519
  };
33504
- function R$(t, e, r) {
33520
+ function I$(t, e, r) {
33505
33521
  r && (r = { ...r }, P2(r, e), e = { ...r, ...e }), P2(t, e), Object.assign(t, e);
33506
33522
  for (const o in Sd)
33507
33523
  t[o] == null && (t[o] = Sd[o]);
@@ -33517,9 +33533,9 @@ function P2(t, e) {
33517
33533
  (r || !ot.und(e.frequency) || !ot.und(e.damping) || !ot.und(e.mass)) && (t.duration = void 0, t.decay = void 0), r && (t.frequency = void 0);
33518
33534
  }
33519
33535
  }
33520
- var k2 = [], I$ = class {
33536
+ var k2 = [], B$ = class {
33521
33537
  constructor() {
33522
- this.changed = !1, this.values = k2, this.toValues = null, this.fromValues = k2, this.config = new O$(), this.immediate = !1;
33538
+ this.changed = !1, this.values = k2, this.toValues = null, this.fromValues = k2, this.config = new R$(), this.immediate = !1;
33523
33539
  }
33524
33540
  };
33525
33541
  function w7(t, { key: e, props: r, defaultProps: n, state: i, actions: a }) {
@@ -33640,9 +33656,9 @@ var N2 = class extends Error {
33640
33656
  constructor() {
33641
33657
  super("SkipAnimationSignal");
33642
33658
  }
33643
- }, xd = (t) => t instanceof iv, B$ = 1, iv = class extends u7 {
33659
+ }, xd = (t) => t instanceof iv, $$ = 1, iv = class extends u7 {
33644
33660
  constructor() {
33645
- super(...arguments), this.id = B$++, this._priority = 0;
33661
+ super(...arguments), this.id = $$++, this._priority = 0;
33646
33662
  }
33647
33663
  get priority() {
33648
33664
  return this._priority;
@@ -33661,7 +33677,7 @@ var N2 = class extends Error {
33661
33677
  }
33662
33678
  /** @deprecated Use the `to` method instead. */
33663
33679
  interpolate(...t) {
33664
- return p$(), $r.to(this, t);
33680
+ return v$(), $r.to(this, t);
33665
33681
  }
33666
33682
  toJSON() {
33667
33683
  return this.get();
@@ -33695,9 +33711,9 @@ var N2 = class extends Error {
33695
33711
  priority: t
33696
33712
  });
33697
33713
  }
33698
- }, ta = Symbol.for("SpringPhase"), E7 = 1, wd = 2, Td = 4, zh = (t) => (t[ta] & E7) > 0, Vn = (t) => (t[ta] & wd) > 0, Vo = (t) => (t[ta] & Td) > 0, R2 = (t, e) => e ? t[ta] |= wd | E7 : t[ta] &= ~wd, I2 = (t, e) => e ? t[ta] |= Td : t[ta] &= ~Td, $$ = class extends iv {
33714
+ }, ta = Symbol.for("SpringPhase"), E7 = 1, wd = 2, Td = 4, zh = (t) => (t[ta] & E7) > 0, Vn = (t) => (t[ta] & wd) > 0, Vo = (t) => (t[ta] & Td) > 0, R2 = (t, e) => e ? t[ta] |= wd | E7 : t[ta] &= ~wd, I2 = (t, e) => e ? t[ta] |= Td : t[ta] &= ~Td, V$ = class extends iv {
33699
33715
  constructor(t, e) {
33700
- if (super(), this.animation = new I$(), this.defaultProps = {}, this._state = {
33716
+ if (super(), this.animation = new B$(), this.defaultProps = {}, this._state = {
33701
33717
  paused: !1,
33702
33718
  delayed: !1,
33703
33719
  pauseQueue: /* @__PURE__ */ new Set(),
@@ -33930,7 +33946,7 @@ var N2 = class extends Error {
33930
33946
  const h = !vn(c, l);
33931
33947
  h && this._focus(c);
33932
33948
  const p = bd(e.to), { config: v } = s, { decay: g, velocity: m } = v;
33933
- (n || i) && (v.velocity = 0), e.config && !p && R$(
33949
+ (n || i) && (v.velocity = 0), e.config && !p && I$(
33934
33950
  v,
33935
33951
  zi(e.config, a),
33936
33952
  // Avoid calling the same "config" prop twice.
@@ -33963,7 +33979,7 @@ var N2 = class extends Error {
33963
33979
  }
33964
33980
  if (C && Vn(this) && (s.changed && !_ ? E = !0 : E || this._stop(l)), !p && ((E || br(l)) && (s.values = y.getPayload(), s.toValues = br(c) ? null : T == gc ? [1] : or(S)), s.immediate != w && (s.immediate = w, !w && !_ && this._set(l)), E)) {
33965
33981
  const { onRest: L } = s;
33966
- Vt(z$, (M) => $2(this, e, M));
33982
+ Vt(F$, (M) => $2(this, e, M));
33967
33983
  const k = Or(this, zo(this, l));
33968
33984
  Jo(this._pendingCalls, k), this._pendingCalls.add(r), s.changed && Nt.batchedUpdates(() => {
33969
33985
  var M;
@@ -34077,14 +34093,14 @@ function Xs(t) {
34077
34093
  const { to: e, from: r } = t = x7(t), n = /* @__PURE__ */ new Set();
34078
34094
  return ot.obj(e) && B2(e, n), ot.obj(r) && B2(r, n), t.keys = n.size ? Array.from(n) : null, t;
34079
34095
  }
34080
- function V$(t) {
34096
+ function z$(t) {
34081
34097
  const e = Xs(t);
34082
34098
  return ot.und(e.default) && (e.default = rv(e)), e;
34083
34099
  }
34084
34100
  function B2(t, e) {
34085
34101
  sn(t, (r, n) => r != null && e.add(n));
34086
34102
  }
34087
- var z$ = [
34103
+ var F$ = [
34088
34104
  "onStart",
34089
34105
  "onRest",
34090
34106
  "onChange",
@@ -34098,9 +34114,9 @@ function Fo(t, e, ...r) {
34098
34114
  var n, i, a, o;
34099
34115
  (i = (n = t.animation)[e]) == null || i.call(n, ...r), (o = (a = t.defaultProps)[e]) == null || o.call(a, ...r);
34100
34116
  }
34101
- var F$ = ["onStart", "onChange", "onRest"], H$ = 1, G$ = class {
34117
+ var H$ = ["onStart", "onChange", "onRest"], G$ = 1, W$ = class {
34102
34118
  constructor(t, e) {
34103
- this.id = H$++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._state = {
34119
+ this.id = G$++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._state = {
34104
34120
  paused: !1,
34105
34121
  pauseQueue: /* @__PURE__ */ new Set(),
34106
34122
  resumeQueue: /* @__PURE__ */ new Set(),
@@ -34216,7 +34232,7 @@ async function M7(t, e, r) {
34216
34232
  const { keys: n, to: i, from: a, loop: o, onRest: s, onResolve: l } = e, u = ot.obj(e.default) && e.default;
34217
34233
  o && (e.loop = !1), i === !1 && (e.to = null), a === !1 && (e.from = null);
34218
34234
  const c = ot.arr(i) || ot.fun(i) ? i : void 0;
34219
- c ? (e.to = void 0, e.onRest = void 0, u && (u.onRest = void 0)) : Vt(F$, (v) => {
34235
+ c ? (e.to = void 0, e.onRest = void 0, u && (u.onRest = void 0)) : Vt(H$, (v) => {
34220
34236
  const g = e[v];
34221
34237
  if (ot.fun(g)) {
34222
34238
  const m = t._events[v];
@@ -34277,7 +34293,7 @@ function D7(t, e) {
34277
34293
  });
34278
34294
  }
34279
34295
  function A7(t, e) {
34280
- const r = new $$();
34296
+ const r = new V$();
34281
34297
  return r.key = t, e && co(r, e), r;
34282
34298
  }
34283
34299
  function P7(t, e, r) {
@@ -34290,12 +34306,12 @@ function k7(t, e) {
34290
34306
  P7(t.springs, r, (n) => A7(n, t));
34291
34307
  });
34292
34308
  }
34293
- var W$ = H2.createContext({
34309
+ var X$ = H2.createContext({
34294
34310
  pause: !1,
34295
34311
  immediate: !1
34296
- }), X$ = () => {
34312
+ }), U$ = () => {
34297
34313
  const t = [], e = function(n) {
34298
- g$();
34314
+ m$();
34299
34315
  const i = [];
34300
34316
  return Vt(t, (a, o) => {
34301
34317
  if (ot.und(n))
@@ -34340,11 +34356,11 @@ var W$ = H2.createContext({
34340
34356
  };
34341
34357
  return e._getProps = r, e;
34342
34358
  };
34343
- function U$(t, e, r) {
34359
+ function Y$(t, e, r) {
34344
34360
  const n = ot.fun(e) && e;
34345
34361
  n && !r && (r = []);
34346
34362
  const i = nt(
34347
- () => n || arguments.length == 3 ? X$() : void 0,
34363
+ () => n || arguments.length == 3 ? U$() : void 0,
34348
34364
  []
34349
34365
  ), a = bt(0), o = p7(), s = nt(
34350
34366
  () => ({
@@ -34363,27 +34379,27 @@ function U$(t, e, r) {
34363
34379
  ), l = bt([...s.ctrls]), u = bt([]), c = C2(t) || 0;
34364
34380
  nt(() => {
34365
34381
  Vt(l.current.slice(t, c), (m) => {
34366
- P$(m, i), m.stop(!0);
34382
+ k$(m, i), m.stop(!0);
34367
34383
  }), l.current.length = t, f(c, t);
34368
34384
  }, [t]), nt(() => {
34369
34385
  f(0, Math.min(c, t));
34370
34386
  }, r);
34371
34387
  function f(m, y) {
34372
34388
  for (let _ = m; _ < y; _++) {
34373
- const b = l.current[_] || (l.current[_] = new G$(null, s.flush)), S = n ? n(_, b) : e[_];
34374
- S && (u.current[_] = V$(S));
34389
+ const b = l.current[_] || (l.current[_] = new W$(null, s.flush)), S = n ? n(_, b) : e[_];
34390
+ S && (u.current[_] = z$(S));
34375
34391
  }
34376
34392
  }
34377
34393
  const d = l.current.map(
34378
34394
  (m, y) => V2(m, u.current[y])
34379
- ), h = R7(W$), p = C2(h), v = h !== p && A$(h);
34395
+ ), h = R7(X$), p = C2(h), v = h !== p && P$(h);
34380
34396
  tv(() => {
34381
34397
  a.current++, s.ctrls = l.current;
34382
34398
  const { queue: m } = s;
34383
34399
  m.length && (s.queue = [], Vt(m, (y) => y())), Vt(l.current, (y, _) => {
34384
34400
  i == null || i.add(y), v && y.start({ default: h });
34385
34401
  const b = u.current[_];
34386
- b && (k$(y, b.ref), y.ref ? y.queue.push(b) : y.start(b));
34402
+ b && (N$(y, b.ref), y.ref ? y.queue.push(b) : y.start(b));
34387
34403
  });
34388
34404
  }), v7(() => () => {
34389
34405
  Vt(s.ctrls, (m) => m.stop(!0));
@@ -34391,15 +34407,15 @@ function U$(t, e, r) {
34391
34407
  const g = d.map((m) => ({ ...m }));
34392
34408
  return i ? [g, i] : g;
34393
34409
  }
34394
- function Y$(t, e) {
34395
- const r = ot.fun(t), [[n], i] = U$(
34410
+ function Z$(t, e) {
34411
+ const r = ot.fun(t), [[n], i] = Y$(
34396
34412
  1,
34397
34413
  r ? t : [t],
34398
34414
  r ? [] : e
34399
34415
  );
34400
34416
  return r || arguments.length == 2 ? [n, i] : n;
34401
34417
  }
34402
- var Z$ = class extends iv {
34418
+ var q$ = class extends iv {
34403
34419
  constructor(t, e) {
34404
34420
  super(), this.source = t, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = $s(...e);
34405
34421
  const r = this._get(), n = _d(r);
@@ -34439,11 +34455,11 @@ var Z$ = class extends iv {
34439
34455
  ));
34440
34456
  }
34441
34457
  };
34442
- function q$(t) {
34458
+ function j$(t) {
34443
34459
  return t.idle !== !1;
34444
34460
  }
34445
34461
  function z2(t) {
34446
- return !t.size || Array.from(t).every(q$);
34462
+ return !t.size || Array.from(t).every(j$);
34447
34463
  }
34448
34464
  function Fh(t) {
34449
34465
  t.idle || (t.idle = !0, Vt(tf(t), (e) => {
@@ -34455,14 +34471,14 @@ function Fh(t) {
34455
34471
  }
34456
34472
  $r.assign({
34457
34473
  createStringInterpolator: h7,
34458
- to: (t, e) => new Z$(t, e)
34474
+ to: (t, e) => new q$(t, e)
34459
34475
  });
34460
34476
  var N7 = /^--/;
34461
- function j$(t, e) {
34477
+ function Q$(t, e) {
34462
34478
  return e == null || typeof e == "boolean" || e === "" ? "" : typeof e == "number" && e !== 0 && !N7.test(t) && !(ms.hasOwnProperty(t) && ms[t]) ? e + "px" : ("" + e).trim();
34463
34479
  }
34464
34480
  var F2 = {};
34465
- function Q$(t, e) {
34481
+ function K$(t, e) {
34466
34482
  if (!t.nodeType || !t.setAttribute)
34467
34483
  return !1;
34468
34484
  const r = t.nodeName === "filter" || t.parentNode && t.parentNode.nodeName === "filter", {
@@ -34483,7 +34499,7 @@ function Q$(t, e) {
34483
34499
  a !== void 0 && (t.textContent = a);
34484
34500
  for (const d in i)
34485
34501
  if (i.hasOwnProperty(d)) {
34486
- const h = j$(d, i[d]);
34502
+ const h = Q$(d, i[d]);
34487
34503
  N7.test(d) ? t.style.setProperty(d, h) : t.style[d] = h;
34488
34504
  }
34489
34505
  f.forEach((d, h) => {
@@ -34533,9 +34549,9 @@ var ms = {
34533
34549
  strokeMiterlimit: !0,
34534
34550
  strokeOpacity: !0,
34535
34551
  strokeWidth: !0
34536
- }, K$ = (t, e) => t + e.charAt(0).toUpperCase() + e.substring(1), J$ = ["Webkit", "Ms", "Moz", "O"];
34537
- ms = Object.keys(ms).reduce((t, e) => (J$.forEach((r) => t[K$(r, e)] = t[e]), t), ms);
34538
- var tV = /^(matrix|translate|scale|rotate|skew)/, eV = /^(translate)/, rV = /^(rotate|skew)/, Hh = (t, e) => ot.num(t) && t !== 0 ? t + e : t, Lu = (t, e) => ot.arr(t) ? t.every((r) => Lu(r, e)) : ot.num(t) ? t === e : parseFloat(t) === e, nV = class extends rf {
34552
+ }, J$ = (t, e) => t + e.charAt(0).toUpperCase() + e.substring(1), tV = ["Webkit", "Ms", "Moz", "O"];
34553
+ ms = Object.keys(ms).reduce((t, e) => (tV.forEach((r) => t[J$(r, e)] = t[e]), t), ms);
34554
+ var eV = /^(matrix|translate|scale|rotate|skew)/, rV = /^(translate)/, nV = /^(rotate|skew)/, Hh = (t, e) => ot.num(t) && t !== 0 ? t + e : t, Lu = (t, e) => ot.arr(t) ? t.every((r) => Lu(r, e)) : ot.num(t) ? t === e : parseFloat(t) === e, iV = class extends rf {
34539
34555
  constructor({ x: t, y: e, z: r, ...n }) {
34540
34556
  const i = [], a = [];
34541
34557
  (t || e || r) && (i.push([t || 0, e || 0, r || 0]), a.push((o) => [
@@ -34545,9 +34561,9 @@ var tV = /^(matrix|translate|scale|rotate|skew)/, eV = /^(translate)/, rV = /^(r
34545
34561
  ])), sn(n, (o, s) => {
34546
34562
  if (s === "transform")
34547
34563
  i.push([o || ""]), a.push((l) => [l, l === ""]);
34548
- else if (tV.test(s)) {
34564
+ else if (eV.test(s)) {
34549
34565
  if (delete n[s], ot.und(o)) return;
34550
- const l = eV.test(s) ? "px" : rV.test(s) ? "deg" : "";
34566
+ const l = rV.test(s) ? "px" : nV.test(s) ? "deg" : "";
34551
34567
  i.push(or(o)), a.push(
34552
34568
  s === "rotate3d" ? ([u, c, f, d]) => [
34553
34569
  `rotate3d(${u},${c},${f},${Hh(d, l)})`,
@@ -34558,9 +34574,9 @@ var tV = /^(matrix|translate|scale|rotate|skew)/, eV = /^(translate)/, rV = /^(r
34558
34574
  ]
34559
34575
  );
34560
34576
  }
34561
- }), i.length && (n.transform = new iV(i, a)), super(n);
34577
+ }), i.length && (n.transform = new aV(i, a)), super(n);
34562
34578
  }
34563
- }, iV = class extends u7 {
34579
+ }, aV = class extends u7 {
34564
34580
  constructor(t, e) {
34565
34581
  super(), this.inputs = t, this.transforms = e, this._value = null;
34566
34582
  }
@@ -34599,7 +34615,7 @@ var tV = /^(matrix|translate|scale|rotate|skew)/, eV = /^(translate)/, rV = /^(r
34599
34615
  eventObserved(t) {
34600
34616
  t.type == "change" && (this._value = null), zs(this, t);
34601
34617
  }
34602
- }, aV = [
34618
+ }, oV = [
34603
34619
  "a",
34604
34620
  "abbr",
34605
34621
  "address",
@@ -34738,15 +34754,15 @@ var tV = /^(matrix|translate|scale|rotate|skew)/, eV = /^(translate)/, rV = /^(r
34738
34754
  $r.assign({
34739
34755
  batchedUpdates: T6,
34740
34756
  createStringInterpolator: h7,
34741
- colors: YB
34757
+ colors: ZB
34742
34758
  });
34743
- var oV = L$(aV, {
34744
- applyAnimatedValues: Q$,
34745
- createAnimatedStyle: (t) => new nV(t),
34759
+ E$(oV, {
34760
+ applyAnimatedValues: K$,
34761
+ createAnimatedStyle: (t) => new iV(t),
34746
34762
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
34747
34763
  getComponentProps: ({ scrollTop: t, scrollLeft: e, ...r }) => r
34748
- }), sV = oV.animated;
34749
- const lV = ({
34764
+ });
34765
+ const sV = ({
34750
34766
  slide: t,
34751
34767
  index: e,
34752
34768
  selected: r,
@@ -34767,14 +34783,14 @@ const lV = ({
34767
34783
  /* @__PURE__ */ A.createElement("div", { className: Hn.thumbnail }, /* @__PURE__ */ A.createElement(q3, { slide: t, size: 112 })),
34768
34784
  /* @__PURE__ */ A.createElement("div", { className: kt(Hn.label) }, U6(e + 1, 2))
34769
34785
  );
34770
- }, uV = ({ className: t }) => {
34786
+ }, lV = ({ className: t }) => {
34771
34787
  const {
34772
34788
  selectedSlidesIndex: e,
34773
34789
  updateSelectedSlidesIndex: r
34774
34790
  } = xt(), { slides: n, slideIndex: i, updateSlideIndex: a } = Rt(), o = nt(
34775
34791
  () => [...e, i],
34776
34792
  [e, i]
34777
- ), s = bt(null), [{ scrollTop: l }, u] = Y$(() => ({
34793
+ ), s = bt(null), [{ scrollTop: l }, u] = Z$(() => ({
34778
34794
  scrollTop: 0,
34779
34795
  config: {
34780
34796
  tension: 300,
@@ -34813,28 +34829,25 @@ const lV = ({
34813
34829
  };
34814
34830
  return Lt(() => {
34815
34831
  c();
34816
- }, [i, n.length]), /* @__PURE__ */ A.createElement(
34817
- sV.div,
34832
+ }, [i, n.length]), // <animated.div
34833
+ // className={clsx(styles.thumbnails, className)}
34834
+ // ref={containerRef}
34835
+ // scrollTop={scrollTop}
34836
+ // >
34837
+ /* @__PURE__ */ A.createElement("div", { className: kt(Hn.thumbnails, t) }, /* @__PURE__ */ A.createElement("div", { className: kt("thumbnail-list", Hn.thumbnailList) }, n.map((h, p) => /* @__PURE__ */ A.createElement("div", { className: Hn.thumbnailContainer, key: h.id }, /* @__PURE__ */ A.createElement(
34838
+ sV,
34818
34839
  {
34819
- className: kt(Hn.thumbnails, t),
34820
- ref: s,
34821
- scrollTop: l
34822
- },
34823
- /* @__PURE__ */ A.createElement("div", { className: kt("thumbnail-list", Hn.thumbnailList) }, n.map((h, p) => /* @__PURE__ */ A.createElement("div", { className: Hn.thumbnailContainer, key: h.id }, /* @__PURE__ */ A.createElement(
34824
- lV,
34825
- {
34826
- slide: h,
34827
- index: p,
34828
- active: i === p,
34829
- selected: o.includes(p),
34830
- onClick: () => d(p)
34831
- }
34832
- ))))
34833
- );
34834
- }, $V = () => /* @__PURE__ */ A.createElement(uV, null);
34840
+ slide: h,
34841
+ index: p,
34842
+ active: i === p,
34843
+ selected: o.includes(p),
34844
+ onClick: () => d(p)
34845
+ }
34846
+ )))));
34847
+ }, BV = () => /* @__PURE__ */ A.createElement(lV, null);
34835
34848
  export {
34836
34849
  qt as ElementTypes,
34837
- BV as PPTCanvas,
34838
- $V as PPThumbnails,
34850
+ IV as PPTCanvas,
34851
+ BV as PPThumbnails,
34839
34852
  Bt as ShapePathFormulasKeys
34840
34853
  };