@factorialco/f0-react 1.195.1 → 1.196.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/experimental.d.ts +15 -11
- package/dist/experimental.js +238 -238
- package/dist/f0.d.ts +11 -11
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aM as Py, aN as Fy, aO as r0, aP as _a, aQ as pk, aR as mk, aS as gk, aT as Fc, aU as yk, aV as vk, aW as bk, aX as U, aY as By, aZ as kk, a_ as wk, a$ as xk, b0 as ks, b1 as Uo, b2 as Wl, b3 as _k, b4 as Ya, b5 as Ck, b6 as Bc, b7 as Sk, b8 as Nk, b9 as Za, ba as Lk, bb as Ek, bc as Mk, bd as s0, be as Tk, bf as o0, bg as Ok, bh as $y, bi as zy, bj as Ak, bk as Ys, q as At, a as N, bl as
|
|
1
|
+
import { aM as Py, aN as Fy, aO as r0, aP as _a, aQ as pk, aR as mk, aS as gk, aT as Fc, aU as yk, aV as vk, aW as bk, aX as U, aY as By, aZ as kk, a_ as wk, a$ as xk, b0 as ks, b1 as Uo, b2 as Wl, b3 as _k, b4 as Ya, b5 as Ck, b6 as Bc, b7 as Sk, b8 as Nk, b9 as Za, ba as Lk, bb as Ek, bc as Mk, bd as s0, be as Tk, bf as o0, bg as Ok, bh as $y, bi as zy, bj as Ak, bk as Ys, q as At, a as N, bl as ir, P as Ke, bm as ze, s as oe, j as nt, y as re, bn as vf, L as Nr, bo as $e, bp as rr, _ as jy, bq as De, w as _i, x as oi, br as Vy, bs as ql, bt as Ul, bu as Dk, n as bf, bv as Hy, f as Ik, bw as Rk, bx as Pk, by as Fk, b as a0, bz as Bk, bA as $k, bB as Jt, ab as Kl, ay as l0, bC as pe, bD as Xr, bE as Wy, bF as Eh, bG as zk, c as kf, bH as Zs, bI as Mh, bJ as $t, bK as jk, bL as Tn, bM as Vk, bN as qy, bO as Hk, bP as $i, bQ as Wk, bR as qk, bS as Uk, bT as Kk, bU as Gk, bV as Uy, bW as Jk, bX as d0, bY as Yk, aI as Xs, S as Ei, t as Th, bZ as Zk, as as Xk, au as Ky, ap as Gy, av as wf, b_ as Jy, $ as Ca, r as Mi, b$ as zr, c0 as Qk, c1 as Oh, a8 as Wn, c2 as Yt, c3 as xf, c4 as Ko, c5 as ew, c6 as Yy, c7 as tw, h as _f, i as Cf, k as Sf, c8 as Ah, c9 as nw, ca as Zy, C as mn, cb as Xy, cc as iw, cd as rw, G as sw, ce as Qy, cf as gt, cg as Ku, ch as e4, a5 as Gu, ci as ow, cj as aw, ck as lw, cl as dw, cm as fw, aJ as Nf, a2 as Ju, F as Dh, aL as cw, cn as Ln, aK as uw, co as t4, cp as an, cq as n4, cr as hr, cs as hw, ct as pw, cu as qt, cv as Gl, cw as i4, cx as mw, ag as Lf, a6 as Ih, al as jr, cy as Rh, cz as Ph, cA as r4, cB as gw, a9 as yw, a1 as s4, cC as vw, cD as o4, cE as bw, cF as kw, cG as ww, D as a4, u as l4, cH as f0, cI as xw, cJ as Sa, cK as _w, cL as Ef, K as Cw, m as Sw, cM as Nw, cN as Lw, cO as Ew, cP as Mw, cQ as Tw, cR as Ow, cS as Aw, cT as Dw, p as Iw, an as Rw, cU as d4, cV as Mf, v as Yu, cW as c0, Y as f4, cX as Na, cY as c4, cZ as u4, c_ as Pw, a0 as Qs, c$ as Fw, a3 as h4, I as Bw, d0 as ft, d1 as u0, d2 as $w, d3 as zw, d4 as jw, d5 as $c, d6 as Vw, d7 as Hw, aq as Ww, ax as Tf, z as Of, d8 as Af, d9 as Df, E as If, aw as p4, aa as Fh, da as qw, aC as Uw, db as Zu, dc as Kw, dd as Jl, ar as Yl, aD as Gw, de as Jw, aB as m4, df as Yw, aA as Zw, az as Xw, dg as Qw, dh as ex, ac as tx, di as nx, dj as ix, dk as rx, a4 as sx, dl as La, dm as Bh, dn as $h, dp as Ea, dq as g4, dr as ox, ds as y4, dt as ax, aE as v4, du as b4, ad as k4, dv as lx, dw as dx, dx as fx, H as cx, A as ux, B as hx, e as px, g as mx, V as gx, d as yx, dy as h0, dz as vx, dA as bx, dB as kx, dC as w4, dD as wx } from "./hooks-CbFey1zm.js";
|
|
2
2
|
import { J as eJ, dF as tJ, a7 as nJ, dE as iJ } from "./hooks-CbFey1zm.js";
|
|
3
3
|
import { jsxs as b, jsx as d, Fragment as we } from "react/jsx-runtime";
|
|
4
4
|
import * as A from "react";
|
|
@@ -2223,15 +2223,15 @@ function WC(t, e) {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
return n;
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2227
|
-
return
|
|
2226
|
+
function Ti() {
|
|
2227
|
+
return Ti = Object.assign ? Object.assign.bind() : function(t) {
|
|
2228
2228
|
for (var e = 1; e < arguments.length; e++) {
|
|
2229
2229
|
var n = arguments[e];
|
|
2230
2230
|
for (var i in n)
|
|
2231
2231
|
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
2232
2232
|
}
|
|
2233
2233
|
return t;
|
|
2234
|
-
},
|
|
2234
|
+
}, Ti.apply(this, arguments);
|
|
2235
2235
|
}
|
|
2236
2236
|
function C0(t, e) {
|
|
2237
2237
|
var n = Object.keys(t);
|
|
@@ -2288,7 +2288,7 @@ var GC = function(e, n, i, r) {
|
|
|
2288
2288
|
className: "recharts-polar-grid-angle"
|
|
2289
2289
|
}, o.map(function(f) {
|
|
2290
2290
|
var c = Uo(n, i, r, f), u = Uo(n, i, s, f);
|
|
2291
|
-
return /* @__PURE__ */ J.createElement("line",
|
|
2291
|
+
return /* @__PURE__ */ J.createElement("line", Ti({}, l, {
|
|
2292
2292
|
key: "line-".concat(f),
|
|
2293
2293
|
x1: c.x,
|
|
2294
2294
|
y1: c.y,
|
|
@@ -2302,7 +2302,7 @@ var GC = function(e, n, i, r) {
|
|
|
2302
2302
|
}, ks(e, !1)), {}, {
|
|
2303
2303
|
fill: "none"
|
|
2304
2304
|
});
|
|
2305
|
-
return /* @__PURE__ */ J.createElement("circle",
|
|
2305
|
+
return /* @__PURE__ */ J.createElement("circle", Ti({}, o, {
|
|
2306
2306
|
className: Wl("recharts-polar-grid-concentric-circle", e.className),
|
|
2307
2307
|
key: "circle-".concat(s),
|
|
2308
2308
|
cx: n,
|
|
@@ -2315,7 +2315,7 @@ var GC = function(e, n, i, r) {
|
|
|
2315
2315
|
}, ks(e, !1)), {}, {
|
|
2316
2316
|
fill: "none"
|
|
2317
2317
|
});
|
|
2318
|
-
return /* @__PURE__ */ J.createElement("path",
|
|
2318
|
+
return /* @__PURE__ */ J.createElement("path", Ti({}, r, {
|
|
2319
2319
|
className: Wl("recharts-polar-grid-concentric-polygon", e.className),
|
|
2320
2320
|
key: "path-".concat(i),
|
|
2321
2321
|
d: GC(n, e.cx, e.cy, e.polarAngles)
|
|
@@ -2326,12 +2326,12 @@ var GC = function(e, n, i, r) {
|
|
|
2326
2326
|
className: "recharts-polar-grid-concentric"
|
|
2327
2327
|
}, n.map(function(r, s) {
|
|
2328
2328
|
var o = s;
|
|
2329
|
-
return i === "circle" ? /* @__PURE__ */ J.createElement(YC,
|
|
2329
|
+
return i === "circle" ? /* @__PURE__ */ J.createElement(YC, Ti({
|
|
2330
2330
|
key: o
|
|
2331
2331
|
}, e, {
|
|
2332
2332
|
radius: r,
|
|
2333
2333
|
index: s
|
|
2334
|
-
})) : /* @__PURE__ */ J.createElement(ZC,
|
|
2334
|
+
})) : /* @__PURE__ */ J.createElement(ZC, Ti({
|
|
2335
2335
|
key: o
|
|
2336
2336
|
}, e, {
|
|
2337
2337
|
radius: r,
|
|
@@ -2342,14 +2342,14 @@ var GC = function(e, n, i, r) {
|
|
|
2342
2342
|
var n = e.cx, i = n === void 0 ? 0 : n, r = e.cy, s = r === void 0 ? 0 : r, o = e.innerRadius, a = o === void 0 ? 0 : o, l = e.outerRadius, f = l === void 0 ? 0 : l, c = e.gridType, u = c === void 0 ? "polygon" : c, h = e.radialLines, p = h === void 0 ? !0 : h, m = HC(e, VC);
|
|
2343
2343
|
return f <= 0 ? null : /* @__PURE__ */ J.createElement("g", {
|
|
2344
2344
|
className: "recharts-polar-grid"
|
|
2345
|
-
}, /* @__PURE__ */ J.createElement(JC,
|
|
2345
|
+
}, /* @__PURE__ */ J.createElement(JC, Ti({
|
|
2346
2346
|
cx: i,
|
|
2347
2347
|
cy: s,
|
|
2348
2348
|
innerRadius: a,
|
|
2349
2349
|
outerRadius: f,
|
|
2350
2350
|
gridType: u,
|
|
2351
2351
|
radialLines: p
|
|
2352
|
-
}, m)), /* @__PURE__ */ J.createElement(XC,
|
|
2352
|
+
}, m)), /* @__PURE__ */ J.createElement(XC, Ti({
|
|
2353
2353
|
cx: i,
|
|
2354
2354
|
cy: s,
|
|
2355
2355
|
innerRadius: a,
|
|
@@ -2787,48 +2787,48 @@ const bS = Ys("TriangleAlert", [
|
|
|
2787
2787
|
],
|
|
2788
2788
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
2789
2789
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
2790
|
-
]),
|
|
2790
|
+
]), Ri = "group relative inline-flex items-center justify-center gap-1 whitespace-nowrap rounded border-none p-0 text-base font-medium shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_-2px_4px_rgba(13,22,37,.04)] transition-colors [&_.main]:transform-gpu [&_.main]:transition-transform [&_.main]:duration-100 active:[&_.main]:translate-y-px [&_.main]:flex [&_.main]:items-center [&_.main]:justify-center disabled:opacity-30 disabled:cursor-not-allowed no-underline", M0 = "relative flex-row font-medium h-fit [&[aria-disabled=true]]:pointer-events-none [&[aria-disabled=true]]:cursor-not-allowed [&[aria-disabled=true]]:opacity-30 transition-colors", qh = At({
|
|
2791
2791
|
base: "inline-flex items-center gap-1 text-base font-medium transition-colors",
|
|
2792
2792
|
variants: {
|
|
2793
2793
|
variant: {
|
|
2794
2794
|
default: N(
|
|
2795
|
-
|
|
2795
|
+
Ri,
|
|
2796
2796
|
"bg-f1-background-accent-bold text-f1-foreground-inverse shadow-[0_2px_6px_-1px_rgba(13,22,37,.10),inset_0_-2px_4px_rgba(13,22,37,.08)] after:pointer-events-none after:absolute after:inset-0 after:rounded after:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.25)] after:content-[''] hover:bg-f1-background-accent-bold-hover",
|
|
2797
2797
|
"active:bg-f1-background-accent-bold-hover active:shadow-[0_-2px_6px_-1px_rgba(13,22,37,.10)] active:after:shadow-[inset_0_3px_6px_0_rgba(13,22,37,.2)]",
|
|
2798
2798
|
"data-[pressed=true]:bg-f1-background-accent-bold-hover data-[pressed=true]:shadow-[0_-2px_6px_-1px_rgba(13,22,37,.10)] data-[pressed=true]:after:shadow-[inset_0_3px_6px_0_rgba(13,22,37,.2)]"
|
|
2799
2799
|
),
|
|
2800
2800
|
outline: N(
|
|
2801
|
-
|
|
2801
|
+
Ri,
|
|
2802
2802
|
"bg-f1-background-inverse-secondary text-f1-foreground after:pointer-events-none after:absolute after:inset-0 after:rounded after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] hover:bg-f1-background-tertiary hover:after:opacity-70 hover:after:ring-f1-border-hover",
|
|
2803
2803
|
"active:bg-f1-background-tertiary active:shadow-[inset_0_2px_6px_0_rgba(13,22,37,.15)] active:after:opacity-70 active:after:ring-f1-border-hover",
|
|
2804
2804
|
"data-[pressed=true]:bg-f1-background-tertiary data-[pressed=true]:shadow-[inset_0_2px_6px_0_rgba(13,22,37,.15)] data-[pressed=true]:after:opacity-70 data-[pressed=true]:after:ring-f1-border-hover"
|
|
2805
2805
|
),
|
|
2806
2806
|
neutral: N(
|
|
2807
|
-
|
|
2807
|
+
Ri,
|
|
2808
2808
|
"bg-f1-background-secondary text-f1-foreground hover:bg-f1-background-secondary-hover",
|
|
2809
2809
|
"active:bg-f1-background-secondary-hover active:shadow-[inset_0_2px_8px_0_rgba(13,22,37,.16)]",
|
|
2810
2810
|
"data-[pressed=true]:bg-f1-background-secondary-hover data-[pressed=true]:shadow-[inset_0_2px_8px_0_rgba(13,22,37,.16)]"
|
|
2811
2811
|
),
|
|
2812
2812
|
critical: N(
|
|
2813
|
-
|
|
2813
|
+
Ri,
|
|
2814
2814
|
"bg-f1-background-secondary text-f1-foreground-critical after:pointer-events-none after:absolute after:inset-0 after:rounded after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] hover:bg-f1-background-critical-bold hover:text-f1-foreground-inverse hover:after:ring-transparent dark:bg-transparent dark:hover:bg-f1-background-critical-bold",
|
|
2815
2815
|
"active:bg-f1-background-critical-bold active:text-f1-foreground-inverse active:after:shadow-[inset_0_3px_6px_0_rgba(13,22,37,.2)] active:after:ring-transparent",
|
|
2816
2816
|
"data-[pressed=true]:bg-f1-background-critical-bold data-[pressed=true]:text-f1-foreground-inverse data-[pressed=true]:after:shadow-[inset_0_3px_6px_0_rgba(13,22,37,.2)] data-[pressed=true]:after:ring-transparent"
|
|
2817
2817
|
),
|
|
2818
2818
|
ghost: N(
|
|
2819
|
-
|
|
2819
|
+
Ri,
|
|
2820
2820
|
"bg-transparent text-f1-foreground shadow-none hover:bg-f1-background-secondary-hover hover:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_-2px_4px_rgba(13,22,37,.04)]",
|
|
2821
2821
|
"active:bg-f1-background-secondary-hover active:shadow-[inset_0_2px_4px_0_rgba(13,22,37,.1)]",
|
|
2822
2822
|
"data-[pressed=true]:bg-f1-background-secondary-hover data-[pressed=true]:shadow-[inset_0_2px_4px_0_rgba(13,22,37,.1)]"
|
|
2823
2823
|
),
|
|
2824
2824
|
promote: N(
|
|
2825
|
-
|
|
2825
|
+
Ri,
|
|
2826
2826
|
"bg-f1-background-promote text-f1-foreground shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_-2px_4px_rgba(245,165,28,.15)] after:pointer-events-none after:absolute after:inset-0 after:rounded after:ring-1 after:ring-inset after:ring-f1-border-promote after:transition-all after:content-[''] hover:bg-f1-background-promote-hover dark:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_-2px_4px_rgba(13,22,37,.30)]",
|
|
2827
2827
|
"active:shadow-[inset_0_2px_4px_0_rgba(206,139,24,.5)]",
|
|
2828
2828
|
"data-[pressed=true]:shadow-[inset_0_2px_4px_0_rgba(206,139,24,.5)]"
|
|
2829
2829
|
),
|
|
2830
2830
|
outlinePromote: N(
|
|
2831
|
-
|
|
2831
|
+
Ri,
|
|
2832
2832
|
"bg-f1-background-inverse-secondary text-f1-foreground after:pointer-events-none after:absolute after:inset-0 after:rounded after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] hover:bg-f1-background-tertiary hover:after:opacity-70 hover:after:ring-f1-border-hover",
|
|
2833
2833
|
"active:bg-f1-background-tertiary active:shadow-[inset_0_2px_6px_0_rgba(13,22,37,.15)] active:after:opacity-70 active:after:ring-f1-border-hover",
|
|
2834
2834
|
"data-[pressed=true]:bg-f1-background-tertiary data-[pressed=true]:shadow-[inset_0_2px_6px_0_rgba(13,22,37,.15)] data-[pressed=true]:after:opacity-70 data-[pressed=true]:after:ring-f1-border-hover"
|
|
@@ -2842,7 +2842,7 @@ const bS = Ys("TriangleAlert", [
|
|
|
2842
2842
|
"bg-f1-background-accent !px-1.5 font-medium text-f1-foreground-accent"
|
|
2843
2843
|
),
|
|
2844
2844
|
selected: N(
|
|
2845
|
-
|
|
2845
|
+
Ri,
|
|
2846
2846
|
"bg-f1-background-selected text-f1-icon-selected shadow-none hover:bg-f1-background-selected-hover hover:text-f1-icon-selected-hover hover:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_-2px_4px_rgba(13,22,37,.04)]",
|
|
2847
2847
|
"active:bg-f1-background-selected-hover active:shadow-[inset_0_2px_4px_0_rgba(13,22,37,.1)]",
|
|
2848
2848
|
"data-[pressed=true]:bg-f1-background-selected-hover data-[pressed=true]:shadow-[inset_0_2px_4px_0_rgba(13,22,37,.1)]"
|
|
@@ -2994,7 +2994,7 @@ const bS = Ys("TriangleAlert", [
|
|
|
2994
2994
|
}
|
|
2995
2995
|
});
|
|
2996
2996
|
var wS = "Toggle", Kh = A.forwardRef((t, e) => {
|
|
2997
|
-
const { pressed: n, defaultPressed: i = !1, onPressedChange: r, ...s } = t, [o = !1, a] =
|
|
2997
|
+
const { pressed: n, defaultPressed: i = !1, onPressedChange: r, ...s } = t, [o = !1, a] = ir({
|
|
2998
2998
|
prop: n,
|
|
2999
2999
|
onChange: r,
|
|
3000
3000
|
defaultProp: i
|
|
@@ -3272,7 +3272,7 @@ const PK = ({
|
|
|
3272
3272
|
onMouseEnter: y,
|
|
3273
3273
|
onMouseLeave: v,
|
|
3274
3274
|
children: [
|
|
3275
|
-
e && /* @__PURE__ */ d("div", { className: "min-h-[20px]", children: /* @__PURE__ */ d(
|
|
3275
|
+
e && /* @__PURE__ */ d("div", { className: "min-h-[20px]", children: /* @__PURE__ */ d(rr, { size: "small", className: "text-f1-foreground" }) }),
|
|
3276
3276
|
i && /* @__PURE__ */ b(we, { children: [
|
|
3277
3277
|
/* @__PURE__ */ d("div", { className: "w-fit max-w-[min(90%,330px)] [&>div]:flex [&>div]:flex-col [&>div]:gap-1", children: /* @__PURE__ */ d(
|
|
3278
3278
|
Ex,
|
|
@@ -4130,7 +4130,7 @@ const FS = ({ message: t, ImageRenderer: e }) => {
|
|
|
4130
4130
|
nv.displayName = "CheckCircleAnimated";
|
|
4131
4131
|
const FK = ({ title: t, status: e }) => /* @__PURE__ */ b("div", { className: "flex items-center gap-1 text-f1-foreground-secondary", children: [
|
|
4132
4132
|
e === "inProgress" && /* @__PURE__ */ d(oe, { state: "animate", size: "lg", icon: Hy }),
|
|
4133
|
-
e === "executing" && /* @__PURE__ */ d(
|
|
4133
|
+
e === "executing" && /* @__PURE__ */ d(rr, { className: "h-6 w-6" }),
|
|
4134
4134
|
e === "completed" && /* @__PURE__ */ d(oe, { state: "animate", size: "lg", icon: nv }),
|
|
4135
4135
|
/* @__PURE__ */ d("p", { children: t })
|
|
4136
4136
|
] }), KS = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: i, aspect: r }, s) => {
|
|
@@ -4866,11 +4866,11 @@ var oN = [" ", "Enter", "ArrowUp", "ArrowDown"], aN = [" ", "Enter"], Aa = "Sele
|
|
|
4866
4866
|
disabled: h,
|
|
4867
4867
|
required: p,
|
|
4868
4868
|
form: m
|
|
4869
|
-
} = t, g = jf(e), [y, v] = A.useState(null), [w, x] = A.useState(null), [k, C] = A.useState(!1), _ = Eh(f), [M = !1, E] =
|
|
4869
|
+
} = t, g = jf(e), [y, v] = A.useState(null), [w, x] = A.useState(null), [k, C] = A.useState(!1), _ = Eh(f), [M = !1, E] = ir({
|
|
4870
4870
|
prop: i,
|
|
4871
4871
|
defaultProp: r,
|
|
4872
4872
|
onChange: s
|
|
4873
|
-
}), [S, L] =
|
|
4873
|
+
}), [S, L] = ir({
|
|
4874
4874
|
prop: o,
|
|
4875
4875
|
defaultProp: a,
|
|
4876
4876
|
onChange: l
|
|
@@ -5614,7 +5614,7 @@ var Sv = A.forwardRef(
|
|
|
5614
5614
|
);
|
|
5615
5615
|
Sv.displayName = "BubbleSelect";
|
|
5616
5616
|
function Nv(t) {
|
|
5617
|
-
const e =
|
|
5617
|
+
const e = $i(t), n = A.useRef(""), i = A.useRef(0), r = A.useCallback(
|
|
5618
5618
|
(o) => {
|
|
5619
5619
|
const a = n.current + o;
|
|
5620
5620
|
e(a), function l(f) {
|
|
@@ -5934,7 +5934,7 @@ const RN = ({ actions: t }) => t ? /* @__PURE__ */ d("div", { className: "flex w
|
|
|
5934
5934
|
/* @__PURE__ */ d("span", { className: "line-clamp-2 font-medium", children: t.label }),
|
|
5935
5935
|
t.description && /* @__PURE__ */ d("div", { className: "line-clamp-2 text-f1-foreground-secondary", children: t.description })
|
|
5936
5936
|
] }),
|
|
5937
|
-
t.tag && /* @__PURE__ */ d("div", { className: "self-center", children: /* @__PURE__ */ d(
|
|
5937
|
+
t.tag && /* @__PURE__ */ d("div", { className: "self-center", children: /* @__PURE__ */ d(Mi, { text: t.tag }) })
|
|
5938
5938
|
] }) }), BN = j(function({ item: e }, n) {
|
|
5939
5939
|
return /* @__PURE__ */ b("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", ref: n, children: [
|
|
5940
5940
|
e.icon && /* @__PURE__ */ d("div", { className: "h-5 shrink-0 text-f1-icon", children: /* @__PURE__ */ d(oe, { icon: e.icon }) }),
|
|
@@ -7127,7 +7127,7 @@ const Ts = ({
|
|
|
7127
7127
|
Be ? "" : "rounded-b-xl border-r-0"
|
|
7128
7128
|
),
|
|
7129
7129
|
children: [
|
|
7130
|
-
S && /* @__PURE__ */ d("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ d(
|
|
7130
|
+
S && /* @__PURE__ */ d("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ d(rr, {}) }),
|
|
7131
7131
|
!S && !I && /* @__PURE__ */ b(
|
|
7132
7132
|
"div",
|
|
7133
7133
|
{
|
|
@@ -8294,7 +8294,7 @@ var [Jv, Yv] = Kv(ro), hL = J.forwardRef((t, e) => {
|
|
|
8294
8294
|
onValueChange: r = () => {
|
|
8295
8295
|
},
|
|
8296
8296
|
...s
|
|
8297
|
-
} = t, [o, a] =
|
|
8297
|
+
} = t, [o, a] = ir({
|
|
8298
8298
|
prop: n,
|
|
8299
8299
|
defaultProp: i,
|
|
8300
8300
|
onChange: r
|
|
@@ -8317,7 +8317,7 @@ var [Jv, Yv] = Kv(ro), hL = J.forwardRef((t, e) => {
|
|
|
8317
8317
|
onValueChange: r = () => {
|
|
8318
8318
|
},
|
|
8319
8319
|
...s
|
|
8320
|
-
} = t, [o = [], a] =
|
|
8320
|
+
} = t, [o = [], a] = ir({
|
|
8321
8321
|
prop: n,
|
|
8322
8322
|
defaultProp: i,
|
|
8323
8323
|
onChange: r
|
|
@@ -8875,7 +8875,7 @@ var qc = () => {
|
|
|
8875
8875
|
}
|
|
8876
8876
|
};
|
|
8877
8877
|
}, a1 = (t) => Ht(t) || !s5(t);
|
|
8878
|
-
function
|
|
8878
|
+
function Hi(t, e) {
|
|
8879
8879
|
if (a1(t) || a1(e))
|
|
8880
8880
|
return t === e;
|
|
8881
8881
|
if (Lr(t) && Lr(e))
|
|
@@ -8889,7 +8889,7 @@ function Vi(t, e) {
|
|
|
8889
8889
|
return !1;
|
|
8890
8890
|
if (r !== "ref") {
|
|
8891
8891
|
const o = e[r];
|
|
8892
|
-
if (Lr(s) && Lr(o) || mt(s) && mt(o) || Array.isArray(s) && Array.isArray(o) ? !
|
|
8892
|
+
if (Lr(s) && Lr(o) || mt(s) && mt(o) || Array.isArray(s) && Array.isArray(o) ? !Hi(s, o) : s !== o)
|
|
8893
8893
|
return !1;
|
|
8894
8894
|
}
|
|
8895
8895
|
}
|
|
@@ -8912,7 +8912,7 @@ function b5(t, e, n) {
|
|
|
8912
8912
|
const i = Array.isArray(t);
|
|
8913
8913
|
if (mt(t) || i)
|
|
8914
8914
|
for (const r in t)
|
|
8915
|
-
Array.isArray(t[r]) || mt(t[r]) && !v5(t[r]) ? ht(e) || a1(n[r]) ? n[r] = Array.isArray(t[r]) ? ad(t[r], []) : { ...ad(t[r]) } : b5(t[r], Ht(e) ? {} : e[r], n[r]) : n[r] = !
|
|
8915
|
+
Array.isArray(t[r]) || mt(t[r]) && !v5(t[r]) ? ht(e) || a1(n[r]) ? n[r] = Array.isArray(t[r]) ? ad(t[r], []) : { ...ad(t[r]) } : b5(t[r], Ht(e) ? {} : e[r], n[r]) : n[r] = !Hi(t[r], e[r]);
|
|
8916
8916
|
return n;
|
|
8917
8917
|
}
|
|
8918
8918
|
var yo = (t, e) => b5(t, e, ad(e)), k5 = (t, { valueAsNumber: e, valueAsDate: n, setValueAs: i }) => ht(t) ? t : e ? t === "" ? NaN : t && +t : n && ti(t) ? new Date(t) : i ? i(t) : t;
|
|
@@ -9068,7 +9068,7 @@ function RL(t = {}) {
|
|
|
9068
9068
|
const qe = !!(se(i, T) && se(i, T)._f && se(i, T)._f.disabled);
|
|
9069
9069
|
if (!z || q) {
|
|
9070
9070
|
c.isDirty && (ee = n.isDirty, n.isDirty = be.isDirty = O(), B = ee !== be.isDirty);
|
|
9071
|
-
const at = qe ||
|
|
9071
|
+
const at = qe || Hi(se(r, T), P);
|
|
9072
9072
|
ee = !!(!qe && se(n.dirtyFields, T)), at || qe ? kt(n.dirtyFields, T) : We(n.dirtyFields, T, !0), be.dirtyFields = n.dirtyFields, B = B || c.dirtyFields && ee !== !at;
|
|
9073
9073
|
}
|
|
9074
9074
|
if (z) {
|
|
@@ -9080,7 +9080,7 @@ function RL(t = {}) {
|
|
|
9080
9080
|
return B ? be : {};
|
|
9081
9081
|
}, M = (T, P, z, q) => {
|
|
9082
9082
|
const Y = se(n.errors, T), B = c.isValid && xn(P) && n.isValid !== P;
|
|
9083
|
-
if (e.delayError && z ? (l = g(() => x(T, z)), l(e.delayError)) : (clearTimeout(f), l = null, z ? We(n.errors, T, z) : kt(n.errors, T)), (z ? !
|
|
9083
|
+
if (e.delayError && z ? (l = g(() => x(T, z)), l(e.delayError)) : (clearTimeout(f), l = null, z ? We(n.errors, T, z) : kt(n.errors, T)), (z ? !Hi(Y, z) : Y) || !Xt(q) || B) {
|
|
9084
9084
|
const ee = {
|
|
9085
9085
|
...q,
|
|
9086
9086
|
...B && xn(P) ? { isValid: P } : {},
|
|
@@ -9131,7 +9131,7 @@ function RL(t = {}) {
|
|
|
9131
9131
|
P && (P._f.refs ? P._f.refs.every((z) => !Uc(z)) : !Uc(P._f.ref)) && Be(T);
|
|
9132
9132
|
}
|
|
9133
9133
|
a.unMount = /* @__PURE__ */ new Set();
|
|
9134
|
-
}, O = (T, P) => !e.disabled && (T && P && We(s, T, P), !
|
|
9134
|
+
}, O = (T, P) => !e.disabled && (T && P && We(s, T, P), !Hi(Ee(), r)), I = (T, P, z) => h5(T, a, {
|
|
9135
9135
|
...o.mount ? s : ht(P) ? r : ti(T) ? { [T]: P } : P
|
|
9136
9136
|
}, z, P), R = (T) => Kf(se(o.mount ? s : r, T, e.shouldUnregister ? se(r, T, []) : [])), F = (T, P, z = {}) => {
|
|
9137
9137
|
const q = se(i, T);
|
|
@@ -9167,7 +9167,7 @@ function RL(t = {}) {
|
|
|
9167
9167
|
const P = T.target;
|
|
9168
9168
|
let z = P.name, q = !0;
|
|
9169
9169
|
const Y = se(i, z), B = () => P.type ? Kc(Y._f) : o5(T), ee = (be) => {
|
|
9170
|
-
q = Number.isNaN(be) || Lr(be) && isNaN(be.getTime()) ||
|
|
9170
|
+
q = Number.isNaN(be) || Lr(be) && isNaN(be.getTime()) || Hi(be, se(s, z, be));
|
|
9171
9171
|
};
|
|
9172
9172
|
if (Y) {
|
|
9173
9173
|
let be, qe;
|
|
@@ -9383,7 +9383,7 @@ function RL(t = {}) {
|
|
|
9383
9383
|
focus: ""
|
|
9384
9384
|
}, o.mount = !c.isValid || !!P.keepIsValid || !!P.keepDirtyValues, o.watch = !!e.shouldUnregister, u.state.next({
|
|
9385
9385
|
submitCount: P.keepSubmitCount ? n.submitCount : 0,
|
|
9386
|
-
isDirty: Y ? !1 : P.keepDirty ? n.isDirty : !!(P.keepDefaultValues && !
|
|
9386
|
+
isDirty: Y ? !1 : P.keepDirty ? n.isDirty : !!(P.keepDefaultValues && !Hi(T, r)),
|
|
9387
9387
|
isSubmitted: P.keepIsSubmitted ? n.isSubmitted : !1,
|
|
9388
9388
|
dirtyFields: Y ? {} : P.keepDirtyValues ? P.keepDefaultValues && s ? yo(r, s) : n.dirtyFields : P.keepDefaultValues && T ? yo(r, T) : P.keepDirty ? n.dirtyFields : {},
|
|
9389
9389
|
touchedFields: P.keepTouched ? n.touchedFields : {},
|
|
@@ -9516,7 +9516,7 @@ function PL(t = {}) {
|
|
|
9516
9516
|
});
|
|
9517
9517
|
}
|
|
9518
9518
|
}, [s, i.isDirty]), J.useEffect(() => {
|
|
9519
|
-
t.values && !
|
|
9519
|
+
t.values && !Hi(t.values, n.current) ? (s._reset(t.values, s._options.resetOptions), n.current = t.values, r((o) => ({ ...o }))) : s._resetDefaultValues();
|
|
9520
9520
|
}, [t.values, s]), J.useEffect(() => {
|
|
9521
9521
|
t.errors && s._setErrors(t.errors);
|
|
9522
9522
|
}, [t.errors, s]), J.useEffect(() => {
|
|
@@ -9946,7 +9946,7 @@ function bn(t, e, n) {
|
|
|
9946
9946
|
}) : t[e] = n, t;
|
|
9947
9947
|
}
|
|
9948
9948
|
var Jf, _e, O5, Oo, A5, ig, ld = {}, D5 = [], sE = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
9949
|
-
function
|
|
9949
|
+
function Ui(t, e) {
|
|
9950
9950
|
for (var n in e) t[n] = e[n];
|
|
9951
9951
|
return t;
|
|
9952
9952
|
}
|
|
@@ -10012,7 +10012,7 @@ function dd() {
|
|
|
10012
10012
|
return e.__v.__b - n.__v.__b;
|
|
10013
10013
|
}), Oo = [], t.some(function(e) {
|
|
10014
10014
|
var n, i, r, s, o, a;
|
|
10015
|
-
e.__d && (o = (s = (n = e).__v).__e, (a = n.__P) && (i = [], (r =
|
|
10015
|
+
e.__d && (o = (s = (n = e).__v).__e, (a = n.__P) && (i = [], (r = Ui({}, s)).__v = s.__v + 1, op(a, s, r, n.__n, a.ownerSVGElement !== void 0, s.__h != null ? [
|
|
10016
10016
|
o
|
|
10017
10017
|
] : null, i, o ?? As(s), s.__h), $5(i, s), s.__e != o && R5(s)));
|
|
10018
10018
|
});
|
|
@@ -10095,7 +10095,7 @@ function op(t, e, n, i, r, s, o, a, l) {
|
|
|
10095
10095
|
]), (f = _e.__b) && f(e);
|
|
10096
10096
|
try {
|
|
10097
10097
|
e: if (typeof k == "function") {
|
|
10098
|
-
if (y = e.props, v = (f = k.contextType) && i[f.__c], w = f ? v ? v.props.value : f.__ : i, n.__c ? g = (c = e.__c = n.__c).__ = c.__E : ("prototype" in k && k.prototype.render ? e.__c = c = new k(y, w) : (e.__c = c = new ii(y, w), c.constructor = k, c.render = lE), v && v.sub(c), c.props = y, c.state || (c.state = {}), c.context = w, c.__n = i, u = c.__d = !0, c.__h = []), c.__s == null && (c.__s = c.state), k.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s =
|
|
10098
|
+
if (y = e.props, v = (f = k.contextType) && i[f.__c], w = f ? v ? v.props.value : f.__ : i, n.__c ? g = (c = e.__c = n.__c).__ = c.__E : ("prototype" in k && k.prototype.render ? e.__c = c = new k(y, w) : (e.__c = c = new ii(y, w), c.constructor = k, c.render = lE), v && v.sub(c), c.props = y, c.state || (c.state = {}), c.context = w, c.__n = i, u = c.__d = !0, c.__h = []), c.__s == null && (c.__s = c.state), k.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Ui({}, c.__s)), Ui(c.__s, k.getDerivedStateFromProps(y, c.__s))), h = c.props, p = c.state, u) k.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
10099
10099
|
else {
|
|
10100
10100
|
if (k.getDerivedStateFromProps == null && y !== h && c.componentWillReceiveProps != null && c.componentWillReceiveProps(y, w), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(y, c.__s, w) === !1 || e.__v === n.__v) {
|
|
10101
10101
|
c.props = y, c.state = c.__s, e.__v !== n.__v && (c.__d = !1), c.__v = e, e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(C) {
|
|
@@ -10107,7 +10107,7 @@ function op(t, e, n, i, r, s, o, a, l) {
|
|
|
10107
10107
|
c.componentDidUpdate(h, p, m);
|
|
10108
10108
|
});
|
|
10109
10109
|
}
|
|
10110
|
-
c.context = w, c.props = y, c.state = c.__s, (f = _e.__r) && f(e), c.__d = !1, c.__v = e, c.__P = t, f = c.render(c.props, c.state, c.context), c.state = c.__s, c.getChildContext != null && (i =
|
|
10110
|
+
c.context = w, c.props = y, c.state = c.__s, (f = _e.__r) && f(e), c.__d = !1, c.__v = e, c.__P = t, f = c.render(c.props, c.state, c.context), c.state = c.__s, c.getChildContext != null && (i = Ui(Ui({}, i), c.getChildContext())), u || c.getSnapshotBeforeUpdate == null || (m = c.getSnapshotBeforeUpdate(h, p)), x = f != null && f.type === Os && f.key == null ? f.props.children : f, P5(t, Array.isArray(x) ? x : [
|
|
10111
10111
|
x
|
|
10112
10112
|
], e, n, i, r, s, o, a, l), c.base = e.__e, e.__h = null, c.__h.length && o.push(c), g && (c.__E = c.__ = null), c.__e = !1;
|
|
10113
10113
|
} else s == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = aE(n.__e, e, n, i, r, s, o, l);
|
|
@@ -10195,7 +10195,7 @@ Jf = D5.slice, _e = {
|
|
|
10195
10195
|
}
|
|
10196
10196
|
}, O5 = 0, ii.prototype.setState = function(t, e) {
|
|
10197
10197
|
var n;
|
|
10198
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
10198
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Ui({}, this.state), typeof t == "function" && (t = t(Ui({}, n), this.props)), t && Ui(n, t), t != null && this.__v && (e && this.__h.push(e), rg(this));
|
|
10199
10199
|
}, ii.prototype.forceUpdate = function(t) {
|
|
10200
10200
|
this.__v && (this.__e = !0, t && this.__h.push(t), rg(this));
|
|
10201
10201
|
}, ii.prototype.render = Os, Oo = [], A5 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, dd.__r = 0;
|
|
@@ -10236,7 +10236,7 @@ function cE(t) {
|
|
|
10236
10236
|
} catch {
|
|
10237
10237
|
}
|
|
10238
10238
|
}
|
|
10239
|
-
var
|
|
10239
|
+
var Xi = {
|
|
10240
10240
|
set: fE,
|
|
10241
10241
|
get: cE
|
|
10242
10242
|
};
|
|
@@ -10345,13 +10345,13 @@ const f1 = [
|
|
|
10345
10345
|
];
|
|
10346
10346
|
let Et = null;
|
|
10347
10347
|
function gE(t) {
|
|
10348
|
-
Et || (Et =
|
|
10348
|
+
Et || (Et = Xi.get("frequently") || {});
|
|
10349
10349
|
const e = t.id || t;
|
|
10350
|
-
e && (Et[e] || (Et[e] = 0), Et[e] += 1,
|
|
10350
|
+
e && (Et[e] || (Et[e] = 0), Et[e] += 1, Xi.set("last", e), Xi.set("frequently", Et));
|
|
10351
10351
|
}
|
|
10352
10352
|
function yE({ maxFrequentRows: t, perLine: e }) {
|
|
10353
10353
|
if (!t) return [];
|
|
10354
|
-
Et || (Et =
|
|
10354
|
+
Et || (Et = Xi.get("frequently"));
|
|
10355
10355
|
let n = [];
|
|
10356
10356
|
if (!Et) {
|
|
10357
10357
|
Et = {};
|
|
@@ -10361,7 +10361,7 @@ function yE({ maxFrequentRows: t, perLine: e }) {
|
|
|
10361
10361
|
}
|
|
10362
10362
|
return n;
|
|
10363
10363
|
}
|
|
10364
|
-
const i = t * e, r =
|
|
10364
|
+
const i = t * e, r = Xi.get("last");
|
|
10365
10365
|
for (let s in Et) n.push(s);
|
|
10366
10366
|
if (n.sort((s, o) => {
|
|
10367
10367
|
const a = Et[o], l = Et[s];
|
|
@@ -10371,7 +10371,7 @@ function yE({ maxFrequentRows: t, perLine: e }) {
|
|
|
10371
10371
|
n = n.slice(0, i);
|
|
10372
10372
|
for (let o of s)
|
|
10373
10373
|
o != r && delete Et[o];
|
|
10374
|
-
r && n.indexOf(r) == -1 && (delete Et[n[n.length - 1]], n.splice(-1, 1, r)),
|
|
10374
|
+
r && n.indexOf(r) == -1 && (delete Et[n[n.length - 1]], n.splice(-1, 1, r)), Xi.set("frequently", Et);
|
|
10375
10375
|
}
|
|
10376
10376
|
return n;
|
|
10377
10377
|
}
|
|
@@ -11371,7 +11371,7 @@ const tl = {
|
|
|
11371
11371
|
class WE extends ii {
|
|
11372
11372
|
getInitialState(e = this.props) {
|
|
11373
11373
|
return {
|
|
11374
|
-
skin:
|
|
11374
|
+
skin: Xi.get("skin") || e.skin,
|
|
11375
11375
|
theme: this.initTheme(e.theme)
|
|
11376
11376
|
};
|
|
11377
11377
|
}
|
|
@@ -11653,7 +11653,7 @@ class WE extends ii {
|
|
|
11653
11653
|
this.ignoreMouse(), this.closeSkins(), this.setState({
|
|
11654
11654
|
skin: e,
|
|
11655
11655
|
tempSkin: null
|
|
11656
|
-
}),
|
|
11656
|
+
}), Xi.set("skin", e);
|
|
11657
11657
|
}
|
|
11658
11658
|
renderNav() {
|
|
11659
11659
|
return /* @__PURE__ */ K(VE, {
|
|
@@ -13276,7 +13276,7 @@ const Sg = (t) => {
|
|
|
13276
13276
|
),
|
|
13277
13277
|
children: t.map((n) => {
|
|
13278
13278
|
const i = /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
|
|
13279
|
-
|
|
13279
|
+
Mi,
|
|
13280
13280
|
{
|
|
13281
13281
|
icon: n.icon,
|
|
13282
13282
|
additionalAccesibleText: `${n.label}: ${n.description}`
|
|
@@ -13726,7 +13726,7 @@ function Xc({
|
|
|
13726
13726
|
] }) : /* @__PURE__ */ d("div", { className: "flex flex-col gap-1.5", children: n.data.map((i) => /* @__PURE__ */ d("span", { children: i }, i)) });
|
|
13727
13727
|
case "tag-list":
|
|
13728
13728
|
return e ? /* @__PURE__ */ b("div", { className: "flex flex-wrap items-center justify-center gap-1 font-medium", children: [
|
|
13729
|
-
/* @__PURE__ */ d(
|
|
13729
|
+
/* @__PURE__ */ d(Mi, { text: n.tags[0] }),
|
|
13730
13730
|
n.tags.length > 1 && /* @__PURE__ */ b("span", { className: "tabular-nums text-f1-foreground-secondary", children: [
|
|
13731
13731
|
"+",
|
|
13732
13732
|
n.tags.length - 1
|
|
@@ -13738,7 +13738,7 @@ function Xc({
|
|
|
13738
13738
|
"flex flex-col gap-1 [&>div]:w-fit",
|
|
13739
13739
|
n.tags.length > 1 && "-mt-[3px]"
|
|
13740
13740
|
),
|
|
13741
|
-
children: n.tags.map((i) => /* @__PURE__ */ d(
|
|
13741
|
+
children: n.tags.map((i) => /* @__PURE__ */ d(Mi, { text: i }, i))
|
|
13742
13742
|
}
|
|
13743
13743
|
);
|
|
13744
13744
|
case "dot-tag":
|
|
@@ -14506,7 +14506,7 @@ const Zf = (t, e) => t && t.type === "copy" ? { type: "copy", text: t.text ?? e
|
|
|
14506
14506
|
] }),
|
|
14507
14507
|
"bottomTags" in n && /* @__PURE__ */ d("div", { className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1", children: n.bottomTags.map((a, l) => /* @__PURE__ */ b(we, { children: [
|
|
14508
14508
|
/* @__PURE__ */ d(
|
|
14509
|
-
|
|
14509
|
+
Mi,
|
|
14510
14510
|
{
|
|
14511
14511
|
...a,
|
|
14512
14512
|
className: "text-f1-foreground-secondary",
|
|
@@ -14640,7 +14640,7 @@ var so = "NavigationMenu", [dp, p6, LM] = Mh(so), [g1, EM, MM] = Mh(so), [fp, aG
|
|
|
14640
14640
|
orientation: l = "horizontal",
|
|
14641
14641
|
dir: f,
|
|
14642
14642
|
...c
|
|
14643
|
-
} = t, [u, h] = A.useState(null), p = $t(e, (S) => h(S)), m = Eh(f), g = A.useRef(0), y = A.useRef(0), v = A.useRef(0), [w, x] = A.useState(!0), [k = "", C] =
|
|
14643
|
+
} = t, [u, h] = A.useState(null), p = $t(e, (S) => h(S)), m = Eh(f), g = A.useRef(0), y = A.useRef(0), v = A.useRef(0), [w, x] = A.useState(!0), [k = "", C] = ir({
|
|
14644
14644
|
prop: i,
|
|
14645
14645
|
onChange: (S) => {
|
|
14646
14646
|
const L = S !== "", D = a > 0;
|
|
@@ -14712,7 +14712,7 @@ var g6 = "NavigationMenuSub", DM = A.forwardRef(
|
|
|
14712
14712
|
defaultValue: s,
|
|
14713
14713
|
orientation: o = "horizontal",
|
|
14714
14714
|
...a
|
|
14715
|
-
} = t, l = Pn(g6, n), [f = "", c] =
|
|
14715
|
+
} = t, l = Pn(g6, n), [f = "", c] = ir({
|
|
14716
14716
|
prop: i,
|
|
14717
14717
|
onChange: r,
|
|
14718
14718
|
defaultProp: s
|
|
@@ -14766,12 +14766,12 @@ var y6 = (t) => {
|
|
|
14766
14766
|
onViewportChange: g,
|
|
14767
14767
|
indicatorTrack: w,
|
|
14768
14768
|
onIndicatorTrackChange: x,
|
|
14769
|
-
onTriggerEnter:
|
|
14770
|
-
onTriggerLeave:
|
|
14771
|
-
onContentEnter:
|
|
14772
|
-
onContentLeave:
|
|
14773
|
-
onItemSelect:
|
|
14774
|
-
onItemDismiss:
|
|
14769
|
+
onTriggerEnter: $i(c),
|
|
14770
|
+
onTriggerLeave: $i(u),
|
|
14771
|
+
onContentEnter: $i(h),
|
|
14772
|
+
onContentLeave: $i(p),
|
|
14773
|
+
onItemSelect: $i(l),
|
|
14774
|
+
onItemDismiss: $i(f),
|
|
14775
14775
|
onViewportContentChange: A.useCallback((k, C) => {
|
|
14776
14776
|
v((_) => (_.set(k, C), new Map(_)));
|
|
14777
14777
|
}, []),
|
|
@@ -15168,7 +15168,7 @@ function qM(t) {
|
|
|
15168
15168
|
};
|
|
15169
15169
|
}
|
|
15170
15170
|
function b1(t, e) {
|
|
15171
|
-
const n =
|
|
15171
|
+
const n = $i(e);
|
|
15172
15172
|
Tn(() => {
|
|
15173
15173
|
let i = 0;
|
|
15174
15174
|
if (t) {
|
|
@@ -17198,7 +17198,7 @@ var _p = "Collapsible", [OT, fG] = kf(_p), [AT, Cp] = OT(_p), B6 = A.forwardRef(
|
|
|
17198
17198
|
disabled: s,
|
|
17199
17199
|
onOpenChange: o,
|
|
17200
17200
|
...a
|
|
17201
|
-
} = t, [l = !1, f] =
|
|
17201
|
+
} = t, [l = !1, f] = ir({
|
|
17202
17202
|
prop: i,
|
|
17203
17203
|
defaultProp: r,
|
|
17204
17204
|
onChange: o
|
|
@@ -20521,7 +20521,7 @@ function KO({
|
|
|
20521
20521
|
initial: { opacity: 0 },
|
|
20522
20522
|
animate: { opacity: 1 },
|
|
20523
20523
|
exit: { opacity: 0 },
|
|
20524
|
-
children: /* @__PURE__ */ d(
|
|
20524
|
+
children: /* @__PURE__ */ d(rr, {})
|
|
20525
20525
|
}
|
|
20526
20526
|
) })
|
|
20527
20527
|
]
|
|
@@ -20551,7 +20551,7 @@ function KO({
|
|
|
20551
20551
|
initial: { opacity: 0 },
|
|
20552
20552
|
animate: { opacity: 1 },
|
|
20553
20553
|
exit: { opacity: 0 },
|
|
20554
|
-
children: /* @__PURE__ */ d(
|
|
20554
|
+
children: /* @__PURE__ */ d(rr, {})
|
|
20555
20555
|
}
|
|
20556
20556
|
) })
|
|
20557
20557
|
] }) })
|
|
@@ -21322,7 +21322,7 @@ const YO = ({
|
|
|
21322
21322
|
initial: { opacity: 0 },
|
|
21323
21323
|
animate: { opacity: 1 },
|
|
21324
21324
|
exit: { opacity: 0 },
|
|
21325
|
-
children: /* @__PURE__ */ d(
|
|
21325
|
+
children: /* @__PURE__ */ d(rr, {})
|
|
21326
21326
|
}
|
|
21327
21327
|
) }),
|
|
21328
21328
|
o.type === "grouped" && o.groups.map((S, L) => {
|
|
@@ -21727,7 +21727,7 @@ function Ml({
|
|
|
21727
21727
|
function g9({ children: t, sticky: e = !1 }) {
|
|
21728
21728
|
return /* @__PURE__ */ d(a9, { className: N(e && "sticky top-0 z-20"), children: t });
|
|
21729
21729
|
}
|
|
21730
|
-
const
|
|
21730
|
+
const Ki = j(
|
|
21731
21731
|
({ children: t, selected: e, className: n, sticky: i }, r) => /* @__PURE__ */ d(
|
|
21732
21732
|
f9,
|
|
21733
21733
|
{
|
|
@@ -21744,7 +21744,7 @@ const Ui = j(
|
|
|
21744
21744
|
}
|
|
21745
21745
|
)
|
|
21746
21746
|
);
|
|
21747
|
-
|
|
21747
|
+
Ki.displayName = "TableRow";
|
|
21748
21748
|
function sA({ children: t, loading: e = !1 }) {
|
|
21749
21749
|
const [n, i] = $(!1), [r, s] = $(!1), o = le(null);
|
|
21750
21750
|
return te(() => {
|
|
@@ -21779,7 +21779,7 @@ function sA({ children: t, loading: e = !1 }) {
|
|
|
21779
21779
|
initial: { opacity: 0 },
|
|
21780
21780
|
animate: { opacity: 1 },
|
|
21781
21781
|
exit: { opacity: 0 },
|
|
21782
|
-
children: /* @__PURE__ */ d(
|
|
21782
|
+
children: /* @__PURE__ */ d(rr, {})
|
|
21783
21783
|
}
|
|
21784
21784
|
) })
|
|
21785
21785
|
] })
|
|
@@ -21805,8 +21805,8 @@ function oA({ columns: t = 5 }) {
|
|
|
21805
21805
|
role: "presentation",
|
|
21806
21806
|
"aria-hidden": "true",
|
|
21807
21807
|
children: [
|
|
21808
|
-
/* @__PURE__ */ d(g9, { children: /* @__PURE__ */ d(
|
|
21809
|
-
/* @__PURE__ */ d(p9, { children: Array.from({ length: 5 }).map((e, n) => /* @__PURE__ */ d(
|
|
21808
|
+
/* @__PURE__ */ d(g9, { children: /* @__PURE__ */ d(Ki, { children: Array.from({ length: t }).map((e, n) => /* @__PURE__ */ d(Ml, { children: /* @__PURE__ */ d(pe, { className: "h-4 w-[80px]" }) }, `skeleton-header-${n}`)) }) }),
|
|
21809
|
+
/* @__PURE__ */ d(p9, { children: Array.from({ length: 5 }).map((e, n) => /* @__PURE__ */ d(Ki, { children: Array.from({ length: t }).map((i, r) => /* @__PURE__ */ d(Xn, { children: /* @__PURE__ */ d(pe, { className: "h-4 w-[80px]" }) }, `skeleton-cell-${n}-${r}`)) }, `skeleton-row-${n}`)) })
|
|
21810
21810
|
]
|
|
21811
21811
|
}
|
|
21812
21812
|
)
|
|
@@ -21862,7 +21862,7 @@ const y9 = (t, e, n) => {
|
|
|
21862
21862
|
dropDownOpen: k
|
|
21863
21863
|
} = r9({ source: t, item: e });
|
|
21864
21864
|
return /* @__PURE__ */ b(
|
|
21865
|
-
|
|
21865
|
+
Ki,
|
|
21866
21866
|
{
|
|
21867
21867
|
ref: f,
|
|
21868
21868
|
className: N(
|
|
@@ -22018,7 +22018,7 @@ const y9 = (t, e, n) => {
|
|
|
22018
22018
|
);
|
|
22019
22019
|
}), /* @__PURE__ */ b("div", { className: "test flex h-full min-h-0 flex-col gap-4", children: [
|
|
22020
22020
|
/* @__PURE__ */ b(Xg, { loading: v, children: [
|
|
22021
|
-
/* @__PURE__ */ d(g9, { sticky: !0, children: /* @__PURE__ */ b(
|
|
22021
|
+
/* @__PURE__ */ d(g9, { sticky: !0, children: /* @__PURE__ */ b(Ki, { children: [
|
|
22022
22022
|
e.selectable && /* @__PURE__ */ d(
|
|
22023
22023
|
Ml,
|
|
22024
22024
|
{
|
|
@@ -22078,7 +22078,7 @@ const y9 = (t, e, n) => {
|
|
|
22078
22078
|
(l == null ? void 0 : l.type) === "grouped" && l.groups.map((de, ce) => {
|
|
22079
22079
|
const Me = de.itemCount;
|
|
22080
22080
|
return /* @__PURE__ */ b(sr, { children: [
|
|
22081
|
-
/* @__PURE__ */ b(
|
|
22081
|
+
/* @__PURE__ */ b(Ki, { sticky: !0, children: [
|
|
22082
22082
|
/* @__PURE__ */ d(
|
|
22083
22083
|
Xn,
|
|
22084
22084
|
{
|
|
@@ -22148,7 +22148,7 @@ const y9 = (t, e, n) => {
|
|
|
22148
22148
|
},
|
|
22149
22149
|
`row-${ce}`
|
|
22150
22150
|
)),
|
|
22151
|
-
(f == null ? void 0 : f.type) === "infinite-scroll" && h && Array.from({ length: 5 }).map((de, ce) => /* @__PURE__ */ d(
|
|
22151
|
+
(f == null ? void 0 : f.type) === "infinite-scroll" && h && Array.from({ length: 5 }).map((de, ce) => /* @__PURE__ */ d(Ki, { children: Array.from({ length: Z }).map((Me, Pe) => /* @__PURE__ */ d(Xn, { children: /* @__PURE__ */ d(pe, { className: "h-4 w-full" }) }, `skeleton-cell-${ce}-${Pe}`)) }, `skeleton-row-${ce}`)),
|
|
22152
22152
|
Yl(f) && f.hasMore && /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ d(
|
|
22153
22153
|
"td",
|
|
22154
22154
|
{
|
|
@@ -22160,7 +22160,7 @@ const y9 = (t, e, n) => {
|
|
|
22160
22160
|
) })
|
|
22161
22161
|
] }),
|
|
22162
22162
|
L && /* @__PURE__ */ d(aA, { children: /* @__PURE__ */ b(
|
|
22163
|
-
|
|
22163
|
+
Ki,
|
|
22164
22164
|
{
|
|
22165
22165
|
className: N(
|
|
22166
22166
|
L.sticky && "sticky bottom-0 z-10 bg-f1-background shadow-[0_-1px_0_0_var(--f1-border-secondary)] hover:bg-f1-background",
|
|
@@ -23744,7 +23744,7 @@ class Xo {
|
|
|
23744
23744
|
}
|
|
23745
23745
|
}
|
|
23746
23746
|
const bA = /* @__PURE__ */ Object.create(null);
|
|
23747
|
-
let
|
|
23747
|
+
let Qi = class N1 {
|
|
23748
23748
|
/**
|
|
23749
23749
|
@internal
|
|
23750
23750
|
*/
|
|
@@ -24113,8 +24113,8 @@ let Xi = class N1 {
|
|
|
24113
24113
|
return s.type.checkAttrs(s.attrs), s;
|
|
24114
24114
|
}
|
|
24115
24115
|
};
|
|
24116
|
-
|
|
24117
|
-
class kd extends
|
|
24116
|
+
Qi.prototype.text = void 0;
|
|
24117
|
+
class kd extends Qi {
|
|
24118
24118
|
/**
|
|
24119
24119
|
@internal
|
|
24120
24120
|
*/
|
|
@@ -24620,7 +24620,7 @@ let i2 = class R9 {
|
|
|
24620
24620
|
create(e = null, n, i) {
|
|
24621
24621
|
if (this.isText)
|
|
24622
24622
|
throw new Error("NodeType.create can't construct text nodes");
|
|
24623
|
-
return new
|
|
24623
|
+
return new Qi(this, this.computeAttrs(e), G.from(n), Xe.setFrom(i));
|
|
24624
24624
|
}
|
|
24625
24625
|
/**
|
|
24626
24626
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -24628,7 +24628,7 @@ let i2 = class R9 {
|
|
|
24628
24628
|
if it doesn't match.
|
|
24629
24629
|
*/
|
|
24630
24630
|
createChecked(e = null, n, i) {
|
|
24631
|
-
return n = G.from(n), this.checkContent(n), new
|
|
24631
|
+
return n = G.from(n), this.checkContent(n), new Qi(this, this.computeAttrs(e), n, Xe.setFrom(i));
|
|
24632
24632
|
}
|
|
24633
24633
|
/**
|
|
24634
24634
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -24646,7 +24646,7 @@ let i2 = class R9 {
|
|
|
24646
24646
|
n = o.append(n);
|
|
24647
24647
|
}
|
|
24648
24648
|
let r = this.contentMatch.matchFragment(n), s = r && r.fillBefore(G.empty, !0);
|
|
24649
|
-
return s ? new
|
|
24649
|
+
return s ? new Qi(this, e, n.append(s), Xe.setFrom(i)) : null;
|
|
24650
24650
|
}
|
|
24651
24651
|
/**
|
|
24652
24652
|
Returns true if the given fragment is valid content for this node
|
|
@@ -24855,7 +24855,7 @@ class P9 {
|
|
|
24855
24855
|
bound.
|
|
24856
24856
|
*/
|
|
24857
24857
|
nodeFromJSON(e) {
|
|
24858
|
-
return
|
|
24858
|
+
return Qi.fromJSON(this, e);
|
|
24859
24859
|
}
|
|
24860
24860
|
/**
|
|
24861
24861
|
Deserialize a mark from its JSON representation. This method is
|
|
@@ -25901,7 +25901,7 @@ function Ap(t, e, n) {
|
|
|
25901
25901
|
}
|
|
25902
25902
|
return G.fromArray(i);
|
|
25903
25903
|
}
|
|
25904
|
-
class
|
|
25904
|
+
class Gi extends zt {
|
|
25905
25905
|
/**
|
|
25906
25906
|
Create a mark step.
|
|
25907
25907
|
*/
|
|
@@ -25917,10 +25917,10 @@ class Ki extends zt {
|
|
|
25917
25917
|
}
|
|
25918
25918
|
map(e) {
|
|
25919
25919
|
let n = e.mapResult(this.from, 1), i = e.mapResult(this.to, -1);
|
|
25920
|
-
return n.deleted && i.deleted || n.pos >= i.pos ? null : new
|
|
25920
|
+
return n.deleted && i.deleted || n.pos >= i.pos ? null : new Gi(n.pos, i.pos, this.mark);
|
|
25921
25921
|
}
|
|
25922
25922
|
merge(e) {
|
|
25923
|
-
return e instanceof
|
|
25923
|
+
return e instanceof Gi && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Gi(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
25924
25924
|
}
|
|
25925
25925
|
toJSON() {
|
|
25926
25926
|
return {
|
|
@@ -25936,10 +25936,10 @@ class Ki extends zt {
|
|
|
25936
25936
|
static fromJSON(e, n) {
|
|
25937
25937
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
25938
25938
|
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
25939
|
-
return new
|
|
25939
|
+
return new Gi(n.from, n.to, e.markFromJSON(n.mark));
|
|
25940
25940
|
}
|
|
25941
25941
|
}
|
|
25942
|
-
zt.jsonID("addMark",
|
|
25942
|
+
zt.jsonID("addMark", Gi);
|
|
25943
25943
|
class ni extends zt {
|
|
25944
25944
|
/**
|
|
25945
25945
|
Create a mark-removing step.
|
|
@@ -25952,7 +25952,7 @@ class ni extends zt {
|
|
|
25952
25952
|
return vt.fromReplace(e, this.from, this.to, i);
|
|
25953
25953
|
}
|
|
25954
25954
|
invert() {
|
|
25955
|
-
return new
|
|
25955
|
+
return new Gi(this.from, this.to, this.mark);
|
|
25956
25956
|
}
|
|
25957
25957
|
map(e) {
|
|
25958
25958
|
let n = e.mapResult(this.from, 1), i = e.mapResult(this.to, -1);
|
|
@@ -25979,7 +25979,7 @@ class ni extends zt {
|
|
|
25979
25979
|
}
|
|
25980
25980
|
}
|
|
25981
25981
|
zt.jsonID("removeMark", ni);
|
|
25982
|
-
class
|
|
25982
|
+
class Ji extends zt {
|
|
25983
25983
|
/**
|
|
25984
25984
|
Create a node mark step.
|
|
25985
25985
|
*/
|
|
@@ -26000,15 +26000,15 @@ class Gi extends zt {
|
|
|
26000
26000
|
if (i.length == n.marks.length) {
|
|
26001
26001
|
for (let r = 0; r < n.marks.length; r++)
|
|
26002
26002
|
if (!n.marks[r].isInSet(i))
|
|
26003
|
-
return new
|
|
26004
|
-
return new
|
|
26003
|
+
return new Ji(this.pos, n.marks[r]);
|
|
26004
|
+
return new Ji(this.pos, this.mark);
|
|
26005
26005
|
}
|
|
26006
26006
|
}
|
|
26007
26007
|
return new Is(this.pos, this.mark);
|
|
26008
26008
|
}
|
|
26009
26009
|
map(e) {
|
|
26010
26010
|
let n = e.mapResult(this.pos, 1);
|
|
26011
|
-
return n.deletedAfter ? null : new
|
|
26011
|
+
return n.deletedAfter ? null : new Ji(n.pos, this.mark);
|
|
26012
26012
|
}
|
|
26013
26013
|
toJSON() {
|
|
26014
26014
|
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -26019,10 +26019,10 @@ class Gi extends zt {
|
|
|
26019
26019
|
static fromJSON(e, n) {
|
|
26020
26020
|
if (typeof n.pos != "number")
|
|
26021
26021
|
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
26022
|
-
return new
|
|
26022
|
+
return new Ji(n.pos, e.markFromJSON(n.mark));
|
|
26023
26023
|
}
|
|
26024
26024
|
}
|
|
26025
|
-
zt.jsonID("addNodeMark",
|
|
26025
|
+
zt.jsonID("addNodeMark", Ji);
|
|
26026
26026
|
class Is extends zt {
|
|
26027
26027
|
/**
|
|
26028
26028
|
Create a mark-removing step.
|
|
@@ -26039,7 +26039,7 @@ class Is extends zt {
|
|
|
26039
26039
|
}
|
|
26040
26040
|
invert(e) {
|
|
26041
26041
|
let n = e.nodeAt(this.pos);
|
|
26042
|
-
return !n || !this.mark.isInSet(n.marks) ? this : new
|
|
26042
|
+
return !n || !this.mark.isInSet(n.marks) ? this : new Ji(this.pos, this.mark);
|
|
26043
26043
|
}
|
|
26044
26044
|
map(e) {
|
|
26045
26045
|
let n = e.mapResult(this.pos, 1);
|
|
@@ -26192,7 +26192,7 @@ function zA(t, e, n, i) {
|
|
|
26192
26192
|
let h = Math.max(f, e), p = Math.min(f + l.nodeSize, n), m = i.addToSet(u);
|
|
26193
26193
|
for (let g = 0; g < u.length; g++)
|
|
26194
26194
|
u[g].isInSet(m) || (o && o.to == h && o.mark.eq(u[g]) ? o.to = p : r.push(o = new ni(h, p, u[g])));
|
|
26195
|
-
a && a.to == h ? a.to = p : s.push(a = new
|
|
26195
|
+
a && a.to == h ? a.to = p : s.push(a = new Gi(h, p, i));
|
|
26196
26196
|
}
|
|
26197
26197
|
}), r.forEach((l) => t.step(l)), s.forEach((l) => t.step(l));
|
|
26198
26198
|
}
|
|
@@ -27003,7 +27003,7 @@ class X9 {
|
|
|
27003
27003
|
Add a mark to the node at position `pos`.
|
|
27004
27004
|
*/
|
|
27005
27005
|
addNodeMark(e, n) {
|
|
27006
|
-
return this.step(new
|
|
27006
|
+
return this.step(new Ji(e, n)), this;
|
|
27007
27007
|
}
|
|
27008
27008
|
/**
|
|
27009
27009
|
Remove a mark (or a mark of the given type) from the node at
|
|
@@ -27798,7 +27798,7 @@ class vs {
|
|
|
27798
27798
|
let r = new au(e.schema, e.plugins), s = new vs(r);
|
|
27799
27799
|
return r.fields.forEach((o) => {
|
|
27800
27800
|
if (o.name == "doc")
|
|
27801
|
-
s.doc =
|
|
27801
|
+
s.doc = Qi.fromJSON(e.schema, n.doc);
|
|
27802
27802
|
else if (o.name == "selection")
|
|
27803
27803
|
s.selection = Oe.fromJSON(s.doc, n.selection);
|
|
27804
27804
|
else if (o.name == "storedMarks")
|
|
@@ -27971,7 +27971,7 @@ function mD(t, e, n) {
|
|
|
27971
27971
|
return { node: i.startContainer, offset: Math.min(Cn(i.startContainer), i.startOffset) };
|
|
27972
27972
|
}
|
|
27973
27973
|
}
|
|
27974
|
-
const ai = typeof navigator < "u" ? navigator : null, w2 = typeof document < "u" ? document : null, yr = ai && ai.userAgent || "", A1 = /Edge\/(\d+)/.exec(yr), n8 = /MSIE \d/.exec(yr), D1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(yr), nn = !!(n8 || D1 || A1),
|
|
27974
|
+
const ai = typeof navigator < "u" ? navigator : null, w2 = typeof document < "u" ? document : null, yr = ai && ai.userAgent || "", A1 = /Edge\/(\d+)/.exec(yr), n8 = /MSIE \d/.exec(yr), D1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(yr), nn = !!(n8 || D1 || A1), er = n8 ? document.documentMode : D1 ? +D1[1] : A1 ? +A1[1] : 0, qn = !nn && /gecko\/(\d+)/i.test(yr);
|
|
27975
27975
|
qn && +(/Firefox\/(\d+)/.exec(yr) || [0, 0])[1];
|
|
27976
27976
|
const I1 = !nn && /Chrome\/(\d+)/.exec(yr), Pt = !!I1, i8 = I1 ? +I1[1] : 0, Ut = !nn && !!ai && /Apple Computer/.test(ai.vendor), Fs = Ut && (/Mobile\/\w+/.test(yr) || !!ai && ai.maxTouchPoints > 2), _n = Fs || (ai ? /Mac/.test(ai.platform) : !1), gD = ai ? /Win/.test(ai.platform) : !1, wi = /Android \d/.test(yr), Ba = !!w2 && "webkitFontSmoothing" in w2.documentElement.style, yD = Ba ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
27977
27977
|
function vD(t) {
|
|
@@ -28098,7 +28098,7 @@ function _D(t, e) {
|
|
|
28098
28098
|
let n = t.nodeValue.length, i = document.createRange();
|
|
28099
28099
|
for (let r = 0; r < n; r++) {
|
|
28100
28100
|
i.setEnd(t, r + 1), i.setStart(t, r);
|
|
28101
|
-
let s =
|
|
28101
|
+
let s = Bi(i, 1);
|
|
28102
28102
|
if (s.top != s.bottom && Pp(e, s))
|
|
28103
28103
|
return { node: t, offset: r + (e.left >= (s.left + s.right) / 2 ? 1 : 0) };
|
|
28104
28104
|
}
|
|
@@ -28177,7 +28177,7 @@ function LD(t, e) {
|
|
|
28177
28177
|
function _2(t) {
|
|
28178
28178
|
return t.top < t.bottom || t.left < t.right;
|
|
28179
28179
|
}
|
|
28180
|
-
function
|
|
28180
|
+
function Bi(t, e) {
|
|
28181
28181
|
let n = t.getClientRects();
|
|
28182
28182
|
if (n.length) {
|
|
28183
28183
|
let i = n[e < 0 ? 0 : n.length - 1];
|
|
@@ -28191,11 +28191,11 @@ function l8(t, e, n) {
|
|
|
28191
28191
|
let { node: i, offset: r, atom: s } = t.docView.domFromPos(e, n < 0 ? -1 : 1), o = Ba || qn;
|
|
28192
28192
|
if (i.nodeType == 3)
|
|
28193
28193
|
if (o && (ED.test(i.nodeValue) || (n < 0 ? !r : r == i.nodeValue.length))) {
|
|
28194
|
-
let l =
|
|
28194
|
+
let l = Bi(yi(i, r, r), n);
|
|
28195
28195
|
if (qn && r && /\s/.test(i.nodeValue[r - 1]) && r < i.nodeValue.length) {
|
|
28196
|
-
let f =
|
|
28196
|
+
let f = Bi(yi(i, r - 1, r - 1), -1);
|
|
28197
28197
|
if (f.top == l.top) {
|
|
28198
|
-
let c =
|
|
28198
|
+
let c = Bi(yi(i, r, r + 1), -1);
|
|
28199
28199
|
if (c.top != l.top)
|
|
28200
28200
|
return bo(c, c.left < f.left);
|
|
28201
28201
|
}
|
|
@@ -28203,7 +28203,7 @@ function l8(t, e, n) {
|
|
|
28203
28203
|
return l;
|
|
28204
28204
|
} else {
|
|
28205
28205
|
let l = r, f = r, c = n < 0 ? 1 : -1;
|
|
28206
|
-
return n < 0 && !r ? (f++, c = -1) : n >= 0 && r == i.nodeValue.length ? (l--, c = 1) : n < 0 ? l-- : f++, bo(
|
|
28206
|
+
return n < 0 && !r ? (f++, c = -1) : n >= 0 && r == i.nodeValue.length ? (l--, c = 1) : n < 0 ? l-- : f++, bo(Bi(yi(i, l, f), c), c < 0);
|
|
28207
28207
|
}
|
|
28208
28208
|
if (!t.state.doc.resolve(e - (s || 0)).parent.inlineContent) {
|
|
28209
28209
|
if (s == null && r && (n < 0 || r == Cn(i))) {
|
|
@@ -28221,7 +28221,7 @@ function l8(t, e, n) {
|
|
|
28221
28221
|
if (s == null && r && (n < 0 || r == Cn(i))) {
|
|
28222
28222
|
let l = i.childNodes[r - 1], f = l.nodeType == 3 ? yi(l, Cn(l) - (o ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
28223
28223
|
if (f)
|
|
28224
|
-
return bo(
|
|
28224
|
+
return bo(Bi(f, 1), !1);
|
|
28225
28225
|
}
|
|
28226
28226
|
if (s == null && r < Cn(i)) {
|
|
28227
28227
|
let l = i.childNodes[r];
|
|
@@ -28229,9 +28229,9 @@ function l8(t, e, n) {
|
|
|
28229
28229
|
l = l.nextSibling;
|
|
28230
28230
|
let f = l ? l.nodeType == 3 ? yi(l, 0, o ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
28231
28231
|
if (f)
|
|
28232
|
-
return bo(
|
|
28232
|
+
return bo(Bi(f, -1), !0);
|
|
28233
28233
|
}
|
|
28234
|
-
return bo(
|
|
28234
|
+
return bo(Bi(i.nodeType == 3 ? yi(i) : i, -n), n >= 0);
|
|
28235
28235
|
}
|
|
28236
28236
|
function bo(t, e) {
|
|
28237
28237
|
if (t.width == 0)
|
|
@@ -28742,7 +28742,7 @@ class qr extends $a {
|
|
|
28742
28742
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
28743
28743
|
}
|
|
28744
28744
|
}
|
|
28745
|
-
class
|
|
28745
|
+
class tr extends $a {
|
|
28746
28746
|
constructor(e, n, i, r, s, o, a, l, f) {
|
|
28747
28747
|
super(e, [], s, o), this.node = n, this.outerDeco = i, this.innerDeco = r, this.nodeDOM = a;
|
|
28748
28748
|
}
|
|
@@ -28770,7 +28770,7 @@ class er extends $a {
|
|
|
28770
28770
|
} else c || ({ dom: c, contentDOM: u } = es.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
28771
28771
|
!u && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
28772
28772
|
let h = c;
|
|
28773
|
-
return c = p8(c, i, n), f ? l = new ID(e, n, i, r, c, u || null, h, f, s, o + 1) : n.isText ? new sc(e, n, i, r, c, h, s) : new
|
|
28773
|
+
return c = p8(c, i, n), f ? l = new ID(e, n, i, r, c, u || null, h, f, s, o + 1) : n.isText ? new sc(e, n, i, r, c, h, s) : new tr(e, n, i, r, c, u || null, h, s, o + 1);
|
|
28774
28774
|
}
|
|
28775
28775
|
parseRule() {
|
|
28776
28776
|
if (this.node.type.spec.reparseInView)
|
|
@@ -28870,10 +28870,10 @@ class er extends $a {
|
|
|
28870
28870
|
}
|
|
28871
28871
|
function E2(t, e, n, i, r) {
|
|
28872
28872
|
p8(i, e, t);
|
|
28873
|
-
let s = new
|
|
28873
|
+
let s = new tr(void 0, t, e, n, i, i, i, r, 0);
|
|
28874
28874
|
return s.contentDOM && s.updateChildren(r, 0), s;
|
|
28875
28875
|
}
|
|
28876
|
-
class sc extends
|
|
28876
|
+
class sc extends tr {
|
|
28877
28877
|
constructor(e, n, i, r, s, o, a) {
|
|
28878
28878
|
super(e, n, i, r, s, null, o, a, 0);
|
|
28879
28879
|
}
|
|
@@ -28930,7 +28930,7 @@ class c8 extends $a {
|
|
|
28930
28930
|
return this.dom.nodeName == "IMG";
|
|
28931
28931
|
}
|
|
28932
28932
|
}
|
|
28933
|
-
class ID extends
|
|
28933
|
+
class ID extends tr {
|
|
28934
28934
|
constructor(e, n, i, r, s, o, a, l, f, c) {
|
|
28935
28935
|
super(e, n, i, r, s, o, a, f, c), this.spec = l;
|
|
28936
28936
|
}
|
|
@@ -29141,7 +29141,7 @@ class PD {
|
|
|
29141
29141
|
updateNextNode(e, n, i, r, s, o) {
|
|
29142
29142
|
for (let a = this.index; a < this.top.children.length; a++) {
|
|
29143
29143
|
let l = this.top.children[a];
|
|
29144
|
-
if (l instanceof
|
|
29144
|
+
if (l instanceof tr) {
|
|
29145
29145
|
let f = this.preMatch.matched.get(l);
|
|
29146
29146
|
if (f != null && f != s)
|
|
29147
29147
|
return !1;
|
|
@@ -29160,7 +29160,7 @@ class PD {
|
|
|
29160
29160
|
recreateWrapper(e, n, i, r, s, o) {
|
|
29161
29161
|
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !wd(i, e.outerDeco) || !r.eq(e.innerDeco))
|
|
29162
29162
|
return null;
|
|
29163
|
-
let a =
|
|
29163
|
+
let a = tr.create(this.top, n, i, r, s, o);
|
|
29164
29164
|
if (a.contentDOM) {
|
|
29165
29165
|
a.children = e.children, e.children = [];
|
|
29166
29166
|
for (let l of a.children)
|
|
@@ -29170,7 +29170,7 @@ class PD {
|
|
|
29170
29170
|
}
|
|
29171
29171
|
// Insert the node as a newly created node desc.
|
|
29172
29172
|
addNode(e, n, i, r, s) {
|
|
29173
|
-
let o =
|
|
29173
|
+
let o = tr.create(this.top, e, n, i, r, s);
|
|
29174
29174
|
o.contentDOM && o.updateChildren(r, s + 1), this.top.children.splice(this.index++, 0, o), this.changed = !0;
|
|
29175
29175
|
}
|
|
29176
29176
|
placeWidget(e, n, i) {
|
|
@@ -29414,7 +29414,7 @@ function HD(t) {
|
|
|
29414
29414
|
if (!e)
|
|
29415
29415
|
return;
|
|
29416
29416
|
let i = t.cursorWrapper.dom, r = i.nodeName == "IMG";
|
|
29417
|
-
r ? n.setStart(i.parentNode, Mt(i) + 1) : n.setStart(i, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !r && !t.state.selection.visible && nn &&
|
|
29417
|
+
r ? n.setStart(i.parentNode, Mt(i) + 1) : n.setStart(i, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !r && !t.state.selection.visible && nn && er <= 11 && (i.disabled = !0, i.disabled = !1);
|
|
29418
29418
|
}
|
|
29419
29419
|
function g8(t, e) {
|
|
29420
29420
|
if (e instanceof ke) {
|
|
@@ -29450,7 +29450,7 @@ function F1(t, e) {
|
|
|
29450
29450
|
let { $anchor: n, $head: i } = t.selection, r = e > 0 ? n.max(i) : n.min(i), s = r.parent.inlineContent ? r.depth ? t.doc.resolve(e > 0 ? r.after() : r.before()) : null : r;
|
|
29451
29451
|
return s && Oe.findFrom(s, e);
|
|
29452
29452
|
}
|
|
29453
|
-
function
|
|
29453
|
+
function zi(t, e) {
|
|
29454
29454
|
return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0;
|
|
29455
29455
|
}
|
|
29456
29456
|
function R2(t, e, n) {
|
|
@@ -29461,25 +29461,25 @@ function R2(t, e, n) {
|
|
|
29461
29461
|
if (!s || s.isText || !s.isLeaf)
|
|
29462
29462
|
return !1;
|
|
29463
29463
|
let o = t.state.doc.resolve(r.pos + s.nodeSize * (e < 0 ? -1 : 1));
|
|
29464
|
-
return
|
|
29464
|
+
return zi(t, new Ne(i.$anchor, o));
|
|
29465
29465
|
} else if (i.empty) {
|
|
29466
29466
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
29467
29467
|
let r = F1(t.state, e);
|
|
29468
|
-
return r && r instanceof ke ?
|
|
29468
|
+
return r && r instanceof ke ? zi(t, r) : !1;
|
|
29469
29469
|
} else if (!(_n && n.indexOf("m") > -1)) {
|
|
29470
29470
|
let r = i.$head, s = r.textOffset ? null : e < 0 ? r.nodeBefore : r.nodeAfter, o;
|
|
29471
29471
|
if (!s || s.isText)
|
|
29472
29472
|
return !1;
|
|
29473
29473
|
let a = e < 0 ? r.pos - s.nodeSize : r.pos;
|
|
29474
|
-
return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? ke.isSelectable(s) ?
|
|
29474
|
+
return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? ke.isSelectable(s) ? zi(t, new ke(e < 0 ? t.state.doc.resolve(r.pos - s.nodeSize) : r)) : Ba ? zi(t, new Ne(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
|
|
29475
29475
|
}
|
|
29476
29476
|
} else return !1;
|
|
29477
29477
|
else {
|
|
29478
29478
|
if (i instanceof ke && i.node.isInline)
|
|
29479
|
-
return
|
|
29479
|
+
return zi(t, new Ne(e > 0 ? i.$to : i.$from));
|
|
29480
29480
|
{
|
|
29481
29481
|
let r = F1(t.state, e);
|
|
29482
|
-
return r ?
|
|
29482
|
+
return r ? zi(t, r) : !1;
|
|
29483
29483
|
}
|
|
29484
29484
|
}
|
|
29485
29485
|
}
|
|
@@ -29632,11 +29632,11 @@ function F2(t, e, n) {
|
|
|
29632
29632
|
if (!r.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
29633
29633
|
let o = F1(t.state, e);
|
|
29634
29634
|
if (o && o instanceof ke)
|
|
29635
|
-
return
|
|
29635
|
+
return zi(t, o);
|
|
29636
29636
|
}
|
|
29637
29637
|
if (!r.parent.inlineContent) {
|
|
29638
29638
|
let o = e < 0 ? r : s, a = i instanceof tn ? Oe.near(o, e) : Oe.findFrom(o, e);
|
|
29639
|
-
return a ?
|
|
29639
|
+
return a ? zi(t, a) : !1;
|
|
29640
29640
|
}
|
|
29641
29641
|
return !1;
|
|
29642
29642
|
}
|
|
@@ -29901,7 +29901,7 @@ function oI(t) {
|
|
|
29901
29901
|
}
|
|
29902
29902
|
Ut && t.dom.addEventListener("input", () => null), z1(t);
|
|
29903
29903
|
}
|
|
29904
|
-
function
|
|
29904
|
+
function Yi(t, e) {
|
|
29905
29905
|
t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
|
|
29906
29906
|
}
|
|
29907
29907
|
function aI(t) {
|
|
@@ -29943,7 +29943,7 @@ Gt.keydown = (t, e) => {
|
|
|
29943
29943
|
t.input.lastIOSEnter = i, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
29944
29944
|
t.input.lastIOSEnter == i && (t.someProp("handleKeyDown", (r) => r(t, _r(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
29945
29945
|
}, 200);
|
|
29946
|
-
} else t.someProp("handleKeyDown", (i) => i(t, n)) || ZD(t, n) ? n.preventDefault() :
|
|
29946
|
+
} else t.someProp("handleKeyDown", (i) => i(t, n)) || ZD(t, n) ? n.preventDefault() : Yi(t, "key");
|
|
29947
29947
|
};
|
|
29948
29948
|
Gt.keyup = (t, e) => {
|
|
29949
29949
|
e.keyCode == 16 && (t.input.shiftKey = !1);
|
|
@@ -30042,7 +30042,7 @@ Kt.mousedown = (t, e) => {
|
|
|
30042
30042
|
let i = Vp(t), r = Date.now(), s = "singleClick";
|
|
30043
30043
|
r - t.input.lastClick.time < 500 && fI(n, t.input.lastClick) && !n[S8] && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: r, x: n.clientX, y: n.clientY, type: s };
|
|
30044
30044
|
let o = t.posAtCoords(oc(n));
|
|
30045
|
-
o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new yI(t, o, n, !!i)) : (s == "doubleClick" ? pI : mI)(t, o.pos, o.inside, n) ? n.preventDefault() :
|
|
30045
|
+
o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new yI(t, o, n, !!i)) : (s == "doubleClick" ? pI : mI)(t, o.pos, o.inside, n) ? n.preventDefault() : Yi(t, "pointer"));
|
|
30046
30046
|
};
|
|
30047
30047
|
class yI {
|
|
30048
30048
|
constructor(e, n, i, r) {
|
|
@@ -30064,7 +30064,7 @@ class yI {
|
|
|
30064
30064
|
setUneditable: !!(this.target && qn && !this.target.hasAttribute("contentEditable"))
|
|
30065
30065
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
30066
30066
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
30067
|
-
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)),
|
|
30067
|
+
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Yi(e, "pointer");
|
|
30068
30068
|
}
|
|
30069
30069
|
done() {
|
|
30070
30070
|
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Si(this.view)), this.view.input.mouseDown = null;
|
|
@@ -30073,7 +30073,7 @@ class yI {
|
|
|
30073
30073
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
30074
30074
|
return;
|
|
30075
30075
|
let n = this.pos;
|
|
30076
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(oc(e))), this.updateAllowDefault(e), this.allowDefault || !n ?
|
|
30076
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(oc(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Yi(this.view, "pointer") : hI(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
30077
30077
|
Ut && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
30078
30078
|
// cursor, but still report that the node is selected
|
|
30079
30079
|
// when asked through getSelection. You'll then get a
|
|
@@ -30081,20 +30081,20 @@ class yI {
|
|
|
30081
30081
|
// (hidden) cursor is doesn't change the selection, and
|
|
30082
30082
|
// thus doesn't get a reaction from ProseMirror. This
|
|
30083
30083
|
// works around that.
|
|
30084
|
-
Pt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (_s(this.view, Oe.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) :
|
|
30084
|
+
Pt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (_s(this.view, Oe.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Yi(this.view, "pointer");
|
|
30085
30085
|
}
|
|
30086
30086
|
move(e) {
|
|
30087
|
-
this.updateAllowDefault(e),
|
|
30087
|
+
this.updateAllowDefault(e), Yi(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
30088
30088
|
}
|
|
30089
30089
|
updateAllowDefault(e) {
|
|
30090
30090
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
|
|
30091
30091
|
}
|
|
30092
30092
|
}
|
|
30093
30093
|
Kt.touchstart = (t) => {
|
|
30094
|
-
t.input.lastTouch = Date.now(), Vp(t),
|
|
30094
|
+
t.input.lastTouch = Date.now(), Vp(t), Yi(t, "pointer");
|
|
30095
30095
|
};
|
|
30096
30096
|
Kt.touchmove = (t) => {
|
|
30097
|
-
t.input.lastTouch = Date.now(),
|
|
30097
|
+
t.input.lastTouch = Date.now(), Yi(t, "pointer");
|
|
30098
30098
|
};
|
|
30099
30099
|
Kt.contextmenu = (t) => Vp(t);
|
|
30100
30100
|
function N8(t, e) {
|
|
@@ -30177,7 +30177,7 @@ function wI(t, e) {
|
|
|
30177
30177
|
n.parentNode && n.parentNode.removeChild(n), t.focus();
|
|
30178
30178
|
}, 50);
|
|
30179
30179
|
}
|
|
30180
|
-
const na = nn &&
|
|
30180
|
+
const na = nn && er < 15 || Fs && yD < 604;
|
|
30181
30181
|
Kt.copy = Gt.cut = (t, e) => {
|
|
30182
30182
|
let n = e, i = t.state.selection, r = n.type == "cut";
|
|
30183
30183
|
if (i.empty)
|
|
@@ -30340,7 +30340,7 @@ class Cd {
|
|
|
30340
30340
|
this.spec.destroy && this.spec.destroy(e);
|
|
30341
30341
|
}
|
|
30342
30342
|
}
|
|
30343
|
-
class
|
|
30343
|
+
class nr {
|
|
30344
30344
|
constructor(e, n) {
|
|
30345
30345
|
this.attrs = e, this.spec = n || Ir;
|
|
30346
30346
|
}
|
|
@@ -30352,10 +30352,10 @@ class tr {
|
|
|
30352
30352
|
return n.from < n.to;
|
|
30353
30353
|
}
|
|
30354
30354
|
eq(e) {
|
|
30355
|
-
return this == e || e instanceof
|
|
30355
|
+
return this == e || e instanceof nr && ra(this.attrs, e.attrs) && ra(this.spec, e.spec);
|
|
30356
30356
|
}
|
|
30357
30357
|
static is(e) {
|
|
30358
|
-
return e.type instanceof
|
|
30358
|
+
return e.type instanceof nr;
|
|
30359
30359
|
}
|
|
30360
30360
|
destroy() {
|
|
30361
30361
|
}
|
|
@@ -30422,7 +30422,7 @@ class Ot {
|
|
|
30422
30422
|
each inline node between `from` and `to`.
|
|
30423
30423
|
*/
|
|
30424
30424
|
static inline(e, n, i, r) {
|
|
30425
|
-
return new Ot(e, n, new
|
|
30425
|
+
return new Ot(e, n, new nr(i, r));
|
|
30426
30426
|
}
|
|
30427
30427
|
/**
|
|
30428
30428
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -30443,7 +30443,7 @@ class Ot {
|
|
|
30443
30443
|
@internal
|
|
30444
30444
|
*/
|
|
30445
30445
|
get inline() {
|
|
30446
|
-
return this.type instanceof
|
|
30446
|
+
return this.type instanceof nr;
|
|
30447
30447
|
}
|
|
30448
30448
|
/**
|
|
30449
30449
|
@internal
|
|
@@ -30574,14 +30574,14 @@ class Ze {
|
|
|
30574
30574
|
let s = e + 1, o = s + n.content.size;
|
|
30575
30575
|
for (let a = 0; a < this.local.length; a++) {
|
|
30576
30576
|
let l = this.local[a];
|
|
30577
|
-
if (l.from < o && l.to > s && l.type instanceof
|
|
30577
|
+
if (l.from < o && l.to > s && l.type instanceof nr) {
|
|
30578
30578
|
let f = Math.max(s, l.from) - s, c = Math.min(o, l.to) - s;
|
|
30579
30579
|
f < c && (r || (r = [])).push(l.copy(f, c));
|
|
30580
30580
|
}
|
|
30581
30581
|
}
|
|
30582
30582
|
if (r) {
|
|
30583
30583
|
let a = new Ze(r.sort(Rr), ps);
|
|
30584
|
-
return i ? new
|
|
30584
|
+
return i ? new Wi([a, i]) : a;
|
|
30585
30585
|
}
|
|
30586
30586
|
return i || It;
|
|
30587
30587
|
}
|
|
@@ -30613,11 +30613,11 @@ class Ze {
|
|
|
30613
30613
|
localsInner(e) {
|
|
30614
30614
|
if (this == It)
|
|
30615
30615
|
return ps;
|
|
30616
|
-
if (e.inlineContent || !this.local.some(
|
|
30616
|
+
if (e.inlineContent || !this.local.some(nr.is))
|
|
30617
30617
|
return this.local;
|
|
30618
30618
|
let n = [];
|
|
30619
30619
|
for (let i = 0; i < this.local.length; i++)
|
|
30620
|
-
this.local[i].type instanceof
|
|
30620
|
+
this.local[i].type instanceof nr || n.push(this.local[i]);
|
|
30621
30621
|
return n;
|
|
30622
30622
|
}
|
|
30623
30623
|
forEachSet(e) {
|
|
@@ -30627,13 +30627,13 @@ class Ze {
|
|
|
30627
30627
|
Ze.empty = new Ze([], []);
|
|
30628
30628
|
Ze.removeOverlap = Wp;
|
|
30629
30629
|
const It = Ze.empty;
|
|
30630
|
-
class
|
|
30630
|
+
class Wi {
|
|
30631
30631
|
constructor(e) {
|
|
30632
30632
|
this.members = e;
|
|
30633
30633
|
}
|
|
30634
30634
|
map(e, n) {
|
|
30635
30635
|
const i = this.members.map((r) => r.map(e, n, Ir));
|
|
30636
|
-
return
|
|
30636
|
+
return Wi.from(i);
|
|
30637
30637
|
}
|
|
30638
30638
|
forChild(e, n) {
|
|
30639
30639
|
if (n.isLeaf)
|
|
@@ -30641,12 +30641,12 @@ class Hi {
|
|
|
30641
30641
|
let i = [];
|
|
30642
30642
|
for (let r = 0; r < this.members.length; r++) {
|
|
30643
30643
|
let s = this.members[r].forChild(e, n);
|
|
30644
|
-
s != It && (s instanceof
|
|
30644
|
+
s != It && (s instanceof Wi ? i = i.concat(s.members) : i.push(s));
|
|
30645
30645
|
}
|
|
30646
|
-
return
|
|
30646
|
+
return Wi.from(i);
|
|
30647
30647
|
}
|
|
30648
30648
|
eq(e) {
|
|
30649
|
-
if (!(e instanceof
|
|
30649
|
+
if (!(e instanceof Wi) || e.members.length != this.members.length)
|
|
30650
30650
|
return !1;
|
|
30651
30651
|
for (let n = 0; n < this.members.length; n++)
|
|
30652
30652
|
if (!this.members[n].eq(e.members[n]))
|
|
@@ -30677,7 +30677,7 @@ class Hi {
|
|
|
30677
30677
|
case 1:
|
|
30678
30678
|
return e[0];
|
|
30679
30679
|
default:
|
|
30680
|
-
return new
|
|
30680
|
+
return new Wi(e.every((n) => n instanceof Ze) ? e : e.reduce((n, i) => n.concat(i instanceof Ze ? i : i.members), []));
|
|
30681
30681
|
}
|
|
30682
30682
|
}
|
|
30683
30683
|
forEachSet(e) {
|
|
@@ -30817,7 +30817,7 @@ function uu(t) {
|
|
|
30817
30817
|
return t.someProp("decorations", (n) => {
|
|
30818
30818
|
let i = n(t.state);
|
|
30819
30819
|
i && i != It && e.push(i);
|
|
30820
|
-
}), t.cursorWrapper && e.push(Ze.create(t.state.doc, [t.cursorWrapper.deco])),
|
|
30820
|
+
}), t.cursorWrapper && e.push(Ze.create(t.state.doc, [t.cursorWrapper.deco])), Wi.from(e);
|
|
30821
30821
|
}
|
|
30822
30822
|
const NI = {
|
|
30823
30823
|
childList: !0,
|
|
@@ -30826,7 +30826,7 @@ const NI = {
|
|
|
30826
30826
|
attributes: !0,
|
|
30827
30827
|
attributeOldValue: !0,
|
|
30828
30828
|
subtree: !0
|
|
30829
|
-
}, LI = nn &&
|
|
30829
|
+
}, LI = nn && er <= 11;
|
|
30830
30830
|
class EI {
|
|
30831
30831
|
constructor() {
|
|
30832
30832
|
this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
|
|
@@ -30846,7 +30846,7 @@ class MI {
|
|
|
30846
30846
|
this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new EI(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((i) => {
|
|
30847
30847
|
for (let r = 0; r < i.length; r++)
|
|
30848
30848
|
this.queue.push(i[r]);
|
|
30849
|
-
nn &&
|
|
30849
|
+
nn && er <= 11 && i.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
30850
30850
|
}), LI && (this.onCharData = (i) => {
|
|
30851
30851
|
this.queue.push({ target: i.target, type: "characterData", oldValue: i.prevValue }), this.flushSoon();
|
|
30852
30852
|
}), this.onSelectionChange = this.onSelectionChange.bind(this);
|
|
@@ -30887,7 +30887,7 @@ class MI {
|
|
|
30887
30887
|
if (I2(this.view)) {
|
|
30888
30888
|
if (this.suppressingSelectionUpdates)
|
|
30889
30889
|
return Si(this.view);
|
|
30890
|
-
if (nn &&
|
|
30890
|
+
if (nn && er <= 11 && !this.view.state.selection.empty) {
|
|
30891
30891
|
let e = this.view.domSelectionRange();
|
|
30892
30892
|
if (e.focusNode && Wr(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
30893
30893
|
return this.flushSoon();
|
|
@@ -30965,7 +30965,7 @@ class MI {
|
|
|
30965
30965
|
if (i.contentDOM && i.contentDOM != i.dom && !i.contentDOM.contains(e.target))
|
|
30966
30966
|
return { from: i.posBefore, to: i.posAfter };
|
|
30967
30967
|
let r = e.previousSibling, s = e.nextSibling;
|
|
30968
|
-
if (nn &&
|
|
30968
|
+
if (nn && er <= 11 && e.addedNodes.length)
|
|
30969
30969
|
for (let c = 0; c < e.addedNodes.length; c++) {
|
|
30970
30970
|
let { previousSibling: u, nextSibling: h } = e.addedNodes[c];
|
|
30971
30971
|
(!u || Array.prototype.indexOf.call(e.addedNodes, u) < 0) && (r = u), (!h || Array.prototype.indexOf.call(e.addedNodes, h) < 0) && (s = h);
|
|
@@ -31093,7 +31093,7 @@ function PI(t, e, n, i, r) {
|
|
|
31093
31093
|
}
|
|
31094
31094
|
return;
|
|
31095
31095
|
}
|
|
31096
|
-
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof Ne && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= f.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= f.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), nn &&
|
|
31096
|
+
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof Ne && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= f.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= f.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), nn && er <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > f.from && f.doc.textBetween(m.start - f.from - 1, m.start - f.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
31097
31097
|
let g = f.doc.resolveNoCache(m.start - f.from), y = f.doc.resolveNoCache(m.endB - f.from), v = c.resolve(m.start), w = g.sameParent(y) && g.parent.inlineContent && v.end() >= m.endA, x;
|
|
31098
31098
|
if ((Fs && t.input.lastIOSEnter > Date.now() - 225 && (!w || r.some((S) => S.nodeName == "DIV" || S.nodeName == "P")) || !w && g.pos < f.doc.content.size && !g.sameParent(y) && (x = Oe.findFrom(f.doc.resolve(g.pos + 1), 1, !0)) && x.head == y.pos) && t.someProp("handleKeyDown", (S) => S(t, _r(13, "Enter")))) {
|
|
31099
31099
|
t.input.lastIOSEnter = 0;
|
|
@@ -31111,7 +31111,7 @@ function PI(t, e, n, i, r) {
|
|
|
31111
31111
|
let k = m.start, C = m.endA, _, M, E;
|
|
31112
31112
|
if (w) {
|
|
31113
31113
|
if (g.pos == y.pos)
|
|
31114
|
-
nn &&
|
|
31114
|
+
nn && er <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => Si(t), 20)), _ = t.state.tr.delete(k, C), M = c.resolve(m.start).marksAcross(c.resolve(m.endA));
|
|
31115
31115
|
else if (
|
|
31116
31116
|
// Adding or removing a mark
|
|
31117
31117
|
m.endA == m.endB && (E = FI(g.parent.content.cut(g.parentOffset, y.parentOffset), v.parent.content.cut(v.parentOffset, m.endA - v.start())))
|
|
@@ -33284,7 +33284,7 @@ function dl(t) {
|
|
|
33284
33284
|
return tb(n);
|
|
33285
33285
|
}
|
|
33286
33286
|
function sa(t, e, n) {
|
|
33287
|
-
if (t instanceof
|
|
33287
|
+
if (t instanceof Qi || t instanceof G)
|
|
33288
33288
|
return t;
|
|
33289
33289
|
n = {
|
|
33290
33290
|
slice: !0,
|
|
@@ -35177,7 +35177,7 @@ function cb(t, e) {
|
|
|
35177
35177
|
}
|
|
35178
35178
|
return !1;
|
|
35179
35179
|
}
|
|
35180
|
-
function
|
|
35180
|
+
function Oi(t) {
|
|
35181
35181
|
return pn(t).getComputedStyle(t);
|
|
35182
35182
|
}
|
|
35183
35183
|
function CF(t) {
|
|
@@ -35203,18 +35203,18 @@ function mc(t) {
|
|
|
35203
35203
|
}
|
|
35204
35204
|
function l3(t) {
|
|
35205
35205
|
return !Mn(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
35206
|
-
|
|
35206
|
+
Oi(t).position === "fixed" ? null : t.offsetParent;
|
|
35207
35207
|
}
|
|
35208
35208
|
function SF(t) {
|
|
35209
35209
|
var e = /firefox/i.test(q1()), n = /Trident/i.test(q1());
|
|
35210
35210
|
if (n && Mn(t)) {
|
|
35211
|
-
var i =
|
|
35211
|
+
var i = Oi(t);
|
|
35212
35212
|
if (i.position === "fixed")
|
|
35213
35213
|
return null;
|
|
35214
35214
|
}
|
|
35215
35215
|
var r = mc(t);
|
|
35216
35216
|
for (nm(r) && (r = r.host); Mn(r) && ["html", "body"].indexOf(di(r)) < 0; ) {
|
|
35217
|
-
var s =
|
|
35217
|
+
var s = Oi(r);
|
|
35218
35218
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
|
|
35219
35219
|
return r;
|
|
35220
35220
|
r = r.parentNode;
|
|
@@ -35222,9 +35222,9 @@ function SF(t) {
|
|
|
35222
35222
|
return null;
|
|
35223
35223
|
}
|
|
35224
35224
|
function Va(t) {
|
|
35225
|
-
for (var e = pn(t), n = l3(t); n && CF(n) &&
|
|
35225
|
+
for (var e = pn(t), n = l3(t); n && CF(n) && Oi(n).position === "static"; )
|
|
35226
35226
|
n = l3(n);
|
|
35227
|
-
return n && (di(n) === "html" || di(n) === "body" &&
|
|
35227
|
+
return n && (di(n) === "html" || di(n) === "body" && Oi(n).position === "static") ? e : n || SF(t) || e;
|
|
35228
35228
|
}
|
|
35229
35229
|
function rm(t) {
|
|
35230
35230
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
@@ -35305,7 +35305,7 @@ function d3(t) {
|
|
|
35305
35305
|
var v = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), x = sn, k = rn, C = window;
|
|
35306
35306
|
if (f) {
|
|
35307
35307
|
var _ = Va(n), M = "clientHeight", E = "clientWidth";
|
|
35308
|
-
if (_ === pn(n) && (_ = br(n),
|
|
35308
|
+
if (_ === pn(n) && (_ = br(n), Oi(_).position !== "static" && a === "absolute" && (M = "scrollHeight", E = "scrollWidth")), _ = _, r === rn || (r === sn || r === Dn) && s === aa) {
|
|
35309
35309
|
k = An;
|
|
35310
35310
|
var S = u && _ === C && C.visualViewport ? C.visualViewport.height : (
|
|
35311
35311
|
// $FlowFixMe[prop-missing]
|
|
@@ -35435,7 +35435,7 @@ function $F(t, e) {
|
|
|
35435
35435
|
}
|
|
35436
35436
|
function zF(t) {
|
|
35437
35437
|
var e, n = br(t), i = sm(t), r = (e = t.ownerDocument) == null ? void 0 : e.body, s = Pr(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), o = Pr(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), a = -i.scrollLeft + om(t), l = -i.scrollTop;
|
|
35438
|
-
return
|
|
35438
|
+
return Oi(r || n).direction === "rtl" && (a += Pr(n.clientWidth, r ? r.clientWidth : 0) - s), {
|
|
35439
35439
|
width: s,
|
|
35440
35440
|
height: o,
|
|
35441
35441
|
x: a,
|
|
@@ -35443,7 +35443,7 @@ function zF(t) {
|
|
|
35443
35443
|
};
|
|
35444
35444
|
}
|
|
35445
35445
|
function am(t) {
|
|
35446
|
-
var e =
|
|
35446
|
+
var e = Oi(t), n = e.overflow, i = e.overflowX, r = e.overflowY;
|
|
35447
35447
|
return /auto|scroll|overlay|hidden/.test(n + r + i);
|
|
35448
35448
|
}
|
|
35449
35449
|
function mb(t) {
|
|
@@ -35474,7 +35474,7 @@ function c3(t, e, n) {
|
|
|
35474
35474
|
return e === ab ? U1($F(t, n)) : Kr(e) ? jF(e, n) : U1(zF(br(t)));
|
|
35475
35475
|
}
|
|
35476
35476
|
function VF(t) {
|
|
35477
|
-
var e = Fo(mc(t)), n = ["absolute", "fixed"].indexOf(
|
|
35477
|
+
var e = Fo(mc(t)), n = ["absolute", "fixed"].indexOf(Oi(t).position) >= 0, i = n && Mn(t) ? Va(t) : t;
|
|
35478
35478
|
return Kr(i) ? e.filter(function(r) {
|
|
35479
35479
|
return Kr(r) && cb(r, i) && di(r) !== "body";
|
|
35480
35480
|
}) : [];
|
|
@@ -39388,7 +39388,7 @@ Qt.prototype = {
|
|
|
39388
39388
|
return r.j[t] = o, o;
|
|
39389
39389
|
}
|
|
39390
39390
|
};
|
|
39391
|
-
const Ae = (t, e, n, i, r) => t.ta(e, n, i, r), dt = (t, e, n, i, r) => t.tr(e, n, i, r), R3 = (t, e, n, i, r) => t.ts(e, n, i, r), Q = (t, e, n, i, r) => t.tt(e, n, i, r), gi = "WORD", ih = "UWORD", Fb = "ASCIINUMERICAL", Bb = "ALPHANUMERICAL", ca = "LOCALHOST", rh = "TLD", sh = "UTLD", Pl = "SCHEME", gs = "SLASH_SCHEME", wm = "NUM", oh = "WS", xm = "NL", zo = "OPENBRACE", jo = "CLOSEBRACE", Ad = "OPENBRACKET", Dd = "CLOSEBRACKET", Id = "OPENPAREN", Rd = "CLOSEPAREN", Pd = "OPENANGLEBRACKET", Fd = "CLOSEANGLEBRACKET", Bd = "FULLWIDTHLEFTPAREN", $d = "FULLWIDTHRIGHTPAREN", zd = "LEFTCORNERBRACKET", jd = "RIGHTCORNERBRACKET", Vd = "LEFTWHITECORNERBRACKET", Hd = "RIGHTWHITECORNERBRACKET", Wd = "FULLWIDTHLESSTHAN", qd = "FULLWIDTHGREATERTHAN", Ud = "AMPERSAND", _m = "APOSTROPHE", Kd = "ASTERISK",
|
|
39391
|
+
const Ae = (t, e, n, i, r) => t.ta(e, n, i, r), dt = (t, e, n, i, r) => t.tr(e, n, i, r), R3 = (t, e, n, i, r) => t.ts(e, n, i, r), Q = (t, e, n, i, r) => t.tt(e, n, i, r), gi = "WORD", ih = "UWORD", Fb = "ASCIINUMERICAL", Bb = "ALPHANUMERICAL", ca = "LOCALHOST", rh = "TLD", sh = "UTLD", Pl = "SCHEME", gs = "SLASH_SCHEME", wm = "NUM", oh = "WS", xm = "NL", zo = "OPENBRACE", jo = "CLOSEBRACE", Ad = "OPENBRACKET", Dd = "CLOSEBRACKET", Id = "OPENPAREN", Rd = "CLOSEPAREN", Pd = "OPENANGLEBRACKET", Fd = "CLOSEANGLEBRACKET", Bd = "FULLWIDTHLEFTPAREN", $d = "FULLWIDTHRIGHTPAREN", zd = "LEFTCORNERBRACKET", jd = "RIGHTCORNERBRACKET", Vd = "LEFTWHITECORNERBRACKET", Hd = "RIGHTWHITECORNERBRACKET", Wd = "FULLWIDTHLESSTHAN", qd = "FULLWIDTHGREATERTHAN", Ud = "AMPERSAND", _m = "APOSTROPHE", Kd = "ASTERISK", ji = "AT", Gd = "BACKSLASH", Jd = "BACKTICK", Yd = "CARET", qi = "COLON", Cm = "COMMA", Zd = "DOLLAR", Yn = "DOT", Xd = "EQUALS", Sm = "EXCLAMATION", kn = "HYPHEN", Vo = "PERCENT", Qd = "PIPE", ef = "PLUS", tf = "POUND", Ho = "QUERY", Nm = "QUOTE", $b = "FULLWIDTHMIDDLEDOT", Lm = "SEMI", Zn = "SLASH", Wo = "TILDE", nf = "UNDERSCORE", zb = "EMOJI", rf = "SYM";
|
|
39392
39392
|
var jb = /* @__PURE__ */ Object.freeze({
|
|
39393
39393
|
__proto__: null,
|
|
39394
39394
|
WORD: gi,
|
|
@@ -39422,11 +39422,11 @@ var jb = /* @__PURE__ */ Object.freeze({
|
|
|
39422
39422
|
AMPERSAND: Ud,
|
|
39423
39423
|
APOSTROPHE: _m,
|
|
39424
39424
|
ASTERISK: Kd,
|
|
39425
|
-
AT:
|
|
39425
|
+
AT: ji,
|
|
39426
39426
|
BACKSLASH: Gd,
|
|
39427
39427
|
BACKTICK: Jd,
|
|
39428
39428
|
CARET: Yd,
|
|
39429
|
-
COLON:
|
|
39429
|
+
COLON: qi,
|
|
39430
39430
|
COMMA: Cm,
|
|
39431
39431
|
DOLLAR: Zd,
|
|
39432
39432
|
DOT: Yn,
|
|
@@ -39454,7 +39454,7 @@ function gz(t = []) {
|
|
|
39454
39454
|
const e = {};
|
|
39455
39455
|
Qt.groups = e;
|
|
39456
39456
|
const n = new Qt();
|
|
39457
|
-
hl == null && (hl = F3(lz)), pl == null && (pl = F3(dz)), Q(n, "'", _m), Q(n, "{", zo), Q(n, "}", jo), Q(n, "[", Ad), Q(n, "]", Dd), Q(n, "(", Id), Q(n, ")", Rd), Q(n, "<", Pd), Q(n, ">", Fd), Q(n, "(", Bd), Q(n, ")", $d), Q(n, "「", zd), Q(n, "」", jd), Q(n, "『", Vd), Q(n, "』", Hd), Q(n, "<", Wd), Q(n, ">", qd), Q(n, "&", Ud), Q(n, "*", Kd), Q(n, "@",
|
|
39457
|
+
hl == null && (hl = F3(lz)), pl == null && (pl = F3(dz)), Q(n, "'", _m), Q(n, "{", zo), Q(n, "}", jo), Q(n, "[", Ad), Q(n, "]", Dd), Q(n, "(", Id), Q(n, ")", Rd), Q(n, "<", Pd), Q(n, ">", Fd), Q(n, "(", Bd), Q(n, ")", $d), Q(n, "「", zd), Q(n, "」", jd), Q(n, "『", Vd), Q(n, "』", Hd), Q(n, "<", Wd), Q(n, ">", qd), Q(n, "&", Ud), Q(n, "*", Kd), Q(n, "@", ji), Q(n, "`", Jd), Q(n, "^", Yd), Q(n, ":", qi), Q(n, ",", Cm), Q(n, "$", Zd), Q(n, ".", Yn), Q(n, "=", Xd), Q(n, "!", Sm), Q(n, "-", kn), Q(n, "%", Vo), Q(n, "|", Qd), Q(n, "+", ef), Q(n, "#", tf), Q(n, "?", Ho), Q(n, '"', Nm), Q(n, "/", Zn), Q(n, ";", Lm), Q(n, "~", Wo), Q(n, "_", nf), Q(n, "\\", Gd), Q(n, "・", $b);
|
|
39458
39458
|
const i = dt(n, pi, wm, {
|
|
39459
39459
|
[Q1]: !0
|
|
39460
39460
|
});
|
|
@@ -39487,16 +39487,16 @@ function gz(t = []) {
|
|
|
39487
39487
|
Q(h, "#"), dt(h, Eu, u);
|
|
39488
39488
|
const p = [[hi, o], [pi, r]], m = [[hi, null], [wo, a], [pi, s]];
|
|
39489
39489
|
for (let g = 0; g < hl.length; g++)
|
|
39490
|
-
|
|
39490
|
+
Pi(n, hl[g], rh, gi, p);
|
|
39491
39491
|
for (let g = 0; g < pl.length; g++)
|
|
39492
|
-
|
|
39492
|
+
Pi(n, pl[g], sh, ih, m);
|
|
39493
39493
|
Tr(rh, {
|
|
39494
39494
|
tld: !0,
|
|
39495
39495
|
ascii: !0
|
|
39496
39496
|
}, e), Tr(sh, {
|
|
39497
39497
|
utld: !0,
|
|
39498
39498
|
alpha: !0
|
|
39499
|
-
}, e),
|
|
39499
|
+
}, e), Pi(n, "file", Pl, gi, p), Pi(n, "mailto", Pl, gi, p), Pi(n, "http", gs, gi, p), Pi(n, "https", gs, gi, p), Pi(n, "ftp", gs, gi, p), Pi(n, "ftps", gs, gi, p), Tr(Pl, {
|
|
39500
39500
|
scheme: !0,
|
|
39501
39501
|
ascii: !0
|
|
39502
39502
|
}, e), Tr(gs, {
|
|
@@ -39549,7 +39549,7 @@ function yz(t) {
|
|
|
39549
39549
|
}
|
|
39550
39550
|
return e;
|
|
39551
39551
|
}
|
|
39552
|
-
function
|
|
39552
|
+
function Pi(t, e, n, i, r) {
|
|
39553
39553
|
let s;
|
|
39554
39554
|
const o = e.length;
|
|
39555
39555
|
for (let a = 0; a < o - 1; a++) {
|
|
@@ -39804,18 +39804,18 @@ const $3 = kc("email", {
|
|
|
39804
39804
|
*/
|
|
39805
39805
|
hasProtocol() {
|
|
39806
39806
|
const t = this.tk;
|
|
39807
|
-
return t.length >= 2 && t[0].t !== ca && t[1].t ===
|
|
39807
|
+
return t.length >= 2 && t[0].t !== ca && t[1].t === qi;
|
|
39808
39808
|
}
|
|
39809
39809
|
}), yn = (t) => new Qt(t);
|
|
39810
39810
|
function bz({
|
|
39811
39811
|
groups: t
|
|
39812
39812
|
}) {
|
|
39813
|
-
const e = t.domain.concat([Ud, Kd,
|
|
39813
|
+
const e = t.domain.concat([Ud, Kd, ji, Gd, Jd, Yd, Zd, Xd, kn, wm, Vo, Qd, ef, tf, Zn, rf, Wo, nf]), n = [qi, Cm, Yn, Sm, Vo, Ho, Nm, Lm, Pd, Fd, zo, jo, Dd, Ad, Id, Rd, Bd, $d, zd, jd, Vd, Hd, Wd, qd], i = [Ud, _m, Kd, Gd, Jd, Yd, Zd, Xd, kn, zo, jo, Vo, Qd, ef, tf, Ho, Zn, rf, Wo, nf], r = yn(), s = Q(r, Wo);
|
|
39814
39814
|
Ae(s, i, s), Ae(s, t.domain, s);
|
|
39815
39815
|
const o = yn(), a = yn(), l = yn();
|
|
39816
39816
|
Ae(r, t.domain, o), Ae(r, t.scheme, a), Ae(r, t.slashscheme, l), Ae(o, i, s), Ae(o, t.domain, o);
|
|
39817
|
-
const f = Q(o,
|
|
39818
|
-
Q(s,
|
|
39817
|
+
const f = Q(o, ji);
|
|
39818
|
+
Q(s, ji, f), Q(a, ji, f), Q(l, ji, f);
|
|
39819
39819
|
const c = Q(s, Yn);
|
|
39820
39820
|
Ae(c, i, s), Ae(c, t.domain, s);
|
|
39821
39821
|
const u = yn();
|
|
@@ -39826,17 +39826,17 @@ function bz({
|
|
|
39826
39826
|
Ae(h, t.tld, p), Ae(h, t.utld, p), Q(f, ca, p);
|
|
39827
39827
|
const m = Q(u, kn);
|
|
39828
39828
|
Q(m, kn, m), Ae(m, t.domain, u), Ae(p, t.domain, u), Q(p, Yn, h), Q(p, kn, m);
|
|
39829
|
-
const g = Q(p,
|
|
39829
|
+
const g = Q(p, qi);
|
|
39830
39830
|
Ae(g, t.numeric, $3);
|
|
39831
39831
|
const y = Q(o, kn), v = Q(o, Yn);
|
|
39832
39832
|
Q(y, kn, y), Ae(y, t.domain, o), Ae(v, i, s), Ae(v, t.domain, o);
|
|
39833
39833
|
const w = yn(ml);
|
|
39834
|
-
Ae(v, t.tld, w), Ae(v, t.utld, w), Ae(w, t.domain, o), Ae(w, i, s), Q(w, Yn, v), Q(w, kn, y), Q(w,
|
|
39835
|
-
const x = Q(w,
|
|
39834
|
+
Ae(v, t.tld, w), Ae(v, t.utld, w), Ae(w, t.domain, o), Ae(w, i, s), Q(w, Yn, v), Q(w, kn, y), Q(w, ji, f);
|
|
39835
|
+
const x = Q(w, qi), k = yn(ml);
|
|
39836
39836
|
Ae(x, t.numeric, k);
|
|
39837
39837
|
const C = yn(ml), _ = yn();
|
|
39838
39838
|
Ae(C, e, C), Ae(C, n, _), Ae(_, e, C), Ae(_, n, _), Q(w, Zn, C), Q(k, Zn, C);
|
|
39839
|
-
const M = Q(a,
|
|
39839
|
+
const M = Q(a, qi), E = Q(l, qi), S = Q(E, Zn), L = Q(S, Zn);
|
|
39840
39840
|
Ae(a, t.domain, o), Q(a, Yn, v), Q(a, kn, y), Ae(l, t.domain, o), Q(l, Yn, v), Q(l, kn, y), Ae(M, t.domain, C), Q(M, Zn, C), Q(M, Ho, C), Ae(L, t.domain, C), Ae(L, e, C), Q(L, Zn, C);
|
|
39841
39841
|
const D = [
|
|
39842
39842
|
[zo, jo],
|
|
@@ -40866,9 +40866,9 @@ class $n {
|
|
|
40866
40866
|
return;
|
|
40867
40867
|
}
|
|
40868
40868
|
if (r) {
|
|
40869
|
-
c.push(new
|
|
40869
|
+
c.push(new Fi(u.map));
|
|
40870
40870
|
let p = u.step.map(r.slice(s)), m;
|
|
40871
|
-
p && o.maybeStep(p).doc && (m = o.mapping.maps[o.mapping.maps.length - 1], f.push(new
|
|
40871
|
+
p && o.maybeStep(p).doc && (m = o.mapping.maps[o.mapping.maps.length - 1], f.push(new Fi(m, void 0, void 0, f.length + c.length))), s--, m && r.appendMap(m, s);
|
|
40872
40872
|
} else
|
|
40873
40873
|
o.maybeStep(u.step);
|
|
40874
40874
|
if (u.selection)
|
|
@@ -40879,7 +40879,7 @@ class $n {
|
|
|
40879
40879
|
addTransform(e, n, i, r) {
|
|
40880
40880
|
let s = [], o = this.eventCount, a = this.items, l = !r && a.length ? a.get(a.length - 1) : null;
|
|
40881
40881
|
for (let c = 0; c < e.steps.length; c++) {
|
|
40882
|
-
let u = e.steps[c].invert(e.docs[c]), h = new
|
|
40882
|
+
let u = e.steps[c].invert(e.docs[c]), h = new Fi(e.mapping.maps[c], u, n), p;
|
|
40883
40883
|
(p = l && l.merge(h)) && (h = p, c ? s.pop() : a = a.slice(0, a.length - 1)), s.push(h), n && (o++, n = void 0), r || (l = h);
|
|
40884
40884
|
}
|
|
40885
40885
|
let f = o - i.depth;
|
|
@@ -40893,7 +40893,7 @@ class $n {
|
|
|
40893
40893
|
}, e, n), i;
|
|
40894
40894
|
}
|
|
40895
40895
|
addMaps(e) {
|
|
40896
|
-
return this.eventCount == 0 ? this : new $n(this.items.append(e.map((n) => new
|
|
40896
|
+
return this.eventCount == 0 ? this : new $n(this.items.append(e.map((n) => new Fi(n))), this.eventCount);
|
|
40897
40897
|
}
|
|
40898
40898
|
// When the collab module receives remote changes, the history has
|
|
40899
40899
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -40915,13 +40915,13 @@ class $n {
|
|
|
40915
40915
|
let m = s.maps[p];
|
|
40916
40916
|
if (h.step) {
|
|
40917
40917
|
let g = e.steps[p].invert(e.docs[p]), y = h.selection && h.selection.map(s.slice(l + 1, p));
|
|
40918
|
-
y && a++, i.push(new
|
|
40918
|
+
y && a++, i.push(new Fi(m, g, y));
|
|
40919
40919
|
} else
|
|
40920
|
-
i.push(new
|
|
40920
|
+
i.push(new Fi(m));
|
|
40921
40921
|
}, r);
|
|
40922
40922
|
let f = [];
|
|
40923
40923
|
for (let h = n; h < o; h++)
|
|
40924
|
-
f.push(new
|
|
40924
|
+
f.push(new Fi(s.maps[h]));
|
|
40925
40925
|
let c = this.items.slice(0, r).append(f).append(i), u = new $n(c, a);
|
|
40926
40926
|
return u.emptyItemCount() > ej && (u = u.compress(this.items.length - i.length)), u;
|
|
40927
40927
|
}
|
|
@@ -40947,7 +40947,7 @@ class $n {
|
|
|
40947
40947
|
if (i--, f && n.appendMap(f, i), l) {
|
|
40948
40948
|
let c = o.selection && o.selection.map(n.slice(i));
|
|
40949
40949
|
c && s++;
|
|
40950
|
-
let u = new
|
|
40950
|
+
let u = new Fi(f.invert(), l, c), h, p = r.length - 1;
|
|
40951
40951
|
(h = r.length && r[p].merge(u)) ? r[p] = h : r.push(u);
|
|
40952
40952
|
}
|
|
40953
40953
|
} else o.map && i--;
|
|
@@ -40962,7 +40962,7 @@ function tj(t, e) {
|
|
|
40962
40962
|
return n = r, !1;
|
|
40963
40963
|
}), t.slice(n);
|
|
40964
40964
|
}
|
|
40965
|
-
let
|
|
40965
|
+
let Fi = class Ub {
|
|
40966
40966
|
constructor(e, n, i, r) {
|
|
40967
40967
|
this.map = e, this.step = n, this.selection = i, this.mirrorOffset = r;
|
|
40968
40968
|
}
|
|
@@ -40974,7 +40974,7 @@ let Pi = class Ub {
|
|
|
40974
40974
|
}
|
|
40975
40975
|
}
|
|
40976
40976
|
};
|
|
40977
|
-
class
|
|
40977
|
+
class Vi {
|
|
40978
40978
|
constructor(e, n, i, r, s) {
|
|
40979
40979
|
this.done = e, this.undone = n, this.prevRanges = i, this.prevTime = r, this.prevComposition = s;
|
|
40980
40980
|
}
|
|
@@ -40984,16 +40984,16 @@ function ij(t, e, n, i) {
|
|
|
40984
40984
|
let r = n.getMeta(Fr), s;
|
|
40985
40985
|
if (r)
|
|
40986
40986
|
return r.historyState;
|
|
40987
|
-
n.getMeta(oj) && (t = new
|
|
40987
|
+
n.getMeta(oj) && (t = new Vi(t.done, t.undone, null, 0, -1));
|
|
40988
40988
|
let o = n.getMeta("appendedTransaction");
|
|
40989
40989
|
if (n.steps.length == 0)
|
|
40990
40990
|
return t;
|
|
40991
40991
|
if (o && o.getMeta(Fr))
|
|
40992
|
-
return o.getMeta(Fr).redo ? new
|
|
40992
|
+
return o.getMeta(Fr).redo ? new Vi(t.done.addTransform(n, void 0, i, Fl(e)), t.undone, W3(n.mapping.maps), t.prevTime, t.prevComposition) : new Vi(t.done, t.undone.addTransform(n, void 0, i, Fl(e)), null, t.prevTime, t.prevComposition);
|
|
40993
40993
|
if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
40994
40994
|
let a = n.getMeta("composition"), l = t.prevTime == 0 || !o && t.prevComposition != a && (t.prevTime < (n.time || 0) - i.newGroupDelay || !rj(n, t.prevRanges)), f = o ? Du(t.prevRanges, n.mapping) : W3(n.mapping.maps);
|
|
40995
|
-
return new
|
|
40996
|
-
} else return (s = n.getMeta("rebased")) ? new
|
|
40995
|
+
return new Vi(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, i, Fl(e)), $n.empty, f, n.time, a ?? t.prevComposition);
|
|
40996
|
+
} else return (s = n.getMeta("rebased")) ? new Vi(t.done.rebased(n, s), t.undone.rebased(n, s), Du(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Vi(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Du(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
40997
40997
|
}
|
|
40998
40998
|
function rj(t, e) {
|
|
40999
40999
|
if (!e)
|
|
@@ -41026,7 +41026,7 @@ function sj(t, e, n) {
|
|
|
41026
41026
|
let i = Fl(e), r = Fr.get(e).spec.config, s = (n ? t.undone : t.done).popEvent(e, i);
|
|
41027
41027
|
if (!s)
|
|
41028
41028
|
return null;
|
|
41029
|
-
let o = s.selection.resolve(s.transform.doc), a = (n ? t.done : t.undone).addTransform(s.transform, e.selection.getBookmark(), r, i), l = new
|
|
41029
|
+
let o = s.selection.resolve(s.transform.doc), a = (n ? t.done : t.undone).addTransform(s.transform, e.selection.getBookmark(), r, i), l = new Vi(n ? a : s.remaining, n ? s.remaining : a, null, 0, -1);
|
|
41030
41030
|
return s.transform.setSelection(o).setMeta(Fr, { redo: n, historyState: l });
|
|
41031
41031
|
}
|
|
41032
41032
|
let Iu = !1, q3 = null;
|
|
@@ -41051,7 +41051,7 @@ function aj(t = {}) {
|
|
|
41051
41051
|
key: Fr,
|
|
41052
41052
|
state: {
|
|
41053
41053
|
init() {
|
|
41054
|
-
return new
|
|
41054
|
+
return new Vi($n.empty, $n.empty, null, 0, -1);
|
|
41055
41055
|
},
|
|
41056
41056
|
apply(e, n, i) {
|
|
41057
41057
|
return ij(n, i, e, t);
|
|
@@ -43815,7 +43815,7 @@ const i7 = (t, e, n) => Qe.create({
|
|
|
43815
43815
|
return t.forEach((n, i) => {
|
|
43816
43816
|
e.set(i, n);
|
|
43817
43817
|
}), e;
|
|
43818
|
-
},
|
|
43818
|
+
}, Di = (t, e, n) => {
|
|
43819
43819
|
let i = t.get(e);
|
|
43820
43820
|
return i === void 0 && t.set(e, i = n()), i;
|
|
43821
43821
|
}, sV = (t, e) => {
|
|
@@ -43847,7 +43847,7 @@ class r7 {
|
|
|
43847
43847
|
* @param {EVENTS[NAME]} f
|
|
43848
43848
|
*/
|
|
43849
43849
|
on(e, n) {
|
|
43850
|
-
return
|
|
43850
|
+
return Di(
|
|
43851
43851
|
this._observers,
|
|
43852
43852
|
/** @type {string} */
|
|
43853
43853
|
e,
|
|
@@ -43899,7 +43899,7 @@ class r7 {
|
|
|
43899
43899
|
this._observers = Vn();
|
|
43900
43900
|
}
|
|
43901
43901
|
}
|
|
43902
|
-
const
|
|
43902
|
+
const Ai = Math.floor, Bl = Math.abs, Us = (t, e) => t < e ? t : e, dr = (t, e) => t > e ? t : e, s7 = (t) => t !== 0 ? t < 0 : 1 / t < 0, Z3 = 1, X3 = 2, Pu = 4, Fu = 8, ha = 32, Ni = 64, Wt = 128, dV = 1 << 29, wc = 31, fh = 63, Br = 127, fV = 2147483647, o7 = Number.MAX_SAFE_INTEGER, cV = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && Ai(t) === t), uV = String.fromCharCode, hV = (t) => t.toLowerCase(), pV = /^\s*/g, mV = (t) => t.replace(pV, ""), gV = /([A-Z])/g, Q3 = (t, e) => mV(t.replace(gV, (n) => `${e}${hV(n)}`)), yV = (t) => {
|
|
43903
43903
|
const e = unescape(encodeURIComponent(t)), n = e.length, i = new Uint8Array(n);
|
|
43904
43904
|
for (let r = 0; r < n; r++)
|
|
43905
43905
|
i[r] = /** @type {number} */
|
|
@@ -43940,12 +43940,12 @@ const Wa = () => new Ha(), kV = (t) => {
|
|
|
43940
43940
|
t.cpos === n && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(n * 2), t.cpos = 0), t.cbuf[t.cpos++] = e;
|
|
43941
43941
|
}, ch = wt, Ve = (t, e) => {
|
|
43942
43942
|
for (; e > Br; )
|
|
43943
|
-
wt(t, Wt | Br & e), e =
|
|
43943
|
+
wt(t, Wt | Br & e), e = Ai(e / 128);
|
|
43944
43944
|
wt(t, Br & e);
|
|
43945
43945
|
}, Fm = (t, e) => {
|
|
43946
43946
|
const n = s7(e);
|
|
43947
|
-
for (n && (e = -e), wt(t, (e > fh ? Wt : 0) | (n ? Ni : 0) | fh & e), e =
|
|
43948
|
-
wt(t, (e > Br ? Wt : 0) | Br & e), e =
|
|
43947
|
+
for (n && (e = -e), wt(t, (e > fh ? Wt : 0) | (n ? Ni : 0) | fh & e), e = Ai(e / 64); e > 0; )
|
|
43948
|
+
wt(t, (e > Br ? Wt : 0) | Br & e), e = Ai(e / 128);
|
|
43949
43949
|
}, uh = new Uint8Array(3e4), _V = uh.length / 3, CV = (t, e) => {
|
|
43950
43950
|
if (e.length < _V) {
|
|
43951
43951
|
const n = pa.encodeInto(e, uh).written || 0;
|
|
@@ -44238,7 +44238,7 @@ class $u extends _c {
|
|
|
44238
44238
|
read() {
|
|
44239
44239
|
if (this.count === 0) {
|
|
44240
44240
|
const e = zm(this), n = e & 1;
|
|
44241
|
-
this.diff =
|
|
44241
|
+
this.diff = Ai(e / 2), this.count = 1, n && (this.count = st(this) + 2);
|
|
44242
44242
|
}
|
|
44243
44243
|
return this.s += this.diff, this.count--, this.s;
|
|
44244
44244
|
}
|
|
@@ -44258,7 +44258,7 @@ class $V {
|
|
|
44258
44258
|
return this.spos = e, n;
|
|
44259
44259
|
}
|
|
44260
44260
|
}
|
|
44261
|
-
const zV = crypto.getRandomValues.bind(crypto), jV = Math.random, d7 = () => zV(new Uint32Array(1))[0], VV = (t) => t[
|
|
44261
|
+
const zV = crypto.getRandomValues.bind(crypto), jV = Math.random, d7 = () => zV(new Uint32Array(1))[0], VV = (t) => t[Ai(jV() * t.length)], HV = "10000000-1000-4000-8000" + -1e11, WV = () => HV.replace(
|
|
44262
44262
|
/[018]/g,
|
|
44263
44263
|
/** @param {number} c */
|
|
44264
44264
|
(t) => (t ^ d7() & 15 >> t / 4).toString(16)
|
|
@@ -44369,7 +44369,7 @@ const cH = (t) => sV(t, (e, n) => `${n}:${e};`).join(""), uH = (t) => class {
|
|
|
44369
44369
|
destroy() {
|
|
44370
44370
|
t(this._);
|
|
44371
44371
|
}
|
|
44372
|
-
}, hH = uH(clearTimeout), g7 = (t, e) => new hH(setTimeout(e, t)),
|
|
44372
|
+
}, hH = uH(clearTimeout), g7 = (t, e) => new hH(setTimeout(e, t)), Ii = Symbol, y7 = Ii(), v7 = Ii(), pH = Ii(), mH = Ii(), gH = Ii(), b7 = Ii(), yH = Ii(), Hm = Ii(), vH = Ii(), bH = (t) => {
|
|
44373
44373
|
var r;
|
|
44374
44374
|
t.length === 1 && ((r = t[0]) == null ? void 0 : r.constructor) === Function && (t = /** @type {Array<string|Symbol|Object|number>} */
|
|
44375
44375
|
/** @type {[function]} */
|
|
@@ -44477,7 +44477,7 @@ const cr = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
44477
44477
|
}), CH = (t, e) => {
|
|
44478
44478
|
let n = 0, i = t.length - 1;
|
|
44479
44479
|
for (; n <= i; ) {
|
|
44480
|
-
const r =
|
|
44480
|
+
const r = Ai((n + i) / 2), s = t[r], o = s.clock;
|
|
44481
44481
|
if (o <= e) {
|
|
44482
44482
|
if (e < o + s.len)
|
|
44483
44483
|
return r;
|
|
@@ -44512,7 +44512,7 @@ const cr = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
44512
44512
|
});
|
|
44513
44513
|
return qm(e), e;
|
|
44514
44514
|
}, ga = (t, e, n, i) => {
|
|
44515
|
-
|
|
44515
|
+
Di(t.clients, e, () => (
|
|
44516
44516
|
/** @type {Array<DeleteItem>} */
|
|
44517
44517
|
[]
|
|
44518
44518
|
)).push(new Wm(n, i));
|
|
@@ -44549,7 +44549,7 @@ const cr = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
44549
44549
|
t.resetDsCurVal();
|
|
44550
44550
|
const r = st(t.restDecoder), s = st(t.restDecoder);
|
|
44551
44551
|
if (s > 0) {
|
|
44552
|
-
const o =
|
|
44552
|
+
const o = Di(e.clients, r, () => (
|
|
44553
44553
|
/** @type {Array<DeleteItem>} */
|
|
44554
44554
|
[]
|
|
44555
44555
|
));
|
|
@@ -44672,7 +44672,7 @@ class ts extends r7 {
|
|
|
44672
44672
|
/** @type {any} */
|
|
44673
44673
|
St
|
|
44674
44674
|
)) {
|
|
44675
|
-
const i =
|
|
44675
|
+
const i = Di(this.share, e, () => {
|
|
44676
44676
|
const s = new n();
|
|
44677
44677
|
return s._integrate(this, null), s;
|
|
44678
44678
|
}), r = i.constructor;
|
|
@@ -45238,7 +45238,7 @@ const OH = (t, e, n, i) => {
|
|
|
45238
45238
|
};
|
|
45239
45239
|
for (; ; ) {
|
|
45240
45240
|
if (c.constructor !== zn) {
|
|
45241
|
-
const m =
|
|
45241
|
+
const m = Di(u, c.id.client, () => pt(e, c.id.client)) - c.id.clock;
|
|
45242
45242
|
if (m < 0)
|
|
45243
45243
|
i.push(c), f(c.id.client, c.id.clock - 1), h();
|
|
45244
45244
|
else {
|
|
@@ -45441,7 +45441,7 @@ class Km {
|
|
|
45441
45441
|
}
|
|
45442
45442
|
}
|
|
45443
45443
|
const E7 = (t, e) => new Km(t, e), Vu = (t) => E7(SH(t.store), Sc(t.store)), Sr = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !co(e.ds, t.id), yh = (t, e) => {
|
|
45444
|
-
const n =
|
|
45444
|
+
const n = Di(t.meta, yh, Gr), i = t.doc.store;
|
|
45445
45445
|
n.has(e) || (e.sv.forEach((r, s) => {
|
|
45446
45446
|
r < pt(i, s) && en(t, Re(s, r));
|
|
45447
45447
|
}), cr(t, e.ds, (r) => {
|
|
@@ -45478,7 +45478,7 @@ const Sc = (t) => {
|
|
|
45478
45478
|
let n = 0, i = t.length - 1, r = t[i], s = r.id.clock;
|
|
45479
45479
|
if (s === e)
|
|
45480
45480
|
return i;
|
|
45481
|
-
let o =
|
|
45481
|
+
let o = Ai(e / (s + r.length - 1) * i);
|
|
45482
45482
|
for (; n <= i; ) {
|
|
45483
45483
|
if (r = t[o], s = r.id.clock, s <= e) {
|
|
45484
45484
|
if (e < s + r.length)
|
|
@@ -45486,7 +45486,7 @@ const Sc = (t) => {
|
|
|
45486
45486
|
n = o + 1;
|
|
45487
45487
|
} else
|
|
45488
45488
|
i = o - 1;
|
|
45489
|
-
o =
|
|
45489
|
+
o = Ai((n + i) / 2);
|
|
45490
45490
|
}
|
|
45491
45491
|
throw dn();
|
|
45492
45492
|
}, jH = (t, e) => {
|
|
@@ -45534,7 +45534,7 @@ class HH {
|
|
|
45534
45534
|
}
|
|
45535
45535
|
const hy = (t, e) => e.deleteSet.clients.size === 0 && !oV(e.afterState, (n, i) => e.beforeState.get(i) !== n) ? !1 : (qm(e.deleteSet), IH(t, e), Um(t, e.deleteSet), !0), py = (t, e, n) => {
|
|
45536
45536
|
const i = e._item;
|
|
45537
|
-
(i === null || i.id.clock < (t.beforeState.get(i.id.client) || 0) && !i.deleted) &&
|
|
45537
|
+
(i === null || i.id.clock < (t.beforeState.get(i.id.client) || 0) && !i.deleted) && Di(t.changed, e, Gr).add(n);
|
|
45538
45538
|
}, jl = (t, e) => {
|
|
45539
45539
|
let n = t[e], i = t[e - 1], r = e;
|
|
45540
45540
|
for (; r > 0; n = i, i = t[--r - 1]) {
|
|
@@ -46238,7 +46238,7 @@ const eW = (t) => {
|
|
|
46238
46238
|
}
|
|
46239
46239
|
}, Ec = (t, e, n) => {
|
|
46240
46240
|
const i = t, r = e.changedParentTypes;
|
|
46241
|
-
for (;
|
|
46241
|
+
for (; Di(r, t, () => []).push(n), t._item !== null; )
|
|
46242
46242
|
t = /** @type {AbstractType<any>} */
|
|
46243
46243
|
t._item.parent;
|
|
46244
46244
|
L7(i._eH, n, e);
|
|
@@ -47001,7 +47001,7 @@ class Js extends St {
|
|
|
47001
47001
|
e.writeTypeRef(OW);
|
|
47002
47002
|
}
|
|
47003
47003
|
}
|
|
47004
|
-
const lW = (t) => new Js(),
|
|
47004
|
+
const lW = (t) => new Js(), Zi = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && QV(t, e);
|
|
47005
47005
|
class bh {
|
|
47006
47006
|
/**
|
|
47007
47007
|
* @param {Item|null} left
|
|
@@ -47058,7 +47058,7 @@ const by = (t, e, n) => {
|
|
|
47058
47058
|
return by(t, o, n);
|
|
47059
47059
|
}
|
|
47060
47060
|
}, K7 = (t, e, n, i) => {
|
|
47061
|
-
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === bt &&
|
|
47061
|
+
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === bt && Zi(
|
|
47062
47062
|
i.get(
|
|
47063
47063
|
/** @type {ContentFormat} */
|
|
47064
47064
|
n.right.content.key
|
|
@@ -47080,7 +47080,7 @@ const by = (t, e, n) => {
|
|
|
47080
47080
|
i === null ? t.delete(n) : t.set(n, i);
|
|
47081
47081
|
}, G7 = (t, e) => {
|
|
47082
47082
|
for (; t.right !== null; ) {
|
|
47083
|
-
if (!(t.right.deleted || t.right.content.constructor === bt &&
|
|
47083
|
+
if (!(t.right.deleted || t.right.content.constructor === bt && Zi(
|
|
47084
47084
|
e[
|
|
47085
47085
|
/** @type {ContentFormat} */
|
|
47086
47086
|
t.right.content.key
|
|
@@ -47094,7 +47094,7 @@ const by = (t, e, n) => {
|
|
|
47094
47094
|
const r = t.doc, s = r.clientID, o = /* @__PURE__ */ new Map();
|
|
47095
47095
|
for (const a in i) {
|
|
47096
47096
|
const l = i[a], f = n.currentAttributes.get(a) ?? null;
|
|
47097
|
-
if (!
|
|
47097
|
+
if (!Zi(f, l)) {
|
|
47098
47098
|
o.set(a, f);
|
|
47099
47099
|
const { left: c, right: u } = n;
|
|
47100
47100
|
n.right = new tt(Re(s, pt(r.store, s)), c, c && c.lastId, u, u && u.id, e, null, new bt(a, l)), n.right.integrate(t, 0), n.forward();
|
|
@@ -47126,7 +47126,7 @@ const by = (t, e, n) => {
|
|
|
47126
47126
|
n.right.content
|
|
47127
47127
|
), c = r[l];
|
|
47128
47128
|
if (c !== void 0) {
|
|
47129
|
-
if (
|
|
47129
|
+
if (Zi(c, f))
|
|
47130
47130
|
a.delete(l);
|
|
47131
47131
|
else {
|
|
47132
47132
|
if (i === 0)
|
|
@@ -47373,16 +47373,16 @@ class uW extends Nc {
|
|
|
47373
47373
|
if (this.adds(o)) {
|
|
47374
47374
|
if (!this.deletes(o)) {
|
|
47375
47375
|
const g = r.get(p) ?? null;
|
|
47376
|
-
|
|
47376
|
+
Zi(g, m) ? m !== null && o.delete(i) : (a === "retain" && h(), Zi(m, s.get(p) ?? null) ? delete l[p] : l[p] = m);
|
|
47377
47377
|
}
|
|
47378
47378
|
} else if (this.deletes(o)) {
|
|
47379
47379
|
s.set(p, m);
|
|
47380
47380
|
const g = r.get(p) ?? null;
|
|
47381
|
-
|
|
47381
|
+
Zi(g, m) || (a === "retain" && h(), l[p] = g);
|
|
47382
47382
|
} else if (!o.deleted) {
|
|
47383
47383
|
s.set(p, m);
|
|
47384
47384
|
const g = l[p];
|
|
47385
|
-
g !== void 0 && (
|
|
47385
|
+
g !== void 0 && (Zi(g, m) ? g !== null && o.delete(i) : (a === "retain" && h(), m === null ? delete l[p] : l[p] = m));
|
|
47386
47386
|
}
|
|
47387
47387
|
o.deleted || (a === "insert" && h(), uo(
|
|
47388
47388
|
r,
|
|
@@ -50324,7 +50324,7 @@ const nk = (t, e, n, i, r, s) => {
|
|
|
50324
50324
|
const n = {};
|
|
50325
50325
|
return t.forEach((i) => {
|
|
50326
50326
|
if (i.type.name !== "ychange") {
|
|
50327
|
-
const r =
|
|
50327
|
+
const r = Di(e.isOMark, i.type, () => !i.type.excludes(i.type));
|
|
50328
50328
|
n[r ? `${i.type.name}--${eq(i.toJSON())}` : i.type.name] = i.attrs;
|
|
50329
50329
|
}
|
|
50330
50330
|
}), n;
|
|
@@ -51157,7 +51157,7 @@ const Eq = (t) => {
|
|
|
51157
51157
|
)
|
|
51158
51158
|
];
|
|
51159
51159
|
}, Tq = ({ items: t }) => t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ b(sr, { children: [
|
|
51160
|
-
e.type === "status" ? /* @__PURE__ */ d(jr, { text: e.label, variant: e.variant }) : e.type === "dot-tag" ? /* @__PURE__ */ d(Lf, { text: e.label, color: e.color }) : e.type === "text" && /* @__PURE__ */ b("div", { className: "flex flex-row gap-2", children: [
|
|
51160
|
+
e.type === "status" ? /* @__PURE__ */ d(jr, { text: e.label, variant: e.variant }) : e.type === "dot-tag" ? /* @__PURE__ */ d(Lf, { text: e.label, color: e.color }) : e.type === "tag" ? /* @__PURE__ */ d(Mi, { text: e.label, icon: e.icon }) : e.type === "text" && /* @__PURE__ */ b("div", { className: "flex flex-row gap-2", children: [
|
|
51161
51161
|
/* @__PURE__ */ d("div", { className: "flex w-fit items-center truncate text-f1-foreground-secondary", children: /* @__PURE__ */ d("span", { children: e.label }) }),
|
|
51162
51162
|
/* @__PURE__ */ d("div", { className: "flex items-center truncate font-medium text-f1-foreground", children: /* @__PURE__ */ d("span", { children: e.content }) })
|
|
51163
51163
|
] }),
|
|
@@ -51457,7 +51457,7 @@ const Eq = (t) => {
|
|
|
51457
51457
|
!e && "max-h-60"
|
|
51458
51458
|
),
|
|
51459
51459
|
children: /* @__PURE__ */ b("div", { className: "flex h-full w-full flex-row items-center justify-center gap-3 rounded-md bg-gradient-to-r from-[#f9f0dd80] to-[#d4ccfd80]", children: [
|
|
51460
|
-
/* @__PURE__ */ d(
|
|
51460
|
+
/* @__PURE__ */ d(rr, { size: "small" }),
|
|
51461
51461
|
/* @__PURE__ */ d("p", { className: "font-medium", children: t || "Loading..." })
|
|
51462
51462
|
] })
|
|
51463
51463
|
}
|
|
@@ -53968,9 +53968,9 @@ function jG({
|
|
|
53968
53968
|
),
|
|
53969
53969
|
v && w
|
|
53970
53970
|
] }) : /* @__PURE__ */ b(we, { children: [
|
|
53971
|
-
o && F && /* @__PURE__ */ d(we, { children: /* @__PURE__ */ d(
|
|
53971
|
+
o && F && /* @__PURE__ */ d(we, { children: /* @__PURE__ */ d(Mi, { text: F.name, icon: F.icon }) }),
|
|
53972
53972
|
v && w,
|
|
53973
|
-
Z && x && /* @__PURE__ */ d(
|
|
53973
|
+
Z && x && /* @__PURE__ */ d(Mi, { text: x })
|
|
53974
53974
|
] }) })
|
|
53975
53975
|
] }) });
|
|
53976
53976
|
}
|
|
@@ -54166,7 +54166,7 @@ function Lh({
|
|
|
54166
54166
|
] }),
|
|
54167
54167
|
/* @__PURE__ */ b("div", { className: "flex flex-row items-center gap-2", children: [
|
|
54168
54168
|
n && /* @__PURE__ */ d(k4, { ...n }),
|
|
54169
|
-
i && /* @__PURE__ */ d(
|
|
54169
|
+
i && /* @__PURE__ */ d(Mi, { ...i }),
|
|
54170
54170
|
!!r && /* @__PURE__ */ d(Xr, { value: r })
|
|
54171
54171
|
] })
|
|
54172
54172
|
] });
|
|
@@ -54573,7 +54573,7 @@ export {
|
|
|
54573
54573
|
yG as Sidebar,
|
|
54574
54574
|
hG as SidebarFooter,
|
|
54575
54575
|
pG as SidebarHeader,
|
|
54576
|
-
|
|
54576
|
+
rr as Spinner,
|
|
54577
54577
|
TG as Split,
|
|
54578
54578
|
MG as Stack,
|
|
54579
54579
|
FG as SummariesWidget,
|