@factorialco/f0-react 1.420.0 → 1.422.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{F0HILActionConfirmation-DmSwzvkv.js → F0HILActionConfirmation-DxshcaDQ.js} +1 -1
- package/dist/ai.d.ts +35 -12
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +26 -11
- package/dist/experimental.js +212 -212
- package/dist/f0.d.ts +40 -12
- package/dist/f0.js +1745 -1829
- package/dist/i18n-provider-defaults.d.ts +21 -11
- package/dist/i18n-provider-defaults.js +10 -0
- package/dist/{index-BVculwZa.js → index-CIfYW3SA.js} +1 -1
- package/dist/{registry-BQtwbAA5.js → registry-WX4F5JvC.js} +27382 -27103
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cH as mf, a7 as _r,
|
|
2
|
-
import { eU as WI, eT as UI, eR as GI,
|
|
1
|
+
import { cH as mf, a7 as _r, b6 as gf, a6 as bf, cI as wf, cJ as xf, a1 as yf, cK as Co, cL as er, cM as vf, cN as _s, cO as ji, cP as Er, K as k, R as q, L as rt, u as me, cQ as kf, cR as Cf, cS as Sf, cT as Nf, cU as If, ak as Le, cV as Af, a0 as Et, cW as _f, b7 as Ef, _ as H, bf as Tf, bg as Df, U as jt, cX as ba, bs as Rf, bh as Lf, M as B, cY as Es, Z as E, cZ as it, c_ as Of, c$ as Mf, bn as Pf, ay as Ff, bl as zf, aH as Ht, d0 as wa, d1 as $f, d2 as Tt, aZ as kn, aA as Ts, aB as cn, k as xa, a4 as mt, d3 as ya, d4 as Bf, d5 as So, d6 as tn, d7 as Ds, d8 as jn, d9 as Tr, da as jf, db as va, dc as Hf, dd as Rs, de as Cn, df as Re, dg as Vf, dh as Wf, di as kt, dj as bi, dk as Uf, dl as yn, dm as Kt, dn as Gf, P as de, dp as Kf, dq as qf, dr as Jf, ds as Yf, dt as Xf, W as Je, Y as ue, du as Ls, aV as Hn, cE as Zr, dv as ka, dw as Os, dx as Zf, dy as Qf, dz as eh, dA as th, dB as nh, dC as rh, dD as ih, dE as sh, dF as oh, ba as lh, dG as ah, b8 as ch, dH as dh, dI as uh, dJ as fh, dK as hh, dL as ph, dM as mh, dN as gh, dO as bh, c2 as nt, dP as Ca, dQ as wh, a3 as V, N as Sa, dR as Na, dS as xh, b1 as Ms, a8 as No, a9 as Io, as as yh, dT as vh, dU as kh, am as dn, dV as Ch, dW as Sh, dX as Nh, dY as Ih, aQ as Qr, dZ as Ia, d_ as Aa, c4 as _a, d$ as Ah, aJ as Dr, e0 as _h, e1 as Eh, e2 as Th, e3 as Dh, e4 as Rh, ai as Lh, aj as Oh, al as Mh, e5 as Ph, e6 as Ea, e7 as Fh, e8 as Ta, e9 as zh, ea as $h, eb as Bh, ax as Ao, ec as Da, ed as Hi, b$ as Vi, ee as Ra, ef as jh, eg as Hh, cD as Vn, bD as La, cG as Vh, cF as Wh, eh as Uh, bE as nn, ei as Gh, aN as tr, ej as _o, ek as Wi, el as Kh, bm as qh, em as Jh, bZ as Oa, c3 as Yh, cf as Ma, cd as Ps, ae as Xh, cg as Zh, c0 as Fs, av as Pa, c as Fa, g as Qh, a as ep, bV as tp, en as za, eo as np, F as rp, ep as $a, eq as Ba, er as ip, bw as Eo, es as sp, et as op, bX as lp, bu as ja, bx as ap, eu as cp, ev as dp, ew as up, ex as fp, bY as Ha, $ as hp, Q as st, bJ as zs, ey as $s, ez as Bs, eA as Va, bK as js, eB as Wa, eC as pp, eD as mp, eE as gp, eF as bp, eG as wp, bL as xp, eH as yp, b_ as vp, eI as kp, eJ as To, eK as Do, eL as Ro, a$ as Cp, eM as Sp, eN as Np, bc as Ip, eO as Ua, bC as Ap, eP as _p, eQ as Ep } from "./registry-WX4F5JvC.js";
|
|
2
|
+
import { eU as WI, eT as UI, eR as GI, aE as KI, eS as qI, f0 as JI, f1 as YI, f3 as XI, f7 as ZI, f8 as QI, aK as eA, eW as tA, eV as nA, f2 as rA, e$ as iA, eY as sA, e_ as oA, eX as lA, c1 as aA, eZ as cA, f4 as dA, f5 as uA, f6 as fA } from "./registry-WX4F5JvC.js";
|
|
3
3
|
import { jsx as c, jsxs as g, Fragment as ne } from "react/jsx-runtime";
|
|
4
4
|
import * as Sn from "react";
|
|
5
|
-
import z, { PureComponent as Tp, forwardRef as P, useRef as K, useTransition as Dp, useState as L, useLayoutEffect as Ga, useContext as Hs, createContext as Vs, useCallback as X, useMemo as ee, useEffect as W, useId as Ka, useImperativeHandle as qa, memo as
|
|
6
|
-
import { f as
|
|
7
|
-
import { a6 as pA, Z as mA, a1 as gA, R as bA, $ as wA, bk as xA, bj as yA, bh as vA, bi as kA, T as CA, a5 as SA, U as NA, _ as IA, W as AA, a9 as _A, aa as EA } from "./index-
|
|
5
|
+
import z, { PureComponent as Tp, forwardRef as P, useRef as K, useTransition as Dp, useState as L, useLayoutEffect as Ga, useContext as Hs, createContext as Vs, useCallback as X, useMemo as ee, useEffect as W, useId as Ka, useImperativeHandle as qa, memo as Ja, Fragment as Rp, isValidElement as Lp, cloneElement as Ya, Children as Xa } from "react";
|
|
6
|
+
import { f as Jt, ad as Nn, e as nr, ae as Op, L as wi, af as Mp, A as Pp, i as rr, k as Fp, G as zp, g as Lo, ag as $p, j as Oo, n as Bp, ah as Za, ai as Qa, aj as jp, C as Hp, ab as Vp, ak as je, al as ot, am as Ee, an as Wp, ao as gr, ap as Ue, aq as ec, ar as Me, as as Ws, at as $e, au as Mo, av as Up, aw as tc, ax as Ie, ay as Fe, az as In, aA as Rr, aB as nc, aC as Gp, aD as Vt, aE as Kp, aF as qp, aG as Jp, aH as Wn, aI as Un, aJ as Us, aK as Yp, aL as rc, aM as ic, aN as sc, aO as Xp, aP as oc, aQ as lc, aR as ac, aS as cc, aT as dc, aU as uc, a4 as Po, aV as Zp, aW as Fo, aX as Qp, aY as em, aZ as tm, w as nm, x as rm, z as im, J as sm, K as om, s as lm, a_ as fc, a$ as am, b0 as cm, b1 as dm, b2 as hc, a8 as Ui, b3 as um, b4 as fm, b5 as hm, b6 as pm, b7 as mm, b8 as gm, b9 as bm, a0 as wm, ba as xm, bb as ym, bc as vm, bd as km, ac as pc, M as Cm, N as Sm, P as Nm, Q as Im, V as Am, O as _m, be as zo, bf as Em, bg as Tm, l as Dm } from "./index-CIfYW3SA.js";
|
|
7
|
+
import { a6 as pA, Z as mA, a1 as gA, R as bA, $ as wA, bk as xA, bj as yA, bh as vA, bi as kA, T as CA, a5 as SA, U as NA, _ as IA, W as AA, a9 as _A, aa as EA } from "./index-CIfYW3SA.js";
|
|
8
8
|
import './experimental.css';const Rm = mf("Search", [
|
|
9
9
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
10
10
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
@@ -98,7 +98,7 @@ var $m = function(e, n, r, i) {
|
|
|
98
98
|
return null;
|
|
99
99
|
var a = _n({
|
|
100
100
|
stroke: "#ccc"
|
|
101
|
-
},
|
|
101
|
+
}, Jt(e, !1));
|
|
102
102
|
return /* @__PURE__ */ z.createElement("g", {
|
|
103
103
|
className: "recharts-polar-grid-angle"
|
|
104
104
|
}, o.map(function(d) {
|
|
@@ -114,7 +114,7 @@ var $m = function(e, n, r, i) {
|
|
|
114
114
|
}, jm = function(e) {
|
|
115
115
|
var n = e.cx, r = e.cy, i = e.radius, s = e.index, o = _n(_n({
|
|
116
116
|
stroke: "#ccc"
|
|
117
|
-
},
|
|
117
|
+
}, Jt(e, !1)), {}, {
|
|
118
118
|
fill: "none"
|
|
119
119
|
});
|
|
120
120
|
return /* @__PURE__ */ z.createElement("circle", gt({}, o, {
|
|
@@ -127,7 +127,7 @@ var $m = function(e, n, r, i) {
|
|
|
127
127
|
}, Hm = function(e) {
|
|
128
128
|
var n = e.radius, r = e.index, i = _n(_n({
|
|
129
129
|
stroke: "#ccc"
|
|
130
|
-
},
|
|
130
|
+
}, Jt(e, !1)), {}, {
|
|
131
131
|
fill: "none"
|
|
132
132
|
});
|
|
133
133
|
return /* @__PURE__ */ z.createElement("path", gt({}, i, {
|
|
@@ -198,9 +198,9 @@ function rn(t) {
|
|
|
198
198
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
199
199
|
}, rn(t);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Jm(t, e) {
|
|
202
202
|
if (t == null) return {};
|
|
203
|
-
var n =
|
|
203
|
+
var n = Ym(t, e), r, i;
|
|
204
204
|
if (Object.getOwnPropertySymbols) {
|
|
205
205
|
var s = Object.getOwnPropertySymbols(t);
|
|
206
206
|
for (i = 0; i < s.length; i++)
|
|
@@ -208,7 +208,7 @@ function Ym(t, e) {
|
|
|
208
208
|
}
|
|
209
209
|
return n;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ym(t, e) {
|
|
212
212
|
if (t == null) return {};
|
|
213
213
|
var n = {};
|
|
214
214
|
for (var r in t)
|
|
@@ -348,7 +348,7 @@ var Gn = /* @__PURE__ */ (function(t) {
|
|
|
348
348
|
return ng(e, t), Zm(e, [{
|
|
349
349
|
key: "renderDots",
|
|
350
350
|
value: function(r) {
|
|
351
|
-
var i = this.props, s = i.dot, o = i.dataKey, l =
|
|
351
|
+
var i = this.props, s = i.dot, o = i.dataKey, l = Jt(this.props, !1), a = Jt(s, !0), d = r.map(function(f, u) {
|
|
352
352
|
var h = ke(ke(ke({
|
|
353
353
|
key: "dot-".concat(u),
|
|
354
354
|
r: 3
|
|
@@ -373,7 +373,7 @@ var Gn = /* @__PURE__ */ (function(t) {
|
|
|
373
373
|
points: r
|
|
374
374
|
})) : nr(s) ? f = s(ke(ke({}, this.props), {}, {
|
|
375
375
|
points: r
|
|
376
|
-
})) : f = /* @__PURE__ */ z.createElement(Mp, Lr({},
|
|
376
|
+
})) : f = /* @__PURE__ */ z.createElement(Mp, Lr({}, Jt(this.props, !0), {
|
|
377
377
|
onMouseEnter: this.handleMouseEnter,
|
|
378
378
|
onMouseLeave: this.handleMouseLeave,
|
|
379
379
|
points: r,
|
|
@@ -457,7 +457,7 @@ var Gn = /* @__PURE__ */ (function(t) {
|
|
|
457
457
|
else if (nr(r))
|
|
458
458
|
s = r(i);
|
|
459
459
|
else {
|
|
460
|
-
var o = i.key, l =
|
|
460
|
+
var o = i.key, l = Jm(i, qm);
|
|
461
461
|
s = /* @__PURE__ */ z.createElement(Op, Lr({}, l, {
|
|
462
462
|
key: o,
|
|
463
463
|
className: _r("recharts-radar-dot", typeof r != "boolean" ? r.className : "")
|
|
@@ -1432,7 +1432,7 @@ const kc = ({
|
|
|
1432
1432
|
] })
|
|
1433
1433
|
] });
|
|
1434
1434
|
};
|
|
1435
|
-
function
|
|
1435
|
+
function Jo({
|
|
1436
1436
|
icon: t,
|
|
1437
1437
|
href: e,
|
|
1438
1438
|
label: n,
|
|
@@ -1558,7 +1558,7 @@ function UN({
|
|
|
1558
1558
|
] }),
|
|
1559
1559
|
/* @__PURE__ */ g("div", { className: "flex items-center gap-2", children: [
|
|
1560
1560
|
/* @__PURE__ */ c(
|
|
1561
|
-
|
|
1561
|
+
Jo,
|
|
1562
1562
|
{
|
|
1563
1563
|
icon: Ts,
|
|
1564
1564
|
label: s.previous?.title || "Previous",
|
|
@@ -1567,7 +1567,7 @@ function UN({
|
|
|
1567
1567
|
}
|
|
1568
1568
|
),
|
|
1569
1569
|
/* @__PURE__ */ c(
|
|
1570
|
-
|
|
1570
|
+
Jo,
|
|
1571
1571
|
{
|
|
1572
1572
|
icon: cn,
|
|
1573
1573
|
label: s.next?.title || "Next",
|
|
@@ -1649,7 +1649,7 @@ const Pr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
|
|
|
1649
1649
|
node: i
|
|
1650
1650
|
};
|
|
1651
1651
|
}
|
|
1652
|
-
},
|
|
1652
|
+
}, Yo = (t, e) => {
|
|
1653
1653
|
const { state: n, view: r, extensionManager: i } = t, { schema: s, selection: o } = n, { empty: l, $anchor: a } = o, d = !!i.extensions.find((x) => x.name === "gapCursor");
|
|
1654
1654
|
if (!l || a.parent.type !== s.nodes.detailsSummary || !d || e === "right" && a.parentOffset !== a.parent.nodeSize - 2)
|
|
1655
1655
|
return !1;
|
|
@@ -1821,9 +1821,9 @@ const Pr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
|
|
|
1821
1821
|
return h.setSelection(m), h.scrollIntoView(), n.dispatch(h), !0;
|
|
1822
1822
|
},
|
|
1823
1823
|
// The default gapcursor implementation can’t handle hidden content, so we need to fix this.
|
|
1824
|
-
ArrowRight: ({ editor: t }) =>
|
|
1824
|
+
ArrowRight: ({ editor: t }) => Yo(t, "right"),
|
|
1825
1825
|
// The default gapcursor implementation can’t handle hidden content, so we need to fix this.
|
|
1826
|
-
ArrowDown: ({ editor: t }) =>
|
|
1826
|
+
ArrowDown: ({ editor: t }) => Yo(t, "down")
|
|
1827
1827
|
};
|
|
1828
1828
|
},
|
|
1829
1829
|
addProseMirrorPlugins() {
|
|
@@ -2207,7 +2207,7 @@ function Og(t) {
|
|
|
2207
2207
|
return t.doc.resolve(n - e.nodeSize);
|
|
2208
2208
|
}
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function Ji(t) {
|
|
2211
2211
|
return t.parent.type.spec.tableRole == "row" && !!t.nodeAfter;
|
|
2212
2212
|
}
|
|
2213
2213
|
function Mg(t) {
|
|
@@ -2264,7 +2264,7 @@ var Q = class ut extends Me {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
map(e, n) {
|
|
2266
2266
|
const r = e.resolve(n.map(this.$anchorCell.pos)), i = e.resolve(n.map(this.$headCell.pos));
|
|
2267
|
-
if (
|
|
2267
|
+
if (Ji(r) && Ji(i) && qs(r, i)) {
|
|
2268
2268
|
const s = this.$anchorCell.node(-1) != r.node(-1);
|
|
2269
2269
|
return s && this.isRowSelection() ? ut.rowSelection(r, i) : s && this.isColSelection() ? ut.colSelection(r, i) : new ut(r, i);
|
|
2270
2270
|
}
|
|
@@ -2650,7 +2650,7 @@ function Lc(t, { map: e, tableStart: n, table: r }, i) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
return t.insert(o, ve(r.type.schema).row.create(null, l)), t;
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function Jg(t, e) {
|
|
2654
2654
|
if (!Ze(t)) return !1;
|
|
2655
2655
|
if (e) {
|
|
2656
2656
|
const n = lt(t);
|
|
@@ -2658,7 +2658,7 @@ function Yg(t, e) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
return !0;
|
|
2660
2660
|
}
|
|
2661
|
-
function
|
|
2661
|
+
function Yg(t, e) {
|
|
2662
2662
|
if (!Ze(t)) return !1;
|
|
2663
2663
|
if (e) {
|
|
2664
2664
|
const n = lt(t);
|
|
@@ -2993,14 +2993,14 @@ function ob(t) {
|
|
|
2993
2993
|
for (let a = 0; a < e.childCount; a++) {
|
|
2994
2994
|
let d = e.child(a).content;
|
|
2995
2995
|
const f = a ? 0 : Math.max(0, n - 1), u = a < e.childCount - 1 ? 0 : Math.max(0, r - 1);
|
|
2996
|
-
(f || u) && (d =
|
|
2996
|
+
(f || u) && (d = Yi(
|
|
2997
2997
|
ve(o).row,
|
|
2998
2998
|
new Fe(d, f, u)
|
|
2999
2999
|
).content), l.push(d);
|
|
3000
3000
|
}
|
|
3001
3001
|
else if (s == "cell" || s == "header_cell")
|
|
3002
3002
|
l.push(
|
|
3003
|
-
n || r ?
|
|
3003
|
+
n || r ? Yi(
|
|
3004
3004
|
ve(o).row,
|
|
3005
3005
|
new Fe(e, n, r)
|
|
3006
3006
|
).content : e
|
|
@@ -3030,7 +3030,7 @@ function lb(t, e) {
|
|
|
3030
3030
|
}
|
|
3031
3031
|
return { height: e.length, width: r, rows: e };
|
|
3032
3032
|
}
|
|
3033
|
-
function
|
|
3033
|
+
function Yi(t, e) {
|
|
3034
3034
|
const n = t.createAndFill();
|
|
3035
3035
|
return new Gp(n).replace(0, n.content.size, e).doc;
|
|
3036
3036
|
}
|
|
@@ -3256,7 +3256,7 @@ function fb(t, e, n) {
|
|
|
3256
3256
|
height: 1,
|
|
3257
3257
|
rows: [
|
|
3258
3258
|
Ie.from(
|
|
3259
|
-
|
|
3259
|
+
Yi(ve(t.state.schema).cell, n)
|
|
3260
3260
|
)
|
|
3261
3261
|
]
|
|
3262
3262
|
});
|
|
@@ -3443,7 +3443,7 @@ var gb = class wr {
|
|
|
3443
3443
|
return new wr(n.activeHandle, r.setDragging);
|
|
3444
3444
|
if (n.activeHandle > -1 && e.docChanged) {
|
|
3445
3445
|
let i = e.mapping.map(n.activeHandle, -1);
|
|
3446
|
-
return
|
|
3446
|
+
return Ji(e.doc.resolve(i)) || (i = -1), new wr(i, n.dragging);
|
|
3447
3447
|
}
|
|
3448
3448
|
return n;
|
|
3449
3449
|
}
|
|
@@ -3829,7 +3829,7 @@ var lr = ({ editor: t }) => {
|
|
|
3829
3829
|
if (!Lb(e))
|
|
3830
3830
|
return !1;
|
|
3831
3831
|
let n = 0;
|
|
3832
|
-
const r =
|
|
3832
|
+
const r = Jp(e.ranges[0].$from, (s) => s.type.name === "table");
|
|
3833
3833
|
return r?.node.descendants((s) => {
|
|
3834
3834
|
if (s.type.name === "table")
|
|
3835
3835
|
return !1;
|
|
@@ -3943,8 +3943,8 @@ var Fb = Pb, zb = je.create({
|
|
|
3943
3943
|
addColumnBefore: () => ({ state: t, dispatch: e }) => Wg(t, e),
|
|
3944
3944
|
addColumnAfter: () => ({ state: t, dispatch: e }) => Ug(t, e),
|
|
3945
3945
|
deleteColumn: () => ({ state: t, dispatch: e }) => Kg(t, e),
|
|
3946
|
-
addRowBefore: () => ({ state: t, dispatch: e }) =>
|
|
3947
|
-
addRowAfter: () => ({ state: t, dispatch: e }) =>
|
|
3946
|
+
addRowBefore: () => ({ state: t, dispatch: e }) => Jg(t, e),
|
|
3947
|
+
addRowAfter: () => ({ state: t, dispatch: e }) => Yg(t, e),
|
|
3948
3948
|
deleteRow: () => ({ state: t, dispatch: e }) => Zg(t, e),
|
|
3949
3949
|
deleteTable: () => ({ state: t, dispatch: e }) => sb(t, e),
|
|
3950
3950
|
mergeCells: () => ({ state: t, dispatch: e }) => Zo(t, e),
|
|
@@ -4094,8 +4094,8 @@ function Gb() {
|
|
|
4094
4094
|
exit: {
|
|
4095
4095
|
literalAutolink: Zb,
|
|
4096
4096
|
literalAutolinkEmail: Xb,
|
|
4097
|
-
literalAutolinkHttp:
|
|
4098
|
-
literalAutolinkWww:
|
|
4097
|
+
literalAutolinkHttp: Jb,
|
|
4098
|
+
literalAutolinkWww: Yb
|
|
4099
4099
|
}
|
|
4100
4100
|
};
|
|
4101
4101
|
}
|
|
@@ -4132,10 +4132,10 @@ function qb(t) {
|
|
|
4132
4132
|
function Si(t) {
|
|
4133
4133
|
this.config.enter.autolinkProtocol.call(this, t);
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4135
|
+
function Jb(t) {
|
|
4136
4136
|
this.config.exit.autolinkProtocol.call(this, t);
|
|
4137
4137
|
}
|
|
4138
|
-
function
|
|
4138
|
+
function Yb(t) {
|
|
4139
4139
|
this.config.exit.data.call(this, t);
|
|
4140
4140
|
const e = this.stack[this.stack.length - 1];
|
|
4141
4141
|
e.type, e.url = "http://" + this.sliceSerialize(t);
|
|
@@ -4504,7 +4504,7 @@ function D0(t, e, n, r) {
|
|
|
4504
4504
|
function R0(t, e, n) {
|
|
4505
4505
|
return (n ? "" : " ") + t;
|
|
4506
4506
|
}
|
|
4507
|
-
function
|
|
4507
|
+
function Js(t) {
|
|
4508
4508
|
const e = t.options.quote || '"';
|
|
4509
4509
|
if (e !== '"' && e !== "'")
|
|
4510
4510
|
throw new Error(
|
|
@@ -4513,7 +4513,7 @@ function Ys(t) {
|
|
|
4513
4513
|
return e;
|
|
4514
4514
|
}
|
|
4515
4515
|
function L0(t, e, n, r) {
|
|
4516
|
-
const i =
|
|
4516
|
+
const i = Js(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
|
|
4517
4517
|
let l = n.enter("label");
|
|
4518
4518
|
const a = n.createTracker(r);
|
|
4519
4519
|
let d = a.move("[");
|
|
@@ -4658,7 +4658,7 @@ function z0() {
|
|
|
4658
4658
|
}
|
|
4659
4659
|
Hc.peek = $0;
|
|
4660
4660
|
function Hc(t, e, n, r) {
|
|
4661
|
-
const i =
|
|
4661
|
+
const i = Js(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
|
|
4662
4662
|
let l = n.enter("label");
|
|
4663
4663
|
const a = n.createTracker(r);
|
|
4664
4664
|
let d = a.move("![");
|
|
@@ -4741,7 +4741,7 @@ function Uc(t, e) {
|
|
|
4741
4741
|
}
|
|
4742
4742
|
Gc.peek = H0;
|
|
4743
4743
|
function Gc(t, e, n, r) {
|
|
4744
|
-
const i =
|
|
4744
|
+
const i = Js(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
|
|
4745
4745
|
let l, a;
|
|
4746
4746
|
if (Uc(t, n)) {
|
|
4747
4747
|
const f = n.stack;
|
|
@@ -4808,7 +4808,7 @@ function Kc(t, e, n, r) {
|
|
|
4808
4808
|
function V0() {
|
|
4809
4809
|
return "[";
|
|
4810
4810
|
}
|
|
4811
|
-
function
|
|
4811
|
+
function Ys(t) {
|
|
4812
4812
|
const e = t.options.bullet || "*";
|
|
4813
4813
|
if (e !== "*" && e !== "+" && e !== "-")
|
|
4814
4814
|
throw new Error(
|
|
@@ -4817,7 +4817,7 @@ function Js(t) {
|
|
|
4817
4817
|
return e;
|
|
4818
4818
|
}
|
|
4819
4819
|
function W0(t) {
|
|
4820
|
-
const e =
|
|
4820
|
+
const e = Ys(t), n = t.options.bulletOther;
|
|
4821
4821
|
if (!n)
|
|
4822
4822
|
return e === "*" ? "-" : "*";
|
|
4823
4823
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
@@ -4848,7 +4848,7 @@ function qc(t) {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
function G0(t, e, n, r) {
|
|
4850
4850
|
const i = n.enter("list"), s = n.bulletCurrent;
|
|
4851
|
-
let o = t.ordered ? U0(n) :
|
|
4851
|
+
let o = t.ordered ? U0(n) : Ys(n);
|
|
4852
4852
|
const l = t.ordered ? o === "." ? ")" : "." : W0(n);
|
|
4853
4853
|
let a = e && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
|
|
4854
4854
|
if (!t.ordered) {
|
|
@@ -4884,7 +4884,7 @@ function K0(t) {
|
|
|
4884
4884
|
}
|
|
4885
4885
|
function q0(t, e, n, r) {
|
|
4886
4886
|
const i = K0(n);
|
|
4887
|
-
let s = n.bulletCurrent ||
|
|
4887
|
+
let s = n.bulletCurrent || Ys(n);
|
|
4888
4888
|
e && e.type === "list" && e.ordered && (s = (typeof e.start == "number" && e.start > -1 ? e.start : 1) + (n.options.incrementListMarker === !1 ? 0 : e.children.indexOf(t)) + s);
|
|
4889
4889
|
let o = s.length + 1;
|
|
4890
4890
|
(i === "tab" || i === "mixed" && (e && e.type === "list" && e.spread || t.spread)) && (o = Math.ceil(o / 4) * 4);
|
|
@@ -4899,11 +4899,11 @@ function q0(t, e, n, r) {
|
|
|
4899
4899
|
return h ? (p ? "" : " ".repeat(o)) + u : (p ? s : s + " ".repeat(o - s.length)) + u;
|
|
4900
4900
|
}
|
|
4901
4901
|
}
|
|
4902
|
-
function
|
|
4902
|
+
function J0(t, e, n, r) {
|
|
4903
4903
|
const i = n.enter("paragraph"), s = n.enter("phrasing"), o = n.containerPhrasing(t, r);
|
|
4904
4904
|
return s(), i(), o;
|
|
4905
4905
|
}
|
|
4906
|
-
const
|
|
4906
|
+
const Y0 = (
|
|
4907
4907
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
4908
4908
|
ya([
|
|
4909
4909
|
"break",
|
|
@@ -4931,7 +4931,7 @@ const J0 = (
|
|
|
4931
4931
|
);
|
|
4932
4932
|
function X0(t, e, n, r) {
|
|
4933
4933
|
return (t.children.some(function(o) {
|
|
4934
|
-
return
|
|
4934
|
+
return Y0(o);
|
|
4935
4935
|
}) ? n.containerPhrasing : n.containerFlow).call(n, t, r);
|
|
4936
4936
|
}
|
|
4937
4937
|
function Z0(t) {
|
|
@@ -4942,8 +4942,8 @@ function Z0(t) {
|
|
|
4942
4942
|
);
|
|
4943
4943
|
return e;
|
|
4944
4944
|
}
|
|
4945
|
-
|
|
4946
|
-
function
|
|
4945
|
+
Jc.peek = Q0;
|
|
4946
|
+
function Jc(t, e, n, r) {
|
|
4947
4947
|
const i = Z0(n), s = n.enter("strong"), o = n.createTracker(r), l = o.move(i + i);
|
|
4948
4948
|
let a = o.move(
|
|
4949
4949
|
n.containerPhrasing(t, {
|
|
@@ -4984,7 +4984,7 @@ function nw(t, e, n) {
|
|
|
4984
4984
|
const r = (qc(n) + (n.options.ruleSpaces ? " " : "")).repeat(tw(n));
|
|
4985
4985
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
4986
4986
|
}
|
|
4987
|
-
const
|
|
4987
|
+
const Yc = {
|
|
4988
4988
|
blockquote: N0,
|
|
4989
4989
|
break: hl,
|
|
4990
4990
|
code: D0,
|
|
@@ -5000,9 +5000,9 @@ const Jc = {
|
|
|
5000
5000
|
linkReference: Kc,
|
|
5001
5001
|
list: G0,
|
|
5002
5002
|
listItem: q0,
|
|
5003
|
-
paragraph:
|
|
5003
|
+
paragraph: J0,
|
|
5004
5004
|
root: X0,
|
|
5005
|
-
strong:
|
|
5005
|
+
strong: Jc,
|
|
5006
5006
|
text: ew,
|
|
5007
5007
|
thematicBreak: nw
|
|
5008
5008
|
};
|
|
@@ -5130,7 +5130,7 @@ function cw(t) {
|
|
|
5130
5130
|
return S(), v;
|
|
5131
5131
|
}
|
|
5132
5132
|
function h(p, m, b) {
|
|
5133
|
-
let w =
|
|
5133
|
+
let w = Yc.inlineCode(p, m, b);
|
|
5134
5134
|
return b.stack.includes("tableCell") && (w = w.replace(/\|/g, "\\$&")), w;
|
|
5135
5135
|
}
|
|
5136
5136
|
}
|
|
@@ -5177,7 +5177,7 @@ function fw(t) {
|
|
|
5177
5177
|
function hw(t, e, n, r) {
|
|
5178
5178
|
const i = t.children[0], s = typeof t.checked == "boolean" && i && i.type === "paragraph", o = "[" + (t.checked ? "x" : " ") + "] ", l = n.createTracker(r);
|
|
5179
5179
|
s && l.move(o);
|
|
5180
|
-
let a =
|
|
5180
|
+
let a = Yc.listItem(t, e, n, {
|
|
5181
5181
|
...r,
|
|
5182
5182
|
...l.current()
|
|
5183
5183
|
});
|
|
@@ -5917,17 +5917,17 @@ function Kw(t) {
|
|
|
5917
5917
|
]);
|
|
5918
5918
|
}
|
|
5919
5919
|
const qw = {};
|
|
5920
|
-
function
|
|
5920
|
+
function Jw(t) {
|
|
5921
5921
|
const e = (
|
|
5922
5922
|
/** @type {Processor<Root>} */
|
|
5923
5923
|
this
|
|
5924
5924
|
), n = t || qw, r = e.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
5925
5925
|
i.push(Kw(n)), s.push(pw()), o.push(mw(n));
|
|
5926
5926
|
}
|
|
5927
|
-
const
|
|
5927
|
+
const Yw = qf().use(Jf).use(Jw).use(Yf).use(Xf), Xw = P(function({ content: e, className: n, format: r = "html", ...i }, s) {
|
|
5928
5928
|
const o = ee(
|
|
5929
5929
|
() => Kf.sanitize(
|
|
5930
|
-
r === "markdown" ? String(
|
|
5930
|
+
r === "markdown" ? String(Yw.processSync(e)) : e,
|
|
5931
5931
|
{
|
|
5932
5932
|
ADD_ATTR: ["target"],
|
|
5933
5933
|
ALLOWED_ATTR: ["href", "target", "rel", "class"]
|
|
@@ -5959,7 +5959,7 @@ const Jw = qf().use(Yf).use(Yw).use(Jf).use(Xf), Xw = P(function({ content: e, c
|
|
|
5959
5959
|
"data-testid": "ai-banner",
|
|
5960
5960
|
children: [
|
|
5961
5961
|
/* @__PURE__ */ g("div", { className: "flex flex-row items-center justify-between px-4 py-2", children: [
|
|
5962
|
-
/* @__PURE__ */ c(
|
|
5962
|
+
/* @__PURE__ */ c(Je, { className: "font-medium", children: e }),
|
|
5963
5963
|
n && /* @__PURE__ */ c(
|
|
5964
5964
|
B,
|
|
5965
5965
|
{
|
|
@@ -6047,7 +6047,7 @@ const ld = ue(
|
|
|
6047
6047
|
), t1 = (t) => {
|
|
6048
6048
|
if (!t?.content) return "";
|
|
6049
6049
|
try {
|
|
6050
|
-
return
|
|
6050
|
+
return Yp(t.content, [
|
|
6051
6051
|
rc,
|
|
6052
6052
|
ic,
|
|
6053
6053
|
sc,
|
|
@@ -7904,7 +7904,7 @@ const R1 = ({
|
|
|
7904
7904
|
children: [
|
|
7905
7905
|
wl[s] && /* @__PURE__ */ c(H, { icon: wl[s], size: "sm", "aria-hidden": !0 }),
|
|
7906
7906
|
/* @__PURE__ */ c(
|
|
7907
|
-
|
|
7907
|
+
Je,
|
|
7908
7908
|
{
|
|
7909
7909
|
className: xl[s] || "font-medium",
|
|
7910
7910
|
children: e
|
|
@@ -8044,7 +8044,7 @@ const KN = ue(
|
|
|
8044
8044
|
V("RadarChart", K1)
|
|
8045
8045
|
)
|
|
8046
8046
|
), qN = q1;
|
|
8047
|
-
function
|
|
8047
|
+
function J1({
|
|
8048
8048
|
title: t,
|
|
8049
8049
|
isActive: e = !1,
|
|
8050
8050
|
onClick: n
|
|
@@ -8066,7 +8066,7 @@ function Y1({
|
|
|
8066
8066
|
children: [
|
|
8067
8067
|
/* @__PURE__ */ c(H, { icon: yh, size: "md", color: "selected" }),
|
|
8068
8068
|
/* @__PURE__ */ c(
|
|
8069
|
-
|
|
8069
|
+
Je,
|
|
8070
8070
|
{
|
|
8071
8071
|
lines: 1,
|
|
8072
8072
|
className: "text-[13px] font-semibold leading-5 text-f1-foreground-selected",
|
|
@@ -8077,7 +8077,7 @@ function Y1({
|
|
|
8077
8077
|
}
|
|
8078
8078
|
);
|
|
8079
8079
|
}
|
|
8080
|
-
function
|
|
8080
|
+
function Y1({
|
|
8081
8081
|
author: t,
|
|
8082
8082
|
timestamp: e,
|
|
8083
8083
|
onClick: n,
|
|
@@ -8099,7 +8099,7 @@ function J1({
|
|
|
8099
8099
|
"aria-label": `Version ${o} by ${l}${r ? " (selected)" : ""}`,
|
|
8100
8100
|
"aria-pressed": n ? r : void 0,
|
|
8101
8101
|
children: [
|
|
8102
|
-
/* @__PURE__ */ c(
|
|
8102
|
+
/* @__PURE__ */ c(Je, { lines: 1, className: "font-medium text-f1-foreground", children: o }),
|
|
8103
8103
|
/* @__PURE__ */ g("div", { className: "flex flex-row items-center gap-[6px]", children: [
|
|
8104
8104
|
/* @__PURE__ */ c(
|
|
8105
8105
|
nt,
|
|
@@ -8111,7 +8111,7 @@ function J1({
|
|
|
8111
8111
|
}
|
|
8112
8112
|
),
|
|
8113
8113
|
/* @__PURE__ */ c(
|
|
8114
|
-
|
|
8114
|
+
Je,
|
|
8115
8115
|
{
|
|
8116
8116
|
lines: 1,
|
|
8117
8117
|
className: "font-medium text-f1-foreground-secondary",
|
|
@@ -8136,7 +8136,7 @@ function X1({
|
|
|
8136
8136
|
"aria-label": t,
|
|
8137
8137
|
children: [
|
|
8138
8138
|
/* @__PURE__ */ c(
|
|
8139
|
-
|
|
8139
|
+
Je,
|
|
8140
8140
|
{
|
|
8141
8141
|
tag: "h2",
|
|
8142
8142
|
lines: 1,
|
|
@@ -8146,7 +8146,7 @@ function X1({
|
|
|
8146
8146
|
),
|
|
8147
8147
|
/* @__PURE__ */ c(dn, { className: "h-full flex-1", children: /* @__PURE__ */ g("div", { className: "flex flex-col gap-1", children: [
|
|
8148
8148
|
n && /* @__PURE__ */ c(
|
|
8149
|
-
|
|
8149
|
+
J1,
|
|
8150
8150
|
{
|
|
8151
8151
|
title: n.title,
|
|
8152
8152
|
onClick: n.onClick,
|
|
@@ -8154,7 +8154,7 @@ function X1({
|
|
|
8154
8154
|
}
|
|
8155
8155
|
),
|
|
8156
8156
|
e.map((i) => /* @__PURE__ */ c(
|
|
8157
|
-
|
|
8157
|
+
Y1,
|
|
8158
8158
|
{
|
|
8159
8159
|
author: i.author,
|
|
8160
8160
|
timestamp: i.timestamp,
|
|
@@ -8168,7 +8168,7 @@ function X1({
|
|
|
8168
8168
|
}
|
|
8169
8169
|
);
|
|
8170
8170
|
}
|
|
8171
|
-
const
|
|
8171
|
+
const JN = de(
|
|
8172
8172
|
V("F0VersionHistory", X1)
|
|
8173
8173
|
), pd = P(
|
|
8174
8174
|
({ height: t, itemCount: e, itemSize: n, className: r, renderer: i }, s) => {
|
|
@@ -8772,7 +8772,7 @@ const yl = ({
|
|
|
8772
8772
|
subAvatar: O.avatar,
|
|
8773
8773
|
subSearchKeys: O.searchKeys
|
|
8774
8774
|
}
|
|
8775
|
-
})), [t, e, h]),
|
|
8775
|
+
})), [t, e, h]), J = X(
|
|
8776
8776
|
(O) => {
|
|
8777
8777
|
if (O.index === 0 && C)
|
|
8778
8778
|
return /* @__PURE__ */ c(
|
|
@@ -8983,7 +8983,7 @@ const yl = ({
|
|
|
8983
8983
|
const oe = C ? O - 1 : O;
|
|
8984
8984
|
return Se[oe]?.parent === null ? tx : Ai;
|
|
8985
8985
|
},
|
|
8986
|
-
renderer:
|
|
8986
|
+
renderer: J,
|
|
8987
8987
|
ref: M
|
|
8988
8988
|
}
|
|
8989
8989
|
) : /* @__PURE__ */ c(
|
|
@@ -9270,7 +9270,7 @@ const yl = ({
|
|
|
9270
9270
|
I.length === 1 && !i || l && !C ? "pl-8" : "pl-2"
|
|
9271
9271
|
),
|
|
9272
9272
|
children: /* @__PURE__ */ c(
|
|
9273
|
-
|
|
9273
|
+
Je,
|
|
9274
9274
|
{
|
|
9275
9275
|
tag: "span",
|
|
9276
9276
|
className: I.length === 1 && I[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
|
|
@@ -9281,7 +9281,7 @@ const yl = ({
|
|
|
9281
9281
|
)
|
|
9282
9282
|
}
|
|
9283
9283
|
);
|
|
9284
|
-
},
|
|
9284
|
+
}, YN = (t) => {
|
|
9285
9285
|
const [e, n] = L(
|
|
9286
9286
|
(t.alwaysOpen || t.defaultOpen) ?? !1
|
|
9287
9287
|
), r = (C) => {
|
|
@@ -9324,9 +9324,9 @@ const yl = ({
|
|
|
9324
9324
|
(F) => R.has(F.subId)
|
|
9325
9325
|
) ?? [], re = A.findIndex((F) => F.id === U);
|
|
9326
9326
|
if (re >= 0) {
|
|
9327
|
-
const F = A[re].subItems ?? [], ge = new Set(F.map((
|
|
9327
|
+
const F = A[re].subItems ?? [], ge = new Set(F.map((J) => J.subId)), Se = [
|
|
9328
9328
|
...F,
|
|
9329
|
-
...$.filter((
|
|
9329
|
+
...$.filter((J) => !ge.has(J.subId))
|
|
9330
9330
|
];
|
|
9331
9331
|
M({
|
|
9332
9332
|
...D,
|
|
@@ -10816,7 +10816,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10816
10816
|
]
|
|
10817
10817
|
}
|
|
10818
10818
|
);
|
|
10819
|
-
}, Rd =
|
|
10819
|
+
}, Rd = Ja(
|
|
10820
10820
|
({ children: t, className: e, ...n }) => /* @__PURE__ */ g(
|
|
10821
10821
|
it,
|
|
10822
10822
|
{
|
|
@@ -10834,7 +10834,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10834
10834
|
)
|
|
10835
10835
|
);
|
|
10836
10836
|
Rd.displayName = "NavigateAction";
|
|
10837
|
-
const Ld =
|
|
10837
|
+
const Ld = Ja(
|
|
10838
10838
|
({ children: t, className: e, href: n, ...r }) => /* @__PURE__ */ g(
|
|
10839
10839
|
it,
|
|
10840
10840
|
{
|
|
@@ -10853,7 +10853,7 @@ const Ld = Ya(
|
|
|
10853
10853
|
H,
|
|
10854
10854
|
{
|
|
10855
10855
|
"aria-hidden": !0,
|
|
10856
|
-
icon:
|
|
10856
|
+
icon: Jh,
|
|
10857
10857
|
size: "md",
|
|
10858
10858
|
color: "default"
|
|
10859
10859
|
}
|
|
@@ -10962,7 +10962,7 @@ const Gx = V("CompanyItem", Pd), Fd = P(
|
|
|
10962
10962
|
Kn,
|
|
10963
10963
|
{
|
|
10964
10964
|
ref: n,
|
|
10965
|
-
leftIcon: () => /* @__PURE__ */ c(
|
|
10965
|
+
leftIcon: () => /* @__PURE__ */ c(Yh, { name: e, size: "xs" }),
|
|
10966
10966
|
text: e,
|
|
10967
10967
|
action: ii(t, e)
|
|
10968
10968
|
}
|
|
@@ -10977,11 +10977,11 @@ const qx = V("DotTagItem", zd), $d = P(
|
|
|
10977
10977
|
({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(Ps, { ...t }) })
|
|
10978
10978
|
);
|
|
10979
10979
|
$d.displayName = "AlertTagItem";
|
|
10980
|
-
const
|
|
10980
|
+
const Jx = V("AlertTagItem", $d), Bd = P(
|
|
10981
10981
|
({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(Xh, { ...t }) })
|
|
10982
10982
|
);
|
|
10983
10983
|
Bd.displayName = "BalanceTagItem";
|
|
10984
|
-
const
|
|
10984
|
+
const Yx = V(
|
|
10985
10985
|
"BalanceTagItem",
|
|
10986
10986
|
Bd
|
|
10987
10987
|
), jd = P(
|
|
@@ -11031,8 +11031,8 @@ const ty = V("DataList", Wd), Ve = Object.assign(ty, {
|
|
|
11031
11031
|
PersonItem: Ux,
|
|
11032
11032
|
TeamItem: Kx,
|
|
11033
11033
|
DotTagItem: qx,
|
|
11034
|
-
AlertTagItem:
|
|
11035
|
-
BalanceTagItem:
|
|
11034
|
+
AlertTagItem: Jx,
|
|
11035
|
+
BalanceTagItem: Yx,
|
|
11036
11036
|
StatusTagItem: Xx,
|
|
11037
11037
|
RawTagItem: Zx,
|
|
11038
11038
|
TagListItem: ey
|
|
@@ -11738,7 +11738,7 @@ const wy = ({
|
|
|
11738
11738
|
badge: e ? { icon: Ba, type: "highlight" } : void 0
|
|
11739
11739
|
}
|
|
11740
11740
|
),
|
|
11741
|
-
/* @__PURE__ */ c(
|
|
11741
|
+
/* @__PURE__ */ c(Je, { tag: "span", children: t?.name ?? "" })
|
|
11742
11742
|
]
|
|
11743
11743
|
}
|
|
11744
11744
|
);
|
|
@@ -11771,7 +11771,7 @@ function lI({
|
|
|
11771
11771
|
size: "xs"
|
|
11772
11772
|
}
|
|
11773
11773
|
),
|
|
11774
|
-
/* @__PURE__ */ c(
|
|
11774
|
+
/* @__PURE__ */ c(Je, { children: `${t.firstName} ${t.lastName}` })
|
|
11775
11775
|
]
|
|
11776
11776
|
}
|
|
11777
11777
|
) }) }),
|
|
@@ -11896,11 +11896,11 @@ function vy() {
|
|
|
11896
11896
|
e(window.matchMedia("(pointer: coarse)").matches);
|
|
11897
11897
|
}, []), t;
|
|
11898
11898
|
}
|
|
11899
|
-
const
|
|
11899
|
+
const Jd = Vs(void 0);
|
|
11900
11900
|
function ky({ children: t }) {
|
|
11901
11901
|
const [e, n] = L(!1), [r, i] = L(null);
|
|
11902
11902
|
return /* @__PURE__ */ c(
|
|
11903
|
-
|
|
11903
|
+
Jd.Provider,
|
|
11904
11904
|
{
|
|
11905
11905
|
value: { isDragging: e, setIsDragging: n, draggedItemId: r, setDraggedItemId: i },
|
|
11906
11906
|
children: t
|
|
@@ -11908,7 +11908,7 @@ function ky({ children: t }) {
|
|
|
11908
11908
|
);
|
|
11909
11909
|
}
|
|
11910
11910
|
function to() {
|
|
11911
|
-
const t = Hs(
|
|
11911
|
+
const t = Hs(Jd);
|
|
11912
11912
|
if (!t)
|
|
11913
11913
|
throw new Error("useDragContext must be used within a DragProvider");
|
|
11914
11914
|
return t;
|
|
@@ -12014,7 +12014,7 @@ const Cy = ({
|
|
|
12014
12014
|
}
|
|
12015
12015
|
) : t.avatar ? /* @__PURE__ */ c(lp, { size: "xs", avatar: t.avatar }) : null,
|
|
12016
12016
|
/* @__PURE__ */ c(
|
|
12017
|
-
|
|
12017
|
+
Je,
|
|
12018
12018
|
{
|
|
12019
12019
|
tag: "span",
|
|
12020
12020
|
className: "line-clamp-1 font-medium text-f1-foreground",
|
|
@@ -12062,7 +12062,7 @@ const Cy = ({
|
|
|
12062
12062
|
children: A
|
|
12063
12063
|
}
|
|
12064
12064
|
) : /* @__PURE__ */ c("div", { className: y, children: A });
|
|
12065
|
-
},
|
|
12065
|
+
}, Yd = ({
|
|
12066
12066
|
title: t,
|
|
12067
12067
|
isOpen: e = !0,
|
|
12068
12068
|
isRoot: n,
|
|
@@ -12146,7 +12146,7 @@ const Cy = ({
|
|
|
12146
12146
|
}, h = (m) => {
|
|
12147
12147
|
!o && !a.current && r?.(t, m);
|
|
12148
12148
|
}, p = /* @__PURE__ */ c(
|
|
12149
|
-
|
|
12149
|
+
Yd,
|
|
12150
12150
|
{
|
|
12151
12151
|
title: t.title,
|
|
12152
12152
|
isOpen: t.isOpen,
|
|
@@ -12346,7 +12346,7 @@ function Iy({
|
|
|
12346
12346
|
},
|
|
12347
12347
|
`fixed-${$}`
|
|
12348
12348
|
)) }),
|
|
12349
|
-
v && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ c(
|
|
12349
|
+
v && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ c(Yd, { title: f.favorites.favorites, children: /* @__PURE__ */ c("div", { ref: b, children: d ? /* @__PURE__ */ c("div", { className: R, children: A }) : /* @__PURE__ */ c(
|
|
12350
12350
|
Eo,
|
|
12351
12351
|
{
|
|
12352
12352
|
axis: "y",
|
|
@@ -12453,7 +12453,7 @@ function _y({
|
|
|
12453
12453
|
top: { duration: o ? 0 : 0.1 },
|
|
12454
12454
|
left: { duration: o ? 0 : 0.1 },
|
|
12455
12455
|
default: { duration: o ? 0 : 0.2 }
|
|
12456
|
-
}, p = () => n ? Lp(n) && r ?
|
|
12456
|
+
}, p = () => n ? Lp(n) && r ? Ya(
|
|
12457
12457
|
n,
|
|
12458
12458
|
{
|
|
12459
12459
|
onDropdownClick: r
|
|
@@ -12707,7 +12707,7 @@ const bt = Math.floor, kr = Math.abs, sn = (t, e) => t < e ? t : e, Nt = (t, e)
|
|
|
12707
12707
|
}, Rn = (
|
|
12708
12708
|
/** @type {TextEncoder} */
|
|
12709
12709
|
typeof TextEncoder < "u" ? new TextEncoder() : null
|
|
12710
|
-
), qy = (t) => Rn.encode(t),
|
|
12710
|
+
), qy = (t) => Rn.encode(t), Jy = Rn ? qy : Ky;
|
|
12711
12711
|
let vn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 });
|
|
12712
12712
|
vn && vn.decode(new Uint8Array()).length === 1 && (vn = null);
|
|
12713
12713
|
class qn {
|
|
@@ -12715,8 +12715,8 @@ class qn {
|
|
|
12715
12715
|
this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
|
|
12716
12716
|
}
|
|
12717
12717
|
}
|
|
12718
|
-
const
|
|
12719
|
-
const e =
|
|
12718
|
+
const Jn = () => new qn(), Yy = (t) => {
|
|
12719
|
+
const e = Jn();
|
|
12720
12720
|
return t(e), Ge(e);
|
|
12721
12721
|
}, Xy = (t) => {
|
|
12722
12722
|
let e = t.cpos;
|
|
@@ -12752,7 +12752,7 @@ const Yn = () => new qn(), Jy = (t) => {
|
|
|
12752
12752
|
for (let r = 0; r < n; r++)
|
|
12753
12753
|
he(t, fs[r]);
|
|
12754
12754
|
} else
|
|
12755
|
-
Te(t,
|
|
12755
|
+
Te(t, Jy(e));
|
|
12756
12756
|
}, tv = (t, e) => {
|
|
12757
12757
|
const n = unescape(encodeURIComponent(e)), r = n.length;
|
|
12758
12758
|
G(t, r);
|
|
@@ -12762,7 +12762,7 @@ const Yn = () => new qn(), Jy = (t) => {
|
|
|
12762
12762
|
/** @type {number} */
|
|
12763
12763
|
n.codePointAt(i)
|
|
12764
12764
|
);
|
|
12765
|
-
},
|
|
12765
|
+
}, Yt = Rn && /** @type {any} */
|
|
12766
12766
|
Rn.encodeInto ? ev : tv, oi = (t, e) => {
|
|
12767
12767
|
const n = t.cbuf.length, r = t.cpos, i = sn(n - r, e.length), s = e.length - i;
|
|
12768
12768
|
t.cbuf.set(e.subarray(0, i), r), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Nt(n * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s);
|
|
@@ -12778,7 +12778,7 @@ Rn.encodeInto ? ev : tv, oi = (t, e) => {
|
|
|
12778
12778
|
), Fl = new DataView(new ArrayBuffer(4)), sv = (t) => (Fl.setFloat32(0, t), Fl.getFloat32(0) === t), on = (t, e) => {
|
|
12779
12779
|
switch (typeof e) {
|
|
12780
12780
|
case "string":
|
|
12781
|
-
he(t, 119),
|
|
12781
|
+
he(t, 119), Yt(t, e);
|
|
12782
12782
|
break;
|
|
12783
12783
|
case "number":
|
|
12784
12784
|
jy(e) && kr(e) <= By ? (he(t, 125), no(t, e)) : sv(e) ? (he(t, 124), nv(t, e)) : (he(t, 123), rv(t, e));
|
|
@@ -12801,7 +12801,7 @@ Rn.encodeInto ? ev : tv, oi = (t, e) => {
|
|
|
12801
12801
|
G(t, n.length);
|
|
12802
12802
|
for (let r = 0; r < n.length; r++) {
|
|
12803
12803
|
const i = n[r];
|
|
12804
|
-
|
|
12804
|
+
Yt(t, i), on(t, e[i]);
|
|
12805
12805
|
}
|
|
12806
12806
|
}
|
|
12807
12807
|
break;
|
|
@@ -12885,7 +12885,7 @@ class ov {
|
|
|
12885
12885
|
}
|
|
12886
12886
|
toUint8Array() {
|
|
12887
12887
|
const e = new qn();
|
|
12888
|
-
return this.sarr.push(this.s), this.s = "",
|
|
12888
|
+
return this.sarr.push(this.s), this.s = "", Yt(e, this.sarr.join("")), oi(e, this.lensE.toUint8Array()), Ge(e);
|
|
12889
12889
|
}
|
|
12890
12890
|
}
|
|
12891
12891
|
const It = (t) => new Error(t), qe = () => {
|
|
@@ -13143,7 +13143,7 @@ const Lv = ln && Dv(process.env.FORCE_COLOR, ["true", "1", "2"]), Ov = Lv || !ps
|
|
|
13143
13143
|
for (let n = 0; n < t.byteLength; n++)
|
|
13144
13144
|
e += Hy(t[n]);
|
|
13145
13145
|
return btoa(e);
|
|
13146
|
-
}, Pv = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Fv = lu ? Mv : Pv, zv = (t) =>
|
|
13146
|
+
}, Pv = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Fv = lu ? Mv : Pv, zv = (t) => Yy((e) => on(e, t));
|
|
13147
13147
|
class $v {
|
|
13148
13148
|
/**
|
|
13149
13149
|
* @param {L} left
|
|
@@ -13168,7 +13168,7 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
|
|
|
13168
13168
|
destroy() {
|
|
13169
13169
|
t(this._);
|
|
13170
13170
|
}
|
|
13171
|
-
}, Vv = Hv(clearTimeout), cu = (t, e) => new Vv(setTimeout(e, t)), yt = Symbol, du = yt(), uu = yt(), Wv = yt(), Uv = yt(), Gv = yt(), fu = yt(), Kv = yt(), ao = yt(), qv = yt(),
|
|
13171
|
+
}, Vv = Hv(clearTimeout), cu = (t, e) => new Vv(setTimeout(e, t)), yt = Symbol, du = yt(), uu = yt(), Wv = yt(), Uv = yt(), Gv = yt(), fu = yt(), Kv = yt(), ao = yt(), qv = yt(), Jv = (t) => {
|
|
13172
13172
|
t.length === 1 && t[0]?.constructor === Function && (t = /** @type {Array<string|Symbol|Object|number>} */
|
|
13173
13173
|
/** @type {[function]} */
|
|
13174
13174
|
t[0]());
|
|
@@ -13188,7 +13188,7 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
|
|
|
13188
13188
|
i instanceof Symbol || n.push(i);
|
|
13189
13189
|
}
|
|
13190
13190
|
return n;
|
|
13191
|
-
},
|
|
13191
|
+
}, Yv = {
|
|
13192
13192
|
[du]: dt("font-weight", "bold"),
|
|
13193
13193
|
[uu]: dt("font-weight", "normal"),
|
|
13194
13194
|
[Wv]: dt("color", "blue"),
|
|
@@ -13206,7 +13206,7 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
|
|
|
13206
13206
|
const e = [], n = [], r = Ke();
|
|
13207
13207
|
let i = [], s = 0;
|
|
13208
13208
|
for (; s < t.length; s++) {
|
|
13209
|
-
const o = t[s], l =
|
|
13209
|
+
const o = t[s], l = Yv[o];
|
|
13210
13210
|
if (l !== void 0)
|
|
13211
13211
|
r.set(l.left, l.right);
|
|
13212
13212
|
else {
|
|
@@ -13224,7 +13224,7 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
|
|
|
13224
13224
|
o instanceof Symbol || i.push(o);
|
|
13225
13225
|
}
|
|
13226
13226
|
return i;
|
|
13227
|
-
}, hu = Ov ? Xv :
|
|
13227
|
+
}, hu = Ov ? Xv : Jv, Zv = (...t) => {
|
|
13228
13228
|
console.log(...hu(t)), mu.forEach((e) => e.print(t));
|
|
13229
13229
|
}, pu = (...t) => {
|
|
13230
13230
|
console.warn(...hu(t)), t.unshift(ao), mu.forEach((e) => e.print(t));
|
|
@@ -13364,7 +13364,7 @@ const At = (t, e, n) => e.clients.forEach((r, i) => {
|
|
|
13364
13364
|
const u = t.readDsClock(), h = u + t.readDsLen();
|
|
13365
13365
|
if (u < d) {
|
|
13366
13366
|
d < h && On(r, o, d, h - d);
|
|
13367
|
-
let p =
|
|
13367
|
+
let p = Ye(a, u), m = a[p];
|
|
13368
13368
|
for (!m.deleted && m.id.clock < u && (a.splice(p + 1, 0, qr(e, m, u - m.id.clock)), p++); p < a.length && (m = a[p++], m.id.clock < h); )
|
|
13369
13369
|
m.deleted || (h < m.id.clock + m.length && a.splice(p, 0, qr(e, m, h - m.id.clock)), m.delete(e));
|
|
13370
13370
|
} else
|
|
@@ -13406,7 +13406,7 @@ class Wt extends Xd {
|
|
|
13406
13406
|
*/
|
|
13407
13407
|
load() {
|
|
13408
13408
|
const e = this._item;
|
|
13409
|
-
e !== null && !this.shouldLoad &&
|
|
13409
|
+
e !== null && !this.shouldLoad && Y(
|
|
13410
13410
|
/** @type {any} */
|
|
13411
13411
|
e.parent.doc,
|
|
13412
13412
|
(n) => {
|
|
@@ -13436,7 +13436,7 @@ class Wt extends Xd {
|
|
|
13436
13436
|
* @public
|
|
13437
13437
|
*/
|
|
13438
13438
|
transact(e, n = null) {
|
|
13439
|
-
return
|
|
13439
|
+
return Y(this, e, n);
|
|
13440
13440
|
}
|
|
13441
13441
|
/**
|
|
13442
13442
|
* Define a shared data type.
|
|
@@ -13576,7 +13576,7 @@ class Wt extends Xd {
|
|
|
13576
13576
|
/** @type {ContentDoc} */
|
|
13577
13577
|
e.content
|
|
13578
13578
|
);
|
|
13579
|
-
n.doc = new Wt({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = e,
|
|
13579
|
+
n.doc = new Wt({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = e, Y(
|
|
13580
13580
|
/** @type {any} */
|
|
13581
13581
|
e.parent.doc,
|
|
13582
13582
|
(r) => {
|
|
@@ -13712,7 +13712,7 @@ class Hr extends rk {
|
|
|
13712
13712
|
}
|
|
13713
13713
|
class ik {
|
|
13714
13714
|
constructor() {
|
|
13715
|
-
this.restEncoder =
|
|
13715
|
+
this.restEncoder = Jn();
|
|
13716
13716
|
}
|
|
13717
13717
|
toUint8Array() {
|
|
13718
13718
|
return Ge(this.restEncoder);
|
|
@@ -13762,7 +13762,7 @@ class sk extends ik {
|
|
|
13762
13762
|
* @param {string} s
|
|
13763
13763
|
*/
|
|
13764
13764
|
writeString(e) {
|
|
13765
|
-
|
|
13765
|
+
Yt(this.restEncoder, e);
|
|
13766
13766
|
}
|
|
13767
13767
|
/**
|
|
13768
13768
|
* @param {boolean} isYKey
|
|
@@ -13800,18 +13800,18 @@ class sk extends ik {
|
|
|
13800
13800
|
* @param {any} embed
|
|
13801
13801
|
*/
|
|
13802
13802
|
writeJSON(e) {
|
|
13803
|
-
|
|
13803
|
+
Yt(this.restEncoder, JSON.stringify(e));
|
|
13804
13804
|
}
|
|
13805
13805
|
/**
|
|
13806
13806
|
* @param {string} key
|
|
13807
13807
|
*/
|
|
13808
13808
|
writeKey(e) {
|
|
13809
|
-
|
|
13809
|
+
Yt(this.restEncoder, e);
|
|
13810
13810
|
}
|
|
13811
13811
|
}
|
|
13812
13812
|
class ok {
|
|
13813
13813
|
constructor() {
|
|
13814
|
-
this.restEncoder =
|
|
13814
|
+
this.restEncoder = Jn(), this.dsCurrVal = 0;
|
|
13815
13815
|
}
|
|
13816
13816
|
toUint8Array() {
|
|
13817
13817
|
return Ge(this.restEncoder);
|
|
@@ -13838,7 +13838,7 @@ class ai extends ok {
|
|
|
13838
13838
|
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new Ri(), this.clientEncoder = new Cr(), this.leftClockEncoder = new Ri(), this.rightClockEncoder = new Ri(), this.infoEncoder = new zl(us), this.stringEncoder = new ov(), this.parentInfoEncoder = new zl(us), this.typeRefEncoder = new Cr(), this.lenEncoder = new Cr();
|
|
13839
13839
|
}
|
|
13840
13840
|
toUint8Array() {
|
|
13841
|
-
const e =
|
|
13841
|
+
const e = Jn();
|
|
13842
13842
|
return G(e, 0), Te(e, this.keyClockEncoder.toUint8Array()), Te(e, this.clientEncoder.toUint8Array()), Te(e, this.leftClockEncoder.toUint8Array()), Te(e, this.rightClockEncoder.toUint8Array()), Te(e, Ge(this.infoEncoder)), Te(e, this.stringEncoder.toUint8Array()), Te(e, Ge(this.parentInfoEncoder)), Te(e, this.typeRefEncoder.toUint8Array()), Te(e, this.lenEncoder.toUint8Array()), oi(e, Ge(this.restEncoder)), Ge(e);
|
|
13843
13843
|
}
|
|
13844
13844
|
/**
|
|
@@ -13928,7 +13928,7 @@ class ai extends ok {
|
|
|
13928
13928
|
}
|
|
13929
13929
|
const lk = (t, e, n, r) => {
|
|
13930
13930
|
r = Nt(r, e[0].id.clock);
|
|
13931
|
-
const i =
|
|
13931
|
+
const i = Ye(e, r);
|
|
13932
13932
|
G(t.restEncoder, e.length - i), t.writeClient(n), G(t.restEncoder, r);
|
|
13933
13933
|
const s = e[i];
|
|
13934
13934
|
s.write(t, r - s.id.clock);
|
|
@@ -14077,7 +14077,7 @@ const lk = (t, e, n, r) => {
|
|
|
14077
14077
|
return xu(p, l, /* @__PURE__ */ new Map()), G(p.restEncoder, 0), { missing: a, update: p.toUint8Array() };
|
|
14078
14078
|
}
|
|
14079
14079
|
return null;
|
|
14080
|
-
}, dk = (t, e) => xu(t, e.doc.store, e.beforeState), uk = (t, e, n, r = new Hr(t)) =>
|
|
14080
|
+
}, dk = (t, e) => xu(t, e.doc.store, e.beforeState), uk = (t, e, n, r = new Hr(t)) => Y(e, (i) => {
|
|
14081
14081
|
i.local = !1;
|
|
14082
14082
|
let s = !1;
|
|
14083
14083
|
const o = i.doc, l = o.store, a = ak(r, o), d = ck(i, l, a), f = l.pendingStructs;
|
|
@@ -14271,7 +14271,7 @@ const ci = (t) => {
|
|
|
14271
14271
|
throw _e();
|
|
14272
14272
|
}
|
|
14273
14273
|
n.push(e);
|
|
14274
|
-
},
|
|
14274
|
+
}, Ye = (t, e) => {
|
|
14275
14275
|
let n = 0, r = t.length - 1, i = t[r], s = i.id.clock;
|
|
14276
14276
|
if (s === e)
|
|
14277
14277
|
return r;
|
|
@@ -14288,12 +14288,12 @@ const ci = (t) => {
|
|
|
14288
14288
|
throw _e();
|
|
14289
14289
|
}, bk = (t, e) => {
|
|
14290
14290
|
const n = t.clients.get(e.client);
|
|
14291
|
-
return n[
|
|
14291
|
+
return n[Ye(n, e.clock)];
|
|
14292
14292
|
}, Zt = (
|
|
14293
14293
|
/** @type {function(StructStore,ID):Item} */
|
|
14294
14294
|
bk
|
|
14295
14295
|
), ws = (t, e, n) => {
|
|
14296
|
-
const r =
|
|
14296
|
+
const r = Ye(e, n), i = e[r];
|
|
14297
14297
|
return i.id.clock < n && i instanceof Z ? (e.splice(r + 1, 0, qr(t, i, n - i.id.clock)), r + 1) : r;
|
|
14298
14298
|
}, Ne = (t, e) => {
|
|
14299
14299
|
const n = (
|
|
@@ -14301,15 +14301,15 @@ const ci = (t) => {
|
|
|
14301
14301
|
t.doc.store.clients.get(e.client)
|
|
14302
14302
|
);
|
|
14303
14303
|
return n[ws(t, n, e.clock)];
|
|
14304
|
-
},
|
|
14305
|
-
const r = e.clients.get(n.client), i =
|
|
14304
|
+
}, Jl = (t, e, n) => {
|
|
14305
|
+
const r = e.clients.get(n.client), i = Ye(r, n.clock), s = r[i];
|
|
14306
14306
|
return n.clock !== s.id.clock + s.length - 1 && s.constructor !== Pe && r.splice(i + 1, 0, qr(t, s, n.clock - s.id.clock + 1)), s;
|
|
14307
14307
|
}, wk = (t, e, n) => {
|
|
14308
14308
|
const r = (
|
|
14309
14309
|
/** @type {Array<GC|Item>} */
|
|
14310
14310
|
t.clients.get(e.id.client)
|
|
14311
14311
|
);
|
|
14312
|
-
r[
|
|
14312
|
+
r[Ye(r, e.id.clock)] = n;
|
|
14313
14313
|
}, Su = (t, e, n, r, i) => {
|
|
14314
14314
|
if (r === 0)
|
|
14315
14315
|
return;
|
|
@@ -14329,7 +14329,7 @@ class xk {
|
|
|
14329
14329
|
this.doc = e, this.deleteSet = new pn(), this.beforeState = ci(e.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 = r, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1;
|
|
14330
14330
|
}
|
|
14331
14331
|
}
|
|
14332
|
-
const
|
|
14332
|
+
const Yl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r) => e.beforeState.get(r) !== n) ? !1 : (uo(e.deleteSet), dk(t, e), fo(t, e.deleteSet), !0), Xl = (t, e, n) => {
|
|
14333
14333
|
const r = e._item;
|
|
14334
14334
|
(r === null || r.id.clock < (t.beforeState.get(r.id.client) || 0) && !r.deleted) && xt(t.changed, e, Ft).add(n);
|
|
14335
14335
|
}, Nr = (t, e) => {
|
|
@@ -14356,7 +14356,7 @@ const Jl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
|
|
|
14356
14356
|
);
|
|
14357
14357
|
for (let o = i.length - 1; o >= 0; o--) {
|
|
14358
14358
|
const l = i[o], a = l.clock + l.len;
|
|
14359
|
-
for (let d =
|
|
14359
|
+
for (let d = Ye(s, l.clock), f = s[d]; d < s.length && f.id.clock < a; f = s[++d]) {
|
|
14360
14360
|
const u = s[d];
|
|
14361
14361
|
if (l.clock + l.len <= u.id.clock)
|
|
14362
14362
|
break;
|
|
@@ -14371,7 +14371,7 @@ const Jl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
|
|
|
14371
14371
|
e.clients.get(r)
|
|
14372
14372
|
);
|
|
14373
14373
|
for (let s = n.length - 1; s >= 0; s--) {
|
|
14374
|
-
const o = n[s], l = sn(i.length - 1, 1 +
|
|
14374
|
+
const o = n[s], l = sn(i.length - 1, 1 + Ye(i, o.clock + o.len - 1));
|
|
14375
14375
|
for (let a = l, d = i[a]; a > 0 && d.id.clock >= o.clock; d = i[a])
|
|
14376
14376
|
a -= 1 + Nr(i, a);
|
|
14377
14377
|
}
|
|
@@ -14402,7 +14402,7 @@ const Jl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
|
|
|
14402
14402
|
const p = (
|
|
14403
14403
|
/** @type {Array<GC|Item>} */
|
|
14404
14404
|
i.clients.get(u)
|
|
14405
|
-
), m = Nt(
|
|
14405
|
+
), m = Nt(Ye(p, h), 1);
|
|
14406
14406
|
for (let b = p.length - 1; b >= m; )
|
|
14407
14407
|
b -= 1 + Nr(p, b);
|
|
14408
14408
|
}
|
|
@@ -14411,16 +14411,16 @@ const Jl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
|
|
|
14411
14411
|
const { client: u, clock: h } = o[f].id, p = (
|
|
14412
14412
|
/** @type {Array<GC|Item>} */
|
|
14413
14413
|
i.clients.get(u)
|
|
14414
|
-
), m =
|
|
14414
|
+
), m = Ye(p, h);
|
|
14415
14415
|
m + 1 < p.length && Nr(p, m + 1) > 1 || m > 0 && Nr(p, m);
|
|
14416
14416
|
}
|
|
14417
14417
|
if (!n.local && n.afterState.get(r.clientID) !== n.beforeState.get(r.clientID) && (Zv(ao, du, "[yjs] ", uu, fu, "Changed the client-id because another client seems to be using it."), r.clientID = wu()), r.emit("afterTransactionCleanup", [n, r]), r._observers.has("update")) {
|
|
14418
14418
|
const f = new sk();
|
|
14419
|
-
|
|
14419
|
+
Yl(f, n) && r.emit("update", [f.toUint8Array(), n.origin, r, n]);
|
|
14420
14420
|
}
|
|
14421
14421
|
if (r._observers.has("updateV2")) {
|
|
14422
14422
|
const f = new ai();
|
|
14423
|
-
|
|
14423
|
+
Yl(f, n) && r.emit("updateV2", [f.toUint8Array(), n.origin, r, n]);
|
|
14424
14424
|
}
|
|
14425
14425
|
const { subdocsAdded: l, subdocsLoaded: a, subdocsRemoved: d } = n;
|
|
14426
14426
|
(l.size > 0 || d.size > 0 || a.size > 0) && (l.forEach((f) => {
|
|
@@ -14428,7 +14428,7 @@ const Jl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
|
|
|
14428
14428
|
}), d.forEach((f) => r.subdocs.delete(f)), r.emit("subdocs", [{ loaded: a, added: l, removed: d }, r, n]), d.forEach((f) => f.destroy())), t.length <= e + 1 ? (r._transactionCleanups = [], r.emit("afterAllTransactions", [r, t])) : Nu(t, e + 1);
|
|
14429
14429
|
}
|
|
14430
14430
|
}
|
|
14431
|
-
},
|
|
14431
|
+
}, Y = (t, e, n = null, r = !0) => {
|
|
14432
14432
|
const i = t._transactionCleanups;
|
|
14433
14433
|
let s = !1, o = null;
|
|
14434
14434
|
t._transaction === null && (s = !0, t._transaction = new xk(t, n, r), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t]));
|
|
@@ -14462,7 +14462,7 @@ const Zl = (t, e, n) => {
|
|
|
14462
14462
|
}, Ql = (t, e, n) => {
|
|
14463
14463
|
let r = null;
|
|
14464
14464
|
const i = t.doc, s = t.scope;
|
|
14465
|
-
|
|
14465
|
+
Y(i, (l) => {
|
|
14466
14466
|
for (; e.length > 0 && t.currStackItem === null; ) {
|
|
14467
14467
|
const a = i.store, d = (
|
|
14468
14468
|
/** @type {StackItem} */
|
|
@@ -14810,7 +14810,7 @@ const Ik = (t, e) => {
|
|
|
14810
14810
|
const a = r.map((f) => nk(f)), d = ms(a);
|
|
14811
14811
|
return fo(o, d), o.toUint8Array();
|
|
14812
14812
|
}, Au = (t) => {
|
|
14813
|
-
t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Ge(t.encoder.restEncoder) }), t.encoder.restEncoder =
|
|
14813
|
+
t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Ge(t.encoder.restEncoder) }), t.encoder.restEncoder = Jn(), t.written = 0);
|
|
14814
14814
|
}, xn = (t, e, n) => {
|
|
14815
14815
|
t.written > 0 && t.currClient !== e.id.client && Au(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), G(t.encoder.restEncoder, e.id.clock + n)), e.write(t.encoder, n), t.written++;
|
|
14816
14816
|
}, Ak = (t) => {
|
|
@@ -15261,7 +15261,7 @@ const Tu = (t, e, n) => {
|
|
|
15261
15261
|
switch (f(), u.constructor) {
|
|
15262
15262
|
case Uint8Array:
|
|
15263
15263
|
case ArrayBuffer:
|
|
15264
|
-
i = new Z(j(o, ae(l, o)), i, i && i.lastId, a, a && a.id, e, null, new
|
|
15264
|
+
i = new Z(j(o, ae(l, o)), i, i && i.lastId, a, a && a.id, e, null, new Yn(new Uint8Array(
|
|
15265
15265
|
/** @type {Uint8Array} */
|
|
15266
15266
|
u
|
|
15267
15267
|
))), i.integrate(t, 0);
|
|
@@ -15339,7 +15339,7 @@ const Tu = (t, e, n) => {
|
|
|
15339
15339
|
l = new Bt([r]);
|
|
15340
15340
|
break;
|
|
15341
15341
|
case Uint8Array:
|
|
15342
|
-
l = new
|
|
15342
|
+
l = new Yn(
|
|
15343
15343
|
/** @type {Uint8Array} */
|
|
15344
15344
|
r
|
|
15345
15345
|
);
|
|
@@ -15467,7 +15467,7 @@ class Qt extends pe {
|
|
|
15467
15467
|
* @param {Array<T>} content The array of content
|
|
15468
15468
|
*/
|
|
15469
15469
|
insert(e, n) {
|
|
15470
|
-
this.doc !== null ?
|
|
15470
|
+
this.doc !== null ? Y(this.doc, (r) => {
|
|
15471
15471
|
Pu(
|
|
15472
15472
|
r,
|
|
15473
15473
|
this,
|
|
@@ -15485,7 +15485,7 @@ class Qt extends pe {
|
|
|
15485
15485
|
* @todo Use the following implementation in all types.
|
|
15486
15486
|
*/
|
|
15487
15487
|
push(e) {
|
|
15488
|
-
this.doc !== null ?
|
|
15488
|
+
this.doc !== null ? Y(this.doc, (n) => {
|
|
15489
15489
|
Lk(
|
|
15490
15490
|
n,
|
|
15491
15491
|
this,
|
|
@@ -15509,7 +15509,7 @@ class Qt extends pe {
|
|
|
15509
15509
|
* @param {number} length The number of elements to remove. Defaults to 1.
|
|
15510
15510
|
*/
|
|
15511
15511
|
delete(e, n = 1) {
|
|
15512
|
-
this.doc !== null ?
|
|
15512
|
+
this.doc !== null ? Y(this.doc, (r) => {
|
|
15513
15513
|
Fu(r, this, e, n);
|
|
15514
15514
|
}) : this._prelimContent.splice(e, n);
|
|
15515
15515
|
}
|
|
@@ -15737,7 +15737,7 @@ class an extends pe {
|
|
|
15737
15737
|
* @param {string} key The key of the element to remove.
|
|
15738
15738
|
*/
|
|
15739
15739
|
delete(e) {
|
|
15740
|
-
this.doc !== null ?
|
|
15740
|
+
this.doc !== null ? Y(this.doc, (n) => {
|
|
15741
15741
|
Ur(n, this, e);
|
|
15742
15742
|
}) : this._prelimContent.delete(e);
|
|
15743
15743
|
}
|
|
@@ -15750,7 +15750,7 @@ class an extends pe {
|
|
|
15750
15750
|
* @return {VAL}
|
|
15751
15751
|
*/
|
|
15752
15752
|
set(e, n) {
|
|
15753
|
-
return this.doc !== null ?
|
|
15753
|
+
return this.doc !== null ? Y(this.doc, (r) => {
|
|
15754
15754
|
mo(
|
|
15755
15755
|
r,
|
|
15756
15756
|
this,
|
|
@@ -15785,7 +15785,7 @@ class an extends pe {
|
|
|
15785
15785
|
* Removes all elements from this YMap.
|
|
15786
15786
|
*/
|
|
15787
15787
|
clear() {
|
|
15788
|
-
this.doc !== null ?
|
|
15788
|
+
this.doc !== null ? Y(this.doc, (e) => {
|
|
15789
15789
|
this.forEach(function(n, r, i) {
|
|
15790
15790
|
Ur(e, i, r);
|
|
15791
15791
|
});
|
|
@@ -15981,7 +15981,7 @@ const na = (t, e, n) => {
|
|
|
15981
15981
|
}
|
|
15982
15982
|
}, Bk = (t) => {
|
|
15983
15983
|
let e = 0;
|
|
15984
|
-
return
|
|
15984
|
+
return Y(
|
|
15985
15985
|
/** @type {Doc} */
|
|
15986
15986
|
t.doc,
|
|
15987
15987
|
(n) => {
|
|
@@ -16017,7 +16017,7 @@ const na = (t, e, n) => {
|
|
|
16017
16017
|
}
|
|
16018
16018
|
);
|
|
16019
16019
|
}
|
|
16020
|
-
|
|
16020
|
+
Y(n, (r) => {
|
|
16021
16021
|
At(t, t.deleteSet, (i) => {
|
|
16022
16022
|
if (i instanceof Pe || !/** @type {YText} */
|
|
16023
16023
|
i.parent._hasFormatting || e.has(
|
|
@@ -16098,7 +16098,7 @@ class Hk extends di {
|
|
|
16098
16098
|
/** @type {Doc} */
|
|
16099
16099
|
this.target.doc
|
|
16100
16100
|
), n = [];
|
|
16101
|
-
|
|
16101
|
+
Y(e, (r) => {
|
|
16102
16102
|
const i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
16103
16103
|
let o = this.target._start, l = null;
|
|
16104
16104
|
const a = {};
|
|
@@ -16262,7 +16262,7 @@ class _t extends pe {
|
|
|
16262
16262
|
* @public
|
|
16263
16263
|
*/
|
|
16264
16264
|
applyDelta(e, { sanitize: n = !0 } = {}) {
|
|
16265
|
-
this.doc !== null ?
|
|
16265
|
+
this.doc !== null ? Y(this.doc, (r) => {
|
|
16266
16266
|
const i = new xs(null, this._start, 0, /* @__PURE__ */ new Map());
|
|
16267
16267
|
for (let s = 0; s < e.length; s++) {
|
|
16268
16268
|
const o = e[s];
|
|
@@ -16342,7 +16342,7 @@ class _t extends pe {
|
|
|
16342
16342
|
}
|
|
16343
16343
|
d();
|
|
16344
16344
|
};
|
|
16345
|
-
return e || n ?
|
|
16345
|
+
return e || n ? Y(o, (u) => {
|
|
16346
16346
|
e && bs(u, e), n && bs(u, n), f();
|
|
16347
16347
|
}, "cleanup") : f(), i;
|
|
16348
16348
|
}
|
|
@@ -16360,7 +16360,7 @@ class _t extends pe {
|
|
|
16360
16360
|
if (n.length <= 0)
|
|
16361
16361
|
return;
|
|
16362
16362
|
const i = this.doc;
|
|
16363
|
-
i !== null ?
|
|
16363
|
+
i !== null ? Y(i, (s) => {
|
|
16364
16364
|
const o = hr(s, this, e, !r);
|
|
16365
16365
|
r || (r = {}, o.currentAttributes.forEach((l, a) => {
|
|
16366
16366
|
r[a] = l;
|
|
@@ -16379,7 +16379,7 @@ class _t extends pe {
|
|
|
16379
16379
|
*/
|
|
16380
16380
|
insertEmbed(e, n, r) {
|
|
16381
16381
|
const i = this.doc;
|
|
16382
|
-
i !== null ?
|
|
16382
|
+
i !== null ? Y(i, (s) => {
|
|
16383
16383
|
const o = hr(s, this, e, !r);
|
|
16384
16384
|
Fi(s, this, o, n, r || {});
|
|
16385
16385
|
}) : this._pending.push(() => this.insertEmbed(e, n, r || {}));
|
|
@@ -16396,7 +16396,7 @@ class _t extends pe {
|
|
|
16396
16396
|
if (n === 0)
|
|
16397
16397
|
return;
|
|
16398
16398
|
const r = this.doc;
|
|
16399
|
-
r !== null ?
|
|
16399
|
+
r !== null ? Y(r, (i) => {
|
|
16400
16400
|
ia(i, hr(i, this, e, !0), n);
|
|
16401
16401
|
}) : this._pending.push(() => this.delete(e, n));
|
|
16402
16402
|
}
|
|
@@ -16414,7 +16414,7 @@ class _t extends pe {
|
|
|
16414
16414
|
if (n === 0)
|
|
16415
16415
|
return;
|
|
16416
16416
|
const i = this.doc;
|
|
16417
|
-
i !== null ?
|
|
16417
|
+
i !== null ? Y(i, (s) => {
|
|
16418
16418
|
const o = hr(s, this, e, !1);
|
|
16419
16419
|
o.right !== null && ra(s, this, o, n, r);
|
|
16420
16420
|
}) : this._pending.push(() => this.format(e, n, r));
|
|
@@ -16429,7 +16429,7 @@ class _t extends pe {
|
|
|
16429
16429
|
* @public
|
|
16430
16430
|
*/
|
|
16431
16431
|
removeAttribute(e) {
|
|
16432
|
-
this.doc !== null ?
|
|
16432
|
+
this.doc !== null ? Y(this.doc, (n) => {
|
|
16433
16433
|
Ur(n, this, e);
|
|
16434
16434
|
}) : this._pending.push(() => this.removeAttribute(e));
|
|
16435
16435
|
}
|
|
@@ -16444,7 +16444,7 @@ class _t extends pe {
|
|
|
16444
16444
|
* @public
|
|
16445
16445
|
*/
|
|
16446
16446
|
setAttribute(e, n) {
|
|
16447
|
-
this.doc !== null ?
|
|
16447
|
+
this.doc !== null ? Y(this.doc, (r) => {
|
|
16448
16448
|
mo(r, this, e, n);
|
|
16449
16449
|
}) : this._pending.push(() => this.setAttribute(e, n));
|
|
16450
16450
|
}
|
|
@@ -16685,7 +16685,7 @@ class $t extends pe {
|
|
|
16685
16685
|
* @param {Array<YXmlElement|YXmlText>} content The array of content
|
|
16686
16686
|
*/
|
|
16687
16687
|
insert(e, n) {
|
|
16688
|
-
this.doc !== null ?
|
|
16688
|
+
this.doc !== null ? Y(this.doc, (r) => {
|
|
16689
16689
|
Pu(r, this, e, n);
|
|
16690
16690
|
}) : this._prelimContent.splice(e, 0, ...n);
|
|
16691
16691
|
}
|
|
@@ -16701,7 +16701,7 @@ class $t extends pe {
|
|
|
16701
16701
|
*/
|
|
16702
16702
|
insertAfter(e, n) {
|
|
16703
16703
|
if (this.doc !== null)
|
|
16704
|
-
|
|
16704
|
+
Y(this.doc, (r) => {
|
|
16705
16705
|
const i = e && e instanceof pe ? e._item : e;
|
|
16706
16706
|
Wr(r, this, i, n);
|
|
16707
16707
|
});
|
|
@@ -16722,7 +16722,7 @@ class $t extends pe {
|
|
|
16722
16722
|
* @param {number} [length=1] The number of elements to remove. Defaults to 1.
|
|
16723
16723
|
*/
|
|
16724
16724
|
delete(e, n = 1) {
|
|
16725
|
-
this.doc !== null ?
|
|
16725
|
+
this.doc !== null ? Y(this.doc, (r) => {
|
|
16726
16726
|
Fu(r, this, e, n);
|
|
16727
16727
|
}) : this._prelimContent.splice(e, n);
|
|
16728
16728
|
}
|
|
@@ -16884,7 +16884,7 @@ class xe extends $t {
|
|
|
16884
16884
|
* @public
|
|
16885
16885
|
*/
|
|
16886
16886
|
removeAttribute(e) {
|
|
16887
|
-
this.doc !== null ?
|
|
16887
|
+
this.doc !== null ? Y(this.doc, (n) => {
|
|
16888
16888
|
Ur(n, this, e);
|
|
16889
16889
|
}) : this._prelimAttrs.delete(e);
|
|
16890
16890
|
}
|
|
@@ -16899,7 +16899,7 @@ class xe extends $t {
|
|
|
16899
16899
|
* @public
|
|
16900
16900
|
*/
|
|
16901
16901
|
setAttribute(e, n) {
|
|
16902
|
-
this.doc !== null ?
|
|
16902
|
+
this.doc !== null ? Y(this.doc, (r) => {
|
|
16903
16903
|
mo(r, this, e, n);
|
|
16904
16904
|
}) : this._prelimAttrs.set(e, n);
|
|
16905
16905
|
}
|
|
@@ -17195,7 +17195,7 @@ class bo {
|
|
|
17195
17195
|
throw qe();
|
|
17196
17196
|
}
|
|
17197
17197
|
}
|
|
17198
|
-
const
|
|
17198
|
+
const Jk = 0;
|
|
17199
17199
|
class Pe extends bo {
|
|
17200
17200
|
get deleted() {
|
|
17201
17201
|
return !0;
|
|
@@ -17221,7 +17221,7 @@ class Pe extends bo {
|
|
|
17221
17221
|
* @param {number} offset
|
|
17222
17222
|
*/
|
|
17223
17223
|
write(e, n) {
|
|
17224
|
-
e.writeInfo(
|
|
17224
|
+
e.writeInfo(Jk), e.writeLen(this.length - n);
|
|
17225
17225
|
}
|
|
17226
17226
|
/**
|
|
17227
17227
|
* @param {Transaction} transaction
|
|
@@ -17232,7 +17232,7 @@ class Pe extends bo {
|
|
|
17232
17232
|
return null;
|
|
17233
17233
|
}
|
|
17234
17234
|
}
|
|
17235
|
-
class
|
|
17235
|
+
class Yn {
|
|
17236
17236
|
/**
|
|
17237
17237
|
* @param {Uint8Array} content
|
|
17238
17238
|
*/
|
|
@@ -17261,7 +17261,7 @@ class Jn {
|
|
|
17261
17261
|
* @return {ContentBinary}
|
|
17262
17262
|
*/
|
|
17263
17263
|
copy() {
|
|
17264
|
-
return new
|
|
17264
|
+
return new Yn(this.content);
|
|
17265
17265
|
}
|
|
17266
17266
|
/**
|
|
17267
17267
|
* @param {number} offset
|
|
@@ -17307,7 +17307,7 @@ class Jn {
|
|
|
17307
17307
|
return 3;
|
|
17308
17308
|
}
|
|
17309
17309
|
}
|
|
17310
|
-
const
|
|
17310
|
+
const Yk = (t) => new Yn(t.readBuf());
|
|
17311
17311
|
class $n {
|
|
17312
17312
|
/**
|
|
17313
17313
|
* @param {number} len
|
|
@@ -18137,7 +18137,7 @@ let Z = class vs extends bo {
|
|
|
18137
18137
|
return this.rightOrigin.client;
|
|
18138
18138
|
if (this.parent && this.parent.constructor === Xt && this.id.client !== this.parent.client && this.parent.clock >= ae(n, this.parent.client))
|
|
18139
18139
|
return this.parent.client;
|
|
18140
|
-
if (this.origin && (this.left =
|
|
18140
|
+
if (this.origin && (this.left = Jl(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Ne(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Pe || this.right && this.right.constructor === Pe)
|
|
18141
18141
|
this.parent = null;
|
|
18142
18142
|
else if (!this.parent)
|
|
18143
18143
|
this.left && this.left.constructor === vs ? (this.parent = this.left.parent, this.parentSub = this.left.parentSub) : this.right && this.right.constructor === vs && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
|
|
@@ -18153,7 +18153,7 @@ let Z = class vs extends bo {
|
|
|
18153
18153
|
* @param {number} offset
|
|
18154
18154
|
*/
|
|
18155
18155
|
integrate(e, n) {
|
|
18156
|
-
if (n > 0 && (this.id.clock += n, this.left =
|
|
18156
|
+
if (n > 0 && (this.id.clock += n, this.left = Jl(e, e.doc.store, j(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) {
|
|
18157
18157
|
if (!this.left && (!this.right || this.right.left !== null) || this.left && this.left.right !== this.right) {
|
|
18158
18158
|
let r = this.left, i;
|
|
18159
18159
|
if (r !== null)
|
|
@@ -18310,7 +18310,7 @@ const Gu = (t, e) => pC[e & si](t), pC = [
|
|
|
18310
18310
|
// 1
|
|
18311
18311
|
tC,
|
|
18312
18312
|
// 2
|
|
18313
|
-
|
|
18313
|
+
Yk,
|
|
18314
18314
|
// 3
|
|
18315
18315
|
iC,
|
|
18316
18316
|
// 4
|
|
@@ -18521,7 +18521,7 @@ const _C = (t) => new AC().digest(t), EC = (t) => {
|
|
|
18521
18521
|
for (let n = 6; n < t.length; n++)
|
|
18522
18522
|
t[n % 6] = t[n % 6] ^ t[n];
|
|
18523
18523
|
return t.slice(0, 6);
|
|
18524
|
-
}, TC = (t) => Fv(EC(_C(zv(t)))),
|
|
18524
|
+
}, TC = (t) => Fv(EC(_C(zv(t)))), Jr = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
|
|
18525
18525
|
e.sv.get(t.id.client) > t.id.clock && !mn(e.ds, t.id), DC = [{ light: "#ecd44433", dark: "#ecd444" }], RC = (t, e, n) => {
|
|
18526
18526
|
if (!t.has(n)) {
|
|
18527
18527
|
if (t.size < e.length) {
|
|
@@ -18762,7 +18762,7 @@ class MC {
|
|
|
18762
18762
|
);
|
|
18763
18763
|
s = i.getXmlFragment(o);
|
|
18764
18764
|
} else {
|
|
18765
|
-
const o = i.store.clients.get(s._item.id.client) ?? [], l =
|
|
18765
|
+
const o = i.store.clients.get(s._item.id.client) ?? [], l = Ye(
|
|
18766
18766
|
o,
|
|
18767
18767
|
s._item.id.clock
|
|
18768
18768
|
);
|
|
@@ -18792,7 +18792,7 @@ class MC {
|
|
|
18792
18792
|
}, d = Ru(
|
|
18793
18793
|
s,
|
|
18794
18794
|
new ho(n.ds, e.sv)
|
|
18795
|
-
).map((u) => !u._item.deleted ||
|
|
18795
|
+
).map((u) => !u._item.deleted || Jr(u._item, e) || Jr(u._item, n) ? Ir(
|
|
18796
18796
|
u,
|
|
18797
18797
|
this.prosemirrorView.state.schema,
|
|
18798
18798
|
{ mapping: /* @__PURE__ */ new Map(), isOMark: /* @__PURE__ */ new Map() },
|
|
@@ -18838,7 +18838,7 @@ class MC {
|
|
|
18838
18838
|
}
|
|
18839
18839
|
), n.changed.forEach(i), n.changedParentTypes.forEach(i);
|
|
18840
18840
|
const s = this.type.toArray().map(
|
|
18841
|
-
(l) =>
|
|
18841
|
+
(l) => Ju(
|
|
18842
18842
|
/** @type {Y.XmlElement | Y.XmlHook} */
|
|
18843
18843
|
l,
|
|
18844
18844
|
this.prosemirrorView.state.schema,
|
|
@@ -18875,7 +18875,7 @@ class MC {
|
|
|
18875
18875
|
this.prosemirrorView != null && (this.prosemirrorView = null, this.type.unobserveDeep(this._observeFunction), this.doc.off("beforeAllTransactions", this.beforeAllTransactions), this.doc.off("afterAllTransactions", this.afterAllTransactions));
|
|
18876
18876
|
}
|
|
18877
18877
|
}
|
|
18878
|
-
const
|
|
18878
|
+
const Ju = (t, e, n, r, i, s) => {
|
|
18879
18879
|
const o = (
|
|
18880
18880
|
/** @type {PModel.Node} */
|
|
18881
18881
|
n.mapping.get(t)
|
|
@@ -18896,7 +18896,7 @@ const Yu = (t, e, n, r, i, s) => {
|
|
|
18896
18896
|
}, Ir = (t, e, n, r, i, s) => {
|
|
18897
18897
|
const o = [], l = (a) => {
|
|
18898
18898
|
if (a instanceof xe) {
|
|
18899
|
-
const d =
|
|
18899
|
+
const d = Ju(
|
|
18900
18900
|
a,
|
|
18901
18901
|
e,
|
|
18902
18902
|
n,
|
|
@@ -18932,11 +18932,11 @@ const Yu = (t, e, n, r, i, s) => {
|
|
|
18932
18932
|
r === void 0 || i === void 0 ? t.toArray().forEach(l) : Ru(t, new ho(i.ds, r.sv)).forEach(l);
|
|
18933
18933
|
try {
|
|
18934
18934
|
const a = t.getAttributes(r);
|
|
18935
|
-
r !== void 0 && (
|
|
18935
|
+
r !== void 0 && (Jr(
|
|
18936
18936
|
/** @type {Y.Item} */
|
|
18937
18937
|
t._item,
|
|
18938
18938
|
r
|
|
18939
|
-
) ?
|
|
18939
|
+
) ? Jr(
|
|
18940
18940
|
/** @type {Y.Item} */
|
|
18941
18941
|
t._item,
|
|
18942
18942
|
i
|
|
@@ -19009,7 +19009,7 @@ const Yu = (t, e, n, r, i, s) => {
|
|
|
19009
19009
|
n.push(i);
|
|
19010
19010
|
}
|
|
19011
19011
|
return n;
|
|
19012
|
-
},
|
|
19012
|
+
}, Yu = (t, e) => {
|
|
19013
19013
|
const n = t.toDelta();
|
|
19014
19014
|
return n.length === e.length && n.every(
|
|
19015
19015
|
/** @type {(d:any,i:number) => boolean} */
|
|
@@ -19029,22 +19029,22 @@ const Yu = (t, e, n, r, i, s) => {
|
|
|
19029
19029
|
(r, i) => Bn(r, n[i])
|
|
19030
19030
|
);
|
|
19031
19031
|
}
|
|
19032
|
-
return t instanceof Ae && e instanceof Array &&
|
|
19033
|
-
},
|
|
19032
|
+
return t instanceof Ae && e instanceof Array && Yu(t, e);
|
|
19033
|
+
}, Yr = (t, e) => t === e || t instanceof Array && e instanceof Array && t.length === e.length && t.every(
|
|
19034
19034
|
(n, r) => e[r] === n
|
|
19035
19035
|
), la = (t, e, n) => {
|
|
19036
19036
|
const r = t.toArray(), i = hi(e), s = i.length, o = r.length, l = sn(o, s);
|
|
19037
19037
|
let a = 0, d = 0, f = !1;
|
|
19038
19038
|
for (; a < l; a++) {
|
|
19039
19039
|
const u = r[a], h = i[a];
|
|
19040
|
-
if (
|
|
19040
|
+
if (Yr(n.mapping.get(u), h))
|
|
19041
19041
|
f = !0;
|
|
19042
19042
|
else if (!Bn(u, h))
|
|
19043
19043
|
break;
|
|
19044
19044
|
}
|
|
19045
19045
|
for (; a + d < l; d++) {
|
|
19046
19046
|
const u = r[o - d - 1], h = i[s - d - 1];
|
|
19047
|
-
if (
|
|
19047
|
+
if (Yr(n.mapping.get(u), h))
|
|
19048
19048
|
f = !0;
|
|
19049
19049
|
else if (!Bn(u, h))
|
|
19050
19050
|
break;
|
|
@@ -19104,7 +19104,7 @@ const Yu = (t, e, n, r, i, s) => {
|
|
|
19104
19104
|
let d = 0, f = 0;
|
|
19105
19105
|
for (; d < a; d++) {
|
|
19106
19106
|
const u = o[d], h = i[d];
|
|
19107
|
-
if (!
|
|
19107
|
+
if (!Yr(r.mapping.get(u), h))
|
|
19108
19108
|
if (Bn(u, h))
|
|
19109
19109
|
r.mapping.set(u, h);
|
|
19110
19110
|
else
|
|
@@ -19112,7 +19112,7 @@ const Yu = (t, e, n, r, i, s) => {
|
|
|
19112
19112
|
}
|
|
19113
19113
|
for (; f + d + 1 < a; f++) {
|
|
19114
19114
|
const u = o[l - f - 1], h = i[s - f - 1];
|
|
19115
|
-
if (!
|
|
19115
|
+
if (!Yr(r.mapping.get(u), h))
|
|
19116
19116
|
if (Bn(u, h))
|
|
19117
19117
|
r.mapping.set(u, h);
|
|
19118
19118
|
else
|
|
@@ -19122,7 +19122,7 @@ const Yu = (t, e, n, r, i, s) => {
|
|
|
19122
19122
|
for (; l - d - f > 0 && s - d - f > 0; ) {
|
|
19123
19123
|
const h = o[d], p = i[d], m = o[l - f - 1], b = i[s - f - 1];
|
|
19124
19124
|
if (h instanceof Ae && p instanceof Array)
|
|
19125
|
-
|
|
19125
|
+
Yu(h, p) || BC(h, p, r), d += 1;
|
|
19126
19126
|
else {
|
|
19127
19127
|
let w = h instanceof xe && Ns(h, p), x = m instanceof xe && Ns(m, b);
|
|
19128
19128
|
if (w && x) {
|
|
@@ -19313,7 +19313,7 @@ function WC(t) {
|
|
|
19313
19313
|
content: e.map(n)
|
|
19314
19314
|
};
|
|
19315
19315
|
}
|
|
19316
|
-
const UC = (t) => pt.getState(t)?.undoManager?.undo() != null, GC = (t) => pt.getState(t)?.undoManager?.redo() != null, KC = /* @__PURE__ */ new Set(["paragraph"]), qC = (t, e) => !(t instanceof Z) || !(t.content instanceof Qe) || !(t.content.type instanceof _t || t.content.type instanceof xe && e.has(t.content.type.nodeName)) || t.content.type._length === 0,
|
|
19316
|
+
const UC = (t) => pt.getState(t)?.undoManager?.undo() != null, GC = (t) => pt.getState(t)?.undoManager?.redo() != null, KC = /* @__PURE__ */ new Set(["paragraph"]), qC = (t, e) => !(t instanceof Z) || !(t.content instanceof Qe) || !(t.content.type instanceof _t || t.content.type instanceof xe && e.has(t.content.type.nodeName)) || t.content.type._length === 0, JC = ({ protectedNodes: t = KC, trackedOrigins: e = [], undoManager: n = null } = {}) => new ot({
|
|
19317
19317
|
key: pt,
|
|
19318
19318
|
state: {
|
|
19319
19319
|
init: (r, i) => {
|
|
@@ -19390,7 +19390,7 @@ Vt.create({
|
|
|
19390
19390
|
},
|
|
19391
19391
|
addProseMirrorPlugins() {
|
|
19392
19392
|
var t;
|
|
19393
|
-
const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n =
|
|
19393
|
+
const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = JC(this.options.yUndoOptions), r = n.spec.view;
|
|
19394
19394
|
n.spec.view = (o) => {
|
|
19395
19395
|
const { undoManager: l } = pt.getState(o.state);
|
|
19396
19396
|
l.restore && (l.restore(), l.restore = () => {
|
|
@@ -19439,7 +19439,7 @@ Vt.create({
|
|
|
19439
19439
|
].filter(Boolean);
|
|
19440
19440
|
}
|
|
19441
19441
|
});
|
|
19442
|
-
function
|
|
19442
|
+
function YC(t) {
|
|
19443
19443
|
return !!t.getMeta(ie);
|
|
19444
19444
|
}
|
|
19445
19445
|
function aa(t) {
|
|
@@ -19738,7 +19738,7 @@ const ca = (t, e) => {
|
|
|
19738
19738
|
if (b !== void 0 && (l = b), w && o)
|
|
19739
19739
|
return o.hide(), l = !1, a = null, d = -1, i?.({ editor: n, node: null, pos: -1 }), h;
|
|
19740
19740
|
if (u.docChanged && d !== -1 && e && o)
|
|
19741
|
-
if (
|
|
19741
|
+
if (YC(u)) {
|
|
19742
19742
|
const x = rS(m, f);
|
|
19743
19743
|
x !== d && (d = x);
|
|
19744
19744
|
} else {
|
|
@@ -19979,7 +19979,7 @@ const iS = (t) => {
|
|
|
19979
19979
|
] }),
|
|
19980
19980
|
i && /* @__PURE__ */ g("div", { className: oS({ variant: i.variant }), children: [
|
|
19981
19981
|
/* @__PURE__ */ c(H, { icon: i.icon }),
|
|
19982
|
-
/* @__PURE__ */ c(
|
|
19982
|
+
/* @__PURE__ */ c(Je, { children: i.title })
|
|
19983
19983
|
] })
|
|
19984
19984
|
] });
|
|
19985
19985
|
}, uS = ({
|
|
@@ -20112,8 +20112,8 @@ const iS = (t) => {
|
|
|
20112
20112
|
), D = X(() => {
|
|
20113
20113
|
const F = S.current;
|
|
20114
20114
|
if (!F || !A) return;
|
|
20115
|
-
const { pos: ge, nodeSize: Se } = F,
|
|
20116
|
-
if (
|
|
20115
|
+
const { pos: ge, nodeSize: Se } = F, J = A.state.doc.nodeAt(ge);
|
|
20116
|
+
if (J && J.content.size === 0)
|
|
20117
20117
|
A.chain().focus().setTextSelection(ge + 1).insertContent("/").run();
|
|
20118
20118
|
else {
|
|
20119
20119
|
const Zn = ge + Se;
|
|
@@ -21374,7 +21374,7 @@ const qS = P(
|
|
|
21374
21374
|
}
|
|
21375
21375
|
);
|
|
21376
21376
|
}
|
|
21377
|
-
),
|
|
21377
|
+
), JS = ({
|
|
21378
21378
|
onClick: t,
|
|
21379
21379
|
withEmoji: e,
|
|
21380
21380
|
withPointerCursor: n,
|
|
@@ -21399,7 +21399,7 @@ function EI({
|
|
|
21399
21399
|
...l
|
|
21400
21400
|
}) {
|
|
21401
21401
|
return /* @__PURE__ */ g(
|
|
21402
|
-
|
|
21402
|
+
JS,
|
|
21403
21403
|
{
|
|
21404
21404
|
onClick: (d) => {
|
|
21405
21405
|
d.preventDefault(), o?.(t);
|
|
@@ -21426,7 +21426,7 @@ function EI({
|
|
|
21426
21426
|
}
|
|
21427
21427
|
);
|
|
21428
21428
|
}
|
|
21429
|
-
const
|
|
21429
|
+
const YS = ({ onClick: t, className: e, children: n }) => t ? /* @__PURE__ */ c("a", { className: e, onClick: t, tabIndex: 0, children: n }) : /* @__PURE__ */ c("div", { className: e, tabIndex: -1, children: n });
|
|
21430
21430
|
function ha({
|
|
21431
21431
|
id: t,
|
|
21432
21432
|
title: e,
|
|
@@ -21438,7 +21438,7 @@ function ha({
|
|
|
21438
21438
|
"flex flex-row gap-2 rounded-md border border-solid border-transparent p-2 text-f1-foreground",
|
|
21439
21439
|
r ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
|
|
21440
21440
|
);
|
|
21441
|
-
return /* @__PURE__ */ g(
|
|
21441
|
+
return /* @__PURE__ */ g(YS, { onClick: (l) => {
|
|
21442
21442
|
l.preventDefault(), r?.(t);
|
|
21443
21443
|
}, className: s, children: [
|
|
21444
21444
|
/* @__PURE__ */ c(La, { module: i ?? "inbox", size: "md" }),
|
|
@@ -21790,24 +21790,24 @@ function OI({
|
|
|
21790
21790
|
trackedMinutes: t,
|
|
21791
21791
|
remainingMinutes: e,
|
|
21792
21792
|
canSeeRemainingTime: b
|
|
21793
|
-
}), N = _ === "clocked-out", R = u?.map((
|
|
21794
|
-
value:
|
|
21795
|
-
label:
|
|
21796
|
-
description:
|
|
21797
|
-
tag:
|
|
21793
|
+
}), N = _ === "clocked-out", R = u?.map((J) => ({
|
|
21794
|
+
value: J.id,
|
|
21795
|
+
label: J.duration ? `${J.name} · ${J.duration}` : J.name,
|
|
21796
|
+
description: J.description,
|
|
21797
|
+
tag: J.isPaid ? r.paid : r.unpaid
|
|
21798
21798
|
})) ?? [], [y, A] = L(!1), M = () => {
|
|
21799
21799
|
if (R.length > 1)
|
|
21800
21800
|
y || A(!0);
|
|
21801
21801
|
else {
|
|
21802
|
-
const
|
|
21803
|
-
f?.(
|
|
21804
|
-
}
|
|
21805
|
-
}, U = (
|
|
21806
|
-
h?.(
|
|
21807
|
-
}, D = N && s.length && !l && o, $ = s.find((
|
|
21808
|
-
value:
|
|
21809
|
-
label:
|
|
21810
|
-
icon:
|
|
21802
|
+
const J = R?.[0]?.value;
|
|
21803
|
+
f?.(J);
|
|
21804
|
+
}
|
|
21805
|
+
}, U = (J) => {
|
|
21806
|
+
h?.(J), A(!1), f?.(J);
|
|
21807
|
+
}, D = N && s.length && !l && o, $ = s.find((J) => J.id === i), re = s.map((J) => ({
|
|
21808
|
+
value: J.id,
|
|
21809
|
+
label: J.name,
|
|
21810
|
+
icon: J.icon
|
|
21811
21811
|
})), F = _ === "break", [ge, Se] = L(!1);
|
|
21812
21812
|
return /* @__PURE__ */ c("div", { className: "@container", children: /* @__PURE__ */ g("div", { className: "flex-grow flex-col", children: [
|
|
21813
21813
|
/* @__PURE__ */ g("div", { className: "flex flex-col-reverse items-center gap-2 @xs:flex-row", children: [
|
|
@@ -22156,7 +22156,7 @@ var MN = () => {
|
|
|
22156
22156
|
return c("div", gi(ze({ ref: d, style: m }, l), { children: Xa.map(n, (b, w) => {
|
|
22157
22157
|
if (typeof b != "object" || !b || !("type" in b)) return b;
|
|
22158
22158
|
let x = { style: LN({ style: b.props.style, position: h[w], transition: i, transitionDuration: s }), ref: (v) => a.current[w] = v };
|
|
22159
|
-
return
|
|
22159
|
+
return Ya(b, ze(ze({}, b.props), x));
|
|
22160
22160
|
}) }));
|
|
22161
22161
|
};
|
|
22162
22162
|
const zN = { sm: 340, md: 480, lg: 640 }, ma = P(
|
|
@@ -22283,13 +22283,13 @@ export {
|
|
|
22283
22283
|
tI as DetailsItemsList,
|
|
22284
22284
|
gA as Dialog,
|
|
22285
22285
|
mt as Dropdown,
|
|
22286
|
-
|
|
22286
|
+
YN as EntitySelect,
|
|
22287
22287
|
bA as F0ActionBar,
|
|
22288
22288
|
ld as F0AiBanner,
|
|
22289
22289
|
La as F0AvatarModule,
|
|
22290
22290
|
KN as F0Callout,
|
|
22291
22291
|
wA as F0TableOfContent,
|
|
22292
|
-
|
|
22292
|
+
JN as F0VersionHistory,
|
|
22293
22293
|
GI as F1SearchBox,
|
|
22294
22294
|
xA as FILE_TYPES,
|
|
22295
22295
|
yA as FileItem,
|
|
@@ -22306,8 +22306,8 @@ export {
|
|
|
22306
22306
|
CA as NumberInput,
|
|
22307
22307
|
sI as OmniButton,
|
|
22308
22308
|
fI as OneApprovalHistory,
|
|
22309
|
-
|
|
22310
|
-
|
|
22309
|
+
JI as OneCalendar,
|
|
22310
|
+
YI as OneCalendarInternal,
|
|
22311
22311
|
XI as OneDataCollection,
|
|
22312
22312
|
ZI as OneDateNavigator,
|
|
22313
22313
|
Ap as OneEmptyState,
|