twenty-sdk 2.10.1 → 2.12.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/{catalog-sync-hdRK4nlg.mjs → catalog-sync-DmIzcse2.mjs} +1 -1
- package/dist/{catalog-sync-BjFX6eQu.js → catalog-sync-GJcaViDU.js} +1 -1
- package/dist/cli/commands/dev/generate-client.d.ts +6 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +1 -0
- package/dist/cli/utilities/entity/entity-field-template.d.ts +5 -1
- package/dist/cli.cjs +113 -94
- package/dist/cli.mjs +2178 -2085
- package/dist/define/index.cjs +10 -10
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +1 -0
- package/dist/define/index.mjs +568 -566
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +5 -5
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs +126 -123
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-DTlcRJz3-CYRpYtm8.mjs → get-function-input-schema-DTlcRJz3-B0eNO1qG.mjs} +1 -1
- package/dist/{get-function-input-schema-DTlcRJz3-Cpo6yw4B.js → get-function-input-schema-DTlcRJz3-DAkVg26G.js} +1 -1
- package/dist/{login-oauth-wSHikxei.mjs → login-oauth-C0VXFL7H.mjs} +449 -440
- package/dist/{login-oauth-CU95X9A-.js → login-oauth-DzHcV9F2.js} +35 -28
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +25 -25
- package/dist/ui/index.mjs +5414 -5425
- package/package.json +4 -4
|
@@ -70,7 +70,7 @@ const Pf = {
|
|
|
70
70
|
}
|
|
71
71
|
]
|
|
72
72
|
};
|
|
73
|
-
var ja = /* @__PURE__ */ ((e) => (e.MONDAY = "MONDAY", e.SUNDAY = "SUNDAY", e.SATURDAY = "SATURDAY", e))(ja || {});
|
|
73
|
+
var ja = /* @__PURE__ */ ((e) => (e.MONDAY = "MONDAY", e.SUNDAY = "SUNDAY", e.SATURDAY = "SATURDAY", e))(ja || {}), kn = /* @__PURE__ */ ((e) => (e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e))(kn || {});
|
|
74
74
|
const Bn = Object.freeze({
|
|
75
75
|
status: "aborted"
|
|
76
76
|
});
|
|
@@ -183,7 +183,7 @@ function H(e, n, a) {
|
|
|
183
183
|
configurable: !0
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Rf(e) {
|
|
187
187
|
return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e));
|
|
188
188
|
}
|
|
189
189
|
function fn(e, n, a) {
|
|
@@ -202,7 +202,7 @@ function un(...e) {
|
|
|
202
202
|
}
|
|
203
203
|
return Object.defineProperties({}, n);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Yf(e) {
|
|
206
206
|
return un(e._zod.def);
|
|
207
207
|
}
|
|
208
208
|
function Xf(e, n) {
|
|
@@ -242,7 +242,7 @@ const nl = ji(() => {
|
|
|
242
242
|
return !1;
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
function
|
|
245
|
+
function Cn(e) {
|
|
246
246
|
if (Wn(e) === !1)
|
|
247
247
|
return !1;
|
|
248
248
|
const n = e.constructor;
|
|
@@ -252,7 +252,7 @@ function kn(e) {
|
|
|
252
252
|
return !(Wn(a) === !1 || Object.prototype.hasOwnProperty.call(a, "isPrototypeOf") === !1);
|
|
253
253
|
}
|
|
254
254
|
function Fa(e) {
|
|
255
|
-
return
|
|
255
|
+
return Cn(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
256
256
|
}
|
|
257
257
|
function $f(e) {
|
|
258
258
|
let n = 0;
|
|
@@ -376,7 +376,7 @@ function ul(e, n) {
|
|
|
376
376
|
return xe(e, t);
|
|
377
377
|
}
|
|
378
378
|
function sl(e, n) {
|
|
379
|
-
if (!
|
|
379
|
+
if (!Cn(n))
|
|
380
380
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
381
381
|
const a = e._zod.def.checks;
|
|
382
382
|
if (a && a.length > 0)
|
|
@@ -391,7 +391,7 @@ function sl(e, n) {
|
|
|
391
391
|
return xe(e, i);
|
|
392
392
|
}
|
|
393
393
|
function ll(e, n) {
|
|
394
|
-
if (!
|
|
394
|
+
if (!Cn(n))
|
|
395
395
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
396
396
|
const a = {
|
|
397
397
|
...e._zod.def,
|
|
@@ -565,7 +565,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
565
565
|
cleanEnum: Hf,
|
|
566
566
|
cleanRegex: Ma,
|
|
567
567
|
clone: xe,
|
|
568
|
-
cloneDef:
|
|
568
|
+
cloneDef: Yf,
|
|
569
569
|
createTransparentProxy: Jf,
|
|
570
570
|
defineLazy: H,
|
|
571
571
|
esc: Nt,
|
|
@@ -580,7 +580,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
580
580
|
getSizableOrigin: Ba,
|
|
581
581
|
hexToUint8Array: Bf,
|
|
582
582
|
isObject: Wn,
|
|
583
|
-
isPlainObject:
|
|
583
|
+
isPlainObject: Cn,
|
|
584
584
|
issue: Un,
|
|
585
585
|
joinValues: P,
|
|
586
586
|
jsonStringifyReplacer: Ta,
|
|
@@ -589,7 +589,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
589
589
|
normalizeParams: C,
|
|
590
590
|
nullish: En,
|
|
591
591
|
numKeys: $f,
|
|
592
|
-
objectClone:
|
|
592
|
+
objectClone: Rf,
|
|
593
593
|
omit: ul,
|
|
594
594
|
optionalKeys: al,
|
|
595
595
|
partial: cl,
|
|
@@ -736,7 +736,7 @@ const Si = (e) => (n, a, t, i) => {
|
|
|
736
736
|
function Zl() {
|
|
737
737
|
return new RegExp(d0, "u");
|
|
738
738
|
}
|
|
739
|
-
const xl = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,
|
|
739
|
+
const xl = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Rl = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Yl = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Xl = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Dl = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ar = /^[A-Za-z0-9_-]*$/, hr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Ol = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, $l = /^\+(?:[0-9]){6,14}[0-9]$/, zl = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Jl = /* @__PURE__ */ new RegExp(`^${zl}$`);
|
|
740
740
|
function Hl(e) {
|
|
741
741
|
const n = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
742
742
|
return typeof e.precision == "number" ? e.precision === -1 ? `${n}` : e.precision === 0 ? `${n}:[0-5]\\d` : `${n}:[0-5]\\d\\.\\d{${e.precision}}` : `${n}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -767,7 +767,7 @@ const c0 = /^[0-9a-fA-F]{32}$/, g0 = /* @__PURE__ */ Pi(22, "=="), A0 = /* @__PU
|
|
|
767
767
|
bigint: Ql,
|
|
768
768
|
boolean: Gl,
|
|
769
769
|
browserEmail: l0,
|
|
770
|
-
cidrv4:
|
|
770
|
+
cidrv4: Yl,
|
|
771
771
|
cidrv6: Xl,
|
|
772
772
|
cuid: wl,
|
|
773
773
|
cuid2: jl,
|
|
@@ -786,7 +786,7 @@ const c0 = /^[0-9a-fA-F]{32}$/, g0 = /* @__PURE__ */ Pi(22, "=="), A0 = /* @__PU
|
|
|
786
786
|
idnEmail: s0,
|
|
787
787
|
integer: Wl,
|
|
788
788
|
ipv4: xl,
|
|
789
|
-
ipv6:
|
|
789
|
+
ipv6: Rl,
|
|
790
790
|
ksuid: Cl,
|
|
791
791
|
lowercase: ql,
|
|
792
792
|
md5_base64: g0,
|
|
@@ -1393,9 +1393,9 @@ const Id = {
|
|
|
1393
1393
|
n.pattern ?? (n.pattern = Cl), W.init(e, n);
|
|
1394
1394
|
}), xd = /* @__PURE__ */ w("$ZodISODateTime", (e, n) => {
|
|
1395
1395
|
n.pattern ?? (n.pattern = Fl(n)), W.init(e, n);
|
|
1396
|
-
}),
|
|
1396
|
+
}), Rd = /* @__PURE__ */ w("$ZodISODate", (e, n) => {
|
|
1397
1397
|
n.pattern ?? (n.pattern = Jl), W.init(e, n);
|
|
1398
|
-
}),
|
|
1398
|
+
}), Yd = /* @__PURE__ */ w("$ZodISOTime", (e, n) => {
|
|
1399
1399
|
n.pattern ?? (n.pattern = Ml(n)), W.init(e, n);
|
|
1400
1400
|
}), Xd = /* @__PURE__ */ w("$ZodISODuration", (e, n) => {
|
|
1401
1401
|
n.pattern ?? (n.pattern = Pl), W.init(e, n);
|
|
@@ -1405,7 +1405,7 @@ const Id = {
|
|
|
1405
1405
|
t.format = "ipv4";
|
|
1406
1406
|
});
|
|
1407
1407
|
}), Od = /* @__PURE__ */ w("$ZodIPv6", (e, n) => {
|
|
1408
|
-
n.pattern ?? (n.pattern =
|
|
1408
|
+
n.pattern ?? (n.pattern = Rl), W.init(e, n), e._zod.onattach.push((a) => {
|
|
1409
1409
|
const t = a._zod.bag;
|
|
1410
1410
|
t.format = "ipv6";
|
|
1411
1411
|
}), e._zod.check = (a) => {
|
|
@@ -1422,7 +1422,7 @@ const Id = {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
};
|
|
1424
1424
|
}), $d = /* @__PURE__ */ w("$ZodCIDRv4", (e, n) => {
|
|
1425
|
-
n.pattern ?? (n.pattern =
|
|
1425
|
+
n.pattern ?? (n.pattern = Yl), W.init(e, n);
|
|
1426
1426
|
}), zd = /* @__PURE__ */ w("$ZodCIDRv6", (e, n) => {
|
|
1427
1427
|
n.pattern ?? (n.pattern = Xl), W.init(e, n), e._zod.check = (a) => {
|
|
1428
1428
|
const t = a.value.split("/");
|
|
@@ -1906,15 +1906,15 @@ const wr = /* @__PURE__ */ w("$ZodUnion", (e, n) => {
|
|
|
1906
1906
|
return r instanceof Promise || o instanceof Promise ? Promise.all([r, o]).then(([g, A]) => cu(a, g, A)) : cu(a, r, o);
|
|
1907
1907
|
};
|
|
1908
1908
|
});
|
|
1909
|
-
function
|
|
1909
|
+
function Rt(e, n) {
|
|
1910
1910
|
if (e === n)
|
|
1911
1911
|
return { valid: !0, data: e };
|
|
1912
1912
|
if (e instanceof Date && n instanceof Date && +e == +n)
|
|
1913
1913
|
return { valid: !0, data: e };
|
|
1914
|
-
if (
|
|
1914
|
+
if (Cn(e) && Cn(n)) {
|
|
1915
1915
|
const a = Object.keys(n), t = Object.keys(e).filter((r) => a.indexOf(r) !== -1), i = { ...e, ...n };
|
|
1916
1916
|
for (const r of t) {
|
|
1917
|
-
const o =
|
|
1917
|
+
const o = Rt(e[r], n[r]);
|
|
1918
1918
|
if (!o.valid)
|
|
1919
1919
|
return {
|
|
1920
1920
|
valid: !1,
|
|
@@ -1929,7 +1929,7 @@ function Yt(e, n) {
|
|
|
1929
1929
|
return { valid: !1, mergeErrorPath: [] };
|
|
1930
1930
|
const a = [];
|
|
1931
1931
|
for (let t = 0; t < e.length; t++) {
|
|
1932
|
-
const i = e[t], r = n[t], o =
|
|
1932
|
+
const i = e[t], r = n[t], o = Rt(i, r);
|
|
1933
1933
|
if (!o.valid)
|
|
1934
1934
|
return {
|
|
1935
1935
|
valid: !1,
|
|
@@ -1944,7 +1944,7 @@ function Yt(e, n) {
|
|
|
1944
1944
|
function cu(e, n, a) {
|
|
1945
1945
|
if (n.issues.length && e.issues.push(...n.issues), a.issues.length && e.issues.push(...a.issues), vn(e))
|
|
1946
1946
|
return e;
|
|
1947
|
-
const t =
|
|
1947
|
+
const t = Rt(n.value, a.value);
|
|
1948
1948
|
if (!t.valid)
|
|
1949
1949
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(t.mergeErrorPath)}`);
|
|
1950
1950
|
return e.value = t.data, e;
|
|
@@ -2003,7 +2003,7 @@ function Qi(e, n, a) {
|
|
|
2003
2003
|
const cc = /* @__PURE__ */ w("$ZodRecord", (e, n) => {
|
|
2004
2004
|
O.init(e, n), e._zod.parse = (a, t) => {
|
|
2005
2005
|
const i = a.value;
|
|
2006
|
-
if (!
|
|
2006
|
+
if (!Cn(i))
|
|
2007
2007
|
return a.issues.push({
|
|
2008
2008
|
expected: "record",
|
|
2009
2009
|
code: "invalid_type",
|
|
@@ -2805,7 +2805,7 @@ function x0() {
|
|
|
2805
2805
|
localeError: Z0()
|
|
2806
2806
|
};
|
|
2807
2807
|
}
|
|
2808
|
-
const
|
|
2808
|
+
const R0 = () => {
|
|
2809
2809
|
const e = {
|
|
2810
2810
|
string: { unit: "znaků", verb: "mít" },
|
|
2811
2811
|
file: { unit: "bajtů", verb: "mít" },
|
|
@@ -2905,9 +2905,9 @@ const Y0 = () => {
|
|
|
2905
2905
|
}
|
|
2906
2906
|
};
|
|
2907
2907
|
};
|
|
2908
|
-
function
|
|
2908
|
+
function Y0() {
|
|
2909
2909
|
return {
|
|
2910
|
-
localeError:
|
|
2910
|
+
localeError: R0()
|
|
2911
2911
|
};
|
|
2912
2912
|
}
|
|
2913
2913
|
const X0 = () => {
|
|
@@ -4528,13 +4528,13 @@ const b2 = () => {
|
|
|
4528
4528
|
}
|
|
4529
4529
|
};
|
|
4530
4530
|
};
|
|
4531
|
-
function
|
|
4531
|
+
function Rc() {
|
|
4532
4532
|
return {
|
|
4533
4533
|
localeError: b2()
|
|
4534
4534
|
};
|
|
4535
4535
|
}
|
|
4536
4536
|
function m2() {
|
|
4537
|
-
return
|
|
4537
|
+
return Rc();
|
|
4538
4538
|
}
|
|
4539
4539
|
const y2 = () => {
|
|
4540
4540
|
const e = {
|
|
@@ -5279,7 +5279,7 @@ function x2() {
|
|
|
5279
5279
|
localeError: Z2()
|
|
5280
5280
|
};
|
|
5281
5281
|
}
|
|
5282
|
-
const
|
|
5282
|
+
const R2 = () => {
|
|
5283
5283
|
const e = {
|
|
5284
5284
|
string: { unit: "توکي", verb: "ولري" },
|
|
5285
5285
|
file: { unit: "بایټس", verb: "ولري" },
|
|
@@ -5367,9 +5367,9 @@ const Y2 = () => {
|
|
|
5367
5367
|
}
|
|
5368
5368
|
};
|
|
5369
5369
|
};
|
|
5370
|
-
function
|
|
5370
|
+
function Y2() {
|
|
5371
5371
|
return {
|
|
5372
|
-
localeError:
|
|
5372
|
+
localeError: R2()
|
|
5373
5373
|
};
|
|
5374
5374
|
}
|
|
5375
5375
|
const X2 = () => {
|
|
@@ -6245,13 +6245,13 @@ const K2 = () => {
|
|
|
6245
6245
|
}
|
|
6246
6246
|
};
|
|
6247
6247
|
};
|
|
6248
|
-
function
|
|
6248
|
+
function Yc() {
|
|
6249
6249
|
return {
|
|
6250
6250
|
localeError: K2()
|
|
6251
6251
|
};
|
|
6252
6252
|
}
|
|
6253
6253
|
function ep() {
|
|
6254
|
-
return
|
|
6254
|
+
return Yc();
|
|
6255
6255
|
}
|
|
6256
6256
|
const np = () => {
|
|
6257
6257
|
const e = {
|
|
@@ -6724,7 +6724,7 @@ const Xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6724
6724
|
az: T0,
|
|
6725
6725
|
be: N0,
|
|
6726
6726
|
ca: x0,
|
|
6727
|
-
cs:
|
|
6727
|
+
cs: Y0,
|
|
6728
6728
|
da: D0,
|
|
6729
6729
|
de: $0,
|
|
6730
6730
|
en: xc,
|
|
@@ -6742,7 +6742,7 @@ const Xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6742
6742
|
ja: A2,
|
|
6743
6743
|
ka: p2,
|
|
6744
6744
|
kh: m2,
|
|
6745
|
-
km:
|
|
6745
|
+
km: Rc,
|
|
6746
6746
|
ko: v2,
|
|
6747
6747
|
lt: j2,
|
|
6748
6748
|
mk: k2,
|
|
@@ -6751,7 +6751,7 @@ const Xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6751
6751
|
no: N2,
|
|
6752
6752
|
ota: x2,
|
|
6753
6753
|
pl: D2,
|
|
6754
|
-
ps:
|
|
6754
|
+
ps: Y2,
|
|
6755
6755
|
pt: $2,
|
|
6756
6756
|
ru: J2,
|
|
6757
6757
|
sl: M2,
|
|
@@ -6760,7 +6760,7 @@ const Xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6760
6760
|
th: G2,
|
|
6761
6761
|
tr: q2,
|
|
6762
6762
|
ua: ep,
|
|
6763
|
-
uk:
|
|
6763
|
+
uk: Yc,
|
|
6764
6764
|
ur: ip,
|
|
6765
6765
|
vi: tp,
|
|
6766
6766
|
yo: dp,
|
|
@@ -6902,7 +6902,7 @@ function xr(e, n) {
|
|
|
6902
6902
|
...C(n)
|
|
6903
6903
|
});
|
|
6904
6904
|
}
|
|
6905
|
-
function
|
|
6905
|
+
function Rr(e, n) {
|
|
6906
6906
|
return new e({
|
|
6907
6907
|
type: "string",
|
|
6908
6908
|
format: "cuid",
|
|
@@ -6911,7 +6911,7 @@ function Yr(e, n) {
|
|
|
6911
6911
|
...C(n)
|
|
6912
6912
|
});
|
|
6913
6913
|
}
|
|
6914
|
-
function
|
|
6914
|
+
function Yr(e, n) {
|
|
6915
6915
|
return new e({
|
|
6916
6916
|
type: "string",
|
|
6917
6917
|
format: "cuid2",
|
|
@@ -7225,7 +7225,7 @@ function hg(e, n) {
|
|
|
7225
7225
|
...C(n)
|
|
7226
7226
|
});
|
|
7227
7227
|
}
|
|
7228
|
-
function
|
|
7228
|
+
function Ln(e, n) {
|
|
7229
7229
|
return new pr({
|
|
7230
7230
|
check: "less_than",
|
|
7231
7231
|
...C(n),
|
|
@@ -7241,7 +7241,7 @@ function ze(e, n) {
|
|
|
7241
7241
|
inclusive: !0
|
|
7242
7242
|
});
|
|
7243
7243
|
}
|
|
7244
|
-
function
|
|
7244
|
+
function Pn(e, n) {
|
|
7245
7245
|
return new br({
|
|
7246
7246
|
check: "greater_than",
|
|
7247
7247
|
...C(n),
|
|
@@ -7258,10 +7258,10 @@ function ke(e, n) {
|
|
|
7258
7258
|
});
|
|
7259
7259
|
}
|
|
7260
7260
|
function fg(e) {
|
|
7261
|
-
return
|
|
7261
|
+
return Pn(0, e);
|
|
7262
7262
|
}
|
|
7263
7263
|
function pg(e) {
|
|
7264
|
-
return
|
|
7264
|
+
return Ln(0, e);
|
|
7265
7265
|
}
|
|
7266
7266
|
function bg(e) {
|
|
7267
7267
|
return ze(0, e);
|
|
@@ -7638,7 +7638,7 @@ function Zi(e, n, a, t = {}) {
|
|
|
7638
7638
|
};
|
|
7639
7639
|
return a instanceof RegExp && (r.pattern = a), new e(r);
|
|
7640
7640
|
}
|
|
7641
|
-
class
|
|
7641
|
+
class Yt {
|
|
7642
7642
|
constructor(n) {
|
|
7643
7643
|
this.counter = 0, this.metadataRegistry = n?.metadata ?? In, this.target = n?.target ?? "draft-2020-12", this.unrepresentable = n?.unrepresentable ?? "throw", this.override = n?.override ?? (() => {
|
|
7644
7644
|
}), this.io = n?.io ?? "output", this.seen = /* @__PURE__ */ new Map();
|
|
@@ -7937,7 +7937,7 @@ class Rt {
|
|
|
7937
7937
|
}
|
|
7938
7938
|
}
|
|
7939
7939
|
const A = this.metadataRegistry.get(n);
|
|
7940
|
-
return A && Object.assign(s.schema, A), this.io === "input" &&
|
|
7940
|
+
return A && Object.assign(s.schema, A), this.io === "input" && ue(n) && (delete s.schema.examples, delete s.schema.default), this.io === "input" && s.schema._prefault && ((t = s.schema).default ?? (t.default = s.schema._prefault)), delete s.schema._prefault, this.seen.get(n).schema;
|
|
7941
7941
|
}
|
|
7942
7942
|
emit(n, a) {
|
|
7943
7943
|
const t = {
|
|
@@ -8047,7 +8047,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8047
8047
|
}
|
|
8048
8048
|
function Lg(e, n) {
|
|
8049
8049
|
if (e instanceof kr) {
|
|
8050
|
-
const t = new
|
|
8050
|
+
const t = new Yt(n), i = {};
|
|
8051
8051
|
for (const s of e._idmap.entries()) {
|
|
8052
8052
|
const [g, A] = s;
|
|
8053
8053
|
t.process(A);
|
|
@@ -8072,10 +8072,10 @@ function Lg(e, n) {
|
|
|
8072
8072
|
}
|
|
8073
8073
|
return { schemas: r };
|
|
8074
8074
|
}
|
|
8075
|
-
const a = new
|
|
8075
|
+
const a = new Yt(n);
|
|
8076
8076
|
return a.process(e), a.emit(e, n);
|
|
8077
8077
|
}
|
|
8078
|
-
function
|
|
8078
|
+
function ue(e, n) {
|
|
8079
8079
|
const a = n ?? { seen: /* @__PURE__ */ new Set() };
|
|
8080
8080
|
if (a.seen.has(e))
|
|
8081
8081
|
return !1;
|
|
@@ -8101,52 +8101,52 @@ function se(e, n) {
|
|
|
8101
8101
|
case "template_literal":
|
|
8102
8102
|
return !1;
|
|
8103
8103
|
case "array":
|
|
8104
|
-
return
|
|
8104
|
+
return ue(i.element, a);
|
|
8105
8105
|
case "object": {
|
|
8106
8106
|
for (const r in i.shape)
|
|
8107
|
-
if (
|
|
8107
|
+
if (ue(i.shape[r], a))
|
|
8108
8108
|
return !0;
|
|
8109
8109
|
return !1;
|
|
8110
8110
|
}
|
|
8111
8111
|
case "union": {
|
|
8112
8112
|
for (const r of i.options)
|
|
8113
|
-
if (
|
|
8113
|
+
if (ue(r, a))
|
|
8114
8114
|
return !0;
|
|
8115
8115
|
return !1;
|
|
8116
8116
|
}
|
|
8117
8117
|
case "intersection":
|
|
8118
|
-
return
|
|
8118
|
+
return ue(i.left, a) || ue(i.right, a);
|
|
8119
8119
|
case "tuple": {
|
|
8120
8120
|
for (const r of i.items)
|
|
8121
|
-
if (
|
|
8121
|
+
if (ue(r, a))
|
|
8122
8122
|
return !0;
|
|
8123
|
-
return !!(i.rest &&
|
|
8123
|
+
return !!(i.rest && ue(i.rest, a));
|
|
8124
8124
|
}
|
|
8125
8125
|
case "record":
|
|
8126
|
-
return
|
|
8126
|
+
return ue(i.keyType, a) || ue(i.valueType, a);
|
|
8127
8127
|
case "map":
|
|
8128
|
-
return
|
|
8128
|
+
return ue(i.keyType, a) || ue(i.valueType, a);
|
|
8129
8129
|
case "set":
|
|
8130
|
-
return
|
|
8130
|
+
return ue(i.valueType, a);
|
|
8131
8131
|
// inner types
|
|
8132
8132
|
case "promise":
|
|
8133
8133
|
case "optional":
|
|
8134
8134
|
case "nonoptional":
|
|
8135
8135
|
case "nullable":
|
|
8136
8136
|
case "readonly":
|
|
8137
|
-
return
|
|
8137
|
+
return ue(i.innerType, a);
|
|
8138
8138
|
case "lazy":
|
|
8139
|
-
return
|
|
8139
|
+
return ue(i.getter(), a);
|
|
8140
8140
|
case "default":
|
|
8141
|
-
return
|
|
8141
|
+
return ue(i.innerType, a);
|
|
8142
8142
|
case "prefault":
|
|
8143
|
-
return
|
|
8143
|
+
return ue(i.innerType, a);
|
|
8144
8144
|
case "custom":
|
|
8145
8145
|
return !1;
|
|
8146
8146
|
case "transform":
|
|
8147
8147
|
return !0;
|
|
8148
8148
|
case "pipe":
|
|
8149
|
-
return
|
|
8149
|
+
return ue(i.in, a) || ue(i.out, a);
|
|
8150
8150
|
case "success":
|
|
8151
8151
|
return !1;
|
|
8152
8152
|
case "catch":
|
|
@@ -8158,7 +8158,7 @@ function se(e, n) {
|
|
|
8158
8158
|
}
|
|
8159
8159
|
const xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8160
8160
|
__proto__: null
|
|
8161
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8161
|
+
}, Symbol.toStringTag, { value: "Module" })), Rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8162
8162
|
__proto__: null,
|
|
8163
8163
|
$ZodAny: Kd,
|
|
8164
8164
|
$ZodArray: tc,
|
|
@@ -8212,10 +8212,10 @@ const xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8212
8212
|
$ZodGUID: wd,
|
|
8213
8213
|
$ZodIPv4: Dd,
|
|
8214
8214
|
$ZodIPv6: Od,
|
|
8215
|
-
$ZodISODate:
|
|
8215
|
+
$ZodISODate: Rd,
|
|
8216
8216
|
$ZodISODateTime: xd,
|
|
8217
8217
|
$ZodISODuration: Xd,
|
|
8218
|
-
$ZodISOTime:
|
|
8218
|
+
$ZodISOTime: Yd,
|
|
8219
8219
|
$ZodIntersection: dc,
|
|
8220
8220
|
$ZodJWT: Qd,
|
|
8221
8221
|
$ZodKSUID: Zd,
|
|
@@ -8263,7 +8263,7 @@ const xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8263
8263
|
$output: Dc,
|
|
8264
8264
|
Doc: vd,
|
|
8265
8265
|
JSONSchema: xp,
|
|
8266
|
-
JSONSchemaGenerator:
|
|
8266
|
+
JSONSchemaGenerator: Yt,
|
|
8267
8267
|
NEVER: Bn,
|
|
8268
8268
|
TimePrecision: Jc,
|
|
8269
8269
|
_any: sg,
|
|
@@ -8281,8 +8281,8 @@ const xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8281
8281
|
_coercedDate: Ag,
|
|
8282
8282
|
_coercedNumber: Wc,
|
|
8283
8283
|
_coercedString: zc,
|
|
8284
|
-
_cuid:
|
|
8285
|
-
_cuid2:
|
|
8284
|
+
_cuid: Rr,
|
|
8285
|
+
_cuid2: Yr,
|
|
8286
8286
|
_custom: wg,
|
|
8287
8287
|
_date: gg,
|
|
8288
8288
|
_decode: or,
|
|
@@ -8299,7 +8299,7 @@ const xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8299
8299
|
_file: Ig,
|
|
8300
8300
|
_float32: Gc,
|
|
8301
8301
|
_float64: Vc,
|
|
8302
|
-
_gt:
|
|
8302
|
+
_gt: Pn,
|
|
8303
8303
|
_gte: ke,
|
|
8304
8304
|
_guid: Za,
|
|
8305
8305
|
_includes: _r,
|
|
@@ -8319,7 +8319,7 @@ const xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8319
8319
|
_length: Va,
|
|
8320
8320
|
_literal: vp,
|
|
8321
8321
|
_lowercase: Gr,
|
|
8322
|
-
_lt:
|
|
8322
|
+
_lt: Ln,
|
|
8323
8323
|
_lte: ze,
|
|
8324
8324
|
_map: pp,
|
|
8325
8325
|
_max: ze,
|
|
@@ -8426,13 +8426,13 @@ function Pg(e) {
|
|
|
8426
8426
|
return Hc(ro, e);
|
|
8427
8427
|
}
|
|
8428
8428
|
const oo = /* @__PURE__ */ w("ZodISODate", (e, n) => {
|
|
8429
|
-
|
|
8429
|
+
Rd.init(e, n), V.init(e, n);
|
|
8430
8430
|
});
|
|
8431
8431
|
function Tg(e) {
|
|
8432
8432
|
return Mc(oo, e);
|
|
8433
8433
|
}
|
|
8434
8434
|
const uo = /* @__PURE__ */ w("ZodISOTime", (e, n) => {
|
|
8435
|
-
|
|
8435
|
+
Yd.init(e, n), V.init(e, n);
|
|
8436
8436
|
});
|
|
8437
8437
|
function Eg(e) {
|
|
8438
8438
|
return Fc(uo, e);
|
|
@@ -8443,7 +8443,7 @@ const so = /* @__PURE__ */ w("ZodISODuration", (e, n) => {
|
|
|
8443
8443
|
function Ng(e) {
|
|
8444
8444
|
return Bc(so, e);
|
|
8445
8445
|
}
|
|
8446
|
-
const
|
|
8446
|
+
const Yp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8447
8447
|
__proto__: null,
|
|
8448
8448
|
ZodISODate: oo,
|
|
8449
8449
|
ZodISODateTime: ro,
|
|
@@ -8484,12 +8484,12 @@ const Rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8484
8484
|
});
|
|
8485
8485
|
}, Xp = w("ZodError", Zg), Le = w("ZodError", Zg, {
|
|
8486
8486
|
Parent: Error
|
|
8487
|
-
}), xg = /* @__PURE__ */ Si(Le),
|
|
8487
|
+
}), xg = /* @__PURE__ */ Si(Le), Rg = /* @__PURE__ */ ki(Le), Yg = /* @__PURE__ */ Ci(Le), Xg = /* @__PURE__ */ Li(Le), Dg = /* @__PURE__ */ rr(Le), Og = /* @__PURE__ */ or(Le), $g = /* @__PURE__ */ ur(Le), zg = /* @__PURE__ */ sr(Le), Jg = /* @__PURE__ */ lr(Le), Hg = /* @__PURE__ */ dr(Le), Mg = /* @__PURE__ */ cr(Le), Fg = /* @__PURE__ */ gr(Le), $ = /* @__PURE__ */ w("ZodType", (e, n) => (O.init(e, n), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.check = (...a) => e.clone(un(n, {
|
|
8488
8488
|
checks: [
|
|
8489
8489
|
...n.checks ?? [],
|
|
8490
8490
|
...a.map((t) => typeof t == "function" ? { _zod: { check: t, def: { check: "custom" }, onattach: [] } } : t)
|
|
8491
8491
|
]
|
|
8492
|
-
})), e.clone = (a, t) => xe(e, a, t), e.brand = () => e, e.register = ((a, t) => (a.add(e, t), e)), e.parse = (a, t) => xg(e, a, t, { callee: e.parse }), e.safeParse = (a, t) =>
|
|
8492
|
+
})), e.clone = (a, t) => xe(e, a, t), e.brand = () => e, e.register = ((a, t) => (a.add(e, t), e)), e.parse = (a, t) => xg(e, a, t, { callee: e.parse }), e.safeParse = (a, t) => Yg(e, a, t), e.parseAsync = async (a, t) => Rg(e, a, t, { callee: e.parseAsync }), e.safeParseAsync = async (a, t) => Xg(e, a, t), e.spa = e.safeParseAsync, e.encode = (a, t) => Dg(e, a, t), e.decode = (a, t) => Og(e, a, t), e.encodeAsync = async (a, t) => $g(e, a, t), e.decodeAsync = async (a, t) => zg(e, a, t), e.safeEncode = (a, t) => Jg(e, a, t), e.safeDecode = (a, t) => Hg(e, a, t), e.safeEncodeAsync = async (a, t) => Mg(e, a, t), e.safeDecodeAsync = async (a, t) => Fg(e, a, t), e.refine = (a, t) => e.check(TA(a, t)), e.superRefine = (a) => e.check(EA(a)), e.overwrite = (a) => e.check(Nn(a)), e.optional = () => Ya(e), e.nullable = () => Xa(e), e.nullish = () => Ya(Xa(e)), e.nonoptional = (a) => bA(e, a), e.array = () => ai(e), e.or = (a) => Zo([e, a]), e.and = (a) => aA(e, a), e.transform = (a) => Da(e, Yo(a)), e.default = (a) => hA(e, a), e.prefault = (a) => pA(e, a), e.catch = (a) => vA(e, a), e.pipe = (a) => Da(e, a), e.readonly = () => jA(e), e.describe = (a) => {
|
|
8493
8493
|
const t = e.clone();
|
|
8494
8494
|
return In.add(t, { description: a }), t;
|
|
8495
8495
|
}, Object.defineProperty(e, "description", {
|
|
@@ -8507,7 +8507,7 @@ const Rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8507
8507
|
const a = e._zod.bag;
|
|
8508
8508
|
e.format = a.format ?? null, e.minLength = a.minimum ?? null, e.maxLength = a.maximum ?? null, e.regex = (...t) => e.check(Ur(...t)), e.includes = (...t) => e.check(_r(...t)), e.startsWith = (...t) => e.check(qr(...t)), e.endsWith = (...t) => e.check(Kr(...t)), e.min = (...t) => e.check(Vn(...t)), e.max = (...t) => e.check(Ga(...t)), e.length = (...t) => e.check(Va(...t)), e.nonempty = (...t) => e.check(Vn(1, ...t)), e.lowercase = (t) => e.check(Gr(t)), e.uppercase = (t) => e.check(Vr(t)), e.trim = () => e.check(io()), e.normalize = (...t) => e.check(no(...t)), e.toLowerCase = () => e.check(ao()), e.toUpperCase = () => e.check(to());
|
|
8509
8509
|
}), _a = /* @__PURE__ */ w("ZodString", (e, n) => {
|
|
8510
|
-
Ni.init(e, n), lo.init(e, n), e.email = (a) => e.check(Lr(co, a)), e.url = (a) => e.check(Wa(qa, a)), e.jwt = (a) => e.check(Qr(Co, a)), e.emoji = (a) => e.check(Zr(go, a)), e.guid = (a) => e.check(Za(xa, a)), e.uuid = (a) => e.check(Pr(en, a)), e.uuidv4 = (a) => e.check(Tr(en, a)), e.uuidv6 = (a) => e.check(Er(en, a)), e.uuidv7 = (a) => e.check(Nr(en, a)), e.nanoid = (a) => e.check(xr(Ao, a)), e.guid = (a) => e.check(Za(xa, a)), e.cuid = (a) => e.check(
|
|
8510
|
+
Ni.init(e, n), lo.init(e, n), e.email = (a) => e.check(Lr(co, a)), e.url = (a) => e.check(Wa(qa, a)), e.jwt = (a) => e.check(Qr(Co, a)), e.emoji = (a) => e.check(Zr(go, a)), e.guid = (a) => e.check(Za(xa, a)), e.uuid = (a) => e.check(Pr(en, a)), e.uuidv4 = (a) => e.check(Tr(en, a)), e.uuidv6 = (a) => e.check(Er(en, a)), e.uuidv7 = (a) => e.check(Nr(en, a)), e.nanoid = (a) => e.check(xr(Ao, a)), e.guid = (a) => e.check(Za(xa, a)), e.cuid = (a) => e.check(Rr(ho, a)), e.cuid2 = (a) => e.check(Yr(fo, a)), e.ulid = (a) => e.check(Xr(po, a)), e.base64 = (a) => e.check(Mr(jo, a)), e.base64url = (a) => e.check(Fr(So, a)), e.xid = (a) => e.check(Dr(bo, a)), e.ksuid = (a) => e.check(Or(mo, a)), e.ipv4 = (a) => e.check($r(yo, a)), e.ipv6 = (a) => e.check(zr(vo, a)), e.cidrv4 = (a) => e.check(Jr(Io, a)), e.cidrv6 = (a) => e.check(Hr(wo, a)), e.e164 = (a) => e.check(Br(ko, a)), e.datetime = (a) => e.check(Pg(a)), e.date = (a) => e.check(Tg(a)), e.time = (a) => e.check(Eg(a)), e.duration = (a) => e.check(Ng(a));
|
|
8511
8511
|
});
|
|
8512
8512
|
function Ge(e) {
|
|
8513
8513
|
return $c(_a, e);
|
|
@@ -8570,13 +8570,13 @@ const ho = /* @__PURE__ */ w("ZodCUID", (e, n) => {
|
|
|
8570
8570
|
Pd.init(e, n), V.init(e, n);
|
|
8571
8571
|
});
|
|
8572
8572
|
function Wp(e) {
|
|
8573
|
-
return
|
|
8573
|
+
return Rr(ho, e);
|
|
8574
8574
|
}
|
|
8575
8575
|
const fo = /* @__PURE__ */ w("ZodCUID2", (e, n) => {
|
|
8576
8576
|
Td.init(e, n), V.init(e, n);
|
|
8577
8577
|
});
|
|
8578
8578
|
function Up(e) {
|
|
8579
|
-
return
|
|
8579
|
+
return Yr(fo, e);
|
|
8580
8580
|
}
|
|
8581
8581
|
const po = /* @__PURE__ */ w("ZodULID", (e, n) => {
|
|
8582
8582
|
Ed.init(e, n), V.init(e, n);
|
|
@@ -8663,7 +8663,7 @@ function l1(e, n) {
|
|
|
8663
8663
|
return Zi(xi, t, i, n);
|
|
8664
8664
|
}
|
|
8665
8665
|
const Ka = /* @__PURE__ */ w("ZodNumber", (e, n) => {
|
|
8666
|
-
yr.init(e, n), $.init(e, n), e.gt = (t, i) => e.check(
|
|
8666
|
+
yr.init(e, n), $.init(e, n), e.gt = (t, i) => e.check(Pn(t, i)), e.gte = (t, i) => e.check(ke(t, i)), e.min = (t, i) => e.check(ke(t, i)), e.lt = (t, i) => e.check(Ln(t, i)), e.lte = (t, i) => e.check(ze(t, i)), e.max = (t, i) => e.check(ze(t, i)), e.int = (t) => e.check(Xt(t)), e.safe = (t) => e.check(Xt(t)), e.positive = (t) => e.check(Pn(0, t)), e.nonnegative = (t) => e.check(ke(0, t)), e.negative = (t) => e.check(Ln(0, t)), e.nonpositive = (t) => e.check(ze(0, t)), e.multipleOf = (t, i) => e.check(yi(t, i)), e.step = (t, i) => e.check(yi(t, i)), e.finite = () => e;
|
|
8667
8667
|
const a = e._zod.bag;
|
|
8668
8668
|
e.minValue = Math.max(a.minimum ?? Number.NEGATIVE_INFINITY, a.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(a.maximum ?? Number.POSITIVE_INFINITY, a.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (a.format ?? "").includes("int") || Number.isSafeInteger(a.multipleOf ?? 0.5), e.isFinite = !0, e.format = a.format ?? null;
|
|
8669
8669
|
});
|
|
@@ -8691,11 +8691,11 @@ function A1(e) {
|
|
|
8691
8691
|
const et = /* @__PURE__ */ w("ZodBoolean", (e, n) => {
|
|
8692
8692
|
vr.init(e, n), $.init(e, n);
|
|
8693
8693
|
});
|
|
8694
|
-
function
|
|
8694
|
+
function Ra(e) {
|
|
8695
8695
|
return Kc(et, e);
|
|
8696
8696
|
}
|
|
8697
8697
|
const nt = /* @__PURE__ */ w("ZodBigInt", (e, n) => {
|
|
8698
|
-
Ir.init(e, n), $.init(e, n), e.gte = (t, i) => e.check(ke(t, i)), e.min = (t, i) => e.check(ke(t, i)), e.gt = (t, i) => e.check(
|
|
8698
|
+
Ir.init(e, n), $.init(e, n), e.gte = (t, i) => e.check(ke(t, i)), e.min = (t, i) => e.check(ke(t, i)), e.gt = (t, i) => e.check(Pn(t, i)), e.gte = (t, i) => e.check(ke(t, i)), e.min = (t, i) => e.check(ke(t, i)), e.lt = (t, i) => e.check(Ln(t, i)), e.lte = (t, i) => e.check(ze(t, i)), e.max = (t, i) => e.check(ze(t, i)), e.positive = (t) => e.check(Pn(BigInt(0), t)), e.negative = (t) => e.check(Ln(BigInt(0), t)), e.nonpositive = (t) => e.check(ze(BigInt(0), t)), e.nonnegative = (t) => e.check(ke(BigInt(0), t)), e.multipleOf = (t, i) => e.check(yi(t, i));
|
|
8699
8699
|
const a = e._zod.bag;
|
|
8700
8700
|
e.minValue = a.minimum ?? null, e.maxValue = a.maximum ?? null, e.format = a.format ?? null;
|
|
8701
8701
|
});
|
|
@@ -8769,10 +8769,10 @@ function ai(e, n) {
|
|
|
8769
8769
|
}
|
|
8770
8770
|
function w1(e) {
|
|
8771
8771
|
const n = e._zod.def.shape;
|
|
8772
|
-
return
|
|
8772
|
+
return Ro(Object.keys(n));
|
|
8773
8773
|
}
|
|
8774
8774
|
const it = /* @__PURE__ */ w("ZodObject", (e, n) => {
|
|
8775
|
-
sc.init(e, n), $.init(e, n), H(e, "shape", () => n.shape), e.keyof = () =>
|
|
8775
|
+
sc.init(e, n), $.init(e, n), H(e, "shape", () => n.shape), e.keyof = () => Ro(Object.keys(e._zod.def.shape)), e.catchall = (a) => e.clone({ ...e._zod.def, catchall: a }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: _n() }), e.loose = () => e.clone({ ...e._zod.def, catchall: _n() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Po() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (a) => sl(e, a), e.safeExtend = (a) => ll(e, a), e.merge = (a) => dl(e, a), e.pick = (a) => ol(e, a), e.omit = (a) => ul(e, a), e.partial = (...a) => cl(Xo, e, a[0]), e.required = (...a) => gl(Do, e, a[0]);
|
|
8776
8776
|
});
|
|
8777
8777
|
function Eo(e, n) {
|
|
8778
8778
|
const a = {
|
|
@@ -8916,7 +8916,7 @@ const Ii = /* @__PURE__ */ w("ZodEnum", (e, n) => {
|
|
|
8916
8916
|
});
|
|
8917
8917
|
};
|
|
8918
8918
|
});
|
|
8919
|
-
function
|
|
8919
|
+
function Ro(e, n) {
|
|
8920
8920
|
const a = Array.isArray(e) ? Object.fromEntries(e.map((t) => [t, t])) : e;
|
|
8921
8921
|
return new Ii({
|
|
8922
8922
|
type: "enum",
|
|
@@ -8969,7 +8969,7 @@ const cA = /* @__PURE__ */ w("ZodTransform", (e, n) => {
|
|
|
8969
8969
|
return i instanceof Promise ? i.then((r) => (a.value = r, a)) : (a.value = i, a);
|
|
8970
8970
|
};
|
|
8971
8971
|
});
|
|
8972
|
-
function
|
|
8972
|
+
function Yo(e) {
|
|
8973
8973
|
return new cA({
|
|
8974
8974
|
type: "transform",
|
|
8975
8975
|
transform: e
|
|
@@ -8978,7 +8978,7 @@ function Ro(e) {
|
|
|
8978
8978
|
const Xo = /* @__PURE__ */ w("ZodOptional", (e, n) => {
|
|
8979
8979
|
mc.init(e, n), $.init(e, n), e.unwrap = () => e._zod.def.innerType;
|
|
8980
8980
|
});
|
|
8981
|
-
function
|
|
8981
|
+
function Ya(e) {
|
|
8982
8982
|
return new Xo({
|
|
8983
8983
|
type: "optional",
|
|
8984
8984
|
innerType: e
|
|
@@ -8994,7 +8994,7 @@ function Xa(e) {
|
|
|
8994
8994
|
});
|
|
8995
8995
|
}
|
|
8996
8996
|
function Z1(e) {
|
|
8997
|
-
return
|
|
8997
|
+
return Ya(Xa(e));
|
|
8998
8998
|
}
|
|
8999
8999
|
const AA = /* @__PURE__ */ w("ZodDefault", (e, n) => {
|
|
9000
9000
|
vc.init(e, n), $.init(e, n), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
@@ -9052,7 +9052,7 @@ function vA(e, n) {
|
|
|
9052
9052
|
const IA = /* @__PURE__ */ w("ZodNaN", (e, n) => {
|
|
9053
9053
|
kc.init(e, n), $.init(e, n);
|
|
9054
9054
|
});
|
|
9055
|
-
function
|
|
9055
|
+
function R1(e) {
|
|
9056
9056
|
return hg(IA, e);
|
|
9057
9057
|
}
|
|
9058
9058
|
const Oo = /* @__PURE__ */ w("ZodPipe", (e, n) => {
|
|
@@ -9069,7 +9069,7 @@ function Da(e, n) {
|
|
|
9069
9069
|
const $o = /* @__PURE__ */ w("ZodCodec", (e, n) => {
|
|
9070
9070
|
Oo.init(e, n), Sr.init(e, n);
|
|
9071
9071
|
});
|
|
9072
|
-
function
|
|
9072
|
+
function Y1(e, n, a) {
|
|
9073
9073
|
return new $o({
|
|
9074
9074
|
type: "pipe",
|
|
9075
9075
|
in: e,
|
|
@@ -9162,11 +9162,11 @@ const J1 = (...e) => Cg({
|
|
|
9162
9162
|
String: _a
|
|
9163
9163
|
}, ...e);
|
|
9164
9164
|
function H1(e) {
|
|
9165
|
-
const n = CA(() => Zo([Ge(e), Bg(),
|
|
9165
|
+
const n = CA(() => Zo([Ge(e), Bg(), Ra(), Gg(), ai(n), oA(Ge(), n)]));
|
|
9166
9166
|
return n;
|
|
9167
9167
|
}
|
|
9168
9168
|
function NA(e, n) {
|
|
9169
|
-
return Da(
|
|
9169
|
+
return Da(Yo(e), n);
|
|
9170
9170
|
}
|
|
9171
9171
|
const M1 = {
|
|
9172
9172
|
invalid_type: "invalid_type",
|
|
@@ -9305,16 +9305,16 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9305
9305
|
base64: i1,
|
|
9306
9306
|
base64url: a1,
|
|
9307
9307
|
bigint: h1,
|
|
9308
|
-
boolean:
|
|
9308
|
+
boolean: Ra,
|
|
9309
9309
|
catch: vA,
|
|
9310
9310
|
check: O1,
|
|
9311
9311
|
cidrv4: e1,
|
|
9312
9312
|
cidrv6: n1,
|
|
9313
9313
|
clone: xe,
|
|
9314
|
-
codec:
|
|
9314
|
+
codec: Y1,
|
|
9315
9315
|
coerce: _1,
|
|
9316
9316
|
config: me,
|
|
9317
|
-
core:
|
|
9317
|
+
core: Rp,
|
|
9318
9318
|
cuid: Wp,
|
|
9319
9319
|
cuid2: Up,
|
|
9320
9320
|
custom: $1,
|
|
@@ -9328,7 +9328,7 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9328
9328
|
encode: Dg,
|
|
9329
9329
|
encodeAsync: $g,
|
|
9330
9330
|
endsWith: Kr,
|
|
9331
|
-
enum:
|
|
9331
|
+
enum: Ro,
|
|
9332
9332
|
file: N1,
|
|
9333
9333
|
flattenError: ar,
|
|
9334
9334
|
float32: d1,
|
|
@@ -9337,7 +9337,7 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9337
9337
|
function: wu,
|
|
9338
9338
|
getErrorMap: B1,
|
|
9339
9339
|
globalRegistry: In,
|
|
9340
|
-
gt:
|
|
9340
|
+
gt: Pn,
|
|
9341
9341
|
gte: ke,
|
|
9342
9342
|
guid: Op,
|
|
9343
9343
|
hash: l1,
|
|
@@ -9352,7 +9352,7 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9352
9352
|
intersection: aA,
|
|
9353
9353
|
ipv4: qp,
|
|
9354
9354
|
ipv6: Kp,
|
|
9355
|
-
iso:
|
|
9355
|
+
iso: Yp,
|
|
9356
9356
|
json: H1,
|
|
9357
9357
|
jwt: r1,
|
|
9358
9358
|
keyof: w1,
|
|
@@ -9363,7 +9363,7 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9363
9363
|
locales: Xc,
|
|
9364
9364
|
looseObject: S1,
|
|
9365
9365
|
lowercase: Gr,
|
|
9366
|
-
lt:
|
|
9366
|
+
lt: Ln,
|
|
9367
9367
|
lte: ze,
|
|
9368
9368
|
map: L1,
|
|
9369
9369
|
maxLength: Ga,
|
|
@@ -9372,7 +9372,7 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9372
9372
|
minLength: Vn,
|
|
9373
9373
|
minSize: vi,
|
|
9374
9374
|
multipleOf: yi,
|
|
9375
|
-
nan:
|
|
9375
|
+
nan: R1,
|
|
9376
9376
|
nanoid: Qp,
|
|
9377
9377
|
nativeEnum: T1,
|
|
9378
9378
|
negative: pg,
|
|
@@ -9386,10 +9386,10 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9386
9386
|
nullish: Z1,
|
|
9387
9387
|
number: Bg,
|
|
9388
9388
|
object: Eo,
|
|
9389
|
-
optional:
|
|
9389
|
+
optional: Ya,
|
|
9390
9390
|
overwrite: Nn,
|
|
9391
9391
|
parse: xg,
|
|
9392
|
-
parseAsync:
|
|
9392
|
+
parseAsync: Rg,
|
|
9393
9393
|
partialRecord: C1,
|
|
9394
9394
|
pipe: Da,
|
|
9395
9395
|
positive: fg,
|
|
@@ -9408,7 +9408,7 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9408
9408
|
safeDecodeAsync: Fg,
|
|
9409
9409
|
safeEncode: Jg,
|
|
9410
9410
|
safeEncodeAsync: Mg,
|
|
9411
|
-
safeParse:
|
|
9411
|
+
safeParse: Yg,
|
|
9412
9412
|
safeParseAsync: Xg,
|
|
9413
9413
|
set: P1,
|
|
9414
9414
|
setErrorMap: F1,
|
|
@@ -9425,7 +9425,7 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9425
9425
|
toJSONSchema: Lg,
|
|
9426
9426
|
toLowerCase: ao,
|
|
9427
9427
|
toUpperCase: to,
|
|
9428
|
-
transform:
|
|
9428
|
+
transform: Yo,
|
|
9429
9429
|
treeifyError: bl,
|
|
9430
9430
|
trim: io,
|
|
9431
9431
|
tuple: rA,
|
|
@@ -9629,7 +9629,7 @@ Eo({
|
|
|
9629
9629
|
markdown: Ge().nullable()
|
|
9630
9630
|
});
|
|
9631
9631
|
L.LINKS, L.CURRENCY, L.FULL_NAME, L.ADDRESS, L.ACTOR, L.EMAILS, L.PHONES, L.RICH_TEXT;
|
|
9632
|
-
var xA = /* @__PURE__ */ ((e) => (e.COPY = "COPY", e.OPEN_LINK = "OPEN_LINK", e.OPEN_IN_APP = "OPEN_IN_APP", e))(xA || {}),
|
|
9632
|
+
var xA = /* @__PURE__ */ ((e) => (e.COPY = "COPY", e.OPEN_LINK = "OPEN_LINK", e.OPEN_IN_APP = "OPEN_IN_APP", e))(xA || {}), RA = /* @__PURE__ */ ((e) => (e.FLOAT = "float", e.INT = "int", e.BIGINT = "bigint", e))(RA || {}), YA = /* @__PURE__ */ ((e) => (e.RELATIVE = "RELATIVE", e.USER_SETTINGS = "USER_SETTINGS", e.CUSTOM = "CUSTOM", e))(YA || {}), Oe = /* @__PURE__ */ ((e) => (e.ProfilePicture = "profile-picture", e.WorkspaceLogo = "workspace-logo", e.Attachment = "attachment", e.PersonPicture = "person-picture", e.CorePicture = "core-picture", e.File = "file", e.AgentChat = "agent-chat", e.BuiltLogicFunction = "built-logic-function", e.BuiltFrontComponent = "built-front-component", e.PublicAsset = "public-asset", e.Source = "source", e.FilesField = "files-field", e.Dependencies = "dependencies", e.Workflow = "workflow", e.EmailAttachment = "email-attachment", e.AppTarball = "app-tarball", e.GeneratedSdkClient = "generated-sdk-client", e))(Oe || {}), XA = /* @__PURE__ */ ((e) => (e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e))(XA || {}), DA = /* @__PURE__ */ ((e) => (e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e))(DA || {}), OA = /* @__PURE__ */ ((e) => (e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e))(OA || {}), zo = /* @__PURE__ */ ((e) => (e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e))(zo || {}), $A = /* @__PURE__ */ ((e) => (e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e))($A || {}), zA = /* @__PURE__ */ ((e) => (e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e))(zA || {}), JA = /* @__PURE__ */ ((e) => (e.INDEX = "INDEX", e))(JA || {}), HA = /* @__PURE__ */ ((e) => (e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e))(HA || {}), Jn = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(Jn || {}), MA = /* @__PURE__ */ ((e) => (e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e))(MA || {}), FA = /* @__PURE__ */ ((e) => (e.WORKSPACE = "WORKSPACE", e.UNLISTED = "UNLISTED", e))(FA || {});
|
|
9633
9633
|
const ob = "twenty-client-sdk", BA = async ({
|
|
9634
9634
|
result: e,
|
|
9635
9635
|
appPath: n,
|
|
@@ -9725,7 +9725,7 @@ const ob = "twenty-client-sdk", BA = async ({
|
|
|
9725
9725
|
}, WA = [
|
|
9726
9726
|
"twenty-client-sdk/core",
|
|
9727
9727
|
"twenty-client-sdk/metadata"
|
|
9728
|
-
],
|
|
9728
|
+
], te = ({
|
|
9729
9729
|
config: e,
|
|
9730
9730
|
errors: n = [],
|
|
9731
9731
|
warnings: a = []
|
|
@@ -9738,12 +9738,12 @@ const ob = "twenty-client-sdk", BA = async ({
|
|
|
9738
9738
|
const n = [], a = [];
|
|
9739
9739
|
return e.universalIdentifier || n.push("Agent must have a universalIdentifier"), e.name || n.push("Agent must have a name"), e.label || n.push("Agent must have a label"), e.prompt || n.push("Agent must have a prompt"), e.responseFormat || a.push(
|
|
9740
9740
|
`Agent '${e.name}' has no responseFormat, it will default to { type: 'text' }. Set it explicitly to control the agent's output shape.`
|
|
9741
|
-
),
|
|
9741
|
+
), te({ config: e, errors: n, warnings: a });
|
|
9742
9742
|
}, hb = (e) => {
|
|
9743
9743
|
const n = [], a = [];
|
|
9744
9744
|
return e.universalIdentifier || n.push("Application must have a universalIdentifier"), (!e.displayName || e.displayName.length === 0) && n.push("Application must have a non empty display name"), e.defaultRoleUniversalIdentifier && a.push(
|
|
9745
9745
|
"`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead."
|
|
9746
|
-
),
|
|
9746
|
+
), te({
|
|
9747
9747
|
config: e,
|
|
9748
9748
|
errors: n,
|
|
9749
9749
|
warnings: a
|
|
@@ -9763,7 +9763,7 @@ const ob = "twenty-client-sdk", BA = async ({
|
|
|
9763
9763
|
const n = [];
|
|
9764
9764
|
e.objectUniversalIdentifier || n.push("Field must have an objectUniversalIdentifier");
|
|
9765
9765
|
const a = Jo([e]);
|
|
9766
|
-
return n.push(...a),
|
|
9766
|
+
return n.push(...a), te({
|
|
9767
9767
|
config: e,
|
|
9768
9768
|
errors: n
|
|
9769
9769
|
});
|
|
@@ -9773,7 +9773,7 @@ const ob = "twenty-client-sdk", BA = async ({
|
|
|
9773
9773
|
"CommandMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this command opens)"
|
|
9774
9774
|
), e.icon && a.push(
|
|
9775
9775
|
"CommandMenuItem icon will be ignored in favor of application icon, you should remove it"
|
|
9776
|
-
),
|
|
9776
|
+
), te({ config: e, errors: n, warnings: a });
|
|
9777
9777
|
}, bb = (e) => e === "then", mb = (e) => typeof e == "symbol", B = (e) => {
|
|
9778
9778
|
const n = () => {
|
|
9779
9779
|
throw new Error(
|
|
@@ -9820,9 +9820,9 @@ const ob = "twenty-client-sdk", BA = async ({
|
|
|
9820
9820
|
"canImpersonate"
|
|
9821
9821
|
), xb = B(
|
|
9822
9822
|
"canAccessFullAdminPanel"
|
|
9823
|
-
), Yb = B(
|
|
9824
|
-
"objectMetadataItem"
|
|
9825
9823
|
), Rb = B(
|
|
9824
|
+
"objectMetadataItem"
|
|
9825
|
+
), Yb = B(
|
|
9826
9826
|
"objectMetadataLabel"
|
|
9827
9827
|
), Xb = B("isDefined"), Db = B(
|
|
9828
9828
|
"isNonEmptyString"
|
|
@@ -9832,11 +9832,11 @@ const ob = "twenty-client-sdk", BA = async ({
|
|
|
9832
9832
|
"includesEvery"
|
|
9833
9833
|
), Vb = (e) => {
|
|
9834
9834
|
const n = [];
|
|
9835
|
-
return e.universalIdentifier || n.push("Front component must have a universalIdentifier"), e.component || n.push("Front component must have a component"), typeof e.component != "function" && n.push("Front component component must be a React component"),
|
|
9835
|
+
return e.universalIdentifier || n.push("Front component must have a universalIdentifier"), e.component || n.push("Front component must have a component"), typeof e.component != "function" && n.push("Front component component must be a React component"), te({
|
|
9836
9836
|
config: e,
|
|
9837
9837
|
errors: n
|
|
9838
9838
|
});
|
|
9839
|
-
},
|
|
9839
|
+
}, de = (e) => !tf(e) && !rf(e);
|
|
9840
9840
|
var Ee = "INUMBER", ti = "IOP1", ri = "IOP2", oi = "IOP3", tn = "IVAR", Tn = "IVARNAME", qn = "IFUNCALL", rt = "IFUNDEF", we = "IEXPR", Ho = "IEXPREVAL", Zn = "IMEMBER", ot = "IENDSTATEMENT", Kn = "IARRAY";
|
|
9841
9841
|
function M(e, n) {
|
|
9842
9842
|
this.type = e, this.value = n ?? 0;
|
|
@@ -10718,10 +10718,10 @@ function Zm(e, n) {
|
|
|
10718
10718
|
function xm(e) {
|
|
10719
10719
|
return arguments.length === 1 && Array.isArray(e) ? Math.max.apply(Math, e) : Math.max.apply(Math, arguments);
|
|
10720
10720
|
}
|
|
10721
|
-
function
|
|
10721
|
+
function Rm(e) {
|
|
10722
10722
|
return arguments.length === 1 && Array.isArray(e) ? Math.min.apply(Math, e) : Math.min.apply(Math, arguments);
|
|
10723
10723
|
}
|
|
10724
|
-
function
|
|
10724
|
+
function Ym(e, n) {
|
|
10725
10725
|
if (typeof e != "function")
|
|
10726
10726
|
throw new Error("First argument to map is not a function");
|
|
10727
10727
|
if (!Array.isArray(n))
|
|
@@ -10840,7 +10840,7 @@ function xn(e) {
|
|
|
10840
10840
|
}, this.functions = {
|
|
10841
10841
|
random: Cm,
|
|
10842
10842
|
fac: Cu,
|
|
10843
|
-
min:
|
|
10843
|
+
min: Rm,
|
|
10844
10844
|
max: xm,
|
|
10845
10845
|
hypot: Math.hypot || Lu,
|
|
10846
10846
|
pyt: Math.hypot || Lu,
|
|
@@ -10850,7 +10850,7 @@ function xn(e) {
|
|
|
10850
10850
|
if: Pu,
|
|
10851
10851
|
gamma: Uo,
|
|
10852
10852
|
roundTo: Em,
|
|
10853
|
-
map:
|
|
10853
|
+
map: Ym,
|
|
10854
10854
|
fold: Xm,
|
|
10855
10855
|
filter: Dm,
|
|
10856
10856
|
indexOf: Om,
|
|
@@ -10912,7 +10912,7 @@ xn.prototype.isOperatorEnabled = function(e) {
|
|
|
10912
10912
|
var n = Qm(e), a = this.options.operators || {};
|
|
10913
10913
|
return !(n in a) || !!a[n];
|
|
10914
10914
|
};
|
|
10915
|
-
var Vi = { exports: {} }, _i = { exports: {} },
|
|
10915
|
+
var Vi = { exports: {} }, _i = { exports: {} }, Ye = {}, ve = {}, Nu;
|
|
10916
10916
|
function je() {
|
|
10917
10917
|
if (Nu) return ve;
|
|
10918
10918
|
Nu = 1, ve.__esModule = !0, ve.extend = i, ve.indexOf = g, ve.escapeExpression = A, ve.isEmpty = c, ve.createFrame = h, ve.blockParams = d, ve.appendContextPath = l;
|
|
@@ -10980,7 +10980,7 @@ function je() {
|
|
|
10980
10980
|
return ve;
|
|
10981
10981
|
}
|
|
10982
10982
|
var qi = { exports: {} }, Zu;
|
|
10983
|
-
function
|
|
10983
|
+
function Re() {
|
|
10984
10984
|
return Zu || (Zu = 1, (function(e, n) {
|
|
10985
10985
|
n.__esModule = !0;
|
|
10986
10986
|
var a = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
|
|
@@ -11027,14 +11027,14 @@ function Wm() {
|
|
|
11027
11027
|
}, e.exports = n.default;
|
|
11028
11028
|
})(Ki, Ki.exports)), Ki.exports;
|
|
11029
11029
|
}
|
|
11030
|
-
var ea = { exports: {} },
|
|
11030
|
+
var ea = { exports: {} }, Ru;
|
|
11031
11031
|
function Um() {
|
|
11032
|
-
return
|
|
11032
|
+
return Ru || (Ru = 1, (function(e, n) {
|
|
11033
11033
|
n.__esModule = !0;
|
|
11034
11034
|
function a(o) {
|
|
11035
11035
|
return o && o.__esModule ? o : { default: o };
|
|
11036
11036
|
}
|
|
11037
|
-
var t = je(), i =
|
|
11037
|
+
var t = je(), i = Re(), r = a(i);
|
|
11038
11038
|
n.default = function(o) {
|
|
11039
11039
|
o.registerHelper("each", function(s, g) {
|
|
11040
11040
|
if (!g)
|
|
@@ -11069,14 +11069,14 @@ function Um() {
|
|
|
11069
11069
|
}, e.exports = n.default;
|
|
11070
11070
|
})(ea, ea.exports)), ea.exports;
|
|
11071
11071
|
}
|
|
11072
|
-
var na = { exports: {} },
|
|
11072
|
+
var na = { exports: {} }, Yu;
|
|
11073
11073
|
function Gm() {
|
|
11074
|
-
return
|
|
11074
|
+
return Yu || (Yu = 1, (function(e, n) {
|
|
11075
11075
|
n.__esModule = !0;
|
|
11076
11076
|
function a(r) {
|
|
11077
11077
|
return r && r.__esModule ? r : { default: r };
|
|
11078
11078
|
}
|
|
11079
|
-
var t =
|
|
11079
|
+
var t = Re(), i = a(t);
|
|
11080
11080
|
n.default = function(r) {
|
|
11081
11081
|
r.registerHelper("helperMissing", function() {
|
|
11082
11082
|
if (arguments.length !== 1)
|
|
@@ -11092,7 +11092,7 @@ function Vm() {
|
|
|
11092
11092
|
function a(o) {
|
|
11093
11093
|
return o && o.__esModule ? o : { default: o };
|
|
11094
11094
|
}
|
|
11095
|
-
var t = je(), i =
|
|
11095
|
+
var t = je(), i = Re(), r = a(i);
|
|
11096
11096
|
n.default = function(o) {
|
|
11097
11097
|
o.registerHelper("if", function(s, g) {
|
|
11098
11098
|
if (arguments.length != 2)
|
|
@@ -11140,7 +11140,7 @@ function Km() {
|
|
|
11140
11140
|
function a(o) {
|
|
11141
11141
|
return o && o.__esModule ? o : { default: o };
|
|
11142
11142
|
}
|
|
11143
|
-
var t = je(), i =
|
|
11143
|
+
var t = je(), i = Re(), r = a(i);
|
|
11144
11144
|
n.default = function(o) {
|
|
11145
11145
|
o.registerHelper("with", function(s, g) {
|
|
11146
11146
|
if (arguments.length != 2)
|
|
@@ -11277,17 +11277,17 @@ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-contr
|
|
|
11277
11277
|
}
|
|
11278
11278
|
var Bu;
|
|
11279
11279
|
function Go() {
|
|
11280
|
-
if (Bu) return
|
|
11281
|
-
Bu = 1,
|
|
11280
|
+
if (Bu) return Ye;
|
|
11281
|
+
Bu = 1, Ye.__esModule = !0, Ye.HandlebarsEnvironment = u;
|
|
11282
11282
|
function e(p) {
|
|
11283
11283
|
return p && p.__esModule ? p : { default: p };
|
|
11284
11284
|
}
|
|
11285
|
-
var n = je(), a =
|
|
11286
|
-
|
|
11285
|
+
var n = je(), a = Re(), t = e(a), i = KA(), r = ny(), o = eh(), s = e(o), g = nh(), A = "4.7.9";
|
|
11286
|
+
Ye.VERSION = A;
|
|
11287
11287
|
var c = 8;
|
|
11288
|
-
|
|
11288
|
+
Ye.COMPILER_REVISION = c;
|
|
11289
11289
|
var h = 7;
|
|
11290
|
-
|
|
11290
|
+
Ye.LAST_COMPATIBLE_COMPILER_REVISION = h;
|
|
11291
11291
|
var d = {
|
|
11292
11292
|
1: "<= 1.0.rc.2",
|
|
11293
11293
|
// 1.0.rc.2 is actually rev2 but doesn't report it
|
|
@@ -11299,7 +11299,7 @@ function Go() {
|
|
|
11299
11299
|
7: ">= 4.0.0 <4.3.0",
|
|
11300
11300
|
8: ">= 4.3.0"
|
|
11301
11301
|
};
|
|
11302
|
-
|
|
11302
|
+
Ye.REVISION_CHANGES = d;
|
|
11303
11303
|
var l = "[object Object]";
|
|
11304
11304
|
function u(p, b, m) {
|
|
11305
11305
|
this.helpers = p || {}, this.partials = b || {}, this.decorators = m || {}, i.registerDefaultHelpers(this), r.registerDefaultDecorators(this);
|
|
@@ -11351,7 +11351,7 @@ function Go() {
|
|
|
11351
11351
|
}
|
|
11352
11352
|
};
|
|
11353
11353
|
var f = s.default.log;
|
|
11354
|
-
return
|
|
11354
|
+
return Ye.log = f, Ye.createFrame = n.createFrame, Ye.logger = s.default, Ye;
|
|
11355
11355
|
}
|
|
11356
11356
|
var la = { exports: {} }, Qu;
|
|
11357
11357
|
function iy() {
|
|
@@ -11396,13 +11396,13 @@ function ty() {
|
|
|
11396
11396
|
Object.prototype.hasOwnProperty.call(y, j) && (S[j] = y[j]);
|
|
11397
11397
|
return S.default = y, S;
|
|
11398
11398
|
}
|
|
11399
|
-
var a = je(), t = n(a), i =
|
|
11399
|
+
var a = je(), t = n(a), i = Re(), r = e(i), o = Go(), s = KA(), g = ay(), A = nh();
|
|
11400
11400
|
function c(y) {
|
|
11401
11401
|
var S = y && y[0] || 1, j = o.COMPILER_REVISION;
|
|
11402
11402
|
if (!(S >= o.LAST_COMPATIBLE_COMPILER_REVISION && S <= o.COMPILER_REVISION))
|
|
11403
11403
|
if (S < o.LAST_COMPATIBLE_COMPILER_REVISION) {
|
|
11404
|
-
var x = o.REVISION_CHANGES[j],
|
|
11405
|
-
throw new r.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + x + ") or downgrade your runtime to an older version (" +
|
|
11404
|
+
var x = o.REVISION_CHANGES[j], Y = o.REVISION_CHANGES[S];
|
|
11405
|
+
throw new r.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + x + ") or downgrade your runtime to an older version (" + Y + ").");
|
|
11406
11406
|
} else
|
|
11407
11407
|
throw new r.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + y[1] + ").");
|
|
11408
11408
|
}
|
|
@@ -11428,22 +11428,22 @@ function ty() {
|
|
|
11428
11428
|
} else
|
|
11429
11429
|
throw new r.default("The partial " + N.name + " could not be compiled when running in runtime-only mode");
|
|
11430
11430
|
}
|
|
11431
|
-
var
|
|
11431
|
+
var Y = {
|
|
11432
11432
|
strict: function(T, N, z) {
|
|
11433
11433
|
if (!T || !(N in T))
|
|
11434
11434
|
throw new r.default('"' + N + '" not defined in ' + T, {
|
|
11435
11435
|
loc: z
|
|
11436
11436
|
});
|
|
11437
|
-
return
|
|
11437
|
+
return Y.lookupProperty(T, N);
|
|
11438
11438
|
},
|
|
11439
11439
|
lookupProperty: function(T, N) {
|
|
11440
11440
|
var z = T[N];
|
|
11441
|
-
if (z == null || Object.prototype.hasOwnProperty.call(T, N) || A.resultIsAllowed(z,
|
|
11441
|
+
if (z == null || Object.prototype.hasOwnProperty.call(T, N) || A.resultIsAllowed(z, Y.protoAccessControl, N))
|
|
11442
11442
|
return z;
|
|
11443
11443
|
},
|
|
11444
11444
|
lookup: function(T, N) {
|
|
11445
11445
|
for (var z = T.length, q = 0; q < z; q++) {
|
|
11446
|
-
var ee = T[q] &&
|
|
11446
|
+
var ee = T[q] && Y.lookupProperty(T[q], N);
|
|
11447
11447
|
if (ee != null)
|
|
11448
11448
|
return ee;
|
|
11449
11449
|
}
|
|
@@ -11482,33 +11482,33 @@ function ty() {
|
|
|
11482
11482
|
var z = void 0, q = y.useBlockParams ? [] : void 0;
|
|
11483
11483
|
y.useDepths && (T.depths ? z = Z != T.depths[0] ? [Z].concat(T.depths) : T.depths : z = [Z]);
|
|
11484
11484
|
function ee(be) {
|
|
11485
|
-
return "" + y.main(
|
|
11485
|
+
return "" + y.main(Y, be, Y.helpers, Y.partials, N, q, z);
|
|
11486
11486
|
}
|
|
11487
|
-
return ee = m(y.main, ee,
|
|
11487
|
+
return ee = m(y.main, ee, Y, T.depths || [], N, q), ee(Z, T);
|
|
11488
11488
|
}
|
|
11489
11489
|
return X.isTop = !0, X._setup = function(Z) {
|
|
11490
11490
|
if (Z.partial)
|
|
11491
|
-
|
|
11491
|
+
Y.protoAccessControl = Z.protoAccessControl, Y.helpers = Z.helpers, Y.partials = Z.partials, Y.decorators = Z.decorators, Y.hooks = Z.hooks;
|
|
11492
11492
|
else {
|
|
11493
11493
|
var T = {};
|
|
11494
|
-
I(T, S.helpers,
|
|
11494
|
+
I(T, S.helpers, Y), I(T, Z.helpers, Y), Y.helpers = T, y.usePartial && (Y.partials = Y.mergeIfNeeded(Z.partials, S.partials)), (y.usePartial || y.useDecorators) && (Y.decorators = t.extend({}, S.decorators, Z.decorators)), Y.hooks = {}, Y.protoAccessControl = A.createProtoAccessControl(Z);
|
|
11495
11495
|
var N = Z.allowCallsToHelperMissing || j;
|
|
11496
|
-
s.moveHelperToHooks(
|
|
11496
|
+
s.moveHelperToHooks(Y, "helperMissing", N), s.moveHelperToHooks(Y, "blockHelperMissing", N);
|
|
11497
11497
|
}
|
|
11498
11498
|
}, X._child = function(Z, T, N, z) {
|
|
11499
11499
|
if (y.useBlockParams && !N)
|
|
11500
11500
|
throw new r.default("must pass block params");
|
|
11501
11501
|
if (y.useDepths && !z)
|
|
11502
11502
|
throw new r.default("must pass parent depths");
|
|
11503
|
-
return d(
|
|
11503
|
+
return d(Y, Z, y[Z], T, 0, N, z);
|
|
11504
11504
|
}, X;
|
|
11505
11505
|
}
|
|
11506
|
-
function d(y, S, j, x,
|
|
11506
|
+
function d(y, S, j, x, Y, X, Z) {
|
|
11507
11507
|
function T(N) {
|
|
11508
11508
|
var z = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], q = Z;
|
|
11509
11509
|
return Z && N != Z[0] && !(N === y.nullContext && Z[0] === null) && (q = [N].concat(Z)), j(y, N, y.helpers, y.partials, z.data || x, X && [z.blockParams].concat(X), q);
|
|
11510
11510
|
}
|
|
11511
|
-
return T = m(j, T, y, Z, x, X), T.program = S, T.depth = Z ? Z.length : 0, T.blockParams =
|
|
11511
|
+
return T = m(j, T, y, Z, x, X), T.program = S, T.depth = Z ? Z.length : 0, T.blockParams = Y || 0, T;
|
|
11512
11512
|
}
|
|
11513
11513
|
function l(y, S, j) {
|
|
11514
11514
|
return y ? !y.call && !j.name && (j.name = y, y = p(j.partials, y)) : j.name === "@partial-block" ? y = p(j.data, "partial-block") : y = p(j.partials, j.name), y;
|
|
@@ -11516,15 +11516,15 @@ function ty() {
|
|
|
11516
11516
|
function u(y, S, j) {
|
|
11517
11517
|
var x = p(j.data, "partial-block");
|
|
11518
11518
|
j.partial = !0, j.ids && (j.data.contextPath = j.ids[0] || j.data.contextPath);
|
|
11519
|
-
var
|
|
11519
|
+
var Y = void 0;
|
|
11520
11520
|
if (j.fn && j.fn !== f && (function() {
|
|
11521
11521
|
j.data = o.createFrame(j.data);
|
|
11522
11522
|
var X = j.fn;
|
|
11523
|
-
|
|
11523
|
+
Y = j.data["partial-block"] = function(T) {
|
|
11524
11524
|
var N = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1];
|
|
11525
11525
|
return N.data = o.createFrame(N.data), N.data["partial-block"] = x, X(T, N);
|
|
11526
11526
|
}, X.partials && (j.partials = t.extend({}, j.partials, X.partials));
|
|
11527
|
-
})(), y === void 0 &&
|
|
11527
|
+
})(), y === void 0 && Y && (y = Y), y === void 0)
|
|
11528
11528
|
throw new r.default("The partial " + j.name + " could not be found");
|
|
11529
11529
|
if (y instanceof Function)
|
|
11530
11530
|
return y(S, j);
|
|
@@ -11539,17 +11539,17 @@ function ty() {
|
|
|
11539
11539
|
function b(y, S) {
|
|
11540
11540
|
return (!S || !("root" in S)) && (S = S ? o.createFrame(S) : {}, S.root = y), S;
|
|
11541
11541
|
}
|
|
11542
|
-
function m(y, S, j, x,
|
|
11542
|
+
function m(y, S, j, x, Y, X) {
|
|
11543
11543
|
if (y.decorator) {
|
|
11544
11544
|
var Z = {};
|
|
11545
|
-
S = y.decorator(S, Z, j, x && x[0],
|
|
11545
|
+
S = y.decorator(S, Z, j, x && x[0], Y, X, x), t.extend(S, Z);
|
|
11546
11546
|
}
|
|
11547
11547
|
return S;
|
|
11548
11548
|
}
|
|
11549
11549
|
function I(y, S, j) {
|
|
11550
11550
|
S && Object.keys(S).forEach(function(x) {
|
|
11551
|
-
var
|
|
11552
|
-
y[x] = v(
|
|
11551
|
+
var Y = S[x];
|
|
11552
|
+
y[x] = v(Y, j);
|
|
11553
11553
|
});
|
|
11554
11554
|
}
|
|
11555
11555
|
function v(y, S) {
|
|
@@ -11592,7 +11592,7 @@ function ry() {
|
|
|
11592
11592
|
Object.prototype.hasOwnProperty.call(m, v) && (I[v] = m[v]);
|
|
11593
11593
|
return I.default = m, I;
|
|
11594
11594
|
}
|
|
11595
|
-
var i = Go(), r = t(i), o = iy(), s = a(o), g =
|
|
11595
|
+
var i = Go(), r = t(i), o = iy(), s = a(o), g = Re(), A = a(g), c = je(), h = t(c), d = ty(), l = t(d), u = ih(), f = a(u);
|
|
11596
11596
|
function p() {
|
|
11597
11597
|
var m = new r.HandlebarsEnvironment();
|
|
11598
11598
|
return h.extend(m, r), m.SafeString = s.default, m.Exception = A.default, m.Utils = h, m.escapeExpression = h.escapeExpression, m.VM = l, m.template = function(I) {
|
|
@@ -11899,7 +11899,7 @@ function oy() {
|
|
|
11899
11899
|
var N;
|
|
11900
11900
|
return N = g.lexer.lex() || 1, typeof N != "number" && (N = g.symbols_[N] || N), N;
|
|
11901
11901
|
}
|
|
11902
|
-
for (var I, v, y, S, j = {}, x,
|
|
11902
|
+
for (var I, v, y, S, j = {}, x, Y, X, Z; ; ) {
|
|
11903
11903
|
if (v = A[A.length - 1], this.defaultActions[v] ? y = this.defaultActions[v] : ((I === null || typeof I > "u") && (I = m()), y = d[v] && d[v][I]), typeof y > "u" || !y.length || !y[0]) {
|
|
11904
11904
|
var T = "";
|
|
11905
11905
|
{
|
|
@@ -11917,9 +11917,9 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : T = "
|
|
|
11917
11917
|
A.push(I), c.push(this.lexer.yytext), h.push(this.lexer.yylloc), A.push(y[1]), I = null, f = this.lexer.yyleng, l = this.lexer.yytext, u = this.lexer.yylineno, p = this.lexer.yylloc;
|
|
11918
11918
|
break;
|
|
11919
11919
|
case 2:
|
|
11920
|
-
if (
|
|
11920
|
+
if (Y = this.productions_[y[1]][1], j.$ = c[c.length - Y], j._$ = { first_line: h[h.length - (Y || 1)].first_line, last_line: h[h.length - 1].last_line, first_column: h[h.length - (Y || 1)].first_column, last_column: h[h.length - 1].last_column }, b && (j._$.range = [h[h.length - (Y || 1)].range[0], h[h.length - 1].range[1]]), S = this.performAction.call(j, l, f, u, this.yy, y[1], c, h), typeof S < "u")
|
|
11921
11921
|
return S;
|
|
11922
|
-
|
|
11922
|
+
Y && (A = A.slice(0, -1 * Y * 2), c = c.slice(0, -1 * Y), h = h.slice(0, -1 * Y)), A.push(this.productions_[y[1]][0]), c.push(j.$), h.push(j._$), X = d[A[A.length - 2]][A[A.length - 1]], A.push(X);
|
|
11923
11923
|
break;
|
|
11924
11924
|
case 3:
|
|
11925
11925
|
return !0;
|
|
@@ -12129,7 +12129,7 @@ function th() {
|
|
|
12129
12129
|
function a(A) {
|
|
12130
12130
|
return A && A.__esModule ? A : { default: A };
|
|
12131
12131
|
}
|
|
12132
|
-
var t =
|
|
12132
|
+
var t = Re(), i = a(t);
|
|
12133
12133
|
function r() {
|
|
12134
12134
|
this.parents = [];
|
|
12135
12135
|
}
|
|
@@ -12308,7 +12308,7 @@ function sy() {
|
|
|
12308
12308
|
function e(u) {
|
|
12309
12309
|
return u && u.__esModule ? u : { default: u };
|
|
12310
12310
|
}
|
|
12311
|
-
var n =
|
|
12311
|
+
var n = Re(), a = e(n);
|
|
12312
12312
|
function t(u, f) {
|
|
12313
12313
|
if (f = f.path ? f.path.original : f, u.path.original !== f) {
|
|
12314
12314
|
var p = { loc: u.path.loc };
|
|
@@ -12463,7 +12463,7 @@ function ly() {
|
|
|
12463
12463
|
function n(b) {
|
|
12464
12464
|
return b && b.__esModule ? b : { default: b };
|
|
12465
12465
|
}
|
|
12466
|
-
var a = oy(), t = n(a), i = uy(), r = n(i), o = sy(), s = e(o), g =
|
|
12466
|
+
var a = oy(), t = n(a), i = uy(), r = n(i), o = sy(), s = e(o), g = Re(), A = n(g), c = je();
|
|
12467
12467
|
Dn.parser = t.default;
|
|
12468
12468
|
var h = {};
|
|
12469
12469
|
c.extend(h, s);
|
|
@@ -12521,7 +12521,7 @@ function dy() {
|
|
|
12521
12521
|
function e(d) {
|
|
12522
12522
|
return d && d.__esModule ? d : { default: d };
|
|
12523
12523
|
}
|
|
12524
|
-
var n =
|
|
12524
|
+
var n = Re(), a = e(n), t = je(), i = ah(), r = e(i), o = [].slice;
|
|
12525
12525
|
function s() {
|
|
12526
12526
|
}
|
|
12527
12527
|
s.prototype = {
|
|
@@ -12806,7 +12806,7 @@ function rh() {
|
|
|
12806
12806
|
}, ma;
|
|
12807
12807
|
}
|
|
12808
12808
|
var mt = {}, os;
|
|
12809
|
-
function
|
|
12809
|
+
function Ri() {
|
|
12810
12810
|
return os || (os = 1, (function(e) {
|
|
12811
12811
|
function n(v, y, S) {
|
|
12812
12812
|
if (y in v)
|
|
@@ -12840,8 +12840,8 @@ function Yi() {
|
|
|
12840
12840
|
return v;
|
|
12841
12841
|
y = S.path;
|
|
12842
12842
|
}
|
|
12843
|
-
for (var j = e.isAbsolute(y), x = y.split(/\/+/),
|
|
12844
|
-
|
|
12843
|
+
for (var j = e.isAbsolute(y), x = y.split(/\/+/), Y, X = 0, Z = x.length - 1; Z >= 0; Z--)
|
|
12844
|
+
Y = x[Z], Y === "." ? x.splice(Z, 1) : Y === ".." ? X++ : X > 0 && (Y === "" ? (x.splice(Z + 1, X), X = 0) : (x.splice(Z, 2), X--));
|
|
12845
12845
|
return y = x.join("/"), y === "" && (y = j ? "/" : "."), S ? (S.path = y, r(S)) : y;
|
|
12846
12846
|
}
|
|
12847
12847
|
e.normalize = o;
|
|
@@ -12939,7 +12939,7 @@ var yt = {}, us;
|
|
|
12939
12939
|
function oh() {
|
|
12940
12940
|
if (us) return yt;
|
|
12941
12941
|
us = 1;
|
|
12942
|
-
var e =
|
|
12942
|
+
var e = Ri(), n = Object.prototype.hasOwnProperty, a = typeof Map < "u";
|
|
12943
12943
|
function t() {
|
|
12944
12944
|
this._array = [], this._set = a ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
|
|
12945
12945
|
}
|
|
@@ -12980,7 +12980,7 @@ var vt = {}, ss;
|
|
|
12980
12980
|
function gy() {
|
|
12981
12981
|
if (ss) return vt;
|
|
12982
12982
|
ss = 1;
|
|
12983
|
-
var e =
|
|
12983
|
+
var e = Ri();
|
|
12984
12984
|
function n(t, i) {
|
|
12985
12985
|
var r = t.generatedLine, o = i.generatedLine, s = t.generatedColumn, g = i.generatedColumn;
|
|
12986
12986
|
return o > r || o == r && g >= s || e.compareByGeneratedPositionsInflated(t, i) <= 0;
|
|
@@ -13000,7 +13000,7 @@ var ls;
|
|
|
13000
13000
|
function uh() {
|
|
13001
13001
|
if (ls) return bt;
|
|
13002
13002
|
ls = 1;
|
|
13003
|
-
var e = rh(), n =
|
|
13003
|
+
var e = rh(), n = Ri(), a = oh().ArraySet, t = gy().MappingList;
|
|
13004
13004
|
function i(r) {
|
|
13005
13005
|
r || (r = {}), this._file = n.getArg(r, "file", null), this._sourceRoot = n.getArg(r, "sourceRoot", null), this._skipValidation = n.getArg(r, "skipValidation", !1), this._sources = new a(), this._names = new a(), this._mappings = new t(), this._sourcesContents = null;
|
|
13006
13006
|
}
|
|
@@ -13172,7 +13172,7 @@ var gs;
|
|
|
13172
13172
|
function fy() {
|
|
13173
13173
|
if (gs) return hi;
|
|
13174
13174
|
gs = 1;
|
|
13175
|
-
var e =
|
|
13175
|
+
var e = Ri(), n = Ay(), a = oh().ArraySet, t = rh(), i = hy().quickSort;
|
|
13176
13176
|
function r(A, c) {
|
|
13177
13177
|
var h = A;
|
|
13178
13178
|
return typeof A == "string" && (h = e.parseSourceMapInput(A)), h.sections != null ? new g(h, c) : new o(h, c);
|
|
@@ -13298,7 +13298,7 @@ function fy() {
|
|
|
13298
13298
|
this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null;
|
|
13299
13299
|
}
|
|
13300
13300
|
o.prototype._parseMappings = function(c, h) {
|
|
13301
|
-
for (var d = 1, l = 0, u = 0, f = 0, p = 0, b = 0, m = c.length, I = 0, v = {}, y = {}, S = [], j = [], x,
|
|
13301
|
+
for (var d = 1, l = 0, u = 0, f = 0, p = 0, b = 0, m = c.length, I = 0, v = {}, y = {}, S = [], j = [], x, Y, X, Z, T; I < m; )
|
|
13302
13302
|
if (c.charAt(I) === ";")
|
|
13303
13303
|
d++, I++, l = 0;
|
|
13304
13304
|
else if (c.charAt(I) === ",")
|
|
@@ -13306,8 +13306,8 @@ function fy() {
|
|
|
13306
13306
|
else {
|
|
13307
13307
|
for (x = new s(), x.generatedLine = d, Z = I; Z < m && !this._charIsMappingSeparator(c, Z); Z++)
|
|
13308
13308
|
;
|
|
13309
|
-
if (
|
|
13310
|
-
I +=
|
|
13309
|
+
if (Y = c.slice(I, Z), X = v[Y], X)
|
|
13310
|
+
I += Y.length;
|
|
13311
13311
|
else {
|
|
13312
13312
|
for (X = []; I < Z; )
|
|
13313
13313
|
t.decode(c, I, y), T = y.value, I = y.rest, X.push(T);
|
|
@@ -13315,7 +13315,7 @@ function fy() {
|
|
|
13315
13315
|
throw new Error("Found a source, but no line and column");
|
|
13316
13316
|
if (X.length === 3)
|
|
13317
13317
|
throw new Error("Found a source and line, but no column");
|
|
13318
|
-
v[
|
|
13318
|
+
v[Y] = X;
|
|
13319
13319
|
}
|
|
13320
13320
|
x.generatedColumn = l + X[0], l = x.generatedColumn, X.length > 1 && (x.source = p + X[1], p += X[1], x.originalLine = u + X[2], u = x.originalLine, x.originalLine += 1, x.originalColumn = f + X[3], f = x.originalColumn, X.length > 4 && (x.name = b + X[4], b += X[4])), j.push(x), typeof x.originalLine == "number" && S.push(x);
|
|
13321
13321
|
}
|
|
@@ -13541,7 +13541,7 @@ var jt = {}, As;
|
|
|
13541
13541
|
function py() {
|
|
13542
13542
|
if (As) return jt;
|
|
13543
13543
|
As = 1;
|
|
13544
|
-
var e = uh().SourceMapGenerator, n =
|
|
13544
|
+
var e = uh().SourceMapGenerator, n = Ri(), a = /(\r?\n)/, t = 10, i = "$$$isSourceNode$$$";
|
|
13545
13545
|
function r(o, s, g, A, c) {
|
|
13546
13546
|
this.children = [], this.sourceContents = {}, this.line = o ?? null, this.column = s ?? null, this.source = g ?? null, this.name = c ?? null, this[i] = !0, A != null && this.add(A);
|
|
13547
13547
|
}
|
|
@@ -13788,7 +13788,7 @@ function yy() {
|
|
|
13788
13788
|
function a(d) {
|
|
13789
13789
|
return d && d.__esModule ? d : { default: d };
|
|
13790
13790
|
}
|
|
13791
|
-
var t = Go(), i =
|
|
13791
|
+
var t = Go(), i = Re(), r = a(i), o = je(), s = my(), g = a(s);
|
|
13792
13792
|
function A(d) {
|
|
13793
13793
|
this.value = d;
|
|
13794
13794
|
}
|
|
@@ -13841,9 +13841,9 @@ function yy() {
|
|
|
13841
13841
|
main: S
|
|
13842
13842
|
};
|
|
13843
13843
|
this.decorators && (j.main_d = this.decorators, j.useDecorators = !0);
|
|
13844
|
-
var x = this.context,
|
|
13845
|
-
for (v = 0, y =
|
|
13846
|
-
j[v] =
|
|
13844
|
+
var x = this.context, Y = x.programs, X = x.decorators;
|
|
13845
|
+
for (v = 0, y = Y.length; v < y; v++)
|
|
13846
|
+
j[v] = Y[v], X[v] && (j[v + "_d"] = X[v], j.useDecorators = !0);
|
|
13847
13847
|
return this.environment.usePartial && (j.usePartial = !0), this.options.data && (j.useData = !0), this.useDepths && (j.useDepths = !0), this.useBlockParams && (j.useBlockParams = !0), this.options.compat && (j.compat = !0), p ? j.compilerOptions = this.options : (j.compiler = JSON.stringify(j.compiler), this.source.currentLocation = { start: { line: 1, column: 0 } }, j = this.objectLiteral(j), u.srcName ? (j = j.toStringWithSourceMap({ file: u.destName }), j.map = j.map && j.map.toString()) : j = j.toString()), j;
|
|
13848
13848
|
},
|
|
13849
13849
|
preamble: function() {
|
|
@@ -14475,8 +14475,9 @@ const Iy = {
|
|
|
14475
14475
|
ZMW: { label: "Zambian kwacha" },
|
|
14476
14476
|
ZWG: { label: "Zimbabwe Gold" }
|
|
14477
14477
|
};
|
|
14478
|
+
L.TS_VECTOR, L.RAW_JSON, L.FILES, L.POSITION;
|
|
14478
14479
|
L.TEXT, L.FULL_NAME, L.UUID;
|
|
14479
|
-
const wy = (e) => /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);
|
|
14480
|
+
const wy = (e) => /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e), Vo = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
|
|
14480
14481
|
var St, ms;
|
|
14481
14482
|
function jy() {
|
|
14482
14483
|
if (ms) return St;
|
|
@@ -14509,7 +14510,7 @@ var kt, ys;
|
|
|
14509
14510
|
function Sy() {
|
|
14510
14511
|
if (ys) return kt;
|
|
14511
14512
|
ys = 1;
|
|
14512
|
-
var e = "[object Symbol]", n = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", i = "\\u0300-\\u036f\\ufe20-\\ufe23", r = "\\u20d0-\\u20f0", o = "\\u2700-\\u27bf", s = "a-z\\xdf-\\xf6\\xf8-\\xff", g = "\\xac\\xb1\\xd7\\xf7", A = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", c = "\\u2000-\\u206f", h = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", d = "A-Z\\xc0-\\xd6\\xd8-\\xde", l = "\\ufe0e\\ufe0f", u = g + A + c + h, f = "['’]", p = "[" + t + "]", b = "[" + u + "]", m = "[" + i + r + "]", I = "\\d+", v = "[" + o + "]", y = "[" + s + "]", S = "[^" + t + u + I + o + s + d + "]", j = "\\ud83c[\\udffb-\\udfff]", x = "(?:" + m + "|" + j + ")",
|
|
14513
|
+
var e = "[object Symbol]", n = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", i = "\\u0300-\\u036f\\ufe20-\\ufe23", r = "\\u20d0-\\u20f0", o = "\\u2700-\\u27bf", s = "a-z\\xdf-\\xf6\\xf8-\\xff", g = "\\xac\\xb1\\xd7\\xf7", A = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", c = "\\u2000-\\u206f", h = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", d = "A-Z\\xc0-\\xd6\\xd8-\\xde", l = "\\ufe0e\\ufe0f", u = g + A + c + h, f = "['’]", p = "[" + t + "]", b = "[" + u + "]", m = "[" + i + r + "]", I = "\\d+", v = "[" + o + "]", y = "[" + s + "]", S = "[^" + t + u + I + o + s + d + "]", j = "\\ud83c[\\udffb-\\udfff]", x = "(?:" + m + "|" + j + ")", Y = "[^" + t + "]", X = "(?:\\ud83c[\\udde6-\\uddff]){2}", Z = "[\\ud800-\\udbff][\\udc00-\\udfff]", T = "[" + d + "]", N = "\\u200d", z = "(?:" + y + "|" + S + ")", q = "(?:" + T + "|" + S + ")", ee = "(?:" + f + "(?:d|ll|m|re|s|t|ve))?", be = "(?:" + f + "(?:D|LL|M|RE|S|T|VE))?", dn = x + "?", si = "[" + l + "]?", Yi = "(?:" + N + "(?:" + [Y, X, Z].join("|") + ")" + si + dn + ")*", li = si + dn + Yi, Xi = "(?:" + [v, X, Z].join("|") + ")" + li, Di = "(?:" + [Y + m + "?", m, X, Z, p].join("|") + ")", Oi = RegExp(f, "g"), $i = RegExp(m, "g"), zi = RegExp(j + "(?=" + j + ")|" + Di + li, "g"), At = RegExp([
|
|
14513
14514
|
T + "?" + y + "+" + ee + "(?=" + [b, T, "$"].join("|") + ")",
|
|
14514
14515
|
q + "+" + be + "(?=" + [b, T + z, "$"].join("|") + ")",
|
|
14515
14516
|
T + "?" + z + "+" + ee,
|
|
@@ -14710,91 +14711,91 @@ function Sy() {
|
|
|
14710
14711
|
ʼn: "'n",
|
|
14711
14712
|
ſ: "ss"
|
|
14712
14713
|
}, ht = typeof gn == "object" && gn && gn.Object === Object && gn, eu = typeof self == "object" && self && self.Object === Object && self, nu = ht || eu || Function("return this")();
|
|
14713
|
-
function F(
|
|
14714
|
-
for (var ye = -1, Bi =
|
|
14715
|
-
U = J(U,
|
|
14714
|
+
function F(R, J, U, _e) {
|
|
14715
|
+
for (var ye = -1, Bi = R ? R.length : 0; ++ye < Bi; )
|
|
14716
|
+
U = J(U, R[ye], ye, R);
|
|
14716
14717
|
return U;
|
|
14717
14718
|
}
|
|
14718
|
-
function Pe(
|
|
14719
|
-
return
|
|
14719
|
+
function Pe(R) {
|
|
14720
|
+
return R.split("");
|
|
14720
14721
|
}
|
|
14721
|
-
function ae(
|
|
14722
|
-
return
|
|
14722
|
+
function ae(R) {
|
|
14723
|
+
return R.match(n) || [];
|
|
14723
14724
|
}
|
|
14724
|
-
function pn(
|
|
14725
|
+
function pn(R) {
|
|
14725
14726
|
return function(J) {
|
|
14726
|
-
return
|
|
14727
|
+
return R?.[J];
|
|
14727
14728
|
};
|
|
14728
14729
|
}
|
|
14729
14730
|
var iu = pn(ce);
|
|
14730
|
-
function E(
|
|
14731
|
-
return di.test(
|
|
14731
|
+
function E(R) {
|
|
14732
|
+
return di.test(R);
|
|
14732
14733
|
}
|
|
14733
|
-
function
|
|
14734
|
-
return Ji.test(
|
|
14734
|
+
function re(R) {
|
|
14735
|
+
return Ji.test(R);
|
|
14735
14736
|
}
|
|
14736
|
-
function ge(
|
|
14737
|
-
return E(
|
|
14737
|
+
function ge(R) {
|
|
14738
|
+
return E(R) ? Be(R) : Pe(R);
|
|
14738
14739
|
}
|
|
14739
|
-
function Be(
|
|
14740
|
-
return
|
|
14740
|
+
function Be(R) {
|
|
14741
|
+
return R.match(zi) || [];
|
|
14741
14742
|
}
|
|
14742
|
-
function Ve(
|
|
14743
|
-
return
|
|
14743
|
+
function Ve(R) {
|
|
14744
|
+
return R.match(At) || [];
|
|
14744
14745
|
}
|
|
14745
|
-
var
|
|
14746
|
-
function Oh(
|
|
14747
|
-
var _e = -1, ye =
|
|
14746
|
+
var Yn = Object.prototype, Hi = Yn.toString, Mi = nu.Symbol, bn = Mi ? Mi.prototype : void 0, au = bn ? bn.toString : void 0;
|
|
14747
|
+
function Oh(R, J, U) {
|
|
14748
|
+
var _e = -1, ye = R.length;
|
|
14748
14749
|
J < 0 && (J = -J > ye ? 0 : ye + J), U = U > ye ? ye : U, U < 0 && (U += ye), ye = J > U ? 0 : U - J >>> 0, J >>>= 0;
|
|
14749
14750
|
for (var Bi = Array(ye); ++_e < ye; )
|
|
14750
|
-
Bi[_e] =
|
|
14751
|
+
Bi[_e] = R[_e + J];
|
|
14751
14752
|
return Bi;
|
|
14752
14753
|
}
|
|
14753
|
-
function $h(
|
|
14754
|
-
if (typeof
|
|
14755
|
-
return
|
|
14756
|
-
if (Fh(
|
|
14757
|
-
return au ? au.call(
|
|
14758
|
-
var J =
|
|
14759
|
-
return J == "0" && 1 /
|
|
14754
|
+
function $h(R) {
|
|
14755
|
+
if (typeof R == "string")
|
|
14756
|
+
return R;
|
|
14757
|
+
if (Fh(R))
|
|
14758
|
+
return au ? au.call(R) : "";
|
|
14759
|
+
var J = R + "";
|
|
14760
|
+
return J == "0" && 1 / R == -1 / 0 ? "-0" : J;
|
|
14760
14761
|
}
|
|
14761
|
-
function zh(
|
|
14762
|
-
var _e =
|
|
14763
|
-
return U = U === void 0 ? _e : U, !J && U >= _e ?
|
|
14762
|
+
function zh(R, J, U) {
|
|
14763
|
+
var _e = R.length;
|
|
14764
|
+
return U = U === void 0 ? _e : U, !J && U >= _e ? R : Oh(R, J, U);
|
|
14764
14765
|
}
|
|
14765
|
-
function Jh(
|
|
14766
|
+
function Jh(R) {
|
|
14766
14767
|
return function(J) {
|
|
14767
14768
|
J = Fi(J);
|
|
14768
14769
|
var U = E(J) ? ge(J) : void 0, _e = U ? U[0] : J.charAt(0), ye = U ? zh(U, 1).join("") : J.slice(1);
|
|
14769
|
-
return _e[
|
|
14770
|
+
return _e[R]() + ye;
|
|
14770
14771
|
};
|
|
14771
14772
|
}
|
|
14772
|
-
function Hh(
|
|
14773
|
+
function Hh(R) {
|
|
14773
14774
|
return function(J) {
|
|
14774
|
-
return F(Gh(Wh(J).replace(Oi, "")),
|
|
14775
|
+
return F(Gh(Wh(J).replace(Oi, "")), R, "");
|
|
14775
14776
|
};
|
|
14776
14777
|
}
|
|
14777
|
-
function Mh(
|
|
14778
|
-
return !!
|
|
14778
|
+
function Mh(R) {
|
|
14779
|
+
return !!R && typeof R == "object";
|
|
14779
14780
|
}
|
|
14780
|
-
function Fh(
|
|
14781
|
-
return typeof
|
|
14781
|
+
function Fh(R) {
|
|
14782
|
+
return typeof R == "symbol" || Mh(R) && Hi.call(R) == e;
|
|
14782
14783
|
}
|
|
14783
|
-
function Fi(
|
|
14784
|
-
return
|
|
14784
|
+
function Fi(R) {
|
|
14785
|
+
return R == null ? "" : $h(R);
|
|
14785
14786
|
}
|
|
14786
|
-
var Bh = Hh(function(
|
|
14787
|
-
return J = J.toLowerCase(),
|
|
14787
|
+
var Bh = Hh(function(R, J, U) {
|
|
14788
|
+
return J = J.toLowerCase(), R + (U ? Qh(J) : J);
|
|
14788
14789
|
});
|
|
14789
|
-
function Qh(
|
|
14790
|
-
return Uh(Fi(
|
|
14790
|
+
function Qh(R) {
|
|
14791
|
+
return Uh(Fi(R).toLowerCase());
|
|
14791
14792
|
}
|
|
14792
|
-
function Wh(
|
|
14793
|
-
return
|
|
14793
|
+
function Wh(R) {
|
|
14794
|
+
return R = Fi(R), R && R.replace(a, iu).replace($i, "");
|
|
14794
14795
|
}
|
|
14795
14796
|
var Uh = Jh("toUpperCase");
|
|
14796
|
-
function Gh(
|
|
14797
|
-
return
|
|
14797
|
+
function Gh(R, J, U) {
|
|
14798
|
+
return R = Fi(R), J = J, J === void 0 ? re(R) ? Ve(R) : ae(R) : R.match(J) || [];
|
|
14798
14799
|
}
|
|
14799
14800
|
return kt = Bh, kt;
|
|
14800
14801
|
}
|
|
@@ -15117,7 +15118,7 @@ var Ny = "1.2.0", Zy = "1.7.35", Is = " ext. ", xy = /^\d+$/, dh = /* @__PURE__
|
|
|
15117
15118
|
value: function() {
|
|
15118
15119
|
var a = this, t = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
15119
15120
|
return t.map(function(i) {
|
|
15120
|
-
return new
|
|
15121
|
+
return new Ry(i, a);
|
|
15121
15122
|
});
|
|
15122
15123
|
}
|
|
15123
15124
|
}, {
|
|
@@ -15194,7 +15195,7 @@ var Ny = "1.2.0", Zy = "1.7.35", Is = " ext. ", xy = /^\d+$/, dh = /* @__PURE__
|
|
|
15194
15195
|
return this.v1 || this.v2 ? Is : this.metadata[13] || Is;
|
|
15195
15196
|
}
|
|
15196
15197
|
}]), e;
|
|
15197
|
-
})(),
|
|
15198
|
+
})(), Ry = /* @__PURE__ */ (function() {
|
|
15198
15199
|
function e(n, a) {
|
|
15199
15200
|
dt(this, e), this._format = n, this.metadata = a;
|
|
15200
15201
|
}
|
|
@@ -15233,7 +15234,7 @@ var Ny = "1.2.0", Zy = "1.7.35", Is = " ext. ", xy = /^\d+$/, dh = /* @__PURE__
|
|
|
15233
15234
|
key: "usesNationalPrefix",
|
|
15234
15235
|
value: function() {
|
|
15235
15236
|
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
|
15236
|
-
!
|
|
15237
|
+
!Yy.test(this.nationalPrefixFormattingRule()));
|
|
15237
15238
|
}
|
|
15238
15239
|
}, {
|
|
15239
15240
|
key: "internationalFormat",
|
|
@@ -15241,7 +15242,7 @@ var Ny = "1.2.0", Zy = "1.7.35", Is = " ext. ", xy = /^\d+$/, dh = /* @__PURE__
|
|
|
15241
15242
|
return this._format[5] || this.format();
|
|
15242
15243
|
}
|
|
15243
15244
|
}]), e;
|
|
15244
|
-
})(),
|
|
15245
|
+
})(), Yy = /^\(?\$1\)?$/, Xy = /* @__PURE__ */ (function() {
|
|
15245
15246
|
function e(n, a) {
|
|
15246
15247
|
dt(this, e), this.type = n, this.metadata = a;
|
|
15247
15248
|
}
|
|
@@ -15326,44 +15327,44 @@ const Hy = (e) => !!(Array.isArray(e) && sf(e.length) && e.length > 0), My = (e,
|
|
|
15326
15327
|
const a = n.split(".");
|
|
15327
15328
|
let t = e;
|
|
15328
15329
|
for (const i of a) {
|
|
15329
|
-
if (!
|
|
15330
|
+
if (!de(t) || !uf(t) || Fy.has(i) || !Object.prototype.hasOwnProperty.call(t, i))
|
|
15330
15331
|
return;
|
|
15331
15332
|
t = t[i];
|
|
15332
15333
|
}
|
|
15333
15334
|
return t;
|
|
15334
|
-
},
|
|
15335
|
+
}, Rn = (e, n) => (a, t) => qt(a) ? a[e](
|
|
15335
15336
|
(i) => n(Ah(i, t))
|
|
15336
15337
|
) : !1, ui = (e, n) => (a, t, i) => qt(a) ? a[e](
|
|
15337
15338
|
(r) => n(Ah(r, t), i)
|
|
15338
15339
|
) : !1, fe = new xn();
|
|
15339
|
-
fe.functions.isDefined = (e) =>
|
|
15340
|
+
fe.functions.isDefined = (e) => de(e);
|
|
15340
15341
|
fe.functions.isNonEmptyString = (e) => $e(e);
|
|
15341
15342
|
fe.functions.includes = (e, n) => Array.isArray(e) && e.includes(n);
|
|
15342
15343
|
fe.functions.arrayLength = (e) => Array.isArray(e) ? e.length : 0;
|
|
15343
|
-
fe.functions.every =
|
|
15344
|
+
fe.functions.every = Rn(
|
|
15344
15345
|
"every",
|
|
15345
15346
|
Boolean
|
|
15346
15347
|
);
|
|
15347
|
-
fe.functions.everyDefined =
|
|
15348
|
+
fe.functions.everyDefined = Rn(
|
|
15348
15349
|
"every",
|
|
15349
|
-
|
|
15350
|
+
de
|
|
15350
15351
|
);
|
|
15351
|
-
fe.functions.some =
|
|
15352
|
+
fe.functions.some = Rn(
|
|
15352
15353
|
"some",
|
|
15353
15354
|
Boolean
|
|
15354
15355
|
);
|
|
15355
|
-
fe.functions.someDefined =
|
|
15356
|
+
fe.functions.someDefined = Rn(
|
|
15356
15357
|
"some",
|
|
15357
|
-
|
|
15358
|
+
de
|
|
15358
15359
|
);
|
|
15359
|
-
fe.functions.someNonEmptyString =
|
|
15360
|
-
fe.functions.none =
|
|
15360
|
+
fe.functions.someNonEmptyString = Rn("some", $e);
|
|
15361
|
+
fe.functions.none = Rn(
|
|
15361
15362
|
"every",
|
|
15362
15363
|
(e) => !e
|
|
15363
15364
|
);
|
|
15364
|
-
fe.functions.noneDefined =
|
|
15365
|
+
fe.functions.noneDefined = Rn(
|
|
15365
15366
|
"every",
|
|
15366
|
-
(e) => !
|
|
15367
|
+
(e) => !de(e)
|
|
15367
15368
|
);
|
|
15368
15369
|
fe.functions.everyEquals = ui(
|
|
15369
15370
|
"every",
|
|
@@ -15391,6 +15392,7 @@ fe.functions.includesNone = ui(
|
|
|
15391
15392
|
);
|
|
15392
15393
|
const Oa = (e) => $e(e) ? e[0].toUpperCase() + e.slice(1) : "", By = (e) => Oa(Cy(e));
|
|
15393
15394
|
L.NUMBER, L.NUMERIC, L.CURRENCY, L.RATING, L.POSITION;
|
|
15395
|
+
L.RELATION, L.MORPH_RELATION;
|
|
15394
15396
|
L.TEXT, L.RICH_TEXT;
|
|
15395
15397
|
Object.entries(
|
|
15396
15398
|
Iy
|
|
@@ -15416,7 +15418,7 @@ const Ss = [
|
|
|
15416
15418
|
...Ss
|
|
15417
15419
|
]
|
|
15418
15420
|
}
|
|
15419
|
-
},
|
|
15421
|
+
}, oe = [
|
|
15420
15422
|
k.IS_EMPTY,
|
|
15421
15423
|
k.IS_NOT_EMPTY
|
|
15422
15424
|
], Qy = [
|
|
@@ -15426,54 +15428,54 @@ const Ss = [
|
|
|
15426
15428
|
TEXT: [
|
|
15427
15429
|
k.CONTAINS,
|
|
15428
15430
|
k.DOES_NOT_CONTAIN,
|
|
15429
|
-
...
|
|
15431
|
+
...oe
|
|
15430
15432
|
],
|
|
15431
15433
|
EMAILS: [
|
|
15432
15434
|
k.CONTAINS,
|
|
15433
15435
|
k.DOES_NOT_CONTAIN,
|
|
15434
|
-
...
|
|
15436
|
+
...oe
|
|
15435
15437
|
],
|
|
15436
15438
|
FULL_NAME: [
|
|
15437
15439
|
k.CONTAINS,
|
|
15438
15440
|
k.DOES_NOT_CONTAIN,
|
|
15439
|
-
...
|
|
15441
|
+
...oe
|
|
15440
15442
|
],
|
|
15441
15443
|
ADDRESS: [
|
|
15442
15444
|
k.CONTAINS,
|
|
15443
15445
|
k.DOES_NOT_CONTAIN,
|
|
15444
|
-
...
|
|
15446
|
+
...oe
|
|
15445
15447
|
],
|
|
15446
15448
|
LINKS: [
|
|
15447
15449
|
k.CONTAINS,
|
|
15448
15450
|
k.DOES_NOT_CONTAIN,
|
|
15449
|
-
...
|
|
15451
|
+
...oe
|
|
15450
15452
|
],
|
|
15451
15453
|
PHONES: [
|
|
15452
15454
|
k.CONTAINS,
|
|
15453
15455
|
k.DOES_NOT_CONTAIN,
|
|
15454
|
-
...
|
|
15456
|
+
...oe
|
|
15455
15457
|
],
|
|
15456
15458
|
CURRENCY: [
|
|
15457
15459
|
k.GREATER_THAN_OR_EQUAL,
|
|
15458
15460
|
k.LESS_THAN_OR_EQUAL,
|
|
15459
|
-
...
|
|
15461
|
+
...oe
|
|
15460
15462
|
],
|
|
15461
15463
|
NUMBER: [
|
|
15462
15464
|
k.IS,
|
|
15463
15465
|
k.IS_NOT,
|
|
15464
15466
|
k.GREATER_THAN_OR_EQUAL,
|
|
15465
15467
|
k.LESS_THAN_OR_EQUAL,
|
|
15466
|
-
...
|
|
15468
|
+
...oe
|
|
15467
15469
|
],
|
|
15468
15470
|
RAW_JSON: [
|
|
15469
15471
|
k.CONTAINS,
|
|
15470
15472
|
k.DOES_NOT_CONTAIN,
|
|
15471
|
-
...
|
|
15473
|
+
...oe
|
|
15472
15474
|
],
|
|
15473
15475
|
FILES: [
|
|
15474
15476
|
k.CONTAINS,
|
|
15475
15477
|
k.DOES_NOT_CONTAIN,
|
|
15476
|
-
...
|
|
15478
|
+
...oe
|
|
15477
15479
|
],
|
|
15478
15480
|
DATE_TIME: [
|
|
15479
15481
|
k.IS,
|
|
@@ -15483,7 +15485,7 @@ const Ss = [
|
|
|
15483
15485
|
k.IS_TODAY,
|
|
15484
15486
|
k.IS_BEFORE,
|
|
15485
15487
|
k.IS_AFTER,
|
|
15486
|
-
...
|
|
15488
|
+
...oe
|
|
15487
15489
|
],
|
|
15488
15490
|
DATE: [
|
|
15489
15491
|
k.IS,
|
|
@@ -15493,35 +15495,35 @@ const Ss = [
|
|
|
15493
15495
|
k.IS_TODAY,
|
|
15494
15496
|
k.IS_BEFORE,
|
|
15495
15497
|
k.IS_AFTER,
|
|
15496
|
-
...
|
|
15498
|
+
...oe
|
|
15497
15499
|
],
|
|
15498
15500
|
RATING: [
|
|
15499
15501
|
k.IS,
|
|
15500
15502
|
k.IS_NOT,
|
|
15501
15503
|
k.GREATER_THAN_OR_EQUAL,
|
|
15502
15504
|
k.LESS_THAN_OR_EQUAL,
|
|
15503
|
-
...
|
|
15505
|
+
...oe
|
|
15504
15506
|
],
|
|
15505
|
-
RELATION: [...Qy, ...
|
|
15507
|
+
RELATION: [...Qy, ...oe],
|
|
15506
15508
|
MULTI_SELECT: [
|
|
15507
15509
|
k.CONTAINS,
|
|
15508
15510
|
k.DOES_NOT_CONTAIN,
|
|
15509
|
-
...
|
|
15511
|
+
...oe
|
|
15510
15512
|
],
|
|
15511
|
-
SELECT: [k.IS, k.IS_NOT, ...
|
|
15513
|
+
SELECT: [k.IS, k.IS_NOT, ...oe],
|
|
15512
15514
|
ACTOR: [
|
|
15513
15515
|
k.CONTAINS,
|
|
15514
15516
|
k.DOES_NOT_CONTAIN,
|
|
15515
|
-
...
|
|
15517
|
+
...oe
|
|
15516
15518
|
],
|
|
15517
15519
|
ARRAY: [
|
|
15518
15520
|
k.CONTAINS,
|
|
15519
15521
|
k.DOES_NOT_CONTAIN,
|
|
15520
|
-
...
|
|
15522
|
+
...oe
|
|
15521
15523
|
],
|
|
15522
15524
|
BOOLEAN: [k.IS],
|
|
15523
15525
|
TS_VECTOR: [k.VECTOR_SEARCH],
|
|
15524
|
-
UUID: [k.IS, k.IS_NOT, ...
|
|
15526
|
+
UUID: [k.IS, k.IS_NOT, ...oe]
|
|
15525
15527
|
}, Wy = [
|
|
15526
15528
|
k.IS,
|
|
15527
15529
|
k.IS_NOT,
|
|
@@ -15560,8 +15562,8 @@ NA(
|
|
|
15560
15562
|
)
|
|
15561
15563
|
).catch([]);
|
|
15562
15564
|
const Gy = Eo({
|
|
15563
|
-
isCurrentWorkspaceMemberSelected:
|
|
15564
|
-
isCurrentRecordSelected:
|
|
15565
|
+
isCurrentWorkspaceMemberSelected: Ra().optional(),
|
|
15566
|
+
isCurrentRecordSelected: Ra().optional(),
|
|
15565
15567
|
selectedRecordIds: ai(Ge())
|
|
15566
15568
|
});
|
|
15567
15569
|
Ge().transform((e, n) => {
|
|
@@ -15624,7 +15626,7 @@ const iv = (e) => {
|
|
|
15624
15626
|
} catch {
|
|
15625
15627
|
return null;
|
|
15626
15628
|
}
|
|
15627
|
-
},
|
|
15629
|
+
}, fh = (e) => {
|
|
15628
15630
|
const n = e.trim();
|
|
15629
15631
|
return n.startsWith("http://") || n.startsWith("https://") || n.startsWith("HTTPS://") || n.startsWith("HTTP://") ? n : `https://${n}`;
|
|
15630
15632
|
}, av = (e, n) => {
|
|
@@ -15653,7 +15655,7 @@ Ge().transform((e, n) => {
|
|
|
15653
15655
|
});
|
|
15654
15656
|
const tv = (e) => {
|
|
15655
15657
|
const n = iv(e);
|
|
15656
|
-
return
|
|
15658
|
+
return de(n) ? (n.origin + n.pathname + n.search + n.hash).replace(/\/$/, "") : e;
|
|
15657
15659
|
}, n8 = (e) => {
|
|
15658
15660
|
const n = e.trim();
|
|
15659
15661
|
return n === "" ? n : tv(fh(n));
|
|
@@ -15675,22 +15677,22 @@ const va = (e) => typeof e == "string" && e.trim().length > 0, rv = (e) => {
|
|
|
15675
15677
|
);
|
|
15676
15678
|
new Set(a).size !== a.length && n.push("Index lists the same column twice");
|
|
15677
15679
|
}
|
|
15678
|
-
return
|
|
15680
|
+
return te({ config: e, errors: n });
|
|
15679
15681
|
}, ov = (e) => {
|
|
15680
15682
|
const n = [];
|
|
15681
|
-
return e.universalIdentifier || n.push("Logic function must have a universalIdentifier"), e.handler || n.push("Logic function must have a handler"), typeof e.handler != "function" && n.push("Logic function handler must be a function"), e.httpRouteTriggerSettings && (e.httpRouteTriggerSettings.path || n.push("Route trigger must have a path"), e.httpRouteTriggerSettings.httpMethod || n.push("Route trigger must have an httpMethod")), e.cronTriggerSettings && (e.cronTriggerSettings.pattern || n.push("Cron trigger must have a pattern")), e.databaseEventTriggerSettings && (e.databaseEventTriggerSettings.eventName || n.push("Database event trigger must have an eventName")),
|
|
15683
|
+
return e.universalIdentifier || n.push("Logic function must have a universalIdentifier"), e.handler || n.push("Logic function must have a handler"), typeof e.handler != "function" && n.push("Logic function handler must be a function"), e.httpRouteTriggerSettings && (e.httpRouteTriggerSettings.path || n.push("Route trigger must have a path"), e.httpRouteTriggerSettings.httpMethod || n.push("Route trigger must have an httpMethod")), e.cronTriggerSettings && (e.cronTriggerSettings.pattern || n.push("Cron trigger must have a pattern")), e.databaseEventTriggerSettings && (e.databaseEventTriggerSettings.eventName || n.push("Database event trigger must have an eventName")), te({
|
|
15682
15684
|
config: e,
|
|
15683
15685
|
errors: n
|
|
15684
15686
|
});
|
|
15685
15687
|
}, uv = (e) => {
|
|
15686
15688
|
const n = [];
|
|
15687
|
-
return e.universalIdentifier || n.push("Post install logic function must have a universalIdentifier"), e.handler || n.push("Post install logic function must have a handler"), typeof e.handler != "function" && n.push("Post install logic function handler must be a function"),
|
|
15689
|
+
return e.universalIdentifier || n.push("Post install logic function must have a universalIdentifier"), e.handler || n.push("Post install logic function must have a handler"), typeof e.handler != "function" && n.push("Post install logic function handler must be a function"), te({
|
|
15688
15690
|
config: e,
|
|
15689
15691
|
errors: n
|
|
15690
15692
|
});
|
|
15691
15693
|
}, sv = (e) => {
|
|
15692
15694
|
const n = [];
|
|
15693
|
-
return e.universalIdentifier || n.push("Pre install logic function must have a universalIdentifier"), e.handler || n.push("Pre install logic function must have a handler"), typeof e.handler != "function" && n.push("Pre install logic function handler must be a function"),
|
|
15695
|
+
return e.universalIdentifier || n.push("Pre install logic function must have a universalIdentifier"), e.handler || n.push("Pre install logic function must have a handler"), typeof e.handler != "function" && n.push("Pre install logic function handler must be a function"), te({
|
|
15694
15696
|
config: e,
|
|
15695
15697
|
errors: n
|
|
15696
15698
|
});
|
|
@@ -15714,19 +15716,19 @@ const va = (e) => typeof e == "string" && e.trim().length > 0, rv = (e) => {
|
|
|
15714
15716
|
"Connection provider with type 'oauth' must declare an `oauth` config block"
|
|
15715
15717
|
);
|
|
15716
15718
|
}
|
|
15717
|
-
return
|
|
15719
|
+
return te({ config: e, errors: n });
|
|
15718
15720
|
}, cv = (e) => {
|
|
15719
15721
|
const n = [];
|
|
15720
|
-
return e.universalIdentifier || n.push("NavigationMenuItem must have a universalIdentifier"), typeof e.position != "number" && n.push("NavigationMenuItem must have a position"),
|
|
15722
|
+
return e.universalIdentifier || n.push("NavigationMenuItem must have a universalIdentifier"), typeof e.position != "number" && n.push("NavigationMenuItem must have a position"), te({ config: e, errors: n });
|
|
15721
15723
|
}, gv = (e) => {
|
|
15722
15724
|
const n = [];
|
|
15723
15725
|
e.universalIdentifier || n.push("Object must have a universalIdentifier"), e.nameSingular || n.push("Object must have a nameSingular"), e.namePlural || n.push("Object must have a namePlural"), e.labelSingular || n.push("Object must have a labelSingular"), e.labelPlural || n.push("Object must have a labelPlural");
|
|
15724
15726
|
const a = Jo(e.fields);
|
|
15725
|
-
return n.push(...a),
|
|
15727
|
+
return n.push(...a), de(e.labelIdentifierFieldMetadataUniversalIdentifier) && !e.fields.some(
|
|
15726
15728
|
(t) => t.universalIdentifier === e.labelIdentifierFieldMetadataUniversalIdentifier
|
|
15727
15729
|
) && n.push(
|
|
15728
15730
|
"labelIdentifierFieldMetadataUniversalIdentifier must reference a field defined in the fields array"
|
|
15729
|
-
),
|
|
15731
|
+
), te({
|
|
15730
15732
|
config: e,
|
|
15731
15733
|
errors: n
|
|
15732
15734
|
});
|
|
@@ -19308,7 +19310,7 @@ const An = {
|
|
|
19308
19310
|
for (const t of a.widgets)
|
|
19309
19311
|
t.universalIdentifier || n.push("PageLayoutWidget must have a universalIdentifier"), t.title || n.push("PageLayoutWidget must have a title"), t.type || n.push("PageLayoutWidget must have a type");
|
|
19310
19312
|
}
|
|
19311
|
-
return
|
|
19313
|
+
return te({ config: e, errors: n });
|
|
19312
19314
|
}, bv = (e) => {
|
|
19313
19315
|
const n = [];
|
|
19314
19316
|
if (e.universalIdentifier || n.push("PageLayoutTab must have a universalIdentifier"), e.title || n.push("PageLayoutTab must have a title"), e.pageLayoutUniversalIdentifier || n.push(
|
|
@@ -19316,10 +19318,10 @@ const An = {
|
|
|
19316
19318
|
), e.widgets)
|
|
19317
19319
|
for (const a of e.widgets)
|
|
19318
19320
|
a.universalIdentifier || n.push("PageLayoutWidget must have a universalIdentifier"), a.title || n.push("PageLayoutWidget must have a title"), a.type || n.push("PageLayoutWidget must have a type");
|
|
19319
|
-
return
|
|
19321
|
+
return te({ config: e, errors: n });
|
|
19320
19322
|
}, mv = (e) => {
|
|
19321
19323
|
const n = [];
|
|
19322
|
-
return e.universalIdentifier || n.push("Permission flag must have a universalIdentifier"), e.key || n.push("Permission flag must have a key"), e.label || n.push("Permission flag must have a label"),
|
|
19324
|
+
return e.universalIdentifier || n.push("Permission flag must have a universalIdentifier"), e.key || n.push("Permission flag must have a key"), e.label || n.push("Permission flag must have a label"), te({ config: e, errors: n });
|
|
19323
19325
|
}, mh = (e) => {
|
|
19324
19326
|
const n = [];
|
|
19325
19327
|
if (e.universalIdentifier || n.push("Role must have a universalIdentifier"), e.label || n.push("Role must have a label"), e.objectPermissions)
|
|
@@ -19328,7 +19330,7 @@ const An = {
|
|
|
19328
19330
|
if (e.fieldPermissions)
|
|
19329
19331
|
for (const a of e.fieldPermissions)
|
|
19330
19332
|
a.objectUniversalIdentifier || n.push("Field permission must have an objectUniversalIdentifier"), a.fieldUniversalIdentifier || n.push("Field permission must have a fieldUniversalIdentifier");
|
|
19331
|
-
return
|
|
19333
|
+
return te({ config: e, errors: n });
|
|
19332
19334
|
}, yv = (e) => mh(e);
|
|
19333
19335
|
L.TS_VECTOR, L.ARRAY, L.MULTI_SELECT, L.RAW_JSON;
|
|
19334
19336
|
mn.DAY, mn.WEEK, mn.MONTH, mn.QUARTER, mn.YEAR;
|
|
@@ -19360,7 +19362,7 @@ const vv = {
|
|
|
19360
19362
|
PROFILE_INFORMATION: "7c13f23f-78d8-5e7d-8963-a7c8772fb4e8"
|
|
19361
19363
|
}, Iv = (e) => {
|
|
19362
19364
|
const n = [];
|
|
19363
|
-
return e.universalIdentifier || n.push("Skill must have a universalIdentifier"), e.name || n.push("Skill must have a name"), e.label || n.push("Skill must have a label"), e.content || n.push("Skill must have content"),
|
|
19365
|
+
return e.universalIdentifier || n.push("Skill must have a universalIdentifier"), e.name || n.push("Skill must have a name"), e.label || n.push("Skill must have a label"), e.content || n.push("Skill must have content"), te({ config: e, errors: n });
|
|
19364
19366
|
}, wv = (e) => {
|
|
19365
19367
|
const n = [];
|
|
19366
19368
|
if (e.universalIdentifier || n.push("View must have a universalIdentifier"), e.name || n.push("View must have a name"), e.objectUniversalIdentifier || n.push("View must have an objectUniversalIdentifier"), e.fields)
|
|
@@ -19383,23 +19385,23 @@ const vv = {
|
|
|
19383
19385
|
a.universalIdentifier || n.push("ViewSort must have a universalIdentifier"), a.fieldMetadataUniversalIdentifier || n.push("ViewSort must have a fieldMetadataUniversalIdentifier"), a.direction !== Jn.ASC && a.direction !== Jn.DESC && n.push(
|
|
19384
19386
|
`ViewSort direction must be '${Jn.ASC}' or '${Jn.DESC}'`
|
|
19385
19387
|
);
|
|
19386
|
-
return
|
|
19388
|
+
return te({ config: e, errors: n });
|
|
19387
19389
|
}, jv = (e) => {
|
|
19388
19390
|
const n = [];
|
|
19389
|
-
return e.universalIdentifier || n.push("View field must have a universalIdentifier"), e.viewUniversalIdentifier || n.push("View field must have a viewUniversalIdentifier"), e.fieldMetadataUniversalIdentifier || n.push("View field must have a fieldMetadataUniversalIdentifier"),
|
|
19391
|
+
return e.universalIdentifier || n.push("View field must have a universalIdentifier"), e.viewUniversalIdentifier || n.push("View field must have a viewUniversalIdentifier"), e.fieldMetadataUniversalIdentifier || n.push("View field must have a fieldMetadataUniversalIdentifier"), te({ config: e, errors: n });
|
|
19390
19392
|
}, Sv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19391
19393
|
__proto__: null,
|
|
19392
19394
|
AggregateOperations: ZA,
|
|
19393
|
-
DateDisplayFormat:
|
|
19395
|
+
DateDisplayFormat: YA,
|
|
19394
19396
|
FieldMetadataSettingsOnClickAction: xA,
|
|
19395
19397
|
FieldType: L,
|
|
19396
19398
|
HTTPMethod: XA,
|
|
19397
19399
|
NavigationMenuItemType: DA,
|
|
19398
|
-
NumberDataType:
|
|
19400
|
+
NumberDataType: RA,
|
|
19399
19401
|
ObjectRecordGroupByDateGranularity: mn,
|
|
19400
19402
|
OnDeleteAction: zo,
|
|
19401
19403
|
PageLayoutTabLayoutMode: OA,
|
|
19402
|
-
RelationType:
|
|
19404
|
+
RelationType: kn,
|
|
19403
19405
|
STANDARD_OBJECT: An,
|
|
19404
19406
|
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS: An,
|
|
19405
19407
|
STANDARD_PAGE_LAYOUT: Zs,
|
|
@@ -19415,7 +19417,7 @@ const vv = {
|
|
|
19415
19417
|
ViewVisibility: FA,
|
|
19416
19418
|
canAccessFullAdminPanel: xb,
|
|
19417
19419
|
canImpersonate: Zb,
|
|
19418
|
-
createValidationResult:
|
|
19420
|
+
createValidationResult: te,
|
|
19419
19421
|
defineAgent: Ab,
|
|
19420
19422
|
defineApplication: hb,
|
|
19421
19423
|
defineApplicationRole: yv,
|
|
@@ -19455,8 +19457,8 @@ const vv = {
|
|
|
19455
19457
|
noneDefined: Qb,
|
|
19456
19458
|
noneEquals: Wb,
|
|
19457
19459
|
numberOfSelectedRecords: Cb,
|
|
19458
|
-
objectMetadataItem:
|
|
19459
|
-
objectMetadataLabel:
|
|
19460
|
+
objectMetadataItem: Rb,
|
|
19461
|
+
objectMetadataLabel: Yb,
|
|
19460
19462
|
objectPermissions: Lb,
|
|
19461
19463
|
pageType: yb,
|
|
19462
19464
|
selectedRecords: Pb,
|
|
@@ -19474,7 +19476,7 @@ const vv = {
|
|
|
19474
19476
|
return { factories: n, any: a };
|
|
19475
19477
|
}, xs = Cv(
|
|
19476
19478
|
Sv
|
|
19477
|
-
),
|
|
19479
|
+
), Rs = "twenty-sdk-define-stub", Lv = "__twenty-sdk-define-stub__", Pv = `
|
|
19478
19480
|
// Auto-generated stub for twenty-sdk/define injected by the SDK CLI build.
|
|
19479
19481
|
// Real implementations would pull in zod, twenty-shared and ~1MB of code; at
|
|
19480
19482
|
// runtime only \`default.config.handler\` is consumed, so tiny no-ops suffice.
|
|
@@ -19511,8 +19513,8 @@ ${e.join(`
|
|
|
19511
19513
|
setup(e) {
|
|
19512
19514
|
e.onResolve({ filter: /^twenty-sdk\/define$/ }, () => ({
|
|
19513
19515
|
path: Lv,
|
|
19514
|
-
namespace:
|
|
19515
|
-
})), e.onLoad({ filter: /.*/, namespace:
|
|
19516
|
+
namespace: Rs
|
|
19517
|
+
})), e.onLoad({ filter: /.*/, namespace: Rs }, () => ({
|
|
19516
19518
|
contents: Tv(),
|
|
19517
19519
|
loader: "js"
|
|
19518
19520
|
}));
|
|
@@ -19699,7 +19701,7 @@ const a8 = (e) => new Ih({
|
|
|
19699
19701
|
za()
|
|
19700
19702
|
]
|
|
19701
19703
|
}
|
|
19702
|
-
}),
|
|
19704
|
+
}), Rv = () => ({
|
|
19703
19705
|
bundle: !0,
|
|
19704
19706
|
splitting: !1,
|
|
19705
19707
|
format: "esm",
|
|
@@ -19749,7 +19751,7 @@ const a8 = (e) => new Ih({
|
|
|
19749
19751
|
sourcePaths: r,
|
|
19750
19752
|
fileFolder: Oe.BuiltFrontComponent,
|
|
19751
19753
|
buildOptions: {
|
|
19752
|
-
...
|
|
19754
|
+
...Rv(),
|
|
19753
19755
|
outdir: Qe(e.appPath, Ze),
|
|
19754
19756
|
tsconfig: Qe(e.appPath, "tsconfig.json"),
|
|
19755
19757
|
jsx: "automatic",
|
|
@@ -19762,12 +19764,12 @@ const a8 = (e) => new Ih({
|
|
|
19762
19764
|
]
|
|
19763
19765
|
},
|
|
19764
19766
|
onFileBuilt: t
|
|
19765
|
-
}), await
|
|
19767
|
+
}), await Ys({
|
|
19766
19768
|
appPath: e.appPath,
|
|
19767
19769
|
fileFolder: Oe.PublicAsset,
|
|
19768
19770
|
filePaths: e.filePaths.publicAssets,
|
|
19769
19771
|
collectFileBuilt: t
|
|
19770
|
-
}), await
|
|
19772
|
+
}), await Ys({
|
|
19771
19773
|
appPath: e.appPath,
|
|
19772
19774
|
fileFolder: Oe.Dependencies,
|
|
19773
19775
|
filePaths: ["package.json", "yarn.lock"].filter(
|
|
@@ -19775,7 +19777,7 @@ const a8 = (e) => new Ih({
|
|
|
19775
19777
|
),
|
|
19776
19778
|
collectFileBuilt: t
|
|
19777
19779
|
}), { builtFileInfos: a };
|
|
19778
|
-
},
|
|
19780
|
+
}, Ys = async ({
|
|
19779
19781
|
appPath: e,
|
|
19780
19782
|
fileFolder: n,
|
|
19781
19783
|
filePaths: a,
|
|
@@ -19796,8 +19798,8 @@ const a8 = (e) => new Ih({
|
|
|
19796
19798
|
});
|
|
19797
19799
|
}
|
|
19798
19800
|
};
|
|
19799
|
-
var bi = /* @__PURE__ */ ((e) => (e.DefineApplication = "defineApplication", e.DefineApplicationRole = "defineApplicationRole", e.DefineField = "defineField", e.DefineIndex = "defineIndex", e.DefineLogicFunction = "defineLogicFunction", e.DefinePostInstallLogicFunction = "definePostInstallLogicFunction", e.DefinePreInstallLogicFunction = "definePreInstallLogicFunction", e.DefineObject = "defineObject", e.DefinePermissionFlag = "definePermissionFlag", e.DefineRole = "defineRole", e.DefineSkill = "defineSkill", e.DefineAgent = "defineAgent", e.DefineConnectionProvider = "defineConnectionProvider", e.DefineFrontComponent = "defineFrontComponent", e.DefineView = "defineView", e.DefineViewField = "defineViewField", e.DefineNavigationMenuItem = "defineNavigationMenuItem", e.DefinePageLayout = "definePageLayout", e.DefinePageLayoutTab = "definePageLayoutTab", e.DefineCommandMenuItem = "defineCommandMenuItem", e))(bi || {}),
|
|
19800
|
-
const
|
|
19801
|
+
var bi = /* @__PURE__ */ ((e) => (e.DefineApplication = "defineApplication", e.DefineApplicationRole = "defineApplicationRole", e.DefineField = "defineField", e.DefineIndex = "defineIndex", e.DefineLogicFunction = "defineLogicFunction", e.DefinePostInstallLogicFunction = "definePostInstallLogicFunction", e.DefinePreInstallLogicFunction = "definePreInstallLogicFunction", e.DefineObject = "defineObject", e.DefinePermissionFlag = "definePermissionFlag", e.DefineRole = "defineRole", e.DefineSkill = "defineSkill", e.DefineAgent = "defineAgent", e.DefineConnectionProvider = "defineConnectionProvider", e.DefineFrontComponent = "defineFrontComponent", e.DefineView = "defineView", e.DefineViewField = "defineViewField", e.DefineNavigationMenuItem = "defineNavigationMenuItem", e.DefinePageLayout = "definePageLayout", e.DefinePageLayoutTab = "definePageLayoutTab", e.DefineCommandMenuItem = "defineCommandMenuItem", e))(bi || {}), se = /* @__PURE__ */ ((e) => (e.Application = "application", e.Fields = "fields", e.Indexes = "indexes", e.LogicFunctions = "logicFunctions", e.Objects = "objects", e.PermissionFlags = "permissionFlags", e.Roles = "roles", e.Skills = "skills", e.Agents = "agents", e.ConnectionProviders = "connectionProviders", e.FrontComponents = "frontComponents", e.PublicAssets = "publicAssets", e.Views = "views", e.ViewFields = "viewFields", e.NavigationMenuItems = "navigationMenuItems", e.PageLayouts = "pageLayouts", e.PageLayoutTabs = "pageLayoutTabs", e.CommandMenuItems = "commandMenuItems", e))(se || {});
|
|
19802
|
+
const Yv = {
|
|
19801
19803
|
defineApplication: "application",
|
|
19802
19804
|
defineApplicationRole: "roles",
|
|
19803
19805
|
defineField: "fields",
|
|
@@ -19922,7 +19924,7 @@ const Rv = {
|
|
|
19922
19924
|
await Ot(A);
|
|
19923
19925
|
}
|
|
19924
19926
|
}, Qv = (e, n) => {
|
|
19925
|
-
if (
|
|
19927
|
+
if (de(e.default) && Vo(e.default))
|
|
19926
19928
|
return e.default;
|
|
19927
19929
|
throw new Error(
|
|
19928
19930
|
`Config file ${n} must export a config object default export`
|
|
@@ -20136,7 +20138,7 @@ const Rv = {
|
|
|
20136
20138
|
icon: e.targetIcon,
|
|
20137
20139
|
isNullable: !0,
|
|
20138
20140
|
universalSettings: {
|
|
20139
|
-
relationType:
|
|
20141
|
+
relationType: kn.MANY_TO_ONE,
|
|
20140
20142
|
onDelete: zo.SET_NULL,
|
|
20141
20143
|
joinColumnName: `target${Oa(a.nameSingular)}Id`
|
|
20142
20144
|
},
|
|
@@ -20169,7 +20171,7 @@ const Rv = {
|
|
|
20169
20171
|
icon: t.icon,
|
|
20170
20172
|
isNullable: t.isNullable,
|
|
20171
20173
|
type: L.RELATION,
|
|
20172
|
-
universalSettings: { relationType:
|
|
20174
|
+
universalSettings: { relationType: kn.ONE_TO_MANY },
|
|
20173
20175
|
universalIdentifier: r,
|
|
20174
20176
|
relationTargetFieldMetadataUniversalIdentifier: o,
|
|
20175
20177
|
relationTargetObjectMetadataUniversalIdentifier: i.universalIdentifier
|
|
@@ -20231,10 +20233,10 @@ const Rv = {
|
|
|
20231
20233
|
))
|
|
20232
20234
|
continue;
|
|
20233
20235
|
const t = a.importClause;
|
|
20234
|
-
if (!
|
|
20236
|
+
if (!de(t) || t.phaseModifier === he.SyntaxKind.TypeKeyword)
|
|
20235
20237
|
continue;
|
|
20236
20238
|
const i = t.namedBindings;
|
|
20237
|
-
if (
|
|
20239
|
+
if (de(i)) {
|
|
20238
20240
|
if (he.isNamespaceImport(i)) {
|
|
20239
20241
|
const r = i.name.text, o = (s) => {
|
|
20240
20242
|
he.isPropertyAccessExpression(s) && he.isIdentifier(s.expression) && s.expression.text === r && Os.has(s.name.text) && n.push({ importedName: s.name.text, node: s }), he.forEachChild(s, o);
|
|
@@ -20301,7 +20303,7 @@ const Rv = {
|
|
|
20301
20303
|
const s = i.get(
|
|
20302
20304
|
o.fieldMetadataUniversalIdentifier
|
|
20303
20305
|
);
|
|
20304
|
-
if (!
|
|
20306
|
+
if (!de(s))
|
|
20305
20307
|
continue;
|
|
20306
20308
|
const g = s.type === L.RELATION ? i.get(
|
|
20307
20309
|
s.relationTargetFieldMetadataUniversalIdentifier
|
|
@@ -20359,8 +20361,8 @@ Sh({
|
|
|
20359
20361
|
}
|
|
20360
20362
|
});
|
|
20361
20363
|
const o4 = async (e) => {
|
|
20362
|
-
const { getFunctionInputSchema: n } = await import("./get-function-input-schema-DTlcRJz3-
|
|
20363
|
-
return a?.type === "object" &&
|
|
20364
|
+
const { getFunctionInputSchema: n } = await import("./get-function-input-schema-DTlcRJz3-B0eNO1qG.mjs"), a = n(e)[0];
|
|
20365
|
+
return a?.type === "object" && de(a.properties) ? {
|
|
20364
20366
|
type: "object",
|
|
20365
20367
|
properties: a.properties
|
|
20366
20368
|
} : r4;
|
|
@@ -20376,7 +20378,7 @@ const o4 = async (e) => {
|
|
|
20376
20378
|
}), kh = async (e) => {
|
|
20377
20379
|
const n = await u4(e), a = [], t = [];
|
|
20378
20380
|
let i;
|
|
20379
|
-
const r = [], o = [], s = [], g = [], A = [], c = [], h = [], d = [], l = [], u = [], f = [], p = [], b = [], m = [], I = [], v = [], y = [], S = [], j = [], x = [],
|
|
20381
|
+
const r = [], o = [], s = [], g = [], A = [], c = [], h = [], d = [], l = [], u = [], f = [], p = [], b = [], m = [], I = [], v = [], y = [], S = [], j = [], x = [], Y = [], X = [], Z = [], T = [], N = [], z = [], q = [], ee = [], be = [], dn = [], si = [], Yi = [], li = [], Xi = [], Di = [], Oi = [], $i = [], zi = [];
|
|
20380
20382
|
for (const F of n) {
|
|
20381
20383
|
const Pe = await ni(F, "utf-8"), ae = $n(e, F);
|
|
20382
20384
|
a.push(
|
|
@@ -20385,23 +20387,23 @@ const o4 = async (e) => {
|
|
|
20385
20387
|
const pn = Dv(Pe);
|
|
20386
20388
|
if (!pn)
|
|
20387
20389
|
continue;
|
|
20388
|
-
switch (
|
|
20389
|
-
case
|
|
20390
|
+
switch (Yv[pn]) {
|
|
20391
|
+
case se.Application: {
|
|
20390
20392
|
const E = await Ae({
|
|
20391
20393
|
appPath: e,
|
|
20392
20394
|
filePath: F
|
|
20393
20395
|
});
|
|
20394
|
-
i = E.config, a.push(...E.errors), t.push(...E.warnings ?? []),
|
|
20396
|
+
i = E.config, a.push(...E.errors), t.push(...E.warnings ?? []), Y.push(ae);
|
|
20395
20397
|
break;
|
|
20396
20398
|
}
|
|
20397
|
-
case
|
|
20399
|
+
case se.Objects: {
|
|
20398
20400
|
const E = await Ae({
|
|
20399
20401
|
appPath: e,
|
|
20400
20402
|
filePath: F
|
|
20401
20403
|
}), {
|
|
20402
|
-
objectFields:
|
|
20404
|
+
objectFields: re,
|
|
20403
20405
|
fields: ge
|
|
20404
|
-
} = Kv(E.config), Be = E.config.labelIdentifierFieldMetadataUniversalIdentifier ??
|
|
20406
|
+
} = Kv(E.config), Be = E.config.labelIdentifierFieldMetadataUniversalIdentifier ?? re.find((Yn) => Yn.name === "name")?.universalIdentifier;
|
|
20405
20407
|
if (!Be) {
|
|
20406
20408
|
a.push(
|
|
20407
20409
|
`No label identifier field found for object ${E.config.nameSingular}. Please add a field with name "name" to your object.`
|
|
@@ -20410,21 +20412,21 @@ const o4 = async (e) => {
|
|
|
20410
20412
|
}
|
|
20411
20413
|
const Ve = {
|
|
20412
20414
|
...E.config,
|
|
20413
|
-
fields:
|
|
20415
|
+
fields: re.map(Xs),
|
|
20414
20416
|
labelIdentifierFieldMetadataUniversalIdentifier: Be
|
|
20415
20417
|
};
|
|
20416
20418
|
r.push(Ve), o.push(...ge), a.push(...E.errors), t.push(...E.warnings ?? []), X.push(ae);
|
|
20417
20419
|
break;
|
|
20418
20420
|
}
|
|
20419
|
-
case
|
|
20421
|
+
case se.Fields: {
|
|
20420
20422
|
const E = await Ae({
|
|
20421
20423
|
appPath: e,
|
|
20422
20424
|
filePath: F
|
|
20423
|
-
}),
|
|
20424
|
-
o.push(
|
|
20425
|
+
}), re = Xs(E.config);
|
|
20426
|
+
o.push(re), a.push(...E.errors), t.push(...E.warnings ?? []), Z.push(ae);
|
|
20425
20427
|
break;
|
|
20426
20428
|
}
|
|
20427
|
-
case
|
|
20429
|
+
case se.PermissionFlags: {
|
|
20428
20430
|
const E = await Ae({
|
|
20429
20431
|
appPath: e,
|
|
20430
20432
|
filePath: F
|
|
@@ -20432,17 +20434,17 @@ const o4 = async (e) => {
|
|
|
20432
20434
|
g.push(E.config), a.push(...E.errors), t.push(...E.warnings ?? []), N.push(ae);
|
|
20433
20435
|
break;
|
|
20434
20436
|
}
|
|
20435
|
-
case
|
|
20437
|
+
case se.Roles: {
|
|
20436
20438
|
const E = await Ae({
|
|
20437
20439
|
appPath: e,
|
|
20438
20440
|
filePath: F
|
|
20439
|
-
}),
|
|
20440
|
-
A.push(
|
|
20441
|
+
}), re = Uv(E.config);
|
|
20442
|
+
A.push(re), a.push(...E.errors), t.push(...E.warnings ?? []), z.push(ae), pn === bi.DefineApplicationRole && x.push(
|
|
20441
20443
|
E.config.universalIdentifier
|
|
20442
20444
|
);
|
|
20443
20445
|
break;
|
|
20444
20446
|
}
|
|
20445
|
-
case
|
|
20447
|
+
case se.Skills: {
|
|
20446
20448
|
const E = await Ae({
|
|
20447
20449
|
appPath: e,
|
|
20448
20450
|
filePath: F
|
|
@@ -20450,7 +20452,7 @@ const o4 = async (e) => {
|
|
|
20450
20452
|
c.push(E.config), a.push(...E.errors), t.push(...E.warnings ?? []), q.push(ae);
|
|
20451
20453
|
break;
|
|
20452
20454
|
}
|
|
20453
|
-
case
|
|
20455
|
+
case se.Agents: {
|
|
20454
20456
|
const E = await Ae({
|
|
20455
20457
|
appPath: e,
|
|
20456
20458
|
filePath: F
|
|
@@ -20458,7 +20460,7 @@ const o4 = async (e) => {
|
|
|
20458
20460
|
h.push(E.config), a.push(...E.errors), t.push(...E.warnings ?? []), ee.push(ae);
|
|
20459
20461
|
break;
|
|
20460
20462
|
}
|
|
20461
|
-
case
|
|
20463
|
+
case se.ConnectionProviders: {
|
|
20462
20464
|
const E = await Ae({
|
|
20463
20465
|
appPath: e,
|
|
20464
20466
|
filePath: F
|
|
@@ -20466,13 +20468,13 @@ const o4 = async (e) => {
|
|
|
20466
20468
|
d.push(E.config), a.push(...E.errors), t.push(...E.warnings ?? []), be.push(ae);
|
|
20467
20469
|
break;
|
|
20468
20470
|
}
|
|
20469
|
-
case
|
|
20471
|
+
case se.LogicFunctions: {
|
|
20470
20472
|
const E = await Ae({
|
|
20471
20473
|
appPath: e,
|
|
20472
20474
|
filePath: F
|
|
20473
20475
|
});
|
|
20474
20476
|
a.push(...E.errors), t.push(...E.warnings ?? []);
|
|
20475
|
-
const { handler:
|
|
20477
|
+
const { handler: re, ...ge } = E.config, Be = $n(e, F), Ve = ge.toolTriggerSettings && !ge.toolTriggerSettings.inputSchema || ge.workflowActionTriggerSettings && !ge.workflowActionTriggerSettings.inputSchema ? await o4(Pe) : null, Yn = ge.toolTriggerSettings ? {
|
|
20476
20478
|
...ge.toolTriggerSettings,
|
|
20477
20479
|
inputSchema: ge.toolTriggerSettings.inputSchema ?? Ve ?? void 0
|
|
20478
20480
|
} : void 0, Hi = ge.workflowActionTriggerSettings ? {
|
|
@@ -20480,7 +20482,7 @@ const o4 = async (e) => {
|
|
|
20480
20482
|
inputSchema: ge.workflowActionTriggerSettings.inputSchema ?? (Ve ? Sh(Ve) : void 0)
|
|
20481
20483
|
} : void 0, Mi = {
|
|
20482
20484
|
...ge,
|
|
20483
|
-
...
|
|
20485
|
+
...Yn ? { toolTriggerSettings: Yn } : {},
|
|
20484
20486
|
...Hi ? { workflowActionTriggerSettings: Hi } : {},
|
|
20485
20487
|
handlerName: "default.config.handler",
|
|
20486
20488
|
sourceHandlerPath: Be,
|
|
@@ -20504,15 +20506,15 @@ const o4 = async (e) => {
|
|
|
20504
20506
|
}
|
|
20505
20507
|
break;
|
|
20506
20508
|
}
|
|
20507
|
-
case
|
|
20509
|
+
case se.FrontComponents: {
|
|
20508
20510
|
const E = await Ae({
|
|
20509
20511
|
appPath: e,
|
|
20510
20512
|
filePath: F
|
|
20511
20513
|
});
|
|
20512
20514
|
a.push(...E.errors), t.push(...E.warnings ?? []);
|
|
20513
|
-
const { component:
|
|
20515
|
+
const { component: re, ...ge } = E.config, Be = $n(e, F), Ve = {
|
|
20514
20516
|
...ge,
|
|
20515
|
-
componentName:
|
|
20517
|
+
componentName: re.name,
|
|
20516
20518
|
sourceComponentPath: Be,
|
|
20517
20519
|
builtComponentPath: Be.replace(/\.tsx?$/, ".mjs"),
|
|
20518
20520
|
builtComponentChecksum: "",
|
|
@@ -20521,17 +20523,17 @@ const o4 = async (e) => {
|
|
|
20521
20523
|
u.push(Ve), si.push(ae);
|
|
20522
20524
|
break;
|
|
20523
20525
|
}
|
|
20524
|
-
case
|
|
20526
|
+
case se.Views: {
|
|
20525
20527
|
const E = await Ae({
|
|
20526
20528
|
appPath: e,
|
|
20527
20529
|
filePath: F
|
|
20528
|
-
}),
|
|
20530
|
+
}), re = {
|
|
20529
20531
|
...E.config
|
|
20530
20532
|
};
|
|
20531
|
-
p.push(
|
|
20533
|
+
p.push(re), a.push(...E.errors), t.push(...E.warnings ?? []), li.push(ae);
|
|
20532
20534
|
break;
|
|
20533
20535
|
}
|
|
20534
|
-
case
|
|
20536
|
+
case se.ViewFields: {
|
|
20535
20537
|
const E = await Ae({
|
|
20536
20538
|
appPath: e,
|
|
20537
20539
|
filePath: F
|
|
@@ -20539,7 +20541,7 @@ const o4 = async (e) => {
|
|
|
20539
20541
|
b.push(E.config), a.push(...E.errors), t.push(...E.warnings ?? []), Xi.push(ae);
|
|
20540
20542
|
break;
|
|
20541
20543
|
}
|
|
20542
|
-
case
|
|
20544
|
+
case se.NavigationMenuItems: {
|
|
20543
20545
|
const E = await Ae({
|
|
20544
20546
|
appPath: e,
|
|
20545
20547
|
filePath: F
|
|
@@ -20547,37 +20549,37 @@ const o4 = async (e) => {
|
|
|
20547
20549
|
m.push(E.config), a.push(...E.errors), t.push(...E.warnings ?? []), Di.push(ae);
|
|
20548
20550
|
break;
|
|
20549
20551
|
}
|
|
20550
|
-
case
|
|
20552
|
+
case se.PageLayouts: {
|
|
20551
20553
|
const E = await Ae({
|
|
20552
20554
|
appPath: e,
|
|
20553
20555
|
filePath: F
|
|
20554
|
-
}),
|
|
20556
|
+
}), re = {
|
|
20555
20557
|
...E.config
|
|
20556
20558
|
};
|
|
20557
|
-
I.push(
|
|
20559
|
+
I.push(re), a.push(...E.errors), t.push(...E.warnings ?? []), Oi.push(ae);
|
|
20558
20560
|
break;
|
|
20559
20561
|
}
|
|
20560
|
-
case
|
|
20562
|
+
case se.Indexes: {
|
|
20561
20563
|
const E = await Ae({
|
|
20562
20564
|
appPath: e,
|
|
20563
20565
|
filePath: F
|
|
20564
|
-
}),
|
|
20566
|
+
}), re = {
|
|
20565
20567
|
...E.config
|
|
20566
20568
|
};
|
|
20567
|
-
s.push(
|
|
20569
|
+
s.push(re), a.push(...E.errors), t.push(...E.warnings ?? []), T.push(ae);
|
|
20568
20570
|
break;
|
|
20569
20571
|
}
|
|
20570
|
-
case
|
|
20572
|
+
case se.PageLayoutTabs: {
|
|
20571
20573
|
const E = await Ae({
|
|
20572
20574
|
appPath: e,
|
|
20573
20575
|
filePath: F
|
|
20574
|
-
}),
|
|
20576
|
+
}), re = {
|
|
20575
20577
|
...E.config
|
|
20576
20578
|
};
|
|
20577
|
-
v.push(
|
|
20579
|
+
v.push(re), a.push(...E.errors), t.push(...E.warnings ?? []), $i.push(ae);
|
|
20578
20580
|
break;
|
|
20579
20581
|
}
|
|
20580
|
-
case
|
|
20582
|
+
case se.CommandMenuItems: {
|
|
20581
20583
|
const E = await Ae({
|
|
20582
20584
|
appPath: e,
|
|
20583
20585
|
filePath: F
|
|
@@ -20587,7 +20589,7 @@ const o4 = async (e) => {
|
|
|
20587
20589
|
), a.push(...E.errors), t.push(...E.warnings ?? []), zi.push(ae);
|
|
20588
20590
|
break;
|
|
20589
20591
|
}
|
|
20590
|
-
case
|
|
20592
|
+
case se.PublicAssets:
|
|
20591
20593
|
break;
|
|
20592
20594
|
default:
|
|
20593
20595
|
My();
|
|
@@ -20601,7 +20603,7 @@ const o4 = async (e) => {
|
|
|
20601
20603
|
fileName: Kh(F),
|
|
20602
20604
|
fileType: qh(F).replace(/^\./, ""),
|
|
20603
20605
|
checksum: null
|
|
20604
|
-
}),
|
|
20606
|
+
}), Yi.push(Pe);
|
|
20605
20607
|
}
|
|
20606
20608
|
i || a.push(
|
|
20607
20609
|
"Cannot build application, please export default defineApplication() to define an application"
|
|
@@ -20648,7 +20650,7 @@ const o4 = async (e) => {
|
|
|
20648
20650
|
pageLayoutTabs: v.sort(ce),
|
|
20649
20651
|
commandMenuItems: y.sort(ce)
|
|
20650
20652
|
} : null, filePaths: {
|
|
20651
|
-
application:
|
|
20653
|
+
application: Y,
|
|
20652
20654
|
objects: X,
|
|
20653
20655
|
fields: Z,
|
|
20654
20656
|
indexes: T,
|
|
@@ -20659,7 +20661,7 @@ const o4 = async (e) => {
|
|
|
20659
20661
|
connectionProviders: be,
|
|
20660
20662
|
logicFunctions: dn,
|
|
20661
20663
|
frontComponents: si,
|
|
20662
|
-
publicAssets:
|
|
20664
|
+
publicAssets: Yi,
|
|
20663
20665
|
views: li,
|
|
20664
20666
|
viewFields: Xi,
|
|
20665
20667
|
navigationMenuItems: Di,
|
|
@@ -20671,8 +20673,8 @@ const o4 = async (e) => {
|
|
|
20671
20673
|
L.RELATION,
|
|
20672
20674
|
L.MORPH_RELATION
|
|
20673
20675
|
], Lt = [
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
+
kn.MANY_TO_ONE,
|
|
20677
|
+
kn.ONE_TO_MANY
|
|
20676
20678
|
], d4 = (e) => {
|
|
20677
20679
|
const n = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
20678
20680
|
for (const t of e)
|
|
@@ -20703,7 +20705,7 @@ const o4 = async (e) => {
|
|
|
20703
20705
|
);
|
|
20704
20706
|
continue;
|
|
20705
20707
|
}
|
|
20706
|
-
t.relationType ===
|
|
20708
|
+
t.relationType === kn.MANY_TO_ONE && !t.joinColumnName && n.push(
|
|
20707
20709
|
`MANY_TO_ONE relation field "${a.name}" is missing joinColumnName. MANY_TO_ONE relations must declare a joinColumnName in universalSettings.`
|
|
20708
20710
|
);
|
|
20709
20711
|
}
|
|
@@ -20730,8 +20732,6 @@ const o4 = async (e) => {
|
|
|
20730
20732
|
r.length > 0 && n.push(
|
|
20731
20733
|
`Invalid universal identifiers: ${r.join(", ")}`
|
|
20732
20734
|
);
|
|
20733
|
-
for (const s of e.agents)
|
|
20734
|
-
te(s.responseFormat) || a.push(`Agent "${s.name}" has no responseFormat defined`);
|
|
20735
20735
|
const o = [
|
|
20736
20736
|
...e.fields,
|
|
20737
20737
|
...e.objects.flatMap((s) => s.fields)
|
|
@@ -20742,7 +20742,7 @@ const o4 = async (e) => {
|
|
|
20742
20742
|
if (!await tt(n))
|
|
20743
20743
|
return [];
|
|
20744
20744
|
const a = await QA(n);
|
|
20745
|
-
return
|
|
20745
|
+
return de(a.dependencies?.["twenty-sdk"]) ? [
|
|
20746
20746
|
'"twenty-sdk" is listed under "dependencies" in package.json. It is a build-time only tool and should be moved to "devDependencies".'
|
|
20747
20747
|
] : [];
|
|
20748
20748
|
}, Lh = async (e) => {
|
|
@@ -21036,7 +21036,7 @@ ${h.join(`
|
|
|
21036
21036
|
}
|
|
21037
21037
|
};
|
|
21038
21038
|
Ja.activeRemote = Xe;
|
|
21039
|
-
let
|
|
21039
|
+
let le = Ja;
|
|
21040
21040
|
class b4 {
|
|
21041
21041
|
constructor(n) {
|
|
21042
21042
|
const {
|
|
@@ -21045,7 +21045,7 @@ class b4 {
|
|
|
21045
21045
|
token: i,
|
|
21046
21046
|
skipAuth: r = !1
|
|
21047
21047
|
} = n || {};
|
|
21048
|
-
this.configService = new
|
|
21048
|
+
this.configService = new le(), this.tokenOverride = i, this.serverUrlOverride = t, this.client = We.create(), this.client.interceptors.request.use(async (o) => {
|
|
21049
21049
|
const s = await this.configService.getConfig();
|
|
21050
21050
|
if (o.baseURL = this.serverUrlOverride ?? s.apiUrl, !o.headers.Authorization && !r) {
|
|
21051
21051
|
const g = await this.resolveAuthToken();
|
|
@@ -21082,7 +21082,7 @@ class b4 {
|
|
|
21082
21082
|
}
|
|
21083
21083
|
async getWorkspaceFrontendUrl() {
|
|
21084
21084
|
const n = await this.getCurrentWorkspaceFrontendUrl();
|
|
21085
|
-
return
|
|
21085
|
+
return de(n) ? n : this.getFrontendUrl();
|
|
21086
21086
|
}
|
|
21087
21087
|
async getCurrentWorkspaceFrontendUrl() {
|
|
21088
21088
|
try {
|
|
@@ -21392,18 +21392,25 @@ class m4 {
|
|
|
21392
21392
|
}
|
|
21393
21393
|
async syncApplication(n, a) {
|
|
21394
21394
|
try {
|
|
21395
|
-
const t = `
|
|
21395
|
+
const t = a?.dryRun ?? !1, i = t ? `
|
|
21396
21396
|
mutation SyncApplication($manifest: JSON!, $dryRun: Boolean) {
|
|
21397
21397
|
syncApplication(manifest: $manifest, dryRun: $dryRun) {
|
|
21398
21398
|
applicationUniversalIdentifier
|
|
21399
21399
|
actions
|
|
21400
21400
|
}
|
|
21401
21401
|
}
|
|
21402
|
-
|
|
21402
|
+
` : `
|
|
21403
|
+
mutation SyncApplication($manifest: JSON!) {
|
|
21404
|
+
syncApplication(manifest: $manifest) {
|
|
21405
|
+
applicationUniversalIdentifier
|
|
21406
|
+
actions
|
|
21407
|
+
}
|
|
21408
|
+
}
|
|
21409
|
+
`, r = t ? { manifest: n, dryRun: !0 } : { manifest: n }, o = await this.client.post(
|
|
21403
21410
|
"/metadata",
|
|
21404
21411
|
{
|
|
21405
|
-
query:
|
|
21406
|
-
variables:
|
|
21412
|
+
query: i,
|
|
21413
|
+
variables: r
|
|
21407
21414
|
},
|
|
21408
21415
|
{
|
|
21409
21416
|
headers: {
|
|
@@ -21412,13 +21419,13 @@ class m4 {
|
|
|
21412
21419
|
}
|
|
21413
21420
|
}
|
|
21414
21421
|
);
|
|
21415
|
-
return
|
|
21422
|
+
return o.data.errors ? {
|
|
21416
21423
|
success: !1,
|
|
21417
|
-
error:
|
|
21418
|
-
message:
|
|
21424
|
+
error: o.data.errors[0]?.extensions,
|
|
21425
|
+
message: o.data.errors[0]?.message
|
|
21419
21426
|
} : {
|
|
21420
21427
|
success: !0,
|
|
21421
|
-
data:
|
|
21428
|
+
data: o.data.data.syncApplication,
|
|
21422
21429
|
message: `Successfully synced application: ${n.application.displayName}`
|
|
21423
21430
|
};
|
|
21424
21431
|
} catch (t) {
|
|
@@ -21890,7 +21897,7 @@ class ln {
|
|
|
21890
21897
|
}
|
|
21891
21898
|
const S4 = async (e) => {
|
|
21892
21899
|
const { tarballPath: n, onProgress: a } = e;
|
|
21893
|
-
e.remote &&
|
|
21900
|
+
e.remote && le.setActiveRemote(e.remote), a?.(`Uploading ${n}...`);
|
|
21894
21901
|
const t = Vh.readFileSync(n), r = await new ln({
|
|
21895
21902
|
serverUrl: e.serverUrl,
|
|
21896
21903
|
token: e.token
|
|
@@ -21929,7 +21936,7 @@ const S4 = async (e) => {
|
|
|
21929
21936
|
};
|
|
21930
21937
|
}
|
|
21931
21938
|
return { success: !0, data: { target: "npm" } };
|
|
21932
|
-
}, o8 = (e) => Me(() => k4(e), K.PUBLISH_FAILED), C4 = "2.
|
|
21939
|
+
}, o8 = (e) => Me(() => k4(e), K.PUBLISH_FAILED), C4 = "2.12.0", L4 = {
|
|
21933
21940
|
version: C4
|
|
21934
21941
|
}, Ko = async (e) => {
|
|
21935
21942
|
const n = G.join(e, Ze);
|
|
@@ -21941,7 +21948,7 @@ const S4 = async (e) => {
|
|
|
21941
21948
|
}
|
|
21942
21949
|
return await QA(a);
|
|
21943
21950
|
}, Qt = (e) => {
|
|
21944
|
-
if (!
|
|
21951
|
+
if (!de(e?.errors) || !de(e?.summary))
|
|
21945
21952
|
return null;
|
|
21946
21953
|
const n = [], a = e.summary.totalErrors;
|
|
21947
21954
|
n.push({
|
|
@@ -21949,7 +21956,7 @@ const S4 = async (e) => {
|
|
|
21949
21956
|
status: "error"
|
|
21950
21957
|
});
|
|
21951
21958
|
for (const [t, i] of Object.entries(e.errors)) {
|
|
21952
|
-
if (!
|
|
21959
|
+
if (!de(i))
|
|
21953
21960
|
continue;
|
|
21954
21961
|
const r = e.summary[t] ?? i.length;
|
|
21955
21962
|
n.push({
|
|
@@ -21961,7 +21968,7 @@ const S4 = async (e) => {
|
|
|
21961
21968
|
const g = s.flatEntityMinimalInformation?.universalIdentifier;
|
|
21962
21969
|
for (const A of s.errors) {
|
|
21963
21970
|
const c = [];
|
|
21964
|
-
|
|
21971
|
+
de(A.value) && c.push(`value: ${String(A.value)}`), $e(g) && c.push(`universalIdentifier: ${g}`);
|
|
21965
21972
|
const h = c.length > 0 ? ` (${c.join(", ")})` : "";
|
|
21966
21973
|
n.push({
|
|
21967
21974
|
message: ` ${o}. ${A.code}: ${A.message}${h}`,
|
|
@@ -21972,7 +21979,7 @@ const S4 = async (e) => {
|
|
|
21972
21979
|
}
|
|
21973
21980
|
return n;
|
|
21974
21981
|
}, P4 = async (e) => {
|
|
21975
|
-
e.remote &&
|
|
21982
|
+
e.remote && le.setActiveRemote(e.remote);
|
|
21976
21983
|
const n = new ln(), a = await Ko(e.appPath);
|
|
21977
21984
|
if (!a)
|
|
21978
21985
|
return {
|
|
@@ -22059,7 +22066,7 @@ const S4 = async (e) => {
|
|
|
22059
22066
|
} catch {
|
|
22060
22067
|
return !1;
|
|
22061
22068
|
}
|
|
22062
|
-
},
|
|
22069
|
+
}, R4 = () => {
|
|
22063
22070
|
switch (process.platform) {
|
|
22064
22071
|
case "darwin":
|
|
22065
22072
|
return ` Run: open -a Docker
|
|
@@ -22072,20 +22079,20 @@ const S4 = async (e) => {
|
|
|
22072
22079
|
default:
|
|
22073
22080
|
return " See https://docs.docker.com/engine/install/ for installation";
|
|
22074
22081
|
}
|
|
22075
|
-
},
|
|
22082
|
+
}, Rh = (e) => [
|
|
22076
22083
|
"Docker is not running.",
|
|
22077
22084
|
"",
|
|
22078
22085
|
"Start Docker:",
|
|
22079
|
-
|
|
22086
|
+
R4(),
|
|
22080
22087
|
"",
|
|
22081
22088
|
"Then retry:",
|
|
22082
22089
|
` ${e}`,
|
|
22083
22090
|
"",
|
|
22084
22091
|
"Don't have Docker? Install from https://docs.docker.com/get-docker/"
|
|
22085
22092
|
].join(`
|
|
22086
|
-
`),
|
|
22093
|
+
`), Yh = (e, n) => e[0] !== n[0] ? e[0] - n[0] : e[1] !== n[1] ? e[1] - n[1] : e[2] - n[2], Y4 = yf(Kt), X4 = async (e = Fe) => {
|
|
22087
22094
|
try {
|
|
22088
|
-
const { stdout: n } = await
|
|
22095
|
+
const { stdout: n } = await Y4(
|
|
22089
22096
|
"docker",
|
|
22090
22097
|
[
|
|
22091
22098
|
"inspect",
|
|
@@ -22157,7 +22164,7 @@ const S4 = async (e) => {
|
|
|
22157
22164
|
}
|
|
22158
22165
|
return i.sort((r, o) => {
|
|
22159
22166
|
const s = Qn(r.name), g = Qn(o.name);
|
|
22160
|
-
return s === null || g === null ? 0 :
|
|
22167
|
+
return s === null || g === null ? 0 : Yh(g, s);
|
|
22161
22168
|
}), i;
|
|
22162
22169
|
} catch {
|
|
22163
22170
|
return null;
|
|
@@ -22176,7 +22183,7 @@ const S4 = async (e) => {
|
|
|
22176
22183
|
M4()
|
|
22177
22184
|
]), i = t[0]?.name ?? null, r = a ? Qn(a) : null, o = i ? Qn(i) : null, s = r !== null && o !== null && (r[0] < o[0] || r[0] === o[0] && r[1] < o[1]), g = r === null ? void 0 : t.find((h) => {
|
|
22178
22185
|
const d = Qn(h.name);
|
|
22179
|
-
return d !== null &&
|
|
22186
|
+
return d !== null && Yh(d, r) === 0;
|
|
22180
22187
|
})?.lastUpdatedAt, A = t[0]?.lastUpdatedAt;
|
|
22181
22188
|
let c = null;
|
|
22182
22189
|
return A && g ? c = Math.floor(
|
|
@@ -22196,8 +22203,8 @@ const S4 = async (e) => {
|
|
|
22196
22203
|
)
|
|
22197
22204
|
), console.warn(jn.dim(" Update with: yarn twenty docker:upgrade")), console.warn(""));
|
|
22198
22205
|
}, G4 = async (e) => {
|
|
22199
|
-
e.remote &&
|
|
22200
|
-
const n = new
|
|
22206
|
+
e.remote && le.setActiveRemote(e.remote);
|
|
22207
|
+
const n = new le(), a = new ln(), t = await Ko(e.appPath);
|
|
22201
22208
|
if (!t)
|
|
22202
22209
|
return {
|
|
22203
22210
|
success: !1,
|
|
@@ -22228,7 +22235,7 @@ const S4 = async (e) => {
|
|
|
22228
22235
|
}, l8 = (e) => Me(() => G4(e), K.UNINSTALL_FAILED), V4 = (e, n) => n.logicFunctions.some(
|
|
22229
22236
|
(a) => a.universalIdentifier === e.universalIdentifier
|
|
22230
22237
|
), Js = (e) => "postInstall" in e ? "post install" : "preInstall" in e ? "pre install" : "functionUniversalIdentifier" in e ? e.functionUniversalIdentifier : "functionName" in e ? e.functionName : "unknown", _4 = async (e) => {
|
|
22231
|
-
e.remote &&
|
|
22238
|
+
e.remote && le.setActiveRemote(e.remote);
|
|
22232
22239
|
const n = new ln(), a = await Ko(e.appPath);
|
|
22233
22240
|
if (!a)
|
|
22234
22241
|
return {
|
|
@@ -22297,7 +22304,7 @@ class q4 {
|
|
|
22297
22304
|
this.apiService = new ln({
|
|
22298
22305
|
disableInterceptors: !0,
|
|
22299
22306
|
serverUrl: n?.serverUrl,
|
|
22300
|
-
skipAuth: !0,
|
|
22307
|
+
skipAuth: n?.skipAuth ?? !0,
|
|
22301
22308
|
token: n?.token
|
|
22302
22309
|
});
|
|
22303
22310
|
}
|
|
@@ -22478,7 +22485,7 @@ const K4 = [2020], Xh = async (e) => {
|
|
|
22478
22485
|
a.create > 0 ? `${a.create} created` : null,
|
|
22479
22486
|
a.update > 0 ? `${a.update} updated` : null,
|
|
22480
22487
|
a.delete > 0 ? `${a.delete} deleted` : null
|
|
22481
|
-
].filter(
|
|
22488
|
+
].filter(de).join(", ")}`, status: "info" }
|
|
22482
22489
|
], r = n.slice(0, c3);
|
|
22483
22490
|
for (const s of r)
|
|
22484
22491
|
i.push({
|
|
@@ -22616,7 +22623,7 @@ ${I.join(`
|
|
|
22616
22623
|
};
|
|
22617
22624
|
}
|
|
22618
22625
|
a?.("Registering application...");
|
|
22619
|
-
const h = new
|
|
22626
|
+
const h = new le(), { clientId: d, clientSecret: l } = await d3(
|
|
22620
22627
|
r,
|
|
22621
22628
|
h,
|
|
22622
22629
|
{
|
|
@@ -22747,10 +22754,10 @@ ${I.join(`
|
|
|
22747
22754
|
}, I3 = async (e = {}) => {
|
|
22748
22755
|
const { onProgress: n, test: a } = e, t = a ? gt : Fe, i = a ? Nh : Eh, r = a ? "twenty-app-dev-test-data" : "twenty-app-dev-data", o = a ? "twenty-app-dev-test-storage" : "twenty-app-dev-storage", s = await e3(e.port ?? i);
|
|
22749
22756
|
if (s) {
|
|
22750
|
-
const d = new
|
|
22757
|
+
const d = new le(
|
|
22751
22758
|
a ? { configPath: Ca(!0) } : void 0
|
|
22752
22759
|
);
|
|
22753
|
-
|
|
22760
|
+
le.setActiveRemote("local"), await d.setConfig({ apiUrl: s });
|
|
22754
22761
|
const l = new URL(s).port;
|
|
22755
22762
|
return n?.(`Twenty server detected on ${s}`), {
|
|
22756
22763
|
success: !0,
|
|
@@ -22763,7 +22770,7 @@ ${I.join(`
|
|
|
22763
22770
|
success: !1,
|
|
22764
22771
|
error: {
|
|
22765
22772
|
code: an.DOCKER_NOT_RUNNING,
|
|
22766
|
-
message:
|
|
22773
|
+
message: Rh(d)
|
|
22767
22774
|
}
|
|
22768
22775
|
};
|
|
22769
22776
|
}
|
|
@@ -22778,10 +22785,10 @@ ${I.join(`
|
|
|
22778
22785
|
Check: 'yarn twenty docker:logs'`
|
|
22779
22786
|
}
|
|
22780
22787
|
};
|
|
22781
|
-
const u = `http://localhost:${d}`, f = new
|
|
22788
|
+
const u = `http://localhost:${d}`, f = new le(
|
|
22782
22789
|
a ? { configPath: Ca(!0) } : void 0
|
|
22783
22790
|
);
|
|
22784
|
-
return
|
|
22791
|
+
return le.setActiveRemote("local"), await f.setConfig({ apiUrl: u }), n?.(`Server running on ${u}`), { success: !0, data: { port: d, url: u } };
|
|
22785
22792
|
}
|
|
22786
22793
|
let g = e.port ?? i;
|
|
22787
22794
|
if (Zh(t)) {
|
|
@@ -22826,10 +22833,10 @@ Check: 'yarn twenty docker:logs'`
|
|
|
22826
22833
|
Check: 'yarn twenty docker:logs'`
|
|
22827
22834
|
}
|
|
22828
22835
|
};
|
|
22829
|
-
const c = `http://localhost:${g}`, h = new
|
|
22836
|
+
const c = `http://localhost:${g}`, h = new le(
|
|
22830
22837
|
a ? { configPath: Ca(!0) } : void 0
|
|
22831
22838
|
);
|
|
22832
|
-
return
|
|
22839
|
+
return le.setActiveRemote("local"), await h.setConfig({ apiUrl: c }), n?.(`Server running on ${c}`), { success: !0, data: { port: g, url: c } };
|
|
22833
22840
|
}, g8 = async (e) => {
|
|
22834
22841
|
const n = await Me(
|
|
22835
22842
|
() => I3(e),
|
|
@@ -22852,7 +22859,7 @@ Check: 'yarn twenty docker:logs'`
|
|
|
22852
22859
|
success: !1,
|
|
22853
22860
|
error: {
|
|
22854
22861
|
code: an.DOCKER_NOT_RUNNING,
|
|
22855
|
-
message:
|
|
22862
|
+
message: Rh(f)
|
|
22856
22863
|
}
|
|
22857
22864
|
};
|
|
22858
22865
|
}
|
|
@@ -22916,8 +22923,8 @@ Check: 'yarn twenty docker:logs'`
|
|
|
22916
22923
|
an.IMAGE_UPGRADE_FAILED
|
|
22917
22924
|
), j3 = async (e) => {
|
|
22918
22925
|
const { apiKey: n, apiUrl: a, remote: t } = e;
|
|
22919
|
-
t &&
|
|
22920
|
-
const i = new
|
|
22926
|
+
t && le.setActiveRemote(t);
|
|
22927
|
+
const i = new le();
|
|
22921
22928
|
return await i.setConfig({
|
|
22922
22929
|
apiUrl: a,
|
|
22923
22930
|
apiKey: n,
|
|
@@ -23135,8 +23142,8 @@ Check: 'yarn twenty docker:logs'`
|
|
|
23135
23142
|
return { codeVerifier: e, codeChallenge: n };
|
|
23136
23143
|
}, N3 = async (e) => {
|
|
23137
23144
|
const { apiUrl: n, remote: a, timeoutMs: t } = e;
|
|
23138
|
-
a &&
|
|
23139
|
-
const i = new
|
|
23145
|
+
a && le.setActiveRemote(a);
|
|
23146
|
+
const i = new le(), r = `${n}/.well-known/oauth-authorization-server`;
|
|
23140
23147
|
let o;
|
|
23141
23148
|
try {
|
|
23142
23149
|
o = (await We.get(r)).data;
|
|
@@ -23205,46 +23212,48 @@ export {
|
|
|
23205
23212
|
My as $,
|
|
23206
23213
|
ln as A,
|
|
23207
23214
|
nn as B,
|
|
23208
|
-
|
|
23215
|
+
le as C,
|
|
23209
23216
|
Lf as D,
|
|
23210
|
-
|
|
23217
|
+
kn as E,
|
|
23211
23218
|
ka as F,
|
|
23212
|
-
|
|
23213
|
-
|
|
23214
|
-
|
|
23215
|
-
|
|
23216
|
-
|
|
23217
|
-
|
|
23218
|
-
|
|
23219
|
-
|
|
23220
|
-
|
|
23221
|
-
|
|
23222
|
-
|
|
23219
|
+
zo as G,
|
|
23220
|
+
Ko as H,
|
|
23221
|
+
qo as I,
|
|
23222
|
+
Lh as J,
|
|
23223
|
+
l3 as K,
|
|
23224
|
+
d3 as L,
|
|
23225
|
+
Ze as M,
|
|
23226
|
+
MA as N,
|
|
23227
|
+
db as O,
|
|
23228
|
+
Ot as P,
|
|
23229
|
+
Nv as Q,
|
|
23223
23230
|
L as R,
|
|
23224
23231
|
an as S,
|
|
23225
|
-
|
|
23226
|
-
|
|
23227
|
-
|
|
23228
|
-
|
|
23229
|
-
|
|
23230
|
-
|
|
23231
|
-
|
|
23232
|
+
a8 as T,
|
|
23233
|
+
t8 as U,
|
|
23234
|
+
Oe as V,
|
|
23235
|
+
Ph as W,
|
|
23236
|
+
Th as X,
|
|
23237
|
+
h3 as Y,
|
|
23238
|
+
Qt as Z,
|
|
23232
23239
|
Cf as _,
|
|
23233
23240
|
wn as a,
|
|
23234
|
-
|
|
23235
|
-
|
|
23236
|
-
|
|
23237
|
-
|
|
23238
|
-
|
|
23239
|
-
|
|
23240
|
-
|
|
23241
|
-
|
|
23242
|
-
|
|
23243
|
-
|
|
23244
|
-
|
|
23245
|
-
|
|
23246
|
-
|
|
23247
|
-
|
|
23241
|
+
f3 as a0,
|
|
23242
|
+
p3 as a1,
|
|
23243
|
+
q4 as a2,
|
|
23244
|
+
lb as a3,
|
|
23245
|
+
mi as a4,
|
|
23246
|
+
Q4 as a5,
|
|
23247
|
+
Nh as a6,
|
|
23248
|
+
Eh as a7,
|
|
23249
|
+
gt as a8,
|
|
23250
|
+
Fe as a9,
|
|
23251
|
+
E4 as aa,
|
|
23252
|
+
Wt as ab,
|
|
23253
|
+
Xh as ac,
|
|
23254
|
+
s8 as ad,
|
|
23255
|
+
Ca as ae,
|
|
23256
|
+
n8 as af,
|
|
23248
23257
|
K as b,
|
|
23249
23258
|
p4 as c,
|
|
23250
23259
|
r8 as d,
|
|
@@ -23258,7 +23267,7 @@ export {
|
|
|
23258
23267
|
Zh as l,
|
|
23259
23268
|
e3 as m,
|
|
23260
23269
|
d8 as n,
|
|
23261
|
-
|
|
23270
|
+
de as o,
|
|
23262
23271
|
Z4 as p,
|
|
23263
23272
|
x4 as q,
|
|
23264
23273
|
Me as r,
|