@factorialco/f0-react 6.101.0 → 6.101.2
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-B8d1rkm3.js → ChatPdfThumbnail-zxHjJctW.js} +1 -1
- package/dist/{CoachmarkProvider-jpNFEH87.js → CoachmarkProvider-Dt-xwyUd.js} +730 -686
- package/dist/{DocumentToolbar-CEWPFoot.js → DocumentToolbar-9MZJ_0gE.js} +1 -1
- package/dist/{DocxViewer-7TMyk5eE.js → DocxViewer-CnMw7Kp7.js} +1 -1
- package/dist/{LocationMap-BaR25afZ.js → LocationMap-DpNGORRC.js} +1 -1
- package/dist/{SheetViewer-CxqWGd6C.js → SheetViewer-BGamAllb.js} +1 -1
- package/dist/{TextViewer-B82-1TDx.js → TextViewer-Bvrw8aNI.js} +1 -1
- package/dist/component-status.js +1 -1
- package/dist/{experimental-BamzvBVI.js → experimental-BFxuVsNg.js} +10214 -10095
- package/dist/experimental.js +2 -2
- package/dist/f0.js +4 -4
- package/dist/{index-CdveupJt.js → index-KLoWYkXy.js} +2 -2
- package/dist/{pdfWorker-B31hs219.js → pdfWorker-DyK9U2EG.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -2515,7 +2515,7 @@ const TV = ({
|
|
|
2515
2515
|
] })
|
|
2516
2516
|
}
|
|
2517
2517
|
) : /* @__PURE__ */ m(NV, { children: e });
|
|
2518
|
-
},
|
|
2518
|
+
}, C6e = $t(
|
|
2519
2519
|
di("Carousel", TV)
|
|
2520
2520
|
), OV = (e, t) => /* @__PURE__ */ P(
|
|
2521
2521
|
"svg",
|
|
@@ -2547,7 +2547,7 @@ const TV = ({
|
|
|
2547
2547
|
enable: () => null,
|
|
2548
2548
|
disable: () => null,
|
|
2549
2549
|
toggle: () => null
|
|
2550
|
-
}),
|
|
2550
|
+
}), E6e = ({ initiallyEnabled: e = !1, children: t }) => {
|
|
2551
2551
|
const [n, i] = X(e), r = ee(() => {
|
|
2552
2552
|
i(!0);
|
|
2553
2553
|
}, []), o = ee(() => i(!1), []), s = ee(() => i((a) => !a), []);
|
|
@@ -2607,7 +2607,7 @@ const TV = ({
|
|
|
2607
2607
|
const o = new ResizeObserver(r);
|
|
2608
2608
|
return o.observe(i), () => o.disconnect();
|
|
2609
2609
|
}, [e]), t;
|
|
2610
|
-
}, EO = te.createContext(!1),
|
|
2610
|
+
}, EO = te.createContext(!1), N6e = () => te.useContext(EO), a4 = G(
|
|
2611
2611
|
"-mx-1.5 inline-flex min-w-0 items-center gap-1 rounded-sm px-1.5 py-0.5",
|
|
2612
2612
|
"border-none bg-transparent text-left no-underline",
|
|
2613
2613
|
// The COLOUR lives here, on the link, for two reasons: an anchor otherwise
|
|
@@ -2858,7 +2858,7 @@ const TV = ({
|
|
|
2858
2858
|
}
|
|
2859
2859
|
);
|
|
2860
2860
|
}
|
|
2861
|
-
),
|
|
2861
|
+
), A6e = $t(
|
|
2862
2862
|
di("Widget", Kc(FV, BV))
|
|
2863
2863
|
);
|
|
2864
2864
|
function zV() {
|
|
@@ -5663,7 +5663,7 @@ function gU(e) {
|
|
|
5663
5663
|
return k4++, k4;
|
|
5664
5664
|
}, [e]);
|
|
5665
5665
|
}
|
|
5666
|
-
const
|
|
5666
|
+
const T6e = /* @__PURE__ */ te.memo((e) => {
|
|
5667
5667
|
let {
|
|
5668
5668
|
adjustScale: t = !1,
|
|
5669
5669
|
children: n,
|
|
@@ -10762,29 +10762,29 @@ const BK = (e) => {
|
|
|
10762
10762
|
}
|
|
10763
10763
|
)
|
|
10764
10764
|
] });
|
|
10765
|
-
},
|
|
10765
|
+
}, O6e = $t(
|
|
10766
10766
|
cr({ name: "AreaChart", type: "info" }, vK)
|
|
10767
|
-
), O6e = $t(
|
|
10768
|
-
cr({ name: "BarChart", type: "info" }, wK)
|
|
10769
10767
|
), D6e = $t(
|
|
10768
|
+
cr({ name: "BarChart", type: "info" }, wK)
|
|
10769
|
+
), I6e = $t(
|
|
10770
10770
|
cr(
|
|
10771
10771
|
{ name: "CategoryBarChart", type: "info" },
|
|
10772
10772
|
kK
|
|
10773
10773
|
)
|
|
10774
|
-
), I6e = $t(
|
|
10775
|
-
cr({ name: "LineChart", type: "info" }, OK)
|
|
10776
10774
|
), M6e = $t(
|
|
10777
|
-
cr({ name: "
|
|
10775
|
+
cr({ name: "LineChart", type: "info" }, OK)
|
|
10778
10776
|
), P6e = $t(
|
|
10777
|
+
cr({ name: "PieChart", type: "info" }, IK)
|
|
10778
|
+
), R6e = $t(
|
|
10779
10779
|
cr(
|
|
10780
10780
|
{ name: "VerticalBarChart", type: "info" },
|
|
10781
10781
|
jK
|
|
10782
10782
|
)
|
|
10783
|
-
), R6e = $t(
|
|
10784
|
-
cr({ name: "ProgressBarChart", type: "info" }, PK)
|
|
10785
10783
|
), L6e = $t(
|
|
10786
|
-
cr({ name: "
|
|
10784
|
+
cr({ name: "ProgressBarChart", type: "info" }, PK)
|
|
10787
10785
|
), F6e = $t(
|
|
10786
|
+
cr({ name: "ComboChart", type: "info" }, AK)
|
|
10787
|
+
), $6e = $t(
|
|
10788
10788
|
cr({ name: "RadarChart", type: "info" }, FK)
|
|
10789
10789
|
), VK = {
|
|
10790
10790
|
duration: 0.5,
|
|
@@ -10860,7 +10860,7 @@ const KK = (e) => Array.isArray(e) ? e.every((t) => GK(t)) ? e : [
|
|
|
10860
10860
|
{
|
|
10861
10861
|
items: e
|
|
10862
10862
|
}
|
|
10863
|
-
] : [e],
|
|
10863
|
+
] : [e], B6e = [
|
|
10864
10864
|
"idle",
|
|
10865
10865
|
"loading",
|
|
10866
10866
|
"success",
|
|
@@ -11085,7 +11085,7 @@ const KK = (e) => Array.isArray(e) ? e.every((t) => GK(t)) ? e : [
|
|
|
11085
11085
|
}
|
|
11086
11086
|
);
|
|
11087
11087
|
E9.displayName = "F0ActionBar";
|
|
11088
|
-
const $m = $t(E9),
|
|
11088
|
+
const $m = $t(E9), z6e = (e, t = {}, n = 0) => {
|
|
11089
11089
|
const i = B(t);
|
|
11090
11090
|
i.current = t;
|
|
11091
11091
|
const r = B(n);
|
|
@@ -11459,7 +11459,7 @@ function nY(e) {
|
|
|
11459
11459
|
}
|
|
11460
11460
|
const A9 = $t(
|
|
11461
11461
|
nY
|
|
11462
|
-
),
|
|
11462
|
+
), j6e = ["sm", "md", "lg"], H6e = ["compact", "expanded"], V6e = [
|
|
11463
11463
|
"accent",
|
|
11464
11464
|
"critical",
|
|
11465
11465
|
"warning",
|
|
@@ -11517,7 +11517,7 @@ const Pb = (e) => {
|
|
|
11517
11517
|
}
|
|
11518
11518
|
return JSON.stringify(e) ?? "undefined";
|
|
11519
11519
|
}, rY = 50;
|
|
11520
|
-
function
|
|
11520
|
+
function W6e({
|
|
11521
11521
|
dataAdapter: e,
|
|
11522
11522
|
id: t,
|
|
11523
11523
|
filters: n,
|
|
@@ -11609,7 +11609,7 @@ function oY({
|
|
|
11609
11609
|
};
|
|
11610
11610
|
}
|
|
11611
11611
|
const sY = (e, t) => "id" in e && (typeof e.id == "string" || typeof e.id == "number" || typeof e.id == "symbol") ? e.id : t ?? JSON.stringify(e);
|
|
11612
|
-
function
|
|
11612
|
+
function U6e(e) {
|
|
11613
11613
|
const {
|
|
11614
11614
|
dataSource: t,
|
|
11615
11615
|
data: n,
|
|
@@ -11937,7 +11937,7 @@ function cY({
|
|
|
11937
11937
|
}
|
|
11938
11938
|
) }) }) });
|
|
11939
11939
|
}
|
|
11940
|
-
const
|
|
11940
|
+
const q6e = $t(cY), G6e = yT, K6e = ["field", "inline"], Y6e = NB, dY = (e, t, n) => {
|
|
11941
11941
|
const i = Hn[n];
|
|
11942
11942
|
return i ? i.add(e, t) : { from: /* @__PURE__ */ new Date(), to: /* @__PURE__ */ new Date() };
|
|
11943
11943
|
};
|
|
@@ -12361,7 +12361,7 @@ function yY({
|
|
|
12361
12361
|
}
|
|
12362
12362
|
);
|
|
12363
12363
|
}
|
|
12364
|
-
const
|
|
12364
|
+
const X6e = {
|
|
12365
12365
|
today: {
|
|
12366
12366
|
label: "Today",
|
|
12367
12367
|
granularity: "day",
|
|
@@ -13304,7 +13304,7 @@ const FY = $t(
|
|
|
13304
13304
|
}
|
|
13305
13305
|
);
|
|
13306
13306
|
Uy.displayName = "F0NumberInput";
|
|
13307
|
-
const
|
|
13307
|
+
const J6e = Uy, F9 = nt(
|
|
13308
13308
|
({
|
|
13309
13309
|
className: e,
|
|
13310
13310
|
label: t,
|
|
@@ -13382,7 +13382,7 @@ const $9 = cr(
|
|
|
13382
13382
|
type: "form"
|
|
13383
13383
|
},
|
|
13384
13384
|
F9
|
|
13385
|
-
),
|
|
13385
|
+
), Z6e = $9, Q6e = Vu;
|
|
13386
13386
|
var ch = (e) => e.type === "checkbox", _a = (e) => e instanceof Date, ti = (e) => e == null;
|
|
13387
13387
|
const B9 = (e) => typeof e == "object";
|
|
13388
13388
|
var yn = (e) => !ti(e) && !Array.isArray(e) && B9(e) && !_a(e), z9 = (e) => yn(e) && e.target ? ch(e.target) ? e.target.checked : e.target.value : e, BY = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, j9 = (e, t) => e.has(BY(t)), zY = (e) => {
|
|
@@ -20172,9 +20172,14 @@ const ZD = 40, yi = nt(
|
|
|
20172
20172
|
"relative before:pointer-events-none before:absolute before:inset-0 before:z-10 before:content-['']",
|
|
20173
20173
|
"[&:has(.table-cell-action-button:focus)]:before:rounded-sm [&:has(.table-cell-action-button:focus)]:before:ring-1 [&:has(.table-cell-action-button:focus)]:before:ring-inset [&:has(.table-cell-action-button:focus)]:before:ring-f1-special-ring",
|
|
20174
20174
|
"[&:has(a:focus)]:before:rounded-sm [&:has(a:focus)]:before:ring-1 [&:has(a:focus)]:before:ring-inset [&:has(a:focus)]:before:ring-f1-special-ring",
|
|
20175
|
-
//
|
|
20176
|
-
//
|
|
20177
|
-
|
|
20175
|
+
// A sticky row is lifted above the rows scrolling underneath it, so its
|
|
20176
|
+
// background has to stay opaque in every state. `bg-f1-background-hover`
|
|
20177
|
+
// is a 4%-alpha tint — right for a plain row, where it tints the page
|
|
20178
|
+
// behind it, but on a sticky row it would own `background-color` and let
|
|
20179
|
+
// those rows show through. So the opaque colour is kept on hover too and
|
|
20180
|
+
// the tint rides over it as a background-image layer, the same way the
|
|
20181
|
+
// highlighted table header paints its own.
|
|
20182
|
+
i && "sticky z-20 bg-f1-background hover:bg-f1-background hover:bg-[linear-gradient(hsl(var(--neutral-5)),hsl(var(--neutral-5)))]"
|
|
20178
20183
|
),
|
|
20179
20184
|
style: {
|
|
20180
20185
|
...i ? { top: ZD } : void 0,
|
|
@@ -21739,7 +21744,7 @@ const Vh = /* @__PURE__ */ new Set(), Xb = /* @__PURE__ */ new Set(), jv = () =>
|
|
|
21739
21744
|
confirm: eC,
|
|
21740
21745
|
/** Programmatically close a dialog by id (resolves its promise with undefined). */
|
|
21741
21746
|
close: hI
|
|
21742
|
-
},
|
|
21747
|
+
}, eEe = {
|
|
21743
21748
|
/** Open a drawer. Resolves with the value of the action the user picked. */
|
|
21744
21749
|
open: (e) => eee({ ...e, variant: "drawer" }),
|
|
21745
21750
|
/** Programmatically close a drawer by id (resolves its promise with undefined). */
|
|
@@ -22842,7 +22847,7 @@ function Pee({
|
|
|
22842
22847
|
] : []
|
|
22843
22848
|
] : [],
|
|
22844
22849
|
disableContentPadding: !0,
|
|
22845
|
-
children: /* @__PURE__ */ m("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ m(
|
|
22850
|
+
children: /* @__PURE__ */ m("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ m(n4e, { formDefinition: v, formRef: d }) })
|
|
22846
22851
|
}
|
|
22847
22852
|
);
|
|
22848
22853
|
}
|
|
@@ -37939,7 +37944,7 @@ function qde(e, t) {
|
|
|
37939
37944
|
return n === "auto" || n === void 0;
|
|
37940
37945
|
}
|
|
37941
37946
|
const Gde = 30, Kde = 10, Y2 = 48, Yde = 68, jP = 108, S5 = (e) => Math.min(Gde, Math.max(1, e));
|
|
37942
|
-
function
|
|
37947
|
+
function tEe(e = Y2) {
|
|
37943
37948
|
return jP + Kde * e;
|
|
37944
37949
|
}
|
|
37945
37950
|
function Xde(e) {
|
|
@@ -38229,7 +38234,7 @@ const Zde = [
|
|
|
38229
38234
|
Ji.sortings,
|
|
38230
38235
|
rfe(t.sortings)
|
|
38231
38236
|
), t.visualization && e.set(Ji.visualization, t.visualization), t.page && t.page > 1 && e.set(Ji.page, String(t.page)), t.preset && e.set(Ji.preset, t.preset);
|
|
38232
|
-
}, ufe = (e) => !!e.search || !!e.sortings || !!e.visualization || e.page !== void 0 && e.page > 1 || !!e.preset || !!e.filters && Object.values(e.filters).some(ffe),
|
|
38237
|
+
}, ufe = (e) => !!e.search || !!e.sortings || !!e.visualization || e.page !== void 0 && e.page > 1 || !!e.preset || !!e.filters && Object.values(e.filters).some(ffe), nEe = (e = {}) => {
|
|
38233
38238
|
const t = new URLSearchParams();
|
|
38234
38239
|
return KP(t, e), t;
|
|
38235
38240
|
}, hfe = (e, t) => {
|
|
@@ -38240,7 +38245,7 @@ const Zde = [
|
|
|
38240
38245
|
return null;
|
|
38241
38246
|
const i = hfe(window.location.search, e).toString(), r = i ? `${window.location.pathname}?${i}` : window.location.pathname, o = t?.history ?? "replace";
|
|
38242
38247
|
return o === "push" ? window.history.pushState(null, "", r) : o === "replace" && window.history.replaceState(null, "", r), i;
|
|
38243
|
-
},
|
|
38248
|
+
}, iEe = (e, t) => {
|
|
38244
38249
|
try {
|
|
38245
38250
|
localStorage.setItem(
|
|
38246
38251
|
Yz(e),
|
|
@@ -69006,117 +69011,156 @@ const $N = ({
|
|
|
69006
69011
|
]
|
|
69007
69012
|
}
|
|
69008
69013
|
);
|
|
69009
|
-
};
|
|
69010
|
-
function
|
|
69011
|
-
const r = i?.map((
|
|
69012
|
-
user:
|
|
69013
|
-
search:
|
|
69014
|
-
}))
|
|
69014
|
+
}, Q2e = 150;
|
|
69015
|
+
function e3e(e, t, n, i) {
|
|
69016
|
+
const r = i?.map((w) => ({
|
|
69017
|
+
user: w,
|
|
69018
|
+
search: w.label.toLowerCase()
|
|
69019
|
+
})), o = n ? async (w) => {
|
|
69020
|
+
try {
|
|
69021
|
+
return await n(w) || [];
|
|
69022
|
+
} catch {
|
|
69023
|
+
return null;
|
|
69024
|
+
}
|
|
69025
|
+
} : r ? (w) => {
|
|
69026
|
+
const x = w.toLowerCase().trim();
|
|
69027
|
+
return x ? r.filter(({ search: b }) => b.includes(x)).map(({ user: b }) => b) : r.map(({ user: b }) => b);
|
|
69028
|
+
} : void 0;
|
|
69029
|
+
let s = 0, a = !1, l = null, c = [], d = null, f = null, u = 0, h = null;
|
|
69030
|
+
const p = (w) => {
|
|
69031
|
+
const x = ++s, b = u, _ = Promise.resolve(
|
|
69032
|
+
o?.(w) ?? e
|
|
69033
|
+
).then((k) => x !== s ? l === null && h && h.session === b && h.generation !== x ? h.promise : c : k ? (l = w, c = k, t(k), k) : []);
|
|
69034
|
+
return h = { generation: x, session: b, promise: _ }, _;
|
|
69035
|
+
}, g = () => {
|
|
69036
|
+
d !== null && (clearTimeout(d), d = null);
|
|
69037
|
+
const w = f;
|
|
69038
|
+
f = null, w?.resolve(c);
|
|
69039
|
+
}, y = (w) => {
|
|
69040
|
+
if (w === l)
|
|
69041
|
+
return g(), s++, Promise.resolve(c);
|
|
69042
|
+
const x = w === "" || !a;
|
|
69043
|
+
if (a = !0, x)
|
|
69044
|
+
return g(), p(w);
|
|
69045
|
+
if (f)
|
|
69046
|
+
f.query = w;
|
|
69047
|
+
else {
|
|
69048
|
+
let b = () => {
|
|
69049
|
+
};
|
|
69050
|
+
const _ = new Promise((k) => {
|
|
69051
|
+
b = k;
|
|
69052
|
+
});
|
|
69053
|
+
f = { query: w, promise: _, resolve: b };
|
|
69054
|
+
}
|
|
69055
|
+
return d !== null && clearTimeout(d), d = setTimeout(() => {
|
|
69056
|
+
d = null;
|
|
69057
|
+
const b = f;
|
|
69058
|
+
f = null, b && p(b.query).then(b.resolve);
|
|
69059
|
+
}, Q2e), f.promise;
|
|
69060
|
+
}, v = () => {
|
|
69061
|
+
g(), s++, a = !1, l = null, u++;
|
|
69062
|
+
};
|
|
69015
69063
|
return {
|
|
69016
69064
|
char: "@",
|
|
69017
69065
|
minLength: 0,
|
|
69018
|
-
items:
|
|
69019
|
-
if (n)
|
|
69020
|
-
try {
|
|
69021
|
-
const s = await n(o);
|
|
69022
|
-
return t(s || []), s || [];
|
|
69023
|
-
} catch {
|
|
69024
|
-
return [];
|
|
69025
|
-
}
|
|
69026
|
-
else if (r) {
|
|
69027
|
-
const s = o.toLowerCase().trim(), a = s ? r.filter(({ search: l }) => l.includes(s)).map(({ user: l }) => l) : r.map(({ user: l }) => l);
|
|
69028
|
-
return t(a), a;
|
|
69029
|
-
}
|
|
69030
|
-
return e;
|
|
69031
|
-
},
|
|
69066
|
+
items: ({ query: w }) => o ? y(w) : Promise.resolve(e),
|
|
69032
69067
|
render: () => {
|
|
69033
|
-
let
|
|
69034
|
-
const
|
|
69035
|
-
|
|
69036
|
-
|
|
69037
|
-
|
|
69038
|
-
|
|
69039
|
-
|
|
69040
|
-
|
|
69041
|
-
|
|
69042
|
-
|
|
69068
|
+
let w = null, x = null, b = null, _ = null;
|
|
69069
|
+
const k = () => {
|
|
69070
|
+
_ = null, v(), x && b && (x.unmount(), b.remove()), w?.destroy(), w = null, x = null, b = null;
|
|
69071
|
+
}, C = () => {
|
|
69072
|
+
const S = window.getSelection();
|
|
69073
|
+
if (S && S.rangeCount > 0) {
|
|
69074
|
+
const A = S.getRangeAt(0), { startContainer: T, startOffset: O } = A;
|
|
69075
|
+
if (T.nodeType === Node.TEXT_NODE) {
|
|
69076
|
+
const N = (T.textContent || "").lastIndexOf("@", O);
|
|
69077
|
+
if (N !== -1) {
|
|
69078
|
+
const M = document.createRange();
|
|
69079
|
+
return M.setStart(T, N), M.setEnd(T, N + 1), M.getBoundingClientRect();
|
|
69043
69080
|
}
|
|
69044
69081
|
}
|
|
69045
|
-
return
|
|
69082
|
+
return A.getBoundingClientRect();
|
|
69046
69083
|
}
|
|
69047
69084
|
return document.body.getBoundingClientRect();
|
|
69048
|
-
},
|
|
69049
|
-
if (
|
|
69050
|
-
const
|
|
69051
|
-
if (
|
|
69052
|
-
return
|
|
69085
|
+
}, E = (S) => {
|
|
69086
|
+
if (S.clientRect) {
|
|
69087
|
+
const A = S.clientRect();
|
|
69088
|
+
if (A && A.width && A.height)
|
|
69089
|
+
return A;
|
|
69053
69090
|
}
|
|
69054
|
-
return
|
|
69091
|
+
return C();
|
|
69055
69092
|
};
|
|
69056
69093
|
return {
|
|
69057
|
-
|
|
69058
|
-
|
|
69059
|
-
|
|
69060
|
-
|
|
69094
|
+
// tiptap awaits `items` for a `moved && changed` transition before the
|
|
69095
|
+
// `onExit` that would have cleared `sessionStarted`, but it calls
|
|
69096
|
+
// `onBeforeStart` first: this is the only point at which a session that
|
|
69097
|
+
// opens on a moved caret can claim its immediate opening answer.
|
|
69098
|
+
onBeforeStart: () => {
|
|
69099
|
+
a = !1;
|
|
69100
|
+
},
|
|
69101
|
+
onStart: (S) => {
|
|
69102
|
+
_ = S;
|
|
69103
|
+
const A = (O) => {
|
|
69104
|
+
if (!_)
|
|
69061
69105
|
return;
|
|
69062
|
-
const { editor:
|
|
69063
|
-
|
|
69106
|
+
const { editor: D, range: N } = _;
|
|
69107
|
+
D.chain().focus().insertContentAt(N, [
|
|
69064
69108
|
{
|
|
69065
69109
|
type: "mention",
|
|
69066
69110
|
attrs: {
|
|
69067
|
-
id: String(
|
|
69068
|
-
label:
|
|
69069
|
-
image_url:
|
|
69070
|
-
href:
|
|
69111
|
+
id: String(O.id),
|
|
69112
|
+
label: O.label,
|
|
69113
|
+
image_url: O.image_url,
|
|
69114
|
+
href: O.href
|
|
69071
69115
|
}
|
|
69072
69116
|
},
|
|
69073
69117
|
{
|
|
69074
69118
|
type: "text",
|
|
69075
69119
|
text: " "
|
|
69076
69120
|
}
|
|
69077
|
-
]).run(),
|
|
69121
|
+
]).run(), D.view.dom.ownerDocument.defaultView?.getSelection()?.collapseToEnd();
|
|
69078
69122
|
};
|
|
69079
|
-
|
|
69080
|
-
props: { items:
|
|
69081
|
-
editor:
|
|
69123
|
+
w = new R3(HL, {
|
|
69124
|
+
props: { items: S.items, command: A },
|
|
69125
|
+
editor: S.editor
|
|
69082
69126
|
});
|
|
69083
|
-
const
|
|
69084
|
-
|
|
69127
|
+
const T = E(S);
|
|
69128
|
+
b = document.createElement("div"), document.body.appendChild(b), x = jL.createRoot(b), x.render(
|
|
69085
69129
|
/* @__PURE__ */ m(
|
|
69086
69130
|
$N,
|
|
69087
69131
|
{
|
|
69088
|
-
content:
|
|
69089
|
-
anchorRect:
|
|
69090
|
-
editor:
|
|
69132
|
+
content: w.element,
|
|
69133
|
+
anchorRect: T,
|
|
69134
|
+
editor: S.editor
|
|
69091
69135
|
}
|
|
69092
69136
|
)
|
|
69093
|
-
),
|
|
69137
|
+
), S.editor?.commands.focus();
|
|
69094
69138
|
},
|
|
69095
|
-
onUpdate: (
|
|
69096
|
-
if (
|
|
69139
|
+
onUpdate: (S) => {
|
|
69140
|
+
if (_ = S, !w || !b || !x)
|
|
69097
69141
|
return;
|
|
69098
|
-
|
|
69099
|
-
const
|
|
69100
|
-
|
|
69142
|
+
w.updateProps({ items: S.items });
|
|
69143
|
+
const A = E(S);
|
|
69144
|
+
x.render(
|
|
69101
69145
|
/* @__PURE__ */ m(
|
|
69102
69146
|
$N,
|
|
69103
69147
|
{
|
|
69104
|
-
content:
|
|
69105
|
-
anchorRect:
|
|
69106
|
-
editor:
|
|
69148
|
+
content: w.element,
|
|
69149
|
+
anchorRect: A,
|
|
69150
|
+
editor: S.editor
|
|
69107
69151
|
}
|
|
69108
69152
|
)
|
|
69109
69153
|
);
|
|
69110
69154
|
},
|
|
69111
|
-
onKeyDown: (
|
|
69155
|
+
onKeyDown: (S) => w ? S.event.key === "ArrowUp" || S.event.key === "ArrowDown" ? w.ref?.onKeyDown(S) || !1 : S.event.key === "Escape" ? (k(), !0) : w.ref?.onKeyDown(S) || !1 : !1,
|
|
69112
69156
|
onExit() {
|
|
69113
|
-
|
|
69157
|
+
k();
|
|
69114
69158
|
}
|
|
69115
69159
|
};
|
|
69116
69160
|
}
|
|
69117
69161
|
};
|
|
69118
69162
|
}
|
|
69119
|
-
const
|
|
69163
|
+
const t3e = "mention", n3e = X2e.extend({
|
|
69120
69164
|
addAttributes() {
|
|
69121
69165
|
return {
|
|
69122
69166
|
...this.parent?.(),
|
|
@@ -69125,10 +69169,10 @@ const e3e = "mention", t3e = X2e.extend({
|
|
|
69125
69169
|
href: { default: "#" }
|
|
69126
69170
|
};
|
|
69127
69171
|
}
|
|
69128
|
-
}),
|
|
69129
|
-
|
|
69172
|
+
}), i3e = (e, t, n) => n?.users?.length ? [
|
|
69173
|
+
n3e.configure({
|
|
69130
69174
|
HTMLAttributes: {
|
|
69131
|
-
class:
|
|
69175
|
+
class: t3e
|
|
69132
69176
|
},
|
|
69133
69177
|
renderHTML({ options: i, node: r }) {
|
|
69134
69178
|
return [
|
|
@@ -69145,14 +69189,14 @@ const e3e = "mention", t3e = X2e.extend({
|
|
|
69145
69189
|
`${i.suggestion.char ?? "@"}${r.attrs.label}`
|
|
69146
69190
|
];
|
|
69147
69191
|
},
|
|
69148
|
-
suggestion:
|
|
69192
|
+
suggestion: e3e(
|
|
69149
69193
|
e,
|
|
69150
69194
|
t,
|
|
69151
69195
|
n.onMentionQueryStringChanged,
|
|
69152
69196
|
n.users
|
|
69153
69197
|
)
|
|
69154
69198
|
})
|
|
69155
|
-
] : [],
|
|
69199
|
+
] : [], r3e = nt(function({ title: t, onClose: n, content: i, primaryAction: r, secondaryAction: o }, s) {
|
|
69156
69200
|
return /* @__PURE__ */ P(
|
|
69157
69201
|
"div",
|
|
69158
69202
|
{
|
|
@@ -69209,7 +69253,7 @@ const e3e = "mention", t3e = X2e.extend({
|
|
|
69209
69253
|
]
|
|
69210
69254
|
}
|
|
69211
69255
|
);
|
|
69212
|
-
}),
|
|
69256
|
+
}), o3e = ({ compact: e }) => /* @__PURE__ */ P(
|
|
69213
69257
|
"div",
|
|
69214
69258
|
{
|
|
69215
69259
|
className: "flex w-full flex-col rounded-lg bg-gradient-to-l from-[#A1ADE51F] via-[#E519431F] to-[#E556191F] p-[1px]",
|
|
@@ -69240,13 +69284,13 @@ const e3e = "mention", t3e = X2e.extend({
|
|
|
69240
69284
|
]
|
|
69241
69285
|
}
|
|
69242
69286
|
), VL = nt(
|
|
69243
|
-
(e, t) => /* @__PURE__ */ m(
|
|
69244
|
-
),
|
|
69287
|
+
(e, t) => /* @__PURE__ */ m(r3e, { ref: t, ...e })
|
|
69288
|
+
), s3e = ({ compact: e }) => /* @__PURE__ */ m(o3e, { compact: e });
|
|
69245
69289
|
VL.displayName = "F0AiBanner";
|
|
69246
69290
|
const WL = Kc(
|
|
69247
69291
|
$t(VL),
|
|
69248
|
-
|
|
69249
|
-
),
|
|
69292
|
+
s3e
|
|
69293
|
+
), a3e = /^\s*(\[([( |x])?\])\s$/, l3e = Ut.create({
|
|
69250
69294
|
name: "taskItem",
|
|
69251
69295
|
addOptions() {
|
|
69252
69296
|
return {
|
|
@@ -69345,7 +69389,7 @@ const WL = Kc(
|
|
|
69345
69389
|
addInputRules() {
|
|
69346
69390
|
return [
|
|
69347
69391
|
Ic({
|
|
69348
|
-
find:
|
|
69392
|
+
find: a3e,
|
|
69349
69393
|
type: this.type,
|
|
69350
69394
|
getAttributes: (e) => ({
|
|
69351
69395
|
checked: e[e.length - 1] === "x"
|
|
@@ -69353,7 +69397,7 @@ const WL = Kc(
|
|
|
69353
69397
|
})
|
|
69354
69398
|
];
|
|
69355
69399
|
}
|
|
69356
|
-
}),
|
|
69400
|
+
}), c3e = l3e.extend({
|
|
69357
69401
|
addAttributes() {
|
|
69358
69402
|
return {
|
|
69359
69403
|
...this.parent?.(),
|
|
@@ -69409,12 +69453,12 @@ const WL = Kc(
|
|
|
69409
69453
|
"Shift-Tab": () => this.editor.isActive(this.name) ? this.editor.commands.liftListItem(this.name) : !1
|
|
69410
69454
|
};
|
|
69411
69455
|
}
|
|
69412
|
-
}), r_ =
|
|
69456
|
+
}), r_ = c3e.configure({
|
|
69413
69457
|
nested: !0,
|
|
69414
69458
|
HTMLAttributes: {
|
|
69415
69459
|
class: "f1-task-item"
|
|
69416
69460
|
}
|
|
69417
|
-
}),
|
|
69461
|
+
}), d3e = [
|
|
69418
69462
|
i_,
|
|
69419
69463
|
Q3,
|
|
69420
69464
|
J3,
|
|
@@ -69428,15 +69472,15 @@ const WL = Kc(
|
|
|
69428
69472
|
FL,
|
|
69429
69473
|
LL,
|
|
69430
69474
|
RL
|
|
69431
|
-
],
|
|
69475
|
+
], f3e = (e) => {
|
|
69432
69476
|
if (!e?.content)
|
|
69433
69477
|
return "";
|
|
69434
69478
|
try {
|
|
69435
|
-
return C1e(e.content,
|
|
69479
|
+
return C1e(e.content, d3e);
|
|
69436
69480
|
} catch {
|
|
69437
69481
|
return "";
|
|
69438
69482
|
}
|
|
69439
|
-
},
|
|
69483
|
+
}, u3e = (e, t) => K(() => {
|
|
69440
69484
|
if (t?.selectedTitle || t?.selectedEmoji)
|
|
69441
69485
|
return {
|
|
69442
69486
|
title: t.selectedTitle || e.title,
|
|
@@ -69446,7 +69490,7 @@ const WL = Kc(
|
|
|
69446
69490
|
(i) => i.type === t?.selectedAction
|
|
69447
69491
|
);
|
|
69448
69492
|
return n ? { title: n.label, emoji: n.emoji } : { title: e.title };
|
|
69449
|
-
}, [t, e]),
|
|
69493
|
+
}, [t, e]), h3e = (e, t) => {
|
|
69450
69494
|
const [n, i] = X(!1), r = ee(
|
|
69451
69495
|
async (o) => {
|
|
69452
69496
|
const s = e.buttons?.find(
|
|
@@ -69470,7 +69514,7 @@ const WL = Kc(
|
|
|
69470
69514
|
[e, t]
|
|
69471
69515
|
);
|
|
69472
69516
|
return { isLoading: n, handleClick: r };
|
|
69473
|
-
},
|
|
69517
|
+
}, p3e = (e, t, n) => {
|
|
69474
69518
|
ae(() => {
|
|
69475
69519
|
if (!n?.selectedAction || !e?.buttons)
|
|
69476
69520
|
return;
|
|
@@ -69488,18 +69532,18 @@ const WL = Kc(
|
|
|
69488
69532
|
});
|
|
69489
69533
|
}
|
|
69490
69534
|
}, [n, e, t]);
|
|
69491
|
-
},
|
|
69535
|
+
}, m3e = (e, t, n) => {
|
|
69492
69536
|
ae(() => {
|
|
69493
69537
|
e?.shouldExecute && e?.selectedAction && t && n && (n({ data: { ...e, shouldExecute: !1 } }), t(e.selectedAction));
|
|
69494
69538
|
}, [t, n, e]);
|
|
69495
|
-
},
|
|
69539
|
+
}, g3e = (e, t, n, i) => {
|
|
69496
69540
|
ae(() => {
|
|
69497
69541
|
if (!i?.content || !i?.isEditable || !e || !n)
|
|
69498
69542
|
return;
|
|
69499
69543
|
const r = n();
|
|
69500
69544
|
r !== void 0 && (t(), i.content && e.chain().focus().setTextSelection(r).insertContent(i.content).run());
|
|
69501
69545
|
}, [i, e, n, t]);
|
|
69502
|
-
},
|
|
69546
|
+
}, y3e = ({
|
|
69503
69547
|
config: e,
|
|
69504
69548
|
isLoading: t,
|
|
69505
69549
|
onButtonClick: n
|
|
@@ -69516,12 +69560,12 @@ const WL = Kc(
|
|
|
69516
69560
|
},
|
|
69517
69561
|
r
|
|
69518
69562
|
)) })
|
|
69519
|
-
] }),
|
|
69563
|
+
] }), v3e = ({ isEditable: e }) => e ? /* @__PURE__ */ P("div", { className: "flex flex-col gap-2", children: [
|
|
69520
69564
|
/* @__PURE__ */ m(Fe, { className: "h-4 w-1/2 rounded-md" }),
|
|
69521
69565
|
/* @__PURE__ */ m(Fe, { className: "h-4 w-full rounded-md" }),
|
|
69522
69566
|
/* @__PURE__ */ m(Fe, { className: "h-4 w-3/4 rounded-md" }),
|
|
69523
69567
|
/* @__PURE__ */ m(Fe, { className: "h-4 w-1/3 rounded-md" })
|
|
69524
|
-
] }) : /* @__PURE__ */ m(WL.Skeleton, { compact: !0 }),
|
|
69568
|
+
] }) : /* @__PURE__ */ m(WL.Skeleton, { compact: !0 }), b3e = ({
|
|
69525
69569
|
node: e,
|
|
69526
69570
|
updateAttributes: t,
|
|
69527
69571
|
deleteNode: n,
|
|
@@ -69529,15 +69573,15 @@ const WL = Kc(
|
|
|
69529
69573
|
editor: r,
|
|
69530
69574
|
getPos: o
|
|
69531
69575
|
}) => {
|
|
69532
|
-
const s = e.attrs.data, a = i.options.currentConfig || e.attrs.config, { title: l } =
|
|
69576
|
+
const s = e.attrs.data, a = i.options.currentConfig || e.attrs.config, { title: l } = u3e(a, s), { isLoading: c, handleClick: d } = h3e(
|
|
69533
69577
|
a,
|
|
69534
69578
|
t
|
|
69535
|
-
), f = !!(s?.selectedAction && !s?.content), u = c || f, h =
|
|
69536
|
-
if (
|
|
69579
|
+
), f = !!(s?.selectedAction && !s?.content), u = c || f, h = f3e(s);
|
|
69580
|
+
if (g3e(r, n, o, s), p3e(a, t, s), m3e(s, d, t), !s || !a || !a.buttons?.length)
|
|
69537
69581
|
return null;
|
|
69538
69582
|
const p = !!s?.content, y = !!(s?.selectedTitle || s?.selectedAction) && p && !s?.isEditable;
|
|
69539
69583
|
return /* @__PURE__ */ m(Sh, { contentEditable: !1, children: /* @__PURE__ */ P("div", { className: "mb-3", children: [
|
|
69540
|
-
u ? /* @__PURE__ */ m(
|
|
69584
|
+
u ? /* @__PURE__ */ m(v3e, { isEditable: s?.isEditable }) : y ? /* @__PURE__ */ m(
|
|
69541
69585
|
WL,
|
|
69542
69586
|
{
|
|
69543
69587
|
title: l,
|
|
@@ -69550,7 +69594,7 @@ const WL = Kc(
|
|
|
69550
69594
|
className: "editor-ai-block mb-3 flex w-full flex-col gap-4 rounded-lg",
|
|
69551
69595
|
onClick: (w) => w.stopPropagation(),
|
|
69552
69596
|
children: /* @__PURE__ */ m(
|
|
69553
|
-
|
|
69597
|
+
y3e,
|
|
69554
69598
|
{
|
|
69555
69599
|
config: a,
|
|
69556
69600
|
isLoading: u,
|
|
@@ -69561,7 +69605,7 @@ const WL = Kc(
|
|
|
69561
69605
|
),
|
|
69562
69606
|
/* @__PURE__ */ m(P3, { style: { display: "none" } })
|
|
69563
69607
|
] }) });
|
|
69564
|
-
},
|
|
69608
|
+
}, w3e = Ut.create({
|
|
69565
69609
|
name: "aiBlock",
|
|
69566
69610
|
group: "block",
|
|
69567
69611
|
atom: !0,
|
|
@@ -69612,7 +69656,7 @@ const WL = Kc(
|
|
|
69612
69656
|
];
|
|
69613
69657
|
},
|
|
69614
69658
|
addNodeView() {
|
|
69615
|
-
return Ch(
|
|
69659
|
+
return Ch(b3e);
|
|
69616
69660
|
},
|
|
69617
69661
|
addCommands() {
|
|
69618
69662
|
return {
|
|
@@ -69644,7 +69688,7 @@ const WL = Kc(
|
|
|
69644
69688
|
}
|
|
69645
69689
|
};
|
|
69646
69690
|
}
|
|
69647
|
-
}),
|
|
69691
|
+
}), x3e = w3e, UL = [
|
|
69648
69692
|
"paragraph",
|
|
69649
69693
|
"heading",
|
|
69650
69694
|
"blockquote",
|
|
@@ -69654,7 +69698,7 @@ const WL = Kc(
|
|
|
69654
69698
|
"listItem",
|
|
69655
69699
|
"table",
|
|
69656
69700
|
"details"
|
|
69657
|
-
],
|
|
69701
|
+
], k3e = new Set(UL), zc = (e) => e ? k3e.has(e) : !1, qL = (e) => e ? zc(e.type) && !e.attrs?.id ? !0 : e.content?.some(qL) ?? !1 : !1, GL = (e) => {
|
|
69658
69702
|
if (!e)
|
|
69659
69703
|
return !1;
|
|
69660
69704
|
if (zc(e.type.name) && !e.attrs.id)
|
|
@@ -69663,7 +69707,7 @@ const WL = Kc(
|
|
|
69663
69707
|
if (GL(e.child(t)))
|
|
69664
69708
|
return !0;
|
|
69665
69709
|
return !1;
|
|
69666
|
-
}, BN = (e) => e ? e instanceof Jr ? GL(e) : qL(e) : !1,
|
|
69710
|
+
}, BN = (e) => e ? e instanceof Jr ? GL(e) : qL(e) : !1, _3e = St.create({
|
|
69667
69711
|
name: "blockId",
|
|
69668
69712
|
addGlobalAttributes() {
|
|
69669
69713
|
return [
|
|
@@ -69733,13 +69777,13 @@ const WL = Kc(
|
|
|
69733
69777
|
})
|
|
69734
69778
|
];
|
|
69735
69779
|
}
|
|
69736
|
-
}),
|
|
69780
|
+
}), S3e = (e, t) => {
|
|
69737
69781
|
let n = null;
|
|
69738
69782
|
return e.state.doc.descendants((i, r) => i.attrs.id === t ? (n = { node: i, pos: r }, !1) : !0), n;
|
|
69739
|
-
}, Rd = new wt("enhanceHighlight"),
|
|
69783
|
+
}, Rd = new wt("enhanceHighlight"), C3e = (e) => {
|
|
69740
69784
|
const t = document.createElement("span");
|
|
69741
69785
|
return t.className = "enhance-highlight enhance-highlight-placeholder", t.textContent = e, t;
|
|
69742
|
-
},
|
|
69786
|
+
}, E3e = (e, t, n, i) => {
|
|
69743
69787
|
const r = e.content.size, o = Math.max(0, Math.min(t, r)), s = Math.max(o, Math.min(n, r));
|
|
69744
69788
|
if (o !== s && e.textBetween(o, s, " ").trim().length > 0)
|
|
69745
69789
|
return Nt.create(e, [
|
|
@@ -69750,7 +69794,7 @@ const WL = Kc(
|
|
|
69750
69794
|
if (i) {
|
|
69751
69795
|
const l = o === 0 && r > 0 ? 1 : o;
|
|
69752
69796
|
return Nt.create(e, [
|
|
69753
|
-
mn.widget(l, () =>
|
|
69797
|
+
mn.widget(l, () => C3e(i), {
|
|
69754
69798
|
side: 0
|
|
69755
69799
|
})
|
|
69756
69800
|
]);
|
|
@@ -69781,7 +69825,7 @@ const WL = Kc(
|
|
|
69781
69825
|
// recreating the whole set on every keystroke.
|
|
69782
69826
|
apply(e, t) {
|
|
69783
69827
|
const n = e.getMeta(Rd);
|
|
69784
|
-
return n ? "clear" in n ? Nt.empty :
|
|
69828
|
+
return n ? "clear" in n ? Nt.empty : E3e(
|
|
69785
69829
|
e.doc,
|
|
69786
69830
|
n.from,
|
|
69787
69831
|
n.to,
|
|
@@ -69797,9 +69841,9 @@ const WL = Kc(
|
|
|
69797
69841
|
})
|
|
69798
69842
|
];
|
|
69799
69843
|
}
|
|
69800
|
-
}),
|
|
69844
|
+
}), N3e = [12, 14, 16, 18, 20, 24, 29], Ax = "f0-fs-", A3e = (e) => {
|
|
69801
69845
|
const t = Number.parseInt(e, 10);
|
|
69802
|
-
return
|
|
69846
|
+
return N3e.includes(t) ? `${Ax}${t}` : null;
|
|
69803
69847
|
}, YL = St.create({
|
|
69804
69848
|
name: "fontSize",
|
|
69805
69849
|
addOptions() {
|
|
@@ -69824,7 +69868,7 @@ const WL = Kc(
|
|
|
69824
69868
|
const t = e.fontSize;
|
|
69825
69869
|
if (typeof t != "string" || t === "")
|
|
69826
69870
|
return {};
|
|
69827
|
-
const n =
|
|
69871
|
+
const n = A3e(t), i = { style: `font-size: ${t}` };
|
|
69828
69872
|
return n ? { ...i, class: n } : i;
|
|
69829
69873
|
}
|
|
69830
69874
|
}
|
|
@@ -69839,7 +69883,7 @@ const WL = Kc(
|
|
|
69839
69883
|
};
|
|
69840
69884
|
}
|
|
69841
69885
|
});
|
|
69842
|
-
var
|
|
69886
|
+
var T3e = ({ key: e, editor: t, onPaste: n, onDrop: i, allowedMimeTypes: r }) => new Ct({
|
|
69843
69887
|
key: e || new wt("fileHandler"),
|
|
69844
69888
|
props: {
|
|
69845
69889
|
handleDrop(o, s) {
|
|
@@ -69862,7 +69906,7 @@ var A3e = ({ key: e, editor: t, onPaste: n, onDrop: i, allowedMimeTypes: r }) =>
|
|
|
69862
69906
|
return r && (l = l.filter((d) => r.includes(d.type))), !(l.length === 0 || (s.preventDefault(), s.stopPropagation(), n(t, l, c), c.length > 0));
|
|
69863
69907
|
}
|
|
69864
69908
|
}
|
|
69865
|
-
}),
|
|
69909
|
+
}), O3e = St.create({
|
|
69866
69910
|
name: "fileHandler",
|
|
69867
69911
|
addOptions() {
|
|
69868
69912
|
return {
|
|
@@ -69873,7 +69917,7 @@ var A3e = ({ key: e, editor: t, onPaste: n, onDrop: i, allowedMimeTypes: r }) =>
|
|
|
69873
69917
|
},
|
|
69874
69918
|
addProseMirrorPlugins() {
|
|
69875
69919
|
return [
|
|
69876
|
-
|
|
69920
|
+
T3e({
|
|
69877
69921
|
key: new wt(this.name),
|
|
69878
69922
|
editor: this.editor,
|
|
69879
69923
|
allowedMimeTypes: this.options.allowedMimeTypes,
|
|
@@ -69883,7 +69927,7 @@ var A3e = ({ key: e, editor: t, onPaste: n, onDrop: i, allowedMimeTypes: r }) =>
|
|
|
69883
69927
|
];
|
|
69884
69928
|
}
|
|
69885
69929
|
});
|
|
69886
|
-
const
|
|
69930
|
+
const D3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, I3e = Ut.create({
|
|
69887
69931
|
name: "image",
|
|
69888
69932
|
addOptions() {
|
|
69889
69933
|
return {
|
|
@@ -69933,7 +69977,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
69933
69977
|
addInputRules() {
|
|
69934
69978
|
return [
|
|
69935
69979
|
l7({
|
|
69936
|
-
find:
|
|
69980
|
+
find: D3e,
|
|
69937
69981
|
type: this.type,
|
|
69938
69982
|
getAttributes: (e) => {
|
|
69939
69983
|
const [, , t, n, i] = e;
|
|
@@ -69942,12 +69986,12 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
69942
69986
|
})
|
|
69943
69987
|
];
|
|
69944
69988
|
}
|
|
69945
|
-
}),
|
|
69989
|
+
}), M3e = 50 * 1024 * 1024, o_ = [
|
|
69946
69990
|
"image/jpeg",
|
|
69947
69991
|
"image/png",
|
|
69948
69992
|
"image/gif",
|
|
69949
69993
|
"image/webp"
|
|
69950
|
-
],
|
|
69994
|
+
], P3e = 10, Aa = 100, R3e = ({
|
|
69951
69995
|
node: e,
|
|
69952
69996
|
deleteNode: t,
|
|
69953
69997
|
selected: n,
|
|
@@ -69960,7 +70004,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
69960
70004
|
const y = g.clientX, v = c ?? Aa, w = i.view.dom.clientWidth, x = (_) => {
|
|
69961
70005
|
const C = (_.clientX - y) / w * 100, E = Math.min(
|
|
69962
70006
|
Aa,
|
|
69963
|
-
Math.max(
|
|
70007
|
+
Math.max(P3e, v + C)
|
|
69964
70008
|
);
|
|
69965
70009
|
r({ width: Math.round(E) });
|
|
69966
70010
|
}, b = () => {
|
|
@@ -70020,7 +70064,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70020
70064
|
]
|
|
70021
70065
|
}
|
|
70022
70066
|
) });
|
|
70023
|
-
},
|
|
70067
|
+
}, L3e = I3e.extend({
|
|
70024
70068
|
addAttributes() {
|
|
70025
70069
|
return {
|
|
70026
70070
|
...this.parent?.(),
|
|
@@ -70046,7 +70090,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70046
70090
|
};
|
|
70047
70091
|
},
|
|
70048
70092
|
addNodeView() {
|
|
70049
|
-
return Ch(
|
|
70093
|
+
return Ch(R3e);
|
|
70050
70094
|
},
|
|
70051
70095
|
renderHTML({ HTMLAttributes: e }) {
|
|
70052
70096
|
return ["img", ut(this.options.HTMLAttributes, e)];
|
|
@@ -70058,7 +70102,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70058
70102
|
let n = null;
|
|
70059
70103
|
return e.state.doc.descendants((i, r) => i.type.name === "image" && i.attrs["data-upload-id"] === t ? (n = r, !1) : !0), n;
|
|
70060
70104
|
}, Tx = async (e, t, n, i) => {
|
|
70061
|
-
const r = n.maxFileSize ??
|
|
70105
|
+
const r = n.maxFileSize ?? M3e, { onError: o } = n;
|
|
70062
70106
|
if (!o_.includes(t.type)) {
|
|
70063
70107
|
o?.("invalid-type");
|
|
70064
70108
|
return;
|
|
@@ -70093,7 +70137,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70093
70137
|
} finally {
|
|
70094
70138
|
URL.revokeObjectURL(s);
|
|
70095
70139
|
}
|
|
70096
|
-
},
|
|
70140
|
+
}, F3e = (e) => O3e.configure({
|
|
70097
70141
|
allowedMimeTypes: o_,
|
|
70098
70142
|
onDrop: (t, n, i) => {
|
|
70099
70143
|
n.forEach((r) => {
|
|
@@ -70107,7 +70151,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70107
70151
|
}
|
|
70108
70152
|
}), XL = (e, t, n) => {
|
|
70109
70153
|
Tx(e, t, n);
|
|
70110
|
-
}, jN = 8, HN = 24, X0 = "f0-indent-",
|
|
70154
|
+
}, jN = 8, HN = 24, X0 = "f0-indent-", $3e = /* @__PURE__ */ new Set(["listItem", "taskItem"]), JL = St.create({
|
|
70111
70155
|
name: "indent",
|
|
70112
70156
|
addOptions() {
|
|
70113
70157
|
return {
|
|
@@ -70177,7 +70221,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70177
70221
|
const e = () => {
|
|
70178
70222
|
const { $from: t } = this.editor.state.selection;
|
|
70179
70223
|
for (let n = t.depth; n > 0; n -= 1)
|
|
70180
|
-
if (
|
|
70224
|
+
if ($3e.has(t.node(n).type.name))
|
|
70181
70225
|
return !1;
|
|
70182
70226
|
return this.editor.can().outdent();
|
|
70183
70227
|
};
|
|
@@ -70189,7 +70233,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70189
70233
|
}
|
|
70190
70234
|
};
|
|
70191
70235
|
}
|
|
70192
|
-
}),
|
|
70236
|
+
}), sEe = [
|
|
70193
70237
|
"superNegative",
|
|
70194
70238
|
"negative",
|
|
70195
70239
|
"neutral",
|
|
@@ -70207,7 +70251,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70207
70251
|
neutral: "mood-neutral",
|
|
70208
70252
|
positive: "mood-positive",
|
|
70209
70253
|
superPositive: "mood-super-positive"
|
|
70210
|
-
},
|
|
70254
|
+
}, B3e = ({
|
|
70211
70255
|
node: e,
|
|
70212
70256
|
deleteNode: t,
|
|
70213
70257
|
updateAttributes: n
|
|
@@ -70293,7 +70337,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70293
70337
|
),
|
|
70294
70338
|
/* @__PURE__ */ m(P3, { style: { display: "none" } })
|
|
70295
70339
|
] });
|
|
70296
|
-
},
|
|
70340
|
+
}, z3e = Ut.create({
|
|
70297
70341
|
name: "moodTracker",
|
|
70298
70342
|
group: "block",
|
|
70299
70343
|
atom: !0,
|
|
@@ -70344,7 +70388,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70344
70388
|
] : ["div"];
|
|
70345
70389
|
},
|
|
70346
70390
|
addNodeView() {
|
|
70347
|
-
return Ch(
|
|
70391
|
+
return Ch(B3e);
|
|
70348
70392
|
},
|
|
70349
70393
|
addCommands() {
|
|
70350
70394
|
return {
|
|
@@ -70354,7 +70398,7 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70354
70398
|
})
|
|
70355
70399
|
};
|
|
70356
70400
|
}
|
|
70357
|
-
}),
|
|
70401
|
+
}), j3e = z3e, H3e = /\xA0| |�*160;|&#[xX]0*[aA]0;/g, UN = (e) => e.replace(H3e, " "), ZL = St.create({
|
|
70358
70402
|
name: "pasteSanitizer",
|
|
70359
70403
|
addProseMirrorPlugins() {
|
|
70360
70404
|
return [
|
|
@@ -70367,12 +70411,12 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70367
70411
|
})
|
|
70368
70412
|
];
|
|
70369
70413
|
}
|
|
70370
|
-
}),
|
|
70414
|
+
}), V3e = new wt("persistSelection"), qN = (e, t, n) => t !== n ? Nt.create(e, [
|
|
70371
70415
|
mn.inline(t, n, {
|
|
70372
70416
|
class: "preserved-selection"
|
|
70373
70417
|
})
|
|
70374
|
-
]) : Nt.empty,
|
|
70375
|
-
key:
|
|
70418
|
+
]) : Nt.empty, W3e = new Ct({
|
|
70419
|
+
key: V3e,
|
|
70376
70420
|
state: {
|
|
70377
70421
|
init(e, { doc: t, selection: n }) {
|
|
70378
70422
|
return qN(t, n.from, n.to);
|
|
@@ -70394,25 +70438,25 @@ const O3e = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, D3e = Ut
|
|
|
70394
70438
|
}), QL = St.create({
|
|
70395
70439
|
name: "persistSelection",
|
|
70396
70440
|
addProseMirrorPlugins() {
|
|
70397
|
-
return [
|
|
70441
|
+
return [W3e];
|
|
70398
70442
|
}
|
|
70399
|
-
}),
|
|
70443
|
+
}), U3e = /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]+)/, q3e = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/|player\.vimeo\.com\/video\/)(\d+)/, G3e = /^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]+)(?:\S*)$/gm, K3e = /^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/|player\.vimeo\.com\/video\/)(\d+)(?:\S*)$/gm;
|
|
70400
70444
|
function om(e) {
|
|
70401
|
-
const t = e.match(
|
|
70445
|
+
const t = e.match(U3e);
|
|
70402
70446
|
if (t)
|
|
70403
70447
|
return {
|
|
70404
70448
|
provider: "youtube",
|
|
70405
70449
|
videoId: t[1],
|
|
70406
70450
|
embedUrl: `https://www.youtube-nocookie.com/embed/${t[1]}`
|
|
70407
70451
|
};
|
|
70408
|
-
const n = e.match(
|
|
70452
|
+
const n = e.match(q3e);
|
|
70409
70453
|
return n ? {
|
|
70410
70454
|
provider: "vimeo",
|
|
70411
70455
|
videoId: n[1],
|
|
70412
70456
|
embedUrl: `https://player.vimeo.com/video/${n[1]}`
|
|
70413
70457
|
} : null;
|
|
70414
70458
|
}
|
|
70415
|
-
const
|
|
70459
|
+
const Y3e = ({
|
|
70416
70460
|
node: e,
|
|
70417
70461
|
deleteNode: t,
|
|
70418
70462
|
selected: n,
|
|
@@ -70451,7 +70495,7 @@ const K3e = ({
|
|
|
70451
70495
|
]
|
|
70452
70496
|
}
|
|
70453
70497
|
) });
|
|
70454
|
-
},
|
|
70498
|
+
}, X3e = Ut.create({
|
|
70455
70499
|
name: "videoEmbed",
|
|
70456
70500
|
group: "block",
|
|
70457
70501
|
atom: !0,
|
|
@@ -70487,7 +70531,7 @@ const K3e = ({
|
|
|
70487
70531
|
];
|
|
70488
70532
|
},
|
|
70489
70533
|
addNodeView() {
|
|
70490
|
-
return Ch(
|
|
70534
|
+
return Ch(Y3e);
|
|
70491
70535
|
},
|
|
70492
70536
|
addCommands() {
|
|
70493
70537
|
return {
|
|
@@ -70507,7 +70551,7 @@ const K3e = ({
|
|
|
70507
70551
|
addPasteRules() {
|
|
70508
70552
|
return [
|
|
70509
70553
|
dE({
|
|
70510
|
-
find:
|
|
70554
|
+
find: G3e,
|
|
70511
70555
|
type: this.type,
|
|
70512
70556
|
getAttributes: (e) => {
|
|
70513
70557
|
const t = om(e[0]);
|
|
@@ -70519,7 +70563,7 @@ const K3e = ({
|
|
|
70519
70563
|
}
|
|
70520
70564
|
}),
|
|
70521
70565
|
dE({
|
|
70522
|
-
find:
|
|
70566
|
+
find: K3e,
|
|
70523
70567
|
type: this.type,
|
|
70524
70568
|
getAttributes: (e) => {
|
|
70525
70569
|
const t = om(e[0]);
|
|
@@ -70532,7 +70576,7 @@ const K3e = ({
|
|
|
70532
70576
|
})
|
|
70533
70577
|
];
|
|
70534
70578
|
}
|
|
70535
|
-
}),
|
|
70579
|
+
}), J3e = ({
|
|
70536
70580
|
aiBlockConfig: e,
|
|
70537
70581
|
translations: t,
|
|
70538
70582
|
imageUploadConfig: n
|
|
@@ -70757,12 +70801,12 @@ const K3e = ({
|
|
|
70757
70801
|
}
|
|
70758
70802
|
);
|
|
70759
70803
|
eF.displayName = "CommandList";
|
|
70760
|
-
const
|
|
70804
|
+
const Z3e = ({
|
|
70761
70805
|
aiBlockConfig: e,
|
|
70762
70806
|
translations: t,
|
|
70763
70807
|
imageUploadConfig: n
|
|
70764
70808
|
}) => {
|
|
70765
|
-
const i =
|
|
70809
|
+
const i = J3e({
|
|
70766
70810
|
aiBlockConfig: e,
|
|
70767
70811
|
translations: t,
|
|
70768
70812
|
imageUploadConfig: n
|
|
@@ -70943,7 +70987,7 @@ const J3e = ({
|
|
|
70943
70987
|
];
|
|
70944
70988
|
}
|
|
70945
70989
|
});
|
|
70946
|
-
},
|
|
70990
|
+
}, Q3e = ({
|
|
70947
70991
|
node: e,
|
|
70948
70992
|
deleteNode: t,
|
|
70949
70993
|
updateAttributes: n
|
|
@@ -71022,7 +71066,7 @@ const J3e = ({
|
|
|
71022
71066
|
),
|
|
71023
71067
|
/* @__PURE__ */ m(P3, { style: { display: "none" } })
|
|
71024
71068
|
] });
|
|
71025
|
-
},
|
|
71069
|
+
}, e_e = Ut.create({
|
|
71026
71070
|
name: "transcript",
|
|
71027
71071
|
group: "block",
|
|
71028
71072
|
atom: !0,
|
|
@@ -71073,7 +71117,7 @@ const J3e = ({
|
|
|
71073
71117
|
] : ["div"];
|
|
71074
71118
|
},
|
|
71075
71119
|
addNodeView() {
|
|
71076
|
-
return Ch(
|
|
71120
|
+
return Ch(Q3e);
|
|
71077
71121
|
},
|
|
71078
71122
|
addCommands() {
|
|
71079
71123
|
return {
|
|
@@ -71083,7 +71127,7 @@ const J3e = ({
|
|
|
71083
71127
|
})
|
|
71084
71128
|
};
|
|
71085
71129
|
}
|
|
71086
|
-
}),
|
|
71130
|
+
}), t_e = e_e, Wi = {
|
|
71087
71131
|
PDF: "pdf",
|
|
71088
71132
|
IMAGE: "image",
|
|
71089
71133
|
DOC: "doc",
|
|
@@ -71096,17 +71140,17 @@ const J3e = ({
|
|
|
71096
71140
|
CSV: "csv",
|
|
71097
71141
|
HTML: "html",
|
|
71098
71142
|
MARKDOWN: "markdown"
|
|
71099
|
-
}, tF = "rich-text-editor-upload-button",
|
|
71143
|
+
}, tF = "rich-text-editor-upload-button", n_e = (e, t, n, i) => {
|
|
71100
71144
|
if (n) {
|
|
71101
71145
|
const r = n.multipleFiles ? [...t, ...e] : e;
|
|
71102
71146
|
i(r), n.onFiles(r);
|
|
71103
71147
|
}
|
|
71104
|
-
},
|
|
71148
|
+
}, i_e = (e, t, n, i) => {
|
|
71105
71149
|
if (n) {
|
|
71106
71150
|
const r = [...t];
|
|
71107
71151
|
r.splice(e, 1), i(r), n.onFiles(r);
|
|
71108
71152
|
}
|
|
71109
|
-
},
|
|
71153
|
+
}, r_e = (e) => e?.acceptedFileType && e.acceptedFileType.length > 0 ? e.acceptedFileType.map((t) => {
|
|
71110
71154
|
switch (t) {
|
|
71111
71155
|
case Wi.IMAGE:
|
|
71112
71156
|
return "image/*";
|
|
@@ -71135,7 +71179,7 @@ const J3e = ({
|
|
|
71135
71179
|
default:
|
|
71136
71180
|
return "";
|
|
71137
71181
|
}
|
|
71138
|
-
}).filter(Boolean).join(", ") : "*",
|
|
71182
|
+
}).filter(Boolean).join(", ") : "*", o_e = ({
|
|
71139
71183
|
filesConfig: e,
|
|
71140
71184
|
files: t,
|
|
71141
71185
|
setFiles: n,
|
|
@@ -71150,7 +71194,7 @@ const J3e = ({
|
|
|
71150
71194
|
let l = Array.from(a);
|
|
71151
71195
|
e?.maxFileSize && (l = l.filter(
|
|
71152
71196
|
(c) => c.size <= e.maxFileSize
|
|
71153
|
-
)),
|
|
71197
|
+
)), n_e(l, t, e, n);
|
|
71154
71198
|
}
|
|
71155
71199
|
r.current && (r.current.value = "");
|
|
71156
71200
|
};
|
|
@@ -71164,7 +71208,7 @@ const J3e = ({
|
|
|
71164
71208
|
onChange: o,
|
|
71165
71209
|
ref: r,
|
|
71166
71210
|
className: "hidden",
|
|
71167
|
-
accept:
|
|
71211
|
+
accept: r_e(e),
|
|
71168
71212
|
"aria-label": "Upload file"
|
|
71169
71213
|
}
|
|
71170
71214
|
),
|
|
@@ -71182,7 +71226,7 @@ const J3e = ({
|
|
|
71182
71226
|
actions: [
|
|
71183
71227
|
{
|
|
71184
71228
|
label: "Delete",
|
|
71185
|
-
onClick: () =>
|
|
71229
|
+
onClick: () => i_e(a, t, e, n)
|
|
71186
71230
|
}
|
|
71187
71231
|
],
|
|
71188
71232
|
disabled: i
|
|
@@ -71193,7 +71237,7 @@ const J3e = ({
|
|
|
71193
71237
|
"filelist-accordion"
|
|
71194
71238
|
) : null })
|
|
71195
71239
|
] });
|
|
71196
|
-
}, Ba = (e) => e ? e.toLowerCase().replace(" ", "-") : "",
|
|
71240
|
+
}, Ba = (e) => e ? e.toLowerCase().replace(" ", "-") : "", s_e = (e) => e ? Array.isArray(e) ? e : [e] : [], a_e = (e, t) => {
|
|
71197
71241
|
const n = e ? [
|
|
71198
71242
|
{
|
|
71199
71243
|
label: e.action.label,
|
|
@@ -71210,7 +71254,7 @@ const J3e = ({
|
|
|
71210
71254
|
icon: "icon" in o ? o.icon : void 0
|
|
71211
71255
|
})) || [];
|
|
71212
71256
|
return [...n, ...i, ...r];
|
|
71213
|
-
},
|
|
71257
|
+
}, l_e = (e, t, n) => {
|
|
71214
71258
|
if (e === Ba(t?.action.label)) {
|
|
71215
71259
|
t?.action.onClick();
|
|
71216
71260
|
return;
|
|
@@ -71223,7 +71267,7 @@ const J3e = ({
|
|
|
71223
71267
|
return;
|
|
71224
71268
|
}
|
|
71225
71269
|
t?.subActions?.find((r) => Ba(r.label) === e)?.onClick();
|
|
71226
|
-
},
|
|
71270
|
+
}, c_e = ({
|
|
71227
71271
|
secondaryActions: e,
|
|
71228
71272
|
useLittleMode: t,
|
|
71229
71273
|
primaryAction: n,
|
|
@@ -71282,7 +71326,7 @@ const J3e = ({
|
|
|
71282
71326
|
disabled: t || e.disabled,
|
|
71283
71327
|
icon: e.icon
|
|
71284
71328
|
}
|
|
71285
|
-
),
|
|
71329
|
+
), d_e = ({
|
|
71286
71330
|
primaryAction: e,
|
|
71287
71331
|
isFullscreen: t,
|
|
71288
71332
|
listOfActions: n,
|
|
@@ -71333,25 +71377,25 @@ const J3e = ({
|
|
|
71333
71377
|
s.preventDefault(), e.action.onClick();
|
|
71334
71378
|
}
|
|
71335
71379
|
}
|
|
71336
|
-
),
|
|
71380
|
+
), f_e = ({
|
|
71337
71381
|
secondaryAction: e,
|
|
71338
71382
|
primaryAction: t,
|
|
71339
71383
|
useLittleMode: n,
|
|
71340
71384
|
disableButtons: i,
|
|
71341
71385
|
isFullscreen: r
|
|
71342
71386
|
}) => {
|
|
71343
|
-
const o =
|
|
71387
|
+
const o = s_e(e);
|
|
71344
71388
|
if (o.length === 0 && !t)
|
|
71345
71389
|
return null;
|
|
71346
71390
|
const s = o.filter(
|
|
71347
71391
|
(f) => f.type !== "switch"
|
|
71348
|
-
), a = s.length > 0 && n && t && !r, l =
|
|
71392
|
+
), a = s.length > 0 && n && t && !r, l = a_e(
|
|
71349
71393
|
t,
|
|
71350
71394
|
a ? s : void 0
|
|
71351
|
-
), c = (f) =>
|
|
71395
|
+
), c = (f) => l_e(f, t, o), d = o.length > 0 && t && (!n || o.some((f) => f.type === "switch") || r);
|
|
71352
71396
|
return /* @__PURE__ */ P("div", { className: "scrollbar-macos flex items-center gap-2 overflow-x-auto overflow-y-hidden", children: [
|
|
71353
71397
|
/* @__PURE__ */ m(
|
|
71354
|
-
|
|
71398
|
+
c_e,
|
|
71355
71399
|
{
|
|
71356
71400
|
secondaryActions: o,
|
|
71357
71401
|
useLittleMode: n,
|
|
@@ -71361,7 +71405,7 @@ const J3e = ({
|
|
|
71361
71405
|
}
|
|
71362
71406
|
),
|
|
71363
71407
|
d ? /* @__PURE__ */ m(el, {}) : null,
|
|
71364
|
-
t ?
|
|
71408
|
+
t ? d_e({
|
|
71365
71409
|
primaryAction: t,
|
|
71366
71410
|
isFullscreen: r,
|
|
71367
71411
|
listOfActions: l,
|
|
@@ -71370,7 +71414,7 @@ const J3e = ({
|
|
|
71370
71414
|
includeSecondaryInDropdown: a ?? !1
|
|
71371
71415
|
}) : null
|
|
71372
71416
|
] });
|
|
71373
|
-
},
|
|
71417
|
+
}, u_e = ({
|
|
71374
71418
|
editor: e,
|
|
71375
71419
|
maxCharacters: t,
|
|
71376
71420
|
secondaryAction: n,
|
|
@@ -71603,7 +71647,7 @@ const J3e = ({
|
|
|
71603
71647
|
}
|
|
71604
71648
|
),
|
|
71605
71649
|
/* @__PURE__ */ m("div", { className: G("contents", T && "invisible"), children: /* @__PURE__ */ m(
|
|
71606
|
-
|
|
71650
|
+
f_e,
|
|
71607
71651
|
{
|
|
71608
71652
|
primaryAction: i,
|
|
71609
71653
|
secondaryAction: n,
|
|
@@ -71615,7 +71659,7 @@ const J3e = ({
|
|
|
71615
71659
|
]
|
|
71616
71660
|
}
|
|
71617
71661
|
);
|
|
71618
|
-
},
|
|
71662
|
+
}, h_e = ({
|
|
71619
71663
|
fullScreenMode: e,
|
|
71620
71664
|
isFullscreen: t,
|
|
71621
71665
|
handleToggleFullscreen: n,
|
|
@@ -71638,7 +71682,7 @@ const J3e = ({
|
|
|
71638
71682
|
}
|
|
71639
71683
|
) }) : null,
|
|
71640
71684
|
t ? /* @__PURE__ */ m("div", { className: "flex w-full items-start justify-center px-10 pt-24", children: /* @__PURE__ */ m("h1", { className: "font-bold w-full max-w-[824px] text-3xl", children: r }) }) : null
|
|
71641
|
-
] }),
|
|
71685
|
+
] }), p_e = ({
|
|
71642
71686
|
mentionsConfig: e,
|
|
71643
71687
|
mentionSuggestions: t,
|
|
71644
71688
|
setMentionSuggestions: n,
|
|
@@ -71661,13 +71705,13 @@ const J3e = ({
|
|
|
71661
71705
|
...o ? [] : [t_, r_, X3],
|
|
71662
71706
|
$L(i),
|
|
71663
71707
|
U2e(r),
|
|
71664
|
-
...
|
|
71708
|
+
...i3e(
|
|
71665
71709
|
t,
|
|
71666
71710
|
n,
|
|
71667
71711
|
e
|
|
71668
71712
|
),
|
|
71669
71713
|
BL(i)
|
|
71670
|
-
],
|
|
71714
|
+
], m_e = (e, t = 240) => e.current ? e.current.clientHeight >= t : !1, KN = (e) => {
|
|
71671
71715
|
if (!e.current)
|
|
71672
71716
|
return !0;
|
|
71673
71717
|
const t = e.current;
|
|
@@ -71683,14 +71727,14 @@ const J3e = ({
|
|
|
71683
71727
|
"3xl": { threshold: 384, className: "h-96" },
|
|
71684
71728
|
full: { threshold: 1 / 0, className: "h-full" },
|
|
71685
71729
|
auto: { threshold: 240, className: "h-auto max-h-60" }
|
|
71686
|
-
},
|
|
71730
|
+
}, g_e = (e) => nF[e]?.threshold ?? 240, y_e = (e) => nF[e]?.className, v_e = ({
|
|
71687
71731
|
containerRef: e,
|
|
71688
71732
|
onHeightChange: t,
|
|
71689
71733
|
onScrollChange: n,
|
|
71690
71734
|
heightThreshold: i = 240
|
|
71691
71735
|
}) => {
|
|
71692
71736
|
const r = () => {
|
|
71693
|
-
t(
|
|
71737
|
+
t(m_e(e, i)), n(KN(e));
|
|
71694
71738
|
};
|
|
71695
71739
|
r();
|
|
71696
71740
|
const o = e.current;
|
|
@@ -71705,7 +71749,7 @@ const J3e = ({
|
|
|
71705
71749
|
return a.observe(o), () => {
|
|
71706
71750
|
o.removeEventListener("scroll", s), a.disconnect();
|
|
71707
71751
|
};
|
|
71708
|
-
},
|
|
71752
|
+
}, b_e = ({ editor: e, onChange: t }) => {
|
|
71709
71753
|
if (e.isEmpty) {
|
|
71710
71754
|
t({ value: null });
|
|
71711
71755
|
return;
|
|
@@ -71716,7 +71760,7 @@ const J3e = ({
|
|
|
71716
71760
|
}), t(
|
|
71717
71761
|
i.length > 0 ? { value: n, mentionIds: i } : { value: n }
|
|
71718
71762
|
);
|
|
71719
|
-
},
|
|
71763
|
+
}, w_e = 4e3, iF = ({ children: e }) => /* @__PURE__ */ m(
|
|
71720
71764
|
Xe.div,
|
|
71721
71765
|
{
|
|
71722
71766
|
initial: { opacity: 0, y: 20 },
|
|
@@ -71727,7 +71771,7 @@ const J3e = ({
|
|
|
71727
71771
|
style: { pointerEvents: "none" },
|
|
71728
71772
|
children: e
|
|
71729
71773
|
}
|
|
71730
|
-
),
|
|
71774
|
+
), x_e = ({
|
|
71731
71775
|
visible: e,
|
|
71732
71776
|
editor: t,
|
|
71733
71777
|
enhance: n,
|
|
@@ -71784,7 +71828,7 @@ const J3e = ({
|
|
|
71784
71828
|
] })
|
|
71785
71829
|
}
|
|
71786
71830
|
) }) : null });
|
|
71787
|
-
},
|
|
71831
|
+
}, k_e = ({
|
|
71788
71832
|
visible: e,
|
|
71789
71833
|
enhance: t
|
|
71790
71834
|
}) => /* @__PURE__ */ m(Yt, { children: e ? /* @__PURE__ */ m(iF, { children: /* @__PURE__ */ m(
|
|
@@ -71807,7 +71851,7 @@ const J3e = ({
|
|
|
71807
71851
|
}
|
|
71808
71852
|
)
|
|
71809
71853
|
}
|
|
71810
|
-
) }) : null }),
|
|
71854
|
+
) }) : null }), __e = nt(function({
|
|
71811
71855
|
mentionsConfig: t,
|
|
71812
71856
|
enhanceConfig: n,
|
|
71813
71857
|
filesConfig: i,
|
|
@@ -71833,8 +71877,8 @@ const J3e = ({
|
|
|
71833
71877
|
ae(() => (N ? (document.body.style.overflow = "hidden", R(!0)) : (document.body.style.overflow = "", R(!1)), () => {
|
|
71834
71878
|
document.body.style.overflow = "";
|
|
71835
71879
|
}), [N]), ae(() => {
|
|
71836
|
-
const se = N ? window.innerHeight :
|
|
71837
|
-
return
|
|
71880
|
+
const se = N ? window.innerHeight : g_e(f);
|
|
71881
|
+
return v_e({
|
|
71838
71882
|
containerRef: E,
|
|
71839
71883
|
onHeightChange: T,
|
|
71840
71884
|
onScrollChange: D,
|
|
@@ -71855,11 +71899,11 @@ const J3e = ({
|
|
|
71855
71899
|
});
|
|
71856
71900
|
}, j = ee(
|
|
71857
71901
|
({ editor: se }) => {
|
|
71858
|
-
|
|
71902
|
+
b_e({ editor: se, onChange: l });
|
|
71859
71903
|
},
|
|
71860
71904
|
[l]
|
|
71861
71905
|
), Y = K(
|
|
71862
|
-
() =>
|
|
71906
|
+
() => p_e({
|
|
71863
71907
|
mentionsConfig: t,
|
|
71864
71908
|
mentionSuggestions: W,
|
|
71865
71909
|
setMentionSuggestions: H,
|
|
@@ -71904,7 +71948,7 @@ const J3e = ({
|
|
|
71904
71948
|
), ye = ee((se) => {
|
|
71905
71949
|
ce.current && clearTimeout(ce.current), Q(se), ce.current = setTimeout(() => {
|
|
71906
71950
|
Q(null), ce.current = null;
|
|
71907
|
-
},
|
|
71951
|
+
}, w_e);
|
|
71908
71952
|
}, []), be = ee(() => {
|
|
71909
71953
|
ce.current && (clearTimeout(ce.current), ce.current = null), Q(null);
|
|
71910
71954
|
}, []);
|
|
@@ -71974,7 +72018,7 @@ const J3e = ({
|
|
|
71974
72018
|
children: [
|
|
71975
72019
|
N ? /* @__PURE__ */ m("div", { className: "pointer-events-none fixed inset-0 z-40" }) : null,
|
|
71976
72020
|
/* @__PURE__ */ m(
|
|
71977
|
-
|
|
72021
|
+
h_e,
|
|
71978
72022
|
{
|
|
71979
72023
|
fullScreenMode: h,
|
|
71980
72024
|
isFullscreen: N,
|
|
@@ -71998,7 +72042,7 @@ const J3e = ({
|
|
|
71998
72042
|
ref: E,
|
|
71999
72043
|
className: G(
|
|
72000
72044
|
"scrollbar-macos relative flex w-full items-start justify-center overflow-y-auto py-3",
|
|
72001
|
-
N ? "h-full px-10 pb-24" : G(
|
|
72045
|
+
N ? "h-full px-10 pb-24" : G(y_e(f), "pl-3 pr-10")
|
|
72002
72046
|
),
|
|
72003
72047
|
children: /* @__PURE__ */ m(
|
|
72004
72048
|
"div",
|
|
@@ -72013,7 +72057,7 @@ const J3e = ({
|
|
|
72013
72057
|
}
|
|
72014
72058
|
),
|
|
72015
72059
|
/* @__PURE__ */ m(
|
|
72016
|
-
|
|
72060
|
+
x_e,
|
|
72017
72061
|
{
|
|
72018
72062
|
visible: N && I && !J.disableButtons,
|
|
72019
72063
|
editor: V,
|
|
@@ -72028,7 +72072,7 @@ const J3e = ({
|
|
|
72028
72072
|
}
|
|
72029
72073
|
),
|
|
72030
72074
|
/* @__PURE__ */ m(
|
|
72031
|
-
|
|
72075
|
+
k_e,
|
|
72032
72076
|
{
|
|
72033
72077
|
visible: N && I && J.isAcceptChangesOpen,
|
|
72034
72078
|
enhance: J
|
|
@@ -72085,7 +72129,7 @@ const J3e = ({
|
|
|
72085
72129
|
"dictation-error"
|
|
72086
72130
|
) : null }),
|
|
72087
72131
|
/* @__PURE__ */ m(
|
|
72088
|
-
|
|
72132
|
+
o_e,
|
|
72089
72133
|
{
|
|
72090
72134
|
files: $,
|
|
72091
72135
|
disabled: J.disableButtons,
|
|
@@ -72095,7 +72139,7 @@ const J3e = ({
|
|
|
72095
72139
|
}
|
|
72096
72140
|
),
|
|
72097
72141
|
/* @__PURE__ */ m(
|
|
72098
|
-
|
|
72142
|
+
u_e,
|
|
72099
72143
|
{
|
|
72100
72144
|
editor: V,
|
|
72101
72145
|
maxCharacters: s,
|
|
@@ -72137,7 +72181,7 @@ const J3e = ({
|
|
|
72137
72181
|
}
|
|
72138
72182
|
) });
|
|
72139
72183
|
return N ? Nk.createPortal(de, document.body) : de;
|
|
72140
|
-
}),
|
|
72184
|
+
}), S_e = ({
|
|
72141
72185
|
rows: e = 2
|
|
72142
72186
|
}) => {
|
|
72143
72187
|
const t = ["75%", "100%", "60%", "85%", "70%"], n = Array.from(
|
|
@@ -72160,19 +72204,19 @@ const J3e = ({
|
|
|
72160
72204
|
] });
|
|
72161
72205
|
}, rF = di(
|
|
72162
72206
|
"F0RichTextEditor",
|
|
72163
|
-
Kc(
|
|
72164
|
-
),
|
|
72165
|
-
function
|
|
72207
|
+
Kc(__e, S_e)
|
|
72208
|
+
), aEe = rF;
|
|
72209
|
+
function C_e(e, t) {
|
|
72166
72210
|
const n = e ?? [], i = t ?? [];
|
|
72167
72211
|
return n.length === i.length && n.every((r, o) => r === i[o]);
|
|
72168
72212
|
}
|
|
72169
|
-
function
|
|
72170
|
-
return (typeof e == "string" ? e : e?.value ?? "") === (t.value ?? "") &&
|
|
72213
|
+
function E_e(e, t) {
|
|
72214
|
+
return (typeof e == "string" ? e : e?.value ?? "") === (t.value ?? "") && C_e(
|
|
72171
72215
|
typeof e == "string" ? void 0 : e?.mentionIds,
|
|
72172
72216
|
t.mentionIds
|
|
72173
72217
|
);
|
|
72174
72218
|
}
|
|
72175
|
-
function
|
|
72219
|
+
function N_e({
|
|
72176
72220
|
field: e,
|
|
72177
72221
|
formField: t,
|
|
72178
72222
|
error: n,
|
|
@@ -72211,12 +72255,12 @@ function E_e({
|
|
|
72211
72255
|
value: u.value,
|
|
72212
72256
|
mentionIds: u.mentionIds
|
|
72213
72257
|
}, p = c.current;
|
|
72214
|
-
c.current = h, !
|
|
72258
|
+
c.current = h, !E_e(p, h) && t.onChange(h);
|
|
72215
72259
|
}
|
|
72216
72260
|
}
|
|
72217
72261
|
);
|
|
72218
72262
|
}
|
|
72219
|
-
function
|
|
72263
|
+
function A_e({
|
|
72220
72264
|
field: e,
|
|
72221
72265
|
formField: t,
|
|
72222
72266
|
error: n,
|
|
@@ -72272,7 +72316,7 @@ function N_e({
|
|
|
72272
72316
|
}
|
|
72273
72317
|
);
|
|
72274
72318
|
}
|
|
72275
|
-
function
|
|
72319
|
+
function T_e({
|
|
72276
72320
|
field: e,
|
|
72277
72321
|
formField: t,
|
|
72278
72322
|
error: n,
|
|
@@ -72329,34 +72373,34 @@ function A_e({
|
|
|
72329
72373
|
}
|
|
72330
72374
|
);
|
|
72331
72375
|
}
|
|
72332
|
-
function
|
|
72376
|
+
function O_e(e) {
|
|
72333
72377
|
const { t } = Be(), n = {
|
|
72334
72378
|
...e.field,
|
|
72335
72379
|
placeholder: e.field.placeholder ?? t("common.selectPlaceholder")
|
|
72336
72380
|
};
|
|
72337
72381
|
return "source" in n && n.source !== void 0 && n.mapOptions !== void 0 ? /* @__PURE__ */ m(
|
|
72338
|
-
|
|
72382
|
+
T_e,
|
|
72339
72383
|
{
|
|
72340
72384
|
...e,
|
|
72341
72385
|
field: n
|
|
72342
72386
|
}
|
|
72343
72387
|
) : "options" in n && n.options !== void 0 ? /* @__PURE__ */ m(
|
|
72344
|
-
|
|
72388
|
+
A_e,
|
|
72345
72389
|
{
|
|
72346
72390
|
...e,
|
|
72347
72391
|
field: n
|
|
72348
72392
|
}
|
|
72349
72393
|
) : null;
|
|
72350
72394
|
}
|
|
72351
|
-
function
|
|
72395
|
+
function D_e(e) {
|
|
72352
72396
|
const t = Jn(e);
|
|
72353
72397
|
return tn(t, "ZodLiteral") && t._def.value === !0;
|
|
72354
72398
|
}
|
|
72355
|
-
function
|
|
72399
|
+
function I_e({
|
|
72356
72400
|
field: e,
|
|
72357
72401
|
formField: t
|
|
72358
72402
|
}) {
|
|
72359
|
-
const n = e.validation &&
|
|
72403
|
+
const n = e.validation && D_e(e.validation);
|
|
72360
72404
|
return /* @__PURE__ */ m(
|
|
72361
72405
|
Af,
|
|
72362
72406
|
{
|
|
@@ -72370,17 +72414,17 @@ function D_e({
|
|
|
72370
72414
|
}
|
|
72371
72415
|
);
|
|
72372
72416
|
}
|
|
72373
|
-
const
|
|
72417
|
+
const M_e = {
|
|
72374
72418
|
email: "name@example.com"
|
|
72375
72419
|
};
|
|
72376
|
-
function
|
|
72420
|
+
function P_e({
|
|
72377
72421
|
field: e,
|
|
72378
72422
|
formField: t,
|
|
72379
72423
|
error: n,
|
|
72380
72424
|
loading: i,
|
|
72381
72425
|
status: r
|
|
72382
72426
|
}) {
|
|
72383
|
-
const o = e.inputType ?? "text", s = e.placeholder ??
|
|
72427
|
+
const o = e.inputType ?? "text", s = e.placeholder ?? M_e[o] ?? void 0, a = od(o);
|
|
72384
72428
|
return /* @__PURE__ */ m(
|
|
72385
72429
|
Vu,
|
|
72386
72430
|
{
|
|
@@ -72400,7 +72444,7 @@ function M_e({
|
|
|
72400
72444
|
}
|
|
72401
72445
|
);
|
|
72402
72446
|
}
|
|
72403
|
-
function
|
|
72447
|
+
function R_e({
|
|
72404
72448
|
field: e,
|
|
72405
72449
|
formField: t,
|
|
72406
72450
|
error: n,
|
|
@@ -72444,7 +72488,7 @@ function YN({
|
|
|
72444
72488
|
switch (e.type) {
|
|
72445
72489
|
case "text":
|
|
72446
72490
|
return /* @__PURE__ */ m(
|
|
72447
|
-
|
|
72491
|
+
P_e,
|
|
72448
72492
|
{
|
|
72449
72493
|
field: { ...e, disabled: f },
|
|
72450
72494
|
formField: t,
|
|
@@ -72474,7 +72518,7 @@ function YN({
|
|
|
72474
72518
|
);
|
|
72475
72519
|
case "textarea":
|
|
72476
72520
|
return /* @__PURE__ */ m(
|
|
72477
|
-
|
|
72521
|
+
R_e,
|
|
72478
72522
|
{
|
|
72479
72523
|
field: { ...e, disabled: f },
|
|
72480
72524
|
formField: t,
|
|
@@ -72484,7 +72528,7 @@ function YN({
|
|
|
72484
72528
|
);
|
|
72485
72529
|
case "select":
|
|
72486
72530
|
return /* @__PURE__ */ m(
|
|
72487
|
-
|
|
72531
|
+
O_e,
|
|
72488
72532
|
{
|
|
72489
72533
|
field: { ...e, disabled: f },
|
|
72490
72534
|
formField: t,
|
|
@@ -72502,7 +72546,7 @@ function YN({
|
|
|
72502
72546
|
);
|
|
72503
72547
|
case "switch":
|
|
72504
72548
|
return /* @__PURE__ */ m(
|
|
72505
|
-
|
|
72549
|
+
I_e,
|
|
72506
72550
|
{
|
|
72507
72551
|
field: { ...e, disabled: f },
|
|
72508
72552
|
formField: t
|
|
@@ -72594,7 +72638,7 @@ function YN({
|
|
|
72594
72638
|
);
|
|
72595
72639
|
case "richtext":
|
|
72596
72640
|
return /* @__PURE__ */ m(
|
|
72597
|
-
|
|
72641
|
+
N_e,
|
|
72598
72642
|
{
|
|
72599
72643
|
field: { ...e, disabled: f },
|
|
72600
72644
|
formField: t,
|
|
@@ -72644,10 +72688,10 @@ function YN({
|
|
|
72644
72688
|
return null;
|
|
72645
72689
|
}
|
|
72646
72690
|
}
|
|
72647
|
-
function
|
|
72691
|
+
function L_e(e) {
|
|
72648
72692
|
return e != null && typeof e == "object" && "_type" in e && e._type === "select-config";
|
|
72649
72693
|
}
|
|
72650
|
-
function
|
|
72694
|
+
function F_e({
|
|
72651
72695
|
field: e,
|
|
72652
72696
|
formField: t,
|
|
72653
72697
|
fieldState: n,
|
|
@@ -72677,7 +72721,7 @@ function L_e({
|
|
|
72677
72721
|
config: void 0,
|
|
72678
72722
|
fieldType: e.type
|
|
72679
72723
|
});
|
|
72680
|
-
if (
|
|
72724
|
+
if (L_e(l)) {
|
|
72681
72725
|
const c = { ...e, ...l, type: "select" };
|
|
72682
72726
|
return YN({
|
|
72683
72727
|
field: c,
|
|
@@ -72740,7 +72784,7 @@ function Ar({ field: e, sectionId: t }) {
|
|
|
72740
72784
|
v ? /* @__PURE__ */ m("span", { className: "ml-0.5 text-f1-foreground-critical", children: "*" }) : null
|
|
72741
72785
|
] })
|
|
72742
72786
|
) : null,
|
|
72743
|
-
/* @__PURE__ */ m(TD, { children:
|
|
72787
|
+
/* @__PURE__ */ m(TD, { children: F_e({
|
|
72744
72788
|
field: e,
|
|
72745
72789
|
formField: x,
|
|
72746
72790
|
fieldState: b,
|
|
@@ -72944,7 +72988,7 @@ function J0(e) {
|
|
|
72944
72988
|
o.kind === "min" ? i = new Date(o.value) : o.kind === "max" && (r = new Date(o.value));
|
|
72945
72989
|
return { minDate: i, maxDate: r };
|
|
72946
72990
|
}
|
|
72947
|
-
function
|
|
72991
|
+
function $_e(e) {
|
|
72948
72992
|
const t = Jn(e);
|
|
72949
72993
|
if (!tn(t, "ZodNumber"))
|
|
72950
72994
|
return { isInteger: !1 };
|
|
@@ -72954,7 +72998,7 @@ function F_e(e) {
|
|
|
72954
72998
|
s.kind === "min" ? i = s.value : s.kind === "max" ? r = s.value : s.kind === "int" && (o = !0);
|
|
72955
72999
|
return { min: i, max: r, isInteger: o };
|
|
72956
73000
|
}
|
|
72957
|
-
function
|
|
73001
|
+
function B_e(e) {
|
|
72958
73002
|
const t = Jn(e);
|
|
72959
73003
|
if (!tn(t, "ZodString"))
|
|
72960
73004
|
return {};
|
|
@@ -72992,7 +73036,7 @@ function JN(e, t, n, i) {
|
|
|
72992
73036
|
case "money":
|
|
72993
73037
|
case "percentage":
|
|
72994
73038
|
case "number": {
|
|
72995
|
-
const { min: s, max: a, isInteger: l } =
|
|
73039
|
+
const { min: s, max: a, isInteger: l } = $_e(t), c = i === "percentage" ? "%" : i === "money" && "currency" in n ? n.currency : void 0;
|
|
72996
73040
|
return {
|
|
72997
73041
|
...r,
|
|
72998
73042
|
type: "number",
|
|
@@ -73017,7 +73061,7 @@ function JN(e, t, n, i) {
|
|
|
73017
73061
|
renderIf: n.renderIf
|
|
73018
73062
|
};
|
|
73019
73063
|
case "textarea": {
|
|
73020
|
-
const { maxLength: s } =
|
|
73064
|
+
const { maxLength: s } = B_e(t);
|
|
73021
73065
|
return {
|
|
73022
73066
|
...r,
|
|
73023
73067
|
type: "textarea",
|
|
@@ -73284,7 +73328,7 @@ function sF(e, t) {
|
|
|
73284
73328
|
return s;
|
|
73285
73329
|
}, [e, t]);
|
|
73286
73330
|
}
|
|
73287
|
-
function
|
|
73331
|
+
function lEe(e, t) {
|
|
73288
73332
|
const n = _y(e), i = oF(n), r = [], o = {};
|
|
73289
73333
|
for (const l of i) {
|
|
73290
73334
|
const c = l.config.section;
|
|
@@ -73566,12 +73610,12 @@ function l_({
|
|
|
73566
73610
|
)) }) : null
|
|
73567
73611
|
] });
|
|
73568
73612
|
}
|
|
73569
|
-
const
|
|
73613
|
+
const z_e = {
|
|
73570
73614
|
"on-blur": "onBlur",
|
|
73571
73615
|
"on-change": "onChange",
|
|
73572
73616
|
"on-submit": "onSubmit"
|
|
73573
73617
|
};
|
|
73574
|
-
function
|
|
73618
|
+
function j_e(e) {
|
|
73575
73619
|
const t = {};
|
|
73576
73620
|
function n(i, r) {
|
|
73577
73621
|
for (const [o, s] of Object.entries(i)) {
|
|
@@ -73586,7 +73630,7 @@ function z_e(e) {
|
|
|
73586
73630
|
}
|
|
73587
73631
|
return n(e, ""), t;
|
|
73588
73632
|
}
|
|
73589
|
-
function
|
|
73633
|
+
function H_e({
|
|
73590
73634
|
formName: e,
|
|
73591
73635
|
sectionId: t,
|
|
73592
73636
|
schema: n,
|
|
@@ -73603,7 +73647,7 @@ function j_e({
|
|
|
73603
73647
|
useUpload: h,
|
|
73604
73648
|
isLoading: p
|
|
73605
73649
|
}) {
|
|
73606
|
-
const g = Be(), y = sF(n), v = s?.label ?? "Submit", w = s?.icon ?? void 0, x = s?.showSubmitWhenDirty ?? !1, b = s?.hideSubmitButton ?? !1, _ = K(() => aF(g), [g]), k =
|
|
73650
|
+
const g = Be(), y = sF(n), v = s?.label ?? "Submit", w = s?.icon ?? void 0, x = s?.showSubmitWhenDirty ?? !1, b = s?.hideSubmitButton ?? !1, _ = K(() => aF(g), [g]), k = z_e[a], C = K(
|
|
73607
73651
|
() => LD(n, { errorMap: _ }),
|
|
73608
73652
|
[n, _]
|
|
73609
73653
|
), E = tD({
|
|
@@ -73665,7 +73709,7 @@ function j_e({
|
|
|
73665
73709
|
W?.shouldValidate !== !1 && E.trigger();
|
|
73666
73710
|
},
|
|
73667
73711
|
trigger: async (L) => L ? E.trigger(L) : E.trigger(),
|
|
73668
|
-
getErrors: () =>
|
|
73712
|
+
getErrors: () => j_e(E.formState.errors),
|
|
73669
73713
|
getFieldNames: () => Object.keys(E.getValues()),
|
|
73670
73714
|
actionBar: {
|
|
73671
73715
|
wiggle: () => {
|
|
@@ -73796,7 +73840,7 @@ function j_e({
|
|
|
73796
73840
|
}
|
|
73797
73841
|
) }) });
|
|
73798
73842
|
}
|
|
73799
|
-
function
|
|
73843
|
+
function V_e({ section: e }) {
|
|
73800
73844
|
const n = Jo().watch(), { formName: i } = u2(), { title: r, description: o, withInset: s, renderIf: a, action: l, fields: c } = e.section, d = e.id;
|
|
73801
73845
|
if (a && !ld(a, n))
|
|
73802
73846
|
return null;
|
|
@@ -73888,7 +73932,7 @@ function Ox(e, t) {
|
|
|
73888
73932
|
`[id^="${r}"][id$="${o}"]`
|
|
73889
73933
|
);
|
|
73890
73934
|
}
|
|
73891
|
-
const
|
|
73935
|
+
const W_e = (e) => {
|
|
73892
73936
|
const t = Q0.get(e);
|
|
73893
73937
|
t && clearTimeout(t), e.classList.remove(Z0), e.getBoundingClientRect(), e.classList.add(Z0);
|
|
73894
73938
|
const n = setTimeout(() => {
|
|
@@ -73896,29 +73940,29 @@ const V_e = (e) => {
|
|
|
73896
73940
|
}, 600);
|
|
73897
73941
|
Q0.set(e, n);
|
|
73898
73942
|
};
|
|
73899
|
-
function
|
|
73943
|
+
function U_e(e) {
|
|
73900
73944
|
let t = e;
|
|
73901
73945
|
for (; t && t.offsetParent === null && t.parentElement; )
|
|
73902
73946
|
t = t.parentElement;
|
|
73903
73947
|
return t ?? e;
|
|
73904
73948
|
}
|
|
73905
|
-
function
|
|
73949
|
+
function q_e(e, t, { highlight: n = !1 } = {}) {
|
|
73906
73950
|
const i = Ox(e, t);
|
|
73907
|
-
i &&
|
|
73951
|
+
i && G_e(i, { highlight: n });
|
|
73908
73952
|
}
|
|
73909
|
-
function
|
|
73910
|
-
const n =
|
|
73953
|
+
function G_e(e, { highlight: t = !1 } = {}) {
|
|
73954
|
+
const n = U_e(e);
|
|
73911
73955
|
n.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
73912
73956
|
const i = n.querySelector("input, textarea, select, button");
|
|
73913
|
-
i instanceof HTMLElement && i.focus(), t &&
|
|
73957
|
+
i instanceof HTMLElement && i.focus(), t && W_e(n);
|
|
73914
73958
|
}
|
|
73915
|
-
function
|
|
73959
|
+
function K_e({
|
|
73916
73960
|
formName: e,
|
|
73917
73961
|
errors: t
|
|
73918
73962
|
}) {
|
|
73919
73963
|
const n = ee(
|
|
73920
73964
|
(w) => {
|
|
73921
|
-
|
|
73965
|
+
q_e(e, w, { highlight: !0 });
|
|
73922
73966
|
},
|
|
73923
73967
|
[e]
|
|
73924
73968
|
), i = Object.keys(t).filter((w) => w !== "root"), r = typeof document > "u" ? i : [...i].sort((w, x) => {
|
|
@@ -73973,7 +74017,7 @@ function G_e({
|
|
|
73973
74017
|
const eA = 800, lF = () => ET("(max-width: 560px)", {
|
|
73974
74018
|
initializeWithValue: !1
|
|
73975
74019
|
});
|
|
73976
|
-
function
|
|
74020
|
+
function Y_e(e) {
|
|
73977
74021
|
const t = {};
|
|
73978
74022
|
function n(i, r) {
|
|
73979
74023
|
for (const [o, s] of Object.entries(i)) {
|
|
@@ -73988,13 +74032,13 @@ function K_e(e) {
|
|
|
73988
74032
|
}
|
|
73989
74033
|
return n(e, ""), t;
|
|
73990
74034
|
}
|
|
73991
|
-
function
|
|
74035
|
+
function X_e(e) {
|
|
73992
74036
|
if (typeof e != "object" || e === null)
|
|
73993
74037
|
return !1;
|
|
73994
74038
|
const n = e._def;
|
|
73995
74039
|
return n?.typeName === "ZodObject" || n?.typeName === "ZodEffects";
|
|
73996
74040
|
}
|
|
73997
|
-
const
|
|
74041
|
+
const J_e = {
|
|
73998
74042
|
"on-blur": "onBlur",
|
|
73999
74043
|
"on-change": "onChange",
|
|
74000
74044
|
"on-submit": "onSubmit"
|
|
@@ -74045,7 +74089,7 @@ function cF(e) {
|
|
|
74045
74089
|
x && S !== _ && "hidden"
|
|
74046
74090
|
),
|
|
74047
74091
|
children: /* @__PURE__ */ m(
|
|
74048
|
-
|
|
74092
|
+
H_e,
|
|
74049
74093
|
{
|
|
74050
74094
|
formName: t,
|
|
74051
74095
|
sectionId: S,
|
|
@@ -74079,15 +74123,15 @@ function cF(e) {
|
|
|
74079
74123
|
/* @__PURE__ */ m("div", { className: "flex w-full justify-center px-4 py-2", children: E })
|
|
74080
74124
|
] }) : /* @__PURE__ */ m("div", { className: G("flex justify-center", !v && "p-4"), children: E });
|
|
74081
74125
|
}
|
|
74082
|
-
function
|
|
74126
|
+
function Z_e(e) {
|
|
74083
74127
|
return "formDefinition" in e && e.formDefinition != null;
|
|
74084
74128
|
}
|
|
74085
74129
|
function dF(e) {
|
|
74086
74130
|
const t = e;
|
|
74087
|
-
if (
|
|
74088
|
-
return /* @__PURE__ */ m(
|
|
74131
|
+
if (Z_e(t))
|
|
74132
|
+
return /* @__PURE__ */ m(Q_e, { ...t });
|
|
74089
74133
|
const n = t;
|
|
74090
|
-
return
|
|
74134
|
+
return X_e(n.schema) ? /* @__PURE__ */ m(
|
|
74091
74135
|
fF,
|
|
74092
74136
|
{
|
|
74093
74137
|
...n
|
|
@@ -74099,7 +74143,7 @@ function dF(e) {
|
|
|
74099
74143
|
}
|
|
74100
74144
|
);
|
|
74101
74145
|
}
|
|
74102
|
-
function
|
|
74146
|
+
function Q_e(e) {
|
|
74103
74147
|
const {
|
|
74104
74148
|
formDefinition: t,
|
|
74105
74149
|
className: n,
|
|
@@ -74242,7 +74286,7 @@ function nA({
|
|
|
74242
74286
|
}
|
|
74243
74287
|
);
|
|
74244
74288
|
}
|
|
74245
|
-
function
|
|
74289
|
+
function e4e({
|
|
74246
74290
|
formValues: e,
|
|
74247
74291
|
definition: t,
|
|
74248
74292
|
sectionIds: n,
|
|
@@ -74260,7 +74304,7 @@ function Q_e({
|
|
|
74260
74304
|
})) : [];
|
|
74261
74305
|
return { effectiveActiveSection: l, tocItems: c };
|
|
74262
74306
|
}
|
|
74263
|
-
function
|
|
74307
|
+
function t4e(e, t) {
|
|
74264
74308
|
const n = e?.type === "action-bar", i = e?.type === "autosubmit", r = e?.label ?? "Submit", o = e?.icon ?? void 0, s = (e?.type === "default" || e?.type === void 0) && !!e?.hideSubmitButton, a = (e?.type === "default" || e?.type === void 0) && !!e?.showSubmitWhenDirty, l = e?.type !== "action-bar" && !!e?.hideActionBar, c = !n && !i && !s, d = e?.type === "action-bar" && e?.discardable, f = n ? e?.discardConfig : void 0, u = f?.label ?? t.actionBar.discard, h = f?.icon === null ? void 0 : f?.icon ?? Ko, p = n ? e?.actionBarLabel ?? t.actionBar.unsavedChanges : t.actionBar.unsavedChanges, g = e?.savingMessage ?? t.actionBar.saving, y = e?.successMessageDuration;
|
|
74265
74309
|
return {
|
|
74266
74310
|
isActionBar: n,
|
|
@@ -74309,7 +74353,7 @@ function fF(e) {
|
|
|
74309
74353
|
actionBarIdleLabel: I,
|
|
74310
74354
|
actionBarSavingLabel: R,
|
|
74311
74355
|
successMessageDuration: F
|
|
74312
|
-
} =
|
|
74356
|
+
} = t4e(l, n), z = sF(r, o), $ = K(() => z.filter((Ue) => Ue.type === "section").map((Ue) => Ue.id), [z]), L = K(() => {
|
|
74313
74357
|
const Ue = /* @__PURE__ */ new Set(), he = (Ee) => {
|
|
74314
74358
|
Ee.autoSave && Ue.add(Ee.id);
|
|
74315
74359
|
};
|
|
@@ -74336,7 +74380,7 @@ function fF(e) {
|
|
|
74336
74380
|
});
|
|
74337
74381
|
},
|
|
74338
74382
|
[i]
|
|
74339
|
-
), V = K(() => aF(t), [t]), J =
|
|
74383
|
+
), V = K(() => aF(t), [t]), J = J_e[d], ie = K(
|
|
74340
74384
|
() => LD(r, { errorMap: V }),
|
|
74341
74385
|
[r, V]
|
|
74342
74386
|
), Z = tD({
|
|
@@ -74352,7 +74396,7 @@ function fF(e) {
|
|
|
74352
74396
|
(Ue) => Ue.type === "section" && !!Ue.section.renderIf
|
|
74353
74397
|
),
|
|
74354
74398
|
[z]
|
|
74355
|
-
), ye = b && ce ? Z.watch() : void 0, { effectiveActiveSection: be, tocItems: _e } =
|
|
74399
|
+
), ye = b && ce ? Z.watch() : void 0, { effectiveActiveSection: be, tocItems: _e } = e4e({
|
|
74356
74400
|
formValues: ye,
|
|
74357
74401
|
definition: z,
|
|
74358
74402
|
sectionIds: $,
|
|
@@ -74380,7 +74424,7 @@ function fF(e) {
|
|
|
74380
74424
|
goToPreviousError: we,
|
|
74381
74425
|
goToNextError: De,
|
|
74382
74426
|
resetErrorNavigation: Je
|
|
74383
|
-
} =
|
|
74427
|
+
} = K_e({
|
|
74384
74428
|
formName: i,
|
|
74385
74429
|
errors: oe
|
|
74386
74430
|
}), ft = Ce === "loading" ? R : Ce === "success" ? He ?? n.actionBar.saved : I, Ke = async (Ue) => {
|
|
@@ -74495,7 +74539,7 @@ function fF(e) {
|
|
|
74495
74539
|
Ee?.shouldValidate !== !1 && Z.trigger();
|
|
74496
74540
|
},
|
|
74497
74541
|
trigger: async (he) => he ? Z.trigger(he) : Z.trigger(),
|
|
74498
|
-
getErrors: () =>
|
|
74542
|
+
getErrors: () => Y_e(Z.formState.errors),
|
|
74499
74543
|
getFieldNames: () => Object.keys(Z.getValues()),
|
|
74500
74544
|
actionBar: {
|
|
74501
74545
|
wiggle: (he) => {
|
|
@@ -74618,7 +74662,7 @@ function fF(e) {
|
|
|
74618
74662
|
"div",
|
|
74619
74663
|
{
|
|
74620
74664
|
className: G(he !== 0 && FD),
|
|
74621
|
-
children: /* @__PURE__ */ m(
|
|
74665
|
+
children: /* @__PURE__ */ m(V_e, { section: Ue.item })
|
|
74622
74666
|
},
|
|
74623
74667
|
Ue.item.id
|
|
74624
74668
|
);
|
|
@@ -74679,7 +74723,7 @@ function fF(e) {
|
|
|
74679
74723
|
)
|
|
74680
74724
|
] }) });
|
|
74681
74725
|
}
|
|
74682
|
-
const
|
|
74726
|
+
const n4e = di("F0Form", dF), Tr = () => /* @__PURE__ */ new Map(), Dx = (e) => {
|
|
74683
74727
|
const t = Tr();
|
|
74684
74728
|
return e.forEach((n, i) => {
|
|
74685
74729
|
t.set(i, n);
|
|
@@ -74687,20 +74731,20 @@ const t4e = di("F0Form", dF), Tr = () => /* @__PURE__ */ new Map(), Dx = (e) =>
|
|
|
74687
74731
|
}, es = (e, t, n) => {
|
|
74688
74732
|
let i = e.get(t);
|
|
74689
74733
|
return i === void 0 && e.set(t, i = n()), i;
|
|
74690
|
-
},
|
|
74734
|
+
}, i4e = (e, t) => {
|
|
74691
74735
|
const n = [];
|
|
74692
74736
|
for (const [i, r] of e)
|
|
74693
74737
|
n.push(t(r, i));
|
|
74694
74738
|
return n;
|
|
74695
|
-
},
|
|
74739
|
+
}, r4e = (e, t) => {
|
|
74696
74740
|
for (const [n, i] of e)
|
|
74697
74741
|
if (t(i, n))
|
|
74698
74742
|
return !0;
|
|
74699
74743
|
return !1;
|
|
74700
|
-
}, nl = () => /* @__PURE__ */ new Set(), eb = (e) => e[e.length - 1],
|
|
74744
|
+
}, nl = () => /* @__PURE__ */ new Set(), eb = (e) => e[e.length - 1], o4e = (e, t) => {
|
|
74701
74745
|
for (let n = 0; n < t.length; n++)
|
|
74702
74746
|
e.push(t[n]);
|
|
74703
|
-
}, il = Array.from,
|
|
74747
|
+
}, il = Array.from, s4e = (e, t) => {
|
|
74704
74748
|
for (let n = 0; n < e.length; n++)
|
|
74705
74749
|
if (t(e[n], n, e))
|
|
74706
74750
|
return !0;
|
|
@@ -74768,7 +74812,7 @@ class uF {
|
|
|
74768
74812
|
this._observers = Tr();
|
|
74769
74813
|
}
|
|
74770
74814
|
}
|
|
74771
|
-
const qo = Math.floor, sm = Math.abs, Hc = (e, t) => e < t ? e : t, Ys = (e, t) => e > t ? e : t, hF = (e) => e !== 0 ? e < 0 : 1 / e < 0, iA = 1, rA = 2, tb = 4, nb = 8, Su = 32, Fo = 64, si = 128,
|
|
74815
|
+
const qo = Math.floor, sm = Math.abs, Hc = (e, t) => e < t ? e : t, Ys = (e, t) => e > t ? e : t, hF = (e) => e !== 0 ? e < 0 : 1 / e < 0, iA = 1, rA = 2, tb = 4, nb = 8, Su = 32, Fo = 64, si = 128, a4e = 1 << 29, z1 = 31, Mx = 63, za = 127, l4e = 2147483647, pF = Number.MAX_SAFE_INTEGER, c4e = Number.isInteger || ((e) => typeof e == "number" && isFinite(e) && qo(e) === e), d4e = String.fromCharCode, f4e = (e) => e.toLowerCase(), u4e = /^\s*/g, h4e = (e) => e.replace(u4e, ""), p4e = /([A-Z])/g, oA = (e, t) => h4e(e.replace(p4e, (n) => `${t}${f4e(n)}`)), m4e = (e) => {
|
|
74772
74816
|
const t = unescape(encodeURIComponent(e)), n = t.length, i = new Uint8Array(n);
|
|
74773
74817
|
for (let r = 0; r < n; r++)
|
|
74774
74818
|
i[r] = /** @type {number} */
|
|
@@ -74777,7 +74821,7 @@ const qo = Math.floor, sm = Math.abs, Hc = (e, t) => e < t ? e : t, Ys = (e, t)
|
|
|
74777
74821
|
}, Cu = (
|
|
74778
74822
|
/** @type {TextEncoder} */
|
|
74779
74823
|
typeof TextEncoder < "u" ? new TextEncoder() : null
|
|
74780
|
-
),
|
|
74824
|
+
), g4e = (e) => Cu.encode(e), y4e = Cu ? g4e : m4e;
|
|
74781
74825
|
let Cf = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 });
|
|
74782
74826
|
Cf && Cf.decode(new Uint8Array()).length === 1 && (Cf = null);
|
|
74783
74827
|
class Eh {
|
|
@@ -74785,23 +74829,23 @@ class Eh {
|
|
|
74785
74829
|
this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
|
|
74786
74830
|
}
|
|
74787
74831
|
}
|
|
74788
|
-
const Nh = () => new Eh(),
|
|
74832
|
+
const Nh = () => new Eh(), v4e = (e) => {
|
|
74789
74833
|
const t = Nh();
|
|
74790
74834
|
return e(t), Er(t);
|
|
74791
|
-
},
|
|
74835
|
+
}, b4e = (e) => {
|
|
74792
74836
|
let t = e.cpos;
|
|
74793
74837
|
for (let n = 0; n < e.bufs.length; n++)
|
|
74794
74838
|
t += e.bufs[n].length;
|
|
74795
74839
|
return t;
|
|
74796
74840
|
}, Er = (e) => {
|
|
74797
|
-
const t = new Uint8Array(
|
|
74841
|
+
const t = new Uint8Array(b4e(e));
|
|
74798
74842
|
let n = 0;
|
|
74799
74843
|
for (let i = 0; i < e.bufs.length; i++) {
|
|
74800
74844
|
const r = e.bufs[i];
|
|
74801
74845
|
t.set(r, n), n += r.length;
|
|
74802
74846
|
}
|
|
74803
74847
|
return t.set(new Uint8Array(e.cbuf.buffer, 0, e.cpos), n), t;
|
|
74804
|
-
},
|
|
74848
|
+
}, w4e = (e, t) => {
|
|
74805
74849
|
const n = e.cbuf.length;
|
|
74806
74850
|
n - e.cpos < t && (e.bufs.push(new Uint8Array(e.cbuf.buffer, 0, e.cpos)), e.cbuf = new Uint8Array(Ys(n, t) * 2), e.cpos = 0);
|
|
74807
74851
|
}, _n = (e, t) => {
|
|
@@ -74815,15 +74859,15 @@ const Nh = () => new Eh(), y4e = (e) => {
|
|
|
74815
74859
|
const n = hF(t);
|
|
74816
74860
|
for (n && (t = -t), _n(e, (t > Mx ? si : 0) | (n ? Fo : 0) | Mx & t), t = qo(t / 64); t > 0; )
|
|
74817
74861
|
_n(e, (t > za ? si : 0) | za & t), t = qo(t / 128);
|
|
74818
|
-
}, Rx = new Uint8Array(3e4),
|
|
74819
|
-
if (t.length <
|
|
74862
|
+
}, Rx = new Uint8Array(3e4), x4e = Rx.length / 3, k4e = (e, t) => {
|
|
74863
|
+
if (t.length < x4e) {
|
|
74820
74864
|
const n = Cu.encodeInto(t, Rx).written || 0;
|
|
74821
74865
|
Et(e, n);
|
|
74822
74866
|
for (let i = 0; i < n; i++)
|
|
74823
74867
|
_n(e, Rx[i]);
|
|
74824
74868
|
} else
|
|
74825
|
-
Oi(e,
|
|
74826
|
-
},
|
|
74869
|
+
Oi(e, y4e(t));
|
|
74870
|
+
}, _4e = (e, t) => {
|
|
74827
74871
|
const n = unescape(encodeURIComponent(t)), i = n.length;
|
|
74828
74872
|
Et(e, i);
|
|
74829
74873
|
for (let r = 0; r < i; r++)
|
|
@@ -74833,28 +74877,28 @@ const Nh = () => new Eh(), y4e = (e) => {
|
|
|
74833
74877
|
n.codePointAt(r)
|
|
74834
74878
|
);
|
|
74835
74879
|
}, nc = Cu && /** @type {any} */
|
|
74836
|
-
Cu.encodeInto ?
|
|
74880
|
+
Cu.encodeInto ? k4e : _4e, j1 = (e, t) => {
|
|
74837
74881
|
const n = e.cbuf.length, i = e.cpos, r = Hc(n - i, t.length), o = t.length - r;
|
|
74838
74882
|
e.cbuf.set(t.subarray(0, r), i), e.cpos += r, o > 0 && (e.bufs.push(e.cbuf), e.cbuf = new Uint8Array(Ys(n * 2, o)), e.cbuf.set(t.subarray(r)), e.cpos = o);
|
|
74839
74883
|
}, Oi = (e, t) => {
|
|
74840
74884
|
Et(e, t.byteLength), j1(e, t);
|
|
74841
74885
|
}, d_ = (e, t) => {
|
|
74842
|
-
|
|
74886
|
+
w4e(e, t);
|
|
74843
74887
|
const n = new DataView(e.cbuf.buffer, e.cpos, t);
|
|
74844
74888
|
return e.cpos += t, n;
|
|
74845
|
-
},
|
|
74889
|
+
}, S4e = (e, t) => d_(e, 4).setFloat32(0, t, !1), C4e = (e, t) => d_(e, 8).setFloat64(0, t, !1), E4e = (e, t) => (
|
|
74846
74890
|
/** @type {any} */
|
|
74847
74891
|
d_(e, 8).setBigInt64(0, t, !1)
|
|
74848
|
-
), sA = new DataView(new ArrayBuffer(4)),
|
|
74892
|
+
), sA = new DataView(new ArrayBuffer(4)), N4e = (e) => (sA.setFloat32(0, e), sA.getFloat32(0) === e), Vc = (e, t) => {
|
|
74849
74893
|
switch (typeof t) {
|
|
74850
74894
|
case "string":
|
|
74851
74895
|
_n(e, 119), nc(e, t);
|
|
74852
74896
|
break;
|
|
74853
74897
|
case "number":
|
|
74854
|
-
|
|
74898
|
+
c4e(t) && sm(t) <= l4e ? (_n(e, 125), c_(e, t)) : N4e(t) ? (_n(e, 124), S4e(e, t)) : (_n(e, 123), C4e(e, t));
|
|
74855
74899
|
break;
|
|
74856
74900
|
case "bigint":
|
|
74857
|
-
_n(e, 122),
|
|
74901
|
+
_n(e, 122), E4e(e, t);
|
|
74858
74902
|
break;
|
|
74859
74903
|
case "object":
|
|
74860
74904
|
if (t === null)
|
|
@@ -74943,7 +74987,7 @@ class ib {
|
|
|
74943
74987
|
return cA(this), Er(this.encoder);
|
|
74944
74988
|
}
|
|
74945
74989
|
}
|
|
74946
|
-
class
|
|
74990
|
+
class A4e {
|
|
74947
74991
|
constructor() {
|
|
74948
74992
|
this.sarr = [], this.s = "", this.lensE = new am();
|
|
74949
74993
|
}
|
|
@@ -74971,10 +75015,10 @@ class H1 {
|
|
|
74971
75015
|
this.arr = t, this.pos = 0;
|
|
74972
75016
|
}
|
|
74973
75017
|
}
|
|
74974
|
-
const f_ = (e) => new H1(e),
|
|
75018
|
+
const f_ = (e) => new H1(e), T4e = (e) => e.pos !== e.arr.length, O4e = (e, t) => {
|
|
74975
75019
|
const n = new Uint8Array(e.arr.buffer, e.pos + e.arr.byteOffset, t);
|
|
74976
75020
|
return e.pos += t, n;
|
|
74977
|
-
}, Gi = (e) =>
|
|
75021
|
+
}, Gi = (e) => O4e(e, Kt(e)), Eu = (e) => e.arr[e.pos++], Kt = (e) => {
|
|
74978
75022
|
let t = 0, n = 1;
|
|
74979
75023
|
const i = e.arr.length;
|
|
74980
75024
|
for (; e.pos < i; ) {
|
|
@@ -74998,7 +75042,7 @@ const f_ = (e) => new H1(e), A4e = (e) => e.pos !== e.arr.length, T4e = (e, t) =
|
|
|
74998
75042
|
throw gF;
|
|
74999
75043
|
}
|
|
75000
75044
|
throw mF;
|
|
75001
|
-
},
|
|
75045
|
+
}, D4e = (e) => {
|
|
75002
75046
|
let t = Kt(e);
|
|
75003
75047
|
if (t === 0)
|
|
75004
75048
|
return "";
|
|
@@ -75018,16 +75062,16 @@ const f_ = (e) => new H1(e), A4e = (e) => e.pos !== e.arr.length, T4e = (e, t) =
|
|
|
75018
75062
|
}
|
|
75019
75063
|
return decodeURIComponent(escape(n));
|
|
75020
75064
|
}
|
|
75021
|
-
},
|
|
75065
|
+
}, I4e = (e) => (
|
|
75022
75066
|
/** @type any */
|
|
75023
75067
|
Cf.decode(Gi(e))
|
|
75024
|
-
), Lx = Cf ?
|
|
75068
|
+
), Lx = Cf ? I4e : D4e, h_ = (e, t) => {
|
|
75025
75069
|
const n = new DataView(e.arr.buffer, e.arr.byteOffset + e.pos, t);
|
|
75026
75070
|
return e.pos += t, n;
|
|
75027
|
-
},
|
|
75071
|
+
}, M4e = (e) => h_(e, 4).getFloat32(0, !1), P4e = (e) => h_(e, 8).getFloat64(0, !1), R4e = (e) => (
|
|
75028
75072
|
/** @type {any} */
|
|
75029
75073
|
h_(e, 8).getBigInt64(0, !1)
|
|
75030
|
-
),
|
|
75074
|
+
), L4e = [
|
|
75031
75075
|
(e) => {
|
|
75032
75076
|
},
|
|
75033
75077
|
// CASE 127: undefined
|
|
@@ -75035,11 +75079,11 @@ const f_ = (e) => new H1(e), A4e = (e) => e.pos !== e.arr.length, T4e = (e, t) =
|
|
|
75035
75079
|
// CASE 126: null
|
|
75036
75080
|
u_,
|
|
75037
75081
|
// CASE 125: integer
|
|
75038
|
-
I4e,
|
|
75039
|
-
// CASE 124: float32
|
|
75040
75082
|
M4e,
|
|
75041
|
-
// CASE
|
|
75083
|
+
// CASE 124: float32
|
|
75042
75084
|
P4e,
|
|
75085
|
+
// CASE 123: float64
|
|
75086
|
+
R4e,
|
|
75043
75087
|
// CASE 122: bigint
|
|
75044
75088
|
(e) => !1,
|
|
75045
75089
|
// CASE 121: boolean (false)
|
|
@@ -75063,7 +75107,7 @@ const f_ = (e) => new H1(e), A4e = (e) => e.pos !== e.arr.length, T4e = (e, t) =
|
|
|
75063
75107
|
},
|
|
75064
75108
|
Gi
|
|
75065
75109
|
// CASE 116: Uint8Array
|
|
75066
|
-
], iy = (e) =>
|
|
75110
|
+
], iy = (e) => L4e[127 - Eu(e)](e);
|
|
75067
75111
|
class dA extends H1 {
|
|
75068
75112
|
/**
|
|
75069
75113
|
* @param {Uint8Array} uint8Array
|
|
@@ -75073,7 +75117,7 @@ class dA extends H1 {
|
|
|
75073
75117
|
super(t), this.reader = n, this.s = null, this.count = 0;
|
|
75074
75118
|
}
|
|
75075
75119
|
read() {
|
|
75076
|
-
return this.count === 0 && (this.s = this.reader(this),
|
|
75120
|
+
return this.count === 0 && (this.s = this.reader(this), T4e(this) ? this.count = Kt(this) + 1 : this.count = -1), this.count--, /** @type {T} */
|
|
75077
75121
|
this.s;
|
|
75078
75122
|
}
|
|
75079
75123
|
}
|
|
@@ -75112,7 +75156,7 @@ class rb extends H1 {
|
|
|
75112
75156
|
return this.s += this.diff, this.count--, this.s;
|
|
75113
75157
|
}
|
|
75114
75158
|
}
|
|
75115
|
-
class
|
|
75159
|
+
class F4e {
|
|
75116
75160
|
/**
|
|
75117
75161
|
* @param {Uint8Array} uint8Array
|
|
75118
75162
|
*/
|
|
@@ -75127,17 +75171,17 @@ class L4e {
|
|
|
75127
75171
|
return this.spos = t, n;
|
|
75128
75172
|
}
|
|
75129
75173
|
}
|
|
75130
|
-
const
|
|
75174
|
+
const $4e = crypto.getRandomValues.bind(crypto), B4e = Math.random, yF = () => $4e(new Uint32Array(1))[0], z4e = (e) => e[qo(B4e() * e.length)], j4e = "10000000-1000-4000-8000" + -1e11, H4e = () => j4e.replace(
|
|
75131
75175
|
/[018]/g,
|
|
75132
75176
|
/** @param {number} c */
|
|
75133
75177
|
(e) => (e ^ yF() & 15 >> e / 4).toString(16)
|
|
75134
|
-
),
|
|
75178
|
+
), V4e = Date.now, fA = (e) => (
|
|
75135
75179
|
/** @type {Promise<T>} */
|
|
75136
75180
|
new Promise(e)
|
|
75137
75181
|
);
|
|
75138
75182
|
Promise.all.bind(Promise);
|
|
75139
75183
|
const uA = (e) => e === void 0 ? null : e;
|
|
75140
|
-
class
|
|
75184
|
+
class W4e {
|
|
75141
75185
|
constructor() {
|
|
75142
75186
|
this.map = /* @__PURE__ */ new Map();
|
|
75143
75187
|
}
|
|
@@ -75155,15 +75199,15 @@ class V4e {
|
|
|
75155
75199
|
return this.map.get(t);
|
|
75156
75200
|
}
|
|
75157
75201
|
}
|
|
75158
|
-
let vF = new
|
|
75202
|
+
let vF = new W4e(), U4e = !0;
|
|
75159
75203
|
try {
|
|
75160
|
-
typeof localStorage < "u" && localStorage && (vF = localStorage,
|
|
75204
|
+
typeof localStorage < "u" && localStorage && (vF = localStorage, U4e = !1);
|
|
75161
75205
|
} catch {
|
|
75162
75206
|
}
|
|
75163
|
-
const
|
|
75207
|
+
const q4e = vF, G4e = Object.assign, bF = Object.keys, K4e = (e, t) => {
|
|
75164
75208
|
for (const n in e)
|
|
75165
75209
|
t(e[n], n);
|
|
75166
|
-
}, hA = (e) => bF(e).length,
|
|
75210
|
+
}, hA = (e) => bF(e).length, Y4e = (e) => {
|
|
75167
75211
|
for (const t in e)
|
|
75168
75212
|
return !1;
|
|
75169
75213
|
return !0;
|
|
@@ -75172,12 +75216,12 @@ const U4e = vF, q4e = Object.assign, bF = Object.keys, G4e = (e, t) => {
|
|
|
75172
75216
|
if (!t(e[n], n))
|
|
75173
75217
|
return !1;
|
|
75174
75218
|
return !0;
|
|
75175
|
-
},
|
|
75219
|
+
}, X4e = (e, t) => Object.prototype.hasOwnProperty.call(e, t), J4e = (e, t) => e === t || hA(e) === hA(t) && wF(e, (n, i) => (n !== void 0 || X4e(t, i)) && t[i] === n), Z4e = Object.freeze, xF = (e) => {
|
|
75176
75220
|
for (const t in e) {
|
|
75177
75221
|
const n = e[t];
|
|
75178
75222
|
(typeof n == "object" || typeof n == "function") && xF(e[t]);
|
|
75179
75223
|
}
|
|
75180
|
-
return
|
|
75224
|
+
return Z4e(e);
|
|
75181
75225
|
}, p_ = (e, t, n = 0) => {
|
|
75182
75226
|
try {
|
|
75183
75227
|
for (; n < e.length; n++)
|
|
@@ -75185,9 +75229,9 @@ const U4e = vF, q4e = Object.assign, bF = Object.keys, G4e = (e, t) => {
|
|
|
75185
75229
|
} finally {
|
|
75186
75230
|
n < e.length && p_(e, t, n + 1);
|
|
75187
75231
|
}
|
|
75188
|
-
},
|
|
75232
|
+
}, Q4e = (e, t) => t.includes(e), Wc = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", kF = typeof window < "u" && typeof document < "u" && !Wc;
|
|
75189
75233
|
let Wr;
|
|
75190
|
-
const
|
|
75234
|
+
const eSe = () => {
|
|
75191
75235
|
if (Wr === void 0)
|
|
75192
75236
|
if (Wc) {
|
|
75193
75237
|
Wr = Tr();
|
|
@@ -75205,16 +75249,16 @@ const Q4e = () => {
|
|
|
75205
75249
|
}
|
|
75206
75250
|
})) : Wr = Tr();
|
|
75207
75251
|
return Wr;
|
|
75208
|
-
}, Fx = (e) =>
|
|
75252
|
+
}, Fx = (e) => eSe().has(e), ry = (e) => uA(Wc ? process.env[e.toUpperCase().replaceAll("-", "_")] : q4e.getItem(e)), _F = (e) => Fx("--" + e) || ry(e) !== null;
|
|
75209
75253
|
_F("production");
|
|
75210
|
-
const
|
|
75211
|
-
!_F("no-color") && (!Wc || process.stdout.isTTY) && (!Wc || Fx("--color") || ry("COLORTERM") !== null || (ry("TERM") || "").includes("color")),
|
|
75254
|
+
const tSe = Wc && Q4e(process.env.FORCE_COLOR, ["true", "1", "2"]), nSe = tSe || !Fx("--no-colors") && // @todo deprecate --no-colors
|
|
75255
|
+
!_F("no-color") && (!Wc || process.stdout.isTTY) && (!Wc || Fx("--color") || ry("COLORTERM") !== null || (ry("TERM") || "").includes("color")), iSe = (e) => {
|
|
75212
75256
|
let t = "";
|
|
75213
75257
|
for (let n = 0; n < e.byteLength; n++)
|
|
75214
|
-
t +=
|
|
75258
|
+
t += d4e(e[n]);
|
|
75215
75259
|
return btoa(t);
|
|
75216
|
-
},
|
|
75217
|
-
class
|
|
75260
|
+
}, rSe = (e) => Buffer.from(e.buffer, e.byteOffset, e.byteLength).toString("base64"), oSe = kF ? iSe : rSe, sSe = (e) => v4e((t) => Vc(t, e));
|
|
75261
|
+
class aSe {
|
|
75218
75262
|
/**
|
|
75219
75263
|
* @param {L} left
|
|
75220
75264
|
* @param {R} right
|
|
@@ -75223,12 +75267,12 @@ class sSe {
|
|
|
75223
75267
|
this.left = t, this.right = n;
|
|
75224
75268
|
}
|
|
75225
75269
|
}
|
|
75226
|
-
const wo = (e, t) => new
|
|
75270
|
+
const wo = (e, t) => new aSe(e, t), lSe = (
|
|
75227
75271
|
/** @type {Document} */
|
|
75228
75272
|
typeof document < "u" ? document : {}
|
|
75229
75273
|
);
|
|
75230
75274
|
typeof DOMParser < "u" && new DOMParser();
|
|
75231
|
-
const
|
|
75275
|
+
const cSe = (e) => i4e(e, (t, n) => `${n}:${t};`).join(""), dSe = (e) => class {
|
|
75232
75276
|
/**
|
|
75233
75277
|
* @param {number} timeoutId
|
|
75234
75278
|
*/
|
|
@@ -75238,7 +75282,7 @@ const lSe = (e) => n4e(e, (t, n) => `${n}:${t};`).join(""), cSe = (e) => class {
|
|
|
75238
75282
|
destroy() {
|
|
75239
75283
|
e(this._);
|
|
75240
75284
|
}
|
|
75241
|
-
},
|
|
75285
|
+
}, fSe = dSe(clearTimeout), SF = (e, t) => new fSe(setTimeout(t, e)), ts = Symbol, CF = ts(), EF = ts(), uSe = ts(), hSe = ts(), pSe = ts(), NF = ts(), mSe = ts(), m_ = ts(), gSe = ts(), ySe = (e) => {
|
|
75242
75286
|
e.length === 1 && e[0]?.constructor === Function && (e = /** @type {Array<string|Symbol|Object|number>} */
|
|
75243
75287
|
/** @type {[function]} */
|
|
75244
75288
|
e[0]());
|
|
@@ -75258,32 +75302,32 @@ const lSe = (e) => n4e(e, (t, n) => `${n}:${t};`).join(""), cSe = (e) => class {
|
|
|
75258
75302
|
r instanceof Symbol || n.push(r);
|
|
75259
75303
|
}
|
|
75260
75304
|
return n;
|
|
75261
|
-
},
|
|
75305
|
+
}, vSe = {
|
|
75262
75306
|
[CF]: wo("font-weight", "bold"),
|
|
75263
75307
|
[EF]: wo("font-weight", "normal"),
|
|
75264
|
-
[
|
|
75265
|
-
[
|
|
75266
|
-
[
|
|
75308
|
+
[uSe]: wo("color", "blue"),
|
|
75309
|
+
[pSe]: wo("color", "green"),
|
|
75310
|
+
[hSe]: wo("color", "grey"),
|
|
75267
75311
|
[NF]: wo("color", "red"),
|
|
75268
|
-
[
|
|
75312
|
+
[mSe]: wo("color", "purple"),
|
|
75269
75313
|
[m_]: wo("color", "orange"),
|
|
75270
75314
|
// not well supported in chrome when debugging node with inspector - TODO: deprecate
|
|
75271
|
-
[
|
|
75272
|
-
},
|
|
75315
|
+
[gSe]: wo("color", "black")
|
|
75316
|
+
}, bSe = (e) => {
|
|
75273
75317
|
e.length === 1 && e[0]?.constructor === Function && (e = /** @type {Array<string|Symbol|Object|number>} */
|
|
75274
75318
|
/** @type {[function]} */
|
|
75275
75319
|
e[0]());
|
|
75276
75320
|
const t = [], n = [], i = Tr();
|
|
75277
75321
|
let r = [], o = 0;
|
|
75278
75322
|
for (; o < e.length; o++) {
|
|
75279
|
-
const s = e[o], a =
|
|
75323
|
+
const s = e[o], a = vSe[s];
|
|
75280
75324
|
if (a !== void 0)
|
|
75281
75325
|
i.set(a.left, a.right);
|
|
75282
75326
|
else {
|
|
75283
75327
|
if (s === void 0)
|
|
75284
75328
|
break;
|
|
75285
75329
|
if (s.constructor === String || s.constructor === Number) {
|
|
75286
|
-
const l =
|
|
75330
|
+
const l = cSe(i);
|
|
75287
75331
|
o > 0 || l.length > 0 ? (t.push("%c" + s), n.push(l)) : t.push(s);
|
|
75288
75332
|
} else
|
|
75289
75333
|
break;
|
|
@@ -75294,7 +75338,7 @@ const lSe = (e) => n4e(e, (t, n) => `${n}:${t};`).join(""), cSe = (e) => class {
|
|
|
75294
75338
|
s instanceof Symbol || r.push(s);
|
|
75295
75339
|
}
|
|
75296
75340
|
return r;
|
|
75297
|
-
}, AF =
|
|
75341
|
+
}, AF = nSe ? bSe : ySe, wSe = (...e) => {
|
|
75298
75342
|
console.log(...AF(e)), OF.forEach((t) => t.print(e));
|
|
75299
75343
|
}, TF = (...e) => {
|
|
75300
75344
|
console.warn(...AF(e)), e.unshift(m_), OF.forEach((t) => t.print(e));
|
|
@@ -75307,7 +75351,7 @@ const lSe = (e) => n4e(e, (t, n) => `${n}:${t};`).join(""), cSe = (e) => class {
|
|
|
75307
75351
|
},
|
|
75308
75352
|
// @ts-ignore
|
|
75309
75353
|
next: e
|
|
75310
|
-
}),
|
|
75354
|
+
}), xSe = (e, t) => DF(() => {
|
|
75311
75355
|
let n;
|
|
75312
75356
|
do
|
|
75313
75357
|
n = e.next();
|
|
@@ -75341,7 +75385,7 @@ const Js = (e, t, n) => t.clients.forEach((i, r) => {
|
|
|
75341
75385
|
for (let l = 0, c = i[l]; l < i.length && c.clock < a; c = i[++l])
|
|
75342
75386
|
BF(e, o, c.clock, c.len, n);
|
|
75343
75387
|
}
|
|
75344
|
-
}),
|
|
75388
|
+
}), kSe = (e, t) => {
|
|
75345
75389
|
let n = 0, i = e.length - 1;
|
|
75346
75390
|
for (; n <= i; ) {
|
|
75347
75391
|
const r = qo((n + i) / 2), o = e[r], s = o.clock;
|
|
@@ -75355,7 +75399,7 @@ const Js = (e, t, n) => t.clients.forEach((i, r) => {
|
|
|
75355
75399
|
return null;
|
|
75356
75400
|
}, gd = (e, t) => {
|
|
75357
75401
|
const n = e.clients.get(t.client);
|
|
75358
|
-
return n !== void 0 &&
|
|
75402
|
+
return n !== void 0 && kSe(n, t.clock) !== null;
|
|
75359
75403
|
}, y_ = (e) => {
|
|
75360
75404
|
e.clients.forEach((t) => {
|
|
75361
75405
|
t.sort((r, o) => r.clock - o.clock);
|
|
@@ -75373,7 +75417,7 @@ const Js = (e, t, n) => t.clients.forEach((i, r) => {
|
|
|
75373
75417
|
if (!t.clients.has(r)) {
|
|
75374
75418
|
const o = i.slice();
|
|
75375
75419
|
for (let s = n + 1; s < e.length; s++)
|
|
75376
|
-
|
|
75420
|
+
o4e(o, e[s].clients.get(r) || []);
|
|
75377
75421
|
t.clients.set(r, o);
|
|
75378
75422
|
}
|
|
75379
75423
|
});
|
|
@@ -75383,7 +75427,7 @@ const Js = (e, t, n) => t.clients.forEach((i, r) => {
|
|
|
75383
75427
|
/** @type {Array<DeleteItem>} */
|
|
75384
75428
|
[]
|
|
75385
75429
|
)).push(new g_(n, i));
|
|
75386
|
-
}, IF = () => new md(),
|
|
75430
|
+
}, IF = () => new md(), _Se = (e) => {
|
|
75387
75431
|
const t = IF();
|
|
75388
75432
|
return e.clients.forEach((n, i) => {
|
|
75389
75433
|
const r = [];
|
|
@@ -75410,7 +75454,7 @@ const Js = (e, t, n) => t.clients.forEach((i, r) => {
|
|
|
75410
75454
|
e.writeDsClock(s.clock), e.writeDsLen(s.len);
|
|
75411
75455
|
}
|
|
75412
75456
|
});
|
|
75413
|
-
},
|
|
75457
|
+
}, SSe = (e) => {
|
|
75414
75458
|
const t = new md(), n = Kt(e.restDecoder);
|
|
75415
75459
|
for (let i = 0; i < n; i++) {
|
|
75416
75460
|
e.resetDsCurVal();
|
|
@@ -75451,7 +75495,7 @@ class gl extends uF {
|
|
|
75451
75495
|
/**
|
|
75452
75496
|
* @param {DocOpts} opts configuration
|
|
75453
75497
|
*/
|
|
75454
|
-
constructor({ guid: t =
|
|
75498
|
+
constructor({ guid: t = H4e(), collectionid: n = null, gc: i = !0, gcFilter: r = () => !0, meta: o = null, autoLoad: s = !1, shouldLoad: a = !0 } = {}) {
|
|
75455
75499
|
super(), this.gc = i, this.gcFilter = r, this.clientID = MF(), this.guid = t, this.collectionid = n, this.share = /* @__PURE__ */ new Map(), this.store = new FF(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = a, this.autoLoad = s, this.meta = o, this.isLoaded = !1, this.isSynced = !1, this.isDestroyed = !1, this.whenLoaded = fA((c) => {
|
|
75456
75500
|
this.on("load", () => {
|
|
75457
75501
|
this.isLoaded = !0, c(this);
|
|
@@ -75660,7 +75704,7 @@ class gl extends uF {
|
|
|
75660
75704
|
this.emit("destroyed", [!0]), this.emit("destroy", [this]), super.destroy();
|
|
75661
75705
|
}
|
|
75662
75706
|
}
|
|
75663
|
-
class
|
|
75707
|
+
class CSe {
|
|
75664
75708
|
/**
|
|
75665
75709
|
* @param {decoding.Decoder} decoder
|
|
75666
75710
|
*/
|
|
@@ -75684,12 +75728,12 @@ class SSe {
|
|
|
75684
75728
|
return this.dsCurrVal += t, t;
|
|
75685
75729
|
}
|
|
75686
75730
|
}
|
|
75687
|
-
class oy extends
|
|
75731
|
+
class oy extends CSe {
|
|
75688
75732
|
/**
|
|
75689
75733
|
* @param {decoding.Decoder} decoder
|
|
75690
75734
|
*/
|
|
75691
75735
|
constructor(t) {
|
|
75692
|
-
super(t), this.keys = [], Kt(t), this.keyClockDecoder = new rb(Gi(t)), this.clientDecoder = new lm(Gi(t)), this.leftClockDecoder = new rb(Gi(t)), this.rightClockDecoder = new rb(Gi(t)), this.infoDecoder = new dA(Gi(t), Eu), this.stringDecoder = new
|
|
75736
|
+
super(t), this.keys = [], Kt(t), this.keyClockDecoder = new rb(Gi(t)), this.clientDecoder = new lm(Gi(t)), this.leftClockDecoder = new rb(Gi(t)), this.rightClockDecoder = new rb(Gi(t)), this.infoDecoder = new dA(Gi(t), Eu), this.stringDecoder = new F4e(Gi(t)), this.parentInfoDecoder = new dA(Gi(t), Eu), this.typeRefDecoder = new lm(Gi(t)), this.lenDecoder = new lm(Gi(t));
|
|
75693
75737
|
}
|
|
75694
75738
|
/**
|
|
75695
75739
|
* @return {ID}
|
|
@@ -75780,7 +75824,7 @@ class oy extends SSe {
|
|
|
75780
75824
|
}
|
|
75781
75825
|
}
|
|
75782
75826
|
}
|
|
75783
|
-
class
|
|
75827
|
+
class ESe {
|
|
75784
75828
|
constructor() {
|
|
75785
75829
|
this.restEncoder = Nh();
|
|
75786
75830
|
}
|
|
@@ -75802,7 +75846,7 @@ class CSe {
|
|
|
75802
75846
|
Et(this.restEncoder, t);
|
|
75803
75847
|
}
|
|
75804
75848
|
}
|
|
75805
|
-
class
|
|
75849
|
+
class NSe extends ESe {
|
|
75806
75850
|
/**
|
|
75807
75851
|
* @param {ID} id
|
|
75808
75852
|
*/
|
|
@@ -75879,7 +75923,7 @@ class ESe extends CSe {
|
|
|
75879
75923
|
nc(this.restEncoder, t);
|
|
75880
75924
|
}
|
|
75881
75925
|
}
|
|
75882
|
-
class
|
|
75926
|
+
class ASe {
|
|
75883
75927
|
constructor() {
|
|
75884
75928
|
this.restEncoder = Nh(), this.dsCurrVal = 0;
|
|
75885
75929
|
}
|
|
@@ -75903,9 +75947,9 @@ class NSe {
|
|
|
75903
75947
|
t === 0 && Ni(), Et(this.restEncoder, t - 1), this.dsCurrVal += t;
|
|
75904
75948
|
}
|
|
75905
75949
|
}
|
|
75906
|
-
class V1 extends
|
|
75950
|
+
class V1 extends ASe {
|
|
75907
75951
|
constructor() {
|
|
75908
|
-
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new ib(), this.clientEncoder = new am(), this.leftClockEncoder = new ib(), this.rightClockEncoder = new ib(), this.infoEncoder = new aA(Px), this.stringEncoder = new
|
|
75952
|
+
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new ib(), this.clientEncoder = new am(), this.leftClockEncoder = new ib(), this.rightClockEncoder = new ib(), this.infoEncoder = new aA(Px), this.stringEncoder = new A4e(), this.parentInfoEncoder = new aA(Px), this.typeRefEncoder = new am(), this.lenEncoder = new am();
|
|
75909
75953
|
}
|
|
75910
75954
|
toUint8Array() {
|
|
75911
75955
|
const t = Nh();
|
|
@@ -75996,7 +76040,7 @@ class V1 extends NSe {
|
|
|
75996
76040
|
n === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(t)) : this.keyClockEncoder.write(n);
|
|
75997
76041
|
}
|
|
75998
76042
|
}
|
|
75999
|
-
const
|
|
76043
|
+
const TSe = (e, t, n, i) => {
|
|
76000
76044
|
i = Ys(i, t[0].id.clock);
|
|
76001
76045
|
const r = Pr(t, i);
|
|
76002
76046
|
Et(e.restEncoder, t.length - r), e.writeClient(n), Et(e.restEncoder, i);
|
|
@@ -76011,7 +76055,7 @@ const ASe = (e, t, n, i) => {
|
|
|
76011
76055
|
}), W1(t).forEach((r, o) => {
|
|
76012
76056
|
n.has(o) || i.set(o, 0);
|
|
76013
76057
|
}), Et(e.restEncoder, i.size), il(i.entries()).sort((r, o) => o[0] - r[0]).forEach(([r, o]) => {
|
|
76014
|
-
|
|
76058
|
+
TSe(
|
|
76015
76059
|
e,
|
|
76016
76060
|
/** @type {Array<GC|Item>} */
|
|
76017
76061
|
t.clients.get(r),
|
|
@@ -76019,7 +76063,7 @@ const ASe = (e, t, n, i) => {
|
|
|
76019
76063
|
o
|
|
76020
76064
|
);
|
|
76021
76065
|
});
|
|
76022
|
-
},
|
|
76066
|
+
}, OSe = (e, t) => {
|
|
76023
76067
|
const n = Tr(), i = Kt(e.restDecoder);
|
|
76024
76068
|
for (let r = 0; r < i; r++) {
|
|
76025
76069
|
const o = Kt(e.restDecoder), s = new Array(o), a = e.readClient();
|
|
@@ -76062,7 +76106,7 @@ const ASe = (e, t, n, i) => {
|
|
|
76062
76106
|
}
|
|
76063
76107
|
}
|
|
76064
76108
|
return n;
|
|
76065
|
-
},
|
|
76109
|
+
}, DSe = (e, t, n) => {
|
|
76066
76110
|
const i = [];
|
|
76067
76111
|
let r = il(n.keys()).sort((h, p) => h - p);
|
|
76068
76112
|
if (r.length === 0)
|
|
@@ -76147,10 +76191,10 @@ const ASe = (e, t, n, i) => {
|
|
|
76147
76191
|
return PF(h, a, /* @__PURE__ */ new Map()), Et(h.restEncoder, 0), { missing: l, update: h.toUint8Array() };
|
|
76148
76192
|
}
|
|
76149
76193
|
return null;
|
|
76150
|
-
},
|
|
76194
|
+
}, ISe = (e, t) => PF(e, t.doc.store, t.beforeState), MSe = (e, t, n, i = new oy(e)) => jt(t, (r) => {
|
|
76151
76195
|
r.local = !1;
|
|
76152
76196
|
let o = !1;
|
|
76153
|
-
const s = r.doc, a = s.store, l =
|
|
76197
|
+
const s = r.doc, a = s.store, l = OSe(i, s), c = DSe(r, a, l), d = a.pendingStructs;
|
|
76154
76198
|
if (d) {
|
|
76155
76199
|
for (const [u, h] of d.missing)
|
|
76156
76200
|
if (h < gn(a, u)) {
|
|
@@ -76183,14 +76227,14 @@ const ASe = (e, t, n, i) => {
|
|
|
76183
76227
|
}
|
|
76184
76228
|
}, n, !1), Bx = (e, t, n, i = oy) => {
|
|
76185
76229
|
const r = f_(t);
|
|
76186
|
-
|
|
76230
|
+
MSe(r, e, n, new i(r));
|
|
76187
76231
|
};
|
|
76188
|
-
class
|
|
76232
|
+
class PSe {
|
|
76189
76233
|
constructor() {
|
|
76190
76234
|
this.l = [];
|
|
76191
76235
|
}
|
|
76192
76236
|
}
|
|
76193
|
-
const mA = () => new
|
|
76237
|
+
const mA = () => new PSe(), gA = (e, t) => e.l.push(t), yA = (e, t) => {
|
|
76194
76238
|
const n = e.l, i = n.length;
|
|
76195
76239
|
e.l = n.filter((r) => t !== r), i === e.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist.");
|
|
76196
76240
|
}, RF = (e, t, n) => p_(e.l, [t, n]);
|
|
@@ -76228,7 +76272,7 @@ class sy {
|
|
|
76228
76272
|
this.type = t, this.tname = n, this.item = i, this.assoc = r;
|
|
76229
76273
|
}
|
|
76230
76274
|
}
|
|
76231
|
-
class
|
|
76275
|
+
class RSe {
|
|
76232
76276
|
/**
|
|
76233
76277
|
* @param {AbstractType<any>} type
|
|
76234
76278
|
* @param {number} index
|
|
@@ -76238,7 +76282,7 @@ class PSe {
|
|
|
76238
76282
|
this.type = t, this.index = n, this.assoc = i;
|
|
76239
76283
|
}
|
|
76240
76284
|
}
|
|
76241
|
-
const
|
|
76285
|
+
const LSe = (e, t, n = 0) => new RSe(e, t, n), Sp = (e, t, n) => {
|
|
76242
76286
|
let i = null, r = null;
|
|
76243
76287
|
return e._item === null ? r = Au(e) : i = dt(e._item.id.client, e._item.id.clock), new sy(i, r, t, n);
|
|
76244
76288
|
}, sb = (e, t, n = 0) => {
|
|
@@ -76259,19 +76303,19 @@ const RSe = (e, t, n = 0) => new PSe(e, t, n), Sp = (e, t, n) => {
|
|
|
76259
76303
|
i = i.right;
|
|
76260
76304
|
}
|
|
76261
76305
|
return Sp(e, null, n);
|
|
76262
|
-
},
|
|
76306
|
+
}, FSe = (e, t) => {
|
|
76263
76307
|
const n = rc(e, t), i = t.clock - n.id.clock;
|
|
76264
76308
|
return {
|
|
76265
76309
|
item: n,
|
|
76266
76310
|
diff: i
|
|
76267
76311
|
};
|
|
76268
|
-
},
|
|
76312
|
+
}, $Se = (e, t, n = !0) => {
|
|
76269
76313
|
const i = t.store, r = e.item, o = e.type, s = e.tname, a = e.assoc;
|
|
76270
76314
|
let l = null, c = 0;
|
|
76271
76315
|
if (r !== null) {
|
|
76272
76316
|
if (gn(i, r.client) <= r.clock)
|
|
76273
76317
|
return null;
|
|
76274
|
-
const d = n ? Vx(i, r) :
|
|
76318
|
+
const d = n ? Vx(i, r) : FSe(i, r), f = d.item;
|
|
76275
76319
|
if (!(f instanceof Lt))
|
|
76276
76320
|
return null;
|
|
76277
76321
|
if (l = /** @type {AbstractType<any>} */
|
|
@@ -76296,7 +76340,7 @@ const RSe = (e, t, n = 0) => new PSe(e, t, n), Sp = (e, t, n) => {
|
|
|
76296
76340
|
throw Ni();
|
|
76297
76341
|
a >= 0 ? c = l._length : c = 0;
|
|
76298
76342
|
}
|
|
76299
|
-
return
|
|
76343
|
+
return LSe(l, c, e.assoc);
|
|
76300
76344
|
};
|
|
76301
76345
|
class b_ {
|
|
76302
76346
|
/**
|
|
@@ -76307,7 +76351,7 @@ class b_ {
|
|
|
76307
76351
|
this.ds = t, this.sv = n;
|
|
76308
76352
|
}
|
|
76309
76353
|
}
|
|
76310
|
-
const LF = (e, t) => new b_(e, t), ab = (e) => LF(
|
|
76354
|
+
const LF = (e, t) => new b_(e, t), ab = (e) => LF(_Se(e.store), W1(e.store)), xa = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && (t.sv.get(e.id.client) || 0) > e.id.clock && !gd(t.ds, e.id), zx = (e, t) => {
|
|
76311
76355
|
const n = es(e.meta, zx, nl), i = e.doc.store;
|
|
76312
76356
|
n.has(t) || (t.sv.forEach((r, o) => {
|
|
76313
76357
|
r < gn(i, o) && wi(e, dt(o, r));
|
|
@@ -76356,12 +76400,12 @@ const W1 = (e) => {
|
|
|
76356
76400
|
s = qo((n + i) / 2);
|
|
76357
76401
|
}
|
|
76358
76402
|
throw Ni();
|
|
76359
|
-
},
|
|
76403
|
+
}, BSe = (e, t) => {
|
|
76360
76404
|
const n = e.clients.get(t.client);
|
|
76361
76405
|
return n[Pr(n, t.clock)];
|
|
76362
76406
|
}, rc = (
|
|
76363
76407
|
/** @type {function(StructStore,ID):Item} */
|
|
76364
|
-
|
|
76408
|
+
BSe
|
|
76365
76409
|
), jx = (e, t, n) => {
|
|
76366
76410
|
const i = Pr(t, n), r = t[i];
|
|
76367
76411
|
return r.id.clock < n && r instanceof Lt ? (t.splice(i + 1, 0, fy(e, r, n - r.id.clock)), i + 1) : i;
|
|
@@ -76374,7 +76418,7 @@ const W1 = (e) => {
|
|
|
76374
76418
|
}, vA = (e, t, n) => {
|
|
76375
76419
|
const i = t.clients.get(n.client), r = Pr(i, n.clock), o = i[r];
|
|
76376
76420
|
return n.clock !== o.id.clock + o.length - 1 && o.constructor !== tr && i.splice(r + 1, 0, fy(e, o, n.clock - o.id.clock + 1)), o;
|
|
76377
|
-
},
|
|
76421
|
+
}, zSe = (e, t, n) => {
|
|
76378
76422
|
const i = (
|
|
76379
76423
|
/** @type {Array<GC|Item>} */
|
|
76380
76424
|
e.clients.get(t.id.client)
|
|
@@ -76389,7 +76433,7 @@ const W1 = (e) => {
|
|
|
76389
76433
|
a = t[s++], o < a.id.clock + a.length && jx(e, t, o), r(a);
|
|
76390
76434
|
while (s < t.length && t[s].id.clock < o);
|
|
76391
76435
|
};
|
|
76392
|
-
class
|
|
76436
|
+
class jSe {
|
|
76393
76437
|
/**
|
|
76394
76438
|
* @param {Doc} doc
|
|
76395
76439
|
* @param {any} origin
|
|
@@ -76399,7 +76443,7 @@ class zSe {
|
|
|
76399
76443
|
this.doc = t, this.deleteSet = new md(), this.beforeState = W1(t.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = n, this.meta = /* @__PURE__ */ new Map(), this.local = i, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1;
|
|
76400
76444
|
}
|
|
76401
76445
|
}
|
|
76402
|
-
const bA = (e, t) => t.deleteSet.clients.size === 0 && !
|
|
76446
|
+
const bA = (e, t) => t.deleteSet.clients.size === 0 && !r4e(t.afterState, (n, i) => t.beforeState.get(i) !== n) ? !1 : (y_(t.deleteSet), ISe(e, t), v_(e, t.deleteSet), !0), wA = (e, t, n) => {
|
|
76403
76447
|
const i = t._item;
|
|
76404
76448
|
(i === null || i.id.clock < (e.beforeState.get(i.id.client) || 0) && !i.deleted) && es(e.changed, t, nl).add(n);
|
|
76405
76449
|
}, cm = (e, t) => {
|
|
@@ -76418,7 +76462,7 @@ const bA = (e, t) => t.deleteSet.clients.size === 0 && !i4e(t.afterState, (n, i)
|
|
|
76418
76462
|
}
|
|
76419
76463
|
const o = t - r;
|
|
76420
76464
|
return o && e.splice(t + 1 - o, o), o;
|
|
76421
|
-
},
|
|
76465
|
+
}, HSe = (e, t, n) => {
|
|
76422
76466
|
for (const [i, r] of e.clients.entries()) {
|
|
76423
76467
|
const o = (
|
|
76424
76468
|
/** @type {Array<GC|Item>} */
|
|
@@ -76434,7 +76478,7 @@ const bA = (e, t) => t.deleteSet.clients.size === 0 && !i4e(t.afterState, (n, i)
|
|
|
76434
76478
|
}
|
|
76435
76479
|
}
|
|
76436
76480
|
}
|
|
76437
|
-
},
|
|
76481
|
+
}, VSe = (e, t) => {
|
|
76438
76482
|
e.clients.forEach((n, i) => {
|
|
76439
76483
|
const r = (
|
|
76440
76484
|
/** @type {Array<GC|Item>} */
|
|
@@ -76464,9 +76508,9 @@ const bA = (e, t) => t.deleteSet.clients.size === 0 && !i4e(t.afterState, (n, i)
|
|
|
76464
76508
|
d.currentTarget = c, d._path = null;
|
|
76465
76509
|
}), l.sort((d, f) => d.path.length - f.path.length), RF(c._dEH, l, n));
|
|
76466
76510
|
});
|
|
76467
|
-
}), a.push(() => i.emit("afterTransaction", [n, i])), p_(a, []), n._needFormattingCleanup &&
|
|
76511
|
+
}), a.push(() => i.emit("afterTransaction", [n, i])), p_(a, []), n._needFormattingCleanup && cCe(n);
|
|
76468
76512
|
} finally {
|
|
76469
|
-
i.gc &&
|
|
76513
|
+
i.gc && HSe(o, r, i.gcFilter), VSe(o, r), n.afterState.forEach((d, f) => {
|
|
76470
76514
|
const u = n.beforeState.get(f) || 0;
|
|
76471
76515
|
if (u !== d) {
|
|
76472
76516
|
const h = (
|
|
@@ -76484,8 +76528,8 @@ const bA = (e, t) => t.deleteSet.clients.size === 0 && !i4e(t.afterState, (n, i)
|
|
|
76484
76528
|
), p = Pr(h, u);
|
|
76485
76529
|
p + 1 < h.length && cm(h, p + 1) > 1 || p > 0 && cm(h, p);
|
|
76486
76530
|
}
|
|
76487
|
-
if (!n.local && n.afterState.get(i.clientID) !== n.beforeState.get(i.clientID) && (
|
|
76488
|
-
const d = new
|
|
76531
|
+
if (!n.local && n.afterState.get(i.clientID) !== n.beforeState.get(i.clientID) && (wSe(m_, CF, "[yjs] ", EF, NF, "Changed the client-id because another client seems to be using it."), i.clientID = MF()), i.emit("afterTransactionCleanup", [n, i]), i._observers.has("update")) {
|
|
76532
|
+
const d = new NSe();
|
|
76489
76533
|
bA(d, n) && i.emit("update", [d.toUint8Array(), n.origin, i, n]);
|
|
76490
76534
|
}
|
|
76491
76535
|
if (i._observers.has("updateV2")) {
|
|
@@ -76501,7 +76545,7 @@ const bA = (e, t) => t.deleteSet.clients.size === 0 && !i4e(t.afterState, (n, i)
|
|
|
76501
76545
|
}, jt = (e, t, n = null, i = !0) => {
|
|
76502
76546
|
const r = e._transactionCleanups;
|
|
76503
76547
|
let o = !1, s = null;
|
|
76504
|
-
e._transaction === null && (o = !0, e._transaction = new
|
|
76548
|
+
e._transaction === null && (o = !0, e._transaction = new jSe(e, n, i), r.push(e._transaction), r.length === 1 && e.emit("beforeAllTransactions", [e]), e.emit("beforeTransaction", [e._transaction, e]));
|
|
76505
76549
|
try {
|
|
76506
76550
|
s = t(e._transaction);
|
|
76507
76551
|
} finally {
|
|
@@ -76512,7 +76556,7 @@ const bA = (e, t) => t.deleteSet.clients.size === 0 && !i4e(t.afterState, (n, i)
|
|
|
76512
76556
|
}
|
|
76513
76557
|
return s;
|
|
76514
76558
|
};
|
|
76515
|
-
class
|
|
76559
|
+
class WSe {
|
|
76516
76560
|
/**
|
|
76517
76561
|
* @param {DeleteSet} deletions
|
|
76518
76562
|
* @param {DeleteSet} insertions
|
|
@@ -76608,13 +76652,13 @@ class jF extends uF {
|
|
|
76608
76652
|
const w = l.beforeState.get(v) || 0, x = y - w;
|
|
76609
76653
|
x > 0 && Nu(u, v, w, x);
|
|
76610
76654
|
});
|
|
76611
|
-
const h =
|
|
76655
|
+
const h = V4e();
|
|
76612
76656
|
let p = !1;
|
|
76613
76657
|
if (this.lastChange > 0 && h - this.lastChange < this.captureTimeout && f.length > 0 && !c && !d) {
|
|
76614
76658
|
const y = f[f.length - 1];
|
|
76615
76659
|
y.deletions = $x([y.deletions, l.deleteSet]), y.insertions = $x([y.insertions, u]);
|
|
76616
76660
|
} else
|
|
76617
|
-
f.push(new
|
|
76661
|
+
f.push(new WSe(l.deleteSet, u)), p = !0;
|
|
76618
76662
|
!c && !d && (this.lastChange = h), Js(
|
|
76619
76663
|
l,
|
|
76620
76664
|
l.deleteSet,
|
|
@@ -76734,7 +76778,7 @@ class jF extends uF {
|
|
|
76734
76778
|
this.trackedOrigins.delete(this), this.doc.off("afterTransaction", this.afterTransactionHandler), super.destroy();
|
|
76735
76779
|
}
|
|
76736
76780
|
}
|
|
76737
|
-
function*
|
|
76781
|
+
function* USe(e) {
|
|
76738
76782
|
const t = Kt(e.restDecoder);
|
|
76739
76783
|
for (let n = 0; n < t; n++) {
|
|
76740
76784
|
const i = Kt(e.restDecoder), r = e.readClient();
|
|
@@ -76771,13 +76815,13 @@ function* WSe(e) {
|
|
|
76771
76815
|
}
|
|
76772
76816
|
}
|
|
76773
76817
|
}
|
|
76774
|
-
class
|
|
76818
|
+
class qSe {
|
|
76775
76819
|
/**
|
|
76776
76820
|
* @param {UpdateDecoderV1 | UpdateDecoderV2} decoder
|
|
76777
76821
|
* @param {boolean} filterSkips
|
|
76778
76822
|
*/
|
|
76779
76823
|
constructor(t, n) {
|
|
76780
|
-
this.gen =
|
|
76824
|
+
this.gen = USe(t), this.curr = null, this.done = !1, this.filterSkips = n, this.next();
|
|
76781
76825
|
}
|
|
76782
76826
|
/**
|
|
76783
76827
|
* @return {Item | GC | Skip |null}
|
|
@@ -76789,7 +76833,7 @@ class USe {
|
|
|
76789
76833
|
return this.curr;
|
|
76790
76834
|
}
|
|
76791
76835
|
}
|
|
76792
|
-
class
|
|
76836
|
+
class GSe {
|
|
76793
76837
|
/**
|
|
76794
76838
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
76795
76839
|
*/
|
|
@@ -76797,7 +76841,7 @@ class qSe {
|
|
|
76797
76841
|
this.currClient = 0, this.startClock = 0, this.written = 0, this.encoder = t, this.clientStructs = [];
|
|
76798
76842
|
}
|
|
76799
76843
|
}
|
|
76800
|
-
const
|
|
76844
|
+
const KSe = (e, t) => {
|
|
76801
76845
|
if (e.constructor === tr) {
|
|
76802
76846
|
const { client: n, clock: i } = e.id;
|
|
76803
76847
|
return new tr(dt(n, i + t), e.length - t);
|
|
@@ -76824,8 +76868,8 @@ const GSe = (e, t) => {
|
|
|
76824
76868
|
if (e.length === 1)
|
|
76825
76869
|
return e[0];
|
|
76826
76870
|
const i = e.map((d) => new t(f_(d)));
|
|
76827
|
-
let r = i.map((d) => new
|
|
76828
|
-
const s = new n(), a = new
|
|
76871
|
+
let r = i.map((d) => new qSe(d, !0)), o = null;
|
|
76872
|
+
const s = new n(), a = new GSe(s);
|
|
76829
76873
|
for (; r = r.filter((u) => u.curr !== null), r.sort(
|
|
76830
76874
|
/** @type {function(any,any):number} */
|
|
76831
76875
|
(u, h) => {
|
|
@@ -76863,7 +76907,7 @@ const GSe = (e, t) => {
|
|
|
76863
76907
|
}
|
|
76864
76908
|
else {
|
|
76865
76909
|
const p = o.struct.id.clock + o.struct.length - u.id.clock;
|
|
76866
|
-
p > 0 && (o.struct.constructor === _r ? o.struct.length -= p : u =
|
|
76910
|
+
p > 0 && (o.struct.constructor === _r ? o.struct.length -= p : u = KSe(u, p)), o.struct.mergeWith(
|
|
76867
76911
|
/** @type {any} */
|
|
76868
76912
|
u
|
|
76869
76913
|
) || (Ld(a, o.struct, o.offset), o = { struct: u, offset: 0 }, d.next());
|
|
@@ -76876,14 +76920,14 @@ const GSe = (e, t) => {
|
|
|
76876
76920
|
for (let u = d.curr; u !== null && u.id.client === f && u.id.clock === o.struct.id.clock + o.struct.length && u.constructor !== _r; u = d.next())
|
|
76877
76921
|
Ld(a, o.struct, o.offset), o = { struct: u, offset: 0 };
|
|
76878
76922
|
}
|
|
76879
|
-
o !== null && (Ld(a, o.struct, o.offset), o = null),
|
|
76880
|
-
const l = i.map((d) =>
|
|
76923
|
+
o !== null && (Ld(a, o.struct, o.offset), o = null), YSe(a);
|
|
76924
|
+
const l = i.map((d) => SSe(d)), c = $x(l);
|
|
76881
76925
|
return v_(s, c), s.toUint8Array();
|
|
76882
76926
|
}, HF = (e) => {
|
|
76883
76927
|
e.written > 0 && (e.clientStructs.push({ written: e.written, restEncoder: Er(e.encoder.restEncoder) }), e.encoder.restEncoder = Nh(), e.written = 0);
|
|
76884
76928
|
}, Ld = (e, t, n) => {
|
|
76885
76929
|
e.written > 0 && e.currClient !== t.id.client && HF(e), e.written === 0 && (e.currClient = t.id.client, e.encoder.writeClient(t.id.client), Et(e.encoder.restEncoder, t.id.clock + n)), t.write(e.encoder, n), e.written++;
|
|
76886
|
-
},
|
|
76930
|
+
}, YSe = (e) => {
|
|
76887
76931
|
HF(e);
|
|
76888
76932
|
const t = e.encoder.restEncoder;
|
|
76889
76933
|
Et(t, e.clientStructs.length);
|
|
@@ -76914,7 +76958,7 @@ class U1 {
|
|
|
76914
76958
|
* type === event.target // => true
|
|
76915
76959
|
*/
|
|
76916
76960
|
get path() {
|
|
76917
|
-
return this._path || (this._path =
|
|
76961
|
+
return this._path || (this._path = XSe(this.currentTarget, this.target));
|
|
76918
76962
|
}
|
|
76919
76963
|
/**
|
|
76920
76964
|
* Check if a struct is deleted by this event.
|
|
@@ -77026,7 +77070,7 @@ class U1 {
|
|
|
77026
77070
|
);
|
|
77027
77071
|
}
|
|
77028
77072
|
}
|
|
77029
|
-
const
|
|
77073
|
+
const XSe = (e, t) => {
|
|
77030
77074
|
const n = [];
|
|
77031
77075
|
for (; t._item !== null && t !== e; ) {
|
|
77032
77076
|
if (t._item.parentSub !== null)
|
|
@@ -77048,7 +77092,7 @@ const YSe = (e, t) => {
|
|
|
77048
77092
|
TF("Invalid access: Add Yjs type to a document before reading data.");
|
|
77049
77093
|
}, VF = 80;
|
|
77050
77094
|
let w_ = 0;
|
|
77051
|
-
class
|
|
77095
|
+
class JSe {
|
|
77052
77096
|
/**
|
|
77053
77097
|
* @param {Item} p
|
|
77054
77098
|
* @param {number} index
|
|
@@ -77057,16 +77101,16 @@ class XSe {
|
|
|
77057
77101
|
t.marker = !0, this.p = t, this.index = n, this.timestamp = w_++;
|
|
77058
77102
|
}
|
|
77059
77103
|
}
|
|
77060
|
-
const
|
|
77104
|
+
const ZSe = (e) => {
|
|
77061
77105
|
e.timestamp = w_++;
|
|
77062
77106
|
}, WF = (e, t, n) => {
|
|
77063
77107
|
e.p.marker = !1, e.p = t, t.marker = !0, e.index = n, e.timestamp = w_++;
|
|
77064
|
-
},
|
|
77108
|
+
}, QSe = (e, t, n) => {
|
|
77065
77109
|
if (e.length >= VF) {
|
|
77066
77110
|
const i = e.reduce((r, o) => r.timestamp < o.timestamp ? r : o);
|
|
77067
77111
|
return WF(i, t, n), i;
|
|
77068
77112
|
} else {
|
|
77069
|
-
const i = new
|
|
77113
|
+
const i = new JSe(t, n);
|
|
77070
77114
|
return e.push(i), i;
|
|
77071
77115
|
}
|
|
77072
77116
|
}, q1 = (e, t) => {
|
|
@@ -77074,7 +77118,7 @@ const JSe = (e) => {
|
|
|
77074
77118
|
return null;
|
|
77075
77119
|
const n = e._searchMarker.length === 0 ? null : e._searchMarker.reduce((o, s) => sm(t - o.index) < sm(t - s.index) ? o : s);
|
|
77076
77120
|
let i = e._start, r = 0;
|
|
77077
|
-
for (n !== null && (i = n.p, r = n.index,
|
|
77121
|
+
for (n !== null && (i = n.p, r = n.index, ZSe(n)); i.right !== null && r < t; ) {
|
|
77078
77122
|
if (!i.deleted && i.countable) {
|
|
77079
77123
|
if (t < r + i.length)
|
|
77080
77124
|
break;
|
|
@@ -77087,7 +77131,7 @@ const JSe = (e) => {
|
|
|
77087
77131
|
for (; i.left !== null && i.left.id.client === i.id.client && i.left.id.clock + i.left.length === i.id.clock; )
|
|
77088
77132
|
i = i.left, !i.deleted && i.countable && (r -= i.length);
|
|
77089
77133
|
return n !== null && sm(n.index - r) < /** @type {YText|YArray<any>} */
|
|
77090
|
-
i.parent.length / VF ? (WF(n, i, r), n) :
|
|
77134
|
+
i.parent.length / VF ? (WF(n, i, r), n) : QSe(e._searchMarker, i, r);
|
|
77091
77135
|
}, Ou = (e, t, n) => {
|
|
77092
77136
|
for (let i = e.length - 1; i >= 0; i--) {
|
|
77093
77137
|
const r = e[i];
|
|
@@ -77274,7 +77318,7 @@ const UF = (e, t, n) => {
|
|
|
77274
77318
|
return Du(e, (i, r) => {
|
|
77275
77319
|
n.push(t(i, r, e));
|
|
77276
77320
|
}), n;
|
|
77277
|
-
},
|
|
77321
|
+
}, eCe = (e) => {
|
|
77278
77322
|
let t = e._start, n = null, i = 0;
|
|
77279
77323
|
return {
|
|
77280
77324
|
[Symbol.iterator]() {
|
|
@@ -77366,7 +77410,7 @@ const UF = (e, t, n) => {
|
|
|
77366
77410
|
n -= s.length;
|
|
77367
77411
|
}
|
|
77368
77412
|
return t._searchMarker && Ou(t._searchMarker, r, i.length), ay(e, t, s, i);
|
|
77369
|
-
},
|
|
77413
|
+
}, tCe = (e, t, n) => {
|
|
77370
77414
|
let r = (t._searchMarker || []).reduce((o, s) => s.index > o.index ? s : o, { index: 0, p: t._start }).p;
|
|
77371
77415
|
if (r)
|
|
77372
77416
|
for (; r.right; )
|
|
@@ -77440,7 +77484,7 @@ const UF = (e, t, n) => {
|
|
|
77440
77484
|
e.doc ?? Xn();
|
|
77441
77485
|
const n = e._map.get(t);
|
|
77442
77486
|
return n !== void 0 && !n.deleted;
|
|
77443
|
-
},
|
|
77487
|
+
}, nCe = (e, t) => {
|
|
77444
77488
|
const n = {};
|
|
77445
77489
|
return e._map.forEach((i, r) => {
|
|
77446
77490
|
let o = i;
|
|
@@ -77448,12 +77492,12 @@ const UF = (e, t, n) => {
|
|
|
77448
77492
|
o = o.left;
|
|
77449
77493
|
o !== null && xa(o, t) && (n[r] = o.content.getContent()[o.length - 1]);
|
|
77450
77494
|
}), n;
|
|
77451
|
-
}, Cp = (e) => (e.doc ?? Xn(),
|
|
77495
|
+
}, Cp = (e) => (e.doc ?? Xn(), xSe(
|
|
77452
77496
|
e._map.entries(),
|
|
77453
77497
|
/** @param {any} entry */
|
|
77454
77498
|
(t) => !t[1].deleted
|
|
77455
77499
|
));
|
|
77456
|
-
class
|
|
77500
|
+
class iCe extends U1 {
|
|
77457
77501
|
}
|
|
77458
77502
|
class oc extends An {
|
|
77459
77503
|
constructor() {
|
|
@@ -77518,7 +77562,7 @@ class oc extends An {
|
|
|
77518
77562
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
77519
77563
|
*/
|
|
77520
77564
|
_callObserver(t, n) {
|
|
77521
|
-
super._callObserver(t, n), G1(this, t, new
|
|
77565
|
+
super._callObserver(t, n), G1(this, t, new iCe(this, t));
|
|
77522
77566
|
}
|
|
77523
77567
|
/**
|
|
77524
77568
|
* Inserts new content at an index.
|
|
@@ -77556,7 +77600,7 @@ class oc extends An {
|
|
|
77556
77600
|
*/
|
|
77557
77601
|
push(t) {
|
|
77558
77602
|
this.doc !== null ? jt(this.doc, (n) => {
|
|
77559
|
-
|
|
77603
|
+
tCe(
|
|
77560
77604
|
n,
|
|
77561
77605
|
this,
|
|
77562
77606
|
/** @type {any} */
|
|
@@ -77647,17 +77691,17 @@ class oc extends An {
|
|
|
77647
77691
|
* @return {IterableIterator<T>}
|
|
77648
77692
|
*/
|
|
77649
77693
|
[Symbol.iterator]() {
|
|
77650
|
-
return
|
|
77694
|
+
return eCe(this);
|
|
77651
77695
|
}
|
|
77652
77696
|
/**
|
|
77653
77697
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
77654
77698
|
*/
|
|
77655
77699
|
_write(t) {
|
|
77656
|
-
t.writeTypeRef(
|
|
77700
|
+
t.writeTypeRef(ACe);
|
|
77657
77701
|
}
|
|
77658
77702
|
}
|
|
77659
|
-
const
|
|
77660
|
-
class
|
|
77703
|
+
const rCe = (e) => new oc();
|
|
77704
|
+
class oCe extends U1 {
|
|
77661
77705
|
/**
|
|
77662
77706
|
* @param {YMap<T>} ymap The YArray that changed.
|
|
77663
77707
|
* @param {Transaction} transaction
|
|
@@ -77719,7 +77763,7 @@ class Uc extends An {
|
|
|
77719
77763
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
77720
77764
|
*/
|
|
77721
77765
|
_callObserver(t, n) {
|
|
77722
|
-
G1(this, t, new
|
|
77766
|
+
G1(this, t, new oCe(this, t, n));
|
|
77723
77767
|
}
|
|
77724
77768
|
/**
|
|
77725
77769
|
* Transforms this Shared Type to a JSON object.
|
|
@@ -77865,10 +77909,10 @@ class Uc extends An {
|
|
|
77865
77909
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
77866
77910
|
*/
|
|
77867
77911
|
_write(t) {
|
|
77868
|
-
t.writeTypeRef(
|
|
77912
|
+
t.writeTypeRef(TCe);
|
|
77869
77913
|
}
|
|
77870
77914
|
}
|
|
77871
|
-
const
|
|
77915
|
+
const sCe = (e) => new Uc(), Bs = (e, t) => e === t || typeof e == "object" && typeof t == "object" && e && t && J4e(e, t);
|
|
77872
77916
|
class Hx {
|
|
77873
77917
|
/**
|
|
77874
77918
|
* @param {Item|null} left
|
|
@@ -78035,7 +78079,7 @@ const CA = (e, t, n) => {
|
|
|
78035
78079
|
t.right;
|
|
78036
78080
|
}
|
|
78037
78081
|
return a;
|
|
78038
|
-
},
|
|
78082
|
+
}, aCe = (e, t) => {
|
|
78039
78083
|
for (; t && t.right && (t.right.deleted || !t.right.countable); )
|
|
78040
78084
|
t = t.right;
|
|
78041
78085
|
const n = /* @__PURE__ */ new Set();
|
|
@@ -78049,7 +78093,7 @@ const CA = (e, t, n) => {
|
|
|
78049
78093
|
}
|
|
78050
78094
|
t = t.left;
|
|
78051
78095
|
}
|
|
78052
|
-
},
|
|
78096
|
+
}, lCe = (e) => {
|
|
78053
78097
|
let t = 0;
|
|
78054
78098
|
return jt(
|
|
78055
78099
|
/** @type {Doc} */
|
|
@@ -78068,7 +78112,7 @@ const CA = (e, t, n) => {
|
|
|
78068
78112
|
) : (t += r$(n, i, r, o, s), o = Dx(s), i = r)), r = r.right;
|
|
78069
78113
|
}
|
|
78070
78114
|
), t;
|
|
78071
|
-
},
|
|
78115
|
+
}, cCe = (e) => {
|
|
78072
78116
|
const t = /* @__PURE__ */ new Set(), n = e.doc;
|
|
78073
78117
|
for (const [i, r] of e.afterState.entries()) {
|
|
78074
78118
|
const o = e.beforeState.get(i) || 0;
|
|
@@ -78099,10 +78143,10 @@ const CA = (e, t, n) => {
|
|
|
78099
78143
|
/** @type {YText} */
|
|
78100
78144
|
r.parent
|
|
78101
78145
|
);
|
|
78102
|
-
r.content.constructor === wn ? t.add(o) :
|
|
78146
|
+
r.content.constructor === wn ? t.add(o) : aCe(i, r);
|
|
78103
78147
|
});
|
|
78104
78148
|
for (const r of t)
|
|
78105
|
-
|
|
78149
|
+
lCe(r);
|
|
78106
78150
|
});
|
|
78107
78151
|
}, NA = (e, t, n) => {
|
|
78108
78152
|
const i = n, r = Dx(t.currentAttributes), o = t.right;
|
|
@@ -78125,7 +78169,7 @@ const CA = (e, t, n) => {
|
|
|
78125
78169
|
);
|
|
78126
78170
|
return s._searchMarker && Ou(s._searchMarker, t.index, -i + n), t;
|
|
78127
78171
|
};
|
|
78128
|
-
class
|
|
78172
|
+
class dCe extends U1 {
|
|
78129
78173
|
/**
|
|
78130
78174
|
* @param {YText} ytext
|
|
78131
78175
|
* @param {Transaction} transaction
|
|
@@ -78186,7 +78230,7 @@ class cCe extends U1 {
|
|
|
78186
78230
|
}))), c = "";
|
|
78187
78231
|
break;
|
|
78188
78232
|
case "retain":
|
|
78189
|
-
d > 0 && (h = { retain: d },
|
|
78233
|
+
d > 0 && (h = { retain: d }, Y4e(l) || (h.attributes = G4e({}, l))), d = 0;
|
|
78190
78234
|
break;
|
|
78191
78235
|
}
|
|
78192
78236
|
h && n.push(h), a = null;
|
|
@@ -78296,7 +78340,7 @@ class Zs extends An {
|
|
|
78296
78340
|
*/
|
|
78297
78341
|
_callObserver(t, n) {
|
|
78298
78342
|
super._callObserver(t, n);
|
|
78299
|
-
const i = new
|
|
78343
|
+
const i = new dCe(this, t, n);
|
|
78300
78344
|
G1(this, t, i), !t.local && this._hasFormatting && (t._needFormattingCleanup = !0);
|
|
78301
78345
|
}
|
|
78302
78346
|
/**
|
|
@@ -78551,10 +78595,10 @@ class Zs extends An {
|
|
|
78551
78595
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
78552
78596
|
*/
|
|
78553
78597
|
_write(t) {
|
|
78554
|
-
t.writeTypeRef(
|
|
78598
|
+
t.writeTypeRef(OCe);
|
|
78555
78599
|
}
|
|
78556
78600
|
}
|
|
78557
|
-
const
|
|
78601
|
+
const fCe = (e) => new Zs();
|
|
78558
78602
|
class cb {
|
|
78559
78603
|
/**
|
|
78560
78604
|
* @param {YXmlFragment | YXmlElement} root
|
|
@@ -78707,7 +78751,7 @@ class rl extends An {
|
|
|
78707
78751
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
78708
78752
|
*/
|
|
78709
78753
|
_callObserver(t, n) {
|
|
78710
|
-
G1(this, t, new
|
|
78754
|
+
G1(this, t, new pCe(this, n, t));
|
|
78711
78755
|
}
|
|
78712
78756
|
/**
|
|
78713
78757
|
* Get the string representation of all the children of this YXmlFragment.
|
|
@@ -78857,10 +78901,10 @@ class rl extends An {
|
|
|
78857
78901
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder The encoder to write data to.
|
|
78858
78902
|
*/
|
|
78859
78903
|
_write(t) {
|
|
78860
|
-
t.writeTypeRef(
|
|
78904
|
+
t.writeTypeRef(ICe);
|
|
78861
78905
|
}
|
|
78862
78906
|
}
|
|
78863
|
-
const
|
|
78907
|
+
const uCe = (e) => new rl();
|
|
78864
78908
|
class Yn extends rl {
|
|
78865
78909
|
constructor(t = "UNDEFINED") {
|
|
78866
78910
|
super(), this.nodeName = t, this._prelimAttrs = /* @__PURE__ */ new Map();
|
|
@@ -78920,7 +78964,7 @@ class Yn extends rl {
|
|
|
78920
78964
|
*/
|
|
78921
78965
|
clone() {
|
|
78922
78966
|
const t = new Yn(this.nodeName), n = this.getAttributes();
|
|
78923
|
-
return
|
|
78967
|
+
return K4e(n, (i, r) => {
|
|
78924
78968
|
typeof i == "string" && t.setAttribute(r, i);
|
|
78925
78969
|
}), t.insert(0, this.toArray().map((i) => i instanceof An ? i.clone() : i)), t;
|
|
78926
78970
|
}
|
|
@@ -79015,7 +79059,7 @@ class Yn extends rl {
|
|
|
79015
79059
|
getAttributes(t) {
|
|
79016
79060
|
return (
|
|
79017
79061
|
/** @type {any} */
|
|
79018
|
-
t ?
|
|
79062
|
+
t ? nCe(this, t) : QF(this)
|
|
79019
79063
|
);
|
|
79020
79064
|
}
|
|
79021
79065
|
/**
|
|
@@ -79052,11 +79096,11 @@ class Yn extends rl {
|
|
|
79052
79096
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder The encoder to write data to.
|
|
79053
79097
|
*/
|
|
79054
79098
|
_write(t) {
|
|
79055
|
-
t.writeTypeRef(
|
|
79099
|
+
t.writeTypeRef(DCe), t.writeKey(this.nodeName);
|
|
79056
79100
|
}
|
|
79057
79101
|
}
|
|
79058
|
-
const
|
|
79059
|
-
class
|
|
79102
|
+
const hCe = (e) => new Yn(e.readKey());
|
|
79103
|
+
class pCe extends U1 {
|
|
79060
79104
|
/**
|
|
79061
79105
|
* @param {YXmlElement|YXmlText|YXmlFragment} target The target on which the event is created.
|
|
79062
79106
|
* @param {Set<string|null>} subs The set of changed attributes. `null` is included if the
|
|
@@ -79125,10 +79169,10 @@ class cy extends Uc {
|
|
|
79125
79169
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder The encoder to write data to.
|
|
79126
79170
|
*/
|
|
79127
79171
|
_write(t) {
|
|
79128
|
-
t.writeTypeRef(
|
|
79172
|
+
t.writeTypeRef(MCe), t.writeKey(this.hookName);
|
|
79129
79173
|
}
|
|
79130
79174
|
}
|
|
79131
|
-
const
|
|
79175
|
+
const mCe = (e) => new cy(e.readKey());
|
|
79132
79176
|
class Ei extends Zs {
|
|
79133
79177
|
/**
|
|
79134
79178
|
* @type {YXmlElement|YXmlText|null}
|
|
@@ -79221,10 +79265,10 @@ class Ei extends Zs {
|
|
|
79221
79265
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
79222
79266
|
*/
|
|
79223
79267
|
_write(t) {
|
|
79224
|
-
t.writeTypeRef(
|
|
79268
|
+
t.writeTypeRef(PCe);
|
|
79225
79269
|
}
|
|
79226
79270
|
}
|
|
79227
|
-
const
|
|
79271
|
+
const gCe = (e) => new Ei();
|
|
79228
79272
|
class __ {
|
|
79229
79273
|
/**
|
|
79230
79274
|
* @param {ID} id
|
|
@@ -79265,7 +79309,7 @@ class __ {
|
|
|
79265
79309
|
throw Or();
|
|
79266
79310
|
}
|
|
79267
79311
|
}
|
|
79268
|
-
const
|
|
79312
|
+
const yCe = 0;
|
|
79269
79313
|
class tr extends __ {
|
|
79270
79314
|
get deleted() {
|
|
79271
79315
|
return !0;
|
|
@@ -79291,7 +79335,7 @@ class tr extends __ {
|
|
|
79291
79335
|
* @param {number} offset
|
|
79292
79336
|
*/
|
|
79293
79337
|
write(t, n) {
|
|
79294
|
-
t.writeInfo(
|
|
79338
|
+
t.writeInfo(yCe), t.writeLen(this.length - n);
|
|
79295
79339
|
}
|
|
79296
79340
|
/**
|
|
79297
79341
|
* @param {Transaction} transaction
|
|
@@ -79377,7 +79421,7 @@ class Ah {
|
|
|
79377
79421
|
return 3;
|
|
79378
79422
|
}
|
|
79379
79423
|
}
|
|
79380
|
-
const
|
|
79424
|
+
const vCe = (e) => new Ah(e.readBuf());
|
|
79381
79425
|
class Iu {
|
|
79382
79426
|
/**
|
|
79383
79427
|
* @param {number} len
|
|
@@ -79455,7 +79499,7 @@ class Iu {
|
|
|
79455
79499
|
return 1;
|
|
79456
79500
|
}
|
|
79457
79501
|
}
|
|
79458
|
-
const
|
|
79502
|
+
const bCe = (e) => new Iu(e.readLen()), o$ = (e, t) => new gl({ guid: e, ...t, shouldLoad: t.shouldLoad || t.autoLoad || !1 });
|
|
79459
79503
|
class Th {
|
|
79460
79504
|
/**
|
|
79461
79505
|
* @param {Doc} doc
|
|
@@ -79535,7 +79579,7 @@ class Th {
|
|
|
79535
79579
|
return 9;
|
|
79536
79580
|
}
|
|
79537
79581
|
}
|
|
79538
|
-
const
|
|
79582
|
+
const wCe = (e) => new Th(o$(e.readString(), e.readAny()));
|
|
79539
79583
|
class yl {
|
|
79540
79584
|
/**
|
|
79541
79585
|
* @param {Object} embed
|
|
@@ -79611,7 +79655,7 @@ class yl {
|
|
|
79611
79655
|
return 5;
|
|
79612
79656
|
}
|
|
79613
79657
|
}
|
|
79614
|
-
const
|
|
79658
|
+
const xCe = (e) => new yl(e.readJSON());
|
|
79615
79659
|
class wn {
|
|
79616
79660
|
/**
|
|
79617
79661
|
* @param {string} key
|
|
@@ -79693,7 +79737,7 @@ class wn {
|
|
|
79693
79737
|
return 6;
|
|
79694
79738
|
}
|
|
79695
79739
|
}
|
|
79696
|
-
const
|
|
79740
|
+
const kCe = (e) => new wn(e.readKey(), e.readJSON());
|
|
79697
79741
|
class dy {
|
|
79698
79742
|
/**
|
|
79699
79743
|
* @param {Array<any>} arr
|
|
@@ -79775,20 +79819,20 @@ class dy {
|
|
|
79775
79819
|
return 2;
|
|
79776
79820
|
}
|
|
79777
79821
|
}
|
|
79778
|
-
const
|
|
79822
|
+
const _Ce = (e) => {
|
|
79779
79823
|
const t = e.readLen(), n = [];
|
|
79780
79824
|
for (let i = 0; i < t; i++) {
|
|
79781
79825
|
const r = e.readString();
|
|
79782
79826
|
r === "undefined" ? n.push(void 0) : n.push(JSON.parse(r));
|
|
79783
79827
|
}
|
|
79784
79828
|
return new dy(n);
|
|
79785
|
-
},
|
|
79829
|
+
}, SCe = ry("node_env") === "development";
|
|
79786
79830
|
class ol {
|
|
79787
79831
|
/**
|
|
79788
79832
|
* @param {Array<any>} arr
|
|
79789
79833
|
*/
|
|
79790
79834
|
constructor(t) {
|
|
79791
|
-
this.arr = t,
|
|
79835
|
+
this.arr = t, SCe && xF(t);
|
|
79792
79836
|
}
|
|
79793
79837
|
/**
|
|
79794
79838
|
* @return {number}
|
|
@@ -79864,7 +79908,7 @@ class ol {
|
|
|
79864
79908
|
return 8;
|
|
79865
79909
|
}
|
|
79866
79910
|
}
|
|
79867
|
-
const
|
|
79911
|
+
const CCe = (e) => {
|
|
79868
79912
|
const t = e.readLen(), n = [];
|
|
79869
79913
|
for (let i = 0; i < t; i++)
|
|
79870
79914
|
n.push(e.readAny());
|
|
@@ -79948,15 +79992,15 @@ class Rr {
|
|
|
79948
79992
|
return 4;
|
|
79949
79993
|
}
|
|
79950
79994
|
}
|
|
79951
|
-
const
|
|
79952
|
-
|
|
79953
|
-
|
|
79954
|
-
dCe,
|
|
79955
|
-
uCe,
|
|
79995
|
+
const ECe = (e) => new Rr(e.readString()), NCe = [
|
|
79996
|
+
rCe,
|
|
79997
|
+
sCe,
|
|
79956
79998
|
fCe,
|
|
79957
|
-
|
|
79958
|
-
|
|
79959
|
-
|
|
79999
|
+
hCe,
|
|
80000
|
+
uCe,
|
|
80001
|
+
mCe,
|
|
80002
|
+
gCe
|
|
80003
|
+
], ACe = 0, TCe = 1, OCe = 2, DCe = 3, ICe = 4, MCe = 5, PCe = 6;
|
|
79960
80004
|
class Br {
|
|
79961
80005
|
/**
|
|
79962
80006
|
* @param {AbstractType<any>} type
|
|
@@ -80049,7 +80093,7 @@ class Br {
|
|
|
80049
80093
|
return 7;
|
|
80050
80094
|
}
|
|
80051
80095
|
}
|
|
80052
|
-
const
|
|
80096
|
+
const RCe = (e) => new Br(NCe[e.readTypeRef()](e)), Vx = (e, t) => {
|
|
80053
80097
|
let n = t, i = 0, r;
|
|
80054
80098
|
do
|
|
80055
80099
|
i > 0 && (n = dt(n.client, n.clock + i)), r = rc(e, n), i = n.clock - r.id.clock, n = r.redone;
|
|
@@ -80074,7 +80118,7 @@ const PCe = (e) => new Br(ECe[e.readTypeRef()](e)), Vx = (e, t) => {
|
|
|
80074
80118
|
t.content.splice(n)
|
|
80075
80119
|
);
|
|
80076
80120
|
return t.deleted && o.markDeleted(), t.keep && (o.keep = !0), t.redone !== null && (o.redone = dt(t.redone.client, t.redone.clock + n)), t.right = o, o.right !== null && (o.right.left = o), e._mergeStructs.push(o), o.parentSub !== null && o.right === null && o.parent._map.set(o.parentSub, o), t.length = n, o;
|
|
80077
|
-
}, AA = (e, t) =>
|
|
80121
|
+
}, AA = (e, t) => s4e(
|
|
80078
80122
|
e,
|
|
80079
80123
|
/** @param {StackItem} s */
|
|
80080
80124
|
(n) => gd(n.deletions, t)
|
|
@@ -80338,7 +80382,7 @@ class Lt extends __ {
|
|
|
80338
80382
|
gc(t, n) {
|
|
80339
80383
|
if (!this.deleted)
|
|
80340
80384
|
throw Ni();
|
|
80341
|
-
this.content.gc(t), n ?
|
|
80385
|
+
this.content.gc(t), n ? zSe(t, this, new tr(this.id, this.length)) : this.content = new Iu(this.length);
|
|
80342
80386
|
}
|
|
80343
80387
|
/**
|
|
80344
80388
|
* Transform the properties of this type to binary and write it to an
|
|
@@ -80371,34 +80415,34 @@ class Lt extends __ {
|
|
|
80371
80415
|
this.content.write(t, n);
|
|
80372
80416
|
}
|
|
80373
80417
|
}
|
|
80374
|
-
const a$ = (e, t) =>
|
|
80418
|
+
const a$ = (e, t) => LCe[t & z1](e), LCe = [
|
|
80375
80419
|
() => {
|
|
80376
80420
|
Ni();
|
|
80377
80421
|
},
|
|
80378
80422
|
// GC is not ItemContent
|
|
80379
|
-
|
|
80423
|
+
bCe,
|
|
80380
80424
|
// 1
|
|
80381
|
-
|
|
80425
|
+
_Ce,
|
|
80382
80426
|
// 2
|
|
80383
|
-
|
|
80427
|
+
vCe,
|
|
80384
80428
|
// 3
|
|
80385
|
-
|
|
80429
|
+
ECe,
|
|
80386
80430
|
// 4
|
|
80387
|
-
wCe,
|
|
80388
|
-
// 5
|
|
80389
80431
|
xCe,
|
|
80432
|
+
// 5
|
|
80433
|
+
kCe,
|
|
80390
80434
|
// 6
|
|
80391
|
-
|
|
80435
|
+
RCe,
|
|
80392
80436
|
// 7
|
|
80393
|
-
|
|
80437
|
+
CCe,
|
|
80394
80438
|
// 8
|
|
80395
|
-
|
|
80439
|
+
wCe,
|
|
80396
80440
|
// 9
|
|
80397
80441
|
() => {
|
|
80398
80442
|
Ni();
|
|
80399
80443
|
}
|
|
80400
80444
|
// 10 - Skip is not ItemContent
|
|
80401
|
-
],
|
|
80445
|
+
], FCe = 10;
|
|
80402
80446
|
class _r extends __ {
|
|
80403
80447
|
get deleted() {
|
|
80404
80448
|
return !0;
|
|
@@ -80424,7 +80468,7 @@ class _r extends __ {
|
|
|
80424
80468
|
* @param {number} offset
|
|
80425
80469
|
*/
|
|
80426
80470
|
write(t, n) {
|
|
80427
|
-
t.writeInfo(
|
|
80471
|
+
t.writeInfo(FCe), Et(t.restEncoder, this.length - n);
|
|
80428
80472
|
}
|
|
80429
80473
|
/**
|
|
80430
80474
|
* @param {Transaction} transaction
|
|
@@ -80441,7 +80485,7 @@ const l$ = (
|
|
|
80441
80485
|
), c$ = "__ $YJS$ __";
|
|
80442
80486
|
l$[c$] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");
|
|
80443
80487
|
l$[c$] = !0;
|
|
80444
|
-
const
|
|
80488
|
+
const $Ce = () => {
|
|
80445
80489
|
let e = !0;
|
|
80446
80490
|
return (t, n) => {
|
|
80447
80491
|
if (e) {
|
|
@@ -80453,20 +80497,20 @@ const FCe = () => {
|
|
|
80453
80497
|
}
|
|
80454
80498
|
} else n !== void 0 && n();
|
|
80455
80499
|
};
|
|
80456
|
-
},
|
|
80500
|
+
}, BCe = /[\uD800-\uDBFF]/, zCe = /[\uDC00-\uDFFF]/, jCe = (e, t) => {
|
|
80457
80501
|
let n = 0, i = 0;
|
|
80458
80502
|
for (; n < e.length && n < t.length && e[n] === t[n]; )
|
|
80459
80503
|
n++;
|
|
80460
|
-
for (n > 0 &&
|
|
80504
|
+
for (n > 0 && BCe.test(e[n - 1]) && n--; i + n < e.length && i + n < t.length && e[e.length - i - 1] === t[t.length - i - 1]; )
|
|
80461
80505
|
i++;
|
|
80462
|
-
return i > 0 &&
|
|
80506
|
+
return i > 0 && zCe.test(e[e.length - i]) && i--, {
|
|
80463
80507
|
index: n,
|
|
80464
80508
|
remove: e.length - n - i,
|
|
80465
80509
|
insert: t.slice(n, t.length - i)
|
|
80466
80510
|
};
|
|
80467
|
-
},
|
|
80511
|
+
}, HCe = jCe, ln = new wt("y-sync"), $o = new wt("y-undo");
|
|
80468
80512
|
new wt("yjs-cursor");
|
|
80469
|
-
const eo = (e, t) => e >>> t | e << 32 - t,
|
|
80513
|
+
const eo = (e, t) => e >>> t | e << 32 - t, VCe = (e) => eo(e, 2) ^ eo(e, 13) ^ eo(e, 22), WCe = (e) => eo(e, 6) ^ eo(e, 11) ^ eo(e, 25), UCe = (e) => eo(e, 7) ^ eo(e, 18) ^ e >>> 3, qCe = (e) => eo(e, 17) ^ eo(e, 19) ^ e >>> 10, GCe = new Uint32Array([
|
|
80470
80514
|
1116352408,
|
|
80471
80515
|
1899447441,
|
|
80472
80516
|
3049323471,
|
|
@@ -80531,7 +80575,7 @@ const eo = (e, t) => e >>> t | e << 32 - t, HCe = (e) => eo(e, 2) ^ eo(e, 13) ^
|
|
|
80531
80575
|
2756734187,
|
|
80532
80576
|
3204031479,
|
|
80533
80577
|
3329325298
|
|
80534
|
-
]),
|
|
80578
|
+
]), KCe = new Uint32Array([
|
|
80535
80579
|
1779033703,
|
|
80536
80580
|
3144134277,
|
|
80537
80581
|
1013904242,
|
|
@@ -80541,18 +80585,18 @@ const eo = (e, t) => e >>> t | e << 32 - t, HCe = (e) => eo(e, 2) ^ eo(e, 13) ^
|
|
|
80541
80585
|
528734635,
|
|
80542
80586
|
1541459225
|
|
80543
80587
|
]);
|
|
80544
|
-
class
|
|
80588
|
+
class YCe {
|
|
80545
80589
|
constructor() {
|
|
80546
80590
|
const t = new ArrayBuffer(320);
|
|
80547
|
-
this._H = new Uint32Array(t, 0, 8), this._H.set(
|
|
80591
|
+
this._H = new Uint32Array(t, 0, 8), this._H.set(KCe), this._W = new Uint32Array(t, 64, 64);
|
|
80548
80592
|
}
|
|
80549
80593
|
_updateHash() {
|
|
80550
80594
|
const t = this._H, n = this._W;
|
|
80551
80595
|
for (let f = 16; f < 64; f++)
|
|
80552
|
-
n[f] =
|
|
80596
|
+
n[f] = qCe(n[f - 2]) + n[f - 7] + UCe(n[f - 15]) + n[f - 16];
|
|
80553
80597
|
let i = t[0], r = t[1], o = t[2], s = t[3], a = t[4], l = t[5], c = t[6], d = t[7];
|
|
80554
80598
|
for (let f = 0, u, h; f < 64; f++)
|
|
80555
|
-
u = d +
|
|
80599
|
+
u = d + WCe(a) + (a & l ^ ~a & c) + GCe[f] + n[f] >>> 0, h = VCe(i) + (i & r ^ i & o ^ r & o) >>> 0, d = c, c = l, l = a, a = s + u >>> 0, s = o, o = r, r = i, i = u + h >>> 0;
|
|
80556
80600
|
t[0] += i, t[1] += r, t[2] += o, t[3] += s, t[4] += a, t[5] += l, t[6] += c, t[7] += d;
|
|
80557
80601
|
}
|
|
80558
80602
|
/**
|
|
@@ -80579,7 +80623,7 @@ class KCe {
|
|
|
80579
80623
|
for (; n < t.length; r++)
|
|
80580
80624
|
for (let s = 3; s >= 0 && n < t.length; s--)
|
|
80581
80625
|
this._W[r] |= t[n++] << s * 8;
|
|
80582
|
-
i || (this._W[r - (n % 4 === 0 ? 0 : 1)] |= si << (3 - n % 4) * 8), this._W[14] = t.byteLength /
|
|
80626
|
+
i || (this._W[r - (n % 4 === 0 ? 0 : 1)] |= si << (3 - n % 4) * 8), this._W[14] = t.byteLength / a4e, this._W[15] = t.byteLength * 8, this._updateHash();
|
|
80583
80627
|
const o = new Uint8Array(32);
|
|
80584
80628
|
for (let s = 0; s < this._H.length; s++)
|
|
80585
80629
|
for (let a = 0; a < 4; a++)
|
|
@@ -80587,25 +80631,25 @@ class KCe {
|
|
|
80587
80631
|
return o;
|
|
80588
80632
|
}
|
|
80589
80633
|
}
|
|
80590
|
-
const
|
|
80634
|
+
const XCe = (e) => new YCe().digest(e), JCe = (e) => {
|
|
80591
80635
|
for (let n = 6; n < e.length; n++)
|
|
80592
80636
|
e[n % 6] = e[n % 6] ^ e[n];
|
|
80593
80637
|
return e.slice(0, 6);
|
|
80594
|
-
},
|
|
80595
|
-
t.sv.get(e.id.client) > e.id.clock && !gd(t.ds, e.id),
|
|
80638
|
+
}, ZCe = (e) => oSe(JCe(XCe(sSe(e)))), uy = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && /** @type {number} */
|
|
80639
|
+
t.sv.get(e.id.client) > e.id.clock && !gd(t.ds, e.id), QCe = [{ light: "#ecd44433", dark: "#ecd444" }], e5e = (e, t, n) => {
|
|
80596
80640
|
if (!e.has(n)) {
|
|
80597
80641
|
if (e.size < t.length) {
|
|
80598
80642
|
const i = nl();
|
|
80599
80643
|
e.forEach((r) => i.add(r)), t = t.filter((r) => !i.has(r));
|
|
80600
80644
|
}
|
|
80601
|
-
e.set(n,
|
|
80645
|
+
e.set(n, z4e(t));
|
|
80602
80646
|
}
|
|
80603
80647
|
return (
|
|
80604
80648
|
/** @type {ColorDef} */
|
|
80605
80649
|
e.get(n)
|
|
80606
80650
|
);
|
|
80607
|
-
},
|
|
80608
|
-
colors: t =
|
|
80651
|
+
}, t5e = (e, {
|
|
80652
|
+
colors: t = QCe,
|
|
80609
80653
|
colorMapping: n = /* @__PURE__ */ new Map(),
|
|
80610
80654
|
permanentUserData: i = null,
|
|
80611
80655
|
onFirstRender: r = () => {
|
|
@@ -80613,7 +80657,7 @@ t.sv.get(e.id.client) > e.id.clock && !gd(t.ds, e.id), ZCe = [{ light: "#ecd4443
|
|
|
80613
80657
|
mapping: o
|
|
80614
80658
|
} = {}) => {
|
|
80615
80659
|
let s = !1;
|
|
80616
|
-
const a = new
|
|
80660
|
+
const a = new i5e(e, o), l = new Ct({
|
|
80617
80661
|
props: {
|
|
80618
80662
|
editable: (c) => {
|
|
80619
80663
|
const d = ln.getState(c);
|
|
@@ -80688,7 +80732,7 @@ t.sv.get(e.id.client) > e.id.clock && !gd(t.ds, e.id), ZCe = [{ light: "#ecd4443
|
|
|
80688
80732
|
})
|
|
80689
80733
|
});
|
|
80690
80734
|
return l;
|
|
80691
|
-
},
|
|
80735
|
+
}, n5e = (e, t, n) => {
|
|
80692
80736
|
if (t !== null && t.anchor !== null && t.head !== null)
|
|
80693
80737
|
if (t.type === "all")
|
|
80694
80738
|
e.setSelection(new ki(e.doc));
|
|
@@ -80733,13 +80777,13 @@ t.sv.get(e.id.client) > e.id.clock && !gd(t.ds, e.id), ZCe = [{ light: "#ecd4443
|
|
|
80733
80777
|
e.mapping
|
|
80734
80778
|
)
|
|
80735
80779
|
});
|
|
80736
|
-
class
|
|
80780
|
+
class i5e {
|
|
80737
80781
|
/**
|
|
80738
80782
|
* @param {Y.XmlFragment} yXmlFragment The bind source
|
|
80739
80783
|
* @param {ProsemirrorMapping} mapping
|
|
80740
80784
|
*/
|
|
80741
80785
|
constructor(t, n = /* @__PURE__ */ new Map()) {
|
|
80742
|
-
this.type = t, this.prosemirrorView = null, this.mux =
|
|
80786
|
+
this.type = t, this.prosemirrorView = null, this.mux = $Ce(), this.mapping = n, this.isOMark = /* @__PURE__ */ new Map(), this._observeFunction = this._typeChanged.bind(this), this.doc = t.doc, this.beforeTransactionSelection = null, this.beforeAllTransactions = () => {
|
|
80743
80787
|
this.beforeTransactionSelection === null && this.prosemirrorView != null && (this.beforeTransactionSelection = Wx(
|
|
80744
80788
|
this,
|
|
80745
80789
|
this.prosemirrorView.state
|
|
@@ -80766,7 +80810,7 @@ class n5e {
|
|
|
80766
80810
|
if (t == null || t.anchorNode == null) return !1;
|
|
80767
80811
|
const n = this.prosemirrorView._root.createRange();
|
|
80768
80812
|
n.setStart(t.anchorNode, t.anchorOffset), n.setEnd(t.focusNode, t.focusOffset), n.getClientRects().length === 0 && n.startContainer && n.collapsed && n.selectNodeContents(n.startContainer);
|
|
80769
|
-
const r = n.getBoundingClientRect(), o =
|
|
80813
|
+
const r = n.getBoundingClientRect(), o = lSe.documentElement;
|
|
80770
80814
|
return r.bottom >= 0 && r.right >= 0 && r.left <= (window.innerWidth || o.clientWidth || 0) && r.top <= (window.innerHeight || o.clientHeight || 0);
|
|
80771
80815
|
}
|
|
80772
80816
|
/**
|
|
@@ -80853,7 +80897,7 @@ class n5e {
|
|
|
80853
80897
|
return {
|
|
80854
80898
|
user: h,
|
|
80855
80899
|
type: f,
|
|
80856
|
-
color:
|
|
80900
|
+
color: e5e(
|
|
80857
80901
|
i.colorMapping,
|
|
80858
80902
|
i.colors,
|
|
80859
80903
|
h
|
|
@@ -80920,7 +80964,7 @@ class n5e {
|
|
|
80920
80964
|
this.prosemirrorView.state.doc.content.size,
|
|
80921
80965
|
new Me(xe.from(o), 0, 0)
|
|
80922
80966
|
);
|
|
80923
|
-
|
|
80967
|
+
n5e(s, this.beforeTransactionSelection, this), s = s.setMeta(ln, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof jF }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
|
|
80924
80968
|
});
|
|
80925
80969
|
}
|
|
80926
80970
|
/**
|
|
@@ -80986,7 +81030,7 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
80986
81030
|
]), c.doc.transact((f) => {
|
|
80987
81031
|
c._item.delete(f);
|
|
80988
81032
|
}));
|
|
80989
|
-
const d =
|
|
81033
|
+
const d = r5e(
|
|
80990
81034
|
l,
|
|
80991
81035
|
t,
|
|
80992
81036
|
n,
|
|
@@ -81026,12 +81070,12 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81026
81070
|
e._item.delete(c);
|
|
81027
81071
|
}, ln), n.mapping.delete(e), null;
|
|
81028
81072
|
}
|
|
81029
|
-
},
|
|
81073
|
+
}, r5e = (e, t, n, i, r, o) => {
|
|
81030
81074
|
const s = [], a = e.toDelta(i, r, o);
|
|
81031
81075
|
try {
|
|
81032
81076
|
for (let l = 0; l < a.length; l++) {
|
|
81033
81077
|
const c = a[l];
|
|
81034
|
-
s.push(t.text(c.insert,
|
|
81078
|
+
s.push(t.text(c.insert, d5e(c.attributes, t)));
|
|
81035
81079
|
}
|
|
81036
81080
|
} catch {
|
|
81037
81081
|
return e.doc.transact((c) => {
|
|
@@ -81039,14 +81083,14 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81039
81083
|
}, ln), null;
|
|
81040
81084
|
}
|
|
81041
81085
|
return s;
|
|
81042
|
-
},
|
|
81086
|
+
}, o5e = (e, t) => {
|
|
81043
81087
|
const n = new Ei(), i = e.map((r) => ({
|
|
81044
81088
|
// @ts-ignore
|
|
81045
81089
|
insert: r.text,
|
|
81046
81090
|
attributes: u$(r.marks, t)
|
|
81047
81091
|
}));
|
|
81048
81092
|
return n.applyDelta(i), t.mapping.set(n, e), n;
|
|
81049
|
-
},
|
|
81093
|
+
}, s5e = (e, t) => {
|
|
81050
81094
|
const n = new Yn(e.type.name);
|
|
81051
81095
|
for (const i in e.attrs) {
|
|
81052
81096
|
const r = e.attrs[i];
|
|
@@ -81058,7 +81102,7 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81058
81102
|
(i) => Ux(i, t)
|
|
81059
81103
|
)
|
|
81060
81104
|
), t.mapping.set(n, e), n;
|
|
81061
|
-
}, Ux = (e, t) => e instanceof Array ?
|
|
81105
|
+
}, Ux = (e, t) => e instanceof Array ? o5e(e, t) : s5e(e, t), TA = (e) => typeof e == "object" && e !== null, C_ = (e, t) => {
|
|
81062
81106
|
const n = Object.keys(e).filter((r) => e[r] !== null);
|
|
81063
81107
|
let i = n.length === (t == null ? 0 : Object.keys(t).filter((r) => t[r] !== null).length);
|
|
81064
81108
|
for (let r = 0; r < n.length && i; r++) {
|
|
@@ -81123,7 +81167,7 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81123
81167
|
equalityFactor: l + c,
|
|
81124
81168
|
foundMappedChild: d
|
|
81125
81169
|
};
|
|
81126
|
-
},
|
|
81170
|
+
}, a5e = (e) => {
|
|
81127
81171
|
let t = "", n = e._start;
|
|
81128
81172
|
const i = {};
|
|
81129
81173
|
for (; n !== null; )
|
|
@@ -81132,22 +81176,22 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81132
81176
|
str: t,
|
|
81133
81177
|
nAttrs: i
|
|
81134
81178
|
};
|
|
81135
|
-
},
|
|
81179
|
+
}, l5e = (e, t, n) => {
|
|
81136
81180
|
n.mapping.set(e, t);
|
|
81137
|
-
const { nAttrs: i, str: r } =
|
|
81181
|
+
const { nAttrs: i, str: r } = a5e(e), o = t.map((c) => ({
|
|
81138
81182
|
insert: (
|
|
81139
81183
|
/** @type {any} */
|
|
81140
81184
|
c.text
|
|
81141
81185
|
),
|
|
81142
81186
|
attributes: Object.assign({}, i, u$(c.marks, n))
|
|
81143
|
-
})), { insert: s, remove: a, index: l } =
|
|
81187
|
+
})), { insert: s, remove: a, index: l } = HCe(
|
|
81144
81188
|
r,
|
|
81145
81189
|
o.map((c) => c.insert).join("")
|
|
81146
81190
|
);
|
|
81147
81191
|
e.delete(l, a), e.insert(l, s), e.applyDelta(
|
|
81148
81192
|
o.map((c) => ({ retain: c.insert.length, attributes: c.attributes }))
|
|
81149
81193
|
);
|
|
81150
|
-
},
|
|
81194
|
+
}, c5e = /(.*)(--[a-zA-Z0-9+/=]{8})$/, E_ = (e) => c5e.exec(e)?.[1] ?? e, d5e = (e, t) => {
|
|
81151
81195
|
const n = [];
|
|
81152
81196
|
for (const i in e)
|
|
81153
81197
|
n.push(t.mark(E_(i), e[i]));
|
|
@@ -81157,7 +81201,7 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81157
81201
|
return e.forEach((i) => {
|
|
81158
81202
|
if (i.type.name !== "ychange") {
|
|
81159
81203
|
const r = es(t.isOMark, i.type, () => !i.type.excludes(i.type));
|
|
81160
|
-
n[r ? `${i.type.name}--${
|
|
81204
|
+
n[r ? `${i.type.name}--${ZCe(i.toJSON())}` : i.type.name] = i.attrs;
|
|
81161
81205
|
}
|
|
81162
81206
|
}), n;
|
|
81163
81207
|
}, qx = (e, t, n, i) => {
|
|
@@ -81192,7 +81236,7 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81192
81236
|
for (; a - c - d > 0 && o - c - d > 0; ) {
|
|
81193
81237
|
const u = s[c], h = r[c], p = s[a - d - 1], g = r[o - d - 1];
|
|
81194
81238
|
if (u instanceof Ei && h instanceof Array)
|
|
81195
|
-
f$(u, h) ||
|
|
81239
|
+
f$(u, h) || l5e(u, h, i), c += 1;
|
|
81196
81240
|
else {
|
|
81197
81241
|
let y = u instanceof Yn && Gx(u, h), v = p instanceof Yn && Gx(p, g);
|
|
81198
81242
|
if (y && v) {
|
|
@@ -81294,14 +81338,14 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81294
81338
|
if (i === null)
|
|
81295
81339
|
throw Ni();
|
|
81296
81340
|
if (e === 0 && i.constructor !== Ei && i !== t)
|
|
81297
|
-
return
|
|
81341
|
+
return f5e(i._item.parent, i._item);
|
|
81298
81342
|
}
|
|
81299
81343
|
return sb(t, t._length, t.length === 0 ? -1 : 0);
|
|
81300
|
-
},
|
|
81344
|
+
}, f5e = (e, t) => {
|
|
81301
81345
|
let n = null, i = null;
|
|
81302
81346
|
return e._item === null ? i = Au(e) : n = dt(e._item.id.client, e._item.id.clock), new sy(n, i, t.id);
|
|
81303
81347
|
}, fm = (e, t, n, i) => {
|
|
81304
|
-
const r =
|
|
81348
|
+
const r = $Se(n, e);
|
|
81305
81349
|
if (r === null || r.type !== t && !Tu(t, r.type._item))
|
|
81306
81350
|
return null;
|
|
81307
81351
|
let o = r.type, s = 0;
|
|
@@ -81347,7 +81391,7 @@ const d$ = (e, t, n, i, r, o) => {
|
|
|
81347
81391
|
}
|
|
81348
81392
|
return s - 1;
|
|
81349
81393
|
};
|
|
81350
|
-
function
|
|
81394
|
+
function u5e(e) {
|
|
81351
81395
|
const t = e.toArray(), n = (i) => {
|
|
81352
81396
|
let r;
|
|
81353
81397
|
if (i instanceof Ei)
|
|
@@ -81383,13 +81427,13 @@ function f5e(e) {
|
|
|
81383
81427
|
content: t.map(n)
|
|
81384
81428
|
};
|
|
81385
81429
|
}
|
|
81386
|
-
const
|
|
81430
|
+
const h5e = (e) => $o.getState(e)?.undoManager?.undo() != null, p5e = (e) => $o.getState(e)?.undoManager?.redo() != null, m5e = /* @__PURE__ */ new Set(["paragraph"]), g5e = (e, t) => !(e instanceof Lt) || !(e.content instanceof Br) || !(e.content.type instanceof Zs || e.content.type instanceof Yn && t.has(e.content.type.nodeName)) || e.content.type._length === 0, y5e = ({ protectedNodes: e = m5e, trackedOrigins: t = [], undoManager: n = null } = {}) => new Ct({
|
|
81387
81431
|
key: $o,
|
|
81388
81432
|
state: {
|
|
81389
81433
|
init: (i, r) => {
|
|
81390
81434
|
const o = ln.getState(r), s = n || new jF(o.type, {
|
|
81391
81435
|
trackedOrigins: new Set([ln].concat(t)),
|
|
81392
|
-
deleteFilter: (a) =>
|
|
81436
|
+
deleteFilter: (a) => g5e(a, e),
|
|
81393
81437
|
captureTransaction: (a) => a.meta.get("addToHistory") !== !1
|
|
81394
81438
|
});
|
|
81395
81439
|
return {
|
|
@@ -81447,8 +81491,8 @@ St.create({
|
|
|
81447
81491
|
},
|
|
81448
81492
|
addCommands() {
|
|
81449
81493
|
return {
|
|
81450
|
-
undo: () => ({ tr: e, state: t, dispatch: n }) => (e.setMeta("preventDispatch", !0), $o.getState(t).undoManager.undoStack.length === 0 ? !1 : n ?
|
|
81451
|
-
redo: () => ({ tr: e, state: t, dispatch: n }) => (e.setMeta("preventDispatch", !0), $o.getState(t).undoManager.redoStack.length === 0 ? !1 : n ?
|
|
81494
|
+
undo: () => ({ tr: e, state: t, dispatch: n }) => (e.setMeta("preventDispatch", !0), $o.getState(t).undoManager.undoStack.length === 0 ? !1 : n ? h5e(t) : !0),
|
|
81495
|
+
redo: () => ({ tr: e, state: t, dispatch: n }) => (e.setMeta("preventDispatch", !0), $o.getState(t).undoManager.redoStack.length === 0 ? !1 : n ? p5e(t) : !0)
|
|
81452
81496
|
};
|
|
81453
81497
|
},
|
|
81454
81498
|
addKeyboardShortcuts() {
|
|
@@ -81460,7 +81504,7 @@ St.create({
|
|
|
81460
81504
|
},
|
|
81461
81505
|
addProseMirrorPlugins() {
|
|
81462
81506
|
var e;
|
|
81463
|
-
const t = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n =
|
|
81507
|
+
const t = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = y5e(this.options.yUndoOptions), i = n.spec.view;
|
|
81464
81508
|
n.spec.view = (s) => {
|
|
81465
81509
|
const { undoManager: a } = $o.getState(s.state);
|
|
81466
81510
|
a.restore && (a.restore(), a.restore = () => {
|
|
@@ -81478,10 +81522,10 @@ St.create({
|
|
|
81478
81522
|
const r = {
|
|
81479
81523
|
...this.options.ySyncOptions,
|
|
81480
81524
|
onFirstRender: this.options.onFirstRender
|
|
81481
|
-
}, o =
|
|
81525
|
+
}, o = t5e(t, r);
|
|
81482
81526
|
return this.editor.options.enableContentCheck && ((e = t.doc) === null || e === void 0 || e.on("beforeTransaction", () => {
|
|
81483
81527
|
try {
|
|
81484
|
-
const s =
|
|
81528
|
+
const s = u5e(t);
|
|
81485
81529
|
if (s.content.length === 0)
|
|
81486
81530
|
return;
|
|
81487
81531
|
this.editor.schema.nodeFromJSON(s).check();
|
|
@@ -81509,7 +81553,7 @@ St.create({
|
|
|
81509
81553
|
].filter(Boolean);
|
|
81510
81554
|
}
|
|
81511
81555
|
});
|
|
81512
|
-
function
|
|
81556
|
+
function v5e(e) {
|
|
81513
81557
|
return !!e.getMeta(ln);
|
|
81514
81558
|
}
|
|
81515
81559
|
function DA(e) {
|
|
@@ -81689,17 +81733,17 @@ St.create({
|
|
|
81689
81733
|
];
|
|
81690
81734
|
}
|
|
81691
81735
|
});
|
|
81692
|
-
function
|
|
81736
|
+
function b5e(e) {
|
|
81693
81737
|
let t = "";
|
|
81694
81738
|
const n = getComputedStyle(e);
|
|
81695
81739
|
for (let i = 0; i < n.length; i += 1)
|
|
81696
81740
|
t += `${n[i]}:${n.getPropertyValue(n[i])};`;
|
|
81697
81741
|
return t;
|
|
81698
81742
|
}
|
|
81699
|
-
function
|
|
81743
|
+
function w5e(e) {
|
|
81700
81744
|
const t = e.cloneNode(!0), n = [e, ...Array.from(e.getElementsByTagName("*"))], i = [t, ...Array.from(t.getElementsByTagName("*"))];
|
|
81701
81745
|
return n.forEach((r, o) => {
|
|
81702
|
-
i[o].style.cssText =
|
|
81746
|
+
i[o].style.cssText = b5e(r);
|
|
81703
81747
|
}), t;
|
|
81704
81748
|
}
|
|
81705
81749
|
const h$ = (e) => {
|
|
@@ -81721,13 +81765,13 @@ const h$ = (e) => {
|
|
|
81721
81765
|
function Ap(e, t) {
|
|
81722
81766
|
return window.getComputedStyle(e)[t];
|
|
81723
81767
|
}
|
|
81724
|
-
function
|
|
81768
|
+
function x5e(e = 0, t = 0, n = 0) {
|
|
81725
81769
|
return Math.min(Math.max(e, t), n);
|
|
81726
81770
|
}
|
|
81727
|
-
function
|
|
81771
|
+
function k5e(e, t, n) {
|
|
81728
81772
|
const i = parseInt(Ap(e.dom, "paddingLeft"), 10), r = parseInt(Ap(e.dom, "paddingRight"), 10), o = parseInt(Ap(e.dom, "borderLeftWidth"), 10), s = parseInt(Ap(e.dom, "borderLeftWidth"), 10), a = e.dom.getBoundingClientRect();
|
|
81729
81773
|
return {
|
|
81730
|
-
left:
|
|
81774
|
+
left: x5e(t, a.left + i + o, a.right - r - s),
|
|
81731
81775
|
top: n
|
|
81732
81776
|
};
|
|
81733
81777
|
}
|
|
@@ -81735,7 +81779,7 @@ function p$(e) {
|
|
|
81735
81779
|
var t;
|
|
81736
81780
|
(t = e.parentNode) === null || t === void 0 || t.removeChild(e);
|
|
81737
81781
|
}
|
|
81738
|
-
function
|
|
81782
|
+
function _5e(e, t) {
|
|
81739
81783
|
const { doc: n } = t.view.state, i = h$({
|
|
81740
81784
|
editor: t,
|
|
81741
81785
|
x: e.clientX,
|
|
@@ -81744,7 +81788,7 @@ function k5e(e, t) {
|
|
|
81744
81788
|
});
|
|
81745
81789
|
if (!i.resultNode || i.pos === null)
|
|
81746
81790
|
return [];
|
|
81747
|
-
const r = e.clientX, o =
|
|
81791
|
+
const r = e.clientX, o = k5e(t.view, r, e.clientY), s = t.view.posAtCoords(o);
|
|
81748
81792
|
if (!s)
|
|
81749
81793
|
return [];
|
|
81750
81794
|
const { pos: a } = s;
|
|
@@ -81753,16 +81797,16 @@ function k5e(e, t) {
|
|
|
81753
81797
|
const c = n.resolve(i.pos), d = n.resolve(i.pos + 1);
|
|
81754
81798
|
return Y1(c, d, 0);
|
|
81755
81799
|
}
|
|
81756
|
-
function
|
|
81800
|
+
function S5e(e, t) {
|
|
81757
81801
|
const { view: n } = t;
|
|
81758
81802
|
if (!e.dataTransfer)
|
|
81759
81803
|
return;
|
|
81760
|
-
const { empty: i, $from: r, $to: o } = n.state.selection, s =
|
|
81804
|
+
const { empty: i, $from: r, $to: o } = n.state.selection, s = _5e(e, t), a = Y1(r, o, 0), l = a.some((y) => s.find((v) => v.$from === y.$from && v.$to === y.$to)), c = i || !l ? s : a;
|
|
81761
81805
|
if (!c.length)
|
|
81762
81806
|
return;
|
|
81763
81807
|
const { tr: d } = n.state, f = document.createElement("div"), u = c[0].$from.pos, h = c[c.length - 1].$to.pos, p = Un.create(n.state.doc, u, h), g = p.content();
|
|
81764
81808
|
c.forEach((y) => {
|
|
81765
|
-
const v = n.nodeDOM(y.$from.pos), w =
|
|
81809
|
+
const v = n.nodeDOM(y.$from.pos), w = w5e(v);
|
|
81766
81810
|
f.append(w);
|
|
81767
81811
|
}), f.style.position = "absolute", f.style.top = "-10000px", document.body.append(f), e.dataTransfer.clearData(), e.dataTransfer.setDragImage(f, 0, 0), n.dragging = { slice: g, move: !0 }, d.setSelection(p), n.dispatch(d), document.addEventListener("drop", () => p$(f), { once: !0 });
|
|
81768
81812
|
}
|
|
@@ -81780,7 +81824,7 @@ const IA = (e, t) => {
|
|
|
81780
81824
|
}, db = (e, t) => {
|
|
81781
81825
|
const n = ln.getState(e);
|
|
81782
81826
|
return n ? Kx(t, n.type, n.binding.mapping) : null;
|
|
81783
|
-
},
|
|
81827
|
+
}, C5e = (e, t) => {
|
|
81784
81828
|
const n = ln.getState(e);
|
|
81785
81829
|
return n ? fm(n.doc, n.type, t, n.binding.mapping) || 0 : -1;
|
|
81786
81830
|
}, PA = (e, t) => {
|
|
@@ -81792,7 +81836,7 @@ const IA = (e, t) => {
|
|
|
81792
81836
|
const o = document.createElement("div");
|
|
81793
81837
|
let s = null, a = !1, l = null, c = -1, d;
|
|
81794
81838
|
return t.addEventListener("dragstart", (f) => {
|
|
81795
|
-
|
|
81839
|
+
S5e(f, n), setTimeout(() => {
|
|
81796
81840
|
t && (t.style.pointerEvents = "none");
|
|
81797
81841
|
}, 0);
|
|
81798
81842
|
}), t.addEventListener("dragend", () => {
|
|
@@ -81808,8 +81852,8 @@ const IA = (e, t) => {
|
|
|
81808
81852
|
if (g !== void 0 && (a = g), y && s)
|
|
81809
81853
|
return s.hide(), a = !1, l = null, c = -1, r?.({ editor: n, node: null, pos: -1 }), u;
|
|
81810
81854
|
if (f.docChanged && c !== -1 && t && s)
|
|
81811
|
-
if (
|
|
81812
|
-
const v =
|
|
81855
|
+
if (v5e(f)) {
|
|
81856
|
+
const v = C5e(p, d);
|
|
81813
81857
|
v !== c && (c = v);
|
|
81814
81858
|
} else {
|
|
81815
81859
|
const v = f.mapping.map(c);
|
|
@@ -81930,7 +81974,7 @@ St.create({
|
|
|
81930
81974
|
];
|
|
81931
81975
|
}
|
|
81932
81976
|
});
|
|
81933
|
-
const
|
|
81977
|
+
const E5e = (e) => {
|
|
81934
81978
|
const { className: t = "drag-handle", children: n, editor: i, pluginKey: r = m$, onNodeChange: o, tippyOptions: s } = e, [a, l] = X(null), c = B(null);
|
|
81935
81979
|
return ae(() => a ? i.isDestroyed ? () => {
|
|
81936
81980
|
c.current = null;
|
|
@@ -81945,7 +81989,7 @@ const C5e = (e) => {
|
|
|
81945
81989
|
}) : () => {
|
|
81946
81990
|
c.current = null;
|
|
81947
81991
|
}, [a, i, o, r, s]), te.createElement("div", { className: t, ref: l }, n);
|
|
81948
|
-
}, A_ = (e) => typeof e == "object" && e !== null && !Array.isArray(e),
|
|
81992
|
+
}, A_ = (e) => typeof e == "object" && e !== null && !Array.isArray(e), N5e = (e, t) => {
|
|
81949
81993
|
const n = A_(e.attrs) ? e.attrs : {};
|
|
81950
81994
|
return {
|
|
81951
81995
|
...e,
|
|
@@ -81961,18 +82005,18 @@ const C5e = (e) => {
|
|
|
81961
82005
|
t.attrs = Object.keys(i).length > 0 ? i : void 0;
|
|
81962
82006
|
}
|
|
81963
82007
|
return Array.isArray(t.content) && (t.content = t.content.map(T_)), t;
|
|
81964
|
-
}, Fd = (e) => e.map(T_),
|
|
82008
|
+
}, Fd = (e) => e.map(T_), A5e = (e) => A_(e) ? e.type : void 0, T5e = (e, t) => {
|
|
81965
82009
|
const n = T_(e);
|
|
81966
|
-
return n.type && zc(n.type) ?
|
|
81967
|
-
},
|
|
82010
|
+
return n.type && zc(n.type) ? N5e(n, t) : n;
|
|
82011
|
+
}, O5e = (e, t) => t.length === 0 ? xe.empty : xe.fromArray(
|
|
81968
82012
|
t.map((n) => e.schema.nodeFromJSON(n))
|
|
81969
|
-
), $d = (e, t) => new Me(
|
|
81970
|
-
const n =
|
|
82013
|
+
), $d = (e, t) => new Me(O5e(e, t), 0, 0), Bd = (e, t) => {
|
|
82014
|
+
const n = S3e(e, t);
|
|
81971
82015
|
if (!n)
|
|
81972
|
-
throw new
|
|
82016
|
+
throw new D5e(t);
|
|
81973
82017
|
return n;
|
|
81974
82018
|
}, Eo = (e) => e.isEmpty ? { json: null, html: null } : { json: e.getJSON(), html: e.getHTML() };
|
|
81975
|
-
class
|
|
82019
|
+
class D5e extends Error {
|
|
81976
82020
|
code = "target_not_found";
|
|
81977
82021
|
targetId;
|
|
81978
82022
|
constructor(t) {
|
|
@@ -81981,14 +82025,14 @@ class O5e extends Error {
|
|
|
81981
82025
|
), this.name = "NotesTextEditorPatchTargetNotFoundError", this.targetId = t, Object.setPrototypeOf(this, new.target.prototype);
|
|
81982
82026
|
}
|
|
81983
82027
|
}
|
|
81984
|
-
class
|
|
82028
|
+
class I5e extends Error {
|
|
81985
82029
|
code = "unsupported_patch_type";
|
|
81986
82030
|
patchType;
|
|
81987
82031
|
constructor(t) {
|
|
81988
82032
|
super(`Unsupported NotesTextEditor patch type: ${String(t)}`), this.name = "NotesTextEditorUnsupportedPatchTypeError", this.patchType = t, Object.setPrototypeOf(this, new.target.prototype);
|
|
81989
82033
|
}
|
|
81990
82034
|
}
|
|
81991
|
-
const
|
|
82035
|
+
const M5e = (e, t) => {
|
|
81992
82036
|
switch (t.type) {
|
|
81993
82037
|
case "top_level_prepend": {
|
|
81994
82038
|
const i = $d(e, Fd(t.blocks)), r = e.state.tr.replace(0, 0, i);
|
|
@@ -82008,7 +82052,7 @@ const I5e = (e, t) => {
|
|
|
82008
82052
|
}
|
|
82009
82053
|
case "replace_block": {
|
|
82010
82054
|
const i = Bd(e, t.targetId), r = e.schema.nodeFromJSON(
|
|
82011
|
-
|
|
82055
|
+
T5e(t.block, t.targetId)
|
|
82012
82056
|
), o = e.state.tr.replaceWith(
|
|
82013
82057
|
i.pos,
|
|
82014
82058
|
i.pos + i.node.nodeSize,
|
|
@@ -82033,10 +82077,10 @@ const I5e = (e, t) => {
|
|
|
82033
82077
|
}
|
|
82034
82078
|
}
|
|
82035
82079
|
const n = t;
|
|
82036
|
-
throw new
|
|
82037
|
-
|
|
82080
|
+
throw new I5e(
|
|
82081
|
+
A5e(n)
|
|
82038
82082
|
);
|
|
82039
|
-
}, RA = (e) => e.isVisible !== !1,
|
|
82083
|
+
}, RA = (e) => e.isVisible !== !1, P5e = (e) => "isVisible" in e ? e.isVisible !== !1 : !0, R5e = (e) => !!e && "items" in e, L5e = (e) => !!e && "label" in e && !("items" in e), F5e = ({
|
|
82040
82084
|
action: e
|
|
82041
82085
|
}) => Jj(e) ? /* @__PURE__ */ m(
|
|
82042
82086
|
rr,
|
|
@@ -82060,9 +82104,9 @@ const I5e = (e, t) => {
|
|
|
82060
82104
|
disabled: e.disabled,
|
|
82061
82105
|
tooltip: e.tooltip
|
|
82062
82106
|
}
|
|
82063
|
-
),
|
|
82107
|
+
), $5e = ({
|
|
82064
82108
|
action: e
|
|
82065
|
-
}) =>
|
|
82109
|
+
}) => L5e(e) ? /* @__PURE__ */ m(
|
|
82066
82110
|
Ie,
|
|
82067
82111
|
{
|
|
82068
82112
|
label: e.label,
|
|
@@ -82072,7 +82116,7 @@ const I5e = (e, t) => {
|
|
|
82072
82116
|
disabled: e.disabled,
|
|
82073
82117
|
tooltip: e.tooltip
|
|
82074
82118
|
}
|
|
82075
|
-
) :
|
|
82119
|
+
) : R5e(e) ? /* @__PURE__ */ m(
|
|
82076
82120
|
rr,
|
|
82077
82121
|
{
|
|
82078
82122
|
items: e.items,
|
|
@@ -82082,16 +82126,16 @@ const I5e = (e, t) => {
|
|
|
82082
82126
|
disabled: e.disabled,
|
|
82083
82127
|
tooltip: e.tooltip
|
|
82084
82128
|
}
|
|
82085
|
-
) : null,
|
|
82129
|
+
) : null, B5e = ({
|
|
82086
82130
|
primaryAction: e,
|
|
82087
82131
|
secondaryActions: t,
|
|
82088
82132
|
otherActions: n
|
|
82089
82133
|
}) => /* @__PURE__ */ P("div", { className: "flex flex-shrink-0 flex-row items-center gap-2", children: [
|
|
82090
82134
|
n.length > 0 ? /* @__PURE__ */ m(Yc, { items: n }) : null,
|
|
82091
|
-
t.map((i, r) => /* @__PURE__ */ m(
|
|
82135
|
+
t.map((i, r) => /* @__PURE__ */ m(F5e, { action: i }, r)),
|
|
82092
82136
|
e && (t.length > 0 || n.length > 0) ? /* @__PURE__ */ m("div", { className: "mx-1 h-4 w-px bg-f1-background-secondary-hover" }) : null,
|
|
82093
|
-
e ? /* @__PURE__ */ m(
|
|
82094
|
-
] }),
|
|
82137
|
+
e ? /* @__PURE__ */ m($5e, { action: e }) : null
|
|
82138
|
+
] }), z5e = ({
|
|
82095
82139
|
primaryAction: e,
|
|
82096
82140
|
secondaryActions: t = [],
|
|
82097
82141
|
metadata: n = [],
|
|
@@ -82112,11 +82156,11 @@ const I5e = (e, t) => {
|
|
|
82112
82156
|
}
|
|
82113
82157
|
] : [],
|
|
82114
82158
|
...n
|
|
82115
|
-
], s = t.filter(RA), a = i.filter(
|
|
82159
|
+
], s = t.filter(RA), a = i.filter(P5e), l = e && RA(e), c = s.length > 0, d = a.length > 0, f = c || d || l;
|
|
82116
82160
|
return /* @__PURE__ */ m("div", { className: "flex flex-col", children: o.length > 0 || f ? /* @__PURE__ */ P("div", { className: "flex flex-col items-start justify-between gap-2 sm:px-6 px-0 py-4 sm:flex-row sm:items-center", children: [
|
|
82117
82161
|
o.length > 0 ? /* @__PURE__ */ m(Xj, { items: o }) : null,
|
|
82118
82162
|
/* @__PURE__ */ m(
|
|
82119
|
-
|
|
82163
|
+
B5e,
|
|
82120
82164
|
{
|
|
82121
82165
|
primaryAction: l ? e : void 0,
|
|
82122
82166
|
secondaryActions: s,
|
|
@@ -82124,7 +82168,7 @@ const I5e = (e, t) => {
|
|
|
82124
82168
|
}
|
|
82125
82169
|
)
|
|
82126
82170
|
] }) : null });
|
|
82127
|
-
},
|
|
82171
|
+
}, j5e = ({ errorType: e, onDismiss: t }) => {
|
|
82128
82172
|
const n = Be(), r = ((o) => {
|
|
82129
82173
|
switch (o) {
|
|
82130
82174
|
case "file-too-large":
|
|
@@ -82157,7 +82201,7 @@ const I5e = (e, t) => {
|
|
|
82157
82201
|
}
|
|
82158
82202
|
) })
|
|
82159
82203
|
] }) });
|
|
82160
|
-
},
|
|
82204
|
+
}, H5e = ({
|
|
82161
82205
|
value: e,
|
|
82162
82206
|
onChange: t,
|
|
82163
82207
|
placeholder: n,
|
|
@@ -82181,7 +82225,7 @@ const I5e = (e, t) => {
|
|
|
82181
82225
|
className: "resize-none overflow-hidden font-semibold text-f1-foreground placeholder-f1-foreground-tertiary sm:text-[39px] sm:leading-[49px] text-[34px] leading-[42px]",
|
|
82182
82226
|
rows: 1
|
|
82183
82227
|
}
|
|
82184
|
-
) }),
|
|
82228
|
+
) }), V5e = ({
|
|
82185
82229
|
placeholder: e,
|
|
82186
82230
|
translations: t,
|
|
82187
82231
|
aiBlockConfig: n,
|
|
@@ -82204,26 +82248,26 @@ const I5e = (e, t) => {
|
|
|
82204
82248
|
LL,
|
|
82205
82249
|
RL,
|
|
82206
82250
|
W2e,
|
|
82207
|
-
|
|
82208
|
-
|
|
82209
|
-
|
|
82251
|
+
j3e,
|
|
82252
|
+
t_e,
|
|
82253
|
+
x3e.configure({
|
|
82210
82254
|
currentConfig: n
|
|
82211
82255
|
}),
|
|
82212
|
-
|
|
82213
|
-
|
|
82214
|
-
...i ? [
|
|
82256
|
+
L3e,
|
|
82257
|
+
X3e,
|
|
82258
|
+
...i ? [F3e(i)] : [],
|
|
82215
82259
|
...r ? [KL] : [],
|
|
82216
|
-
|
|
82260
|
+
_3e,
|
|
82217
82261
|
// Automatically add unique IDs to all block nodes
|
|
82218
82262
|
QL,
|
|
82219
82263
|
$L(e),
|
|
82220
82264
|
BL(e),
|
|
82221
|
-
|
|
82265
|
+
Z3e({
|
|
82222
82266
|
aiBlockConfig: n,
|
|
82223
82267
|
translations: t,
|
|
82224
82268
|
imageUploadConfig: i
|
|
82225
82269
|
})
|
|
82226
|
-
],
|
|
82270
|
+
], W5e = nt(function({
|
|
82227
82271
|
onChange: t,
|
|
82228
82272
|
placeholder: n,
|
|
82229
82273
|
initialEditorState: i,
|
|
@@ -82253,7 +82297,7 @@ const I5e = (e, t) => {
|
|
|
82253
82297
|
} : void 0,
|
|
82254
82298
|
[s]
|
|
82255
82299
|
), O = K(
|
|
82256
|
-
() =>
|
|
82300
|
+
() => V5e({
|
|
82257
82301
|
placeholder: n,
|
|
82258
82302
|
translations: v,
|
|
82259
82303
|
aiBlockConfig: o,
|
|
@@ -82300,7 +82344,7 @@ const I5e = (e, t) => {
|
|
|
82300
82344
|
clear: () => D?.commands.clearContent(),
|
|
82301
82345
|
focus: () => D?.commands.focus(),
|
|
82302
82346
|
setContent: (L) => D?.commands.setContent(L),
|
|
82303
|
-
applyPageDocumentPatch: (L) => D ? M(() =>
|
|
82347
|
+
applyPageDocumentPatch: (L) => D ? M(() => M5e(D, L)) : { json: null, html: null },
|
|
82304
82348
|
insertAIBlock: () => {
|
|
82305
82349
|
!D || !o || D.chain().focus().insertContentAt(D.state.doc.content.size, [
|
|
82306
82350
|
{
|
|
@@ -82363,7 +82407,7 @@ const I5e = (e, t) => {
|
|
|
82363
82407
|
id: b,
|
|
82364
82408
|
children: [
|
|
82365
82409
|
z ? /* @__PURE__ */ m(
|
|
82366
|
-
|
|
82410
|
+
z5e,
|
|
82367
82411
|
{
|
|
82368
82412
|
primaryAction: c,
|
|
82369
82413
|
secondaryActions: d,
|
|
@@ -82372,7 +82416,7 @@ const I5e = (e, t) => {
|
|
|
82372
82416
|
status: h
|
|
82373
82417
|
}
|
|
82374
82418
|
) : null,
|
|
82375
|
-
E ? /* @__PURE__ */ m(
|
|
82419
|
+
E ? /* @__PURE__ */ m(j5e, { errorType: E, onDismiss: () => S(null) }) : null,
|
|
82376
82420
|
/* @__PURE__ */ m(Yt, { children: N.error && !N.isLoading ? /* @__PURE__ */ m(
|
|
82377
82421
|
Xe.div,
|
|
82378
82422
|
{
|
|
@@ -82394,7 +82438,7 @@ const I5e = (e, t) => {
|
|
|
82394
82438
|
/* @__PURE__ */ P(Ws, { className: "notes-text-editor-scroll h-full gap-6", children: [
|
|
82395
82439
|
p ? /* @__PURE__ */ m("div", { className: "mx-auto w-full max-w-[824px] sm:px-14 px-0", children: /* @__PURE__ */ m(Kk, { ...p }) }) : null,
|
|
82396
82440
|
$ ? /* @__PURE__ */ m(
|
|
82397
|
-
|
|
82441
|
+
H5e,
|
|
82398
82442
|
{
|
|
82399
82443
|
value: k,
|
|
82400
82444
|
onChange: l ? C : void 0,
|
|
@@ -82409,7 +82453,7 @@ const I5e = (e, t) => {
|
|
|
82409
82453
|
onClick: () => D.commands.focus(),
|
|
82410
82454
|
children: [
|
|
82411
82455
|
r ? null : /* @__PURE__ */ m(
|
|
82412
|
-
|
|
82456
|
+
E5e,
|
|
82413
82457
|
{
|
|
82414
82458
|
editor: D,
|
|
82415
82459
|
tippyOptions: I,
|
|
@@ -82521,10 +82565,10 @@ const I5e = (e, t) => {
|
|
|
82521
82565
|
] })
|
|
82522
82566
|
]
|
|
82523
82567
|
}
|
|
82524
|
-
),
|
|
82568
|
+
), U5e = di(
|
|
82525
82569
|
"F0NotesTextEditor",
|
|
82526
|
-
Kc(
|
|
82527
|
-
),
|
|
82570
|
+
Kc(W5e, y$)
|
|
82571
|
+
), dEe = U5e, fEe = y$, v$ = nt(
|
|
82528
82572
|
({ header: e, actions: t, open: n, onClose: i }, r) => {
|
|
82529
82573
|
const [o, s] = X(!1), a = ee(() => {
|
|
82530
82574
|
s(!0);
|
|
@@ -82575,12 +82619,12 @@ const I5e = (e, t) => {
|
|
|
82575
82619
|
}
|
|
82576
82620
|
);
|
|
82577
82621
|
v$.displayName = "Dialog";
|
|
82578
|
-
const
|
|
82622
|
+
const uEe = $t(
|
|
82579
82623
|
cr(
|
|
82580
82624
|
{ name: "Dialog", type: "info" },
|
|
82581
82625
|
di("Dialog", v$)
|
|
82582
82626
|
)
|
|
82583
|
-
),
|
|
82627
|
+
), hEe = ({
|
|
82584
82628
|
avatar: e,
|
|
82585
82629
|
title: t,
|
|
82586
82630
|
description: n,
|
|
@@ -82609,7 +82653,7 @@ const fEe = $t(
|
|
|
82609
82653
|
showBottomBorder: d,
|
|
82610
82654
|
onClose: f
|
|
82611
82655
|
}
|
|
82612
|
-
),
|
|
82656
|
+
), q5e = nt(
|
|
82613
82657
|
function({
|
|
82614
82658
|
title: t,
|
|
82615
82659
|
subtitle: n,
|
|
@@ -82729,11 +82773,11 @@ const fEe = $t(
|
|
|
82729
82773
|
}
|
|
82730
82774
|
);
|
|
82731
82775
|
}
|
|
82732
|
-
),
|
|
82733
|
-
Kc(
|
|
82776
|
+
), G5e = $t(
|
|
82777
|
+
Kc(q5e, b$)
|
|
82734
82778
|
);
|
|
82735
|
-
|
|
82736
|
-
const
|
|
82779
|
+
G5e.displayName = "BaseBanner";
|
|
82780
|
+
const K5e = (e) => {
|
|
82737
82781
|
const {
|
|
82738
82782
|
items: t,
|
|
82739
82783
|
size: n,
|
|
@@ -82799,10 +82843,10 @@ const G5e = (e) => {
|
|
|
82799
82843
|
))
|
|
82800
82844
|
}
|
|
82801
82845
|
);
|
|
82802
|
-
},
|
|
82846
|
+
}, pEe = $t(
|
|
82803
82847
|
di(
|
|
82804
82848
|
"F0ButtonToggleGroup",
|
|
82805
|
-
|
|
82849
|
+
K5e
|
|
82806
82850
|
)
|
|
82807
82851
|
), Yx = [];
|
|
82808
82852
|
let mr = Yx;
|
|
@@ -82876,38 +82920,38 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
82876
82920
|
hasProvider() {
|
|
82877
82921
|
return Tp.size > 0;
|
|
82878
82922
|
}
|
|
82879
|
-
},
|
|
82923
|
+
}, Y5e = 5e3, X5e = 1e4, J5e = (e) => {
|
|
82880
82924
|
process.env.NODE_ENV !== "production" && !Pu.hasProvider() && console.warn(
|
|
82881
82925
|
`[f0] ${e} was called but no <F0Provider> is mounted, so the toast will not render. Make sure your app is wrapped in <F0Provider>.`
|
|
82882
82926
|
);
|
|
82883
|
-
},
|
|
82927
|
+
}, Z5e = (e) => {
|
|
82884
82928
|
const t = e.id ?? jo();
|
|
82885
|
-
|
|
82929
|
+
J5e("toasts.open()");
|
|
82886
82930
|
const n = e.actions != null, i = e.persistent === !0 || e.variant === "loading";
|
|
82887
82931
|
return Pu.addItem({
|
|
82888
|
-
duration: i ? void 0 : n ?
|
|
82932
|
+
duration: i ? void 0 : n ? X5e : Y5e,
|
|
82889
82933
|
...e,
|
|
82890
82934
|
id: t,
|
|
82891
82935
|
onClose: () => Pu.removeItem(t)
|
|
82892
82936
|
}), t;
|
|
82893
|
-
},
|
|
82937
|
+
}, Q5e = (e) => {
|
|
82894
82938
|
Pu.removeItem(e);
|
|
82895
|
-
},
|
|
82939
|
+
}, e6e = () => {
|
|
82896
82940
|
Pu.clear();
|
|
82897
|
-
},
|
|
82941
|
+
}, mEe = {
|
|
82898
82942
|
/**
|
|
82899
82943
|
* Show a toast.
|
|
82900
82944
|
* @param options The options for the toast
|
|
82901
82945
|
* @returns The id of the created toast (pass it to `toasts.close` to dismiss it)
|
|
82902
82946
|
*/
|
|
82903
|
-
open:
|
|
82947
|
+
open: Z5e,
|
|
82904
82948
|
/**
|
|
82905
82949
|
* Dismiss a toast by id.
|
|
82906
82950
|
* @param id The id returned by `toasts.open`
|
|
82907
82951
|
*/
|
|
82908
|
-
close:
|
|
82952
|
+
close: Q5e,
|
|
82909
82953
|
/** Dismiss every open toast. */
|
|
82910
|
-
closeAll:
|
|
82954
|
+
closeAll: e6e
|
|
82911
82955
|
}, Ta = 8, $A = (e) => {
|
|
82912
82956
|
const t = e.getBoundingClientRect();
|
|
82913
82957
|
return {
|
|
@@ -82916,7 +82960,7 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
82916
82960
|
width: t.width + Ta * 2,
|
|
82917
82961
|
height: t.height + Ta * 2
|
|
82918
82962
|
};
|
|
82919
|
-
},
|
|
82963
|
+
}, t6e = (e, t) => e.top === t.top && e.left === t.left && e.width === t.width && e.height === t.height, BA = (e) => {
|
|
82920
82964
|
const t = (r) => parseFloat(getComputedStyle(r).borderTopLeftRadius) || 0, n = t(e);
|
|
82921
82965
|
if (n > 0)
|
|
82922
82966
|
return n + Ta;
|
|
@@ -82930,12 +82974,12 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
82930
82974
|
return o + (s.left - i.left) + Ta;
|
|
82931
82975
|
}
|
|
82932
82976
|
return Ta;
|
|
82933
|
-
},
|
|
82977
|
+
}, n6e = (e) => {
|
|
82934
82978
|
const [t, n] = X(() => $A(e)), i = B(t);
|
|
82935
82979
|
return ae(() => {
|
|
82936
82980
|
const r = () => {
|
|
82937
82981
|
const s = $A(e);
|
|
82938
|
-
|
|
82982
|
+
t6e(i.current, s) || (i.current = s, n(s));
|
|
82939
82983
|
};
|
|
82940
82984
|
if (r(), typeof requestAnimationFrame != "function")
|
|
82941
82985
|
return;
|
|
@@ -82944,24 +82988,24 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
82944
82988
|
});
|
|
82945
82989
|
return () => cancelAnimationFrame(o);
|
|
82946
82990
|
}, [e]), t;
|
|
82947
|
-
},
|
|
82991
|
+
}, i6e = (e) => {
|
|
82948
82992
|
const [t, n] = X(() => BA(e));
|
|
82949
82993
|
return ae(() => n(BA(e)), [e]), t;
|
|
82950
|
-
},
|
|
82994
|
+
}, r6e = 300, o6e = (e, t) => {
|
|
82951
82995
|
const [n, i] = X(!1), r = B(e);
|
|
82952
82996
|
return ae(() => {
|
|
82953
82997
|
if (r.current === e || (r.current = e, !t))
|
|
82954
82998
|
return;
|
|
82955
82999
|
i(!0);
|
|
82956
|
-
const o = setTimeout(() => i(!1),
|
|
83000
|
+
const o = setTimeout(() => i(!1), r6e);
|
|
82957
83001
|
return () => clearTimeout(o);
|
|
82958
83002
|
}, [e, t]), n;
|
|
82959
|
-
},
|
|
83003
|
+
}, s6e = ({
|
|
82960
83004
|
target: e,
|
|
82961
83005
|
container: t,
|
|
82962
83006
|
onOutsideInteraction: n
|
|
82963
83007
|
}) => {
|
|
82964
|
-
const i =
|
|
83008
|
+
const i = n6e(e), r = i6e(e), o = ll(), s = o6e(e, !o);
|
|
82965
83009
|
return ae(() => {
|
|
82966
83010
|
if (typeof e.scrollIntoView != "function")
|
|
82967
83011
|
return;
|
|
@@ -82997,7 +83041,7 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
82997
83041
|
),
|
|
82998
83042
|
t ?? document.body
|
|
82999
83043
|
);
|
|
83000
|
-
}, Op = 12, Dp = 6,
|
|
83044
|
+
}, Op = 12, Dp = 6, a6e = ["0px", "-6px", "6px", "-4px", "4px", "0px"], l6e = 320, w$ = "textarea, input:not([type='hidden']), [contenteditable='true']", zA = `${w$}, select, button, a[href], [tabindex]:not([tabindex='-1'])`, c6e = (e) => e.matches(zA) ? e : e.querySelector(w$) ?? e.querySelector(zA), d6e = (e, t, n) => {
|
|
83001
83045
|
const [i, r] = X(!1), o = B(!1);
|
|
83002
83046
|
return ae(() => {
|
|
83003
83047
|
o.current = !1, r(!1);
|
|
@@ -83019,20 +83063,20 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
83019
83063
|
const l = new ResizeObserver(a);
|
|
83020
83064
|
return l.observe(s), () => l.disconnect();
|
|
83021
83065
|
}, [e, t, n]), i;
|
|
83022
|
-
},
|
|
83066
|
+
}, f6e = () => K(
|
|
83023
83067
|
() => ({
|
|
83024
83068
|
current: {
|
|
83025
83069
|
getBoundingClientRect: () => new DOMRect(window.innerWidth / 2, window.innerHeight / 2, 0, 0)
|
|
83026
83070
|
}
|
|
83027
83071
|
}),
|
|
83028
83072
|
[]
|
|
83029
|
-
),
|
|
83073
|
+
), u6e = (e) => {
|
|
83030
83074
|
const t = ll();
|
|
83031
83075
|
return ee(() => {
|
|
83032
83076
|
const n = e.current;
|
|
83033
83077
|
!n || t || typeof n.animate != "function" || n.animate(
|
|
83034
|
-
|
|
83035
|
-
{ duration:
|
|
83078
|
+
a6e.map((i) => ({ translate: i })),
|
|
83079
|
+
{ duration: l6e, easing: "ease-in-out" }
|
|
83036
83080
|
);
|
|
83037
83081
|
}, [e, t]);
|
|
83038
83082
|
}, x$ = ({
|
|
@@ -83053,8 +83097,8 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
83053
83097
|
leaving: p = !1,
|
|
83054
83098
|
focusTarget: g = !1
|
|
83055
83099
|
}) => {
|
|
83056
|
-
const y = Be(), v = B(null), w = B(null), x =
|
|
83057
|
-
((g ?
|
|
83100
|
+
const y = Be(), v = B(null), w = B(null), x = u6e(v), b = d6e(v, s?.current, e), _ = f6e(), k = () => {
|
|
83101
|
+
((g ? c6e(e) : null) ?? v.current)?.focus();
|
|
83058
83102
|
}, C = Go(), E = `${C}-title`, S = `${C}-description`, A = K(() => ({ current: e }), [e]), T = B(s?.current);
|
|
83059
83103
|
ae(() => {
|
|
83060
83104
|
T.current !== s?.current && (T.current = s?.current, k());
|
|
@@ -83070,7 +83114,7 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
83070
83114
|
children: [
|
|
83071
83115
|
/* @__PURE__ */ m(eH, { virtualRef: b ? _ : A }),
|
|
83072
83116
|
u ? /* @__PURE__ */ m(
|
|
83073
|
-
|
|
83117
|
+
s6e,
|
|
83074
83118
|
{
|
|
83075
83119
|
target: e,
|
|
83076
83120
|
container: f,
|
|
@@ -83181,7 +83225,7 @@ const Tp = /* @__PURE__ */ new Set(), Jx = /* @__PURE__ */ new Set(), fb = () =>
|
|
|
83181
83225
|
);
|
|
83182
83226
|
};
|
|
83183
83227
|
x$.displayName = "F0Coachmark";
|
|
83184
|
-
const
|
|
83228
|
+
const h6e = di("F0Coachmark", x$), Zx = [];
|
|
83185
83229
|
let gr = Zx;
|
|
83186
83230
|
const Qx = /* @__PURE__ */ new Set();
|
|
83187
83231
|
let jA = 0;
|
|
@@ -83262,7 +83306,7 @@ const Ip = /* @__PURE__ */ new Set(), ek = /* @__PURE__ */ new Set(), ub = () =>
|
|
|
83262
83306
|
return k$ && t.length > 1 && console.warn(
|
|
83263
83307
|
`[f0] coachmarks: the selector "${e}" matched ${t.length} elements. Anchoring to the first one — use a selector that matches exactly one.`
|
|
83264
83308
|
), t[0] ?? null;
|
|
83265
|
-
},
|
|
83309
|
+
}, p6e = (e) => {
|
|
83266
83310
|
const [t, n] = X(null), i = B(null);
|
|
83267
83311
|
return ae(() => {
|
|
83268
83312
|
const r = (s) => {
|
|
@@ -83278,7 +83322,7 @@ const Ip = /* @__PURE__ */ new Set(), ek = /* @__PURE__ */ new Set(), ub = () =>
|
|
|
83278
83322
|
const o = new MutationObserver(() => r(VA(e)));
|
|
83279
83323
|
return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
|
|
83280
83324
|
}, [e]), t;
|
|
83281
|
-
},
|
|
83325
|
+
}, m6e = 5, g6e = 150, y6e = ({
|
|
83282
83326
|
item: e,
|
|
83283
83327
|
container: t
|
|
83284
83328
|
}) => {
|
|
@@ -83291,8 +83335,8 @@ const Ip = /* @__PURE__ */ new Set(), ek = /* @__PURE__ */ new Set(), ub = () =>
|
|
|
83291
83335
|
}
|
|
83292
83336
|
o(!0), s.current = setTimeout(() => {
|
|
83293
83337
|
i(v), o(!1);
|
|
83294
|
-
},
|
|
83295
|
-
}, u =
|
|
83338
|
+
}, g6e);
|
|
83339
|
+
}, u = p6e(c.targetElement), h = B(0), p = e.skipAfterOutsideClicks ?? m6e, g = () => ya.removeItem(e.id), y = (v) => {
|
|
83296
83340
|
e.onEnd?.({
|
|
83297
83341
|
reason: v,
|
|
83298
83342
|
step: l + 1,
|
|
@@ -83301,7 +83345,7 @@ const Ip = /* @__PURE__ */ new Set(), ek = /* @__PURE__ */ new Set(), ub = () =>
|
|
|
83301
83345
|
}), g();
|
|
83302
83346
|
};
|
|
83303
83347
|
return u ? /* @__PURE__ */ m(
|
|
83304
|
-
|
|
83348
|
+
h6e,
|
|
83305
83349
|
{
|
|
83306
83350
|
target: u,
|
|
83307
83351
|
container: t,
|
|
@@ -83327,7 +83371,7 @@ const Ip = /* @__PURE__ */ new Set(), ek = /* @__PURE__ */ new Set(), ub = () =>
|
|
|
83327
83371
|
}
|
|
83328
83372
|
}
|
|
83329
83373
|
) : null;
|
|
83330
|
-
},
|
|
83374
|
+
}, gEe = ({
|
|
83331
83375
|
children: e,
|
|
83332
83376
|
portalTarget: t = "#f0-overlay-root"
|
|
83333
83377
|
}) => {
|
|
@@ -83350,7 +83394,7 @@ const Ip = /* @__PURE__ */ new Set(), ek = /* @__PURE__ */ new Set(), ub = () =>
|
|
|
83350
83394
|
}, [t]);
|
|
83351
83395
|
const l = n[0];
|
|
83352
83396
|
return /* @__PURE__ */ P(We, { children: [
|
|
83353
|
-
o && l ? /* @__PURE__ */ m(
|
|
83397
|
+
o && l ? /* @__PURE__ */ m(y6e, { item: l, container: s }, l.id) : null,
|
|
83354
83398
|
e
|
|
83355
83399
|
] });
|
|
83356
83400
|
};
|
|
@@ -83358,12 +83402,12 @@ export {
|
|
|
83358
83402
|
fV as $,
|
|
83359
83403
|
vK as A,
|
|
83360
83404
|
wK as B,
|
|
83361
|
-
|
|
83362
|
-
|
|
83405
|
+
C6e as C,
|
|
83406
|
+
N6e as D,
|
|
83363
83407
|
swe as E,
|
|
83364
|
-
|
|
83408
|
+
pEe as F,
|
|
83365
83409
|
mI as G,
|
|
83366
|
-
|
|
83410
|
+
n4e as H,
|
|
83367
83411
|
TU as I,
|
|
83368
83412
|
Us as J,
|
|
83369
83413
|
eW as K,
|
|
@@ -83371,47 +83415,47 @@ export {
|
|
|
83371
83415
|
lV as M,
|
|
83372
83416
|
c4 as N,
|
|
83373
83417
|
vee as O,
|
|
83374
|
-
|
|
83418
|
+
q6e as P,
|
|
83375
83419
|
ZW as Q,
|
|
83376
83420
|
vV as R,
|
|
83377
83421
|
CO as S,
|
|
83378
83422
|
iW as T,
|
|
83379
83423
|
kU as U,
|
|
83380
83424
|
jK as V,
|
|
83381
|
-
|
|
83425
|
+
A6e as W,
|
|
83382
83426
|
wU as X,
|
|
83383
|
-
|
|
83427
|
+
T6e as Y,
|
|
83384
83428
|
Wk as Z,
|
|
83385
83429
|
Hk as _,
|
|
83386
83430
|
ybe as a,
|
|
83387
83431
|
QQ as a$,
|
|
83388
|
-
|
|
83389
|
-
|
|
83390
|
-
|
|
83432
|
+
j6e as a0,
|
|
83433
|
+
H6e as a1,
|
|
83434
|
+
V6e as a2,
|
|
83391
83435
|
XK as a3,
|
|
83392
|
-
|
|
83436
|
+
G5e as a4,
|
|
83393
83437
|
WL as a5,
|
|
83394
|
-
|
|
83395
|
-
|
|
83396
|
-
|
|
83397
|
-
|
|
83398
|
-
|
|
83438
|
+
O6e as a6,
|
|
83439
|
+
D6e as a7,
|
|
83440
|
+
I6e as a8,
|
|
83441
|
+
M6e as a9,
|
|
83442
|
+
tEe as aA,
|
|
83399
83443
|
Nfe as aB,
|
|
83400
83444
|
Cfe as aC,
|
|
83401
83445
|
_fe as aD,
|
|
83402
83446
|
Zy as aE,
|
|
83403
83447
|
x2 as aF,
|
|
83404
83448
|
Oee as aG,
|
|
83405
|
-
|
|
83449
|
+
X6e as aH,
|
|
83406
83450
|
Hee as aI,
|
|
83407
|
-
|
|
83408
|
-
|
|
83451
|
+
uEe as aJ,
|
|
83452
|
+
gEe as aK,
|
|
83409
83453
|
y$ as aL,
|
|
83410
|
-
|
|
83411
|
-
|
|
83412
|
-
|
|
83454
|
+
U5e as aM,
|
|
83455
|
+
dEe as aN,
|
|
83456
|
+
fEe as aO,
|
|
83413
83457
|
rF as aP,
|
|
83414
|
-
|
|
83458
|
+
aEe as aQ,
|
|
83415
83459
|
Wi as aR,
|
|
83416
83460
|
tF as aS,
|
|
83417
83461
|
IV as aT,
|
|
@@ -83422,24 +83466,24 @@ export {
|
|
|
83422
83466
|
CY as aY,
|
|
83423
83467
|
IY as aZ,
|
|
83424
83468
|
kY as a_,
|
|
83425
|
-
|
|
83426
|
-
|
|
83427
|
-
|
|
83428
|
-
|
|
83429
|
-
|
|
83430
|
-
|
|
83469
|
+
P6e as aa,
|
|
83470
|
+
R6e as ab,
|
|
83471
|
+
L6e as ac,
|
|
83472
|
+
F6e as ad,
|
|
83473
|
+
$6e as ae,
|
|
83474
|
+
B6e as af,
|
|
83431
83475
|
$m as ag,
|
|
83432
83476
|
A9 as ah,
|
|
83433
83477
|
gpe as ai,
|
|
83434
|
-
|
|
83435
|
-
|
|
83436
|
-
|
|
83437
|
-
|
|
83438
|
-
|
|
83478
|
+
K6e as aj,
|
|
83479
|
+
Y6e as ak,
|
|
83480
|
+
G6e as al,
|
|
83481
|
+
Q6e as am,
|
|
83482
|
+
J6e as an,
|
|
83439
83483
|
Uy as ao,
|
|
83440
|
-
|
|
83484
|
+
Z6e as ap,
|
|
83441
83485
|
$9 as aq,
|
|
83442
|
-
|
|
83486
|
+
hEe as ar,
|
|
83443
83487
|
ID as as,
|
|
83444
83488
|
xD as at,
|
|
83445
83489
|
sf as au,
|
|
@@ -83454,7 +83498,7 @@ export {
|
|
|
83454
83498
|
Um as b2,
|
|
83455
83499
|
pI as b3,
|
|
83456
83500
|
dF as b4,
|
|
83457
|
-
|
|
83501
|
+
H_e as b5,
|
|
83458
83502
|
b2 as b6,
|
|
83459
83503
|
ld as b7,
|
|
83460
83504
|
LZ as b8,
|
|
@@ -83465,15 +83509,15 @@ export {
|
|
|
83465
83509
|
YX as bD,
|
|
83466
83510
|
Lk as bE,
|
|
83467
83511
|
Hv as bF,
|
|
83468
|
-
|
|
83512
|
+
eEe as bG,
|
|
83469
83513
|
HP as bH,
|
|
83470
83514
|
Ji as bI,
|
|
83471
83515
|
X2 as bJ,
|
|
83472
83516
|
cfe as bK,
|
|
83473
|
-
|
|
83517
|
+
nEe as bL,
|
|
83474
83518
|
hfe as bM,
|
|
83475
83519
|
pfe as bN,
|
|
83476
|
-
|
|
83520
|
+
iEe as bO,
|
|
83477
83521
|
ree as ba,
|
|
83478
83522
|
oee as bb,
|
|
83479
83523
|
lee as bc,
|
|
@@ -83486,7 +83530,7 @@ export {
|
|
|
83486
83530
|
bI as bj,
|
|
83487
83531
|
oC as bk,
|
|
83488
83532
|
Pu as bl,
|
|
83489
|
-
|
|
83533
|
+
E6e as bm,
|
|
83490
83534
|
Wy as bn,
|
|
83491
83535
|
Kk as bo,
|
|
83492
83536
|
D9 as bp,
|
|
@@ -83494,7 +83538,7 @@ export {
|
|
|
83494
83538
|
Yk as br,
|
|
83495
83539
|
FY as bs,
|
|
83496
83540
|
sF as bt,
|
|
83497
|
-
|
|
83541
|
+
lEe as bu,
|
|
83498
83542
|
Ua as bv,
|
|
83499
83543
|
kD as bw,
|
|
83500
83544
|
iY as bx,
|
|
@@ -83512,14 +83556,14 @@ export {
|
|
|
83512
83556
|
mV as l,
|
|
83513
83557
|
Kfe as m,
|
|
83514
83558
|
jo as n,
|
|
83515
|
-
|
|
83559
|
+
U6e as o,
|
|
83516
83560
|
WN as p,
|
|
83517
|
-
|
|
83561
|
+
W6e as q,
|
|
83518
83562
|
sY as r,
|
|
83519
|
-
|
|
83520
|
-
|
|
83563
|
+
z6e as s,
|
|
83564
|
+
mEe as t,
|
|
83521
83565
|
uV as u,
|
|
83522
|
-
|
|
83566
|
+
sEe as v,
|
|
83523
83567
|
IK as w,
|
|
83524
83568
|
kK as x,
|
|
83525
83569
|
aK as y,
|