@shotstack/shotstack-studio 2.8.0 → 2.9.1

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.
@@ -1,6 +1,6 @@
1
1
  import * as ot from "pixi.js";
2
2
  import * as zd from "howler";
3
- import * as Fs from "pixi-filters";
3
+ import * as Ns from "pixi-filters";
4
4
  import * as u0 from "opentype.js";
5
5
  class t6 {
6
6
  curves = {};
@@ -132,7 +132,7 @@ class t6 {
132
132
  return v ** 3 * h + 3 * v ** 2 * w * m + 3 * v * w ** 2 * d + w ** 3 * y;
133
133
  }
134
134
  }
135
- class Ea {
135
+ class ka {
136
136
  property;
137
137
  length;
138
138
  cubicBuilder;
@@ -269,7 +269,7 @@ class Vn {
269
269
  addLayer(e) {
270
270
  if (e.length === 0) return;
271
271
  const r = this.mode === "additive" ? 0 : 1;
272
- this.layers.push(new Ea(e, this.length, r));
272
+ this.layers.push(new ka(e, this.length, r));
273
273
  }
274
274
  /**
275
275
  * Get the composed value at a specific time.
@@ -511,9 +511,10 @@ const Ot = {
511
511
  MergeFieldChanged: "mergefield:changed",
512
512
  // Timeline UI
513
513
  TimelineResized: "timeline:resized"
514
- }, Me = {
514
+ }, Fe = {
515
515
  // Canvas → Edit communication
516
516
  CanvasClipClicked: "canvas:clipClicked",
517
+ CanvasClipDoubleClicked: "canvas:clipDoubleClicked",
517
518
  CanvasBackgroundClicked: "canvas:backgroundClicked",
518
519
  // Font capability detection
519
520
  FontCapabilitiesChanged: "font:capabilitiesChanged",
@@ -711,7 +712,7 @@ class c6 {
711
712
  return this.container;
712
713
  }
713
714
  }
714
- var Fe = /* @__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.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))(Fe || {});
715
+ var Ne = /* @__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.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))(Ne || {});
715
716
  class hr extends c6 {
716
717
  static DiscardedFrameCount = 0;
717
718
  layer;
@@ -764,7 +765,7 @@ class hr extends c6 {
764
765
  }, h = new e6(c).buildRelative(this.edit.size, this.getSize()), m = new r6(c).buildRelative();
765
766
  this.offsetXKeyframeBuilder.addLayer(h.offsetXKeyframes), this.offsetYKeyframeBuilder.addLayer(h.offsetYKeyframes), this.scaleKeyframeBuilder.addLayer(h.scaleKeyframes), this.opacityKeyframeBuilder.addLayer(h.opacityKeyframes), this.rotationKeyframeBuilder.addLayer(h.rotationKeyframes), this.offsetXKeyframeBuilder.addLayer(m.in.offsetXKeyframes), this.offsetYKeyframeBuilder.addLayer(m.in.offsetYKeyframes), this.scaleKeyframeBuilder.addLayer(m.in.scaleKeyframes), this.opacityKeyframeBuilder.addLayer(m.in.opacityKeyframes), this.rotationKeyframeBuilder.addLayer(m.in.rotationKeyframes), this.offsetXKeyframeBuilder.addLayer(m.out.offsetXKeyframes), this.offsetYKeyframeBuilder.addLayer(m.out.offsetYKeyframes), this.scaleKeyframeBuilder.addLayer(m.out.scaleKeyframes), this.opacityKeyframeBuilder.addLayer(m.out.opacityKeyframes), this.rotationKeyframeBuilder.addLayer(m.out.rotationKeyframes);
766
767
  const d = [...m.in.maskXKeyframes, ...m.out.maskXKeyframes];
767
- d.length && (this.maskXKeyframeBuilder = new Ea(d, e));
768
+ d.length && (this.maskXKeyframeBuilder = new ka(d, e));
768
769
  }
769
770
  async load() {
770
771
  this.lumaWrapper?.destroyed && (this.lumaWrapper = new ot.Container(), this.getContainer().addChild(this.lumaWrapper)), this.contentContainer?.destroyed && (this.contentContainer = new ot.Container(), this.lumaWrapper.addChild(this.contentContainer)), this.getContainer().sortableChildren = !0, this.getContainer().cursor = "pointer", this.getContainer().eventMode = "static", this.getContainer().on?.("pointerdown", this.onPointerDown.bind(this));
@@ -915,11 +916,11 @@ class hr extends c6 {
915
916
  return this.getPlaybackTime() < hr.DiscardedFrameCount;
916
917
  }
917
918
  /**
918
- * Handle pointer down - emit click event for selection handling.
919
+ * Handle pointer down emit click event for selection handling.
919
920
  * All drag/resize/rotate interaction is handled by SelectionHandles.
920
921
  */
921
922
  onPointerDown(e) {
922
- e.button === o6.ButtonLeftClick && this.edit.getInternalEvents().emit(Me.CanvasClipClicked, { player: this });
923
+ e.button === o6.ButtonLeftClick && this.edit.getInternalEvents().emit(Fe.CanvasClipClicked, { player: this });
923
924
  }
924
925
  clipHasKeyframes() {
925
926
  return [
@@ -982,14 +983,14 @@ class hr extends c6 {
982
983
  this.onDimensionsChanged();
983
984
  }
984
985
  }
985
- class Ns {
986
+ class Bs {
986
987
  static Name = "AudioLoadParser";
987
988
  id;
988
989
  name;
989
990
  extension;
990
991
  validAudioExtensions;
991
992
  constructor() {
992
- this.id = Ns.Name, this.name = Ns.Name, this.extension = {
993
+ this.id = Bs.Name, this.name = Bs.Name, this.extension = {
993
994
  type: [ot.ExtensionType.LoadParser],
994
995
  priority: ot.LoaderParserPriority.Normal,
995
996
  ref: null
@@ -1015,16 +1016,16 @@ class f6 extends hr {
1015
1016
  volumeKeyframeBuilder;
1016
1017
  syncTimer;
1017
1018
  constructor(e, r) {
1018
- super(e, r, Fe.Audio), this.audioResource = null, this.isPlaying = !1, this.syncTimer = 0;
1019
+ super(e, r, Ne.Audio), this.audioResource = null, this.isPlaying = !1, this.syncTimer = 0;
1019
1020
  }
1020
1021
  async load() {
1021
1022
  await super.load();
1022
- const e = this.clipConfiguration.asset, r = e.src, n = { src: r, parser: Ns.Name }, i = await this.edit.assetLoader.load(r, n);
1023
+ const e = this.clipConfiguration.asset, r = e.src, n = { src: r, parser: Bs.Name }, i = await this.edit.assetLoader.load(r, n);
1023
1024
  if (!(i instanceof zd.Howl))
1024
1025
  throw new Error(`Invalid audio source '${e.src}'.`);
1025
1026
  this.audioResource = i;
1026
1027
  const s = typeof e.volume == "number" ? e.volume : 1;
1027
- this.volumeKeyframeBuilder = new Ea(this.createVolumeKeyframes(e, s), this.getLength(), s), this.audioResource.volume(this.getVolume()), this.configureKeyframes();
1028
+ this.volumeKeyframeBuilder = new ka(this.createVolumeKeyframes(e, s), this.getLength(), s), this.audioResource.volume(this.getVolume()), this.configureKeyframes();
1028
1029
  }
1029
1030
  update(e, r) {
1030
1031
  super.update(e, r);
@@ -1042,7 +1043,7 @@ class f6 extends hr {
1042
1043
  /** Reload the audio asset when asset.src changes (e.g., merge field update or loadEdit) */
1043
1044
  async reloadAsset() {
1044
1045
  this.audioResource && (this.audioResource.stop(), this.audioResource.unload()), this.audioResource = null, this.isPlaying = !1, this.syncTimer = 0;
1045
- const e = this.clipConfiguration.asset, r = { src: e.src, parser: Ns.Name }, n = await this.edit.assetLoader.load(e.src, r);
1046
+ const e = this.clipConfiguration.asset, r = { src: e.src, parser: Bs.Name }, n = await this.edit.assetLoader.load(e.src, r);
1046
1047
  if (!(n instanceof zd.Howl))
1047
1048
  throw new Error(`Invalid audio source '${e.src}'.`);
1048
1049
  this.audioResource = n, this.audioResource.volume(this.getVolume());
@@ -1050,7 +1051,7 @@ class f6 extends hr {
1050
1051
  reconfigureAfterRestore() {
1051
1052
  super.reconfigureAfterRestore();
1052
1053
  const e = this.clipConfiguration.asset, r = typeof e.volume == "number" ? e.volume : 1;
1053
- this.volumeKeyframeBuilder = new Ea(this.createVolumeKeyframes(e, r), this.getLength(), r);
1054
+ this.volumeKeyframeBuilder = new ka(this.createVolumeKeyframes(e, r), this.getLength(), r);
1054
1055
  }
1055
1056
  getSize() {
1056
1057
  return { width: 0, height: 0 };
@@ -16453,7 +16454,7 @@ function Fr(t) {
16453
16454
  }
16454
16455
  return { baseFontFamily: t, fontWeight: 400 };
16455
16456
  }
16456
- function ka(t, e) {
16457
+ function Sa(t, e) {
16457
16458
  const r = ag.get(t);
16458
16459
  if (r)
16459
16460
  return r.url;
@@ -16520,13 +16521,13 @@ class pu extends hr {
16520
16521
  background = null;
16521
16522
  text = null;
16522
16523
  constructor(e, r) {
16523
- super(e, r, Fe.Caption);
16524
+ super(e, r, Ne.Caption);
16524
16525
  }
16525
16526
  async load() {
16526
16527
  await super.load();
16527
16528
  const e = this.clipConfiguration.asset, r = e.font?.family ?? "Open Sans";
16528
16529
  if (await this.loadFont(r), this.state = Nr(e.src) ? { kind: "placeholder" } : await this.loadSubtitles(e.src), this.background = new ot.Graphics(), this.contentContainer.addChild(this.background), this.text = new ot.Text({ text: "", style: this.createTextStyle(e) }), this.text.visible = !1, e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
16529
- const n = new Fs.OutlineFilter({
16530
+ const n = new Ns.OutlineFilter({
16530
16531
  thickness: e.stroke.width,
16531
16532
  color: e.stroke.color
16532
16533
  });
@@ -16621,7 +16622,7 @@ class pu extends hr {
16621
16622
  const { baseFontFamily: r, fontWeight: n } = Fr(e), i = `${r}-${n}`;
16622
16623
  if (pu.loadedFonts.has(i))
16623
16624
  return;
16624
- const a = ka(e);
16625
+ const a = Sa(e);
16625
16626
  if (a) {
16626
16627
  const s = new FontFace(r, `url(${a})`, {
16627
16628
  weight: n.toString()
@@ -16634,7 +16635,7 @@ class v6 extends hr {
16634
16635
  background;
16635
16636
  text;
16636
16637
  constructor(e, r) {
16637
- super(e, r, Fe.Html), this.background = null, this.text = null;
16638
+ super(e, r, Ne.Html), this.background = null, this.text = null;
16638
16639
  }
16639
16640
  async load() {
16640
16641
  await super.load();
@@ -16664,7 +16665,7 @@ class v6 extends hr {
16664
16665
  x: o,
16665
16666
  y: u
16666
16667
  }, r.stroke.color && r.stroke.width) {
16667
- const l = new Fs.OutlineFilter({
16668
+ const l = new Ns.OutlineFilter({
16668
16669
  thickness: r.stroke.width,
16669
16670
  color: r.stroke.color
16670
16671
  });
@@ -16745,7 +16746,7 @@ class b6 extends hr {
16745
16746
  sprite;
16746
16747
  placeholder;
16747
16748
  constructor(e, r) {
16748
- super(e, r, Fe.Image), this.texture = null, this.sprite = null, this.placeholder = null;
16749
+ super(e, r, Ne.Image), this.texture = null, this.sprite = null, this.placeholder = null;
16749
16750
  }
16750
16751
  async load() {
16751
16752
  await super.load();
@@ -16833,7 +16834,7 @@ function x6(t) {
16833
16834
  const e = t * 137.5 % 360;
16834
16835
  return [e, (e + 30) % 360, (e + 60) % 360, (e + 90) % 360, (e + 120) % 360];
16835
16836
  }
16836
- function ns(t, e, r) {
16837
+ function as(t, e, r) {
16837
16838
  const n = t / 360, i = e / 100, a = r / 100;
16838
16839
  let s, o, u;
16839
16840
  {
@@ -16940,7 +16941,7 @@ function S6(t) {
16940
16941
  const e = x6(t);
16941
16942
  return [
16942
16943
  {
16943
- color: ns(e[0], 70, 50),
16944
+ color: as(e[0], 70, 50),
16944
16945
  baseAlpha: 0.12,
16945
16946
  baseY: 0.35,
16946
16947
  rayHeight: 0.45,
@@ -16953,7 +16954,7 @@ function S6(t) {
16953
16954
  ]
16954
16955
  },
16955
16956
  {
16956
- color: ns(e[1], 70, 50),
16957
+ color: as(e[1], 70, 50),
16957
16958
  baseAlpha: 0.18,
16958
16959
  baseY: 0.3,
16959
16960
  rayHeight: 0.5,
@@ -16967,7 +16968,7 @@ function S6(t) {
16967
16968
  ]
16968
16969
  },
16969
16970
  {
16970
- color: ns(e[2], 70, 50),
16971
+ color: as(e[2], 70, 50),
16971
16972
  baseAlpha: 0.15,
16972
16973
  baseY: 0.28,
16973
16974
  rayHeight: 0.35,
@@ -16980,7 +16981,7 @@ function S6(t) {
16980
16981
  ]
16981
16982
  },
16982
16983
  {
16983
- color: ns(e[3], 70, 50),
16984
+ color: as(e[3], 70, 50),
16984
16985
  baseAlpha: 0.14,
16985
16986
  baseY: 0.45,
16986
16987
  rayHeight: 0.4,
@@ -16993,7 +16994,7 @@ function S6(t) {
16993
16994
  ]
16994
16995
  },
16995
16996
  {
16996
- color: ns(e[4], 70, 50),
16997
+ color: as(e[4], 70, 50),
16997
16998
  baseAlpha: 0.1,
16998
16999
  baseY: 0.5,
16999
17000
  rayHeight: 0.3,
@@ -17124,7 +17125,7 @@ class D6 extends hr {
17124
17125
  placeholder = null;
17125
17126
  aiOverlay = null;
17126
17127
  constructor(e, r) {
17127
- super(e, r, Fe.ImageToVideo);
17128
+ super(e, r, Ne.ImageToVideo);
17128
17129
  }
17129
17130
  async load() {
17130
17131
  await super.load();
@@ -17190,7 +17191,7 @@ class F6 extends hr {
17190
17191
  sprite;
17191
17192
  isPlaying;
17192
17193
  constructor(e, r) {
17193
- super(e, r, Fe.Luma), this.texture = null, this.sprite = null, this.isPlaying = !1;
17194
+ super(e, r, Ne.Luma), this.texture = null, this.sprite = null, this.isPlaying = !1;
17194
17195
  }
17195
17196
  async load() {
17196
17197
  await super.load();
@@ -17352,7 +17353,7 @@ function B6(t) {
17352
17353
  }
17353
17354
  const fg = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
17354
17355
  };
17355
- function Bs(t) {
17356
+ function Is(t) {
17356
17357
  return typeof t == "object" && t !== null && !Array.isArray(t);
17357
17358
  }
17358
17359
  const I6 = /* @__PURE__ */ Hu(() => {
@@ -17365,20 +17366,20 @@ const I6 = /* @__PURE__ */ Hu(() => {
17365
17366
  return !1;
17366
17367
  }
17367
17368
  });
17368
- function Sa(t) {
17369
- if (Bs(t) === !1)
17369
+ function Da(t) {
17370
+ if (Is(t) === !1)
17370
17371
  return !1;
17371
17372
  const e = t.constructor;
17372
17373
  if (e === void 0 || typeof e != "function")
17373
17374
  return !0;
17374
17375
  const r = e.prototype;
17375
- return !(Bs(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
17376
+ return !(Is(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
17376
17377
  }
17377
17378
  function hg(t) {
17378
- return Sa(t) ? { ...t } : Array.isArray(t) ? [...t] : t instanceof Map ? new Map(t) : t instanceof Set ? new Set(t) : t;
17379
+ return Da(t) ? { ...t } : Array.isArray(t) ? [...t] : t instanceof Map ? new Map(t) : t instanceof Set ? new Set(t) : t;
17379
17380
  }
17380
17381
  const T6 = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
17381
- function Da(t) {
17382
+ function Fa(t) {
17382
17383
  return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17383
17384
  }
17384
17385
  function kn(t, e, r) {
@@ -17445,7 +17446,7 @@ function V6(t, e) {
17445
17446
  return kn(t, a);
17446
17447
  }
17447
17448
  function O6(t, e) {
17448
- if (!Sa(e))
17449
+ if (!Da(e))
17449
17450
  throw new Error("Invalid input to extend: expected a plain object");
17450
17451
  const r = t._zod.def.checks;
17451
17452
  if (r && r.length > 0) {
@@ -17463,7 +17464,7 @@ function O6(t, e) {
17463
17464
  return kn(t, i);
17464
17465
  }
17465
17466
  function R6(t, e) {
17466
- if (!Sa(e))
17467
+ if (!Da(e))
17467
17468
  throw new Error("Invalid input to safeExtend: expected a plain object");
17468
17469
  const r = En(t._zod.def, {
17469
17470
  get shape() {
@@ -17572,7 +17573,7 @@ function Yi(t, e, r) {
17572
17573
  function Y0(t) {
17573
17574
  return Array.isArray(t) ? "array" : typeof t == "string" ? "string" : "unknown";
17574
17575
  }
17575
- function Is(...t) {
17576
+ function Ts(...t) {
17576
17577
  const [e, r, n] = t;
17577
17578
  return typeof e == "string" ? {
17578
17579
  message: e,
@@ -17910,7 +17911,7 @@ const C_ = (t) => {
17910
17911
  e.pattern ?? (e.pattern = D_), Ku.init(t, e);
17911
17912
  }), V_ = /* @__PURE__ */ H("$ZodCheckIncludes", (t, e) => {
17912
17913
  Ir.init(t, e);
17913
- const r = Da(e.includes), n = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
17914
+ const r = Fa(e.includes), n = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
17914
17915
  e.pattern = n, t._zod.onattach.push((i) => {
17915
17916
  const a = i._zod.bag;
17916
17917
  a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(n);
@@ -17927,7 +17928,7 @@ const C_ = (t) => {
17927
17928
  };
17928
17929
  }), O_ = /* @__PURE__ */ H("$ZodCheckStartsWith", (t, e) => {
17929
17930
  Ir.init(t, e);
17930
- const r = new RegExp(`^${Da(e.prefix)}.*`);
17931
+ const r = new RegExp(`^${Fa(e.prefix)}.*`);
17931
17932
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
17932
17933
  const i = n._zod.bag;
17933
17934
  i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(r);
@@ -17944,7 +17945,7 @@ const C_ = (t) => {
17944
17945
  };
17945
17946
  }), R_ = /* @__PURE__ */ H("$ZodCheckEndsWith", (t, e) => {
17946
17947
  Ir.init(t, e);
17947
- const r = new RegExp(`.*${Da(e.suffix)}$`);
17948
+ const r = new RegExp(`.*${Fa(e.suffix)}$`);
17948
17949
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
17949
17950
  const i = n._zod.bag;
17950
17951
  i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(r);
@@ -17991,7 +17992,7 @@ const Z_ = {
17991
17992
  major: 4,
17992
17993
  minor: 4,
17993
17994
  patch: 3
17994
- }, Ne = /* @__PURE__ */ H("$ZodType", (t, e) => {
17995
+ }, Be = /* @__PURE__ */ H("$ZodType", (t, e) => {
17995
17996
  var r;
17996
17997
  t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version = Z_;
17997
17998
  const n = [...t._zod.def.checks ?? []];
@@ -18066,7 +18067,7 @@ const Z_ = {
18066
18067
  version: 1
18067
18068
  }));
18068
18069
  }), X0 = /* @__PURE__ */ H("$ZodString", (t, e) => {
18069
- Ne.init(t, e), t._zod.pattern = [...t?._zod.bag?.patterns ?? []].pop() ?? C_(t._zod.bag), t._zod.parse = (r, n) => {
18070
+ Be.init(t, e), t._zod.pattern = [...t?._zod.bag?.patterns ?? []].pop() ?? C_(t._zod.bag), t._zod.parse = (r, n) => {
18070
18071
  if (e.coerce)
18071
18072
  try {
18072
18073
  r.value = String(r.value);
@@ -18079,10 +18080,10 @@ const Z_ = {
18079
18080
  inst: t
18080
18081
  }), r;
18081
18082
  };
18082
- }), Be = /* @__PURE__ */ H("$ZodStringFormat", (t, e) => {
18083
+ }), Ie = /* @__PURE__ */ H("$ZodStringFormat", (t, e) => {
18083
18084
  Ku.init(t, e), X0.init(t, e);
18084
18085
  }), U_ = /* @__PURE__ */ H("$ZodGUID", (t, e) => {
18085
- e.pattern ?? (e.pattern = l_), Be.init(t, e);
18086
+ e.pattern ?? (e.pattern = l_), Ie.init(t, e);
18086
18087
  }), j_ = /* @__PURE__ */ H("$ZodUUID", (t, e) => {
18087
18088
  if (e.version) {
18088
18089
  const n = {
@@ -18100,11 +18101,11 @@ const Z_ = {
18100
18101
  e.pattern ?? (e.pattern = Ud(n));
18101
18102
  } else
18102
18103
  e.pattern ?? (e.pattern = Ud());
18103
- Be.init(t, e);
18104
+ Ie.init(t, e);
18104
18105
  }), G_ = /* @__PURE__ */ H("$ZodEmail", (t, e) => {
18105
- e.pattern ?? (e.pattern = c_), Be.init(t, e);
18106
+ e.pattern ?? (e.pattern = c_), Ie.init(t, e);
18106
18107
  }), W_ = /* @__PURE__ */ H("$ZodURL", (t, e) => {
18107
- Be.init(t, e), t._zod.check = (r) => {
18108
+ Ie.init(t, e), t._zod.check = (r) => {
18108
18109
  try {
18109
18110
  const n = r.value.trim();
18110
18111
  if (!e.normalize && e.protocol?.source === v_.source && !/^https?:\/\//i.test(n)) {
@@ -18148,31 +18149,31 @@ const Z_ = {
18148
18149
  }
18149
18150
  };
18150
18151
  }), Y_ = /* @__PURE__ */ H("$ZodEmoji", (t, e) => {
18151
- e.pattern ?? (e.pattern = h_()), Be.init(t, e);
18152
+ e.pattern ?? (e.pattern = h_()), Ie.init(t, e);
18152
18153
  }), H_ = /* @__PURE__ */ H("$ZodNanoID", (t, e) => {
18153
- e.pattern ?? (e.pattern = o_), Be.init(t, e);
18154
+ e.pattern ?? (e.pattern = o_), Ie.init(t, e);
18154
18155
  }), q_ = /* @__PURE__ */ H("$ZodCUID", (t, e) => {
18155
- e.pattern ?? (e.pattern = r_), Be.init(t, e);
18156
+ e.pattern ?? (e.pattern = r_), Ie.init(t, e);
18156
18157
  }), X_ = /* @__PURE__ */ H("$ZodCUID2", (t, e) => {
18157
- e.pattern ?? (e.pattern = i_), Be.init(t, e);
18158
+ e.pattern ?? (e.pattern = i_), Ie.init(t, e);
18158
18159
  }), K_ = /* @__PURE__ */ H("$ZodULID", (t, e) => {
18159
- e.pattern ?? (e.pattern = n_), Be.init(t, e);
18160
+ e.pattern ?? (e.pattern = n_), Ie.init(t, e);
18160
18161
  }), J_ = /* @__PURE__ */ H("$ZodXID", (t, e) => {
18161
- e.pattern ?? (e.pattern = a_), Be.init(t, e);
18162
+ e.pattern ?? (e.pattern = a_), Ie.init(t, e);
18162
18163
  }), Q_ = /* @__PURE__ */ H("$ZodKSUID", (t, e) => {
18163
- e.pattern ?? (e.pattern = s_), Be.init(t, e);
18164
+ e.pattern ?? (e.pattern = s_), Ie.init(t, e);
18164
18165
  }), tx = /* @__PURE__ */ H("$ZodISODateTime", (t, e) => {
18165
- e.pattern ?? (e.pattern = x_(e)), Be.init(t, e);
18166
+ e.pattern ?? (e.pattern = x_(e)), Ie.init(t, e);
18166
18167
  }), ex = /* @__PURE__ */ H("$ZodISODate", (t, e) => {
18167
- e.pattern ?? (e.pattern = w_), Be.init(t, e);
18168
+ e.pattern ?? (e.pattern = w_), Ie.init(t, e);
18168
18169
  }), rx = /* @__PURE__ */ H("$ZodISOTime", (t, e) => {
18169
- e.pattern ?? (e.pattern = __(e)), Be.init(t, e);
18170
+ e.pattern ?? (e.pattern = __(e)), Ie.init(t, e);
18170
18171
  }), ix = /* @__PURE__ */ H("$ZodISODuration", (t, e) => {
18171
- e.pattern ?? (e.pattern = u_), Be.init(t, e);
18172
+ e.pattern ?? (e.pattern = u_), Ie.init(t, e);
18172
18173
  }), nx = /* @__PURE__ */ H("$ZodIPv4", (t, e) => {
18173
- e.pattern ?? (e.pattern = d_), Be.init(t, e), t._zod.bag.format = "ipv4";
18174
+ e.pattern ?? (e.pattern = d_), Ie.init(t, e), t._zod.bag.format = "ipv4";
18174
18175
  }), ax = /* @__PURE__ */ H("$ZodIPv6", (t, e) => {
18175
- e.pattern ?? (e.pattern = p_), Be.init(t, e), t._zod.bag.format = "ipv6", t._zod.check = (r) => {
18176
+ e.pattern ?? (e.pattern = p_), Ie.init(t, e), t._zod.bag.format = "ipv6", t._zod.check = (r) => {
18176
18177
  try {
18177
18178
  new URL(`http://[${r.value}]`);
18178
18179
  } catch {
@@ -18186,9 +18187,9 @@ const Z_ = {
18186
18187
  }
18187
18188
  };
18188
18189
  }), sx = /* @__PURE__ */ H("$ZodCIDRv4", (t, e) => {
18189
- e.pattern ?? (e.pattern = m_), Be.init(t, e);
18190
+ e.pattern ?? (e.pattern = m_), Ie.init(t, e);
18190
18191
  }), ox = /* @__PURE__ */ H("$ZodCIDRv6", (t, e) => {
18191
- e.pattern ?? (e.pattern = g_), Be.init(t, e), t._zod.check = (r) => {
18192
+ e.pattern ?? (e.pattern = g_), Ie.init(t, e), t._zod.check = (r) => {
18192
18193
  const n = r.value.split("/");
18193
18194
  try {
18194
18195
  if (n.length !== 2)
@@ -18225,7 +18226,7 @@ function Cg(t) {
18225
18226
  }
18226
18227
  }
18227
18228
  const ux = /* @__PURE__ */ H("$ZodBase64", (t, e) => {
18228
- e.pattern ?? (e.pattern = y_), Be.init(t, e), t._zod.bag.contentEncoding = "base64", t._zod.check = (r) => {
18229
+ e.pattern ?? (e.pattern = y_), Ie.init(t, e), t._zod.bag.contentEncoding = "base64", t._zod.check = (r) => {
18229
18230
  Cg(r.value) || r.issues.push({
18230
18231
  code: "invalid_format",
18231
18232
  format: "base64",
@@ -18242,7 +18243,7 @@ function lx(t) {
18242
18243
  return Cg(r);
18243
18244
  }
18244
18245
  const cx = /* @__PURE__ */ H("$ZodBase64URL", (t, e) => {
18245
- e.pattern ?? (e.pattern = gg), Be.init(t, e), t._zod.bag.contentEncoding = "base64url", t._zod.check = (r) => {
18246
+ e.pattern ?? (e.pattern = gg), Ie.init(t, e), t._zod.bag.contentEncoding = "base64url", t._zod.check = (r) => {
18246
18247
  lx(r.value) || r.issues.push({
18247
18248
  code: "invalid_format",
18248
18249
  format: "base64url",
@@ -18252,7 +18253,7 @@ const cx = /* @__PURE__ */ H("$ZodBase64URL", (t, e) => {
18252
18253
  });
18253
18254
  };
18254
18255
  }), fx = /* @__PURE__ */ H("$ZodE164", (t, e) => {
18255
- e.pattern ?? (e.pattern = b_), Be.init(t, e);
18256
+ e.pattern ?? (e.pattern = b_), Ie.init(t, e);
18256
18257
  });
18257
18258
  function hx(t, e = null) {
18258
18259
  try {
@@ -18269,7 +18270,7 @@ function hx(t, e = null) {
18269
18270
  }
18270
18271
  }
18271
18272
  const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
18272
- Be.init(t, e), t._zod.check = (r) => {
18273
+ Ie.init(t, e), t._zod.check = (r) => {
18273
18274
  hx(r.value, e.alg) || r.issues.push({
18274
18275
  code: "invalid_format",
18275
18276
  format: "jwt",
@@ -18279,7 +18280,7 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
18279
18280
  });
18280
18281
  };
18281
18282
  }), Ag = /* @__PURE__ */ H("$ZodNumber", (t, e) => {
18282
- Ne.init(t, e), t._zod.pattern = t._zod.bag.pattern ?? bg, t._zod.parse = (r, n) => {
18283
+ Be.init(t, e), t._zod.pattern = t._zod.bag.pattern ?? bg, t._zod.parse = (r, n) => {
18283
18284
  if (e.coerce)
18284
18285
  try {
18285
18286
  r.value = Number(r.value);
@@ -18300,7 +18301,7 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
18300
18301
  }), px = /* @__PURE__ */ H("$ZodNumberFormat", (t, e) => {
18301
18302
  N_.init(t, e), Ag.init(t, e);
18302
18303
  }), mx = /* @__PURE__ */ H("$ZodBoolean", (t, e) => {
18303
- Ne.init(t, e), t._zod.pattern = E_, t._zod.parse = (r, n) => {
18304
+ Be.init(t, e), t._zod.pattern = E_, t._zod.parse = (r, n) => {
18304
18305
  if (e.coerce)
18305
18306
  try {
18306
18307
  r.value = !!r.value;
@@ -18315,7 +18316,7 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
18315
18316
  }), r;
18316
18317
  };
18317
18318
  }), gx = /* @__PURE__ */ H("$ZodNull", (t, e) => {
18318
- Ne.init(t, e), t._zod.pattern = k_, t._zod.values = /* @__PURE__ */ new Set([null]), t._zod.parse = (r, n) => {
18319
+ Be.init(t, e), t._zod.pattern = k_, t._zod.values = /* @__PURE__ */ new Set([null]), t._zod.parse = (r, n) => {
18319
18320
  const i = r.value;
18320
18321
  return i === null || r.issues.push({
18321
18322
  expected: "null",
@@ -18325,9 +18326,9 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
18325
18326
  }), r;
18326
18327
  };
18327
18328
  }), yx = /* @__PURE__ */ H("$ZodUnknown", (t, e) => {
18328
- Ne.init(t, e), t._zod.parse = (r) => r;
18329
+ Be.init(t, e), t._zod.parse = (r) => r;
18329
18330
  }), vx = /* @__PURE__ */ H("$ZodNever", (t, e) => {
18330
- Ne.init(t, e), t._zod.parse = (r, n) => (r.issues.push({
18331
+ Be.init(t, e), t._zod.parse = (r, n) => (r.issues.push({
18331
18332
  expected: "never",
18332
18333
  code: "invalid_type",
18333
18334
  input: r.value,
@@ -18338,7 +18339,7 @@ function jd(t, e, r) {
18338
18339
  t.issues.length && e.issues.push(...wa(r, t.issues)), e.value[r] = t.value;
18339
18340
  }
18340
18341
  const bx = /* @__PURE__ */ H("$ZodArray", (t, e) => {
18341
- Ne.init(t, e), t._zod.parse = (r, n) => {
18342
+ Be.init(t, e), t._zod.parse = (r, n) => {
18342
18343
  const i = r.value;
18343
18344
  if (!Array.isArray(i))
18344
18345
  return r.issues.push({
@@ -18411,7 +18412,7 @@ function kg(t, e, r, n, i, a) {
18411
18412
  }), t.length ? Promise.all(t).then(() => r) : r;
18412
18413
  }
18413
18414
  const wx = /* @__PURE__ */ H("$ZodObject", (t, e) => {
18414
- if (Ne.init(t, e), !Object.getOwnPropertyDescriptor(e, "shape")?.get) {
18415
+ if (Be.init(t, e), !Object.getOwnPropertyDescriptor(e, "shape")?.get) {
18415
18416
  const o = e.shape;
18416
18417
  Object.defineProperty(e, "shape", {
18417
18418
  get: () => {
@@ -18435,7 +18436,7 @@ const wx = /* @__PURE__ */ H("$ZodObject", (t, e) => {
18435
18436
  }
18436
18437
  return u;
18437
18438
  });
18438
- const i = Bs, a = e.catchall;
18439
+ const i = Is, a = e.catchall;
18439
18440
  let s;
18440
18441
  t._zod.parse = (o, u) => {
18441
18442
  s ?? (s = n.value);
@@ -18536,7 +18537,7 @@ const wx = /* @__PURE__ */ H("$ZodObject", (t, e) => {
18536
18537
  return (A, _) => B(m, A, _);
18537
18538
  };
18538
18539
  let a;
18539
- const s = Bs, o = !j0.jitless, l = o && I6.value, c = e.catchall;
18540
+ const s = Is, o = !j0.jitless, l = o && I6.value, c = e.catchall;
18540
18541
  let h;
18541
18542
  t._zod.parse = (m, d) => {
18542
18543
  h ?? (h = n.value);
@@ -18562,7 +18563,7 @@ function Gd(t, e, r, n) {
18562
18563
  }), e);
18563
18564
  }
18564
18565
  const Sg = /* @__PURE__ */ H("$ZodUnion", (t, e) => {
18565
- Ne.init(t, e), ye(t._zod, "optin", () => e.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), ye(t._zod, "optout", () => e.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), ye(t._zod, "values", () => {
18566
+ Be.init(t, e), ye(t._zod, "optin", () => e.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), ye(t._zod, "optout", () => e.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), ye(t._zod, "values", () => {
18566
18567
  if (e.options.every((n) => n._zod.values))
18567
18568
  return new Set(e.options.flatMap((n) => Array.from(n._zod.values)));
18568
18569
  }), ye(t._zod, "pattern", () => {
@@ -18625,7 +18626,7 @@ const Sg = /* @__PURE__ */ H("$ZodUnion", (t, e) => {
18625
18626
  });
18626
18627
  t._zod.parse = (i, a) => {
18627
18628
  const s = i.value;
18628
- if (!Bs(s))
18629
+ if (!Is(s))
18629
18630
  return i.issues.push({
18630
18631
  code: "invalid_type",
18631
18632
  expected: "object",
@@ -18645,7 +18646,7 @@ const Sg = /* @__PURE__ */ H("$ZodUnion", (t, e) => {
18645
18646
  }), i);
18646
18647
  };
18647
18648
  }), Cx = /* @__PURE__ */ H("$ZodIntersection", (t, e) => {
18648
- Ne.init(t, e), t._zod.parse = (r, n) => {
18649
+ Be.init(t, e), t._zod.parse = (r, n) => {
18649
18650
  const i = r.value, a = e.left._zod.run({ value: i, issues: [] }, n), s = e.right._zod.run({ value: i, issues: [] }, n);
18650
18651
  return a instanceof Promise || s instanceof Promise ? Promise.all([a, s]).then(([u, l]) => Wd(r, u, l)) : Wd(r, a, s);
18651
18652
  };
@@ -18655,7 +18656,7 @@ function f0(t, e) {
18655
18656
  return { valid: !0, data: t };
18656
18657
  if (t instanceof Date && e instanceof Date && +t == +e)
18657
18658
  return { valid: !0, data: t };
18658
- if (Sa(t) && Sa(e)) {
18659
+ if (Da(t) && Da(e)) {
18659
18660
  const r = Object.keys(e), n = Object.keys(t).filter((a) => r.indexOf(a) !== -1), i = { ...t, ...e };
18660
18661
  for (const a of n) {
18661
18662
  const s = f0(t[a], e[a]);
@@ -18710,9 +18711,9 @@ function Wd(t, e, r) {
18710
18711
  return t.value = s.data, t;
18711
18712
  }
18712
18713
  const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
18713
- Ne.init(t, e), t._zod.parse = (r, n) => {
18714
+ Be.init(t, e), t._zod.parse = (r, n) => {
18714
18715
  const i = r.value;
18715
- if (!Sa(i))
18716
+ if (!Da(i))
18716
18717
  return r.issues.push({
18717
18718
  expected: "record",
18718
18719
  code: "invalid_type",
@@ -18788,9 +18789,9 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
18788
18789
  return a.length ? Promise.all(a).then(() => r) : r;
18789
18790
  };
18790
18791
  }), Ex = /* @__PURE__ */ H("$ZodEnum", (t, e) => {
18791
- Ne.init(t, e);
18792
+ Be.init(t, e);
18792
18793
  const r = cg(e.entries), n = new Set(r);
18793
- t._zod.values = n, t._zod.pattern = new RegExp(`^(${r.filter((i) => T6.has(typeof i)).map((i) => typeof i == "string" ? Da(i) : i.toString()).join("|")})$`), t._zod.parse = (i, a) => {
18794
+ t._zod.values = n, t._zod.pattern = new RegExp(`^(${r.filter((i) => T6.has(typeof i)).map((i) => typeof i == "string" ? Fa(i) : i.toString()).join("|")})$`), t._zod.parse = (i, a) => {
18794
18795
  const s = i.value;
18795
18796
  return n.has(s) || i.issues.push({
18796
18797
  code: "invalid_value",
@@ -18800,10 +18801,10 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
18800
18801
  }), i;
18801
18802
  };
18802
18803
  }), kx = /* @__PURE__ */ H("$ZodLiteral", (t, e) => {
18803
- if (Ne.init(t, e), e.values.length === 0)
18804
+ if (Be.init(t, e), e.values.length === 0)
18804
18805
  throw new Error("Cannot create literal schema with no valid values");
18805
18806
  const r = new Set(e.values);
18806
- t._zod.values = r, t._zod.pattern = new RegExp(`^(${e.values.map((n) => typeof n == "string" ? Da(n) : n ? Da(n.toString()) : String(n)).join("|")})$`), t._zod.parse = (n, i) => {
18807
+ t._zod.values = r, t._zod.pattern = new RegExp(`^(${e.values.map((n) => typeof n == "string" ? Fa(n) : n ? Fa(n.toString()) : String(n)).join("|")})$`), t._zod.parse = (n, i) => {
18807
18808
  const a = n.value;
18808
18809
  return r.has(a) || n.issues.push({
18809
18810
  code: "invalid_value",
@@ -18813,7 +18814,7 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
18813
18814
  }), n;
18814
18815
  };
18815
18816
  }), Sx = /* @__PURE__ */ H("$ZodTransform", (t, e) => {
18816
- Ne.init(t, e), t._zod.optin = "optional", t._zod.parse = (r, n) => {
18817
+ Be.init(t, e), t._zod.optin = "optional", t._zod.parse = (r, n) => {
18817
18818
  if (n.direction === "backward")
18818
18819
  throw new lg(t.constructor.name);
18819
18820
  const i = e.transform(r.value, r);
@@ -18828,7 +18829,7 @@ function Yd(t, e) {
18828
18829
  return e === void 0 && (t.issues.length || t.fallback) ? { issues: [], value: void 0 } : t;
18829
18830
  }
18830
18831
  const Dg = /* @__PURE__ */ H("$ZodOptional", (t, e) => {
18831
- Ne.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", ye(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), ye(t._zod, "pattern", () => {
18832
+ Be.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", ye(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), ye(t._zod, "pattern", () => {
18832
18833
  const r = e.innerType._zod.pattern;
18833
18834
  return r ? new RegExp(`^(${W0(r.source)})?$`) : void 0;
18834
18835
  }), t._zod.parse = (r, n) => {
@@ -18841,12 +18842,12 @@ const Dg = /* @__PURE__ */ H("$ZodOptional", (t, e) => {
18841
18842
  }), Dx = /* @__PURE__ */ H("$ZodExactOptional", (t, e) => {
18842
18843
  Dg.init(t, e), ye(t._zod, "values", () => e.innerType._zod.values), ye(t._zod, "pattern", () => e.innerType._zod.pattern), t._zod.parse = (r, n) => e.innerType._zod.run(r, n);
18843
18844
  }), Fx = /* @__PURE__ */ H("$ZodNullable", (t, e) => {
18844
- Ne.init(t, e), ye(t._zod, "optin", () => e.innerType._zod.optin), ye(t._zod, "optout", () => e.innerType._zod.optout), ye(t._zod, "pattern", () => {
18845
+ Be.init(t, e), ye(t._zod, "optin", () => e.innerType._zod.optin), ye(t._zod, "optout", () => e.innerType._zod.optout), ye(t._zod, "pattern", () => {
18845
18846
  const r = e.innerType._zod.pattern;
18846
18847
  return r ? new RegExp(`^(${W0(r.source)}|null)$`) : void 0;
18847
18848
  }), ye(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, null]) : void 0), t._zod.parse = (r, n) => r.value === null ? r : e.innerType._zod.run(r, n);
18848
18849
  }), Nx = /* @__PURE__ */ H("$ZodDefault", (t, e) => {
18849
- Ne.init(t, e), t._zod.optin = "optional", ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
18850
+ Be.init(t, e), t._zod.optin = "optional", ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
18850
18851
  if (n.direction === "backward")
18851
18852
  return e.innerType._zod.run(r, n);
18852
18853
  if (r.value === void 0)
@@ -18859,9 +18860,9 @@ function Hd(t, e) {
18859
18860
  return t.value === void 0 && (t.value = e.defaultValue), t;
18860
18861
  }
18861
18862
  const Bx = /* @__PURE__ */ H("$ZodPrefault", (t, e) => {
18862
- Ne.init(t, e), t._zod.optin = "optional", ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = e.defaultValue), e.innerType._zod.run(r, n));
18863
+ Be.init(t, e), t._zod.optin = "optional", ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = e.defaultValue), e.innerType._zod.run(r, n));
18863
18864
  }), Ix = /* @__PURE__ */ H("$ZodNonOptional", (t, e) => {
18864
- Ne.init(t, e), ye(t._zod, "values", () => {
18865
+ Be.init(t, e), ye(t._zod, "values", () => {
18865
18866
  const r = e.innerType._zod.values;
18866
18867
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
18867
18868
  }), t._zod.parse = (r, n) => {
@@ -18878,7 +18879,7 @@ function qd(t, e) {
18878
18879
  }), t;
18879
18880
  }
18880
18881
  const Tx = /* @__PURE__ */ H("$ZodCatch", (t, e) => {
18881
- Ne.init(t, e), t._zod.optin = "optional", ye(t._zod, "optout", () => e.innerType._zod.optout), ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
18882
+ Be.init(t, e), t._zod.optin = "optional", ye(t._zod, "optout", () => e.innerType._zod.optout), ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
18882
18883
  if (n.direction === "backward")
18883
18884
  return e.innerType._zod.run(r, n);
18884
18885
  const i = e.innerType._zod.run(r, n);
@@ -18897,7 +18898,7 @@ const Tx = /* @__PURE__ */ H("$ZodCatch", (t, e) => {
18897
18898
  }), r.issues = [], r.fallback = !0), r);
18898
18899
  };
18899
18900
  }), Fg = /* @__PURE__ */ H("$ZodPipe", (t, e) => {
18900
- Ne.init(t, e), ye(t._zod, "values", () => e.in._zod.values), ye(t._zod, "optin", () => e.in._zod.optin), ye(t._zod, "optout", () => e.out._zod.optout), ye(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (r, n) => {
18901
+ Be.init(t, e), ye(t._zod, "values", () => e.in._zod.values), ye(t._zod, "optin", () => e.in._zod.optin), ye(t._zod, "optout", () => e.out._zod.optout), ye(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (r, n) => {
18901
18902
  if (n.direction === "backward") {
18902
18903
  const a = e.out._zod.run(r, n);
18903
18904
  return a instanceof Promise ? a.then((s) => Po(s, e.in, n)) : Po(a, e.in, n);
@@ -18912,7 +18913,7 @@ function Po(t, e, r) {
18912
18913
  const Px = /* @__PURE__ */ H("$ZodPreprocess", (t, e) => {
18913
18914
  Fg.init(t, e);
18914
18915
  }), Mx = /* @__PURE__ */ H("$ZodReadonly", (t, e) => {
18915
- Ne.init(t, e), ye(t._zod, "propValues", () => e.innerType._zod.propValues), ye(t._zod, "values", () => e.innerType._zod.values), ye(t._zod, "optin", () => e.innerType?._zod?.optin), ye(t._zod, "optout", () => e.innerType?._zod?.optout), t._zod.parse = (r, n) => {
18916
+ Be.init(t, e), ye(t._zod, "propValues", () => e.innerType._zod.propValues), ye(t._zod, "values", () => e.innerType._zod.values), ye(t._zod, "optin", () => e.innerType?._zod?.optin), ye(t._zod, "optout", () => e.innerType?._zod?.optout), t._zod.parse = (r, n) => {
18916
18917
  if (n.direction === "backward")
18917
18918
  return e.innerType._zod.run(r, n);
18918
18919
  const i = e.innerType._zod.run(r, n);
@@ -18923,7 +18924,7 @@ function Xd(t) {
18923
18924
  return t.value = Object.freeze(t.value), t;
18924
18925
  }
18925
18926
  const zx = /* @__PURE__ */ H("$ZodCustom", (t, e) => {
18926
- Ir.init(t, e), Ne.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
18927
+ Ir.init(t, e), Be.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
18927
18928
  const n = r.value, i = e.fn(n);
18928
18929
  if (i instanceof Promise)
18929
18930
  return i.then((a) => Kd(a, r, n, t));
@@ -18942,7 +18943,7 @@ function Kd(t, e, r, n) {
18942
18943
  continue: !n._zod.def.abort
18943
18944
  // params: inst._zod.def.params,
18944
18945
  };
18945
- n._zod.def.params && (i.params = n._zod.def.params), e.issues.push(Is(i));
18946
+ n._zod.def.params && (i.params = n._zod.def.params), e.issues.push(Ts(i));
18946
18947
  }
18947
18948
  }
18948
18949
  var Jd;
@@ -18979,7 +18980,7 @@ function Ox() {
18979
18980
  return new Vx();
18980
18981
  }
18981
18982
  (Jd = globalThis).__zod_globalRegistry ?? (Jd.__zod_globalRegistry = Ox());
18982
- const ms = globalThis.__zod_globalRegistry;
18983
+ const gs = globalThis.__zod_globalRegistry;
18983
18984
  // @__NO_SIDE_EFFECTS__
18984
18985
  function Rx(t, e) {
18985
18986
  return new t({
@@ -19416,7 +19417,7 @@ function x5(t, e) {
19416
19417
  });
19417
19418
  }
19418
19419
  // @__NO_SIDE_EFFECTS__
19419
- function Za(t) {
19420
+ function Ua(t) {
19420
19421
  return new $_({
19421
19422
  check: "overwrite",
19422
19423
  tx: t
@@ -19424,23 +19425,23 @@ function Za(t) {
19424
19425
  }
19425
19426
  // @__NO_SIDE_EFFECTS__
19426
19427
  function C5(t) {
19427
- return /* @__PURE__ */ Za((e) => e.normalize(t));
19428
+ return /* @__PURE__ */ Ua((e) => e.normalize(t));
19428
19429
  }
19429
19430
  // @__NO_SIDE_EFFECTS__
19430
19431
  function A5() {
19431
- return /* @__PURE__ */ Za((t) => t.trim());
19432
+ return /* @__PURE__ */ Ua((t) => t.trim());
19432
19433
  }
19433
19434
  // @__NO_SIDE_EFFECTS__
19434
19435
  function E5() {
19435
- return /* @__PURE__ */ Za((t) => t.toLowerCase());
19436
+ return /* @__PURE__ */ Ua((t) => t.toLowerCase());
19436
19437
  }
19437
19438
  // @__NO_SIDE_EFFECTS__
19438
19439
  function k5() {
19439
- return /* @__PURE__ */ Za((t) => t.toUpperCase());
19440
+ return /* @__PURE__ */ Ua((t) => t.toUpperCase());
19440
19441
  }
19441
19442
  // @__NO_SIDE_EFFECTS__
19442
19443
  function S5() {
19443
- return /* @__PURE__ */ Za((t) => B6(t));
19444
+ return /* @__PURE__ */ Ua((t) => B6(t));
19444
19445
  }
19445
19446
  // @__NO_SIDE_EFFECTS__
19446
19447
  function D5(t, e, r) {
@@ -19466,10 +19467,10 @@ function F5(t, e, r) {
19466
19467
  function N5(t, e) {
19467
19468
  const r = /* @__PURE__ */ B5((n) => (n.addIssue = (i) => {
19468
19469
  if (typeof i == "string")
19469
- n.issues.push(Is(i, n.value, r._zod.def));
19470
+ n.issues.push(Ts(i, n.value, r._zod.def));
19470
19471
  else {
19471
19472
  const a = i;
19472
- a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = r), a.continue ?? (a.continue = !r._zod.def.abort), n.issues.push(Is(a));
19473
+ a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = r), a.continue ?? (a.continue = !r._zod.def.abort), n.issues.push(Ts(a));
19473
19474
  }
19474
19475
  }, t(n.value, n)), e);
19475
19476
  return r;
@@ -19486,7 +19487,7 @@ function Ig(t) {
19486
19487
  let e = t?.target ?? "draft-2020-12";
19487
19488
  return e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), {
19488
19489
  processors: t.processors ?? {},
19489
- metadataRegistry: t?.metadata ?? ms,
19490
+ metadataRegistry: t?.metadata ?? gs,
19490
19491
  target: e,
19491
19492
  unrepresentable: t?.unrepresentable ?? "throw",
19492
19493
  override: t?.override ?? (() => {
@@ -19973,7 +19974,7 @@ function Gs(t, e, r) {
19973
19974
  }
19974
19975
  }
19975
19976
  }
19976
- const Ie = /* @__PURE__ */ H("ZodType", (t, e) => (Ne.init(t, e), Object.assign(t["~standard"], {
19977
+ const Te = /* @__PURE__ */ H("ZodType", (t, e) => (Be.init(t, e), Object.assign(t["~standard"], {
19977
19978
  jsonSchema: {
19978
19979
  input: vu(t, "input"),
19979
19980
  output: vu(t, "output")
@@ -20007,7 +20008,7 @@ const Ie = /* @__PURE__ */ H("ZodType", (t, e) => (Ne.init(t, e), Object.assign(
20007
20008
  return this.check(pA(r, n));
20008
20009
  },
20009
20010
  overwrite(r) {
20010
- return this.check(/* @__PURE__ */ Za(r));
20011
+ return this.check(/* @__PURE__ */ Ua(r));
20011
20012
  },
20012
20013
  optional() {
20013
20014
  return f(this);
@@ -20053,13 +20054,13 @@ const Ie = /* @__PURE__ */ H("ZodType", (t, e) => (Ne.init(t, e), Object.assign(
20053
20054
  },
20054
20055
  describe(r) {
20055
20056
  const n = this.clone();
20056
- return ms.add(n, { description: r }), n;
20057
+ return gs.add(n, { description: r }), n;
20057
20058
  },
20058
20059
  meta(...r) {
20059
20060
  if (r.length === 0)
20060
- return ms.get(this);
20061
+ return gs.get(this);
20061
20062
  const n = this.clone();
20062
- return ms.add(n, r[0]), n;
20063
+ return gs.add(n, r[0]), n;
20063
20064
  },
20064
20065
  isOptional() {
20065
20066
  return this.safeParse(void 0).success;
@@ -20072,11 +20073,11 @@ const Ie = /* @__PURE__ */ H("ZodType", (t, e) => (Ne.init(t, e), Object.assign(
20072
20073
  }
20073
20074
  }), Object.defineProperty(t, "description", {
20074
20075
  get() {
20075
- return ms.get(t)?.description;
20076
+ return gs.get(t)?.description;
20076
20077
  },
20077
20078
  configurable: !0
20078
20079
  }), t)), zg = /* @__PURE__ */ H("_ZodString", (t, e) => {
20079
- X0.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (n, i, a) => P5(t, n, i);
20080
+ X0.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (n, i, a) => P5(t, n, i);
20080
20081
  const r = t._zod.bag;
20081
20082
  t.format = r.format ?? null, t.minLength = r.minimum ?? null, t.maxLength = r.maximum ?? null, Gs(t, "_ZodString", {
20082
20083
  regex(...n) {
@@ -20132,7 +20133,7 @@ function p(t) {
20132
20133
  return /* @__PURE__ */ Rx(CC, t);
20133
20134
  }
20134
20135
  const ze = /* @__PURE__ */ H("ZodStringFormat", (t, e) => {
20135
- Be.init(t, e), zg.init(t, e);
20136
+ Ie.init(t, e), zg.init(t, e);
20136
20137
  }), AC = /* @__PURE__ */ H("ZodEmail", (t, e) => {
20137
20138
  G_.init(t, e), ze.init(t, e);
20138
20139
  }), np = /* @__PURE__ */ H("ZodGUID", (t, e) => {
@@ -20172,7 +20173,7 @@ const ze = /* @__PURE__ */ H("ZodStringFormat", (t, e) => {
20172
20173
  }), $C = /* @__PURE__ */ H("ZodJWT", (t, e) => {
20173
20174
  dx.init(t, e), ze.init(t, e);
20174
20175
  }), Vg = /* @__PURE__ */ H("ZodNumber", (t, e) => {
20175
- Ag.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (n, i, a) => M5(t, n, i), Gs(t, "ZodNumber", {
20176
+ Ag.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (n, i, a) => M5(t, n, i), Gs(t, "ZodNumber", {
20176
20177
  gt(n, i) {
20177
20178
  return this.check(/* @__PURE__ */ ep(n, i));
20178
20179
  },
@@ -20232,31 +20233,31 @@ function ap(t) {
20232
20233
  return /* @__PURE__ */ h5(LC, t);
20233
20234
  }
20234
20235
  const ZC = /* @__PURE__ */ H("ZodBoolean", (t, e) => {
20235
- mx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => z5(t, r, n);
20236
+ mx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => z5(t, r, n);
20236
20237
  });
20237
20238
  function Rt(t) {
20238
20239
  return /* @__PURE__ */ d5(ZC, t);
20239
20240
  }
20240
20241
  const UC = /* @__PURE__ */ H("ZodNull", (t, e) => {
20241
- gx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => V5(t, r, n);
20242
+ gx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => V5(t, r, n);
20242
20243
  });
20243
20244
  function ei(t) {
20244
20245
  return /* @__PURE__ */ p5(UC, t);
20245
20246
  }
20246
20247
  const jC = /* @__PURE__ */ H("ZodUnknown", (t, e) => {
20247
- yx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => R5();
20248
+ yx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => R5();
20248
20249
  });
20249
20250
  function fr() {
20250
20251
  return /* @__PURE__ */ m5(jC);
20251
20252
  }
20252
20253
  const GC = /* @__PURE__ */ H("ZodNever", (t, e) => {
20253
- vx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => O5(t, r, n);
20254
+ vx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => O5(t, r, n);
20254
20255
  });
20255
20256
  function ht(t) {
20256
20257
  return /* @__PURE__ */ g5(GC, t);
20257
20258
  }
20258
20259
  const WC = /* @__PURE__ */ H("ZodArray", (t, e) => {
20259
- bx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => j5(t, r, n, i), t.element = e.element, Gs(t, "ZodArray", {
20260
+ bx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => j5(t, r, n, i), t.element = e.element, Gs(t, "ZodArray", {
20260
20261
  min(r, n) {
20261
20262
  return this.check(/* @__PURE__ */ yu(r, n));
20262
20263
  },
@@ -20278,7 +20279,7 @@ function Pt(t, e) {
20278
20279
  return /* @__PURE__ */ D5(WC, t, e);
20279
20280
  }
20280
20281
  const YC = /* @__PURE__ */ H("ZodObject", (t, e) => {
20281
- _x.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => G5(t, r, n, i), ye(t, "shape", () => e.shape), Gs(t, "ZodObject", {
20282
+ _x.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => G5(t, r, n, i), ye(t, "shape", () => e.shape), Gs(t, "ZodObject", {
20282
20283
  keyof() {
20283
20284
  return Z(Object.keys(this._zod.def.shape));
20284
20285
  },
@@ -20329,7 +20330,7 @@ function C(t, e) {
20329
20330
  return new YC(r);
20330
20331
  }
20331
20332
  const Og = /* @__PURE__ */ H("ZodUnion", (t, e) => {
20332
- Sg.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => W5(t, r, n, i), t.options = e.options;
20333
+ Sg.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => W5(t, r, n, i), t.options = e.options;
20333
20334
  });
20334
20335
  function b(t, e) {
20335
20336
  return new Og({
@@ -20350,7 +20351,7 @@ function Ju(t, e, r) {
20350
20351
  });
20351
20352
  }
20352
20353
  const qC = /* @__PURE__ */ H("ZodIntersection", (t, e) => {
20353
- Cx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => Y5(t, r, n, i);
20354
+ Cx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Y5(t, r, n, i);
20354
20355
  });
20355
20356
  function XC(t, e) {
20356
20357
  return new qC({
@@ -20360,7 +20361,7 @@ function XC(t, e) {
20360
20361
  });
20361
20362
  }
20362
20363
  const sp = /* @__PURE__ */ H("ZodRecord", (t, e) => {
20363
- Ax.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => H5(t, r, n, i), t.keyType = e.keyType, t.valueType = e.valueType;
20364
+ Ax.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => H5(t, r, n, i), t.keyType = e.keyType, t.valueType = e.valueType;
20364
20365
  });
20365
20366
  function Rg(t, e, r) {
20366
20367
  return !e || !e._zod ? new sp({
@@ -20376,7 +20377,7 @@ function Rg(t, e, r) {
20376
20377
  });
20377
20378
  }
20378
20379
  const h0 = /* @__PURE__ */ H("ZodEnum", (t, e) => {
20379
- Ex.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (n, i, a) => $5(t, n, i), t.enum = e.entries, t.options = Object.values(e.entries);
20380
+ Ex.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (n, i, a) => $5(t, n, i), t.enum = e.entries, t.options = Object.values(e.entries);
20380
20381
  const r = new Set(Object.keys(e.entries));
20381
20382
  t.extract = (n, i) => {
20382
20383
  const a = {};
@@ -20415,7 +20416,7 @@ function Z(t, e) {
20415
20416
  });
20416
20417
  }
20417
20418
  const KC = /* @__PURE__ */ H("ZodLiteral", (t, e) => {
20418
- kx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => L5(t, r, n), t.values = new Set(e.values), Object.defineProperty(t, "value", {
20419
+ kx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => L5(t, r, n), t.values = new Set(e.values), Object.defineProperty(t, "value", {
20419
20420
  get() {
20420
20421
  if (e.values.length > 1)
20421
20422
  throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
@@ -20431,15 +20432,15 @@ function xt(t, e) {
20431
20432
  });
20432
20433
  }
20433
20434
  const JC = /* @__PURE__ */ H("ZodTransform", (t, e) => {
20434
- Sx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => U5(t, r), t._zod.parse = (r, n) => {
20435
+ Sx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => U5(t, r), t._zod.parse = (r, n) => {
20435
20436
  if (n.direction === "backward")
20436
20437
  throw new lg(t.constructor.name);
20437
20438
  r.addIssue = (a) => {
20438
20439
  if (typeof a == "string")
20439
- r.issues.push(Is(a, r.value, e));
20440
+ r.issues.push(Ts(a, r.value, e));
20440
20441
  else {
20441
20442
  const s = a;
20442
- s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = r.value), s.inst ?? (s.inst = t), r.issues.push(Is(s));
20443
+ s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = r.value), s.inst ?? (s.inst = t), r.issues.push(Ts(s));
20443
20444
  }
20444
20445
  };
20445
20446
  const i = e.transform(r.value, r);
@@ -20453,7 +20454,7 @@ function $g(t) {
20453
20454
  });
20454
20455
  }
20455
20456
  const Lg = /* @__PURE__ */ H("ZodOptional", (t, e) => {
20456
- Dg.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => Mg(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20457
+ Dg.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Mg(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20457
20458
  });
20458
20459
  function f(t) {
20459
20460
  return new Lg({
@@ -20462,7 +20463,7 @@ function f(t) {
20462
20463
  });
20463
20464
  }
20464
20465
  const QC = /* @__PURE__ */ H("ZodExactOptional", (t, e) => {
20465
- Dx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => Mg(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20466
+ Dx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Mg(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20466
20467
  });
20467
20468
  function tA(t) {
20468
20469
  return new QC({
@@ -20471,7 +20472,7 @@ function tA(t) {
20471
20472
  });
20472
20473
  }
20473
20474
  const eA = /* @__PURE__ */ H("ZodNullable", (t, e) => {
20474
- Fx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => q5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20475
+ Fx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => q5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20475
20476
  });
20476
20477
  function op(t) {
20477
20478
  return new eA({
@@ -20480,7 +20481,7 @@ function op(t) {
20480
20481
  });
20481
20482
  }
20482
20483
  const rA = /* @__PURE__ */ H("ZodDefault", (t, e) => {
20483
- Nx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => K5(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeDefault = t.unwrap;
20484
+ Nx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => K5(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeDefault = t.unwrap;
20484
20485
  });
20485
20486
  function iA(t, e) {
20486
20487
  return new rA({
@@ -20492,7 +20493,7 @@ function iA(t, e) {
20492
20493
  });
20493
20494
  }
20494
20495
  const nA = /* @__PURE__ */ H("ZodPrefault", (t, e) => {
20495
- Bx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => J5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20496
+ Bx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => J5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20496
20497
  });
20497
20498
  function aA(t, e) {
20498
20499
  return new nA({
@@ -20504,7 +20505,7 @@ function aA(t, e) {
20504
20505
  });
20505
20506
  }
20506
20507
  const Zg = /* @__PURE__ */ H("ZodNonOptional", (t, e) => {
20507
- Ix.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => X5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20508
+ Ix.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => X5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20508
20509
  });
20509
20510
  function sA(t, e) {
20510
20511
  return new Zg({
@@ -20514,7 +20515,7 @@ function sA(t, e) {
20514
20515
  });
20515
20516
  }
20516
20517
  const oA = /* @__PURE__ */ H("ZodCatch", (t, e) => {
20517
- Tx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => Q5(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeCatch = t.unwrap;
20518
+ Tx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Q5(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeCatch = t.unwrap;
20518
20519
  });
20519
20520
  function uA(t, e) {
20520
20521
  return new oA({
@@ -20524,7 +20525,7 @@ function uA(t, e) {
20524
20525
  });
20525
20526
  }
20526
20527
  const Ug = /* @__PURE__ */ H("ZodPipe", (t, e) => {
20527
- Fg.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => tC(t, r, n, i), t.in = e.in, t.out = e.out;
20528
+ Fg.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => tC(t, r, n, i), t.in = e.in, t.out = e.out;
20528
20529
  });
20529
20530
  function up(t, e) {
20530
20531
  return new Ug({
@@ -20537,7 +20538,7 @@ function up(t, e) {
20537
20538
  const lA = /* @__PURE__ */ H("ZodPreprocess", (t, e) => {
20538
20539
  Ug.init(t, e), Px.init(t, e);
20539
20540
  }), cA = /* @__PURE__ */ H("ZodReadonly", (t, e) => {
20540
- Mx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => eC(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20541
+ Mx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => eC(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
20541
20542
  });
20542
20543
  function fA(t) {
20543
20544
  return new cA({
@@ -20546,7 +20547,7 @@ function fA(t) {
20546
20547
  });
20547
20548
  }
20548
20549
  const hA = /* @__PURE__ */ H("ZodCustom", (t, e) => {
20549
- zx.init(t, e), Ie.init(t, e), t._zod.processJSONSchema = (r, n, i) => Z5(t, r);
20550
+ zx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Z5(t, r);
20550
20551
  });
20551
20552
  function dA(t, e = {}) {
20552
20553
  return /* @__PURE__ */ F5(hA, t, e);
@@ -22068,7 +22069,7 @@ const SE = C({
22068
22069
  ])),
22069
22070
  transform: f(GE),
22070
22071
  alias: f(b([p().regex(/^[A-Za-z0-9_-]+$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
22071
- }).strict(), Fa = a1, HE = a1.transform((t) => {
22072
+ }).strict(), Na = a1, HE = a1.transform((t) => {
22072
22073
  if (t.asset && typeof t.asset == "object" && "type" in t.asset && t.asset.type === "rich-text") {
22073
22074
  const { fit: r, ...n } = t;
22074
22075
  return n;
@@ -22093,7 +22094,7 @@ const SE = C({
22093
22094
  "s2",
22094
22095
  "a1"
22095
22096
  ]))
22096
- }).strict(), gs = Ws, XE = C({
22097
+ }).strict(), ys = Ws, XE = C({
22097
22098
  id: p(),
22098
22099
  owner: p(),
22099
22100
  plan: f(p()),
@@ -22261,10 +22262,10 @@ C({
22261
22262
  path: f(ht()),
22262
22263
  query: f(ht())
22263
22264
  }).strict();
22264
- const JE = OA, QE = xE, tk = rl.shape.format, ek = rl.shape.fps.unwrap(), rk = rl.shape.resolution, ik = rl.shape.aspectRatio, nk = p().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/), d0 = Fa.extend({ id: p() }), ak = Q0.extend({
22265
+ const JE = OA, QE = xE, tk = rl.shape.format, ek = rl.shape.fps.unwrap(), rk = rl.shape.resolution, ik = rl.shape.aspectRatio, nk = p().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/), d0 = Na.extend({ id: p() }), ak = Q0.extend({
22265
22266
  clips: Pt(d0).min(1)
22266
22267
  });
22267
- gs.extend({
22268
+ ys.extend({
22268
22269
  timeline: qE.extend({
22269
22270
  tracks: Pt(ak).min(1)
22270
22271
  })
@@ -27033,8 +27034,8 @@ var r9 = Ge({
27033
27034
  }
27034
27035
  t.BrotliDecompressBuffer = Ue;
27035
27036
  function oe(W, U) {
27036
- var tt, G = 0, mt = 0, Ct = 0, gt, At = 0, Bt, X, nt, yt, et = [16, 15, 11, 4], Yt = 0, St = 0, Nt = 0, wt = [new Dt(0, 0), new Dt(0, 0), new Dt(0, 0)], ae, ce, pt, Pe = 128 + n.READ_SIZE;
27037
- pt = new n(W), Ct = I(pt), gt = (1 << Ct) - 16, Bt = 1 << Ct, X = Bt - 1, nt = new Uint8Array(Bt + Pe + i.maxDictionaryWordLength), yt = Bt, ae = [], ce = [];
27037
+ var tt, G = 0, mt = 0, Ct = 0, gt, At = 0, Bt, X, nt, yt, et = [16, 15, 11, 4], Yt = 0, St = 0, Nt = 0, wt = [new Dt(0, 0), new Dt(0, 0), new Dt(0, 0)], ae, ce, pt, Me = 128 + n.READ_SIZE;
27038
+ pt = new n(W), Ct = I(pt), gt = (1 << Ct) - 16, Bt = 1 << Ct, X = Bt - 1, nt = new Uint8Array(Bt + Me + i.maxDictionaryWordLength), yt = Bt, ae = [], ce = [];
27038
27039
  for (var Je = 0; Je < 3 * A; Je++)
27039
27040
  ae[Je] = new a(0, 0), ce[Je] = new a(0, 0);
27040
27041
  for (; !mt; ) {
@@ -27070,8 +27071,8 @@ var r9 = Ge({
27070
27071
  pt.readMoreInput(), Ti[tt] = pt.readBits(2) << 1;
27071
27072
  var In = Lt(Ht[0] << w, pt);
27072
27073
  tn = In.num_htrees, Ii = In.context_map;
27073
- var Wa = Lt(Ht[2] << v, pt);
27074
- for (pr = Wa.num_htrees, jr = Wa.context_map, wt[0] = new Dt(m, tn), wt[1] = new Dt(d, Ht[1]), wt[2] = new Dt(Nn, pr), tt = 0; tt < 3; ++tt)
27074
+ var Ya = Lt(Ht[2] << v, pt);
27075
+ for (pr = Ya.num_htrees, jr = Ya.context_map, wt[0] = new Dt(m, tn), wt[1] = new Dt(d, Ht[1]), wt[2] = new Dt(Nn, pr), tt = 0; tt < 3; ++tt)
27075
27076
  wt[tt].decode(pt);
27076
27077
  for (or = 0, T = 0, ie = Ti[Kt[0]], qt = o.lookupOffsets[ie], fe = o.lookupOffsets[ie + 1], $e = wt[1].htrees[0]; ve > 0; ) {
27077
27078
  var en, Tn, sa, rn, Pn, ur, lr, wr, Mi, fi, kt;
@@ -27113,7 +27114,7 @@ var r9 = Ge({
27113
27114
  throw new Error("[BrotliDecompress] invalid distance");
27114
27115
  if (G < gt && At !== gt ? At = G : At = gt, kt = G & X, wr > At)
27115
27116
  if (ur >= i.minDictionaryWordLength && ur <= i.maxDictionaryWordLength) {
27116
- var Gr = i.offsetsByLength[ur], Mn = wr - At - 1, Ya = i.sizeBitsByLength[ur], Ha = (1 << Ya) - 1, oa = Mn & Ha, zn = Mn >> Ya;
27117
+ var Gr = i.offsetsByLength[ur], Mn = wr - At - 1, Ha = i.sizeBitsByLength[ur], qa = (1 << Ha) - 1, oa = Mn & qa, zn = Mn >> Ha;
27117
27118
  if (Gr += oa * ur, zn < l.kNumTransforms) {
27118
27119
  var ua = l.transformDictionaryWord(nt, kt, Gr, ur, zn);
27119
27120
  if (kt += ua, G += ua, ve -= ua, kt >= yt) {
@@ -27165,20 +27166,20 @@ Xi(q, {
27165
27166
  ZodCatch: () => Uh,
27166
27167
  ZodCodec: () => vo,
27167
27168
  ZodCustom: () => bo,
27168
- ZodCustomStringFormat: () => ja,
27169
+ ZodCustomStringFormat: () => Ga,
27169
27170
  ZodDate: () => jl,
27170
27171
  ZodDefault: () => Vh,
27171
27172
  ZodDiscriminatedUnion: () => Ch,
27172
27173
  ZodE164: () => $l,
27173
27174
  ZodEmail: () => kl,
27174
27175
  ZodEmoji: () => Sl,
27175
- ZodEnum: () => Va,
27176
+ ZodEnum: () => Oa,
27176
27177
  ZodError: () => VD,
27177
27178
  ZodExactOptional: () => Ph,
27178
27179
  ZodFile: () => Ih,
27179
27180
  ZodFirstPartyTypeKind: () => b0,
27180
27181
  ZodFunction: () => Qh,
27181
- ZodGUID: () => zs,
27182
+ ZodGUID: () => Vs,
27182
27183
  ZodIPv4: () => Pl,
27183
27184
  ZodIPv6: () => Ml,
27184
27185
  ZodISODate: () => oh,
@@ -27209,7 +27210,7 @@ Xi(q, {
27209
27210
  ZodPromise: () => Jh,
27210
27211
  ZodReadonly: () => Yh,
27211
27212
  ZodRealError: () => Ur,
27212
- ZodRecord: () => za,
27213
+ ZodRecord: () => Va,
27213
27214
  ZodSet: () => Nh,
27214
27215
  ZodString: () => uo,
27215
27216
  ZodStringFormat: () => xe,
@@ -27304,12 +27305,12 @@ Xi(q, {
27304
27305
  mac: () => x3,
27305
27306
  map: () => tw,
27306
27307
  maxLength: () => no,
27307
- maxSize: () => Ua,
27308
+ maxSize: () => ja,
27308
27309
  meta: () => mw,
27309
27310
  mime: () => bl,
27310
27311
  minLength: () => Jn,
27311
27312
  minSize: () => xn,
27312
- multipleOf: () => Ia,
27313
+ multipleOf: () => Ta,
27313
27314
  nan: () => ow,
27314
27315
  nanoid: () => m3,
27315
27316
  nativeEnum: () => rw,
@@ -27320,11 +27321,11 @@ Xi(q, {
27320
27321
  nonpositive: () => th,
27321
27322
  normalize: () => wl,
27322
27323
  null: () => gh,
27323
- nullable: () => Os,
27324
+ nullable: () => Rs,
27324
27325
  nullish: () => aw,
27325
27326
  number: () => fh,
27326
27327
  object: () => Y3,
27327
- optional: () => Vs,
27328
+ optional: () => Os,
27328
27329
  overwrite: () => Ji,
27329
27330
  parse: () => Hb,
27330
27331
  parseAsync: () => qb,
@@ -27354,7 +27355,7 @@ Xi(q, {
27354
27355
  slugify: () => Al,
27355
27356
  startsWith: () => yl,
27356
27357
  strictObject: () => H3,
27357
- string: () => Ms,
27358
+ string: () => zs,
27358
27359
  stringFormat: () => N3,
27359
27360
  stringbool: () => yw,
27360
27361
  success: () => sw,
@@ -27400,7 +27401,7 @@ Xi(I1, {
27400
27401
  $ZodCUID: () => i4,
27401
27402
  $ZodCUID2: () => n4,
27402
27403
  $ZodCatch: () => ev,
27403
- $ZodCheck: () => Te,
27404
+ $ZodCheck: () => Pe,
27404
27405
  $ZodCheckBigIntFormat: () => Ty,
27405
27406
  $ZodCheckEndsWith: () => Gy,
27406
27407
  $ZodCheckGreaterThan: () => _f,
@@ -27556,12 +27557,12 @@ Xi(I1, {
27556
27557
  _map: () => yD,
27557
27558
  _max: () => ti,
27558
27559
  _maxLength: () => no,
27559
- _maxSize: () => Ua,
27560
+ _maxSize: () => ja,
27560
27561
  _mime: () => bl,
27561
27562
  _min: () => Dr,
27562
27563
  _minLength: () => Jn,
27563
27564
  _minSize: () => xn,
27564
- _multipleOf: () => Ia,
27565
+ _multipleOf: () => Ta,
27565
27566
  _nan: () => Wv,
27566
27567
  _nanoid: () => Of,
27567
27568
  _nativeEnum: () => wD,
@@ -27625,20 +27626,20 @@ Xi(I1, {
27625
27626
  _xor: () => hD,
27626
27627
  clone: () => ii,
27627
27628
  config: () => ir,
27628
- createStandardJSONSchemaMethod: () => Ps,
27629
+ createStandardJSONSchemaMethod: () => Ms,
27629
27630
  createToJSONSchemaMethod: () => rb,
27630
27631
  decode: () => $9,
27631
27632
  decodeAsync: () => Z9,
27632
27633
  describe: () => Qv,
27633
27634
  encode: () => R9,
27634
27635
  encodeAsync: () => L9,
27635
- extractDefs: () => Pa,
27636
- finalize: () => Ma,
27636
+ extractDefs: () => Ma,
27637
+ finalize: () => za,
27637
27638
  flattenError: () => uf,
27638
27639
  formatError: () => lf,
27639
- globalConfig: () => Ts,
27640
+ globalConfig: () => Ps,
27640
27641
  globalRegistry: () => Qr,
27641
- initializeContext: () => Ta,
27642
+ initializeContext: () => Pa,
27642
27643
  isValidBase64: () => xf,
27643
27644
  isValidBase64URL: () => v4,
27644
27645
  isValidJWT: () => _4,
@@ -27710,9 +27711,9 @@ var P1 = /* @__PURE__ */ Symbol("zod_brand"), Yn = class extends Error {
27710
27711
  }
27711
27712
  };
27712
27713
  (fp = globalThis).__zod_globalConfig ?? (fp.__zod_globalConfig = {});
27713
- var Ts = globalThis.__zod_globalConfig;
27714
+ var Ps = globalThis.__zod_globalConfig;
27714
27715
  function ir(t) {
27715
- return t && Object.assign(Ts, t), Ts;
27716
+ return t && Object.assign(Ps, t), Ps;
27716
27717
  }
27717
27718
  var Qt = {};
27718
27719
  Xi(Qt, {
@@ -27749,7 +27750,7 @@ Xi(Qt, {
27749
27750
  getParsedType: () => A9,
27750
27751
  getSizableOrigin: () => ll,
27751
27752
  hexToUint8Array: () => z9,
27752
- isObject: () => Na,
27753
+ isObject: () => Ba,
27753
27754
  isPlainObject: () => Kn,
27754
27755
  issue: () => _u,
27755
27756
  joinValues: () => rt,
@@ -27778,7 +27779,7 @@ Xi(Qt, {
27778
27779
  uint8ArrayToBase64: () => G1,
27779
27780
  uint8ArrayToBase64url: () => M9,
27780
27781
  uint8ArrayToHex: () => V9,
27781
- unwrapMessage: () => ys
27782
+ unwrapMessage: () => vs
27782
27783
  });
27783
27784
  function d9(t) {
27784
27785
  return t;
@@ -27890,11 +27891,11 @@ function z1(t) {
27890
27891
  }
27891
27892
  var sf = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
27892
27893
  };
27893
- function Na(t) {
27894
+ function Ba(t) {
27894
27895
  return typeof t == "object" && t !== null && !Array.isArray(t);
27895
27896
  }
27896
27897
  var V1 = /* @__PURE__ */ Hs(() => {
27897
- if (Ts.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
27898
+ if (Ps.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
27898
27899
  return !1;
27899
27900
  try {
27900
27901
  const t = Function;
@@ -27904,13 +27905,13 @@ var V1 = /* @__PURE__ */ Hs(() => {
27904
27905
  }
27905
27906
  });
27906
27907
  function Kn(t) {
27907
- if (Na(t) === !1)
27908
+ if (Ba(t) === !1)
27908
27909
  return !1;
27909
27910
  const e = t.constructor;
27910
27911
  if (e === void 0 || typeof e != "function")
27911
27912
  return !0;
27912
27913
  const r = e.prototype;
27913
- return !(Na(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
27914
+ return !(Ba(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
27914
27915
  }
27915
27916
  function O1(t) {
27916
27917
  return Kn(t) ? { ...t } : Array.isArray(t) ? [...t] : t instanceof Map ? new Map(t) : t instanceof Set ? new Set(t) : t;
@@ -28167,11 +28168,11 @@ function Jr(t, e) {
28167
28168
  return (n = r).path ?? (n.path = []), r.path.unshift(t), r;
28168
28169
  });
28169
28170
  }
28170
- function ys(t) {
28171
+ function vs(t) {
28171
28172
  return typeof t == "string" ? t : t?.message;
28172
28173
  }
28173
28174
  function Lr(t, e, r) {
28174
- const n = t.message ? t.message : ys(t.inst?._zod.def?.error?.(t)) ?? ys(e?.error?.(t)) ?? ys(r.customError?.(t)) ?? ys(r.localeError?.(t)) ?? "Invalid input", { inst: i, continue: a, input: s, ...o } = t;
28175
+ const n = t.message ? t.message : vs(t.inst?._zod.def?.error?.(t)) ?? vs(e?.error?.(t)) ?? vs(r.customError?.(t)) ?? vs(r.localeError?.(t)) ?? "Invalid input", { inst: i, continue: a, input: s, ...o } = t;
28175
28176
  return o.path ?? (o.path = []), o.message = n, e?.reportInput && (o.input = s), o;
28176
28177
  }
28177
28178
  function ll(t) {
@@ -28423,13 +28424,13 @@ Xi(bn, {
28423
28424
  undefined: () => Sy,
28424
28425
  unicodeEmail: () => oy,
28425
28426
  uppercase: () => Fy,
28426
- uuid: () => Ba,
28427
+ uuid: () => Ia,
28427
28428
  uuid4: () => H9,
28428
28429
  uuid6: () => q9,
28429
28430
  uuid7: () => X9,
28430
28431
  xid: () => ey
28431
28432
  });
28432
- var J1 = /^[cC][0-9a-z]{6,}$/, Q1 = /^[0-9a-z]+$/, ty = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ey = /^[0-9a-vA-V]{20}$/, ry = /^[A-Za-z0-9]{27}$/, iy = /^[a-zA-Z0-9_-]{21}$/, ny = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Y9 = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, ay = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ba = (t) => t ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, H9 = /* @__PURE__ */ Ba(4), q9 = /* @__PURE__ */ Ba(6), X9 = /* @__PURE__ */ Ba(7), sy = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, K9 = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, J9 = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, oy = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, Q9 = oy, tS = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, eS = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
28433
+ var J1 = /^[cC][0-9a-z]{6,}$/, Q1 = /^[0-9a-z]+$/, ty = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ey = /^[0-9a-vA-V]{20}$/, ry = /^[A-Za-z0-9]{27}$/, iy = /^[a-zA-Z0-9_-]{21}$/, ny = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Y9 = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, ay = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ia = (t) => t ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, H9 = /* @__PURE__ */ Ia(4), q9 = /* @__PURE__ */ Ia(6), X9 = /* @__PURE__ */ Ia(7), sy = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, K9 = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, J9 = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, oy = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, Q9 = oy, tS = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, eS = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
28433
28434
  function uy() {
28434
28435
  return new RegExp(eS, "u");
28435
28436
  }
@@ -28460,7 +28461,7 @@ function Qs(t, e) {
28460
28461
  function to(t) {
28461
28462
  return new RegExp(`^[A-Za-z0-9_-]{${t}}$`);
28462
28463
  }
28463
- var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE__ */ to(22), uS = /^[0-9a-fA-F]{40}$/, lS = /* @__PURE__ */ Qs(27, "="), cS = /* @__PURE__ */ to(27), fS = /^[0-9a-fA-F]{64}$/, hS = /* @__PURE__ */ Qs(43, "="), dS = /* @__PURE__ */ to(43), pS = /^[0-9a-fA-F]{96}$/, mS = /* @__PURE__ */ Qs(64, ""), gS = /* @__PURE__ */ to(64), yS = /^[0-9a-fA-F]{128}$/, vS = /* @__PURE__ */ Qs(86, "=="), bS = /* @__PURE__ */ to(86), Te = /* @__PURE__ */ V("$ZodCheck", (t, e) => {
28464
+ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE__ */ to(22), uS = /^[0-9a-fA-F]{40}$/, lS = /* @__PURE__ */ Qs(27, "="), cS = /* @__PURE__ */ to(27), fS = /^[0-9a-fA-F]{64}$/, hS = /* @__PURE__ */ Qs(43, "="), dS = /* @__PURE__ */ to(43), pS = /^[0-9a-fA-F]{96}$/, mS = /* @__PURE__ */ Qs(64, ""), gS = /* @__PURE__ */ to(64), yS = /^[0-9a-fA-F]{128}$/, vS = /* @__PURE__ */ Qs(86, "=="), bS = /* @__PURE__ */ to(86), Pe = /* @__PURE__ */ V("$ZodCheck", (t, e) => {
28464
28465
  var r;
28465
28466
  t._zod ?? (t._zod = {}), t._zod.def = e, (r = t._zod).onattach ?? (r.onattach = []);
28466
28467
  }), Ny = {
@@ -28468,7 +28469,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28468
28469
  bigint: "bigint",
28469
28470
  object: "date"
28470
28471
  }, wf = /* @__PURE__ */ V("$ZodCheckLessThan", (t, e) => {
28471
- Te.init(t, e);
28472
+ Pe.init(t, e);
28472
28473
  const r = Ny[typeof e.value];
28473
28474
  t._zod.onattach.push((n) => {
28474
28475
  const i = n._zod.bag, a = (e.inclusive ? i.maximum : i.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
@@ -28485,7 +28486,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28485
28486
  });
28486
28487
  };
28487
28488
  }), _f = /* @__PURE__ */ V("$ZodCheckGreaterThan", (t, e) => {
28488
- Te.init(t, e);
28489
+ Pe.init(t, e);
28489
28490
  const r = Ny[typeof e.value];
28490
28491
  t._zod.onattach.push((n) => {
28491
28492
  const i = n._zod.bag, a = (e.inclusive ? i.minimum : i.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
@@ -28502,7 +28503,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28502
28503
  });
28503
28504
  };
28504
28505
  }), By = /* @__PURE__ */ V("$ZodCheckMultipleOf", (t, e) => {
28505
- Te.init(t, e), t._zod.onattach.push((r) => {
28506
+ Pe.init(t, e), t._zod.onattach.push((r) => {
28506
28507
  var n;
28507
28508
  (n = r._zod.bag).multipleOf ?? (n.multipleOf = e.value);
28508
28509
  }), t._zod.check = (r) => {
@@ -28518,7 +28519,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28518
28519
  });
28519
28520
  };
28520
28521
  }), Iy = /* @__PURE__ */ V("$ZodCheckNumberFormat", (t, e) => {
28521
- Te.init(t, e), e.format = e.format || "float64";
28522
+ Pe.init(t, e), e.format = e.format || "float64";
28522
28523
  const r = e.format?.includes("int"), n = r ? "int" : "number", [i, a] = L1[e.format];
28523
28524
  t._zod.onattach.push((s) => {
28524
28525
  const o = s._zod.bag;
@@ -28579,7 +28580,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28579
28580
  });
28580
28581
  };
28581
28582
  }), Ty = /* @__PURE__ */ V("$ZodCheckBigIntFormat", (t, e) => {
28582
- Te.init(t, e);
28583
+ Pe.init(t, e);
28583
28584
  const [r, n] = Z1[e.format];
28584
28585
  t._zod.onattach.push((i) => {
28585
28586
  const a = i._zod.bag;
@@ -28606,7 +28607,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28606
28607
  };
28607
28608
  }), Py = /* @__PURE__ */ V("$ZodCheckMaxSize", (t, e) => {
28608
28609
  var r;
28609
- Te.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28610
+ Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28610
28611
  const i = n.value;
28611
28612
  return !ea(i) && i.size !== void 0;
28612
28613
  }), t._zod.onattach.push((n) => {
@@ -28626,7 +28627,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28626
28627
  };
28627
28628
  }), My = /* @__PURE__ */ V("$ZodCheckMinSize", (t, e) => {
28628
28629
  var r;
28629
- Te.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28630
+ Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28630
28631
  const i = n.value;
28631
28632
  return !ea(i) && i.size !== void 0;
28632
28633
  }), t._zod.onattach.push((n) => {
@@ -28646,7 +28647,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28646
28647
  };
28647
28648
  }), zy = /* @__PURE__ */ V("$ZodCheckSizeEquals", (t, e) => {
28648
28649
  var r;
28649
- Te.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28650
+ Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28650
28651
  const i = n.value;
28651
28652
  return !ea(i) && i.size !== void 0;
28652
28653
  }), t._zod.onattach.push((n) => {
@@ -28669,7 +28670,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28669
28670
  };
28670
28671
  }), Vy = /* @__PURE__ */ V("$ZodCheckMaxLength", (t, e) => {
28671
28672
  var r;
28672
- Te.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28673
+ Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28673
28674
  const i = n.value;
28674
28675
  return !ea(i) && i.length !== void 0;
28675
28676
  }), t._zod.onattach.push((n) => {
@@ -28692,7 +28693,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28692
28693
  };
28693
28694
  }), Oy = /* @__PURE__ */ V("$ZodCheckMinLength", (t, e) => {
28694
28695
  var r;
28695
- Te.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28696
+ Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28696
28697
  const i = n.value;
28697
28698
  return !ea(i) && i.length !== void 0;
28698
28699
  }), t._zod.onattach.push((n) => {
@@ -28715,7 +28716,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28715
28716
  };
28716
28717
  }), Ry = /* @__PURE__ */ V("$ZodCheckLengthEquals", (t, e) => {
28717
28718
  var r;
28718
- Te.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28719
+ Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
28719
28720
  const i = n.value;
28720
28721
  return !ea(i) && i.length !== void 0;
28721
28722
  }), t._zod.onattach.push((n) => {
@@ -28738,7 +28739,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28738
28739
  };
28739
28740
  }), eo = /* @__PURE__ */ V("$ZodCheckStringFormat", (t, e) => {
28740
28741
  var r, n;
28741
- Te.init(t, e), t._zod.onattach.push((i) => {
28742
+ Pe.init(t, e), t._zod.onattach.push((i) => {
28742
28743
  const a = i._zod.bag;
28743
28744
  a.format = e.format, e.pattern && (a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(e.pattern));
28744
28745
  }), e.pattern ? (r = t._zod).check ?? (r.check = (i) => {
@@ -28770,7 +28771,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28770
28771
  }), Zy = /* @__PURE__ */ V("$ZodCheckUpperCase", (t, e) => {
28771
28772
  e.pattern ?? (e.pattern = Fy), eo.init(t, e);
28772
28773
  }), Uy = /* @__PURE__ */ V("$ZodCheckIncludes", (t, e) => {
28773
- Te.init(t, e);
28774
+ Pe.init(t, e);
28774
28775
  const r = Hi(e.includes), n = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
28775
28776
  e.pattern = n, t._zod.onattach.push((i) => {
28776
28777
  const a = i._zod.bag;
@@ -28787,7 +28788,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28787
28788
  });
28788
28789
  };
28789
28790
  }), jy = /* @__PURE__ */ V("$ZodCheckStartsWith", (t, e) => {
28790
- Te.init(t, e);
28791
+ Pe.init(t, e);
28791
28792
  const r = new RegExp(`^${Hi(e.prefix)}.*`);
28792
28793
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
28793
28794
  const i = n._zod.bag;
@@ -28804,7 +28805,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
28804
28805
  });
28805
28806
  };
28806
28807
  }), Gy = /* @__PURE__ */ V("$ZodCheckEndsWith", (t, e) => {
28807
- Te.init(t, e);
28808
+ Pe.init(t, e);
28808
28809
  const r = new RegExp(`.*${Hi(e.suffix)}$`);
28809
28810
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
28810
28811
  const i = n._zod.bag;
@@ -28825,7 +28826,7 @@ function dp(t, e, r) {
28825
28826
  t.issues.length && e.issues.push(...Jr(r, t.issues));
28826
28827
  }
28827
28828
  var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
28828
- Te.init(t, e), t._zod.check = (r) => {
28829
+ Pe.init(t, e), t._zod.check = (r) => {
28829
28830
  const n = e.schema._zod.run({
28830
28831
  value: r.value[e.property],
28831
28832
  issues: []
@@ -28835,7 +28836,7 @@ var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
28835
28836
  dp(n, r, e.property);
28836
28837
  };
28837
28838
  }), Yy = /* @__PURE__ */ V("$ZodCheckMimeType", (t, e) => {
28838
- Te.init(t, e);
28839
+ Pe.init(t, e);
28839
28840
  const r = new Set(e.mime);
28840
28841
  t._zod.onattach.push((n) => {
28841
28842
  n._zod.bag.mime = e.mime;
@@ -28849,7 +28850,7 @@ var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
28849
28850
  });
28850
28851
  };
28851
28852
  }), Hy = /* @__PURE__ */ V("$ZodCheckOverwrite", (t, e) => {
28852
- Te.init(t, e), t._zod.check = (r) => {
28853
+ Pe.init(t, e), t._zod.check = (r) => {
28853
28854
  r.value = e.tx(r.value);
28854
28855
  };
28855
28856
  }), qy = class {
@@ -28984,9 +28985,9 @@ var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
28984
28985
  }[e.version];
28985
28986
  if (n === void 0)
28986
28987
  throw new Error(`Invalid UUID version: "${e.version}"`);
28987
- e.pattern ?? (e.pattern = Ba(n));
28988
+ e.pattern ?? (e.pattern = Ia(n));
28988
28989
  } else
28989
- e.pattern ?? (e.pattern = Ba());
28990
+ e.pattern ?? (e.pattern = Ia());
28990
28991
  _e.init(t, e);
28991
28992
  }), Qy = /* @__PURE__ */ V("$ZodEmail", (t, e) => {
28992
28993
  e.pattern ?? (e.pattern = sy), _e.init(t, e);
@@ -29398,7 +29399,7 @@ var V4 = /* @__PURE__ */ V("$ZodObject", (t, e) => {
29398
29399
  }
29399
29400
  return u;
29400
29401
  });
29401
- const i = Na, a = e.catchall;
29402
+ const i = Ba, a = e.catchall;
29402
29403
  let s;
29403
29404
  t._zod.parse = (o, u) => {
29404
29405
  s ?? (s = n.value);
@@ -29499,7 +29500,7 @@ var V4 = /* @__PURE__ */ V("$ZodObject", (t, e) => {
29499
29500
  return (A, _) => B(m, A, _);
29500
29501
  };
29501
29502
  let a;
29502
- const s = Na, o = !Ts.jitless, l = o && V1.value, c = e.catchall;
29503
+ const s = Ba, o = !Ps.jitless, l = o && V1.value, c = e.catchall;
29503
29504
  let h;
29504
29505
  t._zod.parse = (m, d) => {
29505
29506
  h ?? (h = n.value);
@@ -29621,7 +29622,7 @@ var R4 = /* @__PURE__ */ V("$ZodXor", (t, e) => {
29621
29622
  });
29622
29623
  t._zod.parse = (i, a) => {
29623
29624
  const s = i.value;
29624
- if (!Na(s))
29625
+ if (!Ba(s))
29625
29626
  return i.issues.push({
29626
29627
  code: "invalid_type",
29627
29628
  expected: "object",
@@ -30180,7 +30181,7 @@ var av = /* @__PURE__ */ V("$ZodTemplateLiteral", (t, e) => {
30180
30181
  return r._cachedInner || (r._cachedInner = e.getter()), r._cachedInner;
30181
30182
  }), te(t._zod, "pattern", () => t._zod.innerType?._zod?.pattern), te(t._zod, "propValues", () => t._zod.innerType?._zod?.propValues), te(t._zod, "optin", () => t._zod.innerType?._zod?.optin ?? void 0), te(t._zod, "optout", () => t._zod.innerType?._zod?.optout ?? void 0), t._zod.parse = (r, n) => t._zod.innerType._zod.run(r, n);
30182
30183
  }), lv = /* @__PURE__ */ V("$ZodCustom", (t, e) => {
30183
- Te.init(t, e), Ut.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
30184
+ Pe.init(t, e), Ut.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
30184
30185
  const n = r.value, i = e.fn(n);
30185
30186
  if (i instanceof Promise)
30186
30187
  return i.then((a) => Sp(a, r, n, t));
@@ -32737,7 +32738,7 @@ function v8() {
32737
32738
  localeError: y8()
32738
32739
  };
32739
32740
  }
32740
- var as = (t) => t.charAt(0).toUpperCase() + t.slice(1);
32741
+ var ss = (t) => t.charAt(0).toUpperCase() + t.slice(1);
32741
32742
  function Np(t) {
32742
32743
  const e = Math.abs(t), r = e % 10, n = e % 100;
32743
32744
  return n >= 11 && n <= 19 || r === 0 ? "many" : r === 1 ? "one" : "few";
@@ -32873,16 +32874,16 @@ var b8 = () => {
32873
32874
  case "too_big": {
32874
32875
  const a = n[i.origin] ?? i.origin, s = e(i.origin, Np(Number(i.maximum)), i.inclusive ?? !1, "smaller");
32875
32876
  if (s?.verb)
32876
- return `${as(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.maximum.toString()} ${s.unit ?? "elementų"}`;
32877
+ return `${ss(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.maximum.toString()} ${s.unit ?? "elementų"}`;
32877
32878
  const o = i.inclusive ? "ne didesnis kaip" : "mažesnis kaip";
32878
- return `${as(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.maximum.toString()} ${s?.unit}`;
32879
+ return `${ss(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.maximum.toString()} ${s?.unit}`;
32879
32880
  }
32880
32881
  case "too_small": {
32881
32882
  const a = n[i.origin] ?? i.origin, s = e(i.origin, Np(Number(i.minimum)), i.inclusive ?? !1, "bigger");
32882
32883
  if (s?.verb)
32883
- return `${as(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.minimum.toString()} ${s.unit ?? "elementų"}`;
32884
+ return `${ss(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.minimum.toString()} ${s.unit ?? "elementų"}`;
32884
32885
  const o = i.inclusive ? "ne mažesnis kaip" : "didesnis kaip";
32885
- return `${as(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.minimum.toString()} ${s?.unit}`;
32886
+ return `${ss(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.minimum.toString()} ${s?.unit}`;
32886
32887
  }
32887
32888
  case "invalid_format": {
32888
32889
  const a = i;
@@ -32898,7 +32899,7 @@ var b8 = () => {
32898
32899
  return "Klaidinga įvestis";
32899
32900
  case "invalid_element": {
32900
32901
  const a = n[i.origin] ?? i.origin;
32901
- return `${as(a ?? i.origin ?? "reikšmė")} turi klaidingą įvestį`;
32902
+ return `${ss(a ?? i.origin ?? "reikšmė")} turi klaidingą įvestį`;
32902
32903
  }
32903
32904
  default:
32904
32905
  return "Klaidinga įvestis";
@@ -35383,7 +35384,7 @@ function eh(t) {
35383
35384
  return /* @__PURE__ */ Dr(0, t);
35384
35385
  }
35385
35386
  // @__NO_SIDE_EFFECTS__
35386
- function Ia(t, e) {
35387
+ function Ta(t, e) {
35387
35388
  return new By({
35388
35389
  check: "multiple_of",
35389
35390
  ...at(e),
@@ -35391,7 +35392,7 @@ function Ia(t, e) {
35391
35392
  });
35392
35393
  }
35393
35394
  // @__NO_SIDE_EFFECTS__
35394
- function Ua(t, e) {
35395
+ function ja(t, e) {
35395
35396
  return new Py({
35396
35397
  check: "max_size",
35397
35398
  ...at(e),
@@ -35770,7 +35771,7 @@ function Kv(t, e) {
35770
35771
  }
35771
35772
  // @__NO_SIDE_EFFECTS__
35772
35773
  function Jv(t, e) {
35773
- const r = new Te({
35774
+ const r = new Pe({
35774
35775
  check: "custom",
35775
35776
  ...at(e)
35776
35777
  });
@@ -35778,7 +35779,7 @@ function Jv(t, e) {
35778
35779
  }
35779
35780
  // @__NO_SIDE_EFFECTS__
35780
35781
  function Qv(t) {
35781
- const e = new Te({ check: "describe" });
35782
+ const e = new Pe({ check: "describe" });
35782
35783
  return e._zod.onattach = [
35783
35784
  (r) => {
35784
35785
  const n = Qr.get(r) ?? {};
@@ -35789,7 +35790,7 @@ function Qv(t) {
35789
35790
  }
35790
35791
  // @__NO_SIDE_EFFECTS__
35791
35792
  function tb(t) {
35792
- const e = new Te({ check: "meta" });
35793
+ const e = new Pe({ check: "meta" });
35793
35794
  return e._zod.onattach = [
35794
35795
  (r) => {
35795
35796
  const n = Qr.get(r) ?? {};
@@ -35835,7 +35836,7 @@ function so(t, e, r, n = {}) {
35835
35836
  };
35836
35837
  return r instanceof RegExp && (a.pattern = r), new t(a);
35837
35838
  }
35838
- function Ta(t) {
35839
+ function Pa(t) {
35839
35840
  let e = t?.target ?? "draft-2020-12";
35840
35841
  return e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), {
35841
35842
  processors: t.processors ?? {},
@@ -35882,7 +35883,7 @@ function be(t, e, r = { path: [], schemaPath: [] }) {
35882
35883
  const u = e.metadataRegistry.get(t);
35883
35884
  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;
35884
35885
  }
35885
- function Pa(t, e) {
35886
+ function Ma(t, e) {
35886
35887
  const r = t.seen.get(e);
35887
35888
  if (!r)
35888
35889
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -35954,7 +35955,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35954
35955
  }
35955
35956
  }
35956
35957
  }
35957
- function Ma(t, e) {
35958
+ function za(t, e) {
35958
35959
  const r = t.seen.get(e);
35959
35960
  if (!r)
35960
35961
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -36011,8 +36012,8 @@ function Ma(t, e) {
36011
36012
  value: {
36012
36013
  ...e["~standard"],
36013
36014
  jsonSchema: {
36014
- input: Ps(e, "input", t.processors),
36015
- output: Ps(e, "output", t.processors)
36015
+ input: Ms(e, "input", t.processors),
36016
+ output: Ms(e, "output", t.processors)
36016
36017
  }
36017
36018
  },
36018
36019
  enumerable: !1,
@@ -36065,11 +36066,11 @@ function vr(t, e) {
36065
36066
  return !1;
36066
36067
  }
36067
36068
  var rb = (t, e = {}) => (r) => {
36068
- const n = Ta({ ...r, processors: e });
36069
- return be(t, n), Pa(n, t), Ma(n, t);
36070
- }, Ps = (t, e, r = {}) => (n) => {
36071
- const { libraryOptions: i, target: a } = n ?? {}, s = Ta({ ...i ?? {}, target: a, io: e, processors: r });
36072
- return be(t, s), Pa(s, t), Ma(s, t);
36069
+ const n = Pa({ ...r, processors: e });
36070
+ return be(t, n), Ma(n, t), za(n, t);
36071
+ }, Ms = (t, e, r = {}) => (n) => {
36072
+ const { libraryOptions: i, target: a } = n ?? {}, s = Pa({ ...i ?? {}, target: a, io: e, processors: r });
36073
+ return be(t, s), Ma(s, t), za(s, t);
36073
36074
  }, PD = {
36074
36075
  guid: "uuid",
36075
36076
  url: "uri",
@@ -36349,7 +36350,7 @@ var rb = (t, e = {}) => (r) => {
36349
36350
  };
36350
36351
  function $b(t, e) {
36351
36352
  if ("_idmap" in t) {
36352
- const n = t, i = Ta({ ...e, processors: v0 }), a = {};
36353
+ const n = t, i = Pa({ ...e, processors: v0 }), a = {};
36353
36354
  for (const u of n._idmap.entries()) {
36354
36355
  const [l, c] = u;
36355
36356
  be(c, i);
@@ -36362,7 +36363,7 @@ function $b(t, e) {
36362
36363
  i.external = o;
36363
36364
  for (const u of n._idmap.entries()) {
36364
36365
  const [l, c] = u;
36365
- Pa(i, c), s[l] = Ma(i, c);
36366
+ Ma(i, c), s[l] = za(i, c);
36366
36367
  }
36367
36368
  if (Object.keys(a).length > 0) {
36368
36369
  const u = i.target === "draft-2020-12" ? "$defs" : "definitions";
@@ -36372,8 +36373,8 @@ function $b(t, e) {
36372
36373
  }
36373
36374
  return { schemas: s };
36374
36375
  }
36375
- const r = Ta({ ...e, processors: v0 });
36376
- return be(t, r), Pa(r, t), Ma(r, t);
36376
+ const r = Pa({ ...e, processors: v0 });
36377
+ return be(t, r), Ma(r, t), za(r, t);
36377
36378
  }
36378
36379
  var MD = class {
36379
36380
  /** @deprecated Access via ctx instead */
@@ -36409,7 +36410,7 @@ var MD = class {
36409
36410
  }
36410
36411
  constructor(t) {
36411
36412
  let e = t?.target ?? "draft-2020-12";
36412
- e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), this.ctx = Ta({
36413
+ e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), this.ctx = Pa({
36413
36414
  processors: v0,
36414
36415
  target: e,
36415
36416
  ...t?.metadata && { metadata: t.metadata },
@@ -36430,8 +36431,8 @@ var MD = class {
36430
36431
  * Must call process() first.
36431
36432
  */
36432
36433
  emit(t, e) {
36433
- e && (e.cycles && (this.ctx.cycles = e.cycles), e.reused && (this.ctx.reused = e.reused), e.external && (this.ctx.external = e.external)), Pa(this.ctx, t);
36434
- const r = Ma(this.ctx, t), { "~standard": n, ...i } = r;
36434
+ e && (e.cycles && (this.ctx.cycles = e.cycles), e.reused && (this.ctx.reused = e.reused), e.external && (this.ctx.external = e.external)), Ma(this.ctx, t);
36435
+ const r = za(this.ctx, t), { "~standard": n, ...i } = r;
36435
36436
  return i;
36436
36437
  }
36437
36438
  }, zD = {}, Lb = {};
@@ -36450,18 +36451,18 @@ Xi(Lb, {
36450
36451
  ZodCatch: () => Uh,
36451
36452
  ZodCodec: () => vo,
36452
36453
  ZodCustom: () => bo,
36453
- ZodCustomStringFormat: () => ja,
36454
+ ZodCustomStringFormat: () => Ga,
36454
36455
  ZodDate: () => jl,
36455
36456
  ZodDefault: () => Vh,
36456
36457
  ZodDiscriminatedUnion: () => Ch,
36457
36458
  ZodE164: () => $l,
36458
36459
  ZodEmail: () => kl,
36459
36460
  ZodEmoji: () => Sl,
36460
- ZodEnum: () => Va,
36461
+ ZodEnum: () => Oa,
36461
36462
  ZodExactOptional: () => Ph,
36462
36463
  ZodFile: () => Ih,
36463
36464
  ZodFunction: () => Qh,
36464
- ZodGUID: () => zs,
36465
+ ZodGUID: () => Vs,
36465
36466
  ZodIPv4: () => Pl,
36466
36467
  ZodIPv6: () => Ml,
36467
36468
  ZodIntersection: () => Ah,
@@ -36486,7 +36487,7 @@ Xi(Lb, {
36486
36487
  ZodPreprocess: () => Wh,
36487
36488
  ZodPromise: () => Jh,
36488
36489
  ZodReadonly: () => Yh,
36489
- ZodRecord: () => za,
36490
+ ZodRecord: () => Va,
36490
36491
  ZodSet: () => Nh,
36491
36492
  ZodString: () => uo,
36492
36493
  ZodStringFormat: () => xe,
@@ -36564,11 +36565,11 @@ Xi(Lb, {
36564
36565
  never: () => Ul,
36565
36566
  nonoptional: () => Lh,
36566
36567
  null: () => gh,
36567
- nullable: () => Os,
36568
+ nullable: () => Rs,
36568
36569
  nullish: () => aw,
36569
36570
  number: () => fh,
36570
36571
  object: () => Y3,
36571
- optional: () => Vs,
36572
+ optional: () => Os,
36572
36573
  partialRecord: () => J3,
36573
36574
  pipe: () => Eu,
36574
36575
  prefault: () => $h,
@@ -36579,7 +36580,7 @@ Xi(Lb, {
36579
36580
  refine: () => td,
36580
36581
  set: () => ew,
36581
36582
  strictObject: () => H3,
36582
- string: () => Ms,
36583
+ string: () => zs,
36583
36584
  stringFormat: () => N3,
36584
36585
  stringbool: () => yw,
36585
36586
  success: () => sw,
@@ -36614,11 +36615,11 @@ Xi(Zb, {
36614
36615
  lt: () => wn,
36615
36616
  lte: () => ti,
36616
36617
  maxLength: () => no,
36617
- maxSize: () => Ua,
36618
+ maxSize: () => ja,
36618
36619
  mime: () => bl,
36619
36620
  minLength: () => Jn,
36620
36621
  minSize: () => xn,
36621
- multipleOf: () => Ia,
36622
+ multipleOf: () => Ta,
36622
36623
  negative: () => Qf,
36623
36624
  nonnegative: () => eh,
36624
36625
  nonpositive: () => th,
@@ -36735,8 +36736,8 @@ function oo(t, e, r) {
36735
36736
  }
36736
36737
  var Gt = /* @__PURE__ */ V("ZodType", (t, e) => (Ut.init(t, e), Object.assign(t["~standard"], {
36737
36738
  jsonSchema: {
36738
- input: Ps(t, "input"),
36739
- output: Ps(t, "output")
36739
+ input: Ms(t, "input"),
36740
+ output: Ms(t, "output")
36740
36741
  }
36741
36742
  }), t.toJSONSchema = rb(t, {}), t.def = e, t.type = e.type, Object.defineProperty(t, "_def", { value: e }), t.parse = (r, n) => Hb(t, r, n, { callee: t.parse }), t.safeParse = (r, n) => Xb(t, r, n), t.parseAsync = async (r, n) => qb(t, r, n, { callee: t.parseAsync }), t.safeParseAsync = async (r, n) => Kb(t, r, n), t.spa = t.safeParseAsync, t.encode = (r, n) => Jb(t, r, n), t.decode = (r, n) => Qb(t, r, n), t.encodeAsync = async (r, n) => t3(t, r, n), t.decodeAsync = async (r, n) => e3(t, r, n), t.safeEncode = (r, n) => r3(t, r, n), t.safeDecode = (r, n) => i3(t, r, n), t.safeEncodeAsync = async (r, n) => n3(t, r, n), t.safeDecodeAsync = async (r, n) => a3(t, r, n), oo(t, "ZodType", {
36742
36743
  check(...r) {
@@ -36770,16 +36771,16 @@ var Gt = /* @__PURE__ */ V("ZodType", (t, e) => (Ut.init(t, e), Object.assign(t[
36770
36771
  return this.check(/* @__PURE__ */ Ji(r));
36771
36772
  },
36772
36773
  optional() {
36773
- return Vs(this);
36774
+ return Os(this);
36774
36775
  },
36775
36776
  exactOptional() {
36776
36777
  return Mh(this);
36777
36778
  },
36778
36779
  nullable() {
36779
- return Os(this);
36780
+ return Rs(this);
36780
36781
  },
36781
36782
  nullish() {
36782
- return Vs(Os(this));
36783
+ return Os(Rs(this));
36783
36784
  },
36784
36785
  nonoptional(r) {
36785
36786
  return Lh(this, r);
@@ -36886,9 +36887,9 @@ var Gt = /* @__PURE__ */ V("ZodType", (t, e) => (Ut.init(t, e), Object.assign(t[
36886
36887
  }
36887
36888
  });
36888
36889
  }), uo = /* @__PURE__ */ V("ZodString", (t, e) => {
36889
- ro.init(t, e), El.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ If(kl, r)), t.url = (r) => t.check(/* @__PURE__ */ hl(lo, r)), t.jwt = (r) => t.check(/* @__PURE__ */ Kf(Ll, r)), t.emoji = (r) => t.check(/* @__PURE__ */ Vf(Sl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(zs, r)), t.uuid = (r) => t.check(/* @__PURE__ */ Tf(Ei, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ Pf(Ei, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ Mf(Ei, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ zf(Ei, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ Of(Dl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(zs, r)), t.cuid = (r) => t.check(/* @__PURE__ */ Rf(Fl, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ $f(Nl, r)), t.ulid = (r) => t.check(/* @__PURE__ */ Lf(Bl, r)), t.base64 = (r) => t.check(/* @__PURE__ */ Hf(Ol, r)), t.base64url = (r) => t.check(/* @__PURE__ */ qf(Rl, r)), t.xid = (r) => t.check(/* @__PURE__ */ Zf(Il, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ Uf(Tl, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ jf(Pl, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ Gf(Ml, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ Wf(zl, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ Yf(Vl, r)), t.e164 = (r) => t.check(/* @__PURE__ */ Xf($l, r)), t.datetime = (r) => t.check(Ub(r)), t.date = (r) => t.check(jb(r)), t.time = (r) => t.check(Gb(r)), t.duration = (r) => t.check(Wb(r));
36890
+ ro.init(t, e), El.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ If(kl, r)), t.url = (r) => t.check(/* @__PURE__ */ hl(lo, r)), t.jwt = (r) => t.check(/* @__PURE__ */ Kf(Ll, r)), t.emoji = (r) => t.check(/* @__PURE__ */ Vf(Sl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(Vs, r)), t.uuid = (r) => t.check(/* @__PURE__ */ Tf(Ei, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ Pf(Ei, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ Mf(Ei, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ zf(Ei, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ Of(Dl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(Vs, r)), t.cuid = (r) => t.check(/* @__PURE__ */ Rf(Fl, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ $f(Nl, r)), t.ulid = (r) => t.check(/* @__PURE__ */ Lf(Bl, r)), t.base64 = (r) => t.check(/* @__PURE__ */ Hf(Ol, r)), t.base64url = (r) => t.check(/* @__PURE__ */ qf(Rl, r)), t.xid = (r) => t.check(/* @__PURE__ */ Zf(Il, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ Uf(Tl, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ jf(Pl, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ Gf(Ml, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ Wf(zl, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ Yf(Vl, r)), t.e164 = (r) => t.check(/* @__PURE__ */ Xf($l, r)), t.datetime = (r) => t.check(Ub(r)), t.date = (r) => t.check(jb(r)), t.time = (r) => t.check(Gb(r)), t.duration = (r) => t.check(Wb(r));
36890
36891
  });
36891
- function Ms(t) {
36892
+ function zs(t) {
36892
36893
  return /* @__PURE__ */ gv(uo, t);
36893
36894
  }
36894
36895
  var xe = /* @__PURE__ */ V("ZodStringFormat", (t, e) => {
@@ -36899,11 +36900,11 @@ var xe = /* @__PURE__ */ V("ZodStringFormat", (t, e) => {
36899
36900
  function s3(t) {
36900
36901
  return /* @__PURE__ */ If(kl, t);
36901
36902
  }
36902
- var zs = /* @__PURE__ */ V("ZodGUID", (t, e) => {
36903
+ var Vs = /* @__PURE__ */ V("ZodGUID", (t, e) => {
36903
36904
  Ky.init(t, e), xe.init(t, e);
36904
36905
  });
36905
36906
  function o3(t) {
36906
- return /* @__PURE__ */ Cu(zs, t);
36907
+ return /* @__PURE__ */ Cu(Vs, t);
36907
36908
  }
36908
36909
  var Ei = /* @__PURE__ */ V("ZodUUID", (t, e) => {
36909
36910
  Jy.init(t, e), xe.init(t, e);
@@ -37029,23 +37030,23 @@ var Ll = /* @__PURE__ */ V("ZodJWT", (t, e) => {
37029
37030
  function F3(t) {
37030
37031
  return /* @__PURE__ */ Kf(Ll, t);
37031
37032
  }
37032
- var ja = /* @__PURE__ */ V("ZodCustomStringFormat", (t, e) => {
37033
+ var Ga = /* @__PURE__ */ V("ZodCustomStringFormat", (t, e) => {
37033
37034
  C4.init(t, e), xe.init(t, e);
37034
37035
  });
37035
37036
  function N3(t, e, r = {}) {
37036
- return /* @__PURE__ */ so(ja, t, e, r);
37037
+ return /* @__PURE__ */ so(Ga, t, e, r);
37037
37038
  }
37038
37039
  function B3(t) {
37039
- return /* @__PURE__ */ so(ja, "hostname", bn.hostname, t);
37040
+ return /* @__PURE__ */ so(Ga, "hostname", bn.hostname, t);
37040
37041
  }
37041
37042
  function I3(t) {
37042
- return /* @__PURE__ */ so(ja, "hex", bn.hex, t);
37043
+ return /* @__PURE__ */ so(Ga, "hex", bn.hex, t);
37043
37044
  }
37044
37045
  function T3(t, e) {
37045
37046
  const r = e?.enc ?? "hex", n = `${t}_${r}`, i = bn[n];
37046
37047
  if (!i)
37047
37048
  throw new Error(`Unrecognized hash format: ${n}`);
37048
- return /* @__PURE__ */ so(ja, n, i, e);
37049
+ return /* @__PURE__ */ so(Ga, n, i, e);
37049
37050
  }
37050
37051
  var co = /* @__PURE__ */ V("ZodNumber", (t, e) => {
37051
37052
  Cf.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => nb(t, n, i), oo(t, "ZodNumber", {
@@ -37086,10 +37087,10 @@ var co = /* @__PURE__ */ V("ZodNumber", (t, e) => {
37086
37087
  return this.check(/* @__PURE__ */ ti(0, n));
37087
37088
  },
37088
37089
  multipleOf(n, i) {
37089
- return this.check(/* @__PURE__ */ Ia(n, i));
37090
+ return this.check(/* @__PURE__ */ Ta(n, i));
37090
37091
  },
37091
37092
  step(n, i) {
37092
- return this.check(/* @__PURE__ */ Ia(n, i));
37093
+ return this.check(/* @__PURE__ */ Ta(n, i));
37093
37094
  },
37094
37095
  finite() {
37095
37096
  return this;
@@ -37126,7 +37127,7 @@ function hh(t) {
37126
37127
  return /* @__PURE__ */ Bv(fo, t);
37127
37128
  }
37128
37129
  var ho = /* @__PURE__ */ V("ZodBigInt", (t, e) => {
37129
- Ef.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => sb(t, n), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.gt = (n, i) => t.check(/* @__PURE__ */ _n(n, i)), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.lt = (n, i) => t.check(/* @__PURE__ */ wn(n, i)), t.lte = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.max = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.positive = (n) => t.check(/* @__PURE__ */ _n(BigInt(0), n)), t.negative = (n) => t.check(/* @__PURE__ */ wn(BigInt(0), n)), t.nonpositive = (n) => t.check(/* @__PURE__ */ ti(BigInt(0), n)), t.nonnegative = (n) => t.check(/* @__PURE__ */ Dr(BigInt(0), n)), t.multipleOf = (n, i) => t.check(/* @__PURE__ */ Ia(n, i));
37130
+ Ef.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => sb(t, n), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.gt = (n, i) => t.check(/* @__PURE__ */ _n(n, i)), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.lt = (n, i) => t.check(/* @__PURE__ */ wn(n, i)), t.lte = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.max = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.positive = (n) => t.check(/* @__PURE__ */ _n(BigInt(0), n)), t.negative = (n) => t.check(/* @__PURE__ */ wn(BigInt(0), n)), t.nonpositive = (n) => t.check(/* @__PURE__ */ ti(BigInt(0), n)), t.nonnegative = (n) => t.check(/* @__PURE__ */ Dr(BigInt(0), n)), t.multipleOf = (n, i) => t.check(/* @__PURE__ */ Ta(n, i));
37130
37131
  const r = t._zod.bag;
37131
37132
  t.minValue = r.minimum ?? null, t.maxValue = r.maximum ?? null, t.format = r.format ?? null;
37132
37133
  });
@@ -37342,16 +37343,16 @@ function Sh(t, e, r) {
37342
37343
  ...Qt.normalizeParams(i)
37343
37344
  });
37344
37345
  }
37345
- var za = /* @__PURE__ */ V("ZodRecord", (t, e) => {
37346
+ var Va = /* @__PURE__ */ V("ZodRecord", (t, e) => {
37346
37347
  Z4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Nb(t, r, n, i), t.keyType = e.keyType, t.valueType = e.valueType;
37347
37348
  });
37348
37349
  function Dh(t, e, r) {
37349
- return !e || !e._zod ? new za({
37350
+ return !e || !e._zod ? new Va({
37350
37351
  type: "record",
37351
- keyType: Ms(),
37352
+ keyType: zs(),
37352
37353
  valueType: t,
37353
37354
  ...Qt.normalizeParams(e)
37354
- }) : new za({
37355
+ }) : new Va({
37355
37356
  type: "record",
37356
37357
  keyType: t,
37357
37358
  valueType: e,
@@ -37360,7 +37361,7 @@ function Dh(t, e, r) {
37360
37361
  }
37361
37362
  function J3(t, e, r) {
37362
37363
  const n = ii(t);
37363
- return n._zod.values = void 0, new za({
37364
+ return n._zod.values = void 0, new Va({
37364
37365
  type: "record",
37365
37366
  keyType: n,
37366
37367
  valueType: e,
@@ -37368,7 +37369,7 @@ function J3(t, e, r) {
37368
37369
  });
37369
37370
  }
37370
37371
  function Q3(t, e, r) {
37371
- return new za({
37372
+ return new Va({
37372
37373
  type: "record",
37373
37374
  keyType: t,
37374
37375
  valueType: e,
@@ -37377,7 +37378,7 @@ function Q3(t, e, r) {
37377
37378
  });
37378
37379
  }
37379
37380
  var Fh = /* @__PURE__ */ V("ZodMap", (t, e) => {
37380
- U4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Ab(t, r), t.keyType = e.keyType, t.valueType = e.valueType, t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ Ua(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37381
+ U4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Ab(t, r), t.keyType = e.keyType, t.valueType = e.valueType, t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ ja(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37381
37382
  });
37382
37383
  function tw(t, e, r) {
37383
37384
  return new Fh({
@@ -37388,7 +37389,7 @@ function tw(t, e, r) {
37388
37389
  });
37389
37390
  }
37390
37391
  var Nh = /* @__PURE__ */ V("ZodSet", (t, e) => {
37391
- j4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Eb(t, r), t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ Ua(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37392
+ j4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Eb(t, r), t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ ja(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37392
37393
  });
37393
37394
  function ew(t, e) {
37394
37395
  return new Nh({
@@ -37397,7 +37398,7 @@ function ew(t, e) {
37397
37398
  ...Qt.normalizeParams(e)
37398
37399
  });
37399
37400
  }
37400
- var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37401
+ var Oa = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37401
37402
  G4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => mb(t, n, i), t.enum = e.entries, t.options = Object.values(e.entries);
37402
37403
  const r = new Set(Object.keys(e.entries));
37403
37404
  t.extract = (n, i) => {
@@ -37407,7 +37408,7 @@ var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37407
37408
  a[s] = e.entries[s];
37408
37409
  else
37409
37410
  throw new Error(`Key ${s} not found in enum`);
37410
- return new Va({
37411
+ return new Oa({
37411
37412
  ...e,
37412
37413
  checks: [],
37413
37414
  ...Qt.normalizeParams(i),
@@ -37420,7 +37421,7 @@ var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37420
37421
  delete a[s];
37421
37422
  else
37422
37423
  throw new Error(`Key ${s} not found in enum`);
37423
- return new Va({
37424
+ return new Oa({
37424
37425
  ...e,
37425
37426
  checks: [],
37426
37427
  ...Qt.normalizeParams(i),
@@ -37430,14 +37431,14 @@ var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37430
37431
  });
37431
37432
  function Wl(t, e) {
37432
37433
  const r = Array.isArray(t) ? Object.fromEntries(t.map((n) => [n, n])) : t;
37433
- return new Va({
37434
+ return new Oa({
37434
37435
  type: "enum",
37435
37436
  entries: r,
37436
37437
  ...Qt.normalizeParams(e)
37437
37438
  });
37438
37439
  }
37439
37440
  function rw(t, e) {
37440
- return new Va({
37441
+ return new Oa({
37441
37442
  type: "enum",
37442
37443
  entries: t,
37443
37444
  ...Qt.normalizeParams(e)
@@ -37460,7 +37461,7 @@ function iw(t, e) {
37460
37461
  });
37461
37462
  }
37462
37463
  var Ih = /* @__PURE__ */ V("ZodFile", (t, e) => {
37463
- Y4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => bb(t, r, n), t.min = (r, n) => t.check(/* @__PURE__ */ xn(r, n)), t.max = (r, n) => t.check(/* @__PURE__ */ Ua(r, n)), t.mime = (r, n) => t.check(/* @__PURE__ */ bl(Array.isArray(r) ? r : [r], n));
37464
+ Y4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => bb(t, r, n), t.min = (r, n) => t.check(/* @__PURE__ */ xn(r, n)), t.max = (r, n) => t.check(/* @__PURE__ */ ja(r, n)), t.mime = (r, n) => t.check(/* @__PURE__ */ bl(Array.isArray(r) ? r : [r], n));
37464
37465
  });
37465
37466
  function nw(t) {
37466
37467
  return /* @__PURE__ */ Hv(Ih, t);
@@ -37490,7 +37491,7 @@ function Yl(t) {
37490
37491
  var Hl = /* @__PURE__ */ V("ZodOptional", (t, e) => {
37491
37492
  Sf.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => nh(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
37492
37493
  });
37493
- function Vs(t) {
37494
+ function Os(t) {
37494
37495
  return new Hl({
37495
37496
  type: "optional",
37496
37497
  innerType: t
@@ -37508,14 +37509,14 @@ function Mh(t) {
37508
37509
  var zh = /* @__PURE__ */ V("ZodNullable", (t, e) => {
37509
37510
  X4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Bb(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
37510
37511
  });
37511
- function Os(t) {
37512
+ function Rs(t) {
37512
37513
  return new zh({
37513
37514
  type: "nullable",
37514
37515
  innerType: t
37515
37516
  });
37516
37517
  }
37517
37518
  function aw(t) {
37518
- return Vs(Os(t));
37519
+ return Os(Rs(t));
37519
37520
  }
37520
37521
  var Vh = /* @__PURE__ */ V("ZodDefault", (t, e) => {
37521
37522
  K4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Tb(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeDefault = t.unwrap;
@@ -37662,7 +37663,7 @@ var bo = /* @__PURE__ */ V("ZodCustom", (t, e) => {
37662
37663
  lv.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => _b(t, r);
37663
37664
  });
37664
37665
  function hw(t) {
37665
- const e = new Te({
37666
+ const e = new Pe({
37666
37667
  check: "custom"
37667
37668
  // ...util.normalizeParams(params),
37668
37669
  });
@@ -37702,7 +37703,7 @@ var yw = (...t) => /* @__PURE__ */ eb({
37702
37703
  String: uo
37703
37704
  }, ...t);
37704
37705
  function vw(t) {
37705
- const e = Kh(() => Gl([Ms(t), fh(), hh(), gh(), po(e), Dh(Ms(), e)]));
37706
+ const e = Kh(() => Gl([zs(t), fh(), hh(), gh(), po(e), Dh(zs(), e)]));
37706
37707
  return e;
37707
37708
  }
37708
37709
  function bw(t, e) {
@@ -39503,12 +39504,12 @@ function Jl(t) {
39503
39504
  }
39504
39505
  var _o = {};
39505
39506
  wo(_o, "logErrors", () => oN);
39506
- wo(_o, "registerFormat", () => Ga);
39507
+ wo(_o, "registerFormat", () => Wa);
39507
39508
  wo(_o, "create", () => Vw);
39508
39509
  wo(_o, "defaultLanguage", () => Nu);
39509
39510
  wo(_o, "setDefaultLanguage", () => uN);
39510
39511
  var oN = !1, _0 = [];
39511
- function Ga(t) {
39512
+ function Wa(t) {
39512
39513
  _0.push(t);
39513
39514
  }
39514
39515
  function Vw(t, e) {
@@ -40489,7 +40490,7 @@ var PN = ld, MN = new $({
40489
40490
  constructor(t) {
40490
40491
  this.type = t;
40491
40492
  }
40492
- }, ss = 15, jp = [
40493
+ }, os = 15, jp = [
40493
40494
  "0",
40494
40495
  "1",
40495
40496
  "2",
@@ -40521,10 +40522,10 @@ var PN = ld, MN = new $({
40521
40522
  let r = "";
40522
40523
  for (; ; ) {
40523
40524
  let n = t.readUInt8(), i = n >> 4;
40524
- if (i === ss) break;
40525
+ if (i === os) break;
40525
40526
  r += jp[i];
40526
40527
  let a = n & 15;
40527
- if (a === ss) break;
40528
+ if (a === os) break;
40528
40529
  r += jp[a];
40529
40530
  }
40530
40531
  return parseFloat(r);
@@ -40546,14 +40547,14 @@ var PN = ld, MN = new $({
40546
40547
  let i = "" + r;
40547
40548
  for (let a = 0; a < i.length; a += 2) {
40548
40549
  let s = i[a], o = Gp[s] || +s;
40549
- if (a === i.length - 1) var n = ss;
40550
+ if (a === i.length - 1) var n = os;
40550
40551
  else {
40551
40552
  let u = i[a + 1];
40552
40553
  var n = Gp[u] || +u;
40553
40554
  }
40554
40555
  t.writeUInt8(o << 4 | n & 15);
40555
40556
  }
40556
- if (n !== ss) return t.writeUInt8(ss << 4);
40557
+ if (n !== os) return t.writeUInt8(os << 4);
40557
40558
  } else return -107 <= r && r <= 107 ? t.writeUInt8(r + 139) : 108 <= r && r <= 1131 ? (r -= 108, t.writeUInt8((r >> 8) + 247), t.writeUInt8(r & 255)) : -1131 <= r && r <= -108 ? (r = -r - 108, t.writeUInt8((r >> 8) + 251), t.writeUInt8(r & 255)) : -32768 <= r && r <= 32767 ? (t.writeUInt8(28), t.writeInt16BE(r)) : (t.writeUInt8(29), t.writeInt32BE(r));
40558
40559
  }
40559
40560
  }, Ql = class {
@@ -42377,10 +42378,10 @@ var YN = new $({
42377
42378
  lookupCount: g,
42378
42379
  lookupRecords: new P(xo, "lookupCount")
42379
42380
  }
42380
- }), xs = new ia(16, "BE", 14), tB = new $({
42381
- startCoord: xs,
42382
- peakCoord: xs,
42383
- endCoord: xs
42381
+ }), Cs = new ia(16, "BE", 14), tB = new $({
42382
+ startCoord: Cs,
42383
+ peakCoord: Cs,
42384
+ endCoord: Cs
42384
42385
  }), eB = new $({
42385
42386
  axisCount: g,
42386
42387
  regionCount: g,
@@ -42404,8 +42405,8 @@ var YN = new $({
42404
42405
  1: {
42405
42406
  axisIndex: g,
42406
42407
  axisIndex: g,
42407
- filterRangeMinValue: xs,
42408
- filterRangeMaxValue: xs
42408
+ filterRangeMinValue: Cs,
42409
+ filterRangeMaxValue: Cs
42409
42410
  }
42410
42411
  }), aB = new $({
42411
42412
  conditionCount: g,
@@ -43209,7 +43210,7 @@ var Kp = new $({
43209
43210
  offsetPaletteLabelArray: new M(z, new P(g, "numPalettes")),
43210
43211
  offsetPaletteEntryLabelArray: new M(z, new P(g, "numPaletteEntries"))
43211
43212
  }
43212
- }), Rs = new re(g, {
43213
+ }), $s = new re(g, {
43213
43214
  1: {
43214
43215
  coordinate: Q
43215
43216
  // X or Y value, in design units
@@ -43228,19 +43229,19 @@ var Kp = new $({
43228
43229
  }), zB = new $({
43229
43230
  defaultIndex: g,
43230
43231
  baseCoordCount: g,
43231
- baseCoords: new P(new M(g, Rs), "baseCoordCount")
43232
+ baseCoords: new P(new M(g, $s), "baseCoordCount")
43232
43233
  }), VB = new $({
43233
43234
  tag: new me(4),
43234
- minCoord: new M(g, Rs, {
43235
+ minCoord: new M(g, $s, {
43235
43236
  type: "parent"
43236
43237
  }),
43237
- maxCoord: new M(g, Rs, {
43238
+ maxCoord: new M(g, $s, {
43238
43239
  type: "parent"
43239
43240
  })
43240
43241
  // May be NULL
43241
43242
  }), i2 = new $({
43242
- minCoord: new M(g, Rs),
43243
- maxCoord: new M(g, Rs),
43243
+ minCoord: new M(g, $s),
43244
+ maxCoord: new M(g, $s),
43244
43245
  featMinMaxCount: g,
43245
43246
  featMinMaxRecords: new P(VB, "featMinMaxCount")
43246
43247
  // In alphabetical order
@@ -43341,7 +43342,7 @@ var Kp = new $({
43341
43342
  type: "global",
43342
43343
  relativeTo: (t) => t.rel
43343
43344
  })
43344
- }, Oa = class {
43345
+ }, Ra = class {
43345
43346
  buildStruct(t) {
43346
43347
  let e = t;
43347
43348
  for (; !e[this.key] && e.parent; ) e = e.parent;
@@ -43364,12 +43365,12 @@ var Kp = new $({
43364
43365
  }
43365
43366
  }, KB = new $({
43366
43367
  secondGlyph: g,
43367
- value1: new Oa("valueFormat1"),
43368
- value2: new Oa("valueFormat2")
43368
+ value1: new Ra("valueFormat1"),
43369
+ value2: new Ra("valueFormat2")
43369
43370
  }), JB = new P(KB, g), QB = new $({
43370
- value1: new Oa("valueFormat1"),
43371
- value2: new Oa("valueFormat2")
43372
- }), $s = new re(g, {
43371
+ value1: new Ra("valueFormat1"),
43372
+ value2: new Ra("valueFormat2")
43373
+ }), Ls = new re(g, {
43373
43374
  1: {
43374
43375
  xCoordinate: Q,
43375
43376
  yCoordinate: Q
@@ -43386,29 +43387,29 @@ var Kp = new $({
43386
43387
  yDeviceTable: new M(g, pn)
43387
43388
  }
43388
43389
  }), tI = new $({
43389
- entryAnchor: new M(g, $s, {
43390
+ entryAnchor: new M(g, Ls, {
43390
43391
  type: "parent"
43391
43392
  }),
43392
- exitAnchor: new M(g, $s, {
43393
+ exitAnchor: new M(g, Ls, {
43393
43394
  type: "parent"
43394
43395
  })
43395
43396
  }), eI = new $({
43396
43397
  class: g,
43397
- markAnchor: new M(g, $s, {
43398
+ markAnchor: new M(g, Ls, {
43398
43399
  type: "parent"
43399
43400
  })
43400
- }), $c = new P(eI, g), rI = new P(new M(g, $s), (t) => t.parent.classCount), tm = new P(rI, g), iI = new P(new M(g, $s), (t) => t.parent.parent.classCount), nI = new P(iI, g), aI = new P(new M(g, nI), g), Ls = new re("lookupType", {
43401
+ }), $c = new P(eI, g), rI = new P(new M(g, Ls), (t) => t.parent.classCount), tm = new P(rI, g), iI = new P(new M(g, Ls), (t) => t.parent.parent.classCount), nI = new P(iI, g), aI = new P(new M(g, nI), g), Zs = new re("lookupType", {
43401
43402
  1: new re(g, {
43402
43403
  1: {
43403
43404
  coverage: new M(g, pe),
43404
43405
  valueFormat: pa,
43405
- value: new Oa()
43406
+ value: new Ra()
43406
43407
  },
43407
43408
  2: {
43408
43409
  coverage: new M(g, pe),
43409
43410
  valueFormat: pa,
43410
43411
  valueCount: g,
43411
- values: new ge(new Oa(), "valueCount")
43412
+ values: new ge(new Ra(), "valueCount")
43412
43413
  }
43413
43414
  }),
43414
43415
  2: new re(g, {
@@ -43468,12 +43469,12 @@ var Kp = new $({
43468
43469
  extension: new M(z, null)
43469
43470
  }
43470
43471
  });
43471
- Ls.versions[9].extension.type = Ls;
43472
+ Zs.versions[9].extension.type = Zs;
43472
43473
  var sI = new re(z, {
43473
43474
  header: {
43474
43475
  scriptList: new M(g, Uw),
43475
43476
  featureList: new M(g, Gw),
43476
- lookupList: new M(g, new Iu(Ls))
43477
+ lookupList: new M(g, new Iu(Zs))
43477
43478
  },
43478
43479
  65536: {},
43479
43480
  65537: {
@@ -43546,12 +43547,12 @@ var cI = new re(z, {
43546
43547
  shrinkageDisableGSUB: new M(g, sn),
43547
43548
  shrinkageEnableGPOS: new M(g, sn),
43548
43549
  shrinkageDisableGPOS: new M(g, sn),
43549
- shrinkageJstfMax: new M(g, new Iu(Ls)),
43550
+ shrinkageJstfMax: new M(g, new Iu(Zs)),
43550
43551
  extensionEnableGSUB: new M(g, sn),
43551
43552
  extensionDisableGSUB: new M(g, sn),
43552
43553
  extensionEnableGPOS: new M(g, sn),
43553
43554
  extensionDisableGPOS: new M(g, sn),
43554
- extensionJstfMax: new M(g, new Iu(Ls))
43555
+ extensionJstfMax: new M(g, new Iu(Zs))
43555
43556
  }), a2 = new P(new M(g, fI), g), hI = new $({
43556
43557
  tag: new me(4),
43557
43558
  jstfLangSys: new M(g, a2)
@@ -44237,14 +44238,14 @@ function va(t, e) {
44237
44238
  for (; t < e; ) r.push(t++);
44238
44239
  return r;
44239
44240
  }
44240
- var ec = new TextDecoder("ascii"), sm = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", vs = new Uint8Array(256);
44241
- for (let t = 0; t < sm.length; t++) vs[sm.charCodeAt(t)] = t;
44241
+ var ec = new TextDecoder("ascii"), sm = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bs = new Uint8Array(256);
44242
+ for (let t = 0; t < sm.length; t++) bs[sm.charCodeAt(t)] = t;
44242
44243
  function fd(t) {
44243
44244
  let e = t.length * 0.75;
44244
44245
  t[t.length - 1] === "=" && (e--, t[t.length - 2] === "=" && e--);
44245
44246
  let r = new Uint8Array(e), n = 0;
44246
44247
  for (let i = 0, a = t.length; i < a; i += 4) {
44247
- let s = vs[t.charCodeAt(i)], o = vs[t.charCodeAt(i + 1)], u = vs[t.charCodeAt(i + 2)], l = vs[t.charCodeAt(i + 3)];
44248
+ let s = bs[t.charCodeAt(i)], o = bs[t.charCodeAt(i + 1)], u = bs[t.charCodeAt(i + 2)], l = bs[t.charCodeAt(i + 3)];
44248
44249
  r[n++] = s << 2 | o >> 4, r[n++] = (o & 15) << 4 | u >> 2, r[n++] = (u & 3) << 6 | l & 63;
44249
44250
  }
44250
44251
  return r;
@@ -44621,7 +44622,7 @@ var _T = class {
44621
44622
  constructor(t) {
44622
44623
  this.font = t;
44623
44624
  }
44624
- }, Ra = class o2 {
44625
+ }, $a = class o2 {
44625
44626
  /**
44626
44627
  * The width of the bounding box
44627
44628
  * @type {number}
@@ -44645,7 +44646,7 @@ var _T = class {
44645
44646
  constructor(e = 1 / 0, r = 1 / 0, n = -1 / 0, i = -1 / 0) {
44646
44647
  this.minX = e, this.minY = r, this.maxX = n, this.maxY = i;
44647
44648
  }
44648
- }, $a = {
44649
+ }, La = {
44649
44650
  Caucasian_Albanian: "aghb",
44650
44651
  Arabic: "arab",
44651
44652
  Imperial_Aramaic: "armi",
@@ -44804,8 +44805,8 @@ var _T = class {
44804
44805
  Common: "zyyy",
44805
44806
  Unknown: "zzzz"
44806
44807
  }, E0 = {};
44807
- for (let t in $a) {
44808
- let e = $a[t];
44808
+ for (let t in La) {
44809
+ let e = La[t];
44809
44810
  if (Array.isArray(e)) for (let r of e) E0[r] = t;
44810
44811
  else E0[e] = t;
44811
44812
  }
@@ -44821,16 +44822,16 @@ function AT(t) {
44821
44822
  56320 <= a && a <= 57343 && (r++, n = ((n & 1023) << 10) + (a & 1023) + 65536);
44822
44823
  }
44823
44824
  let i = Pw(n);
44824
- if (i !== "Common" && i !== "Inherited" && i !== "Unknown") return $a[i];
44825
+ if (i !== "Common" && i !== "Inherited" && i !== "Unknown") return La[i];
44825
44826
  }
44826
- return $a.Unknown;
44827
+ return La.Unknown;
44827
44828
  }
44828
44829
  function ET(t) {
44829
44830
  for (let e = 0; e < t.length; e++) {
44830
44831
  let r = t[e], n = Pw(r);
44831
- if (n !== "Common" && n !== "Inherited" && n !== "Unknown") return $a[n];
44832
+ if (n !== "Common" && n !== "Inherited" && n !== "Unknown") return La[n];
44832
44833
  }
44833
- return $a.Unknown;
44834
+ return La.Unknown;
44834
44835
  }
44835
44836
  var kT = {
44836
44837
  arab: !0,
@@ -44888,7 +44889,7 @@ var ST = class {
44888
44889
  * @type {BBox}
44889
44890
  */
44890
44891
  get bbox() {
44891
- let t = new Ra(), e = 0, r = 0;
44892
+ let t = new $a(), e = 0, r = 0;
44892
44893
  for (let n = 0; n < this.glyphs.length; n++) {
44893
44894
  let i = this.glyphs[n], a = this.positions[n], s = i.bbox;
44894
44895
  t.addPoint(s.minX + e + a.xOffset, s.minY + r + a.yOffset), t.addPoint(s.maxX + e + a.xOffset, s.maxY + r + a.yOffset), e += a.xAdvance, r += a.yAdvance;
@@ -45393,7 +45394,7 @@ function NT(t) {
45393
45394
  }
45394
45395
  return Object.keys(e);
45395
45396
  }
45396
- var Cs = class {
45397
+ var As = class {
45397
45398
  lookup(t) {
45398
45399
  switch (this.table.version) {
45399
45400
  case 0:
@@ -45454,7 +45455,7 @@ var Cs = class {
45454
45455
  };
45455
45456
  nr([
45456
45457
  ar
45457
- ], Cs.prototype, "glyphsForValue", null);
45458
+ ], As.prototype, "glyphsForValue", null);
45458
45459
  var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45459
45460
  process(t, e, r) {
45460
45461
  let n = BT, i = e ? t.length - 1 : 0, a = e ? -1 : 1;
@@ -45481,7 +45482,7 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45481
45482
  }
45482
45483
  }
45483
45484
  constructor(t) {
45484
- this.stateTable = t, this.lookupTable = new Cs(t.classTable);
45485
+ this.stateTable = t, this.lookupTable = new As(t.classTable);
45485
45486
  }
45486
45487
  }, PT = 32768, MT = 8192, zT = 15, fm = 32768, VT = 32768, OT = 8192, RT = 2147483648, $T = 1073741824, LT = 1073741823, hm = 4194304, ZT = 2048, UT = 1024, jT = 992, GT = 31, l2 = class {
45487
45488
  // Processes an array of glyphs and applies the specified features
@@ -45534,13 +45535,13 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45534
45535
  processContextualSubstitution(t, e, r) {
45535
45536
  let n = this.subtable.table.substitutionTable.items;
45536
45537
  if (e.markIndex !== 65535) {
45537
- let a = n.getItem(e.markIndex), s = new Cs(a);
45538
+ let a = n.getItem(e.markIndex), s = new As(a);
45538
45539
  t = this.glyphs[this.markedGlyph];
45539
45540
  var i = s.lookup(t.id);
45540
45541
  i && (this.glyphs[this.markedGlyph] = this.font.getGlyph(i, t.codePoints));
45541
45542
  }
45542
45543
  if (e.currentIndex !== 65535) {
45543
- let a = n.getItem(e.currentIndex), s = new Cs(a);
45544
+ let a = n.getItem(e.currentIndex), s = new As(a);
45544
45545
  t = this.glyphs[r];
45545
45546
  var i = s.lookup(t.id);
45546
45547
  i && (this.glyphs[r] = this.font.getGlyph(i, t.codePoints));
@@ -45567,7 +45568,7 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45567
45568
  }
45568
45569
  }
45569
45570
  processNoncontextualSubstitutions(t, e, r) {
45570
- let n = new Cs(t.table.lookupTable);
45571
+ let n = new As(t.table.lookupTable);
45571
45572
  for (r = 0; r < e.length; r++) {
45572
45573
  let i = e[r];
45573
45574
  if (i.id !== 65535) {
@@ -46487,7 +46488,7 @@ var nP = class {
46487
46488
  }
46488
46489
  };
46489
46490
  Tr(f2, "zeroMarkWidths", "NONE");
46490
- var La = 44032, h2 = 55204, sP = h2 - La + 1, rc = 4352, ic = 4449, Hn = 4519, oP = 19, zu = 21, Zs = 28, uP = rc + oP - 1, lP = ic + zu - 1, cP = Hn + Zs - 1, pm = 9676, fP = (t) => 4352 <= t && t <= 4447 || 43360 <= t && t <= 43388, hP = (t) => 4448 <= t && t <= 4519 || 55216 <= t && t <= 55238, dP = (t) => 4520 <= t && t <= 4607 || 55243 <= t && t <= 55291, pP = (t) => 12334 <= t && t <= 12335, mP = (t) => La <= t && t <= h2, gP = (t) => t - La < sP && (t - La) % Zs === 0, yP = (t) => rc <= t && t <= uP, vP = (t) => ic <= t && t <= lP, bP = (t) => 1 <= t && t <= cP, wP = 0, _P = 1, Vu = 2, dd = 3, Ou = 4, d2 = 5, xP = 6;
46491
+ var Za = 44032, h2 = 55204, sP = h2 - Za + 1, rc = 4352, ic = 4449, Hn = 4519, oP = 19, zu = 21, Us = 28, uP = rc + oP - 1, lP = ic + zu - 1, cP = Hn + Us - 1, pm = 9676, fP = (t) => 4352 <= t && t <= 4447 || 43360 <= t && t <= 43388, hP = (t) => 4448 <= t && t <= 4519 || 55216 <= t && t <= 55238, dP = (t) => 4520 <= t && t <= 4607 || 55243 <= t && t <= 55291, pP = (t) => 12334 <= t && t <= 12335, mP = (t) => Za <= t && t <= h2, gP = (t) => t - Za < sP && (t - Za) % Us === 0, yP = (t) => rc <= t && t <= uP, vP = (t) => ic <= t && t <= lP, bP = (t) => 1 <= t && t <= cP, wP = 0, _P = 1, Vu = 2, dd = 3, Ou = 4, d2 = 5, xP = 6;
46491
46492
  function Ru(t) {
46492
46493
  return fP(t) ? _P : hP(t) ? Vu : dP(t) ? dd : gP(t) ? Ou : mP(t) ? d2 : pP(t) ? xP : wP;
46493
46494
  }
@@ -46618,26 +46619,26 @@ var Cr = 0, Ri = 1, S0 = 2, D0 = 4, F0 = 5, CP = [
46618
46619
  ]
46619
46620
  ]
46620
46621
  ];
46621
- function As(t, e, r) {
46622
+ function Es(t, e, r) {
46622
46623
  return new qi(t, t.glyphForCodePoint(e).id, [
46623
46624
  e
46624
46625
  ], r);
46625
46626
  }
46626
46627
  function p2(t, e, r) {
46627
- let n = t[e], a = n.codePoints[0] - La, s = Hn + a % Zs;
46628
- a = a / Zs | 0;
46628
+ let n = t[e], a = n.codePoints[0] - Za, s = Hn + a % Us;
46629
+ a = a / Us | 0;
46629
46630
  let o = rc + a / zu | 0, u = ic + a % zu;
46630
46631
  if (!r.hasGlyphForCodePoint(o) || !r.hasGlyphForCodePoint(u) || s !== Hn && !r.hasGlyphForCodePoint(s)) return e;
46631
- let l = As(r, o, n.features);
46632
+ let l = Es(r, o, n.features);
46632
46633
  l.features.ljmo = !0;
46633
- let c = As(r, u, n.features);
46634
+ let c = Es(r, u, n.features);
46634
46635
  c.features.vjmo = !0;
46635
46636
  let h = [
46636
46637
  l,
46637
46638
  c
46638
46639
  ];
46639
46640
  if (s > Hn) {
46640
- let m = As(r, s, n.features);
46641
+ let m = Es(r, s, n.features);
46641
46642
  m.features.tjmo = !0, h.push(m);
46642
46643
  }
46643
46644
  return t.splice(e, 1, ...h), e + h.length - 1;
@@ -46649,14 +46650,14 @@ function AP(t, e, r) {
46649
46650
  else {
46650
46651
  a === Vu ? (l = t[e - 1], c = n) : (l = t[e - 2], c = t[e - 1], h = n);
46651
46652
  let d = l.codePoints[0], y = c.codePoints[0];
46652
- yP(d) && vP(y) && (u = La + ((d - rc) * zu + (y - ic)) * Zs);
46653
+ yP(d) && vP(y) && (u = Za + ((d - rc) * zu + (y - ic)) * Us);
46653
46654
  }
46654
46655
  let m = h && h.codePoints[0] || Hn;
46655
46656
  if (u != null && (m === Hn || bP(m))) {
46656
46657
  let d = u + (m - Hn);
46657
46658
  if (r.hasGlyphForCodePoint(d)) {
46658
46659
  let y = o === Vu ? 3 : 2;
46659
- return t.splice(e - y + 1, y, As(r, d, n.features)), e - y + 1;
46660
+ return t.splice(e - y + 1, y, Es(r, d, n.features)), e - y + 1;
46660
46661
  }
46661
46662
  }
46662
46663
  return l && (l.features.ljmo = !0), c && (c.features.vjmo = !0), h && (h.features.tjmo = !0), o === Ou ? (p2(t, e - 1, r), e + 1) : e;
@@ -46681,7 +46682,7 @@ function kP(t, e, r) {
46681
46682
  function SP(t, e, r) {
46682
46683
  let n = t[e], i = t[e].codePoints[0];
46683
46684
  if (r.hasGlyphForCodePoint(pm)) {
46684
- let a = As(r, pm, n.features), s = r.glyphForCodePoint(i).advanceWidth === 0 ? e : e + 1;
46685
+ let a = Es(r, pm, n.features), s = r.glyphForCodePoint(i).advanceWidth === 0 ? e : e + 1;
46685
46686
  t.splice(s, 0, a), e++;
46686
46687
  }
46687
46688
  return e;
@@ -46722,7 +46723,7 @@ var Jt = {
46722
46723
  Final_C: 8192,
46723
46724
  SMVD: 16384,
46724
46725
  End: 32768
46725
- }, DP = Jt.C | Jt.Ra | Jt.CM | Jt.V | Jt.Placeholder | Jt.Dotted_Circle, g2 = Jt.ZWJ | Jt.ZWNJ, Es = Jt.H | Jt.Coeng, mm = {
46726
+ }, DP = Jt.C | Jt.Ra | Jt.CM | Jt.V | Jt.Placeholder | Jt.Dotted_Circle, g2 = Jt.ZWJ | Jt.ZWNJ, ks = Jt.H | Jt.Coeng, mm = {
46726
46727
  Default: {
46727
46728
  hasOldSpec: !1,
46728
46729
  virama: 0,
@@ -46915,7 +46916,7 @@ function Ci(t) {
46915
46916
  return t.shaperInfo.category & g2;
46916
46917
  }
46917
46918
  function Oi(t) {
46918
- return t.shaperInfo.category & Es;
46919
+ return t.shaperInfo.category & ks;
46919
46920
  }
46920
46921
  function Zi(t, e) {
46921
46922
  for (let n of t) n.features = {
@@ -47016,7 +47017,7 @@ function PP(t, e, r) {
47016
47017
  let y = zt.Start;
47017
47018
  for (let A = o; A < u; A++) {
47018
47019
  let _ = e[A].shaperInfo;
47019
- if (_.category & (g2 | Jt.N | Jt.RS | Jt.CM | Es & _.category)) {
47020
+ if (_.category & (g2 | Jt.N | Jt.RS | Jt.CM | ks & _.category)) {
47020
47021
  if (_.position = y, _.category === Jt.H && _.position === zt.Pre_M) {
47021
47022
  for (let k = A; k > o; k--) if (e[k - 1].shaperInfo.position !== zt.Pre_M) {
47022
47023
  _.position = e[k - 1].shaperInfo.position;
@@ -47089,11 +47090,11 @@ function MP(t, e, r) {
47089
47090
  a < u && e[u].shaperInfo.position > zt.Base_C && u--;
47090
47091
  break;
47091
47092
  }
47092
- if (u === s && a < u && e[u - 1].shaperInfo.category === Jt.ZWJ && u--, u < s) for (; a < u && e[u].shaperInfo.category & (Jt.N | Es); ) u--;
47093
+ if (u === s && a < u && e[u - 1].shaperInfo.category === Jt.ZWJ && u--, u < s) for (; a < u && e[u].shaperInfo.category & (Jt.N | ks); ) u--;
47093
47094
  if (a + 1 < s && a < u) {
47094
47095
  let l = u === s ? u - 2 : u - 1;
47095
47096
  if (r.unicodeScript !== "Malayalam" && r.unicodeScript !== "Tamil") {
47096
- for (; l > a && !(e[l].shaperInfo.category & (Jt.M | Es)); ) l--;
47097
+ for (; l > a && !(e[l].shaperInfo.category & (Jt.M | ks)); ) l--;
47097
47098
  Oi(e[l]) && e[l].shaperInfo.position !== zt.Pre_M ? l + 1 < s && Ci(e[l + 1]) && l++ : l = a;
47098
47099
  }
47099
47100
  if (a < l && e[l].shaperInfo.position !== zt.Pre_M) {
@@ -47135,7 +47136,7 @@ function MP(t, e, r) {
47135
47136
  if (e[l].isLigated && !e[l].isMultiplied) {
47136
47137
  let c = u;
47137
47138
  if (r.unicodeScript !== "Malayalam" && r.unicodeScript !== "Tamil") {
47138
- for (; c > a && !(e[c - 1].shaperInfo.category & (Jt.M | Es)); ) c--;
47139
+ for (; c > a && !(e[c - 1].shaperInfo.category & (Jt.M | ks)); ) c--;
47139
47140
  if (c > a && e[c - 1].shaperInfo.category === Jt.M) {
47140
47141
  let d = l;
47141
47142
  for (let y = u + 1; y < d; y++) if (e[y].shaperInfo.category === Jt.M) {
@@ -47712,7 +47713,7 @@ var WP = class extends Mu {
47712
47713
  */
47713
47714
  get cbox() {
47714
47715
  if (!this._cbox) {
47715
- let e = new Ra();
47716
+ let e = new $a();
47716
47717
  for (let r of this.commands) for (let n = 0; n < r.args.length; n += 2) e.addPoint(r.args[n], r.args[n + 1]);
47717
47718
  this._cbox = Object.freeze(e);
47718
47719
  }
@@ -47725,7 +47726,7 @@ var WP = class extends Mu {
47725
47726
  */
47726
47727
  get bbox() {
47727
47728
  if (this._bbox) return this._bbox;
47728
- let e = new Ra(), r = 0, n = 0, i = (B) => Math.pow(1 - B, 3) * d[S] + 3 * Math.pow(1 - B, 2) * B * y[S] + 3 * (1 - B) * Math.pow(B, 2) * w[S] + Math.pow(B, 3) * v[S];
47729
+ let e = new $a(), r = 0, n = 0, i = (B) => Math.pow(1 - B, 3) * d[S] + 3 * Math.pow(1 - B, 2) * B * y[S] + 3 * (1 - B) * Math.pow(B, 2) * w[S] + Math.pow(B, 3) * v[S];
47729
47730
  for (let B of this.commands) switch (B.command) {
47730
47731
  case "moveTo":
47731
47732
  case "lineTo":
@@ -47834,7 +47835,7 @@ for (let t of [
47834
47835
  args: e
47835
47836
  }), this;
47836
47837
  };
47837
- var os = [
47838
+ var us = [
47838
47839
  ".notdef",
47839
47840
  ".null",
47840
47841
  "nonmarkingreturn",
@@ -48190,12 +48191,12 @@ var os = [
48190
48191
  if (!t) return null;
48191
48192
  switch (t.version) {
48192
48193
  case 1:
48193
- return os[this.id];
48194
+ return us[this.id];
48194
48195
  case 2:
48195
48196
  let e = t.glyphNameIndex[this.id];
48196
- return e < os.length ? os[e] : t.names[e - os.length];
48197
+ return e < us.length ? us[e] : t.names[e - us.length];
48197
48198
  case 2.5:
48198
- return os[this.id + t.offsets[this.id]];
48199
+ return us[this.id + t.offsets[this.id]];
48199
48200
  case 4:
48200
48201
  return String.fromCharCode(t.map[this.id]);
48201
48202
  }
@@ -48262,7 +48263,7 @@ var _m = new $({
48262
48263
  if (this._font._variationProcessor && !t) return this.path.cbox;
48263
48264
  let e = this._font._getTableStream("glyf");
48264
48265
  e.pos += this._font.loca.offsets[this.id];
48265
- let r = _m.decode(e), n = new Ra(r.xMin, r.yMin, r.xMax, r.yMax);
48266
+ let r = _m.decode(e), n = new $a(r.xMin, r.yMin, r.xMax, r.yMax);
48266
48267
  return Object.freeze(n);
48267
48268
  }
48268
48269
  // Parses a single glyph coordinate
@@ -48701,7 +48702,7 @@ var _m = new $({
48701
48702
  }
48702
48703
  }, hM = class extends Bi {
48703
48704
  _getBBox() {
48704
- let t = new Ra();
48705
+ let t = new $a();
48705
48706
  for (let e = 0; e < this.layers.length; e++) {
48706
48707
  let n = this.layers[e].glyph.bbox;
48707
48708
  t.addPoint(n.minX, n.minY), t.addPoint(n.maxX, n.maxY);
@@ -49340,7 +49341,7 @@ var _2 = class {
49340
49341
  * @type {BBox}
49341
49342
  */
49342
49343
  get bbox() {
49343
- return Object.freeze(new Ra(this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax));
49344
+ return Object.freeze(new $a(this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax));
49344
49345
  }
49345
49346
  get _cmapProcessor() {
49346
49347
  return new hd(this.cmap);
@@ -49943,11 +49944,11 @@ var WM = new $({
49943
49944
  }
49944
49945
  }
49945
49946
  };
49946
- Ga(Br);
49947
- Ga(IM);
49948
- Ga(VM);
49949
- Ga(jM);
49950
- Ga(XM);
49947
+ Wa(Br);
49948
+ Wa(IM);
49949
+ Wa(VM);
49950
+ Wa(jM);
49951
+ Wa(XM);
49951
49952
  function Wo(t) {
49952
49953
  if (t == null) return "400";
49953
49954
  if (typeof t == "number") return String(t);
@@ -50334,8 +50335,8 @@ function KM() {
50334
50335
  wt(Nt);
50335
50336
  else {
50336
50337
  Nt = ae;
50337
- var pt = ae.split(">"), Pe = pt[0], Je = pt[1];
50338
- Pe = String.fromCodePoint(et += parseInt(Pe, yt)), Je = String.fromCodePoint(et += parseInt(Je, yt)), Yt.set(Pe, Je), nt && St.set(Je, Pe);
50338
+ var pt = ae.split(">"), Me = pt[0], Je = pt[1];
50339
+ Me = String.fromCodePoint(et += parseInt(Me, yt)), Je = String.fromCodePoint(et += parseInt(Je, yt)), Yt.set(Me, Je), nt && St.set(Je, Me);
50339
50340
  }
50340
50341
  }), { map: Yt, reverseMap: St };
50341
50342
  }
@@ -50364,13 +50365,13 @@ function KM() {
50364
50365
  var xr = et[_r];
50365
50366
  et[_r] = si, St.set(xr, St.get(xr) - 1), xr & o && St.set(o, St.get(o) - 1), St.set(si, (St.get(si) || 0) + 1), si & o && St.set(o, (St.get(o) || 0) + 1);
50366
50367
  }
50367
- for (var wt = new Uint8Array(X.length), ae = /* @__PURE__ */ new Map(), ce = [], pt = null, Pe = 0; Pe < X.length; Pe++)
50368
+ for (var wt = new Uint8Array(X.length), ae = /* @__PURE__ */ new Map(), ce = [], pt = null, Me = 0; Me < X.length; Me++)
50368
50369
  pt || ce.push(pt = {
50369
- start: Pe,
50370
+ start: Me,
50370
50371
  end: X.length - 1,
50371
50372
  // 3.3.1 P2-P3: Determine the paragraph level
50372
- level: nt === "rtl" ? 1 : nt === "ltr" ? 0 : Pd(Pe, !1)
50373
- }), et[Pe] & J && (pt.end = Pe, pt = null);
50373
+ level: nt === "rtl" ? 1 : nt === "ltr" ? 0 : Pd(Me, !1)
50374
+ }), et[Me] & J && (pt.end = Me, pt = null);
50374
50375
  for (var Je = Wt | Lt | Dt | st | a | oe | ue | J, ve = function(_r) {
50375
50376
  return _r + (_r & 1 ? 1 : 2);
50376
50377
  }, Pr = function(_r) {
@@ -50450,7 +50451,7 @@ function KM() {
50450
50451
  break;
50451
50452
  }
50452
50453
  for (var ni = [], In = 0; In < ie.length; In++)
50453
- for (var Wa = ie[In], en = Wa._start; en <= Wa._end; en++)
50454
+ for (var Ya = ie[In], en = Ya._start; en <= Ya._end; en++)
50454
50455
  ni.push(en);
50455
50456
  for (var Tn = wt[ni[0]], sa = pt.level, rn = ni[0] - 1; rn >= 0; rn--)
50456
50457
  if (!(et[rn] & u)) {
@@ -50476,14 +50477,14 @@ function KM() {
50476
50477
  var fi = dt[Mi], kt = fi._seqIndices, zi = fi._sosType, Eo = fi._eosType, Gr = wt[kt[0]] & 1 ? O : N;
50477
50478
  if (St.get(Y))
50478
50479
  for (var Mn = 0; Mn < kt.length; Mn++) {
50479
- var Ya = kt[Mn];
50480
- if (et[Ya] & Y) {
50481
- for (var Ha = zi, oa = Mn - 1; oa >= 0; oa--)
50480
+ var Ha = kt[Mn];
50481
+ if (et[Ha] & Y) {
50482
+ for (var qa = zi, oa = Mn - 1; oa >= 0; oa--)
50482
50483
  if (!(et[kt[oa]] & u)) {
50483
- Ha = et[kt[oa]];
50484
+ qa = et[kt[oa]];
50484
50485
  break;
50485
50486
  }
50486
- Nt(Ya, Ha & (a | oe) ? ct : Ha);
50487
+ Nt(Ha, qa & (a | oe) ? ct : qa);
50487
50488
  }
50488
50489
  }
50489
50490
  if (St.get(L))
@@ -50504,12 +50505,12 @@ function KM() {
50504
50505
  et[wd] & it && Nt(wd, O);
50505
50506
  }
50506
50507
  if (St.get(I) || St.get(K))
50507
- for (var qa = 1; qa < kt.length - 1; qa++) {
50508
- var cc = kt[qa];
50508
+ for (var Xa = 1; Xa < kt.length - 1; Xa++) {
50509
+ var cc = kt[Xa];
50509
50510
  if (et[cc] & (I | K)) {
50510
- for (var la = 0, fc = 0, hc = qa - 1; hc >= 0 && (la = et[kt[hc]], !!(la & u)); hc--)
50511
+ for (var la = 0, fc = 0, hc = Xa - 1; hc >= 0 && (la = et[kt[hc]], !!(la & u)); hc--)
50511
50512
  ;
50512
- for (var dc = qa + 1; dc < kt.length && (fc = et[kt[dc]], !!(fc & u)); dc++)
50513
+ for (var dc = Xa + 1; dc < kt.length && (fc = et[kt[dc]], !!(fc & u)); dc++)
50513
50514
  ;
50514
50515
  la === fc && (et[cc] === I ? la === L : la & (L | R)) && Nt(cc, la);
50515
50516
  }
@@ -50525,13 +50526,13 @@ function KM() {
50525
50526
  }
50526
50527
  }
50527
50528
  if (St.get(j) || St.get(I) || St.get(K))
50528
- for (var Xa = 0; Xa < kt.length; Xa++) {
50529
- var _d = kt[Xa];
50529
+ for (var Ka = 0; Ka < kt.length; Ka++) {
50530
+ var _d = kt[Ka];
50530
50531
  if (et[_d] & (j | I | K)) {
50531
50532
  Nt(_d, ct);
50532
- for (var So = Xa - 1; So >= 0 && et[kt[So]] & u; So--)
50533
+ for (var So = Ka - 1; So >= 0 && et[kt[So]] & u; So--)
50533
50534
  Nt(kt[So], ct);
50534
- for (var Do = Xa + 1; Do < kt.length && et[kt[Do]] & u; Do++)
50535
+ for (var Do = Ka + 1; Do < kt.length && et[kt[Do]] & u; Do++)
50535
50536
  Nt(kt[Do], ct);
50536
50537
  }
50537
50538
  }
@@ -50541,21 +50542,21 @@ function KM() {
50541
50542
  mc & L ? xd === N && Nt(Cd, N) : mc & s && (xd = mc);
50542
50543
  }
50543
50544
  if (St.get(o)) {
50544
- var Ka = O | L | R, Ad = Ka | N, Fo = [];
50545
+ var Ja = O | L | R, Ad = Ja | N, Fo = [];
50545
50546
  {
50546
50547
  for (var ca = [], fa = 0; fa < kt.length; fa++)
50547
50548
  if (et[kt[fa]] & o) {
50548
- var Ja = X[kt[fa]], Ed = void 0;
50549
- if (_(Ja) !== null)
50549
+ var Qa = X[kt[fa]], Ed = void 0;
50550
+ if (_(Qa) !== null)
50550
50551
  if (ca.length < 63)
50551
- ca.push({ char: Ja, seqIndex: fa });
50552
+ ca.push({ char: Qa, seqIndex: fa });
50552
50553
  else
50553
50554
  break;
50554
- else if ((Ed = k(Ja)) !== null)
50555
- for (var Qa = ca.length - 1; Qa >= 0; Qa--) {
50556
- var gc = ca[Qa].char;
50557
- if (gc === Ed || gc === k(x(Ja)) || _(x(gc)) === Ja) {
50558
- Fo.push([ca[Qa].seqIndex, fa]), ca.length = Qa;
50555
+ else if ((Ed = k(Qa)) !== null)
50556
+ for (var ts = ca.length - 1; ts >= 0; ts--) {
50557
+ var gc = ca[ts].char;
50558
+ if (gc === Ed || gc === k(x(Qa)) || _(x(gc)) === Qa) {
50559
+ Fo.push([ca[ts].seqIndex, fa]), ca.length = ts;
50559
50560
  break;
50560
50561
  }
50561
50562
  }
@@ -50569,7 +50570,7 @@ function KM() {
50569
50570
  var Dd = kt[bc];
50570
50571
  if (et[Dd] & Ad) {
50571
50572
  Sd = !0;
50572
- var Fd = et[Dd] & Ka ? O : N;
50573
+ var Fd = et[Dd] & Ja ? O : N;
50573
50574
  if (Fd === Gr) {
50574
50575
  ai = Fd;
50575
50576
  break;
@@ -50581,7 +50582,7 @@ function KM() {
50581
50582
  for (var wc = No - 1; wc >= 0; wc--) {
50582
50583
  var Nd = kt[wc];
50583
50584
  if (et[Nd] & Ad) {
50584
- var Bd = et[Nd] & Ka ? O : N;
50585
+ var Bd = et[Nd] & Ja ? O : N;
50585
50586
  Bd !== Gr ? ai = Bd : ai = Gr;
50586
50587
  break;
50587
50588
  }
@@ -50589,16 +50590,16 @@ function KM() {
50589
50590
  }
50590
50591
  if (ai) {
50591
50592
  if (et[kt[No]] = et[kt[vc]] = ai, ai !== Gr) {
50592
- for (var ts = No + 1; ts < kt.length; ts++)
50593
- if (!(et[kt[ts]] & u)) {
50594
- m(X[kt[ts]]) & Y && (et[kt[ts]] = ai);
50593
+ for (var es = No + 1; es < kt.length; es++)
50594
+ if (!(et[kt[es]] & u)) {
50595
+ m(X[kt[es]]) & Y && (et[kt[es]] = ai);
50595
50596
  break;
50596
50597
  }
50597
50598
  }
50598
50599
  if (ai !== Gr) {
50599
- for (var es = vc + 1; es < kt.length; es++)
50600
- if (!(et[kt[es]] & u)) {
50601
- m(X[kt[es]]) & Y && (et[kt[es]] = ai);
50600
+ for (var rs = vc + 1; rs < kt.length; rs++)
50601
+ if (!(et[kt[rs]] & u)) {
50602
+ m(X[kt[rs]]) & Y && (et[kt[rs]] = ai);
50602
50603
  break;
50603
50604
  }
50604
50605
  }
@@ -50606,18 +50607,18 @@ function KM() {
50606
50607
  }
50607
50608
  for (var nn = 0; nn < kt.length; nn++)
50608
50609
  if (et[kt[nn]] & o) {
50609
- for (var Id = nn, _c = nn, xc = zi, rs = nn - 1; rs >= 0; rs--)
50610
- if (et[kt[rs]] & u)
50611
- Id = rs;
50610
+ for (var Id = nn, _c = nn, xc = zi, is = nn - 1; is >= 0; is--)
50611
+ if (et[kt[is]] & u)
50612
+ Id = is;
50612
50613
  else {
50613
- xc = et[kt[rs]] & Ka ? O : N;
50614
+ xc = et[kt[is]] & Ja ? O : N;
50614
50615
  break;
50615
50616
  }
50616
- for (var Td = Eo, is = nn + 1; is < kt.length; is++)
50617
- if (et[kt[is]] & (o | u))
50618
- _c = is;
50617
+ for (var Td = Eo, ns = nn + 1; ns < kt.length; ns++)
50618
+ if (et[kt[ns]] & (o | u))
50619
+ _c = ns;
50619
50620
  else {
50620
- Td = et[kt[is]] & Ka ? O : N;
50621
+ Td = et[kt[ns]] & Ja ? O : N;
50621
50622
  break;
50622
50623
  }
50623
50624
  for (var Cc = Id; Cc <= _c; Cc++)
@@ -50695,11 +50696,11 @@ function KM() {
50695
50696
  if (wt < ae) {
50696
50697
  for (var ce = nt.levels.slice(wt, ae + 1), pt = ae; pt >= wt && m(X[pt]) & l; pt--)
50697
50698
  ce[pt] = Nt.level;
50698
- for (var Pe = Nt.level, Je = 1 / 0, ve = 0; ve < ce.length; ve++) {
50699
+ for (var Me = Nt.level, Je = 1 / 0, ve = 0; ve < ce.length; ve++) {
50699
50700
  var Pr = ce[ve];
50700
- Pr > Pe && (Pe = Pr), Pr < Je && (Je = Pr | 1);
50701
+ Pr > Me && (Me = Pr), Pr < Je && (Je = Pr | 1);
50701
50702
  }
50702
- for (var Ve = Pe; Ve >= Je; Ve--)
50703
+ for (var Ve = Me; Ve >= Je; Ve--)
50703
50704
  for (var Kt = 0; Kt < ce.length; Kt++)
50704
50705
  if (ce[Kt] >= Ve) {
50705
50706
  for (var Ht = Kt; Kt + 1 < ce.length && ce[Kt + 1] >= Ve; )
@@ -50719,8 +50720,8 @@ function KM() {
50719
50720
  for (var Yt = gt(X, nt, yt, et), St = [], Nt = 0; Nt < X.length; Nt++)
50720
50721
  St[Nt] = Nt;
50721
50722
  return Yt.forEach(function(wt) {
50722
- for (var ae = wt[0], ce = wt[1], pt = St.slice(ae, ce + 1), Pe = pt.length; Pe--; )
50723
- St[ce - Pe] = pt[Pe];
50723
+ for (var ae = wt[0], ce = wt[1], pt = St.slice(ae, ce + 1), Me = pt.length; Me--; )
50724
+ St[ce - Me] = pt[Me];
50724
50725
  }), St;
50725
50726
  }
50726
50727
  return e.closingToOpeningBracket = k, e.getBidiCharType = m, e.getBidiCharTypeName = d, e.getCanonicalBracket = x, e.getEmbeddingLevels = W, e.getMirroredCharacter = mt, e.getMirroredCharactersMap = Ct, e.getReorderSegments = gt, e.getReorderedIndices = Bt, e.getReorderedString = At, e.openingToClosingBracket = _, Object.defineProperty(e, "__esModule", { value: !0 }), e;
@@ -50773,7 +50774,7 @@ function ez(t, e) {
50773
50774
  }
50774
50775
  return o;
50775
50776
  }
50776
- function bs(t, e, r) {
50777
+ function ws(t, e, r) {
50777
50778
  return e < 0 || e >= t.length ? t : e === 0 ? "" : t.slice(0, e);
50778
50779
  }
50779
50780
  function rz(t, e) {
@@ -51723,17 +51724,17 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51723
51724
  constructor(t) {
51724
51725
  super(t), this.fill(0);
51725
51726
  }
51726
- }, Rn, us, Dz = (Rn = class {
51727
+ }, Rn, ls, Dz = (Rn = class {
51727
51728
  constructor(t, e) {
51728
- if (Vt(this, "heap"), Vt(this, "length"), !E(Rn, us)) throw new TypeError("instantiate Stack using Stack.create(n)");
51729
+ if (Vt(this, "heap"), Vt(this, "length"), !E(Rn, ls)) throw new TypeError("instantiate Stack using Stack.create(n)");
51729
51730
  this.heap = new e(t), this.length = 0;
51730
51731
  }
51731
51732
  static create(t) {
51732
51733
  let e = B2(t);
51733
51734
  if (!e) return [];
51734
- Tt(Rn, us, !0);
51735
+ Tt(Rn, ls, !0);
51735
51736
  let r = new Rn(t, e);
51736
- return Tt(Rn, us, !1), r;
51737
+ return Tt(Rn, ls, !1), r;
51737
51738
  }
51738
51739
  push(t) {
51739
51740
  this.heap[this.length++] = t;
@@ -51741,13 +51742,13 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51741
51742
  pop() {
51742
51743
  return this.heap[--this.length];
51743
51744
  }
51744
- }, us = /* @__PURE__ */ new WeakMap(), ne(Rn, us, !1), Rn), Om, Rm, ui, Wr, mi, ma, gi, ls, cs, yi, Xe, Yr, We, De, jt, Ar, Hr, gr, Qe, vi, tr, bi, wi, qr, Xr, _i, $n, Er, fs, vt, Gc, ga, ln, Yo, Kr, $m, ya, hs, Ho, cn, fn, Wc, qo, Xo, Ae, Yc, ds, hn, Hc, qc, Fz = (qc = class {
51745
+ }, ls = /* @__PURE__ */ new WeakMap(), ne(Rn, ls, !1), Rn), Om, Rm, ui, Wr, mi, ma, gi, cs, fs, yi, Xe, Yr, We, De, jt, Ar, Hr, gr, Qe, vi, tr, bi, wi, qr, Xr, _i, $n, Er, hs, vt, Gc, ga, ln, Yo, Kr, $m, ya, ds, Ho, cn, fn, Wc, qo, Xo, Ae, Yc, ps, hn, Hc, qc, Fz = (qc = class {
51745
51746
  constructor(t) {
51746
- ne(this, vt), ne(this, ui), ne(this, Wr), ne(this, mi), ne(this, ma), ne(this, gi), ne(this, ls), ne(this, cs), ne(this, yi), Vt(this, "ttl"), Vt(this, "ttlResolution"), Vt(this, "ttlAutopurge"), Vt(this, "updateAgeOnGet"), Vt(this, "updateAgeOnHas"), Vt(this, "allowStale"), Vt(this, "noDisposeOnSet"), Vt(this, "noUpdateTTL"), Vt(this, "maxEntrySize"), Vt(this, "sizeCalculation"), Vt(this, "noDeleteOnFetchRejection"), Vt(this, "noDeleteOnStaleGet"), Vt(this, "allowStaleOnFetchAbort"), Vt(this, "allowStaleOnFetchRejection"), Vt(this, "ignoreFetchAbort"), ne(this, Xe), ne(this, Yr), ne(this, We), ne(this, De), ne(this, jt), ne(this, Ar), ne(this, Hr), ne(this, gr), ne(this, Qe), ne(this, vi), ne(this, tr), ne(this, bi), ne(this, wi), ne(this, qr), ne(this, Xr), ne(this, _i), ne(this, $n), ne(this, Er), ne(this, fs), ne(this, ga, () => {
51747
+ ne(this, vt), ne(this, ui), ne(this, Wr), ne(this, mi), ne(this, ma), ne(this, gi), ne(this, cs), ne(this, fs), ne(this, yi), Vt(this, "ttl"), Vt(this, "ttlResolution"), Vt(this, "ttlAutopurge"), Vt(this, "updateAgeOnGet"), Vt(this, "updateAgeOnHas"), Vt(this, "allowStale"), Vt(this, "noDisposeOnSet"), Vt(this, "noUpdateTTL"), Vt(this, "maxEntrySize"), Vt(this, "sizeCalculation"), Vt(this, "noDeleteOnFetchRejection"), Vt(this, "noDeleteOnStaleGet"), Vt(this, "allowStaleOnFetchAbort"), Vt(this, "allowStaleOnFetchRejection"), Vt(this, "ignoreFetchAbort"), ne(this, Xe), ne(this, Yr), ne(this, We), ne(this, De), ne(this, jt), ne(this, Ar), ne(this, Hr), ne(this, gr), ne(this, Qe), ne(this, vi), ne(this, tr), ne(this, bi), ne(this, wi), ne(this, qr), ne(this, Xr), ne(this, _i), ne(this, $n), ne(this, Er), ne(this, hs), ne(this, ga, () => {
51747
51748
  }), ne(this, ln, () => {
51748
51749
  }), ne(this, Yo, () => {
51749
51750
  }), ne(this, Kr, () => !1), ne(this, ya, (L) => {
51750
- }), ne(this, hs, (L, I, j) => {
51751
+ }), ne(this, ds, (L, I, j) => {
51751
51752
  }), ne(this, Ho, (L, I, j, R) => {
51752
51753
  if (j || R) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
51753
51754
  return 0;
@@ -51762,8 +51763,8 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51762
51763
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
51763
51764
  }
51764
51765
  if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
51765
- if (Tt(this, cs, S), v !== void 0 && typeof v != "function") throw new TypeError("fetchMethod must be a function if specified");
51766
- if (Tt(this, ls, v), Tt(this, $n, !!v), Tt(this, We, /* @__PURE__ */ new Map()), Tt(this, De, new Array(e).fill(void 0)), Tt(this, jt, new Array(e).fill(void 0)), Tt(this, Ar, new O(e)), Tt(this, Hr, new O(e)), Tt(this, gr, 0), Tt(this, Qe, 0), Tt(this, vi, Dz.create(e)), Tt(this, Xe, 0), Tt(this, Yr, 0), typeof u == "function" && Tt(this, mi, u), typeof l == "function" && Tt(this, ma, l), typeof c == "function" ? (Tt(this, gi, c), Tt(this, tr, [])) : (Tt(this, gi, void 0), Tt(this, tr, void 0)), Tt(this, _i, !!E(this, mi)), Tt(this, fs, !!E(this, ma)), Tt(this, Er, !!E(this, gi)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!B, this.allowStaleOnFetchRejection = !!_, this.allowStaleOnFetchAbort = !!k, this.ignoreFetchAbort = !!x, this.maxEntrySize !== 0) {
51766
+ if (Tt(this, fs, S), v !== void 0 && typeof v != "function") throw new TypeError("fetchMethod must be a function if specified");
51767
+ if (Tt(this, cs, v), Tt(this, $n, !!v), Tt(this, We, /* @__PURE__ */ new Map()), Tt(this, De, new Array(e).fill(void 0)), Tt(this, jt, new Array(e).fill(void 0)), Tt(this, Ar, new O(e)), Tt(this, Hr, new O(e)), Tt(this, gr, 0), Tt(this, Qe, 0), Tt(this, vi, Dz.create(e)), Tt(this, Xe, 0), Tt(this, Yr, 0), typeof u == "function" && Tt(this, mi, u), typeof l == "function" && Tt(this, ma, l), typeof c == "function" ? (Tt(this, gi, c), Tt(this, tr, [])) : (Tt(this, gi, void 0), Tt(this, tr, void 0)), Tt(this, _i, !!E(this, mi)), Tt(this, hs, !!E(this, ma)), Tt(this, Er, !!E(this, gi)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!B, this.allowStaleOnFetchRejection = !!_, this.allowStaleOnFetchAbort = !!k, this.ignoreFetchAbort = !!x, this.maxEntrySize !== 0) {
51767
51768
  if (E(this, Wr) !== 0 && !dn(E(this, Wr))) throw new TypeError("maxSize must be a positive integer if specified");
51768
51769
  if (!dn(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
51769
51770
  _t(this, vt, $m).call(this);
@@ -51794,7 +51795,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51794
51795
  return _t(a = t, vt, Xo).call(a, e, r, n, i);
51795
51796
  }, moveToTail: (e) => {
51796
51797
  var r;
51797
- return _t(r = t, vt, ds).call(r, e);
51798
+ return _t(r = t, vt, ps).call(r, e);
51798
51799
  }, indexes: (e) => {
51799
51800
  var r;
51800
51801
  return _t(r = t, vt, cn).call(r, e);
@@ -51819,10 +51820,10 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51819
51820
  return E(this, Xe);
51820
51821
  }
51821
51822
  get fetchMethod() {
51822
- return E(this, ls);
51823
+ return E(this, cs);
51823
51824
  }
51824
51825
  get memoMethod() {
51825
- return E(this, cs);
51826
+ return E(this, fs);
51826
51827
  }
51827
51828
  get dispose() {
51828
51829
  return E(this, mi);
@@ -51932,9 +51933,9 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51932
51933
  let { ttl: o = this.ttl, start: u, noDisposeOnSet: l = this.noDisposeOnSet, sizeCalculation: c = this.sizeCalculation, status: h } = r, { noUpdateTTL: m = this.noUpdateTTL } = r, d = E(this, Ho).call(this, t, e, r.size || 0, c);
51933
51934
  if (this.maxEntrySize && d > this.maxEntrySize) return h && (h.set = "miss", h.maxEntrySizeExceeded = !0), _t(this, vt, hn).call(this, t, "set"), this;
51934
51935
  let y = E(this, Xe) === 0 ? void 0 : E(this, We).get(t);
51935
- if (y === void 0) y = E(this, Xe) === 0 ? E(this, Qe) : E(this, vi).length !== 0 ? E(this, vi).pop() : E(this, Xe) === E(this, ui) ? _t(this, vt, qo).call(this, !1) : E(this, Xe), E(this, De)[y] = t, E(this, jt)[y] = e, E(this, We).set(t, y), E(this, Ar)[E(this, Qe)] = y, E(this, Hr)[y] = E(this, Qe), Tt(this, Qe, y), Fc(this, Xe)._++, E(this, hs).call(this, y, d, h), h && (h.set = "add"), m = !1, E(this, fs) && ((n = E(this, ma)) == null || n.call(this, e, t, "add"));
51936
+ if (y === void 0) y = E(this, Xe) === 0 ? E(this, Qe) : E(this, vi).length !== 0 ? E(this, vi).pop() : E(this, Xe) === E(this, ui) ? _t(this, vt, qo).call(this, !1) : E(this, Xe), E(this, De)[y] = t, E(this, jt)[y] = e, E(this, We).set(t, y), E(this, Ar)[E(this, Qe)] = y, E(this, Hr)[y] = E(this, Qe), Tt(this, Qe, y), Fc(this, Xe)._++, E(this, ds).call(this, y, d, h), h && (h.set = "add"), m = !1, E(this, hs) && ((n = E(this, ma)) == null || n.call(this, e, t, "add"));
51936
51937
  else {
51937
- _t(this, vt, ds).call(this, y);
51938
+ _t(this, vt, ps).call(this, y);
51938
51939
  let w = E(this, jt)[y];
51939
51940
  if (e !== w) {
51940
51941
  if (E(this, $n) && _t(this, vt, Ae).call(this, w)) {
@@ -51942,13 +51943,13 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51942
51943
  let { __staleWhileFetching: v } = w;
51943
51944
  v !== void 0 && !l && (E(this, _i) && ((i = E(this, mi)) == null || i.call(this, v, t, "set")), E(this, Er) && E(this, tr)?.push([v, t, "set"]));
51944
51945
  } else l || (E(this, _i) && ((a = E(this, mi)) == null || a.call(this, w, t, "set")), E(this, Er) && E(this, tr)?.push([w, t, "set"]));
51945
- if (E(this, ya).call(this, y), E(this, hs).call(this, y, d, h), E(this, jt)[y] = e, h) {
51946
+ if (E(this, ya).call(this, y), E(this, ds).call(this, y, d, h), E(this, jt)[y] = e, h) {
51946
51947
  h.set = "replace";
51947
51948
  let v = w && _t(this, vt, Ae).call(this, w) ? w.__staleWhileFetching : w;
51948
51949
  v !== void 0 && (h.oldValue = v);
51949
51950
  }
51950
51951
  } else h && (h.set = "update");
51951
- E(this, fs) && this.onInsert?.(e, t, e === w ? "update" : "replace");
51952
+ E(this, hs) && this.onInsert?.(e, t, e === w ? "update" : "replace");
51952
51953
  }
51953
51954
  if (o !== 0 && !E(this, qr) && _t(this, vt, Gc).call(this), E(this, qr) && (m || E(this, Yo).call(this, y, o, u), h && E(this, ln).call(this, h, y)), !l && E(this, Er) && E(this, tr)) {
51954
51955
  let w = E(this, tr), v;
@@ -52003,7 +52004,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52003
52004
  return v && (v.fetch = "inflight", O && (v.returnedStale = !0)), O ? _.__staleWhileFetching : _.__returned = _;
52004
52005
  }
52005
52006
  let k = E(this, Kr).call(this, A);
52006
- if (!w && !k) return v && (v.fetch = "hit"), _t(this, vt, ds).call(this, A), n && E(this, ga).call(this, A), v && E(this, ln).call(this, v, A), _;
52007
+ if (!w && !k) return v && (v.fetch = "hit"), _t(this, vt, ps).call(this, A), n && E(this, ga).call(this, A), v && E(this, ln).call(this, v, A), _;
52007
52008
  let x = _t(this, vt, Xo).call(this, t, A, B, y), N = x.__staleWhileFetching !== void 0 && r;
52008
52009
  return v && (v.fetch = k ? "stale" : "refresh", N && k && (v.returnedStale = !0)), N ? x.__staleWhileFetching : x.__returned = x;
52009
52010
  }
@@ -52014,7 +52015,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52014
52015
  return r;
52015
52016
  }
52016
52017
  memo(t, e = {}) {
52017
- let r = E(this, cs);
52018
+ let r = E(this, fs);
52018
52019
  if (!r) throw new Error("no memoMethod provided to constructor");
52019
52020
  let { context: n, forceRefresh: i, ...a } = e, s = this.get(t, a);
52020
52021
  if (!i && s !== void 0) return s;
@@ -52025,7 +52026,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52025
52026
  let { allowStale: r = this.allowStale, updateAgeOnGet: n = this.updateAgeOnGet, noDeleteOnStaleGet: i = this.noDeleteOnStaleGet, status: a } = e, s = E(this, We).get(t);
52026
52027
  if (s !== void 0) {
52027
52028
  let o = E(this, jt)[s], u = _t(this, vt, Ae).call(this, o);
52028
- return a && E(this, ln).call(this, a, s), E(this, Kr).call(this, s) ? (a && (a.get = "stale"), u ? (a && r && o.__staleWhileFetching !== void 0 && (a.returnedStale = !0), r ? o.__staleWhileFetching : void 0) : (i || _t(this, vt, hn).call(this, t, "expire"), a && r && (a.returnedStale = !0), r ? o : void 0)) : (a && (a.get = "hit"), u ? o.__staleWhileFetching : (_t(this, vt, ds).call(this, s), n && E(this, ga).call(this, s), o));
52029
+ return a && E(this, ln).call(this, a, s), E(this, Kr).call(this, s) ? (a && (a.get = "stale"), u ? (a && r && o.__staleWhileFetching !== void 0 && (a.returnedStale = !0), r ? o.__staleWhileFetching : void 0) : (i || _t(this, vt, hn).call(this, t, "expire"), a && r && (a.returnedStale = !0), r ? o : void 0)) : (a && (a.get = "hit"), u ? o.__staleWhileFetching : (_t(this, vt, ps).call(this, s), n && E(this, ga).call(this, s), o));
52029
52030
  } else a && (a.get = "miss");
52030
52031
  }
52031
52032
  delete(t) {
@@ -52034,7 +52035,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52034
52035
  clear() {
52035
52036
  return _t(this, vt, Hc).call(this, "delete");
52036
52037
  }
52037
- }, ui = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakSet(), Gc = function() {
52038
+ }, ui = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakSet(), Gc = function() {
52038
52039
  let t = new nu(E(this, ui)), e = new nu(E(this, ui));
52039
52040
  Tt(this, qr, t), Tt(this, wi, e);
52040
52041
  let r = this.ttlAutopurge ? new Array(E(this, ui)) : void 0;
@@ -52092,14 +52093,14 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52092
52093
  if (n = i(r, e), !dn(n)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
52093
52094
  } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
52094
52095
  return n;
52095
- }), Tt(this, hs, (e, r, n) => {
52096
+ }), Tt(this, ds, (e, r, n) => {
52096
52097
  if (t[e] = r, E(this, Wr)) {
52097
52098
  let i = E(this, Wr) - t[e];
52098
52099
  for (; E(this, Yr) > i; ) _t(this, vt, qo).call(this, !0);
52099
52100
  }
52100
52101
  Tt(this, Yr, E(this, Yr) + t[e]), n && (n.entrySize = r, n.totalCalculatedSize = E(this, Yr));
52101
52102
  });
52102
- }, ya = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), cn = function* ({ allowStale: t = this.allowStale } = {}) {
52103
+ }, ya = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), cn = function* ({ allowStale: t = this.allowStale } = {}) {
52103
52104
  if (E(this, Xe)) for (let e = E(this, Qe); !(!_t(this, vt, Wc).call(this, e) || ((t || !E(this, Kr).call(this, e)) && (yield e), e === E(this, gr))); ) e = E(this, Hr)[e];
52104
52105
  }, fn = function* ({ allowStale: t = this.allowStale } = {}) {
52105
52106
  if (E(this, Xe)) for (let e = E(this, gr); !(!_t(this, vt, Wc).call(this, e) || ((t || !E(this, Kr).call(this, e)) && (yield e), e === E(this, Qe))); ) e = E(this, Ar)[e];
@@ -52125,7 +52126,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52125
52126
  if (_.__returned === _) throw y;
52126
52127
  }, h = (y, w) => {
52127
52128
  var v;
52128
- let S = (v = E(this, ls)) == null ? void 0 : v.call(this, t, i, o);
52129
+ let S = (v = E(this, cs)) == null ? void 0 : v.call(this, t, i, o);
52129
52130
  S && S instanceof Promise && S.then((B) => y(B === void 0 ? void 0 : B), w), a.signal.addEventListener("abort", () => {
52130
52131
  (!r.ignoreFetchAbort || r.allowStaleOnFetchAbort) && (y(void 0), r.allowStaleOnFetchAbort && (y = (B) => u(B, !0)));
52131
52132
  });
@@ -52139,7 +52140,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52139
52140
  return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof Zu;
52140
52141
  }, Yc = function(t, e) {
52141
52142
  E(this, Hr)[e] = t, E(this, Ar)[t] = e;
52142
- }, ds = function(t) {
52143
+ }, ps = function(t) {
52143
52144
  t !== E(this, Qe) && (t === E(this, gr) ? Tt(this, gr, E(this, Ar)[t]) : _t(this, vt, Yc).call(this, E(this, Hr)[t], E(this, Ar)[t]), _t(this, vt, Yc).call(this, E(this, Qe), t), Tt(this, Qe, t));
52144
52145
  }, hn = function(t, e) {
52145
52146
  var r, n;
@@ -52889,7 +52890,7 @@ function _V(t, e, r, n) {
52889
52890
  const i = e.isActive, a = e.fillProgress >= 1, s = t.fitScale ?? 1, o = n.size * s, u = t.width * s;
52890
52891
  return {
52891
52892
  op: "DrawCaptionWord",
52892
- text: bs(t.text, e.visibleCharacters, t.isRTL),
52893
+ text: ws(t.text, e.visibleCharacters, t.isRTL),
52893
52894
  x: t.x,
52894
52895
  y: t.y,
52895
52896
  width: u,
@@ -53029,7 +53030,7 @@ function z0(t) {
53029
53030
  h: c.h / l
53030
53031
  }, m = JSON.stringify({ fill: o.fill, bbox: h });
53031
53032
  let d = i.get(m);
53032
- d || (d = ps(e, o.fill, h), i.set(m, d)), e.fillStyle = d, e.fill(u), e.restore();
53033
+ d || (d = ms(e, o.fill, h), i.set(m, d)), e.fillStyle = d, e.fill(u), e.restore();
53033
53034
  continue;
53034
53035
  }
53035
53036
  if (s.op === "StrokePath") {
@@ -53049,7 +53050,7 @@ function z0(t) {
53049
53050
  }
53050
53051
  if (s.op === "Rectangle") {
53051
53052
  e.save();
53052
- const o = ps(e, s.fill, {
53053
+ const o = ms(e, s.fill, {
53053
53054
  x: s.x,
53054
53055
  y: s.y,
53055
53056
  w: s.width,
@@ -53080,7 +53081,7 @@ function z0(t) {
53080
53081
  y: s.cy - s.ry,
53081
53082
  w: s.rx * 2,
53082
53083
  h: s.ry * 2
53083
- }, u = ps(e, s.fill, o);
53084
+ }, u = ms(e, s.fill, o);
53084
53085
  e.fillStyle = u, e.beginPath();
53085
53086
  const l = (s.rotation ?? 0) * Math.PI / 180;
53086
53087
  e.ellipse(s.cx, s.cy, s.rx, s.ry, l, 0, Math.PI * 2), e.fill(), e.restore();
@@ -53094,7 +53095,7 @@ function z0(t) {
53094
53095
  }
53095
53096
  if (s.op === "Polygon") {
53096
53097
  e.save();
53097
- const o = s.gradientBBox ?? kV(s.points), u = ps(e, s.fill, o);
53098
+ const o = s.gradientBBox ?? kV(s.points), u = ms(e, s.fill, o);
53098
53099
  e.fillStyle = u, e.beginPath(), Zm(e, s.points, s.closed ?? !0), e.fill(), e.restore();
53099
53100
  continue;
53100
53101
  }
@@ -53104,7 +53105,7 @@ function z0(t) {
53104
53105
  }
53105
53106
  if (s.op === "ShapePath") {
53106
53107
  e.save(), e.translate(s.x, s.y);
53107
- const o = s.gradientBBox ?? M2(s.path), u = ps(e, s.fill, o);
53108
+ const o = s.gradientBBox ?? M2(s.path), u = ms(e, s.fill, o);
53108
53109
  e.fillStyle = u;
53109
53110
  const l = new Path2D(s.path);
53110
53111
  e.fill(l), e.restore();
@@ -53140,7 +53141,7 @@ function z0(t) {
53140
53141
  h++;
53141
53142
  continue;
53142
53143
  }
53143
- if (bs(d.text, d.visibleCharacters, d.isRTL).length === 0) {
53144
+ if (ws(d.text, d.visibleCharacters, d.isRTL).length === 0) {
53144
53145
  h++;
53145
53146
  continue;
53146
53147
  }
@@ -53148,7 +53149,7 @@ function z0(t) {
53148
53149
  let v = h + 1;
53149
53150
  for (; v < c.length; ) {
53150
53151
  const ct = c[v];
53151
- if (!ct.background || bs(ct.text, ct.visibleCharacters, ct.isRTL).length === 0 || Math.round(ct.y) !== Math.round(d.y)) break;
53152
+ if (!ct.background || ws(ct.text, ct.visibleCharacters, ct.isRTL).length === 0 || Math.round(ct.y) !== Math.round(d.y)) break;
53152
53153
  w.push(ct), v++;
53153
53154
  }
53154
53155
  const S = w[0], B = w[w.length - 1], A = S.background, _ = S.x + S.transform.translateX, x = B.x + B.transform.translateX + B.width - _;
@@ -53167,7 +53168,7 @@ function z0(t) {
53167
53168
  e.restore(), h = v;
53168
53169
  }
53169
53170
  for (const d of u) {
53170
- const y = bs(d.text, d.visibleCharacters, d.isRTL);
53171
+ const y = ws(d.text, d.visibleCharacters, d.isRTL);
53171
53172
  if (y.length === 0) continue;
53172
53173
  e.save();
53173
53174
  const w = Math.round(d.x + d.transform.translateX), v = Math.round(d.y + d.transform.translateY);
@@ -53223,7 +53224,7 @@ function z0(t) {
53223
53224
  return w !== 0 ? w : d.x + d.transform.translateX - (y.x + y.transform.translateX);
53224
53225
  });
53225
53226
  for (const d of m) {
53226
- const y = bs(d.text, d.visibleCharacters, d.isRTL);
53227
+ const y = ws(d.text, d.visibleCharacters, d.isRTL);
53227
53228
  if (y.length === 0) continue;
53228
53229
  e.save();
53229
53230
  let w = Math.round(d.x + d.transform.translateX), v = Math.round(d.y + d.transform.translateY);
@@ -53291,7 +53292,7 @@ function Ko(t, e, r, n, i, a) {
53291
53292
  const s = Math.max(0, Math.min(n, i) / 2), o = Math.max(0, Math.min(a, s)), u = new Path2D();
53292
53293
  u.moveTo(e + o, r), u.arcTo(e + n, r, e + n, r + i, o), u.arcTo(e + n, r + i, e, r + i, o), u.arcTo(e, r + i, e, r, o), u.arcTo(e, r, e + n, r, o), u.closePath(), t.fill(u);
53293
53294
  }
53294
- function ps(t, e, r) {
53295
+ function ms(t, e, r) {
53295
53296
  if (e.kind === "solid") {
53296
53297
  const o = Ze(e.color, e.opacity);
53297
53298
  return `rgba(${o.r},${o.g},${o.b},${o.a})`;
@@ -53945,7 +53946,7 @@ async function WV(t = {}) {
53945
53946
  };
53946
53947
  }
53947
53948
  const Wm = 1500, Ym = 5e3, YV = 1e4;
53948
- class ks extends hr {
53949
+ class Ss extends hr {
53949
53950
  fontRegistry = null;
53950
53951
  layoutEngine = null;
53951
53952
  captionLayout = null;
@@ -53964,7 +53965,7 @@ class ks extends hr {
53964
53965
  resolvedPauseThreshold = 500;
53965
53966
  constructor(e, r) {
53966
53967
  const { fit: n, ...i } = r;
53967
- super(e, i, Fe.RichCaption);
53968
+ super(e, i, Ne.RichCaption);
53968
53969
  }
53969
53970
  static createPlaceholderWords(e) {
53970
53971
  const r = ["Your", "captions", "will", "appear", "here"], a = r.length * 400 + 600, s = r.length * 400, o = Math.max(1, Math.ceil((e - s) / a) + 1), u = [];
@@ -53991,7 +53992,7 @@ class ks extends hr {
53991
53992
  return;
53992
53993
  }
53993
53994
  let n;
53994
- if (e.src ? Nr(e.src) ? (n = ks.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0) : (n = await this.fetchAndParseSubtitle(e.src), this.resolvedPauseThreshold = 5) : n = (e.words ?? []).map((i) => ({
53995
+ if (e.src ? Nr(e.src) ? (n = Ss.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0) : (n = await this.fetchAndParseSubtitle(e.src), this.resolvedPauseThreshold = 5) : n = (e.words ?? []).map((i) => ({
53995
53996
  text: i.text,
53996
53997
  start: i.start,
53997
53998
  end: i.end,
@@ -54018,7 +54019,7 @@ class ks extends hr {
54018
54019
  async reloadAsset() {
54019
54020
  const e = this.clipConfiguration.asset;
54020
54021
  if (!e.src || Nr(e.src)) {
54021
- this.loadComplete && !this.isPlaceholder && (this.resolvedPauseThreshold = 500, this.words = ks.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0, await this.reconfigure());
54022
+ this.loadComplete && !this.isPlaceholder && (this.resolvedPauseThreshold = 500, this.words = Ss.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0, await this.reconfigure());
54022
54023
  return;
54023
54024
  }
54024
54025
  this.loadComplete = !1, this.texture && (this.texture.destroy(), this.texture = null), this.sprite && (this.sprite.destroy(), this.sprite = null), this.captionLayout = null, this.validatedAsset = null, this.generatorConfig = null, this.canvas = null, this.painter = null, this.isPlaceholder = !1, this.needsResolution = !1;
@@ -54036,7 +54037,7 @@ class ks extends hr {
54036
54037
  if (!(!this.loadComplete || !this.layoutEngine || !this.canvas || !this.painter))
54037
54038
  try {
54038
54039
  const e = this.clipConfiguration.asset;
54039
- this.isPlaceholder && (this.words = ks.createPlaceholderWords(this.getLength() * 1e3));
54040
+ this.isPlaceholder && (this.words = Ss.createPlaceholderWords(this.getLength() * 1e3));
54040
54041
  const r = `${e.font?.family ?? "Roboto"}|${e.font?.weight ?? 400}`;
54041
54042
  r !== this.lastRegisteredFontKey && (await this.registerFonts(e), this.lastRegisteredFontKey = r);
54042
54043
  const n = this.buildCanvasPayload(e, this.words), i = Nc.safeParse(n);
@@ -54131,11 +54132,11 @@ class ks extends hr {
54131
54132
  return { url: c.src, baseFontFamily: i, fontWeight: s };
54132
54133
  const h = this.buildWeightedFamilyName(i, s);
54133
54134
  if (h) {
54134
- const d = ka(h);
54135
+ const d = Sa(h);
54135
54136
  if (d)
54136
54137
  return { url: d, baseFontFamily: i, fontWeight: s };
54137
54138
  }
54138
- const m = ka(e);
54139
+ const m = Sa(e);
54139
54140
  return m ? { url: m, baseFontFamily: i, fontWeight: s } : null;
54140
54141
  }
54141
54142
  buildWeightedFamilyName(e, r) {
@@ -54313,7 +54314,7 @@ class er extends hr {
54313
54314
  }
54314
54315
  constructor(e, r) {
54315
54316
  const { fit: n, ...i } = r;
54316
- super(e, i, Fe.RichText);
54317
+ super(e, i, Ne.RichText);
54317
54318
  }
54318
54319
  resolveFontWeight(e, r) {
54319
54320
  const n = e.font?.weight;
@@ -54339,7 +54340,7 @@ class er extends hr {
54339
54340
  const y = this.edit.getFontMetadata(), w = (s || a).toLowerCase(), S = l.filter((B) => !ug(B.src)).find((B) => y.get(B.src)?.baseFamilyName.toLowerCase() === w);
54340
54341
  S && (h = [{ src: S.src, family: s || a, weight: u.toString() }]);
54341
54342
  }
54342
- const d = h || a && ka(a, u) ? s || a : void 0;
54343
+ const d = h || a && Sa(a, u) ? s || a : void 0;
54343
54344
  return {
54344
54345
  ...e,
54345
54346
  width: n,
@@ -54383,7 +54384,7 @@ class er extends hr {
54383
54384
  if (!n)
54384
54385
  return;
54385
54386
  const i = er.getFontSourceCacheKey(n), a = er.fontCapabilityCache.get(i), s = a ?? this.createFontCapabilityCheckPromise(n);
54386
- a || er.fontCapabilityCache.set(i, s), this.fontSupportsBold = await s, r && this.edit.getInternalEvents().emit(Me.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
54387
+ a || er.fontCapabilityCache.set(i, s), this.fontSupportsBold = await s, r && this.edit.getInternalEvents().emit(Fe.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
54387
54388
  }
54388
54389
  supportsBold() {
54389
54390
  return this.fontSupportsBold;
@@ -54398,7 +54399,7 @@ class er extends hr {
54398
54399
  });
54399
54400
  if (o)
54400
54401
  return { url: o.src, baseFontFamily: n, fontWeight: r };
54401
- const u = ka(e, r);
54402
+ const u = Sa(e, r);
54402
54403
  return u ? { url: u, baseFontFamily: n, fontWeight: r } : null;
54403
54404
  }
54404
54405
  reconfigureAfterRestore() {
@@ -54518,7 +54519,7 @@ class er extends hr {
54518
54519
  });
54519
54520
  }
54520
54521
  update(e, r) {
54521
- if (super.update(e, r), r === Us.SEEK_ELAPSED_MARKER && (this.isRendering = !1, this.pendingRenderTime = null, this.lastRenderedTime = -1), !!this.isActive() && this.loadComplete && this.textEngine && this.renderer && !this.isRendering) {
54522
+ if (super.update(e, r), r === Ea.SEEK_ELAPSED_MARKER && (this.isRendering = !1, this.pendingRenderTime = null, this.lastRenderedTime = -1), !!this.isActive() && this.loadComplete && this.textEngine && this.renderer && !this.isRendering) {
54522
54523
  const n = this.getPlaybackTime(), i = 1 / 60;
54523
54524
  Math.abs(n - this.lastRenderedTime) > i && this.renderFrameSafe(n);
54524
54525
  }
@@ -54580,7 +54581,7 @@ class HV extends hr {
54580
54581
  shape;
54581
54582
  shapeBackground;
54582
54583
  constructor(e, r) {
54583
- super(e, r, Fe.Shape), this.shape = null, this.shapeBackground = null;
54584
+ super(e, r, Ne.Shape), this.shape = null, this.shapeBackground = null;
54584
54585
  }
54585
54586
  async load() {
54586
54587
  await super.load();
@@ -54611,7 +54612,7 @@ class HV extends hr {
54611
54612
  color: e.fill?.color ?? "#ffffff",
54612
54613
  alpha: e.fill?.opacity ?? 1
54613
54614
  }, a.fill(), e.stroke) {
54614
- const s = new Fs.OutlineFilter({
54615
+ const s = new Ns.OutlineFilter({
54615
54616
  thickness: e.stroke.width,
54616
54617
  color: e.stroke.color
54617
54618
  });
@@ -54645,7 +54646,7 @@ class Li extends hr {
54645
54646
  renderedHeight = 0;
54646
54647
  pendingRender = null;
54647
54648
  constructor(e, r) {
54648
- super(e, r, Fe.Svg);
54649
+ super(e, r, Ne.Svg);
54649
54650
  }
54650
54651
  static async initializeResvg() {
54651
54652
  if (!Li.resvgInitialized) {
@@ -54727,7 +54728,7 @@ class Li extends hr {
54727
54728
  }), URL.revokeObjectURL(s), this.texture = ot.Texture.from(o), this.sprite = new ot.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
54728
54729
  }
54729
54730
  }
54730
- class Ss {
54731
+ class Ds {
54731
54732
  static DEFAULT_BLINK_INTERVAL_MS = 500;
54732
54733
  static DEFAULT_CURSOR_WIDTH_PX = 2;
54733
54734
  static DEFAULT_CURSOR_COLOR = 16777215;
@@ -54746,7 +54747,7 @@ class Ss {
54746
54747
  color = 16777215;
54747
54748
  isVisible = !0;
54748
54749
  constructor(e, r, n, i) {
54749
- this.parent = e, this.textElement = r, this.clipConfig = n, this.width = i?.width ?? Ss.DEFAULT_CURSOR_WIDTH_PX, this.color = i?.color ?? Ss.DEFAULT_CURSOR_COLOR, this.blinkIntervalMs = i?.blinkInterval ?? Ss.DEFAULT_BLINK_INTERVAL_MS, this.textPosition = 0, this.isBlinking = !1, this.isVisible = !0, this.blinkInterval = null, this.createCursor();
54750
+ this.parent = e, this.textElement = r, this.clipConfig = n, this.width = i?.width ?? Ds.DEFAULT_CURSOR_WIDTH_PX, this.color = i?.color ?? Ds.DEFAULT_CURSOR_COLOR, this.blinkIntervalMs = i?.blinkInterval ?? Ds.DEFAULT_BLINK_INTERVAL_MS, this.textPosition = 0, this.isBlinking = !1, this.isVisible = !0, this.blinkInterval = null, this.createCursor();
54750
54751
  }
54751
54752
  updatePosition(e) {
54752
54753
  if (!this.cursor || !this.textElement) {
@@ -55069,7 +55070,7 @@ class xi {
55069
55070
  }, xi.CLICK_HANDLER_DELAY_MS);
55070
55071
  }
55071
55072
  createEditingEnvironment() {
55072
- this.setupEditingContainer(), this.editingContainer && this.editableText && (this.textCursor = new Ss(this.editingContainer, this.editableText, this.clipConfig), this.textCursor.updatePosition(this.targetText.text.length), this.textCursor.startBlinking()), this.setupTextInputHandler(), this.updateTextAlignment();
55073
+ this.setupEditingContainer(), this.editingContainer && this.editableText && (this.textCursor = new Ds(this.editingContainer, this.editableText, this.clipConfig), this.textCursor.updatePosition(this.targetText.text.length), this.textCursor.startBlinking()), this.setupTextInputHandler(), this.updateTextAlignment();
55073
55074
  }
55074
55075
  setupEditingContainer() {
55075
55076
  this.editingContainer = new ot.Container(), this.parent.getContainer().addChild(this.editingContainer);
@@ -55146,13 +55147,13 @@ class Ca extends hr {
55146
55147
  text = null;
55147
55148
  textEditor = null;
55148
55149
  constructor(e, r) {
55149
- super(e, r, Fe.Text);
55150
+ super(e, r, Ne.Text);
55150
55151
  }
55151
55152
  async load() {
55152
55153
  await super.load();
55153
55154
  const e = this.clipConfiguration.asset, r = e.font?.family ?? "Open Sans";
55154
55155
  if (await this.loadFont(r), this.background = new ot.Graphics(), this.drawBackground(), this.text = new ot.Text({ text: e.text ?? "", style: this.createTextStyle(e) }), this.positionText(e), e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
55155
- const n = new Fs.OutlineFilter({
55156
+ const n = new Ns.OutlineFilter({
55156
55157
  thickness: e.stroke.width,
55157
55158
  color: e.stroke.color
55158
55159
  });
@@ -55170,7 +55171,7 @@ class Ca extends hr {
55170
55171
  const e = this.clipConfiguration.asset, r = e.font?.family ?? "Open Sans";
55171
55172
  if (await this.loadFont(r), this.drawBackground(), this.text) {
55172
55173
  if (this.text.text = e.text ?? "", this.text.style = this.createTextStyle(e), e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
55173
- const n = new Fs.OutlineFilter({
55174
+ const n = new Ns.OutlineFilter({
55174
55175
  thickness: e.stroke.width,
55175
55176
  color: e.stroke.color
55176
55177
  });
@@ -55243,7 +55244,7 @@ class Ca extends hr {
55243
55244
  const { baseFontFamily: r, fontWeight: n } = Fr(e), i = `${r}-${n}`;
55244
55245
  if (Ca.loadedFonts.has(i))
55245
55246
  return;
55246
- const a = ka(e);
55247
+ const a = Sa(e);
55247
55248
  if (a) {
55248
55249
  const s = new FontFace(r, `url(${a})`, {
55249
55250
  weight: n.toString()
@@ -55259,7 +55260,7 @@ class qV extends hr {
55259
55260
  aiOverlay = null;
55260
55261
  lastPrompt = "";
55261
55262
  constructor(e, r) {
55262
- super(e, r, Fe.TextToImage);
55263
+ super(e, r, Ne.TextToImage);
55263
55264
  }
55264
55265
  async load() {
55265
55266
  await super.load();
@@ -55294,7 +55295,7 @@ class qV extends hr {
55294
55295
  }
55295
55296
  class XV extends hr {
55296
55297
  constructor(e, r) {
55297
- super(e, r, Fe.TextToSpeech);
55298
+ super(e, r, Ne.TextToSpeech);
55298
55299
  }
55299
55300
  async load() {
55300
55301
  await super.load(), this.configureKeyframes();
@@ -55316,9 +55317,9 @@ class KV extends hr {
55316
55317
  activeSyncTimer;
55317
55318
  skipVideoUpdate;
55318
55319
  constructor(e, r) {
55319
- super(e, r, Fe.Video), this.texture = null, this.sprite = null, this.placeholder = null, this.isPlaying = !1;
55320
+ super(e, r, Ne.Video), this.texture = null, this.sprite = null, this.placeholder = null, this.isPlaying = !1;
55320
55321
  const n = this.clipConfiguration.asset;
55321
- this.volumeKeyframeBuilder = new Ea(n.volume ?? 1, this.getLength()), this.syncTimer = 0, this.activeSyncTimer = 0, this.skipVideoUpdate = !1;
55322
+ this.volumeKeyframeBuilder = new ka(n.volume ?? 1, this.getLength()), this.syncTimer = 0, this.activeSyncTimer = 0, this.skipVideoUpdate = !1;
55322
55323
  }
55323
55324
  async load() {
55324
55325
  await super.load();
@@ -55369,7 +55370,7 @@ class KV extends hr {
55369
55370
  reconfigureAfterRestore() {
55370
55371
  super.reconfigureAfterRestore();
55371
55372
  const e = this.clipConfiguration.asset;
55372
- this.volumeKeyframeBuilder = new Ea(e.volume ?? 1, this.getLength());
55373
+ this.volumeKeyframeBuilder = new ka(e.volume ?? 1, this.getLength());
55373
55374
  }
55374
55375
  async loadVideo() {
55375
55376
  const e = this.clipConfiguration.asset, { src: r } = e;
@@ -55436,7 +55437,7 @@ class Hm {
55436
55437
  case "caption":
55437
55438
  return new pu(e, r);
55438
55439
  case "rich-caption":
55439
- return new ks(e, r);
55440
+ return new Ss(e, r);
55440
55441
  case "svg":
55441
55442
  return new Li(e, r);
55442
55443
  case "text-to-image":
@@ -55486,7 +55487,7 @@ function JV(t) {
55486
55487
  function QV(t) {
55487
55488
  const e = JV(t);
55488
55489
  if (!e) return null;
55489
- const r = Fa.safeParse(e);
55490
+ const r = Na.safeParse(e);
55490
55491
  return r.success ? r.data : null;
55491
55492
  }
55492
55493
  function tO(t) {
@@ -55571,7 +55572,7 @@ async function V0(t, e, r) {
55571
55572
  desiredLength: i
55572
55573
  });
55573
55574
  if (o.type === "insert-track") {
55574
- Fa.parse(r), await t.executeEditCommand(new gd(o.insertionIndex, { clips: [r] }));
55575
+ Na.parse(r), await t.executeEditCommand(new gd(o.insertionIndex, { clips: [r] }));
55575
55576
  return;
55576
55577
  }
55577
55578
  await t.addClip(o.trackIndex, r);
@@ -56265,7 +56266,7 @@ class _O {
56265
56266
  */
56266
56267
  onPlayerLoaded(e) {
56267
56268
  const { player: r, trackIndex: n } = e;
56268
- if (r.playerType !== Fe.Luma)
56269
+ if (r.playerType !== Ne.Luma)
56269
56270
  return;
56270
56271
  const i = r, a = i.getSprite();
56271
56272
  if (!a?.texture) {
@@ -56275,7 +56276,7 @@ class _O {
56275
56276
  const s = this.getTracks();
56276
56277
  if (n >= s.length)
56277
56278
  return;
56278
- const u = s[n].filter((c) => c.playerType !== Fe.Luma);
56279
+ const u = s[n].filter((c) => c.playerType !== Ne.Luma);
56279
56280
  u.length === 0 || this.activeLumaMasks.find((c) => c.lumaPlayer === i) || (this.setupLumaMask(i, a.texture, u[0]), i.getContainer().parent?.removeChild(i.getContainer()));
56280
56281
  }
56281
56282
  setupLumaMask(e, r, n) {
@@ -56312,10 +56313,10 @@ class _O {
56312
56313
  }
56313
56314
  }
56314
56315
  setupEventListeners() {
56315
- this.events.on(Me.PlayerLoaded, this.onPlayerLoadedBound), this.events.on(Ot.ClipUpdated, this.onClipChangedBound), this.events.on(Me.PlayerMovedBetweenTracks, this.onClipChangedBound);
56316
+ this.events.on(Fe.PlayerLoaded, this.onPlayerLoadedBound), this.events.on(Ot.ClipUpdated, this.onClipChangedBound), this.events.on(Fe.PlayerMovedBetweenTracks, this.onClipChangedBound);
56316
56317
  }
56317
56318
  removeEventListeners() {
56318
- this.events.off(Me.PlayerLoaded, this.onPlayerLoadedBound), this.events.off(Ot.ClipUpdated, this.onClipChangedBound), this.events.off(Me.PlayerMovedBetweenTracks, this.onClipChangedBound);
56319
+ this.events.off(Fe.PlayerLoaded, this.onPlayerLoadedBound), this.events.off(Ot.ClipUpdated, this.onClipChangedBound), this.events.off(Fe.PlayerMovedBetweenTracks, this.onClipChangedBound);
56319
56320
  }
56320
56321
  processPendingMaskCleanup() {
56321
56322
  for (let e = this.pendingMaskCleanup.length - 1; e >= 0; e -= 1) {
@@ -56337,7 +56338,7 @@ class _O {
56337
56338
  if (!this.getCanvas()) return;
56338
56339
  const r = this.getTracks();
56339
56340
  for (let n = 0; n < r.length; n += 1) {
56340
- const i = r[n], a = i.find((u) => u.playerType === Fe.Luma), s = i.filter((u) => u.playerType !== Fe.Luma);
56341
+ const i = r[n], a = i.find((u) => u.playerType === Ne.Luma), s = i.filter((u) => u.playerType !== Ne.Luma);
56341
56342
  a && a.getContainer().parent?.removeChild(a.getContainer());
56342
56343
  const o = a && this.activeLumaMasks.find((u) => u.lumaPlayer === a);
56343
56344
  if (a && !o && s.length > 0) {
@@ -57615,7 +57616,7 @@ class Aa {
57615
57616
  const Jm = /* @__PURE__ */ new Set(["asset", "start", "length", "id"]), YO = /* @__PURE__ */ new Set(["text-to-image", "image-to-video", "text-to-speech"]);
57616
57617
  class HO {
57617
57618
  constructor(e) {
57618
- this.edit = e, this.edit.getInternalEvents().on(Me.Resolved, this.onResolved);
57619
+ this.edit = e, this.edit.getInternalEvents().on(Fe.Resolved, this.onResolved);
57619
57620
  }
57620
57621
  isReconciling = !1;
57621
57622
  /**
@@ -57712,7 +57713,7 @@ class HO {
57712
57713
  a.layer = n + 1, a.clipId = r, this.edit.registerPlayerByClipId(r, a), this.edit.addPlayerToTracksArray(n, a), this.edit.addPlayerToContainer(n, a);
57713
57714
  const s = e.asset?.type ?? "unknown";
57714
57715
  return a.load().then(() => {
57715
- this.edit.getInternalEvents().emit(Me.PlayerLoaded, {
57716
+ this.edit.getInternalEvents().emit(Fe.PlayerLoaded, {
57716
57717
  player: a,
57717
57718
  trackIndex: n,
57718
57719
  clipIndex: i
@@ -57840,7 +57841,7 @@ class HO {
57840
57841
  * Clean up event subscriptions.
57841
57842
  */
57842
57843
  dispose() {
57843
- this.edit.getInternalEvents().off(Me.Resolved, this.onResolved);
57844
+ this.edit.getInternalEvents().off(Fe.Resolved, this.onResolved);
57844
57845
  }
57845
57846
  }
57846
57847
  const qO = /* @__PURE__ */ new Set(["text", "src"]);
@@ -58050,7 +58051,7 @@ function Qm(t, e) {
58050
58051
  output: t.getOutput()
58051
58052
  };
58052
58053
  }
58053
- class Us {
58054
+ class Ea {
58054
58055
  // ─── Constants ────────────────────────────────────────────────────────────
58055
58056
  static MAX_HISTORY_SIZE = 100;
58056
58057
  /** @internal */
@@ -58100,7 +58101,7 @@ class Us {
58100
58101
  * Create an Edit instance from a template configuration.
58101
58102
  */
58102
58103
  constructor(e) {
58103
- gs.parse(e), this.tracks = [], this.playbackTime = 0, this.totalDuration = 0, this.isPlaying = !1, this.document = new Aa(e);
58104
+ ys.parse(e), this.tracks = [], this.playbackTime = 0, this.totalDuration = 0, this.isPlaying = !1, this.document = new Aa(e);
58104
58105
  const r = this.document.getResolution(), n = this.document.getAspectRatio();
58105
58106
  this.backgroundColor = this.document.getBackground() ?? "#000000", this.size = r ? ju(r, n) : this.document.getSize(), this.assetLoader = new Gu(), this.internalEvents = new Z2(), this.events = this.internalEvents, this.lumaMaskController = new _O(
58106
58107
  () => this.canvas,
@@ -58120,7 +58121,7 @@ class Us {
58120
58121
  async initializeFromDocument(e = "load") {
58121
58122
  const r = this.document.toJSON(), n = r.merge ?? [];
58122
58123
  this.mergeFieldService.loadFromSerialized(n), this.lastResolved = null;
58123
- const i = this.detectMergeFieldBindings(n), a = gs.parse(r);
58124
+ const i = this.detectMergeFieldBindings(n), a = ys.parse(r);
58124
58125
  await Promise.all(
58125
58126
  (a.timeline.fonts ?? []).map(async (o) => {
58126
58127
  const u = o.src, l = { src: u, parser: Wu.Name }, c = await this.assetLoader.load(u, l);
@@ -58155,11 +58156,11 @@ class Us {
58155
58156
  }
58156
58157
  /* @internal Update canvas visuals after size change (viewport mask, background, zoom). */
58157
58158
  updateCanvasForSize() {
58158
- this.internalEvents.emit(Me.ViewportSizeChanged, {
58159
+ this.internalEvents.emit(Fe.ViewportSizeChanged, {
58159
58160
  width: this.size.width,
58160
58161
  height: this.size.height,
58161
58162
  backgroundColor: this.backgroundColor
58162
- }), this.internalEvents.emit(Me.ViewportNeedsZoomToFit);
58163
+ }), this.internalEvents.emit(Fe.ViewportNeedsZoomToFit);
58163
58164
  }
58164
58165
  play() {
58165
58166
  this.isPlaying = !0, this.internalEvents.emit(Ot.PlaybackPlay);
@@ -58168,7 +58169,7 @@ class Us {
58168
58169
  this.isPlaying = !1, this.internalEvents.emit(Ot.PlaybackPause);
58169
58170
  }
58170
58171
  seek(e) {
58171
- this.playbackTime = Math.max(0, Math.min(e, this.totalDuration)), this.pause(), this.update(0, Us.SEEK_ELAPSED_MARKER);
58172
+ this.playbackTime = Math.max(0, Math.min(e, this.totalDuration)), this.pause(), this.update(0, Ea.SEEK_ELAPSED_MARKER);
58172
58173
  }
58173
58174
  stop() {
58174
58175
  this.seek(0);
@@ -58177,7 +58178,7 @@ class Us {
58177
58178
  * Reload the edit with a new configuration (hot-reload).
58178
58179
  */
58179
58180
  async loadEdit(e) {
58180
- if (gs.parse(e), this.pause(), this.tracks.length > 0 && !this.hasStructuralChanges(e)) {
58181
+ if (ys.parse(e), this.pause(), this.tracks.length > 0 && !this.hasStructuralChanges(e)) {
58181
58182
  this.lastResolved = null;
58182
58183
  const s = structuredClone(e);
58183
58184
  this.preserveClipIdsForGranularUpdate(s);
@@ -58189,11 +58190,11 @@ class Us {
58189
58190
  try {
58190
58191
  this.lastResolved = null, this.document = new Aa(e);
58191
58192
  const s = this.document.getResolution(), o = this.document.getAspectRatio();
58192
- this.size = s ? ju(s, o) : this.document.getSize(), this.backgroundColor = this.document.getBackground() ?? "#000000", this.internalEvents.emit(Me.ViewportSizeChanged, {
58193
+ this.size = s ? ju(s, o) : this.document.getSize(), this.backgroundColor = this.document.getBackground() ?? "#000000", this.internalEvents.emit(Fe.ViewportSizeChanged, {
58193
58194
  width: this.size.width,
58194
58195
  height: this.size.height,
58195
58196
  backgroundColor: this.backgroundColor
58196
- }), this.internalEvents.emit(Me.ViewportNeedsZoomToFit), this.clearClips(), await this.initializeFromDocument("loadEdit");
58197
+ }), this.internalEvents.emit(Fe.ViewportNeedsZoomToFit), this.clearClips(), await this.initializeFromDocument("loadEdit");
58197
58198
  } catch (s) {
58198
58199
  throw this.document = r, this.lastResolved = n, this.size = i, this.backgroundColor = a, s;
58199
58200
  }
@@ -58222,7 +58223,7 @@ class Us {
58222
58223
  * @internal
58223
58224
  */
58224
58225
  validateEdit(e) {
58225
- const r = gs.safeParse(e);
58226
+ const r = ys.safeParse(e);
58226
58227
  return r.success ? { valid: !0, errors: [] } : {
58227
58228
  valid: !1,
58228
58229
  errors: r.error.issues.map((n) => ({
@@ -58283,7 +58284,7 @@ class Us {
58283
58284
  resolve() {
58284
58285
  return this.lastResolved = Qm(this.document, {
58285
58286
  mergeFields: this.mergeFieldService
58286
- }), this.internalEvents.emit(Me.Resolved, { edit: this.lastResolved }), this.lastResolved;
58287
+ }), this.internalEvents.emit(Fe.Resolved, { edit: this.lastResolved }), this.lastResolved;
58287
58288
  }
58288
58289
  /** @internal Resolve a single clip and update its player. */
58289
58290
  resolveClip(e) {
@@ -58313,7 +58314,7 @@ class Us {
58313
58314
  return this.playerReconciler.updateSinglePlayer(r, h.resolved, h.trackIndex, h.clipIndex) !== !1;
58314
58315
  }
58315
58316
  addClip(e, r) {
58316
- Fa.parse(r);
58317
+ Na.parse(r);
58317
58318
  const n = new lO(e, r);
58318
58319
  return this.executeCommand(n);
58319
58320
  }
@@ -58481,7 +58482,7 @@ class Us {
58481
58482
  console.warn(`Cannot remove non-empty track ${e}`);
58482
58483
  return;
58483
58484
  }
58484
- this.tracks.splice(e, 1), this.internalEvents.emit(Me.TrackContainerRemoved, { trackIndex: e });
58485
+ this.tracks.splice(e, 1), this.internalEvents.emit(Fe.TrackContainerRemoved, { trackIndex: e });
58485
58486
  for (let n = e; n < this.tracks.length; n += 1)
58486
58487
  for (const i of this.tracks[n])
58487
58488
  i.layer = n + 1;
@@ -58519,8 +58520,8 @@ class Us {
58519
58520
  if (!n) return;
58520
58521
  const i = n[r];
58521
58522
  if (!i) return;
58522
- if (i.playerType !== Fe.Luma) {
58523
- const o = n.findIndex((u) => u.playerType === Fe.Luma);
58523
+ if (i.playerType !== Ne.Luma) {
58524
+ const o = n.findIndex((u) => u.playerType === Ne.Luma);
58524
58525
  if (o !== -1) {
58525
58526
  const u = o < r ? r - 1 : r, l = new n0(e, o);
58526
58527
  await this.executeCommand(l);
@@ -58625,7 +58626,7 @@ class Us {
58625
58626
  const r = this.commandHistory.slice(this.commandIndex + 1);
58626
58627
  for (const n of r)
58627
58628
  n.dispose?.();
58628
- for (this.commandHistory = this.commandHistory.slice(0, this.commandIndex + 1), this.commandHistory.push(e), this.commandIndex += 1; this.commandHistory.length > Us.MAX_HISTORY_SIZE; )
58629
+ for (this.commandHistory = this.commandHistory.slice(0, this.commandIndex + 1), this.commandHistory.push(e), this.commandIndex += 1; this.commandHistory.length > Ea.MAX_HISTORY_SIZE; )
58629
58630
  this.commandHistory.shift()?.dispose?.(), this.commandIndex -= 1;
58630
58631
  }
58631
58632
  /**
@@ -58966,7 +58967,7 @@ class Us {
58966
58967
  disposeClips() {
58967
58968
  if (this.clipsToDispose.size !== 0) {
58968
58969
  for (const e of this.clipsToDispose)
58969
- e.playerType === Fe.Luma && (this.lumaMaskController.cleanupForPlayer(e), e.clipId && this.lumaContentRelations.delete(e.clipId));
58970
+ e.playerType === Ne.Luma && (this.lumaMaskController.cleanupForPlayer(e), e.clipId && this.lumaContentRelations.delete(e.clipId));
58970
58971
  for (const e of this.clipsToDispose)
58971
58972
  e.clipId && this.playerByClipId.delete(e.clipId);
58972
58973
  for (const e of this.clipsToDispose)
@@ -59066,11 +59067,11 @@ class Us {
59066
59067
  * @internal Used by PlayerReconciler and commands
59067
59068
  */
59068
59069
  addPlayerToContainer(e, r) {
59069
- this.internalEvents.emit(Me.PlayerAddedToTrack, { player: r, trackIndex: e });
59070
+ this.internalEvents.emit(Fe.PlayerAddedToTrack, { player: r, trackIndex: e });
59070
59071
  }
59071
59072
  // Move a player's container to the appropriate track container
59072
59073
  movePlayerToTrackContainer(e, r, n) {
59073
- this.internalEvents.emit(Me.PlayerMovedBetweenTracks, {
59074
+ this.internalEvents.emit(Fe.PlayerMovedBetweenTracks, {
59074
59075
  player: e,
59075
59076
  fromTrackIndex: r,
59076
59077
  toTrackIndex: n
@@ -59086,7 +59087,7 @@ class Us {
59086
59087
  async addPlayer(e, r) {
59087
59088
  for (; this.tracks.length <= e; )
59088
59089
  this.tracks.push([]);
59089
- this.tracks[e].push(r), this.internalEvents.emit(Me.PlayerAddedToTrack, { player: r, trackIndex: e }), await r.load(), this.updateTotalDuration();
59090
+ this.tracks[e].push(r), this.internalEvents.emit(Fe.PlayerAddedToTrack, { player: r, trackIndex: e }), await r.load(), this.updateTotalDuration();
59090
59091
  }
59091
59092
  /** @internal */
59092
59093
  selectClip(e, r) {
@@ -59094,11 +59095,11 @@ class Us {
59094
59095
  }
59095
59096
  /** @internal – Visual focus without selection change or public event. */
59096
59097
  focusClip(e, r) {
59097
- this.internalEvents.emit(Me.ClipFocused, { trackIndex: e, clipIndex: r });
59098
+ this.internalEvents.emit(Fe.ClipFocused, { trackIndex: e, clipIndex: r });
59098
59099
  }
59099
59100
  /** @internal – Clear visual focus. */
59100
59101
  blurClip() {
59101
- this.internalEvents.emit(Me.ClipBlurred);
59102
+ this.internalEvents.emit(Fe.ClipBlurred);
59102
59103
  }
59103
59104
  /** @internal */
59104
59105
  clearSelection() {
@@ -59278,7 +59279,7 @@ class Us {
59278
59279
  return this.executeCommand(r);
59279
59280
  }
59280
59281
  setTimelineBackgroundInternal(e) {
59281
- nk.parse(e), this.backgroundColor = e, this.document.setBackground(e), this.internalEvents.emit(Me.ViewportSizeChanged, {
59282
+ nk.parse(e), this.backgroundColor = e, this.document.setBackground(e), this.internalEvents.emit(Fe.ViewportSizeChanged, {
59282
59283
  width: this.size.width,
59283
59284
  height: this.size.height,
59284
59285
  backgroundColor: this.backgroundColor
@@ -59379,7 +59380,7 @@ class Us {
59379
59380
  for (let r = 0; r < this.tracks.length; r += 1) {
59380
59381
  const n = this.tracks[r];
59381
59382
  for (const i of n)
59382
- if (i.playerType === Fe.Luma) {
59383
+ if (i.playerType === Ne.Luma) {
59383
59384
  const a = this.findBestContentMatch(r, i);
59384
59385
  if (a) {
59385
59386
  i.clipId && a.clipId && this.lumaContentRelations.set(i.clipId, a.clipId);
@@ -59400,18 +59401,25 @@ class Us {
59400
59401
  const n = this.tracks[e], i = r.getStart(), a = i + r.getLength();
59401
59402
  let s = null, o = 0;
59402
59403
  for (const u of n)
59403
- if (u.playerType !== Fe.Luma) {
59404
+ if (u.playerType !== Ne.Luma) {
59404
59405
  const l = u.getStart(), c = l + u.getLength(), h = $2(i, a, l, c);
59405
59406
  h > o && (o = h, s = u);
59406
59407
  }
59407
59408
  return s;
59408
59409
  }
59410
+ lastClipClick = null;
59411
+ static DoubleClickThresholdMs = 500;
59409
59412
  // ─── Intent Listeners ────────────────────────────────────────────────────────
59410
59413
  setupIntentListeners() {
59411
- this.internalEvents.on(Me.CanvasClipClicked, (e) => {
59412
- this.selectPlayer(e.player);
59413
- }), this.internalEvents.on(Me.CanvasBackgroundClicked, () => {
59414
- this.clearSelection();
59414
+ this.internalEvents.on(Fe.CanvasClipClicked, (e) => {
59415
+ if (!(this.getSelectedClipInfo()?.player === e.player)) {
59416
+ this.selectPlayer(e.player), this.lastClipClick = null;
59417
+ return;
59418
+ }
59419
+ const n = performance.now(), i = this.lastClipClick && n - this.lastClipClick.at <= Ea.DoubleClickThresholdMs;
59420
+ this.lastClipClick?.player === e.player && i ? (this.internalEvents.emit(Fe.CanvasClipDoubleClicked, { player: e.player }), this.lastClipClick = null) : this.lastClipClick = { player: e.player, at: n };
59421
+ }), this.internalEvents.on(Fe.CanvasBackgroundClicked, () => {
59422
+ this.clearSelection(), this.lastClipClick = null;
59415
59423
  });
59416
59424
  }
59417
59425
  // ─── Protected Accessors for Subclasses ─────────────────────────────────────
@@ -59500,7 +59508,7 @@ function iR(t) {
59500
59508
  };
59501
59509
  return e.width !== void 0 && n.width === void 0 && (n.width = e.width), e.height !== void 0 && n.height === void 0 && (n.height = e.height), n;
59502
59510
  }
59503
- class BR extends Us {
59511
+ class BR extends Ea {
59504
59512
  // Recursion guard for merge field updates (prevents stack overflow)
59505
59513
  isUpdatingMergeFields = !1;
59506
59514
  // ─── Merge Field API ───────────────────────────────────────────────────────
@@ -59597,7 +59605,7 @@ class BR extends Us {
59597
59605
  Gi(l, h, d);
59598
59606
  }
59599
59607
  delete l.id;
59600
- const c = Fa.safeParse(l);
59608
+ const c = Na.safeParse(l);
59601
59609
  if (!c.success)
59602
59610
  return c.error.issues[0]?.message ?? "Invalid value";
59603
59611
  }
@@ -59616,7 +59624,7 @@ class BR extends Us {
59616
59624
  const i = this.getResolvedClipById(e);
59617
59625
  if (!i) return !0;
59618
59626
  const a = structuredClone(i);
59619
- return Gi(a, r, n), delete a.id, Fa.safeParse(a).success;
59627
+ return Gi(a, r, n), delete a.id, Na.safeParse(a).success;
59620
59628
  }
59621
59629
  /** Check if any binding in a clip references the given field name. */
59622
59630
  clipUsesField(e, r) {
@@ -59771,25 +59779,25 @@ class BR extends Us {
59771
59779
  }
59772
59780
  var It, Ui = new Array(128).fill(void 0);
59773
59781
  Ui.push(void 0, null, !0, !1);
59774
- var Ds = Ui.length;
59782
+ var Fs = Ui.length;
59775
59783
  function kr(t) {
59776
- Ds === Ui.length && Ui.push(Ui.length + 1);
59777
- const e = Ds;
59778
- return Ds = Ui[e], Ui[e] = t, e;
59784
+ Fs === Ui.length && Ui.push(Ui.length + 1);
59785
+ const e = Fs;
59786
+ return Fs = Ui[e], Ui[e] = t, e;
59779
59787
  }
59780
59788
  function br(t) {
59781
59789
  return Ui[t];
59782
59790
  }
59783
59791
  function nR(t) {
59784
- t < 132 || (Ui[t] = Ds, Ds = t);
59792
+ t < 132 || (Ui[t] = Fs, Fs = t);
59785
59793
  }
59786
59794
  function ji(t) {
59787
59795
  const e = br(t);
59788
59796
  return nR(t), e;
59789
59797
  }
59790
- var js = 0, ws = null;
59798
+ var js = 0, _s = null;
59791
59799
  function uu() {
59792
- return (ws === null || ws.byteLength === 0) && (ws = new Uint8Array(It.memory.buffer)), ws;
59800
+ return (_s === null || _s.byteLength === 0) && (_s = new Uint8Array(It.memory.buffer)), _s;
59793
59801
  }
59794
59802
  var lu = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () => {
59795
59803
  throw Error("TextEncoder not available");
@@ -59826,9 +59834,9 @@ function L0(t, e, r) {
59826
59834
  function Z0(t) {
59827
59835
  return t == null;
59828
59836
  }
59829
- var _s = null;
59837
+ var xs = null;
59830
59838
  function Ke() {
59831
- return (_s === null || _s.byteLength === 0) && (_s = new Int32Array(It.memory.buffer)), _s;
59839
+ return (xs === null || xs.byteLength === 0) && (xs = new Int32Array(It.memory.buffer)), xs;
59832
59840
  }
59833
59841
  var Y2 = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
59834
59842
  throw Error("TextDecoder not available");
@@ -60179,7 +60187,7 @@ function hR() {
60179
60187
  }, t;
60180
60188
  }
60181
60189
  function dR(t, e) {
60182
- return It = t.exports, X2.__wbindgen_wasm_module = e, _s = null, ws = null, It;
60190
+ return It = t.exports, X2.__wbindgen_wasm_module = e, xs = null, _s = null, It;
60183
60191
  }
60184
60192
  async function X2(t) {
60185
60193
  if (It !== void 0)
@@ -60414,7 +60422,7 @@ var wR = Ge({
60414
60422
  delete Bt[T], Nt(() => jr(T, wt()));
60415
60423
  }, dt);
60416
60424
  return Bt[T] = { id: qt, timeout_ms: dt }, 0;
60417
- }, ce = () => 2147483648, pt = (T, dt) => Math.ceil(T / dt) * dt, Pe = (T) => {
60425
+ }, ce = () => 2147483648, pt = (T, dt) => Math.ceil(T / dt) * dt, Me = (T) => {
60418
60426
  var dt = N.buffer.byteLength, qt = (T - dt + 65535) / 65536 | 0;
60419
60427
  try {
60420
60428
  return N.grow(qt), I(), 1;
@@ -60429,7 +60437,7 @@ var wR = Ge({
60429
60437
  for (var fe = 1; fe <= 4; fe *= 2) {
60430
60438
  var ie = dt * (1 + 0.2 / fe);
60431
60439
  ie = Math.min(ie, T + 100663296);
60432
- var $e = Math.min(qt, pt(Math.max(T, ie), 65536)), zr = Pe($e);
60440
+ var $e = Math.min(qt, pt(Math.max(T, ie), 65536)), zr = Me($e);
60433
60441
  if (zr)
60434
60442
  return !0;
60435
60443
  }
@@ -60873,6 +60881,6 @@ const AR = CR(), ER = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
60873
60881
  default: AR
60874
60882
  }, Symbol.toStringTag, { value: "Module" }));
60875
60883
  export {
60876
- Us as Edit,
60884
+ Ea as Edit,
60877
60885
  BR as ShotstackEdit
60878
60886
  };