@fileverse-dev/ddoc 2.2.8-patch-4 → 2.2.8-patch-6
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.
@@ -2,7 +2,7 @@ var joe = Object.defineProperty;
|
|
2
2
|
var Doe = (e, t, n) => t in e ? joe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
3
|
var hi = (e, t, n) => Doe(e, typeof t != "symbol" ? t + "" : t, n);
|
4
4
|
import * as L from "react";
|
5
|
-
import ke, { createContext as fn, useContext as Mt, useRef as
|
5
|
+
import ke, { createContext as fn, useContext as Mt, useRef as et, useState as Re, useDebugValue as iw, useEffect as Pe, forwardRef as hn, createElement as Ve, useCallback as Ze, useLayoutEffect as gl, memo as f2, useMemo as It, useId as M0, Children as wz, isValidElement as Fz, useInsertionEffect as S3, createRef as El, Fragment as I1, Suspense as Soe, Component as aw, cloneElement as Mz, useImperativeHandle as Cz } from "react";
|
6
6
|
import * as p2 from "react-dom";
|
7
7
|
import sw, { flushSync as Toe, createPortal as Ez } from "react-dom";
|
8
8
|
var Br = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
@@ -469,7 +469,7 @@ function Noe() {
|
|
469
469
|
}
|
470
470
|
}
|
471
471
|
var tt = b.ReactCurrentOwner, Be = b.ReactDebugCurrentFrame;
|
472
|
-
function
|
472
|
+
function rt(z) {
|
473
473
|
if (z) {
|
474
474
|
var ye = z._owner, je = J(z.type, z._source, ye ? ye.type : null);
|
475
475
|
Be.setExtraStackFrame(je);
|
@@ -497,7 +497,7 @@ Check the render method of \`` + z + "`.";
|
|
497
497
|
return "";
|
498
498
|
}
|
499
499
|
var wt = {};
|
500
|
-
function
|
500
|
+
function on(z) {
|
501
501
|
{
|
502
502
|
var ye = Rt();
|
503
503
|
if (!ye) {
|
@@ -514,12 +514,12 @@ Check the top-level render call using <` + je + ">.");
|
|
514
514
|
if (!z._store || z._store.validated || z.key != null)
|
515
515
|
return;
|
516
516
|
z._store.validated = !0;
|
517
|
-
var je =
|
517
|
+
var je = on(ye);
|
518
518
|
if (wt[je])
|
519
519
|
return;
|
520
520
|
wt[je] = !0;
|
521
521
|
var Ue = "";
|
522
|
-
z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."),
|
522
|
+
z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."), rt(z), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', je, Ue), rt(null);
|
523
523
|
}
|
524
524
|
}
|
525
525
|
function gt(z, ye) {
|
@@ -571,11 +571,11 @@ Check the top-level render call using <` + je + ">.");
|
|
571
571
|
for (var ye = Object.keys(z.props), je = 0; je < ye.length; je++) {
|
572
572
|
var Ue = ye[je];
|
573
573
|
if (Ue !== "children" && Ue !== "key") {
|
574
|
-
|
574
|
+
rt(z), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ue), rt(null);
|
575
575
|
break;
|
576
576
|
}
|
577
577
|
}
|
578
|
-
z.ref !== null && (
|
578
|
+
z.ref !== null && (rt(z), k("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
|
579
579
|
}
|
580
580
|
}
|
581
581
|
var Lr = {};
|
@@ -1173,7 +1173,7 @@ let dn = class h8 {
|
|
1173
1173
|
dn.none = [];
|
1174
1174
|
class C4 extends Error {
|
1175
1175
|
}
|
1176
|
-
class
|
1176
|
+
class Qe {
|
1177
1177
|
/**
|
1178
1178
|
Create a slice. When specifying a non-zero open depth, you must
|
1179
1179
|
make sure that there are nodes of at least that depth at the
|
@@ -1200,13 +1200,13 @@ class et {
|
|
1200
1200
|
*/
|
1201
1201
|
insertAt(t, n) {
|
1202
1202
|
let r = Sz(this.content, t + this.openStart, n);
|
1203
|
-
return r && new
|
1203
|
+
return r && new Qe(r, this.openStart, this.openEnd);
|
1204
1204
|
}
|
1205
1205
|
/**
|
1206
1206
|
@internal
|
1207
1207
|
*/
|
1208
1208
|
removeBetween(t, n) {
|
1209
|
-
return new
|
1209
|
+
return new Qe(Dz(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
|
1210
1210
|
}
|
1211
1211
|
/**
|
1212
1212
|
Tests whether this slice is equal to another slice.
|
@@ -1234,11 +1234,11 @@ class et {
|
|
1234
1234
|
*/
|
1235
1235
|
static fromJSON(t, n) {
|
1236
1236
|
if (!n)
|
1237
|
-
return
|
1237
|
+
return Qe.empty;
|
1238
1238
|
let r = n.openStart || 0, o = n.openEnd || 0;
|
1239
1239
|
if (typeof r != "number" || typeof o != "number")
|
1240
1240
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
1241
|
-
return new
|
1241
|
+
return new Qe(Oe.fromJSON(t, n.content), r, o);
|
1242
1242
|
}
|
1243
1243
|
/**
|
1244
1244
|
Create a slice from a fragment by taking the maximum possible
|
@@ -1250,10 +1250,10 @@ class et {
|
|
1250
1250
|
r++;
|
1251
1251
|
for (let i = t.lastChild; i && !i.isLeaf && (n || !i.type.spec.isolating); i = i.lastChild)
|
1252
1252
|
o++;
|
1253
|
-
return new
|
1253
|
+
return new Qe(t, r, o);
|
1254
1254
|
}
|
1255
1255
|
}
|
1256
|
-
|
1256
|
+
Qe.empty = new Qe(Oe.empty, 0, 0);
|
1257
1257
|
function Dz(e, t, n) {
|
1258
1258
|
let { index: r, offset: o } = e.findIndex(t), i = e.maybeChild(r), { index: a, offset: s } = e.findIndex(n);
|
1259
1259
|
if (o == t || i.isText) {
|
@@ -1779,9 +1779,9 @@ let Cu = class m8 {
|
|
1779
1779
|
*/
|
1780
1780
|
slice(t, n = this.content.size, r = !1) {
|
1781
1781
|
if (t == n)
|
1782
|
-
return
|
1782
|
+
return Qe.empty;
|
1783
1783
|
let o = this.resolve(t), i = this.resolve(n), a = r ? 0 : o.sharedDepth(n), s = o.start(a), u = o.node(a).content.cut(o.pos - s, i.pos - s);
|
1784
|
-
return new
|
1784
|
+
return new Qe(u, o.depth - a, i.depth - a);
|
1785
1785
|
}
|
1786
1786
|
/**
|
1787
1787
|
Replace the part of the document between the given positions with
|
@@ -2822,7 +2822,7 @@ let Eu = class b8 {
|
|
2822
2822
|
*/
|
2823
2823
|
parseSlice(t, n = {}) {
|
2824
2824
|
let r = new yj(this, n, !0);
|
2825
|
-
return r.addAll(t, dn.none, n.from, n.to),
|
2825
|
+
return r.addAll(t, dn.none, n.from, n.to), Qe.maxOpen(r.finish());
|
2826
2826
|
}
|
2827
2827
|
/**
|
2828
2828
|
@internal
|
@@ -3801,7 +3801,7 @@ class $l extends to {
|
|
3801
3801
|
super(), this.from = t, this.to = n, this.mark = r;
|
3802
3802
|
}
|
3803
3803
|
apply(t) {
|
3804
|
-
let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new
|
3804
|
+
let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new Qe(uw(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), o), n.openStart, n.openEnd);
|
3805
3805
|
return cr.fromReplace(t, this.from, this.to, i);
|
3806
3806
|
}
|
3807
3807
|
invert() {
|
@@ -3840,7 +3840,7 @@ class Ba extends to {
|
|
3840
3840
|
super(), this.from = t, this.to = n, this.mark = r;
|
3841
3841
|
}
|
3842
3842
|
apply(t) {
|
3843
|
-
let n = t.slice(this.from, this.to), r = new
|
3843
|
+
let n = t.slice(this.from, this.to), r = new Qe(uw(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
|
3844
3844
|
return cr.fromReplace(t, this.from, this.to, r);
|
3845
3845
|
}
|
3846
3846
|
invert() {
|
@@ -3883,7 +3883,7 @@ class Jl extends to {
|
|
3883
3883
|
if (!n)
|
3884
3884
|
return cr.fail("No node at mark step's position");
|
3885
3885
|
let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
|
3886
|
-
return cr.fromReplace(t, this.pos, this.pos + 1, new
|
3886
|
+
return cr.fromReplace(t, this.pos, this.pos + 1, new Qe(Oe.from(r), 0, n.isLeaf ? 0 : 1));
|
3887
3887
|
}
|
3888
3888
|
invert(t) {
|
3889
3889
|
let n = t.nodeAt(this.pos);
|
@@ -3927,7 +3927,7 @@ class qu extends to {
|
|
3927
3927
|
if (!n)
|
3928
3928
|
return cr.fail("No node at mark step's position");
|
3929
3929
|
let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
|
3930
|
-
return cr.fromReplace(t, this.pos, this.pos + 1, new
|
3930
|
+
return cr.fromReplace(t, this.pos, this.pos + 1, new Qe(Oe.from(r), 0, n.isLeaf ? 0 : 1));
|
3931
3931
|
}
|
3932
3932
|
invert(t) {
|
3933
3933
|
let n = t.nodeAt(this.pos);
|
@@ -3980,10 +3980,10 @@ class Fr extends to {
|
|
3980
3980
|
if (!(t instanceof Fr) || t.structure || this.structure)
|
3981
3981
|
return null;
|
3982
3982
|
if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
|
3983
|
-
let n = this.slice.size + t.slice.size == 0 ?
|
3983
|
+
let n = this.slice.size + t.slice.size == 0 ? Qe.empty : new Qe(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
|
3984
3984
|
return new Fr(this.from, this.to + (t.to - t.from), n, this.structure);
|
3985
3985
|
} else if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
|
3986
|
-
let n = this.slice.size + t.slice.size == 0 ?
|
3986
|
+
let n = this.slice.size + t.slice.size == 0 ? Qe.empty : new Qe(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
|
3987
3987
|
return new Fr(t.from, this.to, n, this.structure);
|
3988
3988
|
} else
|
3989
3989
|
return null;
|
@@ -3998,7 +3998,7 @@ class Fr extends to {
|
|
3998
3998
|
static fromJSON(t, n) {
|
3999
3999
|
if (typeof n.from != "number" || typeof n.to != "number")
|
4000
4000
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
4001
|
-
return new Fr(n.from, n.to,
|
4001
|
+
return new Fr(n.from, n.to, Qe.fromJSON(t, n.slice), !!n.structure);
|
4002
4002
|
}
|
4003
4003
|
}
|
4004
4004
|
to.jsonID("replace", Fr);
|
@@ -4056,7 +4056,7 @@ class Er extends to {
|
|
4056
4056
|
static fromJSON(t, n) {
|
4057
4057
|
if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
|
4058
4058
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
4059
|
-
return new Er(n.from, n.to, n.gapFrom, n.gapTo,
|
4059
|
+
return new Er(n.from, n.to, n.gapFrom, n.gapTo, Qe.fromJSON(t, n.slice), n.insert, !!n.structure);
|
4060
4060
|
}
|
4061
4061
|
}
|
4062
4062
|
to.jsonID("replaceAround", Er);
|
@@ -4118,7 +4118,7 @@ function cw(e, t, n, r = n.contentMatch, o = !0) {
|
|
4118
4118
|
for (let l = 0; l < i.childCount; l++) {
|
4119
4119
|
let u = i.child(l), c = s + u.nodeSize, d = r.matchType(u.type);
|
4120
4120
|
if (!d)
|
4121
|
-
a.push(new Fr(s, c,
|
4121
|
+
a.push(new Fr(s, c, Qe.empty));
|
4122
4122
|
else {
|
4123
4123
|
r = d;
|
4124
4124
|
for (let f = 0; f < u.marks.length; f++)
|
@@ -4126,14 +4126,14 @@ function cw(e, t, n, r = n.contentMatch, o = !0) {
|
|
4126
4126
|
if (o && u.isText && n.whitespace != "pre") {
|
4127
4127
|
let f, p = /\r?\n|\r/g, h;
|
4128
4128
|
for (; f = p.exec(u.text); )
|
4129
|
-
h || (h = new
|
4129
|
+
h || (h = new Qe(Oe.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), a.push(new Fr(s + f.index, s + f.index + f[0].length, h));
|
4130
4130
|
}
|
4131
4131
|
}
|
4132
4132
|
s = c;
|
4133
4133
|
}
|
4134
4134
|
if (!r.validEnd) {
|
4135
4135
|
let l = r.fillBefore(Oe.empty, !0);
|
4136
|
-
e.replace(s, s, new
|
4136
|
+
e.replace(s, s, new Qe(l, 0, 0));
|
4137
4137
|
}
|
4138
4138
|
for (let l = a.length - 1; l >= 0; l--)
|
4139
4139
|
e.step(a[l]);
|
@@ -4159,7 +4159,7 @@ function uie(e, t, n) {
|
|
4159
4159
|
let f = Oe.empty, p = 0;
|
4160
4160
|
for (let h = i, g = !1; h > n; h--)
|
4161
4161
|
g || o.after(h + 1) < o.end(h) ? (g = !0, f = Oe.from(o.node(h).copy(f)), p++) : u++;
|
4162
|
-
e.step(new Er(l, u, a, s, new
|
4162
|
+
e.step(new Er(l, u, a, s, new Qe(c.append(f), d, p), c.size - d, !0));
|
4163
4163
|
}
|
4164
4164
|
function dw(e, t, n = null, r = e) {
|
4165
4165
|
let o = cie(e, t), i = o && die(r, t);
|
@@ -4195,7 +4195,7 @@ function fie(e, t, n) {
|
|
4195
4195
|
r = Oe.from(n[a].type.create(n[a].attrs, r));
|
4196
4196
|
}
|
4197
4197
|
let o = t.start, i = t.end;
|
4198
|
-
e.step(new Er(o, i, o, i, new
|
4198
|
+
e.step(new Er(o, i, o, i, new Qe(r, 0, 0), n.length, !0));
|
4199
4199
|
}
|
4200
4200
|
function pie(e, t, n, r, o) {
|
4201
4201
|
if (!r.isTextblock)
|
@@ -4211,7 +4211,7 @@ function pie(e, t, n, r, o) {
|
|
4211
4211
|
}
|
4212
4212
|
u === !1 && $z(e, a, s, i), cw(e, e.mapping.slice(i).map(s, 1), r, void 0, u === null);
|
4213
4213
|
let c = e.mapping.slice(i), d = c.map(s, 1), f = c.map(s + a.nodeSize, 1);
|
4214
|
-
return e.step(new Er(d, f, d + 1, f - 1, new
|
4214
|
+
return e.step(new Er(d, f, d + 1, f - 1, new Qe(Oe.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), u === !0 && Yz(e, a, s, i), !1;
|
4215
4215
|
}
|
4216
4216
|
});
|
4217
4217
|
}
|
@@ -4249,7 +4249,7 @@ function gie(e, t, n, r, o) {
|
|
4249
4249
|
return e.replaceWith(t, t + i.nodeSize, a);
|
4250
4250
|
if (!n.validContent(i.content))
|
4251
4251
|
throw new RangeError("Invalid content for node type " + n.name);
|
4252
|
-
e.step(new Er(t, t + i.nodeSize, t + 1, t + i.nodeSize - 1, new
|
4252
|
+
e.step(new Er(t, t + i.nodeSize, t + 1, t + i.nodeSize - 1, new Qe(Oe.from(a), 0, 0), 1, !0));
|
4253
4253
|
}
|
4254
4254
|
function Vs(e, t, n = 1, r) {
|
4255
4255
|
let o = e.resolve(t), i = o.depth - n, a = r && r[r.length - 1] || o.parent;
|
@@ -4275,7 +4275,7 @@ function mie(e, t, n = 1, r) {
|
|
4275
4275
|
let c = r && r[u];
|
4276
4276
|
a = Oe.from(c ? c.type.create(c.attrs, a) : o.node(s).copy(a));
|
4277
4277
|
}
|
4278
|
-
e.step(new Fr(t, t, new
|
4278
|
+
e.step(new Fr(t, t, new Qe(i.append(a), n, n), !0));
|
4279
4279
|
}
|
4280
4280
|
function R1(e, t) {
|
4281
4281
|
let n = e.resolve(t), r = n.index();
|
@@ -4318,7 +4318,7 @@ function bie(e, t, n) {
|
|
4318
4318
|
}
|
4319
4319
|
a.inlineContent && cw(e, t + n - 1, a, i.node().contentMatchAt(i.index()), r == null);
|
4320
4320
|
let l = e.mapping.slice(s), u = l.map(t - n);
|
4321
|
-
if (e.step(new Fr(u, l.map(t + n, -1),
|
4321
|
+
if (e.step(new Fr(u, l.map(t + n, -1), Qe.empty, !0)), r === !0) {
|
4322
4322
|
let c = e.doc.resolve(u);
|
4323
4323
|
Yz(e, c.node(), c.before(), e.steps.length);
|
4324
4324
|
}
|
@@ -4367,7 +4367,7 @@ function Qz(e, t, n) {
|
|
4367
4367
|
}
|
4368
4368
|
return null;
|
4369
4369
|
}
|
4370
|
-
function N3(e, t, n = t, r =
|
4370
|
+
function N3(e, t, n = t, r = Qe.empty) {
|
4371
4371
|
if (t == n && !r.size)
|
4372
4372
|
return null;
|
4373
4373
|
let o = e.resolve(t), i = e.resolve(n);
|
@@ -4403,7 +4403,7 @@ class vie {
|
|
4403
4403
|
let i = this.placed, a = r.depth, s = o.depth;
|
4404
4404
|
for (; a && s && i.childCount == 1; )
|
4405
4405
|
i = i.firstChild.content, a--, s--;
|
4406
|
-
let l = new
|
4406
|
+
let l = new Qe(i, a, s);
|
4407
4407
|
return t > -1 ? new Er(r.pos, t, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new Fr(r.pos, o.pos, l) : null;
|
4408
4408
|
}
|
4409
4409
|
// Find a position on the start spine of `this.unplaced` that has
|
@@ -4437,15 +4437,15 @@ class vie {
|
|
4437
4437
|
}
|
4438
4438
|
openMore() {
|
4439
4439
|
let { content: t, openStart: n, openEnd: r } = this.unplaced, o = J6(t, n);
|
4440
|
-
return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new
|
4440
|
+
return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new Qe(t, n + 1, Math.max(r, o.size + n >= t.size - r ? n + 1 : 0)), !0);
|
4441
4441
|
}
|
4442
4442
|
dropNode() {
|
4443
4443
|
let { content: t, openStart: n, openEnd: r } = this.unplaced, o = J6(t, n);
|
4444
4444
|
if (o.childCount <= 1 && n > 0) {
|
4445
4445
|
let i = t.size - n <= n + o.size;
|
4446
|
-
this.unplaced = new
|
4446
|
+
this.unplaced = new Qe(Tf(t, n - 1, 1), n - 1, i ? n - 1 : r);
|
4447
4447
|
} else
|
4448
|
-
this.unplaced = new
|
4448
|
+
this.unplaced = new Qe(Tf(t, n, 1), n, r);
|
4449
4449
|
}
|
4450
4450
|
// Move content from the unplaced slice at `sliceDepth` to the
|
4451
4451
|
// frontier node at `frontierDepth`. Close that frontier node when
|
@@ -4475,7 +4475,7 @@ class vie {
|
|
4475
4475
|
let b = m.lastChild;
|
4476
4476
|
this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), m = b.content;
|
4477
4477
|
}
|
4478
|
-
this.unplaced = h ? t == 0 ?
|
4478
|
+
this.unplaced = h ? t == 0 ? Qe.empty : new Qe(Tf(a.content, t - 1, 1), t - 1, p < 0 ? a.openEnd : t - 1) : new Qe(Tf(a.content, t, u), a.openStart, a.openEnd);
|
4479
4479
|
}
|
4480
4480
|
mustMoveInline() {
|
4481
4481
|
if (!this.$to.parent.isTextblock)
|
@@ -4594,7 +4594,7 @@ function Fie(e, t, n, r) {
|
|
4594
4594
|
m < 0 && (b = !1, m = -m);
|
4595
4595
|
let k = o.node(m - 1), v = o.index(m - 1);
|
4596
4596
|
if (k.canReplaceWith(v, v, h.type, h.marks))
|
4597
|
-
return e.replace(o.before(m), b ? i.after(m) : n, new
|
4597
|
+
return e.replace(o.before(m), b ? i.after(m) : n, new Qe(t_(r.content, 0, r.openStart, p), p, r.openEnd));
|
4598
4598
|
}
|
4599
4599
|
}
|
4600
4600
|
let d = e.steps.length;
|
@@ -4619,7 +4619,7 @@ function Mie(e, t, n, r) {
|
|
4619
4619
|
let o = xie(e.doc, t, r.type);
|
4620
4620
|
o != null && (t = n = o);
|
4621
4621
|
}
|
4622
|
-
e.replaceRange(t, n, new
|
4622
|
+
e.replaceRange(t, n, new Qe(Oe.from(r), 0, 0));
|
4623
4623
|
}
|
4624
4624
|
function Cie(e, t, n) {
|
4625
4625
|
let r = e.doc.resolve(t), o = e.doc.resolve(n), i = n_(r, o);
|
@@ -4661,7 +4661,7 @@ class xd extends to {
|
|
4661
4661
|
r[i] = n.attrs[i];
|
4662
4662
|
r[this.attr] = this.value;
|
4663
4663
|
let o = n.type.create(r, null, n.marks);
|
4664
|
-
return cr.fromReplace(t, this.pos, this.pos + 1, new
|
4664
|
+
return cr.fromReplace(t, this.pos, this.pos + 1, new Qe(Oe.from(o), 0, n.isLeaf ? 0 : 1));
|
4665
4665
|
}
|
4666
4666
|
getMap() {
|
4667
4667
|
return $o.empty;
|
@@ -4774,7 +4774,7 @@ class fw {
|
|
4774
4774
|
Replace the part of the document between `from` and `to` with the
|
4775
4775
|
given `slice`.
|
4776
4776
|
*/
|
4777
|
-
replace(t, n = t, r =
|
4777
|
+
replace(t, n = t, r = Qe.empty) {
|
4778
4778
|
let o = N3(this.doc, t, n, r);
|
4779
4779
|
return o && this.step(o), this;
|
4780
4780
|
}
|
@@ -4783,13 +4783,13 @@ class fw {
|
|
4783
4783
|
fragment, node, or array of nodes.
|
4784
4784
|
*/
|
4785
4785
|
replaceWith(t, n, r) {
|
4786
|
-
return this.replace(t, n, new
|
4786
|
+
return this.replace(t, n, new Qe(Oe.from(r), 0, 0));
|
4787
4787
|
}
|
4788
4788
|
/**
|
4789
4789
|
Delete the content between the given positions.
|
4790
4790
|
*/
|
4791
4791
|
delete(t, n) {
|
4792
|
-
return this.replace(t, n,
|
4792
|
+
return this.replace(t, n, Qe.empty);
|
4793
4793
|
}
|
4794
4794
|
/**
|
4795
4795
|
Insert the given content at the given position.
|
@@ -5017,14 +5017,14 @@ class jt {
|
|
5017
5017
|
Replace the selection with a slice or, if no slice is given,
|
5018
5018
|
delete the selection. Will append to the given transaction.
|
5019
5019
|
*/
|
5020
|
-
replace(t, n =
|
5020
|
+
replace(t, n = Qe.empty) {
|
5021
5021
|
let r = n.content.lastChild, o = null;
|
5022
5022
|
for (let s = 0; s < n.openEnd; s++)
|
5023
5023
|
o = r, r = r.lastChild;
|
5024
5024
|
let i = t.steps.length, a = this.ranges;
|
5025
5025
|
for (let s = 0; s < a.length; s++) {
|
5026
5026
|
let { $from: l, $to: u } = a[s], c = t.mapping.slice(i);
|
5027
|
-
t.replaceRange(c.map(l.pos), c.map(u.pos), s ?
|
5027
|
+
t.replaceRange(c.map(l.pos), c.map(u.pos), s ? Qe.empty : n), s == 0 && Ej(t, i, (r ? r.isInline : o && o.isTextblock) ? -1 : 1);
|
5028
5028
|
}
|
5029
5029
|
}
|
5030
5030
|
/**
|
@@ -5150,8 +5150,8 @@ class ft extends jt {
|
|
5150
5150
|
let o = t.resolve(n.map(this.anchor));
|
5151
5151
|
return new ft(o.parent.inlineContent ? o : r, r);
|
5152
5152
|
}
|
5153
|
-
replace(t, n =
|
5154
|
-
if (super.replace(t, n), n ==
|
5153
|
+
replace(t, n = Qe.empty) {
|
5154
|
+
if (super.replace(t, n), n == Qe.empty) {
|
5155
5155
|
let r = this.$from.marksAcross(this.$to);
|
5156
5156
|
r && t.ensureMarks(r);
|
5157
5157
|
}
|
@@ -5226,7 +5226,7 @@ class bt extends jt {
|
|
5226
5226
|
return r ? jt.near(i) : new bt(i);
|
5227
5227
|
}
|
5228
5228
|
content() {
|
5229
|
-
return new
|
5229
|
+
return new Qe(Oe.from(this.node), 0, 0);
|
5230
5230
|
}
|
5231
5231
|
eq(t) {
|
5232
5232
|
return t instanceof bt && t.anchor == this.anchor;
|
@@ -5281,8 +5281,8 @@ class ti extends jt {
|
|
5281
5281
|
constructor(t) {
|
5282
5282
|
super(t.resolve(0), t.resolve(t.content.size));
|
5283
5283
|
}
|
5284
|
-
replace(t, n =
|
5285
|
-
if (n ==
|
5284
|
+
replace(t, n = Qe.empty) {
|
5285
|
+
if (n == Qe.empty) {
|
5286
5286
|
t.delete(0, t.doc.content.size);
|
5287
5287
|
let r = jt.atStart(t.doc);
|
5288
5288
|
r.eq(t.selection) || t.setSelection(r);
|
@@ -5721,7 +5721,7 @@ function r_(e, t, n) {
|
|
5721
5721
|
}
|
5722
5722
|
return n;
|
5723
5723
|
}
|
5724
|
-
class
|
5724
|
+
class Qt {
|
5725
5725
|
/**
|
5726
5726
|
Create a plugin.
|
5727
5727
|
*/
|
@@ -5739,7 +5739,7 @@ const t5 = /* @__PURE__ */ Object.create(null);
|
|
5739
5739
|
function o_(e) {
|
5740
5740
|
return e in t5 ? e + "$" + ++t5[e] : (t5[e] = 0, e + "$");
|
5741
5741
|
}
|
5742
|
-
class
|
5742
|
+
class rn {
|
5743
5743
|
/**
|
5744
5744
|
Create a plugin key.
|
5745
5745
|
*/
|
@@ -7632,8 +7632,8 @@ function w_(e, t, n, r, o) {
|
|
7632
7632
|
if (e.someProp("transformPastedText", (f) => {
|
7633
7633
|
t = f(t, i || r, e);
|
7634
7634
|
}), i)
|
7635
|
-
return t ? new
|
7636
|
-
`))), 0, 0) :
|
7635
|
+
return t ? new Qe(Oe.from(e.state.schema.text(t.replace(/\r\n?/g, `
|
7636
|
+
`))), 0, 0) : Qe.empty;
|
7637
7637
|
let d = e.someProp("clipboardTextParser", (f) => f(t, o, r, e));
|
7638
7638
|
if (d)
|
7639
7639
|
s = d;
|
@@ -7666,7 +7666,7 @@ function w_(e, t, n, r, o) {
|
|
7666
7666
|
}
|
7667
7667
|
})), c)
|
7668
7668
|
s = Fae(Jj(s, +c[1], +c[2]), c[4]);
|
7669
|
-
else if (s =
|
7669
|
+
else if (s = Qe.maxOpen(xae(s.content, o), !0), s.openStart || s.openEnd) {
|
7670
7670
|
let d = 0, f = 0;
|
7671
7671
|
for (let p = s.content.firstChild; d < s.openStart && !p.type.spec.isolating; d++, p = p.firstChild)
|
7672
7672
|
;
|
@@ -7727,7 +7727,7 @@ function S8(e, t, n, r, o, i) {
|
|
7727
7727
|
return e.childCount > 1 && (i = 0), o < r - 1 && (s = S8(s, t, n, r, o + 1, i)), o >= n && (s = t < 0 ? a.contentMatchAt(0).fillBefore(s, i <= o).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(Oe.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, a.copy(s));
|
7728
7728
|
}
|
7729
7729
|
function Jj(e, t, n) {
|
7730
|
-
return t < e.openStart && (e = new
|
7730
|
+
return t < e.openStart && (e = new Qe(S8(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new Qe(S8(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
|
7731
7731
|
}
|
7732
7732
|
const E_ = {
|
7733
7733
|
thead: ["table"],
|
@@ -7781,7 +7781,7 @@ function Fae(e, t) {
|
|
7781
7781
|
break;
|
7782
7782
|
o = Oe.from(l.create(r[s + 1], o)), i++, a++;
|
7783
7783
|
}
|
7784
|
-
return new
|
7784
|
+
return new Qe(o, i, a);
|
7785
7785
|
}
|
7786
7786
|
const go = {}, mo = {}, Mae = { touchstart: !0, touchmove: !0 };
|
7787
7787
|
class Cae {
|
@@ -8097,7 +8097,7 @@ function Vae(e, t) {
|
|
8097
8097
|
}
|
8098
8098
|
function Tp(e, t, n, r, o) {
|
8099
8099
|
let i = w_(e, t, n, r, e.state.selection.$from);
|
8100
|
-
if (e.someProp("handlePaste", (l) => l(e, o, i ||
|
8100
|
+
if (e.someProp("handlePaste", (l) => l(e, o, i || Qe.empty)))
|
8101
8101
|
return !0;
|
8102
8102
|
if (!i)
|
8103
8103
|
return !1;
|
@@ -8163,7 +8163,7 @@ mo.drop = (e, t) => {
|
|
8163
8163
|
a = h(a, e);
|
8164
8164
|
}) : a = w_(e, L_(n.dataTransfer), Sp ? null : n.dataTransfer.getData("text/html"), !1, i);
|
8165
8165
|
let s = !!(r && I_(e, n));
|
8166
|
-
if (e.someProp("handleDrop", (h) => h(e, n, a ||
|
8166
|
+
if (e.someProp("handleDrop", (h) => h(e, n, a || Qe.empty, s))) {
|
8167
8167
|
n.preventDefault();
|
8168
8168
|
return;
|
8169
8169
|
}
|
@@ -9614,7 +9614,7 @@ function l5(e, t, n = !0) {
|
|
9614
9614
|
return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
|
9615
9615
|
}
|
9616
9616
|
function mse(e) {
|
9617
|
-
return new
|
9617
|
+
return new Qt({ props: { handleKeyDown: Mw(e) } });
|
9618
9618
|
}
|
9619
9619
|
function Mw(e) {
|
9620
9620
|
let t = gse(e);
|
@@ -9656,7 +9656,7 @@ const __ = (e, t, n) => {
|
|
9656
9656
|
return !0;
|
9657
9657
|
if (r.parent.content.size == 0 && (qd(i, "end") || bt.isSelectable(i)))
|
9658
9658
|
for (let a = r.depth; ; a--) {
|
9659
|
-
let s = N3(e.doc, r.before(a), r.after(a),
|
9659
|
+
let s = N3(e.doc, r.before(a), r.after(a), Qe.empty);
|
9660
9660
|
if (s && s.slice.size < s.to - s.from) {
|
9661
9661
|
if (t) {
|
9662
9662
|
let l = e.tr.step(s);
|
@@ -9700,7 +9700,7 @@ function P_(e, t, n) {
|
|
9700
9700
|
return !1;
|
9701
9701
|
s = c;
|
9702
9702
|
}
|
9703
|
-
let u = N3(e.doc, i, l,
|
9703
|
+
let u = N3(e.doc, i, l, Qe.empty);
|
9704
9704
|
if (!u || u.from != i || u instanceof Fr && u.slice.size >= l - i)
|
9705
9705
|
return !1;
|
9706
9706
|
if (n) {
|
@@ -9755,7 +9755,7 @@ const V_ = (e, t, n) => {
|
|
9755
9755
|
if (K_(e, o, t, 1))
|
9756
9756
|
return !0;
|
9757
9757
|
if (r.parent.content.size == 0 && (qd(i, "start") || bt.isSelectable(i))) {
|
9758
|
-
let a = N3(e.doc, r.before(), r.after(),
|
9758
|
+
let a = N3(e.doc, r.before(), r.after(), Qe.empty);
|
9759
9759
|
if (a && a.slice.size < a.to - a.from) {
|
9760
9760
|
if (t) {
|
9761
9761
|
let s = e.tr.step(a);
|
@@ -9910,7 +9910,7 @@ function K_(e, t, n, r) {
|
|
9910
9910
|
for (let b = a.length - 1; b >= 0; b--)
|
9911
9911
|
h = Oe.from(a[b].create(null, h));
|
9912
9912
|
h = Oe.from(o.copy(h));
|
9913
|
-
let g = e.tr.step(new Er(t.pos - 1, p, t.pos, p, new
|
9913
|
+
let g = e.tr.step(new Er(t.pos - 1, p, t.pos, p, new Qe(h, 1, 0), a.length, !0)), m = g.doc.resolve(p + 2 * a.length);
|
9914
9914
|
m.nodeAfter && m.nodeAfter.type == o.type && R1(g.doc, m.pos) && g.join(m.pos), n(g.scrollIntoView());
|
9915
9915
|
}
|
9916
9916
|
return !0;
|
@@ -9930,7 +9930,7 @@ function K_(e, t, n, r) {
|
|
9930
9930
|
let b = Oe.empty;
|
9931
9931
|
for (let v = h.length - 1; v >= 0; v--)
|
9932
9932
|
b = Oe.from(h[v].copy(b));
|
9933
|
-
let k = e.tr.step(new Er(t.pos - h.length, t.pos + i.nodeSize, t.pos + m, t.pos + i.nodeSize - m, new
|
9933
|
+
let k = e.tr.step(new Er(t.pos - h.length, t.pos + i.nodeSize, t.pos + m, t.pos + i.nodeSize - m, new Qe(b, h.length, 0), 0, !0));
|
9934
9934
|
n(k.scrollIntoView());
|
9935
9935
|
}
|
9936
9936
|
return !0;
|
@@ -10022,7 +10022,7 @@ function Lse(e, t, n, r, o) {
|
|
10022
10022
|
let i = Oe.empty;
|
10023
10023
|
for (let c = n.length - 1; c >= 0; c--)
|
10024
10024
|
i = Oe.from(n[c].type.create(n[c].attrs, i));
|
10025
|
-
e.step(new Er(t.start - (r ? 2 : 0), t.end, t.start, t.end, new
|
10025
|
+
e.step(new Er(t.start - (r ? 2 : 0), t.end, t.start, t.end, new Qe(i, 0, 0), n.length, !0));
|
10026
10026
|
let a = 0;
|
10027
10027
|
for (let c = 0; c < n.length; c++)
|
10028
10028
|
n[c].type == o && (a = c + 1);
|
@@ -10039,7 +10039,7 @@ function Nse(e) {
|
|
10039
10039
|
}
|
10040
10040
|
function Ise(e, t, n, r) {
|
10041
10041
|
let o = e.tr, i = r.end, a = r.$to.end(r.depth);
|
10042
|
-
i < a && (o.step(new Er(i - 1, a, i, a, new
|
10042
|
+
i < a && (o.step(new Er(i - 1, a, i, a, new Qe(Oe.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new A4(o.doc.resolve(r.$from.pos), o.doc.resolve(a), r.depth));
|
10043
10043
|
const s = C0(r);
|
10044
10044
|
if (s == null)
|
10045
10045
|
return !1;
|
@@ -10058,7 +10058,7 @@ function Rse(e, t, n) {
|
|
10058
10058
|
if (!u.canReplace(c + (s ? 0 : 1), c + 1, a.content.append(l ? Oe.empty : Oe.from(o))))
|
10059
10059
|
return !1;
|
10060
10060
|
let d = i.pos, f = d + a.nodeSize;
|
10061
|
-
return r.step(new Er(d - (s ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new
|
10061
|
+
return r.step(new Er(d - (s ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new Qe((s ? Oe.empty : Oe.from(o.copy(Oe.empty))).append(l ? Oe.empty : Oe.from(o.copy(Oe.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), t(r.scrollIntoView()), !0;
|
10062
10062
|
}
|
10063
10063
|
function Ose(e) {
|
10064
10064
|
return function(t, n) {
|
@@ -10072,7 +10072,7 @@ function Ose(e) {
|
|
10072
10072
|
if (l.type != e)
|
10073
10073
|
return !1;
|
10074
10074
|
if (n) {
|
10075
|
-
let u = l.lastChild && l.lastChild.type == s.type, c = Oe.from(u ? e.create() : null), d = new
|
10075
|
+
let u = l.lastChild && l.lastChild.type == s.type, c = Oe.from(u ? e.create() : null), d = new Qe(Oe.from(e.create(null, Oe.from(s.type.create(null, c)))), u ? 3 : 1, 0), f = i.start, p = i.end;
|
10076
10076
|
n(t.tr.step(new Er(f - (u ? 3 : 1), p, f, p, d, 1, !0)).scrollIntoView());
|
10077
10077
|
}
|
10078
10078
|
return !0;
|
@@ -10483,7 +10483,7 @@ function Fg(e) {
|
|
10483
10483
|
}), c;
|
10484
10484
|
}
|
10485
10485
|
function Vse(e) {
|
10486
|
-
const { editor: t, rules: n } = e, r = new
|
10486
|
+
const { editor: t, rules: n } = e, r = new Qt({
|
10487
10487
|
state: {
|
10488
10488
|
init() {
|
10489
10489
|
return null;
|
@@ -10682,7 +10682,7 @@ function Yse(e) {
|
|
10682
10682
|
}) || !g.steps.length))
|
10683
10683
|
return s = typeof DragEvent < "u" ? new DragEvent("drop") : null, a = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, g;
|
10684
10684
|
};
|
10685
|
-
return n.map((c) => new
|
10685
|
+
return n.map((c) => new Qt({
|
10686
10686
|
// we register a global drag handler to track the current drag source element
|
10687
10687
|
view(d) {
|
10688
10688
|
const f = (p) => {
|
@@ -10899,7 +10899,7 @@ class id {
|
|
10899
10899
|
});
|
10900
10900
|
}
|
10901
10901
|
}
|
10902
|
-
class
|
10902
|
+
class en {
|
10903
10903
|
constructor(t = {}) {
|
10904
10904
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
10905
10905
|
name: this.name,
|
@@ -10915,7 +10915,7 @@ class Xt {
|
|
10915
10915
|
})) || {};
|
10916
10916
|
}
|
10917
10917
|
static create(t = {}) {
|
10918
|
-
return new
|
10918
|
+
return new en(t);
|
10919
10919
|
}
|
10920
10920
|
configure(t = {}) {
|
10921
10921
|
const n = this.extend({
|
@@ -10925,7 +10925,7 @@ class Xt {
|
|
10925
10925
|
return n.name = this.name, n.parent = this.parent, n;
|
10926
10926
|
}
|
10927
10927
|
extend(t = {}) {
|
10928
|
-
const n = new
|
10928
|
+
const n = new en({ ...this.config, ...t });
|
10929
10929
|
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Gt(ht(n, "addOptions", {
|
10930
10930
|
name: n.name
|
10931
10931
|
})), n.storage = Gt(ht(n, "addStorage", {
|
@@ -10957,7 +10957,7 @@ function Q_(e, t, n) {
|
|
10957
10957
|
function X_(e) {
|
10958
10958
|
return Object.fromEntries(Object.entries(e.nodes).filter(([, t]) => t.spec.toText).map(([t, n]) => [t, n.spec.toText]));
|
10959
10959
|
}
|
10960
|
-
const eP =
|
10960
|
+
const eP = en.create({
|
10961
10961
|
name: "clipboardTextSerializer",
|
10962
10962
|
addOptions() {
|
10963
10963
|
return {
|
@@ -10966,8 +10966,8 @@ const eP = Xt.create({
|
|
10966
10966
|
},
|
10967
10967
|
addProseMirrorPlugins() {
|
10968
10968
|
return [
|
10969
|
-
new
|
10970
|
-
key: new
|
10969
|
+
new Qt({
|
10970
|
+
key: new rn("clipboardTextSerializer"),
|
10971
10971
|
props: {
|
10972
10972
|
clipboardTextSerializer: () => {
|
10973
10973
|
const { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: o } = t, { ranges: i } = o, a = Math.min(...i.map((c) => c.$from.pos)), s = Math.max(...i.map((c) => c.$to.pos)), l = X_(n);
|
@@ -11706,7 +11706,7 @@ const o1e = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edi
|
|
11706
11706
|
}, w = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(x)) || void 0;
|
11707
11707
|
b = b.append(Oe.from(s.createAndFill(null, w) || void 0));
|
11708
11708
|
const F = l.before(l.depth - (k - 1));
|
11709
|
-
n.replace(F, l.after(-v), new
|
11709
|
+
n.replace(F, l.after(-v), new Qe(b, 4 - k, 0));
|
11710
11710
|
let A = -1;
|
11711
11711
|
n.doc.nodesBetween(F, n.doc.content.size, (C, D) => {
|
11712
11712
|
if (A > -1)
|
@@ -11908,19 +11908,19 @@ var m1e = /* @__PURE__ */ Object.freeze({
|
|
11908
11908
|
wrapIn: h1e,
|
11909
11909
|
wrapInList: g1e
|
11910
11910
|
});
|
11911
|
-
const aP =
|
11911
|
+
const aP = en.create({
|
11912
11912
|
name: "commands",
|
11913
11913
|
addCommands() {
|
11914
11914
|
return {
|
11915
11915
|
...m1e
|
11916
11916
|
};
|
11917
11917
|
}
|
11918
|
-
}), sP =
|
11918
|
+
}), sP = en.create({
|
11919
11919
|
name: "drop",
|
11920
11920
|
addProseMirrorPlugins() {
|
11921
11921
|
return [
|
11922
|
-
new
|
11923
|
-
key: new
|
11922
|
+
new Qt({
|
11923
|
+
key: new rn("tiptapDrop"),
|
11924
11924
|
props: {
|
11925
11925
|
handleDrop: (e, t, n, r) => {
|
11926
11926
|
this.editor.emit("drop", {
|
@@ -11934,25 +11934,25 @@ const aP = Xt.create({
|
|
11934
11934
|
})
|
11935
11935
|
];
|
11936
11936
|
}
|
11937
|
-
}), lP =
|
11937
|
+
}), lP = en.create({
|
11938
11938
|
name: "editable",
|
11939
11939
|
addProseMirrorPlugins() {
|
11940
11940
|
return [
|
11941
|
-
new
|
11942
|
-
key: new
|
11941
|
+
new Qt({
|
11942
|
+
key: new rn("editable"),
|
11943
11943
|
props: {
|
11944
11944
|
editable: () => this.editor.options.editable
|
11945
11945
|
}
|
11946
11946
|
})
|
11947
11947
|
];
|
11948
11948
|
}
|
11949
|
-
}), uP =
|
11949
|
+
}), uP = en.create({
|
11950
11950
|
name: "focusEvents",
|
11951
11951
|
addProseMirrorPlugins() {
|
11952
11952
|
const { editor: e } = this;
|
11953
11953
|
return [
|
11954
|
-
new
|
11955
|
-
key: new
|
11954
|
+
new Qt({
|
11955
|
+
key: new rn("focusEvents"),
|
11956
11956
|
props: {
|
11957
11957
|
handleDOMEvents: {
|
11958
11958
|
focus: (t, n) => {
|
@@ -11970,7 +11970,7 @@ const aP = Xt.create({
|
|
11970
11970
|
})
|
11971
11971
|
];
|
11972
11972
|
}
|
11973
|
-
}), cP =
|
11973
|
+
}), cP = en.create({
|
11974
11974
|
name: "keymap",
|
11975
11975
|
addKeyboardShortcuts() {
|
11976
11976
|
const e = () => this.editor.commands.first(({ commands: a }) => [
|
@@ -12024,8 +12024,8 @@ const aP = Xt.create({
|
|
12024
12024
|
// to a paragraph if necessary.
|
12025
12025
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
12026
12026
|
// with many other commands.
|
12027
|
-
new
|
12028
|
-
key: new
|
12027
|
+
new Qt({
|
12028
|
+
key: new rn("clearDocument"),
|
12029
12029
|
appendTransaction: (e, t, n) => {
|
12030
12030
|
const r = e.some((g) => g.docChanged) && !t.doc.eq(n.doc), o = e.some((g) => g.getMeta("preventClearDocument"));
|
12031
12031
|
if (!r || o)
|
@@ -12046,12 +12046,12 @@ const aP = Xt.create({
|
|
12046
12046
|
})
|
12047
12047
|
];
|
12048
12048
|
}
|
12049
|
-
}), dP =
|
12049
|
+
}), dP = en.create({
|
12050
12050
|
name: "paste",
|
12051
12051
|
addProseMirrorPlugins() {
|
12052
12052
|
return [
|
12053
|
-
new
|
12054
|
-
key: new
|
12053
|
+
new Qt({
|
12054
|
+
key: new rn("tiptapPaste"),
|
12055
12055
|
props: {
|
12056
12056
|
handlePaste: (e, t, n) => {
|
12057
12057
|
this.editor.emit("paste", {
|
@@ -12064,12 +12064,12 @@ const aP = Xt.create({
|
|
12064
12064
|
})
|
12065
12065
|
];
|
12066
12066
|
}
|
12067
|
-
}), fP =
|
12067
|
+
}), fP = en.create({
|
12068
12068
|
name: "tabindex",
|
12069
12069
|
addProseMirrorPlugins() {
|
12070
12070
|
return [
|
12071
|
-
new
|
12072
|
-
key: new
|
12071
|
+
new Qt({
|
12072
|
+
key: new rn("tabindex"),
|
12073
12073
|
props: {
|
12074
12074
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
12075
12075
|
}
|
@@ -14227,8 +14227,8 @@ function tce(e, t) {
|
|
14227
14227
|
if (x.state.isVisible)
|
14228
14228
|
tt.setAttribute(qe, Be ? Be + " " + Ce : Ce);
|
14229
14229
|
else {
|
14230
|
-
var
|
14231
|
-
|
14230
|
+
var rt = Be && Be.replace(Ce, "").trim();
|
14231
|
+
rt ? tt.setAttribute(qe, rt) : tt.removeAttribute(qe);
|
14232
14232
|
}
|
14233
14233
|
});
|
14234
14234
|
}
|
@@ -14345,7 +14345,7 @@ function tce(e, t) {
|
|
14345
14345
|
var qe = we.target, Ce = W().contains(qe) || F.contains(qe);
|
14346
14346
|
if (!(we.type === "mousemove" && Ce)) {
|
14347
14347
|
var Je = N().concat(F).map(function(tt) {
|
14348
|
-
var Be,
|
14348
|
+
var Be, rt = tt._tippy, pt = (Be = rt.popperInstance) == null ? void 0 : Be.state;
|
14349
14349
|
return pt ? {
|
14350
14350
|
popperRect: tt.getBoundingClientRect(),
|
14351
14351
|
popperState: pt,
|
@@ -14373,7 +14373,7 @@ function tce(e, t) {
|
|
14373
14373
|
}
|
14374
14374
|
function ve() {
|
14375
14375
|
V();
|
14376
|
-
var we = x.props, qe = we.popperOptions, Ce = we.placement, Je = we.offset, tt = we.getReferenceClientRect, Be = we.moveTransition,
|
14376
|
+
var we = x.props, qe = we.popperOptions, Ce = we.placement, Je = we.offset, tt = we.getReferenceClientRect, Be = we.moveTransition, rt = B() ? U8(F).arrow : null, pt = tt ? {
|
14377
14377
|
getBoundingClientRect: tt,
|
14378
14378
|
contextElement: tt.contextElement || W()
|
14379
14379
|
} : e, dt = {
|
@@ -14382,12 +14382,12 @@ function tce(e, t) {
|
|
14382
14382
|
phase: "beforeWrite",
|
14383
14383
|
requires: ["computeStyles"],
|
14384
14384
|
fn: function(wt) {
|
14385
|
-
var
|
14385
|
+
var on = wt.state;
|
14386
14386
|
if (B()) {
|
14387
14387
|
var vn = U(), gt = vn.box;
|
14388
14388
|
["placement", "reference-hidden", "escaped"].forEach(function(kn) {
|
14389
|
-
kn === "placement" ? gt.setAttribute("data-placement",
|
14390
|
-
}),
|
14389
|
+
kn === "placement" ? gt.setAttribute("data-placement", on.placement) : on.attributes.popper["data-popper-" + kn] ? gt.setAttribute("data-" + kn, "") : gt.removeAttribute("data-" + kn);
|
14390
|
+
}), on.attributes.popper = {};
|
14391
14391
|
}
|
14392
14392
|
}
|
14393
14393
|
}, Rt = [{
|
@@ -14416,10 +14416,10 @@ function tce(e, t) {
|
|
14416
14416
|
adaptive: !Be
|
14417
14417
|
}
|
14418
14418
|
}, dt];
|
14419
|
-
B() &&
|
14419
|
+
B() && rt && Rt.push({
|
14420
14420
|
name: "arrow",
|
14421
14421
|
options: {
|
14422
|
-
element:
|
14422
|
+
element: rt,
|
14423
14423
|
padding: 3
|
14424
14424
|
}
|
14425
14425
|
}), Rt.push.apply(Rt, (qe == null ? void 0 : qe.modifiers) || []), x.popperInstance = Aue(pt, F, Object.assign({}, qe, {
|
@@ -14497,15 +14497,15 @@ function tce(e, t) {
|
|
14497
14497
|
var we = x.state.isVisible, qe = x.state.isDestroyed, Ce = !x.state.isEnabled, Je = La.isTouch && !x.props.touch, tt = f5(x.props.duration, 0, Jo.duration);
|
14498
14498
|
if (!(we || qe || Ce || Je) && !W().hasAttribute("disabled") && (G("onShow", [x], !1), x.props.onShow(x) !== !1)) {
|
14499
14499
|
if (x.state.isVisible = !0, B() && (F.style.visibility = "visible"), _(), pe(), x.state.isMounted || (F.style.transition = "none"), B()) {
|
14500
|
-
var Be = U(),
|
14501
|
-
p5([
|
14500
|
+
var Be = U(), rt = Be.box, pt = Be.content;
|
14501
|
+
p5([rt, pt], 0);
|
14502
14502
|
}
|
14503
14503
|
f = function() {
|
14504
14504
|
var Rt;
|
14505
14505
|
if (!(!x.state.isVisible || u)) {
|
14506
14506
|
if (u = !0, F.offsetHeight, F.style.transition = x.props.moveTransition, B() && x.props.animation) {
|
14507
|
-
var qt = U(), wt = qt.box,
|
14508
|
-
p5([wt,
|
14507
|
+
var qt = U(), wt = qt.box, on = qt.content;
|
14508
|
+
p5([wt, on], tt), DD([wt, on], "visible");
|
14509
14509
|
}
|
14510
14510
|
Z(), Q(), AD(g5, x), (Rt = x.popperInstance) == null || Rt.forceUpdate(), G("onMount", [x]), x.props.animation && B() && Fe(tt, function() {
|
14511
14511
|
x.state.isShown = !0, G("onShown", [x]);
|
@@ -14519,8 +14519,8 @@ function tce(e, t) {
|
|
14519
14519
|
var we = !x.state.isVisible, qe = x.state.isDestroyed, Ce = !x.state.isEnabled, Je = f5(x.props.duration, 1, Jo.duration);
|
14520
14520
|
if (!(we || qe || Ce) && (G("onHide", [x], !1), x.props.onHide(x) !== !1)) {
|
14521
14521
|
if (x.state.isVisible = !1, x.state.isShown = !1, u = !1, a = !1, B() && (F.style.visibility = "hidden"), K(), X(), _(!0), B()) {
|
14522
|
-
var tt = U(), Be = tt.box,
|
14523
|
-
x.props.animation && (p5([Be,
|
14522
|
+
var tt = U(), Be = tt.box, rt = tt.content;
|
14523
|
+
x.props.animation && (p5([Be, rt], Je), DD([Be, rt], "hidden"));
|
14524
14524
|
}
|
14525
14525
|
Z(), Q(), x.props.animation ? B() && de(Je, x.unmount) : x.unmount();
|
14526
14526
|
}
|
@@ -14704,11 +14704,11 @@ class rce {
|
|
14704
14704
|
!((t = this.tippy) === null || t === void 0) && t.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
14705
14705
|
}
|
14706
14706
|
}
|
14707
|
-
const IP = (e) => new
|
14708
|
-
key: typeof e.pluginKey == "string" ? new
|
14707
|
+
const IP = (e) => new Qt({
|
14708
|
+
key: typeof e.pluginKey == "string" ? new rn(e.pluginKey) : e.pluginKey,
|
14709
14709
|
view: (t) => new rce({ view: t, ...e })
|
14710
14710
|
});
|
14711
|
-
|
14711
|
+
en.create({
|
14712
14712
|
name: "bubbleMenu",
|
14713
14713
|
addOptions() {
|
14714
14714
|
return {
|
@@ -15294,7 +15294,7 @@ class xce {
|
|
15294
15294
|
}
|
15295
15295
|
}
|
15296
15296
|
function OP(e = {}, t = []) {
|
15297
|
-
const n =
|
15297
|
+
const n = et(e);
|
15298
15298
|
n.current = e;
|
15299
15299
|
const [r] = Re(() => new xce(n)), o = Z3.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
15300
15300
|
return iw(o), Pe(r.onRender(t)), RP({
|
@@ -16042,7 +16042,7 @@ function Ace() {
|
|
16042
16042
|
}
|
16043
16043
|
}
|
16044
16044
|
var tt = b.ReactCurrentOwner, Be = b.ReactDebugCurrentFrame;
|
16045
|
-
function
|
16045
|
+
function rt(z) {
|
16046
16046
|
if (z) {
|
16047
16047
|
var ye = z._owner, je = J(z.type, z._source, ye ? ye.type : null);
|
16048
16048
|
Be.setExtraStackFrame(je);
|
@@ -16070,7 +16070,7 @@ Check the render method of \`` + z + "`.";
|
|
16070
16070
|
return "";
|
16071
16071
|
}
|
16072
16072
|
var wt = {};
|
16073
|
-
function
|
16073
|
+
function on(z) {
|
16074
16074
|
{
|
16075
16075
|
var ye = Rt();
|
16076
16076
|
if (!ye) {
|
@@ -16087,12 +16087,12 @@ Check the top-level render call using <` + je + ">.");
|
|
16087
16087
|
if (!z._store || z._store.validated || z.key != null)
|
16088
16088
|
return;
|
16089
16089
|
z._store.validated = !0;
|
16090
|
-
var je =
|
16090
|
+
var je = on(ye);
|
16091
16091
|
if (wt[je])
|
16092
16092
|
return;
|
16093
16093
|
wt[je] = !0;
|
16094
16094
|
var Ue = "";
|
16095
|
-
z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."),
|
16095
|
+
z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."), rt(z), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', je, Ue), rt(null);
|
16096
16096
|
}
|
16097
16097
|
}
|
16098
16098
|
function gt(z, ye) {
|
@@ -16144,11 +16144,11 @@ Check the top-level render call using <` + je + ">.");
|
|
16144
16144
|
for (var ye = Object.keys(z.props), je = 0; je < ye.length; je++) {
|
16145
16145
|
var Ue = ye[je];
|
16146
16146
|
if (Ue !== "children" && Ue !== "key") {
|
16147
|
-
|
16147
|
+
rt(z), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ue), rt(null);
|
16148
16148
|
break;
|
16149
16149
|
}
|
16150
16150
|
}
|
16151
|
-
z.ref !== null && (
|
16151
|
+
z.ref !== null && (rt(z), k("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
|
16152
16152
|
}
|
16153
16153
|
}
|
16154
16154
|
var Lr = {};
|
@@ -43453,7 +43453,7 @@ function Zu(...e) {
|
|
43453
43453
|
};
|
43454
43454
|
};
|
43455
43455
|
}
|
43456
|
-
function
|
43456
|
+
function tn(...e) {
|
43457
43457
|
return L.useCallback(Zu(...e), e);
|
43458
43458
|
}
|
43459
43459
|
var p1 = L.forwardRef((e, t) => {
|
@@ -43561,7 +43561,7 @@ const zp = L.forwardRef(
|
|
43561
43561
|
rightIcon: l,
|
43562
43562
|
...u
|
43563
43563
|
}, c) => {
|
43564
|
-
const d = L.useRef(null), f =
|
43564
|
+
const d = L.useRef(null), f = tn(c, d), p = L.useCallback(() => {
|
43565
43565
|
var m;
|
43566
43566
|
(m = d.current) == null || m.focus();
|
43567
43567
|
}, []), h = L.useMemo(() => {
|
@@ -43688,7 +43688,7 @@ const is = L.forwardRef(
|
|
43688
43688
|
rightIcon: l,
|
43689
43689
|
...u
|
43690
43690
|
}, c) => {
|
43691
|
-
const d = L.useRef(null), f =
|
43691
|
+
const d = L.useRef(null), f = tn(c, d), p = L.useCallback(() => {
|
43692
43692
|
var m;
|
43693
43693
|
(m = d.current) == null || m.focus();
|
43694
43694
|
}, []), h = L.useMemo(() => {
|
@@ -43914,7 +43914,7 @@ var Xw = "Switch", [tat, kYt] = vo(Xw), [nat, rat] = tat(Xw), nH = L.forwardRef(
|
|
43914
43914
|
onCheckedChange: u,
|
43915
43915
|
form: c,
|
43916
43916
|
...d
|
43917
|
-
} = e, [f, p] = L.useState(null), h =
|
43917
|
+
} = e, [f, p] = L.useState(null), h = tn(t, (v) => p(v)), g = L.useRef(!1), m = f ? c || !!f.closest("form") : !0, [b = !1, k] = oi({
|
43918
43918
|
prop: o,
|
43919
43919
|
defaultProp: i,
|
43920
43920
|
onChange: u
|
@@ -44061,7 +44061,7 @@ var lat = "DismissableLayer", Q8 = "dismissableLayer.update", uat = "dismissable
|
|
44061
44061
|
onInteractOutside: a,
|
44062
44062
|
onDismiss: s,
|
44063
44063
|
...l
|
44064
|
-
} = e, u = L.useContext(lH), [c, d] = L.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = L.useState({}), h =
|
44064
|
+
} = e, u = L.useContext(lH), [c, d] = L.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = L.useState({}), h = tn(t, (A) => d(A)), g = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(m), k = c ? g.indexOf(c) : -1, v = u.layersWithOutsidePointerEventsDisabled.size > 0, x = k >= b, w = fat((A) => {
|
44065
44065
|
const C = A.target, D = [...u.branches].some((T) => T.contains(C));
|
44066
44066
|
!x || D || (o == null || o(A), a == null || a(A), A.defaultPrevented || s == null || s());
|
44067
44067
|
}, f), F = pat((A) => {
|
@@ -44101,7 +44101,7 @@ var lat = "DismissableLayer", Q8 = "dismissableLayer.update", uat = "dismissable
|
|
44101
44101
|
);
|
44102
44102
|
mc.displayName = lat;
|
44103
44103
|
var dat = "DismissableLayerBranch", uH = L.forwardRef((e, t) => {
|
44104
|
-
const n = L.useContext(lH), r = L.useRef(null), o =
|
44104
|
+
const n = L.useContext(lH), r = L.useRef(null), o = tn(t, r);
|
44105
44105
|
return L.useEffect(() => {
|
44106
44106
|
const i = r.current;
|
44107
44107
|
if (i)
|
@@ -45488,7 +45488,7 @@ var mst = kH, sF = "Popper", [wH, P1] = vo(sF), [yst, FH] = wH(sF), MH = (e) =>
|
|
45488
45488
|
MH.displayName = sF;
|
45489
45489
|
var CH = "PopperAnchor", EH = L.forwardRef(
|
45490
45490
|
(e, t) => {
|
45491
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, i = FH(CH, n), a = L.useRef(null), s =
|
45491
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, i = FH(CH, n), a = L.useRef(null), s = tn(t, a);
|
45492
45492
|
return L.useEffect(() => {
|
45493
45493
|
i.onAnchorChange((r == null ? void 0 : r.current) || a.current);
|
45494
45494
|
}), r ? null : /* @__PURE__ */ j.jsx(yt.div, { ...o, ref: s });
|
@@ -45513,7 +45513,7 @@ var lF = "PopperContent", [bst, xst] = wH(lF), AH = L.forwardRef(
|
|
45513
45513
|
updatePositionStrategy: v = "optimized",
|
45514
45514
|
onPlaced: x,
|
45515
45515
|
...w
|
45516
|
-
} = e, F = FH(lF, l), [A, C] = L.useState(null), D =
|
45516
|
+
} = e, F = FH(lF, l), [A, C] = L.useState(null), D = tn(t, (Ae) => C(Ae)), [T, I] = L.useState(null), B = Qw(T), W = (B == null ? void 0 : B.width) ?? 0, q = (B == null ? void 0 : B.height) ?? 0, U = u + (d !== "center" ? "-" + d : ""), P = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, _ = Array.isArray(g) ? g : [g], G = _.length > 0, Z = {
|
45517
45517
|
padding: P,
|
45518
45518
|
boundary: _.filter(kst),
|
45519
45519
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
@@ -45690,7 +45690,7 @@ function Mst(e, t) {
|
|
45690
45690
|
return L.useReducer((n, r) => t[n][r] ?? n, e);
|
45691
45691
|
}
|
45692
45692
|
var li = (e) => {
|
45693
|
-
const { present: t, children: n } = e, r = Cst(t), o = typeof n == "function" ? n({ present: r.isPresent }) : L.Children.only(n), i =
|
45693
|
+
const { present: t, children: n } = e, r = Cst(t), o = typeof n == "function" ? n({ present: r.isPresent }) : L.Children.only(n), i = tn(r.ref, Est(o));
|
45694
45694
|
return typeof n == "function" || r.isPresent ? L.cloneElement(o, { ref: i }) : null;
|
45695
45695
|
};
|
45696
45696
|
li.displayName = "Presence";
|
@@ -45864,7 +45864,7 @@ var nb = "Tooltip", [Tst, M2] = eb(nb), NH = (e) => {
|
|
45864
45864
|
NH.displayName = nb;
|
45865
45865
|
var r9 = "TooltipTrigger", IH = L.forwardRef(
|
45866
45866
|
(e, t) => {
|
45867
|
-
const { __scopeTooltip: n, ...r } = e, o = M2(r9, n), i = cF(r9, n), a = tb(n), s = L.useRef(null), l =
|
45867
|
+
const { __scopeTooltip: n, ...r } = e, o = M2(r9, n), i = cF(r9, n), a = tb(n), s = L.useRef(null), l = tn(t, s, o.onTriggerChange), u = L.useRef(!1), c = L.useRef(!1), d = L.useCallback(() => u.current = !1, []);
|
45868
45868
|
return L.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ j.jsx(w2, { asChild: !0, ...a, children: /* @__PURE__ */ j.jsx(
|
45869
45869
|
yt.button,
|
45870
45870
|
{
|
@@ -45904,7 +45904,7 @@ var Yd = "TooltipContent", OH = L.forwardRef(
|
|
45904
45904
|
return /* @__PURE__ */ j.jsx(li, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ j.jsx(BH, { side: o, ...i, ref: t }) : /* @__PURE__ */ j.jsx(Ist, { side: o, ...i, ref: t }) });
|
45905
45905
|
}
|
45906
45906
|
), Ist = L.forwardRef((e, t) => {
|
45907
|
-
const n = M2(Yd, e.__scopeTooltip), r = cF(Yd, e.__scopeTooltip), o = L.useRef(null), i =
|
45907
|
+
const n = M2(Yd, e.__scopeTooltip), r = cF(Yd, e.__scopeTooltip), o = L.useRef(null), i = tn(t, o), [a, s] = L.useState(null), { trigger: l, onClose: u } = n, c = o.current, { onPointerInTransitChange: d } = r, f = L.useCallback(() => {
|
45908
45908
|
s(null), d(!1);
|
45909
45909
|
}, [d]), p = L.useCallback(
|
45910
45910
|
(h, g) => {
|
@@ -46087,7 +46087,7 @@ function qst(e) {
|
|
46087
46087
|
var PH = LH, Vst = NH, Ust = IH, Wst = RH, Gst = OH, Zst = _H;
|
46088
46088
|
const fF = fn({});
|
46089
46089
|
function pF(e) {
|
46090
|
-
const t =
|
46090
|
+
const t = et(null);
|
46091
46091
|
return t.current === null && (t.current = e()), t.current;
|
46092
46092
|
}
|
46093
46093
|
const rb = fn(null), hF = fn({
|
@@ -46114,7 +46114,7 @@ class Kst extends L.Component {
|
|
46114
46114
|
}
|
46115
46115
|
}
|
46116
46116
|
function Yst({ children: e, isPresent: t }) {
|
46117
|
-
const n = M0(), r =
|
46117
|
+
const n = M0(), r = et(null), o = et({
|
46118
46118
|
width: 0,
|
46119
46119
|
height: 0,
|
46120
46120
|
top: 0,
|
@@ -46190,7 +46190,7 @@ function aS(e) {
|
|
46190
46190
|
}), t;
|
46191
46191
|
}
|
46192
46192
|
const gF = typeof window < "u", qH = gF ? gl : Pe, Qst = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
46193
|
-
const [s, l] = HH(a), u = It(() => aS(e), [e]), c = a && !s ? [] : u.map(Lg), d =
|
46193
|
+
const [s, l] = HH(a), u = It(() => aS(e), [e]), c = a && !s ? [] : u.map(Lg), d = et(!0), f = et(u), p = pF(() => /* @__PURE__ */ new Map()), [h, g] = Re(u), [m, b] = Re(u);
|
46194
46194
|
qH(() => {
|
46195
46195
|
d.current = !1, f.current = u;
|
46196
46196
|
for (let x = 0; x < m.length; x++) {
|
@@ -46471,7 +46471,7 @@ function clt(e, t, n) {
|
|
46471
46471
|
const xF = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), dlt = "framerAppearId", ZH = "data-" + xF(dlt), { schedule: vF } = VH(queueMicrotask, !1), KH = fn({});
|
46472
46472
|
function flt(e, t, n, r, o) {
|
46473
46473
|
var i, a;
|
46474
|
-
const { visualElement: s } = Mt(ib), l = Mt(UH), u = Mt(rb), c = Mt(hF).reducedMotion, d =
|
46474
|
+
const { visualElement: s } = Mt(ib), l = Mt(UH), u = Mt(rb), c = Mt(hF).reducedMotion, d = et(null);
|
46475
46475
|
r = r || l.renderer, !d.current && r && (d.current = r(e, {
|
46476
46476
|
visualState: t,
|
46477
46477
|
parent: s,
|
@@ -46482,11 +46482,11 @@ function flt(e, t, n, r, o) {
|
|
46482
46482
|
}));
|
46483
46483
|
const f = d.current, p = Mt(KH);
|
46484
46484
|
f && !f.projection && o && (f.type === "html" || f.type === "svg") && plt(d.current, n, o, p);
|
46485
|
-
const h =
|
46485
|
+
const h = et(!1);
|
46486
46486
|
S3(() => {
|
46487
46487
|
f && h.current && f.update(n, u);
|
46488
46488
|
});
|
46489
|
-
const g = n[ZH], m =
|
46489
|
+
const g = n[ZH], m = et(!!g && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, g)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, g)));
|
46490
46490
|
return qH(() => {
|
46491
46491
|
f && (h.current = !0, window.MotionIsMounted = !0, f.updateFeatures(), vF.render(f.render), m.current && f.animationState && f.animationState.animateChanges());
|
46492
46492
|
}), Pe(() => {
|
@@ -51058,7 +51058,7 @@ const gV = ({
|
|
51058
51058
|
onAddTag: n,
|
51059
51059
|
isPreviewMode: r
|
51060
51060
|
}) => {
|
51061
|
-
const [o, i] = Re(""), [a, s] = Re(!1), l =
|
51061
|
+
const [o, i] = Re(""), [a, s] = Re(!1), l = et(null), u = (p) => {
|
51062
51062
|
i(p), s(!0);
|
51063
51063
|
}, c = (p) => {
|
51064
51064
|
const h = e.find(
|
@@ -52439,14 +52439,14 @@ function cb(e) {
|
|
52439
52439
|
a.displayName = t;
|
52440
52440
|
const s = e + "CollectionSlot", l = ke.forwardRef(
|
52441
52441
|
(p, h) => {
|
52442
|
-
const { scope: g, children: m } = p, b = i(s, g), k =
|
52442
|
+
const { scope: g, children: m } = p, b = i(s, g), k = tn(h, b.collectionRef);
|
52443
52443
|
return /* @__PURE__ */ j.jsx(p1, { ref: k, children: m });
|
52444
52444
|
}
|
52445
52445
|
);
|
52446
52446
|
l.displayName = s;
|
52447
52447
|
const u = e + "CollectionItemSlot", c = "data-radix-collection-item", d = ke.forwardRef(
|
52448
52448
|
(p, h) => {
|
52449
|
-
const { scope: g, children: m, ...b } = p, k = ke.useRef(null), v =
|
52449
|
+
const { scope: g, children: m, ...b } = p, k = ke.useRef(null), v = tn(h, k), x = i(u, g);
|
52450
52450
|
return ke.useEffect(() => (x.itemMap.set(k, { ref: k, ...b }), () => void x.itemMap.delete(k))), /* @__PURE__ */ j.jsx(p1, { [c]: "", ref: v, children: m });
|
52451
52451
|
}
|
52452
52452
|
);
|
@@ -52495,7 +52495,7 @@ var _dt = L.forwardRef((e, t) => {
|
|
52495
52495
|
onEntryFocus: u,
|
52496
52496
|
preventScrollOnEntryFocus: c = !1,
|
52497
52497
|
...d
|
52498
|
-
} = e, f = L.useRef(null), p =
|
52498
|
+
} = e, f = L.useRef(null), p = tn(t, f), h = D2(i), [g = null, m] = oi({
|
52499
52499
|
prop: a,
|
52500
52500
|
defaultProp: s,
|
52501
52501
|
onChange: l
|
@@ -52952,7 +52952,7 @@ var $F = "CollapsibleContent", VV = L.forwardRef(
|
|
52952
52952
|
);
|
52953
52953
|
VV.displayName = $F;
|
52954
52954
|
var n0t = L.forwardRef((e, t) => {
|
52955
|
-
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = YF($F, n), [s, l] = L.useState(r), u = L.useRef(null), c =
|
52955
|
+
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = YF($F, n), [s, l] = L.useState(r), u = L.useRef(null), c = tn(t, u), d = L.useRef(0), f = d.current, p = L.useRef(0), h = p.current, g = a.open || s, m = L.useRef(g), b = L.useRef(void 0);
|
52956
52956
|
return L.useEffect(() => {
|
52957
52957
|
const k = requestAnimationFrame(() => m.current = !1);
|
52958
52958
|
return () => cancelAnimationFrame(k);
|
@@ -53055,7 +53055,7 @@ var [WV, u0t] = hb(yl), [GV, c0t] = hb(
|
|
53055
53055
|
);
|
53056
53056
|
}), [p0t, gb] = hb(yl), ZV = ke.forwardRef(
|
53057
53057
|
(e, t) => {
|
53058
|
-
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = ke.useRef(null), l =
|
53058
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = ke.useRef(null), l = tn(s, t), u = s0t(n), c = D2(o) === "ltr", d = lt(e.onKeyDown, (f) => {
|
53059
53059
|
var p;
|
53060
53060
|
if (!a0t.includes(f.key)) return;
|
53061
53061
|
const h = f.target, g = u().filter((C) => {
|
@@ -53207,7 +53207,7 @@ var g0t = UV, m0t = KV, y0t = $V, tU = JV, nU = XV, B5 = "focusScope.autoFocusOn
|
|
53207
53207
|
onMountAutoFocus: o,
|
53208
53208
|
onUnmountAutoFocus: i,
|
53209
53209
|
...a
|
53210
|
-
} = e, [s, l] = L.useState(null), u = zo(o), c = zo(i), d = L.useRef(null), f =
|
53210
|
+
} = e, [s, l] = L.useState(null), u = zo(o), c = zo(i), d = L.useRef(null), f = tn(t, (g) => l(g)), p = L.useRef({
|
53211
53211
|
paused: !1,
|
53212
53212
|
pause() {
|
53213
53213
|
this.paused = !0;
|
@@ -53891,7 +53891,7 @@ var sft = function(e) {
|
|
53891
53891
|
pU.displayName = rM;
|
53892
53892
|
var hU = "DialogTrigger", gU = L.forwardRef(
|
53893
53893
|
(e, t) => {
|
53894
|
-
const { __scopeDialog: n, ...r } = e, o = ma(hU, n), i =
|
53894
|
+
const { __scopeDialog: n, ...r } = e, o = ma(hU, n), i = tn(t, o.triggerRef);
|
53895
53895
|
return /* @__PURE__ */ j.jsx(
|
53896
53896
|
yt.button,
|
53897
53897
|
{
|
@@ -53948,7 +53948,7 @@ var fft = L.forwardRef(
|
|
53948
53948
|
xU.displayName = Yu;
|
53949
53949
|
var pft = L.forwardRef(
|
53950
53950
|
(e, t) => {
|
53951
|
-
const n = ma(Yu, e.__scopeDialog), r = L.useRef(null), o =
|
53951
|
+
const n = ma(Yu, e.__scopeDialog), r = L.useRef(null), o = tn(t, n.contentRef, r);
|
53952
53952
|
return L.useEffect(() => {
|
53953
53953
|
const i = r.current;
|
53954
53954
|
if (i) return nM(i);
|
@@ -53999,7 +53999,7 @@ var pft = L.forwardRef(
|
|
53999
53999
|
}
|
54000
54000
|
), vU = L.forwardRef(
|
54001
54001
|
(e, t) => {
|
54002
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = ma(Yu, n), l = L.useRef(null), u =
|
54002
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = ma(Yu, n), l = L.useRef(null), u = tn(t, l);
|
54003
54003
|
return tM(), /* @__PURE__ */ j.jsxs(j.Fragment, { children: [
|
54004
54004
|
/* @__PURE__ */ j.jsx(
|
54005
54005
|
bc,
|
@@ -54129,7 +54129,7 @@ var wft = L.forwardRef((e, t) => {
|
|
54129
54129
|
onFocusOutside: i,
|
54130
54130
|
onInteractOutside: a,
|
54131
54131
|
...s
|
54132
|
-
} = e, l = lM(X4, n), u = sM(n), c = L.useRef(null), d =
|
54132
|
+
} = e, l = lM(X4, n), u = sM(n), c = L.useRef(null), d = tn(t, c), [f, p] = L.useState(!1);
|
54133
54133
|
return L.useEffect(() => {
|
54134
54134
|
if (f) {
|
54135
54135
|
const h = document.body;
|
@@ -54246,7 +54246,7 @@ var RU = "PopoverAnchor", Aft = L.forwardRef(
|
|
54246
54246
|
Aft.displayName = RU;
|
54247
54247
|
var OU = "PopoverTrigger", BU = L.forwardRef(
|
54248
54248
|
(e, t) => {
|
54249
|
-
const { __scopePopover: n, ...r } = e, o = q1(OU, n), i = L2(n), a =
|
54249
|
+
const { __scopePopover: n, ...r } = e, o = q1(OU, n), i = L2(n), a = tn(t, o.triggerRef), s = /* @__PURE__ */ j.jsx(
|
54250
54250
|
yt.button,
|
54251
54251
|
{
|
54252
54252
|
type: "button",
|
@@ -54279,7 +54279,7 @@ var Xd = "PopoverContent", _U = L.forwardRef(
|
|
54279
54279
|
_U.displayName = Xd;
|
54280
54280
|
var Sft = L.forwardRef(
|
54281
54281
|
(e, t) => {
|
54282
|
-
const n = q1(Xd, e.__scopePopover), r = L.useRef(null), o =
|
54282
|
+
const n = q1(Xd, e.__scopePopover), r = L.useRef(null), o = tn(t, r), i = L.useRef(!1);
|
54283
54283
|
return L.useEffect(() => {
|
54284
54284
|
const a = r.current;
|
54285
54285
|
if (a) return nM(a);
|
@@ -54426,7 +54426,7 @@ var Ift = IU, Rft = BU, Oft = zU, UU = _U, Bft = qU, dM = "Radio", [zft, WU] = v
|
|
54426
54426
|
onCheck: l,
|
54427
54427
|
form: u,
|
54428
54428
|
...c
|
54429
|
-
} = e, [d, f] = L.useState(null), p =
|
54429
|
+
} = e, [d, f] = L.useState(null), p = tn(t, (m) => f(m)), h = L.useRef(!1), g = d ? u || !!d.closest("form") : !0;
|
54430
54430
|
return /* @__PURE__ */ j.jsxs(_ft, { scope: n, checked: o, disabled: a, children: [
|
54431
54431
|
/* @__PURE__ */ j.jsx(
|
54432
54432
|
yt.button,
|
@@ -54569,7 +54569,7 @@ var qft = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], fM = "RadioGroup"
|
|
54569
54569
|
QU.displayName = fM;
|
54570
54570
|
var XU = "RadioGroupItem", eW = L.forwardRef(
|
54571
54571
|
(e, t) => {
|
54572
|
-
const { __scopeRadioGroup: n, disabled: r, ...o } = e, i = Wft(XU, n), a = i.disabled || r, s = $U(n), l = JU(n), u = L.useRef(null), c =
|
54572
|
+
const { __scopeRadioGroup: n, disabled: r, ...o } = e, i = Wft(XU, n), a = i.disabled || r, s = $U(n), l = JU(n), u = L.useRef(null), c = tn(t, u), d = i.value === o.value, f = L.useRef(!1);
|
54573
54573
|
return L.useEffect(() => {
|
54574
54574
|
const p = (g) => {
|
54575
54575
|
qft.includes(g.key) && (f.current = !0);
|
@@ -54710,7 +54710,7 @@ var Kft = [" ", "Enter", "ArrowUp", "ArrowDown"], Yft = [" ", "Enter"], N2 = "Se
|
|
54710
54710
|
oW.displayName = N2;
|
54711
54711
|
var iW = "SelectTrigger", aW = L.forwardRef(
|
54712
54712
|
(e, t) => {
|
54713
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, i = Fb(n), a = V1(iW, n), s = a.disabled || r, l =
|
54713
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, i = Fb(n), a = V1(iW, n), s = a.disabled || r, l = tn(t, a.onTriggerChange), u = wb(n), c = L.useRef("touch"), [d, f, p] = TW((g) => {
|
54714
54714
|
const m = u().filter((v) => !v.disabled), b = m.find((v) => v.value === a.value), k = LW(m, g, b);
|
54715
54715
|
k !== void 0 && a.onValueChange(k.value);
|
54716
54716
|
}), h = (g) => {
|
@@ -54754,7 +54754,7 @@ var iW = "SelectTrigger", aW = L.forwardRef(
|
|
54754
54754
|
aW.displayName = iW;
|
54755
54755
|
var sW = "SelectValue", lW = L.forwardRef(
|
54756
54756
|
(e, t) => {
|
54757
|
-
const { __scopeSelect: n, className: r, style: o, children: i, placeholder: a = "", ...s } = e, l = V1(sW, n), { onValueNodeHasChildrenChange: u } = l, c = i !== void 0, d =
|
54757
|
+
const { __scopeSelect: n, className: r, style: o, children: i, placeholder: a = "", ...s } = e, l = V1(sW, n), { onValueNodeHasChildrenChange: u } = l, c = i !== void 0, d = tn(t, l.onValueNodeChange);
|
54758
54758
|
return qr(() => {
|
54759
54759
|
u(c);
|
54760
54760
|
}, [u, c]), /* @__PURE__ */ j.jsx(
|
@@ -54816,7 +54816,7 @@ var Wi = 10, [fW, U1] = R0($u), npt = "SelectContentImpl", pW = L.forwardRef(
|
|
54816
54816
|
avoidCollisions: m,
|
54817
54817
|
//
|
54818
54818
|
...b
|
54819
|
-
} = e, k = V1($u, n), [v, x] = L.useState(null), [w, F] = L.useState(null), A =
|
54819
|
+
} = e, k = V1($u, n), [v, x] = L.useState(null), [w, F] = L.useState(null), A = tn(t, (de) => x(de)), [C, D] = L.useState(null), [T, I] = L.useState(
|
54820
54820
|
null
|
54821
54821
|
), B = wb(n), [W, q] = L.useState(!1), U = L.useRef(!1);
|
54822
54822
|
L.useEffect(() => {
|
@@ -54966,7 +54966,7 @@ var Wi = 10, [fW, U1] = R0($u), npt = "SelectContentImpl", pW = L.forwardRef(
|
|
54966
54966
|
);
|
54967
54967
|
pW.displayName = npt;
|
54968
54968
|
var rpt = "SelectItemAlignedPosition", hW = L.forwardRef((e, t) => {
|
54969
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, i = V1($u, n), a = U1($u, n), [s, l] = L.useState(null), [u, c] = L.useState(null), d =
|
54969
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, i = V1($u, n), a = U1($u, n), [s, l] = L.useState(null), [u, c] = L.useState(null), d = tn(t, (A) => c(A)), f = wb(n), p = L.useRef(!1), h = L.useRef(!0), { viewport: g, selectedItem: m, selectedItemText: b, focusSelectedItem: k } = a, v = L.useCallback(() => {
|
54970
54970
|
if (i.trigger && i.valueNode && s && u && g && m && b) {
|
54971
54971
|
const A = i.trigger.getBoundingClientRect(), C = u.getBoundingClientRect(), D = i.valueNode.getBoundingClientRect(), T = b.getBoundingClientRect();
|
54972
54972
|
if (i.dir !== "rtl") {
|
@@ -55101,7 +55101,7 @@ var opt = "SelectPopperPosition", M9 = L.forwardRef((e, t) => {
|
|
55101
55101
|
M9.displayName = opt;
|
55102
55102
|
var [ipt, pM] = R0($u, {}), C9 = "SelectViewport", gW = L.forwardRef(
|
55103
55103
|
(e, t) => {
|
55104
|
-
const { __scopeSelect: n, nonce: r, ...o } = e, i = U1(C9, n), a = pM(C9, n), s =
|
55104
|
+
const { __scopeSelect: n, nonce: r, ...o } = e, i = U1(C9, n), a = pM(C9, n), s = tn(t, i.onViewportChange), l = L.useRef(0);
|
55105
55105
|
return /* @__PURE__ */ j.jsxs(j.Fragment, { children: [
|
55106
55106
|
/* @__PURE__ */ j.jsx(
|
55107
55107
|
"style",
|
@@ -55174,7 +55174,7 @@ var ty = "SelectItem", [lpt, vW] = R0(ty), kW = L.forwardRef(
|
|
55174
55174
|
disabled: o = !1,
|
55175
55175
|
textValue: i,
|
55176
55176
|
...a
|
55177
|
-
} = e, s = V1(ty, n), l = U1(ty, n), u = s.value === r, [c, d] = L.useState(i ?? ""), [f, p] = L.useState(!1), h =
|
55177
|
+
} = e, s = V1(ty, n), l = U1(ty, n), u = s.value === r, [c, d] = L.useState(i ?? ""), [f, p] = L.useState(!1), h = tn(
|
55178
55178
|
t,
|
55179
55179
|
(k) => {
|
55180
55180
|
var v;
|
@@ -55252,7 +55252,7 @@ var ty = "SelectItem", [lpt, vW] = R0(ty), kW = L.forwardRef(
|
|
55252
55252
|
kW.displayName = ty;
|
55253
55253
|
var Bf = "SelectItemText", wW = L.forwardRef(
|
55254
55254
|
(e, t) => {
|
55255
|
-
const { __scopeSelect: n, className: r, style: o, ...i } = e, a = V1(Bf, n), s = U1(Bf, n), l = vW(Bf, n), u = Xft(Bf, n), [c, d] = L.useState(null), f =
|
55255
|
+
const { __scopeSelect: n, className: r, style: o, ...i } = e, a = V1(Bf, n), s = U1(Bf, n), l = vW(Bf, n), u = Xft(Bf, n), [c, d] = L.useState(null), f = tn(
|
55256
55256
|
t,
|
55257
55257
|
(b) => d(b),
|
55258
55258
|
l.onItemTextChange,
|
@@ -55279,7 +55279,7 @@ var FW = "SelectItemIndicator", MW = L.forwardRef(
|
|
55279
55279
|
);
|
55280
55280
|
MW.displayName = FW;
|
55281
55281
|
var E9 = "SelectScrollUpButton", CW = L.forwardRef((e, t) => {
|
55282
|
-
const n = U1(E9, e.__scopeSelect), r = pM(E9, e.__scopeSelect), [o, i] = L.useState(!1), a =
|
55282
|
+
const n = U1(E9, e.__scopeSelect), r = pM(E9, e.__scopeSelect), [o, i] = L.useState(!1), a = tn(t, r.onScrollButtonChange);
|
55283
55283
|
return qr(() => {
|
55284
55284
|
if (n.viewport && n.isPositioned) {
|
55285
55285
|
let s = function() {
|
@@ -55303,7 +55303,7 @@ var E9 = "SelectScrollUpButton", CW = L.forwardRef((e, t) => {
|
|
55303
55303
|
});
|
55304
55304
|
CW.displayName = E9;
|
55305
55305
|
var A9 = "SelectScrollDownButton", EW = L.forwardRef((e, t) => {
|
55306
|
-
const n = U1(A9, e.__scopeSelect), r = pM(A9, e.__scopeSelect), [o, i] = L.useState(!1), a =
|
55306
|
+
const n = U1(A9, e.__scopeSelect), r = pM(A9, e.__scopeSelect), [o, i] = L.useState(!1), a = tn(t, r.onScrollButtonChange);
|
55307
55307
|
return qr(() => {
|
55308
55308
|
if (n.viewport && n.isPositioned) {
|
55309
55309
|
let s = function() {
|
@@ -55372,7 +55372,7 @@ function DW(e) {
|
|
55372
55372
|
}
|
55373
55373
|
var SW = L.forwardRef(
|
55374
55374
|
(e, t) => {
|
55375
|
-
const { value: n, ...r } = e, o = L.useRef(null), i =
|
55375
|
+
const { value: n, ...r } = e, o = L.useRef(null), i = tn(t, o), a = Jw(n);
|
55376
55376
|
return L.useEffect(() => {
|
55377
55377
|
const s = o.current, l = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(
|
55378
55378
|
l,
|
@@ -55419,7 +55419,7 @@ var fpt = oW, NW = aW, ppt = lW, hpt = uW, gpt = cW, IW = dW, mpt = gW, ypt = yW
|
|
55419
55419
|
hotkey: r = Fpt,
|
55420
55420
|
label: o = "Notifications ({hotkey})",
|
55421
55421
|
...i
|
55422
|
-
} = e, a = Mb(qW, n), s = kpt(n), l = L.useRef(null), u = L.useRef(null), c = L.useRef(null), d = L.useRef(null), f =
|
55422
|
+
} = e, a = Mb(qW, n), s = kpt(n), l = L.useRef(null), u = L.useRef(null), c = L.useRef(null), d = L.useRef(null), f = tn(t, d, a.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), h = a.toastCount > 0;
|
55423
55423
|
L.useEffect(() => {
|
55424
55424
|
const m = (b) => {
|
55425
55425
|
var k;
|
@@ -55592,7 +55592,7 @@ var [jpt, Dpt] = HW(Cb, {
|
|
55592
55592
|
onSwipeCancel: f,
|
55593
55593
|
onSwipeEnd: p,
|
55594
55594
|
...h
|
55595
|
-
} = e, g = Mb(Cb, n), [m, b] = L.useState(null), k =
|
55595
|
+
} = e, g = Mb(Cb, n), [m, b] = L.useState(null), k = tn(t, (q) => b(q)), v = L.useRef(null), x = L.useRef(null), w = o || g.duration, F = L.useRef(0), A = L.useRef(w), C = L.useRef(0), { onToastAdd: D, onToastRemove: T } = g, I = zo(() => {
|
55596
55596
|
var q;
|
55597
55597
|
m != null && m.contains(document.activeElement) && ((q = g.viewport) == null || q.focus()), a();
|
55598
55598
|
}), B = L.useCallback(
|
@@ -57052,12 +57052,12 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57052
57052
|
return (window.innerWidth - I9) / window.innerWidth;
|
57053
57053
|
}
|
57054
57054
|
function be(Be) {
|
57055
|
-
var
|
57056
|
-
!c && !i || te.current && !te.current.contains(Be.target) || (J.current = ((
|
57055
|
+
var rt, pt;
|
57056
|
+
!c && !i || te.current && !te.current.contains(Be.target) || (J.current = ((rt = te.current) == null ? void 0 : rt.getBoundingClientRect().height) || 0, $.current = ((pt = te.current) == null ? void 0 : pt.getBoundingClientRect().width) || 0, Q(!0), pe.current = /* @__PURE__ */ new Date(), mG() && window.addEventListener("touchend", () => Fe.current = !1, {
|
57057
57057
|
once: !0
|
57058
57058
|
}), Be.target.setPointerCapture(Be.pointerId), Le.current = lr(x) ? Be.pageY : Be.pageX);
|
57059
57059
|
}
|
57060
|
-
function Te(Be,
|
57060
|
+
function Te(Be, rt) {
|
57061
57061
|
var pt;
|
57062
57062
|
let dt = Be;
|
57063
57063
|
const Rt = (pt = window.getSelection()) == null ? void 0 : pt.toString(), qt = te.current ? Vg(te.current, x) : null, wt = /* @__PURE__ */ new Date();
|
@@ -57071,7 +57071,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57071
57071
|
return !0;
|
57072
57072
|
if (Rt && Rt.length > 0)
|
57073
57073
|
return !1;
|
57074
|
-
if (de.current && wt.getTime() - de.current.getTime() < u && qt === 0 ||
|
57074
|
+
if (de.current && wt.getTime() - de.current.getTime() < u && qt === 0 || rt)
|
57075
57075
|
return de.current = wt, !1;
|
57076
57076
|
for (; dt; ) {
|
57077
57077
|
if (dt.scrollHeight > dt.clientHeight) {
|
@@ -57086,10 +57086,10 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57086
57086
|
}
|
57087
57087
|
function $e(Be) {
|
57088
57088
|
if (te.current && Z) {
|
57089
|
-
const
|
57089
|
+
const rt = x === "bottom" || x === "right" ? 1 : -1, pt = (Le.current - (lr(x) ? Be.pageY : Be.pageX)) * rt, dt = pt > 0, Rt = i && !c && !dt;
|
57090
57090
|
if (Rt && E === 0) return;
|
57091
|
-
const qt = Math.abs(pt), wt = document.querySelector("[data-vaul-drawer-wrapper]"),
|
57092
|
-
let vn = qt /
|
57091
|
+
const qt = Math.abs(pt), wt = document.querySelector("[data-vaul-drawer-wrapper]"), on = x === "bottom" || x === "top" ? J.current : $.current;
|
57092
|
+
let vn = qt / on;
|
57093
57093
|
const gt = me(qt, dt);
|
57094
57094
|
if (gt !== null && (vn = gt), Rt && vn >= 1 || !Fe.current && !Te(Be.target, dt)) return;
|
57095
57095
|
if (te.current.classList.add(Q5), Fe.current = !0, hr(te.current, {
|
@@ -57099,7 +57099,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57099
57099
|
}), i && fe({
|
57100
57100
|
draggedDistance: pt
|
57101
57101
|
}), dt && !i) {
|
57102
|
-
const Gn = Oht(pt), Lr = Math.min(Gn * -1, 0) *
|
57102
|
+
const Gn = Oht(pt), Lr = Math.min(Gn * -1, 0) * rt;
|
57103
57103
|
hr(te.current, {
|
57104
57104
|
transform: lr(x) ? `translate3d(0, ${Lr}px, 0)` : `translate3d(${Lr}px, 0, 0)`
|
57105
57105
|
});
|
@@ -57118,7 +57118,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57118
57118
|
}, !0);
|
57119
57119
|
}
|
57120
57120
|
if (!i) {
|
57121
|
-
const Gn = qt *
|
57121
|
+
const Gn = qt * rt;
|
57122
57122
|
hr(te.current, {
|
57123
57123
|
transform: lr(x) ? `translate3d(0, ${Gn}px, 0)` : `translate3d(${Gn}px, 0, 0)`
|
57124
57124
|
});
|
@@ -57131,21 +57131,21 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57131
57131
|
});
|
57132
57132
|
}, []), ke.useEffect(() => {
|
57133
57133
|
var Be;
|
57134
|
-
function
|
57134
|
+
function rt() {
|
57135
57135
|
if (!te.current || !D) return;
|
57136
57136
|
const pt = document.activeElement;
|
57137
57137
|
if (N9(pt) || Me.current) {
|
57138
57138
|
var dt;
|
57139
57139
|
const Rt = ((dt = window.visualViewport) == null ? void 0 : dt.height) || 0, qt = window.innerHeight;
|
57140
57140
|
let wt = qt - Rt;
|
57141
|
-
const
|
57142
|
-
ie.current || (ie.current =
|
57141
|
+
const on = te.current.getBoundingClientRect().height || 0, vn = on > qt * 0.8;
|
57142
|
+
ie.current || (ie.current = on);
|
57143
57143
|
const gt = te.current.getBoundingClientRect().top;
|
57144
57144
|
if (Math.abs(Ae.current - wt) > 60 && (Me.current = !Me.current), i && i.length > 0 && re && E) {
|
57145
57145
|
const kn = re[E] || 0;
|
57146
57146
|
wt += kn;
|
57147
57147
|
}
|
57148
|
-
if (Ae.current = wt,
|
57148
|
+
if (Ae.current = wt, on > Rt || Me.current) {
|
57149
57149
|
const kn = te.current.getBoundingClientRect().height;
|
57150
57150
|
let Gn = kn;
|
57151
57151
|
kn > Rt && (Gn = Rt - (vn ? gt : I9)), g ? te.current.style.height = `${kn - Math.max(wt, 0)}px` : te.current.style.height = `${Math.max(Gn, Rt - gt)}px`;
|
@@ -57153,9 +57153,9 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57153
57153
|
i && i.length > 0 && !Me.current ? te.current.style.bottom = "0px" : te.current.style.bottom = `${Math.max(wt, 0)}px`;
|
57154
57154
|
}
|
57155
57155
|
}
|
57156
|
-
return (Be = window.visualViewport) == null || Be.addEventListener("resize",
|
57156
|
+
return (Be = window.visualViewport) == null || Be.addEventListener("resize", rt), () => {
|
57157
57157
|
var pt;
|
57158
|
-
return (pt = window.visualViewport) == null ? void 0 : pt.removeEventListener("resize",
|
57158
|
+
return (pt = window.visualViewport) == null ? void 0 : pt.removeEventListener("resize", rt);
|
57159
57159
|
};
|
57160
57160
|
}, [
|
57161
57161
|
E,
|
@@ -57169,14 +57169,14 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57169
57169
|
}
|
57170
57170
|
function Ct() {
|
57171
57171
|
if (!te.current) return;
|
57172
|
-
const Be = document.querySelector("[data-vaul-drawer-wrapper]"),
|
57172
|
+
const Be = document.querySelector("[data-vaul-drawer-wrapper]"), rt = Vg(te.current, x);
|
57173
57173
|
hr(te.current, {
|
57174
57174
|
transform: "translate3d(0, 0, 0)",
|
57175
57175
|
transition: `transform ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`
|
57176
57176
|
}), hr(le.current, {
|
57177
57177
|
transition: `opacity ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`,
|
57178
57178
|
opacity: "1"
|
57179
|
-
}), a &&
|
57179
|
+
}), a && rt && rt > 0 && U && hr(Be, {
|
57180
57180
|
borderRadius: `${kG}px`,
|
57181
57181
|
overflow: "hidden",
|
57182
57182
|
...lr(x) ? {
|
@@ -57197,8 +57197,8 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57197
57197
|
function qe(Be) {
|
57198
57198
|
if (!Z || !te.current) return;
|
57199
57199
|
te.current.classList.remove(Q5), Fe.current = !1, Q(!1), X.current = /* @__PURE__ */ new Date();
|
57200
|
-
const
|
57201
|
-
if (!Be || !Te(Be.target, !1) || !
|
57200
|
+
const rt = Vg(te.current, x);
|
57201
|
+
if (!Be || !Te(Be.target, !1) || !rt || Number.isNaN(rt) || pe.current === null) return;
|
57202
57202
|
const pt = X.current.getTime() - pe.current.getTime(), dt = Le.current - (lr(x) ? Be.pageY : Be.pageX), Rt = Math.abs(dt) / pt;
|
57203
57203
|
if (Rt > 0.05 && (ne(!0), setTimeout(() => {
|
57204
57204
|
ne(!1);
|
@@ -57221,9 +57221,9 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57221
57221
|
}
|
57222
57222
|
var qt;
|
57223
57223
|
const wt = Math.min((qt = te.current.getBoundingClientRect().height) != null ? qt : 0, window.innerHeight);
|
57224
|
-
var
|
57225
|
-
const vn = Math.min((
|
57226
|
-
if (Math.abs(
|
57224
|
+
var on;
|
57225
|
+
const vn = Math.min((on = te.current.getBoundingClientRect().width) != null ? on : 0, window.innerWidth), gt = x === "left" || x === "right";
|
57226
|
+
if (Math.abs(rt) >= (gt ? vn : wt) * l) {
|
57227
57227
|
at(), o == null || o(Be, !1);
|
57228
57228
|
return;
|
57229
57229
|
}
|
@@ -57237,10 +57237,10 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57237
57237
|
U
|
57238
57238
|
]);
|
57239
57239
|
function Ce(Be) {
|
57240
|
-
const
|
57240
|
+
const rt = Be ? (window.innerWidth - Ug) / window.innerWidth : 1, pt = Be ? -16 : 0;
|
57241
57241
|
Ie.current && window.clearTimeout(Ie.current), hr(te.current, {
|
57242
57242
|
transition: `transform ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`,
|
57243
|
-
transform: lr(x) ? `scale(${
|
57243
|
+
transform: lr(x) ? `scale(${rt}) translate3d(0, ${pt}px, 0)` : `scale(${rt}) translate3d(${pt}px, 0, 0)`
|
57244
57244
|
}), !Be && te.current && (Ie.current = setTimeout(() => {
|
57245
57245
|
const dt = Vg(te.current, x);
|
57246
57246
|
hr(te.current, {
|
@@ -57249,17 +57249,17 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57249
57249
|
});
|
57250
57250
|
}, 500));
|
57251
57251
|
}
|
57252
|
-
function Je(Be,
|
57253
|
-
if (
|
57254
|
-
const pt = (window.innerWidth - Ug) / window.innerWidth, dt = pt +
|
57252
|
+
function Je(Be, rt) {
|
57253
|
+
if (rt < 0) return;
|
57254
|
+
const pt = (window.innerWidth - Ug) / window.innerWidth, dt = pt + rt * (1 - pt), Rt = -16 + rt * Ug;
|
57255
57255
|
hr(te.current, {
|
57256
57256
|
transform: lr(x) ? `scale(${dt}) translate3d(0, ${Rt}px, 0)` : `scale(${dt}) translate3d(${Rt}px, 0, 0)`,
|
57257
57257
|
transition: "none"
|
57258
57258
|
});
|
57259
57259
|
}
|
57260
|
-
function tt(Be,
|
57261
|
-
const pt = lr(x) ? window.innerHeight : window.innerWidth, dt =
|
57262
|
-
|
57260
|
+
function tt(Be, rt) {
|
57261
|
+
const pt = lr(x) ? window.innerHeight : window.innerWidth, dt = rt ? (pt - Ug) / pt : 1, Rt = rt ? -16 : 0;
|
57262
|
+
rt && hr(te.current, {
|
57263
57263
|
transition: `transform ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`,
|
57264
57264
|
transform: lr(x) ? `scale(${dt}) translate3d(0, ${Rt}px, 0)` : `scale(${dt}) translate3d(${Rt}px, 0, 0)`
|
57265
57265
|
});
|
@@ -57898,7 +57898,7 @@ const u2t = ({
|
|
57898
57898
|
content: i,
|
57899
57899
|
size: a
|
57900
57900
|
}) => {
|
57901
|
-
const s =
|
57901
|
+
const s = et(null), l = () => {
|
57902
57902
|
s.current && s.current.click();
|
57903
57903
|
};
|
57904
57904
|
return /* @__PURE__ */ j.jsxs(j.Fragment, { children: [
|
@@ -57983,7 +57983,7 @@ hn(
|
|
57983
57983
|
)
|
57984
57984
|
);
|
57985
57985
|
const c2t = ({ content: e }) => {
|
57986
|
-
const [t, n] = Re(0), r =
|
57986
|
+
const [t, n] = Re(0), r = et(null);
|
57987
57987
|
return Pe(() => {
|
57988
57988
|
e && r.current ? n(r.current.scrollHeight) : n(0);
|
57989
57989
|
}, [e]), /* @__PURE__ */ j.jsx(
|
@@ -58712,8 +58712,8 @@ function wM(e, t) {
|
|
58712
58712
|
for (const n in e)
|
58713
58713
|
t(n.trim(), e[n]);
|
58714
58714
|
}
|
58715
|
-
function
|
58716
|
-
const t = e.reduce((n, r) => (r instanceof Set ? n.push(...r) : typeof r == "string" ? n.push(r) : Array.isArray(r) ? n.push(
|
58715
|
+
function Xt(...e) {
|
58716
|
+
const t = e.reduce((n, r) => (r instanceof Set ? n.push(...r) : typeof r == "string" ? n.push(r) : Array.isArray(r) ? n.push(Xt(...r)) : typeof r == "object" && Object.entries(r).forEach(([o, i]) => {
|
58717
58717
|
i && n.push(o);
|
58718
58718
|
}), n), []);
|
58719
58719
|
return oy(t, " ").trim();
|
@@ -75660,7 +75660,7 @@ function Ogt(e) {
|
|
75660
75660
|
}
|
75661
75661
|
function YT(e, t) {
|
75662
75662
|
t === void 0 && (t = 0);
|
75663
|
-
var n = Re(e), r = n[0], o = n[1], i =
|
75663
|
+
var n = Re(e), r = n[0], o = n[1], i = et(null);
|
75664
75664
|
function a(s) {
|
75665
75665
|
return new Promise(function(l) {
|
75666
75666
|
var u;
|
@@ -75678,7 +75678,7 @@ function Bgt() {
|
|
75678
75678
|
};
|
75679
75679
|
}
|
75680
75680
|
function xZ() {
|
75681
|
-
var e =
|
75681
|
+
var e = et({}), t = Ngt();
|
75682
75682
|
return It(function() {
|
75683
75683
|
var n = parseFloat("" + t);
|
75684
75684
|
return !t || Number.isNaN(n) ? e.current : Ib.reduce(function(r, o) {
|
@@ -75702,7 +75702,7 @@ function Pgt(e) {
|
|
75702
75702
|
}, [e]);
|
75703
75703
|
}
|
75704
75704
|
function Hgt(e) {
|
75705
|
-
var t = e.children, n = xZ(), r = kgt(), o = Lgt(), i =
|
75705
|
+
var t = e.children, n = xZ(), r = kgt(), o = Lgt(), i = et(ip), a = et(!1), s = et(!1), l = et(n), u = YT(Date.now(), 200), c = YT("", 100), d = Re(!1), f = Re(r), p = Re(null), h = Re(/* @__PURE__ */ new Set()), g = Re(null), m = Re(o), b = Re(!1), k = b[0], v = b[1];
|
75706
75706
|
return Pgt(v), Ve(qi.Provider, {
|
75707
75707
|
value: {
|
75708
75708
|
activeCategoryState: p,
|
@@ -75831,7 +75831,7 @@ function Qp() {
|
|
75831
75831
|
return document.activeElement;
|
75832
75832
|
}
|
75833
75833
|
function Ugt(e) {
|
75834
|
-
var t = e.children, n =
|
75834
|
+
var t = e.children, n = et(null), r = et(null), o = et(null), i = et(null), a = et(null), s = et(null), l = et(null), u = et(null);
|
75835
75835
|
return Ve(CZ.Provider, {
|
75836
75836
|
value: {
|
75837
75837
|
AnchoredEmojiRef: r,
|
@@ -76414,7 +76414,7 @@ function jmt(e) {
|
|
76414
76414
|
gmt(), Cmt();
|
76415
76415
|
var c = u || {}, d = c.width, f = c.height, p = tZ(c, Emt);
|
76416
76416
|
return Ve("aside", {
|
76417
|
-
className:
|
76417
|
+
className: Xt(ff.main, ff.baseVariables, i === Yp.DARK && ff.darkTheme, i === Yp.AUTO && ff.autoThemeDark, (t = {}, t[Yt.searchActive] = a, t), o && ff.reactionsMenu, l),
|
76418
76418
|
ref: s,
|
76419
76419
|
style: Wn({}, p, !o && {
|
76420
76420
|
height: f,
|
@@ -76806,7 +76806,7 @@ function eK(e) {
|
|
76806
76806
|
return e.imgUrl !== void 0;
|
76807
76807
|
}
|
76808
76808
|
function tK(e, t) {
|
76809
|
-
var n =
|
76809
|
+
var n = et(), r = NZ(), o = qgt(), i = B0(), a = i[1], s = wc(), l = jM(), u = l[0], c = Cgt(t), d = kZ(), f = d[1], p = kc(), h = vc(), g = Ze(function(k) {
|
76810
76810
|
if (!o.current) {
|
76811
76811
|
s();
|
76812
76812
|
var v = rL(k), x = v[0], w = v[1];
|
@@ -76881,7 +76881,7 @@ function H2(e) {
|
|
76881
76881
|
return Ve("button", Object.assign({
|
76882
76882
|
type: "button"
|
76883
76883
|
}, e, {
|
76884
|
-
className:
|
76884
|
+
className: Xt(Wmt.button, e.className)
|
76885
76885
|
}), e.children);
|
76886
76886
|
}
|
76887
76887
|
var Wmt = /* @__PURE__ */ In.create({
|
@@ -76896,7 +76896,7 @@ var Wmt = /* @__PURE__ */ In.create({
|
|
76896
76896
|
function Gmt(e) {
|
76897
76897
|
var t, n = e.emojiNames, r = e.unified, o = e.hidden, i = e.hiddenOnSearch, a = e.showVariations, s = a === void 0 ? !0 : a, l = e.hasVariations, u = e.children, c = e.className, d = e.noBackground, f = d === void 0 ? !1 : d;
|
76898
76898
|
return Ve(H2, {
|
76899
|
-
className:
|
76899
|
+
className: Xt(X5.emoji, o && FM.hidden, i && xc.hiddenOnSearch, (t = {}, t[Yt.visible] = !o && !i, t), !!(l && s) && X5.hasVariations, f && X5.noBackground, c),
|
76900
76900
|
"data-unified": r,
|
76901
76901
|
"aria-label": Zmt(n),
|
76902
76902
|
"data-full-name": n
|
@@ -76975,7 +76975,7 @@ function oL(e) {
|
|
76975
76975
|
return Ve("img", {
|
76976
76976
|
src: i,
|
76977
76977
|
alt: t,
|
76978
|
-
className:
|
76978
|
+
className: Xt(Kmt.emojiImag, ly.external, ly.common, s),
|
76979
76979
|
loading: o ? "lazy" : "eager",
|
76980
76980
|
onError: a,
|
76981
76981
|
style: n
|
@@ -76994,7 +76994,7 @@ var Kmt = /* @__PURE__ */ In.create({
|
|
76994
76994
|
function Ymt(e) {
|
76995
76995
|
var t = e.unified, n = e.style, r = e.className;
|
76996
76996
|
return Ve("span", {
|
76997
|
-
className:
|
76997
|
+
className: Xt($mt.nativeEmoji, ly.common, ly.external, r),
|
76998
76998
|
"data-unified": t,
|
76999
76999
|
style: n
|
77000
77000
|
}, JZ(t));
|
@@ -77075,7 +77075,7 @@ function Qmt() {
|
|
77075
77075
|
"aria-label": "Show all Emojis",
|
77076
77076
|
title: "Show all Emojis",
|
77077
77077
|
tabIndex: 0,
|
77078
|
-
className:
|
77078
|
+
className: Xt(Xmt.plusSign),
|
77079
77079
|
onClick: function() {
|
77080
77080
|
return t(!1);
|
77081
77081
|
}
|
@@ -77133,7 +77133,7 @@ function e4t() {
|
|
77133
77133
|
tK(n, Jp.REACTIONS);
|
77134
77134
|
var o = vc(), i = pZ(), a = kc();
|
77135
77135
|
return t ? Ve("ul", {
|
77136
|
-
className:
|
77136
|
+
className: Xt(iL.list, !t && FM.hidden),
|
77137
77137
|
ref: n
|
77138
77138
|
}, r.map(function(s) {
|
77139
77139
|
return Ve("li", {
|
@@ -77143,7 +77143,7 @@ function e4t() {
|
|
77143
77143
|
emojiStyle: o,
|
77144
77144
|
unified: s,
|
77145
77145
|
showVariations: !1,
|
77146
|
-
className:
|
77146
|
+
className: Xt(iL.emojiButton),
|
77147
77147
|
noBackground: !0,
|
77148
77148
|
getEmojiUrl: a
|
77149
77149
|
}));
|
@@ -77203,13 +77203,13 @@ function n4t() {
|
|
77203
77203
|
function nK(e) {
|
77204
77204
|
var t = e.categoryConfig, n = e.children, r = e.hidden, o = e.hiddenOnSearch, i = MM(t), a = iZ(t);
|
77205
77205
|
return Ve("li", {
|
77206
|
-
className:
|
77206
|
+
className: Xt(ex.category, r && FM.hidden, o && xc.hiddenOnSearch),
|
77207
77207
|
"data-name": i,
|
77208
77208
|
"aria-label": a
|
77209
77209
|
}, Ve("h2", {
|
77210
|
-
className:
|
77210
|
+
className: Xt(ex.label)
|
77211
77211
|
}, a), Ve("div", {
|
77212
|
-
className:
|
77212
|
+
className: Xt(ex.categoryContent)
|
77213
77213
|
}, n));
|
77214
77214
|
}
|
77215
77215
|
var ex = /* @__PURE__ */ In.create({
|
@@ -77280,9 +77280,9 @@ function o4t(e) {
|
|
77280
77280
|
})) : null;
|
77281
77281
|
}
|
77282
77282
|
function i4t() {
|
77283
|
-
var e = gZ(), t =
|
77283
|
+
var e = gZ(), t = et(0);
|
77284
77284
|
return Ve("ul", {
|
77285
|
-
className:
|
77285
|
+
className: Xt(s4t.emojiList)
|
77286
77286
|
}, e.map(function(n) {
|
77287
77287
|
var r = MM(n);
|
77288
77288
|
return r === Zt.SUGGESTED ? Ve(o4t, {
|
@@ -77340,7 +77340,7 @@ function u4t() {
|
|
77340
77340
|
var p, h;
|
77341
77341
|
return !f && e.current ? l(null) : (p = a(), h = u()), Ve("div", {
|
77342
77342
|
ref: t,
|
77343
|
-
className:
|
77343
|
+
className: Xt(Gg.variationPicker, s() === Cd.Down && Gg.pointingUp, f && Gg.visible),
|
77344
77344
|
style: {
|
77345
77345
|
top: p
|
77346
77346
|
}
|
@@ -77354,7 +77354,7 @@ function u4t() {
|
|
77354
77354
|
getEmojiUrl: c
|
77355
77355
|
});
|
77356
77356
|
}) : null, Ve("div", {
|
77357
|
-
className:
|
77357
|
+
className: Xt(Gg.pointer),
|
77358
77358
|
style: h
|
77359
77359
|
}));
|
77360
77360
|
}
|
@@ -77456,7 +77456,7 @@ var Gg = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
|
|
77456
77456
|
function f4t() {
|
77457
77457
|
var e = Vi();
|
77458
77458
|
return t4t(e), tK(e, Jp.PICKER), omt(), Ve("div", {
|
77459
|
-
className:
|
77459
|
+
className: Xt(p4t.body, xc.hiddenOnReactions),
|
77460
77460
|
ref: e
|
77461
77461
|
}, Ve(u4t, null), Ve(i4t, null));
|
77462
77462
|
}
|
@@ -77540,7 +77540,7 @@ function rK(e) {
|
|
77540
77540
|
var t = e.children, n = e.className, r = e.style, o = r === void 0 ? {} : r, i = e.direction, a = i === void 0 ? Xp.ROW : i;
|
77541
77541
|
return Ve("div", {
|
77542
77542
|
style: Wn({}, o),
|
77543
|
-
className:
|
77543
|
+
className: Xt(aL.flex, n, aL[a])
|
77544
77544
|
}, t);
|
77545
77545
|
}
|
77546
77546
|
var aL = /* @__PURE__ */ In.create((Zg = {
|
@@ -77558,7 +77558,7 @@ function y4t(e) {
|
|
77558
77558
|
style: Wn({
|
77559
77559
|
flex: 1
|
77560
77560
|
}, r),
|
77561
|
-
className:
|
77561
|
+
className: Xt(t)
|
77562
77562
|
});
|
77563
77563
|
}
|
77564
77564
|
function b4t(e) {
|
@@ -77584,7 +77584,7 @@ function x4t(e) {
|
|
77584
77584
|
return Ve(H2, {
|
77585
77585
|
style: i,
|
77586
77586
|
onClick: n,
|
77587
|
-
className:
|
77587
|
+
className: Xt("epr-tone-" + o, nx.tone, !t && nx.closedTone, r && nx.active),
|
77588
77588
|
"aria-pressed": r,
|
77589
77589
|
"aria-label": "Skin tone " + rgt[o]
|
77590
77590
|
});
|
@@ -77658,7 +77658,7 @@ function oK(e) {
|
|
77658
77658
|
return null;
|
77659
77659
|
var h = zf * iy.length + "px", g = a ? h : zf + "px", m = n === eh.VERTICAL;
|
77660
77660
|
return Ve(Ub, {
|
77661
|
-
className:
|
77661
|
+
className: Xt(pf.skinTones, m && pf.vertical, a && pf.open, m && a && pf.verticalShadow),
|
77662
77662
|
style: m ? {
|
77663
77663
|
flexBasis: g,
|
77664
77664
|
height: g
|
@@ -77666,7 +77666,7 @@ function oK(e) {
|
|
77666
77666
|
flexBasis: g
|
77667
77667
|
}
|
77668
77668
|
}, Ve("div", {
|
77669
|
-
className:
|
77669
|
+
className: Xt(pf.select),
|
77670
77670
|
ref: r
|
77671
77671
|
}, iy.map(function(b, k) {
|
77672
77672
|
var v = b === u;
|
@@ -77675,7 +77675,7 @@ function oK(e) {
|
|
77675
77675
|
skinToneVariation: b,
|
77676
77676
|
isOpen: a,
|
77677
77677
|
style: {
|
77678
|
-
transform:
|
77678
|
+
transform: Xt(m ? "translateY(-" + k * (a ? zf : 0) + "px)" : "translateX(-" + k * (a ? zf : 0) + "px)", a && v && "scale(1.3)")
|
77679
77679
|
},
|
77680
77680
|
isActive: v,
|
77681
77681
|
onClick: function() {
|
@@ -77728,7 +77728,7 @@ var pf = /* @__PURE__ */ In.create({
|
|
77728
77728
|
function k4t() {
|
77729
77729
|
var e = mZ(), t = IZ();
|
77730
77730
|
return e.showPreview ? Ve(rK, {
|
77731
|
-
className:
|
77731
|
+
className: Xt(r4.preview, xc.hiddenOnReactions)
|
77732
77732
|
}, Ve(w4t, null), Ve(y4t, null), t ? Ve(v4t, null) : null) : null;
|
77733
77733
|
}
|
77734
77734
|
function w4t() {
|
@@ -77747,16 +77747,16 @@ function w4t() {
|
|
77747
77747
|
emojiStyle: i,
|
77748
77748
|
size: 45,
|
77749
77749
|
getEmojiUrl: l,
|
77750
|
-
className:
|
77750
|
+
className: Xt(r4.emoji)
|
77751
77751
|
}) : f ? Ve(q9, {
|
77752
77752
|
unified: co(f),
|
77753
77753
|
emoji: f,
|
77754
77754
|
emojiStyle: i,
|
77755
77755
|
size: 45,
|
77756
77756
|
getEmojiUrl: l,
|
77757
|
-
className:
|
77757
|
+
className: Xt(r4.emoji)
|
77758
77758
|
}) : null), Ve("div", {
|
77759
|
-
className:
|
77759
|
+
className: Xt(r4.label)
|
77760
77760
|
}, c ? P9(u) : p));
|
77761
77761
|
}
|
77762
77762
|
}
|
@@ -77833,7 +77833,7 @@ function j4t(e) {
|
|
77833
77833
|
var t, n = e.isActiveCategory, r = e.category, o = e.allowNavigation, i = e.categoryConfig, a = e.onClick;
|
77834
77834
|
return Ve(H2, {
|
77835
77835
|
tabIndex: o ? 0 : -1,
|
77836
|
-
className:
|
77836
|
+
className: Xt(S4t.catBtn, xc.categoryBtn, "epr-icn-" + r, (t = {}, t[Yt.active] = n, t)),
|
77837
77837
|
onClick: a,
|
77838
77838
|
"aria-label": iZ(i),
|
77839
77839
|
"aria-selected": n,
|
@@ -77914,7 +77914,7 @@ function T4t() {
|
|
77914
77914
|
M4t(n);
|
77915
77915
|
var o = Bb(), i = gZ(), a = SM(), s = E4t();
|
77916
77916
|
return Ve("div", {
|
77917
|
-
className:
|
77917
|
+
className: Xt(L4t.nav),
|
77918
77918
|
role: "tablist",
|
77919
77919
|
"aria-label": "Category navigation",
|
77920
77920
|
id: "epr-category-nav-id",
|
@@ -77962,12 +77962,12 @@ var L4t = /* @__PURE__ */ In.create({
|
|
77962
77962
|
function N4t() {
|
77963
77963
|
var e = LZ();
|
77964
77964
|
return Ve(H2, {
|
77965
|
-
className:
|
77965
|
+
className: Xt(uL.btnClearSearch, xc.visibleOnSearchOnly),
|
77966
77966
|
onClick: e,
|
77967
77967
|
"aria-label": "Clear",
|
77968
77968
|
title: "Clear"
|
77969
77969
|
}, Ve("div", {
|
77970
|
-
className:
|
77970
|
+
className: Xt(uL.icnClearnSearch)
|
77971
77971
|
}));
|
77972
77972
|
}
|
77973
77973
|
var I4t = {
|
@@ -78041,7 +78041,7 @@ function B4t(e) {
|
|
78041
78041
|
var z4t = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCAyMCA0MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzg2ODY4NiIgZD0iTTEyLDguODFjMCwyLjA4LTEuNjgsMy43Ni0zLjc2LDMuNzZjLTIuMDgsMC0zLjc2LTEuNjgtMy43Ni0zLjc2CgljMC0yLjA4LDEuNjgtMy43NiwzLjc2LTMuNzZDMTAuMzIsNS4wNSwxMiw2LjczLDEyLDguODF6IE0xMS4yMywxMi43MmMtMC44MywwLjY0LTEuODcsMS4wMS0yLjk5LDEuMDFjLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTIKCWMwLTIuNzIsMi4yLTQuOTIsNC45Mi00LjkyYzIuNzIsMCw0LjkyLDIuMiw0LjkyLDQuOTJjMCwxLjEzLTAuMzgsMi4xNi0xLjAxLDIuOTlsMy45NCwzLjkzYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyCgljLTAuMjUsMC4yNS0wLjY2LDAuMjUtMC45MiwwTDExLjIzLDEyLjcyeiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0MwQzBCRiIgZD0iTTEyLDI4LjgxYzAsMi4wOC0xLjY4LDMuNzYtMy43NiwzLjc2Yy0yLjA4LDAtMy43Ni0xLjY4LTMuNzYtMy43NgoJYzAtMi4wOCwxLjY4LTMuNzYsMy43Ni0zLjc2QzEwLjMyLDI1LjA1LDEyLDI2LjczLDEyLDI4LjgxeiBNMTEuMjMsMzIuNzJjLTAuODMsMC42NC0xLjg3LDEuMDEtMi45OSwxLjAxCgljLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTJjMC0yLjcyLDIuMi00LjkyLDQuOTItNC45MmMyLjcyLDAsNC45MiwyLjIsNC45Miw0LjkyYzAsMS4xMy0wLjM4LDIuMTYtMS4wMSwyLjk5bDMuOTQsMy45MwoJYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyYy0wLjI1LDAuMjUtMC42NiwwLjI1LTAuOTIsMEwxMS4yMywzMi43MnoiLz4KPC9zdmc+";
|
78042
78042
|
function _4t() {
|
78043
78043
|
return Ve("div", {
|
78044
|
-
className:
|
78044
|
+
className: Xt(P4t.icnSearch)
|
78045
78045
|
});
|
78046
78046
|
}
|
78047
78047
|
var P4t = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
|
@@ -78065,13 +78065,13 @@ var P4t = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
|
|
78065
78065
|
function H4t() {
|
78066
78066
|
var e = yZ(), t = LM();
|
78067
78067
|
return e ? null : Ve(rK, {
|
78068
|
-
className:
|
78068
|
+
className: Xt(o4.overlay)
|
78069
78069
|
}, Ve(q4t, null), t ? Ve(oK, null) : null);
|
78070
78070
|
}
|
78071
78071
|
function q4t() {
|
78072
78072
|
var e = Re(0), t = e[0], n = e[1], r = wc(), o = G1(), i = vgt(), a = wgt(), s = lmt(), l = s.statusSearchResults, u = s.searchTerm, c = s.onChange, d = o == null ? void 0 : o.current, f = d == null ? void 0 : d.value;
|
78073
78073
|
return Ve(Ub, {
|
78074
|
-
className:
|
78074
|
+
className: Xt(o4.searchContainer)
|
78075
78075
|
}, Ve(O4t, {
|
78076
78076
|
value: f
|
78077
78077
|
}), Ve("input", {
|
@@ -78079,7 +78079,7 @@ function q4t() {
|
|
78079
78079
|
autoFocus: a,
|
78080
78080
|
"aria-label": "Type to search for an emoji",
|
78081
78081
|
onFocus: r,
|
78082
|
-
className:
|
78082
|
+
className: Xt(o4.search),
|
78083
78083
|
type: "text",
|
78084
78084
|
"aria-controls": "epr-search-id",
|
78085
78085
|
placeholder: i,
|
@@ -78092,7 +78092,7 @@ function q4t() {
|
|
78092
78092
|
ref: o
|
78093
78093
|
}), u ? Ve("div", {
|
78094
78094
|
role: "status",
|
78095
|
-
className:
|
78095
|
+
className: Xt("epr-status-search-results", o4.visuallyHidden),
|
78096
78096
|
"aria-live": "polite",
|
78097
78097
|
id: "epr-search-id",
|
78098
78098
|
"aria-atomic": "true"
|
@@ -78180,7 +78180,7 @@ var o4 = /* @__PURE__ */ In.create(/* @__PURE__ */ Wn({
|
|
78180
78180
|
})));
|
78181
78181
|
function V4t() {
|
78182
78182
|
return Ve(Ub, {
|
78183
|
-
className:
|
78183
|
+
className: Xt("epr-header", xc.hiddenOnReactions)
|
78184
78184
|
}, Ve(H4t, null), Ve(T4t, null));
|
78185
78185
|
}
|
78186
78186
|
function U4t(e) {
|
@@ -78230,7 +78230,7 @@ function Y4t(e) {
|
|
78230
78230
|
}
|
78231
78231
|
hn(
|
78232
78232
|
({ handleEmojiClick: e, handleAvatarInput: t, onRemove: n, className: r, ...o }, i) => {
|
78233
|
-
const [a, s] = Re("emojiPicker"), l =
|
78233
|
+
const [a, s] = Re("emojiPicker"), l = et(null), u = () => {
|
78234
78234
|
l.current && l.current.click();
|
78235
78235
|
};
|
78236
78236
|
return /* @__PURE__ */ j.jsx("div", { ref: i, className: r, ...o, children: /* @__PURE__ */ j.jsxs(
|
@@ -79417,7 +79417,7 @@ var G9 = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(G9 || {}
|
|
79417
79417
|
const Jyt = ({
|
79418
79418
|
delay: e = 2e3
|
79419
79419
|
}) => {
|
79420
|
-
const [t, n] = Re(!1), [r, o] = Re(!1), i =
|
79420
|
+
const [t, n] = Re(!1), [r, o] = Re(!1), i = et(null), a = Ze(() => {
|
79421
79421
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
79422
79422
|
n(!0), o(!0);
|
79423
79423
|
}, e);
|
@@ -79432,9 +79432,9 @@ const Jyt = ({
|
|
79432
79432
|
isActive: t
|
79433
79433
|
};
|
79434
79434
|
};
|
79435
|
-
var
|
79435
|
+
var nt = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e))(nt || {});
|
79436
79436
|
function Qyt(e) {
|
79437
|
-
const [t, n] = Re(e), r =
|
79437
|
+
const [t, n] = Re(e), r = et(null), o = (i) => {
|
79438
79438
|
r && r.current && !r.current.contains(i.target) && n(
|
79439
79439
|
0
|
79440
79440
|
/* NONE */
|
@@ -79567,7 +79567,7 @@ const CK = (e) => VM(e).buffer, EK = (e) => {
|
|
79567
79567
|
} catch (o) {
|
79568
79568
|
console.error("Error decrypting and displaying the image:", o);
|
79569
79569
|
}
|
79570
|
-
}, sp = new
|
79570
|
+
}, sp = new rn("upload-image"), u3t = () => new Qt({
|
79571
79571
|
key: sp,
|
79572
79572
|
state: {
|
79573
79573
|
init() {
|
@@ -80675,15 +80675,15 @@ function H3t(e, t, n, r, o, i, a) {
|
|
80675
80675
|
dragHandler: Je,
|
80676
80676
|
animation: tt,
|
80677
80677
|
eventHandler: Be,
|
80678
|
-
scrollBounds:
|
80678
|
+
scrollBounds: rt,
|
80679
80679
|
options: {
|
80680
80680
|
loop: pt
|
80681
80681
|
}
|
80682
80682
|
}, dt) => {
|
80683
|
-
const Rt = Te.settled(), qt = !
|
80684
|
-
|
80683
|
+
const Rt = Te.settled(), qt = !rt.shouldConstrain(), wt = pt ? Rt : Rt && qt, on = wt && !Je.pointerDown();
|
80684
|
+
on && tt.stop();
|
80685
80685
|
const vn = at.get() * dt + we.get() * (1 - dt);
|
80686
|
-
Ct.set(vn), pt && (qe.loop(Te.direction()), Ce.loop()), $e.to(Ct.get()),
|
80686
|
+
Ct.set(vn), pt && (qe.loop(Te.direction()), Ce.loop()), $e.to(Ct.get()), on && Be.emit("settle"), wt || Be.emit("scroll");
|
80687
80687
|
}, te = b3t(r, o, () => Se(be), (Te) => Ae(be, Te)), J = 0.68, $ = de[Ie.get()], ie = _f($), ve = _f($), V = _f($), E = _f($), N = C3t(ie, V, ve, E, f, J), O = N3t(d, de, ce, Fe, E), re = I3t(te, Ie, Le, N, O, E, a), fe = S3t(Fe), he = oh(), me = z3t(t, n, a, g), {
|
80688
80688
|
slideRegistry: ee
|
80689
80689
|
} = L3t(U, k, de, X, K, Me), ue = R3t(e, n, ee, re, N, he, a, F), be = {
|
@@ -80934,7 +80934,7 @@ function cy(e, t, n) {
|
|
80934
80934
|
}
|
80935
80935
|
cy.globalOptions = void 0;
|
80936
80936
|
function YM(e = {}, t = []) {
|
80937
|
-
const n =
|
80937
|
+
const n = et(e), r = et(t), [o, i] = Re(), [a, s] = Re(), l = Ze(() => {
|
80938
80938
|
o && o.reInit(n.current, r.current);
|
80939
80939
|
}, [o]);
|
80940
80940
|
return Pe(() => {
|
@@ -81129,7 +81129,7 @@ var K3t = typeof Br == "object" && Br && Br.Object === Object && Br, Y3t = typeo
|
|
81129
81129
|
K3t || Y3t || Function("return this")();
|
81130
81130
|
var zK = typeof window < "u" ? gl : Pe;
|
81131
81131
|
function $3t(e, t, n, r) {
|
81132
|
-
const o =
|
81132
|
+
const o = et(t);
|
81133
81133
|
zK(() => {
|
81134
81134
|
o.current = t;
|
81135
81135
|
}, [t]), Pe(() => {
|
@@ -86505,7 +86505,7 @@ async function o6(e, t) {
|
|
86505
86505
|
});
|
86506
86506
|
return K === "0x" ? { data: void 0 } : { data: K };
|
86507
86507
|
} catch (U) {
|
86508
|
-
const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-
|
86508
|
+
const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-BGPFRN2C.mjs");
|
86509
86509
|
if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === G && k)
|
86510
86510
|
return { data: await _(e, { data: P, to: k }) };
|
86511
86511
|
throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new v5t({ factory: c }) : r$(U, {
|
@@ -91488,7 +91488,7 @@ const X$ = fn(void 0), F9t = ({
|
|
91488
91488
|
onComment: w,
|
91489
91489
|
setCommentDrawerOpen: F
|
91490
91490
|
}) => {
|
91491
|
-
const [A, C] = Re(!0), [D, T] = Re(""), [I, B] = Re(""), [W, q] = Re(null), U =
|
91491
|
+
const [A, C] = Re(!0), [D, T] = Re(""), [I, B] = Re(""), [W, q] = Re(null), U = et(null), P = et(null), [_, G] = Re(""), [Z, Q] = Re(!1), K = et(null), ne = et(null), le = et(null), ce = t.isActive("comment"), pe = t.getAttributes("comment").resolved, [X, de] = Re({
|
91492
91492
|
inlineCommentText: "",
|
91493
91493
|
handleClick: !1
|
91494
91494
|
}), Fe = localStorage.getItem("ensCache"), [Ie, Le] = Re(
|
@@ -91517,12 +91517,12 @@ const X$ = fn(void 0), F9t = ({
|
|
91517
91517
|
}
|
91518
91518
|
try {
|
91519
91519
|
Se((pt) => [...pt, Ce]);
|
91520
|
-
const { name: tt, isEns: Be, resolved:
|
91520
|
+
const { name: tt, isEns: Be, resolved: rt } = await J$(
|
91521
91521
|
Ce,
|
91522
91522
|
d
|
91523
91523
|
// Add definite assignment assertion if ensResolutionUrl is guaranteed
|
91524
91524
|
);
|
91525
|
-
|
91525
|
+
rt && Le((pt) => {
|
91526
91526
|
const dt = {
|
91527
91527
|
...pt,
|
91528
91528
|
[Ce]: { name: tt, isEns: Be }
|
@@ -91544,15 +91544,11 @@ const X$ = fn(void 0), F9t = ({
|
|
91544
91544
|
[n, a]
|
91545
91545
|
);
|
91546
91546
|
$M([K, ne, le], () => {
|
91547
|
-
Z &&
|
91547
|
+
Z && Q(!1);
|
91548
91548
|
});
|
91549
91549
|
const J = Ze(() => {
|
91550
91550
|
const { state: Ce } = t, { from: Je, to: tt } = Ce.selection, Be = Ce.doc.textBetween(Je, tt, " ");
|
91551
91551
|
ce ? te && G(te.selectedContent || "") : G(Be), Q(!0), x == null || x();
|
91552
|
-
const nt = localStorage.getItem("theme") === "dark";
|
91553
|
-
t.chain().setHighlight({
|
91554
|
-
color: nt ? "#15521d" : "#DDFBDF"
|
91555
|
-
}).run();
|
91556
91552
|
}, [t, ce, te, x]), $ = Ze(
|
91557
91553
|
(Ce, Je = "", tt) => ({
|
91558
91554
|
id: `comment-${Ed()}`,
|
@@ -91567,7 +91563,7 @@ const X$ = fn(void 0), F9t = ({
|
|
91567
91563
|
), ie = Ze(
|
91568
91564
|
(Ce, Je) => {
|
91569
91565
|
if (!t) return;
|
91570
|
-
const { state: tt } = t, { from: Be, to:
|
91566
|
+
const { state: tt } = t, { from: Be, to: rt } = tt.selection, pt = tt.doc.textBetween(Be, rt, " "), dt = $(
|
91571
91567
|
pt,
|
91572
91568
|
Ce,
|
91573
91569
|
Je || o
|
@@ -91622,8 +91618,8 @@ const X$ = fn(void 0), F9t = ({
|
|
91622
91618
|
`[data-comment-id="${Ce}"]`
|
91623
91619
|
);
|
91624
91620
|
if (Be) {
|
91625
|
-
const
|
91626
|
-
t.commands.setTextSelection({ from:
|
91621
|
+
const rt = t.view.posAtDOM(Be, 0), pt = rt + (((tt = Be.textContent) == null ? void 0 : tt.length) ?? 0);
|
91622
|
+
t.commands.setTextSelection({ from: rt, to: pt });
|
91627
91623
|
const Rt = [
|
91628
91624
|
document.querySelector(".ProseMirror"),
|
91629
91625
|
document.getElementById("editor-canvas"),
|
@@ -91634,9 +91630,9 @@ const X$ = fn(void 0), F9t = ({
|
|
91634
91630
|
(qt) => qt && (qt.scrollHeight > qt.clientHeight || window.getComputedStyle(qt).overflow === "auto" || window.getComputedStyle(qt).overflowY === "auto")
|
91635
91631
|
);
|
91636
91632
|
Rt && requestAnimationFrame(() => {
|
91637
|
-
const qt = Rt.getBoundingClientRect(), wt = Be.getBoundingClientRect(),
|
91633
|
+
const qt = Rt.getBoundingClientRect(), wt = Be.getBoundingClientRect(), on = wt.top - qt.top - qt.height / 2 + wt.height / 2;
|
91638
91634
|
Rt.scrollBy({
|
91639
|
-
top:
|
91635
|
+
top: on,
|
91640
91636
|
behavior: "smooth"
|
91641
91637
|
});
|
91642
91638
|
});
|
@@ -91659,7 +91655,7 @@ const X$ = fn(void 0), F9t = ({
|
|
91659
91655
|
},
|
91660
91656
|
[]
|
91661
91657
|
), he = Ze(() => {
|
91662
|
-
if (
|
91658
|
+
if (!I.trim() || !o) return;
|
91663
91659
|
const Ce = {
|
91664
91660
|
id: `comment-${Ed()}`,
|
91665
91661
|
username: o,
|
@@ -91723,8 +91719,8 @@ const X$ = fn(void 0), F9t = ({
|
|
91723
91719
|
`[data-comment-id="${Je.id}"]`
|
91724
91720
|
);
|
91725
91721
|
if (tt) {
|
91726
|
-
const Be = t.view.posAtDOM(tt, 0),
|
91727
|
-
t.commands.setTextSelection({ from: Be, to:
|
91722
|
+
const Be = t.view.posAtDOM(tt, 0), rt = Be + (((Ce = tt.textContent) == null ? void 0 : Ce.length) ?? 0);
|
91723
|
+
t.commands.setTextSelection({ from: Be, to: rt }), O(Je.id || "");
|
91728
91724
|
}
|
91729
91725
|
}
|
91730
91726
|
}, [at, $e, t, O]), we = Ze(() => {
|
@@ -91734,8 +91730,8 @@ const X$ = fn(void 0), F9t = ({
|
|
91734
91730
|
`[data-comment-id="${Je.id}"]`
|
91735
91731
|
);
|
91736
91732
|
if (tt) {
|
91737
|
-
const Be = t.view.posAtDOM(tt, 0),
|
91738
|
-
t.commands.setTextSelection({ from: Be, to:
|
91733
|
+
const Be = t.view.posAtDOM(tt, 0), rt = Be + (((Ce = tt.textContent) == null ? void 0 : Ce.length) ?? 0);
|
91734
|
+
t.commands.setTextSelection({ from: Be, to: rt }), O(Je.id || "");
|
91739
91735
|
}
|
91740
91736
|
}
|
91741
91737
|
}, [at, $e, t, O]), qe = It(
|
@@ -95157,18 +95153,18 @@ function DJ() {
|
|
95157
95153
|
const $e = Jt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), at = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
|
95158
95154
|
let qe = we, Ce = !1, Je = null;
|
95159
95155
|
const tt = Jt({}, [at, Ct, we], Rx);
|
95160
|
-
let Be = Jt({}, ["mi", "mo", "mn", "ms", "mtext"]),
|
95156
|
+
let Be = Jt({}, ["mi", "mo", "mn", "ms", "mtext"]), rt = Jt({}, ["annotation-xml"]);
|
95161
95157
|
const pt = Jt({}, ["title", "style", "font", "a", "script"]);
|
95162
95158
|
let dt = null;
|
95163
95159
|
const Rt = ["application/xhtml+xml", "text/html"], qt = "text/html";
|
95164
|
-
let wt = null,
|
95160
|
+
let wt = null, on = null;
|
95165
95161
|
const vn = n.createElement("form"), gt = function(oe) {
|
95166
95162
|
return oe instanceof RegExp || oe instanceof Function;
|
95167
95163
|
}, kn = function() {
|
95168
95164
|
let oe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
95169
|
-
if (!(
|
95165
|
+
if (!(on && on === oe)) {
|
95170
95166
|
if ((!oe || typeof oe != "object") && (oe = {}), oe = su(oe), dt = // eslint-disable-next-line unicorn/prefer-includes
|
95171
|
-
Rt.indexOf(oe.PARSER_MEDIA_TYPE) === -1 ? qt : oe.PARSER_MEDIA_TYPE, wt = dt === "application/xhtml+xml" ? Rx : l4, K = Gi(oe, "ALLOWED_TAGS") ? Jt({}, oe.ALLOWED_TAGS, wt) : ne, le = Gi(oe, "ALLOWED_ATTR") ? Jt({}, oe.ALLOWED_ATTR, wt) : ce, Je = Gi(oe, "ALLOWED_NAMESPACES") ? Jt({}, oe.ALLOWED_NAMESPACES, Rx) : tt, Te = Gi(oe, "ADD_URI_SAFE_ATTR") ? Jt(su($e), oe.ADD_URI_SAFE_ATTR, wt) : $e, ue = Gi(oe, "ADD_DATA_URI_TAGS") ? Jt(su(be), oe.ADD_DATA_URI_TAGS, wt) : be, me = Gi(oe, "FORBID_CONTENTS") ? Jt({}, oe.FORBID_CONTENTS, wt) : ee, X = Gi(oe, "FORBID_TAGS") ? Jt({}, oe.FORBID_TAGS, wt) : {}, de = Gi(oe, "FORBID_ATTR") ? Jt({}, oe.FORBID_ATTR, wt) : {}, he = Gi(oe, "USE_PROFILES") ? oe.USE_PROFILES : !1, Fe = oe.ALLOW_ARIA_ATTR !== !1, Ie = oe.ALLOW_DATA_ATTR !== !1, Le = oe.ALLOW_UNKNOWN_PROTOCOLS || !1, Me = oe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Se = oe.SAFE_FOR_TEMPLATES || !1, Ae = oe.SAFE_FOR_XML !== !1, te = oe.WHOLE_DOCUMENT || !1, ie = oe.RETURN_DOM || !1, ve = oe.RETURN_DOM_FRAGMENT || !1, V = oe.RETURN_TRUSTED_TYPE || !1, $ = oe.FORCE_BODY || !1, E = oe.SANITIZE_DOM !== !1, N = oe.SANITIZE_NAMED_PROPS || !1, re = oe.KEEP_CONTENT !== !1, fe = oe.IN_PLACE || !1, Q = oe.ALLOWED_URI_REGEXP || AJ, qe = oe.NAMESPACE || we, Be = oe.MATHML_TEXT_INTEGRATION_POINTS || Be,
|
95167
|
+
Rt.indexOf(oe.PARSER_MEDIA_TYPE) === -1 ? qt : oe.PARSER_MEDIA_TYPE, wt = dt === "application/xhtml+xml" ? Rx : l4, K = Gi(oe, "ALLOWED_TAGS") ? Jt({}, oe.ALLOWED_TAGS, wt) : ne, le = Gi(oe, "ALLOWED_ATTR") ? Jt({}, oe.ALLOWED_ATTR, wt) : ce, Je = Gi(oe, "ALLOWED_NAMESPACES") ? Jt({}, oe.ALLOWED_NAMESPACES, Rx) : tt, Te = Gi(oe, "ADD_URI_SAFE_ATTR") ? Jt(su($e), oe.ADD_URI_SAFE_ATTR, wt) : $e, ue = Gi(oe, "ADD_DATA_URI_TAGS") ? Jt(su(be), oe.ADD_DATA_URI_TAGS, wt) : be, me = Gi(oe, "FORBID_CONTENTS") ? Jt({}, oe.FORBID_CONTENTS, wt) : ee, X = Gi(oe, "FORBID_TAGS") ? Jt({}, oe.FORBID_TAGS, wt) : {}, de = Gi(oe, "FORBID_ATTR") ? Jt({}, oe.FORBID_ATTR, wt) : {}, he = Gi(oe, "USE_PROFILES") ? oe.USE_PROFILES : !1, Fe = oe.ALLOW_ARIA_ATTR !== !1, Ie = oe.ALLOW_DATA_ATTR !== !1, Le = oe.ALLOW_UNKNOWN_PROTOCOLS || !1, Me = oe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Se = oe.SAFE_FOR_TEMPLATES || !1, Ae = oe.SAFE_FOR_XML !== !1, te = oe.WHOLE_DOCUMENT || !1, ie = oe.RETURN_DOM || !1, ve = oe.RETURN_DOM_FRAGMENT || !1, V = oe.RETURN_TRUSTED_TYPE || !1, $ = oe.FORCE_BODY || !1, E = oe.SANITIZE_DOM !== !1, N = oe.SANITIZE_NAMED_PROPS || !1, re = oe.KEEP_CONTENT !== !1, fe = oe.IN_PLACE || !1, Q = oe.ALLOWED_URI_REGEXP || AJ, qe = oe.NAMESPACE || we, Be = oe.MATHML_TEXT_INTEGRATION_POINTS || Be, rt = oe.HTML_INTEGRATION_POINTS || rt, pe = oe.CUSTOM_ELEMENT_HANDLING || {}, oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (pe.tagNameCheck = oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck), oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (pe.attributeNameCheck = oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), oe.CUSTOM_ELEMENT_HANDLING && typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (pe.allowCustomizedBuiltInElements = oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Se && (Ie = !1), ve && (ie = !0), he && (K = Jt({}, BN), le = [], he.html === !0 && (Jt(K, ON), Jt(le, zN)), he.svg === !0 && (Jt(K, Ox), Jt(le, _x), Jt(le, nm)), he.svgFilters === !0 && (Jt(K, Bx), Jt(le, _x), Jt(le, nm)), he.mathMl === !0 && (Jt(K, zx), Jt(le, _N), Jt(le, nm))), oe.ADD_TAGS && (K === ne && (K = su(K)), Jt(K, oe.ADD_TAGS, wt)), oe.ADD_ATTR && (le === ce && (le = su(le)), Jt(le, oe.ADD_ATTR, wt)), oe.ADD_URI_SAFE_ATTR && Jt(Te, oe.ADD_URI_SAFE_ATTR, wt), oe.FORBID_CONTENTS && (me === ee && (me = su(me)), Jt(me, oe.FORBID_CONTENTS, wt)), re && (K["#text"] = !0), te && Jt(K, ["html", "head", "body"]), K.table && (Jt(K, ["tbody"]), delete X.tbody), oe.TRUSTED_TYPES_POLICY) {
|
95172
95168
|
if (typeof oe.TRUSTED_TYPES_POLICY.createHTML != "function")
|
95173
95169
|
throw kf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
95174
95170
|
if (typeof oe.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -95176,7 +95172,7 @@ function DJ() {
|
|
95176
95172
|
x = oe.TRUSTED_TYPES_POLICY, w = x.createHTML("");
|
95177
95173
|
} else
|
95178
95174
|
x === void 0 && (x = Dwt(p, o)), x !== null && typeof w == "string" && (w = x.createHTML(""));
|
95179
|
-
yo && yo(oe),
|
95175
|
+
yo && yo(oe), on = oe;
|
95180
95176
|
}
|
95181
95177
|
}, Gn = Jt({}, [...Ox, ...Bx, ...bwt]), Lr = Jt({}, [...zx, ...xwt]), pi = function(oe) {
|
95182
95178
|
let De = v(oe);
|
@@ -95185,7 +95181,7 @@ function DJ() {
|
|
95185
95181
|
tagName: "template"
|
95186
95182
|
});
|
95187
95183
|
const _e = l4(oe.tagName), zt = l4(De.tagName);
|
95188
|
-
return Je[oe.namespaceURI] ? oe.namespaceURI === Ct ? De.namespaceURI === we ? _e === "svg" : De.namespaceURI === at ? _e === "svg" && (zt === "annotation-xml" || Be[zt]) : !!Gn[_e] : oe.namespaceURI === at ? De.namespaceURI === we ? _e === "math" : De.namespaceURI === Ct ? _e === "math" &&
|
95184
|
+
return Je[oe.namespaceURI] ? oe.namespaceURI === Ct ? De.namespaceURI === we ? _e === "svg" : De.namespaceURI === at ? _e === "svg" && (zt === "annotation-xml" || Be[zt]) : !!Gn[_e] : oe.namespaceURI === at ? De.namespaceURI === we ? _e === "math" : De.namespaceURI === Ct ? _e === "math" && rt[zt] : !!Lr[_e] : oe.namespaceURI === we ? De.namespaceURI === Ct && !rt[zt] || De.namespaceURI === at && !Be[zt] ? !1 : !Lr[_e] && (pt[_e] || !Gn[_e]) : !!(dt === "application/xhtml+xml" && Je[oe.namespaceURI]) : !1;
|
95189
95185
|
}, pr = function(oe) {
|
95190
95186
|
xf(t.removed, {
|
95191
95187
|
element: oe
|
@@ -95257,7 +95253,7 @@ function DJ() {
|
|
95257
95253
|
};
|
95258
95254
|
function je(Ne, oe, De) {
|
95259
95255
|
tm(Ne, (_e) => {
|
95260
|
-
_e.call(t, oe, De,
|
95256
|
+
_e.call(t, oe, De, on);
|
95261
95257
|
});
|
95262
95258
|
}
|
95263
95259
|
const Ue = function(oe) {
|
@@ -95429,9 +95425,9 @@ function DJ() {
|
|
95429
95425
|
let Ne = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
95430
95426
|
kn(Ne), J = !0;
|
95431
95427
|
}, t.clearConfig = function() {
|
95432
|
-
|
95428
|
+
on = null, J = !1;
|
95433
95429
|
}, t.isValidAttribute = function(Ne, oe, De) {
|
95434
|
-
|
95430
|
+
on || kn({});
|
95435
95431
|
const _e = wt(Ne), zt = wt(oe);
|
95436
95432
|
return ct(_e, zt, De);
|
95437
95433
|
}, t.addHook = function(Ne, oe) {
|
@@ -96243,7 +96239,7 @@ function zJ(e, t) {
|
|
96243
96239
|
function lFt(e) {
|
96244
96240
|
return e != null && (typeof e == "string" || e.nodeType && (e.nodeType === 1 || e.nodeType === 9 || e.nodeType === 11));
|
96245
96241
|
}
|
96246
|
-
const UC = new
|
96242
|
+
const UC = new rn("inline-ui"), uFt = () => new Qt({
|
96247
96243
|
key: UC,
|
96248
96244
|
state: {
|
96249
96245
|
init() {
|
@@ -96462,11 +96458,11 @@ ${Array.from(t.childNodes).map((o) => o.nodeType === Node.ELEMENT_NODE ? Mn.turn
|
|
96462
96458
|
`;
|
96463
96459
|
}
|
96464
96460
|
});
|
96465
|
-
const hFt = (e) =>
|
96461
|
+
const hFt = (e) => en.create({
|
96466
96462
|
name: "markdownPasteHandler",
|
96467
96463
|
addProseMirrorPlugins() {
|
96468
96464
|
return [
|
96469
|
-
new
|
96465
|
+
new Qt({
|
96470
96466
|
props: {
|
96471
96467
|
handlePaste: (t, n) => {
|
96472
96468
|
n.preventDefault();
|
@@ -97006,7 +97002,7 @@ const _k = [
|
|
97006
97002
|
ref: a,
|
97007
97003
|
toolVisibility: s,
|
97008
97004
|
setToolVisibility: l
|
97009
|
-
} = Qyt(
|
97005
|
+
} = Qyt(nt.NONE), [u, c] = Re(!1), [d, f] = Re(!1), { buttonRef: p } = ll();
|
97010
97006
|
Pe(() => {
|
97011
97007
|
if (e)
|
97012
97008
|
return e.setOptions({
|
@@ -97015,7 +97011,7 @@ const _k = [
|
|
97015
97011
|
if (x.shiftKey && x.ctrlKey && x.key.toLowerCase() === "s" || x.altKey && x.shiftKey && (x.key === "5" || x.key === "%"))
|
97016
97012
|
return x.preventDefault(), e.chain().focus().toggleStrike().run(), !0;
|
97017
97013
|
if ((x.altKey || x.metaKey) && x.key === "Enter")
|
97018
|
-
return x.preventDefault(), l(
|
97014
|
+
return x.preventDefault(), l(nt.LINK_POPUP), !0;
|
97019
97015
|
if ((navigator.platform.includes("Mac") ? x.shiftKey && x.metaKey : (x.ctrlKey || x.metaKey) && x.altKey) && x.key.toLowerCase() === "m") {
|
97020
97016
|
x.preventDefault();
|
97021
97017
|
const { state: w } = e, { from: F, to: A } = w.selection;
|
@@ -97058,14 +97054,14 @@ const _k = [
|
|
97058
97054
|
{
|
97059
97055
|
icon: "Baseline",
|
97060
97056
|
title: "Text Color",
|
97061
|
-
onClick: () => l(
|
97062
|
-
isActive: s ===
|
97057
|
+
onClick: () => l(nt.TEXT_COLOR),
|
97058
|
+
isActive: s === nt.TEXT_COLOR
|
97063
97059
|
},
|
97064
97060
|
{
|
97065
97061
|
icon: "Highlighter",
|
97066
97062
|
title: "Highlight",
|
97067
|
-
onClick: () => l(
|
97068
|
-
isActive: s ===
|
97063
|
+
onClick: () => l(nt.HIGHLIGHT),
|
97064
|
+
isActive: s === nt.HIGHLIGHT
|
97069
97065
|
},
|
97070
97066
|
null,
|
97071
97067
|
{
|
@@ -97105,7 +97101,7 @@ const _k = [
|
|
97105
97101
|
const C = e.chain().focus().command(
|
97106
97102
|
(D) => ea({ ...D, state: w, from: v, to: x })
|
97107
97103
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97108
|
-
return l(
|
97104
|
+
return l(nt.NONE), C;
|
97109
97105
|
}
|
97110
97106
|
const A = e.chain().focus().command(
|
97111
97107
|
(C) => qs({
|
@@ -97119,7 +97115,7 @@ const _k = [
|
|
97119
97115
|
}
|
97120
97116
|
})
|
97121
97117
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97122
|
-
return l(
|
97118
|
+
return l(nt.NONE), A;
|
97123
97119
|
},
|
97124
97120
|
isActive: (e == null ? void 0 : e.isActive("bulletList")) || !1
|
97125
97121
|
},
|
@@ -97135,7 +97131,7 @@ const _k = [
|
|
97135
97131
|
const C = e.chain().focus().command(
|
97136
97132
|
(D) => ea({ ...D, state: w, from: v, to: x })
|
97137
97133
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97138
|
-
return l(
|
97134
|
+
return l(nt.NONE), C;
|
97139
97135
|
}
|
97140
97136
|
const A = e.chain().focus().command(
|
97141
97137
|
(C) => qs({
|
@@ -97149,7 +97145,7 @@ const _k = [
|
|
97149
97145
|
}
|
97150
97146
|
})
|
97151
97147
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97152
|
-
return l(
|
97148
|
+
return l(nt.NONE), A;
|
97153
97149
|
},
|
97154
97150
|
isActive: (e == null ? void 0 : e.isActive("orderedList")) || !1
|
97155
97151
|
},
|
@@ -97165,7 +97161,7 @@ const _k = [
|
|
97165
97161
|
const C = e.chain().focus().command(
|
97166
97162
|
(D) => ea({ ...D, state: w, from: v, to: x })
|
97167
97163
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97168
|
-
return l(
|
97164
|
+
return l(nt.NONE), C;
|
97169
97165
|
}
|
97170
97166
|
const A = e.chain().focus().command(
|
97171
97167
|
(C) => qs({
|
@@ -97180,15 +97176,15 @@ const _k = [
|
|
97180
97176
|
}
|
97181
97177
|
})
|
97182
97178
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97183
|
-
return l(
|
97179
|
+
return l(nt.NONE), A;
|
97184
97180
|
},
|
97185
97181
|
isActive: (e == null ? void 0 : e.isActive("taskList")) || !1
|
97186
97182
|
},
|
97187
97183
|
{
|
97188
97184
|
icon: "AlignLeft",
|
97189
97185
|
title: "Alignment",
|
97190
|
-
onClick: () => l(
|
97191
|
-
isActive: s ===
|
97186
|
+
onClick: () => l(nt.ALIGNMENT),
|
97187
|
+
isActive: s === nt.ALIGNMENT
|
97192
97188
|
},
|
97193
97189
|
{
|
97194
97190
|
icon: "TextQuote",
|
@@ -97213,7 +97209,7 @@ const _k = [
|
|
97213
97209
|
{
|
97214
97210
|
icon: "Link",
|
97215
97211
|
title: "Link",
|
97216
|
-
onClick: () => l(
|
97212
|
+
onClick: () => l(nt.LINK),
|
97217
97213
|
isActive: (e == null ? void 0 : e.isActive("link")) || !1
|
97218
97214
|
},
|
97219
97215
|
{
|
@@ -97328,8 +97324,8 @@ const _k = [
|
|
97328
97324
|
{
|
97329
97325
|
icon: "Type",
|
97330
97326
|
title: "Text formating",
|
97331
|
-
onClick: () => l(
|
97332
|
-
isActive: s ===
|
97327
|
+
onClick: () => l(nt.TEXT_FORMATING),
|
97328
|
+
isActive: s === nt.TEXT_FORMATING
|
97333
97329
|
},
|
97334
97330
|
null,
|
97335
97331
|
{
|
@@ -97351,7 +97347,7 @@ const _k = [
|
|
97351
97347
|
const C = e.chain().focus().command(
|
97352
97348
|
(D) => ea({ ...D, state: w, from: v, to: x })
|
97353
97349
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97354
|
-
return l(
|
97350
|
+
return l(nt.NONE), C;
|
97355
97351
|
}
|
97356
97352
|
const A = e.chain().focus().command(
|
97357
97353
|
(C) => qs({
|
@@ -97366,7 +97362,7 @@ const _k = [
|
|
97366
97362
|
}
|
97367
97363
|
})
|
97368
97364
|
).setTextSelection({ from: v, to: x }).focus().run();
|
97369
|
-
return l(
|
97365
|
+
return l(nt.NONE), A;
|
97370
97366
|
},
|
97371
97367
|
isActive: !1
|
97372
97368
|
},
|
@@ -97425,7 +97421,7 @@ const _k = [
|
|
97425
97421
|
"div",
|
97426
97422
|
{
|
97427
97423
|
onClick: () => {
|
97428
|
-
e.chain().focus().toggleHighlight({ color: r.color }).run(), t(
|
97424
|
+
e.chain().focus().toggleHighlight({ color: r.color }).run(), t(nt.NONE);
|
97429
97425
|
},
|
97430
97426
|
className: xt(
|
97431
97427
|
"w-5 rounded-full flex items-center justify-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
|
@@ -97451,7 +97447,7 @@ const _k = [
|
|
97451
97447
|
{
|
97452
97448
|
variant: "ghost",
|
97453
97449
|
onClick: () => {
|
97454
|
-
e.chain().focus().unsetHighlight().run(), t(
|
97450
|
+
e.chain().focus().unsetHighlight().run(), t(nt.NONE);
|
97455
97451
|
},
|
97456
97452
|
className: "w-full justify-start mt-2 gap-1 !p-1 h-fit",
|
97457
97453
|
children: [
|
@@ -97478,7 +97474,7 @@ const _k = [
|
|
97478
97474
|
"button",
|
97479
97475
|
{
|
97480
97476
|
onClick: () => {
|
97481
|
-
r.command(t), n(
|
97477
|
+
r.command(t), n(nt.NONE);
|
97482
97478
|
},
|
97483
97479
|
style: {
|
97484
97480
|
fontFamily: r.title
|
@@ -97506,7 +97502,7 @@ const _k = [
|
|
97506
97502
|
"button",
|
97507
97503
|
{
|
97508
97504
|
onClick: () => {
|
97509
|
-
t == null || t.chain().focus().setTextAlign("left").run(), n(
|
97505
|
+
t == null || t.chain().focus().setTextAlign("left").run(), n(nt.NONE);
|
97510
97506
|
},
|
97511
97507
|
className: xt(
|
97512
97508
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
@@ -97519,7 +97515,7 @@ const _k = [
|
|
97519
97515
|
"button",
|
97520
97516
|
{
|
97521
97517
|
onClick: () => {
|
97522
|
-
t == null || t.chain().focus().setTextAlign("center").run(), n(
|
97518
|
+
t == null || t.chain().focus().setTextAlign("center").run(), n(nt.NONE);
|
97523
97519
|
},
|
97524
97520
|
className: xt(
|
97525
97521
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
@@ -97532,7 +97528,7 @@ const _k = [
|
|
97532
97528
|
"button",
|
97533
97529
|
{
|
97534
97530
|
onClick: () => {
|
97535
|
-
t == null || t.chain().focus().setTextAlign("right").run(), n(
|
97531
|
+
t == null || t.chain().focus().setTextAlign("right").run(), n(nt.NONE);
|
97536
97532
|
},
|
97537
97533
|
className: xt(
|
97538
97534
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
@@ -97545,7 +97541,7 @@ const _k = [
|
|
97545
97541
|
"button",
|
97546
97542
|
{
|
97547
97543
|
onClick: () => {
|
97548
|
-
t == null || t.chain().focus().setTextAlign("justify").run(), n(
|
97544
|
+
t == null || t.chain().focus().setTextAlign("justify").run(), n(nt.NONE);
|
97549
97545
|
},
|
97550
97546
|
className: xt(
|
97551
97547
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
@@ -97574,7 +97570,7 @@ const _k = [
|
|
97574
97570
|
return;
|
97575
97571
|
}
|
97576
97572
|
let c = a;
|
97577
|
-
!a.startsWith("http://") && !a.startsWith("https://") && (c = "https://" + a), t.chain().focus().extendMarkRange("link").setLink({ href: c }).run(), n(
|
97573
|
+
!a.startsWith("http://") && !a.startsWith("https://") && (c = "https://" + a), t.chain().focus().extendMarkRange("link").setLink({ href: c }).run(), n(nt.NONE), r && o && o(!1);
|
97578
97574
|
}, [a, t, r, o, i, n]);
|
97579
97575
|
return /* @__PURE__ */ M.jsxs(
|
97580
97576
|
"div",
|
@@ -97601,7 +97597,7 @@ const _k = [
|
|
97601
97597
|
{
|
97602
97598
|
variant: "secondary",
|
97603
97599
|
onClick: () => {
|
97604
|
-
t.chain().focus().unsetLink().run(), n(
|
97600
|
+
t.chain().focus().unsetLink().run(), n(nt.NONE);
|
97605
97601
|
},
|
97606
97602
|
className: "min-w-fit h-[36px]",
|
97607
97603
|
children: "Unset"
|
@@ -97670,7 +97666,7 @@ const _k = [
|
|
97670
97666
|
"div",
|
97671
97667
|
{
|
97672
97668
|
onClick: () => {
|
97673
|
-
e && (e.chain().focus().setColor(r.color).run(), t(
|
97669
|
+
e && (e.chain().focus().setColor(r.color).run(), t(nt.NONE));
|
97674
97670
|
},
|
97675
97671
|
className: xt(
|
97676
97672
|
"w-5 rounded-full flex justify-center items-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
|
@@ -97696,7 +97692,7 @@ const _k = [
|
|
97696
97692
|
{
|
97697
97693
|
variant: "ghost",
|
97698
97694
|
onClick: () => {
|
97699
|
-
e && (e.chain().focus().unsetColor().run(), t(
|
97695
|
+
e && (e.chain().focus().unsetColor().run(), t(nt.NONE));
|
97700
97696
|
},
|
97701
97697
|
className: "w-full justify-start mt-2 gap-1 !p-1 h-fit",
|
97702
97698
|
children: [
|
@@ -97759,7 +97755,7 @@ const _k = [
|
|
97759
97755
|
"button",
|
97760
97756
|
{
|
97761
97757
|
onClick: () => {
|
97762
|
-
o.command(e), t(
|
97758
|
+
o.command(e), t(nt.NONE);
|
97763
97759
|
},
|
97764
97760
|
className: xt(
|
97765
97761
|
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm color-text-default transition",
|
@@ -97803,7 +97799,7 @@ const _k = [
|
|
97803
97799
|
"button",
|
97804
97800
|
{
|
97805
97801
|
onClick: () => {
|
97806
|
-
o(a.value), t(
|
97802
|
+
o(a.value), t(nt.NONE);
|
97807
97803
|
},
|
97808
97804
|
className: xt(
|
97809
97805
|
"flex w-full items-center justify-center rounded px-2 py-1 text-center text-sm color-text-default transition",
|
@@ -97837,10 +97833,10 @@ const _k = [
|
|
97837
97833
|
const g = u.chain().focus().command(
|
97838
97834
|
(m) => ea({ ...m, state: f, from: c, to: d })
|
97839
97835
|
).setTextSelection({ from: c, to: d }).focus().run();
|
97840
|
-
return r(
|
97836
|
+
return r(nt.NONE), g;
|
97841
97837
|
}
|
97842
97838
|
const h = u.chain().focus().toggleNode("paragraph", "paragraph").setTextSelection({ from: c, to: d }).focus().run();
|
97843
|
-
return r(
|
97839
|
+
return r(nt.NONE), h;
|
97844
97840
|
},
|
97845
97841
|
isActive: () => (e == null ? void 0 : e.isActive("paragraph")) && !(e != null && e.isActive("bulletList")) && !(e != null && e.isActive("orderedList"))
|
97846
97842
|
},
|
@@ -97849,7 +97845,7 @@ const _k = [
|
|
97849
97845
|
description: "Big",
|
97850
97846
|
icon: "Heading1",
|
97851
97847
|
command: (u) => {
|
97852
|
-
u.chain().toggleHeading({ level: 1 }).run(), r(
|
97848
|
+
u.chain().toggleHeading({ level: 1 }).run(), r(nt.NONE);
|
97853
97849
|
},
|
97854
97850
|
isActive: () => e == null ? void 0 : e.isActive("heading", { level: 1 })
|
97855
97851
|
},
|
@@ -97858,7 +97854,7 @@ const _k = [
|
|
97858
97854
|
description: "Medium",
|
97859
97855
|
icon: "Heading2",
|
97860
97856
|
command: (u) => {
|
97861
|
-
u.chain().toggleHeading({ level: 2 }).run(), r(
|
97857
|
+
u.chain().toggleHeading({ level: 2 }).run(), r(nt.NONE);
|
97862
97858
|
},
|
97863
97859
|
isActive: () => e == null ? void 0 : e.isActive("heading", { level: 2 })
|
97864
97860
|
},
|
@@ -97867,7 +97863,7 @@ const _k = [
|
|
97867
97863
|
description: "Small",
|
97868
97864
|
icon: "Heading3",
|
97869
97865
|
command: (u) => {
|
97870
|
-
u.chain().toggleHeading({ level: 3 }).run(), r(
|
97866
|
+
u.chain().toggleHeading({ level: 3 }).run(), r(nt.NONE);
|
97871
97867
|
},
|
97872
97868
|
isActive: () => e == null ? void 0 : e.isActive("heading", { level: 3 })
|
97873
97869
|
}
|
@@ -97877,7 +97873,7 @@ const _k = [
|
|
97877
97873
|
description: "Left",
|
97878
97874
|
icon: "AlignLeft",
|
97879
97875
|
command: (u) => {
|
97880
|
-
u.chain().setTextAlign("left").focus().run(), r(
|
97876
|
+
u.chain().setTextAlign("left").focus().run(), r(nt.NONE);
|
97881
97877
|
},
|
97882
97878
|
isActive: () => e == null ? void 0 : e.isActive({ textAlign: "left" })
|
97883
97879
|
},
|
@@ -97886,7 +97882,7 @@ const _k = [
|
|
97886
97882
|
description: "Center",
|
97887
97883
|
icon: "AlignCenter",
|
97888
97884
|
command: (u) => {
|
97889
|
-
u.chain().setTextAlign("center").focus().run(), r(
|
97885
|
+
u.chain().setTextAlign("center").focus().run(), r(nt.NONE);
|
97890
97886
|
},
|
97891
97887
|
isActive: () => e == null ? void 0 : e.isActive({ textAlign: "center" })
|
97892
97888
|
},
|
@@ -97895,7 +97891,7 @@ const _k = [
|
|
97895
97891
|
description: "Right",
|
97896
97892
|
icon: "AlignRight",
|
97897
97893
|
command: (u) => {
|
97898
|
-
u.chain().setTextAlign("right").focus().run(), r(
|
97894
|
+
u.chain().setTextAlign("right").focus().run(), r(nt.NONE);
|
97899
97895
|
},
|
97900
97896
|
isActive: () => e == null ? void 0 : e.isActive({ textAlign: "right" })
|
97901
97897
|
}
|
@@ -97954,7 +97950,7 @@ const _k = [
|
|
97954
97950
|
title: "Link",
|
97955
97951
|
description: "Link",
|
97956
97952
|
icon: "Link",
|
97957
|
-
command: () => r(
|
97953
|
+
command: () => r(nt.LINK_POPUP),
|
97958
97954
|
isActive: () => !1
|
97959
97955
|
},
|
97960
97956
|
{
|
@@ -97977,7 +97973,7 @@ const _k = [
|
|
97977
97973
|
const g = u.chain().focus().command(
|
97978
97974
|
(m) => ea({ ...m, state: f, from: c, to: d })
|
97979
97975
|
).setTextSelection({ from: c, to: d }).focus().run();
|
97980
|
-
return r(
|
97976
|
+
return r(nt.NONE), g;
|
97981
97977
|
}
|
97982
97978
|
const h = u.chain().focus().command(
|
97983
97979
|
(g) => qs({
|
@@ -97991,7 +97987,7 @@ const _k = [
|
|
97991
97987
|
}
|
97992
97988
|
})
|
97993
97989
|
).setTextSelection({ from: c, to: d }).focus().run();
|
97994
|
-
return r(
|
97990
|
+
return r(nt.NONE), h;
|
97995
97991
|
},
|
97996
97992
|
isActive: () => e == null ? void 0 : e.isActive("bulletList")
|
97997
97993
|
},
|
@@ -98007,7 +98003,7 @@ const _k = [
|
|
98007
98003
|
const g = u.chain().focus().command(
|
98008
98004
|
(m) => ea({ ...m, state: f, from: c, to: d })
|
98009
98005
|
).setTextSelection({ from: c, to: d }).focus().run();
|
98010
|
-
return r(
|
98006
|
+
return r(nt.NONE), g;
|
98011
98007
|
}
|
98012
98008
|
const h = u.chain().focus().command(
|
98013
98009
|
(g) => qs({
|
@@ -98021,7 +98017,7 @@ const _k = [
|
|
98021
98017
|
}
|
98022
98018
|
})
|
98023
98019
|
).setTextSelection({ from: c, to: d }).focus().run();
|
98024
|
-
return r(
|
98020
|
+
return r(nt.NONE), h;
|
98025
98021
|
},
|
98026
98022
|
isActive: () => e == null ? void 0 : e.isActive("orderedList")
|
98027
98023
|
},
|
@@ -98040,7 +98036,7 @@ const _k = [
|
|
98040
98036
|
isOpen: t,
|
98041
98037
|
setIsOpen: n,
|
98042
98038
|
onCloseAutoFocus: () => {
|
98043
|
-
r((u) => u ===
|
98039
|
+
r((u) => u === nt.TEXT_FORMATING ? nt.NONE : u);
|
98044
98040
|
},
|
98045
98041
|
content: /* @__PURE__ */ M.jsxs("div", { className: "px-4 flex flex-col gap-2 w-full", children: [
|
98046
98042
|
/* @__PURE__ */ M.jsx("div", { className: "flex justify-start sm:justify-center items-center gap-1", children: o.map((u) => /* @__PURE__ */ M.jsx(
|
@@ -99219,7 +99215,7 @@ const WJ = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
|
|
99219
99215
|
version: h,
|
99220
99216
|
emptyComment: g
|
99221
99217
|
}) => {
|
99222
|
-
const m =
|
99218
|
+
const m = et(null), [b, k] = Re(!1), [v, x] = Re(!1), w = et(null), { setOpenReplyId: F } = ll(), { getEnsStatus: A, ensCache: C } = ll(), [D, T] = Re({
|
99223
99219
|
name: e,
|
99224
99220
|
isEns: !1
|
99225
99221
|
});
|
@@ -99484,7 +99480,7 @@ const WJ = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
|
|
99484
99480
|
isDisabled: o,
|
99485
99481
|
isCommentOwner: i
|
99486
99482
|
}) => {
|
99487
|
-
const [a, s] = Re(t), [l, u] = Re(""), [c, d] = Re(!0), [f, p] = Re(!!e), h =
|
99483
|
+
const [a, s] = Re(t), [l, u] = Re(""), [c, d] = Re(!0), [f, p] = Re(!!e), h = et(null), [g, m] = Re(!1), {
|
99488
99484
|
inlineCommentData: b,
|
99489
99485
|
setInlineCommentData: k,
|
99490
99486
|
addComment: v,
|
@@ -100268,8 +100264,8 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100268
100264
|
},
|
100269
100265
|
{
|
100270
100266
|
name: "Alignment",
|
100271
|
-
isActive: () => g ===
|
100272
|
-
command: () => h(
|
100267
|
+
isActive: () => g === nt.ALIGNMENT,
|
100268
|
+
command: () => h(nt.ALIGNMENT),
|
100273
100269
|
icon: "AlignLeft"
|
100274
100270
|
},
|
100275
100271
|
{
|
@@ -100281,13 +100277,13 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100281
100277
|
{
|
100282
100278
|
name: "Link",
|
100283
100279
|
isActive: () => t.isActive("link"),
|
100284
|
-
command: () => h(
|
100280
|
+
command: () => h(nt.LINK_POPUP),
|
100285
100281
|
icon: "Link"
|
100286
100282
|
},
|
100287
100283
|
{
|
100288
100284
|
name: "Scripts",
|
100289
|
-
isActive: () => g ===
|
100290
|
-
command: () => h(
|
100285
|
+
isActive: () => g === nt.SCRIPTS,
|
100286
|
+
command: () => h(nt.SCRIPTS),
|
100291
100287
|
icon: "Superscript"
|
100292
100288
|
},
|
100293
100289
|
{
|
@@ -100372,7 +100368,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100372
100368
|
shouldShow: AMt,
|
100373
100369
|
className: xe(
|
100374
100370
|
"flex gap-2 overflow-hidden rounded-lg min-w-fit w-full p-1 border color-bg-default items-center shadow-elevation-3",
|
100375
|
-
b || g ===
|
100371
|
+
b || g === nt.LINK_POPUP ? "!invisible" : "!visible",
|
100376
100372
|
f ? "!-translate-y-[120%]" : ""
|
100377
100373
|
),
|
100378
100374
|
style: {
|
@@ -100426,7 +100422,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100426
100422
|
"button",
|
100427
100423
|
{
|
100428
100424
|
className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 py-2 px-1 flex items-center justify-center w-fit max-w-14 min-w-14",
|
100429
|
-
onClick: () => h(
|
100425
|
+
onClick: () => h(nt.FONT_SIZE),
|
100430
100426
|
children: [
|
100431
100427
|
/* @__PURE__ */ M.jsx("span", { className: "text-body-sm line-clamp-1", children: _J(t, c) }),
|
100432
100428
|
/* @__PURE__ */ M.jsx(He, { name: "ChevronDown", size: "sm" })
|
@@ -100444,7 +100440,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100444
100440
|
}
|
100445
100441
|
)
|
100446
100442
|
},
|
100447
|
-
|
100443
|
+
nt.FONT_SIZE
|
100448
100444
|
),
|
100449
100445
|
/* @__PURE__ */ M.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
|
100450
100446
|
A.map((T, I) => T.name === "Bold" || T.name === "Italic" || T.name === "Underline" || T.name === "Strikethrough" || T.name === "Code" ? /* @__PURE__ */ M.jsxs("div", { className: "flex items-center", children: [
|
@@ -100468,7 +100464,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100468
100464
|
{
|
100469
100465
|
icon: "Baseline",
|
100470
100466
|
size: "sm",
|
100471
|
-
isActive: g ===
|
100467
|
+
isActive: g === nt.TEXT_COLOR
|
100472
100468
|
}
|
100473
100469
|
),
|
100474
100470
|
content: /* @__PURE__ */ M.jsx(
|
@@ -100480,7 +100476,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100480
100476
|
}
|
100481
100477
|
)
|
100482
100478
|
},
|
100483
|
-
|
100479
|
+
nt.TEXT_COLOR
|
100484
100480
|
),
|
100485
100481
|
/* @__PURE__ */ M.jsx(
|
100486
100482
|
Zr,
|
@@ -100491,7 +100487,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100491
100487
|
{
|
100492
100488
|
icon: "Highlighter",
|
100493
100489
|
size: "sm",
|
100494
|
-
isActive: g ===
|
100490
|
+
isActive: g === nt.HIGHLIGHT
|
100495
100491
|
}
|
100496
100492
|
),
|
100497
100493
|
content: /* @__PURE__ */ M.jsx(
|
@@ -100503,7 +100499,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100503
100499
|
}
|
100504
100500
|
)
|
100505
100501
|
},
|
100506
|
-
|
100502
|
+
nt.HIGHLIGHT
|
100507
100503
|
),
|
100508
100504
|
/* @__PURE__ */ M.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
|
100509
100505
|
/* @__PURE__ */ M.jsx(
|
@@ -100516,7 +100512,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
|
|
100516
100512
|
icon: T.icon,
|
100517
100513
|
variant: "ghost",
|
100518
100514
|
size: "sm",
|
100519
|
-
onClick: () => h(
|
100515
|
+
onClick: () => h(nt.ALIGNMENT)
|
100520
100516
|
}
|
100521
100517
|
),
|
100522
100518
|
className: "shadow-elevation-3",
|
@@ -100919,7 +100915,7 @@ const IMt = {
|
|
100919
100915
|
return /* @__PURE__ */ M.jsx(nQ.Provider, { value: r, children: e });
|
100920
100916
|
}, JC = fn({});
|
100921
100917
|
function QC(e) {
|
100922
|
-
const t =
|
100918
|
+
const t = et(null);
|
100923
100919
|
return t.current === null && (t.current = e()), t.current;
|
100924
100920
|
}
|
100925
100921
|
const y6 = fn(null), XC = fn({
|
@@ -100946,7 +100942,7 @@ class OMt extends L.Component {
|
|
100946
100942
|
}
|
100947
100943
|
}
|
100948
100944
|
function BMt({ children: e, isPresent: t }) {
|
100949
|
-
const n = M0(), r =
|
100945
|
+
const n = M0(), r = et(null), o = et({
|
100950
100946
|
width: 0,
|
100951
100947
|
height: 0,
|
100952
100948
|
top: 0,
|
@@ -101022,7 +101018,7 @@ function JN(e) {
|
|
101022
101018
|
}), t;
|
101023
101019
|
}
|
101024
101020
|
const eE = typeof window < "u", oQ = eE ? gl : Pe, og = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
101025
|
-
const [s, l] = rQ(a), u = It(() => JN(e), [e]), c = a && !s ? [] : u.map(im), d =
|
101021
|
+
const [s, l] = rQ(a), u = It(() => JN(e), [e]), c = a && !s ? [] : u.map(im), d = et(!0), f = et(u), p = QC(() => /* @__PURE__ */ new Map()), [h, g] = Re(u), [m, b] = Re(u);
|
101026
101022
|
oQ(() => {
|
101027
101023
|
d.current = !1, f.current = u;
|
101028
101024
|
for (let x = 0; x < m.length; x++) {
|
@@ -101303,7 +101299,7 @@ function JMt(e, t, n) {
|
|
101303
101299
|
const oE = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), QMt = "framerAppearId", uQ = "data-" + oE(QMt), { schedule: iE } = iQ(queueMicrotask, !1), cQ = fn({});
|
101304
101300
|
function XMt(e, t, n, r, o) {
|
101305
101301
|
var i, a;
|
101306
|
-
const { visualElement: s } = Mt(x6), l = Mt(aQ), u = Mt(y6), c = Mt(XC).reducedMotion, d =
|
101302
|
+
const { visualElement: s } = Mt(x6), l = Mt(aQ), u = Mt(y6), c = Mt(XC).reducedMotion, d = et(null);
|
101307
101303
|
r = r || l.renderer, !d.current && r && (d.current = r(e, {
|
101308
101304
|
visualState: t,
|
101309
101305
|
parent: s,
|
@@ -101314,11 +101310,11 @@ function XMt(e, t, n, r, o) {
|
|
101314
101310
|
}));
|
101315
101311
|
const f = d.current, p = Mt(cQ);
|
101316
101312
|
f && !f.projection && o && (f.type === "html" || f.type === "svg") && eCt(d.current, n, o, p);
|
101317
|
-
const h =
|
101313
|
+
const h = et(!1);
|
101318
101314
|
S3(() => {
|
101319
101315
|
f && h.current && f.update(n, u);
|
101320
101316
|
});
|
101321
|
-
const g = n[uQ], m =
|
101317
|
+
const g = n[uQ], m = et(!!g && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, g)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, g)));
|
101322
101318
|
return oQ(() => {
|
101323
101319
|
f && (h.current = !0, window.MotionIsMounted = !0, f.updateFeatures(), iE.render(f.render), m.current && f.animationState && f.animationState.animateChanges());
|
101324
101320
|
}), Pe(() => {
|
@@ -106021,7 +106017,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
|
|
106021
106017
|
"button",
|
106022
106018
|
{
|
106023
106019
|
className: "bg-transparent hover:!color-bg-default-hover rounded p-2 flex items-center justify-center gap-2 w-24",
|
106024
|
-
onClick: () => f(
|
106020
|
+
onClick: () => f(nt.FONT_FAMILY),
|
106025
106021
|
children: [
|
106026
106022
|
/* @__PURE__ */ M.jsx(
|
106027
106023
|
"span",
|
@@ -106061,7 +106057,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
|
|
106061
106057
|
}
|
106062
106058
|
)
|
106063
106059
|
},
|
106064
|
-
|
106060
|
+
nt.FONT_FAMILY
|
106065
106061
|
),
|
106066
106062
|
"font-dropdown-transiton"
|
106067
106063
|
),
|
@@ -106078,7 +106074,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
|
|
106078
106074
|
"button",
|
106079
106075
|
{
|
106080
106076
|
className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 p-2 flex items-center justify-center w-28",
|
106081
|
-
onClick: () => f(
|
106077
|
+
onClick: () => f(nt.HEADING),
|
106082
106078
|
children: [
|
106083
106079
|
/* @__PURE__ */ M.jsx("span", { className: "text-body-sm line-clamp-1", children: e != null && e.isActive("heading", { level: 1 }) ? "Heading 1" : e != null && e.isActive("heading", { level: 2 }) ? "Heading 2" : e != null && e.isActive("heading", { level: 3 }) ? "Heading 3" : "Text" }),
|
106084
106080
|
/* @__PURE__ */ M.jsx(He, { name: "ChevronDown", size: "sm" })
|
@@ -106094,7 +106090,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
|
|
106094
106090
|
}
|
106095
106091
|
)
|
106096
106092
|
},
|
106097
|
-
|
106093
|
+
nt.HEADING
|
106098
106094
|
),
|
106099
106095
|
"heading-dropdown"
|
106100
106096
|
),
|
@@ -106111,7 +106107,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
|
|
106111
106107
|
"button",
|
106112
106108
|
{
|
106113
106109
|
className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 py-2 px-1 flex items-center justify-center w-fit max-w-14 min-w-14",
|
106114
|
-
onClick: () => f(
|
106110
|
+
onClick: () => f(nt.FONT_SIZE),
|
106115
106111
|
children: [
|
106116
106112
|
/* @__PURE__ */ M.jsx("span", { className: "text-body-sm line-clamp-1", children: _J(e, F) }),
|
106117
106113
|
/* @__PURE__ */ M.jsx(He, { name: "ChevronDown", size: "sm" })
|
@@ -106129,7 +106125,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
|
|
106129
106125
|
}
|
106130
106126
|
)
|
106131
106127
|
},
|
106132
|
-
|
106128
|
+
nt.FONT_SIZE
|
106133
106129
|
),
|
106134
106130
|
"font-size-dropdown"
|
106135
106131
|
),
|
@@ -115516,7 +115512,7 @@ const vLt = {
|
|
115516
115512
|
remove: e.length - n - r,
|
115517
115513
|
insert: t.slice(n, t.length - r)
|
115518
115514
|
};
|
115519
|
-
}, MLt = FLt, Pn = new
|
115515
|
+
}, MLt = FLt, Pn = new rn("y-sync"), $s = new rn("y-undo"), pm = new rn("yjs-cursor"), Xa = (e, t) => e >>> t | e << 32 - t, CLt = (e) => Xa(e, 2) ^ Xa(e, 13) ^ Xa(e, 22), ELt = (e) => Xa(e, 6) ^ Xa(e, 11) ^ Xa(e, 25), ALt = (e) => Xa(e, 7) ^ Xa(e, 18) ^ e >>> 3, jLt = (e) => Xa(e, 17) ^ Xa(e, 19) ^ e >>> 10, DLt = new Uint32Array([
|
115520
115516
|
1116352408,
|
115521
115517
|
1899447441,
|
115522
115518
|
3049323471,
|
@@ -115663,7 +115659,7 @@ t.sv.get(e.id.client) > e.id.clock && !K0(t.ds, e.id), RLt = [{ light: "#ecd4443
|
|
115663
115659
|
mapping: i
|
115664
115660
|
} = {}) => {
|
115665
115661
|
let a = !1;
|
115666
|
-
const s = new _Lt(e, i), l = new
|
115662
|
+
const s = new _Lt(e, i), l = new Qt({
|
115667
115663
|
props: {
|
115668
115664
|
editable: (u) => {
|
115669
115665
|
const c = Pn.getState(u);
|
@@ -115837,7 +115833,7 @@ class _Lt {
|
|
115837
115833
|
).filter((r) => r !== null), n = this._tr.replace(
|
115838
115834
|
0,
|
115839
115835
|
this.prosemirrorView.state.doc.content.size,
|
115840
|
-
new
|
115836
|
+
new Qe(Oe.from(t), 0, 0)
|
115841
115837
|
);
|
115842
115838
|
n.setMeta(Pn, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
|
115843
115839
|
});
|
@@ -115854,7 +115850,7 @@ class _Lt {
|
|
115854
115850
|
).filter((o) => o !== null), r = this._tr.replace(
|
115855
115851
|
0,
|
115856
115852
|
this.prosemirrorView.state.doc.content.size,
|
115857
|
-
new
|
115853
|
+
new Qe(Oe.from(n), 0, 0)
|
115858
115854
|
);
|
115859
115855
|
if (t) {
|
115860
115856
|
const o = Ja(fa(t.anchor, 0), r.doc.content.size), i = Ja(fa(t.head, 0), r.doc.content.size);
|
@@ -115919,7 +115915,7 @@ class _Lt {
|
|
115919
115915
|
) : null).filter((d) => d !== null), c = this._tr.replace(
|
115920
115916
|
0,
|
115921
115917
|
this.prosemirrorView.state.doc.content.size,
|
115922
|
-
new
|
115918
|
+
new Qe(Oe.from(u), 0, 0)
|
115923
115919
|
);
|
115924
115920
|
this.prosemirrorView.dispatch(
|
115925
115921
|
c.setMeta(Pn, { isChangeOrigin: !0 })
|
@@ -115965,7 +115961,7 @@ class _Lt {
|
|
115965
115961
|
let a = this._tr.replace(
|
115966
115962
|
0,
|
115967
115963
|
this.prosemirrorView.state.doc.content.size,
|
115968
|
-
new
|
115964
|
+
new Qe(Oe.from(i), 0, 0)
|
115969
115965
|
);
|
115970
115966
|
zLt(a, this.beforeTransactionSelection, this), a = a.setMeta(Pn, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof bee }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && a.scrollIntoView(), this.prosemirrorView.dispatch(a);
|
115971
115967
|
});
|
@@ -116500,7 +116496,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
|
|
116500
116496
|
cursorBuilder: n = QLt,
|
116501
116497
|
selectionBuilder: r = tte,
|
116502
116498
|
getSelection: o = (a) => a.selection
|
116503
|
-
} = {}, i = "cursor") => new
|
116499
|
+
} = {}, i = "cursor") => new Qt({
|
116504
116500
|
key: pm,
|
116505
116501
|
state: {
|
116506
116502
|
init(a, s) {
|
@@ -116571,7 +116567,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
|
|
116571
116567
|
}, nNt = (e) => {
|
116572
116568
|
var t, n;
|
116573
116569
|
return ((n = (t = $s.getState(e)) == null ? void 0 : t.undoManager) == null ? void 0 : n.redo()) != null;
|
116574
|
-
}, rNt = /* @__PURE__ */ new Set(["paragraph"]), oNt = (e, t) => !(e instanceof Fn) || !(e.content instanceof ka) || !(e.content.type instanceof D1 || e.content.type instanceof Jr && t.has(e.content.type.nodeName)) || e.content.type._length === 0, iNt = ({ protectedNodes: e = rNt, trackedOrigins: t = [], undoManager: n = null } = {}) => new
|
116570
|
+
}, rNt = /* @__PURE__ */ new Set(["paragraph"]), oNt = (e, t) => !(e instanceof Fn) || !(e.content instanceof ka) || !(e.content.type instanceof D1 || e.content.type instanceof Jr && t.has(e.content.type.nodeName)) || e.content.type._length === 0, iNt = ({ protectedNodes: e = rNt, trackedOrigins: t = [], undoManager: n = null } = {}) => new Qt({
|
116575
116571
|
key: $s,
|
116576
116572
|
state: {
|
116577
116573
|
init: (r, o) => {
|
@@ -116614,7 +116610,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
|
|
116614
116610
|
}
|
116615
116611
|
};
|
116616
116612
|
}
|
116617
|
-
}), nte =
|
116613
|
+
}), nte = en.create({
|
116618
116614
|
name: "collaboration",
|
116619
116615
|
priority: 1e3,
|
116620
116616
|
addOptions() {
|
@@ -116686,8 +116682,8 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
|
|
116686
116682
|
i,
|
116687
116683
|
n,
|
116688
116684
|
// Only add the filterInvalidContent plugin if content checking is enabled
|
116689
|
-
this.editor.options.enableContentCheck && new
|
116690
|
-
key: new
|
116685
|
+
this.editor.options.enableContentCheck && new Qt({
|
116686
|
+
key: new rn("filterInvalidContent"),
|
116691
116687
|
filterTransaction: () => {
|
116692
116688
|
var a;
|
116693
116689
|
return this.storage.isDisabled && ((a = t.doc) === null || a === void 0 || a.destroy()), !0;
|
@@ -116698,7 +116694,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
|
|
116698
116694
|
}), KR = (e) => Array.from(e.entries()).map(([t, n]) => ({
|
116699
116695
|
clientId: t,
|
116700
116696
|
...n.user
|
116701
|
-
})), YR = () => null, aNt =
|
116697
|
+
})), YR = () => null, aNt = en.create({
|
116702
116698
|
name: "collaborationCursor",
|
116703
116699
|
priority: 999,
|
116704
116700
|
addOptions() {
|
@@ -117055,8 +117051,8 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
|
|
117055
117051
|
return [
|
117056
117052
|
// this plugin creates a code block for pasted content from VS Code
|
117057
117053
|
// we can also detect the copied code language
|
117058
|
-
new
|
117059
|
-
key: new
|
117054
|
+
new Qt({
|
117055
|
+
key: new rn("codeBlockVSCodeHandler"),
|
117060
117056
|
props: {
|
117061
117057
|
handlePaste: (e, t) => {
|
117062
117058
|
if (!t.clipboardData || this.editor.isActive(this.type.name))
|
@@ -117078,7 +117074,7 @@ const JLt = (e, t, n) => e !== t, QLt = (e) => {
|
|
117078
117074
|
content: "block+"
|
117079
117075
|
});
|
117080
117076
|
function vNt(e = {}) {
|
117081
|
-
return new
|
117077
|
+
return new Qt({
|
117082
117078
|
view(t) {
|
117083
117079
|
return new kNt(t, e);
|
117084
117080
|
}
|
@@ -117158,7 +117154,7 @@ class kNt {
|
|
117158
117154
|
this.editorView.dom.contains(t.relatedTarget) || this.setCursor(null);
|
117159
117155
|
}
|
117160
117156
|
}
|
117161
|
-
const ate =
|
117157
|
+
const ate = en.create({
|
117162
117158
|
name: "dropCursor",
|
117163
117159
|
addOptions() {
|
117164
117160
|
return {
|
@@ -117185,7 +117181,7 @@ class Jn extends jt {
|
|
117185
117181
|
return Jn.valid(r) ? new Jn(r) : jt.near(r);
|
117186
117182
|
}
|
117187
117183
|
content() {
|
117188
|
-
return
|
117184
|
+
return Qe.empty;
|
117189
117185
|
}
|
117190
117186
|
eq(t) {
|
117191
117187
|
return t instanceof Jn && t.head == this.head;
|
@@ -117308,7 +117304,7 @@ function FNt(e) {
|
|
117308
117304
|
return !0;
|
117309
117305
|
}
|
117310
117306
|
function MNt() {
|
117311
|
-
return new
|
117307
|
+
return new Qt({
|
117312
117308
|
props: {
|
117313
117309
|
decorations: jNt,
|
117314
117310
|
createSelectionBetween(e, t, n) {
|
@@ -117357,7 +117353,7 @@ function ANt(e, t) {
|
|
117357
117353
|
let o = Oe.empty;
|
117358
117354
|
for (let a = r.length - 1; a >= 0; a--)
|
117359
117355
|
o = Oe.from(r[a].createAndFill(null, o));
|
117360
|
-
let i = e.state.tr.replace(n.pos, n.pos, new
|
117356
|
+
let i = e.state.tr.replace(n.pos, n.pos, new Qe(o, 0, 0));
|
117361
117357
|
return i.setSelection(ft.near(i.doc.resolve(n.pos + 1))), e.dispatch(i), !1;
|
117362
117358
|
}
|
117363
117359
|
function jNt(e) {
|
@@ -117366,7 +117362,7 @@ function jNt(e) {
|
|
117366
117362
|
let t = document.createElement("div");
|
117367
117363
|
return t.className = "ProseMirror-gapcursor", yn.create(e.doc, [rr.widget(e.selection.head, t, { key: "gapcursor" })]);
|
117368
117364
|
}
|
117369
|
-
const ste =
|
117365
|
+
const ste = en.create({
|
117370
117366
|
name: "gapCursor",
|
117371
117367
|
addProseMirrorPlugins() {
|
117372
117368
|
return [
|
@@ -117782,12 +117778,12 @@ function b4(e) {
|
|
117782
117778
|
}
|
117783
117779
|
return yv;
|
117784
117780
|
}
|
117785
|
-
const zu = new
|
117781
|
+
const zu = new rn("history"), zNt = new rn("closeHistory");
|
117786
117782
|
function _Nt(e = {}) {
|
117787
117783
|
return e = {
|
117788
117784
|
depth: e.depth || 100,
|
117789
117785
|
newGroupDelay: e.newGroupDelay || 500
|
117790
|
-
}, new
|
117786
|
+
}, new Qt({
|
117791
117787
|
key: zu,
|
117792
117788
|
state: {
|
117793
117789
|
init() {
|
@@ -117820,7 +117816,7 @@ function ute(e, t) {
|
|
117820
117816
|
return !0;
|
117821
117817
|
};
|
117822
117818
|
}
|
117823
|
-
const cte = ute(!1, !0), dte = ute(!0, !0), PNt =
|
117819
|
+
const cte = ute(!1, !0), dte = ute(!0, !0), PNt = en.create({
|
117824
117820
|
name: "history",
|
117825
117821
|
addOptions() {
|
117826
117822
|
return {
|
@@ -118145,7 +118141,7 @@ const cte = ute(!1, !0), dte = ute(!0, !0), PNt = Xt.create({
|
|
118145
118141
|
}), QNt = Bt.create({
|
118146
118142
|
name: "text",
|
118147
118143
|
group: "inline"
|
118148
|
-
}), XNt =
|
118144
|
+
}), XNt = en.create({
|
118149
118145
|
name: "starterKit",
|
118150
118146
|
addExtensions() {
|
118151
118147
|
var e, t, n, r, o, i, a, s, l, u, c, d, f, p, h, g, m, b;
|
@@ -118179,7 +118175,7 @@ const cte = ute(!1, !0), dte = ute(!0, !0), PNt = Xt.create({
|
|
118179
118175
|
}
|
118180
118176
|
};
|
118181
118177
|
}
|
118182
|
-
}), tIt =
|
118178
|
+
}), tIt = en.create({
|
118183
118179
|
name: "fontFamily",
|
118184
118180
|
addOptions() {
|
118185
118181
|
return {
|
@@ -118211,7 +118207,7 @@ const cte = ute(!1, !0), dte = ute(!0, !0), PNt = Xt.create({
|
|
118211
118207
|
unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
|
118212
118208
|
};
|
118213
118209
|
}
|
118214
|
-
}), nIt =
|
118210
|
+
}), nIt = en.create({
|
118215
118211
|
name: "textAlign",
|
118216
118212
|
addOptions() {
|
118217
118213
|
return {
|
@@ -118954,8 +118950,8 @@ function vIt(e) {
|
|
118954
118950
|
return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
|
118955
118951
|
}
|
118956
118952
|
function kIt(e) {
|
118957
|
-
return new
|
118958
|
-
key: new
|
118953
|
+
return new Qt({
|
118954
|
+
key: new rn("autolink"),
|
118959
118955
|
appendTransaction: (t, n, r) => {
|
118960
118956
|
const o = t.some((u) => u.docChanged) && !n.doc.eq(r.doc), i = t.some((u) => u.getMeta("preventAutolink"));
|
118961
118957
|
if (!o || i)
|
@@ -118990,8 +118986,8 @@ function kIt(e) {
|
|
118990
118986
|
});
|
118991
118987
|
}
|
118992
118988
|
function wIt(e) {
|
118993
|
-
return new
|
118994
|
-
key: new
|
118989
|
+
return new Qt({
|
118990
|
+
key: new rn("handleClickLink"),
|
118995
118991
|
props: {
|
118996
118992
|
handleClick: (t, n, r) => {
|
118997
118993
|
var o, i;
|
@@ -119010,8 +119006,8 @@ function wIt(e) {
|
|
119010
119006
|
});
|
119011
119007
|
}
|
119012
119008
|
function FIt(e) {
|
119013
|
-
return new
|
119014
|
-
key: new
|
119009
|
+
return new Qt({
|
119010
|
+
key: new rn("handlePasteLink"),
|
119015
119011
|
props: {
|
119016
119012
|
handlePaste: (t, n, r) => {
|
119017
119013
|
const { state: o } = t, { selection: i } = o, { empty: a } = i;
|
@@ -119151,7 +119147,7 @@ const CIt = sr.create({
|
|
119151
119147
|
type: this.type
|
119152
119148
|
})), e;
|
119153
119149
|
}
|
119154
|
-
}), EIt =
|
119150
|
+
}), EIt = en.create({
|
119155
119151
|
name: "placeholder",
|
119156
119152
|
addOptions() {
|
119157
119153
|
return {
|
@@ -119165,8 +119161,8 @@ const CIt = sr.create({
|
|
119165
119161
|
},
|
119166
119162
|
addProseMirrorPlugins() {
|
119167
119163
|
return [
|
119168
|
-
new
|
119169
|
-
key: new
|
119164
|
+
new Qt({
|
119165
|
+
key: new rn("placeholder"),
|
119170
119166
|
props: {
|
119171
119167
|
decorations: ({ doc: e, selection: t }) => {
|
119172
119168
|
const n = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = t, o = [];
|
@@ -119437,13 +119433,13 @@ const CIt = sr.create({
|
|
119437
119433
|
["hr"]
|
119438
119434
|
];
|
119439
119435
|
}
|
119440
|
-
}), RIt =
|
119436
|
+
}), RIt = en.create({
|
119441
119437
|
name: "columnExtension",
|
119442
119438
|
addExtensions() {
|
119443
119439
|
const e = [];
|
119444
119440
|
return this.options.column !== !1 && e.push(QJ), this.options.columns !== !1 && e.push(Cy), e;
|
119445
119441
|
}
|
119446
|
-
}), OIt =
|
119442
|
+
}), OIt = en.create({
|
119447
119443
|
name: "CustomKeymap",
|
119448
119444
|
addCommands() {
|
119449
119445
|
return {
|
@@ -119464,7 +119460,7 @@ const CIt = sr.create({
|
|
119464
119460
|
}
|
119465
119461
|
};
|
119466
119462
|
}
|
119467
|
-
}), BIt =
|
119463
|
+
}), BIt = en.create({
|
119468
119464
|
name: "color",
|
119469
119465
|
addOptions() {
|
119470
119466
|
return {
|
@@ -119591,7 +119587,7 @@ const Fte = ({
|
|
119591
119587
|
updateAttributes: t,
|
119592
119588
|
deleteNode: n
|
119593
119589
|
}) => {
|
119594
|
-
const { isPreviewMode: r } = rg(), [o, i] = Re(), [a, s] = Re(0), [l, u] = Re(0), [c, d] = Re({}), f =
|
119590
|
+
const { isPreviewMode: r } = rg(), [o, i] = Re(), [a, s] = Re(0), [l, u] = Re(0), [c, d] = Re({}), f = et(null), [p, h] = Re(!1), [g, m] = Re(!1), [b, k] = Re(null), v = et(null), x = () => {
|
119595
119591
|
const Q = {};
|
119596
119592
|
cO.forEach(({ tooltip: K, isActive: ne }) => {
|
119597
119593
|
Q[K] = !!(ne != null && ne(e.attrs));
|
@@ -120999,17 +120995,17 @@ const zs = /* @__PURE__ */ new WeakMap(), t1 = () => {
|
|
120999
120995
|
}, lo = (
|
121000
120996
|
/*#__NOINLINE__*/
|
121001
120997
|
t1()
|
121002
|
-
), N7 = Object,
|
120998
|
+
), N7 = Object, an = (e) => e === lo, Oa = (e) => typeof e == "function", S1 = (e, t) => ({
|
121003
120999
|
...e,
|
121004
121000
|
...t
|
121005
121001
|
}), Ite = (e) => Oa(e.then), Dv = {}, xm = {}, FA = "undefined", mg = typeof window != FA, I7 = typeof document != FA, YOt = mg && "Deno" in window, $Ot = () => mg && typeof window.requestAnimationFrame != FA, Rte = (e, t) => {
|
121006
121002
|
const n = zs.get(e);
|
121007
121003
|
return [
|
121008
121004
|
// Getter
|
121009
|
-
() => !
|
121005
|
+
() => !an(t) && e.get(t) || Dv,
|
121010
121006
|
// Setter
|
121011
121007
|
(r) => {
|
121012
|
-
if (!
|
121008
|
+
if (!an(t)) {
|
121013
121009
|
const o = e.get(t);
|
121014
121010
|
t in xm || (xm[t] = o), n[5](t, S1(o, r), o || Dv);
|
121015
121011
|
}
|
@@ -121017,7 +121013,7 @@ const zs = /* @__PURE__ */ new WeakMap(), t1 = () => {
|
|
121017
121013
|
// Subscriber
|
121018
121014
|
n[6],
|
121019
121015
|
// Get server cache snapshot
|
121020
|
-
() => !
|
121016
|
+
() => !an(t) && t in xm ? xm[t] : !an(t) && e.get(t) || Dv
|
121021
121017
|
];
|
121022
121018
|
};
|
121023
121019
|
let R7 = !0;
|
@@ -121029,7 +121025,7 @@ const JOt = () => R7, [O7, B7] = mg && window.addEventListener ? [
|
|
121029
121025
|
t1
|
121030
121026
|
], QOt = () => {
|
121031
121027
|
const e = I7 && document.visibilityState;
|
121032
|
-
return
|
121028
|
+
return an(e) || e !== "hidden";
|
121033
121029
|
}, XOt = (e) => (I7 && document.addEventListener("visibilitychange", e), O7("focus", e), () => {
|
121034
121030
|
I7 && document.removeEventListener("visibilitychange", e), B7("focus", e);
|
121035
121031
|
}), eBt = (e) => {
|
@@ -121065,8 +121061,8 @@ const z7 = (e) => {
|
|
121065
121061
|
if (o) {
|
121066
121062
|
i = "#";
|
121067
121063
|
const s = N7.keys(e).sort();
|
121068
|
-
for (; !
|
121069
|
-
|
121064
|
+
for (; !an(a = s.pop()); )
|
121065
|
+
an(e[a]) || (i += a + ":" + z7(e[a]) + ",");
|
121070
121066
|
vm.set(e, i);
|
121071
121067
|
}
|
121072
121068
|
} else
|
@@ -121121,7 +121117,7 @@ async function Ote(...e) {
|
|
121121
121117
|
A,
|
121122
121118
|
0
|
121123
121119
|
];
|
121124
|
-
const C = !
|
121120
|
+
const C = !an(l), D = h(), T = D.data, I = D._c, B = an(I) ? T : I;
|
121125
121121
|
if (C && (l = Oa(l) ? l(B, T) : l, g({
|
121126
121122
|
data: l,
|
121127
121123
|
_c: B
|
@@ -121211,7 +121207,7 @@ const wO = (e, t) => {
|
|
121211
121207
|
];
|
121212
121208
|
}, sBt = (e, t, n, r, o) => {
|
121213
121209
|
const i = n.errorRetryCount, a = o.retryCount, s = ~~((Math.random() + 0.5) * (1 << (a < 8 ? a : 8))) * n.errorRetryInterval;
|
121214
|
-
!
|
121210
|
+
!an(i) && a > i || setTimeout(r, s, o);
|
121215
121211
|
}, lBt = L7, [Bte, uBt] = aBt(/* @__PURE__ */ new Map()), cBt = S1(
|
121216
121212
|
{
|
121217
121213
|
// events
|
@@ -121261,7 +121257,7 @@ const wO = (e, t) => {
|
|
121261
121257
|
if (a.startsWith(pBt))
|
121262
121258
|
return n(...i);
|
121263
121259
|
const l = s[a];
|
121264
|
-
return
|
121260
|
+
return an(l) ? n(...i) : (delete s[a], l);
|
121265
121261
|
}), r), xBt = hBt.concat(bBt), vBt = (e) => function(...n) {
|
121266
121262
|
const r = yBt(), [o, i, a] = mBt(n), s = dBt(r, a);
|
121267
121263
|
let l = e;
|
@@ -121299,18 +121295,18 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
|
|
121299
121295
|
}), Iv = {
|
121300
121296
|
dedupe: !0
|
121301
121297
|
}, wBt = (e, t, n) => {
|
121302
|
-
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: f } = n, [p, h, g, m] = zs.get(r), [b, k] = MA(e), v =
|
121298
|
+
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: f } = n, [p, h, g, m] = zs.get(r), [b, k] = MA(e), v = et(!1), x = et(!1), w = et(b), F = et(t), A = et(n), C = () => A.current, D = () => C().isVisible() && C().isOnline(), [T, I, B, W] = Rte(r, b), q = et({}).current, U = an(a) ? an(n.fallback) ? lo : n.fallback[b] : a, P = (Ae, te) => {
|
121303
121299
|
for (const J in q) {
|
121304
121300
|
const $ = J;
|
121305
121301
|
if ($ === "data") {
|
121306
|
-
if (!o(Ae[$], te[$]) && (!
|
121302
|
+
if (!o(Ae[$], te[$]) && (!an(Ae[$]) || !o(pe, te[$])))
|
121307
121303
|
return !1;
|
121308
121304
|
} else if (te[$] !== Ae[$])
|
121309
121305
|
return !1;
|
121310
121306
|
}
|
121311
121307
|
return !0;
|
121312
121308
|
}, _ = It(() => {
|
121313
|
-
const Ae = !b || !t ? !1 :
|
121309
|
+
const Ae = !b || !t ? !1 : an(s) ? C().isPaused() || i ? !1 : l !== !1 : s, te = (E) => {
|
121314
121310
|
const N = S1(E);
|
121315
121311
|
return delete N._k, Ae ? {
|
121316
121312
|
isValidating: !0,
|
@@ -121338,7 +121334,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
|
|
121338
121334
|
r,
|
121339
121335
|
b
|
121340
121336
|
]
|
121341
|
-
), _[0], _[1]), Z = !v.current, Q = p[b] && p[b].length > 0, K = G.data, ne =
|
121337
|
+
), _[0], _[1]), Z = !v.current, Q = p[b] && p[b].length > 0, K = G.data, ne = an(K) ? U && Ite(U) ? Nv(U) : U : K, le = G.error, ce = et(ne), pe = f ? an(K) ? an(ce.current) ? ne : ce.current : K : ne, X = Q && !an(le) ? !1 : Z && !an(s) ? s : C().isPaused() ? !1 : i ? an(ne) ? !1 : l : an(ne) || l, de = !!(b && t && Z && X), Fe = an(G.isValidating) ? de : G.isValidating, Ie = an(G.isLoading) ? de : G.isLoading, Le = Ze(
|
121342
121338
|
async (Ae) => {
|
121343
121339
|
const te = F.current;
|
121344
121340
|
if (!b || !te || x.current || C().isPaused())
|
@@ -121355,9 +121351,9 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
|
|
121355
121351
|
}, fe = {
|
121356
121352
|
isValidating: !0
|
121357
121353
|
};
|
121358
|
-
|
121354
|
+
an(T().data) && (fe.isLoading = !0);
|
121359
121355
|
try {
|
121360
|
-
if (V && (I(fe), n.loadingTimeout &&
|
121356
|
+
if (V && (I(fe), n.loadingTimeout && an(T().data) && setTimeout(() => {
|
121361
121357
|
ie && E() && C().onLoadingSlow(b, n);
|
121362
121358
|
}, n.loadingTimeout), g[b] = [
|
121363
121359
|
te(k),
|
@@ -121366,7 +121362,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
|
|
121366
121362
|
return V && E() && C().onDiscarded(b), !1;
|
121367
121363
|
N.error = lo;
|
121368
121364
|
const he = h[b];
|
121369
|
-
if (!
|
121365
|
+
if (!an(he) && // case 1
|
121370
121366
|
($ <= he[0] || // case 2
|
121371
121367
|
$ <= he[1] || // case 3
|
121372
121368
|
he[1] === 0))
|
@@ -121408,7 +121404,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
|
|
121408
121404
|
[]
|
121409
121405
|
);
|
121410
121406
|
if (Sv(() => {
|
121411
|
-
F.current = t, A.current = n,
|
121407
|
+
F.current = t, A.current = n, an(K) || (ce.current = K);
|
121412
121408
|
}), Sv(() => {
|
121413
121409
|
if (!b) return;
|
121414
121410
|
const Ae = Le.bind(lo, Iv);
|
@@ -121429,7 +121425,7 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
|
|
121429
121425
|
});
|
121430
121426
|
return x.current = !1, w.current = b, v.current = !0, I({
|
121431
121427
|
_k: k
|
121432
|
-
}), X && (
|
121428
|
+
}), X && (an(ne) || r2 ? Ae() : rBt(Ae)), () => {
|
121433
121429
|
x.current = !0, $();
|
121434
121430
|
};
|
121435
121431
|
}, [
|
@@ -121451,18 +121447,18 @@ const Nv = ke.use || // This extra generic is to avoid TypeScript mixing up the
|
|
121451
121447
|
c,
|
121452
121448
|
d,
|
121453
121449
|
b
|
121454
|
-
]), iw(pe), i &&
|
121450
|
+
]), iw(pe), i && an(ne) && b) {
|
121455
121451
|
if (!vO && r2)
|
121456
121452
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
121457
121453
|
F.current = t, A.current = n, x.current = !1;
|
121458
121454
|
const Ae = m[b];
|
121459
|
-
if (!
|
121455
|
+
if (!an(Ae)) {
|
121460
121456
|
const te = Me(Ae);
|
121461
121457
|
Nv(te);
|
121462
121458
|
}
|
121463
|
-
if (
|
121459
|
+
if (an(le)) {
|
121464
121460
|
const te = Le(Iv);
|
121465
|
-
|
121461
|
+
an(pe) || (te.status = "fulfilled", te.value = !0), Nv(te);
|
121466
121462
|
} else
|
121467
121463
|
throw le;
|
121468
121464
|
}
|
@@ -121614,7 +121610,7 @@ const TBt = ({
|
|
121614
121610
|
collapsedHeadings: r,
|
121615
121611
|
setCollapsedHeadings: o
|
121616
121612
|
}) => {
|
121617
|
-
const i =
|
121613
|
+
const i = et(!1), a = et(null), s = et(""), l = Ze(() => {
|
121618
121614
|
const { doc: m } = n.state, b = m.content.content.filter(
|
121619
121615
|
(F) => {
|
121620
121616
|
var A, C, D;
|
@@ -125950,7 +125946,7 @@ function eo(e) {
|
|
125950
125946
|
}
|
125951
125947
|
return t;
|
125952
125948
|
}
|
125953
|
-
const Yl = new
|
125949
|
+
const Yl = new rn("selectingCells");
|
125954
125950
|
function J0(e) {
|
125955
125951
|
for (let t = e.depth - 1; t > 0; t--) if (e.node(t).type.spec.tableRole == "row") return e.node(0).resolve(e.before(t + 1));
|
125956
125952
|
return null;
|
@@ -126065,22 +126061,22 @@ class nn extends jt {
|
|
126065
126061
|
a.push(t.child(l).copy(Oe.from(u)));
|
126066
126062
|
}
|
126067
126063
|
const s = this.isColSelection() && this.isRowSelection() ? t : a;
|
126068
|
-
return new
|
126064
|
+
return new Qe(Oe.from(s), 1, 1);
|
126069
126065
|
}
|
126070
|
-
replace(t, n =
|
126066
|
+
replace(t, n = Qe.empty) {
|
126071
126067
|
let r = t.steps.length, o = this.ranges;
|
126072
126068
|
for (let a = 0; a < o.length; a++) {
|
126073
126069
|
let {
|
126074
126070
|
$from: s,
|
126075
126071
|
$to: l
|
126076
126072
|
} = o[a], u = t.mapping.slice(r);
|
126077
|
-
t.replace(u.map(s.pos), u.map(l.pos), a ?
|
126073
|
+
t.replace(u.map(s.pos), u.map(l.pos), a ? Qe.empty : n);
|
126078
126074
|
}
|
126079
126075
|
let i = jt.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)), -1);
|
126080
126076
|
i && t.setSelection(i);
|
126081
126077
|
}
|
126082
126078
|
replaceWith(t, n) {
|
126083
|
-
this.replace(t, new
|
126079
|
+
this.replace(t, new Qe(Oe.from(n), 0, 0));
|
126084
126080
|
}
|
126085
126081
|
forEachCell(t) {
|
126086
126082
|
let n = this.$anchorCell.node(-1), r = Qn.get(n), o = this.$anchorCell.start(-1), i = r.cellsInRect(r.rectBetween(this.$anchorCell.pos - o, this.$headCell.pos - o));
|
@@ -126221,10 +126217,10 @@ function kzt(e) {
|
|
126221
126217
|
if (i == "row")
|
126222
126218
|
for (let l = 0; l < t.childCount; l++) {
|
126223
126219
|
let u = t.child(l).content, c = l ? 0 : Math.max(0, n - 1), d = l < t.childCount - 1 ? 0 : Math.max(0, r - 1);
|
126224
|
-
(c || d) && (u = V7(eo(a).row, new
|
126220
|
+
(c || d) && (u = V7(eo(a).row, new Qe(u, c, d)).content), s.push(u);
|
126225
126221
|
}
|
126226
126222
|
else if (i == "cell" || i == "header_cell")
|
126227
|
-
s.push(n || r ? V7(eo(a).row, new
|
126223
|
+
s.push(n || r ? V7(eo(a).row, new Qe(t, n, r)).content : t);
|
126228
126224
|
else
|
126229
126225
|
return null;
|
126230
126226
|
return wzt(a, s);
|
@@ -126358,7 +126354,7 @@ function BO(e, t, n, r, o) {
|
|
126358
126354
|
Mzt(d, a, i, n, u, c, f) && p(), RO(d, a, i, n, l, u, s, f) && p(), RO(d, a, i, n, l, u, c, f) && p(), OO(d, a, i, n, s, c, l, f) && p(), OO(d, a, i, n, s, c, u, f) && p();
|
126359
126355
|
for (let h = s; h < c; h++) {
|
126360
126356
|
let g = a.positionAt(h, l, i), m = a.positionAt(h, u, i);
|
126361
|
-
d.replace(d.mapping.slice(f).map(g + n), d.mapping.slice(f).map(m + n), new
|
126357
|
+
d.replace(d.mapping.slice(f).map(g + n), d.mapping.slice(f).map(m + n), new Qe(o.rows[h - s], 0, 0));
|
126362
126358
|
}
|
126363
126359
|
p(), d.setSelection(new nn(d.doc.resolve(n + a.positionAt(s, l, i)), d.doc.resolve(n + a.positionAt(c - 1, u - 1, i)))), t(d);
|
126364
126360
|
}
|
@@ -126413,7 +126409,7 @@ function Fm(e, t) {
|
|
126413
126409
|
if (t) {
|
126414
126410
|
let r = e.tr, o = eo(e.schema).cell.createAndFill().content;
|
126415
126411
|
n.forEachCell((i, a) => {
|
126416
|
-
i.content.eq(o) || r.replace(r.mapping.map(a + 1), r.mapping.map(a + i.nodeSize - 1), new
|
126412
|
+
i.content.eq(o) || r.replace(r.mapping.map(a + 1), r.mapping.map(a + i.nodeSize - 1), new Qe(o, 0, 0));
|
126417
126413
|
}), r.docChanged && t(r);
|
126418
126414
|
}
|
126419
126415
|
return !0;
|
@@ -126497,7 +126493,7 @@ function Bv(e, t) {
|
|
126497
126493
|
});
|
126498
126494
|
return n && n ? J0(e.state.doc.resolve(n.pos)) : null;
|
126499
126495
|
}
|
126500
|
-
const Dzt = new
|
126496
|
+
const Dzt = new rn("fix-tables");
|
126501
126497
|
function Qte(e, t, n, r) {
|
126502
126498
|
let o = e.childCount, i = t.childCount;
|
126503
126499
|
e: for (let a = 0, s = 0; a < i; a++) {
|
@@ -126918,14 +126914,14 @@ function U7(e, t, n, r, o, i) {
|
|
126918
126914
|
}
|
126919
126915
|
s ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
|
126920
126916
|
}
|
126921
|
-
const ji = new
|
126917
|
+
const ji = new rn("tableColumnResizing");
|
126922
126918
|
function Kzt({
|
126923
126919
|
handleWidth: e = 5,
|
126924
126920
|
cellMinWidth: t = 25,
|
126925
126921
|
View: n = Zzt,
|
126926
126922
|
lastColumnResizable: r = !0
|
126927
126923
|
} = {}) {
|
126928
|
-
return new
|
126924
|
+
return new Qt({
|
126929
126925
|
key: ji,
|
126930
126926
|
state: {
|
126931
126927
|
init(i, a) {
|
@@ -127099,7 +127095,7 @@ function r_t(e, t) {
|
|
127099
127095
|
function o_t({
|
127100
127096
|
allowTableNodeSelection: e = !1
|
127101
127097
|
} = {}) {
|
127102
|
-
return new
|
127098
|
+
return new Qt({
|
127103
127099
|
key: Yl,
|
127104
127100
|
// This piece of state is used to remember when a mouse-drag
|
127105
127101
|
// cell-selection is happening, so that it can continue even as
|
@@ -127404,7 +127400,7 @@ function d_t(e, t) {
|
|
127404
127400
|
}
|
127405
127401
|
var zv = ine ? gl : Pe;
|
127406
127402
|
function f_t(e) {
|
127407
|
-
var t =
|
127403
|
+
var t = et();
|
127408
127404
|
return t.current || (t.current = typeof e == "function" ? e() : e), t.current;
|
127409
127405
|
}
|
127410
127406
|
function YO(e, t, n) {
|
@@ -127668,7 +127664,7 @@ const y_t = [
|
|
127668
127664
|
selected: n,
|
127669
127665
|
editor: r
|
127670
127666
|
}) => {
|
127671
|
-
const [o, i] = Re(!1), { isPreviewMode: a } = rg(), s =
|
127667
|
+
const [o, i] = Re(!1), { isPreviewMode: a } = rg(), s = et(null), l = () => {
|
127672
127668
|
const { from: c, to: d } = r.state.selection, f = t(), p = f + e.nodeSize;
|
127673
127669
|
i(f <= c && d <= p);
|
127674
127670
|
};
|
@@ -127945,7 +127941,7 @@ const y_t = [
|
|
127945
127941
|
function JO({ types: e, node: t }) {
|
127946
127942
|
return t != null && t.type ? Array.isArray(e) && e.includes(t.type) || t.type === e : !1;
|
127947
127943
|
}
|
127948
|
-
const M_t =
|
127944
|
+
const M_t = en.create({
|
127949
127945
|
name: "trailingNode",
|
127950
127946
|
addOptions() {
|
127951
127947
|
return {
|
@@ -127954,9 +127950,9 @@ const M_t = Xt.create({
|
|
127954
127950
|
};
|
127955
127951
|
},
|
127956
127952
|
addProseMirrorPlugins() {
|
127957
|
-
const e = new
|
127953
|
+
const e = new rn(this.name), t = Object.entries(this.editor.schema.nodes).map(([, n]) => n).filter((n) => this.options.notAfter.includes(n.name));
|
127958
127954
|
return [
|
127959
|
-
new
|
127955
|
+
new Qt({
|
127960
127956
|
key: e,
|
127961
127957
|
appendTransaction: (n, r, o) => {
|
127962
127958
|
const { doc: i, tr: a, schema: s } = o;
|
@@ -128141,7 +128137,7 @@ const M_t = Xt.create({
|
|
128141
128137
|
}, [o]), Pe(() => {
|
128142
128138
|
t == null || t.chain().focus();
|
128143
128139
|
}, []);
|
128144
|
-
const g =
|
128140
|
+
const g = et(null);
|
128145
128141
|
return Pe(() => {
|
128146
128142
|
const m = setTimeout(() => {
|
128147
128143
|
var b;
|
@@ -128921,7 +128917,7 @@ function G_t(e) {
|
|
128921
128917
|
}
|
128922
128918
|
const Z_t = /* @__PURE__ */ pc(R_t);
|
128923
128919
|
var K_t = Object.defineProperty, Y_t = (e, t, n) => t in e ? K_t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x3 = (e, t, n) => (Y_t(e, typeof t != "symbol" ? t + "" : t, n), n);
|
128924
|
-
const $_t =
|
128920
|
+
const $_t = en.create({
|
128925
128921
|
name: "markdownTightLists",
|
128926
128922
|
addOptions: () => ({
|
128927
128923
|
tight: !0,
|
@@ -129655,7 +129651,7 @@ class GPt {
|
|
129655
129651
|
return t.renderer.rules.hardbreak = n(t.renderer.rules.hardbreak), t.renderer.rules.softbreak = n(t.renderer.rules.softbreak), t.renderer.rules.fence = n(t.renderer.rules.fence), t.renderer.rules.code_block = n(t.renderer.rules.code_block), t.renderer.renderToken = n(t.renderer.renderToken.bind(t.renderer)), t;
|
129656
129652
|
}
|
129657
129653
|
}
|
129658
|
-
const ZPt =
|
129654
|
+
const ZPt = en.create({
|
129659
129655
|
name: "markdownClipboard",
|
129660
129656
|
addOptions() {
|
129661
129657
|
return {
|
@@ -129664,8 +129660,8 @@ const ZPt = Xt.create({
|
|
129664
129660
|
};
|
129665
129661
|
},
|
129666
129662
|
addProseMirrorPlugins() {
|
129667
|
-
return [new
|
129668
|
-
key: new
|
129663
|
+
return [new Qt({
|
129664
|
+
key: new rn("markdownClipboard"),
|
129669
129665
|
props: {
|
129670
129666
|
clipboardTextParser: (e, t, n) => {
|
129671
129667
|
if (n || !this.options.transformPastedText)
|
@@ -129685,7 +129681,7 @@ const ZPt = Xt.create({
|
|
129685
129681
|
}
|
129686
129682
|
})];
|
129687
129683
|
}
|
129688
|
-
}), KPt =
|
129684
|
+
}), KPt = en.create({
|
129689
129685
|
name: "markdown",
|
129690
129686
|
priority: 50,
|
129691
129687
|
addOptions() {
|
@@ -129802,7 +129798,7 @@ const ZPt = Xt.create({
|
|
129802
129798
|
}), mHt = (e) => Ft({
|
129803
129799
|
find: /(?:^|\s)(3\/4)\s$/,
|
129804
129800
|
replace: e ?? "¾"
|
129805
|
-
}), yHt =
|
129801
|
+
}), yHt = en.create({
|
129806
129802
|
name: "typography",
|
129807
129803
|
addOptions() {
|
129808
129804
|
return {
|
@@ -129834,7 +129830,7 @@ const ZPt = Xt.create({
|
|
129834
129830
|
const e = [];
|
129835
129831
|
return this.options.emDash !== !1 && e.push(YPt(this.options.emDash)), this.options.ellipsis !== !1 && e.push($Pt(this.options.ellipsis)), this.options.openDoubleQuote !== !1 && e.push(JPt(this.options.openDoubleQuote)), this.options.closeDoubleQuote !== !1 && e.push(QPt(this.options.closeDoubleQuote)), this.options.openSingleQuote !== !1 && e.push(XPt(this.options.openSingleQuote)), this.options.closeSingleQuote !== !1 && e.push(eHt(this.options.closeSingleQuote)), this.options.leftArrow !== !1 && e.push(tHt(this.options.leftArrow)), this.options.rightArrow !== !1 && e.push(nHt(this.options.rightArrow)), this.options.copyright !== !1 && e.push(rHt(this.options.copyright)), this.options.trademark !== !1 && e.push(oHt(this.options.trademark)), this.options.servicemark !== !1 && e.push(iHt(this.options.servicemark)), this.options.registeredTrademark !== !1 && e.push(aHt(this.options.registeredTrademark)), this.options.oneHalf !== !1 && e.push(sHt(this.options.oneHalf)), this.options.plusMinus !== !1 && e.push(lHt(this.options.plusMinus)), this.options.notEqual !== !1 && e.push(uHt(this.options.notEqual)), this.options.laquo !== !1 && e.push(cHt(this.options.laquo)), this.options.raquo !== !1 && e.push(dHt(this.options.raquo)), this.options.multiplication !== !1 && e.push(fHt(this.options.multiplication)), this.options.superscriptTwo !== !1 && e.push(pHt(this.options.superscriptTwo)), this.options.superscriptThree !== !1 && e.push(hHt(this.options.superscriptThree)), this.options.oneQuarter !== !1 && e.push(gHt(this.options.oneQuarter)), this.options.threeQuarters !== !1 && e.push(mHt(this.options.threeQuarters)), e;
|
129836
129832
|
}
|
129837
|
-
}), bHt =
|
129833
|
+
}), bHt = en.create({
|
129838
129834
|
name: "characterCount",
|
129839
129835
|
addOptions() {
|
129840
129836
|
return {
|
@@ -129865,8 +129861,8 @@ const ZPt = Xt.create({
|
|
129865
129861
|
},
|
129866
129862
|
addProseMirrorPlugins() {
|
129867
129863
|
return [
|
129868
|
-
new
|
129869
|
-
key: new
|
129864
|
+
new Qt({
|
129865
|
+
key: new rn("characterCount"),
|
129870
129866
|
filterTransaction: (e, t) => {
|
129871
129867
|
const n = this.options.limit;
|
129872
129868
|
if (!e.docChanged || n === 0 || n === null || n === void 0)
|
@@ -133242,7 +133238,7 @@ var K7 = {
|
|
133242
133238
|
o !== n && (r *= o.sizeMultiplier / n.sizeMultiplier);
|
133243
133239
|
}
|
133244
133240
|
return Math.min(t.number * r, n.maxSize);
|
133245
|
-
},
|
133241
|
+
}, Xe = function(t) {
|
133246
133242
|
return +t.toFixed(4) + "em";
|
133247
133243
|
}, T1 = function(t) {
|
133248
133244
|
return t.filter((n) => n).join(" ");
|
@@ -133362,7 +133358,7 @@ class _i {
|
|
133362
133358
|
*/
|
133363
133359
|
toNode() {
|
133364
133360
|
var t = document.createTextNode(this.text), n = null;
|
133365
|
-
this.italic > 0 && (n = document.createElement("span"), n.style.marginRight =
|
133361
|
+
this.italic > 0 && (n = document.createElement("span"), n.style.marginRight = Xe(this.italic)), this.classes.length > 0 && (n = n || document.createElement("span"), n.className = T1(this.classes));
|
133366
133362
|
for (var r in this.style)
|
133367
133363
|
this.style.hasOwnProperty(r) && (n = n || document.createElement("span"), n.style[r] = this.style[r]);
|
133368
133364
|
return n ? (n.appendChild(t), n) : t;
|
@@ -134292,7 +134288,7 @@ var jm = [
|
|
134292
134288
|
return LA(i), i;
|
134293
134289
|
}, Cne = (e, t, n, r) => new bg(e, t, n, r), uqt = function(t, n, r) {
|
134294
134290
|
var o = Eo([t], [], n);
|
134295
|
-
return o.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), o.style.borderBottomWidth =
|
134291
|
+
return o.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), o.style.borderBottomWidth = Xe(o.height), o.maxFontSize = 1, o;
|
134296
134292
|
}, cqt = function(t, n, r, o) {
|
134297
134293
|
var i = new TA(t, n, r, o);
|
134298
134294
|
return LA(i), i;
|
@@ -134352,23 +134348,23 @@ var jm = [
|
|
134352
134348
|
}
|
134353
134349
|
i += 2;
|
134354
134350
|
var u = Eo(["pstrut"], []);
|
134355
|
-
u.style.height =
|
134351
|
+
u.style.height = Xe(i);
|
134356
134352
|
for (var c = [], d = o, f = o, p = o, h = 0; h < r.length; h++) {
|
134357
134353
|
var g = r[h];
|
134358
134354
|
if (g.type === "kern")
|
134359
134355
|
p += g.size;
|
134360
134356
|
else {
|
134361
134357
|
var m = g.elem, b = g.wrapperClasses || [], k = g.wrapperStyle || {}, v = Eo(b, [u, m], void 0, k);
|
134362
|
-
v.style.top =
|
134358
|
+
v.style.top = Xe(-i - p - m.depth), g.marginLeft && (v.style.marginLeft = g.marginLeft), g.marginRight && (v.style.marginRight = g.marginRight), c.push(v), p += m.height + m.depth;
|
134363
134359
|
}
|
134364
134360
|
d = Math.min(d, p), f = Math.max(f, p);
|
134365
134361
|
}
|
134366
134362
|
var x = Eo(["vlist"], c);
|
134367
|
-
x.style.height =
|
134363
|
+
x.style.height = Xe(f);
|
134368
134364
|
var w;
|
134369
134365
|
if (d < 0) {
|
134370
134366
|
var F = Eo([], []), A = Eo(["vlist"], [F]);
|
134371
|
-
A.style.height =
|
134367
|
+
A.style.height = Xe(-d);
|
134372
134368
|
var C = Eo(["vlist-s"], [new _i("")]);
|
134373
134369
|
w = [Eo(["vlist-r"], [x, C]), Eo(["vlist-r"], [A])];
|
134374
134370
|
} else
|
@@ -134377,7 +134373,7 @@ var jm = [
|
|
134377
134373
|
return w.length === 2 && D.classes.push("vlist-t2"), D.height = f, D.depth = -d, D;
|
134378
134374
|
}, hqt = (e, t) => {
|
134379
134375
|
var n = Eo(["mspace"], [], t), r = Hn(e, t);
|
134380
|
-
return n.style.marginRight =
|
134376
|
+
return n.style.marginRight = Xe(r), n;
|
134381
134377
|
}, Dm = function(t, n, r) {
|
134382
134378
|
var o = "";
|
134383
134379
|
switch (t) {
|
@@ -134463,14 +134459,14 @@ var jm = [
|
|
134463
134459
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
134464
134460
|
}, gqt = function(t, n) {
|
134465
134461
|
var [r, o, i] = jne[t], a = new L1(r), s = new fl([a], {
|
134466
|
-
width:
|
134467
|
-
height:
|
134462
|
+
width: Xe(o),
|
134463
|
+
height: Xe(i),
|
134468
134464
|
// Override CSS rule `.katex svg { width: 100% }`
|
134469
|
-
style: "width:" +
|
134465
|
+
style: "width:" + Xe(o),
|
134470
134466
|
viewBox: "0 0 " + 1e3 * o + " " + 1e3 * i,
|
134471
134467
|
preserveAspectRatio: "xMinYMin"
|
134472
134468
|
}), l = Cne(["overlay"], [s], n);
|
134473
|
-
return l.height = i, l.style.height =
|
134469
|
+
return l.height = i, l.style.height = Xe(i), l.style.width = Xe(o), l;
|
134474
134470
|
}, Ee = {
|
134475
134471
|
fontMap: Ane,
|
134476
134472
|
makeSymbol: Yi,
|
@@ -134628,7 +134624,7 @@ var C3 = function(t) {
|
|
134628
134624
|
}, yr = function(t, n, r, o) {
|
134629
134625
|
o === void 0 && (o = [null, null]);
|
134630
134626
|
for (var i = [], a = 0; a < t.length; a++) {
|
134631
|
-
var s =
|
134627
|
+
var s = sn(t[a], n);
|
134632
134628
|
if (s instanceof yg) {
|
134633
134629
|
var l = s.children;
|
134634
134630
|
i.push(...l);
|
@@ -134692,7 +134688,7 @@ var C3 = function(t) {
|
|
134692
134688
|
}, a2 = function(t, n) {
|
134693
134689
|
var r = ["nulldelimiter"].concat(t.baseSizingClasses());
|
134694
134690
|
return pl(n.concat(r));
|
134695
|
-
},
|
134691
|
+
}, sn = function(t, n, r) {
|
134696
134692
|
if (!t)
|
134697
134693
|
return pl();
|
134698
134694
|
if (F3[t.type]) {
|
@@ -134708,7 +134704,7 @@ var C3 = function(t) {
|
|
134708
134704
|
};
|
134709
134705
|
function Sm(e, t) {
|
134710
134706
|
var n = pl(["base"], e, t), r = pl(["strut"]);
|
134711
|
-
return r.style.height =
|
134707
|
+
return r.style.height = Xe(n.height + n.depth), n.depth && (r.style.verticalAlign = Xe(-n.depth)), n.children.unshift(r), n;
|
134712
134708
|
}
|
134713
134709
|
function Q7(e, t) {
|
134714
134710
|
var n = null;
|
@@ -134727,7 +134723,7 @@ function Q7(e, t) {
|
|
134727
134723
|
var c = pl(["katex-html"], i);
|
134728
134724
|
if (c.setAttribute("aria-hidden", "true"), u) {
|
134729
134725
|
var d = u.children[0];
|
134730
|
-
d.style.height =
|
134726
|
+
d.style.height = Xe(c.height + c.depth), c.depth && (d.style.verticalAlign = Xe(-c.depth));
|
134731
134727
|
}
|
134732
134728
|
return c;
|
134733
134729
|
}
|
@@ -134826,13 +134822,13 @@ class Fqt {
|
|
134826
134822
|
if (this.character)
|
134827
134823
|
return document.createTextNode(this.character);
|
134828
134824
|
var t = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mspace");
|
134829
|
-
return t.setAttribute("width",
|
134825
|
+
return t.setAttribute("width", Xe(this.width)), t;
|
134830
134826
|
}
|
134831
134827
|
/**
|
134832
134828
|
* Converts the math node into an HTML markup string.
|
134833
134829
|
*/
|
134834
134830
|
toMarkup() {
|
134835
|
-
return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' +
|
134831
|
+
return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + Xe(this.width) + '"/>';
|
134836
134832
|
}
|
134837
134833
|
/**
|
134838
134834
|
* Converts the math node into a string, similar to innerText.
|
@@ -135093,7 +135089,7 @@ var Lne = function(t) {
|
|
135093
135089
|
}
|
135094
135090
|
var g = new L1(f), m = new fl([g], {
|
135095
135091
|
width: "100%",
|
135096
|
-
height:
|
135092
|
+
height: Xe(p),
|
135097
135093
|
viewBox: "0 0 " + s + " " + d,
|
135098
135094
|
preserveAspectRatio: "none"
|
135099
135095
|
});
|
@@ -135117,7 +135113,7 @@ var Lne = function(t) {
|
|
135117
135113
|
for (var I = 0; I < A; I++) {
|
135118
135114
|
var B = new L1(v[I]), W = new fl([B], {
|
135119
135115
|
width: "400em",
|
135120
|
-
height:
|
135116
|
+
height: Xe(F),
|
135121
135117
|
viewBox: "0 0 " + s + " " + w,
|
135122
135118
|
preserveAspectRatio: D[I] + " slice"
|
135123
135119
|
}), q = Ee.makeSvgSpan([C[I]], [W], n);
|
@@ -135127,7 +135123,7 @@ var Lne = function(t) {
|
|
135127
135123
|
minWidth: x,
|
135128
135124
|
height: F
|
135129
135125
|
};
|
135130
|
-
q.style.height =
|
135126
|
+
q.style.height = Xe(F), b.push(q);
|
135131
135127
|
}
|
135132
135128
|
return {
|
135133
135129
|
span: Ee.makeSpan(["stretchy"], b, n),
|
@@ -135141,7 +135137,7 @@ var Lne = function(t) {
|
|
135141
135137
|
minWidth: i,
|
135142
135138
|
height: a
|
135143
135139
|
} = r();
|
135144
|
-
return o.height = a, o.style.height =
|
135140
|
+
return o.height = a, o.style.height = Xe(a), i > 0 && (o.style.minWidth = Xe(i)), o;
|
135145
135141
|
}, Tqt = function(t, n, r, o, i) {
|
135146
135142
|
var a, s = t.height + t.depth + r + o;
|
135147
135143
|
if (/fbox|color|angl/.test(n)) {
|
@@ -135166,11 +135162,11 @@ var Lne = function(t) {
|
|
135166
135162
|
}));
|
135167
135163
|
var c = new fl(u, {
|
135168
135164
|
width: "100%",
|
135169
|
-
height:
|
135165
|
+
height: Xe(s)
|
135170
135166
|
});
|
135171
135167
|
a = Ee.makeSvgSpan([], [c], i);
|
135172
135168
|
}
|
135173
|
-
return a.height = s, a.style.height =
|
135169
|
+
return a.height = s, a.style.height = Xe(s), a;
|
135174
135170
|
}, hl = {
|
135175
135171
|
encloseSpan: Tqt,
|
135176
135172
|
mathMLnode: Aqt,
|
@@ -135192,10 +135188,10 @@ function _6(e) {
|
|
135192
135188
|
}
|
135193
135189
|
var OA = (e, t) => {
|
135194
135190
|
var n, r, o;
|
135195
|
-
e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = eqt(
|
135196
|
-
var i =
|
135191
|
+
e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = eqt(sn(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
|
135192
|
+
var i = sn(n, t.havingCrampedStyle()), a = r.isShifty && kt.isCharacterBox(n), s = 0;
|
135197
135193
|
if (a) {
|
135198
|
-
var l = kt.getBaseElem(n), u =
|
135194
|
+
var l = kt.getBaseElem(n), u = sn(l, t.havingCrampedStyle());
|
135199
135195
|
s = uB(u).skew;
|
135200
135196
|
}
|
135201
135197
|
var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, t.fontMetrics().xHeight), f;
|
@@ -135210,8 +135206,8 @@ var OA = (e, t) => {
|
|
135210
135206
|
elem: f,
|
135211
135207
|
wrapperClasses: ["svg-align"],
|
135212
135208
|
wrapperStyle: s > 0 ? {
|
135213
|
-
width: "calc(100% - " +
|
135214
|
-
marginLeft:
|
135209
|
+
width: "calc(100% - " + Xe(2 * s) + ")",
|
135210
|
+
marginLeft: Xe(2 * s)
|
135215
135211
|
} : void 0
|
135216
135212
|
}]
|
135217
135213
|
}, t);
|
@@ -135224,7 +135220,7 @@ var OA = (e, t) => {
|
|
135224
135220
|
var g = r.label === "\\textcircled";
|
135225
135221
|
g && (f.classes.push("accent-full"), d = i.height);
|
135226
135222
|
var m = s;
|
135227
|
-
g || (m -= h / 2), f.style.left =
|
135223
|
+
g || (m -= h / 2), f.style.left = Xe(m), r.label === "\\textcircled" && (f.style.top = ".2em"), f = Ee.makeVList({
|
135228
135224
|
positionType: "firstBaseline",
|
135229
135225
|
children: [{
|
135230
135226
|
type: "elem",
|
@@ -135307,7 +135303,7 @@ st({
|
|
135307
135303
|
};
|
135308
135304
|
},
|
135309
135305
|
htmlBuilder: (e, t) => {
|
135310
|
-
var n =
|
135306
|
+
var n = sn(e.base, t), r = hl.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = Ee.makeVList({
|
135311
135307
|
positionType: "top",
|
135312
135308
|
positionData: n.height,
|
135313
135309
|
children: [{
|
@@ -135385,10 +135381,10 @@ st({
|
|
135385
135381
|
// Flow is unable to correctly infer the type of `group`, even though it's
|
135386
135382
|
// unambiguously determined from the passed-in `type` above.
|
135387
135383
|
htmlBuilder(e, t) {
|
135388
|
-
var n = t.style, r = t.havingStyle(n.sup()), o = Ee.wrapFragment(
|
135384
|
+
var n = t.style, r = t.havingStyle(n.sup()), o = Ee.wrapFragment(sn(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
|
135389
135385
|
o.classes.push(i + "-arrow-pad");
|
135390
135386
|
var a;
|
135391
|
-
e.below && (r = t.havingStyle(n.sub()), a = Ee.wrapFragment(
|
135387
|
+
e.below && (r = t.havingStyle(n.sub()), a = Ee.wrapFragment(sn(e.below, r, t), t), a.classes.push(i + "-arrow-pad"));
|
135392
135388
|
var s = hl.svgSpan(e, t), l = -t.fontMetrics().axisHeight + 0.5 * s.height, u = -t.fontMetrics().axisHeight - 0.5 * s.height - 0.111;
|
135393
135389
|
(o.depth > 0.25 || e.label === "\\xleftequilibrium") && (u -= o.depth);
|
135394
135390
|
var c;
|
@@ -135713,8 +135709,8 @@ st({
|
|
135713
135709
|
};
|
135714
135710
|
},
|
135715
135711
|
htmlBuilder(e, t) {
|
135716
|
-
var n = t.havingStyle(t.style.sup()), r = Ee.wrapFragment(
|
135717
|
-
return r.classes.push("cd-label-" + e.side), r.style.bottom =
|
135712
|
+
var n = t.havingStyle(t.style.sup()), r = Ee.wrapFragment(sn(e.label, n, t), t);
|
135713
|
+
return r.classes.push("cd-label-" + e.side), r.style.bottom = Xe(0.8 - r.depth), r.height = 0, r.depth = 0, r;
|
135718
135714
|
},
|
135719
135715
|
mathmlBuilder(e, t) {
|
135720
135716
|
var n = new Ge.MathNode("mrow", [xn(e.label, t)]);
|
@@ -135738,7 +135734,7 @@ st({
|
|
135738
135734
|
};
|
135739
135735
|
},
|
135740
135736
|
htmlBuilder(e, t) {
|
135741
|
-
var n = Ee.wrapFragment(
|
135737
|
+
var n = Ee.wrapFragment(sn(e.fragment, t), t);
|
135742
135738
|
return n.classes.push("cd-vert-arrow"), n;
|
135743
135739
|
},
|
135744
135740
|
mathmlBuilder(e, t) {
|
@@ -135848,11 +135844,11 @@ st({
|
|
135848
135844
|
// not within tabular/array environments.
|
135849
135845
|
htmlBuilder(e, t) {
|
135850
135846
|
var n = Ee.makeSpan(["mspace"], [], t);
|
135851
|
-
return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop =
|
135847
|
+
return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = Xe(Hn(e.size, t)))), n;
|
135852
135848
|
},
|
135853
135849
|
mathmlBuilder(e, t) {
|
135854
135850
|
var n = new Ge.MathNode("mspace");
|
135855
|
-
return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height",
|
135851
|
+
return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", Xe(Hn(e.size, t)))), n;
|
135856
135852
|
}
|
135857
135853
|
});
|
135858
135854
|
var X7 = {
|
@@ -136008,7 +136004,7 @@ var Wf = function(t, n, r) {
|
|
136008
136004
|
return a.height *= s, a.depth *= s, a.maxFontSize = i.sizeMultiplier, a;
|
136009
136005
|
}, Hne = function(t, n, r) {
|
136010
136006
|
var o = n.havingBaseStyle(r), i = (1 - n.sizeMultiplier / o.sizeMultiplier) * n.fontMetrics().axisHeight;
|
136011
|
-
t.classes.push("delimcenter"), t.style.top =
|
136007
|
+
t.classes.push("delimcenter"), t.style.top = Xe(i), t.height -= i, t.depth += i;
|
136012
136008
|
}, _qt = function(t, n, r, o, i, a) {
|
136013
136009
|
var s = Ee.makeSymbol(t, "Main-Regular", i, o), l = BA(s, n, o, a);
|
136014
136010
|
return r && Hne(l, o, n), l;
|
@@ -136027,14 +136023,14 @@ var Wf = function(t, n, r) {
|
|
136027
136023
|
};
|
136028
136024
|
}, $v = function(t, n, r) {
|
136029
136025
|
var o = Ha["Size4-Regular"][t.charCodeAt(0)] ? Ha["Size4-Regular"][t.charCodeAt(0)][4] : Ha["Size1-Regular"][t.charCodeAt(0)][4], i = new L1("inner", WHt(t, Math.round(1e3 * n))), a = new fl([i], {
|
136030
|
-
width:
|
136031
|
-
height:
|
136026
|
+
width: Xe(o),
|
136027
|
+
height: Xe(n),
|
136032
136028
|
// Override CSS rule `.katex svg { width: 100% }`
|
136033
|
-
style: "width:" +
|
136029
|
+
style: "width:" + Xe(o),
|
136034
136030
|
viewBox: "0 0 " + 1e3 * o + " " + Math.round(1e3 * n),
|
136035
136031
|
preserveAspectRatio: "xMinYMin"
|
136036
136032
|
}), s = Ee.makeSvgSpan([], [a], r);
|
136037
|
-
return s.height = n, s.style.height =
|
136033
|
+
return s.height = n, s.style.height = Xe(n), s.style.width = Xe(o), {
|
136038
136034
|
type: "elem",
|
136039
136035
|
elem: s
|
136040
136036
|
};
|
@@ -136084,14 +136080,14 @@ var Wf = function(t, n, r) {
|
|
136084
136080
|
var a = UHt(t, o, r), s = new L1(t, a), l = new fl([s], {
|
136085
136081
|
// Note: 1000:1 ratio of viewBox to document em width.
|
136086
136082
|
width: "400em",
|
136087
|
-
height:
|
136083
|
+
height: Xe(n),
|
136088
136084
|
viewBox: "0 0 400000 " + r,
|
136089
136085
|
preserveAspectRatio: "xMinYMin slice"
|
136090
136086
|
});
|
136091
136087
|
return Ee.makeSvgSpan(["hide-tail"], [l], i);
|
136092
136088
|
}, Vqt = function(t, n) {
|
136093
136089
|
var r = n.havingBaseSizing(), o = Zne("\\surd", t * r.sizeMultiplier, Gne, r), i = r.sizeMultiplier, a = Math.max(0, n.minRuleThickness - n.fontMetrics().sqrtRuleThickness), s, l = 0, u = 0, c = 0, d;
|
136094
|
-
return o.type === "small" ? (c = 1e3 + 1e3 * a + Jv, t < 1 ? i = 1 : t < 1.4 && (i = 0.7), l = (1 + a + Qv) / i, u = (1 + a) / i, s = Xv("sqrtMain", l, c, a, n), s.style.minWidth = "0.853em", d = 0.833 / i) : o.type === "large" ? (c = (1e3 + Jv) * Cp[o.size], u = (Cp[o.size] + a) / i, l = (Cp[o.size] + a + Qv) / i, s = Xv("sqrtSize" + o.size, l, c, a, n), s.style.minWidth = "1.02em", d = 1 / i) : (l = t + a + Qv, u = t + a, c = Math.floor(1e3 * t + a) + Jv, s = Xv("sqrtTall", l, c, a, n), s.style.minWidth = "0.742em", d = 1.056), s.height = u, s.style.height =
|
136090
|
+
return o.type === "small" ? (c = 1e3 + 1e3 * a + Jv, t < 1 ? i = 1 : t < 1.4 && (i = 0.7), l = (1 + a + Qv) / i, u = (1 + a) / i, s = Xv("sqrtMain", l, c, a, n), s.style.minWidth = "0.853em", d = 0.833 / i) : o.type === "large" ? (c = (1e3 + Jv) * Cp[o.size], u = (Cp[o.size] + a) / i, l = (Cp[o.size] + a + Qv) / i, s = Xv("sqrtSize" + o.size, l, c, a, n), s.style.minWidth = "1.02em", d = 1 / i) : (l = t + a + Qv, u = t + a, c = Math.floor(1e3 * t + a) + Jv, s = Xv("sqrtTall", l, c, a, n), s.style.minWidth = "0.742em", d = 1.056), s.height = u, s.style.height = Xe(l), {
|
136095
136091
|
span: s,
|
136096
136092
|
advanceWidth: d,
|
136097
136093
|
// Calculate the actual line width.
|
@@ -136302,7 +136298,7 @@ st({
|
|
136302
136298
|
e.delim !== "." && t.push(Pi(e.delim, e.mode));
|
136303
136299
|
var n = new Ge.MathNode("mo", t);
|
136304
136300
|
e.mclass === "mopen" || e.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
|
136305
|
-
var r =
|
136301
|
+
var r = Xe(Qs.sizeToMaxHeight[e.size]);
|
136306
136302
|
return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
|
136307
136303
|
}
|
136308
136304
|
});
|
@@ -136423,7 +136419,7 @@ st({
|
|
136423
136419
|
}
|
136424
136420
|
});
|
136425
136421
|
var zA = (e, t) => {
|
136426
|
-
var n = Ee.wrapFragment(
|
136422
|
+
var n = Ee.wrapFragment(sn(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, a = 0, s = kt.isCharacterBox(e.body);
|
136427
136423
|
if (r === "sout")
|
136428
136424
|
i = Ee.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / o, a = -0.5 * t.fontMetrics().xHeight;
|
136429
136425
|
else if (r === "phase") {
|
@@ -136436,14 +136432,14 @@ var zA = (e, t) => {
|
|
136436
136432
|
}, t), c = t.havingBaseSizing();
|
136437
136433
|
o = o / c.sizeMultiplier;
|
136438
136434
|
var d = n.height + n.depth + l + u;
|
136439
|
-
n.style.paddingLeft =
|
136435
|
+
n.style.paddingLeft = Xe(d / 2 + l);
|
136440
136436
|
var f = Math.floor(1e3 * d * o), p = qHt(f), h = new fl([new L1("phase", p)], {
|
136441
136437
|
width: "400em",
|
136442
|
-
height:
|
136438
|
+
height: Xe(f / 1e3),
|
136443
136439
|
viewBox: "0 0 400000 " + f,
|
136444
136440
|
preserveAspectRatio: "xMinYMin slice"
|
136445
136441
|
});
|
136446
|
-
i = Ee.makeSvgSpan(["hide-tail"], [h], t), i.style.height =
|
136442
|
+
i = Ee.makeSvgSpan(["hide-tail"], [h], t), i.style.height = Xe(d), a = n.depth + l + u;
|
136447
136443
|
} else {
|
136448
136444
|
/cancel/.test(r) ? s || n.classes.push("cancel-pad") : r === "angl" ? n.classes.push("anglpad") : n.classes.push("boxpad");
|
136449
136445
|
var g = 0, m = 0, b = 0;
|
@@ -136452,7 +136448,7 @@ var zA = (e, t) => {
|
|
136452
136448
|
// default
|
136453
136449
|
t.minRuleThickness
|
136454
136450
|
// User override.
|
136455
|
-
), g = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : b), m = g) : r === "angl" ? (b = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), g = 4 * b, m = Math.max(0, 0.25 - n.depth)) : (g = s ? 0.2 : 0, m = g), i = hl.encloseSpan(n, r, g, m, t), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth =
|
136451
|
+
), g = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : b), m = g) : r === "angl" ? (b = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), g = 4 * b, m = Math.max(0, 0.25 - n.depth)) : (g = s ? 0.2 : 0, m = g), i = hl.encloseSpan(n, r, g, m, t), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = Xe(b)) : r === "angl" && b !== 0.049 && (i.style.borderTopWidth = Xe(b), i.style.borderRightWidth = Xe(b)), a = n.depth + m, e.backgroundColor && (i.style.backgroundColor = e.backgroundColor, e.borderColor && (i.style.borderColor = e.borderColor));
|
136456
136452
|
}
|
136457
136453
|
var k;
|
136458
136454
|
if (e.backgroundColor)
|
@@ -136785,7 +136781,7 @@ var vs = function(t, n) {
|
|
136785
136781
|
s < w.length && (s = w.length);
|
136786
136782
|
var C = new Array(w.length);
|
136787
136783
|
for (o = 0; o < w.length; ++o) {
|
136788
|
-
var D =
|
136784
|
+
var D = sn(w[o], n);
|
136789
136785
|
A < D.depth && (A = D.depth), F < D.height && (F = D.height), C[o] = D;
|
136790
136786
|
}
|
136791
136787
|
var T = t.rowGaps[r], I = 0;
|
@@ -136809,18 +136805,18 @@ var vs = function(t, n) {
|
|
136809
136805
|
++o, ++P
|
136810
136806
|
) {
|
136811
136807
|
for (var ne = W[P] || {}, le = !0; ne.type === "separator"; ) {
|
136812
|
-
if (le || (U = Ee.makeSpan(["arraycolsep"], []), U.style.width =
|
136808
|
+
if (le || (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Xe(n.fontMetrics().doubleRuleSep), q.push(U)), ne.separator === "|" || ne.separator === ":") {
|
136813
136809
|
var ce = ne.separator === "|" ? "solid" : "dashed", pe = Ee.makeSpan(["vertical-separator"], [], n);
|
136814
|
-
pe.style.height =
|
136810
|
+
pe.style.height = Xe(v), pe.style.borderRightWidth = Xe(c), pe.style.borderRightStyle = ce, pe.style.margin = "0 " + Xe(-c / 2);
|
136815
136811
|
var X = v - B;
|
136816
|
-
X && (pe.style.verticalAlign =
|
136812
|
+
X && (pe.style.verticalAlign = Xe(-X)), q.push(pe);
|
136817
136813
|
} else
|
136818
136814
|
throw new Ye("Invalid separator type: " + ne.separator);
|
136819
136815
|
P++, ne = W[P] || {}, le = !1;
|
136820
136816
|
}
|
136821
136817
|
if (!(o >= s)) {
|
136822
136818
|
var de = void 0;
|
136823
|
-
(o > 0 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.pregap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width =
|
136819
|
+
(o > 0 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.pregap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Xe(de), q.push(U)));
|
136824
136820
|
var Fe = [];
|
136825
136821
|
for (r = 0; r < i; ++r) {
|
136826
136822
|
var Ie = l[r], Le = Ie[o];
|
@@ -136836,7 +136832,7 @@ var vs = function(t, n) {
|
|
136836
136832
|
Fe = Ee.makeVList({
|
136837
136833
|
positionType: "individualShift",
|
136838
136834
|
children: Fe
|
136839
|
-
}, n), Fe = Ee.makeSpan(["col-align-" + (ne.align || "c")], [Fe]), q.push(Fe), (o < s - 1 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.postgap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width =
|
136835
|
+
}, n), Fe = Ee.makeSpan(["col-align-" + (ne.align || "c")], [Fe]), q.push(Fe), (o < s - 1 || t.hskipBeforeAndAfter) && (de = kt.deflt(ne.postgap, f), de !== 0 && (U = Ee.makeSpan(["arraycolsep"], []), U.style.width = Xe(de), q.push(U)));
|
136840
136836
|
}
|
136841
136837
|
}
|
136842
136838
|
if (l = Ee.makeSpan(["mtable"], q), u.length > 0) {
|
@@ -136879,7 +136875,7 @@ var vs = function(t, n) {
|
|
136879
136875
|
t.tags && t.tags[a] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new Ge.MathNode("mtr", l));
|
136880
136876
|
}
|
136881
136877
|
var c = new Ge.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
|
136882
|
-
c.setAttribute("rowspacing",
|
136878
|
+
c.setAttribute("rowspacing", Xe(d));
|
136883
136879
|
var f = "", p = "";
|
136884
136880
|
if (t.cols && t.cols.length > 0) {
|
136885
136881
|
var h = t.cols, g = "", m = !1, b = 0, k = h.length;
|
@@ -137248,7 +137244,7 @@ st({
|
|
137248
137244
|
});
|
137249
137245
|
var Qne = (e, t) => {
|
137250
137246
|
var n = e.font, r = t.withFont(n);
|
137251
|
-
return
|
137247
|
+
return sn(e.body, r);
|
137252
137248
|
}, Xne = (e, t) => {
|
137253
137249
|
var n = e.font, r = t.withFont(n);
|
137254
137250
|
return xn(e.body, r);
|
@@ -137357,13 +137353,13 @@ var ere = (e, t) => {
|
|
137357
137353
|
}, qA = (e, t) => {
|
137358
137354
|
var n = ere(e.size, t.style), r = n.fracNum(), o = n.fracDen(), i;
|
137359
137355
|
i = t.havingStyle(r);
|
137360
|
-
var a =
|
137356
|
+
var a = sn(e.numer, i, t);
|
137361
137357
|
if (e.continued) {
|
137362
137358
|
var s = 8.5 / t.fontMetrics().ptPerEm, l = 3.5 / t.fontMetrics().ptPerEm;
|
137363
137359
|
a.height = a.height < s ? s : a.height, a.depth = a.depth < l ? l : a.depth;
|
137364
137360
|
}
|
137365
137361
|
i = t.havingStyle(o);
|
137366
|
-
var u =
|
137362
|
+
var u = sn(e.denom, i, t), c, d, f;
|
137367
137363
|
e.hasBarLine ? (e.barSize ? (d = Hn(e.barSize, t), c = Ee.makeLineSpan("frac-line", t, d)) : c = Ee.makeLineSpan("frac-line", t), d = c.height, f = c.height) : (c = null, d = 0, f = t.fontMetrics().defaultRuleThickness);
|
137368
137364
|
var p, h, g;
|
137369
137365
|
n.size === At.DISPLAY.size || e.size === "display" ? (p = t.fontMetrics().num1, d > 0 ? h = 3 * f : h = 7 * f, g = t.fontMetrics().denom1) : (d > 0 ? (p = t.fontMetrics().num2, h = f) : (p = t.fontMetrics().num3, h = 3 * f), g = t.fontMetrics().denom2);
|
@@ -137414,7 +137410,7 @@ var ere = (e, t) => {
|
|
137414
137410
|
n.setAttribute("linethickness", "0px");
|
137415
137411
|
else if (e.barSize) {
|
137416
137412
|
var r = Hn(e.barSize, t);
|
137417
|
-
n.setAttribute("linethickness",
|
137413
|
+
n.setAttribute("linethickness", Xe(r));
|
137418
137414
|
}
|
137419
137415
|
var o = ere(e.size, t.style);
|
137420
137416
|
if (o.size !== t.style.size) {
|
@@ -137668,8 +137664,8 @@ st({
|
|
137668
137664
|
});
|
137669
137665
|
var tre = (e, t) => {
|
137670
137666
|
var n = t.style, r, o;
|
137671
|
-
e.type === "supsub" ? (r = e.sup ?
|
137672
|
-
var i =
|
137667
|
+
e.type === "supsub" ? (r = e.sup ? sn(e.sup, t.havingStyle(n.sup()), t) : sn(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
|
137668
|
+
var i = sn(o.base, t.havingBaseStyle(At.DISPLAY)), a = hl.svgSpan(o, t), s;
|
137673
137669
|
if (o.isOver ? (s = Ee.makeVList({
|
137674
137670
|
positionType: "firstBaseline",
|
137675
137671
|
children: [{
|
@@ -138023,9 +138019,9 @@ st({
|
|
138023
138019
|
var o = 0;
|
138024
138020
|
e.width.number > 0 && (o = Hn(e.width, t));
|
138025
138021
|
var i = {
|
138026
|
-
height:
|
138022
|
+
height: Xe(n + r)
|
138027
138023
|
};
|
138028
|
-
o > 0 && (i.width =
|
138024
|
+
o > 0 && (i.width = Xe(o)), r > 0 && (i.verticalAlign = Xe(-r));
|
138029
138025
|
var a = new QHt(e.src, e.alt, i);
|
138030
138026
|
return a.height = n, a.depth = r, a;
|
138031
138027
|
},
|
@@ -138033,9 +138029,9 @@ st({
|
|
138033
138029
|
var n = new Ge.MathNode("mglyph", []);
|
138034
138030
|
n.setAttribute("alt", e.alt);
|
138035
138031
|
var r = Hn(e.height, t), o = 0;
|
138036
|
-
if (e.totalheight.number > 0 && (o = Hn(e.totalheight, t) - r, n.setAttribute("valign",
|
138032
|
+
if (e.totalheight.number > 0 && (o = Hn(e.totalheight, t) - r, n.setAttribute("valign", Xe(-o))), n.setAttribute("height", Xe(r + o)), e.width.number > 0) {
|
138037
138033
|
var i = Hn(e.width, t);
|
138038
|
-
n.setAttribute("width",
|
138034
|
+
n.setAttribute("width", Xe(i));
|
138039
138035
|
}
|
138040
138036
|
return n.setAttribute("src", e.src), n;
|
138041
138037
|
}
|
@@ -138093,9 +138089,9 @@ st({
|
|
138093
138089
|
},
|
138094
138090
|
htmlBuilder: (e, t) => {
|
138095
138091
|
var n;
|
138096
|
-
e.alignment === "clap" ? (n = Ee.makeSpan([], [
|
138092
|
+
e.alignment === "clap" ? (n = Ee.makeSpan([], [sn(e.body, t)]), n = Ee.makeSpan(["inner"], [n], t)) : n = Ee.makeSpan(["inner"], [sn(e.body, t)]);
|
138097
138093
|
var r = Ee.makeSpan(["fix"], []), o = Ee.makeSpan([e.alignment], [n, r], t), i = Ee.makeSpan(["strut"]);
|
138098
|
-
return i.style.height =
|
138094
|
+
return i.style.height = Xe(o.height + o.depth), o.depth && (i.style.verticalAlign = Xe(-o.depth)), o.children.unshift(i), o = Ee.makeSpan(["thinbox"], [o], t), Ee.makeSpan(["mord", "vbox"], [o], t);
|
138099
138095
|
},
|
138100
138096
|
mathmlBuilder: (e, t) => {
|
138101
138097
|
var n = new Ge.MathNode("mpadded", [xn(e.body, t)]);
|
@@ -138189,14 +138185,14 @@ var nre = (e, t, n, r, o, i, a) => {
|
|
138189
138185
|
e = Ee.makeSpan([], [e]);
|
138190
138186
|
var s = n && kt.isCharacterBox(n), l, u;
|
138191
138187
|
if (t) {
|
138192
|
-
var c =
|
138188
|
+
var c = sn(t, r.havingStyle(o.sup()), r);
|
138193
138189
|
u = {
|
138194
138190
|
elem: c,
|
138195
138191
|
kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - c.depth)
|
138196
138192
|
};
|
138197
138193
|
}
|
138198
138194
|
if (n) {
|
138199
|
-
var d =
|
138195
|
+
var d = sn(n, r.havingStyle(o.sub()), r);
|
138200
138196
|
l = {
|
138201
138197
|
elem: d,
|
138202
138198
|
kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
|
@@ -138214,7 +138210,7 @@ var nre = (e, t, n, r, o, i, a) => {
|
|
138214
138210
|
}, {
|
138215
138211
|
type: "elem",
|
138216
138212
|
elem: l.elem,
|
138217
|
-
marginLeft:
|
138213
|
+
marginLeft: Xe(-i)
|
138218
138214
|
}, {
|
138219
138215
|
type: "kern",
|
138220
138216
|
size: l.kern
|
@@ -138227,7 +138223,7 @@ var nre = (e, t, n, r, o, i, a) => {
|
|
138227
138223
|
}, {
|
138228
138224
|
type: "elem",
|
138229
138225
|
elem: u.elem,
|
138230
|
-
marginLeft:
|
138226
|
+
marginLeft: Xe(i)
|
138231
138227
|
}, {
|
138232
138228
|
type: "kern",
|
138233
138229
|
size: r.fontMetrics().bigOpSpacing5
|
@@ -138244,7 +138240,7 @@ var nre = (e, t, n, r, o, i, a) => {
|
|
138244
138240
|
}, {
|
138245
138241
|
type: "elem",
|
138246
138242
|
elem: l.elem,
|
138247
|
-
marginLeft:
|
138243
|
+
marginLeft: Xe(-i)
|
138248
138244
|
}, {
|
138249
138245
|
type: "kern",
|
138250
138246
|
size: l.kern
|
@@ -138267,7 +138263,7 @@ var nre = (e, t, n, r, o, i, a) => {
|
|
138267
138263
|
}, {
|
138268
138264
|
type: "elem",
|
138269
138265
|
elem: u.elem,
|
138270
|
-
marginLeft:
|
138266
|
+
marginLeft: Xe(i)
|
138271
138267
|
}, {
|
138272
138268
|
type: "kern",
|
138273
138269
|
size: r.fontMetrics().bigOpSpacing5
|
@@ -138278,7 +138274,7 @@ var nre = (e, t, n, r, o, i, a) => {
|
|
138278
138274
|
var m = [f];
|
138279
138275
|
if (l && i !== 0 && !s) {
|
138280
138276
|
var b = Ee.makeSpan(["mspace"], [], r);
|
138281
|
-
b.style.marginRight =
|
138277
|
+
b.style.marginRight = Xe(i), m.unshift(b);
|
138282
138278
|
}
|
138283
138279
|
return Ee.makeSpan(["mop", "op-limits"], m, r);
|
138284
138280
|
}, rre = ["\\smallint"], X0 = (e, t) => {
|
@@ -138313,7 +138309,7 @@ var nre = (e, t, n, r, o, i, a) => {
|
|
138313
138309
|
l = Ee.makeSpan(["mop"], h, t);
|
138314
138310
|
}
|
138315
138311
|
var m = 0, b = 0;
|
138316
|
-
return (l instanceof _i || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (m = (l.height - l.depth) / 2 - t.fontMetrics().axisHeight, b = l.italic), o ? nre(l, n, r, t, a, b, m) : (m && (l.style.position = "relative", l.style.top =
|
138312
|
+
return (l instanceof _i || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (m = (l.height - l.depth) / 2 - t.fontMetrics().axisHeight, b = l.italic), o ? nre(l, n, r, t, a, b, m) : (m && (l.style.position = "relative", l.style.top = Xe(m)), l);
|
138317
138313
|
}, xg = (e, t) => {
|
138318
138314
|
var n;
|
138319
138315
|
if (e.symbol)
|
@@ -138564,7 +138560,7 @@ st({
|
|
138564
138560
|
};
|
138565
138561
|
},
|
138566
138562
|
htmlBuilder(e, t) {
|
138567
|
-
var n =
|
138563
|
+
var n = sn(e.body, t.havingCrampedStyle()), r = Ee.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = Ee.makeVList({
|
138568
138564
|
positionType: "firstBaseline",
|
138569
138565
|
children: [{
|
138570
138566
|
type: "elem",
|
@@ -138633,7 +138629,7 @@ st({
|
|
138633
138629
|
};
|
138634
138630
|
},
|
138635
138631
|
htmlBuilder: (e, t) => {
|
138636
|
-
var n = Ee.makeSpan([], [
|
138632
|
+
var n = Ee.makeSpan([], [sn(e.body, t.withPhantom())]);
|
138637
138633
|
if (n.height = 0, n.depth = 0, n.children)
|
138638
138634
|
for (var r = 0; r < n.children.length; r++)
|
138639
138635
|
n.children[r].height = 0, n.children[r].depth = 0;
|
@@ -138668,7 +138664,7 @@ st({
|
|
138668
138664
|
};
|
138669
138665
|
},
|
138670
138666
|
htmlBuilder: (e, t) => {
|
138671
|
-
var n = Ee.makeSpan(["inner"], [
|
138667
|
+
var n = Ee.makeSpan(["inner"], [sn(e.body, t.withPhantom())]), r = Ee.makeSpan(["fix"], []);
|
138672
138668
|
return Ee.makeSpan(["mord", "rlap"], [n, r], t);
|
138673
138669
|
},
|
138674
138670
|
mathmlBuilder: (e, t) => {
|
@@ -138696,7 +138692,7 @@ st({
|
|
138696
138692
|
};
|
138697
138693
|
},
|
138698
138694
|
htmlBuilder(e, t) {
|
138699
|
-
var n =
|
138695
|
+
var n = sn(e.body, t), r = Hn(e.dy, t);
|
138700
138696
|
return Ee.makeVList({
|
138701
138697
|
positionType: "shift",
|
138702
138698
|
positionData: -r,
|
@@ -138753,13 +138749,13 @@ st({
|
|
138753
138749
|
},
|
138754
138750
|
htmlBuilder(e, t) {
|
138755
138751
|
var n = Ee.makeSpan(["mord", "rule"], [], t), r = Hn(e.width, t), o = Hn(e.height, t), i = e.shift ? Hn(e.shift, t) : 0;
|
138756
|
-
return n.style.borderRightWidth =
|
138752
|
+
return n.style.borderRightWidth = Xe(r), n.style.borderTopWidth = Xe(o), n.style.bottom = Xe(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
|
138757
138753
|
},
|
138758
138754
|
mathmlBuilder(e, t) {
|
138759
138755
|
var n = Hn(e.width, t), r = Hn(e.height, t), o = e.shift ? Hn(e.shift, t) : 0, i = t.color && t.getColor() || "black", a = new Ge.MathNode("mspace");
|
138760
|
-
a.setAttribute("mathbackground", i), a.setAttribute("width",
|
138756
|
+
a.setAttribute("mathbackground", i), a.setAttribute("width", Xe(n)), a.setAttribute("height", Xe(r));
|
138761
138757
|
var s = new Ge.MathNode("mpadded", [a]);
|
138762
|
-
return o >= 0 ? s.setAttribute("height",
|
138758
|
+
return o >= 0 ? s.setAttribute("height", Xe(o)) : (s.setAttribute("height", Xe(o)), s.setAttribute("depth", Xe(-o))), s.setAttribute("voffset", Xe(o)), s;
|
138763
138759
|
}
|
138764
138760
|
});
|
138765
138761
|
function ire(e, t, n) {
|
@@ -138797,7 +138793,7 @@ st({
|
|
138797
138793
|
htmlBuilder: nVt,
|
138798
138794
|
mathmlBuilder: (e, t) => {
|
138799
138795
|
var n = t.havingSize(e.size), r = Vo(e.body, n), o = new Ge.MathNode("mstyle", r);
|
138800
|
-
return o.setAttribute("mathsize",
|
138796
|
+
return o.setAttribute("mathsize", Xe(n.sizeMultiplier)), o;
|
138801
138797
|
}
|
138802
138798
|
});
|
138803
138799
|
st({
|
@@ -138836,7 +138832,7 @@ st({
|
|
138836
138832
|
};
|
138837
138833
|
},
|
138838
138834
|
htmlBuilder: (e, t) => {
|
138839
|
-
var n = Ee.makeSpan([], [
|
138835
|
+
var n = Ee.makeSpan([], [sn(e.body, t)]);
|
138840
138836
|
if (!e.smashHeight && !e.smashDepth)
|
138841
138837
|
return n;
|
138842
138838
|
if (e.smashHeight && (n.height = 0, n.children))
|
@@ -138878,7 +138874,7 @@ st({
|
|
138878
138874
|
};
|
138879
138875
|
},
|
138880
138876
|
htmlBuilder(e, t) {
|
138881
|
-
var n =
|
138877
|
+
var n = sn(e.body, t.havingCrampedStyle());
|
138882
138878
|
n.height === 0 && (n.height = t.fontMetrics().xHeight), n = Ee.wrapFragment(n, t);
|
138883
138879
|
var r = t.fontMetrics(), o = r.defaultRuleThickness, i = o;
|
138884
138880
|
t.style.id < At.TEXT.id && (i = t.fontMetrics().xHeight);
|
@@ -138889,7 +138885,7 @@ st({
|
|
138889
138885
|
} = Qs.sqrtImage(s, t), d = l.height - u;
|
138890
138886
|
d > n.height + n.depth + a && (a = (a + d - n.height - n.depth) / 2);
|
138891
138887
|
var f = l.height - n.height - a - u;
|
138892
|
-
n.style.paddingLeft =
|
138888
|
+
n.style.paddingLeft = Xe(c);
|
138893
138889
|
var p = Ee.makeVList({
|
138894
138890
|
positionType: "firstBaseline",
|
138895
138891
|
children: [{
|
@@ -138908,7 +138904,7 @@ st({
|
|
138908
138904
|
}]
|
138909
138905
|
}, t);
|
138910
138906
|
if (e.index) {
|
138911
|
-
var h = t.havingStyle(At.SCRIPTSCRIPT), g =
|
138907
|
+
var h = t.havingStyle(At.SCRIPTSCRIPT), g = sn(e.index, h, t), m = 0.6 * (p.height - p.depth), b = Ee.makeVList({
|
138912
138908
|
positionType: "shift",
|
138913
138909
|
positionData: -m,
|
138914
138910
|
children: [{
|
@@ -139001,21 +138997,21 @@ jc({
|
|
139001
138997
|
base: r,
|
139002
138998
|
sup: o,
|
139003
138999
|
sub: i
|
139004
|
-
} = e, a =
|
139000
|
+
} = e, a = sn(r, t), s, l, u = t.fontMetrics(), c = 0, d = 0, f = r && kt.isCharacterBox(r);
|
139005
139001
|
if (o) {
|
139006
139002
|
var p = t.havingStyle(t.style.sup());
|
139007
|
-
s =
|
139003
|
+
s = sn(o, p, t), f || (c = a.height - p.fontMetrics().supDrop * p.sizeMultiplier / t.sizeMultiplier);
|
139008
139004
|
}
|
139009
139005
|
if (i) {
|
139010
139006
|
var h = t.havingStyle(t.style.sub());
|
139011
|
-
l =
|
139007
|
+
l = sn(i, h, t), f || (d = a.depth + h.fontMetrics().subDrop * h.sizeMultiplier / t.sizeMultiplier);
|
139012
139008
|
}
|
139013
139009
|
var g;
|
139014
139010
|
t.style === At.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
|
139015
|
-
var m = t.sizeMultiplier, b =
|
139011
|
+
var m = t.sizeMultiplier, b = Xe(0.5 / u.ptPerEm / m), k = null;
|
139016
139012
|
if (l) {
|
139017
139013
|
var v = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
|
139018
|
-
(a instanceof _i || v) && (k =
|
139014
|
+
(a instanceof _i || v) && (k = Xe(-a.italic));
|
139019
139015
|
}
|
139020
139016
|
var x;
|
139021
139017
|
if (s && l) {
|
@@ -139271,7 +139267,7 @@ st({
|
|
139271
139267
|
};
|
139272
139268
|
},
|
139273
139269
|
htmlBuilder(e, t) {
|
139274
|
-
var n =
|
139270
|
+
var n = sn(e.body, t), r = Ee.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = Ee.makeVList({
|
139275
139271
|
positionType: "top",
|
139276
139272
|
positionData: n.height,
|
139277
139273
|
children: [{
|
@@ -139317,7 +139313,7 @@ st({
|
|
139317
139313
|
};
|
139318
139314
|
},
|
139319
139315
|
htmlBuilder(e, t) {
|
139320
|
-
var n =
|
139316
|
+
var n = sn(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
|
139321
139317
|
return Ee.makeVList({
|
139322
139318
|
positionType: "shift",
|
139323
139319
|
positionData: o,
|
@@ -139813,7 +139809,7 @@ Y("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
139813
139809
|
Y("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
139814
139810
|
Y("\\newline", "\\\\\\relax");
|
139815
139811
|
Y("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
139816
|
-
var lre =
|
139812
|
+
var lre = Xe(Ha["Main-Regular"][84][1] - 0.7 * Ha["Main-Regular"][65][1]);
|
139817
139813
|
Y("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + lre + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
139818
139814
|
Y("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + lre + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
139819
139815
|
Y("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
@@ -142544,7 +142540,7 @@ function Zc(e, t, n) {
|
|
142544
142540
|
var r, o, i, a;
|
142545
142541
|
return n.delimiters === void 0 || n.delimiters === "dollar" ? e === "inline" ? "$" : "$$" : n.delimiters === "bracket" ? e === "inline" ? t === "start" ? String.raw`\(` : String.raw`\)` : t === "start" ? String.raw`\[` : String.raw`\]` : e === "inline" ? t === "start" ? (r = n.delimiters.inlineStart) !== null && r !== void 0 ? r : "$" : (o = n.delimiters.inlineEnd) !== null && o !== void 0 ? o : "$" : t === "start" ? (i = n.delimiters.blockStart) !== null && i !== void 0 ? i : "$$" : (a = n.delimiters.blockEnd) !== null && a !== void 0 ? a : "$$";
|
142546
142542
|
}
|
142547
|
-
const yUt = "mathExtension", bUt =
|
142543
|
+
const yUt = "mathExtension", bUt = en.create({
|
142548
142544
|
name: yUt,
|
142549
142545
|
addOptions() {
|
142550
142546
|
return vre;
|
@@ -142661,8 +142657,8 @@ const vUt = sr.create({
|
|
142661
142657
|
"Mod-,": () => this.editor.commands.toggleSubscript()
|
142662
142658
|
};
|
142663
142659
|
}
|
142664
|
-
}), wUt = (e, t, n) => new
|
142665
|
-
key: new
|
142660
|
+
}), wUt = (e, t, n) => new Qt({
|
142661
|
+
key: new rn("media-paste-drop"),
|
142666
142662
|
props: {
|
142667
142663
|
handlePaste(r, o) {
|
142668
142664
|
var c, d;
|
@@ -142924,7 +142920,7 @@ const EUt = ({
|
|
142924
142920
|
metadataProxyUrl: t,
|
142925
142921
|
hoverEvent: n
|
142926
142922
|
}) => {
|
142927
|
-
const r = Xo("(max-width:768px)"), [o, i] = Re(null), [a, s] = Re(!1), l =
|
142923
|
+
const r = Xo("(max-width:768px)"), [o, i] = Re(null), [a, s] = Re(!1), l = et(/* @__PURE__ */ new Map()), u = async (c) => {
|
142928
142924
|
if (c) {
|
142929
142925
|
if (l.current.has(c)) {
|
142930
142926
|
i(l.current.get(c)), s(!1);
|
@@ -143006,15 +143002,15 @@ const EUt = ({
|
|
143006
143002
|
] })
|
143007
143003
|
] })
|
143008
143004
|
] }) : /* @__PURE__ */ M.jsx("p", { className: "text-helper-text-sm color-text-secondary", children: "No preview available" }) });
|
143009
|
-
}, AUt =
|
143005
|
+
}, AUt = en.create({
|
143010
143006
|
name: "linkPreview",
|
143011
143007
|
addProseMirrorPlugins() {
|
143012
143008
|
if (!this.options.metadataProxyUrl) return [];
|
143013
|
-
const e = new
|
143009
|
+
const e = new rn("link-preview");
|
143014
143010
|
let t = null, n = null, r = null, o = null, i = null;
|
143015
143011
|
const a = new EventTarget();
|
143016
143012
|
return [
|
143017
|
-
new
|
143013
|
+
new Qt({
|
143018
143014
|
key: e,
|
143019
143015
|
props: {
|
143020
143016
|
handleDOMEvents: {
|
@@ -143081,6 +143077,32 @@ const EUt = ({
|
|
143081
143077
|
}
|
143082
143078
|
};
|
143083
143079
|
},
|
143080
|
+
addProseMirrorPlugins() {
|
143081
|
+
const e = new rn("callout-block");
|
143082
|
+
return [
|
143083
|
+
new Qt({
|
143084
|
+
key: e,
|
143085
|
+
props: {
|
143086
|
+
transformPasted(t, n) {
|
143087
|
+
const r = n.state, { selection: o } = r, i = o.$from;
|
143088
|
+
let a = !1;
|
143089
|
+
for (let u = i.depth; u >= 0; u--)
|
143090
|
+
if (i.node(u).type.name === "callout") {
|
143091
|
+
a = !0;
|
143092
|
+
break;
|
143093
|
+
}
|
143094
|
+
if (!a) return t;
|
143095
|
+
const s = [];
|
143096
|
+
t.content.forEach((u) => {
|
143097
|
+
u.type.name === "callout" || u.type.name === "dBlock" ? u.content.forEach((c) => s.push(c)) : s.push(u);
|
143098
|
+
});
|
143099
|
+
const l = Oe.fromArray(s);
|
143100
|
+
return new Qe(l, 0, 0);
|
143101
|
+
}
|
143102
|
+
}
|
143103
|
+
})
|
143104
|
+
];
|
143105
|
+
},
|
143084
143106
|
addAttributes() {
|
143085
143107
|
return {
|
143086
143108
|
dataType: {
|
@@ -143106,7 +143128,7 @@ const EUt = ({
|
|
143106
143128
|
0
|
143107
143129
|
];
|
143108
143130
|
}
|
143109
|
-
}), DUt =
|
143131
|
+
}), DUt = en.create({
|
143110
143132
|
name: "fontSize",
|
143111
143133
|
addOptions() {
|
143112
143134
|
return {
|
@@ -144265,8 +144287,8 @@ function AWt(e) {
|
|
144265
144287
|
function jWt({ name: e, lowlight: t, defaultLanguage: n }) {
|
144266
144288
|
if (!["highlight", "highlightAuto", "listLanguages"].every((o) => AWt(t[o])))
|
144267
144289
|
throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");
|
144268
|
-
const r = new
|
144269
|
-
key: new
|
144290
|
+
const r = new Qt({
|
144291
|
+
key: new rn("lowlight"),
|
144270
144292
|
state: {
|
144271
144293
|
init: (o, { doc: i }) => XB({
|
144272
144294
|
doc: i,
|
@@ -144355,7 +144377,7 @@ function LWt({
|
|
144355
144377
|
editor: n,
|
144356
144378
|
deleteNode: r
|
144357
144379
|
}) {
|
144358
|
-
const o =
|
144380
|
+
const o = et(null), [i, a] = Re("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: p } = xl(), h = e.attrs.code || e.textContent || "", g = It(() => {
|
144359
144381
|
const k = h.split(`
|
144360
144382
|
`), v = [];
|
144361
144383
|
let x = 0;
|
@@ -158593,10 +158615,10 @@ function QZt(e) {
|
|
158593
158615
|
text: p[0]
|
158594
158616
|
} : null;
|
158595
158617
|
}
|
158596
|
-
const XZt = new
|
158618
|
+
const XZt = new rn("suggestion");
|
158597
158619
|
function coe({ pluginKey: e = XZt, editor: t, char: n = "@", allowSpaces: r = !1, allowedPrefixes: o = [" "], startOfLine: i = !1, decorationTag: a = "span", decorationClass: s = "suggestion", command: l = () => null, items: u = () => [], render: c = () => ({}), allow: d = () => !0, findSuggestionMatch: f = QZt }) {
|
158598
158620
|
let p;
|
158599
|
-
const h = c == null ? void 0 : c(), g = new
|
158621
|
+
const h = c == null ? void 0 : c(), g = new Qt({
|
158600
158622
|
key: e,
|
158601
158623
|
view() {
|
158602
158624
|
return {
|
@@ -218615,7 +218637,7 @@ function nKt(e) {
|
|
218615
218637
|
};
|
218616
218638
|
});
|
218617
218639
|
}
|
218618
|
-
const rKt = 200, oKt = new
|
218640
|
+
const rKt = 200, oKt = new rn("emoji"), iKt = Bt.create({
|
218619
218641
|
name: "emoji",
|
218620
218642
|
content: "text*",
|
218621
218643
|
priority: rKt,
|
@@ -218732,7 +218754,8 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
218732
218754
|
document: !1,
|
218733
218755
|
horizontalRule: !1,
|
218734
218756
|
bulletList: !1,
|
218735
|
-
listItem: !1
|
218757
|
+
listItem: !1,
|
218758
|
+
codeBlock: !1
|
218736
218759
|
}),
|
218737
218760
|
NWt.configure({
|
218738
218761
|
lowlight: aKt,
|
@@ -218838,7 +218861,8 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
218838
218861
|
katexOptions: {
|
218839
218862
|
throwOnError: !1,
|
218840
218863
|
strict: !1
|
218841
|
-
}
|
218864
|
+
},
|
218865
|
+
renderTextMode: "raw-latex"
|
218842
218866
|
}),
|
218843
218867
|
xUt,
|
218844
218868
|
vUt.configure({
|
@@ -219087,7 +219111,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
219087
219111
|
}), fKt = (e, t) => {
|
219088
219112
|
const n = e.offsetHeight, r = t ? t.offsetHeight : 0, o = t.offsetTop, i = o + r;
|
219089
219113
|
o < e.scrollTop ? e.scrollTop -= e.scrollTop - o + 5 : i > n + e.scrollTop && (e.scrollTop += i - n - e.scrollTop + 5);
|
219090
|
-
}, pKt =
|
219114
|
+
}, pKt = en.create({
|
219091
219115
|
name: "slash-command",
|
219092
219116
|
addOptions() {
|
219093
219117
|
return {
|
@@ -219176,7 +219200,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
219176
219200
|
}, [i, r, o, d]), Pe(() => {
|
219177
219201
|
o(0);
|
219178
219202
|
}, [i]);
|
219179
|
-
const f =
|
219203
|
+
const f = et(null);
|
219180
219204
|
return gl(() => {
|
219181
219205
|
const p = f == null ? void 0 : f.current, h = p == null ? void 0 : p.children[r];
|
219182
219206
|
h && p && fKt(p, h);
|
@@ -219244,7 +219268,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
219244
219268
|
render: gKt
|
219245
219269
|
}
|
219246
219270
|
});
|
219247
|
-
}, poe =
|
219271
|
+
}, poe = en.create({
|
219248
219272
|
name: "customTextInputRules",
|
219249
219273
|
addInputRules() {
|
219250
219274
|
return [
|
@@ -219595,8 +219619,8 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
219595
219619
|
},
|
219596
219620
|
addProseMirrorPlugins() {
|
219597
219621
|
return [
|
219598
|
-
new
|
219599
|
-
key: new
|
219622
|
+
new Qt({
|
219623
|
+
key: new rn("pageBreakPlugin"),
|
219600
219624
|
props: {
|
219601
219625
|
handleClick: (e, t, n) => {
|
219602
219626
|
if (n.target.classList.contains("remove-page-break-icon")) {
|
@@ -220067,7 +220091,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220067
220091
|
onCopyHeadingLink: A
|
220068
220092
|
}) => {
|
220069
220093
|
var he, me;
|
220070
|
-
const [C] = Re(new kl()), [D, T] = Re(null), I =
|
220094
|
+
const [C] = Re(new kl()), [D, T] = Re(null), I = et(null), B = (ee) => {
|
220071
220095
|
if (!I.current) return;
|
220072
220096
|
const ue = I.current.querySelector(`input#${ee}`);
|
220073
220097
|
ue && ue.scrollIntoView({
|
@@ -220109,7 +220133,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220109
220133
|
})
|
220110
220134
|
]);
|
220111
220135
|
}, [e]);
|
220112
|
-
const _ =
|
220136
|
+
const _ = et(!1), [G, Z] = Re(!0), [Q, K] = Re([]), ne = (ee, ue, be) => {
|
220113
220137
|
let Te = !1;
|
220114
220138
|
return ee.doc.nodesBetween(ue, be, ($e) => {
|
220115
220139
|
$e.marks && $e.marks.some(
|
@@ -220141,7 +220165,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220141
220165
|
}
|
220142
220166
|
}, ce = (ee, ue, be) => {
|
220143
220167
|
le(ee, be);
|
220144
|
-
}, pe = It(() => U, [U]), X =
|
220168
|
+
}, pe = It(() => U, [U]), X = et(null), de = OP(
|
220145
220169
|
{
|
220146
220170
|
extensions: pe,
|
220147
220171
|
editorProps: {
|
@@ -220191,7 +220215,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220191
220215
|
return () => clearTimeout(ee);
|
220192
220216
|
}
|
220193
220217
|
}, [b, G, t, de == null ? void 0 : de.isEmpty]);
|
220194
|
-
const Fe =
|
220218
|
+
const Fe = et(() => {
|
220195
220219
|
}), Ie = (ee, ue = !1) => {
|
220196
220220
|
if (!n || !r)
|
220197
220221
|
throw new Error("docId or username is not provided");
|
@@ -220214,11 +220238,11 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220214
220238
|
]), Fe.current = () => {
|
220215
220239
|
be.destroy(), C.destroy();
|
220216
220240
|
}, Fe.current;
|
220217
|
-
}, Le =
|
220241
|
+
}, Le = et(null);
|
220218
220242
|
Pe(() => {
|
220219
220243
|
de == null || de.setEditable(!e);
|
220220
220244
|
}, [e, de]);
|
220221
|
-
const Me =
|
220245
|
+
const Me = et(null), Se = async () => {
|
220222
220246
|
const ee = Me.current;
|
220223
220247
|
if (ee && await ee.destroy(), g && h) {
|
220224
220248
|
const ue = new HKt(h, C);
|
@@ -220363,7 +220387,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220363
220387
|
de.off("paste", ee);
|
220364
220388
|
};
|
220365
220389
|
}, [de]);
|
220366
|
-
const re =
|
220390
|
+
const re = et(localStorage.getItem("theme") !== null), fe = et(!1);
|
220367
220391
|
return Pe(() => {
|
220368
220392
|
if (!(!de || G || !re.current || fe.current))
|
220369
220393
|
if (t) {
|
@@ -220419,7 +220443,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220419
220443
|
), [c, d] = Re(""), [f, p] = Re(""), [h, g] = Re(!0), [m, b] = Re(!0), k = () => {
|
220420
220444
|
if (!e) return;
|
220421
220445
|
if ((c === null || c === "") && (f === "" || f === null)) {
|
220422
|
-
l(
|
220446
|
+
l(nt.NONE);
|
220423
220447
|
return;
|
220424
220448
|
}
|
220425
220449
|
let x = c;
|
@@ -220436,7 +220460,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220436
220460
|
type: "text",
|
220437
220461
|
text: f,
|
220438
220462
|
marks: x ? [{ type: "link", attrs: { href: x } }] : []
|
220439
|
-
}).run(), b(!0), g(!0), l(
|
220463
|
+
}).run(), b(!0), g(!0), l(nt.NONE);
|
220440
220464
|
}, v = () => {
|
220441
220465
|
if (!e) return { text: "", url: "" };
|
220442
220466
|
const { from: x, to: w } = e.state.selection, F = e.state.doc.textBetween(x, w), A = e.getAttributes("link");
|
@@ -220448,15 +220472,15 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220448
220472
|
return Pe(() => {
|
220449
220473
|
if (!e) return;
|
220450
220474
|
const x = (w) => {
|
220451
|
-
w.key === "k" && (w.metaKey || w.ctrlKey) && (w.preventDefault(), s !==
|
220475
|
+
w.key === "k" && (w.metaKey || w.ctrlKey) && (w.preventDefault(), s !== nt.LINK_POPUP ? l(nt.LINK_POPUP) : l(nt.NONE));
|
220452
220476
|
};
|
220453
220477
|
return document.addEventListener("keydown", x), () => {
|
220454
220478
|
document.removeEventListener("keydown", x);
|
220455
220479
|
};
|
220456
220480
|
}, [e, s]), Pe(() => {
|
220457
|
-
n && l(
|
220481
|
+
n && l(nt.NONE);
|
220458
220482
|
}, [n, l]), Pe(() => {
|
220459
|
-
if (s ===
|
220483
|
+
if (s === nt.LINK_POPUP) {
|
220460
220484
|
const { text: x, url: w } = v();
|
220461
220485
|
p(x), d(w);
|
220462
220486
|
}
|
@@ -220532,16 +220556,16 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220532
220556
|
FFt,
|
220533
220557
|
{
|
220534
220558
|
editor: e,
|
220535
|
-
isOpen: s ===
|
220536
|
-
setIsOpen: (x) => !x && l(
|
220559
|
+
isOpen: s === nt.TEXT_FORMATING,
|
220560
|
+
setIsOpen: (x) => !x && l(nt.NONE),
|
220537
220561
|
setToolVisibility: l
|
220538
220562
|
}
|
220539
220563
|
),
|
220540
220564
|
/* @__PURE__ */ M.jsx(
|
220541
220565
|
IG,
|
220542
220566
|
{
|
220543
|
-
open: s ===
|
220544
|
-
onOpenChange: (x) => !x && l(
|
220567
|
+
open: s === nt.LINK_POPUP,
|
220568
|
+
onOpenChange: (x) => !x && l(nt.NONE),
|
220545
220569
|
title: "Link",
|
220546
220570
|
content: /* @__PURE__ */ M.jsxs("div", { className: "flex flex-col gap-4 w-full h-full text-base", children: [
|
220547
220571
|
/* @__PURE__ */ M.jsx(
|
@@ -220582,7 +220606,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220582
220606
|
secondaryAction: {
|
220583
220607
|
label: "Cancel",
|
220584
220608
|
variant: "secondary",
|
220585
|
-
onClick: () => l(
|
220609
|
+
onClick: () => l(nt.NONE),
|
220586
220610
|
className: "w-full md:w-auto min-w-[80px]"
|
220587
220611
|
}
|
220588
220612
|
}
|
@@ -220700,7 +220724,7 @@ const ZKt = async (e) => {
|
|
220700
220724
|
currentSlide: t,
|
220701
220725
|
setCurrentSlide: n
|
220702
220726
|
}) => {
|
220703
|
-
const r =
|
220727
|
+
const r = et({}), o = et(null), { isNativeMobile: i } = xl(), a = Xo("(max-width: 1279px)");
|
220704
220728
|
return Pe(() => {
|
220705
220729
|
var s;
|
220706
220730
|
!a && r.current[t] && ((s = r.current[t]) == null || s.scrollIntoView({
|
@@ -222044,7 +222068,7 @@ Coe.displayName = "ToCItem";
|
|
222044
222068
|
const Eoe = f2(() => /* @__PURE__ */ M.jsx("div", { className: "p-4 text-center text-body-sm color-text-secondary select-none", children: /* @__PURE__ */ M.jsx("p", { children: "Start editing your document to see the outline." }) }));
|
222045
222069
|
Eoe.displayName = "ToCEmptyState";
|
222046
222070
|
const Aoe = f2(({ items: e = [], editor: t, setItems: n }) => {
|
222047
|
-
const [r, o] = Re(null), i = Xo("(max-width: 1280px)"), a =
|
222071
|
+
const [r, o] = Re(null), i = Xo("(max-width: 1280px)"), a = et(null), s = et(0), { collapsedHeadings: l, setCollapsedHeadings: u, expandMultipleHeadings: c } = Hte(), d = It(() => e.map((m) => ({
|
222048
222072
|
...m,
|
222049
222073
|
isActive: m.id === r
|
222050
222074
|
})), [e, r]), f = Ze(() => {
|
@@ -222298,7 +222322,7 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222298
222322
|
onCopyHeadingLink: $e,
|
222299
222323
|
footerHeight: at
|
222300
222324
|
}, Ct) => {
|
222301
|
-
const [we, qe] = Re(!1), [Ce, Je] = Re(!1), tt =
|
222325
|
+
const [we, qe] = Re(!1), [Ce, Je] = Re(!1), tt = et(null), Be = Xo("(min-width: 1500px)"), rt = Xo("(min-width: 3000px)"), { isNativeMobile: pt, isIOS: dt } = xl(), [Rt, qt] = Re(!1), wt = et(null), on = (w == null ? void 0 : w.slice(0, 4)) || [], vn = w ? Math.max(0, w.length - 4) : 0;
|
222302
222326
|
$M(wt, () => {
|
222303
222327
|
qt(!1);
|
222304
222328
|
}), Pe(() => {
|
@@ -222498,7 +222522,7 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222498
222522
|
"!mx-auto": !A || W === "0.5" || W === "0.75" || W === "1.4" || W === "1.5"
|
222499
222523
|
},
|
222500
222524
|
{
|
222501
|
-
"!ml-0": W === "2" && Be && !
|
222525
|
+
"!ml-0": W === "2" && Be && !rt
|
222502
222526
|
},
|
222503
222527
|
{
|
222504
222528
|
"w-[700px] md:max-w-[700px] min-h-[150%]": W === "0.5"
|
@@ -222516,7 +222540,7 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222516
222540
|
{ "w-[1548px] md:max-w-[1548px]": W === "2" }
|
222517
222541
|
),
|
222518
222542
|
style: {
|
222519
|
-
transformOrigin: W === "2" && !
|
222543
|
+
transformOrigin: W === "2" && !rt ? "left center" : "top center",
|
222520
222544
|
transform: `scaleX(${W})`
|
222521
222545
|
},
|
222522
222546
|
children: /* @__PURE__ */ M.jsxs(
|
@@ -222576,7 +222600,7 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222576
222600
|
{ "pt-12": e }
|
222577
222601
|
),
|
222578
222602
|
children: [
|
222579
|
-
|
222603
|
+
on.map((Ne, oe) => /* @__PURE__ */ M.jsx(
|
222580
222604
|
Gp,
|
222581
222605
|
{
|
222582
222606
|
style: { backgroundColor: Ne == null ? void 0 : Ne.color },
|
@@ -222805,7 +222829,7 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222805
222829
|
className: k,
|
222806
222830
|
unFocused: v
|
222807
222831
|
}, x) => {
|
222808
|
-
const [w, F] = Re(!1), A =
|
222832
|
+
const [w, F] = Re(!1), A = et(null), C = (m == null ? void 0 : m.slice(0, 4)) || [], D = m ? Math.max(0, m.length - 4) : 0;
|
222809
222833
|
$M(A, () => {
|
222810
222834
|
F(!1);
|
222811
222835
|
}), Pe(() => {
|