@opencxh/domain 1.185.0 → 1.187.0

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/index.js CHANGED
@@ -14,7 +14,7 @@ function T(e) {
14
14
  const t = e;
15
15
  return typeof t.key == "string" || typeof t.value == "string";
16
16
  }
17
- function Nn(e, t = () => {
17
+ function On(e, t = () => {
18
18
  }) {
19
19
  if (!Array.isArray(e)) return [];
20
20
  const n = [];
@@ -445,7 +445,7 @@ function R(e) {
445
445
  function d(e) {
446
446
  return m[e];
447
447
  }
448
- function On(e) {
448
+ function Nn(e) {
449
449
  return d(e)?.icon ?? "circle";
450
450
  }
451
451
  function vn(e) {
@@ -484,7 +484,7 @@ function Un(e, t) {
484
484
  const n = d(e.type)?.timeline;
485
485
  return n ? n(e, t) : e.type.replace(/_/g, " ").toLowerCase();
486
486
  }
487
- function jn(e) {
487
+ function Gn(e) {
488
488
  const t = d(e.type)?.joinUrl;
489
489
  return t ? t(e) : void 0;
490
490
  }
@@ -496,7 +496,7 @@ function C(e, t) {
496
496
  }
497
497
  return n == null ? "" : typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) : "";
498
498
  }
499
- function N(e, t, n) {
499
+ function O(e, t, n) {
500
500
  if (e === void 0) return null;
501
501
  if (typeof e == "string") return e || null;
502
502
  if ("value" in e)
@@ -519,8 +519,8 @@ function Ce(e) {
519
519
  const t = e.trim();
520
520
  return t.length <= D ? t : `${t.slice(0, D - 1).trimEnd()}…`;
521
521
  }
522
- function Gn(e, t) {
523
- const n = ke(t?.text, e), r = t ? N(t.text, e, (i) => i) : null;
522
+ function jn(e, t) {
523
+ const n = ke(t?.text, e), r = t ? O(t.text, e, (i) => i) : null;
524
524
  return {
525
525
  activityId: e.id,
526
526
  type: e.type,
@@ -531,7 +531,7 @@ function Gn(e, t) {
531
531
  ...n ? { snippetKey: n.key, snippetParams: n.params } : {}
532
532
  };
533
533
  }
534
- const Ne = (e) => e;
534
+ const Oe = (e) => e;
535
535
  function L(e) {
536
536
  const t = m[e];
537
537
  return {
@@ -563,8 +563,8 @@ function P(e) {
563
563
  displayNameKey: e.displayNameKey
564
564
  };
565
565
  }
566
- class Oe {
567
- constructor(t = [], n = Ne) {
566
+ class Ne {
567
+ constructor(t = [], n = Oe) {
568
568
  this.translate = n;
569
569
  for (const r of t)
570
570
  r?.type && (r.type in m || this.declared.has(r.type) || this.declared.set(r.type, r));
@@ -589,14 +589,14 @@ class Oe {
589
589
  const r = m[t.type];
590
590
  if (r?.timeline) return r.timeline(t, n);
591
591
  const i = this.declared.get(t.type);
592
- return N(i?.text, t, this.translate) ?? t.type.replace(/_/g, " ").toLowerCase();
592
+ return O(i?.text, t, this.translate) ?? t.type.replace(/_/g, " ").toLowerCase();
593
593
  }
594
594
  /** The line for the inbox list. Empty when the type has nothing to show. */
595
595
  snippet(t) {
596
596
  const n = m[t.type];
597
597
  if (n?.snippet) return n.snippet(t);
598
598
  const r = this.declared.get(t.type);
599
- return N(r?.text, t, this.translate) ?? "";
599
+ return O(r?.text, t, this.translate) ?? "";
600
600
  }
601
601
  /** The descriptor as it arrived; needed to store `text` as a key. */
602
602
  descriptor(t) {
@@ -649,7 +649,7 @@ class Oe {
649
649
  return this.translate;
650
650
  }
651
651
  }
652
- const Bn = new Oe();
652
+ const Bn = new Ne();
653
653
  function Fn(e, t, n = []) {
654
654
  const r = e.createdAt;
655
655
  if (!r) return [];
@@ -659,10 +659,10 @@ function Fn(e, t, n = []) {
659
659
  function Hn(e) {
660
660
  return e.createdAt ?? 0;
661
661
  }
662
- function Wn(e) {
662
+ function Vn(e) {
663
663
  return e.type === "EMAIL_RECEIVED" || e.type === "EMAIL_SENT";
664
664
  }
665
- function Vn(e) {
665
+ function Wn(e) {
666
666
  return e.type === "CHAT_MESSAGE_SENT" || e.type === "CHAT_MESSAGE_RECEIVED";
667
667
  }
668
668
  const oe = [
@@ -850,7 +850,7 @@ function ir(e, t) {
850
850
  ]
851
851
  }));
852
852
  }
853
- const se = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), U = 200, j = 100, G = 200, B = 12, F = 4, ce = 4e3, M = 500, ar = 256 * 1024, Ue = /* @__PURE__ */ new Set([
853
+ const se = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), U = 200, G = 100, j = 200, B = 12, F = 4, ce = 4e3, M = 500, ar = 256 * 1024, Ue = /* @__PURE__ */ new Set([
854
854
  "heading",
855
855
  "paragraph",
856
856
  "list",
@@ -860,12 +860,12 @@ const se = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]
860
860
  "table",
861
861
  "kpi",
862
862
  "callout"
863
- ]), je = ["http:", "https:", "mailto:", "tel:"], Ge = /^[a-z][a-z0-9+.-]*:/i;
863
+ ]), Ge = ["http:", "https:", "mailto:", "tel:"], je = /^[a-z][a-z0-9+.-]*:/i;
864
864
  function le(e) {
865
865
  const t = e.trim().replace(/^<|>$/g, "");
866
866
  if (!t) return !1;
867
- const n = Ge.exec(t)?.[0];
868
- return n ? je.includes(n.toLowerCase()) : !t.startsWith("//");
867
+ const n = je.exec(t)?.[0];
868
+ return n ? Ge.includes(n.toLowerCase()) : !t.startsWith("//");
869
869
  }
870
870
  const Be = /^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;
871
871
  function Fe(e) {
@@ -913,10 +913,10 @@ function He(e) {
913
913
  function u(e, t = ce) {
914
914
  return typeof e == "string" ? He(e).slice(0, t) : "";
915
915
  }
916
- function We(e, t = ce) {
916
+ function Ve(e, t = ce) {
917
917
  return typeof e == "string" ? e.slice(0, t) : "";
918
918
  }
919
- function Ve(e, t = "info") {
919
+ function We(e, t = "info") {
920
920
  return typeof e == "string" && se.has(e) ? e : t;
921
921
  }
922
922
  function or(e, t = () => {
@@ -965,7 +965,7 @@ function or(e, t = () => {
965
965
  break;
966
966
  }
967
967
  case "code": {
968
- const o = We(i.text);
968
+ const o = Ve(i.text);
969
969
  if (!o) {
970
970
  t("a code block without text");
971
971
  continue;
@@ -980,8 +980,8 @@ function or(e, t = () => {
980
980
  case "list": {
981
981
  const o = Array.isArray(i.items) ? i.items : [], s = [];
982
982
  for (const p of o) {
983
- if (s.length >= j) {
984
- t(`more than ${j} list items`);
983
+ if (s.length >= G) {
984
+ t(`more than ${G} list items`);
985
985
  break;
986
986
  }
987
987
  const f = u(p?.text);
@@ -1013,8 +1013,8 @@ function or(e, t = () => {
1013
1013
  }
1014
1014
  const c = Array.isArray(i.rows) ? i.rows : [], p = [];
1015
1015
  for (const l of c) {
1016
- if (p.length >= G) {
1017
- t(`more than ${G} table rows`);
1016
+ if (p.length >= j) {
1017
+ t(`more than ${j} table rows`);
1018
1018
  break;
1019
1019
  }
1020
1020
  const y = Array.isArray(l) ? l : [];
@@ -1061,7 +1061,7 @@ function or(e, t = () => {
1061
1061
  n.push({
1062
1062
  ...a,
1063
1063
  type: "callout",
1064
- tone: Ve(i.tone),
1064
+ tone: We(i.tone),
1065
1065
  ...s ? { title: s } : {},
1066
1066
  text: o
1067
1067
  });
@@ -1081,15 +1081,15 @@ function cr(e) {
1081
1081
  headings: e.flatMap((t) => t.type === "heading" ? [t.text] : [])
1082
1082
  };
1083
1083
  }
1084
- function W(e) {
1084
+ function V(e) {
1085
1085
  return e.replace(/\|/g, "\\|").replace(/\r?\n/g, " ").trim();
1086
1086
  }
1087
- function V(e, t, n) {
1087
+ function W(e, t, n) {
1088
1088
  const r = e.map((i, a) => n?.[a] === "right" ? "---:" : "---");
1089
1089
  return [
1090
- `| ${e.map(W).join(" | ")} |`,
1090
+ `| ${e.map(V).join(" | ")} |`,
1091
1091
  `| ${r.join(" | ")} |`,
1092
- ...t.map((i) => `| ${i.map(W).join(" | ")} |`)
1092
+ ...t.map((i) => `| ${i.map(V).join(" | ")} |`)
1093
1093
  ];
1094
1094
  }
1095
1095
  function ze(e) {
@@ -1110,7 +1110,7 @@ function ze(e) {
1110
1110
  return t.lead ? `${r} **${t.lead}** ${t.text}` : `${r} ${t.text}`;
1111
1111
  });
1112
1112
  case "table": {
1113
- const t = V(
1113
+ const t = W(
1114
1114
  e.columns.map((n) => n.label),
1115
1115
  e.rows,
1116
1116
  e.columns.map((n) => n.align ?? "left")
@@ -1118,7 +1118,7 @@ function ze(e) {
1118
1118
  return e.caption ? [...t, "", `*${e.caption}*`] : t;
1119
1119
  }
1120
1120
  case "kpi":
1121
- return V(
1121
+ return W(
1122
1122
  e.items.map((t) => t.value),
1123
1123
  [e.items.map((t) => t.label)]
1124
1124
  );
@@ -1241,7 +1241,7 @@ function pe(e) {
1241
1241
  function Cr(e) {
1242
1242
  return pe(e)?.label ?? e;
1243
1243
  }
1244
- function Nr(e) {
1244
+ function Or(e) {
1245
1245
  const t = pe(e);
1246
1246
  return t ? t.english === t.label ? `${t.english} (${t.code})` : `${t.english} — ${t.label} (${t.code})` : e;
1247
1247
  }
@@ -1255,7 +1255,7 @@ function Ze(e, t) {
1255
1255
  }
1256
1256
  return r;
1257
1257
  }
1258
- function Or(e, t, n) {
1258
+ function Nr(e, t, n) {
1259
1259
  if (!e) return !0;
1260
1260
  if (e === t) return !1;
1261
1261
  const r = new Map(n.map((o) => [o.id, o]));
@@ -1329,8 +1329,8 @@ function Rr(e) {
1329
1329
  function Dr(e) {
1330
1330
  return `mcp__${e}__`;
1331
1331
  }
1332
- const Lr = 1e3, Pr = 2e3, Kr = 500, Ur = 12e3, jr = 4e3, rt = ["contact", "company", "work_item"];
1333
- function Gr(e) {
1332
+ const Lr = 1e3, Pr = 2e3, Kr = 500, Ur = 12e3, Gr = 4e3, rt = ["contact", "company", "work_item"];
1333
+ function jr(e) {
1334
1334
  if (!e) return !1;
1335
1335
  const t = e.slice(0, e.indexOf(":"));
1336
1336
  return rt.includes(t);
@@ -1346,7 +1346,7 @@ function it(e) {
1346
1346
  return "org";
1347
1347
  }
1348
1348
  }
1349
- function Wr(e) {
1349
+ function Vr(e) {
1350
1350
  if (typeof e != "string") return;
1351
1351
  const t = e.trim();
1352
1352
  if (t === "org") return { kind: "org" };
@@ -1372,7 +1372,7 @@ function ot(e) {
1372
1372
  }
1373
1373
  }
1374
1374
  const st = ot;
1375
- function Vr(e) {
1375
+ function Wr(e) {
1376
1376
  return e.agentId ? { kind: "user", userId: e.agentId } : st(e.ownerScope);
1377
1377
  }
1378
1378
  function zr(e) {
@@ -1609,13 +1609,14 @@ function Mi(e, t = 25) {
1609
1609
  function ki(e) {
1610
1610
  return [he(e.id)];
1611
1611
  }
1612
- const O = [
1612
+ const N = [
1613
1613
  { key: "open", label: "status_open", category: "todo", order: 0 },
1614
1614
  { key: "in_progress", label: "status_in_progress", category: "in_progress", order: 1 },
1615
- { key: "done", label: "status_done", category: "done", order: 2 }
1616
- ], ye = O.map((e) => e.key);
1615
+ { key: "done", label: "status_done", category: "done", order: 2 },
1616
+ { key: "cancelled", label: "status_cancelled", category: "done", order: 3 }
1617
+ ], ye = N.map((e) => e.key);
1617
1618
  function Mt(e) {
1618
- return e?.statuses?.length ? e.statuses : O;
1619
+ return e?.statuses?.length ? e.statuses : N;
1619
1620
  }
1620
1621
  function kt(e, t) {
1621
1622
  return t.find((n) => n.key === e)?.category ?? "todo";
@@ -1623,9 +1624,9 @@ function kt(e, t) {
1623
1624
  function Ci(e, t) {
1624
1625
  return t.find((n) => n.key === e);
1625
1626
  }
1626
- function Ni(e) {
1627
+ function Oi(e) {
1627
1628
  const t = Mt(e), n = e?.defaultStatusKey;
1628
- return n && t.some((r) => r.key === n) ? n : Ct(t)[0]?.key ?? O[0].key;
1629
+ return n && t.some((r) => r.key === n) ? n : Ct(t)[0]?.key ?? N[0].key;
1629
1630
  }
1630
1631
  function Ct(e) {
1631
1632
  return [...e].sort((t, n) => {
@@ -1633,14 +1634,14 @@ function Ct(e) {
1633
1634
  return r !== 0 ? r : (t.label || "").localeCompare(n.label || "");
1634
1635
  });
1635
1636
  }
1636
- function Oi(e, t) {
1637
+ function Ni(e, t) {
1637
1638
  return kt(e, t) === "done";
1638
1639
  }
1639
- function Nt(e) {
1640
+ function Ot(e) {
1640
1641
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
1641
1642
  }
1642
1643
  function vi(e, t) {
1643
- const n = Nt(e) || "status", r = /* @__PURE__ */ new Set([...t, ...ye]);
1644
+ const n = Ot(e) || "status", r = /* @__PURE__ */ new Set([...t, ...ye]);
1644
1645
  if (!r.has(n)) return n;
1645
1646
  for (let i = 2; i < 500; i++) {
1646
1647
  const a = `${n}-${i}`;
@@ -1660,7 +1661,7 @@ function xi(e) {
1660
1661
  ye.includes(r.key) && t.push({ index: i, reason: "reserved_key", key: r.key }), n.has(r.key) && t.push({ index: i, reason: "duplicate_key", key: r.key }), n.add(r.key);
1661
1662
  }), e.some((r) => r.category === "todo" || r.category === "in_progress") || t.push({ index: -1, reason: "no_open" }), e.some((r) => r.category === "done") || t.push({ index: -1, reason: "no_done" }), t;
1662
1663
  }
1663
- const Ot = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), vt = /* @__PURE__ */ new Set([
1664
+ const Nt = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), vt = /* @__PURE__ */ new Set([
1664
1665
  "text/plain",
1665
1666
  "text/markdown",
1666
1667
  "text/csv",
@@ -1671,7 +1672,7 @@ const Ot = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "ima
1671
1672
  ]);
1672
1673
  function xt(e) {
1673
1674
  const t = (e ?? "").trim().toLowerCase().split(";")[0];
1674
- return t ? Ot.has(t) ? "image" : t === "application/pdf" ? "pdf" : vt.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1675
+ return t ? Nt.has(t) ? "image" : t === "application/pdf" ? "pdf" : vt.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1675
1676
  }
1676
1677
  const h = 1024 * 1024, $t = {
1677
1678
  image: 5 * h,
@@ -1726,7 +1727,7 @@ function Lt(e, t) {
1726
1727
  }
1727
1728
  return n;
1728
1729
  }
1729
- function ji(e, t) {
1730
+ function Gi(e, t) {
1730
1731
  const n = Lt(e, t);
1731
1732
  return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
1732
1733
  }
@@ -1737,7 +1738,7 @@ function Pt(e, t) {
1737
1738
  transport: t.transport ?? e.transport
1738
1739
  } : e;
1739
1740
  }
1740
- function Gi(e, t) {
1741
+ function ji(e, t) {
1741
1742
  const n = [];
1742
1743
  for (const r of e) {
1743
1744
  if (!r.enabled) continue;
@@ -1765,7 +1766,7 @@ function Hi(e, t, n) {
1765
1766
  return r;
1766
1767
  }
1767
1768
  var Ut = /* @__PURE__ */ ((e) => (e.MAILTO = "mailto", e.SIP = "sip", e.TEL = "tel", e.WEBHOOK = "webhook", e.USERNAME = "username", e.ID = "id", e.CUSTOM = "custom", e.URL = "url", e.TELEGRAM = "telegram", e.WHATSAPP = "whatsapp", e.MESSENGER = "messenger", e.INSTAGRAM = "instagram", e.VIBER = "viber", e.SMS = "sms", e.FAX = "fax", e.TEAMS = "teams", e.CALENDAR = "calendar", e))(Ut || {});
1768
- const jt = {
1769
+ const Gt = {
1769
1770
  mailto: "mail",
1770
1771
  sip: "tel",
1771
1772
  tel: "tel",
@@ -1786,10 +1787,10 @@ const jt = {
1786
1787
  id: "note",
1787
1788
  custom: "note"
1788
1789
  };
1789
- function Wi(e) {
1790
- return e ? jt[e] ?? "note" : "note";
1790
+ function Vi(e) {
1791
+ return e ? Gt[e] ?? "note" : "note";
1791
1792
  }
1792
- const Vi = "message_window", zi = "message_templates", Xi = {
1793
+ const Wi = "message_window", zi = "message_templates", Xi = {
1793
1794
  // E-mail
1794
1795
  FROM: "from",
1795
1796
  TO: "to",
@@ -1810,7 +1811,7 @@ const Vi = "message_window", zi = "message_templates", Xi = {
1810
1811
  ok: !1,
1811
1812
  code: "UNSUPPORTED",
1812
1813
  message: "Provider does not support this op"
1813
- }, Qi = "installation-id", ea = {
1814
+ }, Qi = "installation-id", ea = "notification-source", ta = (e, t) => `${e}.pref.${t}`, na = {
1814
1815
  ai: [
1815
1816
  "account.read",
1816
1817
  "account.write",
@@ -1866,8 +1867,6 @@ const Vi = "message_window", zi = "message_templates", Xi = {
1866
1867
  "interaction.read",
1867
1868
  "interaction.write",
1868
1869
  "reminder.read",
1869
- "task.read",
1870
- "task.write",
1871
1870
  "template.read",
1872
1871
  "template.write",
1873
1872
  "topic.read",
@@ -1943,25 +1942,25 @@ const Vi = "message_window", zi = "message_templates", Xi = {
1943
1942
  time: ["entry.read", "entry.write", "work-type.read", "work-type.write"],
1944
1943
  user: ["user.read", "user.write"],
1945
1944
  work: ["item.read", "item.write", "project.read", "project.write"]
1946
- }, Ae = 9e4, Gt = ["out_of_office"], be = (e) => Gt.includes(e);
1947
- function ta(e, t, n) {
1945
+ }, Ae = 9e4, jt = ["out_of_office"], be = (e) => jt.includes(e);
1946
+ function ra(e, t, n) {
1948
1947
  const r = n - e < Ae, i = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
1949
1948
  if (!i?.status) return { online: r, status: r ? "available" : "offline" };
1950
1949
  const a = i.status;
1951
1950
  return !r && !be(a) ? { online: !1, status: "offline" } : { online: r, status: a, message: i.message };
1952
1951
  }
1953
- function na(e, t) {
1952
+ function ia(e, t) {
1954
1953
  const n = t - e.lastSeenAt < Ae, r = n || be(e.status) ? e.status : "offline";
1955
1954
  return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
1956
1955
  }
1957
- function ra(e, t) {
1956
+ function aa(e, t) {
1958
1957
  return e?.teamId && t.includes(e.teamId) ? { teamId: e.teamId, mustChoose: !1 } : t.length === 1 ? { teamId: t[0], mustChoose: !1 } : { teamId: void 0, mustChoose: t.length > 1 };
1959
1958
  }
1960
- function ia(e) {
1959
+ function oa(e) {
1961
1960
  return e.providerAvailable && e.allowed;
1962
1961
  }
1963
- const aa = "resources.describe", oa = "resources.search", sa = "resources.resolve";
1964
- function ca(e) {
1962
+ const sa = "resources.describe", ca = "resources.search", la = "resources.resolve";
1963
+ function ua(e) {
1965
1964
  const t = e.indexOf(":");
1966
1965
  return t === -1 ? e : e.slice(0, t);
1967
1966
  }
@@ -1970,11 +1969,11 @@ function Se(e) {
1970
1969
  const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
1971
1970
  return t ? t[1] : null;
1972
1971
  }
1973
- function la(e) {
1972
+ function da(e) {
1974
1973
  const t = Se(e);
1975
1974
  return t ? t !== Ee : typeof e == "string" && e.startsWith("/wake");
1976
1975
  }
1977
- function ua(e) {
1976
+ function pa(e) {
1978
1977
  return typeof e != "string" || e === "" || e === "/" ? !0 : Se(e) === Ee;
1979
1978
  }
1980
1979
  function Bt(e) {
@@ -1993,14 +1992,14 @@ function Ht(e, t) {
1993
1992
  }
1994
1993
  }), i;
1995
1994
  }
1996
- function Wt(e) {
1995
+ function Vt(e) {
1997
1996
  return e.publicBasePath ?? `/apps/${e.name}`;
1998
1997
  }
1999
- function da(e) {
1998
+ function fa(e) {
2000
1999
  const t = [];
2001
2000
  for (const n of e) {
2002
2001
  if (!n?.name) continue;
2003
- const r = Wt(n);
2002
+ const r = Vt(n);
2004
2003
  for (const i of n.routes ?? []) {
2005
2004
  if (!i.public) continue;
2006
2005
  const a = i.path === "/" ? "" : i.path;
@@ -2014,7 +2013,7 @@ function da(e) {
2014
2013
  }
2015
2014
  return t;
2016
2015
  }
2017
- function Vt(e, t) {
2016
+ function Wt(e, t) {
2018
2017
  const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
2019
2018
  for (let i = 0; i < Math.min(n.length, r.length); i++) {
2020
2019
  const a = n[i].startsWith(":"), o = r[i].startsWith(":");
@@ -2026,13 +2025,13 @@ function zt(e, t) {
2026
2025
  if (typeof e != "string") return null;
2027
2026
  let n = null;
2028
2027
  for (const r of t)
2029
- Ft(r.pattern).test(e) && (!n || Vt(r.pattern, n.pattern)) && (n = r);
2028
+ Ft(r.pattern).test(e) && (!n || Wt(r.pattern, n.pattern)) && (n = r);
2030
2029
  return n ? { ...n, params: { ...n.props, ...Ht(n.pattern, e) } } : null;
2031
2030
  }
2032
- function pa(e, t) {
2031
+ function ma(e, t) {
2033
2032
  return zt(e, t) !== null;
2034
2033
  }
2035
- const fa = "sync-source", ma = "sync-target", ga = 20, Xt = {
2034
+ const ga = "sync-source", ha = "sync-target", ya = 20, Xt = {
2036
2035
  afrikaans: [
2037
2036
  "[Muziek]",
2038
2037
  "(C) TV GELDERLAND 2021",
@@ -2323,13 +2322,13 @@ function an(e, t = qt) {
2323
2322
  return { text: n.filter((o) => (o.endedAt ?? 0) >= i).map((o) => Yt(o.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
2324
2323
  }
2325
2324
  const on = 60;
2326
- function ha(e, t, n = on) {
2325
+ function Aa(e, t, n = on) {
2327
2326
  const r = new Set(e), i = [...e];
2328
2327
  for (const a of t)
2329
2328
  !a || r.has(a) || (r.add(a), i.push(a));
2330
2329
  return i.slice(-n);
2331
2330
  }
2332
- function ya(e) {
2331
+ function ba(e) {
2333
2332
  const { segments: t, now: n, state: r } = e;
2334
2333
  if (r.lastTriggerAt && n - r.lastTriggerAt < Jt)
2335
2334
  return { trigger: !1, reason: "too_soon" };
@@ -2341,7 +2340,7 @@ function ya(e) {
2341
2340
  const o = nn(i.text);
2342
2341
  return o.length ? r.lastQueryTerms?.length && rn(o, r.lastQueryTerms) < Qt ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: i.text, terms: o, segmentCount: i.segmentCount } : { trigger: !1, reason: "no_speech" };
2343
2342
  }
2344
- const Aa = "navNotice", v = {
2343
+ const Ea = "navNotice", v = {
2345
2344
  // The lower bounds are deliberately generous: service ranges (0800/0900) are
2346
2345
  // shorter than geographic numbers, and a too-strict minimum silently drops them.
2347
2346
  // An over-permissive key is harmless — it simply matches nothing.
@@ -2395,7 +2394,7 @@ function dn(e) {
2395
2394
  const r = t.indexOf("@");
2396
2395
  return r >= 0 && (t = t.slice(0, r)), t.trim();
2397
2396
  }
2398
- function ba(e) {
2397
+ function Sa(e) {
2399
2398
  if (!e) return !1;
2400
2399
  const t = e.indexOf("@");
2401
2400
  if (t <= 0) return !1;
@@ -2423,7 +2422,7 @@ function Q(e, t) {
2423
2422
  }
2424
2423
  return !o && E(i, a) ? `+${a.callingCode}${i}` : null;
2425
2424
  }
2426
- function Ea(e, t = 9) {
2425
+ function _a(e, t = 9) {
2427
2426
  const n = (e ?? "").replace(/\D/g, "");
2428
2427
  return n.length < t ? null : n.slice(-t);
2429
2428
  }
@@ -2434,7 +2433,7 @@ function _e(e) {
2434
2433
  const r = t.slice(0, n).split("+")[0], i = t.slice(n + 1);
2435
2434
  return !r || !i.includes(".") ? null : `${r}@${i}`;
2436
2435
  }
2437
- function Sa(e) {
2436
+ function Ta(e) {
2438
2437
  const t = _e(e);
2439
2438
  return t ? t.slice(t.lastIndexOf("@") + 1) : null;
2440
2439
  }
@@ -2500,16 +2499,16 @@ const mn = /* @__PURE__ */ new Set([
2500
2499
  "proximus.be",
2501
2500
  "scarlet.be"
2502
2501
  ]);
2503
- function _a(e) {
2502
+ function Ia(e) {
2504
2503
  const t = fn(e);
2505
2504
  return t ? mn.has(t) : !1;
2506
2505
  }
2507
- function Ta(e) {
2506
+ function wa(e) {
2508
2507
  if (!e) return !1;
2509
2508
  const t = e.trim().toLowerCase();
2510
2509
  return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
2511
2510
  }
2512
- function Ia(e, t, n) {
2511
+ function Ma(e, t, n) {
2513
2512
  if (!e || !t) return null;
2514
2513
  const r = e.trim().toLowerCase();
2515
2514
  if (r === "tel" || r === "sms" || r === "whatsapp") {
@@ -2528,7 +2527,7 @@ function Ia(e, t, n) {
2528
2527
  return i ? `${r}:${i}` : null;
2529
2528
  }
2530
2529
  const gn = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, hn = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
2531
- function wa(e) {
2530
+ function ka(e) {
2532
2531
  if (typeof e != "string" || !e) return "";
2533
2532
  let t = e;
2534
2533
  return t = t.replace(/```[a-z]*\n?/gi, "").replace(/~~~[a-z]*\n?/gi, ""), t = t.replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\[[^\]]*\]/g, "$1"), t = t.replace(/<((?:https?|mailto):[^>\s]+)>/gi, "$1"), t = t.split(`
@@ -2581,10 +2580,10 @@ function ie(e) {
2581
2580
  `).trim();
2582
2581
  }
2583
2582
  const En = /<\s*(html|body|div|p|table|br|span)\b/i;
2584
- function Ma(e) {
2583
+ function Ca(e) {
2585
2584
  return En.test(e);
2586
2585
  }
2587
- function ka(e) {
2586
+ function Oa(e) {
2588
2587
  if (typeof e != "string" || !e) return "";
2589
2588
  let t = e.length;
2590
2589
  for (const a of yn) {
@@ -2596,11 +2595,11 @@ function ka(e) {
2596
2595
  return r || (r = ie(re(te(e)))), bn(r) || r;
2597
2596
  }
2598
2597
  const Sn = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, _n = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
2599
- function Ca(e, t) {
2598
+ function Na(e, t) {
2600
2599
  return !!(e && Sn.test(e) || t && _n.test(t));
2601
2600
  }
2602
2601
  const Tn = 3, In = 600;
2603
- function Na(e, t) {
2602
+ function va(e, t) {
2604
2603
  return e >= Tn || t >= In;
2605
2604
  }
2606
2605
  export {
@@ -2609,19 +2608,19 @@ export {
2609
2608
  Ri as AI_ATTACHMENT_MAX_PER_TURN,
2610
2609
  $i as AI_ATTACHMENT_TURN_BUDGET,
2611
2610
  oe as AI_VENDORS,
2612
- je as ALLOWED_LINK_SCHEMES,
2613
- ea as APP_PERMISSIONS,
2611
+ Ge as ALLOWED_LINK_SCHEMES,
2612
+ na as APP_PERMISSIONS,
2614
2613
  U as ARTIFACT_MAX_BLOCKS,
2615
2614
  ar as ARTIFACT_MAX_BODY_BYTES,
2616
2615
  M as ARTIFACT_MAX_CELL_LEN,
2617
2616
  F as ARTIFACT_MAX_KPI_ITEMS,
2618
- j as ARTIFACT_MAX_LIST_ITEMS,
2617
+ G as ARTIFACT_MAX_LIST_ITEMS,
2619
2618
  B as ARTIFACT_MAX_TABLE_COLUMNS,
2620
- G as ARTIFACT_MAX_TABLE_ROWS,
2619
+ j as ARTIFACT_MAX_TABLE_ROWS,
2621
2620
  ce as ARTIFACT_MAX_TEXT_LEN,
2622
2621
  Ye as ASSIGNMENT_SCOPE_KIND,
2623
2622
  Ee as AUTH_APP_NAME,
2624
- Oe as ActivityTypeRegistry,
2623
+ Ne as ActivityTypeRegistry,
2625
2624
  Bn as BUILT_IN_ONLY,
2626
2625
  Jt as CADENCE_FLOOR_MS,
2627
2626
  Zt as CADENCE_MIN_NEW_SEGMENTS,
@@ -2630,7 +2629,7 @@ export {
2630
2629
  ei as CLASSIFY_VARS,
2631
2630
  nr as CORE_DIMENSIONS,
2632
2631
  Ut as CommunicationScheme,
2633
- jr as DEFAULT_MEMORY_BUDGET,
2632
+ Gr as DEFAULT_MEMORY_BUDGET,
2634
2633
  sn as DEFAULT_PHONE_REGION,
2635
2634
  ni as EMPTY_WORKFLOW,
2636
2635
  qi as FEATURE_FOLDER_MANAGEMENT,
@@ -2641,7 +2640,7 @@ export {
2641
2640
  Xi as InteractionParticipantRole,
2642
2641
  et as KB_FALLBACK_LOCALE,
2643
2642
  z as KB_LOCALES,
2644
- O as LOOSE_STATUSES,
2643
+ N as LOOSE_STATUSES,
2645
2644
  Cn as MAX_ACTIONS,
2646
2645
  qe as MAX_ASSIGNMENT_TURNS,
2647
2646
  wn as MAX_BLOCKS,
@@ -2656,29 +2655,30 @@ export {
2656
2655
  At as MAX_TOPIC_EXAMPLES,
2657
2656
  k as MAX_TOPIC_EXAMPLE_CHARS,
2658
2657
  Kr as MIN_MEMORY_BUDGET,
2659
- Aa as NAV_NOTICE_SLOT,
2658
+ Ea as NAV_NOTICE_SLOT,
2659
+ ea as NOTIFICATION_SOURCE_PROVIDER_GROUP,
2660
2660
  Br as ONBOARDING_SOURCE_PROVIDER_GROUP,
2661
2661
  v as PHONE_REGIONS,
2662
2662
  Ae as PRESENCE_ONLINE_WINDOW_MS,
2663
- Gt as PRESENCE_SURVIVES_OFFLINE,
2663
+ jt as PRESENCE_SURVIVES_OFFLINE,
2664
2664
  Hr as PROFILE_TOOL_DISPOSITIONS,
2665
2665
  zi as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
2666
- Vi as PROVIDER_FEATURE_MESSAGE_WINDOW,
2666
+ Wi as PROVIDER_FEATURE_MESSAGE_WINDOW,
2667
2667
  mn as PUBLIC_EMAIL_DOMAINS,
2668
2668
  X as READ_STEP_TYPES,
2669
2669
  rt as RELATED_SUBJECT_KINDS,
2670
2670
  ye as RESERVED_STATUS_KEYS,
2671
- aa as RESOURCE_DESCRIBE_SERVICE,
2672
- sa as RESOURCE_RESOLVE_SERVICE,
2673
- oa as RESOURCE_SEARCH_SERVICE,
2671
+ sa as RESOURCE_DESCRIBE_SERVICE,
2672
+ la as RESOURCE_RESOLVE_SERVICE,
2673
+ ca as RESOURCE_SEARCH_SERVICE,
2674
2674
  Ar as SIGNATURE_INTENTS,
2675
2675
  ft as STEP_MAX_TOKENS_MAX,
2676
2676
  pt as STEP_MAX_TOKENS_MIN,
2677
2677
  In as SUMMARY_MIN_LAST_CHARS,
2678
2678
  Tn as SUMMARY_MIN_MESSAGES,
2679
- ga as SYNC_RUN_MAX_ERRORS,
2680
- fa as SYNC_SOURCE_PROVIDER_GROUP,
2681
- ma as SYNC_TARGET_PROVIDER_GROUP,
2679
+ ya as SYNC_RUN_MAX_ERRORS,
2680
+ ga as SYNC_SOURCE_PROVIDER_GROUP,
2681
+ ha as SYNC_TARGET_PROVIDER_GROUP,
2682
2682
  Xe as TERMINAL_ASSIGNMENT_STATUSES,
2683
2683
  mt as TERMINAL_RUN_STATUSES,
2684
2684
  Qr as TRIGGER_VARS,
@@ -2694,8 +2694,8 @@ export {
2694
2694
  yi as acceptExampleCandidate,
2695
2695
  at as actingIdentityKey,
2696
2696
  gi as activeWorkTypes,
2697
- On as activityIconOf,
2698
- jn as activityJoinUrl,
2697
+ Nn as activityIconOf,
2698
+ Gn as activityJoinUrl,
2699
2699
  Me as activitySnippet,
2700
2700
  ke as activityTextParams,
2701
2701
  Un as activityTimelineText,
@@ -2703,7 +2703,7 @@ export {
2703
2703
  d as activityTypeInfo,
2704
2704
  zr as actorKey,
2705
2705
  hi as addExampleCandidate,
2706
- na as agePresenceEntry,
2706
+ ia as agePresenceEntry,
2707
2707
  xt as aiAttachmentKind,
2708
2708
  Di as aiAttachmentRejection,
2709
2709
  K as aiBudgetLimit,
@@ -2724,31 +2724,31 @@ export {
2724
2724
  Jr as assignmentMismatch,
2725
2725
  mr as assignmentScopeKey,
2726
2726
  hr as assignmentSubject,
2727
- Gn as buildActivityPreview,
2728
- Gi as buildChannelIntents,
2727
+ jn as buildActivityPreview,
2728
+ ji as buildChannelIntents,
2729
2729
  ur as buildShareKeys,
2730
2730
  an as buildWindow,
2731
- Or as canNestUnder,
2731
+ Nr as canNestUnder,
2732
2732
  Rn as carriesText,
2733
2733
  xr as categoryLabel,
2734
2734
  kt as categoryOf,
2735
- Wi as channelKindForScheme,
2735
+ Vi as channelKindForScheme,
2736
2736
  vn as channelKindOf,
2737
2737
  ti as clampStepMaxTokens,
2738
- ka as cleanMessageText,
2738
+ Oa as cleanMessageText,
2739
2739
  yt as compareWorkTypes,
2740
2740
  yr as decideAssignmentState,
2741
- ya as decideCadence,
2741
+ ba as decideCadence,
2742
2742
  Ui as decideIncomingCall,
2743
2743
  tt as defaultLocaleOf,
2744
- Ni as defaultStatusKey,
2744
+ Oi as defaultStatusKey,
2745
2745
  Yi as defineIntent,
2746
2746
  Ze as depthOf,
2747
- ta as derivePresence,
2748
- ji as disabledIntentsFromCapabilities,
2747
+ ra as derivePresence,
2748
+ Gi as disabledIntentsFromCapabilities,
2749
2749
  li as elapsedSeconds,
2750
- Sa as emailDomain,
2751
- Ia as endpointKey,
2750
+ Ta as emailDomain,
2751
+ Ma as endpointKey,
2752
2752
  Ht as extractParams,
2753
2753
  nn as extractTerms,
2754
2754
  Fi as filterByEndpoint,
@@ -2775,74 +2775,75 @@ export {
2775
2775
  Sr as isAssigned,
2776
2776
  fr as isAssignmentTerminal,
2777
2777
  ct as isAssignmentTrigger,
2778
- Vn as isChatMessageActivity,
2778
+ Wn as isChatMessageActivity,
2779
2779
  _r as isClosed,
2780
2780
  Pn as isConnectedType,
2781
- la as isDeepLink,
2781
+ da as isDeepLink,
2782
2782
  Qe as isDescendant,
2783
- Wn as isEmailActivity,
2784
- Ma as isHtmlBody,
2783
+ Vn as isEmailActivity,
2784
+ Ca as isHtmlBody,
2785
2785
  oi as isInFlight,
2786
2786
  wr as isInteractionUnseen,
2787
- ua as isLandingPath,
2788
- Ca as isLikelyBulk,
2787
+ pa as isLandingPath,
2788
+ Na as isLikelyBulk,
2789
2789
  ae as isMessageShape,
2790
2790
  xn as isMessageType,
2791
- Vt as isMoreSpecificPattern,
2791
+ Wt as isMoreSpecificPattern,
2792
2792
  gt as isPaused,
2793
2793
  Ln as isPlaybookAuthoredType,
2794
- _a as isPublicEmailDomain,
2795
- pa as isPublicPath,
2794
+ Ia as isPublicEmailDomain,
2795
+ ma as isPublicPath,
2796
2796
  $n as isReplyableType,
2797
2797
  ai as isTerminal,
2798
- Na as isThreadLongEnough,
2798
+ va as isThreadLongEnough,
2799
2799
  Kn as isTranscriptType,
2800
- Oi as isWorkClosed,
2800
+ Ni as isWorkClosed,
2801
2801
  mi as isWorkTypeVisible,
2802
2802
  Mi as itemDossierKeys,
2803
2803
  Mt as ladderFor,
2804
2804
  Mr as linkLabel,
2805
2805
  er as listeningAllowed,
2806
- Nr as localeInstruction,
2806
+ Or as localeInstruction,
2807
2807
  Cr as localeName,
2808
2808
  vr as localesOf,
2809
- ba as looksLikeEmail,
2809
+ Sa as looksLikeEmail,
2810
2810
  Hi as matchContactToIntents,
2811
2811
  zt as matchPublicRoute,
2812
2812
  Rr as mcpCredentialScope,
2813
2813
  Dr as mcpToolPrefix,
2814
- ha as mergeShownKeys,
2814
+ Aa as mergeShownKeys,
2815
2815
  Dn as messageCountsAs,
2816
- Ta as needsPhoneRegion,
2816
+ wa as needsPhoneRegion,
2817
2817
  or as normalizeArtifactBlocks,
2818
- Nn as normalizeBlocks,
2818
+ On as normalizeBlocks,
2819
2819
  _e as normalizeEmail,
2820
2820
  g as normalizeExample,
2821
+ ta as notificationPrefKey,
2821
2822
  rn as novelty,
2822
- Wr as parseActingIdentity,
2823
+ Vr as parseActingIdentity,
2823
2824
  Ii as parseItemKey,
2824
2825
  Ft as pathToRegex,
2825
2826
  rr as periodsInRange,
2826
- Ea as phoneSuffix,
2827
- wa as plainTextFromMarkdown,
2827
+ _a as phoneSuffix,
2828
+ ka as plainTextFromMarkdown,
2828
2829
  st as playbookActor,
2829
2830
  ii as procedureOf,
2830
2831
  ki as projectDossierKeys,
2831
- Wt as publicBasePathFor,
2832
- da as publicRoutePatterns,
2832
+ Vt as publicBasePathFor,
2833
+ fa as publicRoutePatterns,
2833
2834
  C as readPath,
2834
2835
  Y as readStepError,
2835
2836
  lt as refKey,
2836
2837
  fn as registrableDomain,
2837
2838
  St as rejectExampleCandidate,
2838
- Gr as relatedByDefault,
2839
+ jr as relatedByDefault,
2839
2840
  Lt as resolveAccountCapabilities,
2840
- N as resolveActivityText,
2841
+ O as resolveActivityText,
2841
2842
  Dt as resolveChannelIntents,
2842
2843
  Je as resolveSignature,
2843
- ra as resolveWorkMode,
2844
- ca as resourceKindOf,
2845
- Vr as runActor,
2844
+ aa as resolveWorkMode,
2845
+ ua as resourceKindOf,
2846
+ Wr as runActor,
2846
2847
  ci as runInteractionId,
2847
2848
  He as sanitizeInline,
2848
2849
  Yt as sanitizeTranscript,
@@ -2852,7 +2853,7 @@ export {
2852
2853
  de as shareKeyForTeam,
2853
2854
  ue as shareKeyForUser,
2854
2855
  dr as shareKeysForViewer,
2855
- ia as shouldRunAudioPipeline,
2856
+ oa as shouldRunAudioPipeline,
2856
2857
  Ct as sortStatuses,
2857
2858
  Rt as sourceKey,
2858
2859
  Ci as statusIn,
@@ -2878,6 +2879,6 @@ export {
2878
2879
  gr as wakesAssignment,
2879
2880
  wt as workItemScopeKey,
2880
2881
  he as workProjectScopeKey,
2881
- Nt as workStatusKey,
2882
+ Ot as workStatusKey,
2882
2883
  ht as workTypeKey
2883
2884
  };