@animaapp/anima-sdk 0.17.0 → 0.19.0

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.
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ function Me(e) {
36
36
  for (; --t >= 0; )
37
37
  e[t] = 0;
38
38
  }
39
- const Vr = 0, ar = 1, Hr = 2, Wr = 3, qr = 258, _n = 29, lt = 256, Ye = lt + 1 + _n, Re = 30, pn = 19, ir = 2 * Ye + 1, we = 15, jt = 16, Gr = 7, gn = 256, sr = 16, or = 17, lr = 18, Wt = (
39
+ const Vr = 0, ar = 1, Hr = 2, Wr = 3, qr = 258, _n = 29, ct = 256, Qe = ct + 1 + _n, Re = 30, pn = 19, ir = 2 * Qe + 1, we = 15, jt = 16, Gr = 7, gn = 256, sr = 16, or = 17, lr = 18, Wt = (
40
40
  /* extra bits for each length code */
41
41
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0])
42
42
  ), xt = (
@@ -45,14 +45,14 @@ const Vr = 0, ar = 1, Hr = 2, Wr = 3, qr = 258, _n = 29, lt = 256, Ye = lt + 1 +
45
45
  ), Kr = (
46
46
  /* extra bits for each bit length code */
47
47
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7])
48
- ), cr = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Jr = 512, se = new Array((Ye + 2) * 2);
48
+ ), cr = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Jr = 512, se = new Array((Qe + 2) * 2);
49
49
  Me(se);
50
- const Je = new Array(Re * 2);
51
- Me(Je);
52
- const Qe = new Array(Jr);
53
- Me(Qe);
54
- const et = new Array(qr - Wr + 1);
50
+ const Xe = new Array(Re * 2);
51
+ Me(Xe);
52
+ const et = new Array(Jr);
55
53
  Me(et);
54
+ const tt = new Array(qr - Wr + 1);
55
+ Me(tt);
56
56
  const mn = new Array(_n);
57
57
  Me(mn);
58
58
  const Tt = new Array(Re);
@@ -64,10 +64,10 @@ let dr, ur, fr;
64
64
  function Mt(e, t) {
65
65
  this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
66
66
  }
67
- const hr = (e) => e < 256 ? Qe[e] : Qe[256 + (e >>> 7)], tt = (e, t) => {
67
+ const hr = (e) => e < 256 ? et[e] : et[256 + (e >>> 7)], nt = (e, t) => {
68
68
  e.pending_buf[e.pending++] = t & 255, e.pending_buf[e.pending++] = t >>> 8 & 255;
69
69
  }, M = (e, t, n) => {
70
- e.bi_valid > jt - n ? (e.bi_buf |= t << e.bi_valid & 65535, tt(e, e.bi_buf), e.bi_buf = t >> jt - e.bi_valid, e.bi_valid += n - jt) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += n);
70
+ e.bi_valid > jt - n ? (e.bi_buf |= t << e.bi_valid & 65535, nt(e, e.bi_buf), e.bi_buf = t >> jt - e.bi_valid, e.bi_valid += n - jt) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += n);
71
71
  }, Q = (e, t, n) => {
72
72
  M(
73
73
  e,
@@ -82,7 +82,7 @@ const hr = (e) => e < 256 ? Qe[e] : Qe[256 + (e >>> 7)], tt = (e, t) => {
82
82
  while (--t > 0);
83
83
  return n >>> 1;
84
84
  }, Xr = (e) => {
85
- e.bi_valid === 16 ? (tt(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
85
+ e.bi_valid === 16 ? (nt(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
86
86
  }, Yr = (e, t) => {
87
87
  const n = t.dyn_tree, r = t.max_code, a = t.stat_desc.static_tree, i = t.stat_desc.has_stree, s = t.stat_desc.extra_bits, o = t.stat_desc.extra_base, c = t.stat_desc.max_length;
88
88
  let l, h, T, y, N, I, P = 0;
@@ -114,13 +114,13 @@ const hr = (e) => e < 256 ? Qe[e] : Qe[256 + (e >>> 7)], tt = (e, t) => {
114
114
  const i = new Array(we + 1);
115
115
  for (n = 0, r = 0; r < _n - 1; r++)
116
116
  for (mn[r] = n, e = 0; e < 1 << Wt[r]; e++)
117
- et[n++] = r;
118
- for (et[n - 1] = r, a = 0, r = 0; r < 16; r++)
117
+ tt[n++] = r;
118
+ for (tt[n - 1] = r, a = 0, r = 0; r < 16; r++)
119
119
  for (Tt[r] = a, e = 0; e < 1 << xt[r]; e++)
120
- Qe[a++] = r;
120
+ et[a++] = r;
121
121
  for (a >>= 7; r < Re; r++)
122
122
  for (Tt[r] = a << 7, e = 0; e < 1 << xt[r] - 7; e++)
123
- Qe[256 + a++] = r;
123
+ et[256 + a++] = r;
124
124
  for (t = 0; t <= we; t++)
125
125
  i[t] = 0;
126
126
  for (e = 0; e <= 143; )
@@ -131,12 +131,12 @@ const hr = (e) => e < 256 ? Qe[e] : Qe[256 + (e >>> 7)], tt = (e, t) => {
131
131
  se[e * 2 + 1] = 7, e++, i[7]++;
132
132
  for (; e <= 287; )
133
133
  se[e * 2 + 1] = 8, e++, i[8]++;
134
- for (pr(se, Ye + 1, i), e = 0; e < Re; e++)
135
- Je[e * 2 + 1] = 5, Je[e * 2] = _r(e, 5);
136
- dr = new $t(se, Wt, lt + 1, Ye, we), ur = new $t(Je, xt, 0, Re, we), fr = new $t(new Array(0), Kr, 0, pn, Gr);
134
+ for (pr(se, Qe + 1, i), e = 0; e < Re; e++)
135
+ Xe[e * 2 + 1] = 5, Xe[e * 2] = _r(e, 5);
136
+ dr = new $t(se, Wt, ct + 1, Qe, we), ur = new $t(Xe, xt, 0, Re, we), fr = new $t(new Array(0), Kr, 0, pn, Gr);
137
137
  }, gr = (e) => {
138
138
  let t;
139
- for (t = 0; t < Ye; t++)
139
+ for (t = 0; t < Qe; t++)
140
140
  e.dyn_ltree[t * 2] = 0;
141
141
  for (t = 0; t < Re; t++)
142
142
  e.dyn_dtree[t * 2] = 0;
@@ -144,7 +144,7 @@ const hr = (e) => e < 256 ? Qe[e] : Qe[256 + (e >>> 7)], tt = (e, t) => {
144
144
  e.bl_tree[t * 2] = 0;
145
145
  e.dyn_ltree[gn * 2] = 1, e.opt_len = e.static_len = 0, e.sym_next = e.matches = 0;
146
146
  }, mr = (e) => {
147
- e.bi_valid > 8 ? tt(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
147
+ e.bi_valid > 8 ? nt(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
148
148
  }, Tn = (e, t, n, r) => {
149
149
  const a = t * 2, i = n * 2;
150
150
  return e[a] < e[i] || e[a] === e[i] && r[t] <= r[n];
@@ -158,7 +158,7 @@ const hr = (e) => e < 256 ? Qe[e] : Qe[256 + (e >>> 7)], tt = (e, t) => {
158
158
  let r, a, i = 0, s, o;
159
159
  if (e.sym_next !== 0)
160
160
  do
161
- r = e.pending_buf[e.sym_buf + i++] & 255, r += (e.pending_buf[e.sym_buf + i++] & 255) << 8, a = e.pending_buf[e.sym_buf + i++], r === 0 ? Q(e, a, t) : (s = et[a], Q(e, s + lt + 1, t), o = Wt[s], o !== 0 && (a -= mn[s], M(e, a, o)), r--, s = hr(r), Q(e, s, n), o = xt[s], o !== 0 && (r -= Tt[s], M(e, r, o)));
161
+ r = e.pending_buf[e.sym_buf + i++] & 255, r += (e.pending_buf[e.sym_buf + i++] & 255) << 8, a = e.pending_buf[e.sym_buf + i++], r === 0 ? Q(e, a, t) : (s = tt[a], Q(e, s + ct + 1, t), o = Wt[s], o !== 0 && (a -= mn[s], M(e, a, o)), r--, s = hr(r), Q(e, s, n), o = xt[s], o !== 0 && (r -= Tt[s], M(e, r, o)));
162
162
  while (i < e.sym_next);
163
163
  Q(e, gn, t);
164
164
  }, qt = (e, t) => {
@@ -232,7 +232,7 @@ const hr = (e) => e < 256 ? Qe[e] : Qe[256 + (e >>> 7)], tt = (e, t) => {
232
232
  return 0;
233
233
  if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0)
234
234
  return 1;
235
- for (n = 32; n < lt; n++)
235
+ for (n = 32; n < ct; n++)
236
236
  if (e.dyn_ltree[n * 2] !== 0)
237
237
  return 1;
238
238
  return 0;
@@ -241,13 +241,13 @@ let Cn = !1;
241
241
  const ra = (e) => {
242
242
  Cn || (Qr(), Cn = !0), e.l_desc = new Mt(e.dyn_ltree, dr), e.d_desc = new Mt(e.dyn_dtree, ur), e.bl_desc = new Mt(e.bl_tree, fr), e.bi_buf = 0, e.bi_valid = 0, gr(e);
243
243
  }, yr = (e, t, n, r) => {
244
- M(e, (Vr << 1) + (r ? 1 : 0), 3), mr(e), tt(e, n), tt(e, ~n), n && e.pending_buf.set(e.window.subarray(t, t + n), e.pending), e.pending += n;
244
+ M(e, (Vr << 1) + (r ? 1 : 0), 3), mr(e), nt(e, n), nt(e, ~n), n && e.pending_buf.set(e.window.subarray(t, t + n), e.pending), e.pending += n;
245
245
  }, aa = (e) => {
246
246
  M(e, ar << 1, 3), Q(e, gn, se), Xr(e);
247
247
  }, ia = (e, t, n, r) => {
248
248
  let a, i, s = 0;
249
- e.level > 0 ? (e.strm.data_type === 2 && (e.strm.data_type = na(e)), qt(e, e.l_desc), qt(e, e.d_desc), s = ea(e), a = e.opt_len + 3 + 7 >>> 3, i = e.static_len + 3 + 7 >>> 3, i <= a && (a = i)) : a = i = n + 5, n + 4 <= a && t !== -1 ? yr(e, t, n, r) : e.strategy === 4 || i === a ? (M(e, (ar << 1) + (r ? 1 : 0), 3), En(e, se, Je)) : (M(e, (Hr << 1) + (r ? 1 : 0), 3), ta(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), En(e, e.dyn_ltree, e.dyn_dtree)), gr(e), r && mr(e);
250
- }, sa = (e, t, n) => (e.pending_buf[e.sym_buf + e.sym_next++] = t, e.pending_buf[e.sym_buf + e.sym_next++] = t >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = n, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(et[n] + lt + 1) * 2]++, e.dyn_dtree[hr(t) * 2]++), e.sym_next === e.sym_end);
249
+ e.level > 0 ? (e.strm.data_type === 2 && (e.strm.data_type = na(e)), qt(e, e.l_desc), qt(e, e.d_desc), s = ea(e), a = e.opt_len + 3 + 7 >>> 3, i = e.static_len + 3 + 7 >>> 3, i <= a && (a = i)) : a = i = n + 5, n + 4 <= a && t !== -1 ? yr(e, t, n, r) : e.strategy === 4 || i === a ? (M(e, (ar << 1) + (r ? 1 : 0), 3), En(e, se, Xe)) : (M(e, (Hr << 1) + (r ? 1 : 0), 3), ta(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), En(e, e.dyn_ltree, e.dyn_dtree)), gr(e), r && mr(e);
250
+ }, sa = (e, t, n) => (e.pending_buf[e.sym_buf + e.sym_next++] = t, e.pending_buf[e.sym_buf + e.sym_next++] = t >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = n, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(tt[n] + ct + 1) * 2]++, e.dyn_dtree[hr(t) * 2]++), e.sym_next === e.sym_end);
251
251
  var oa = ra, la = yr, ca = ia, da = sa, ua = aa, fa = {
252
252
  _tr_init: oa,
253
253
  _tr_stored_block: la,
@@ -343,13 +343,13 @@ const { _tr_init: ma, _tr_stored_block: Gt, _tr_flush_block: ya, _tr_tally: _e,
343
343
  Z_BUF_ERROR: Pt,
344
344
  Z_DEFAULT_COMPRESSION: ka,
345
345
  Z_FILTERED: Sa,
346
- Z_HUFFMAN_ONLY: yt,
346
+ Z_HUFFMAN_ONLY: vt,
347
347
  Z_RLE: Ta,
348
348
  Z_FIXED: Ea,
349
349
  Z_DEFAULT_STRATEGY: Aa,
350
350
  Z_UNKNOWN: Oa,
351
351
  Z_DEFLATED: zt
352
- } = br, Ca = 9, Ra = 15, Na = 8, Ia = 29, Za = 256, Kt = Za + 1 + Ia, za = 30, Da = 19, La = 2 * Kt + 1, Fa = 15, x = 3, he = 258, ne = he + x + 1, ja = 32, Ie = 42, yn = 57, Jt = 69, Xt = 73, Yt = 91, Qt = 103, xe = 113, We = 666, j = 1, Ue = 2, Se = 3, Pe = 4, $a = 3, ke = (e, t) => (e.msg = Et[t], t), In = (e) => e * 2 - (e > 4 ? 9 : 0), fe = (e) => {
352
+ } = br, Ca = 9, Ra = 15, Na = 8, Ia = 29, Za = 256, Kt = Za + 1 + Ia, za = 30, Da = 19, La = 2 * Kt + 1, Fa = 15, x = 3, he = 258, ne = he + x + 1, ja = 32, Ie = 42, yn = 57, Jt = 69, Xt = 73, Yt = 91, Qt = 103, xe = 113, qe = 666, j = 1, Ue = 2, Se = 3, Pe = 4, $a = 3, ke = (e, t) => (e.msg = Et[t], t), In = (e) => e * 2 - (e > 4 ? 9 : 0), fe = (e) => {
353
353
  let t = e.length;
354
354
  for (; --t >= 0; )
355
355
  e[t] = 0;
@@ -499,7 +499,7 @@ const B = (e) => {
499
499
  function Y(e, t, n, r, a) {
500
500
  this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = a;
501
501
  }
502
- const qe = [
502
+ const Ge = [
503
503
  /* good lazy nice chain */
504
504
  new Y(0, 0, 0, 0, xr),
505
505
  /* 0 store only */
@@ -522,20 +522,20 @@ const qe = [
522
522
  new Y(32, 258, 258, 4096, Ae)
523
523
  /* 9 max compression */
524
524
  ], Va = (e) => {
525
- e.window_size = 2 * e.w_size, fe(e.head), e.max_lazy_match = qe[e.level].max_lazy, e.good_match = qe[e.level].good_length, e.nice_match = qe[e.level].nice_length, e.max_chain_length = qe[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = x - 1, e.match_available = 0, e.ins_h = 0;
525
+ e.window_size = 2 * e.w_size, fe(e.head), e.max_lazy_match = Ge[e.level].max_lazy, e.good_match = Ge[e.level].good_length, e.nice_match = Ge[e.level].nice_length, e.max_chain_length = Ge[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = x - 1, e.match_available = 0, e.ins_h = 0;
526
526
  };
527
527
  function Ha() {
528
528
  this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = zt, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(La * 2), this.dyn_dtree = new Uint16Array((2 * za + 1) * 2), this.bl_tree = new Uint16Array((2 * Da + 1) * 2), fe(this.dyn_ltree), fe(this.dyn_dtree), fe(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(Fa + 1), this.heap = new Uint16Array(2 * Kt + 1), fe(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Kt + 1), fe(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
529
529
  }
530
- const ct = (e) => {
530
+ const dt = (e) => {
531
531
  if (!e)
532
532
  return 1;
533
533
  const t = e.state;
534
534
  return !t || t.strm !== e || t.status !== Ie && //#ifdef GZIP
535
535
  t.status !== yn && //#endif
536
- t.status !== Jt && t.status !== Xt && t.status !== Yt && t.status !== Qt && t.status !== xe && t.status !== We ? 1 : 0;
536
+ t.status !== Jt && t.status !== Xt && t.status !== Yt && t.status !== Qt && t.status !== xe && t.status !== qe ? 1 : 0;
537
537
  }, kr = (e) => {
538
- if (ct(e))
538
+ if (dt(e))
539
539
  return ke(e, te);
540
540
  e.total_in = e.total_out = 0, e.data_type = Oa;
541
541
  const t = e.state;
@@ -547,7 +547,7 @@ const ct = (e) => {
547
547
  }, Sr = (e) => {
548
548
  const t = kr(e);
549
549
  return t === D && Va(e.state), t;
550
- }, Wa = (e, t) => ct(e) || e.state.wrap !== 2 ? te : (e.state.gzhead = t, D), Tr = (e, t, n, r, a, i) => {
550
+ }, Wa = (e, t) => dt(e) || e.state.wrap !== 2 ? te : (e.state.gzhead = t, D), Tr = (e, t, n, r, a, i) => {
551
551
  if (!e)
552
552
  return te;
553
553
  let s = 1;
@@ -557,10 +557,10 @@ const ct = (e) => {
557
557
  const o = new Ha();
558
558
  return e.state = o, o.strm = e, o.status = Ie, o.wrap = s, o.gzhead = null, o.w_bits = r, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = a + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + x - 1) / x), o.window = new Uint8Array(o.w_size * 2), o.head = new Uint16Array(o.hash_size), o.prev = new Uint16Array(o.w_size), o.lit_bufsize = 1 << a + 6, o.pending_buf_size = o.lit_bufsize * 4, o.pending_buf = new Uint8Array(o.pending_buf_size), o.sym_buf = o.lit_bufsize, o.sym_end = (o.lit_bufsize - 1) * 3, o.level = t, o.strategy = i, o.method = n, Sr(e);
559
559
  }, qa = (e, t) => Tr(e, t, zt, Ra, Na, Aa), Ga = (e, t) => {
560
- if (ct(e) || t > Rn || t < 0)
560
+ if (dt(e) || t > Rn || t < 0)
561
561
  return e ? ke(e, te) : te;
562
562
  const n = e.state;
563
- if (!e.output || e.avail_in !== 0 && !e.input || n.status === We && t !== q)
563
+ if (!e.output || e.avail_in !== 0 && !e.input || n.status === qe && t !== q)
564
564
  return ke(e, e.avail_out === 0 ? Pt : te);
565
565
  const r = n.last_flush;
566
566
  if (n.last_flush = t, n.pending !== 0) {
@@ -568,11 +568,11 @@ const ct = (e) => {
568
568
  return n.last_flush = -1, D;
569
569
  } else if (e.avail_in === 0 && In(t) <= In(r) && t !== q)
570
570
  return ke(e, Pt);
571
- if (n.status === We && e.avail_in !== 0)
571
+ if (n.status === qe && e.avail_in !== 0)
572
572
  return ke(e, Pt);
573
573
  if (n.status === Ie && n.wrap === 0 && (n.status = xe), n.status === Ie) {
574
574
  let a = zt + (n.w_bits - 8 << 4) << 8, i = -1;
575
- if (n.strategy >= yt || n.level < 2 ? i = 0 : n.level < 6 ? i = 1 : n.level === 6 ? i = 2 : i = 3, a |= i << 6, n.strstart !== 0 && (a |= ja), a += 31 - a % 31, He(n, a), n.strstart !== 0 && (He(n, e.adler >>> 16), He(n, e.adler & 65535)), e.adler = 1, n.status = xe, B(e), n.pending !== 0)
575
+ if (n.strategy >= vt || n.level < 2 ? i = 0 : n.level < 6 ? i = 1 : n.level === 6 ? i = 2 : i = 3, a |= i << 6, n.strstart !== 0 && (a |= ja), a += 31 - a % 31, He(n, a), n.strstart !== 0 && (He(n, e.adler >>> 16), He(n, e.adler & 65535)), e.adler = 1, n.status = xe, B(e), n.pending !== 0)
576
576
  return n.last_flush = -1, D;
577
577
  }
578
578
  if (n.status === yn) {
@@ -580,8 +580,8 @@ const ct = (e) => {
580
580
  A(
581
581
  n,
582
582
  (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)
583
- ), A(n, n.gzhead.time & 255), A(n, n.gzhead.time >> 8 & 255), A(n, n.gzhead.time >> 16 & 255), A(n, n.gzhead.time >> 24 & 255), A(n, n.level === 9 ? 2 : n.strategy >= yt || n.level < 2 ? 4 : 0), A(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (A(n, n.gzhead.extra.length & 255), A(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = de(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Jt;
584
- else if (A(n, 0), A(n, 0), A(n, 0), A(n, 0), A(n, 0), A(n, n.level === 9 ? 2 : n.strategy >= yt || n.level < 2 ? 4 : 0), A(n, $a), n.status = xe, B(e), n.pending !== 0)
583
+ ), A(n, n.gzhead.time & 255), A(n, n.gzhead.time >> 8 & 255), A(n, n.gzhead.time >> 16 & 255), A(n, n.gzhead.time >> 24 & 255), A(n, n.level === 9 ? 2 : n.strategy >= vt || n.level < 2 ? 4 : 0), A(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (A(n, n.gzhead.extra.length & 255), A(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = de(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Jt;
584
+ else if (A(n, 0), A(n, 0), A(n, 0), A(n, 0), A(n, 0), A(n, n.level === 9 ? 2 : n.strategy >= vt || n.level < 2 ? 4 : 0), A(n, $a), n.status = xe, B(e), n.pending !== 0)
585
585
  return n.last_flush = -1, D;
586
586
  }
587
587
  if (n.status === Jt) {
@@ -637,22 +637,22 @@ const ct = (e) => {
637
637
  if (n.status = xe, B(e), n.pending !== 0)
638
638
  return n.last_flush = -1, D;
639
639
  }
640
- if (e.avail_in !== 0 || n.lookahead !== 0 || t !== pe && n.status !== We) {
641
- let a = n.level === 0 ? xr(n, t) : n.strategy === yt ? Ba(n, t) : n.strategy === Ta ? Pa(n, t) : qe[n.level].func(n, t);
642
- if ((a === Se || a === Pe) && (n.status = We), a === j || a === Se)
640
+ if (e.avail_in !== 0 || n.lookahead !== 0 || t !== pe && n.status !== qe) {
641
+ let a = n.level === 0 ? xr(n, t) : n.strategy === vt ? Ba(n, t) : n.strategy === Ta ? Pa(n, t) : Ge[n.level].func(n, t);
642
+ if ((a === Se || a === Pe) && (n.status = qe), a === j || a === Se)
643
643
  return e.avail_out === 0 && (n.last_flush = -1), D;
644
644
  if (a === Ue && (t === ba ? va(n) : t !== Rn && (Gt(n, 0, 0, !1), t === wa && (fe(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), B(e), e.avail_out === 0))
645
645
  return n.last_flush = -1, D;
646
646
  }
647
647
  return t !== q ? D : n.wrap <= 0 ? Nn : (n.wrap === 2 ? (A(n, e.adler & 255), A(n, e.adler >> 8 & 255), A(n, e.adler >> 16 & 255), A(n, e.adler >> 24 & 255), A(n, e.total_in & 255), A(n, e.total_in >> 8 & 255), A(n, e.total_in >> 16 & 255), A(n, e.total_in >> 24 & 255)) : (He(n, e.adler >>> 16), He(n, e.adler & 65535)), B(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? D : Nn);
648
648
  }, Ka = (e) => {
649
- if (ct(e))
649
+ if (dt(e))
650
650
  return te;
651
651
  const t = e.state.status;
652
652
  return e.state = null, t === xe ? ke(e, xa) : D;
653
653
  }, Ja = (e, t) => {
654
654
  let n = t.length;
655
- if (ct(e))
655
+ if (dt(e))
656
656
  return te;
657
657
  const r = e.state, a = r.wrap;
658
658
  if (a === 2 || a === 1 && r.status !== Ie || r.lookahead)
@@ -672,7 +672,7 @@ const ct = (e) => {
672
672
  }
673
673
  return r.strstart += r.lookahead, r.block_start = r.strstart, r.insert = r.lookahead, r.lookahead = 0, r.match_length = r.prev_length = x - 1, r.match_available = 0, e.next_in = s, e.input = o, e.avail_in = i, r.wrap = a, D;
674
674
  };
675
- var Xa = qa, Ya = Tr, Qa = Sr, ei = kr, ti = Wa, ni = Ga, ri = Ka, ai = Ja, ii = "pako deflate (from Nodeca project)", Xe = {
675
+ var Xa = qa, Ya = Tr, Qa = Sr, ei = kr, ti = Wa, ni = Ga, ri = Ka, ai = Ja, ii = "pako deflate (from Nodeca project)", Ye = {
676
676
  deflateInit: Xa,
677
677
  deflateInit2: Ya,
678
678
  deflateReset: Qa,
@@ -716,10 +716,10 @@ try {
716
716
  } catch (e) {
717
717
  Ar = !1;
718
718
  }
719
- const nt = new Uint8Array(256);
719
+ const rt = new Uint8Array(256);
720
720
  for (let e = 0; e < 256; e++)
721
- nt[e] = e >= 252 ? 6 : e >= 248 ? 5 : e >= 240 ? 4 : e >= 224 ? 3 : e >= 192 ? 2 : 1;
722
- nt[254] = nt[254] = 1;
721
+ rt[e] = e >= 252 ? 6 : e >= 248 ? 5 : e >= 240 ? 4 : e >= 224 ? 3 : e >= 192 ? 2 : 1;
722
+ rt[254] = rt[254] = 1;
723
723
  var ci = (e) => {
724
724
  if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
725
725
  return new TextEncoder().encode(e);
@@ -750,7 +750,7 @@ var ui = (e, t) => {
750
750
  i[a++] = s;
751
751
  continue;
752
752
  }
753
- let o = nt[s];
753
+ let o = rt[s];
754
754
  if (o > 4) {
755
755
  i[a++] = 65533, r += o - 1;
756
756
  continue;
@@ -769,7 +769,7 @@ var ui = (e, t) => {
769
769
  let n = t - 1;
770
770
  for (; n >= 0 && (e[n] & 192) === 128; )
771
771
  n--;
772
- return n < 0 || n === 0 ? t : n + nt[e[n]] > t ? n : t;
772
+ return n < 0 || n === 0 ? t : n + rt[e[n]] > t ? n : t;
773
773
  }, Or = {
774
774
  string2buf: ci,
775
775
  buf2string: ui,
@@ -801,7 +801,7 @@ function Dt(e) {
801
801
  }, e || {});
802
802
  let t = this.options;
803
803
  t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new _i(), this.strm.avail_out = 0;
804
- let n = Xe.deflateInit2(
804
+ let n = Ye.deflateInit2(
805
805
  this.strm,
806
806
  t.level,
807
807
  t.method,
@@ -811,9 +811,9 @@ function Dt(e) {
811
811
  );
812
812
  if (n !== At)
813
813
  throw new Error(Et[n]);
814
- if (t.header && Xe.deflateSetHeader(this.strm, t.header), t.dictionary) {
814
+ if (t.header && Ye.deflateSetHeader(this.strm, t.header), t.dictionary) {
815
815
  let r;
816
- if (typeof t.dictionary == "string" ? r = Or.string2buf(t.dictionary) : Cr.call(t.dictionary) === "[object ArrayBuffer]" ? r = new Uint8Array(t.dictionary) : r = t.dictionary, n = Xe.deflateSetDictionary(this.strm, r), n !== At)
816
+ if (typeof t.dictionary == "string" ? r = Or.string2buf(t.dictionary) : Cr.call(t.dictionary) === "[object ArrayBuffer]" ? r = new Uint8Array(t.dictionary) : r = t.dictionary, n = Ye.deflateSetDictionary(this.strm, r), n !== At)
817
817
  throw new Error(Et[n]);
818
818
  this._dict_set = !0;
819
819
  }
@@ -828,8 +828,8 @@ Dt.prototype.push = function(e, t) {
828
828
  this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
829
829
  continue;
830
830
  }
831
- if (a = Xe.deflate(n, i), a === vi)
832
- return n.next_out > 0 && this.onData(n.output.subarray(0, n.next_out)), a = Xe.deflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === At;
831
+ if (a = Ye.deflate(n, i), a === vi)
832
+ return n.next_out > 0 && this.onData(n.output.subarray(0, n.next_out)), a = Ye.deflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === At;
833
833
  if (n.avail_out === 0) {
834
834
  this.onData(n.output);
835
835
  continue;
@@ -1233,7 +1233,7 @@ class $ {
1233
1233
  }
1234
1234
  const m = Object.freeze({
1235
1235
  status: "aborted"
1236
- }), Ge = (e) => ({ status: "dirty", value: e }), G = (e) => ({ status: "valid", value: e }), $n = (e) => e.status === "aborted", Mn = (e) => e.status === "dirty", ze = (e) => e.status === "valid", Ot = (e) => typeof Promise != "undefined" && e instanceof Promise;
1236
+ }), Ke = (e) => ({ status: "dirty", value: e }), G = (e) => ({ status: "valid", value: e }), $n = (e) => e.status === "aborted", Mn = (e) => e.status === "dirty", ze = (e) => e.status === "valid", Ot = (e) => typeof Promise != "undefined" && e instanceof Promise;
1237
1237
  var p;
1238
1238
  (function(e) {
1239
1239
  e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
@@ -2071,7 +2071,7 @@ De.create = (e) => new De(d({
2071
2071
  typeName: g.ZodNumber,
2072
2072
  coerce: (e == null ? void 0 : e.coerce) || !1
2073
2073
  }, b(e)));
2074
- class rt extends k {
2074
+ class at extends k {
2075
2075
  constructor() {
2076
2076
  super(...arguments), this.min = this.gte, this.max = this.lte;
2077
2077
  }
@@ -2127,7 +2127,7 @@ class rt extends k {
2127
2127
  return this.setLimit("max", t, !1, p.toString(n));
2128
2128
  }
2129
2129
  setLimit(t, n, r, a) {
2130
- return new rt(v(d({}, this._def), {
2130
+ return new at(v(d({}, this._def), {
2131
2131
  checks: [
2132
2132
  ...this._def.checks,
2133
2133
  {
@@ -2140,7 +2140,7 @@ class rt extends k {
2140
2140
  }));
2141
2141
  }
2142
2142
  _addCheck(t) {
2143
- return new rt(v(d({}, this._def), {
2143
+ return new at(v(d({}, this._def), {
2144
2144
  checks: [...this._def.checks, t]
2145
2145
  }));
2146
2146
  }
@@ -2196,9 +2196,9 @@ class rt extends k {
2196
2196
  return t;
2197
2197
  }
2198
2198
  }
2199
- rt.create = (e) => {
2199
+ at.create = (e) => {
2200
2200
  var t;
2201
- return new rt(d({
2201
+ return new at(d({
2202
2202
  checks: [],
2203
2203
  typeName: g.ZodBigInt,
2204
2204
  coerce: (t = e == null ? void 0 : e.coerce) != null ? t : !1
@@ -3013,7 +3013,7 @@ qn.create = (e, t, n) => new qn(d({
3013
3013
  keyType: e,
3014
3014
  typeName: g.ZodMap
3015
3015
  }, b(n)));
3016
- class at extends k {
3016
+ class it extends k {
3017
3017
  _parse(t) {
3018
3018
  const { status: n, ctx: r } = this._processInputParams(t);
3019
3019
  if (r.parsedType !== _.set)
@@ -3052,12 +3052,12 @@ class at extends k {
3052
3052
  return r.common.async ? Promise.all(o).then((c) => s(c)) : s(o);
3053
3053
  }
3054
3054
  min(t, n) {
3055
- return new at(v(d({}, this._def), {
3055
+ return new it(v(d({}, this._def), {
3056
3056
  minSize: { value: t, message: p.toString(n) }
3057
3057
  }));
3058
3058
  }
3059
3059
  max(t, n) {
3060
- return new at(v(d({}, this._def), {
3060
+ return new it(v(d({}, this._def), {
3061
3061
  maxSize: { value: t, message: p.toString(n) }
3062
3062
  }));
3063
3063
  }
@@ -3068,7 +3068,7 @@ class at extends k {
3068
3068
  return this.min(1, t);
3069
3069
  }
3070
3070
  }
3071
- at.create = (e, t) => new at(d({
3071
+ it.create = (e, t) => new it(d({
3072
3072
  valueType: e,
3073
3073
  minSize: null,
3074
3074
  maxSize: null,
@@ -3241,7 +3241,7 @@ class Fe extends k {
3241
3241
  path: r.path,
3242
3242
  parent: r
3243
3243
  });
3244
- return c.status === "aborted" ? m : c.status === "dirty" || n.value === "dirty" ? Ge(c.value) : c;
3244
+ return c.status === "aborted" ? m : c.status === "dirty" || n.value === "dirty" ? Ke(c.value) : c;
3245
3245
  }));
3246
3246
  {
3247
3247
  if (n.value === "aborted")
@@ -3251,7 +3251,7 @@ class Fe extends k {
3251
3251
  path: r.path,
3252
3252
  parent: r
3253
3253
  });
3254
- return o.status === "aborted" ? m : o.status === "dirty" || n.value === "dirty" ? Ge(o.value) : o;
3254
+ return o.status === "aborted" ? m : o.status === "dirty" || n.value === "dirty" ? Ke(o.value) : o;
3255
3255
  }
3256
3256
  }
3257
3257
  if (a.type === "refinement") {
@@ -3424,7 +3424,7 @@ class vn extends k {
3424
3424
  path: r.path,
3425
3425
  parent: r
3426
3426
  });
3427
- return i.status === "aborted" ? m : i.status === "dirty" ? (n.dirty(), Ge(i.value)) : this._def.out._parseAsync({
3427
+ return i.status === "aborted" ? m : i.status === "dirty" ? (n.dirty(), Ke(i.value)) : this._def.out._parseAsync({
3428
3428
  data: i.value,
3429
3429
  path: r.path,
3430
3430
  parent: r
@@ -3471,7 +3471,7 @@ var g;
3471
3471
  (function(e) {
3472
3472
  e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
3473
3473
  })(g || (g = {}));
3474
- const vt = le.create, ss = De.create, K = nn.create, os = rn.create;
3474
+ const We = le.create, ss = De.create, K = nn.create, os = rn.create;
3475
3475
  ye.create;
3476
3476
  const Xn = re.create, bt = z.create, ls = Rt.create;
3477
3477
  Nt.create;
@@ -3490,13 +3490,13 @@ const ds = bt({
3490
3490
  ls([
3491
3491
  bt({
3492
3492
  framework: Yn("react"),
3493
- model: vt().optional(),
3493
+ model: We().optional(),
3494
3494
  styling: wt(["plain_css", "tailwind", "inline_styles"]),
3495
3495
  uiLibrary: wt(["mui", "antd", "radix", "shadcn", "clean_react", "custom_design_system"]).optional(),
3496
3496
  responsivePages: Xn(
3497
3497
  bt({
3498
- name: vt(),
3499
- framesId: Xn(vt())
3498
+ name: We(),
3499
+ framesId: Xn(We())
3500
3500
  })
3501
3501
  ).optional(),
3502
3502
  enableUILibraryTheming: K().optional(),
@@ -3506,8 +3506,9 @@ const ds = bt({
3506
3506
  enableAnimationsPreset: K().optional(),
3507
3507
  enableAutoSplit: K().optional(),
3508
3508
  autoSplitThreshold: ss().optional(),
3509
- url: vt().url().optional(),
3510
- codegenSettings: cs(os()).optional()
3509
+ url: We().url().optional(),
3510
+ codegenSettings: cs(os()).optional(),
3511
+ designSystemId: We().optional()
3511
3512
  }),
3512
3513
  bt({
3513
3514
  framework: Yn("html"),
@@ -3590,8 +3591,8 @@ function ps() {
3590
3591
  });
3591
3592
  var ve = typeDetectGlobalObject;
3592
3593
  return delete R.typeDetectGlobalObject, ve;
3593
- })(Object.prototype), a = typeof Symbol != "undefined", i = typeof Map != "undefined", s = typeof Set != "undefined", o = typeof WeakMap != "undefined", c = typeof WeakSet != "undefined", l = typeof DataView != "undefined", h = a && typeof Symbol.iterator != "undefined", T = a && typeof Symbol.toStringTag != "undefined", y = s && typeof Set.prototype.entries == "function", N = i && typeof Map.prototype.entries == "function", I = y && Object.getPrototypeOf((/* @__PURE__ */ new Set()).entries()), P = N && Object.getPrototypeOf((/* @__PURE__ */ new Map()).entries()), Be = h && typeof Array.prototype[Symbol.iterator] == "function", ft = Be && Object.getPrototypeOf([][Symbol.iterator]()), Ve = h && typeof String.prototype[Symbol.iterator] == "function", ht = Ve && Object.getPrototypeOf(""[Symbol.iterator]()), _t = 8, pt = -1;
3594
- function gt(R) {
3594
+ })(Object.prototype), a = typeof Symbol != "undefined", i = typeof Map != "undefined", s = typeof Set != "undefined", o = typeof WeakMap != "undefined", c = typeof WeakSet != "undefined", l = typeof DataView != "undefined", h = a && typeof Symbol.iterator != "undefined", T = a && typeof Symbol.toStringTag != "undefined", y = s && typeof Set.prototype.entries == "function", N = i && typeof Map.prototype.entries == "function", I = y && Object.getPrototypeOf((/* @__PURE__ */ new Set()).entries()), P = N && Object.getPrototypeOf((/* @__PURE__ */ new Map()).entries()), Be = h && typeof Array.prototype[Symbol.iterator] == "function", ht = Be && Object.getPrototypeOf([][Symbol.iterator]()), Ve = h && typeof String.prototype[Symbol.iterator] == "function", _t = Ve && Object.getPrototypeOf(""[Symbol.iterator]()), pt = 8, gt = -1;
3595
+ function mt(R) {
3595
3596
  var ve = typeof R;
3596
3597
  if (ve !== "object")
3597
3598
  return ve;
@@ -3625,9 +3626,9 @@ function ps() {
3625
3626
  if (typeof Ee == "string")
3626
3627
  return Ee;
3627
3628
  var Z = Object.getPrototypeOf(R);
3628
- return Z === RegExp.prototype ? "RegExp" : Z === Date.prototype ? "Date" : n && Z === Promise.prototype ? "Promise" : s && Z === Set.prototype ? "Set" : i && Z === Map.prototype ? "Map" : c && Z === WeakSet.prototype ? "WeakSet" : o && Z === WeakMap.prototype ? "WeakMap" : l && Z === DataView.prototype ? "DataView" : i && Z === P ? "Map Iterator" : s && Z === I ? "Set Iterator" : Be && Z === ft ? "Array Iterator" : Ve && Z === ht ? "String Iterator" : Z === null ? "Object" : Object.prototype.toString.call(R).slice(_t, pt);
3629
+ return Z === RegExp.prototype ? "RegExp" : Z === Date.prototype ? "Date" : n && Z === Promise.prototype ? "Promise" : s && Z === Set.prototype ? "Set" : i && Z === Map.prototype ? "Map" : c && Z === WeakSet.prototype ? "WeakSet" : o && Z === WeakMap.prototype ? "WeakMap" : l && Z === DataView.prototype ? "DataView" : i && Z === P ? "Map Iterator" : s && Z === I ? "Set Iterator" : Be && Z === ht ? "Array Iterator" : Ve && Z === _t ? "String Iterator" : Z === null ? "Object" : Object.prototype.toString.call(R).slice(pt, gt);
3629
3630
  }
3630
- return gt;
3631
+ return mt;
3631
3632
  }));
3632
3633
  })(kt)), kt.exports;
3633
3634
  }
@@ -3895,7 +3896,7 @@ function fn(e, t, n, r, a) {
3895
3896
  }
3896
3897
  return t;
3897
3898
  }
3898
- var it, Ne, oe, W, U, hn, St, Ke;
3899
+ var st, Ne, oe, W, U, hn, St, Je;
3899
3900
  class $s {
3900
3901
  constructor({
3901
3902
  fetch: t = globalThis.fetch.bind(globalThis),
@@ -3903,11 +3904,11 @@ class $s {
3903
3904
  defaultOptions: r = {}
3904
3905
  } = {}) {
3905
3906
  X(this, U);
3906
- X(this, it);
3907
+ X(this, st);
3907
3908
  X(this, Ne);
3908
3909
  X(this, oe);
3909
3910
  X(this, W);
3910
- H(this, it, n), H(this, Ne, t), H(this, W, r), H(this, oe, w(this, W)), r.token && L(this, U, hn).call(this, r.token);
3911
+ H(this, st, n), H(this, Ne, t), H(this, W, r), H(this, oe, w(this, W)), r.token && L(this, U, hn).call(this, r.token);
3911
3912
  }
3912
3913
  hasDefaultToken() {
3913
3914
  return !!w(this, W).token;
@@ -3942,7 +3943,7 @@ class $s {
3942
3943
  });
3943
3944
  n.length > 0 && i.append("ids", n.join(",")), r && i.append("depth", `${r}`);
3944
3945
  const s = i.toString(), o = `v1/files/${t}?${s}`;
3945
- return yield L(this, U, Ke).call(this, o);
3946
+ return yield L(this, U, Je).call(this, o);
3946
3947
  });
3947
3948
  }
3948
3949
  getNodeImages(s) {
@@ -3953,7 +3954,7 @@ class $s {
3953
3954
  as: a = "arrayBuffer",
3954
3955
  format: i = "jpg"
3955
3956
  }) {
3956
- const c = (yield L(this, U, Ke).call(this, `v1/images/${t}?ids=${n}&format=${i}&scale=${r}`)).images;
3957
+ const c = (yield L(this, U, Je).call(this, `v1/images/${t}?ids=${n}&format=${i}&scale=${r}`)).images;
3957
3958
  if (a === "links")
3958
3959
  return c;
3959
3960
  const l = n.map((y) => O(this, null, function* () {
@@ -3978,16 +3979,16 @@ class $s {
3978
3979
  }) {
3979
3980
  var i, s;
3980
3981
  const r = `v1/files/${t}/images`;
3981
- return (s = (i = (yield L(this, U, Ke).call(this, r)).meta) == null ? void 0 : i.images) != null ? s : {};
3982
+ return (s = (i = (yield L(this, U, Je).call(this, r)).meta) == null ? void 0 : i.images) != null ? s : {};
3982
3983
  });
3983
3984
  }
3984
3985
  getMe() {
3985
3986
  return O(this, null, function* () {
3986
- return yield L(this, U, Ke).call(this, "v1/me");
3987
+ return yield L(this, U, Je).call(this, "v1/me");
3987
3988
  });
3988
3989
  }
3989
3990
  }
3990
- it = new WeakMap(), Ne = new WeakMap(), oe = new WeakMap(), W = new WeakMap(), U = new WeakSet(), hn = function(t) {
3991
+ st = new WeakMap(), Ne = new WeakMap(), oe = new WeakMap(), W = new WeakMap(), U = new WeakSet(), hn = function(t) {
3991
3992
  if (!t.startsWith("figd_") && !t.startsWith("figu_"))
3992
3993
  throw new Ci();
3993
3994
  }, St = function(t, n) {
@@ -4040,12 +4041,12 @@ it = new WeakMap(), Ne = new WeakMap(), oe = new WeakMap(), W = new WeakMap(), U
4040
4041
  }
4041
4042
  return r;
4042
4043
  });
4043
- }, Ke = function(t) {
4044
+ }, Je = function(t) {
4044
4045
  return O(this, null, function* () {
4045
4046
  const n = rr(w(this, oe));
4046
4047
  H(this, oe, rr(w(this, W)));
4047
4048
  const r = () => O(this, null, function* () {
4048
- return yield w(this, Ne).call(this, `${w(this, it)}${t}`, {
4049
+ return yield w(this, Ne).call(this, `${w(this, st)}${t}`, {
4049
4050
  method: "GET",
4050
4051
  headers: this.getHeaders(n.token),
4051
4052
  signal: n.abortSignal
@@ -4068,7 +4069,7 @@ const Ms = {
4068
4069
  l2c: "l2c",
4069
4070
  p2c: "p2c"
4070
4071
  };
4071
- var C, st, ot, ee, jr, Ce;
4072
+ var C, ot, lt, ee, jr, Ce;
4072
4073
  class to {
4073
4074
  constructor({
4074
4075
  auth: t,
@@ -4077,9 +4078,9 @@ class to {
4077
4078
  } = {}) {
4078
4079
  X(this, ee);
4079
4080
  X(this, C);
4080
- X(this, st);
4081
4081
  X(this, ot);
4082
- H(this, st, n), H(this, ot, r), t && (this.auth = t);
4082
+ X(this, lt);
4083
+ H(this, ot, n), H(this, lt, r), t && (this.auth = t);
4083
4084
  }
4084
4085
  hasAuth() {
4085
4086
  return !!w(this, C);
@@ -4098,7 +4099,7 @@ class to {
4098
4099
  var l;
4099
4100
  let i;
4100
4101
  try {
4101
- i = yield w(this, ot).withOptions({ token: t.figmaToken, abortSignal: r }).getFile({
4102
+ i = yield w(this, lt).withOptions({ token: t.figmaToken, abortSignal: r }).getFile({
4102
4103
  fileKey: t.fileKey
4103
4104
  });
4104
4105
  } catch (h) {
@@ -4270,7 +4271,7 @@ class to {
4270
4271
  });
4271
4272
  }
4272
4273
  }
4273
- C = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), ee = new WeakSet(), jr = function(t, n, r) {
4274
+ C = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), ee = new WeakSet(), jr = function(t, n, r) {
4274
4275
  return O(this, null, function* () {
4275
4276
  const i = n.map(
4276
4277
  (s) => fs(t, s, r)
@@ -4285,7 +4286,7 @@ C = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), ee = new WeakSet(), j
4285
4286
  });
4286
4287
  }, Ce = function(t, n, r, a, i, s) {
4287
4288
  return O(this, null, function* () {
4288
- var P, Be, ft, Ve, ht, _t, pt, gt, R, ve, Ee;
4289
+ var P, Be, ht, Ve, _t, pt, gt, mt, R, ve, Ee;
4289
4290
  if (this.hasAuth() === !1)
4290
4291
  throw new Error('It needs to set "auth" before calling this method.');
4291
4292
  const o = {}, c = {
@@ -4302,7 +4303,7 @@ C = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), ee = new WeakSet(), j
4302
4303
  "Content-Type": "application/json"
4303
4304
  });
4304
4305
  }
4305
- const l = yield fetch(`${w(this, st)}${n}`, c);
4306
+ const l = yield fetch(`${w(this, ot)}${n}`, c);
4306
4307
  if (!l.ok) {
4307
4308
  const Z = yield l.text();
4308
4309
  let J;
@@ -4347,11 +4348,11 @@ C = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), ee = new WeakSet(), j
4347
4348
  const Lt = I.split(`
4348
4349
  `);
4349
4350
  I = Lt.pop() || "";
4350
- for (const mt of Lt)
4351
- if (!(!mt.trim() || mt.startsWith(":")) && mt.startsWith("data: ")) {
4351
+ for (const yt of Lt)
4352
+ if (!(!yt.trim() || yt.startsWith(":")) && yt.startsWith("data: ")) {
4352
4353
  let S;
4353
4354
  try {
4354
- S = JSON.parse(mt.slice(6));
4355
+ S = JSON.parse(yt.slice(6));
4355
4356
  } catch (Ks) {
4356
4357
  continue;
4357
4358
  }
@@ -4363,7 +4364,7 @@ C = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), ee = new WeakSet(), j
4363
4364
  break;
4364
4365
  }
4365
4366
  case "start": {
4366
- o.sessionId = S.sessionId, typeof a == "function" ? a(S) : (ft = a.onStart) == null || ft.call(a, { sessionId: S.sessionId });
4367
+ o.sessionId = S.sessionId, typeof a == "function" ? a(S) : (ht = a.onStart) == null || ht.call(a, { sessionId: S.sessionId });
4367
4368
  break;
4368
4369
  }
4369
4370
  case "pre_codegen": {
@@ -4373,22 +4374,22 @@ C = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), ee = new WeakSet(), j
4373
4374
  break;
4374
4375
  }
4375
4376
  case "assets_uploaded": {
4376
- typeof a == "function" ? a(S) : (ht = a.onAssetsUploaded) == null || ht.call(a);
4377
+ typeof a == "function" ? a(S) : (_t = a.onAssetsUploaded) == null || _t.call(a);
4377
4378
  break;
4378
4379
  }
4379
4380
  case "assets_list": {
4380
- o.assets = S.payload.assets, typeof a == "function" ? a(S) : (_t = a.onAssetsList) == null || _t.call(a, S.payload);
4381
+ o.assets = S.payload.assets, typeof a == "function" ? a(S) : (pt = a.onAssetsList) == null || pt.call(a, S.payload);
4381
4382
  break;
4382
4383
  }
4383
4384
  case "figma_metadata": {
4384
- i === "codegen" && (o.figmaFileName = S.figmaFileName, o.figmaSelectedFrameName = S.figmaSelectedFrameName, typeof a == "function" ? a(S) : (pt = a.onFigmaMetadata) == null || pt.call(a, {
4385
+ i === "codegen" && (o.figmaFileName = S.figmaFileName, o.figmaSelectedFrameName = S.figmaSelectedFrameName, typeof a == "function" ? a(S) : (gt = a.onFigmaMetadata) == null || gt.call(a, {
4385
4386
  figmaFileName: S.figmaFileName,
4386
4387
  figmaSelectedFrameName: S.figmaSelectedFrameName
4387
4388
  }));
4388
4389
  break;
4389
4390
  }
4390
4391
  case "generating_code": {
4391
- S.payload.status === "success" && (o.files = S.payload.files), typeof a == "function" ? a(S) : (gt = a.onGeneratingCode) == null || gt.call(a, {
4392
+ S.payload.status === "success" && (o.files = S.payload.files), typeof a == "function" ? a(S) : (mt = a.onGeneratingCode) == null || mt.call(a, {
4392
4393
  status: S.payload.status,
4393
4394
  progress: S.payload.progress,
4394
4395
  files: S.payload.files
@@ -4509,7 +4510,7 @@ function Ps(e, t) {
4509
4510
  function Bs(e, t) {
4510
4511
  return Object.keys(e).filter((n) => n.startsWith(t));
4511
4512
  }
4512
- function dt(e, t, n) {
4513
+ function ut(e, t, n) {
4513
4514
  return new ReadableStream({
4514
4515
  start(r) {
4515
4516
  n.call(e, t, (a) => {
@@ -4537,8 +4538,8 @@ function dt(e, t, n) {
4537
4538
  }
4538
4539
  });
4539
4540
  }
4540
- const Vs = (e, t) => dt(e, t, e.generateCode);
4541
- function ut(e) {
4541
+ const Vs = (e, t) => ut(e, t, e.generateCode);
4542
+ function ft(e) {
4542
4543
  return O(this, null, function* () {
4543
4544
  var s, o, c, l;
4544
4545
  const [t, n] = e.tee(), r = yield t.getReader().read();
@@ -4574,19 +4575,19 @@ data: ${JSON.stringify(
4574
4575
  }
4575
4576
  const so = (e, t) => O(null, null, function* () {
4576
4577
  const n = Vs(e, t);
4577
- return ut(n);
4578
- }), Hs = (e, t) => dt(e, t, e.generateCodeFromWebsite), oo = (e, t) => O(null, null, function* () {
4578
+ return ft(n);
4579
+ }), Hs = (e, t) => ut(e, t, e.generateCodeFromWebsite), oo = (e, t) => O(null, null, function* () {
4579
4580
  const n = Hs(e, t);
4580
- return ut(n);
4581
- }), Ws = (e, t) => dt(e, t, e.generateCodeFromPrompt), lo = (e, t) => O(null, null, function* () {
4581
+ return ft(n);
4582
+ }), Ws = (e, t) => ut(e, t, e.generateCodeFromPrompt), lo = (e, t) => O(null, null, function* () {
4582
4583
  const n = Ws(e, t);
4583
- return ut(n);
4584
- }), qs = (e, t) => dt(e, t, e.attachToGenerationJob), co = (e, t) => O(null, null, function* () {
4584
+ return ft(n);
4585
+ }), qs = (e, t) => ut(e, t, e.attachToGenerationJob), co = (e, t) => O(null, null, function* () {
4585
4586
  const n = qs(e, t);
4586
- return ut(n);
4587
- }), Gs = (e, t) => dt(e, t, e.generateLink2Code), uo = (e, t) => O(null, null, function* () {
4587
+ return ft(n);
4588
+ }), Gs = (e, t) => ut(e, t, e.generateLink2Code), uo = (e, t) => O(null, null, function* () {
4588
4589
  const n = Gs(e, t);
4589
- return ut(n);
4590
+ return ft(n);
4590
4591
  });
4591
4592
  export {
4592
4593
  to as Anima,