@bymos/agentkit-sdk 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- var yn = Object.defineProperty;
2
- var kn = (t, e, n) => e in t ? yn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var ee = (t, e, n) => kn(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { createRoot as bn } from "preact/compat/client";
1
+ var vn = Object.defineProperty;
2
+ var yn = (t, e, n) => e in t ? vn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var ee = (t, e, n) => yn(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { createRoot as kn } from "preact/compat/client";
5
5
  import { useState as Re, useRef as Ee, useEffect as je, createElement as ht } from "preact/compat";
6
6
  import { jsxs as N, jsx as f, Fragment as be } from "preact/jsx-runtime";
7
7
  var L;
@@ -229,11 +229,11 @@ const Ye = (t, e) => {
229
229
  }
230
230
  return { message: n };
231
231
  };
232
- let _n = Ye;
233
- function xn() {
234
- return _n;
232
+ let bn = Ye;
233
+ function _n() {
234
+ return bn;
235
235
  }
236
- const wn = (t) => {
236
+ const xn = (t) => {
237
237
  const { data: e, path: n, errorMaps: r, issueData: a } = t, i = [...n, ...a.path || []], s = {
238
238
  ...a,
239
239
  path: i
@@ -255,7 +255,7 @@ const wn = (t) => {
255
255
  };
256
256
  };
257
257
  function g(t, e) {
258
- const n = xn(), r = wn({
258
+ const n = _n(), r = xn({
259
259
  issueData: e,
260
260
  data: t.data,
261
261
  path: t.path,
@@ -538,7 +538,7 @@ class T {
538
538
  });
539
539
  }
540
540
  brand() {
541
- return new Bn({
541
+ return new Gn({
542
542
  typeName: b.ZodBranded,
543
543
  type: this,
544
544
  ...C(this._def)
@@ -573,28 +573,28 @@ class T {
573
573
  return this.safeParse(null).success;
574
574
  }
575
575
  }
576
- const Sn = /^c[^\s-]{8,}$/i, Cn = /^[0-9a-z]+$/, In = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Nn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Tn = /^[a-z0-9_-]{21}$/i, Ln = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Rn = /^[-+]?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)?)??$/, An = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, En = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
576
+ const wn = /^c[^\s-]{8,}$/i, Sn = /^[0-9a-z]+$/, Cn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, In = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Nn = /^[a-z0-9_-]{21}$/i, Tn = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ln = /^[-+]?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)?)??$/, Rn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, An = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
577
577
  let De;
578
- const jn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Zn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Mn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, On = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Vn = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Pn = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Bt = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Fn = new RegExp(`^${Bt}$`);
578
+ const En = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, jn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Zn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Mn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, On = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Vn = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Bt = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Pn = new RegExp(`^${Bt}$`);
579
579
  function Yt(t) {
580
580
  let e = "[0-5]\\d";
581
581
  t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
582
582
  const n = t.precision ? "+" : "?";
583
583
  return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`;
584
584
  }
585
- function Wn(t) {
585
+ function Fn(t) {
586
586
  return new RegExp(`^${Yt(t)}$`);
587
587
  }
588
- function zn(t) {
588
+ function Wn(t) {
589
589
  let e = `${Bt}T${Yt(t)}`;
590
590
  const n = [];
591
591
  return n.push(t.local ? "Z?" : "Z"), t.offset && n.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${n.join("|")})`, new RegExp(`^${e}$`);
592
592
  }
593
- function Dn(t, e) {
594
- return !!((e === "v4" || !e) && jn.test(t) || (e === "v6" || !e) && Mn.test(t));
593
+ function zn(t, e) {
594
+ return !!((e === "v4" || !e) && En.test(t) || (e === "v6" || !e) && Zn.test(t));
595
595
  }
596
- function Un(t, e) {
597
- if (!Ln.test(t))
596
+ function Dn(t, e) {
597
+ if (!Tn.test(t))
598
598
  return !1;
599
599
  try {
600
600
  const [n] = t.split(".");
@@ -606,8 +606,8 @@ function Un(t, e) {
606
606
  return !1;
607
607
  }
608
608
  }
609
- function $n(t, e) {
610
- return !!((e === "v4" || !e) && Zn.test(t) || (e === "v6" || !e) && On.test(t));
609
+ function Un(t, e) {
610
+ return !!((e === "v4" || !e) && jn.test(t) || (e === "v6" || !e) && Mn.test(t));
611
611
  }
612
612
  class Q extends T {
613
613
  _parse(e) {
@@ -658,43 +658,43 @@ class Q extends T {
658
658
  message: i.message
659
659
  }), r.dirty());
660
660
  } else if (i.kind === "email")
661
- An.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
661
+ Rn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
662
662
  validation: "email",
663
663
  code: h.invalid_string,
664
664
  message: i.message
665
665
  }), r.dirty());
666
666
  else if (i.kind === "emoji")
667
- De || (De = new RegExp(En, "u")), De.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
667
+ De || (De = new RegExp(An, "u")), De.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
668
668
  validation: "emoji",
669
669
  code: h.invalid_string,
670
670
  message: i.message
671
671
  }), r.dirty());
672
672
  else if (i.kind === "uuid")
673
- Nn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
673
+ In.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
674
674
  validation: "uuid",
675
675
  code: h.invalid_string,
676
676
  message: i.message
677
677
  }), r.dirty());
678
678
  else if (i.kind === "nanoid")
679
- Tn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
679
+ Nn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
680
680
  validation: "nanoid",
681
681
  code: h.invalid_string,
682
682
  message: i.message
683
683
  }), r.dirty());
684
684
  else if (i.kind === "cuid")
685
- Sn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
685
+ wn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
686
686
  validation: "cuid",
687
687
  code: h.invalid_string,
688
688
  message: i.message
689
689
  }), r.dirty());
690
690
  else if (i.kind === "cuid2")
691
- Cn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
691
+ Sn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
692
692
  validation: "cuid2",
693
693
  code: h.invalid_string,
694
694
  message: i.message
695
695
  }), r.dirty());
696
696
  else if (i.kind === "ulid")
697
- In.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
697
+ Cn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
698
698
  validation: "ulid",
699
699
  code: h.invalid_string,
700
700
  message: i.message
@@ -725,39 +725,39 @@ class Q extends T {
725
725
  code: h.invalid_string,
726
726
  validation: { endsWith: i.value },
727
727
  message: i.message
728
- }), r.dirty()) : i.kind === "datetime" ? zn(i).test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
728
+ }), r.dirty()) : i.kind === "datetime" ? Wn(i).test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
729
729
  code: h.invalid_string,
730
730
  validation: "datetime",
731
731
  message: i.message
732
- }), r.dirty()) : i.kind === "date" ? Fn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
732
+ }), r.dirty()) : i.kind === "date" ? Pn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
733
733
  code: h.invalid_string,
734
734
  validation: "date",
735
735
  message: i.message
736
- }), r.dirty()) : i.kind === "time" ? Wn(i).test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
736
+ }), r.dirty()) : i.kind === "time" ? Fn(i).test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
737
737
  code: h.invalid_string,
738
738
  validation: "time",
739
739
  message: i.message
740
- }), r.dirty()) : i.kind === "duration" ? Rn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
740
+ }), r.dirty()) : i.kind === "duration" ? Ln.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
741
741
  validation: "duration",
742
742
  code: h.invalid_string,
743
743
  message: i.message
744
- }), r.dirty()) : i.kind === "ip" ? Dn(e.data, i.version) || (a = this._getOrReturnCtx(e, a), g(a, {
744
+ }), r.dirty()) : i.kind === "ip" ? zn(e.data, i.version) || (a = this._getOrReturnCtx(e, a), g(a, {
745
745
  validation: "ip",
746
746
  code: h.invalid_string,
747
747
  message: i.message
748
- }), r.dirty()) : i.kind === "jwt" ? Un(e.data, i.alg) || (a = this._getOrReturnCtx(e, a), g(a, {
748
+ }), r.dirty()) : i.kind === "jwt" ? Dn(e.data, i.alg) || (a = this._getOrReturnCtx(e, a), g(a, {
749
749
  validation: "jwt",
750
750
  code: h.invalid_string,
751
751
  message: i.message
752
- }), r.dirty()) : i.kind === "cidr" ? $n(e.data, i.version) || (a = this._getOrReturnCtx(e, a), g(a, {
752
+ }), r.dirty()) : i.kind === "cidr" ? Un(e.data, i.version) || (a = this._getOrReturnCtx(e, a), g(a, {
753
753
  validation: "cidr",
754
754
  code: h.invalid_string,
755
755
  message: i.message
756
- }), r.dirty()) : i.kind === "base64" ? Vn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
756
+ }), r.dirty()) : i.kind === "base64" ? On.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
757
757
  validation: "base64",
758
758
  code: h.invalid_string,
759
759
  message: i.message
760
- }), r.dirty()) : i.kind === "base64url" ? Pn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
760
+ }), r.dirty()) : i.kind === "base64url" ? Vn.test(e.data) || (a = this._getOrReturnCtx(e, a), g(a, {
761
761
  validation: "base64url",
762
762
  code: h.invalid_string,
763
763
  message: i.message
@@ -992,7 +992,7 @@ Q.create = (t) => new Q({
992
992
  coerce: (t == null ? void 0 : t.coerce) ?? !1,
993
993
  ...C(t)
994
994
  });
995
- function Gn(t, e) {
995
+ function $n(t, e) {
996
996
  const n = (t.toString().split(".")[1] || "").length, r = (e.toString().split(".")[1] || "").length, a = n > r ? n : r, i = Number.parseInt(t.toFixed(a).replace(".", "")), s = Number.parseInt(e.toFixed(a).replace(".", ""));
997
997
  return i % s / 10 ** a;
998
998
  }
@@ -1031,7 +1031,7 @@ class _e extends T {
1031
1031
  inclusive: i.inclusive,
1032
1032
  exact: !1,
1033
1033
  message: i.message
1034
- }), a.dirty()) : i.kind === "multipleOf" ? Gn(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), g(r, {
1034
+ }), a.dirty()) : i.kind === "multipleOf" ? $n(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), g(r, {
1035
1035
  code: h.not_multiple_of,
1036
1036
  multipleOf: i.value,
1037
1037
  message: i.message
@@ -2569,7 +2569,7 @@ Nt.create = (t) => new Nt({
2569
2569
  typeName: b.ZodNaN,
2570
2570
  ...C(t)
2571
2571
  });
2572
- class Bn extends T {
2572
+ class Gn extends T {
2573
2573
  _parse(e) {
2574
2574
  const { ctx: n } = this._processInputParams(e), r = n.data;
2575
2575
  return this._def.type._parse({
@@ -2640,18 +2640,18 @@ var b;
2640
2640
  (function(t) {
2641
2641
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
2642
2642
  })(b || (b = {}));
2643
- const M = Q.create, Yn = He.create, Hn = Xe.create;
2643
+ const M = Q.create, Bn = He.create, Yn = Xe.create;
2644
2644
  ae.create;
2645
2645
  B.create;
2646
2646
  const Xt = Z.create;
2647
2647
  Oe.create;
2648
2648
  Ve.create;
2649
2649
  oe.create;
2650
- const Xn = Pe.create, Jt = pe.create;
2650
+ const Hn = Pe.create, Jt = pe.create;
2651
2651
  Fe.create;
2652
2652
  re.create;
2653
2653
  ve.create;
2654
- const Jn = Xt({
2654
+ const Xn = Xt({
2655
2655
  mode: Jt(["light", "dark", "system"]).optional(),
2656
2656
  accentColor: M().optional(),
2657
2657
  fontFamily: M().optional(),
@@ -2671,10 +2671,10 @@ const Jn = Xt({
2671
2671
  greeting: M().optional(),
2672
2672
  avatarUrl: M().optional(),
2673
2673
  privacyPolicyUrl: M().optional(),
2674
- streaming: Yn().optional(),
2675
- metadata: Xn(Hn()).optional(),
2676
- theme: Jn.optional()
2677
- }), Qn = Qt.omit({ agentId: !0, apiBaseUrl: !0 }).partial(), se = {
2674
+ streaming: Bn().optional(),
2675
+ metadata: Hn(Yn()).optional(),
2676
+ theme: Xn.optional()
2677
+ }), Jn = Qt.omit({ agentId: !0, apiBaseUrl: !0 }).partial(), se = {
2678
2678
  mode: "floating",
2679
2679
  streaming: !0,
2680
2680
  title: "AI Assistant",
@@ -2691,7 +2691,7 @@ function at(t, e) {
2691
2691
  let n;
2692
2692
  const r = e ? { ...e } : void 0;
2693
2693
  r && typeof r.theme == "object" && r.theme !== null ? (n = r.theme, delete r.theme) : r && typeof r.theme == "string" && (n = { mode: r.theme }, delete r.theme);
2694
- const a = r ? Qn.passthrough().safeParse(r).data : void 0, i = a ? Kt(a, t) : t, s = {
2694
+ const a = r ? Jn.passthrough().safeParse(r).data : void 0, i = a ? Kt(a, t) : t, s = {
2695
2695
  mode: ((o = i.theme) == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? se.theme.mode,
2696
2696
  accentColor: ((c = i.theme) == null ? void 0 : c.accentColor) ?? (n == null ? void 0 : n.accentColor) ?? se.theme.accentColor,
2697
2697
  fontFamily: ((d = i.theme) == null ? void 0 : d.fontFamily) ?? (n == null ? void 0 : n.fontFamily) ?? se.theme.fontFamily,
@@ -2835,7 +2835,7 @@ function We(t, e) {
2835
2835
  return setTimeout(n, t, e);
2836
2836
  });
2837
2837
  }
2838
- function Kn() {
2838
+ function Qn() {
2839
2839
  return new Promise(function(t) {
2840
2840
  var e = new MessageChannel();
2841
2841
  e.port1.onmessage = function() {
@@ -2843,7 +2843,7 @@ function Kn() {
2843
2843
  }, e.port2.postMessage(null);
2844
2844
  });
2845
2845
  }
2846
- function qn(t, e) {
2846
+ function Kn(t, e) {
2847
2847
  e === void 0 && (e = 1 / 0);
2848
2848
  var n = window.requestIdleCallback;
2849
2849
  return n ? new Promise(function(r) {
@@ -2875,7 +2875,7 @@ function Lt(t, e, n) {
2875
2875
  case 0:
2876
2876
  r = Array(t.length), a = Date.now(), i = 0, o.label = 1;
2877
2877
  case 1:
2878
- return i < t.length ? (r[i] = e(t[i], i), s = Date.now(), s >= a + n ? (a = s, [4, Kn()]) : [3, 3]) : [3, 4];
2878
+ return i < t.length ? (r[i] = e(t[i], i), s = Date.now(), s >= a + n ? (a = s, [4, Qn()]) : [3, 3]) : [3, 4];
2879
2879
  case 2:
2880
2880
  o.sent(), o.label = 3;
2881
2881
  case 3:
@@ -2890,14 +2890,14 @@ function Se(t) {
2890
2890
  return t.then(void 0, function() {
2891
2891
  }), t;
2892
2892
  }
2893
- function er(t, e) {
2893
+ function qn(t, e) {
2894
2894
  for (var n = 0, r = t.length; n < r; ++n)
2895
2895
  if (t[n] === e)
2896
2896
  return !0;
2897
2897
  return !1;
2898
2898
  }
2899
- function tr(t, e) {
2900
- return !er(t, e);
2899
+ function er(t, e) {
2900
+ return !qn(t, e);
2901
2901
  }
2902
2902
  function it(t) {
2903
2903
  return parseInt(t);
@@ -2919,7 +2919,7 @@ function nn(t, e) {
2919
2919
  var n = 1 / e;
2920
2920
  return Math.round(t * n) / n;
2921
2921
  }
2922
- function nr(t) {
2922
+ function tr(t) {
2923
2923
  for (var e, n, r = "Unexpected syntax '".concat(t, "'"), a = /^\s*([a-z-]*)(.*)$/i.exec(t), i = a[1] || void 0, s = {}, o = /([.:#][\w-]+|\[.+?\])/gi, c = function(p, m) {
2924
2924
  s[p] = s[p] || [], s[p].push(m);
2925
2925
  }; ; ) {
@@ -2948,7 +2948,7 @@ function nr(t) {
2948
2948
  }
2949
2949
  return [i, s];
2950
2950
  }
2951
- function rr(t) {
2951
+ function nr(t) {
2952
2952
  for (var e = new Uint8Array(t.length), n = 0; n < t.length; n++) {
2953
2953
  var r = t.charCodeAt(n);
2954
2954
  if (r > 127)
@@ -2975,18 +2975,18 @@ function F(t, e) {
2975
2975
  function j(t, e) {
2976
2976
  t[0] ^= e[0], t[1] ^= e[1];
2977
2977
  }
2978
- var ar = [4283543511, 3981806797], ir = [3301882366, 444984403];
2978
+ var rr = [4283543511, 3981806797], ar = [3301882366, 444984403];
2979
2979
  function Rt(t) {
2980
2980
  var e = [0, t[0] >>> 1];
2981
- j(t, e), z(t, ar), e[1] = t[0] >>> 1, j(t, e), z(t, ir), e[1] = t[0] >>> 1, j(t, e);
2981
+ j(t, e), z(t, rr), e[1] = t[0] >>> 1, j(t, e), z(t, ar), e[1] = t[0] >>> 1, j(t, e);
2982
2982
  }
2983
- var Te = [2277735313, 289559509], Le = [1291169091, 658871167], At = [0, 5], sr = [0, 1390208809], or = [0, 944331445];
2984
- function cr(t, e) {
2985
- var n = rr(t);
2983
+ var Te = [2277735313, 289559509], Le = [1291169091, 658871167], At = [0, 5], ir = [0, 1390208809], sr = [0, 944331445];
2984
+ function or(t, e) {
2985
+ var n = nr(t);
2986
2986
  e = e || 0;
2987
2987
  var r = [0, n.length], a = r[1] % 16, i = r[1] - a, s = [0, e], o = [0, e], c = [0, 0], d = [0, 0], l;
2988
2988
  for (l = 0; l < i; l = l + 16)
2989
- c[0] = n[l + 4] | n[l + 5] << 8 | n[l + 6] << 16 | n[l + 7] << 24, c[1] = n[l] | n[l + 1] << 8 | n[l + 2] << 16 | n[l + 3] << 24, d[0] = n[l + 12] | n[l + 13] << 8 | n[l + 14] << 16 | n[l + 15] << 24, d[1] = n[l + 8] | n[l + 9] << 8 | n[l + 10] << 16 | n[l + 11] << 24, z(c, Te), de(c, 31), z(c, Le), j(s, c), de(s, 27), te(s, o), z(s, At), te(s, sr), z(d, Le), de(d, 33), z(d, Te), j(o, d), de(o, 31), te(o, s), z(o, At), te(o, or);
2989
+ c[0] = n[l + 4] | n[l + 5] << 8 | n[l + 6] << 16 | n[l + 7] << 24, c[1] = n[l] | n[l + 1] << 8 | n[l + 2] << 16 | n[l + 3] << 24, d[0] = n[l + 12] | n[l + 13] << 8 | n[l + 14] << 16 | n[l + 15] << 24, d[1] = n[l + 8] | n[l + 9] << 8 | n[l + 10] << 16 | n[l + 11] << 24, z(c, Te), de(c, 31), z(c, Le), j(s, c), de(s, 27), te(s, o), z(s, At), te(s, ir), z(d, Le), de(d, 33), z(d, Te), j(o, d), de(o, 31), te(o, s), z(o, At), te(o, sr);
2990
2990
  c[0] = 0, c[1] = 0, d[0] = 0, d[1] = 0;
2991
2991
  var u = [0, 0];
2992
2992
  switch (a) {
@@ -3023,18 +3023,18 @@ function cr(t, e) {
3023
3023
  }
3024
3024
  return j(s, r), j(o, r), te(s, o), te(o, s), Rt(s), Rt(o), te(s, o), te(o, s), ("00000000" + (s[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (s[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (o[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (o[1] >>> 0).toString(16)).slice(-8);
3025
3025
  }
3026
- function dr(t) {
3026
+ function cr(t) {
3027
3027
  var e;
3028
3028
  return et({ name: t.name, message: t.message, stack: (e = t.stack) === null || e === void 0 ? void 0 : e.split(`
3029
3029
  `) }, t);
3030
3030
  }
3031
- function lr(t) {
3031
+ function dr(t) {
3032
3032
  return /^function\s.*?\{\s*\[native code]\s*}$/.test(String(t));
3033
3033
  }
3034
- function ur(t) {
3034
+ function lr(t) {
3035
3035
  return typeof t != "function";
3036
3036
  }
3037
- function fr(t, e) {
3037
+ function ur(t, e) {
3038
3038
  var n = Se(new Promise(function(r) {
3039
3039
  var a = Date.now();
3040
3040
  Tt(t.bind(null, e), function() {
@@ -3046,7 +3046,7 @@ function fr(t, e) {
3046
3046
  return { error: i[1], duration: o };
3047
3047
  });
3048
3048
  var c = i[1];
3049
- if (ur(c))
3049
+ if (lr(c))
3050
3050
  return r(function() {
3051
3051
  return { value: c, duration: o };
3052
3052
  });
@@ -3071,11 +3071,11 @@ function fr(t, e) {
3071
3071
  });
3072
3072
  };
3073
3073
  }
3074
- function hr(t, e, n, r) {
3074
+ function fr(t, e, n, r) {
3075
3075
  var a = Object.keys(t).filter(function(s) {
3076
- return tr(n, s);
3076
+ return er(n, s);
3077
3077
  }), i = Se(Lt(a, function(s) {
3078
- return fr(t[s], e);
3078
+ return ur(t[s], e);
3079
3079
  }, r));
3080
3080
  return function() {
3081
3081
  return H(this, void 0, void 0, function() {
@@ -3113,7 +3113,7 @@ function rn() {
3113
3113
  "msPointerEnabled" in e
3114
3114
  ]) >= 4;
3115
3115
  }
3116
- function mr() {
3116
+ function hr() {
3117
3117
  var t = window, e = navigator;
3118
3118
  return P(["msWriteProfilerMark" in t, "MSStream" in t, "msLaunchUri" in e, "msSaveBlob" in e]) >= 3 && !rn();
3119
3119
  }
@@ -3155,7 +3155,7 @@ function Ie() {
3155
3155
  var t = window;
3156
3156
  return (
3157
3157
  // Filters-out Chrome, Yandex, DuckDuckGo (macOS and iOS), Edge
3158
- lr(t.print) && // Doesn't work in Safari < 15.4
3158
+ dr(t.print) && // Doesn't work in Safari < 15.4
3159
3159
  String(t.browser) === "[object WebPageNamespace]"
3160
3160
  );
3161
3161
  }
@@ -3170,7 +3170,7 @@ function an() {
3170
3170
  "CanvasCaptureMediaStream" in n
3171
3171
  ]) >= 4;
3172
3172
  }
3173
- function pr() {
3173
+ function mr() {
3174
3174
  var t = window;
3175
3175
  return P([
3176
3176
  !("MediaSettingsRange" in t),
@@ -3179,7 +3179,7 @@ function pr() {
3179
3179
  "" + t.Reflect == "[object Reflect]"
3180
3180
  ]) >= 3;
3181
3181
  }
3182
- function gr() {
3182
+ function pr() {
3183
3183
  var t = window, e = t.URLPattern;
3184
3184
  return P([
3185
3185
  "union" in Set.prototype,
@@ -3188,7 +3188,7 @@ function gr() {
3188
3188
  "RGB8" in WebGLRenderingContext.prototype
3189
3189
  ]) >= 3;
3190
3190
  }
3191
- function vr() {
3191
+ function gr() {
3192
3192
  var t = window;
3193
3193
  return P([
3194
3194
  "DOMRectList" in t,
@@ -3207,7 +3207,7 @@ function Ne() {
3207
3207
  n.supports("text-transform: full-width")
3208
3208
  ]) >= 4;
3209
3209
  }
3210
- function yr() {
3210
+ function vr() {
3211
3211
  if (navigator.platform === "iPad")
3212
3212
  return !0;
3213
3213
  var t = screen, e = t.width / t.height;
@@ -3221,11 +3221,11 @@ function yr() {
3221
3221
  e > 0.65 && e < 1.53
3222
3222
  ]) >= 2;
3223
3223
  }
3224
- function kr() {
3224
+ function yr() {
3225
3225
  var t = document;
3226
3226
  return t.fullscreenElement || t.msFullscreenElement || t.mozFullScreenElement || t.webkitFullscreenElement || null;
3227
3227
  }
3228
- function br() {
3228
+ function kr() {
3229
3229
  var t = document;
3230
3230
  return (t.exitFullscreen || t.msExitFullscreen || t.mozCancelFullScreen || t.webkitExitFullscreen).call(t);
3231
3231
  }
@@ -3240,7 +3240,7 @@ function ot() {
3240
3240
  !("sinkId" in new Audio())
3241
3241
  ]) >= 2 : e ? P(["onorientationchange" in n, "orientation" in n, /android/i.test(r.appVersion)]) >= 2 : !1;
3242
3242
  }
3243
- function _r() {
3243
+ function br() {
3244
3244
  var t = navigator, e = window, n = Audio.prototype, r = e.visualViewport;
3245
3245
  return P([
3246
3246
  "srLatency" in n,
@@ -3251,21 +3251,21 @@ function _r() {
3251
3251
  // Not available in Samsung Internet 21
3252
3252
  ]) >= 3;
3253
3253
  }
3254
- function xr() {
3255
- return Cr() ? -4 : wr();
3254
+ function _r() {
3255
+ return Sr() ? -4 : xr();
3256
3256
  }
3257
- function wr() {
3257
+ function xr() {
3258
3258
  var t = window, e = t.OfflineAudioContext || t.webkitOfflineAudioContext;
3259
3259
  if (!e)
3260
3260
  return -2;
3261
- if (Sr())
3261
+ if (wr())
3262
3262
  return -1;
3263
3263
  var n = 4500, r = 5e3, a = new e(1, r, 44100), i = a.createOscillator();
3264
3264
  i.type = "triangle", i.frequency.value = 1e4;
3265
3265
  var s = a.createDynamicsCompressor();
3266
3266
  s.threshold.value = -50, s.knee.value = 40, s.ratio.value = 12, s.attack.value = 0, s.release.value = 0.25, i.connect(s), s.connect(a.destination), i.start(0);
3267
- var o = Ir(a), c = o[0], d = o[1], l = Se(c.then(function(u) {
3268
- return Nr(u.getChannelData(0).subarray(n));
3267
+ var o = Cr(a), c = o[0], d = o[1], l = Se(c.then(function(u) {
3268
+ return Ir(u.getChannelData(0).subarray(n));
3269
3269
  }, function(u) {
3270
3270
  if (u.name === "timeout" || u.name === "suspended")
3271
3271
  return -3;
@@ -3275,17 +3275,17 @@ function wr() {
3275
3275
  return d(), l;
3276
3276
  };
3277
3277
  }
3278
- function Sr() {
3279
- return G() && !st() && !vr();
3278
+ function wr() {
3279
+ return G() && !st() && !gr();
3280
3280
  }
3281
- function Cr() {
3281
+ function Sr() {
3282
3282
  return (
3283
3283
  // Safari ≥17
3284
3284
  G() && Ne() && Ie() || // Samsung Internet ≥26
3285
- Ce() && _r() && gr()
3285
+ Ce() && br() && pr()
3286
3286
  );
3287
3287
  }
3288
- function Ir(t) {
3288
+ function Cr(t) {
3289
3289
  var e = 3, n = 500, r = 500, a = 5e3, i = function() {
3290
3290
  }, s = new Promise(function(o, c) {
3291
3291
  var d = !1, l = 0, u = 0;
@@ -3323,7 +3323,7 @@ function Ir(t) {
3323
3323
  });
3324
3324
  return [s, i];
3325
3325
  }
3326
- function Nr(t) {
3326
+ function Ir(t) {
3327
3327
  for (var e = 0, n = 0; n < t.length; ++n)
3328
3328
  e += Math.abs(t[n]);
3329
3329
  return e;
@@ -3386,14 +3386,14 @@ function sn(t, e, n) {
3386
3386
  });
3387
3387
  });
3388
3388
  }
3389
- function Tr(t) {
3390
- for (var e = nr(t), n = e[0], r = e[1], a = document.createElement(n ?? "div"), i = 0, s = Object.keys(r); i < s.length; i++) {
3389
+ function Nr(t) {
3390
+ for (var e = tr(t), n = e[0], r = e[1], a = document.createElement(n ?? "div"), i = 0, s = Object.keys(r); i < s.length; i++) {
3391
3391
  var o = s[i], c = r[o].join(" ");
3392
- o === "style" ? Lr(a.style, c) : a.setAttribute(o, c);
3392
+ o === "style" ? Tr(a.style, c) : a.setAttribute(o, c);
3393
3393
  }
3394
3394
  return a;
3395
3395
  }
3396
- function Lr(t, e) {
3396
+ function Tr(t, e) {
3397
3397
  for (var n = 0, r = e.split(";"); n < r.length; n++) {
3398
3398
  var a = r[n], i = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(a);
3399
3399
  if (i) {
@@ -3402,7 +3402,7 @@ function Lr(t, e) {
3402
3402
  }
3403
3403
  }
3404
3404
  }
3405
- function Rr() {
3405
+ function Lr() {
3406
3406
  for (var t = window; ; ) {
3407
3407
  var e = t.parent;
3408
3408
  if (!e || e === t)
@@ -3418,7 +3418,7 @@ function Rr() {
3418
3418
  t = e;
3419
3419
  }
3420
3420
  }
3421
- var Ar = "mmMwWLliI0O&1", Er = "48px", le = ["monospace", "sans-serif", "serif"], jt = [
3421
+ var Rr = "mmMwWLliI0O&1", Ar = "48px", le = ["monospace", "sans-serif", "serif"], jt = [
3422
3422
  // This is android-specific font from "Roboto" family
3423
3423
  "sans-serif-thin",
3424
3424
  "ARNO PRO",
@@ -3473,16 +3473,16 @@ var Ar = "mmMwWLliI0O&1", Er = "48px", le = ["monospace", "sans-serif", "serif"]
3473
3473
  "Vrinda",
3474
3474
  "ZWAdobeF"
3475
3475
  ];
3476
- function jr() {
3476
+ function Er() {
3477
3477
  var t = this;
3478
3478
  return sn(function(e, n) {
3479
3479
  var r = n.document;
3480
3480
  return H(t, void 0, void 0, function() {
3481
3481
  var a, i, s, o, c, d, l, u, p, m, w, k;
3482
3482
  return X(this, function(E) {
3483
- for (a = r.body, a.style.fontSize = Er, i = r.createElement("div"), i.style.setProperty("visibility", "hidden", "important"), s = {}, o = {}, c = function(x) {
3483
+ for (a = r.body, a.style.fontSize = Ar, i = r.createElement("div"), i.style.setProperty("visibility", "hidden", "important"), s = {}, o = {}, c = function(x) {
3484
3484
  var S = r.createElement("span"), I = S.style;
3485
- return I.position = "absolute", I.top = "0", I.left = "0", I.fontFamily = x, S.textContent = Ar, i.appendChild(S), S;
3485
+ return I.position = "absolute", I.top = "0", I.left = "0", I.fontFamily = x, S.textContent = Rr, i.appendChild(S), S;
3486
3486
  }, d = function(x, S) {
3487
3487
  return c("'".concat(x, "',").concat(S));
3488
3488
  }, l = function() {
@@ -3510,7 +3510,7 @@ function jr() {
3510
3510
  });
3511
3511
  });
3512
3512
  }
3513
- function Zr() {
3513
+ function jr() {
3514
3514
  var t = navigator.plugins;
3515
3515
  if (t) {
3516
3516
  for (var e = [], n = 0; n < t.length; ++n) {
@@ -3533,25 +3533,25 @@ function Zr() {
3533
3533
  return e;
3534
3534
  }
3535
3535
  }
3536
- function Mr() {
3537
- return Or(Ur());
3536
+ function Zr() {
3537
+ return Mr(Dr());
3538
3538
  }
3539
- function Or(t) {
3540
- var e, n = !1, r, a, i = Vr(), s = i[0], o = i[1];
3541
- return Pr(s, o) ? (n = Fr(o), t ? r = a = "skipped" : (e = Wr(s, o), r = e[0], a = e[1])) : r = a = "unsupported", { winding: n, geometry: r, text: a };
3539
+ function Mr(t) {
3540
+ var e, n = !1, r, a, i = Or(), s = i[0], o = i[1];
3541
+ return Vr(s, o) ? (n = Pr(o), t ? r = a = "skipped" : (e = Fr(s, o), r = e[0], a = e[1])) : r = a = "unsupported", { winding: n, geometry: r, text: a };
3542
3542
  }
3543
- function Vr() {
3543
+ function Or() {
3544
3544
  var t = document.createElement("canvas");
3545
3545
  return t.width = 1, t.height = 1, [t, t.getContext("2d")];
3546
3546
  }
3547
- function Pr(t, e) {
3547
+ function Vr(t, e) {
3548
3548
  return !!(e && t.toDataURL);
3549
3549
  }
3550
- function Fr(t) {
3550
+ function Pr(t) {
3551
3551
  return t.rect(0, 0, 10, 10), t.rect(2, 2, 6, 6), !t.isPointInPath(5, 5, "evenodd");
3552
3552
  }
3553
- function Wr(t, e) {
3554
- zr(t, e);
3553
+ function Fr(t, e) {
3554
+ Wr(t, e);
3555
3555
  var n = Ue(t), r = Ue(t);
3556
3556
  if (n !== r)
3557
3557
  return [
@@ -3559,11 +3559,11 @@ function Wr(t, e) {
3559
3559
  "unstable"
3560
3560
  /* ImageStatus.Unstable */
3561
3561
  ];
3562
- Dr(t, e);
3562
+ zr(t, e);
3563
3563
  var a = Ue(t);
3564
3564
  return [a, n];
3565
3565
  }
3566
- function zr(t, e) {
3566
+ function Wr(t, e) {
3567
3567
  t.width = 240, t.height = 60, e.textBaseline = "alphabetic", e.fillStyle = "#f60", e.fillRect(100, 1, 62, 20), e.fillStyle = "#069", e.font = '11pt "Times New Roman"';
3568
3568
  var n = "Cwm fjordbank gly ".concat(
3569
3569
  "😃"
@@ -3571,7 +3571,7 @@ function zr(t, e) {
3571
3571
  );
3572
3572
  e.fillText(n, 2, 15), e.fillStyle = "rgba(102, 204, 0, 0.2)", e.font = "18pt Arial", e.fillText(n, 4, 45);
3573
3573
  }
3574
- function Dr(t, e) {
3574
+ function zr(t, e) {
3575
3575
  t.width = 122, t.height = 110, e.globalCompositeOperation = "multiply";
3576
3576
  for (var n = 0, r = [
3577
3577
  ["#f2f", 40, 40],
@@ -3586,10 +3586,10 @@ function Dr(t, e) {
3586
3586
  function Ue(t) {
3587
3587
  return t.toDataURL();
3588
3588
  }
3589
- function Ur() {
3589
+ function Dr() {
3590
3590
  return G() && Ne() && Ie();
3591
3591
  }
3592
- function $r() {
3592
+ function Ur() {
3593
3593
  var t = navigator, e = 0, n;
3594
3594
  t.maxTouchPoints !== void 0 ? e = it(t.maxTouchPoints) : t.msMaxTouchPoints !== void 0 && (e = t.msMaxTouchPoints);
3595
3595
  try {
@@ -3604,54 +3604,54 @@ function $r() {
3604
3604
  touchStart: r
3605
3605
  };
3606
3606
  }
3607
- function Gr() {
3607
+ function $r() {
3608
3608
  return navigator.oscpu;
3609
3609
  }
3610
- function Br() {
3610
+ function Gr() {
3611
3611
  var t = navigator, e = [], n = t.language || t.userLanguage || t.browserLanguage || t.systemLanguage;
3612
3612
  if (n !== void 0 && e.push([n]), Array.isArray(t.languages))
3613
- Ce() && pr() || e.push(t.languages);
3613
+ Ce() && mr() || e.push(t.languages);
3614
3614
  else if (typeof t.languages == "string") {
3615
3615
  var r = t.languages;
3616
3616
  r && e.push(r.split(","));
3617
3617
  }
3618
3618
  return e;
3619
3619
  }
3620
- function Yr() {
3620
+ function Br() {
3621
3621
  return window.screen.colorDepth;
3622
3622
  }
3623
- function Hr() {
3623
+ function Yr() {
3624
3624
  return J($(navigator.deviceMemory), void 0);
3625
3625
  }
3626
- function Xr() {
3626
+ function Hr() {
3627
3627
  if (!(G() && Ne() && Ie()))
3628
- return Jr();
3628
+ return Xr();
3629
3629
  }
3630
- function Jr() {
3630
+ function Xr() {
3631
3631
  var t = screen, e = function(r) {
3632
3632
  return J(it(r), null);
3633
3633
  }, n = [e(t.width), e(t.height)];
3634
3634
  return n.sort().reverse(), n;
3635
3635
  }
3636
- var Qr = 2500, Kr = 10, Ae, $e;
3637
- function qr() {
3636
+ var Jr = 2500, Qr = 10, Ae, $e;
3637
+ function Kr() {
3638
3638
  if ($e === void 0) {
3639
3639
  var t = function() {
3640
3640
  var e = tt();
3641
- nt(e) ? $e = setTimeout(t, Qr) : (Ae = e, $e = void 0);
3641
+ nt(e) ? $e = setTimeout(t, Jr) : (Ae = e, $e = void 0);
3642
3642
  };
3643
3643
  t();
3644
3644
  }
3645
3645
  }
3646
- function ea() {
3646
+ function qr() {
3647
3647
  var t = this;
3648
- return qr(), function() {
3648
+ return Kr(), function() {
3649
3649
  return H(t, void 0, void 0, function() {
3650
3650
  var e;
3651
3651
  return X(this, function(n) {
3652
3652
  switch (n.label) {
3653
3653
  case 0:
3654
- return e = tt(), nt(e) ? Ae ? [2, qt([], Ae, !0)] : kr() ? [4, br()] : [3, 2] : [3, 2];
3654
+ return e = tt(), nt(e) ? Ae ? [2, qt([], Ae, !0)] : yr() ? [4, kr()] : [3, 2] : [3, 2];
3655
3655
  case 1:
3656
3656
  n.sent(), e = tt(), n.label = 2;
3657
3657
  case 2:
@@ -3661,13 +3661,13 @@ function ea() {
3661
3661
  });
3662
3662
  };
3663
3663
  }
3664
- function ta() {
3664
+ function ea() {
3665
3665
  var t = this;
3666
3666
  if (G() && Ne() && Ie())
3667
3667
  return function() {
3668
3668
  return Promise.resolve(void 0);
3669
3669
  };
3670
- var e = ea();
3670
+ var e = qr();
3671
3671
  return function() {
3672
3672
  return H(t, void 0, void 0, function() {
3673
3673
  var n, r;
@@ -3677,7 +3677,7 @@ function ta() {
3677
3677
  return [4, e()];
3678
3678
  case 1:
3679
3679
  return n = a.sent(), r = function(i) {
3680
- return i === null ? null : nn(i, Kr);
3680
+ return i === null ? null : nn(i, Qr);
3681
3681
  }, [2, [r(n[0]), r(n[1]), r(n[2]), r(n[3])]];
3682
3682
  }
3683
3683
  });
@@ -3699,20 +3699,20 @@ function nt(t) {
3699
3699
  return !1;
3700
3700
  return !0;
3701
3701
  }
3702
- function na() {
3702
+ function ta() {
3703
3703
  return J(it(navigator.hardwareConcurrency), void 0);
3704
3704
  }
3705
- function ra() {
3705
+ function na() {
3706
3706
  var t, e = (t = window.Intl) === null || t === void 0 ? void 0 : t.DateTimeFormat;
3707
3707
  if (e) {
3708
3708
  var n = new e().resolvedOptions().timeZone;
3709
3709
  if (n)
3710
3710
  return n;
3711
3711
  }
3712
- var r = -aa();
3712
+ var r = -ra();
3713
3713
  return "UTC".concat(r >= 0 ? "+" : "").concat(r);
3714
3714
  }
3715
- function aa() {
3715
+ function ra() {
3716
3716
  var t = (/* @__PURE__ */ new Date()).getFullYear();
3717
3717
  return Math.max(
3718
3718
  // `getTimezoneOffset` returns a number as a string in some unidentified cases
@@ -3720,42 +3720,42 @@ function aa() {
3720
3720
  $(new Date(t, 6, 1).getTimezoneOffset())
3721
3721
  );
3722
3722
  }
3723
- function ia() {
3723
+ function aa() {
3724
3724
  try {
3725
3725
  return !!window.sessionStorage;
3726
3726
  } catch {
3727
3727
  return !0;
3728
3728
  }
3729
3729
  }
3730
- function sa() {
3730
+ function ia() {
3731
3731
  try {
3732
3732
  return !!window.localStorage;
3733
3733
  } catch {
3734
3734
  return !0;
3735
3735
  }
3736
3736
  }
3737
- function oa() {
3738
- if (!(rn() || mr()))
3737
+ function sa() {
3738
+ if (!(rn() || hr()))
3739
3739
  try {
3740
3740
  return !!window.indexedDB;
3741
3741
  } catch {
3742
3742
  return !0;
3743
3743
  }
3744
3744
  }
3745
- function ca() {
3745
+ function oa() {
3746
3746
  return !!window.openDatabase;
3747
3747
  }
3748
- function da() {
3748
+ function ca() {
3749
3749
  return navigator.cpuClass;
3750
3750
  }
3751
- function la() {
3751
+ function da() {
3752
3752
  var t = navigator.platform;
3753
- return t === "MacIntel" && G() && !st() ? yr() ? "iPad" : "iPhone" : t;
3753
+ return t === "MacIntel" && G() && !st() ? vr() ? "iPad" : "iPhone" : t;
3754
3754
  }
3755
- function ua() {
3755
+ function la() {
3756
3756
  return navigator.vendor || "";
3757
3757
  }
3758
- function fa() {
3758
+ function ua() {
3759
3759
  for (var t = [], e = 0, n = [
3760
3760
  // Blink and some browsers on iOS
3761
3761
  "chrome",
@@ -3791,7 +3791,7 @@ function fa() {
3791
3791
  }
3792
3792
  return t.sort();
3793
3793
  }
3794
- function ha() {
3794
+ function fa() {
3795
3795
  var t = document;
3796
3796
  try {
3797
3797
  t.cookie = "cookietest=1; SameSite=Strict;";
@@ -3801,7 +3801,7 @@ function ha() {
3801
3801
  return !1;
3802
3802
  }
3803
3803
  }
3804
- function ma() {
3804
+ function ha() {
3805
3805
  var t = atob;
3806
3806
  return {
3807
3807
  abpIndo: [
@@ -4064,18 +4064,18 @@ function ma() {
4064
4064
  ]
4065
4065
  };
4066
4066
  }
4067
- function pa(t) {
4067
+ function ma(t) {
4068
4068
  var e = t === void 0 ? {} : t, n = e.debug;
4069
4069
  return H(this, void 0, void 0, function() {
4070
4070
  var r, a, i, s, o, c;
4071
4071
  return X(this, function(d) {
4072
4072
  switch (d.label) {
4073
4073
  case 0:
4074
- return ga() ? (r = ma(), a = Object.keys(r), i = (c = []).concat.apply(c, a.map(function(l) {
4074
+ return pa() ? (r = ha(), a = Object.keys(r), i = (c = []).concat.apply(c, a.map(function(l) {
4075
4075
  return r[l];
4076
- })), [4, va(i)]) : [2, void 0];
4076
+ })), [4, ga(i)]) : [2, void 0];
4077
4077
  case 1:
4078
- return s = d.sent(), n && ya(r, s), o = a.filter(function(l) {
4078
+ return s = d.sent(), n && va(r, s), o = a.filter(function(l) {
4079
4079
  var u = r[l], p = P(u.map(function(m) {
4080
4080
  return s[m];
4081
4081
  }));
@@ -4085,10 +4085,10 @@ function pa(t) {
4085
4085
  });
4086
4086
  });
4087
4087
  }
4088
- function ga() {
4088
+ function pa() {
4089
4089
  return G() || ot();
4090
4090
  }
4091
- function va(t) {
4091
+ function ga(t) {
4092
4092
  var e;
4093
4093
  return H(this, void 0, void 0, function() {
4094
4094
  var n, r, a, i, c, s, o, c;
@@ -4096,7 +4096,7 @@ function va(t) {
4096
4096
  switch (d.label) {
4097
4097
  case 0:
4098
4098
  for (n = document, r = n.createElement("div"), a = new Array(t.length), i = {}, Zt(r), c = 0; c < t.length; ++c)
4099
- s = Tr(t[c]), s.tagName === "DIALOG" && s.show(), o = n.createElement("div"), Zt(o), o.appendChild(s), r.appendChild(o), a[c] = s;
4099
+ s = Nr(t[c]), s.tagName === "DIALOG" && s.show(), o = n.createElement("div"), Zt(o), o.appendChild(s), r.appendChild(o), a[c] = s;
4100
4100
  d.label = 1;
4101
4101
  case 1:
4102
4102
  return n.body ? [3, 3] : [4, We(50)];
@@ -4118,7 +4118,7 @@ function va(t) {
4118
4118
  function Zt(t) {
4119
4119
  t.style.setProperty("visibility", "hidden", "important"), t.style.setProperty("display", "block", "important");
4120
4120
  }
4121
- function ya(t, e) {
4121
+ function va(t, e) {
4122
4122
  for (var n = "DOM blockers debug:\n```", r = 0, a = Object.keys(t); r < a.length; r++) {
4123
4123
  var i = a[r];
4124
4124
  n += `
@@ -4129,16 +4129,15 @@ function ya(t, e) {
4129
4129
  `.concat(e[c] ? "🚫" : "➡️", " ").concat(c);
4130
4130
  }
4131
4131
  }
4132
- console.log("".concat(n, "\n```"));
4133
4132
  }
4134
- function ka() {
4133
+ function ya() {
4135
4134
  for (var t = 0, e = ["rec2020", "p3", "srgb"]; t < e.length; t++) {
4136
4135
  var n = e[t];
4137
4136
  if (matchMedia("(color-gamut: ".concat(n, ")")).matches)
4138
4137
  return n;
4139
4138
  }
4140
4139
  }
4141
- function ba() {
4140
+ function ka() {
4142
4141
  if (Mt("inverted"))
4143
4142
  return !0;
4144
4143
  if (Mt("none"))
@@ -4147,7 +4146,7 @@ function ba() {
4147
4146
  function Mt(t) {
4148
4147
  return matchMedia("(inverted-colors: ".concat(t, ")")).matches;
4149
4148
  }
4150
- function _a() {
4149
+ function ba() {
4151
4150
  if (Ot("active"))
4152
4151
  return !0;
4153
4152
  if (Ot("none"))
@@ -4156,16 +4155,16 @@ function _a() {
4156
4155
  function Ot(t) {
4157
4156
  return matchMedia("(forced-colors: ".concat(t, ")")).matches;
4158
4157
  }
4159
- var xa = 100;
4160
- function wa() {
4158
+ var _a = 100;
4159
+ function xa() {
4161
4160
  if (matchMedia("(min-monochrome: 0)").matches) {
4162
- for (var t = 0; t <= xa; ++t)
4161
+ for (var t = 0; t <= _a; ++t)
4163
4162
  if (matchMedia("(max-monochrome: ".concat(t, ")")).matches)
4164
4163
  return t;
4165
4164
  throw new Error("Too high value");
4166
4165
  }
4167
4166
  }
4168
- function Sa() {
4167
+ function wa() {
4169
4168
  if (ue("no-preference"))
4170
4169
  return 0;
4171
4170
  if (ue("high") || ue("more"))
@@ -4178,7 +4177,7 @@ function Sa() {
4178
4177
  function ue(t) {
4179
4178
  return matchMedia("(prefers-contrast: ".concat(t, ")")).matches;
4180
4179
  }
4181
- function Ca() {
4180
+ function Sa() {
4182
4181
  if (Vt("reduce"))
4183
4182
  return !0;
4184
4183
  if (Vt("no-preference"))
@@ -4187,7 +4186,7 @@ function Ca() {
4187
4186
  function Vt(t) {
4188
4187
  return matchMedia("(prefers-reduced-motion: ".concat(t, ")")).matches;
4189
4188
  }
4190
- function Ia() {
4189
+ function Ca() {
4191
4190
  if (Pt("reduce"))
4192
4191
  return !0;
4193
4192
  if (Pt("no-preference"))
@@ -4196,7 +4195,7 @@ function Ia() {
4196
4195
  function Pt(t) {
4197
4196
  return matchMedia("(prefers-reduced-transparency: ".concat(t, ")")).matches;
4198
4197
  }
4199
- function Na() {
4198
+ function Ia() {
4200
4199
  if (Ft("high"))
4201
4200
  return !0;
4202
4201
  if (Ft("standard"))
@@ -4208,7 +4207,7 @@ function Ft(t) {
4208
4207
  var R = Math, O = function() {
4209
4208
  return 0;
4210
4209
  };
4211
- function Ta() {
4210
+ function Na() {
4212
4211
  var t = R.acos || O, e = R.acosh || O, n = R.asin || O, r = R.asinh || O, a = R.atanh || O, i = R.atan || O, s = R.sin || O, o = R.sinh || O, c = R.cos || O, d = R.cosh || O, l = R.tan || O, u = R.tanh || O, p = R.exp || O, m = R.expm1 || O, w = R.log1p || O, k = function(A) {
4213
4212
  return R.pow(R.PI, A);
4214
4213
  }, E = function(A) {
@@ -4255,7 +4254,7 @@ function Ta() {
4255
4254
  powPI: k(-100)
4256
4255
  };
4257
4256
  }
4258
- var La = "mmMwWLliI0fiflO&1", Ge = {
4257
+ var Ta = "mmMwWLliI0fiflO&1", Ge = {
4259
4258
  /**
4260
4259
  * The default font. User can change it in desktop Chrome, desktop Firefox, IE 11,
4261
4260
  * Android Chrome (but only when the size is ≥ than the default) and Android Firefox.
@@ -4277,10 +4276,10 @@ var La = "mmMwWLliI0fiflO&1", Ge = {
4277
4276
  /** Tells one OS from another in desktop Chrome. */
4278
4277
  system: [{ fontFamily: "system-ui" }]
4279
4278
  };
4280
- function Ra() {
4281
- return Aa(function(t, e) {
4279
+ function La() {
4280
+ return Ra(function(t, e) {
4282
4281
  for (var n = {}, r = {}, a = 0, i = Object.keys(Ge); a < i.length; a++) {
4283
- var s = i[a], o = Ge[s], c = o[0], d = c === void 0 ? {} : c, l = o[1], u = l === void 0 ? La : l, p = t.createElement("span");
4282
+ var s = i[a], o = Ge[s], c = o[0], d = c === void 0 ? {} : c, l = o[1], u = l === void 0 ? Ta : l, p = t.createElement("span");
4284
4283
  p.textContent = u, p.style.whiteSpace = "nowrap";
4285
4284
  for (var m = 0, w = Object.keys(d); m < w.length; m++) {
4286
4285
  var k = w[m], E = d[k];
@@ -4295,7 +4294,7 @@ function Ra() {
4295
4294
  return r;
4296
4295
  });
4297
4296
  }
4298
- function Aa(t, e) {
4297
+ function Ra(t, e) {
4299
4298
  return e === void 0 && (e = 4e3), sn(function(n, r) {
4300
4299
  var a = r.document, i = a.body, s = i.style;
4301
4300
  s.width = "".concat(e, "px"), s.webkitTextSizeAdjust = s.textSizeAdjust = "none", Ce() ? i.style.zoom = "".concat(1 / r.devicePixelRatio) : G() && (i.style.zoom = "reset");
@@ -4305,36 +4304,36 @@ function Aa(t, e) {
4305
4304
  }).join(" "), i.appendChild(o), t(a, i);
4306
4305
  }, '<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');
4307
4306
  }
4308
- function Ea() {
4307
+ function Aa() {
4309
4308
  return navigator.pdfViewerEnabled;
4310
4309
  }
4311
- function ja() {
4310
+ function Ea() {
4312
4311
  var t = new Float32Array(1), e = new Uint8Array(t.buffer);
4313
4312
  return t[0] = 1 / 0, t[0] = t[0] - t[0], e[3];
4314
4313
  }
4315
- function Za() {
4314
+ function ja() {
4316
4315
  var t = window.ApplePaySession;
4317
4316
  if (typeof (t == null ? void 0 : t.canMakePayments) != "function")
4318
4317
  return -1;
4319
- if (Ma())
4318
+ if (Za())
4320
4319
  return -3;
4321
4320
  try {
4322
4321
  return t.canMakePayments() ? 1 : 0;
4323
4322
  } catch (e) {
4324
- return Oa(e);
4323
+ return Ma(e);
4325
4324
  }
4326
4325
  }
4327
- var Ma = Rr;
4328
- function Oa(t) {
4326
+ var Za = Lr;
4327
+ function Ma(t) {
4329
4328
  if (t instanceof Error && t.name === "InvalidAccessError" && /\bfrom\b.*\binsecure\b/i.test(t.message))
4330
4329
  return -2;
4331
4330
  throw t;
4332
4331
  }
4333
- function Va() {
4332
+ function Oa() {
4334
4333
  var t, e = document.createElement("a"), n = (t = e.attributionSourceId) !== null && t !== void 0 ? t : e.attributionsourceid;
4335
4334
  return n === void 0 ? void 0 : String(n);
4336
4335
  }
4337
- var on = -1, cn = -2, Pa = /* @__PURE__ */ new Set([
4336
+ var on = -1, cn = -2, Va = /* @__PURE__ */ new Set([
4338
4337
  10752,
4339
4338
  2849,
4340
4339
  2884,
@@ -4418,7 +4417,7 @@ var on = -1, cn = -2, Pa = /* @__PURE__ */ new Set([
4418
4417
  7938
4419
4418
  // SAMPLE_ALPHA_TO_COVERAGE (32926) and SAMPLE_COVERAGE (32928) are excluded because they trigger a console warning
4420
4419
  // in IE, Chrome ≤ 59 and Safari ≤ 13 and give no entropy.
4421
- ]), Fa = /* @__PURE__ */ new Set([
4420
+ ]), Pa = /* @__PURE__ */ new Set([
4422
4421
  34047,
4423
4422
  35723,
4424
4423
  36063,
@@ -4430,8 +4429,8 @@ var on = -1, cn = -2, Pa = /* @__PURE__ */ new Set([
4430
4429
  36795,
4431
4430
  38449
4432
4431
  // MAX_VIEWS_OVR
4433
- ]), Wa = ["FRAGMENT_SHADER", "VERTEX_SHADER"], za = ["LOW_FLOAT", "MEDIUM_FLOAT", "HIGH_FLOAT", "LOW_INT", "MEDIUM_INT", "HIGH_INT"], dn = "WEBGL_debug_renderer_info", Da = "WEBGL_polygon_mode";
4434
- function Ua(t) {
4432
+ ]), Fa = ["FRAGMENT_SHADER", "VERTEX_SHADER"], Wa = ["LOW_FLOAT", "MEDIUM_FLOAT", "HIGH_FLOAT", "LOW_INT", "MEDIUM_INT", "HIGH_INT"], dn = "WEBGL_debug_renderer_info", za = "WEBGL_polygon_mode";
4433
+ function Da(t) {
4435
4434
  var e, n, r, a, i, s, o = t.cache, c = ln(o);
4436
4435
  if (!c)
4437
4436
  return on;
@@ -4447,7 +4446,7 @@ function Ua(t) {
4447
4446
  shadingLanguageVersion: ((s = c.getParameter(c.SHADING_LANGUAGE_VERSION)) === null || s === void 0 ? void 0 : s.toString()) || ""
4448
4447
  };
4449
4448
  }
4450
- function $a(t) {
4449
+ function Ua(t) {
4451
4450
  var e = t.cache, n = ln(e);
4452
4451
  if (!n)
4453
4452
  return on;
@@ -4461,12 +4460,12 @@ function $a(t) {
4461
4460
  }
4462
4461
  for (var m = Wt(n), w = 0, k = m; w < k.length; w++) {
4463
4462
  var E = k[w], x = n[E];
4464
- o.push("".concat(E, "=").concat(x).concat(Pa.has(x) ? "=".concat(n.getParameter(x)) : ""));
4463
+ o.push("".concat(E, "=").concat(x).concat(Va.has(x) ? "=".concat(n.getParameter(x)) : ""));
4465
4464
  }
4466
4465
  if (r)
4467
4466
  for (var S = 0, I = r; S < I.length; S++) {
4468
4467
  var W = I[S];
4469
- if (!(W === dn && un() || W === Da && Ya())) {
4468
+ if (!(W === dn && un() || W === za && Ba())) {
4470
4469
  var ie = n.getExtension(W);
4471
4470
  if (!ie) {
4472
4471
  i.push(W);
@@ -4474,14 +4473,14 @@ function $a(t) {
4474
4473
  }
4475
4474
  for (var q = 0, ce = Wt(ie); q < ce.length; q++) {
4476
4475
  var E = ce[q], x = ie[E];
4477
- c.push("".concat(E, "=").concat(x).concat(Fa.has(x) ? "=".concat(n.getParameter(x)) : ""));
4476
+ c.push("".concat(E, "=").concat(x).concat(Pa.has(x) ? "=".concat(n.getParameter(x)) : ""));
4478
4477
  }
4479
4478
  }
4480
4479
  }
4481
- for (var A = 0, dt = Wa; A < dt.length; A++)
4482
- for (var lt = dt[A], ze = 0, ut = za; ze < ut.length; ze++) {
4483
- var ft = ut[ze], vn = Ga(n, lt, ft);
4484
- d.push("".concat(lt, ".").concat(ft, "=").concat(vn.join(",")));
4480
+ for (var A = 0, dt = Fa; A < dt.length; A++)
4481
+ for (var lt = dt[A], ze = 0, ut = Wa; ze < ut.length; ze++) {
4482
+ var ft = ut[ze], gn = $a(n, lt, ft);
4483
+ d.push("".concat(lt, ".").concat(ft, "=").concat(gn.join(",")));
4485
4484
  }
4486
4485
  return c.sort(), o.sort(), {
4487
4486
  contextAttributes: s,
@@ -4510,27 +4509,27 @@ function ln(t) {
4510
4509
  }
4511
4510
  return t.webgl = { context: n }, n;
4512
4511
  }
4513
- function Ga(t, e, n) {
4512
+ function $a(t, e, n) {
4514
4513
  var r = t.getShaderPrecisionFormat(t[e], t[n]);
4515
4514
  return r ? [r.rangeMin, r.rangeMax, r.precision] : [];
4516
4515
  }
4517
4516
  function Wt(t) {
4518
4517
  var e = Object.keys(t.__proto__);
4519
- return e.filter(Ba);
4518
+ return e.filter(Ga);
4520
4519
  }
4521
- function Ba(t) {
4520
+ function Ga(t) {
4522
4521
  return typeof t == "string" && !t.match(/[^A-Z0-9_x]/);
4523
4522
  }
4524
4523
  function un() {
4525
4524
  return an();
4526
4525
  }
4527
- function Ya() {
4526
+ function Ba() {
4528
4527
  return Ce() || G();
4529
4528
  }
4530
4529
  function fn(t) {
4531
4530
  return typeof t.getParameter == "function";
4532
4531
  }
4533
- function Ha() {
4532
+ function Ya() {
4534
4533
  var t = ot() || G();
4535
4534
  if (!t)
4536
4535
  return -2;
@@ -4539,7 +4538,7 @@ function Ha() {
4539
4538
  var e = new AudioContext().baseLatency;
4540
4539
  return e == null ? -1 : isFinite(e) ? e : -3;
4541
4540
  }
4542
- function Xa() {
4541
+ function Ha() {
4543
4542
  if (!window.Intl)
4544
4543
  return -1;
4545
4544
  var t = window.Intl.DateTimeFormat;
@@ -4548,65 +4547,65 @@ function Xa() {
4548
4547
  var e = t().resolvedOptions().locale;
4549
4548
  return !e && e !== "" ? -3 : e;
4550
4549
  }
4551
- var Ja = {
4550
+ var Xa = {
4552
4551
  // READ FIRST:
4553
4552
  // See https://github.com/fingerprintjs/fingerprintjs/blob/master/contributing.md#how-to-add-an-entropy-source
4554
4553
  // to learn how entropy source works and how to make your own.
4555
4554
  // The sources run in this exact order.
4556
4555
  // The asynchronous sources are at the start to run in parallel with other sources.
4557
- fonts: jr,
4558
- domBlockers: pa,
4559
- fontPreferences: Ra,
4560
- audio: xr,
4561
- screenFrame: ta,
4562
- canvas: Mr,
4563
- osCpu: Gr,
4564
- languages: Br,
4565
- colorDepth: Yr,
4566
- deviceMemory: Hr,
4567
- screenResolution: Xr,
4568
- hardwareConcurrency: na,
4569
- timezone: ra,
4570
- sessionStorage: ia,
4571
- localStorage: sa,
4572
- indexedDB: oa,
4573
- openDatabase: ca,
4574
- cpuClass: da,
4575
- platform: la,
4576
- plugins: Zr,
4577
- touchSupport: $r,
4578
- vendor: ua,
4579
- vendorFlavors: fa,
4580
- cookiesEnabled: ha,
4581
- colorGamut: ka,
4582
- invertedColors: ba,
4583
- forcedColors: _a,
4584
- monochrome: wa,
4585
- contrast: Sa,
4586
- reducedMotion: Ca,
4587
- reducedTransparency: Ia,
4588
- hdr: Na,
4589
- math: Ta,
4590
- pdfViewerEnabled: Ea,
4591
- architecture: ja,
4592
- applePay: Za,
4593
- privateClickMeasurement: Va,
4594
- audioBaseLatency: Ha,
4595
- dateTimeLocale: Xa,
4556
+ fonts: Er,
4557
+ domBlockers: ma,
4558
+ fontPreferences: La,
4559
+ audio: _r,
4560
+ screenFrame: ea,
4561
+ canvas: Zr,
4562
+ osCpu: $r,
4563
+ languages: Gr,
4564
+ colorDepth: Br,
4565
+ deviceMemory: Yr,
4566
+ screenResolution: Hr,
4567
+ hardwareConcurrency: ta,
4568
+ timezone: na,
4569
+ sessionStorage: aa,
4570
+ localStorage: ia,
4571
+ indexedDB: sa,
4572
+ openDatabase: oa,
4573
+ cpuClass: ca,
4574
+ platform: da,
4575
+ plugins: jr,
4576
+ touchSupport: Ur,
4577
+ vendor: la,
4578
+ vendorFlavors: ua,
4579
+ cookiesEnabled: fa,
4580
+ colorGamut: ya,
4581
+ invertedColors: ka,
4582
+ forcedColors: ba,
4583
+ monochrome: xa,
4584
+ contrast: wa,
4585
+ reducedMotion: Sa,
4586
+ reducedTransparency: Ca,
4587
+ hdr: Ia,
4588
+ math: Na,
4589
+ pdfViewerEnabled: Aa,
4590
+ architecture: Ea,
4591
+ applePay: ja,
4592
+ privateClickMeasurement: Oa,
4593
+ audioBaseLatency: Ya,
4594
+ dateTimeLocale: Ha,
4596
4595
  // Some sources can affect other sources (e.g. WebGL can affect canvas), so it's important to run these sources
4597
4596
  // after other sources.
4598
- webGlBasics: Ua,
4599
- webGlExtensions: $a
4597
+ webGlBasics: Da,
4598
+ webGlExtensions: Ua
4600
4599
  };
4601
- function Qa(t) {
4602
- return hr(Ja, t, []);
4600
+ function Ja(t) {
4601
+ return fr(Xa, t, []);
4603
4602
  }
4604
- var Ka = "$ if upgrade to Pro: https://fpjs.dev/pro";
4605
- function qa(t) {
4606
- var e = ei(t), n = ti(e);
4607
- return { score: e, comment: Ka.replace(/\$/g, "".concat(n)) };
4603
+ var Qa = "$ if upgrade to Pro: https://fpjs.dev/pro";
4604
+ function Ka(t) {
4605
+ var e = qa(t), n = ei(e);
4606
+ return { score: e, comment: Qa.replace(/\$/g, "".concat(n)) };
4608
4607
  }
4609
- function ei(t) {
4608
+ function qa(t) {
4610
4609
  if (ot())
4611
4610
  return 0.4;
4612
4611
  if (G())
@@ -4614,29 +4613,29 @@ function ei(t) {
4614
4613
  var e = "value" in t.platform ? t.platform.value : "";
4615
4614
  return /^Win/.test(e) ? 0.6 : /^Mac/.test(e) ? 0.5 : 0.7;
4616
4615
  }
4617
- function ti(t) {
4616
+ function ei(t) {
4618
4617
  return nn(0.99 + 0.01 * t, 1e-4);
4619
4618
  }
4620
- function ni(t) {
4619
+ function ti(t) {
4621
4620
  for (var e = "", n = 0, r = Object.keys(t).sort(); n < r.length; n++) {
4622
4621
  var a = r[n], i = t[a], s = "error" in i ? "error" : JSON.stringify(i.value);
4623
4622
  e += "".concat(e ? "|" : "").concat(a.replace(/([:|\\])/g, "\\$1"), ":").concat(s);
4624
4623
  }
4625
4624
  return e;
4626
4625
  }
4627
- function hn(t) {
4626
+ function ni(t) {
4628
4627
  return JSON.stringify(t, function(e, n) {
4629
- return n instanceof Error ? dr(n) : n;
4628
+ return n instanceof Error ? cr(n) : n;
4630
4629
  }, 2);
4631
4630
  }
4632
- function mn(t) {
4633
- return cr(ni(t));
4631
+ function hn(t) {
4632
+ return or(ti(t));
4634
4633
  }
4635
4634
  function ri(t) {
4636
- var e, n = qa(t);
4635
+ var e, n = Ka(t);
4637
4636
  return {
4638
4637
  get visitorId() {
4639
- return e === void 0 && (e = mn(this.components)), e;
4638
+ return e === void 0 && (e = hn(this.components)), e;
4640
4639
  },
4641
4640
  set visitorId(r) {
4642
4641
  e = r;
@@ -4647,7 +4646,7 @@ function ri(t) {
4647
4646
  };
4648
4647
  }
4649
4648
  function ai(t) {
4650
- return t === void 0 && (t = 50), qn(t, t * 2);
4649
+ return t === void 0 && (t = 50), Kn(t, t * 2);
4651
4650
  }
4652
4651
  function ii(t, e) {
4653
4652
  var n = Date.now();
@@ -4660,11 +4659,7 @@ function ii(t, e) {
4660
4659
  case 0:
4661
4660
  return a = Date.now(), [4, t()];
4662
4661
  case 1:
4663
- return i = o.sent(), s = ri(i), (e || r != null && r.debug) && console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version, `
4664
- userAgent: `).concat(navigator.userAgent, `
4665
- timeBetweenLoadAndGet: `).concat(a - n, `
4666
- visitorId: `).concat(s.visitorId, `
4667
- components: `).concat(hn(i), "\n```")), [2, s];
4662
+ return i = o.sent(), s = ri(i), e || r != null && r.debug, [2, s];
4668
4663
  }
4669
4664
  });
4670
4665
  });
@@ -4676,8 +4671,7 @@ function si() {
4676
4671
  try {
4677
4672
  var t = new XMLHttpRequest();
4678
4673
  t.open("get", "https://m1.openfpcdn.io/fingerprintjs/v".concat(en, "/npm-monitoring"), !0), t.send();
4679
- } catch (e) {
4680
- console.error(e);
4674
+ } catch {
4681
4675
  }
4682
4676
  }
4683
4677
  function oi(t) {
@@ -4689,12 +4683,12 @@ function oi(t) {
4689
4683
  case 0:
4690
4684
  return (!((e = t.monitoring) !== null && e !== void 0) || e) && si(), n = t.delayFallback, r = t.debug, [4, ai(n)];
4691
4685
  case 1:
4692
- return i.sent(), a = Qa({ cache: {}, debug: r }), [2, ii(a, r)];
4686
+ return i.sent(), a = Ja({ cache: {}, debug: r }), [2, ii(a, r)];
4693
4687
  }
4694
4688
  });
4695
4689
  });
4696
4690
  }
4697
- var ci = { load: oi, hashComponents: mn, componentsToDebugString: hn };
4691
+ var ci = { load: oi, hashComponents: hn, componentsToDebugString: ni };
4698
4692
  class di {
4699
4693
  constructor(e) {
4700
4694
  this.baseUrl = e;
@@ -4982,8 +4976,8 @@ class yi {
4982
4976
  try {
4983
4977
  const n = await (await ci.load()).get();
4984
4978
  this.fingerprint = n.visitorId;
4985
- } catch (e) {
4986
- console.warn("Could not generate browser fingerprint:", e), this.fingerprint = void 0;
4979
+ } catch {
4980
+ this.fingerprint = void 0;
4987
4981
  }
4988
4982
  }
4989
4983
  getState() {
@@ -5240,7 +5234,7 @@ function Ii(t) {
5240
5234
  function Ni(t) {
5241
5235
  t.removeAttribute("data-agentkit-root");
5242
5236
  }
5243
- function pn(t, e, n, r, a) {
5237
+ function mn(t, e, n, r, a) {
5244
5238
  const i = t.mode === "inline";
5245
5239
  let s = !1;
5246
5240
  const o = i && a ? Ci(a) : !i && a ? Si(a) : wi(), c = bi(o);
@@ -5290,19 +5284,19 @@ function pn(t, e, n, r, a) {
5290
5284
  }
5291
5285
  const he = /* @__PURE__ */ new Map();
5292
5286
  let Ti = 0;
5293
- function gn(t) {
5287
+ function pn(t) {
5294
5288
  const e = `agentkit-widget-${++Ti}`, n = t.destroy.bind(t);
5295
5289
  return t.destroy = () => {
5296
5290
  he.delete(e), n();
5297
5291
  }, he.set(e, t), e;
5298
5292
  }
5299
5293
  function Qi(t, e, n) {
5300
- const r = { ...t, mode: "floating" }, a = at(r), i = pn(a, r, e, n);
5301
- return gn(i), i;
5294
+ const r = { ...t, mode: "floating" }, a = at(r), i = mn(a, r, e, n);
5295
+ return pn(i), i;
5302
5296
  }
5303
5297
  function Ki(t, e, n, r) {
5304
- const a = { ...e, mode: "inline" }, i = at(a), s = pn(i, a, n, r, t);
5305
- return gn(s), s;
5298
+ const a = { ...e, mode: "inline" }, i = at(a), s = mn(i, a, n, r, t);
5299
+ return pn(s), s;
5306
5300
  }
5307
5301
  function qi(t) {
5308
5302
  var e;
@@ -6808,7 +6802,7 @@ function Gt({ config: t, state: e, callbacks: n }) {
6808
6802
  ] });
6809
6803
  }
6810
6804
  const ts = (t, e, n, r) => {
6811
- const a = bn(t);
6805
+ const a = kn(t);
6812
6806
  return a.render(ht(Gt, { config: e, state: n, callbacks: r })), {
6813
6807
  update(i, s) {
6814
6808
  a.render(ht(Gt, { config: s, state: i, callbacks: r }));
@@ -6842,7 +6836,7 @@ export {
6842
6836
  zt as clearSession,
6843
6837
  wi as createFloatingContainer,
6844
6838
  bi as createShadowHost,
6845
- pn as createWidget,
6839
+ mn as createWidget,
6846
6840
  qi as destroyWidget,
6847
6841
  gi as getSessionId,
6848
6842
  Qi as init,