@chatsystem/client 1.1.41 → 1.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +44 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1011 -970
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Ke from "react";
|
|
2
|
-
import
|
|
2
|
+
import $e, { useState as Oe, useEffect as Ye, forwardRef as Jo, useRef as Fe, useMemo as _n, useImperativeHandle as Ll, useContext as yt, useCallback as Wt, createContext as Dl, useLayoutEffect as Zo } from "react";
|
|
3
3
|
import mr, { createPortal as kl } from "react-dom";
|
|
4
4
|
import Pl from "lottie-react";
|
|
5
5
|
import { DotLottieReact as Ml } from "@lottiefiles/dotlottie-react";
|
|
@@ -37,45 +37,45 @@ var gr = {};
|
|
|
37
37
|
var ns;
|
|
38
38
|
function jl() {
|
|
39
39
|
return ns || (ns = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
40
|
-
var e =
|
|
40
|
+
var e = $e, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), _ = Symbol.iterator, S = "@@iterator";
|
|
41
41
|
function O(C) {
|
|
42
42
|
if (C === null || typeof C != "object")
|
|
43
43
|
return null;
|
|
44
|
-
var
|
|
45
|
-
return typeof
|
|
44
|
+
var j = _ && C[_] || C[S];
|
|
45
|
+
return typeof j == "function" ? j : null;
|
|
46
46
|
}
|
|
47
47
|
var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
48
|
function L(C) {
|
|
49
49
|
{
|
|
50
|
-
for (var
|
|
50
|
+
for (var j = arguments.length, X = new Array(j > 1 ? j - 1 : 0), de = 1; de < j; de++)
|
|
51
51
|
X[de - 1] = arguments[de];
|
|
52
52
|
P("error", C, X);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function P(C,
|
|
55
|
+
function P(C, j, X) {
|
|
56
56
|
{
|
|
57
57
|
var de = v.ReactDebugCurrentFrame, Re = de.getStackAddendum();
|
|
58
|
-
Re !== "" && (
|
|
58
|
+
Re !== "" && (j += "%s", X = X.concat([Re]));
|
|
59
59
|
var Pe = X.map(function(_e) {
|
|
60
60
|
return String(_e);
|
|
61
61
|
});
|
|
62
|
-
Pe.unshift("Warning: " +
|
|
62
|
+
Pe.unshift("Warning: " + j), Function.prototype.apply.call(console[C], console, Pe);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var $ = !1, I = !1, D = !1, re = !1, be = !1, oe;
|
|
66
66
|
oe = Symbol.for("react.module.reference");
|
|
67
67
|
function q(C) {
|
|
68
|
-
return !!(typeof C == "string" || typeof C == "function" || C === r || C === i || be || C === a || C === l || C === d || re || C === m ||
|
|
68
|
+
return !!(typeof C == "string" || typeof C == "function" || C === r || C === i || be || C === a || C === l || C === d || re || C === m || $ || I || D || typeof C == "object" && C !== null && (C.$$typeof === h || C.$$typeof === f || C.$$typeof === s || C.$$typeof === u || C.$$typeof === c || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
72
72
|
C.$$typeof === oe || C.getModuleId !== void 0));
|
|
73
73
|
}
|
|
74
|
-
function Te(C,
|
|
74
|
+
function Te(C, j, X) {
|
|
75
75
|
var de = C.displayName;
|
|
76
76
|
if (de)
|
|
77
77
|
return de;
|
|
78
|
-
var Re =
|
|
78
|
+
var Re = j.displayName || j.name || "";
|
|
79
79
|
return Re !== "" ? X + "(" + Re + ")" : X;
|
|
80
80
|
}
|
|
81
81
|
function ee(C) {
|
|
@@ -105,8 +105,8 @@ function jl() {
|
|
|
105
105
|
if (typeof C == "object")
|
|
106
106
|
switch (C.$$typeof) {
|
|
107
107
|
case u:
|
|
108
|
-
var
|
|
109
|
-
return ee(
|
|
108
|
+
var j = C;
|
|
109
|
+
return ee(j) + ".Consumer";
|
|
110
110
|
case s:
|
|
111
111
|
var X = C;
|
|
112
112
|
return ee(X._context) + ".Provider";
|
|
@@ -126,14 +126,14 @@ function jl() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var F = Object.assign, J = 0, fe, le, ye,
|
|
129
|
+
var F = Object.assign, J = 0, fe, le, ye, He, g, Y, W;
|
|
130
130
|
function x() {
|
|
131
131
|
}
|
|
132
132
|
x.__reactDisabledLog = !0;
|
|
133
133
|
function Z() {
|
|
134
134
|
{
|
|
135
135
|
if (J === 0) {
|
|
136
|
-
fe = console.log, le = console.info, ye = console.warn,
|
|
136
|
+
fe = console.log, le = console.info, ye = console.warn, He = console.error, g = console.group, Y = console.groupCollapsed, W = console.groupEnd;
|
|
137
137
|
var C = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
@@ -172,7 +172,7 @@ function jl() {
|
|
|
172
172
|
value: ye
|
|
173
173
|
}),
|
|
174
174
|
error: F({}, C, {
|
|
175
|
-
value:
|
|
175
|
+
value: He
|
|
176
176
|
}),
|
|
177
177
|
group: F({}, C, {
|
|
178
178
|
value: g
|
|
@@ -189,7 +189,7 @@ function jl() {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
var se = v.ReactCurrentDispatcher, ie;
|
|
192
|
-
function Q(C,
|
|
192
|
+
function Q(C, j, X) {
|
|
193
193
|
{
|
|
194
194
|
if (ie === void 0)
|
|
195
195
|
try {
|
|
@@ -207,7 +207,7 @@ function jl() {
|
|
|
207
207
|
var ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
208
|
ue = new ke();
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function z(C, j) {
|
|
211
211
|
if (!C || ce)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
@@ -222,7 +222,7 @@ function jl() {
|
|
|
222
222
|
var Pe;
|
|
223
223
|
Pe = se.current, se.current = null, Z();
|
|
224
224
|
try {
|
|
225
|
-
if (
|
|
225
|
+
if (j) {
|
|
226
226
|
var _e = function() {
|
|
227
227
|
throw Error();
|
|
228
228
|
};
|
|
@@ -278,18 +278,18 @@ function jl() {
|
|
|
278
278
|
var gn = C ? C.displayName || C.name : "", es = gn ? Q(gn) : "";
|
|
279
279
|
return typeof C == "function" && ue.set(C, es), es;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
281
|
+
function Ue(C, j, X) {
|
|
282
|
+
return z(C, !1);
|
|
283
283
|
}
|
|
284
284
|
function We(C) {
|
|
285
|
-
var
|
|
286
|
-
return !!(
|
|
285
|
+
var j = C.prototype;
|
|
286
|
+
return !!(j && j.isReactComponent);
|
|
287
287
|
}
|
|
288
|
-
function Je(C,
|
|
288
|
+
function Je(C, j, X) {
|
|
289
289
|
if (C == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof C == "function")
|
|
292
|
-
return
|
|
292
|
+
return z(C, We(C));
|
|
293
293
|
if (typeof C == "string")
|
|
294
294
|
return Q(C);
|
|
295
295
|
switch (C) {
|
|
@@ -301,13 +301,13 @@ function jl() {
|
|
|
301
301
|
if (typeof C == "object")
|
|
302
302
|
switch (C.$$typeof) {
|
|
303
303
|
case c:
|
|
304
|
-
return
|
|
304
|
+
return Ue(C.render);
|
|
305
305
|
case f:
|
|
306
|
-
return Je(C.type,
|
|
306
|
+
return Je(C.type, j, X);
|
|
307
307
|
case h: {
|
|
308
308
|
var de = C, Re = de._payload, Pe = de._init;
|
|
309
309
|
try {
|
|
310
|
-
return Je(Pe(Re),
|
|
310
|
+
return Je(Pe(Re), j, X);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
@@ -317,12 +317,12 @@ function jl() {
|
|
|
317
317
|
var mt = Object.prototype.hasOwnProperty, Ze = {}, wt = v.ReactDebugCurrentFrame;
|
|
318
318
|
function pt(C) {
|
|
319
319
|
if (C) {
|
|
320
|
-
var
|
|
320
|
+
var j = C._owner, X = Je(C.type, C._source, j ? j.type : null);
|
|
321
321
|
wt.setExtraStackFrame(X);
|
|
322
322
|
} else
|
|
323
323
|
wt.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function he(C,
|
|
325
|
+
function he(C, j, X, de, Re) {
|
|
326
326
|
{
|
|
327
327
|
var Pe = Function.call.bind(mt);
|
|
328
328
|
for (var _e in C)
|
|
@@ -333,7 +333,7 @@ function jl() {
|
|
|
333
333
|
var st = Error((de || "React class") + ": " + X + " type `" + _e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof C[_e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
334
|
throw st.name = "Invariant Violation", st;
|
|
335
335
|
}
|
|
336
|
-
Ce = C[_e](
|
|
336
|
+
Ce = C[_e](j, _e, de, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
337
|
} catch (Ge) {
|
|
338
338
|
Ce = Ge;
|
|
339
339
|
}
|
|
@@ -347,23 +347,23 @@ function jl() {
|
|
|
347
347
|
}
|
|
348
348
|
function Ie(C) {
|
|
349
349
|
{
|
|
350
|
-
var
|
|
350
|
+
var j = typeof Symbol == "function" && Symbol.toStringTag, X = j && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
351
351
|
return X;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function je(C) {
|
|
355
355
|
try {
|
|
356
|
-
return
|
|
356
|
+
return w(C), !1;
|
|
357
357
|
} catch {
|
|
358
358
|
return !0;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function w(C) {
|
|
362
362
|
return "" + C;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
if (
|
|
366
|
-
return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(C)),
|
|
364
|
+
function R(C) {
|
|
365
|
+
if (je(C))
|
|
366
|
+
return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(C)), w(C);
|
|
367
367
|
}
|
|
368
368
|
var G = v.ReactCurrentOwner, me = {
|
|
369
369
|
key: !0,
|
|
@@ -374,30 +374,30 @@ function jl() {
|
|
|
374
374
|
_t = {};
|
|
375
375
|
function vt(C) {
|
|
376
376
|
if (mt.call(C, "ref")) {
|
|
377
|
-
var
|
|
378
|
-
if (
|
|
377
|
+
var j = Object.getOwnPropertyDescriptor(C, "ref").get;
|
|
378
|
+
if (j && j.isReactWarning)
|
|
379
379
|
return !1;
|
|
380
380
|
}
|
|
381
381
|
return C.ref !== void 0;
|
|
382
382
|
}
|
|
383
383
|
function Zt(C) {
|
|
384
384
|
if (mt.call(C, "key")) {
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
385
|
+
var j = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
386
|
+
if (j && j.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
389
|
return C.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function en(C,
|
|
392
|
-
if (typeof C.ref == "string" && G.current &&
|
|
391
|
+
function en(C, j) {
|
|
392
|
+
if (typeof C.ref == "string" && G.current && j && G.current.stateNode !== j) {
|
|
393
393
|
var X = B(G.current.type);
|
|
394
394
|
_t[X] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(G.current.type), C.ref), _t[X] = !0);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function it(C,
|
|
397
|
+
function it(C, j) {
|
|
398
398
|
{
|
|
399
399
|
var X = function() {
|
|
400
|
-
Se || (Se = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
400
|
+
Se || (Se = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
401
401
|
};
|
|
402
402
|
X.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
403
403
|
get: X,
|
|
@@ -405,10 +405,10 @@ function jl() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function zt(C,
|
|
408
|
+
function zt(C, j) {
|
|
409
409
|
{
|
|
410
410
|
var X = function() {
|
|
411
|
-
nt || (nt = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
411
|
+
nt || (nt = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
412
412
|
};
|
|
413
413
|
X.isReactWarning = !0, Object.defineProperty(C, "ref", {
|
|
414
414
|
get: X,
|
|
@@ -416,13 +416,13 @@ function jl() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Nt = function(C,
|
|
419
|
+
var Nt = function(C, j, X, de, Re, Pe, _e) {
|
|
420
420
|
var Ce = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: t,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
424
|
type: C,
|
|
425
|
-
key:
|
|
425
|
+
key: j,
|
|
426
426
|
ref: X,
|
|
427
427
|
props: _e,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
@@ -445,12 +445,12 @@ function jl() {
|
|
|
445
445
|
value: Re
|
|
446
446
|
}), Object.freeze && (Object.freeze(Ce.props), Object.freeze(Ce)), Ce;
|
|
447
447
|
};
|
|
448
|
-
function _l(C,
|
|
448
|
+
function _l(C, j, X, de, Re) {
|
|
449
449
|
{
|
|
450
450
|
var Pe, _e = {}, Ce = null, st = null;
|
|
451
|
-
X !== void 0 && (
|
|
452
|
-
for (Pe in
|
|
453
|
-
mt.call(
|
|
451
|
+
X !== void 0 && (R(X), Ce = "" + X), Zt(j) && (R(j.key), Ce = "" + j.key), vt(j) && (st = j.ref, en(j, Re));
|
|
452
|
+
for (Pe in j)
|
|
453
|
+
mt.call(j, Pe) && !me.hasOwnProperty(Pe) && (_e[Pe] = j[Pe]);
|
|
454
454
|
if (C && C.defaultProps) {
|
|
455
455
|
var Ge = C.defaultProps;
|
|
456
456
|
for (Pe in Ge)
|
|
@@ -466,7 +466,7 @@ function jl() {
|
|
|
466
466
|
var oa = v.ReactCurrentOwner, Xi = v.ReactDebugCurrentFrame;
|
|
467
467
|
function bn(C) {
|
|
468
468
|
if (C) {
|
|
469
|
-
var
|
|
469
|
+
var j = C._owner, X = Je(C.type, C._source, j ? j.type : null);
|
|
470
470
|
Xi.setExtraStackFrame(X);
|
|
471
471
|
} else
|
|
472
472
|
Xi.setExtraStackFrame(null);
|
|
@@ -491,10 +491,10 @@ Check the render method of \`` + C + "`.";
|
|
|
491
491
|
function vl(C) {
|
|
492
492
|
{
|
|
493
493
|
if (C !== void 0) {
|
|
494
|
-
var
|
|
494
|
+
var j = C.fileName.replace(/^.*[\\\/]/, ""), X = C.lineNumber;
|
|
495
495
|
return `
|
|
496
496
|
|
|
497
|
-
Check your code at ` +
|
|
497
|
+
Check your code at ` + j + ":" + X + ".";
|
|
498
498
|
}
|
|
499
499
|
return "";
|
|
500
500
|
}
|
|
@@ -502,22 +502,22 @@ Check your code at ` + V + ":" + X + ".";
|
|
|
502
502
|
var Ki = {};
|
|
503
503
|
function Nl(C) {
|
|
504
504
|
{
|
|
505
|
-
var
|
|
506
|
-
if (!
|
|
505
|
+
var j = Qi();
|
|
506
|
+
if (!j) {
|
|
507
507
|
var X = typeof C == "string" ? C : C.displayName || C.name;
|
|
508
|
-
X && (
|
|
508
|
+
X && (j = `
|
|
509
509
|
|
|
510
510
|
Check the top-level render call using <` + X + ">.");
|
|
511
511
|
}
|
|
512
|
-
return
|
|
512
|
+
return j;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function Ji(C,
|
|
515
|
+
function Ji(C, j) {
|
|
516
516
|
{
|
|
517
517
|
if (!C._store || C._store.validated || C.key != null)
|
|
518
518
|
return;
|
|
519
519
|
C._store.validated = !0;
|
|
520
|
-
var X = Nl(
|
|
520
|
+
var X = Nl(j);
|
|
521
521
|
if (Ki[X])
|
|
522
522
|
return;
|
|
523
523
|
Ki[X] = !0;
|
|
@@ -525,14 +525,14 @@ Check the top-level render call using <` + X + ">.");
|
|
|
525
525
|
C && C._owner && C._owner !== oa.current && (de = " It was passed a child from " + B(C._owner.type) + "."), bn(C), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', X, de), bn(null);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
function Zi(C,
|
|
528
|
+
function Zi(C, j) {
|
|
529
529
|
{
|
|
530
530
|
if (typeof C != "object")
|
|
531
531
|
return;
|
|
532
532
|
if (Ne(C))
|
|
533
533
|
for (var X = 0; X < C.length; X++) {
|
|
534
534
|
var de = C[X];
|
|
535
|
-
ca(de) && Ji(de,
|
|
535
|
+
ca(de) && Ji(de, j);
|
|
536
536
|
}
|
|
537
537
|
else if (ca(C))
|
|
538
538
|
C._store && (C._store.validated = !0);
|
|
@@ -540,39 +540,39 @@ Check the top-level render call using <` + X + ">.");
|
|
|
540
540
|
var Re = O(C);
|
|
541
541
|
if (typeof Re == "function" && Re !== C.entries)
|
|
542
542
|
for (var Pe = Re.call(C), _e; !(_e = Pe.next()).done; )
|
|
543
|
-
ca(_e.value) && Ji(_e.value,
|
|
543
|
+
ca(_e.value) && Ji(_e.value, j);
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
function Il(C) {
|
|
548
548
|
{
|
|
549
|
-
var
|
|
550
|
-
if (
|
|
549
|
+
var j = C.type;
|
|
550
|
+
if (j == null || typeof j == "string")
|
|
551
551
|
return;
|
|
552
552
|
var X;
|
|
553
|
-
if (typeof
|
|
554
|
-
X =
|
|
555
|
-
else if (typeof
|
|
553
|
+
if (typeof j == "function")
|
|
554
|
+
X = j.propTypes;
|
|
555
|
+
else if (typeof j == "object" && (j.$$typeof === c || // Note: Memo only checks outer props here.
|
|
556
556
|
// Inner props are checked in the reconciler.
|
|
557
|
-
|
|
558
|
-
X =
|
|
557
|
+
j.$$typeof === f))
|
|
558
|
+
X = j.propTypes;
|
|
559
559
|
else
|
|
560
560
|
return;
|
|
561
561
|
if (X) {
|
|
562
|
-
var de = B(
|
|
562
|
+
var de = B(j);
|
|
563
563
|
he(X, C.props, "prop", de, C);
|
|
564
|
-
} else if (
|
|
564
|
+
} else if (j.PropTypes !== void 0 && !ua) {
|
|
565
565
|
ua = !0;
|
|
566
|
-
var Re = B(
|
|
566
|
+
var Re = B(j);
|
|
567
567
|
L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Re || "Unknown");
|
|
568
568
|
}
|
|
569
|
-
typeof
|
|
569
|
+
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
function wl(C) {
|
|
573
573
|
{
|
|
574
|
-
for (var
|
|
575
|
-
var de =
|
|
574
|
+
for (var j = Object.keys(C.props), X = 0; X < j.length; X++) {
|
|
575
|
+
var de = j[X];
|
|
576
576
|
if (de !== "children" && de !== "key") {
|
|
577
577
|
bn(C), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", de), bn(null);
|
|
578
578
|
break;
|
|
@@ -581,7 +581,7 @@ Check the top-level render call using <` + X + ">.");
|
|
|
581
581
|
C.ref !== null && (bn(C), L("Invalid attribute `ref` supplied to `React.Fragment`."), bn(null));
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function Rl(C,
|
|
584
|
+
function Rl(C, j, X, de, Re, Pe) {
|
|
585
585
|
{
|
|
586
586
|
var _e = q(C);
|
|
587
587
|
if (!_e) {
|
|
@@ -592,11 +592,11 @@ Check the top-level render call using <` + X + ">.");
|
|
|
592
592
|
var Ge;
|
|
593
593
|
C === null ? Ge = "null" : Ne(C) ? Ge = "array" : C !== void 0 && C.$$typeof === t ? (Ge = "<" + (B(C.type) || "Unknown") + " />", Ce = " Did you accidentally export a JSX literal instead of a component?") : Ge = typeof C, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ge, Ce);
|
|
594
594
|
}
|
|
595
|
-
var Xe = _l(C,
|
|
595
|
+
var Xe = _l(C, j, X, Re, Pe);
|
|
596
596
|
if (Xe == null)
|
|
597
597
|
return Xe;
|
|
598
598
|
if (_e) {
|
|
599
|
-
var bt =
|
|
599
|
+
var bt = j.children;
|
|
600
600
|
if (bt !== void 0)
|
|
601
601
|
if (de)
|
|
602
602
|
if (Ne(bt)) {
|
|
@@ -663,7 +663,7 @@ const la = (e) => ({
|
|
|
663
663
|
// to be overriden by remote api conf received
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
}), ar =
|
|
666
|
+
}), ar = $e.createContext({
|
|
667
667
|
companySettings: Yl(),
|
|
668
668
|
setCompanySettings: () => {
|
|
669
669
|
}
|
|
@@ -755,8 +755,8 @@ function ru(e) {
|
|
|
755
755
|
const { imgEl: s, width: u, height: c } = await new Promise((l, d) => {
|
|
756
756
|
const f = URL.createObjectURL(a), h = new Image();
|
|
757
757
|
h.crossOrigin = "anonymous", h.onload = () => {
|
|
758
|
-
const m = h.naturalWidth,
|
|
759
|
-
l({ imgEl: h, width: m, height:
|
|
758
|
+
const m = h.naturalWidth, _ = h.naturalHeight;
|
|
759
|
+
l({ imgEl: h, width: m, height: _ });
|
|
760
760
|
}, h.onerror = () => {
|
|
761
761
|
URL.revokeObjectURL(f), d(new Error("Spritesheet image decode failed"));
|
|
762
762
|
}, h.src = f, h.decode?.().catch(() => {
|
|
@@ -808,7 +808,7 @@ function Ql(e) {
|
|
|
808
808
|
}
|
|
809
809
|
const Kl = ({ src: e }) => {
|
|
810
810
|
const [t, n] = Oe(null);
|
|
811
|
-
return
|
|
811
|
+
return Ye(() => {
|
|
812
812
|
let r = !1;
|
|
813
813
|
return tu(e).then(({ blobUrl: a }) => {
|
|
814
814
|
n(a);
|
|
@@ -835,14 +835,14 @@ function Zl({
|
|
|
835
835
|
onLoaded: u,
|
|
836
836
|
onError: c
|
|
837
837
|
}) {
|
|
838
|
-
const [l, d] =
|
|
839
|
-
return
|
|
838
|
+
const [l, d] = $e.useState({ kind: "loading" });
|
|
839
|
+
return Ye(() => {
|
|
840
840
|
let f = null, h = !1;
|
|
841
841
|
return d({ kind: "loading" }), nu(e).then(async (m) => {
|
|
842
842
|
if (!h)
|
|
843
843
|
if (m.kind === "zip") {
|
|
844
|
-
const
|
|
845
|
-
f = URL.createObjectURL(
|
|
844
|
+
const _ = Jl(m) ? m.blob : await (await fetch(m.blobUrl)).blob();
|
|
845
|
+
f = URL.createObjectURL(_), d({ kind: "lottieZip", blobUrl: f }), u?.(f);
|
|
846
846
|
} else
|
|
847
847
|
d({ kind: "json", data: m.data }), u?.(m.data);
|
|
848
848
|
}).catch(
|
|
@@ -956,42 +956,42 @@ async function ed(e, t = {}) {
|
|
|
956
956
|
}
|
|
957
957
|
m[q] = Te;
|
|
958
958
|
}
|
|
959
|
-
const
|
|
959
|
+
const _ = is(
|
|
960
960
|
h,
|
|
961
961
|
n,
|
|
962
962
|
Math.min(r, l / 2)
|
|
963
|
-
),
|
|
963
|
+
), S = is(
|
|
964
964
|
m,
|
|
965
965
|
n,
|
|
966
966
|
Math.min(r, d / 2)
|
|
967
967
|
);
|
|
968
|
-
if (!
|
|
968
|
+
if (!_ || !S)
|
|
969
969
|
return i && console.warn("detectGrid: could not find periods"), null;
|
|
970
|
-
const O = Math.max(1, Math.round(l /
|
|
970
|
+
const O = Math.max(1, Math.round(l / _)), v = Math.max(1, Math.round(d / S)), L = ss(
|
|
971
971
|
h,
|
|
972
|
-
|
|
972
|
+
_,
|
|
973
973
|
O,
|
|
974
974
|
a
|
|
975
|
-
), P = ss(m,
|
|
976
|
-
if (
|
|
975
|
+
), P = ss(m, S, v, a), $ = Math.max(1, _ - L), I = Math.max(1, S - P);
|
|
976
|
+
if ($ * O > l + 2 || I * v > d + 2)
|
|
977
977
|
return i && console.warn("detectGrid: sanity check failed"), null;
|
|
978
978
|
const D = Ya(h, 60), re = Ya(m, 60), be = Math.max(0, os(h, D)), oe = Math.max(0, os(m, re));
|
|
979
979
|
return i && console.log({
|
|
980
|
-
periodX:
|
|
981
|
-
periodY:
|
|
980
|
+
periodX: _,
|
|
981
|
+
periodY: S,
|
|
982
982
|
columns: O,
|
|
983
983
|
rows: v,
|
|
984
984
|
gutterX: L,
|
|
985
985
|
gutterY: P,
|
|
986
|
-
frameWidth:
|
|
987
|
-
frameHeight:
|
|
986
|
+
frameWidth: $,
|
|
987
|
+
frameHeight: I,
|
|
988
988
|
originX: be,
|
|
989
989
|
originY: oe
|
|
990
990
|
}), {
|
|
991
991
|
columns: O,
|
|
992
992
|
rows: v,
|
|
993
|
-
frameWidth:
|
|
994
|
-
frameHeight:
|
|
993
|
+
frameWidth: $,
|
|
994
|
+
frameHeight: I,
|
|
995
995
|
gutterX: L,
|
|
996
996
|
gutterY: P,
|
|
997
997
|
originX: be,
|
|
@@ -1002,18 +1002,18 @@ function is(e, t, n) {
|
|
|
1002
1002
|
const r = iu(e);
|
|
1003
1003
|
let a = 0;
|
|
1004
1004
|
for (let m = 0; m < e.length; m++) {
|
|
1005
|
-
const
|
|
1006
|
-
a +=
|
|
1005
|
+
const _ = e[m] - r;
|
|
1006
|
+
a += _ * _;
|
|
1007
1007
|
}
|
|
1008
1008
|
if (a === 0) return null;
|
|
1009
1009
|
const i = new Float32Array(n + 1);
|
|
1010
1010
|
let s = 0, u = -1 / 0;
|
|
1011
1011
|
for (let m = t; m <= n; m++) {
|
|
1012
|
-
let
|
|
1012
|
+
let _ = 0;
|
|
1013
1013
|
for (let O = 0; O + m < e.length; O++)
|
|
1014
|
-
|
|
1015
|
-
const
|
|
1016
|
-
i[m] =
|
|
1014
|
+
_ += (e[O] - r) * (e[O + m] - r);
|
|
1015
|
+
const S = _ / a;
|
|
1016
|
+
i[m] = S, S > u && (u = S, s = m);
|
|
1017
1017
|
}
|
|
1018
1018
|
if (s <= t || s >= n) return s || null;
|
|
1019
1019
|
const c = i[s - 1], l = i[s], d = i[s + 1], f = c - 2 * l + d, h = f === 0 ? 0 : 0.5 * (c - d) / f;
|
|
@@ -1083,31 +1083,31 @@ const nd = Jo(function({
|
|
|
1083
1083
|
autoplay: f = !0,
|
|
1084
1084
|
loop: h = !0,
|
|
1085
1085
|
startFrame: m = 0,
|
|
1086
|
-
direction:
|
|
1087
|
-
scale:
|
|
1086
|
+
direction: _ = "forward",
|
|
1087
|
+
scale: S = 1,
|
|
1088
1088
|
backgroundColor: O,
|
|
1089
1089
|
className: v,
|
|
1090
1090
|
style: L,
|
|
1091
1091
|
pauseWhenHidden: P = !1,
|
|
1092
|
-
originX:
|
|
1093
|
-
originY:
|
|
1092
|
+
originX: $,
|
|
1093
|
+
originY: I,
|
|
1094
1094
|
onLoad: D,
|
|
1095
1095
|
onEnd: re,
|
|
1096
1096
|
onFrame: be
|
|
1097
1097
|
}, oe) {
|
|
1098
|
-
const q =
|
|
1098
|
+
const q = Fe(null), Te = Fe(null), [ee, B] = Oe(null), [F, J] = Oe(null), [fe, le] = Oe(null), [ye, He] = Oe(!1), [g, Y] = Oe(!!f), [W, x] = Oe(m), Z = Fe(1), [ae, se] = Oe(null), ie = Math.max(
|
|
1099
1099
|
1,
|
|
1100
1100
|
Math.floor(typeof window < "u" && window.devicePixelRatio || 1)
|
|
1101
1101
|
);
|
|
1102
|
-
|
|
1102
|
+
Ye(() => {
|
|
1103
1103
|
let he = !1;
|
|
1104
|
-
return
|
|
1105
|
-
he || (B(Ee), J(Ne), le({ w: Ee.naturalWidth, h: Ee.naturalHeight }),
|
|
1104
|
+
return He(!1), ru(t).then(({ imgEl: Ee, bitmap: Ne }) => {
|
|
1105
|
+
he || (B(Ee), J(Ne), le({ w: Ee.naturalWidth, h: Ee.naturalHeight }), He(!0), D?.());
|
|
1106
1106
|
}).catch(() => {
|
|
1107
1107
|
}), () => {
|
|
1108
1108
|
he = !0;
|
|
1109
1109
|
};
|
|
1110
|
-
}, [t, D]),
|
|
1110
|
+
}, [t, D]), Ye(() => {
|
|
1111
1111
|
let he = !1;
|
|
1112
1112
|
return (async () => {
|
|
1113
1113
|
if (!ee) return;
|
|
@@ -1134,11 +1134,11 @@ const nd = Jo(function({
|
|
|
1134
1134
|
he = !0;
|
|
1135
1135
|
};
|
|
1136
1136
|
}, [ee, l, n, r, a, i]);
|
|
1137
|
-
const Q = ae?.frameWidth ?? n, ce = ae?.frameHeight ?? r, ue = ae?.columns ?? a, ke = ae?.rows ?? i,
|
|
1137
|
+
const Q = ae?.frameWidth ?? n, ce = ae?.frameHeight ?? r, ue = ae?.columns ?? a, ke = ae?.rows ?? i, z = ae?.gutterX ?? s, Ue = ae?.gutterY ?? u, We = ae?.originX ?? $ ?? 0, Je = ae?.originY ?? I ?? 0, mt = _n(() => {
|
|
1138
1138
|
if (l && l.length > 0) return { cols: 0, rows: 0 };
|
|
1139
1139
|
if (!fe || !Q || !ce)
|
|
1140
1140
|
return { cols: 0, rows: 0 };
|
|
1141
|
-
const he = ue ?? Math.floor((fe.w +
|
|
1141
|
+
const he = ue ?? Math.floor((fe.w + z) / (Q + z)), Ee = ke ?? Math.floor((fe.h + Ue) / (ce + Ue));
|
|
1142
1142
|
return { cols: Math.max(0, he), rows: Math.max(0, Ee) };
|
|
1143
1143
|
}, [
|
|
1144
1144
|
l,
|
|
@@ -1147,34 +1147,34 @@ const nd = Jo(function({
|
|
|
1147
1147
|
ce,
|
|
1148
1148
|
ue,
|
|
1149
1149
|
ke,
|
|
1150
|
-
|
|
1151
|
-
|
|
1150
|
+
z,
|
|
1151
|
+
Ue
|
|
1152
1152
|
]), Ze = _n(() => {
|
|
1153
1153
|
if (l?.length) return l;
|
|
1154
1154
|
if (!Q || !ce) return [];
|
|
1155
1155
|
const { cols: he, rows: Ee } = mt;
|
|
1156
1156
|
if (!he || !Ee) return [];
|
|
1157
1157
|
const Ne = Math.min(c ?? he * Ee, he * Ee), Ie = [];
|
|
1158
|
-
for (let
|
|
1159
|
-
const
|
|
1158
|
+
for (let je = 0; je < Ne; je++) {
|
|
1159
|
+
const w = je % he, R = Math.floor(je / he), G = We + w * (Q + z), me = Je + R * (ce + Ue);
|
|
1160
1160
|
Ie.push({ x: G, y: me, w: Q, h: ce });
|
|
1161
1161
|
}
|
|
1162
1162
|
if (ee && Ie.length) {
|
|
1163
|
-
const
|
|
1164
|
-
|
|
1165
|
-
const
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1168
|
-
let
|
|
1169
|
-
for (;
|
|
1170
|
-
|
|
1171
|
-
Ie[
|
|
1172
|
-
Ie[
|
|
1173
|
-
Ie[
|
|
1174
|
-
Ie[
|
|
1163
|
+
const je = document.createElement("canvas");
|
|
1164
|
+
je.width = ee.naturalWidth, je.height = ee.naturalHeight;
|
|
1165
|
+
const w = je.getContext("2d");
|
|
1166
|
+
if (w) {
|
|
1167
|
+
w.drawImage(ee, 0, 0);
|
|
1168
|
+
let R = Ie.length;
|
|
1169
|
+
for (; R > 0 && td(
|
|
1170
|
+
w,
|
|
1171
|
+
Ie[R - 1].x,
|
|
1172
|
+
Ie[R - 1].y,
|
|
1173
|
+
Ie[R - 1].w,
|
|
1174
|
+
Ie[R - 1].h
|
|
1175
1175
|
); )
|
|
1176
|
-
|
|
1177
|
-
return Ie.slice(0,
|
|
1176
|
+
R--;
|
|
1177
|
+
return Ie.slice(0, R);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
1180
|
return Ie;
|
|
@@ -1184,40 +1184,40 @@ const nd = Jo(function({
|
|
|
1184
1184
|
c,
|
|
1185
1185
|
Q,
|
|
1186
1186
|
ce,
|
|
1187
|
-
|
|
1188
|
-
|
|
1187
|
+
z,
|
|
1188
|
+
Ue,
|
|
1189
1189
|
ee,
|
|
1190
1190
|
We,
|
|
1191
1191
|
Je
|
|
1192
1192
|
]), wt = () => {
|
|
1193
1193
|
const he = q.current;
|
|
1194
1194
|
if (!he || Ze.length === 0) return;
|
|
1195
|
-
const Ee = Ze[Math.max(0, Math.min(W, Ze.length - 1))], Ne = Math.max(1, Math.round(Ee.w *
|
|
1195
|
+
const Ee = Ze[Math.max(0, Math.min(W, Ze.length - 1))], Ne = Math.max(1, Math.round(Ee.w * S)), Ie = Math.max(1, Math.round(Ee.h * S));
|
|
1196
1196
|
he.style.width = Ne + "px", he.style.height = Ie + "px", he.width = Ne * ie, he.height = Ie * ie;
|
|
1197
1197
|
};
|
|
1198
|
-
|
|
1198
|
+
Ye(() => {
|
|
1199
1199
|
wt();
|
|
1200
|
-
}, [ye,
|
|
1200
|
+
}, [ye, S, Ze.length, ie, W]);
|
|
1201
1201
|
const pt = (he) => {
|
|
1202
1202
|
const Ee = F ?? ee ?? null, Ne = q.current;
|
|
1203
1203
|
if (!Ne || !Ee || Ze.length === 0) return;
|
|
1204
1204
|
const Ie = Ne.getContext("2d");
|
|
1205
1205
|
if (!Ie) return;
|
|
1206
1206
|
Ie.save(), Ie.setTransform(1, 0, 0, 1, 0, 0), Ie.clearRect(0, 0, Ne.width, Ne.height), O && (Ie.fillStyle = O, Ie.fillRect(0, 0, Ne.width, Ne.height));
|
|
1207
|
-
const
|
|
1207
|
+
const je = Ze[he];
|
|
1208
1208
|
Ie.scale(ie, ie), Ie.drawImage(
|
|
1209
1209
|
Ee,
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1210
|
+
je.x,
|
|
1211
|
+
je.y,
|
|
1212
|
+
je.w,
|
|
1213
|
+
je.h,
|
|
1214
1214
|
0,
|
|
1215
1215
|
0,
|
|
1216
|
-
Math.round(
|
|
1217
|
-
Math.round(
|
|
1216
|
+
Math.round(je.w * S),
|
|
1217
|
+
Math.round(je.h * S)
|
|
1218
1218
|
), Ie.restore();
|
|
1219
1219
|
};
|
|
1220
|
-
return
|
|
1220
|
+
return Ye(() => {
|
|
1221
1221
|
if (!ye || Ze.length === 0) return;
|
|
1222
1222
|
let he = performance.now();
|
|
1223
1223
|
const Ee = 1e3 / Math.max(1, Math.min(120, d)), Ne = (Ie) => {
|
|
@@ -1225,23 +1225,23 @@ const nd = Jo(function({
|
|
|
1225
1225
|
pt(W);
|
|
1226
1226
|
return;
|
|
1227
1227
|
}
|
|
1228
|
-
const
|
|
1229
|
-
if (
|
|
1228
|
+
const je = Ie - he;
|
|
1229
|
+
if (je < Ee) {
|
|
1230
1230
|
pt(W);
|
|
1231
1231
|
return;
|
|
1232
1232
|
}
|
|
1233
|
-
he = Ie -
|
|
1234
|
-
const
|
|
1235
|
-
let G =
|
|
1236
|
-
return
|
|
1233
|
+
he = Ie - je % Ee, x((w) => {
|
|
1234
|
+
const R = Ze.length - 1;
|
|
1235
|
+
let G = w;
|
|
1236
|
+
return _ === "forward" ? G = w + 1 : _ === "backward" ? G = w - 1 : ((w >= R && Z.current === 1 || w <= 0 && Z.current === -1) && (Z.current *= -1), G = w + Z.current), (G > R || G < 0) && (h ? G = _ === "backward" ? R : 0 : (G = Math.max(0, Math.min(G, R)), Y(!1), re?.())), G;
|
|
1237
1237
|
});
|
|
1238
1238
|
};
|
|
1239
1239
|
return Te.current = requestAnimationFrame(Ne), () => {
|
|
1240
1240
|
Te.current && cancelAnimationFrame(Te.current);
|
|
1241
1241
|
};
|
|
1242
|
-
}, [ye, d, g, h,
|
|
1242
|
+
}, [ye, d, g, h, _, Ze.length, W]), Ye(() => {
|
|
1243
1243
|
pt(W), be?.(W);
|
|
1244
|
-
}, [W, ye,
|
|
1244
|
+
}, [W, ye, S, ie]), Ye(() => {
|
|
1245
1245
|
if (!P) return;
|
|
1246
1246
|
const he = () => {
|
|
1247
1247
|
document.hidden && Y(!1);
|
|
@@ -1276,7 +1276,7 @@ function rd({
|
|
|
1276
1276
|
className: t
|
|
1277
1277
|
}) {
|
|
1278
1278
|
const [n, r] = Oe(""), [a, i] = Oe(null);
|
|
1279
|
-
return
|
|
1279
|
+
return Ye(() => {
|
|
1280
1280
|
let s = !1;
|
|
1281
1281
|
return eu(e).then(({ sanitized: u }) => {
|
|
1282
1282
|
s || (r(u), i(null));
|
|
@@ -1480,28 +1480,28 @@ var us;
|
|
|
1480
1480
|
function id() {
|
|
1481
1481
|
if (us) return Le;
|
|
1482
1482
|
us = 1;
|
|
1483
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115,
|
|
1484
|
-
function P(
|
|
1485
|
-
if (typeof
|
|
1486
|
-
var D =
|
|
1483
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
|
|
1484
|
+
function P(I) {
|
|
1485
|
+
if (typeof I == "object" && I !== null) {
|
|
1486
|
+
var D = I.$$typeof;
|
|
1487
1487
|
switch (D) {
|
|
1488
1488
|
case t:
|
|
1489
|
-
switch (
|
|
1489
|
+
switch (I = I.type, I) {
|
|
1490
1490
|
case c:
|
|
1491
1491
|
case l:
|
|
1492
1492
|
case r:
|
|
1493
1493
|
case i:
|
|
1494
1494
|
case a:
|
|
1495
1495
|
case f:
|
|
1496
|
-
return
|
|
1496
|
+
return I;
|
|
1497
1497
|
default:
|
|
1498
|
-
switch (
|
|
1498
|
+
switch (I = I && I.$$typeof, I) {
|
|
1499
1499
|
case u:
|
|
1500
1500
|
case d:
|
|
1501
|
-
case
|
|
1501
|
+
case _:
|
|
1502
1502
|
case m:
|
|
1503
1503
|
case s:
|
|
1504
|
-
return
|
|
1504
|
+
return I;
|
|
1505
1505
|
default:
|
|
1506
1506
|
return D;
|
|
1507
1507
|
}
|
|
@@ -1511,35 +1511,35 @@ function id() {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1515
|
-
return P(
|
|
1516
|
-
}
|
|
1517
|
-
return Le.AsyncMode = c, Le.ConcurrentMode = l, Le.ContextConsumer = u, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = d, Le.Fragment = r, Le.Lazy =
|
|
1518
|
-
return
|
|
1519
|
-
}, Le.isConcurrentMode =
|
|
1520
|
-
return P(
|
|
1521
|
-
}, Le.isContextProvider = function(
|
|
1522
|
-
return P(
|
|
1523
|
-
}, Le.isElement = function(
|
|
1524
|
-
return typeof
|
|
1525
|
-
}, Le.isForwardRef = function(
|
|
1526
|
-
return P(
|
|
1527
|
-
}, Le.isFragment = function(
|
|
1528
|
-
return P(
|
|
1529
|
-
}, Le.isLazy = function(
|
|
1530
|
-
return P(
|
|
1531
|
-
}, Le.isMemo = function(
|
|
1532
|
-
return P(
|
|
1533
|
-
}, Le.isPortal = function(
|
|
1534
|
-
return P(
|
|
1535
|
-
}, Le.isProfiler = function(
|
|
1536
|
-
return P(
|
|
1537
|
-
}, Le.isStrictMode = function(
|
|
1538
|
-
return P(
|
|
1539
|
-
}, Le.isSuspense = function(
|
|
1540
|
-
return P(
|
|
1541
|
-
}, Le.isValidElementType = function(
|
|
1542
|
-
return typeof
|
|
1514
|
+
function $(I) {
|
|
1515
|
+
return P(I) === l;
|
|
1516
|
+
}
|
|
1517
|
+
return Le.AsyncMode = c, Le.ConcurrentMode = l, Le.ContextConsumer = u, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = d, Le.Fragment = r, Le.Lazy = _, Le.Memo = m, Le.Portal = n, Le.Profiler = i, Le.StrictMode = a, Le.Suspense = f, Le.isAsyncMode = function(I) {
|
|
1518
|
+
return $(I) || P(I) === c;
|
|
1519
|
+
}, Le.isConcurrentMode = $, Le.isContextConsumer = function(I) {
|
|
1520
|
+
return P(I) === u;
|
|
1521
|
+
}, Le.isContextProvider = function(I) {
|
|
1522
|
+
return P(I) === s;
|
|
1523
|
+
}, Le.isElement = function(I) {
|
|
1524
|
+
return typeof I == "object" && I !== null && I.$$typeof === t;
|
|
1525
|
+
}, Le.isForwardRef = function(I) {
|
|
1526
|
+
return P(I) === d;
|
|
1527
|
+
}, Le.isFragment = function(I) {
|
|
1528
|
+
return P(I) === r;
|
|
1529
|
+
}, Le.isLazy = function(I) {
|
|
1530
|
+
return P(I) === _;
|
|
1531
|
+
}, Le.isMemo = function(I) {
|
|
1532
|
+
return P(I) === m;
|
|
1533
|
+
}, Le.isPortal = function(I) {
|
|
1534
|
+
return P(I) === n;
|
|
1535
|
+
}, Le.isProfiler = function(I) {
|
|
1536
|
+
return P(I) === i;
|
|
1537
|
+
}, Le.isStrictMode = function(I) {
|
|
1538
|
+
return P(I) === a;
|
|
1539
|
+
}, Le.isSuspense = function(I) {
|
|
1540
|
+
return P(I) === f;
|
|
1541
|
+
}, Le.isValidElementType = function(I) {
|
|
1542
|
+
return typeof I == "string" || typeof I == "function" || I === r || I === l || I === i || I === a || I === f || I === h || typeof I == "object" && I !== null && (I.$$typeof === _ || I.$$typeof === m || I.$$typeof === s || I.$$typeof === u || I.$$typeof === d || I.$$typeof === O || I.$$typeof === v || I.$$typeof === L || I.$$typeof === S);
|
|
1543
1543
|
}, Le.typeOf = P, Le;
|
|
1544
1544
|
}
|
|
1545
1545
|
var De = {};
|
|
@@ -1554,17 +1554,17 @@ var De = {};
|
|
|
1554
1554
|
var cs;
|
|
1555
1555
|
function sd() {
|
|
1556
1556
|
return cs || (cs = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1557
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115,
|
|
1558
|
-
function P(
|
|
1559
|
-
return typeof
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1562
|
-
function
|
|
1563
|
-
if (typeof
|
|
1564
|
-
var
|
|
1565
|
-
switch (
|
|
1557
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
|
|
1558
|
+
function P(z) {
|
|
1559
|
+
return typeof z == "string" || typeof z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1560
|
+
z === r || z === l || z === i || z === a || z === f || z === h || typeof z == "object" && z !== null && (z.$$typeof === _ || z.$$typeof === m || z.$$typeof === s || z.$$typeof === u || z.$$typeof === d || z.$$typeof === O || z.$$typeof === v || z.$$typeof === L || z.$$typeof === S);
|
|
1561
|
+
}
|
|
1562
|
+
function $(z) {
|
|
1563
|
+
if (typeof z == "object" && z !== null) {
|
|
1564
|
+
var Ue = z.$$typeof;
|
|
1565
|
+
switch (Ue) {
|
|
1566
1566
|
case t:
|
|
1567
|
-
var We =
|
|
1567
|
+
var We = z.type;
|
|
1568
1568
|
switch (We) {
|
|
1569
1569
|
case c:
|
|
1570
1570
|
case l:
|
|
@@ -1578,60 +1578,60 @@ function sd() {
|
|
|
1578
1578
|
switch (Je) {
|
|
1579
1579
|
case u:
|
|
1580
1580
|
case d:
|
|
1581
|
-
case
|
|
1581
|
+
case _:
|
|
1582
1582
|
case m:
|
|
1583
1583
|
case s:
|
|
1584
1584
|
return Je;
|
|
1585
1585
|
default:
|
|
1586
|
-
return
|
|
1586
|
+
return Ue;
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
1589
|
case n:
|
|
1590
|
-
return
|
|
1590
|
+
return Ue;
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
var
|
|
1595
|
-
function
|
|
1596
|
-
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(
|
|
1594
|
+
var I = c, D = l, re = u, be = s, oe = t, q = d, Te = r, ee = _, B = m, F = n, J = i, fe = a, le = f, ye = !1;
|
|
1595
|
+
function He(z) {
|
|
1596
|
+
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(z) || $(z) === c;
|
|
1597
1597
|
}
|
|
1598
|
-
function g(
|
|
1599
|
-
return
|
|
1598
|
+
function g(z) {
|
|
1599
|
+
return $(z) === l;
|
|
1600
1600
|
}
|
|
1601
|
-
function Y(
|
|
1602
|
-
return
|
|
1601
|
+
function Y(z) {
|
|
1602
|
+
return $(z) === u;
|
|
1603
1603
|
}
|
|
1604
|
-
function W(
|
|
1605
|
-
return
|
|
1604
|
+
function W(z) {
|
|
1605
|
+
return $(z) === s;
|
|
1606
1606
|
}
|
|
1607
|
-
function x(
|
|
1608
|
-
return typeof
|
|
1607
|
+
function x(z) {
|
|
1608
|
+
return typeof z == "object" && z !== null && z.$$typeof === t;
|
|
1609
1609
|
}
|
|
1610
|
-
function Z(
|
|
1611
|
-
return
|
|
1610
|
+
function Z(z) {
|
|
1611
|
+
return $(z) === d;
|
|
1612
1612
|
}
|
|
1613
|
-
function ae(
|
|
1614
|
-
return
|
|
1613
|
+
function ae(z) {
|
|
1614
|
+
return $(z) === r;
|
|
1615
1615
|
}
|
|
1616
|
-
function se(
|
|
1617
|
-
return
|
|
1616
|
+
function se(z) {
|
|
1617
|
+
return $(z) === _;
|
|
1618
1618
|
}
|
|
1619
|
-
function ie(
|
|
1620
|
-
return
|
|
1619
|
+
function ie(z) {
|
|
1620
|
+
return $(z) === m;
|
|
1621
1621
|
}
|
|
1622
|
-
function Q(
|
|
1623
|
-
return
|
|
1622
|
+
function Q(z) {
|
|
1623
|
+
return $(z) === n;
|
|
1624
1624
|
}
|
|
1625
|
-
function ce(
|
|
1626
|
-
return
|
|
1625
|
+
function ce(z) {
|
|
1626
|
+
return $(z) === i;
|
|
1627
1627
|
}
|
|
1628
|
-
function ue(
|
|
1629
|
-
return
|
|
1628
|
+
function ue(z) {
|
|
1629
|
+
return $(z) === a;
|
|
1630
1630
|
}
|
|
1631
|
-
function ke(
|
|
1632
|
-
return
|
|
1631
|
+
function ke(z) {
|
|
1632
|
+
return $(z) === f;
|
|
1633
1633
|
}
|
|
1634
|
-
De.AsyncMode =
|
|
1634
|
+
De.AsyncMode = I, De.ConcurrentMode = D, De.ContextConsumer = re, De.ContextProvider = be, De.Element = oe, De.ForwardRef = q, De.Fragment = Te, De.Lazy = ee, De.Memo = B, De.Portal = F, De.Profiler = J, De.StrictMode = fe, De.Suspense = le, De.isAsyncMode = He, De.isConcurrentMode = g, De.isContextConsumer = Y, De.isContextProvider = W, De.isElement = x, De.isForwardRef = Z, De.isFragment = ae, De.isLazy = se, De.isMemo = ie, De.isPortal = Q, De.isProfiler = ce, De.isStrictMode = ue, De.isSuspense = ke, De.isValidElementType = P, De.typeOf = $;
|
|
1635
1635
|
})()), De;
|
|
1636
1636
|
}
|
|
1637
1637
|
var ls;
|
|
@@ -1677,30 +1677,30 @@ function od() {
|
|
|
1677
1677
|
type: !0
|
|
1678
1678
|
}, i = {};
|
|
1679
1679
|
i[e.ForwardRef] = r, i[e.Memo] = a;
|
|
1680
|
-
function s(
|
|
1681
|
-
return e.isMemo(
|
|
1680
|
+
function s(_) {
|
|
1681
|
+
return e.isMemo(_) ? a : i[_.$$typeof] || t;
|
|
1682
1682
|
}
|
|
1683
1683
|
var u = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, h = Object.prototype;
|
|
1684
|
-
function m(
|
|
1685
|
-
if (typeof
|
|
1684
|
+
function m(_, S, O) {
|
|
1685
|
+
if (typeof S != "string") {
|
|
1686
1686
|
if (h) {
|
|
1687
|
-
var v = f(
|
|
1688
|
-
v && v !== h && m(
|
|
1689
|
-
}
|
|
1690
|
-
var L = c(
|
|
1691
|
-
l && (L = L.concat(l(
|
|
1692
|
-
for (var P = s(
|
|
1693
|
-
var D = L[
|
|
1694
|
-
if (!n[D] && !(O && O[D]) && !(
|
|
1695
|
-
var re = d(
|
|
1687
|
+
var v = f(S);
|
|
1688
|
+
v && v !== h && m(_, v, O);
|
|
1689
|
+
}
|
|
1690
|
+
var L = c(S);
|
|
1691
|
+
l && (L = L.concat(l(S)));
|
|
1692
|
+
for (var P = s(_), $ = s(S), I = 0; I < L.length; ++I) {
|
|
1693
|
+
var D = L[I];
|
|
1694
|
+
if (!n[D] && !(O && O[D]) && !($ && $[D]) && !(P && P[D])) {
|
|
1695
|
+
var re = d(S, D);
|
|
1696
1696
|
try {
|
|
1697
|
-
u(
|
|
1697
|
+
u(_, D, re);
|
|
1698
1698
|
} catch {
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
return
|
|
1703
|
+
return _;
|
|
1704
1704
|
}
|
|
1705
1705
|
return fa = m, fa;
|
|
1706
1706
|
}
|
|
@@ -1713,40 +1713,40 @@ var Ae;
|
|
|
1713
1713
|
(function(e) {
|
|
1714
1714
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1715
1715
|
})(Ae || (Ae = {}));
|
|
1716
|
-
var
|
|
1716
|
+
var Ve;
|
|
1717
1717
|
(function(e) {
|
|
1718
1718
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1719
|
-
})(
|
|
1719
|
+
})(Ve || (Ve = {}));
|
|
1720
1720
|
var wn;
|
|
1721
1721
|
(function(e) {
|
|
1722
1722
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1723
1723
|
})(wn || (wn = {}));
|
|
1724
1724
|
function fs(e) {
|
|
1725
|
-
return e.type ===
|
|
1725
|
+
return e.type === Ve.literal;
|
|
1726
1726
|
}
|
|
1727
1727
|
function ud(e) {
|
|
1728
|
-
return e.type ===
|
|
1728
|
+
return e.type === Ve.argument;
|
|
1729
1729
|
}
|
|
1730
1730
|
function ou(e) {
|
|
1731
|
-
return e.type ===
|
|
1731
|
+
return e.type === Ve.number;
|
|
1732
1732
|
}
|
|
1733
1733
|
function uu(e) {
|
|
1734
|
-
return e.type ===
|
|
1734
|
+
return e.type === Ve.date;
|
|
1735
1735
|
}
|
|
1736
1736
|
function cu(e) {
|
|
1737
|
-
return e.type ===
|
|
1737
|
+
return e.type === Ve.time;
|
|
1738
1738
|
}
|
|
1739
1739
|
function lu(e) {
|
|
1740
|
-
return e.type ===
|
|
1740
|
+
return e.type === Ve.select;
|
|
1741
1741
|
}
|
|
1742
1742
|
function du(e) {
|
|
1743
|
-
return e.type ===
|
|
1743
|
+
return e.type === Ve.plural;
|
|
1744
1744
|
}
|
|
1745
1745
|
function cd(e) {
|
|
1746
|
-
return e.type ===
|
|
1746
|
+
return e.type === Ve.pound;
|
|
1747
1747
|
}
|
|
1748
1748
|
function fu(e) {
|
|
1749
|
-
return e.type ===
|
|
1749
|
+
return e.type === Ve.tag;
|
|
1750
1750
|
}
|
|
1751
1751
|
function hu(e) {
|
|
1752
1752
|
return !!(e && typeof e == "object" && e.type === wn.number);
|
|
@@ -3650,7 +3650,7 @@ var Dd = (
|
|
|
3650
3650
|
if (i === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3651
3651
|
var u = this.clonePosition();
|
|
3652
3652
|
this.bump(), a.push({
|
|
3653
|
-
type:
|
|
3653
|
+
type: Ve.pound,
|
|
3654
3654
|
location: ve(u, this.clonePosition())
|
|
3655
3655
|
});
|
|
3656
3656
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -3678,7 +3678,7 @@ var Dd = (
|
|
|
3678
3678
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3679
3679
|
return {
|
|
3680
3680
|
val: {
|
|
3681
|
-
type:
|
|
3681
|
+
type: Ve.literal,
|
|
3682
3682
|
value: "<".concat(a, "/>"),
|
|
3683
3683
|
location: ve(r, this.clonePosition())
|
|
3684
3684
|
},
|
|
@@ -3695,7 +3695,7 @@ var Dd = (
|
|
|
3695
3695
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
3696
3696
|
return a !== l ? this.error(Ae.UNMATCHED_CLOSING_TAG, ve(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3697
3697
|
val: {
|
|
3698
|
-
type:
|
|
3698
|
+
type: Ve.tag,
|
|
3699
3699
|
value: a,
|
|
3700
3700
|
children: s,
|
|
3701
3701
|
location: ve(r, this.clonePosition())
|
|
@@ -3732,7 +3732,7 @@ var Dd = (
|
|
|
3732
3732
|
}
|
|
3733
3733
|
var c = ve(r, this.clonePosition());
|
|
3734
3734
|
return {
|
|
3735
|
-
val: { type:
|
|
3735
|
+
val: { type: Ve.literal, value: a, location: c },
|
|
3736
3736
|
err: null
|
|
3737
3737
|
};
|
|
3738
3738
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3794,7 +3794,7 @@ var Dd = (
|
|
|
3794
3794
|
case 125:
|
|
3795
3795
|
return this.bump(), {
|
|
3796
3796
|
val: {
|
|
3797
|
-
type:
|
|
3797
|
+
type: Ve.argument,
|
|
3798
3798
|
// value does not include the opening and closing braces.
|
|
3799
3799
|
value: a,
|
|
3800
3800
|
location: ve(r, this.clonePosition())
|
|
@@ -3833,21 +3833,21 @@ var Dd = (
|
|
|
3833
3833
|
var m = ve(d, this.clonePosition());
|
|
3834
3834
|
l = { style: h, styleLocation: m };
|
|
3835
3835
|
}
|
|
3836
|
-
var
|
|
3837
|
-
if (
|
|
3838
|
-
return
|
|
3839
|
-
var
|
|
3836
|
+
var _ = this.tryParseArgumentClose(a);
|
|
3837
|
+
if (_.err)
|
|
3838
|
+
return _;
|
|
3839
|
+
var S = ve(a, this.clonePosition());
|
|
3840
3840
|
if (l && bs(l?.style, "::", 0)) {
|
|
3841
3841
|
var O = Od(l.style.slice(2));
|
|
3842
3842
|
if (u === "number") {
|
|
3843
3843
|
var f = this.parseNumberSkeletonFromString(O, l.styleLocation);
|
|
3844
3844
|
return f.err ? f : {
|
|
3845
|
-
val: { type:
|
|
3845
|
+
val: { type: Ve.number, value: r, location: S, style: f.val },
|
|
3846
3846
|
err: null
|
|
3847
3847
|
};
|
|
3848
3848
|
} else {
|
|
3849
3849
|
if (O.length === 0)
|
|
3850
|
-
return this.error(Ae.EXPECT_DATE_TIME_SKELETON,
|
|
3850
|
+
return this.error(Ae.EXPECT_DATE_TIME_SKELETON, S);
|
|
3851
3851
|
var v = O;
|
|
3852
3852
|
this.locale && (v = Ed(O, this.locale));
|
|
3853
3853
|
var h = {
|
|
@@ -3855,18 +3855,18 @@ var Dd = (
|
|
|
3855
3855
|
pattern: v,
|
|
3856
3856
|
location: l.styleLocation,
|
|
3857
3857
|
parsedOptions: this.shouldParseSkeletons ? dd(v) : {}
|
|
3858
|
-
}, L = u === "date" ?
|
|
3858
|
+
}, L = u === "date" ? Ve.date : Ve.time;
|
|
3859
3859
|
return {
|
|
3860
|
-
val: { type: L, value: r, location:
|
|
3860
|
+
val: { type: L, value: r, location: S, style: h },
|
|
3861
3861
|
err: null
|
|
3862
3862
|
};
|
|
3863
3863
|
}
|
|
3864
3864
|
}
|
|
3865
3865
|
return {
|
|
3866
3866
|
val: {
|
|
3867
|
-
type: u === "number" ?
|
|
3867
|
+
type: u === "number" ? Ve.number : u === "date" ? Ve.date : Ve.time,
|
|
3868
3868
|
value: r,
|
|
3869
|
-
location:
|
|
3869
|
+
location: S,
|
|
3870
3870
|
style: (i = l?.style) !== null && i !== void 0 ? i : null
|
|
3871
3871
|
},
|
|
3872
3872
|
err: null
|
|
@@ -3879,26 +3879,26 @@ var Dd = (
|
|
|
3879
3879
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3880
3880
|
return this.error(Ae.EXPECT_SELECT_ARGUMENT_OPTIONS, ve(P, ne({}, P)));
|
|
3881
3881
|
this.bumpSpace();
|
|
3882
|
-
var
|
|
3883
|
-
if (u !== "select" &&
|
|
3882
|
+
var $ = this.parseIdentifierIfPossible(), I = 0;
|
|
3883
|
+
if (u !== "select" && $.value === "offset") {
|
|
3884
3884
|
if (!this.bumpIf(":"))
|
|
3885
3885
|
return this.error(Ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ve(this.clonePosition(), this.clonePosition()));
|
|
3886
3886
|
this.bumpSpace();
|
|
3887
3887
|
var f = this.tryParseDecimalInteger(Ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, Ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3888
3888
|
if (f.err)
|
|
3889
3889
|
return f;
|
|
3890
|
-
this.bumpSpace(),
|
|
3890
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), I = f.val;
|
|
3891
3891
|
}
|
|
3892
|
-
var D = this.tryParsePluralOrSelectOptions(t, u, n,
|
|
3892
|
+
var D = this.tryParsePluralOrSelectOptions(t, u, n, $);
|
|
3893
3893
|
if (D.err)
|
|
3894
3894
|
return D;
|
|
3895
|
-
var
|
|
3896
|
-
if (
|
|
3897
|
-
return
|
|
3895
|
+
var _ = this.tryParseArgumentClose(a);
|
|
3896
|
+
if (_.err)
|
|
3897
|
+
return _;
|
|
3898
3898
|
var re = ve(a, this.clonePosition());
|
|
3899
3899
|
return u === "select" ? {
|
|
3900
3900
|
val: {
|
|
3901
|
-
type:
|
|
3901
|
+
type: Ve.select,
|
|
3902
3902
|
value: r,
|
|
3903
3903
|
options: gs(D.val),
|
|
3904
3904
|
location: re
|
|
@@ -3906,10 +3906,10 @@ var Dd = (
|
|
|
3906
3906
|
err: null
|
|
3907
3907
|
} : {
|
|
3908
3908
|
val: {
|
|
3909
|
-
type:
|
|
3909
|
+
type: Ve.plural,
|
|
3910
3910
|
value: r,
|
|
3911
3911
|
options: gs(D.val),
|
|
3912
|
-
offset:
|
|
3912
|
+
offset: I,
|
|
3913
3913
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3914
3914
|
location: re
|
|
3915
3915
|
},
|
|
@@ -3990,16 +3990,16 @@ var Dd = (
|
|
|
3990
3990
|
var m = this.clonePosition();
|
|
3991
3991
|
if (!this.bumpIf("{"))
|
|
3992
3992
|
return this.error(n === "select" ? Ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : Ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, ve(this.clonePosition(), this.clonePosition()));
|
|
3993
|
-
var
|
|
3994
|
-
if (S.err)
|
|
3995
|
-
return S;
|
|
3996
|
-
var _ = this.tryParseArgumentClose(m);
|
|
3993
|
+
var _ = this.parseMessage(t + 1, n, r);
|
|
3997
3994
|
if (_.err)
|
|
3998
3995
|
return _;
|
|
3996
|
+
var S = this.tryParseArgumentClose(m);
|
|
3997
|
+
if (S.err)
|
|
3998
|
+
return S;
|
|
3999
3999
|
u.push([
|
|
4000
4000
|
l,
|
|
4001
4001
|
{
|
|
4002
|
-
value:
|
|
4002
|
+
value: _.val,
|
|
4003
4003
|
location: ve(m, this.clonePosition())
|
|
4004
4004
|
}
|
|
4005
4005
|
]), c.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, d = i.location;
|
|
@@ -4276,16 +4276,16 @@ function Rr(e, t, n, r, a, i, s) {
|
|
|
4276
4276
|
continue;
|
|
4277
4277
|
}
|
|
4278
4278
|
if (fu(d)) {
|
|
4279
|
-
var
|
|
4279
|
+
var _ = d.children, S = d.value, O = a[S];
|
|
4280
4280
|
if (!Au(O))
|
|
4281
|
-
throw new $d(
|
|
4282
|
-
var v = Rr(
|
|
4283
|
-
return
|
|
4281
|
+
throw new $d(S, "function", s);
|
|
4282
|
+
var v = Rr(_, t, n, r, a, i), L = O(v.map(function(I) {
|
|
4283
|
+
return I.value;
|
|
4284
4284
|
}));
|
|
4285
|
-
Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(
|
|
4285
|
+
Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(I) {
|
|
4286
4286
|
return {
|
|
4287
|
-
type: typeof
|
|
4288
|
-
value:
|
|
4287
|
+
type: typeof I == "string" ? ot.literal : ot.object,
|
|
4288
|
+
value: I
|
|
4289
4289
|
};
|
|
4290
4290
|
}));
|
|
4291
4291
|
}
|
|
@@ -4303,8 +4303,8 @@ function Rr(e, t, n, r, a, i, s) {
|
|
|
4303
4303
|
throw new Qt(`Intl.PluralRules is not available in this environment.
|
|
4304
4304
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4305
4305
|
`, Bt.MISSING_INTL_API, s);
|
|
4306
|
-
var
|
|
4307
|
-
P = d.options[
|
|
4306
|
+
var $ = n.getPluralRules(t, { type: d.pluralType }).select(h - (d.offset || 0));
|
|
4307
|
+
P = d.options[$] || d.options.other;
|
|
4308
4308
|
}
|
|
4309
4309
|
if (!P)
|
|
4310
4310
|
throw new Ts(d.value, h, Object.keys(d.options), s);
|
|
@@ -4698,27 +4698,27 @@ function Cs(e, t) {
|
|
|
4698
4698
|
var Za = function(e, t, n, r, a) {
|
|
4699
4699
|
var i = e.locale, s = e.formats, u = e.messages, c = e.defaultLocale, l = e.defaultFormats, d = e.fallbackOnEmptyString, f = e.onError, h = e.timeZone, m = e.defaultRichTextElements;
|
|
4700
4700
|
n === void 0 && (n = { id: "" });
|
|
4701
|
-
var
|
|
4702
|
-
su(!!
|
|
4703
|
-
var O = String(
|
|
4701
|
+
var _ = n.id, S = n.defaultMessage;
|
|
4702
|
+
su(!!_, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
|
4703
|
+
var O = String(_), v = (
|
|
4704
4704
|
// In case messages is Object.create(null)
|
|
4705
4705
|
// e.g import('foo.json') from webpack)
|
|
4706
4706
|
// See https://github.com/formatjs/formatjs/issues/1914
|
|
4707
4707
|
u && Object.prototype.hasOwnProperty.call(u, O) && u[O]
|
|
4708
4708
|
);
|
|
4709
|
-
if (Array.isArray(v) && v.length === 1 && v[0].type ===
|
|
4709
|
+
if (Array.isArray(v) && v.length === 1 && v[0].type === Ve.literal)
|
|
4710
4710
|
return v[0].value;
|
|
4711
4711
|
if (!r && v && typeof v == "string" && !m)
|
|
4712
4712
|
return v.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
4713
4713
|
if (r = ne(ne({}, m), r || {}), s = Cs(s, h), l = Cs(l, h), !v) {
|
|
4714
4714
|
if (d === !1 && v === "")
|
|
4715
4715
|
return v;
|
|
4716
|
-
if ((!
|
|
4716
|
+
if ((!S || i && i.toLowerCase() !== c.toLowerCase()) && f(new Jd(n, i)), S)
|
|
4717
4717
|
try {
|
|
4718
|
-
var L = t.getMessageFormat(
|
|
4718
|
+
var L = t.getMessageFormat(S, c, l, a);
|
|
4719
4719
|
return L.format(r);
|
|
4720
4720
|
} catch (P) {
|
|
4721
|
-
return f(new pa('Error formatting default message for: "'.concat(O, '", rendering default message verbatim'), i, n, P)), typeof
|
|
4721
|
+
return f(new pa('Error formatting default message for: "'.concat(O, '", rendering default message verbatim'), i, n, P)), typeof S == "string" ? S : O;
|
|
4722
4722
|
}
|
|
4723
4723
|
return O;
|
|
4724
4724
|
}
|
|
@@ -4726,16 +4726,16 @@ var Za = function(e, t, n, r, a) {
|
|
|
4726
4726
|
var L = t.getMessageFormat(v, i, s, ne({ formatters: t }, a || {}));
|
|
4727
4727
|
return L.format(r);
|
|
4728
4728
|
} catch (P) {
|
|
4729
|
-
f(new pa('Error formatting message: "'.concat(O, '", using ').concat(
|
|
4729
|
+
f(new pa('Error formatting message: "'.concat(O, '", using ').concat(S ? "default message" : "id", " as fallback."), i, n, P));
|
|
4730
4730
|
}
|
|
4731
|
-
if (
|
|
4731
|
+
if (S)
|
|
4732
4732
|
try {
|
|
4733
|
-
var L = t.getMessageFormat(
|
|
4733
|
+
var L = t.getMessageFormat(S, c, l, a);
|
|
4734
4734
|
return L.format(r);
|
|
4735
4735
|
} catch (P) {
|
|
4736
4736
|
f(new pa('Error formatting the default message for: "'.concat(O, '", rendering message verbatim'), i, n, P));
|
|
4737
4737
|
}
|
|
4738
|
-
return typeof v == "string" ? v : typeof
|
|
4738
|
+
return typeof v == "string" ? v : typeof S == "string" ? S : O;
|
|
4739
4739
|
}, Nu = [
|
|
4740
4740
|
"formatMatcher",
|
|
4741
4741
|
"timeZone",
|
|
@@ -5299,7 +5299,7 @@ St.prototype.commaOrSpaceSeparated = !1;
|
|
|
5299
5299
|
St.prototype.mustUseProperty = !1;
|
|
5300
5300
|
St.prototype.defined = !1;
|
|
5301
5301
|
let Bf = 0;
|
|
5302
|
-
const ge = hn(), Qe = hn(), Bu = hn(),
|
|
5302
|
+
const ge = hn(), Qe = hn(), Bu = hn(), V = hn(), Me = hn(), vn = hn(), ft = hn();
|
|
5303
5303
|
function hn() {
|
|
5304
5304
|
return 2 ** ++Bf;
|
|
5305
5305
|
}
|
|
@@ -5309,7 +5309,7 @@ const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5309
5309
|
booleanish: Qe,
|
|
5310
5310
|
commaOrSpaceSeparated: ft,
|
|
5311
5311
|
commaSeparated: vn,
|
|
5312
|
-
number:
|
|
5312
|
+
number: V,
|
|
5313
5313
|
overloadedBoolean: Bu,
|
|
5314
5314
|
spaceSeparated: Me
|
|
5315
5315
|
}, Symbol.toStringTag, { value: "Module" })), Ea = Object.keys(ni);
|
|
@@ -5392,9 +5392,9 @@ const Vu = Dn({
|
|
|
5392
5392
|
ariaAutoComplete: null,
|
|
5393
5393
|
ariaBusy: Qe,
|
|
5394
5394
|
ariaChecked: Qe,
|
|
5395
|
-
ariaColCount:
|
|
5396
|
-
ariaColIndex:
|
|
5397
|
-
ariaColSpan:
|
|
5395
|
+
ariaColCount: V,
|
|
5396
|
+
ariaColIndex: V,
|
|
5397
|
+
ariaColSpan: V,
|
|
5398
5398
|
ariaControls: Me,
|
|
5399
5399
|
ariaCurrent: null,
|
|
5400
5400
|
ariaDescribedBy: Me,
|
|
@@ -5411,7 +5411,7 @@ const Vu = Dn({
|
|
|
5411
5411
|
ariaKeyShortcuts: null,
|
|
5412
5412
|
ariaLabel: null,
|
|
5413
5413
|
ariaLabelledBy: Me,
|
|
5414
|
-
ariaLevel:
|
|
5414
|
+
ariaLevel: V,
|
|
5415
5415
|
ariaLive: null,
|
|
5416
5416
|
ariaModal: Qe,
|
|
5417
5417
|
ariaMultiLine: Qe,
|
|
@@ -5419,21 +5419,21 @@ const Vu = Dn({
|
|
|
5419
5419
|
ariaOrientation: null,
|
|
5420
5420
|
ariaOwns: Me,
|
|
5421
5421
|
ariaPlaceholder: null,
|
|
5422
|
-
ariaPosInSet:
|
|
5422
|
+
ariaPosInSet: V,
|
|
5423
5423
|
ariaPressed: Qe,
|
|
5424
5424
|
ariaReadOnly: Qe,
|
|
5425
5425
|
ariaRelevant: null,
|
|
5426
5426
|
ariaRequired: Qe,
|
|
5427
5427
|
ariaRoleDescription: Me,
|
|
5428
|
-
ariaRowCount:
|
|
5429
|
-
ariaRowIndex:
|
|
5430
|
-
ariaRowSpan:
|
|
5428
|
+
ariaRowCount: V,
|
|
5429
|
+
ariaRowIndex: V,
|
|
5430
|
+
ariaRowSpan: V,
|
|
5431
5431
|
ariaSelected: Qe,
|
|
5432
|
-
ariaSetSize:
|
|
5432
|
+
ariaSetSize: V,
|
|
5433
5433
|
ariaSort: null,
|
|
5434
|
-
ariaValueMax:
|
|
5435
|
-
ariaValueMin:
|
|
5436
|
-
ariaValueNow:
|
|
5434
|
+
ariaValueMax: V,
|
|
5435
|
+
ariaValueMin: V,
|
|
5436
|
+
ariaValueNow: V,
|
|
5437
5437
|
ariaValueText: null,
|
|
5438
5438
|
role: null
|
|
5439
5439
|
}
|
|
@@ -5471,13 +5471,13 @@ const Vu = Dn({
|
|
|
5471
5471
|
checked: ge,
|
|
5472
5472
|
cite: null,
|
|
5473
5473
|
className: Me,
|
|
5474
|
-
cols:
|
|
5474
|
+
cols: V,
|
|
5475
5475
|
colSpan: null,
|
|
5476
5476
|
content: null,
|
|
5477
5477
|
contentEditable: Qe,
|
|
5478
5478
|
controls: ge,
|
|
5479
5479
|
controlsList: Me,
|
|
5480
|
-
coords:
|
|
5480
|
+
coords: V | vn,
|
|
5481
5481
|
crossOrigin: null,
|
|
5482
5482
|
data: null,
|
|
5483
5483
|
dateTime: null,
|
|
@@ -5499,9 +5499,9 @@ const Vu = Dn({
|
|
|
5499
5499
|
formNoValidate: ge,
|
|
5500
5500
|
formTarget: null,
|
|
5501
5501
|
headers: Me,
|
|
5502
|
-
height:
|
|
5502
|
+
height: V,
|
|
5503
5503
|
hidden: ge,
|
|
5504
|
-
high:
|
|
5504
|
+
high: V,
|
|
5505
5505
|
href: null,
|
|
5506
5506
|
hrefLang: null,
|
|
5507
5507
|
htmlFor: Me,
|
|
@@ -5526,14 +5526,14 @@ const Vu = Dn({
|
|
|
5526
5526
|
list: null,
|
|
5527
5527
|
loading: null,
|
|
5528
5528
|
loop: ge,
|
|
5529
|
-
low:
|
|
5529
|
+
low: V,
|
|
5530
5530
|
manifest: null,
|
|
5531
5531
|
max: null,
|
|
5532
|
-
maxLength:
|
|
5532
|
+
maxLength: V,
|
|
5533
5533
|
media: null,
|
|
5534
5534
|
method: null,
|
|
5535
5535
|
min: null,
|
|
5536
|
-
minLength:
|
|
5536
|
+
minLength: V,
|
|
5537
5537
|
multiple: ge,
|
|
5538
5538
|
muted: ge,
|
|
5539
5539
|
name: null,
|
|
@@ -5629,7 +5629,7 @@ const Vu = Dn({
|
|
|
5629
5629
|
onWaiting: null,
|
|
5630
5630
|
onWheel: null,
|
|
5631
5631
|
open: ge,
|
|
5632
|
-
optimum:
|
|
5632
|
+
optimum: V,
|
|
5633
5633
|
pattern: null,
|
|
5634
5634
|
ping: Me,
|
|
5635
5635
|
placeholder: null,
|
|
@@ -5644,8 +5644,8 @@ const Vu = Dn({
|
|
|
5644
5644
|
rel: Me,
|
|
5645
5645
|
required: ge,
|
|
5646
5646
|
reversed: ge,
|
|
5647
|
-
rows:
|
|
5648
|
-
rowSpan:
|
|
5647
|
+
rows: V,
|
|
5648
|
+
rowSpan: V,
|
|
5649
5649
|
sandbox: Me,
|
|
5650
5650
|
scope: null,
|
|
5651
5651
|
scoped: ge,
|
|
@@ -5654,19 +5654,19 @@ const Vu = Dn({
|
|
|
5654
5654
|
shadowRootDelegatesFocus: ge,
|
|
5655
5655
|
shadowRootMode: null,
|
|
5656
5656
|
shape: null,
|
|
5657
|
-
size:
|
|
5657
|
+
size: V,
|
|
5658
5658
|
sizes: null,
|
|
5659
5659
|
slot: null,
|
|
5660
|
-
span:
|
|
5660
|
+
span: V,
|
|
5661
5661
|
spellCheck: Qe,
|
|
5662
5662
|
src: null,
|
|
5663
5663
|
srcDoc: null,
|
|
5664
5664
|
srcLang: null,
|
|
5665
5665
|
srcSet: null,
|
|
5666
|
-
start:
|
|
5666
|
+
start: V,
|
|
5667
5667
|
step: null,
|
|
5668
5668
|
style: null,
|
|
5669
|
-
tabIndex:
|
|
5669
|
+
tabIndex: V,
|
|
5670
5670
|
target: null,
|
|
5671
5671
|
title: null,
|
|
5672
5672
|
translate: null,
|
|
@@ -5674,7 +5674,7 @@ const Vu = Dn({
|
|
|
5674
5674
|
typeMustMatch: ge,
|
|
5675
5675
|
useMap: null,
|
|
5676
5676
|
value: Qe,
|
|
5677
|
-
width:
|
|
5677
|
+
width: V,
|
|
5678
5678
|
wrap: null,
|
|
5679
5679
|
// Legacy.
|
|
5680
5680
|
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
|
@@ -5690,11 +5690,11 @@ const Vu = Dn({
|
|
|
5690
5690
|
// `<body>`. Use CSS `background-image` instead
|
|
5691
5691
|
bgColor: null,
|
|
5692
5692
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
5693
|
-
border:
|
|
5693
|
+
border: V,
|
|
5694
5694
|
// `<table>`. Use CSS `border-width` instead,
|
|
5695
5695
|
borderColor: null,
|
|
5696
5696
|
// `<table>`. Use CSS `border-color` instead,
|
|
5697
|
-
bottomMargin:
|
|
5697
|
+
bottomMargin: V,
|
|
5698
5698
|
// `<body>`
|
|
5699
5699
|
cellPadding: null,
|
|
5700
5700
|
// `<table>`
|
|
@@ -5728,9 +5728,9 @@ const Vu = Dn({
|
|
|
5728
5728
|
// `<table>`
|
|
5729
5729
|
frameBorder: null,
|
|
5730
5730
|
// `<iframe>`. Use CSS `border` instead
|
|
5731
|
-
hSpace:
|
|
5731
|
+
hSpace: V,
|
|
5732
5732
|
// `<img>` and `<object>`
|
|
5733
|
-
leftMargin:
|
|
5733
|
+
leftMargin: V,
|
|
5734
5734
|
// `<body>`
|
|
5735
5735
|
link: null,
|
|
5736
5736
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -5738,9 +5738,9 @@ const Vu = Dn({
|
|
|
5738
5738
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
5739
5739
|
lowSrc: null,
|
|
5740
5740
|
// `<img>`. Use a `<picture>`
|
|
5741
|
-
marginHeight:
|
|
5741
|
+
marginHeight: V,
|
|
5742
5742
|
// `<body>`
|
|
5743
|
-
marginWidth:
|
|
5743
|
+
marginWidth: V,
|
|
5744
5744
|
// `<body>`
|
|
5745
5745
|
noResize: ge,
|
|
5746
5746
|
// `<frame>`
|
|
@@ -5758,7 +5758,7 @@ const Vu = Dn({
|
|
|
5758
5758
|
// `<isindex>`
|
|
5759
5759
|
rev: null,
|
|
5760
5760
|
// `<link>`
|
|
5761
|
-
rightMargin:
|
|
5761
|
+
rightMargin: V,
|
|
5762
5762
|
// `<body>`
|
|
5763
5763
|
rules: null,
|
|
5764
5764
|
// `<table>`
|
|
@@ -5772,7 +5772,7 @@ const Vu = Dn({
|
|
|
5772
5772
|
// `<table>`
|
|
5773
5773
|
text: null,
|
|
5774
5774
|
// `<body>`. Use CSS `color` instead
|
|
5775
|
-
topMargin:
|
|
5775
|
+
topMargin: V,
|
|
5776
5776
|
// `<body>`
|
|
5777
5777
|
valueType: null,
|
|
5778
5778
|
// `<param>`
|
|
@@ -5782,7 +5782,7 @@ const Vu = Dn({
|
|
|
5782
5782
|
// Several. Use CSS `vertical-align` instead
|
|
5783
5783
|
vLink: null,
|
|
5784
5784
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
5785
|
-
vSpace:
|
|
5785
|
+
vSpace: V,
|
|
5786
5786
|
// `<img>` and `<object>`
|
|
5787
5787
|
// Non-standard Properties.
|
|
5788
5788
|
allowTransparency: null,
|
|
@@ -5792,7 +5792,7 @@ const Vu = Dn({
|
|
|
5792
5792
|
disableRemotePlayback: ge,
|
|
5793
5793
|
prefix: null,
|
|
5794
5794
|
property: null,
|
|
5795
|
-
results:
|
|
5795
|
+
results: V,
|
|
5796
5796
|
security: null,
|
|
5797
5797
|
unselectable: null
|
|
5798
5798
|
}
|
|
@@ -5976,27 +5976,27 @@ const Vu = Dn({
|
|
|
5976
5976
|
transform: Uu,
|
|
5977
5977
|
properties: {
|
|
5978
5978
|
about: ft,
|
|
5979
|
-
accentHeight:
|
|
5979
|
+
accentHeight: V,
|
|
5980
5980
|
accumulate: null,
|
|
5981
5981
|
additive: null,
|
|
5982
5982
|
alignmentBaseline: null,
|
|
5983
|
-
alphabetic:
|
|
5984
|
-
amplitude:
|
|
5983
|
+
alphabetic: V,
|
|
5984
|
+
amplitude: V,
|
|
5985
5985
|
arabicForm: null,
|
|
5986
|
-
ascent:
|
|
5986
|
+
ascent: V,
|
|
5987
5987
|
attributeName: null,
|
|
5988
5988
|
attributeType: null,
|
|
5989
|
-
azimuth:
|
|
5989
|
+
azimuth: V,
|
|
5990
5990
|
bandwidth: null,
|
|
5991
5991
|
baselineShift: null,
|
|
5992
5992
|
baseFrequency: null,
|
|
5993
5993
|
baseProfile: null,
|
|
5994
5994
|
bbox: null,
|
|
5995
5995
|
begin: null,
|
|
5996
|
-
bias:
|
|
5996
|
+
bias: V,
|
|
5997
5997
|
by: null,
|
|
5998
5998
|
calcMode: null,
|
|
5999
|
-
capHeight:
|
|
5999
|
+
capHeight: V,
|
|
6000
6000
|
className: Me,
|
|
6001
6001
|
clip: null,
|
|
6002
6002
|
clipPath: null,
|
|
@@ -6017,26 +6017,26 @@ const Vu = Dn({
|
|
|
6017
6017
|
d: null,
|
|
6018
6018
|
dataType: null,
|
|
6019
6019
|
defaultAction: null,
|
|
6020
|
-
descent:
|
|
6021
|
-
diffuseConstant:
|
|
6020
|
+
descent: V,
|
|
6021
|
+
diffuseConstant: V,
|
|
6022
6022
|
direction: null,
|
|
6023
6023
|
display: null,
|
|
6024
6024
|
dur: null,
|
|
6025
|
-
divisor:
|
|
6025
|
+
divisor: V,
|
|
6026
6026
|
dominantBaseline: null,
|
|
6027
6027
|
download: ge,
|
|
6028
6028
|
dx: null,
|
|
6029
6029
|
dy: null,
|
|
6030
6030
|
edgeMode: null,
|
|
6031
6031
|
editable: null,
|
|
6032
|
-
elevation:
|
|
6032
|
+
elevation: V,
|
|
6033
6033
|
enableBackground: null,
|
|
6034
6034
|
end: null,
|
|
6035
6035
|
event: null,
|
|
6036
|
-
exponent:
|
|
6036
|
+
exponent: V,
|
|
6037
6037
|
externalResourcesRequired: null,
|
|
6038
6038
|
fill: null,
|
|
6039
|
-
fillOpacity:
|
|
6039
|
+
fillOpacity: V,
|
|
6040
6040
|
fillRule: null,
|
|
6041
6041
|
filter: null,
|
|
6042
6042
|
filterRes: null,
|
|
@@ -6066,27 +6066,27 @@ const Vu = Dn({
|
|
|
6066
6066
|
gradientTransform: null,
|
|
6067
6067
|
gradientUnits: null,
|
|
6068
6068
|
handler: null,
|
|
6069
|
-
hanging:
|
|
6069
|
+
hanging: V,
|
|
6070
6070
|
hatchContentUnits: null,
|
|
6071
6071
|
hatchUnits: null,
|
|
6072
6072
|
height: null,
|
|
6073
6073
|
href: null,
|
|
6074
6074
|
hrefLang: null,
|
|
6075
|
-
horizAdvX:
|
|
6076
|
-
horizOriginX:
|
|
6077
|
-
horizOriginY:
|
|
6075
|
+
horizAdvX: V,
|
|
6076
|
+
horizOriginX: V,
|
|
6077
|
+
horizOriginY: V,
|
|
6078
6078
|
id: null,
|
|
6079
|
-
ideographic:
|
|
6079
|
+
ideographic: V,
|
|
6080
6080
|
imageRendering: null,
|
|
6081
6081
|
initialVisibility: null,
|
|
6082
6082
|
in: null,
|
|
6083
6083
|
in2: null,
|
|
6084
|
-
intercept:
|
|
6085
|
-
k:
|
|
6086
|
-
k1:
|
|
6087
|
-
k2:
|
|
6088
|
-
k3:
|
|
6089
|
-
k4:
|
|
6084
|
+
intercept: V,
|
|
6085
|
+
k: V,
|
|
6086
|
+
k1: V,
|
|
6087
|
+
k2: V,
|
|
6088
|
+
k3: V,
|
|
6089
|
+
k4: V,
|
|
6090
6090
|
kernelMatrix: ft,
|
|
6091
6091
|
kernelUnitLength: null,
|
|
6092
6092
|
keyPoints: null,
|
|
@@ -6100,7 +6100,7 @@ const Vu = Dn({
|
|
|
6100
6100
|
lengthAdjust: null,
|
|
6101
6101
|
letterSpacing: null,
|
|
6102
6102
|
lightingColor: null,
|
|
6103
|
-
limitingConeAngle:
|
|
6103
|
+
limitingConeAngle: V,
|
|
6104
6104
|
local: null,
|
|
6105
6105
|
markerEnd: null,
|
|
6106
6106
|
markerMid: null,
|
|
@@ -6116,7 +6116,7 @@ const Vu = Dn({
|
|
|
6116
6116
|
media: null,
|
|
6117
6117
|
mediaCharacterEncoding: null,
|
|
6118
6118
|
mediaContentEncodings: null,
|
|
6119
|
-
mediaSize:
|
|
6119
|
+
mediaSize: V,
|
|
6120
6120
|
mediaTime: null,
|
|
6121
6121
|
method: null,
|
|
6122
6122
|
min: null,
|
|
@@ -6222,12 +6222,12 @@ const Vu = Dn({
|
|
|
6222
6222
|
origin: null,
|
|
6223
6223
|
overflow: null,
|
|
6224
6224
|
overlay: null,
|
|
6225
|
-
overlinePosition:
|
|
6226
|
-
overlineThickness:
|
|
6225
|
+
overlinePosition: V,
|
|
6226
|
+
overlineThickness: V,
|
|
6227
6227
|
paintOrder: null,
|
|
6228
6228
|
panose1: null,
|
|
6229
6229
|
path: null,
|
|
6230
|
-
pathLength:
|
|
6230
|
+
pathLength: V,
|
|
6231
6231
|
patternContentUnits: null,
|
|
6232
6232
|
patternTransform: null,
|
|
6233
6233
|
patternUnits: null,
|
|
@@ -6237,9 +6237,9 @@ const Vu = Dn({
|
|
|
6237
6237
|
playbackOrder: null,
|
|
6238
6238
|
pointerEvents: null,
|
|
6239
6239
|
points: null,
|
|
6240
|
-
pointsAtX:
|
|
6241
|
-
pointsAtY:
|
|
6242
|
-
pointsAtZ:
|
|
6240
|
+
pointsAtX: V,
|
|
6241
|
+
pointsAtY: V,
|
|
6242
|
+
pointsAtZ: V,
|
|
6243
6243
|
preserveAlpha: null,
|
|
6244
6244
|
preserveAspectRatio: null,
|
|
6245
6245
|
primitiveUnits: null,
|
|
@@ -6271,8 +6271,8 @@ const Vu = Dn({
|
|
|
6271
6271
|
side: null,
|
|
6272
6272
|
slope: null,
|
|
6273
6273
|
snapshotTime: null,
|
|
6274
|
-
specularConstant:
|
|
6275
|
-
specularExponent:
|
|
6274
|
+
specularConstant: V,
|
|
6275
|
+
specularExponent: V,
|
|
6276
6276
|
spreadMethod: null,
|
|
6277
6277
|
spacing: null,
|
|
6278
6278
|
startOffset: null,
|
|
@@ -6282,30 +6282,30 @@ const Vu = Dn({
|
|
|
6282
6282
|
stitchTiles: null,
|
|
6283
6283
|
stopColor: null,
|
|
6284
6284
|
stopOpacity: null,
|
|
6285
|
-
strikethroughPosition:
|
|
6286
|
-
strikethroughThickness:
|
|
6285
|
+
strikethroughPosition: V,
|
|
6286
|
+
strikethroughThickness: V,
|
|
6287
6287
|
string: null,
|
|
6288
6288
|
stroke: null,
|
|
6289
6289
|
strokeDashArray: ft,
|
|
6290
6290
|
strokeDashOffset: null,
|
|
6291
6291
|
strokeLineCap: null,
|
|
6292
6292
|
strokeLineJoin: null,
|
|
6293
|
-
strokeMiterLimit:
|
|
6294
|
-
strokeOpacity:
|
|
6293
|
+
strokeMiterLimit: V,
|
|
6294
|
+
strokeOpacity: V,
|
|
6295
6295
|
strokeWidth: null,
|
|
6296
6296
|
style: null,
|
|
6297
|
-
surfaceScale:
|
|
6297
|
+
surfaceScale: V,
|
|
6298
6298
|
syncBehavior: null,
|
|
6299
6299
|
syncBehaviorDefault: null,
|
|
6300
6300
|
syncMaster: null,
|
|
6301
6301
|
syncTolerance: null,
|
|
6302
6302
|
syncToleranceDefault: null,
|
|
6303
6303
|
systemLanguage: ft,
|
|
6304
|
-
tabIndex:
|
|
6304
|
+
tabIndex: V,
|
|
6305
6305
|
tableValues: null,
|
|
6306
6306
|
target: null,
|
|
6307
|
-
targetX:
|
|
6308
|
-
targetY:
|
|
6307
|
+
targetX: V,
|
|
6308
|
+
targetY: V,
|
|
6309
6309
|
textAnchor: null,
|
|
6310
6310
|
textDecoration: null,
|
|
6311
6311
|
textRendering: null,
|
|
@@ -6320,22 +6320,22 @@ const Vu = Dn({
|
|
|
6320
6320
|
transformOrigin: null,
|
|
6321
6321
|
u1: null,
|
|
6322
6322
|
u2: null,
|
|
6323
|
-
underlinePosition:
|
|
6324
|
-
underlineThickness:
|
|
6323
|
+
underlinePosition: V,
|
|
6324
|
+
underlineThickness: V,
|
|
6325
6325
|
unicode: null,
|
|
6326
6326
|
unicodeBidi: null,
|
|
6327
6327
|
unicodeRange: null,
|
|
6328
|
-
unitsPerEm:
|
|
6328
|
+
unitsPerEm: V,
|
|
6329
6329
|
values: null,
|
|
6330
|
-
vAlphabetic:
|
|
6331
|
-
vMathematical:
|
|
6330
|
+
vAlphabetic: V,
|
|
6331
|
+
vMathematical: V,
|
|
6332
6332
|
vectorEffect: null,
|
|
6333
|
-
vHanging:
|
|
6334
|
-
vIdeographic:
|
|
6333
|
+
vHanging: V,
|
|
6334
|
+
vIdeographic: V,
|
|
6335
6335
|
version: null,
|
|
6336
|
-
vertAdvY:
|
|
6337
|
-
vertOriginX:
|
|
6338
|
-
vertOriginY:
|
|
6336
|
+
vertAdvY: V,
|
|
6337
|
+
vertOriginX: V,
|
|
6338
|
+
vertOriginY: V,
|
|
6339
6339
|
viewBox: null,
|
|
6340
6340
|
viewTarget: null,
|
|
6341
6341
|
visibility: null,
|
|
@@ -6347,7 +6347,7 @@ const Vu = Dn({
|
|
|
6347
6347
|
x1: null,
|
|
6348
6348
|
x2: null,
|
|
6349
6349
|
xChannelSelector: null,
|
|
6350
|
-
xHeight:
|
|
6350
|
+
xHeight: V,
|
|
6351
6351
|
y: null,
|
|
6352
6352
|
y1: null,
|
|
6353
6353
|
y2: null,
|
|
@@ -6414,10 +6414,10 @@ function Gf() {
|
|
|
6414
6414
|
Ls = 1;
|
|
6415
6415
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, a = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, u = /^\s+|\s+$/g, c = `
|
|
6416
6416
|
`, l = "/", d = "*", f = "", h = "comment", m = "declaration";
|
|
6417
|
-
Ta = function(
|
|
6418
|
-
if (typeof
|
|
6417
|
+
Ta = function(S, O) {
|
|
6418
|
+
if (typeof S != "string")
|
|
6419
6419
|
throw new TypeError("First argument must be a string");
|
|
6420
|
-
if (!
|
|
6420
|
+
if (!S) return [];
|
|
6421
6421
|
O = O || {};
|
|
6422
6422
|
var v = 1, L = 1;
|
|
6423
6423
|
function P(B) {
|
|
@@ -6426,27 +6426,27 @@ function Gf() {
|
|
|
6426
6426
|
var J = B.lastIndexOf(c);
|
|
6427
6427
|
L = ~J ? B.length - J : L + B.length;
|
|
6428
6428
|
}
|
|
6429
|
-
function
|
|
6429
|
+
function $() {
|
|
6430
6430
|
var B = { line: v, column: L };
|
|
6431
6431
|
return function(F) {
|
|
6432
|
-
return F.position = new
|
|
6432
|
+
return F.position = new I(B), be(), F;
|
|
6433
6433
|
};
|
|
6434
6434
|
}
|
|
6435
|
-
function
|
|
6435
|
+
function I(B) {
|
|
6436
6436
|
this.start = B, this.end = { line: v, column: L }, this.source = O.source;
|
|
6437
6437
|
}
|
|
6438
|
-
|
|
6438
|
+
I.prototype.content = S;
|
|
6439
6439
|
function D(B) {
|
|
6440
6440
|
var F = new Error(
|
|
6441
6441
|
O.source + ":" + v + ":" + L + ": " + B
|
|
6442
6442
|
);
|
|
6443
|
-
if (F.reason = B, F.filename = O.source, F.line = v, F.column = L, F.source =
|
|
6443
|
+
if (F.reason = B, F.filename = O.source, F.line = v, F.column = L, F.source = S, !O.silent) throw F;
|
|
6444
6444
|
}
|
|
6445
6445
|
function re(B) {
|
|
6446
|
-
var F = B.exec(
|
|
6446
|
+
var F = B.exec(S);
|
|
6447
6447
|
if (F) {
|
|
6448
6448
|
var J = F[0];
|
|
6449
|
-
return P(J),
|
|
6449
|
+
return P(J), S = S.slice(J.length), F;
|
|
6450
6450
|
}
|
|
6451
6451
|
}
|
|
6452
6452
|
function be() {
|
|
@@ -6459,27 +6459,27 @@ function Gf() {
|
|
|
6459
6459
|
return B;
|
|
6460
6460
|
}
|
|
6461
6461
|
function q() {
|
|
6462
|
-
var B =
|
|
6463
|
-
if (!(l !=
|
|
6464
|
-
for (var F = 2; f !=
|
|
6462
|
+
var B = $();
|
|
6463
|
+
if (!(l != S.charAt(0) || d != S.charAt(1))) {
|
|
6464
|
+
for (var F = 2; f != S.charAt(F) && (d != S.charAt(F) || l != S.charAt(F + 1)); )
|
|
6465
6465
|
++F;
|
|
6466
|
-
if (F += 2, f ===
|
|
6466
|
+
if (F += 2, f === S.charAt(F - 1))
|
|
6467
6467
|
return D("End of comment missing");
|
|
6468
|
-
var J =
|
|
6469
|
-
return L += 2, P(J),
|
|
6468
|
+
var J = S.slice(2, F - 2);
|
|
6469
|
+
return L += 2, P(J), S = S.slice(F), L += 2, B({
|
|
6470
6470
|
type: h,
|
|
6471
6471
|
comment: J
|
|
6472
6472
|
});
|
|
6473
6473
|
}
|
|
6474
6474
|
}
|
|
6475
6475
|
function Te() {
|
|
6476
|
-
var B =
|
|
6476
|
+
var B = $(), F = re(r);
|
|
6477
6477
|
if (F) {
|
|
6478
6478
|
if (q(), !re(a)) return D("property missing ':'");
|
|
6479
6479
|
var J = re(i), fe = B({
|
|
6480
6480
|
type: m,
|
|
6481
|
-
property:
|
|
6482
|
-
value: J ?
|
|
6481
|
+
property: _(F[0].replace(e, f)),
|
|
6482
|
+
value: J ? _(J[0].replace(e, f)) : f
|
|
6483
6483
|
});
|
|
6484
6484
|
return re(s), fe;
|
|
6485
6485
|
}
|
|
@@ -6493,8 +6493,8 @@ function Gf() {
|
|
|
6493
6493
|
}
|
|
6494
6494
|
return be(), ee();
|
|
6495
6495
|
};
|
|
6496
|
-
function S
|
|
6497
|
-
return
|
|
6496
|
+
function _(S) {
|
|
6497
|
+
return S ? S.replace(u, f) : f;
|
|
6498
6498
|
}
|
|
6499
6499
|
return Ta;
|
|
6500
6500
|
}
|
|
@@ -7677,12 +7677,12 @@ function Dh(e) {
|
|
|
7677
7677
|
return u;
|
|
7678
7678
|
function u(P) {
|
|
7679
7679
|
if (r < n.length) {
|
|
7680
|
-
const
|
|
7681
|
-
return t.containerState =
|
|
7682
|
-
|
|
7680
|
+
const $ = n[r];
|
|
7681
|
+
return t.containerState = $[1], A(
|
|
7682
|
+
$[0].continuation,
|
|
7683
7683
|
"expected `continuation` to be defined on container construct"
|
|
7684
7684
|
), e.attempt(
|
|
7685
|
-
|
|
7685
|
+
$[0].continuation,
|
|
7686
7686
|
c,
|
|
7687
7687
|
l
|
|
7688
7688
|
)(P);
|
|
@@ -7695,22 +7695,22 @@ function Dh(e) {
|
|
|
7695
7695
|
"expected `containerState` to be defined after continuation"
|
|
7696
7696
|
), r++, t.containerState._closeFlow) {
|
|
7697
7697
|
t.containerState._closeFlow = void 0, a && L();
|
|
7698
|
-
const
|
|
7699
|
-
let
|
|
7700
|
-
for (;
|
|
7701
|
-
if (t.events[
|
|
7702
|
-
D = t.events[
|
|
7698
|
+
const $ = t.events.length;
|
|
7699
|
+
let I = $, D;
|
|
7700
|
+
for (; I--; )
|
|
7701
|
+
if (t.events[I][0] === "exit" && t.events[I][1].type === p.chunkFlow) {
|
|
7702
|
+
D = t.events[I][1].end;
|
|
7703
7703
|
break;
|
|
7704
7704
|
}
|
|
7705
7705
|
A(D, "could not find previous flow chunk"), v(r);
|
|
7706
|
-
let re =
|
|
7706
|
+
let re = $;
|
|
7707
7707
|
for (; re < t.events.length; )
|
|
7708
7708
|
t.events[re][1].end = Object.assign({}, D), re++;
|
|
7709
7709
|
return Ft(
|
|
7710
7710
|
t.events,
|
|
7711
|
-
|
|
7711
|
+
I + 1,
|
|
7712
7712
|
0,
|
|
7713
|
-
t.events.slice(
|
|
7713
|
+
t.events.slice($)
|
|
7714
7714
|
), t.events.length = re, l(P);
|
|
7715
7715
|
}
|
|
7716
7716
|
return u(P);
|
|
@@ -7720,7 +7720,7 @@ function Dh(e) {
|
|
|
7720
7720
|
if (!a)
|
|
7721
7721
|
return h(P);
|
|
7722
7722
|
if (a.currentConstruct && a.currentConstruct.concrete)
|
|
7723
|
-
return
|
|
7723
|
+
return _(P);
|
|
7724
7724
|
t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
|
|
7725
7725
|
}
|
|
7726
7726
|
return t.containerState = {}, e.check(
|
|
@@ -7733,13 +7733,13 @@ function Dh(e) {
|
|
|
7733
7733
|
return a && L(), v(r), h(P);
|
|
7734
7734
|
}
|
|
7735
7735
|
function f(P) {
|
|
7736
|
-
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset,
|
|
7736
|
+
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, _(P);
|
|
7737
7737
|
}
|
|
7738
7738
|
function h(P) {
|
|
7739
7739
|
return t.containerState = {}, e.attempt(
|
|
7740
7740
|
Us,
|
|
7741
7741
|
m,
|
|
7742
|
-
|
|
7742
|
+
_
|
|
7743
7743
|
)(P);
|
|
7744
7744
|
}
|
|
7745
7745
|
function m(P) {
|
|
@@ -7751,7 +7751,7 @@ function Dh(e) {
|
|
|
7751
7751
|
"expected `containerState` to be defined on tokenizer"
|
|
7752
7752
|
), r++, n.push([t.currentConstruct, t.containerState]), h(P);
|
|
7753
7753
|
}
|
|
7754
|
-
function
|
|
7754
|
+
function _(P) {
|
|
7755
7755
|
if (P === b.eof) {
|
|
7756
7756
|
a && L(), v(0), e.consume(P);
|
|
7757
7757
|
return;
|
|
@@ -7760,19 +7760,19 @@ function Dh(e) {
|
|
|
7760
7760
|
contentType: K.contentTypeFlow,
|
|
7761
7761
|
previous: i,
|
|
7762
7762
|
_tokenizer: a
|
|
7763
|
-
}),
|
|
7763
|
+
}), S(P);
|
|
7764
7764
|
}
|
|
7765
|
-
function
|
|
7765
|
+
function S(P) {
|
|
7766
7766
|
if (P === b.eof) {
|
|
7767
7767
|
O(e.exit(p.chunkFlow), !0), v(0), e.consume(P);
|
|
7768
7768
|
return;
|
|
7769
7769
|
}
|
|
7770
|
-
return te(P) ? (e.consume(P), O(e.exit(p.chunkFlow)), r = 0, t.interrupt = void 0, u) : (e.consume(P),
|
|
7770
|
+
return te(P) ? (e.consume(P), O(e.exit(p.chunkFlow)), r = 0, t.interrupt = void 0, u) : (e.consume(P), S);
|
|
7771
7771
|
}
|
|
7772
|
-
function O(P,
|
|
7772
|
+
function O(P, $) {
|
|
7773
7773
|
A(a, "expected `childFlow` to be defined when continuing");
|
|
7774
|
-
const
|
|
7775
|
-
if (
|
|
7774
|
+
const I = t.sliceStream(P);
|
|
7775
|
+
if ($ && I.push(null), P.previous = i, i && (i.next = P), i = P, a.defineSkip(P.start), a.write(I), t.parser.lazy[P.start.line]) {
|
|
7776
7776
|
let D = a.events.length;
|
|
7777
7777
|
for (; D--; )
|
|
7778
7778
|
if (
|
|
@@ -7803,13 +7803,13 @@ function Dh(e) {
|
|
|
7803
7803
|
}
|
|
7804
7804
|
}
|
|
7805
7805
|
function v(P) {
|
|
7806
|
-
let
|
|
7807
|
-
for (;
|
|
7808
|
-
const
|
|
7809
|
-
t.containerState =
|
|
7810
|
-
|
|
7806
|
+
let $ = n.length;
|
|
7807
|
+
for (; $-- > P; ) {
|
|
7808
|
+
const I = n[$];
|
|
7809
|
+
t.containerState = I[1], A(
|
|
7810
|
+
I[0].exit,
|
|
7811
7811
|
"expected `exit` to be defined on container construct"
|
|
7812
|
-
),
|
|
7812
|
+
), I[0].exit.call(t, e);
|
|
7813
7813
|
}
|
|
7814
7814
|
n.length = P;
|
|
7815
7815
|
}
|
|
@@ -7964,8 +7964,8 @@ function Fh(e, t, n) {
|
|
|
7964
7964
|
}
|
|
7965
7965
|
function h(m) {
|
|
7966
7966
|
if ((m === b.dash || ht(m)) && r++ < K.autolinkDomainSizeMax) {
|
|
7967
|
-
const
|
|
7968
|
-
return e.consume(m),
|
|
7967
|
+
const _ = m === b.dash ? h : f;
|
|
7968
|
+
return e.consume(m), _;
|
|
7969
7969
|
}
|
|
7970
7970
|
return n(m);
|
|
7971
7971
|
}
|
|
@@ -8068,7 +8068,7 @@ const zs = {
|
|
|
8068
8068
|
concrete: !0
|
|
8069
8069
|
};
|
|
8070
8070
|
function Yh(e, t, n) {
|
|
8071
|
-
const r = this, a = { tokenize:
|
|
8071
|
+
const r = this, a = { tokenize: I, partial: !0 };
|
|
8072
8072
|
let i = 0, s = 0, u;
|
|
8073
8073
|
return c;
|
|
8074
8074
|
function c(D) {
|
|
@@ -8086,19 +8086,19 @@ function Yh(e, t, n) {
|
|
|
8086
8086
|
return D === u ? (s++, e.consume(D), d) : s < K.codeFencedSequenceSizeMin ? n(D) : (e.exit(p.codeFencedFenceSequence), we(D) ? Be(e, f, p.whitespace)(D) : f(D));
|
|
8087
8087
|
}
|
|
8088
8088
|
function f(D) {
|
|
8089
|
-
return D === b.eof || te(D) ? (e.exit(p.codeFencedFence), r.interrupt ? t(D) : e.check(zs,
|
|
8089
|
+
return D === b.eof || te(D) ? (e.exit(p.codeFencedFence), r.interrupt ? t(D) : e.check(zs, S, $)(D)) : (e.enter(p.codeFencedFenceInfo), e.enter(p.chunkString, { contentType: K.contentTypeString }), h(D));
|
|
8090
8090
|
}
|
|
8091
8091
|
function h(D) {
|
|
8092
8092
|
return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceInfo), f(D)) : we(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceInfo), Be(e, m, p.whitespace)(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), h);
|
|
8093
8093
|
}
|
|
8094
8094
|
function m(D) {
|
|
8095
|
-
return D === b.eof || te(D) ? f(D) : (e.enter(p.codeFencedFenceMeta), e.enter(p.chunkString, { contentType: K.contentTypeString }),
|
|
8096
|
-
}
|
|
8097
|
-
function S(D) {
|
|
8098
|
-
return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceMeta), f(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), S);
|
|
8095
|
+
return D === b.eof || te(D) ? f(D) : (e.enter(p.codeFencedFenceMeta), e.enter(p.chunkString, { contentType: K.contentTypeString }), _(D));
|
|
8099
8096
|
}
|
|
8100
8097
|
function _(D) {
|
|
8101
|
-
return
|
|
8098
|
+
return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceMeta), f(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), _);
|
|
8099
|
+
}
|
|
8100
|
+
function S(D) {
|
|
8101
|
+
return A(te(D), "expected eol"), e.attempt(a, $, O)(D);
|
|
8102
8102
|
}
|
|
8103
8103
|
function O(D) {
|
|
8104
8104
|
return A(te(D), "expected eol"), e.enter(p.lineEnding), e.consume(D), e.exit(p.lineEnding), v;
|
|
@@ -8112,15 +8112,15 @@ function Yh(e, t, n) {
|
|
|
8112
8112
|
)(D) : L(D);
|
|
8113
8113
|
}
|
|
8114
8114
|
function L(D) {
|
|
8115
|
-
return D === b.eof || te(D) ? e.check(zs,
|
|
8115
|
+
return D === b.eof || te(D) ? e.check(zs, S, $)(D) : (e.enter(p.codeFlowValue), P(D));
|
|
8116
8116
|
}
|
|
8117
8117
|
function P(D) {
|
|
8118
8118
|
return D === b.eof || te(D) ? (e.exit(p.codeFlowValue), L(D)) : (e.consume(D), P);
|
|
8119
8119
|
}
|
|
8120
|
-
function
|
|
8120
|
+
function $(D) {
|
|
8121
8121
|
return e.exit(p.codeFenced), t(D);
|
|
8122
8122
|
}
|
|
8123
|
-
function
|
|
8123
|
+
function I(D, re, be) {
|
|
8124
8124
|
let oe = 0;
|
|
8125
8125
|
return q;
|
|
8126
8126
|
function q(J) {
|
|
@@ -8270,8 +8270,8 @@ function Zh(e, t) {
|
|
|
8270
8270
|
const i = [];
|
|
8271
8271
|
A(n.contentType, "expected `contentType` on subtokens");
|
|
8272
8272
|
const s = n._tokenizer || r.parser[n.contentType](n.start), u = s.events, c = [], l = {};
|
|
8273
|
-
let d, f, h = -1, m = n,
|
|
8274
|
-
const O = [
|
|
8273
|
+
let d, f, h = -1, m = n, _ = 0, S = 0;
|
|
8274
|
+
const O = [S];
|
|
8275
8275
|
for (; m; ) {
|
|
8276
8276
|
for (; e[++a][1] !== m; )
|
|
8277
8277
|
;
|
|
@@ -8282,13 +8282,13 @@ function Zh(e, t) {
|
|
|
8282
8282
|
}
|
|
8283
8283
|
for (m = n; ++h < u.length; )
|
|
8284
8284
|
// Find a void token that includes a break.
|
|
8285
|
-
u[h][0] === "exit" && u[h - 1][0] === "enter" && u[h][1].type === u[h - 1][1].type && u[h][1].start.line !== u[h][1].end.line && (A(m, "expected a current token"),
|
|
8285
|
+
u[h][0] === "exit" && u[h - 1][0] === "enter" && u[h][1].type === u[h - 1][1].type && u[h][1].start.line !== u[h][1].end.line && (A(m, "expected a current token"), S = h + 1, O.push(S), m._tokenizer = void 0, m.previous = void 0, m = m.next);
|
|
8286
8286
|
for (s.events = [], m ? (m._tokenizer = void 0, m.previous = void 0, A(!m.next, "expected no next token")) : O.pop(), h = O.length; h--; ) {
|
|
8287
8287
|
const v = u.slice(O[h], O[h + 1]), L = i.pop();
|
|
8288
8288
|
A(L !== void 0, "expected a start position when splicing"), c.unshift([L, L + v.length - 1]), Ft(e, L, 2, v);
|
|
8289
8289
|
}
|
|
8290
8290
|
for (h = -1; ++h < c.length; )
|
|
8291
|
-
l[
|
|
8291
|
+
l[_ + c[h][0]] = _ + c[h][1], _ += c[h][1] - c[h][0] - 1;
|
|
8292
8292
|
return l;
|
|
8293
8293
|
}
|
|
8294
8294
|
const e0 = { tokenize: r0, resolve: n0 }, t0 = { tokenize: a0, partial: !0 };
|
|
@@ -8345,22 +8345,22 @@ function rc(e, t, n, r, a, i, s, u, c) {
|
|
|
8345
8345
|
let d = 0;
|
|
8346
8346
|
return f;
|
|
8347
8347
|
function f(v) {
|
|
8348
|
-
return v === b.lessThan ? (e.enter(r), e.enter(a), e.enter(i), e.consume(v), e.exit(i), h) : v === b.eof || v === b.space || v === b.rightParenthesis || ai(v) ? n(v) : (e.enter(r), e.enter(s), e.enter(u), e.enter(p.chunkString, { contentType: K.contentTypeString }),
|
|
8348
|
+
return v === b.lessThan ? (e.enter(r), e.enter(a), e.enter(i), e.consume(v), e.exit(i), h) : v === b.eof || v === b.space || v === b.rightParenthesis || ai(v) ? n(v) : (e.enter(r), e.enter(s), e.enter(u), e.enter(p.chunkString, { contentType: K.contentTypeString }), S(v));
|
|
8349
8349
|
}
|
|
8350
8350
|
function h(v) {
|
|
8351
8351
|
return v === b.greaterThan ? (e.enter(i), e.consume(v), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(u), e.enter(p.chunkString, { contentType: K.contentTypeString }), m(v));
|
|
8352
8352
|
}
|
|
8353
8353
|
function m(v) {
|
|
8354
|
-
return v === b.greaterThan ? (e.exit(p.chunkString), e.exit(u), h(v)) : v === b.eof || v === b.lessThan || te(v) ? n(v) : (e.consume(v), v === b.backslash ?
|
|
8354
|
+
return v === b.greaterThan ? (e.exit(p.chunkString), e.exit(u), h(v)) : v === b.eof || v === b.lessThan || te(v) ? n(v) : (e.consume(v), v === b.backslash ? _ : m);
|
|
8355
8355
|
}
|
|
8356
|
-
function
|
|
8356
|
+
function _(v) {
|
|
8357
8357
|
return v === b.lessThan || v === b.greaterThan || v === b.backslash ? (e.consume(v), m) : m(v);
|
|
8358
8358
|
}
|
|
8359
|
-
function
|
|
8360
|
-
return !d && (v === b.eof || v === b.rightParenthesis || dt(v)) ? (e.exit(p.chunkString), e.exit(u), e.exit(s), e.exit(r), t(v)) : d < l && v === b.leftParenthesis ? (e.consume(v), d++,
|
|
8359
|
+
function S(v) {
|
|
8360
|
+
return !d && (v === b.eof || v === b.rightParenthesis || dt(v)) ? (e.exit(p.chunkString), e.exit(u), e.exit(s), e.exit(r), t(v)) : d < l && v === b.leftParenthesis ? (e.consume(v), d++, S) : v === b.rightParenthesis ? (e.consume(v), d--, S) : v === b.eof || v === b.space || v === b.leftParenthesis || ai(v) ? n(v) : (e.consume(v), v === b.backslash ? O : S);
|
|
8361
8361
|
}
|
|
8362
8362
|
function O(v) {
|
|
8363
|
-
return v === b.leftParenthesis || v === b.rightParenthesis || v === b.backslash ? (e.consume(v),
|
|
8363
|
+
return v === b.leftParenthesis || v === b.rightParenthesis || v === b.backslash ? (e.consume(v), S) : S(v);
|
|
8364
8364
|
}
|
|
8365
8365
|
}
|
|
8366
8366
|
function ac(e, t, n, r, a, i) {
|
|
@@ -8639,19 +8639,19 @@ function T0(e, t, n) {
|
|
|
8639
8639
|
return A(x === b.lessThan, "expected `<`"), e.enter(p.htmlFlow), e.enter(p.htmlFlowData), e.consume(x), f;
|
|
8640
8640
|
}
|
|
8641
8641
|
function f(x) {
|
|
8642
|
-
return x === b.exclamationMark ? (e.consume(x), h) : x === b.slash ? (e.consume(x), i = !0,
|
|
8642
|
+
return x === b.exclamationMark ? (e.consume(x), h) : x === b.slash ? (e.consume(x), i = !0, S) : x === b.questionMark ? (e.consume(x), a = K.htmlInstruction, r.interrupt ? t : g) : Mt(x) ? (e.consume(x), s = String.fromCharCode(x), O) : n(x);
|
|
8643
8643
|
}
|
|
8644
8644
|
function h(x) {
|
|
8645
|
-
return x === b.dash ? (e.consume(x), a = K.htmlComment, m) : x === b.leftSquareBracket ? (e.consume(x), a = K.htmlCdata, u = 0,
|
|
8645
|
+
return x === b.dash ? (e.consume(x), a = K.htmlComment, m) : x === b.leftSquareBracket ? (e.consume(x), a = K.htmlCdata, u = 0, _) : Mt(x) ? (e.consume(x), a = K.htmlDeclaration, r.interrupt ? t : g) : n(x);
|
|
8646
8646
|
}
|
|
8647
8647
|
function m(x) {
|
|
8648
8648
|
return x === b.dash ? (e.consume(x), r.interrupt ? t : g) : n(x);
|
|
8649
8649
|
}
|
|
8650
|
-
function
|
|
8650
|
+
function _(x) {
|
|
8651
8651
|
const Z = K.cdataOpeningString;
|
|
8652
|
-
return x === Z.charCodeAt(u++) ? (e.consume(x), u === Z.length ? r.interrupt ? t : ee :
|
|
8652
|
+
return x === Z.charCodeAt(u++) ? (e.consume(x), u === Z.length ? r.interrupt ? t : ee : _) : n(x);
|
|
8653
8653
|
}
|
|
8654
|
-
function
|
|
8654
|
+
function S(x) {
|
|
8655
8655
|
return Mt(x) ? (e.consume(x), s = String.fromCharCode(x), O) : n(x);
|
|
8656
8656
|
}
|
|
8657
8657
|
function O(x) {
|
|
@@ -8668,13 +8668,13 @@ function T0(e, t, n) {
|
|
|
8668
8668
|
return we(x) ? (e.consume(x), L) : q(x);
|
|
8669
8669
|
}
|
|
8670
8670
|
function P(x) {
|
|
8671
|
-
return x === b.slash ? (e.consume(x), q) : x === b.colon || x === b.underscore || Mt(x) ? (e.consume(x),
|
|
8671
|
+
return x === b.slash ? (e.consume(x), q) : x === b.colon || x === b.underscore || Mt(x) ? (e.consume(x), $) : we(x) ? (e.consume(x), P) : q(x);
|
|
8672
8672
|
}
|
|
8673
|
-
function
|
|
8674
|
-
return x === b.dash || x === b.dot || x === b.colon || x === b.underscore || ht(x) ? (e.consume(x),
|
|
8673
|
+
function $(x) {
|
|
8674
|
+
return x === b.dash || x === b.dot || x === b.colon || x === b.underscore || ht(x) ? (e.consume(x), $) : I(x);
|
|
8675
8675
|
}
|
|
8676
|
-
function
|
|
8677
|
-
return x === b.equalsTo ? (e.consume(x), D) : we(x) ? (e.consume(x),
|
|
8676
|
+
function I(x) {
|
|
8677
|
+
return x === b.equalsTo ? (e.consume(x), D) : we(x) ? (e.consume(x), I) : P(x);
|
|
8678
8678
|
}
|
|
8679
8679
|
function D(x) {
|
|
8680
8680
|
return x === b.eof || x === b.lessThan || x === b.equalsTo || x === b.greaterThan || x === b.graveAccent ? n(x) : x === b.quotationMark || x === b.apostrophe ? (e.consume(x), c = x, re) : we(x) ? (e.consume(x), D) : be(x);
|
|
@@ -8683,7 +8683,7 @@ function T0(e, t, n) {
|
|
|
8683
8683
|
return x === c ? (e.consume(x), c = null, oe) : x === b.eof || te(x) ? n(x) : (e.consume(x), re);
|
|
8684
8684
|
}
|
|
8685
8685
|
function be(x) {
|
|
8686
|
-
return x === b.eof || x === b.quotationMark || x === b.apostrophe || x === b.slash || x === b.lessThan || x === b.equalsTo || x === b.greaterThan || x === b.graveAccent || dt(x) ?
|
|
8686
|
+
return x === b.eof || x === b.quotationMark || x === b.apostrophe || x === b.slash || x === b.lessThan || x === b.equalsTo || x === b.greaterThan || x === b.graveAccent || dt(x) ? I(x) : (e.consume(x), be);
|
|
8687
8687
|
}
|
|
8688
8688
|
function oe(x) {
|
|
8689
8689
|
return x === b.slash || x === b.greaterThan || we(x) ? P(x) : n(x);
|
|
@@ -8695,7 +8695,7 @@ function T0(e, t, n) {
|
|
|
8695
8695
|
return x === b.eof || te(x) ? ee(x) : we(x) ? (e.consume(x), Te) : n(x);
|
|
8696
8696
|
}
|
|
8697
8697
|
function ee(x) {
|
|
8698
|
-
return x === b.dash && a === K.htmlComment ? (e.consume(x), fe) : x === b.lessThan && a === K.htmlRaw ? (e.consume(x), le) : x === b.greaterThan && a === K.htmlDeclaration ? (e.consume(x), Y) : x === b.questionMark && a === K.htmlInstruction ? (e.consume(x), g) : x === b.rightSquareBracket && a === K.htmlCdata ? (e.consume(x),
|
|
8698
|
+
return x === b.dash && a === K.htmlComment ? (e.consume(x), fe) : x === b.lessThan && a === K.htmlRaw ? (e.consume(x), le) : x === b.greaterThan && a === K.htmlDeclaration ? (e.consume(x), Y) : x === b.questionMark && a === K.htmlInstruction ? (e.consume(x), g) : x === b.rightSquareBracket && a === K.htmlCdata ? (e.consume(x), He) : te(x) && (a === K.htmlBasic || a === K.htmlComplete) ? (e.exit(p.htmlFlowData), e.check(
|
|
8699
8699
|
b0,
|
|
8700
8700
|
W,
|
|
8701
8701
|
B
|
|
@@ -8727,7 +8727,7 @@ function T0(e, t, n) {
|
|
|
8727
8727
|
}
|
|
8728
8728
|
return Mt(x) && s.length < K.htmlRawSizeMax ? (e.consume(x), s += String.fromCharCode(x), ye) : ee(x);
|
|
8729
8729
|
}
|
|
8730
|
-
function
|
|
8730
|
+
function He(x) {
|
|
8731
8731
|
return x === b.rightSquareBracket ? (e.consume(x), g) : ee(x);
|
|
8732
8732
|
}
|
|
8733
8733
|
function g(x) {
|
|
@@ -8765,10 +8765,10 @@ function A0(e, t, n) {
|
|
|
8765
8765
|
return A(g === b.lessThan, "expected `<`"), e.enter(p.htmlText), e.enter(p.htmlTextData), e.consume(g), c;
|
|
8766
8766
|
}
|
|
8767
8767
|
function c(g) {
|
|
8768
|
-
return g === b.exclamationMark ? (e.consume(g), l) : g === b.slash ? (e.consume(g),
|
|
8768
|
+
return g === b.exclamationMark ? (e.consume(g), l) : g === b.slash ? (e.consume(g), I) : g === b.questionMark ? (e.consume(g), P) : Mt(g) ? (e.consume(g), be) : n(g);
|
|
8769
8769
|
}
|
|
8770
8770
|
function l(g) {
|
|
8771
|
-
return g === b.dash ? (e.consume(g), d) : g === b.leftSquareBracket ? (e.consume(g), i = 0,
|
|
8771
|
+
return g === b.dash ? (e.consume(g), d) : g === b.leftSquareBracket ? (e.consume(g), i = 0, _) : Mt(g) ? (e.consume(g), L) : n(g);
|
|
8772
8772
|
}
|
|
8773
8773
|
function d(g) {
|
|
8774
8774
|
return g === b.dash ? (e.consume(g), m) : n(g);
|
|
@@ -8782,29 +8782,29 @@ function A0(e, t, n) {
|
|
|
8782
8782
|
function m(g) {
|
|
8783
8783
|
return g === b.greaterThan ? fe(g) : g === b.dash ? h(g) : f(g);
|
|
8784
8784
|
}
|
|
8785
|
-
function
|
|
8785
|
+
function _(g) {
|
|
8786
8786
|
const Y = K.cdataOpeningString;
|
|
8787
|
-
return g === Y.charCodeAt(i++) ? (e.consume(g), i === Y.length ?
|
|
8787
|
+
return g === Y.charCodeAt(i++) ? (e.consume(g), i === Y.length ? S : _) : n(g);
|
|
8788
8788
|
}
|
|
8789
|
-
function
|
|
8790
|
-
return g === b.eof ? n(g) : g === b.rightSquareBracket ? (e.consume(g), O) : te(g) ? (s =
|
|
8789
|
+
function S(g) {
|
|
8790
|
+
return g === b.eof ? n(g) : g === b.rightSquareBracket ? (e.consume(g), O) : te(g) ? (s = S, le(g)) : (e.consume(g), S);
|
|
8791
8791
|
}
|
|
8792
8792
|
function O(g) {
|
|
8793
|
-
return g === b.rightSquareBracket ? (e.consume(g), v) :
|
|
8793
|
+
return g === b.rightSquareBracket ? (e.consume(g), v) : S(g);
|
|
8794
8794
|
}
|
|
8795
8795
|
function v(g) {
|
|
8796
|
-
return g === b.greaterThan ? fe(g) : g === b.rightSquareBracket ? (e.consume(g), v) :
|
|
8796
|
+
return g === b.greaterThan ? fe(g) : g === b.rightSquareBracket ? (e.consume(g), v) : S(g);
|
|
8797
8797
|
}
|
|
8798
8798
|
function L(g) {
|
|
8799
8799
|
return g === b.eof || g === b.greaterThan ? fe(g) : te(g) ? (s = L, le(g)) : (e.consume(g), L);
|
|
8800
8800
|
}
|
|
8801
8801
|
function P(g) {
|
|
8802
|
-
return g === b.eof ? n(g) : g === b.questionMark ? (e.consume(g),
|
|
8802
|
+
return g === b.eof ? n(g) : g === b.questionMark ? (e.consume(g), $) : te(g) ? (s = P, le(g)) : (e.consume(g), P);
|
|
8803
8803
|
}
|
|
8804
|
-
function
|
|
8804
|
+
function $(g) {
|
|
8805
8805
|
return g === b.greaterThan ? fe(g) : P(g);
|
|
8806
8806
|
}
|
|
8807
|
-
function
|
|
8807
|
+
function I(g) {
|
|
8808
8808
|
return Mt(g) ? (e.consume(g), D) : n(g);
|
|
8809
8809
|
}
|
|
8810
8810
|
function D(g) {
|
|
@@ -8849,12 +8849,12 @@ function A0(e, t, n) {
|
|
|
8849
8849
|
"expected `disable.null` to be populated"
|
|
8850
8850
|
), we(g) ? Be(
|
|
8851
8851
|
e,
|
|
8852
|
-
|
|
8852
|
+
He,
|
|
8853
8853
|
p.linePrefix,
|
|
8854
8854
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : K.tabSize
|
|
8855
|
-
)(g) :
|
|
8855
|
+
)(g) : He(g);
|
|
8856
8856
|
}
|
|
8857
|
-
function
|
|
8857
|
+
function He(g) {
|
|
8858
8858
|
return e.enter(p.htmlTextData), s(g);
|
|
8859
8859
|
}
|
|
8860
8860
|
}
|
|
@@ -9116,9 +9116,9 @@ function j0(e, t, n) {
|
|
|
9116
9116
|
return u;
|
|
9117
9117
|
function u(m) {
|
|
9118
9118
|
A(r.containerState, "expected state");
|
|
9119
|
-
const
|
|
9120
|
-
if (
|
|
9121
|
-
if (r.containerState.type || (r.containerState.type =
|
|
9119
|
+
const _ = r.containerState.type || (m === b.asterisk || m === b.plusSign || m === b.dash ? p.listUnordered : p.listOrdered);
|
|
9120
|
+
if (_ === p.listUnordered ? !r.containerState.marker || m === r.containerState.marker : ii(m)) {
|
|
9121
|
+
if (r.containerState.type || (r.containerState.type = _, e.enter(_, { _container: !0 })), _ === p.listUnordered)
|
|
9122
9122
|
return e.enter(p.listItemPrefix), m === b.asterisk || m === b.dash ? e.check(Or, n, l)(m) : l(m);
|
|
9123
9123
|
if (!r.interrupt || m === b.digit1)
|
|
9124
9124
|
return e.enter(p.listItemPrefix), e.enter(p.listItemValue), c(m);
|
|
@@ -9470,8 +9470,8 @@ function em() {
|
|
|
9470
9470
|
return f >= r ? l(d, f, r, "day") : f >= n ? l(d, f, n, "hour") : f >= t ? l(d, f, t, "minute") : f >= e ? l(d, f, e, "second") : d + " ms";
|
|
9471
9471
|
}
|
|
9472
9472
|
function l(d, f, h, m) {
|
|
9473
|
-
var
|
|
9474
|
-
return Math.round(d / h) + " " + m + (
|
|
9473
|
+
var _ = f >= h * 1.5;
|
|
9474
|
+
return Math.round(d / h) + " " + m + (_ ? "s" : "");
|
|
9475
9475
|
}
|
|
9476
9476
|
return Aa;
|
|
9477
9477
|
}
|
|
@@ -9491,21 +9491,21 @@ function tm() {
|
|
|
9491
9491
|
}
|
|
9492
9492
|
r.selectColor = n;
|
|
9493
9493
|
function r(f) {
|
|
9494
|
-
let h, m = null,
|
|
9494
|
+
let h, m = null, _, S;
|
|
9495
9495
|
function O(...v) {
|
|
9496
9496
|
if (!O.enabled)
|
|
9497
9497
|
return;
|
|
9498
|
-
const L = O, P = Number(/* @__PURE__ */ new Date()),
|
|
9499
|
-
L.diff =
|
|
9500
|
-
let
|
|
9498
|
+
const L = O, P = Number(/* @__PURE__ */ new Date()), $ = P - (h || P);
|
|
9499
|
+
L.diff = $, L.prev = h, L.curr = P, h = P, v[0] = r.coerce(v[0]), typeof v[0] != "string" && v.unshift("%O");
|
|
9500
|
+
let I = 0;
|
|
9501
9501
|
v[0] = v[0].replace(/%([a-zA-Z%])/g, (re, be) => {
|
|
9502
9502
|
if (re === "%%")
|
|
9503
9503
|
return "%";
|
|
9504
|
-
|
|
9504
|
+
I++;
|
|
9505
9505
|
const oe = r.formatters[be];
|
|
9506
9506
|
if (typeof oe == "function") {
|
|
9507
|
-
const q = v[
|
|
9508
|
-
re = oe.call(L, q), v.splice(
|
|
9507
|
+
const q = v[I];
|
|
9508
|
+
re = oe.call(L, q), v.splice(I, 1), I--;
|
|
9509
9509
|
}
|
|
9510
9510
|
return re;
|
|
9511
9511
|
}), r.formatArgs.call(L, v), (L.log || r.log).apply(L, v);
|
|
@@ -9513,7 +9513,7 @@ function tm() {
|
|
|
9513
9513
|
return O.namespace = f, O.useColors = r.useColors(), O.color = r.selectColor(f), O.extend = a, O.destroy = r.destroy, Object.defineProperty(O, "enabled", {
|
|
9514
9514
|
enumerable: !0,
|
|
9515
9515
|
configurable: !1,
|
|
9516
|
-
get: () => m !== null ? m : (
|
|
9516
|
+
get: () => m !== null ? m : (_ !== r.namespaces && (_ = r.namespaces, S = r.enabled(f)), S),
|
|
9517
9517
|
set: (v) => {
|
|
9518
9518
|
m = v;
|
|
9519
9519
|
}
|
|
@@ -9530,17 +9530,17 @@ function tm() {
|
|
|
9530
9530
|
m[0] === "-" ? r.skips.push(m.slice(1)) : r.names.push(m);
|
|
9531
9531
|
}
|
|
9532
9532
|
function s(f, h) {
|
|
9533
|
-
let m = 0,
|
|
9533
|
+
let m = 0, _ = 0, S = -1, O = 0;
|
|
9534
9534
|
for (; m < f.length; )
|
|
9535
|
-
if (
|
|
9536
|
-
h[
|
|
9537
|
-
else if (
|
|
9538
|
-
|
|
9535
|
+
if (_ < h.length && (h[_] === f[m] || h[_] === "*"))
|
|
9536
|
+
h[_] === "*" ? (S = _, O = m, _++) : (m++, _++);
|
|
9537
|
+
else if (S !== -1)
|
|
9538
|
+
_ = S + 1, O++, m = O;
|
|
9539
9539
|
else
|
|
9540
9540
|
return !1;
|
|
9541
|
-
for (;
|
|
9542
|
-
|
|
9543
|
-
return
|
|
9541
|
+
for (; _ < h.length && h[_] === "*"; )
|
|
9542
|
+
_++;
|
|
9543
|
+
return _ === h.length;
|
|
9544
9544
|
}
|
|
9545
9545
|
function u() {
|
|
9546
9546
|
const f = [
|
|
@@ -9719,8 +9719,8 @@ function im(e, t, n) {
|
|
|
9719
9719
|
const a = {}, i = [];
|
|
9720
9720
|
let s = [], u = [], c = !0;
|
|
9721
9721
|
const l = {
|
|
9722
|
-
consume:
|
|
9723
|
-
enter:
|
|
9722
|
+
consume: $,
|
|
9723
|
+
enter: I,
|
|
9724
9724
|
exit: D,
|
|
9725
9725
|
attempt: oe(re),
|
|
9726
9726
|
check: oe(be),
|
|
@@ -9731,8 +9731,8 @@ function im(e, t, n) {
|
|
|
9731
9731
|
containerState: {},
|
|
9732
9732
|
events: [],
|
|
9733
9733
|
parser: e,
|
|
9734
|
-
sliceStream:
|
|
9735
|
-
sliceSerialize:
|
|
9734
|
+
sliceStream: S,
|
|
9735
|
+
sliceSerialize: _,
|
|
9736
9736
|
now: O,
|
|
9737
9737
|
defineSkip: v,
|
|
9738
9738
|
write: m
|
|
@@ -9742,10 +9742,10 @@ function im(e, t, n) {
|
|
|
9742
9742
|
function m(B) {
|
|
9743
9743
|
return s = gt(s, B), L(), s[s.length - 1] !== b.eof ? [] : (q(t, 0), d.events = Li(i, d.events, d), d.events);
|
|
9744
9744
|
}
|
|
9745
|
-
function
|
|
9746
|
-
return om(
|
|
9745
|
+
function _(B, F) {
|
|
9746
|
+
return om(S(B), F);
|
|
9747
9747
|
}
|
|
9748
|
-
function
|
|
9748
|
+
function S(B) {
|
|
9749
9749
|
return sm(s, B);
|
|
9750
9750
|
}
|
|
9751
9751
|
function O() {
|
|
@@ -9769,7 +9769,7 @@ function im(e, t, n) {
|
|
|
9769
9769
|
function P(B) {
|
|
9770
9770
|
A(c === !0, "expected character to be consumed"), c = void 0, rn("main: passing `%s` to %s", B, f && f.name), h = B, A(typeof f == "function", "expected state"), f = f(B);
|
|
9771
9771
|
}
|
|
9772
|
-
function
|
|
9772
|
+
function $(B) {
|
|
9773
9773
|
A(B === h, "expected given code to equal expected code"), rn("consume: `%s`", B), A(
|
|
9774
9774
|
c === void 0,
|
|
9775
9775
|
"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"
|
|
@@ -9778,7 +9778,7 @@ function im(e, t, n) {
|
|
|
9778
9778
|
"expected last token to be open"
|
|
9779
9779
|
), te(B) ? (r.line++, r.column = 1, r.offset += B === b.carriageReturnLineFeed ? 2 : 1, ee(), rn("position: after eol: `%j`", r)) : B !== b.virtualSpace && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), d.previous = B, c = !0;
|
|
9780
9780
|
}
|
|
9781
|
-
function
|
|
9781
|
+
function I(B, F) {
|
|
9782
9782
|
const J = F || {};
|
|
9783
9783
|
return J.type = B, J.start = O(), A(typeof B == "string", "expected string type"), A(B.length > 0, "expected non-empty string"), rn("enter: `%s`", B), d.events.push(["enter", J, d]), u.push(J), J;
|
|
9784
9784
|
}
|
|
@@ -9799,7 +9799,7 @@ function im(e, t, n) {
|
|
|
9799
9799
|
function oe(B, F) {
|
|
9800
9800
|
return J;
|
|
9801
9801
|
function J(fe, le, ye) {
|
|
9802
|
-
let
|
|
9802
|
+
let He, g, Y, W;
|
|
9803
9803
|
return Array.isArray(fe) ? (
|
|
9804
9804
|
/* c8 ignore next 1 */
|
|
9805
9805
|
Z(fe)
|
|
@@ -9810,17 +9810,17 @@ function im(e, t, n) {
|
|
|
9810
9810
|
function x(Q) {
|
|
9811
9811
|
return ce;
|
|
9812
9812
|
function ce(ue) {
|
|
9813
|
-
const ke = ue !== null && Q[ue],
|
|
9813
|
+
const ke = ue !== null && Q[ue], z = ue !== null && Q.null, Ue = [
|
|
9814
9814
|
// To do: add more extension tests.
|
|
9815
9815
|
/* c8 ignore next 2 */
|
|
9816
9816
|
...Array.isArray(ke) ? ke : ke ? [ke] : [],
|
|
9817
|
-
...Array.isArray(
|
|
9817
|
+
...Array.isArray(z) ? z : z ? [z] : []
|
|
9818
9818
|
];
|
|
9819
|
-
return Z(
|
|
9819
|
+
return Z(Ue)(ue);
|
|
9820
9820
|
}
|
|
9821
9821
|
}
|
|
9822
9822
|
function Z(Q) {
|
|
9823
|
-
return
|
|
9823
|
+
return He = Q, g = 0, Q.length === 0 ? (A(ye, "expected `bogusState` to be given"), ye) : ae(Q[g]);
|
|
9824
9824
|
}
|
|
9825
9825
|
function ae(Q) {
|
|
9826
9826
|
return ce;
|
|
@@ -9843,7 +9843,7 @@ function im(e, t, n) {
|
|
|
9843
9843
|
return A(Q === h, "expected code"), c = !0, B(Y, W), le;
|
|
9844
9844
|
}
|
|
9845
9845
|
function ie(Q) {
|
|
9846
|
-
return A(Q === h, "expected code"), c = !0, W.restore(), ++g <
|
|
9846
|
+
return A(Q === h, "expected code"), c = !0, W.restore(), ++g < He.length ? ae(He[g]) : ye;
|
|
9847
9847
|
}
|
|
9848
9848
|
}
|
|
9849
9849
|
}
|
|
@@ -10087,11 +10087,11 @@ function _m(e) {
|
|
|
10087
10087
|
codeTextData: oe,
|
|
10088
10088
|
data: oe,
|
|
10089
10089
|
codeFlowValue: oe,
|
|
10090
|
-
definition: i(
|
|
10090
|
+
definition: i(z),
|
|
10091
10091
|
definitionDestinationString: s,
|
|
10092
10092
|
definitionLabelString: s,
|
|
10093
10093
|
definitionTitleString: s,
|
|
10094
|
-
emphasis: i(
|
|
10094
|
+
emphasis: i(Ue),
|
|
10095
10095
|
hardBreakEscape: i(Je),
|
|
10096
10096
|
hardBreakTrailing: i(Je),
|
|
10097
10097
|
htmlFlow: i(mt, s),
|
|
@@ -10112,11 +10112,11 @@ function _m(e) {
|
|
|
10112
10112
|
resourceTitleString: s,
|
|
10113
10113
|
setextHeading: i(We),
|
|
10114
10114
|
strong: i(Ne),
|
|
10115
|
-
thematicBreak: i(
|
|
10115
|
+
thematicBreak: i(je)
|
|
10116
10116
|
},
|
|
10117
10117
|
exit: {
|
|
10118
10118
|
atxHeading: c(),
|
|
10119
|
-
atxHeadingSequence:
|
|
10119
|
+
atxHeadingSequence: I,
|
|
10120
10120
|
autolink: c(),
|
|
10121
10121
|
autolinkEmail: Q,
|
|
10122
10122
|
autolinkProtocol: ie,
|
|
@@ -10126,16 +10126,16 @@ function _m(e) {
|
|
|
10126
10126
|
characterReferenceMarkerNumeric: ae,
|
|
10127
10127
|
characterReferenceValue: se,
|
|
10128
10128
|
codeFenced: c(O),
|
|
10129
|
-
codeFencedFence:
|
|
10129
|
+
codeFencedFence: S,
|
|
10130
10130
|
codeFencedFenceInfo: m,
|
|
10131
|
-
codeFencedFenceMeta:
|
|
10131
|
+
codeFencedFenceMeta: _,
|
|
10132
10132
|
codeFlowValue: q,
|
|
10133
10133
|
codeIndented: c(v),
|
|
10134
10134
|
codeText: c(J),
|
|
10135
10135
|
codeTextData: q,
|
|
10136
10136
|
data: q,
|
|
10137
10137
|
definition: c(),
|
|
10138
|
-
definitionDestinationString:
|
|
10138
|
+
definitionDestinationString: $,
|
|
10139
10139
|
definitionLabelString: L,
|
|
10140
10140
|
definitionTitleString: P,
|
|
10141
10141
|
emphasis: c(),
|
|
@@ -10146,7 +10146,7 @@ function _m(e) {
|
|
|
10146
10146
|
htmlText: c(F),
|
|
10147
10147
|
htmlTextData: q,
|
|
10148
10148
|
image: c(le),
|
|
10149
|
-
label:
|
|
10149
|
+
label: He,
|
|
10150
10150
|
labelText: ye,
|
|
10151
10151
|
lineEnding: Te,
|
|
10152
10152
|
link: c(fe),
|
|
@@ -10168,10 +10168,10 @@ function _m(e) {
|
|
|
10168
10168
|
cc(t, (e || {}).mdastExtensions || []);
|
|
10169
10169
|
const n = {};
|
|
10170
10170
|
return r;
|
|
10171
|
-
function r(
|
|
10172
|
-
let
|
|
10171
|
+
function r(w) {
|
|
10172
|
+
let R = { type: "root", children: [] };
|
|
10173
10173
|
const G = {
|
|
10174
|
-
stack: [
|
|
10174
|
+
stack: [R],
|
|
10175
10175
|
tokenStack: [],
|
|
10176
10176
|
config: t,
|
|
10177
10177
|
enter: u,
|
|
@@ -10181,43 +10181,43 @@ function _m(e) {
|
|
|
10181
10181
|
data: n
|
|
10182
10182
|
}, me = [];
|
|
10183
10183
|
let Se = -1;
|
|
10184
|
-
for (; ++Se <
|
|
10185
|
-
if (
|
|
10186
|
-
if (
|
|
10184
|
+
for (; ++Se < w.length; )
|
|
10185
|
+
if (w[Se][1].type === p.listOrdered || w[Se][1].type === p.listUnordered)
|
|
10186
|
+
if (w[Se][0] === "enter")
|
|
10187
10187
|
me.push(Se);
|
|
10188
10188
|
else {
|
|
10189
10189
|
const nt = me.pop();
|
|
10190
|
-
A(typeof nt == "number", "expected list ot be open"), Se = a(
|
|
10190
|
+
A(typeof nt == "number", "expected list ot be open"), Se = a(w, nt, Se);
|
|
10191
10191
|
}
|
|
10192
|
-
for (Se = -1; ++Se <
|
|
10193
|
-
const nt = t[
|
|
10194
|
-
uc.call(nt,
|
|
10192
|
+
for (Se = -1; ++Se < w.length; ) {
|
|
10193
|
+
const nt = t[w[Se][0]];
|
|
10194
|
+
uc.call(nt, w[Se][1].type) && nt[w[Se][1].type].call(
|
|
10195
10195
|
Object.assign(
|
|
10196
|
-
{ sliceSerialize:
|
|
10196
|
+
{ sliceSerialize: w[Se][2].sliceSerialize },
|
|
10197
10197
|
G
|
|
10198
10198
|
),
|
|
10199
|
-
|
|
10199
|
+
w[Se][1]
|
|
10200
10200
|
);
|
|
10201
10201
|
}
|
|
10202
10202
|
if (G.tokenStack.length > 0) {
|
|
10203
10203
|
const nt = G.tokenStack[G.tokenStack.length - 1];
|
|
10204
10204
|
(nt[1] || Ks).call(G, void 0, nt[0]);
|
|
10205
10205
|
}
|
|
10206
|
-
for (
|
|
10206
|
+
for (R.position = {
|
|
10207
10207
|
start: $t(
|
|
10208
|
-
|
|
10208
|
+
w.length > 0 ? w[0][1].start : { line: 1, column: 1, offset: 0 }
|
|
10209
10209
|
),
|
|
10210
10210
|
end: $t(
|
|
10211
|
-
|
|
10211
|
+
w.length > 0 ? w[w.length - 2][1].end : { line: 1, column: 1, offset: 0 }
|
|
10212
10212
|
)
|
|
10213
10213
|
}, Se = -1; ++Se < t.transforms.length; )
|
|
10214
|
-
|
|
10215
|
-
return
|
|
10214
|
+
R = t.transforms[Se](R) || R;
|
|
10215
|
+
return R;
|
|
10216
10216
|
}
|
|
10217
|
-
function a(
|
|
10218
|
-
let me =
|
|
10217
|
+
function a(w, R, G) {
|
|
10218
|
+
let me = R - 1, Se = -1, nt = !1, _t, vt, Zt, en;
|
|
10219
10219
|
for (; ++me <= G; ) {
|
|
10220
|
-
const it =
|
|
10220
|
+
const it = w[me];
|
|
10221
10221
|
switch (it[1].type) {
|
|
10222
10222
|
case p.listUnordered:
|
|
10223
10223
|
case p.listOrdered:
|
|
@@ -10242,16 +10242,16 @@ function _m(e) {
|
|
|
10242
10242
|
if (_t) {
|
|
10243
10243
|
let zt = me;
|
|
10244
10244
|
for (vt = void 0; zt--; ) {
|
|
10245
|
-
const Nt =
|
|
10245
|
+
const Nt = w[zt];
|
|
10246
10246
|
if (Nt[1].type === p.lineEnding || Nt[1].type === p.lineEndingBlank) {
|
|
10247
10247
|
if (Nt[0] === "exit") continue;
|
|
10248
|
-
vt && (
|
|
10248
|
+
vt && (w[vt][1].type = p.lineEndingBlank, nt = !0), Nt[1].type = p.lineEnding, vt = zt;
|
|
10249
10249
|
} else if (!(Nt[1].type === p.linePrefix || Nt[1].type === p.blockQuotePrefix || Nt[1].type === p.blockQuotePrefixWhitespace || Nt[1].type === p.blockQuoteMarker || Nt[1].type === p.listItemIndent)) break;
|
|
10250
10250
|
}
|
|
10251
10251
|
Zt && (!vt || Zt < vt) && (_t._spread = !0), _t.end = Object.assign(
|
|
10252
10252
|
{},
|
|
10253
|
-
vt ?
|
|
10254
|
-
),
|
|
10253
|
+
vt ? w[vt][1].start : it[1].end
|
|
10254
|
+
), w.splice(vt || me, 0, ["exit", _t, it[2]]), me++, G++;
|
|
10255
10255
|
}
|
|
10256
10256
|
if (it[1].type === p.listItemPrefix) {
|
|
10257
10257
|
const zt = {
|
|
@@ -10261,45 +10261,45 @@ function _m(e) {
|
|
|
10261
10261
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
10262
10262
|
end: void 0
|
|
10263
10263
|
};
|
|
10264
|
-
_t = zt,
|
|
10264
|
+
_t = zt, w.splice(me, 0, ["enter", zt, it[2]]), me++, G++, Zt = void 0, en = !0;
|
|
10265
10265
|
}
|
|
10266
10266
|
}
|
|
10267
10267
|
}
|
|
10268
|
-
return
|
|
10268
|
+
return w[R][1]._spread = nt, G;
|
|
10269
10269
|
}
|
|
10270
|
-
function i(
|
|
10270
|
+
function i(w, R) {
|
|
10271
10271
|
return G;
|
|
10272
10272
|
function G(me) {
|
|
10273
|
-
u.call(this,
|
|
10273
|
+
u.call(this, w(me), me), R && R.call(this, me);
|
|
10274
10274
|
}
|
|
10275
10275
|
}
|
|
10276
10276
|
function s() {
|
|
10277
10277
|
this.stack.push({ type: "fragment", children: [] });
|
|
10278
10278
|
}
|
|
10279
|
-
function u(
|
|
10279
|
+
function u(w, R, G) {
|
|
10280
10280
|
const me = this.stack[this.stack.length - 1];
|
|
10281
|
-
A(me, "expected `parent`"), A("children" in me, "expected `parent`"), me.children.push(
|
|
10282
|
-
start: $t(
|
|
10281
|
+
A(me, "expected `parent`"), A("children" in me, "expected `parent`"), me.children.push(w), this.stack.push(w), this.tokenStack.push([R, G]), w.position = {
|
|
10282
|
+
start: $t(R.start),
|
|
10283
10283
|
// @ts-expect-error: `end` will be patched later.
|
|
10284
10284
|
end: void 0
|
|
10285
10285
|
};
|
|
10286
10286
|
}
|
|
10287
|
-
function c(
|
|
10288
|
-
return
|
|
10289
|
-
function
|
|
10290
|
-
|
|
10287
|
+
function c(w) {
|
|
10288
|
+
return R;
|
|
10289
|
+
function R(G) {
|
|
10290
|
+
w && w.call(this, G), l.call(this, G);
|
|
10291
10291
|
}
|
|
10292
10292
|
}
|
|
10293
|
-
function l(
|
|
10293
|
+
function l(w, R) {
|
|
10294
10294
|
const G = this.stack.pop();
|
|
10295
10295
|
A(G, "expected `node`");
|
|
10296
10296
|
const me = this.tokenStack.pop();
|
|
10297
10297
|
if (me)
|
|
10298
|
-
me[0].type !==
|
|
10298
|
+
me[0].type !== w.type && (R ? R.call(this, w, me[0]) : (me[1] || Ks).call(this, w, me[0]));
|
|
10299
10299
|
else throw new Error(
|
|
10300
|
-
"Cannot close `" +
|
|
10300
|
+
"Cannot close `" + w.type + "` (" + Gn({ start: w.start, end: w.end }) + "): it’s not open"
|
|
10301
10301
|
);
|
|
10302
|
-
A(G.type !== "fragment", "unexpected fragment `exit`ed"), A(G.position, "expected `position` to be defined"), G.position.end = $t(
|
|
10302
|
+
A(G.type !== "fragment", "unexpected fragment `exit`ed"), A(G.position, "expected `position` to be defined"), G.position.end = $t(w.end);
|
|
10303
10303
|
}
|
|
10304
10304
|
function d() {
|
|
10305
10305
|
return xh(this.stack.pop());
|
|
@@ -10307,159 +10307,159 @@ function _m(e) {
|
|
|
10307
10307
|
function f() {
|
|
10308
10308
|
this.data.expectingFirstListItemValue = !0;
|
|
10309
10309
|
}
|
|
10310
|
-
function h(
|
|
10310
|
+
function h(w) {
|
|
10311
10311
|
if (this.data.expectingFirstListItemValue) {
|
|
10312
|
-
const
|
|
10313
|
-
A(
|
|
10314
|
-
this.sliceSerialize(
|
|
10312
|
+
const R = this.stack[this.stack.length - 2];
|
|
10313
|
+
A(R, "expected nodes on stack"), A(R.type === "list", "expected list on stack"), R.start = Number.parseInt(
|
|
10314
|
+
this.sliceSerialize(w),
|
|
10315
10315
|
K.numericBaseDecimal
|
|
10316
10316
|
), this.data.expectingFirstListItemValue = void 0;
|
|
10317
10317
|
}
|
|
10318
10318
|
}
|
|
10319
10319
|
function m() {
|
|
10320
|
-
const
|
|
10321
|
-
A(
|
|
10322
|
-
}
|
|
10323
|
-
function S() {
|
|
10324
|
-
const I = this.resume(), w = this.stack[this.stack.length - 1];
|
|
10325
|
-
A(w, "expected node on stack"), A(w.type === "code", "expected code on stack"), w.meta = I;
|
|
10320
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10321
|
+
A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.lang = w;
|
|
10326
10322
|
}
|
|
10327
10323
|
function _() {
|
|
10324
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10325
|
+
A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.meta = w;
|
|
10326
|
+
}
|
|
10327
|
+
function S() {
|
|
10328
10328
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
10329
10329
|
}
|
|
10330
10330
|
function O() {
|
|
10331
|
-
const
|
|
10332
|
-
A(
|
|
10331
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10332
|
+
A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
10333
10333
|
}
|
|
10334
10334
|
function v() {
|
|
10335
|
-
const
|
|
10336
|
-
A(
|
|
10335
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10336
|
+
A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.value = w.replace(/(\r?\n|\r)$/g, "");
|
|
10337
10337
|
}
|
|
10338
|
-
function L(
|
|
10339
|
-
const
|
|
10340
|
-
A(G, "expected node on stack"), A(G.type === "definition", "expected definition on stack"), G.label =
|
|
10341
|
-
this.sliceSerialize(
|
|
10338
|
+
function L(w) {
|
|
10339
|
+
const R = this.resume(), G = this.stack[this.stack.length - 1];
|
|
10340
|
+
A(G, "expected node on stack"), A(G.type === "definition", "expected definition on stack"), G.label = R, G.identifier = Nn(
|
|
10341
|
+
this.sliceSerialize(w)
|
|
10342
10342
|
).toLowerCase();
|
|
10343
10343
|
}
|
|
10344
10344
|
function P() {
|
|
10345
|
-
const
|
|
10346
|
-
A(
|
|
10345
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10346
|
+
A(R, "expected node on stack"), A(R.type === "definition", "expected definition on stack"), R.title = w;
|
|
10347
10347
|
}
|
|
10348
|
-
function
|
|
10349
|
-
const
|
|
10350
|
-
A(
|
|
10348
|
+
function $() {
|
|
10349
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10350
|
+
A(R, "expected node on stack"), A(R.type === "definition", "expected definition on stack"), R.url = w;
|
|
10351
10351
|
}
|
|
10352
|
-
function
|
|
10353
|
-
const
|
|
10354
|
-
if (A(
|
|
10355
|
-
const G = this.sliceSerialize(
|
|
10352
|
+
function I(w) {
|
|
10353
|
+
const R = this.stack[this.stack.length - 1];
|
|
10354
|
+
if (A(R, "expected node on stack"), A(R.type === "heading", "expected heading on stack"), !R.depth) {
|
|
10355
|
+
const G = this.sliceSerialize(w).length;
|
|
10356
10356
|
A(
|
|
10357
10357
|
G === 1 || G === 2 || G === 3 || G === 4 || G === 5 || G === 6,
|
|
10358
10358
|
"expected `depth` between `1` and `6`"
|
|
10359
|
-
),
|
|
10359
|
+
), R.depth = G;
|
|
10360
10360
|
}
|
|
10361
10361
|
}
|
|
10362
10362
|
function D() {
|
|
10363
10363
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
10364
10364
|
}
|
|
10365
|
-
function re(
|
|
10366
|
-
const
|
|
10367
|
-
A(
|
|
10365
|
+
function re(w) {
|
|
10366
|
+
const R = this.stack[this.stack.length - 1];
|
|
10367
|
+
A(R, "expected node on stack"), A(R.type === "heading", "expected heading on stack"), R.depth = this.sliceSerialize(w).codePointAt(0) === b.equalsTo ? 1 : 2;
|
|
10368
10368
|
}
|
|
10369
10369
|
function be() {
|
|
10370
10370
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
10371
10371
|
}
|
|
10372
|
-
function oe(
|
|
10373
|
-
const
|
|
10374
|
-
A(
|
|
10375
|
-
const G =
|
|
10372
|
+
function oe(w) {
|
|
10373
|
+
const R = this.stack[this.stack.length - 1];
|
|
10374
|
+
A(R, "expected node on stack"), A("children" in R, "expected parent on stack");
|
|
10375
|
+
const G = R.children;
|
|
10376
10376
|
let me = G[G.length - 1];
|
|
10377
10377
|
(!me || me.type !== "text") && (me = Ie(), me.position = {
|
|
10378
|
-
start: $t(
|
|
10378
|
+
start: $t(w.start),
|
|
10379
10379
|
// @ts-expect-error: we’ll add `end` later.
|
|
10380
10380
|
end: void 0
|
|
10381
10381
|
}, G.push(me)), this.stack.push(me);
|
|
10382
10382
|
}
|
|
10383
|
-
function q(
|
|
10384
|
-
const
|
|
10385
|
-
A(
|
|
10383
|
+
function q(w) {
|
|
10384
|
+
const R = this.stack.pop();
|
|
10385
|
+
A(R, "expected a `node` to be on the stack"), A("value" in R, "expected a `literal` to be on the stack"), A(R.position, "expected `node` to have an open position"), R.value += this.sliceSerialize(w), R.position.end = $t(w.end);
|
|
10386
10386
|
}
|
|
10387
|
-
function Te(
|
|
10388
|
-
const
|
|
10389
|
-
if (A(
|
|
10390
|
-
A("children" in
|
|
10391
|
-
const G =
|
|
10392
|
-
A(G.position, "expected tail to have a starting position"), G.position.end = $t(
|
|
10387
|
+
function Te(w) {
|
|
10388
|
+
const R = this.stack[this.stack.length - 1];
|
|
10389
|
+
if (A(R, "expected `node`"), this.data.atHardBreak) {
|
|
10390
|
+
A("children" in R, "expected `parent`");
|
|
10391
|
+
const G = R.children[R.children.length - 1];
|
|
10392
|
+
A(G.position, "expected tail to have a starting position"), G.position.end = $t(w.end), this.data.atHardBreak = void 0;
|
|
10393
10393
|
return;
|
|
10394
10394
|
}
|
|
10395
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(
|
|
10395
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(R.type) && (oe.call(this, w), q.call(this, w));
|
|
10396
10396
|
}
|
|
10397
10397
|
function ee() {
|
|
10398
10398
|
this.data.atHardBreak = !0;
|
|
10399
10399
|
}
|
|
10400
10400
|
function B() {
|
|
10401
|
-
const
|
|
10402
|
-
A(
|
|
10401
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10402
|
+
A(R, "expected node on stack"), A(R.type === "html", "expected html on stack"), R.value = w;
|
|
10403
10403
|
}
|
|
10404
10404
|
function F() {
|
|
10405
|
-
const
|
|
10406
|
-
A(
|
|
10405
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10406
|
+
A(R, "expected node on stack"), A(R.type === "html", "expected html on stack"), R.value = w;
|
|
10407
10407
|
}
|
|
10408
10408
|
function J() {
|
|
10409
|
-
const
|
|
10410
|
-
A(
|
|
10409
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10410
|
+
A(R, "expected node on stack"), A(R.type === "inlineCode", "expected inline code on stack"), R.value = w;
|
|
10411
10411
|
}
|
|
10412
10412
|
function fe() {
|
|
10413
|
-
const
|
|
10414
|
-
if (A(
|
|
10415
|
-
const
|
|
10416
|
-
|
|
10413
|
+
const w = this.stack[this.stack.length - 1];
|
|
10414
|
+
if (A(w, "expected node on stack"), A(w.type === "link", "expected link on stack"), this.data.inReference) {
|
|
10415
|
+
const R = this.data.referenceType || "shortcut";
|
|
10416
|
+
w.type += "Reference", w.referenceType = R, delete w.url, delete w.title;
|
|
10417
10417
|
} else
|
|
10418
|
-
delete
|
|
10418
|
+
delete w.identifier, delete w.label;
|
|
10419
10419
|
this.data.referenceType = void 0;
|
|
10420
10420
|
}
|
|
10421
10421
|
function le() {
|
|
10422
|
-
const
|
|
10423
|
-
if (A(
|
|
10424
|
-
const
|
|
10425
|
-
|
|
10422
|
+
const w = this.stack[this.stack.length - 1];
|
|
10423
|
+
if (A(w, "expected node on stack"), A(w.type === "image", "expected image on stack"), this.data.inReference) {
|
|
10424
|
+
const R = this.data.referenceType || "shortcut";
|
|
10425
|
+
w.type += "Reference", w.referenceType = R, delete w.url, delete w.title;
|
|
10426
10426
|
} else
|
|
10427
|
-
delete
|
|
10427
|
+
delete w.identifier, delete w.label;
|
|
10428
10428
|
this.data.referenceType = void 0;
|
|
10429
10429
|
}
|
|
10430
|
-
function ye(
|
|
10431
|
-
const
|
|
10430
|
+
function ye(w) {
|
|
10431
|
+
const R = this.sliceSerialize(w), G = this.stack[this.stack.length - 2];
|
|
10432
10432
|
A(G, "expected ancestor on stack"), A(
|
|
10433
10433
|
G.type === "image" || G.type === "link",
|
|
10434
10434
|
"expected image or link on stack"
|
|
10435
|
-
), G.label = Cm(
|
|
10435
|
+
), G.label = Cm(R), G.identifier = Nn(R).toLowerCase();
|
|
10436
10436
|
}
|
|
10437
|
-
function
|
|
10438
|
-
const
|
|
10439
|
-
A(
|
|
10440
|
-
const
|
|
10437
|
+
function He() {
|
|
10438
|
+
const w = this.stack[this.stack.length - 1];
|
|
10439
|
+
A(w, "expected node on stack"), A(w.type === "fragment", "expected fragment on stack");
|
|
10440
|
+
const R = this.resume(), G = this.stack[this.stack.length - 1];
|
|
10441
10441
|
if (A(G, "expected node on stack"), A(
|
|
10442
10442
|
G.type === "image" || G.type === "link",
|
|
10443
10443
|
"expected image or link on stack"
|
|
10444
10444
|
), this.data.inReference = !0, G.type === "link") {
|
|
10445
|
-
const me =
|
|
10445
|
+
const me = w.children;
|
|
10446
10446
|
G.children = me;
|
|
10447
10447
|
} else
|
|
10448
|
-
G.alt =
|
|
10448
|
+
G.alt = R;
|
|
10449
10449
|
}
|
|
10450
10450
|
function g() {
|
|
10451
|
-
const
|
|
10452
|
-
A(
|
|
10453
|
-
|
|
10451
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10452
|
+
A(R, "expected node on stack"), A(
|
|
10453
|
+
R.type === "image" || R.type === "link",
|
|
10454
10454
|
"expected image or link on stack"
|
|
10455
|
-
),
|
|
10455
|
+
), R.url = w;
|
|
10456
10456
|
}
|
|
10457
10457
|
function Y() {
|
|
10458
|
-
const
|
|
10459
|
-
A(
|
|
10460
|
-
|
|
10458
|
+
const w = this.resume(), R = this.stack[this.stack.length - 1];
|
|
10459
|
+
A(R, "expected node on stack"), A(
|
|
10460
|
+
R.type === "image" || R.type === "link",
|
|
10461
10461
|
"expected image or link on stack"
|
|
10462
|
-
),
|
|
10462
|
+
), R.title = w;
|
|
10463
10463
|
}
|
|
10464
10464
|
function W() {
|
|
10465
10465
|
this.data.inReference = void 0;
|
|
@@ -10467,44 +10467,44 @@ function _m(e) {
|
|
|
10467
10467
|
function x() {
|
|
10468
10468
|
this.data.referenceType = "collapsed";
|
|
10469
10469
|
}
|
|
10470
|
-
function Z(
|
|
10471
|
-
const
|
|
10470
|
+
function Z(w) {
|
|
10471
|
+
const R = this.resume(), G = this.stack[this.stack.length - 1];
|
|
10472
10472
|
A(G, "expected node on stack"), A(
|
|
10473
10473
|
G.type === "image" || G.type === "link",
|
|
10474
10474
|
"expected image reference or link reference on stack"
|
|
10475
|
-
), G.label =
|
|
10476
|
-
this.sliceSerialize(
|
|
10475
|
+
), G.label = R, G.identifier = Nn(
|
|
10476
|
+
this.sliceSerialize(w)
|
|
10477
10477
|
).toLowerCase(), this.data.referenceType = "full";
|
|
10478
10478
|
}
|
|
10479
|
-
function ae(
|
|
10479
|
+
function ae(w) {
|
|
10480
10480
|
A(
|
|
10481
|
-
|
|
10482
|
-
), this.data.characterReferenceType =
|
|
10481
|
+
w.type === "characterReferenceMarkerNumeric" || w.type === "characterReferenceMarkerHexadecimal"
|
|
10482
|
+
), this.data.characterReferenceType = w.type;
|
|
10483
10483
|
}
|
|
10484
|
-
function se(
|
|
10485
|
-
const
|
|
10484
|
+
function se(w) {
|
|
10485
|
+
const R = this.sliceSerialize(w), G = this.data.characterReferenceType;
|
|
10486
10486
|
let me;
|
|
10487
10487
|
if (G)
|
|
10488
10488
|
me = Ku(
|
|
10489
|
-
|
|
10489
|
+
R,
|
|
10490
10490
|
G === p.characterReferenceMarkerNumeric ? K.numericBaseDecimal : K.numericBaseHexadecimal
|
|
10491
10491
|
), this.data.characterReferenceType = void 0;
|
|
10492
10492
|
else {
|
|
10493
|
-
const nt = Oi(
|
|
10493
|
+
const nt = Oi(R);
|
|
10494
10494
|
A(nt !== !1, "expected reference to decode"), me = nt;
|
|
10495
10495
|
}
|
|
10496
10496
|
const Se = this.stack.pop();
|
|
10497
|
-
A(Se, "expected `node`"), A(Se.position, "expected `node.position`"), A("value" in Se, "expected `node.value`"), Se.value += me, Se.position.end = $t(
|
|
10497
|
+
A(Se, "expected `node`"), A(Se.position, "expected `node.position`"), A("value" in Se, "expected `node.value`"), Se.value += me, Se.position.end = $t(w.end);
|
|
10498
10498
|
}
|
|
10499
|
-
function ie(
|
|
10500
|
-
q.call(this,
|
|
10501
|
-
const
|
|
10502
|
-
A(
|
|
10499
|
+
function ie(w) {
|
|
10500
|
+
q.call(this, w);
|
|
10501
|
+
const R = this.stack[this.stack.length - 1];
|
|
10502
|
+
A(R, "expected node on stack"), A(R.type === "link", "expected link on stack"), R.url = this.sliceSerialize(w);
|
|
10503
10503
|
}
|
|
10504
|
-
function Q(
|
|
10505
|
-
q.call(this,
|
|
10506
|
-
const
|
|
10507
|
-
A(
|
|
10504
|
+
function Q(w) {
|
|
10505
|
+
q.call(this, w);
|
|
10506
|
+
const R = this.stack[this.stack.length - 1];
|
|
10507
|
+
A(R, "expected node on stack"), A(R.type === "link", "expected link on stack"), R.url = "mailto:" + this.sliceSerialize(w);
|
|
10508
10508
|
}
|
|
10509
10509
|
function ce() {
|
|
10510
10510
|
return { type: "blockquote", children: [] };
|
|
@@ -10515,7 +10515,7 @@ function _m(e) {
|
|
|
10515
10515
|
function ke() {
|
|
10516
10516
|
return { type: "inlineCode", value: "" };
|
|
10517
10517
|
}
|
|
10518
|
-
function
|
|
10518
|
+
function z() {
|
|
10519
10519
|
return {
|
|
10520
10520
|
type: "definition",
|
|
10521
10521
|
identifier: "",
|
|
@@ -10524,7 +10524,7 @@ function _m(e) {
|
|
|
10524
10524
|
url: ""
|
|
10525
10525
|
};
|
|
10526
10526
|
}
|
|
10527
|
-
function
|
|
10527
|
+
function Ue() {
|
|
10528
10528
|
return { type: "emphasis", children: [] };
|
|
10529
10529
|
}
|
|
10530
10530
|
function We() {
|
|
@@ -10547,19 +10547,19 @@ function _m(e) {
|
|
|
10547
10547
|
function wt() {
|
|
10548
10548
|
return { type: "link", title: null, url: "", children: [] };
|
|
10549
10549
|
}
|
|
10550
|
-
function pt(
|
|
10550
|
+
function pt(w) {
|
|
10551
10551
|
return {
|
|
10552
10552
|
type: "list",
|
|
10553
|
-
ordered:
|
|
10553
|
+
ordered: w.type === "listOrdered",
|
|
10554
10554
|
start: null,
|
|
10555
|
-
spread:
|
|
10555
|
+
spread: w._spread,
|
|
10556
10556
|
children: []
|
|
10557
10557
|
};
|
|
10558
10558
|
}
|
|
10559
|
-
function he(
|
|
10559
|
+
function he(w) {
|
|
10560
10560
|
return {
|
|
10561
10561
|
type: "listItem",
|
|
10562
|
-
spread:
|
|
10562
|
+
spread: w._spread,
|
|
10563
10563
|
checked: null,
|
|
10564
10564
|
children: []
|
|
10565
10565
|
};
|
|
@@ -10573,7 +10573,7 @@ function _m(e) {
|
|
|
10573
10573
|
function Ie() {
|
|
10574
10574
|
return { type: "text", value: "" };
|
|
10575
10575
|
}
|
|
10576
|
-
function
|
|
10576
|
+
function je() {
|
|
10577
10577
|
return { type: "thematicBreak" };
|
|
10578
10578
|
}
|
|
10579
10579
|
}
|
|
@@ -10890,8 +10890,8 @@ function Wm(e, t, n) {
|
|
|
10890
10890
|
for (; ++c < u; ) {
|
|
10891
10891
|
const f = t.children[c], h = {}, m = s ? s[c] : void 0;
|
|
10892
10892
|
m && (h.align = m);
|
|
10893
|
-
let
|
|
10894
|
-
f && (
|
|
10893
|
+
let _ = { type: "element", tagName: i, properties: h, children: [] };
|
|
10894
|
+
f && (_.children = e.all(f), e.patch(f, _), _ = e.applyData(f, _)), l.push(_);
|
|
10895
10895
|
}
|
|
10896
10896
|
const d = {
|
|
10897
10897
|
type: "element",
|
|
@@ -11157,11 +11157,11 @@ function sp(e) {
|
|
|
11157
11157
|
continue;
|
|
11158
11158
|
const d = e.all(l), f = String(l.identifier).toUpperCase(), h = kn(f.toLowerCase());
|
|
11159
11159
|
let m = 0;
|
|
11160
|
-
const
|
|
11161
|
-
for (;
|
|
11162
|
-
|
|
11160
|
+
const _ = [], S = e.footnoteCounts.get(f);
|
|
11161
|
+
for (; S !== void 0 && ++m <= S; ) {
|
|
11162
|
+
_.length > 0 && _.push({ type: "text", value: " " });
|
|
11163
11163
|
let L = typeof n == "string" ? n : n(c, m);
|
|
11164
|
-
typeof L == "string" && (L = { type: "text", value: L }),
|
|
11164
|
+
typeof L == "string" && (L = { type: "text", value: L }), _.push({
|
|
11165
11165
|
type: "element",
|
|
11166
11166
|
tagName: "a",
|
|
11167
11167
|
properties: {
|
|
@@ -11176,9 +11176,9 @@ function sp(e) {
|
|
|
11176
11176
|
const O = d[d.length - 1];
|
|
11177
11177
|
if (O && O.type === "element" && O.tagName === "p") {
|
|
11178
11178
|
const L = O.children[O.children.length - 1];
|
|
11179
|
-
L && L.type === "text" ? L.value += " " : O.children.push({ type: "text", value: " " }), O.children.push(...
|
|
11179
|
+
L && L.type === "text" ? L.value += " " : O.children.push({ type: "text", value: " " }), O.children.push(..._);
|
|
11180
11180
|
} else
|
|
11181
|
-
d.push(...
|
|
11181
|
+
d.push(..._);
|
|
11182
11182
|
const v = {
|
|
11183
11183
|
type: "element",
|
|
11184
11184
|
tagName: "li",
|
|
@@ -11321,7 +11321,7 @@ function mp(e, t, n, r) {
|
|
|
11321
11321
|
}
|
|
11322
11322
|
return h;
|
|
11323
11323
|
function h() {
|
|
11324
|
-
let m = bc,
|
|
11324
|
+
let m = bc, _, S, O;
|
|
11325
11325
|
if ((!t || i(c, l, d[d.length - 1] || void 0)) && (m = pp(n(c, d)), m[0] === ao))
|
|
11326
11326
|
return m;
|
|
11327
11327
|
if ("children" in c && c.children) {
|
|
@@ -11330,11 +11330,11 @@ function mp(e, t, n, r) {
|
|
|
11330
11330
|
c
|
|
11331
11331
|
);
|
|
11332
11332
|
if (v.children && m[0] !== hp)
|
|
11333
|
-
for (
|
|
11334
|
-
const L = v.children[
|
|
11335
|
-
if (
|
|
11336
|
-
return
|
|
11337
|
-
|
|
11333
|
+
for (S = (r ? v.children.length : -1) + s, O = d.concat(v); S > -1 && S < v.children.length; ) {
|
|
11334
|
+
const L = v.children[S];
|
|
11335
|
+
if (_ = u(L, S, O)(), _[0] === ao)
|
|
11336
|
+
return _;
|
|
11337
|
+
S = typeof _[1] == "number" ? _[1] : S + s;
|
|
11338
11338
|
}
|
|
11339
11339
|
}
|
|
11340
11340
|
return m;
|
|
@@ -11379,7 +11379,7 @@ function gp(e, t) {
|
|
|
11379
11379
|
return m(u, d, f);
|
|
11380
11380
|
if (u.options.passThrough && u.options.passThrough.includes(h)) {
|
|
11381
11381
|
if ("children" in d) {
|
|
11382
|
-
const { children:
|
|
11382
|
+
const { children: S, ...O } = d, v = Rn(O);
|
|
11383
11383
|
return v.children = u.all(d), v;
|
|
11384
11384
|
}
|
|
11385
11385
|
return Rn(d);
|
|
@@ -11392,13 +11392,13 @@ function gp(e, t) {
|
|
|
11392
11392
|
const h = d.children;
|
|
11393
11393
|
let m = -1;
|
|
11394
11394
|
for (; ++m < h.length; ) {
|
|
11395
|
-
const
|
|
11396
|
-
if (
|
|
11397
|
-
if (m && h[m - 1].type === "break" && (!Array.isArray(
|
|
11398
|
-
const
|
|
11399
|
-
|
|
11395
|
+
const _ = u.one(h[m], d);
|
|
11396
|
+
if (_) {
|
|
11397
|
+
if (m && h[m - 1].type === "break" && (!Array.isArray(_) && _.type === "text" && (_.value = io(_.value)), !Array.isArray(_) && _.type === "element")) {
|
|
11398
|
+
const S = _.children[0];
|
|
11399
|
+
S && S.type === "text" && (S.value = io(S.value));
|
|
11400
11400
|
}
|
|
11401
|
-
Array.isArray(
|
|
11401
|
+
Array.isArray(_) ? f.push(..._) : f.push(_);
|
|
11402
11402
|
}
|
|
11403
11403
|
}
|
|
11404
11404
|
}
|
|
@@ -11503,12 +11503,12 @@ function Ap() {
|
|
|
11503
11503
|
return l[d];
|
|
11504
11504
|
};
|
|
11505
11505
|
return _a = function c() {
|
|
11506
|
-
var l, d, f, h, m,
|
|
11507
|
-
for (typeof
|
|
11506
|
+
var l, d, f, h, m, _, S = arguments[0], O = 1, v = arguments.length, L = !1;
|
|
11507
|
+
for (typeof S == "boolean" && (L = S, S = arguments[1] || {}, O = 2), (S == null || typeof S != "object" && typeof S != "function") && (S = {}); O < v; ++O)
|
|
11508
11508
|
if (l = arguments[O], l != null)
|
|
11509
11509
|
for (d in l)
|
|
11510
|
-
f = u(
|
|
11511
|
-
return
|
|
11510
|
+
f = u(S, d), h = u(l, d), S !== h && (L && h && (i(h) || (m = a(h))) ? (m ? (m = !1, _ = f && a(f) ? f : []) : _ = f && i(f) ? f : {}, s(S, { name: d, newValue: c(L, _, h) })) : typeof h < "u" && s(S, { name: d, newValue: h }));
|
|
11511
|
+
return S;
|
|
11512
11512
|
}, _a;
|
|
11513
11513
|
}
|
|
11514
11514
|
var Sp = Ap();
|
|
@@ -12358,8 +12358,8 @@ class Hi extends Fp {
|
|
|
12358
12358
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
12359
12359
|
/** @type {unknown} */
|
|
12360
12360
|
f
|
|
12361
|
-
),
|
|
12362
|
-
Vp(
|
|
12361
|
+
), _ = r.stringify(m, h);
|
|
12362
|
+
Vp(_) ? h.value = _ : h.result = _, l(
|
|
12363
12363
|
d,
|
|
12364
12364
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
12365
12365
|
h
|
|
@@ -12632,9 +12632,9 @@ class Hi extends Fp {
|
|
|
12632
12632
|
if (h === -1)
|
|
12633
12633
|
r.push([l, ...d]);
|
|
12634
12634
|
else if (d.length > 0) {
|
|
12635
|
-
let [m, ...
|
|
12636
|
-
const
|
|
12637
|
-
ui(
|
|
12635
|
+
let [m, ..._] = d;
|
|
12636
|
+
const S = r[h][1];
|
|
12637
|
+
ui(S) && ui(m) && (m = va(!0, S, m)), r[h] = [l, m, ..._];
|
|
12638
12638
|
}
|
|
12639
12639
|
}
|
|
12640
12640
|
}
|
|
@@ -12710,8 +12710,8 @@ const $p = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
12710
12710
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
12711
12711
|
];
|
|
12712
12712
|
function Ec(e) {
|
|
12713
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, s = e.disallowedElements, u = e.rehypePlugins || ho, c = e.remarkPlugins || ho, l = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...mo } : mo, d = e.skipHtml, f = e.unwrapDisallowed, h = e.urlTransform || qp, m = Up().use(Nm).use(c).use(Cp, l).use(u),
|
|
12714
|
-
typeof r == "string" ?
|
|
12713
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, s = e.disallowedElements, u = e.rehypePlugins || ho, c = e.remarkPlugins || ho, l = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...mo } : mo, d = e.skipHtml, f = e.unwrapDisallowed, h = e.urlTransform || qp, m = Up().use(Nm).use(c).use(Cp, l).use(u), _ = new gc();
|
|
12714
|
+
typeof r == "string" ? _.value = r : ga(
|
|
12715
12715
|
"Unexpected value `" + r + "` for `children` prop, expected `string`"
|
|
12716
12716
|
), t && s && ga(
|
|
12717
12717
|
"Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"
|
|
@@ -12720,8 +12720,8 @@ function Ec(e) {
|
|
|
12720
12720
|
Object.hasOwn(e, L.from) && ga(
|
|
12721
12721
|
"Unexpected `" + L.from + "` prop, " + (L.to ? "use `" + L.to + "` instead" : "remove it") + " (see <" + $p + "#" + L.id + "> for more info)"
|
|
12722
12722
|
);
|
|
12723
|
-
const
|
|
12724
|
-
let O = m.runSync(
|
|
12723
|
+
const S = m.parse(_);
|
|
12724
|
+
let O = m.runSync(S, _);
|
|
12725
12725
|
return a && (O = {
|
|
12726
12726
|
type: "element",
|
|
12727
12727
|
tagName: "div",
|
|
@@ -12740,21 +12740,21 @@ function Ec(e) {
|
|
|
12740
12740
|
passKeys: !0,
|
|
12741
12741
|
passNode: !0
|
|
12742
12742
|
});
|
|
12743
|
-
function v(L, P,
|
|
12744
|
-
if (L.type === "raw" &&
|
|
12745
|
-
return d ?
|
|
12743
|
+
function v(L, P, $) {
|
|
12744
|
+
if (L.type === "raw" && $ && typeof P == "number")
|
|
12745
|
+
return d ? $.children.splice(P, 1) : $.children[P] = { type: "text", value: L.value }, P;
|
|
12746
12746
|
if (L.type === "element") {
|
|
12747
|
-
let
|
|
12748
|
-
for (
|
|
12749
|
-
if (Object.hasOwn(xa,
|
|
12750
|
-
const D = L.properties[
|
|
12751
|
-
(re === null || re.includes(L.tagName)) && (L.properties[
|
|
12747
|
+
let I;
|
|
12748
|
+
for (I in xa)
|
|
12749
|
+
if (Object.hasOwn(xa, I) && Object.hasOwn(L.properties, I)) {
|
|
12750
|
+
const D = L.properties[I], re = xa[I];
|
|
12751
|
+
(re === null || re.includes(L.tagName)) && (L.properties[I] = h(String(D || ""), I, L));
|
|
12752
12752
|
}
|
|
12753
12753
|
}
|
|
12754
12754
|
if (L.type === "element") {
|
|
12755
|
-
let
|
|
12756
|
-
if (!
|
|
12757
|
-
return f && L.children ?
|
|
12755
|
+
let I = t ? !t.includes(L.tagName) : s ? s.includes(L.tagName) : !1;
|
|
12756
|
+
if (!I && n && typeof P == "number" && (I = !n(L, P, $)), I && $ && typeof P == "number")
|
|
12757
|
+
return f && L.children ? $.children.splice(P, 1, ...L.children) : $.children.splice(P, 1), P;
|
|
12758
12758
|
}
|
|
12759
12759
|
}
|
|
12760
12760
|
}
|
|
@@ -19215,7 +19215,7 @@ function cE(e, {
|
|
|
19215
19215
|
threshold: a = 0,
|
|
19216
19216
|
dedupeKey: i
|
|
19217
19217
|
} = {}) {
|
|
19218
|
-
const s =
|
|
19218
|
+
const s = Fe(!1), u = Fe();
|
|
19219
19219
|
return Wt(
|
|
19220
19220
|
(l) => {
|
|
19221
19221
|
if (u.current?.(), u.current = void 0, !l || s.current) return;
|
|
@@ -19227,8 +19227,8 @@ function cE(e, {
|
|
|
19227
19227
|
return;
|
|
19228
19228
|
}
|
|
19229
19229
|
const h = new IntersectionObserver(
|
|
19230
|
-
(m,
|
|
19231
|
-
m[0]?.isIntersecting && (
|
|
19230
|
+
(m, _) => {
|
|
19231
|
+
m[0]?.isIntersecting && (_.disconnect(), f());
|
|
19232
19232
|
},
|
|
19233
19233
|
{ root: d, rootMargin: r, threshold: a }
|
|
19234
19234
|
);
|
|
@@ -19267,18 +19267,18 @@ function lE({
|
|
|
19267
19267
|
...i
|
|
19268
19268
|
}) {
|
|
19269
19269
|
const s = e.startsWith("/") || typeof window < "u" && e.startsWith(window.location.origin), u = rr.getApiUrl(), c = () => {
|
|
19270
|
-
const
|
|
19270
|
+
const _ = `${u}/tracking/clicked/${n.appToken}`, S = {
|
|
19271
19271
|
discussionId: n.discussionId,
|
|
19272
19272
|
urlClicked: e
|
|
19273
19273
|
};
|
|
19274
19274
|
try {
|
|
19275
|
-
fetch(
|
|
19275
|
+
fetch(_, {
|
|
19276
19276
|
method: "POST",
|
|
19277
19277
|
headers: {
|
|
19278
19278
|
"Content-Type": "application/json",
|
|
19279
19279
|
Accept: "application/json"
|
|
19280
19280
|
},
|
|
19281
|
-
body: JSON.stringify(
|
|
19281
|
+
body: JSON.stringify(S),
|
|
19282
19282
|
keepalive: !0,
|
|
19283
19283
|
cache: "no-store",
|
|
19284
19284
|
credentials: "omit",
|
|
@@ -19288,18 +19288,18 @@ function lE({
|
|
|
19288
19288
|
} catch {
|
|
19289
19289
|
}
|
|
19290
19290
|
}, l = () => {
|
|
19291
|
-
const
|
|
19291
|
+
const _ = `${u}/tracking/displayed/${n.appToken}`, S = {
|
|
19292
19292
|
discussionId: n.discussionId,
|
|
19293
19293
|
urlSeen: e
|
|
19294
19294
|
};
|
|
19295
19295
|
try {
|
|
19296
|
-
fetch(
|
|
19296
|
+
fetch(_, {
|
|
19297
19297
|
method: "POST",
|
|
19298
19298
|
headers: {
|
|
19299
19299
|
"Content-Type": "application/json",
|
|
19300
19300
|
Accept: "application/json"
|
|
19301
19301
|
},
|
|
19302
|
-
body: JSON.stringify(
|
|
19302
|
+
body: JSON.stringify(S),
|
|
19303
19303
|
keepalive: !0,
|
|
19304
19304
|
cache: "no-store",
|
|
19305
19305
|
credentials: "omit",
|
|
@@ -19318,8 +19318,8 @@ function lE({
|
|
|
19318
19318
|
rootMargin: "0px 0px -10% 0px",
|
|
19319
19319
|
// avoid flicker at bottom edge
|
|
19320
19320
|
dedupeKey: d
|
|
19321
|
-
}), h = (
|
|
19322
|
-
c(), r?.(
|
|
19321
|
+
}), h = (_) => {
|
|
19322
|
+
c(), r?.(_);
|
|
19323
19323
|
}, m = s ? {} : { target: "_blank", rel: "noopener noreferrer" };
|
|
19324
19324
|
return s ? /* @__PURE__ */ M.jsxDEV(
|
|
19325
19325
|
"a",
|
|
@@ -19479,8 +19479,8 @@ const dE = ({ content: e, metaData: t, context: n, seenRootEl: r }) => {
|
|
|
19479
19479
|
}, void 0);
|
|
19480
19480
|
};
|
|
19481
19481
|
function hE(e, t, n) {
|
|
19482
|
-
let [r, a] = Oe(e || t), i =
|
|
19483
|
-
|
|
19482
|
+
let [r, a] = Oe(e || t), i = Fe(e !== void 0), s = e !== void 0;
|
|
19483
|
+
Ye(() => {
|
|
19484
19484
|
let l = i.current;
|
|
19485
19485
|
l !== s && console.warn(`WARN: A component changed from ${l ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}.`), i.current = s;
|
|
19486
19486
|
}, [
|
|
@@ -19490,9 +19490,9 @@ function hE(e, t, n) {
|
|
|
19490
19490
|
let f = (h, ...m) => {
|
|
19491
19491
|
n && (Object.is(u, h) || n(h, ...m)), s || (u = h);
|
|
19492
19492
|
};
|
|
19493
|
-
typeof l == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((m, ...
|
|
19494
|
-
let
|
|
19495
|
-
return f(
|
|
19493
|
+
typeof l == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((m, ..._) => {
|
|
19494
|
+
let S = l(s ? u : m, ..._);
|
|
19495
|
+
return f(S, ...d), s ? m : S;
|
|
19496
19496
|
})) : (s || a(l), f(l, ...d));
|
|
19497
19497
|
}, [
|
|
19498
19498
|
s,
|
|
@@ -19507,13 +19507,13 @@ function hE(e, t, n) {
|
|
|
19507
19507
|
const Hr = {
|
|
19508
19508
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
19509
19509
|
current: 0
|
|
19510
|
-
}, il = /* @__PURE__ */
|
|
19510
|
+
}, il = /* @__PURE__ */ $e.createContext(Hr), mE = /* @__PURE__ */ $e.createContext(!1);
|
|
19511
19511
|
let pE = !!(typeof window < "u" && window.document && window.document.createElement), Ma = /* @__PURE__ */ new WeakMap();
|
|
19512
19512
|
function bE(e = !1) {
|
|
19513
|
-
let t = yt(il), n =
|
|
19513
|
+
let t = yt(il), n = Fe(null);
|
|
19514
19514
|
if (n.current === null && !e) {
|
|
19515
19515
|
var r, a;
|
|
19516
|
-
let i = (a =
|
|
19516
|
+
let i = (a = $e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || a === void 0 || (r = a.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
19517
19517
|
if (i) {
|
|
19518
19518
|
let s = Ma.get(i);
|
|
19519
19519
|
s == null ? Ma.set(i, {
|
|
@@ -19532,10 +19532,10 @@ function gE(e) {
|
|
|
19532
19532
|
return e || `${r}-${n}`;
|
|
19533
19533
|
}
|
|
19534
19534
|
function EE(e) {
|
|
19535
|
-
let t =
|
|
19535
|
+
let t = $e.useId(), [n] = Oe(AE()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Hr.prefix}`;
|
|
19536
19536
|
return e || `${r}-${t}`;
|
|
19537
19537
|
}
|
|
19538
|
-
const TE = typeof
|
|
19538
|
+
const TE = typeof $e.useId == "function" ? EE : gE;
|
|
19539
19539
|
function xE() {
|
|
19540
19540
|
return !1;
|
|
19541
19541
|
}
|
|
@@ -19547,7 +19547,7 @@ function CE(e) {
|
|
|
19547
19547
|
};
|
|
19548
19548
|
}
|
|
19549
19549
|
function AE() {
|
|
19550
|
-
return typeof
|
|
19550
|
+
return typeof $e.useSyncExternalStore == "function" ? $e.useSyncExternalStore(CE, xE, yE) : yt(mE);
|
|
19551
19551
|
}
|
|
19552
19552
|
function sl(e) {
|
|
19553
19553
|
var t, n, r = "";
|
|
@@ -19562,10 +19562,10 @@ function SE() {
|
|
|
19562
19562
|
for (var e, t, n = 0, r = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = sl(e)) && (r && (r += " "), r += t);
|
|
19563
19563
|
return r;
|
|
19564
19564
|
}
|
|
19565
|
-
const pn = typeof document < "u" ?
|
|
19565
|
+
const pn = typeof document < "u" ? $e.useLayoutEffect : () => {
|
|
19566
19566
|
};
|
|
19567
19567
|
function cn(e) {
|
|
19568
|
-
const t =
|
|
19568
|
+
const t = Fe(null);
|
|
19569
19569
|
return pn(() => {
|
|
19570
19570
|
t.current = e;
|
|
19571
19571
|
}, [
|
|
@@ -19576,7 +19576,7 @@ function cn(e) {
|
|
|
19576
19576
|
}, []);
|
|
19577
19577
|
}
|
|
19578
19578
|
function _E(e) {
|
|
19579
|
-
let [t, n] = Oe(e), r =
|
|
19579
|
+
let [t, n] = Oe(e), r = Fe(null), a = cn(() => {
|
|
19580
19580
|
if (!r.current) return;
|
|
19581
19581
|
let s = r.current.next();
|
|
19582
19582
|
if (s.done) {
|
|
@@ -19598,7 +19598,7 @@ function _E(e) {
|
|
|
19598
19598
|
}
|
|
19599
19599
|
let vE = !!(typeof window < "u" && window.document && window.document.createElement), Ur = /* @__PURE__ */ new Map();
|
|
19600
19600
|
function jr(e) {
|
|
19601
|
-
let [t, n] = Oe(e), r =
|
|
19601
|
+
let [t, n] = Oe(e), r = Fe(null), a = TE(t), i = Wt((s) => {
|
|
19602
19602
|
r.current = s;
|
|
19603
19603
|
}, []);
|
|
19604
19604
|
return vE && Ur.set(a, i), pn(() => {
|
|
@@ -19608,7 +19608,7 @@ function jr(e) {
|
|
|
19608
19608
|
};
|
|
19609
19609
|
}, [
|
|
19610
19610
|
a
|
|
19611
|
-
]),
|
|
19611
|
+
]), Ye(() => {
|
|
19612
19612
|
let s = r.current;
|
|
19613
19613
|
s && (r.current = null, n(s));
|
|
19614
19614
|
}), a;
|
|
@@ -19790,10 +19790,10 @@ function $E(e) {
|
|
|
19790
19790
|
return e.mozInputSource === 0 && e.isTrusted ? !0 : UE() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
19791
19791
|
}
|
|
19792
19792
|
function YE(e, t, n) {
|
|
19793
|
-
let r =
|
|
19793
|
+
let r = Fe(t), a = cn(() => {
|
|
19794
19794
|
n && n(r.current);
|
|
19795
19795
|
});
|
|
19796
|
-
|
|
19796
|
+
Ye(() => {
|
|
19797
19797
|
var i;
|
|
19798
19798
|
let s = e == null || (i = e.current) === null || i === void 0 ? void 0 : i.form;
|
|
19799
19799
|
return s?.addEventListener("reset", a), () => {
|
|
@@ -19804,7 +19804,7 @@ function YE(e, t, n) {
|
|
|
19804
19804
|
a
|
|
19805
19805
|
]);
|
|
19806
19806
|
}
|
|
19807
|
-
const GE =
|
|
19807
|
+
const GE = $e.createContext({
|
|
19808
19808
|
register: () => {
|
|
19809
19809
|
}
|
|
19810
19810
|
});
|
|
@@ -19829,7 +19829,7 @@ class qE {
|
|
|
19829
19829
|
}
|
|
19830
19830
|
}
|
|
19831
19831
|
function WE(e) {
|
|
19832
|
-
let t =
|
|
19832
|
+
let t = Fe({
|
|
19833
19833
|
isFocused: !1,
|
|
19834
19834
|
observer: null
|
|
19835
19835
|
});
|
|
@@ -20047,7 +20047,7 @@ class Ho {
|
|
|
20047
20047
|
}
|
|
20048
20048
|
}
|
|
20049
20049
|
new Gi();
|
|
20050
|
-
let aT = /* @__PURE__ */
|
|
20050
|
+
let aT = /* @__PURE__ */ $e.createContext(null);
|
|
20051
20051
|
function iT(e) {
|
|
20052
20052
|
let t = yt(aT) || {};
|
|
20053
20053
|
zE(t, e);
|
|
@@ -20055,8 +20055,8 @@ function iT(e) {
|
|
|
20055
20055
|
return r;
|
|
20056
20056
|
}
|
|
20057
20057
|
function sT(e, t) {
|
|
20058
|
-
let { focusProps: n } = XE(e), { keyboardProps: r } = tT(e), a = zr(n, r), i = iT(t), s = e.isDisabled ? {} : i, u =
|
|
20059
|
-
return
|
|
20058
|
+
let { focusProps: n } = XE(e), { keyboardProps: r } = tT(e), a = zr(n, r), i = iT(t), s = e.isDisabled ? {} : i, u = Fe(e.autoFocus);
|
|
20059
|
+
return Ye(() => {
|
|
20060
20060
|
u.current && t.current && nT(t.current), u.current = !1;
|
|
20061
20061
|
}, [
|
|
20062
20062
|
t
|
|
@@ -20089,7 +20089,7 @@ function oT(e, t, n) {
|
|
|
20089
20089
|
}), u = cn(() => {
|
|
20090
20090
|
t.commitValidation();
|
|
20091
20091
|
});
|
|
20092
|
-
|
|
20092
|
+
Ye(() => {
|
|
20093
20093
|
let c = n?.current;
|
|
20094
20094
|
if (!c) return;
|
|
20095
20095
|
let l = c.form;
|
|
@@ -20185,18 +20185,18 @@ function hT(e) {
|
|
|
20185
20185
|
let d = yt(dT), f = _n(() => r ? Array.isArray(r) ? r.flatMap((q) => Ei(d[q])) : Ei(d[r]) : [], [
|
|
20186
20186
|
d,
|
|
20187
20187
|
r
|
|
20188
|
-
]), [h, m] = Oe(d), [
|
|
20189
|
-
d !== h && (m(d),
|
|
20190
|
-
let O = _n(() => jo(
|
|
20191
|
-
|
|
20188
|
+
]), [h, m] = Oe(d), [_, S] = Oe(!1);
|
|
20189
|
+
d !== h && (m(d), S(!1));
|
|
20190
|
+
let O = _n(() => jo(_ ? [] : f), [
|
|
20191
|
+
_,
|
|
20192
20192
|
f
|
|
20193
|
-
]), v =
|
|
20193
|
+
]), v = Fe(Vn), [L, P] = Oe(Vn), $ = Fe(Vn), I = () => {
|
|
20194
20194
|
if (!D) return;
|
|
20195
20195
|
re(!1);
|
|
20196
20196
|
let q = l || i || v.current;
|
|
20197
|
-
Ba(q,
|
|
20197
|
+
Ba(q, $.current) || ($.current = q, P(q));
|
|
20198
20198
|
}, [D, re] = Oe(!1);
|
|
20199
|
-
return
|
|
20199
|
+
return Ye(I), {
|
|
20200
20200
|
realtimeValidation: c || O || l || i || Vn,
|
|
20201
20201
|
displayValidation: u === "native" ? c || O || L : c || O || l || i || L,
|
|
20202
20202
|
updateValidation(q) {
|
|
@@ -20204,10 +20204,10 @@ function hT(e) {
|
|
|
20204
20204
|
},
|
|
20205
20205
|
resetValidation() {
|
|
20206
20206
|
let q = Vn;
|
|
20207
|
-
Ba(q,
|
|
20207
|
+
Ba(q, $.current) || ($.current = q, P(q)), u === "native" && re(!1), S(!0);
|
|
20208
20208
|
},
|
|
20209
20209
|
commitValidation() {
|
|
20210
|
-
u === "native" && re(!0),
|
|
20210
|
+
u === "native" && re(!0), S(!0);
|
|
20211
20211
|
}
|
|
20212
20212
|
};
|
|
20213
20213
|
}
|
|
@@ -20285,22 +20285,22 @@ function gT(e, t) {
|
|
|
20285
20285
|
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: a = !1, isReadOnly: i = !1, type: s = "text", validationBehavior: u = "aria" } = e, [c, l] = hE(e.value, e.defaultValue || "", e.onChange), { focusableProps: d } = sT(e, t), f = fT({
|
|
20286
20286
|
...e,
|
|
20287
20287
|
value: c
|
|
20288
|
-
}), { isInvalid: h, validationErrors: m, validationDetails:
|
|
20288
|
+
}), { isInvalid: h, validationErrors: m, validationDetails: _ } = f.displayValidation, { labelProps: S, fieldProps: O, descriptionProps: v, errorMessageProps: L } = bT({
|
|
20289
20289
|
...e,
|
|
20290
20290
|
isInvalid: h,
|
|
20291
20291
|
errorMessage: e.errorMessage || m
|
|
20292
20292
|
}), P = DE(e, {
|
|
20293
20293
|
labelable: !0
|
|
20294
20294
|
});
|
|
20295
|
-
const
|
|
20295
|
+
const $ = {
|
|
20296
20296
|
type: s,
|
|
20297
20297
|
pattern: e.pattern
|
|
20298
20298
|
};
|
|
20299
|
-
return YE(t, c, l), oT(e, f, t),
|
|
20299
|
+
return YE(t, c, l), oT(e, f, t), Ye(() => {
|
|
20300
20300
|
if (t.current instanceof Vr(t.current).HTMLTextAreaElement) {
|
|
20301
|
-
let
|
|
20302
|
-
Object.defineProperty(
|
|
20303
|
-
get: () =>
|
|
20301
|
+
let I = t.current;
|
|
20302
|
+
Object.defineProperty(I, "defaultValue", {
|
|
20303
|
+
get: () => I.value,
|
|
20304
20304
|
set: () => {
|
|
20305
20305
|
},
|
|
20306
20306
|
configurable: !0
|
|
@@ -20309,8 +20309,8 @@ function gT(e, t) {
|
|
|
20309
20309
|
}, [
|
|
20310
20310
|
t
|
|
20311
20311
|
]), {
|
|
20312
|
-
labelProps:
|
|
20313
|
-
inputProps: zr(P, n === "input" &&
|
|
20312
|
+
labelProps: S,
|
|
20313
|
+
inputProps: zr(P, n === "input" && $, {
|
|
20314
20314
|
disabled: r,
|
|
20315
20315
|
readOnly: i,
|
|
20316
20316
|
required: a && u === "native",
|
|
@@ -20321,7 +20321,7 @@ function gT(e, t) {
|
|
|
20321
20321
|
"aria-autocomplete": e["aria-autocomplete"],
|
|
20322
20322
|
"aria-haspopup": e["aria-haspopup"],
|
|
20323
20323
|
value: c,
|
|
20324
|
-
onChange: (
|
|
20324
|
+
onChange: (I) => l(I.target.value),
|
|
20325
20325
|
autoComplete: e.autoComplete,
|
|
20326
20326
|
autoCapitalize: e.autoCapitalize,
|
|
20327
20327
|
maxLength: e.maxLength,
|
|
@@ -20349,7 +20349,7 @@ function gT(e, t) {
|
|
|
20349
20349
|
errorMessageProps: L,
|
|
20350
20350
|
isInvalid: h,
|
|
20351
20351
|
validationErrors: m,
|
|
20352
|
-
validationDetails:
|
|
20352
|
+
validationDetails: _
|
|
20353
20353
|
};
|
|
20354
20354
|
}
|
|
20355
20355
|
const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
@@ -20357,10 +20357,10 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20357
20357
|
h.current && (h.current.style.height = h.current.scrollHeight + "px");
|
|
20358
20358
|
}, a = () => {
|
|
20359
20359
|
h.current && (h.current.style.height = "48px");
|
|
20360
|
-
}, i = (
|
|
20361
|
-
n(
|
|
20360
|
+
}, i = (I) => {
|
|
20361
|
+
n(I);
|
|
20362
20362
|
};
|
|
20363
|
-
|
|
20363
|
+
Ye(r, [t]);
|
|
20364
20364
|
let {
|
|
20365
20365
|
label: s,
|
|
20366
20366
|
SubmitComponent: u,
|
|
@@ -20368,24 +20368,33 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20368
20368
|
isLoadingStream: l,
|
|
20369
20369
|
LoadingComponent: d,
|
|
20370
20370
|
onPressLoadingButton: f
|
|
20371
|
-
} = e, h =
|
|
20371
|
+
} = e, h = Fe(null), { labelProps: m, inputProps: _ } = gT(
|
|
20372
20372
|
{
|
|
20373
20373
|
...e,
|
|
20374
20374
|
inputElementType: "textarea"
|
|
20375
20375
|
},
|
|
20376
20376
|
h
|
|
20377
20377
|
);
|
|
20378
|
-
const
|
|
20379
|
-
ET(
|
|
20380
|
-
}, O = (
|
|
20381
|
-
(
|
|
20382
|
-
|
|
20378
|
+
const S = (I) => {
|
|
20379
|
+
ET(I.target.value) || i(I.target.value);
|
|
20380
|
+
}, O = (I) => {
|
|
20381
|
+
if (I.key === "Enter" || I.code === "Enter" || I.keyCode === 13 || I.code === "NumpadEnter") {
|
|
20382
|
+
if (I.shiftKey)
|
|
20383
|
+
i(t + `
|
|
20384
|
+
`);
|
|
20385
|
+
else if (!I.shiftKey) {
|
|
20386
|
+
I.preventDefault(), I.stopPropagation(), l || P();
|
|
20387
|
+
return;
|
|
20388
|
+
}
|
|
20389
|
+
}
|
|
20390
|
+
}, v = (I) => {
|
|
20391
|
+
(I.key === "Enter" || I.code === "Enter" || I.keyCode === 13 || I.code === "NumpadEnter") && (I.preventDefault(), I.stopPropagation());
|
|
20383
20392
|
};
|
|
20384
|
-
let
|
|
20385
|
-
e.shouldDisableIfInputIsEmpty && (
|
|
20386
|
-
const
|
|
20393
|
+
let L = e.isDisabled;
|
|
20394
|
+
e.shouldDisableIfInputIsEmpty && (L = e.isDisabled || t.length === 0);
|
|
20395
|
+
const P = () => {
|
|
20387
20396
|
a(), c && c(t), i("");
|
|
20388
|
-
},
|
|
20397
|
+
}, $ = () => {
|
|
20389
20398
|
f && f();
|
|
20390
20399
|
};
|
|
20391
20400
|
return /* @__PURE__ */ M.jsxDEV(
|
|
@@ -20397,16 +20406,16 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20397
20406
|
/* @__PURE__ */ M.jsxDEV("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
20398
20407
|
/* @__PURE__ */ M.jsxDEV("label", { ...m, className: e.classNameLabel, children: s }, void 0, !1, {
|
|
20399
20408
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20400
|
-
lineNumber:
|
|
20409
|
+
lineNumber: 131,
|
|
20401
20410
|
columnNumber: 9
|
|
20402
20411
|
}, void 0),
|
|
20403
20412
|
/* @__PURE__ */ M.jsxDEV(
|
|
20404
20413
|
"textarea",
|
|
20405
20414
|
{
|
|
20406
|
-
...
|
|
20415
|
+
..._,
|
|
20407
20416
|
ref: h,
|
|
20408
20417
|
className: `${e.classNameTextarea} p-3`,
|
|
20409
|
-
onChange:
|
|
20418
|
+
onChange: S,
|
|
20410
20419
|
value: t,
|
|
20411
20420
|
rows: 1,
|
|
20412
20421
|
style: {
|
|
@@ -20417,48 +20426,49 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20417
20426
|
width: "calc(100% - 30px)",
|
|
20418
20427
|
resize: "none"
|
|
20419
20428
|
},
|
|
20420
|
-
onKeyDown: O
|
|
20429
|
+
onKeyDown: O,
|
|
20430
|
+
onKeyUp: v
|
|
20421
20431
|
},
|
|
20422
20432
|
void 0,
|
|
20423
20433
|
!1,
|
|
20424
20434
|
{
|
|
20425
20435
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20426
|
-
lineNumber:
|
|
20436
|
+
lineNumber: 134,
|
|
20427
20437
|
columnNumber: 9
|
|
20428
20438
|
},
|
|
20429
20439
|
void 0
|
|
20430
20440
|
)
|
|
20431
20441
|
] }, void 0, !0, {
|
|
20432
20442
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20433
|
-
lineNumber:
|
|
20443
|
+
lineNumber: 130,
|
|
20434
20444
|
columnNumber: 7
|
|
20435
20445
|
}, void 0),
|
|
20436
20446
|
!l && u && /* @__PURE__ */ M.jsxDEV("div", { className: "relative", children: /* @__PURE__ */ M.jsxDEV(
|
|
20437
20447
|
u,
|
|
20438
20448
|
{
|
|
20439
|
-
onSubmitButton:
|
|
20440
|
-
isDisabled:
|
|
20449
|
+
onSubmitButton: P,
|
|
20450
|
+
isDisabled: L
|
|
20441
20451
|
},
|
|
20442
20452
|
void 0,
|
|
20443
20453
|
!1,
|
|
20444
20454
|
{
|
|
20445
20455
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20446
|
-
lineNumber:
|
|
20456
|
+
lineNumber: 155,
|
|
20447
20457
|
columnNumber: 11
|
|
20448
20458
|
},
|
|
20449
20459
|
void 0
|
|
20450
20460
|
) }, void 0, !1, {
|
|
20451
20461
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20452
|
-
lineNumber:
|
|
20462
|
+
lineNumber: 154,
|
|
20453
20463
|
columnNumber: 9
|
|
20454
20464
|
}, void 0),
|
|
20455
|
-
l && d && /* @__PURE__ */ M.jsxDEV("div", { className: "relative", children: /* @__PURE__ */ M.jsxDEV(d, { onPressLoadingButton:
|
|
20465
|
+
l && d && /* @__PURE__ */ M.jsxDEV("div", { className: "relative", children: /* @__PURE__ */ M.jsxDEV(d, { onPressLoadingButton: $ }, void 0, !1, {
|
|
20456
20466
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20457
|
-
lineNumber:
|
|
20467
|
+
lineNumber: 163,
|
|
20458
20468
|
columnNumber: 11
|
|
20459
20469
|
}, void 0) }, void 0, !1, {
|
|
20460
20470
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20461
|
-
lineNumber:
|
|
20471
|
+
lineNumber: 162,
|
|
20462
20472
|
columnNumber: 9
|
|
20463
20473
|
}, void 0)
|
|
20464
20474
|
]
|
|
@@ -20467,7 +20477,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20467
20477
|
!0,
|
|
20468
20478
|
{
|
|
20469
20479
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
|
|
20470
|
-
lineNumber:
|
|
20480
|
+
lineNumber: 126,
|
|
20471
20481
|
columnNumber: 5
|
|
20472
20482
|
},
|
|
20473
20483
|
void 0
|
|
@@ -20498,6 +20508,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20498
20508
|
"data-testid": "send-button",
|
|
20499
20509
|
onClick: e,
|
|
20500
20510
|
disabled: t,
|
|
20511
|
+
type: "button",
|
|
20501
20512
|
children: /* @__PURE__ */ M.jsxDEV("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ M.jsxDEV(
|
|
20502
20513
|
"svg",
|
|
20503
20514
|
{
|
|
@@ -20519,7 +20530,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20519
20530
|
!1,
|
|
20520
20531
|
{
|
|
20521
20532
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/ArrowButton.tsx",
|
|
20522
|
-
lineNumber:
|
|
20533
|
+
lineNumber: 43,
|
|
20523
20534
|
columnNumber: 13
|
|
20524
20535
|
},
|
|
20525
20536
|
void 0
|
|
@@ -20529,13 +20540,13 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
|
|
|
20529
20540
|
!1,
|
|
20530
20541
|
{
|
|
20531
20542
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/ArrowButton.tsx",
|
|
20532
|
-
lineNumber:
|
|
20543
|
+
lineNumber: 36,
|
|
20533
20544
|
columnNumber: 11
|
|
20534
20545
|
},
|
|
20535
20546
|
void 0
|
|
20536
20547
|
) }, void 0, !1, {
|
|
20537
20548
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/ArrowButton.tsx",
|
|
20538
|
-
lineNumber:
|
|
20549
|
+
lineNumber: 35,
|
|
20539
20550
|
columnNumber: 9
|
|
20540
20551
|
}, void 0)
|
|
20541
20552
|
},
|
|
@@ -20742,7 +20753,7 @@ AT.reduce(
|
|
|
20742
20753
|
},
|
|
20743
20754
|
[]
|
|
20744
20755
|
);
|
|
20745
|
-
const ST = "languageSettings", hl =
|
|
20756
|
+
const ST = "languageSettings", hl = $e.createContext({
|
|
20746
20757
|
appCurrentLang: sa[xt.ENGLISH],
|
|
20747
20758
|
setAppCurrentLang: () => {
|
|
20748
20759
|
}
|
|
@@ -20925,6 +20936,7 @@ const pl = () => {
|
|
|
20925
20936
|
className: "absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors",
|
|
20926
20937
|
"data-testid": "send-button",
|
|
20927
20938
|
onClick: e,
|
|
20939
|
+
type: "button",
|
|
20928
20940
|
children: /* @__PURE__ */ M.jsxDEV("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ M.jsxDEV(
|
|
20929
20941
|
"svg",
|
|
20930
20942
|
{
|
|
@@ -20938,7 +20950,7 @@ const pl = () => {
|
|
|
20938
20950
|
children: [
|
|
20939
20951
|
/* @__PURE__ */ M.jsxDEV("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }, void 0, !1, {
|
|
20940
20952
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
|
|
20941
|
-
lineNumber:
|
|
20953
|
+
lineNumber: 27,
|
|
20942
20954
|
columnNumber: 13
|
|
20943
20955
|
}, void 0),
|
|
20944
20956
|
/* @__PURE__ */ M.jsxDEV(
|
|
@@ -20952,7 +20964,7 @@ const pl = () => {
|
|
|
20952
20964
|
!1,
|
|
20953
20965
|
{
|
|
20954
20966
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
|
|
20955
|
-
lineNumber:
|
|
20967
|
+
lineNumber: 29,
|
|
20956
20968
|
columnNumber: 13
|
|
20957
20969
|
},
|
|
20958
20970
|
void 0
|
|
@@ -20961,13 +20973,13 @@ const pl = () => {
|
|
|
20961
20973
|
" ",
|
|
20962
20974
|
/* @__PURE__ */ M.jsxDEV("path", { d: "M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z" }, void 0, !1, {
|
|
20963
20975
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
|
|
20964
|
-
lineNumber:
|
|
20976
|
+
lineNumber: 37,
|
|
20965
20977
|
columnNumber: 15
|
|
20966
20978
|
}, void 0),
|
|
20967
20979
|
" "
|
|
20968
20980
|
] }, void 0, !0, {
|
|
20969
20981
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
|
|
20970
|
-
lineNumber:
|
|
20982
|
+
lineNumber: 35,
|
|
20971
20983
|
columnNumber: 13
|
|
20972
20984
|
}, void 0)
|
|
20973
20985
|
]
|
|
@@ -20976,13 +20988,13 @@ const pl = () => {
|
|
|
20976
20988
|
!0,
|
|
20977
20989
|
{
|
|
20978
20990
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
|
|
20979
|
-
lineNumber:
|
|
20991
|
+
lineNumber: 18,
|
|
20980
20992
|
columnNumber: 11
|
|
20981
20993
|
},
|
|
20982
20994
|
void 0
|
|
20983
20995
|
) }, void 0, !1, {
|
|
20984
20996
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
|
|
20985
|
-
lineNumber:
|
|
20997
|
+
lineNumber: 17,
|
|
20986
20998
|
columnNumber: 9
|
|
20987
20999
|
}, void 0)
|
|
20988
21000
|
},
|
|
@@ -20998,7 +21010,7 @@ const pl = () => {
|
|
|
20998
21010
|
fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
|
|
20999
21011
|
lineNumber: 10,
|
|
21000
21012
|
columnNumber: 5
|
|
21001
|
-
}, void 0), bl =
|
|
21013
|
+
}, void 0), bl = $e.createContext({
|
|
21002
21014
|
conversation: [],
|
|
21003
21015
|
setConversation: () => {
|
|
21004
21016
|
},
|
|
@@ -21006,12 +21018,12 @@ const pl = () => {
|
|
|
21006
21018
|
setDiscussionId: () => {
|
|
21007
21019
|
}
|
|
21008
21020
|
}), DT = (e) => {
|
|
21009
|
-
const t =
|
|
21021
|
+
const t = Fe(null), [n, r] = Oe(!1), a = Fe(!0), i = Fe(!1), s = Fe(0), u = () => {
|
|
21010
21022
|
const d = t.current, f = 4;
|
|
21011
21023
|
if (d) {
|
|
21012
21024
|
d.scrollTop < s.current - 1 && (i.current = !1);
|
|
21013
|
-
const m = d.scrollHeight > d.clientHeight,
|
|
21014
|
-
r(m && !
|
|
21025
|
+
const m = d.scrollHeight > d.clientHeight, _ = d.scrollHeight - d.scrollTop <= d.clientHeight + f;
|
|
21026
|
+
r(m && !_), a.current = _, s.current = d.scrollTop;
|
|
21015
21027
|
}
|
|
21016
21028
|
}, c = ({
|
|
21017
21029
|
smooth: d = !1,
|
|
@@ -21026,9 +21038,9 @@ const pl = () => {
|
|
|
21026
21038
|
behavior: d ? "smooth" : "auto"
|
|
21027
21039
|
});
|
|
21028
21040
|
};
|
|
21029
|
-
return
|
|
21041
|
+
return Ye(() => {
|
|
21030
21042
|
u();
|
|
21031
|
-
}, [e]),
|
|
21043
|
+
}, [e]), Ye(() => {
|
|
21032
21044
|
const d = t.current;
|
|
21033
21045
|
if (d)
|
|
21034
21046
|
return d.addEventListener("scroll", u), u(), () => {
|
|
@@ -21206,18 +21218,18 @@ const gl = ({
|
|
|
21206
21218
|
containerClassName: t
|
|
21207
21219
|
}) => {
|
|
21208
21220
|
e || console.log("Dev - Admin settings");
|
|
21209
|
-
const n =
|
|
21221
|
+
const n = Fe(null), {
|
|
21210
21222
|
placeholderTranslation: r,
|
|
21211
21223
|
genericErrorTranslation: a,
|
|
21212
21224
|
tooManyRequestsTranslation: i,
|
|
21213
21225
|
conflictErrorTranslation: s
|
|
21214
|
-
} = vi(), { conversation: u, setConversation: c, discussionId: l, setDiscussionId: d } = yt(bl), [f, h] = Oe("notLoading"), { defaultStartingStep: m } = pl(), [
|
|
21226
|
+
} = vi(), { conversation: u, setConversation: c, discussionId: l, setDiscussionId: d } = yt(bl), [f, h] = Oe("notLoading"), { defaultStartingStep: m } = pl(), [_, S] = Oe(
|
|
21215
21227
|
null
|
|
21216
21228
|
), [O, v] = Oe(
|
|
21217
21229
|
m
|
|
21218
21230
|
), [L, P] = Oe(
|
|
21219
21231
|
null
|
|
21220
|
-
), { companySettings:
|
|
21232
|
+
), { companySettings: $ } = yt(ar), { appCurrentLang: I } = yt(hl), re = {
|
|
21221
21233
|
...f !== "notLoading" || (u?.length ?? 0) > 0 ? {
|
|
21222
21234
|
maxHeight: "100vh"
|
|
21223
21235
|
//TODO overridable with custom css
|
|
@@ -21225,31 +21237,31 @@ const gl = ({
|
|
|
21225
21237
|
height: "250px"
|
|
21226
21238
|
//TODO overridable with custom css
|
|
21227
21239
|
}
|
|
21228
|
-
}, be = NT(u) >=
|
|
21240
|
+
}, be = NT(u) >= $?.api?.settings?.maxUserMessagesPerDiscussion, {
|
|
21229
21241
|
scrollToBottom: oe,
|
|
21230
21242
|
showScrollButton: q,
|
|
21231
21243
|
messagesContainerRef: Te,
|
|
21232
21244
|
removeStickyNess: ee
|
|
21233
|
-
} = DT(u), B = (le, ye,
|
|
21245
|
+
} = DT(u), B = (le, ye, He) => {
|
|
21234
21246
|
c((g) => [
|
|
21235
21247
|
...g,
|
|
21236
|
-
{ content: le, userType: ye, metaData:
|
|
21248
|
+
{ content: le, userType: ye, metaData: He }
|
|
21237
21249
|
]);
|
|
21238
21250
|
}, F = () => {
|
|
21239
|
-
Ir.abort("
|
|
21251
|
+
Ir.abort("Cancelling stream on purpose."), console.log("Stream request aborted"), h("notLoading"), c(
|
|
21240
21252
|
(le) => le.filter(
|
|
21241
21253
|
(ye) => !(ye.content?.length === 0 && ye.userType === "assistant")
|
|
21242
21254
|
)
|
|
21243
21255
|
);
|
|
21244
21256
|
}, { resetDiscussion: J } = Rf({
|
|
21245
|
-
companySettings:
|
|
21257
|
+
companySettings: $,
|
|
21246
21258
|
setConversation: c,
|
|
21247
21259
|
setDiscussionId: d
|
|
21248
21260
|
}), fe = async (le) => {
|
|
21249
21261
|
h("loadingIntermediaryStates");
|
|
21250
|
-
const ye = rr.getApiUrl(),
|
|
21262
|
+
const ye = rr.getApiUrl(), He = {
|
|
21251
21263
|
query: le,
|
|
21252
|
-
language:
|
|
21264
|
+
language: I.locale
|
|
21253
21265
|
};
|
|
21254
21266
|
c((W) => [
|
|
21255
21267
|
...W,
|
|
@@ -21259,10 +21271,10 @@ const gl = ({
|
|
|
21259
21271
|
}
|
|
21260
21272
|
]), requestAnimationFrame(
|
|
21261
21273
|
() => oe({ smooth: !1, sticky: !1 })
|
|
21262
|
-
), l && (
|
|
21274
|
+
), l && (He.discussionId = l);
|
|
21263
21275
|
const g = Ir.signal, Y = rr.getFetchConfig({
|
|
21264
21276
|
httpVerb: "POST",
|
|
21265
|
-
body:
|
|
21277
|
+
body: He,
|
|
21266
21278
|
contentType: "application/json",
|
|
21267
21279
|
options: {
|
|
21268
21280
|
signal: g
|
|
@@ -21273,9 +21285,9 @@ const gl = ({
|
|
|
21273
21285
|
let ae = "", se = "", ie = !1, Q = !1, ce = null;
|
|
21274
21286
|
const ue = W.headers.get("discussionId");
|
|
21275
21287
|
d(parseInt(ue, 10)), await new ReadableStream({
|
|
21276
|
-
start(
|
|
21277
|
-
return
|
|
21278
|
-
async function
|
|
21288
|
+
start(z) {
|
|
21289
|
+
return Ue();
|
|
21290
|
+
async function Ue() {
|
|
21279
21291
|
if (!W.ok) {
|
|
21280
21292
|
h("notLoading");
|
|
21281
21293
|
let We = a;
|
|
@@ -21295,40 +21307,40 @@ const gl = ({
|
|
|
21295
21307
|
content: Ee,
|
|
21296
21308
|
isLastAnswer: Ne,
|
|
21297
21309
|
streamSourceUuid: Ie,
|
|
21298
|
-
shouldStopStream:
|
|
21310
|
+
shouldStopStream: je
|
|
21299
21311
|
} = he;
|
|
21300
|
-
ce && ce !== Ie && (ae += '<span style="display:block;height:1rem;"></span>'), ce = Ie, (Ne ||
|
|
21301
|
-
const
|
|
21302
|
-
return
|
|
21312
|
+
ce && ce !== Ie && (ae += '<span style="display:block;height:1rem;"></span>'), ce = Ie, (Ne || je) && (Q = !0), z.enqueue(Ee), vT(Ee) ? (se += Ee, ae += se, se = "", ie = !1) : ie || _T(Ee) ? (se += Ee, ie = !0) : ae += Ee, c((w) => {
|
|
21313
|
+
const R = [...w], G = R.length - 1, me = R[G];
|
|
21314
|
+
return R[G] = {
|
|
21303
21315
|
...me,
|
|
21304
21316
|
content: me.content = ae,
|
|
21305
21317
|
metaData: {
|
|
21306
|
-
isErrorMessage:
|
|
21318
|
+
isErrorMessage: je
|
|
21307
21319
|
}
|
|
21308
|
-
}, [...
|
|
21320
|
+
}, [...R];
|
|
21309
21321
|
});
|
|
21310
21322
|
} else if (xn.isObjectOutputstreamLoadingCurrentStepNumberDTO(
|
|
21311
21323
|
he
|
|
21312
21324
|
)) {
|
|
21313
21325
|
const { content: Ee } = he;
|
|
21314
|
-
|
|
21326
|
+
z.enqueue(Ee), P(Ee);
|
|
21315
21327
|
} else if (xn.isObjectOutputstreamLoadingCurrentStepNameDTO(
|
|
21316
21328
|
he
|
|
21317
21329
|
)) {
|
|
21318
21330
|
const { content: Ee } = he;
|
|
21319
|
-
|
|
21331
|
+
z.enqueue(Ee), v(Ee);
|
|
21320
21332
|
} else if (xn.isObjectOutputstreamLoadingNumberOfStepsDTO(
|
|
21321
21333
|
he
|
|
21322
21334
|
)) {
|
|
21323
21335
|
const { content: Ee } = he;
|
|
21324
|
-
|
|
21336
|
+
z.enqueue(Ee), S(Ee);
|
|
21325
21337
|
} else
|
|
21326
21338
|
console.warn(`Object not handled - ${he}`);
|
|
21327
21339
|
if (Je && Q) {
|
|
21328
|
-
|
|
21340
|
+
z.close(), h("notLoading"), v(m), P(null);
|
|
21329
21341
|
return;
|
|
21330
21342
|
}
|
|
21331
|
-
return
|
|
21343
|
+
return Ue();
|
|
21332
21344
|
});
|
|
21333
21345
|
}
|
|
21334
21346
|
}
|
|
@@ -21385,7 +21397,7 @@ const gl = ({
|
|
|
21385
21397
|
currentStepName: O,
|
|
21386
21398
|
currentStepNumber: L,
|
|
21387
21399
|
loadingStatus: f,
|
|
21388
|
-
numberOfSteps:
|
|
21400
|
+
numberOfSteps: _
|
|
21389
21401
|
},
|
|
21390
21402
|
void 0,
|
|
21391
21403
|
!1,
|
|
@@ -21638,8 +21650,8 @@ function FT() {
|
|
|
21638
21650
|
throw h.name = "Invariant Violation", h;
|
|
21639
21651
|
}
|
|
21640
21652
|
f = i[d](s, d, c, u, null, t);
|
|
21641
|
-
} catch (
|
|
21642
|
-
f =
|
|
21653
|
+
} catch (_) {
|
|
21654
|
+
f = _;
|
|
21643
21655
|
}
|
|
21644
21656
|
if (f && !(f instanceof Error) && e(
|
|
21645
21657
|
(c || "React class") + ": type specification of " + u + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -21692,8 +21704,8 @@ function HT() {
|
|
|
21692
21704
|
symbol: v("symbol"),
|
|
21693
21705
|
any: L(),
|
|
21694
21706
|
arrayOf: P,
|
|
21695
|
-
element:
|
|
21696
|
-
elementType:
|
|
21707
|
+
element: $(),
|
|
21708
|
+
elementType: I(),
|
|
21697
21709
|
instanceOf: D,
|
|
21698
21710
|
node: q(),
|
|
21699
21711
|
objectOf: be,
|
|
@@ -21702,32 +21714,32 @@ function HT() {
|
|
|
21702
21714
|
shape: ee,
|
|
21703
21715
|
exact: B
|
|
21704
21716
|
};
|
|
21705
|
-
function
|
|
21717
|
+
function _(g, Y) {
|
|
21706
21718
|
return g === Y ? g !== 0 || 1 / g === 1 / Y : g !== g && Y !== Y;
|
|
21707
21719
|
}
|
|
21708
|
-
function
|
|
21720
|
+
function S(g, Y) {
|
|
21709
21721
|
this.message = g, this.data = Y && typeof Y == "object" ? Y : {}, this.stack = "";
|
|
21710
21722
|
}
|
|
21711
|
-
|
|
21723
|
+
S.prototype = Error.prototype;
|
|
21712
21724
|
function O(g) {
|
|
21713
21725
|
if (process.env.NODE_ENV !== "production")
|
|
21714
21726
|
var Y = {}, W = 0;
|
|
21715
21727
|
function x(ae, se, ie, Q, ce, ue, ke) {
|
|
21716
21728
|
if (Q = Q || h, ue = ue || ie, ke !== n) {
|
|
21717
21729
|
if (c) {
|
|
21718
|
-
var
|
|
21730
|
+
var z = new Error(
|
|
21719
21731
|
"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"
|
|
21720
21732
|
);
|
|
21721
|
-
throw
|
|
21733
|
+
throw z.name = "Invariant Violation", z;
|
|
21722
21734
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
21723
|
-
var
|
|
21724
|
-
!Y[
|
|
21735
|
+
var Ue = Q + ":" + ie;
|
|
21736
|
+
!Y[Ue] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
21725
21737
|
W < 3 && (i(
|
|
21726
21738
|
"You are manually calling a React.PropTypes validation function for the `" + ue + "` prop on `" + Q + "`. 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."
|
|
21727
|
-
), Y[
|
|
21739
|
+
), Y[Ue] = !0, W++);
|
|
21728
21740
|
}
|
|
21729
21741
|
}
|
|
21730
|
-
return se[ie] == null ? ae ? se[ie] === null ? new
|
|
21742
|
+
return se[ie] == null ? ae ? se[ie] === null ? new S("The " + ce + " `" + ue + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new S("The " + ce + " `" + ue + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : g(se, ie, Q, ce, ue);
|
|
21731
21743
|
}
|
|
21732
21744
|
var Z = x.bind(null, !1);
|
|
21733
21745
|
return Z.isRequired = x.bind(null, !0), Z;
|
|
@@ -21737,7 +21749,7 @@ function HT() {
|
|
|
21737
21749
|
var Q = W[x], ce = fe(Q);
|
|
21738
21750
|
if (ce !== g) {
|
|
21739
21751
|
var ue = le(Q);
|
|
21740
|
-
return new
|
|
21752
|
+
return new S(
|
|
21741
21753
|
"Invalid " + ae + " `" + se + "` of type " + ("`" + ue + "` supplied to `" + Z + "`, expected ") + ("`" + g + "`."),
|
|
21742
21754
|
{ expectedType: g }
|
|
21743
21755
|
);
|
|
@@ -21752,11 +21764,11 @@ function HT() {
|
|
|
21752
21764
|
function P(g) {
|
|
21753
21765
|
function Y(W, x, Z, ae, se) {
|
|
21754
21766
|
if (typeof g != "function")
|
|
21755
|
-
return new
|
|
21767
|
+
return new S("Property `" + se + "` of component `" + Z + "` has invalid PropType notation inside arrayOf.");
|
|
21756
21768
|
var ie = W[x];
|
|
21757
21769
|
if (!Array.isArray(ie)) {
|
|
21758
21770
|
var Q = fe(ie);
|
|
21759
|
-
return new
|
|
21771
|
+
return new S("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected an array."));
|
|
21760
21772
|
}
|
|
21761
21773
|
for (var ce = 0; ce < ie.length; ce++) {
|
|
21762
21774
|
var ue = g(ie, ce, Z, ae, se + "[" + ce + "]", n);
|
|
@@ -21767,23 +21779,23 @@ function HT() {
|
|
|
21767
21779
|
}
|
|
21768
21780
|
return O(Y);
|
|
21769
21781
|
}
|
|
21770
|
-
function
|
|
21782
|
+
function $() {
|
|
21771
21783
|
function g(Y, W, x, Z, ae) {
|
|
21772
21784
|
var se = Y[W];
|
|
21773
21785
|
if (!u(se)) {
|
|
21774
21786
|
var ie = fe(se);
|
|
21775
|
-
return new
|
|
21787
|
+
return new S("Invalid " + Z + " `" + ae + "` of type " + ("`" + ie + "` supplied to `" + x + "`, expected a single ReactElement."));
|
|
21776
21788
|
}
|
|
21777
21789
|
return null;
|
|
21778
21790
|
}
|
|
21779
21791
|
return O(g);
|
|
21780
21792
|
}
|
|
21781
|
-
function
|
|
21793
|
+
function I() {
|
|
21782
21794
|
function g(Y, W, x, Z, ae) {
|
|
21783
21795
|
var se = Y[W];
|
|
21784
21796
|
if (!e.isValidElementType(se)) {
|
|
21785
21797
|
var ie = fe(se);
|
|
21786
|
-
return new
|
|
21798
|
+
return new S("Invalid " + Z + " `" + ae + "` of type " + ("`" + ie + "` supplied to `" + x + "`, expected a single ReactElement type."));
|
|
21787
21799
|
}
|
|
21788
21800
|
return null;
|
|
21789
21801
|
}
|
|
@@ -21792,8 +21804,8 @@ function HT() {
|
|
|
21792
21804
|
function D(g) {
|
|
21793
21805
|
function Y(W, x, Z, ae, se) {
|
|
21794
21806
|
if (!(W[x] instanceof g)) {
|
|
21795
|
-
var ie = g.name || h, Q =
|
|
21796
|
-
return new
|
|
21807
|
+
var ie = g.name || h, Q = He(W[x]);
|
|
21808
|
+
return new S("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected ") + ("instance of `" + ie + "`."));
|
|
21797
21809
|
}
|
|
21798
21810
|
return null;
|
|
21799
21811
|
}
|
|
@@ -21806,23 +21818,23 @@ function HT() {
|
|
|
21806
21818
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
21807
21819
|
function Y(W, x, Z, ae, se) {
|
|
21808
21820
|
for (var ie = W[x], Q = 0; Q < g.length; Q++)
|
|
21809
|
-
if (
|
|
21821
|
+
if (_(ie, g[Q]))
|
|
21810
21822
|
return null;
|
|
21811
|
-
var ce = JSON.stringify(g, function(ke,
|
|
21812
|
-
var
|
|
21813
|
-
return
|
|
21823
|
+
var ce = JSON.stringify(g, function(ke, z) {
|
|
21824
|
+
var Ue = le(z);
|
|
21825
|
+
return Ue === "symbol" ? String(z) : z;
|
|
21814
21826
|
});
|
|
21815
|
-
return new
|
|
21827
|
+
return new S("Invalid " + ae + " `" + se + "` of value `" + String(ie) + "` " + ("supplied to `" + Z + "`, expected one of " + ce + "."));
|
|
21816
21828
|
}
|
|
21817
21829
|
return O(Y);
|
|
21818
21830
|
}
|
|
21819
21831
|
function be(g) {
|
|
21820
21832
|
function Y(W, x, Z, ae, se) {
|
|
21821
21833
|
if (typeof g != "function")
|
|
21822
|
-
return new
|
|
21834
|
+
return new S("Property `" + se + "` of component `" + Z + "` has invalid PropType notation inside objectOf.");
|
|
21823
21835
|
var ie = W[x], Q = fe(ie);
|
|
21824
21836
|
if (Q !== "object")
|
|
21825
|
-
return new
|
|
21837
|
+
return new S("Invalid " + ae + " `" + se + "` of type " + ("`" + Q + "` supplied to `" + Z + "`, expected an object."));
|
|
21826
21838
|
for (var ce in ie)
|
|
21827
21839
|
if (r(ie, ce)) {
|
|
21828
21840
|
var ue = g(ie, ce, Z, ae, se + "." + ce, n);
|
|
@@ -21845,24 +21857,24 @@ function HT() {
|
|
|
21845
21857
|
}
|
|
21846
21858
|
function x(Z, ae, se, ie, Q) {
|
|
21847
21859
|
for (var ce = [], ue = 0; ue < g.length; ue++) {
|
|
21848
|
-
var ke = g[ue],
|
|
21849
|
-
if (
|
|
21860
|
+
var ke = g[ue], z = ke(Z, ae, se, ie, Q, n);
|
|
21861
|
+
if (z == null)
|
|
21850
21862
|
return null;
|
|
21851
|
-
|
|
21863
|
+
z.data && r(z.data, "expectedType") && ce.push(z.data.expectedType);
|
|
21852
21864
|
}
|
|
21853
|
-
var
|
|
21854
|
-
return new
|
|
21865
|
+
var Ue = ce.length > 0 ? ", expected one of type [" + ce.join(", ") + "]" : "";
|
|
21866
|
+
return new S("Invalid " + ie + " `" + Q + "` supplied to " + ("`" + se + "`" + Ue + "."));
|
|
21855
21867
|
}
|
|
21856
21868
|
return O(x);
|
|
21857
21869
|
}
|
|
21858
21870
|
function q() {
|
|
21859
21871
|
function g(Y, W, x, Z, ae) {
|
|
21860
|
-
return F(Y[W]) ? null : new
|
|
21872
|
+
return F(Y[W]) ? null : new S("Invalid " + Z + " `" + ae + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
21861
21873
|
}
|
|
21862
21874
|
return O(g);
|
|
21863
21875
|
}
|
|
21864
21876
|
function Te(g, Y, W, x, Z) {
|
|
21865
|
-
return new
|
|
21877
|
+
return new S(
|
|
21866
21878
|
(g || "React class") + ": " + Y + " type `" + W + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Z + "`."
|
|
21867
21879
|
);
|
|
21868
21880
|
}
|
|
@@ -21870,7 +21882,7 @@ function HT() {
|
|
|
21870
21882
|
function Y(W, x, Z, ae, se) {
|
|
21871
21883
|
var ie = W[x], Q = fe(ie);
|
|
21872
21884
|
if (Q !== "object")
|
|
21873
|
-
return new
|
|
21885
|
+
return new S("Invalid " + ae + " `" + se + "` of type `" + Q + "` " + ("supplied to `" + Z + "`, expected `object`."));
|
|
21874
21886
|
for (var ce in g) {
|
|
21875
21887
|
var ue = g[ce];
|
|
21876
21888
|
if (typeof ue != "function")
|
|
@@ -21887,20 +21899,20 @@ function HT() {
|
|
|
21887
21899
|
function Y(W, x, Z, ae, se) {
|
|
21888
21900
|
var ie = W[x], Q = fe(ie);
|
|
21889
21901
|
if (Q !== "object")
|
|
21890
|
-
return new
|
|
21902
|
+
return new S("Invalid " + ae + " `" + se + "` of type `" + Q + "` " + ("supplied to `" + Z + "`, expected `object`."));
|
|
21891
21903
|
var ce = t({}, W[x], g);
|
|
21892
21904
|
for (var ue in ce) {
|
|
21893
21905
|
var ke = g[ue];
|
|
21894
21906
|
if (r(g, ue) && typeof ke != "function")
|
|
21895
21907
|
return Te(Z, ae, se, ue, le(ke));
|
|
21896
21908
|
if (!ke)
|
|
21897
|
-
return new
|
|
21909
|
+
return new S(
|
|
21898
21910
|
"Invalid " + ae + " `" + se + "` key `" + ue + "` supplied to `" + Z + "`.\nBad object: " + JSON.stringify(W[x], null, " ") + `
|
|
21899
21911
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
21900
21912
|
);
|
|
21901
|
-
var
|
|
21902
|
-
if (
|
|
21903
|
-
return
|
|
21913
|
+
var z = ke(ie, ue, Z, ae, se + "." + ue, n);
|
|
21914
|
+
if (z)
|
|
21915
|
+
return z;
|
|
21904
21916
|
}
|
|
21905
21917
|
return null;
|
|
21906
21918
|
}
|
|
@@ -21972,7 +21984,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
21972
21984
|
return Y;
|
|
21973
21985
|
}
|
|
21974
21986
|
}
|
|
21975
|
-
function
|
|
21987
|
+
function He(g) {
|
|
21976
21988
|
return !g.constructor || !g.constructor.name ? h : g.constructor.name;
|
|
21977
21989
|
}
|
|
21978
21990
|
return m.checkPropTypes = a, m.resetWarningCache = a.resetWarningCache, m.PropTypes = m, m;
|
|
@@ -22069,7 +22081,7 @@ var GT = process.env.NODE_ENV !== "production" ? pe.oneOfType([pe.number, pe.sha
|
|
|
22069
22081
|
exitDone: pe.string,
|
|
22070
22082
|
exitActive: pe.string
|
|
22071
22083
|
})]) : null;
|
|
22072
|
-
const yl =
|
|
22084
|
+
const yl = $e.createContext(null);
|
|
22073
22085
|
var Cl = function(t) {
|
|
22074
22086
|
return t.scrollTop;
|
|
22075
22087
|
}, Yn = "unmounted", an = "exited", sn = "entering", An = "entered", xi = "exiting", Ut = /* @__PURE__ */ (function(e) {
|
|
@@ -22194,12 +22206,12 @@ var Cl = function(t) {
|
|
|
22194
22206
|
var u = El(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
22195
22207
|
return (
|
|
22196
22208
|
// allows for nested Transitions
|
|
22197
|
-
/* @__PURE__ */
|
|
22209
|
+
/* @__PURE__ */ $e.createElement(yl.Provider, {
|
|
22198
22210
|
value: null
|
|
22199
|
-
}, typeof s == "function" ? s(a, u) :
|
|
22211
|
+
}, typeof s == "function" ? s(a, u) : $e.cloneElement($e.Children.only(s), u))
|
|
22200
22212
|
);
|
|
22201
22213
|
}, t;
|
|
22202
|
-
})(
|
|
22214
|
+
})($e.Component);
|
|
22203
22215
|
Ut.contextType = yl;
|
|
22204
22216
|
Ut.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
22205
22217
|
/**
|
|
@@ -22448,7 +22460,7 @@ var WT = function(t, n) {
|
|
|
22448
22460
|
var a = this.props;
|
|
22449
22461
|
a.classNames;
|
|
22450
22462
|
var i = El(a, ["classNames"]);
|
|
22451
|
-
return /* @__PURE__ */
|
|
22463
|
+
return /* @__PURE__ */ $e.createElement(Ut, Yr({}, i, {
|
|
22452
22464
|
onEnter: this.onEnter,
|
|
22453
22465
|
onEntered: this.onEntered,
|
|
22454
22466
|
onEntering: this.onEntering,
|
|
@@ -22457,7 +22469,7 @@ var WT = function(t, n) {
|
|
|
22457
22469
|
onExited: this.onExited
|
|
22458
22470
|
}));
|
|
22459
22471
|
}, t;
|
|
22460
|
-
})(
|
|
22472
|
+
})($e.Component);
|
|
22461
22473
|
Wi.defaultProps = {
|
|
22462
22474
|
classNames: ""
|
|
22463
22475
|
};
|
|
@@ -22644,7 +22656,7 @@ const XT = Jo(
|
|
|
22644
22656
|
void 0
|
|
22645
22657
|
)
|
|
22646
22658
|
), QT = ({ isWidgetOpen: e, appToken: t }) => {
|
|
22647
|
-
const n =
|
|
22659
|
+
const n = Fe(null);
|
|
22648
22660
|
return /* @__PURE__ */ M.jsxDEV("div", { children: /* @__PURE__ */ M.jsxDEV(
|
|
22649
22661
|
Wi,
|
|
22650
22662
|
{
|
|
@@ -22693,7 +22705,7 @@ const XT = Jo(
|
|
|
22693
22705
|
}));
|
|
22694
22706
|
}
|
|
22695
22707
|
};
|
|
22696
|
-
}, Sl =
|
|
22708
|
+
}, Sl = $e.createContext({
|
|
22697
22709
|
appInternalContext: Al(),
|
|
22698
22710
|
setAppInternalContext: () => {
|
|
22699
22711
|
},
|
|
@@ -22753,7 +22765,7 @@ const XT = Jo(
|
|
|
22753
22765
|
const [n, r] = Oe(e[t]), a = (i) => {
|
|
22754
22766
|
Object.keys(e).includes(i?.locale) ? r(i) : r(e[xt.ENGLISH]);
|
|
22755
22767
|
};
|
|
22756
|
-
return
|
|
22768
|
+
return Ye(() => {
|
|
22757
22769
|
let i = t2(e, t);
|
|
22758
22770
|
i.locale !== t && r(e[i.locale]);
|
|
22759
22771
|
}, []), {
|
|
@@ -22778,25 +22790,25 @@ const XT = Jo(
|
|
|
22778
22790
|
discussionId: c,
|
|
22779
22791
|
setDiscussionId: l
|
|
22780
22792
|
};
|
|
22781
|
-
return
|
|
22793
|
+
return Ye(() => {
|
|
22782
22794
|
const f = rr.getApiUrl(), h = rr.getFetchConfig({
|
|
22783
22795
|
httpVerb: "GET",
|
|
22784
22796
|
contentType: "application/json"
|
|
22785
22797
|
});
|
|
22786
22798
|
fetch(`${f}/company/settings/${t}/${e}`, h).then(async (m) => {
|
|
22787
|
-
const
|
|
22788
|
-
a(
|
|
22799
|
+
const _ = await m.json();
|
|
22800
|
+
a(_), u([
|
|
22789
22801
|
{
|
|
22790
22802
|
userType: "assistant",
|
|
22791
|
-
content:
|
|
22803
|
+
content: _.agent.text.initialText
|
|
22792
22804
|
}
|
|
22793
22805
|
]), n?.();
|
|
22794
22806
|
}).catch((m) => console.log("error in settings fetch", m));
|
|
22795
22807
|
}, [t, e]), { contextCompanySettings: i, contextInitialChatbotStartingText: d };
|
|
22796
22808
|
};
|
|
22797
22809
|
function s2(e, t = {}, n, r) {
|
|
22798
|
-
const { id: a, nonce: i, target: s, disableConstructable: u } = t, c = s ?? document.head, l =
|
|
22799
|
-
|
|
22810
|
+
const { id: a, nonce: i, target: s, disableConstructable: u } = t, c = s ?? document.head, l = Fe(null), d = Fe(null);
|
|
22811
|
+
Ye(() => {
|
|
22800
22812
|
if (!e) {
|
|
22801
22813
|
n && (console.log("No custom css found."), r?.());
|
|
22802
22814
|
return;
|
|
@@ -22808,8 +22820,8 @@ function s2(e, t = {}, n, r) {
|
|
|
22808
22820
|
]), l.current.replaceSync(e), console.log("Loading custom css via stylesheet."), r?.(), () => {
|
|
22809
22821
|
const h = c.adoptedStyleSheets || [], m = h.indexOf(l.current);
|
|
22810
22822
|
if (m >= 0) {
|
|
22811
|
-
const
|
|
22812
|
-
|
|
22823
|
+
const _ = h.slice();
|
|
22824
|
+
_.splice(m, 1), c.adoptedStyleSheets = _;
|
|
22813
22825
|
}
|
|
22814
22826
|
l.current = null;
|
|
22815
22827
|
};
|
|
@@ -22980,7 +22992,7 @@ function h2({
|
|
|
22980
22992
|
"appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC"
|
|
22981
22993
|
);
|
|
22982
22994
|
const r = e2(t);
|
|
22983
|
-
return console.log(`App boot in ${r} mode.`), /* @__PURE__ */ M.jsxDEV("div", { className: "chatSystemWidget", id: "chatSystemWidget", children: /* @__PURE__ */ M.jsxDEV(f2, { appToken: e, agentId: n, children: /* @__PURE__ */ M.jsxDEV(JT, { displayMode: r, appToken: e }, void 0, !1, {
|
|
22995
|
+
return console.log(`App boot in ${r} mode.`), /* @__PURE__ */ M.jsxDEV("div", { className: "chatSystemWidget app-root", id: "chatSystemWidget", children: /* @__PURE__ */ M.jsxDEV(f2, { appToken: e, agentId: n, children: /* @__PURE__ */ M.jsxDEV(JT, { displayMode: r, appToken: e }, void 0, !1, {
|
|
22984
22996
|
fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/AppContent.tsx",
|
|
22985
22997
|
lineNumber: 49,
|
|
22986
22998
|
columnNumber: 9
|
|
@@ -24491,69 +24503,98 @@ textarea::placeholder {
|
|
|
24491
24503
|
|
|
24492
24504
|
.assistant .assetContainer svg {
|
|
24493
24505
|
fill: #32cf56;
|
|
24494
|
-
}
|
|
24506
|
+
}
|
|
24507
|
+
|
|
24508
|
+
.messagesContainer {
|
|
24509
|
+
outline:none
|
|
24510
|
+
}`, g2 = `/* 1) Remove UA outline on the shadow host */
|
|
24511
|
+
:host(:focus),
|
|
24512
|
+
:host(:focus-visible) { outline: none; }
|
|
24513
|
+
|
|
24514
|
+
/* 2) Replace with your own visible focus ring on the inner root */
|
|
24515
|
+
:host(:focus-within) .app-root {
|
|
24516
|
+
border-radius: 12px; /* match your widget corners */
|
|
24517
|
+
outline: none;
|
|
24518
|
+
}
|
|
24519
|
+
|
|
24520
|
+
/* Ensure the wrapper itself doesn't get a default outline either */
|
|
24521
|
+
.app-root:focus { outline: none; }
|
|
24522
|
+
`, Ko = `${m2}
|
|
24495
24523
|
${p2}
|
|
24496
|
-
${b2}
|
|
24497
|
-
|
|
24524
|
+
${b2}
|
|
24525
|
+
${g2}`;
|
|
24526
|
+
function A2({
|
|
24498
24527
|
cssHref: e,
|
|
24499
24528
|
appToken: t,
|
|
24500
24529
|
agentId: n,
|
|
24501
24530
|
displayMode: r,
|
|
24502
24531
|
...a
|
|
24503
24532
|
}) {
|
|
24504
|
-
const i =
|
|
24533
|
+
const i = r === "launcher" ? "body" : "inline", s = Fe(null), u = Fe(null), [c, l] = Oe(null);
|
|
24505
24534
|
return Zo(() => {
|
|
24506
24535
|
if (typeof document > "u") return;
|
|
24507
|
-
const
|
|
24508
|
-
|
|
24509
|
-
const
|
|
24510
|
-
|
|
24536
|
+
const d = i === "inline" ? s.current : document.body;
|
|
24537
|
+
if (!d) return;
|
|
24538
|
+
const f = document.createElement("div");
|
|
24539
|
+
d.appendChild(f), u.current = f;
|
|
24540
|
+
const h = f.attachShadow({ mode: "open", delegatesFocus: !0 });
|
|
24541
|
+
let m = !1;
|
|
24511
24542
|
try {
|
|
24512
24543
|
if ("adoptedStyleSheets" in Document.prototype && !e) {
|
|
24513
|
-
const
|
|
24514
|
-
|
|
24515
|
-
...
|
|
24516
|
-
|
|
24517
|
-
],
|
|
24544
|
+
const S = new CSSStyleSheet();
|
|
24545
|
+
S.replaceSync(Ko), h.adoptedStyleSheets = [
|
|
24546
|
+
...h.adoptedStyleSheets ?? [],
|
|
24547
|
+
S
|
|
24548
|
+
], m = !0;
|
|
24518
24549
|
}
|
|
24519
24550
|
} catch {
|
|
24520
24551
|
}
|
|
24521
|
-
if (!
|
|
24552
|
+
if (!m)
|
|
24522
24553
|
if (e) {
|
|
24523
|
-
const
|
|
24524
|
-
|
|
24554
|
+
const S = document.createElement("link");
|
|
24555
|
+
S.rel = "stylesheet", S.href = e, h.appendChild(S);
|
|
24525
24556
|
} else {
|
|
24526
|
-
const
|
|
24527
|
-
|
|
24557
|
+
const S = document.createElement("style");
|
|
24558
|
+
S.textContent = Ko, h.appendChild(S);
|
|
24528
24559
|
}
|
|
24529
|
-
const
|
|
24530
|
-
return
|
|
24531
|
-
|
|
24560
|
+
const _ = document.createElement("div");
|
|
24561
|
+
return h.appendChild(_), l(_), () => {
|
|
24562
|
+
l(null), f.remove(), u.current = null;
|
|
24532
24563
|
};
|
|
24533
|
-
}, []),
|
|
24534
|
-
i.
|
|
24535
|
-
|
|
24536
|
-
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24564
|
+
}, [i, e]), /* @__PURE__ */ M.jsxDEV(M.Fragment, { children: [
|
|
24565
|
+
i === "inline" && /* @__PURE__ */ M.jsxDEV("div", { ref: s }, void 0, !1, {
|
|
24566
|
+
fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
|
|
24567
|
+
lineNumber: 88,
|
|
24568
|
+
columnNumber: 30
|
|
24569
|
+
}, this),
|
|
24570
|
+
" ",
|
|
24571
|
+
c && kl(
|
|
24572
|
+
/* @__PURE__ */ M.jsxDEV(
|
|
24573
|
+
h2,
|
|
24574
|
+
{
|
|
24575
|
+
...a,
|
|
24576
|
+
appToken: t,
|
|
24577
|
+
agentId: n,
|
|
24578
|
+
displayMode: r
|
|
24579
|
+
},
|
|
24580
|
+
void 0,
|
|
24581
|
+
!1,
|
|
24582
|
+
{
|
|
24583
|
+
fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
|
|
24584
|
+
lineNumber: 91,
|
|
24585
|
+
columnNumber: 11
|
|
24586
|
+
},
|
|
24587
|
+
this
|
|
24588
|
+
),
|
|
24589
|
+
c
|
|
24590
|
+
)
|
|
24591
|
+
] }, void 0, !0, {
|
|
24592
|
+
fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
|
|
24593
|
+
lineNumber: 87,
|
|
24594
|
+
columnNumber: 5
|
|
24595
|
+
}, this);
|
|
24555
24596
|
}
|
|
24556
24597
|
export {
|
|
24557
|
-
|
|
24598
|
+
A2 as App
|
|
24558
24599
|
};
|
|
24559
24600
|
//# sourceMappingURL=index.mjs.map
|