@gengage/assistant-fe 0.3.26 → 0.3.27

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/qna.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, i as n, n as r, o as t, r as s, t as o } from "./qna-DXCQtwLq.js";
1
+ import { a, i as n, n as r, o as t, r as s, t as o } from "./qna-D33BNaWd.js";
2
2
  export {
3
3
  o as GengageQNA,
4
4
  n as createDefaultQnaUISpecRegistry,
@@ -162,11 +162,11 @@ var $e = 3, Rt = (e, t) => {
162
162
  if (!r) return "";
163
163
  const n = t?.stripLeadingStopWords ? r.replace(/^(?:daha|için)\s+/i, "").trim() : r;
164
164
  return n ? n.split(/\s+/).slice(0, 3).join(" ").trim() : "";
165
- }, ae = (e, t) => e ? e.split(/[•,;:/()]|(?:\sve\s)|(?:\sand\s)|(?:\sile\s)|(?:\sfor\s)|(?:\swith\s)/i).map((r) => Rt(r, t)).filter(Boolean) : [];
165
+ }, se = (e, t) => e ? e.split(/[•,;:/()]|(?:\sve\s)|(?:\sand\s)|(?:\sile\s)|(?:\sfor\s)|(?:\swith\s)/i).map((r) => Rt(r, t)).filter(Boolean) : [];
166
166
  function Ct(e) {
167
- const t = (e.display_keywords ?? []).flatMap((o) => ae(o, { stripLeadingStopWords: !0 })), r = t.filter((o, i) => t.indexOf(o) === i);
167
+ const t = (e.display_keywords ?? []).flatMap((o) => se(o, { stripLeadingStopWords: !0 })), r = t.filter((o, i) => t.indexOf(o) === i);
168
168
  if (r.length > 0) return r.slice(0, $e);
169
- const n = [...ae(e.chosen_attribute, { stripLeadingStopWords: !0 }), ...ae(e.short_name)];
169
+ const n = [...se(e.chosen_attribute, { stripLeadingStopWords: !0 }), ...se(e.short_name)];
170
170
  return n.filter((o, i) => n.indexOf(o) === i).slice(0, $e);
171
171
  }
172
172
  function xt(e) {
@@ -212,7 +212,7 @@ function vs(e) {
212
212
  case "launcherAction":
213
213
  return or(t);
214
214
  case "text":
215
- return fe(t);
215
+ return me(t);
216
216
  case "productItem":
217
217
  return ir(t);
218
218
  case "text_image":
@@ -307,31 +307,34 @@ function Jt(e) {
307
307
  action: n
308
308
  } : null;
309
309
  return o ? (typeof t.icon == "string" && (o.icon = t.icon), typeof t.image == "string" && (o.image = t.image), o) : null;
310
- }).filter(me), "chat");
310
+ }).filter(Q), "chat");
311
311
  }
312
312
  function Mt(e) {
313
313
  const t = (Array.isArray(e.payload.style_variations) ? e.payload.style_variations : []).map((a) => {
314
- const s = _(a.style_label), c = _(a.style_mood), u = _(a.image_url ?? void 0), d = (Array.isArray(a.product_list) ? a.product_list : []).map((f) => {
314
+ const s = _(a.style_label);
315
+ if (!s) return null;
316
+ const c = _(a.style_mood), u = _(a.image_url ?? void 0), d = (Array.isArray(a.product_list) ? a.product_list : []).map((f) => {
315
317
  const m = T(f);
316
318
  return m ? Ye(T(m.product_detail) ?? T(m.product) ?? m) : null;
317
- }).filter(me), p = Array.isArray(a.recommendation_groups) ? a.recommendation_groups.map((f) => ({
319
+ }).filter(Q), p = Array.isArray(a.recommendation_groups) ? a.recommendation_groups.map((f) => ({
318
320
  label: _(f.label) ?? "",
319
321
  reason: _(f.reason) ?? "",
320
322
  skus: Array.isArray(f.skus) ? f.skus.filter((m) => typeof m == "string" && m.trim().length > 0) : []
321
323
  })) : [];
322
324
  return {
323
- style_label: s ?? "",
325
+ style_label: s,
324
326
  style_mood: c ?? "",
325
327
  ...u ? { image_url: u } : {},
328
+ ...typeof a.status == "string" ? { status: a.status } : {},
326
329
  product_list: d,
327
330
  recommendation_groups: p
328
331
  };
329
- }).filter((a) => a.product_list.length > 0), r = e.payload.product_list ?? [], n = Ut(e.payload.source) && t.length > 0 ? t[0].product_list : null, o = n ? yr(n, "chat") : He(r, "chat");
332
+ }).filter(Q), r = e.payload.product_list ?? [], n = Ut(e.payload.source) && t.length > 0 ? t[0].product_list : null, o = n ? yr(n, "chat") : He(r, "chat");
330
333
  o.panelHint = "panel";
331
334
  const i = o.spec.elements[o.spec.root];
332
335
  if (i) {
333
336
  const a = {};
334
- typeof e.payload.offset == "number" && (a.offset = e.payload.offset), typeof e.payload.end_of_list == "boolean" && (a.endOfList = e.payload.end_of_list), typeof e.payload.title == "string" && (a.panelTitle = e.payload.title), typeof e.payload.source == "string" && (a.source = e.payload.source), t.length > 0 && (a.styleVariations = t), Object.keys(a).length > 0 && (i.props = {
337
+ typeof e.payload.offset == "number" && (a.offset = e.payload.offset), typeof e.payload.end_of_list == "boolean" && (a.endOfList = e.payload.end_of_list), typeof e.payload.title == "string" && (a.panelTitle = e.payload.title), typeof e.payload.source == "string" && (a.source = e.payload.source), t.length > 0 && (a.styleVariations = t), e.payload.replace_panel === !0 && (a.replacePanel = !0), Object.keys(a).length > 0 && (i.props = {
335
338
  ...i.props,
336
339
  ...a
337
340
  });
@@ -573,7 +576,7 @@ function or(e) {
573
576
  const n = typeof t.text == "string" ? t.text : "";
574
577
  if (n) {
575
578
  const o = { text: n }, i = typeof t.type == "string" ? t.type : void 0, a = typeof t.theme == "string" ? t.theme : void 0, s = T(t.payload) ?? void 0;
576
- return i !== void 0 && (o.type = i), s !== void 0 && (o.payload = s), a !== void 0 && (o.theme = a), fe({
579
+ return i !== void 0 && (o.type = i), s !== void 0 && (o.payload = s), a !== void 0 && (o.theme = a), me({
577
580
  type: "text",
578
581
  payload: o
579
582
  });
@@ -585,7 +588,7 @@ function or(e) {
585
588
  meta: { launcherAction: t }
586
589
  };
587
590
  }
588
- function fe(e) {
591
+ function me(e) {
589
592
  const t = { text: _(e.payload.text) ?? "" };
590
593
  return typeof e.payload.theme == "string" && (t.theme = e.payload.theme), e.payload.payload !== void 0 && (t.payload = e.payload.payload), {
591
594
  type: "ui_spec",
@@ -622,7 +625,7 @@ function We(e) {
622
625
  };
623
626
  }
624
627
  const n = { text: t };
625
- return typeof e.payload.theme == "string" && (n.theme = e.payload.theme), fe({
628
+ return typeof e.payload.theme == "string" && (n.theme = e.payload.theme), me({
626
629
  type: "text",
627
630
  payload: n
628
631
  });
@@ -634,7 +637,7 @@ function Be(e) {
634
637
  action: n
635
638
  } : null;
636
639
  return o ? (typeof t.icon == "string" && (o.icon = t.icon), typeof t.image == "string" && (o.image = t.image), o) : null;
637
- }).filter(me), "qna");
640
+ }).filter(Q), "qna");
638
641
  }
639
642
  function ar(e) {
640
643
  const t = { reviews: (e.payload.reviews ?? []).map((r) => {
@@ -1085,7 +1088,7 @@ function W(e) {
1085
1088
  if (Number.isFinite(r)) return r;
1086
1089
  }
1087
1090
  }
1088
- function me(e) {
1091
+ function Q(e) {
1089
1092
  return e != null;
1090
1093
  }
1091
1094
  var Sr = /* @__PURE__ */ new Set([
@@ -1209,15 +1212,15 @@ var M = class extends Error {
1209
1212
  constructor(e) {
1210
1213
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
1211
1214
  }
1212
- }, ue = {};
1215
+ }, le = {};
1213
1216
  function R(e) {
1214
- return e && Object.assign(ue, e), ue;
1217
+ return e && Object.assign(le, e), le;
1215
1218
  }
1216
1219
  function Qe(e) {
1217
1220
  const t = Object.values(e).filter((r) => typeof r == "number");
1218
1221
  return Object.entries(e).filter(([r, n]) => t.indexOf(+r) === -1).map(([r, n]) => n);
1219
1222
  }
1220
- function le(e, t) {
1223
+ function de(e, t) {
1221
1224
  return typeof t == "bigint" ? t.toString() : t;
1222
1225
  }
1223
1226
  function he(e) {
@@ -1281,7 +1284,7 @@ function Tr(e) {
1281
1284
  }
1282
1285
  var et = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1283
1286
  };
1284
- function Q(e) {
1287
+ function ee(e) {
1285
1288
  return typeof e == "object" && e !== null && !Array.isArray(e);
1286
1289
  }
1287
1290
  var Ir = he(() => {
@@ -1293,11 +1296,11 @@ var Ir = he(() => {
1293
1296
  }
1294
1297
  });
1295
1298
  function V(e) {
1296
- if (Q(e) === !1) return !1;
1299
+ if (ee(e) === !1) return !1;
1297
1300
  const t = e.constructor;
1298
1301
  if (t === void 0 || typeof t != "function") return !0;
1299
1302
  const r = t.prototype;
1300
- return !(Q(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
1303
+ return !(ee(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
1301
1304
  }
1302
1305
  function tt(e) {
1303
1306
  return V(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
@@ -1486,7 +1489,7 @@ var rt = (e, t) => {
1486
1489
  }), Object.defineProperty(e, "issues", {
1487
1490
  value: t,
1488
1491
  enumerable: !1
1489
- }), e.message = JSON.stringify(t, le, 2), Object.defineProperty(e, "toString", {
1492
+ }), e.message = JSON.stringify(t, de, 2), Object.defineProperty(e, "toString", {
1490
1493
  value: () => e.message,
1491
1494
  enumerable: !1
1492
1495
  });
@@ -1539,7 +1542,7 @@ var be = (e) => async (t, r, n, o) => {
1539
1542
  }
1540
1543
  return a.value;
1541
1544
  };
1542
- var ne = (e) => (t, r, n) => {
1545
+ var oe = (e) => (t, r, n) => {
1543
1546
  const o = n ? {
1544
1547
  ...n,
1545
1548
  async: !1
@@ -1555,7 +1558,7 @@ var ne = (e) => (t, r, n) => {
1555
1558
  success: !0,
1556
1559
  data: i.value
1557
1560
  };
1558
- }, Vr = /* @__PURE__ */ ne(ot), oe = (e) => async (t, r, n) => {
1561
+ }, Vr = /* @__PURE__ */ oe(ot), ie = (e) => async (t, r, n) => {
1559
1562
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
1560
1563
  let i = t._zod.run({
1561
1564
  value: r,
@@ -1568,7 +1571,7 @@ var ne = (e) => (t, r, n) => {
1568
1571
  success: !0,
1569
1572
  data: i.value
1570
1573
  };
1571
- }, qr = /* @__PURE__ */ oe(ot), Gr = (e) => (t, r, n) => {
1574
+ }, qr = /* @__PURE__ */ ie(ot), Gr = (e) => (t, r, n) => {
1572
1575
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
1573
1576
  return ye(e)(t, r, o);
1574
1577
  };
@@ -1580,14 +1583,14 @@ var Br = (e) => async (t, r, n) => {
1580
1583
  var Kr = (e) => async (t, r, n) => be(e)(t, r, n);
1581
1584
  var Hr = (e) => (t, r, n) => {
1582
1585
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
1583
- return ne(e)(t, r, o);
1586
+ return oe(e)(t, r, o);
1584
1587
  };
1585
- var Yr = (e) => (t, r, n) => ne(e)(t, r, n);
1588
+ var Yr = (e) => (t, r, n) => oe(e)(t, r, n);
1586
1589
  var Xr = (e) => async (t, r, n) => {
1587
1590
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
1588
- return oe(e)(t, r, o);
1591
+ return ie(e)(t, r, o);
1589
1592
  };
1590
- var Qr = (e) => async (t, r, n) => oe(e)(t, r, n);
1593
+ var Qr = (e) => async (t, r, n) => ie(e)(t, r, n);
1591
1594
  var en = /^[cC][^\s-]{8,}$/, tn = /^[0-9a-z]+$/, rn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, nn = /^[0-9a-vA-V]{20}$/, on = /^[A-Za-z0-9]{27}$/, an = /^[a-zA-Z0-9_-]{21}$/, sn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, cn = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Oe = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, un = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ln = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1592
1595
  function dn() {
1593
1596
  return new RegExp(ln, "u");
@@ -1798,7 +1801,7 @@ var wn = (e) => {
1798
1801
  continue: !t.abort
1799
1802
  });
1800
1803
  };
1801
- }), ie = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
1804
+ }), ae = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
1802
1805
  var r, n;
1803
1806
  P.init(e, t), e._zod.onattach.push((o) => {
1804
1807
  const i = o._zod.bag;
@@ -1816,7 +1819,7 @@ var wn = (e) => {
1816
1819
  }) : (n = e._zod).check ?? (n.check = () => {
1817
1820
  });
1818
1821
  }), In = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1819
- ie.init(e, t), e._zod.check = (r) => {
1822
+ ae.init(e, t), e._zod.check = (r) => {
1820
1823
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
1821
1824
  origin: "string",
1822
1825
  code: "invalid_format",
@@ -1828,9 +1831,9 @@ var wn = (e) => {
1828
1831
  });
1829
1832
  };
1830
1833
  }), An = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
1831
- t.pattern ?? (t.pattern = $n), ie.init(e, t);
1834
+ t.pattern ?? (t.pattern = $n), ae.init(e, t);
1832
1835
  }), Nn = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
1833
- t.pattern ?? (t.pattern = Sn), ie.init(e, t);
1836
+ t.pattern ?? (t.pattern = Sn), ae.init(e, t);
1834
1837
  }), jn = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
1835
1838
  P.init(e, t);
1836
1839
  const r = q(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
@@ -1995,7 +1998,7 @@ var wn = (e) => {
1995
1998
  }), r;
1996
1999
  };
1997
2000
  }), b = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
1998
- ie.init(e, t), we.init(e, t);
2001
+ ae.init(e, t), we.init(e, t);
1999
2002
  }), Ln = /* @__PURE__ */ l("$ZodGUID", (e, t) => {
2000
2003
  t.pattern ?? (t.pattern = cn), b.init(e, t);
2001
2004
  }), Fn = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
@@ -2238,7 +2241,7 @@ var go = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2238
2241
  return i.length ? Promise.all(i).then(() => r) : r;
2239
2242
  };
2240
2243
  });
2241
- function ee(e, t, r, n, o) {
2244
+ function te(e, t, r, n, o) {
2242
2245
  if (e.issues.length) {
2243
2246
  if (o && !(r in n)) return;
2244
2247
  t.issues.push(...J(r, e.issues));
@@ -2269,7 +2272,7 @@ function ht(e, t, r, n, o, i) {
2269
2272
  value: t[p],
2270
2273
  issues: []
2271
2274
  }, n);
2272
- f instanceof Promise ? e.push(f.then((m) => ee(m, r, p, t, d))) : ee(f, r, p, t, d);
2275
+ f instanceof Promise ? e.push(f.then((m) => te(m, r, p, t, d))) : te(f, r, p, t, d);
2273
2276
  }
2274
2277
  return a.length && r.issues.push({
2275
2278
  code: "unrecognized_keys",
@@ -2298,7 +2301,7 @@ var _o = /* @__PURE__ */ l("$ZodObject", (e, t) => {
2298
2301
  }
2299
2302
  return s;
2300
2303
  });
2301
- const n = Q, o = t.catchall;
2304
+ const n = ee, o = t.catchall;
2302
2305
  let i;
2303
2306
  e._zod.parse = (a, s) => {
2304
2307
  i ?? (i = r.value);
@@ -2317,7 +2320,7 @@ var _o = /* @__PURE__ */ l("$ZodObject", (e, t) => {
2317
2320
  value: c[p],
2318
2321
  issues: []
2319
2322
  }, s);
2320
- g instanceof Promise ? u.push(g.then((y) => ee(y, a, p, c, m))) : ee(g, a, p, c, m);
2323
+ g instanceof Promise ? u.push(g.then((y) => te(y, a, p, c, m))) : te(g, a, p, c, m);
2321
2324
  }
2322
2325
  return o ? ht(u, c, a, s, r.value, e) : u.length ? Promise.all(u).then(() => a) : a;
2323
2326
  };
@@ -2380,7 +2383,7 @@ var _o = /* @__PURE__ */ l("$ZodObject", (e, t) => {
2380
2383
  return (N, E) => Et(f, N, E);
2381
2384
  };
2382
2385
  let i;
2383
- const a = Q, s = !ue.jitless, u = s && Ir.value, d = t.catchall;
2386
+ const a = ee, s = !le.jitless, u = s && Ir.value, d = t.catchall;
2384
2387
  let p;
2385
2388
  e._zod.parse = (f, m) => {
2386
2389
  p ?? (p = n.value);
@@ -2444,7 +2447,7 @@ var yo = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2444
2447
  return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([s, c]) => Te(r, s, c)) : Te(r, i, a);
2445
2448
  };
2446
2449
  });
2447
- function de(e, t) {
2450
+ function pe(e, t) {
2448
2451
  if (e === t) return {
2449
2452
  valid: !0,
2450
2453
  data: e
@@ -2459,7 +2462,7 @@ function de(e, t) {
2459
2462
  ...t
2460
2463
  };
2461
2464
  for (const i of n) {
2462
- const a = de(e[i], t[i]);
2465
+ const a = pe(e[i], t[i]);
2463
2466
  if (!a.valid) return {
2464
2467
  valid: !1,
2465
2468
  mergeErrorPath: [i, ...a.mergeErrorPath]
@@ -2478,7 +2481,7 @@ function de(e, t) {
2478
2481
  };
2479
2482
  const r = [];
2480
2483
  for (let n = 0; n < e.length; n++) {
2481
- const o = e[n], i = t[n], a = de(o, i);
2484
+ const o = e[n], i = t[n], a = pe(o, i);
2482
2485
  if (!a.valid) return {
2483
2486
  valid: !1,
2484
2487
  mergeErrorPath: [n, ...a.mergeErrorPath]
@@ -2511,7 +2514,7 @@ function Te(e, t, r) {
2511
2514
  ...o,
2512
2515
  keys: i
2513
2516
  }), F(e)) return e;
2514
- const a = de(t.value, r.value);
2517
+ const a = pe(t.value, r.value);
2515
2518
  if (!a.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);
2516
2519
  return e.value = a.data, e;
2517
2520
  }
@@ -3086,7 +3089,7 @@ function De(e, t) {
3086
3089
  });
3087
3090
  }
3088
3091
  // @__NO_SIDE_EFFECTS__
3089
- function se(e, t) {
3092
+ function ce(e, t) {
3090
3093
  return new lt({
3091
3094
  check: "less_than",
3092
3095
  ...h(t),
@@ -3104,7 +3107,7 @@ function Ue(e, t) {
3104
3107
  });
3105
3108
  }
3106
3109
  // @__NO_SIDE_EFFECTS__
3107
- function ce(e, t) {
3110
+ function ue(e, t) {
3108
3111
  return new dt({
3109
3112
  check: "greater_than",
3110
3113
  ...h(t),
@@ -3129,7 +3132,7 @@ function _t(e, t) {
3129
3132
  });
3130
3133
  }
3131
3134
  // @__NO_SIDE_EFFECTS__
3132
- function te(e, t) {
3135
+ function re(e, t) {
3133
3136
  return new Pn({
3134
3137
  check: "min_length",
3135
3138
  ...h(t),
@@ -3430,8 +3433,8 @@ function wt(e, t) {
3430
3433
  value: {
3431
3434
  ...t["~standard"],
3432
3435
  jsonSchema: {
3433
- input: re(t, "input", e.processors),
3434
- output: re(t, "output", e.processors)
3436
+ input: ne(t, "input", e.processors),
3437
+ output: ne(t, "output", e.processors)
3435
3438
  }
3436
3439
  },
3437
3440
  enumerable: !1,
@@ -3474,7 +3477,7 @@ var Ei = (e, t = {}) => (r) => {
3474
3477
  processors: t
3475
3478
  });
3476
3479
  return S(e, n), bt(n, e), wt(n, e);
3477
- }, re = (e, t, r = {}) => (n) => {
3480
+ }, ne = (e, t, r = {}) => (n) => {
3478
3481
  const { libraryOptions: o, target: i } = n ?? {}, a = yt({
3479
3482
  ...o ?? {},
3480
3483
  target: i,
@@ -3683,18 +3686,18 @@ var zt = (e, t) => {
3683
3686
  format: { value: (r) => Mr(e, r) },
3684
3687
  flatten: { value: (r) => Jr(e, r) },
3685
3688
  addIssue: { value: (r) => {
3686
- e.issues.push(r), e.message = JSON.stringify(e.issues, le, 2);
3689
+ e.issues.push(r), e.message = JSON.stringify(e.issues, de, 2);
3687
3690
  } },
3688
3691
  addIssues: { value: (r) => {
3689
- e.issues.push(...r), e.message = JSON.stringify(e.issues, le, 2);
3692
+ e.issues.push(...r), e.message = JSON.stringify(e.issues, de, 2);
3690
3693
  } },
3691
3694
  isEmpty: { get() {
3692
3695
  return e.issues.length === 0;
3693
3696
  } }
3694
3697
  });
3695
- }, zs = l("ZodError", zt), I = l("ZodError", zt, { Parent: Error }), ia = /* @__PURE__ */ ye(I), aa = /* @__PURE__ */ be(I), sa = /* @__PURE__ */ ne(I), ca = /* @__PURE__ */ oe(I), ua = /* @__PURE__ */ Gr(I), la = /* @__PURE__ */ Wr(I), da = /* @__PURE__ */ Br(I), pa = /* @__PURE__ */ Kr(I), fa = /* @__PURE__ */ Hr(I), ma = /* @__PURE__ */ Yr(I), ha = /* @__PURE__ */ Xr(I), ga = /* @__PURE__ */ Qr(I), k = /* @__PURE__ */ l("ZodType", (e, t) => (w.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
3696
- input: re(e, "input"),
3697
- output: re(e, "output")
3698
+ }, zs = l("ZodError", zt), I = l("ZodError", zt, { Parent: Error }), ia = /* @__PURE__ */ ye(I), aa = /* @__PURE__ */ be(I), sa = /* @__PURE__ */ oe(I), ca = /* @__PURE__ */ ie(I), ua = /* @__PURE__ */ Gr(I), la = /* @__PURE__ */ Wr(I), da = /* @__PURE__ */ Br(I), pa = /* @__PURE__ */ Kr(I), fa = /* @__PURE__ */ Hr(I), ma = /* @__PURE__ */ Yr(I), ha = /* @__PURE__ */ Xr(I), ga = /* @__PURE__ */ Qr(I), k = /* @__PURE__ */ l("ZodType", (e, t) => (w.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
3699
+ input: ne(e, "input"),
3700
+ output: ne(e, "output")
3698
3701
  } }), e.toJSONSchema = Ei(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(D(t, { checks: [...t.checks ?? [], ...r.map((n) => typeof n == "function" ? { _zod: {
3699
3702
  check: n,
3700
3703
  def: { check: "custom" },
@@ -3714,7 +3717,7 @@ var zt = (e, t) => {
3714
3717
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), $t = /* @__PURE__ */ l("_ZodString", (e, t) => {
3715
3718
  we.init(e, t), k.init(e, t), e._zod.processJSONSchema = (n, o, i) => Ti(e, n, o, i);
3716
3719
  const r = e._zod.bag;
3717
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ fi(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ gi(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ _i(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ vi(...n)), e.min = (...n) => e.check(/* @__PURE__ */ te(...n)), e.max = (...n) => e.check(/* @__PURE__ */ _t(...n)), e.length = (...n) => e.check(/* @__PURE__ */ vt(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ te(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ mi(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ hi(n)), e.trim = () => e.check(/* @__PURE__ */ bi()), e.normalize = (...n) => e.check(/* @__PURE__ */ yi(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ wi()), e.toUpperCase = () => e.check(/* @__PURE__ */ ki()), e.slugify = () => e.check(/* @__PURE__ */ zi());
3720
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ fi(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ gi(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ _i(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ vi(...n)), e.min = (...n) => e.check(/* @__PURE__ */ re(...n)), e.max = (...n) => e.check(/* @__PURE__ */ _t(...n)), e.length = (...n) => e.check(/* @__PURE__ */ vt(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ re(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ mi(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ hi(n)), e.trim = () => e.check(/* @__PURE__ */ bi()), e.normalize = (...n) => e.check(/* @__PURE__ */ yi(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ wi()), e.toUpperCase = () => e.check(/* @__PURE__ */ ki()), e.slugify = () => e.check(/* @__PURE__ */ zi());
3718
3721
  }), _a = /* @__PURE__ */ l("ZodString", (e, t) => {
3719
3722
  we.init(e, t), $t.init(e, t), e.email = (r) => e.check(/* @__PURE__ */ xo(va, r)), e.url = (r) => e.check(/* @__PURE__ */ Jo(ya, r)), e.jwt = (r) => e.check(/* @__PURE__ */ ni(ja, r)), e.emoji = (r) => e.check(/* @__PURE__ */ Mo(ba, r)), e.guid = (r) => e.check(/* @__PURE__ */ xe(Fe, r)), e.uuid = (r) => e.check(/* @__PURE__ */ Do(X, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ Uo(X, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ Lo(X, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ Fo(X, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ Vo(wa, r)), e.guid = (r) => e.check(/* @__PURE__ */ xe(Fe, r)), e.cuid = (r) => e.check(/* @__PURE__ */ qo(ka, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ Go(za, r)), e.ulid = (r) => e.check(/* @__PURE__ */ Wo($a, r)), e.base64 = (r) => e.check(/* @__PURE__ */ ei(Ia, r)), e.base64url = (r) => e.check(/* @__PURE__ */ ti(Aa, r)), e.xid = (r) => e.check(/* @__PURE__ */ Bo(Sa, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ Ko(Za, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ Ho(Oa, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ Yo(Ea, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ Xo(Pa, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ Qo(Ta, r)), e.e164 = (r) => e.check(/* @__PURE__ */ ri(Na, r)), e.datetime = (r) => e.check(Xi(r)), e.date = (r) => e.check(ea(r)), e.time = (r) => e.check(ra(r)), e.duration = (r) => e.check(oa(r));
3720
3723
  });
@@ -3762,7 +3765,7 @@ var z = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3762
3765
  }), ja = /* @__PURE__ */ l("ZodJWT", (e, t) => {
3763
3766
  lo.init(e, t), z.init(e, t);
3764
3767
  }), St = /* @__PURE__ */ l("ZodNumber", (e, t) => {
3765
- ft.init(e, t), k.init(e, t), e._zod.processJSONSchema = (n, o, i) => Ii(e, n, o, i), e.gt = (n, o) => e.check(/* @__PURE__ */ Ue(n, o)), e.gte = (n, o) => e.check(/* @__PURE__ */ ce(n, o)), e.min = (n, o) => e.check(/* @__PURE__ */ ce(n, o)), e.lt = (n, o) => e.check(/* @__PURE__ */ De(n, o)), e.lte = (n, o) => e.check(/* @__PURE__ */ se(n, o)), e.max = (n, o) => e.check(/* @__PURE__ */ se(n, o)), e.int = (n) => e.check(Je(n)), e.safe = (n) => e.check(Je(n)), e.positive = (n) => e.check(/* @__PURE__ */ Ue(0, n)), e.nonnegative = (n) => e.check(/* @__PURE__ */ ce(0, n)), e.negative = (n) => e.check(/* @__PURE__ */ De(0, n)), e.nonpositive = (n) => e.check(/* @__PURE__ */ se(0, n)), e.multipleOf = (n, o) => e.check(/* @__PURE__ */ Le(n, o)), e.step = (n, o) => e.check(/* @__PURE__ */ Le(n, o)), e.finite = () => e;
3768
+ ft.init(e, t), k.init(e, t), e._zod.processJSONSchema = (n, o, i) => Ii(e, n, o, i), e.gt = (n, o) => e.check(/* @__PURE__ */ Ue(n, o)), e.gte = (n, o) => e.check(/* @__PURE__ */ ue(n, o)), e.min = (n, o) => e.check(/* @__PURE__ */ ue(n, o)), e.lt = (n, o) => e.check(/* @__PURE__ */ De(n, o)), e.lte = (n, o) => e.check(/* @__PURE__ */ ce(n, o)), e.max = (n, o) => e.check(/* @__PURE__ */ ce(n, o)), e.int = (n) => e.check(Je(n)), e.safe = (n) => e.check(Je(n)), e.positive = (n) => e.check(/* @__PURE__ */ Ue(0, n)), e.nonnegative = (n) => e.check(/* @__PURE__ */ ue(0, n)), e.negative = (n) => e.check(/* @__PURE__ */ De(0, n)), e.nonpositive = (n) => e.check(/* @__PURE__ */ ce(0, n)), e.multipleOf = (n, o) => e.check(/* @__PURE__ */ Le(n, o)), e.step = (n, o) => e.check(/* @__PURE__ */ Le(n, o)), e.finite = () => e;
3766
3769
  const r = e._zod.bag;
3767
3770
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
3768
3771
  });
@@ -3794,7 +3797,7 @@ function Ua(e) {
3794
3797
  return /* @__PURE__ */ pi(Da, e);
3795
3798
  }
3796
3799
  var La = /* @__PURE__ */ l("ZodArray", (e, t) => {
3797
- go.init(e, t), k.init(e, t), e._zod.processJSONSchema = (r, n, o) => Ui(e, r, n, o), e.element = t.element, e.min = (r, n) => e.check(/* @__PURE__ */ te(r, n)), e.nonempty = (r) => e.check(/* @__PURE__ */ te(1, r)), e.max = (r, n) => e.check(/* @__PURE__ */ _t(r, n)), e.length = (r, n) => e.check(/* @__PURE__ */ vt(r, n)), e.unwrap = () => e.element;
3800
+ go.init(e, t), k.init(e, t), e._zod.processJSONSchema = (r, n, o) => Ui(e, r, n, o), e.element = t.element, e.min = (r, n) => e.check(/* @__PURE__ */ re(r, n)), e.nonempty = (r) => e.check(/* @__PURE__ */ re(1, r)), e.max = (r, n) => e.check(/* @__PURE__ */ _t(r, n)), e.length = (r, n) => e.check(/* @__PURE__ */ vt(r, n)), e.unwrap = () => e.element;
3798
3801
  });
3799
3802
  function Fa(e, t) {
3800
3803
  return /* @__PURE__ */ $i(La, e, t);
@@ -3855,14 +3858,14 @@ function Es(e, t, r) {
3855
3858
  ...h(r)
3856
3859
  });
3857
3860
  }
3858
- var pe = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3861
+ var fe = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3859
3862
  ko.init(e, t), k.init(e, t), e._zod.processJSONSchema = (n, o, i) => Ri(e, n, o, i), e.enum = t.entries, e.options = Object.values(t.entries);
3860
3863
  const r = new Set(Object.keys(t.entries));
3861
3864
  e.extract = (n, o) => {
3862
3865
  const i = {};
3863
3866
  for (const a of n) if (r.has(a)) i[a] = t.entries[a];
3864
3867
  else throw new Error(`Key ${a} not found in enum`);
3865
- return new pe({
3868
+ return new fe({
3866
3869
  ...t,
3867
3870
  checks: [],
3868
3871
  ...h(o),
@@ -3872,7 +3875,7 @@ var pe = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3872
3875
  const i = { ...t.entries };
3873
3876
  for (const a of n) if (r.has(a)) delete i[a];
3874
3877
  else throw new Error(`Key ${a} not found in enum`);
3875
- return new pe({
3878
+ return new fe({
3876
3879
  ...t,
3877
3880
  checks: [],
3878
3881
  ...h(o),
@@ -3881,7 +3884,7 @@ var pe = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3881
3884
  };
3882
3885
  });
3883
3886
  function Ba(e, t) {
3884
- return new pe({
3887
+ return new fe({
3885
3888
  type: "enum",
3886
3889
  entries: Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e,
3887
3890
  ...h(t)
@@ -1,4 +1,4 @@
1
- import { S as F, a as S, b as U, c as C, d as x, h as z, m as $, n as W, o as E, p as M, t as G, u as J, w as Q } from "./schemas-CTbgsvNJ.js";
1
+ import { S as F, a as S, b as U, c as C, d as x, h as z, m as $, n as W, o as E, p as M, t as G, u as J, w as Q } from "./schemas-DJ1qbfi8.js";
2
2
  import { H as V, P as T, Q as Y, R as X, S as Z, V as K, X as P, Z as ee, c as te, et as A, h as L, p as ne, t as re, y as ie } from "./ga-datalayer-BwxWX-cr.js";
3
3
  import { a as R, i as ae, n as se, t as oe } from "./product-utils-Bm3aiAlJ.js";
4
4
  import { n as ce } from "./connection-warning-CHHi3BAf.js";