@factorialco/f0-react 4.55.0 → 4.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatPdfThumbnail-e_xAa5BG.js → ChatPdfThumbnail-DBvkl-F_.js} +1 -1
- package/dist/{DocumentToolbar-ZnR9EUMa.js → DocumentToolbar-DQpt1krt.js} +2 -2
- package/dist/{DocxViewer-B3DGLu2C.js → DocxViewer-B6HTjpEm.js} +2 -2
- package/dist/{F0AiProcessingOverlay-BVHAspoQ.js → F0AiProcessingOverlay-D5hKB9d7.js} +637 -612
- package/dist/{F0CanvasPanel-DvAledR4.js → F0CanvasPanel-BeVQHrJo.js} +34109 -38710
- package/dist/{SheetViewer-DtfcXdoa.js → SheetViewer-DOm6rD9f.js} +2 -2
- package/dist/{TextViewer-Drfvy4UM.js → TextViewer-BW9eWjT_.js} +2 -2
- package/dist/ai.d.ts +19 -4
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +10 -0
- package/dist/component-status.js +361 -221
- package/dist/experimental.d.ts +7 -1
- package/dist/experimental.js +340 -339
- package/dist/f0.d.ts +26 -5
- package/dist/f0.js +500 -499
- package/dist/{index-BgFg3D88.js → index-BF3g-R2k.js} +318 -316
- package/dist/{index-DYLglfsp.js → index-CfHeK3Qf.js} +34 -33
- package/dist/{pdfWorker-CqQpWr5o.js → pdfWorker-D-5ek9Um.js} +3 -2
- package/dist/styles.css +1 -1
- package/dist/tooltip-BH6Se8A4.js +4633 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
-
import { useInsertionEffect as Tr, forwardRef as h, useRef as j, useEffect as q, useLayoutEffect as rt, useState as
|
|
3
|
-
import {
|
|
2
|
+
import { useInsertionEffect as Tr, forwardRef as h, useRef as j, useEffect as q, useLayoutEffect as rt, useState as I, useMemo as J, useCallback as _, createContext as Ge, useContext as Ie, useId as ot, createElement as Hr, memo as Ar } from "react";
|
|
3
|
+
import { c$ as $r, d0 as Br, a5 as nt, bZ as Ir, d1 as Pr, d2 as jr, d3 as Dr, d4 as Zr, b_ as _r, c6 as st, bY as Or, d5 as Ur, ae as s1, d6 as zr, aN as Gr, d7 as Wr, d8 as qr, d9 as Xr, am as Yr, da as Kr, cx as Qr, ag as it, aj as Jr, db as eo, o as i1, a9 as at, a0 as We, n as ct, bl as to, c4 as ro, dc as oo, b6 as no, cw as so, a7 as Fe, az as io, bp as lt, dd as ao, cu as co, l as Me, cs as lo, de as fo, bS as dt, b5 as uo, df as ho, dg as go, dh as po, di as Co, dj as mo, dk as ft, cl as vo, cm as wo, dl as xo, dm as ko, dn as Lo, dp as bo, dq as yo, bz as Mo, c0 as Eo, dr as Ro, ds as Fo, dt as No, du as Vo, dv as So, dw as To, dx as Ho, dy as Ao, by as $o, cv as Bo, ah as Io, ch as Po, dz as jo, dA as Do, dB as Zo, dC as _o, dD as Oo, dE as Uo, dF as zo, av as Go, bA as Wo, bU as ut, Z as qo, a8 as Xo, bB as ht, bR as Yo, bT as gt, i as Ko, bo as Qo, bn as Jo, dG as en, dH as tn, bC as pt, bD as rn, bE as on, b4 as nn, aC as sn, dI as an, j as cn, bj as Ct, bi as mt, bc as ln, dJ as vt, bb as dn, b$ as a1, q as fn, bf as c1, dK as un, dL as hn, dM as l1, c2 as gn, c3 as pn, ct as wt, dN as Cn, U as mn, Q as vn, dO as wn, dP as xn, dQ as kn, dR as Ln, bP as bn, dS as xt, dT as yn, ai as Mn, dU as En, Y as se, J as Te, cb as Rn, u as G, bO as Fn, S as he, bN as kt, V as le, aa as Nn, m as ve, dV as Vn, ak as ie, aT as ke, O as Ee, H as ee, cC as Lt, aH as d1, dW as Sn, aI as f1, aJ as u1, b as ye, bL as Tn, dX as Hn, bM as An, a1 as $n, b3 as Bn, ad as h1, bF as In, bG as Pn, bH as jn, bI as y1, ab as Dn, aq as bt, aW as yt, c1 as Zn, cH as _n, dY as On, dZ as Un, a$ as Mt, d_ as zn, cD as Gn, d$ as Wn, aY as Be, bd as Et, e0 as Rt, be as Ft, c as r1, c5 as M1, e1 as Nt, e2 as qn, e3 as Xn, bt as Yn, e4 as Kn, bk as g1, ci as Qn, e5 as Jn, e6 as es, e7 as ts, e8 as rs, e9 as os, w as ns, s as ss, M as is, N as as, ap as E1, ea as Vt, eb as St, ec as cs, ed as ls, ao as ds, af as fs, ee as us, ef as hs, d as gs } from "./F0CanvasPanel-BeVQHrJo.js";
|
|
4
|
+
import { d as k, f as ge } from "./tooltip-BH6Se8A4.js";
|
|
4
5
|
import { createPortal as Tt } from "react-dom";
|
|
5
6
|
import { defaultTranslations as ps } from "./i18n-provider-defaults.js";
|
|
6
7
|
import { useTrackVolume as Cs } from "@livekit/components-react";
|
|
@@ -5389,7 +5390,7 @@ const b0 = (e, r) => /* @__PURE__ */ a(
|
|
|
5389
5390
|
return l;
|
|
5390
5391
|
}, e);
|
|
5391
5392
|
return /* @__PURE__ */ t(
|
|
5392
|
-
|
|
5393
|
+
se,
|
|
5393
5394
|
{
|
|
5394
5395
|
...o,
|
|
5395
5396
|
variant: "ai",
|
|
@@ -6360,21 +6361,21 @@ const $c = Te({
|
|
|
6360
6361
|
margin: m,
|
|
6361
6362
|
marginX: x,
|
|
6362
6363
|
marginY: v,
|
|
6363
|
-
marginTop:
|
|
6364
|
-
marginBottom:
|
|
6365
|
-
marginLeft:
|
|
6366
|
-
marginRight:
|
|
6364
|
+
marginTop: M,
|
|
6365
|
+
marginBottom: A,
|
|
6366
|
+
marginLeft: T,
|
|
6367
|
+
marginRight: V,
|
|
6367
6368
|
// Gap
|
|
6368
|
-
gap:
|
|
6369
|
+
gap: E,
|
|
6369
6370
|
// Grid
|
|
6370
6371
|
columns: w,
|
|
6371
6372
|
rows: N,
|
|
6372
6373
|
colSpan: L,
|
|
6373
|
-
colStart:
|
|
6374
|
-
rowSpan:
|
|
6374
|
+
colStart: $,
|
|
6375
|
+
rowSpan: R,
|
|
6375
6376
|
// Dimensions
|
|
6376
|
-
width:
|
|
6377
|
-
height:
|
|
6377
|
+
width: S,
|
|
6378
|
+
height: B,
|
|
6378
6379
|
minWidth: U,
|
|
6379
6380
|
minHeight: O,
|
|
6380
6381
|
maxWidth: z,
|
|
@@ -6387,7 +6388,7 @@ const $c = Te({
|
|
|
6387
6388
|
borderTop: D,
|
|
6388
6389
|
borderBottom: W,
|
|
6389
6390
|
borderLeft: K,
|
|
6390
|
-
borderRight:
|
|
6391
|
+
borderRight: ae,
|
|
6391
6392
|
borderRadius: ue,
|
|
6392
6393
|
borderRadiusTopLeft: pe,
|
|
6393
6394
|
borderRadiusTopRight: re,
|
|
@@ -6395,13 +6396,13 @@ const $c = Te({
|
|
|
6395
6396
|
borderRadiusBottomRight: we,
|
|
6396
6397
|
borderStyle: b,
|
|
6397
6398
|
// Overflow
|
|
6398
|
-
overflow:
|
|
6399
|
+
overflow: F,
|
|
6399
6400
|
overflowX: y,
|
|
6400
6401
|
overflowY: P,
|
|
6401
6402
|
// Divider
|
|
6402
|
-
divider:
|
|
6403
|
+
divider: H,
|
|
6403
6404
|
dividerColor: Z,
|
|
6404
|
-
boxShadow:
|
|
6405
|
+
boxShadow: ce,
|
|
6405
6406
|
// Flex
|
|
6406
6407
|
alignItems: fe,
|
|
6407
6408
|
justifyContent: me,
|
|
@@ -6416,7 +6417,7 @@ const $c = Te({
|
|
|
6416
6417
|
xl: Ke,
|
|
6417
6418
|
...Pe
|
|
6418
6419
|
}, Qe) => {
|
|
6419
|
-
const Ae = D && D !== "none" || W && W !== "none" || K && K !== "none" ||
|
|
6420
|
+
const Ae = D && D !== "none" || W && W !== "none" || K && K !== "none" || ae && ae !== "none", Se = Y && Y !== "none" || Ae, je = { sm: xe, md: Xe, lg: Ye, xl: Ke }, De = Bc.map((Ze) => {
|
|
6420
6421
|
const _e = je[Ze];
|
|
6421
6422
|
return _e ? Ac(Ze, _e) : "";
|
|
6422
6423
|
}).filter(Boolean).join(" ");
|
|
@@ -6444,18 +6445,18 @@ const $c = Te({
|
|
|
6444
6445
|
margin: m,
|
|
6445
6446
|
marginX: x,
|
|
6446
6447
|
marginY: v,
|
|
6447
|
-
marginTop:
|
|
6448
|
-
marginBottom:
|
|
6449
|
-
marginLeft:
|
|
6450
|
-
marginRight:
|
|
6451
|
-
gap:
|
|
6448
|
+
marginTop: M,
|
|
6449
|
+
marginBottom: A,
|
|
6450
|
+
marginLeft: T,
|
|
6451
|
+
marginRight: V,
|
|
6452
|
+
gap: E,
|
|
6452
6453
|
columns: w,
|
|
6453
6454
|
rows: N,
|
|
6454
6455
|
colSpan: L,
|
|
6455
|
-
colStart:
|
|
6456
|
-
rowSpan:
|
|
6457
|
-
width:
|
|
6458
|
-
height:
|
|
6456
|
+
colStart: $,
|
|
6457
|
+
rowSpan: R,
|
|
6458
|
+
width: S,
|
|
6459
|
+
height: B,
|
|
6459
6460
|
minWidth: U,
|
|
6460
6461
|
minHeight: O,
|
|
6461
6462
|
maxWidth: z,
|
|
@@ -6466,17 +6467,17 @@ const $c = Te({
|
|
|
6466
6467
|
borderTop: D,
|
|
6467
6468
|
borderBottom: W,
|
|
6468
6469
|
borderLeft: K,
|
|
6469
|
-
borderRight:
|
|
6470
|
+
borderRight: ae,
|
|
6470
6471
|
borderRadius: ue,
|
|
6471
6472
|
borderRadiusTopLeft: pe,
|
|
6472
6473
|
borderRadiusTopRight: re,
|
|
6473
6474
|
borderRadiusBottomLeft: de,
|
|
6474
6475
|
borderRadiusBottomRight: we,
|
|
6475
6476
|
borderStyle: b,
|
|
6476
|
-
overflow:
|
|
6477
|
+
overflow: F,
|
|
6477
6478
|
overflowX: y,
|
|
6478
6479
|
overflowY: P,
|
|
6479
|
-
divider:
|
|
6480
|
+
divider: H,
|
|
6480
6481
|
dividerColor: Z,
|
|
6481
6482
|
alignItems: fe,
|
|
6482
6483
|
justifyContent: me,
|
|
@@ -6484,11 +6485,11 @@ const $c = Te({
|
|
|
6484
6485
|
flexWrap: Ne,
|
|
6485
6486
|
grow: Ve,
|
|
6486
6487
|
shrink: qe,
|
|
6487
|
-
boxShadow:
|
|
6488
|
+
boxShadow: ce
|
|
6488
6489
|
}),
|
|
6489
6490
|
De,
|
|
6490
6491
|
Se && !X && "border-f1-border",
|
|
6491
|
-
|
|
6492
|
+
H && !Z && "divide-f1-border",
|
|
6492
6493
|
"scrollbar-macos"
|
|
6493
6494
|
),
|
|
6494
6495
|
...Pe
|
|
@@ -6503,7 +6504,7 @@ const e1 = Rn(
|
|
|
6503
6504
|
type: "layout"
|
|
6504
6505
|
},
|
|
6505
6506
|
Jt
|
|
6506
|
-
),
|
|
6507
|
+
), j6 = ["xs", "sm", "md", "lg"], D6 = [
|
|
6507
6508
|
"inProgress",
|
|
6508
6509
|
"executing",
|
|
6509
6510
|
"writing",
|
|
@@ -6537,7 +6538,7 @@ const e1 = Rn(
|
|
|
6537
6538
|
),
|
|
6538
6539
|
/* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
6539
6540
|
/* @__PURE__ */ t(
|
|
6540
|
-
|
|
6541
|
+
se,
|
|
6541
6542
|
{
|
|
6542
6543
|
label: v.ai.cancelRecording,
|
|
6543
6544
|
hideLabel: !0,
|
|
@@ -6549,7 +6550,7 @@ const e1 = Rn(
|
|
|
6549
6550
|
}
|
|
6550
6551
|
),
|
|
6551
6552
|
/* @__PURE__ */ t(
|
|
6552
|
-
|
|
6553
|
+
se,
|
|
6553
6554
|
{
|
|
6554
6555
|
label: v.ai.stopRecording,
|
|
6555
6556
|
hideLabel: !0,
|
|
@@ -6565,7 +6566,7 @@ const e1 = Rn(
|
|
|
6565
6566
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
6566
6567
|
e && /* @__PURE__ */ a(Re, { children: [
|
|
6567
6568
|
/* @__PURE__ */ t(
|
|
6568
|
-
|
|
6569
|
+
se,
|
|
6569
6570
|
{
|
|
6570
6571
|
label: v.ai.attachFile,
|
|
6571
6572
|
hideLabel: !0,
|
|
@@ -6574,8 +6575,8 @@ const e1 = Rn(
|
|
|
6574
6575
|
variant: "outline",
|
|
6575
6576
|
size: "md",
|
|
6576
6577
|
disabled: o || p === "transcribing",
|
|
6577
|
-
onClick: (
|
|
6578
|
-
|
|
6578
|
+
onClick: (M) => {
|
|
6579
|
+
M.preventDefault(), i.current?.click();
|
|
6579
6580
|
}
|
|
6580
6581
|
}
|
|
6581
6582
|
),
|
|
@@ -6598,14 +6599,14 @@ const e1 = Rn(
|
|
|
6598
6599
|
"div",
|
|
6599
6600
|
{
|
|
6600
6601
|
className: "min-w-0 cursor-default",
|
|
6601
|
-
onClick: (
|
|
6602
|
+
onClick: (M) => M.stopPropagation(),
|
|
6602
6603
|
children: r
|
|
6603
6604
|
}
|
|
6604
6605
|
)
|
|
6605
6606
|
] }),
|
|
6606
6607
|
/* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
6607
6608
|
f && /* @__PURE__ */ t(
|
|
6608
|
-
|
|
6609
|
+
se,
|
|
6609
6610
|
{
|
|
6610
6611
|
label: v.ai.recordAudio,
|
|
6611
6612
|
hideLabel: !0,
|
|
@@ -6619,7 +6620,7 @@ const e1 = Rn(
|
|
|
6619
6620
|
}
|
|
6620
6621
|
),
|
|
6621
6622
|
p !== "transcribing" && d ? /* @__PURE__ */ t(
|
|
6622
|
-
|
|
6623
|
+
se,
|
|
6623
6624
|
{
|
|
6624
6625
|
type: "submit",
|
|
6625
6626
|
variant: "neutral",
|
|
@@ -6628,7 +6629,7 @@ const e1 = Rn(
|
|
|
6628
6629
|
hideLabel: !0
|
|
6629
6630
|
}
|
|
6630
6631
|
) : /* @__PURE__ */ t(
|
|
6631
|
-
|
|
6632
|
+
se,
|
|
6632
6633
|
{
|
|
6633
6634
|
type: "submit",
|
|
6634
6635
|
disabled: !c || u,
|
|
@@ -6839,7 +6840,7 @@ function _c({
|
|
|
6839
6840
|
size: "xsmall"
|
|
6840
6841
|
}
|
|
6841
6842
|
),
|
|
6842
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col", children: /* @__PURE__ */ t(
|
|
6843
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col", children: /* @__PURE__ */ t(ie, { className: "text-base font-medium text-f1-foreground", children: g }) })
|
|
6843
6844
|
]
|
|
6844
6845
|
},
|
|
6845
6846
|
String(f.id)
|
|
@@ -6863,7 +6864,7 @@ const Oc = ({
|
|
|
6863
6864
|
children: [
|
|
6864
6865
|
/* @__PURE__ */ t("div", { className: "flex items-center py-0.5", children: /* @__PURE__ */ t(le, { icon: a1, size: "md", color: "default" }) }),
|
|
6865
6866
|
/* @__PURE__ */ t(
|
|
6866
|
-
|
|
6867
|
+
ie,
|
|
6867
6868
|
{
|
|
6868
6869
|
className: "h-full flex-1 py-0.5 text-[12px] font-medium text-f1-foreground-secondary",
|
|
6869
6870
|
lines: 1,
|
|
@@ -6871,7 +6872,7 @@ const Oc = ({
|
|
|
6871
6872
|
}
|
|
6872
6873
|
),
|
|
6873
6874
|
/* @__PURE__ */ t(
|
|
6874
|
-
|
|
6875
|
+
se,
|
|
6875
6876
|
{
|
|
6876
6877
|
variant: "ghost",
|
|
6877
6878
|
label: o.ai.removeQuote,
|
|
@@ -6890,7 +6891,7 @@ const Oc = ({
|
|
|
6890
6891
|
inputValue: o,
|
|
6891
6892
|
inProgress: n
|
|
6892
6893
|
}) => {
|
|
6893
|
-
const s =
|
|
6894
|
+
const s = ke(), [i, l] = I(""), [d, c] = I(0), [u, f] = I(!1), p = j(null), C = j(null), g = j(null), m = e[d] ?? r;
|
|
6894
6895
|
return q(() => {
|
|
6895
6896
|
const x = () => {
|
|
6896
6897
|
C.current && (clearInterval(C.current), C.current = null), g.current && (clearInterval(g.current), g.current = null), p.current && (clearTimeout(p.current), p.current = null);
|
|
@@ -6901,24 +6902,24 @@ const Oc = ({
|
|
|
6901
6902
|
}
|
|
6902
6903
|
if (s)
|
|
6903
6904
|
return f(!1), l(m), x(), p.current = setTimeout(() => {
|
|
6904
|
-
const
|
|
6905
|
-
c(
|
|
6905
|
+
const E = (d + 1) % Math.max(e.length, 1);
|
|
6906
|
+
c(E);
|
|
6906
6907
|
}, 4e3), () => {
|
|
6907
6908
|
x();
|
|
6908
6909
|
};
|
|
6909
6910
|
f(!0), l("");
|
|
6910
6911
|
let v = 0;
|
|
6911
|
-
const
|
|
6912
|
+
const M = 50, A = 30, T = 2e3, V = 1e3;
|
|
6912
6913
|
return C.current = setInterval(() => {
|
|
6913
6914
|
v < m.length ? (l(m.slice(0, v + 1)), v++) : (C.current && (clearInterval(C.current), C.current = null), p.current = setTimeout(() => {
|
|
6914
6915
|
g.current = setInterval(() => {
|
|
6915
6916
|
v > 0 ? (v--, l(m.slice(0, v))) : (g.current && (clearInterval(g.current), g.current = null), p.current = setTimeout(() => {
|
|
6916
|
-
const
|
|
6917
|
-
c(
|
|
6918
|
-
},
|
|
6919
|
-
},
|
|
6920
|
-
},
|
|
6921
|
-
},
|
|
6917
|
+
const E = (d + 1) % Math.max(e.length, 1);
|
|
6918
|
+
c(E);
|
|
6919
|
+
}, V));
|
|
6920
|
+
}, A);
|
|
6921
|
+
}, T));
|
|
6922
|
+
}, M), () => {
|
|
6922
6923
|
x();
|
|
6923
6924
|
};
|
|
6924
6925
|
}, [
|
|
@@ -7094,7 +7095,7 @@ const Yc = ({
|
|
|
7094
7095
|
onItemHover: o,
|
|
7095
7096
|
side: n = "top"
|
|
7096
7097
|
}) => {
|
|
7097
|
-
const [s, i] =
|
|
7098
|
+
const [s, i] = I(null), l = s !== null ? e[s] : null;
|
|
7098
7099
|
return e.length === 0 ? null : /* @__PURE__ */ a(
|
|
7099
7100
|
d1,
|
|
7100
7101
|
{
|
|
@@ -7104,7 +7105,7 @@ const Yc = ({
|
|
|
7104
7105
|
},
|
|
7105
7106
|
children: [
|
|
7106
7107
|
/* @__PURE__ */ t(Sn, { asChild: !0, children: /* @__PURE__ */ t("div", { className: "flex w-full flex-wrap items-center gap-2", children: e.map((d, c) => /* @__PURE__ */ t(f1, { asChild: !0, children: /* @__PURE__ */ t(
|
|
7107
|
-
|
|
7108
|
+
se,
|
|
7108
7109
|
{
|
|
7109
7110
|
variant: "outline",
|
|
7110
7111
|
label: d.label,
|
|
@@ -7212,7 +7213,7 @@ function Jc(e, r) {
|
|
|
7212
7213
|
}
|
|
7213
7214
|
const e2 = 4e3;
|
|
7214
7215
|
function t2(e) {
|
|
7215
|
-
const [r, o] =
|
|
7216
|
+
const [r, o] = I([]), [n, s] = I(null), i = j(
|
|
7216
7217
|
null
|
|
7217
7218
|
), l = j(null), d = G(), c = e?.onUploadFiles, u = e?.allowedMimeTypes, f = e?.maxFiles, p = J(() => {
|
|
7218
7219
|
if (u)
|
|
@@ -7221,8 +7222,8 @@ function t2(e) {
|
|
|
7221
7222
|
q(() => {
|
|
7222
7223
|
g.current = r.length;
|
|
7223
7224
|
}, [r]);
|
|
7224
|
-
const m = _((
|
|
7225
|
-
i.current && clearTimeout(i.current), s(
|
|
7225
|
+
const m = _((T) => {
|
|
7226
|
+
i.current && clearTimeout(i.current), s(T), i.current = setTimeout(() => {
|
|
7226
7227
|
s(null), i.current = null;
|
|
7227
7228
|
}, e2);
|
|
7228
7229
|
}, []);
|
|
@@ -7233,11 +7234,11 @@ function t2(e) {
|
|
|
7233
7234
|
[]
|
|
7234
7235
|
);
|
|
7235
7236
|
const x = _(
|
|
7236
|
-
async (
|
|
7237
|
-
if (
|
|
7238
|
-
const
|
|
7239
|
-
if (
|
|
7240
|
-
if (f !== void 0 && g.current +
|
|
7237
|
+
async (T) => {
|
|
7238
|
+
if (T.length === 0 || !c) return;
|
|
7239
|
+
const V = Jc(T, u);
|
|
7240
|
+
if (V.length === 0) return;
|
|
7241
|
+
if (f !== void 0 && g.current + V.length > f) {
|
|
7241
7242
|
m(
|
|
7242
7243
|
d.ai.tooManyFilesError.replace(
|
|
7243
7244
|
"{{maxFiles}}",
|
|
@@ -7246,40 +7247,40 @@ function t2(e) {
|
|
|
7246
7247
|
);
|
|
7247
7248
|
return;
|
|
7248
7249
|
}
|
|
7249
|
-
const
|
|
7250
|
+
const E = V.map((L) => ({
|
|
7250
7251
|
id: crypto.randomUUID(),
|
|
7251
7252
|
file: L,
|
|
7252
7253
|
status: "uploading"
|
|
7253
|
-
})), w =
|
|
7254
|
-
o((L) => [...L, ...
|
|
7254
|
+
})), w = E.map((L) => L.id);
|
|
7255
|
+
o((L) => [...L, ...E]);
|
|
7255
7256
|
const N = (L) => o(
|
|
7256
|
-
(
|
|
7257
|
-
(
|
|
7257
|
+
($) => $.map(
|
|
7258
|
+
(R) => w.includes(R.id) ? { ...R, status: "error", errorMessage: L } : R
|
|
7258
7259
|
)
|
|
7259
7260
|
);
|
|
7260
7261
|
try {
|
|
7261
|
-
const L = await c(
|
|
7262
|
-
if (!Array.isArray(L) || L.length !==
|
|
7262
|
+
const L = await c(V);
|
|
7263
|
+
if (!Array.isArray(L) || L.length !== V.length) {
|
|
7263
7264
|
N(d.ai.fileUploadError);
|
|
7264
7265
|
return;
|
|
7265
7266
|
}
|
|
7266
7267
|
o(
|
|
7267
|
-
(
|
|
7268
|
-
const
|
|
7269
|
-
return
|
|
7270
|
-
...
|
|
7268
|
+
($) => $.map((R) => {
|
|
7269
|
+
const S = E.findIndex((B) => B.id === R.id);
|
|
7270
|
+
return S === -1 ? R : L[S] ? {
|
|
7271
|
+
...R,
|
|
7271
7272
|
status: "uploaded",
|
|
7272
|
-
uploadedFile: L[
|
|
7273
|
+
uploadedFile: L[S]
|
|
7273
7274
|
} : {
|
|
7274
|
-
...
|
|
7275
|
+
...R,
|
|
7275
7276
|
status: "error",
|
|
7276
7277
|
errorMessage: d.ai.fileUploadError
|
|
7277
7278
|
};
|
|
7278
7279
|
})
|
|
7279
7280
|
);
|
|
7280
7281
|
} catch (L) {
|
|
7281
|
-
const
|
|
7282
|
-
N(
|
|
7282
|
+
const $ = L instanceof Error && L.message ? L.message : d.ai.fileUploadError;
|
|
7283
|
+
N($);
|
|
7283
7284
|
}
|
|
7284
7285
|
},
|
|
7285
7286
|
[
|
|
@@ -7291,13 +7292,13 @@ function t2(e) {
|
|
|
7291
7292
|
m
|
|
7292
7293
|
]
|
|
7293
7294
|
), v = _(
|
|
7294
|
-
async (
|
|
7295
|
-
await x(Array.from(
|
|
7295
|
+
async (T) => {
|
|
7296
|
+
await x(Array.from(T.target.files ?? [])), T.target.value = "";
|
|
7296
7297
|
},
|
|
7297
7298
|
[x]
|
|
7298
|
-
),
|
|
7299
|
-
o((
|
|
7300
|
-
}, []),
|
|
7299
|
+
), M = _((T) => {
|
|
7300
|
+
o((V) => V.filter((E) => E.id !== T));
|
|
7301
|
+
}, []), A = _(() => {
|
|
7301
7302
|
o([]);
|
|
7302
7303
|
}, []);
|
|
7303
7304
|
return {
|
|
@@ -7309,8 +7310,8 @@ function t2(e) {
|
|
|
7309
7310
|
maxFiles: f,
|
|
7310
7311
|
processFiles: x,
|
|
7311
7312
|
handleFileSelect: v,
|
|
7312
|
-
handleRemoveFile:
|
|
7313
|
-
clearFiles:
|
|
7313
|
+
handleRemoveFile: M,
|
|
7314
|
+
clearFiles: A,
|
|
7314
7315
|
transientError: n,
|
|
7315
7316
|
showTransientError: m
|
|
7316
7317
|
};
|
|
@@ -7393,93 +7394,93 @@ function i2({
|
|
|
7393
7394
|
searchPersons: n,
|
|
7394
7395
|
textareaRef: s
|
|
7395
7396
|
}) {
|
|
7396
|
-
const [i, l] =
|
|
7397
|
+
const [i, l] = I(!1), [d, c] = I(""), [u, f] = I([]), [p, C] = I(!1), [g, m] = I(0), [x, v] = I([]), M = j(-1), A = j(null), T = j(0), V = j(-1);
|
|
7397
7398
|
q(() => {
|
|
7398
7399
|
if (!n) {
|
|
7399
7400
|
l(!1);
|
|
7400
7401
|
return;
|
|
7401
7402
|
}
|
|
7402
|
-
const
|
|
7403
|
-
if (!
|
|
7404
|
-
l(!1), c(""), f([]), m(0),
|
|
7403
|
+
const S = r2(e, o, x);
|
|
7404
|
+
if (!S) {
|
|
7405
|
+
l(!1), c(""), f([]), m(0), M.current = -1, V.current = -1;
|
|
7405
7406
|
return;
|
|
7406
7407
|
}
|
|
7407
|
-
if (
|
|
7408
|
+
if (S.atIndex === V.current)
|
|
7408
7409
|
return;
|
|
7409
|
-
|
|
7410
|
-
const
|
|
7411
|
-
return
|
|
7412
|
-
n(
|
|
7413
|
-
|
|
7410
|
+
M.current = S.atIndex, c(S.query), l(!0), m(0), C(!0), A.current && clearTimeout(A.current);
|
|
7411
|
+
const B = ++T.current;
|
|
7412
|
+
return A.current = setTimeout(() => {
|
|
7413
|
+
n(S.query).then((U) => {
|
|
7414
|
+
B === T.current && (f(U), m(0), U.length === 0 && S.query.length > 0 && (V.current = S.atIndex, l(!1)));
|
|
7414
7415
|
}).catch(() => {
|
|
7415
|
-
|
|
7416
|
+
B === T.current && f([]);
|
|
7416
7417
|
}).finally(() => {
|
|
7417
|
-
|
|
7418
|
+
B === T.current && C(!1);
|
|
7418
7419
|
});
|
|
7419
7420
|
}, s2), () => {
|
|
7420
|
-
|
|
7421
|
+
A.current && clearTimeout(A.current);
|
|
7421
7422
|
};
|
|
7422
7423
|
}, [e, o, n, x]);
|
|
7423
|
-
const
|
|
7424
|
-
l(!1), c(""), f([]), m(0),
|
|
7424
|
+
const E = _(() => {
|
|
7425
|
+
l(!1), c(""), f([]), m(0), M.current = -1;
|
|
7425
7426
|
}, []), w = _(
|
|
7426
|
-
(
|
|
7427
|
-
const
|
|
7428
|
-
if (
|
|
7429
|
-
const U = `${
|
|
7430
|
-
r(X), v((D) => [...D.filter((K) => !(K.id === O && K.name === U)), { id: O, name: U }]),
|
|
7427
|
+
(S) => {
|
|
7428
|
+
const B = M.current;
|
|
7429
|
+
if (B === -1) return;
|
|
7430
|
+
const U = `${S.firstName} ${S.lastName}`.trim(), O = String(S.id), z = e.slice(0, B), te = e.slice(o), oe = `@${U} `, X = z + oe + te, Y = z.length + oe.length;
|
|
7431
|
+
r(X), v((D) => [...D.filter((K) => !(K.id === O && K.name === U)), { id: O, name: U }]), E(), requestAnimationFrame(() => {
|
|
7431
7432
|
const D = s.current;
|
|
7432
7433
|
D && (D.focus(), D.setSelectionRange(Y, Y));
|
|
7433
7434
|
});
|
|
7434
7435
|
},
|
|
7435
|
-
[e, o, r, s,
|
|
7436
|
+
[e, o, r, s, E]
|
|
7436
7437
|
), N = _(
|
|
7437
|
-
(
|
|
7438
|
+
(S) => {
|
|
7438
7439
|
if (!i) return !1;
|
|
7439
|
-
if (
|
|
7440
|
-
return
|
|
7440
|
+
if (S.key === "Escape")
|
|
7441
|
+
return S.preventDefault(), E(), !0;
|
|
7441
7442
|
if (u.length === 0) return !1;
|
|
7442
|
-
switch (
|
|
7443
|
+
switch (S.key) {
|
|
7443
7444
|
case "ArrowDown":
|
|
7444
|
-
return
|
|
7445
|
+
return S.preventDefault(), m((B) => (B + 1) % u.length), !0;
|
|
7445
7446
|
case "ArrowUp":
|
|
7446
|
-
return
|
|
7447
|
-
(
|
|
7447
|
+
return S.preventDefault(), m(
|
|
7448
|
+
(B) => (B + u.length - 1) % u.length
|
|
7448
7449
|
), !0;
|
|
7449
7450
|
case "Tab": {
|
|
7450
|
-
const
|
|
7451
|
-
if (
|
|
7452
|
-
const U = `${
|
|
7451
|
+
const B = u[g];
|
|
7452
|
+
if (B) {
|
|
7453
|
+
const U = `${B.firstName} ${B.lastName}`.trim();
|
|
7453
7454
|
if (d.length === 0 || U.toLowerCase().startsWith(d.toLowerCase()))
|
|
7454
|
-
return
|
|
7455
|
+
return S.preventDefault(), w(B), !0;
|
|
7455
7456
|
}
|
|
7456
7457
|
return !1;
|
|
7457
7458
|
}
|
|
7458
7459
|
case "Enter":
|
|
7459
|
-
return
|
|
7460
|
+
return S.preventDefault(), u[g] && w(u[g]), !0;
|
|
7460
7461
|
default:
|
|
7461
7462
|
return !1;
|
|
7462
7463
|
}
|
|
7463
7464
|
},
|
|
7464
|
-
[i, u, g, d, w,
|
|
7465
|
+
[i, u, g, d, w, E]
|
|
7465
7466
|
), L = _(
|
|
7466
|
-
(
|
|
7467
|
-
if (x.length === 0) return
|
|
7468
|
-
let
|
|
7467
|
+
(S) => {
|
|
7468
|
+
if (x.length === 0) return S;
|
|
7469
|
+
let B = S;
|
|
7469
7470
|
const U = [...x].sort((O, z) => z.name.length - O.name.length);
|
|
7470
7471
|
for (const O of U) {
|
|
7471
7472
|
const z = `@${O.name}`, te = `<entity-ref type="person" id="${R1(O.id)}">${R1(O.name)}</entity-ref>`;
|
|
7472
|
-
for (;
|
|
7473
|
-
|
|
7473
|
+
for (; B.includes(z); )
|
|
7474
|
+
B = B.replace(z, te);
|
|
7474
7475
|
}
|
|
7475
|
-
return
|
|
7476
|
+
return B;
|
|
7476
7477
|
},
|
|
7477
7478
|
[x]
|
|
7478
7479
|
);
|
|
7479
7480
|
q(() => {
|
|
7480
7481
|
v(
|
|
7481
|
-
(
|
|
7482
|
-
const U = `@${
|
|
7482
|
+
(S) => S.filter((B) => {
|
|
7483
|
+
const U = `@${B.name}`, O = e.indexOf(U);
|
|
7483
7484
|
if (O === -1) return !1;
|
|
7484
7485
|
const z = e[O + U.length];
|
|
7485
7486
|
return z === " " || z === `
|
|
@@ -7487,18 +7488,18 @@ function i2({
|
|
|
7487
7488
|
})
|
|
7488
7489
|
);
|
|
7489
7490
|
}, [e]);
|
|
7490
|
-
const
|
|
7491
|
-
if (!i ||
|
|
7492
|
-
const
|
|
7493
|
-
if (!
|
|
7494
|
-
const
|
|
7491
|
+
const $ = J(() => {
|
|
7492
|
+
if (!i || M.current === -1) return null;
|
|
7493
|
+
const S = s.current;
|
|
7494
|
+
if (!S) return null;
|
|
7495
|
+
const B = n2(S, M.current), U = S.offsetLeft + B.left, z = (S.offsetParent ? S.offsetParent.offsetHeight : 0) - (S.offsetTop + B.top);
|
|
7495
7496
|
return { left: U, bottom: z };
|
|
7496
|
-
}, [i, e, o, s]),
|
|
7497
|
+
}, [i, e, o, s]), R = J(() => {
|
|
7497
7498
|
if (!i || u.length === 0) return null;
|
|
7498
|
-
const
|
|
7499
|
-
if (!
|
|
7500
|
-
const
|
|
7501
|
-
return d.length === 0 ?
|
|
7499
|
+
const S = u[g];
|
|
7500
|
+
if (!S) return null;
|
|
7501
|
+
const B = `${S.firstName} ${S.lastName}`.trim();
|
|
7502
|
+
return d.length === 0 ? B : B.toLowerCase().startsWith(d.toLowerCase()) ? B.slice(d.length) : null;
|
|
7502
7503
|
}, [i, u, g, d]);
|
|
7503
7504
|
return {
|
|
7504
7505
|
isOpen: i,
|
|
@@ -7507,15 +7508,15 @@ function i2({
|
|
|
7507
7508
|
isLoading: p,
|
|
7508
7509
|
selectedIndex: g,
|
|
7509
7510
|
mentions: x,
|
|
7510
|
-
popoverPosition:
|
|
7511
|
-
inlineCompletion:
|
|
7511
|
+
popoverPosition: $,
|
|
7512
|
+
inlineCompletion: R,
|
|
7512
7513
|
handleKeyDown: N,
|
|
7513
7514
|
selectPerson: w,
|
|
7514
7515
|
transformMentions: L,
|
|
7515
|
-
close:
|
|
7516
|
+
close: E
|
|
7516
7517
|
};
|
|
7517
7518
|
}
|
|
7518
|
-
const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>[\s\S]*?<\/entity-ref>)/g).map((r, o) => o % 2 === 1 ? r : r.replace(/&/g, "&").replace(/</g, "<").replace(a2, "\\$&")).join(""),
|
|
7519
|
+
const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>[\s\S]*?<\/entity-ref>)/g).map((r, o) => o % 2 === 1 ? r : r.replace(/&/g, "&").replace(/</g, "<").replace(a2, "\\$&")).join(""), Z6 = ({
|
|
7519
7520
|
onSubmit: e,
|
|
7520
7521
|
onStop: r,
|
|
7521
7522
|
inProgress: o,
|
|
@@ -7533,45 +7534,45 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7533
7534
|
searchPersons: m,
|
|
7534
7535
|
onProcessFilesRef: x,
|
|
7535
7536
|
disclaimer: v,
|
|
7536
|
-
footer:
|
|
7537
|
-
isWelcomeScreen:
|
|
7538
|
-
fullscreen:
|
|
7539
|
-
welcomeScreenSuggestions:
|
|
7540
|
-
onSuggestionClick:
|
|
7537
|
+
footer: M,
|
|
7538
|
+
isWelcomeScreen: A = !1,
|
|
7539
|
+
fullscreen: T = !1,
|
|
7540
|
+
welcomeScreenSuggestions: V,
|
|
7541
|
+
onSuggestionClick: E,
|
|
7541
7542
|
welcomeScreenCards: w,
|
|
7542
7543
|
ref: N
|
|
7543
7544
|
}) => {
|
|
7544
|
-
const L = G(),
|
|
7545
|
-
(Q,
|
|
7545
|
+
const L = G(), $ = ke(), [R, S] = I(""), [B, U] = I(0), [O, z] = I(!1), [te, oe] = I(!1), [X, Y] = I(null), D = j(null), W = j(null), K = j(null), ae = l != null, { tracking: ue } = ye(), pe = _(
|
|
7546
|
+
(Q, Le) => {
|
|
7546
7547
|
ue?.onWelcomeSuggestionClick?.({
|
|
7547
7548
|
item: Q,
|
|
7548
|
-
group:
|
|
7549
|
+
group: Le,
|
|
7549
7550
|
prompt: Q.prompt || Q.title
|
|
7550
|
-
}),
|
|
7551
|
+
}), E?.(Q, Le);
|
|
7551
7552
|
},
|
|
7552
|
-
[ue,
|
|
7553
|
+
[ue, E]
|
|
7553
7554
|
), {
|
|
7554
7555
|
attachedFiles: re,
|
|
7555
7556
|
fileInputRef: de,
|
|
7556
7557
|
onUploadFiles: we,
|
|
7557
7558
|
acceptValue: b,
|
|
7558
|
-
isAtMaxFiles:
|
|
7559
|
+
isAtMaxFiles: F,
|
|
7559
7560
|
maxFiles: y,
|
|
7560
7561
|
processFiles: P,
|
|
7561
|
-
handleFileSelect:
|
|
7562
|
+
handleFileSelect: H,
|
|
7562
7563
|
handleRemoveFile: Z,
|
|
7563
|
-
clearFiles:
|
|
7564
|
+
clearFiles: ce,
|
|
7564
7565
|
transientError: fe,
|
|
7565
7566
|
showTransientError: me
|
|
7566
7567
|
} = t2(p), ne = i2({
|
|
7567
|
-
inputValue:
|
|
7568
|
-
setInputValue:
|
|
7569
|
-
cursorPosition:
|
|
7568
|
+
inputValue: R,
|
|
7569
|
+
setInputValue: S,
|
|
7570
|
+
cursorPosition: B,
|
|
7570
7571
|
searchPersons: m,
|
|
7571
7572
|
textareaRef: W
|
|
7572
7573
|
}), Ne = j(""), Ve = _((Q) => {
|
|
7573
|
-
const
|
|
7574
|
-
|
|
7574
|
+
const Le = Ne.current, Je = Le && !/\s$/.test(Le) ? " " : "", Oe = `${Le}${Je}${Q}`;
|
|
7575
|
+
S(Oe), U(Oe.length);
|
|
7575
7576
|
}, []), qe = {
|
|
7576
7577
|
"permission-denied": L.ai.micPermissionDenied,
|
|
7577
7578
|
"device-error": L.ai.micError,
|
|
@@ -7584,8 +7585,8 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7584
7585
|
},
|
|
7585
7586
|
onError: (Q) => me(qe[Q])
|
|
7586
7587
|
}), Xe = !!g && xe.isSupported, Ye = _(() => {
|
|
7587
|
-
ue?.onDictationStart?.(), Ne.current =
|
|
7588
|
-
}, [
|
|
7588
|
+
ue?.onDictationStart?.(), Ne.current = R, xe.start();
|
|
7589
|
+
}, [R, xe, ue]), Ke = _(() => {
|
|
7589
7590
|
ue?.onDictationCancel?.(), xe.cancel();
|
|
7590
7591
|
}, [xe, ue]);
|
|
7591
7592
|
q(() => {
|
|
@@ -7598,7 +7599,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7598
7599
|
x(null);
|
|
7599
7600
|
};
|
|
7600
7601
|
}, [x, P]);
|
|
7601
|
-
const Pe = xe.status === "recording", Qe = Pe ? L.ai.listening : L.ai.inputPlaceholder, Ae = re.filter((Q) => Q.status === "uploaded"), Se = re.some((Q) => Q.status === "uploading"), je = re.some((Q) => Q.status === "error"), De =
|
|
7602
|
+
const Pe = xe.status === "recording", Qe = Pe ? L.ai.listening : L.ai.inputPlaceholder, Ae = re.filter((Q) => Q.status === "uploaded"), Se = re.some((Q) => Q.status === "uploading"), je = re.some((Q) => Q.status === "error"), De = R.trim().length > 0 || Ae.length > 0;
|
|
7602
7603
|
q(() => {
|
|
7603
7604
|
if (!(!te || Se)) {
|
|
7604
7605
|
if (oe(!1), je) {
|
|
@@ -7615,7 +7616,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7615
7616
|
L.ai.fileUploadBlockedSubmit
|
|
7616
7617
|
]);
|
|
7617
7618
|
const Ze = async (Q) => {
|
|
7618
|
-
if (Q.preventDefault(), !
|
|
7619
|
+
if (Q.preventDefault(), !ae) {
|
|
7619
7620
|
if (ne.close(), o)
|
|
7620
7621
|
r?.();
|
|
7621
7622
|
else if (De && !O) {
|
|
@@ -7634,7 +7635,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7634
7635
|
z(!1);
|
|
7635
7636
|
}
|
|
7636
7637
|
}
|
|
7637
|
-
const
|
|
7638
|
+
const Le = ne.transformMentions(R.trim()), Je = c2(Le), Oe = Ae.flatMap(
|
|
7638
7639
|
(b1) => b1.uploadedFile ? [b1.uploadedFile] : []
|
|
7639
7640
|
), k1 = d, L1 = u;
|
|
7640
7641
|
k1 && c?.(null), L1 && f?.(null), await e({
|
|
@@ -7642,29 +7643,29 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7642
7643
|
files: Oe,
|
|
7643
7644
|
context: k1,
|
|
7644
7645
|
quote: L1
|
|
7645
|
-
}),
|
|
7646
|
+
}), S(""), ce();
|
|
7646
7647
|
}
|
|
7647
7648
|
W.current?.focus();
|
|
7648
7649
|
}
|
|
7649
7650
|
}, _e = (Q) => {
|
|
7650
|
-
|
|
7651
|
+
ae || ne.handleKeyDown(Q) || Q.key === "Enter" && !Q.shiftKey && (Q.preventDefault(), o || D.current?.requestSubmit());
|
|
7651
7652
|
}, Mr = () => {
|
|
7652
7653
|
U(W.current?.selectionStart ?? 0);
|
|
7653
7654
|
}, Er = () => {
|
|
7654
7655
|
K.current && W.current && (K.current.scrollTop = W.current.scrollTop);
|
|
7655
|
-
}, m1 = X ? X.prompt ?? X.title : null, v1 = Pe ? [L.ai.listening] : m1 ? [m1] : s ?? [], Rr = v1.length > 1, Fr = J(() => Kc(
|
|
7656
|
-
cursorPosition:
|
|
7656
|
+
}, m1 = X ? X.prompt ?? X.title : null, v1 = Pe ? [L.ai.listening] : m1 ? [m1] : s ?? [], Rr = v1.length > 1, Fr = J(() => Kc(R, ne.mentions, {
|
|
7657
|
+
cursorPosition: B,
|
|
7657
7658
|
inlineCompletion: ne.inlineCompletion
|
|
7658
|
-
}), [
|
|
7659
|
+
}), [R, ne.mentions, B, ne.inlineCompletion]), Nr = ne.mentions.length > 0 || ne.inlineCompletion !== null, w1 = A && !!V && V.length > 0 && !!E ? /* @__PURE__ */ t(
|
|
7659
7660
|
Yc,
|
|
7660
7661
|
{
|
|
7661
|
-
suggestions:
|
|
7662
|
+
suggestions: V,
|
|
7662
7663
|
onItemClick: pe,
|
|
7663
7664
|
onItemHover: Y,
|
|
7664
7665
|
side: "top"
|
|
7665
7666
|
}
|
|
7666
|
-
) : null, Vr =
|
|
7667
|
-
|
|
7667
|
+
) : null, Vr = A && T && !!w && w.length > 0, x1 = T && A, { motionProps: Sr } = Hn(
|
|
7668
|
+
A,
|
|
7668
7669
|
160,
|
|
7669
7670
|
0.5
|
|
7670
7671
|
);
|
|
@@ -7676,7 +7677,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7676
7677
|
"flex flex-col items-center gap-2 px-4 pb-3 pt-2",
|
|
7677
7678
|
x1 && "min-h-0 flex-1 justify-start -mt-20"
|
|
7678
7679
|
),
|
|
7679
|
-
...
|
|
7680
|
+
...T ? Sr : {},
|
|
7680
7681
|
children: [
|
|
7681
7682
|
/* @__PURE__ */ a("div", { className: "flex w-full max-w-content flex-col gap-2", children: [
|
|
7682
7683
|
w1 && /* @__PURE__ */ t("div", { children: w1 }),
|
|
@@ -7700,7 +7701,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7700
7701
|
"from-[#E55619] via-[#A1ADE5] to-[#E51943]",
|
|
7701
7702
|
"after:transition-all after:delay-200 after:duration-300",
|
|
7702
7703
|
"has-[textarea:focus]:after:scale-100 has-[textarea:focus]:after:opacity-100",
|
|
7703
|
-
|
|
7704
|
+
ae && "after:scale-100 after:opacity-100 border-f1-background-tertiary"
|
|
7704
7705
|
),
|
|
7705
7706
|
animate: {
|
|
7706
7707
|
"--gradient-angle": ["0deg", "360deg"]
|
|
@@ -7714,7 +7715,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7714
7715
|
"--gradient-angle": "180deg"
|
|
7715
7716
|
},
|
|
7716
7717
|
onClick: () => {
|
|
7717
|
-
|
|
7718
|
+
ae || W.current?.focus();
|
|
7718
7719
|
},
|
|
7719
7720
|
onSubmit: Ze,
|
|
7720
7721
|
children: [
|
|
@@ -7729,7 +7730,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7729
7730
|
onSelect: ne.selectPerson
|
|
7730
7731
|
}
|
|
7731
7732
|
),
|
|
7732
|
-
/* @__PURE__ */ t(Ee, { initial: !1, children:
|
|
7733
|
+
/* @__PURE__ */ t(Ee, { initial: !1, children: ae ? /* @__PURE__ */ t(
|
|
7733
7734
|
ee.div,
|
|
7734
7735
|
{
|
|
7735
7736
|
className: "overflow-hidden",
|
|
@@ -7739,12 +7740,12 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7739
7740
|
height: 0,
|
|
7740
7741
|
opacity: 0,
|
|
7741
7742
|
transition: {
|
|
7742
|
-
duration:
|
|
7743
|
+
duration: $ ? 0 : 0.22,
|
|
7743
7744
|
ease: [0.4, 0, 1, 1]
|
|
7744
7745
|
}
|
|
7745
7746
|
},
|
|
7746
7747
|
transition: {
|
|
7747
|
-
duration:
|
|
7748
|
+
duration: $ ? 0 : 0.4,
|
|
7748
7749
|
ease: [0.4, 0, 0.2, 1]
|
|
7749
7750
|
},
|
|
7750
7751
|
children: l
|
|
@@ -7760,12 +7761,12 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7760
7761
|
height: 0,
|
|
7761
7762
|
opacity: 0,
|
|
7762
7763
|
transition: {
|
|
7763
|
-
duration:
|
|
7764
|
+
duration: $ ? 0 : 0.15,
|
|
7764
7765
|
ease: [0.55, 0, 1, 0.45]
|
|
7765
7766
|
}
|
|
7766
7767
|
},
|
|
7767
7768
|
transition: {
|
|
7768
|
-
duration:
|
|
7769
|
+
duration: $ ? 0 : 0.4,
|
|
7769
7770
|
ease: [0.4, 0, 0.2, 1]
|
|
7770
7771
|
},
|
|
7771
7772
|
children: [
|
|
@@ -7786,7 +7787,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7786
7787
|
animate: { opacity: 1, y: 0 },
|
|
7787
7788
|
exit: { opacity: 0, y: -4 },
|
|
7788
7789
|
transition: {
|
|
7789
|
-
duration:
|
|
7790
|
+
duration: $ ? 0 : 0.2,
|
|
7790
7791
|
ease: "easeOut"
|
|
7791
7792
|
},
|
|
7792
7793
|
children: /* @__PURE__ */ a(
|
|
@@ -7819,9 +7820,9 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7819
7820
|
{
|
|
7820
7821
|
textareaRef: W,
|
|
7821
7822
|
highlightRef: K,
|
|
7822
|
-
inputValue:
|
|
7823
|
-
onInputChange: (Q,
|
|
7824
|
-
|
|
7823
|
+
inputValue: R,
|
|
7824
|
+
onInputChange: (Q, Le) => {
|
|
7825
|
+
S(Q), U(Le);
|
|
7825
7826
|
},
|
|
7826
7827
|
onKeyDown: _e,
|
|
7827
7828
|
onCursorUpdate: Mr,
|
|
@@ -7839,11 +7840,11 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7839
7840
|
{
|
|
7840
7841
|
onUploadFiles: we,
|
|
7841
7842
|
toolbarStart: C,
|
|
7842
|
-
isAtMaxFiles:
|
|
7843
|
+
isAtMaxFiles: F,
|
|
7843
7844
|
maxFiles: y,
|
|
7844
7845
|
acceptValue: b,
|
|
7845
7846
|
fileInputRef: de,
|
|
7846
|
-
handleFileSelect:
|
|
7847
|
+
handleFileSelect: H,
|
|
7847
7848
|
inProgress: o,
|
|
7848
7849
|
hasDataToSend: De,
|
|
7849
7850
|
isPreSending: O || te,
|
|
@@ -7864,8 +7865,8 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7864
7865
|
) })
|
|
7865
7866
|
] }),
|
|
7866
7867
|
Vr && /* @__PURE__ */ t("div", { className: "w-full max-w-content pt-2", children: /* @__PURE__ */ t(Wc, { cards: w }) }),
|
|
7867
|
-
|
|
7868
|
-
/* @__PURE__ */ t(Ee, { mode: "wait", initial: !1, children:
|
|
7868
|
+
M && A && T && /* @__PURE__ */ t("div", { className: "w-full py-4 mx-auto flex max-w-content justify-center", children: M }),
|
|
7869
|
+
/* @__PURE__ */ t(Ee, { mode: "wait", initial: !1, children: ae ? /* @__PURE__ */ a(
|
|
7869
7870
|
ee.div,
|
|
7870
7871
|
{
|
|
7871
7872
|
className: "flex w-full max-w-content flex-row flex-wrap items-center justify-center gap-x-3 gap-y-1 text-sm font-medium text-f1-foreground-tertiary",
|
|
@@ -7900,7 +7901,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7900
7901
|
animate: { opacity: 1 },
|
|
7901
7902
|
exit: { opacity: 0 },
|
|
7902
7903
|
transition: {
|
|
7903
|
-
duration:
|
|
7904
|
+
duration: $ ? 0 : 0.3,
|
|
7904
7905
|
ease: "easeOut"
|
|
7905
7906
|
},
|
|
7906
7907
|
children: [
|
|
@@ -7916,7 +7917,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7916
7917
|
"motion-reduce:transition-none motion-reduce:hover:scale-100 motion-reduce:focus-visible:scale-100"
|
|
7917
7918
|
),
|
|
7918
7919
|
children: /* @__PURE__ */ t(
|
|
7919
|
-
|
|
7920
|
+
ie,
|
|
7920
7921
|
{
|
|
7921
7922
|
className: k(
|
|
7922
7923
|
"text-sm font-medium text-f1-foreground-tertiary transition-colors duration-700 ease-out",
|
|
@@ -7927,7 +7928,7 @@ const a2 = /[\\`*_{}[\]()#+\-.!|~>]/g, c2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
7927
7928
|
}
|
|
7928
7929
|
)
|
|
7929
7930
|
}
|
|
7930
|
-
) : /* @__PURE__ */ t(
|
|
7931
|
+
) : /* @__PURE__ */ t(ie, { className: "text-sm font-medium text-f1-foreground-tertiary", children: v.text }),
|
|
7931
7932
|
v.link && v.linkText && /* @__PURE__ */ t(
|
|
7932
7933
|
$n,
|
|
7933
7934
|
{
|
|
@@ -8103,7 +8104,7 @@ function w2({
|
|
|
8103
8104
|
return /* @__PURE__ */ a("div", { className: "group/table relative flex flex-col gap-2 rounded-md border border-solid border-f1-border-secondary", children: [
|
|
8104
8105
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-3 border-0 border-b border-solid border-f1-border-secondary px-3 py-2", children: [
|
|
8105
8106
|
/* @__PURE__ */ t(
|
|
8106
|
-
|
|
8107
|
+
ie,
|
|
8107
8108
|
{
|
|
8108
8109
|
tag: "h2",
|
|
8109
8110
|
className: "text-base font-medium capitalize text-f1-foreground",
|
|
@@ -8253,9 +8254,9 @@ function He({
|
|
|
8253
8254
|
mapToCard: n,
|
|
8254
8255
|
fallbackCard: s
|
|
8255
8256
|
}) {
|
|
8256
|
-
const i = j(/* @__PURE__ */ new Map()), [l, d] =
|
|
8257
|
+
const i = j(/* @__PURE__ */ new Map()), [l, d] = I(
|
|
8257
8258
|
() => i.current.get(e) ?? null
|
|
8258
|
-
), [c, u] =
|
|
8259
|
+
), [c, u] = I(!1), [f, p] = I(!1), C = j(!0);
|
|
8259
8260
|
q(() => () => {
|
|
8260
8261
|
C.current = !1;
|
|
8261
8262
|
}, []);
|
|
@@ -8719,7 +8720,7 @@ function I2({
|
|
|
8719
8720
|
const n = o1(o), s = B2(e);
|
|
8720
8721
|
return s ? /* @__PURE__ */ t(s, { id: r, label: n }) : /* @__PURE__ */ t("span", { children: o });
|
|
8721
8722
|
}
|
|
8722
|
-
const
|
|
8723
|
+
const _6 = {
|
|
8723
8724
|
p: L2,
|
|
8724
8725
|
h1: b2,
|
|
8725
8726
|
h2: y2,
|
|
@@ -8763,8 +8764,8 @@ function ir({
|
|
|
8763
8764
|
e?.type === "module" && /* @__PURE__ */ t(yt, { module: e.module, size: "md" }),
|
|
8764
8765
|
e?.type === "file" && /* @__PURE__ */ t(Zn, { file: e.file, size: "lg" }),
|
|
8765
8766
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
8766
|
-
/* @__PURE__ */ t(
|
|
8767
|
-
o && /* @__PURE__ */ t(
|
|
8767
|
+
/* @__PURE__ */ t(ie, { className: "text-lg font-semibold text-f1-foreground", children: r }),
|
|
8768
|
+
o && /* @__PURE__ */ t(ie, { className: "text-base text-f1-foreground-secondary", children: o })
|
|
8768
8769
|
] }),
|
|
8769
8770
|
s.type === "open" && s.showButton !== !1 && /* @__PURE__ */ t(
|
|
8770
8771
|
ve,
|
|
@@ -8794,10 +8795,10 @@ function ir({
|
|
|
8794
8795
|
}
|
|
8795
8796
|
ir.displayName = "F0CanvasCard";
|
|
8796
8797
|
const C1 = Ge(null);
|
|
8797
|
-
function
|
|
8798
|
+
function O6({
|
|
8798
8799
|
children: e
|
|
8799
8800
|
}) {
|
|
8800
|
-
const [r, o] =
|
|
8801
|
+
const [r, o] = I(0), n = j([]), s = _(
|
|
8801
8802
|
(l) => {
|
|
8802
8803
|
const d = n.current, c = d.findIndex(
|
|
8803
8804
|
(f) => f.formName === l.formName && f.customFieldName === l.customFieldName
|
|
@@ -8829,7 +8830,7 @@ function P2(e) {
|
|
|
8829
8830
|
return l.format(s, { key: n, ...i });
|
|
8830
8831
|
}, [o, e]);
|
|
8831
8832
|
}
|
|
8832
|
-
function
|
|
8833
|
+
function U6() {
|
|
8833
8834
|
const e = Ie(C1);
|
|
8834
8835
|
if (!e)
|
|
8835
8836
|
throw new Error(
|
|
@@ -8898,7 +8899,7 @@ function cr({
|
|
|
8898
8899
|
valueFormatter: d
|
|
8899
8900
|
}) {
|
|
8900
8901
|
const { canvasContent: c, openCanvas: u, closeCanvas: f } = ye(), p = P2(e), C = d ?? p, g = j(() => {
|
|
8901
|
-
}), m = n ?? e, x = s ?? r ?? "", v = c?.type === "form" && c.formName === e,
|
|
8902
|
+
}), m = n ?? e, x = s ?? r ?? "", v = c?.type === "form" && c.formName === e, M = () => u({
|
|
8902
8903
|
type: "form",
|
|
8903
8904
|
title: m,
|
|
8904
8905
|
description: x,
|
|
@@ -8906,27 +8907,27 @@ function cr({
|
|
|
8906
8907
|
formDescription: r,
|
|
8907
8908
|
formModule: o
|
|
8908
8909
|
});
|
|
8909
|
-
g.current =
|
|
8910
|
+
g.current = M, q(() => {
|
|
8910
8911
|
typeof window > "u" || window.innerWidth < j2 || N1.has(e) || (N1.add(e), g.current());
|
|
8911
8912
|
}, [e]);
|
|
8912
|
-
const
|
|
8913
|
-
const N = l[
|
|
8913
|
+
const A = i && l ? Object.entries(i).map(([E, w]) => {
|
|
8914
|
+
const N = l[E], L = C?.(E, N, {
|
|
8914
8915
|
fieldType: w.fieldType,
|
|
8915
8916
|
customFieldName: w.customFieldName
|
|
8916
8917
|
});
|
|
8917
8918
|
if (!L && w.fieldType === "custom" && typeof N == "object" && N !== null)
|
|
8918
8919
|
return null;
|
|
8919
|
-
const
|
|
8920
|
+
const $ = L ?? ar(N, w.fieldType), R = ["richtext", "textarea"];
|
|
8920
8921
|
return {
|
|
8921
8922
|
label: w.label,
|
|
8922
|
-
content:
|
|
8923
|
-
verticalLayout:
|
|
8923
|
+
content: $,
|
|
8924
|
+
verticalLayout: R.includes(w.fieldType ?? "")
|
|
8924
8925
|
};
|
|
8925
|
-
}).filter((
|
|
8926
|
-
if (!
|
|
8927
|
-
const w = Array.isArray(
|
|
8926
|
+
}).filter((E) => {
|
|
8927
|
+
if (!E) return !1;
|
|
8928
|
+
const w = Array.isArray(E.content) ? E.content[0] : E.content;
|
|
8928
8929
|
return !(w?.type === "item" && w.text === "—");
|
|
8929
|
-
}) : [],
|
|
8930
|
+
}) : [], T = A.slice(0, F1), V = A.length > F1;
|
|
8930
8931
|
return /* @__PURE__ */ t(
|
|
8931
8932
|
ir,
|
|
8932
8933
|
{
|
|
@@ -8936,20 +8937,20 @@ function cr({
|
|
|
8936
8937
|
isActive: v,
|
|
8937
8938
|
action: {
|
|
8938
8939
|
type: "open",
|
|
8939
|
-
onOpen:
|
|
8940
|
+
onOpen: M,
|
|
8940
8941
|
onClose: f,
|
|
8941
8942
|
showButton: v
|
|
8942
8943
|
},
|
|
8943
|
-
children:
|
|
8944
|
+
children: T.length > 0 && !v && /* @__PURE__ */ t("div", { className: "-mx-3 flex w-full flex-col overflow-hidden pb-1", children: /* @__PURE__ */ t(
|
|
8944
8945
|
_n,
|
|
8945
8946
|
{
|
|
8946
|
-
details:
|
|
8947
|
-
title:
|
|
8948
|
-
content:
|
|
8949
|
-
...
|
|
8947
|
+
details: T.map((E) => ({
|
|
8948
|
+
title: E.label,
|
|
8949
|
+
content: E.content,
|
|
8950
|
+
...E.verticalLayout && { verticalLayout: !0 }
|
|
8950
8951
|
})),
|
|
8951
|
-
showSeeMore:
|
|
8952
|
-
onClickSeeMore:
|
|
8952
|
+
showSeeMore: V,
|
|
8953
|
+
onClickSeeMore: M,
|
|
8953
8954
|
tableView: !0
|
|
8954
8955
|
}
|
|
8955
8956
|
) })
|
|
@@ -8990,7 +8991,7 @@ function lr({
|
|
|
8990
8991
|
containerRef: e,
|
|
8991
8992
|
enabled: r = !0
|
|
8992
8993
|
}) {
|
|
8993
|
-
const [o, n] =
|
|
8994
|
+
const [o, n] = I(null), s = _(() => n(null), []);
|
|
8994
8995
|
return q(() => {
|
|
8995
8996
|
if (!r || typeof window > "u") return;
|
|
8996
8997
|
const i = e.current;
|
|
@@ -9015,7 +9016,7 @@ function lr({
|
|
|
9015
9016
|
}
|
|
9016
9017
|
const H1 = 8, $e = 8;
|
|
9017
9018
|
function dr({ anchor: e, onReply: r }) {
|
|
9018
|
-
const o = G(), n = j(null), [s, i] =
|
|
9019
|
+
const o = G(), n = j(null), [s, i] = I(
|
|
9019
9020
|
null
|
|
9020
9021
|
);
|
|
9021
9022
|
if (rt(() => {
|
|
@@ -9053,7 +9054,7 @@ function dr({ anchor: e, onReply: r }) {
|
|
|
9053
9054
|
"drop-shadow"
|
|
9054
9055
|
),
|
|
9055
9056
|
children: /* @__PURE__ */ t(
|
|
9056
|
-
|
|
9057
|
+
se,
|
|
9057
9058
|
{
|
|
9058
9059
|
ref: n,
|
|
9059
9060
|
type: "button",
|
|
@@ -9070,7 +9071,7 @@ function dr({ anchor: e, onReply: r }) {
|
|
|
9070
9071
|
document.body
|
|
9071
9072
|
);
|
|
9072
9073
|
}
|
|
9073
|
-
const fr = Ge(void 0),
|
|
9074
|
+
const fr = Ge(void 0), z6 = () => Ie(fr), G2 = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), W2 = ({
|
|
9074
9075
|
isGenerating: e,
|
|
9075
9076
|
isLoading: r,
|
|
9076
9077
|
message: o,
|
|
@@ -9111,7 +9112,7 @@ const fr = Ge(void 0), U6 = () => Ie(fr), G2 = (e) => /* @__PURE__ */ t(Mt, { co
|
|
|
9111
9112
|
reactionType: o,
|
|
9112
9113
|
message: n
|
|
9113
9114
|
}) => {
|
|
9114
|
-
const [s, i] =
|
|
9115
|
+
const [s, i] = I(""), l = G(), { title: d, label: c, placeholder: u } = o === "like" ? l.ai.feedbackModal.positive : l.ai.feedbackModal.negative, f = _(() => {
|
|
9115
9116
|
r(n, s);
|
|
9116
9117
|
}, [s, n, r]), p = () => {
|
|
9117
9118
|
e(n);
|
|
@@ -9155,7 +9156,7 @@ const fr = Ge(void 0), U6 = () => Ie(fr), G2 = (e) => /* @__PURE__ */ t(Mt, { co
|
|
|
9155
9156
|
}
|
|
9156
9157
|
);
|
|
9157
9158
|
}, ur = Ge(null), X2 = ({ children: e }) => {
|
|
9158
|
-
const [r, o] =
|
|
9159
|
+
const [r, o] = I(null), n = r ? {
|
|
9159
9160
|
isOpen: !0,
|
|
9160
9161
|
currentReaction: r.action,
|
|
9161
9162
|
currentMessage: r.message,
|
|
@@ -9190,7 +9191,7 @@ const K2 = ({
|
|
|
9190
9191
|
targetMessage: r,
|
|
9191
9192
|
onCopy: o
|
|
9192
9193
|
}) => {
|
|
9193
|
-
const n = G(), { open: s } = hr(), [i, l] =
|
|
9194
|
+
const n = G(), { open: s } = hr(), [i, l] = I(null);
|
|
9194
9195
|
return /* @__PURE__ */ a("div", { className: "flex", children: [
|
|
9195
9196
|
/* @__PURE__ */ t(
|
|
9196
9197
|
Wn,
|
|
@@ -9255,7 +9256,7 @@ const K2 = ({
|
|
|
9255
9256
|
onOpenChange: i,
|
|
9256
9257
|
lockOpen: l = !1
|
|
9257
9258
|
}) => {
|
|
9258
|
-
const [d, c] =
|
|
9259
|
+
const [d, c] = I(s), u = ke(), f = n !== void 0, p = f ? n : d;
|
|
9259
9260
|
return /* @__PURE__ */ a(
|
|
9260
9261
|
Et,
|
|
9261
9262
|
{
|
|
@@ -9306,7 +9307,7 @@ const K2 = ({
|
|
|
9306
9307
|
inProgress: o,
|
|
9307
9308
|
isWriting: n
|
|
9308
9309
|
}) => {
|
|
9309
|
-
const s = G(), [i, l] =
|
|
9310
|
+
const s = G(), [i, l] = I(!!o), d = j(o);
|
|
9310
9311
|
q(() => {
|
|
9311
9312
|
d.current && !o ? l(!1) : o && !i && l(!0), d.current = o;
|
|
9312
9313
|
}, [o, i]);
|
|
@@ -9423,7 +9424,7 @@ const gr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), rl
|
|
|
9423
9424
|
onClick: r,
|
|
9424
9425
|
fullscreen: o = !1
|
|
9425
9426
|
}) => {
|
|
9426
|
-
const [n, s] =
|
|
9427
|
+
const [n, s] = I(0), [i, l] = I(0), [d, c] = I("starting"), u = e[n] ?? "";
|
|
9427
9428
|
q(() => {
|
|
9428
9429
|
e.length > 0 && n >= e.length && (s(0), l(0), c("starting"));
|
|
9429
9430
|
}, [e.length, n]), q(() => {
|
|
@@ -9484,7 +9485,7 @@ function dl({
|
|
|
9484
9485
|
turnsCount: s,
|
|
9485
9486
|
freezeTurnMinHeight: i = !1
|
|
9486
9487
|
}) {
|
|
9487
|
-
const [l, d] =
|
|
9488
|
+
const [l, d] = I(0), [c, u] = I(!1), f = j(s), p = j(i);
|
|
9488
9489
|
p.current = i;
|
|
9489
9490
|
const C = _(
|
|
9490
9491
|
(m = "smooth") => {
|
|
@@ -9497,16 +9498,16 @@ function dl({
|
|
|
9497
9498
|
if (!m || !x) return;
|
|
9498
9499
|
const v = new ResizeObserver(() => {
|
|
9499
9500
|
if (p.current) return;
|
|
9500
|
-
const
|
|
9501
|
-
d(m.clientHeight -
|
|
9501
|
+
const M = parseFloat(getComputedStyle(x).paddingTop) + parseFloat(getComputedStyle(x).paddingBottom) + 1;
|
|
9502
|
+
d(m.clientHeight - M);
|
|
9502
9503
|
});
|
|
9503
9504
|
return v.observe(m), v.observe(x), () => v.disconnect();
|
|
9504
9505
|
}, [e, r]);
|
|
9505
9506
|
const g = _(() => {
|
|
9506
9507
|
const m = e.current;
|
|
9507
9508
|
if (!m) return;
|
|
9508
|
-
const { scrollTop: x, scrollHeight: v, clientHeight:
|
|
9509
|
-
u(
|
|
9509
|
+
const { scrollTop: x, scrollHeight: v, clientHeight: M } = m, A = v - x - M;
|
|
9510
|
+
u(A > M);
|
|
9510
9511
|
}, [e]);
|
|
9511
9512
|
return q(() => {
|
|
9512
9513
|
const m = e.current;
|
|
@@ -9517,8 +9518,8 @@ function dl({
|
|
|
9517
9518
|
requestAnimationFrame(() => {
|
|
9518
9519
|
const m = e.current, x = n.current;
|
|
9519
9520
|
if (!m || !x) return;
|
|
9520
|
-
const v = m.getBoundingClientRect(),
|
|
9521
|
-
m.scrollTo({ top:
|
|
9521
|
+
const v = m.getBoundingClientRect(), M = x.getBoundingClientRect(), A = m.scrollTop + (M.top - v.top);
|
|
9522
|
+
m.scrollTo({ top: A, behavior: "smooth" });
|
|
9522
9523
|
});
|
|
9523
9524
|
}), s === 0 && u(!1), f.current = s;
|
|
9524
9525
|
}, [s, n, e]), { showScrollBtn: c, turnMinHeight: l, scrollToBottom: C };
|
|
@@ -9529,7 +9530,7 @@ const fl = {
|
|
|
9529
9530
|
},
|
|
9530
9531
|
onThumbsDown: () => {
|
|
9531
9532
|
}
|
|
9532
|
-
},
|
|
9533
|
+
}, G6 = (e) => /* @__PURE__ */ t(X2, { children: /* @__PURE__ */ t(ul, { ...e }) }), ul = ({
|
|
9533
9534
|
turns: e,
|
|
9534
9535
|
isLoadingThread: r = !1,
|
|
9535
9536
|
interrupt: o,
|
|
@@ -9547,23 +9548,23 @@ const fl = {
|
|
|
9547
9548
|
children: m,
|
|
9548
9549
|
AssistantMessage: x,
|
|
9549
9550
|
UserMessage: v,
|
|
9550
|
-
onRegenerate:
|
|
9551
|
-
onCopy:
|
|
9551
|
+
onRegenerate: M,
|
|
9552
|
+
onCopy: A
|
|
9552
9553
|
}) => {
|
|
9553
|
-
const { modal:
|
|
9554
|
+
const { modal: T, handleSubmit: V, handleClose: E } = Y2(
|
|
9554
9555
|
f ?? fl
|
|
9555
|
-
), w = G(), N = x ?? W2, L = v ?? ol,
|
|
9556
|
+
), w = G(), N = x ?? W2, L = v ?? ol, $ = J(() => {
|
|
9556
9557
|
const D = n ?? w.ai.defaultInitialMessage;
|
|
9557
9558
|
return (Array.isArray(D) ? D : [D]).filter((K) => typeof K == "string" && K.length > 0);
|
|
9558
|
-
}, [n, w.ai.defaultInitialMessage]),
|
|
9559
|
-
viewportRef:
|
|
9560
|
-
contentRef:
|
|
9559
|
+
}, [n, w.ai.defaultInitialMessage]), R = !r && e.length === 0 && $.length > 0, S = j(null), B = j(null), U = j(null), O = j(null), z = j(null), { showScrollBtn: te, turnMinHeight: oe, scrollToBottom: X } = dl({
|
|
9560
|
+
viewportRef: S,
|
|
9561
|
+
contentRef: B,
|
|
9561
9562
|
endRef: U,
|
|
9562
9563
|
lastTurnRef: z,
|
|
9563
9564
|
turnsCount: e.length,
|
|
9564
9565
|
freezeTurnMinHeight: p
|
|
9565
9566
|
}), Y = (D, W) => {
|
|
9566
|
-
const K = W === e.length - 1,
|
|
9567
|
+
const K = W === e.length - 1, ae = {
|
|
9567
9568
|
renderToolCall: i,
|
|
9568
9569
|
onReplyQuote: l,
|
|
9569
9570
|
onRendered: d,
|
|
@@ -9577,10 +9578,10 @@ const fl = {
|
|
|
9577
9578
|
isCurrentMessage: !1,
|
|
9578
9579
|
AssistantMessage: N,
|
|
9579
9580
|
UserMessage: L,
|
|
9580
|
-
onRegenerate:
|
|
9581
|
-
onCopy:
|
|
9581
|
+
onRegenerate: M,
|
|
9582
|
+
onCopy: A,
|
|
9582
9583
|
rawData: re.rawData || {},
|
|
9583
|
-
...
|
|
9584
|
+
...ae
|
|
9584
9585
|
};
|
|
9585
9586
|
return /* @__PURE__ */ t(
|
|
9586
9587
|
L,
|
|
@@ -9590,22 +9591,22 @@ const fl = {
|
|
|
9590
9591
|
`${W}-u-${de}`
|
|
9591
9592
|
);
|
|
9592
9593
|
}, pe = (re, de) => {
|
|
9593
|
-
const we = K && de === D.assistantMessages.length - 1, b = D.userMessages.length + de,
|
|
9594
|
+
const we = K && de === D.assistantMessages.length - 1, b = D.userMessages.length + de, F = {
|
|
9594
9595
|
message: re,
|
|
9595
9596
|
inProgress: D.isInProgress,
|
|
9596
9597
|
index: b,
|
|
9597
9598
|
isCurrentMessage: we,
|
|
9598
9599
|
AssistantMessage: N,
|
|
9599
9600
|
UserMessage: L,
|
|
9600
|
-
onRegenerate:
|
|
9601
|
-
onCopy:
|
|
9601
|
+
onRegenerate: M,
|
|
9602
|
+
onCopy: A,
|
|
9602
9603
|
rawData: re.rawData || {},
|
|
9603
|
-
...
|
|
9604
|
+
...ae
|
|
9604
9605
|
};
|
|
9605
9606
|
return /* @__PURE__ */ t(
|
|
9606
9607
|
N,
|
|
9607
9608
|
{
|
|
9608
|
-
...
|
|
9609
|
+
...F,
|
|
9609
9610
|
isGenerating: D.isInProgress && we,
|
|
9610
9611
|
isLoading: D.isInProgress && we && !re.content
|
|
9611
9612
|
},
|
|
@@ -9646,7 +9647,7 @@ const fl = {
|
|
|
9646
9647
|
{
|
|
9647
9648
|
content: D.feedback.content,
|
|
9648
9649
|
targetMessage: D.feedback.targetMessage,
|
|
9649
|
-
onCopy:
|
|
9650
|
+
onCopy: A
|
|
9650
9651
|
}
|
|
9651
9652
|
),
|
|
9652
9653
|
K && /* @__PURE__ */ t(O2, {})
|
|
@@ -9660,7 +9661,7 @@ const fl = {
|
|
|
9660
9661
|
/* @__PURE__ */ t(
|
|
9661
9662
|
"div",
|
|
9662
9663
|
{
|
|
9663
|
-
ref:
|
|
9664
|
+
ref: S,
|
|
9664
9665
|
className: k(
|
|
9665
9666
|
"flex-1 overflow-y-scroll",
|
|
9666
9667
|
"[scrollbar-width:thin] [scrollbar-color:transparent_transparent]",
|
|
@@ -9672,22 +9673,22 @@ const fl = {
|
|
|
9672
9673
|
children: /* @__PURE__ */ a(
|
|
9673
9674
|
"div",
|
|
9674
9675
|
{
|
|
9675
|
-
ref:
|
|
9676
|
+
ref: B,
|
|
9676
9677
|
className: k("flex h-full flex-col items-center p-4"),
|
|
9677
9678
|
children: [
|
|
9678
9679
|
/* @__PURE__ */ a(
|
|
9679
9680
|
"div",
|
|
9680
9681
|
{
|
|
9681
9682
|
className: k(
|
|
9682
|
-
|
|
9683
|
+
R ? "flex flex-1" : "flex flex-col gap-6",
|
|
9683
9684
|
"w-full max-w-content"
|
|
9684
9685
|
),
|
|
9685
9686
|
children: [
|
|
9686
9687
|
r && /* @__PURE__ */ t(hl, {}),
|
|
9687
|
-
|
|
9688
|
+
R && /* @__PURE__ */ t(
|
|
9688
9689
|
ll,
|
|
9689
9690
|
{
|
|
9690
|
-
messages:
|
|
9691
|
+
messages: $,
|
|
9691
9692
|
onClick: s,
|
|
9692
9693
|
fullscreen: g
|
|
9693
9694
|
}
|
|
@@ -9708,7 +9709,7 @@ const fl = {
|
|
|
9708
9709
|
exit: { opacity: 0, scale: 0.8 },
|
|
9709
9710
|
transition: { duration: 0.2 },
|
|
9710
9711
|
children: /* @__PURE__ */ t("div", { className: "rounded bg-f1-background", children: /* @__PURE__ */ t(
|
|
9711
|
-
|
|
9712
|
+
se,
|
|
9712
9713
|
{
|
|
9713
9714
|
onClick: () => X(),
|
|
9714
9715
|
label: w.ai.scrollToBottom,
|
|
@@ -9724,18 +9725,18 @@ const fl = {
|
|
|
9724
9725
|
)
|
|
9725
9726
|
}
|
|
9726
9727
|
),
|
|
9727
|
-
!C && !
|
|
9728
|
+
!C && !R && /* @__PURE__ */ a(Re, { children: [
|
|
9728
9729
|
/* @__PURE__ */ t(M1, { position: "top" }, "shadow-top"),
|
|
9729
9730
|
/* @__PURE__ */ t(M1, { position: "bottom" }, "shadow-bottom")
|
|
9730
9731
|
] })
|
|
9731
9732
|
] }),
|
|
9732
|
-
|
|
9733
|
+
T.isOpen && /* @__PURE__ */ t(
|
|
9733
9734
|
q2,
|
|
9734
9735
|
{
|
|
9735
|
-
onSubmit:
|
|
9736
|
-
onClose:
|
|
9737
|
-
reactionType:
|
|
9738
|
-
message:
|
|
9736
|
+
onSubmit: V,
|
|
9737
|
+
onClose: E,
|
|
9738
|
+
reactionType: T.currentReaction,
|
|
9739
|
+
message: T.currentMessage
|
|
9739
9740
|
}
|
|
9740
9741
|
)
|
|
9741
9742
|
] });
|
|
@@ -9744,16 +9745,16 @@ const fl = {
|
|
|
9744
9745
|
/* @__PURE__ */ t(he, { className: "mt-6 h-5 w-full rounded-md" }),
|
|
9745
9746
|
/* @__PURE__ */ t(he, { className: "h-5 w-2/5 rounded-md" }),
|
|
9746
9747
|
/* @__PURE__ */ t(he, { className: "h-5 w-4/5 rounded-md" })
|
|
9747
|
-
] }) }),
|
|
9748
|
+
] }) }), W6 = {
|
|
9748
9749
|
ai: ps.ai
|
|
9749
9750
|
}, pr = Ge(null);
|
|
9750
|
-
function
|
|
9751
|
+
function q6({
|
|
9751
9752
|
children: e,
|
|
9752
9753
|
translations: r
|
|
9753
9754
|
}) {
|
|
9754
9755
|
return /* @__PURE__ */ t(pr.Provider, { value: r, children: e });
|
|
9755
9756
|
}
|
|
9756
|
-
function
|
|
9757
|
+
function X6() {
|
|
9757
9758
|
const e = Ie(pr);
|
|
9758
9759
|
if (e === null)
|
|
9759
9760
|
throw new Error(
|
|
@@ -9765,7 +9766,7 @@ function gl() {
|
|
|
9765
9766
|
const { canvasEntities: e } = ye();
|
|
9766
9767
|
return e;
|
|
9767
9768
|
}
|
|
9768
|
-
function
|
|
9769
|
+
function Y6(e) {
|
|
9769
9770
|
const r = gl();
|
|
9770
9771
|
if (!(!e || !r))
|
|
9771
9772
|
return r[e];
|
|
@@ -9932,38 +9933,38 @@ const ml = ({
|
|
|
9932
9933
|
onToggleCustomActive: x,
|
|
9933
9934
|
onConfirm: v
|
|
9934
9935
|
}) => {
|
|
9935
|
-
const
|
|
9936
|
+
const M = ke(), A = (() => {
|
|
9936
9937
|
if (e !== "single") return 0;
|
|
9937
9938
|
const N = o.findIndex((L) => n.includes(L.id));
|
|
9938
9939
|
return N >= 0 ? N : 0;
|
|
9939
|
-
})(), [
|
|
9940
|
+
})(), [T, V] = I(A), E = j([]);
|
|
9940
9941
|
q(() => {
|
|
9941
|
-
p && e === "single" &&
|
|
9942
|
+
p && e === "single" && E.current[T]?.focus();
|
|
9942
9943
|
}, []);
|
|
9943
9944
|
const w = (N) => {
|
|
9944
9945
|
if (e !== "single") return;
|
|
9945
9946
|
const L = o.length - 1;
|
|
9946
9947
|
if (L < 0) return;
|
|
9947
|
-
let
|
|
9948
|
+
let $ = T;
|
|
9948
9949
|
switch (N.key) {
|
|
9949
9950
|
case "ArrowDown":
|
|
9950
9951
|
case "ArrowRight":
|
|
9951
|
-
|
|
9952
|
+
$ = T >= L ? 0 : T + 1;
|
|
9952
9953
|
break;
|
|
9953
9954
|
case "ArrowUp":
|
|
9954
9955
|
case "ArrowLeft":
|
|
9955
|
-
|
|
9956
|
+
$ = T <= 0 ? L : T - 1;
|
|
9956
9957
|
break;
|
|
9957
9958
|
case "Home":
|
|
9958
|
-
|
|
9959
|
+
$ = 0;
|
|
9959
9960
|
break;
|
|
9960
9961
|
case "End":
|
|
9961
|
-
|
|
9962
|
+
$ = L;
|
|
9962
9963
|
break;
|
|
9963
9964
|
default:
|
|
9964
9965
|
return;
|
|
9965
9966
|
}
|
|
9966
|
-
N.preventDefault(),
|
|
9967
|
+
N.preventDefault(), V($), E.current[$]?.focus();
|
|
9967
9968
|
};
|
|
9968
9969
|
return /* @__PURE__ */ a(
|
|
9969
9970
|
"div",
|
|
@@ -9975,23 +9976,23 @@ const ml = ({
|
|
|
9975
9976
|
o.map((N, L) => /* @__PURE__ */ t(
|
|
9976
9977
|
ee.div,
|
|
9977
9978
|
{
|
|
9978
|
-
initial:
|
|
9979
|
+
initial: M ? !1 : { opacity: 0, y: 4 },
|
|
9979
9980
|
animate: { opacity: 1, y: 0 },
|
|
9980
9981
|
transition: {
|
|
9981
|
-
duration:
|
|
9982
|
+
duration: M ? 0 : 0.2,
|
|
9982
9983
|
ease: [0.4, 0, 0.2, 1],
|
|
9983
|
-
delay:
|
|
9984
|
+
delay: M ? 0 : 0.12 + L * 0.06
|
|
9984
9985
|
},
|
|
9985
9986
|
children: /* @__PURE__ */ t(
|
|
9986
9987
|
mr,
|
|
9987
9988
|
{
|
|
9988
|
-
ref: (
|
|
9989
|
-
|
|
9989
|
+
ref: ($) => {
|
|
9990
|
+
E.current[L] = $;
|
|
9990
9991
|
},
|
|
9991
9992
|
option: N,
|
|
9992
9993
|
isSelected: n.includes(N.id),
|
|
9993
9994
|
mode: e,
|
|
9994
|
-
isTabStop: e === "single" ? L ===
|
|
9995
|
+
isTabStop: e === "single" ? L === T : void 0,
|
|
9995
9996
|
onToggle: C,
|
|
9996
9997
|
onKeyNavigate: w
|
|
9997
9998
|
}
|
|
@@ -10031,7 +10032,7 @@ const ml = ({
|
|
|
10031
10032
|
const c = G();
|
|
10032
10033
|
return /* @__PURE__ */ a("div", { className: "flex items-start gap-0.5 pl-4 pr-3", children: [
|
|
10033
10034
|
/* @__PURE__ */ t(
|
|
10034
|
-
|
|
10035
|
+
ie,
|
|
10035
10036
|
{
|
|
10036
10037
|
className: "min-w-0 flex-1 text-lg font-semibold text-f1-foreground",
|
|
10037
10038
|
lines: 3,
|
|
@@ -10077,7 +10078,7 @@ const ml = ({
|
|
|
10077
10078
|
}
|
|
10078
10079
|
)
|
|
10079
10080
|
] });
|
|
10080
|
-
}, wl = "easeOut", xl = 0.3,
|
|
10081
|
+
}, wl = "easeOut", xl = 0.3, K6 = ({
|
|
10081
10082
|
clarifyingQuestion: e,
|
|
10082
10083
|
isSubmitDisabled: r
|
|
10083
10084
|
}) => /* @__PURE__ */ t(
|
|
@@ -10090,7 +10091,7 @@ const ml = ({
|
|
|
10090
10091
|
clarifyingQuestion: e,
|
|
10091
10092
|
isSubmitDisabled: r
|
|
10092
10093
|
}) => {
|
|
10093
|
-
const o = G(), n =
|
|
10094
|
+
const o = G(), n = ke(), {
|
|
10094
10095
|
currentStep: s,
|
|
10095
10096
|
currentStepIndex: i,
|
|
10096
10097
|
totalSteps: l,
|
|
@@ -10105,30 +10106,30 @@ const ml = ({
|
|
|
10105
10106
|
} = e, {
|
|
10106
10107
|
question: x,
|
|
10107
10108
|
options: v,
|
|
10108
|
-
selectedOptionIds:
|
|
10109
|
-
selectionMode:
|
|
10110
|
-
optional:
|
|
10111
|
-
allowCustomAnswer:
|
|
10112
|
-
customAnswerText:
|
|
10109
|
+
selectedOptionIds: M,
|
|
10110
|
+
selectionMode: A,
|
|
10111
|
+
optional: T,
|
|
10112
|
+
allowCustomAnswer: V,
|
|
10113
|
+
customAnswerText: E,
|
|
10113
10114
|
isCustomAnswerActive: w
|
|
10114
|
-
} = s, N = j(null), L =
|
|
10115
|
+
} = s, N = j(null), L = A ?? "single", $ = l > 1, R = i === 0, S = i === l - 1, B = $ ? o.t("ai.clarifyingQuestion.stepOf", {
|
|
10115
10116
|
current: String(i + 1),
|
|
10116
10117
|
total: String(l)
|
|
10117
|
-
}) : void 0, U =
|
|
10118
|
+
}) : void 0, U = M.length > 0, O = (E ?? "").trim().length > 0, z = U || w && O || T === !0, te = r === !0 && S, oe = () => {
|
|
10118
10119
|
te || c();
|
|
10119
10120
|
}, X = () => {
|
|
10120
10121
|
te || u();
|
|
10121
10122
|
}, Y = (pe) => {
|
|
10122
|
-
const re = L === "single" &&
|
|
10123
|
-
d(pe), L === "single" && !
|
|
10124
|
-
}, D =
|
|
10123
|
+
const re = L === "single" && M.includes(pe);
|
|
10124
|
+
d(pe), L === "single" && !S && !re && Promise.resolve().then(c);
|
|
10125
|
+
}, D = S ? o.ai.clarifyingQuestion.submit : o.ai.clarifyingQuestion.next, W = T === !0 && !U && !(w && O), K = () => {
|
|
10125
10126
|
m(), requestAnimationFrame(() => {
|
|
10126
10127
|
N.current?.focus();
|
|
10127
10128
|
});
|
|
10128
|
-
},
|
|
10129
|
+
}, ae = (pe) => {
|
|
10129
10130
|
pe.key === "Escape" && (pe.preventDefault(), f());
|
|
10130
10131
|
}, ue = n ? 0 : xl / 2;
|
|
10131
|
-
return /* @__PURE__ */ a("div", { className: "flex flex-col", onKeyDown:
|
|
10132
|
+
return /* @__PURE__ */ a("div", { className: "flex flex-col", onKeyDown: ae, children: [
|
|
10132
10133
|
/* @__PURE__ */ t("div", { className: "flex flex-col gap-3 pt-3", children: /* @__PURE__ */ t(Ee, { mode: "wait", initial: !1, children: /* @__PURE__ */ a(
|
|
10133
10134
|
ee.div,
|
|
10134
10135
|
{
|
|
@@ -10142,9 +10143,9 @@ const ml = ({
|
|
|
10142
10143
|
vl,
|
|
10143
10144
|
{
|
|
10144
10145
|
question: x,
|
|
10145
|
-
stepLabel:
|
|
10146
|
-
isFirstStep:
|
|
10147
|
-
isFinalStep:
|
|
10146
|
+
stepLabel: B,
|
|
10147
|
+
isFirstStep: R,
|
|
10148
|
+
isFinalStep: S,
|
|
10148
10149
|
canProceed: z,
|
|
10149
10150
|
onBack: p,
|
|
10150
10151
|
onNext: c,
|
|
@@ -10157,11 +10158,11 @@ const ml = ({
|
|
|
10157
10158
|
mode: L,
|
|
10158
10159
|
question: x,
|
|
10159
10160
|
options: v,
|
|
10160
|
-
selectedOptionIds:
|
|
10161
|
-
allowCustomAnswer:
|
|
10161
|
+
selectedOptionIds: M,
|
|
10162
|
+
allowCustomAnswer: V,
|
|
10162
10163
|
hasSelection: U,
|
|
10163
10164
|
hasCustomText: O,
|
|
10164
|
-
customAnswerText:
|
|
10165
|
+
customAnswerText: E,
|
|
10165
10166
|
isCustomAnswerActive: w,
|
|
10166
10167
|
canProceed: z,
|
|
10167
10168
|
customInputRef: N,
|
|
@@ -10190,94 +10191,94 @@ const ml = ({
|
|
|
10190
10191
|
] });
|
|
10191
10192
|
};
|
|
10192
10193
|
function A1(e, r, o, n) {
|
|
10193
|
-
const s = Math.max(1, Math.min(e, r)), i = Math.min(o, 20), d = Math.min(i + n, s), c = Math.min(d, Math.floor(e / 2)), u = Math.min(d, Math.floor(r / 2)), f = (K) => K / e * 2 - 1, p = (K) => K / r * 2 - 1, C = 0, g = e, m = 0, x = r, v = c,
|
|
10194
|
+
const s = Math.max(1, Math.min(e, r)), i = Math.min(o, 20), d = Math.min(i + n, s), c = Math.min(d, Math.floor(e / 2)), u = Math.min(d, Math.floor(r / 2)), f = (K) => K / e * 2 - 1, p = (K) => K / r * 2 - 1, C = 0, g = e, m = 0, x = r, v = c, M = e - c, A = u, T = r - u, V = f(C), E = f(g), w = p(m), N = p(x), L = f(v), $ = f(M), R = p(A), S = p(T), B = 0, U = 0, O = 1, z = 1, te = c / e, oe = 1 - c / e, X = u / r, Y = 1 - u / r, D = new Float32Array([
|
|
10194
10195
|
// Top strip
|
|
10195
|
-
|
|
10196
|
-
w,
|
|
10197
|
-
M,
|
|
10196
|
+
V,
|
|
10198
10197
|
w,
|
|
10199
|
-
S,
|
|
10200
10198
|
E,
|
|
10201
|
-
|
|
10199
|
+
w,
|
|
10200
|
+
V,
|
|
10201
|
+
R,
|
|
10202
|
+
V,
|
|
10203
|
+
R,
|
|
10202
10204
|
E,
|
|
10203
|
-
M,
|
|
10204
10205
|
w,
|
|
10205
|
-
M,
|
|
10206
10206
|
E,
|
|
10207
|
+
R,
|
|
10207
10208
|
// Bottom strip
|
|
10208
|
-
S,
|
|
10209
|
-
V,
|
|
10210
|
-
M,
|
|
10211
10209
|
V,
|
|
10212
10210
|
S,
|
|
10213
|
-
|
|
10211
|
+
E,
|
|
10214
10212
|
S,
|
|
10213
|
+
V,
|
|
10215
10214
|
N,
|
|
10216
|
-
M,
|
|
10217
10215
|
V,
|
|
10218
|
-
M,
|
|
10219
10216
|
N,
|
|
10220
|
-
|
|
10217
|
+
E,
|
|
10221
10218
|
S,
|
|
10222
10219
|
E,
|
|
10220
|
+
N,
|
|
10221
|
+
// Left strip
|
|
10222
|
+
V,
|
|
10223
|
+
R,
|
|
10223
10224
|
L,
|
|
10224
|
-
|
|
10225
|
-
S,
|
|
10225
|
+
R,
|
|
10226
10226
|
V,
|
|
10227
10227
|
S,
|
|
10228
10228
|
V,
|
|
10229
|
+
S,
|
|
10229
10230
|
L,
|
|
10230
|
-
|
|
10231
|
+
R,
|
|
10231
10232
|
L,
|
|
10232
|
-
|
|
10233
|
+
S,
|
|
10233
10234
|
// Right strip
|
|
10234
|
-
|
|
10235
|
+
$,
|
|
10236
|
+
R,
|
|
10235
10237
|
E,
|
|
10236
|
-
|
|
10238
|
+
R,
|
|
10239
|
+
$,
|
|
10240
|
+
S,
|
|
10241
|
+
$,
|
|
10242
|
+
S,
|
|
10237
10243
|
E,
|
|
10238
|
-
|
|
10239
|
-
V,
|
|
10240
|
-
A,
|
|
10241
|
-
V,
|
|
10242
|
-
M,
|
|
10244
|
+
R,
|
|
10243
10245
|
E,
|
|
10244
|
-
|
|
10245
|
-
V
|
|
10246
|
+
S
|
|
10246
10247
|
]), W = new Float32Array([
|
|
10247
10248
|
// Top strip
|
|
10248
|
-
|
|
10249
|
+
B,
|
|
10249
10250
|
U,
|
|
10250
10251
|
O,
|
|
10251
10252
|
U,
|
|
10252
|
-
|
|
10253
|
+
B,
|
|
10253
10254
|
X,
|
|
10254
|
-
|
|
10255
|
+
B,
|
|
10255
10256
|
X,
|
|
10256
10257
|
O,
|
|
10257
10258
|
U,
|
|
10258
10259
|
O,
|
|
10259
10260
|
X,
|
|
10260
10261
|
// Bottom strip
|
|
10261
|
-
|
|
10262
|
+
B,
|
|
10262
10263
|
Y,
|
|
10263
10264
|
O,
|
|
10264
10265
|
Y,
|
|
10265
|
-
|
|
10266
|
+
B,
|
|
10266
10267
|
z,
|
|
10267
|
-
|
|
10268
|
+
B,
|
|
10268
10269
|
z,
|
|
10269
10270
|
O,
|
|
10270
10271
|
Y,
|
|
10271
10272
|
O,
|
|
10272
10273
|
z,
|
|
10273
10274
|
// Left strip
|
|
10274
|
-
|
|
10275
|
+
B,
|
|
10275
10276
|
X,
|
|
10276
10277
|
te,
|
|
10277
10278
|
X,
|
|
10278
|
-
|
|
10279
|
+
B,
|
|
10279
10280
|
Y,
|
|
10280
|
-
|
|
10281
|
+
B,
|
|
10281
10282
|
Y,
|
|
10282
10283
|
te,
|
|
10283
10284
|
X,
|
|
@@ -10550,7 +10551,7 @@ function El(e) {
|
|
|
10550
10551
|
const [, o, n, s] = r;
|
|
10551
10552
|
return [parseInt(o) / 255, parseInt(n) / 255, parseInt(s) / 255];
|
|
10552
10553
|
}
|
|
10553
|
-
class
|
|
10554
|
+
class Q6 {
|
|
10554
10555
|
element;
|
|
10555
10556
|
canvas;
|
|
10556
10557
|
options;
|
|
@@ -10626,10 +10627,10 @@ class K6 {
|
|
|
10626
10627
|
s.enableVertexAttribArray(x), s.vertexAttribPointer(x, 2, s.FLOAT, !1, 0, 0), this.checkGLError(s, "resize: after position buffer update"), s.bindBuffer(s.ARRAY_BUFFER, c), s.bufferData(s.ARRAY_BUFFER, m, s.STATIC_DRAW);
|
|
10627
10628
|
const v = s.getAttribLocation(i, "aUV");
|
|
10628
10629
|
s.enableVertexAttribArray(v), s.vertexAttribPointer(v, 2, s.FLOAT, !1, 0, 0), this.checkGLError(s, "resize: after UV buffer update"), s.useProgram(i), s.uniform2f(u, this.canvas.width, this.canvas.height), s.uniform1f(this.glr.uBorderWidth, this.options.borderWidth * f), s.uniform1f(this.glr.uGlowWidth, this.options.glowWidth * f), s.uniform1f(this.glr.uBorderRadius, this.options.borderRadius * f), this.checkGLError(s, "resize: after uniform updates");
|
|
10629
|
-
const
|
|
10630
|
-
this.lastTime =
|
|
10631
|
-
const
|
|
10632
|
-
this.render(
|
|
10630
|
+
const M = performance.now();
|
|
10631
|
+
this.lastTime = M;
|
|
10632
|
+
const A = (M - this.startTime) * 1e-3;
|
|
10633
|
+
this.render(A);
|
|
10633
10634
|
}
|
|
10634
10635
|
/**
|
|
10635
10636
|
* Automatically resizes the canvas to match the dimensions of the given element.
|
|
@@ -10717,13 +10718,13 @@ class K6 {
|
|
|
10717
10718
|
r.bindBuffer(r.ARRAY_BUFFER, f), r.bufferData(r.ARRAY_BUFFER, d, r.STATIC_DRAW);
|
|
10718
10719
|
const p = r.getAttribLocation(o, "aUV");
|
|
10719
10720
|
r.enableVertexAttribArray(p), r.vertexAttribPointer(p, 2, r.FLOAT, !1, 0, 0), this.checkGLError(r, "setupGL: after UV buffer setup");
|
|
10720
|
-
const C = r.getUniformLocation(o, "uResolution"), g = r.getUniformLocation(o, "uTime"), m = r.getUniformLocation(o, "uBorderWidth"), x = r.getUniformLocation(o, "uGlowWidth"), v = r.getUniformLocation(o, "uBorderRadius"),
|
|
10721
|
-
r.useProgram(o), r.uniform1f(m, this.options.borderWidth), r.uniform1f(x, this.options.glowWidth), r.uniform1f(v, this.options.borderRadius), this.options.mode === "dark" ? (r.uniform1f(
|
|
10722
|
-
const
|
|
10723
|
-
for (let
|
|
10721
|
+
const C = r.getUniformLocation(o, "uResolution"), g = r.getUniformLocation(o, "uTime"), m = r.getUniformLocation(o, "uBorderWidth"), x = r.getUniformLocation(o, "uGlowWidth"), v = r.getUniformLocation(o, "uBorderRadius"), M = r.getUniformLocation(o, "uColors"), A = r.getUniformLocation(o, "uGlowExponent"), T = r.getUniformLocation(o, "uGlowFactor");
|
|
10722
|
+
r.useProgram(o), r.uniform1f(m, this.options.borderWidth), r.uniform1f(x, this.options.glowWidth), r.uniform1f(v, this.options.borderRadius), this.options.mode === "dark" ? (r.uniform1f(A, 2), r.uniform1f(T, 1.8)) : (r.uniform1f(A, 1), r.uniform1f(T, 1));
|
|
10723
|
+
const V = (this.options.colors || Ml).map(El);
|
|
10724
|
+
for (let E = 0; E < V.length; E++)
|
|
10724
10725
|
r.uniform3f(
|
|
10725
|
-
r.getUniformLocation(o, `uColors[${
|
|
10726
|
-
...
|
|
10726
|
+
r.getUniformLocation(o, `uColors[${E}]`),
|
|
10727
|
+
...V[E]
|
|
10727
10728
|
);
|
|
10728
10729
|
this.checkGLError(r, "setupGL: after uniform setup"), r.bindVertexArray(null), r.bindBuffer(r.ARRAY_BUFFER, null), this.glr = {
|
|
10729
10730
|
gl: r,
|
|
@@ -10736,7 +10737,7 @@ class K6 {
|
|
|
10736
10737
|
uBorderWidth: m,
|
|
10737
10738
|
uGlowWidth: x,
|
|
10738
10739
|
uBorderRadius: v,
|
|
10739
|
-
uColors:
|
|
10740
|
+
uColors: M
|
|
10740
10741
|
};
|
|
10741
10742
|
}
|
|
10742
10743
|
render(r) {
|
|
@@ -10945,8 +10946,8 @@ class Bl {
|
|
|
10945
10946
|
)
|
|
10946
10947
|
);
|
|
10947
10948
|
Object.assign(this, { url: n, wrapS: s, wrapT: i, minFilter: l, magFilter: d, flipY: c });
|
|
10948
|
-
const p = 0, C = o.RGBA, g = 1, m = 1, x = 0, v = o.RGBA,
|
|
10949
|
-
if (o.bindTexture(o.TEXTURE_2D,
|
|
10949
|
+
const p = 0, C = o.RGBA, g = 1, m = 1, x = 0, v = o.RGBA, M = o.UNSIGNED_BYTE, A = new Uint8Array([255, 255, 255, 0]), T = o.createTexture();
|
|
10950
|
+
if (o.bindTexture(o.TEXTURE_2D, T), o.texImage2D(
|
|
10950
10951
|
o.TEXTURE_2D,
|
|
10951
10952
|
p,
|
|
10952
10953
|
C,
|
|
@@ -10954,30 +10955,30 @@ class Bl {
|
|
|
10954
10955
|
m,
|
|
10955
10956
|
x,
|
|
10956
10957
|
v,
|
|
10957
|
-
|
|
10958
|
-
|
|
10958
|
+
M,
|
|
10959
|
+
A
|
|
10959
10960
|
), f) {
|
|
10960
10961
|
const N = this.setupVideo(n);
|
|
10961
|
-
return o.texParameteri(o.TEXTURE_2D, o.TEXTURE_WRAP_S, o.CLAMP_TO_EDGE), o.texParameteri(o.TEXTURE_2D, o.TEXTURE_WRAP_T, o.CLAMP_TO_EDGE), o.texParameteri(o.TEXTURE_2D, o.TEXTURE_MIN_FILTER, o.LINEAR), this._webglTexture =
|
|
10962
|
+
return o.texParameteri(o.TEXTURE_2D, o.TEXTURE_WRAP_S, o.CLAMP_TO_EDGE), o.texParameteri(o.TEXTURE_2D, o.TEXTURE_WRAP_T, o.CLAMP_TO_EDGE), o.texParameteri(o.TEXTURE_2D, o.TEXTURE_MIN_FILTER, o.LINEAR), this._webglTexture = T, this.source = N, this.isVideo = !0, N.play().then(() => this);
|
|
10962
10963
|
}
|
|
10963
|
-
async function
|
|
10964
|
+
async function V() {
|
|
10964
10965
|
return new Promise((N, L) => {
|
|
10965
|
-
const
|
|
10966
|
-
|
|
10967
|
-
N(
|
|
10968
|
-
},
|
|
10966
|
+
const $ = new Image();
|
|
10967
|
+
$.crossOrigin = "anonymous", $.onload = () => {
|
|
10968
|
+
N($);
|
|
10969
|
+
}, $.onerror = () => {
|
|
10969
10970
|
L(new Error(be(`failed loading url: ${n}`)));
|
|
10970
|
-
},
|
|
10971
|
+
}, $.src = n ?? "";
|
|
10971
10972
|
});
|
|
10972
10973
|
}
|
|
10973
|
-
let
|
|
10974
|
-
return (r.wrapS !== W1 || r.wrapT !== W1 || r.minFilter !== G1 && r.minFilter !== t1) && !w && (
|
|
10974
|
+
let E = await V(), w = (E.width & E.width - 1) === 0 && (E.height & E.height - 1) === 0;
|
|
10975
|
+
return (r.wrapS !== W1 || r.wrapT !== W1 || r.minFilter !== G1 && r.minFilter !== t1) && !w && (E = this.makePowerOf2(E), w = !0), o.bindTexture(o.TEXTURE_2D, T), o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL, c), o.texImage2D(
|
|
10975
10976
|
o.TEXTURE_2D,
|
|
10976
10977
|
p,
|
|
10977
10978
|
C,
|
|
10978
10979
|
v,
|
|
10979
|
-
|
|
10980
|
-
|
|
10980
|
+
M,
|
|
10981
|
+
E
|
|
10981
10982
|
), w && r.minFilter !== G1 && r.minFilter !== t1 && o.generateMipmap(o.TEXTURE_2D), o.texParameteri(
|
|
10982
10983
|
o.TEXTURE_2D,
|
|
10983
10984
|
o.TEXTURE_WRAP_S,
|
|
@@ -10994,7 +10995,7 @@ class Bl {
|
|
|
10994
10995
|
o.TEXTURE_2D,
|
|
10995
10996
|
o.TEXTURE_MAG_FILTER,
|
|
10996
10997
|
this.magFilter || t1
|
|
10997
|
-
), this._webglTexture =
|
|
10998
|
+
), this._webglTexture = T, this.source = E, this.isVideo = !1, this.isLoaded = !0, this.width = E.width || 0, this.height = E.height || 0, this;
|
|
10998
10999
|
};
|
|
10999
11000
|
}
|
|
11000
11001
|
const be = (e) => `react-shaders: ${e}`, X1 = (e) => {
|
|
@@ -11019,7 +11020,7 @@ function Pl({
|
|
|
11019
11020
|
onError: p = console.error,
|
|
11020
11021
|
onWarning: C = console.warn
|
|
11021
11022
|
}) {
|
|
11022
|
-
const g = j(null), m = j(null), x = j(null), v = j(null),
|
|
11023
|
+
const g = j(null), m = j(null), x = j(null), v = j(null), M = j(void 0), A = j(void 0), T = j(!1), V = j(void 0), E = j(0), w = j([0, 0]), N = j([]), L = j(0), $ = j(void 0), R = j({
|
|
11023
11024
|
[P1]: { type: "float", isNeeded: !1, value: 0 },
|
|
11024
11025
|
[j1]: { type: "float", isNeeded: !1, value: 0 },
|
|
11025
11026
|
[D1]: { type: "vec4", isNeeded: !1, value: [0, 0, 0, 0] },
|
|
@@ -11031,11 +11032,11 @@ function Pl({
|
|
|
11031
11032
|
isNeeded: !1,
|
|
11032
11033
|
value: [0, 0, 0, 0]
|
|
11033
11034
|
}
|
|
11034
|
-
}),
|
|
11035
|
-
const y = "width" in b ? b.width ?? 0 : 0, P = "height" in b ? b.height ?? 0 : 0,
|
|
11036
|
-
if (!
|
|
11037
|
-
const Z = Array.isArray(
|
|
11038
|
-
Z[
|
|
11035
|
+
}), S = j(n), B = (b, F) => {
|
|
11036
|
+
const y = "width" in b ? b.width ?? 0 : 0, P = "height" in b ? b.height ?? 0 : 0, H = R.current.iChannelResolution;
|
|
11037
|
+
if (!H) return;
|
|
11038
|
+
const Z = Array.isArray(H.value) ? H.value : H.value = [];
|
|
11039
|
+
Z[F * 3] = y * u, Z[F * 3 + 1] = P * u, Z[F * 3 + 2] = 0;
|
|
11039
11040
|
}, U = () => {
|
|
11040
11041
|
g.current && (m.current = g.current.getContext("webgl", d) || g.current.getContext(
|
|
11041
11042
|
"experimental-webgl",
|
|
@@ -11044,7 +11045,7 @@ function Pl({
|
|
|
11044
11045
|
}, O = () => {
|
|
11045
11046
|
const b = m.current;
|
|
11046
11047
|
x.current = b?.createBuffer() ?? null, b?.bindBuffer(b.ARRAY_BUFFER, x.current);
|
|
11047
|
-
const
|
|
11048
|
+
const F = [
|
|
11048
11049
|
1,
|
|
11049
11050
|
1,
|
|
11050
11051
|
0,
|
|
@@ -11058,69 +11059,69 @@ function Pl({
|
|
|
11058
11059
|
-1,
|
|
11059
11060
|
0
|
|
11060
11061
|
];
|
|
11061
|
-
b?.bufferData(b.ARRAY_BUFFER, new Float32Array(
|
|
11062
|
+
b?.bufferData(b.ARRAY_BUFFER, new Float32Array(F), b.STATIC_DRAW);
|
|
11062
11063
|
}, z = ({
|
|
11063
11064
|
alpha: b,
|
|
11064
|
-
beta:
|
|
11065
|
+
beta: F,
|
|
11065
11066
|
gamma: y
|
|
11066
11067
|
}) => {
|
|
11067
|
-
|
|
11068
|
+
R.current.iDeviceOrientation.value = [
|
|
11068
11069
|
b ?? 0,
|
|
11069
|
-
|
|
11070
|
+
F ?? 0,
|
|
11070
11071
|
y ?? 0,
|
|
11071
11072
|
window.orientation ?? 0
|
|
11072
11073
|
];
|
|
11073
11074
|
}, te = (b) => {
|
|
11074
|
-
const [
|
|
11075
|
-
|
|
11076
|
-
const Z = Array.isArray(
|
|
11077
|
-
Z && (Z[2] = P, Z[3] =
|
|
11075
|
+
const [F = 0, y = 0] = X1(b), P = F - (V.current?.left ?? 0) - window.pageXOffset, H = (V.current?.height ?? 0) - y - (V.current?.top ?? 0) - window.pageYOffset;
|
|
11076
|
+
T.current = !0;
|
|
11077
|
+
const Z = Array.isArray(R.current.iMouse?.value) ? R.current.iMouse.value : void 0;
|
|
11078
|
+
Z && (Z[2] = P, Z[3] = H), w.current[0] = P, w.current[1] = H;
|
|
11078
11079
|
}, oe = (b) => {
|
|
11079
|
-
|
|
11080
|
-
const [
|
|
11080
|
+
V.current = g.current?.getBoundingClientRect();
|
|
11081
|
+
const [F = 0, y = 0] = X1(b), P = F - (V.current?.left ?? 0), H = (V.current?.height ?? 0) - y - (V.current?.top ?? 0);
|
|
11081
11082
|
if (c !== 1)
|
|
11082
|
-
w.current[0] = P, w.current[1] =
|
|
11083
|
+
w.current[0] = P, w.current[1] = H;
|
|
11083
11084
|
else {
|
|
11084
|
-
const Z = Array.isArray(
|
|
11085
|
-
Z && (Z[0] = P, Z[1] =
|
|
11085
|
+
const Z = Array.isArray(R.current.iMouse?.value) ? R.current.iMouse.value : void 0;
|
|
11086
|
+
Z && (Z[0] = P, Z[1] = H);
|
|
11086
11087
|
}
|
|
11087
11088
|
}, X = () => {
|
|
11088
|
-
const b = Array.isArray(
|
|
11089
|
+
const b = Array.isArray(R.current.iMouse?.value) ? R.current.iMouse.value : void 0;
|
|
11089
11090
|
b && (b[2] = 0, b[3] = 0);
|
|
11090
11091
|
}, Y = () => {
|
|
11091
11092
|
const b = m.current;
|
|
11092
11093
|
if (!b) return;
|
|
11093
|
-
|
|
11094
|
-
const
|
|
11095
|
-
(
|
|
11094
|
+
V.current = g.current?.getBoundingClientRect();
|
|
11095
|
+
const F = u, y = Math.floor(
|
|
11096
|
+
(V.current?.width ?? 1) * F
|
|
11096
11097
|
), P = Math.floor(
|
|
11097
|
-
(
|
|
11098
|
+
(V.current?.height ?? 1) * F
|
|
11098
11099
|
);
|
|
11099
|
-
if (b.canvas.width = y, b.canvas.height = P,
|
|
11100
|
-
const
|
|
11100
|
+
if (b.canvas.width = y, b.canvas.height = P, R.current.iResolution?.isNeeded && v.current) {
|
|
11101
|
+
const H = b.getUniformLocation(
|
|
11101
11102
|
v.current,
|
|
11102
11103
|
O1
|
|
11103
11104
|
);
|
|
11104
|
-
b.uniform2fv(
|
|
11105
|
+
b.uniform2fv(H, [b.canvas.width, b.canvas.height]);
|
|
11105
11106
|
}
|
|
11106
|
-
}, D = (b,
|
|
11107
|
+
}, D = (b, F) => {
|
|
11107
11108
|
const y = m.current;
|
|
11108
11109
|
if (!y) return null;
|
|
11109
11110
|
const P = y.createShader(b);
|
|
11110
11111
|
if (!P) return null;
|
|
11111
|
-
if (y.shaderSource(P,
|
|
11112
|
+
if (y.shaderSource(P, F), y.compileShader(P), !y.getShaderParameter(P, y.COMPILE_STATUS)) {
|
|
11112
11113
|
C?.(be(`Error compiling the shader:
|
|
11113
|
-
${
|
|
11114
|
-
const
|
|
11115
|
-
y.deleteShader(P), p?.(be(`Shader compiler log: ${
|
|
11114
|
+
${F}`));
|
|
11115
|
+
const H = y.getShaderInfoLog(P);
|
|
11116
|
+
y.deleteShader(P), p?.(be(`Shader compiler log: ${H}`));
|
|
11116
11117
|
}
|
|
11117
11118
|
return P;
|
|
11118
|
-
}, W = (b,
|
|
11119
|
+
}, W = (b, F) => {
|
|
11119
11120
|
const y = m.current;
|
|
11120
11121
|
if (!y) return;
|
|
11121
|
-
const P = D(y.FRAGMENT_SHADER, b),
|
|
11122
|
-
if (v.current = y.createProgram(), !(!v.current || !
|
|
11123
|
-
if (y.attachShader(v.current,
|
|
11122
|
+
const P = D(y.FRAGMENT_SHADER, b), H = D(y.VERTEX_SHADER, F);
|
|
11123
|
+
if (v.current = y.createProgram(), !(!v.current || !H || !P)) {
|
|
11124
|
+
if (y.attachShader(v.current, H), y.attachShader(v.current, P), y.linkProgram(v.current), !y.getProgramParameter(v.current, y.LINK_STATUS)) {
|
|
11124
11125
|
p?.(
|
|
11125
11126
|
be(
|
|
11126
11127
|
`Unable to initialize the shader program: ${y.getProgramInfoLog(
|
|
@@ -11130,168 +11131,168 @@ ${R}`));
|
|
|
11130
11131
|
);
|
|
11131
11132
|
return;
|
|
11132
11133
|
}
|
|
11133
|
-
y.useProgram(v.current),
|
|
11134
|
+
y.useProgram(v.current), M.current = y.getAttribLocation(
|
|
11134
11135
|
v.current,
|
|
11135
11136
|
"aVertexPosition"
|
|
11136
|
-
), y.enableVertexAttribArray(
|
|
11137
|
+
), y.enableVertexAttribArray(M.current);
|
|
11137
11138
|
}
|
|
11138
11139
|
}, K = () => {
|
|
11139
11140
|
if (n)
|
|
11140
11141
|
for (const b of Object.keys(n)) {
|
|
11141
|
-
const
|
|
11142
|
-
if (!
|
|
11143
|
-
const { value: y, type: P } =
|
|
11144
|
-
if (!
|
|
11142
|
+
const F = n[b];
|
|
11143
|
+
if (!F) continue;
|
|
11144
|
+
const { value: y, type: P } = F, H = Al(P);
|
|
11145
|
+
if (!H) continue;
|
|
11145
11146
|
const Z = {};
|
|
11146
11147
|
if (Vl(P, y)) {
|
|
11147
|
-
const
|
|
11148
|
+
const ce = P.length, fe = Number.parseInt(P.charAt(ce - 3)), me = Math.floor(y.length / (fe * fe));
|
|
11148
11149
|
y.length > fe * fe && (Z.arraySize = `[${me}]`);
|
|
11149
11150
|
} else Sl(P, y) && (Z.arraySize = `[${Math.floor(y.length / Number.parseInt(P.charAt(0)))}]`);
|
|
11150
|
-
|
|
11151
|
-
type:
|
|
11151
|
+
R.current[b] = {
|
|
11152
|
+
type: H,
|
|
11152
11153
|
isNeeded: !1,
|
|
11153
11154
|
value: y,
|
|
11154
11155
|
...Z
|
|
11155
11156
|
};
|
|
11156
11157
|
}
|
|
11157
|
-
},
|
|
11158
|
+
}, ae = () => {
|
|
11158
11159
|
const b = m.current;
|
|
11159
11160
|
if (b)
|
|
11160
11161
|
if (o && o.length > 0) {
|
|
11161
|
-
|
|
11162
|
+
R.current[`${U1}`] = {
|
|
11162
11163
|
type: "vec3",
|
|
11163
11164
|
isNeeded: !1,
|
|
11164
11165
|
arraySize: `[${o.length}]`,
|
|
11165
11166
|
value: []
|
|
11166
11167
|
};
|
|
11167
|
-
const
|
|
11168
|
-
(y, P) => (
|
|
11168
|
+
const F = o.map(
|
|
11169
|
+
(y, P) => (R.current[`${Nl}${P}`] = {
|
|
11169
11170
|
type: "sampler2D",
|
|
11170
11171
|
isNeeded: !1
|
|
11171
|
-
},
|
|
11172
|
-
|
|
11172
|
+
}, B(y, P), N.current[P] = new Bl(b), N.current[P]?.load(y).then((H) => {
|
|
11173
|
+
B(H, P);
|
|
11173
11174
|
}))
|
|
11174
11175
|
);
|
|
11175
|
-
Promise.all(
|
|
11176
|
+
Promise.all(F).then(() => {
|
|
11176
11177
|
f && f();
|
|
11177
11178
|
}).catch((y) => {
|
|
11178
11179
|
p?.(y), f && f();
|
|
11179
11180
|
});
|
|
11180
11181
|
} else f && f();
|
|
11181
11182
|
}, ue = (b) => {
|
|
11182
|
-
const
|
|
11183
|
+
const F = B1.includes(i ?? "highp"), y = `precision ${F ? i : B1[1]} float;
|
|
11183
11184
|
`;
|
|
11184
|
-
|
|
11185
|
+
F || C?.(
|
|
11185
11186
|
be(
|
|
11186
11187
|
`wrong precision type ${i}, please make sure to pass one of a valid precision lowp, mediump, highp, by default you shader precision will be set to highp.`
|
|
11187
11188
|
)
|
|
11188
11189
|
);
|
|
11189
11190
|
let P = y.concat(`#define DPR ${u.toFixed(1)}
|
|
11190
11191
|
`).concat(b.replace(/texture\(/g, "texture2D("));
|
|
11191
|
-
for (const Z of Object.keys(
|
|
11192
|
+
for (const Z of Object.keys(R.current))
|
|
11192
11193
|
if (b.includes(Z)) {
|
|
11193
|
-
const
|
|
11194
|
-
if (!
|
|
11194
|
+
const ce = R.current[Z];
|
|
11195
|
+
if (!ce) continue;
|
|
11195
11196
|
P = Il(
|
|
11196
11197
|
P,
|
|
11197
|
-
`uniform ${
|
|
11198
|
+
`uniform ${ce.type} ${Z}${ce.arraySize || ""};
|
|
11198
11199
|
`,
|
|
11199
11200
|
P.lastIndexOf(y) + y.length
|
|
11200
|
-
),
|
|
11201
|
+
), ce.isNeeded = !0;
|
|
11201
11202
|
}
|
|
11202
11203
|
return b.includes("mainImage") && (P = P.concat(Rl)), P;
|
|
11203
11204
|
}, pe = (b) => {
|
|
11204
|
-
const
|
|
11205
|
-
if (!
|
|
11205
|
+
const F = m.current;
|
|
11206
|
+
if (!F || !v.current) return;
|
|
11206
11207
|
const y = L.current ? (b - L.current) / 1e3 : 0;
|
|
11207
11208
|
L.current = b;
|
|
11208
|
-
const P =
|
|
11209
|
+
const P = S.current;
|
|
11209
11210
|
if (P)
|
|
11210
|
-
for (const
|
|
11211
|
-
const Z = P[
|
|
11212
|
-
if (Z &&
|
|
11211
|
+
for (const H of Object.keys(P)) {
|
|
11212
|
+
const Z = P[H];
|
|
11213
|
+
if (Z && R.current[H]?.isNeeded) {
|
|
11213
11214
|
if (!v.current) return;
|
|
11214
|
-
const
|
|
11215
|
+
const ce = F.getUniformLocation(
|
|
11215
11216
|
v.current,
|
|
11216
|
-
|
|
11217
|
+
H
|
|
11217
11218
|
);
|
|
11218
|
-
if (!
|
|
11219
|
+
if (!ce) return;
|
|
11219
11220
|
Hl(
|
|
11220
|
-
|
|
11221
|
-
|
|
11221
|
+
F,
|
|
11222
|
+
ce,
|
|
11222
11223
|
Z.type,
|
|
11223
11224
|
Z.value
|
|
11224
11225
|
);
|
|
11225
11226
|
}
|
|
11226
11227
|
}
|
|
11227
|
-
if (
|
|
11228
|
-
const
|
|
11228
|
+
if (R.current.iMouse?.isNeeded) {
|
|
11229
|
+
const H = F.getUniformLocation(
|
|
11229
11230
|
v.current,
|
|
11230
11231
|
_1
|
|
11231
11232
|
);
|
|
11232
|
-
|
|
11233
|
+
F.uniform4fv(H, R.current.iMouse.value);
|
|
11233
11234
|
}
|
|
11234
|
-
if (
|
|
11235
|
-
const
|
|
11235
|
+
if (R.current.iChannelResolution?.isNeeded) {
|
|
11236
|
+
const H = F.getUniformLocation(
|
|
11236
11237
|
v.current,
|
|
11237
11238
|
U1
|
|
11238
11239
|
);
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11240
|
+
F.uniform3fv(
|
|
11241
|
+
H,
|
|
11242
|
+
R.current.iChannelResolution.value
|
|
11242
11243
|
);
|
|
11243
11244
|
}
|
|
11244
|
-
if (
|
|
11245
|
-
const
|
|
11245
|
+
if (R.current.iDeviceOrientation?.isNeeded) {
|
|
11246
|
+
const H = F.getUniformLocation(
|
|
11246
11247
|
v.current,
|
|
11247
11248
|
z1
|
|
11248
11249
|
);
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11250
|
+
F.uniform4fv(
|
|
11251
|
+
H,
|
|
11252
|
+
R.current.iDeviceOrientation.value
|
|
11252
11253
|
);
|
|
11253
11254
|
}
|
|
11254
|
-
if (
|
|
11255
|
-
const
|
|
11255
|
+
if (R.current.iTime?.isNeeded) {
|
|
11256
|
+
const H = F.getUniformLocation(
|
|
11256
11257
|
v.current,
|
|
11257
11258
|
P1
|
|
11258
11259
|
);
|
|
11259
|
-
|
|
11260
|
+
F.uniform1f(H, E.current += y);
|
|
11260
11261
|
}
|
|
11261
|
-
if (
|
|
11262
|
-
const
|
|
11262
|
+
if (R.current.iTimeDelta?.isNeeded) {
|
|
11263
|
+
const H = F.getUniformLocation(
|
|
11263
11264
|
v.current,
|
|
11264
11265
|
j1
|
|
11265
11266
|
);
|
|
11266
|
-
|
|
11267
|
+
F.uniform1f(H, y);
|
|
11267
11268
|
}
|
|
11268
|
-
if (
|
|
11269
|
-
const
|
|
11269
|
+
if (R.current.iDate?.isNeeded) {
|
|
11270
|
+
const H = /* @__PURE__ */ new Date(), Z = H.getMonth() + 1, ce = H.getDate(), fe = H.getFullYear(), me = H.getHours() * 60 * 60 + H.getMinutes() * 60 + H.getSeconds() + H.getMilliseconds() * 1e-3, ne = F.getUniformLocation(
|
|
11270
11271
|
v.current,
|
|
11271
11272
|
D1
|
|
11272
11273
|
);
|
|
11273
|
-
|
|
11274
|
+
F.uniform4fv(ne, [fe, Z, ce, me]);
|
|
11274
11275
|
}
|
|
11275
|
-
if (
|
|
11276
|
-
const
|
|
11276
|
+
if (R.current.iFrame?.isNeeded) {
|
|
11277
|
+
const H = F.getUniformLocation(
|
|
11277
11278
|
v.current,
|
|
11278
11279
|
Z1
|
|
11279
|
-
), Z =
|
|
11280
|
-
|
|
11280
|
+
), Z = R.current.iFrame.value;
|
|
11281
|
+
F.uniform1i(H, Z), R.current.iFrame.value = Z + 1;
|
|
11281
11282
|
}
|
|
11282
11283
|
if (N.current.length > 0)
|
|
11283
|
-
for (let
|
|
11284
|
-
const Z = N.current[
|
|
11284
|
+
for (let H = 0; H < N.current.length; H++) {
|
|
11285
|
+
const Z = N.current[H];
|
|
11285
11286
|
if (!Z) return;
|
|
11286
|
-
const { isVideo:
|
|
11287
|
+
const { isVideo: ce, _webglTexture: fe, source: me, flipY: ne, isLoaded: Ne } = Z;
|
|
11287
11288
|
if (!Ne || !fe || !me) return;
|
|
11288
|
-
if (
|
|
11289
|
+
if (R.current[`iChannel${H}`]?.isNeeded) {
|
|
11289
11290
|
if (!v.current) return;
|
|
11290
|
-
const Ve =
|
|
11291
|
+
const Ve = F.getUniformLocation(
|
|
11291
11292
|
v.current,
|
|
11292
|
-
`iChannel${
|
|
11293
|
+
`iChannel${H}`
|
|
11293
11294
|
);
|
|
11294
|
-
|
|
11295
|
+
F.activeTexture(F.TEXTURE0 + H), F.bindTexture(F.TEXTURE_2D, fe), F.uniform1i(Ve, H), ce && Z.updateTexture(
|
|
11295
11296
|
fe,
|
|
11296
11297
|
me,
|
|
11297
11298
|
ne
|
|
@@ -11299,47 +11300,47 @@ ${R}`));
|
|
|
11299
11300
|
}
|
|
11300
11301
|
}
|
|
11301
11302
|
}, re = (b) => {
|
|
11302
|
-
const
|
|
11303
|
-
if (!
|
|
11304
|
-
|
|
11305
|
-
|
|
11303
|
+
const F = m.current;
|
|
11304
|
+
if (!F) return;
|
|
11305
|
+
F.viewport(0, 0, F.drawingBufferWidth, F.drawingBufferHeight), F.clear(F.COLOR_BUFFER_BIT | F.DEPTH_BUFFER_BIT), F.bindBuffer(F.ARRAY_BUFFER, x.current), F.vertexAttribPointer(
|
|
11306
|
+
M.current ?? 0,
|
|
11306
11307
|
3,
|
|
11307
|
-
|
|
11308
|
+
F.FLOAT,
|
|
11308
11309
|
!1,
|
|
11309
11310
|
0,
|
|
11310
11311
|
0
|
|
11311
|
-
), pe(b),
|
|
11312
|
-
const y =
|
|
11313
|
-
if (
|
|
11314
|
-
const P = y[0] ?? 0,
|
|
11315
|
-
y[0] = Y1(P, w.current[0] ?? 0, c), y[1] = Y1(
|
|
11312
|
+
), pe(b), F.drawArrays(F.TRIANGLE_STRIP, 0, 4);
|
|
11313
|
+
const y = R.current.iMouse?.value;
|
|
11314
|
+
if (R.current.iMouse?.isNeeded && c !== 1 && Array.isArray(y)) {
|
|
11315
|
+
const P = y[0] ?? 0, H = y[1] ?? 0;
|
|
11316
|
+
y[0] = Y1(P, w.current[0] ?? 0, c), y[1] = Y1(H, w.current[1] ?? 0, c);
|
|
11316
11317
|
}
|
|
11317
|
-
|
|
11318
|
+
A.current = requestAnimationFrame(re);
|
|
11318
11319
|
}, de = () => {
|
|
11319
11320
|
const b = { passive: !0 };
|
|
11320
|
-
|
|
11321
|
+
R.current.iMouse?.isNeeded && g.current && (g.current.addEventListener("mousemove", oe, b), g.current.addEventListener("mouseout", X, b), g.current.addEventListener("mouseup", X, b), g.current.addEventListener("mousedown", te, b), g.current.addEventListener("touchmove", oe, b), g.current.addEventListener("touchend", X, b), g.current.addEventListener("touchstart", te, b)), R.current.iDeviceOrientation?.isNeeded && window.addEventListener(
|
|
11321
11322
|
"deviceorientation",
|
|
11322
11323
|
z,
|
|
11323
11324
|
b
|
|
11324
|
-
), g.current && (
|
|
11325
|
+
), g.current && ($.current = new ResizeObserver(Y), $.current.observe(g.current), window.addEventListener("resize", Y, b));
|
|
11325
11326
|
}, we = () => {
|
|
11326
11327
|
const b = { passive: !0 };
|
|
11327
|
-
|
|
11328
|
+
R.current.iMouse?.isNeeded && g.current && (g.current.removeEventListener("mousemove", oe, b), g.current.removeEventListener("mouseout", X, b), g.current.removeEventListener("mouseup", X, b), g.current.removeEventListener("mousedown", te, b), g.current.removeEventListener("touchmove", oe, b), g.current.removeEventListener("touchend", X, b), g.current.removeEventListener("touchstart", te, b)), R.current.iDeviceOrientation?.isNeeded && window.removeEventListener(
|
|
11328
11329
|
"deviceorientation",
|
|
11329
11330
|
z,
|
|
11330
11331
|
b
|
|
11331
|
-
),
|
|
11332
|
+
), $.current && ($.current.disconnect(), window.removeEventListener("resize", Y, b));
|
|
11332
11333
|
};
|
|
11333
11334
|
return q(() => {
|
|
11334
|
-
|
|
11335
|
+
S.current = n;
|
|
11335
11336
|
}, [n]), q(() => {
|
|
11336
11337
|
const b = N.current;
|
|
11337
|
-
function
|
|
11338
|
+
function F() {
|
|
11338
11339
|
U();
|
|
11339
11340
|
const y = m.current;
|
|
11340
|
-
y && g.current && (y.clearColor(...s), y.clearDepth(1), y.enable(y.DEPTH_TEST), y.depthFunc(y.LEQUAL), y.viewport(0, 0, g.current.width, g.current.height), g.current.height = g.current.clientHeight, g.current.width = g.current.clientWidth, K(),
|
|
11341
|
+
y && g.current && (y.clearColor(...s), y.clearDepth(1), y.enable(y.DEPTH_TEST), y.depthFunc(y.LEQUAL), y.viewport(0, 0, g.current.width, g.current.height), g.current.height = g.current.clientHeight, g.current.width = g.current.clientWidth, K(), ae(), W(ue(e || Fl), r || I1), O(), requestAnimationFrame(re), de(), Y());
|
|
11341
11342
|
}
|
|
11342
|
-
return requestAnimationFrame(
|
|
11343
|
+
return requestAnimationFrame(F), () => {
|
|
11343
11344
|
const y = m.current;
|
|
11344
11345
|
if (y) {
|
|
11345
11346
|
if (y.getExtension("WEBGL_lose_context")?.loseContext(), y.useProgram(null), y.deleteProgram(v.current ?? null), b.length > 0)
|
|
@@ -11347,7 +11348,7 @@ ${R}`));
|
|
|
11347
11348
|
y.deleteTexture(P._webglTexture);
|
|
11348
11349
|
v.current = null;
|
|
11349
11350
|
}
|
|
11350
|
-
we(), cancelAnimationFrame(
|
|
11351
|
+
we(), cancelAnimationFrame(A.current ?? 0);
|
|
11351
11352
|
};
|
|
11352
11353
|
}, []), /* @__PURE__ */ t(
|
|
11353
11354
|
"canvas",
|
|
@@ -11534,7 +11535,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|
|
11534
11535
|
repeatType: "mirror"
|
|
11535
11536
|
};
|
|
11536
11537
|
function Ue(e) {
|
|
11537
|
-
const [r, o] =
|
|
11538
|
+
const [r, o] = I(e), n = qn(e), s = j(null);
|
|
11538
11539
|
vs(n, "change", (l) => o(l));
|
|
11539
11540
|
const i = _(
|
|
11540
11541
|
(l, d) => {
|
|
@@ -11545,7 +11546,7 @@ function Ue(e) {
|
|
|
11545
11546
|
return { value: r, motionValue: n, controls: s, animate: i };
|
|
11546
11547
|
}
|
|
11547
11548
|
function zl(e, r) {
|
|
11548
|
-
const [o, n] =
|
|
11549
|
+
const [o, n] = I(Dl), {
|
|
11549
11550
|
value: s,
|
|
11550
11551
|
animate: i,
|
|
11551
11552
|
motionValue: l
|
|
@@ -11683,7 +11684,7 @@ function vr({
|
|
|
11683
11684
|
) });
|
|
11684
11685
|
}
|
|
11685
11686
|
vr.displayName = "AuraShader";
|
|
11686
|
-
function
|
|
11687
|
+
function J6({
|
|
11687
11688
|
size: e = "lg",
|
|
11688
11689
|
state: r,
|
|
11689
11690
|
color: o,
|
|
@@ -11717,7 +11718,7 @@ function Q6({
|
|
|
11717
11718
|
}
|
|
11718
11719
|
);
|
|
11719
11720
|
}
|
|
11720
|
-
const
|
|
11721
|
+
const e4 = ({
|
|
11721
11722
|
text: e,
|
|
11722
11723
|
description: r,
|
|
11723
11724
|
avatar: o,
|
|
@@ -11769,7 +11770,7 @@ const J6 = ({
|
|
|
11769
11770
|
isRevealed: r,
|
|
11770
11771
|
onAskOne: o
|
|
11771
11772
|
}) => {
|
|
11772
|
-
const n = G(), s =
|
|
11773
|
+
const n = G(), s = ke();
|
|
11773
11774
|
return /* @__PURE__ */ a(Re, { children: [
|
|
11774
11775
|
e && /* @__PURE__ */ t("span", { className: k(Xl(), "truncate"), children: e }),
|
|
11775
11776
|
/* @__PURE__ */ t(Ee, { children: o && r && /* @__PURE__ */ t(
|
|
@@ -11999,13 +12000,13 @@ const t6 = ({
|
|
|
11999
12000
|
onAskOne: d,
|
|
12000
12001
|
className: c,
|
|
12001
12002
|
...u
|
|
12002
|
-
} = e, [f, p] =
|
|
12003
|
+
} = e, [f, p] = I(!1), [C, g] = I(!1), m = f || C, x = ke(), v = m && !!d, M = {
|
|
12003
12004
|
duration: x ? 0 : 0.2,
|
|
12004
12005
|
ease: [0.33, 1, 0.68, 1]
|
|
12005
|
-
},
|
|
12006
|
+
}, A = () => {
|
|
12006
12007
|
l?.();
|
|
12007
|
-
},
|
|
12008
|
-
|
|
12008
|
+
}, T = (V) => {
|
|
12009
|
+
V.currentTarget === V.target && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), l?.());
|
|
12009
12010
|
};
|
|
12010
12011
|
return /* @__PURE__ */ a("div", { className: "relative", children: [
|
|
12011
12012
|
i && /* @__PURE__ */ a(Re, { children: [
|
|
@@ -12047,8 +12048,8 @@ const t6 = ({
|
|
|
12047
12048
|
l && ge(),
|
|
12048
12049
|
c
|
|
12049
12050
|
),
|
|
12050
|
-
onClick: l ?
|
|
12051
|
-
onKeyDown: l ?
|
|
12051
|
+
onClick: l ? A : void 0,
|
|
12052
|
+
onKeyDown: l ? T : void 0,
|
|
12052
12053
|
onMouseEnter: () => p(!0),
|
|
12053
12054
|
onMouseLeave: () => p(!1),
|
|
12054
12055
|
onFocus: () => g(!0),
|
|
@@ -12069,7 +12070,7 @@ const t6 = ({
|
|
|
12069
12070
|
{
|
|
12070
12071
|
className: "-ml-4 flex flex-1 flex-col",
|
|
12071
12072
|
animate: { opacity: v ? 0 : 1 },
|
|
12072
|
-
transition:
|
|
12073
|
+
transition: M,
|
|
12073
12074
|
children: /* @__PURE__ */ t(
|
|
12074
12075
|
o6,
|
|
12075
12076
|
{
|
|
@@ -12086,7 +12087,7 @@ const t6 = ({
|
|
|
12086
12087
|
heading: n,
|
|
12087
12088
|
label: s,
|
|
12088
12089
|
shouldFadeContent: v,
|
|
12089
|
-
fadeTransition:
|
|
12090
|
+
fadeTransition: M,
|
|
12090
12091
|
...u
|
|
12091
12092
|
}
|
|
12092
12093
|
)
|
|
@@ -12125,9 +12126,9 @@ const s6 = () => /* @__PURE__ */ a(
|
|
|
12125
12126
|
] })
|
|
12126
12127
|
]
|
|
12127
12128
|
}
|
|
12128
|
-
),
|
|
12129
|
+
), t4 = ns(
|
|
12129
12130
|
ss(Lr, s6)
|
|
12130
|
-
),
|
|
12131
|
+
), r4 = [
|
|
12131
12132
|
"text",
|
|
12132
12133
|
"person",
|
|
12133
12134
|
"people",
|
|
@@ -12148,7 +12149,7 @@ function d6(e) {
|
|
|
12148
12149
|
description: i,
|
|
12149
12150
|
seeMoreLabel: l,
|
|
12150
12151
|
maxCollapsedDescriptionLength: d = br
|
|
12151
|
-
} = e, [c, u] =
|
|
12152
|
+
} = e, [c, u] = I(!1), f = ot(), p = j(null), C = i6(
|
|
12152
12153
|
d
|
|
12153
12154
|
), g = i.length > C, m = c ? i : a6(i, C), x = c6(e) ? e : null, v = l6(e);
|
|
12154
12155
|
return q(() => {
|
|
@@ -12221,7 +12222,7 @@ const f6 = ({
|
|
|
12221
12222
|
title: r,
|
|
12222
12223
|
children: o
|
|
12223
12224
|
}) => {
|
|
12224
|
-
const [n, s] =
|
|
12225
|
+
const [n, s] = I(!1), i = ke();
|
|
12225
12226
|
return /* @__PURE__ */ a(
|
|
12226
12227
|
Et,
|
|
12227
12228
|
{
|
|
@@ -12340,7 +12341,7 @@ function C6({
|
|
|
12340
12341
|
paddingY: "sm",
|
|
12341
12342
|
children: [
|
|
12342
12343
|
/* @__PURE__ */ t(
|
|
12343
|
-
|
|
12344
|
+
ie,
|
|
12344
12345
|
{
|
|
12345
12346
|
tag: "h2",
|
|
12346
12347
|
className: "text-base font-medium capitalize text-f1-foreground",
|
|
@@ -12392,7 +12393,7 @@ function C6({
|
|
|
12392
12393
|
"td",
|
|
12393
12394
|
{
|
|
12394
12395
|
className: "max-w-72 border-0 border-b border-solid border-f1-border-secondary px-3 py-2 text-f1-foreground",
|
|
12395
|
-
children: /* @__PURE__ */ t(
|
|
12396
|
+
children: /* @__PURE__ */ t(ie, { children: f == null ? "" : String(f) })
|
|
12396
12397
|
},
|
|
12397
12398
|
u
|
|
12398
12399
|
);
|
|
@@ -12406,7 +12407,7 @@ function C6({
|
|
|
12406
12407
|
}
|
|
12407
12408
|
C6.displayName = "F0AiTableCard";
|
|
12408
12409
|
function m6({ credits: e, trigger: r }) {
|
|
12409
|
-
const o = G(), [n, s] =
|
|
12410
|
+
const o = G(), [n, s] = I(!1), [i, l] = I(!1), [d, c] = I(!1), [u, f] = I(null), p = _(
|
|
12410
12411
|
(m) => {
|
|
12411
12412
|
s(m), m && e?.fetchUsage && (l(!0), c(!1), e.fetchUsage().then((x) => {
|
|
12412
12413
|
f(x), c(!1);
|
|
@@ -12422,7 +12423,7 @@ function m6({ credits: e, trigger: r }) {
|
|
|
12422
12423
|
const C = u ? Math.min(100, Math.round(u.used / u.total * 100)) : 0, g = e.companyName;
|
|
12423
12424
|
return /* @__PURE__ */ a(d1, { open: n, onOpenChange: p, children: [
|
|
12424
12425
|
/* @__PURE__ */ t(f1, { asChild: !0, children: r ?? /* @__PURE__ */ t(
|
|
12425
|
-
|
|
12426
|
+
se,
|
|
12426
12427
|
{
|
|
12427
12428
|
variant: "ghost",
|
|
12428
12429
|
hideLabel: !0,
|
|
@@ -12451,9 +12452,9 @@ function m6({ credits: e, trigger: r }) {
|
|
|
12451
12452
|
}
|
|
12452
12453
|
),
|
|
12453
12454
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col", children: [
|
|
12454
|
-
/* @__PURE__ */ t(
|
|
12455
|
+
/* @__PURE__ */ t(ie, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
|
|
12455
12456
|
e.planName && /* @__PURE__ */ t(
|
|
12456
|
-
|
|
12457
|
+
ie,
|
|
12457
12458
|
{
|
|
12458
12459
|
tag: "span",
|
|
12459
12460
|
className: "text-sm font-medium text-f1-foreground-secondary",
|
|
@@ -12535,10 +12536,10 @@ function w6({
|
|
|
12535
12536
|
employeeCredits: e,
|
|
12536
12537
|
trigger: r
|
|
12537
12538
|
}) {
|
|
12538
|
-
const o = G(), n =
|
|
12539
|
+
const o = G(), n = ke(), [s, i] = I(!1), [l, d] = I(!1), [c, u] = I(!1), [f, p] = I(null), C = _(
|
|
12539
12540
|
(v) => {
|
|
12540
|
-
i(v), v && e?.fetchUsage && (d(!0), u(!1), e.fetchUsage().then((
|
|
12541
|
-
p(
|
|
12541
|
+
i(v), v && e?.fetchUsage && (d(!0), u(!1), e.fetchUsage().then((M) => {
|
|
12542
|
+
p(M), u(!1);
|
|
12542
12543
|
}).catch(() => {
|
|
12543
12544
|
u(!0);
|
|
12544
12545
|
}).finally(() => {
|
|
@@ -12551,7 +12552,7 @@ function w6({
|
|
|
12551
12552
|
const g = !!e.companyName, m = f && f.total > 0 ? Math.min(100, Math.round(f.used / f.total * 100)) : 0, x = f ? Math.max(0, f.total - f.used) : 0;
|
|
12552
12553
|
return /* @__PURE__ */ a(d1, { open: s, onOpenChange: C, children: [
|
|
12553
12554
|
/* @__PURE__ */ t(f1, { asChild: !0, children: r ?? /* @__PURE__ */ t(
|
|
12554
|
-
|
|
12555
|
+
se,
|
|
12555
12556
|
{
|
|
12556
12557
|
variant: "ghost",
|
|
12557
12558
|
hideLabel: !0,
|
|
@@ -12580,9 +12581,9 @@ function w6({
|
|
|
12580
12581
|
}
|
|
12581
12582
|
),
|
|
12582
12583
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col", children: [
|
|
12583
|
-
/* @__PURE__ */ t(
|
|
12584
|
+
/* @__PURE__ */ t(ie, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
|
|
12584
12585
|
e.planName && /* @__PURE__ */ t(
|
|
12585
|
-
|
|
12586
|
+
ie,
|
|
12586
12587
|
{
|
|
12587
12588
|
tag: "span",
|
|
12588
12589
|
className: "text-sm font-medium text-f1-foreground-secondary",
|
|
@@ -12658,7 +12659,7 @@ const n1 = ({
|
|
|
12658
12659
|
employeeCredits: r,
|
|
12659
12660
|
trigger: o
|
|
12660
12661
|
}
|
|
12661
|
-
) : e ? /* @__PURE__ */ t(m6, { credits: e, trigger: o }) : null,
|
|
12662
|
+
) : e ? /* @__PURE__ */ t(m6, { credits: e, trigger: o }) : null, o4 = n1, n4 = ({
|
|
12662
12663
|
historyEnabled: e = !1,
|
|
12663
12664
|
title: r,
|
|
12664
12665
|
currentThreadTitle: o,
|
|
@@ -12671,40 +12672,52 @@ const n1 = ({
|
|
|
12671
12672
|
hasMessages: u = !1,
|
|
12672
12673
|
credits: f,
|
|
12673
12674
|
employeeCredits: p,
|
|
12674
|
-
compact: C = !1
|
|
12675
|
+
compact: C = !1,
|
|
12676
|
+
actions: g
|
|
12675
12677
|
}) => {
|
|
12676
|
-
const
|
|
12678
|
+
const m = G(), x = ke(), v = is(`(max-width: ${as.md}px)`, {
|
|
12677
12679
|
initializeWithValue: !0
|
|
12678
|
-
}),
|
|
12679
|
-
|
|
12680
|
+
}), M = !s && !v && /* @__PURE__ */ t(
|
|
12681
|
+
se,
|
|
12680
12682
|
{
|
|
12681
12683
|
variant: "ghost",
|
|
12682
12684
|
hideLabel: !0,
|
|
12683
|
-
label: n ?
|
|
12685
|
+
label: n ? m.ai.collapseChat : m.ai.expandChat,
|
|
12684
12686
|
icon: n ? gt : ut,
|
|
12685
12687
|
onClick: i
|
|
12686
12688
|
}
|
|
12687
|
-
),
|
|
12688
|
-
|
|
12689
|
+
), A = /* @__PURE__ */ t(
|
|
12690
|
+
se,
|
|
12689
12691
|
{
|
|
12690
12692
|
variant: "ghost",
|
|
12691
12693
|
hideLabel: !0,
|
|
12692
|
-
label:
|
|
12694
|
+
label: m.ai.closeChat,
|
|
12693
12695
|
icon: Fe,
|
|
12694
12696
|
onClick: l
|
|
12695
12697
|
}
|
|
12696
|
-
)
|
|
12698
|
+
), T = g?.map((V) => /* @__PURE__ */ t(
|
|
12699
|
+
se,
|
|
12700
|
+
{
|
|
12701
|
+
variant: "ghost",
|
|
12702
|
+
hideLabel: !0,
|
|
12703
|
+
label: V.label,
|
|
12704
|
+
icon: V.icon,
|
|
12705
|
+
type: "button",
|
|
12706
|
+
onClick: V.onClick
|
|
12707
|
+
},
|
|
12708
|
+
V.id
|
|
12709
|
+
));
|
|
12697
12710
|
return C ? /* @__PURE__ */ a(
|
|
12698
12711
|
"header",
|
|
12699
12712
|
{
|
|
12700
12713
|
className: k("flex items-center justify-between gap-3 pr-4 pl-5 py-3"),
|
|
12701
12714
|
children: [
|
|
12702
12715
|
/* @__PURE__ */ t(
|
|
12703
|
-
|
|
12716
|
+
ie,
|
|
12704
12717
|
{
|
|
12705
12718
|
lines: 1,
|
|
12706
12719
|
className: "min-w-0 flex-1 text-left font-semibold text-f1-foreground",
|
|
12707
|
-
children: o ??
|
|
12720
|
+
children: o ?? m.ai.newConversation
|
|
12708
12721
|
}
|
|
12709
12722
|
),
|
|
12710
12723
|
/* @__PURE__ */ a(
|
|
@@ -12713,10 +12726,14 @@ const n1 = ({
|
|
|
12713
12726
|
className: "flex shrink-0 items-center",
|
|
12714
12727
|
initial: { opacity: 0 },
|
|
12715
12728
|
animate: { opacity: 1 },
|
|
12716
|
-
transition: {
|
|
12729
|
+
transition: {
|
|
12730
|
+
duration: x ? 0 : 0.2,
|
|
12731
|
+
ease: "easeOut"
|
|
12732
|
+
},
|
|
12717
12733
|
children: [
|
|
12718
|
-
|
|
12719
|
-
|
|
12734
|
+
T,
|
|
12735
|
+
M,
|
|
12736
|
+
A
|
|
12720
12737
|
]
|
|
12721
12738
|
}
|
|
12722
12739
|
)
|
|
@@ -12737,7 +12754,7 @@ const n1 = ({
|
|
|
12737
12754
|
className: "min-w-0 max-w-full [&>div>span>span]:w-full",
|
|
12738
12755
|
onClick: c,
|
|
12739
12756
|
children: /* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
12740
|
-
/* @__PURE__ */ t(
|
|
12757
|
+
/* @__PURE__ */ t(ie, { lines: 1, className: "min-w-0 text-left", children: o ?? m.ai.newConversation }),
|
|
12741
12758
|
/* @__PURE__ */ t(le, { icon: i1, color: "default", size: "md" })
|
|
12742
12759
|
] })
|
|
12743
12760
|
}
|
|
@@ -12748,7 +12765,10 @@ const n1 = ({
|
|
|
12748
12765
|
className: "flex shrink-0 items-center",
|
|
12749
12766
|
initial: { opacity: 0 },
|
|
12750
12767
|
animate: { opacity: 1 },
|
|
12751
|
-
transition: {
|
|
12768
|
+
transition: {
|
|
12769
|
+
duration: x ? 0 : 0.2,
|
|
12770
|
+
ease: "easeOut"
|
|
12771
|
+
},
|
|
12752
12772
|
children: [
|
|
12753
12773
|
/* @__PURE__ */ t(
|
|
12754
12774
|
n1,
|
|
@@ -12757,8 +12777,9 @@ const n1 = ({
|
|
|
12757
12777
|
employeeCredits: p
|
|
12758
12778
|
}
|
|
12759
12779
|
),
|
|
12760
|
-
|
|
12761
|
-
|
|
12780
|
+
T,
|
|
12781
|
+
M,
|
|
12782
|
+
A
|
|
12762
12783
|
]
|
|
12763
12784
|
}
|
|
12764
12785
|
)
|
|
@@ -12772,14 +12793,17 @@ const n1 = ({
|
|
|
12772
12793
|
className: "flex items-center",
|
|
12773
12794
|
initial: { opacity: 0 },
|
|
12774
12795
|
animate: { opacity: 1 },
|
|
12775
|
-
transition: {
|
|
12796
|
+
transition: {
|
|
12797
|
+
duration: x ? 0 : 0.2,
|
|
12798
|
+
ease: "easeOut"
|
|
12799
|
+
},
|
|
12776
12800
|
children: [
|
|
12777
12801
|
u && !s && /* @__PURE__ */ t(
|
|
12778
|
-
|
|
12802
|
+
se,
|
|
12779
12803
|
{
|
|
12780
12804
|
variant: "ghost",
|
|
12781
12805
|
hideLabel: !0,
|
|
12782
|
-
label:
|
|
12806
|
+
label: m.ai.startNewChat,
|
|
12783
12807
|
icon: p1,
|
|
12784
12808
|
onClick: d
|
|
12785
12809
|
}
|
|
@@ -12791,8 +12815,9 @@ const n1 = ({
|
|
|
12791
12815
|
employeeCredits: p
|
|
12792
12816
|
}
|
|
12793
12817
|
),
|
|
12794
|
-
|
|
12795
|
-
|
|
12818
|
+
T,
|
|
12819
|
+
M,
|
|
12820
|
+
A
|
|
12796
12821
|
]
|
|
12797
12822
|
}
|
|
12798
12823
|
)
|
|
@@ -12884,7 +12909,7 @@ function y6({
|
|
|
12884
12909
|
className: "flex w-full min-w-0 items-center gap-1",
|
|
12885
12910
|
onClick: () => s(e.id, e.title),
|
|
12886
12911
|
children: [
|
|
12887
|
-
/* @__PURE__ */ t(
|
|
12912
|
+
/* @__PURE__ */ t(ie, { lines: 1, className: "py-0.5 text-left font-medium", children: e.title }),
|
|
12888
12913
|
/* @__PURE__ */ t("span", { className: "hidden shrink-0 text-sm font-medium text-f1-foreground-tertiary group-focus-within:inline group-hover:inline", children: p })
|
|
12889
12914
|
]
|
|
12890
12915
|
}
|
|
@@ -12912,7 +12937,7 @@ function y6({
|
|
|
12912
12937
|
"has-[[aria-expanded=true]]:flex"
|
|
12913
12938
|
),
|
|
12914
12939
|
children: /* @__PURE__ */ t(h1, { items: f, children: /* @__PURE__ */ t(
|
|
12915
|
-
|
|
12940
|
+
se,
|
|
12916
12941
|
{
|
|
12917
12942
|
icon: dt,
|
|
12918
12943
|
variant: "ghost",
|
|
@@ -12936,7 +12961,7 @@ function Q1({
|
|
|
12936
12961
|
onUnpin: i,
|
|
12937
12962
|
onDelete: l
|
|
12938
12963
|
}) {
|
|
12939
|
-
const [d, c] =
|
|
12964
|
+
const [d, c] = I(!0), u = _(() => {
|
|
12940
12965
|
c((p) => !p);
|
|
12941
12966
|
}, []), f = _(
|
|
12942
12967
|
(p) => {
|
|
@@ -12996,7 +13021,7 @@ function E6() {
|
|
|
12996
13021
|
/* @__PURE__ */ t(et, { titleWidth: "w-24", rows: J1 })
|
|
12997
13022
|
] });
|
|
12998
13023
|
}
|
|
12999
|
-
const
|
|
13024
|
+
const s4 = ({
|
|
13000
13025
|
onClose: e,
|
|
13001
13026
|
onSelectThread: r,
|
|
13002
13027
|
onNewChat: o,
|
|
@@ -13008,7 +13033,7 @@ const n4 = ({
|
|
|
13008
13033
|
onUnpinThread: c,
|
|
13009
13034
|
onDeleteThread: u
|
|
13010
13035
|
}) => {
|
|
13011
|
-
const f = G(), [p, C] =
|
|
13036
|
+
const f = G(), [p, C] = I("");
|
|
13012
13037
|
q(() => {
|
|
13013
13038
|
const w = (N) => {
|
|
13014
13039
|
N.key === "Escape" && e();
|
|
@@ -13038,22 +13063,22 @@ const n4 = ({
|
|
|
13038
13063
|
), v = J(
|
|
13039
13064
|
() => m.filter((w) => !l.has(w.id)),
|
|
13040
13065
|
[m, l]
|
|
13041
|
-
),
|
|
13066
|
+
), M = J(
|
|
13042
13067
|
() => b6(v),
|
|
13043
13068
|
[v]
|
|
13044
|
-
),
|
|
13069
|
+
), A = _(
|
|
13045
13070
|
(w, N) => {
|
|
13046
13071
|
r(w, N), e();
|
|
13047
13072
|
},
|
|
13048
13073
|
[r, e]
|
|
13049
|
-
),
|
|
13074
|
+
), T = _(() => {
|
|
13050
13075
|
o(), e();
|
|
13051
|
-
}, [o, e]),
|
|
13076
|
+
}, [o, e]), V = _(
|
|
13052
13077
|
(w) => {
|
|
13053
13078
|
u(w);
|
|
13054
13079
|
},
|
|
13055
13080
|
[u]
|
|
13056
|
-
),
|
|
13081
|
+
), E = x.length > 0 || M.length > 0;
|
|
13057
13082
|
return Tt(
|
|
13058
13083
|
/* @__PURE__ */ a(Re, { children: [
|
|
13059
13084
|
/* @__PURE__ */ t(
|
|
@@ -13109,38 +13134,38 @@ const n4 = ({
|
|
|
13109
13134
|
variant: "ghost",
|
|
13110
13135
|
size: "md",
|
|
13111
13136
|
className: "py-1 [&>div>span>span]:w-full",
|
|
13112
|
-
onClick:
|
|
13137
|
+
onClick: T,
|
|
13113
13138
|
children: /* @__PURE__ */ a("div", { className: "flex w-full items-center gap-2", children: [
|
|
13114
13139
|
/* @__PURE__ */ t(le, { icon: p1, color: "default", size: "md" }),
|
|
13115
|
-
/* @__PURE__ */ t(
|
|
13140
|
+
/* @__PURE__ */ t(ie, { lines: 1, className: "text-left", children: f.ai.startNewChat })
|
|
13116
13141
|
] })
|
|
13117
13142
|
}
|
|
13118
13143
|
),
|
|
13119
13144
|
s && /* @__PURE__ */ t(E6, {}),
|
|
13120
13145
|
!s && i && /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: i }),
|
|
13121
|
-
!s && !i && !
|
|
13146
|
+
!s && !i && !E && /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: f.ai.noPreviousChats }),
|
|
13122
13147
|
!s && !i && x.length > 0 && /* @__PURE__ */ t(
|
|
13123
13148
|
Q1,
|
|
13124
13149
|
{
|
|
13125
13150
|
label: f.ai.pinnedChats,
|
|
13126
13151
|
threads: x,
|
|
13127
13152
|
pinnedIds: l,
|
|
13128
|
-
onSelect:
|
|
13153
|
+
onSelect: A,
|
|
13129
13154
|
onPin: d,
|
|
13130
13155
|
onUnpin: c,
|
|
13131
|
-
onDelete:
|
|
13156
|
+
onDelete: V
|
|
13132
13157
|
}
|
|
13133
13158
|
),
|
|
13134
|
-
!s && !i &&
|
|
13159
|
+
!s && !i && M.map((w) => /* @__PURE__ */ t(
|
|
13135
13160
|
Q1,
|
|
13136
13161
|
{
|
|
13137
13162
|
label: g[w.key],
|
|
13138
13163
|
threads: w.threads,
|
|
13139
13164
|
pinnedIds: l,
|
|
13140
|
-
onSelect:
|
|
13165
|
+
onSelect: A,
|
|
13141
13166
|
onPin: d,
|
|
13142
13167
|
onUnpin: c,
|
|
13143
|
-
onDelete:
|
|
13168
|
+
onDelete: V
|
|
13144
13169
|
},
|
|
13145
13170
|
w.key
|
|
13146
13171
|
))
|
|
@@ -13161,14 +13186,14 @@ function R6() {
|
|
|
13161
13186
|
function tt(e) {
|
|
13162
13187
|
hs(yr, [...e]);
|
|
13163
13188
|
}
|
|
13164
|
-
function
|
|
13189
|
+
function i4({
|
|
13165
13190
|
enabled: e = !1,
|
|
13166
13191
|
fetchThreads: r,
|
|
13167
13192
|
deleteThread: o,
|
|
13168
13193
|
pinThread: n,
|
|
13169
13194
|
unpinThread: s
|
|
13170
13195
|
}) {
|
|
13171
|
-
const [i, l] =
|
|
13196
|
+
const [i, l] = I([]), [d, c] = I(!1), [u, f] = I(null), [p, C] = I(R6), [g, m] = I(() => /* @__PURE__ */ new Set()), x = _(async () => {
|
|
13172
13197
|
c(!0), f(null);
|
|
13173
13198
|
try {
|
|
13174
13199
|
const w = await r();
|
|
@@ -13186,27 +13211,27 @@ function s4({
|
|
|
13186
13211
|
const v = _((w, N) => {
|
|
13187
13212
|
C((L) => {
|
|
13188
13213
|
if (N === L.has(w)) return L;
|
|
13189
|
-
const
|
|
13190
|
-
return N ?
|
|
13214
|
+
const $ = new Set(L);
|
|
13215
|
+
return N ? $.add(w) : $.delete(w), tt($), $;
|
|
13191
13216
|
});
|
|
13192
|
-
}, []),
|
|
13217
|
+
}, []), M = _((w, N) => {
|
|
13193
13218
|
m((L) => {
|
|
13194
13219
|
if (N === L.has(w)) return L;
|
|
13195
|
-
const
|
|
13196
|
-
return N ?
|
|
13220
|
+
const $ = new Set(L);
|
|
13221
|
+
return N ? $.add(w) : $.delete(w), $;
|
|
13197
13222
|
});
|
|
13198
|
-
}, []),
|
|
13223
|
+
}, []), A = _(
|
|
13199
13224
|
(w, N) => {
|
|
13200
13225
|
const L = N ? n : s;
|
|
13201
|
-
v(w, N), L && (
|
|
13226
|
+
v(w, N), L && (M(w, !0), L(w).catch(() => v(w, !N)).finally(() => M(w, !1)));
|
|
13202
13227
|
},
|
|
13203
|
-
[n, s, v,
|
|
13204
|
-
),
|
|
13205
|
-
(w) =>
|
|
13206
|
-
[
|
|
13207
|
-
),
|
|
13228
|
+
[n, s, v, M]
|
|
13229
|
+
), T = _((w) => A(w, !0), [A]), V = _(
|
|
13230
|
+
(w) => A(w, !1),
|
|
13231
|
+
[A]
|
|
13232
|
+
), E = _(
|
|
13208
13233
|
async (w) => {
|
|
13209
|
-
|
|
13234
|
+
M(w, !0);
|
|
13210
13235
|
try {
|
|
13211
13236
|
await o(w), l((N) => N.filter((L) => L.id !== w)), C((N) => {
|
|
13212
13237
|
if (!N.has(w)) return N;
|
|
@@ -13216,10 +13241,10 @@ function s4({
|
|
|
13216
13241
|
} catch {
|
|
13217
13242
|
x();
|
|
13218
13243
|
} finally {
|
|
13219
|
-
|
|
13244
|
+
M(w, !1);
|
|
13220
13245
|
}
|
|
13221
13246
|
},
|
|
13222
|
-
[o, x,
|
|
13247
|
+
[o, x, M]
|
|
13223
13248
|
);
|
|
13224
13249
|
return {
|
|
13225
13250
|
threads: i,
|
|
@@ -13228,9 +13253,9 @@ function s4({
|
|
|
13228
13253
|
refetch: x,
|
|
13229
13254
|
pinnedIds: p,
|
|
13230
13255
|
pendingIds: g,
|
|
13231
|
-
pinThread:
|
|
13232
|
-
unpinThread:
|
|
13233
|
-
deleteThread:
|
|
13256
|
+
pinThread: T,
|
|
13257
|
+
unpinThread: V,
|
|
13258
|
+
deleteThread: E
|
|
13234
13259
|
};
|
|
13235
13260
|
}
|
|
13236
13261
|
const F6 = ee.create(gs), N6 = ({
|
|
@@ -13282,13 +13307,13 @@ const F6 = ee.create(gs), N6 = ({
|
|
|
13282
13307
|
]
|
|
13283
13308
|
}
|
|
13284
13309
|
)
|
|
13285
|
-
),
|
|
13310
|
+
), a4 = Ar(function({
|
|
13286
13311
|
active: r,
|
|
13287
13312
|
label: o,
|
|
13288
13313
|
className: n,
|
|
13289
13314
|
children: s
|
|
13290
13315
|
}) {
|
|
13291
|
-
const { t: i } = G(), l =
|
|
13316
|
+
const { t: i } = G(), l = ke(), d = o ?? i("ai.applyingChanges");
|
|
13292
13317
|
return q(() => {
|
|
13293
13318
|
if (!r) return;
|
|
13294
13319
|
const c = document.activeElement;
|
|
@@ -13327,12 +13352,12 @@ const F6 = ee.create(gs), N6 = ({
|
|
|
13327
13352
|
] });
|
|
13328
13353
|
});
|
|
13329
13354
|
export {
|
|
13330
|
-
|
|
13331
|
-
|
|
13355
|
+
q6 as A,
|
|
13356
|
+
a4 as B,
|
|
13332
13357
|
Q1 as C,
|
|
13333
13358
|
Dt as D,
|
|
13334
13359
|
mc as E,
|
|
13335
|
-
|
|
13360
|
+
O6 as F,
|
|
13336
13361
|
ic as G,
|
|
13337
13362
|
nc as H,
|
|
13338
13363
|
rc as I,
|
|
@@ -13348,30 +13373,30 @@ export {
|
|
|
13348
13373
|
ri as S,
|
|
13349
13374
|
y6 as T,
|
|
13350
13375
|
ci as U,
|
|
13351
|
-
|
|
13352
|
-
|
|
13376
|
+
W6 as a,
|
|
13377
|
+
X6 as b,
|
|
13353
13378
|
P2 as c,
|
|
13354
|
-
|
|
13379
|
+
U6 as d,
|
|
13355
13380
|
ir as e,
|
|
13356
|
-
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
|
|
13365
|
-
|
|
13381
|
+
Y6 as f,
|
|
13382
|
+
K6 as g,
|
|
13383
|
+
D6 as h,
|
|
13384
|
+
Q6 as i,
|
|
13385
|
+
J6 as j,
|
|
13386
|
+
e4 as k,
|
|
13387
|
+
t4 as l,
|
|
13388
|
+
_6 as m,
|
|
13389
|
+
r4 as n,
|
|
13390
|
+
j6 as o,
|
|
13366
13391
|
d6 as p,
|
|
13367
13392
|
g6 as q,
|
|
13368
13393
|
C6 as r,
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
|
|
13394
|
+
n4 as s,
|
|
13395
|
+
o4 as t,
|
|
13396
|
+
z6 as u,
|
|
13397
|
+
s4 as v,
|
|
13373
13398
|
E6 as w,
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
|
|
13399
|
+
i4 as x,
|
|
13400
|
+
Z6 as y,
|
|
13401
|
+
G6 as z
|
|
13377
13402
|
};
|