@authhero/saml 0.5.18 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.mjs CHANGED
@@ -14,7 +14,14 @@ var t = e.object({ "#text": e.string() }), n = e.object({
14
14
  "@_AssertionConsumerServiceURL": e.string().url().optional(),
15
15
  "@_ProtocolBinding": e.string().optional(),
16
16
  "@_Version": e.string()
17
- }) }), i = e.array(e.object({
17
+ }) }), i = e.object({ "samlp:LogoutRequest": e.object({
18
+ "saml:Issuer": n,
19
+ "saml:NameID": e.object({ "#text": e.string() }).optional(),
20
+ "samlp:SessionIndex": e.object({ "#text": e.string() }).optional(),
21
+ "@_ID": e.string(),
22
+ "@_Version": e.string().optional(),
23
+ "@_Destination": e.string().optional()
24
+ }) }), a = e.array(e.object({
18
25
  ":@": e.object({
19
26
  "@_xmlns": e.string(),
20
27
  "@_entityID": e.string()
@@ -55,7 +62,7 @@ var t = e.object({ "#text": e.string() }), n = e.object({
55
62
  })
56
63
  ]))
57
64
  }))
58
- })), a = e.object({
65
+ })), o = e.object({
59
66
  "saml:Attribute": e.array(e.object({
60
67
  "saml:AttributeValue": e.array(e.object({ "#text": e.string() })),
61
68
  ":@": e.object({
@@ -69,17 +76,17 @@ var t = e.object({ "#text": e.string() }), n = e.object({
69
76
  "@_NameFormat": e.string(),
70
77
  "@_FriendlyName": e.string().optional()
71
78
  })
72
- }), o = e.object({
79
+ }), s = e.object({
73
80
  "ds:Transform": e.array(e.any()),
74
81
  ":@": e.object({ "@_Algorithm": e.string() })
75
- }), s = e.object({
82
+ }), c = e.object({
76
83
  "ds:Signature": e.array(e.union([
77
84
  e.object({ "ds:SignedInfo": e.array(e.union([
78
85
  e.object({ "ds:CanonicalizationMethod": e.array(e.object({ ":@": e.object({ "@_Algorithm": e.string() }) })) }),
79
86
  e.object({ "ds:SignatureMethod": e.array(e.object({ ":@": e.object({ "@_Algorithm": e.string() }) })) }),
80
87
  e.object({
81
88
  "ds:Reference": e.array(e.union([
82
- e.object({ "ds:Transforms": e.array(o) }),
89
+ e.object({ "ds:Transforms": e.array(s) }),
83
90
  e.object({ "ds:DigestMethod": e.array(e.object({ ":@": e.object({ "@_Algorithm": e.string() }) })) }),
84
91
  e.object({ "ds:DigestValue": e.array(t) })
85
92
  ])),
@@ -97,10 +104,10 @@ var t = e.object({ "#text": e.string() }), n = e.object({
97
104
  ])) })
98
105
  ])),
99
106
  ":@": e.object({ "@_xmlns:ds": e.string().optional() }).optional()
100
- }), c = e.array(e.object({
107
+ }), l = e.array(e.object({
101
108
  "samlp:Response": e.array(e.union([
102
109
  e.object({ "saml:Issuer": e.array(t) }),
103
- s,
110
+ c,
104
111
  e.object({ "samlp:Status": e.array(e.object({
105
112
  "samlp:StatusCode": e.array(t),
106
113
  ":@": e.object({ "@_Value": e.string() })
@@ -108,7 +115,7 @@ var t = e.object({ "#text": e.string() }), n = e.object({
108
115
  e.object({
109
116
  "saml:Assertion": e.array(e.union([
110
117
  e.object({ "saml:Issuer": e.array(t) }),
111
- s,
118
+ c,
112
119
  e.object({ "saml:Subject": e.array(e.union([e.object({
113
120
  "saml:NameID": e.array(t),
114
121
  ":@": e.object({ "@_Format": e.string() })
@@ -138,7 +145,7 @@ var t = e.object({ "#text": e.string() }), n = e.object({
138
145
  "@_SessionNotOnOrAfter": e.string()
139
146
  })
140
147
  }),
141
- e.object({ "saml:AttributeStatement": e.array(a) })
148
+ e.object({ "saml:AttributeStatement": e.array(o) })
142
149
  ])),
143
150
  ":@": e.object({
144
151
  "@_xmlns": e.string(),
@@ -157,8 +164,8 @@ var t = e.object({ "#text": e.string() }), n = e.object({
157
164
  "@_IssueInstant": e.string(),
158
165
  "@_Version": e.string()
159
166
  })
160
- })), l = /* @__PURE__ */ RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
161
- function u(e, t) {
167
+ })), u = /* @__PURE__ */ RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
168
+ function d(e, t) {
162
169
  let n = [], r = t.exec(e);
163
170
  for (; r;) {
164
171
  let i = [];
@@ -169,13 +176,13 @@ function u(e, t) {
169
176
  }
170
177
  return n;
171
178
  }
172
- var d = function(e) {
173
- return l.exec(e) != null;
179
+ var f = function(e) {
180
+ return u.exec(e) != null;
174
181
  };
175
- function f(e) {
182
+ function p(e) {
176
183
  return e !== void 0;
177
184
  }
178
- var p = [
185
+ var m = [
179
186
  "hasOwnProperty",
180
187
  "toString",
181
188
  "valueOf",
@@ -183,41 +190,41 @@ var p = [
183
190
  "__defineSetter__",
184
191
  "__lookupGetter__",
185
192
  "__lookupSetter__"
186
- ], m = [
193
+ ], h = [
187
194
  "__proto__",
188
195
  "constructor",
189
196
  "prototype"
190
- ], h = {
197
+ ], g = {
191
198
  allowBooleanAttributes: !1,
192
199
  unpairedTags: []
193
200
  };
194
- function g(e, t) {
195
- t = Object.assign({}, h, t);
201
+ function _(e, t) {
202
+ t = Object.assign({}, g, t);
196
203
  let n = [], r = !1, i = !1;
197
204
  e[0] === "" && (e = e.substr(1));
198
205
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
199
- if (a += 2, a = ee(e, a), a.err) return a;
206
+ if (a += 2, a = te(e, a), a.err) return a;
200
207
  } else if (e[a] === "<") {
201
208
  let o = a;
202
209
  if (a++, e[a] === "!") {
203
- a = te(e, a);
210
+ a = ne(e, a);
204
211
  continue;
205
212
  } else {
206
213
  let s = !1;
207
214
  e[a] === "/" && (s = !0, a++);
208
215
  let c = "";
209
216
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
210
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !ue(c)) {
217
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !de(c)) {
211
218
  let t;
212
219
  return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", v("InvalidTag", t, y(e, a));
213
220
  }
214
- let l = ie(e, a);
221
+ let l = ae(e, a);
215
222
  if (l === !1) return v("InvalidAttr", "Attributes for '" + c + "' have open quote.", y(e, a));
216
223
  let u = l.value;
217
224
  if (a = l.index, u[u.length - 1] === "/") {
218
225
  let n = a - u.length;
219
226
  u = u.substring(0, u.length - 1);
220
- let i = oe(u, t);
227
+ let i = se(u, t);
221
228
  if (i === !0) r = !0;
222
229
  else return v(i.err.code, i.err.msg, y(e, n + i.err.line));
223
230
  } else if (s) {
@@ -233,7 +240,7 @@ function g(e, t) {
233
240
  n.length == 0 && (i = !0);
234
241
  }
235
242
  } else {
236
- let s = oe(u, t);
243
+ let s = se(u, t);
237
244
  if (s !== !0) return v(s.err.code, s.err.msg, y(e, a - u.length + s.err.line));
238
245
  if (i === !0) return v("InvalidXml", "Multiple possible root nodes found.", y(e, a));
239
246
  t.unpairedTags.indexOf(c) !== -1 || n.push({
@@ -242,20 +249,20 @@ function g(e, t) {
242
249
  }), r = !0;
243
250
  }
244
251
  for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
245
- a++, a = te(e, a);
252
+ a++, a = ne(e, a);
246
253
  continue;
247
254
  } else if (e[a + 1] === "?") {
248
- if (a = ee(e, ++a), a.err) return a;
255
+ if (a = te(e, ++a), a.err) return a;
249
256
  } else break;
250
257
  else if (e[a] === "&") {
251
- let t = ce(e, a);
258
+ let t = le(e, a);
252
259
  if (t == -1) return v("InvalidChar", "char '&' is not expected.", y(e, a));
253
260
  a = t;
254
- } else if (i === !0 && !_(e[a])) return v("InvalidXml", "Extra text at the end", y(e, a));
261
+ } else if (i === !0 && !ee(e[a])) return v("InvalidXml", "Extra text at the end", y(e, a));
255
262
  e[a] === "<" && a--;
256
263
  }
257
264
  } else {
258
- if (_(e[a])) continue;
265
+ if (ee(e[a])) continue;
259
266
  return v("InvalidChar", "char '" + e[a] + "' is not expected.", y(e, a));
260
267
  }
261
268
  return r ? n.length == 1 ? v("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", y(e, n[0].tagStartPos)) : n.length > 0 ? v("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
@@ -263,10 +270,10 @@ function g(e, t) {
263
270
  col: 1
264
271
  }) : !0 : v("InvalidXml", "Start tag expected.", 1);
265
272
  }
266
- function _(e) {
273
+ function ee(e) {
267
274
  return e === " " || e === " " || e === "\n" || e === "\r";
268
275
  }
269
- function ee(e, t) {
276
+ function te(e, t) {
270
277
  let n = t;
271
278
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
272
279
  let r = e.substr(n, t - n);
@@ -278,7 +285,7 @@ function ee(e, t) {
278
285
  }
279
286
  return t;
280
287
  }
281
- function te(e, t) {
288
+ function ne(e, t) {
282
289
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
283
290
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
284
291
  t += 2;
@@ -296,11 +303,11 @@ function te(e, t) {
296
303
  }
297
304
  return t;
298
305
  }
299
- var ne = "\"", re = "'";
300
- function ie(e, t) {
306
+ var re = "\"", ie = "'";
307
+ function ae(e, t) {
301
308
  let n = "", r = "", i = !1;
302
309
  for (; t < e.length; t++) {
303
- if (e[t] === ne || e[t] === re) r === "" ? r = e[t] : r !== e[t] || (r = "");
310
+ if (e[t] === re || e[t] === ie) r === "" ? r = e[t] : r !== e[t] || (r = "");
304
311
  else if (e[t] === ">" && r === "") {
305
312
  i = !0;
306
313
  break;
@@ -313,21 +320,21 @@ function ie(e, t) {
313
320
  tagClosed: i
314
321
  } : !1;
315
322
  }
316
- var ae = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
317
- function oe(e, t) {
318
- let n = u(e, ae), r = {};
323
+ var oe = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
324
+ function se(e, t) {
325
+ let n = d(e, oe), r = {};
319
326
  for (let e = 0; e < n.length; e++) {
320
327
  if (n[e][1].length === 0) return v("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", b(n[e]));
321
328
  if (n[e][3] !== void 0 && n[e][4] === void 0) return v("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", b(n[e]));
322
329
  if (n[e][3] === void 0 && !t.allowBooleanAttributes) return v("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", b(n[e]));
323
330
  let i = n[e][2];
324
- if (!le(i)) return v("InvalidAttr", "Attribute '" + i + "' is an invalid name.", b(n[e]));
331
+ if (!ue(i)) return v("InvalidAttr", "Attribute '" + i + "' is an invalid name.", b(n[e]));
325
332
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
326
333
  else return v("InvalidAttr", "Attribute '" + i + "' is repeated.", b(n[e]));
327
334
  }
328
335
  return !0;
329
336
  }
330
- function se(e, t) {
337
+ function ce(e, t) {
331
338
  let n = /\d/;
332
339
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
333
340
  if (e[t] === ";") return t;
@@ -335,9 +342,9 @@ function se(e, t) {
335
342
  }
336
343
  return -1;
337
344
  }
338
- function ce(e, t) {
345
+ function le(e, t) {
339
346
  if (t++, e[t] === ";") return -1;
340
- if (e[t] === "#") return t++, se(e, t);
347
+ if (e[t] === "#") return t++, ce(e, t);
341
348
  let n = 0;
342
349
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
343
350
  if (e[t] === ";") break;
@@ -353,11 +360,11 @@ function v(e, t, n) {
353
360
  col: n.col
354
361
  } };
355
362
  }
356
- function le(e) {
357
- return d(e);
358
- }
359
363
  function ue(e) {
360
- return d(e);
364
+ return f(e);
365
+ }
366
+ function de(e) {
367
+ return f(e);
361
368
  }
362
369
  function y(e, t) {
363
370
  let n = e.substring(0, t).split(/\r?\n/);
@@ -371,7 +378,7 @@ function b(e) {
371
378
  }
372
379
  //#endregion
373
380
  //#region ../../node_modules/.pnpm/@nodable+entities@2.2.0/node_modules/@nodable/entities/src/entities.js
374
- var de = {
381
+ var fe = {
375
382
  amp: "&",
376
383
  AMP: "&",
377
384
  lt: "<",
@@ -449,7 +456,7 @@ var de = {
449
456
  times: "×",
450
457
  div: "÷",
451
458
  divide: "÷"
452
- }, fe = {
459
+ }, pe = {
453
460
  Agrave: "À",
454
461
  agrave: "à",
455
462
  Aacute: "Á",
@@ -513,7 +520,7 @@ var de = {
513
520
  szlig: "ß",
514
521
  yuml: "ÿ",
515
522
  Yuml: "Ÿ"
516
- }, pe = {
523
+ }, me = {
517
524
  Amacr: "Ā",
518
525
  amacr: "ā",
519
526
  Abreve: "Ă",
@@ -631,7 +638,7 @@ var de = {
631
638
  zdot: "ż",
632
639
  Zcaron: "Ž",
633
640
  zcaron: "ž"
634
- }, me = {
641
+ }, he = {
635
642
  Alpha: "Α",
636
643
  alpha: "α",
637
644
  Beta: "Β",
@@ -702,7 +709,7 @@ var de = {
702
709
  Gammad: "Ϝ",
703
710
  gammad: "ϝ",
704
711
  digamma: "ϝ"
705
- }, he = {
712
+ }, ge = {
706
713
  Afr: "𝔄",
707
714
  afr: "𝔞",
708
715
  Acy: "А",
@@ -797,7 +804,7 @@ var de = {
797
804
  ubrcy: "ў",
798
805
  DZcy: "Џ",
799
806
  dzcy: "џ"
800
- }, ge = {
807
+ }, _e = {
801
808
  plus: "+",
802
809
  pm: "±",
803
810
  times: "×",
@@ -879,7 +886,7 @@ var de = {
879
886
  lesseqqgtr: "⪋",
880
887
  greater: ">",
881
888
  less: "<"
882
- }, _e = {
889
+ }, ve = {
883
890
  alefsym: "ℵ",
884
891
  aleph: "ℵ",
885
892
  beth: "ℶ",
@@ -1000,7 +1007,7 @@ var de = {
1000
1007
  npr: "⊀",
1001
1008
  nsucc: "⊁",
1002
1009
  nsc: "⊁"
1003
- }, ve = {
1010
+ }, ye = {
1004
1011
  larr: "←",
1005
1012
  leftarrow: "←",
1006
1013
  LeftArrow: "←",
@@ -1151,7 +1158,7 @@ var de = {
1151
1158
  LeftArrowBar: "⇤",
1152
1159
  rarrb: "⇥",
1153
1160
  RightArrowBar: "⇥"
1154
- }, ye = {
1161
+ }, be = {
1155
1162
  square: "□",
1156
1163
  Square: "□",
1157
1164
  squ: "□",
@@ -1244,7 +1251,7 @@ var de = {
1244
1251
  boxvH: "╪",
1245
1252
  boxVh: "╫",
1246
1253
  boxVH: "╬"
1247
- }, be = {
1254
+ }, xe = {
1248
1255
  excl: "!",
1249
1256
  iexcl: "¡",
1250
1257
  brvbar: "¦",
@@ -1295,7 +1302,7 @@ var de = {
1295
1302
  DiacriticalDot: "˙",
1296
1303
  DiacriticalDoubleAcute: "˝",
1297
1304
  grave: "`"
1298
- }, xe = {
1305
+ }, Se = {
1299
1306
  cent: "¢",
1300
1307
  pound: "£",
1301
1308
  curren: "¤",
@@ -1311,7 +1318,7 @@ var de = {
1311
1318
  won: "₩",
1312
1319
  yuan: "¥",
1313
1320
  cedil: "¸"
1314
- }, Se = {
1321
+ }, Ce = {
1315
1322
  frac12: "½",
1316
1323
  half: "½",
1317
1324
  frac13: "⅓",
@@ -1329,7 +1336,7 @@ var de = {
1329
1336
  frac58: "⅝",
1330
1337
  frac78: "⅞",
1331
1338
  frasl: "⁄"
1332
- }, Ce = {
1339
+ }, we = {
1333
1340
  trade: "™",
1334
1341
  TRADE: "™",
1335
1342
  telrec: "⌕",
@@ -1396,7 +1403,6 @@ var de = {
1396
1403
  nVDash: "⊯"
1397
1404
  };
1398
1405
  ({
1399
- ...de,
1400
1406
  ...fe,
1401
1407
  ...pe,
1402
1408
  ...me,
@@ -1408,15 +1414,16 @@ var de = {
1408
1414
  ...be,
1409
1415
  ...xe,
1410
1416
  ...Se,
1411
- ...Ce
1417
+ ...Ce,
1418
+ ...we
1412
1419
  });
1413
- var we = {
1420
+ var Te = {
1414
1421
  amp: "&",
1415
1422
  apos: "'",
1416
1423
  gt: ">",
1417
1424
  lt: "<",
1418
1425
  quot: "\""
1419
- }, Te = {
1426
+ }, Ee = {
1420
1427
  nbsp: "\xA0",
1421
1428
  copy: "©",
1422
1429
  reg: "®",
@@ -1441,10 +1448,10 @@ var we = {
1441
1448
  ALLOW: "allow",
1442
1449
  BLOCK: "block",
1443
1450
  THROW: "throw"
1444
- }), Ee = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1445
- function De(e) {
1451
+ }), De = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1452
+ function Oe(e) {
1446
1453
  if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
1447
- for (let t of e) if (Ee.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1454
+ for (let t of e) if (De.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1448
1455
  return e;
1449
1456
  }
1450
1457
  function S(...e) {
@@ -1459,21 +1466,21 @@ function S(...e) {
1459
1466
  }
1460
1467
  return t;
1461
1468
  }
1462
- var C = "external", w = "base", Oe = "all";
1463
- function ke(e) {
1464
- return !e || e === C ? new Set([C]) : e === Oe ? new Set([Oe]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
1469
+ var C = "external", w = "base", ke = "all";
1470
+ function Ae(e) {
1471
+ return !e || e === C ? new Set([C]) : e === ke ? new Set([ke]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
1465
1472
  }
1466
1473
  var T = Object.freeze({
1467
1474
  allow: 0,
1468
1475
  leave: 1,
1469
1476
  remove: 2,
1470
1477
  throw: 3
1471
- }), Ae = new Set([
1478
+ }), je = new Set([
1472
1479
  9,
1473
1480
  10,
1474
1481
  13
1475
1482
  ]);
1476
- function je(e) {
1483
+ function Me(e) {
1477
1484
  if (!e) return {
1478
1485
  xmlVersion: 1,
1479
1486
  onLevel: T.allow,
@@ -1486,10 +1493,10 @@ function je(e) {
1486
1493
  nullLevel: Math.max(r, T.remove)
1487
1494
  };
1488
1495
  }
1489
- var Me = class {
1496
+ var Ne = class {
1490
1497
  constructor(e = {}) {
1491
- this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ke(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(we, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1492
- let t = je(e.ncr);
1498
+ this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = Ae(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(Te, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1499
+ let t = Me(e.ncr);
1493
1500
  this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel, this._onExternalEntity = typeof e.onExternalEntity == "function" ? e.onExternalEntity : null, this._onInputEntity = typeof e.onInputEntity == "function" ? e.onInputEntity : null;
1494
1501
  }
1495
1502
  _applyRegistrationHook(e, t, n, r) {
@@ -1500,7 +1507,7 @@ var Me = class {
1500
1507
  return !0;
1501
1508
  }
1502
1509
  setExternalEntities(e) {
1503
- if (e) for (let t of Object.keys(e)) De(t);
1510
+ if (e) for (let t of Object.keys(e)) Oe(t);
1504
1511
  if (!this._onExternalEntity) {
1505
1512
  this._externalMap = S(e);
1506
1513
  return;
@@ -1510,7 +1517,7 @@ var Me = class {
1510
1517
  this._externalMap = n;
1511
1518
  }
1512
1519
  addExternalEntity(e, t) {
1513
- De(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1520
+ Oe(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1514
1521
  }
1515
1522
  addInputEntities(e) {
1516
1523
  if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
@@ -1579,7 +1586,7 @@ var Me = class {
1579
1586
  return this._postCheck(l, t);
1580
1587
  }
1581
1588
  _tierCounts(e) {
1582
- return this._limitTiers.has(Oe) ? !0 : this._limitTiers.has(e);
1589
+ return this._limitTiers.has(ke) ? !0 : this._limitTiers.has(e);
1583
1590
  }
1584
1591
  _resolveName(e) {
1585
1592
  if (e in this._inputMap) return {
@@ -1596,7 +1603,7 @@ var Me = class {
1596
1603
  };
1597
1604
  }
1598
1605
  _classifyNCR(e) {
1599
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !Ae.has(e) ? T.remove : -1;
1606
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !je.has(e) ? T.remove : -1;
1600
1607
  }
1601
1608
  _applyNCRAction(e, t, n) {
1602
1609
  switch (e) {
@@ -1615,7 +1622,7 @@ var Me = class {
1615
1622
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
1616
1623
  return this._applyNCRAction(i, e, n);
1617
1624
  }
1618
- }, Ne = (e) => p.includes(e) ? "__" + e : e, Pe = {
1625
+ }, Pe = (e) => m.includes(e) ? "__" + e : e, Fe = {
1619
1626
  preserveOrder: !1,
1620
1627
  attributeNamePrefix: "@_",
1621
1628
  attributesGroupName: !1,
@@ -1658,14 +1665,14 @@ var Me = class {
1658
1665
  maxNestedTags: 100,
1659
1666
  strictReservedNames: !0,
1660
1667
  jPath: !0,
1661
- onDangerousProperty: Ne
1668
+ onDangerousProperty: Pe
1662
1669
  };
1663
- function Fe(e, t) {
1670
+ function Ie(e, t) {
1664
1671
  if (typeof e != "string") return;
1665
1672
  let n = e.toLowerCase();
1666
- if (p.some((e) => n === e.toLowerCase()) || m.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1673
+ if (m.some((e) => n === e.toLowerCase()) || h.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1667
1674
  }
1668
- function Ie(e, t) {
1675
+ function Le(e, t) {
1669
1676
  return typeof e == "boolean" ? {
1670
1677
  enabled: e,
1671
1678
  maxEntitySize: 1e4,
@@ -1686,10 +1693,10 @@ function Ie(e, t) {
1686
1693
  allowedTags: e.allowedTags ?? null,
1687
1694
  tagFilter: e.tagFilter ?? null,
1688
1695
  appliesTo: e.appliesTo ?? "all"
1689
- } : Ie(!0);
1696
+ } : Le(!0);
1690
1697
  }
1691
- var Le = function(e) {
1692
- let t = Object.assign({}, Pe, e), n = [
1698
+ var Re = function(e) {
1699
+ let t = Object.assign({}, Fe, e), n = [
1693
1700
  {
1694
1701
  value: t.attributeNamePrefix,
1695
1702
  name: "attributeNamePrefix"
@@ -1711,9 +1718,9 @@ var Le = function(e) {
1711
1718
  name: "commentPropName"
1712
1719
  }
1713
1720
  ];
1714
- for (let { value: e, name: t } of n) e && Fe(e, t);
1715
- return t.onDangerousProperty === null && (t.onDangerousProperty = Ne), t.processEntities = Ie(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1716
- }, Re = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", E = class {
1721
+ for (let { value: e, name: t } of n) e && Ie(e, t);
1722
+ return t.onDangerousProperty === null && (t.onDangerousProperty = Pe), t.processEntities = Le(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1723
+ }, ze = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", E = class {
1717
1724
  constructor(e) {
1718
1725
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
1719
1726
  }
@@ -1724,12 +1731,12 @@ var Le = function(e) {
1724
1731
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
1725
1732
  [e.tagname]: e.child,
1726
1733
  ":@": e[":@"]
1727
- }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Re] = { startIndex: t });
1734
+ }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][ze] = { startIndex: t });
1728
1735
  }
1729
1736
  static getMetaDataSymbol() {
1730
- return Re;
1737
+ return ze;
1731
1738
  }
1732
- }, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", D = (e, t, n = "") => {
1739
+ }, Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Ve = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ue = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", We = (e, t, n = "") => {
1733
1740
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1734
1741
  return {
1735
1742
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1738,15 +1745,15 @@ var Le = function(e) {
1738
1745
  nmToken: RegExp(`^[${t}]+$`, n),
1739
1746
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1740
1747
  };
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 = [
1748
+ }, Ge = We(Be, Ve), Ke = We(He, Ue, "u"), qe = We(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Je = (e = "1.0", t = !1) => t ? qe : e === "1.1" ? Ke : Ge, Ye = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Je(t, n).qName.test(e), Xe = [
1742
1749
  "name",
1743
1750
  "ncName",
1744
1751
  "qName",
1745
1752
  "nmToken",
1746
1753
  "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) => {
1754
+ ], Ze = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1755
+ if (!Xe.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Xe.join(", ")}`);
1756
+ let i = Je(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1750
1757
  let t = a.get(e);
1751
1758
  if (t !== void 0) return t;
1752
1759
  let n = i.test(e);
@@ -1755,7 +1762,7 @@ var Le = function(e) {
1755
1762
  return o.reset = () => {
1756
1763
  a = /* @__PURE__ */ new Map();
1757
1764
  }, o;
1758
- }, Xe = class {
1765
+ }, Qe = class {
1759
1766
  constructor(e, t) {
1760
1767
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1761
1768
  }
@@ -1768,23 +1775,23 @@ var Le = function(e) {
1768
1775
  t += 9;
1769
1776
  let i = 1, a = !1, o = !1, s = "";
1770
1777
  for (; t < e.length; t++) if (e[t] === "<" && !o) {
1771
- if (a && k(e, "!ENTITY", t)) {
1778
+ if (a && O(e, "!ENTITY", t)) {
1772
1779
  t += 7;
1773
1780
  let i, a;
1774
1781
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
1775
1782
  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
1783
  n[i] = a, r++;
1777
1784
  }
1778
- } else if (a && k(e, "!ELEMENT", t)) {
1785
+ } else if (a && O(e, "!ELEMENT", t)) {
1779
1786
  t += 8;
1780
1787
  let { index: n } = this.readElementExp(e, t + 1);
1781
1788
  t = n;
1782
- } else if (a && k(e, "!ATTLIST", t)) t += 8;
1783
- else if (a && k(e, "!NOTATION", t)) {
1789
+ } else if (a && O(e, "!ATTLIST", t)) t += 8;
1790
+ else if (a && O(e, "!NOTATION", t)) {
1784
1791
  t += 9;
1785
1792
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
1786
1793
  t = n;
1787
- } else if (k(e, "!--", t)) o = !0;
1794
+ } else if (O(e, "!--", t)) o = !0;
1788
1795
  else throw Error("Invalid DOCTYPE");
1789
1796
  i++, s = "";
1790
1797
  } else if (e[t] === ">") {
@@ -1798,11 +1805,11 @@ var Le = function(e) {
1798
1805
  };
1799
1806
  }
1800
1807
  readEntityExp(e, t) {
1801
- t = O(e, t);
1808
+ t = D(e, t);
1802
1809
  let n = t;
1803
1810
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
1804
1811
  let r = e.substring(n, t);
1805
- if (A(r, { xmlVersion: this.xmlVersion }), t = O(e, t), !this.suppressValidationErr) {
1812
+ if (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), !this.suppressValidationErr) {
1806
1813
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
1807
1814
  if (e[t] === "%") throw Error("Parameter entities are not supported");
1808
1815
  }
@@ -1815,16 +1822,16 @@ var Le = function(e) {
1815
1822
  ];
1816
1823
  }
1817
1824
  readNotationExp(e, t) {
1818
- t = O(e, t);
1825
+ t = D(e, t);
1819
1826
  let n = t;
1820
1827
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1821
1828
  let r = e.substring(n, t);
1822
- !this.suppressValidationErr && A(r, { xmlVersion: this.xmlVersion }), t = O(e, t);
1829
+ !this.suppressValidationErr && k(r, { xmlVersion: this.xmlVersion }), t = D(e, t);
1823
1830
  let i = e.substring(t, t + 6).toUpperCase();
1824
1831
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
1825
- t += i.length, t = O(e, t);
1832
+ t += i.length, t = D(e, t);
1826
1833
  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"));
1834
+ 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
1835
  else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
1829
1836
  return {
1830
1837
  notationName: r,
@@ -1843,15 +1850,15 @@ var Le = function(e) {
1843
1850
  return t++, [t, r];
1844
1851
  }
1845
1852
  readElementExp(e, t) {
1846
- t = O(e, t);
1853
+ t = D(e, t);
1847
1854
  let n = t;
1848
1855
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1849
1856
  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);
1857
+ if (!this.suppressValidationErr && !Ye(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1858
+ t = D(e, t);
1852
1859
  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;
1860
+ if (e[t] === "E" && O(e, "MPTY", t)) t += 4;
1861
+ else if (e[t] === "A" && O(e, "NY", t)) t += 2;
1855
1862
  else if (e[t] === "(") {
1856
1863
  t++;
1857
1864
  let n = t;
@@ -1865,25 +1872,25 @@ var Le = function(e) {
1865
1872
  };
1866
1873
  }
1867
1874
  readAttlistExp(e, t) {
1868
- t = O(e, t);
1875
+ t = D(e, t);
1869
1876
  let n = t;
1870
1877
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1871
1878
  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++;
1879
+ for (k(r, { xmlVersion: this.xmlVersion }), t = D(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1873
1880
  let i = e.substring(n, t);
1874
- if (!A(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1875
- t = O(e, t);
1881
+ if (!k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1882
+ t = D(e, t);
1876
1883
  let a = "";
1877
1884
  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]}"`);
1885
+ if (a = "NOTATION", t += 8, t = D(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1879
1886
  t++;
1880
1887
  let n = [];
1881
1888
  for (; t < e.length && e[t] !== ")";) {
1882
1889
  let r = t;
1883
1890
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
1884
1891
  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));
1892
+ if (i = i.trim(), !k(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1893
+ n.push(i), e[t] === "|" && (t++, t = D(e, t));
1887
1894
  }
1888
1895
  if (e[t] !== ")") throw Error("Unterminated list of notations");
1889
1896
  t++, a += " (" + n.join("|") + ")";
@@ -1901,7 +1908,7 @@ var Le = function(e) {
1901
1908
  "NMTOKENS"
1902
1909
  ].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
1903
1910
  }
1904
- t = O(e, t);
1911
+ t = D(e, t);
1905
1912
  let o = "";
1906
1913
  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
1914
  elementName: r,
@@ -1911,21 +1918,21 @@ var Le = function(e) {
1911
1918
  index: t
1912
1919
  };
1913
1920
  }
1914
- }, O = (e, t) => {
1921
+ }, D = (e, t) => {
1915
1922
  for (; t < e.length && /\s/.test(e[t]);) t++;
1916
1923
  return t;
1917
1924
  };
1918
- function k(e, t, n) {
1925
+ function O(e, t, n) {
1919
1926
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
1920
1927
  return !0;
1921
1928
  }
1922
- function A(e, t) {
1923
- if (qe(e, { xmlVersion: t })) return e;
1929
+ function k(e, t) {
1930
+ if (Ye(e, { xmlVersion: t })) return e;
1924
1931
  throw Error(`Invalid entity name ${e}`);
1925
1932
  }
1926
1933
  //#endregion
1927
1934
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
1928
- var Ze = [
1935
+ var $e = [
1929
1936
  48,
1930
1937
  1632,
1931
1938
  1776,
@@ -1987,26 +1994,26 @@ var Ze = [
1987
1994
  124144,
1988
1995
  125264,
1989
1996
  130032
1990
- ], Qe = /* @__PURE__ */ new Map(), $e = 65535, et = 1632, tt = new Uint8Array(63904).fill(255);
1991
- for (let e of Ze) for (let t = 0; t < 10; t++) {
1997
+ ], A = /* @__PURE__ */ new Map(), et = 65535, tt = 1632, nt = new Uint8Array(63904).fill(255);
1998
+ for (let e of $e) for (let t = 0; t < 10; t++) {
1992
1999
  let n = e + t;
1993
- n <= $e ? tt[n - et] = t : Qe.set(n, t);
2000
+ n <= et ? nt[n - tt] = t : A.set(n, t);
1994
2001
  }
1995
2002
  //#endregion
1996
2003
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
1997
- var nt = 48, rt = 57, it = 45, j = new Set([
2004
+ var rt = 48, it = 57, at = 45, j = new Set([
1998
2005
  8722,
1999
2006
  65293,
2000
2007
  65123
2001
2008
  ]);
2002
- function at(e) {
2009
+ function ot(e) {
2003
2010
  if (typeof e != "string") return e;
2004
2011
  let t = e.length;
2005
2012
  if (t === 0) return e;
2006
2013
  let n = -1;
2007
2014
  for (let r = 0; r < t; r++) {
2008
2015
  let i = e.charCodeAt(r);
2009
- if (!(i >= nt && i <= rt || i === it)) {
2016
+ if (!(i >= rt && i <= it || i === at)) {
2010
2017
  if (i < 1632) {
2011
2018
  if (j.has(i)) {
2012
2019
  n = r;
@@ -2019,7 +2026,7 @@ function at(e) {
2019
2026
  let t = e.charCodeAt(r + 1);
2020
2027
  if (t >= 56320 && t <= 57343) {
2021
2028
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
2022
- if (Qe.has(e)) {
2029
+ if (A.has(e)) {
2023
2030
  n = r;
2024
2031
  break;
2025
2032
  }
@@ -2027,7 +2034,7 @@ function at(e) {
2027
2034
  }
2028
2035
  continue;
2029
2036
  }
2030
- if (tt[i - 1632] !== 255 || j.has(i)) {
2037
+ if (nt[i - 1632] !== 255 || j.has(i)) {
2031
2038
  n = r;
2032
2039
  break;
2033
2040
  }
@@ -2038,7 +2045,7 @@ function at(e) {
2038
2045
  n > 0 && r.push(e.slice(0, n));
2039
2046
  for (let i = n; i < t; i++) {
2040
2047
  let n = e.charCodeAt(i);
2041
- if (n >= nt && n <= rt || n === it) {
2048
+ if (n >= rt && n <= it || n === at) {
2042
2049
  r.push(e[i]);
2043
2050
  continue;
2044
2051
  }
@@ -2050,7 +2057,7 @@ function at(e) {
2050
2057
  if (i + 1 < t) {
2051
2058
  let t = e.charCodeAt(i + 1);
2052
2059
  if (t >= 56320 && t <= 57343) {
2053
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = Qe.get(e);
2060
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = A.get(e);
2054
2061
  if (a !== void 0) {
2055
2062
  r.push(String.fromCharCode(a + 48)), i++;
2056
2063
  continue;
@@ -2064,14 +2071,14 @@ function at(e) {
2064
2071
  r.push("-");
2065
2072
  continue;
2066
2073
  }
2067
- let a = tt[n - et];
2074
+ let a = nt[n - tt];
2068
2075
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
2069
2076
  }
2070
2077
  return r.join("");
2071
2078
  }
2072
2079
  //#endregion
2073
2080
  //#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
2074
- var ot = /^[-+]?0x[a-fA-F0-9]+$/, st = /^0b[01]+$/, ct = /^0o[0-7]+$/, lt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, ut = {
2081
+ var st = /^[-+]?0x[a-fA-F0-9]+$/, ct = /^0b[01]+$/, lt = /^0o[0-7]+$/, ut = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, dt = {
2075
2082
  hex: !0,
2076
2083
  binary: !1,
2077
2084
  octal: !1,
@@ -2081,20 +2088,20 @@ var ot = /^[-+]?0x[a-fA-F0-9]+$/, st = /^0b[01]+$/, ct = /^0o[0-7]+$/, lt = /^([
2081
2088
  infinity: "original",
2082
2089
  unicode: !1
2083
2090
  };
2084
- function dt(e, t = {}) {
2085
- if (t = Object.assign({}, ut, t), !e || typeof e != "string") return e;
2091
+ function ft(e, t = {}) {
2092
+ if (t = Object.assign({}, dt, t), !e || typeof e != "string") return e;
2086
2093
  let n = e.trim();
2087
2094
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
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);
2095
+ if (n === "0" || t.unicode && (n = ot(n), n === "0")) return 0;
2096
+ if (t.hex && st.test(n)) return gt(n, 16);
2097
+ if (t.binary && ct.test(n)) return gt(n, 2);
2098
+ if (t.octal && lt.test(n)) return gt(n, 8);
2099
+ if (!isFinite(n)) return _t(e, Number(n), t);
2100
+ if (n.includes("e") || n.includes("E")) return mt(e, n, t);
2094
2101
  {
2095
- let r = lt.exec(n);
2102
+ let r = ut.exec(n);
2096
2103
  if (r) {
2097
- let i = r[1] || "", a = r[2], o = mt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2104
+ let i = r[1] || "", a = r[2], o = ht(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2098
2105
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
2099
2106
  {
2100
2107
  let r = Number(n), s = String(r);
@@ -2107,26 +2114,26 @@ function dt(e, t = {}) {
2107
2114
  } else return e;
2108
2115
  }
2109
2116
  }
2110
- var ft = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2111
- function pt(e, t, n) {
2117
+ var pt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2118
+ function mt(e, t, n) {
2112
2119
  if (!n.eNotation) return e;
2113
- let r = t.match(ft);
2120
+ let r = t.match(pt);
2114
2121
  if (r) {
2115
2122
  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
2123
  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
2124
  } else return e;
2118
2125
  }
2119
- function mt(e) {
2126
+ function ht(e) {
2120
2127
  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
2128
  }
2122
- function ht(e, t) {
2129
+ function gt(e, t) {
2123
2130
  let n = e.trim();
2124
2131
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2125
2132
  if (Number.parseInt) return Number.parseInt(e, t);
2126
2133
  if (window && window.parseInt) return window.parseInt(e, t);
2127
2134
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2128
2135
  }
2129
- function gt(e, t, n) {
2136
+ function _t(e, t, n) {
2130
2137
  let r = t === Infinity;
2131
2138
  switch (n.infinity.toLowerCase()) {
2132
2139
  case "null": return null;
@@ -2137,7 +2144,7 @@ function gt(e, t, n) {
2137
2144
  }
2138
2145
  //#endregion
2139
2146
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2140
- function _t(e) {
2147
+ function vt(e) {
2141
2148
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2142
2149
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2143
2150
  } : () => !1;
@@ -2200,7 +2207,7 @@ var M = class {
2200
2207
  toString() {
2201
2208
  return this.pattern;
2202
2209
  }
2203
- }, vt = class {
2210
+ }, yt = class {
2204
2211
  constructor() {
2205
2212
  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
2213
  }
@@ -2258,7 +2265,7 @@ var M = class {
2258
2265
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2259
2266
  return null;
2260
2267
  }
2261
- }, yt = class {
2268
+ }, bt = class {
2262
2269
  constructor(e) {
2263
2270
  this._matcher = e;
2264
2271
  }
@@ -2317,7 +2324,7 @@ var M = class {
2317
2324
  }
2318
2325
  }, N = class {
2319
2326
  constructor(e = {}) {
2320
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new yt(this), this._keptAttrs = [];
2327
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new bt(this), this._keptAttrs = [];
2321
2328
  }
2322
2329
  push(e, t = null, n = null, r = null) {
2323
2330
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2615,7 +2622,7 @@ var M = class {
2615
2622
  description: "?> closes an enclosing processing instruction",
2616
2623
  pattern: /\?>/
2617
2624
  }
2618
- ], bt = [
2625
+ ], xt = [
2619
2626
  {
2620
2627
  id: "svg-script-element",
2621
2628
  description: "<script element inside SVG executes JavaScript",
@@ -2757,7 +2764,7 @@ var M = class {
2757
2764
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
2758
2765
  pattern: /\bINFORMATION_SCHEMA\b/i
2759
2766
  }
2760
- ], xt = [
2767
+ ], St = [
2761
2768
  {
2762
2769
  id: "shell-path-traversal-unix",
2763
2770
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -2848,7 +2855,7 @@ var M = class {
2848
2855
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
2849
2856
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
2850
2857
  }
2851
- ], St = [
2858
+ ], Ct = [
2852
2859
  {
2853
2860
  id: "redos-nested-quantifier-plus",
2854
2861
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -2889,7 +2896,7 @@ var M = class {
2889
2896
  description: "Long alternation with many similar branches — polynomial backtracking risk",
2890
2897
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
2891
2898
  }
2892
- ], L = "[\"'\\s]*:", Ct = [
2899
+ ], L = "[\"'\\s]*:", wt = [
2893
2900
  {
2894
2901
  id: "nosql-where-operator",
2895
2902
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
@@ -2970,7 +2977,7 @@ var M = class {
2970
2977
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
2971
2978
  pattern: /\[["']__proto__["']\]/
2972
2979
  }
2973
- ], wt = [
2980
+ ], Tt = [
2974
2981
  {
2975
2982
  id: "log-crlf-injection",
2976
2983
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -3031,7 +3038,7 @@ var M = class {
3031
3038
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
3032
3039
  pattern: /\x1b\[/
3033
3040
  }
3034
- ], Tt = [
3041
+ ], Et = [
3035
3042
  {
3036
3043
  id: "sql-line-comment",
3037
3044
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -3047,22 +3054,22 @@ var M = class {
3047
3054
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
3048
3055
  pattern: /\b0x[0-9a-f]{4,}/i
3049
3056
  }
3050
- ], Et = [...I, ...Tt];
3051
- P.label = "HTML", F.label = "XML", bt.label = "SVG", I.label = "SQL", Et.label = "SQL-STRICT", xt.label = "SHELL", St.label = "REDOS", Ct.label = "NOSQL", wt.label = "LOG", Object.freeze({
3057
+ ], Dt = [...I, ...Et];
3058
+ P.label = "HTML", F.label = "XML", xt.label = "SVG", I.label = "SQL", Dt.label = "SQL-STRICT", St.label = "SHELL", Ct.label = "REDOS", wt.label = "NOSQL", Tt.label = "LOG", Object.freeze({
3052
3059
  HTML: P,
3053
3060
  XML: F,
3054
- SVG: bt,
3061
+ SVG: xt,
3055
3062
  SQL: I,
3056
- "SQL-STRICT": Et,
3057
- SHELL: xt,
3058
- REDOS: St,
3059
- NOSQL: Ct,
3060
- LOG: wt
3063
+ "SQL-STRICT": Dt,
3064
+ SHELL: St,
3065
+ REDOS: Ct,
3066
+ NOSQL: wt,
3067
+ LOG: Tt
3061
3068
  });
3062
- function Dt(e) {
3069
+ function Ot(e) {
3063
3070
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
3064
3071
  }
3065
- function Ot(e) {
3072
+ function kt(e) {
3066
3073
  if (!(e instanceof RegExp)) {
3067
3074
  if (Array.isArray(e)) {
3068
3075
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -3074,7 +3081,7 @@ function Ot(e) {
3074
3081
  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
3082
  }
3076
3083
  }
3077
- function kt(e) {
3084
+ function At(e) {
3078
3085
  return e instanceof RegExp ? {
3079
3086
  lists: null,
3080
3087
  regex: e
@@ -3086,7 +3093,7 @@ function kt(e) {
3086
3093
  regex: null
3087
3094
  };
3088
3095
  }
3089
- function At(e, t) {
3096
+ function jt(e, t) {
3090
3097
  let n = t.label ?? "CUSTOM";
3091
3098
  for (let r of t) if (r.pattern.test(e)) return {
3092
3099
  context: n,
@@ -3096,16 +3103,16 @@ function At(e, t) {
3096
3103
  };
3097
3104
  return null;
3098
3105
  }
3099
- function jt(e, t) {
3100
- Dt(e), Ot(t);
3101
- let { lists: n, regex: r } = kt(t);
3106
+ function Mt(e, t) {
3107
+ Ot(e), kt(t);
3108
+ let { lists: n, regex: r } = At(t);
3102
3109
  if (r) return r.test(e);
3103
- for (let t of n) if (At(e, t) !== null) return !0;
3110
+ for (let t of n) if (jt(e, t) !== null) return !0;
3104
3111
  return !1;
3105
3112
  }
3106
3113
  //#endregion
3107
3114
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3108
- function Mt(e, t) {
3115
+ function Nt(e, t) {
3109
3116
  if (!e) return {};
3110
3117
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
3111
3118
  if (!n) return {};
@@ -3116,7 +3123,7 @@ function Mt(e, t) {
3116
3123
  } else r[e] = n[e];
3117
3124
  return r;
3118
3125
  }
3119
- function Nt(e) {
3126
+ function Pt(e) {
3120
3127
  if (!e || typeof e != "string") return;
3121
3128
  let t = e.indexOf(":");
3122
3129
  if (t !== -1 && t > 0) {
@@ -3124,14 +3131,14 @@ function Nt(e) {
3124
3131
  if (n !== "xmlns") return n;
3125
3132
  }
3126
3133
  }
3127
- var Pt = class {
3134
+ var Ft = class {
3128
3135
  constructor(e, t) {
3129
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = zt, this.parseTextData = Ft, this.resolveNameSpace = It, this.buildAttributesMap = Rt, this.isItStopNode = Ut, this.replaceEntitiesValue = Vt, this.readStopNodeData = Kt, this.saveTextToParentTag = Ht, this.addChild = Bt, this.ignoreAttributesFn = _t(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3130
- let n = { ...we };
3136
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Bt, this.parseTextData = It, this.resolveNameSpace = Lt, this.buildAttributesMap = zt, this.isItStopNode = Wt, this.replaceEntitiesValue = Ht, this.readStopNodeData = Jt, this.saveTextToParentTag = Ut, this.addChild = Vt, this.ignoreAttributesFn = vt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3137
+ let n = { ...Te };
3131
3138
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
3132
- ...Te,
3133
- ...xe
3134
- }), this.entityDecoder = new Me({
3139
+ ...Ee,
3140
+ ...Se
3141
+ }), this.entityDecoder = new Ne({
3135
3142
  namedEntities: {
3136
3143
  ...n,
3137
3144
  ...t
@@ -3142,8 +3149,8 @@ var Pt = class {
3142
3149
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
3143
3150
  applyLimitsTo: this.options.processEntities.appliesTo
3144
3151
  },
3145
- onInputEntity: (e, t) => jt(t, [P, F]) ? x.BLOCK : x.ALLOW
3146
- })), this.matcher = new N(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new vt();
3152
+ onInputEntity: (e, t) => Mt(t, [P, F]) ? x.BLOCK : x.ALLOW
3153
+ })), this.matcher = new N(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new yt();
3147
3154
  let r = this.options.stopNodes;
3148
3155
  if (r && r.length > 0) {
3149
3156
  for (let e = 0; e < r.length; e++) {
@@ -3154,15 +3161,15 @@ var Pt = class {
3154
3161
  }
3155
3162
  }
3156
3163
  };
3157
- function Ft(e, t, n, r, i, a, o) {
3164
+ function It(e, t, n, r, i, a, o) {
3158
3165
  let s = this.options;
3159
3166
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
3160
3167
  o || (e = this.replaceEntitiesValue(e, t, n));
3161
3168
  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 ? qt(e, s.parseTagValue, s.numberParseOptions) : e;
3169
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Yt(e, s.parseTagValue, s.numberParseOptions) : e;
3163
3170
  }
3164
3171
  }
3165
- function It(e) {
3172
+ function Lt(e) {
3166
3173
  if (this.options.removeNSPrefix) {
3167
3174
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
3168
3175
  if (t[0] === "xmlns") return "";
@@ -3170,11 +3177,11 @@ function It(e) {
3170
3177
  }
3171
3178
  return e;
3172
3179
  }
3173
- var Lt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3174
- function Rt(e, t, n, r = !1) {
3180
+ var Rt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3181
+ function zt(e, t, n, r = !1) {
3175
3182
  let i = this.options;
3176
3183
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
3177
- let r = u(e, Lt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3184
+ let r = d(e, Rt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3178
3185
  for (let e = 0; e < a; e++) {
3179
3186
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
3180
3187
  if (t.length && a !== void 0) {
@@ -3183,14 +3190,14 @@ function Rt(e, t, n, r = !1) {
3183
3190
  }
3184
3191
  }
3185
3192
  c && typeof t == "object" && t.updateCurrent && t.updateCurrent(l);
3186
- let d = i.jPath ? t.toString() : this.readonlyMatcher, f = !1;
3193
+ let u = i.jPath ? t.toString() : this.readonlyMatcher, f = !1;
3187
3194
  for (let e = 0; e < a; e++) {
3188
3195
  let t = this.resolveNameSpace(r[e][1]);
3189
- if (this.ignoreAttributesFn(t, d)) continue;
3196
+ if (this.ignoreAttributesFn(t, u)) continue;
3190
3197
  let n = i.attributeNamePrefix + t;
3191
- if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Jt(n, i), r[e][4] !== void 0) {
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] = qt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3198
+ if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zt(n, i), r[e][4] !== void 0) {
3199
+ let r = s[e], a = i.attributeValueProcessor(t, r, u);
3200
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Yt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
3194
3201
  } else i.allowBooleanAttributes && (o[n] = !0, f = !0);
3195
3202
  }
3196
3203
  if (!f) return;
@@ -3201,11 +3208,11 @@ function Rt(e, t, n, r = !1) {
3201
3208
  return o;
3202
3209
  }
3203
3210
  }
3204
- var zt = function(e) {
3211
+ var Bt = function(e) {
3205
3212
  e = e.replace(/\r\n?/g, "\n");
3206
3213
  let t = new E("!xml"), n = t, r = "";
3207
3214
  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;
3215
+ let i = this.options, a = new Qe(i.processEntities), o = e.length;
3209
3216
  for (let s = 0; s < o; s++) if (e[s] === "<") {
3210
3217
  let c = e.charCodeAt(s + 1);
3211
3218
  if (c === 47) {
@@ -3214,12 +3221,12 @@ var zt = function(e) {
3214
3221
  let e = a.indexOf(":");
3215
3222
  e !== -1 && (a = a.substr(e + 1));
3216
3223
  }
3217
- a = B(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3224
+ a = Xt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3218
3225
  let o = this.matcher.getCurrentTag();
3219
3226
  if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
3220
3227
  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
3228
  } else if (c === 63) {
3222
- let t = z(e, s, !1, "?>");
3229
+ let t = qt(e, s, !1, "?>");
3223
3230
  if (!t) throw Error("Pi Tag is not closed.");
3224
3231
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3225
3232
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -3248,20 +3255,20 @@ var zt = function(e) {
3248
3255
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3249
3256
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
3250
3257
  } else {
3251
- let a = z(e, s, i.removeNSPrefix);
3258
+ let a = qt(e, s, i.removeNSPrefix);
3252
3259
  if (!a) {
3253
3260
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
3254
3261
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
3255
3262
  }
3256
3263
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
3257
- if ({tagName: c, tagExp: u} = B(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}`);
3264
+ if ({tagName: c, tagExp: u} = Xt(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
3265
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
3259
3266
  let p = n;
3260
3267
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
3261
3268
  let m = !1;
3262
3269
  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
3270
  let h = null, g;
3264
- g = Nt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Mt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3271
+ g = Pt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Nt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3265
3272
  let _ = s;
3266
3273
  if (this.isCurrentNodeStopNode) {
3267
3274
  let t = "";
@@ -3276,7 +3283,7 @@ var zt = function(e) {
3276
3283
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
3277
3284
  } else {
3278
3285
  if (m) {
3279
- ({tagName: c, tagExp: u} = B(i.transformTagName, c, u, i));
3286
+ ({tagName: c, tagExp: u} = Xt(i.transformTagName, c, u, i));
3280
3287
  let e = new E(c);
3281
3288
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3282
3289
  } else if (i.unpairedTagsSet.has(c)) {
@@ -3294,12 +3301,12 @@ var zt = function(e) {
3294
3301
  } else r += e[s];
3295
3302
  return t.child;
3296
3303
  };
3297
- function Bt(e, t, n, r) {
3304
+ function Vt(e, t, n, r) {
3298
3305
  this.options.captureMetaData || (r = void 0);
3299
3306
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
3300
3307
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
3301
3308
  }
3302
- function Vt(e, t, n) {
3309
+ function Ht(e, t, n) {
3303
3310
  let r = this.options.processEntities;
3304
3311
  if (!r || !r.enabled) return e;
3305
3312
  if (r.allowedTags) {
@@ -3312,13 +3319,13 @@ function Vt(e, t, n) {
3312
3319
  }
3313
3320
  return this.entityDecoder.decode(e);
3314
3321
  }
3315
- function Ht(e, t, n, r) {
3322
+ function Ut(e, t, n, r) {
3316
3323
  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
3324
  }
3318
- function Ut() {
3325
+ function Wt() {
3319
3326
  return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
3320
3327
  }
3321
- function Wt(e, t, n = ">") {
3328
+ function Gt(e, t, n = ">") {
3322
3329
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
3323
3330
  for (let n = t; n < i; n++) {
3324
3331
  let t = e.charCodeAt(n);
@@ -3341,13 +3348,13 @@ function R(e, t, n, r) {
3341
3348
  if (i === -1) throw Error(r);
3342
3349
  return i + t.length - 1;
3343
3350
  }
3344
- function Gt(e, t, n, r) {
3351
+ function Kt(e, t, n, r) {
3345
3352
  let i = e.indexOf(t, n);
3346
3353
  if (i === -1) throw Error(r);
3347
3354
  return i;
3348
3355
  }
3349
- function z(e, t, n, r = ">") {
3350
- let i = Wt(e, t + 1, r);
3356
+ function qt(e, t, n, r = ">") {
3357
+ let i = Gt(e, t + 1, r);
3351
3358
  if (!i) return;
3352
3359
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
3353
3360
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -3364,12 +3371,12 @@ function z(e, t, n, r = ">") {
3364
3371
  rawTagName: u
3365
3372
  };
3366
3373
  }
3367
- function Kt(e, t, n) {
3374
+ function Jt(e, t, n) {
3368
3375
  let r = n, i = 1, a = e.length;
3369
3376
  for (; n < a; n++) if (e[n] === "<") {
3370
3377
  let a = e.charCodeAt(n + 1);
3371
3378
  if (a === 47) {
3372
- let a = Gt(e, ">", n, `${t} is not closed`);
3379
+ let a = Kt(e, ">", n, `${t} is not closed`);
3373
3380
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
3374
3381
  tagContent: e.substring(r, n),
3375
3382
  i: a
@@ -3379,36 +3386,36 @@ function Kt(e, t, n) {
3379
3386
  else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = R(e, "-->", n + 3, "StopNode is not closed.");
3380
3387
  else if (a === 33 && e.charCodeAt(n + 2) === 91) n = R(e, "]]>", n, "StopNode is not closed.") - 2;
3381
3388
  else {
3382
- let r = z(e, n, !1);
3389
+ let r = qt(e, n, !1);
3383
3390
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
3384
3391
  }
3385
3392
  }
3386
3393
  }
3387
- function qt(e, t, n) {
3394
+ function Yt(e, t, n) {
3388
3395
  if (t && typeof e == "string") {
3389
3396
  let t = e.trim();
3390
- return t === "true" ? !0 : t === "false" ? !1 : dt(e, n);
3391
- } else if (f(e)) return e;
3397
+ return t === "true" ? !0 : t === "false" ? !1 : ft(e, n);
3398
+ } else if (p(e)) return e;
3392
3399
  else return "";
3393
3400
  }
3394
- function B(e, t, n, r) {
3401
+ function Xt(e, t, n, r) {
3395
3402
  if (e) {
3396
3403
  let r = e(t);
3397
3404
  n === t && (n = r), t = r;
3398
3405
  }
3399
- return t = Jt(t, r), {
3406
+ return t = Zt(t, r), {
3400
3407
  tagName: t,
3401
3408
  tagExp: n
3402
3409
  };
3403
3410
  }
3404
- function Jt(e, t) {
3405
- if (m.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3406
- return p.includes(e) ? t.onDangerousProperty(e) : e;
3411
+ function Zt(e, t) {
3412
+ if (h.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3413
+ return m.includes(e) ? t.onDangerousProperty(e) : e;
3407
3414
  }
3408
3415
  //#endregion
3409
3416
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3410
- var V = E.getMetaDataSymbol();
3411
- function Yt(e, t) {
3417
+ var Qt = E.getMetaDataSymbol();
3418
+ function $t(e, t) {
3412
3419
  if (!e || typeof e != "object") return {};
3413
3420
  if (!t) return e;
3414
3421
  let n = {};
@@ -3418,22 +3425,22 @@ function Yt(e, t) {
3418
3425
  } else n[r] = e[r];
3419
3426
  return n;
3420
3427
  }
3421
- function Xt(e, t, n, r) {
3422
- return Zt(e, t, n, r);
3428
+ function en(e, t, n, r) {
3429
+ return tn(e, t, n, r);
3423
3430
  }
3424
- function Zt(e, t, n, r) {
3431
+ function tn(e, t, n, r) {
3425
3432
  let i, a = {};
3426
3433
  for (let o = 0; o < e.length; o++) {
3427
- let s = e[o], c = Qt(s);
3434
+ let s = e[o], c = nn(s);
3428
3435
  if (c !== void 0 && c !== t.textNodeName) {
3429
- let e = Yt(s[":@"] || {}, t.attributeNamePrefix);
3436
+ let e = $t(s[":@"] || {}, t.attributeNamePrefix);
3430
3437
  n.push(c, e);
3431
3438
  }
3432
3439
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
3433
3440
  else if (c === void 0) continue;
3434
3441
  else if (s[c]) {
3435
- let e = Zt(s[c], t, n, r), i = en(e, t);
3436
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? $t(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[V] !== void 0 && typeof e == "object" && e && (e[V] = s[V]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3442
+ let e = tn(s[c], t, n, r), i = an(e, t);
3443
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? rn(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);
3437
3444
  else {
3438
3445
  let n = t.jPath ? r.toString() : r;
3439
3446
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -3443,14 +3450,14 @@ function Zt(e, t, n, r) {
3443
3450
  }
3444
3451
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
3445
3452
  }
3446
- function Qt(e) {
3453
+ function nn(e) {
3447
3454
  let t = Object.keys(e);
3448
3455
  for (let e = 0; e < t.length; e++) {
3449
3456
  let n = t[e];
3450
3457
  if (n !== ":@") return n;
3451
3458
  }
3452
3459
  }
3453
- function $t(e, t, n, r) {
3460
+ function rn(e, t, n, r) {
3454
3461
  if (t) {
3455
3462
  let i = Object.keys(t), a = i.length;
3456
3463
  for (let o = 0; o < a; o++) {
@@ -3459,26 +3466,26 @@ function $t(e, t, n, r) {
3459
3466
  }
3460
3467
  }
3461
3468
  }
3462
- function en(e, t) {
3469
+ function an(e, t) {
3463
3470
  let { textNodeName: n } = t, r = Object.keys(e).length;
3464
3471
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
3465
3472
  }
3466
3473
  //#endregion
3467
3474
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3468
- var tn = class {
3475
+ var on = class {
3469
3476
  constructor(e) {
3470
- this.externalEntities = {}, this.options = Le(e);
3477
+ this.externalEntities = {}, this.options = Re(e);
3471
3478
  }
3472
3479
  parse(e, t) {
3473
3480
  if (typeof e != "string" && e.toString) e = e.toString();
3474
3481
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
3475
3482
  if (t) {
3476
3483
  t === !0 && (t = {});
3477
- let n = g(e, t);
3484
+ let n = _(e, t);
3478
3485
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3479
3486
  }
3480
- let n = new Pt(this.options, this.externalEntities), r = n.parseXml(e);
3481
- return this.options.preserveOrder || r === void 0 ? r : Xt(r, this.options, n.matcher, n.readonlyMatcher);
3487
+ let n = new Ft(this.options, this.externalEntities), r = n.parseXml(e);
3488
+ return this.options.preserveOrder || r === void 0 ? r : en(r, this.options, n.matcher, n.readonlyMatcher);
3482
3489
  }
3483
3490
  addEntity(e, t) {
3484
3491
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -3492,22 +3499,22 @@ var tn = class {
3492
3499
  };
3493
3500
  //#endregion
3494
3501
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
3495
- function H(e) {
3502
+ function sn(e) {
3496
3503
  return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
3497
3504
  }
3498
- function nn(e) {
3505
+ function cn(e) {
3499
3506
  return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
3500
3507
  }
3501
- function U(e) {
3508
+ function z(e) {
3502
3509
  return String(e).replace(/"/g, "&quot;").replace(/'/g, "&apos;");
3503
3510
  }
3504
3511
  //#endregion
3505
3512
  //#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) {
3513
+ var ln = "\n";
3514
+ function un(e, t) {
3508
3515
  if (!Array.isArray(e) || e.length === 0) return "1.0";
3509
3516
  let n = e[0];
3510
- if (fn(n) === "?xml") {
3517
+ if (_n(n) === "?xml") {
3511
3518
  let e = n[":@"];
3512
3519
  if (e) {
3513
3520
  let n = t.attributeNamePrefix + "version";
@@ -3516,121 +3523,121 @@ function an(e, t) {
3516
3523
  }
3517
3524
  return "1.0";
3518
3525
  }
3519
- function on(e, t, n, r, i) {
3526
+ function dn(e, t, n, r, i) {
3520
3527
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3521
3528
  isAttribute: t,
3522
3529
  matcher: r.readOnly()
3523
3530
  });
3524
3531
  }
3525
- function sn(e, t) {
3532
+ function fn(e, t) {
3526
3533
  let n = "";
3527
- t.format && (n = rn);
3534
+ t.format && (n = ln);
3528
3535
  let r = [];
3529
3536
  if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
3530
3537
  let n = t.stopNodes[e];
3531
3538
  typeof n == "string" ? r.push(new M(n)) : n instanceof M && r.push(n);
3532
3539
  }
3533
- let i = Ye("qName", { xmlVersion: an(e, t) }), a = new N();
3534
- return cn(e, t, n, a, r, i);
3540
+ let i = Ze("qName", { xmlVersion: un(e, t) }), a = new N();
3541
+ return pn(e, t, n, a, r, i);
3535
3542
  }
3536
- function cn(e, t, n, r, i, a) {
3543
+ function pn(e, t, n, r, i, a) {
3537
3544
  let o = "", s = !1;
3538
3545
  if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
3539
3546
  if (!Array.isArray(e)) {
3540
3547
  if (e != null) {
3541
3548
  let n = e.toString();
3542
- return n = hn(n, t), n;
3549
+ return n = B(n, t), n;
3543
3550
  }
3544
3551
  return "";
3545
3552
  }
3546
3553
  for (let c = 0; c < e.length; c++) {
3547
- let l = e[c], u = fn(l);
3554
+ let l = e[c], u = _n(l);
3548
3555
  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);
3556
+ let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : dn(u, !1, t, r, a), f = mn(l[":@"], t);
3550
3557
  r.push(d, f);
3551
- let p = mn(r, i);
3558
+ let p = yn(r, i);
3552
3559
  if (d === t.textNodeName) {
3553
3560
  let e = l[u];
3554
- p || (e = t.tagValueProcessor(d, e), e = hn(e, t)), s && (o += n), o += e, s = !1, r.pop();
3561
+ p || (e = t.tagValueProcessor(d, e), e = B(e, t)), s && (o += n), o += e, s = !1, r.pop();
3555
3562
  continue;
3556
3563
  } else if (d === t.cdataPropName) {
3557
3564
  s && (o += n);
3558
- let e = l[u][0][t.textNodeName], i = nn(e);
3565
+ let e = l[u][0][t.textNodeName], i = cn(e);
3559
3566
  o += `<![CDATA[${i}]]>`, s = !1, r.pop();
3560
3567
  continue;
3561
3568
  } else if (d === t.commentPropName) {
3562
- let e = l[u][0][t.textNodeName], i = H(e);
3569
+ let e = l[u][0][t.textNodeName], i = sn(e);
3563
3570
  o += n + `<!--${i}-->`, s = !0, r.pop();
3564
3571
  continue;
3565
3572
  } else if (d[0] === "?") {
3566
- let e = pn(l[":@"], t, p, r, a);
3573
+ let e = vn(l[":@"], t, p, r, a);
3567
3574
  o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
3568
3575
  continue;
3569
3576
  }
3570
3577
  let m = n;
3571
3578
  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();
3579
+ let h = n + `<${d}${vn(l[":@"], t, p, r, a)}`, g;
3580
+ g = p ? hn(l[u], t) : pn(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
3581
  }
3575
3582
  return o;
3576
3583
  }
3577
- function ln(e, t) {
3584
+ function mn(e, t) {
3578
3585
  if (!e || t.ignoreAttributes) return null;
3579
3586
  let n = {}, r = !1;
3580
3587
  for (let i in e) {
3581
3588
  if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
3582
3589
  let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
3583
- n[a] = U(e[i]), r = !0;
3590
+ n[a] = z(e[i]), r = !0;
3584
3591
  }
3585
3592
  return r ? n : null;
3586
3593
  }
3587
- function un(e, t) {
3594
+ function hn(e, t) {
3588
3595
  if (!Array.isArray(e)) return e == null ? "" : e.toString();
3589
3596
  let n = "";
3590
3597
  for (let r = 0; r < e.length; r++) {
3591
- let i = e[r], a = fn(i);
3598
+ let i = e[r], a = _n(i);
3592
3599
  if (a === t.textNodeName) n += i[a];
3593
3600
  else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
3594
3601
  else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
3595
3602
  else if (a && a[0] === "?") continue;
3596
3603
  else if (a) {
3597
- let e = dn(i[":@"], t), r = un(i[a], t);
3604
+ let e = gn(i[":@"], t), r = hn(i[a], t);
3598
3605
  !r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
3599
3606
  }
3600
3607
  }
3601
3608
  return n;
3602
3609
  }
3603
- function dn(e, t) {
3610
+ function gn(e, t) {
3604
3611
  let n = "";
3605
3612
  if (e && !t.ignoreAttributes) for (let r in e) {
3606
3613
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3607
3614
  let i = e[r];
3608
- i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${U(i)}"`;
3615
+ i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${z(i)}"`;
3609
3616
  }
3610
3617
  return n;
3611
3618
  }
3612
- function fn(e) {
3619
+ function _n(e) {
3613
3620
  let t = Object.keys(e);
3614
3621
  for (let n = 0; n < t.length; n++) {
3615
3622
  let r = t[n];
3616
3623
  if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
3617
3624
  }
3618
3625
  }
3619
- function pn(e, t, n, r, i) {
3626
+ function vn(e, t, n, r, i) {
3620
3627
  let a = "";
3621
3628
  if (e && !t.ignoreAttributes) for (let o in e) {
3622
3629
  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)}"`;
3630
+ let s = o.substr(t.attributeNamePrefix.length), c = n ? s : dn(s, !0, t, r, i), l;
3631
+ n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = B(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${z(l)}"`;
3625
3632
  }
3626
3633
  return a;
3627
3634
  }
3628
- function mn(e, t) {
3635
+ function yn(e, t) {
3629
3636
  if (!t || t.length === 0) return !1;
3630
3637
  for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
3631
3638
  return !1;
3632
3639
  }
3633
- function hn(e, t) {
3640
+ function B(e, t) {
3634
3641
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
3635
3642
  let r = t.entities[n];
3636
3643
  e = e.replace(r.regex, r.val);
@@ -3639,14 +3646,14 @@ function hn(e, t) {
3639
3646
  }
3640
3647
  //#endregion
3641
3648
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
3642
- function gn(e) {
3649
+ function bn(e) {
3643
3650
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
3644
3651
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
3645
3652
  } : () => !1;
3646
3653
  }
3647
3654
  //#endregion
3648
3655
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
3649
- var _n = {
3656
+ var xn = {
3650
3657
  attributeNamePrefix: "@_",
3651
3658
  attributesGroupName: !1,
3652
3659
  textNodeName: "#text",
@@ -3695,18 +3702,18 @@ var _n = {
3695
3702
  jPath: !0,
3696
3703
  sanitizeName: !1
3697
3704
  };
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++) {
3705
+ function V(e) {
3706
+ if (this.options = Object.assign({}, xn, 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
3707
  let t = this.options.stopNodes[e];
3701
3708
  typeof t == "string" ? this.stopNodeExpressions.push(new M(t)) : t instanceof M && this.stopNodeExpressions.push(t);
3702
3709
  }
3703
3710
  this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3704
3711
  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() {
3712
+ } : (this.ignoreAttributesFn = bn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Tn), this.processTextOrObjNode = Cn, this.options.format ? (this.indentate = wn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3706
3713
  return "";
3707
3714
  }, this.tagEndChar = ">", this.newLine = "");
3708
3715
  }
3709
- function vn(e, t) {
3716
+ function Sn(e, t) {
3710
3717
  let n = e["?xml"];
3711
3718
  if (n && typeof n == "object") {
3712
3719
  if (t.attributesGroupName && n[t.attributesGroupName]) {
@@ -3718,33 +3725,33 @@ function vn(e, t) {
3718
3725
  }
3719
3726
  return "1.0";
3720
3727
  }
3721
- function yn(e, t, n, r, i) {
3728
+ function H(e, t, n, r, i) {
3722
3729
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
3723
3730
  isAttribute: t,
3724
3731
  matcher: r.readOnly()
3725
3732
  });
3726
3733
  }
3727
- W.prototype.build = function(e) {
3728
- if (this.options.preserveOrder) return sn(e, this.options);
3734
+ V.prototype.build = function(e) {
3735
+ if (this.options.preserveOrder) return fn(e, this.options);
3729
3736
  {
3730
3737
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
3731
- let t = new N(), n = Ye("qName", { xmlVersion: vn(e, this.options) });
3738
+ let t = new N(), n = Ze("qName", { xmlVersion: Sn(e, this.options) });
3732
3739
  return this.j2x(e, 0, t, n).val;
3733
3740
  }
3734
- }, W.prototype.j2x = function(e, t, n, r) {
3741
+ }, V.prototype.j2x = function(e, t, n, r) {
3735
3742
  let i = "", a = "";
3736
3743
  if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
3737
3744
  let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
3738
3745
  for (let c in e) {
3739
3746
  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);
3747
+ 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 : H(c, !1, this.options, n, r);
3741
3748
  if (e[c] === void 0) this.isAttribute(c) && (a += "");
3742
3749
  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
3750
  else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
3744
3751
  else if (typeof e[c] != "object") {
3745
3752
  let u = this.isAttribute(c);
3746
3753
  if (u && !this.ignoreAttributesFn(u, o)) {
3747
- let t = yn(u, !0, this.options, n, r);
3754
+ let t = H(u, !0, this.options, n, r);
3748
3755
  i += this.buildAttrPairStr(t, "" + e[c], s);
3749
3756
  } else if (!u) if (c === this.options.textNodeName) {
3750
3757
  let t = this.options.tagValueProcessor(c, "" + e[c]);
@@ -3783,7 +3790,7 @@ W.prototype.build = function(e) {
3783
3790
  } else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
3784
3791
  let t = Object.keys(e[c]), a = t.length;
3785
3792
  for (let o = 0; o < a; o++) {
3786
- let a = yn(t[o], !0, this.options, n, r);
3793
+ let a = H(t[o], !0, this.options, n, r);
3787
3794
  i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
3788
3795
  }
3789
3796
  } else a += this.processTextOrObjNode(e[c], l, t, n, r);
@@ -3792,10 +3799,10 @@ W.prototype.build = function(e) {
3792
3799
  attrStr: i,
3793
3800
  val: a
3794
3801
  };
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) + "\"";
3802
+ }, V.prototype.buildAttrPairStr = function(e, t, n) {
3803
+ return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + z(t) + "\"";
3797
3804
  };
3798
- function bn(e, t, n, r, i) {
3805
+ function Cn(e, t, n, r, i) {
3799
3806
  let a = this.extractAttributes(e);
3800
3807
  if (r.push(t, a), this.checkStopNode(r)) {
3801
3808
  let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
@@ -3804,7 +3811,7 @@ function bn(e, t, n, r, i) {
3804
3811
  let o = this.j2x(e, n + 1, r, i);
3805
3812
  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
3813
  }
3807
- W.prototype.extractAttributes = function(e) {
3814
+ V.prototype.extractAttributes = function(e) {
3808
3815
  if (!e || typeof e != "object") return null;
3809
3816
  let t = {}, n = !1;
3810
3817
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3812,15 +3819,15 @@ W.prototype.extractAttributes = function(e) {
3812
3819
  for (let e in r) {
3813
3820
  if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
3814
3821
  let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
3815
- t[i] = U(r[e]), n = !0;
3822
+ t[i] = z(r[e]), n = !0;
3816
3823
  }
3817
3824
  } else for (let r in e) {
3818
3825
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
3819
3826
  let i = this.isAttribute(r);
3820
- i && (t[i] = U(e[r]), n = !0);
3827
+ i && (t[i] = z(e[r]), n = !0);
3821
3828
  }
3822
3829
  return n ? t : null;
3823
- }, W.prototype.buildRawContent = function(e) {
3830
+ }, V.prototype.buildRawContent = function(e) {
3824
3831
  if (typeof e == "string") return e;
3825
3832
  if (typeof e != "object" || !e) return String(e);
3826
3833
  if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
@@ -3841,7 +3848,7 @@ W.prototype.extractAttributes = function(e) {
3841
3848
  } else t += `<${n}>${r}</${n}>`;
3842
3849
  }
3843
3850
  return t;
3844
- }, W.prototype.buildAttributesForStopNode = function(e) {
3851
+ }, V.prototype.buildAttributesForStopNode = function(e) {
3845
3852
  if (!e || typeof e != "object") return "";
3846
3853
  let t = "";
3847
3854
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -3849,87 +3856,100 @@ W.prototype.extractAttributes = function(e) {
3849
3856
  for (let e in n) {
3850
3857
  if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
3851
3858
  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) + "\"";
3859
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + z(i) + "\"";
3853
3860
  }
3854
3861
  } else for (let n in e) {
3855
3862
  if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
3856
3863
  let r = this.isAttribute(n);
3857
3864
  if (r) {
3858
3865
  let i = e[n];
3859
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + U(i) + "\"";
3866
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + z(i) + "\"";
3860
3867
  }
3861
3868
  }
3862
3869
  return t;
3863
- }, W.prototype.buildObjectNode = function(e, t, n, r) {
3870
+ }, V.prototype.buildObjectNode = function(e, t, n, r) {
3864
3871
  if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
3865
3872
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3866
3873
  {
3867
3874
  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) + `<!--${H(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
3875
+ 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) + `<!--${sn(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
3869
3876
  }
3870
- }, W.prototype.closeTag = function(e) {
3877
+ }, V.prototype.closeTag = function(e) {
3871
3878
  let t = "";
3872
3879
  return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
3873
- }, W.prototype.checkStopNode = function(e) {
3880
+ }, V.prototype.checkStopNode = function(e) {
3874
3881
  if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
3875
3882
  for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
3876
3883
  return !1;
3877
- }, W.prototype.buildTextValNode = function(e, t, n, r, i) {
3884
+ }, V.prototype.buildTextValNode = function(e, t, n, r, i) {
3878
3885
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
3879
- let t = nn(e);
3886
+ let t = cn(e);
3880
3887
  return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
3881
3888
  } else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
3882
- let t = H(e);
3889
+ let t = sn(e);
3883
3890
  return this.indentate(r) + `<!--${t}-->` + this.newLine;
3884
3891
  } else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
3885
3892
  else {
3886
3893
  let i = this.options.tagValueProcessor(t, e);
3887
3894
  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
3895
  }
3889
- }, W.prototype.replaceEntitiesValue = function(e) {
3896
+ }, V.prototype.replaceEntitiesValue = function(e) {
3890
3897
  if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
3891
3898
  let n = this.options.entities[t];
3892
3899
  e = e.replace(n.regex, n.val);
3893
3900
  }
3894
3901
  return e;
3895
3902
  };
3896
- function xn(e) {
3903
+ function wn(e) {
3897
3904
  return this.options.indentBy.repeat(e);
3898
3905
  }
3899
- function Sn(e) {
3906
+ function Tn(e) {
3900
3907
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
3901
3908
  }
3902
3909
  //#endregion
3903
3910
  //#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({
3911
+ var En = V, U = e.object({
3905
3912
  created_at: e.string(),
3906
3913
  updated_at: e.string()
3907
- }), wn = e.object({
3914
+ }), Dn = e.enum([
3915
+ "local",
3916
+ "shared",
3917
+ "platform"
3918
+ ]), On = e.enum([
3919
+ "none",
3920
+ "secrets",
3921
+ "fields"
3922
+ ]), W = {
3923
+ scope: Dn.optional(),
3924
+ override: On.optional(),
3925
+ enforce: e.boolean().optional()
3926
+ }, kn = e.object({
3908
3927
  id: e.string(),
3909
3928
  version: e.string().optional()
3910
- }), Tn = e.object({
3929
+ }), An = e.object({
3911
3930
  name: e.string(),
3912
3931
  version: e.string()
3913
- }), En = e.object({
3932
+ }), jn = e.object({
3914
3933
  name: e.string(),
3915
3934
  value: e.string().optional()
3916
- }), Dn = e.object({
3935
+ }), Mn = e.object({
3917
3936
  name: e.string().max(255),
3918
3937
  code: e.string().max(1e5),
3919
- supported_triggers: e.array(wn).optional(),
3938
+ supported_triggers: e.array(kn).optional(),
3920
3939
  runtime: e.string().max(50).optional(),
3921
- dependencies: e.array(Tn).optional(),
3922
- secrets: e.array(En).optional(),
3940
+ dependencies: e.array(An).optional(),
3941
+ secrets: e.array(jn).optional(),
3923
3942
  is_system: e.boolean().optional(),
3943
+ ...W,
3924
3944
  inherit: e.boolean().optional()
3925
3945
  });
3926
- Dn.partial().extend({
3946
+ Mn.partial().extend({
3927
3947
  status: e.enum(["draft", "built"]).optional(),
3928
3948
  deployed_at: e.string().optional()
3929
3949
  });
3930
3950
  //#endregion
3931
3951
  //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3932
- var On = Dn.extend({
3952
+ var Nn = Mn.extend({
3933
3953
  id: e.string(),
3934
3954
  tenant_id: e.string(),
3935
3955
  status: e.enum(["draft", "built"]).default("built"),
@@ -3938,25 +3958,25 @@ var On = Dn.extend({
3938
3958
  name: e.string(),
3939
3959
  value: e.string().optional()
3940
3960
  })).optional()
3941
- }).extend(G.shape), kn = e.object({ name: e.string() });
3942
- On.extend({ secrets: e.array(kn).optional() });
3943
- var An = e.string(), jn = e.enum([
3961
+ }).extend(U.shape), Pn = e.object({ name: e.string() });
3962
+ Nn.extend({ secrets: e.array(Pn).optional() });
3963
+ var Fn = e.string(), In = e.enum([
3944
3964
  "unspecified",
3945
3965
  "pending",
3946
3966
  "final",
3947
3967
  "partial",
3948
3968
  "canceled",
3949
3969
  "suspended"
3950
- ]), Mn = e.object({
3970
+ ]), Ln = e.object({
3951
3971
  id: e.string(),
3952
3972
  msg: e.string(),
3953
3973
  url: e.string().optional()
3954
- }), Nn = e.object({
3974
+ }), Rn = e.object({
3955
3975
  action_name: e.string(),
3956
- error: Mn.nullable(),
3976
+ error: Ln.nullable(),
3957
3977
  started_at: e.string(),
3958
3978
  ended_at: e.string()
3959
- }), Pn = e.object({
3979
+ }), zn = e.object({
3960
3980
  level: e.enum([
3961
3981
  "log",
3962
3982
  "info",
@@ -3965,17 +3985,17 @@ var An = e.string(), jn = e.enum([
3965
3985
  "debug"
3966
3986
  ]),
3967
3987
  message: e.string()
3968
- }), Fn = e.array(e.object({
3988
+ }), Bn = e.array(e.object({
3969
3989
  action_name: e.string(),
3970
- lines: e.array(Pn)
3990
+ lines: e.array(zn)
3971
3991
  }));
3972
3992
  e.object({
3973
3993
  id: e.string(),
3974
3994
  tenant_id: e.string(),
3975
- trigger_id: An,
3976
- status: jn,
3977
- results: e.array(Nn),
3978
- logs: Fn.optional(),
3995
+ trigger_id: Fn,
3996
+ status: In,
3997
+ results: e.array(Rn),
3998
+ logs: Bn.optional(),
3979
3999
  created_at: e.string(),
3980
4000
  updated_at: e.string()
3981
4001
  }).omit({
@@ -3986,21 +4006,21 @@ e.object({
3986
4006
  action_id: e.string(),
3987
4007
  code: e.string().max(1e5),
3988
4008
  runtime: e.string().max(50).optional(),
3989
- dependencies: e.array(Tn).optional(),
3990
- secrets: e.array(En).optional(),
3991
- supported_triggers: e.array(wn).optional(),
4009
+ dependencies: e.array(An).optional(),
4010
+ secrets: e.array(jn).optional(),
4011
+ supported_triggers: e.array(kn).optional(),
3992
4012
  deployed: e.boolean().default(!0)
3993
4013
  }).extend({
3994
4014
  id: e.string(),
3995
4015
  tenant_id: e.string(),
3996
4016
  number: e.number().int()
3997
- }).extend(G.shape);
3998
- var In = e.enum([
4017
+ }).extend(U.shape);
4018
+ var Vn = e.enum([
3999
4019
  "user_action",
4000
4020
  "admin_action",
4001
4021
  "system",
4002
4022
  "api"
4003
- ]), Ln = e.object({
4023
+ ]), Hn = e.object({
4004
4024
  type: e.enum([
4005
4025
  "user",
4006
4026
  "admin",
@@ -4014,7 +4034,7 @@ var In = e.enum([
4014
4034
  org_name: e.string().optional(),
4015
4035
  scopes: e.array(e.string()).optional(),
4016
4036
  client_id: e.string().optional()
4017
- }), Rn = e.object({
4037
+ }), Un = e.object({
4018
4038
  type: e.string(),
4019
4039
  id: e.string(),
4020
4040
  before: e.record(e.string(), e.unknown()).optional(),
@@ -4023,7 +4043,18 @@ var In = e.enum([
4023
4043
  old: e.unknown(),
4024
4044
  new: e.unknown()
4025
4045
  })).optional()
4026
- }), zn = e.object({
4046
+ }), Wn = e.object({
4047
+ user: e.object({
4048
+ user_id: e.string(),
4049
+ name: e.string().optional(),
4050
+ email: e.string().optional()
4051
+ }).optional(),
4052
+ strategy: e.string(),
4053
+ credentials: e.object({
4054
+ jti: e.string().optional(),
4055
+ scopes: e.array(e.string()).optional()
4056
+ }).optional()
4057
+ }), Gn = e.object({
4027
4058
  method: e.string(),
4028
4059
  path: e.string(),
4029
4060
  query: e.record(e.string(), e.string()).optional(),
@@ -4032,18 +4063,19 @@ var In = e.enum([
4032
4063
  user_agent: e.string().optional(),
4033
4064
  correlation_id: e.string().optional(),
4034
4065
  redirect_uri: e.string().optional(),
4035
- authorization_url: e.string().optional()
4036
- }), Bn = e.object({
4066
+ authorization_url: e.string().optional(),
4067
+ auth: Wn.optional()
4068
+ }), Kn = e.object({
4037
4069
  status_code: e.number(),
4038
4070
  body: e.unknown().optional()
4039
- }), Vn = e.object({
4071
+ }), qn = e.object({
4040
4072
  country_code: e.string(),
4041
4073
  city_name: e.string(),
4042
4074
  latitude: e.string(),
4043
4075
  longitude: e.string(),
4044
4076
  time_zone: e.string(),
4045
4077
  continent_code: e.string()
4046
- }), Hn = e.object({
4078
+ }), Jn = e.object({
4047
4079
  name: e.string(),
4048
4080
  version: e.string(),
4049
4081
  env: e.record(e.string(), e.string()).optional()
@@ -4053,11 +4085,11 @@ e.object({
4053
4085
  event_type: e.string(),
4054
4086
  log_type: e.string(),
4055
4087
  description: e.string().optional(),
4056
- category: In,
4057
- actor: Ln,
4058
- target: Rn,
4059
- request: zn,
4060
- response: Bn.optional(),
4088
+ category: Vn,
4089
+ actor: Hn,
4090
+ target: Un,
4091
+ request: Gn,
4092
+ response: Kn.optional(),
4061
4093
  connection: e.string().optional(),
4062
4094
  connection_id: e.string().optional(),
4063
4095
  client_name: e.string().optional(),
@@ -4065,11 +4097,13 @@ e.object({
4065
4097
  strategy_type: e.string().optional(),
4066
4098
  audience: e.string().optional(),
4067
4099
  scope: e.string().optional(),
4068
- location: Vn.optional(),
4069
- auth0_client: Hn.optional(),
4100
+ location: qn.optional(),
4101
+ auth0_client: Jn.optional(),
4070
4102
  hostname: e.string(),
4071
4103
  is_mobile: e.boolean().optional(),
4072
4104
  execution_id: e.string().optional(),
4105
+ details: e.record(e.string(), e.unknown()).optional(),
4106
+ login_session_id: e.string().optional(),
4073
4107
  timestamp: e.string()
4074
4108
  }).extend({ id: e.string() }), e.enum([
4075
4109
  "AUTH0",
@@ -4082,14 +4116,14 @@ e.object({
4082
4116
  "SEND_REQUEST",
4083
4117
  "SEND_EMAIL"
4084
4118
  ]), e.enum(["VERIFY_EMAIL"]);
4085
- var Un = e.object({
4119
+ var Yn = e.object({
4086
4120
  require_mx_record: e.boolean().optional(),
4087
4121
  block_aliases: e.boolean().optional(),
4088
4122
  block_free_emails: e.boolean().optional(),
4089
4123
  block_disposable_emails: e.boolean().optional(),
4090
4124
  blocklist: e.array(e.string()).optional(),
4091
4125
  allowlist: e.array(e.string()).optional()
4092
- }), Wn = e.object({
4126
+ }), Xn = e.object({
4093
4127
  id: e.string(),
4094
4128
  alias: e.string().max(100).optional(),
4095
4129
  type: e.literal("AUTH0"),
@@ -4101,7 +4135,7 @@ var Un = e.object({
4101
4135
  user_id: e.string(),
4102
4136
  changes: e.record(e.string(), e.any())
4103
4137
  })
4104
- }), Gn = e.object({
4138
+ }), Zn = e.object({
4105
4139
  id: e.string(),
4106
4140
  alias: e.string().max(100).optional(),
4107
4141
  type: e.literal("EMAIL"),
@@ -4110,13 +4144,13 @@ var Un = e.object({
4110
4144
  mask_output: e.boolean().optional(),
4111
4145
  params: e.object({
4112
4146
  email: e.string(),
4113
- rules: Un.optional()
4147
+ rules: Yn.optional()
4114
4148
  })
4115
- }), Kn = e.enum([
4149
+ }), Qn = e.enum([
4116
4150
  "change-email",
4117
4151
  "account",
4118
4152
  "custom"
4119
- ]), qn = e.object({
4153
+ ]), $n = e.object({
4120
4154
  id: e.string(),
4121
4155
  alias: e.string().max(100).optional(),
4122
4156
  type: e.literal("REDIRECT"),
@@ -4124,18 +4158,18 @@ var Un = e.object({
4124
4158
  allow_failure: e.boolean().optional(),
4125
4159
  mask_output: e.boolean().optional(),
4126
4160
  params: e.object({
4127
- target: Kn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4161
+ target: Qn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4128
4162
  custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
4129
4163
  })
4130
- }), Jn = e.union([
4131
- Wn,
4132
- Gn,
4133
- qn
4164
+ }), er = e.union([
4165
+ Xn,
4166
+ Zn,
4167
+ $n
4134
4168
  ]);
4135
4169
  e.object({
4136
4170
  name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
4137
- actions: e.array(Jn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4138
- }).extend(G.shape).extend({ id: e.string().openapi({
4171
+ actions: e.array(er).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4172
+ }).extend(U.shape).extend({ id: e.string().openapi({
4139
4173
  description: "Unique identifier for the flow",
4140
4174
  example: "af_12tMpdJ3iek7svMyZkSh5M"
4141
4175
  }) }), e.object({
@@ -4151,7 +4185,7 @@ e.object({
4151
4185
  total: e.number().optional(),
4152
4186
  next: e.string().optional()
4153
4187
  });
4154
- var Yn = e.object({
4188
+ var tr = e.object({
4155
4189
  email: e.string().optional(),
4156
4190
  email_verified: e.boolean().optional(),
4157
4191
  name: e.string().optional(),
@@ -4160,7 +4194,7 @@ var Yn = e.object({
4160
4194
  phone_number: e.string().optional(),
4161
4195
  phone_verified: e.boolean().optional(),
4162
4196
  family_name: e.string().optional()
4163
- }).catchall(e.any()), Xn = e.object({
4197
+ }).catchall(e.any()), nr = e.object({
4164
4198
  connection: e.string(),
4165
4199
  user_id: e.string(),
4166
4200
  provider: e.string(),
@@ -4173,15 +4207,15 @@ var Yn = e.object({
4173
4207
  access_token: e.string().optional(),
4174
4208
  access_token_secret: e.string().optional(),
4175
4209
  refresh_token: e.string().optional(),
4176
- profileData: Yn.optional()
4177
- }), Zn = e.object({
4210
+ profileData: tr.optional()
4211
+ }), rr = e.object({
4178
4212
  formatted: e.string().optional(),
4179
4213
  street_address: e.string().optional(),
4180
4214
  locality: e.string().optional(),
4181
4215
  region: e.string().optional(),
4182
4216
  postal_code: e.string().optional(),
4183
4217
  country: e.string().optional()
4184
- }).optional(), Qn = e.object({
4218
+ }).optional(), ir = e.object({
4185
4219
  email: e.string().transform((e) => e.toLowerCase()).optional(),
4186
4220
  username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
4187
4221
  phone_number: e.string().optional(),
@@ -4204,9 +4238,9 @@ var Yn = e.object({
4204
4238
  gender: e.string().optional(),
4205
4239
  birthdate: e.string().optional(),
4206
4240
  zoneinfo: e.string().optional(),
4207
- address: Zn
4241
+ address: rr
4208
4242
  });
4209
- Qn.extend({
4243
+ ir.extend({
4210
4244
  email_verified: e.boolean().default(!1),
4211
4245
  verify_email: e.boolean().optional(),
4212
4246
  last_ip: e.string().optional(),
@@ -4221,30 +4255,30 @@ Qn.extend({
4221
4255
  hash: e.string(),
4222
4256
  algorithm: e.string()
4223
4257
  }).optional()
4224
- }).omit({ password: !0 }).extend(G.shape).extend({
4258
+ }).omit({ password: !0 }).extend(U.shape).extend({
4225
4259
  user_id: e.string(),
4226
4260
  provider: e.string(),
4227
4261
  is_social: e.boolean(),
4228
4262
  email: e.string().optional(),
4229
4263
  login_count: e.number().default(0),
4230
- identities: e.array(Xn).optional()
4231
- }).omit({ registration_completed_at: !0 }), Qn.extend({
4264
+ identities: e.array(nr).optional()
4265
+ }).omit({ registration_completed_at: !0 }), ir.extend({
4232
4266
  login_count: e.number(),
4233
4267
  multifactor: e.array(e.string()).optional(),
4234
4268
  last_ip: e.string().optional(),
4235
4269
  last_login: e.string().optional(),
4236
4270
  user_id: e.string()
4237
4271
  }).catchall(e.any());
4238
- var $n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", er = (e = 21) => {
4272
+ var ar = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", or = (e = 21) => {
4239
4273
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
4240
- for (; e--;) t += $n[n[e] & 63];
4274
+ for (; e--;) t += ar[n[e] & 63];
4241
4275
  return t;
4242
- }, tr = e.object({
4276
+ }, sr = e.object({
4243
4277
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
4244
4278
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
4245
4279
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
4246
4280
  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)." }),
4247
- client_secret: e.string().default(() => er()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4281
+ client_secret: e.string().default(() => or()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4248
4282
  app_type: e.enum([
4249
4283
  "native",
4250
4284
  "spa",
@@ -4362,8 +4396,8 @@ var $n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", er
4362
4396
  e.object({
4363
4397
  created_at: e.string(),
4364
4398
  updated_at: e.string()
4365
- }).extend(tr.shape).extend({ client_id: e.string() });
4366
- var nr = e.object({
4399
+ }).extend(sr.shape).extend({ client_id: e.string() });
4400
+ var cr = e.object({
4367
4401
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
4368
4402
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
4369
4403
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -4376,15 +4410,15 @@ var nr = e.object({
4376
4410
  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." }),
4377
4411
  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." }),
4378
4412
  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." })
4379
- }), rr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(nr.shape).extend({
4413
+ }), lr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(cr.shape).extend({
4380
4414
  created_at: e.string().optional(),
4381
4415
  updated_at: e.string().optional()
4382
4416
  });
4383
- e.array(rr);
4384
- var ir = e.enum(["iat", "rat"]), ar = e.object({
4417
+ e.array(lr);
4418
+ var ur = e.enum(["iat", "rat"]), dr = e.object({
4385
4419
  id: e.string(),
4386
4420
  token_hash: e.string(),
4387
- type: ir,
4421
+ type: ur,
4388
4422
  client_id: e.string().optional(),
4389
4423
  sub: e.string().optional(),
4390
4424
  constraints: e.record(e.string(), e.unknown()).optional(),
@@ -4395,23 +4429,23 @@ e.object({
4395
4429
  created_at: e.string(),
4396
4430
  used_at: e.string().optional(),
4397
4431
  revoked_at: e.string().optional()
4398
- }).extend(ar.shape);
4399
- var K = e.object({
4432
+ }).extend(dr.shape);
4433
+ var G = e.object({
4400
4434
  x: e.number(),
4401
4435
  y: e.number()
4402
- }), or = /* @__PURE__ */ function(e) {
4436
+ }), fr = /* @__PURE__ */ function(e) {
4403
4437
  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;
4404
- }({}), sr = /* @__PURE__ */ function(e) {
4438
+ }({}), pr = /* @__PURE__ */ function(e) {
4405
4439
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
4406
- }({}), q = e.object({
4440
+ }({}), K = e.object({
4407
4441
  id: e.string(),
4408
- category: e.nativeEnum(sr),
4409
- type: e.nativeEnum(or)
4410
- }), cr = q.extend({
4442
+ category: e.nativeEnum(pr),
4443
+ type: e.nativeEnum(fr)
4444
+ }), mr = K.extend({
4411
4445
  category: e.literal("BLOCK"),
4412
4446
  type: e.literal("RICH_TEXT"),
4413
4447
  config: e.object({ content: e.string() }).passthrough()
4414
- }), lr = q.extend({
4448
+ }), hr = K.extend({
4415
4449
  category: e.literal("BLOCK"),
4416
4450
  type: e.union([
4417
4451
  e.literal("NEXT_BUTTON"),
@@ -4419,13 +4453,13 @@ var K = e.object({
4419
4453
  e.literal("SUBMIT_BUTTON")
4420
4454
  ]),
4421
4455
  config: e.object({ text: e.string() }).passthrough()
4422
- }), ur = q.extend({
4456
+ }), gr = K.extend({
4423
4457
  category: e.literal("FIELD"),
4424
4458
  type: e.literal("LEGAL"),
4425
4459
  required: e.boolean().optional(),
4426
4460
  sensitive: e.boolean().optional(),
4427
4461
  config: e.object({ text: e.string() }).passthrough()
4428
- }), dr = q.extend({
4462
+ }), _r = K.extend({
4429
4463
  category: e.literal("FIELD"),
4430
4464
  type: e.union([
4431
4465
  e.literal("TEXT"),
@@ -4445,38 +4479,38 @@ var K = e.object({
4445
4479
  label: e.string().optional(),
4446
4480
  placeholder: e.string().optional()
4447
4481
  }).passthrough()
4448
- }), fr = e.object({
4482
+ }), vr = e.object({
4449
4483
  id: e.string(),
4450
4484
  category: e.string(),
4451
4485
  type: e.string()
4452
- }).passthrough(), pr = e.union([
4453
- cr,
4454
- lr,
4455
- ur,
4456
- dr,
4457
- fr
4458
- ]), mr = e.object({
4486
+ }).passthrough(), yr = e.union([
4487
+ mr,
4488
+ hr,
4489
+ gr,
4490
+ _r,
4491
+ vr
4492
+ ]), br = e.object({
4459
4493
  id: e.string(),
4460
4494
  type: e.literal("STEP"),
4461
- coordinates: K,
4495
+ coordinates: G,
4462
4496
  alias: e.string().optional(),
4463
4497
  config: e.object({
4464
- components: e.array(pr),
4498
+ components: e.array(yr),
4465
4499
  next_node: e.string()
4466
4500
  }).passthrough()
4467
- }), hr = e.object({
4501
+ }), xr = e.object({
4468
4502
  id: e.string(),
4469
4503
  type: e.literal("FLOW"),
4470
- coordinates: K,
4504
+ coordinates: G,
4471
4505
  alias: e.string().optional(),
4472
4506
  config: e.object({
4473
4507
  flow_id: e.string(),
4474
4508
  next_node: e.string()
4475
4509
  })
4476
- }), gr = e.object({
4510
+ }), Sr = e.object({
4477
4511
  id: e.string(),
4478
4512
  type: e.literal("ACTION"),
4479
- coordinates: K,
4513
+ coordinates: G,
4480
4514
  alias: e.string().optional(),
4481
4515
  config: e.object({
4482
4516
  action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
@@ -4488,29 +4522,29 @@ var K = e.object({
4488
4522
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
4489
4523
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
4490
4524
  }).passthrough()
4491
- }), _r = e.object({
4525
+ }), Cr = e.object({
4492
4526
  id: e.string(),
4493
4527
  type: e.string(),
4494
- coordinates: K
4495
- }).passthrough(), vr = e.union([
4496
- mr,
4497
- hr,
4498
- gr,
4499
- _r
4500
- ]), yr = e.object({
4528
+ coordinates: G
4529
+ }).passthrough(), wr = e.union([
4530
+ br,
4531
+ xr,
4532
+ Sr,
4533
+ Cr
4534
+ ]), Tr = e.object({
4501
4535
  next_node: e.string(),
4502
- coordinates: K
4503
- }).passthrough(), br = e.object({
4536
+ coordinates: G
4537
+ }).passthrough(), Er = e.object({
4504
4538
  resume_flow: e.boolean().optional(),
4505
- coordinates: K
4539
+ coordinates: G
4506
4540
  }).passthrough();
4507
4541
  e.object({
4508
4542
  id: e.string(),
4509
4543
  name: e.string(),
4510
4544
  languages: e.object({ primary: e.string() }).passthrough(),
4511
- nodes: e.array(vr),
4512
- start: yr,
4513
- ending: br,
4545
+ nodes: e.array(wr),
4546
+ start: Tr,
4547
+ ending: Er,
4514
4548
  created_at: e.string(),
4515
4549
  updated_at: e.string(),
4516
4550
  links: e.object({
@@ -4522,24 +4556,24 @@ e.object({
4522
4556
  created_at: !0,
4523
4557
  updated_at: !0
4524
4558
  });
4525
- var xr = /* @__PURE__ */ function(e) {
4559
+ var Dr = /* @__PURE__ */ function(e) {
4526
4560
  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;
4527
- }({}), Sr = /* @__PURE__ */ function(e) {
4561
+ }({}), Or = /* @__PURE__ */ function(e) {
4528
4562
  return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4529
- }({}), Cr = /* @__PURE__ */ function(e) {
4563
+ }({}), kr = /* @__PURE__ */ function(e) {
4530
4564
  return e.S256 = "S256", e.Plain = "plain", e;
4531
- }({}), wr = e.union([e.null(), e.object({
4565
+ }({}), Ar = e.union([e.null(), e.object({
4532
4566
  essential: e.boolean().optional(),
4533
4567
  value: e.unknown().optional(),
4534
4568
  values: e.array(e.unknown()).optional()
4535
- })]).nullable(), Tr = e.object({
4536
- userinfo: e.record(e.string(), wr).optional(),
4537
- id_token: e.record(e.string(), wr).optional()
4538
- }), Er = e.object({
4569
+ })]).nullable(), jr = e.object({
4570
+ userinfo: e.record(e.string(), Ar).optional(),
4571
+ id_token: e.record(e.string(), Ar).optional()
4572
+ }), Mr = e.object({
4539
4573
  client_id: e.string(),
4540
4574
  act_as: e.string().optional(),
4541
- response_type: e.nativeEnum(xr).optional(),
4542
- response_mode: e.nativeEnum(Sr).optional(),
4575
+ response_type: e.nativeEnum(Dr).optional(),
4576
+ response_mode: e.nativeEnum(Or).optional(),
4543
4577
  redirect_uri: e.string().optional(),
4544
4578
  audience: e.string().optional(),
4545
4579
  organization: e.string().optional(),
@@ -4547,16 +4581,17 @@ var xr = /* @__PURE__ */ function(e) {
4547
4581
  nonce: e.string().optional(),
4548
4582
  scope: e.string().optional(),
4549
4583
  prompt: e.string().optional(),
4550
- code_challenge_method: e.nativeEnum(Cr).optional(),
4584
+ code_challenge_method: e.nativeEnum(kr).optional(),
4551
4585
  code_challenge: e.string().optional(),
4552
4586
  username: e.string().optional(),
4553
4587
  ui_locales: e.string().optional(),
4554
4588
  max_age: e.number().optional(),
4555
4589
  acr_values: e.string().optional(),
4556
- claims: Tr.optional(),
4590
+ claims: jr.optional(),
4557
4591
  vendor_id: e.string().optional()
4558
4592
  });
4559
4593
  e.object({
4594
+ ...W,
4560
4595
  colors: e.object({
4561
4596
  primary: e.string(),
4562
4597
  page_background: e.union([e.string(), e.object({
@@ -4576,7 +4611,7 @@ e.object({
4576
4611
  "auto"
4577
4612
  ]).optional()
4578
4613
  });
4579
- var Dr = e.enum([
4614
+ var Nr = e.enum([
4580
4615
  "password_reset",
4581
4616
  "email_verification",
4582
4617
  "otp",
@@ -4591,7 +4626,7 @@ e.object({
4591
4626
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
4592
4627
  login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
4593
4628
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
4594
- code_type: Dr,
4629
+ code_type: Nr,
4595
4630
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
4596
4631
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
4597
4632
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -4603,7 +4638,7 @@ e.object({
4603
4638
  used_at: e.string().optional(),
4604
4639
  user_id: e.string().optional()
4605
4640
  }).extend({ created_at: e.string() });
4606
- var Or = e.object({
4641
+ var Pr = e.object({
4607
4642
  kid: e.string().optional(),
4608
4643
  team_id: e.string().optional(),
4609
4644
  realms: e.string().optional(),
@@ -4723,37 +4758,38 @@ var Or = e.object({
4723
4758
  "never_on_login"
4724
4759
  ]).optional()
4725
4760
  });
4726
- function kr(e) {
4761
+ function Fr(e) {
4727
4762
  if (e !== null) {
4728
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(kr);
4763
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(Fr);
4729
4764
  if (e && typeof e == "object") {
4730
4765
  let t = {};
4731
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = kr(r));
4766
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Fr(r));
4732
4767
  return t;
4733
4768
  }
4734
4769
  return e;
4735
4770
  }
4736
4771
  }
4737
- var Ar = e.object({
4772
+ var Ir = e.object({
4738
4773
  id: e.string().optional(),
4739
4774
  name: e.string(),
4740
4775
  display_name: e.string().optional(),
4741
4776
  strategy: e.string(),
4742
- options: e.preprocess((e) => e === null ? {} : kr(e), Or).default({}),
4777
+ options: e.preprocess((e) => e === null ? {} : Fr(e), Pr).default({}),
4743
4778
  enabled_clients: e.array(e.string()).default([]).optional(),
4744
- response_type: e.nativeEnum(xr).optional(),
4745
- response_mode: e.nativeEnum(Sr).optional(),
4779
+ response_type: e.nativeEnum(Dr).optional(),
4780
+ response_mode: e.nativeEnum(Or).optional(),
4746
4781
  is_domain_connection: e.boolean().optional(),
4747
4782
  show_as_button: e.boolean().optional(),
4748
4783
  metadata: e.record(e.string(), e.any()).optional(),
4749
- is_system: e.boolean().optional()
4784
+ is_system: e.boolean().optional(),
4785
+ ...W
4750
4786
  });
4751
4787
  e.object({
4752
4788
  id: e.string(),
4753
4789
  created_at: e.string().transform((e) => e === null ? "" : e),
4754
4790
  updated_at: e.string().transform((e) => e === null ? "" : e)
4755
- }).extend(Ar.shape);
4756
- var jr = e.object({
4791
+ }).extend(Ir.shape);
4792
+ var Lr = e.object({
4757
4793
  domain: e.string(),
4758
4794
  custom_domain_id: e.string().optional(),
4759
4795
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -4767,7 +4803,7 @@ var jr = e.object({
4767
4803
  "null"
4768
4804
  ]).optional(),
4769
4805
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
4770
- }), Mr = e.discriminatedUnion("name", [e.object({
4806
+ }), Rr = e.discriminatedUnion("name", [e.object({
4771
4807
  name: e.literal("txt"),
4772
4808
  record: e.string(),
4773
4809
  domain: e.string()
@@ -4775,7 +4811,7 @@ var jr = e.object({
4775
4811
  name: e.literal("http"),
4776
4812
  http_body: e.string(),
4777
4813
  http_url: e.string()
4778
- })]), Nr = jr.extend({
4814
+ })]), zr = Lr.extend({
4779
4815
  custom_domain_id: e.string(),
4780
4816
  primary: e.boolean(),
4781
4817
  status: e.enum([
@@ -4785,28 +4821,28 @@ var jr = e.object({
4785
4821
  "ready"
4786
4822
  ]),
4787
4823
  origin_domain_name: e.string().optional(),
4788
- verification: e.object({ methods: e.array(Mr) }).optional(),
4824
+ verification: e.object({ methods: e.array(Rr) }).optional(),
4789
4825
  tls_policy: e.string().optional()
4790
4826
  });
4791
- jr.pick({
4827
+ Lr.pick({
4792
4828
  tls_policy: !0,
4793
4829
  custom_client_ip_header: !0,
4794
4830
  domain_metadata: !0
4795
- }).strict(), Nr.extend({ tenant_id: e.string() }), e.object({
4831
+ }).strict(), zr.extend({ tenant_id: e.string() }), e.object({
4796
4832
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
4797
4833
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
4798
4834
  });
4799
- var Pr = e.object({
4835
+ var Br = e.object({
4800
4836
  id: e.string(),
4801
4837
  order: e.number().optional(),
4802
4838
  visible: e.boolean().optional().default(!0)
4803
- }), J = Pr.extend({ category: e.literal("BLOCK").optional() }), Fr = J.extend({
4839
+ }), q = Br.extend({ category: e.literal("BLOCK").optional() }), Vr = q.extend({
4804
4840
  type: e.literal("DIVIDER"),
4805
4841
  config: e.object({ text: e.string().optional() }).optional()
4806
- }), Ir = J.extend({
4842
+ }), Hr = q.extend({
4807
4843
  type: e.literal("HTML"),
4808
4844
  config: e.object({ content: e.string().optional() }).optional()
4809
- }), Lr = J.extend({
4845
+ }), Ur = q.extend({
4810
4846
  type: e.literal("IMAGE"),
4811
4847
  config: e.object({
4812
4848
  src: e.string().optional(),
@@ -4814,47 +4850,47 @@ var Pr = e.object({
4814
4850
  width: e.number().optional(),
4815
4851
  height: e.number().optional()
4816
4852
  }).optional()
4817
- }), Rr = J.extend({
4853
+ }), Wr = q.extend({
4818
4854
  type: e.literal("JUMP_BUTTON"),
4819
4855
  config: e.object({
4820
4856
  text: e.string().optional(),
4821
4857
  target_step: e.string().optional()
4822
4858
  })
4823
- }), zr = J.extend({
4859
+ }), Gr = q.extend({
4824
4860
  type: e.literal("RESEND_BUTTON"),
4825
4861
  config: e.object({
4826
4862
  text: e.string().optional(),
4827
4863
  resend_action: e.string().optional()
4828
4864
  })
4829
- }), Br = J.extend({
4865
+ }), Kr = q.extend({
4830
4866
  type: e.literal("NEXT_BUTTON"),
4831
4867
  config: e.object({
4832
4868
  text: e.string().optional(),
4833
4869
  variant: e.enum(["primary", "secondary"]).optional(),
4834
4870
  skip_validation: e.boolean().optional()
4835
4871
  })
4836
- }), Vr = J.extend({
4872
+ }), qr = q.extend({
4837
4873
  type: e.literal("PREVIOUS_BUTTON"),
4838
4874
  config: e.object({ text: e.string().optional() })
4839
- }), Hr = J.extend({
4875
+ }), Jr = q.extend({
4840
4876
  type: e.literal("RICH_TEXT"),
4841
4877
  config: e.object({ content: e.string().optional() }).optional()
4842
- }), Ur = Pr.extend({
4878
+ }), Yr = Br.extend({
4843
4879
  category: e.literal("WIDGET").optional(),
4844
4880
  label: e.string().min(1).optional(),
4845
4881
  hint: e.string().min(1).max(500).optional(),
4846
4882
  required: e.boolean().optional(),
4847
4883
  sensitive: e.boolean().optional()
4848
- }), Wr = Ur.extend({
4884
+ }), Xr = Yr.extend({
4849
4885
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
4850
4886
  config: e.object({ credential_type: e.string().optional() })
4851
- }), Gr = Ur.extend({
4887
+ }), Zr = Yr.extend({
4852
4888
  type: e.literal("GMAPS_ADDRESS"),
4853
4889
  config: e.object({ api_key: e.string().optional() })
4854
- }), Kr = Ur.extend({
4890
+ }), Qr = Yr.extend({
4855
4891
  type: e.literal("RECAPTCHA"),
4856
4892
  config: e.object({ site_key: e.string().optional() })
4857
- }), Y = Pr.extend({
4893
+ }), J = Br.extend({
4858
4894
  category: e.literal("FIELD").optional(),
4859
4895
  label: e.string().min(1).optional(),
4860
4896
  hint: e.string().min(1).max(500).optional(),
@@ -4870,10 +4906,10 @@ var Pr = e.object({
4870
4906
  })).optional(),
4871
4907
  required: e.boolean().optional(),
4872
4908
  sensitive: e.boolean().optional()
4873
- }), qr = Y.extend({
4909
+ }), $r = J.extend({
4874
4910
  type: e.literal("BOOLEAN"),
4875
4911
  config: e.object({ default_value: e.boolean().optional() }).optional()
4876
- }), Jr = Y.extend({
4912
+ }), ei = J.extend({
4877
4913
  type: e.literal("CARDS"),
4878
4914
  config: e.object({
4879
4915
  options: e.array(e.object({
@@ -4884,7 +4920,7 @@ var Pr = e.object({
4884
4920
  })).optional(),
4885
4921
  multi_select: e.boolean().optional()
4886
4922
  }).optional()
4887
- }), Yr = Y.extend({
4923
+ }), ti = J.extend({
4888
4924
  type: e.literal("CHOICE"),
4889
4925
  config: e.object({
4890
4926
  options: e.array(e.object({
@@ -4895,7 +4931,7 @@ var Pr = e.object({
4895
4931
  multiple: e.boolean().optional(),
4896
4932
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4897
4933
  }).optional()
4898
- }), Xr = Y.extend({
4934
+ }), ni = J.extend({
4899
4935
  type: e.literal("CODE"),
4900
4936
  config: e.object({
4901
4937
  length: e.number().int().positive().max(100).optional(),
@@ -4912,7 +4948,7 @@ var Pr = e.object({
4912
4948
  message: "default_value is longer than the configured length",
4913
4949
  path: ["default_value"]
4914
4950
  }).optional()
4915
- }), Zr = Y.extend({
4951
+ }), ri = J.extend({
4916
4952
  type: e.literal("CUSTOM"),
4917
4953
  config: e.object({
4918
4954
  component: e.string().optional(),
@@ -4920,7 +4956,7 @@ var Pr = e.object({
4920
4956
  schema: e.record(e.string(), e.any()).optional(),
4921
4957
  code: e.string().optional()
4922
4958
  })
4923
- }), Qr = Y.extend({
4959
+ }), ii = J.extend({
4924
4960
  type: e.literal("DATE"),
4925
4961
  config: e.object({
4926
4962
  format: e.string().optional(),
@@ -4928,7 +4964,7 @@ var Pr = e.object({
4928
4964
  max: e.string().optional(),
4929
4965
  default_value: e.string().optional()
4930
4966
  }).optional()
4931
- }), $r = Y.extend({
4967
+ }), ai = J.extend({
4932
4968
  type: e.literal("DROPDOWN"),
4933
4969
  config: e.object({
4934
4970
  options: e.array(e.object({
@@ -4940,7 +4976,7 @@ var Pr = e.object({
4940
4976
  multiple: e.boolean().optional(),
4941
4977
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4942
4978
  }).optional()
4943
- }), ei = Y.extend({
4979
+ }), oi = J.extend({
4944
4980
  type: e.literal("EMAIL"),
4945
4981
  config: e.object({
4946
4982
  placeholder: e.string().optional(),
@@ -4948,20 +4984,20 @@ var Pr = e.object({
4948
4984
  last_used: e.boolean().optional(),
4949
4985
  last_used_label: e.string().optional()
4950
4986
  }).optional()
4951
- }), ti = Y.extend({
4987
+ }), si = J.extend({
4952
4988
  type: e.literal("FILE"),
4953
4989
  config: e.object({
4954
4990
  accept: e.string().optional(),
4955
4991
  max_size: e.number().optional(),
4956
4992
  multiple: e.boolean().optional()
4957
4993
  }).optional()
4958
- }), ni = Y.extend({
4994
+ }), ci = J.extend({
4959
4995
  type: e.literal("LEGAL"),
4960
4996
  config: e.object({
4961
4997
  text: e.string(),
4962
4998
  html: e.boolean().optional()
4963
4999
  }).optional()
4964
- }), ri = Y.extend({
5000
+ }), li = J.extend({
4965
5001
  type: e.literal("NUMBER"),
4966
5002
  config: e.object({
4967
5003
  placeholder: e.string().optional(),
@@ -4970,7 +5006,7 @@ var Pr = e.object({
4970
5006
  step: e.number().optional(),
4971
5007
  default_value: e.string().optional()
4972
5008
  }).optional()
4973
- }), ii = Y.extend({
5009
+ }), ui = J.extend({
4974
5010
  type: e.literal("PASSWORD"),
4975
5011
  config: e.object({
4976
5012
  placeholder: e.string().optional(),
@@ -4979,13 +5015,13 @@ var Pr = e.object({
4979
5015
  forgot_password_link: e.string().optional(),
4980
5016
  default_value: e.string().optional()
4981
5017
  }).optional()
4982
- }), ai = Y.extend({
5018
+ }), di = J.extend({
4983
5019
  type: e.literal("PAYMENT"),
4984
5020
  config: e.object({
4985
5021
  provider: e.string().optional(),
4986
5022
  currency: e.string().optional()
4987
5023
  }).optional()
4988
- }), oi = Y.extend({
5024
+ }), fi = J.extend({
4989
5025
  type: e.literal("SOCIAL"),
4990
5026
  config: e.object({
4991
5027
  providers: e.array(e.string()).optional(),
@@ -5000,7 +5036,7 @@ var Pr = e.object({
5000
5036
  last_used_label: e.string().optional()
5001
5037
  })).optional()
5002
5038
  }).optional()
5003
- }), si = Y.extend({
5039
+ }), pi = J.extend({
5004
5040
  type: e.literal("TEL"),
5005
5041
  config: e.object({
5006
5042
  placeholder: e.string().optional(),
@@ -5008,7 +5044,7 @@ var Pr = e.object({
5008
5044
  default_value: e.string().optional(),
5009
5045
  allow_email: e.boolean().optional()
5010
5046
  }).optional()
5011
- }), ci = Y.extend({
5047
+ }), mi = J.extend({
5012
5048
  type: e.literal("TEXT"),
5013
5049
  config: e.object({
5014
5050
  placeholder: e.string().optional(),
@@ -5018,54 +5054,54 @@ var Pr = e.object({
5018
5054
  last_used: e.boolean().optional(),
5019
5055
  last_used_label: e.string().optional()
5020
5056
  }).optional()
5021
- }), li = Y.extend({
5057
+ }), hi = J.extend({
5022
5058
  type: e.literal("COUNTRY"),
5023
5059
  config: e.object({
5024
5060
  placeholder: e.string().optional(),
5025
5061
  default_value: e.string().optional()
5026
5062
  }).optional()
5027
- }), ui = Y.extend({
5063
+ }), gi = J.extend({
5028
5064
  type: e.literal("URL"),
5029
5065
  config: e.object({
5030
5066
  placeholder: e.string().optional(),
5031
5067
  default_value: e.string().optional()
5032
5068
  }).optional()
5033
- }), di = e.discriminatedUnion("type", [
5034
- Fr,
5035
- Ir,
5036
- Lr,
5037
- Rr,
5038
- zr,
5039
- Br,
5069
+ }), _i = e.discriminatedUnion("type", [
5040
5070
  Vr,
5041
- Hr
5042
- ]), fi = e.discriminatedUnion("type", [
5071
+ Hr,
5072
+ Ur,
5043
5073
  Wr,
5044
5074
  Gr,
5045
- Kr
5046
- ]), pi = e.discriminatedUnion("type", [
5075
+ Kr,
5047
5076
  qr,
5048
- Jr,
5049
- Yr,
5077
+ Jr
5078
+ ]), vi = e.discriminatedUnion("type", [
5050
5079
  Xr,
5051
- li,
5052
5080
  Zr,
5053
- Qr,
5081
+ Qr
5082
+ ]), yi = e.discriminatedUnion("type", [
5054
5083
  $r,
5055
5084
  ei,
5056
5085
  ti,
5057
5086
  ni,
5087
+ hi,
5058
5088
  ri,
5059
5089
  ii,
5060
5090
  ai,
5061
5091
  oi,
5062
5092
  si,
5063
5093
  ci,
5064
- ui
5065
- ]), mi = e.union([
5094
+ li,
5095
+ ui,
5066
5096
  di,
5067
5097
  fi,
5068
- pi
5098
+ pi,
5099
+ mi,
5100
+ gi
5101
+ ]), bi = e.union([
5102
+ _i,
5103
+ vi,
5104
+ yi
5069
5105
  ]);
5070
5106
  new Set([
5071
5107
  "BOOLEAN",
@@ -5092,22 +5128,22 @@ new Set([
5092
5128
  visible: e.boolean().optional().default(!0),
5093
5129
  customizations: e.record(e.string(), e.any()).optional()
5094
5130
  });
5095
- var X = e.object({
5131
+ var Y = e.object({
5096
5132
  x: e.number(),
5097
5133
  y: e.number()
5098
- }), hi = e.object({
5134
+ }), xi = e.object({
5099
5135
  id: e.string(),
5100
5136
  type: e.literal("FLOW"),
5101
- coordinates: X,
5137
+ coordinates: Y,
5102
5138
  alias: e.string().min(1).max(150).optional(),
5103
5139
  config: e.object({
5104
5140
  flow_id: e.string().max(30),
5105
5141
  next_node: e.string().optional()
5106
5142
  })
5107
- }), gi = e.object({
5143
+ }), Si = e.object({
5108
5144
  id: e.string(),
5109
5145
  type: e.literal("ROUTER"),
5110
- coordinates: X,
5146
+ coordinates: Y,
5111
5147
  alias: e.string().min(1).max(150),
5112
5148
  config: e.object({
5113
5149
  rules: e.array(e.object({
@@ -5118,20 +5154,20 @@ var X = e.object({
5118
5154
  })),
5119
5155
  fallback: e.string()
5120
5156
  })
5121
- }), _i = e.object({
5157
+ }), Ci = e.object({
5122
5158
  id: e.string(),
5123
5159
  type: e.literal("STEP"),
5124
- coordinates: X,
5160
+ coordinates: Y,
5125
5161
  alias: e.string().min(1).max(150).optional(),
5126
5162
  config: e.object({
5127
- components: e.array(mi),
5163
+ components: e.array(bi),
5128
5164
  next_node: e.string().optional()
5129
5165
  })
5130
- }), vi = e.discriminatedUnion("type", [
5131
- hi,
5132
- gi,
5133
- _i
5134
- ]), yi = e.object({
5166
+ }), wi = e.discriminatedUnion("type", [
5167
+ xi,
5168
+ Si,
5169
+ Ci
5170
+ ]), Ti = e.object({
5135
5171
  name: e.string().openapi({ description: "The name of the form" }),
5136
5172
  messages: e.object({
5137
5173
  errors: e.record(e.string(), e.any()).optional(),
@@ -5142,14 +5178,14 @@ var X = e.object({
5142
5178
  default: e.string().optional()
5143
5179
  }).optional(),
5144
5180
  translations: e.record(e.string(), e.any()).optional(),
5145
- nodes: e.array(vi).optional(),
5181
+ nodes: e.array(wi).optional(),
5146
5182
  start: e.object({
5147
5183
  hidden_fields: e.array(e.object({
5148
5184
  key: e.string(),
5149
5185
  value: e.string()
5150
5186
  })).optional(),
5151
5187
  next_node: e.string().optional(),
5152
- coordinates: X.optional()
5188
+ coordinates: Y.optional()
5153
5189
  }).optional(),
5154
5190
  ending: e.object({
5155
5191
  redirection: e.object({
@@ -5157,7 +5193,7 @@ var X = e.object({
5157
5193
  target: e.string().optional()
5158
5194
  }).optional(),
5159
5195
  after_submit: e.object({ flow_id: e.string().optional() }).optional(),
5160
- coordinates: X.optional(),
5196
+ coordinates: Y.optional(),
5161
5197
  resume_flow: e.boolean().optional()
5162
5198
  }).optional(),
5163
5199
  style: e.object({ css: e.string().optional() }).optional(),
@@ -5166,8 +5202,8 @@ var X = e.object({
5166
5202
  sdk_src: e.string().optional()
5167
5203
  }).optional()
5168
5204
  }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
5169
- G.extend(yi.shape).extend({ id: e.string() });
5170
- var bi = e.object({
5205
+ U.extend(Ti.shape).extend({ id: e.string() });
5206
+ var Ei = e.object({
5171
5207
  id: e.number().optional(),
5172
5208
  text: e.string(),
5173
5209
  type: e.enum([
@@ -5176,12 +5212,12 @@ var bi = e.object({
5176
5212
  "success",
5177
5213
  "warning"
5178
5214
  ])
5179
- }), xi = e.object({
5215
+ }), Di = e.object({
5180
5216
  id: e.string().optional(),
5181
5217
  text: e.string(),
5182
5218
  href: e.string(),
5183
5219
  linkText: e.string().optional()
5184
- }), Si = e.object({
5220
+ }), Oi = e.object({
5185
5221
  "form-content-start": e.string().optional(),
5186
5222
  "form-content-end": e.string().optional(),
5187
5223
  "form-footer-start": e.string().optional(),
@@ -5195,13 +5231,13 @@ e.object({
5195
5231
  method: e.enum(["POST", "GET"]),
5196
5232
  title: e.string().optional(),
5197
5233
  description: e.string().optional(),
5198
- components: e.array(mi),
5199
- messages: e.array(bi).optional(),
5200
- links: e.array(xi).optional(),
5201
- partials: Si.optional(),
5234
+ components: e.array(bi),
5235
+ messages: e.array(Ei).optional(),
5236
+ links: e.array(Di).optional(),
5237
+ partials: Oi.optional(),
5202
5238
  footer: e.string().optional()
5203
5239
  });
5204
- var Ci = e.enum([
5240
+ var X = e.enum([
5205
5241
  "pre-user-registration",
5206
5242
  "post-user-registration",
5207
5243
  "post-user-login",
@@ -5209,19 +5245,19 @@ var Ci = e.enum([
5209
5245
  "validate-registration-username",
5210
5246
  "pre-user-deletion",
5211
5247
  "post-user-deletion"
5212
- ]), wi = e.enum(["post-user-login"]), Ti = e.enum([
5248
+ ]), ki = e.enum(["post-user-login"]), Ai = e.enum([
5213
5249
  "post-user-login",
5214
5250
  "post-user-registration",
5215
5251
  "post-user-update",
5216
5252
  "credentials-exchange"
5217
- ]), Ei = e.enum([
5253
+ ]), ji = e.enum([
5218
5254
  "post-user-login",
5219
5255
  "credentials-exchange",
5220
5256
  "pre-user-registration",
5221
5257
  "post-user-registration"
5222
- ]), Di = e.enum(["post-user-login"]);
5223
- Ci.options, wi.options, Ti.options, Ei.options, Di.options;
5224
- var Oi = e.enum(["impersonate"]), ki = e.enum([
5258
+ ]), Mi = e.enum(["post-user-login"]);
5259
+ X.options, ki.options, Ai.options, ji.options, Mi.options;
5260
+ var Ni = e.enum(["impersonate"]), Pi = e.enum([
5225
5261
  "ensure-username",
5226
5262
  "set-preferred-username",
5227
5263
  "account-linking"
@@ -5230,86 +5266,87 @@ var Oi = e.enum(["impersonate"]), ki = e.enum([
5230
5266
  synchronous: e.boolean().default(!1),
5231
5267
  priority: e.number().optional(),
5232
5268
  hook_id: e.string().optional(),
5233
- metadata: e.record(e.string(), e.unknown()).optional()
5234
- }, Ai = e.object({
5269
+ metadata: e.record(e.string(), e.unknown()).optional(),
5270
+ ...W
5271
+ }, Fi = e.object({
5235
5272
  ...Z,
5236
- trigger_id: Ci,
5273
+ trigger_id: X,
5237
5274
  url: e.string()
5238
- }), ji = e.object({
5275
+ }), Ii = e.object({
5239
5276
  ...Z,
5240
- trigger_id: wi,
5277
+ trigger_id: ki,
5241
5278
  form_id: e.string()
5242
- }), Mi = e.object({
5279
+ }), Li = e.object({
5243
5280
  ...Z,
5244
- trigger_id: Ti,
5245
- template_id: ki
5246
- }), Ni = e.object({
5281
+ trigger_id: Ai,
5282
+ template_id: Pi
5283
+ }), Ri = e.object({
5247
5284
  ...Z,
5248
- trigger_id: Ei,
5285
+ trigger_id: ji,
5249
5286
  code_id: e.string()
5250
- }), Pi = e.object({
5287
+ }), zi = e.object({
5251
5288
  ...Z,
5252
- trigger_id: Di,
5253
- page_id: Oi,
5289
+ trigger_id: Mi,
5290
+ page_id: Ni,
5254
5291
  permission_required: e.string().optional()
5255
5292
  });
5256
5293
  e.union([
5257
- Ai,
5258
- ji,
5259
- Mi,
5260
- Ni,
5261
- Pi
5294
+ Fi,
5295
+ Ii,
5296
+ Li,
5297
+ Ri,
5298
+ zi
5262
5299
  ]);
5263
- var Fi = e.object({
5300
+ var Bi = e.object({
5264
5301
  ...Z,
5265
- trigger_id: Ci
5266
- }).extend(G.shape).extend({
5302
+ trigger_id: X
5303
+ }).extend(U.shape).extend({
5267
5304
  hook_id: e.string(),
5268
5305
  url: e.string()
5269
- }), Ii = e.object({
5306
+ }), Vi = e.object({
5270
5307
  ...Z,
5271
- trigger_id: wi
5272
- }).extend(G.shape).extend({
5308
+ trigger_id: ki
5309
+ }).extend(U.shape).extend({
5273
5310
  hook_id: e.string(),
5274
5311
  form_id: e.string()
5275
- }), Li = e.object({
5312
+ }), Hi = e.object({
5276
5313
  ...Z,
5277
- trigger_id: Ti
5278
- }).extend(G.shape).extend({
5314
+ trigger_id: Ai
5315
+ }).extend(U.shape).extend({
5279
5316
  hook_id: e.string(),
5280
- template_id: ki
5281
- }), Ri = e.object({
5317
+ template_id: Pi
5318
+ }), Ui = e.object({
5282
5319
  ...Z,
5283
- trigger_id: Ei
5284
- }).extend(G.shape).extend({
5320
+ trigger_id: ji
5321
+ }).extend(U.shape).extend({
5285
5322
  hook_id: e.string(),
5286
5323
  code_id: e.string()
5287
- }), zi = e.object({
5324
+ }), Wi = e.object({
5288
5325
  ...Z,
5289
- trigger_id: Di
5290
- }).extend(G.shape).extend({
5326
+ trigger_id: Mi
5327
+ }).extend(U.shape).extend({
5291
5328
  hook_id: e.string(),
5292
- page_id: Oi,
5329
+ page_id: Ni,
5293
5330
  permission_required: e.string().optional()
5294
5331
  });
5295
5332
  e.union([
5296
- Fi,
5297
- Ii,
5298
- Li,
5299
- Ri,
5300
- zi
5333
+ Bi,
5334
+ Vi,
5335
+ Hi,
5336
+ Ui,
5337
+ Wi
5301
5338
  ]), e.object({
5302
5339
  code: e.string().max(1e5),
5303
5340
  secrets: e.record(e.string(), e.string()).optional()
5304
5341
  }).extend({
5305
5342
  id: e.string(),
5306
5343
  tenant_id: e.string()
5307
- }).extend(G.shape);
5308
- var Bi = e.object({ name: e.string().optional() }), Vi = e.object({ email: e.string().optional() }), Hi = e.object({
5344
+ }).extend(U.shape);
5345
+ var Gi = e.object({ name: e.string().optional() }), Ki = e.object({ email: e.string().optional() }), qi = e.object({
5309
5346
  id: e.string().optional(),
5310
5347
  organization_id: e.string().max(50),
5311
- inviter: Bi,
5312
- invitee: Vi,
5348
+ inviter: Gi,
5349
+ invitee: Ki,
5313
5350
  invitation_url: e.string().url(),
5314
5351
  client_id: e.string(),
5315
5352
  connection_id: e.string().optional(),
@@ -5325,8 +5362,8 @@ e.object({
5325
5362
  created_at: e.string().datetime(),
5326
5363
  expires_at: e.string().datetime(),
5327
5364
  ticket_id: e.string().optional()
5328
- }).extend(Hi.omit({ id: !0 }).shape);
5329
- var Ui = e.object({
5365
+ }).extend(qi.omit({ id: !0 }).shape);
5366
+ var Ji = e.object({
5330
5367
  alg: e.enum([
5331
5368
  "RS256",
5332
5369
  "RS384",
@@ -5368,7 +5405,7 @@ var Ui = e.object({
5368
5405
  path: [r],
5369
5406
  message: `EC JWK is missing required member '${r}'`
5370
5407
  });
5371
- }), Wi = e.object({ keys: e.array(Ui) });
5408
+ }), Yi = e.object({ keys: e.array(Ji) });
5372
5409
  e.object({
5373
5410
  issuer: e.string(),
5374
5411
  authorization_endpoint: e.string(),
@@ -5396,28 +5433,28 @@ e.object({
5396
5433
  backchannel_logout_supported: e.boolean().optional(),
5397
5434
  backchannel_logout_session_supported: e.boolean().optional()
5398
5435
  });
5399
- var Gi = /* @__PURE__ */ function(e) {
5436
+ var Xi = /* @__PURE__ */ function(e) {
5400
5437
  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;
5401
- }({}), Ki = e.nativeEnum(Gi), qi = e.object({
5438
+ }({}), Zi = e.nativeEnum(Xi), Qi = e.object({
5402
5439
  strategy: e.string(),
5403
5440
  strategy_type: e.string()
5404
5441
  });
5405
5442
  e.object({
5406
5443
  csrf_token: e.string(),
5407
5444
  auth0Client: e.string().optional(),
5408
- authParams: Er,
5445
+ authParams: Mr,
5409
5446
  expires_at: e.string(),
5410
5447
  deleted_at: e.string().optional(),
5411
5448
  ip: e.string().optional(),
5412
5449
  useragent: e.string().optional(),
5413
5450
  session_id: e.string().optional(),
5414
5451
  authorization_url: e.string().optional(),
5415
- state: Ki.optional().default("pending"),
5452
+ state: Zi.optional().default("pending"),
5416
5453
  state_data: e.string().optional(),
5417
5454
  failure_reason: e.string().optional(),
5418
5455
  user_id: e.string().optional(),
5419
5456
  auth_connection: e.string().optional(),
5420
- auth_strategy: qi.optional(),
5457
+ auth_strategy: Qi.optional(),
5421
5458
  authenticated_at: e.string().optional()
5422
5459
  }).openapi({ description: "This represents a login sesion" }).extend({
5423
5460
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
@@ -5437,6 +5474,7 @@ var Q = {
5437
5474
  CODE_LINK_SENT: "cls",
5438
5475
  CODE_SENT: "cs",
5439
5476
  DEPRECATION_NOTICE: "depnote",
5477
+ CONFIG_INHERITANCE_DIFF: "cfgdiff",
5440
5478
  FAILED_LOGIN: "f",
5441
5479
  FAILED_BY_CONNECTOR: "fc",
5442
5480
  FAILED_CHANGE_EMAIL: "fce",
@@ -5584,17 +5622,17 @@ var Q = {
5584
5622
  WARNING_DURING_LOGIN: "w",
5585
5623
  WARNING_SENDING_NOTIFICATION: "wn",
5586
5624
  WARNING_USER_MANAGEMENT: "wum"
5587
- }, Ji = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5588
- 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, (() => {
5625
+ }, $i = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5626
+ 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.CONFIG_INHERITANCE_DIFF, 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, (() => {
5589
5627
  let e = {};
5590
- 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";
5628
+ 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 === "CONFIG_INHERITANCE_DIFF" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
5591
5629
  return e;
5592
5630
  })();
5593
- var Yi = e.object({
5631
+ var ea = e.object({
5594
5632
  name: e.string(),
5595
5633
  version: e.string(),
5596
5634
  env: e.object({ node: e.string().optional() }).optional()
5597
- }), Xi = e.object({
5635
+ }), ta = e.object({
5598
5636
  country_code: e.string().length(2),
5599
5637
  city_name: e.string(),
5600
5638
  latitude: e.string(),
@@ -5603,7 +5641,7 @@ var Yi = e.object({
5603
5641
  continent_code: e.string()
5604
5642
  });
5605
5643
  e.object({
5606
- type: Ji,
5644
+ type: $i,
5607
5645
  date: e.string(),
5608
5646
  description: e.string().optional(),
5609
5647
  ip: e.string().optional(),
@@ -5621,63 +5659,63 @@ e.object({
5621
5659
  strategy: e.string().optional(),
5622
5660
  strategy_type: e.string().optional(),
5623
5661
  hostname: e.string().optional(),
5624
- auth0_client: Yi.optional(),
5662
+ auth0_client: ea.optional(),
5625
5663
  log_id: e.string().optional(),
5626
- location_info: Xi.optional()
5664
+ location_info: ta.optional()
5627
5665
  }).extend({ log_id: e.string() });
5628
- var Zi = e.enum([
5666
+ var na = e.enum([
5629
5667
  "http",
5630
5668
  "eventbridge",
5631
5669
  "eventgrid",
5632
5670
  "splunk",
5633
5671
  "datadog",
5634
5672
  "sumo"
5635
- ]), Qi = e.enum([
5673
+ ]), ra = e.enum([
5636
5674
  "active",
5637
5675
  "paused",
5638
5676
  "suspended"
5639
- ]), $i = e.object({
5677
+ ]), ia = e.object({
5640
5678
  type: e.string(),
5641
5679
  name: e.string()
5642
5680
  });
5643
5681
  e.object({
5644
5682
  name: e.string(),
5645
- type: Zi,
5646
- status: Qi.optional(),
5683
+ type: na,
5684
+ status: ra.optional(),
5647
5685
  sink: e.record(e.string(), e.unknown()),
5648
- filters: e.array($i).optional(),
5686
+ filters: e.array(ia).optional(),
5649
5687
  isPriority: e.boolean().optional()
5650
5688
  }).extend({
5651
5689
  id: e.string(),
5652
- status: Qi,
5690
+ status: ra,
5653
5691
  created_at: e.string().optional(),
5654
5692
  updated_at: e.string().optional()
5655
5693
  });
5656
- var ea = e.enum([
5694
+ var aa = e.enum([
5657
5695
  "auth0",
5658
5696
  "cognito",
5659
5697
  "okta",
5660
5698
  "oidc"
5661
- ]), ta = e.object({
5699
+ ]), oa = e.object({
5662
5700
  domain: e.string(),
5663
5701
  client_id: e.string(),
5664
5702
  client_secret: e.string(),
5665
5703
  audience: e.string().optional(),
5666
5704
  scope: e.string().optional()
5667
- }), na = e.object({
5705
+ }), sa = e.object({
5668
5706
  id: e.string().optional(),
5669
5707
  name: e.string(),
5670
- provider: ea,
5708
+ provider: aa,
5671
5709
  connection: e.string(),
5672
5710
  enabled: e.boolean().default(!0),
5673
- credentials: ta
5711
+ credentials: oa
5674
5712
  });
5675
5713
  e.object({
5676
5714
  id: e.string(),
5677
5715
  created_at: e.string(),
5678
5716
  updated_at: e.string()
5679
- }).extend(na.shape);
5680
- var ra = e.object({
5717
+ }).extend(sa.shape);
5718
+ var ca = e.object({
5681
5719
  enabled: e.boolean().optional(),
5682
5720
  shields: e.array(e.string()).optional(),
5683
5721
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -5686,13 +5724,13 @@ var ra = e.object({
5686
5724
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
5687
5725
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
5688
5726
  }).optional()
5689
- }), ia = e.object({
5727
+ }), la = e.object({
5690
5728
  enabled: e.boolean().optional(),
5691
5729
  shields: e.array(e.string()).optional(),
5692
5730
  allowlist: e.array(e.string()).optional(),
5693
5731
  mode: e.string().optional(),
5694
5732
  max_attempts: e.number().optional()
5695
- }), aa = e.object({
5733
+ }), ua = e.object({
5696
5734
  enabled: e.boolean().optional(),
5697
5735
  shields: e.array(e.string()).optional(),
5698
5736
  allowlist: e.array(e.string()).optional(),
@@ -5706,10 +5744,10 @@ var ra = e.object({
5706
5744
  rate: e.number().optional()
5707
5745
  }).optional()
5708
5746
  }).optional()
5709
- }), oa = e.object({
5710
- breached_password_detection: ra.optional(),
5711
- brute_force_protection: ia.optional(),
5712
- suspicious_ip_throttling: aa.optional()
5747
+ }), da = e.object({
5748
+ breached_password_detection: ca.optional(),
5749
+ brute_force_protection: la.optional(),
5750
+ suspicious_ip_throttling: ua.optional()
5713
5751
  });
5714
5752
  e.object({
5715
5753
  id: e.string().optional(),
@@ -5722,14 +5760,14 @@ e.object({
5722
5760
  created_at: e.string(),
5723
5761
  updated_at: e.string()
5724
5762
  });
5725
- var sa = e.object({
5763
+ var fa = e.object({
5726
5764
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
5727
5765
  initial_ip: e.string().describe("First IP address associated with this session"),
5728
5766
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
5729
5767
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
5730
5768
  last_ip: e.string().describe("Last IP address from which this user logged in"),
5731
5769
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
5732
- }), ca = e.object({
5770
+ }), pa = e.object({
5733
5771
  id: e.string(),
5734
5772
  revoked_at: e.string().optional(),
5735
5773
  used_at: e.string().optional(),
@@ -5737,7 +5775,7 @@ var sa = e.object({
5737
5775
  expires_at: e.string().optional(),
5738
5776
  login_session_id: e.string(),
5739
5777
  idle_expires_at: e.string().optional(),
5740
- device: sa.describe("Metadata related to the device used in the session"),
5778
+ device: fa.describe("Metadata related to the device used in the session"),
5741
5779
  clients: e.array(e.string()).describe("List of client details for the session")
5742
5780
  });
5743
5781
  e.object({
@@ -5745,7 +5783,7 @@ e.object({
5745
5783
  updated_at: e.string(),
5746
5784
  authenticated_at: e.string(),
5747
5785
  last_interaction_at: e.string()
5748
- }).extend(ca.shape), e.object({
5786
+ }).extend(pa.shape), e.object({
5749
5787
  kid: e.string().openapi({ description: "The key id of the signing key" }),
5750
5788
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
5751
5789
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -5762,8 +5800,9 @@ e.object({
5762
5800
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
5763
5801
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
5764
5802
  });
5765
- var la = e.object({
5803
+ var ma = e.object({
5766
5804
  id: e.string().optional(),
5805
+ parent_tenant_id: e.string().nullish(),
5767
5806
  audience: e.string().optional(),
5768
5807
  friendly_name: e.string(),
5769
5808
  picture_url: e.string().optional(),
@@ -5880,7 +5919,7 @@ var la = e.object({
5880
5919
  "shared_planetscale"
5881
5920
  ]).optional(),
5882
5921
  d1_database_id: e.string().max(64).optional(),
5883
- attack_protection: oa.optional(),
5922
+ attack_protection: da.optional(),
5884
5923
  mfa: e.object({
5885
5924
  policy: e.enum(["never", "always"]).default("never").optional(),
5886
5925
  factors: e.object({
@@ -5911,29 +5950,29 @@ var la = e.object({
5911
5950
  e.object({
5912
5951
  created_at: e.string().nullable().transform((e) => e ?? ""),
5913
5952
  updated_at: e.string().nullable().transform((e) => e ?? "")
5914
- }).extend(la.shape).extend({
5953
+ }).extend(ma.shape).extend({
5915
5954
  id: e.string(),
5916
5955
  is_control_plane: e.boolean().optional()
5917
5956
  });
5918
- var ua = e.enum([
5957
+ var ha = e.enum([
5919
5958
  "provision",
5920
5959
  "seed",
5921
5960
  "upgrade",
5922
5961
  "backup",
5923
5962
  "deprovision",
5924
5963
  "users_import"
5925
- ]), da = e.enum([
5964
+ ]), ga = e.enum([
5926
5965
  "pending",
5927
5966
  "running",
5928
5967
  "succeeded",
5929
5968
  "failed",
5930
5969
  "cancelled"
5931
- ]), fa = e.string().max(64);
5970
+ ]), _a = e.string().max(64);
5932
5971
  e.object({
5933
5972
  tenant_id: e.string().max(255).nullable().default(null),
5934
5973
  rollout_id: e.string().max(255).nullable().optional(),
5935
- kind: ua,
5936
- engine: fa,
5974
+ kind: ha,
5975
+ engine: _a,
5937
5976
  engine_instance_id: e.string().max(100).nullable().optional(),
5938
5977
  target_worker_version: e.string().max(255).nullable().optional(),
5939
5978
  target_database_version: e.string().max(255).nullable().optional(),
@@ -5941,7 +5980,7 @@ e.object({
5941
5980
  input: e.record(e.string(), e.unknown()).nullable().optional()
5942
5981
  }).extend({
5943
5982
  id: e.string(),
5944
- status: da,
5983
+ status: ga,
5945
5984
  current_step: e.string().max(255).nullable().optional(),
5946
5985
  error: e.string().nullable().optional(),
5947
5986
  result: e.record(e.string(), e.unknown()).nullable().optional(),
@@ -5962,7 +6001,7 @@ e.object({
5962
6001
  claim_expires_at: !0,
5963
6002
  finished_at: !0
5964
6003
  }).partial();
5965
- var pa = e.enum([
6004
+ var va = e.enum([
5966
6005
  "started",
5967
6006
  "succeeded",
5968
6007
  "failed",
@@ -5973,14 +6012,14 @@ var pa = e.enum([
5973
6012
  e.object({
5974
6013
  operation_id: e.string().max(255),
5975
6014
  step: e.string().max(255),
5976
- outcome: pa,
6015
+ outcome: va,
5977
6016
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
5978
6017
  attempt: e.number().int().min(1).default(1)
5979
6018
  }).extend({
5980
6019
  id: e.string(),
5981
6020
  created_at: e.string()
5982
6021
  });
5983
- var ma = e.enum([
6022
+ var ya = e.enum([
5984
6023
  "pending",
5985
6024
  "inserted",
5986
6025
  "updated",
@@ -5991,28 +6030,28 @@ e.object({
5991
6030
  operation_id: e.string().max(255),
5992
6031
  seq: e.number().int().min(0),
5993
6032
  payload: e.record(e.string(), e.unknown()),
5994
- status: ma.default("pending"),
6033
+ status: ya.default("pending"),
5995
6034
  error_code: e.string().max(64).nullable().optional(),
5996
6035
  error_message: e.string().nullable().optional(),
5997
6036
  error_path: e.string().max(255).nullable().optional(),
5998
6037
  entity_id: e.string().max(255).nullable().optional()
5999
6038
  }).extend({
6000
- status: ma,
6039
+ status: ya,
6001
6040
  created_at: e.string(),
6002
6041
  updated_at: e.string()
6003
6042
  }), e.object({
6004
6043
  seq: e.number().int().min(0),
6005
- status: ma,
6044
+ status: ya,
6006
6045
  error_code: e.string().max(64).nullable().optional(),
6007
6046
  error_message: e.string().nullable().optional(),
6008
6047
  error_path: e.string().max(255).nullable().optional(),
6009
6048
  entity_id: e.string().max(255).nullable().optional()
6010
6049
  });
6011
- var ha = e.enum([
6050
+ var ba = e.enum([
6012
6051
  "upgrade",
6013
6052
  "reseed",
6014
6053
  "backup"
6015
- ]), ga = e.enum([
6054
+ ]), xa = e.enum([
6016
6055
  "pending",
6017
6056
  "canary",
6018
6057
  "rolling",
@@ -6021,7 +6060,7 @@ var ha = e.enum([
6021
6060
  "failed"
6022
6061
  ]);
6023
6062
  e.object({
6024
- kind: ha,
6063
+ kind: ba,
6025
6064
  target_worker_version: e.string().max(255).nullable().optional(),
6026
6065
  target_database_version: e.string().max(255).nullable().optional(),
6027
6066
  wave_size: e.number().int().min(1).default(10),
@@ -6030,7 +6069,7 @@ e.object({
6030
6069
  initiated_by: e.string().max(255).nullable().optional()
6031
6070
  }).extend({
6032
6071
  id: e.string(),
6033
- status: ga,
6072
+ status: xa,
6034
6073
  created_at: e.string(),
6035
6074
  updated_at: e.string(),
6036
6075
  finished_at: e.string().nullable().optional()
@@ -6052,7 +6091,7 @@ e.object({
6052
6091
  code: e.string(),
6053
6092
  state: e.string().optional()
6054
6093
  });
6055
- var _a = e.object({
6094
+ var Sa = e.object({
6056
6095
  button_border_radius: e.number(),
6057
6096
  button_border_weight: e.number(),
6058
6097
  buttons_style: e.enum([
@@ -6070,7 +6109,7 @@ var _a = e.object({
6070
6109
  show_widget_shadow: e.boolean(),
6071
6110
  widget_border_weight: e.number(),
6072
6111
  widget_corner_radius: e.number()
6073
- }), va = e.object({
6112
+ }), Ca = e.object({
6074
6113
  base_focus_color: e.string(),
6075
6114
  base_hover_color: e.string(),
6076
6115
  body_text: e.string(),
@@ -6097,7 +6136,7 @@ var _a = e.object({
6097
6136
  }), $ = e.object({
6098
6137
  bold: e.boolean(),
6099
6138
  size: e.number()
6100
- }), ya = e.object({
6139
+ }), wa = e.object({
6101
6140
  body_text: $,
6102
6141
  buttons_text: $,
6103
6142
  font_url: e.string(),
@@ -6107,7 +6146,7 @@ var _a = e.object({
6107
6146
  reference_text_size: e.number(),
6108
6147
  subtitle: $,
6109
6148
  title: $
6110
- }), ba = e.object({
6149
+ }), Ta = e.object({
6111
6150
  background_color: e.string(),
6112
6151
  background_image_url: e.string(),
6113
6152
  page_layout: e.enum([
@@ -6120,7 +6159,7 @@ var _a = e.object({
6120
6159
  "chip",
6121
6160
  "none"
6122
6161
  ]).optional()
6123
- }), xa = e.object({
6162
+ }), Ea = e.object({
6124
6163
  header_text_alignment: e.enum([
6125
6164
  "center",
6126
6165
  "left",
@@ -6137,45 +6176,46 @@ var _a = e.object({
6137
6176
  social_buttons_layout: e.enum(["bottom", "top"])
6138
6177
  });
6139
6178
  e.object({
6140
- borders: _a,
6141
- colors: va,
6179
+ borders: Sa,
6180
+ colors: Ca,
6142
6181
  displayName: e.string(),
6143
- fonts: ya,
6144
- page_background: ba,
6145
- widget: xa
6182
+ fonts: wa,
6183
+ page_background: Ta,
6184
+ widget: Ea
6146
6185
  }).extend({ themeId: e.string() }), e.object({
6186
+ ...W,
6147
6187
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
6148
6188
  identifier_first: e.boolean().default(!0),
6149
6189
  password_first: e.boolean().default(!1),
6150
6190
  show_last_used_connection: e.boolean().default(!1),
6151
6191
  webauthn_platform_first_factor: e.boolean()
6152
6192
  });
6153
- var Sa = e.object({
6193
+ var Da = e.object({
6154
6194
  hosts: e.array(e.string()).optional(),
6155
6195
  methods: e.array(e.string()).optional(),
6156
6196
  path: e.string().default("/*"),
6157
6197
  headers: e.record(e.string(), e.string()).optional(),
6158
6198
  query: e.record(e.string(), e.string()).optional()
6159
- }), Ca = e.object({
6199
+ }), Oa = e.object({
6160
6200
  type: e.string(),
6161
6201
  options: e.record(e.string(), e.unknown()).default({})
6162
- }), wa = e.object({
6202
+ }), ka = e.object({
6163
6203
  id: e.string().optional(),
6164
6204
  custom_domain_id: e.string(),
6165
6205
  priority: e.number().int().default(100),
6166
- match: Sa,
6167
- handlers: e.array(Ca).min(1)
6206
+ match: Da,
6207
+ handlers: e.array(Oa).min(1)
6168
6208
  });
6169
- wa.extend({
6209
+ ka.extend({
6170
6210
  id: e.string(),
6171
6211
  tenant_id: e.string(),
6172
6212
  created_at: e.string(),
6173
6213
  updated_at: e.string()
6174
- }), wa.partial().omit({
6214
+ }), ka.partial().omit({
6175
6215
  id: !0,
6176
6216
  custom_domain_id: !0
6177
6217
  });
6178
- var Ta = "custom_authentication", Ea = [
6218
+ var Aa = "custom_authentication", ja = [
6179
6219
  "urn:ietf:params:oauth:",
6180
6220
  "urn:auth0",
6181
6221
  "urn:okta",
@@ -6183,56 +6223,56 @@ var Ta = "custom_authentication", Ea = [
6183
6223
  "https://auth0.com",
6184
6224
  "http://okta.com",
6185
6225
  "https://okta.com"
6186
- ], Da = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Ea.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Oa = e.enum([
6226
+ ], Ma = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !ja.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Na = e.enum([
6187
6227
  "RS256",
6188
6228
  "RS384",
6189
6229
  "RS512",
6190
6230
  "ES256",
6191
6231
  "ES384",
6192
6232
  "ES512"
6193
- ]), ka = e.discriminatedUnion("type", [e.object({
6233
+ ]), Pa = e.discriminatedUnion("type", [e.object({
6194
6234
  type: e.literal("connection"),
6195
6235
  connection: e.string().min(1),
6196
6236
  create_if_not_exists: e.boolean().default(!0),
6197
6237
  trust_email_verified: e.boolean().default(!1)
6198
- }), e.object({ type: e.literal("user_id") })]), Aa = e.object({
6238
+ }), e.object({ type: e.literal("user_id") })]), Fa = e.object({
6199
6239
  issuer: e.string().min(1).max(2048),
6200
- jwks: Wi.optional(),
6240
+ jwks: Yi.optional(),
6201
6241
  jwks_uri: e.string().url().optional(),
6202
6242
  audience: e.array(e.string().min(1)).min(1).optional(),
6203
- algorithms: e.array(Oa).min(1).optional(),
6243
+ algorithms: e.array(Na).min(1).optional(),
6204
6244
  max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
6205
6245
  require_jti: e.boolean().default(!0),
6206
- user_mapping: ka
6246
+ user_mapping: Pa
6207
6247
  });
6208
6248
  e.object({
6209
6249
  name: e.string().min(1).max(255),
6210
- subject_token_type: Da,
6250
+ subject_token_type: Ma,
6211
6251
  action_id: e.string().min(1).optional(),
6212
- type: e.literal(Ta),
6213
- jwt_verification: Aa.optional()
6252
+ type: e.literal(Aa),
6253
+ jwt_verification: Fa.optional()
6214
6254
  }).extend({
6215
6255
  id: e.string(),
6216
6256
  created_at: e.string(),
6217
6257
  updated_at: e.string()
6218
6258
  }), e.object({
6219
6259
  name: e.string().min(1).max(255).optional(),
6220
- subject_token_type: Da.optional(),
6221
- jwt_verification: Aa.optional()
6260
+ subject_token_type: Ma.optional(),
6261
+ jwt_verification: Fa.optional()
6222
6262
  });
6223
- var ja = e.object({
6263
+ var Ia = e.object({
6224
6264
  scim: e.string(),
6225
6265
  auth0: e.string()
6226
- }), Ma = e.object({
6266
+ }), La = e.object({
6227
6267
  connection_id: e.string(),
6228
6268
  user_id_attribute: e.string().default("externalId"),
6229
- mapping: e.array(ja).default([])
6269
+ mapping: e.array(Ia).default([])
6230
6270
  });
6231
6271
  e.object({
6232
6272
  created_at: e.string(),
6233
6273
  updated_at: e.string()
6234
- }).extend(Ma.shape);
6235
- var Na = e.object({
6274
+ }).extend(La.shape);
6275
+ var Ra = e.object({
6236
6276
  token_id: e.string(),
6237
6277
  connection_id: e.string(),
6238
6278
  token_hash: e.string(),
@@ -6242,20 +6282,21 @@ var Na = e.object({
6242
6282
  e.object({
6243
6283
  created_at: e.string(),
6244
6284
  last_used_at: e.string().optional()
6245
- }).extend(Na.shape);
6246
- var Pa = e.object({
6285
+ }).extend(Ra.shape);
6286
+ var za = e.object({
6247
6287
  connection_id: e.string(),
6248
6288
  external_id: e.string(),
6249
6289
  user_id: e.string()
6250
6290
  });
6251
- e.object({ created_at: e.string() }).extend(Pa.shape), e.object({
6291
+ e.object({ created_at: e.string() }).extend(za.shape), e.object({
6292
+ ...W,
6252
6293
  name: e.string(),
6253
6294
  enabled: e.boolean().optional().default(!0),
6254
6295
  default_from_address: e.string().optional(),
6255
6296
  credentials: e.record(e.string(), e.unknown()),
6256
6297
  settings: e.object({}).optional()
6257
6298
  });
6258
- var Fa = e.enum([
6299
+ var Ba = e.enum([
6259
6300
  "verify_email",
6260
6301
  "verify_email_by_code",
6261
6302
  "reset_email",
@@ -6270,7 +6311,7 @@ var Fa = e.enum([
6270
6311
  "user_invitation"
6271
6312
  ]);
6272
6313
  e.object({
6273
- template: Fa,
6314
+ template: Ba,
6274
6315
  body: e.string(),
6275
6316
  from: e.string(),
6276
6317
  subject: e.string(),
@@ -6285,13 +6326,13 @@ e.object({
6285
6326
  session_id: e.string().optional(),
6286
6327
  organization: e.string().optional(),
6287
6328
  auth_connection: e.string().optional(),
6288
- auth_strategy: qi.optional(),
6329
+ auth_strategy: Qi.optional(),
6289
6330
  user_id: e.string(),
6290
6331
  client_id: e.string(),
6291
6332
  expires_at: e.string().optional(),
6292
6333
  idle_expires_at: e.string().optional(),
6293
6334
  last_exchanged_at: e.string().optional(),
6294
- device: sa,
6335
+ device: fa,
6295
6336
  resource_servers: e.array(e.object({
6296
6337
  audience: e.string(),
6297
6338
  scopes: e.string()
@@ -6312,10 +6353,10 @@ e.object({
6312
6353
  name: e.string(),
6313
6354
  options: e.object({})
6314
6355
  });
6315
- var Ia = e.object({
6356
+ var Va = e.object({
6316
6357
  value: e.string(),
6317
6358
  description: e.string().optional()
6318
- }), La = e.object({
6359
+ }), Ha = e.object({
6319
6360
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
6320
6361
  enforce_policies: e.boolean().optional(),
6321
6362
  allow_skipping_userinfo: e.boolean().optional(),
@@ -6323,11 +6364,11 @@ var Ia = e.object({
6323
6364
  persist_client_authorization: e.boolean().optional(),
6324
6365
  enable_introspection_endpoint: e.boolean().optional(),
6325
6366
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
6326
- }), Ra = e.object({
6367
+ }), Ua = e.object({
6327
6368
  id: e.string().optional(),
6328
6369
  name: e.string(),
6329
6370
  identifier: e.string(),
6330
- scopes: e.array(Ia).optional(),
6371
+ scopes: e.array(Va).optional(),
6331
6372
  signing_alg: e.string().optional(),
6332
6373
  signing_secret: e.string().optional(),
6333
6374
  token_lifetime: e.number().default(86400),
@@ -6335,20 +6376,21 @@ var Ia = e.object({
6335
6376
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
6336
6377
  allow_offline_access: e.boolean().optional(),
6337
6378
  verificationKey: e.string().optional(),
6338
- options: La.optional(),
6379
+ options: Ha.optional(),
6339
6380
  is_system: e.boolean().optional(),
6381
+ ...W,
6340
6382
  metadata: e.record(e.string(), e.any()).optional()
6341
6383
  }).extend({
6342
6384
  created_at: e.string().optional(),
6343
6385
  updated_at: e.string().optional()
6344
6386
  });
6345
- e.array(Ra);
6346
- var za = e.object({
6387
+ e.array(Ua);
6388
+ var Wa = e.object({
6347
6389
  role_id: e.string(),
6348
6390
  resource_server_identifier: e.string(),
6349
6391
  permission_name: e.string()
6350
6392
  }).extend({ created_at: e.string() });
6351
- e.array(za), e.object({
6393
+ e.array(Wa), e.object({
6352
6394
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
6353
6395
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
6354
6396
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
@@ -6361,7 +6403,7 @@ e.array(za), e.object({
6361
6403
  failed_logins: e.array(e.string()).optional(),
6362
6404
  last_password_reset: e.string().optional()
6363
6405
  });
6364
- var Ba = e.object({
6406
+ var Ga = e.object({
6365
6407
  user_id: e.string(),
6366
6408
  resource_server_identifier: e.string(),
6367
6409
  permission_name: e.string(),
@@ -6370,8 +6412,8 @@ var Ba = e.object({
6370
6412
  tenant_id: e.string(),
6371
6413
  created_at: e.string().optional()
6372
6414
  });
6373
- e.array(Ba);
6374
- var Va = e.object({
6415
+ e.array(Ga);
6416
+ var Ka = e.object({
6375
6417
  user_id: e.string(),
6376
6418
  resource_server_identifier: e.string(),
6377
6419
  resource_server_name: e.string(),
@@ -6380,8 +6422,8 @@ var Va = e.object({
6380
6422
  created_at: e.string().optional(),
6381
6423
  organization_id: e.string().optional()
6382
6424
  });
6383
- e.array(Va);
6384
- var Ha = e.object({
6425
+ e.array(Ka);
6426
+ var qa = e.object({
6385
6427
  user_id: e.string(),
6386
6428
  role_id: e.string(),
6387
6429
  organization_id: e.string().optional()
@@ -6389,8 +6431,8 @@ var Ha = e.object({
6389
6431
  tenant_id: e.string(),
6390
6432
  created_at: e.string().optional()
6391
6433
  });
6392
- e.array(Ha);
6393
- var Ua = e.object({
6434
+ e.array(qa);
6435
+ var Ja = e.object({
6394
6436
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
6395
6437
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
6396
6438
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
@@ -6401,19 +6443,19 @@ var Ua = e.object({
6401
6443
  created_at: e.string().optional(),
6402
6444
  updated_at: e.string().optional()
6403
6445
  });
6404
- e.array(Ua);
6405
- var Wa = e.object({
6446
+ e.array(Ja);
6447
+ var Ya = e.object({
6406
6448
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
6407
6449
  colors: e.object({
6408
6450
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
6409
6451
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
6410
6452
  }).optional()
6411
- }).optional(), Ga = e.object({
6453
+ }).optional(), Xa = e.object({
6412
6454
  connection_id: e.string().openapi({ description: "ID of the connection" }),
6413
6455
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
6414
6456
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
6415
6457
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
6416
- }), Ka = e.object({ client_credentials: e.object({
6458
+ }), Za = e.object({ client_credentials: e.object({
6417
6459
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
6418
6460
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
6419
6461
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
@@ -6422,15 +6464,15 @@ e.object({
6422
6464
  id: e.string().optional(),
6423
6465
  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." }),
6424
6466
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
6425
- branding: Wa,
6467
+ branding: Ya,
6426
6468
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
6427
- enabled_connections: e.array(Ga).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6428
- token_quota: Ka
6429
- }).extend(G.shape).extend({
6469
+ enabled_connections: e.array(Xa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6470
+ token_quota: Za
6471
+ }).extend(U.shape).extend({
6430
6472
  id: e.string(),
6431
6473
  name: e.string().min(1).openapi({ description: "The name of the organization" })
6432
6474
  });
6433
- var qa = e.object({
6475
+ var Qa = e.object({
6434
6476
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
6435
6477
  assign_membership_on_login: e.boolean().optional().default(!1),
6436
6478
  show_as_button: e.boolean().optional().default(!0),
@@ -6443,10 +6485,10 @@ var qa = e.object({
6443
6485
  created_at: e.string().optional(),
6444
6486
  updated_at: e.string().optional()
6445
6487
  });
6446
- e.array(qa), e.object({
6488
+ e.array(Qa), e.object({
6447
6489
  user_id: e.string().openapi({ description: "ID of the user" }),
6448
6490
  organization_id: e.string().openapi({ description: "ID of the organization" })
6449
- }).extend(G.shape).extend({ id: e.string() }), e.object({
6491
+ }).extend(U.shape).extend({ id: e.string() }), e.object({
6450
6492
  idle_session_lifetime: e.number().default(72),
6451
6493
  session_lifetime: e.number().default(168),
6452
6494
  session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
@@ -6582,7 +6624,7 @@ e.array(qa), e.object({
6582
6624
  "passwordless",
6583
6625
  "enterprise"
6584
6626
  ]);
6585
- var Ja = e.object({
6627
+ var $a = e.object({
6586
6628
  cohort: e.string(),
6587
6629
  sessions: e.number(),
6588
6630
  active: e.array(e.number())
@@ -6591,9 +6633,9 @@ e.object({
6591
6633
  interval: e.literal("week"),
6592
6634
  from: e.string(),
6593
6635
  to: e.string(),
6594
- cohorts: e.array(Ja)
6636
+ cohorts: e.array($a)
6595
6637
  });
6596
- var Ya = e.object({
6638
+ var eo = e.object({
6597
6639
  cohort: e.string(),
6598
6640
  tokens: e.number(),
6599
6641
  active: e.array(e.number())
@@ -6602,24 +6644,24 @@ e.object({
6602
6644
  interval: e.literal("week"),
6603
6645
  from: e.string(),
6604
6646
  to: e.string(),
6605
- cohorts: e.array(Ya)
6647
+ cohorts: e.array(eo)
6606
6648
  });
6607
- var Xa = e.object({
6649
+ var to = e.object({
6608
6650
  name: e.string(),
6609
6651
  type: e.string()
6610
- }), Za = e.object({
6652
+ }), no = e.object({
6611
6653
  elapsed: e.number(),
6612
6654
  rows_read: e.number().optional(),
6613
6655
  bytes_read: e.number().optional()
6614
6656
  });
6615
6657
  e.object({
6616
- meta: e.array(Xa),
6658
+ meta: e.array(to),
6617
6659
  data: e.array(e.record(e.string(), e.any())),
6618
6660
  rows: e.number(),
6619
6661
  rows_before_limit_at_least: e.number().optional(),
6620
- statistics: Za.optional()
6662
+ statistics: no.optional()
6621
6663
  });
6622
- var Qa = 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(".")), $a = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6664
+ var ro = 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(".")), io = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6623
6665
  type: "object",
6624
6666
  additionalProperties: {
6625
6667
  type: "object",
@@ -6627,23 +6669,23 @@ var Qa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
6627
6669
  }
6628
6670
  });
6629
6671
  e.object({
6630
- prompt: Qa,
6672
+ prompt: ro,
6631
6673
  language: e.string(),
6632
- custom_text: $a
6674
+ custom_text: io
6633
6675
  });
6634
- var eo = e.object({
6676
+ var ao = e.object({
6635
6677
  "form-content-start": e.string().optional(),
6636
6678
  "form-content-end": e.string().optional(),
6637
6679
  "form-footer-start": e.string().optional(),
6638
6680
  "form-footer-end": e.string().optional(),
6639
6681
  "secondary-actions-start": e.string().optional(),
6640
6682
  "secondary-actions-end": e.string().optional()
6641
- }).strict(), to = e.record(e.string(), eo);
6683
+ }).strict(), oo = e.record(e.string(), ao);
6642
6684
  e.object({
6643
6685
  prompt: e.string(),
6644
- partials: to
6686
+ partials: oo
6645
6687
  });
6646
- var no = e.enum([
6688
+ var so = e.enum([
6647
6689
  "phone",
6648
6690
  "totp",
6649
6691
  "email",
@@ -6651,9 +6693,9 @@ var no = e.enum([
6651
6693
  "webauthn-roaming",
6652
6694
  "webauthn-platform",
6653
6695
  "passkey"
6654
- ]), ro = e.object({
6696
+ ]), co = e.object({
6655
6697
  user_id: e.string(),
6656
- type: no,
6698
+ type: so,
6657
6699
  phone_number: e.string().optional(),
6658
6700
  totp_secret: e.string().optional(),
6659
6701
  credential_id: e.string().optional(),
@@ -6664,7 +6706,7 @@ var no = e.enum([
6664
6706
  friendly_name: e.string().optional(),
6665
6707
  confirmed: e.boolean().default(!1)
6666
6708
  });
6667
- function io(t, n) {
6709
+ function lo(t, n) {
6668
6710
  t.type === "phone" && !t.phone_number && n.addIssue({
6669
6711
  code: e.ZodIssueCode.custom,
6670
6712
  message: "phone_number is required when type is 'phone'",
@@ -6687,51 +6729,64 @@ function io(t, n) {
6687
6729
  path: ["public_key"]
6688
6730
  }));
6689
6731
  }
6690
- ro.superRefine(io), ro.extend({
6732
+ co.superRefine(lo), co.extend({
6691
6733
  id: e.string(),
6692
6734
  created_at: e.string(),
6693
6735
  updated_at: e.string()
6694
- }).superRefine(io), e.object({
6736
+ }).superRefine(lo), e.object({
6695
6737
  id: e.string().optional(),
6696
6738
  created_at: e.string().datetime({ offset: !0 }).optional(),
6697
6739
  updated_at: e.string().datetime({ offset: !0 }).optional()
6698
6740
  });
6699
- function ao(e) {
6741
+ function uo(e) {
6700
6742
  let t = atob(e), n = new Uint8Array(t.length);
6701
6743
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
6702
6744
  return n;
6703
6745
  }
6704
6746
  //#endregion
6705
6747
  //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
6706
- var oo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", so = (e = 21) => {
6748
+ var fo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", po = (e = 21) => {
6707
6749
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
6708
- for (; e--;) t += oo[n[e] & 63];
6750
+ for (; e--;) t += fo[n[e] & 63];
6709
6751
  return t;
6710
6752
  };
6711
6753
  //#endregion
6712
6754
  //#region src/helpers.ts
6713
- async function co(e) {
6755
+ async function mo(e) {
6714
6756
  let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
6715
6757
  return new Uint8Array(await new Response(r).arrayBuffer());
6716
6758
  }
6717
- async function lo(e) {
6718
- let t = ao(e.replace(/ /g, "+"));
6759
+ async function ho(e) {
6760
+ let t = uo(e.replace(/ /g, "+"));
6719
6761
  try {
6720
- let e = await co(t);
6762
+ let e = await mo(t);
6721
6763
  return new TextDecoder().decode(e);
6722
6764
  } catch (e) {
6723
6765
  return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
6724
6766
  }
6725
6767
  }
6726
- async function uo(e) {
6727
- let t = await lo(e), n = new tn({
6768
+ async function go(e) {
6769
+ let t = await ho(e), n = new on({
6728
6770
  attributeNamePrefix: "@_",
6729
6771
  alwaysCreateTextNode: !0,
6730
6772
  ignoreAttributes: !1
6731
6773
  }).parse(t);
6732
6774
  return r.parse(n);
6733
6775
  }
6734
- function fo(e) {
6776
+ async function _o(e) {
6777
+ let t = await ho(e), n = new on({
6778
+ attributeNamePrefix: "@_",
6779
+ alwaysCreateTextNode: !0,
6780
+ ignoreAttributes: !1
6781
+ });
6782
+ return i.parse(n.parse(t));
6783
+ }
6784
+ async function vo(e) {
6785
+ let t = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${po()}" Version="2.0" IssueInstant="${(/* @__PURE__ */ new Date()).toISOString()}" Destination="${t(e.destination)}"${r}><saml:Issuer>${t(e.issuer)}</saml:Issuer><samlp:Status><samlp:StatusCode Value="${n}"/>${i}</samlp:Status></samlp:LogoutResponse>`, o = new Blob([new TextEncoder().encode(a)]).stream().pipeThrough(new CompressionStream("deflate-raw")), s = new Uint8Array(await new Response(o).arrayBuffer()), c = "";
6786
+ for (let e of s) c += String.fromCharCode(e);
6787
+ return btoa(c);
6788
+ }
6789
+ function yo(e) {
6735
6790
  let t = e.certificates.map((e) => ({
6736
6791
  "@_use": "signing",
6737
6792
  KeyInfo: {
@@ -6797,7 +6852,7 @@ function fo(e) {
6797
6852
  ]
6798
6853
  }
6799
6854
  } };
6800
- return new Cn({
6855
+ return new En({
6801
6856
  ignoreAttributes: !1,
6802
6857
  suppressEmptyNode: !0,
6803
6858
  preserveOrder: !1,
@@ -6805,8 +6860,8 @@ function fo(e) {
6805
6860
  attributeNamePrefix: "@_"
6806
6861
  }).build(n);
6807
6862
  }
6808
- async function po(e, t) {
6809
- 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 || `_${so()}`, s = e.assertionId || `_${so()}`, c = [{
6863
+ async function bo(e, t) {
6864
+ 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 || `_${po()}`, s = e.assertionId || `_${po()}`, c = [{
6810
6865
  "samlp:Response": [
6811
6866
  { "saml:Issuer": [{ "#text": e.issuer }] },
6812
6867
  { "samlp:Status": [{
@@ -6978,7 +7033,7 @@ async function po(e, t) {
6978
7033
  "@_IssueInstant": i,
6979
7034
  "@_Version": "2.0"
6980
7035
  }
6981
- }], l = new Cn({
7036
+ }], l = new En({
6982
7037
  ignoreAttributes: !1,
6983
7038
  suppressEmptyNode: !0,
6984
7039
  preserveOrder: !0
@@ -6987,7 +7042,7 @@ async function po(e, t) {
6987
7042
  }
6988
7043
  //#endregion
6989
7044
  //#region src/signers/http.ts
6990
- var mo = class {
7045
+ var xo = class {
6991
7046
  signUrl;
6992
7047
  constructor(e) {
6993
7048
  this.signUrl = e;
@@ -7007,4 +7062,4 @@ var mo = class {
7007
7062
  }
7008
7063
  };
7009
7064
  //#endregion
7010
- export { mo as HttpSamlSigner, fo as createSamlMetadata, po as createSamlResponse, s as dsSignatureSchema, lo as inflateDecompress, co as inflateRaw, uo as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
7065
+ export { xo as HttpSamlSigner, vo as createSamlLogoutResponse, yo as createSamlMetadata, bo as createSamlResponse, c as dsSignatureSchema, ho as inflateDecompress, mo as inflateRaw, _o as parseSamlLogoutRequestQuery, go as parseSamlRequestQuery, n as samlIssuerSchema, i as samlLogoutRequestSchema, a as samlMetadataResponseSchema, r as samlRequestSchema, l as samlResponseJsonSchema };