@shotstack/shotstack-studio 2.14.1 → 2.14.3

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.
@@ -817,7 +817,7 @@ class J6 {
817
817
  }
818
818
  }
819
819
  var Se = /* @__PURE__ */ ((t) => (t.Video = "video", t.Image = "image", t.Audio = "audio", t.Text = "text", t.RichText = "rich-text", t.Luma = "luma", t.Html = "html", t.Html5 = "html5", t.Shape = "shape", t.Caption = "caption", t.Svg = "svg", t.TextToImage = "text-to-image", t.ImageToVideo = "image-to-video", t.TextToSpeech = "text-to-speech", t.RichCaption = "rich-caption", t))(Se || {});
820
- class nr extends J6 {
820
+ class ir extends J6 {
821
821
  static DiscardedFrameCount = 0;
822
822
  layer;
823
823
  shouldDispose;
@@ -1052,7 +1052,7 @@ class nr extends J6 {
1052
1052
  endStaticRender() {
1053
1053
  }
1054
1054
  shouldDiscardFrame() {
1055
- return this.getPlaybackTime() < nr.DiscardedFrameCount;
1055
+ return this.getPlaybackTime() < ir.DiscardedFrameCount;
1056
1056
  }
1057
1057
  /**
1058
1058
  * Handle pointer down — emit click event for selection handling.
@@ -1220,7 +1220,7 @@ class Ms {
1220
1220
  e?.unload();
1221
1221
  }
1222
1222
  }
1223
- class a_ extends nr {
1223
+ class a_ extends ir {
1224
1224
  audioResource;
1225
1225
  isPlaying;
1226
1226
  volumeKeyframeBuilder;
@@ -3665,7 +3665,7 @@ function Ue(t, e, r = { path: [], schemaPath: [] }) {
3665
3665
  h && (s.ref || (s.ref = h), Ue(h, e, c), e.seen.get(h).isParent = !0);
3666
3666
  }
3667
3667
  const u = e.metadataRegistry.get(t);
3668
- return u && Object.assign(s.schema, u), e.io === "input" && yr(t) && (delete s.schema.examples, delete s.schema.default), e.io === "input" && "_prefault" in s.schema && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, e.seen.get(t).schema;
3668
+ return u && Object.assign(s.schema, u), e.io === "input" && gr(t) && (delete s.schema.examples, delete s.schema.default), e.io === "input" && "_prefault" in s.schema && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, e.seen.get(t).schema;
3669
3669
  }
3670
3670
  function l1(t, e) {
3671
3671
  const r = t.seen.get(e);
@@ -3807,7 +3807,7 @@ function c1(t, e) {
3807
3807
  throw new Error("Error converting schema to JSON.");
3808
3808
  }
3809
3809
  }
3810
- function yr(t, e) {
3810
+ function gr(t, e) {
3811
3811
  const r = e ?? { seen: /* @__PURE__ */ new Set() };
3812
3812
  if (r.seen.has(t))
3813
3813
  return !1;
@@ -3816,36 +3816,36 @@ function yr(t, e) {
3816
3816
  if (n.type === "transform")
3817
3817
  return !0;
3818
3818
  if (n.type === "array")
3819
- return yr(n.element, r);
3819
+ return gr(n.element, r);
3820
3820
  if (n.type === "set")
3821
- return yr(n.valueType, r);
3821
+ return gr(n.valueType, r);
3822
3822
  if (n.type === "lazy")
3823
- return yr(n.getter(), r);
3823
+ return gr(n.getter(), r);
3824
3824
  if (n.type === "promise" || n.type === "optional" || n.type === "nonoptional" || n.type === "nullable" || n.type === "readonly" || n.type === "default" || n.type === "prefault")
3825
- return yr(n.innerType, r);
3825
+ return gr(n.innerType, r);
3826
3826
  if (n.type === "intersection")
3827
- return yr(n.left, r) || yr(n.right, r);
3827
+ return gr(n.left, r) || gr(n.right, r);
3828
3828
  if (n.type === "record" || n.type === "map")
3829
- return yr(n.keyType, r) || yr(n.valueType, r);
3829
+ return gr(n.keyType, r) || gr(n.valueType, r);
3830
3830
  if (n.type === "pipe")
3831
- return t._zod.traits.has("$ZodCodec") ? !0 : yr(n.in, r) || yr(n.out, r);
3831
+ return t._zod.traits.has("$ZodCodec") ? !0 : gr(n.in, r) || gr(n.out, r);
3832
3832
  if (n.type === "object") {
3833
3833
  for (const i in n.shape)
3834
- if (yr(n.shape[i], r))
3834
+ if (gr(n.shape[i], r))
3835
3835
  return !0;
3836
3836
  return !1;
3837
3837
  }
3838
3838
  if (n.type === "union") {
3839
3839
  for (const i of n.options)
3840
- if (yr(i, r))
3840
+ if (gr(i, r))
3841
3841
  return !0;
3842
3842
  return !1;
3843
3843
  }
3844
3844
  if (n.type === "tuple") {
3845
3845
  for (const i of n.items)
3846
- if (yr(i, r))
3846
+ if (gr(i, r))
3847
3847
  return !0;
3848
- return !!(n.rest && yr(n.rest, r));
3848
+ return !!(n.rest && gr(n.rest, r));
3849
3849
  }
3850
3850
  return !1;
3851
3851
  }
@@ -4384,7 +4384,7 @@ function ti(t) {
4384
4384
  const NA = /* @__PURE__ */ Y("ZodUnknown", (t, e) => {
4385
4385
  n5.init(t, e), Pe.init(t, e), t._zod.processJSONSchema = (r, n, i) => kC();
4386
4386
  });
4387
- function hr() {
4387
+ function fr() {
4388
4388
  return /* @__PURE__ */ rC(NA);
4389
4389
  }
4390
4390
  const BA = /* @__PURE__ */ Y("ZodNever", (t, e) => {
@@ -4424,10 +4424,10 @@ const PA = /* @__PURE__ */ Y("ZodObject", (t, e) => {
4424
4424
  return this.clone({ ...this._zod.def, catchall: r });
4425
4425
  },
4426
4426
  passthrough() {
4427
- return this.clone({ ...this._zod.def, catchall: hr() });
4427
+ return this.clone({ ...this._zod.def, catchall: fr() });
4428
4428
  },
4429
4429
  loose() {
4430
- return this.clone({ ...this._zod.def, catchall: hr() });
4430
+ return this.clone({ ...this._zod.def, catchall: fr() });
4431
4431
  },
4432
4432
  strict() {
4433
4433
  return this.clone({ ...this._zod.def, catchall: dt() });
@@ -5018,7 +5018,7 @@ const RE = _({
5018
5018
  }, D()), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
5019
5019
  }).strict(), _1 = _({
5020
5020
  find: d(),
5021
- replace: hr()
5021
+ replace: fr()
5022
5022
  }).strict(), ZE = _({
5023
5023
  capture: b([F((t) => {
5024
5024
  if (!(t === "" || t === null || t === void 0))
@@ -5062,7 +5062,7 @@ _({
5062
5062
  _({
5063
5063
  success: Pt(),
5064
5064
  message: d(),
5065
- response: m1(d(), hr())
5065
+ response: m1(d(), fr())
5066
5066
  }).strict();
5067
5067
  const GE = _({
5068
5068
  message: d(),
@@ -5098,7 +5098,7 @@ _({
5098
5098
  }).strict();
5099
5099
  const qE = _({
5100
5100
  family: f(d()),
5101
- weight: f(hr()).default("400"),
5101
+ weight: f(fr()).default("400"),
5102
5102
  color: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
5103
5103
  background: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
5104
5104
  opacity: f(b([F((t) => {
@@ -5137,7 +5137,7 @@ const qE = _({
5137
5137
  if (!(t === "" || t === null || t === void 0))
5138
5138
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
5139
5139
  }, D().int().gte(1).lte(500)), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
5140
- weight: f(hr()).default("400"),
5140
+ weight: f(fr()).default("400"),
5141
5141
  color: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
5142
5142
  opacity: f(b([F((t) => {
5143
5143
  if (!(t === "" || t === null || t === void 0))
@@ -5318,7 +5318,7 @@ const qE = _({
5318
5318
  if (!(t === "" || t === null || t === void 0))
5319
5319
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
5320
5320
  }, D().int().gte(1).lte(500)), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
5321
- weight: f(hr()).default("400"),
5321
+ weight: f(fr()).default("400"),
5322
5322
  color: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
5323
5323
  opacity: f(b([F((t) => {
5324
5324
  if (!(t === "" || t === null || t === void 0))
@@ -5902,8 +5902,8 @@ const yk = _({
5902
5902
  "zoom"
5903
5903
  ]))
5904
5904
  }).strict(), Fi = _({
5905
- from: f(hr()),
5906
- to: f(hr()),
5905
+ from: f(fr()),
5906
+ to: f(fr()),
5907
5907
  start: f(b([F((t) => {
5908
5908
  if (!(t === "" || t === null || t === void 0))
5909
5909
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -7127,7 +7127,7 @@ var Gk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
7127
7127
  for (var Je = 0; Je < 3 * x; Je++)
7128
7128
  se[Je] = new a(0, 0), he[Je] = new a(0, 0);
7129
7129
  for (; !yt; ) {
7130
- var be = 0, Pr, Oe = [1 << 28, 1 << 28, 1 << 28], Kt = [0], Yt = [1, 1, 1], or = [0, 1, 0, 1, 0, 1], dr = [0], qe, Ee, Fe, Nn, Ti = null, Pi = null, en, Ur = null, pr, Mr = 0, ur = null, Mi = 0, Bn = 0, B = null, mt = 0, qt = 0, de = 0, ne, $e;
7130
+ var be = 0, Pr, Oe = [1 << 28, 1 << 28, 1 << 28], Kt = [0], Yt = [1, 1, 1], sr = [0, 1, 0, 1, 0, 1], hr = [0], qe, Ee, Fe, Nn, Ti = null, Pi = null, en, Ur = null, dr, Mr = 0, or = null, Mi = 0, Bn = 0, B = null, mt = 0, qt = 0, de = 0, ne, $e;
7131
7131
  for (tt = 0; tt < 3; ++tt)
7132
7132
  _t[tt].codes = null, _t[tt].htrees = null;
7133
7133
  gt.readMoreInput();
@@ -7147,46 +7147,46 @@ var Gk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
7147
7147
  continue;
7148
7148
  }
7149
7149
  for (tt = 0; tt < 3; ++tt)
7150
- Yt[tt] = G(gt) + 1, Yt[tt] >= 2 && (pt(Yt[tt] + 2, se, tt * x, gt), pt(y, he, tt * x, gt), Oe[tt] = ft(he, tt * x, gt), dr[tt] = 1);
7150
+ Yt[tt] = G(gt) + 1, Yt[tt] >= 2 && (pt(Yt[tt] + 2, se, tt * x, gt), pt(y, he, tt * x, gt), Oe[tt] = ft(he, tt * x, gt), hr[tt] = 1);
7151
7151
  for (gt.readMoreInput(), qe = gt.readBits(2), Ee = w + (gt.readBits(4) << qe), Fe = (1 << qe) - 1, Nn = Ee + (48 << qe), Pi = new Uint8Array(Yt[0]), tt = 0; tt < Yt[0]; ++tt)
7152
7152
  gt.readMoreInput(), Pi[tt] = gt.readBits(2) << 1;
7153
7153
  var Tn = Lt(Yt[0] << E, gt);
7154
7154
  en = Tn.num_htrees, Ti = Tn.context_map;
7155
7155
  var Ja = Lt(Yt[2] << v, gt);
7156
- for (pr = Ja.num_htrees, Ur = Ja.context_map, _t[0] = new kt(p, en), _t[1] = new kt(g, Yt[1]), _t[2] = new kt(Nn, pr), tt = 0; tt < 3; ++tt)
7156
+ for (dr = Ja.num_htrees, Ur = Ja.context_map, _t[0] = new kt(p, en), _t[1] = new kt(g, Yt[1]), _t[2] = new kt(Nn, dr), tt = 0; tt < 3; ++tt)
7157
7157
  _t[tt].decode(gt);
7158
- for (ur = 0, B = 0, ne = Pi[Kt[0]], qt = o.lookupOffsets[ne], de = o.lookupOffsets[ne + 1], $e = _t[1].htrees[0]; be > 0; ) {
7159
- var rn, Pn, la, nn, Mn, lr, cr, wr, zi, fi, St;
7160
- for (gt.readMoreInput(), Oe[1] === 0 && (jt(Yt[1], se, 1, Kt, or, dr, gt), Oe[1] = ft(he, x, gt), $e = _t[1].htrees[Kt[1]]), --Oe[1], rn = X(_t[1].codes, $e, gt), Pn = rn >> 6, Pn >= 2 ? (Pn -= 2, cr = -1) : cr = 0, la = u.kInsertRangeLut[Pn] + (rn >> 3 & 7), nn = u.kCopyRangeLut[Pn] + (rn & 7), Mn = u.kInsertLengthPrefixCode[la].offset + gt.readBits(u.kInsertLengthPrefixCode[la].nbits), lr = u.kCopyLengthPrefixCode[nn].offset + gt.readBits(u.kCopyLengthPrefixCode[nn].nbits), Dt = at[W - 1 & K], Nt = at[W - 2 & K], fi = 0; fi < Mn; ++fi)
7161
- gt.readMoreInput(), Oe[0] === 0 && (jt(Yt[0], se, 0, Kt, or, dr, gt), Oe[0] = ft(he, 0, gt), Mr = Kt[0] << E, ur = Mr, ne = Pi[Kt[0]], qt = o.lookupOffsets[ne], de = o.lookupOffsets[ne + 1]), zi = o.lookup[qt + Dt] | o.lookup[de + Nt], Mi = Ti[ur + zi], --Oe[0], Nt = Dt, Dt = X(_t[0].codes, _t[0].htrees[Mi], gt), at[W & K] = Dt, (W & K) === K && U.write(at, Bt), ++W;
7158
+ for (or = 0, B = 0, ne = Pi[Kt[0]], qt = o.lookupOffsets[ne], de = o.lookupOffsets[ne + 1], $e = _t[1].htrees[0]; be > 0; ) {
7159
+ var rn, Pn, la, nn, Mn, ur, lr, br, zi, fi, St;
7160
+ for (gt.readMoreInput(), Oe[1] === 0 && (jt(Yt[1], se, 1, Kt, sr, hr, gt), Oe[1] = ft(he, x, gt), $e = _t[1].htrees[Kt[1]]), --Oe[1], rn = X(_t[1].codes, $e, gt), Pn = rn >> 6, Pn >= 2 ? (Pn -= 2, lr = -1) : lr = 0, la = u.kInsertRangeLut[Pn] + (rn >> 3 & 7), nn = u.kCopyRangeLut[Pn] + (rn & 7), Mn = u.kInsertLengthPrefixCode[la].offset + gt.readBits(u.kInsertLengthPrefixCode[la].nbits), ur = u.kCopyLengthPrefixCode[nn].offset + gt.readBits(u.kCopyLengthPrefixCode[nn].nbits), Dt = at[W - 1 & K], Nt = at[W - 2 & K], fi = 0; fi < Mn; ++fi)
7161
+ gt.readMoreInput(), Oe[0] === 0 && (jt(Yt[0], se, 0, Kt, sr, hr, gt), Oe[0] = ft(he, 0, gt), Mr = Kt[0] << E, or = Mr, ne = Pi[Kt[0]], qt = o.lookupOffsets[ne], de = o.lookupOffsets[ne + 1]), zi = o.lookup[qt + Dt] | o.lookup[de + Nt], Mi = Ti[or + zi], --Oe[0], Nt = Dt, Dt = X(_t[0].codes, _t[0].htrees[Mi], gt), at[W & K] = Dt, (W & K) === K && U.write(at, Bt), ++W;
7162
7162
  if (be -= Mn, be <= 0) break;
7163
- if (cr < 0) {
7163
+ if (lr < 0) {
7164
7164
  var zi;
7165
- if (gt.readMoreInput(), Oe[2] === 0 && (jt(Yt[2], se, 2, Kt, or, dr, gt), Oe[2] = ft(he, 2 * x, gt), Bn = Kt[2] << v, B = Bn), --Oe[2], zi = (lr > 4 ? 3 : lr - 2) & 255, mt = Ur[B + zi], cr = X(_t[2].codes, _t[2].htrees[mt], gt), cr >= Ee) {
7165
+ if (gt.readMoreInput(), Oe[2] === 0 && (jt(Yt[2], se, 2, Kt, sr, hr, gt), Oe[2] = ft(he, 2 * x, gt), Bn = Kt[2] << v, B = Bn), --Oe[2], zi = (ur > 4 ? 3 : ur - 2) & 255, mt = Ur[B + zi], lr = X(_t[2].codes, _t[2].htrees[mt], gt), lr >= Ee) {
7166
7166
  var Vi, Io, jr;
7167
- cr -= Ee, Io = cr & Fe, cr >>= qe, Vi = (cr >> 1) + 1, jr = (2 + (cr & 1) << Vi) - 4, cr = Ee + (jr + gt.readBits(Vi) << qe) + Io;
7167
+ lr -= Ee, Io = lr & Fe, lr >>= qe, Vi = (lr >> 1) + 1, jr = (2 + (lr & 1) << Vi) - 4, lr = Ee + (jr + gt.readBits(Vi) << qe) + Io;
7168
7168
  }
7169
7169
  }
7170
- if (wr = j(cr, it, Ht), wr < 0)
7170
+ if (br = j(lr, it, Ht), br < 0)
7171
7171
  throw new Error("[BrotliDecompress] invalid distance");
7172
- if (W < vt && Et !== vt ? Et = W : Et = vt, St = W & K, wr > Et)
7173
- if (lr >= i.minDictionaryWordLength && lr <= i.maxDictionaryWordLength) {
7174
- var jr = i.offsetsByLength[lr], zn = wr - Et - 1, Qa = i.sizeBitsByLength[lr], ts = (1 << Qa) - 1, ca = zn & ts, Vn = zn >> Qa;
7175
- if (jr += ca * lr, Vn < l.kNumTransforms) {
7176
- var fa = l.transformDictionaryWord(at, St, jr, lr, Vn);
7172
+ if (W < vt && Et !== vt ? Et = W : Et = vt, St = W & K, br > Et)
7173
+ if (ur >= i.minDictionaryWordLength && ur <= i.maxDictionaryWordLength) {
7174
+ var jr = i.offsetsByLength[ur], zn = br - Et - 1, Qa = i.sizeBitsByLength[ur], ts = (1 << Qa) - 1, ca = zn & ts, Vn = zn >> Qa;
7175
+ if (jr += ca * ur, Vn < l.kNumTransforms) {
7176
+ var fa = l.transformDictionaryWord(at, St, jr, ur, Vn);
7177
7177
  if (St += fa, W += fa, be -= fa, St >= bt) {
7178
7178
  U.write(at, Bt);
7179
7179
  for (var Oi = 0; Oi < St - bt; Oi++) at[Oi] = at[bt + Oi];
7180
7180
  }
7181
7181
  } else
7182
- throw new Error("Invalid backward reference. pos: " + W + " distance: " + wr + " len: " + lr + " bytes left: " + be);
7182
+ throw new Error("Invalid backward reference. pos: " + W + " distance: " + br + " len: " + ur + " bytes left: " + be);
7183
7183
  } else
7184
- throw new Error("Invalid backward reference. pos: " + W + " distance: " + wr + " len: " + lr + " bytes left: " + be);
7184
+ throw new Error("Invalid backward reference. pos: " + W + " distance: " + br + " len: " + ur + " bytes left: " + be);
7185
7185
  else {
7186
- if (cr > 0 && (it[Ht & 3] = wr, ++Ht), lr > be)
7187
- throw new Error("Invalid backward reference. pos: " + W + " distance: " + wr + " len: " + lr + " bytes left: " + be);
7188
- for (fi = 0; fi < lr; ++fi)
7189
- at[W & K] = at[W - wr & K], (W & K) === K && U.write(at, Bt), ++W, --be;
7186
+ if (lr > 0 && (it[Ht & 3] = br, ++Ht), ur > be)
7187
+ throw new Error("Invalid backward reference. pos: " + W + " distance: " + br + " len: " + ur + " bytes left: " + be);
7188
+ for (fi = 0; fi < ur; ++fi)
7189
+ at[W & K] = at[W - br & K], (W & K) === K && U.write(at, Bt), ++W, --be;
7190
7190
  }
7191
7191
  Dt = at[W - 1 & K], Nt = at[W - 2 & K];
7192
7192
  }
@@ -7199,9 +7199,9 @@ var Gk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
7199
7199
  } }), e7 = je({ "node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/decompress.js"(t, e) {
7200
7200
  e.exports = L1().BrotliDecompressBuffer;
7201
7201
  } }), q = {};
7202
- Ki(q, { $brand: () => j1, $input: () => Av, $output: () => Cv, NEVER: () => U1, TimePrecision: () => Fv, ZodAny: () => Eh, ZodArray: () => Fh, ZodBase64: () => Rl, ZodBase64URL: () => $l, ZodBigInt: () => go, ZodBigIntFormat: () => Ul, ZodBoolean: () => mo, ZodCIDRv4: () => Vl, ZodCIDRv6: () => Ol, ZodCUID: () => Il, ZodCUID2: () => Nl, ZodCatch: () => Kh, ZodCodec: () => _o, ZodCustom: () => xo, ZodCustomStringFormat: () => Xa, ZodDate: () => Gl, ZodDefault: () => Gh, ZodDiscriminatedUnion: () => Nh, ZodE164: () => Ll, ZodEmail: () => Sl, ZodEmoji: () => Dl, ZodEnum: () => La, ZodError: () => k8, ZodExactOptional: () => Zh, ZodFile: () => $h, ZodFirstPartyTypeKind: () => x0, ZodFunction: () => od, ZodGUID: () => Ls, ZodIPv4: () => Ml, ZodIPv6: () => zl, ZodISODate: () => mh, ZodISODateTime: () => ph, ZodISODuration: () => yh, ZodISOTime: () => gh, ZodIntersection: () => Bh, ZodIssueCode: () => S8, ZodJWT: () => Zl, ZodKSUID: () => Pl, ZodLazy: () => nd, ZodLiteral: () => Rh, ZodMAC: () => vh, ZodMap: () => Vh, ZodNaN: () => Qh, ZodNanoID: () => Fl, ZodNever: () => Sh, ZodNonOptional: () => Xl, ZodNull: () => Ch, ZodNullable: () => jh, ZodNumber: () => po, ZodNumberFormat: () => aa, ZodObject: () => vo, ZodOptional: () => ql, ZodPipe: () => wo, ZodPrefault: () => Hh, ZodPreprocess: () => td, ZodPromise: () => sd, ZodReadonly: () => ed, ZodRealError: () => Zr, ZodRecord: () => $a, ZodSet: () => Oh, ZodString: () => fo, ZodStringFormat: () => Ce, ZodSuccess: () => Xh, ZodSymbol: () => _h, ZodTemplateLiteral: () => id, ZodTransform: () => Lh, ZodTuple: () => Ph, ZodType: () => Wt, ZodULID: () => Bl, ZodURL: () => ho, ZodUUID: () => Ei, ZodUndefined: () => xh, ZodUnion: () => bo, ZodUnknown: () => kh, ZodVoid: () => Dh, ZodXID: () => Tl, ZodXor: () => Ih, _ZodString: () => kl, _default: () => Wh, _function: () => Du, any: () => Qw, array: () => yo, base64: () => zw, base64url: () => Vw, bigint: () => Yw, boolean: () => wh, catch: () => Jh, check: () => x3, cidrv4: () => Pw, cidrv6: () => Mw, clone: () => ri, codec: () => v3, coerce: () => N3, config: () => ir, core: () => Z1, cuid: () => kw, cuid2: () => Sw, custom: () => C3, date: () => e3, decode: () => lw, decodeAsync: () => fw, describe: () => A3, discriminatedUnion: () => o3, e164: () => Ow, email: () => gw, emoji: () => Aw, encode: () => uw, encodeAsync: () => cw, endsWith: () => bl, enum: () => Hl, exactOptional: () => Uh, file: () => p3, flattenError: () => gf, float32: () => jw, float64: () => Gw, formatError: () => yf, fromJSONSchema: () => T8, function: () => Du, getErrorMap: () => F8, globalRegistry: () => Jr, gt: () => xn, gte: () => Dr, guid: () => yw, hash: () => Uw, hex: () => Zw, hostname: () => Lw, httpUrl: () => Cw, includes: () => yl, instanceof: () => k3, int: () => ku, int32: () => Ww, int64: () => qw, intersection: () => Th, invertCodec: () => b3, ipv4: () => Nw, ipv6: () => Tw, iso: () => dh, json: () => D3, jwt: () => Rw, keyof: () => r3, ksuid: () => Iw, lazy: () => ad, length: () => uo, literal: () => d3, locales: () => Of, looseObject: () => a3, looseRecord: () => l3, lowercase: () => ml, lt: () => _n, lte: () => Qr, mac: () => Bw, map: () => c3, maxLength: () => oo, maxSize: () => qa, meta: () => E3, mime: () => wl, minLength: () => ea, minSize: () => Cn, multipleOf: () => za, nan: () => y3, nanoid: () => Ew, nativeEnum: () => h3, negative: () => oh, never: () => jl, nonnegative: () => lh, nonoptional: () => qh, nonpositive: () => uh, normalize: () => _l, null: () => Ah, nullable: () => Us, nullish: () => m3, number: () => bh, object: () => i3, optional: () => Zs, overwrite: () => Qi, parse: () => nw, parseAsync: () => aw, partialRecord: () => u3, pipe: () => Su, positive: () => sh, prefault: () => Yh, preprocess: () => F3, prettifyError: () => ay, promise: () => _3, property: () => ch, readonly: () => rd, record: () => zh, refine: () => ud, regex: () => pl, regexes: () => wn, registry: () => Rf, safeDecode: () => dw, safeDecodeAsync: () => mw, safeEncode: () => hw, safeEncodeAsync: () => pw, safeParse: () => sw, safeParseAsync: () => ow, set: () => f3, setErrorMap: () => D8, size: () => so, slugify: () => El, startsWith: () => vl, strictObject: () => n3, string: () => $s, stringFormat: () => $w, stringbool: () => S3, success: () => g3, superRefine: () => ld, symbol: () => Kw, templateLiteral: () => w3, toJSONSchema: () => Xb, toLowerCase: () => Cl, toUpperCase: () => Al, transform: () => Yl, treeifyError: () => iy, trim: () => xl, tuple: () => Mh, uint32: () => Hw, uint64: () => Xw, ulid: () => Dw, undefined: () => Jw, union: () => Wl, unknown: () => ra, uppercase: () => gl, url: () => xw, util: () => Qt, uuid: () => vw, uuidv4: () => bw, uuidv6: () => ww, uuidv7: () => _w, void: () => t3, xid: () => Fw, xor: () => s3 });
7202
+ Ki(q, { $brand: () => j1, $input: () => Av, $output: () => Cv, NEVER: () => U1, TimePrecision: () => Fv, ZodAny: () => Eh, ZodArray: () => Fh, ZodBase64: () => Rl, ZodBase64URL: () => $l, ZodBigInt: () => go, ZodBigIntFormat: () => Ul, ZodBoolean: () => mo, ZodCIDRv4: () => Vl, ZodCIDRv6: () => Ol, ZodCUID: () => Il, ZodCUID2: () => Nl, ZodCatch: () => Kh, ZodCodec: () => _o, ZodCustom: () => xo, ZodCustomStringFormat: () => Xa, ZodDate: () => Gl, ZodDefault: () => Gh, ZodDiscriminatedUnion: () => Nh, ZodE164: () => Ll, ZodEmail: () => Sl, ZodEmoji: () => Dl, ZodEnum: () => La, ZodError: () => k8, ZodExactOptional: () => Zh, ZodFile: () => $h, ZodFirstPartyTypeKind: () => x0, ZodFunction: () => od, ZodGUID: () => Ls, ZodIPv4: () => Ml, ZodIPv6: () => zl, ZodISODate: () => mh, ZodISODateTime: () => ph, ZodISODuration: () => yh, ZodISOTime: () => gh, ZodIntersection: () => Bh, ZodIssueCode: () => S8, ZodJWT: () => Zl, ZodKSUID: () => Pl, ZodLazy: () => nd, ZodLiteral: () => Rh, ZodMAC: () => vh, ZodMap: () => Vh, ZodNaN: () => Qh, ZodNanoID: () => Fl, ZodNever: () => Sh, ZodNonOptional: () => Xl, ZodNull: () => Ch, ZodNullable: () => jh, ZodNumber: () => po, ZodNumberFormat: () => aa, ZodObject: () => vo, ZodOptional: () => ql, ZodPipe: () => wo, ZodPrefault: () => Hh, ZodPreprocess: () => td, ZodPromise: () => sd, ZodReadonly: () => ed, ZodRealError: () => Zr, ZodRecord: () => $a, ZodSet: () => Oh, ZodString: () => fo, ZodStringFormat: () => Ce, ZodSuccess: () => Xh, ZodSymbol: () => _h, ZodTemplateLiteral: () => id, ZodTransform: () => Lh, ZodTuple: () => Ph, ZodType: () => Wt, ZodULID: () => Bl, ZodURL: () => ho, ZodUUID: () => Ei, ZodUndefined: () => xh, ZodUnion: () => bo, ZodUnknown: () => kh, ZodVoid: () => Dh, ZodXID: () => Tl, ZodXor: () => Ih, _ZodString: () => kl, _default: () => Wh, _function: () => Du, any: () => Qw, array: () => yo, base64: () => zw, base64url: () => Vw, bigint: () => Yw, boolean: () => wh, catch: () => Jh, check: () => x3, cidrv4: () => Pw, cidrv6: () => Mw, clone: () => ri, codec: () => v3, coerce: () => N3, config: () => rr, core: () => Z1, cuid: () => kw, cuid2: () => Sw, custom: () => C3, date: () => e3, decode: () => lw, decodeAsync: () => fw, describe: () => A3, discriminatedUnion: () => o3, e164: () => Ow, email: () => gw, emoji: () => Aw, encode: () => uw, encodeAsync: () => cw, endsWith: () => bl, enum: () => Hl, exactOptional: () => Uh, file: () => p3, flattenError: () => gf, float32: () => jw, float64: () => Gw, formatError: () => yf, fromJSONSchema: () => T8, function: () => Du, getErrorMap: () => F8, globalRegistry: () => Jr, gt: () => xn, gte: () => Dr, guid: () => yw, hash: () => Uw, hex: () => Zw, hostname: () => Lw, httpUrl: () => Cw, includes: () => yl, instanceof: () => k3, int: () => ku, int32: () => Ww, int64: () => qw, intersection: () => Th, invertCodec: () => b3, ipv4: () => Nw, ipv6: () => Tw, iso: () => dh, json: () => D3, jwt: () => Rw, keyof: () => r3, ksuid: () => Iw, lazy: () => ad, length: () => uo, literal: () => d3, locales: () => Of, looseObject: () => a3, looseRecord: () => l3, lowercase: () => ml, lt: () => _n, lte: () => Qr, mac: () => Bw, map: () => c3, maxLength: () => oo, maxSize: () => qa, meta: () => E3, mime: () => wl, minLength: () => ea, minSize: () => Cn, multipleOf: () => za, nan: () => y3, nanoid: () => Ew, nativeEnum: () => h3, negative: () => oh, never: () => jl, nonnegative: () => lh, nonoptional: () => qh, nonpositive: () => uh, normalize: () => _l, null: () => Ah, nullable: () => Us, nullish: () => m3, number: () => bh, object: () => i3, optional: () => Zs, overwrite: () => Qi, parse: () => nw, parseAsync: () => aw, partialRecord: () => u3, pipe: () => Su, positive: () => sh, prefault: () => Yh, preprocess: () => F3, prettifyError: () => ay, promise: () => _3, property: () => ch, readonly: () => rd, record: () => zh, refine: () => ud, regex: () => pl, regexes: () => wn, registry: () => Rf, safeDecode: () => dw, safeDecodeAsync: () => mw, safeEncode: () => hw, safeEncodeAsync: () => pw, safeParse: () => sw, safeParseAsync: () => ow, set: () => f3, setErrorMap: () => D8, size: () => so, slugify: () => El, startsWith: () => vl, strictObject: () => n3, string: () => $s, stringFormat: () => $w, stringbool: () => S3, success: () => g3, superRefine: () => ld, symbol: () => Kw, templateLiteral: () => w3, toJSONSchema: () => Xb, toLowerCase: () => Cl, toUpperCase: () => Al, transform: () => Yl, treeifyError: () => iy, trim: () => xl, tuple: () => Mh, uint32: () => Hw, uint64: () => Xw, ulid: () => Dw, undefined: () => Jw, union: () => Wl, unknown: () => ra, uppercase: () => gl, url: () => xw, util: () => Qt, uuid: () => vw, uuidv4: () => bw, uuidv6: () => ww, uuidv7: () => _w, void: () => t3, xid: () => Fw, xor: () => s3 });
7203
7203
  var Z1 = {};
7204
- Ki(Z1, { $ZodAny: () => R4, $ZodArray: () => j4, $ZodAsyncError: () => Yn, $ZodBase64: () => S4, $ZodBase64URL: () => F4, $ZodBigInt: () => Tf, $ZodBigIntFormat: () => M4, $ZodBoolean: () => Bf, $ZodCIDRv4: () => E4, $ZodCIDRv6: () => k4, $ZodCUID: () => d4, $ZodCUID2: () => p4, $ZodCatch: () => fv, $ZodCheck: () => Me, $ZodCheckBigIntFormat: () => Uy, $ZodCheckEndsWith: () => e4, $ZodCheckGreaterThan: () => Ff, $ZodCheckIncludes: () => Qy, $ZodCheckLengthEquals: () => qy, $ZodCheckLessThan: () => Df, $ZodCheckLowerCase: () => Ky, $ZodCheckMaxLength: () => Hy, $ZodCheckMaxSize: () => jy, $ZodCheckMimeType: () => i4, $ZodCheckMinLength: () => Yy, $ZodCheckMinSize: () => Gy, $ZodCheckMultipleOf: () => Ly, $ZodCheckNumberFormat: () => Zy, $ZodCheckOverwrite: () => n4, $ZodCheckProperty: () => r4, $ZodCheckRegex: () => Xy, $ZodCheckSizeEquals: () => Wy, $ZodCheckStartsWith: () => t4, $ZodCheckStringFormat: () => no, $ZodCheckUpperCase: () => Jy, $ZodCodec: () => Vf, $ZodCustom: () => bv, $ZodCustomStringFormat: () => T4, $ZodDate: () => U4, $ZodDefault: () => ov, $ZodDiscriminatedUnion: () => X4, $ZodE164: () => I4, $ZodEmail: () => l4, $ZodEmoji: () => f4, $ZodEncodeError: () => ul, $ZodEnum: () => ev, $ZodError: () => mf, $ZodExactOptional: () => av, $ZodFile: () => iv, $ZodFunction: () => gv, $ZodGUID: () => o4, $ZodIPv4: () => x4, $ZodIPv6: () => C4, $ZodISODate: () => b4, $ZodISODateTime: () => v4, $ZodISODuration: () => _4, $ZodISOTime: () => w4, $ZodIntersection: () => K4, $ZodJWT: () => B4, $ZodKSUID: () => y4, $ZodLazy: () => vv, $ZodLiteral: () => rv, $ZodMAC: () => A4, $ZodMap: () => Q4, $ZodNaN: () => hv, $ZodNanoID: () => h4, $ZodNever: () => L4, $ZodNonOptional: () => lv, $ZodNull: () => O4, $ZodNullable: () => sv, $ZodNumber: () => Nf, $ZodNumberFormat: () => P4, $ZodObject: () => H4, $ZodObjectJIT: () => Y4, $ZodOptional: () => Mf, $ZodPipe: () => zf, $ZodPrefault: () => uv, $ZodPreprocess: () => dv, $ZodPromise: () => yv, $ZodReadonly: () => pv, $ZodRealError: () => Lr, $ZodRecord: () => J4, $ZodRegistry: () => Ev, $ZodSet: () => tv, $ZodString: () => ao, $ZodStringFormat: () => xe, $ZodSuccess: () => cv, $ZodSymbol: () => z4, $ZodTemplateLiteral: () => mv, $ZodTransform: () => nv, $ZodTuple: () => Pf, $ZodType: () => Ut, $ZodULID: () => m4, $ZodURL: () => c4, $ZodUUID: () => u4, $ZodUndefined: () => V4, $ZodUnion: () => hl, $ZodUnknown: () => $4, $ZodVoid: () => Z4, $ZodXID: () => g4, $ZodXor: () => q4, $brand: () => j1, $constructor: () => O, $input: () => Av, $output: () => Cv, Doc: () => a4, JSONSchema: () => E8, JSONSchemaGenerator: () => A8, NEVER: () => U1, TimePrecision: () => Fv, _any: () => Xv, _array: () => ib, _base64: () => rh, _base64url: () => ih, _bigint: () => Uv, _boolean: () => Lv, _catch: () => y8, _check: () => ub, _cidrv4: () => th, _cidrv6: () => eh, _coercedBigint: () => jv, _coercedBoolean: () => Zv, _coercedDate: () => eb, _coercedNumber: () => Mv, _coercedString: () => Sv, _cuid: () => Hf, _cuid2: () => Yf, _custom: () => ab, _date: () => tb, _decode: () => bf, _decodeAsync: () => _f, _default: () => p8, _discriminatedUnion: () => r8, _e164: () => nh, _email: () => $f, _emoji: () => Gf, _encode: () => vf, _encodeAsync: () => wf, _endsWith: () => bl, _enum: () => u8, _file: () => nb, _float32: () => Vv, _float64: () => Ov, _gt: () => xn, _gte: () => Dr, _guid: () => Eu, _includes: () => yl, _int: () => zv, _int32: () => Rv, _int64: () => Gv, _intersection: () => i8, _ipv4: () => Jf, _ipv6: () => Qf, _isoDate: () => Nv, _isoDateTime: () => Iv, _isoDuration: () => Tv, _isoTime: () => Bv, _jwt: () => ah, _ksuid: () => Kf, _lazy: () => _8, _length: () => uo, _literal: () => c8, _lowercase: () => ml, _lt: () => _n, _lte: () => Qr, _mac: () => Dv, _map: () => s8, _max: () => Qr, _maxLength: () => oo, _maxSize: () => qa, _mime: () => wl, _min: () => Dr, _minLength: () => ea, _minSize: () => Cn, _multipleOf: () => za, _nan: () => rb, _nanoid: () => Wf, _nativeEnum: () => l8, _negative: () => oh, _never: () => Jv, _nonnegative: () => lh, _nonoptional: () => m8, _nonpositive: () => uh, _normalize: () => _l, _null: () => qv, _nullable: () => d8, _number: () => Pv, _optional: () => h8, _overwrite: () => Qi, _parse: () => Js, _parseAsync: () => Qs, _pipe: () => v8, _positive: () => sh, _promise: () => x8, _property: () => ch, _readonly: () => b8, _record: () => a8, _refine: () => sb, _regex: () => pl, _safeDecode: () => Cf, _safeDecodeAsync: () => Ef, _safeEncode: () => xf, _safeEncodeAsync: () => Af, _safeParse: () => to, _safeParseAsync: () => eo, _set: () => o8, _size: () => so, _slugify: () => El, _startsWith: () => vl, _string: () => kv, _stringFormat: () => lo, _stringbool: () => fb, _success: () => g8, _superRefine: () => ob, _symbol: () => Hv, _templateLiteral: () => w8, _toLowerCase: () => Cl, _toUpperCase: () => Al, _transform: () => f8, _trim: () => xl, _tuple: () => n8, _uint32: () => $v, _uint64: () => Wv, _ulid: () => qf, _undefined: () => Yv, _union: () => t8, _unknown: () => Kv, _uppercase: () => gl, _url: () => dl, _uuid: () => Lf, _uuidv4: () => Zf, _uuidv6: () => Uf, _uuidv7: () => jf, _void: () => Qv, _xid: () => Xf, _xor: () => e8, clone: () => ri, config: () => ir, createStandardJSONSchemaMethod: () => Rs, createToJSONSchemaMethod: () => hb, decode: () => F7, decodeAsync: () => N7, describe: () => lb, encode: () => D7, encodeAsync: () => I7, extractDefs: () => Oa, finalize: () => Ra, flattenError: () => gf, formatError: () => yf, globalConfig: () => Os, globalRegistry: () => Jr, initializeContext: () => Va, isValidBase64: () => If, isValidBase64URL: () => D4, isValidJWT: () => N4, locales: () => Of, meta: () => cb, parse: () => v0, parseAsync: () => b0, prettifyError: () => ay, process: () => we, regexes: () => wn, registry: () => Rf, safeDecode: () => T7, safeDecodeAsync: () => M7, safeEncode: () => B7, safeEncodeAsync: () => P7, safeParse: () => sy, safeParseAsync: () => oy, toDotPath: () => ny, toJSONSchema: () => Xb, treeifyError: () => iy, util: () => Qt, version: () => s4 });
7204
+ Ki(Z1, { $ZodAny: () => R4, $ZodArray: () => j4, $ZodAsyncError: () => Yn, $ZodBase64: () => S4, $ZodBase64URL: () => F4, $ZodBigInt: () => Tf, $ZodBigIntFormat: () => M4, $ZodBoolean: () => Bf, $ZodCIDRv4: () => E4, $ZodCIDRv6: () => k4, $ZodCUID: () => d4, $ZodCUID2: () => p4, $ZodCatch: () => fv, $ZodCheck: () => Me, $ZodCheckBigIntFormat: () => Uy, $ZodCheckEndsWith: () => e4, $ZodCheckGreaterThan: () => Ff, $ZodCheckIncludes: () => Qy, $ZodCheckLengthEquals: () => qy, $ZodCheckLessThan: () => Df, $ZodCheckLowerCase: () => Ky, $ZodCheckMaxLength: () => Hy, $ZodCheckMaxSize: () => jy, $ZodCheckMimeType: () => i4, $ZodCheckMinLength: () => Yy, $ZodCheckMinSize: () => Gy, $ZodCheckMultipleOf: () => Ly, $ZodCheckNumberFormat: () => Zy, $ZodCheckOverwrite: () => n4, $ZodCheckProperty: () => r4, $ZodCheckRegex: () => Xy, $ZodCheckSizeEquals: () => Wy, $ZodCheckStartsWith: () => t4, $ZodCheckStringFormat: () => no, $ZodCheckUpperCase: () => Jy, $ZodCodec: () => Vf, $ZodCustom: () => bv, $ZodCustomStringFormat: () => T4, $ZodDate: () => U4, $ZodDefault: () => ov, $ZodDiscriminatedUnion: () => X4, $ZodE164: () => I4, $ZodEmail: () => l4, $ZodEmoji: () => f4, $ZodEncodeError: () => ul, $ZodEnum: () => ev, $ZodError: () => mf, $ZodExactOptional: () => av, $ZodFile: () => iv, $ZodFunction: () => gv, $ZodGUID: () => o4, $ZodIPv4: () => x4, $ZodIPv6: () => C4, $ZodISODate: () => b4, $ZodISODateTime: () => v4, $ZodISODuration: () => _4, $ZodISOTime: () => w4, $ZodIntersection: () => K4, $ZodJWT: () => B4, $ZodKSUID: () => y4, $ZodLazy: () => vv, $ZodLiteral: () => rv, $ZodMAC: () => A4, $ZodMap: () => Q4, $ZodNaN: () => hv, $ZodNanoID: () => h4, $ZodNever: () => L4, $ZodNonOptional: () => lv, $ZodNull: () => O4, $ZodNullable: () => sv, $ZodNumber: () => Nf, $ZodNumberFormat: () => P4, $ZodObject: () => H4, $ZodObjectJIT: () => Y4, $ZodOptional: () => Mf, $ZodPipe: () => zf, $ZodPrefault: () => uv, $ZodPreprocess: () => dv, $ZodPromise: () => yv, $ZodReadonly: () => pv, $ZodRealError: () => Lr, $ZodRecord: () => J4, $ZodRegistry: () => Ev, $ZodSet: () => tv, $ZodString: () => ao, $ZodStringFormat: () => xe, $ZodSuccess: () => cv, $ZodSymbol: () => z4, $ZodTemplateLiteral: () => mv, $ZodTransform: () => nv, $ZodTuple: () => Pf, $ZodType: () => Ut, $ZodULID: () => m4, $ZodURL: () => c4, $ZodUUID: () => u4, $ZodUndefined: () => V4, $ZodUnion: () => hl, $ZodUnknown: () => $4, $ZodVoid: () => Z4, $ZodXID: () => g4, $ZodXor: () => q4, $brand: () => j1, $constructor: () => O, $input: () => Av, $output: () => Cv, Doc: () => a4, JSONSchema: () => E8, JSONSchemaGenerator: () => A8, NEVER: () => U1, TimePrecision: () => Fv, _any: () => Xv, _array: () => ib, _base64: () => rh, _base64url: () => ih, _bigint: () => Uv, _boolean: () => Lv, _catch: () => y8, _check: () => ub, _cidrv4: () => th, _cidrv6: () => eh, _coercedBigint: () => jv, _coercedBoolean: () => Zv, _coercedDate: () => eb, _coercedNumber: () => Mv, _coercedString: () => Sv, _cuid: () => Hf, _cuid2: () => Yf, _custom: () => ab, _date: () => tb, _decode: () => bf, _decodeAsync: () => _f, _default: () => p8, _discriminatedUnion: () => r8, _e164: () => nh, _email: () => $f, _emoji: () => Gf, _encode: () => vf, _encodeAsync: () => wf, _endsWith: () => bl, _enum: () => u8, _file: () => nb, _float32: () => Vv, _float64: () => Ov, _gt: () => xn, _gte: () => Dr, _guid: () => Eu, _includes: () => yl, _int: () => zv, _int32: () => Rv, _int64: () => Gv, _intersection: () => i8, _ipv4: () => Jf, _ipv6: () => Qf, _isoDate: () => Nv, _isoDateTime: () => Iv, _isoDuration: () => Tv, _isoTime: () => Bv, _jwt: () => ah, _ksuid: () => Kf, _lazy: () => _8, _length: () => uo, _literal: () => c8, _lowercase: () => ml, _lt: () => _n, _lte: () => Qr, _mac: () => Dv, _map: () => s8, _max: () => Qr, _maxLength: () => oo, _maxSize: () => qa, _mime: () => wl, _min: () => Dr, _minLength: () => ea, _minSize: () => Cn, _multipleOf: () => za, _nan: () => rb, _nanoid: () => Wf, _nativeEnum: () => l8, _negative: () => oh, _never: () => Jv, _nonnegative: () => lh, _nonoptional: () => m8, _nonpositive: () => uh, _normalize: () => _l, _null: () => qv, _nullable: () => d8, _number: () => Pv, _optional: () => h8, _overwrite: () => Qi, _parse: () => Js, _parseAsync: () => Qs, _pipe: () => v8, _positive: () => sh, _promise: () => x8, _property: () => ch, _readonly: () => b8, _record: () => a8, _refine: () => sb, _regex: () => pl, _safeDecode: () => Cf, _safeDecodeAsync: () => Ef, _safeEncode: () => xf, _safeEncodeAsync: () => Af, _safeParse: () => to, _safeParseAsync: () => eo, _set: () => o8, _size: () => so, _slugify: () => El, _startsWith: () => vl, _string: () => kv, _stringFormat: () => lo, _stringbool: () => fb, _success: () => g8, _superRefine: () => ob, _symbol: () => Hv, _templateLiteral: () => w8, _toLowerCase: () => Cl, _toUpperCase: () => Al, _transform: () => f8, _trim: () => xl, _tuple: () => n8, _uint32: () => $v, _uint64: () => Wv, _ulid: () => qf, _undefined: () => Yv, _union: () => t8, _unknown: () => Kv, _uppercase: () => gl, _url: () => dl, _uuid: () => Lf, _uuidv4: () => Zf, _uuidv6: () => Uf, _uuidv7: () => jf, _void: () => Qv, _xid: () => Xf, _xor: () => e8, clone: () => ri, config: () => rr, createStandardJSONSchemaMethod: () => Rs, createToJSONSchemaMethod: () => hb, decode: () => F7, decodeAsync: () => N7, describe: () => lb, encode: () => D7, encodeAsync: () => I7, extractDefs: () => Oa, finalize: () => Ra, flattenError: () => gf, formatError: () => yf, globalConfig: () => Os, globalRegistry: () => Jr, initializeContext: () => Va, isValidBase64: () => If, isValidBase64URL: () => D4, isValidJWT: () => N4, locales: () => Of, meta: () => cb, parse: () => v0, parseAsync: () => b0, prettifyError: () => ay, process: () => we, regexes: () => wn, registry: () => Rf, safeDecode: () => T7, safeDecodeAsync: () => M7, safeEncode: () => B7, safeEncodeAsync: () => P7, safeParse: () => sy, safeParseAsync: () => oy, toDotPath: () => ny, toJSONSchema: () => Xb, treeifyError: () => iy, util: () => Qt, version: () => s4 });
7205
7205
  var Sp, U1 = Object.freeze({ status: "aborted" });
7206
7206
  function O(t, e, r) {
7207
7207
  function n(o, u) {
@@ -7239,7 +7239,7 @@ var j1 = Symbol("zod_brand"), Yn = class extends Error {
7239
7239
  };
7240
7240
  (Sp = globalThis).__zod_globalConfig ?? (Sp.__zod_globalConfig = {});
7241
7241
  var Os = globalThis.__zod_globalConfig;
7242
- function ir(t) {
7242
+ function rr(t) {
7243
7243
  return t && Object.assign(Os, t), Os;
7244
7244
  }
7245
7245
  var Qt = {};
@@ -7702,7 +7702,7 @@ var Js = (t) => (e, r, n, i) => {
7702
7702
  if (s instanceof Promise)
7703
7703
  throw new Yn();
7704
7704
  if (s.issues.length) {
7705
- const o = new (i?.Err ?? t)(s.issues.map((u) => $r(u, a, ir())));
7705
+ const o = new (i?.Err ?? t)(s.issues.map((u) => $r(u, a, rr())));
7706
7706
  throw pf(o, i?.callee), o;
7707
7707
  }
7708
7708
  return s.value;
@@ -7710,7 +7710,7 @@ var Js = (t) => (e, r, n, i) => {
7710
7710
  const a = n ? { ...n, async: !0 } : { async: !0 };
7711
7711
  let s = e._zod.run({ value: r, issues: [] }, a);
7712
7712
  if (s instanceof Promise && (s = await s), s.issues.length) {
7713
- const o = new (i?.Err ?? t)(s.issues.map((u) => $r(u, a, ir())));
7713
+ const o = new (i?.Err ?? t)(s.issues.map((u) => $r(u, a, rr())));
7714
7714
  throw pf(o, i?.callee), o;
7715
7715
  }
7716
7716
  return s.value;
@@ -7718,11 +7718,11 @@ var Js = (t) => (e, r, n, i) => {
7718
7718
  const i = n ? { ...n, async: !1 } : { async: !1 }, a = e._zod.run({ value: r, issues: [] }, i);
7719
7719
  if (a instanceof Promise)
7720
7720
  throw new Yn();
7721
- return a.issues.length ? { success: !1, error: new (t ?? mf)(a.issues.map((s) => $r(s, i, ir()))) } : { success: !0, data: a.value };
7721
+ return a.issues.length ? { success: !1, error: new (t ?? mf)(a.issues.map((s) => $r(s, i, rr()))) } : { success: !0, data: a.value };
7722
7722
  }, sy = to(Lr), eo = (t) => async (e, r, n) => {
7723
7723
  const i = n ? { ...n, async: !0 } : { async: !0 };
7724
7724
  let a = e._zod.run({ value: r, issues: [] }, i);
7725
- return a instanceof Promise && (a = await a), a.issues.length ? { success: !1, error: new t(a.issues.map((s) => $r(s, i, ir()))) } : { success: !0, data: a.value };
7725
+ return a instanceof Promise && (a = await a), a.issues.length ? { success: !1, error: new t(a.issues.map((s) => $r(s, i, rr()))) } : { success: !0, data: a.value };
7726
7726
  }, oy = eo(Lr), vf = (t) => (e, r, n) => {
7727
7727
  const i = n ? { ...n, direction: "backward" } : { direction: "backward" };
7728
7728
  return Js(t)(e, r, i);
@@ -8446,7 +8446,7 @@ function Np(t, e, r, n) {
8446
8446
  if (a.issues.length === 0)
8447
8447
  return e.value = a.value, e;
8448
8448
  const i = t.filter((a) => !Un(a));
8449
- return i.length === 1 ? (e.value = i[0].value, i[0]) : (e.issues.push({ code: "invalid_union", input: e.value, inst: r, errors: t.map((a) => a.issues.map((s) => $r(s, n, ir()))) }), e);
8449
+ return i.length === 1 ? (e.value = i[0].value, i[0]) : (e.issues.push({ code: "invalid_union", input: e.value, inst: r, errors: t.map((a) => a.issues.map((s) => $r(s, n, rr()))) }), e);
8450
8450
  }
8451
8451
  var hl = O("$ZodUnion", (t, e) => {
8452
8452
  Ut.init(t, e), te(t._zod, "optin", () => e.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), te(t._zod, "optout", () => e.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), te(t._zod, "values", () => {
@@ -8478,7 +8478,7 @@ var hl = O("$ZodUnion", (t, e) => {
8478
8478
  });
8479
8479
  function Bp(t, e, r, n) {
8480
8480
  const i = t.filter((a) => a.issues.length === 0);
8481
- return i.length === 1 ? (e.value = i[0].value, e) : (i.length === 0 ? e.issues.push({ code: "invalid_union", input: e.value, inst: r, errors: t.map((a) => a.issues.map((s) => $r(s, n, ir()))) }) : e.issues.push({ code: "invalid_union", input: e.value, inst: r, errors: [], inclusive: !1 }), e);
8481
+ return i.length === 1 ? (e.value = i[0].value, e) : (i.length === 0 ? e.issues.push({ code: "invalid_union", input: e.value, inst: r, errors: t.map((a) => a.issues.map((s) => $r(s, n, rr()))) }) : e.issues.push({ code: "invalid_union", input: e.value, inst: r, errors: [], inclusive: !1 }), e);
8482
8482
  }
8483
8483
  var q4 = O("$ZodXor", (t, e) => {
8484
8484
  hl.init(t, e), e.inclusive = !1;
@@ -8661,7 +8661,7 @@ var J4 = O("$ZodRecord", (t, e) => {
8661
8661
  if (c instanceof Promise)
8662
8662
  throw new Error("Async schemas not supported in object keys currently");
8663
8663
  if (c.issues.length) {
8664
- r.issues.push({ code: "invalid_key", origin: "record", issues: c.issues.map((g) => $r(g, n, ir())), input: l, path: [l], inst: t });
8664
+ r.issues.push({ code: "invalid_key", origin: "record", issues: c.issues.map((g) => $r(g, n, rr())), input: l, path: [l], inst: t });
8665
8665
  continue;
8666
8666
  }
8667
8667
  const h = c.value, p = e.valueType._zod.run({ value: i[l], issues: [] }, n);
@@ -8687,7 +8687,7 @@ var J4 = O("$ZodRecord", (t, e) => {
8687
8687
  h.issues.length === 0 && (u = h);
8688
8688
  }
8689
8689
  if (u.issues.length) {
8690
- e.mode === "loose" ? r.value[o] = i[o] : r.issues.push({ code: "invalid_key", origin: "record", issues: u.issues.map((h) => $r(h, n, ir())), input: o, path: [o], inst: t });
8690
+ e.mode === "loose" ? r.value[o] = i[o] : r.issues.push({ code: "invalid_key", origin: "record", issues: u.issues.map((h) => $r(h, n, rr())), input: o, path: [o], inst: t });
8691
8691
  continue;
8692
8692
  }
8693
8693
  const c = e.valueType._zod.run({ value: i[o], issues: [] }, n);
@@ -8715,7 +8715,7 @@ var J4 = O("$ZodRecord", (t, e) => {
8715
8715
  };
8716
8716
  });
8717
8717
  function Vp(t, e, r, n, i, a, s) {
8718
- t.issues.length && (xu.has(typeof n) ? r.issues.push(...Kr(n, t.issues)) : r.issues.push({ code: "invalid_key", origin: "map", input: i, inst: a, issues: t.issues.map((o) => $r(o, s, ir())) })), e.issues.length && (xu.has(typeof n) ? r.issues.push(...Kr(n, e.issues)) : r.issues.push({ origin: "map", code: "invalid_element", input: i, inst: a, key: n, issues: e.issues.map((o) => $r(o, s, ir())) })), r.value.set(t.value, e.value);
8718
+ t.issues.length && (xu.has(typeof n) ? r.issues.push(...Kr(n, t.issues)) : r.issues.push({ code: "invalid_key", origin: "map", input: i, inst: a, issues: t.issues.map((o) => $r(o, s, rr())) })), e.issues.length && (xu.has(typeof n) ? r.issues.push(...Kr(n, e.issues)) : r.issues.push({ origin: "map", code: "invalid_element", input: i, inst: a, key: n, issues: e.issues.map((o) => $r(o, s, rr())) })), r.value.set(t.value, e.value);
8719
8719
  }
8720
8720
  var tv = O("$ZodSet", (t, e) => {
8721
8721
  Ut.init(t, e), t._zod.parse = (r, n) => {
@@ -8826,7 +8826,7 @@ var cv = O("$ZodSuccess", (t, e) => {
8826
8826
  if (n.direction === "backward")
8827
8827
  return e.innerType._zod.run(r, n);
8828
8828
  const i = e.innerType._zod.run(r, n);
8829
- return i instanceof Promise ? i.then((a) => (r.value = a.value, a.issues.length && (r.value = e.catchValue({ ...r, error: { issues: a.issues.map((s) => $r(s, n, ir())) }, input: r.value }), r.issues = [], r.fallback = !0), r)) : (r.value = i.value, i.issues.length && (r.value = e.catchValue({ ...r, error: { issues: i.issues.map((a) => $r(a, n, ir())) }, input: r.value }), r.issues = [], r.fallback = !0), r);
8829
+ return i instanceof Promise ? i.then((a) => (r.value = a.value, a.issues.length && (r.value = e.catchValue({ ...r, error: { issues: a.issues.map((s) => $r(s, n, rr())) }, input: r.value }), r.issues = [], r.fallback = !0), r)) : (r.value = i.value, i.issues.length && (r.value = e.catchValue({ ...r, error: { issues: i.issues.map((a) => $r(a, n, rr())) }, input: r.value }), r.issues = [], r.fallback = !0), r);
8830
8830
  };
8831
8831
  }), hv = O("$ZodNaN", (t, e) => {
8832
8832
  Ut.init(t, e), t._zod.parse = (r, n) => ((typeof r.value != "number" || !Number.isNaN(r.value)) && r.issues.push({ input: r.value, inst: t, expected: "nan", code: "invalid_type" }), r);
@@ -11680,7 +11680,7 @@ function we(t, e, r = { path: [], schemaPath: [] }) {
11680
11680
  h && (s.ref || (s.ref = h), we(h, e, c), e.seen.get(h).isParent = !0);
11681
11681
  }
11682
11682
  const u = e.metadataRegistry.get(t);
11683
- return u && Object.assign(s.schema, u), e.io === "input" && vr(t) && (delete s.schema.examples, delete s.schema.default), e.io === "input" && "_prefault" in s.schema && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, e.seen.get(t).schema;
11683
+ return u && Object.assign(s.schema, u), e.io === "input" && yr(t) && (delete s.schema.examples, delete s.schema.default), e.io === "input" && "_prefault" in s.schema && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, e.seen.get(t).schema;
11684
11684
  }
11685
11685
  function Oa(t, e) {
11686
11686
  const r = t.seen.get(e);
@@ -11804,37 +11804,37 @@ function Ra(t, e) {
11804
11804
  throw new Error("Error converting schema to JSON.");
11805
11805
  }
11806
11806
  }
11807
- function vr(t, e) {
11807
+ function yr(t, e) {
11808
11808
  const r = e ?? { seen: /* @__PURE__ */ new Set() };
11809
11809
  if (r.seen.has(t)) return !1;
11810
11810
  r.seen.add(t);
11811
11811
  const n = t._zod.def;
11812
11812
  if (n.type === "transform") return !0;
11813
- if (n.type === "array") return vr(n.element, r);
11814
- if (n.type === "set") return vr(n.valueType, r);
11815
- if (n.type === "lazy") return vr(n.getter(), r);
11813
+ if (n.type === "array") return yr(n.element, r);
11814
+ if (n.type === "set") return yr(n.valueType, r);
11815
+ if (n.type === "lazy") return yr(n.getter(), r);
11816
11816
  if (n.type === "promise" || n.type === "optional" || n.type === "nonoptional" || n.type === "nullable" || n.type === "readonly" || n.type === "default" || n.type === "prefault")
11817
- return vr(n.innerType, r);
11817
+ return yr(n.innerType, r);
11818
11818
  if (n.type === "intersection")
11819
- return vr(n.left, r) || vr(n.right, r);
11819
+ return yr(n.left, r) || yr(n.right, r);
11820
11820
  if (n.type === "record" || n.type === "map")
11821
- return vr(n.keyType, r) || vr(n.valueType, r);
11821
+ return yr(n.keyType, r) || yr(n.valueType, r);
11822
11822
  if (n.type === "pipe")
11823
- return t._zod.traits.has("$ZodCodec") ? !0 : vr(n.in, r) || vr(n.out, r);
11823
+ return t._zod.traits.has("$ZodCodec") ? !0 : yr(n.in, r) || yr(n.out, r);
11824
11824
  if (n.type === "object") {
11825
11825
  for (const i in n.shape)
11826
- if (vr(n.shape[i], r)) return !0;
11826
+ if (yr(n.shape[i], r)) return !0;
11827
11827
  return !1;
11828
11828
  }
11829
11829
  if (n.type === "union") {
11830
11830
  for (const i of n.options)
11831
- if (vr(i, r)) return !0;
11831
+ if (yr(i, r)) return !0;
11832
11832
  return !1;
11833
11833
  }
11834
11834
  if (n.type === "tuple") {
11835
11835
  for (const i of n.items)
11836
- if (vr(i, r)) return !0;
11837
- return !!(n.rest && vr(n.rest, r));
11836
+ if (yr(i, r)) return !0;
11837
+ return !!(n.rest && yr(n.rest, r));
11838
11838
  }
11839
11839
  return !1;
11840
11840
  }
@@ -12838,10 +12838,10 @@ function F3(t, e) {
12838
12838
  }
12839
12839
  var S8 = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" };
12840
12840
  function D8(t) {
12841
- ir({ customError: t });
12841
+ rr({ customError: t });
12842
12842
  }
12843
12843
  function F8() {
12844
- return ir().customError;
12844
+ return rr().customError;
12845
12845
  }
12846
12846
  var x0;
12847
12847
  x0 || (x0 = {});
@@ -12890,7 +12890,7 @@ function I3(t, e) {
12890
12890
  return e.refs.get(i);
12891
12891
  });
12892
12892
  e.processing.add(i);
12893
- const a = B8(i, e), s = fr(a, e);
12893
+ const a = B8(i, e), s = cr(a, e);
12894
12894
  return e.refs.set(i, s), e.processing.delete(i), s;
12895
12895
  }
12896
12896
  if (t.enum !== void 0) {
@@ -12946,11 +12946,11 @@ function I3(t, e) {
12946
12946
  case "object": {
12947
12947
  const i = {}, a = t.properties || {}, s = new Set(t.required || []);
12948
12948
  for (const [u, l] of Object.entries(a)) {
12949
- const c = fr(l, e);
12949
+ const c = cr(l, e);
12950
12950
  i[u] = s.has(u) ? c : c.optional();
12951
12951
  }
12952
12952
  if (t.propertyNames) {
12953
- const u = fr(t.propertyNames, e), l = t.additionalProperties && typeof t.additionalProperties == "object" ? fr(t.additionalProperties, e) : ht.any();
12953
+ const u = cr(t.propertyNames, e), l = t.additionalProperties && typeof t.additionalProperties == "object" ? cr(t.additionalProperties, e) : ht.any();
12954
12954
  if (Object.keys(i).length === 0) {
12955
12955
  n = ht.record(u, l);
12956
12956
  break;
@@ -12962,7 +12962,7 @@ function I3(t, e) {
12962
12962
  if (t.patternProperties) {
12963
12963
  const u = t.patternProperties, l = Object.keys(u), c = [];
12964
12964
  for (const p of l) {
12965
- const g = fr(u[p], e), y = ht.string().regex(new RegExp(p));
12965
+ const g = cr(u[p], e), y = ht.string().regex(new RegExp(p));
12966
12966
  c.push(ht.looseRecord(y, g));
12967
12967
  }
12968
12968
  const h = [];
@@ -12979,19 +12979,19 @@ function I3(t, e) {
12979
12979
  break;
12980
12980
  }
12981
12981
  const o = ht.object(i);
12982
- t.additionalProperties === !1 ? n = o.strict() : typeof t.additionalProperties == "object" ? n = o.catchall(fr(t.additionalProperties, e)) : n = o.passthrough();
12982
+ t.additionalProperties === !1 ? n = o.strict() : typeof t.additionalProperties == "object" ? n = o.catchall(cr(t.additionalProperties, e)) : n = o.passthrough();
12983
12983
  break;
12984
12984
  }
12985
12985
  case "array": {
12986
12986
  const i = t.prefixItems, a = t.items;
12987
12987
  if (i && Array.isArray(i)) {
12988
- const s = i.map((u) => fr(u, e)), o = a && typeof a == "object" && !Array.isArray(a) ? fr(a, e) : void 0;
12988
+ const s = i.map((u) => cr(u, e)), o = a && typeof a == "object" && !Array.isArray(a) ? cr(a, e) : void 0;
12989
12989
  o ? n = ht.tuple(s).rest(o) : n = ht.tuple(s), typeof t.minItems == "number" && (n = n.check(ht.minLength(t.minItems))), typeof t.maxItems == "number" && (n = n.check(ht.maxLength(t.maxItems)));
12990
12990
  } else if (Array.isArray(a)) {
12991
- const s = a.map((u) => fr(u, e)), o = t.additionalItems && typeof t.additionalItems == "object" ? fr(t.additionalItems, e) : void 0;
12991
+ const s = a.map((u) => cr(u, e)), o = t.additionalItems && typeof t.additionalItems == "object" ? cr(t.additionalItems, e) : void 0;
12992
12992
  o ? n = ht.tuple(s).rest(o) : n = ht.tuple(s), typeof t.minItems == "number" && (n = n.check(ht.minLength(t.minItems))), typeof t.maxItems == "number" && (n = n.check(ht.maxLength(t.maxItems)));
12993
12993
  } else if (a !== void 0) {
12994
- const s = fr(a, e);
12994
+ const s = cr(a, e);
12995
12995
  let o = ht.array(s);
12996
12996
  typeof t.minItems == "number" && (o = o.min(t.minItems)), typeof t.maxItems == "number" && (o = o.max(t.maxItems)), n = o;
12997
12997
  } else
@@ -13003,27 +13003,27 @@ function I3(t, e) {
13003
13003
  }
13004
13004
  return n;
13005
13005
  }
13006
- function fr(t, e) {
13006
+ function cr(t, e) {
13007
13007
  if (typeof t == "boolean")
13008
13008
  return t ? ht.any() : ht.never();
13009
13009
  let r = I3(t, e);
13010
13010
  const n = t.type || t.enum !== void 0 || t.const !== void 0;
13011
13011
  if (t.anyOf && Array.isArray(t.anyOf)) {
13012
- const o = t.anyOf.map((l) => fr(l, e)), u = ht.union(o);
13012
+ const o = t.anyOf.map((l) => cr(l, e)), u = ht.union(o);
13013
13013
  r = n ? ht.intersection(r, u) : u;
13014
13014
  }
13015
13015
  if (t.oneOf && Array.isArray(t.oneOf)) {
13016
- const o = t.oneOf.map((l) => fr(l, e)), u = ht.xor(o);
13016
+ const o = t.oneOf.map((l) => cr(l, e)), u = ht.xor(o);
13017
13017
  r = n ? ht.intersection(r, u) : u;
13018
13018
  }
13019
13019
  if (t.allOf && Array.isArray(t.allOf))
13020
13020
  if (t.allOf.length === 0)
13021
13021
  r = n ? r : ht.any();
13022
13022
  else {
13023
- let o = n ? r : fr(t.allOf[0], e);
13023
+ let o = n ? r : cr(t.allOf[0], e);
13024
13024
  const u = n ? 0 : 1;
13025
13025
  for (let l = u; l < t.allOf.length; l++)
13026
- o = ht.intersection(o, fr(t.allOf[l], e));
13026
+ o = ht.intersection(o, cr(t.allOf[l], e));
13027
13027
  r = o;
13028
13028
  }
13029
13029
  t.nullable === !0 && e.version === "openapi-3.0" && (r = ht.nullable(r)), t.readOnly === !0 && (r = ht.readonly(r)), t.default !== void 0 && (r = r.default(t.default));
@@ -13047,7 +13047,7 @@ function T8(t, e) {
13047
13047
  throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
13048
13048
  }
13049
13049
  const n = N8(r, e?.defaultTarget), i = r.$defs || r.definitions || {}, a = { version: n, defs: i, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: r, registry: e?.registry ?? Jr };
13050
- return fr(r, a);
13050
+ return cr(r, a);
13051
13051
  }
13052
13052
  var N3 = {};
13053
13053
  Ki(N3, { bigint: () => V8, boolean: () => z8, date: () => O8, number: () => M8, string: () => P8 });
@@ -13066,7 +13066,7 @@ function V8(t) {
13066
13066
  function O8(t) {
13067
13067
  return eb(Gl, t);
13068
13068
  }
13069
- ir(wv());
13069
+ rr(wv());
13070
13070
  var He = { DEFAULTS: { width: 800, height: 400, pixelRatio: 2, fontFamily: "Open Sans", fontSize: 48, color: "#ffffff", textAlign: "center" }, LIMITS: { minWidth: 1, maxWidth: 4096, minHeight: 1, maxHeight: 4096, minFontSize: 1, maxFontSize: 512, minDuration: 0.1, maxDuration: 120, maxTextLength: 1e4 }, ANIMATION_TYPES: ["typewriter", "fadeIn", "slideIn", "shift", "ascend", "movingLetters"] }, Rr = /^#[A-Fa-f0-9]{6}$/, B3 = q.object({ src: q.string().url(), family: q.string(), weight: q.union([q.string(), q.number()]).optional(), style: q.string().optional(), originalFamily: q.string().optional() }), T3 = q.object({ width: q.number().min(0).default(0), color: q.string().regex(Rr).default("#000000"), opacity: q.number().min(0).max(1).default(1), radius: q.number().min(0).default(0) }), P3 = q.union([q.number().min(0), q.object({ top: q.number().min(0).default(0), right: q.number().min(0).default(0), bottom: q.number().min(0).default(0), left: q.number().min(0).default(0) })]), R8 = sk.extend({ family: q.string().default(He.DEFAULTS.fontFamily), size: q.number().int().min(He.LIMITS.minFontSize).max(He.LIMITS.maxFontSize).default(He.DEFAULTS.fontSize), weight: q.union([q.string(), q.number()]).default("400"), color: q.string().regex(Rr).default(He.DEFAULTS.color), opacity: q.number().min(0).max(1).default(1), background: q.string().regex(Rr).optional() }), $8 = q.object({ type: q.enum(["linear", "radial"]).default("linear"), angle: q.number().min(0).max(360).default(0), stops: q.array(q.object({ offset: q.number().min(0).max(1), color: q.string().regex(Rr) })).min(2) }), M3 = ok.extend({ letterSpacing: q.number().default(0), lineHeight: q.number().min(0).max(10).default(1.2), textTransform: q.enum(["none", "uppercase", "lowercase", "capitalize"]).default("none"), textDecoration: q.enum(["none", "underline", "line-through"]).default("none"), gradient: $8.optional() }), L8 = M3.omit({ wordSpacing: !0 }), z3 = ik.extend({ width: q.number().min(0).default(0), color: q.string().regex(Rr).default("#000000"), opacity: q.number().min(0).max(1).default(1) }), V3 = rk.extend({ offsetX: q.number().default(0), offsetY: q.number().default(0), blur: q.number().min(0).default(0), color: q.string().regex(Rr).default("#000000"), opacity: q.number().min(0).max(1).default(0.5) }), O3 = tk.extend({ color: q.string().regex(Rr).optional(), opacity: q.number().min(0).max(1).default(1), padding: q.number().int().min(0).max(200).optional() }), R3 = JE.extend({ horizontal: q.enum(["left", "center", "right"]).default(He.DEFAULTS.textAlign), vertical: q.enum(["top", "middle", "bottom"]).default("middle") }), Z8 = QE.extend({ preset: q.enum(He.ANIMATION_TYPES), speed: q.number().min(0.1).max(10).default(1), duration: q.number().min(He.LIMITS.minDuration).max(He.LIMITS.maxDuration).optional(), style: q.enum(["character", "word"]).optional(), direction: q.enum(["left", "right", "up", "down"]).optional() }).transform((t) => {
13071
13071
  const e = ["typewriter", "shift", "fadeIn", "slideIn"], r = { ...t };
13072
13072
  r.style && !e.includes(r.preset) && delete r.style;
@@ -13698,7 +13698,7 @@ async function TD(t) {
13698
13698
  throw console.error("Failed to initialize HarfBuzz:", e), new Error(`Failed to initialize HarfBuzz: ${e instanceof Error ? e.message : String(e)}`);
13699
13699
  }
13700
13700
  }
13701
- var PD = { utf16le: "utf-16le", ucs2: "utf-16le", utf16be: "utf-16be" }, rr = class {
13701
+ var PD = { utf16le: "utf-16le", ucs2: "utf-16le", utf16be: "utf-16be" }, er = class {
13702
13702
  constructor(t) {
13703
13703
  this.buffer = t, this.view = new DataView(t.buffer, t.byteOffset, t.byteLength), this.pos = 0, this.length = this.buffer.length;
13704
13704
  }
@@ -13727,16 +13727,16 @@ var PD = { utf16le: "utf-16le", ucs2: "utf-16le", utf16be: "utf-16be" }, rr = cl
13727
13727
  return this.readUInt16LE() + (this.readInt8() << 16);
13728
13728
  }
13729
13729
  };
13730
- rr.TYPES = { UInt8: 1, UInt16: 2, UInt24: 3, UInt32: 4, Int8: 1, Int16: 2, Int24: 3, Int32: 4, Float: 4, Double: 8 };
13730
+ er.TYPES = { UInt8: 1, UInt16: 2, UInt24: 3, UInt32: 4, Int8: 1, Int16: 2, Int24: 3, Int32: 4, Float: 4, Double: 8 };
13731
13731
  for (let t of Object.getOwnPropertyNames(DataView.prototype))
13732
13732
  if (t.slice(0, 3) === "get") {
13733
13733
  let e = t.slice(3).replace("Ui", "UI");
13734
13734
  e === "Float32" ? e = "Float" : e === "Float64" && (e = "Double");
13735
- let r = rr.TYPES[e];
13736
- rr.prototype["read" + e + (r === 1 ? "" : "BE")] = function() {
13735
+ let r = er.TYPES[e];
13736
+ er.prototype["read" + e + (r === 1 ? "" : "BE")] = function() {
13737
13737
  const n = this.view[t](this.pos, !1);
13738
13738
  return this.pos += r, n;
13739
- }, r !== 1 && (rr.prototype["read" + e + "LE"] = function() {
13739
+ }, r !== 1 && (er.prototype["read" + e + "LE"] = function() {
13740
13740
  const n = this.view[t](this.pos, !0);
13741
13741
  return this.pos += r, n;
13742
13742
  });
@@ -13810,7 +13810,7 @@ for (let t of Object.getOwnPropertyNames(DataView.prototype))
13810
13810
  if (t.slice(0, 3) === "set") {
13811
13811
  let e = t.slice(3).replace("Ui", "UI");
13812
13812
  e === "Float32" ? e = "Float" : e === "Float64" && (e = "Double");
13813
- let r = rr.TYPES[e];
13813
+ let r = er.TYPES[e];
13814
13814
  Iu.prototype["write" + e + (r === 1 ? "" : "BE")] = function(n) {
13815
13815
  this.view[t](this.pos, n, !1), this.pos += r;
13816
13816
  }, r !== 1 && (Iu.prototype["write" + e + "LE"] = function(n) {
@@ -13819,7 +13819,7 @@ for (let t of Object.getOwnPropertyNames(DataView.prototype))
13819
13819
  }
13820
13820
  var tn = class {
13821
13821
  fromBuffer(t) {
13822
- let e = new rr(t);
13822
+ let e = new er(t);
13823
13823
  return this.decode(e);
13824
13824
  }
13825
13825
  toBuffer(t) {
@@ -13831,7 +13831,7 @@ var tn = class {
13831
13831
  super(), this.type = t, this.endian = e, this.fn = this.type, this.type[this.type.length - 1] !== "8" && (this.fn += this.endian);
13832
13832
  }
13833
13833
  size() {
13834
- return rr.TYPES[this.type];
13834
+ return er.TYPES[this.type];
13835
13835
  }
13836
13836
  decode(t) {
13837
13837
  return t[`read${this.fn}`]();
@@ -14294,7 +14294,7 @@ var R = class extends tn {
14294
14294
  function Tr(t, e, r) {
14295
14295
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
14296
14296
  }
14297
- function ar(t, e, r, n) {
14297
+ function nr(t, e, r, n) {
14298
14298
  var i = arguments.length, a = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, s;
14299
14299
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, e, r, n);
14300
14300
  else for (var o = t.length - 1; o >= 0; o--) (s = t[o]) && (a = (i < 3 ? s(a) : i > 3 ? s(e, r, a) : s(e, r)) || a);
@@ -14347,7 +14347,7 @@ function Y3(t, e) {
14347
14347
  for (let r = 0; r < A0.length; r++) {
14348
14348
  let n = A0[r];
14349
14349
  if (n.probe(t)) {
14350
- let i = new n(new rr(t));
14350
+ let i = new n(new er(t));
14351
14351
  return e ? i.getFont(e) : i;
14352
14352
  }
14353
14353
  }
@@ -14357,7 +14357,7 @@ var Bu = "en";
14357
14357
  function sF(t = "en") {
14358
14358
  Bu = t;
14359
14359
  }
14360
- function sr(t, e, r) {
14360
+ function ar(t, e, r) {
14361
14361
  if (r.get) {
14362
14362
  let n = r.get;
14363
14363
  r.get = function() {
@@ -15100,8 +15100,8 @@ var wd = class {
15100
15100
  this.uvs = this.findSubtable(t, [[0, 5]]), this.uvs && this.uvs.version !== 14 && (this.uvs = null);
15101
15101
  }
15102
15102
  };
15103
- ar([sr], wd.prototype, "getCharacterSet", null);
15104
- ar([sr], wd.prototype, "codePointsForGlyph", null);
15103
+ nr([ar], wd.prototype, "getCharacterSet", null);
15104
+ nr([ar], wd.prototype, "codePointsForGlyph", null);
15105
15105
  var bB = class {
15106
15106
  process(t, e) {
15107
15107
  for (let r = 0; r < t.length - 1; r++) {
@@ -15462,7 +15462,7 @@ var Ds = class {
15462
15462
  this.table = t;
15463
15463
  }
15464
15464
  };
15465
- ar([sr], Ds.prototype, "glyphsForValue", null);
15465
+ nr([ar], Ds.prototype, "glyphsForValue", null);
15466
15466
  var FB = 0, Em = 0, km = 1, Sm = 2, IB = 16384, NB = class {
15467
15467
  process(t, e, r) {
15468
15468
  let n = FB, i = e ? t.length - 1 : 0, a = e ? -1 : 1;
@@ -15635,8 +15635,8 @@ var FB = 0, Em = 0, km = 1, Sm = 2, IB = 16384, NB = class {
15635
15635
  this.processIndicRearragement = this.processIndicRearragement.bind(this), this.processContextualSubstitution = this.processContextualSubstitution.bind(this), this.processLigature = this.processLigature.bind(this), this.processNoncontextualSubstitutions = this.processNoncontextualSubstitutions.bind(this), this.processGlyphInsertion = this.processGlyphInsertion.bind(this), this.font = t, this.morx = t.morx, this.inputCache = null;
15636
15636
  }
15637
15637
  };
15638
- ar([sr], w2.prototype, "getStateMachine", null);
15639
- function mr(t, e, r, n = !1, i = !1) {
15638
+ nr([ar], w2.prototype, "getStateMachine", null);
15639
+ function pr(t, e, r, n = !1, i = !1) {
15640
15640
  let a = t.splice(r[0] - (r[1] - 1), r[1]);
15641
15641
  i && a.reverse();
15642
15642
  let s = t.splice(e[0], e[1], ...a);
@@ -15647,35 +15647,35 @@ function jB(t, e, r, n) {
15647
15647
  case 0:
15648
15648
  return t;
15649
15649
  case 1:
15650
- return mr(t, [r, 1], [n, 0]);
15650
+ return pr(t, [r, 1], [n, 0]);
15651
15651
  case 2:
15652
- return mr(t, [r, 0], [n, 1]);
15652
+ return pr(t, [r, 0], [n, 1]);
15653
15653
  case 3:
15654
- return mr(t, [r, 1], [n, 1]);
15654
+ return pr(t, [r, 1], [n, 1]);
15655
15655
  case 4:
15656
- return mr(t, [r, 2], [n, 0]);
15656
+ return pr(t, [r, 2], [n, 0]);
15657
15657
  case 5:
15658
- return mr(t, [r, 2], [n, 0], !0, !1);
15658
+ return pr(t, [r, 2], [n, 0], !0, !1);
15659
15659
  case 6:
15660
- return mr(t, [r, 0], [n, 2]);
15660
+ return pr(t, [r, 0], [n, 2]);
15661
15661
  case 7:
15662
- return mr(t, [r, 0], [n, 2], !1, !0);
15662
+ return pr(t, [r, 0], [n, 2], !1, !0);
15663
15663
  case 8:
15664
- return mr(t, [r, 1], [n, 2]);
15664
+ return pr(t, [r, 1], [n, 2]);
15665
15665
  case 9:
15666
- return mr(t, [r, 1], [n, 2], !1, !0);
15666
+ return pr(t, [r, 1], [n, 2], !1, !0);
15667
15667
  case 10:
15668
- return mr(t, [r, 2], [n, 1]);
15668
+ return pr(t, [r, 2], [n, 1]);
15669
15669
  case 11:
15670
- return mr(t, [r, 2], [n, 1], !0, !1);
15670
+ return pr(t, [r, 2], [n, 1], !0, !1);
15671
15671
  case 12:
15672
- return mr(t, [r, 2], [n, 2]);
15672
+ return pr(t, [r, 2], [n, 2]);
15673
15673
  case 13:
15674
- return mr(t, [r, 2], [n, 2], !0, !1);
15674
+ return pr(t, [r, 2], [n, 2], !0, !1);
15675
15675
  case 14:
15676
- return mr(t, [r, 2], [n, 2], !1, !0);
15676
+ return pr(t, [r, 2], [n, 2], !1, !0);
15677
15677
  case 15:
15678
- return mr(t, [r, 2], [n, 2], !0, !0);
15678
+ return pr(t, [r, 2], [n, 2], !0, !0);
15679
15679
  default:
15680
15680
  throw new Error(`Unknown verb: ${e}`);
15681
15681
  }
@@ -16074,7 +16074,7 @@ var Ga = 44032, C2 = 55204, nT = C2 - Ga + 1, ic = 4352, nc = 4449, qn = 4519, a
16074
16074
  function Lu(t) {
16075
16075
  return lT(t) ? bT : cT(t) ? Ru : fT(t) ? _d : pT(t) ? $u : dT(t) ? A2 : hT(t) ? wT : vT;
16076
16076
  }
16077
- var Cr = 0, $i = 1, I0 = 2, N0 = 4, B0 = 5, _T = [[[Cr, 0], [Cr, 1], [Cr, 0], [Cr, 0], [$i, 2], [$i, 3], [B0, 0]], [[Cr, 0], [Cr, 1], [I0, 2], [Cr, 0], [$i, 2], [$i, 3], [B0, 0]], [[Cr, 0], [Cr, 1], [Cr, 0], [I0, 3], [$i, 2], [$i, 3], [N0, 0]], [[Cr, 0], [Cr, 1], [Cr, 0], [Cr, 0], [$i, 2], [$i, 3], [N0, 0]]];
16077
+ var xr = 0, $i = 1, I0 = 2, N0 = 4, B0 = 5, _T = [[[xr, 0], [xr, 1], [xr, 0], [xr, 0], [$i, 2], [$i, 3], [B0, 0]], [[xr, 0], [xr, 1], [I0, 2], [xr, 0], [$i, 2], [$i, 3], [B0, 0]], [[xr, 0], [xr, 1], [xr, 0], [I0, 3], [$i, 2], [$i, 3], [N0, 0]], [[xr, 0], [xr, 1], [xr, 0], [xr, 0], [$i, 2], [$i, 3], [N0, 0]]];
16078
16078
  function Fs(t, e, r) {
16079
16079
  return new Xi(t, t.glyphForCodePoint(e).id, [e], r);
16080
16080
  }
@@ -16989,12 +16989,12 @@ var ds = [".notdef", ".null", "nonmarkingreturn", "space", "exclam", "quotedbl",
16989
16989
  this.id = t, this.codePoints = e, this._font = r, this.isMark = this.codePoints.length > 0 && this.codePoints.every(W3), this.isLigature = this.codePoints.length > 1;
16990
16990
  }
16991
16991
  };
16992
- ar([sr], Ni.prototype, "cbox", null);
16993
- ar([sr], Ni.prototype, "bbox", null);
16994
- ar([sr], Ni.prototype, "path", null);
16995
- ar([sr], Ni.prototype, "advanceWidth", null);
16996
- ar([sr], Ni.prototype, "advanceHeight", null);
16997
- ar([sr], Ni.prototype, "name", null);
16992
+ nr([ar], Ni.prototype, "cbox", null);
16993
+ nr([ar], Ni.prototype, "bbox", null);
16994
+ nr([ar], Ni.prototype, "path", null);
16995
+ nr([ar], Ni.prototype, "advanceWidth", null);
16996
+ nr([ar], Ni.prototype, "advanceHeight", null);
16997
+ nr([ar], Ni.prototype, "name", null);
16998
16998
  var Om = new R({ numberOfContours: Q, xMin: Q, yMin: Q, xMax: Q, yMax: Q }), qT = 1, XT = 2, KT = 4, JT = 8, QT = 16, tP = 32, eP = 1, rP = 8, Rm = 32, iP = 64, nP = 128, aP = 256, Li = class N2 {
16999
16999
  copy() {
17000
17000
  return new N2(this.onCurve, this.endContour, this.x, this.y);
@@ -17939,7 +17939,7 @@ var B2 = class {
17939
17939
  let r = this.fvar.axis.map((a, s) => {
17940
17940
  let o = a.axisTag.trim();
17941
17941
  return o in e ? Math.max(a.minValue, Math.min(a.maxValue, e[o])) : a.defaultValue;
17942
- }), n = new rr(this.stream.buffer);
17942
+ }), n = new er(this.stream.buffer);
17943
17943
  n.pos = this._directoryPos;
17944
17944
  let i = new T2(n, r);
17945
17945
  return i._tables = this._tables, i;
@@ -17960,13 +17960,13 @@ var B2 = class {
17960
17960
  }
17961
17961
  }
17962
17962
  };
17963
- ar([sr], Nr.prototype, "bbox", null);
17964
- ar([sr], Nr.prototype, "_cmapProcessor", null);
17965
- ar([sr], Nr.prototype, "characterSet", null);
17966
- ar([sr], Nr.prototype, "_layoutEngine", null);
17967
- ar([sr], Nr.prototype, "variationAxes", null);
17968
- ar([sr], Nr.prototype, "namedVariations", null);
17969
- ar([sr], Nr.prototype, "_variationProcessor", null);
17963
+ nr([ar], Nr.prototype, "bbox", null);
17964
+ nr([ar], Nr.prototype, "_cmapProcessor", null);
17965
+ nr([ar], Nr.prototype, "characterSet", null);
17966
+ nr([ar], Nr.prototype, "_layoutEngine", null);
17967
+ nr([ar], Nr.prototype, "variationAxes", null);
17968
+ nr([ar], Nr.prototype, "namedVariations", null);
17969
+ nr([ar], Nr.prototype, "_variationProcessor", null);
17970
17970
  var DP = new R({ tag: new ge(4), offset: new M(V, "void", { type: "global" }), compLength: V, length: V, origChecksum: V }), P2 = new R({ tag: new ge(4), flavor: V, length: V, numTables: m, reserved: new De(m), totalSfntSize: V, majorVersion: m, minorVersion: m, metaOffset: V, metaLength: V, metaOrigLength: V, privOffset: V, privLength: V, tables: new P(DP, "numTables") });
17971
17971
  P2.process = function() {
17972
17972
  let t = {};
@@ -17986,7 +17986,7 @@ var FP = P2, IP = class extends Nr {
17986
17986
  if (this.stream.pos = e.offset, e.compLength < e.length) {
17987
17987
  this.stream.pos += 2;
17988
17988
  let r = new Uint8Array(e.length), n = (0, iF.default)(this.stream.readBuffer(e.compLength - 2), r);
17989
- return new rr(n);
17989
+ return new er(n);
17990
17990
  } else return this.stream;
17991
17991
  return null;
17992
17992
  }
@@ -18037,7 +18037,7 @@ var PP = M2, MP = class extends Nr {
18037
18037
  }
18038
18038
  let r = (0, nF.default)(t, e);
18039
18039
  if (!r) throw new Error("Error decoding compressed data in WOFF2");
18040
- this.stream = new rr(r), this._decompressed = !0;
18040
+ this.stream = new er(r), this._decompressed = !0;
18041
18041
  }
18042
18042
  }
18043
18043
  _decodeTable(t) {
@@ -18072,7 +18072,7 @@ var PP = M2, MP = class extends Nr {
18072
18072
  }
18073
18073
  }, Rn = class {
18074
18074
  decode(t, e) {
18075
- return new rr(this._buf.decode(t, e));
18075
+ return new er(this._buf.decode(t, e));
18076
18076
  }
18077
18077
  constructor(t) {
18078
18078
  this.length = t, this._buf = new Di(t);
@@ -18115,7 +18115,7 @@ var LP = new ie(V, { 65536: { numFonts: V, offsets: new P(V, "numFonts") }, 1310
18115
18115
  }
18116
18116
  getFont(t) {
18117
18117
  for (let e of this.header.offsets) {
18118
- let r = new rr(this.stream.buffer);
18118
+ let r = new er(this.stream.buffer);
18119
18119
  r.pos = e;
18120
18120
  let n = new Nr(r);
18121
18121
  if (n.postscriptName === t || n.postscriptName instanceof Uint8Array && t instanceof Uint8Array && n.postscriptName.every((i, a) => t[a] === i)) return n;
@@ -18125,7 +18125,7 @@ var LP = new ie(V, { 65536: { numFonts: V, offsets: new P(V, "numFonts") }, 1310
18125
18125
  get fonts() {
18126
18126
  let t = [];
18127
18127
  for (let e of this.header.offsets) {
18128
- let r = new rr(this.stream.buffer);
18128
+ let r = new er(this.stream.buffer);
18129
18129
  r.pos = e, t.push(new Nr(r));
18130
18130
  }
18131
18131
  return t;
@@ -18138,7 +18138,7 @@ var LP = new ie(V, { 65536: { numFonts: V, offsets: new P(V, "numFonts") }, 1310
18138
18138
  new R({ len: V, buf: new Di("len") });
18139
18139
  var jP = new R({ id: m, nameOffset: Q, attr: ct, dataOffset: vn, handle: V }), GP = new R({ name: new ge(4), maxTypeIndex: m, refList: new M(m, new P(jP, (t) => t.maxTypeIndex + 1), { type: "parent" }) }), WP = new R({ length: m, types: new P(GP, (t) => t.length + 1) }), HP = new R({ reserved: new De(ct, 24), typeList: new M(m, WP), nameListOffset: new M(m, "void") }), qm = new R({ dataOffset: V, map: new M(V, HP), dataLength: V, mapLength: V }), YP = class {
18140
18140
  static probe(t) {
18141
- let e = new rr(t);
18141
+ let e = new er(t);
18142
18142
  try {
18143
18143
  var r = qm.decode(e);
18144
18144
  } catch {
@@ -18151,7 +18151,7 @@ var jP = new R({ id: m, nameOffset: Q, attr: ct, dataOffset: vn, handle: V }), G
18151
18151
  getFont(t) {
18152
18152
  if (!this.sfnt) return null;
18153
18153
  for (let e of this.sfnt.refList) {
18154
- let r = this.header.dataOffset + e.dataOffset + 4, n = new rr(this.stream.buffer.slice(r)), i = new Nr(n);
18154
+ let r = this.header.dataOffset + e.dataOffset + 4, n = new er(this.stream.buffer.slice(r)), i = new Nr(n);
18155
18155
  if (i.postscriptName === t || i.postscriptName instanceof Uint8Array && t instanceof Uint8Array && i.postscriptName.every((a, s) => t[s] === a)) return i;
18156
18156
  }
18157
18157
  return null;
@@ -18159,7 +18159,7 @@ var jP = new R({ id: m, nameOffset: Q, attr: ct, dataOffset: vn, handle: V }), G
18159
18159
  get fonts() {
18160
18160
  let t = [];
18161
18161
  for (let e of this.sfnt.refList) {
18162
- let r = this.header.dataOffset + e.dataOffset + 4, n = new rr(this.stream.buffer.slice(r));
18162
+ let r = this.header.dataOffset + e.dataOffset + 4, n = new er(this.stream.buffer.slice(r));
18163
18163
  t.push(new Nr(n));
18164
18164
  }
18165
18165
  return t;
@@ -18565,19 +18565,19 @@ function JP() {
18565
18565
  for (var bt = 125, it = new Uint32Array(K.length), Ht = 0; Ht < K.length; Ht++)
18566
18566
  it[Ht] = p(K[Ht]);
18567
18567
  var Dt = /* @__PURE__ */ new Map();
18568
- function Nt(_r, ai) {
18569
- var xr = it[_r];
18570
- it[_r] = ai, Dt.set(xr, Dt.get(xr) - 1), xr & o && Dt.set(o, Dt.get(o) - 1), Dt.set(ai, (Dt.get(ai) || 0) + 1), ai & o && Dt.set(o, (Dt.get(o) || 0) + 1);
18568
+ function Nt(wr, ai) {
18569
+ var _r = it[wr];
18570
+ it[wr] = ai, Dt.set(_r, Dt.get(_r) - 1), _r & o && Dt.set(o, Dt.get(o) - 1), Dt.set(ai, (Dt.get(ai) || 0) + 1), ai & o && Dt.set(o, (Dt.get(o) || 0) + 1);
18571
18571
  }
18572
18572
  for (var _t = new Uint8Array(K.length), se = /* @__PURE__ */ new Map(), he = [], gt = null, ze = 0; ze < K.length; ze++)
18573
18573
  gt || he.push(gt = { start: ze, end: K.length - 1, level: at === "rtl" ? 1 : at === "ltr" ? 0 : qd(ze, !1) }), it[ze] & X && (gt.end = ze, gt = null);
18574
- for (var Je = jt | Lt | kt | rt | a | le | ue | X, be = function(_r) {
18575
- return _r + (_r & 1 ? 1 : 2);
18576
- }, Pr = function(_r) {
18577
- return _r + (_r & 1 ? 2 : 1);
18574
+ for (var Je = jt | Lt | kt | rt | a | le | ue | X, be = function(wr) {
18575
+ return wr + (wr & 1 ? 1 : 2);
18576
+ }, Pr = function(wr) {
18577
+ return wr + (wr & 1 ? 2 : 1);
18578
18578
  }, Oe = 0; Oe < he.length; Oe++) {
18579
18579
  gt = he[Oe];
18580
- var Kt = [{ _level: gt.level, _override: 0, _isolate: 0 }], Yt = void 0, or = 0, dr = 0, qe = 0;
18580
+ var Kt = [{ _level: gt.level, _override: 0, _isolate: 0 }], Yt = void 0, sr = 0, hr = 0, qe = 0;
18581
18581
  Dt.clear();
18582
18582
  for (var Ee = gt.start; Ee <= gt.end; Ee++) {
18583
18583
  var Fe = it[Ee];
@@ -18585,43 +18585,43 @@ function JP() {
18585
18585
  if (Fe & (jt | Lt)) {
18586
18586
  _t[Ee] = Yt._level;
18587
18587
  var Nn = (Fe === jt ? Pr : be)(Yt._level);
18588
- Nn <= bt && !or && !dr ? Kt.push({ _level: Nn, _override: 0, _isolate: 0 }) : or || dr++;
18588
+ Nn <= bt && !sr && !hr ? Kt.push({ _level: Nn, _override: 0, _isolate: 0 }) : sr || hr++;
18589
18589
  } else if (Fe & (kt | rt)) {
18590
18590
  _t[Ee] = Yt._level;
18591
18591
  var Ti = (Fe === kt ? Pr : be)(Yt._level);
18592
- Ti <= bt && !or && !dr ? Kt.push({ _level: Ti, _override: Fe & kt ? T : Z, _isolate: 0 }) : or || dr++;
18592
+ Ti <= bt && !sr && !hr ? Kt.push({ _level: Ti, _override: Fe & kt ? T : Z, _isolate: 0 }) : sr || hr++;
18593
18593
  } else if (Fe & a) {
18594
18594
  Fe & Ze && (Fe = qd(Ee + 1, !0) === 1 ? ee : fe), _t[Ee] = Yt._level, Yt._override && Nt(Ee, Yt._override);
18595
18595
  var Pi = (Fe === ee ? Pr : be)(Yt._level);
18596
- Pi <= bt && or === 0 && dr === 0 ? (qe++, Kt.push({ _level: Pi, _override: 0, _isolate: 1, _isolInitIndex: Ee })) : or++;
18596
+ Pi <= bt && sr === 0 && hr === 0 ? (qe++, Kt.push({ _level: Pi, _override: 0, _isolate: 1, _isolInitIndex: Ee })) : sr++;
18597
18597
  } else if (Fe & le) {
18598
- if (or > 0)
18599
- or--;
18598
+ if (sr > 0)
18599
+ sr--;
18600
18600
  else if (qe > 0) {
18601
- for (dr = 0; !Kt[Kt.length - 1]._isolate; )
18601
+ for (hr = 0; !Kt[Kt.length - 1]._isolate; )
18602
18602
  Kt.pop();
18603
18603
  var en = Kt[Kt.length - 1]._isolInitIndex;
18604
18604
  en != null && (se.set(en, Ee), se.set(Ee, en)), Kt.pop(), qe--;
18605
18605
  }
18606
18606
  Yt = Kt[Kt.length - 1], _t[Ee] = Yt._level, Yt._override && Nt(Ee, Yt._override);
18607
- } else Fe & ue ? (or === 0 && (dr > 0 ? dr-- : !Yt._isolate && Kt.length > 1 && (Kt.pop(), Yt = Kt[Kt.length - 1])), _t[Ee] = Yt._level) : Fe & X && (_t[Ee] = gt.level);
18607
+ } else Fe & ue ? (sr === 0 && (hr > 0 ? hr-- : !Yt._isolate && Kt.length > 1 && (Kt.pop(), Yt = Kt[Kt.length - 1])), _t[Ee] = Yt._level) : Fe & X && (_t[Ee] = gt.level);
18608
18608
  else
18609
18609
  _t[Ee] = Yt._level, Yt._override && Fe !== ft && Nt(Ee, Yt._override);
18610
18610
  }
18611
- for (var Ur = [], pr = null, Mr = gt.start; Mr <= gt.end; Mr++) {
18612
- var ur = it[Mr];
18613
- if (!(ur & u)) {
18614
- var Mi = _t[Mr], Bn = ur & a, B = ur === le;
18615
- pr && Mi === pr._level ? (pr._end = Mr, pr._endsWithIsolInit = Bn) : Ur.push(pr = { _start: Mr, _end: Mr, _level: Mi, _startsWithPDI: B, _endsWithIsolInit: Bn });
18611
+ for (var Ur = [], dr = null, Mr = gt.start; Mr <= gt.end; Mr++) {
18612
+ var or = it[Mr];
18613
+ if (!(or & u)) {
18614
+ var Mi = _t[Mr], Bn = or & a, B = or === le;
18615
+ dr && Mi === dr._level ? (dr._end = Mr, dr._endsWithIsolInit = Bn) : Ur.push(dr = { _start: Mr, _end: Mr, _level: Mi, _startsWithPDI: B, _endsWithIsolInit: Bn });
18616
18616
  }
18617
18617
  }
18618
18618
  for (var mt = [], qt = 0; qt < Ur.length; qt++) {
18619
18619
  var de = Ur[qt];
18620
18620
  if (!de._startsWithPDI || de._startsWithPDI && !se.has(de._start)) {
18621
- for (var ne = [pr = de], $e = void 0; pr && pr._endsWithIsolInit && ($e = se.get(pr._end)) != null; )
18621
+ for (var ne = [dr = de], $e = void 0; dr && dr._endsWithIsolInit && ($e = se.get(dr._end)) != null; )
18622
18622
  for (var zr = qt + 1; zr < Ur.length; zr++)
18623
18623
  if (Ur[zr]._start === $e) {
18624
- ne.push(pr = Ur[zr]);
18624
+ ne.push(dr = Ur[zr]);
18625
18625
  break;
18626
18626
  }
18627
18627
  for (var ii = [], Tn = 0; Tn < ne.length; Tn++)
@@ -18632,15 +18632,15 @@ function JP() {
18632
18632
  la = _t[nn];
18633
18633
  break;
18634
18634
  }
18635
- var Mn = ii[ii.length - 1], lr = _t[Mn], cr = gt.level;
18635
+ var Mn = ii[ii.length - 1], ur = _t[Mn], lr = gt.level;
18636
18636
  if (!(it[Mn] & a)) {
18637
- for (var wr = Mn + 1; wr <= gt.end; wr++)
18638
- if (!(it[wr] & u)) {
18639
- cr = _t[wr];
18637
+ for (var br = Mn + 1; br <= gt.end; br++)
18638
+ if (!(it[br] & u)) {
18639
+ lr = _t[br];
18640
18640
  break;
18641
18641
  }
18642
18642
  }
18643
- mt.push({ _seqIndices: ii, _sosType: Math.max(la, Pn) % 2 ? T : Z, _eosType: Math.max(cr, lr) % 2 ? T : Z });
18643
+ mt.push({ _seqIndices: ii, _sosType: Math.max(la, Pn) % 2 ? T : Z, _eosType: Math.max(lr, ur) % 2 ? T : Z });
18644
18644
  }
18645
18645
  }
18646
18646
  for (var zi = 0; zi < mt.length; zi++) {
@@ -18731,8 +18731,8 @@ function JP() {
18731
18731
  }
18732
18732
  }
18733
18733
  }
18734
- Po.sort(function(_r, ai) {
18735
- return _r[0] - ai[0];
18734
+ Po.sort(function(wr, ai) {
18735
+ return wr[0] - ai[0];
18736
18736
  });
18737
18737
  }
18738
18738
  for (var xc = 0; xc < Po.length; xc++) {
@@ -18805,28 +18805,28 @@ function JP() {
18805
18805
  }
18806
18806
  }
18807
18807
  return { levels: _t, paragraphs: he };
18808
- function qd(_r, ai) {
18809
- for (var xr = _r; xr < K.length; xr++) {
18810
- var sn = it[xr];
18808
+ function qd(wr, ai) {
18809
+ for (var _r = wr; _r < K.length; _r++) {
18810
+ var sn = it[_r];
18811
18811
  if (sn & (T | J))
18812
18812
  return 1;
18813
18813
  if (sn & (X | Z) || ai && sn === le)
18814
18814
  return 0;
18815
18815
  if (sn & a) {
18816
- var Xd = M6(xr);
18817
- xr = Xd === -1 ? K.length : Xd;
18816
+ var Xd = M6(_r);
18817
+ _r = Xd === -1 ? K.length : Xd;
18818
18818
  }
18819
18819
  }
18820
18820
  return 0;
18821
18821
  }
18822
- function M6(_r) {
18823
- for (var ai = 1, xr = _r + 1; xr < K.length; xr++) {
18824
- var sn = it[xr];
18822
+ function M6(wr) {
18823
+ for (var ai = 1, _r = wr + 1; _r < K.length; _r++) {
18824
+ var sn = it[_r];
18825
18825
  if (sn & X)
18826
18826
  break;
18827
18827
  if (sn & le) {
18828
18828
  if (--ai === 0)
18829
- return xr;
18829
+ return _r;
18830
18830
  } else sn & a && ai++;
18831
18831
  }
18832
18832
  return -1;
@@ -20116,9 +20116,9 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20116
20116
  pop() {
20117
20117
  return this.heap[--this.length];
20118
20118
  }
20119
- }, ms = /* @__PURE__ */ new WeakMap(), ae($n, ms, !1), $n), sg, og, si, Gr, pi, ya, mi, gs, ys, gi, Xe, Wr, Ge, Ie, Gt, Ar, Hr, gr, Qe, yi, tr, vi, bi, Yr, qr, wi, Ln, Er, vs, wt, Xc, va, cn, Ko, Xr, ug, ba, bs, Jo, fn, hn, Kc, Qo, tu, ke, Jc, ws, dn, Qc, t0, qM = (t0 = class {
20119
+ }, ms = /* @__PURE__ */ new WeakMap(), ae($n, ms, !1), $n), sg, og, si, Gr, pi, ya, mi, gs, ys, gi, Xe, Wr, Ge, Ie, Gt, Cr, Hr, mr, Qe, yi, tr, vi, bi, Yr, qr, wi, Ln, Ar, vs, wt, Xc, va, cn, Ko, Xr, ug, ba, bs, Jo, fn, hn, Kc, Qo, tu, ke, Jc, ws, dn, Qc, t0, qM = (t0 = class {
20120
20120
  constructor(t) {
20121
- ae(this, wt), ae(this, si), ae(this, Gr), ae(this, pi), ae(this, ya), ae(this, mi), ae(this, gs), ae(this, ys), ae(this, gi), zt(this, "ttl"), zt(this, "ttlResolution"), zt(this, "ttlAutopurge"), zt(this, "updateAgeOnGet"), zt(this, "updateAgeOnHas"), zt(this, "allowStale"), zt(this, "noDisposeOnSet"), zt(this, "noUpdateTTL"), zt(this, "maxEntrySize"), zt(this, "sizeCalculation"), zt(this, "noDeleteOnFetchRejection"), zt(this, "noDeleteOnStaleGet"), zt(this, "allowStaleOnFetchAbort"), zt(this, "allowStaleOnFetchRejection"), zt(this, "ignoreFetchAbort"), ae(this, Xe), ae(this, Wr), ae(this, Ge), ae(this, Ie), ae(this, Gt), ae(this, Ar), ae(this, Hr), ae(this, gr), ae(this, Qe), ae(this, yi), ae(this, tr), ae(this, vi), ae(this, bi), ae(this, Yr), ae(this, qr), ae(this, wi), ae(this, Ln), ae(this, Er), ae(this, vs), ae(this, va, () => {
20121
+ ae(this, wt), ae(this, si), ae(this, Gr), ae(this, pi), ae(this, ya), ae(this, mi), ae(this, gs), ae(this, ys), ae(this, gi), zt(this, "ttl"), zt(this, "ttlResolution"), zt(this, "ttlAutopurge"), zt(this, "updateAgeOnGet"), zt(this, "updateAgeOnHas"), zt(this, "allowStale"), zt(this, "noDisposeOnSet"), zt(this, "noUpdateTTL"), zt(this, "maxEntrySize"), zt(this, "sizeCalculation"), zt(this, "noDeleteOnFetchRejection"), zt(this, "noDeleteOnStaleGet"), zt(this, "allowStaleOnFetchAbort"), zt(this, "allowStaleOnFetchRejection"), zt(this, "ignoreFetchAbort"), ae(this, Xe), ae(this, Wr), ae(this, Ge), ae(this, Ie), ae(this, Gt), ae(this, Cr), ae(this, Hr), ae(this, mr), ae(this, Qe), ae(this, yi), ae(this, tr), ae(this, vi), ae(this, bi), ae(this, Yr), ae(this, qr), ae(this, wi), ae(this, Ln), ae(this, Ar), ae(this, vs), ae(this, va, () => {
20122
20122
  }), ae(this, cn, () => {
20123
20123
  }), ae(this, Ko, () => {
20124
20124
  }), ae(this, Xr, () => !1), ae(this, ba, (L) => {
@@ -20138,7 +20138,7 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20138
20138
  }
20139
20139
  if (C !== void 0 && typeof C != "function") throw new TypeError("memoMethod must be a function if defined");
20140
20140
  if (Mt(this, ys, C), v !== void 0 && typeof v != "function") throw new TypeError("fetchMethod must be a function if specified");
20141
- if (Mt(this, gs, v), Mt(this, Ln, !!v), Mt(this, Ge, /* @__PURE__ */ new Map()), Mt(this, Ie, new Array(e).fill(void 0)), Mt(this, Gt, new Array(e).fill(void 0)), Mt(this, Ar, new T(e)), Mt(this, Hr, new T(e)), Mt(this, gr, 0), Mt(this, Qe, 0), Mt(this, yi, YM.create(e)), Mt(this, Xe, 0), Mt(this, Wr, 0), typeof u == "function" && Mt(this, pi, u), typeof l == "function" && Mt(this, ya, l), typeof c == "function" ? (Mt(this, mi, c), Mt(this, tr, [])) : (Mt(this, mi, void 0), Mt(this, tr, void 0)), Mt(this, wi, !!k(this, pi)), Mt(this, vs, !!k(this, ya)), Mt(this, Er, !!k(this, mi)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!I, this.allowStaleOnFetchRejection = !!A, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!w, this.maxEntrySize !== 0) {
20141
+ if (Mt(this, gs, v), Mt(this, Ln, !!v), Mt(this, Ge, /* @__PURE__ */ new Map()), Mt(this, Ie, new Array(e).fill(void 0)), Mt(this, Gt, new Array(e).fill(void 0)), Mt(this, Cr, new T(e)), Mt(this, Hr, new T(e)), Mt(this, mr, 0), Mt(this, Qe, 0), Mt(this, yi, YM.create(e)), Mt(this, Xe, 0), Mt(this, Wr, 0), typeof u == "function" && Mt(this, pi, u), typeof l == "function" && Mt(this, ya, l), typeof c == "function" ? (Mt(this, mi, c), Mt(this, tr, [])) : (Mt(this, mi, void 0), Mt(this, tr, void 0)), Mt(this, wi, !!k(this, pi)), Mt(this, vs, !!k(this, ya)), Mt(this, Ar, !!k(this, mi)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!I, this.allowStaleOnFetchRejection = !!A, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!w, this.maxEntrySize !== 0) {
20142
20142
  if (k(this, Gr) !== 0 && !pn(k(this, Gr))) throw new TypeError("maxSize must be a positive integer if specified");
20143
20143
  if (!pn(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
20144
20144
  xt(this, wt, ug).call(this);
@@ -20157,8 +20157,8 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20157
20157
  return k(this, gi);
20158
20158
  }
20159
20159
  static unsafeExposeInternals(t) {
20160
- return { starts: k(t, bi), ttls: k(t, Yr), autopurgeTimers: k(t, qr), sizes: k(t, vi), keyMap: k(t, Ge), keyList: k(t, Ie), valList: k(t, Gt), next: k(t, Ar), prev: k(t, Hr), get head() {
20161
- return k(t, gr);
20160
+ return { starts: k(t, bi), ttls: k(t, Yr), autopurgeTimers: k(t, qr), sizes: k(t, vi), keyMap: k(t, Ge), keyList: k(t, Ie), valList: k(t, Gt), next: k(t, Cr), prev: k(t, Hr), get head() {
20161
+ return k(t, mr);
20162
20162
  }, get tail() {
20163
20163
  return k(t, Qe);
20164
20164
  }, free: k(t, yi), isBackgroundFetch: (e) => {
@@ -20307,7 +20307,7 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20307
20307
  let { ttl: o = this.ttl, start: u, noDisposeOnSet: l = this.noDisposeOnSet, sizeCalculation: c = this.sizeCalculation, status: h } = r, { noUpdateTTL: p = this.noUpdateTTL } = r, g = k(this, Jo).call(this, t, e, r.size || 0, c);
20308
20308
  if (this.maxEntrySize && g > this.maxEntrySize) return h && (h.set = "miss", h.maxEntrySizeExceeded = !0), xt(this, wt, dn).call(this, t, "set"), this;
20309
20309
  let y = k(this, Xe) === 0 ? void 0 : k(this, Ge).get(t);
20310
- if (y === void 0) y = k(this, Xe) === 0 ? k(this, Qe) : k(this, yi).length !== 0 ? k(this, yi).pop() : k(this, Xe) === k(this, si) ? xt(this, wt, Qo).call(this, !1) : k(this, Xe), k(this, Ie)[y] = t, k(this, Gt)[y] = e, k(this, Ge).set(t, y), k(this, Ar)[k(this, Qe)] = y, k(this, Hr)[y] = k(this, Qe), Mt(this, Qe, y), Ic(this, Xe)._++, k(this, bs).call(this, y, g, h), h && (h.set = "add"), p = !1, k(this, vs) && ((n = k(this, ya)) == null || n.call(this, e, t, "add"));
20310
+ if (y === void 0) y = k(this, Xe) === 0 ? k(this, Qe) : k(this, yi).length !== 0 ? k(this, yi).pop() : k(this, Xe) === k(this, si) ? xt(this, wt, Qo).call(this, !1) : k(this, Xe), k(this, Ie)[y] = t, k(this, Gt)[y] = e, k(this, Ge).set(t, y), k(this, Cr)[k(this, Qe)] = y, k(this, Hr)[y] = k(this, Qe), Mt(this, Qe, y), Ic(this, Xe)._++, k(this, bs).call(this, y, g, h), h && (h.set = "add"), p = !1, k(this, vs) && ((n = k(this, ya)) == null || n.call(this, e, t, "add"));
20311
20311
  else {
20312
20312
  xt(this, wt, ws).call(this, y);
20313
20313
  let E = k(this, Gt)[y];
@@ -20315,8 +20315,8 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20315
20315
  if (k(this, Ln) && xt(this, wt, ke).call(this, E)) {
20316
20316
  E.__abortController.abort(new Error("replaced"));
20317
20317
  let { __staleWhileFetching: v } = E;
20318
- v !== void 0 && !l && (k(this, wi) && ((i = k(this, pi)) == null || i.call(this, v, t, "set")), k(this, Er) && k(this, tr)?.push([v, t, "set"]));
20319
- } else l || (k(this, wi) && ((a = k(this, pi)) == null || a.call(this, E, t, "set")), k(this, Er) && k(this, tr)?.push([E, t, "set"]));
20318
+ v !== void 0 && !l && (k(this, wi) && ((i = k(this, pi)) == null || i.call(this, v, t, "set")), k(this, Ar) && k(this, tr)?.push([v, t, "set"]));
20319
+ } else l || (k(this, wi) && ((a = k(this, pi)) == null || a.call(this, E, t, "set")), k(this, Ar) && k(this, tr)?.push([E, t, "set"]));
20320
20320
  if (k(this, ba).call(this, y), k(this, bs).call(this, y, g, h), k(this, Gt)[y] = e, h) {
20321
20321
  h.set = "replace";
20322
20322
  let v = E && xt(this, wt, ke).call(this, E) ? E.__staleWhileFetching : E;
@@ -20325,7 +20325,7 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20325
20325
  } else h && (h.set = "update");
20326
20326
  k(this, vs) && this.onInsert?.(e, t, e === E ? "update" : "replace");
20327
20327
  }
20328
- if (o !== 0 && !k(this, Yr) && xt(this, wt, Xc).call(this), k(this, Yr) && (p || k(this, Ko).call(this, y, o, u), h && k(this, cn).call(this, h, y)), !l && k(this, Er) && k(this, tr)) {
20328
+ if (o !== 0 && !k(this, Yr) && xt(this, wt, Xc).call(this), k(this, Yr) && (p || k(this, Ko).call(this, y, o, u), h && k(this, cn).call(this, h, y)), !l && k(this, Ar) && k(this, tr)) {
20329
20329
  let E = k(this, tr), v;
20330
20330
  for (; v = E?.shift(); ) (s = k(this, mi)) == null || s.call(this, ...v);
20331
20331
  }
@@ -20335,13 +20335,13 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20335
20335
  var t;
20336
20336
  try {
20337
20337
  for (; k(this, Xe); ) {
20338
- let e = k(this, Gt)[k(this, gr)];
20338
+ let e = k(this, Gt)[k(this, mr)];
20339
20339
  if (xt(this, wt, Qo).call(this, !0), xt(this, wt, ke).call(this, e)) {
20340
20340
  if (e.__staleWhileFetching) return e.__staleWhileFetching;
20341
20341
  } else if (e !== void 0) return e;
20342
20342
  }
20343
20343
  } finally {
20344
- if (k(this, Er) && k(this, tr)) {
20344
+ if (k(this, Ar) && k(this, tr)) {
20345
20345
  let e = k(this, tr), r;
20346
20346
  for (; r = e?.shift(); ) (t = k(this, mi)) == null || t.call(this, ...r);
20347
20347
  }
@@ -20409,7 +20409,7 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20409
20409
  clear() {
20410
20410
  return xt(this, wt, Qc).call(this, "delete");
20411
20411
  }
20412
- }, si = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakSet(), Xc = function() {
20412
+ }, si = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakSet(), Xc = function() {
20413
20413
  let t = new cu(k(this, si)), e = new cu(k(this, si));
20414
20414
  Mt(this, Yr, t), Mt(this, bi, e);
20415
20415
  let r = this.ttlAutopurge ? new Array(k(this, si)) : void 0;
@@ -20475,15 +20475,15 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20475
20475
  Mt(this, Wr, k(this, Wr) + t[e]), n && (n.entrySize = r, n.totalCalculatedSize = k(this, Wr));
20476
20476
  });
20477
20477
  }, ba = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), fn = function* ({ allowStale: t = this.allowStale } = {}) {
20478
- if (k(this, Xe)) for (let e = k(this, Qe); !(!xt(this, wt, Kc).call(this, e) || ((t || !k(this, Xr).call(this, e)) && (yield e), e === k(this, gr))); ) e = k(this, Hr)[e];
20478
+ if (k(this, Xe)) for (let e = k(this, Qe); !(!xt(this, wt, Kc).call(this, e) || ((t || !k(this, Xr).call(this, e)) && (yield e), e === k(this, mr))); ) e = k(this, Hr)[e];
20479
20479
  }, hn = function* ({ allowStale: t = this.allowStale } = {}) {
20480
- if (k(this, Xe)) for (let e = k(this, gr); !(!xt(this, wt, Kc).call(this, e) || ((t || !k(this, Xr).call(this, e)) && (yield e), e === k(this, Qe))); ) e = k(this, Ar)[e];
20480
+ if (k(this, Xe)) for (let e = k(this, mr); !(!xt(this, wt, Kc).call(this, e) || ((t || !k(this, Xr).call(this, e)) && (yield e), e === k(this, Qe))); ) e = k(this, Cr)[e];
20481
20481
  }, Kc = function(t) {
20482
20482
  return t !== void 0 && k(this, Ge).get(k(this, Ie)[t]) === t;
20483
20483
  }, Qo = function(t) {
20484
20484
  var e;
20485
- let r = k(this, gr), n = k(this, Ie)[r], i = k(this, Gt)[r];
20486
- return k(this, Ln) && xt(this, wt, ke).call(this, i) ? i.__abortController.abort(new Error("evicted")) : (k(this, wi) || k(this, Er)) && (k(this, wi) && ((e = k(this, pi)) == null || e.call(this, i, n, "evict")), k(this, Er) && k(this, tr)?.push([i, n, "evict"])), k(this, ba).call(this, r), k(this, qr)?.[r] && (clearTimeout(k(this, qr)[r]), k(this, qr)[r] = void 0), t && (k(this, Ie)[r] = void 0, k(this, Gt)[r] = void 0, k(this, yi).push(r)), k(this, Xe) === 1 ? (Mt(this, gr, Mt(this, Qe, 0)), k(this, yi).length = 0) : Mt(this, gr, k(this, Ar)[r]), k(this, Ge).delete(n), Ic(this, Xe)._--, r;
20485
+ let r = k(this, mr), n = k(this, Ie)[r], i = k(this, Gt)[r];
20486
+ return k(this, Ln) && xt(this, wt, ke).call(this, i) ? i.__abortController.abort(new Error("evicted")) : (k(this, wi) || k(this, Ar)) && (k(this, wi) && ((e = k(this, pi)) == null || e.call(this, i, n, "evict")), k(this, Ar) && k(this, tr)?.push([i, n, "evict"])), k(this, ba).call(this, r), k(this, qr)?.[r] && (clearTimeout(k(this, qr)[r]), k(this, qr)[r] = void 0), t && (k(this, Ie)[r] = void 0, k(this, Gt)[r] = void 0, k(this, yi).push(r)), k(this, Xe) === 1 ? (Mt(this, mr, Mt(this, Qe, 0)), k(this, yi).length = 0) : Mt(this, mr, k(this, Cr)[r]), k(this, Ge).delete(n), Ic(this, Xe)._--, r;
20487
20487
  }, tu = function(t, e, r, n) {
20488
20488
  let i = e === void 0 ? void 0 : k(this, Gt)[e];
20489
20489
  if (xt(this, wt, ke).call(this, i)) return i;
@@ -20513,9 +20513,9 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20513
20513
  let e = t;
20514
20514
  return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof ju;
20515
20515
  }, Jc = function(t, e) {
20516
- k(this, Hr)[e] = t, k(this, Ar)[t] = e;
20516
+ k(this, Hr)[e] = t, k(this, Cr)[t] = e;
20517
20517
  }, ws = function(t) {
20518
- t !== k(this, Qe) && (t === k(this, gr) ? Mt(this, gr, k(this, Ar)[t]) : xt(this, wt, Jc).call(this, k(this, Hr)[t], k(this, Ar)[t]), xt(this, wt, Jc).call(this, k(this, Qe), t), Mt(this, Qe, t));
20518
+ t !== k(this, Qe) && (t === k(this, mr) ? Mt(this, mr, k(this, Cr)[t]) : xt(this, wt, Jc).call(this, k(this, Hr)[t], k(this, Cr)[t]), xt(this, wt, Jc).call(this, k(this, Qe), t), Mt(this, Qe, t));
20519
20519
  }, dn = function(t, e) {
20520
20520
  var r, n;
20521
20521
  let i = !1;
@@ -20525,18 +20525,18 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20525
20525
  else {
20526
20526
  k(this, ba).call(this, a);
20527
20527
  let s = k(this, Gt)[a];
20528
- if (xt(this, wt, ke).call(this, s) ? s.__abortController.abort(new Error("deleted")) : (k(this, wi) || k(this, Er)) && (k(this, wi) && ((r = k(this, pi)) == null || r.call(this, s, t, e)), k(this, Er) && k(this, tr)?.push([s, t, e])), k(this, Ge).delete(t), k(this, Ie)[a] = void 0, k(this, Gt)[a] = void 0, a === k(this, Qe)) Mt(this, Qe, k(this, Hr)[a]);
20529
- else if (a === k(this, gr)) Mt(this, gr, k(this, Ar)[a]);
20528
+ if (xt(this, wt, ke).call(this, s) ? s.__abortController.abort(new Error("deleted")) : (k(this, wi) || k(this, Ar)) && (k(this, wi) && ((r = k(this, pi)) == null || r.call(this, s, t, e)), k(this, Ar) && k(this, tr)?.push([s, t, e])), k(this, Ge).delete(t), k(this, Ie)[a] = void 0, k(this, Gt)[a] = void 0, a === k(this, Qe)) Mt(this, Qe, k(this, Hr)[a]);
20529
+ else if (a === k(this, mr)) Mt(this, mr, k(this, Cr)[a]);
20530
20530
  else {
20531
20531
  let o = k(this, Hr)[a];
20532
- k(this, Ar)[o] = k(this, Ar)[a];
20533
- let u = k(this, Ar)[a];
20532
+ k(this, Cr)[o] = k(this, Cr)[a];
20533
+ let u = k(this, Cr)[a];
20534
20534
  k(this, Hr)[u] = k(this, Hr)[a];
20535
20535
  }
20536
20536
  Ic(this, Xe)._--, k(this, yi).push(a);
20537
20537
  }
20538
20538
  }
20539
- if (k(this, Er) && k(this, tr)?.length) {
20539
+ if (k(this, Ar) && k(this, tr)?.length) {
20540
20540
  let a = k(this, tr), s;
20541
20541
  for (; s = a?.shift(); ) (n = k(this, mi)) == null || n.call(this, ...s);
20542
20542
  }
@@ -20548,7 +20548,7 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20548
20548
  if (xt(this, wt, ke).call(this, i)) i.__abortController.abort(new Error("deleted"));
20549
20549
  else {
20550
20550
  let a = k(this, Ie)[n];
20551
- k(this, wi) && ((e = k(this, pi)) == null || e.call(this, i, a, t)), k(this, Er) && k(this, tr)?.push([i, a, t]);
20551
+ k(this, wi) && ((e = k(this, pi)) == null || e.call(this, i, a, t)), k(this, Ar) && k(this, tr)?.push([i, a, t]);
20552
20552
  }
20553
20553
  }
20554
20554
  if (k(this, Ge).clear(), k(this, Gt).fill(void 0), k(this, Ie).fill(void 0), k(this, Yr) && k(this, bi)) {
@@ -20556,7 +20556,7 @@ var HM = (t) => !j2.has(t), pn = (t) => t && t === Math.floor(t) && t > 0 && isF
20556
20556
  for (let n of k(this, qr) ?? []) n !== void 0 && clearTimeout(n);
20557
20557
  k(this, qr)?.fill(void 0);
20558
20558
  }
20559
- if (k(this, vi) && k(this, vi).fill(0), Mt(this, gr, 0), Mt(this, Qe, 0), k(this, yi).length = 0, Mt(this, Wr, 0), Mt(this, Xe, 0), k(this, Er) && k(this, tr)) {
20559
+ if (k(this, vi) && k(this, vi).fill(0), Mt(this, mr, 0), Mt(this, Qe, 0), k(this, yi).length = 0, Mt(this, Wr, 0), Mt(this, Xe, 0), k(this, Ar) && k(this, tr)) {
20560
20560
  let n = k(this, tr), i;
20561
20561
  for (; i = n?.shift(); ) (r = k(this, mi)) == null || r.call(this, ...i);
20562
20562
  }
@@ -36819,7 +36819,7 @@ class Gu {
36819
36819
  }
36820
36820
  }
36821
36821
  const gV = "Captions will appear here";
36822
- class Wu extends nr {
36822
+ class Wu extends ir {
36823
36823
  static loadedFonts = /* @__PURE__ */ new Set();
36824
36824
  state = { kind: "loaded", cues: [] };
36825
36825
  currentCue = null;
@@ -36936,7 +36936,7 @@ class Wu extends nr {
36936
36936
  }
36937
36937
  }
36938
36938
  }
36939
- class yV extends nr {
36939
+ class yV extends ir {
36940
36940
  background;
36941
36941
  text;
36942
36942
  constructor(e, r) {
@@ -37210,7 +37210,7 @@ async function SV(t, e, r) {
37210
37210
  if (!o) throw new Error(`canvas.toBlob returned null — taint? (svg bytes=${t.length})`);
37211
37211
  return new Uint8Array(await o.arrayBuffer());
37212
37212
  }
37213
- class Hu extends nr {
37213
+ class Hu extends ir {
37214
37214
  static captureChain = Promise.resolve();
37215
37215
  iframe = null;
37216
37216
  renderedWidth = 0;
@@ -37554,7 +37554,7 @@ ${e.stack}` : e), this.createFallbackGraphic();
37554
37554
  onDimensionsChanged() {
37555
37555
  }
37556
37556
  }
37557
- class DV extends nr {
37557
+ class DV extends ir {
37558
37558
  texture;
37559
37559
  sprite;
37560
37560
  placeholder;
@@ -37885,7 +37885,7 @@ class e6 {
37885
37885
  this.container.addChild(o);
37886
37886
  }
37887
37887
  }
37888
- class vg extends nr {
37888
+ class vg extends ir {
37889
37889
  sprite = null;
37890
37890
  texture = null;
37891
37891
  placeholder = null;
@@ -37941,7 +37941,7 @@ class vg extends nr {
37941
37941
  }
37942
37942
  }
37943
37943
  }
37944
- class BV extends nr {
37944
+ class BV extends ir {
37945
37945
  texture;
37946
37946
  sprite;
37947
37947
  isPlaying;
@@ -38329,7 +38329,7 @@ const yO = _({
38329
38329
  }, D()), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
38330
38330
  }).strict(), i6 = _({
38331
38331
  find: d(),
38332
- replace: hr()
38332
+ replace: fr()
38333
38333
  }).strict(), wO = _({
38334
38334
  capture: b([F((t) => {
38335
38335
  if (!(t === "" || t === null || t === void 0))
@@ -38373,7 +38373,7 @@ _({
38373
38373
  _({
38374
38374
  success: Pt(),
38375
38375
  message: d(),
38376
- response: m1(d(), hr())
38376
+ response: m1(d(), fr())
38377
38377
  }).strict();
38378
38378
  const CO = _({
38379
38379
  message: d(),
@@ -38409,7 +38409,7 @@ _({
38409
38409
  }).strict();
38410
38410
  const SO = _({
38411
38411
  family: f(d()),
38412
- weight: f(hr()).default("400"),
38412
+ weight: f(fr()).default("400"),
38413
38413
  color: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
38414
38414
  background: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
38415
38415
  opacity: f(b([F((t) => {
@@ -38448,7 +38448,7 @@ const SO = _({
38448
38448
  if (!(t === "" || t === null || t === void 0))
38449
38449
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
38450
38450
  }, D().int().gte(1).lte(500)), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
38451
- weight: f(hr()).default("400"),
38451
+ weight: f(fr()).default("400"),
38452
38452
  color: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
38453
38453
  opacity: f(b([F((t) => {
38454
38454
  if (!(t === "" || t === null || t === void 0))
@@ -38633,7 +38633,7 @@ const SO = _({
38633
38633
  if (!(t === "" || t === null || t === void 0))
38634
38634
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
38635
38635
  }, D().int().gte(1).lte(500)), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
38636
- weight: f(hr()).default("400"),
38636
+ weight: f(fr()).default("400"),
38637
38637
  color: f(b([d().regex(/^#[A-Fa-f0-9]{6}$/), d().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
38638
38638
  opacity: f(b([F((t) => {
38639
38639
  if (!(t === "" || t === null || t === void 0))
@@ -39225,8 +39225,8 @@ const WO = _({
39225
39225
  "zoom"
39226
39226
  ]))
39227
39227
  }).strict(), Bi = _({
39228
- from: f(hr()),
39229
- to: f(hr()),
39228
+ from: f(fr()),
39229
+ to: f(fr()),
39230
39230
  start: f(b([F((t) => {
39231
39231
  if (!(t === "" || t === null || t === void 0))
39232
39232
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -39796,7 +39796,7 @@ As.extend({
39796
39796
  })
39797
39797
  });
39798
39798
  const bg = 1500, wg = 5e3, ER = 1e4;
39799
- class Ns extends nr {
39799
+ class Ns extends ir {
39800
39800
  fontRegistry = null;
39801
39801
  layoutEngine = null;
39802
39802
  captionLayout = null;
@@ -40154,7 +40154,7 @@ class Ns extends nr {
40154
40154
  return !0;
40155
40155
  }
40156
40156
  }
40157
- class er extends nr {
40157
+ class Er extends ir {
40158
40158
  static PREVIEW_FPS = 60;
40159
40159
  /** CSS font-weight string → numeric value. Extends WEIGHT_MODIFIERS (@core/fonts/font-config.ts) with CSS aliases. */
40160
40160
  static NAMED_WEIGHTS = {
@@ -40182,7 +40182,6 @@ class er extends nr {
40182
40182
  texture = null;
40183
40183
  sprite = null;
40184
40184
  lastRenderedTime = -1;
40185
- cachedFrames = /* @__PURE__ */ new Map();
40186
40185
  isRendering = !1;
40187
40186
  pendingRenderTime = null;
40188
40187
  // Stores time requested while rendering (race condition fix)
@@ -40196,15 +40195,15 @@ class er extends nr {
40196
40195
  return e.split("#", 1)[0].split("?", 1)[0];
40197
40196
  }
40198
40197
  static fetchFontBytes(e) {
40199
- const r = er.getFontSourceCacheKey(e), n = er.fontBytesCache.get(r);
40198
+ const r = Er.getFontSourceCacheKey(e), n = Er.fontBytesCache.get(r);
40200
40199
  if (n) return n;
40201
40200
  const i = fetch(e).then((a) => {
40202
40201
  if (!a.ok) throw new Error(`Failed to fetch font: ${a.status}`);
40203
40202
  return a.arrayBuffer();
40204
40203
  }).catch((a) => {
40205
- throw er.fontBytesCache.delete(r), a;
40204
+ throw Er.fontBytesCache.delete(r), a;
40206
40205
  });
40207
- return er.fontBytesCache.set(r, i), i;
40206
+ return Er.fontBytesCache.set(r, i), i;
40208
40207
  }
40209
40208
  constructor(e, r) {
40210
40209
  const { fit: n, ...i } = r;
@@ -40214,7 +40213,7 @@ class er extends nr {
40214
40213
  const n = e.font?.weight;
40215
40214
  if (typeof n == "number") return n;
40216
40215
  if (typeof n == "string") {
40217
- const i = er.NAMED_WEIGHTS[n.toLowerCase().trim()];
40216
+ const i = Er.NAMED_WEIGHTS[n.toLowerCase().trim()];
40218
40217
  if (i !== void 0) return i;
40219
40218
  const a = parseInt(n, 10);
40220
40219
  if (!Number.isNaN(a)) return a;
@@ -40246,13 +40245,13 @@ class er extends nr {
40246
40245
  }
40247
40246
  async registerFont(e, r, n) {
40248
40247
  if (!this.textEngine) return !1;
40249
- const i = er.getFontSourceCacheKey(n.path), a = `${n.type}:${i}|${e}|${r}`, s = this.fontRegistrationCache.get(a);
40248
+ const i = Er.getFontSourceCacheKey(n.path), a = `${n.type}:${i}|${e}|${r}`, s = this.fontRegistrationCache.get(a);
40250
40249
  if (s) return s;
40251
40250
  const o = (async () => {
40252
40251
  try {
40253
40252
  const u = { family: e, weight: r.toString() };
40254
40253
  if (n.type === "url") {
40255
- const l = await er.fetchFontBytes(n.path);
40254
+ const l = await Er.fetchFontBytes(n.path);
40256
40255
  await this.textEngine.registerFontFromFile(new Blob([l]), u);
40257
40256
  } else
40258
40257
  await this.textEngine.registerFontFromFile(n.path, u);
@@ -40266,7 +40265,7 @@ class er extends nr {
40266
40265
  createFontCapabilityCheckPromise(e) {
40267
40266
  return (async () => {
40268
40267
  try {
40269
- const r = await er.fetchFontBytes(e);
40268
+ const r = await Er.fetchFontBytes(e);
40270
40269
  return !!d0.parse(r).tables.fvar?.axes?.find((a) => a.tag === "wght");
40271
40270
  } catch (r) {
40272
40271
  return console.warn("Failed to check font capabilities:", r), !1;
@@ -40277,8 +40276,8 @@ class er extends nr {
40277
40276
  const n = await this.ensureFontRegistered(e);
40278
40277
  if (!n)
40279
40278
  return;
40280
- const i = er.getFontSourceCacheKey(n), a = er.fontCapabilityCache.get(i), s = a ?? this.createFontCapabilityCheckPromise(n);
40281
- a || er.fontCapabilityCache.set(i, s), this.fontSupportsBold = await s, r && this.edit.getInternalEvents().emit(Ne.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
40279
+ const i = Er.getFontSourceCacheKey(n), a = Er.fontCapabilityCache.get(i), s = a ?? this.createFontCapabilityCheckPromise(n);
40280
+ a || Er.fontCapabilityCache.set(i, s), this.fontSupportsBold = await s, r && this.edit.getInternalEvents().emit(Ne.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
40282
40281
  }
40283
40282
  supportsBold() {
40284
40283
  return this.fontSupportsBold;
@@ -40301,10 +40300,7 @@ class er extends nr {
40301
40300
  }
40302
40301
  async reconfigure(e) {
40303
40302
  try {
40304
- await this.prepareFontForAsset(e, !0);
40305
- for (const r of this.cachedFrames.values())
40306
- r.destroy();
40307
- if (this.cachedFrames.clear(), this.lastRenderedTime = -1, this.textEngine) {
40303
+ if (await this.prepareFontForAsset(e, !0), this.texture?.destroy(), this.texture = null, this.lastRenderedTime = -1, this.textEngine) {
40308
40304
  const r = this.buildCanvasPayload(e), { value: n } = this.textEngine.validate(r);
40309
40305
  this.validatedAsset = n;
40310
40306
  }
@@ -40331,7 +40327,7 @@ class er extends nr {
40331
40327
  this.textEngine = await hV({
40332
40328
  width: a.width,
40333
40329
  height: a.height,
40334
- fps: er.PREVIEW_FPS
40330
+ fps: Er.PREVIEW_FPS
40335
40331
  });
40336
40332
  const { value: s } = this.textEngine.validate(a);
40337
40333
  this.validatedAsset = s, this.canvas = document.createElement("canvas"), this.canvas.width = a.width, this.canvas.height = a.height, this.renderer = this.textEngine.createRenderer(this.canvas), await this.prepareFontForAsset(e, !1), await this.renderFrame(0), this.configureKeyframes(), this.loadComplete = !0;
@@ -40351,21 +40347,13 @@ class er extends nr {
40351
40347
  this.renderer = null, this.canvas = null, this.validatedAsset = null;
40352
40348
  }
40353
40349
  async renderFrame(e) {
40354
- if (!this.textEngine || !this.renderer || !this.canvas || !this.validatedAsset) return;
40355
- const r = Math.floor(e * er.PREVIEW_FPS);
40356
- if (this.cachedFrames.has(r)) {
40357
- const n = this.cachedFrames.get(r);
40358
- this.sprite && this.sprite.texture !== n && (this.sprite.texture = n), this.lastRenderedTime = e;
40359
- return;
40360
- }
40361
- try {
40362
- const n = this.getLength(), i = await this.textEngine.renderFrame(this.validatedAsset, e, n), a = this.canvas.getContext("2d");
40363
- a && a.clearRect(0, 0, this.canvas.width, this.canvas.height), await this.renderer.render(i);
40364
- const s = ot.Texture.from(this.canvas);
40365
- this.sprite ? (this.texture && !this.cachedFrames.has(r) && this.texture.destroy(), this.sprite.texture = s) : (this.sprite = new ot.Sprite(s), this.contentContainer.addChild(this.sprite)), this.texture = s, this.cachedFrames.size < 150 && this.cachedFrames.set(r, s), this.lastRenderedTime = e;
40366
- } catch (n) {
40367
- console.error("Failed to render rich text frame:", n);
40368
- }
40350
+ if (!(!this.textEngine || !this.renderer || !this.canvas || !this.validatedAsset))
40351
+ try {
40352
+ const r = this.getLength(), n = await this.textEngine.renderFrame(this.validatedAsset, e, r), i = this.canvas.getContext("2d");
40353
+ i && i.clearRect(0, 0, this.canvas.width, this.canvas.height), await this.renderer.render(n), this.texture ? this.texture.source.update() : this.texture = ot.Texture.from(this.canvas), this.sprite ? this.sprite.texture !== this.texture && (this.sprite.texture = this.texture) : (this.sprite = new ot.Sprite(this.texture), this.contentContainer.addChild(this.sprite)), this.lastRenderedTime = e;
40354
+ } catch (r) {
40355
+ console.error("Failed to render rich text frame:", r);
40356
+ }
40369
40357
  }
40370
40358
  createFallbackText(e) {
40371
40359
  const r = this.edit.getEdit(), n = this.clipConfiguration.width || r?.output?.size?.width || this.edit.size.width, i = this.clipConfiguration.height || r?.output?.size?.height || this.edit.size.height, a = new ot.TextStyle({
@@ -40401,8 +40389,6 @@ class er extends nr {
40401
40389
  renderFrameSafe(e) {
40402
40390
  if (this.isRendering) {
40403
40391
  this.pendingRenderTime = e;
40404
- const r = Math.floor(e * er.PREVIEW_FPS), n = this.cachedFrames.get(r);
40405
- n && this.sprite && this.sprite.texture !== n && (this.sprite.texture = n);
40406
40392
  return;
40407
40393
  }
40408
40394
  this.isRendering = !0, this.pendingRenderTime = null, this.currentRender = this.renderFrame(e).catch((r) => console.error("Failed to render rich text frame:", r)).finally(() => {
@@ -40436,10 +40422,7 @@ class er extends nr {
40436
40422
  this.renderFrameSafe(e), this.currentRender && await this.currentRender;
40437
40423
  }
40438
40424
  dispose() {
40439
- super.dispose(), this.loadComplete = !1;
40440
- for (const e of this.cachedFrames.values())
40441
- e.destroy();
40442
- this.cachedFrames.clear(), this.texture && !this.cachedFrames.has(Math.floor(this.lastRenderedTime * er.PREVIEW_FPS)) && this.texture.destroy(), this.texture = null, this.sprite && (this.sprite.destroy(), this.sprite = null), this.canvas && (this.canvas = null), this.textEngine && (this.textEngine.destroy(), this.textEngine = null), this.renderer = null, this.validatedAsset = null;
40425
+ super.dispose(), this.loadComplete = !1, this.texture?.destroy(), this.texture = null, this.sprite && (this.sprite.destroy(), this.sprite = null), this.canvas && (this.canvas = null), this.textEngine && (this.textEngine.destroy(), this.textEngine = null), this.renderer = null, this.validatedAsset = null;
40443
40426
  }
40444
40427
  getSize() {
40445
40428
  const e = this.edit.getEdit();
@@ -40467,10 +40450,7 @@ class er extends nr {
40467
40450
  onDimensionsChanged() {
40468
40451
  if (!this.textEngine || !this.renderer || !this.canvas) return;
40469
40452
  const e = this.clipConfiguration.asset, { width: r, height: n } = this.getSize();
40470
- this.canvas.width = r, this.canvas.height = n;
40471
- for (const s of this.cachedFrames.values())
40472
- s.destroy();
40473
- this.cachedFrames.clear(), this.lastRenderedTime = -1;
40453
+ this.canvas.width = r, this.canvas.height = n, this.texture?.destroy(), this.texture = null, this.lastRenderedTime = -1;
40474
40454
  const i = this.buildCanvasPayload(e), { value: a } = this.textEngine.validate(i);
40475
40455
  this.validatedAsset = a, this.renderFrameSafe(this.getPlaybackTime());
40476
40456
  }
@@ -40480,15 +40460,10 @@ class er extends nr {
40480
40460
  const n = this.buildCanvasPayload(r), { value: i } = this.textEngine.validate(n);
40481
40461
  this.validatedAsset = i;
40482
40462
  }
40483
- for (const n of this.cachedFrames.values())
40484
- n.destroy();
40485
- this.cachedFrames.clear(), this.lastRenderedTime = -1, this.textEngine && this.renderer && this.renderFrameSafe(this.getPlaybackTime());
40486
- }
40487
- getCacheSize() {
40488
- return this.cachedFrames.size;
40463
+ this.texture?.destroy(), this.texture = null, this.lastRenderedTime = -1, this.textEngine && this.renderer && this.renderFrameSafe(this.getPlaybackTime());
40489
40464
  }
40490
40465
  }
40491
- class kR extends nr {
40466
+ class kR extends ir {
40492
40467
  shape;
40493
40468
  shapeBackground;
40494
40469
  constructor(e, r) {
@@ -40548,7 +40523,7 @@ class kR extends nr {
40548
40523
  return 1;
40549
40524
  }
40550
40525
  }
40551
- class Zi extends nr {
40526
+ class Zi extends ir {
40552
40527
  static resvgInitialized = !1;
40553
40528
  static resvgInitPromise = null;
40554
40529
  texture = null;
@@ -41052,7 +41027,7 @@ class xi {
41052
41027
  };
41053
41028
  }
41054
41029
  }
41055
- class Fa extends nr {
41030
+ class Fa extends ir {
41056
41031
  static loadedFonts = /* @__PURE__ */ new Set();
41057
41032
  background = null;
41058
41033
  text = null;
@@ -41167,7 +41142,7 @@ class Fa extends nr {
41167
41142
  Fa.loadedFonts.clear();
41168
41143
  }
41169
41144
  }
41170
- class _g extends nr {
41145
+ class _g extends ir {
41171
41146
  aiOverlay = null;
41172
41147
  lastPrompt = "";
41173
41148
  constructor(e, r) {
@@ -41204,7 +41179,7 @@ class _g extends nr {
41204
41179
  this.aiOverlay?.dispose(), this.aiOverlay = null, super.dispose();
41205
41180
  }
41206
41181
  }
41207
- class xg extends nr {
41182
+ class xg extends ir {
41208
41183
  constructor(e, r) {
41209
41184
  super(e, r, Se.TextToSpeech);
41210
41185
  }
@@ -41218,7 +41193,7 @@ class xg extends nr {
41218
41193
  return { width: 0, height: 0 };
41219
41194
  }
41220
41195
  }
41221
- class SR extends nr {
41196
+ class SR extends ir {
41222
41197
  texture;
41223
41198
  sprite;
41224
41199
  placeholder;
@@ -41335,7 +41310,7 @@ class Cg {
41335
41310
  case "text":
41336
41311
  return new Fa(e, r);
41337
41312
  case "rich-text":
41338
- return new er(e, r);
41313
+ return new Er(e, r);
41339
41314
  case "shape":
41340
41315
  return new kR(e, r);
41341
41316
  case "html":
@@ -45361,6 +45336,35 @@ class Na {
45361
45336
  getCanvasZoom() {
45362
45337
  return this.canvas?.getZoom() ?? 1;
45363
45338
  }
45339
+ /**
45340
+ * The clip's on-screen rectangle in CSS pixels, relative to the top-left
45341
+ * of the canvas element. Returns null when the clip is not visible at the
45342
+ * current playhead (its container isn't drawn then) — seek to the clip's
45343
+ * start first. Lets an external overlay anchor UI (e.g. a coach-mark) to a
45344
+ * clip; the caller adds `getCanvasElement().getBoundingClientRect()` to
45345
+ * convert to viewport coordinates. Clips animate and move with zoom, so
45346
+ * recompute per animation frame.
45347
+ * @internal
45348
+ */
45349
+ getClipViewportRect(e, r) {
45350
+ const n = this.getPlayerClip(e, r);
45351
+ if (!n || !n.isActive() || !this.canvas) return null;
45352
+ const i = n.getContainer().getBounds(), a = this.canvas.application.renderer?.resolution ?? 1;
45353
+ return {
45354
+ left: i.x / a,
45355
+ top: i.y / a,
45356
+ width: i.width / a,
45357
+ height: i.height / a
45358
+ };
45359
+ }
45360
+ /**
45361
+ * The backing `<canvas>` DOM element, or null before the canvas is
45362
+ * attached. Pairs with {@link getClipViewportRect} to place an overlay.
45363
+ * @internal
45364
+ */
45365
+ getCanvasElement() {
45366
+ return this.canvas?.application.canvas ?? null;
45367
+ }
45364
45368
  /**
45365
45369
  * Get the viewport container for coordinate transforms.
45366
45370
  * @internal
@@ -45407,6 +45411,16 @@ class Na {
45407
45411
  const r = new ZR(e);
45408
45412
  return this.executeCommand(r);
45409
45413
  }
45414
+ /**
45415
+ * Resolve once all in-flight asset loads have finished, including any that
45416
+ * begin after the initial `load()`. Await before driving playback or
45417
+ * capturing a frame so the canvas shows fully-loaded content rather than a
45418
+ * partially-loaded first frame.
45419
+ * @internal
45420
+ */
45421
+ whenSettled() {
45422
+ return this.playerReconciler.whenSettled();
45423
+ }
45410
45424
  /**
45411
45425
  * Capture the rendered output frame as a base64 data URL.
45412
45426
  *
@@ -45859,6 +45873,22 @@ class dL extends Na {
45859
45873
  if (this.mergeFieldService.extractFieldName(n.placeholder) === r) return !0;
45860
45874
  return !1;
45861
45875
  }
45876
+ /**
45877
+ * Track/clip index of the first clip bound to the given merge field, or
45878
+ * null if none. Pairs with `getClipViewportRect` so an overlay can anchor
45879
+ * UI to the clip a variable drives (e.g. a coach-mark on `{{ADDRESS}}`).
45880
+ * @internal
45881
+ */
45882
+ getMergeFieldClipLocation(e) {
45883
+ const r = this.getDocument();
45884
+ if (!r) return null;
45885
+ for (const n of r.getClipIdsWithBindings()) {
45886
+ const i = r.getClipBindings(n);
45887
+ if (i && this.clipUsesField(i, e))
45888
+ return this.getClipPositionById(n);
45889
+ }
45890
+ return null;
45891
+ }
45862
45892
  /**
45863
45893
  * Remove a merge field globally from all clips and the registry.
45864
45894
  */
@@ -45967,8 +45997,8 @@ class dL extends Na {
45967
45997
  resolvedValue: h
45968
45998
  };
45969
45999
  if (a.setClipBinding(i, u, p), o) {
45970
- const y = (typeof h == "string" ? h.trim() : "").length > 0 ? Number(h) : NaN, E = Number.isFinite(y) ? y : h;
45971
- Wi(o.clip, u, E);
46000
+ const g = u.split(".").pop() ?? "", y = g === "text" || g === "html", v = (typeof h == "string" ? h.trim() : "").length > 0 ? Number(h) : NaN, C = !y && Number.isFinite(v) ? v : h;
46001
+ Wi(o.clip, u, C);
45972
46002
  }
45973
46003
  }
45974
46004
  }
@@ -46012,14 +46042,14 @@ function kr(t) {
46012
46042
  const e = Ts;
46013
46043
  return Ts = ji[e], ji[e] = t, e;
46014
46044
  }
46015
- function br(t) {
46045
+ function vr(t) {
46016
46046
  return ji[t];
46017
46047
  }
46018
46048
  function R$(t) {
46019
46049
  t < 132 || (ji[t] = Ts, Ts = t);
46020
46050
  }
46021
46051
  function Gi(t) {
46022
- const e = br(t);
46052
+ const e = vr(t);
46023
46053
  return R$(t), e;
46024
46054
  }
46025
46055
  var Ys = 0, Es = null;
@@ -46362,39 +46392,39 @@ function H$() {
46362
46392
  const e = Tt.memory;
46363
46393
  return kr(e);
46364
46394
  }, t.wbg.__wbg_buffer_12d079cc21e14bdb = function(e) {
46365
- const r = br(e).buffer;
46395
+ const r = vr(e).buffer;
46366
46396
  return kr(r);
46367
46397
  }, t.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(e, r, n) {
46368
- const i = new Uint8Array(br(e), r >>> 0, n >>> 0);
46398
+ const i = new Uint8Array(vr(e), r >>> 0, n >>> 0);
46369
46399
  return kr(i);
46370
46400
  }, t.wbg.__wbindgen_object_drop_ref = function(e) {
46371
46401
  Gi(e);
46372
46402
  }, t.wbg.__wbg_new_63b92bc8671ed464 = function(e) {
46373
- const r = new Uint8Array(br(e));
46403
+ const r = new Uint8Array(vr(e));
46374
46404
  return kr(r);
46375
46405
  }, t.wbg.__wbg_values_839f3396d5aac002 = function(e) {
46376
- const r = br(e).values();
46406
+ const r = vr(e).values();
46377
46407
  return kr(r);
46378
46408
  }, t.wbg.__wbg_next_196c84450b364254 = function() {
46379
46409
  return Z$(function(e) {
46380
- const r = br(e).next();
46410
+ const r = vr(e).next();
46381
46411
  return kr(r);
46382
46412
  }, arguments);
46383
46413
  }, t.wbg.__wbg_done_298b57d23c0fc80c = function(e) {
46384
- return br(e).done;
46414
+ return vr(e).done;
46385
46415
  }, t.wbg.__wbg_value_d93c65011f51a456 = function(e) {
46386
- const r = br(e).value;
46416
+ const r = vr(e).value;
46387
46417
  return kr(r);
46388
46418
  }, t.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(e) {
46389
46419
  let r;
46390
46420
  try {
46391
- r = br(e) instanceof Uint8Array;
46421
+ r = vr(e) instanceof Uint8Array;
46392
46422
  } catch {
46393
46423
  r = !1;
46394
46424
  }
46395
46425
  return r;
46396
46426
  }, t.wbg.__wbindgen_string_get = function(e, r) {
46397
- const n = br(r), i = typeof n == "string" ? n : void 0;
46427
+ const n = vr(r), i = typeof n == "string" ? n : void 0;
46398
46428
  var a = Q0(i) ? 0 : J0(i, Tt.__wbindgen_malloc, Tt.__wbindgen_realloc), s = Ys;
46399
46429
  Ke()[e / 4 + 1] = s, Ke()[e / 4 + 0] = a;
46400
46430
  }, t.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
@@ -46404,11 +46434,11 @@ function H$() {
46404
46434
  const n = mu(e, r);
46405
46435
  return kr(n);
46406
46436
  }, t.wbg.__wbg_push_a5b05aedc7234f9f = function(e, r) {
46407
- return br(e).push(br(r));
46437
+ return vr(e).push(vr(r));
46408
46438
  }, t.wbg.__wbg_length_c20a40f15020d68a = function(e) {
46409
- return br(e).length;
46439
+ return vr(e).length;
46410
46440
  }, t.wbg.__wbg_set_a47bac70306a19a7 = function(e, r, n) {
46411
- br(e).set(br(r), n >>> 0);
46441
+ vr(e).set(vr(r), n >>> 0);
46412
46442
  }, t.wbg.__wbindgen_throw = function(e, r) {
46413
46443
  throw new Error(mu(e, r));
46414
46444
  }, t;
@@ -46527,7 +46557,7 @@ var eL = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
46527
46557
  le(tt);
46528
46558
  }
46529
46559
  function z() {
46530
- L = !0, ur.__wasm_call_ctors();
46560
+ L = !0, or.__wasm_call_ctors();
46531
46561
  }
46532
46562
  function et() {
46533
46563
  if (s.postRun)
@@ -46593,7 +46623,7 @@ var eL = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
46593
46623
  }
46594
46624
  async function ee() {
46595
46625
  function B($e, zr) {
46596
- return ur = $e.exports, s.wasmExports = ur, Z = ur.memory, s.wasmMemory = Z, N(), Yt = ur.__indirect_function_table, pr(ur), ft(), ur;
46626
+ return or = $e.exports, s.wasmExports = or, Z = or.memory, s.wasmMemory = Z, N(), Yt = or.__indirect_function_table, dr(or), ft(), or;
46597
46627
  }
46598
46628
  pt();
46599
46629
  function mt($e) {
@@ -46677,13 +46707,13 @@ var eL = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
46677
46707
  })), Kt = (B, mt) => {
46678
46708
  var qt = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...be([1, 96, ...Oe(mt.slice(1)), ...Oe(mt[0] === "v" ? "" : mt[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0), de = new WebAssembly.Module(qt), ne = new WebAssembly.Instance(de, { e: { f: B } }), $e = ne.exports.f;
46679
46709
  return $e;
46680
- }, Yt, or = (B) => Yt.get(B), dr = (B, mt) => {
46710
+ }, Yt, sr = (B) => Yt.get(B), hr = (B, mt) => {
46681
46711
  if (qe)
46682
46712
  for (var qt = B; qt < B + mt; qt++) {
46683
- var de = or(qt);
46713
+ var de = sr(qt);
46684
46714
  de && qe.set(de, qt);
46685
46715
  }
46686
- }, qe, Ee = (B) => (qe || (qe = /* @__PURE__ */ new WeakMap(), dr(0, Yt.length)), qe.get(B) || 0), Fe = [], Nn = () => Fe.length ? Fe.pop() : Yt.grow(1), Ti = (B, mt) => Yt.set(B, mt), Pi = (B, mt) => {
46716
+ }, qe, Ee = (B) => (qe || (qe = /* @__PURE__ */ new WeakMap(), hr(0, Yt.length)), qe.get(B) || 0), Fe = [], Nn = () => Fe.length ? Fe.pop() : Yt.grow(1), Ti = (B, mt) => Yt.set(B, mt), Pi = (B, mt) => {
46687
46717
  var qt = Ee(B);
46688
46718
  if (qt)
46689
46719
  return qt;
@@ -46698,14 +46728,14 @@ var eL = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
46698
46728
  }
46699
46729
  return qe.set(B, de), de;
46700
46730
  }, en = (B) => {
46701
- qe.delete(or(B)), Ti(B, null), Fe.push(B);
46731
+ qe.delete(sr(B)), Ti(B, null), Fe.push(B);
46702
46732
  };
46703
- s.noExitRuntime && (yt = s.noExitRuntime), s.print && s.print, s.printErr && (v = s.printErr), s.wasmBinary && (C = s.wasmBinary), s.arguments && s.arguments, s.thisProgram && s.thisProgram, s.wasmMemory = Z, s.wasmExports = ur, s.addFunction = Pi, s.removeFunction = en;
46733
+ s.noExitRuntime && (yt = s.noExitRuntime), s.print && s.print, s.printErr && (v = s.printErr), s.wasmBinary && (C = s.wasmBinary), s.arguments && s.arguments, s.thisProgram && s.thisProgram, s.wasmMemory = Z, s.wasmExports = or, s.addFunction = Pi, s.removeFunction = en;
46704
46734
  var Ur;
46705
- function pr(B) {
46735
+ function dr(B) {
46706
46736
  s._hb_blob_create = B.hb_blob_create, s._hb_blob_destroy = B.hb_blob_destroy, s._hb_blob_get_length = B.hb_blob_get_length, s._hb_blob_get_data = B.hb_blob_get_data, s._hb_buffer_serialize_glyphs = B.hb_buffer_serialize_glyphs, s._hb_buffer_create = B.hb_buffer_create, s._hb_buffer_destroy = B.hb_buffer_destroy, s._hb_buffer_get_content_type = B.hb_buffer_get_content_type, s._hb_buffer_set_direction = B.hb_buffer_set_direction, s._hb_buffer_set_script = B.hb_buffer_set_script, s._hb_buffer_set_language = B.hb_buffer_set_language, s._hb_buffer_set_flags = B.hb_buffer_set_flags, s._hb_buffer_set_cluster_level = B.hb_buffer_set_cluster_level, s._hb_buffer_get_length = B.hb_buffer_get_length, s._hb_buffer_get_glyph_infos = B.hb_buffer_get_glyph_infos, s._hb_buffer_get_glyph_positions = B.hb_buffer_get_glyph_positions, s._hb_glyph_info_get_glyph_flags = B.hb_glyph_info_get_glyph_flags, s._hb_buffer_guess_segment_properties = B.hb_buffer_guess_segment_properties, s._hb_buffer_add_utf8 = B.hb_buffer_add_utf8, s._hb_buffer_add_utf16 = B.hb_buffer_add_utf16, s._hb_buffer_set_message_func = B.hb_buffer_set_message_func, s._hb_language_from_string = B.hb_language_from_string, s._hb_script_from_string = B.hb_script_from_string, s._hb_version = B.hb_version, s._hb_version_string = B.hb_version_string, s._hb_feature_from_string = B.hb_feature_from_string, s._malloc = B.malloc, s._free = B.free, s._hb_draw_funcs_set_move_to_func = B.hb_draw_funcs_set_move_to_func, s._hb_draw_funcs_set_line_to_func = B.hb_draw_funcs_set_line_to_func, s._hb_draw_funcs_set_quadratic_to_func = B.hb_draw_funcs_set_quadratic_to_func, s._hb_draw_funcs_set_cubic_to_func = B.hb_draw_funcs_set_cubic_to_func, s._hb_draw_funcs_set_close_path_func = B.hb_draw_funcs_set_close_path_func, s._hb_draw_funcs_create = B.hb_draw_funcs_create, s._hb_draw_funcs_destroy = B.hb_draw_funcs_destroy, s._hb_face_create = B.hb_face_create, s._hb_face_destroy = B.hb_face_destroy, s._hb_face_reference_table = B.hb_face_reference_table, s._hb_face_get_upem = B.hb_face_get_upem, s._hb_face_collect_unicodes = B.hb_face_collect_unicodes, s._hb_font_draw_glyph = B.hb_font_draw_glyph, s._hb_font_glyph_to_string = B.hb_font_glyph_to_string, s._hb_font_create = B.hb_font_create, s._hb_font_set_variations = B.hb_font_set_variations, s._hb_font_destroy = B.hb_font_destroy, s._hb_font_set_scale = B.hb_font_set_scale, s._hb_set_create = B.hb_set_create, s._hb_set_destroy = B.hb_set_destroy, s._hb_ot_var_get_axis_infos = B.hb_ot_var_get_axis_infos, s._hb_set_get_population = B.hb_set_get_population, s._hb_set_next_many = B.hb_set_next_many, s._hb_shape = B.hb_shape, Ur = B._emscripten_timeout;
46707
46737
  }
46708
- var Mr = { _abort_js: At, _emscripten_runtime_keepalive_clear: Et, _setitimer_js: se, emscripten_resize_heap: Je, proc_exit: bt }, ur = await ee();
46738
+ var Mr = { _abort_js: At, _emscripten_runtime_keepalive_clear: Et, _setitimer_js: se, emscripten_resize_heap: Je, proc_exit: bt }, or = await ee();
46709
46739
  function Mi() {
46710
46740
  if (X > 0) {
46711
46741
  st = Mi;