@digo-labs/common 0.1.9 → 0.1.10
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/app-config-helpers.d.ts +7 -0
- package/dist/auth.d.ts +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +168 -136
- package/dist/index.js.map +1 -1
- package/dist/types/websocket-types.d.ts +1 -1
- package/package.json +4 -2
- package/vite-plugin-raw-mdx.ts +63 -0
- package/vite.apps.ts +5 -1
package/dist/auth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const AUTH_PROJECTS: {
|
|
2
2
|
readonly monorepo: {
|
|
3
|
-
readonly trustedOrigins: readonly ["http://localhost
|
|
3
|
+
readonly trustedOrigins: readonly ["http://localhost:*", "http://127.0.0.1:*", "https://*.digo-labs.com"];
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
export type AuthProject = keyof typeof AUTH_PROJECTS;
|
package/dist/constants.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { CodeLanguageMetadata, ModelPayload } from './types/common-types';
|
|
|
2
2
|
export declare const BACKEND_URL = "https://api.digo-labs.com";
|
|
3
3
|
export declare const DIGO_HEADERS = "X-Digo-App";
|
|
4
4
|
export declare const DIGO_ADMIN_SECRET = "X-Admin-Secret";
|
|
5
|
+
export declare const DIGO_STORAGE_BUCKET_SUFFIX = "-digo-labs-storage";
|
|
5
6
|
export declare const WS_URL = "wss://ws.digo-labs.com";
|
|
6
7
|
export declare const AWS_DEFAULT_REGION = "us-east-1";
|
|
7
8
|
export declare const AI_MODELS: ModelPayload[];
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,11 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var I = (i, o, e) => o in i ? F(i, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[o] = e;
|
|
3
|
+
var x = (i, o, e) => I(i, typeof o != "symbol" ? o + "" : o, e);
|
|
4
|
+
import { removeBackground as N } from "@imgly/background-removal";
|
|
5
|
+
import { parseISO as T, formatDistanceToNow as U } from "date-fns";
|
|
6
|
+
import { decode as m, encode as A } from "base64-arraybuffer";
|
|
4
7
|
import d from "lz-string";
|
|
5
|
-
import { blobToBase64String as
|
|
8
|
+
import { blobToBase64String as D, base64StringToBlob as z } from "blob-util";
|
|
6
9
|
import { z as n } from "zod";
|
|
7
|
-
import
|
|
8
|
-
import { twMerge as
|
|
10
|
+
import C from "clsx";
|
|
11
|
+
import { twMerge as B } from "tailwind-merge";
|
|
12
|
+
class j {
|
|
13
|
+
static setCurrentAppName(o) {
|
|
14
|
+
if (this.appName !== void 0 && this.appName !== o)
|
|
15
|
+
throw new Error(
|
|
16
|
+
`setCurrentAppName: already set to '${this.appName}', cannot override with '${o}'. This usually means defineApp() was called twice with different names.`
|
|
17
|
+
);
|
|
18
|
+
this.appName = o;
|
|
19
|
+
}
|
|
20
|
+
static getCurrentAppName() {
|
|
21
|
+
if (this.appName === void 0)
|
|
22
|
+
throw new Error(
|
|
23
|
+
"getCurrentAppName: no app name registered. Call defineApp() before constructing services, or pass an explicit value to the service constructor."
|
|
24
|
+
);
|
|
25
|
+
return this.appName;
|
|
26
|
+
}
|
|
27
|
+
static resetAppName() {
|
|
28
|
+
this.appName = void 0;
|
|
29
|
+
}
|
|
30
|
+
static sanitizeAppName(o) {
|
|
31
|
+
const e = o.toLowerCase().replace(/-/g, "_");
|
|
32
|
+
if (!/^[a-z][a-z0-9_]*$/.test(e))
|
|
33
|
+
throw new Error(`sanitizeAppName: invalid app name '${o}' (sanitized: '${e}')`);
|
|
34
|
+
return e;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
x(j, "appName");
|
|
9
38
|
class b {
|
|
10
39
|
static copyToClipboard(o) {
|
|
11
40
|
navigator.clipboard.writeText(o).then(() => {
|
|
@@ -14,9 +43,9 @@ class b {
|
|
|
14
43
|
});
|
|
15
44
|
}
|
|
16
45
|
static async removeBackground(o) {
|
|
17
|
-
const e = m(o.base64), t = new Blob([e], { type: o.mediaType }), a = await (await
|
|
46
|
+
const e = m(o.base64), t = new Blob([e], { type: o.mediaType }), a = await (await N(t)).arrayBuffer();
|
|
18
47
|
return {
|
|
19
|
-
base64:
|
|
48
|
+
base64: A(a),
|
|
20
49
|
mediaType: "image/png"
|
|
21
50
|
};
|
|
22
51
|
}
|
|
@@ -37,7 +66,7 @@ class b {
|
|
|
37
66
|
return Math.floor(Math.random() * (e - o + 1)) + o;
|
|
38
67
|
}
|
|
39
68
|
static encodeArrayBufferToBase64(o) {
|
|
40
|
-
return
|
|
69
|
+
return A(o);
|
|
41
70
|
}
|
|
42
71
|
static hexToRgb(o) {
|
|
43
72
|
const e = o.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);
|
|
@@ -92,7 +121,7 @@ class b {
|
|
|
92
121
|
return this.getImagePayloadFromFile(t);
|
|
93
122
|
}
|
|
94
123
|
static async getImagePayloadFromFile(o) {
|
|
95
|
-
const [e, t] = await
|
|
124
|
+
const [e, t] = await J(o.arrayBuffer());
|
|
96
125
|
if (t) return [null, t];
|
|
97
126
|
const c = b.encodeArrayBufferToBase64(e), a = o.type;
|
|
98
127
|
return [{ base64: c, mediaType: a }, null];
|
|
@@ -139,9 +168,9 @@ class b {
|
|
|
139
168
|
r.onload = () => {
|
|
140
169
|
const s = document.createElement("canvas"), y = Math.min(t / r.width, t / r.height, 1);
|
|
141
170
|
s.width = r.width * y, s.height = r.height * y, s.getContext("2d").drawImage(r, 0, 0, s.width, s.height);
|
|
142
|
-
const
|
|
171
|
+
const M = s.toDataURL("image/jpeg", c).split(",")[1];
|
|
143
172
|
a({
|
|
144
|
-
base64:
|
|
173
|
+
base64: M,
|
|
145
174
|
mediaType: "image/jpeg"
|
|
146
175
|
});
|
|
147
176
|
}, r.src = `data:${e};base64,${o}`;
|
|
@@ -153,8 +182,8 @@ class b {
|
|
|
153
182
|
return await e.text();
|
|
154
183
|
}
|
|
155
184
|
static getLastUpdated(o) {
|
|
156
|
-
const e =
|
|
157
|
-
return
|
|
185
|
+
const e = T(o);
|
|
186
|
+
return U(e, { addSuffix: !0 });
|
|
158
187
|
}
|
|
159
188
|
static getUniqueIdInList(o, e) {
|
|
160
189
|
const t = o.match(/^(.*?)(-\d+)?$/);
|
|
@@ -173,7 +202,7 @@ class b {
|
|
|
173
202
|
});
|
|
174
203
|
}
|
|
175
204
|
}
|
|
176
|
-
const
|
|
205
|
+
const ao = "https://api.digo-labs.com", ro = "X-Digo-App", so = "X-Admin-Secret", lo = "-digo-labs-storage", go = "wss://ws.digo-labs.com", uo = "us-east-1", po = [
|
|
177
206
|
{
|
|
178
207
|
name: "Claude 3.7 Sonnet",
|
|
179
208
|
description: "Anthropic's advanced model",
|
|
@@ -189,7 +218,7 @@ const no = "https://api.digo-labs.com", eo = "X-Digo-App", io = "X-Admin-Secret"
|
|
|
189
218
|
description: "OpenAi's advanced model",
|
|
190
219
|
icon: "icon-[simple-icons--openai]"
|
|
191
220
|
}
|
|
192
|
-
],
|
|
221
|
+
], yo = {
|
|
193
222
|
typescript: { icon: "typescript", name: "TypeScript" },
|
|
194
223
|
javascript: { icon: "javascript", name: "JavaScript" },
|
|
195
224
|
tsx: { icon: "typescript", name: "TSX" },
|
|
@@ -586,7 +615,7 @@ const p = {
|
|
|
586
615
|
alignCenter: { category: "Misc", icon: "icon-[lucide--align-center]" },
|
|
587
616
|
alignRight: { category: "Misc", icon: "icon-[lucide--align-right]" }
|
|
588
617
|
};
|
|
589
|
-
class
|
|
618
|
+
class fo {
|
|
590
619
|
static getIcon(o) {
|
|
591
620
|
return o in p ? p[o].icon : o;
|
|
592
621
|
}
|
|
@@ -612,7 +641,7 @@ class so {
|
|
|
612
641
|
return o;
|
|
613
642
|
}
|
|
614
643
|
}
|
|
615
|
-
const
|
|
644
|
+
const k = `@plugin "@iconify/tailwind4";
|
|
616
645
|
|
|
617
646
|
@plugin "tailwindcss-animate";
|
|
618
647
|
|
|
@@ -1532,15 +1561,15 @@ const A = `@plugin "@iconify/tailwind4";
|
|
|
1532
1561
|
background-color: var(--color-neutral-12);
|
|
1533
1562
|
color: var(--color-neutral-1);
|
|
1534
1563
|
}
|
|
1535
|
-
}`,
|
|
1564
|
+
}`, R = /--font-([\w-]+):\s*'([^']+)'/g, S = /* @__PURE__ */ new Map();
|
|
1536
1565
|
let h;
|
|
1537
|
-
for (; (h =
|
|
1566
|
+
for (; (h = R.exec(k)) !== null; ) {
|
|
1538
1567
|
const i = `--font-${h[1]}`, o = h[2];
|
|
1539
|
-
|
|
1568
|
+
S.set(o.toLowerCase(), i);
|
|
1540
1569
|
}
|
|
1541
|
-
const
|
|
1570
|
+
const E = /@font-face\s*\{[^}]*?font-family:\s*'([^']+)'[^}]*?font-weight:\s*([\d\s]+)[^}]*?font-style:\s*(\w+)[^}]*?src:\s*url\([^)]*?\/fonts\/([^)]+)\)\s*format\('(\w+)'\)[^}]*?\}/gs, v = [];
|
|
1542
1571
|
let g;
|
|
1543
|
-
for (; (g =
|
|
1572
|
+
for (; (g = E.exec(k)) !== null; ) {
|
|
1544
1573
|
const i = g[1], o = g[2].trim(), e = g[3], t = g[4], c = g[5] === "truetype" ? "ttf" : "otf", a = o.split(/\s+/).map(Number), r = Math.min(...a), s = Math.max(...a);
|
|
1545
1574
|
v.push({
|
|
1546
1575
|
family: i,
|
|
@@ -1550,18 +1579,18 @@ for (; (g = C.exec(A)) !== null; ) {
|
|
|
1550
1579
|
format: c,
|
|
1551
1580
|
filePath: `/fonts/${t}`,
|
|
1552
1581
|
fileName: t,
|
|
1553
|
-
cssVariable:
|
|
1582
|
+
cssVariable: S.get(i.toLowerCase()) ?? null
|
|
1554
1583
|
});
|
|
1555
1584
|
}
|
|
1556
1585
|
v.sort((i, o) => i.family.localeCompare(o.family));
|
|
1557
|
-
const
|
|
1586
|
+
const mo = v, ho = {
|
|
1558
1587
|
digoLogo: "https://cdn.digo-labs.com/images/digo-logo.png",
|
|
1559
1588
|
digoLogoSvg: "https://cdn.digo-labs.com/images/digo-logo.svg",
|
|
1560
1589
|
pcLogoV1Svg: "https://cdn.digo-labs.com/images/pc-logo-v1.svg",
|
|
1561
1590
|
pcLogo3d: "https://cdn.digo-labs.com/images/pc-logo-3d.png",
|
|
1562
1591
|
userPlaceholder: "https://cdn.digo-labs.com/images/user-placeholder.png"
|
|
1563
|
-
},
|
|
1564
|
-
class
|
|
1592
|
+
}, bo = {};
|
|
1593
|
+
class wo {
|
|
1565
1594
|
static setValue(o, e) {
|
|
1566
1595
|
sessionStorage.setItem(o, JSON.stringify(e));
|
|
1567
1596
|
}
|
|
@@ -1576,7 +1605,7 @@ class po {
|
|
|
1576
1605
|
}
|
|
1577
1606
|
}
|
|
1578
1607
|
}
|
|
1579
|
-
const
|
|
1608
|
+
const vo = {
|
|
1580
1609
|
aiText: "text",
|
|
1581
1610
|
dmxSend: "dmx-send",
|
|
1582
1611
|
storagePresignUpload: "storage-presign-upload",
|
|
@@ -1591,7 +1620,7 @@ const yo = {
|
|
|
1591
1620
|
databaseDelete: "database-delete",
|
|
1592
1621
|
refreshSchemas: "refresh-schemas"
|
|
1593
1622
|
};
|
|
1594
|
-
class
|
|
1623
|
+
class xo {
|
|
1595
1624
|
static hashCode(o) {
|
|
1596
1625
|
return [...o].reduce(
|
|
1597
1626
|
(e, t) => Math.imul(31, e) + t.charCodeAt(0) | 0,
|
|
@@ -1617,16 +1646,16 @@ class fo {
|
|
|
1617
1646
|
return d.decompressFromUint8Array(o);
|
|
1618
1647
|
}
|
|
1619
1648
|
static blobToBase64(o) {
|
|
1620
|
-
return
|
|
1649
|
+
return D(o);
|
|
1621
1650
|
}
|
|
1622
1651
|
static base64ToBlob(o) {
|
|
1623
|
-
return
|
|
1652
|
+
return z(o);
|
|
1624
1653
|
}
|
|
1625
1654
|
static getFirstLetter(o) {
|
|
1626
1655
|
return o ? o.charAt(0).toUpperCase() : "X";
|
|
1627
1656
|
}
|
|
1628
1657
|
}
|
|
1629
|
-
const
|
|
1658
|
+
const Ao = {
|
|
1630
1659
|
digo: "Digo",
|
|
1631
1660
|
refresh: "Refresh",
|
|
1632
1661
|
code: "Code",
|
|
@@ -1714,7 +1743,7 @@ const mo = {
|
|
|
1714
1743
|
generate: "Generate",
|
|
1715
1744
|
savePreset: "Save Preset",
|
|
1716
1745
|
image: "Image"
|
|
1717
|
-
},
|
|
1746
|
+
}, L = [
|
|
1718
1747
|
{
|
|
1719
1748
|
id: "us.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
1720
1749
|
provider: "Anthropic",
|
|
@@ -1757,112 +1786,112 @@ const mo = {
|
|
|
1757
1786
|
version: "1",
|
|
1758
1787
|
description: "Higher-quality multimodal, slower than Lite."
|
|
1759
1788
|
}
|
|
1760
|
-
],
|
|
1789
|
+
], ko = L[0].id, O = n.object({
|
|
1761
1790
|
type: n.literal("text"),
|
|
1762
1791
|
text: n.string()
|
|
1763
|
-
}),
|
|
1792
|
+
}), P = n.object({
|
|
1764
1793
|
type: n.literal("image"),
|
|
1765
1794
|
source: n.object({
|
|
1766
1795
|
base64: n.string(),
|
|
1767
1796
|
mediaType: n.string()
|
|
1768
1797
|
})
|
|
1769
|
-
}),
|
|
1798
|
+
}), _ = n.union([
|
|
1770
1799
|
n.string(),
|
|
1771
|
-
n.array(n.union([
|
|
1772
|
-
]),
|
|
1800
|
+
n.array(n.union([O, P]))
|
|
1801
|
+
]), G = n.object({
|
|
1773
1802
|
role: n.enum(["user", "assistant"]),
|
|
1774
|
-
content:
|
|
1775
|
-
}),
|
|
1803
|
+
content: _
|
|
1804
|
+
}), So = n.object({
|
|
1776
1805
|
model: n.string().optional(),
|
|
1777
|
-
messages: n.array(
|
|
1806
|
+
messages: n.array(G).min(1),
|
|
1778
1807
|
systemPrompt: n.string().optional(),
|
|
1779
1808
|
temperature: n.number().min(0).max(2).optional(),
|
|
1780
1809
|
maxTokens: n.number().int().positive().optional(),
|
|
1781
1810
|
stopSequences: n.array(n.string()).optional(),
|
|
1782
1811
|
providerOptions: n.record(n.string(), n.record(n.string(), n.any())).optional()
|
|
1783
|
-
}),
|
|
1812
|
+
}), Mo = n.object({
|
|
1784
1813
|
channel: n.number().int().min(1).max(512),
|
|
1785
1814
|
value: n.number().int().min(0).max(255)
|
|
1786
|
-
}),
|
|
1815
|
+
}), Fo = n.object({
|
|
1787
1816
|
success: n.boolean()
|
|
1788
|
-
}), l = n.string().min(1), f = n.union([n.string(), n.number(), n.boolean(), n.null()]), u = n.record(n.string(), n.unknown()),
|
|
1817
|
+
}), l = n.string().min(1), f = n.union([n.string(), n.number(), n.boolean(), n.null()]), u = n.record(n.string(), n.unknown()), Io = n.object({
|
|
1789
1818
|
table: l,
|
|
1790
1819
|
limit: n.number().int().positive().optional(),
|
|
1791
1820
|
offset: n.number().int().nonnegative().optional()
|
|
1792
|
-
}),
|
|
1821
|
+
}), No = n.object({
|
|
1793
1822
|
rows: n.array(u)
|
|
1794
|
-
}),
|
|
1823
|
+
}), To = n.object({
|
|
1795
1824
|
table: l,
|
|
1796
1825
|
pk: l,
|
|
1797
1826
|
value: f
|
|
1798
|
-
}),
|
|
1827
|
+
}), Uo = n.object({
|
|
1799
1828
|
row: u.nullable()
|
|
1800
|
-
}),
|
|
1829
|
+
}), Do = n.object({
|
|
1801
1830
|
table: l,
|
|
1802
1831
|
column: l,
|
|
1803
1832
|
value: f
|
|
1804
|
-
}),
|
|
1833
|
+
}), zo = n.object({
|
|
1805
1834
|
rows: n.array(u)
|
|
1806
|
-
}),
|
|
1835
|
+
}), Co = n.object({
|
|
1807
1836
|
table: l,
|
|
1808
1837
|
record: u
|
|
1809
|
-
}),
|
|
1838
|
+
}), Bo = n.object({
|
|
1810
1839
|
row: u
|
|
1811
|
-
}),
|
|
1840
|
+
}), jo = n.object({
|
|
1812
1841
|
table: l,
|
|
1813
1842
|
pk: l,
|
|
1814
1843
|
value: f,
|
|
1815
1844
|
changes: u
|
|
1816
|
-
}),
|
|
1845
|
+
}), Ro = n.object({
|
|
1817
1846
|
success: n.boolean()
|
|
1818
|
-
}),
|
|
1847
|
+
}), Eo = n.object({
|
|
1819
1848
|
table: l,
|
|
1820
1849
|
pk: l,
|
|
1821
1850
|
value: f
|
|
1822
|
-
}),
|
|
1851
|
+
}), Lo = n.object({
|
|
1823
1852
|
success: n.boolean()
|
|
1824
|
-
}),
|
|
1853
|
+
}), Oo = n.object({
|
|
1825
1854
|
mediaType: n.string(),
|
|
1826
1855
|
base64: n.string()
|
|
1827
|
-
}),
|
|
1856
|
+
}), Po = n.object({
|
|
1828
1857
|
mediaType: n.string(),
|
|
1829
1858
|
base64: n.string()
|
|
1830
|
-
}),
|
|
1859
|
+
}), _o = n.string().regex(/^\d+x\d+$/).transform((i) => i), Go = n.string().regex(/^\d+:\d+$/).transform((i) => i), qo = n.object({
|
|
1831
1860
|
bucket: n.string().min(1),
|
|
1832
1861
|
path: n.string().min(1),
|
|
1833
1862
|
contentType: n.string().min(1),
|
|
1834
1863
|
expiresIn: n.number().int().positive().max(604800).optional()
|
|
1835
|
-
}),
|
|
1864
|
+
}), q = n.object({
|
|
1836
1865
|
url: n.string().url(),
|
|
1837
1866
|
expiresAt: n.number()
|
|
1838
|
-
}),
|
|
1867
|
+
}), $o = n.object({
|
|
1839
1868
|
bucket: n.string().min(1),
|
|
1840
1869
|
path: n.string().min(1),
|
|
1841
1870
|
expiresIn: n.number().int().positive().max(604800).optional()
|
|
1842
|
-
}),
|
|
1871
|
+
}), Vo = q, Xo = n.object({
|
|
1843
1872
|
bucket: n.string().min(1),
|
|
1844
1873
|
prefix: n.string().optional(),
|
|
1845
1874
|
limit: n.number().int().positive().max(1e3).optional()
|
|
1846
|
-
}),
|
|
1875
|
+
}), $ = n.object({
|
|
1847
1876
|
key: n.string(),
|
|
1848
1877
|
size: n.number(),
|
|
1849
1878
|
lastModified: n.string(),
|
|
1850
1879
|
etag: n.string().optional()
|
|
1851
|
-
}),
|
|
1852
|
-
objects: n.array(
|
|
1853
|
-
}),
|
|
1880
|
+
}), Ho = n.object({
|
|
1881
|
+
objects: n.array($)
|
|
1882
|
+
}), Yo = n.object({
|
|
1854
1883
|
bucket: n.string().min(1),
|
|
1855
1884
|
paths: n.array(n.string().min(1)).min(1)
|
|
1856
|
-
}),
|
|
1885
|
+
}), Jo = n.object({
|
|
1857
1886
|
success: n.boolean(),
|
|
1858
1887
|
deleted: n.array(n.string())
|
|
1859
1888
|
});
|
|
1860
|
-
var
|
|
1861
|
-
const
|
|
1862
|
-
var
|
|
1863
|
-
const
|
|
1889
|
+
var V = /* @__PURE__ */ ((i) => (i.ANIMATED_FILM = "3D_ANIMATED_FAMILY_FILM", i.FLAT_VECTOR_ILLUSTRATION = "FLAT_VECTOR_ILLUSTRATION", i.GRAPHIC_NOVEL_ILLUSTRATION = "GRAPHIC_NOVEL_ILLUSTRATION", i.MAXIMALISM = "MAXIMALISM", i.MIDCENTURY_RETRO = "MIDCENTURY_RETRO", i.PHOTOREALISM = "PHOTOREALISM", i.SOFT_DIGITAL_PAINTING = "SOFT_DIGITAL_PAINTING", i))(V || {}), X = /* @__PURE__ */ ((i) => (i.IDENTIFY = "IDENTIFY", i.SUBSCRIBE = "SUBSCRIBE", i.UNSUBSCRIBE = "UNSUBSCRIBE", i.MESSAGE = "MESSAGE", i.STATE = "STATE", i))(X || {}), H = /* @__PURE__ */ ((i) => (i.MESSAGE = "MESSAGE", i.STATE = "STATE", i))(H || {});
|
|
1890
|
+
const Ko = "_hub";
|
|
1891
|
+
var Y = /* @__PURE__ */ ((i) => (i.CONNECT = "CONNECT", i.DISCONNECT = "DISCONNECT", i.SUBSCRIBE = "SUBSCRIBE", i.UNSUBSCRIBE = "UNSUBSCRIBE", i.MESSAGE = "MESSAGE", i.STATE = "STATE", i))(Y || {});
|
|
1892
|
+
const Zo = {
|
|
1864
1893
|
pcLogo3D: "https://cdn.digo-labs.com/videos/pc-logo-3d.mp4"
|
|
1865
|
-
},
|
|
1894
|
+
}, Qo = {
|
|
1866
1895
|
aalto: "https://cdn.digo-labs.com/fonts/aalto.otf",
|
|
1867
1896
|
being: "https://cdn.digo-labs.com/fonts/being.otf",
|
|
1868
1897
|
benzol: "https://cdn.digo-labs.com/fonts/benzol.otf",
|
|
@@ -1886,17 +1915,17 @@ const Xo = {
|
|
|
1886
1915
|
geist: "https://cdn.digo-labs.com/fonts/geist.ttf",
|
|
1887
1916
|
geistMono: "https://cdn.digo-labs.com/fonts/geist-mono.ttf"
|
|
1888
1917
|
};
|
|
1889
|
-
async function
|
|
1918
|
+
async function J(i) {
|
|
1890
1919
|
try {
|
|
1891
1920
|
return [await i, null];
|
|
1892
1921
|
} catch (o) {
|
|
1893
1922
|
return [null, o];
|
|
1894
1923
|
}
|
|
1895
1924
|
}
|
|
1896
|
-
function
|
|
1897
|
-
return
|
|
1925
|
+
function Wo(...i) {
|
|
1926
|
+
return B(C(i));
|
|
1898
1927
|
}
|
|
1899
|
-
const
|
|
1928
|
+
const on = [
|
|
1900
1929
|
"New York",
|
|
1901
1930
|
"Tokyo",
|
|
1902
1931
|
"Paris",
|
|
@@ -1922,7 +1951,7 @@ const Yo = [
|
|
|
1922
1951
|
"Mexico City",
|
|
1923
1952
|
"Oslo",
|
|
1924
1953
|
"Zürich"
|
|
1925
|
-
],
|
|
1954
|
+
], nn = [
|
|
1926
1955
|
"The quick brown fox jumps over the lazy dog.",
|
|
1927
1956
|
"Pack my box with five dozen liquor jugs.",
|
|
1928
1957
|
"How vexingly quick daft zebras jump.",
|
|
@@ -1933,73 +1962,76 @@ const Yo = [
|
|
|
1933
1962
|
"Sixty zippers were quickly picked from the woven jute bag.",
|
|
1934
1963
|
"We promptly judged antique ivory buckles for the next prize.",
|
|
1935
1964
|
"A mad boxer shot a quick, gloved jab to the jaw of his dizzy opponent."
|
|
1936
|
-
],
|
|
1965
|
+
], en = {
|
|
1937
1966
|
monorepo: {
|
|
1938
1967
|
trustedOrigins: [
|
|
1939
|
-
"http://localhost
|
|
1968
|
+
"http://localhost:*",
|
|
1969
|
+
"http://127.0.0.1:*",
|
|
1940
1970
|
"https://*.digo-labs.com"
|
|
1941
1971
|
]
|
|
1942
1972
|
}
|
|
1943
1973
|
};
|
|
1944
1974
|
export {
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1975
|
+
po as AI_MODELS,
|
|
1976
|
+
en as AUTH_PROJECTS,
|
|
1977
|
+
uo as AWS_DEFAULT_REGION,
|
|
1978
|
+
j as AppConfigHelpers,
|
|
1979
|
+
ao as BACKEND_URL,
|
|
1980
|
+
L as BEDROCK_MODELS,
|
|
1981
|
+
V as BedrockStyle,
|
|
1982
|
+
on as CITIES,
|
|
1952
1983
|
b as CommonHelpers,
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
1984
|
+
ko as DEFAULT_TEXT_MODEL,
|
|
1985
|
+
so as DIGO_ADMIN_SECRET,
|
|
1986
|
+
ro as DIGO_HEADERS,
|
|
1987
|
+
lo as DIGO_STORAGE_BUCKET_SUFFIX,
|
|
1988
|
+
nn as EXCERPTS,
|
|
1989
|
+
Qo as FONTS,
|
|
1990
|
+
mo as FONT_FACES,
|
|
1991
|
+
ho as IMAGES,
|
|
1992
|
+
fo as IconHelpers,
|
|
1993
|
+
yo as LANGUAGE_MAP,
|
|
1994
|
+
wo as LocalStorage,
|
|
1995
|
+
bo as MODELS,
|
|
1996
|
+
vo as ROUTES,
|
|
1997
|
+
Ao as STRINGS,
|
|
1998
|
+
xo as StringHelpers,
|
|
1999
|
+
Zo as VIDEOS,
|
|
2000
|
+
Ko as WEBSOCKET_HUB_CHANNEL,
|
|
2001
|
+
go as WS_URL,
|
|
2002
|
+
H as WebSocketHubEvent,
|
|
2003
|
+
X as WebsocketClientEvent,
|
|
2004
|
+
Y as WebsocketLogEvent,
|
|
2005
|
+
Go as aspectRatioSchema,
|
|
2006
|
+
Wo as cn,
|
|
2007
|
+
Co as databaseCreateBodySchema,
|
|
2008
|
+
Bo as databaseCreateResponseSchema,
|
|
2009
|
+
Eo as databaseDeleteBodySchema,
|
|
2010
|
+
Lo as databaseDeleteResponseSchema,
|
|
2011
|
+
Io as databaseGetAllBodySchema,
|
|
2012
|
+
No as databaseGetAllResponseSchema,
|
|
2013
|
+
To as databaseGetBodySchema,
|
|
2014
|
+
Do as databaseGetByBodySchema,
|
|
2015
|
+
zo as databaseGetByResponseSchema,
|
|
2016
|
+
Uo as databaseGetResponseSchema,
|
|
2017
|
+
jo as databaseUpdateBodySchema,
|
|
2018
|
+
Ro as databaseUpdateResponseSchema,
|
|
2019
|
+
Yo as deleteBodySchema,
|
|
2020
|
+
Jo as deleteResponseSchema,
|
|
2021
|
+
Mo as dmxSendBodySchema,
|
|
2022
|
+
Fo as dmxSendResponseSchema,
|
|
2023
|
+
Oo as filePayloadSchema,
|
|
2024
|
+
Po as imagePayloadSchema,
|
|
2025
|
+
Xo as listBodySchema,
|
|
2026
|
+
Ho as listResponseSchema,
|
|
2027
|
+
$o as presignDownloadBodySchema,
|
|
2028
|
+
Vo as presignDownloadResponseSchema,
|
|
2029
|
+
qo as presignUploadBodySchema,
|
|
2030
|
+
q as presignUploadResponseSchema,
|
|
2031
|
+
_o as sizeFormattedSchema,
|
|
2032
|
+
$ as storageObjectSchema,
|
|
2033
|
+
So as textBodySchema,
|
|
2034
|
+
G as textMessageSchema,
|
|
2035
|
+
J as tryCatch
|
|
2004
2036
|
};
|
|
2005
2037
|
//# sourceMappingURL=index.js.map
|