@animaapp/anima-sdk-react 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ var qr = (t, e, n) => e in t ? sa(t, e, { enumerable: !0, configurable: !0, writ
9
9
  for (var n of Br(e))
10
10
  ua.call(e, n) && qr(t, n, e[n]);
11
11
  return t;
12
- }, Kr = (t, e) => aa(t, ia(e));
12
+ }, Hr = (t, e) => aa(t, ia(e));
13
13
  var Be = (t, e, n) => new Promise((r, s) => {
14
14
  var a = (u) => {
15
15
  try {
@@ -35,7 +35,7 @@ const ya = (t) => {
35
35
  return btoa(e);
36
36
  };
37
37
  var ga = Object.defineProperty, _a = (t, e, n) => e in t ? ga(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, tn = (t, e, n) => _a(t, typeof e != "symbol" ? e + "" : e, n);
38
- class Hr extends Error {
38
+ class Kr extends Error {
39
39
  constructor(e, n) {
40
40
  super(e), tn(this, "type"), tn(this, "field"), tn(this, "value"), tn(this, "line"), this.name = "ParseError", this.type = n.type, this.field = n.field, this.value = n.value, this.line = n.line;
41
41
  }
@@ -82,7 +82,7 @@ function va(t) {
82
82
  break;
83
83
  case "retry":
84
84
  /^\d+$/.test(v) ? r(parseInt(v, 10)) : n(
85
- new Hr(`Invalid \`retry\` value: "${v}"`, {
85
+ new Kr(`Invalid \`retry\` value: "${v}"`, {
86
86
  type: "invalid-retry",
87
87
  value: v,
88
88
  line: m
@@ -91,7 +91,7 @@ function va(t) {
91
91
  break;
92
92
  default:
93
93
  n(
94
- new Hr(
94
+ new Kr(
95
95
  `Unknown field "${l.length > 20 ? `${l.slice(0, 20)}…` : l}"`,
96
96
  { type: "unknown-field", field: l, value: v, line: m }
97
97
  )
@@ -172,8 +172,8 @@ function wa(t) {
172
172
  const e = globalThis.DOMException;
173
173
  return typeof e == "function" ? new e(t, "SyntaxError") : new SyntaxError(t);
174
174
  }
175
- function Kn(t) {
176
- return t instanceof Error ? "errors" in t && Array.isArray(t.errors) ? t.errors.map(Kn).join(", ") : "cause" in t && t.cause instanceof Error ? `${t}: ${Kn(t.cause)}` : t.message : `${t}`;
175
+ function Hn(t) {
176
+ return t instanceof Error ? "errors" in t && Array.isArray(t.errors) ? t.errors.map(Hn).join(", ") : "cause" in t && t.cause instanceof Error ? `${t}: ${Hn(t.cause)}` : t.message : `${t}`;
177
177
  }
178
178
  function Jr(t) {
179
179
  return {
@@ -187,11 +187,11 @@ function Jr(t) {
187
187
  }
188
188
  var Ss = (t) => {
189
189
  throw TypeError(t);
190
- }, Ar = (t, e, n) => e.has(t) || Ss("Cannot " + n), A = (t, e, n) => (Ar(t, e, "read from private field"), n ? n.call(t) : e.get(t)), U = (t, e, n) => e.has(t) ? Ss("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), L = (t, e, n, r) => (Ar(t, e, "write to private field"), e.set(t, n), n), Ce = (t, e, n) => (Ar(t, e, "access private method"), n), re, He, ut, on, fn, Nt, ft, Pt, Ze, ct, ht, dt, Et, fe, Hn, Gn, Jn, Xr, Xn, Yn, xt, Qn, er;
190
+ }, Ar = (t, e, n) => e.has(t) || Ss("Cannot " + n), A = (t, e, n) => (Ar(t, e, "read from private field"), n ? n.call(t) : e.get(t)), U = (t, e, n) => e.has(t) ? Ss("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), L = (t, e, n, r) => (Ar(t, e, "write to private field"), e.set(t, n), n), Ce = (t, e, n) => (Ar(t, e, "access private method"), n), re, Ke, ut, on, fn, Nt, ft, Pt, Ze, ct, ht, dt, Et, fe, Kn, Gn, Jn, Xr, Xn, Yn, xt, Qn, er;
191
191
  class un extends EventTarget {
192
192
  constructor(e, n) {
193
193
  var r, s;
194
- super(), U(this, fe), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, U(this, re), U(this, He), U(this, ut), U(this, on), U(this, fn), U(this, Nt), U(this, ft), U(this, Pt, null), U(this, Ze), U(this, ct), U(this, ht, null), U(this, dt, null), U(this, Et, null), U(this, Gn, (a) => Be(this, null, function* () {
194
+ super(), U(this, fe), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, U(this, re), U(this, Ke), U(this, ut), U(this, on), U(this, fn), U(this, Nt), U(this, ft), U(this, Pt, null), U(this, Ze), U(this, ct), U(this, ht, null), U(this, dt, null), U(this, Et, null), U(this, Gn, (a) => Be(this, null, function* () {
195
195
  var i;
196
196
  A(this, ct).reset();
197
197
  const { body: o, redirected: u, status: c, headers: h } = a;
@@ -222,25 +222,25 @@ class un extends EventTarget {
222
222
  v && A(this, ct).feed(k.decode(v, { stream: !l })), l && (b = !1, A(this, ct).reset(), Ce(this, fe, Qn).call(this));
223
223
  } while (b);
224
224
  })), U(this, Jn, (a) => {
225
- L(this, Ze, void 0), !(a.name === "AbortError" || a.type === "aborted") && Ce(this, fe, Qn).call(this, Kn(a));
225
+ L(this, Ze, void 0), !(a.name === "AbortError" || a.type === "aborted") && Ce(this, fe, Qn).call(this, Hn(a));
226
226
  }), U(this, Xn, (a) => {
227
227
  typeof a.id == "string" && L(this, Pt, a.id);
228
228
  const i = new MessageEvent(a.event || "message", {
229
229
  data: a.data,
230
- origin: A(this, ut) ? A(this, ut).origin : A(this, He).origin,
230
+ origin: A(this, ut) ? A(this, ut).origin : A(this, Ke).origin,
231
231
  lastEventId: a.id || ""
232
232
  });
233
233
  A(this, dt) && (!a.event || a.event === "message") && A(this, dt).call(this, i), this.dispatchEvent(i);
234
234
  }), U(this, Yn, (a) => {
235
235
  L(this, Nt, a);
236
236
  }), U(this, er, () => {
237
- L(this, ft, void 0), A(this, re) === this.CONNECTING && Ce(this, fe, Hn).call(this);
237
+ L(this, ft, void 0), A(this, re) === this.CONNECTING && Ce(this, fe, Kn).call(this);
238
238
  });
239
239
  try {
240
240
  if (e instanceof URL)
241
- L(this, He, e);
241
+ L(this, Ke, e);
242
242
  else if (typeof e == "string")
243
- L(this, He, new URL(e, ka()));
243
+ L(this, Ke, new URL(e, ka()));
244
244
  else
245
245
  throw new Error("Invalid URL");
246
246
  } catch (a) {
@@ -249,7 +249,7 @@ class un extends EventTarget {
249
249
  L(this, ct, va({
250
250
  onEvent: A(this, Xn),
251
251
  onRetry: A(this, Yn)
252
- })), L(this, re, this.CONNECTING), L(this, Nt, 3e3), L(this, fn, (r = n == null ? void 0 : n.fetch) != null ? r : globalThis.fetch), L(this, on, (s = n == null ? void 0 : n.withCredentials) != null ? s : !1), Ce(this, fe, Hn).call(this);
252
+ })), L(this, re, this.CONNECTING), L(this, Nt, 3e3), L(this, fn, (r = n == null ? void 0 : n.fetch) != null ? r : globalThis.fetch), L(this, on, (s = n == null ? void 0 : n.withCredentials) != null ? s : !1), Ce(this, fe, Kn).call(this);
253
253
  }
254
254
  /**
255
255
  * Returns the state of this EventSource object's connection. It can have the values described below.
@@ -272,7 +272,7 @@ class un extends EventTarget {
272
272
  * @public
273
273
  */
274
274
  get url() {
275
- return A(this, He).href;
275
+ return A(this, Ke).href;
276
276
  }
277
277
  /**
278
278
  * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
@@ -322,13 +322,13 @@ class un extends EventTarget {
322
322
  A(this, ft) && clearTimeout(A(this, ft)), A(this, re) !== this.CLOSED && (A(this, Ze) && A(this, Ze).abort(), L(this, re, this.CLOSED), L(this, Ze, void 0));
323
323
  }
324
324
  }
325
- re = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakSet(), /**
325
+ re = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakSet(), /**
326
326
  * Connect to the given URL and start receiving events
327
327
  *
328
328
  * @internal
329
329
  */
330
- Hn = function() {
331
- L(this, re, this.CONNECTING), L(this, Ze, new AbortController()), A(this, fn)(A(this, He), Ce(this, fe, Xr).call(this)).then(A(this, Gn)).catch(A(this, Jn));
330
+ Kn = function() {
331
+ L(this, re, this.CONNECTING), L(this, Ze, new AbortController()), A(this, fn)(A(this, Ke), Ce(this, fe, Xr).call(this)).then(A(this, Gn)).catch(A(this, Jn));
332
332
  }, Gn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), /**
333
333
  * Get request options for the `fetch()` request
334
334
  *
@@ -476,7 +476,7 @@ function Sn(t) {
476
476
  function On(t) {
477
477
  return t instanceof Set;
478
478
  }
479
- function Ke(t) {
479
+ function He(t) {
480
480
  return t.copy_ || t.base_;
481
481
  }
482
482
  function nr(t, e) {
@@ -524,9 +524,9 @@ function Qe(t) {
524
524
  const e = Ta[t];
525
525
  return e || se(0, t), e;
526
526
  }
527
- var jt;
527
+ var It;
528
528
  function Cs() {
529
- return jt;
529
+ return It;
530
530
  }
531
531
  function Aa(t, e) {
532
532
  return {
@@ -546,10 +546,10 @@ function rr(t) {
546
546
  sr(t), t.drafts_.forEach(Ca), t.drafts_ = null;
547
547
  }
548
548
  function sr(t) {
549
- t === jt && (jt = t.parent_);
549
+ t === It && (It = t.parent_);
550
550
  }
551
551
  function es(t) {
552
- return jt = Aa(jt, t);
552
+ return It = Aa(It, t);
553
553
  }
554
554
  function Ca(t) {
555
555
  const e = t[oe];
@@ -637,7 +637,7 @@ function Na(t, e) {
637
637
  isManual_: !1
638
638
  };
639
639
  let s = r, a = Cr;
640
- n && (s = [r], a = It);
640
+ n && (s = [r], a = jt);
641
641
  const { revoke: i, proxy: o } = Proxy.revocable(s, a);
642
642
  return r.draft_ = o, r.revoke_ = i, o;
643
643
  }
@@ -645,41 +645,41 @@ var Cr = {
645
645
  get(t, e) {
646
646
  if (e === oe)
647
647
  return t;
648
- const n = Ke(t);
648
+ const n = He(t);
649
649
  if (!tr(n, e))
650
650
  return Pa(t, n, e);
651
651
  const r = n[e];
652
- return t.finalized_ || !Ye(r) ? r : r === jn(t.base_, e) ? (In(t), t.copy_[e] = ir(r, t)) : r;
652
+ return t.finalized_ || !Ye(r) ? r : r === In(t.base_, e) ? (jn(t), t.copy_[e] = ir(r, t)) : r;
653
653
  },
654
654
  has(t, e) {
655
- return e in Ke(t);
655
+ return e in He(t);
656
656
  },
657
657
  ownKeys(t) {
658
- return Reflect.ownKeys(Ke(t));
658
+ return Reflect.ownKeys(He(t));
659
659
  },
660
660
  set(t, e, n) {
661
- const r = Ns(Ke(t), e);
661
+ const r = Ns(He(t), e);
662
662
  if (r != null && r.set)
663
663
  return r.set.call(t.draft_, n), !0;
664
664
  if (!t.modified_) {
665
- const s = jn(Ke(t), e), a = s == null ? void 0 : s[oe];
665
+ const s = In(He(t), e), a = s == null ? void 0 : s[oe];
666
666
  if (a && a.base_ === n)
667
667
  return t.copy_[e] = n, t.assigned_[e] = !1, !0;
668
668
  if (Sa(n, s) && (n !== void 0 || tr(t.base_, e)))
669
669
  return !0;
670
- In(t), ar(t);
670
+ jn(t), ar(t);
671
671
  }
672
672
  return t.copy_[e] === n && // special case: handle new props with value 'undefined'
673
673
  (n !== void 0 || e in t.copy_) || // special case: NaN
674
674
  Number.isNaN(n) && Number.isNaN(t.copy_[e]) || (t.copy_[e] = n, t.assigned_[e] = !0), !0;
675
675
  },
676
676
  deleteProperty(t, e) {
677
- return jn(t.base_, e) !== void 0 || e in t.base_ ? (t.assigned_[e] = !1, In(t), ar(t)) : delete t.assigned_[e], t.copy_ && delete t.copy_[e], !0;
677
+ return In(t.base_, e) !== void 0 || e in t.base_ ? (t.assigned_[e] = !1, jn(t), ar(t)) : delete t.assigned_[e], t.copy_ && delete t.copy_[e], !0;
678
678
  },
679
679
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
680
680
  // the same guarantee in ES5 mode.
681
681
  getOwnPropertyDescriptor(t, e) {
682
- const n = Ke(t), r = Reflect.getOwnPropertyDescriptor(n, e);
682
+ const n = He(t), r = Reflect.getOwnPropertyDescriptor(n, e);
683
683
  return r && {
684
684
  writable: !0,
685
685
  configurable: t.type_ !== 1 || e !== "length",
@@ -696,21 +696,21 @@ var Cr = {
696
696
  setPrototypeOf() {
697
697
  se(12);
698
698
  }
699
- }, It = {};
699
+ }, jt = {};
700
700
  hn(Cr, (t, e) => {
701
- It[t] = function() {
701
+ jt[t] = function() {
702
702
  return arguments[0] = arguments[0][0], e.apply(this, arguments);
703
703
  };
704
704
  });
705
- It.deleteProperty = function(t, e) {
706
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(e)) && se(13), It.set.call(this, t, e, void 0);
705
+ jt.deleteProperty = function(t, e) {
706
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(e)) && se(13), jt.set.call(this, t, e, void 0);
707
707
  };
708
- It.set = function(t, e, n) {
708
+ jt.set = function(t, e, n) {
709
709
  return process.env.NODE_ENV !== "production" && e !== "length" && isNaN(parseInt(e)) && se(14), Cr.set.call(this, t[0], e, n, t[0]);
710
710
  };
711
- function jn(t, e) {
711
+ function In(t, e) {
712
712
  const n = t[oe];
713
- return (n ? Ke(n) : t)[e];
713
+ return (n ? He(n) : t)[e];
714
714
  }
715
715
  function Pa(t, e, n) {
716
716
  var s;
@@ -735,7 +735,7 @@ function Ns(t, e) {
735
735
  function ar(t) {
736
736
  t.modified_ || (t.modified_ = !0, t.parent_ && ar(t.parent_));
737
737
  }
738
- function In(t) {
738
+ function jn(t) {
739
739
  t.copy_ || (t.copy_ = nr(
740
740
  t.base_,
741
741
  t.scope_.immer_.useStrictShallowCopy_
@@ -781,7 +781,7 @@ var Ra = class {
781
781
  }, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
782
782
  }
783
783
  createDraft(t) {
784
- Ye(t) || se(8), yt(t) && (t = ja(t));
784
+ Ye(t) || se(8), yt(t) && (t = Ia(t));
785
785
  const e = es(this), n = ir(t, void 0);
786
786
  return n[oe].isManual_ = !0, sr(e), n;
787
787
  }
@@ -828,7 +828,7 @@ function ir(t, e) {
828
828
  const n = Sn(t) ? Qe("MapSet").proxyMap_(t, e) : On(t) ? Qe("MapSet").proxySet_(t, e) : Na(t, e);
829
829
  return (e ? e.scope_ : Cs()).drafts_.push(n), n;
830
830
  }
831
- function ja(t) {
831
+ function Ia(t) {
832
832
  return yt(t) || se(10, t), Ps(t);
833
833
  }
834
834
  function Ps(t) {
@@ -846,7 +846,7 @@ function Ps(t) {
846
846
  As(n, r, Ps(s));
847
847
  }), e && (e.finalized_ = !1), n;
848
848
  }
849
- var ue = new Ra(), Ia = ue.produce;
849
+ var ue = new Ra(), ja = ue.produce;
850
850
  ue.produceWithPatches.bind(
851
851
  ue
852
852
  );
@@ -860,7 +860,7 @@ function Za(t) {
860
860
  return Rt(typeof t == "function" ? t() : t, !0);
861
861
  }), n = e[1];
862
862
  return [e[0], an(function(r) {
863
- n(typeof r == "function" ? Ia(r) : Rt(r));
863
+ n(typeof r == "function" ? ja(r) : Rt(r));
864
864
  }, [])];
865
865
  }
866
866
  const rs = {
@@ -901,7 +901,7 @@ const rs = {
901
901
  };
902
902
  }
903
903
  const o = new un(t, {
904
- fetch: (g, b) => fetch(g, Kr(Ue({}, b), {
904
+ fetch: (g, b) => fetch(g, Hr(Ue({}, b), {
905
905
  method: e,
906
906
  body: JSON.stringify(a)
907
907
  }))
@@ -992,8 +992,8 @@ const rs = {
992
992
  if (R.status === "fulfilled") {
993
993
  const { assetName: D, base64: B } = R.value;
994
994
  q[D] = B;
995
- const j = v ? `${v}/${D}` : D;
996
- l.files[j] = {
995
+ const I = v ? `${v}/${D}` : D;
996
+ l.files[I] = {
997
997
  content: B,
998
998
  isBinary: !0
999
999
  };
@@ -1133,7 +1133,7 @@ function La() {
1133
1133
  return os || (os = 1, process.env.NODE_ENV === "production" ? nn.exports = Da() : nn.exports = Ma()), nn.exports;
1134
1134
  }
1135
1135
  var $a = La();
1136
- const Rs = 0, js = 1, Is = 2, us = 3;
1136
+ const Rs = 0, Is = 1, js = 2, us = 3;
1137
1137
  var cs = Object.prototype.hasOwnProperty;
1138
1138
  function or(t, e) {
1139
1139
  var n, r;
@@ -1201,10 +1201,10 @@ const za = () => dr, [lr, fr] = Jt && window.addEventListener ? [
1201
1201
  }, qa = {
1202
1202
  isOnline: za,
1203
1203
  isVisible: Va
1204
- }, Ka = {
1204
+ }, Ha = {
1205
1205
  initFocus: Ua,
1206
1206
  initReconnect: Ba
1207
- }, ds = !Gt.useId, Zt = !Jt || Fa, Ha = (t) => Wa() ? window.requestAnimationFrame(t) : setTimeout(t, 1), Ln = Zt ? la : fa, $n = typeof navigator != "undefined" && navigator.connection, ls = !Zt && $n && ([
1207
+ }, ds = !Gt.useId, Zt = !Jt || Fa, Ka = (t) => Wa() ? window.requestAnimationFrame(t) : setTimeout(t, 1), Ln = Zt ? la : fa, $n = typeof navigator != "undefined" && navigator.connection, ls = !Zt && $n && ([
1208
1208
  "slow-2g",
1209
1209
  "2g"
1210
1210
  ].includes($n.effectiveType) || $n.saveData), sn = /* @__PURE__ */ new WeakMap(), Fn = (t, e) => ur.prototype.toString.call(t) === `[object ${e}]`;
@@ -1270,14 +1270,14 @@ function Ms(...t) {
1270
1270
  if (!g) return;
1271
1271
  const [b, l] = Ds(e, g), [v, m, z, R] = Pe.get(e), q = () => {
1272
1272
  const le = v[g];
1273
- return (be(a.revalidate) ? a.revalidate(b().data, k) : a.revalidate !== !1) && (delete z[g], delete R[g], le && le[0]) ? le[0](Is).then(() => b().data) : b().data;
1273
+ return (be(a.revalidate) ? a.revalidate(b().data, k) : a.revalidate !== !1) && (delete z[g], delete R[g], le && le[0]) ? le[0](js).then(() => b().data) : b().data;
1274
1274
  };
1275
1275
  if (t.length < 3)
1276
1276
  return q();
1277
1277
  let D = r, B;
1278
- const j = pr();
1278
+ const I = pr();
1279
1279
  m[g] = [
1280
- j,
1280
+ I,
1281
1281
  0
1282
1282
  ];
1283
1283
  const $ = !N(u), Se = b(), M = Se.data, rt = Se._c, ze = N(rt) ? M : rt;
@@ -1293,7 +1293,7 @@ function Ms(...t) {
1293
1293
  if (D && Zs(D))
1294
1294
  if (D = yield D.catch((le) => {
1295
1295
  B = le;
1296
- }), j !== m[g][0]) {
1296
+ }), I !== m[g][0]) {
1297
1297
  if (B) throw B;
1298
1298
  return D;
1299
1299
  } else B && $ && c(B) && (i = !0, l({
@@ -1332,7 +1332,7 @@ const fs = (t, e) => {
1332
1332
  t[n][0] && t[n][0](e);
1333
1333
  }, Xa = (t, e) => {
1334
1334
  if (!Pe.has(t)) {
1335
- const n = Me(Ka, e), r = {}, s = Ms.bind(ee, t);
1335
+ const n = Me(Ha, e), r = {}, s = Ms.bind(ee, t);
1336
1336
  let a = De;
1337
1337
  const i = {}, o = (h, p) => {
1338
1338
  const k = i[h] || [];
@@ -1353,7 +1353,7 @@ const fs = (t, e) => {
1353
1353
  u,
1354
1354
  o
1355
1355
  ]), !Zt)) {
1356
- const h = n.initFocus(setTimeout.bind(ee, fs.bind(ee, r, Rs))), p = n.initReconnect(setTimeout.bind(ee, fs.bind(ee, r, js)));
1356
+ const h = n.initFocus(setTimeout.bind(ee, fs.bind(ee, r, Rs))), p = n.initReconnect(setTimeout.bind(ee, fs.bind(ee, r, Is)));
1357
1357
  a = () => {
1358
1358
  h && h(), p && p(), Pe.delete(t);
1359
1359
  };
@@ -1460,29 +1460,29 @@ const Wn = Gt.use || // This extra generic is to avoid TypeScript mixing up the
1460
1460
  }), zn = {
1461
1461
  dedupe: !0
1462
1462
  }, hi = (t, e, n) => {
1463
- const { cache: r, compare: s, suspense: a, fallbackData: i, revalidateOnMount: o, revalidateIfStale: u, refreshInterval: c, refreshWhenHidden: h, refreshWhenOffline: p, keepPreviousData: k } = n, [g, b, l, v] = Pe.get(r), [m, z] = Pr(t), R = qe(!1), q = qe(!1), D = qe(m), B = qe(e), j = qe(n), $ = () => j.current, Se = () => $().isVisible() && $().isOnline(), [M, rt, ze, le] = Ds(r, m), st = qe({}).current, Yt = N(i) ? N(n.fallback) ? ee : n.fallback[m] : i, Dr = (I, Z) => {
1464
- for (const H in st) {
1465
- const W = H;
1463
+ const { cache: r, compare: s, suspense: a, fallbackData: i, revalidateOnMount: o, revalidateIfStale: u, refreshInterval: c, refreshWhenHidden: h, refreshWhenOffline: p, keepPreviousData: k } = n, [g, b, l, v] = Pe.get(r), [m, z] = Pr(t), R = qe(!1), q = qe(!1), D = qe(m), B = qe(e), I = qe(n), $ = () => I.current, Se = () => $().isVisible() && $().isOnline(), [M, rt, ze, le] = Ds(r, m), st = qe({}).current, Yt = N(i) ? N(n.fallback) ? ee : n.fallback[m] : i, Dr = (j, Z) => {
1464
+ for (const G in st) {
1465
+ const W = G;
1466
1466
  if (W === "data") {
1467
- if (!s(I[W], Z[W]) && (!N(I[W]) || !s(en, Z[W])))
1467
+ if (!s(j[W], Z[W]) && (!N(j[W]) || !s(en, Z[W])))
1468
1468
  return !1;
1469
- } else if (Z[W] !== I[W])
1469
+ } else if (Z[W] !== j[W])
1470
1470
  return !1;
1471
1471
  }
1472
1472
  return !0;
1473
1473
  }, Mr = pa(() => {
1474
- const I = !m || !e ? !1 : N(o) ? $().isPaused() || a ? !1 : u !== !1 : o, Z = (Y) => {
1474
+ const j = !m || !e ? !1 : N(o) ? $().isPaused() || a ? !1 : u !== !1 : o, Z = (Y) => {
1475
1475
  const Oe = Me(Y);
1476
- return delete Oe._k, I ? Ue({
1476
+ return delete Oe._k, j ? Ue({
1477
1477
  isValidating: !0,
1478
1478
  isLoading: !0
1479
1479
  }, Oe) : Oe;
1480
- }, H = M(), W = le(), ye = Z(H), ot = H === W ? ye : Z(W);
1481
- let K = ye;
1480
+ }, G = M(), W = le(), ye = Z(G), ot = G === W ? ye : Z(W);
1481
+ let H = ye;
1482
1482
  return [
1483
1483
  () => {
1484
1484
  const Y = Z(M());
1485
- return Dr(Y, K) ? (K.data = Y.data, K.isLoading = Y.isLoading, K.isValidating = Y.isValidating, K.error = Y.error, K) : (K = Y, Y);
1485
+ return Dr(Y, H) ? (H.data = Y.data, H.isLoading = Y.isLoading, H.isValidating = Y.isValidating, H.error = Y.error, H) : (H = Y, Y);
1486
1486
  },
1487
1487
  () => ot
1488
1488
  ];
@@ -1490,8 +1490,8 @@ const Wn = Gt.use || // This extra generic is to avoid TypeScript mixing up the
1490
1490
  r,
1491
1491
  m
1492
1492
  ]), at = $a.useSyncExternalStore(an(
1493
- (I) => ze(m, (Z, H) => {
1494
- Dr(H, Z) || I();
1493
+ (j) => ze(m, (Z, G) => {
1494
+ Dr(G, Z) || j();
1495
1495
  }),
1496
1496
  // eslint-disable-next-line react-hooks/exhaustive-deps
1497
1497
  [
@@ -1499,12 +1499,12 @@ const Wn = Gt.use || // This extra generic is to avoid TypeScript mixing up the
1499
1499
  m
1500
1500
  ]
1501
1501
  ), Mr[0], Mr[1]), Lr = !R.current, ea = g[m] && g[m].length > 0, it = at.data, Ve = N(it) ? Yt && Zs(Yt) ? Wn(Yt) : Yt : it, Qt = at.error, Cn = qe(Ve), en = k ? N(it) ? N(Cn.current) ? Ve : Cn.current : it : Ve, $r = ea && !N(Qt) ? !1 : Lr && !N(o) ? o : $().isPaused() ? !1 : a ? N(Ve) ? !1 : u : N(Ve) || u, Fr = !!(m && e && Lr && $r), ta = N(at.isValidating) ? Fr : at.isValidating, na = N(at.isLoading) ? Fr : at.isLoading, wt = an(
1502
- (I) => Be(void 0, null, function* () {
1502
+ (j) => Be(void 0, null, function* () {
1503
1503
  const Z = B.current;
1504
1504
  if (!m || !Z || q.current || $().isPaused())
1505
1505
  return !1;
1506
- let H, W, ye = !0;
1507
- const ot = I || {}, K = !l[m] || !ot.dedupe, Y = () => ds ? !q.current && m === D.current && R.current : m === D.current, Oe = {
1506
+ let G, W, ye = !0;
1507
+ const ot = j || {}, H = !l[m] || !ot.dedupe, Y = () => ds ? !q.current && m === D.current && R.current : m === D.current, Oe = {
1508
1508
  isValidating: !1,
1509
1509
  isLoading: !1
1510
1510
  }, zr = () => {
@@ -1517,26 +1517,26 @@ const Wn = Gt.use || // This extra generic is to avoid TypeScript mixing up the
1517
1517
  };
1518
1518
  N(M().data) && (Ur.isLoading = !0);
1519
1519
  try {
1520
- if (K && (rt(Ur), n.loadingTimeout && N(M().data) && setTimeout(() => {
1520
+ if (H && (rt(Ur), n.loadingTimeout && N(M().data) && setTimeout(() => {
1521
1521
  ye && Y() && $().onLoadingSlow(m, n);
1522
1522
  }, n.loadingTimeout), l[m] = [
1523
1523
  Z(z),
1524
1524
  pr()
1525
- ]), [H, W] = l[m], H = yield H, K && setTimeout(Vr, n.dedupingInterval), !l[m] || l[m][1] !== W)
1526
- return K && Y() && $().onDiscarded(m), !1;
1525
+ ]), [G, W] = l[m], G = yield G, H && setTimeout(Vr, n.dedupingInterval), !l[m] || l[m][1] !== W)
1526
+ return H && Y() && $().onDiscarded(m), !1;
1527
1527
  Oe.error = ee;
1528
1528
  const ce = b[m];
1529
1529
  if (!N(ce) && // case 1
1530
1530
  (W <= ce[0] || // case 2
1531
1531
  W <= ce[1] || // case 3
1532
1532
  ce[1] === 0))
1533
- return zr(), K && Y() && $().onDiscarded(m), !1;
1533
+ return zr(), H && Y() && $().onDiscarded(m), !1;
1534
1534
  const Te = M().data;
1535
- Oe.data = s(Te, H) ? Te : H, K && Y() && $().onSuccess(H, m, n);
1535
+ Oe.data = s(Te, G) ? Te : G, H && Y() && $().onSuccess(G, m, n);
1536
1536
  } catch (ce) {
1537
1537
  Vr();
1538
1538
  const Te = $(), { shouldRetryOnError: Nn } = Te;
1539
- Te.isPaused() || (Oe.error = ce, K && Y() && (Te.onError(ce, m, Te), (Nn === !0 || be(Nn) && Nn(ce)) && (!$().revalidateOnFocus || !$().revalidateOnReconnect || Se()) && Te.onErrorRetry(ce, m, Te, (ra) => {
1539
+ Te.isPaused() || (Oe.error = ce, H && Y() && (Te.onError(ce, m, Te), (Nn === !0 || be(Nn) && Nn(ce)) && (!$().revalidateOnFocus || !$().revalidateOnReconnect || Se()) && Te.onErrorRetry(ce, m, Te, (ra) => {
1540
1540
  const Pn = g[m];
1541
1541
  Pn && Pn[0] && Pn[0](us, ra);
1542
1542
  }, {
@@ -1563,24 +1563,24 @@ const Wn = Gt.use || // This extra generic is to avoid TypeScript mixing up the
1563
1563
  ]
1564
1564
  ), Wr = an(
1565
1565
  // Use callback to make sure `keyRef.current` returns latest result every time
1566
- (...I) => Ms(r, D.current, ...I),
1566
+ (...j) => Ms(r, D.current, ...j),
1567
1567
  // eslint-disable-next-line react-hooks/exhaustive-deps
1568
1568
  []
1569
1569
  );
1570
1570
  if (Ln(() => {
1571
- B.current = e, j.current = n, N(it) || (Cn.current = it);
1571
+ B.current = e, I.current = n, N(it) || (Cn.current = it);
1572
1572
  }), Ln(() => {
1573
1573
  if (!m) return;
1574
- const I = wt.bind(ee, zn);
1574
+ const j = wt.bind(ee, zn);
1575
1575
  let Z = 0;
1576
1576
  const W = fi(m, g, (ye, ot = {}) => {
1577
1577
  if (ye == Rs) {
1578
- const K = Date.now();
1579
- $().revalidateOnFocus && K > Z && Se() && (Z = K + $().focusThrottleInterval, I());
1580
- } else if (ye == js)
1581
- $().revalidateOnReconnect && Se() && I();
1578
+ const H = Date.now();
1579
+ $().revalidateOnFocus && H > Z && Se() && (Z = H + $().focusThrottleInterval, j());
1580
+ } else if (ye == Is)
1581
+ $().revalidateOnReconnect && Se() && j();
1582
1582
  else {
1583
- if (ye == Is)
1583
+ if (ye == js)
1584
1584
  return wt();
1585
1585
  if (ye == us)
1586
1586
  return wt(ot);
@@ -1588,22 +1588,22 @@ const Wn = Gt.use || // This extra generic is to avoid TypeScript mixing up the
1588
1588
  });
1589
1589
  return q.current = !1, D.current = m, R.current = !0, rt({
1590
1590
  _k: z
1591
- }), $r && (N(Ve) || Zt ? I() : Ha(I)), () => {
1591
+ }), $r && (N(Ve) || Zt ? j() : Ka(j)), () => {
1592
1592
  q.current = !0, W();
1593
1593
  };
1594
1594
  }, [
1595
1595
  m
1596
1596
  ]), Ln(() => {
1597
- let I;
1597
+ let j;
1598
1598
  function Z() {
1599
1599
  const W = be(c) ? c(M().data) : c;
1600
- W && I !== -1 && (I = setTimeout(H, W));
1600
+ W && j !== -1 && (j = setTimeout(G, W));
1601
1601
  }
1602
- function H() {
1602
+ function G() {
1603
1603
  !M().error && (h || $().isVisible()) && (p || $().isOnline()) ? wt(zn).then(Z) : Z();
1604
1604
  }
1605
1605
  return Z(), () => {
1606
- I && (clearTimeout(I), I = -1);
1606
+ j && (clearTimeout(j), j = -1);
1607
1607
  };
1608
1608
  }, [
1609
1609
  c,
@@ -1613,10 +1613,10 @@ const Wn = Gt.use || // This extra generic is to avoid TypeScript mixing up the
1613
1613
  ]), ma(en), a && N(Ve) && m) {
1614
1614
  if (!ds && Zt)
1615
1615
  throw new Error("Fallback data is required when using Suspense in SSR.");
1616
- B.current = e, j.current = n, q.current = !1;
1617
- const I = v[m];
1618
- if (!N(I)) {
1619
- const Z = Wr(I);
1616
+ B.current = e, I.current = n, q.current = !1;
1617
+ const j = v[m];
1618
+ if (!N(j)) {
1619
+ const Z = Wr(j);
1620
1620
  Wn(Z);
1621
1621
  }
1622
1622
  if (N(Qt)) {
@@ -2209,7 +2209,7 @@ class T {
2209
2209
  }
2210
2210
  catch(e) {
2211
2211
  const n = typeof e == "function" ? e : () => e;
2212
- return new Kt(x(d({}, O(this._def)), {
2212
+ return new Ht(x(d({}, O(this._def)), {
2213
2213
  innerType: this,
2214
2214
  catchValue: n,
2215
2215
  typeName: E.ZodCatch
@@ -2225,7 +2225,7 @@ class T {
2225
2225
  return Xt.create(this, e);
2226
2226
  }
2227
2227
  readonly() {
2228
- return Ht.create(this);
2228
+ return Kt.create(this);
2229
2229
  }
2230
2230
  isOptional() {
2231
2231
  return this.safeParse(void 0).success;
@@ -2236,7 +2236,7 @@ class T {
2236
2236
  }
2237
2237
  const Ei = /^c[^\s-]{8,}$/i, xi = /^[0-9a-z]+$/, Si = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Oi = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Ti = /^[a-z0-9_-]{21}$/i, Ai = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ci = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ni = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Pi = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
2238
2238
  let Vn;
2239
- const Ri = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ji = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Ii = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Zi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Di = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Mi = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, zs = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Li = new RegExp(`^${zs}$`);
2239
+ const Ri = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ii = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, ji = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Zi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Di = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Mi = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, zs = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Li = new RegExp(`^${zs}$`);
2240
2240
  function Vs(t) {
2241
2241
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
2242
2242
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
@@ -2250,7 +2250,7 @@ function Us(t) {
2250
2250
  return n.push(t.local ? "Z?" : "Z"), t.offset && n.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${n.join("|")})`, new RegExp(`^${e}$`);
2251
2251
  }
2252
2252
  function Fi(t, e) {
2253
- return !!((e === "v4" || !e) && Ri.test(t) || (e === "v6" || !e) && Ii.test(t));
2253
+ return !!((e === "v4" || !e) && Ri.test(t) || (e === "v6" || !e) && ji.test(t));
2254
2254
  }
2255
2255
  function Wi(t, e) {
2256
2256
  if (!Ai.test(t))
@@ -2263,7 +2263,7 @@ function Wi(t, e) {
2263
2263
  }
2264
2264
  }
2265
2265
  function zi(t, e) {
2266
- return !!((e === "v4" || !e) && ji.test(t) || (e === "v6" || !e) && Zi.test(t));
2266
+ return !!((e === "v4" || !e) && Ii.test(t) || (e === "v6" || !e) && Zi.test(t));
2267
2267
  }
2268
2268
  class he extends T {
2269
2269
  _parse(e) {
@@ -3553,7 +3553,7 @@ Ft.create = (t, e) => new Ft(d({
3553
3553
  options: t,
3554
3554
  typeName: E.ZodUnion
3555
3555
  }, O(e)));
3556
- const je = (t) => t instanceof Vt ? je(t.schema) : t instanceof me ? je(t.innerType()) : t instanceof Ut ? [t.value] : t instanceof Fe ? t.options : t instanceof Bt ? C.objectValues(t.enum) : t instanceof qt ? je(t._def.innerType) : t instanceof Lt ? [void 0] : t instanceof $t ? [null] : t instanceof we ? [void 0, ...je(t.unwrap())] : t instanceof We ? [null, ...je(t.unwrap())] : t instanceof Rr || t instanceof Ht ? je(t.unwrap()) : t instanceof Kt ? je(t._def.innerType) : [];
3556
+ const Ie = (t) => t instanceof Vt ? Ie(t.schema) : t instanceof me ? Ie(t.innerType()) : t instanceof Ut ? [t.value] : t instanceof Fe ? t.options : t instanceof Bt ? C.objectValues(t.enum) : t instanceof qt ? Ie(t._def.innerType) : t instanceof Lt ? [void 0] : t instanceof $t ? [null] : t instanceof we ? [void 0, ...Ie(t.unwrap())] : t instanceof We ? [null, ...Ie(t.unwrap())] : t instanceof Rr || t instanceof Kt ? Ie(t.unwrap()) : t instanceof Ht ? Ie(t._def.innerType) : [];
3557
3557
  class An extends T {
3558
3558
  _parse(e) {
3559
3559
  const { ctx: n } = this._processInputParams(e);
@@ -3598,7 +3598,7 @@ class An extends T {
3598
3598
  static create(e, n, r) {
3599
3599
  const s = /* @__PURE__ */ new Map();
3600
3600
  for (const a of n) {
3601
- const i = je(a.shape[e]);
3601
+ const i = Ie(a.shape[e]);
3602
3602
  if (!i.length)
3603
3603
  throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
3604
3604
  for (const o of i) {
@@ -4251,7 +4251,7 @@ qt.create = (t, e) => new qt(d({
4251
4251
  typeName: E.ZodDefault,
4252
4252
  defaultValue: typeof e.default == "function" ? e.default : () => e.default
4253
4253
  }, O(e)));
4254
- class Kt extends T {
4254
+ class Ht extends T {
4255
4255
  _parse(e) {
4256
4256
  const { ctx: n } = this._processInputParams(e), r = x(d({}, n), {
4257
4257
  common: x(d({}, n.common), {
@@ -4284,7 +4284,7 @@ class Kt extends T {
4284
4284
  return this._def.innerType;
4285
4285
  }
4286
4286
  }
4287
- Kt.create = (t, e) => new Kt(d({
4287
+ Ht.create = (t, e) => new Ht(d({
4288
4288
  innerType: t,
4289
4289
  typeName: E.ZodCatch,
4290
4290
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch
@@ -4359,7 +4359,7 @@ class Xt extends T {
4359
4359
  });
4360
4360
  }
4361
4361
  }
4362
- class Ht extends T {
4362
+ class Kt extends T {
4363
4363
  _parse(e) {
4364
4364
  const n = this._def.innerType._parse(e), r = (s) => (et(s) && (s.value = Object.freeze(s.value)), s);
4365
4365
  return Dt(n) ? n.then((s) => r(s)) : r(n);
@@ -4368,7 +4368,7 @@ class Ht extends T {
4368
4368
  return this._def.innerType;
4369
4369
  }
4370
4370
  }
4371
- Ht.create = (t, e) => new Ht(d({
4371
+ Kt.create = (t, e) => new Kt(d({
4372
4372
  innerType: t,
4373
4373
  typeName: E.ZodReadonly
4374
4374
  }, O(e)));
@@ -4390,7 +4390,7 @@ var E;
4390
4390
  })(E || (E = {}));
4391
4391
  const qi = (t, e = {
4392
4392
  message: `Input not instance of ${t.name}`
4393
- }) => qs((n) => n instanceof t, e), Ks = he.create, Hs = Le.create, Ki = En.create, Hi = $e.create, Gs = Mt.create, Gi = tt.create, Ji = bn.create, Xi = Lt.create, Yi = $t.create, Qi = _t.create, eo = Xe.create, to = Re.create, no = wn.create, ro = pe.create, so = F.create, ao = F.strictCreate, io = Ft.create, oo = An.create, uo = Wt.create, co = xe.create, lo = zt.create, fo = kn.create, ho = nt.create, po = pt.create, mo = Vt.create, yo = Ut.create, go = Fe.create, _o = Bt.create, vo = vt.create, ys = me.create, bo = we.create, wo = We.create, ko = me.createWithPreprocess, Eo = Xt.create, xo = () => Ks().optional(), So = () => Hs().optional(), Oo = () => Gs().optional(), To = {
4393
+ }) => qs((n) => n instanceof t, e), Hs = he.create, Ks = Le.create, Hi = En.create, Ki = $e.create, Gs = Mt.create, Gi = tt.create, Ji = bn.create, Xi = Lt.create, Yi = $t.create, Qi = _t.create, eo = Xe.create, to = Re.create, no = wn.create, ro = pe.create, so = F.create, ao = F.strictCreate, io = Ft.create, oo = An.create, uo = Wt.create, co = xe.create, lo = zt.create, fo = kn.create, ho = nt.create, po = pt.create, mo = Vt.create, yo = Ut.create, go = Fe.create, _o = Bt.create, vo = vt.create, ys = me.create, bo = we.create, wo = We.create, ko = me.createWithPreprocess, Eo = Xt.create, xo = () => Hs().optional(), So = () => Ks().optional(), Oo = () => Gs().optional(), To = {
4394
4394
  string: (t) => he.create(x(d({}, t), { coerce: !0 })),
4395
4395
  number: (t) => Le.create(x(d({}, t), { coerce: !0 })),
4396
4396
  boolean: (t) => Mt.create(x(d({}, t), {
@@ -4399,7 +4399,7 @@ const qi = (t, e = {
4399
4399
  bigint: (t) => $e.create(x(d({}, t), { coerce: !0 })),
4400
4400
  date: (t) => tt.create(x(d({}, t), { coerce: !0 }))
4401
4401
  }, Ao = S;
4402
- var G = /* @__PURE__ */ Object.freeze({
4402
+ var K = /* @__PURE__ */ Object.freeze({
4403
4403
  __proto__: null,
4404
4404
  defaultErrorMap: gt,
4405
4405
  setErrorMap: wi,
@@ -4457,12 +4457,12 @@ var G = /* @__PURE__ */ Object.freeze({
4457
4457
  ZodOptional: we,
4458
4458
  ZodNullable: We,
4459
4459
  ZodDefault: qt,
4460
- ZodCatch: Kt,
4460
+ ZodCatch: Ht,
4461
4461
  ZodNaN: En,
4462
4462
  BRAND: Ui,
4463
4463
  ZodBranded: Rr,
4464
4464
  ZodPipeline: Xt,
4465
- ZodReadonly: Ht,
4465
+ ZodReadonly: Kt,
4466
4466
  custom: qs,
4467
4467
  Schema: T,
4468
4468
  ZodSchema: T,
@@ -4473,7 +4473,7 @@ var G = /* @__PURE__ */ Object.freeze({
4473
4473
  coerce: To,
4474
4474
  any: Qi,
4475
4475
  array: ro,
4476
- bigint: Hi,
4476
+ bigint: Ki,
4477
4477
  boolean: Gs,
4478
4478
  date: Gi,
4479
4479
  discriminatedUnion: oo,
@@ -4485,12 +4485,12 @@ var G = /* @__PURE__ */ Object.freeze({
4485
4485
  lazy: mo,
4486
4486
  literal: yo,
4487
4487
  map: fo,
4488
- nan: Ki,
4488
+ nan: Hi,
4489
4489
  nativeEnum: _o,
4490
4490
  never: to,
4491
4491
  null: Yi,
4492
4492
  nullable: wo,
4493
- number: Hs,
4493
+ number: Ks,
4494
4494
  object: so,
4495
4495
  oboolean: Oo,
4496
4496
  onumber: So,
@@ -4502,7 +4502,7 @@ var G = /* @__PURE__ */ Object.freeze({
4502
4502
  record: lo,
4503
4503
  set: ho,
4504
4504
  strictObject: ao,
4505
- string: Ks,
4505
+ string: Hs,
4506
4506
  symbol: Ji,
4507
4507
  transformer: ys,
4508
4508
  tuple: co,
@@ -4515,14 +4515,15 @@ var G = /* @__PURE__ */ Object.freeze({
4515
4515
  quotelessJson: bi,
4516
4516
  ZodError: ie
4517
4517
  });
4518
- G.object({
4519
- language: G.enum(["typescript", "javascript"]).optional()
4518
+ K.object({
4519
+ language: K.enum(["typescript", "javascript"]).optional(),
4520
+ disableMarkedForExport: K.boolean().optional()
4520
4521
  }).and(
4521
- G.union([
4522
- G.object({
4523
- framework: G.literal("react"),
4524
- model: G.string().optional(),
4525
- styling: G.enum([
4522
+ K.union([
4523
+ K.object({
4524
+ framework: K.literal("react"),
4525
+ model: K.string().optional(),
4526
+ styling: K.enum([
4526
4527
  "plain_css",
4527
4528
  "css_modules",
4528
4529
  "styled_components",
@@ -4531,29 +4532,29 @@ G.object({
4531
4532
  "scss",
4532
4533
  "inline_styles"
4533
4534
  ]),
4534
- uiLibrary: G.enum(["mui", "antd", "radix", "shadcn"]).optional(),
4535
- enableUILibraryTheming: G.boolean().optional(),
4536
- enableCompactStructure: G.boolean().optional(),
4537
- enableAutoSplit: G.boolean().optional(),
4538
- autoSplitThreshold: G.number().optional()
4535
+ uiLibrary: K.enum(["mui", "antd", "radix", "shadcn"]).optional(),
4536
+ enableUILibraryTheming: K.boolean().optional(),
4537
+ enableCompactStructure: K.boolean().optional(),
4538
+ enableAutoSplit: K.boolean().optional(),
4539
+ autoSplitThreshold: K.number().optional()
4539
4540
  }),
4540
- G.object({
4541
- framework: G.literal("html"),
4542
- styling: G.enum(["plain_css", "inline_styles"]),
4543
- enableTranslation: G.boolean().optional()
4541
+ K.object({
4542
+ framework: K.literal("html"),
4543
+ styling: K.enum(["plain_css", "inline_styles"]),
4544
+ enableTranslation: K.boolean().optional()
4544
4545
  })
4545
4546
  ])
4546
4547
  );
4547
- var Co = Object.defineProperty, No = Object.defineProperties, Po = Object.getOwnPropertyDescriptors, gs = Object.getOwnPropertySymbols, Ro = Object.prototype.hasOwnProperty, jo = Object.prototype.propertyIsEnumerable, _s = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), Js = (t) => {
4548
+ var Co = Object.defineProperty, No = Object.defineProperties, Po = Object.getOwnPropertyDescriptors, gs = Object.getOwnPropertySymbols, Ro = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, _s = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), Js = (t) => {
4548
4549
  throw TypeError(t);
4549
4550
  }, vs = (t, e, n) => e in t ? Co(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ae = (t, e) => {
4550
4551
  for (var n in e || (e = {}))
4551
4552
  Ro.call(e, n) && vs(t, n, e[n]);
4552
4553
  if (gs)
4553
4554
  for (var n of gs(e))
4554
- jo.call(e, n) && vs(t, n, e[n]);
4555
+ Io.call(e, n) && vs(t, n, e[n]);
4555
4556
  return t;
4556
- }, jr = (t, e) => No(t, Po(e)), Ir = (t, e, n) => e.has(t) || Js("Cannot " + n), P = (t, e, n) => (Ir(t, e, "read from private field"), n ? n.call(t) : e.get(t)), de = (t, e, n) => e.has(t) ? Js("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), J = (t, e, n, r) => (Ir(t, e, "write to private field"), e.set(t, n), n), ve = (t, e, n) => (Ir(t, e, "access private method"), n), V = (t, e, n) => new Promise((r, s) => {
4557
+ }, Ir = (t, e) => No(t, Po(e)), jr = (t, e, n) => e.has(t) || Js("Cannot " + n), P = (t, e, n) => (jr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), de = (t, e, n) => e.has(t) ? Js("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), J = (t, e, n, r) => (jr(t, e, "write to private field"), e.set(t, n), n), ve = (t, e, n) => (jr(t, e, "access private method"), n), V = (t, e, n) => new Promise((r, s) => {
4557
4558
  var a = (u) => {
4558
4559
  try {
4559
4560
  o(n.next(u));
@@ -4568,7 +4569,7 @@ var Co = Object.defineProperty, No = Object.defineProperties, Po = Object.getOwn
4568
4569
  }
4569
4570
  }, o = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(a, i);
4570
4571
  o((n = n.apply(t, e)).next());
4571
- }), Io = (t, e, n) => (e = t[_s("asyncIterator")]) ? e.call(t) : (t = t[_s("iterator")](), e = {}, n = (r, s) => (s = t[r]) && (e[r] = (a) => new Promise((i, o, u) => (a = s.call(t, a), u = a.done, Promise.resolve(a.value).then((c) => i({ value: c, done: u }), o)))), n("next"), n("return"), e), Zo = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
4572
+ }), jo = (t, e, n) => (e = t[_s("asyncIterator")]) ? e.call(t) : (t = t[_s("iterator")](), e = {}, n = (r, s) => (s = t[r]) && (e[r] = (a) => new Promise((i, o, u) => (a = s.call(t, a), u = a.done, Promise.resolve(a.value).then((c) => i({ value: c, done: u }), o)))), n("next"), n("return"), e), Zo = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
4572
4573
  function Do(t) {
4573
4574
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
4574
4575
  }
@@ -4579,41 +4580,41 @@ function Lo() {
4579
4580
  t.exports = r();
4580
4581
  })(Mo, function() {
4581
4582
  var n = typeof Promise == "function", r = typeof self == "object" ? self : Zo, s = typeof Symbol != "undefined", a = typeof Map != "undefined", i = typeof Set != "undefined", o = typeof WeakMap != "undefined", u = typeof WeakSet != "undefined", c = typeof DataView != "undefined", h = s && typeof Symbol.iterator != "undefined", p = s && typeof Symbol.toStringTag != "undefined", k = i && typeof Set.prototype.entries == "function", g = a && typeof Map.prototype.entries == "function", b = k && Object.getPrototypeOf((/* @__PURE__ */ new Set()).entries()), l = g && Object.getPrototypeOf((/* @__PURE__ */ new Map()).entries()), v = h && typeof Array.prototype[Symbol.iterator] == "function", m = v && Object.getPrototypeOf([][Symbol.iterator]()), z = h && typeof String.prototype[Symbol.iterator] == "function", R = z && Object.getPrototypeOf(""[Symbol.iterator]()), q = 8, D = -1;
4582
- function B(j) {
4583
- var $ = typeof j;
4583
+ function B(I) {
4584
+ var $ = typeof I;
4584
4585
  if ($ !== "object")
4585
4586
  return $;
4586
- if (j === null)
4587
+ if (I === null)
4587
4588
  return "null";
4588
- if (j === r)
4589
+ if (I === r)
4589
4590
  return "global";
4590
- if (Array.isArray(j) && (p === !1 || !(Symbol.toStringTag in j)))
4591
+ if (Array.isArray(I) && (p === !1 || !(Symbol.toStringTag in I)))
4591
4592
  return "Array";
4592
4593
  if (typeof window == "object" && window !== null) {
4593
- if (typeof window.location == "object" && j === window.location)
4594
+ if (typeof window.location == "object" && I === window.location)
4594
4595
  return "Location";
4595
- if (typeof window.document == "object" && j === window.document)
4596
+ if (typeof window.document == "object" && I === window.document)
4596
4597
  return "Document";
4597
4598
  if (typeof window.navigator == "object") {
4598
- if (typeof window.navigator.mimeTypes == "object" && j === window.navigator.mimeTypes)
4599
+ if (typeof window.navigator.mimeTypes == "object" && I === window.navigator.mimeTypes)
4599
4600
  return "MimeTypeArray";
4600
- if (typeof window.navigator.plugins == "object" && j === window.navigator.plugins)
4601
+ if (typeof window.navigator.plugins == "object" && I === window.navigator.plugins)
4601
4602
  return "PluginArray";
4602
4603
  }
4603
- if ((typeof window.HTMLElement == "function" || typeof window.HTMLElement == "object") && j instanceof window.HTMLElement) {
4604
- if (j.tagName === "BLOCKQUOTE")
4604
+ if ((typeof window.HTMLElement == "function" || typeof window.HTMLElement == "object") && I instanceof window.HTMLElement) {
4605
+ if (I.tagName === "BLOCKQUOTE")
4605
4606
  return "HTMLQuoteElement";
4606
- if (j.tagName === "TD")
4607
+ if (I.tagName === "TD")
4607
4608
  return "HTMLTableDataCellElement";
4608
- if (j.tagName === "TH")
4609
+ if (I.tagName === "TH")
4609
4610
  return "HTMLTableHeaderCellElement";
4610
4611
  }
4611
4612
  }
4612
- var Se = p && j[Symbol.toStringTag];
4613
+ var Se = p && I[Symbol.toStringTag];
4613
4614
  if (typeof Se == "string")
4614
4615
  return Se;
4615
- var M = Object.getPrototypeOf(j);
4616
- return M === RegExp.prototype ? "RegExp" : M === Date.prototype ? "Date" : n && M === Promise.prototype ? "Promise" : i && M === Set.prototype ? "Set" : a && M === Map.prototype ? "Map" : u && M === WeakSet.prototype ? "WeakSet" : o && M === WeakMap.prototype ? "WeakMap" : c && M === DataView.prototype ? "DataView" : a && M === l ? "Map Iterator" : i && M === b ? "Set Iterator" : v && M === m ? "Array Iterator" : z && M === R ? "String Iterator" : M === null ? "Object" : Object.prototype.toString.call(j).slice(q, D);
4616
+ var M = Object.getPrototypeOf(I);
4617
+ return M === RegExp.prototype ? "RegExp" : M === Date.prototype ? "Date" : n && M === Promise.prototype ? "Promise" : i && M === Set.prototype ? "Set" : a && M === Map.prototype ? "Map" : u && M === WeakSet.prototype ? "WeakSet" : o && M === WeakMap.prototype ? "WeakMap" : c && M === DataView.prototype ? "DataView" : a && M === l ? "Map Iterator" : i && M === b ? "Set Iterator" : v && M === m ? "Array Iterator" : z && M === R ? "String Iterator" : M === null ? "Object" : Object.prototype.toString.call(I).slice(q, D);
4617
4618
  }
4618
4619
  return B;
4619
4620
  });
@@ -4717,7 +4718,7 @@ function ws(t, e, n, r = null) {
4717
4718
  }
4718
4719
  return t;
4719
4720
  }
4720
- const qo = typeof globalThis != "undefined" && globalThis !== null && globalThis.Object === Object && globalThis, Ko = typeof global != "undefined" && global !== null && global.Object === Object && global, Ho = typeof self != "undefined" && self !== null && self.Object === Object && self, Un = qo || Ko || Ho || Function("return this")();
4721
+ const qo = typeof globalThis != "undefined" && globalThis !== null && globalThis.Object === Object && globalThis, Ho = typeof global != "undefined" && global !== null && global.Object === Object && global, Ko = typeof self != "undefined" && self !== null && self.Object === Object && self, Un = qo || Ho || Ko || Function("return this")();
4721
4722
  function Go(t) {
4722
4723
  return t.slice(0);
4723
4724
  }
@@ -4912,7 +4913,7 @@ function lu(t) {
4912
4913
  return V(this, null, function* () {
4913
4914
  const e = new Blob([t]).stream().pipeThrough(new CompressionStream("gzip")), n = [];
4914
4915
  try {
4915
- for (var r = Io(e), s, a, i; s = !(a = yield r.next()).done; s = !1) {
4916
+ for (var r = jo(e), s, a, i; s = !(a = yield r.next()).done; s = !1) {
4916
4917
  const o = a.value;
4917
4918
  n.push(o);
4918
4919
  }
@@ -5016,7 +5017,7 @@ class gu {
5016
5017
  const { overrideBaseAddress: s, overrideDefaultHeaders: a } = r, i = s != null ? s : this.baseAddress;
5017
5018
  let o = a != null ? a : this.headers;
5018
5019
  const u = kt(P(this, ne));
5019
- return J(this, ne, {}), u.extraHeaders && (o = ae(ae({}, o), u.extraHeaders)), u.requestValidation && (o = jr(ae({}, o), { "X-Request-Nonce": Ys(), "X-Request-Timestamp": xr() })), u.async ? yield ve(this, ge, Or).call(this, `${i}${n}`, u.async, { headers: o }) : yield ve(this, ge, Sr).call(this, `${i}${n}`, u, { headers: o });
5020
+ return J(this, ne, {}), u.extraHeaders && (o = ae(ae({}, o), u.extraHeaders)), u.requestValidation && (o = Ir(ae({}, o), { "X-Request-Nonce": Ys(), "X-Request-Timestamp": xr() })), u.async ? yield ve(this, ge, Or).call(this, `${i}${n}`, u.async, { headers: o }) : yield ve(this, ge, Sr).call(this, `${i}${n}`, u, { headers: o });
5020
5021
  });
5021
5022
  }
5022
5023
  post(e, n) {
@@ -5163,7 +5164,7 @@ Je = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), ge = /*
5163
5164
  return V(this, null, function* () {
5164
5165
  const { overrideBaseAddress: a, overrideDefaultHeaders: i } = r, o = a != null ? a : this.baseAddress;
5165
5166
  let u = i != null ? i : this.headers;
5166
- s.extraHeaders && (u = ae(ae({}, u), s.extraHeaders)), s.requestValidation && (u = jr(ae({}, u), { "X-Request-Nonce": Ys(), "X-Request-Timestamp": xr() }));
5167
+ s.extraHeaders && (u = ae(ae({}, u), s.extraHeaders)), s.requestValidation && (u = Ir(ae({}, u), { "X-Request-Nonce": Ys(), "X-Request-Timestamp": xr() }));
5167
5168
  let c = r.skipBodyJsonStringify ? n : JSON.stringify(n);
5168
5169
  return s.compress && du() && (u["Content-Encoding"] = "gzip", c = yield lu(c)), s.async ? yield ve(this, ge, Or).call(this, `${o}${t}`, s.async, {
5169
5170
  method: e,
@@ -5265,7 +5266,7 @@ class ku {
5265
5266
  }
5266
5267
  get(e) {
5267
5268
  return V(this, arguments, function* ({ fileKey: n, nodeIds: r, params: s = {} }) {
5268
- const a = jr(ae({}, s), {
5269
+ const a = Ir(ae({}, s), {
5269
5270
  ids: r.join(",")
5270
5271
  }), i = new URLSearchParams(ae({
5271
5272
  plugin_data: "857346721138427857"
@@ -5275,13 +5276,13 @@ class ku {
5275
5276
  }
5276
5277
  }
5277
5278
  ln = /* @__PURE__ */ new WeakMap();
5278
- var Ie;
5279
+ var je;
5279
5280
  class Eu extends gu {
5280
5281
  constructor({
5281
5282
  baseAddress: e = "https://api.figma.com/",
5282
5283
  fetch: n = globalThis.fetch.bind(globalThis)
5283
5284
  } = {}) {
5284
- super({ fetch: n, baseAddress: e }), de(this, Ie, ""), this.cache = {
5285
+ super({ fetch: n, baseAddress: e }), de(this, je, ""), this.cache = {
5285
5286
  images: {
5286
5287
  entries: /* @__PURE__ */ new Map(),
5287
5288
  pendingRequests: /* @__PURE__ */ new Map()
@@ -5291,19 +5292,19 @@ class Eu extends gu {
5291
5292
  set token(e) {
5292
5293
  if (!e.startsWith("figd_") && !e.startsWith("figu_"))
5293
5294
  throw new Error("Invalid Figma access token");
5294
- J(this, Ie, e);
5295
+ J(this, je, e);
5295
5296
  }
5296
5297
  get token() {
5297
- return P(this, Ie);
5298
+ return P(this, je);
5298
5299
  }
5299
5300
  get headers() {
5300
5301
  const e = {
5301
5302
  "Content-Type": "application/json"
5302
5303
  };
5303
- return P(this, Ie).startsWith("figd_") ? e["X-FIGMA-TOKEN"] = P(this, Ie) : P(this, Ie).startsWith("figu_") && (e.Authorization = `Bearer ${P(this, Ie)}`), e;
5304
+ return P(this, je).startsWith("figd_") ? e["X-FIGMA-TOKEN"] = P(this, je) : P(this, je).startsWith("figu_") && (e.Authorization = `Bearer ${P(this, je)}`), e;
5304
5305
  }
5305
5306
  }
5306
- Ie = /* @__PURE__ */ new WeakMap();
5307
+ je = /* @__PURE__ */ new WeakMap();
5307
5308
  const xu = (t) => ke(void 0, [t], function* ({
5308
5309
  fileKey: e,
5309
5310
  authToken: n,