@apolitical/component-library 8.4.1 → 8.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +24 -24
- package/index.mjs +857 -857
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -223,14 +223,14 @@ function T3() {
|
|
|
223
223
|
}
|
|
224
224
|
return null;
|
|
225
225
|
}
|
|
226
|
-
var F = Object.assign, H = 0, q, O, J, X, k,
|
|
226
|
+
var F = Object.assign, H = 0, q, O, J, X, k, w, Z;
|
|
227
227
|
function B() {
|
|
228
228
|
}
|
|
229
229
|
B.__reactDisabledLog = !0;
|
|
230
|
-
function
|
|
230
|
+
function j() {
|
|
231
231
|
{
|
|
232
232
|
if (H === 0) {
|
|
233
|
-
q = console.log, O = console.info, J = console.warn, X = console.error, k = console.group,
|
|
233
|
+
q = console.log, O = console.info, J = console.warn, X = console.error, k = console.group, w = console.groupCollapsed, Z = console.groupEnd;
|
|
234
234
|
var K = {
|
|
235
235
|
configurable: !0,
|
|
236
236
|
enumerable: !0,
|
|
@@ -275,7 +275,7 @@ function T3() {
|
|
|
275
275
|
value: k
|
|
276
276
|
}),
|
|
277
277
|
groupCollapsed: F({}, K, {
|
|
278
|
-
value:
|
|
278
|
+
value: w
|
|
279
279
|
}),
|
|
280
280
|
groupEnd: F({}, K, {
|
|
281
281
|
value: Z
|
|
@@ -285,24 +285,24 @@ function T3() {
|
|
|
285
285
|
H < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
var U = v.ReactCurrentDispatcher,
|
|
289
|
-
function
|
|
288
|
+
var U = v.ReactCurrentDispatcher, $;
|
|
289
|
+
function ae(K, ye, ke) {
|
|
290
290
|
{
|
|
291
|
-
if (
|
|
291
|
+
if ($ === void 0)
|
|
292
292
|
try {
|
|
293
293
|
throw Error();
|
|
294
294
|
} catch (yt) {
|
|
295
295
|
var qe = yt.stack.trim().match(/\n( *(at )?)/);
|
|
296
|
-
|
|
296
|
+
$ = qe && qe[1] || "";
|
|
297
297
|
}
|
|
298
298
|
return `
|
|
299
|
-
` +
|
|
299
|
+
` + $ + K;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
var Y = !1, te;
|
|
303
303
|
{
|
|
304
|
-
var
|
|
305
|
-
te = new
|
|
304
|
+
var se = typeof WeakMap == "function" ? WeakMap : Map;
|
|
305
|
+
te = new se();
|
|
306
306
|
}
|
|
307
307
|
function re(K, ye) {
|
|
308
308
|
if (!K || Y)
|
|
@@ -317,7 +317,7 @@ function T3() {
|
|
|
317
317
|
var yt = Error.prepareStackTrace;
|
|
318
318
|
Error.prepareStackTrace = void 0;
|
|
319
319
|
var Ot;
|
|
320
|
-
Ot = U.current, U.current = null,
|
|
320
|
+
Ot = U.current, U.current = null, j();
|
|
321
321
|
try {
|
|
322
322
|
if (ye) {
|
|
323
323
|
var dt = function() {
|
|
@@ -372,7 +372,7 @@ function T3() {
|
|
|
372
372
|
} finally {
|
|
373
373
|
Y = !1, U.current = Ot, z(), Error.prepareStackTrace = yt;
|
|
374
374
|
}
|
|
375
|
-
var Xa = K ? K.displayName || K.name : "", g0 = Xa ?
|
|
375
|
+
var Xa = K ? K.displayName || K.name : "", g0 = Xa ? ae(Xa) : "";
|
|
376
376
|
return typeof K == "function" && te.set(K, g0), g0;
|
|
377
377
|
}
|
|
378
378
|
function Ae(K, ye, ke) {
|
|
@@ -388,12 +388,12 @@ function T3() {
|
|
|
388
388
|
if (typeof K == "function")
|
|
389
389
|
return re(K, Oe(K));
|
|
390
390
|
if (typeof K == "string")
|
|
391
|
-
return
|
|
391
|
+
return ae(K);
|
|
392
392
|
switch (K) {
|
|
393
393
|
case u:
|
|
394
|
-
return
|
|
394
|
+
return ae("Suspense");
|
|
395
395
|
case c:
|
|
396
|
-
return
|
|
396
|
+
return ae("SuspenseList");
|
|
397
397
|
}
|
|
398
398
|
if (typeof K == "object")
|
|
399
399
|
switch (K.$$typeof) {
|
|
@@ -3253,7 +3253,7 @@ const ea = ({
|
|
|
3253
3253
|
connection: c,
|
|
3254
3254
|
...d
|
|
3255
3255
|
}) => {
|
|
3256
|
-
var q, O, J, X, k,
|
|
3256
|
+
var q, O, J, X, k, w;
|
|
3257
3257
|
const f = be(), { profile: p, connections: g, ...m } = a, {
|
|
3258
3258
|
size: y = "medium",
|
|
3259
3259
|
variant: v = "inline",
|
|
@@ -3336,13 +3336,13 @@ const ea = ({
|
|
|
3336
3336
|
{ id: `dates_${S.path}` },
|
|
3337
3337
|
{ number: S.number }
|
|
3338
3338
|
),
|
|
3339
|
-
community: (
|
|
3339
|
+
community: (w = (k = r.customMessage) == null ? void 0 : k.link) == null ? void 0 : w.text,
|
|
3340
3340
|
link: (Z) => {
|
|
3341
|
-
var B,
|
|
3341
|
+
var B, j;
|
|
3342
3342
|
return /* @__PURE__ */ h.jsx(
|
|
3343
3343
|
"a",
|
|
3344
3344
|
{
|
|
3345
|
-
href: `${(
|
|
3345
|
+
href: `${(j = (B = r.customMessage) == null ? void 0 : B.link) == null ? void 0 : j.url}`,
|
|
3346
3346
|
onClick: (z) => z.stopPropagation(),
|
|
3347
3347
|
children: Z
|
|
3348
3348
|
}
|
|
@@ -3618,7 +3618,7 @@ function q7() {
|
|
|
3618
3618
|
function k(re) {
|
|
3619
3619
|
return _(re) === u;
|
|
3620
3620
|
}
|
|
3621
|
-
function
|
|
3621
|
+
function w(re) {
|
|
3622
3622
|
return _(re) === o;
|
|
3623
3623
|
}
|
|
3624
3624
|
function Z(re) {
|
|
@@ -3627,7 +3627,7 @@ function q7() {
|
|
|
3627
3627
|
function B(re) {
|
|
3628
3628
|
return typeof re == "object" && re !== null && re.$$typeof === t;
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function j(re) {
|
|
3631
3631
|
return _(re) === c;
|
|
3632
3632
|
}
|
|
3633
3633
|
function z(re) {
|
|
@@ -3636,10 +3636,10 @@ function q7() {
|
|
|
3636
3636
|
function U(re) {
|
|
3637
3637
|
return _(re) === g;
|
|
3638
3638
|
}
|
|
3639
|
-
function
|
|
3639
|
+
function $(re) {
|
|
3640
3640
|
return _(re) === p;
|
|
3641
3641
|
}
|
|
3642
|
-
function
|
|
3642
|
+
function ae(re) {
|
|
3643
3643
|
return _(re) === n;
|
|
3644
3644
|
}
|
|
3645
3645
|
function Y(re) {
|
|
@@ -3648,10 +3648,10 @@ function q7() {
|
|
|
3648
3648
|
function te(re) {
|
|
3649
3649
|
return _(re) === i;
|
|
3650
3650
|
}
|
|
3651
|
-
function
|
|
3651
|
+
function se(re) {
|
|
3652
3652
|
return _(re) === d;
|
|
3653
3653
|
}
|
|
3654
|
-
Ct.AsyncMode = T, Ct.ConcurrentMode = C, Ct.ContextConsumer = A, Ct.ContextProvider = R, Ct.Element = P, Ct.ForwardRef = L, Ct.Fragment = I, Ct.Lazy = N, Ct.Memo = S, Ct.Portal = F, Ct.Profiler = H, Ct.StrictMode = q, Ct.Suspense = O, Ct.isAsyncMode = X, Ct.isConcurrentMode = k, Ct.isContextConsumer =
|
|
3654
|
+
Ct.AsyncMode = T, Ct.ConcurrentMode = C, Ct.ContextConsumer = A, Ct.ContextProvider = R, Ct.Element = P, Ct.ForwardRef = L, Ct.Fragment = I, Ct.Lazy = N, Ct.Memo = S, Ct.Portal = F, Ct.Profiler = H, Ct.StrictMode = q, Ct.Suspense = O, Ct.isAsyncMode = X, Ct.isConcurrentMode = k, Ct.isContextConsumer = w, Ct.isContextProvider = Z, Ct.isElement = B, Ct.isForwardRef = j, Ct.isFragment = z, Ct.isLazy = U, Ct.isMemo = $, Ct.isPortal = ae, Ct.isProfiler = Y, Ct.isStrictMode = te, Ct.isSuspense = se, Ct.isValidElementType = b, Ct.typeOf = _;
|
|
3655
3655
|
}()), Ct;
|
|
3656
3656
|
}
|
|
3657
3657
|
var M0;
|
|
@@ -3793,9 +3793,9 @@ function K7() {
|
|
|
3793
3793
|
return Q1 = function(o, l) {
|
|
3794
3794
|
var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
|
|
3795
3795
|
function d(k) {
|
|
3796
|
-
var
|
|
3797
|
-
if (typeof
|
|
3798
|
-
return
|
|
3796
|
+
var w = k && (u && k[u] || k[c]);
|
|
3797
|
+
if (typeof w == "function")
|
|
3798
|
+
return w;
|
|
3799
3799
|
}
|
|
3800
3800
|
var f = "<<anonymous>>", p = {
|
|
3801
3801
|
array: v("array"),
|
|
@@ -3818,209 +3818,209 @@ function K7() {
|
|
|
3818
3818
|
shape: N,
|
|
3819
3819
|
exact: S
|
|
3820
3820
|
};
|
|
3821
|
-
function g(k,
|
|
3822
|
-
return k ===
|
|
3821
|
+
function g(k, w) {
|
|
3822
|
+
return k === w ? k !== 0 || 1 / k === 1 / w : k !== k && w !== w;
|
|
3823
3823
|
}
|
|
3824
|
-
function m(k,
|
|
3825
|
-
this.message = k, this.data =
|
|
3824
|
+
function m(k, w) {
|
|
3825
|
+
this.message = k, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
|
|
3826
3826
|
}
|
|
3827
3827
|
m.prototype = Error.prototype;
|
|
3828
3828
|
function y(k) {
|
|
3829
3829
|
if (process.env.NODE_ENV !== "production")
|
|
3830
|
-
var
|
|
3831
|
-
function B(z, U,
|
|
3832
|
-
if (
|
|
3830
|
+
var w = {}, Z = 0;
|
|
3831
|
+
function B(z, U, $, ae, Y, te, se) {
|
|
3832
|
+
if (ae = ae || f, te = te || $, se !== n) {
|
|
3833
3833
|
if (l) {
|
|
3834
3834
|
var re = new Error(
|
|
3835
3835
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
3836
3836
|
);
|
|
3837
3837
|
throw re.name = "Invariant Violation", re;
|
|
3838
3838
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
3839
|
-
var Ae =
|
|
3840
|
-
!
|
|
3839
|
+
var Ae = ae + ":" + $;
|
|
3840
|
+
!w[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3841
3841
|
Z < 3 && (a(
|
|
3842
|
-
"You are manually calling a React.PropTypes validation function for the `" + te + "` prop on `" +
|
|
3843
|
-
),
|
|
3842
|
+
"You are manually calling a React.PropTypes validation function for the `" + te + "` prop on `" + ae + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
3843
|
+
), w[Ae] = !0, Z++);
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
3846
|
-
return U[
|
|
3846
|
+
return U[$] == null ? z ? U[$] === null ? new m("The " + Y + " `" + te + "` is marked as required " + ("in `" + ae + "`, but its value is `null`.")) : new m("The " + Y + " `" + te + "` is marked as required in " + ("`" + ae + "`, but its value is `undefined`.")) : null : k(U, $, ae, Y, te);
|
|
3847
3847
|
}
|
|
3848
|
-
var
|
|
3849
|
-
return
|
|
3848
|
+
var j = B.bind(null, !1);
|
|
3849
|
+
return j.isRequired = B.bind(null, !0), j;
|
|
3850
3850
|
}
|
|
3851
3851
|
function v(k) {
|
|
3852
|
-
function
|
|
3853
|
-
var
|
|
3852
|
+
function w(Z, B, j, z, U, $) {
|
|
3853
|
+
var ae = Z[B], Y = q(ae);
|
|
3854
3854
|
if (Y !== k) {
|
|
3855
|
-
var te = O(
|
|
3855
|
+
var te = O(ae);
|
|
3856
3856
|
return new m(
|
|
3857
|
-
"Invalid " + z + " `" + U + "` of type " + ("`" + te + "` supplied to `" +
|
|
3857
|
+
"Invalid " + z + " `" + U + "` of type " + ("`" + te + "` supplied to `" + j + "`, expected ") + ("`" + k + "`."),
|
|
3858
3858
|
{ expectedType: k }
|
|
3859
3859
|
);
|
|
3860
3860
|
}
|
|
3861
3861
|
return null;
|
|
3862
3862
|
}
|
|
3863
|
-
return y(
|
|
3863
|
+
return y(w);
|
|
3864
3864
|
}
|
|
3865
3865
|
function E() {
|
|
3866
3866
|
return y(s);
|
|
3867
3867
|
}
|
|
3868
3868
|
function b(k) {
|
|
3869
|
-
function
|
|
3869
|
+
function w(Z, B, j, z, U) {
|
|
3870
3870
|
if (typeof k != "function")
|
|
3871
|
-
return new m("Property `" + U + "` of component `" +
|
|
3872
|
-
var
|
|
3873
|
-
if (!Array.isArray(
|
|
3874
|
-
var
|
|
3875
|
-
return new m("Invalid " + z + " `" + U + "` of type " + ("`" +
|
|
3876
|
-
}
|
|
3877
|
-
for (var Y = 0; Y <
|
|
3878
|
-
var te = k(
|
|
3871
|
+
return new m("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
3872
|
+
var $ = Z[B];
|
|
3873
|
+
if (!Array.isArray($)) {
|
|
3874
|
+
var ae = q($);
|
|
3875
|
+
return new m("Invalid " + z + " `" + U + "` of type " + ("`" + ae + "` supplied to `" + j + "`, expected an array."));
|
|
3876
|
+
}
|
|
3877
|
+
for (var Y = 0; Y < $.length; Y++) {
|
|
3878
|
+
var te = k($, Y, j, z, U + "[" + Y + "]", n);
|
|
3879
3879
|
if (te instanceof Error)
|
|
3880
3880
|
return te;
|
|
3881
3881
|
}
|
|
3882
3882
|
return null;
|
|
3883
3883
|
}
|
|
3884
|
-
return y(
|
|
3884
|
+
return y(w);
|
|
3885
3885
|
}
|
|
3886
3886
|
function _() {
|
|
3887
|
-
function k(
|
|
3888
|
-
var U =
|
|
3887
|
+
function k(w, Z, B, j, z) {
|
|
3888
|
+
var U = w[Z];
|
|
3889
3889
|
if (!o(U)) {
|
|
3890
|
-
var
|
|
3891
|
-
return new m("Invalid " +
|
|
3890
|
+
var $ = q(U);
|
|
3891
|
+
return new m("Invalid " + j + " `" + z + "` of type " + ("`" + $ + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
3892
3892
|
}
|
|
3893
3893
|
return null;
|
|
3894
3894
|
}
|
|
3895
3895
|
return y(k);
|
|
3896
3896
|
}
|
|
3897
3897
|
function T() {
|
|
3898
|
-
function k(
|
|
3899
|
-
var U =
|
|
3898
|
+
function k(w, Z, B, j, z) {
|
|
3899
|
+
var U = w[Z];
|
|
3900
3900
|
if (!e.isValidElementType(U)) {
|
|
3901
|
-
var
|
|
3902
|
-
return new m("Invalid " +
|
|
3901
|
+
var $ = q(U);
|
|
3902
|
+
return new m("Invalid " + j + " `" + z + "` of type " + ("`" + $ + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
3903
3903
|
}
|
|
3904
3904
|
return null;
|
|
3905
3905
|
}
|
|
3906
3906
|
return y(k);
|
|
3907
3907
|
}
|
|
3908
3908
|
function C(k) {
|
|
3909
|
-
function
|
|
3909
|
+
function w(Z, B, j, z, U) {
|
|
3910
3910
|
if (!(Z[B] instanceof k)) {
|
|
3911
|
-
var
|
|
3912
|
-
return new m("Invalid " + z + " `" + U + "` of type " + ("`" +
|
|
3911
|
+
var $ = k.name || f, ae = X(Z[B]);
|
|
3912
|
+
return new m("Invalid " + z + " `" + U + "` of type " + ("`" + ae + "` supplied to `" + j + "`, expected ") + ("instance of `" + $ + "`."));
|
|
3913
3913
|
}
|
|
3914
3914
|
return null;
|
|
3915
3915
|
}
|
|
3916
|
-
return y(
|
|
3916
|
+
return y(w);
|
|
3917
3917
|
}
|
|
3918
3918
|
function A(k) {
|
|
3919
3919
|
if (!Array.isArray(k))
|
|
3920
3920
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
3921
3921
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
3922
3922
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
3923
|
-
function
|
|
3924
|
-
for (var
|
|
3925
|
-
if (g(
|
|
3923
|
+
function w(Z, B, j, z, U) {
|
|
3924
|
+
for (var $ = Z[B], ae = 0; ae < k.length; ae++)
|
|
3925
|
+
if (g($, k[ae]))
|
|
3926
3926
|
return null;
|
|
3927
|
-
var Y = JSON.stringify(k, function(
|
|
3927
|
+
var Y = JSON.stringify(k, function(se, re) {
|
|
3928
3928
|
var Ae = O(re);
|
|
3929
3929
|
return Ae === "symbol" ? String(re) : re;
|
|
3930
3930
|
});
|
|
3931
|
-
return new m("Invalid " + z + " `" + U + "` of value `" + String(
|
|
3931
|
+
return new m("Invalid " + z + " `" + U + "` of value `" + String($) + "` " + ("supplied to `" + j + "`, expected one of " + Y + "."));
|
|
3932
3932
|
}
|
|
3933
|
-
return y(
|
|
3933
|
+
return y(w);
|
|
3934
3934
|
}
|
|
3935
3935
|
function R(k) {
|
|
3936
|
-
function
|
|
3936
|
+
function w(Z, B, j, z, U) {
|
|
3937
3937
|
if (typeof k != "function")
|
|
3938
|
-
return new m("Property `" + U + "` of component `" +
|
|
3939
|
-
var
|
|
3940
|
-
if (
|
|
3941
|
-
return new m("Invalid " + z + " `" + U + "` of type " + ("`" +
|
|
3942
|
-
for (var Y in
|
|
3943
|
-
if (r(
|
|
3944
|
-
var te = k(
|
|
3938
|
+
return new m("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
3939
|
+
var $ = Z[B], ae = q($);
|
|
3940
|
+
if (ae !== "object")
|
|
3941
|
+
return new m("Invalid " + z + " `" + U + "` of type " + ("`" + ae + "` supplied to `" + j + "`, expected an object."));
|
|
3942
|
+
for (var Y in $)
|
|
3943
|
+
if (r($, Y)) {
|
|
3944
|
+
var te = k($, Y, j, z, U + "." + Y, n);
|
|
3945
3945
|
if (te instanceof Error)
|
|
3946
3946
|
return te;
|
|
3947
3947
|
}
|
|
3948
3948
|
return null;
|
|
3949
3949
|
}
|
|
3950
|
-
return y(
|
|
3950
|
+
return y(w);
|
|
3951
3951
|
}
|
|
3952
3952
|
function P(k) {
|
|
3953
3953
|
if (!Array.isArray(k))
|
|
3954
3954
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
3955
|
-
for (var
|
|
3956
|
-
var Z = k[
|
|
3955
|
+
for (var w = 0; w < k.length; w++) {
|
|
3956
|
+
var Z = k[w];
|
|
3957
3957
|
if (typeof Z != "function")
|
|
3958
3958
|
return a(
|
|
3959
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(Z) + " at index " +
|
|
3959
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(Z) + " at index " + w + "."
|
|
3960
3960
|
), s;
|
|
3961
3961
|
}
|
|
3962
|
-
function B(
|
|
3962
|
+
function B(j, z, U, $, ae) {
|
|
3963
3963
|
for (var Y = [], te = 0; te < k.length; te++) {
|
|
3964
|
-
var
|
|
3964
|
+
var se = k[te], re = se(j, z, U, $, ae, n);
|
|
3965
3965
|
if (re == null)
|
|
3966
3966
|
return null;
|
|
3967
3967
|
re.data && r(re.data, "expectedType") && Y.push(re.data.expectedType);
|
|
3968
3968
|
}
|
|
3969
3969
|
var Ae = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
|
|
3970
|
-
return new m("Invalid " +
|
|
3970
|
+
return new m("Invalid " + $ + " `" + ae + "` supplied to " + ("`" + U + "`" + Ae + "."));
|
|
3971
3971
|
}
|
|
3972
3972
|
return y(B);
|
|
3973
3973
|
}
|
|
3974
3974
|
function L() {
|
|
3975
|
-
function k(
|
|
3976
|
-
return F(
|
|
3975
|
+
function k(w, Z, B, j, z) {
|
|
3976
|
+
return F(w[Z]) ? null : new m("Invalid " + j + " `" + z + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
3977
3977
|
}
|
|
3978
3978
|
return y(k);
|
|
3979
3979
|
}
|
|
3980
|
-
function I(k,
|
|
3980
|
+
function I(k, w, Z, B, j) {
|
|
3981
3981
|
return new m(
|
|
3982
|
-
(k || "React class") + ": " +
|
|
3982
|
+
(k || "React class") + ": " + w + " type `" + Z + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
3983
3983
|
);
|
|
3984
3984
|
}
|
|
3985
3985
|
function N(k) {
|
|
3986
|
-
function
|
|
3987
|
-
var
|
|
3988
|
-
if (
|
|
3989
|
-
return new m("Invalid " + z + " `" + U + "` of type `" +
|
|
3986
|
+
function w(Z, B, j, z, U) {
|
|
3987
|
+
var $ = Z[B], ae = q($);
|
|
3988
|
+
if (ae !== "object")
|
|
3989
|
+
return new m("Invalid " + z + " `" + U + "` of type `" + ae + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
3990
3990
|
for (var Y in k) {
|
|
3991
3991
|
var te = k[Y];
|
|
3992
3992
|
if (typeof te != "function")
|
|
3993
|
-
return I(
|
|
3994
|
-
var
|
|
3995
|
-
if (
|
|
3996
|
-
return
|
|
3993
|
+
return I(j, z, U, Y, O(te));
|
|
3994
|
+
var se = te($, Y, j, z, U + "." + Y, n);
|
|
3995
|
+
if (se)
|
|
3996
|
+
return se;
|
|
3997
3997
|
}
|
|
3998
3998
|
return null;
|
|
3999
3999
|
}
|
|
4000
|
-
return y(
|
|
4000
|
+
return y(w);
|
|
4001
4001
|
}
|
|
4002
4002
|
function S(k) {
|
|
4003
|
-
function
|
|
4004
|
-
var
|
|
4005
|
-
if (
|
|
4006
|
-
return new m("Invalid " + z + " `" + U + "` of type `" +
|
|
4003
|
+
function w(Z, B, j, z, U) {
|
|
4004
|
+
var $ = Z[B], ae = q($);
|
|
4005
|
+
if (ae !== "object")
|
|
4006
|
+
return new m("Invalid " + z + " `" + U + "` of type `" + ae + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
4007
4007
|
var Y = t({}, Z[B], k);
|
|
4008
4008
|
for (var te in Y) {
|
|
4009
|
-
var
|
|
4010
|
-
if (r(k, te) && typeof
|
|
4011
|
-
return I(
|
|
4012
|
-
if (!
|
|
4009
|
+
var se = k[te];
|
|
4010
|
+
if (r(k, te) && typeof se != "function")
|
|
4011
|
+
return I(j, z, U, te, O(se));
|
|
4012
|
+
if (!se)
|
|
4013
4013
|
return new m(
|
|
4014
|
-
"Invalid " + z + " `" + U + "` key `" + te + "` supplied to `" +
|
|
4014
|
+
"Invalid " + z + " `" + U + "` key `" + te + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(Z[B], null, " ") + `
|
|
4015
4015
|
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
4016
4016
|
);
|
|
4017
|
-
var re =
|
|
4017
|
+
var re = se($, te, j, z, U + "." + te, n);
|
|
4018
4018
|
if (re)
|
|
4019
4019
|
return re;
|
|
4020
4020
|
}
|
|
4021
4021
|
return null;
|
|
4022
4022
|
}
|
|
4023
|
-
return y(
|
|
4023
|
+
return y(w);
|
|
4024
4024
|
}
|
|
4025
4025
|
function F(k) {
|
|
4026
4026
|
switch (typeof k) {
|
|
@@ -4035,17 +4035,17 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4035
4035
|
return k.every(F);
|
|
4036
4036
|
if (k === null || o(k))
|
|
4037
4037
|
return !0;
|
|
4038
|
-
var
|
|
4039
|
-
if (
|
|
4040
|
-
var Z =
|
|
4041
|
-
if (
|
|
4038
|
+
var w = d(k);
|
|
4039
|
+
if (w) {
|
|
4040
|
+
var Z = w.call(k), B;
|
|
4041
|
+
if (w !== k.entries) {
|
|
4042
4042
|
for (; !(B = Z.next()).done; )
|
|
4043
4043
|
if (!F(B.value))
|
|
4044
4044
|
return !1;
|
|
4045
4045
|
} else
|
|
4046
4046
|
for (; !(B = Z.next()).done; ) {
|
|
4047
|
-
var
|
|
4048
|
-
if (
|
|
4047
|
+
var j = B.value;
|
|
4048
|
+
if (j && !F(j[1]))
|
|
4049
4049
|
return !1;
|
|
4050
4050
|
}
|
|
4051
4051
|
} else
|
|
@@ -4055,37 +4055,37 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4055
4055
|
return !1;
|
|
4056
4056
|
}
|
|
4057
4057
|
}
|
|
4058
|
-
function H(k,
|
|
4059
|
-
return k === "symbol" ? !0 :
|
|
4058
|
+
function H(k, w) {
|
|
4059
|
+
return k === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
|
|
4060
4060
|
}
|
|
4061
4061
|
function q(k) {
|
|
4062
|
-
var
|
|
4063
|
-
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : H(
|
|
4062
|
+
var w = typeof k;
|
|
4063
|
+
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : H(w, k) ? "symbol" : w;
|
|
4064
4064
|
}
|
|
4065
4065
|
function O(k) {
|
|
4066
4066
|
if (typeof k > "u" || k === null)
|
|
4067
4067
|
return "" + k;
|
|
4068
|
-
var
|
|
4069
|
-
if (
|
|
4068
|
+
var w = q(k);
|
|
4069
|
+
if (w === "object") {
|
|
4070
4070
|
if (k instanceof Date)
|
|
4071
4071
|
return "date";
|
|
4072
4072
|
if (k instanceof RegExp)
|
|
4073
4073
|
return "regexp";
|
|
4074
4074
|
}
|
|
4075
|
-
return
|
|
4075
|
+
return w;
|
|
4076
4076
|
}
|
|
4077
4077
|
function J(k) {
|
|
4078
|
-
var
|
|
4079
|
-
switch (
|
|
4078
|
+
var w = O(k);
|
|
4079
|
+
switch (w) {
|
|
4080
4080
|
case "array":
|
|
4081
4081
|
case "object":
|
|
4082
|
-
return "an " +
|
|
4082
|
+
return "an " + w;
|
|
4083
4083
|
case "boolean":
|
|
4084
4084
|
case "date":
|
|
4085
4085
|
case "regexp":
|
|
4086
|
-
return "a " +
|
|
4086
|
+
return "a " + w;
|
|
4087
4087
|
default:
|
|
4088
|
-
return
|
|
4088
|
+
return w;
|
|
4089
4089
|
}
|
|
4090
4090
|
}
|
|
4091
4091
|
function X(k) {
|
|
@@ -4562,12 +4562,12 @@ var K0 = {
|
|
|
4562
4562
|
* in reverse.
|
|
4563
4563
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
4564
4564
|
*/
|
|
4565
|
-
nextTabbableNode: function(
|
|
4566
|
-
var Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, B = S.indexOf(
|
|
4567
|
-
return B < 0 ? Z ? F.slice(F.indexOf(
|
|
4568
|
-
return Ca(
|
|
4569
|
-
}) : F.slice(0, F.indexOf(
|
|
4570
|
-
return Ca(
|
|
4565
|
+
nextTabbableNode: function(w) {
|
|
4566
|
+
var Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, B = S.indexOf(w);
|
|
4567
|
+
return B < 0 ? Z ? F.slice(F.indexOf(w) + 1).find(function(j) {
|
|
4568
|
+
return Ca(j);
|
|
4569
|
+
}) : F.slice(0, F.indexOf(w)).reverse().find(function(j) {
|
|
4570
|
+
return Ca(j);
|
|
4571
4571
|
}) : S[B + (Z ? 1 : -1)];
|
|
4572
4572
|
}
|
|
4573
4573
|
};
|
|
@@ -4606,21 +4606,21 @@ var K0 = {
|
|
|
4606
4606
|
q ? O = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : O = s.tabbableGroups[0].firstTabbableNode;
|
|
4607
4607
|
else if (q) {
|
|
4608
4608
|
var k = Y0(s.tabbableGroups, function(U) {
|
|
4609
|
-
var
|
|
4610
|
-
return S ===
|
|
4609
|
+
var $ = U.firstTabbableNode;
|
|
4610
|
+
return S === $;
|
|
4611
4611
|
});
|
|
4612
4612
|
if (k < 0 && (X.container === S || ic(S, a.tabbableOptions) && !Ca(S, a.tabbableOptions) && !X.nextTabbableNode(S, !1)) && (k = J), k >= 0) {
|
|
4613
|
-
var
|
|
4613
|
+
var w = k === 0 ? s.tabbableGroups.length - 1 : k - 1, Z = s.tabbableGroups[w];
|
|
4614
4614
|
O = Yi(S) >= 0 ? Z.lastTabbableNode : Z.lastDomTabbableNode;
|
|
4615
4615
|
} else
|
|
4616
4616
|
jo(F) || (O = X.nextTabbableNode(S, !1));
|
|
4617
4617
|
} else {
|
|
4618
4618
|
var B = Y0(s.tabbableGroups, function(U) {
|
|
4619
|
-
var
|
|
4620
|
-
return S ===
|
|
4619
|
+
var $ = U.lastTabbableNode;
|
|
4620
|
+
return S === $;
|
|
4621
4621
|
});
|
|
4622
4622
|
if (B < 0 && (X.container === S || ic(S, a.tabbableOptions) && !Ca(S, a.tabbableOptions) && !X.nextTabbableNode(S)) && (B = J), B >= 0) {
|
|
4623
|
-
var
|
|
4623
|
+
var j = B === s.tabbableGroups.length - 1 ? 0 : B + 1, z = s.tabbableGroups[j];
|
|
4624
4624
|
O = Yi(S) >= 0 ? z.firstTabbableNode : z.firstDomTabbableNode;
|
|
4625
4625
|
} else
|
|
4626
4626
|
jo(F) || (O = X.nextTabbableNode(S));
|
|
@@ -4663,8 +4663,8 @@ var K0 = {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
} else
|
|
4665
4665
|
s.containerGroups.some(function(k) {
|
|
4666
|
-
return k.tabbableNodes.some(function(
|
|
4667
|
-
return Yi(
|
|
4666
|
+
return k.tabbableNodes.some(function(w) {
|
|
4667
|
+
return Yi(w) > 0;
|
|
4668
4668
|
});
|
|
4669
4669
|
}) || (q = !1);
|
|
4670
4670
|
else
|
|
@@ -6672,7 +6672,7 @@ const Uie = ({
|
|
|
6672
6672
|
)
|
|
6673
6673
|
);
|
|
6674
6674
|
}, [i]);
|
|
6675
|
-
const [X, k] = de(null),
|
|
6675
|
+
const [X, k] = de(null), w = () => {
|
|
6676
6676
|
k(b.length), T();
|
|
6677
6677
|
};
|
|
6678
6678
|
return D4(), _ ? /* @__PURE__ */ h.jsx(Ci, { variant: "error", text: _.message }) : /* @__PURE__ */ h.jsxs("section", { className: "activities-feed", children: [
|
|
@@ -6734,8 +6734,8 @@ const Uie = ({
|
|
|
6734
6734
|
m([
|
|
6735
6735
|
y.find((U) => U.id === Z[0])
|
|
6736
6736
|
]);
|
|
6737
|
-
const
|
|
6738
|
-
if (
|
|
6737
|
+
const j = y.find((U) => U.id === Z[0]);
|
|
6738
|
+
if (!j)
|
|
6739
6739
|
return;
|
|
6740
6740
|
const z = new CustomEvent("ariaLive", {
|
|
6741
6741
|
detail: {
|
|
@@ -6743,8 +6743,8 @@ const Uie = ({
|
|
|
6743
6743
|
{ id: "community_sortSuccess" },
|
|
6744
6744
|
{
|
|
6745
6745
|
order: p.formatMessage({
|
|
6746
|
-
id: `activitiesFeed_rankingMethod_${
|
|
6747
|
-
defaultMessage:
|
|
6746
|
+
id: `activitiesFeed_rankingMethod_${j.text}`,
|
|
6747
|
+
defaultMessage: j.text
|
|
6748
6748
|
})
|
|
6749
6749
|
}
|
|
6750
6750
|
)
|
|
@@ -6759,7 +6759,7 @@ const Uie = ({
|
|
|
6759
6759
|
),
|
|
6760
6760
|
b == null ? void 0 : b.map((Z, B) => {
|
|
6761
6761
|
var Y;
|
|
6762
|
-
const { id:
|
|
6762
|
+
const { id: j, own_reactions: z, latest_reactions: U } = Z, ae = (((Y = z == null ? void 0 : z.like) == null ? void 0 : Y.length) || 0) > 0 ? z == null ? void 0 : z.like[0].id : "";
|
|
6763
6763
|
return /* @__PURE__ */ h.jsx(ol, { children: /* @__PURE__ */ h.jsx(
|
|
6764
6764
|
j1,
|
|
6765
6765
|
{
|
|
@@ -6767,39 +6767,39 @@ const Uie = ({
|
|
|
6767
6767
|
...Vx(Z, i),
|
|
6768
6768
|
slugs: {
|
|
6769
6769
|
question: `${e}/${t}`,
|
|
6770
|
-
answer:
|
|
6770
|
+
answer: j
|
|
6771
6771
|
},
|
|
6772
|
-
slug:
|
|
6772
|
+
slug: j
|
|
6773
6773
|
},
|
|
6774
6774
|
links: {
|
|
6775
|
-
post: `${e}/${t}/${
|
|
6776
|
-
comments: `${e}/${t}/${
|
|
6775
|
+
post: `${e}/${t}/${j}`,
|
|
6776
|
+
comments: `${e}/${t}/${j}`
|
|
6777
6777
|
},
|
|
6778
6778
|
gtmContext: "community",
|
|
6779
6779
|
functions: {
|
|
6780
6780
|
content: {
|
|
6781
6781
|
createContent: () => null,
|
|
6782
|
-
deleteContent: () => L({ activityId:
|
|
6782
|
+
deleteContent: () => L({ activityId: j }),
|
|
6783
6783
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6784
|
-
updateContent: (te, { body:
|
|
6784
|
+
updateContent: (te, { body: se, title: re }) => P({ activityId: j, content: se, title: re })
|
|
6785
6785
|
},
|
|
6786
6786
|
likes: {
|
|
6787
|
-
createLike: () => I({ activityId:
|
|
6788
|
-
deleteLike: () => N({ activityId:
|
|
6789
|
-
listLikes: (te) => u.list({ activityId:
|
|
6787
|
+
createLike: () => I({ activityId: j }),
|
|
6788
|
+
deleteLike: () => N({ activityId: j, reactionId: ae }),
|
|
6789
|
+
listLikes: (te) => u.list({ activityId: j, ...te })
|
|
6790
6790
|
},
|
|
6791
6791
|
comments: {
|
|
6792
6792
|
openComments: () => null
|
|
6793
6793
|
},
|
|
6794
6794
|
pins: {
|
|
6795
|
-
createPin: () => S({ activityId:
|
|
6795
|
+
createPin: () => S({ activityId: j }),
|
|
6796
6796
|
// there will only ever be one pin so we can just grab the first one
|
|
6797
|
-
deletePin: () => F({ activityId:
|
|
6797
|
+
deletePin: () => F({ activityId: j, reactionId: U == null ? void 0 : U.pin[0].id })
|
|
6798
6798
|
},
|
|
6799
6799
|
polls: {
|
|
6800
|
-
createVote: ({ reactionId: te }) => q({ activityId:
|
|
6801
|
-
removeVote: ({ reactionId: te }) => O({ activityId:
|
|
6802
|
-
removePoll: () => J({ activityId:
|
|
6800
|
+
createVote: ({ reactionId: te }) => q({ activityId: j, reactionId: te }),
|
|
6801
|
+
removeVote: ({ reactionId: te }) => O({ activityId: j, reactionId: te }),
|
|
6802
|
+
removePoll: () => J({ activityId: j })
|
|
6803
6803
|
},
|
|
6804
6804
|
form: s
|
|
6805
6805
|
},
|
|
@@ -6824,13 +6824,13 @@ const Uie = ({
|
|
|
6824
6824
|
basePath: e,
|
|
6825
6825
|
parentId: t
|
|
6826
6826
|
}
|
|
6827
|
-
) },
|
|
6827
|
+
) }, j);
|
|
6828
6828
|
}),
|
|
6829
6829
|
!A && /* @__PURE__ */ h.jsx(
|
|
6830
6830
|
u1,
|
|
6831
6831
|
{
|
|
6832
6832
|
hasNextPage: C,
|
|
6833
|
-
loadNextPage:
|
|
6833
|
+
loadNextPage: w,
|
|
6834
6834
|
icon: { icon: "arrow-down", position: "right" },
|
|
6835
6835
|
messages: {
|
|
6836
6836
|
button: p.formatMessage({ id: "loadMore_button" }),
|
|
@@ -8637,7 +8637,7 @@ const A6 = ({
|
|
|
8637
8637
|
condition: (q) => {
|
|
8638
8638
|
var k;
|
|
8639
8639
|
const O = q[e].toLowerCase(), J = ((k = q[`${e}-all`]) == null ? void 0 : k.length) ?? 0, X = new Set(
|
|
8640
|
-
q[`${e}-all`].map((
|
|
8640
|
+
q[`${e}-all`].map((w) => w.toLowerCase())
|
|
8641
8641
|
);
|
|
8642
8642
|
return X.has(O) && X.size < J;
|
|
8643
8643
|
},
|
|
@@ -8649,15 +8649,15 @@ const A6 = ({
|
|
|
8649
8649
|
var Z;
|
|
8650
8650
|
let k = (Z = X == null ? void 0 : X[e]) == null ? void 0 : Z[F];
|
|
8651
8651
|
k || (X[e] && !Array.isArray(X[e]) ? k = X[e] : k = "");
|
|
8652
|
-
const
|
|
8653
|
-
return
|
|
8652
|
+
const w = sr(X);
|
|
8653
|
+
return w[e] = k, w[`${e}-all`] = X[e], typeof O == "function" && O(w) ? J : !1;
|
|
8654
8654
|
};
|
|
8655
8655
|
else {
|
|
8656
8656
|
const X = O;
|
|
8657
8657
|
q.condition = (k) => {
|
|
8658
8658
|
var Z;
|
|
8659
|
-
let
|
|
8660
|
-
switch (
|
|
8659
|
+
let w = (Z = k == null ? void 0 : k[e]) == null ? void 0 : Z[F];
|
|
8660
|
+
switch (w || (k[e] && !Array.isArray(k[e]) ? w = k[e] : w = ""), X) {
|
|
8661
8661
|
case "required":
|
|
8662
8662
|
J || (q.error = f == null ? void 0 : f.formatMessage({ id: "form_error_required" }));
|
|
8663
8663
|
break;
|
|
@@ -8673,7 +8673,7 @@ const A6 = ({
|
|
|
8673
8673
|
default:
|
|
8674
8674
|
console.warn("WARNING! No field validation condition has been set");
|
|
8675
8675
|
}
|
|
8676
|
-
return Po(X,
|
|
8676
|
+
return Po(X, w) ? q.error : !1;
|
|
8677
8677
|
};
|
|
8678
8678
|
}
|
|
8679
8679
|
}), I.push({
|
|
@@ -9202,7 +9202,7 @@ const ti = ({
|
|
|
9202
9202
|
formSubmitted: !1,
|
|
9203
9203
|
errors: {},
|
|
9204
9204
|
values: H
|
|
9205
|
-
}), { errors: J, isSubmitting: X, formSubmitted: k, values:
|
|
9205
|
+
}), { errors: J, isSubmitting: X, formSubmitted: k, values: w } = q;
|
|
9206
9206
|
me(() => {
|
|
9207
9207
|
T && k && (id = setTimeout(() => {
|
|
9208
9208
|
O({
|
|
@@ -9229,7 +9229,7 @@ const ti = ({
|
|
|
9229
9229
|
);
|
|
9230
9230
|
};
|
|
9231
9231
|
}, []);
|
|
9232
|
-
const Z = Ue(null), B = i || Z,
|
|
9232
|
+
const Z = Ue(null), B = i || Z, j = cl(() => {
|
|
9233
9233
|
if (!X) {
|
|
9234
9234
|
if (O({
|
|
9235
9235
|
type: "updateValue",
|
|
@@ -9281,29 +9281,29 @@ const ti = ({
|
|
|
9281
9281
|
}));
|
|
9282
9282
|
}), delete E.text;
|
|
9283
9283
|
const U = () => {
|
|
9284
|
-
var
|
|
9284
|
+
var se;
|
|
9285
9285
|
let Y = 0;
|
|
9286
|
-
if ((
|
|
9286
|
+
if ((se = B == null ? void 0 : B.current) != null && se.id) {
|
|
9287
9287
|
const re = document.getElementById(B.current.id);
|
|
9288
9288
|
re && (Y = re.getBoundingClientRect().top + window.scrollY);
|
|
9289
9289
|
}
|
|
9290
9290
|
const te = document.getElementById("header");
|
|
9291
9291
|
te && (Y = Y - te.offsetHeight - b), Y < 0 && (Y = 0), window.scrollTo({ top: Y, behavior: "smooth" });
|
|
9292
|
-
},
|
|
9293
|
-
Y.preventDefault(), Y.stopPropagation(), !X &&
|
|
9294
|
-
},
|
|
9292
|
+
}, $ = (Y) => {
|
|
9293
|
+
Y.preventDefault(), Y.stopPropagation(), !X && j();
|
|
9294
|
+
}, ae = [
|
|
9295
9295
|
{
|
|
9296
9296
|
...E,
|
|
9297
9297
|
icon: k ? { icon: "tick", position: "left" } : !1,
|
|
9298
9298
|
className: ee("gtm-trackable", E.className),
|
|
9299
|
-
onClick:
|
|
9299
|
+
onClick: $,
|
|
9300
9300
|
disabled: X || k || s.disabled,
|
|
9301
9301
|
"data-gtm-event-context": c.context,
|
|
9302
9302
|
"data-gtm-event-type": c.event,
|
|
9303
9303
|
children: z[X ? "submitting" : k ? "submitted" : "default"]
|
|
9304
9304
|
}
|
|
9305
9305
|
];
|
|
9306
|
-
return _ &&
|
|
9306
|
+
return _ && ae.unshift({
|
|
9307
9307
|
...o,
|
|
9308
9308
|
className: ee("gtm-trackable", o.className),
|
|
9309
9309
|
"data-gtm-event-context": c.context,
|
|
@@ -9331,22 +9331,22 @@ const ti = ({
|
|
|
9331
9331
|
u,
|
|
9332
9332
|
(!C || !X && !k || y) && t.map((Y, te) => {
|
|
9333
9333
|
const {
|
|
9334
|
-
id:
|
|
9334
|
+
id: se = Y.name || te,
|
|
9335
9335
|
component: re,
|
|
9336
9336
|
functions: Ae = { onChange: () => {
|
|
9337
9337
|
} },
|
|
9338
9338
|
submitOnEnter: Oe = !1
|
|
9339
9339
|
} = Y;
|
|
9340
9340
|
if (re)
|
|
9341
|
-
return /* @__PURE__ */ h.jsx(re, { ...Y.props || {} }, `component-${
|
|
9342
|
-
const Ce = (
|
|
9341
|
+
return /* @__PURE__ */ h.jsx(re, { ...Y.props || {} }, `component-${se}-${te}`);
|
|
9342
|
+
const Ce = (w == null ? void 0 : w[se]) || "", ue = {
|
|
9343
9343
|
...Ae,
|
|
9344
9344
|
onChange: (he) => {
|
|
9345
|
-
O({ type: "updateValue", payload: { key:
|
|
9345
|
+
O({ type: "updateValue", payload: { key: se, value: he } }), Ae.onChange(he, O);
|
|
9346
9346
|
}
|
|
9347
9347
|
};
|
|
9348
9348
|
return Oe && (ue.onKeyDown = (he) => {
|
|
9349
|
-
he.key === "Enter" && (he.stopPropagation(), he.preventDefault(),
|
|
9349
|
+
he.key === "Enter" && (he.stopPropagation(), he.preventDefault(), j()), Ae.onKeyDown && Ae.onKeyDown(he);
|
|
9350
9350
|
}), /* @__PURE__ */ h.jsx(
|
|
9351
9351
|
I4,
|
|
9352
9352
|
{
|
|
@@ -9354,7 +9354,7 @@ const ti = ({
|
|
|
9354
9354
|
...Y,
|
|
9355
9355
|
showRequiredLabels: A,
|
|
9356
9356
|
value: Ce,
|
|
9357
|
-
error: Y.type === "multiple-inputs" ? J : J == null ? void 0 : J[
|
|
9357
|
+
error: Y.type === "multiple-inputs" ? J : J == null ? void 0 : J[se],
|
|
9358
9358
|
functions: ue,
|
|
9359
9359
|
fieldData: {
|
|
9360
9360
|
fields: g.fieldsToValidate,
|
|
@@ -9363,7 +9363,7 @@ const ti = ({
|
|
|
9363
9363
|
dispatch: O
|
|
9364
9364
|
}
|
|
9365
9365
|
},
|
|
9366
|
-
|
|
9366
|
+
se
|
|
9367
9367
|
);
|
|
9368
9368
|
}),
|
|
9369
9369
|
v ? null : (X || k) && y ? y : /* @__PURE__ */ h.jsx(
|
|
@@ -9373,7 +9373,7 @@ const ti = ({
|
|
|
9373
9373
|
center: X || k,
|
|
9374
9374
|
submitted: k
|
|
9375
9375
|
}),
|
|
9376
|
-
buttons:
|
|
9376
|
+
buttons: ae
|
|
9377
9377
|
}
|
|
9378
9378
|
)
|
|
9379
9379
|
] })
|
|
@@ -9742,18 +9742,18 @@ const qw = /* @__PURE__ */ Or(zw), fg = (e) => typeof e == "object" && e != null
|
|
|
9742
9742
|
let S = o === "start" || o === "nearest" ? T - P : o === "end" ? A + I : T + b / 2 - P + I, F = l === "center" ? R + _ / 2 - N + L : l === "end" ? C + L : R - N;
|
|
9743
9743
|
const H = [];
|
|
9744
9744
|
for (let q = 0; q < p.length; q++) {
|
|
9745
|
-
const O = p[q], { height: J, width: X, top: k, right:
|
|
9746
|
-
if (s === "if-needed" && T >= 0 && R >= 0 && A <= y && C <= m && T >= k && A <= Z && R >= B && C <=
|
|
9745
|
+
const O = p[q], { height: J, width: X, top: k, right: w, bottom: Z, left: B } = O.getBoundingClientRect();
|
|
9746
|
+
if (s === "if-needed" && T >= 0 && R >= 0 && A <= y && C <= m && T >= k && A <= Z && R >= B && C <= w)
|
|
9747
9747
|
return H;
|
|
9748
|
-
const
|
|
9748
|
+
const j = getComputedStyle(O), z = parseInt(j.borderLeftWidth, 10), U = parseInt(j.borderTopWidth, 10), $ = parseInt(j.borderRightWidth, 10), ae = parseInt(j.borderBottomWidth, 10);
|
|
9749
9749
|
let Y = 0, te = 0;
|
|
9750
|
-
const
|
|
9750
|
+
const se = "offsetWidth" in O ? O.offsetWidth - O.clientWidth - z - $ : 0, re = "offsetHeight" in O ? O.offsetHeight - O.clientHeight - U - ae : 0, Ae = "offsetWidth" in O ? O.offsetWidth === 0 ? 0 : X / O.offsetWidth : 0, Oe = "offsetHeight" in O ? O.offsetHeight === 0 ? 0 : J / O.offsetHeight : 0;
|
|
9751
9751
|
if (f === O)
|
|
9752
|
-
Y = o === "start" ? S : o === "end" ? S - y : o === "nearest" ? ru(E, E + y, y, U,
|
|
9752
|
+
Y = o === "start" ? S : o === "end" ? S - y : o === "nearest" ? ru(E, E + y, y, U, ae, E + S, E + S + b, b) : S - y / 2, te = l === "start" ? F : l === "center" ? F - m / 2 : l === "end" ? F - m : ru(v, v + m, m, z, $, v + F, v + F + _, _), Y = Math.max(0, Y + E), te = Math.max(0, te + v);
|
|
9753
9753
|
else {
|
|
9754
|
-
Y = o === "start" ? S - k - U : o === "end" ? S - Z +
|
|
9754
|
+
Y = o === "start" ? S - k - U : o === "end" ? S - Z + ae + re : o === "nearest" ? ru(k, Z, J, U, ae + re, S, S + b, b) : S - (k + J / 2) + re / 2, te = l === "start" ? F - B - z : l === "center" ? F - (B + X / 2) + se / 2 : l === "end" ? F - w + $ + se : ru(B, w, X, z, $ + se, F, F + _, _);
|
|
9755
9755
|
const { scrollLeft: Ce, scrollTop: ue } = O;
|
|
9756
|
-
Y = Oe === 0 ? 0 : Math.max(0, Math.min(ue + Y / Oe, O.scrollHeight - J / Oe + re)), te = Ae === 0 ? 0 : Math.max(0, Math.min(Ce + te / Ae, O.scrollWidth - X / Ae +
|
|
9756
|
+
Y = Oe === 0 ? 0 : Math.max(0, Math.min(ue + Y / Oe, O.scrollHeight - J / Oe + re)), te = Ae === 0 ? 0 : Math.max(0, Math.min(Ce + te / Ae, O.scrollWidth - X / Ae + se)), S += ue - Y, F += Ce - te;
|
|
9757
9757
|
}
|
|
9758
9758
|
H.push({ el: O, top: Y, left: te });
|
|
9759
9759
|
}
|
|
@@ -10591,19 +10591,19 @@ var cA = (e, t, n) => {
|
|
|
10591
10591
|
case "remove_node": {
|
|
10592
10592
|
var {
|
|
10593
10593
|
path: X
|
|
10594
|
-
} = n, k = X[X.length - 1],
|
|
10595
|
-
if (
|
|
10594
|
+
} = n, k = X[X.length - 1], w = Ee.parent(e, X);
|
|
10595
|
+
if (w.children.splice(k, 1), t)
|
|
10596
10596
|
for (var [Z, B] of oe.points(t)) {
|
|
10597
|
-
var
|
|
10598
|
-
if (t != null &&
|
|
10599
|
-
t[B] =
|
|
10597
|
+
var j = Qe.transform(Z, n);
|
|
10598
|
+
if (t != null && j != null)
|
|
10599
|
+
t[B] = j;
|
|
10600
10600
|
else {
|
|
10601
10601
|
var z = void 0, U = void 0;
|
|
10602
|
-
for (var [
|
|
10603
|
-
if (V.compare(
|
|
10604
|
-
z = [
|
|
10602
|
+
for (var [$, ae] of Ee.texts(e))
|
|
10603
|
+
if (V.compare(ae, X) === -1)
|
|
10604
|
+
z = [$, ae];
|
|
10605
10605
|
else {
|
|
10606
|
-
U = [
|
|
10606
|
+
U = [$, ae];
|
|
10607
10607
|
break;
|
|
10608
10608
|
}
|
|
10609
10609
|
var Y = !1;
|
|
@@ -10615,12 +10615,12 @@ var cA = (e, t, n) => {
|
|
|
10615
10615
|
case "remove_text": {
|
|
10616
10616
|
var {
|
|
10617
10617
|
path: te,
|
|
10618
|
-
offset:
|
|
10618
|
+
offset: se,
|
|
10619
10619
|
text: re
|
|
10620
10620
|
} = n;
|
|
10621
10621
|
if (re.length === 0)
|
|
10622
10622
|
break;
|
|
10623
|
-
var Ae = Ee.leaf(e, te), Oe = Ae.text.slice(0,
|
|
10623
|
+
var Ae = Ee.leaf(e, te), Oe = Ae.text.slice(0, se), Ce = Ae.text.slice(se + re.length);
|
|
10624
10624
|
if (Ae.text = Oe + Ce, t)
|
|
10625
10625
|
for (var [ue, he] of oe.points(t))
|
|
10626
10626
|
t[he] = Qe.transform(ue, n);
|
|
@@ -12922,15 +12922,15 @@ var QS = (e, t) => {
|
|
|
12922
12922
|
return D.pathRef(t, Ce);
|
|
12923
12923
|
}), J = D.pointRef(t, E), X = D.pointRef(t, b), k = "";
|
|
12924
12924
|
if (!A && !R) {
|
|
12925
|
-
var
|
|
12925
|
+
var w = J.current, [Z] = D.leaf(t, w), {
|
|
12926
12926
|
path: B
|
|
12927
|
-
} =
|
|
12928
|
-
offset:
|
|
12929
|
-
} = E, z = Z.text.slice(
|
|
12927
|
+
} = w, {
|
|
12928
|
+
offset: j
|
|
12929
|
+
} = E, z = Z.text.slice(j);
|
|
12930
12930
|
z.length > 0 && (t.apply({
|
|
12931
12931
|
type: "remove_text",
|
|
12932
12932
|
path: B,
|
|
12933
|
-
offset:
|
|
12933
|
+
offset: j,
|
|
12934
12934
|
text: z
|
|
12935
12935
|
}), k = z);
|
|
12936
12936
|
}
|
|
@@ -12938,12 +12938,12 @@ var QS = (e, t) => {
|
|
|
12938
12938
|
at: Oe,
|
|
12939
12939
|
voids: l
|
|
12940
12940
|
})), !P) {
|
|
12941
|
-
var U = X.current, [
|
|
12942
|
-
path:
|
|
12943
|
-
} = U, Y = A ? E.offset : 0, te =
|
|
12941
|
+
var U = X.current, [$] = D.leaf(t, U), {
|
|
12942
|
+
path: ae
|
|
12943
|
+
} = U, Y = A ? E.offset : 0, te = $.text.slice(Y, b.offset);
|
|
12944
12944
|
te.length > 0 && (t.apply({
|
|
12945
12945
|
type: "remove_text",
|
|
12946
|
-
path:
|
|
12946
|
+
path: ae,
|
|
12947
12947
|
offset: Y,
|
|
12948
12948
|
text: te
|
|
12949
12949
|
}), k = te);
|
|
@@ -12953,7 +12953,7 @@ var QS = (e, t) => {
|
|
|
12953
12953
|
hanging: !0,
|
|
12954
12954
|
voids: l
|
|
12955
12955
|
}), d && a && s === "character" && k.length > 1 && k.match(/[\u0E00-\u0E7F]+/) && le.insertText(t, k.slice(0, k.length - o));
|
|
12956
|
-
var
|
|
12956
|
+
var se = J.unref(), re = X.unref(), Ae = a ? se || re : re || se;
|
|
12957
12957
|
n.at == null && Ae && le.select(t, Ae);
|
|
12958
12958
|
}
|
|
12959
12959
|
}
|
|
@@ -13015,8 +13015,8 @@ var QS = (e, t) => {
|
|
|
13015
13015
|
}, []), [, C] = Ee.last({
|
|
13016
13016
|
children: n
|
|
13017
13017
|
}, []), A = [], R = (z) => {
|
|
13018
|
-
var [U,
|
|
13019
|
-
return
|
|
13018
|
+
var [U, $] = z, ae = $.length === 0;
|
|
13019
|
+
return ae ? !1 : E ? !0 : !(b && V.isAncestor($, T) && De.isElement(U) && !t.isVoid(U) && !t.isInline(U) || _ && V.isAncestor($, C) && De.isElement(U) && !t.isVoid(U) && !t.isInline(U));
|
|
13020
13020
|
};
|
|
13021
13021
|
for (var P of Ee.nodes({
|
|
13022
13022
|
children: n
|
|
@@ -13032,7 +13032,7 @@ var QS = (e, t) => {
|
|
|
13032
13032
|
match: (z) => Ne.isText(z) || D.isInline(t, z),
|
|
13033
13033
|
mode: "highest",
|
|
13034
13034
|
voids: a
|
|
13035
|
-
}), [, O] = q, J = D.isStart(t, s, O), X = D.isEnd(t, s, O), k = D.pathRef(t, v && !N.length ? V.next(m) : m),
|
|
13035
|
+
}), [, O] = q, J = D.isStart(t, s, O), X = D.isEnd(t, s, O), k = D.pathRef(t, v && !N.length ? V.next(m) : m), w = D.pathRef(t, X ? V.next(O) : O);
|
|
13036
13036
|
le.splitNodes(t, {
|
|
13037
13037
|
at: s,
|
|
13038
13038
|
match: (z) => F ? De.isElement(z) && D.isBlock(t, z) : Ne.isText(z) || D.isInline(t, z),
|
|
@@ -13057,19 +13057,19 @@ var QS = (e, t) => {
|
|
|
13057
13057
|
voids: a,
|
|
13058
13058
|
batchDirty: o
|
|
13059
13059
|
}), le.insertNodes(t, N, {
|
|
13060
|
-
at:
|
|
13060
|
+
at: w.current,
|
|
13061
13061
|
match: (z) => Ne.isText(z) || D.isInline(t, z),
|
|
13062
13062
|
mode: "highest",
|
|
13063
13063
|
voids: a,
|
|
13064
13064
|
batchDirty: o
|
|
13065
13065
|
}), !r.at) {
|
|
13066
13066
|
var B;
|
|
13067
|
-
if (N.length > 0 &&
|
|
13068
|
-
var
|
|
13069
|
-
le.select(t,
|
|
13067
|
+
if (N.length > 0 && w.current ? B = V.previous(w.current) : I.length > 0 && k.current ? B = V.previous(k.current) : Z.current && (B = V.previous(Z.current)), B) {
|
|
13068
|
+
var j = D.end(t, B);
|
|
13069
|
+
le.select(t, j);
|
|
13070
13070
|
}
|
|
13071
13071
|
}
|
|
13072
|
-
Z.unref(), k.unref(),
|
|
13072
|
+
Z.unref(), k.unref(), w.unref();
|
|
13073
13073
|
}
|
|
13074
13074
|
}
|
|
13075
13075
|
});
|
|
@@ -15417,10 +15417,10 @@ function AD(e) {
|
|
|
15417
15417
|
var H, q, O = Ar.get(t);
|
|
15418
15418
|
O !== void 0 && (Ar.delete(t), t.marks = O), O && u === !1 && (u = null);
|
|
15419
15419
|
var J = bD(F);
|
|
15420
|
-
(!t.selection || !oe.equals(t.selection, J)) && le.select(t, J), F.diff.text ? D.insertText(t, F.diff.text) : D.deleteFragment(t), On.set(t, (q = On.get(t)) === null || q === void 0 ? void 0 : q.filter((
|
|
15420
|
+
(!t.selection || !oe.equals(t.selection, J)) && le.select(t, J), F.diff.text ? D.insertText(t, F.diff.text) : D.deleteFragment(t), On.set(t, (q = On.get(t)) === null || q === void 0 ? void 0 : q.filter((w) => {
|
|
15421
15421
|
var {
|
|
15422
15422
|
id: Z
|
|
15423
|
-
} =
|
|
15423
|
+
} = w;
|
|
15424
15424
|
return Z !== F.id;
|
|
15425
15425
|
})), gD(t, F) || (S = !1, Vi.delete(t), bi.delete(t), i = "action", Ki.delete(t), n.cancel(), r.cancel(), N == null || N.unref());
|
|
15426
15426
|
}
|
|
@@ -15496,23 +15496,23 @@ function AD(e) {
|
|
|
15496
15496
|
var k = !0;
|
|
15497
15497
|
if (F.startsWith("delete")) {
|
|
15498
15498
|
if (oe.isExpanded(H)) {
|
|
15499
|
-
var [
|
|
15500
|
-
if (B.text.length ===
|
|
15501
|
-
var
|
|
15502
|
-
at:
|
|
15499
|
+
var [w, Z] = oe.edges(H), B = Ee.leaf(t, w.path);
|
|
15500
|
+
if (B.text.length === w.offset && Z.offset === 0) {
|
|
15501
|
+
var j = D.next(t, {
|
|
15502
|
+
at: w.path,
|
|
15503
15503
|
match: Ne.isText
|
|
15504
15504
|
});
|
|
15505
|
-
|
|
15505
|
+
j && V.equals(j[1], Z.path) && (H = {
|
|
15506
15506
|
anchor: Z,
|
|
15507
15507
|
focus: Z
|
|
15508
15508
|
});
|
|
15509
15509
|
}
|
|
15510
15510
|
}
|
|
15511
|
-
var z = F.endsWith("Backward") ? "backward" : "forward", [U,
|
|
15511
|
+
var z = F.endsWith("Backward") ? "backward" : "forward", [U, $] = oe.edges(H), [ae, Y] = D.leaf(t, U.path), te = {
|
|
15512
15512
|
text: "",
|
|
15513
15513
|
start: U.offset,
|
|
15514
|
-
end:
|
|
15515
|
-
},
|
|
15514
|
+
end: $.offset
|
|
15515
|
+
}, se = On.get(t), re = se == null ? void 0 : se.find((ve) => V.equals(ve.path, Y)), Ae = re ? [re.diff, te] : [te], Oe = vb(ae.text, ...Ae);
|
|
15516
15516
|
if (Oe.length === 0 && (k = !1), oe.isExpanded(H)) {
|
|
15517
15517
|
if (k && V.equals(H.anchor.path, H.focus.path)) {
|
|
15518
15518
|
var Ce = {
|
|
@@ -15521,7 +15521,7 @@ function AD(e) {
|
|
|
15521
15521
|
}, ue = D.range(t, Ce, Ce);
|
|
15522
15522
|
return A(ue), y(H.anchor.path, {
|
|
15523
15523
|
text: "",
|
|
15524
|
-
end:
|
|
15524
|
+
end: $.offset,
|
|
15525
15525
|
start: U.offset
|
|
15526
15526
|
});
|
|
15527
15527
|
}
|
|
@@ -16280,7 +16280,7 @@ function $r(e) {
|
|
|
16280
16280
|
return e;
|
|
16281
16281
|
}
|
|
16282
16282
|
var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (e) => {
|
|
16283
|
-
var t = ft((
|
|
16283
|
+
var t = ft((j) => /* @__PURE__ */ M.createElement(dO, $r({}, j)), []), {
|
|
16284
16284
|
autoFocus: n,
|
|
16285
16285
|
decorate: r = fO,
|
|
16286
16286
|
onDOMBeforeInput: i,
|
|
@@ -16296,7 +16296,7 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16296
16296
|
} = e, g = js(e, oO), m = qa(), [y, v] = de(!1), E = Ue(null), b = Ue([]), [_, T] = de(), {
|
|
16297
16297
|
onUserInput: C,
|
|
16298
16298
|
receivedUserInput: A
|
|
16299
|
-
} = JD(), [, R] = ra((
|
|
16299
|
+
} = JD(), [, R] = ra((j) => j + 1, 0);
|
|
16300
16300
|
fb.set(m, R), yh.set(m, s);
|
|
16301
16301
|
var P = kr(() => ({
|
|
16302
16302
|
isDraggingInternally: !1,
|
|
@@ -16308,25 +16308,25 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16308
16308
|
E.current && n && E.current.focus();
|
|
16309
16309
|
}, [n]);
|
|
16310
16310
|
var L = Ue(), I = kr(() => qw(() => {
|
|
16311
|
-
var
|
|
16312
|
-
if ((Tn || !ce.isComposing(m)) && (!P.isUpdatingSelection ||
|
|
16311
|
+
var j = L.current;
|
|
16312
|
+
if ((Tn || !ce.isComposing(m)) && (!P.isUpdatingSelection || j != null && j.isFlushing()) && !P.isDraggingInternally) {
|
|
16313
16313
|
var z = ce.findDocumentOrShadowRoot(m), {
|
|
16314
16314
|
activeElement: U
|
|
16315
|
-
} = z,
|
|
16316
|
-
if (U ===
|
|
16315
|
+
} = z, $ = ce.toDOMNode(m, m), ae = z.getSelection();
|
|
16316
|
+
if (U === $ ? (P.latestElement = U, Qi.set(m, !0)) : Qi.delete(m), !ae)
|
|
16317
16317
|
return le.deselect(m);
|
|
16318
16318
|
var {
|
|
16319
16319
|
anchorNode: Y,
|
|
16320
16320
|
focusNode: te
|
|
16321
|
-
} =
|
|
16322
|
-
if (
|
|
16323
|
-
var Ae = ce.toSlateRange(m,
|
|
16321
|
+
} = ae, se = ce.hasEditableTarget(m, Y) || ce.isTargetInsideNonReadonlyVoid(m, Y), re = ce.hasEditableTarget(m, te) || ce.isTargetInsideNonReadonlyVoid(m, te);
|
|
16322
|
+
if (se && re) {
|
|
16323
|
+
var Ae = ce.toSlateRange(m, ae, {
|
|
16324
16324
|
exactMatch: !1,
|
|
16325
16325
|
suppressThrow: !0
|
|
16326
16326
|
});
|
|
16327
|
-
Ae && (!ce.isComposing(m) && !(
|
|
16327
|
+
Ae && (!ce.isComposing(m) && !(j != null && j.hasPendingChanges()) && !(j != null && j.isFlushing()) ? le.select(m, Ae) : j == null || j.handleUserSelect(Ae));
|
|
16328
16328
|
}
|
|
16329
|
-
s && (!
|
|
16329
|
+
s && (!se || !re) && le.deselect(m);
|
|
16330
16330
|
}
|
|
16331
16331
|
}, 100), [m, s, P]), N = kr(() => Lw(I, 0), [I]);
|
|
16332
16332
|
L.current = ID({
|
|
@@ -16334,15 +16334,15 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16334
16334
|
onDOMSelectionChange: I,
|
|
16335
16335
|
scheduleOnDOMSelectionChange: N
|
|
16336
16336
|
}), El(() => {
|
|
16337
|
-
var
|
|
16337
|
+
var j, z, U;
|
|
16338
16338
|
E.current && (U = Up(E.current)) ? (db.set(m, U), lc.set(m, E.current), Pa.set(m, E.current), yl.set(E.current, m)) : Pa.delete(m);
|
|
16339
16339
|
var {
|
|
16340
|
-
selection:
|
|
16341
|
-
} = m,
|
|
16342
|
-
if (!(!Y || !ce.isFocused(m) || (
|
|
16340
|
+
selection: $
|
|
16341
|
+
} = m, ae = ce.findDocumentOrShadowRoot(m), Y = ae.getSelection();
|
|
16342
|
+
if (!(!Y || !ce.isFocused(m) || (j = L.current) !== null && j !== void 0 && j.hasPendingAction())) {
|
|
16343
16343
|
var te = (Oe) => {
|
|
16344
16344
|
var Ce = Y.type !== "None";
|
|
16345
|
-
if (!(
|
|
16345
|
+
if (!(!$ && !Ce)) {
|
|
16346
16346
|
var ue = Y.focusNode, he;
|
|
16347
16347
|
if (bs && Y.rangeCount > 1) {
|
|
16348
16348
|
var Se = Y.getRangeAt(0), Re = Y.getRangeAt(Y.rangeCount - 1);
|
|
@@ -16350,20 +16350,20 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16350
16350
|
} else
|
|
16351
16351
|
he = Y.anchorNode;
|
|
16352
16352
|
var tt = lc.get(m), mt = !1;
|
|
16353
|
-
if (tt.contains(he) && tt.contains(ue) && (mt = !0), Ce && mt &&
|
|
16353
|
+
if (tt.contains(he) && tt.contains(ue) && (mt = !0), Ce && mt && $ && !Oe) {
|
|
16354
16354
|
var Ye = ce.toSlateRange(m, Y, {
|
|
16355
16355
|
exactMatch: !0,
|
|
16356
16356
|
// domSelection is not necessarily a valid Slate range
|
|
16357
16357
|
// (e.g. when clicking on contentEditable:false element)
|
|
16358
16358
|
suppressThrow: !0
|
|
16359
16359
|
});
|
|
16360
|
-
if (Ye && oe.equals(Ye,
|
|
16360
|
+
if (Ye && oe.equals(Ye, $)) {
|
|
16361
16361
|
var nt;
|
|
16362
16362
|
if (!P.hasMarkPlaceholder || (nt = he) !== null && nt !== void 0 && (nt = nt.parentElement) !== null && nt !== void 0 && nt.hasAttribute("data-slate-mark-placeholder"))
|
|
16363
16363
|
return;
|
|
16364
16364
|
}
|
|
16365
16365
|
}
|
|
16366
|
-
if (
|
|
16366
|
+
if ($ && !ce.hasRange(m, $)) {
|
|
16367
16367
|
m.selection = ce.toSlateRange(m, Y, {
|
|
16368
16368
|
exactMatch: !1,
|
|
16369
16369
|
suppressThrow: !0
|
|
@@ -16371,20 +16371,20 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16371
16371
|
return;
|
|
16372
16372
|
}
|
|
16373
16373
|
P.isUpdatingSelection = !0;
|
|
16374
|
-
var Ze =
|
|
16375
|
-
return Ze ? (ce.isComposing(m) && !Tn ? Y.collapseToEnd() : oe.isBackward(
|
|
16374
|
+
var Ze = $ && ce.toDOMRange(m, $);
|
|
16375
|
+
return Ze ? (ce.isComposing(m) && !Tn ? Y.collapseToEnd() : oe.isBackward($) ? Y.setBaseAndExtent(Ze.endContainer, Ze.endOffset, Ze.startContainer, Ze.startOffset) : Y.setBaseAndExtent(Ze.startContainer, Ze.startOffset, Ze.endContainer, Ze.endOffset), c(m, Ze)) : Y.removeAllRanges(), Ze;
|
|
16376
16376
|
}
|
|
16377
16377
|
};
|
|
16378
16378
|
Y.rangeCount <= 1 && te();
|
|
16379
|
-
var
|
|
16380
|
-
if (!Tn || !
|
|
16379
|
+
var se = ((z = L.current) === null || z === void 0 ? void 0 : z.isFlushing()) === "action";
|
|
16380
|
+
if (!Tn || !se) {
|
|
16381
16381
|
setTimeout(() => {
|
|
16382
16382
|
P.isUpdatingSelection = !1;
|
|
16383
16383
|
});
|
|
16384
16384
|
return;
|
|
16385
16385
|
}
|
|
16386
16386
|
var re = null, Ae = requestAnimationFrame(() => {
|
|
16387
|
-
if (
|
|
16387
|
+
if (se) {
|
|
16388
16388
|
var Oe = (Ce) => {
|
|
16389
16389
|
try {
|
|
16390
16390
|
var ue = ce.toDOMNode(m, m);
|
|
@@ -16402,32 +16402,32 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16402
16402
|
};
|
|
16403
16403
|
}
|
|
16404
16404
|
});
|
|
16405
|
-
var S = ft((
|
|
16406
|
-
if (C(), !s && ce.hasEditableTarget(m,
|
|
16405
|
+
var S = ft((j) => {
|
|
16406
|
+
if (C(), !s && ce.hasEditableTarget(m, j.target) && !pO(j, i)) {
|
|
16407
16407
|
var z;
|
|
16408
16408
|
if (L.current)
|
|
16409
|
-
return L.current.handleDOMBeforeInput(
|
|
16409
|
+
return L.current.handleDOMBeforeInput(j);
|
|
16410
16410
|
N.flush(), I.flush();
|
|
16411
16411
|
var {
|
|
16412
16412
|
selection: U
|
|
16413
16413
|
} = m, {
|
|
16414
|
-
inputType:
|
|
16415
|
-
} =
|
|
16414
|
+
inputType: $
|
|
16415
|
+
} = j, ae = j.dataTransfer || j.data || void 0, Y = $ === "insertCompositionText" || $ === "deleteCompositionText";
|
|
16416
16416
|
if (Y && ce.isComposing(m))
|
|
16417
16417
|
return;
|
|
16418
16418
|
var te = !1;
|
|
16419
|
-
if (
|
|
16419
|
+
if ($ === "insertText" && U && oe.isCollapsed(U) && // Only use native character insertion for single characters a-z or space for now.
|
|
16420
16420
|
// Long-press events (hold a + press 4 = ä) to choose a special character otherwise
|
|
16421
16421
|
// causes duplicate inserts.
|
|
16422
|
-
|
|
16422
|
+
j.data && j.data.length === 1 && /[a-z ]/i.test(j.data) && // Chrome has issues correctly editing the start of nodes: https://bugs.chromium.org/p/chromium/issues/detail?id=1249405
|
|
16423
16423
|
// When there is an inline element, e.g. a link, and you select
|
|
16424
16424
|
// right after it (the start of the next node).
|
|
16425
16425
|
U.anchor.offset !== 0) {
|
|
16426
|
-
var
|
|
16426
|
+
var se, re;
|
|
16427
16427
|
te = !0, m.marks && (te = !1);
|
|
16428
16428
|
var {
|
|
16429
16429
|
anchor: Ae
|
|
16430
|
-
} = U, [Oe, Ce] = ce.toDOMPoint(m, Ae), ue = (
|
|
16430
|
+
} = U, [Oe, Ce] = ce.toDOMPoint(m, Ae), ue = (se = Oe.parentElement) === null || se === void 0 ? void 0 : se.closest("a"), he = ce.getWindow(m);
|
|
16431
16431
|
if (te && ue && ce.hasDOMNode(m, ue)) {
|
|
16432
16432
|
var Se, Re = he == null ? void 0 : he.document.createTreeWalker(ue, NodeFilter.SHOW_TEXT).lastChild();
|
|
16433
16433
|
Re === Oe && ((Se = Re.textContent) === null || Se === void 0 ? void 0 : Se.length) === Ce && (te = !1);
|
|
@@ -16440,8 +16440,8 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16440
16440
|
tt && Ee.string(tt[0]).includes(" ") && (te = !1);
|
|
16441
16441
|
}
|
|
16442
16442
|
}
|
|
16443
|
-
if (
|
|
16444
|
-
var [mt] =
|
|
16443
|
+
if (!$.startsWith("delete") || $.startsWith("deleteBy")) {
|
|
16444
|
+
var [mt] = j.getTargetRanges();
|
|
16445
16445
|
if (mt) {
|
|
16446
16446
|
var Ye = ce.toSlateRange(m, mt, {
|
|
16447
16447
|
exactMatch: !1,
|
|
@@ -16456,14 +16456,14 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16456
16456
|
}
|
|
16457
16457
|
if (Y)
|
|
16458
16458
|
return;
|
|
16459
|
-
if (te ||
|
|
16460
|
-
var Ze =
|
|
16459
|
+
if (te || j.preventDefault(), U && oe.isExpanded(U) && $.startsWith("delete")) {
|
|
16460
|
+
var Ze = $.endsWith("Backward") ? "backward" : "forward";
|
|
16461
16461
|
D.deleteFragment(m, {
|
|
16462
16462
|
direction: Ze
|
|
16463
16463
|
});
|
|
16464
16464
|
return;
|
|
16465
16465
|
}
|
|
16466
|
-
switch (
|
|
16466
|
+
switch ($) {
|
|
16467
16467
|
case "deleteByComposition":
|
|
16468
16468
|
case "deleteByCut":
|
|
16469
16469
|
case "deleteByDrag": {
|
|
@@ -16536,26 +16536,26 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16536
16536
|
case "insertFromYank":
|
|
16537
16537
|
case "insertReplacementText":
|
|
16538
16538
|
case "insertText": {
|
|
16539
|
-
|
|
16539
|
+
$ === "insertFromComposition" && ce.isComposing(m) && (v(!1), ka.set(m, !1)), (ae == null ? void 0 : ae.constructor.name) === "DataTransfer" ? ce.insertData(m, ae) : typeof ae == "string" && (te ? b.current.push(() => D.insertText(m, ae)) : D.insertText(m, ae));
|
|
16540
16540
|
break;
|
|
16541
16541
|
}
|
|
16542
16542
|
}
|
|
16543
16543
|
var ie = (z = Wo.get(m)) === null || z === void 0 ? void 0 : z.unref();
|
|
16544
16544
|
Wo.delete(m), ie && (!m.selection || !oe.equals(m.selection, ie)) && le.select(m, ie);
|
|
16545
16545
|
}
|
|
16546
|
-
}, [m, I, C, i, s, N]), F = ft((
|
|
16547
|
-
|
|
16546
|
+
}, [m, I, C, i, s, N]), F = ft((j) => {
|
|
16547
|
+
j == null ? (I.cancel(), N.cancel(), lc.delete(m), Pa.delete(m), E.current && Li && E.current.removeEventListener("beforeinput", S)) : Li && j.addEventListener("beforeinput", S), E.current = j;
|
|
16548
16548
|
}, [I, N, m, S]);
|
|
16549
16549
|
El(() => {
|
|
16550
|
-
var
|
|
16551
|
-
return
|
|
16552
|
-
|
|
16550
|
+
var j = ce.getWindow(m);
|
|
16551
|
+
return j.document.addEventListener("selectionchange", N), () => {
|
|
16552
|
+
j.document.removeEventListener("selectionchange", N);
|
|
16553
16553
|
};
|
|
16554
16554
|
}, [N]);
|
|
16555
|
-
var H = r([m, []]), q = a && m.children.length === 1 && Array.from(Ee.texts(m)).length === 1 && Ee.string(m) === "" && !y, O = ft((
|
|
16556
|
-
if (
|
|
16555
|
+
var H = r([m, []]), q = a && m.children.length === 1 && Array.from(Ee.texts(m)).length === 1 && Ee.string(m) === "" && !y, O = ft((j) => {
|
|
16556
|
+
if (j && q) {
|
|
16557
16557
|
var z;
|
|
16558
|
-
T((z =
|
|
16558
|
+
T((z = j.getBoundingClientRect()) === null || z === void 0 ? void 0 : z.height);
|
|
16559
16559
|
} else
|
|
16560
16560
|
T(void 0);
|
|
16561
16561
|
}, [q]);
|
|
@@ -16575,12 +16575,12 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16575
16575
|
if (P.hasMarkPlaceholder = !1, m.selection && oe.isCollapsed(m.selection) && X) {
|
|
16576
16576
|
var {
|
|
16577
16577
|
anchor: k
|
|
16578
|
-
} = m.selection,
|
|
16579
|
-
if (!Ne.equals(
|
|
16578
|
+
} = m.selection, w = Ee.leaf(m, k.path), Z = js(w, lO);
|
|
16579
|
+
if (!Ne.equals(w, X, {
|
|
16580
16580
|
loose: !0
|
|
16581
16581
|
})) {
|
|
16582
16582
|
P.hasMarkPlaceholder = !0;
|
|
16583
|
-
var B = Object.fromEntries(Object.keys(Z).map((
|
|
16583
|
+
var B = Object.fromEntries(Object.keys(Z).map((j) => [j, null]));
|
|
16584
16584
|
H.push($r($r($r({
|
|
16585
16585
|
[hb]: !0
|
|
16586
16586
|
}, B), X), {}, {
|
|
@@ -16592,12 +16592,12 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16592
16592
|
return me(() => {
|
|
16593
16593
|
setTimeout(() => {
|
|
16594
16594
|
var {
|
|
16595
|
-
selection:
|
|
16595
|
+
selection: j
|
|
16596
16596
|
} = m;
|
|
16597
|
-
if (
|
|
16597
|
+
if (j) {
|
|
16598
16598
|
var {
|
|
16599
16599
|
anchor: z
|
|
16600
|
-
} =
|
|
16600
|
+
} = j, U = Ee.leaf(m, z.path);
|
|
16601
16601
|
if (X && !Ne.equals(U, X, {
|
|
16602
16602
|
loose: !0
|
|
16603
16603
|
})) {
|
|
@@ -16646,14 +16646,14 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16646
16646
|
}, _ ? {
|
|
16647
16647
|
minHeight: _
|
|
16648
16648
|
} : {})), d),
|
|
16649
|
-
onBeforeInput: ft((
|
|
16650
|
-
if (!Li && !s && !vn(
|
|
16651
|
-
var z =
|
|
16649
|
+
onBeforeInput: ft((j) => {
|
|
16650
|
+
if (!Li && !s && !vn(j, g.onBeforeInput) && ce.hasSelectableTarget(m, j.target) && (j.preventDefault(), !ce.isComposing(m))) {
|
|
16651
|
+
var z = j.data;
|
|
16652
16652
|
D.insertText(m, z);
|
|
16653
16653
|
}
|
|
16654
16654
|
}, [g.onBeforeInput, m, s]),
|
|
16655
|
-
onInput: ft((
|
|
16656
|
-
if (!vn(
|
|
16655
|
+
onInput: ft((j) => {
|
|
16656
|
+
if (!vn(j, g.onInput)) {
|
|
16657
16657
|
if (L.current) {
|
|
16658
16658
|
L.current.handleInput();
|
|
16659
16659
|
return;
|
|
@@ -16663,17 +16663,17 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16663
16663
|
b.current = [];
|
|
16664
16664
|
}
|
|
16665
16665
|
}, [g.onInput]),
|
|
16666
|
-
onBlur: ft((
|
|
16667
|
-
if (!(s || P.isUpdatingSelection || !ce.hasSelectableTarget(m,
|
|
16666
|
+
onBlur: ft((j) => {
|
|
16667
|
+
if (!(s || P.isUpdatingSelection || !ce.hasSelectableTarget(m, j.target) || vn(j, g.onBlur))) {
|
|
16668
16668
|
var z = ce.findDocumentOrShadowRoot(m);
|
|
16669
16669
|
if (P.latestElement !== z.activeElement) {
|
|
16670
16670
|
var {
|
|
16671
16671
|
relatedTarget: U
|
|
16672
|
-
} =
|
|
16673
|
-
if (U !==
|
|
16672
|
+
} = j, $ = ce.toDOMNode(m, m);
|
|
16673
|
+
if (U !== $ && !(or(U) && U.hasAttribute("data-slate-spacer"))) {
|
|
16674
16674
|
if (U != null && na(U) && ce.hasDOMNode(m, U)) {
|
|
16675
|
-
var
|
|
16676
|
-
if (De.isElement(
|
|
16675
|
+
var ae = ce.toSlateNode(m, U);
|
|
16676
|
+
if (De.isElement(ae) && !m.isVoid(ae))
|
|
16677
16677
|
return;
|
|
16678
16678
|
}
|
|
16679
16679
|
if (Ro) {
|
|
@@ -16685,59 +16685,59 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16685
16685
|
}
|
|
16686
16686
|
}
|
|
16687
16687
|
}, [s, P.isUpdatingSelection, P.latestElement, m, g.onBlur]),
|
|
16688
|
-
onClick: ft((
|
|
16689
|
-
if (ce.hasTarget(m,
|
|
16690
|
-
var z = ce.toSlateNode(m,
|
|
16688
|
+
onClick: ft((j) => {
|
|
16689
|
+
if (ce.hasTarget(m, j.target) && !vn(j, g.onClick) && na(j.target)) {
|
|
16690
|
+
var z = ce.toSlateNode(m, j.target), U = ce.findPath(m, z);
|
|
16691
16691
|
if (!D.hasPath(m, U) || Ee.get(m, U) !== z)
|
|
16692
16692
|
return;
|
|
16693
|
-
if (
|
|
16694
|
-
var
|
|
16693
|
+
if (j.detail === eO && U.length >= 1) {
|
|
16694
|
+
var $ = U;
|
|
16695
16695
|
if (!(De.isElement(z) && D.isBlock(m, z))) {
|
|
16696
|
-
var
|
|
16696
|
+
var ae, Y = D.above(m, {
|
|
16697
16697
|
match: (ue) => De.isElement(ue) && D.isBlock(m, ue),
|
|
16698
16698
|
at: U
|
|
16699
16699
|
});
|
|
16700
|
-
|
|
16700
|
+
$ = (ae = Y == null ? void 0 : Y[1]) !== null && ae !== void 0 ? ae : U.slice(0, 1);
|
|
16701
16701
|
}
|
|
16702
|
-
var te = D.range(m,
|
|
16702
|
+
var te = D.range(m, $);
|
|
16703
16703
|
le.select(m, te);
|
|
16704
16704
|
return;
|
|
16705
16705
|
}
|
|
16706
16706
|
if (s)
|
|
16707
16707
|
return;
|
|
16708
|
-
var
|
|
16709
|
-
at:
|
|
16708
|
+
var se = D.start(m, U), re = D.end(m, U), Ae = D.void(m, {
|
|
16709
|
+
at: se
|
|
16710
16710
|
}), Oe = D.void(m, {
|
|
16711
16711
|
at: re
|
|
16712
16712
|
});
|
|
16713
16713
|
if (Ae && Oe && V.equals(Ae[1], Oe[1])) {
|
|
16714
|
-
var Ce = D.range(m,
|
|
16714
|
+
var Ce = D.range(m, se);
|
|
16715
16715
|
le.select(m, Ce);
|
|
16716
16716
|
}
|
|
16717
16717
|
}
|
|
16718
16718
|
}, [m, g.onClick, s]),
|
|
16719
|
-
onCompositionEnd: ft((
|
|
16720
|
-
if (ce.hasSelectableTarget(m,
|
|
16719
|
+
onCompositionEnd: ft((j) => {
|
|
16720
|
+
if (ce.hasSelectableTarget(m, j.target)) {
|
|
16721
16721
|
var z;
|
|
16722
16722
|
if (ce.isComposing(m) && Promise.resolve().then(() => {
|
|
16723
16723
|
v(!1), ka.set(m, !1);
|
|
16724
|
-
}), (z = L.current) === null || z === void 0 || z.handleCompositionEnd(
|
|
16724
|
+
}), (z = L.current) === null || z === void 0 || z.handleCompositionEnd(j), vn(j, g.onCompositionEnd) || Tn)
|
|
16725
16725
|
return;
|
|
16726
|
-
if (!Ro && !rD && !Jk && !aD && !iD &&
|
|
16726
|
+
if (!Ro && !rD && !Jk && !aD && !iD && j.data) {
|
|
16727
16727
|
var U = Ar.get(m);
|
|
16728
|
-
Ar.delete(m), U !== void 0 && (bi.set(m, m.marks), m.marks = U), D.insertText(m,
|
|
16729
|
-
var
|
|
16730
|
-
bi.delete(m),
|
|
16728
|
+
Ar.delete(m), U !== void 0 && (bi.set(m, m.marks), m.marks = U), D.insertText(m, j.data);
|
|
16729
|
+
var $ = bi.get(m);
|
|
16730
|
+
bi.delete(m), $ !== void 0 && (m.marks = $);
|
|
16731
16731
|
}
|
|
16732
16732
|
}
|
|
16733
16733
|
}, [g.onCompositionEnd, m]),
|
|
16734
|
-
onCompositionUpdate: ft((
|
|
16735
|
-
ce.hasSelectableTarget(m,
|
|
16734
|
+
onCompositionUpdate: ft((j) => {
|
|
16735
|
+
ce.hasSelectableTarget(m, j.target) && !vn(j, g.onCompositionUpdate) && (ce.isComposing(m) || (v(!0), ka.set(m, !0)));
|
|
16736
16736
|
}, [g.onCompositionUpdate, m]),
|
|
16737
|
-
onCompositionStart: ft((
|
|
16738
|
-
if (ce.hasSelectableTarget(m,
|
|
16737
|
+
onCompositionStart: ft((j) => {
|
|
16738
|
+
if (ce.hasSelectableTarget(m, j.target)) {
|
|
16739
16739
|
var z;
|
|
16740
|
-
if ((z = L.current) === null || z === void 0 || z.handleCompositionStart(
|
|
16740
|
+
if ((z = L.current) === null || z === void 0 || z.handleCompositionStart(j), vn(j, g.onCompositionStart) || Tn)
|
|
16741
16741
|
return;
|
|
16742
16742
|
v(!0);
|
|
16743
16743
|
var {
|
|
@@ -16749,12 +16749,12 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16749
16749
|
}
|
|
16750
16750
|
}
|
|
16751
16751
|
}, [g.onCompositionStart, m]),
|
|
16752
|
-
onCopy: ft((
|
|
16753
|
-
ce.hasSelectableTarget(m,
|
|
16752
|
+
onCopy: ft((j) => {
|
|
16753
|
+
ce.hasSelectableTarget(m, j.target) && !vn(j, g.onCopy) && !bv(j) && (j.preventDefault(), ce.setFragmentData(m, j.clipboardData, "copy"));
|
|
16754
16754
|
}, [g.onCopy, m]),
|
|
16755
|
-
onCut: ft((
|
|
16756
|
-
if (!s && ce.hasSelectableTarget(m,
|
|
16757
|
-
|
|
16755
|
+
onCut: ft((j) => {
|
|
16756
|
+
if (!s && ce.hasSelectableTarget(m, j.target) && !vn(j, g.onCut) && !bv(j)) {
|
|
16757
|
+
j.preventDefault(), ce.setFragmentData(m, j.clipboardData, "cut");
|
|
16758
16758
|
var {
|
|
16759
16759
|
selection: z
|
|
16760
16760
|
} = m;
|
|
@@ -16767,90 +16767,90 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16767
16767
|
}
|
|
16768
16768
|
}
|
|
16769
16769
|
}, [s, m, g.onCut]),
|
|
16770
|
-
onDragOver: ft((
|
|
16771
|
-
if (ce.hasTarget(m,
|
|
16772
|
-
var z = ce.toSlateNode(m,
|
|
16773
|
-
De.isElement(z) && D.isVoid(m, z) &&
|
|
16770
|
+
onDragOver: ft((j) => {
|
|
16771
|
+
if (ce.hasTarget(m, j.target) && !vn(j, g.onDragOver)) {
|
|
16772
|
+
var z = ce.toSlateNode(m, j.target);
|
|
16773
|
+
De.isElement(z) && D.isVoid(m, z) && j.preventDefault();
|
|
16774
16774
|
}
|
|
16775
16775
|
}, [g.onDragOver, m]),
|
|
16776
|
-
onDragStart: ft((
|
|
16777
|
-
if (!s && ce.hasTarget(m,
|
|
16778
|
-
var z = ce.toSlateNode(m,
|
|
16776
|
+
onDragStart: ft((j) => {
|
|
16777
|
+
if (!s && ce.hasTarget(m, j.target) && !vn(j, g.onDragStart)) {
|
|
16778
|
+
var z = ce.toSlateNode(m, j.target), U = ce.findPath(m, z), $ = De.isElement(z) && D.isVoid(m, z) || D.void(m, {
|
|
16779
16779
|
at: U,
|
|
16780
16780
|
voids: !0
|
|
16781
16781
|
});
|
|
16782
|
-
if (
|
|
16783
|
-
var
|
|
16784
|
-
le.select(m,
|
|
16782
|
+
if ($) {
|
|
16783
|
+
var ae = D.range(m, U);
|
|
16784
|
+
le.select(m, ae);
|
|
16785
16785
|
}
|
|
16786
|
-
P.isDraggingInternally = !0, ce.setFragmentData(m,
|
|
16786
|
+
P.isDraggingInternally = !0, ce.setFragmentData(m, j.dataTransfer, "drag");
|
|
16787
16787
|
}
|
|
16788
16788
|
}, [s, m, g.onDragStart, P]),
|
|
16789
|
-
onDrop: ft((
|
|
16790
|
-
if (!s && ce.hasTarget(m,
|
|
16791
|
-
|
|
16792
|
-
var z = m.selection, U = ce.findEventRange(m,
|
|
16789
|
+
onDrop: ft((j) => {
|
|
16790
|
+
if (!s && ce.hasTarget(m, j.target) && !vn(j, g.onDrop)) {
|
|
16791
|
+
j.preventDefault();
|
|
16792
|
+
var z = m.selection, U = ce.findEventRange(m, j), $ = j.dataTransfer;
|
|
16793
16793
|
le.select(m, U), P.isDraggingInternally && z && !oe.equals(z, U) && !D.void(m, {
|
|
16794
16794
|
at: U,
|
|
16795
16795
|
voids: !0
|
|
16796
16796
|
}) && le.delete(m, {
|
|
16797
16797
|
at: z
|
|
16798
|
-
}), ce.insertData(m,
|
|
16798
|
+
}), ce.insertData(m, $), ce.isFocused(m) || ce.focus(m);
|
|
16799
16799
|
}
|
|
16800
16800
|
P.isDraggingInternally = !1;
|
|
16801
16801
|
}, [s, m, g.onDrop, P]),
|
|
16802
|
-
onDragEnd: ft((
|
|
16803
|
-
!s && P.isDraggingInternally && g.onDragEnd && ce.hasTarget(m,
|
|
16802
|
+
onDragEnd: ft((j) => {
|
|
16803
|
+
!s && P.isDraggingInternally && g.onDragEnd && ce.hasTarget(m, j.target) && g.onDragEnd(j), P.isDraggingInternally = !1;
|
|
16804
16804
|
}, [s, P, g, m]),
|
|
16805
|
-
onFocus: ft((
|
|
16806
|
-
if (!s && !P.isUpdatingSelection && ce.hasEditableTarget(m,
|
|
16805
|
+
onFocus: ft((j) => {
|
|
16806
|
+
if (!s && !P.isUpdatingSelection && ce.hasEditableTarget(m, j.target) && !vn(j, g.onFocus)) {
|
|
16807
16807
|
var z = ce.toDOMNode(m, m), U = ce.findDocumentOrShadowRoot(m);
|
|
16808
|
-
if (P.latestElement = U.activeElement, bs &&
|
|
16808
|
+
if (P.latestElement = U.activeElement, bs && j.target !== z) {
|
|
16809
16809
|
z.focus();
|
|
16810
16810
|
return;
|
|
16811
16811
|
}
|
|
16812
16812
|
Qi.set(m, !0);
|
|
16813
16813
|
}
|
|
16814
16814
|
}, [s, P, m, g.onFocus]),
|
|
16815
|
-
onKeyDown: ft((
|
|
16816
|
-
if (!s && ce.hasEditableTarget(m,
|
|
16815
|
+
onKeyDown: ft((j) => {
|
|
16816
|
+
if (!s && ce.hasEditableTarget(m, j.target)) {
|
|
16817
16817
|
var z;
|
|
16818
|
-
(z = L.current) === null || z === void 0 || z.handleKeyDown(
|
|
16818
|
+
(z = L.current) === null || z === void 0 || z.handleKeyDown(j);
|
|
16819
16819
|
var {
|
|
16820
16820
|
nativeEvent: U
|
|
16821
|
-
} =
|
|
16822
|
-
if (ce.isComposing(m) && U.isComposing === !1 && (ka.set(m, !1), v(!1)), vn(
|
|
16821
|
+
} = j;
|
|
16822
|
+
if (ce.isComposing(m) && U.isComposing === !1 && (ka.set(m, !1), v(!1)), vn(j, g.onKeyDown) || ce.isComposing(m))
|
|
16823
16823
|
return;
|
|
16824
16824
|
var {
|
|
16825
|
-
selection:
|
|
16826
|
-
} = m,
|
|
16825
|
+
selection: $
|
|
16826
|
+
} = m, ae = m.children[$ !== null ? $.focus.path[0] : 0], Y = L4(Ee.string(ae)) === "rtl";
|
|
16827
16827
|
if (jt.isRedo(U)) {
|
|
16828
|
-
|
|
16828
|
+
j.preventDefault();
|
|
16829
16829
|
var te = m;
|
|
16830
16830
|
typeof te.redo == "function" && te.redo();
|
|
16831
16831
|
return;
|
|
16832
16832
|
}
|
|
16833
16833
|
if (jt.isUndo(U)) {
|
|
16834
|
-
|
|
16835
|
-
var
|
|
16836
|
-
typeof
|
|
16834
|
+
j.preventDefault();
|
|
16835
|
+
var se = m;
|
|
16836
|
+
typeof se.undo == "function" && se.undo();
|
|
16837
16837
|
return;
|
|
16838
16838
|
}
|
|
16839
16839
|
if (jt.isMoveLineBackward(U)) {
|
|
16840
|
-
|
|
16840
|
+
j.preventDefault(), le.move(m, {
|
|
16841
16841
|
unit: "line",
|
|
16842
16842
|
reverse: !0
|
|
16843
16843
|
});
|
|
16844
16844
|
return;
|
|
16845
16845
|
}
|
|
16846
16846
|
if (jt.isMoveLineForward(U)) {
|
|
16847
|
-
|
|
16847
|
+
j.preventDefault(), le.move(m, {
|
|
16848
16848
|
unit: "line"
|
|
16849
16849
|
});
|
|
16850
16850
|
return;
|
|
16851
16851
|
}
|
|
16852
16852
|
if (jt.isExtendLineBackward(U)) {
|
|
16853
|
-
|
|
16853
|
+
j.preventDefault(), le.move(m, {
|
|
16854
16854
|
unit: "line",
|
|
16855
16855
|
edge: "focus",
|
|
16856
16856
|
reverse: !0
|
|
@@ -16858,14 +16858,14 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16858
16858
|
return;
|
|
16859
16859
|
}
|
|
16860
16860
|
if (jt.isExtendLineForward(U)) {
|
|
16861
|
-
|
|
16861
|
+
j.preventDefault(), le.move(m, {
|
|
16862
16862
|
unit: "line",
|
|
16863
16863
|
edge: "focus"
|
|
16864
16864
|
});
|
|
16865
16865
|
return;
|
|
16866
16866
|
}
|
|
16867
16867
|
if (jt.isMoveBackward(U)) {
|
|
16868
|
-
|
|
16868
|
+
j.preventDefault(), $ && oe.isCollapsed($) ? le.move(m, {
|
|
16869
16869
|
reverse: !Y
|
|
16870
16870
|
}) : le.collapse(m, {
|
|
16871
16871
|
edge: Y ? "end" : "start"
|
|
@@ -16873,7 +16873,7 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16873
16873
|
return;
|
|
16874
16874
|
}
|
|
16875
16875
|
if (jt.isMoveForward(U)) {
|
|
16876
|
-
|
|
16876
|
+
j.preventDefault(), $ && oe.isCollapsed($) ? le.move(m, {
|
|
16877
16877
|
reverse: Y
|
|
16878
16878
|
}) : le.collapse(m, {
|
|
16879
16879
|
edge: Y ? "start" : "end"
|
|
@@ -16881,7 +16881,7 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16881
16881
|
return;
|
|
16882
16882
|
}
|
|
16883
16883
|
if (jt.isMoveWordBackward(U)) {
|
|
16884
|
-
|
|
16884
|
+
j.preventDefault(), $ && oe.isExpanded($) && le.collapse(m, {
|
|
16885
16885
|
edge: "focus"
|
|
16886
16886
|
}), le.move(m, {
|
|
16887
16887
|
unit: "word",
|
|
@@ -16890,7 +16890,7 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16890
16890
|
return;
|
|
16891
16891
|
}
|
|
16892
16892
|
if (jt.isMoveWordForward(U)) {
|
|
16893
|
-
|
|
16893
|
+
j.preventDefault(), $ && oe.isExpanded($) && le.collapse(m, {
|
|
16894
16894
|
edge: "focus"
|
|
16895
16895
|
}), le.move(m, {
|
|
16896
16896
|
unit: "word",
|
|
@@ -16899,10 +16899,10 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16899
16899
|
return;
|
|
16900
16900
|
}
|
|
16901
16901
|
if (Li) {
|
|
16902
|
-
if ((cb || Ro) &&
|
|
16903
|
-
var re = Ee.parent(m,
|
|
16902
|
+
if ((cb || Ro) && $ && (jt.isDeleteBackward(U) || jt.isDeleteForward(U)) && oe.isCollapsed($)) {
|
|
16903
|
+
var re = Ee.parent(m, $.anchor.path);
|
|
16904
16904
|
if (De.isElement(re) && D.isVoid(m, re) && (D.isInline(m, re) || D.isBlock(m, re))) {
|
|
16905
|
-
|
|
16905
|
+
j.preventDefault(), D.deleteBackward(m, {
|
|
16906
16906
|
unit: "block"
|
|
16907
16907
|
});
|
|
16908
16908
|
return;
|
|
@@ -16910,31 +16910,31 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16910
16910
|
}
|
|
16911
16911
|
} else {
|
|
16912
16912
|
if (jt.isBold(U) || jt.isItalic(U) || jt.isTransposeCharacter(U)) {
|
|
16913
|
-
|
|
16913
|
+
j.preventDefault();
|
|
16914
16914
|
return;
|
|
16915
16915
|
}
|
|
16916
16916
|
if (jt.isSoftBreak(U)) {
|
|
16917
|
-
|
|
16917
|
+
j.preventDefault(), D.insertSoftBreak(m);
|
|
16918
16918
|
return;
|
|
16919
16919
|
}
|
|
16920
16920
|
if (jt.isSplitBlock(U)) {
|
|
16921
|
-
|
|
16921
|
+
j.preventDefault(), D.insertBreak(m);
|
|
16922
16922
|
return;
|
|
16923
16923
|
}
|
|
16924
16924
|
if (jt.isDeleteBackward(U)) {
|
|
16925
|
-
|
|
16925
|
+
j.preventDefault(), $ && oe.isExpanded($) ? D.deleteFragment(m, {
|
|
16926
16926
|
direction: "backward"
|
|
16927
16927
|
}) : D.deleteBackward(m);
|
|
16928
16928
|
return;
|
|
16929
16929
|
}
|
|
16930
16930
|
if (jt.isDeleteForward(U)) {
|
|
16931
|
-
|
|
16931
|
+
j.preventDefault(), $ && oe.isExpanded($) ? D.deleteFragment(m, {
|
|
16932
16932
|
direction: "forward"
|
|
16933
16933
|
}) : D.deleteForward(m);
|
|
16934
16934
|
return;
|
|
16935
16935
|
}
|
|
16936
16936
|
if (jt.isDeleteLineBackward(U)) {
|
|
16937
|
-
|
|
16937
|
+
j.preventDefault(), $ && oe.isExpanded($) ? D.deleteFragment(m, {
|
|
16938
16938
|
direction: "backward"
|
|
16939
16939
|
}) : D.deleteBackward(m, {
|
|
16940
16940
|
unit: "line"
|
|
@@ -16942,7 +16942,7 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16942
16942
|
return;
|
|
16943
16943
|
}
|
|
16944
16944
|
if (jt.isDeleteLineForward(U)) {
|
|
16945
|
-
|
|
16945
|
+
j.preventDefault(), $ && oe.isExpanded($) ? D.deleteFragment(m, {
|
|
16946
16946
|
direction: "forward"
|
|
16947
16947
|
}) : D.deleteForward(m, {
|
|
16948
16948
|
unit: "line"
|
|
@@ -16950,7 +16950,7 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16950
16950
|
return;
|
|
16951
16951
|
}
|
|
16952
16952
|
if (jt.isDeleteWordBackward(U)) {
|
|
16953
|
-
|
|
16953
|
+
j.preventDefault(), $ && oe.isExpanded($) ? D.deleteFragment(m, {
|
|
16954
16954
|
direction: "backward"
|
|
16955
16955
|
}) : D.deleteBackward(m, {
|
|
16956
16956
|
unit: "word"
|
|
@@ -16958,7 +16958,7 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16958
16958
|
return;
|
|
16959
16959
|
}
|
|
16960
16960
|
if (jt.isDeleteWordForward(U)) {
|
|
16961
|
-
|
|
16961
|
+
j.preventDefault(), $ && oe.isExpanded($) ? D.deleteFragment(m, {
|
|
16962
16962
|
direction: "forward"
|
|
16963
16963
|
}) : D.deleteForward(m, {
|
|
16964
16964
|
unit: "word"
|
|
@@ -16968,8 +16968,8 @@ var uO = (e) => /* @__PURE__ */ M.createElement(M.Fragment, null, Cb(e)), cO = (
|
|
|
16968
16968
|
}
|
|
16969
16969
|
}
|
|
16970
16970
|
}, [s, m, g.onKeyDown]),
|
|
16971
|
-
onPaste: ft((
|
|
16972
|
-
!s && ce.hasEditableTarget(m,
|
|
16971
|
+
onPaste: ft((j) => {
|
|
16972
|
+
!s && ce.hasEditableTarget(m, j.target) && !vn(j, g.onPaste) && (!Li || lD(j.nativeEvent) || Ro) && (j.preventDefault(), ce.insertData(m, j.clipboardData));
|
|
16973
16973
|
}, [s, m, g.onPaste])
|
|
16974
16974
|
}), /* @__PURE__ */ M.createElement(uO, {
|
|
16975
16975
|
decorations: H,
|
|
@@ -19908,16 +19908,16 @@ function WN(e, t, n) {
|
|
|
19908
19908
|
return B === 45 ? (e.consume(B), r.interrupt ? t : k) : n(B);
|
|
19909
19909
|
}
|
|
19910
19910
|
function g(B) {
|
|
19911
|
-
const
|
|
19912
|
-
return B ===
|
|
19911
|
+
const j = "CDATA[";
|
|
19912
|
+
return B === j.charCodeAt(o++) ? (e.consume(B), o === j.length ? r.interrupt ? t : N : g) : n(B);
|
|
19913
19913
|
}
|
|
19914
19914
|
function m(B) {
|
|
19915
19915
|
return zr(B) ? (e.consume(B), s = String.fromCharCode(B), y) : n(B);
|
|
19916
19916
|
}
|
|
19917
19917
|
function y(B) {
|
|
19918
19918
|
if (B === null || B === 47 || B === 62 || Pn(B)) {
|
|
19919
|
-
const
|
|
19920
|
-
return
|
|
19919
|
+
const j = B === 47, z = s.toLowerCase();
|
|
19920
|
+
return !j && !a && Vv.includes(z) ? (i = 1, r.interrupt ? t(B) : N(B)) : jN.includes(s.toLowerCase()) ? (i = 6, j ? (e.consume(B), v) : r.interrupt ? t(B) : N(B)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(B) : a ? E(B) : b(B));
|
|
19921
19921
|
}
|
|
19922
19922
|
return B === 45 || Sr(B) ? (e.consume(B), s += String.fromCharCode(B), y) : n(B);
|
|
19923
19923
|
}
|
|
@@ -19955,7 +19955,7 @@ function WN(e, t, n) {
|
|
|
19955
19955
|
return B === null || ze(B) ? N(B) : Tt(B) ? (e.consume(B), I) : n(B);
|
|
19956
19956
|
}
|
|
19957
19957
|
function N(B) {
|
|
19958
|
-
return B === 45 && i === 2 ? (e.consume(B), q) : B === 60 && i === 1 ? (e.consume(B), O) : B === 62 && i === 4 ? (e.consume(B),
|
|
19958
|
+
return B === 45 && i === 2 ? (e.consume(B), q) : B === 60 && i === 1 ? (e.consume(B), O) : B === 62 && i === 4 ? (e.consume(B), w) : B === 63 && i === 3 ? (e.consume(B), k) : B === 93 && i === 5 ? (e.consume(B), X) : ze(B) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(UN, Z, S)(B)) : B === null || ze(B) ? (e.exit("htmlFlowData"), S(B)) : (e.consume(B), N);
|
|
19959
19959
|
}
|
|
19960
19960
|
function S(B) {
|
|
19961
19961
|
return e.check(zN, F, Z)(B);
|
|
@@ -19974,8 +19974,8 @@ function WN(e, t, n) {
|
|
|
19974
19974
|
}
|
|
19975
19975
|
function J(B) {
|
|
19976
19976
|
if (B === 62) {
|
|
19977
|
-
const
|
|
19978
|
-
return Vv.includes(
|
|
19977
|
+
const j = s.toLowerCase();
|
|
19978
|
+
return Vv.includes(j) ? (e.consume(B), w) : N(B);
|
|
19979
19979
|
}
|
|
19980
19980
|
return zr(B) && s.length < 8 ? (e.consume(B), s += String.fromCharCode(B), J) : N(B);
|
|
19981
19981
|
}
|
|
@@ -19983,10 +19983,10 @@ function WN(e, t, n) {
|
|
|
19983
19983
|
return B === 93 ? (e.consume(B), k) : N(B);
|
|
19984
19984
|
}
|
|
19985
19985
|
function k(B) {
|
|
19986
|
-
return B === 62 ? (e.consume(B),
|
|
19986
|
+
return B === 62 ? (e.consume(B), w) : B === 45 && i === 2 ? (e.consume(B), k) : N(B);
|
|
19987
19987
|
}
|
|
19988
|
-
function
|
|
19989
|
-
return B === null || ze(B) ? (e.exit("htmlFlowData"), Z(B)) : (e.consume(B),
|
|
19988
|
+
function w(B) {
|
|
19989
|
+
return B === null || ze(B) ? (e.exit("htmlFlowData"), Z(B)) : (e.consume(B), w);
|
|
19990
19990
|
}
|
|
19991
19991
|
function Z(B) {
|
|
19992
19992
|
return e.exit("htmlFlow"), t(B);
|
|
@@ -20038,8 +20038,8 @@ function YN(e, t, n) {
|
|
|
20038
20038
|
return k === 62 ? q(k) : k === 45 ? f(k) : d(k);
|
|
20039
20039
|
}
|
|
20040
20040
|
function g(k) {
|
|
20041
|
-
const
|
|
20042
|
-
return k ===
|
|
20041
|
+
const w = "CDATA[";
|
|
20042
|
+
return k === w.charCodeAt(a++) ? (e.consume(k), a === w.length ? m : g) : n(k);
|
|
20043
20043
|
}
|
|
20044
20044
|
function m(k) {
|
|
20045
20045
|
return k === null ? n(k) : k === 93 ? (e.consume(k), y) : ze(k) ? (s = m, O(k)) : (e.consume(k), m);
|
|
@@ -20653,37 +20653,37 @@ function AI(e, t, n) {
|
|
|
20653
20653
|
return Array.isArray(F) ? Z(F) : "tokenize" in F ? (
|
|
20654
20654
|
// @ts-expect-error Looks like a construct.
|
|
20655
20655
|
Z([F])
|
|
20656
|
-
) :
|
|
20657
|
-
function
|
|
20658
|
-
return
|
|
20659
|
-
function
|
|
20660
|
-
const Y =
|
|
20656
|
+
) : w(F);
|
|
20657
|
+
function w(U) {
|
|
20658
|
+
return $;
|
|
20659
|
+
function $(ae) {
|
|
20660
|
+
const Y = ae !== null && U[ae], te = ae !== null && U.null, se = [
|
|
20661
20661
|
// To do: add more extension tests.
|
|
20662
20662
|
/* c8 ignore next 2 */
|
|
20663
20663
|
...Array.isArray(Y) ? Y : Y ? [Y] : [],
|
|
20664
20664
|
...Array.isArray(te) ? te : te ? [te] : []
|
|
20665
20665
|
];
|
|
20666
|
-
return Z(
|
|
20666
|
+
return Z(se)(ae);
|
|
20667
20667
|
}
|
|
20668
20668
|
}
|
|
20669
20669
|
function Z(U) {
|
|
20670
20670
|
return O = U, J = 0, U.length === 0 ? q : B(U[J]);
|
|
20671
20671
|
}
|
|
20672
20672
|
function B(U) {
|
|
20673
|
-
return
|
|
20674
|
-
function
|
|
20673
|
+
return $;
|
|
20674
|
+
function $(ae) {
|
|
20675
20675
|
return k = P(), X = U, U.partial || (u.currentConstruct = U), U.name && u.parser.constructs.disable.null.includes(U.name) ? z() : U.tokenize.call(
|
|
20676
20676
|
// If we do have fields, create an object w/ `context` as its
|
|
20677
20677
|
// prototype.
|
|
20678
20678
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
20679
20679
|
N ? Object.assign(Object.create(u), N) : u,
|
|
20680
20680
|
l,
|
|
20681
|
-
|
|
20681
|
+
j,
|
|
20682
20682
|
z
|
|
20683
|
-
)(
|
|
20683
|
+
)(ae);
|
|
20684
20684
|
}
|
|
20685
20685
|
}
|
|
20686
|
-
function
|
|
20686
|
+
function j(U) {
|
|
20687
20687
|
return I(X, k), H;
|
|
20688
20688
|
}
|
|
20689
20689
|
function z(U) {
|
|
@@ -20934,7 +20934,7 @@ function VI(e) {
|
|
|
20934
20934
|
codeFencedFenceInfo: s,
|
|
20935
20935
|
codeFencedFenceMeta: s,
|
|
20936
20936
|
codeIndented: a(te, s),
|
|
20937
|
-
codeText: a(
|
|
20937
|
+
codeText: a(se, s),
|
|
20938
20938
|
codeTextData: P,
|
|
20939
20939
|
data: P,
|
|
20940
20940
|
codeFlowValue: P,
|
|
@@ -20969,8 +20969,8 @@ function VI(e) {
|
|
|
20969
20969
|
atxHeading: l(),
|
|
20970
20970
|
atxHeadingSequence: T,
|
|
20971
20971
|
autolink: l(),
|
|
20972
|
-
autolinkEmail:
|
|
20973
|
-
autolinkProtocol:
|
|
20972
|
+
autolinkEmail: ae,
|
|
20973
|
+
autolinkProtocol: $,
|
|
20974
20974
|
blockQuote: l(),
|
|
20975
20975
|
characterEscapeValue: L,
|
|
20976
20976
|
characterReferenceMarkerHexadecimal: z,
|
|
@@ -21005,9 +21005,9 @@ function VI(e) {
|
|
|
21005
21005
|
listOrdered: l(),
|
|
21006
21006
|
listUnordered: l(),
|
|
21007
21007
|
paragraph: l(),
|
|
21008
|
-
referenceString:
|
|
21008
|
+
referenceString: j,
|
|
21009
21009
|
resourceDestinationString: k,
|
|
21010
|
-
resourceTitleString:
|
|
21010
|
+
resourceTitleString: w,
|
|
21011
21011
|
resource: Z,
|
|
21012
21012
|
setextHeading: l(R),
|
|
21013
21013
|
setextHeadingLineSequence: A,
|
|
@@ -21304,7 +21304,7 @@ function VI(e) {
|
|
|
21304
21304
|
const ie = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
21305
21305
|
ge.url = ie;
|
|
21306
21306
|
}
|
|
21307
|
-
function
|
|
21307
|
+
function w() {
|
|
21308
21308
|
const ie = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
21309
21309
|
ge.title = ie;
|
|
21310
21310
|
}
|
|
@@ -21314,7 +21314,7 @@ function VI(e) {
|
|
|
21314
21314
|
function B() {
|
|
21315
21315
|
this.data.referenceType = "collapsed";
|
|
21316
21316
|
}
|
|
21317
|
-
function
|
|
21317
|
+
function j(ie) {
|
|
21318
21318
|
const ge = this.resume(), Ie = this.stack[this.stack.length - 1];
|
|
21319
21319
|
Ie.label = ge, Ie.identifier = Ss(
|
|
21320
21320
|
this.sliceSerialize(ie)
|
|
@@ -21333,12 +21333,12 @@ function VI(e) {
|
|
|
21333
21333
|
const Q = this.stack.pop();
|
|
21334
21334
|
Q.value += ve, Q.position.end = $i(ie.end);
|
|
21335
21335
|
}
|
|
21336
|
-
function
|
|
21336
|
+
function $(ie) {
|
|
21337
21337
|
L.call(this, ie);
|
|
21338
21338
|
const ge = this.stack[this.stack.length - 1];
|
|
21339
21339
|
ge.url = this.sliceSerialize(ie);
|
|
21340
21340
|
}
|
|
21341
|
-
function
|
|
21341
|
+
function ae(ie) {
|
|
21342
21342
|
L.call(this, ie);
|
|
21343
21343
|
const ge = this.stack[this.stack.length - 1];
|
|
21344
21344
|
ge.url = "mailto:" + this.sliceSerialize(ie);
|
|
@@ -21357,7 +21357,7 @@ function VI(e) {
|
|
|
21357
21357
|
value: ""
|
|
21358
21358
|
};
|
|
21359
21359
|
}
|
|
21360
|
-
function
|
|
21360
|
+
function se() {
|
|
21361
21361
|
return {
|
|
21362
21362
|
type: "inlineCode",
|
|
21363
21363
|
value: ""
|
|
@@ -23349,7 +23349,7 @@ const sT = ({
|
|
|
23349
23349
|
}, X = `rte-${e}`, k = ft(
|
|
23350
23350
|
(z) => /* @__PURE__ */ h.jsx(R6, { ...z }),
|
|
23351
23351
|
[]
|
|
23352
|
-
),
|
|
23352
|
+
), w = ft((z) => /* @__PURE__ */ h.jsx(F6, { ...z }), []), Z = kr(
|
|
23353
23353
|
() => qP(
|
|
23354
23354
|
QP(
|
|
23355
23355
|
XP(
|
|
@@ -23371,8 +23371,8 @@ const sT = ({
|
|
|
23371
23371
|
me(() => {
|
|
23372
23372
|
const z = (U) => {
|
|
23373
23373
|
var Y;
|
|
23374
|
-
const
|
|
23375
|
-
|
|
23374
|
+
const $ = U, ae = ((Y = $ == null ? void 0 : $.detail) == null ? void 0 : Y.id) || null;
|
|
23375
|
+
ae && B(ae);
|
|
23376
23376
|
};
|
|
23377
23377
|
return window.addEventListener("focusEditor", z), () => {
|
|
23378
23378
|
window.removeEventListener("focusEditor", z);
|
|
@@ -23387,26 +23387,26 @@ const sT = ({
|
|
|
23387
23387
|
P && (async () => {
|
|
23388
23388
|
let U = sr(P);
|
|
23389
23389
|
if (U.endsWith("<br/>") && (U = U.slice(0, -5)), U.includes("<")) {
|
|
23390
|
-
bl.prototype.escape = (
|
|
23391
|
-
const
|
|
23392
|
-
|
|
23390
|
+
bl.prototype.escape = (ae) => ae;
|
|
23391
|
+
const $ = new bl();
|
|
23392
|
+
$.addRule("br", {
|
|
23393
23393
|
filter: ["br"],
|
|
23394
|
-
replacement: (
|
|
23394
|
+
replacement: (ae) => ae + `
|
|
23395
23395
|
|
|
23396
23396
|
`
|
|
23397
|
-
}), U =
|
|
23397
|
+
}), U = $.turndown(U);
|
|
23398
23398
|
}
|
|
23399
23399
|
o && o.mentions && (U = await QE({
|
|
23400
23400
|
text: U,
|
|
23401
23401
|
template: `[${xh}{{name}}]({{id}})`,
|
|
23402
23402
|
mentions: o.mentions,
|
|
23403
23403
|
listMembers: p || (() => Promise.resolve([]))
|
|
23404
|
-
})), ZI(U, (
|
|
23405
|
-
const
|
|
23406
|
-
{ type: "initialValue", value:
|
|
23404
|
+
})), ZI(U, ($) => {
|
|
23405
|
+
const ae = [
|
|
23406
|
+
{ type: "initialValue", value: $ },
|
|
23407
23407
|
{ type: "editorKey", value: P.toString() }
|
|
23408
23408
|
];
|
|
23409
|
-
o != null && o.link && (
|
|
23409
|
+
o != null && o.link && (ae.push({ type: "enrichedUrl", value: o.link }), o.link.url && J(o.link.url)), A(ae), setTimeout(() => {
|
|
23410
23410
|
A([{ type: "stringValue", value: Zv(Z) }]);
|
|
23411
23411
|
}, 150);
|
|
23412
23412
|
});
|
|
@@ -23418,8 +23418,8 @@ const sT = ({
|
|
|
23418
23418
|
}
|
|
23419
23419
|
const z = (U) => {
|
|
23420
23420
|
var Y;
|
|
23421
|
-
const
|
|
23422
|
-
|
|
23421
|
+
const $ = U, ae = ((Y = $ == null ? void 0 : $.detail) == null ? void 0 : Y.url) || null;
|
|
23422
|
+
ae && q && q.url === ae && A([{ type: "enrichedUrl", value: void 0 }]);
|
|
23423
23423
|
};
|
|
23424
23424
|
return window.addEventListener("linkRemoved", z), () => {
|
|
23425
23425
|
window.removeEventListener("linkRemoved", z);
|
|
@@ -23447,7 +23447,7 @@ const sT = ({
|
|
|
23447
23447
|
}, [q]), me(() => {
|
|
23448
23448
|
I === "" && q && A([{ type: "enrichedUrl", value: void 0 }]);
|
|
23449
23449
|
}, [I]);
|
|
23450
|
-
const
|
|
23450
|
+
const j = cl(() => {
|
|
23451
23451
|
tP({
|
|
23452
23452
|
editor: Z,
|
|
23453
23453
|
isShowing: O.show,
|
|
@@ -23474,9 +23474,9 @@ const sT = ({
|
|
|
23474
23474
|
editor: Z,
|
|
23475
23475
|
initialValue: L,
|
|
23476
23476
|
onChange: (z) => {
|
|
23477
|
-
if (Z.operations.some((
|
|
23478
|
-
let
|
|
23479
|
-
|
|
23477
|
+
if (Z.operations.some(($) => $.type !== "set_selection")) {
|
|
23478
|
+
let $ = rP(z);
|
|
23479
|
+
$ === "<br>" && ($ = ""), m($, q), A([{ type: "stringValue", value: Zv(Z) }]), F || A([{ type: "hasInteracted", value: !0 }]), j(), d && console.log({ serialized: $, json: z });
|
|
23480
23480
|
}
|
|
23481
23481
|
},
|
|
23482
23482
|
...u,
|
|
@@ -23486,25 +23486,25 @@ const sT = ({
|
|
|
23486
23486
|
{
|
|
23487
23487
|
className: "editor",
|
|
23488
23488
|
renderElement: k,
|
|
23489
|
-
renderLeaf:
|
|
23489
|
+
renderLeaf: w,
|
|
23490
23490
|
placeholder: n || c.formatMessage({ id: "richTextEditor_placeholder" }),
|
|
23491
23491
|
autoFocus: s,
|
|
23492
23492
|
tabIndex: 0,
|
|
23493
23493
|
onPaste: async (z) => {
|
|
23494
|
-
const U = q !== !1,
|
|
23494
|
+
const U = q !== !1, $ = z.clipboardData.getData("text");
|
|
23495
23495
|
if (((Y) => {
|
|
23496
23496
|
try {
|
|
23497
23497
|
return new URL(Y), !0;
|
|
23498
23498
|
} catch {
|
|
23499
23499
|
return !1;
|
|
23500
23500
|
}
|
|
23501
|
-
})(
|
|
23502
|
-
let Y =
|
|
23503
|
-
if (
|
|
23504
|
-
const { full: te } = hp(
|
|
23501
|
+
})($)) {
|
|
23502
|
+
let Y = $;
|
|
23503
|
+
if ($) {
|
|
23504
|
+
const { full: te } = hp($);
|
|
23505
23505
|
Y = te;
|
|
23506
23506
|
}
|
|
23507
|
-
if (
|
|
23507
|
+
if ($ && v && !U) {
|
|
23508
23508
|
const te = await v(Y);
|
|
23509
23509
|
te.url && A([{ type: "enrichedUrl", value: te }]);
|
|
23510
23510
|
}
|
|
@@ -23515,10 +23515,10 @@ const sT = ({
|
|
|
23515
23515
|
O.show && (z.preventDefault(), z.stopPropagation(), Wb(Z, O, A, X));
|
|
23516
23516
|
const { selection: U } = Z;
|
|
23517
23517
|
if (U) {
|
|
23518
|
-
const
|
|
23519
|
-
let te =
|
|
23518
|
+
const $ = oe.isCollapsed(U), [ae, Y] = D.node(Z, U, { depth: 1 });
|
|
23519
|
+
let te = ae, se = te.type;
|
|
23520
23520
|
const re = te.children[0];
|
|
23521
|
-
if (
|
|
23521
|
+
if (se === ne.h3) {
|
|
23522
23522
|
z.preventDefault(), z.stopPropagation();
|
|
23523
23523
|
const Ae = D.start(Z, Y), Oe = D.end(Z, Y), Ce = Qe.equals(U.anchor, Ae), ue = Qe.equals(U.anchor, Oe);
|
|
23524
23524
|
if (Ce)
|
|
@@ -23537,16 +23537,16 @@ const sT = ({
|
|
|
23537
23537
|
}
|
|
23538
23538
|
return;
|
|
23539
23539
|
}
|
|
23540
|
-
if (re && [ne.ol, ne.ul].includes(re.type) && (te = re,
|
|
23541
|
-
if (
|
|
23540
|
+
if (re && [ne.ol, ne.ul].includes(re.type) && (te = re, se = re.type), te && De.isElement(te) && se !== ne.paragraph) {
|
|
23541
|
+
if (se === ne.blockquote && !z.shiftKey) {
|
|
23542
23542
|
z.stopPropagation(), z.preventDefault(), le.insertNodes(Z, _);
|
|
23543
23543
|
return;
|
|
23544
23544
|
}
|
|
23545
|
-
if (
|
|
23545
|
+
if ($) {
|
|
23546
23546
|
const [Ae, Oe] = D.parent(Z, U, {
|
|
23547
23547
|
edge: "end"
|
|
23548
23548
|
}), ue = Ae.type;
|
|
23549
|
-
if ([ne.ul, ne.ol].includes(
|
|
23549
|
+
if ([ne.ul, ne.ol].includes(se))
|
|
23550
23550
|
if (z.stopPropagation(), z.preventDefault(), ue === ne.li && S === "Enter") {
|
|
23551
23551
|
Ae.children.length === 1 && "text" in Ae.children[0] && Ae.children[0].text === "" && le.removeNodes(Z, { at: Oe }), le.insertNodes(Z, _, {
|
|
23552
23552
|
at: V.next(Y)
|
|
@@ -23579,12 +23579,12 @@ const sT = ({
|
|
|
23579
23579
|
}
|
|
23580
23580
|
} else if (["ArrowUp", "ArrowDown"].includes(z.key) && O.show) {
|
|
23581
23581
|
z.preventDefault(), z.stopPropagation();
|
|
23582
|
-
const { selectedUser: U, possibleUsers:
|
|
23583
|
-
let
|
|
23584
|
-
|
|
23582
|
+
const { selectedUser: U, possibleUsers: $ } = O;
|
|
23583
|
+
let ae = z.key === "ArrowUp" ? U - 1 : U + 1;
|
|
23584
|
+
ae < 0 && (ae = $.length - 1), ae >= $.length + 1 && (ae = 0), A([
|
|
23585
23585
|
{
|
|
23586
23586
|
type: "mentionPopover",
|
|
23587
|
-
value: { ...O, selectedUser:
|
|
23587
|
+
value: { ...O, selectedUser: ae }
|
|
23588
23588
|
}
|
|
23589
23589
|
]);
|
|
23590
23590
|
}
|
|
@@ -23606,9 +23606,9 @@ const sT = ({
|
|
|
23606
23606
|
anchor: N,
|
|
23607
23607
|
focus: N
|
|
23608
23608
|
});
|
|
23609
|
-
} catch (
|
|
23610
|
-
const
|
|
23611
|
-
b(`Error focusing editor: ${
|
|
23609
|
+
} catch ($) {
|
|
23610
|
+
const ae = $.message;
|
|
23611
|
+
b(`Error focusing editor: ${ae}`);
|
|
23612
23612
|
}
|
|
23613
23613
|
}
|
|
23614
23614
|
}
|
|
@@ -30498,8 +30498,8 @@ function SB(e) {
|
|
|
30498
30498
|
function kB(e) {
|
|
30499
30499
|
var t = e.state, n = e.options, r = e.name;
|
|
30500
30500
|
if (!t.modifiersData[r]._skip) {
|
|
30501
|
-
for (var i = n.mainAxis, a = i === void 0 ? !0 : i, s = n.altAxis, o = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, g = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, y = t.options.placement, v = Kr(y), E = v === y, b = l || (E || !g ? [mc(y)] : SB(y)), _ = [y].concat(b).reduce(function(
|
|
30502
|
-
return
|
|
30501
|
+
for (var i = n.mainAxis, a = i === void 0 ? !0 : i, s = n.altAxis, o = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, g = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, y = t.options.placement, v = Kr(y), E = v === y, b = l || (E || !g ? [mc(y)] : SB(y)), _ = [y].concat(b).reduce(function(j, z) {
|
|
30502
|
+
return j.concat(Kr(z) === am ? AB(t, {
|
|
30503
30503
|
placement: z,
|
|
30504
30504
|
boundary: c,
|
|
30505
30505
|
rootBoundary: d,
|
|
@@ -30517,8 +30517,8 @@ function kB(e) {
|
|
|
30517
30517
|
}), O = F ? S ? hr : Fn : S ? fr : Rn;
|
|
30518
30518
|
T[H] > C[H] && (O = mc(O));
|
|
30519
30519
|
var J = mc(O), X = [];
|
|
30520
|
-
if (a && X.push(q[N] <= 0), o && X.push(q[O] <= 0, q[J] <= 0), X.every(function(
|
|
30521
|
-
return
|
|
30520
|
+
if (a && X.push(q[N] <= 0), o && X.push(q[O] <= 0, q[J] <= 0), X.every(function(j) {
|
|
30521
|
+
return j;
|
|
30522
30522
|
})) {
|
|
30523
30523
|
P = I, R = !1;
|
|
30524
30524
|
break;
|
|
@@ -30526,18 +30526,18 @@ function kB(e) {
|
|
|
30526
30526
|
A.set(I, X);
|
|
30527
30527
|
}
|
|
30528
30528
|
if (R)
|
|
30529
|
-
for (var k = g ? 3 : 1,
|
|
30530
|
-
var U = _.find(function(
|
|
30531
|
-
var
|
|
30532
|
-
if (
|
|
30533
|
-
return
|
|
30529
|
+
for (var k = g ? 3 : 1, w = function(z) {
|
|
30530
|
+
var U = _.find(function($) {
|
|
30531
|
+
var ae = A.get($);
|
|
30532
|
+
if (ae)
|
|
30533
|
+
return ae.slice(0, z).every(function(Y) {
|
|
30534
30534
|
return Y;
|
|
30535
30535
|
});
|
|
30536
30536
|
});
|
|
30537
30537
|
if (U)
|
|
30538
30538
|
return P = U, "break";
|
|
30539
30539
|
}, Z = k; Z > 0; Z--) {
|
|
30540
|
-
var B =
|
|
30540
|
+
var B = w(Z);
|
|
30541
30541
|
if (B === "break")
|
|
30542
30542
|
break;
|
|
30543
30543
|
}
|
|
@@ -30657,10 +30657,10 @@ function LB(e) {
|
|
|
30657
30657
|
};
|
|
30658
30658
|
if (C) {
|
|
30659
30659
|
if (a) {
|
|
30660
|
-
var S, F = _ === "y" ? Rn : Fn, H = _ === "y" ? fr : hr, q = _ === "y" ? "height" : "width", O = C[_], J = O + y[F], X = O - y[H], k = p ? -R[q] / 2 : 0,
|
|
30660
|
+
var S, F = _ === "y" ? Rn : Fn, H = _ === "y" ? fr : hr, q = _ === "y" ? "height" : "width", O = C[_], J = O + y[F], X = O - y[H], k = p ? -R[q] / 2 : 0, w = E === Us ? A[q] : R[q], Z = E === Us ? -R[q] : -A[q], B = t.elements.arrow, j = p && B ? om(B) : {
|
|
30661
30661
|
width: 0,
|
|
30662
30662
|
height: 0
|
|
30663
|
-
}, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : NT(), U = z[F],
|
|
30663
|
+
}, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : NT(), U = z[F], $ = z[H], ae = Yo(0, A[q], j[q]), Y = b ? A[q] / 2 - k - ae - U - L.mainAxis : w - ae - U - L.mainAxis, te = b ? -A[q] / 2 + k + ae + $ + L.mainAxis : Z + ae + $ + L.mainAxis, se = t.elements.arrow && Ml(t.elements.arrow), re = se ? _ === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, Ae = (S = I == null ? void 0 : I[_]) != null ? S : 0, Oe = O + Y - Ae - re, Ce = O + te - Ae, ue = Yo(p ? qc(J, Oe) : J, O, p ? Ra(X, Ce) : X);
|
|
30664
30664
|
C[_] = ue, N[_] = ue - O;
|
|
30665
30665
|
}
|
|
30666
30666
|
if (o) {
|
|
@@ -33132,8 +33132,8 @@ function wj(e, t, n) {
|
|
|
33132
33132
|
return S;
|
|
33133
33133
|
function S(F, H, q) {
|
|
33134
33134
|
var O, J, X, k;
|
|
33135
|
-
return F.tokenize || "length" in F ? Z(Zd(F)) :
|
|
33136
|
-
function
|
|
33135
|
+
return F.tokenize || "length" in F ? Z(Zd(F)) : w;
|
|
33136
|
+
function w(U) {
|
|
33137
33137
|
return U in F || null in F ? Z(
|
|
33138
33138
|
F.null ? (
|
|
33139
33139
|
/* c8 ignore next */
|
|
@@ -33145,17 +33145,17 @@ function wj(e, t, n) {
|
|
|
33145
33145
|
return O = U, J = 0, B(U[J]);
|
|
33146
33146
|
}
|
|
33147
33147
|
function B(U) {
|
|
33148
|
-
return
|
|
33149
|
-
function
|
|
33148
|
+
return $;
|
|
33149
|
+
function $(ae) {
|
|
33150
33150
|
return k = P(), X = U, U.partial || (u.currentConstruct = U), U.name && u.parser.constructs.disable.null.indexOf(U.name) > -1 ? z() : U.tokenize.call(
|
|
33151
33151
|
N ? yj({}, u, N) : u,
|
|
33152
33152
|
l,
|
|
33153
|
-
|
|
33153
|
+
j,
|
|
33154
33154
|
z
|
|
33155
|
-
)(
|
|
33155
|
+
)(ae);
|
|
33156
33156
|
}
|
|
33157
33157
|
}
|
|
33158
|
-
function
|
|
33158
|
+
function j(U) {
|
|
33159
33159
|
return I(X, k), H;
|
|
33160
33160
|
}
|
|
33161
33161
|
function z(U) {
|
|
@@ -33822,93 +33822,93 @@ function $U(e) {
|
|
|
33822
33822
|
function jU(e, t, n) {
|
|
33823
33823
|
var r = this, i, a, s, o, l;
|
|
33824
33824
|
return u;
|
|
33825
|
-
function u(
|
|
33826
|
-
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(
|
|
33825
|
+
function u(w) {
|
|
33826
|
+
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(w), c;
|
|
33827
33827
|
}
|
|
33828
|
-
function c(
|
|
33829
|
-
return
|
|
33828
|
+
function c(w) {
|
|
33829
|
+
return w === 33 ? (e.consume(w), d) : w === 47 ? (e.consume(w), g) : w === 63 ? (e.consume(w), i = 3, r.interrupt ? t : J) : bo(w) ? (e.consume(w), s = Cu(w), a = !0, m) : n(w);
|
|
33830
33830
|
}
|
|
33831
|
-
function d(
|
|
33832
|
-
return
|
|
33831
|
+
function d(w) {
|
|
33832
|
+
return w === 45 ? (e.consume(w), i = 2, f) : w === 91 ? (e.consume(w), i = 5, s = "CDATA[", o = 0, p) : bo(w) ? (e.consume(w), i = 4, r.interrupt ? t : J) : n(w);
|
|
33833
33833
|
}
|
|
33834
|
-
function f(
|
|
33835
|
-
return
|
|
33834
|
+
function f(w) {
|
|
33835
|
+
return w === 45 ? (e.consume(w), r.interrupt ? t : J) : n(w);
|
|
33836
33836
|
}
|
|
33837
|
-
function p(
|
|
33838
|
-
return
|
|
33837
|
+
function p(w) {
|
|
33838
|
+
return w === s.charCodeAt(o++) ? (e.consume(w), o === s.length ? r.interrupt ? t : I : p) : n(w);
|
|
33839
33839
|
}
|
|
33840
|
-
function g(
|
|
33841
|
-
return bo(
|
|
33840
|
+
function g(w) {
|
|
33841
|
+
return bo(w) ? (e.consume(w), s = Cu(w), m) : n(w);
|
|
33842
33842
|
}
|
|
33843
|
-
function m(
|
|
33844
|
-
return
|
|
33843
|
+
function m(w) {
|
|
33844
|
+
return w === null || w === 47 || w === 62 || a5(w) ? w !== 47 && a && s5.indexOf(s.toLowerCase()) > -1 ? (i = 1, r.interrupt ? t(w) : I(w)) : FU.indexOf(s.toLowerCase()) > -1 ? (i = 6, w === 47 ? (e.consume(w), y) : r.interrupt ? t(w) : I(w)) : (i = 7, r.interrupt ? n(w) : a ? E(w) : v(w)) : w === 45 || i5(w) ? (e.consume(w), s += Cu(w), m) : n(w);
|
|
33845
33845
|
}
|
|
33846
|
-
function y(
|
|
33847
|
-
return
|
|
33846
|
+
function y(w) {
|
|
33847
|
+
return w === 62 ? (e.consume(w), r.interrupt ? t : I) : n(w);
|
|
33848
33848
|
}
|
|
33849
|
-
function v(
|
|
33850
|
-
return os(
|
|
33849
|
+
function v(w) {
|
|
33850
|
+
return os(w) ? (e.consume(w), v) : P(w);
|
|
33851
33851
|
}
|
|
33852
|
-
function E(
|
|
33853
|
-
return
|
|
33852
|
+
function E(w) {
|
|
33853
|
+
return w === 47 ? (e.consume(w), P) : w === 58 || w === 95 || bo(w) ? (e.consume(w), b) : os(w) ? (e.consume(w), E) : P(w);
|
|
33854
33854
|
}
|
|
33855
|
-
function b(
|
|
33856
|
-
return
|
|
33855
|
+
function b(w) {
|
|
33856
|
+
return w === 45 || w === 46 || w === 58 || w === 95 || i5(w) ? (e.consume(w), b) : _(w);
|
|
33857
33857
|
}
|
|
33858
|
-
function _(
|
|
33859
|
-
return
|
|
33858
|
+
function _(w) {
|
|
33859
|
+
return w === 61 ? (e.consume(w), T) : os(w) ? (e.consume(w), _) : E(w);
|
|
33860
33860
|
}
|
|
33861
|
-
function T(
|
|
33862
|
-
return
|
|
33861
|
+
function T(w) {
|
|
33862
|
+
return w === null || w === 60 || w === 61 || w === 62 || w === 96 ? n(w) : w === 34 || w === 39 ? (e.consume(w), l = w, C) : os(w) ? (e.consume(w), T) : (l = void 0, A(w));
|
|
33863
33863
|
}
|
|
33864
|
-
function C(
|
|
33865
|
-
return
|
|
33864
|
+
function C(w) {
|
|
33865
|
+
return w === l ? (e.consume(w), R) : w === null || ss(w) ? n(w) : (e.consume(w), C);
|
|
33866
33866
|
}
|
|
33867
|
-
function A(
|
|
33868
|
-
return
|
|
33867
|
+
function A(w) {
|
|
33868
|
+
return w === null || w === 34 || w === 39 || w === 60 || w === 61 || w === 62 || w === 96 || a5(w) ? _(w) : (e.consume(w), A);
|
|
33869
33869
|
}
|
|
33870
|
-
function R(
|
|
33871
|
-
return
|
|
33870
|
+
function R(w) {
|
|
33871
|
+
return w === 47 || w === 62 || os(w) ? E(w) : n(w);
|
|
33872
33872
|
}
|
|
33873
|
-
function P(
|
|
33874
|
-
return
|
|
33873
|
+
function P(w) {
|
|
33874
|
+
return w === 62 ? (e.consume(w), L) : n(w);
|
|
33875
33875
|
}
|
|
33876
|
-
function L(
|
|
33877
|
-
return os(
|
|
33876
|
+
function L(w) {
|
|
33877
|
+
return os(w) ? (e.consume(w), L) : w === null || ss(w) ? I(w) : n(w);
|
|
33878
33878
|
}
|
|
33879
|
-
function I(
|
|
33880
|
-
return
|
|
33879
|
+
function I(w) {
|
|
33880
|
+
return w === 45 && i === 2 ? (e.consume(w), F) : w === 60 && i === 1 ? (e.consume(w), H) : w === 62 && i === 4 ? (e.consume(w), X) : w === 63 && i === 3 ? (e.consume(w), J) : w === 93 && i === 5 ? (e.consume(w), O) : ss(w) && (i === 6 || i === 7) ? e.check(
|
|
33881
33881
|
LU,
|
|
33882
33882
|
X,
|
|
33883
33883
|
N
|
|
33884
|
-
)(
|
|
33884
|
+
)(w) : w === null || ss(w) ? N(w) : (e.consume(w), I);
|
|
33885
33885
|
}
|
|
33886
|
-
function N(
|
|
33887
|
-
return e.exit("htmlFlowData"), S(
|
|
33886
|
+
function N(w) {
|
|
33887
|
+
return e.exit("htmlFlowData"), S(w);
|
|
33888
33888
|
}
|
|
33889
|
-
function S(
|
|
33890
|
-
return
|
|
33889
|
+
function S(w) {
|
|
33890
|
+
return w === null ? k(w) : ss(w) ? (e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), S) : (e.enter("htmlFlowData"), I(w));
|
|
33891
33891
|
}
|
|
33892
|
-
function F(
|
|
33893
|
-
return
|
|
33892
|
+
function F(w) {
|
|
33893
|
+
return w === 45 ? (e.consume(w), J) : I(w);
|
|
33894
33894
|
}
|
|
33895
|
-
function H(
|
|
33896
|
-
return
|
|
33895
|
+
function H(w) {
|
|
33896
|
+
return w === 47 ? (e.consume(w), s = "", q) : I(w);
|
|
33897
33897
|
}
|
|
33898
|
-
function q(
|
|
33899
|
-
return
|
|
33898
|
+
function q(w) {
|
|
33899
|
+
return w === 62 && s5.indexOf(s.toLowerCase()) > -1 ? (e.consume(w), X) : bo(w) && s.length < 8 ? (e.consume(w), s += Cu(w), q) : I(w);
|
|
33900
33900
|
}
|
|
33901
|
-
function O(
|
|
33902
|
-
return
|
|
33901
|
+
function O(w) {
|
|
33902
|
+
return w === 93 ? (e.consume(w), J) : I(w);
|
|
33903
33903
|
}
|
|
33904
|
-
function J(
|
|
33905
|
-
return
|
|
33904
|
+
function J(w) {
|
|
33905
|
+
return w === 62 ? (e.consume(w), X) : I(w);
|
|
33906
33906
|
}
|
|
33907
|
-
function X(
|
|
33908
|
-
return
|
|
33907
|
+
function X(w) {
|
|
33908
|
+
return w === null || ss(w) ? (e.exit("htmlFlowData"), k(w)) : (e.consume(w), X);
|
|
33909
33909
|
}
|
|
33910
|
-
function k(
|
|
33911
|
-
return e.exit("htmlFlow"), t(
|
|
33910
|
+
function k(w) {
|
|
33911
|
+
return e.exit("htmlFlow"), t(w);
|
|
33912
33912
|
}
|
|
33913
33913
|
}
|
|
33914
33914
|
function HU(e, t, n) {
|
|
@@ -33924,97 +33924,97 @@ var UU = MU, xu = b1, Qd = Ul, si = Xt, Xd = Pi, wu = Ni, zU = tn, qU = {
|
|
|
33924
33924
|
function WU(e, t, n) {
|
|
33925
33925
|
var r = this, i, a, s, o;
|
|
33926
33926
|
return l;
|
|
33927
|
-
function l(
|
|
33928
|
-
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(
|
|
33927
|
+
function l(w) {
|
|
33928
|
+
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(w), u;
|
|
33929
33929
|
}
|
|
33930
|
-
function u(
|
|
33931
|
-
return
|
|
33930
|
+
function u(w) {
|
|
33931
|
+
return w === 33 ? (e.consume(w), c) : w === 47 ? (e.consume(w), A) : w === 63 ? (e.consume(w), T) : xu(w) ? (e.consume(w), L) : n(w);
|
|
33932
33932
|
}
|
|
33933
|
-
function c(
|
|
33934
|
-
return
|
|
33933
|
+
function c(w) {
|
|
33934
|
+
return w === 45 ? (e.consume(w), d) : w === 91 ? (e.consume(w), a = "CDATA[", s = 0, y) : xu(w) ? (e.consume(w), _) : n(w);
|
|
33935
33935
|
}
|
|
33936
|
-
function d(
|
|
33937
|
-
return
|
|
33936
|
+
function d(w) {
|
|
33937
|
+
return w === 45 ? (e.consume(w), f) : n(w);
|
|
33938
33938
|
}
|
|
33939
|
-
function f(
|
|
33940
|
-
return
|
|
33939
|
+
function f(w) {
|
|
33940
|
+
return w === null || w === 62 ? n(w) : w === 45 ? (e.consume(w), p) : g(w);
|
|
33941
33941
|
}
|
|
33942
|
-
function p(
|
|
33943
|
-
return
|
|
33942
|
+
function p(w) {
|
|
33943
|
+
return w === null || w === 62 ? n(w) : g(w);
|
|
33944
33944
|
}
|
|
33945
|
-
function g(
|
|
33946
|
-
return
|
|
33945
|
+
function g(w) {
|
|
33946
|
+
return w === null ? n(w) : w === 45 ? (e.consume(w), m) : si(w) ? (o = g, J(w)) : (e.consume(w), g);
|
|
33947
33947
|
}
|
|
33948
|
-
function m(
|
|
33949
|
-
return
|
|
33948
|
+
function m(w) {
|
|
33949
|
+
return w === 45 ? (e.consume(w), k) : g(w);
|
|
33950
33950
|
}
|
|
33951
|
-
function y(
|
|
33952
|
-
return
|
|
33951
|
+
function y(w) {
|
|
33952
|
+
return w === a.charCodeAt(s++) ? (e.consume(w), s === a.length ? v : y) : n(w);
|
|
33953
33953
|
}
|
|
33954
|
-
function v(
|
|
33955
|
-
return
|
|
33954
|
+
function v(w) {
|
|
33955
|
+
return w === null ? n(w) : w === 93 ? (e.consume(w), E) : si(w) ? (o = v, J(w)) : (e.consume(w), v);
|
|
33956
33956
|
}
|
|
33957
|
-
function E(
|
|
33958
|
-
return
|
|
33957
|
+
function E(w) {
|
|
33958
|
+
return w === 93 ? (e.consume(w), b) : v(w);
|
|
33959
33959
|
}
|
|
33960
|
-
function b(
|
|
33961
|
-
return
|
|
33960
|
+
function b(w) {
|
|
33961
|
+
return w === 62 ? k(w) : w === 93 ? (e.consume(w), b) : v(w);
|
|
33962
33962
|
}
|
|
33963
|
-
function _(
|
|
33964
|
-
return
|
|
33963
|
+
function _(w) {
|
|
33964
|
+
return w === null || w === 62 ? k(w) : si(w) ? (o = _, J(w)) : (e.consume(w), _);
|
|
33965
33965
|
}
|
|
33966
|
-
function T(
|
|
33967
|
-
return
|
|
33966
|
+
function T(w) {
|
|
33967
|
+
return w === null ? n(w) : w === 63 ? (e.consume(w), C) : si(w) ? (o = T, J(w)) : (e.consume(w), T);
|
|
33968
33968
|
}
|
|
33969
|
-
function C(
|
|
33970
|
-
return
|
|
33969
|
+
function C(w) {
|
|
33970
|
+
return w === 62 ? k(w) : T(w);
|
|
33971
33971
|
}
|
|
33972
|
-
function A(
|
|
33973
|
-
return xu(
|
|
33972
|
+
function A(w) {
|
|
33973
|
+
return xu(w) ? (e.consume(w), R) : n(w);
|
|
33974
33974
|
}
|
|
33975
|
-
function R(
|
|
33976
|
-
return
|
|
33975
|
+
function R(w) {
|
|
33976
|
+
return w === 45 || Qd(w) ? (e.consume(w), R) : P(w);
|
|
33977
33977
|
}
|
|
33978
|
-
function P(
|
|
33979
|
-
return si(
|
|
33978
|
+
function P(w) {
|
|
33979
|
+
return si(w) ? (o = P, J(w)) : wu(w) ? (e.consume(w), P) : k(w);
|
|
33980
33980
|
}
|
|
33981
|
-
function L(
|
|
33982
|
-
return
|
|
33981
|
+
function L(w) {
|
|
33982
|
+
return w === 45 || Qd(w) ? (e.consume(w), L) : w === 47 || w === 62 || Xd(w) ? I(w) : n(w);
|
|
33983
33983
|
}
|
|
33984
|
-
function I(
|
|
33985
|
-
return
|
|
33984
|
+
function I(w) {
|
|
33985
|
+
return w === 47 ? (e.consume(w), k) : w === 58 || w === 95 || xu(w) ? (e.consume(w), N) : si(w) ? (o = I, J(w)) : wu(w) ? (e.consume(w), I) : k(w);
|
|
33986
33986
|
}
|
|
33987
|
-
function N(
|
|
33988
|
-
return
|
|
33987
|
+
function N(w) {
|
|
33988
|
+
return w === 45 || w === 46 || w === 58 || w === 95 || Qd(w) ? (e.consume(w), N) : S(w);
|
|
33989
33989
|
}
|
|
33990
|
-
function S(
|
|
33991
|
-
return
|
|
33990
|
+
function S(w) {
|
|
33991
|
+
return w === 61 ? (e.consume(w), F) : si(w) ? (o = S, J(w)) : wu(w) ? (e.consume(w), S) : I(w);
|
|
33992
33992
|
}
|
|
33993
|
-
function F(
|
|
33994
|
-
return
|
|
33993
|
+
function F(w) {
|
|
33994
|
+
return w === null || w === 60 || w === 61 || w === 62 || w === 96 ? n(w) : w === 34 || w === 39 ? (e.consume(w), i = w, H) : si(w) ? (o = F, J(w)) : wu(w) ? (e.consume(w), F) : (e.consume(w), i = void 0, O);
|
|
33995
33995
|
}
|
|
33996
|
-
function H(
|
|
33997
|
-
return
|
|
33996
|
+
function H(w) {
|
|
33997
|
+
return w === i ? (e.consume(w), q) : w === null ? n(w) : si(w) ? (o = H, J(w)) : (e.consume(w), H);
|
|
33998
33998
|
}
|
|
33999
|
-
function q(
|
|
34000
|
-
return
|
|
33999
|
+
function q(w) {
|
|
34000
|
+
return w === 62 || w === 47 || Xd(w) ? I(w) : n(w);
|
|
34001
34001
|
}
|
|
34002
|
-
function O(
|
|
34003
|
-
return
|
|
34002
|
+
function O(w) {
|
|
34003
|
+
return w === null || w === 34 || w === 39 || w === 60 || w === 61 || w === 96 ? n(w) : w === 62 || Xd(w) ? I(w) : (e.consume(w), O);
|
|
34004
34004
|
}
|
|
34005
|
-
function J(
|
|
34006
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(
|
|
34005
|
+
function J(w) {
|
|
34006
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), zU(
|
|
34007
34007
|
e,
|
|
34008
34008
|
X,
|
|
34009
34009
|
"linePrefix",
|
|
34010
34010
|
r.parser.constructs.disable.null.indexOf("codeIndented") > -1 ? void 0 : 4
|
|
34011
34011
|
);
|
|
34012
34012
|
}
|
|
34013
|
-
function X(
|
|
34014
|
-
return e.enter("htmlTextData"), o(
|
|
34013
|
+
function X(w) {
|
|
34014
|
+
return e.enter("htmlTextData"), o(w);
|
|
34015
34015
|
}
|
|
34016
|
-
function k(
|
|
34017
|
-
return
|
|
34016
|
+
function k(w) {
|
|
34017
|
+
return w === 62 ? (e.consume(w), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(w);
|
|
34018
34018
|
}
|
|
34019
34019
|
}
|
|
34020
34020
|
var VU = qU, KU = Pi, ls = Cm, GU = Ii, A8 = ym, YU = E1, us = Va, ZU = b8, QU = T8, XU = C8, Jd = _8, JU = {
|
|
@@ -34591,7 +34591,7 @@ function Nq(e) {
|
|
|
34591
34591
|
listOrdered: u(nt, m),
|
|
34592
34592
|
listUnordered: u(nt),
|
|
34593
34593
|
paragraph: u(ie),
|
|
34594
|
-
reference:
|
|
34594
|
+
reference: $,
|
|
34595
34595
|
referenceString: c,
|
|
34596
34596
|
resourceDestinationString: c,
|
|
34597
34597
|
resourceTitleString: c,
|
|
@@ -34604,7 +34604,7 @@ function Nq(e) {
|
|
|
34604
34604
|
atxHeadingSequence: P,
|
|
34605
34605
|
autolink: f(),
|
|
34606
34606
|
autolinkEmail: re,
|
|
34607
|
-
autolinkProtocol:
|
|
34607
|
+
autolinkProtocol: se,
|
|
34608
34608
|
blockQuote: f(),
|
|
34609
34609
|
characterEscapeValue: F,
|
|
34610
34610
|
characterReferenceMarkerHexadecimal: Y,
|
|
@@ -34630,7 +34630,7 @@ function Nq(e) {
|
|
|
34630
34630
|
htmlFlowData: F,
|
|
34631
34631
|
htmlText: f(J),
|
|
34632
34632
|
htmlTextData: F,
|
|
34633
|
-
image: f(
|
|
34633
|
+
image: f(w),
|
|
34634
34634
|
label: B,
|
|
34635
34635
|
labelText: Z,
|
|
34636
34636
|
lineEnding: H,
|
|
@@ -34639,8 +34639,8 @@ function Nq(e) {
|
|
|
34639
34639
|
listOrdered: f(),
|
|
34640
34640
|
listUnordered: f(),
|
|
34641
34641
|
paragraph: f(),
|
|
34642
|
-
referenceString:
|
|
34643
|
-
resourceDestinationString:
|
|
34642
|
+
referenceString: ae,
|
|
34643
|
+
resourceDestinationString: j,
|
|
34644
34644
|
resourceTitleString: z,
|
|
34645
34645
|
resource: U,
|
|
34646
34646
|
setextHeading: f(N),
|
|
@@ -34851,7 +34851,7 @@ function Nq(e) {
|
|
|
34851
34851
|
var Q = this.stack[this.stack.length - 1];
|
|
34852
34852
|
o("inReference") ? (Q.type += "Reference", Q.referenceType = o("referenceType") || "shortcut", delete Q.url, delete Q.title) : (delete Q.identifier, delete Q.label, delete Q.referenceType), s("referenceType");
|
|
34853
34853
|
}
|
|
34854
|
-
function
|
|
34854
|
+
function w() {
|
|
34855
34855
|
var Q = this.stack[this.stack.length - 1];
|
|
34856
34856
|
o("inReference") ? (Q.type += "Reference", Q.referenceType = o("referenceType") || "shortcut", delete Q.url, delete Q.title) : (delete Q.identifier, delete Q.label, delete Q.referenceType), s("referenceType");
|
|
34857
34857
|
}
|
|
@@ -34864,7 +34864,7 @@ function Nq(e) {
|
|
|
34864
34864
|
var Q = this.stack[this.stack.length - 1], fe = this.resume();
|
|
34865
34865
|
this.stack[this.stack.length - 1].label = fe, s("inReference", !0), this.stack[this.stack.length - 1].type === "link" ? this.stack[this.stack.length - 1].children = Q.children : this.stack[this.stack.length - 1].alt = fe;
|
|
34866
34866
|
}
|
|
34867
|
-
function
|
|
34867
|
+
function j() {
|
|
34868
34868
|
var Q = this.resume();
|
|
34869
34869
|
this.stack[this.stack.length - 1].url = Q;
|
|
34870
34870
|
}
|
|
@@ -34875,10 +34875,10 @@ function Nq(e) {
|
|
|
34875
34875
|
function U() {
|
|
34876
34876
|
s("inReference");
|
|
34877
34877
|
}
|
|
34878
|
-
function
|
|
34878
|
+
function $() {
|
|
34879
34879
|
s("referenceType", "collapsed");
|
|
34880
34880
|
}
|
|
34881
|
-
function
|
|
34881
|
+
function ae(Q) {
|
|
34882
34882
|
var fe = this.resume();
|
|
34883
34883
|
this.stack[this.stack.length - 1].label = fe, this.stack[this.stack.length - 1].identifier = af(
|
|
34884
34884
|
this.sliceSerialize(Q)
|
|
@@ -34894,7 +34894,7 @@ function Nq(e) {
|
|
|
34894
34894
|
xe === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
34895
34895
|
), s("characterReferenceType")) : Me = Dq(fe), vt = this.stack.pop(), vt.value += Me, vt.position.end = l(Q.end);
|
|
34896
34896
|
}
|
|
34897
|
-
function
|
|
34897
|
+
function se(Q) {
|
|
34898
34898
|
F.call(this, Q), this.stack[this.stack.length - 1].url = this.sliceSerialize(Q);
|
|
34899
34899
|
}
|
|
34900
34900
|
function re(Q) {
|
|
@@ -36175,15 +36175,15 @@ function IK() {
|
|
|
36175
36175
|
e = v("react.element"), t = v("react.portal"), n = v("react.fragment"), r = v("react.strict_mode"), i = v("react.profiler"), a = v("react.provider"), s = v("react.context"), o = v("react.forward_ref"), l = v("react.suspense"), u = v("react.suspense_list"), c = v("react.memo"), d = v("react.lazy"), f = v("react.block"), p = v("react.server.block"), g = v("react.fundamental"), v("react.scope"), v("react.opaque.id"), m = v("react.debug_trace_mode"), v("react.offscreen"), y = v("react.legacy_hidden");
|
|
36176
36176
|
}
|
|
36177
36177
|
var E = !1;
|
|
36178
|
-
function b(
|
|
36179
|
-
return !!(typeof
|
|
36178
|
+
function b(se) {
|
|
36179
|
+
return !!(typeof se == "string" || typeof se == "function" || se === n || se === i || se === m || se === r || se === l || se === u || se === y || E || typeof se == "object" && se !== null && (se.$$typeof === d || se.$$typeof === c || se.$$typeof === a || se.$$typeof === s || se.$$typeof === o || se.$$typeof === g || se.$$typeof === f || se[0] === p));
|
|
36180
36180
|
}
|
|
36181
|
-
function _(
|
|
36182
|
-
if (typeof
|
|
36183
|
-
var re =
|
|
36181
|
+
function _(se) {
|
|
36182
|
+
if (typeof se == "object" && se !== null) {
|
|
36183
|
+
var re = se.$$typeof;
|
|
36184
36184
|
switch (re) {
|
|
36185
36185
|
case e:
|
|
36186
|
-
var Ae =
|
|
36186
|
+
var Ae = se.type;
|
|
36187
36187
|
switch (Ae) {
|
|
36188
36188
|
case n:
|
|
36189
36189
|
case i:
|
|
@@ -36210,46 +36210,46 @@ function IK() {
|
|
|
36210
36210
|
}
|
|
36211
36211
|
}
|
|
36212
36212
|
var T = s, C = a, A = e, R = o, P = n, L = d, I = c, N = t, S = i, F = r, H = l, q = !1, O = !1;
|
|
36213
|
-
function J(
|
|
36213
|
+
function J(se) {
|
|
36214
36214
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
36215
36215
|
}
|
|
36216
|
-
function X(
|
|
36216
|
+
function X(se) {
|
|
36217
36217
|
return O || (O = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
36218
36218
|
}
|
|
36219
|
-
function k(
|
|
36220
|
-
return _(
|
|
36219
|
+
function k(se) {
|
|
36220
|
+
return _(se) === s;
|
|
36221
36221
|
}
|
|
36222
|
-
function
|
|
36223
|
-
return _(
|
|
36222
|
+
function w(se) {
|
|
36223
|
+
return _(se) === a;
|
|
36224
36224
|
}
|
|
36225
|
-
function Z(
|
|
36226
|
-
return typeof
|
|
36225
|
+
function Z(se) {
|
|
36226
|
+
return typeof se == "object" && se !== null && se.$$typeof === e;
|
|
36227
36227
|
}
|
|
36228
|
-
function B(
|
|
36229
|
-
return _(
|
|
36228
|
+
function B(se) {
|
|
36229
|
+
return _(se) === o;
|
|
36230
36230
|
}
|
|
36231
|
-
function
|
|
36232
|
-
return _(
|
|
36231
|
+
function j(se) {
|
|
36232
|
+
return _(se) === n;
|
|
36233
36233
|
}
|
|
36234
|
-
function z(
|
|
36235
|
-
return _(
|
|
36234
|
+
function z(se) {
|
|
36235
|
+
return _(se) === d;
|
|
36236
36236
|
}
|
|
36237
|
-
function U(
|
|
36238
|
-
return _(
|
|
36237
|
+
function U(se) {
|
|
36238
|
+
return _(se) === c;
|
|
36239
36239
|
}
|
|
36240
|
-
function
|
|
36241
|
-
return _(
|
|
36240
|
+
function $(se) {
|
|
36241
|
+
return _(se) === t;
|
|
36242
36242
|
}
|
|
36243
|
-
function se
|
|
36244
|
-
return _(
|
|
36243
|
+
function ae(se) {
|
|
36244
|
+
return _(se) === i;
|
|
36245
36245
|
}
|
|
36246
|
-
function Y(
|
|
36247
|
-
return _(
|
|
36246
|
+
function Y(se) {
|
|
36247
|
+
return _(se) === r;
|
|
36248
36248
|
}
|
|
36249
|
-
function te(
|
|
36250
|
-
return _(
|
|
36249
|
+
function te(se) {
|
|
36250
|
+
return _(se) === l;
|
|
36251
36251
|
}
|
|
36252
|
-
St.ContextConsumer = T, St.ContextProvider = C, St.Element = A, St.ForwardRef = R, St.Fragment = P, St.Lazy = L, St.Memo = I, St.Portal = N, St.Profiler = S, St.StrictMode = F, St.Suspense = H, St.isAsyncMode = J, St.isConcurrentMode = X, St.isContextConsumer = k, St.isContextProvider =
|
|
36252
|
+
St.ContextConsumer = T, St.ContextProvider = C, St.Element = A, St.ForwardRef = R, St.Fragment = P, St.Lazy = L, St.Memo = I, St.Portal = N, St.Profiler = S, St.StrictMode = F, St.Suspense = H, St.isAsyncMode = J, St.isConcurrentMode = X, St.isContextConsumer = k, St.isContextProvider = w, St.isElement = Z, St.isForwardRef = B, St.isFragment = j, St.isLazy = z, St.isMemo = U, St.isPortal = $, St.isProfiler = ae, St.isStrictMode = Y, St.isSuspense = te, St.isValidElementType = b, St.typeOf = _;
|
|
36253
36253
|
}()), St;
|
|
36254
36254
|
}
|
|
36255
36255
|
process.env.NODE_ENV === "production" ? Qh.exports = NK() : Qh.exports = IK();
|
|
@@ -40524,31 +40524,31 @@ function OX(e, t, n) {
|
|
|
40524
40524
|
da.isIntegrationPoint = function(e, t, n, r) {
|
|
40525
40525
|
return !!((!r || r === ln.HTML) && OX(e, t, n) || (!r || r === ln.MATHML) && DX(e, t));
|
|
40526
40526
|
};
|
|
40527
|
-
const G = D1, NX = LQ, K2 = $Q, IX = QQ, PX = pX, G2 = Fi, RX = pt, FX = vX, Y2 = O1, qr = da, fn = Vm, BX = Ir, Ga = Pr,
|
|
40527
|
+
const G = D1, NX = LQ, K2 = $Q, IX = QQ, PX = pX, G2 = Fi, RX = pt, FX = vX, Y2 = O1, qr = da, fn = Vm, BX = Ir, Ga = Pr, x = Ga.TAG_NAMES, Pe = Ga.NAMESPACES, nC = Ga.ATTRS, MX = {
|
|
40528
40528
|
scriptingEnabled: !0,
|
|
40529
40529
|
sourceCodeLocationInfo: !1,
|
|
40530
40530
|
onParseError: null,
|
|
40531
40531
|
treeAdapter: RX
|
|
40532
40532
|
}, rC = "hidden", LX = 8, $X = 3, iC = "INITIAL_MODE", Zm = "BEFORE_HTML_MODE", N1 = "BEFORE_HEAD_MODE", no = "IN_HEAD_MODE", aC = "IN_HEAD_NO_SCRIPT_MODE", I1 = "AFTER_HEAD_MODE", Yr = "IN_BODY_MODE", Yc = "TEXT_MODE", pn = "IN_TABLE_MODE", sC = "IN_TABLE_TEXT_MODE", P1 = "IN_CAPTION_MODE", Wl = "IN_COLUMN_GROUP_MODE", dr = "IN_TABLE_BODY_MODE", ki = "IN_ROW_MODE", R1 = "IN_CELL_MODE", Qm = "IN_SELECT_MODE", Xm = "IN_SELECT_IN_TABLE_MODE", Zc = "IN_TEMPLATE_MODE", Jm = "AFTER_BODY_MODE", F1 = "IN_FRAMESET_MODE", oC = "AFTER_FRAMESET_MODE", lC = "AFTER_AFTER_BODY_MODE", uC = "AFTER_AFTER_FRAMESET_MODE", jX = {
|
|
40533
|
-
[
|
|
40534
|
-
[
|
|
40535
|
-
[
|
|
40536
|
-
[
|
|
40537
|
-
[
|
|
40538
|
-
[
|
|
40539
|
-
[
|
|
40540
|
-
[
|
|
40541
|
-
[
|
|
40533
|
+
[x.TR]: ki,
|
|
40534
|
+
[x.TBODY]: dr,
|
|
40535
|
+
[x.THEAD]: dr,
|
|
40536
|
+
[x.TFOOT]: dr,
|
|
40537
|
+
[x.CAPTION]: P1,
|
|
40538
|
+
[x.COLGROUP]: Wl,
|
|
40539
|
+
[x.TABLE]: pn,
|
|
40540
|
+
[x.BODY]: Yr,
|
|
40541
|
+
[x.FRAMESET]: F1
|
|
40542
40542
|
}, HX = {
|
|
40543
|
-
[
|
|
40544
|
-
[
|
|
40545
|
-
[
|
|
40546
|
-
[
|
|
40547
|
-
[
|
|
40548
|
-
[
|
|
40549
|
-
[
|
|
40550
|
-
[
|
|
40551
|
-
[
|
|
40543
|
+
[x.CAPTION]: pn,
|
|
40544
|
+
[x.COLGROUP]: pn,
|
|
40545
|
+
[x.TBODY]: pn,
|
|
40546
|
+
[x.TFOOT]: pn,
|
|
40547
|
+
[x.THEAD]: pn,
|
|
40548
|
+
[x.COL]: Wl,
|
|
40549
|
+
[x.TR]: dr,
|
|
40550
|
+
[x.TD]: ki,
|
|
40551
|
+
[x.TH]: ki
|
|
40552
40552
|
}, Z2 = {
|
|
40553
40553
|
[iC]: {
|
|
40554
40554
|
[G.CHARACTER_TOKEN]: So,
|
|
@@ -40791,9 +40791,9 @@ class UX {
|
|
|
40791
40791
|
return this._bootstrap(n, null), this.tokenizer.write(t, !0), this._runParsingLoop(null), n;
|
|
40792
40792
|
}
|
|
40793
40793
|
parseFragment(t, n) {
|
|
40794
|
-
n || (n = this.treeAdapter.createElement(
|
|
40794
|
+
n || (n = this.treeAdapter.createElement(x.TEMPLATE, Pe.HTML, []));
|
|
40795
40795
|
const r = this.treeAdapter.createElement("documentmock", Pe.HTML, []);
|
|
40796
|
-
this._bootstrap(r, n), this.treeAdapter.getTagName(n) ===
|
|
40796
|
+
this._bootstrap(r, n), this.treeAdapter.getTagName(n) === x.TEMPLATE && this._pushTmplInsertionMode(Zc), this._initTokenizerForFragmentParsing(), this._insertFakeRootElement(), this._resetInsertionMode(), this._findFormInFragmentContext(), this.tokenizer.write(t, !0), this._runParsingLoop(null);
|
|
40797
40797
|
const i = this.treeAdapter.getFirstChild(r), a = this.treeAdapter.createDocumentFragment();
|
|
40798
40798
|
return this._adoptNodes(i, a), a;
|
|
40799
40799
|
}
|
|
@@ -40847,7 +40847,7 @@ class UX {
|
|
|
40847
40847
|
_findFormInFragmentContext() {
|
|
40848
40848
|
let t = this.fragmentContext;
|
|
40849
40849
|
do {
|
|
40850
|
-
if (this.treeAdapter.getTagName(t) ===
|
|
40850
|
+
if (this.treeAdapter.getTagName(t) === x.FORM) {
|
|
40851
40851
|
this.formElement = t;
|
|
40852
40852
|
break;
|
|
40853
40853
|
}
|
|
@@ -40857,7 +40857,7 @@ class UX {
|
|
|
40857
40857
|
_initTokenizerForFragmentParsing() {
|
|
40858
40858
|
if (this.treeAdapter.getNamespaceURI(this.fragmentContext) === Pe.HTML) {
|
|
40859
40859
|
const t = this.treeAdapter.getTagName(this.fragmentContext);
|
|
40860
|
-
t ===
|
|
40860
|
+
t === x.TITLE || t === x.TEXTAREA ? this.tokenizer.state = G.MODE.RCDATA : t === x.STYLE || t === x.XMP || t === x.IFRAME || t === x.NOEMBED || t === x.NOFRAMES || t === x.NOSCRIPT ? this.tokenizer.state = G.MODE.RAWTEXT : t === x.SCRIPT ? this.tokenizer.state = G.MODE.SCRIPT_DATA : t === x.PLAINTEXT && (this.tokenizer.state = G.MODE.PLAINTEXT);
|
|
40861
40861
|
}
|
|
40862
40862
|
}
|
|
40863
40863
|
//Tree mutation
|
|
@@ -40890,7 +40890,7 @@ class UX {
|
|
|
40890
40890
|
this.treeAdapter.setTemplateContent(n, r), this._attachElementToTree(n), this.openElements.push(n);
|
|
40891
40891
|
}
|
|
40892
40892
|
_insertFakeRootElement() {
|
|
40893
|
-
const t = this.treeAdapter.createElement(
|
|
40893
|
+
const t = this.treeAdapter.createElement(x.HTML, Pe.HTML, []);
|
|
40894
40894
|
this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t);
|
|
40895
40895
|
}
|
|
40896
40896
|
_appendCommentNode(t, n) {
|
|
@@ -40915,10 +40915,10 @@ class UX {
|
|
|
40915
40915
|
if (!n || n === this.document)
|
|
40916
40916
|
return !1;
|
|
40917
40917
|
const r = this.treeAdapter.getNamespaceURI(n);
|
|
40918
|
-
if (r === Pe.HTML || this.treeAdapter.getTagName(n) ===
|
|
40918
|
+
if (r === Pe.HTML || this.treeAdapter.getTagName(n) === x.ANNOTATION_XML && r === Pe.MATHML && t.type === G.START_TAG_TOKEN && t.tagName === x.SVG)
|
|
40919
40919
|
return !1;
|
|
40920
40920
|
const i = t.type === G.CHARACTER_TOKEN || t.type === G.NULL_CHARACTER_TOKEN || t.type === G.WHITESPACE_CHARACTER_TOKEN;
|
|
40921
|
-
return (t.type === G.START_TAG_TOKEN && t.tagName !==
|
|
40921
|
+
return (t.type === G.START_TAG_TOKEN && t.tagName !== x.MGLYPH && t.tagName !== x.MALIGNMARK || i) && this._isIntegrationPoint(n, Pe.MATHML) || (t.type === G.START_TAG_TOKEN || i) && this._isIntegrationPoint(n, Pe.HTML) ? !1 : t.type !== G.EOF_TOKEN;
|
|
40922
40922
|
}
|
|
40923
40923
|
_processToken(t) {
|
|
40924
40924
|
Z2[this.insertionMode][t.type](this, t);
|
|
@@ -40957,7 +40957,7 @@ class UX {
|
|
|
40957
40957
|
this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = ki;
|
|
40958
40958
|
}
|
|
40959
40959
|
_closePElement() {
|
|
40960
|
-
this.openElements.generateImpliedEndTagsWithExclusion(
|
|
40960
|
+
this.openElements.generateImpliedEndTagsWithExclusion(x.P), this.openElements.popUntilTagNamePopped(x.P);
|
|
40961
40961
|
}
|
|
40962
40962
|
//Insertion modes
|
|
40963
40963
|
_resetInsertionMode() {
|
|
@@ -40968,19 +40968,19 @@ class UX {
|
|
|
40968
40968
|
if (a) {
|
|
40969
40969
|
this.insertionMode = a;
|
|
40970
40970
|
break;
|
|
40971
|
-
} else if (!n && (i ===
|
|
40971
|
+
} else if (!n && (i === x.TD || i === x.TH)) {
|
|
40972
40972
|
this.insertionMode = R1;
|
|
40973
40973
|
break;
|
|
40974
|
-
} else if (!n && i ===
|
|
40974
|
+
} else if (!n && i === x.HEAD) {
|
|
40975
40975
|
this.insertionMode = no;
|
|
40976
40976
|
break;
|
|
40977
|
-
} else if (i ===
|
|
40977
|
+
} else if (i === x.SELECT) {
|
|
40978
40978
|
this._resetInsertionModeForSelect(t);
|
|
40979
40979
|
break;
|
|
40980
|
-
} else if (i ===
|
|
40980
|
+
} else if (i === x.TEMPLATE) {
|
|
40981
40981
|
this.insertionMode = this.currentTmplInsertionMode;
|
|
40982
40982
|
break;
|
|
40983
|
-
} else if (i ===
|
|
40983
|
+
} else if (i === x.HTML) {
|
|
40984
40984
|
this.insertionMode = this.headElement ? I1 : N1;
|
|
40985
40985
|
break;
|
|
40986
40986
|
} else if (n) {
|
|
@@ -40993,9 +40993,9 @@ class UX {
|
|
|
40993
40993
|
if (t > 0)
|
|
40994
40994
|
for (let n = t - 1; n > 0; n--) {
|
|
40995
40995
|
const r = this.openElements.items[n], i = this.treeAdapter.getTagName(r);
|
|
40996
|
-
if (i ===
|
|
40996
|
+
if (i === x.TEMPLATE)
|
|
40997
40997
|
break;
|
|
40998
|
-
if (i ===
|
|
40998
|
+
if (i === x.TABLE) {
|
|
40999
40999
|
this.insertionMode = Xm;
|
|
41000
41000
|
return;
|
|
41001
41001
|
}
|
|
@@ -41011,7 +41011,7 @@ class UX {
|
|
|
41011
41011
|
//Foster parenting
|
|
41012
41012
|
_isElementCausesFosterParenting(t) {
|
|
41013
41013
|
const n = this.treeAdapter.getTagName(t);
|
|
41014
|
-
return n ===
|
|
41014
|
+
return n === x.TABLE || n === x.TBODY || n === x.TFOOT || n === x.THEAD || n === x.TR;
|
|
41015
41015
|
}
|
|
41016
41016
|
_shouldFosterParentOnInsertion() {
|
|
41017
41017
|
return this.fosterParentingEnabled && this._isElementCausesFosterParenting(this.openElements.current);
|
|
@@ -41023,10 +41023,10 @@ class UX {
|
|
|
41023
41023
|
};
|
|
41024
41024
|
for (let n = this.openElements.stackTop; n >= 0; n--) {
|
|
41025
41025
|
const r = this.openElements.items[n], i = this.treeAdapter.getTagName(r), a = this.treeAdapter.getNamespaceURI(r);
|
|
41026
|
-
if (i ===
|
|
41026
|
+
if (i === x.TEMPLATE && a === Pe.HTML) {
|
|
41027
41027
|
t.parent = this.treeAdapter.getTemplateContent(r);
|
|
41028
41028
|
break;
|
|
41029
|
-
} else if (i ===
|
|
41029
|
+
} else if (i === x.TABLE) {
|
|
41030
41030
|
t.parent = this.treeAdapter.getParentNode(r), t.parent ? t.beforeElement = r : t.parent = this.openElements.items[n - 1];
|
|
41031
41031
|
break;
|
|
41032
41032
|
}
|
|
@@ -41080,7 +41080,7 @@ function GX(e, t, n) {
|
|
|
41080
41080
|
e._fosterParentElement(n);
|
|
41081
41081
|
else {
|
|
41082
41082
|
const r = e.treeAdapter.getTagName(t), i = e.treeAdapter.getNamespaceURI(t);
|
|
41083
|
-
r ===
|
|
41083
|
+
r === x.TEMPLATE && i === Pe.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
|
|
41084
41084
|
}
|
|
41085
41085
|
}
|
|
41086
41086
|
function YX(e, t, n) {
|
|
@@ -41127,44 +41127,44 @@ function So(e, t) {
|
|
|
41127
41127
|
e._err(fn.missingDoctype, { beforeToken: !0 }), e.treeAdapter.setDocumentMode(e.document, Ga.DOCUMENT_MODE.QUIRKS), e.insertionMode = Zm, e._processToken(t);
|
|
41128
41128
|
}
|
|
41129
41129
|
function XX(e, t) {
|
|
41130
|
-
t.tagName ===
|
|
41130
|
+
t.tagName === x.HTML ? (e._insertElement(t, Pe.HTML), e.insertionMode = N1) : Xo(e, t);
|
|
41131
41131
|
}
|
|
41132
41132
|
function JX(e, t) {
|
|
41133
41133
|
const n = t.tagName;
|
|
41134
|
-
(n ===
|
|
41134
|
+
(n === x.HTML || n === x.HEAD || n === x.BODY || n === x.BR) && Xo(e, t);
|
|
41135
41135
|
}
|
|
41136
41136
|
function Xo(e, t) {
|
|
41137
41137
|
e._insertFakeRootElement(), e.insertionMode = N1, e._processToken(t);
|
|
41138
41138
|
}
|
|
41139
41139
|
function eJ(e, t) {
|
|
41140
41140
|
const n = t.tagName;
|
|
41141
|
-
n ===
|
|
41141
|
+
n === x.HTML ? jn(e, t) : n === x.HEAD ? (e._insertElement(t, Pe.HTML), e.headElement = e.openElements.current, e.insertionMode = no) : Jo(e, t);
|
|
41142
41142
|
}
|
|
41143
41143
|
function tJ(e, t) {
|
|
41144
41144
|
const n = t.tagName;
|
|
41145
|
-
n ===
|
|
41145
|
+
n === x.HEAD || n === x.BODY || n === x.HTML || n === x.BR ? Jo(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
|
|
41146
41146
|
}
|
|
41147
41147
|
function Jo(e, t) {
|
|
41148
|
-
e._insertFakeElement(
|
|
41148
|
+
e._insertFakeElement(x.HEAD), e.headElement = e.openElements.current, e.insertionMode = no, e._processToken(t);
|
|
41149
41149
|
}
|
|
41150
41150
|
function an(e, t) {
|
|
41151
41151
|
const n = t.tagName;
|
|
41152
|
-
n ===
|
|
41152
|
+
n === x.HTML ? jn(e, t) : n === x.BASE || n === x.BASEFONT || n === x.BGSOUND || n === x.LINK || n === x.META ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === x.TITLE ? e._switchToTextParsing(t, G.MODE.RCDATA) : n === x.NOSCRIPT ? e.options.scriptingEnabled ? e._switchToTextParsing(t, G.MODE.RAWTEXT) : (e._insertElement(t, Pe.HTML), e.insertionMode = aC) : n === x.NOFRAMES || n === x.STYLE ? e._switchToTextParsing(t, G.MODE.RAWTEXT) : n === x.SCRIPT ? e._switchToTextParsing(t, G.MODE.SCRIPT_DATA) : n === x.TEMPLATE ? (e._insertTemplate(t, Pe.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = Zc, e._pushTmplInsertionMode(Zc)) : n === x.HEAD ? e._err(fn.misplacedStartTagForHeadElement) : el(e, t);
|
|
41153
41153
|
}
|
|
41154
41154
|
function Ya(e, t) {
|
|
41155
41155
|
const n = t.tagName;
|
|
41156
|
-
n ===
|
|
41156
|
+
n === x.HEAD ? (e.openElements.pop(), e.insertionMode = I1) : n === x.BODY || n === x.BR || n === x.HTML ? el(e, t) : n === x.TEMPLATE && e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagName !== x.TEMPLATE && e._err(fn.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(x.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e._popTmplInsertionMode(), e._resetInsertionMode()) : e._err(fn.endTagWithoutMatchingOpenElement);
|
|
41157
41157
|
}
|
|
41158
41158
|
function el(e, t) {
|
|
41159
41159
|
e.openElements.pop(), e.insertionMode = I1, e._processToken(t);
|
|
41160
41160
|
}
|
|
41161
41161
|
function nJ(e, t) {
|
|
41162
41162
|
const n = t.tagName;
|
|
41163
|
-
n ===
|
|
41163
|
+
n === x.HTML ? jn(e, t) : n === x.BASEFONT || n === x.BGSOUND || n === x.HEAD || n === x.LINK || n === x.META || n === x.NOFRAMES || n === x.STYLE ? an(e, t) : n === x.NOSCRIPT ? e._err(fn.nestedNoscriptInHead) : tl(e, t);
|
|
41164
41164
|
}
|
|
41165
41165
|
function rJ(e, t) {
|
|
41166
41166
|
const n = t.tagName;
|
|
41167
|
-
n ===
|
|
41167
|
+
n === x.NOSCRIPT ? (e.openElements.pop(), e.insertionMode = no) : n === x.BR ? tl(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
|
|
41168
41168
|
}
|
|
41169
41169
|
function tl(e, t) {
|
|
41170
41170
|
const n = t.type === G.EOF_TOKEN ? fn.openElementsLeftAfterEof : fn.disallowedContentInNoscriptInHead;
|
|
@@ -41172,14 +41172,14 @@ function tl(e, t) {
|
|
|
41172
41172
|
}
|
|
41173
41173
|
function iJ(e, t) {
|
|
41174
41174
|
const n = t.tagName;
|
|
41175
|
-
n ===
|
|
41175
|
+
n === x.HTML ? jn(e, t) : n === x.BODY ? (e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode = Yr) : n === x.FRAMESET ? (e._insertElement(t, Pe.HTML), e.insertionMode = F1) : n === x.BASE || n === x.BASEFONT || n === x.BGSOUND || n === x.LINK || n === x.META || n === x.NOFRAMES || n === x.SCRIPT || n === x.STYLE || n === x.TEMPLATE || n === x.TITLE ? (e._err(fn.abandonedHeadElementChild), e.openElements.push(e.headElement), an(e, t), e.openElements.remove(e.headElement)) : n === x.HEAD ? e._err(fn.misplacedStartTagForHeadElement) : nl(e, t);
|
|
41176
41176
|
}
|
|
41177
41177
|
function aJ(e, t) {
|
|
41178
41178
|
const n = t.tagName;
|
|
41179
|
-
n ===
|
|
41179
|
+
n === x.BODY || n === x.HTML || n === x.BR ? nl(e, t) : n === x.TEMPLATE ? Ya(e, t) : e._err(fn.endTagWithoutMatchingOpenElement);
|
|
41180
41180
|
}
|
|
41181
41181
|
function nl(e, t) {
|
|
41182
|
-
e._insertFakeElement(
|
|
41182
|
+
e._insertFakeElement(x.BODY), e.insertionMode = Yr, e._processToken(t);
|
|
41183
41183
|
}
|
|
41184
41184
|
function ba(e, t) {
|
|
41185
41185
|
e._reconstructActiveFormattingElements(), e._insertCharacters(t);
|
|
@@ -41199,19 +41199,19 @@ function lJ(e, t) {
|
|
|
41199
41199
|
e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, Pe.HTML), e.insertionMode = F1);
|
|
41200
41200
|
}
|
|
41201
41201
|
function ci(e, t) {
|
|
41202
|
-
e.openElements.hasInButtonScope(
|
|
41202
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
|
|
41203
41203
|
}
|
|
41204
41204
|
function uJ(e, t) {
|
|
41205
|
-
e.openElements.hasInButtonScope(
|
|
41205
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement();
|
|
41206
41206
|
const n = e.openElements.currentTagName;
|
|
41207
|
-
(n ===
|
|
41207
|
+
(n === x.H1 || n === x.H2 || n === x.H3 || n === x.H4 || n === x.H5 || n === x.H6) && e.openElements.pop(), e._insertElement(t, Pe.HTML);
|
|
41208
41208
|
}
|
|
41209
41209
|
function X2(e, t) {
|
|
41210
|
-
e.openElements.hasInButtonScope(
|
|
41210
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
|
|
41211
41211
|
}
|
|
41212
41212
|
function cJ(e, t) {
|
|
41213
41213
|
const n = e.openElements.tmplCount > 0;
|
|
41214
|
-
(!e.formElement || n) && (e.openElements.hasInButtonScope(
|
|
41214
|
+
(!e.formElement || n) && (e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._insertElement(t, Pe.HTML), n || (e.formElement = e.openElements.current));
|
|
41215
41215
|
}
|
|
41216
41216
|
function dJ(e, t) {
|
|
41217
41217
|
e.framesetOk = !1;
|
|
@@ -41219,36 +41219,36 @@ function dJ(e, t) {
|
|
|
41219
41219
|
for (let r = e.openElements.stackTop; r >= 0; r--) {
|
|
41220
41220
|
const i = e.openElements.items[r], a = e.treeAdapter.getTagName(i);
|
|
41221
41221
|
let s = null;
|
|
41222
|
-
if (n ===
|
|
41222
|
+
if (n === x.LI && a === x.LI ? s = x.LI : (n === x.DD || n === x.DT) && (a === x.DD || a === x.DT) && (s = a), s) {
|
|
41223
41223
|
e.openElements.generateImpliedEndTagsWithExclusion(s), e.openElements.popUntilTagNamePopped(s);
|
|
41224
41224
|
break;
|
|
41225
41225
|
}
|
|
41226
|
-
if (a !==
|
|
41226
|
+
if (a !== x.ADDRESS && a !== x.DIV && a !== x.P && e._isSpecialElement(i))
|
|
41227
41227
|
break;
|
|
41228
41228
|
}
|
|
41229
|
-
e.openElements.hasInButtonScope(
|
|
41229
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
|
|
41230
41230
|
}
|
|
41231
41231
|
function fJ(e, t) {
|
|
41232
|
-
e.openElements.hasInButtonScope(
|
|
41232
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.tokenizer.state = G.MODE.PLAINTEXT;
|
|
41233
41233
|
}
|
|
41234
41234
|
function hJ(e, t) {
|
|
41235
|
-
e.openElements.hasInScope(
|
|
41235
|
+
e.openElements.hasInScope(x.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(x.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.framesetOk = !1;
|
|
41236
41236
|
}
|
|
41237
41237
|
function pJ(e, t) {
|
|
41238
|
-
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(
|
|
41238
|
+
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(x.A);
|
|
41239
41239
|
n && (Gi(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
41240
41240
|
}
|
|
41241
41241
|
function hs(e, t) {
|
|
41242
41242
|
e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
41243
41243
|
}
|
|
41244
41244
|
function mJ(e, t) {
|
|
41245
|
-
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(
|
|
41245
|
+
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(x.NOBR) && (Gi(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, Pe.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
41246
41246
|
}
|
|
41247
41247
|
function J2(e, t) {
|
|
41248
41248
|
e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
41249
41249
|
}
|
|
41250
41250
|
function gJ(e, t) {
|
|
41251
|
-
e.treeAdapter.getDocumentMode(e.document) !== Ga.DOCUMENT_MODE.QUIRKS && e.openElements.hasInButtonScope(
|
|
41251
|
+
e.treeAdapter.getDocumentMode(e.document) !== Ga.DOCUMENT_MODE.QUIRKS && e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode = pn;
|
|
41252
41252
|
}
|
|
41253
41253
|
function gs(e, t) {
|
|
41254
41254
|
e._reconstructActiveFormattingElements(), e._appendElement(t, Pe.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
@@ -41262,16 +41262,16 @@ function ey(e, t) {
|
|
|
41262
41262
|
e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0;
|
|
41263
41263
|
}
|
|
41264
41264
|
function yJ(e, t) {
|
|
41265
|
-
e.openElements.hasInButtonScope(
|
|
41265
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._appendElement(t, Pe.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
41266
41266
|
}
|
|
41267
41267
|
function EJ(e, t) {
|
|
41268
|
-
t.tagName =
|
|
41268
|
+
t.tagName = x.IMG, gs(e, t);
|
|
41269
41269
|
}
|
|
41270
41270
|
function bJ(e, t) {
|
|
41271
41271
|
e._insertElement(t, Pe.HTML), e.skipNextNewLine = !0, e.tokenizer.state = G.MODE.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = Yc;
|
|
41272
41272
|
}
|
|
41273
41273
|
function TJ(e, t) {
|
|
41274
|
-
e.openElements.hasInButtonScope(
|
|
41274
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, G.MODE.RAWTEXT);
|
|
41275
41275
|
}
|
|
41276
41276
|
function _J(e, t) {
|
|
41277
41277
|
e.framesetOk = !1, e._switchToTextParsing(t, G.MODE.RAWTEXT);
|
|
@@ -41283,16 +41283,16 @@ function CJ(e, t) {
|
|
|
41283
41283
|
e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML), e.framesetOk = !1, e.insertionMode === pn || e.insertionMode === P1 || e.insertionMode === dr || e.insertionMode === ki || e.insertionMode === R1 ? e.insertionMode = Xm : e.insertionMode = Qm;
|
|
41284
41284
|
}
|
|
41285
41285
|
function ny(e, t) {
|
|
41286
|
-
e.openElements.currentTagName ===
|
|
41286
|
+
e.openElements.currentTagName === x.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, Pe.HTML);
|
|
41287
41287
|
}
|
|
41288
41288
|
function ry(e, t) {
|
|
41289
|
-
e.openElements.hasInScope(
|
|
41289
|
+
e.openElements.hasInScope(x.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, Pe.HTML);
|
|
41290
41290
|
}
|
|
41291
41291
|
function xJ(e, t) {
|
|
41292
|
-
e.openElements.hasInScope(
|
|
41292
|
+
e.openElements.hasInScope(x.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(x.RTC), e._insertElement(t, Pe.HTML);
|
|
41293
41293
|
}
|
|
41294
41294
|
function wJ(e, t) {
|
|
41295
|
-
e.openElements.hasInButtonScope(
|
|
41295
|
+
e.openElements.hasInButtonScope(x.P) && e._closePElement(), e._insertElement(t, Pe.HTML);
|
|
41296
41296
|
}
|
|
41297
41297
|
function AJ(e, t) {
|
|
41298
41298
|
e._reconstructActiveFormattingElements(), qr.adjustTokenMathMLAttrs(t), qr.adjustTokenXMLAttrs(t), t.selfClosing ? e._appendElement(t, Pe.MATHML) : e._insertElement(t, Pe.MATHML), t.ackSelfClosing = !0;
|
|
@@ -41307,44 +41307,44 @@ function jn(e, t) {
|
|
|
41307
41307
|
const n = t.tagName;
|
|
41308
41308
|
switch (n.length) {
|
|
41309
41309
|
case 1:
|
|
41310
|
-
n ===
|
|
41310
|
+
n === x.I || n === x.S || n === x.B || n === x.U ? hs(e, t) : n === x.P ? ci(e, t) : n === x.A ? pJ(e, t) : tr(e, t);
|
|
41311
41311
|
break;
|
|
41312
41312
|
case 2:
|
|
41313
|
-
n ===
|
|
41313
|
+
n === x.DL || n === x.OL || n === x.UL ? ci(e, t) : n === x.H1 || n === x.H2 || n === x.H3 || n === x.H4 || n === x.H5 || n === x.H6 ? uJ(e, t) : n === x.LI || n === x.DD || n === x.DT ? dJ(e, t) : n === x.EM || n === x.TT ? hs(e, t) : n === x.BR ? gs(e, t) : n === x.HR ? yJ(e, t) : n === x.RB ? ry(e, t) : n === x.RT || n === x.RP ? xJ(e, t) : n !== x.TH && n !== x.TD && n !== x.TR && tr(e, t);
|
|
41314
41314
|
break;
|
|
41315
41315
|
case 3:
|
|
41316
|
-
n ===
|
|
41316
|
+
n === x.DIV || n === x.DIR || n === x.NAV ? ci(e, t) : n === x.PRE ? X2(e, t) : n === x.BIG ? hs(e, t) : n === x.IMG || n === x.WBR ? gs(e, t) : n === x.XMP ? TJ(e, t) : n === x.SVG ? SJ(e, t) : n === x.RTC ? ry(e, t) : n !== x.COL && tr(e, t);
|
|
41317
41317
|
break;
|
|
41318
41318
|
case 4:
|
|
41319
|
-
n ===
|
|
41319
|
+
n === x.HTML ? sJ(e, t) : n === x.BASE || n === x.LINK || n === x.META ? an(e, t) : n === x.BODY ? oJ(e, t) : n === x.MAIN || n === x.MENU ? ci(e, t) : n === x.FORM ? cJ(e, t) : n === x.CODE || n === x.FONT ? hs(e, t) : n === x.NOBR ? mJ(e, t) : n === x.AREA ? gs(e, t) : n === x.MATH ? AJ(e, t) : n === x.MENU ? wJ(e, t) : n !== x.HEAD && tr(e, t);
|
|
41320
41320
|
break;
|
|
41321
41321
|
case 5:
|
|
41322
|
-
n ===
|
|
41322
|
+
n === x.STYLE || n === x.TITLE ? an(e, t) : n === x.ASIDE ? ci(e, t) : n === x.SMALL ? hs(e, t) : n === x.TABLE ? gJ(e, t) : n === x.EMBED ? gs(e, t) : n === x.INPUT ? vJ(e, t) : n === x.PARAM || n === x.TRACK ? ey(e, t) : n === x.IMAGE ? EJ(e, t) : n !== x.FRAME && n !== x.TBODY && n !== x.TFOOT && n !== x.THEAD && tr(e, t);
|
|
41323
41323
|
break;
|
|
41324
41324
|
case 6:
|
|
41325
|
-
n ===
|
|
41325
|
+
n === x.SCRIPT ? an(e, t) : n === x.CENTER || n === x.FIGURE || n === x.FOOTER || n === x.HEADER || n === x.HGROUP || n === x.DIALOG ? ci(e, t) : n === x.BUTTON ? hJ(e, t) : n === x.STRIKE || n === x.STRONG ? hs(e, t) : n === x.APPLET || n === x.OBJECT ? J2(e, t) : n === x.KEYGEN ? gs(e, t) : n === x.SOURCE ? ey(e, t) : n === x.IFRAME ? _J(e, t) : n === x.SELECT ? CJ(e, t) : n === x.OPTION ? ny(e, t) : tr(e, t);
|
|
41326
41326
|
break;
|
|
41327
41327
|
case 7:
|
|
41328
|
-
n ===
|
|
41328
|
+
n === x.BGSOUND ? an(e, t) : n === x.DETAILS || n === x.ADDRESS || n === x.ARTICLE || n === x.SECTION || n === x.SUMMARY ? ci(e, t) : n === x.LISTING ? X2(e, t) : n === x.MARQUEE ? J2(e, t) : n === x.NOEMBED ? ty(e, t) : n !== x.CAPTION && tr(e, t);
|
|
41329
41329
|
break;
|
|
41330
41330
|
case 8:
|
|
41331
|
-
n ===
|
|
41331
|
+
n === x.BASEFONT ? an(e, t) : n === x.FRAMESET ? lJ(e, t) : n === x.FIELDSET ? ci(e, t) : n === x.TEXTAREA ? bJ(e, t) : n === x.TEMPLATE ? an(e, t) : n === x.NOSCRIPT ? e.options.scriptingEnabled ? ty(e, t) : tr(e, t) : n === x.OPTGROUP ? ny(e, t) : n !== x.COLGROUP && tr(e, t);
|
|
41332
41332
|
break;
|
|
41333
41333
|
case 9:
|
|
41334
|
-
n ===
|
|
41334
|
+
n === x.PLAINTEXT ? fJ(e, t) : tr(e, t);
|
|
41335
41335
|
break;
|
|
41336
41336
|
case 10:
|
|
41337
|
-
n ===
|
|
41337
|
+
n === x.BLOCKQUOTE || n === x.FIGCAPTION ? ci(e, t) : tr(e, t);
|
|
41338
41338
|
break;
|
|
41339
41339
|
default:
|
|
41340
41340
|
tr(e, t);
|
|
41341
41341
|
}
|
|
41342
41342
|
}
|
|
41343
41343
|
function kJ(e) {
|
|
41344
|
-
e.openElements.hasInScope(
|
|
41344
|
+
e.openElements.hasInScope(x.BODY) && (e.insertionMode = Jm);
|
|
41345
41345
|
}
|
|
41346
41346
|
function DJ(e, t) {
|
|
41347
|
-
e.openElements.hasInScope(
|
|
41347
|
+
e.openElements.hasInScope(x.BODY) && (e.insertionMode = Jm, e._processToken(t));
|
|
41348
41348
|
}
|
|
41349
41349
|
function zi(e, t) {
|
|
41350
41350
|
const n = t.tagName;
|
|
@@ -41352,13 +41352,13 @@ function zi(e, t) {
|
|
|
41352
41352
|
}
|
|
41353
41353
|
function OJ(e) {
|
|
41354
41354
|
const t = e.openElements.tmplCount > 0, n = e.formElement;
|
|
41355
|
-
t || (e.formElement = null), (n || t) && e.openElements.hasInScope(
|
|
41355
|
+
t || (e.formElement = null), (n || t) && e.openElements.hasInScope(x.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(x.FORM) : e.openElements.remove(n));
|
|
41356
41356
|
}
|
|
41357
41357
|
function NJ(e) {
|
|
41358
|
-
e.openElements.hasInButtonScope(
|
|
41358
|
+
e.openElements.hasInButtonScope(x.P) || e._insertFakeElement(x.P), e._closePElement();
|
|
41359
41359
|
}
|
|
41360
41360
|
function IJ(e) {
|
|
41361
|
-
e.openElements.hasInListItemScope(
|
|
41361
|
+
e.openElements.hasInListItemScope(x.LI) && (e.openElements.generateImpliedEndTagsWithExclusion(x.LI), e.openElements.popUntilTagNamePopped(x.LI));
|
|
41362
41362
|
}
|
|
41363
41363
|
function PJ(e, t) {
|
|
41364
41364
|
const n = t.tagName;
|
|
@@ -41372,7 +41372,7 @@ function iy(e, t) {
|
|
|
41372
41372
|
e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
|
|
41373
41373
|
}
|
|
41374
41374
|
function FJ(e) {
|
|
41375
|
-
e._reconstructActiveFormattingElements(), e._insertFakeElement(
|
|
41375
|
+
e._reconstructActiveFormattingElements(), e._insertFakeElement(x.BR), e.openElements.pop(), e.framesetOk = !1;
|
|
41376
41376
|
}
|
|
41377
41377
|
function Cr(e, t) {
|
|
41378
41378
|
const n = t.tagName;
|
|
@@ -41390,31 +41390,31 @@ function e0(e, t) {
|
|
|
41390
41390
|
const n = t.tagName;
|
|
41391
41391
|
switch (n.length) {
|
|
41392
41392
|
case 1:
|
|
41393
|
-
n ===
|
|
41393
|
+
n === x.A || n === x.B || n === x.I || n === x.S || n === x.U ? Gi(e, t) : n === x.P ? NJ(e) : Cr(e, t);
|
|
41394
41394
|
break;
|
|
41395
41395
|
case 2:
|
|
41396
|
-
n ===
|
|
41396
|
+
n === x.DL || n === x.UL || n === x.OL ? zi(e, t) : n === x.LI ? IJ(e) : n === x.DD || n === x.DT ? PJ(e, t) : n === x.H1 || n === x.H2 || n === x.H3 || n === x.H4 || n === x.H5 || n === x.H6 ? RJ(e) : n === x.BR ? FJ(e) : n === x.EM || n === x.TT ? Gi(e, t) : Cr(e, t);
|
|
41397
41397
|
break;
|
|
41398
41398
|
case 3:
|
|
41399
|
-
n ===
|
|
41399
|
+
n === x.BIG ? Gi(e, t) : n === x.DIR || n === x.DIV || n === x.NAV || n === x.PRE ? zi(e, t) : Cr(e, t);
|
|
41400
41400
|
break;
|
|
41401
41401
|
case 4:
|
|
41402
|
-
n ===
|
|
41402
|
+
n === x.BODY ? kJ(e) : n === x.HTML ? DJ(e, t) : n === x.FORM ? OJ(e) : n === x.CODE || n === x.FONT || n === x.NOBR ? Gi(e, t) : n === x.MAIN || n === x.MENU ? zi(e, t) : Cr(e, t);
|
|
41403
41403
|
break;
|
|
41404
41404
|
case 5:
|
|
41405
|
-
n ===
|
|
41405
|
+
n === x.ASIDE ? zi(e, t) : n === x.SMALL ? Gi(e, t) : Cr(e, t);
|
|
41406
41406
|
break;
|
|
41407
41407
|
case 6:
|
|
41408
|
-
n ===
|
|
41408
|
+
n === x.CENTER || n === x.FIGURE || n === x.FOOTER || n === x.HEADER || n === x.HGROUP || n === x.DIALOG ? zi(e, t) : n === x.APPLET || n === x.OBJECT ? iy(e, t) : n === x.STRIKE || n === x.STRONG ? Gi(e, t) : Cr(e, t);
|
|
41409
41409
|
break;
|
|
41410
41410
|
case 7:
|
|
41411
|
-
n ===
|
|
41411
|
+
n === x.ADDRESS || n === x.ARTICLE || n === x.DETAILS || n === x.SECTION || n === x.SUMMARY || n === x.LISTING ? zi(e, t) : n === x.MARQUEE ? iy(e, t) : Cr(e, t);
|
|
41412
41412
|
break;
|
|
41413
41413
|
case 8:
|
|
41414
|
-
n ===
|
|
41414
|
+
n === x.FIELDSET ? zi(e, t) : n === x.TEMPLATE ? Ya(e, t) : Cr(e, t);
|
|
41415
41415
|
break;
|
|
41416
41416
|
case 10:
|
|
41417
|
-
n ===
|
|
41417
|
+
n === x.BLOCKQUOTE || n === x.FIGCAPTION ? zi(e, t) : Cr(e, t);
|
|
41418
41418
|
break;
|
|
41419
41419
|
default:
|
|
41420
41420
|
Cr(e, t);
|
|
@@ -41424,14 +41424,14 @@ function di(e, t) {
|
|
|
41424
41424
|
e.tmplInsertionModeStackTop > -1 ? fC(e, t) : e.stopped = !0;
|
|
41425
41425
|
}
|
|
41426
41426
|
function BJ(e, t) {
|
|
41427
|
-
t.tagName ===
|
|
41427
|
+
t.tagName === x.SCRIPT && (e.pendingScript = e.openElements.current), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
|
|
41428
41428
|
}
|
|
41429
41429
|
function MJ(e, t) {
|
|
41430
41430
|
e._err(fn.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e._processToken(t);
|
|
41431
41431
|
}
|
|
41432
41432
|
function fi(e, t) {
|
|
41433
41433
|
const n = e.openElements.currentTagName;
|
|
41434
|
-
n ===
|
|
41434
|
+
n === x.TABLE || n === x.TBODY || n === x.TFOOT || n === x.THEAD || n === x.TR ? (e.pendingCharacterTokens = [], e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = sC, e._processToken(t)) : nr(e, t);
|
|
41435
41435
|
}
|
|
41436
41436
|
function LJ(e, t) {
|
|
41437
41437
|
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, Pe.HTML), e.insertionMode = P1;
|
|
@@ -41440,16 +41440,16 @@ function $J(e, t) {
|
|
|
41440
41440
|
e.openElements.clearBackToTableContext(), e._insertElement(t, Pe.HTML), e.insertionMode = Wl;
|
|
41441
41441
|
}
|
|
41442
41442
|
function jJ(e, t) {
|
|
41443
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(
|
|
41443
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(x.COLGROUP), e.insertionMode = Wl, e._processToken(t);
|
|
41444
41444
|
}
|
|
41445
41445
|
function HJ(e, t) {
|
|
41446
41446
|
e.openElements.clearBackToTableContext(), e._insertElement(t, Pe.HTML), e.insertionMode = dr;
|
|
41447
41447
|
}
|
|
41448
41448
|
function UJ(e, t) {
|
|
41449
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(
|
|
41449
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(x.TBODY), e.insertionMode = dr, e._processToken(t);
|
|
41450
41450
|
}
|
|
41451
41451
|
function zJ(e, t) {
|
|
41452
|
-
e.openElements.hasInTableScope(
|
|
41452
|
+
e.openElements.hasInTableScope(x.TABLE) && (e.openElements.popUntilTagNamePopped(x.TABLE), e._resetInsertionMode(), e._processToken(t));
|
|
41453
41453
|
}
|
|
41454
41454
|
function qJ(e, t) {
|
|
41455
41455
|
const n = G.getTokenAttr(t, nC.TYPE);
|
|
@@ -41462,25 +41462,25 @@ function t0(e, t) {
|
|
|
41462
41462
|
const n = t.tagName;
|
|
41463
41463
|
switch (n.length) {
|
|
41464
41464
|
case 2:
|
|
41465
|
-
n ===
|
|
41465
|
+
n === x.TD || n === x.TH || n === x.TR ? UJ(e, t) : nr(e, t);
|
|
41466
41466
|
break;
|
|
41467
41467
|
case 3:
|
|
41468
|
-
n ===
|
|
41468
|
+
n === x.COL ? jJ(e, t) : nr(e, t);
|
|
41469
41469
|
break;
|
|
41470
41470
|
case 4:
|
|
41471
|
-
n ===
|
|
41471
|
+
n === x.FORM ? WJ(e, t) : nr(e, t);
|
|
41472
41472
|
break;
|
|
41473
41473
|
case 5:
|
|
41474
|
-
n ===
|
|
41474
|
+
n === x.TABLE ? zJ(e, t) : n === x.STYLE ? an(e, t) : n === x.TBODY || n === x.TFOOT || n === x.THEAD ? HJ(e, t) : n === x.INPUT ? qJ(e, t) : nr(e, t);
|
|
41475
41475
|
break;
|
|
41476
41476
|
case 6:
|
|
41477
|
-
n ===
|
|
41477
|
+
n === x.SCRIPT ? an(e, t) : nr(e, t);
|
|
41478
41478
|
break;
|
|
41479
41479
|
case 7:
|
|
41480
|
-
n ===
|
|
41480
|
+
n === x.CAPTION ? LJ(e, t) : nr(e, t);
|
|
41481
41481
|
break;
|
|
41482
41482
|
case 8:
|
|
41483
|
-
n ===
|
|
41483
|
+
n === x.COLGROUP ? $J(e, t) : n === x.TEMPLATE ? an(e, t) : nr(e, t);
|
|
41484
41484
|
break;
|
|
41485
41485
|
default:
|
|
41486
41486
|
nr(e, t);
|
|
@@ -41488,7 +41488,7 @@ function t0(e, t) {
|
|
|
41488
41488
|
}
|
|
41489
41489
|
function n0(e, t) {
|
|
41490
41490
|
const n = t.tagName;
|
|
41491
|
-
n ===
|
|
41491
|
+
n === x.TABLE ? e.openElements.hasInTableScope(x.TABLE) && (e.openElements.popUntilTagNamePopped(x.TABLE), e._resetInsertionMode()) : n === x.TEMPLATE ? Ya(e, t) : n !== x.BODY && n !== x.CAPTION && n !== x.COL && n !== x.COLGROUP && n !== x.HTML && n !== x.TBODY && n !== x.TD && n !== x.TFOOT && n !== x.TH && n !== x.THEAD && n !== x.TR && nr(e, t);
|
|
41492
41492
|
}
|
|
41493
41493
|
function nr(e, t) {
|
|
41494
41494
|
const n = e.fosterParentingEnabled;
|
|
@@ -41512,70 +41512,70 @@ function ko(e, t) {
|
|
|
41512
41512
|
}
|
|
41513
41513
|
function GJ(e, t) {
|
|
41514
41514
|
const n = t.tagName;
|
|
41515
|
-
n ===
|
|
41515
|
+
n === x.CAPTION || n === x.COL || n === x.COLGROUP || n === x.TBODY || n === x.TD || n === x.TFOOT || n === x.TH || n === x.THEAD || n === x.TR ? e.openElements.hasInTableScope(x.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(x.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = pn, e._processToken(t)) : jn(e, t);
|
|
41516
41516
|
}
|
|
41517
41517
|
function YJ(e, t) {
|
|
41518
41518
|
const n = t.tagName;
|
|
41519
|
-
n ===
|
|
41519
|
+
n === x.CAPTION || n === x.TABLE ? e.openElements.hasInTableScope(x.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(x.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = pn, n === x.TABLE && e._processToken(t)) : n !== x.BODY && n !== x.COL && n !== x.COLGROUP && n !== x.HTML && n !== x.TBODY && n !== x.TD && n !== x.TFOOT && n !== x.TH && n !== x.THEAD && n !== x.TR && e0(e, t);
|
|
41520
41520
|
}
|
|
41521
41521
|
function ZJ(e, t) {
|
|
41522
41522
|
const n = t.tagName;
|
|
41523
|
-
n ===
|
|
41523
|
+
n === x.HTML ? jn(e, t) : n === x.COL ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === x.TEMPLATE ? an(e, t) : Qc(e, t);
|
|
41524
41524
|
}
|
|
41525
41525
|
function QJ(e, t) {
|
|
41526
41526
|
const n = t.tagName;
|
|
41527
|
-
n ===
|
|
41527
|
+
n === x.COLGROUP ? e.openElements.currentTagName === x.COLGROUP && (e.openElements.pop(), e.insertionMode = pn) : n === x.TEMPLATE ? Ya(e, t) : n !== x.COL && Qc(e, t);
|
|
41528
41528
|
}
|
|
41529
41529
|
function Qc(e, t) {
|
|
41530
|
-
e.openElements.currentTagName ===
|
|
41530
|
+
e.openElements.currentTagName === x.COLGROUP && (e.openElements.pop(), e.insertionMode = pn, e._processToken(t));
|
|
41531
41531
|
}
|
|
41532
41532
|
function XJ(e, t) {
|
|
41533
41533
|
const n = t.tagName;
|
|
41534
|
-
n ===
|
|
41534
|
+
n === x.TR ? (e.openElements.clearBackToTableBodyContext(), e._insertElement(t, Pe.HTML), e.insertionMode = ki) : n === x.TH || n === x.TD ? (e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(x.TR), e.insertionMode = ki, e._processToken(t)) : n === x.CAPTION || n === x.COL || n === x.COLGROUP || n === x.TBODY || n === x.TFOOT || n === x.THEAD ? e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn, e._processToken(t)) : t0(e, t);
|
|
41535
41535
|
}
|
|
41536
41536
|
function JJ(e, t) {
|
|
41537
41537
|
const n = t.tagName;
|
|
41538
|
-
n ===
|
|
41538
|
+
n === x.TBODY || n === x.TFOOT || n === x.THEAD ? e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn) : n === x.TABLE ? e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = pn, e._processToken(t)) : (n !== x.BODY && n !== x.CAPTION && n !== x.COL && n !== x.COLGROUP || n !== x.HTML && n !== x.TD && n !== x.TH && n !== x.TR) && n0(e, t);
|
|
41539
41539
|
}
|
|
41540
41540
|
function eee(e, t) {
|
|
41541
41541
|
const n = t.tagName;
|
|
41542
|
-
n ===
|
|
41542
|
+
n === x.TH || n === x.TD ? (e.openElements.clearBackToTableRowContext(), e._insertElement(t, Pe.HTML), e.insertionMode = R1, e.activeFormattingElements.insertMarker()) : n === x.CAPTION || n === x.COL || n === x.COLGROUP || n === x.TBODY || n === x.TFOOT || n === x.THEAD || n === x.TR ? e.openElements.hasInTableScope(x.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = dr, e._processToken(t)) : t0(e, t);
|
|
41543
41543
|
}
|
|
41544
41544
|
function tee(e, t) {
|
|
41545
41545
|
const n = t.tagName;
|
|
41546
|
-
n ===
|
|
41546
|
+
n === x.TR ? e.openElements.hasInTableScope(x.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = dr) : n === x.TABLE ? e.openElements.hasInTableScope(x.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = dr, e._processToken(t)) : n === x.TBODY || n === x.TFOOT || n === x.THEAD ? (e.openElements.hasInTableScope(n) || e.openElements.hasInTableScope(x.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = dr, e._processToken(t)) : (n !== x.BODY && n !== x.CAPTION && n !== x.COL && n !== x.COLGROUP || n !== x.HTML && n !== x.TD && n !== x.TH) && n0(e, t);
|
|
41547
41547
|
}
|
|
41548
41548
|
function nee(e, t) {
|
|
41549
41549
|
const n = t.tagName;
|
|
41550
|
-
n ===
|
|
41550
|
+
n === x.CAPTION || n === x.COL || n === x.COLGROUP || n === x.TBODY || n === x.TD || n === x.TFOOT || n === x.TH || n === x.THEAD || n === x.TR ? (e.openElements.hasInTableScope(x.TD) || e.openElements.hasInTableScope(x.TH)) && (e._closeTableCell(), e._processToken(t)) : jn(e, t);
|
|
41551
41551
|
}
|
|
41552
41552
|
function ree(e, t) {
|
|
41553
41553
|
const n = t.tagName;
|
|
41554
|
-
n ===
|
|
41554
|
+
n === x.TD || n === x.TH ? e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = ki) : n === x.TABLE || n === x.TBODY || n === x.TFOOT || n === x.THEAD || n === x.TR ? e.openElements.hasInTableScope(n) && (e._closeTableCell(), e._processToken(t)) : n !== x.BODY && n !== x.CAPTION && n !== x.COL && n !== x.COLGROUP && n !== x.HTML && e0(e, t);
|
|
41555
41555
|
}
|
|
41556
41556
|
function cC(e, t) {
|
|
41557
41557
|
const n = t.tagName;
|
|
41558
|
-
n ===
|
|
41558
|
+
n === x.HTML ? jn(e, t) : n === x.OPTION ? (e.openElements.currentTagName === x.OPTION && e.openElements.pop(), e._insertElement(t, Pe.HTML)) : n === x.OPTGROUP ? (e.openElements.currentTagName === x.OPTION && e.openElements.pop(), e.openElements.currentTagName === x.OPTGROUP && e.openElements.pop(), e._insertElement(t, Pe.HTML)) : n === x.INPUT || n === x.KEYGEN || n === x.TEXTAREA || n === x.SELECT ? e.openElements.hasInSelectScope(x.SELECT) && (e.openElements.popUntilTagNamePopped(x.SELECT), e._resetInsertionMode(), n !== x.SELECT && e._processToken(t)) : (n === x.SCRIPT || n === x.TEMPLATE) && an(e, t);
|
|
41559
41559
|
}
|
|
41560
41560
|
function dC(e, t) {
|
|
41561
41561
|
const n = t.tagName;
|
|
41562
|
-
if (n ===
|
|
41562
|
+
if (n === x.OPTGROUP) {
|
|
41563
41563
|
const r = e.openElements.items[e.openElements.stackTop - 1], i = r && e.treeAdapter.getTagName(r);
|
|
41564
|
-
e.openElements.currentTagName ===
|
|
41564
|
+
e.openElements.currentTagName === x.OPTION && i === x.OPTGROUP && e.openElements.pop(), e.openElements.currentTagName === x.OPTGROUP && e.openElements.pop();
|
|
41565
41565
|
} else
|
|
41566
|
-
n ===
|
|
41566
|
+
n === x.OPTION ? e.openElements.currentTagName === x.OPTION && e.openElements.pop() : n === x.SELECT && e.openElements.hasInSelectScope(x.SELECT) ? (e.openElements.popUntilTagNamePopped(x.SELECT), e._resetInsertionMode()) : n === x.TEMPLATE && Ya(e, t);
|
|
41567
41567
|
}
|
|
41568
41568
|
function iee(e, t) {
|
|
41569
41569
|
const n = t.tagName;
|
|
41570
|
-
n ===
|
|
41570
|
+
n === x.CAPTION || n === x.TABLE || n === x.TBODY || n === x.TFOOT || n === x.THEAD || n === x.TR || n === x.TD || n === x.TH ? (e.openElements.popUntilTagNamePopped(x.SELECT), e._resetInsertionMode(), e._processToken(t)) : cC(e, t);
|
|
41571
41571
|
}
|
|
41572
41572
|
function aee(e, t) {
|
|
41573
41573
|
const n = t.tagName;
|
|
41574
|
-
n ===
|
|
41574
|
+
n === x.CAPTION || n === x.TABLE || n === x.TBODY || n === x.TFOOT || n === x.THEAD || n === x.TR || n === x.TD || n === x.TH ? e.openElements.hasInTableScope(n) && (e.openElements.popUntilTagNamePopped(x.SELECT), e._resetInsertionMode(), e._processToken(t)) : dC(e, t);
|
|
41575
41575
|
}
|
|
41576
41576
|
function see(e, t) {
|
|
41577
41577
|
const n = t.tagName;
|
|
41578
|
-
if (n ===
|
|
41578
|
+
if (n === x.BASE || n === x.BASEFONT || n === x.BGSOUND || n === x.LINK || n === x.META || n === x.NOFRAMES || n === x.SCRIPT || n === x.STYLE || n === x.TEMPLATE || n === x.TITLE)
|
|
41579
41579
|
an(e, t);
|
|
41580
41580
|
else {
|
|
41581
41581
|
const r = HX[n] || Yr;
|
|
@@ -41583,43 +41583,43 @@ function see(e, t) {
|
|
|
41583
41583
|
}
|
|
41584
41584
|
}
|
|
41585
41585
|
function oee(e, t) {
|
|
41586
|
-
t.tagName ===
|
|
41586
|
+
t.tagName === x.TEMPLATE && Ya(e, t);
|
|
41587
41587
|
}
|
|
41588
41588
|
function fC(e, t) {
|
|
41589
|
-
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(
|
|
41589
|
+
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(x.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e._popTmplInsertionMode(), e._resetInsertionMode(), e._processToken(t)) : e.stopped = !0;
|
|
41590
41590
|
}
|
|
41591
41591
|
function lee(e, t) {
|
|
41592
|
-
t.tagName ===
|
|
41592
|
+
t.tagName === x.HTML ? jn(e, t) : Xc(e, t);
|
|
41593
41593
|
}
|
|
41594
41594
|
function uee(e, t) {
|
|
41595
|
-
t.tagName ===
|
|
41595
|
+
t.tagName === x.HTML ? e.fragmentContext || (e.insertionMode = lC) : Xc(e, t);
|
|
41596
41596
|
}
|
|
41597
41597
|
function Xc(e, t) {
|
|
41598
41598
|
e.insertionMode = Yr, e._processToken(t);
|
|
41599
41599
|
}
|
|
41600
41600
|
function cee(e, t) {
|
|
41601
41601
|
const n = t.tagName;
|
|
41602
|
-
n ===
|
|
41602
|
+
n === x.HTML ? jn(e, t) : n === x.FRAMESET ? e._insertElement(t, Pe.HTML) : n === x.FRAME ? (e._appendElement(t, Pe.HTML), t.ackSelfClosing = !0) : n === x.NOFRAMES && an(e, t);
|
|
41603
41603
|
}
|
|
41604
41604
|
function dee(e, t) {
|
|
41605
|
-
t.tagName ===
|
|
41605
|
+
t.tagName === x.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagName !== x.FRAMESET && (e.insertionMode = oC));
|
|
41606
41606
|
}
|
|
41607
41607
|
function fee(e, t) {
|
|
41608
41608
|
const n = t.tagName;
|
|
41609
|
-
n ===
|
|
41609
|
+
n === x.HTML ? jn(e, t) : n === x.NOFRAMES && an(e, t);
|
|
41610
41610
|
}
|
|
41611
41611
|
function hee(e, t) {
|
|
41612
|
-
t.tagName ===
|
|
41612
|
+
t.tagName === x.HTML && (e.insertionMode = uC);
|
|
41613
41613
|
}
|
|
41614
41614
|
function pee(e, t) {
|
|
41615
|
-
t.tagName ===
|
|
41615
|
+
t.tagName === x.HTML ? jn(e, t) : _c(e, t);
|
|
41616
41616
|
}
|
|
41617
41617
|
function _c(e, t) {
|
|
41618
41618
|
e.insertionMode = Yr, e._processToken(t);
|
|
41619
41619
|
}
|
|
41620
41620
|
function mee(e, t) {
|
|
41621
41621
|
const n = t.tagName;
|
|
41622
|
-
n ===
|
|
41622
|
+
n === x.HTML ? jn(e, t) : n === x.NOFRAMES && an(e, t);
|
|
41623
41623
|
}
|
|
41624
41624
|
function gee(e, t) {
|
|
41625
41625
|
t.chars = BX.REPLACEMENT_CHARACTER, e._insertCharacters(t);
|
|
@@ -44671,7 +44671,7 @@ function Yte(e) {
|
|
|
44671
44671
|
}))) : null;
|
|
44672
44672
|
}
|
|
44673
44673
|
function Zte(e) {
|
|
44674
|
-
var t, n, r, i, a, s, o, l, u, c, d, f, p, g, m, y, v, E, b, _, T = e.notificationData, C = e.handleActionClick, A = de(!1), R = A[0], P = A[1], L = de(!1), I = L[0], N = L[1], S = de(!1), F = S[0], H = S[1], q = T.message, O = T.seen_on, J = T.created_on, X = fa(), k = X.notificationComponent,
|
|
44674
|
+
var t, n, r, i, a, s, o, l, u, c, d, f, p, g, m, y, v, E, b, _, T = e.notificationData, C = e.handleActionClick, A = de(!1), R = A[0], P = A[1], L = de(!1), I = L[0], N = L[1], S = de(!1), F = S[0], H = S[1], q = T.message, O = T.seen_on, J = T.created_on, X = fa(), k = X.notificationComponent, w = X.hideAvatar, Z = X.inbox, B = X.themeType, j = X.primaryActionClickHandler, z = X.secondaryActionClickHandler, U = Qa(), $ = U.notification, ae = ($ == null || (t = $.bodyText) === null || t === void 0 ? void 0 : t.tableBorderColor) || "rgba(100, 116, 139, 0.3)", Y = ($ == null || (n = $.bodyText) === null || n === void 0 ? void 0 : n.blockquoteColor) || "rgba(100, 116, 139, 0.3)", te = ($ == null || (r = $.bodyText) === null || r === void 0 ? void 0 : r.linkColor) || Ke.primary, se = q == null || (i = q.actions) === null || i === void 0 ? void 0 : i[0], re = q == null || (a = q.actions) === null || a === void 0 ? void 0 : a[1], Ae = se || re;
|
|
44675
44675
|
if (me(function() {
|
|
44676
44676
|
var Ce, ue = $C(q == null || (Ce = q.avatar) === null || Ce === void 0 ? void 0 : Ce.avatar_url);
|
|
44677
44677
|
ue.then(function(he) {
|
|
@@ -44693,7 +44693,7 @@ function Zte(e) {
|
|
|
44693
44693
|
});
|
|
44694
44694
|
}
|
|
44695
44695
|
return /* @__PURE__ */ M.createElement(Qte, {
|
|
44696
|
-
style:
|
|
44696
|
+
style: $ == null ? void 0 : $.container,
|
|
44697
44697
|
read: !!O,
|
|
44698
44698
|
onMouseEnter: function() {
|
|
44699
44699
|
N(!0), H(!1);
|
|
@@ -44705,15 +44705,15 @@ function Zte(e) {
|
|
|
44705
44705
|
F && (ue.stopPropagation(), H(!1));
|
|
44706
44706
|
}
|
|
44707
44707
|
}, T.is_pinned && /* @__PURE__ */ M.createElement(Xte, {
|
|
44708
|
-
hideAvatar:
|
|
44708
|
+
hideAvatar: w
|
|
44709
44709
|
}, /* @__PURE__ */ M.createElement(Wte, {
|
|
44710
|
-
style:
|
|
44710
|
+
style: $ == null ? void 0 : $.pinnedIcon
|
|
44711
44711
|
}), /* @__PURE__ */ M.createElement(Jte, {
|
|
44712
|
-
style:
|
|
44712
|
+
style: $ == null ? void 0 : $.pinnedText
|
|
44713
44713
|
}, "Pinned")), /* @__PURE__ */ M.createElement(rne, null, /* @__PURE__ */ M.createElement(dne, null, /* @__PURE__ */ M.createElement(fne, null, /* @__PURE__ */ M.createElement(sne, {
|
|
44714
|
-
style:
|
|
44714
|
+
style: $ == null ? void 0 : $.unseenDot,
|
|
44715
44715
|
show: !O
|
|
44716
|
-
}), !
|
|
44716
|
+
}), !w && /* @__PURE__ */ M.createElement(hne, {
|
|
44717
44717
|
onClick: function(ue) {
|
|
44718
44718
|
var he = q == null ? void 0 : q.avatar;
|
|
44719
44719
|
C(ue, {
|
|
@@ -44725,13 +44725,13 @@ function Zte(e) {
|
|
|
44725
44725
|
}, q != null && (s = q.avatar) !== null && s !== void 0 && s.avatar_url && R ? /* @__PURE__ */ M.createElement(gne, {
|
|
44726
44726
|
src: q.avatar.avatar_url,
|
|
44727
44727
|
alt: "avatar",
|
|
44728
|
-
style:
|
|
44728
|
+
style: $ == null ? void 0 : $.avatar
|
|
44729
44729
|
}) : /* @__PURE__ */ M.createElement(HC, {
|
|
44730
44730
|
type: B
|
|
44731
44731
|
}))), /* @__PURE__ */ M.createElement(pne, null, q.header && /* @__PURE__ */ M.createElement(ine, {
|
|
44732
|
-
style:
|
|
44732
|
+
style: $ == null ? void 0 : $.headerText
|
|
44733
44733
|
}, q.header), /* @__PURE__ */ M.createElement(ane, {
|
|
44734
|
-
style:
|
|
44734
|
+
style: $ == null ? void 0 : $.bodyText
|
|
44735
44735
|
}, /* @__PURE__ */ M.createElement(g_, {
|
|
44736
44736
|
remarkPlugins: [j_],
|
|
44737
44737
|
rehypePlugins: [OC],
|
|
@@ -44815,7 +44815,7 @@ function Zte(e) {
|
|
|
44815
44815
|
style: et({
|
|
44816
44816
|
textAlign: "left",
|
|
44817
44817
|
whiteSpace: "nowrap",
|
|
44818
|
-
border: "1px solid " +
|
|
44818
|
+
border: "1px solid " + ae,
|
|
44819
44819
|
padding: 5
|
|
44820
44820
|
}, Se || {})
|
|
44821
44821
|
}, he);
|
|
@@ -44824,7 +44824,7 @@ function Zte(e) {
|
|
|
44824
44824
|
var he = ue.children, Se = ue.style;
|
|
44825
44825
|
return /* @__PURE__ */ M.createElement("td", {
|
|
44826
44826
|
style: et({
|
|
44827
|
-
border: "1px solid " +
|
|
44827
|
+
border: "1px solid " + ae,
|
|
44828
44828
|
padding: 5
|
|
44829
44829
|
}, Se || {})
|
|
44830
44830
|
}, he);
|
|
@@ -44899,26 +44899,26 @@ function Zte(e) {
|
|
|
44899
44899
|
});
|
|
44900
44900
|
}
|
|
44901
44901
|
}, /* @__PURE__ */ M.createElement(ene, {
|
|
44902
|
-
style:
|
|
44902
|
+
style: $ == null ? void 0 : $.subtext
|
|
44903
44903
|
}, q.subtext.text)), T.expiry && (T == null ? void 0 : T.is_expiry_visible) && /* @__PURE__ */ M.createElement(Yte, {
|
|
44904
44904
|
dateInput: T.expiry,
|
|
44905
|
-
style:
|
|
44906
|
-
}), Ae && /* @__PURE__ */ M.createElement(lne, null,
|
|
44907
|
-
style:
|
|
44908
|
-
key:
|
|
44905
|
+
style: $ == null ? void 0 : $.expiresText
|
|
44906
|
+
}), Ae && /* @__PURE__ */ M.createElement(lne, null, se && /* @__PURE__ */ M.createElement(UC, {
|
|
44907
|
+
style: $ == null || (f = $.actions) === null || f === void 0 || (p = f[0]) === null || p === void 0 ? void 0 : p.container,
|
|
44908
|
+
key: se.id,
|
|
44909
44909
|
onClick: function(ue) {
|
|
44910
44910
|
C(ue, {
|
|
44911
44911
|
type: "primary_action_button",
|
|
44912
|
-
url:
|
|
44913
|
-
target:
|
|
44914
|
-
customClickHandler:
|
|
44912
|
+
url: se.url,
|
|
44913
|
+
target: se.open_in_new_tab,
|
|
44914
|
+
customClickHandler: j
|
|
44915
44915
|
});
|
|
44916
44916
|
}
|
|
44917
44917
|
}, /* @__PURE__ */ M.createElement(zC, {
|
|
44918
|
-
style:
|
|
44919
|
-
},
|
|
44918
|
+
style: $ == null || (g = $.actions) === null || g === void 0 || (m = g[0]) === null || m === void 0 ? void 0 : m.text
|
|
44919
|
+
}, se.name)), re && /* @__PURE__ */ M.createElement(une, {
|
|
44920
44920
|
key: re.id,
|
|
44921
|
-
style:
|
|
44921
|
+
style: $ == null || (y = $.actions) === null || y === void 0 || (v = y[1]) === null || v === void 0 ? void 0 : v.container,
|
|
44922
44922
|
onClick: function(ue) {
|
|
44923
44923
|
C(ue, {
|
|
44924
44924
|
type: "secondary_action_button",
|
|
@@ -44928,9 +44928,9 @@ function Zte(e) {
|
|
|
44928
44928
|
});
|
|
44929
44929
|
}
|
|
44930
44930
|
}, /* @__PURE__ */ M.createElement(cne, {
|
|
44931
|
-
style:
|
|
44931
|
+
style: $ == null || (E = $.actions) === null || E === void 0 || (b = E[1]) === null || b === void 0 ? void 0 : b.text
|
|
44932
44932
|
}, re.name))))), /* @__PURE__ */ M.createElement(mne, null, /* @__PURE__ */ M.createElement(one, {
|
|
44933
|
-
style:
|
|
44933
|
+
style: $ == null ? void 0 : $.createdOnText
|
|
44934
44934
|
}, /* @__PURE__ */ M.createElement(NC, {
|
|
44935
44935
|
date: J,
|
|
44936
44936
|
live: !1,
|
|
@@ -44938,44 +44938,44 @@ function Zte(e) {
|
|
|
44938
44938
|
})), /* @__PURE__ */ M.createElement(yne, {
|
|
44939
44939
|
showMore: I
|
|
44940
44940
|
}, /* @__PURE__ */ M.createElement(Ene, {
|
|
44941
|
-
hoverBGColor:
|
|
44941
|
+
hoverBGColor: $ == null || (_ = $.actionsMenuIcon) === null || _ === void 0 ? void 0 : _.hoverBackgroundColor,
|
|
44942
44942
|
onClick: function(ue) {
|
|
44943
44943
|
ue.stopPropagation(), H(function(he) {
|
|
44944
44944
|
return !he;
|
|
44945
44945
|
});
|
|
44946
44946
|
}
|
|
44947
44947
|
}, /* @__PURE__ */ M.createElement(qte, {
|
|
44948
|
-
style:
|
|
44948
|
+
style: $ == null ? void 0 : $.actionsMenuIcon
|
|
44949
44949
|
})), /* @__PURE__ */ M.createElement(vne, {
|
|
44950
44950
|
moreOpen: F,
|
|
44951
|
-
style:
|
|
44951
|
+
style: $ == null ? void 0 : $.actionsMenu
|
|
44952
44952
|
}, T.seen_on ? /* @__PURE__ */ M.createElement(Wf, {
|
|
44953
|
-
style:
|
|
44953
|
+
style: $ == null ? void 0 : $.actionsMenuItem,
|
|
44954
44954
|
onClick: function(ue) {
|
|
44955
44955
|
ue.stopPropagation(), Z.feed.markUnRead(T.n_id), H(!1);
|
|
44956
44956
|
}
|
|
44957
44957
|
}, /* @__PURE__ */ M.createElement(Vte, {
|
|
44958
|
-
style:
|
|
44958
|
+
style: $ == null ? void 0 : $.actionsMenuItemIcon
|
|
44959
44959
|
}), /* @__PURE__ */ M.createElement(Vf, {
|
|
44960
|
-
style:
|
|
44960
|
+
style: $ == null ? void 0 : $.actionsMenuItemText
|
|
44961
44961
|
}, "Mark as unread")) : /* @__PURE__ */ M.createElement(Wf, {
|
|
44962
|
-
style:
|
|
44962
|
+
style: $ == null ? void 0 : $.actionsMenuItem,
|
|
44963
44963
|
onClick: function(ue) {
|
|
44964
44964
|
ue.stopPropagation(), Z.feed.markRead(T.n_id), H(!1);
|
|
44965
44965
|
}
|
|
44966
44966
|
}, /* @__PURE__ */ M.createElement(Kte, {
|
|
44967
|
-
style:
|
|
44967
|
+
style: $ == null ? void 0 : $.actionsMenuItemIcon
|
|
44968
44968
|
}), /* @__PURE__ */ M.createElement(Vf, {
|
|
44969
|
-
style:
|
|
44969
|
+
style: $ == null ? void 0 : $.actionsMenuItemText
|
|
44970
44970
|
}, "Mark as read")), !(T != null && T.archived) && /* @__PURE__ */ M.createElement(Wf, {
|
|
44971
|
-
style:
|
|
44971
|
+
style: $ == null ? void 0 : $.actionsMenuItem,
|
|
44972
44972
|
onClick: function(ue) {
|
|
44973
44973
|
ue.stopPropagation(), Z.feed.markArchived(T.n_id);
|
|
44974
44974
|
}
|
|
44975
44975
|
}, /* @__PURE__ */ M.createElement(Gte, {
|
|
44976
|
-
style:
|
|
44976
|
+
style: $ == null ? void 0 : $.actionsMenuItemIcon
|
|
44977
44977
|
}), /* @__PURE__ */ M.createElement(Vf, {
|
|
44978
|
-
style:
|
|
44978
|
+
style: $ == null ? void 0 : $.actionsMenuItemText
|
|
44979
44979
|
}, "Archive")))))));
|
|
44980
44980
|
}
|
|
44981
44981
|
var Qte = Fe.div(Ay || (Ay = Be([`
|
|
@@ -45812,20 +45812,20 @@ sn({
|
|
|
45812
45812
|
notificationsData: ire
|
|
45813
45813
|
});
|
|
45814
45814
|
function are(e) {
|
|
45815
|
-
var t = e.workspaceKey, n = t === void 0 ? "" : t, r = e.tenantId, i = r === void 0 ? "" : r, a = e.distinctId, s = a === void 0 ? "" : a, o = e.subscriberId, l = o === void 0 ? "" : o, u = e.inboxId, c = u === void 0 ? "" : u, d = e.stores, f = e.toastProps, p = e.notificationClickHandler, g = e.primaryActionClickHandler, m = e.secondaryActionClickHandler, y = e.bellComponent, v = e.badgeComponent, E = e.notificationComponent, b = e.noNotificationsComponent, _ = e.loaderComponent, T = e.tabBadgeComponent, C = e.headerRightComponent, A = e.hideAvatar, R = A === void 0 ? !1 : A, P = e.hideInbox, L = e.hideToast, I = e.theme, N = e.themeType, S = N === void 0 ? "light" : N, F = e.pagination, H = F === void 0 ? !0 : F, q = e.pageSize, O = e.popperPosition, J = O === void 0 ? "bottom" : O, X = e.showUnreadCountOnTabs, k = X === void 0 ? !0 : X,
|
|
45815
|
+
var t = e.workspaceKey, n = t === void 0 ? "" : t, r = e.tenantId, i = r === void 0 ? "" : r, a = e.distinctId, s = a === void 0 ? "" : a, o = e.subscriberId, l = o === void 0 ? "" : o, u = e.inboxId, c = u === void 0 ? "" : u, d = e.stores, f = e.toastProps, p = e.notificationClickHandler, g = e.primaryActionClickHandler, m = e.secondaryActionClickHandler, y = e.bellComponent, v = e.badgeComponent, E = e.notificationComponent, b = e.noNotificationsComponent, _ = e.loaderComponent, T = e.tabBadgeComponent, C = e.headerRightComponent, A = e.hideAvatar, R = A === void 0 ? !1 : A, P = e.hideInbox, L = e.hideToast, I = e.theme, N = e.themeType, S = N === void 0 ? "light" : N, F = e.pagination, H = F === void 0 ? !0 : F, q = e.pageSize, O = e.popperPosition, J = O === void 0 ? "bottom" : O, X = e.showUnreadCountOnTabs, k = X === void 0 ? !0 : X, w = e.host;
|
|
45816
45816
|
c && (l = c);
|
|
45817
|
-
var Z = de(!1), B = Z[0],
|
|
45817
|
+
var Z = de(!1), B = Z[0], j = Z[1], z = de(), U = z[0], $ = z[1], ae = de({
|
|
45818
45818
|
storeData: {},
|
|
45819
45819
|
count: 0
|
|
45820
|
-
}), Y =
|
|
45820
|
+
}), Y = ae[0], te = ae[1], se = de(""), re = se[0], Ae = se[1], Oe = de(!1), Ce = Oe[0], ue = Oe[1];
|
|
45821
45821
|
me(function() {
|
|
45822
45822
|
var Se = new qF(n, {
|
|
45823
45823
|
pageSize: q,
|
|
45824
45824
|
tenantID: i,
|
|
45825
45825
|
stores: d,
|
|
45826
|
-
host:
|
|
45826
|
+
host: w
|
|
45827
45827
|
});
|
|
45828
|
-
return
|
|
45828
|
+
return $(Se), Se.emitter.on("sync_notif_store", function() {
|
|
45829
45829
|
var Re = Se.feed.data;
|
|
45830
45830
|
te({
|
|
45831
45831
|
storeData: (Re == null ? void 0 : Re.stores) || {},
|
|
@@ -45870,7 +45870,7 @@ function are(e) {
|
|
|
45870
45870
|
noNotificationsComponent: b,
|
|
45871
45871
|
tabBadgeComponent: T,
|
|
45872
45872
|
headerRightComponent: C,
|
|
45873
|
-
toggleInbox:
|
|
45873
|
+
toggleInbox: j,
|
|
45874
45874
|
inbox: U,
|
|
45875
45875
|
loaderComponent: _,
|
|
45876
45876
|
pagination: H,
|
|
@@ -45884,7 +45884,7 @@ function are(e) {
|
|
|
45884
45884
|
}
|
|
45885
45885
|
}, !P && /* @__PURE__ */ M.createElement(Vne, {
|
|
45886
45886
|
openInbox: B,
|
|
45887
|
-
toggleInbox:
|
|
45887
|
+
toggleInbox: j,
|
|
45888
45888
|
popperPosition: J
|
|
45889
45889
|
}), !L && /* @__PURE__ */ M.createElement(tre, f)));
|
|
45890
45890
|
}
|
|
@@ -46641,21 +46641,21 @@ const qC = ({
|
|
|
46641
46641
|
] }), S = window.location.pathname.match(
|
|
46642
46642
|
new RegExp("(courses/[^/]+/[^/]+|microcourses/[^/]+/[^/]+)")
|
|
46643
46643
|
), F = (O) => {
|
|
46644
|
-
|
|
46645
|
-
|
|
46646
|
-
|
|
46644
|
+
var j;
|
|
46645
|
+
const [J, X] = O.split("?"), k = new URLSearchParams(X || ""), Z = new URLSearchParams(window.location.search).get("ref");
|
|
46646
|
+
if (k.set("ref", Z || "course-overview"), window.location.pathname) {
|
|
46647
|
+
const z = window.location.pathname.match(
|
|
46647
46648
|
new RegExp("(courses/([^/]+)/([^/]+)|microcourses/[^/]+/([^/]+))")
|
|
46648
46649
|
);
|
|
46649
|
-
if (
|
|
46650
|
-
const [,
|
|
46651
|
-
|
|
46652
|
-
|
|
46653
|
-
|
|
46650
|
+
if (z) {
|
|
46651
|
+
const [, , U, $, ae] = z;
|
|
46652
|
+
ae ? k.set("courseSlug", ae) : (k.set("courseSlug", U), k.set("journeySlug", $ || "default")), k.set(
|
|
46653
|
+
"signupRedirectUrl",
|
|
46654
|
+
window.location.pathname + (window.location.search || "")
|
|
46654
46655
|
);
|
|
46655
|
-
k.set("signupRedirectUrl", z);
|
|
46656
46656
|
}
|
|
46657
46657
|
}
|
|
46658
|
-
return `${J}?${k.toString()}`;
|
|
46658
|
+
return `${((j = window.location.pathname.match(/^\/([^/]+)/)) == null ? void 0 : j[0]) || ""}${J}?${k.toString()}`;
|
|
46659
46659
|
};
|
|
46660
46660
|
return s && s.isLoading ? null : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
46661
46661
|
/* @__PURE__ */ h.jsxs(
|
|
@@ -47126,33 +47126,33 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47126
47126
|
},
|
|
47127
47127
|
handleCancel: k = () => {
|
|
47128
47128
|
},
|
|
47129
|
-
callback:
|
|
47129
|
+
callback: w = () => {
|
|
47130
47130
|
},
|
|
47131
47131
|
onMention: Z = () => {
|
|
47132
47132
|
},
|
|
47133
47133
|
listMembers: B = () => Promise.resolve([]),
|
|
47134
|
-
clickMentionFallback:
|
|
47134
|
+
clickMentionFallback: j = () => {
|
|
47135
47135
|
},
|
|
47136
47136
|
getLinkPreview: z = () => Promise.resolve({}),
|
|
47137
47137
|
props: U = {
|
|
47138
47138
|
create: { projectNames: ["questions-answers"] }
|
|
47139
47139
|
}
|
|
47140
|
-
} = u, [
|
|
47140
|
+
} = u, [$, ae] = de({
|
|
47141
47141
|
body: C && C.text || P && P.text || "",
|
|
47142
47142
|
data: c != null && c.link ? { link: c == null ? void 0 : c.link } : {}
|
|
47143
|
-
}), [Y, te] = de(l.error || !1),
|
|
47143
|
+
}), [Y, te] = de(l.error || !1), se = {
|
|
47144
47144
|
status: !1,
|
|
47145
47145
|
title: A && A.text || "",
|
|
47146
47146
|
polls: 0
|
|
47147
|
-
}, [re, Ae] = de(
|
|
47147
|
+
}, [re, Ae] = de(se);
|
|
47148
47148
|
me(() => {
|
|
47149
|
-
R && !C && P && P !==
|
|
47149
|
+
R && !C && P && P !== $.body && ae((ve) => ({ ...ve, body: P.text || "" }));
|
|
47150
47150
|
}, [P]), me(() => {
|
|
47151
47151
|
m(n.type);
|
|
47152
47152
|
}, [n.type]);
|
|
47153
47153
|
const Oe = cl(
|
|
47154
47154
|
(ve, Q) => {
|
|
47155
|
-
|
|
47155
|
+
ae((xe) => ({ ...xe, body: ve, data: { link: Q } })), q({ body: ve });
|
|
47156
47156
|
let fe;
|
|
47157
47157
|
!p || !p.id ? fe = xr(
|
|
47158
47158
|
f.formatMessage,
|
|
@@ -47226,7 +47226,7 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47226
47226
|
default:
|
|
47227
47227
|
break;
|
|
47228
47228
|
}
|
|
47229
|
-
await _0(1e3),
|
|
47229
|
+
await _0(1e3), w && await w(fe), ae({
|
|
47230
47230
|
body: "",
|
|
47231
47231
|
data: {}
|
|
47232
47232
|
}), m(n.type), Ae((Me) => ({ ...Me, status: "submitted" })), v(
|
|
@@ -47250,9 +47250,9 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47250
47250
|
) : xe != null && xe.message.includes("400") && (Me = `${$t}error`), te(Me), await he();
|
|
47251
47251
|
}
|
|
47252
47252
|
}, he = async () => {
|
|
47253
|
-
await _0(5e3), te(!1), Ae(
|
|
47253
|
+
await _0(5e3), te(!1), Ae(se), v("");
|
|
47254
47254
|
}, Se = cl(async (ve) => {
|
|
47255
|
-
const Q = {
|
|
47255
|
+
const Q = { ...$, ...ve };
|
|
47256
47256
|
if (C) {
|
|
47257
47257
|
Ae((fe) => ({ ...fe, status: "submitting" })), X(Q);
|
|
47258
47258
|
return;
|
|
@@ -47271,7 +47271,7 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47271
47271
|
"data-testid": "loading-placeholder"
|
|
47272
47272
|
}
|
|
47273
47273
|
);
|
|
47274
|
-
const Re =
|
|
47274
|
+
const Re = !$.body || !dl($.body), tt = !re.title || !dl(re.title);
|
|
47275
47275
|
let mt = !1;
|
|
47276
47276
|
g !== Je.Poll && (mt = Re), A && (mt = mt && tt);
|
|
47277
47277
|
const Ye = re.status === "submitting", nt = [];
|
|
@@ -47327,7 +47327,7 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47327
47327
|
component: sT,
|
|
47328
47328
|
props: {
|
|
47329
47329
|
id: `${Ce}-input`,
|
|
47330
|
-
value: re.status === "submitting" && !Y ? "" :
|
|
47330
|
+
value: re.status === "submitting" && !Y ? "" : $.body,
|
|
47331
47331
|
placeholder: a || xr(f.formatMessage, `${$t}placeholder`, g, "action"),
|
|
47332
47332
|
maxLength: s,
|
|
47333
47333
|
meta: {
|
|
@@ -47336,11 +47336,11 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47336
47336
|
functions: {
|
|
47337
47337
|
onChange: Oe,
|
|
47338
47338
|
onChangeData: (ve) => {
|
|
47339
|
-
|
|
47339
|
+
ae((Q) => ({ ...Q, data: ve }));
|
|
47340
47340
|
},
|
|
47341
47341
|
onMention: Z,
|
|
47342
47342
|
listMembers: B,
|
|
47343
|
-
clickMentionFallback:
|
|
47343
|
+
clickMentionFallback: j,
|
|
47344
47344
|
getLinkPreview: z
|
|
47345
47345
|
},
|
|
47346
47346
|
data: c,
|
|
@@ -47409,7 +47409,7 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47409
47409
|
const ve = re.polls;
|
|
47410
47410
|
Ze = Ze || tt || ve < NE || ve > OE;
|
|
47411
47411
|
} else
|
|
47412
|
-
Ze = Ze || mt, C && (A ? Ze = Ze ||
|
|
47412
|
+
Ze = Ze || mt, C && (A ? Ze = Ze || $.body === C.text && re.title === A.text : Ze = Ze || $.body === C.text);
|
|
47413
47413
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
47414
47414
|
/* @__PURE__ */ h.jsxs(
|
|
47415
47415
|
ti,
|
|
@@ -47453,7 +47453,7 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47453
47453
|
size: { mobile: "small", 600: "medium" },
|
|
47454
47454
|
"data-gtm-event-context": d,
|
|
47455
47455
|
"data-gtm-event-type": `cancel-${g}-click`,
|
|
47456
|
-
disabled: !l.cancel && (!p || !p.id ||
|
|
47456
|
+
disabled: !l.cancel && (!p || !p.id || !$.body),
|
|
47457
47457
|
text: o != null && o.cancel ? o == null ? void 0 : o.cancel : f.formatMessage({ id: `${$t}cancel` })
|
|
47458
47458
|
},
|
|
47459
47459
|
gtm: { context: d, event: `${g}-form` },
|
|
@@ -47883,7 +47883,7 @@ const j1 = ({
|
|
|
47883
47883
|
},
|
|
47884
47884
|
removePoll: J = () => {
|
|
47885
47885
|
}
|
|
47886
|
-
} = o.polls || {}, { author: X, createdAt: k, id:
|
|
47886
|
+
} = o.polls || {}, { author: X, createdAt: k, id: w, likes: Z = 0, userLiked: B, comments: j = 0, data: z } = t, U = Cre(t.title, E), $ = C && C.id && typeof X != "string" && X.id && X.id === C.id || !1, ae = $ && (!t.createdAt || M3(t.createdAt, 10, "seconds")), Y = Ue(null), [te, se] = de({
|
|
47887
47887
|
title: t.body !== U && U || "",
|
|
47888
47888
|
body: t && t.body || "",
|
|
47889
47889
|
isEditing: !1,
|
|
@@ -47891,7 +47891,7 @@ const j1 = ({
|
|
|
47891
47891
|
postBody: "",
|
|
47892
47892
|
data: t && t.data || {}
|
|
47893
47893
|
}), [re, Ae] = de(!1), [Oe, Ce] = de(
|
|
47894
|
-
|
|
47894
|
+
ae ? "highlighted" : "default"
|
|
47895
47895
|
/* Default */
|
|
47896
47896
|
), [ue, he] = de("");
|
|
47897
47897
|
me(() => {
|
|
@@ -47904,7 +47904,7 @@ const j1 = ({
|
|
|
47904
47904
|
), fe.removeEventListener("transitionend", Re);
|
|
47905
47905
|
};
|
|
47906
47906
|
}, []), me(() => {
|
|
47907
|
-
|
|
47907
|
+
se((fe) => ({
|
|
47908
47908
|
...fe,
|
|
47909
47909
|
title: t && U || "",
|
|
47910
47910
|
body: t && t.body || "",
|
|
@@ -47919,7 +47919,7 @@ const j1 = ({
|
|
|
47919
47919
|
z == null ? void 0 : z.mentions,
|
|
47920
47920
|
F
|
|
47921
47921
|
);
|
|
47922
|
-
|
|
47922
|
+
se((Me) => ({ ...Me, postBody: xe }));
|
|
47923
47923
|
})();
|
|
47924
47924
|
}, [te.body, z == null ? void 0 : z.mentions]);
|
|
47925
47925
|
const Se = () => {
|
|
@@ -47948,7 +47948,7 @@ const j1 = ({
|
|
|
47948
47948
|
const vt = t.type === Je.Question ? { title: xe } : { title: fe, body: xe, data: Me };
|
|
47949
47949
|
await P(Q0(t.slugs), vt);
|
|
47950
47950
|
}
|
|
47951
|
-
|
|
47951
|
+
se((vt) => ({
|
|
47952
47952
|
...vt,
|
|
47953
47953
|
title: fe || "",
|
|
47954
47954
|
body: xe || "",
|
|
@@ -47977,9 +47977,9 @@ const j1 = ({
|
|
|
47977
47977
|
he("delete-error");
|
|
47978
47978
|
}
|
|
47979
47979
|
}, nt = [];
|
|
47980
|
-
return n &&
|
|
47980
|
+
return n && $ && (t.type !== Je.Poll && nt.push({
|
|
47981
47981
|
text: _.formatMessage({ id: `${Tr}moreMenu_edit` }),
|
|
47982
|
-
onClick: () =>
|
|
47982
|
+
onClick: () => se((fe) => ({ ...fe, isEditing: !0 })),
|
|
47983
47983
|
icon: "pencil-paper",
|
|
47984
47984
|
className: "gtm-trackable",
|
|
47985
47985
|
"data-gtm-event-context": c,
|
|
@@ -48028,7 +48028,7 @@ const j1 = ({
|
|
|
48028
48028
|
/* @__PURE__ */ h.jsxs(
|
|
48029
48029
|
"div",
|
|
48030
48030
|
{
|
|
48031
|
-
id:
|
|
48031
|
+
id: w || t.slug,
|
|
48032
48032
|
className: ee("discussion-card text-medium", t.type, {
|
|
48033
48033
|
editing: te.isEditing,
|
|
48034
48034
|
"has-link": l.post && !te.isEditing
|
|
@@ -48078,7 +48078,7 @@ const j1 = ({
|
|
|
48078
48078
|
create: A,
|
|
48079
48079
|
handleSaveEdit: tt,
|
|
48080
48080
|
handleCancel: () => {
|
|
48081
|
-
he(""),
|
|
48081
|
+
he(""), se((fe) => ({ ...fe, isEditing: !1 }));
|
|
48082
48082
|
},
|
|
48083
48083
|
listMembers: F,
|
|
48084
48084
|
clickMentionFallback: H
|
|
@@ -48136,7 +48136,7 @@ const j1 = ({
|
|
|
48136
48136
|
comments: !(s != null && s.comments) && ([Je.Question, Je.Post].includes(
|
|
48137
48137
|
t.type
|
|
48138
48138
|
) || l.comments) ? {
|
|
48139
|
-
count:
|
|
48139
|
+
count: j || 0,
|
|
48140
48140
|
functions: {
|
|
48141
48141
|
onClick: () => {
|
|
48142
48142
|
l != null && l.comments && (window.location.href = l.comments), typeof S == "function" && S();
|
|
@@ -48696,7 +48696,7 @@ const Tae = ({
|
|
|
48696
48696
|
type: y = Kt.Communities,
|
|
48697
48697
|
repliesFilters: v
|
|
48698
48698
|
}) => {
|
|
48699
|
-
var z, U,
|
|
48699
|
+
var z, U, $, ae, Y, te, se, re, Ae, Oe, Ce, ue;
|
|
48700
48700
|
const E = be(), b = We(zt), _ = {
|
|
48701
48701
|
...s,
|
|
48702
48702
|
...f
|
|
@@ -48733,16 +48733,16 @@ const Tae = ({
|
|
|
48733
48733
|
latest_reactions: O,
|
|
48734
48734
|
mentioned_users: J,
|
|
48735
48735
|
additional_data: X
|
|
48736
|
-
} = T, k = (((z = O == null ? void 0 : O.like) == null ? void 0 : z.length) || 0) > 0,
|
|
48736
|
+
} = T, k = (((z = O == null ? void 0 : O.like) == null ? void 0 : z.length) || 0) > 0, w = !!((U = H == null ? void 0 : H.like) != null && U.find((he) => {
|
|
48737
48737
|
var Se;
|
|
48738
48738
|
return ((Se = he.user) == null ? void 0 : Se.id) === (b == null ? void 0 : b.id);
|
|
48739
|
-
})), Z =
|
|
48739
|
+
})), Z = w ? H == null ? void 0 : H.like[0].id : "", B = k ? ($ = O == null ? void 0 : O.like) == null ? void 0 : $.map((he) => {
|
|
48740
48740
|
var Se, Re, tt;
|
|
48741
48741
|
return {
|
|
48742
48742
|
id: (Se = he == null ? void 0 : he.user) == null ? void 0 : Se.id,
|
|
48743
48743
|
name: (tt = (Re = he == null ? void 0 : he.user) == null ? void 0 : Re.data) == null ? void 0 : tt.name
|
|
48744
48744
|
};
|
|
48745
|
-
}) : !1,
|
|
48745
|
+
}) : !1, j = T == null ? void 0 : T.actor;
|
|
48746
48746
|
return /* @__PURE__ */ h.jsxs("section", { className: "activity-section", children: [
|
|
48747
48747
|
/* @__PURE__ */ h.jsx(
|
|
48748
48748
|
j1,
|
|
@@ -48767,9 +48767,9 @@ const Tae = ({
|
|
|
48767
48767
|
answer: T == null ? void 0 : T.id
|
|
48768
48768
|
},
|
|
48769
48769
|
slug: n,
|
|
48770
|
-
author: Pl(
|
|
48771
|
-
userLiked:
|
|
48772
|
-
likes: ((
|
|
48770
|
+
author: Pl(j),
|
|
48771
|
+
userLiked: w,
|
|
48772
|
+
likes: ((ae = T == null ? void 0 : T.reaction_counts) == null ? void 0 : ae.like) || 0,
|
|
48773
48773
|
comments: (T == null ? void 0 : T.total_replies) || 0,
|
|
48774
48774
|
peopleWhoLiked: y === Kt.Courses ? !1 : B,
|
|
48775
48775
|
data: {
|
|
@@ -48779,7 +48779,7 @@ const Tae = ({
|
|
|
48779
48779
|
pinned: ((Y = T == null ? void 0 : T.reaction_counts) == null ? void 0 : Y.pin) && ((te = T == null ? void 0 : T.reaction_counts) == null ? void 0 : te.pin) > 0 || !1,
|
|
48780
48780
|
pollOptions: _4(T, m),
|
|
48781
48781
|
pollSettings: {
|
|
48782
|
-
showRemoveVote: (
|
|
48782
|
+
showRemoveVote: (se = T == null ? void 0 : T.settings) == null ? void 0 : se.show_remove_vote,
|
|
48783
48783
|
allowMultipleVotes: (re = T == null ? void 0 : T.settings) == null ? void 0 : re.allow_multiple_votes,
|
|
48784
48784
|
deadlineAt: (Ae = T == null ? void 0 : T.settings) == null ? void 0 : Ae.deadline_at,
|
|
48785
48785
|
hideParticipants: (Oe = T == null ? void 0 : T.settings) == null ? void 0 : Oe.hide_participants,
|
|
@@ -48787,7 +48787,7 @@ const Tae = ({
|
|
|
48787
48787
|
resultsVisibility: (ue = T == null ? void 0 : T.settings) == null ? void 0 : ue.results_visibility
|
|
48788
48788
|
}
|
|
48789
48789
|
},
|
|
48790
|
-
originalAuthorId:
|
|
48790
|
+
originalAuthorId: j == null ? void 0 : j.id,
|
|
48791
48791
|
forceHide: { comments: !0, shareLink: y === Kt.Courses },
|
|
48792
48792
|
functions: {
|
|
48793
48793
|
content: {
|