@authhero/saml 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.mjs CHANGED
@@ -1729,7 +1729,7 @@ var Le = function(e) {
1729
1729
  static getMetaDataSymbol() {
1730
1730
  return Re;
1731
1731
  }
1732
- }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", D = (e, t, n = "") => {
1732
+ }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", Ue = (e, t, n = "") => {
1733
1733
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1734
1734
  return {
1735
1735
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1738,15 +1738,15 @@ var Le = function(e) {
1738
1738
  nmToken: RegExp(`^[${t}]+$`, n),
1739
1739
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1740
1740
  };
1741
- }, Ue = D(ze, Be), We = D(Ve, He, "u"), Ge = D(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Ke = (e = "1.0", t = !1) => t ? Ge : e === "1.1" ? We : Ue, qe = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Ke(t, n).qName.test(e), Je = [
1741
+ }, We = Ue(ze, Be), Ge = Ue(Ve, He, "u"), Ke = Ue(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), qe = (e = "1.0", t = !1) => t ? Ke : e === "1.1" ? Ge : We, Je = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => qe(t, n).qName.test(e), Ye = [
1742
1742
  "name",
1743
1743
  "ncName",
1744
1744
  "qName",
1745
1745
  "nmToken",
1746
1746
  "nmTokens"
1747
- ], Ye = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1748
- if (!Je.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Je.join(", ")}`);
1749
- let i = Ke(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1747
+ ], Xe = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1748
+ if (!Ye.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Ye.join(", ")}`);
1749
+ let i = qe(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1750
1750
  let t = a.get(e);
1751
1751
  if (t !== void 0) return t;
1752
1752
  let n = i.test(e);
@@ -1755,7 +1755,7 @@ var Le = function(e) {
1755
1755
  return o.reset = () => {
1756
1756
  a = /* @__PURE__ */ new Map();
1757
1757
  }, o;
1758
- }, Xe = class {
1758
+ }, Ze = class {
1759
1759
  constructor(e, t) {
1760
1760
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1761
1761
  }
@@ -1768,23 +1768,23 @@ var Le = function(e) {
1768
1768
  t += 9;
1769
1769
  let i = 1, a = !1, o = !1, s = "";
1770
1770
  for (; t < e.length; t++) if (e[t] === "<" && !o) {
1771
- if (a && k(e, "!ENTITY", t)) {
1771
+ if (a && O(e, "!ENTITY", t)) {
1772
1772
  t += 7;
1773
1773
  let i, a;
1774
1774
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
1775
1775
  if (this.options.enabled !== !1 && this.options.maxEntityCount != null && r >= this.options.maxEntityCount) throw Error(`Entity count (${r + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
1776
1776
  n[i] = a, r++;
1777
1777
  }
1778
- } else if (a && k(e, "!ELEMENT", t)) {
1778
+ } else if (a && O(e, "!ELEMENT", t)) {
1779
1779
  t += 8;
1780
1780
  let { index: n } = this.readElementExp(e, t + 1);
1781
1781
  t = n;
1782
- } else if (a && k(e, "!ATTLIST", t)) t += 8;
1783
- else if (a && k(e, "!NOTATION", t)) {
1782
+ } else if (a && O(e, "!ATTLIST", t)) t += 8;
1783
+ else if (a && O(e, "!NOTATION", t)) {
1784
1784
  t += 9;
1785
1785
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
1786
1786
  t = n;
1787
- } else if (k(e, "!--", t)) o = !0;
1787
+ } else if (O(e, "!--", t)) o = !0;
1788
1788
  else throw Error("Invalid DOCTYPE");
1789
1789
  i++, s = "";
1790
1790
  } else if (e[t] === ">") {
@@ -1798,11 +1798,11 @@ var Le = function(e) {
1798
1798
  };
1799
1799
  }
1800
1800
  readEntityExp(e, t) {
1801
- t = O(e, t);
1801
+ t = D(e, t);
1802
1802
  let n = t;
1803
1803
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
1804
1804
  let r = e.substring(n, t);
1805
- if (A(r, { xmlVersion: this.xmlVersion }), t = O(e, t), !this.suppressValidationErr) {
1805
+ if (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), !this.suppressValidationErr) {
1806
1806
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
1807
1807
  if (e[t] === "%") throw Error("Parameter entities are not supported");
1808
1808
  }
@@ -1815,16 +1815,16 @@ var Le = function(e) {
1815
1815
  ];
1816
1816
  }
1817
1817
  readNotationExp(e, t) {
1818
- t = O(e, t);
1818
+ t = D(e, t);
1819
1819
  let n = t;
1820
1820
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1821
1821
  let r = e.substring(n, t);
1822
- !this.suppressValidationErr && A(r, { xmlVersion: this.xmlVersion }), t = O(e, t);
1822
+ !this.suppressValidationErr && k(r, { xmlVersion: this.xmlVersion }), t = D(e, t);
1823
1823
  let i = e.substring(t, t + 6).toUpperCase();
1824
1824
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
1825
- t += i.length, t = O(e, t);
1825
+ t += i.length, t = D(e, t);
1826
1826
  let a = null, o = null;
1827
- if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = O(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1827
+ if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = D(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1828
1828
  else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
1829
1829
  return {
1830
1830
  notationName: r,
@@ -1843,15 +1843,15 @@ var Le = function(e) {
1843
1843
  return t++, [t, r];
1844
1844
  }
1845
1845
  readElementExp(e, t) {
1846
- t = O(e, t);
1846
+ t = D(e, t);
1847
1847
  let n = t;
1848
1848
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1849
1849
  let r = e.substring(n, t);
1850
- if (!this.suppressValidationErr && !qe(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1851
- t = O(e, t);
1850
+ if (!this.suppressValidationErr && !Je(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1851
+ t = D(e, t);
1852
1852
  let i = "";
1853
- if (e[t] === "E" && k(e, "MPTY", t)) t += 4;
1854
- else if (e[t] === "A" && k(e, "NY", t)) t += 2;
1853
+ if (e[t] === "E" && O(e, "MPTY", t)) t += 4;
1854
+ else if (e[t] === "A" && O(e, "NY", t)) t += 2;
1855
1855
  else if (e[t] === "(") {
1856
1856
  t++;
1857
1857
  let n = t;
@@ -1865,25 +1865,25 @@ var Le = function(e) {
1865
1865
  };
1866
1866
  }
1867
1867
  readAttlistExp(e, t) {
1868
- t = O(e, t);
1868
+ t = D(e, t);
1869
1869
  let n = t;
1870
1870
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1871
1871
  let r = e.substring(n, t);
1872
- for (A(r, { xmlVersion: this.xmlVersion }), t = O(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1872
+ for (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1873
1873
  let i = e.substring(n, t);
1874
- if (!A(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1875
- t = O(e, t);
1874
+ if (!k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1875
+ t = D(e, t);
1876
1876
  let a = "";
1877
1877
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
1878
- if (a = "NOTATION", t += 8, t = O(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1878
+ if (a = "NOTATION", t += 8, t = D(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1879
1879
  t++;
1880
1880
  let n = [];
1881
1881
  for (; t < e.length && e[t] !== ")";) {
1882
1882
  let r = t;
1883
1883
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
1884
1884
  let i = e.substring(r, t);
1885
- if (i = i.trim(), !A(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1886
- n.push(i), e[t] === "|" && (t++, t = O(e, t));
1885
+ if (i = i.trim(), !k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1886
+ n.push(i), e[t] === "|" && (t++, t = D(e, t));
1887
1887
  }
1888
1888
  if (e[t] !== ")") throw Error("Unterminated list of notations");
1889
1889
  t++, a += " (" + n.join("|") + ")";
@@ -1901,7 +1901,7 @@ var Le = function(e) {
1901
1901
  "NMTOKENS"
1902
1902
  ].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
1903
1903
  }
1904
- t = O(e, t);
1904
+ t = D(e, t);
1905
1905
  let o = "";
1906
1906
  return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
1907
1907
  elementName: r,
@@ -1911,21 +1911,21 @@ var Le = function(e) {
1911
1911
  index: t
1912
1912
  };
1913
1913
  }
1914
- }, O = (e, t) => {
1914
+ }, D = (e, t) => {
1915
1915
  for (; t < e.length && /\s/.test(e[t]);) t++;
1916
1916
  return t;
1917
1917
  };
1918
- function k(e, t, n) {
1918
+ function O(e, t, n) {
1919
1919
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
1920
1920
  return !0;
1921
1921
  }
1922
- function A(e, t) {
1923
- if (qe(e, { xmlVersion: t })) return e;
1922
+ function k(e, t) {
1923
+ if (Je(e, { xmlVersion: t })) return e;
1924
1924
  throw Error(`Invalid entity name ${e}`);
1925
1925
  }
1926
1926
  //#endregion
1927
1927
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
1928
- var Ze = [
1928
+ var Qe = [
1929
1929
  48,
1930
1930
  1632,
1931
1931
  1776,
@@ -1987,28 +1987,28 @@ var Ze = [
1987
1987
  124144,
1988
1988
  125264,
1989
1989
  130032
1990
- ], j = /* @__PURE__ */ new Map(), Qe = 65535, $e = 1632, M = new Uint8Array(63904).fill(255);
1991
- for (let e of Ze) for (let t = 0; t < 10; t++) {
1990
+ ], $e = /* @__PURE__ */ new Map(), et = 65535, tt = 1632, A = new Uint8Array(63904).fill(255);
1991
+ for (let e of Qe) for (let t = 0; t < 10; t++) {
1992
1992
  let n = e + t;
1993
- n <= Qe ? M[n - $e] = t : j.set(n, t);
1993
+ n <= et ? A[n - tt] = t : $e.set(n, t);
1994
1994
  }
1995
1995
  //#endregion
1996
1996
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
1997
- var et = 48, tt = 57, nt = 45, N = new Set([
1997
+ var nt = 48, rt = 57, it = 45, j = new Set([
1998
1998
  8722,
1999
1999
  65293,
2000
2000
  65123
2001
2001
  ]);
2002
- function rt(e) {
2002
+ function at(e) {
2003
2003
  if (typeof e != "string") return e;
2004
2004
  let t = e.length;
2005
2005
  if (t === 0) return e;
2006
2006
  let n = -1;
2007
2007
  for (let r = 0; r < t; r++) {
2008
2008
  let i = e.charCodeAt(r);
2009
- if (!(i >= et && i <= tt || i === nt)) {
2009
+ if (!(i >= nt && i <= rt || i === it)) {
2010
2010
  if (i < 1632) {
2011
- if (N.has(i)) {
2011
+ if (j.has(i)) {
2012
2012
  n = r;
2013
2013
  break;
2014
2014
  }
@@ -2019,7 +2019,7 @@ function rt(e) {
2019
2019
  let t = e.charCodeAt(r + 1);
2020
2020
  if (t >= 56320 && t <= 57343) {
2021
2021
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
2022
- if (j.has(e)) {
2022
+ if ($e.has(e)) {
2023
2023
  n = r;
2024
2024
  break;
2025
2025
  }
@@ -2027,7 +2027,7 @@ function rt(e) {
2027
2027
  }
2028
2028
  continue;
2029
2029
  }
2030
- if (M[i - 1632] !== 255 || N.has(i)) {
2030
+ if (A[i - 1632] !== 255 || j.has(i)) {
2031
2031
  n = r;
2032
2032
  break;
2033
2033
  }
@@ -2038,19 +2038,19 @@ function rt(e) {
2038
2038
  n > 0 && r.push(e.slice(0, n));
2039
2039
  for (let i = n; i < t; i++) {
2040
2040
  let n = e.charCodeAt(i);
2041
- if (n >= et && n <= tt || n === nt) {
2041
+ if (n >= nt && n <= rt || n === it) {
2042
2042
  r.push(e[i]);
2043
2043
  continue;
2044
2044
  }
2045
2045
  if (n < 1632) {
2046
- r.push(N.has(n) ? "-" : e[i]);
2046
+ r.push(j.has(n) ? "-" : e[i]);
2047
2047
  continue;
2048
2048
  }
2049
2049
  if (n >= 55296 && n <= 56319) {
2050
2050
  if (i + 1 < t) {
2051
2051
  let t = e.charCodeAt(i + 1);
2052
2052
  if (t >= 56320 && t <= 57343) {
2053
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = j.get(e);
2053
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = $e.get(e);
2054
2054
  if (a !== void 0) {
2055
2055
  r.push(String.fromCharCode(a + 48)), i++;
2056
2056
  continue;
@@ -2060,18 +2060,18 @@ function rt(e) {
2060
2060
  r.push(e[i]);
2061
2061
  continue;
2062
2062
  }
2063
- if (N.has(n)) {
2063
+ if (j.has(n)) {
2064
2064
  r.push("-");
2065
2065
  continue;
2066
2066
  }
2067
- let a = M[n - $e];
2067
+ let a = A[n - tt];
2068
2068
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
2069
2069
  }
2070
2070
  return r.join("");
2071
2071
  }
2072
2072
  //#endregion
2073
2073
  //#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
2074
- var it = /^[-+]?0x[a-fA-F0-9]+$/, at = /^0b[01]+$/, ot = /^0o[0-7]+$/, st = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, ct = {
2074
+ var ot = /^[-+]?0x[a-fA-F0-9]+$/, st = /^0b[01]+$/, ct = /^0o[0-7]+$/, lt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, ut = {
2075
2075
  hex: !0,
2076
2076
  binary: !1,
2077
2077
  octal: !1,
@@ -2081,20 +2081,20 @@ var it = /^[-+]?0x[a-fA-F0-9]+$/, at = /^0b[01]+$/, ot = /^0o[0-7]+$/, st = /^([
2081
2081
  infinity: "original",
2082
2082
  unicode: !1
2083
2083
  };
2084
- function lt(e, t = {}) {
2085
- if (t = Object.assign({}, ct, t), !e || typeof e != "string") return e;
2084
+ function dt(e, t = {}) {
2085
+ if (t = Object.assign({}, ut, t), !e || typeof e != "string") return e;
2086
2086
  let n = e.trim();
2087
2087
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2088
- if (n === "0" || t.unicode && (n = rt(n), n === "0")) return 0;
2089
- if (t.hex && it.test(n)) return P(n, 16);
2090
- if (t.binary && at.test(n)) return P(n, 2);
2091
- if (t.octal && ot.test(n)) return P(n, 8);
2092
- if (!isFinite(n)) return pt(e, Number(n), t);
2093
- if (n.includes("e") || n.includes("E")) return dt(e, n, t);
2088
+ if (n === "0" || t.unicode && (n = at(n), n === "0")) return 0;
2089
+ if (t.hex && ot.test(n)) return ht(n, 16);
2090
+ if (t.binary && st.test(n)) return ht(n, 2);
2091
+ if (t.octal && ct.test(n)) return ht(n, 8);
2092
+ if (!isFinite(n)) return gt(e, Number(n), t);
2093
+ if (n.includes("e") || n.includes("E")) return pt(e, n, t);
2094
2094
  {
2095
- let r = st.exec(n);
2095
+ let r = lt.exec(n);
2096
2096
  if (r) {
2097
- let i = r[1] || "", a = r[2], o = ft(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2097
+ let i = r[1] || "", a = r[2], o = mt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2098
2098
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
2099
2099
  {
2100
2100
  let r = Number(n), s = String(r);
@@ -2107,26 +2107,26 @@ function lt(e, t = {}) {
2107
2107
  } else return e;
2108
2108
  }
2109
2109
  }
2110
- var ut = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2111
- function dt(e, t, n) {
2110
+ var ft = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2111
+ function pt(e, t, n) {
2112
2112
  if (!n.eNotation) return e;
2113
- let r = t.match(ut);
2113
+ let r = t.match(ft);
2114
2114
  if (r) {
2115
2115
  let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
2116
2116
  return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
2117
2117
  } else return e;
2118
2118
  }
2119
- function ft(e) {
2119
+ function mt(e) {
2120
2120
  return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
2121
2121
  }
2122
- function P(e, t) {
2122
+ function ht(e, t) {
2123
2123
  let n = e.trim();
2124
2124
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2125
2125
  if (Number.parseInt) return Number.parseInt(e, t);
2126
2126
  if (window && window.parseInt) return window.parseInt(e, t);
2127
2127
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2128
2128
  }
2129
- function pt(e, t, n) {
2129
+ function gt(e, t, n) {
2130
2130
  let r = t === Infinity;
2131
2131
  switch (n.infinity.toLowerCase()) {
2132
2132
  case "null": return null;
@@ -2137,14 +2137,14 @@ function pt(e, t, n) {
2137
2137
  }
2138
2138
  //#endregion
2139
2139
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2140
- function mt(e) {
2140
+ function _t(e) {
2141
2141
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2142
2142
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2143
2143
  } : () => !1;
2144
2144
  }
2145
2145
  //#endregion
2146
2146
  //#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
2147
- var F = class {
2147
+ var M = class {
2148
2148
  constructor(e, t = {}, n) {
2149
2149
  this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
2150
2150
  }
@@ -2200,7 +2200,7 @@ var F = class {
2200
2200
  toString() {
2201
2201
  return this.pattern;
2202
2202
  }
2203
- }, ht = class {
2203
+ }, vt = class {
2204
2204
  constructor() {
2205
2205
  this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._deepByTerminalTag = /* @__PURE__ */ new Map(), this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
2206
2206
  }
@@ -2258,7 +2258,7 @@ var F = class {
2258
2258
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2259
2259
  return null;
2260
2260
  }
2261
- }, gt = class {
2261
+ }, yt = class {
2262
2262
  constructor(e) {
2263
2263
  this._matcher = e;
2264
2264
  }
@@ -2315,9 +2315,9 @@ var F = class {
2315
2315
  matchesAny(e) {
2316
2316
  return e.matchesAny(this._matcher);
2317
2317
  }
2318
- }, I = class {
2318
+ }, bt = class {
2319
2319
  constructor(e = {}) {
2320
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new gt(this), this._keptAttrs = [];
2320
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new yt(this), this._keptAttrs = [];
2321
2321
  }
2322
2322
  push(e, t = null, n = null, r = null) {
2323
2323
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2468,7 +2468,7 @@ var F = class {
2468
2468
  readOnly() {
2469
2469
  return this._view;
2470
2470
  }
2471
- }, L = [
2471
+ }, xt = [
2472
2472
  {
2473
2473
  id: "html-script-open",
2474
2474
  description: "<script opening tag",
@@ -2554,7 +2554,7 @@ var F = class {
2554
2554
  description: "<form tag — can be used for phishing / credential harvesting injection",
2555
2555
  pattern: /<form[\s>/]/i
2556
2556
  }
2557
- ], R = [
2557
+ ], St = [
2558
2558
  {
2559
2559
  id: "xml-cdata-injection",
2560
2560
  description: "CDATA section injection: <![CDATA[ breaks out of text node context",
@@ -2615,7 +2615,7 @@ var F = class {
2615
2615
  description: "?> closes an enclosing processing instruction",
2616
2616
  pattern: /\?>/
2617
2617
  }
2618
- ], _t = [
2618
+ ], Ct = [
2619
2619
  {
2620
2620
  id: "svg-script-element",
2621
2621
  description: "<script element inside SVG executes JavaScript",
@@ -2681,7 +2681,7 @@ var F = class {
2681
2681
  description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
2682
2682
  pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
2683
2683
  }
2684
- ], z = [
2684
+ ], N = [
2685
2685
  {
2686
2686
  id: "sql-block-comment-open",
2687
2687
  description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
@@ -2757,7 +2757,7 @@ var F = class {
2757
2757
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
2758
2758
  pattern: /\bINFORMATION_SCHEMA\b/i
2759
2759
  }
2760
- ], vt = [
2760
+ ], wt = [
2761
2761
  {
2762
2762
  id: "shell-path-traversal-unix",
2763
2763
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -2848,7 +2848,7 @@ var F = class {
2848
2848
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
2849
2849
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
2850
2850
  }
2851
- ], yt = [
2851
+ ], Tt = [
2852
2852
  {
2853
2853
  id: "redos-nested-quantifier-plus",
2854
2854
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -2889,71 +2889,71 @@ var F = class {
2889
2889
  description: "Long alternation with many similar branches — polynomial backtracking risk",
2890
2890
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
2891
2891
  }
2892
- ], B = "[\"'\\s]*:", bt = [
2892
+ ], P = "[\"'\\s]*:", Et = [
2893
2893
  {
2894
2894
  id: "nosql-where-operator",
2895
2895
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
2896
- pattern: RegExp(`\\$where${B}`, "i")
2896
+ pattern: RegExp(`\\$where${P}`, "i")
2897
2897
  },
2898
2898
  {
2899
2899
  id: "nosql-ne-operator",
2900
2900
  description: "$ne — \"not equal\" operator used to bypass equality checks",
2901
- pattern: RegExp(`\\$ne${B}`, "i")
2901
+ pattern: RegExp(`\\$ne${P}`, "i")
2902
2902
  },
2903
2903
  {
2904
2904
  id: "nosql-gt-operator",
2905
2905
  description: "$gt — \"greater than\" used to bypass password/value checks",
2906
- pattern: RegExp(`\\$gte?${B}`, "i")
2906
+ pattern: RegExp(`\\$gte?${P}`, "i")
2907
2907
  },
2908
2908
  {
2909
2909
  id: "nosql-lt-operator",
2910
2910
  description: "$lt / $lte — \"less than\" bypass variants",
2911
- pattern: RegExp(`\\$lte?${B}`, "i")
2911
+ pattern: RegExp(`\\$lte?${P}`, "i")
2912
2912
  },
2913
2913
  {
2914
2914
  id: "nosql-regex-operator",
2915
2915
  description: "$regex — can be used to extract data character by character (blind injection)",
2916
- pattern: RegExp(`\\$regex${B}`, "i")
2916
+ pattern: RegExp(`\\$regex${P}`, "i")
2917
2917
  },
2918
2918
  {
2919
2919
  id: "nosql-or-operator",
2920
2920
  description: "$or — logical OR; used to create always-true conditions",
2921
- pattern: RegExp(`\\$or${B}\\s*\\[`, "i")
2921
+ pattern: RegExp(`\\$or${P}\\s*\\[`, "i")
2922
2922
  },
2923
2923
  {
2924
2924
  id: "nosql-and-operator",
2925
2925
  description: "$and — logical AND operator injection",
2926
- pattern: RegExp(`\\$and${B}\\s*\\[`, "i")
2926
+ pattern: RegExp(`\\$and${P}\\s*\\[`, "i")
2927
2927
  },
2928
2928
  {
2929
2929
  id: "nosql-nor-operator",
2930
2930
  description: "$nor — logical NOR operator injection",
2931
- pattern: RegExp(`\\$nor${B}\\s*\\[`, "i")
2931
+ pattern: RegExp(`\\$nor${P}\\s*\\[`, "i")
2932
2932
  },
2933
2933
  {
2934
2934
  id: "nosql-exists-operator",
2935
2935
  description: "$exists — can enumerate fields to determine schema",
2936
- pattern: RegExp(`\\$exists${B}`, "i")
2936
+ pattern: RegExp(`\\$exists${P}`, "i")
2937
2937
  },
2938
2938
  {
2939
2939
  id: "nosql-in-operator",
2940
2940
  description: "$in — matches any value in a list; can enumerate values",
2941
- pattern: RegExp(`\\$in${B}\\s*\\[`, "i")
2941
+ pattern: RegExp(`\\$in${P}\\s*\\[`, "i")
2942
2942
  },
2943
2943
  {
2944
2944
  id: "nosql-expr-operator",
2945
2945
  description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
2946
- pattern: RegExp(`\\$expr${B}`, "i")
2946
+ pattern: RegExp(`\\$expr${P}`, "i")
2947
2947
  },
2948
2948
  {
2949
2949
  id: "nosql-function-operator",
2950
2950
  description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
2951
- pattern: RegExp(`\\$function${B}`, "i")
2951
+ pattern: RegExp(`\\$function${P}`, "i")
2952
2952
  },
2953
2953
  {
2954
2954
  id: "nosql-accumulator-operator",
2955
2955
  description: "$accumulator — custom aggregation with arbitrary JS execution",
2956
- pattern: RegExp(`\\$accumulator${B}`, "i")
2956
+ pattern: RegExp(`\\$accumulator${P}`, "i")
2957
2957
  },
2958
2958
  {
2959
2959
  id: "nosql-proto-pollution",
@@ -2970,7 +2970,7 @@ var F = class {
2970
2970
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
2971
2971
  pattern: /\[["']__proto__["']\]/
2972
2972
  }
2973
- ], xt = [
2973
+ ], Dt = [
2974
2974
  {
2975
2975
  id: "log-crlf-injection",
2976
2976
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -3031,7 +3031,7 @@ var F = class {
3031
3031
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
3032
3032
  pattern: /\x1b\[/
3033
3033
  }
3034
- ], St = [
3034
+ ], Ot = [
3035
3035
  {
3036
3036
  id: "sql-line-comment",
3037
3037
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -3047,22 +3047,22 @@ var F = class {
3047
3047
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
3048
3048
  pattern: /\b0x[0-9a-f]{4,}/i
3049
3049
  }
3050
- ], Ct = [...z, ...St];
3051
- L.label = "HTML", R.label = "XML", _t.label = "SVG", z.label = "SQL", Ct.label = "SQL-STRICT", vt.label = "SHELL", yt.label = "REDOS", bt.label = "NOSQL", xt.label = "LOG", Object.freeze({
3052
- HTML: L,
3053
- XML: R,
3054
- SVG: _t,
3055
- SQL: z,
3056
- "SQL-STRICT": Ct,
3057
- SHELL: vt,
3058
- REDOS: yt,
3059
- NOSQL: bt,
3060
- LOG: xt
3050
+ ], kt = [...N, ...Ot];
3051
+ xt.label = "HTML", St.label = "XML", Ct.label = "SVG", N.label = "SQL", kt.label = "SQL-STRICT", wt.label = "SHELL", Tt.label = "REDOS", Et.label = "NOSQL", Dt.label = "LOG", Object.freeze({
3052
+ HTML: xt,
3053
+ XML: St,
3054
+ SVG: Ct,
3055
+ SQL: N,
3056
+ "SQL-STRICT": kt,
3057
+ SHELL: wt,
3058
+ REDOS: Tt,
3059
+ NOSQL: Et,
3060
+ LOG: Dt
3061
3061
  });
3062
- function wt(e) {
3062
+ function At(e) {
3063
3063
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
3064
3064
  }
3065
- function Tt(e) {
3065
+ function jt(e) {
3066
3066
  if (!(e instanceof RegExp)) {
3067
3067
  if (Array.isArray(e)) {
3068
3068
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -3074,7 +3074,7 @@ function Tt(e) {
3074
3074
  throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
3075
3075
  }
3076
3076
  }
3077
- function Et(e) {
3077
+ function Mt(e) {
3078
3078
  return e instanceof RegExp ? {
3079
3079
  lists: null,
3080
3080
  regex: e
@@ -3086,7 +3086,7 @@ function Et(e) {
3086
3086
  regex: null
3087
3087
  };
3088
3088
  }
3089
- function Dt(e, t) {
3089
+ function Nt(e, t) {
3090
3090
  let n = t.label ?? "CUSTOM";
3091
3091
  for (let r of t) if (r.pattern.test(e)) return {
3092
3092
  context: n,
@@ -3096,16 +3096,16 @@ function Dt(e, t) {
3096
3096
  };
3097
3097
  return null;
3098
3098
  }
3099
- function Ot(e, t) {
3100
- wt(e), Tt(t);
3101
- let { lists: n, regex: r } = Et(t);
3099
+ function Pt(e, t) {
3100
+ At(e), jt(t);
3101
+ let { lists: n, regex: r } = Mt(t);
3102
3102
  if (r) return r.test(e);
3103
- for (let t of n) if (Dt(e, t) !== null) return !0;
3103
+ for (let t of n) if (Nt(e, t) !== null) return !0;
3104
3104
  return !1;
3105
3105
  }
3106
3106
  //#endregion
3107
3107
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3108
- function kt(e, t) {
3108
+ function Ft(e, t) {
3109
3109
  if (!e) return {};
3110
3110
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
3111
3111
  if (!n) return {};
@@ -3116,7 +3116,7 @@ function kt(e, t) {
3116
3116
  } else r[e] = n[e];
3117
3117
  return r;
3118
3118
  }
3119
- function At(e) {
3119
+ function It(e) {
3120
3120
  if (!e || typeof e != "string") return;
3121
3121
  let t = e.indexOf(":");
3122
3122
  if (t !== -1 && t > 0) {
@@ -3124,9 +3124,9 @@ function At(e) {
3124
3124
  if (n !== "xmlns") return n;
3125
3125
  }
3126
3126
  }
3127
- var jt = class {
3127
+ var Lt = class {
3128
3128
  constructor(e, t) {
3129
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = It, this.parseTextData = Mt, this.resolveNameSpace = Nt, this.buildAttributesMap = Ft, this.isItStopNode = Bt, this.replaceEntitiesValue = Rt, this.readStopNodeData = Ut, this.saveTextToParentTag = zt, this.addChild = Lt, this.ignoreAttributesFn = mt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3129
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Ht, this.parseTextData = Rt, this.resolveNameSpace = zt, this.buildAttributesMap = Vt, this.isItStopNode = Kt, this.replaceEntitiesValue = Wt, this.readStopNodeData = Yt, this.saveTextToParentTag = Gt, this.addChild = Ut, this.ignoreAttributesFn = _t(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3130
3130
  let n = { ...we };
3131
3131
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
3132
3132
  ...Te,
@@ -3142,27 +3142,27 @@ var jt = class {
3142
3142
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
3143
3143
  applyLimitsTo: this.options.processEntities.appliesTo
3144
3144
  },
3145
- onInputEntity: (e, t) => Ot(t, [L, R]) ? x.BLOCK : x.ALLOW
3146
- })), this.matcher = new I(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new ht();
3145
+ onInputEntity: (e, t) => Pt(t, [xt, St]) ? x.BLOCK : x.ALLOW
3146
+ })), this.matcher = new bt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new vt();
3147
3147
  let r = this.options.stopNodes;
3148
3148
  if (r && r.length > 0) {
3149
3149
  for (let e = 0; e < r.length; e++) {
3150
3150
  let t = r[e];
3151
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new F(t)) : t instanceof F && this.stopNodeExpressionsSet.add(t);
3151
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new M(t)) : t instanceof M && this.stopNodeExpressionsSet.add(t);
3152
3152
  }
3153
3153
  this.stopNodeExpressionsSet.seal();
3154
3154
  }
3155
3155
  }
3156
3156
  };
3157
- function Mt(e, t, n, r, i, a, o) {
3157
+ function Rt(e, t, n, r, i, a, o) {
3158
3158
  let s = this.options;
3159
3159
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
3160
3160
  o || (e = this.replaceEntitiesValue(e, t, n));
3161
3161
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
3162
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Wt(e, s.parseTagValue, s.numberParseOptions) : e;
3162
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Xt(e, s.parseTagValue, s.numberParseOptions) : e;
3163
3163
  }
3164
3164
  }
3165
- function Nt(e) {
3165
+ function zt(e) {
3166
3166
  if (this.options.removeNSPrefix) {
3167
3167
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
3168
3168
  if (t[0] === "xmlns") return "";
@@ -3170,11 +3170,11 @@ function Nt(e) {
3170
3170
  }
3171
3171
  return e;
3172
3172
  }
3173
- var Pt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3174
- function Ft(e, t, n, r = !1) {
3173
+ var Bt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3174
+ function Vt(e, t, n, r = !1) {
3175
3175
  let i = this.options;
3176
3176
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
3177
- let r = u(e, Pt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3177
+ let r = u(e, Bt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3178
3178
  for (let e = 0; e < a; e++) {
3179
3179
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
3180
3180
  if (t.length && a !== void 0) {
@@ -3188,9 +3188,9 @@ function Ft(e, t, n, r = !1) {
3188
3188
  let t = this.resolveNameSpace(r[e][1]);
3189
3189
  if (this.ignoreAttributesFn(t, d)) continue;
3190
3190
  let n = i.attributeNamePrefix + t;
3191
- if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Kt(n, i), r[e][4] !== void 0) {
3191
+ if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zt(n, i), r[e][4] !== void 0) {
3192
3192
  let r = s[e], a = i.attributeValueProcessor(t, r, d);
3193
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Wt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3193
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Xt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3194
3194
  } else i.allowBooleanAttributes && (o[n] = !0, f = !0);
3195
3195
  }
3196
3196
  if (!f) return;
@@ -3201,25 +3201,25 @@ function Ft(e, t, n, r = !1) {
3201
3201
  return o;
3202
3202
  }
3203
3203
  }
3204
- var It = function(e) {
3204
+ var Ht = function(e) {
3205
3205
  e = e.replace(/\r\n?/g, "\n");
3206
3206
  let t = new E("!xml"), n = t, r = "";
3207
3207
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3208
- let i = this.options, a = new Xe(i.processEntities), o = e.length;
3208
+ let i = this.options, a = new Ze(i.processEntities), o = e.length;
3209
3209
  for (let s = 0; s < o; s++) if (e[s] === "<") {
3210
3210
  let c = e.charCodeAt(s + 1);
3211
3211
  if (c === 47) {
3212
- let t = V(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3212
+ let t = F(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
3213
3213
  if (i.removeNSPrefix) {
3214
3214
  let e = a.indexOf(":");
3215
3215
  e !== -1 && (a = a.substr(e + 1));
3216
3216
  }
3217
- a = Gt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3217
+ a = L(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3218
3218
  let o = this.matcher.getCurrentTag();
3219
3219
  if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
3220
3220
  o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
3221
3221
  } else if (c === 63) {
3222
- let t = H(e, s, !1, "?>");
3222
+ let t = I(e, s, !1, "?>");
3223
3223
  if (!t) throw Error("Pi Tag is not closed.");
3224
3224
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3225
3225
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -3233,7 +3233,7 @@ var It = function(e) {
3233
3233
  }
3234
3234
  s = t.closeIndex + 1;
3235
3235
  } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
3236
- let t = V(e, "-->", s + 4, "Comment is not closed.");
3236
+ let t = F(e, "-->", s + 4, "Comment is not closed.");
3237
3237
  if (i.commentPropName) {
3238
3238
  let a = e.substring(s + 4, t - 2);
3239
3239
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
@@ -3243,25 +3243,25 @@ var It = function(e) {
3243
3243
  let t = a.readDocType(e, s);
3244
3244
  this.entityDecoder.addInputEntities(t.entities), s = t.i;
3245
3245
  } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
3246
- let t = V(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3246
+ let t = F(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3247
3247
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3248
3248
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3249
3249
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
3250
3250
  } else {
3251
- let a = H(e, s, i.removeNSPrefix);
3251
+ let a = I(e, s, i.removeNSPrefix);
3252
3252
  if (!a) {
3253
3253
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
3254
3254
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
3255
3255
  }
3256
3256
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
3257
- if ({tagName: c, tagExp: u} = Gt(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
3257
+ if ({tagName: c, tagExp: u} = L(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
3258
3258
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
3259
3259
  let p = n;
3260
3260
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
3261
3261
  let m = !1;
3262
3262
  u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
3263
3263
  let h = null, g;
3264
- g = At(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && kt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3264
+ g = It(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Ft(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3265
3265
  let _ = s;
3266
3266
  if (this.isCurrentNodeStopNode) {
3267
3267
  let t = "";
@@ -3276,7 +3276,7 @@ var It = function(e) {
3276
3276
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
3277
3277
  } else {
3278
3278
  if (m) {
3279
- ({tagName: c, tagExp: u} = Gt(i.transformTagName, c, u, i));
3279
+ ({tagName: c, tagExp: u} = L(i.transformTagName, c, u, i));
3280
3280
  let e = new E(c);
3281
3281
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3282
3282
  } else if (i.unpairedTagsSet.has(c)) {
@@ -3294,12 +3294,12 @@ var It = function(e) {
3294
3294
  } else r += e[s];
3295
3295
  return t.child;
3296
3296
  };
3297
- function Lt(e, t, n, r) {
3297
+ function Ut(e, t, n, r) {
3298
3298
  this.options.captureMetaData || (r = void 0);
3299
3299
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
3300
3300
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
3301
3301
  }
3302
- function Rt(e, t, n) {
3302
+ function Wt(e, t, n) {
3303
3303
  let r = this.options.processEntities;
3304
3304
  if (!r || !r.enabled) return e;
3305
3305
  if (r.allowedTags) {
@@ -3312,13 +3312,13 @@ function Rt(e, t, n) {
3312
3312
  }
3313
3313
  return this.entityDecoder.decode(e);
3314
3314
  }
3315
- function zt(e, t, n, r) {
3315
+ function Gt(e, t, n, r) {
3316
3316
  return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
3317
3317
  }
3318
- function Bt() {
3318
+ function Kt() {
3319
3319
  return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
3320
3320
  }
3321
- function Vt(e, t, n = ">") {
3321
+ function qt(e, t, n = ">") {
3322
3322
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
3323
3323
  for (let n = t; n < i; n++) {
3324
3324
  let t = e.charCodeAt(n);
@@ -3336,18 +3336,18 @@ function Vt(e, t, n = ">") {
3336
3336
  else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
3337
3337
  }
3338
3338
  }
3339
- function V(e, t, n, r) {
3339
+ function F(e, t, n, r) {
3340
3340
  let i = e.indexOf(t, n);
3341
3341
  if (i === -1) throw Error(r);
3342
3342
  return i + t.length - 1;
3343
3343
  }
3344
- function Ht(e, t, n, r) {
3344
+ function Jt(e, t, n, r) {
3345
3345
  let i = e.indexOf(t, n);
3346
3346
  if (i === -1) throw Error(r);
3347
3347
  return i;
3348
3348
  }
3349
- function H(e, t, n, r = ">") {
3350
- let i = Vt(e, t + 1, r);
3349
+ function I(e, t, n, r = ">") {
3350
+ let i = qt(e, t + 1, r);
3351
3351
  if (!i) return;
3352
3352
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
3353
3353
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -3364,51 +3364,51 @@ function H(e, t, n, r = ">") {
3364
3364
  rawTagName: u
3365
3365
  };
3366
3366
  }
3367
- function Ut(e, t, n) {
3367
+ function Yt(e, t, n) {
3368
3368
  let r = n, i = 1, a = e.length;
3369
3369
  for (; n < a; n++) if (e[n] === "<") {
3370
3370
  let a = e.charCodeAt(n + 1);
3371
3371
  if (a === 47) {
3372
- let a = Ht(e, ">", n, `${t} is not closed`);
3372
+ let a = Jt(e, ">", n, `${t} is not closed`);
3373
3373
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
3374
3374
  tagContent: e.substring(r, n),
3375
3375
  i: a
3376
3376
  };
3377
3377
  n = a;
3378
- } else if (a === 63) n = V(e, "?>", n + 1, "StopNode is not closed.");
3379
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = V(e, "-->", n + 3, "StopNode is not closed.");
3380
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = V(e, "]]>", n, "StopNode is not closed.") - 2;
3378
+ } else if (a === 63) n = F(e, "?>", n + 1, "StopNode is not closed.");
3379
+ else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = F(e, "-->", n + 3, "StopNode is not closed.");
3380
+ else if (a === 33 && e.charCodeAt(n + 2) === 91) n = F(e, "]]>", n, "StopNode is not closed.") - 2;
3381
3381
  else {
3382
- let r = H(e, n, !1);
3382
+ let r = I(e, n, !1);
3383
3383
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
3384
3384
  }
3385
3385
  }
3386
3386
  }
3387
- function Wt(e, t, n) {
3387
+ function Xt(e, t, n) {
3388
3388
  if (t && typeof e == "string") {
3389
3389
  let t = e.trim();
3390
- return t === "true" ? !0 : t === "false" ? !1 : lt(e, n);
3390
+ return t === "true" ? !0 : t === "false" ? !1 : dt(e, n);
3391
3391
  } else if (f(e)) return e;
3392
3392
  else return "";
3393
3393
  }
3394
- function Gt(e, t, n, r) {
3394
+ function L(e, t, n, r) {
3395
3395
  if (e) {
3396
3396
  let r = e(t);
3397
3397
  n === t && (n = r), t = r;
3398
3398
  }
3399
- return t = Kt(t, r), {
3399
+ return t = Zt(t, r), {
3400
3400
  tagName: t,
3401
3401
  tagExp: n
3402
3402
  };
3403
3403
  }
3404
- function Kt(e, t) {
3404
+ function Zt(e, t) {
3405
3405
  if (m.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3406
3406
  return p.includes(e) ? t.onDangerousProperty(e) : e;
3407
3407
  }
3408
3408
  //#endregion
3409
3409
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3410
- var qt = E.getMetaDataSymbol();
3411
- function Jt(e, t) {
3410
+ var R = E.getMetaDataSymbol();
3411
+ function Qt(e, t) {
3412
3412
  if (!e || typeof e != "object") return {};
3413
3413
  if (!t) return e;
3414
3414
  let n = {};
@@ -3418,22 +3418,22 @@ function Jt(e, t) {
3418
3418
  } else n[r] = e[r];
3419
3419
  return n;
3420
3420
  }
3421
- function Yt(e, t, n, r) {
3422
- return Xt(e, t, n, r);
3421
+ function $t(e, t, n, r) {
3422
+ return en(e, t, n, r);
3423
3423
  }
3424
- function Xt(e, t, n, r) {
3424
+ function en(e, t, n, r) {
3425
3425
  let i, a = {};
3426
3426
  for (let o = 0; o < e.length; o++) {
3427
- let s = e[o], c = Zt(s);
3427
+ let s = e[o], c = tn(s);
3428
3428
  if (c !== void 0 && c !== t.textNodeName) {
3429
- let e = Jt(s[":@"] || {}, t.attributeNamePrefix);
3429
+ let e = Qt(s[":@"] || {}, t.attributeNamePrefix);
3430
3430
  n.push(c, e);
3431
3431
  }
3432
3432
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
3433
3433
  else if (c === void 0) continue;
3434
3434
  else if (s[c]) {
3435
- let e = Xt(s[c], t, n, r), i = $t(e, t);
3436
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? Qt(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[qt] !== void 0 && typeof e == "object" && e && (e[qt] = s[qt]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3435
+ let e = en(s[c], t, n, r), i = rn(e, t);
3436
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? nn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[R] !== void 0 && typeof e == "object" && e && (e[R] = s[R]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3437
3437
  else {
3438
3438
  let n = t.jPath ? r.toString() : r;
3439
3439
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -3443,14 +3443,14 @@ function Xt(e, t, n, r) {
3443
3443
  }
3444
3444
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
3445
3445
  }
3446
- function Zt(e) {
3446
+ function tn(e) {
3447
3447
  let t = Object.keys(e);
3448
3448
  for (let e = 0; e < t.length; e++) {
3449
3449
  let n = t[e];
3450
3450
  if (n !== ":@") return n;
3451
3451
  }
3452
3452
  }
3453
- function Qt(e, t, n, r) {
3453
+ function nn(e, t, n, r) {
3454
3454
  if (t) {
3455
3455
  let i = Object.keys(t), a = i.length;
3456
3456
  for (let o = 0; o < a; o++) {
@@ -3459,13 +3459,13 @@ function Qt(e, t, n, r) {
3459
3459
  }
3460
3460
  }
3461
3461
  }
3462
- function $t(e, t) {
3462
+ function rn(e, t) {
3463
3463
  let { textNodeName: n } = t, r = Object.keys(e).length;
3464
3464
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
3465
3465
  }
3466
3466
  //#endregion
3467
3467
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3468
- var en = class {
3468
+ var an = class {
3469
3469
  constructor(e) {
3470
3470
  this.externalEntities = {}, this.options = Le(e);
3471
3471
  }
@@ -3477,8 +3477,8 @@ var en = class {
3477
3477
  let n = g(e, t);
3478
3478
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3479
3479
  }
3480
- let n = new jt(this.options, this.externalEntities), r = n.parseXml(e);
3481
- return this.options.preserveOrder || r === void 0 ? r : Yt(r, this.options, n.matcher, n.readonlyMatcher);
3480
+ let n = new Lt(this.options, this.externalEntities), r = n.parseXml(e);
3481
+ return this.options.preserveOrder || r === void 0 ? r : $t(r, this.options, n.matcher, n.readonlyMatcher);
3482
3482
  }
3483
3483
  addEntity(e, t) {
3484
3484
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -3492,22 +3492,22 @@ var en = class {
3492
3492
  };
3493
3493
  //#endregion
3494
3494
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
3495
- function tn(e) {
3495
+ function z(e) {
3496
3496
  return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
3497
3497
  }
3498
- function nn(e) {
3498
+ function on(e) {
3499
3499
  return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
3500
3500
  }
3501
- function U(e) {
3501
+ function B(e) {
3502
3502
  return String(e).replace(/"/g, "&quot;").replace(/'/g, "&apos;");
3503
3503
  }
3504
3504
  //#endregion
3505
3505
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
3506
- var rn = "\n";
3507
- function an(e, t) {
3506
+ var sn = "\n";
3507
+ function cn(e, t) {
3508
3508
  if (!Array.isArray(e) || e.length === 0) return "1.0";
3509
3509
  let n = e[0];
3510
- if (fn(n) === "?xml") {
3510
+ if (V(n) === "?xml") {
3511
3511
  let e = n[":@"];
3512
3512
  if (e) {
3513
3513
  let n = t.attributeNamePrefix + "version";
@@ -3516,121 +3516,121 @@ function an(e, t) {
3516
3516
  }
3517
3517
  return "1.0";
3518
3518
  }
3519
- function on(e, t, n, r, i) {
3519
+ function ln(e, t, n, r, i) {
3520
3520
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3521
3521
  isAttribute: t,
3522
3522
  matcher: r.readOnly()
3523
3523
  });
3524
3524
  }
3525
- function sn(e, t) {
3525
+ function un(e, t) {
3526
3526
  let n = "";
3527
- t.format && (n = rn);
3527
+ t.format && (n = sn);
3528
3528
  let r = [];
3529
3529
  if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
3530
3530
  let n = t.stopNodes[e];
3531
- typeof n == "string" ? r.push(new F(n)) : n instanceof F && r.push(n);
3531
+ typeof n == "string" ? r.push(new M(n)) : n instanceof M && r.push(n);
3532
3532
  }
3533
- let i = Ye("qName", { xmlVersion: an(e, t) }), a = new I();
3534
- return cn(e, t, n, a, r, i);
3533
+ let i = Xe("qName", { xmlVersion: cn(e, t) }), a = new bt();
3534
+ return dn(e, t, n, a, r, i);
3535
3535
  }
3536
- function cn(e, t, n, r, i, a) {
3536
+ function dn(e, t, n, r, i, a) {
3537
3537
  let o = "", s = !1;
3538
3538
  if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
3539
3539
  if (!Array.isArray(e)) {
3540
3540
  if (e != null) {
3541
3541
  let n = e.toString();
3542
- return n = hn(n, t), n;
3542
+ return n = H(n, t), n;
3543
3543
  }
3544
3544
  return "";
3545
3545
  }
3546
3546
  for (let c = 0; c < e.length; c++) {
3547
- let l = e[c], u = fn(l);
3547
+ let l = e[c], u = V(l);
3548
3548
  if (u === void 0) continue;
3549
- let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : on(u, !1, t, r, a), f = ln(l[":@"], t);
3549
+ let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : ln(u, !1, t, r, a), f = fn(l[":@"], t);
3550
3550
  r.push(d, f);
3551
- let p = mn(r, i);
3551
+ let p = gn(r, i);
3552
3552
  if (d === t.textNodeName) {
3553
3553
  let e = l[u];
3554
- p || (e = t.tagValueProcessor(d, e), e = hn(e, t)), s && (o += n), o += e, s = !1, r.pop();
3554
+ p || (e = t.tagValueProcessor(d, e), e = H(e, t)), s && (o += n), o += e, s = !1, r.pop();
3555
3555
  continue;
3556
3556
  } else if (d === t.cdataPropName) {
3557
3557
  s && (o += n);
3558
- let e = l[u][0][t.textNodeName], i = nn(e);
3558
+ let e = l[u][0][t.textNodeName], i = on(e);
3559
3559
  o += `<![CDATA[${i}]]>`, s = !1, r.pop();
3560
3560
  continue;
3561
3561
  } else if (d === t.commentPropName) {
3562
- let e = l[u][0][t.textNodeName], i = tn(e);
3562
+ let e = l[u][0][t.textNodeName], i = z(e);
3563
3563
  o += n + `<!--${i}-->`, s = !0, r.pop();
3564
3564
  continue;
3565
3565
  } else if (d[0] === "?") {
3566
- let e = pn(l[":@"], t, p, r, a);
3566
+ let e = hn(l[":@"], t, p, r, a);
3567
3567
  o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
3568
3568
  continue;
3569
3569
  }
3570
3570
  let m = n;
3571
3571
  m !== "" && (m += t.indentBy);
3572
- let h = n + `<${d}${pn(l[":@"], t, p, r, a)}`, g;
3573
- g = p ? un(l[u], t) : cn(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
3572
+ let h = n + `<${d}${hn(l[":@"], t, p, r, a)}`, g;
3573
+ g = p ? pn(l[u], t) : dn(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
3574
3574
  }
3575
3575
  return o;
3576
3576
  }
3577
- function ln(e, t) {
3577
+ function fn(e, t) {
3578
3578
  if (!e || t.ignoreAttributes) return null;
3579
3579
  let n = {}, r = !1;
3580
3580
  for (let i in e) {
3581
3581
  if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
3582
3582
  let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
3583
- n[a] = U(e[i]), r = !0;
3583
+ n[a] = B(e[i]), r = !0;
3584
3584
  }
3585
3585
  return r ? n : null;
3586
3586
  }
3587
- function un(e, t) {
3587
+ function pn(e, t) {
3588
3588
  if (!Array.isArray(e)) return e == null ? "" : e.toString();
3589
3589
  let n = "";
3590
3590
  for (let r = 0; r < e.length; r++) {
3591
- let i = e[r], a = fn(i);
3591
+ let i = e[r], a = V(i);
3592
3592
  if (a === t.textNodeName) n += i[a];
3593
3593
  else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
3594
3594
  else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
3595
3595
  else if (a && a[0] === "?") continue;
3596
3596
  else if (a) {
3597
- let e = dn(i[":@"], t), r = un(i[a], t);
3597
+ let e = mn(i[":@"], t), r = pn(i[a], t);
3598
3598
  !r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
3599
3599
  }
3600
3600
  }
3601
3601
  return n;
3602
3602
  }
3603
- function dn(e, t) {
3603
+ function mn(e, t) {
3604
3604
  let n = "";
3605
3605
  if (e && !t.ignoreAttributes) for (let r in e) {
3606
3606
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3607
3607
  let i = e[r];
3608
- i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${U(i)}"`;
3608
+ i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${B(i)}"`;
3609
3609
  }
3610
3610
  return n;
3611
3611
  }
3612
- function fn(e) {
3612
+ function V(e) {
3613
3613
  let t = Object.keys(e);
3614
3614
  for (let n = 0; n < t.length; n++) {
3615
3615
  let r = t[n];
3616
3616
  if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
3617
3617
  }
3618
3618
  }
3619
- function pn(e, t, n, r, i) {
3619
+ function hn(e, t, n, r, i) {
3620
3620
  let a = "";
3621
3621
  if (e && !t.ignoreAttributes) for (let o in e) {
3622
3622
  if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
3623
- let s = o.substr(t.attributeNamePrefix.length), c = n ? s : on(s, !0, t, r, i), l;
3624
- n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = hn(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${U(l)}"`;
3623
+ let s = o.substr(t.attributeNamePrefix.length), c = n ? s : ln(s, !0, t, r, i), l;
3624
+ n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = H(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${B(l)}"`;
3625
3625
  }
3626
3626
  return a;
3627
3627
  }
3628
- function mn(e, t) {
3628
+ function gn(e, t) {
3629
3629
  if (!t || t.length === 0) return !1;
3630
3630
  for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
3631
3631
  return !1;
3632
3632
  }
3633
- function hn(e, t) {
3633
+ function H(e, t) {
3634
3634
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
3635
3635
  let r = t.entities[n];
3636
3636
  e = e.replace(r.regex, r.val);
@@ -3639,14 +3639,14 @@ function hn(e, t) {
3639
3639
  }
3640
3640
  //#endregion
3641
3641
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
3642
- function gn(e) {
3642
+ function _n(e) {
3643
3643
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
3644
3644
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
3645
3645
  } : () => !1;
3646
3646
  }
3647
3647
  //#endregion
3648
3648
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
3649
- var _n = {
3649
+ var vn = {
3650
3650
  attributeNamePrefix: "@_",
3651
3651
  attributesGroupName: !1,
3652
3652
  textNodeName: "#text",
@@ -3695,18 +3695,18 @@ var _n = {
3695
3695
  jPath: !0,
3696
3696
  sanitizeName: !1
3697
3697
  };
3698
- function W(e) {
3699
- if (this.options = Object.assign({}, _n, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
3698
+ function U(e) {
3699
+ if (this.options = Object.assign({}, vn, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
3700
3700
  let t = this.options.stopNodes[e];
3701
- typeof t == "string" ? this.stopNodeExpressions.push(new F(t)) : t instanceof F && this.stopNodeExpressions.push(t);
3701
+ typeof t == "string" ? this.stopNodeExpressions.push(new M(t)) : t instanceof M && this.stopNodeExpressions.push(t);
3702
3702
  }
3703
3703
  this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3704
3704
  return !1;
3705
- } : (this.ignoreAttributesFn = gn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Sn), this.processTextOrObjNode = bn, this.options.format ? (this.indentate = xn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3705
+ } : (this.ignoreAttributesFn = _n(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Cn), this.processTextOrObjNode = xn, this.options.format ? (this.indentate = Sn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3706
3706
  return "";
3707
3707
  }, this.tagEndChar = ">", this.newLine = "");
3708
3708
  }
3709
- function vn(e, t) {
3709
+ function yn(e, t) {
3710
3710
  let n = e["?xml"];
3711
3711
  if (n && typeof n == "object") {
3712
3712
  if (t.attributesGroupName && n[t.attributesGroupName]) {
@@ -3718,33 +3718,33 @@ function vn(e, t) {
3718
3718
  }
3719
3719
  return "1.0";
3720
3720
  }
3721
- function yn(e, t, n, r, i) {
3721
+ function bn(e, t, n, r, i) {
3722
3722
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3723
3723
  isAttribute: t,
3724
3724
  matcher: r.readOnly()
3725
3725
  });
3726
3726
  }
3727
- W.prototype.build = function(e) {
3728
- if (this.options.preserveOrder) return sn(e, this.options);
3727
+ U.prototype.build = function(e) {
3728
+ if (this.options.preserveOrder) return un(e, this.options);
3729
3729
  {
3730
3730
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
3731
- let t = new I(), n = Ye("qName", { xmlVersion: vn(e, this.options) });
3731
+ let t = new bt(), n = Xe("qName", { xmlVersion: yn(e, this.options) });
3732
3732
  return this.j2x(e, 0, t, n).val;
3733
3733
  }
3734
- }, W.prototype.j2x = function(e, t, n, r) {
3734
+ }, U.prototype.j2x = function(e, t, n, r) {
3735
3735
  let i = "", a = "";
3736
3736
  if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
3737
3737
  let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
3738
3738
  for (let c in e) {
3739
3739
  if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
3740
- let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : yn(c, !1, this.options, n, r);
3740
+ let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : bn(c, !1, this.options, n, r);
3741
3741
  if (e[c] === void 0) this.isAttribute(c) && (a += "");
3742
3742
  else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
3743
3743
  else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
3744
3744
  else if (typeof e[c] != "object") {
3745
3745
  let u = this.isAttribute(c);
3746
3746
  if (u && !this.ignoreAttributesFn(u, o)) {
3747
- let t = yn(u, !0, this.options, n, r);
3747
+ let t = bn(u, !0, this.options, n, r);
3748
3748
  i += this.buildAttrPairStr(t, "" + e[c], s);
3749
3749
  } else if (!u) if (c === this.options.textNodeName) {
3750
3750
  let t = this.options.tagValueProcessor(c, "" + e[c]);
@@ -3783,7 +3783,7 @@ W.prototype.build = function(e) {
3783
3783
  } else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
3784
3784
  let t = Object.keys(e[c]), a = t.length;
3785
3785
  for (let o = 0; o < a; o++) {
3786
- let a = yn(t[o], !0, this.options, n, r);
3786
+ let a = bn(t[o], !0, this.options, n, r);
3787
3787
  i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
3788
3788
  }
3789
3789
  } else a += this.processTextOrObjNode(e[c], l, t, n, r);
@@ -3792,10 +3792,10 @@ W.prototype.build = function(e) {
3792
3792
  attrStr: i,
3793
3793
  val: a
3794
3794
  };
3795
- }, W.prototype.buildAttrPairStr = function(e, t, n) {
3796
- return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + U(t) + "\"";
3795
+ }, U.prototype.buildAttrPairStr = function(e, t, n) {
3796
+ return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + B(t) + "\"";
3797
3797
  };
3798
- function bn(e, t, n, r, i) {
3798
+ function xn(e, t, n, r, i) {
3799
3799
  let a = this.extractAttributes(e);
3800
3800
  if (r.push(t, a), this.checkStopNode(r)) {
3801
3801
  let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
@@ -3804,7 +3804,7 @@ function bn(e, t, n, r, i) {
3804
3804
  let o = this.j2x(e, n + 1, r, i);
3805
3805
  return r.pop(), t[0] === "?" ? this.buildTextValNode("", t, o.attrStr, n, r) : e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, o.attrStr, n, r) : this.buildObjectNode(o.val, t, o.attrStr, n);
3806
3806
  }
3807
- W.prototype.extractAttributes = function(e) {
3807
+ U.prototype.extractAttributes = function(e) {
3808
3808
  if (!e || typeof e != "object") return null;
3809
3809
  let t = {}, n = !1;
3810
3810
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3812,15 +3812,15 @@ W.prototype.extractAttributes = function(e) {
3812
3812
  for (let e in r) {
3813
3813
  if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
3814
3814
  let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
3815
- t[i] = U(r[e]), n = !0;
3815
+ t[i] = B(r[e]), n = !0;
3816
3816
  }
3817
3817
  } else for (let r in e) {
3818
3818
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3819
3819
  let i = this.isAttribute(r);
3820
- i && (t[i] = U(e[r]), n = !0);
3820
+ i && (t[i] = B(e[r]), n = !0);
3821
3821
  }
3822
3822
  return n ? t : null;
3823
- }, W.prototype.buildRawContent = function(e) {
3823
+ }, U.prototype.buildRawContent = function(e) {
3824
3824
  if (typeof e == "string") return e;
3825
3825
  if (typeof e != "object" || !e) return String(e);
3826
3826
  if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
@@ -3841,7 +3841,7 @@ W.prototype.extractAttributes = function(e) {
3841
3841
  } else t += `<${n}>${r}</${n}>`;
3842
3842
  }
3843
3843
  return t;
3844
- }, W.prototype.buildAttributesForStopNode = function(e) {
3844
+ }, U.prototype.buildAttributesForStopNode = function(e) {
3845
3845
  if (!e || typeof e != "object") return "";
3846
3846
  let t = "";
3847
3847
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3849,84 +3849,84 @@ W.prototype.extractAttributes = function(e) {
3849
3849
  for (let e in n) {
3850
3850
  if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
3851
3851
  let r = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e, i = n[e];
3852
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
3852
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + B(i) + "\"";
3853
3853
  }
3854
3854
  } else for (let n in e) {
3855
3855
  if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
3856
3856
  let r = this.isAttribute(n);
3857
3857
  if (r) {
3858
3858
  let i = e[n];
3859
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
3859
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + B(i) + "\"";
3860
3860
  }
3861
3861
  }
3862
3862
  return t;
3863
- }, W.prototype.buildObjectNode = function(e, t, n, r) {
3863
+ }, U.prototype.buildObjectNode = function(e, t, n, r) {
3864
3864
  if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
3865
3865
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3866
3866
  {
3867
3867
  let i = "</" + t + this.tagEndChar, a = "";
3868
- return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${tn(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
3868
+ return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${z(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
3869
3869
  }
3870
- }, W.prototype.closeTag = function(e) {
3870
+ }, U.prototype.closeTag = function(e) {
3871
3871
  let t = "";
3872
3872
  return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
3873
- }, W.prototype.checkStopNode = function(e) {
3873
+ }, U.prototype.checkStopNode = function(e) {
3874
3874
  if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
3875
3875
  for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
3876
3876
  return !1;
3877
- }, W.prototype.buildTextValNode = function(e, t, n, r, i) {
3877
+ }, U.prototype.buildTextValNode = function(e, t, n, r, i) {
3878
3878
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
3879
- let t = nn(e);
3879
+ let t = on(e);
3880
3880
  return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
3881
3881
  } else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
3882
- let t = tn(e);
3882
+ let t = z(e);
3883
3883
  return this.indentate(r) + `<!--${t}-->` + this.newLine;
3884
3884
  } else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3885
3885
  else {
3886
3886
  let i = this.options.tagValueProcessor(t, e);
3887
3887
  return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
3888
3888
  }
3889
- }, W.prototype.replaceEntitiesValue = function(e) {
3889
+ }, U.prototype.replaceEntitiesValue = function(e) {
3890
3890
  if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
3891
3891
  let n = this.options.entities[t];
3892
3892
  e = e.replace(n.regex, n.val);
3893
3893
  }
3894
3894
  return e;
3895
3895
  };
3896
- function xn(e) {
3896
+ function Sn(e) {
3897
3897
  return this.options.indentBy.repeat(e);
3898
3898
  }
3899
- function Sn(e) {
3899
+ function Cn(e) {
3900
3900
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
3901
3901
  }
3902
3902
  //#endregion
3903
3903
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
3904
- var Cn = W, G = e.object({
3904
+ var wn = U, W = e.object({
3905
3905
  created_at: e.string(),
3906
3906
  updated_at: e.string()
3907
- }), wn = e.object({
3907
+ }), Tn = e.object({
3908
3908
  id: e.string(),
3909
3909
  version: e.string().optional()
3910
- }), Tn = e.object({
3910
+ }), En = e.object({
3911
3911
  name: e.string(),
3912
3912
  version: e.string()
3913
- }), En = e.object({
3913
+ }), Dn = e.object({
3914
3914
  name: e.string(),
3915
3915
  value: e.string().optional()
3916
- }), Dn = e.object({
3916
+ }), On = e.object({
3917
3917
  name: e.string().max(255),
3918
3918
  code: e.string().max(1e5),
3919
- supported_triggers: e.array(wn).optional(),
3919
+ supported_triggers: e.array(Tn).optional(),
3920
3920
  runtime: e.string().max(50).optional(),
3921
- dependencies: e.array(Tn).optional(),
3922
- secrets: e.array(En).optional(),
3921
+ dependencies: e.array(En).optional(),
3922
+ secrets: e.array(Dn).optional(),
3923
3923
  is_system: e.boolean().optional(),
3924
3924
  inherit: e.boolean().optional()
3925
3925
  });
3926
- Dn.partial().extend({
3926
+ On.partial().extend({
3927
3927
  status: e.enum(["draft", "built"]).optional(),
3928
3928
  deployed_at: e.string().optional()
3929
- }), Dn.extend({
3929
+ }), On.extend({
3930
3930
  id: e.string(),
3931
3931
  tenant_id: e.string(),
3932
3932
  status: e.enum(["draft", "built"]).default("built"),
@@ -3935,26 +3935,26 @@ Dn.partial().extend({
3935
3935
  name: e.string(),
3936
3936
  value: e.string().optional()
3937
3937
  })).optional()
3938
- }).extend(G.shape);
3938
+ }).extend(W.shape);
3939
3939
  //#endregion
3940
3940
  //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3941
- var On = e.string(), kn = e.enum([
3941
+ var kn = e.string(), An = e.enum([
3942
3942
  "unspecified",
3943
3943
  "pending",
3944
3944
  "final",
3945
3945
  "partial",
3946
3946
  "canceled",
3947
3947
  "suspended"
3948
- ]), An = e.object({
3948
+ ]), jn = e.object({
3949
3949
  id: e.string(),
3950
3950
  msg: e.string(),
3951
3951
  url: e.string().optional()
3952
- }), jn = e.object({
3952
+ }), Mn = e.object({
3953
3953
  action_name: e.string(),
3954
- error: An.nullable(),
3954
+ error: jn.nullable(),
3955
3955
  started_at: e.string(),
3956
3956
  ended_at: e.string()
3957
- }), Mn = e.object({
3957
+ }), Nn = e.object({
3958
3958
  level: e.enum([
3959
3959
  "log",
3960
3960
  "info",
@@ -3963,17 +3963,17 @@ var On = e.string(), kn = e.enum([
3963
3963
  "debug"
3964
3964
  ]),
3965
3965
  message: e.string()
3966
- }), Nn = e.array(e.object({
3966
+ }), Pn = e.array(e.object({
3967
3967
  action_name: e.string(),
3968
- lines: e.array(Mn)
3968
+ lines: e.array(Nn)
3969
3969
  }));
3970
3970
  e.object({
3971
3971
  id: e.string(),
3972
3972
  tenant_id: e.string(),
3973
- trigger_id: On,
3974
- status: kn,
3975
- results: e.array(jn),
3976
- logs: Nn.optional(),
3973
+ trigger_id: kn,
3974
+ status: An,
3975
+ results: e.array(Mn),
3976
+ logs: Pn.optional(),
3977
3977
  created_at: e.string(),
3978
3978
  updated_at: e.string()
3979
3979
  }).omit({
@@ -3984,21 +3984,21 @@ e.object({
3984
3984
  action_id: e.string(),
3985
3985
  code: e.string().max(1e5),
3986
3986
  runtime: e.string().max(50).optional(),
3987
- dependencies: e.array(Tn).optional(),
3988
- secrets: e.array(En).optional(),
3989
- supported_triggers: e.array(wn).optional(),
3987
+ dependencies: e.array(En).optional(),
3988
+ secrets: e.array(Dn).optional(),
3989
+ supported_triggers: e.array(Tn).optional(),
3990
3990
  deployed: e.boolean().default(!0)
3991
3991
  }).extend({
3992
3992
  id: e.string(),
3993
3993
  tenant_id: e.string(),
3994
3994
  number: e.number().int()
3995
- }).extend(G.shape);
3996
- var Pn = e.enum([
3995
+ }).extend(W.shape);
3996
+ var Fn = e.enum([
3997
3997
  "user_action",
3998
3998
  "admin_action",
3999
3999
  "system",
4000
4000
  "api"
4001
- ]), Fn = e.object({
4001
+ ]), In = e.object({
4002
4002
  type: e.enum([
4003
4003
  "user",
4004
4004
  "admin",
@@ -4012,7 +4012,7 @@ var Pn = e.enum([
4012
4012
  org_name: e.string().optional(),
4013
4013
  scopes: e.array(e.string()).optional(),
4014
4014
  client_id: e.string().optional()
4015
- }), In = e.object({
4015
+ }), Ln = e.object({
4016
4016
  type: e.string(),
4017
4017
  id: e.string(),
4018
4018
  before: e.record(e.string(), e.unknown()).optional(),
@@ -4021,7 +4021,7 @@ var Pn = e.enum([
4021
4021
  old: e.unknown(),
4022
4022
  new: e.unknown()
4023
4023
  })).optional()
4024
- }), Ln = e.object({
4024
+ }), Rn = e.object({
4025
4025
  method: e.string(),
4026
4026
  path: e.string(),
4027
4027
  query: e.record(e.string(), e.string()).optional(),
@@ -4030,17 +4030,17 @@ var Pn = e.enum([
4030
4030
  user_agent: e.string().optional(),
4031
4031
  correlation_id: e.string().optional(),
4032
4032
  redirect_uri: e.string().optional()
4033
- }), Rn = e.object({
4033
+ }), zn = e.object({
4034
4034
  status_code: e.number(),
4035
4035
  body: e.unknown().optional()
4036
- }), zn = e.object({
4036
+ }), Bn = e.object({
4037
4037
  country_code: e.string(),
4038
4038
  city_name: e.string(),
4039
4039
  latitude: e.string(),
4040
4040
  longitude: e.string(),
4041
4041
  time_zone: e.string(),
4042
4042
  continent_code: e.string()
4043
- }), Bn = e.object({
4043
+ }), Vn = e.object({
4044
4044
  name: e.string(),
4045
4045
  version: e.string(),
4046
4046
  env: e.record(e.string(), e.string()).optional()
@@ -4050,11 +4050,11 @@ e.object({
4050
4050
  event_type: e.string(),
4051
4051
  log_type: e.string(),
4052
4052
  description: e.string().optional(),
4053
- category: Pn,
4054
- actor: Fn,
4055
- target: In,
4056
- request: Ln,
4057
- response: Rn.optional(),
4053
+ category: Fn,
4054
+ actor: In,
4055
+ target: Ln,
4056
+ request: Rn,
4057
+ response: zn.optional(),
4058
4058
  connection: e.string().optional(),
4059
4059
  connection_id: e.string().optional(),
4060
4060
  client_name: e.string().optional(),
@@ -4062,8 +4062,8 @@ e.object({
4062
4062
  strategy_type: e.string().optional(),
4063
4063
  audience: e.string().optional(),
4064
4064
  scope: e.string().optional(),
4065
- location: zn.optional(),
4066
- auth0_client: Bn.optional(),
4065
+ location: Bn.optional(),
4066
+ auth0_client: Vn.optional(),
4067
4067
  hostname: e.string(),
4068
4068
  is_mobile: e.boolean().optional(),
4069
4069
  timestamp: e.string()
@@ -4078,14 +4078,14 @@ e.object({
4078
4078
  "SEND_REQUEST",
4079
4079
  "SEND_EMAIL"
4080
4080
  ]), e.enum(["VERIFY_EMAIL"]);
4081
- var Vn = e.object({
4081
+ var Hn = e.object({
4082
4082
  require_mx_record: e.boolean().optional(),
4083
4083
  block_aliases: e.boolean().optional(),
4084
4084
  block_free_emails: e.boolean().optional(),
4085
4085
  block_disposable_emails: e.boolean().optional(),
4086
4086
  blocklist: e.array(e.string()).optional(),
4087
4087
  allowlist: e.array(e.string()).optional()
4088
- }), Hn = e.object({
4088
+ }), Un = e.object({
4089
4089
  id: e.string(),
4090
4090
  alias: e.string().max(100).optional(),
4091
4091
  type: e.literal("AUTH0"),
@@ -4097,7 +4097,7 @@ var Vn = e.object({
4097
4097
  user_id: e.string(),
4098
4098
  changes: e.record(e.string(), e.any())
4099
4099
  })
4100
- }), Un = e.object({
4100
+ }), Wn = e.object({
4101
4101
  id: e.string(),
4102
4102
  alias: e.string().max(100).optional(),
4103
4103
  type: e.literal("EMAIL"),
@@ -4106,13 +4106,13 @@ var Vn = e.object({
4106
4106
  mask_output: e.boolean().optional(),
4107
4107
  params: e.object({
4108
4108
  email: e.string(),
4109
- rules: Vn.optional()
4109
+ rules: Hn.optional()
4110
4110
  })
4111
- }), Wn = e.enum([
4111
+ }), Gn = e.enum([
4112
4112
  "change-email",
4113
4113
  "account",
4114
4114
  "custom"
4115
- ]), Gn = e.object({
4115
+ ]), Kn = e.object({
4116
4116
  id: e.string(),
4117
4117
  alias: e.string().max(100).optional(),
4118
4118
  type: e.literal("REDIRECT"),
@@ -4120,18 +4120,18 @@ var Vn = e.object({
4120
4120
  allow_failure: e.boolean().optional(),
4121
4121
  mask_output: e.boolean().optional(),
4122
4122
  params: e.object({
4123
- target: Wn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4123
+ target: Gn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4124
4124
  custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
4125
4125
  })
4126
- }), Kn = e.union([
4127
- Hn,
4126
+ }), qn = e.union([
4128
4127
  Un,
4129
- Gn
4128
+ Wn,
4129
+ Kn
4130
4130
  ]);
4131
4131
  e.object({
4132
4132
  name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
4133
- actions: e.array(Kn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4134
- }).extend(G.shape).extend({ id: e.string().openapi({
4133
+ actions: e.array(qn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4134
+ }).extend(W.shape).extend({ id: e.string().openapi({
4135
4135
  description: "Unique identifier for the flow",
4136
4136
  example: "af_12tMpdJ3iek7svMyZkSh5M"
4137
4137
  }) }), e.object({
@@ -4147,7 +4147,7 @@ e.object({
4147
4147
  total: e.number().optional(),
4148
4148
  next: e.string().optional()
4149
4149
  });
4150
- var qn = e.object({
4150
+ var Jn = e.object({
4151
4151
  email: e.string().optional(),
4152
4152
  email_verified: e.boolean().optional(),
4153
4153
  name: e.string().optional(),
@@ -4156,7 +4156,7 @@ var qn = e.object({
4156
4156
  phone_number: e.string().optional(),
4157
4157
  phone_verified: e.boolean().optional(),
4158
4158
  family_name: e.string().optional()
4159
- }).catchall(e.any()), Jn = e.object({
4159
+ }).catchall(e.any()), Yn = e.object({
4160
4160
  connection: e.string(),
4161
4161
  user_id: e.string(),
4162
4162
  provider: e.string(),
@@ -4169,15 +4169,15 @@ var qn = e.object({
4169
4169
  access_token: e.string().optional(),
4170
4170
  access_token_secret: e.string().optional(),
4171
4171
  refresh_token: e.string().optional(),
4172
- profileData: qn.optional()
4173
- }), Yn = e.object({
4172
+ profileData: Jn.optional()
4173
+ }), Xn = e.object({
4174
4174
  formatted: e.string().optional(),
4175
4175
  street_address: e.string().optional(),
4176
4176
  locality: e.string().optional(),
4177
4177
  region: e.string().optional(),
4178
4178
  postal_code: e.string().optional(),
4179
4179
  country: e.string().optional()
4180
- }).optional(), Xn = e.object({
4180
+ }).optional(), Zn = e.object({
4181
4181
  email: e.string().transform((e) => e.toLowerCase()).optional(),
4182
4182
  username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
4183
4183
  phone_number: e.string().optional(),
@@ -4200,9 +4200,9 @@ var qn = e.object({
4200
4200
  gender: e.string().optional(),
4201
4201
  birthdate: e.string().optional(),
4202
4202
  zoneinfo: e.string().optional(),
4203
- address: Yn
4203
+ address: Xn
4204
4204
  });
4205
- Xn.extend({
4205
+ Zn.extend({
4206
4206
  email_verified: e.boolean().default(!1),
4207
4207
  verify_email: e.boolean().optional(),
4208
4208
  last_ip: e.string().optional(),
@@ -4217,30 +4217,30 @@ Xn.extend({
4217
4217
  hash: e.string(),
4218
4218
  algorithm: e.string()
4219
4219
  }).optional()
4220
- }).omit({ password: !0 }).extend(G.shape).extend({
4220
+ }).omit({ password: !0 }).extend(W.shape).extend({
4221
4221
  user_id: e.string(),
4222
4222
  provider: e.string(),
4223
4223
  is_social: e.boolean(),
4224
4224
  email: e.string().optional(),
4225
4225
  login_count: e.number().default(0),
4226
- identities: e.array(Jn).optional()
4227
- }).omit({ registration_completed_at: !0 }), Xn.extend({
4226
+ identities: e.array(Yn).optional()
4227
+ }).omit({ registration_completed_at: !0 }), Zn.extend({
4228
4228
  login_count: e.number(),
4229
4229
  multifactor: e.array(e.string()).optional(),
4230
4230
  last_ip: e.string().optional(),
4231
4231
  last_login: e.string().optional(),
4232
4232
  user_id: e.string()
4233
4233
  }).catchall(e.any());
4234
- var Zn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Qn = (e = 21) => {
4234
+ var Qn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", $n = (e = 21) => {
4235
4235
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
4236
- for (; e--;) t += Zn[n[e] & 63];
4236
+ for (; e--;) t += Qn[n[e] & 63];
4237
4237
  return t;
4238
- }, $n = e.object({
4238
+ }, er = e.object({
4239
4239
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
4240
4240
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
4241
4241
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
4242
4242
  global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
4243
- client_secret: e.string().default(() => Qn()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4243
+ client_secret: e.string().default(() => $n()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4244
4244
  app_type: e.enum([
4245
4245
  "native",
4246
4246
  "spa",
@@ -4357,8 +4357,8 @@ var Zn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Qn
4357
4357
  e.object({
4358
4358
  created_at: e.string(),
4359
4359
  updated_at: e.string()
4360
- }).extend($n.shape).extend({ client_id: e.string() });
4361
- var er = e.object({
4360
+ }).extend(er.shape).extend({ client_id: e.string() });
4361
+ var tr = e.object({
4362
4362
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
4363
4363
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
4364
4364
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -4371,15 +4371,15 @@ var er = e.object({
4371
4371
  is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
4372
4372
  subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
4373
4373
  authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
4374
- }), tr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(er.shape).extend({
4374
+ }), nr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(tr.shape).extend({
4375
4375
  created_at: e.string().optional(),
4376
4376
  updated_at: e.string().optional()
4377
4377
  });
4378
- e.array(tr);
4379
- var nr = e.enum(["iat", "rat"]), rr = e.object({
4378
+ e.array(nr);
4379
+ var rr = e.enum(["iat", "rat"]), ir = e.object({
4380
4380
  id: e.string(),
4381
4381
  token_hash: e.string(),
4382
- type: nr,
4382
+ type: rr,
4383
4383
  client_id: e.string().optional(),
4384
4384
  sub: e.string().optional(),
4385
4385
  constraints: e.record(e.string(), e.unknown()).optional(),
@@ -4390,23 +4390,23 @@ e.object({
4390
4390
  created_at: e.string(),
4391
4391
  used_at: e.string().optional(),
4392
4392
  revoked_at: e.string().optional()
4393
- }).extend(rr.shape);
4394
- var K = e.object({
4393
+ }).extend(ir.shape);
4394
+ var G = e.object({
4395
4395
  x: e.number(),
4396
4396
  y: e.number()
4397
- }), ir = /* @__PURE__ */ function(e) {
4397
+ }), ar = /* @__PURE__ */ function(e) {
4398
4398
  return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
4399
- }({}), ar = /* @__PURE__ */ function(e) {
4399
+ }({}), or = /* @__PURE__ */ function(e) {
4400
4400
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
4401
- }({}), q = e.object({
4401
+ }({}), K = e.object({
4402
4402
  id: e.string(),
4403
- category: e.nativeEnum(ar),
4404
- type: e.nativeEnum(ir)
4405
- }), or = q.extend({
4403
+ category: e.nativeEnum(or),
4404
+ type: e.nativeEnum(ar)
4405
+ }), sr = K.extend({
4406
4406
  category: e.literal("BLOCK"),
4407
4407
  type: e.literal("RICH_TEXT"),
4408
4408
  config: e.object({ content: e.string() }).passthrough()
4409
- }), sr = q.extend({
4409
+ }), cr = K.extend({
4410
4410
  category: e.literal("BLOCK"),
4411
4411
  type: e.union([
4412
4412
  e.literal("NEXT_BUTTON"),
@@ -4414,13 +4414,13 @@ var K = e.object({
4414
4414
  e.literal("SUBMIT_BUTTON")
4415
4415
  ]),
4416
4416
  config: e.object({ text: e.string() }).passthrough()
4417
- }), cr = q.extend({
4417
+ }), lr = K.extend({
4418
4418
  category: e.literal("FIELD"),
4419
4419
  type: e.literal("LEGAL"),
4420
4420
  required: e.boolean().optional(),
4421
4421
  sensitive: e.boolean().optional(),
4422
4422
  config: e.object({ text: e.string() }).passthrough()
4423
- }), lr = q.extend({
4423
+ }), ur = K.extend({
4424
4424
  category: e.literal("FIELD"),
4425
4425
  type: e.union([
4426
4426
  e.literal("TEXT"),
@@ -4440,38 +4440,38 @@ var K = e.object({
4440
4440
  label: e.string().optional(),
4441
4441
  placeholder: e.string().optional()
4442
4442
  }).passthrough()
4443
- }), ur = e.object({
4443
+ }), dr = e.object({
4444
4444
  id: e.string(),
4445
4445
  category: e.string(),
4446
4446
  type: e.string()
4447
- }).passthrough(), dr = e.union([
4448
- or,
4447
+ }).passthrough(), fr = e.union([
4449
4448
  sr,
4450
4449
  cr,
4451
4450
  lr,
4452
- ur
4453
- ]), fr = e.object({
4451
+ ur,
4452
+ dr
4453
+ ]), pr = e.object({
4454
4454
  id: e.string(),
4455
4455
  type: e.literal("STEP"),
4456
- coordinates: K,
4456
+ coordinates: G,
4457
4457
  alias: e.string().optional(),
4458
4458
  config: e.object({
4459
- components: e.array(dr),
4459
+ components: e.array(fr),
4460
4460
  next_node: e.string()
4461
4461
  }).passthrough()
4462
- }), pr = e.object({
4462
+ }), mr = e.object({
4463
4463
  id: e.string(),
4464
4464
  type: e.literal("FLOW"),
4465
- coordinates: K,
4465
+ coordinates: G,
4466
4466
  alias: e.string().optional(),
4467
4467
  config: e.object({
4468
4468
  flow_id: e.string(),
4469
4469
  next_node: e.string()
4470
4470
  })
4471
- }), mr = e.object({
4471
+ }), hr = e.object({
4472
4472
  id: e.string(),
4473
4473
  type: e.literal("ACTION"),
4474
- coordinates: K,
4474
+ coordinates: G,
4475
4475
  alias: e.string().optional(),
4476
4476
  config: e.object({
4477
4477
  action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
@@ -4483,29 +4483,29 @@ var K = e.object({
4483
4483
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
4484
4484
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
4485
4485
  }).passthrough()
4486
- }), hr = e.object({
4486
+ }), gr = e.object({
4487
4487
  id: e.string(),
4488
4488
  type: e.string(),
4489
- coordinates: K
4490
- }).passthrough(), gr = e.union([
4491
- fr,
4489
+ coordinates: G
4490
+ }).passthrough(), _r = e.union([
4492
4491
  pr,
4493
4492
  mr,
4494
- hr
4495
- ]), _r = e.object({
4493
+ hr,
4494
+ gr
4495
+ ]), vr = e.object({
4496
4496
  next_node: e.string(),
4497
- coordinates: K
4498
- }).passthrough(), vr = e.object({
4497
+ coordinates: G
4498
+ }).passthrough(), yr = e.object({
4499
4499
  resume_flow: e.boolean().optional(),
4500
- coordinates: K
4500
+ coordinates: G
4501
4501
  }).passthrough();
4502
4502
  e.object({
4503
4503
  id: e.string(),
4504
4504
  name: e.string(),
4505
4505
  languages: e.object({ primary: e.string() }).passthrough(),
4506
- nodes: e.array(gr),
4507
- start: _r,
4508
- ending: vr,
4506
+ nodes: e.array(_r),
4507
+ start: vr,
4508
+ ending: yr,
4509
4509
  created_at: e.string(),
4510
4510
  updated_at: e.string(),
4511
4511
  links: e.object({
@@ -4517,24 +4517,24 @@ e.object({
4517
4517
  created_at: !0,
4518
4518
  updated_at: !0
4519
4519
  });
4520
- var yr = /* @__PURE__ */ function(e) {
4520
+ var br = /* @__PURE__ */ function(e) {
4521
4521
  return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
4522
- }({}), br = /* @__PURE__ */ function(e) {
4523
- return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4524
4522
  }({}), xr = /* @__PURE__ */ function(e) {
4523
+ return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4524
+ }({}), Sr = /* @__PURE__ */ function(e) {
4525
4525
  return e.S256 = "S256", e.Plain = "plain", e;
4526
- }({}), Sr = e.union([e.null(), e.object({
4526
+ }({}), Cr = e.union([e.null(), e.object({
4527
4527
  essential: e.boolean().optional(),
4528
4528
  value: e.unknown().optional(),
4529
4529
  values: e.array(e.unknown()).optional()
4530
- })]).nullable(), Cr = e.object({
4531
- userinfo: e.record(e.string(), Sr).optional(),
4532
- id_token: e.record(e.string(), Sr).optional()
4533
- }), wr = e.object({
4530
+ })]).nullable(), wr = e.object({
4531
+ userinfo: e.record(e.string(), Cr).optional(),
4532
+ id_token: e.record(e.string(), Cr).optional()
4533
+ }), Tr = e.object({
4534
4534
  client_id: e.string(),
4535
4535
  act_as: e.string().optional(),
4536
- response_type: e.nativeEnum(yr).optional(),
4537
- response_mode: e.nativeEnum(br).optional(),
4536
+ response_type: e.nativeEnum(br).optional(),
4537
+ response_mode: e.nativeEnum(xr).optional(),
4538
4538
  redirect_uri: e.string().optional(),
4539
4539
  audience: e.string().optional(),
4540
4540
  organization: e.string().optional(),
@@ -4542,13 +4542,13 @@ var yr = /* @__PURE__ */ function(e) {
4542
4542
  nonce: e.string().optional(),
4543
4543
  scope: e.string().optional(),
4544
4544
  prompt: e.string().optional(),
4545
- code_challenge_method: e.nativeEnum(xr).optional(),
4545
+ code_challenge_method: e.nativeEnum(Sr).optional(),
4546
4546
  code_challenge: e.string().optional(),
4547
4547
  username: e.string().optional(),
4548
4548
  ui_locales: e.string().optional(),
4549
4549
  max_age: e.number().optional(),
4550
4550
  acr_values: e.string().optional(),
4551
- claims: Cr.optional(),
4551
+ claims: wr.optional(),
4552
4552
  vendor_id: e.string().optional()
4553
4553
  });
4554
4554
  e.object({
@@ -4571,7 +4571,7 @@ e.object({
4571
4571
  "auto"
4572
4572
  ]).optional()
4573
4573
  });
4574
- var Tr = e.enum([
4574
+ var Er = e.enum([
4575
4575
  "password_reset",
4576
4576
  "email_verification",
4577
4577
  "otp",
@@ -4584,7 +4584,7 @@ e.object({
4584
4584
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
4585
4585
  login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
4586
4586
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
4587
- code_type: Tr,
4587
+ code_type: Er,
4588
4588
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
4589
4589
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
4590
4590
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -4596,7 +4596,7 @@ e.object({
4596
4596
  used_at: e.string().optional(),
4597
4597
  user_id: e.string().optional()
4598
4598
  }).extend({ created_at: e.string() });
4599
- var Er = e.object({
4599
+ var Dr = e.object({
4600
4600
  kid: e.string().optional(),
4601
4601
  team_id: e.string().optional(),
4602
4602
  realms: e.string().optional(),
@@ -4605,6 +4605,9 @@ var Er = e.object({
4605
4605
  client_secret: e.string().optional(),
4606
4606
  app_secret: e.string().optional(),
4607
4607
  scope: e.string().optional(),
4608
+ client_secret_hint: e.string().optional(),
4609
+ app_secret_hint: e.string().optional(),
4610
+ twilio_token_hint: e.string().optional(),
4608
4611
  authorization_endpoint: e.string().optional(),
4609
4612
  token_endpoint: e.string().optional(),
4610
4613
  userinfo_endpoint: e.string().optional(),
@@ -4644,6 +4647,7 @@ var Er = e.object({
4644
4647
  userinfo_endpoint: e.string().optional(),
4645
4648
  client_id: e.string().optional(),
4646
4649
  client_secret: e.string().optional(),
4650
+ client_secret_hint: e.string().optional(),
4647
4651
  realm: e.string().optional()
4648
4652
  }).optional(),
4649
4653
  attributes: e.object({
@@ -4712,26 +4716,26 @@ var Er = e.object({
4712
4716
  "never_on_login"
4713
4717
  ]).optional()
4714
4718
  });
4715
- function Dr(e) {
4719
+ function Or(e) {
4716
4720
  if (e !== null) {
4717
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(Dr);
4721
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(Or);
4718
4722
  if (e && typeof e == "object") {
4719
4723
  let t = {};
4720
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Dr(r));
4724
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Or(r));
4721
4725
  return t;
4722
4726
  }
4723
4727
  return e;
4724
4728
  }
4725
4729
  }
4726
- var Or = e.object({
4730
+ var kr = e.object({
4727
4731
  id: e.string().optional(),
4728
4732
  name: e.string(),
4729
4733
  display_name: e.string().optional(),
4730
4734
  strategy: e.string(),
4731
- options: e.preprocess((e) => e === null ? {} : Dr(e), Er).default({}),
4735
+ options: e.preprocess((e) => e === null ? {} : Or(e), Dr).default({}),
4732
4736
  enabled_clients: e.array(e.string()).default([]).optional(),
4733
- response_type: e.nativeEnum(yr).optional(),
4734
- response_mode: e.nativeEnum(br).optional(),
4737
+ response_type: e.nativeEnum(br).optional(),
4738
+ response_mode: e.nativeEnum(xr).optional(),
4735
4739
  is_domain_connection: e.boolean().optional(),
4736
4740
  show_as_button: e.boolean().optional(),
4737
4741
  metadata: e.record(e.string(), e.any()).optional(),
@@ -4741,8 +4745,8 @@ e.object({
4741
4745
  id: e.string(),
4742
4746
  created_at: e.string().transform((e) => e === null ? "" : e),
4743
4747
  updated_at: e.string().transform((e) => e === null ? "" : e)
4744
- }).extend(Or.shape);
4745
- var kr = e.object({
4748
+ }).extend(kr.shape);
4749
+ var Ar = e.object({
4746
4750
  domain: e.string(),
4747
4751
  custom_domain_id: e.string().optional(),
4748
4752
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -4756,7 +4760,7 @@ var kr = e.object({
4756
4760
  "null"
4757
4761
  ]).optional(),
4758
4762
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
4759
- }), Ar = e.discriminatedUnion("name", [e.object({
4763
+ }), jr = e.discriminatedUnion("name", [e.object({
4760
4764
  name: e.literal("txt"),
4761
4765
  record: e.string(),
4762
4766
  domain: e.string()
@@ -4764,7 +4768,7 @@ var kr = e.object({
4764
4768
  name: e.literal("http"),
4765
4769
  http_body: e.string(),
4766
4770
  http_url: e.string()
4767
- })]), jr = kr.extend({
4771
+ })]), Mr = Ar.extend({
4768
4772
  custom_domain_id: e.string(),
4769
4773
  primary: e.boolean(),
4770
4774
  status: e.enum([
@@ -4774,28 +4778,28 @@ var kr = e.object({
4774
4778
  "ready"
4775
4779
  ]),
4776
4780
  origin_domain_name: e.string().optional(),
4777
- verification: e.object({ methods: e.array(Ar) }).optional(),
4781
+ verification: e.object({ methods: e.array(jr) }).optional(),
4778
4782
  tls_policy: e.string().optional()
4779
4783
  });
4780
- kr.pick({
4784
+ Ar.pick({
4781
4785
  tls_policy: !0,
4782
4786
  custom_client_ip_header: !0,
4783
4787
  domain_metadata: !0
4784
- }).strict(), jr.extend({ tenant_id: e.string() }), e.object({
4788
+ }).strict(), Mr.extend({ tenant_id: e.string() }), e.object({
4785
4789
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
4786
4790
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
4787
4791
  });
4788
- var Mr = e.object({
4792
+ var Nr = e.object({
4789
4793
  id: e.string(),
4790
4794
  order: e.number().optional(),
4791
4795
  visible: e.boolean().optional().default(!0)
4792
- }), J = Mr.extend({ category: e.literal("BLOCK").optional() }), Nr = J.extend({
4796
+ }), q = Nr.extend({ category: e.literal("BLOCK").optional() }), Pr = q.extend({
4793
4797
  type: e.literal("DIVIDER"),
4794
4798
  config: e.object({ text: e.string().optional() }).optional()
4795
- }), Pr = J.extend({
4799
+ }), Fr = q.extend({
4796
4800
  type: e.literal("HTML"),
4797
4801
  config: e.object({ content: e.string().optional() }).optional()
4798
- }), Fr = J.extend({
4802
+ }), Ir = q.extend({
4799
4803
  type: e.literal("IMAGE"),
4800
4804
  config: e.object({
4801
4805
  src: e.string().optional(),
@@ -4803,43 +4807,43 @@ var Mr = e.object({
4803
4807
  width: e.number().optional(),
4804
4808
  height: e.number().optional()
4805
4809
  }).optional()
4806
- }), Ir = J.extend({
4810
+ }), Lr = q.extend({
4807
4811
  type: e.literal("JUMP_BUTTON"),
4808
4812
  config: e.object({
4809
4813
  text: e.string().optional(),
4810
4814
  target_step: e.string().optional()
4811
4815
  })
4812
- }), Lr = J.extend({
4816
+ }), Rr = q.extend({
4813
4817
  type: e.literal("RESEND_BUTTON"),
4814
4818
  config: e.object({
4815
4819
  text: e.string().optional(),
4816
4820
  resend_action: e.string().optional()
4817
4821
  })
4818
- }), Rr = J.extend({
4822
+ }), zr = q.extend({
4819
4823
  type: e.literal("NEXT_BUTTON"),
4820
4824
  config: e.object({ text: e.string().optional() })
4821
- }), zr = J.extend({
4825
+ }), Br = q.extend({
4822
4826
  type: e.literal("PREVIOUS_BUTTON"),
4823
4827
  config: e.object({ text: e.string().optional() })
4824
- }), Br = J.extend({
4828
+ }), Vr = q.extend({
4825
4829
  type: e.literal("RICH_TEXT"),
4826
4830
  config: e.object({ content: e.string().optional() }).optional()
4827
- }), Vr = Mr.extend({
4831
+ }), J = Nr.extend({
4828
4832
  category: e.literal("WIDGET").optional(),
4829
4833
  label: e.string().min(1).optional(),
4830
4834
  hint: e.string().min(1).max(500).optional(),
4831
4835
  required: e.boolean().optional(),
4832
4836
  sensitive: e.boolean().optional()
4833
- }), Hr = Vr.extend({
4837
+ }), Hr = J.extend({
4834
4838
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
4835
4839
  config: e.object({ credential_type: e.string().optional() })
4836
- }), Ur = Vr.extend({
4840
+ }), Ur = J.extend({
4837
4841
  type: e.literal("GMAPS_ADDRESS"),
4838
4842
  config: e.object({ api_key: e.string().optional() })
4839
- }), Wr = Vr.extend({
4843
+ }), Wr = J.extend({
4840
4844
  type: e.literal("RECAPTCHA"),
4841
4845
  config: e.object({ site_key: e.string().optional() })
4842
- }), Y = Mr.extend({
4846
+ }), Y = Nr.extend({
4843
4847
  category: e.literal("FIELD").optional(),
4844
4848
  label: e.string().min(1).optional(),
4845
4849
  hint: e.string().min(1).max(500).optional(),
@@ -5015,14 +5019,14 @@ var Mr = e.object({
5015
5019
  default_value: e.string().optional()
5016
5020
  }).optional()
5017
5021
  }), li = e.discriminatedUnion("type", [
5018
- Nr,
5019
5022
  Pr,
5020
5023
  Fr,
5021
5024
  Ir,
5022
5025
  Lr,
5023
5026
  Rr,
5024
5027
  zr,
5025
- Br
5028
+ Br,
5029
+ Vr
5026
5030
  ]), ui = e.discriminatedUnion("type", [
5027
5031
  Hr,
5028
5032
  Ur,
@@ -5150,7 +5154,7 @@ var X = e.object({
5150
5154
  sdk_src: e.string().optional()
5151
5155
  }).optional()
5152
5156
  }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
5153
- G.extend(_i.shape).extend({ id: e.string() });
5157
+ W.extend(_i.shape).extend({ id: e.string() });
5154
5158
  var vi = e.object({
5155
5159
  id: e.number().optional(),
5156
5160
  text: e.string(),
@@ -5185,14 +5189,7 @@ var bi = e.enum([
5185
5189
  "validate-registration-username",
5186
5190
  "pre-user-deletion",
5187
5191
  "post-user-deletion"
5188
- ]), xi = e.enum([
5189
- "pre-user-registration",
5190
- "post-user-registration",
5191
- "post-user-login",
5192
- "validate-registration-username",
5193
- "pre-user-deletion",
5194
- "post-user-deletion"
5195
- ]), Si = e.enum([
5192
+ ]), xi = e.enum(["post-user-login"]), Si = e.enum([
5196
5193
  "post-user-login",
5197
5194
  "post-user-registration",
5198
5195
  "post-user-update",
@@ -5202,7 +5199,9 @@ var bi = e.enum([
5202
5199
  "credentials-exchange",
5203
5200
  "pre-user-registration",
5204
5201
  "post-user-registration"
5205
- ]), wi = e.enum([
5202
+ ]), wi = e.enum(["post-user-login"]);
5203
+ bi.options, xi.options, Si.options, Ci.options, wi.options;
5204
+ var Ti = e.enum(["impersonate"]), Ei = e.enum([
5206
5205
  "ensure-username",
5207
5206
  "set-preferred-username",
5208
5207
  "account-linking"
@@ -5212,71 +5211,85 @@ var bi = e.enum([
5212
5211
  priority: e.number().optional(),
5213
5212
  hook_id: e.string().optional(),
5214
5213
  metadata: e.record(e.string(), e.unknown()).optional()
5215
- }, Ti = e.object({
5214
+ }, Di = e.object({
5216
5215
  ...Z,
5217
5216
  trigger_id: bi,
5218
5217
  url: e.string()
5219
- }), Ei = e.object({
5218
+ }), Oi = e.object({
5220
5219
  ...Z,
5221
5220
  trigger_id: xi,
5222
5221
  form_id: e.string()
5223
- }), Di = e.object({
5222
+ }), ki = e.object({
5224
5223
  ...Z,
5225
5224
  trigger_id: Si,
5226
- template_id: wi
5227
- }), Oi = e.object({
5225
+ template_id: Ei
5226
+ }), Ai = e.object({
5228
5227
  ...Z,
5229
5228
  trigger_id: Ci,
5230
5229
  code_id: e.string()
5230
+ }), ji = e.object({
5231
+ ...Z,
5232
+ trigger_id: wi,
5233
+ page_id: Ti,
5234
+ permission_required: e.string().optional()
5231
5235
  });
5232
5236
  e.union([
5233
- Ti,
5234
- Ei,
5235
5237
  Di,
5236
- Oi
5238
+ Oi,
5239
+ ki,
5240
+ Ai,
5241
+ ji
5237
5242
  ]);
5238
- var ki = e.object({
5243
+ var Mi = e.object({
5239
5244
  ...Z,
5240
5245
  trigger_id: bi
5241
- }).extend(G.shape).extend({
5246
+ }).extend(W.shape).extend({
5242
5247
  hook_id: e.string(),
5243
5248
  url: e.string()
5244
- }), Ai = e.object({
5249
+ }), Ni = e.object({
5245
5250
  ...Z,
5246
5251
  trigger_id: xi
5247
- }).extend(G.shape).extend({
5252
+ }).extend(W.shape).extend({
5248
5253
  hook_id: e.string(),
5249
5254
  form_id: e.string()
5250
- }), ji = e.object({
5255
+ }), Pi = e.object({
5251
5256
  ...Z,
5252
5257
  trigger_id: Si
5253
- }).extend(G.shape).extend({
5258
+ }).extend(W.shape).extend({
5254
5259
  hook_id: e.string(),
5255
- template_id: wi
5256
- }), Mi = e.object({
5260
+ template_id: Ei
5261
+ }), Fi = e.object({
5257
5262
  ...Z,
5258
5263
  trigger_id: Ci
5259
- }).extend(G.shape).extend({
5264
+ }).extend(W.shape).extend({
5260
5265
  hook_id: e.string(),
5261
5266
  code_id: e.string()
5267
+ }), Ii = e.object({
5268
+ ...Z,
5269
+ trigger_id: wi
5270
+ }).extend(W.shape).extend({
5271
+ hook_id: e.string(),
5272
+ page_id: Ti,
5273
+ permission_required: e.string().optional()
5262
5274
  });
5263
5275
  e.union([
5264
- ki,
5265
- Ai,
5266
- ji,
5267
- Mi
5276
+ Mi,
5277
+ Ni,
5278
+ Pi,
5279
+ Fi,
5280
+ Ii
5268
5281
  ]), e.object({
5269
5282
  code: e.string().max(1e5),
5270
5283
  secrets: e.record(e.string(), e.string()).optional()
5271
5284
  }).extend({
5272
5285
  id: e.string(),
5273
5286
  tenant_id: e.string()
5274
- }).extend(G.shape);
5275
- var Ni = e.object({ name: e.string().optional() }), Pi = e.object({ email: e.string().optional() }), Fi = e.object({
5287
+ }).extend(W.shape);
5288
+ var Li = e.object({ name: e.string().optional() }), Ri = e.object({ email: e.string().optional() }), zi = e.object({
5276
5289
  id: e.string().optional(),
5277
5290
  organization_id: e.string().max(50),
5278
- inviter: Ni,
5279
- invitee: Pi,
5291
+ inviter: Li,
5292
+ invitee: Ri,
5280
5293
  invitation_url: e.string().url(),
5281
5294
  client_id: e.string(),
5282
5295
  connection_id: e.string().optional(),
@@ -5292,8 +5305,8 @@ e.object({
5292
5305
  created_at: e.string().datetime(),
5293
5306
  expires_at: e.string().datetime(),
5294
5307
  ticket_id: e.string().optional()
5295
- }).extend(Fi.omit({ id: !0 }).shape);
5296
- var Ii = e.object({
5308
+ }).extend(zi.omit({ id: !0 }).shape);
5309
+ var Bi = e.object({
5297
5310
  alg: e.enum([
5298
5311
  "RS256",
5299
5312
  "RS384",
@@ -5335,7 +5348,7 @@ var Ii = e.object({
5335
5348
  message: `EC JWK is missing required member '${r}'`
5336
5349
  });
5337
5350
  });
5338
- e.object({ keys: e.array(Ii) }), e.object({
5351
+ e.object({ keys: e.array(Bi) }), e.object({
5339
5352
  issuer: e.string(),
5340
5353
  authorization_endpoint: e.string(),
5341
5354
  token_endpoint: e.string(),
@@ -5362,28 +5375,28 @@ e.object({ keys: e.array(Ii) }), e.object({
5362
5375
  backchannel_logout_supported: e.boolean().optional(),
5363
5376
  backchannel_logout_session_supported: e.boolean().optional()
5364
5377
  });
5365
- var Li = /* @__PURE__ */ function(e) {
5378
+ var Vi = /* @__PURE__ */ function(e) {
5366
5379
  return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
5367
- }({}), Ri = e.nativeEnum(Li), zi = e.object({
5380
+ }({}), Hi = e.nativeEnum(Vi), Ui = e.object({
5368
5381
  strategy: e.string(),
5369
5382
  strategy_type: e.string()
5370
5383
  });
5371
5384
  e.object({
5372
5385
  csrf_token: e.string(),
5373
5386
  auth0Client: e.string().optional(),
5374
- authParams: wr,
5387
+ authParams: Tr,
5375
5388
  expires_at: e.string(),
5376
5389
  deleted_at: e.string().optional(),
5377
5390
  ip: e.string().optional(),
5378
5391
  useragent: e.string().optional(),
5379
5392
  session_id: e.string().optional(),
5380
5393
  authorization_url: e.string().optional(),
5381
- state: Ri.optional().default("pending"),
5394
+ state: Hi.optional().default("pending"),
5382
5395
  state_data: e.string().optional(),
5383
5396
  failure_reason: e.string().optional(),
5384
5397
  user_id: e.string().optional(),
5385
5398
  auth_connection: e.string().optional(),
5386
- auth_strategy: zi.optional(),
5399
+ auth_strategy: Ui.optional(),
5387
5400
  authenticated_at: e.string().optional()
5388
5401
  }).openapi({ description: "This represents a login sesion" }).extend({
5389
5402
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
@@ -5550,17 +5563,17 @@ var Q = {
5550
5563
  WARNING_DURING_LOGIN: "w",
5551
5564
  WARNING_SENDING_NOTIFICATION: "wn",
5552
5565
  WARNING_USER_MANAGEMENT: "wum"
5553
- }, Bi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5566
+ }, Wi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5554
5567
  Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
5555
5568
  let e = {};
5556
5569
  for (let [t, n] of Object.entries(Q)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
5557
5570
  return e;
5558
5571
  })();
5559
- var Vi = e.object({
5572
+ var Gi = e.object({
5560
5573
  name: e.string(),
5561
5574
  version: e.string(),
5562
5575
  env: e.object({ node: e.string().optional() }).optional()
5563
- }), Hi = e.object({
5576
+ }), Ki = e.object({
5564
5577
  country_code: e.string().length(2),
5565
5578
  city_name: e.string(),
5566
5579
  latitude: e.string(),
@@ -5569,7 +5582,7 @@ var Vi = e.object({
5569
5582
  continent_code: e.string()
5570
5583
  });
5571
5584
  e.object({
5572
- type: Bi,
5585
+ type: Wi,
5573
5586
  date: e.string(),
5574
5587
  description: e.string().optional(),
5575
5588
  ip: e.string().optional(),
@@ -5587,63 +5600,63 @@ e.object({
5587
5600
  strategy: e.string().optional(),
5588
5601
  strategy_type: e.string().optional(),
5589
5602
  hostname: e.string().optional(),
5590
- auth0_client: Vi.optional(),
5603
+ auth0_client: Gi.optional(),
5591
5604
  log_id: e.string().optional(),
5592
- location_info: Hi.optional()
5605
+ location_info: Ki.optional()
5593
5606
  }).extend({ log_id: e.string() });
5594
- var Ui = e.enum([
5607
+ var qi = e.enum([
5595
5608
  "http",
5596
5609
  "eventbridge",
5597
5610
  "eventgrid",
5598
5611
  "splunk",
5599
5612
  "datadog",
5600
5613
  "sumo"
5601
- ]), Wi = e.enum([
5614
+ ]), Ji = e.enum([
5602
5615
  "active",
5603
5616
  "paused",
5604
5617
  "suspended"
5605
- ]), Gi = e.object({
5618
+ ]), Yi = e.object({
5606
5619
  type: e.string(),
5607
5620
  name: e.string()
5608
5621
  });
5609
5622
  e.object({
5610
5623
  name: e.string(),
5611
- type: Ui,
5612
- status: Wi.optional(),
5624
+ type: qi,
5625
+ status: Ji.optional(),
5613
5626
  sink: e.record(e.string(), e.unknown()),
5614
- filters: e.array(Gi).optional(),
5627
+ filters: e.array(Yi).optional(),
5615
5628
  isPriority: e.boolean().optional()
5616
5629
  }).extend({
5617
5630
  id: e.string(),
5618
- status: Wi,
5631
+ status: Ji,
5619
5632
  created_at: e.string().optional(),
5620
5633
  updated_at: e.string().optional()
5621
5634
  });
5622
- var Ki = e.enum([
5635
+ var Xi = e.enum([
5623
5636
  "auth0",
5624
5637
  "cognito",
5625
5638
  "okta",
5626
5639
  "oidc"
5627
- ]), qi = e.object({
5640
+ ]), Zi = e.object({
5628
5641
  domain: e.string(),
5629
5642
  client_id: e.string(),
5630
5643
  client_secret: e.string(),
5631
5644
  audience: e.string().optional(),
5632
5645
  scope: e.string().optional()
5633
- }), Ji = e.object({
5646
+ }), Qi = e.object({
5634
5647
  id: e.string().optional(),
5635
5648
  name: e.string(),
5636
- provider: Ki,
5649
+ provider: Xi,
5637
5650
  connection: e.string(),
5638
5651
  enabled: e.boolean().default(!0),
5639
- credentials: qi
5652
+ credentials: Zi
5640
5653
  });
5641
5654
  e.object({
5642
5655
  id: e.string(),
5643
5656
  created_at: e.string(),
5644
5657
  updated_at: e.string()
5645
- }).extend(Ji.shape);
5646
- var Yi = e.object({
5658
+ }).extend(Qi.shape);
5659
+ var $i = e.object({
5647
5660
  enabled: e.boolean().optional(),
5648
5661
  shields: e.array(e.string()).optional(),
5649
5662
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -5652,13 +5665,13 @@ var Yi = e.object({
5652
5665
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
5653
5666
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
5654
5667
  }).optional()
5655
- }), Xi = e.object({
5668
+ }), ea = e.object({
5656
5669
  enabled: e.boolean().optional(),
5657
5670
  shields: e.array(e.string()).optional(),
5658
5671
  allowlist: e.array(e.string()).optional(),
5659
5672
  mode: e.string().optional(),
5660
5673
  max_attempts: e.number().optional()
5661
- }), Zi = e.object({
5674
+ }), ta = e.object({
5662
5675
  enabled: e.boolean().optional(),
5663
5676
  shields: e.array(e.string()).optional(),
5664
5677
  allowlist: e.array(e.string()).optional(),
@@ -5672,10 +5685,10 @@ var Yi = e.object({
5672
5685
  rate: e.number().optional()
5673
5686
  }).optional()
5674
5687
  }).optional()
5675
- }), Qi = e.object({
5676
- breached_password_detection: Yi.optional(),
5677
- brute_force_protection: Xi.optional(),
5678
- suspicious_ip_throttling: Zi.optional()
5688
+ }), na = e.object({
5689
+ breached_password_detection: $i.optional(),
5690
+ brute_force_protection: ea.optional(),
5691
+ suspicious_ip_throttling: ta.optional()
5679
5692
  });
5680
5693
  e.object({
5681
5694
  id: e.string().optional(),
@@ -5688,14 +5701,14 @@ e.object({
5688
5701
  created_at: e.string(),
5689
5702
  updated_at: e.string()
5690
5703
  });
5691
- var $i = e.object({
5704
+ var ra = e.object({
5692
5705
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
5693
5706
  initial_ip: e.string().describe("First IP address associated with this session"),
5694
5707
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
5695
5708
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
5696
5709
  last_ip: e.string().describe("Last IP address from which this user logged in"),
5697
5710
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
5698
- }), ea = e.object({
5711
+ }), ia = e.object({
5699
5712
  id: e.string(),
5700
5713
  revoked_at: e.string().optional(),
5701
5714
  used_at: e.string().optional(),
@@ -5703,7 +5716,7 @@ var $i = e.object({
5703
5716
  expires_at: e.string().optional(),
5704
5717
  login_session_id: e.string(),
5705
5718
  idle_expires_at: e.string().optional(),
5706
- device: $i.describe("Metadata related to the device used in the session"),
5719
+ device: ra.describe("Metadata related to the device used in the session"),
5707
5720
  clients: e.array(e.string()).describe("List of client details for the session")
5708
5721
  });
5709
5722
  e.object({
@@ -5711,7 +5724,7 @@ e.object({
5711
5724
  updated_at: e.string(),
5712
5725
  authenticated_at: e.string(),
5713
5726
  last_interaction_at: e.string()
5714
- }).extend(ea.shape), e.object({
5727
+ }).extend(ia.shape), e.object({
5715
5728
  kid: e.string().openapi({ description: "The key id of the signing key" }),
5716
5729
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
5717
5730
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -5728,7 +5741,7 @@ e.object({
5728
5741
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
5729
5742
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
5730
5743
  });
5731
- var ta = e.object({
5744
+ var aa = e.object({
5732
5745
  id: e.string().optional(),
5733
5746
  audience: e.string().optional(),
5734
5747
  friendly_name: e.string(),
@@ -5846,7 +5859,7 @@ var ta = e.object({
5846
5859
  "shared_planetscale"
5847
5860
  ]).optional(),
5848
5861
  d1_database_id: e.string().max(64).optional(),
5849
- attack_protection: Qi.optional(),
5862
+ attack_protection: na.optional(),
5850
5863
  mfa: e.object({
5851
5864
  policy: e.enum(["never", "always"]).default("never").optional(),
5852
5865
  factors: e.object({
@@ -5877,35 +5890,35 @@ var ta = e.object({
5877
5890
  e.object({
5878
5891
  created_at: e.string().nullable().transform((e) => e ?? ""),
5879
5892
  updated_at: e.string().nullable().transform((e) => e ?? "")
5880
- }).extend(ta.shape).extend({
5893
+ }).extend(aa.shape).extend({
5881
5894
  id: e.string(),
5882
5895
  is_control_plane: e.boolean().optional()
5883
5896
  });
5884
- var na = e.enum([
5897
+ var oa = e.enum([
5885
5898
  "provision",
5886
5899
  "seed",
5887
5900
  "upgrade",
5888
5901
  "backup",
5889
5902
  "deprovision"
5890
- ]), ra = e.enum([
5903
+ ]), sa = e.enum([
5891
5904
  "pending",
5892
5905
  "running",
5893
5906
  "succeeded",
5894
5907
  "failed",
5895
5908
  "cancelled"
5896
- ]), ia = e.enum(["inline", "cloudflare-workflows"]);
5909
+ ]), ca = e.enum(["inline", "cloudflare-workflows"]);
5897
5910
  e.object({
5898
5911
  tenant_id: e.string().max(255).nullable().default(null),
5899
5912
  rollout_id: e.string().max(255).nullable().optional(),
5900
- kind: na,
5901
- engine: ia,
5913
+ kind: oa,
5914
+ engine: ca,
5902
5915
  engine_instance_id: e.string().max(100).nullable().optional(),
5903
5916
  target_worker_version: e.string().max(255).nullable().optional(),
5904
5917
  target_database_version: e.string().max(255).nullable().optional(),
5905
5918
  initiated_by: e.string().max(255).nullable().optional()
5906
5919
  }).extend({
5907
5920
  id: e.string(),
5908
- status: ra,
5921
+ status: sa,
5909
5922
  current_step: e.string().max(255).nullable().optional(),
5910
5923
  error: e.string().nullable().optional(),
5911
5924
  created_at: e.string(),
@@ -5920,7 +5933,7 @@ e.object({
5920
5933
  error: !0,
5921
5934
  finished_at: !0
5922
5935
  }).partial();
5923
- var aa = e.enum([
5936
+ var la = e.enum([
5924
5937
  "started",
5925
5938
  "succeeded",
5926
5939
  "failed",
@@ -5931,18 +5944,18 @@ var aa = e.enum([
5931
5944
  e.object({
5932
5945
  operation_id: e.string().max(255),
5933
5946
  step: e.string().max(255),
5934
- outcome: aa,
5947
+ outcome: la,
5935
5948
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
5936
5949
  attempt: e.number().int().min(1).default(1)
5937
5950
  }).extend({
5938
5951
  id: e.string(),
5939
5952
  created_at: e.string()
5940
5953
  });
5941
- var oa = e.enum([
5954
+ var ua = e.enum([
5942
5955
  "upgrade",
5943
5956
  "reseed",
5944
5957
  "backup"
5945
- ]), sa = e.enum([
5958
+ ]), da = e.enum([
5946
5959
  "pending",
5947
5960
  "canary",
5948
5961
  "rolling",
@@ -5951,7 +5964,7 @@ var oa = e.enum([
5951
5964
  "failed"
5952
5965
  ]);
5953
5966
  e.object({
5954
- kind: oa,
5967
+ kind: ua,
5955
5968
  target_worker_version: e.string().max(255).nullable().optional(),
5956
5969
  target_database_version: e.string().max(255).nullable().optional(),
5957
5970
  wave_size: e.number().int().min(1).default(10),
@@ -5960,7 +5973,7 @@ e.object({
5960
5973
  initiated_by: e.string().max(255).nullable().optional()
5961
5974
  }).extend({
5962
5975
  id: e.string(),
5963
- status: sa,
5976
+ status: da,
5964
5977
  created_at: e.string(),
5965
5978
  updated_at: e.string(),
5966
5979
  finished_at: e.string().nullable().optional()
@@ -5982,7 +5995,7 @@ e.object({
5982
5995
  code: e.string(),
5983
5996
  state: e.string().optional()
5984
5997
  });
5985
- var ca = e.object({
5998
+ var fa = e.object({
5986
5999
  button_border_radius: e.number(),
5987
6000
  button_border_weight: e.number(),
5988
6001
  buttons_style: e.enum([
@@ -6000,7 +6013,7 @@ var ca = e.object({
6000
6013
  show_widget_shadow: e.boolean(),
6001
6014
  widget_border_weight: e.number(),
6002
6015
  widget_corner_radius: e.number()
6003
- }), la = e.object({
6016
+ }), pa = e.object({
6004
6017
  base_focus_color: e.string(),
6005
6018
  base_hover_color: e.string(),
6006
6019
  body_text: e.string(),
@@ -6027,7 +6040,7 @@ var ca = e.object({
6027
6040
  }), $ = e.object({
6028
6041
  bold: e.boolean(),
6029
6042
  size: e.number()
6030
- }), ua = e.object({
6043
+ }), ma = e.object({
6031
6044
  body_text: $,
6032
6045
  buttons_text: $,
6033
6046
  font_url: e.string(),
@@ -6037,7 +6050,7 @@ var ca = e.object({
6037
6050
  reference_text_size: e.number(),
6038
6051
  subtitle: $,
6039
6052
  title: $
6040
- }), da = e.object({
6053
+ }), ha = e.object({
6041
6054
  background_color: e.string(),
6042
6055
  background_image_url: e.string(),
6043
6056
  page_layout: e.enum([
@@ -6050,7 +6063,7 @@ var ca = e.object({
6050
6063
  "chip",
6051
6064
  "none"
6052
6065
  ]).optional()
6053
- }), fa = e.object({
6066
+ }), ga = e.object({
6054
6067
  header_text_alignment: e.enum([
6055
6068
  "center",
6056
6069
  "left",
@@ -6067,12 +6080,12 @@ var ca = e.object({
6067
6080
  social_buttons_layout: e.enum(["bottom", "top"])
6068
6081
  });
6069
6082
  e.object({
6070
- borders: ca,
6071
- colors: la,
6083
+ borders: fa,
6084
+ colors: pa,
6072
6085
  displayName: e.string(),
6073
- fonts: ua,
6074
- page_background: da,
6075
- widget: fa
6086
+ fonts: ma,
6087
+ page_background: ha,
6088
+ widget: ga
6076
6089
  }).extend({ themeId: e.string() }), e.object({
6077
6090
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
6078
6091
  identifier_first: e.boolean().default(!0),
@@ -6080,44 +6093,44 @@ e.object({
6080
6093
  show_last_used_connection: e.boolean().default(!1),
6081
6094
  webauthn_platform_first_factor: e.boolean()
6082
6095
  });
6083
- var pa = e.object({
6096
+ var _a = e.object({
6084
6097
  hosts: e.array(e.string()).optional(),
6085
6098
  methods: e.array(e.string()).optional(),
6086
6099
  path: e.string().default("/*"),
6087
6100
  headers: e.record(e.string(), e.string()).optional(),
6088
6101
  query: e.record(e.string(), e.string()).optional()
6089
- }), ma = e.object({
6102
+ }), va = e.object({
6090
6103
  type: e.string(),
6091
6104
  options: e.record(e.string(), e.unknown()).default({})
6092
- }), ha = e.object({
6105
+ }), ya = e.object({
6093
6106
  id: e.string().optional(),
6094
6107
  custom_domain_id: e.string(),
6095
6108
  priority: e.number().int().default(100),
6096
- match: pa,
6097
- handlers: e.array(ma).min(1)
6109
+ match: _a,
6110
+ handlers: e.array(va).min(1)
6098
6111
  });
6099
- ha.extend({
6112
+ ya.extend({
6100
6113
  id: e.string(),
6101
6114
  tenant_id: e.string(),
6102
6115
  created_at: e.string(),
6103
6116
  updated_at: e.string()
6104
- }), ha.partial().omit({
6117
+ }), ya.partial().omit({
6105
6118
  id: !0,
6106
6119
  custom_domain_id: !0
6107
6120
  });
6108
- var ga = e.object({
6121
+ var ba = e.object({
6109
6122
  scim: e.string(),
6110
6123
  auth0: e.string()
6111
- }), _a = e.object({
6124
+ }), xa = e.object({
6112
6125
  connection_id: e.string(),
6113
6126
  user_id_attribute: e.string().default("externalId"),
6114
- mapping: e.array(ga).default([])
6127
+ mapping: e.array(ba).default([])
6115
6128
  });
6116
6129
  e.object({
6117
6130
  created_at: e.string(),
6118
6131
  updated_at: e.string()
6119
- }).extend(_a.shape);
6120
- var va = e.object({
6132
+ }).extend(xa.shape);
6133
+ var Sa = e.object({
6121
6134
  token_id: e.string(),
6122
6135
  connection_id: e.string(),
6123
6136
  token_hash: e.string(),
@@ -6127,20 +6140,20 @@ var va = e.object({
6127
6140
  e.object({
6128
6141
  created_at: e.string(),
6129
6142
  last_used_at: e.string().optional()
6130
- }).extend(va.shape);
6131
- var ya = e.object({
6143
+ }).extend(Sa.shape);
6144
+ var Ca = e.object({
6132
6145
  connection_id: e.string(),
6133
6146
  external_id: e.string(),
6134
6147
  user_id: e.string()
6135
6148
  });
6136
- e.object({ created_at: e.string() }).extend(ya.shape), e.object({
6149
+ e.object({ created_at: e.string() }).extend(Ca.shape), e.object({
6137
6150
  name: e.string(),
6138
6151
  enabled: e.boolean().optional().default(!0),
6139
6152
  default_from_address: e.string().optional(),
6140
6153
  credentials: e.record(e.string(), e.unknown()),
6141
6154
  settings: e.object({}).optional()
6142
6155
  });
6143
- var ba = e.enum([
6156
+ var wa = e.enum([
6144
6157
  "verify_email",
6145
6158
  "verify_email_by_code",
6146
6159
  "reset_email",
@@ -6155,7 +6168,7 @@ var ba = e.enum([
6155
6168
  "user_invitation"
6156
6169
  ]);
6157
6170
  e.object({
6158
- template: ba,
6171
+ template: wa,
6159
6172
  body: e.string(),
6160
6173
  from: e.string(),
6161
6174
  subject: e.string(),
@@ -6172,7 +6185,7 @@ e.object({
6172
6185
  expires_at: e.string().optional(),
6173
6186
  idle_expires_at: e.string().optional(),
6174
6187
  last_exchanged_at: e.string().optional(),
6175
- device: $i,
6188
+ device: ra,
6176
6189
  resource_servers: e.array(e.object({
6177
6190
  audience: e.string(),
6178
6191
  scopes: e.string()
@@ -6193,10 +6206,10 @@ e.object({
6193
6206
  name: e.string(),
6194
6207
  options: e.object({})
6195
6208
  });
6196
- var xa = e.object({
6209
+ var Ta = e.object({
6197
6210
  value: e.string(),
6198
6211
  description: e.string().optional()
6199
- }), Sa = e.object({
6212
+ }), Ea = e.object({
6200
6213
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
6201
6214
  enforce_policies: e.boolean().optional(),
6202
6215
  allow_skipping_userinfo: e.boolean().optional(),
@@ -6204,11 +6217,11 @@ var xa = e.object({
6204
6217
  persist_client_authorization: e.boolean().optional(),
6205
6218
  enable_introspection_endpoint: e.boolean().optional(),
6206
6219
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
6207
- }), Ca = e.object({
6220
+ }), Da = e.object({
6208
6221
  id: e.string().optional(),
6209
6222
  name: e.string(),
6210
6223
  identifier: e.string(),
6211
- scopes: e.array(xa).optional(),
6224
+ scopes: e.array(Ta).optional(),
6212
6225
  signing_alg: e.string().optional(),
6213
6226
  signing_secret: e.string().optional(),
6214
6227
  token_lifetime: e.number().default(86400),
@@ -6216,20 +6229,20 @@ var xa = e.object({
6216
6229
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
6217
6230
  allow_offline_access: e.boolean().optional(),
6218
6231
  verificationKey: e.string().optional(),
6219
- options: Sa.optional(),
6232
+ options: Ea.optional(),
6220
6233
  is_system: e.boolean().optional(),
6221
6234
  metadata: e.record(e.string(), e.any()).optional()
6222
6235
  }).extend({
6223
6236
  created_at: e.string().optional(),
6224
6237
  updated_at: e.string().optional()
6225
6238
  });
6226
- e.array(Ca);
6227
- var wa = e.object({
6239
+ e.array(Da);
6240
+ var Oa = e.object({
6228
6241
  role_id: e.string(),
6229
6242
  resource_server_identifier: e.string(),
6230
6243
  permission_name: e.string()
6231
6244
  }).extend({ created_at: e.string() });
6232
- e.array(wa), e.object({
6245
+ e.array(Oa), e.object({
6233
6246
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
6234
6247
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
6235
6248
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
@@ -6242,7 +6255,7 @@ e.array(wa), e.object({
6242
6255
  failed_logins: e.array(e.string()).optional(),
6243
6256
  last_password_reset: e.string().optional()
6244
6257
  });
6245
- var Ta = e.object({
6258
+ var ka = e.object({
6246
6259
  user_id: e.string(),
6247
6260
  resource_server_identifier: e.string(),
6248
6261
  permission_name: e.string(),
@@ -6251,8 +6264,8 @@ var Ta = e.object({
6251
6264
  tenant_id: e.string(),
6252
6265
  created_at: e.string().optional()
6253
6266
  });
6254
- e.array(Ta);
6255
- var Ea = e.object({
6267
+ e.array(ka);
6268
+ var Aa = e.object({
6256
6269
  user_id: e.string(),
6257
6270
  resource_server_identifier: e.string(),
6258
6271
  resource_server_name: e.string(),
@@ -6261,8 +6274,8 @@ var Ea = e.object({
6261
6274
  created_at: e.string().optional(),
6262
6275
  organization_id: e.string().optional()
6263
6276
  });
6264
- e.array(Ea);
6265
- var Da = e.object({
6277
+ e.array(Aa);
6278
+ var ja = e.object({
6266
6279
  user_id: e.string(),
6267
6280
  role_id: e.string(),
6268
6281
  organization_id: e.string().optional()
@@ -6270,8 +6283,8 @@ var Da = e.object({
6270
6283
  tenant_id: e.string(),
6271
6284
  created_at: e.string().optional()
6272
6285
  });
6273
- e.array(Da);
6274
- var Oa = e.object({
6286
+ e.array(ja);
6287
+ var Ma = e.object({
6275
6288
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
6276
6289
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
6277
6290
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
@@ -6282,19 +6295,19 @@ var Oa = e.object({
6282
6295
  created_at: e.string().optional(),
6283
6296
  updated_at: e.string().optional()
6284
6297
  });
6285
- e.array(Oa);
6286
- var ka = e.object({
6298
+ e.array(Ma);
6299
+ var Na = e.object({
6287
6300
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
6288
6301
  colors: e.object({
6289
6302
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
6290
6303
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
6291
6304
  }).optional()
6292
- }).optional(), Aa = e.object({
6305
+ }).optional(), Pa = e.object({
6293
6306
  connection_id: e.string().openapi({ description: "ID of the connection" }),
6294
6307
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
6295
6308
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
6296
6309
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
6297
- }), ja = e.object({ client_credentials: e.object({
6310
+ }), Fa = e.object({ client_credentials: e.object({
6298
6311
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
6299
6312
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
6300
6313
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
@@ -6303,15 +6316,15 @@ e.object({
6303
6316
  id: e.string().optional(),
6304
6317
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
6305
6318
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
6306
- branding: ka,
6319
+ branding: Na,
6307
6320
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
6308
- enabled_connections: e.array(Aa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6309
- token_quota: ja
6310
- }).extend(G.shape).extend({
6321
+ enabled_connections: e.array(Pa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6322
+ token_quota: Fa
6323
+ }).extend(W.shape).extend({
6311
6324
  id: e.string(),
6312
6325
  name: e.string().min(1).openapi({ description: "The name of the organization" })
6313
6326
  });
6314
- var Ma = e.object({
6327
+ var Ia = e.object({
6315
6328
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
6316
6329
  assign_membership_on_login: e.boolean().optional().default(!1),
6317
6330
  show_as_button: e.boolean().optional().default(!0),
@@ -6324,10 +6337,10 @@ var Ma = e.object({
6324
6337
  created_at: e.string().optional(),
6325
6338
  updated_at: e.string().optional()
6326
6339
  });
6327
- e.array(Ma), e.object({
6340
+ e.array(Ia), e.object({
6328
6341
  user_id: e.string().openapi({ description: "ID of the user" }),
6329
6342
  organization_id: e.string().openapi({ description: "ID of the organization" })
6330
- }).extend(G.shape).extend({ id: e.string() }), e.object({
6343
+ }).extend(W.shape).extend({ id: e.string() }), e.object({
6331
6344
  idle_session_lifetime: e.number().default(72),
6332
6345
  session_lifetime: e.number().default(168),
6333
6346
  session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
@@ -6463,22 +6476,33 @@ e.array(Ma), e.object({
6463
6476
  "passwordless",
6464
6477
  "enterprise"
6465
6478
  ]);
6466
- var Na = e.object({
6479
+ var La = e.object({
6480
+ cohort: e.string(),
6481
+ sessions: e.number(),
6482
+ active: e.array(e.number())
6483
+ });
6484
+ e.object({
6485
+ interval: e.literal("week"),
6486
+ from: e.string(),
6487
+ to: e.string(),
6488
+ cohorts: e.array(La)
6489
+ });
6490
+ var Ra = e.object({
6467
6491
  name: e.string(),
6468
6492
  type: e.string()
6469
- }), Pa = e.object({
6493
+ }), za = e.object({
6470
6494
  elapsed: e.number(),
6471
6495
  rows_read: e.number().optional(),
6472
6496
  bytes_read: e.number().optional()
6473
6497
  });
6474
6498
  e.object({
6475
- meta: e.array(Na),
6499
+ meta: e.array(Ra),
6476
6500
  data: e.array(e.record(e.string(), e.any())),
6477
6501
  rows: e.number(),
6478
6502
  rows_before_limit_at_least: e.number().optional(),
6479
- statistics: Pa.optional()
6503
+ statistics: za.optional()
6480
6504
  });
6481
- var Fa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Ia = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6505
+ var Ba = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Va = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6482
6506
  type: "object",
6483
6507
  additionalProperties: {
6484
6508
  type: "object",
@@ -6486,11 +6510,11 @@ var Fa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
6486
6510
  }
6487
6511
  });
6488
6512
  e.object({
6489
- prompt: Fa,
6513
+ prompt: Ba,
6490
6514
  language: e.string(),
6491
- custom_text: Ia
6515
+ custom_text: Va
6492
6516
  });
6493
- var La = e.enum([
6517
+ var Ha = e.enum([
6494
6518
  "phone",
6495
6519
  "totp",
6496
6520
  "email",
@@ -6498,9 +6522,9 @@ var La = e.enum([
6498
6522
  "webauthn-roaming",
6499
6523
  "webauthn-platform",
6500
6524
  "passkey"
6501
- ]), Ra = e.object({
6525
+ ]), Ua = e.object({
6502
6526
  user_id: e.string(),
6503
- type: La,
6527
+ type: Ha,
6504
6528
  phone_number: e.string().optional(),
6505
6529
  totp_secret: e.string().optional(),
6506
6530
  credential_id: e.string().optional(),
@@ -6511,7 +6535,7 @@ var La = e.enum([
6511
6535
  friendly_name: e.string().optional(),
6512
6536
  confirmed: e.boolean().default(!1)
6513
6537
  });
6514
- function za(t, n) {
6538
+ function Wa(t, n) {
6515
6539
  t.type === "phone" && !t.phone_number && n.addIssue({
6516
6540
  code: e.ZodIssueCode.custom,
6517
6541
  message: "phone_number is required when type is 'phone'",
@@ -6534,51 +6558,51 @@ function za(t, n) {
6534
6558
  path: ["public_key"]
6535
6559
  }));
6536
6560
  }
6537
- Ra.superRefine(za), Ra.extend({
6561
+ Ua.superRefine(Wa), Ua.extend({
6538
6562
  id: e.string(),
6539
6563
  created_at: e.string(),
6540
6564
  updated_at: e.string()
6541
- }).superRefine(za), e.object({
6565
+ }).superRefine(Wa), e.object({
6542
6566
  id: e.string().optional(),
6543
6567
  created_at: e.string().datetime({ offset: !0 }).optional(),
6544
6568
  updated_at: e.string().datetime({ offset: !0 }).optional()
6545
6569
  });
6546
- function Ba(e) {
6570
+ function Ga(e) {
6547
6571
  let t = atob(e), n = new Uint8Array(t.length);
6548
6572
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
6549
6573
  return n;
6550
6574
  }
6551
6575
  //#endregion
6552
6576
  //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
6553
- var Va = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ha = (e = 21) => {
6577
+ var Ka = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", qa = (e = 21) => {
6554
6578
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
6555
- for (; e--;) t += Va[n[e] & 63];
6579
+ for (; e--;) t += Ka[n[e] & 63];
6556
6580
  return t;
6557
6581
  };
6558
6582
  //#endregion
6559
6583
  //#region src/helpers.ts
6560
- async function Ua(e) {
6584
+ async function Ja(e) {
6561
6585
  let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
6562
6586
  return new Uint8Array(await new Response(r).arrayBuffer());
6563
6587
  }
6564
- async function Wa(e) {
6565
- let t = Ba(e.replace(/ /g, "+"));
6588
+ async function Ya(e) {
6589
+ let t = Ga(e.replace(/ /g, "+"));
6566
6590
  try {
6567
- let e = await Ua(t);
6591
+ let e = await Ja(t);
6568
6592
  return new TextDecoder().decode(e);
6569
6593
  } catch (e) {
6570
6594
  return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
6571
6595
  }
6572
6596
  }
6573
- async function Ga(e) {
6574
- let t = await Wa(e), n = new en({
6597
+ async function Xa(e) {
6598
+ let t = await Ya(e), n = new an({
6575
6599
  attributeNamePrefix: "@_",
6576
6600
  alwaysCreateTextNode: !0,
6577
6601
  ignoreAttributes: !1
6578
6602
  }).parse(t);
6579
6603
  return r.parse(n);
6580
6604
  }
6581
- function Ka(e) {
6605
+ function Za(e) {
6582
6606
  let t = e.certificates.map((e) => ({
6583
6607
  "@_use": "signing",
6584
6608
  KeyInfo: {
@@ -6644,7 +6668,7 @@ function Ka(e) {
6644
6668
  ]
6645
6669
  }
6646
6670
  } };
6647
- return new Cn({
6671
+ return new wn({
6648
6672
  ignoreAttributes: !1,
6649
6673
  suppressEmptyNode: !0,
6650
6674
  preserveOrder: !1,
@@ -6652,8 +6676,8 @@ function Ka(e) {
6652
6676
  attributeNamePrefix: "@_"
6653
6677
  }).build(n);
6654
6678
  }
6655
- async function qa(e, t) {
6656
- let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${Ha()}`, s = e.assertionId || `_${Ha()}`, c = [{
6679
+ async function Qa(e, t) {
6680
+ let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${qa()}`, s = e.assertionId || `_${qa()}`, c = [{
6657
6681
  "samlp:Response": [
6658
6682
  { "saml:Issuer": [{ "#text": e.issuer }] },
6659
6683
  { "samlp:Status": [{
@@ -6825,7 +6849,7 @@ async function qa(e, t) {
6825
6849
  "@_IssueInstant": i,
6826
6850
  "@_Version": "2.0"
6827
6851
  }
6828
- }], l = new Cn({
6852
+ }], l = new wn({
6829
6853
  ignoreAttributes: !1,
6830
6854
  suppressEmptyNode: !0,
6831
6855
  preserveOrder: !0
@@ -6834,7 +6858,7 @@ async function qa(e, t) {
6834
6858
  }
6835
6859
  //#endregion
6836
6860
  //#region src/signers/http.ts
6837
- var Ja = class {
6861
+ var $a = class {
6838
6862
  signUrl;
6839
6863
  constructor(e) {
6840
6864
  this.signUrl = e;
@@ -6854,4 +6878,4 @@ var Ja = class {
6854
6878
  }
6855
6879
  };
6856
6880
  //#endregion
6857
- export { Ja as HttpSamlSigner, Ka as createSamlMetadata, qa as createSamlResponse, s as dsSignatureSchema, Wa as inflateDecompress, Ua as inflateRaw, Ga as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
6881
+ export { $a as HttpSamlSigner, Za as createSamlMetadata, Qa as createSamlResponse, s as dsSignatureSchema, Ya as inflateDecompress, Ja as inflateRaw, Xa as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };