@eloquentai/chat-sdk 0.28.2 → 0.28.3-dev
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-kK71WvVs.js → index-Bx8ZFFeo.js} +883 -872
- package/dist/{index-kK71WvVs.js.map → index-Bx8ZFFeo.js.map} +1 -1
- package/dist/{index-jnJTQFDC.js → index-td0gWzqP.js} +2 -2
- package/dist/{index-jnJTQFDC.js.map → index-td0gWzqP.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +9 -7
|
@@ -6,16 +6,16 @@ import Vg, { createPortal as gs } from "react-dom";
|
|
|
6
6
|
import Wg from "react-dom/client";
|
|
7
7
|
try {
|
|
8
8
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
9
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
9
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "dc6d6b74-769b-40b9-b9dd-4f20fdfeeada", e._sentryDebugIdIdentifier = "sentry-dbid-dc6d6b74-769b-40b9-b9dd-4f20fdfeeada");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
{
|
|
13
13
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
14
|
-
e.SENTRY_RELEASE = { id: "
|
|
14
|
+
e.SENTRY_RELEASE = { id: "39937e8a901c190b8d4b6e3685c2cb40452a7347" };
|
|
15
15
|
}
|
|
16
16
|
if (typeof window < "u") {
|
|
17
|
-
const e = "
|
|
18
|
-
import("./index-
|
|
17
|
+
const e = "development";
|
|
18
|
+
import("./index-td0gWzqP.js").then((t) => {
|
|
19
19
|
t.init({
|
|
20
20
|
dsn: void 0,
|
|
21
21
|
environment: e,
|
|
@@ -568,25 +568,25 @@ const Sv = (e, t) => {
|
|
|
568
568
|
l = h + (l.length > 0 ? " " + l : l);
|
|
569
569
|
continue;
|
|
570
570
|
}
|
|
571
|
-
let L = !!C,
|
|
572
|
-
if (!
|
|
571
|
+
let L = !!C, R = r(L ? y.substring(0, C) : y);
|
|
572
|
+
if (!R) {
|
|
573
573
|
if (!L) {
|
|
574
574
|
l = h + (l.length > 0 ? " " + l : l);
|
|
575
575
|
continue;
|
|
576
576
|
}
|
|
577
|
-
if (
|
|
577
|
+
if (R = r(y), !R) {
|
|
578
578
|
l = h + (l.length > 0 ? " " + l : l);
|
|
579
579
|
continue;
|
|
580
580
|
}
|
|
581
581
|
L = !1;
|
|
582
582
|
}
|
|
583
|
-
const
|
|
583
|
+
const j = v.length === 0 ? "" : v.length === 1 ? v[0] : o(v).join(":"), M = m ? j + vs : j, Y = M + R;
|
|
584
584
|
if (a.indexOf(Y) > -1)
|
|
585
585
|
continue;
|
|
586
586
|
a.push(Y);
|
|
587
|
-
const K = i(
|
|
588
|
-
for (let
|
|
589
|
-
const ie = K[
|
|
587
|
+
const K = i(R, L);
|
|
588
|
+
for (let U = 0; U < K.length; ++U) {
|
|
589
|
+
const ie = K[U];
|
|
590
590
|
a.push(M + ie);
|
|
591
591
|
}
|
|
592
592
|
l = h + (l.length > 0 ? " " + l : l);
|
|
@@ -632,7 +632,7 @@ const Sv = (e, t) => {
|
|
|
632
632
|
const r = pd.exec(e);
|
|
633
633
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
634
634
|
}, gd = (e) => e === "position" || e === "percentage", vd = (e) => e === "image" || e === "url", bd = (e) => e === "length" || e === "size" || e === "bg-size", yd = (e) => e === "length", ub = (e) => e === "number", wd = (e) => e === "family-name", xd = (e) => e === "number" || e === "weight", kd = (e) => e === "shadow", fb = () => {
|
|
635
|
-
const e = Tt("color"), t = Tt("font"), n = Tt("text"), r = Tt("font-weight"), i = Tt("tracking"), o = Tt("leading"), a = Tt("breakpoint"), s = Tt("container"), l = Tt("spacing"), u = Tt("radius"), h = Tt("shadow"), p = Tt("inset-shadow"), v = Tt("text-shadow"), m = Tt("drop-shadow"), y = Tt("blur"), C = Tt("perspective"), L = Tt("aspect"),
|
|
635
|
+
const e = Tt("color"), t = Tt("font"), n = Tt("text"), r = Tt("font-weight"), i = Tt("tracking"), o = Tt("leading"), a = Tt("breakpoint"), s = Tt("container"), l = Tt("spacing"), u = Tt("radius"), h = Tt("shadow"), p = Tt("inset-shadow"), v = Tt("text-shadow"), m = Tt("drop-shadow"), y = Tt("blur"), C = Tt("perspective"), L = Tt("aspect"), R = Tt("ease"), j = Tt("animate"), M = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [
|
|
636
636
|
"center",
|
|
637
637
|
"top",
|
|
638
638
|
"bottom",
|
|
@@ -650,7 +650,7 @@ const Sv = (e, t) => {
|
|
|
650
650
|
"bottom-left",
|
|
651
651
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
652
652
|
"left-bottom"
|
|
653
|
-
], K = () => [...Y(), Se, xe],
|
|
653
|
+
], K = () => [...Y(), Se, xe], U = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", "contain", "none"], te = () => [Se, xe, l], H = () => [Gn, "full", "auto", ...te()], T = () => [Yn, "none", "subgrid", Se, xe], A = () => ["auto", {
|
|
654
654
|
span: ["full", Yn, Se, xe]
|
|
655
655
|
}, Yn, Se, xe], F = () => [Yn, "auto", Se, xe], q = () => ["auto", "min", "max", "fr", Se, xe], I = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...te()], J = () => [Gn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...te()], le = () => [Gn, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...te()], X = () => [Gn, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...te()], k = () => [e, Se, xe], ne = () => [...Y(), $c, jc, {
|
|
656
656
|
position: [Se, xe]
|
|
@@ -804,21 +804,21 @@ const Sv = (e, t) => {
|
|
|
804
804
|
* @see https://tailwindcss.com/docs/overflow
|
|
805
805
|
*/
|
|
806
806
|
overflow: [{
|
|
807
|
-
overflow:
|
|
807
|
+
overflow: U()
|
|
808
808
|
}],
|
|
809
809
|
/**
|
|
810
810
|
* Overflow X
|
|
811
811
|
* @see https://tailwindcss.com/docs/overflow
|
|
812
812
|
*/
|
|
813
813
|
"overflow-x": [{
|
|
814
|
-
"overflow-x":
|
|
814
|
+
"overflow-x": U()
|
|
815
815
|
}],
|
|
816
816
|
/**
|
|
817
817
|
* Overflow Y
|
|
818
818
|
* @see https://tailwindcss.com/docs/overflow
|
|
819
819
|
*/
|
|
820
820
|
"overflow-y": [{
|
|
821
|
-
"overflow-y":
|
|
821
|
+
"overflow-y": U()
|
|
822
822
|
}],
|
|
823
823
|
/**
|
|
824
824
|
* Overscroll Behavior
|
|
@@ -1004,7 +1004,7 @@ const Sv = (e, t) => {
|
|
|
1004
1004
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1005
1005
|
*/
|
|
1006
1006
|
"grid-cols": [{
|
|
1007
|
-
"grid-cols":
|
|
1007
|
+
"grid-cols": T()
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Grid Column Start / End
|
|
@@ -1032,7 +1032,7 @@ const Sv = (e, t) => {
|
|
|
1032
1032
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1033
1033
|
*/
|
|
1034
1034
|
"grid-rows": [{
|
|
1035
|
-
"grid-rows":
|
|
1035
|
+
"grid-rows": T()
|
|
1036
1036
|
}],
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Grid Row Start / End
|
|
@@ -2706,7 +2706,7 @@ const Sv = (e, t) => {
|
|
|
2706
2706
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2707
2707
|
*/
|
|
2708
2708
|
ease: [{
|
|
2709
|
-
ease: ["linear", "initial",
|
|
2709
|
+
ease: ["linear", "initial", R, Se, xe]
|
|
2710
2710
|
}],
|
|
2711
2711
|
/**
|
|
2712
2712
|
* Transition Delay
|
|
@@ -2720,7 +2720,7 @@ const Sv = (e, t) => {
|
|
|
2720
2720
|
* @see https://tailwindcss.com/docs/animation
|
|
2721
2721
|
*/
|
|
2722
2722
|
animate: [{
|
|
2723
|
-
animate: ["none",
|
|
2723
|
+
animate: ["none", j, Se, xe]
|
|
2724
2724
|
}],
|
|
2725
2725
|
// ------------------
|
|
2726
2726
|
// --- Transforms ---
|
|
@@ -3663,13 +3663,13 @@ var Js = "ScrollArea", [Cd] = Cb(Js), [Pb, bn] = Cd(Js), Qs = P.forwardRef(
|
|
|
3663
3663
|
dir: i,
|
|
3664
3664
|
scrollHideDelay: o = 600,
|
|
3665
3665
|
...a
|
|
3666
|
-
} = e, [s, l] = P.useState(null), [u, h] = P.useState(null), [p, v] = P.useState(null), [m, y] = P.useState(null), [C, L] = P.useState(null), [
|
|
3666
|
+
} = e, [s, l] = P.useState(null), [u, h] = P.useState(null), [p, v] = P.useState(null), [m, y] = P.useState(null), [C, L] = P.useState(null), [R, j] = P.useState(0), [M, Y] = P.useState(0), [K, U] = P.useState(!1), [ie, te] = P.useState(!1), H = cn(t, (A) => l(A)), T = Ib(i);
|
|
3667
3667
|
return /* @__PURE__ */ O(
|
|
3668
3668
|
Pb,
|
|
3669
3669
|
{
|
|
3670
3670
|
scope: n,
|
|
3671
3671
|
type: r,
|
|
3672
|
-
dir:
|
|
3672
|
+
dir: T,
|
|
3673
3673
|
scrollHideDelay: o,
|
|
3674
3674
|
scrollArea: s,
|
|
3675
3675
|
viewport: u,
|
|
@@ -3679,23 +3679,23 @@ var Js = "ScrollArea", [Cd] = Cb(Js), [Pb, bn] = Cd(Js), Qs = P.forwardRef(
|
|
|
3679
3679
|
scrollbarX: m,
|
|
3680
3680
|
onScrollbarXChange: y,
|
|
3681
3681
|
scrollbarXEnabled: K,
|
|
3682
|
-
onScrollbarXEnabledChange:
|
|
3682
|
+
onScrollbarXEnabledChange: U,
|
|
3683
3683
|
scrollbarY: C,
|
|
3684
3684
|
onScrollbarYChange: L,
|
|
3685
3685
|
scrollbarYEnabled: ie,
|
|
3686
3686
|
onScrollbarYEnabledChange: te,
|
|
3687
|
-
onCornerWidthChange:
|
|
3687
|
+
onCornerWidthChange: j,
|
|
3688
3688
|
onCornerHeightChange: Y,
|
|
3689
3689
|
children: /* @__PURE__ */ O(
|
|
3690
3690
|
Ni.div,
|
|
3691
3691
|
{
|
|
3692
|
-
dir:
|
|
3692
|
+
dir: T,
|
|
3693
3693
|
...a,
|
|
3694
3694
|
ref: H,
|
|
3695
3695
|
style: {
|
|
3696
3696
|
position: "relative",
|
|
3697
3697
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
3698
|
-
"--radix-scroll-area-corner-width":
|
|
3698
|
+
"--radix-scroll-area-corner-width": R + "px",
|
|
3699
3699
|
"--radix-scroll-area-corner-height": M + "px",
|
|
3700
3700
|
...e.style
|
|
3701
3701
|
}
|
|
@@ -3985,20 +3985,20 @@ var Ob = P.forwardRef((e, t) => {
|
|
|
3985
3985
|
onWheelScroll: h,
|
|
3986
3986
|
onResize: p,
|
|
3987
3987
|
...v
|
|
3988
|
-
} = e, m = bn(Nn, n), [y, C] = P.useState(null), L = cn(t, (H) => C(H)),
|
|
3988
|
+
} = e, m = bn(Nn, n), [y, C] = P.useState(null), L = cn(t, (H) => C(H)), R = P.useRef(null), j = P.useRef(""), M = m.viewport, Y = r.content - r.viewport, K = an(h), U = an(l), ie = Xo(p, 10);
|
|
3989
3989
|
function te(H) {
|
|
3990
|
-
if (
|
|
3991
|
-
const
|
|
3992
|
-
u({ x:
|
|
3990
|
+
if (R.current) {
|
|
3991
|
+
const T = H.clientX - R.current.left, A = H.clientY - R.current.top;
|
|
3992
|
+
u({ x: T, y: A });
|
|
3993
3993
|
}
|
|
3994
3994
|
}
|
|
3995
3995
|
return P.useEffect(() => {
|
|
3996
|
-
const H = (
|
|
3997
|
-
const A =
|
|
3998
|
-
y?.contains(A) && K(
|
|
3996
|
+
const H = (T) => {
|
|
3997
|
+
const A = T.target;
|
|
3998
|
+
y?.contains(A) && K(T, Y);
|
|
3999
3999
|
};
|
|
4000
4000
|
return document.addEventListener("wheel", H, { passive: !1 }), () => document.removeEventListener("wheel", H, { passive: !1 });
|
|
4001
|
-
}, [M, y, Y, K]), P.useEffect(
|
|
4001
|
+
}, [M, y, Y, K]), P.useEffect(U, [r, U]), Ur(y, ie), Ur(m.content, ie), /* @__PURE__ */ O(
|
|
4002
4002
|
Mb,
|
|
4003
4003
|
{
|
|
4004
4004
|
scope: n,
|
|
@@ -4006,7 +4006,7 @@ var Ob = P.forwardRef((e, t) => {
|
|
|
4006
4006
|
hasThumb: i,
|
|
4007
4007
|
onThumbChange: an(o),
|
|
4008
4008
|
onThumbPointerUp: an(a),
|
|
4009
|
-
onThumbPositionChange:
|
|
4009
|
+
onThumbPositionChange: U,
|
|
4010
4010
|
onThumbPointerDown: an(s),
|
|
4011
4011
|
children: /* @__PURE__ */ O(
|
|
4012
4012
|
Ni.div,
|
|
@@ -4015,12 +4015,12 @@ var Ob = P.forwardRef((e, t) => {
|
|
|
4015
4015
|
ref: L,
|
|
4016
4016
|
style: { position: "absolute", ...v.style },
|
|
4017
4017
|
onPointerDown: Gt(e.onPointerDown, (H) => {
|
|
4018
|
-
H.button === 0 && (H.target.setPointerCapture(H.pointerId),
|
|
4018
|
+
H.button === 0 && (H.target.setPointerCapture(H.pointerId), R.current = y.getBoundingClientRect(), j.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), te(H));
|
|
4019
4019
|
}),
|
|
4020
4020
|
onPointerMove: Gt(e.onPointerMove, te),
|
|
4021
4021
|
onPointerUp: Gt(e.onPointerUp, (H) => {
|
|
4022
|
-
const
|
|
4023
|
-
|
|
4022
|
+
const T = H.target;
|
|
4023
|
+
T.hasPointerCapture(H.pointerId) && T.releasePointerCapture(H.pointerId), document.body.style.webkitUserSelect = j.current, m.viewport && (m.viewport.style.scrollBehavior = ""), R.current = null;
|
|
4024
4024
|
})
|
|
4025
4025
|
}
|
|
4026
4026
|
)
|
|
@@ -4366,15 +4366,15 @@ var ty = "DismissableLayer", bs = "dismissableLayer.update", ny = "dismissableLa
|
|
|
4366
4366
|
onInteractOutside: a,
|
|
4367
4367
|
onDismiss: s,
|
|
4368
4368
|
...l
|
|
4369
|
-
} = e, u = P.useContext($d), [h, p] = P.useState(null), v = h?.ownerDocument ?? globalThis?.document, [, m] = P.useState({}), y = cn(t, (ie) => p(ie)), C = Array.from(u.layers), [L] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1),
|
|
4370
|
-
const te = ie.target, H = [...u.branches].some((
|
|
4369
|
+
} = e, u = P.useContext($d), [h, p] = P.useState(null), v = h?.ownerDocument ?? globalThis?.document, [, m] = P.useState({}), y = cn(t, (ie) => p(ie)), C = Array.from(u.layers), [L] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), R = C.indexOf(L), j = h ? C.indexOf(h) : -1, M = u.layersWithOutsidePointerEventsDisabled.size > 0, Y = j >= R, K = ay((ie) => {
|
|
4370
|
+
const te = ie.target, H = [...u.branches].some((T) => T.contains(te));
|
|
4371
4371
|
!Y || H || (i?.(ie), a?.(ie), ie.defaultPrevented || s?.());
|
|
4372
|
-
}, v),
|
|
4372
|
+
}, v), U = sy((ie) => {
|
|
4373
4373
|
const te = ie.target;
|
|
4374
|
-
[...u.branches].some((
|
|
4374
|
+
[...u.branches].some((T) => T.contains(te)) || (o?.(ie), a?.(ie), ie.defaultPrevented || s?.());
|
|
4375
4375
|
}, v);
|
|
4376
4376
|
return ey((ie) => {
|
|
4377
|
-
|
|
4377
|
+
j === u.layers.size - 1 && (r?.(ie), !ie.defaultPrevented && s && (ie.preventDefault(), s()));
|
|
4378
4378
|
}, v), P.useEffect(() => {
|
|
4379
4379
|
if (h)
|
|
4380
4380
|
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Wc = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(h)), u.layers.add(h), qc(), () => {
|
|
@@ -4394,8 +4394,8 @@ var ty = "DismissableLayer", bs = "dismissableLayer.update", ny = "dismissableLa
|
|
|
4394
4394
|
pointerEvents: M ? Y ? "auto" : "none" : void 0,
|
|
4395
4395
|
...e.style
|
|
4396
4396
|
},
|
|
4397
|
-
onFocusCapture: Gt(e.onFocusCapture,
|
|
4398
|
-
onBlurCapture: Gt(e.onBlurCapture,
|
|
4397
|
+
onFocusCapture: Gt(e.onFocusCapture, U.onFocusCapture),
|
|
4398
|
+
onBlurCapture: Gt(e.onBlurCapture, U.onBlurCapture),
|
|
4399
4399
|
onPointerDownCapture: Gt(
|
|
4400
4400
|
e.onPointerDownCapture,
|
|
4401
4401
|
K.onPointerDownCapture
|
|
@@ -4518,15 +4518,15 @@ var ly = [
|
|
|
4518
4518
|
if (m.paused || !s) return;
|
|
4519
4519
|
const Y = M.relatedTarget;
|
|
4520
4520
|
Y !== null && (s.contains(Y) || Kn(p.current, { select: !0 }));
|
|
4521
|
-
},
|
|
4521
|
+
}, R = function(M) {
|
|
4522
4522
|
if (document.activeElement === document.body)
|
|
4523
4523
|
for (const K of M)
|
|
4524
4524
|
K.removedNodes.length > 0 && Kn(s);
|
|
4525
4525
|
};
|
|
4526
4526
|
document.addEventListener("focusin", C), document.addEventListener("focusout", L);
|
|
4527
|
-
const
|
|
4528
|
-
return s &&
|
|
4529
|
-
document.removeEventListener("focusin", C), document.removeEventListener("focusout", L),
|
|
4527
|
+
const j = new MutationObserver(R);
|
|
4528
|
+
return s && j.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
4529
|
+
document.removeEventListener("focusin", C), document.removeEventListener("focusout", L), j.disconnect();
|
|
4530
4530
|
};
|
|
4531
4531
|
}
|
|
4532
4532
|
}, [r, s, m.paused]), P.useEffect(() => {
|
|
@@ -4534,13 +4534,13 @@ var ly = [
|
|
|
4534
4534
|
Gc.add(m);
|
|
4535
4535
|
const C = document.activeElement;
|
|
4536
4536
|
if (!s.contains(C)) {
|
|
4537
|
-
const
|
|
4538
|
-
s.addEventListener(Da, u), s.dispatchEvent(
|
|
4537
|
+
const R = new CustomEvent(Da, Hc);
|
|
4538
|
+
s.addEventListener(Da, u), s.dispatchEvent(R), R.defaultPrevented || (fy(gy(Wd(s)), { select: !0 }), document.activeElement === C && Kn(s));
|
|
4539
4539
|
}
|
|
4540
4540
|
return () => {
|
|
4541
4541
|
s.removeEventListener(Da, u), setTimeout(() => {
|
|
4542
|
-
const
|
|
4543
|
-
s.addEventListener(Ma, h), s.dispatchEvent(
|
|
4542
|
+
const R = new CustomEvent(Ma, Hc);
|
|
4543
|
+
s.addEventListener(Ma, h), s.dispatchEvent(R), R.defaultPrevented || Kn(C ?? document.body, { select: !0 }), s.removeEventListener(Ma, h), Gc.remove(m);
|
|
4544
4544
|
}, 0);
|
|
4545
4545
|
};
|
|
4546
4546
|
}
|
|
@@ -4548,10 +4548,10 @@ var ly = [
|
|
|
4548
4548
|
const y = P.useCallback(
|
|
4549
4549
|
(C) => {
|
|
4550
4550
|
if (!n && !r || m.paused) return;
|
|
4551
|
-
const L = C.key === "Tab" && !C.altKey && !C.ctrlKey && !C.metaKey,
|
|
4552
|
-
if (L &&
|
|
4553
|
-
const
|
|
4554
|
-
M && Y ? !C.shiftKey &&
|
|
4551
|
+
const L = C.key === "Tab" && !C.altKey && !C.ctrlKey && !C.metaKey, R = document.activeElement;
|
|
4552
|
+
if (L && R) {
|
|
4553
|
+
const j = C.currentTarget, [M, Y] = dy(j);
|
|
4554
|
+
M && Y ? !C.shiftKey && R === Y ? (C.preventDefault(), n && Kn(M, { select: !0 })) : C.shiftKey && R === M && (C.preventDefault(), n && Kn(Y, { select: !0 })) : R === j && C.preventDefault();
|
|
4555
4555
|
}
|
|
4556
4556
|
},
|
|
4557
4557
|
[n, r, m.paused]
|
|
@@ -4856,8 +4856,8 @@ function ky(e, t, n) {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
function s(m, y) {
|
|
4858
4858
|
r[m] && (i[m] = function(C) {
|
|
4859
|
-
return new Promise(function(L,
|
|
4860
|
-
o.push([m, C, L,
|
|
4859
|
+
return new Promise(function(L, R) {
|
|
4860
|
+
o.push([m, C, L, R]) > 1 || l(m, C);
|
|
4861
4861
|
});
|
|
4862
4862
|
}, y && (i[m] = y(i[m])));
|
|
4863
4863
|
}
|
|
@@ -5027,12 +5027,12 @@ var Yd = Py(), ja = function() {
|
|
|
5027
5027
|
onScrollCapture: ja,
|
|
5028
5028
|
onWheelCapture: ja,
|
|
5029
5029
|
onTouchMoveCapture: ja
|
|
5030
|
-
}), i = r[0], o = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, h = e.enabled, p = e.shards, v = e.sideCar, m = e.noRelative, y = e.noIsolation, C = e.inert, L = e.allowPinchZoom,
|
|
5030
|
+
}), i = r[0], o = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, h = e.enabled, p = e.shards, v = e.sideCar, m = e.noRelative, y = e.noIsolation, C = e.inert, L = e.allowPinchZoom, R = e.as, j = R === void 0 ? "div" : R, M = e.gapMode, Y = Hd(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), K = v, U = Iy([n, t]), ie = On(On({}, Y), i);
|
|
5031
5031
|
return P.createElement(
|
|
5032
5032
|
P.Fragment,
|
|
5033
5033
|
null,
|
|
5034
5034
|
h && P.createElement(K, { sideCar: Yd, removeScrollBar: u, shards: p, noRelative: m, noIsolation: y, inert: C, setCallbacks: o, allowPinchZoom: !!L, lockRef: n, gapMode: M }),
|
|
5035
|
-
a ? P.cloneElement(P.Children.only(s), On(On({}, ie), { ref:
|
|
5035
|
+
a ? P.cloneElement(P.Children.only(s), On(On({}, ie), { ref: U })) : P.createElement(j, On({}, ie, { className: l, ref: U }), s)
|
|
5036
5036
|
);
|
|
5037
5037
|
});
|
|
5038
5038
|
Ko.defaultProps = {
|
|
@@ -5234,10 +5234,10 @@ var Ir = xs ? { passive: !1 } : !1, Hy = function(e) {
|
|
|
5234
5234
|
do {
|
|
5235
5235
|
if (!s)
|
|
5236
5236
|
break;
|
|
5237
|
-
var m = Qd(e, s), y = m[0], C = m[1], L = m[2],
|
|
5238
|
-
(y ||
|
|
5239
|
-
var
|
|
5240
|
-
s =
|
|
5237
|
+
var m = Qd(e, s), y = m[0], C = m[1], L = m[2], R = C - L - o * y;
|
|
5238
|
+
(y || R) && Jd(e, s) && (p += R, v += y);
|
|
5239
|
+
var j = s.parentNode;
|
|
5240
|
+
s = j && j.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? j.host : j;
|
|
5241
5241
|
} while (
|
|
5242
5242
|
// portaled content
|
|
5243
5243
|
!l && s !== document.body || // self content
|
|
@@ -5278,16 +5278,16 @@ function nw(e) {
|
|
|
5278
5278
|
var s = P.useCallback(function(C, L) {
|
|
5279
5279
|
if ("touches" in C && C.touches.length === 2 || C.type === "wheel" && C.ctrlKey)
|
|
5280
5280
|
return !a.current.allowPinchZoom;
|
|
5281
|
-
var
|
|
5282
|
-
if ("touches" in C && ie === "h" &&
|
|
5281
|
+
var R = so(C), j = n.current, M = "deltaX" in C ? C.deltaX : j[0] - R[0], Y = "deltaY" in C ? C.deltaY : j[1] - R[1], K, U = C.target, ie = Math.abs(M) > Math.abs(Y) ? "h" : "v";
|
|
5282
|
+
if ("touches" in C && ie === "h" && U.type === "range")
|
|
5283
5283
|
return !1;
|
|
5284
|
-
var te = window.getSelection(), H = te && te.anchorNode,
|
|
5285
|
-
if (
|
|
5284
|
+
var te = window.getSelection(), H = te && te.anchorNode, T = H ? H === U || H.contains(U) : !1;
|
|
5285
|
+
if (T)
|
|
5286
5286
|
return !1;
|
|
5287
|
-
var A = Qc(ie,
|
|
5287
|
+
var A = Qc(ie, U);
|
|
5288
5288
|
if (!A)
|
|
5289
5289
|
return !0;
|
|
5290
|
-
if (A ? K = ie : (K = ie === "v" ? "h" : "v", A = Qc(ie,
|
|
5290
|
+
if (A ? K = ie : (K = ie === "v" ? "h" : "v", A = Qc(ie, U)), !A)
|
|
5291
5291
|
return !1;
|
|
5292
5292
|
if (!r.current && "changedTouches" in C && (M || Y) && (r.current = K), !K)
|
|
5293
5293
|
return !0;
|
|
@@ -5296,22 +5296,22 @@ function nw(e) {
|
|
|
5296
5296
|
}, []), l = P.useCallback(function(C) {
|
|
5297
5297
|
var L = C;
|
|
5298
5298
|
if (!(!Rr.length || Rr[Rr.length - 1] !== o)) {
|
|
5299
|
-
var
|
|
5300
|
-
return K.name === L.type && (K.target === L.target || L.target === K.shadowParent) && Qy(K.delta,
|
|
5299
|
+
var R = "deltaY" in L ? eu(L) : so(L), j = t.current.filter(function(K) {
|
|
5300
|
+
return K.name === L.type && (K.target === L.target || L.target === K.shadowParent) && Qy(K.delta, R);
|
|
5301
5301
|
})[0];
|
|
5302
|
-
if (
|
|
5302
|
+
if (j && j.should) {
|
|
5303
5303
|
L.cancelable && L.preventDefault();
|
|
5304
5304
|
return;
|
|
5305
5305
|
}
|
|
5306
|
-
if (!
|
|
5306
|
+
if (!j) {
|
|
5307
5307
|
var M = (a.current.shards || []).map(tu).filter(Boolean).filter(function(K) {
|
|
5308
5308
|
return K.contains(L.target);
|
|
5309
5309
|
}), Y = M.length > 0 ? s(L, M[0]) : !a.current.noIsolation;
|
|
5310
5310
|
Y && L.cancelable && L.preventDefault();
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
|
-
}, []), u = P.useCallback(function(C, L,
|
|
5314
|
-
var M = { name: C, delta: L, target:
|
|
5313
|
+
}, []), u = P.useCallback(function(C, L, R, j) {
|
|
5314
|
+
var M = { name: C, delta: L, target: R, should: j, shadowParent: rw(R) };
|
|
5315
5315
|
t.current.push(M), setTimeout(function() {
|
|
5316
5316
|
t.current = t.current.filter(function(Y) {
|
|
5317
5317
|
return Y !== M;
|
|
@@ -5384,8 +5384,8 @@ var ow = function(e) {
|
|
|
5384
5384
|
try {
|
|
5385
5385
|
var m = v.getAttribute(r), y = m !== null && m !== "false", C = (Tr.get(v) || 0) + 1, L = (o.get(v) || 0) + 1;
|
|
5386
5386
|
Tr.set(v, C), o.set(v, L), a.push(v), C === 1 && y && lo.set(v, !0), L === 1 && v.setAttribute(n, "true"), y || v.setAttribute(r, "true");
|
|
5387
|
-
} catch (
|
|
5388
|
-
console.error("aria-hidden: cannot operate on ", v,
|
|
5387
|
+
} catch (R) {
|
|
5388
|
+
console.error("aria-hidden: cannot operate on ", v, R);
|
|
5389
5389
|
}
|
|
5390
5390
|
});
|
|
5391
5391
|
};
|
|
@@ -5717,13 +5717,13 @@ function Ew() {
|
|
|
5717
5717
|
var u = (() => {
|
|
5718
5718
|
var p = typeof document < "u" ? document.currentScript?.src : void 0;
|
|
5719
5719
|
return (function(v = {}) {
|
|
5720
|
-
var m, y = v, C, L,
|
|
5720
|
+
var m, y = v, C, L, R = new Promise((c, f) => {
|
|
5721
5721
|
C = c, L = f;
|
|
5722
|
-
}),
|
|
5722
|
+
}), j = typeof window == "object", M = typeof importScripts == "function";
|
|
5723
5723
|
function Y() {
|
|
5724
5724
|
function c(z) {
|
|
5725
|
-
const
|
|
5726
|
-
b = f = 0, x = /* @__PURE__ */ new Map(),
|
|
5725
|
+
const B = x;
|
|
5726
|
+
b = f = 0, x = /* @__PURE__ */ new Map(), B.forEach((Q) => {
|
|
5727
5727
|
try {
|
|
5728
5728
|
Q(z);
|
|
5729
5729
|
} catch (G) {
|
|
@@ -5734,18 +5734,18 @@ function Ew() {
|
|
|
5734
5734
|
let f = 0, b = 0, x = /* @__PURE__ */ new Map(), _ = null, E = null;
|
|
5735
5735
|
this.requestAnimationFrame = function(z) {
|
|
5736
5736
|
f ||= requestAnimationFrame(c.bind(this));
|
|
5737
|
-
const
|
|
5738
|
-
return x.set(
|
|
5737
|
+
const B = ++b;
|
|
5738
|
+
return x.set(B, z), B;
|
|
5739
5739
|
}, this.cancelAnimationFrame = function(z) {
|
|
5740
5740
|
x.delete(z), f && x.size == 0 && (cancelAnimationFrame(f), f = 0);
|
|
5741
5741
|
}, this.Ob = function(z) {
|
|
5742
|
-
E && (document.body.remove(E), E = null), z || (E = document.createElement("div"), E.style.backgroundColor = "black", E.style.position = "fixed", E.style.right = 0, E.style.top = 0, E.style.color = "white", E.style.padding = "4px", E.innerHTML = "RIVE FPS", z = function(
|
|
5743
|
-
E.innerHTML = "RIVE FPS " +
|
|
5742
|
+
E && (document.body.remove(E), E = null), z || (E = document.createElement("div"), E.style.backgroundColor = "black", E.style.position = "fixed", E.style.right = 0, E.style.top = 0, E.style.color = "white", E.style.padding = "4px", E.innerHTML = "RIVE FPS", z = function(B) {
|
|
5743
|
+
E.innerHTML = "RIVE FPS " + B.toFixed(1);
|
|
5744
5744
|
}, document.body.appendChild(E)), _ = new function() {
|
|
5745
|
-
let
|
|
5745
|
+
let B = 0, Q = 0;
|
|
5746
5746
|
this.Qb = function() {
|
|
5747
5747
|
var G = performance.now();
|
|
5748
|
-
Q ? (++
|
|
5748
|
+
Q ? (++B, G -= Q, 1e3 < G && (z(1e3 * B / G), B = Q = 0)) : (Q = G, B = 0);
|
|
5749
5749
|
};
|
|
5750
5750
|
}();
|
|
5751
5751
|
}, this.Lb = function() {
|
|
@@ -5763,9 +5763,9 @@ function Ew() {
|
|
|
5763
5763
|
}, 1e3)), b = Math.max(x, b), b << c;
|
|
5764
5764
|
};
|
|
5765
5765
|
}
|
|
5766
|
-
const
|
|
5766
|
+
const U = y.onRuntimeInitialized;
|
|
5767
5767
|
y.onRuntimeInitialized = function() {
|
|
5768
|
-
|
|
5768
|
+
U && U();
|
|
5769
5769
|
let c = y.decodeAudio;
|
|
5770
5770
|
y.decodeAudio = function(_, E) {
|
|
5771
5771
|
_ = c(_), E(_);
|
|
@@ -5786,10 +5786,10 @@ function Ew() {
|
|
|
5786
5786
|
this.__parent.__construct.call(this);
|
|
5787
5787
|
}, loadContents: function(_) {
|
|
5788
5788
|
let E = y.ptrToAsset(_);
|
|
5789
|
-
return _ = E.cdnUuid, _ === "" ? !1 : ((function(z,
|
|
5789
|
+
return _ = E.cdnUuid, _ === "" ? !1 : ((function(z, B) {
|
|
5790
5790
|
var Q = new XMLHttpRequest();
|
|
5791
5791
|
Q.responseType = "arraybuffer", Q.onreadystatechange = function() {
|
|
5792
|
-
Q.readyState == 4 && Q.status == 200 &&
|
|
5792
|
+
Q.readyState == 4 && Q.status == 200 && B(Q);
|
|
5793
5793
|
}, Q.open("GET", z, !0), Q.send(null);
|
|
5794
5794
|
})(E.cdnBaseUrl + "/" + _, (z) => {
|
|
5795
5795
|
E.decode(new Uint8Array(z.response));
|
|
@@ -5805,8 +5805,8 @@ function Ew() {
|
|
|
5805
5805
|
return !1;
|
|
5806
5806
|
} });
|
|
5807
5807
|
let x = y.computeAlignment;
|
|
5808
|
-
y.computeAlignment = function(_, E, z,
|
|
5809
|
-
return x.call(this, _, E, z,
|
|
5808
|
+
y.computeAlignment = function(_, E, z, B, Q = 1) {
|
|
5809
|
+
return x.call(this, _, E, z, B, Q);
|
|
5810
5810
|
};
|
|
5811
5811
|
};
|
|
5812
5812
|
const ie = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), te = new function() {
|
|
@@ -5861,7 +5861,7 @@ function Ew() {
|
|
|
5861
5861
|
}
|
|
5862
5862
|
return !0;
|
|
5863
5863
|
}
|
|
5864
|
-
let f = null, b = 0, x = 0, _ = null, E = null, z = 0,
|
|
5864
|
+
let f = null, b = 0, x = 0, _ = null, E = null, z = 0, B = 0, Q = !1;
|
|
5865
5865
|
c(), this.bc = function() {
|
|
5866
5866
|
return c(), x;
|
|
5867
5867
|
}, this.Kb = function(V) {
|
|
@@ -5883,7 +5883,7 @@ function Ew() {
|
|
|
5883
5883
|
console.assert(ve == 4 * We);
|
|
5884
5884
|
for (var tn of ce)
|
|
5885
5885
|
f.bufferSubData(f.ARRAY_BUFFER, ve, tn.Bb), ve += 4 * tn.Bb.length;
|
|
5886
|
-
console.assert(ve == 8 * We), ve = _e.push(Xe),
|
|
5886
|
+
console.assert(ve == 8 * We), ve = _e.push(Xe), B != ve && (f.bufferData(f.ELEMENT_ARRAY_BUFFER, 2 * ve, f.DYNAMIC_DRAW), B = ve), Lt = 0;
|
|
5887
5887
|
for (var lr of ce)
|
|
5888
5888
|
f.bufferSubData(f.ELEMENT_ARRAY_BUFFER, Lt, lr.indices), Lt += 2 * lr.indices.length;
|
|
5889
5889
|
console.assert(Lt == 2 * Xe), lr = 0, tn = !0, ve = Lt = 0;
|
|
@@ -5950,7 +5950,7 @@ function Ew() {
|
|
|
5950
5950
|
}
|
|
5951
5951
|
H && H();
|
|
5952
5952
|
var x = y.RenderPaintStyle;
|
|
5953
|
-
const _ = y.RenderPath, E = y.RenderPaint, z = y.Renderer,
|
|
5953
|
+
const _ = y.RenderPath, E = y.RenderPaint, z = y.Renderer, B = y.StrokeCap, Q = y.StrokeJoin, G = y.BlendMode, fe = x.fill, ye = x.stroke, _e = y.FillRule.evenOdd;
|
|
5954
5954
|
let V = 1;
|
|
5955
5955
|
var he = y.RenderImage.extend("CanvasRenderImage", { __construct: function({ la: ae, wa: me } = {}) {
|
|
5956
5956
|
this.__parent.__construct.call(this), this.Ja = V, V = V + 1 & 2147483647 || 1, this.la = ae, this.wa = me;
|
|
@@ -5999,13 +5999,13 @@ function Ew() {
|
|
|
5999
5999
|
}
|
|
6000
6000
|
}, cap: function(ae) {
|
|
6001
6001
|
switch (ae) {
|
|
6002
|
-
case
|
|
6002
|
+
case B.butt:
|
|
6003
6003
|
this.Ga = "butt";
|
|
6004
6004
|
break;
|
|
6005
|
-
case
|
|
6005
|
+
case B.round:
|
|
6006
6006
|
this.Ga = "round";
|
|
6007
6007
|
break;
|
|
6008
|
-
case
|
|
6008
|
+
case B.square:
|
|
6009
6009
|
this.Ga = "square";
|
|
6010
6010
|
}
|
|
6011
6011
|
}, style: function(ae) {
|
|
@@ -6158,8 +6158,8 @@ function Ew() {
|
|
|
6158
6158
|
ve && ve.delete();
|
|
6159
6159
|
};
|
|
6160
6160
|
};
|
|
6161
|
-
var
|
|
6162
|
-
(
|
|
6161
|
+
var T = Object.assign({}, y), A = "./this.program", F = "", q, I;
|
|
6162
|
+
(j || M) && (M ? F = self.location.href : typeof document < "u" && document.currentScript && (F = document.currentScript.src), p && (F = p), F.startsWith("blob:") ? F = "" : F = F.substr(0, F.replace(/[?#].*/, "").lastIndexOf("/") + 1), M && (I = (c) => {
|
|
6163
6163
|
var f = new XMLHttpRequest();
|
|
6164
6164
|
return f.open("GET", c, !1), f.responseType = "arraybuffer", f.send(null), new Uint8Array(f.response);
|
|
6165
6165
|
}), q = (c, f, b) => {
|
|
@@ -6172,7 +6172,7 @@ function Ew() {
|
|
|
6172
6172
|
fetch(c, { credentials: "same-origin" }).then((_) => _.ok ? _.arrayBuffer() : Promise.reject(Error(_.status + " : " + _.url))).then(f, b);
|
|
6173
6173
|
});
|
|
6174
6174
|
var D = y.print || console.log.bind(console), W = y.printErr || console.error.bind(console);
|
|
6175
|
-
Object.assign(y,
|
|
6175
|
+
Object.assign(y, T), T = null, y.thisProgram && (A = y.thisProgram);
|
|
6176
6176
|
var J;
|
|
6177
6177
|
y.wasmBinary && (J = y.wasmBinary);
|
|
6178
6178
|
var le, X = !1, k, ne, ge, N, oe, ue, we, Be;
|
|
@@ -6226,24 +6226,24 @@ function Ew() {
|
|
|
6226
6226
|
window.h = { za: 0 }, window.h.J = {}, window.h.J.xa = c, window.h.J.capture = f, window.h.J.Ka = b, window.h.ga = {}, window.h.ga.stopped = x, window.h.ga.wb = _;
|
|
6227
6227
|
let E = window.h;
|
|
6228
6228
|
E.D = [], E.sc = function(z) {
|
|
6229
|
-
for (var
|
|
6230
|
-
if (E.D[
|
|
6231
|
-
return E.D[
|
|
6229
|
+
for (var B = 0; B < E.D.length; ++B)
|
|
6230
|
+
if (E.D[B] == null)
|
|
6231
|
+
return E.D[B] = z, B;
|
|
6232
6232
|
return E.D.push(z), E.D.length - 1;
|
|
6233
6233
|
}, E.Ab = function(z) {
|
|
6234
6234
|
for (E.D[z] = null; 0 < E.D.length && E.D[E.D.length - 1] == null; )
|
|
6235
6235
|
E.D.pop();
|
|
6236
6236
|
}, E.Pc = function(z) {
|
|
6237
|
-
for (var
|
|
6238
|
-
if (E.D[
|
|
6239
|
-
return E.Ab(
|
|
6237
|
+
for (var B = 0; B < E.D.length; ++B)
|
|
6238
|
+
if (E.D[B] == z)
|
|
6239
|
+
return E.Ab(B);
|
|
6240
6240
|
}, E.qa = function(z) {
|
|
6241
6241
|
return E.D[z];
|
|
6242
6242
|
}, E.Sa = ["touchend", "click"], E.unlock = function() {
|
|
6243
6243
|
for (var z = 0; z < E.D.length; ++z) {
|
|
6244
|
-
var
|
|
6245
|
-
|
|
6246
|
-
Sc(
|
|
6244
|
+
var B = E.D[z];
|
|
6245
|
+
B != null && B.L != null && B.state === E.ga.wb && B.L.resume().then(() => {
|
|
6246
|
+
Sc(B.pb);
|
|
6247
6247
|
}, (Q) => {
|
|
6248
6248
|
console.error("Failed to resume audiocontext", Q);
|
|
6249
6249
|
});
|
|
@@ -6270,8 +6270,8 @@ function Ew() {
|
|
|
6270
6270
|
}, 493991: (c, f, b, x, _, E) => {
|
|
6271
6271
|
if (typeof window.h > "u")
|
|
6272
6272
|
return -1;
|
|
6273
|
-
var z = {},
|
|
6274
|
-
return c == window.h.J.xa && b != 0 && (
|
|
6273
|
+
var z = {}, B = {};
|
|
6274
|
+
return c == window.h.J.xa && b != 0 && (B.sampleRate = b), z.L = new (window.AudioContext || window.webkitAudioContext)(B), z.L.suspend(), z.state = window.h.ga.stopped, b = 0, c != window.h.J.xa && (b = f), z.Z = z.L.createScriptProcessor(x, b, f), z.Z.onaudioprocess = function(Q) {
|
|
6275
6275
|
if ((z.ra == null || z.ra.length == 0) && (z.ra = new Float32Array(we.buffer, _, x * f)), c == window.h.J.capture || c == window.h.J.Ka) {
|
|
6276
6276
|
for (var G = 0; G < f; G += 1)
|
|
6277
6277
|
for (var fe = Q.inputBuffer.getChannelData(G), ye = z.ra, _e = 0; _e < x; _e += 1)
|
|
@@ -6322,7 +6322,7 @@ function Ew() {
|
|
|
6322
6322
|
}, S = (c) => {
|
|
6323
6323
|
var f = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(c).slice(1);
|
|
6324
6324
|
return c = f[0], f = f[1], !c && !f ? "." : (f &&= f.substr(0, f.length - 1), c + f);
|
|
6325
|
-
},
|
|
6325
|
+
}, $ = (c) => {
|
|
6326
6326
|
if (c === "/")
|
|
6327
6327
|
return "/";
|
|
6328
6328
|
c = g(c), c = c.replace(/\/$/, "");
|
|
@@ -6375,8 +6375,8 @@ function Ew() {
|
|
|
6375
6375
|
for (var E = 0; E < c.length; ++E) {
|
|
6376
6376
|
var z = c.charCodeAt(E);
|
|
6377
6377
|
if (55296 <= z && 57343 >= z) {
|
|
6378
|
-
var
|
|
6379
|
-
z = 65536 + ((z & 1023) << 10) |
|
|
6378
|
+
var B = c.charCodeAt(++E);
|
|
6379
|
+
z = 65536 + ((z & 1023) << 10) | B & 1023;
|
|
6380
6380
|
}
|
|
6381
6381
|
if (127 >= z) {
|
|
6382
6382
|
if (b >= x)
|
|
@@ -6723,7 +6723,7 @@ function Ew() {
|
|
|
6723
6723
|
}
|
|
6724
6724
|
function da(c, f, b) {
|
|
6725
6725
|
var x = or(c, { parent: !0 }).node;
|
|
6726
|
-
if (c =
|
|
6726
|
+
if (c = $(c), !c || c === "." || c === "..")
|
|
6727
6727
|
throw new Ce(28);
|
|
6728
6728
|
var _ = Ql(x, c);
|
|
6729
6729
|
if (_)
|
|
@@ -6744,7 +6744,7 @@ function Ew() {
|
|
|
6744
6744
|
var b = or(f, { parent: !0 }).node;
|
|
6745
6745
|
if (!b)
|
|
6746
6746
|
throw new Ce(44);
|
|
6747
|
-
f =
|
|
6747
|
+
f = $(f);
|
|
6748
6748
|
var x = Ql(b, f);
|
|
6749
6749
|
if (x)
|
|
6750
6750
|
throw new Ce(x);
|
|
@@ -6821,7 +6821,7 @@ function Ew() {
|
|
|
6821
6821
|
E.seekable = !1;
|
|
6822
6822
|
}, close() {
|
|
6823
6823
|
b?.buffer?.length && b(10);
|
|
6824
|
-
}, read(E, z,
|
|
6824
|
+
}, read(E, z, B, Q) {
|
|
6825
6825
|
for (var G = 0, fe = 0; fe < Q; fe++) {
|
|
6826
6826
|
try {
|
|
6827
6827
|
var ye = f();
|
|
@@ -6832,13 +6832,13 @@ function Ew() {
|
|
|
6832
6832
|
throw new Ce(6);
|
|
6833
6833
|
if (ye == null)
|
|
6834
6834
|
break;
|
|
6835
|
-
G++, z[
|
|
6835
|
+
G++, z[B + fe] = ye;
|
|
6836
6836
|
}
|
|
6837
6837
|
return G && (E.node.timestamp = Date.now()), G;
|
|
6838
|
-
}, write(E, z,
|
|
6838
|
+
}, write(E, z, B, Q) {
|
|
6839
6839
|
for (var G = 0; G < Q; G++)
|
|
6840
6840
|
try {
|
|
6841
|
-
b(z[
|
|
6841
|
+
b(z[B + G]);
|
|
6842
6842
|
} catch {
|
|
6843
6843
|
throw new Ce(29);
|
|
6844
6844
|
}
|
|
@@ -6919,19 +6919,19 @@ function Ew() {
|
|
|
6919
6919
|
return this.fromWireType(ue[c >> 2]);
|
|
6920
6920
|
}
|
|
6921
6921
|
var Cr = {}, Zi = {}, en = (c, f, b) => {
|
|
6922
|
-
function x(
|
|
6923
|
-
if (
|
|
6922
|
+
function x(B) {
|
|
6923
|
+
if (B = b(B), B.length !== c.length)
|
|
6924
6924
|
throw new ri("Mismatched type converter count");
|
|
6925
6925
|
for (var Q = 0; Q < c.length; ++Q)
|
|
6926
|
-
An(c[Q],
|
|
6926
|
+
An(c[Q], B[Q]);
|
|
6927
6927
|
}
|
|
6928
|
-
c.forEach(function(
|
|
6929
|
-
Zi[
|
|
6928
|
+
c.forEach(function(B) {
|
|
6929
|
+
Zi[B] = f;
|
|
6930
6930
|
});
|
|
6931
6931
|
var _ = Array(f.length), E = [], z = 0;
|
|
6932
|
-
f.forEach((
|
|
6933
|
-
sr.hasOwnProperty(
|
|
6934
|
-
_[Q] = sr[
|
|
6932
|
+
f.forEach((B, Q) => {
|
|
6933
|
+
sr.hasOwnProperty(B) ? _[Q] = sr[B] : (E.push(B), Cr.hasOwnProperty(B) || (Cr[B] = []), Cr[B].push(() => {
|
|
6934
|
+
_[Q] = sr[B], ++z, z === E.length && x(_);
|
|
6935
6935
|
}));
|
|
6936
6936
|
}), E.length === 0 && x(_);
|
|
6937
6937
|
};
|
|
@@ -6981,8 +6981,8 @@ function Ew() {
|
|
|
6981
6981
|
var f = c.charCodeAt(0);
|
|
6982
6982
|
return 48 <= f && 57 >= f ? `_${c}` : c;
|
|
6983
6983
|
};
|
|
6984
|
-
function mg(c, f, b, x, _, E, z,
|
|
6985
|
-
this.name = c, this.constructor = f, this.N = b, this.P = x, this.C = _, this.Rb = E, this.na = z, this.Mb =
|
|
6984
|
+
function mg(c, f, b, x, _, E, z, B) {
|
|
6985
|
+
this.name = c, this.constructor = f, this.N = b, this.P = x, this.C = _, this.Rb = E, this.na = z, this.Mb = B, this.qb = [];
|
|
6986
6986
|
}
|
|
6987
6987
|
var Yi = (c, f, b) => {
|
|
6988
6988
|
for (; f !== b; ) {
|
|
@@ -7061,8 +7061,8 @@ function Ew() {
|
|
|
7061
7061
|
throw new Le(`Cannot convert argument of type ${f.g.u.name} to parameter type ${this.name}`);
|
|
7062
7062
|
return Yi(f.g.o, f.g.u.i, this.i);
|
|
7063
7063
|
}
|
|
7064
|
-
function Xi(c, f, b, x, _, E, z,
|
|
7065
|
-
this.name = c, this.i = f, this.Ma = b, this.sa = x, this.ta = _, this.ic = E, this.nc = z, this.rb =
|
|
7064
|
+
function Xi(c, f, b, x, _, E, z, B, Q, G, fe) {
|
|
7065
|
+
this.name = c, this.i = f, this.Ma = b, this.sa = x, this.ta = _, this.ic = E, this.nc = z, this.rb = B, this.Oa = Q, this.jc = G, this.P = fe, _ || f.C !== void 0 ? this.toWireType = vg : (this.toWireType = x ? gg : bg, this.M = null);
|
|
7066
7066
|
}
|
|
7067
7067
|
var fc = (c, f, b) => {
|
|
7068
7068
|
if (!y.hasOwnProperty(c))
|
|
@@ -7094,7 +7094,7 @@ function Ew() {
|
|
|
7094
7094
|
var E = f.length;
|
|
7095
7095
|
if (2 > E)
|
|
7096
7096
|
throw new Le("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
7097
|
-
var z = f[1] !== null && b !== null,
|
|
7097
|
+
var z = f[1] !== null && b !== null, B = xg(f), Q = f[0].name !== "void", G = E - 2, fe = Array(G), ye = [], _e = [];
|
|
7098
7098
|
return _r(c, function(...V) {
|
|
7099
7099
|
if (V.length !== G)
|
|
7100
7100
|
throw new Le(`function ${c} called with ${V.length} arguments, expected ${G}`);
|
|
@@ -7104,7 +7104,7 @@ function Ew() {
|
|
|
7104
7104
|
}
|
|
7105
7105
|
for (var ce = 0; ce < G; ++ce)
|
|
7106
7106
|
fe[ce] = f[ce + 2].toWireType(_e, V[ce]), ye.push(fe[ce]);
|
|
7107
|
-
if (V = x(...ye),
|
|
7107
|
+
if (V = x(...ye), B)
|
|
7108
7108
|
ii(_e);
|
|
7109
7109
|
else
|
|
7110
7110
|
for (ce = z ? 1 : 2; ce < f.length; ce++) {
|
|
@@ -7277,7 +7277,7 @@ function Ew() {
|
|
|
7277
7277
|
var We;
|
|
7278
7278
|
return (We = ce(V.getFullYear() - he.getFullYear())) === 0 && (We = ce(V.getMonth() - he.getMonth())) === 0 && (We = ce(V.getDate() - he.getDate())), We;
|
|
7279
7279
|
}
|
|
7280
|
-
function
|
|
7280
|
+
function B(V) {
|
|
7281
7281
|
switch (V.getDay()) {
|
|
7282
7282
|
case 0:
|
|
7283
7283
|
return new Date(V.getFullYear() - 1, 11, 29);
|
|
@@ -7306,7 +7306,7 @@ function Ew() {
|
|
|
7306
7306
|
break;
|
|
7307
7307
|
}
|
|
7308
7308
|
}
|
|
7309
|
-
return ce = new Date(V.getFullYear() + 1, 0, 4), he =
|
|
7309
|
+
return ce = new Date(V.getFullYear() + 1, 0, 4), he = B(new Date(V.getFullYear(), 0, 4)), ce = B(ce), 0 >= z(he, V) ? 0 >= z(ce, V) ? V.getFullYear() + 1 : V.getFullYear() : V.getFullYear() - 1;
|
|
7310
7310
|
}
|
|
7311
7311
|
var G = ue[x + 40 >> 2];
|
|
7312
7312
|
x = { qc: oe[x >> 2], pc: oe[x + 4 >> 2], Ea: oe[x + 8 >> 2], Ra: oe[x + 12 >> 2], Fa: oe[x + 16 >> 2], da: oe[x + 20 >> 2], S: oe[x + 24 >> 2], ca: oe[x + 28 >> 2], Oc: oe[x + 32 >> 2], oc: oe[x + 36 >> 2], rc: G && G ? pe(ne, G) : "" }, b = b ? pe(ne, b) : "", G = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
@@ -7518,63 +7518,63 @@ function Ew() {
|
|
|
7518
7518
|
}
|
|
7519
7519
|
var z = x ? w() : 0;
|
|
7520
7520
|
return Vi(f, b, z).X;
|
|
7521
|
-
} catch (
|
|
7522
|
-
if (typeof ar > "u" ||
|
|
7523
|
-
throw
|
|
7524
|
-
return -
|
|
7521
|
+
} catch (B) {
|
|
7522
|
+
if (typeof ar > "u" || B.name !== "ErrnoError")
|
|
7523
|
+
throw B;
|
|
7524
|
+
return -B.aa;
|
|
7525
7525
|
}
|
|
7526
7526
|
}, _abort_js: () => {
|
|
7527
7527
|
$e("");
|
|
7528
7528
|
}, _embind_create_inheriting_constructor: (c, f, b) => {
|
|
7529
7529
|
c = xt(c), f = ni(f, "wrapper"), b = Cn(b);
|
|
7530
7530
|
var x = f.i, _ = x.N, E = x.C.N, z = x.C.constructor;
|
|
7531
|
-
return c = _r(c, function(...
|
|
7531
|
+
return c = _r(c, function(...B) {
|
|
7532
7532
|
x.C.qb.forEach(function(Q) {
|
|
7533
7533
|
if (this[Q] === E[Q])
|
|
7534
7534
|
throw new ac(`Pure virtual function ${Q} must be implemented in JavaScript`);
|
|
7535
|
-
}.bind(this)), Object.defineProperty(this, "__parent", { value: _ }), this.__construct(...
|
|
7536
|
-
}), _.__construct = function(...
|
|
7535
|
+
}.bind(this)), Object.defineProperty(this, "__parent", { value: _ }), this.__construct(...B);
|
|
7536
|
+
}), _.__construct = function(...B) {
|
|
7537
7537
|
if (this === _)
|
|
7538
7538
|
throw new Le("Pass correct 'this' to __construct");
|
|
7539
|
-
|
|
7540
|
-
var Q =
|
|
7541
|
-
if (
|
|
7542
|
-
throw new Le(`Tried to register registered instance: ${
|
|
7543
|
-
$n[
|
|
7539
|
+
B = z.implement(this, ...B), Wi(B);
|
|
7540
|
+
var Q = B.g;
|
|
7541
|
+
if (B.notifyOnDestruction(), Q.ia = !0, Object.defineProperties(this, { g: { value: Q } }), Sr(this), B = Q.o, B = va(x, B), $n.hasOwnProperty(B))
|
|
7542
|
+
throw new Le(`Tried to register registered instance: ${B}`);
|
|
7543
|
+
$n[B] = this;
|
|
7544
7544
|
}, _.__destruct = function() {
|
|
7545
7545
|
if (this === _)
|
|
7546
7546
|
throw new Le("Pass correct 'this' to __destruct");
|
|
7547
7547
|
Wi(this);
|
|
7548
|
-
var
|
|
7549
|
-
if (
|
|
7550
|
-
delete $n[
|
|
7548
|
+
var B = this.g.o;
|
|
7549
|
+
if (B = va(x, B), $n.hasOwnProperty(B))
|
|
7550
|
+
delete $n[B];
|
|
7551
7551
|
else
|
|
7552
|
-
throw new Le(`Tried to unregister unregistered instance: ${
|
|
7552
|
+
throw new Le(`Tried to unregister unregistered instance: ${B}`);
|
|
7553
7553
|
}, c.prototype = Object.create(_), Object.assign(c.prototype, b), En(c);
|
|
7554
7554
|
}, _embind_finalize_value_object: (c) => {
|
|
7555
7555
|
var f = Hi[c];
|
|
7556
7556
|
delete Hi[c];
|
|
7557
7557
|
var b = f.Oa, x = f.P, _ = f.fb, E = _.map((z) => z.Vb).concat(_.map((z) => z.lc));
|
|
7558
7558
|
en([c], E, (z) => {
|
|
7559
|
-
var
|
|
7559
|
+
var B = {};
|
|
7560
7560
|
return _.forEach((Q, G) => {
|
|
7561
7561
|
var fe = z[G], ye = Q.Tb, _e = Q.Ub, V = z[G + _.length], he = Q.kc, ce = Q.mc;
|
|
7562
|
-
|
|
7562
|
+
B[Q.Pb] = { read: (We) => fe.fromWireType(ye(_e, We)), write: (We, Xe) => {
|
|
7563
7563
|
var ve = [];
|
|
7564
7564
|
he(ce, We, V.toWireType(ve, Xe)), ii(ve);
|
|
7565
7565
|
} };
|
|
7566
7566
|
}), [{ name: f.name, fromWireType: (Q) => {
|
|
7567
7567
|
var G = {}, fe;
|
|
7568
|
-
for (fe in
|
|
7569
|
-
G[fe] =
|
|
7568
|
+
for (fe in B)
|
|
7569
|
+
G[fe] = B[fe].read(Q);
|
|
7570
7570
|
return x(Q), G;
|
|
7571
7571
|
}, toWireType: (Q, G) => {
|
|
7572
|
-
for (var fe in
|
|
7572
|
+
for (var fe in B)
|
|
7573
7573
|
if (!(fe in G))
|
|
7574
7574
|
throw new TypeError(`Missing field: "${fe}"`);
|
|
7575
7575
|
var ye = b();
|
|
7576
|
-
for (fe in
|
|
7577
|
-
|
|
7576
|
+
for (fe in B)
|
|
7577
|
+
B[fe].write(ye, G[fe]);
|
|
7578
7578
|
return Q !== null && Q.push(x, ye), ye;
|
|
7579
7579
|
}, argPackAdvance: 8, readValueFromPointer: oi, M: x }];
|
|
7580
7580
|
});
|
|
@@ -7587,8 +7587,8 @@ function Ew() {
|
|
|
7587
7587
|
}, argPackAdvance: 8, readValueFromPointer: function(_) {
|
|
7588
7588
|
return this.fromWireType(ne[_]);
|
|
7589
7589
|
}, M: null });
|
|
7590
|
-
}, _embind_register_class: (c, f, b, x, _, E, z,
|
|
7591
|
-
fe = xt(fe), E = Ut(_, E),
|
|
7590
|
+
}, _embind_register_class: (c, f, b, x, _, E, z, B, Q, G, fe, ye, _e) => {
|
|
7591
|
+
fe = xt(fe), E = Ut(_, E), B &&= Ut(z, B), G &&= Ut(Q, G), _e = Ut(ye, _e);
|
|
7592
7592
|
var V = pg(fe);
|
|
7593
7593
|
xa(V, function() {
|
|
7594
7594
|
Un(`Cannot construct ${fe} due to unbound types`, [x]);
|
|
@@ -7609,7 +7609,7 @@ function Ew() {
|
|
|
7609
7609
|
});
|
|
7610
7610
|
var Xe = Object.create(We, { constructor: { value: he } });
|
|
7611
7611
|
he.prototype = Xe;
|
|
7612
|
-
var ve = new mg(fe, he, Xe, _e, ce, E,
|
|
7612
|
+
var ve = new mg(fe, he, Xe, _e, ce, E, B, G);
|
|
7613
7613
|
if (ve.C) {
|
|
7614
7614
|
var ut;
|
|
7615
7615
|
(ut = ve.C).oa ?? (ut.oa = []), ve.C.oa.push(ve);
|
|
@@ -7617,29 +7617,29 @@ function Ew() {
|
|
|
7617
7617
|
return ce = new Xi(fe, ve, !0, !1, !1), ut = new Xi(fe + "*", ve, !1, !1, !1), We = new Xi(fe + " const*", ve, !1, !0, !1), uc[c] = { pointerType: ut, Ib: We }, fc(V, he), [ce, ut, We];
|
|
7618
7618
|
});
|
|
7619
7619
|
}, _embind_register_class_class_function: (c, f, b, x, _, E, z) => {
|
|
7620
|
-
var
|
|
7620
|
+
var B = Qi(b, x);
|
|
7621
7621
|
f = xt(f), f = _a(f), E = Ut(_, E), en([], [c], (Q) => {
|
|
7622
7622
|
function G() {
|
|
7623
|
-
Un(`Cannot call ${fe} due to unbound types`,
|
|
7623
|
+
Un(`Cannot call ${fe} due to unbound types`, B);
|
|
7624
7624
|
}
|
|
7625
7625
|
Q = Q[0];
|
|
7626
7626
|
var fe = `${Q.name}.${f}`;
|
|
7627
7627
|
f.startsWith("@@") && (f = Symbol[f.substring(2)]);
|
|
7628
7628
|
var ye = Q.i.constructor;
|
|
7629
|
-
return ye[f] === void 0 ? (G.ea = b - 1, ye[f] = G) : (wa(ye, f, fe), ye[f].A[b - 1] = G), en([],
|
|
7629
|
+
return ye[f] === void 0 ? (G.ea = b - 1, ye[f] = G) : (wa(ye, f, fe), ye[f].A[b - 1] = G), en([], B, (_e) => {
|
|
7630
7630
|
if (_e = Ji(fe, [_e[0], null].concat(_e.slice(1)), null, E, z), ye[f].A === void 0 ? (_e.ea = b - 1, ye[f] = _e) : ye[f].A[b - 1] = _e, Q.i.oa)
|
|
7631
7631
|
for (const V of Q.i.oa)
|
|
7632
7632
|
V.constructor.hasOwnProperty(f) || (V.constructor[f] = _e);
|
|
7633
7633
|
return [];
|
|
7634
7634
|
}), [];
|
|
7635
7635
|
});
|
|
7636
|
-
}, _embind_register_class_class_property: (c, f, b, x, _, E, z,
|
|
7636
|
+
}, _embind_register_class_class_property: (c, f, b, x, _, E, z, B) => {
|
|
7637
7637
|
f = xt(f), E = Ut(_, E), en([], [c], (Q) => {
|
|
7638
7638
|
Q = Q[0];
|
|
7639
7639
|
var G = `${Q.name}.${f}`, fe = { get() {
|
|
7640
7640
|
Un(`Cannot access ${G} due to unbound types`, [b]);
|
|
7641
7641
|
}, enumerable: !0, configurable: !0 };
|
|
7642
|
-
return fe.set =
|
|
7642
|
+
return fe.set = B ? () => {
|
|
7643
7643
|
Un(`Cannot access ${G} due to unbound types`, [b]);
|
|
7644
7644
|
} : () => {
|
|
7645
7645
|
throw new Le(`${G} is a read-only property`);
|
|
@@ -7648,24 +7648,24 @@ function Ew() {
|
|
|
7648
7648
|
var _e = { get() {
|
|
7649
7649
|
return ye.fromWireType(E(x));
|
|
7650
7650
|
}, enumerable: !0 };
|
|
7651
|
-
return
|
|
7651
|
+
return B && (B = Ut(z, B), _e.set = (V) => {
|
|
7652
7652
|
var he = [];
|
|
7653
|
-
|
|
7653
|
+
B(x, ye.toWireType(he, V)), ii(he);
|
|
7654
7654
|
}), Object.defineProperty(Q.i.constructor, f, _e), [];
|
|
7655
7655
|
}), [];
|
|
7656
7656
|
});
|
|
7657
7657
|
}, _embind_register_class_constructor: (c, f, b, x, _, E) => {
|
|
7658
7658
|
var z = Qi(f, b);
|
|
7659
|
-
_ = Ut(x, _), en([], [c], (
|
|
7660
|
-
|
|
7661
|
-
var Q = `constructor ${
|
|
7662
|
-
if (
|
|
7663
|
-
throw new Le(`Cannot register multiple constructors with identical number of parameters (${f - 1}) for class '${
|
|
7664
|
-
return
|
|
7665
|
-
Un(`Cannot construct ${
|
|
7666
|
-
}, en([], z, (G) => (G.splice(1, 0, null),
|
|
7659
|
+
_ = Ut(x, _), en([], [c], (B) => {
|
|
7660
|
+
B = B[0];
|
|
7661
|
+
var Q = `constructor ${B.name}`;
|
|
7662
|
+
if (B.i.$ === void 0 && (B.i.$ = []), B.i.$[f - 1] !== void 0)
|
|
7663
|
+
throw new Le(`Cannot register multiple constructors with identical number of parameters (${f - 1}) for class '${B.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
7664
|
+
return B.i.$[f - 1] = () => {
|
|
7665
|
+
Un(`Cannot construct ${B.name} due to unbound types`, z);
|
|
7666
|
+
}, en([], z, (G) => (G.splice(1, 0, null), B.i.$[f - 1] = Ji(Q, G, null, _, E), [])), [];
|
|
7667
7667
|
});
|
|
7668
|
-
}, _embind_register_class_function: (c, f, b, x, _, E, z,
|
|
7668
|
+
}, _embind_register_class_function: (c, f, b, x, _, E, z, B) => {
|
|
7669
7669
|
var Q = Qi(b, x);
|
|
7670
7670
|
f = xt(f), f = _a(f), E = Ut(_, E), en([], [c], (G) => {
|
|
7671
7671
|
function fe() {
|
|
@@ -7673,11 +7673,11 @@ function Ew() {
|
|
|
7673
7673
|
}
|
|
7674
7674
|
G = G[0];
|
|
7675
7675
|
var ye = `${G.name}.${f}`;
|
|
7676
|
-
f.startsWith("@@") && (f = Symbol[f.substring(2)]),
|
|
7676
|
+
f.startsWith("@@") && (f = Symbol[f.substring(2)]), B && G.i.qb.push(f);
|
|
7677
7677
|
var _e = G.i.N, V = _e[f];
|
|
7678
7678
|
return V === void 0 || V.A === void 0 && V.className !== G.name && V.ea === b - 2 ? (fe.ea = b - 2, fe.className = G.name, _e[f] = fe) : (wa(_e, f, ye), _e[f].A[b - 2] = fe), en([], Q, (he) => (he = Ji(ye, he, G, E, z), _e[f].A === void 0 ? (he.ea = b - 2, _e[f] = he) : _e[f].A[b - 2] = he, [])), [];
|
|
7679
7679
|
});
|
|
7680
|
-
}, _embind_register_class_property: (c, f, b, x, _, E, z,
|
|
7680
|
+
}, _embind_register_class_property: (c, f, b, x, _, E, z, B, Q, G) => {
|
|
7681
7681
|
f = xt(f), _ = Ut(x, _), en([], [c], (fe) => {
|
|
7682
7682
|
fe = fe[0];
|
|
7683
7683
|
var ye = `${fe.name}.${f}`, _e = { get() {
|
|
@@ -7691,7 +7691,7 @@ function Ew() {
|
|
|
7691
7691
|
return he.fromWireType(_(E, Xe));
|
|
7692
7692
|
}, enumerable: !0 };
|
|
7693
7693
|
if (Q) {
|
|
7694
|
-
Q = Ut(
|
|
7694
|
+
Q = Ut(B, Q);
|
|
7695
7695
|
var We = V[1];
|
|
7696
7696
|
ce.set = function(Xe) {
|
|
7697
7697
|
var ve = pc(this, fe, ye + " setter"), ut = [];
|
|
@@ -7717,15 +7717,15 @@ function Ew() {
|
|
|
7717
7717
|
var z = Qi(f, b);
|
|
7718
7718
|
c = xt(c), c = _a(c), _ = Ut(x, _), xa(c, function() {
|
|
7719
7719
|
Un(`Cannot call ${c} due to unbound types`, z);
|
|
7720
|
-
}, f - 1), en([], z, (
|
|
7720
|
+
}, f - 1), en([], z, (B) => (fc(c, Ji(c, [B[0], null].concat(B.slice(1)), null, _, E), f - 1), []));
|
|
7721
7721
|
}, _embind_register_integer: (c, f, b, x, _) => {
|
|
7722
|
-
if (f = xt(f), _ === -1 && (_ = 4294967295), _ = (
|
|
7722
|
+
if (f = xt(f), _ === -1 && (_ = 4294967295), _ = (B) => B, x === 0) {
|
|
7723
7723
|
var E = 32 - 8 * b;
|
|
7724
|
-
_ = (
|
|
7724
|
+
_ = (B) => B << E >>> E;
|
|
7725
7725
|
}
|
|
7726
|
-
var z = f.includes("unsigned") ? function(
|
|
7726
|
+
var z = f.includes("unsigned") ? function(B, Q) {
|
|
7727
7727
|
return Q >>> 0;
|
|
7728
|
-
} : function(
|
|
7728
|
+
} : function(B, Q) {
|
|
7729
7729
|
return Q;
|
|
7730
7730
|
};
|
|
7731
7731
|
An(c, { name: f, fromWireType: _, toWireType: z, argPackAdvance: 8, readValueFromPointer: Cg(f, b, x !== 0), M: null });
|
|
@@ -7741,9 +7741,9 @@ function Ew() {
|
|
|
7741
7741
|
An(c, { name: f, fromWireType: function(x) {
|
|
7742
7742
|
var _ = ue[x >> 2], E = x + 4;
|
|
7743
7743
|
if (b)
|
|
7744
|
-
for (var z = E,
|
|
7745
|
-
var Q = E +
|
|
7746
|
-
if (
|
|
7744
|
+
for (var z = E, B = 0; B <= _; ++B) {
|
|
7745
|
+
var Q = E + B;
|
|
7746
|
+
if (B == _ || ne[Q] == 0) {
|
|
7747
7747
|
if (z = z ? pe(ne, z, Q - z) : "", G === void 0)
|
|
7748
7748
|
var G = z;
|
|
7749
7749
|
else
|
|
@@ -7752,8 +7752,8 @@ function Ew() {
|
|
|
7752
7752
|
}
|
|
7753
7753
|
}
|
|
7754
7754
|
else {
|
|
7755
|
-
for (G = Array(_),
|
|
7756
|
-
G[
|
|
7755
|
+
for (G = Array(_), B = 0; B < _; ++B)
|
|
7756
|
+
G[B] = String.fromCharCode(ne[E + B]);
|
|
7757
7757
|
G = G.join("");
|
|
7758
7758
|
}
|
|
7759
7759
|
return Bn(x), G;
|
|
@@ -7762,8 +7762,8 @@ function Ew() {
|
|
|
7762
7762
|
var E = typeof _ == "string";
|
|
7763
7763
|
if (!(E || _ instanceof Uint8Array || _ instanceof Uint8ClampedArray || _ instanceof Int8Array))
|
|
7764
7764
|
throw new Le("Cannot pass non-string to std::string");
|
|
7765
|
-
var z = b && E ? He(_) : _.length,
|
|
7766
|
-
if (ue[
|
|
7765
|
+
var z = b && E ? He(_) : _.length, B = Pa(4 + z + 1), Q = B + 4;
|
|
7766
|
+
if (ue[B >> 2] = z, b && E)
|
|
7767
7767
|
wt(_, ne, Q, z + 1);
|
|
7768
7768
|
else if (E)
|
|
7769
7769
|
for (E = 0; E < z; ++E) {
|
|
@@ -7775,33 +7775,33 @@ function Ew() {
|
|
|
7775
7775
|
else
|
|
7776
7776
|
for (E = 0; E < z; ++E)
|
|
7777
7777
|
ne[Q + E] = _[E];
|
|
7778
|
-
return x !== null && x.push(Bn,
|
|
7778
|
+
return x !== null && x.push(Bn, B), B;
|
|
7779
7779
|
}, argPackAdvance: 8, readValueFromPointer: oi, M(x) {
|
|
7780
7780
|
Bn(x);
|
|
7781
7781
|
} });
|
|
7782
7782
|
}, _embind_register_std_wstring: (c, f, b) => {
|
|
7783
7783
|
if (b = xt(b), f === 2)
|
|
7784
|
-
var x = Eg, _ = Ag, E = Ig, z = (
|
|
7784
|
+
var x = Eg, _ = Ag, E = Ig, z = (B) => N[B >> 1];
|
|
7785
7785
|
else
|
|
7786
|
-
f === 4 && (x = Rg, _ = Tg, E = Pg, z = (
|
|
7787
|
-
An(c, { name: b, fromWireType: (
|
|
7788
|
-
for (var Q = ue[
|
|
7789
|
-
var _e =
|
|
7786
|
+
f === 4 && (x = Rg, _ = Tg, E = Pg, z = (B) => ue[B >> 2]);
|
|
7787
|
+
An(c, { name: b, fromWireType: (B) => {
|
|
7788
|
+
for (var Q = ue[B >> 2], G, fe = B + 4, ye = 0; ye <= Q; ++ye) {
|
|
7789
|
+
var _e = B + 4 + ye * f;
|
|
7790
7790
|
(ye == Q || z(_e) == 0) && (fe = x(fe, _e - fe), G === void 0 ? G = fe : (G += "\0", G += fe), fe = _e + f);
|
|
7791
7791
|
}
|
|
7792
|
-
return Bn(
|
|
7793
|
-
}, toWireType: (
|
|
7792
|
+
return Bn(B), G;
|
|
7793
|
+
}, toWireType: (B, Q) => {
|
|
7794
7794
|
if (typeof Q != "string")
|
|
7795
7795
|
throw new Le(`Cannot pass non-string to C++ string type ${b}`);
|
|
7796
7796
|
var G = E(Q), fe = Pa(4 + G + f);
|
|
7797
|
-
return ue[fe >> 2] = G / f, _(Q, fe + 4, G + f),
|
|
7798
|
-
}, argPackAdvance: 8, readValueFromPointer: oi, M(
|
|
7799
|
-
Bn(
|
|
7797
|
+
return ue[fe >> 2] = G / f, _(Q, fe + 4, G + f), B !== null && B.push(Bn, fe), fe;
|
|
7798
|
+
}, argPackAdvance: 8, readValueFromPointer: oi, M(B) {
|
|
7799
|
+
Bn(B);
|
|
7800
7800
|
} });
|
|
7801
7801
|
}, _embind_register_value_object: (c, f, b, x, _, E) => {
|
|
7802
7802
|
Hi[c] = { name: xt(f), Oa: Ut(b, x), P: Ut(_, E), fb: [] };
|
|
7803
|
-
}, _embind_register_value_object_field: (c, f, b, x, _, E, z,
|
|
7804
|
-
Hi[c].fb.push({ Pb: xt(f), Vb: b, Tb: Ut(x, _), Ub: E, lc: z, kc: Ut(
|
|
7803
|
+
}, _embind_register_value_object_field: (c, f, b, x, _, E, z, B, Q, G) => {
|
|
7804
|
+
Hi[c].fb.push({ Pb: xt(f), Vb: b, Tb: Ut(x, _), Ub: E, lc: z, kc: Ut(B, Q), mc: G });
|
|
7805
7805
|
}, _embind_register_void: (c, f) => {
|
|
7806
7806
|
f = xt(f), An(c, { Jc: !0, name: f, argPackAdvance: 0, fromWireType: () => {
|
|
7807
7807
|
}, toWireType: () => {
|
|
@@ -7812,10 +7812,10 @@ function Ew() {
|
|
|
7812
7812
|
var x = Lg(c, f), _ = x.shift();
|
|
7813
7813
|
c--;
|
|
7814
7814
|
var E = Array(c);
|
|
7815
|
-
return f = `methodCaller<(${x.map((z) => z.name).join(", ")}) => ${_.name}>`, Ng(_r(f, (z,
|
|
7815
|
+
return f = `methodCaller<(${x.map((z) => z.name).join(", ")}) => ${_.name}>`, Ng(_r(f, (z, B, Q, G) => {
|
|
7816
7816
|
for (var fe = 0, ye = 0; ye < c; ++ye)
|
|
7817
7817
|
E[ye] = x[ye].readValueFromPointer(G + fe), fe += x[ye].argPackAdvance;
|
|
7818
|
-
return z = b === 1 ? Dg(
|
|
7818
|
+
return z = b === 1 ? Dg(B, E) : B.apply(z, E), gc(_, Q, z);
|
|
7819
7819
|
}));
|
|
7820
7820
|
}, _emval_get_module_property: (c) => (c = Ea(c), En(y[c])), _emval_get_property: (c, f) => (c = Cn(c), f = Cn(f), En(c[f])), _emval_incref: (c) => {
|
|
7821
7821
|
9 < c && (jn[c + 1] += 1);
|
|
@@ -7833,8 +7833,8 @@ function Ew() {
|
|
|
7833
7833
|
}, _tzset_js: (c, f, b, x) => {
|
|
7834
7834
|
var _ = (/* @__PURE__ */ new Date()).getFullYear(), E = new Date(_, 0, 1), z = new Date(_, 6, 1);
|
|
7835
7835
|
_ = E.getTimezoneOffset();
|
|
7836
|
-
var
|
|
7837
|
-
ue[c >> 2] = 60 * Math.max(_,
|
|
7836
|
+
var B = z.getTimezoneOffset();
|
|
7837
|
+
ue[c >> 2] = 60 * Math.max(_, B), oe[f >> 2] = +(_ != B), c = (Q) => Q.toLocaleTimeString(void 0, { hour12: !1, timeZoneName: "short" }).split(" ")[1], E = c(E), z = c(z), B < _ ? (wt(E, ne, b, 17), wt(z, ne, x, 17)) : (wt(E, ne, x, 17), wt(z, ne, b, 17));
|
|
7838
7838
|
}, emscripten_asm_const_int: (c, f, b) => {
|
|
7839
7839
|
Ia.length = 0;
|
|
7840
7840
|
for (var x; x = ne[f++]; ) {
|
|
@@ -7903,7 +7903,7 @@ function Ew() {
|
|
|
7903
7903
|
var _ = Zn(c);
|
|
7904
7904
|
c = f;
|
|
7905
7905
|
for (var E, z = f = 0; z < b; z++) {
|
|
7906
|
-
var
|
|
7906
|
+
var B = ue[c >> 2], Q = ue[c + 4 >> 2];
|
|
7907
7907
|
c += 8;
|
|
7908
7908
|
var G = _, fe = E, ye = k;
|
|
7909
7909
|
if (0 > Q || 0 > fe)
|
|
@@ -7921,7 +7921,7 @@ function Ew() {
|
|
|
7921
7921
|
fe = G.position;
|
|
7922
7922
|
else if (!G.seekable)
|
|
7923
7923
|
throw new Ce(70);
|
|
7924
|
-
var V = G.m.read(G, ye,
|
|
7924
|
+
var V = G.m.read(G, ye, B, Q, fe);
|
|
7925
7925
|
_e || (G.position += V);
|
|
7926
7926
|
var he = V;
|
|
7927
7927
|
if (0 > he) {
|
|
@@ -7958,9 +7958,9 @@ function Ew() {
|
|
|
7958
7958
|
var _ = Zn(c);
|
|
7959
7959
|
c = f;
|
|
7960
7960
|
for (var E, z = f = 0; z < b; z++) {
|
|
7961
|
-
var
|
|
7961
|
+
var B = ue[c >> 2], Q = ue[c + 4 >> 2];
|
|
7962
7962
|
c += 8;
|
|
7963
|
-
var G = _, fe =
|
|
7963
|
+
var G = _, fe = B, ye = Q, _e = E, V = k;
|
|
7964
7964
|
if (0 > ye || 0 > _e)
|
|
7965
7965
|
throw new Ce(28);
|
|
7966
7966
|
if (G.X === null)
|
|
@@ -8013,7 +8013,7 @@ function Ew() {
|
|
|
8013
8013
|
})(), Bn = (c) => (Bn = mt.free)(c), Pa = (c) => (Pa = mt.malloc)(c), _c = (c) => (_c = mt.__getTypeName)(c), Sc = y._ma_device__on_notification_unlocked = (c) => (Sc = y._ma_device__on_notification_unlocked = mt.ma_device__on_notification_unlocked)(c);
|
|
8014
8014
|
y._ma_malloc_emscripten = (c, f) => (y._ma_malloc_emscripten = mt.ma_malloc_emscripten)(c, f), y._ma_free_emscripten = (c, f) => (y._ma_free_emscripten = mt.ma_free_emscripten)(c, f);
|
|
8015
8015
|
var Cc = y._ma_device_process_pcm_frames_capture__webaudio = (c, f, b) => (Cc = y._ma_device_process_pcm_frames_capture__webaudio = mt.ma_device_process_pcm_frames_capture__webaudio)(c, f, b), Ec = y._ma_device_process_pcm_frames_playback__webaudio = (c, f, b) => (Ec = y._ma_device_process_pcm_frames_playback__webaudio = mt.ma_device_process_pcm_frames_playback__webaudio)(c, f, b), Ac = (c, f) => (Ac = mt.setThrew)(c, f), Ic = (c) => (Ic = mt._emscripten_stack_restore)(c), Rc = () => (Rc = mt.emscripten_stack_get_current)();
|
|
8016
|
-
y.dynCall_iiji = (c, f, b, x, _) => (y.dynCall_iiji = mt.dynCall_iiji)(c, f, b, x, _), y.dynCall_jiji = (c, f, b, x, _) => (y.dynCall_jiji = mt.dynCall_jiji)(c, f, b, x, _), y.dynCall_iiiji = (c, f, b, x, _, E) => (y.dynCall_iiiji = mt.dynCall_iiiji)(c, f, b, x, _, E), y.dynCall_iij = (c, f, b, x) => (y.dynCall_iij = mt.dynCall_iij)(c, f, b, x), y.dynCall_jii = (c, f, b) => (y.dynCall_jii = mt.dynCall_jii)(c, f, b), y.dynCall_viijii = (c, f, b, x, _, E, z) => (y.dynCall_viijii = mt.dynCall_viijii)(c, f, b, x, _, E, z), y.dynCall_iiiiij = (c, f, b, x, _, E, z) => (y.dynCall_iiiiij = mt.dynCall_iiiiij)(c, f, b, x, _, E, z), y.dynCall_iiiiijj = (c, f, b, x, _, E, z,
|
|
8016
|
+
y.dynCall_iiji = (c, f, b, x, _) => (y.dynCall_iiji = mt.dynCall_iiji)(c, f, b, x, _), y.dynCall_jiji = (c, f, b, x, _) => (y.dynCall_jiji = mt.dynCall_jiji)(c, f, b, x, _), y.dynCall_iiiji = (c, f, b, x, _, E) => (y.dynCall_iiiji = mt.dynCall_iiiji)(c, f, b, x, _, E), y.dynCall_iij = (c, f, b, x) => (y.dynCall_iij = mt.dynCall_iij)(c, f, b, x), y.dynCall_jii = (c, f, b) => (y.dynCall_jii = mt.dynCall_jii)(c, f, b), y.dynCall_viijii = (c, f, b, x, _, E, z) => (y.dynCall_viijii = mt.dynCall_viijii)(c, f, b, x, _, E, z), y.dynCall_iiiiij = (c, f, b, x, _, E, z) => (y.dynCall_iiiiij = mt.dynCall_iiiiij)(c, f, b, x, _, E, z), y.dynCall_iiiiijj = (c, f, b, x, _, E, z, B, Q) => (y.dynCall_iiiiijj = mt.dynCall_iiiiijj)(c, f, b, x, _, E, z, B, Q), y.dynCall_iiiiiijj = (c, f, b, x, _, E, z, B, Q, G) => (y.dynCall_iiiiiijj = mt.dynCall_iiiiiijj)(c, f, b, x, _, E, z, B, Q, G);
|
|
8017
8017
|
function Fg(c, f, b) {
|
|
8018
8018
|
var x = Rc();
|
|
8019
8019
|
try {
|
|
@@ -8053,7 +8053,7 @@ function Ew() {
|
|
|
8053
8053
|
if (y.preInit)
|
|
8054
8054
|
for (typeof y.preInit == "function" && (y.preInit = [y.preInit]); 0 < y.preInit.length; )
|
|
8055
8055
|
y.preInit.pop()();
|
|
8056
|
-
return Tc(), m =
|
|
8056
|
+
return Tc(), m = R, m;
|
|
8057
8057
|
});
|
|
8058
8058
|
})();
|
|
8059
8059
|
const h = u;
|
|
@@ -8236,53 +8236,53 @@ function Ew() {
|
|
|
8236
8236
|
/* harmony export */
|
|
8237
8237
|
});
|
|
8238
8238
|
var u = void 0, h = function(v, m, y) {
|
|
8239
|
-
var C, L,
|
|
8239
|
+
var C, L, R = [];
|
|
8240
8240
|
if (["touchstart", "touchmove"].indexOf(v.type) > -1 && (!((C = v.changedTouches) === null || C === void 0) && C.length)) {
|
|
8241
8241
|
m || v.preventDefault();
|
|
8242
|
-
for (var
|
|
8243
|
-
var Y = v.changedTouches[
|
|
8244
|
-
|
|
8242
|
+
for (var j = 0, M = y ? v.changedTouches.length : 1; j < M; ) {
|
|
8243
|
+
var Y = v.changedTouches[j];
|
|
8244
|
+
R.push({
|
|
8245
8245
|
clientX: Y.clientX,
|
|
8246
8246
|
clientY: Y.clientY,
|
|
8247
8247
|
identifier: Y.identifier
|
|
8248
|
-
}),
|
|
8248
|
+
}), j++;
|
|
8249
8249
|
}
|
|
8250
8250
|
} else if (v.type === "touchend" && (!((L = v.changedTouches) === null || L === void 0) && L.length))
|
|
8251
|
-
for (var
|
|
8252
|
-
var Y = v.changedTouches[
|
|
8253
|
-
|
|
8251
|
+
for (var j = 0, M = y ? v.changedTouches.length : 1; j < M; ) {
|
|
8252
|
+
var Y = v.changedTouches[j];
|
|
8253
|
+
R.push({
|
|
8254
8254
|
clientX: Y.clientX,
|
|
8255
8255
|
clientY: Y.clientY,
|
|
8256
8256
|
identifier: Y.identifier
|
|
8257
|
-
}),
|
|
8257
|
+
}), j++;
|
|
8258
8258
|
}
|
|
8259
8259
|
else
|
|
8260
|
-
|
|
8260
|
+
R.push({
|
|
8261
8261
|
clientX: v.clientX,
|
|
8262
8262
|
clientY: v.clientY,
|
|
8263
8263
|
identifier: 0
|
|
8264
8264
|
});
|
|
8265
|
-
return
|
|
8265
|
+
return R;
|
|
8266
8266
|
}, p = function(v) {
|
|
8267
|
-
var m = v.canvas, y = v.artboard, C = v.stateMachines, L = C === void 0 ? [] : C,
|
|
8268
|
-
if (!m || !L.length || !
|
|
8267
|
+
var m = v.canvas, y = v.artboard, C = v.stateMachines, L = C === void 0 ? [] : C, R = v.renderer, j = v.rive, M = v.fit, Y = v.alignment, K = v.isTouchScrollEnabled, U = K === void 0 ? !1 : K, ie = v.dispatchPointerExit, te = ie === void 0 ? !0 : ie, H = v.enableMultiTouch, T = H === void 0 ? !1 : H, A = v.layoutScaleFactor, F = A === void 0 ? 1 : A;
|
|
8268
|
+
if (!m || !L.length || !R || !j || !y || typeof window > "u")
|
|
8269
8269
|
return null;
|
|
8270
8270
|
var q = null, I = !1, D = function(J) {
|
|
8271
8271
|
if (I && J instanceof MouseEvent) {
|
|
8272
8272
|
J.type == "mouseup" && (I = !1);
|
|
8273
8273
|
return;
|
|
8274
8274
|
}
|
|
8275
|
-
I =
|
|
8276
|
-
var le = J.currentTarget.getBoundingClientRect(), X = h(J,
|
|
8275
|
+
I = U && J.type === "touchend" && q === "touchstart", q = J.type;
|
|
8276
|
+
var le = J.currentTarget.getBoundingClientRect(), X = h(J, U, T), k = j.computeAlignment(M, Y, {
|
|
8277
8277
|
minX: 0,
|
|
8278
8278
|
minY: 0,
|
|
8279
8279
|
maxX: le.width,
|
|
8280
8280
|
maxY: le.height
|
|
8281
|
-
}, y.bounds, F), ne = new
|
|
8281
|
+
}, y.bounds, F), ne = new j.Mat2D();
|
|
8282
8282
|
switch (k.invert(ne), X.forEach(function(it) {
|
|
8283
8283
|
var Ie = it.clientX, ht = it.clientY;
|
|
8284
8284
|
if (!(!Ie && !ht)) {
|
|
8285
|
-
var Pt = Ie - le.left, Ot = ht - le.top, $t = new
|
|
8285
|
+
var Pt = Ie - le.left, Ot = ht - le.top, $t = new j.Vec2D(Pt, Ot), Nt = j.mapXY(ne, $t), It = Nt.x(), ee = Nt.y();
|
|
8286
8286
|
it.transformedX = It, it.transformedY = ee, Nt.delete(), $t.delete();
|
|
8287
8287
|
}
|
|
8288
8288
|
}), ne.delete(), k.delete(), J.type) {
|
|
@@ -8360,9 +8360,9 @@ function Ew() {
|
|
|
8360
8360
|
}
|
|
8361
8361
|
}, W = D.bind(u);
|
|
8362
8362
|
return m.addEventListener("mouseover", W), m.addEventListener("mouseout", W), m.addEventListener("mousemove", W), m.addEventListener("mousedown", W), m.addEventListener("mouseup", W), m.addEventListener("touchmove", W, {
|
|
8363
|
-
passive:
|
|
8363
|
+
passive: U
|
|
8364
8364
|
}), m.addEventListener("touchstart", W, {
|
|
8365
|
-
passive:
|
|
8365
|
+
passive: U
|
|
8366
8366
|
}), m.addEventListener("touchend", W), function() {
|
|
8367
8367
|
m.removeEventListener("mouseover", W), m.removeEventListener("mouseout", W), m.removeEventListener("mousemove", W), m.removeEventListener("mousedown", W), m.removeEventListener("mouseup", W), m.removeEventListener("touchmove", W), m.removeEventListener("touchstart", W), m.removeEventListener("touchend", W);
|
|
8368
8368
|
};
|
|
@@ -8380,7 +8380,7 @@ function Ew() {
|
|
|
8380
8380
|
/* harmony export */
|
|
8381
8381
|
sanitizeUrl: () => (
|
|
8382
8382
|
/* binding */
|
|
8383
|
-
|
|
8383
|
+
j
|
|
8384
8384
|
)
|
|
8385
8385
|
/* harmony export */
|
|
8386
8386
|
});
|
|
@@ -8388,16 +8388,16 @@ function Ew() {
|
|
|
8388
8388
|
function L(M) {
|
|
8389
8389
|
return y.indexOf(M[0]) > -1;
|
|
8390
8390
|
}
|
|
8391
|
-
function
|
|
8391
|
+
function R(M) {
|
|
8392
8392
|
var Y = M.replace(v, "");
|
|
8393
|
-
return Y.replace(h, function(K,
|
|
8394
|
-
return String.fromCharCode(
|
|
8393
|
+
return Y.replace(h, function(K, U) {
|
|
8394
|
+
return String.fromCharCode(U);
|
|
8395
8395
|
});
|
|
8396
8396
|
}
|
|
8397
|
-
function
|
|
8397
|
+
function j(M) {
|
|
8398
8398
|
if (!M)
|
|
8399
8399
|
return C;
|
|
8400
|
-
var Y =
|
|
8400
|
+
var Y = R(M).replace(p, "").replace(v, "").trim();
|
|
8401
8401
|
if (!Y)
|
|
8402
8402
|
return C;
|
|
8403
8403
|
if (L(Y))
|
|
@@ -8405,8 +8405,8 @@ function Ew() {
|
|
|
8405
8405
|
var K = Y.match(m);
|
|
8406
8406
|
if (!K)
|
|
8407
8407
|
return Y;
|
|
8408
|
-
var
|
|
8409
|
-
return u.test(
|
|
8408
|
+
var U = K[0];
|
|
8409
|
+
return u.test(U) ? C : Y;
|
|
8410
8410
|
}
|
|
8411
8411
|
}),
|
|
8412
8412
|
/* 8 */
|
|
@@ -8431,7 +8431,7 @@ function Ew() {
|
|
|
8431
8431
|
/* harmony export */
|
|
8432
8432
|
FileAssetWrapper: () => (
|
|
8433
8433
|
/* binding */
|
|
8434
|
-
|
|
8434
|
+
R
|
|
8435
8435
|
),
|
|
8436
8436
|
/* harmony export */
|
|
8437
8437
|
FileFinalizer: () => (
|
|
@@ -8451,7 +8451,7 @@ function Ew() {
|
|
|
8451
8451
|
/* harmony export */
|
|
8452
8452
|
ImageAssetWrapper: () => (
|
|
8453
8453
|
/* binding */
|
|
8454
|
-
|
|
8454
|
+
j
|
|
8455
8455
|
),
|
|
8456
8456
|
/* harmony export */
|
|
8457
8457
|
ImageWrapper: () => (
|
|
@@ -8471,27 +8471,27 @@ function Ew() {
|
|
|
8471
8471
|
/* harmony export */
|
|
8472
8472
|
});
|
|
8473
8473
|
var u = /* @__PURE__ */ (function() {
|
|
8474
|
-
var H = function(
|
|
8474
|
+
var H = function(T, A) {
|
|
8475
8475
|
return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, q) {
|
|
8476
8476
|
F.__proto__ = q;
|
|
8477
8477
|
} || function(F, q) {
|
|
8478
8478
|
for (var I in q) Object.prototype.hasOwnProperty.call(q, I) && (F[I] = q[I]);
|
|
8479
|
-
}, H(
|
|
8479
|
+
}, H(T, A);
|
|
8480
8480
|
};
|
|
8481
|
-
return function(
|
|
8481
|
+
return function(T, A) {
|
|
8482
8482
|
if (typeof A != "function" && A !== null)
|
|
8483
8483
|
throw new TypeError("Class extends value " + String(A) + " is not a constructor or null");
|
|
8484
|
-
H(
|
|
8484
|
+
H(T, A);
|
|
8485
8485
|
function F() {
|
|
8486
|
-
this.constructor =
|
|
8486
|
+
this.constructor = T;
|
|
8487
8487
|
}
|
|
8488
|
-
|
|
8488
|
+
T.prototype = A === null ? Object.create(A) : (F.prototype = A.prototype, new F());
|
|
8489
8489
|
};
|
|
8490
8490
|
})(), h = (
|
|
8491
8491
|
/** @class */
|
|
8492
8492
|
(function() {
|
|
8493
|
-
function H(
|
|
8494
|
-
this.selfUnref = !1, this._file =
|
|
8493
|
+
function H(T) {
|
|
8494
|
+
this.selfUnref = !1, this._file = T;
|
|
8495
8495
|
}
|
|
8496
8496
|
return H.prototype.unref = function() {
|
|
8497
8497
|
this._file && this._file.unref();
|
|
@@ -8500,8 +8500,8 @@ function Ew() {
|
|
|
8500
8500
|
), p = (
|
|
8501
8501
|
/** @class */
|
|
8502
8502
|
(function() {
|
|
8503
|
-
function H(
|
|
8504
|
-
this._finalizableObject =
|
|
8503
|
+
function H(T) {
|
|
8504
|
+
this._finalizableObject = T;
|
|
8505
8505
|
}
|
|
8506
8506
|
return H.prototype.unref = function() {
|
|
8507
8507
|
this._finalizableObject.unref();
|
|
@@ -8519,78 +8519,78 @@ function Ew() {
|
|
|
8519
8519
|
), m = (
|
|
8520
8520
|
/** @class */
|
|
8521
8521
|
(function(H) {
|
|
8522
|
-
u(
|
|
8523
|
-
function
|
|
8522
|
+
u(T, H);
|
|
8523
|
+
function T(A) {
|
|
8524
8524
|
var F = H.call(this) || this;
|
|
8525
8525
|
return F._nativeImage = A, F;
|
|
8526
8526
|
}
|
|
8527
|
-
return Object.defineProperty(
|
|
8527
|
+
return Object.defineProperty(T.prototype, "nativeImage", {
|
|
8528
8528
|
get: function() {
|
|
8529
8529
|
return this._nativeImage;
|
|
8530
8530
|
},
|
|
8531
8531
|
enumerable: !1,
|
|
8532
8532
|
configurable: !0
|
|
8533
|
-
}),
|
|
8533
|
+
}), T.prototype.unref = function() {
|
|
8534
8534
|
this.selfUnref && this._nativeImage.unref();
|
|
8535
|
-
},
|
|
8535
|
+
}, T;
|
|
8536
8536
|
})(v)
|
|
8537
8537
|
), y = (
|
|
8538
8538
|
/** @class */
|
|
8539
8539
|
(function(H) {
|
|
8540
|
-
u(
|
|
8541
|
-
function
|
|
8540
|
+
u(T, H);
|
|
8541
|
+
function T(A) {
|
|
8542
8542
|
var F = H.call(this) || this;
|
|
8543
8543
|
return F._nativeAudio = A, F;
|
|
8544
8544
|
}
|
|
8545
|
-
return Object.defineProperty(
|
|
8545
|
+
return Object.defineProperty(T.prototype, "nativeAudio", {
|
|
8546
8546
|
get: function() {
|
|
8547
8547
|
return this._nativeAudio;
|
|
8548
8548
|
},
|
|
8549
8549
|
enumerable: !1,
|
|
8550
8550
|
configurable: !0
|
|
8551
|
-
}),
|
|
8551
|
+
}), T.prototype.unref = function() {
|
|
8552
8552
|
this.selfUnref && this._nativeAudio.unref();
|
|
8553
|
-
},
|
|
8553
|
+
}, T;
|
|
8554
8554
|
})(v)
|
|
8555
8555
|
), C = (
|
|
8556
8556
|
/** @class */
|
|
8557
8557
|
(function(H) {
|
|
8558
|
-
u(
|
|
8559
|
-
function
|
|
8558
|
+
u(T, H);
|
|
8559
|
+
function T(A) {
|
|
8560
8560
|
var F = H.call(this) || this;
|
|
8561
8561
|
return F._nativeFont = A, F;
|
|
8562
8562
|
}
|
|
8563
|
-
return Object.defineProperty(
|
|
8563
|
+
return Object.defineProperty(T.prototype, "nativeFont", {
|
|
8564
8564
|
get: function() {
|
|
8565
8565
|
return this._nativeFont;
|
|
8566
8566
|
},
|
|
8567
8567
|
enumerable: !1,
|
|
8568
8568
|
configurable: !0
|
|
8569
|
-
}),
|
|
8569
|
+
}), T.prototype.unref = function() {
|
|
8570
8570
|
this.selfUnref && this._nativeFont.unref();
|
|
8571
|
-
},
|
|
8571
|
+
}, T;
|
|
8572
8572
|
})(v)
|
|
8573
8573
|
), L = (
|
|
8574
8574
|
/** @class */
|
|
8575
8575
|
(function() {
|
|
8576
|
-
function H(
|
|
8577
|
-
this._assetLoaderCallback = A, this.assetLoader = new
|
|
8576
|
+
function H(T, A) {
|
|
8577
|
+
this._assetLoaderCallback = A, this.assetLoader = new T.CustomFileAssetLoader({
|
|
8578
8578
|
loadContents: this.loadContents.bind(this)
|
|
8579
8579
|
});
|
|
8580
8580
|
}
|
|
8581
|
-
return H.prototype.loadContents = function(
|
|
8581
|
+
return H.prototype.loadContents = function(T, A) {
|
|
8582
8582
|
var F;
|
|
8583
|
-
return
|
|
8583
|
+
return T.isImage ? F = new j(T) : T.isAudio ? F = new M(T) : T.isFont && (F = new Y(T)), this._assetLoaderCallback(F, A);
|
|
8584
8584
|
}, H;
|
|
8585
8585
|
})()
|
|
8586
|
-
),
|
|
8586
|
+
), R = (
|
|
8587
8587
|
/** @class */
|
|
8588
8588
|
(function() {
|
|
8589
|
-
function H(
|
|
8590
|
-
this._nativeFileAsset =
|
|
8589
|
+
function H(T) {
|
|
8590
|
+
this._nativeFileAsset = T;
|
|
8591
8591
|
}
|
|
8592
|
-
return H.prototype.decode = function(
|
|
8593
|
-
this._nativeFileAsset.decode(
|
|
8592
|
+
return H.prototype.decode = function(T) {
|
|
8593
|
+
this._nativeFileAsset.decode(T);
|
|
8594
8594
|
}, Object.defineProperty(H.prototype, "name", {
|
|
8595
8595
|
get: function() {
|
|
8596
8596
|
return this._nativeFileAsset.name;
|
|
@@ -8641,53 +8641,53 @@ function Ew() {
|
|
|
8641
8641
|
configurable: !0
|
|
8642
8642
|
}), H;
|
|
8643
8643
|
})()
|
|
8644
|
-
),
|
|
8644
|
+
), j = (
|
|
8645
8645
|
/** @class */
|
|
8646
8646
|
(function(H) {
|
|
8647
|
-
u(
|
|
8648
|
-
function
|
|
8647
|
+
u(T, H);
|
|
8648
|
+
function T() {
|
|
8649
8649
|
return H !== null && H.apply(this, arguments) || this;
|
|
8650
8650
|
}
|
|
8651
|
-
return
|
|
8651
|
+
return T.prototype.setRenderImage = function(A) {
|
|
8652
8652
|
this._nativeFileAsset.setRenderImage(A.nativeImage);
|
|
8653
|
-
},
|
|
8654
|
-
})(
|
|
8653
|
+
}, T;
|
|
8654
|
+
})(R)
|
|
8655
8655
|
), M = (
|
|
8656
8656
|
/** @class */
|
|
8657
8657
|
(function(H) {
|
|
8658
|
-
u(
|
|
8659
|
-
function
|
|
8658
|
+
u(T, H);
|
|
8659
|
+
function T() {
|
|
8660
8660
|
return H !== null && H.apply(this, arguments) || this;
|
|
8661
8661
|
}
|
|
8662
|
-
return
|
|
8662
|
+
return T.prototype.setAudioSource = function(A) {
|
|
8663
8663
|
this._nativeFileAsset.setAudioSource(A.nativeAudio);
|
|
8664
|
-
},
|
|
8665
|
-
})(
|
|
8664
|
+
}, T;
|
|
8665
|
+
})(R)
|
|
8666
8666
|
), Y = (
|
|
8667
8667
|
/** @class */
|
|
8668
8668
|
(function(H) {
|
|
8669
|
-
u(
|
|
8670
|
-
function
|
|
8669
|
+
u(T, H);
|
|
8670
|
+
function T() {
|
|
8671
8671
|
return H !== null && H.apply(this, arguments) || this;
|
|
8672
8672
|
}
|
|
8673
|
-
return
|
|
8673
|
+
return T.prototype.setFont = function(A) {
|
|
8674
8674
|
this._nativeFileAsset.setFont(A.nativeFont);
|
|
8675
|
-
},
|
|
8676
|
-
})(
|
|
8675
|
+
}, T;
|
|
8676
|
+
})(R)
|
|
8677
8677
|
), K = (
|
|
8678
8678
|
/** @class */
|
|
8679
8679
|
(function() {
|
|
8680
|
-
function H(
|
|
8680
|
+
function H(T) {
|
|
8681
8681
|
}
|
|
8682
|
-
return H.prototype.register = function(
|
|
8683
|
-
|
|
8684
|
-
}, H.prototype.unregister = function(
|
|
8682
|
+
return H.prototype.register = function(T) {
|
|
8683
|
+
T.selfUnref = !0;
|
|
8684
|
+
}, H.prototype.unregister = function(T) {
|
|
8685
8685
|
}, H;
|
|
8686
8686
|
})()
|
|
8687
|
-
),
|
|
8687
|
+
), U = typeof FinalizationRegistry < "u" ? FinalizationRegistry : K, ie = new U(function(H) {
|
|
8688
8688
|
H?.unref();
|
|
8689
|
-
}), te = function(H,
|
|
8690
|
-
var A = new p(
|
|
8689
|
+
}), te = function(H, T) {
|
|
8690
|
+
var A = new p(T);
|
|
8691
8691
|
ie.register(H, A);
|
|
8692
8692
|
};
|
|
8693
8693
|
})
|
|
@@ -8720,7 +8720,7 @@ function Ew() {
|
|
|
8720
8720
|
/* harmony export */
|
|
8721
8721
|
Alignment: () => (
|
|
8722
8722
|
/* binding */
|
|
8723
|
-
|
|
8723
|
+
j
|
|
8724
8724
|
),
|
|
8725
8725
|
/* harmony export */
|
|
8726
8726
|
DataEnum: () => (
|
|
@@ -8740,7 +8740,7 @@ function Ew() {
|
|
|
8740
8740
|
/* harmony export */
|
|
8741
8741
|
Fit: () => (
|
|
8742
8742
|
/* binding */
|
|
8743
|
-
|
|
8743
|
+
R
|
|
8744
8744
|
),
|
|
8745
8745
|
/* harmony export */
|
|
8746
8746
|
Layout: () => (
|
|
@@ -8780,7 +8780,7 @@ function Ew() {
|
|
|
8780
8780
|
/* harmony export */
|
|
8781
8781
|
StateMachineInputType: () => (
|
|
8782
8782
|
/* binding */
|
|
8783
|
-
|
|
8783
|
+
U
|
|
8784
8784
|
),
|
|
8785
8785
|
/* harmony export */
|
|
8786
8786
|
Testing: () => (
|
|
@@ -8866,10 +8866,10 @@ function Ew() {
|
|
|
8866
8866
|
});
|
|
8867
8867
|
var a = i(1), s = i(2), l = i(3), u = i(5), h = /* @__PURE__ */ (function() {
|
|
8868
8868
|
var w = function(d, g) {
|
|
8869
|
-
return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S,
|
|
8870
|
-
S.__proto__ =
|
|
8871
|
-
} || function(S,
|
|
8872
|
-
for (var Z in
|
|
8869
|
+
return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, $) {
|
|
8870
|
+
S.__proto__ = $;
|
|
8871
|
+
} || function(S, $) {
|
|
8872
|
+
for (var Z in $) Object.prototype.hasOwnProperty.call($, Z) && (S[Z] = $[Z]);
|
|
8873
8873
|
}, w(d, g);
|
|
8874
8874
|
};
|
|
8875
8875
|
return function(d, g) {
|
|
@@ -8885,12 +8885,12 @@ function Ew() {
|
|
|
8885
8885
|
return p = Object.assign || function(w) {
|
|
8886
8886
|
for (var d, g = 1, S = arguments.length; g < S; g++) {
|
|
8887
8887
|
d = arguments[g];
|
|
8888
|
-
for (var
|
|
8888
|
+
for (var $ in d) Object.prototype.hasOwnProperty.call(d, $) && (w[$] = d[$]);
|
|
8889
8889
|
}
|
|
8890
8890
|
return w;
|
|
8891
8891
|
}, p.apply(this, arguments);
|
|
8892
8892
|
}, v = function(w, d, g, S) {
|
|
8893
|
-
function
|
|
8893
|
+
function $(Z) {
|
|
8894
8894
|
return Z instanceof g ? Z : new g(function(re) {
|
|
8895
8895
|
re(Z);
|
|
8896
8896
|
});
|
|
@@ -8911,7 +8911,7 @@ function Ew() {
|
|
|
8911
8911
|
}
|
|
8912
8912
|
}
|
|
8913
8913
|
function pe(Ne) {
|
|
8914
|
-
Ne.done ? Z(Ne.value) :
|
|
8914
|
+
Ne.done ? Z(Ne.value) : $(Ne.value).then(ke, Pe);
|
|
8915
8915
|
}
|
|
8916
8916
|
pe((S = S.apply(w, d || [])).next());
|
|
8917
8917
|
});
|
|
@@ -8919,7 +8919,7 @@ function Ew() {
|
|
|
8919
8919
|
var g = { label: 0, sent: function() {
|
|
8920
8920
|
if (Z[0] & 1) throw Z[1];
|
|
8921
8921
|
return Z[1];
|
|
8922
|
-
}, trys: [], ops: [] }, S,
|
|
8922
|
+
}, trys: [], ops: [] }, S, $, Z, re = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
8923
8923
|
return re.next = ke(0), re.throw = ke(1), re.return = ke(2), typeof Symbol == "function" && (re[Symbol.iterator] = function() {
|
|
8924
8924
|
return this;
|
|
8925
8925
|
}), re;
|
|
@@ -8931,8 +8931,8 @@ function Ew() {
|
|
|
8931
8931
|
function Pe(pe) {
|
|
8932
8932
|
if (S) throw new TypeError("Generator is already executing.");
|
|
8933
8933
|
for (; re && (re = 0, pe[0] && (g = 0)), g; ) try {
|
|
8934
|
-
if (S = 1,
|
|
8935
|
-
switch (
|
|
8934
|
+
if (S = 1, $ && (Z = pe[0] & 2 ? $.return : pe[0] ? $.throw || ((Z = $.return) && Z.call($), 0) : $.next) && !(Z = Z.call($, pe[1])).done) return Z;
|
|
8935
|
+
switch ($ = 0, Z && (pe = [pe[0] & 2, Z.value]), pe[0]) {
|
|
8936
8936
|
case 0:
|
|
8937
8937
|
case 1:
|
|
8938
8938
|
Z = pe;
|
|
@@ -8940,7 +8940,7 @@ function Ew() {
|
|
|
8940
8940
|
case 4:
|
|
8941
8941
|
return g.label++, { value: pe[1], done: !1 };
|
|
8942
8942
|
case 5:
|
|
8943
|
-
g.label++,
|
|
8943
|
+
g.label++, $ = pe[1], pe = [0];
|
|
8944
8944
|
continue;
|
|
8945
8945
|
case 7:
|
|
8946
8946
|
pe = g.ops.pop(), g.trys.pop();
|
|
@@ -8967,7 +8967,7 @@ function Ew() {
|
|
|
8967
8967
|
}
|
|
8968
8968
|
pe = d.call(w, g);
|
|
8969
8969
|
} catch (Ne) {
|
|
8970
|
-
pe = [6, Ne],
|
|
8970
|
+
pe = [6, Ne], $ = 0;
|
|
8971
8971
|
} finally {
|
|
8972
8972
|
S = Z = 0;
|
|
8973
8973
|
}
|
|
@@ -8975,7 +8975,7 @@ function Ew() {
|
|
|
8975
8975
|
return { value: pe[0] ? pe[1] : void 0, done: !0 };
|
|
8976
8976
|
}
|
|
8977
8977
|
}, y = function(w, d, g) {
|
|
8978
|
-
if (g || arguments.length === 2) for (var S = 0,
|
|
8978
|
+
if (g || arguments.length === 2) for (var S = 0, $ = d.length, Z; S < $; S++)
|
|
8979
8979
|
(Z || !(S in d)) && (Z || (Z = Array.prototype.slice.call(d, 0, S)), Z[S] = d[S]);
|
|
8980
8980
|
return w.concat(Z || Array.prototype.slice.call(d));
|
|
8981
8981
|
}, C = (
|
|
@@ -8990,14 +8990,14 @@ function Ew() {
|
|
|
8990
8990
|
})(Error)
|
|
8991
8991
|
), L = function(w) {
|
|
8992
8992
|
return w && w.isHandledError ? w.message : "Problem loading file; may be corrupt!";
|
|
8993
|
-
},
|
|
8993
|
+
}, R;
|
|
8994
8994
|
(function(w) {
|
|
8995
8995
|
w.Cover = "cover", w.Contain = "contain", w.Fill = "fill", w.FitWidth = "fitWidth", w.FitHeight = "fitHeight", w.None = "none", w.ScaleDown = "scaleDown", w.Layout = "layout";
|
|
8996
|
-
})(
|
|
8997
|
-
var
|
|
8996
|
+
})(R || (R = {}));
|
|
8997
|
+
var j;
|
|
8998
8998
|
(function(w) {
|
|
8999
8999
|
w.Center = "center", w.TopLeft = "topLeft", w.TopCenter = "topCenter", w.TopRight = "topRight", w.CenterLeft = "centerLeft", w.CenterRight = "centerRight", w.BottomLeft = "bottomLeft", w.BottomCenter = "bottomCenter", w.BottomRight = "bottomRight";
|
|
9000
|
-
})(
|
|
9000
|
+
})(j || (j = {}));
|
|
9001
9001
|
var M;
|
|
9002
9002
|
(function(w) {
|
|
9003
9003
|
w.AlwaysDraw = "alwaysDraw", w.DrawOnChanged = "drawOnChanged";
|
|
@@ -9006,18 +9006,18 @@ function Ew() {
|
|
|
9006
9006
|
/** @class */
|
|
9007
9007
|
(function() {
|
|
9008
9008
|
function w(d) {
|
|
9009
|
-
var g, S,
|
|
9010
|
-
this.fit = (g = d?.fit) !== null && g !== void 0 ? g :
|
|
9009
|
+
var g, S, $, Z, re, ke, Pe;
|
|
9010
|
+
this.fit = (g = d?.fit) !== null && g !== void 0 ? g : R.Contain, this.alignment = (S = d?.alignment) !== null && S !== void 0 ? S : j.Center, this.layoutScaleFactor = ($ = d?.layoutScaleFactor) !== null && $ !== void 0 ? $ : 1, this.minX = (Z = d?.minX) !== null && Z !== void 0 ? Z : 0, this.minY = (re = d?.minY) !== null && re !== void 0 ? re : 0, this.maxX = (ke = d?.maxX) !== null && ke !== void 0 ? ke : 0, this.maxY = (Pe = d?.maxY) !== null && Pe !== void 0 ? Pe : 0;
|
|
9011
9011
|
}
|
|
9012
9012
|
return w.new = function(d) {
|
|
9013
|
-
var g = d.fit, S = d.alignment,
|
|
9014
|
-
return console.warn("This function is deprecated: please use `new Layout({})` instead"), new w({ fit: g, alignment: S, minX:
|
|
9013
|
+
var g = d.fit, S = d.alignment, $ = d.minX, Z = d.minY, re = d.maxX, ke = d.maxY;
|
|
9014
|
+
return console.warn("This function is deprecated: please use `new Layout({})` instead"), new w({ fit: g, alignment: S, minX: $, minY: Z, maxX: re, maxY: ke });
|
|
9015
9015
|
}, w.prototype.copyWith = function(d) {
|
|
9016
|
-
var g = d.fit, S = d.alignment,
|
|
9016
|
+
var g = d.fit, S = d.alignment, $ = d.layoutScaleFactor, Z = d.minX, re = d.minY, ke = d.maxX, Pe = d.maxY;
|
|
9017
9017
|
return new w({
|
|
9018
9018
|
fit: g ?? this.fit,
|
|
9019
9019
|
alignment: S ?? this.alignment,
|
|
9020
|
-
layoutScaleFactor:
|
|
9020
|
+
layoutScaleFactor: $ ?? this.layoutScaleFactor,
|
|
9021
9021
|
minX: Z ?? this.minX,
|
|
9022
9022
|
minY: re ?? this.minY,
|
|
9023
9023
|
maxX: ke ?? this.maxX,
|
|
@@ -9027,12 +9027,12 @@ function Ew() {
|
|
|
9027
9027
|
if (this.cachedRuntimeFit)
|
|
9028
9028
|
return this.cachedRuntimeFit;
|
|
9029
9029
|
var g;
|
|
9030
|
-
return this.fit ===
|
|
9030
|
+
return this.fit === R.Cover ? g = d.Fit.cover : this.fit === R.Contain ? g = d.Fit.contain : this.fit === R.Fill ? g = d.Fit.fill : this.fit === R.FitWidth ? g = d.Fit.fitWidth : this.fit === R.FitHeight ? g = d.Fit.fitHeight : this.fit === R.ScaleDown ? g = d.Fit.scaleDown : this.fit === R.Layout ? g = d.Fit.layout : g = d.Fit.none, this.cachedRuntimeFit = g, g;
|
|
9031
9031
|
}, w.prototype.runtimeAlignment = function(d) {
|
|
9032
9032
|
if (this.cachedRuntimeAlignment)
|
|
9033
9033
|
return this.cachedRuntimeAlignment;
|
|
9034
9034
|
var g;
|
|
9035
|
-
return this.alignment ===
|
|
9035
|
+
return this.alignment === j.TopLeft ? g = d.Alignment.topLeft : this.alignment === j.TopCenter ? g = d.Alignment.topCenter : this.alignment === j.TopRight ? g = d.Alignment.topRight : this.alignment === j.CenterLeft ? g = d.Alignment.centerLeft : this.alignment === j.CenterRight ? g = d.Alignment.centerRight : this.alignment === j.BottomLeft ? g = d.Alignment.bottomLeft : this.alignment === j.BottomCenter ? g = d.Alignment.bottomCenter : this.alignment === j.BottomRight ? g = d.Alignment.bottomRight : g = d.Alignment.center, this.cachedRuntimeAlignment = g, g;
|
|
9036
9036
|
}, w;
|
|
9037
9037
|
})()
|
|
9038
9038
|
), K = (
|
|
@@ -9063,7 +9063,7 @@ function Ew() {
|
|
|
9063
9063
|
if (w.wasmURL.toLowerCase() !== S)
|
|
9064
9064
|
console.warn("Failed to load WASM from ".concat(w.wasmURL, " (").concat(g.message, "), trying jsdelivr as a backup")), w.setWasmUrl(S), w.loadRuntime();
|
|
9065
9065
|
else {
|
|
9066
|
-
var
|
|
9066
|
+
var $ = [
|
|
9067
9067
|
"Could not load Rive WASM file from ".concat(w.wasmURL, " or ").concat(S, "."),
|
|
9068
9068
|
"Possible reasons:",
|
|
9069
9069
|
"- Network connection is down",
|
|
@@ -9081,7 +9081,7 @@ To resolve, you may need to:`,
|
|
|
9081
9081
|
"3. Call RuntimeLoader.loadRuntime() again"
|
|
9082
9082
|
].join(`
|
|
9083
9083
|
`);
|
|
9084
|
-
console.error(
|
|
9084
|
+
console.error($);
|
|
9085
9085
|
}
|
|
9086
9086
|
});
|
|
9087
9087
|
}, w.getInstance = function(d) {
|
|
@@ -9098,10 +9098,10 @@ To resolve, you may need to:`,
|
|
|
9098
9098
|
return w.wasmURL;
|
|
9099
9099
|
}, w.isLoading = !1, w.callBackQueue = [], w.wasmURL = "https://unpkg.com/".concat(s.name, "@").concat(s.version, "/rive.wasm"), w;
|
|
9100
9100
|
})()
|
|
9101
|
-
),
|
|
9101
|
+
), U;
|
|
9102
9102
|
(function(w) {
|
|
9103
9103
|
w[w.Number = 56] = "Number", w[w.Trigger = 58] = "Trigger", w[w.Boolean = 59] = "Boolean";
|
|
9104
|
-
})(
|
|
9104
|
+
})(U || (U = {}));
|
|
9105
9105
|
var ie = (
|
|
9106
9106
|
/** @class */
|
|
9107
9107
|
(function() {
|
|
@@ -9133,7 +9133,7 @@ To resolve, you may need to:`,
|
|
|
9133
9133
|
enumerable: !1,
|
|
9134
9134
|
configurable: !0
|
|
9135
9135
|
}), w.prototype.fire = function() {
|
|
9136
|
-
this.type ===
|
|
9136
|
+
this.type === U.Trigger && this.runtimeInput.fire();
|
|
9137
9137
|
}, w.prototype.delete = function() {
|
|
9138
9138
|
this.runtimeInput = null;
|
|
9139
9139
|
}, w;
|
|
@@ -9150,13 +9150,13 @@ To resolve, you may need to:`,
|
|
|
9150
9150
|
}
|
|
9151
9151
|
return w;
|
|
9152
9152
|
})()
|
|
9153
|
-
),
|
|
9153
|
+
), T = (
|
|
9154
9154
|
/** @class */
|
|
9155
9155
|
(function(w) {
|
|
9156
9156
|
h(d, w);
|
|
9157
9157
|
function d(g, S) {
|
|
9158
|
-
var
|
|
9159
|
-
return
|
|
9158
|
+
var $ = w.call(this, !1) || this;
|
|
9159
|
+
return $.nativeArtboard = g, $.file = S, $;
|
|
9160
9160
|
}
|
|
9161
9161
|
return d;
|
|
9162
9162
|
})(H)
|
|
@@ -9182,8 +9182,8 @@ To resolve, you may need to:`,
|
|
|
9182
9182
|
), F = (
|
|
9183
9183
|
/** @class */
|
|
9184
9184
|
(function() {
|
|
9185
|
-
function w(d, g, S,
|
|
9186
|
-
this.stateMachine = d, this.playing = S, this.artboard =
|
|
9185
|
+
function w(d, g, S, $) {
|
|
9186
|
+
this.stateMachine = d, this.playing = S, this.artboard = $, this.inputs = [], this.instance = new g.StateMachineInstance(d, $), this.initInputs(g);
|
|
9187
9187
|
}
|
|
9188
9188
|
return Object.defineProperty(w.prototype, "name", {
|
|
9189
9189
|
get: function() {
|
|
@@ -9217,11 +9217,11 @@ To resolve, you may need to:`,
|
|
|
9217
9217
|
}
|
|
9218
9218
|
}, w.prototype.mapRuntimeInput = function(d, g) {
|
|
9219
9219
|
if (d.type === g.SMIInput.bool)
|
|
9220
|
-
return new ie(
|
|
9220
|
+
return new ie(U.Boolean, d.asBool());
|
|
9221
9221
|
if (d.type === g.SMIInput.number)
|
|
9222
|
-
return new ie(
|
|
9222
|
+
return new ie(U.Number, d.asNumber());
|
|
9223
9223
|
if (d.type === g.SMIInput.trigger)
|
|
9224
|
-
return new ie(
|
|
9224
|
+
return new ie(U.Trigger, d.asTrigger());
|
|
9225
9225
|
}, w.prototype.cleanup = function() {
|
|
9226
9226
|
this.inputs.forEach(function(d) {
|
|
9227
9227
|
d.delete();
|
|
@@ -9233,8 +9233,8 @@ To resolve, you may need to:`,
|
|
|
9233
9233
|
), q = (
|
|
9234
9234
|
/** @class */
|
|
9235
9235
|
(function() {
|
|
9236
|
-
function w(d, g, S,
|
|
9237
|
-
|
|
9236
|
+
function w(d, g, S, $, Z) {
|
|
9237
|
+
$ === void 0 && ($ = []), Z === void 0 && (Z = []), this.runtime = d, this.artboard = g, this.eventManager = S, this.animations = $, this.stateMachines = Z;
|
|
9238
9238
|
}
|
|
9239
9239
|
return w.prototype.add = function(d, g, S) {
|
|
9240
9240
|
if (S === void 0 && (S = !0), d = Ot(d), d.length === 0)
|
|
@@ -9244,12 +9244,12 @@ To resolve, you may need to:`,
|
|
|
9244
9244
|
return gt.playing = g;
|
|
9245
9245
|
});
|
|
9246
9246
|
else
|
|
9247
|
-
for (var
|
|
9247
|
+
for (var $ = this.animations.map(function(gt) {
|
|
9248
9248
|
return gt.name;
|
|
9249
9249
|
}), Z = this.stateMachines.map(function(gt) {
|
|
9250
9250
|
return gt.name;
|
|
9251
9251
|
}), re = 0; re < d.length; re++) {
|
|
9252
|
-
var ke =
|
|
9252
|
+
var ke = $.indexOf(d[re]), Pe = Z.indexOf(d[re]);
|
|
9253
9253
|
if (ke >= 0 || Pe >= 0)
|
|
9254
9254
|
ke >= 0 ? this.animations[ke].playing = g : this.stateMachines[Pe].playing = g;
|
|
9255
9255
|
else {
|
|
@@ -9276,33 +9276,33 @@ To resolve, you may need to:`,
|
|
|
9276
9276
|
}, w.prototype.initLinearAnimations = function(d, g) {
|
|
9277
9277
|
for (var S = this.animations.map(function(Pe) {
|
|
9278
9278
|
return Pe.name;
|
|
9279
|
-
}),
|
|
9280
|
-
var Z = S.indexOf(d[
|
|
9279
|
+
}), $ = 0; $ < d.length; $++) {
|
|
9280
|
+
var Z = S.indexOf(d[$]);
|
|
9281
9281
|
if (Z >= 0)
|
|
9282
9282
|
this.animations[Z].playing = g;
|
|
9283
9283
|
else {
|
|
9284
|
-
var re = this.artboard.animationByName(d[
|
|
9284
|
+
var re = this.artboard.animationByName(d[$]);
|
|
9285
9285
|
if (re) {
|
|
9286
9286
|
var ke = new l.Animation(re, this.artboard, this.runtime, g);
|
|
9287
9287
|
ke.advance(0), ke.apply(1), this.animations.push(ke);
|
|
9288
9288
|
} else
|
|
9289
|
-
console.error("Animation with name ".concat(d[
|
|
9289
|
+
console.error("Animation with name ".concat(d[$], " not found."));
|
|
9290
9290
|
}
|
|
9291
9291
|
}
|
|
9292
9292
|
}, w.prototype.initStateMachines = function(d, g) {
|
|
9293
9293
|
for (var S = this.stateMachines.map(function(Pe) {
|
|
9294
9294
|
return Pe.name;
|
|
9295
|
-
}),
|
|
9296
|
-
var Z = S.indexOf(d[
|
|
9295
|
+
}), $ = 0; $ < d.length; $++) {
|
|
9296
|
+
var Z = S.indexOf(d[$]);
|
|
9297
9297
|
if (Z >= 0)
|
|
9298
9298
|
this.stateMachines[Z].playing = g;
|
|
9299
9299
|
else {
|
|
9300
|
-
var re = this.artboard.stateMachineByName(d[
|
|
9300
|
+
var re = this.artboard.stateMachineByName(d[$]);
|
|
9301
9301
|
if (re) {
|
|
9302
9302
|
var ke = new F(re, this.runtime, g, this.artboard);
|
|
9303
9303
|
this.stateMachines.push(ke);
|
|
9304
9304
|
} else
|
|
9305
|
-
console.warn("State Machine with name ".concat(d[
|
|
9305
|
+
console.warn("State Machine with name ".concat(d[$], " not found.")), this.initLinearAnimations([d[$]], g);
|
|
9306
9306
|
}
|
|
9307
9307
|
}
|
|
9308
9308
|
}, w.prototype.play = function(d) {
|
|
@@ -9314,13 +9314,13 @@ To resolve, you may need to:`,
|
|
|
9314
9314
|
}, w.prototype.pause = function(d) {
|
|
9315
9315
|
return this.add(d, !1);
|
|
9316
9316
|
}, w.prototype.scrub = function(d, g) {
|
|
9317
|
-
var S = this.animations.filter(function(
|
|
9318
|
-
return d.includes(
|
|
9317
|
+
var S = this.animations.filter(function($) {
|
|
9318
|
+
return d.includes($.name);
|
|
9319
9319
|
});
|
|
9320
|
-
return S.forEach(function(
|
|
9321
|
-
return
|
|
9322
|
-
}), S.map(function(
|
|
9323
|
-
return
|
|
9320
|
+
return S.forEach(function($) {
|
|
9321
|
+
return $.scrubTo = g;
|
|
9322
|
+
}), S.map(function($) {
|
|
9323
|
+
return $.name;
|
|
9324
9324
|
});
|
|
9325
9325
|
}, Object.defineProperty(w.prototype, "playing", {
|
|
9326
9326
|
/**
|
|
@@ -9373,10 +9373,10 @@ To resolve, you may need to:`,
|
|
|
9373
9373
|
return re.cleanup();
|
|
9374
9374
|
}), this.animations.splice(0, this.animations.length), this.stateMachines.splice(0, this.stateMachines.length);
|
|
9375
9375
|
else {
|
|
9376
|
-
var
|
|
9376
|
+
var $ = this.animations.filter(function(re) {
|
|
9377
9377
|
return d.includes(re.name);
|
|
9378
9378
|
});
|
|
9379
|
-
|
|
9379
|
+
$.forEach(function(re) {
|
|
9380
9380
|
re.cleanup(), g.animations.splice(g.animations.indexOf(re), 1);
|
|
9381
9381
|
});
|
|
9382
9382
|
var Z = this.stateMachines.filter(function(re) {
|
|
@@ -9384,7 +9384,7 @@ To resolve, you may need to:`,
|
|
|
9384
9384
|
});
|
|
9385
9385
|
Z.forEach(function(re) {
|
|
9386
9386
|
re.cleanup(), g.stateMachines.splice(g.stateMachines.indexOf(re), 1);
|
|
9387
|
-
}), S =
|
|
9387
|
+
}), S = $.map(function(re) {
|
|
9388
9388
|
return re.name;
|
|
9389
9389
|
}).concat(Z.map(function(re) {
|
|
9390
9390
|
return re.name;
|
|
@@ -9430,8 +9430,8 @@ To resolve, you may need to:`,
|
|
|
9430
9430
|
var S;
|
|
9431
9431
|
return this.animations.length === 0 && this.stateMachines.length === 0 && (this.artboard.animationCount() > 0 ? this.add([S = this.artboard.animationByIndex(0).name], d, g) : this.artboard.stateMachineCount() > 0 && this.add([S = this.artboard.stateMachineByIndex(0).name], d, g)), S;
|
|
9432
9432
|
}, w.prototype.handleLooping = function() {
|
|
9433
|
-
for (var d = 0, g = this.animations.filter(function(
|
|
9434
|
-
return
|
|
9433
|
+
for (var d = 0, g = this.animations.filter(function($) {
|
|
9434
|
+
return $.playing;
|
|
9435
9435
|
}); d < g.length; d++) {
|
|
9436
9436
|
var S = g[d];
|
|
9437
9437
|
S.loopValue === 0 && S.loopCount ? (S.loopCount = 0, this.stop(S.name)) : S.loopValue === 1 && S.loopCount ? (this.eventManager.fire({
|
|
@@ -9446,8 +9446,8 @@ To resolve, you may need to:`,
|
|
|
9446
9446
|
for (var d = [], g = 0, S = this.stateMachines.filter(function(Z) {
|
|
9447
9447
|
return Z.playing;
|
|
9448
9448
|
}); g < S.length; g++) {
|
|
9449
|
-
var
|
|
9450
|
-
d.push.apply(d,
|
|
9449
|
+
var $ = S[g];
|
|
9450
|
+
d.push.apply(d, $.statesChanged);
|
|
9451
9451
|
}
|
|
9452
9452
|
d.length > 0 && this.eventManager.fire({
|
|
9453
9453
|
type: I.StateChange,
|
|
@@ -9532,16 +9532,16 @@ To resolve, you may need to:`,
|
|
|
9532
9532
|
return d.prototype.delay = function(g) {
|
|
9533
9533
|
return v(this, void 0, void 0, function() {
|
|
9534
9534
|
return m(this, function(S) {
|
|
9535
|
-
return [2, new Promise(function(
|
|
9536
|
-
return setTimeout(
|
|
9535
|
+
return [2, new Promise(function($) {
|
|
9536
|
+
return setTimeout($, g);
|
|
9537
9537
|
})];
|
|
9538
9538
|
});
|
|
9539
9539
|
});
|
|
9540
9540
|
}, d.prototype.timeout = function() {
|
|
9541
9541
|
return v(this, void 0, void 0, function() {
|
|
9542
9542
|
return m(this, function(g) {
|
|
9543
|
-
return [2, new Promise(function(S,
|
|
9544
|
-
return setTimeout(
|
|
9543
|
+
return [2, new Promise(function(S, $) {
|
|
9544
|
+
return setTimeout($, 50);
|
|
9545
9545
|
})];
|
|
9546
9546
|
});
|
|
9547
9547
|
});
|
|
@@ -9602,7 +9602,7 @@ To resolve, you may need to:`,
|
|
|
9602
9602
|
}, d.prototype.listenForUserAction = function() {
|
|
9603
9603
|
var g = this, S = function() {
|
|
9604
9604
|
return v(g, void 0, void 0, function() {
|
|
9605
|
-
return m(this, function(
|
|
9605
|
+
return m(this, function($) {
|
|
9606
9606
|
return this.enableAudio(), [
|
|
9607
9607
|
2
|
|
9608
9608
|
/*return*/
|
|
@@ -9683,7 +9683,7 @@ To resolve, you may need to:`,
|
|
|
9683
9683
|
});
|
|
9684
9684
|
}, w.prototype.initData = function() {
|
|
9685
9685
|
return v(this, void 0, void 0, function() {
|
|
9686
|
-
var d, g, S,
|
|
9686
|
+
var d, g, S, $, Z;
|
|
9687
9687
|
return m(this, function(re) {
|
|
9688
9688
|
switch (re.label) {
|
|
9689
9689
|
case 0:
|
|
@@ -9694,9 +9694,9 @@ To resolve, you may need to:`,
|
|
|
9694
9694
|
return this.destroyed ? [
|
|
9695
9695
|
2
|
|
9696
9696
|
/*return*/
|
|
9697
|
-
] : (this.assetLoader && (S = new u.CustomFileAssetLoaderWrapper(this.runtime, this.assetLoader), g = S.assetLoader),
|
|
9697
|
+
] : (this.assetLoader && (S = new u.CustomFileAssetLoaderWrapper(this.runtime, this.assetLoader), g = S.assetLoader), $ = this, [4, this.runtime.load(new Uint8Array(this.buffer), g, this.enableRiveAssetCDN)]);
|
|
9698
9698
|
case 3:
|
|
9699
|
-
return
|
|
9699
|
+
return $.file = re.sent(), Z = new u.FileFinalizer(this.file), u.finalizationRegistry.register(this, Z), this.destroyed ? (this.releaseFile(), [
|
|
9700
9700
|
2
|
|
9701
9701
|
/*return*/
|
|
9702
9702
|
]) : (this.file !== null ? this.eventManager.fire({
|
|
@@ -9773,7 +9773,7 @@ To resolve, you may need to:`,
|
|
|
9773
9773
|
}, w.prototype.getArtboard = function(d) {
|
|
9774
9774
|
var g = this.file.artboardByName(d);
|
|
9775
9775
|
if (g != null)
|
|
9776
|
-
return new
|
|
9776
|
+
return new T(g, this);
|
|
9777
9777
|
}, w.prototype.getBindableArtboard = function(d) {
|
|
9778
9778
|
var g = this.file.bindableArtboardByName(d);
|
|
9779
9779
|
return this.createBindableArtboard(g);
|
|
@@ -9792,11 +9792,11 @@ To resolve, you may need to:`,
|
|
|
9792
9792
|
/** @class */
|
|
9793
9793
|
(function() {
|
|
9794
9794
|
function w(d) {
|
|
9795
|
-
var g = this, S,
|
|
9795
|
+
var g = this, S, $;
|
|
9796
9796
|
this.loaded = !1, this.destroyed = !1, this._observed = null, this.readyForPlaying = !1, this.artboard = null, this.eventCleanup = null, this.shouldDisableRiveListeners = !1, this.automaticallyHandleEvents = !1, this.dispatchPointerExit = !0, this.enableMultiTouch = !1, this.enableRiveAssetCDN = !0, this._volume = 1, this._artboardWidth = void 0, this._artboardHeight = void 0, this._devicePixelRatioUsed = 1, this._hasZeroSize = !1, this._needsRedraw = !1, this._currentCanvasWidth = 0, this._currentCanvasHeight = 0, this._audioEventListener = null, this._boundDraw = null, this._viewModelInstance = null, this._dataEnums = null, this.drawOptimization = M.DrawOnChanged, this.durations = [], this.frameTimes = [], this.frameCount = 0, this.isTouchScrollEnabled = !1, this.onCanvasResize = function(Z) {
|
|
9797
9797
|
var re = g._hasZeroSize !== Z;
|
|
9798
9798
|
g._hasZeroSize = Z, Z ? (!g._layout.maxX || !g._layout.maxY) && g.resizeToCanvas() : re && g.resizeDrawingSurfaceToCanvas();
|
|
9799
|
-
}, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = d.canvas, d.canvas.constructor === HTMLCanvasElement && (this._observed = oe.add(this.canvas, this.onCanvasResize)), this._currentCanvasWidth = this.canvas.width, this._currentCanvasHeight = this.canvas.height, this.src = d.src, this.buffer = d.buffer, this.riveFile = d.riveFile, this.layout = (S = d.layout) !== null && S !== void 0 ? S : new Y(), this.shouldDisableRiveListeners = !!d.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!d.isTouchScrollEnabled, this.automaticallyHandleEvents = !!d.automaticallyHandleEvents, this.dispatchPointerExit = d.dispatchPointerExit === !1 ? d.dispatchPointerExit : this.dispatchPointerExit, this.enableMultiTouch = !!d.enableMultiTouch, this.drawOptimization = (
|
|
9799
|
+
}, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = d.canvas, d.canvas.constructor === HTMLCanvasElement && (this._observed = oe.add(this.canvas, this.onCanvasResize)), this._currentCanvasWidth = this.canvas.width, this._currentCanvasHeight = this.canvas.height, this.src = d.src, this.buffer = d.buffer, this.riveFile = d.riveFile, this.layout = (S = d.layout) !== null && S !== void 0 ? S : new Y(), this.shouldDisableRiveListeners = !!d.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!d.isTouchScrollEnabled, this.automaticallyHandleEvents = !!d.automaticallyHandleEvents, this.dispatchPointerExit = d.dispatchPointerExit === !1 ? d.dispatchPointerExit : this.dispatchPointerExit, this.enableMultiTouch = !!d.enableMultiTouch, this.drawOptimization = ($ = d.drawingOptions) !== null && $ !== void 0 ? $ : this.drawOptimization, this.enableRiveAssetCDN = d.enableRiveAssetCDN === void 0 ? !0 : d.enableRiveAssetCDN, this.eventManager = new W(), d.onLoad && this.on(I.Load, d.onLoad), d.onLoadError && this.on(I.LoadError, d.onLoadError), d.onPlay && this.on(I.Play, d.onPlay), d.onPause && this.on(I.Pause, d.onPause), d.onStop && this.on(I.Stop, d.onStop), d.onLoop && this.on(I.Loop, d.onLoop), d.onStateChange && this.on(I.StateChange, d.onStateChange), d.onAdvance && this.on(I.Advance, d.onAdvance), d.onload && !d.onLoad && this.on(I.Load, d.onload), d.onloaderror && !d.onLoadError && this.on(I.LoadError, d.onloaderror), d.onplay && !d.onPlay && this.on(I.Play, d.onplay), d.onpause && !d.onPause && this.on(I.Pause, d.onpause), d.onstop && !d.onStop && this.on(I.Stop, d.onstop), d.onloop && !d.onLoop && this.on(I.Loop, d.onloop), d.onstatechange && !d.onStateChange && this.on(I.StateChange, d.onstatechange), d.assetLoader && (this.assetLoader = d.assetLoader), this.taskQueue = new J(this.eventManager), this.init({
|
|
9800
9800
|
src: this.src,
|
|
9801
9801
|
buffer: this.buffer,
|
|
9802
9802
|
riveFile: this.riveFile,
|
|
@@ -9819,9 +9819,9 @@ To resolve, you may need to:`,
|
|
|
9819
9819
|
}, w.prototype.onSystemAudioChanged = function() {
|
|
9820
9820
|
this.volume = this._volume;
|
|
9821
9821
|
}, w.prototype.init = function(d) {
|
|
9822
|
-
var g = this, S = d.src,
|
|
9822
|
+
var g = this, S = d.src, $ = d.buffer, Z = d.riveFile, re = d.animations, ke = d.stateMachines, Pe = d.artboard, pe = d.autoplay, Ne = pe === void 0 ? !1 : pe, He = d.useOffscreenRenderer, wt = He === void 0 ? !1 : He, gt = d.autoBind, wn = gt === void 0 ? !1 : gt;
|
|
9823
9823
|
if (!this.destroyed) {
|
|
9824
|
-
if (this.src = S, this.buffer =
|
|
9824
|
+
if (this.src = S, this.buffer = $, this.riveFile = Z, !this.src && !this.buffer && !this.riveFile)
|
|
9825
9825
|
throw new C(w.missingErrorMessage);
|
|
9826
9826
|
var un = Ot(re), Jt = Ot(ke);
|
|
9827
9827
|
this.loaded = !1, this.readyForPlaying = !1, K.awaitInstance().then(function(Qt) {
|
|
@@ -9842,8 +9842,8 @@ To resolve, you may need to:`,
|
|
|
9842
9842
|
return ke.playing && g.runtime.hasListeners(ke.instance);
|
|
9843
9843
|
}).map(function(ke) {
|
|
9844
9844
|
return ke.instance;
|
|
9845
|
-
}),
|
|
9846
|
-
d && "isTouchScrollEnabled" in d && (
|
|
9845
|
+
}), $ = this.isTouchScrollEnabled, Z = this.dispatchPointerExit, re = this.enableMultiTouch;
|
|
9846
|
+
d && "isTouchScrollEnabled" in d && ($ = d.isTouchScrollEnabled), this.eventCleanup = (0, u.registerTouchInteractions)({
|
|
9847
9847
|
canvas: this.canvas,
|
|
9848
9848
|
artboard: this.artboard,
|
|
9849
9849
|
stateMachines: S,
|
|
@@ -9851,7 +9851,7 @@ To resolve, you may need to:`,
|
|
|
9851
9851
|
rive: this.runtime,
|
|
9852
9852
|
fit: this._layout.runtimeFit(this.runtime),
|
|
9853
9853
|
alignment: this._layout.runtimeAlignment(this.runtime),
|
|
9854
|
-
isTouchScrollEnabled:
|
|
9854
|
+
isTouchScrollEnabled: $,
|
|
9855
9855
|
dispatchPointerExit: Z,
|
|
9856
9856
|
enableMultiTouch: re,
|
|
9857
9857
|
layoutScaleFactor: this._layout.layoutScaleFactor
|
|
@@ -9869,7 +9869,7 @@ To resolve, you may need to:`,
|
|
|
9869
9869
|
}, k.add(this._audioEventListener), k.establishAudio());
|
|
9870
9870
|
}, w.prototype.initArtboardSize = function() {
|
|
9871
9871
|
this.artboard && (this._artboardWidth = this.artboard.width = this._artboardWidth || this.artboard.width, this._artboardHeight = this.artboard.height = this._artboardHeight || this.artboard.height);
|
|
9872
|
-
}, w.prototype.initData = function(d, g, S,
|
|
9872
|
+
}, w.prototype.initData = function(d, g, S, $, Z) {
|
|
9873
9873
|
return v(this, void 0, void 0, function() {
|
|
9874
9874
|
var re, ke, Pe, pe;
|
|
9875
9875
|
return m(this, function(Ne) {
|
|
@@ -9886,7 +9886,7 @@ To resolve, you may need to:`,
|
|
|
9886
9886
|
return re.destroyIfUnused(), [2, !1];
|
|
9887
9887
|
Ne.label = 2;
|
|
9888
9888
|
case 2:
|
|
9889
|
-
return this.file = this.riveFile.getInstance(), this.initArtboard(d, g, S,
|
|
9889
|
+
return this.file = this.riveFile.getInstance(), this.initArtboard(d, g, S, $, Z), this.initArtboardSize(), this.initializeAudio(), this.loaded = !0, this.eventManager.fire({
|
|
9890
9890
|
type: I.Load,
|
|
9891
9891
|
data: (pe = this.src) !== null && pe !== void 0 ? pe : "buffer"
|
|
9892
9892
|
}), this.animator.advanceIfPaused(), this.readyForPlaying = !0, this.taskQueue.process(), this.drawFrame(), [2, !0];
|
|
@@ -9900,7 +9900,7 @@ To resolve, you may need to:`,
|
|
|
9900
9900
|
}
|
|
9901
9901
|
});
|
|
9902
9902
|
});
|
|
9903
|
-
}, w.prototype.initArtboard = function(d, g, S,
|
|
9903
|
+
}, w.prototype.initArtboard = function(d, g, S, $, Z) {
|
|
9904
9904
|
if (this.file) {
|
|
9905
9905
|
var re = d ? this.file.artboardByName(d) : this.file.defaultArtboard();
|
|
9906
9906
|
if (!re) {
|
|
@@ -9910,9 +9910,9 @@ To resolve, you may need to:`,
|
|
|
9910
9910
|
}
|
|
9911
9911
|
this.artboard = re, re.volume = this._volume * k.systemVolume, this.animator = new q(this.runtime, this.artboard, this.eventManager);
|
|
9912
9912
|
var Pe;
|
|
9913
|
-
if (g.length > 0 || S.length > 0 ? (Pe = g.concat(S), this.animator.initLinearAnimations(g,
|
|
9913
|
+
if (g.length > 0 || S.length > 0 ? (Pe = g.concat(S), this.animator.initLinearAnimations(g, $), this.animator.initStateMachines(S, $)) : Pe = [this.animator.atLeastOne($, !1)], this.taskQueue.add({
|
|
9914
9914
|
event: {
|
|
9915
|
-
type:
|
|
9915
|
+
type: $ ? I.Play : I.Pause,
|
|
9916
9916
|
data: Pe
|
|
9917
9917
|
}
|
|
9918
9918
|
}), Z) {
|
|
@@ -9935,7 +9935,7 @@ To resolve, you may need to:`,
|
|
|
9935
9935
|
}, w.prototype.draw = function(d, g) {
|
|
9936
9936
|
var S;
|
|
9937
9937
|
this.frameRequestId = null;
|
|
9938
|
-
var
|
|
9938
|
+
var $ = performance.now();
|
|
9939
9939
|
this.lastRenderTime || (this.lastRenderTime = d), this.renderSecondTimer += d - this.lastRenderTime, this.renderSecondTimer > 5e3 && (this.renderSecondTimer = 0, g?.());
|
|
9940
9940
|
var Z = (d - this.lastRenderTime) / 1e3;
|
|
9941
9941
|
this.lastRenderTime = d;
|
|
@@ -9975,17 +9975,17 @@ To resolve, you may need to:`,
|
|
|
9975
9975
|
var dn = this.renderer;
|
|
9976
9976
|
this._hasZeroSize || (this.drawOptimization == M.AlwaysDraw || this.artboard.didChange() || this._needsRedraw || this._canvasSizeChanged()) && (dn.clear(), dn.save(), this.alignRenderer(), this.artboard.draw(dn), dn.restore(), dn.flush(), this._needsRedraw = !1), this.animator.handleLooping(), this.animator.handleStateChanges(), this.animator.handleAdvancing(Z), this.frameCount++;
|
|
9977
9977
|
var tt = performance.now();
|
|
9978
|
-
for (this.frameTimes.push(tt), this.durations.push(tt -
|
|
9978
|
+
for (this.frameTimes.push(tt), this.durations.push(tt - $); this.frameTimes[0] <= tt - 1e3; )
|
|
9979
9979
|
this.frameTimes.shift(), this.durations.shift();
|
|
9980
9980
|
(S = this._viewModelInstance) === null || S === void 0 || S.handleCallbacks(), this.animator.isPlaying ? this.scheduleRendering() : this.animator.isPaused ? this.lastRenderTime = 0 : this.animator.isStopped && (this.lastRenderTime = 0);
|
|
9981
9981
|
}, w.prototype.alignRenderer = function() {
|
|
9982
|
-
var d = this, g = d.renderer, S = d.runtime,
|
|
9983
|
-
g.align(
|
|
9984
|
-
minX:
|
|
9985
|
-
minY:
|
|
9986
|
-
maxX:
|
|
9987
|
-
maxY:
|
|
9988
|
-
}, Z.bounds, this._devicePixelRatioUsed *
|
|
9982
|
+
var d = this, g = d.renderer, S = d.runtime, $ = d._layout, Z = d.artboard;
|
|
9983
|
+
g.align($.runtimeFit(S), $.runtimeAlignment(S), {
|
|
9984
|
+
minX: $.minX,
|
|
9985
|
+
minY: $.minY,
|
|
9986
|
+
maxX: $.maxX,
|
|
9987
|
+
maxY: $.maxY
|
|
9988
|
+
}, Z.bounds, this._devicePixelRatioUsed * $.layoutScaleFactor);
|
|
9989
9989
|
}, Object.defineProperty(w.prototype, "fps", {
|
|
9990
9990
|
get: function() {
|
|
9991
9991
|
return this.durations.length;
|
|
@@ -10075,8 +10075,8 @@ To resolve, you may need to:`,
|
|
|
10075
10075
|
}
|
|
10076
10076
|
this.animator && this.animator.stop(d), this.eventCleanup && this.eventCleanup();
|
|
10077
10077
|
}, w.prototype.reset = function(d) {
|
|
10078
|
-
var g, S,
|
|
10079
|
-
this.cleanupInstances(), this.initArtboard(
|
|
10078
|
+
var g, S, $ = d?.artboard, Z = Ot(d?.animations), re = Ot(d?.stateMachines), ke = (g = d?.autoplay) !== null && g !== void 0 ? g : !1, Pe = (S = d?.autoBind) !== null && S !== void 0 ? S : !1;
|
|
10079
|
+
this.cleanupInstances(), this.initArtboard($, Z, re, ke, Pe), this.taskQueue.process();
|
|
10080
10080
|
}, w.prototype.load = function(d) {
|
|
10081
10081
|
this.file = null, this.stop(), this.init(d);
|
|
10082
10082
|
}, Object.defineProperty(w.prototype, "layout", {
|
|
@@ -10103,10 +10103,10 @@ To resolve, you may need to:`,
|
|
|
10103
10103
|
});
|
|
10104
10104
|
}, w.prototype.resizeDrawingSurfaceToCanvas = function(d) {
|
|
10105
10105
|
if (this.canvas instanceof HTMLCanvasElement && window) {
|
|
10106
|
-
var g = this.canvas.getBoundingClientRect(), S = g.width,
|
|
10107
|
-
if (this.devicePixelRatioUsed = Z, this.canvas.width = Z * S, this.canvas.height = Z *
|
|
10106
|
+
var g = this.canvas.getBoundingClientRect(), S = g.width, $ = g.height, Z = d || window.devicePixelRatio || 1;
|
|
10107
|
+
if (this.devicePixelRatioUsed = Z, this.canvas.width = Z * S, this.canvas.height = Z * $, this._needsRedraw = !0, this.resizeToCanvas(), this.drawFrame(), this.layout.fit === R.Layout) {
|
|
10108
10108
|
var re = this._layout.layoutScaleFactor;
|
|
10109
|
-
this.artboard.width = S / re, this.artboard.height =
|
|
10109
|
+
this.artboard.width = S / re, this.artboard.height = $ / re;
|
|
10110
10110
|
}
|
|
10111
10111
|
}
|
|
10112
10112
|
}, Object.defineProperty(w.prototype, "source", {
|
|
@@ -10172,14 +10172,14 @@ To resolve, you may need to:`,
|
|
|
10172
10172
|
}
|
|
10173
10173
|
return S;
|
|
10174
10174
|
}, w.prototype.setBooleanStateAtPath = function(d, g, S) {
|
|
10175
|
-
var
|
|
10176
|
-
|
|
10175
|
+
var $ = this.retrieveInputAtPath(d, S);
|
|
10176
|
+
$ && ($.type === U.Boolean ? $.asBool().value = g : console.warn("Input with name: '".concat(d, "', at path:'").concat(S, "' is not a boolean")));
|
|
10177
10177
|
}, w.prototype.setNumberStateAtPath = function(d, g, S) {
|
|
10178
|
-
var
|
|
10179
|
-
|
|
10178
|
+
var $ = this.retrieveInputAtPath(d, S);
|
|
10179
|
+
$ && ($.type === U.Number ? $.asNumber().value = g : console.warn("Input with name: '".concat(d, "', at path:'").concat(S, "' is not a number")));
|
|
10180
10180
|
}, w.prototype.fireStateAtPath = function(d, g) {
|
|
10181
10181
|
var S = this.retrieveInputAtPath(d, g);
|
|
10182
|
-
S && (S.type ===
|
|
10182
|
+
S && (S.type === U.Trigger ? S.asTrigger().fire() : console.warn("Input with name: '".concat(d, "', at path:'").concat(g, "' is not a trigger")));
|
|
10183
10183
|
}, w.prototype.retrieveTextAtPath = function(d, g) {
|
|
10184
10184
|
if (!d) {
|
|
10185
10185
|
console.warn("No text name provided for path '".concat(g, "'"));
|
|
@@ -10207,12 +10207,12 @@ To resolve, you may need to:`,
|
|
|
10207
10207
|
}
|
|
10208
10208
|
return S.text;
|
|
10209
10209
|
}, w.prototype.setTextRunValueAtPath = function(d, g, S) {
|
|
10210
|
-
var
|
|
10211
|
-
if (
|
|
10210
|
+
var $ = this.retrieveTextAtPath(d, S);
|
|
10211
|
+
if (!$) {
|
|
10212
10212
|
console.warn("Could not set text with name: '".concat(d, "', at path:'").concat(S, "'"));
|
|
10213
10213
|
return;
|
|
10214
10214
|
}
|
|
10215
|
-
|
|
10215
|
+
$.text = g;
|
|
10216
10216
|
}, Object.defineProperty(w.prototype, "playingStateMachineNames", {
|
|
10217
10217
|
// Returns a list of playing machine names
|
|
10218
10218
|
get: function() {
|
|
@@ -10333,25 +10333,25 @@ To resolve, you may need to:`,
|
|
|
10333
10333
|
for (var d = {
|
|
10334
10334
|
artboards: []
|
|
10335
10335
|
}, g = 0; g < this.file.artboardCount(); g++) {
|
|
10336
|
-
for (var S = this.file.artboardByIndex(g),
|
|
10336
|
+
for (var S = this.file.artboardByIndex(g), $ = {
|
|
10337
10337
|
name: S.name,
|
|
10338
10338
|
animations: [],
|
|
10339
10339
|
stateMachines: []
|
|
10340
10340
|
}, Z = 0; Z < S.animationCount(); Z++) {
|
|
10341
10341
|
var re = S.animationByIndex(Z);
|
|
10342
|
-
|
|
10342
|
+
$.animations.push(re.name);
|
|
10343
10343
|
}
|
|
10344
10344
|
for (var ke = 0; ke < S.stateMachineCount(); ke++) {
|
|
10345
10345
|
for (var Pe = S.stateMachineByIndex(ke), pe = Pe.name, Ne = new this.runtime.StateMachineInstance(Pe, S), He = [], wt = 0; wt < Ne.inputCount(); wt++) {
|
|
10346
10346
|
var gt = Ne.input(wt);
|
|
10347
10347
|
He.push({ name: gt.name, type: gt.type });
|
|
10348
10348
|
}
|
|
10349
|
-
|
|
10349
|
+
$.stateMachines.push({
|
|
10350
10350
|
name: pe,
|
|
10351
10351
|
inputs: He
|
|
10352
10352
|
});
|
|
10353
10353
|
}
|
|
10354
|
-
d.artboards.push(
|
|
10354
|
+
d.artboards.push($);
|
|
10355
10355
|
}
|
|
10356
10356
|
return d;
|
|
10357
10357
|
}
|
|
@@ -10623,7 +10623,7 @@ To resolve, you may need to:`,
|
|
|
10623
10623
|
var S = this.internalViewModelInstance(d[g]);
|
|
10624
10624
|
return S !== null ? g == d.length - 1 ? S : S.viewModelFromPathSegments(d, g++) : null;
|
|
10625
10625
|
}, w.prototype.propertyFromPathSegments = function(d, g, S) {
|
|
10626
|
-
var
|
|
10626
|
+
var $, Z, re, ke, Pe, pe, Ne, He, wt, gt, wn, un, Jt, Qt, fn, Mn, Me, zn;
|
|
10627
10627
|
if (g < d.length - 1) {
|
|
10628
10628
|
var dn = this.internalViewModelInstance(d[g]);
|
|
10629
10629
|
return dn !== null ? dn.propertyFromPathSegments(d, g + 1, S) : null;
|
|
@@ -10631,7 +10631,7 @@ To resolve, you may need to:`,
|
|
|
10631
10631
|
var tt = null;
|
|
10632
10632
|
switch (S) {
|
|
10633
10633
|
case be.Number:
|
|
10634
|
-
if (tt = (Z = (
|
|
10634
|
+
if (tt = (Z = ($ = this._runtimeInstance) === null || $ === void 0 ? void 0 : $.number(d[g])) !== null && Z !== void 0 ? Z : null, tt !== null)
|
|
10635
10635
|
return new Fe(tt, this);
|
|
10636
10636
|
break;
|
|
10637
10637
|
case be.String:
|
|
@@ -10674,8 +10674,8 @@ To resolve, you may need to:`,
|
|
|
10674
10674
|
return this._viewModelInstances.get(d);
|
|
10675
10675
|
var S = (g = this._runtimeInstance) === null || g === void 0 ? void 0 : g.viewModel(d);
|
|
10676
10676
|
if (S !== null) {
|
|
10677
|
-
var
|
|
10678
|
-
return (0, u.createFinalization)(
|
|
10677
|
+
var $ = new w(S, this);
|
|
10678
|
+
return (0, u.createFinalization)($, S), $.internalIncrementReferenceCount(), this._viewModelInstances.set(d, $), $;
|
|
10679
10679
|
}
|
|
10680
10680
|
return null;
|
|
10681
10681
|
}, w.prototype.number = function(d) {
|
|
@@ -10711,20 +10711,20 @@ To resolve, you may need to:`,
|
|
|
10711
10711
|
}, w.prototype.internalReplaceViewModel = function(d, g) {
|
|
10712
10712
|
var S;
|
|
10713
10713
|
if (g.runtimeInstance !== null) {
|
|
10714
|
-
var
|
|
10715
|
-
if (
|
|
10714
|
+
var $ = ((S = this._runtimeInstance) === null || S === void 0 ? void 0 : S.replaceViewModel(d, g.runtimeInstance)) || !1;
|
|
10715
|
+
if ($) {
|
|
10716
10716
|
g.internalIncrementReferenceCount();
|
|
10717
10717
|
var Z = this.internalViewModelInstance(d);
|
|
10718
10718
|
Z !== null && (Z.removeParent(this), this._children.includes(Z) && (this._children = this._children.filter(function(re) {
|
|
10719
10719
|
return re !== Z;
|
|
10720
10720
|
})), Z.cleanup()), this._viewModelInstances.set(d, g), g.addParent(this);
|
|
10721
10721
|
}
|
|
10722
|
-
return
|
|
10722
|
+
return $;
|
|
10723
10723
|
}
|
|
10724
10724
|
return !1;
|
|
10725
10725
|
}, w.prototype.replaceViewModel = function(d, g) {
|
|
10726
|
-
var S,
|
|
10727
|
-
return (S = Z?.internalReplaceViewModel(
|
|
10726
|
+
var S, $ = d.split("/"), Z = $.length > 1 ? this.viewModelFromPathSegments($.slice(0, $.length - 1), 0) : this;
|
|
10727
|
+
return (S = Z?.internalReplaceViewModel($[$.length - 1], g)) !== null && S !== void 0 ? S : !1;
|
|
10728
10728
|
}, w.prototype.incrementReferenceCount = function() {
|
|
10729
10729
|
var d;
|
|
10730
10730
|
this._referenceCount++, (d = this._runtimeInstance) === null || d === void 0 || d.incrementReferenceCount();
|
|
@@ -10750,10 +10750,10 @@ To resolve, you may need to:`,
|
|
|
10750
10750
|
}), this._viewModelInstances.clear();
|
|
10751
10751
|
var S = y([], this._children, !0);
|
|
10752
10752
|
this._children.length = 0;
|
|
10753
|
-
var
|
|
10753
|
+
var $ = y([], this._parents, !0);
|
|
10754
10754
|
this._parents.length = 0, S.forEach(function(Z) {
|
|
10755
10755
|
Z.removeParent(d);
|
|
10756
|
-
}),
|
|
10756
|
+
}), $.forEach(function(Z) {
|
|
10757
10757
|
Z.removeFromViewModelCallbacks(d);
|
|
10758
10758
|
});
|
|
10759
10759
|
}
|
|
@@ -10921,8 +10921,8 @@ To resolve, you may need to:`,
|
|
|
10921
10921
|
}, d.prototype.instanceAt = function(g) {
|
|
10922
10922
|
var S = this._viewModelInstanceValue.instanceAt(g);
|
|
10923
10923
|
if (S != null) {
|
|
10924
|
-
var
|
|
10925
|
-
return (0, u.createFinalization)(
|
|
10924
|
+
var $ = new je(S, this._parentViewModel);
|
|
10925
|
+
return (0, u.createFinalization)($, S), $;
|
|
10926
10926
|
}
|
|
10927
10927
|
return null;
|
|
10928
10928
|
}, d.prototype.swap = function(g, S) {
|
|
@@ -10947,12 +10947,12 @@ To resolve, you may need to:`,
|
|
|
10947
10947
|
},
|
|
10948
10948
|
enumerable: !1,
|
|
10949
10949
|
configurable: !0
|
|
10950
|
-
}), d.prototype.rgb = function(g, S,
|
|
10951
|
-
this._viewModelInstanceValue.rgb(g, S,
|
|
10952
|
-
}, d.prototype.rgba = function(g, S,
|
|
10953
|
-
this._viewModelInstanceValue.argb(Z, g, S,
|
|
10954
|
-
}, d.prototype.argb = function(g, S,
|
|
10955
|
-
this._viewModelInstanceValue.argb(g, S,
|
|
10950
|
+
}), d.prototype.rgb = function(g, S, $) {
|
|
10951
|
+
this._viewModelInstanceValue.rgb(g, S, $);
|
|
10952
|
+
}, d.prototype.rgba = function(g, S, $, Z) {
|
|
10953
|
+
this._viewModelInstanceValue.argb(Z, g, S, $);
|
|
10954
|
+
}, d.prototype.argb = function(g, S, $, Z) {
|
|
10955
|
+
this._viewModelInstanceValue.argb(g, S, $, Z);
|
|
10956
10956
|
}, d.prototype.alpha = function(g) {
|
|
10957
10957
|
this._viewModelInstanceValue.alpha(g);
|
|
10958
10958
|
}, d.prototype.opacity = function(g) {
|
|
@@ -10988,8 +10988,8 @@ To resolve, you may need to:`,
|
|
|
10988
10988
|
}
|
|
10989
10989
|
return Object.defineProperty(d.prototype, "value", {
|
|
10990
10990
|
set: function(g) {
|
|
10991
|
-
var S,
|
|
10992
|
-
g.isBindableArtboard ? Z = g : Z = g.file.internalBindableArtboardFromArtboard(g.nativeArtboard), this._viewModelInstanceValue.value((S = Z?.nativeArtboard) !== null && S !== void 0 ? S : null), Z?.nativeViewModel && this._viewModelInstanceValue.viewModelInstance((
|
|
10991
|
+
var S, $, Z;
|
|
10992
|
+
g.isBindableArtboard ? Z = g : Z = g.file.internalBindableArtboardFromArtboard(g.nativeArtboard), this._viewModelInstanceValue.value((S = Z?.nativeArtboard) !== null && S !== void 0 ? S : null), Z?.nativeViewModel && this._viewModelInstanceValue.viewModelInstance(($ = Z?.nativeViewModel) !== null && $ !== void 0 ? $ : null);
|
|
10993
10993
|
},
|
|
10994
10994
|
enumerable: !1,
|
|
10995
10995
|
configurable: !0
|
|
@@ -11000,14 +11000,14 @@ To resolve, you may need to:`,
|
|
|
11000
11000
|
), Pt = function(w) {
|
|
11001
11001
|
return v(void 0, void 0, void 0, function() {
|
|
11002
11002
|
var d, g, S;
|
|
11003
|
-
return m(this, function(
|
|
11004
|
-
switch (
|
|
11003
|
+
return m(this, function($) {
|
|
11004
|
+
switch ($.label) {
|
|
11005
11005
|
case 0:
|
|
11006
11006
|
return d = new Request(w), [4, fetch(d)];
|
|
11007
11007
|
case 1:
|
|
11008
|
-
return g =
|
|
11008
|
+
return g = $.sent(), [4, g.arrayBuffer()];
|
|
11009
11009
|
case 2:
|
|
11010
|
-
return S =
|
|
11010
|
+
return S = $.sent(), [2, S];
|
|
11011
11011
|
}
|
|
11012
11012
|
});
|
|
11013
11013
|
});
|
|
@@ -11019,8 +11019,8 @@ To resolve, you may need to:`,
|
|
|
11019
11019
|
}, Nt = function(w) {
|
|
11020
11020
|
return v(void 0, void 0, void 0, function() {
|
|
11021
11021
|
var d, g, S;
|
|
11022
|
-
return m(this, function(
|
|
11023
|
-
switch (
|
|
11022
|
+
return m(this, function($) {
|
|
11023
|
+
switch ($.label) {
|
|
11024
11024
|
case 0:
|
|
11025
11025
|
return d = new Promise(function(Z) {
|
|
11026
11026
|
return K.getInstance(function(re) {
|
|
@@ -11028,15 +11028,15 @@ To resolve, you may need to:`,
|
|
|
11028
11028
|
});
|
|
11029
11029
|
}), [4, d];
|
|
11030
11030
|
case 1:
|
|
11031
|
-
return g =
|
|
11031
|
+
return g = $.sent(), S = new u.AudioWrapper(g), u.finalizationRegistry.register(S, g), [2, S];
|
|
11032
11032
|
}
|
|
11033
11033
|
});
|
|
11034
11034
|
});
|
|
11035
11035
|
}, It = function(w) {
|
|
11036
11036
|
return v(void 0, void 0, void 0, function() {
|
|
11037
11037
|
var d, g, S;
|
|
11038
|
-
return m(this, function(
|
|
11039
|
-
switch (
|
|
11038
|
+
return m(this, function($) {
|
|
11039
|
+
switch ($.label) {
|
|
11040
11040
|
case 0:
|
|
11041
11041
|
return d = new Promise(function(Z) {
|
|
11042
11042
|
return K.getInstance(function(re) {
|
|
@@ -11044,15 +11044,15 @@ To resolve, you may need to:`,
|
|
|
11044
11044
|
});
|
|
11045
11045
|
}), [4, d];
|
|
11046
11046
|
case 1:
|
|
11047
|
-
return g =
|
|
11047
|
+
return g = $.sent(), S = new u.ImageWrapper(g), u.finalizationRegistry.register(S, g), [2, S];
|
|
11048
11048
|
}
|
|
11049
11049
|
});
|
|
11050
11050
|
});
|
|
11051
11051
|
}, ee = function(w) {
|
|
11052
11052
|
return v(void 0, void 0, void 0, function() {
|
|
11053
11053
|
var d, g, S;
|
|
11054
|
-
return m(this, function(
|
|
11055
|
-
switch (
|
|
11054
|
+
return m(this, function($) {
|
|
11055
|
+
switch ($.label) {
|
|
11056
11056
|
case 0:
|
|
11057
11057
|
return d = new Promise(function(Z) {
|
|
11058
11058
|
return K.getInstance(function(re) {
|
|
@@ -11060,7 +11060,7 @@ To resolve, you may need to:`,
|
|
|
11060
11060
|
});
|
|
11061
11061
|
}), [4, d];
|
|
11062
11062
|
case 1:
|
|
11063
|
-
return g =
|
|
11063
|
+
return g = $.sent(), S = new u.FontWrapper(g), u.finalizationRegistry.register(S, g), [2, S];
|
|
11064
11064
|
}
|
|
11065
11065
|
});
|
|
11066
11066
|
});
|
|
@@ -11236,11 +11236,11 @@ function Aw() {
|
|
|
11236
11236
|
}, [A, X]), I;
|
|
11237
11237
|
}
|
|
11238
11238
|
var L = { useDevicePixelRatio: !0, fitCanvasToArtboardHeight: !1, useOffscreenRenderer: !0, shouldResizeCanvasToContainer: !0 };
|
|
11239
|
-
function
|
|
11239
|
+
function R(A) {
|
|
11240
11240
|
return Object.assign({}, L, A);
|
|
11241
11241
|
}
|
|
11242
|
-
function
|
|
11243
|
-
var F = A.riveLoaded, q = F !== void 0 && F, I = A.canvasElem, D = A.containerRef, W = A.options, J = W === void 0 ? {} : W, le = A.onCanvasHasResized, X = A.artboardBounds, k =
|
|
11242
|
+
function j(A) {
|
|
11243
|
+
var F = A.riveLoaded, q = F !== void 0 && F, I = A.canvasElem, D = A.containerRef, W = A.options, J = W === void 0 ? {} : W, le = A.onCanvasHasResized, X = A.artboardBounds, k = R(J), ne = t.useState({ height: 0, width: 0 }), ge = ne[0], N = ge.height, oe = ge.width, ue = ne[1], we = t.useState({ height: 0, width: 0 }), Be = we[0], et = Be.height, be = Be.width, je = we[1], ze = t.useState(!0), Ee = ze[0], Fe = ze[1], Ae = k.fitCanvasToArtboardHeight, $e = k.shouldResizeCanvasToContainer, st = k.useDevicePixelRatio, At = k.customDevicePixelRatio, it = C(D, $e), Ie = u(At), ht = X ?? {}, Pt = ht.maxX, Ot = ht.maxY, $t = t.useCallback(function() {
|
|
11244
11244
|
var Nt, It, ee, w, d = (It = (Nt = D.current) === null || Nt === void 0 ? void 0 : Nt.clientWidth) !== null && It !== void 0 ? It : 0, g = (w = (ee = D.current) === null || ee === void 0 ? void 0 : ee.clientHeight) !== null && w !== void 0 ? w : 0;
|
|
11245
11245
|
return Ae && X ? { width: d, height: d * (X.maxY / X.maxX) } : { width: d, height: g };
|
|
11246
11246
|
}, [D, Ae, Pt, Ot]);
|
|
@@ -11270,7 +11270,7 @@ function Aw() {
|
|
|
11270
11270
|
}, A.prototype.unobserve = function() {
|
|
11271
11271
|
}, A.prototype.disconnect = function() {
|
|
11272
11272
|
}, A;
|
|
11273
|
-
})(), K = globalThis.IntersectionObserver || Y,
|
|
11273
|
+
})(), K = globalThis.IntersectionObserver || Y, U = (function() {
|
|
11274
11274
|
function A() {
|
|
11275
11275
|
var F = this;
|
|
11276
11276
|
this.elementsMap = /* @__PURE__ */ new Map(), this.onObserved = function(q) {
|
|
@@ -11286,7 +11286,7 @@ function Aw() {
|
|
|
11286
11286
|
this.observer.unobserve(F), this.elementsMap.delete(F);
|
|
11287
11287
|
}, A;
|
|
11288
11288
|
})(), ie = function() {
|
|
11289
|
-
return M || (M = new
|
|
11289
|
+
return M || (M = new U()), M;
|
|
11290
11290
|
};
|
|
11291
11291
|
function te(A) {
|
|
11292
11292
|
var F = A.setContainerRef, q = A.setCanvasRef, I = A.className, D = I === void 0 ? "" : I, W = A.style, J = A.children, le = a(A, ["setContainerRef", "setCanvasRef", "className", "style", "children"]), X = o({ width: "100%", height: "100%" }, W);
|
|
@@ -11294,7 +11294,7 @@ function Aw() {
|
|
|
11294
11294
|
}
|
|
11295
11295
|
function H(A, F) {
|
|
11296
11296
|
F === void 0 && (F = {});
|
|
11297
|
-
var q = t.useState(null), I = q[0], D = q[1], W = t.useRef(null), J = t.useRef(null), le = t.useState(null), X = le[0], k = le[1], ne = !!A, ge =
|
|
11297
|
+
var q = t.useState(null), I = q[0], D = q[1], W = t.useRef(null), J = t.useRef(null), le = t.useState(null), X = le[0], k = le[1], ne = !!A, ge = R(F), N = u(), oe = t.useCallback(function() {
|
|
11298
11298
|
if (X) {
|
|
11299
11299
|
if (X.layout && X.layout.fit === n.Fit.Layout && I) {
|
|
11300
11300
|
var Ee = N * X.layout.layoutScaleFactor;
|
|
@@ -11303,7 +11303,7 @@ function Aw() {
|
|
|
11303
11303
|
X.startRendering(), X.resizeToCanvas();
|
|
11304
11304
|
}
|
|
11305
11305
|
}, [X, N]);
|
|
11306
|
-
|
|
11306
|
+
j({ riveLoaded: !!X, canvasElem: I, containerRef: W, options: ge, onCanvasHasResized: oe, artboardBounds: X?.bounds });
|
|
11307
11307
|
var ue = t.useCallback(function(Ee) {
|
|
11308
11308
|
Ee === null && I && (I.height = 0, I.width = 0), D(Ee);
|
|
11309
11309
|
}, []);
|
|
@@ -11358,7 +11358,7 @@ function Aw() {
|
|
|
11358
11358
|
}, [ue, we]);
|
|
11359
11359
|
return { canvas: I, container: W.current, setCanvasRef: ue, setContainerRef: we, rive: X, RiveComponent: ze };
|
|
11360
11360
|
}
|
|
11361
|
-
function
|
|
11361
|
+
function T(A, F, q) {
|
|
11362
11362
|
var I = t.useState(null), D = I[0], W = I[1], J = t.useState(q.defaultValue), le = J[0], X = J[1], k = t.useState(null), ne = k[0], ge = k[1], N = t.useRef(null), oe = t.useRef(A), ue = t.useRef(q);
|
|
11363
11363
|
t.useEffect(function() {
|
|
11364
11364
|
ue.current = q;
|
|
@@ -11401,7 +11401,7 @@ function Aw() {
|
|
|
11401
11401
|
e.default = function(A) {
|
|
11402
11402
|
var F = A.src, q = A.artboard, I = A.animations, D = A.stateMachines, W = A.layout, J = A.useOffscreenRenderer, le = J === void 0 || J, X = A.shouldDisableRiveListeners, k = X !== void 0 && X, ne = A.shouldResizeCanvasToContainer, ge = ne === void 0 || ne, N = A.automaticallyHandleEvents, oe = N !== void 0 && N, ue = A.children, we = a(A, ["src", "artboard", "animations", "stateMachines", "layout", "useOffscreenRenderer", "shouldDisableRiveListeners", "shouldResizeCanvasToContainer", "automaticallyHandleEvents", "children"]), Be = H({ src: F, artboard: q, animations: I, layout: W, stateMachines: D, autoplay: !0, shouldDisableRiveListeners: k, automaticallyHandleEvents: oe }, { useOffscreenRenderer: le, shouldResizeCanvasToContainer: ge }).RiveComponent;
|
|
11403
11403
|
return i.default.createElement(Be, o({}, we), ue);
|
|
11404
|
-
}, e.useResizeCanvas =
|
|
11404
|
+
}, e.useResizeCanvas = j, e.useRive = H, e.useRiveFile = function(A) {
|
|
11405
11405
|
var F = this, q = t.useState(null), I = q[0], D = q[1], W = t.useState("idle"), J = W[0], le = W[1];
|
|
11406
11406
|
return t.useEffect(function() {
|
|
11407
11407
|
var X = null;
|
|
@@ -11464,7 +11464,7 @@ function Aw() {
|
|
|
11464
11464
|
} else ge(null);
|
|
11465
11465
|
}, [A, I, W, le, X]), ne;
|
|
11466
11466
|
}, e.useViewModelInstanceArtboard = function(A, F) {
|
|
11467
|
-
return { setValue:
|
|
11467
|
+
return { setValue: T(A, F, { getProperty: t.useCallback(function(q, I) {
|
|
11468
11468
|
return q.artboard(I);
|
|
11469
11469
|
}, []), getValue: t.useCallback(function() {
|
|
11470
11470
|
}, []), defaultValue: null, buildPropertyOperations: t.useCallback(function(q) {
|
|
@@ -11475,7 +11475,7 @@ function Aw() {
|
|
|
11475
11475
|
} };
|
|
11476
11476
|
}, []) }).setValue };
|
|
11477
11477
|
}, e.useViewModelInstanceBoolean = function(A, F) {
|
|
11478
|
-
var q =
|
|
11478
|
+
var q = T(A, F, { getProperty: t.useCallback(function(I, D) {
|
|
11479
11479
|
return I.boolean(D);
|
|
11480
11480
|
}, []), getValue: t.useCallback(function(I) {
|
|
11481
11481
|
return I.value;
|
|
@@ -11488,7 +11488,7 @@ function Aw() {
|
|
|
11488
11488
|
}, []) });
|
|
11489
11489
|
return { value: q.value, setValue: q.setValue };
|
|
11490
11490
|
}, e.useViewModelInstanceColor = function(A, F) {
|
|
11491
|
-
var q =
|
|
11491
|
+
var q = T(A, F, { getProperty: t.useCallback(function(I, D) {
|
|
11492
11492
|
return I.color(D);
|
|
11493
11493
|
}, []), getValue: t.useCallback(function(I) {
|
|
11494
11494
|
return I.value;
|
|
@@ -11517,7 +11517,7 @@ function Aw() {
|
|
|
11517
11517
|
}, []) });
|
|
11518
11518
|
return { value: q.value, setValue: q.setValue, setRgb: q.setRgb, setRgba: q.setRgba, setAlpha: q.setAlpha, setOpacity: q.setOpacity };
|
|
11519
11519
|
}, e.useViewModelInstanceEnum = function(A, F) {
|
|
11520
|
-
var q =
|
|
11520
|
+
var q = T(A, F, { getProperty: t.useCallback(function(I, D) {
|
|
11521
11521
|
return I.enum(D);
|
|
11522
11522
|
}, []), getValue: t.useCallback(function(I) {
|
|
11523
11523
|
return I.value;
|
|
@@ -11532,7 +11532,7 @@ function Aw() {
|
|
|
11532
11532
|
}, []) });
|
|
11533
11533
|
return { value: q.value, values: q.extendedData || [], setValue: q.setValue };
|
|
11534
11534
|
}, e.useViewModelInstanceImage = function(A, F) {
|
|
11535
|
-
return { setValue:
|
|
11535
|
+
return { setValue: T(A, F, { getProperty: t.useCallback(function(q, I) {
|
|
11536
11536
|
return q.image(I);
|
|
11537
11537
|
}, []), getValue: t.useCallback(function() {
|
|
11538
11538
|
}, []), defaultValue: null, buildPropertyOperations: t.useCallback(function(q) {
|
|
@@ -11543,7 +11543,7 @@ function Aw() {
|
|
|
11543
11543
|
} };
|
|
11544
11544
|
}, []) }).setValue };
|
|
11545
11545
|
}, e.useViewModelInstanceList = function(A, F) {
|
|
11546
|
-
var q, I = t.useState(0)[1], D =
|
|
11546
|
+
var q, I = t.useState(0)[1], D = T(A, F, { getProperty: t.useCallback(function(W, J) {
|
|
11547
11547
|
return W.list(J);
|
|
11548
11548
|
}, []), getValue: t.useCallback(function(W) {
|
|
11549
11549
|
return W.length;
|
|
@@ -11582,7 +11582,7 @@ function Aw() {
|
|
|
11582
11582
|
}, []) });
|
|
11583
11583
|
return { length: (q = D.value) !== null && q !== void 0 ? q : 0, addInstance: D.addInstance, addInstanceAt: D.addInstanceAt, removeInstance: D.removeInstance, removeInstanceAt: D.removeInstanceAt, getInstanceAt: D.getInstanceAt, swap: D.swap };
|
|
11584
11584
|
}, e.useViewModelInstanceNumber = function(A, F) {
|
|
11585
|
-
var q =
|
|
11585
|
+
var q = T(A, F, { getProperty: t.useCallback(function(I, D) {
|
|
11586
11586
|
return I.number(D);
|
|
11587
11587
|
}, []), getValue: t.useCallback(function(I) {
|
|
11588
11588
|
return I.value;
|
|
@@ -11595,7 +11595,7 @@ function Aw() {
|
|
|
11595
11595
|
}, []) });
|
|
11596
11596
|
return { value: q.value, setValue: q.setValue };
|
|
11597
11597
|
}, e.useViewModelInstanceString = function(A, F) {
|
|
11598
|
-
var q =
|
|
11598
|
+
var q = T(A, F, { getProperty: t.useCallback(function(I, D) {
|
|
11599
11599
|
return I.string(D);
|
|
11600
11600
|
}, []), getValue: t.useCallback(function(I) {
|
|
11601
11601
|
return I.value;
|
|
@@ -11609,7 +11609,7 @@ function Aw() {
|
|
|
11609
11609
|
return { value: q.value, setValue: q.setValue };
|
|
11610
11610
|
}, e.useViewModelInstanceTrigger = function(A, F, q) {
|
|
11611
11611
|
var I = (q ?? {}).onTrigger;
|
|
11612
|
-
return { trigger:
|
|
11612
|
+
return { trigger: T(A, F, { getProperty: t.useCallback(function(D, W) {
|
|
11613
11613
|
return D.trigger(W);
|
|
11614
11614
|
}, []), getValue: t.useCallback(function() {
|
|
11615
11615
|
}, []), defaultValue: null, onPropertyEvent: I, buildPropertyOperations: t.useCallback(function(D) {
|
|
@@ -11627,7 +11627,7 @@ function Aw() {
|
|
|
11627
11627
|
})(Ba)), Ba;
|
|
11628
11628
|
}
|
|
11629
11629
|
var ui = Aw();
|
|
11630
|
-
const Iw = { BASE_URL: "/", DEV: !1, MODE: "
|
|
11630
|
+
const Iw = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev" }, Rw = "/assets/logo-waiting-simple.riv";
|
|
11631
11631
|
function ll(e) {
|
|
11632
11632
|
return typeof window > "u" || typeof import.meta > "u" ? "" : Iw[e] || "";
|
|
11633
11633
|
}
|
|
@@ -12885,33 +12885,33 @@ function t0() {
|
|
|
12885
12885
|
lu = 1;
|
|
12886
12886
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, s = /^\s+|\s+$/g, l = `
|
|
12887
12887
|
`, u = "/", h = "*", p = "", v = "comment", m = "declaration";
|
|
12888
|
-
function y(L,
|
|
12888
|
+
function y(L, R) {
|
|
12889
12889
|
if (typeof L != "string")
|
|
12890
12890
|
throw new TypeError("First argument must be a string");
|
|
12891
12891
|
if (!L) return [];
|
|
12892
|
-
|
|
12893
|
-
var
|
|
12892
|
+
R = R || {};
|
|
12893
|
+
var j = 1, M = 1;
|
|
12894
12894
|
function Y(I) {
|
|
12895
12895
|
var D = I.match(t);
|
|
12896
|
-
D && (
|
|
12896
|
+
D && (j += D.length);
|
|
12897
12897
|
var W = I.lastIndexOf(l);
|
|
12898
12898
|
M = ~W ? I.length - W : M + I.length;
|
|
12899
12899
|
}
|
|
12900
12900
|
function K() {
|
|
12901
|
-
var I = { line:
|
|
12901
|
+
var I = { line: j, column: M };
|
|
12902
12902
|
return function(D) {
|
|
12903
|
-
return D.position = new
|
|
12903
|
+
return D.position = new U(I), H(), D;
|
|
12904
12904
|
};
|
|
12905
12905
|
}
|
|
12906
|
-
function
|
|
12907
|
-
this.start = I, this.end = { line:
|
|
12906
|
+
function U(I) {
|
|
12907
|
+
this.start = I, this.end = { line: j, column: M }, this.source = R.source;
|
|
12908
12908
|
}
|
|
12909
|
-
|
|
12909
|
+
U.prototype.content = L;
|
|
12910
12910
|
function ie(I) {
|
|
12911
12911
|
var D = new Error(
|
|
12912
|
-
|
|
12912
|
+
R.source + ":" + j + ":" + M + ": " + I
|
|
12913
12913
|
);
|
|
12914
|
-
if (D.reason = I, D.filename =
|
|
12914
|
+
if (D.reason = I, D.filename = R.source, D.line = j, D.column = M, D.source = L, !R.silent) throw D;
|
|
12915
12915
|
}
|
|
12916
12916
|
function te(I) {
|
|
12917
12917
|
var D = I.exec(L);
|
|
@@ -12923,7 +12923,7 @@ function t0() {
|
|
|
12923
12923
|
function H() {
|
|
12924
12924
|
te(n);
|
|
12925
12925
|
}
|
|
12926
|
-
function
|
|
12926
|
+
function T(I) {
|
|
12927
12927
|
var D;
|
|
12928
12928
|
for (I = I || []; D = A(); )
|
|
12929
12929
|
D !== !1 && I.push(D);
|
|
@@ -12957,9 +12957,9 @@ function t0() {
|
|
|
12957
12957
|
}
|
|
12958
12958
|
function q() {
|
|
12959
12959
|
var I = [];
|
|
12960
|
-
|
|
12960
|
+
T(I);
|
|
12961
12961
|
for (var D; D = F(); )
|
|
12962
|
-
D !== !1 && (I.push(D),
|
|
12962
|
+
D !== !1 && (I.push(D), T(I));
|
|
12963
12963
|
return I;
|
|
12964
12964
|
}
|
|
12965
12965
|
return H(), q();
|
|
@@ -13053,7 +13053,7 @@ function du(e) {
|
|
|
13053
13053
|
function hu(e) {
|
|
13054
13054
|
return e && typeof e == "number" ? e : 1;
|
|
13055
13055
|
}
|
|
13056
|
-
class
|
|
13056
|
+
class Wt extends Error {
|
|
13057
13057
|
/**
|
|
13058
13058
|
* Create a message for `reason`.
|
|
13059
13059
|
*
|
|
@@ -13127,19 +13127,19 @@ class Vt extends Error {
|
|
|
13127
13127
|
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = s ? s.line : void 0, this.name = wi(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = a && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
13128
13128
|
}
|
|
13129
13129
|
}
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13130
|
+
Wt.prototype.file = "";
|
|
13131
|
+
Wt.prototype.name = "";
|
|
13132
|
+
Wt.prototype.reason = "";
|
|
13133
|
+
Wt.prototype.message = "";
|
|
13134
|
+
Wt.prototype.stack = "";
|
|
13135
|
+
Wt.prototype.column = void 0;
|
|
13136
|
+
Wt.prototype.line = void 0;
|
|
13137
|
+
Wt.prototype.ancestors = void 0;
|
|
13138
|
+
Wt.prototype.cause = void 0;
|
|
13139
|
+
Wt.prototype.fatal = void 0;
|
|
13140
|
+
Wt.prototype.place = void 0;
|
|
13141
|
+
Wt.prototype.ruleId = void 0;
|
|
13142
|
+
Wt.prototype.source = void 0;
|
|
13143
13143
|
const dl = {}.hasOwnProperty, s0 = /* @__PURE__ */ new Map(), l0 = /[A-Z]/g, c0 = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), u0 = /* @__PURE__ */ new Set(["td", "th"]), Fh = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
13144
13144
|
function f0(e, t) {
|
|
13145
13145
|
if (!t || t.Fragment === void 0)
|
|
@@ -13362,7 +13362,7 @@ function _0(e, t) {
|
|
|
13362
13362
|
const r = (
|
|
13363
13363
|
/** @type {Error} */
|
|
13364
13364
|
n
|
|
13365
|
-
), i = new
|
|
13365
|
+
), i = new Wt("Cannot parse `style` attribute", {
|
|
13366
13366
|
ancestors: e.ancestors,
|
|
13367
13367
|
cause: r,
|
|
13368
13368
|
ruleId: "style",
|
|
@@ -13403,7 +13403,7 @@ function Uh(e, t, n) {
|
|
|
13403
13403
|
Ci(e);
|
|
13404
13404
|
}
|
|
13405
13405
|
function Ci(e, t) {
|
|
13406
|
-
const n = new
|
|
13406
|
+
const n = new Wt(
|
|
13407
13407
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
13408
13408
|
{
|
|
13409
13409
|
ancestors: e.ancestors,
|
|
@@ -15667,7 +15667,7 @@ function Wh(e, t) {
|
|
|
15667
15667
|
function _n(e) {
|
|
15668
15668
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
15669
15669
|
}
|
|
15670
|
-
const Zt = tr(/[A-Za-z]/),
|
|
15670
|
+
const Zt = tr(/[A-Za-z]/), Vt = tr(/[\dA-Za-z]/), O0 = tr(/[#-'*+\--9=?A-Z^-~]/);
|
|
15671
15671
|
function Fo(e) {
|
|
15672
15672
|
return (
|
|
15673
15673
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -15698,7 +15698,7 @@ function Gr(e) {
|
|
|
15698
15698
|
for (; ++n < e.length; ) {
|
|
15699
15699
|
const o = e.charCodeAt(n);
|
|
15700
15700
|
let a = "";
|
|
15701
|
-
if (o === 37 &&
|
|
15701
|
+
if (o === 37 && Vt(e.charCodeAt(n + 1)) && Vt(e.charCodeAt(n + 2)))
|
|
15702
15702
|
i = 2;
|
|
15703
15703
|
else if (o < 128)
|
|
15704
15704
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (a = String.fromCharCode(o));
|
|
@@ -15772,19 +15772,19 @@ function F0(e) {
|
|
|
15772
15772
|
}
|
|
15773
15773
|
function l(M) {
|
|
15774
15774
|
if (r++, t.containerState._closeFlow) {
|
|
15775
|
-
t.containerState._closeFlow = void 0, i &&
|
|
15775
|
+
t.containerState._closeFlow = void 0, i && j();
|
|
15776
15776
|
const Y = t.events.length;
|
|
15777
|
-
let K = Y,
|
|
15777
|
+
let K = Y, U;
|
|
15778
15778
|
for (; K--; )
|
|
15779
15779
|
if (t.events[K][0] === "exit" && t.events[K][1].type === "chunkFlow") {
|
|
15780
|
-
|
|
15780
|
+
U = t.events[K][1].end;
|
|
15781
15781
|
break;
|
|
15782
15782
|
}
|
|
15783
|
-
|
|
15783
|
+
R(r);
|
|
15784
15784
|
let ie = Y;
|
|
15785
15785
|
for (; ie < t.events.length; )
|
|
15786
15786
|
t.events[ie][1].end = {
|
|
15787
|
-
|
|
15787
|
+
...U
|
|
15788
15788
|
}, ie++;
|
|
15789
15789
|
return sn(t.events, K + 1, 0, t.events.slice(Y)), t.events.length = ie, u(M);
|
|
15790
15790
|
}
|
|
@@ -15801,7 +15801,7 @@ function F0(e) {
|
|
|
15801
15801
|
return t.containerState = {}, e.check(vu, h, p)(M);
|
|
15802
15802
|
}
|
|
15803
15803
|
function h(M) {
|
|
15804
|
-
return i &&
|
|
15804
|
+
return i && j(), R(r), v(M);
|
|
15805
15805
|
}
|
|
15806
15806
|
function p(M) {
|
|
15807
15807
|
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, y(M);
|
|
@@ -15814,7 +15814,7 @@ function F0(e) {
|
|
|
15814
15814
|
}
|
|
15815
15815
|
function y(M) {
|
|
15816
15816
|
if (M === null) {
|
|
15817
|
-
i &&
|
|
15817
|
+
i && j(), R(0), e.consume(M);
|
|
15818
15818
|
return;
|
|
15819
15819
|
}
|
|
15820
15820
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -15825,7 +15825,7 @@ function F0(e) {
|
|
|
15825
15825
|
}
|
|
15826
15826
|
function C(M) {
|
|
15827
15827
|
if (M === null) {
|
|
15828
|
-
L(e.exit("chunkFlow"), !0),
|
|
15828
|
+
L(e.exit("chunkFlow"), !0), R(0), e.consume(M);
|
|
15829
15829
|
return;
|
|
15830
15830
|
}
|
|
15831
15831
|
return Re(M) ? (e.consume(M), L(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(M), C);
|
|
@@ -15833,33 +15833,33 @@ function F0(e) {
|
|
|
15833
15833
|
function L(M, Y) {
|
|
15834
15834
|
const K = t.sliceStream(M);
|
|
15835
15835
|
if (Y && K.push(null), M.previous = o, o && (o.next = M), o = M, i.defineSkip(M.start), i.write(K), t.parser.lazy[M.start.line]) {
|
|
15836
|
-
let
|
|
15837
|
-
for (;
|
|
15836
|
+
let U = i.events.length;
|
|
15837
|
+
for (; U--; )
|
|
15838
15838
|
if (
|
|
15839
15839
|
// The token starts before the line ending…
|
|
15840
|
-
i.events[
|
|
15841
|
-
(!i.events[
|
|
15842
|
-
i.events[
|
|
15840
|
+
i.events[U][1].start.offset < a && // …and either is not ended yet…
|
|
15841
|
+
(!i.events[U][1].end || // …or ends after it.
|
|
15842
|
+
i.events[U][1].end.offset > a)
|
|
15843
15843
|
)
|
|
15844
15844
|
return;
|
|
15845
15845
|
const ie = t.events.length;
|
|
15846
|
-
let te = ie, H,
|
|
15846
|
+
let te = ie, H, T;
|
|
15847
15847
|
for (; te--; )
|
|
15848
15848
|
if (t.events[te][0] === "exit" && t.events[te][1].type === "chunkFlow") {
|
|
15849
15849
|
if (H) {
|
|
15850
|
-
|
|
15850
|
+
T = t.events[te][1].end;
|
|
15851
15851
|
break;
|
|
15852
15852
|
}
|
|
15853
15853
|
H = !0;
|
|
15854
15854
|
}
|
|
15855
|
-
for (
|
|
15856
|
-
t.events[
|
|
15857
|
-
...
|
|
15858
|
-
},
|
|
15859
|
-
sn(t.events, te + 1, 0, t.events.slice(ie)), t.events.length =
|
|
15855
|
+
for (R(r), U = ie; U < t.events.length; )
|
|
15856
|
+
t.events[U][1].end = {
|
|
15857
|
+
...T
|
|
15858
|
+
}, U++;
|
|
15859
|
+
sn(t.events, te + 1, 0, t.events.slice(ie)), t.events.length = U;
|
|
15860
15860
|
}
|
|
15861
15861
|
}
|
|
15862
|
-
function
|
|
15862
|
+
function R(M) {
|
|
15863
15863
|
let Y = n.length;
|
|
15864
15864
|
for (; Y-- > M; ) {
|
|
15865
15865
|
const K = n[Y];
|
|
@@ -15867,7 +15867,7 @@ function F0(e) {
|
|
|
15867
15867
|
}
|
|
15868
15868
|
n.length = M;
|
|
15869
15869
|
}
|
|
15870
|
-
function
|
|
15870
|
+
function j() {
|
|
15871
15871
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
15872
15872
|
}
|
|
15873
15873
|
}
|
|
@@ -15980,10 +15980,10 @@ function V0(e, t, n) {
|
|
|
15980
15980
|
return Zt(m) ? (e.consume(m), a) : m === 64 ? n(m) : u(m);
|
|
15981
15981
|
}
|
|
15982
15982
|
function a(m) {
|
|
15983
|
-
return m === 43 || m === 45 || m === 46 ||
|
|
15983
|
+
return m === 43 || m === 45 || m === 46 || Vt(m) ? (r = 1, s(m)) : u(m);
|
|
15984
15984
|
}
|
|
15985
15985
|
function s(m) {
|
|
15986
|
-
return m === 58 ? (e.consume(m), r = 0, l) : (m === 43 || m === 45 || m === 46 ||
|
|
15986
|
+
return m === 58 ? (e.consume(m), r = 0, l) : (m === 43 || m === 45 || m === 46 || Vt(m)) && r++ < 32 ? (e.consume(m), s) : (r = 0, u(m));
|
|
15987
15987
|
}
|
|
15988
15988
|
function l(m) {
|
|
15989
15989
|
return m === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : m === null || m === 32 || m === 60 || Fo(m) ? n(m) : (e.consume(m), l);
|
|
@@ -15992,13 +15992,13 @@ function V0(e, t, n) {
|
|
|
15992
15992
|
return m === 64 ? (e.consume(m), h) : O0(m) ? (e.consume(m), u) : n(m);
|
|
15993
15993
|
}
|
|
15994
15994
|
function h(m) {
|
|
15995
|
-
return
|
|
15995
|
+
return Vt(m) ? p(m) : n(m);
|
|
15996
15996
|
}
|
|
15997
15997
|
function p(m) {
|
|
15998
15998
|
return m === 46 ? (e.consume(m), r = 0, h) : m === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : v(m);
|
|
15999
15999
|
}
|
|
16000
16000
|
function v(m) {
|
|
16001
|
-
if ((m === 45 ||
|
|
16001
|
+
if ((m === 45 || Vt(m)) && r++ < 63) {
|
|
16002
16002
|
const y = m === 45 ? v : p;
|
|
16003
16003
|
return e.consume(m), y;
|
|
16004
16004
|
}
|
|
@@ -16080,7 +16080,7 @@ function Y0(e, t, n) {
|
|
|
16080
16080
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), l;
|
|
16081
16081
|
}
|
|
16082
16082
|
function l(p) {
|
|
16083
|
-
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a =
|
|
16083
|
+
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = Vt, h(p));
|
|
16084
16084
|
}
|
|
16085
16085
|
function u(p) {
|
|
16086
16086
|
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = N0, h) : (e.enter("characterReferenceValue"), o = 7, a = Es, h(p));
|
|
@@ -16088,7 +16088,7 @@ function Y0(e, t, n) {
|
|
|
16088
16088
|
function h(p) {
|
|
16089
16089
|
if (p === 59 && i) {
|
|
16090
16090
|
const v = e.exit("characterReferenceValue");
|
|
16091
|
-
return a ===
|
|
16091
|
+
return a === Vt && !gl(r.sliceSerialize(v)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
16092
16092
|
}
|
|
16093
16093
|
return a(p) && i++ < o ? (e.consume(p), h) : n(p);
|
|
16094
16094
|
}
|
|
@@ -16108,67 +16108,67 @@ function X0(e, t, n) {
|
|
|
16108
16108
|
};
|
|
16109
16109
|
let o = 0, a = 0, s;
|
|
16110
16110
|
return l;
|
|
16111
|
-
function l(
|
|
16112
|
-
return u(
|
|
16111
|
+
function l(U) {
|
|
16112
|
+
return u(U);
|
|
16113
16113
|
}
|
|
16114
|
-
function u(
|
|
16114
|
+
function u(U) {
|
|
16115
16115
|
const ie = r.events[r.events.length - 1];
|
|
16116
|
-
return o = ie && ie[1].type === "linePrefix" ? ie[2].sliceSerialize(ie[1], !0).length : 0, s =
|
|
16116
|
+
return o = ie && ie[1].type === "linePrefix" ? ie[2].sliceSerialize(ie[1], !0).length : 0, s = U, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), h(U);
|
|
16117
16117
|
}
|
|
16118
|
-
function h(
|
|
16119
|
-
return
|
|
16118
|
+
function h(U) {
|
|
16119
|
+
return U === s ? (a++, e.consume(U), h) : a < 3 ? n(U) : (e.exit("codeFencedFenceSequence"), Ye(U) ? rt(e, p, "whitespace")(U) : p(U));
|
|
16120
16120
|
}
|
|
16121
|
-
function p(
|
|
16122
|
-
return
|
|
16121
|
+
function p(U) {
|
|
16122
|
+
return U === null || Re(U) ? (e.exit("codeFencedFence"), r.interrupt ? t(U) : e.check(yu, C, Y)(U)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
16123
16123
|
contentType: "string"
|
|
16124
|
-
}), v(
|
|
16124
|
+
}), v(U));
|
|
16125
16125
|
}
|
|
16126
|
-
function v(
|
|
16127
|
-
return
|
|
16126
|
+
function v(U) {
|
|
16127
|
+
return U === null || Re(U) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(U)) : Ye(U) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), rt(e, m, "whitespace")(U)) : U === 96 && U === s ? n(U) : (e.consume(U), v);
|
|
16128
16128
|
}
|
|
16129
|
-
function m(
|
|
16130
|
-
return
|
|
16129
|
+
function m(U) {
|
|
16130
|
+
return U === null || Re(U) ? p(U) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
16131
16131
|
contentType: "string"
|
|
16132
|
-
}), y(
|
|
16132
|
+
}), y(U));
|
|
16133
16133
|
}
|
|
16134
|
-
function y(
|
|
16135
|
-
return
|
|
16134
|
+
function y(U) {
|
|
16135
|
+
return U === null || Re(U) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(U)) : U === 96 && U === s ? n(U) : (e.consume(U), y);
|
|
16136
16136
|
}
|
|
16137
|
-
function C(
|
|
16138
|
-
return e.attempt(i, Y, L)(
|
|
16137
|
+
function C(U) {
|
|
16138
|
+
return e.attempt(i, Y, L)(U);
|
|
16139
16139
|
}
|
|
16140
|
-
function L(
|
|
16141
|
-
return e.enter("lineEnding"), e.consume(
|
|
16140
|
+
function L(U) {
|
|
16141
|
+
return e.enter("lineEnding"), e.consume(U), e.exit("lineEnding"), R;
|
|
16142
16142
|
}
|
|
16143
|
-
function
|
|
16144
|
-
return o > 0 && Ye(
|
|
16143
|
+
function R(U) {
|
|
16144
|
+
return o > 0 && Ye(U) ? rt(e, j, "linePrefix", o + 1)(U) : j(U);
|
|
16145
16145
|
}
|
|
16146
|
-
function
|
|
16147
|
-
return
|
|
16146
|
+
function j(U) {
|
|
16147
|
+
return U === null || Re(U) ? e.check(yu, C, Y)(U) : (e.enter("codeFlowValue"), M(U));
|
|
16148
16148
|
}
|
|
16149
|
-
function M(
|
|
16150
|
-
return
|
|
16149
|
+
function M(U) {
|
|
16150
|
+
return U === null || Re(U) ? (e.exit("codeFlowValue"), j(U)) : (e.consume(U), M);
|
|
16151
16151
|
}
|
|
16152
|
-
function Y(
|
|
16153
|
-
return e.exit("codeFenced"), t(
|
|
16152
|
+
function Y(U) {
|
|
16153
|
+
return e.exit("codeFenced"), t(U);
|
|
16154
16154
|
}
|
|
16155
|
-
function K(
|
|
16155
|
+
function K(U, ie, te) {
|
|
16156
16156
|
let H = 0;
|
|
16157
|
-
return
|
|
16158
|
-
function
|
|
16159
|
-
return
|
|
16157
|
+
return T;
|
|
16158
|
+
function T(D) {
|
|
16159
|
+
return U.enter("lineEnding"), U.consume(D), U.exit("lineEnding"), A;
|
|
16160
16160
|
}
|
|
16161
16161
|
function A(D) {
|
|
16162
|
-
return
|
|
16162
|
+
return U.enter("codeFencedFence"), Ye(D) ? rt(U, F, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : F(D);
|
|
16163
16163
|
}
|
|
16164
16164
|
function F(D) {
|
|
16165
|
-
return D === s ? (
|
|
16165
|
+
return D === s ? (U.enter("codeFencedFenceSequence"), q(D)) : te(D);
|
|
16166
16166
|
}
|
|
16167
16167
|
function q(D) {
|
|
16168
|
-
return D === s ? (H++,
|
|
16168
|
+
return D === s ? (H++, U.consume(D), q) : H >= a ? (U.exit("codeFencedFenceSequence"), Ye(D) ? rt(U, I, "whitespace")(D) : I(D)) : te(D);
|
|
16169
16169
|
}
|
|
16170
16170
|
function I(D) {
|
|
16171
|
-
return D === null || Re(D) ? (
|
|
16171
|
+
return D === null || Re(D) ? (U.exit("codeFencedFence"), ie(D)) : te(D);
|
|
16172
16172
|
}
|
|
16173
16173
|
}
|
|
16174
16174
|
}
|
|
@@ -16475,8 +16475,8 @@ function ax(e, t) {
|
|
|
16475
16475
|
// Find a void token that includes a break.
|
|
16476
16476
|
s[v][0] === "exit" && s[v - 1][0] === "enter" && s[v][1].type === s[v - 1][1].type && s[v][1].start.line !== s[v][1].end.line && (C = v + 1, L.push(C), m._tokenizer = void 0, m.previous = void 0, m = m.next);
|
|
16477
16477
|
for (a.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : L.pop(), v = L.length; v--; ) {
|
|
16478
|
-
const
|
|
16479
|
-
l.push([
|
|
16478
|
+
const R = s.slice(L[v], L[v + 1]), j = o.pop();
|
|
16479
|
+
l.push([j, j + R.length - 1]), e.splice(j, 2, R);
|
|
16480
16480
|
}
|
|
16481
16481
|
for (l.reverse(), v = -1; ++v < l.length; )
|
|
16482
16482
|
u[y + l[v][0]] = y + l[v][1], y += l[v][1] - l[v][0] - 1;
|
|
@@ -16530,27 +16530,27 @@ function Yh(e, t, n, r, i, o, a, s, l) {
|
|
|
16530
16530
|
const u = l || Number.POSITIVE_INFINITY;
|
|
16531
16531
|
let h = 0;
|
|
16532
16532
|
return p;
|
|
16533
|
-
function p(
|
|
16534
|
-
return
|
|
16533
|
+
function p(R) {
|
|
16534
|
+
return R === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(R), e.exit(o), v) : R === null || R === 32 || R === 41 || Fo(R) ? n(R) : (e.enter(r), e.enter(a), e.enter(s), e.enter("chunkString", {
|
|
16535
16535
|
contentType: "string"
|
|
16536
|
-
}), C(
|
|
16536
|
+
}), C(R));
|
|
16537
16537
|
}
|
|
16538
|
-
function v(
|
|
16539
|
-
return
|
|
16538
|
+
function v(R) {
|
|
16539
|
+
return R === 62 ? (e.enter(o), e.consume(R), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
|
|
16540
16540
|
contentType: "string"
|
|
16541
|
-
}), m(
|
|
16541
|
+
}), m(R));
|
|
16542
16542
|
}
|
|
16543
|
-
function m(
|
|
16544
|
-
return
|
|
16543
|
+
function m(R) {
|
|
16544
|
+
return R === 62 ? (e.exit("chunkString"), e.exit(s), v(R)) : R === null || R === 60 || Re(R) ? n(R) : (e.consume(R), R === 92 ? y : m);
|
|
16545
16545
|
}
|
|
16546
|
-
function y(
|
|
16547
|
-
return
|
|
16546
|
+
function y(R) {
|
|
16547
|
+
return R === 60 || R === 62 || R === 92 ? (e.consume(R), m) : m(R);
|
|
16548
16548
|
}
|
|
16549
|
-
function C(
|
|
16550
|
-
return !h && (
|
|
16549
|
+
function C(R) {
|
|
16550
|
+
return !h && (R === null || R === 41 || dt(R)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(R)) : h < u && R === 40 ? (e.consume(R), h++, C) : R === 41 ? (e.consume(R), h--, C) : R === null || R === 32 || R === 40 || Fo(R) ? n(R) : (e.consume(R), R === 92 ? L : C);
|
|
16551
16551
|
}
|
|
16552
|
-
function L(
|
|
16553
|
-
return
|
|
16552
|
+
function L(R) {
|
|
16553
|
+
return R === 40 || R === 41 || R === 92 ? (e.consume(R), C) : C(R);
|
|
16554
16554
|
}
|
|
16555
16555
|
}
|
|
16556
16556
|
function Xh(e, t, n, r, i, o) {
|
|
@@ -16838,27 +16838,27 @@ function Ex(e, t, n) {
|
|
|
16838
16838
|
function L(N) {
|
|
16839
16839
|
if (N === null || N === 47 || N === 62 || dt(N)) {
|
|
16840
16840
|
const oe = N === 47, ue = a.toLowerCase();
|
|
16841
|
-
return !oe && !o && xu.includes(ue) ? (i = 1, r.interrupt ? t(N) : F(N)) : xx.includes(a.toLowerCase()) ? (i = 6, oe ? (e.consume(N),
|
|
16841
|
+
return !oe && !o && xu.includes(ue) ? (i = 1, r.interrupt ? t(N) : F(N)) : xx.includes(a.toLowerCase()) ? (i = 6, oe ? (e.consume(N), R) : r.interrupt ? t(N) : F(N)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(N) : o ? j(N) : M(N));
|
|
16842
16842
|
}
|
|
16843
|
-
return N === 45 ||
|
|
16843
|
+
return N === 45 || Vt(N) ? (e.consume(N), a += String.fromCharCode(N), L) : n(N);
|
|
16844
16844
|
}
|
|
16845
|
-
function
|
|
16845
|
+
function R(N) {
|
|
16846
16846
|
return N === 62 ? (e.consume(N), r.interrupt ? t : F) : n(N);
|
|
16847
16847
|
}
|
|
16848
|
-
function
|
|
16849
|
-
return Ye(N) ? (e.consume(N),
|
|
16848
|
+
function j(N) {
|
|
16849
|
+
return Ye(N) ? (e.consume(N), j) : T(N);
|
|
16850
16850
|
}
|
|
16851
16851
|
function M(N) {
|
|
16852
|
-
return N === 47 ? (e.consume(N),
|
|
16852
|
+
return N === 47 ? (e.consume(N), T) : N === 58 || N === 95 || Zt(N) ? (e.consume(N), Y) : Ye(N) ? (e.consume(N), M) : T(N);
|
|
16853
16853
|
}
|
|
16854
16854
|
function Y(N) {
|
|
16855
|
-
return N === 45 || N === 46 || N === 58 || N === 95 ||
|
|
16855
|
+
return N === 45 || N === 46 || N === 58 || N === 95 || Vt(N) ? (e.consume(N), Y) : K(N);
|
|
16856
16856
|
}
|
|
16857
16857
|
function K(N) {
|
|
16858
|
-
return N === 61 ? (e.consume(N),
|
|
16858
|
+
return N === 61 ? (e.consume(N), U) : Ye(N) ? (e.consume(N), K) : M(N);
|
|
16859
16859
|
}
|
|
16860
|
-
function
|
|
16861
|
-
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), l = N, ie) : Ye(N) ? (e.consume(N),
|
|
16860
|
+
function U(N) {
|
|
16861
|
+
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), l = N, ie) : Ye(N) ? (e.consume(N), U) : te(N);
|
|
16862
16862
|
}
|
|
16863
16863
|
function ie(N) {
|
|
16864
16864
|
return N === l ? (e.consume(N), l = null, H) : N === null || Re(N) ? n(N) : (e.consume(N), ie);
|
|
@@ -16869,7 +16869,7 @@ function Ex(e, t, n) {
|
|
|
16869
16869
|
function H(N) {
|
|
16870
16870
|
return N === 47 || N === 62 || Ye(N) ? M(N) : n(N);
|
|
16871
16871
|
}
|
|
16872
|
-
function
|
|
16872
|
+
function T(N) {
|
|
16873
16873
|
return N === 62 ? (e.consume(N), A) : n(N);
|
|
16874
16874
|
}
|
|
16875
16875
|
function A(N) {
|
|
@@ -16944,7 +16944,7 @@ function Tx(e, t, n) {
|
|
|
16944
16944
|
return k === 33 ? (e.consume(k), u) : k === 47 ? (e.consume(k), K) : k === 63 ? (e.consume(k), M) : Zt(k) ? (e.consume(k), te) : n(k);
|
|
16945
16945
|
}
|
|
16946
16946
|
function u(k) {
|
|
16947
|
-
return k === 45 ? (e.consume(k), h) : k === 91 ? (e.consume(k), o = 0, y) : Zt(k) ? (e.consume(k),
|
|
16947
|
+
return k === 45 ? (e.consume(k), h) : k === 91 ? (e.consume(k), o = 0, y) : Zt(k) ? (e.consume(k), j) : n(k);
|
|
16948
16948
|
}
|
|
16949
16949
|
function h(k) {
|
|
16950
16950
|
return k === 45 ? (e.consume(k), m) : n(k);
|
|
@@ -16966,13 +16966,13 @@ function Tx(e, t, n) {
|
|
|
16966
16966
|
return k === null ? n(k) : k === 93 ? (e.consume(k), L) : Re(k) ? (a = C, J(k)) : (e.consume(k), C);
|
|
16967
16967
|
}
|
|
16968
16968
|
function L(k) {
|
|
16969
|
-
return k === 93 ? (e.consume(k),
|
|
16969
|
+
return k === 93 ? (e.consume(k), R) : C(k);
|
|
16970
16970
|
}
|
|
16971
|
-
function
|
|
16972
|
-
return k === 62 ? W(k) : k === 93 ? (e.consume(k),
|
|
16971
|
+
function R(k) {
|
|
16972
|
+
return k === 62 ? W(k) : k === 93 ? (e.consume(k), R) : C(k);
|
|
16973
16973
|
}
|
|
16974
|
-
function
|
|
16975
|
-
return k === null || k === 62 ? W(k) : Re(k) ? (a =
|
|
16974
|
+
function j(k) {
|
|
16975
|
+
return k === null || k === 62 ? W(k) : Re(k) ? (a = j, J(k)) : (e.consume(k), j);
|
|
16976
16976
|
}
|
|
16977
16977
|
function M(k) {
|
|
16978
16978
|
return k === null ? n(k) : k === 63 ? (e.consume(k), Y) : Re(k) ? (a = M, J(k)) : (e.consume(k), M);
|
|
@@ -16981,22 +16981,22 @@ function Tx(e, t, n) {
|
|
|
16981
16981
|
return k === 62 ? W(k) : M(k);
|
|
16982
16982
|
}
|
|
16983
16983
|
function K(k) {
|
|
16984
|
-
return Zt(k) ? (e.consume(k),
|
|
16984
|
+
return Zt(k) ? (e.consume(k), U) : n(k);
|
|
16985
16985
|
}
|
|
16986
|
-
function
|
|
16987
|
-
return k === 45 ||
|
|
16986
|
+
function U(k) {
|
|
16987
|
+
return k === 45 || Vt(k) ? (e.consume(k), U) : ie(k);
|
|
16988
16988
|
}
|
|
16989
16989
|
function ie(k) {
|
|
16990
16990
|
return Re(k) ? (a = ie, J(k)) : Ye(k) ? (e.consume(k), ie) : W(k);
|
|
16991
16991
|
}
|
|
16992
16992
|
function te(k) {
|
|
16993
|
-
return k === 45 ||
|
|
16993
|
+
return k === 45 || Vt(k) ? (e.consume(k), te) : k === 47 || k === 62 || dt(k) ? H(k) : n(k);
|
|
16994
16994
|
}
|
|
16995
16995
|
function H(k) {
|
|
16996
|
-
return k === 47 ? (e.consume(k), W) : k === 58 || k === 95 || Zt(k) ? (e.consume(k),
|
|
16996
|
+
return k === 47 ? (e.consume(k), W) : k === 58 || k === 95 || Zt(k) ? (e.consume(k), T) : Re(k) ? (a = H, J(k)) : Ye(k) ? (e.consume(k), H) : W(k);
|
|
16997
16997
|
}
|
|
16998
|
-
function
|
|
16999
|
-
return k === 45 || k === 46 || k === 58 || k === 95 ||
|
|
16998
|
+
function T(k) {
|
|
16999
|
+
return k === 45 || k === 46 || k === 58 || k === 95 || Vt(k) ? (e.consume(k), T) : A(k);
|
|
17000
17000
|
}
|
|
17001
17001
|
function A(k) {
|
|
17002
17002
|
return k === 61 ? (e.consume(k), F) : Re(k) ? (a = A, J(k)) : Ye(k) ? (e.consume(k), A) : H(k);
|
|
@@ -17558,11 +17558,11 @@ function v1(e, t, n) {
|
|
|
17558
17558
|
let a = [], s = [];
|
|
17559
17559
|
const l = {
|
|
17560
17560
|
attempt: ie(K),
|
|
17561
|
-
check: ie(
|
|
17562
|
-
consume:
|
|
17561
|
+
check: ie(U),
|
|
17562
|
+
consume: j,
|
|
17563
17563
|
enter: M,
|
|
17564
17564
|
exit: Y,
|
|
17565
|
-
interrupt: ie(
|
|
17565
|
+
interrupt: ie(U, {
|
|
17566
17566
|
interrupt: !0
|
|
17567
17567
|
})
|
|
17568
17568
|
}, u = {
|
|
@@ -17605,7 +17605,7 @@ function v1(e, t, n) {
|
|
|
17605
17605
|
};
|
|
17606
17606
|
}
|
|
17607
17607
|
function C(A) {
|
|
17608
|
-
i[A.line] = A.column,
|
|
17608
|
+
i[A.line] = A.column, T();
|
|
17609
17609
|
}
|
|
17610
17610
|
function L() {
|
|
17611
17611
|
let A;
|
|
@@ -17613,16 +17613,16 @@ function v1(e, t, n) {
|
|
|
17613
17613
|
const F = a[r._index];
|
|
17614
17614
|
if (typeof F == "string")
|
|
17615
17615
|
for (A = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === A && r._bufferIndex < F.length; )
|
|
17616
|
-
|
|
17616
|
+
R(F.charCodeAt(r._bufferIndex));
|
|
17617
17617
|
else
|
|
17618
|
-
|
|
17618
|
+
R(F);
|
|
17619
17619
|
}
|
|
17620
17620
|
}
|
|
17621
|
-
function
|
|
17621
|
+
function R(A) {
|
|
17622
17622
|
h = h(A);
|
|
17623
17623
|
}
|
|
17624
|
-
function
|
|
17625
|
-
Re(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1,
|
|
17624
|
+
function j(A) {
|
|
17625
|
+
Re(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1, T()) : A !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
17626
17626
|
// strings.
|
|
17627
17627
|
/** @type {string} */
|
|
17628
17628
|
a[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = A;
|
|
@@ -17638,7 +17638,7 @@ function v1(e, t, n) {
|
|
|
17638
17638
|
function K(A, F) {
|
|
17639
17639
|
te(A, F.from);
|
|
17640
17640
|
}
|
|
17641
|
-
function
|
|
17641
|
+
function U(A, F) {
|
|
17642
17642
|
F.restore();
|
|
17643
17643
|
}
|
|
17644
17644
|
function ie(A, F) {
|
|
@@ -17702,10 +17702,10 @@ function v1(e, t, n) {
|
|
|
17702
17702
|
restore: W
|
|
17703
17703
|
};
|
|
17704
17704
|
function W() {
|
|
17705
|
-
r = A, u.previous = F, u.currentConstruct = q, u.events.length = I, s = D,
|
|
17705
|
+
r = A, u.previous = F, u.currentConstruct = q, u.events.length = I, s = D, T();
|
|
17706
17706
|
}
|
|
17707
17707
|
}
|
|
17708
|
-
function
|
|
17708
|
+
function T() {
|
|
17709
17709
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
17710
17710
|
}
|
|
17711
17711
|
}
|
|
@@ -17897,7 +17897,7 @@ function A1(e) {
|
|
|
17897
17897
|
autolinkEmail: be,
|
|
17898
17898
|
autolinkProtocol: et,
|
|
17899
17899
|
blockQuote: l(),
|
|
17900
|
-
characterEscapeValue:
|
|
17900
|
+
characterEscapeValue: T,
|
|
17901
17901
|
characterReferenceMarkerHexadecimal: ue,
|
|
17902
17902
|
characterReferenceMarkerNumeric: ue,
|
|
17903
17903
|
characterReferenceValue: we,
|
|
@@ -17906,22 +17906,22 @@ function A1(e) {
|
|
|
17906
17906
|
codeFencedFence: C,
|
|
17907
17907
|
codeFencedFenceInfo: m,
|
|
17908
17908
|
codeFencedFenceMeta: y,
|
|
17909
|
-
codeFlowValue:
|
|
17910
|
-
codeIndented: l(
|
|
17909
|
+
codeFlowValue: T,
|
|
17910
|
+
codeIndented: l(R),
|
|
17911
17911
|
codeText: l(D),
|
|
17912
|
-
codeTextData:
|
|
17913
|
-
data:
|
|
17912
|
+
codeTextData: T,
|
|
17913
|
+
data: T,
|
|
17914
17914
|
definition: l(),
|
|
17915
17915
|
definitionDestinationString: Y,
|
|
17916
|
-
definitionLabelString:
|
|
17916
|
+
definitionLabelString: j,
|
|
17917
17917
|
definitionTitleString: M,
|
|
17918
17918
|
emphasis: l(),
|
|
17919
17919
|
hardBreakEscape: l(F),
|
|
17920
17920
|
hardBreakTrailing: l(F),
|
|
17921
17921
|
htmlFlow: l(q),
|
|
17922
|
-
htmlFlowData:
|
|
17922
|
+
htmlFlowData: T,
|
|
17923
17923
|
htmlText: l(I),
|
|
17924
|
-
htmlTextData:
|
|
17924
|
+
htmlTextData: T,
|
|
17925
17925
|
image: l(J),
|
|
17926
17926
|
label: X,
|
|
17927
17927
|
labelText: le,
|
|
@@ -17937,7 +17937,7 @@ function A1(e) {
|
|
|
17937
17937
|
resource: ge,
|
|
17938
17938
|
setextHeading: l(te),
|
|
17939
17939
|
setextHeadingLineSequence: ie,
|
|
17940
|
-
setextHeadingText:
|
|
17940
|
+
setextHeadingText: U,
|
|
17941
17941
|
strong: l(),
|
|
17942
17942
|
thematicBreak: l()
|
|
17943
17943
|
}
|
|
@@ -17966,18 +17966,18 @@ function A1(e) {
|
|
|
17966
17966
|
if (ee[S][0] === "enter")
|
|
17967
17967
|
g.push(S);
|
|
17968
17968
|
else {
|
|
17969
|
-
const
|
|
17970
|
-
S = i(ee,
|
|
17969
|
+
const $ = g.pop();
|
|
17970
|
+
S = i(ee, $, S);
|
|
17971
17971
|
}
|
|
17972
17972
|
for (S = -1; ++S < ee.length; ) {
|
|
17973
|
-
const
|
|
17974
|
-
ep.call(
|
|
17973
|
+
const $ = t[ee[S][0]];
|
|
17974
|
+
ep.call($, ee[S][1].type) && $[ee[S][1].type].call(Object.assign({
|
|
17975
17975
|
sliceSerialize: ee[S][2].sliceSerialize
|
|
17976
17976
|
}, d), ee[S][1]);
|
|
17977
17977
|
}
|
|
17978
17978
|
if (d.tokenStack.length > 0) {
|
|
17979
|
-
const
|
|
17980
|
-
(
|
|
17979
|
+
const $ = d.tokenStack[d.tokenStack.length - 1];
|
|
17980
|
+
($[1] || Su).call(d, void 0, $[0]);
|
|
17981
17981
|
}
|
|
17982
17982
|
for (w.position = {
|
|
17983
17983
|
start: Xn(ee.length > 0 ? ee[0][1].start : {
|
|
@@ -17995,7 +17995,7 @@ function A1(e) {
|
|
|
17995
17995
|
return w;
|
|
17996
17996
|
}
|
|
17997
17997
|
function i(ee, w, d) {
|
|
17998
|
-
let g = w - 1, S = -1,
|
|
17998
|
+
let g = w - 1, S = -1, $ = !1, Z, re, ke, Pe;
|
|
17999
17999
|
for (; ++g <= d; ) {
|
|
18000
18000
|
const pe = ee[g];
|
|
18001
18001
|
switch (pe[1].type) {
|
|
@@ -18025,7 +18025,7 @@ function A1(e) {
|
|
|
18025
18025
|
const He = ee[Ne];
|
|
18026
18026
|
if (He[1].type === "lineEnding" || He[1].type === "lineEndingBlank") {
|
|
18027
18027
|
if (He[0] === "exit") continue;
|
|
18028
|
-
re && (ee[re][1].type = "lineEndingBlank",
|
|
18028
|
+
re && (ee[re][1].type = "lineEndingBlank", $ = !0), He[1].type = "lineEnding", re = Ne;
|
|
18029
18029
|
} else if (!(He[1].type === "linePrefix" || He[1].type === "blockQuotePrefix" || He[1].type === "blockQuotePrefixWhitespace" || He[1].type === "blockQuoteMarker" || He[1].type === "listItemIndent")) break;
|
|
18030
18030
|
}
|
|
18031
18031
|
ke && (!re || ke < re) && (Z._spread = !0), Z.end = Object.assign({}, re ? ee[re][1].start : pe[1].end), ee.splice(re || g, 0, ["exit", Z, pe[2]]), g++, d++;
|
|
@@ -18042,7 +18042,7 @@ function A1(e) {
|
|
|
18042
18042
|
}
|
|
18043
18043
|
}
|
|
18044
18044
|
}
|
|
18045
|
-
return ee[w][1]._spread =
|
|
18045
|
+
return ee[w][1]._spread = $, d;
|
|
18046
18046
|
}
|
|
18047
18047
|
function o(ee, w) {
|
|
18048
18048
|
return d;
|
|
@@ -18106,11 +18106,11 @@ function A1(e) {
|
|
|
18106
18106
|
const ee = this.resume(), w = this.stack[this.stack.length - 1];
|
|
18107
18107
|
w.value = ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
18108
18108
|
}
|
|
18109
|
-
function
|
|
18109
|
+
function R() {
|
|
18110
18110
|
const ee = this.resume(), w = this.stack[this.stack.length - 1];
|
|
18111
18111
|
w.value = ee.replace(/(\r?\n|\r)$/g, "");
|
|
18112
18112
|
}
|
|
18113
|
-
function
|
|
18113
|
+
function j(ee) {
|
|
18114
18114
|
const w = this.resume(), d = this.stack[this.stack.length - 1];
|
|
18115
18115
|
d.label = w, d.identifier = _n(this.sliceSerialize(ee)).toLowerCase();
|
|
18116
18116
|
}
|
|
@@ -18129,7 +18129,7 @@ function A1(e) {
|
|
|
18129
18129
|
w.depth = d;
|
|
18130
18130
|
}
|
|
18131
18131
|
}
|
|
18132
|
-
function
|
|
18132
|
+
function U() {
|
|
18133
18133
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
18134
18134
|
}
|
|
18135
18135
|
function ie(ee) {
|
|
@@ -18148,7 +18148,7 @@ function A1(e) {
|
|
|
18148
18148
|
end: void 0
|
|
18149
18149
|
}, d.push(g)), this.stack.push(g);
|
|
18150
18150
|
}
|
|
18151
|
-
function
|
|
18151
|
+
function T(ee) {
|
|
18152
18152
|
const w = this.stack.pop();
|
|
18153
18153
|
w.value += this.sliceSerialize(ee), w.position.end = Xn(ee.end);
|
|
18154
18154
|
}
|
|
@@ -18159,7 +18159,7 @@ function A1(e) {
|
|
|
18159
18159
|
d.position.end = Xn(ee.end), this.data.atHardBreak = void 0;
|
|
18160
18160
|
return;
|
|
18161
18161
|
}
|
|
18162
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(w.type) && (H.call(this, ee),
|
|
18162
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(w.type) && (H.call(this, ee), T.call(this, ee));
|
|
18163
18163
|
}
|
|
18164
18164
|
function F() {
|
|
18165
18165
|
this.data.atHardBreak = !0;
|
|
@@ -18239,12 +18239,12 @@ function A1(e) {
|
|
|
18239
18239
|
w.position.end = Xn(ee.end);
|
|
18240
18240
|
}
|
|
18241
18241
|
function et(ee) {
|
|
18242
|
-
|
|
18242
|
+
T.call(this, ee);
|
|
18243
18243
|
const w = this.stack[this.stack.length - 1];
|
|
18244
18244
|
w.url = this.sliceSerialize(ee);
|
|
18245
18245
|
}
|
|
18246
18246
|
function be(ee) {
|
|
18247
|
-
|
|
18247
|
+
T.call(this, ee);
|
|
18248
18248
|
const w = this.stack[this.stack.length - 1];
|
|
18249
18249
|
w.url = "mailto:" + this.sliceSerialize(ee);
|
|
18250
18250
|
}
|
|
@@ -18963,8 +18963,8 @@ function lk(e) {
|
|
|
18963
18963
|
const y = [], C = e.footnoteCounts.get(p);
|
|
18964
18964
|
for (; C !== void 0 && ++m <= C; ) {
|
|
18965
18965
|
y.length > 0 && y.push({ type: "text", value: " " });
|
|
18966
|
-
let
|
|
18967
|
-
typeof
|
|
18966
|
+
let j = typeof n == "string" ? n : n(l, m);
|
|
18967
|
+
typeof j == "string" && (j = { type: "text", value: j }), y.push({
|
|
18968
18968
|
type: "element",
|
|
18969
18969
|
tagName: "a",
|
|
18970
18970
|
properties: {
|
|
@@ -18973,22 +18973,22 @@ function lk(e) {
|
|
|
18973
18973
|
ariaLabel: typeof r == "string" ? r : r(l, m),
|
|
18974
18974
|
className: ["data-footnote-backref"]
|
|
18975
18975
|
},
|
|
18976
|
-
children: Array.isArray(
|
|
18976
|
+
children: Array.isArray(j) ? j : [j]
|
|
18977
18977
|
});
|
|
18978
18978
|
}
|
|
18979
18979
|
const L = h[h.length - 1];
|
|
18980
18980
|
if (L && L.type === "element" && L.tagName === "p") {
|
|
18981
|
-
const
|
|
18982
|
-
|
|
18981
|
+
const j = L.children[L.children.length - 1];
|
|
18982
|
+
j && j.type === "text" ? j.value += " " : L.children.push({ type: "text", value: " " }), L.children.push(...y);
|
|
18983
18983
|
} else
|
|
18984
18984
|
h.push(...y);
|
|
18985
|
-
const
|
|
18985
|
+
const R = {
|
|
18986
18986
|
type: "element",
|
|
18987
18987
|
tagName: "li",
|
|
18988
18988
|
properties: { id: t + "fn-" + v },
|
|
18989
18989
|
children: e.wrap(h, !0)
|
|
18990
18990
|
};
|
|
18991
|
-
e.patch(u,
|
|
18991
|
+
e.patch(u, R), s.push(R);
|
|
18992
18992
|
}
|
|
18993
18993
|
if (s.length !== 0)
|
|
18994
18994
|
return {
|
|
@@ -19135,14 +19135,14 @@ function lp(e, t, n, r) {
|
|
|
19135
19135
|
if ((!t || o(l, u, h[h.length - 1] || void 0)) && (m = gk(n(l, h)), m[0] === Is))
|
|
19136
19136
|
return m;
|
|
19137
19137
|
if ("children" in l && l.children) {
|
|
19138
|
-
const
|
|
19138
|
+
const R = (
|
|
19139
19139
|
/** @type {UnistParent} */
|
|
19140
19140
|
l
|
|
19141
19141
|
);
|
|
19142
|
-
if (
|
|
19143
|
-
for (C = (r ?
|
|
19144
|
-
const
|
|
19145
|
-
if (y = s(
|
|
19142
|
+
if (R.children && m[0] !== mk)
|
|
19143
|
+
for (C = (r ? R.children.length : -1) + a, L = h.concat(R); C > -1 && C < R.children.length; ) {
|
|
19144
|
+
const j = R.children[C];
|
|
19145
|
+
if (y = s(j, C, L)(), y[0] === Is)
|
|
19146
19146
|
return y;
|
|
19147
19147
|
C = typeof y[1] == "number" ? y[1] : C + a;
|
|
19148
19148
|
}
|
|
@@ -19189,8 +19189,8 @@ function bk(e, t) {
|
|
|
19189
19189
|
return m(s, h, p);
|
|
19190
19190
|
if (s.options.passThrough && s.options.passThrough.includes(v)) {
|
|
19191
19191
|
if ("children" in h) {
|
|
19192
|
-
const { children: C, ...L } = h,
|
|
19193
|
-
return
|
|
19192
|
+
const { children: C, ...L } = h, R = Ei(L);
|
|
19193
|
+
return R.children = s.all(h), R;
|
|
19194
19194
|
}
|
|
19195
19195
|
return Ei(h);
|
|
19196
19196
|
}
|
|
@@ -19313,11 +19313,11 @@ function Sk() {
|
|
|
19313
19313
|
return u[h];
|
|
19314
19314
|
};
|
|
19315
19315
|
return Ga = function l() {
|
|
19316
|
-
var u, h, p, v, m, y, C = arguments[0], L = 1,
|
|
19317
|
-
for (typeof C == "boolean" && (
|
|
19316
|
+
var u, h, p, v, m, y, C = arguments[0], L = 1, R = arguments.length, j = !1;
|
|
19317
|
+
for (typeof C == "boolean" && (j = C, C = arguments[1] || {}, L = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); L < R; ++L)
|
|
19318
19318
|
if (u = arguments[L], u != null)
|
|
19319
19319
|
for (h in u)
|
|
19320
|
-
p = s(C, h), v = s(u, h), C !== v && (
|
|
19320
|
+
p = s(C, h), v = s(u, h), C !== v && (j && v && (o(v) || (m = i(v))) ? (m ? (m = !1, y = p && i(p) ? p : []) : y = p && o(p) ? p : {}, a(C, { name: h, newValue: l(j, y, v) })) : typeof v < "u" && a(C, { name: h, newValue: v }));
|
|
19321
19321
|
return C;
|
|
19322
19322
|
}, Ga;
|
|
19323
19323
|
}
|
|
@@ -19894,7 +19894,7 @@ class cp {
|
|
|
19894
19894
|
* Message.
|
|
19895
19895
|
*/
|
|
19896
19896
|
message(t, n, r) {
|
|
19897
|
-
const i = new
|
|
19897
|
+
const i = new Wt(
|
|
19898
19898
|
// @ts-expect-error: the overloads are fine.
|
|
19899
19899
|
t,
|
|
19900
19900
|
n,
|
|
@@ -20986,7 +20986,7 @@ function u_(e, t, n) {
|
|
|
20986
20986
|
const p = h[h.length - 1], v = o[a][0], m = o[a][1];
|
|
20987
20987
|
let y = 0;
|
|
20988
20988
|
const L = p.children.indexOf(u);
|
|
20989
|
-
let
|
|
20989
|
+
let R = !1, j = [];
|
|
20990
20990
|
v.lastIndex = 0;
|
|
20991
20991
|
let M = v.exec(u.value);
|
|
20992
20992
|
for (; M; ) {
|
|
@@ -20995,15 +20995,15 @@ function u_(e, t, n) {
|
|
|
20995
20995
|
input: M.input,
|
|
20996
20996
|
stack: [...h, u]
|
|
20997
20997
|
};
|
|
20998
|
-
let
|
|
20999
|
-
if (typeof
|
|
20998
|
+
let U = m(...M, K);
|
|
20999
|
+
if (typeof U == "string" && (U = U.length > 0 ? { type: "text", value: U } : void 0), U === !1 ? v.lastIndex = Y + 1 : (y !== Y && j.push({
|
|
21000
21000
|
type: "text",
|
|
21001
21001
|
value: u.value.slice(y, Y)
|
|
21002
|
-
}), Array.isArray(
|
|
21002
|
+
}), Array.isArray(U) ? j.push(...U) : U && j.push(U), y = Y + M[0].length, R = !0), !v.global)
|
|
21003
21003
|
break;
|
|
21004
21004
|
M = v.exec(u.value);
|
|
21005
21005
|
}
|
|
21006
|
-
return
|
|
21006
|
+
return R ? (y < u.value.length && j.push({ type: "text", value: u.value.slice(y) }), p.children.splice(L, 1, ...j)) : j = [u], L + j.length;
|
|
21007
21007
|
}
|
|
21008
21008
|
}
|
|
21009
21009
|
function f_(e) {
|
|
@@ -21291,14 +21291,14 @@ function q_(e, t) {
|
|
|
21291
21291
|
let u = 0, h = -1;
|
|
21292
21292
|
for (; ++h < e.length; ) {
|
|
21293
21293
|
const C = [], L = [];
|
|
21294
|
-
let
|
|
21295
|
-
for (e[h].length > u && (u = e[h].length); ++
|
|
21296
|
-
const
|
|
21294
|
+
let R = -1;
|
|
21295
|
+
for (e[h].length > u && (u = e[h].length); ++R < e[h].length; ) {
|
|
21296
|
+
const j = H_(e[h][R]);
|
|
21297
21297
|
if (n.alignDelimiters !== !1) {
|
|
21298
|
-
const M = i(
|
|
21299
|
-
L[
|
|
21298
|
+
const M = i(j);
|
|
21299
|
+
L[R] = M, (l[R] === void 0 || M > l[R]) && (l[R] = M);
|
|
21300
21300
|
}
|
|
21301
|
-
C.push(
|
|
21301
|
+
C.push(j);
|
|
21302
21302
|
}
|
|
21303
21303
|
a[h] = C, s[h] = L;
|
|
21304
21304
|
}
|
|
@@ -21315,34 +21315,34 @@ function q_(e, t) {
|
|
|
21315
21315
|
const v = [], m = [];
|
|
21316
21316
|
for (; ++p < u; ) {
|
|
21317
21317
|
const C = o[p];
|
|
21318
|
-
let L = "",
|
|
21319
|
-
C === 99 ? (L = ":",
|
|
21320
|
-
let
|
|
21318
|
+
let L = "", R = "";
|
|
21319
|
+
C === 99 ? (L = ":", R = ":") : C === 108 ? L = ":" : C === 114 && (R = ":");
|
|
21320
|
+
let j = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
21321
21321
|
1,
|
|
21322
|
-
l[p] - L.length -
|
|
21322
|
+
l[p] - L.length - R.length
|
|
21323
21323
|
);
|
|
21324
|
-
const M = L + "-".repeat(
|
|
21325
|
-
n.alignDelimiters !== !1 && (
|
|
21324
|
+
const M = L + "-".repeat(j) + R;
|
|
21325
|
+
n.alignDelimiters !== !1 && (j = L.length + j + R.length, j > l[p] && (l[p] = j), m[p] = j), v[p] = M;
|
|
21326
21326
|
}
|
|
21327
21327
|
a.splice(1, 0, v), s.splice(1, 0, m), h = -1;
|
|
21328
21328
|
const y = [];
|
|
21329
21329
|
for (; ++h < a.length; ) {
|
|
21330
21330
|
const C = a[h], L = s[h];
|
|
21331
21331
|
p = -1;
|
|
21332
|
-
const
|
|
21332
|
+
const R = [];
|
|
21333
21333
|
for (; ++p < u; ) {
|
|
21334
|
-
const
|
|
21334
|
+
const j = C[p] || "";
|
|
21335
21335
|
let M = "", Y = "";
|
|
21336
21336
|
if (n.alignDelimiters !== !1) {
|
|
21337
|
-
const K = l[p] - (L[p] || 0),
|
|
21338
|
-
|
|
21337
|
+
const K = l[p] - (L[p] || 0), U = o[p];
|
|
21338
|
+
U === 114 ? M = " ".repeat(K) : U === 99 ? K % 2 ? (M = " ".repeat(K / 2 + 0.5), Y = " ".repeat(K / 2 - 0.5)) : (M = " ".repeat(K / 2), Y = M) : Y = " ".repeat(K);
|
|
21339
21339
|
}
|
|
21340
|
-
n.delimiterStart !== !1 && !p &&
|
|
21340
|
+
n.delimiterStart !== !1 && !p && R.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
21341
21341
|
// empty: there will be a closing space.
|
|
21342
|
-
!(n.alignDelimiters === !1 &&
|
|
21342
|
+
!(n.alignDelimiters === !1 && j === "") && (n.delimiterStart !== !1 || p) && R.push(" "), n.alignDelimiters !== !1 && R.push(M), R.push(j), n.alignDelimiters !== !1 && R.push(Y), n.padding !== !1 && R.push(" "), (n.delimiterEnd !== !1 || p !== u - 1) && R.push("|");
|
|
21343
21343
|
}
|
|
21344
21344
|
y.push(
|
|
21345
|
-
n.delimiterEnd === !1 ?
|
|
21345
|
+
n.delimiterEnd === !1 ? R.join("").replace(/ +$/, "") : R.join("")
|
|
21346
21346
|
);
|
|
21347
21347
|
}
|
|
21348
21348
|
return y.join(`
|
|
@@ -22035,17 +22035,17 @@ function PS(e) {
|
|
|
22035
22035
|
return u(h(m, C, L), m.align);
|
|
22036
22036
|
}
|
|
22037
22037
|
function s(m, y, C, L) {
|
|
22038
|
-
const
|
|
22039
|
-
return
|
|
22038
|
+
const R = p(m, C, L), j = u([R]);
|
|
22039
|
+
return j.slice(0, j.indexOf(`
|
|
22040
22040
|
`));
|
|
22041
22041
|
}
|
|
22042
22042
|
function l(m, y, C, L) {
|
|
22043
|
-
const
|
|
22043
|
+
const R = C.enter("tableCell"), j = C.enter("phrasing"), M = C.containerPhrasing(m, {
|
|
22044
22044
|
...L,
|
|
22045
22045
|
before: o,
|
|
22046
22046
|
after: o
|
|
22047
22047
|
});
|
|
22048
|
-
return
|
|
22048
|
+
return j(), R(), M;
|
|
22049
22049
|
}
|
|
22050
22050
|
function u(m, y) {
|
|
22051
22051
|
return q_(m, {
|
|
@@ -22060,19 +22060,19 @@ function PS(e) {
|
|
|
22060
22060
|
}
|
|
22061
22061
|
function h(m, y, C) {
|
|
22062
22062
|
const L = m.children;
|
|
22063
|
-
let
|
|
22064
|
-
const
|
|
22065
|
-
for (; ++
|
|
22066
|
-
|
|
22067
|
-
return M(),
|
|
22063
|
+
let R = -1;
|
|
22064
|
+
const j = [], M = y.enter("table");
|
|
22065
|
+
for (; ++R < L.length; )
|
|
22066
|
+
j[R] = p(L[R], y, C);
|
|
22067
|
+
return M(), j;
|
|
22068
22068
|
}
|
|
22069
22069
|
function p(m, y, C) {
|
|
22070
22070
|
const L = m.children;
|
|
22071
|
-
let
|
|
22072
|
-
const
|
|
22073
|
-
for (; ++
|
|
22074
|
-
|
|
22075
|
-
return M(),
|
|
22071
|
+
let R = -1;
|
|
22072
|
+
const j = [], M = y.enter("tableRow");
|
|
22073
|
+
for (; ++R < L.length; )
|
|
22074
|
+
j[R] = l(L[R], m, y, C);
|
|
22075
|
+
return M(), j;
|
|
22076
22076
|
}
|
|
22077
22077
|
function v(m, y, C) {
|
|
22078
22078
|
let L = Ap.inlineCode(m, y, C);
|
|
@@ -22206,7 +22206,7 @@ function US(e, t, n) {
|
|
|
22206
22206
|
return Os(p) ? (e.consume(p), s) : p === 64 ? (e.consume(p), l) : n(p);
|
|
22207
22207
|
}
|
|
22208
22208
|
function l(p) {
|
|
22209
|
-
return p === 46 ? e.check(jS, h, u)(p) : p === 45 || p === 95 ||
|
|
22209
|
+
return p === 46 ? e.check(jS, h, u)(p) : p === 45 || p === 95 || Vt(p) ? (o = !0, e.consume(p), l) : h(p);
|
|
22210
22210
|
}
|
|
22211
22211
|
function u(p) {
|
|
22212
22212
|
return e.consume(p), i = !0, l;
|
|
@@ -22310,7 +22310,7 @@ function GS(e, t, n) {
|
|
|
22310
22310
|
return e.consume(o), i;
|
|
22311
22311
|
}
|
|
22312
22312
|
function i(o) {
|
|
22313
|
-
return
|
|
22313
|
+
return Vt(o) ? n(o) : t(o);
|
|
22314
22314
|
}
|
|
22315
22315
|
}
|
|
22316
22316
|
function Np(e) {
|
|
@@ -22323,7 +22323,7 @@ function Dp(e) {
|
|
|
22323
22323
|
return !(e === 47 || Os(e));
|
|
22324
22324
|
}
|
|
22325
22325
|
function Os(e) {
|
|
22326
|
-
return e === 43 || e === 45 || e === 46 || e === 95 ||
|
|
22326
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || Vt(e);
|
|
22327
22327
|
}
|
|
22328
22328
|
function El(e) {
|
|
22329
22329
|
let t = e.length, n = !1;
|
|
@@ -22581,8 +22581,8 @@ function iC(e) {
|
|
|
22581
22581
|
if (y === 126)
|
|
22582
22582
|
return p > 1 ? l(y) : (a.consume(y), p++, m);
|
|
22583
22583
|
if (p < 2 && !n) return l(y);
|
|
22584
|
-
const L = a.exit("strikethroughSequenceTemporary"),
|
|
22585
|
-
return L._open = !
|
|
22584
|
+
const L = a.exit("strikethroughSequenceTemporary"), R = Br(y);
|
|
22585
|
+
return L._open = !R || R === 2 && !!C, L._close = !C || C === 2 && !!R, s(y);
|
|
22586
22586
|
}
|
|
22587
22587
|
}
|
|
22588
22588
|
}
|
|
@@ -22689,7 +22689,7 @@ function cC(e, t, n) {
|
|
|
22689
22689
|
const r = this;
|
|
22690
22690
|
let i = 0, o = 0, a;
|
|
22691
22691
|
return s;
|
|
22692
|
-
function s(
|
|
22692
|
+
function s(T) {
|
|
22693
22693
|
let A = r.events.length - 1;
|
|
22694
22694
|
for (; A > -1; ) {
|
|
22695
22695
|
const I = r.events[A][1].type;
|
|
@@ -22697,62 +22697,62 @@ function cC(e, t, n) {
|
|
|
22697
22697
|
I === "linePrefix") A--;
|
|
22698
22698
|
else break;
|
|
22699
22699
|
}
|
|
22700
|
-
const F = A > -1 ? r.events[A][1].type : null, q = F === "tableHead" || F === "tableRow" ?
|
|
22701
|
-
return q ===
|
|
22700
|
+
const F = A > -1 ? r.events[A][1].type : null, q = F === "tableHead" || F === "tableRow" ? U : l;
|
|
22701
|
+
return q === U && r.parser.lazy[r.now().line] ? n(T) : q(T);
|
|
22702
22702
|
}
|
|
22703
|
-
function l(
|
|
22704
|
-
return e.enter("tableHead"), e.enter("tableRow"), u(
|
|
22703
|
+
function l(T) {
|
|
22704
|
+
return e.enter("tableHead"), e.enter("tableRow"), u(T);
|
|
22705
22705
|
}
|
|
22706
|
-
function u(
|
|
22707
|
-
return
|
|
22706
|
+
function u(T) {
|
|
22707
|
+
return T === 124 || (a = !0, o += 1), h(T);
|
|
22708
22708
|
}
|
|
22709
|
-
function h(
|
|
22710
|
-
return
|
|
22709
|
+
function h(T) {
|
|
22710
|
+
return T === null ? n(T) : Re(T) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), m) : n(T) : Ye(T) ? rt(e, h, "whitespace")(T) : (o += 1, a && (a = !1, i += 1), T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), a = !0, h) : (e.enter("data"), p(T)));
|
|
22711
22711
|
}
|
|
22712
|
-
function p(
|
|
22713
|
-
return
|
|
22712
|
+
function p(T) {
|
|
22713
|
+
return T === null || T === 124 || dt(T) ? (e.exit("data"), h(T)) : (e.consume(T), T === 92 ? v : p);
|
|
22714
22714
|
}
|
|
22715
|
-
function v(
|
|
22716
|
-
return
|
|
22715
|
+
function v(T) {
|
|
22716
|
+
return T === 92 || T === 124 ? (e.consume(T), p) : p(T);
|
|
22717
22717
|
}
|
|
22718
|
-
function m(
|
|
22719
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
|
22718
|
+
function m(T) {
|
|
22719
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(T) : (e.enter("tableDelimiterRow"), a = !1, Ye(T) ? rt(e, y, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : y(T));
|
|
22720
22720
|
}
|
|
22721
|
-
function y(
|
|
22722
|
-
return
|
|
22721
|
+
function y(T) {
|
|
22722
|
+
return T === 45 || T === 58 ? L(T) : T === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), C) : K(T);
|
|
22723
22723
|
}
|
|
22724
|
-
function C(
|
|
22725
|
-
return Ye(
|
|
22724
|
+
function C(T) {
|
|
22725
|
+
return Ye(T) ? rt(e, L, "whitespace")(T) : L(T);
|
|
22726
22726
|
}
|
|
22727
|
-
function L(
|
|
22728
|
-
return
|
|
22727
|
+
function L(T) {
|
|
22728
|
+
return T === 58 ? (o += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), R) : T === 45 ? (o += 1, R(T)) : T === null || Re(T) ? Y(T) : K(T);
|
|
22729
22729
|
}
|
|
22730
|
-
function T
|
|
22731
|
-
return
|
|
22730
|
+
function R(T) {
|
|
22731
|
+
return T === 45 ? (e.enter("tableDelimiterFiller"), j(T)) : K(T);
|
|
22732
22732
|
}
|
|
22733
|
-
function
|
|
22734
|
-
return
|
|
22733
|
+
function j(T) {
|
|
22734
|
+
return T === 45 ? (e.consume(T), j) : T === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), M) : (e.exit("tableDelimiterFiller"), M(T));
|
|
22735
22735
|
}
|
|
22736
|
-
function M(
|
|
22737
|
-
return Ye(
|
|
22736
|
+
function M(T) {
|
|
22737
|
+
return Ye(T) ? rt(e, Y, "whitespace")(T) : Y(T);
|
|
22738
22738
|
}
|
|
22739
|
-
function Y(
|
|
22740
|
-
return
|
|
22739
|
+
function Y(T) {
|
|
22740
|
+
return T === 124 ? y(T) : T === null || Re(T) ? !a || i !== o ? K(T) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(T)) : K(T);
|
|
22741
22741
|
}
|
|
22742
|
-
function K(
|
|
22743
|
-
return n(
|
|
22742
|
+
function K(T) {
|
|
22743
|
+
return n(T);
|
|
22744
22744
|
}
|
|
22745
|
-
function
|
|
22746
|
-
return e.enter("tableRow"), ie(
|
|
22745
|
+
function U(T) {
|
|
22746
|
+
return e.enter("tableRow"), ie(T);
|
|
22747
22747
|
}
|
|
22748
|
-
function ie(
|
|
22749
|
-
return
|
|
22748
|
+
function ie(T) {
|
|
22749
|
+
return T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), ie) : T === null || Re(T) ? (e.exit("tableRow"), t(T)) : Ye(T) ? rt(e, ie, "whitespace")(T) : (e.enter("data"), te(T));
|
|
22750
22750
|
}
|
|
22751
|
-
function te(
|
|
22752
|
-
return
|
|
22751
|
+
function te(T) {
|
|
22752
|
+
return T === null || T === 124 || dt(T) ? (e.exit("data"), ie(T)) : (e.consume(T), T === 92 ? H : te);
|
|
22753
22753
|
}
|
|
22754
|
-
function H(
|
|
22755
|
-
return
|
|
22754
|
+
function H(T) {
|
|
22755
|
+
return T === 92 || T === 124 ? (e.consume(T), te) : te(T);
|
|
22756
22756
|
}
|
|
22757
22757
|
}
|
|
22758
22758
|
function uC(e, t) {
|
|
@@ -22929,14 +22929,14 @@ function Xu({
|
|
|
22929
22929
|
}) {
|
|
22930
22930
|
const s = !t, [l, u] = Ue(!1), [h, p] = Ue(
|
|
22931
22931
|
null
|
|
22932
|
-
), [v, m] = Ue(!1), [y, C] = Ue(!1), L = Xs(), { collectUserFeedback:
|
|
22932
|
+
), [v, m] = Ue(!1), [y, C] = Ue(!1), L = Xs(), { collectUserFeedback: R, onMessageClick: j } = Qo(), M = !e.isWelcomeMessage && typeof j == "function", Y = zw(
|
|
22933
22933
|
e.content,
|
|
22934
22934
|
15,
|
|
22935
22935
|
n && s
|
|
22936
22936
|
), K = De({
|
|
22937
22937
|
[L.botBubbleColor]: e.sender === "assistant",
|
|
22938
22938
|
[L.userBubbleColor]: e.sender === "user"
|
|
22939
|
-
}),
|
|
22939
|
+
}), U = De(
|
|
22940
22940
|
"text-gray-400 hover:text-primary transition-colors"
|
|
22941
22941
|
), ie = e.content === "...", te = () => n && e.isThinking ? /* @__PURE__ */ O("div", { className: "flex flex-col justify-center flex-1", children: ie ? /* @__PURE__ */ O("div", { className: "ml-3", children: /* @__PURE__ */ O(yC, {}) }) : /* @__PURE__ */ O(
|
|
22942
22942
|
"p",
|
|
@@ -22951,8 +22951,8 @@ function Xu({
|
|
|
22951
22951
|
"div",
|
|
22952
22952
|
{
|
|
22953
22953
|
className: "flex flex-col flex-1 self-stretch",
|
|
22954
|
-
onClick: () => !e.isWelcomeMessage &&
|
|
22955
|
-
role:
|
|
22954
|
+
onClick: () => !e.isWelcomeMessage && j?.(e),
|
|
22955
|
+
role: j && !e.isWelcomeMessage ? "button" : void 0,
|
|
22956
22956
|
tabIndex: 0,
|
|
22957
22957
|
children: [
|
|
22958
22958
|
!r && a && /* @__PURE__ */ O(
|
|
@@ -23039,20 +23039,20 @@ function Xu({
|
|
|
23039
23039
|
await navigator.clipboard.writeText(e.content), m(!0), setTimeout(() => m(!1), 2e3);
|
|
23040
23040
|
},
|
|
23041
23041
|
className: De(
|
|
23042
|
-
|
|
23042
|
+
U,
|
|
23043
23043
|
v && "text-primary"
|
|
23044
23044
|
),
|
|
23045
23045
|
title: "Copy message",
|
|
23046
23046
|
children: /* @__PURE__ */ O(ov, { size: 16 })
|
|
23047
23047
|
}
|
|
23048
23048
|
),
|
|
23049
|
-
!e.isWelcomeMessage &&
|
|
23049
|
+
!e.isWelcomeMessage && R && /* @__PURE__ */ Te(kn, { children: [
|
|
23050
23050
|
/* @__PURE__ */ O(
|
|
23051
23051
|
"button",
|
|
23052
23052
|
{
|
|
23053
23053
|
onClick: () => p(h === "up" ? null : "up"),
|
|
23054
23054
|
className: De(
|
|
23055
|
-
|
|
23055
|
+
U,
|
|
23056
23056
|
h === "up" && "text-primary"
|
|
23057
23057
|
),
|
|
23058
23058
|
children: /* @__PURE__ */ O(yv, { size: 16 })
|
|
@@ -23065,7 +23065,7 @@ function Xu({
|
|
|
23065
23065
|
h === "down" ? null : "down"
|
|
23066
23066
|
),
|
|
23067
23067
|
className: De(
|
|
23068
|
-
|
|
23068
|
+
U,
|
|
23069
23069
|
h === "down" && "text-primary"
|
|
23070
23070
|
),
|
|
23071
23071
|
children: /* @__PURE__ */ O(vv, { size: 16 })
|
|
@@ -23076,9 +23076,9 @@ function Xu({
|
|
|
23076
23076
|
"button",
|
|
23077
23077
|
{
|
|
23078
23078
|
onClick: () => {
|
|
23079
|
-
|
|
23079
|
+
j(e), C(!0), setTimeout(() => C(!1), 2e3);
|
|
23080
23080
|
},
|
|
23081
|
-
className: De(
|
|
23081
|
+
className: De(U, {
|
|
23082
23082
|
"text-primary": y
|
|
23083
23083
|
}),
|
|
23084
23084
|
children: /* @__PURE__ */ O(sv, { size: 16 })
|
|
@@ -24552,11 +24552,11 @@ const tm = (e) => {
|
|
|
24552
24552
|
message: "Invalid config parameter.",
|
|
24553
24553
|
recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
|
|
24554
24554
|
});
|
|
24555
|
-
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: u, aws_cognito_password_protection_settings: h, aws_cognito_verification_mechanisms: p, aws_cognito_signup_attributes: v, aws_cognito_social_providers: m, aws_cognito_username_attributes: y, aws_mandatory_sign_in: C, aws_mobile_analytics_app_id: L, aws_mobile_analytics_app_region:
|
|
24555
|
+
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: u, aws_cognito_password_protection_settings: h, aws_cognito_verification_mechanisms: p, aws_cognito_signup_attributes: v, aws_cognito_social_providers: m, aws_cognito_username_attributes: y, aws_mandatory_sign_in: C, aws_mobile_analytics_app_id: L, aws_mobile_analytics_app_region: R, aws_user_files_s3_bucket: j, aws_user_files_s3_bucket_region: M, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: Y, aws_user_pools_id: K, aws_user_pools_web_client_id: U, geo: ie, oauth: te, predictions: H, aws_cloud_logic_custom: T, Notifications: A, modelIntrospection: F } = e, q = {};
|
|
24556
24556
|
L && (q.Analytics = {
|
|
24557
24557
|
Pinpoint: {
|
|
24558
24558
|
appId: L,
|
|
24559
|
-
region:
|
|
24559
|
+
region: R
|
|
24560
24560
|
}
|
|
24561
24561
|
});
|
|
24562
24562
|
const { InAppMessaging: I, Push: D } = A ?? {};
|
|
@@ -24622,7 +24622,7 @@ const tm = (e) => {
|
|
|
24622
24622
|
allowGuestAccess: C !== "enable",
|
|
24623
24623
|
signUpVerificationMethod: s,
|
|
24624
24624
|
userAttributes: X,
|
|
24625
|
-
userPoolClientId:
|
|
24625
|
+
userPoolClientId: U,
|
|
24626
24626
|
userPoolId: K,
|
|
24627
24627
|
mfa: W,
|
|
24628
24628
|
passwordFormat: J,
|
|
@@ -24642,9 +24642,9 @@ const tm = (e) => {
|
|
|
24642
24642
|
providers: mE(m)
|
|
24643
24643
|
}
|
|
24644
24644
|
}
|
|
24645
|
-
}),
|
|
24645
|
+
}), j && (q.Storage = {
|
|
24646
24646
|
S3: {
|
|
24647
|
-
bucket:
|
|
24647
|
+
bucket: j,
|
|
24648
24648
|
region: M,
|
|
24649
24649
|
dangerouslyConnectToHttpEndpointForTesting: Y
|
|
24650
24650
|
}
|
|
@@ -24659,9 +24659,9 @@ const tm = (e) => {
|
|
|
24659
24659
|
}
|
|
24660
24660
|
};
|
|
24661
24661
|
}
|
|
24662
|
-
if (
|
|
24662
|
+
if (T && (q.API = {
|
|
24663
24663
|
...q.API,
|
|
24664
|
-
REST:
|
|
24664
|
+
REST: T.reduce((oe, ue) => {
|
|
24665
24665
|
const { name: we, endpoint: Be, region: et, service: be } = ue;
|
|
24666
24666
|
return {
|
|
24667
24667
|
...oe,
|
|
@@ -25019,8 +25019,8 @@ var pn = 64, ME = 32, zE = new Uint32Array([
|
|
|
25019
25019
|
var C = (m >>> 7 | m << 25) ^ (m >>> 18 | m << 14) ^ m >>> 3;
|
|
25020
25020
|
this.temp[v] = (y + this.temp[v - 7] | 0) + (C + this.temp[v - 16] | 0);
|
|
25021
25021
|
}
|
|
25022
|
-
var L = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & u ^ ~l & h) | 0) + (p + (zE[v] + this.temp[v] | 0) | 0) | 0,
|
|
25023
|
-
p = h, h = u, u = l, l = s + L | 0, s = a, a = o, o = i, i = L +
|
|
25022
|
+
var L = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & u ^ ~l & h) | 0) + (p + (zE[v] + this.temp[v] | 0) | 0) | 0, R = ((i >>> 2 | i << 30) ^ (i >>> 13 | i << 19) ^ (i >>> 22 | i << 10)) + (i & o ^ i & a ^ o & a) | 0;
|
|
25023
|
+
p = h, h = u, u = l, l = s + L | 0, s = a, a = o, o = i, i = L + R | 0;
|
|
25024
25024
|
}
|
|
25025
25025
|
r[0] += i, r[1] += o, r[2] += a, r[3] += s, r[4] += l, r[5] += u, r[6] += h, r[7] += p;
|
|
25026
25026
|
}, e;
|
|
@@ -25149,7 +25149,7 @@ var yf;
|
|
|
25149
25149
|
(function(e) {
|
|
25150
25150
|
e.UploadData = "1", e.DownloadData = "2", e.List = "3", e.Copy = "4", e.Remove = "5", e.GetProperties = "6", e.GetUrl = "7", e.GetDataAccess = "8", e.ListCallerAccessGrants = "9";
|
|
25151
25151
|
})(yf || (yf = {}));
|
|
25152
|
-
const HE = "6.16.
|
|
25152
|
+
const HE = "6.16.4", oa = () => typeof global < "u", Yr = () => typeof window < "u", om = () => typeof document < "u", Nl = () => typeof process < "u", Ii = (e, t) => !!Object.keys(e).find((n) => n.startsWith(t));
|
|
25153
25153
|
function ZE() {
|
|
25154
25154
|
const e = (r) => r.startsWith("_react") || r.startsWith("__react"), t = (r) => Object.keys(r).find(e), n = () => Array.from(document.querySelectorAll("[id]"));
|
|
25155
25155
|
return om() && n().some(t);
|
|
@@ -25186,7 +25186,7 @@ function rA() {
|
|
|
25186
25186
|
return e || t;
|
|
25187
25187
|
}
|
|
25188
25188
|
function iA() {
|
|
25189
|
-
return Nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=
|
|
25189
|
+
return Nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
|
|
25190
25190
|
}
|
|
25191
25191
|
function oA() {
|
|
25192
25192
|
return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
|
|
@@ -26276,8 +26276,8 @@ var ds = /* @__PURE__ */ (function(e) {
|
|
|
26276
26276
|
function n(r, i, o, a, s, l, u) {
|
|
26277
26277
|
var h, p, v, m;
|
|
26278
26278
|
RI(this, n), m = t.call(this, r), m.name = "GraphQLError", m.originalError = l ?? void 0, m.nodes = Tf(Array.isArray(i) ? i : i ? [i] : void 0);
|
|
26279
|
-
for (var y = [], C = 0, L = (
|
|
26280
|
-
var
|
|
26279
|
+
for (var y = [], C = 0, L = (R = m.nodes) !== null && R !== void 0 ? R : []; C < L.length; C++) {
|
|
26280
|
+
var R, j = L[C], M = j.loc;
|
|
26281
26281
|
M != null && y.push(M);
|
|
26282
26282
|
}
|
|
26283
26283
|
y = Tf(y), m.source = o ?? ((h = y) === null || h === void 0 ? void 0 : h[0].source), m.positions = a ?? ((p = y) === null || p === void 0 ? void 0 : p.map(function(K) {
|
|
@@ -26389,18 +26389,18 @@ const jI = {
|
|
|
26389
26389
|
"BadRequestException",
|
|
26390
26390
|
"UnauthorizedException"
|
|
26391
26391
|
], Om = "ConnectionStateChange";
|
|
26392
|
-
var
|
|
26392
|
+
var Bt;
|
|
26393
26393
|
(function(e) {
|
|
26394
26394
|
e.GQL_CONNECTION_INIT = "connection_init", e.GQL_CONNECTION_ERROR = "connection_error", e.GQL_CONNECTION_ACK = "connection_ack", e.GQL_START = "start", e.GQL_START_ACK = "start_ack", e.DATA = "data", e.GQL_CONNECTION_KEEP_ALIVE = "ka", e.GQL_STOP = "stop", e.GQL_COMPLETE = "complete", e.GQL_ERROR = "error", e.EVENT_SUBSCRIBE = "subscribe", e.EVENT_PUBLISH = "publish", e.EVENT_SUBSCRIBE_ACK = "subscribe_success", e.EVENT_PUBLISH_ACK = "publish_success", e.EVENT_STOP = "unsubscribe", e.EVENT_COMPLETE = "unsubscribe_success", e.EVENT_SUBSCRIBE_ERROR = "subscribe_error";
|
|
26395
|
-
})(
|
|
26395
|
+
})(Bt || (Bt = {}));
|
|
26396
26396
|
var Wn;
|
|
26397
26397
|
(function(e) {
|
|
26398
26398
|
e[e.PENDING = 0] = "PENDING", e[e.CONNECTED = 1] = "CONNECTED", e[e.FAILED = 2] = "FAILED";
|
|
26399
26399
|
})(Wn || (Wn = {}));
|
|
26400
|
-
var
|
|
26400
|
+
var Ht;
|
|
26401
26401
|
(function(e) {
|
|
26402
26402
|
e[e.CLOSED = 0] = "CLOSED", e[e.READY = 1] = "READY", e[e.CONNECTING = 2] = "CONNECTING";
|
|
26403
|
-
})(
|
|
26403
|
+
})(Ht || (Ht = {}));
|
|
26404
26404
|
const VI = {
|
|
26405
26405
|
accept: "application/json, text/javascript",
|
|
26406
26406
|
"content-encoding": "amz-1.0",
|
|
@@ -26627,7 +26627,7 @@ const Nf = "wss://", JI = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26627
26627
|
};
|
|
26628
26628
|
class lR {
|
|
26629
26629
|
constructor(t) {
|
|
26630
|
-
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus =
|
|
26630
|
+
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus = Ht.CLOSED, this.keepAliveTimestamp = Date.now(), this.promiseArray = [], this.connectionStateMonitor = new XI(), this.reconnectionMonitor = new KI(), this._establishConnection = async (n, r) => {
|
|
26631
26631
|
this.logger.debug(`Establishing WebSocket connection to ${n}`);
|
|
26632
26632
|
try {
|
|
26633
26633
|
await this._openConnection(n, r), await this._initiateHandshake();
|
|
@@ -26643,7 +26643,7 @@ class lR {
|
|
|
26643
26643
|
* Mark the socket closed and release all active listeners
|
|
26644
26644
|
*/
|
|
26645
26645
|
close() {
|
|
26646
|
-
return this.socketStatus =
|
|
26646
|
+
return this.socketStatus = Ht.CLOSED, this.connectionStateMonitor.record(mn.CONNECTION_FAILED), this.connectionStateMonitorSubscription.unsubscribe(), this.reconnectionMonitor.close(), new Promise((t, n) => {
|
|
26647
26647
|
this.awsRealTimeSocket ? (this.awsRealTimeSocket.onclose = (r) => {
|
|
26648
26648
|
this._closeSocket(), this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.awsRealTimeSocket = void 0, t();
|
|
26649
26649
|
}, this.awsRealTimeSocket.onerror = (r) => {
|
|
@@ -26686,10 +26686,10 @@ class lR {
|
|
|
26686
26686
|
});
|
|
26687
26687
|
}
|
|
26688
26688
|
async connect(t) {
|
|
26689
|
-
this.socketStatus !==
|
|
26689
|
+
this.socketStatus !== Ht.READY && await this._connectWebSocket(t);
|
|
26690
26690
|
}
|
|
26691
26691
|
async publish(t, n) {
|
|
26692
|
-
if (this.socketStatus !==
|
|
26692
|
+
if (this.socketStatus !== Ht.READY)
|
|
26693
26693
|
throw new Error("Subscription has not been initialized");
|
|
26694
26694
|
return this._publishMessage(t, n);
|
|
26695
26695
|
}
|
|
@@ -26841,7 +26841,7 @@ class lR {
|
|
|
26841
26841
|
}
|
|
26842
26842
|
_sendUnsubscriptionMessage(t) {
|
|
26843
26843
|
try {
|
|
26844
|
-
if (this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.socketStatus ===
|
|
26844
|
+
if (this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.socketStatus === Ht.READY) {
|
|
26845
26845
|
const n = this._unsubscribeMessage(t), r = JSON.stringify(n);
|
|
26846
26846
|
this.awsRealTimeSocket.send(r);
|
|
26847
26847
|
}
|
|
@@ -26855,7 +26855,7 @@ class lR {
|
|
|
26855
26855
|
_closeSocketIfRequired() {
|
|
26856
26856
|
if (!(this.subscriptionObserverMap.size > 0)) {
|
|
26857
26857
|
if (!this.awsRealTimeSocket) {
|
|
26858
|
-
this.socketStatus =
|
|
26858
|
+
this.socketStatus = Ht.CLOSED;
|
|
26859
26859
|
return;
|
|
26860
26860
|
}
|
|
26861
26861
|
if (this.connectionStateMonitor.record(mn.CLOSING_CONNECTION), this.awsRealTimeSocket.bufferedAmount > 0)
|
|
@@ -26863,7 +26863,7 @@ class lR {
|
|
|
26863
26863
|
else {
|
|
26864
26864
|
this.logger.debug("closing WebSocket...");
|
|
26865
26865
|
const t = this.awsRealTimeSocket;
|
|
26866
|
-
t.onclose = null, t.onerror = null, t.close(1e3), this.awsRealTimeSocket = void 0, this.socketStatus =
|
|
26866
|
+
t.onclose = null, t.onerror = null, t.close(1e3), this.awsRealTimeSocket = void 0, this.socketStatus = Ht.CLOSED, this._closeSocket();
|
|
26867
26867
|
}
|
|
26868
26868
|
}
|
|
26869
26869
|
}
|
|
@@ -26883,7 +26883,7 @@ class lR {
|
|
|
26883
26883
|
return;
|
|
26884
26884
|
}
|
|
26885
26885
|
const { type: i, id: o, payload: a } = r, { observer: s = null, query: l = "", variables: u = {}, startAckTimeoutId: h, subscriptionReadyCallback: p, subscriptionFailedCallback: v } = this.subscriptionObserverMap.get(o) || {};
|
|
26886
|
-
if (i ===
|
|
26886
|
+
if (i === Bt.GQL_START_ACK || i === Bt.EVENT_SUBSCRIBE_ACK) {
|
|
26887
26887
|
this.logger.debug(`subscription ready for ${JSON.stringify({ query: l, variables: u })}`), typeof p == "function" && p(), h && clearTimeout(h), Ff({
|
|
26888
26888
|
event: xn.SUBSCRIPTION_ACK,
|
|
26889
26889
|
data: { query: l, variables: u },
|
|
@@ -26901,11 +26901,11 @@ class lR {
|
|
|
26901
26901
|
}), this.connectionStateMonitor.record(mn.CONNECTION_ESTABLISHED);
|
|
26902
26902
|
return;
|
|
26903
26903
|
}
|
|
26904
|
-
if (i ===
|
|
26904
|
+
if (i === Bt.GQL_CONNECTION_KEEP_ALIVE) {
|
|
26905
26905
|
this.maintainKeepAlive();
|
|
26906
26906
|
return;
|
|
26907
26907
|
}
|
|
26908
|
-
if (i ===
|
|
26908
|
+
if (i === Bt.GQL_ERROR || i === Bt.EVENT_SUBSCRIBE_ERROR) {
|
|
26909
26909
|
const m = Wn.FAILED;
|
|
26910
26910
|
if (s) {
|
|
26911
26911
|
this.subscriptionObserverMap.set(o, {
|
|
@@ -26917,15 +26917,26 @@ class lR {
|
|
|
26917
26917
|
subscriptionFailedCallback: v,
|
|
26918
26918
|
subscriptionState: m
|
|
26919
26919
|
});
|
|
26920
|
-
let y = JSON.stringify(a ?? r);
|
|
26921
|
-
|
|
26922
|
-
|
|
26923
|
-
|
|
26924
|
-
|
|
26925
|
-
|
|
26920
|
+
let y = JSON.stringify(a ?? r), C = !1;
|
|
26921
|
+
const L = [
|
|
26922
|
+
"UnauthorizedException",
|
|
26923
|
+
"Unauthorized",
|
|
26924
|
+
"NotAuthorizedException"
|
|
26925
|
+
];
|
|
26926
|
+
if (i === Bt.EVENT_SUBSCRIBE_ERROR) {
|
|
26927
|
+
const { errors: R } = JSON.parse(String(t.data));
|
|
26928
|
+
if (Array.isArray(R) && R.length > 0) {
|
|
26929
|
+
const j = R[0];
|
|
26930
|
+
y = `${j.errorType}: ${j.message}`, C = L.includes(j.errorType) || j.message?.includes("Token expired");
|
|
26931
|
+
}
|
|
26932
|
+
} else if (i === Bt.GQL_ERROR && a && typeof a == "object") {
|
|
26933
|
+
const { errors: R } = a;
|
|
26934
|
+
if (Array.isArray(R) && R.length > 0) {
|
|
26935
|
+
const j = R[0];
|
|
26936
|
+
C = L.includes(j.errorType) || j.message?.includes("Token expired");
|
|
26926
26937
|
}
|
|
26927
26938
|
}
|
|
26928
|
-
this.logger.debug(`${xn.CONNECTION_FAILED}: ${y}`), s.error({
|
|
26939
|
+
this.logger.debug(`${xn.CONNECTION_FAILED}: ${y}`), C && this.awsRealTimeSocket && (this.logger.warn("Subscription failed due to auth error, closing WebSocket to trigger reconnection with fresh tokens"), this.awsRealTimeSocket.close(1e3, "Auth error - reconnecting")), s.error({
|
|
26929
26940
|
errors: [
|
|
26930
26941
|
{
|
|
26931
26942
|
...new ds(`${xn.CONNECTION_FAILED}: ${y}`)
|
|
@@ -26936,7 +26947,7 @@ class lR {
|
|
|
26936
26947
|
}
|
|
26937
26948
|
}
|
|
26938
26949
|
_errorDisconnect(t) {
|
|
26939
|
-
this.logger.debug(`Disconnect error: ${t}`), this.awsRealTimeSocket && (this._closeSocket(), this.awsRealTimeSocket.close()), this.socketStatus =
|
|
26950
|
+
this.logger.debug(`Disconnect error: ${t}`), this.awsRealTimeSocket && (this._closeSocket(), this.awsRealTimeSocket.close()), this.socketStatus = Ht.CLOSED;
|
|
26940
26951
|
}
|
|
26941
26952
|
_closeSocket() {
|
|
26942
26953
|
this.keepAliveHeartbeatIntervalId && (clearInterval(this.keepAliveHeartbeatIntervalId), this.keepAliveHeartbeatIntervalId = void 0), this.connectionStateMonitor.record(mn.CLOSED);
|
|
@@ -26956,11 +26967,11 @@ class lR {
|
|
|
26956
26967
|
}
|
|
26957
26968
|
}
|
|
26958
26969
|
_initializeWebSocketConnection({ appSyncGraphqlEndpoint: t, authenticationType: n, apiKey: r, region: i, additionalCustomHeaders: o }) {
|
|
26959
|
-
if (this.socketStatus !==
|
|
26970
|
+
if (this.socketStatus !== Ht.READY)
|
|
26960
26971
|
return new Promise(async (a, s) => {
|
|
26961
|
-
if (this.promiseArray.push({ res: a, rej: s }), this.socketStatus ===
|
|
26972
|
+
if (this.promiseArray.push({ res: a, rej: s }), this.socketStatus === Ht.CLOSED)
|
|
26962
26973
|
try {
|
|
26963
|
-
this.socketStatus =
|
|
26974
|
+
this.socketStatus = Ht.CONNECTING;
|
|
26964
26975
|
const u = await Nm({
|
|
26965
26976
|
authenticationType: n,
|
|
26966
26977
|
payload: "{}",
|
|
@@ -26975,11 +26986,11 @@ class lR {
|
|
|
26975
26986
|
})}`, m = iR(o), y = oR(t, m);
|
|
26976
26987
|
await this._establishRetryableConnection(y, v), this.promiseArray.forEach(({ res: C }) => {
|
|
26977
26988
|
this.logger.debug("Notifying connection successful"), C();
|
|
26978
|
-
}), this.socketStatus =
|
|
26989
|
+
}), this.socketStatus = Ht.READY, this.promiseArray = [];
|
|
26979
26990
|
} catch (l) {
|
|
26980
26991
|
this.logger.debug("Connection exited with", l), this.promiseArray.forEach(({ rej: u }) => {
|
|
26981
26992
|
u(l);
|
|
26982
|
-
}), this.promiseArray = [], this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.awsRealTimeSocket.close(3001), this.awsRealTimeSocket = void 0, this.socketStatus =
|
|
26993
|
+
}), this.promiseArray = [], this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.awsRealTimeSocket.close(3001), this.awsRealTimeSocket = void 0, this.socketStatus = Ht.CLOSED;
|
|
26983
26994
|
}
|
|
26984
26995
|
});
|
|
26985
26996
|
}
|
|
@@ -27020,17 +27031,17 @@ class lR {
|
|
|
27020
27031
|
return;
|
|
27021
27032
|
this.logger.debug(`subscription message from AWS AppSyncRealTime: ${a.data} `);
|
|
27022
27033
|
const s = JSON.parse(a.data), { type: l } = s, u = this._extractConnectionTimeout(s);
|
|
27023
|
-
if (l ===
|
|
27034
|
+
if (l === Bt.GQL_CONNECTION_ACK) {
|
|
27024
27035
|
r = !0, this._registerWebsocketHandlers(u), t("Connected to AWS AppSyncRealTime");
|
|
27025
27036
|
return;
|
|
27026
27037
|
}
|
|
27027
|
-
if (l ===
|
|
27038
|
+
if (l === Bt.GQL_CONNECTION_ERROR) {
|
|
27028
27039
|
const { errorType: h, errorCode: p } = this._extractErrorCodeAndType(s);
|
|
27029
27040
|
n({ errorType: h, errorCode: p });
|
|
27030
27041
|
}
|
|
27031
27042
|
};
|
|
27032
27043
|
const i = {
|
|
27033
|
-
type:
|
|
27044
|
+
type: Bt.GQL_CONNECTION_INIT
|
|
27034
27045
|
};
|
|
27035
27046
|
this.awsRealTimeSocket.send(JSON.stringify(i));
|
|
27036
27047
|
const o = (a) => {
|
|
@@ -27131,14 +27142,14 @@ class dR extends lR {
|
|
|
27131
27142
|
}
|
|
27132
27143
|
}
|
|
27133
27144
|
},
|
|
27134
|
-
type: a ?
|
|
27145
|
+
type: a ? Bt.EVENT_PUBLISH : Bt.EVENT_SUBSCRIBE
|
|
27135
27146
|
};
|
|
27136
27147
|
return JSON.stringify(L);
|
|
27137
27148
|
}
|
|
27138
27149
|
_handleSubscriptionData(t) {
|
|
27139
27150
|
this.logger.debug(`subscription message from AWS AppSync Events: ${t.data}`);
|
|
27140
27151
|
const { id: n = "", event: r, type: i } = JSON.parse(String(t.data)), { observer: o = null, query: a = "", variables: s = {} } = this.subscriptionObserverMap.get(n) || {};
|
|
27141
|
-
if (this.logger.debug({ id: n, observer: o, query: a, variables: s }), i ===
|
|
27152
|
+
if (this.logger.debug({ id: n, observer: o, query: a, variables: s }), i === Bt.DATA && r) {
|
|
27142
27153
|
const l = JSON.parse(r);
|
|
27143
27154
|
return o ? o.next({ id: n, type: i, event: l }) : this.logger.debug(`observer not found for id: ${n}`), [!0, { id: n, type: i, payload: l }];
|
|
27144
27155
|
}
|
|
@@ -27147,7 +27158,7 @@ class dR extends lR {
|
|
|
27147
27158
|
_unsubscribeMessage(t) {
|
|
27148
27159
|
return {
|
|
27149
27160
|
id: t,
|
|
27150
|
-
type:
|
|
27161
|
+
type: Bt.EVENT_STOP
|
|
27151
27162
|
};
|
|
27152
27163
|
}
|
|
27153
27164
|
_extractConnectionTimeout(t) {
|
|
@@ -28217,9 +28228,9 @@ const H2 = /* @__PURE__ */ se("$ZodObject", (e, t) => {
|
|
|
28217
28228
|
};
|
|
28218
28229
|
m.write("const input = payload.value;");
|
|
28219
28230
|
const L = /* @__PURE__ */ Object.create(null);
|
|
28220
|
-
let
|
|
28231
|
+
let R = 0;
|
|
28221
28232
|
for (const M of y.keys)
|
|
28222
|
-
L[M] = `key_${
|
|
28233
|
+
L[M] = `key_${R++}`;
|
|
28223
28234
|
m.write("const newResult = {};");
|
|
28224
28235
|
for (const M of y.keys) {
|
|
28225
28236
|
const Y = L[M], K = Uf(M), ie = v[M]?._zod?.optout === "optional";
|
|
@@ -28260,8 +28271,8 @@ const H2 = /* @__PURE__ */ se("$ZodObject", (e, t) => {
|
|
|
28260
28271
|
`);
|
|
28261
28272
|
}
|
|
28262
28273
|
m.write("payload.value = newResult;"), m.write("return payload;");
|
|
28263
|
-
const
|
|
28264
|
-
return (M, Y) =>
|
|
28274
|
+
const j = m.compile();
|
|
28275
|
+
return (M, Y) => j(v, M, Y);
|
|
28265
28276
|
};
|
|
28266
28277
|
let o;
|
|
28267
28278
|
const a = Bo, s = !Dm.jitless, u = s && mR.value, h = t.catchall;
|
|
@@ -29047,7 +29058,7 @@ function jt(e, t, n = { path: [], schemaPath: [] }) {
|
|
|
29047
29058
|
p && (a.ref || (a.ref = p), jt(p, t, h), t.seen.get(p).isParent = !0);
|
|
29048
29059
|
}
|
|
29049
29060
|
const l = t.metadataRegistry.get(e);
|
|
29050
|
-
return l && Object.assign(a.schema, l), t.io === "input" &&
|
|
29061
|
+
return l && Object.assign(a.schema, l), t.io === "input" && qt(e) && (delete a.schema.examples, delete a.schema.default), t.io === "input" && a.schema._prefault && ((r = a.schema).default ?? (r.default = a.schema._prefault)), delete a.schema._prefault, t.seen.get(e).schema;
|
|
29051
29062
|
}
|
|
29052
29063
|
function Qm(e, t) {
|
|
29053
29064
|
const n = e.seen.get(t);
|
|
@@ -29187,7 +29198,7 @@ function eg(e, t) {
|
|
|
29187
29198
|
throw new Error("Error converting schema to JSON.");
|
|
29188
29199
|
}
|
|
29189
29200
|
}
|
|
29190
|
-
function
|
|
29201
|
+
function qt(e, t) {
|
|
29191
29202
|
const n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
29192
29203
|
if (n.seen.has(e))
|
|
29193
29204
|
return !1;
|
|
@@ -29196,36 +29207,36 @@ function Wt(e, t) {
|
|
|
29196
29207
|
if (r.type === "transform")
|
|
29197
29208
|
return !0;
|
|
29198
29209
|
if (r.type === "array")
|
|
29199
|
-
return
|
|
29210
|
+
return qt(r.element, n);
|
|
29200
29211
|
if (r.type === "set")
|
|
29201
|
-
return
|
|
29212
|
+
return qt(r.valueType, n);
|
|
29202
29213
|
if (r.type === "lazy")
|
|
29203
|
-
return
|
|
29214
|
+
return qt(r.getter(), n);
|
|
29204
29215
|
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault")
|
|
29205
|
-
return
|
|
29216
|
+
return qt(r.innerType, n);
|
|
29206
29217
|
if (r.type === "intersection")
|
|
29207
|
-
return
|
|
29218
|
+
return qt(r.left, n) || qt(r.right, n);
|
|
29208
29219
|
if (r.type === "record" || r.type === "map")
|
|
29209
|
-
return
|
|
29220
|
+
return qt(r.keyType, n) || qt(r.valueType, n);
|
|
29210
29221
|
if (r.type === "pipe")
|
|
29211
|
-
return
|
|
29222
|
+
return qt(r.in, n) || qt(r.out, n);
|
|
29212
29223
|
if (r.type === "object") {
|
|
29213
29224
|
for (const i in r.shape)
|
|
29214
|
-
if (
|
|
29225
|
+
if (qt(r.shape[i], n))
|
|
29215
29226
|
return !0;
|
|
29216
29227
|
return !1;
|
|
29217
29228
|
}
|
|
29218
29229
|
if (r.type === "union") {
|
|
29219
29230
|
for (const i of r.options)
|
|
29220
|
-
if (
|
|
29231
|
+
if (qt(i, n))
|
|
29221
29232
|
return !0;
|
|
29222
29233
|
return !1;
|
|
29223
29234
|
}
|
|
29224
29235
|
if (r.type === "tuple") {
|
|
29225
29236
|
for (const i of r.items)
|
|
29226
|
-
if (
|
|
29237
|
+
if (qt(i, n))
|
|
29227
29238
|
return !0;
|
|
29228
|
-
return !!(r.rest &&
|
|
29239
|
+
return !!(r.rest && qt(r.rest, n));
|
|
29229
29240
|
}
|
|
29230
29241
|
return !1;
|
|
29231
29242
|
}
|
|
@@ -29816,13 +29827,13 @@ function QO({
|
|
|
29816
29827
|
for (const Ae of n)
|
|
29817
29828
|
Ae.id && L.current.add(Ae.id);
|
|
29818
29829
|
}, [n]);
|
|
29819
|
-
const
|
|
29830
|
+
const R = at(null), j = at(null), M = at(0), Y = at(null), K = at(null), U = at(!1), ie = at(!1), te = at(r), H = at(i), T = at(o), A = at(a), F = at(s), q = at(l), I = at(u), D = at(h), W = at(p), J = at(v);
|
|
29820
29831
|
Qe(() => {
|
|
29821
29832
|
te.current = r;
|
|
29822
29833
|
}, [r]), Qe(() => {
|
|
29823
29834
|
H.current = i;
|
|
29824
29835
|
}, [i]), Qe(() => {
|
|
29825
|
-
|
|
29836
|
+
T.current = o;
|
|
29826
29837
|
}, [o]), Qe(() => {
|
|
29827
29838
|
A.current = a;
|
|
29828
29839
|
}, [a]), Qe(() => {
|
|
@@ -29845,7 +29856,7 @@ function QO({
|
|
|
29845
29856
|
), C(!0));
|
|
29846
29857
|
}, [X, k, ne]);
|
|
29847
29858
|
const N = ft(() => {
|
|
29848
|
-
|
|
29859
|
+
R.current && (R.current.close(), R.current = null);
|
|
29849
29860
|
}, []), oe = ft(() => {
|
|
29850
29861
|
K.current && (clearInterval(K.current), K.current = null);
|
|
29851
29862
|
}, []), ue = ft(() => {
|
|
@@ -29857,7 +29868,7 @@ function QO({
|
|
|
29857
29868
|
`/default/chat/${Ae}`,
|
|
29858
29869
|
$e
|
|
29859
29870
|
);
|
|
29860
|
-
|
|
29871
|
+
R.current = st, st.subscribe({
|
|
29861
29872
|
next: (At) => {
|
|
29862
29873
|
if (At.type !== "data") {
|
|
29863
29874
|
console.warn("Unexpected event type:", At.type);
|
|
@@ -29874,7 +29885,7 @@ function QO({
|
|
|
29874
29885
|
const ht = Ie, Pt = ht.message_id ?? crypto.randomUUID();
|
|
29875
29886
|
if (L.current.has(Pt))
|
|
29876
29887
|
return;
|
|
29877
|
-
L.current.add(Pt),
|
|
29888
|
+
L.current.add(Pt), T.current(), te.current(
|
|
29878
29889
|
{
|
|
29879
29890
|
message_id: Pt,
|
|
29880
29891
|
response: {
|
|
@@ -29954,9 +29965,9 @@ function QO({
|
|
|
29954
29965
|
[oe, Be, m]
|
|
29955
29966
|
), be = at(() => {
|
|
29956
29967
|
}), je = ft(() => {
|
|
29957
|
-
if (
|
|
29968
|
+
if (!U.current || ie.current || Y.current)
|
|
29958
29969
|
return;
|
|
29959
|
-
const Ae =
|
|
29970
|
+
const Ae = j.current;
|
|
29960
29971
|
if (!Ae) return;
|
|
29961
29972
|
const $e = Math.min(
|
|
29962
29973
|
XO * Math.pow(2, M.current),
|
|
@@ -29978,17 +29989,17 @@ function QO({
|
|
|
29978
29989
|
async (Ae) => {
|
|
29979
29990
|
if (!y || !Ae)
|
|
29980
29991
|
throw new Error("Cannot connect: Amplify not ready or missing chatId");
|
|
29981
|
-
ue(),
|
|
29992
|
+
ue(), U.current = !0, j.current = Ae, M.current = 0, await we(Ae), et(Ae);
|
|
29982
29993
|
},
|
|
29983
29994
|
[y, ue, we, et]
|
|
29984
29995
|
), Ee = ft(() => {
|
|
29985
|
-
|
|
29996
|
+
U.current = !1, j.current = null, M.current = 0, ue(), oe(), N();
|
|
29986
29997
|
}, [ue, oe, N]), Fe = ft(() => {
|
|
29987
29998
|
L.current.clear();
|
|
29988
29999
|
}, []);
|
|
29989
30000
|
return Qe(() => {
|
|
29990
|
-
!t || !y ||
|
|
29991
|
-
console.error("Failed to eagerly connect:", Ae),
|
|
30001
|
+
!t || !y || j.current === t || ze(t).catch((Ae) => {
|
|
30002
|
+
console.error("Failed to eagerly connect:", Ae), j.current = t, U.current = !0, be.current();
|
|
29992
30003
|
});
|
|
29993
30004
|
}, [t, y, ze]), Qe(() => {
|
|
29994
30005
|
const Ae = Ol.listen(
|
|
@@ -30022,11 +30033,11 @@ function eN({
|
|
|
30022
30033
|
}) {
|
|
30023
30034
|
const { saveChatData: y, clearChatData: C, updateLastActivity: L } = Tl({
|
|
30024
30035
|
appId: e
|
|
30025
|
-
}), { publishApiError:
|
|
30036
|
+
}), { publishApiError: R, publishNetworkError: j } = ji(), { showCognition: M, hideCognition: Y } = zp(), K = at(a);
|
|
30026
30037
|
Qe(() => {
|
|
30027
30038
|
K.current = a;
|
|
30028
30039
|
}, [a]);
|
|
30029
|
-
const
|
|
30040
|
+
const U = ft(
|
|
30030
30041
|
(W, J) => {
|
|
30031
30042
|
W.response.content && u((le) => {
|
|
30032
30043
|
const k = [
|
|
@@ -30058,11 +30069,11 @@ function eN({
|
|
|
30058
30069
|
}, [u]);
|
|
30059
30070
|
Qe(() => {
|
|
30060
30071
|
}, [te]);
|
|
30061
|
-
const H = ft((W) => K.current ? K.current.getChatHistory(W) : Promise.resolve([]), []), { connect:
|
|
30072
|
+
const H = ft((W) => K.current ? K.current.getChatHistory(W) : Promise.resolve([]), []), { connect: T, disconnect: A, clearProcessedIds: F } = QO({
|
|
30062
30073
|
chatSettings: s,
|
|
30063
30074
|
chatId: h?.id ?? null,
|
|
30064
30075
|
messages: l,
|
|
30065
|
-
onMessage:
|
|
30076
|
+
onMessage: U,
|
|
30066
30077
|
onCognition: M,
|
|
30067
30078
|
onCognitionComplete: Y,
|
|
30068
30079
|
onError: ie,
|
|
@@ -30108,7 +30119,7 @@ function eN({
|
|
|
30108
30119
|
deviceId: o,
|
|
30109
30120
|
userName: n,
|
|
30110
30121
|
userData: r
|
|
30111
|
-
})).chat_id, p({ id: X }), await
|
|
30122
|
+
})).chat_id, p({ id: X }), await T(X));
|
|
30112
30123
|
const k = await a.replyToConversation({
|
|
30113
30124
|
text: W.content,
|
|
30114
30125
|
conversationId: X,
|
|
@@ -30125,7 +30136,7 @@ function eN({
|
|
|
30125
30136
|
} catch (X) {
|
|
30126
30137
|
throw Y(), u(
|
|
30127
30138
|
(k) => k.filter((ne) => !ne.isThinking)
|
|
30128
|
-
), X instanceof Rl || X instanceof pr && X.status === 403 ? (
|
|
30139
|
+
), X instanceof Rl || X instanceof pr && X.status === 403 ? (j(), X) : (R(X), X instanceof pr && X.status >= 500 && (p(null), C(), u((k) => k.slice(0, -1)), a.reset()), X);
|
|
30129
30140
|
}
|
|
30130
30141
|
},
|
|
30131
30142
|
[
|
|
@@ -30140,10 +30151,10 @@ function eN({
|
|
|
30140
30151
|
t,
|
|
30141
30152
|
o,
|
|
30142
30153
|
p,
|
|
30143
|
-
R,
|
|
30144
|
-
Y,
|
|
30145
30154
|
T,
|
|
30146
|
-
|
|
30155
|
+
Y,
|
|
30156
|
+
R,
|
|
30157
|
+
j,
|
|
30147
30158
|
C,
|
|
30148
30159
|
n,
|
|
30149
30160
|
r
|
|
@@ -30300,7 +30311,7 @@ function iN({
|
|
|
30300
30311
|
baseURL: v,
|
|
30301
30312
|
appId: t
|
|
30302
30313
|
})
|
|
30303
|
-
), [y, C] = Ue(null), [L,
|
|
30314
|
+
), [y, C] = Ue(null), [L, R] = Ue(null), [j, M] = Ue([]), [Y, K] = Ue(!1), ie = nN(`sdk-boot-${t}`, () => m.boot()).fetch;
|
|
30304
30315
|
return Qe(() => {
|
|
30305
30316
|
if (u())
|
|
30306
30317
|
h();
|
|
@@ -30308,20 +30319,20 @@ function iN({
|
|
|
30308
30319
|
const {
|
|
30309
30320
|
conversationId: te,
|
|
30310
30321
|
userId: H,
|
|
30311
|
-
messages:
|
|
30322
|
+
messages: T
|
|
30312
30323
|
} = p();
|
|
30313
|
-
te && H && (
|
|
30324
|
+
te && H && (R({
|
|
30314
30325
|
id: te
|
|
30315
|
-
}),
|
|
30326
|
+
}), T && T.length > 0 && M(T));
|
|
30316
30327
|
}
|
|
30317
30328
|
}, [p, u, h]), Qe(() => {
|
|
30318
30329
|
if (!l) return;
|
|
30319
30330
|
(async () => {
|
|
30320
|
-
const [H,
|
|
30331
|
+
const [H, T] = await Uc(
|
|
30321
30332
|
m.getOrganizationByAppId(t)
|
|
30322
30333
|
);
|
|
30323
|
-
if (
|
|
30324
|
-
console.error("Failed to fetch organization data:",
|
|
30334
|
+
if (T) {
|
|
30335
|
+
console.error("Failed to fetch organization data:", T), K(!0);
|
|
30325
30336
|
return;
|
|
30326
30337
|
}
|
|
30327
30338
|
m.setRegion(H.region);
|
|
@@ -30331,7 +30342,7 @@ function iN({
|
|
|
30331
30342
|
return;
|
|
30332
30343
|
}
|
|
30333
30344
|
const q = A.chat_settings.welcome_message;
|
|
30334
|
-
C(A.chat_settings), q &&
|
|
30345
|
+
C(A.chat_settings), q && j.length === 0 && M([
|
|
30335
30346
|
{
|
|
30336
30347
|
id: crypto.randomUUID(),
|
|
30337
30348
|
content: q,
|
|
@@ -30341,7 +30352,7 @@ function iN({
|
|
|
30341
30352
|
}
|
|
30342
30353
|
]), K(!0);
|
|
30343
30354
|
})();
|
|
30344
|
-
}, [l,
|
|
30355
|
+
}, [l, j.length]), {
|
|
30345
30356
|
userId: o,
|
|
30346
30357
|
userName: r,
|
|
30347
30358
|
userData: i,
|
|
@@ -30350,7 +30361,7 @@ function iN({
|
|
|
30350
30361
|
apiClient: m,
|
|
30351
30362
|
chatSettings: y,
|
|
30352
30363
|
currentChat: L,
|
|
30353
|
-
messages:
|
|
30364
|
+
messages: j,
|
|
30354
30365
|
isReady: Y
|
|
30355
30366
|
};
|
|
30356
30367
|
}
|
|
@@ -30394,8 +30405,8 @@ function aN({
|
|
|
30394
30405
|
deviceId: y,
|
|
30395
30406
|
apiClient: C,
|
|
30396
30407
|
chatSettings: L,
|
|
30397
|
-
currentChat:
|
|
30398
|
-
messages:
|
|
30408
|
+
currentChat: R,
|
|
30409
|
+
messages: j,
|
|
30399
30410
|
isReady: M
|
|
30400
30411
|
} = iN({
|
|
30401
30412
|
apiUrl: t,
|
|
@@ -30403,9 +30414,9 @@ function aN({
|
|
|
30403
30414
|
initialUserId: r,
|
|
30404
30415
|
userName: i,
|
|
30405
30416
|
userData: o
|
|
30406
|
-
}), Y = tE({ chatProps: a, chatSettings: L }), [K,
|
|
30417
|
+
}), Y = tE({ chatProps: a, chatSettings: L }), [K, U] = Ue(l ?? h), ie = qs(K, 200), [te, H] = Ue(
|
|
30407
30418
|
a?.messages ?? []
|
|
30408
|
-
), [
|
|
30419
|
+
), [T, A] = Ue(R), [F, q] = Ue(!1), I = ft(() => {
|
|
30409
30420
|
q(!0);
|
|
30410
30421
|
}, []), [D, W] = Ue({
|
|
30411
30422
|
text: "",
|
|
@@ -30422,23 +30433,23 @@ function aN({
|
|
|
30422
30433
|
chatSettings: L,
|
|
30423
30434
|
setMessages: H,
|
|
30424
30435
|
messages: te,
|
|
30425
|
-
currentChat:
|
|
30436
|
+
currentChat: T,
|
|
30426
30437
|
setCurrentChat: A,
|
|
30427
30438
|
onChatClosed: I,
|
|
30428
30439
|
isChatClosed: F
|
|
30429
30440
|
});
|
|
30430
30441
|
Qe(() => {
|
|
30431
|
-
|
|
30432
|
-
}, [
|
|
30433
|
-
|
|
30434
|
-
}, [
|
|
30435
|
-
|
|
30442
|
+
j.length > 0 && H(j);
|
|
30443
|
+
}, [j]), Qe(() => {
|
|
30444
|
+
R && A(R);
|
|
30445
|
+
}, [R]), Qe(() => {
|
|
30446
|
+
T && m && C?.identifyUser({
|
|
30436
30447
|
userId: v,
|
|
30437
30448
|
userName: i,
|
|
30438
30449
|
userData: o,
|
|
30439
30450
|
externalId: m,
|
|
30440
30451
|
deviceId: y,
|
|
30441
|
-
conversationId:
|
|
30452
|
+
conversationId: T.id
|
|
30442
30453
|
});
|
|
30443
30454
|
}, [
|
|
30444
30455
|
m,
|
|
@@ -30446,7 +30457,7 @@ function aN({
|
|
|
30446
30457
|
i,
|
|
30447
30458
|
o,
|
|
30448
30459
|
y,
|
|
30449
|
-
|
|
30460
|
+
T,
|
|
30450
30461
|
C
|
|
30451
30462
|
]);
|
|
30452
30463
|
const k = ft(() => {
|
|
@@ -30476,7 +30487,7 @@ function aN({
|
|
|
30476
30487
|
messages: te,
|
|
30477
30488
|
portalContainer: p,
|
|
30478
30489
|
onSendMessage: J,
|
|
30479
|
-
setChatOpen:
|
|
30490
|
+
setChatOpen: U,
|
|
30480
30491
|
onCleanMessages: le,
|
|
30481
30492
|
proactiveMessage: D,
|
|
30482
30493
|
hideProactiveMessage: ne,
|
|
@@ -30541,16 +30552,16 @@ function fN({
|
|
|
30541
30552
|
INTERNAL_ONLY_ENVIRONMENT: C = "live",
|
|
30542
30553
|
INTERNAL_ONLY_API_URL: L
|
|
30543
30554
|
}) {
|
|
30544
|
-
const { hideSdk:
|
|
30545
|
-
isReady:
|
|
30555
|
+
const { hideSdk: R } = ji(), {
|
|
30556
|
+
isReady: j,
|
|
30546
30557
|
isMobile: M,
|
|
30547
30558
|
chatOpen: Y,
|
|
30548
30559
|
chatInterfaceProps: K,
|
|
30549
|
-
chatOpenDebounced:
|
|
30560
|
+
chatOpenDebounced: U,
|
|
30550
30561
|
messages: ie,
|
|
30551
30562
|
portalContainer: te,
|
|
30552
30563
|
onSendMessage: H,
|
|
30553
|
-
setChatOpen:
|
|
30564
|
+
setChatOpen: T,
|
|
30554
30565
|
onCleanMessages: A,
|
|
30555
30566
|
proactiveMessage: F,
|
|
30556
30567
|
hideProactiveMessage: q,
|
|
@@ -30569,7 +30580,7 @@ function fN({
|
|
|
30569
30580
|
initialOpen: u,
|
|
30570
30581
|
proactiveMessageHideDelay: o
|
|
30571
30582
|
});
|
|
30572
|
-
if (
|
|
30583
|
+
if (R) return null;
|
|
30573
30584
|
const J = () => /* @__PURE__ */ Te(
|
|
30574
30585
|
"div",
|
|
30575
30586
|
{
|
|
@@ -30604,7 +30615,7 @@ function fN({
|
|
|
30604
30615
|
/* @__PURE__ */ O("style", { children: Oa })
|
|
30605
30616
|
] }),
|
|
30606
30617
|
style: {
|
|
30607
|
-
display: Y ||
|
|
30618
|
+
display: Y || U ? "block" : "none",
|
|
30608
30619
|
width: M ? "100vw" : "400px",
|
|
30609
30620
|
// 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
|
|
30610
30621
|
"--chat-mobile-viewport-height": "100dvh",
|
|
@@ -30629,7 +30640,7 @@ function fN({
|
|
|
30629
30640
|
zIndex: 0
|
|
30630
30641
|
} : {}
|
|
30631
30642
|
},
|
|
30632
|
-
children:
|
|
30643
|
+
children: j ? /* @__PURE__ */ O(
|
|
30633
30644
|
JC,
|
|
30634
30645
|
{
|
|
30635
30646
|
...K,
|
|
@@ -30643,7 +30654,7 @@ function fN({
|
|
|
30643
30654
|
isChatClosed: I,
|
|
30644
30655
|
onStartNewChat: D,
|
|
30645
30656
|
onRateChat: W,
|
|
30646
|
-
onClose: () =>
|
|
30657
|
+
onClose: () => T(!1),
|
|
30647
30658
|
onCleanChat: () => {
|
|
30648
30659
|
A(), y?.();
|
|
30649
30660
|
}
|
|
@@ -30670,7 +30681,7 @@ function fN({
|
|
|
30670
30681
|
hb,
|
|
30671
30682
|
{
|
|
30672
30683
|
isOpen: Y,
|
|
30673
|
-
toggleBubble: () =>
|
|
30684
|
+
toggleBubble: () => T((X) => !X)
|
|
30674
30685
|
}
|
|
30675
30686
|
)
|
|
30676
30687
|
}
|
|
@@ -30692,7 +30703,7 @@ function fN({
|
|
|
30692
30703
|
isVisible: F.isVisible,
|
|
30693
30704
|
onDismiss: q,
|
|
30694
30705
|
onMessageClick: () => {
|
|
30695
|
-
|
|
30706
|
+
T(!0), q();
|
|
30696
30707
|
},
|
|
30697
30708
|
autoHideDelay: F.autoHideDelay
|
|
30698
30709
|
}
|
|
@@ -30720,4 +30731,4 @@ export {
|
|
|
30720
30731
|
bN as r,
|
|
30721
30732
|
QO as u
|
|
30722
30733
|
};
|
|
30723
|
-
//# sourceMappingURL=index-
|
|
30734
|
+
//# sourceMappingURL=index-Bx8ZFFeo.js.map
|