reacthub-pixitweenjs 0.2.73 → 0.2.76
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.es.js +605 -600
- package/dist/index.umd.js +36 -36
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as At from "react";
|
|
2
|
-
import LT, { useEffect as Yn, useState as zn, useRef as
|
|
2
|
+
import LT, { useEffect as Yn, useState as zn, useRef as Xt, useLayoutEffect as Kv, useCallback as vn, useContext as wo, useReducer as FT } from "react";
|
|
3
3
|
import { withFilters as BT, Container as Xe, Sprite as Mf, useApp as DT, AnimatedSprite as UT, Text as $T } from "@pixi/react";
|
|
4
4
|
import Ee from "gsap";
|
|
5
5
|
import * as _n from "pixi.js";
|
|
@@ -110,7 +110,7 @@ const Fs = At.createContext({}), Ge = {
|
|
|
110
110
|
}, lB = ({
|
|
111
111
|
children: e
|
|
112
112
|
}) => {
|
|
113
|
-
const [t, r] = zn(!1), n =
|
|
113
|
+
const [t, r] = zn(!1), n = Xt(), i = Xt(), a = Xt(1e-3);
|
|
114
114
|
Kv(() => (i.current = Ee.context(() => {
|
|
115
115
|
n.current && n.current.progress(0).kill(), n.current && n.current.clear(), n.current && Ee.killTweensOf(n.current), n.current = Ee.timeline({
|
|
116
116
|
paused: !0,
|
|
@@ -507,7 +507,7 @@ function HA(e) {
|
|
|
507
507
|
}
|
|
508
508
|
var VA = HA;
|
|
509
509
|
const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], Gi = At.forwardRef((e, t) => {
|
|
510
|
-
const [r, n] = At.useState(!1), [i, a] = zn(!1), [l, u] = zn(!1), [f, h] = zn(e.initialAlpha), d =
|
|
510
|
+
const [r, n] = At.useState(!1), [i, a] = zn(!1), [l, u] = zn(!1), [f, h] = zn(e.initialAlpha), d = Xt(null), p = Xt(null), c = Xt(null), v = Xt(null), m = Xt(e.initialAlpha), { tl: y } = wo(Fs), {
|
|
511
511
|
uniqueId: b,
|
|
512
512
|
startAt: _,
|
|
513
513
|
endAt: w,
|
|
@@ -526,7 +526,7 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
526
526
|
disabled: M,
|
|
527
527
|
ignoreTlForVideo: F,
|
|
528
528
|
pointerdown: q,
|
|
529
|
-
pointerout:
|
|
529
|
+
pointerout: Z,
|
|
530
530
|
pointerover: z,
|
|
531
531
|
isText: rt,
|
|
532
532
|
isDragging: W,
|
|
@@ -548,13 +548,13 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
548
548
|
u(!0), z && z();
|
|
549
549
|
}, []), j = () => {
|
|
550
550
|
console.log("reverse complete"), m.current = T, h(T);
|
|
551
|
-
}, G = (
|
|
552
|
-
m.current =
|
|
553
|
-
}, K = (
|
|
554
|
-
m.current =
|
|
551
|
+
}, G = (J) => {
|
|
552
|
+
m.current = J.alpha, h(J.alpha);
|
|
553
|
+
}, K = (J) => {
|
|
554
|
+
m.current = J.alpha, h(J.alpha);
|
|
555
555
|
};
|
|
556
556
|
At.useEffect(() => {
|
|
557
|
-
let
|
|
557
|
+
let J = Ee.context(() => {
|
|
558
558
|
});
|
|
559
559
|
if (d.current && y.current) {
|
|
560
560
|
const nt = {
|
|
@@ -566,10 +566,10 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
566
566
|
}, dt = {
|
|
567
567
|
onComplete: K,
|
|
568
568
|
onCompleteParams: [{ alpha: 0 }]
|
|
569
|
-
},
|
|
570
|
-
|
|
569
|
+
}, pt = ZT(R || "None");
|
|
570
|
+
J = Ee.context(() => {
|
|
571
571
|
var bt, Tt;
|
|
572
|
-
ys(
|
|
572
|
+
ys(pt.from) ? ys(pt.to) ? ys(pt.fromTo) ? y.current.to(
|
|
573
573
|
d.current,
|
|
574
574
|
{ alpha: 1, duration: 0.1, ...ot },
|
|
575
575
|
_
|
|
@@ -579,8 +579,8 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
579
579
|
Number(w) - 0.09
|
|
580
580
|
) : y.current.fromTo(
|
|
581
581
|
d.current,
|
|
582
|
-
(bt =
|
|
583
|
-
{ ...(Tt =
|
|
582
|
+
(bt = pt.fromTo) == null ? void 0 : bt.from,
|
|
583
|
+
{ ...(Tt = pt.fromTo) == null ? void 0 : Tt.to, ...ot },
|
|
584
584
|
_
|
|
585
585
|
).to(
|
|
586
586
|
d.current,
|
|
@@ -588,13 +588,13 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
588
588
|
Number(w) - 0.09
|
|
589
589
|
) : y.current.to(
|
|
590
590
|
d.current,
|
|
591
|
-
{ alpha: 1, duration: 0.1, ...
|
|
591
|
+
{ alpha: 1, duration: 0.1, ...pt.to, ...ot },
|
|
592
592
|
_
|
|
593
593
|
).to(
|
|
594
594
|
d.current,
|
|
595
595
|
{ alpha: 0, duration: 0.1, ...dt },
|
|
596
596
|
Number(w) - 0.09
|
|
597
|
-
) : y.current.from(d.current, { ...
|
|
597
|
+
) : y.current.from(d.current, { ...pt.from }, _).to(
|
|
598
598
|
d.current,
|
|
599
599
|
{ alpha: 1, duration: 0.1, ...ot },
|
|
600
600
|
_
|
|
@@ -606,47 +606,47 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
return () => {
|
|
609
|
-
y.current && (y.current.progress(0).kill(), Ee.killTweensOf(y.current)),
|
|
609
|
+
y.current && (y.current.progress(0).kill(), Ee.killTweensOf(y.current)), J.revert();
|
|
610
610
|
};
|
|
611
611
|
}, [R, _, w, F]);
|
|
612
612
|
const X = At.useCallback(() => {
|
|
613
613
|
a(!0);
|
|
614
614
|
}, []), $ = At.useCallback(
|
|
615
|
-
(
|
|
616
|
-
console.log("changeEnd",
|
|
615
|
+
(J) => {
|
|
616
|
+
console.log("changeEnd", J), e.onAnchorTransformationEnd && (console.log("running onAnchorTransformationEnd"), e.onAnchorTransformationEnd(J)), a(!1);
|
|
617
617
|
},
|
|
618
618
|
[]
|
|
619
619
|
), V = BT(Xe, {
|
|
620
620
|
matrix: _n.filters.ColorMatrixFilter
|
|
621
621
|
});
|
|
622
622
|
console.log("abstraction props", e), console.log("alphaRef", b, m.current, f, T);
|
|
623
|
-
const
|
|
623
|
+
const Q = m.current || f;
|
|
624
624
|
return /* @__PURE__ */ ee.jsxs(Xe, { ref: p, children: [
|
|
625
625
|
/* @__PURE__ */ ee.jsxs(
|
|
626
626
|
Xe,
|
|
627
627
|
{
|
|
628
628
|
ref: d,
|
|
629
|
-
alpha:
|
|
629
|
+
alpha: Q,
|
|
630
630
|
position: [x, A],
|
|
631
631
|
pivot: [x, A],
|
|
632
632
|
width: I,
|
|
633
633
|
height: S,
|
|
634
634
|
scale: O,
|
|
635
635
|
rotation: L,
|
|
636
|
-
...!M && !i && !W &&
|
|
636
|
+
...!M && !i && !W && Q > 0 && {
|
|
637
637
|
interactive: !0,
|
|
638
638
|
buttonMode: !0,
|
|
639
639
|
pointerdown: q,
|
|
640
640
|
pointerover: z,
|
|
641
|
-
pointerout:
|
|
641
|
+
pointerout: Z
|
|
642
642
|
},
|
|
643
643
|
children: [
|
|
644
644
|
!D && /* @__PURE__ */ ee.jsx(
|
|
645
645
|
V,
|
|
646
646
|
{
|
|
647
647
|
scale: 1,
|
|
648
|
-
apply: ({ matrix:
|
|
649
|
-
C === bi.BlackAndWhite ?
|
|
648
|
+
apply: ({ matrix: J }) => {
|
|
649
|
+
C === bi.BlackAndWhite ? J.desaturate() : C === bi.Sepia ? J.sepia() : C === bi.RetroVintage || C === bi.NightVision ? J.negative() : C === bi.Normal && J.reset();
|
|
650
650
|
},
|
|
651
651
|
matrix: {
|
|
652
652
|
enabled: !0,
|
|
@@ -679,7 +679,7 @@ Gi.whyDidYouRender = {
|
|
|
679
679
|
logOnDifferentValues: !0,
|
|
680
680
|
customName: "AbstractContainer"
|
|
681
681
|
};
|
|
682
|
-
var Qn = /* @__PURE__ */ ((e) => (e[e.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", e[e.WEBGL = 1] = "WEBGL", e[e.WEBGL2 = 2] = "WEBGL2", e))(Qn || {}), lg = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WEBGL = 1] = "WEBGL", e[e.CANVAS = 2] = "CANVAS", e))(lg || {}), tf = /* @__PURE__ */ ((e) => (e[e.COLOR = 16384] = "COLOR", e[e.DEPTH = 256] = "DEPTH", e[e.STENCIL = 1024] = "STENCIL", e))(tf || {}), Ct = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ADD = 1] = "ADD", e[e.MULTIPLY = 2] = "MULTIPLY", e[e.SCREEN = 3] = "SCREEN", e[e.OVERLAY = 4] = "OVERLAY", e[e.DARKEN = 5] = "DARKEN", e[e.LIGHTEN = 6] = "LIGHTEN", e[e.COLOR_DODGE = 7] = "COLOR_DODGE", e[e.COLOR_BURN = 8] = "COLOR_BURN", e[e.HARD_LIGHT = 9] = "HARD_LIGHT", e[e.SOFT_LIGHT = 10] = "SOFT_LIGHT", e[e.DIFFERENCE = 11] = "DIFFERENCE", e[e.EXCLUSION = 12] = "EXCLUSION", e[e.HUE = 13] = "HUE", e[e.SATURATION = 14] = "SATURATION", e[e.COLOR = 15] = "COLOR", e[e.LUMINOSITY = 16] = "LUMINOSITY", e[e.NORMAL_NPM = 17] = "NORMAL_NPM", e[e.ADD_NPM = 18] = "ADD_NPM", e[e.SCREEN_NPM = 19] = "SCREEN_NPM", e[e.NONE = 20] = "NONE", e[e.SRC_OVER = 0] = "SRC_OVER", e[e.SRC_IN = 21] = "SRC_IN", e[e.SRC_OUT = 22] = "SRC_OUT", e[e.SRC_ATOP = 23] = "SRC_ATOP", e[e.DST_OVER = 24] = "DST_OVER", e[e.DST_IN = 25] = "DST_IN", e[e.DST_OUT = 26] = "DST_OUT", e[e.DST_ATOP = 27] = "DST_ATOP", e[e.ERASE = 26] = "ERASE", e[e.SUBTRACT = 28] = "SUBTRACT", e[e.XOR = 29] = "XOR", e))(Ct || {}), mn = /* @__PURE__ */ ((e) => (e[e.POINTS = 0] = "POINTS", e[e.LINES = 1] = "LINES", e[e.LINE_LOOP = 2] = "LINE_LOOP", e[e.LINE_STRIP = 3] = "LINE_STRIP", e[e.TRIANGLES = 4] = "TRIANGLES", e[e.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", e[e.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", e))(mn || {}), yt = /* @__PURE__ */ ((e) => (e[e.RGBA = 6408] = "RGBA", e[e.RGB = 6407] = "RGB", e[e.RG = 33319] = "RG", e[e.RED = 6403] = "RED", e[e.RGBA_INTEGER = 36249] = "RGBA_INTEGER", e[e.RGB_INTEGER = 36248] = "RGB_INTEGER", e[e.RG_INTEGER = 33320] = "RG_INTEGER", e[e.RED_INTEGER = 36244] = "RED_INTEGER", e[e.ALPHA = 6406] = "ALPHA", e[e.LUMINANCE = 6409] = "LUMINANCE", e[e.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", e[e.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", e[e.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", e))(yt || {}), Oi = /* @__PURE__ */ ((e) => (e[e.TEXTURE_2D = 3553] = "TEXTURE_2D", e[e.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", e[e.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", e[e.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", e[e.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", e[e.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", e[e.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", e))(Oi || {}),
|
|
682
|
+
var Qn = /* @__PURE__ */ ((e) => (e[e.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", e[e.WEBGL = 1] = "WEBGL", e[e.WEBGL2 = 2] = "WEBGL2", e))(Qn || {}), lg = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WEBGL = 1] = "WEBGL", e[e.CANVAS = 2] = "CANVAS", e))(lg || {}), tf = /* @__PURE__ */ ((e) => (e[e.COLOR = 16384] = "COLOR", e[e.DEPTH = 256] = "DEPTH", e[e.STENCIL = 1024] = "STENCIL", e))(tf || {}), Ct = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ADD = 1] = "ADD", e[e.MULTIPLY = 2] = "MULTIPLY", e[e.SCREEN = 3] = "SCREEN", e[e.OVERLAY = 4] = "OVERLAY", e[e.DARKEN = 5] = "DARKEN", e[e.LIGHTEN = 6] = "LIGHTEN", e[e.COLOR_DODGE = 7] = "COLOR_DODGE", e[e.COLOR_BURN = 8] = "COLOR_BURN", e[e.HARD_LIGHT = 9] = "HARD_LIGHT", e[e.SOFT_LIGHT = 10] = "SOFT_LIGHT", e[e.DIFFERENCE = 11] = "DIFFERENCE", e[e.EXCLUSION = 12] = "EXCLUSION", e[e.HUE = 13] = "HUE", e[e.SATURATION = 14] = "SATURATION", e[e.COLOR = 15] = "COLOR", e[e.LUMINOSITY = 16] = "LUMINOSITY", e[e.NORMAL_NPM = 17] = "NORMAL_NPM", e[e.ADD_NPM = 18] = "ADD_NPM", e[e.SCREEN_NPM = 19] = "SCREEN_NPM", e[e.NONE = 20] = "NONE", e[e.SRC_OVER = 0] = "SRC_OVER", e[e.SRC_IN = 21] = "SRC_IN", e[e.SRC_OUT = 22] = "SRC_OUT", e[e.SRC_ATOP = 23] = "SRC_ATOP", e[e.DST_OVER = 24] = "DST_OVER", e[e.DST_IN = 25] = "DST_IN", e[e.DST_OUT = 26] = "DST_OUT", e[e.DST_ATOP = 27] = "DST_ATOP", e[e.ERASE = 26] = "ERASE", e[e.SUBTRACT = 28] = "SUBTRACT", e[e.XOR = 29] = "XOR", e))(Ct || {}), mn = /* @__PURE__ */ ((e) => (e[e.POINTS = 0] = "POINTS", e[e.LINES = 1] = "LINES", e[e.LINE_LOOP = 2] = "LINE_LOOP", e[e.LINE_STRIP = 3] = "LINE_STRIP", e[e.TRIANGLES = 4] = "TRIANGLES", e[e.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", e[e.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", e))(mn || {}), yt = /* @__PURE__ */ ((e) => (e[e.RGBA = 6408] = "RGBA", e[e.RGB = 6407] = "RGB", e[e.RG = 33319] = "RG", e[e.RED = 6403] = "RED", e[e.RGBA_INTEGER = 36249] = "RGBA_INTEGER", e[e.RGB_INTEGER = 36248] = "RGB_INTEGER", e[e.RG_INTEGER = 33320] = "RG_INTEGER", e[e.RED_INTEGER = 36244] = "RED_INTEGER", e[e.ALPHA = 6406] = "ALPHA", e[e.LUMINANCE = 6409] = "LUMINANCE", e[e.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", e[e.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", e[e.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", e))(yt || {}), Oi = /* @__PURE__ */ ((e) => (e[e.TEXTURE_2D = 3553] = "TEXTURE_2D", e[e.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", e[e.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", e[e.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", e[e.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", e[e.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", e[e.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", e))(Oi || {}), Vt = /* @__PURE__ */ ((e) => (e[e.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", e[e.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", e[e.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", e[e.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", e[e.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", e[e.UNSIGNED_INT = 5125] = "UNSIGNED_INT", e[e.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", e[e.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", e[e.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", e[e.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", e[e.BYTE = 5120] = "BYTE", e[e.SHORT = 5122] = "SHORT", e[e.INT = 5124] = "INT", e[e.FLOAT = 5126] = "FLOAT", e[e.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", e[e.HALF_FLOAT = 36193] = "HALF_FLOAT", e))(Vt || {}), ef = /* @__PURE__ */ ((e) => (e[e.FLOAT = 0] = "FLOAT", e[e.INT = 1] = "INT", e[e.UINT = 2] = "UINT", e))(ef || {}), Ur = /* @__PURE__ */ ((e) => (e[e.NEAREST = 0] = "NEAREST", e[e.LINEAR = 1] = "LINEAR", e))(Ur || {}), Os = /* @__PURE__ */ ((e) => (e[e.CLAMP = 33071] = "CLAMP", e[e.REPEAT = 10497] = "REPEAT", e[e.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", e))(Os || {}), Xn = /* @__PURE__ */ ((e) => (e[e.OFF = 0] = "OFF", e[e.POW2 = 1] = "POW2", e[e.ON = 2] = "ON", e[e.ON_MANUAL = 3] = "ON_MANUAL", e))(Xn || {}), xn = /* @__PURE__ */ ((e) => (e[e.NPM = 0] = "NPM", e[e.UNPACK = 1] = "UNPACK", e[e.PMA = 2] = "PMA", e[e.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", e[e.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", e[e.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", e))(xn || {}), Fn = /* @__PURE__ */ ((e) => (e[e.NO = 0] = "NO", e[e.YES = 1] = "YES", e[e.AUTO = 2] = "AUTO", e[e.BLEND = 0] = "BLEND", e[e.CLEAR = 1] = "CLEAR", e[e.BLIT = 2] = "BLIT", e))(Fn || {}), Uf = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.MANUAL = 1] = "MANUAL", e))(Uf || {}), pr = /* @__PURE__ */ ((e) => (e.LOW = "lowp", e.MEDIUM = "mediump", e.HIGH = "highp", e))(pr || {}), Te = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.SCISSOR = 1] = "SCISSOR", e[e.STENCIL = 2] = "STENCIL", e[e.SPRITE = 3] = "SPRITE", e[e.COLOR = 4] = "COLOR", e))(Te || {}), be = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.LOW = 2] = "LOW", e[e.MEDIUM = 4] = "MEDIUM", e[e.HIGH = 8] = "HIGH", e))(be || {}), $r = /* @__PURE__ */ ((e) => (e[e.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", e[e.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", e[e.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", e))($r || {});
|
|
683
683
|
const XA = {
|
|
684
684
|
createCanvas: (e, t) => {
|
|
685
685
|
const r = document.createElement("canvas");
|
|
@@ -1197,31 +1197,31 @@ lo.exports;
|
|
|
1197
1197
|
D = A(D / x);
|
|
1198
1198
|
return A(G + (x + 1) * D / (D + p));
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1201
|
-
var k = [], j = D.length, G, K = 0, X = m, $ = v, V,
|
|
1202
|
-
for (V = D.lastIndexOf(y), V < 0 && (V = 0),
|
|
1203
|
-
D.charCodeAt(
|
|
1204
|
-
for (
|
|
1205
|
-
for (nt = K, ot = 1, dt = f;
|
|
1200
|
+
function Z(D) {
|
|
1201
|
+
var k = [], j = D.length, G, K = 0, X = m, $ = v, V, Q, J, nt, ot, dt, pt, bt, Tt;
|
|
1202
|
+
for (V = D.lastIndexOf(y), V < 0 && (V = 0), Q = 0; Q < V; ++Q)
|
|
1203
|
+
D.charCodeAt(Q) >= 128 && O("not-basic"), k.push(D.charCodeAt(Q));
|
|
1204
|
+
for (J = V > 0 ? V + 1 : 0; J < j; ) {
|
|
1205
|
+
for (nt = K, ot = 1, dt = f; J >= j && O("invalid-input"), pt = M(D.charCodeAt(J++)), (pt >= f || pt > A((u - K) / ot)) && O("overflow"), K += pt * ot, bt = dt <= $ ? h : dt >= $ + d ? d : dt - $, !(pt < bt); dt += f)
|
|
1206
1206
|
Tt = f - bt, ot > A(u / Tt) && O("overflow"), ot *= Tt;
|
|
1207
1207
|
G = k.length + 1, $ = q(K - nt, G, nt == 0), A(K / G) > u - X && O("overflow"), X += A(K / G), K %= G, k.splice(K++, 0, X);
|
|
1208
1208
|
}
|
|
1209
1209
|
return P(k);
|
|
1210
1210
|
}
|
|
1211
1211
|
function z(D) {
|
|
1212
|
-
var k, j, G, K, X, $, V,
|
|
1213
|
-
for (D = C(D),
|
|
1212
|
+
var k, j, G, K, X, $, V, Q, J, nt, ot, dt = [], pt, bt, Tt, le;
|
|
1213
|
+
for (D = C(D), pt = D.length, k = m, j = 0, X = v, $ = 0; $ < pt; ++$)
|
|
1214
1214
|
ot = D[$], ot < 128 && dt.push(I(ot));
|
|
1215
|
-
for (G = K = dt.length, K && dt.push(y); G <
|
|
1216
|
-
for (V = u, $ = 0; $ <
|
|
1215
|
+
for (G = K = dt.length, K && dt.push(y); G < pt; ) {
|
|
1216
|
+
for (V = u, $ = 0; $ < pt; ++$)
|
|
1217
1217
|
ot = D[$], ot >= k && ot < V && (V = ot);
|
|
1218
|
-
for (bt = G + 1, V - k > A((u - j) / bt) && O("overflow"), j += (V - k) * bt, k = V, $ = 0; $ <
|
|
1218
|
+
for (bt = G + 1, V - k > A((u - j) / bt) && O("overflow"), j += (V - k) * bt, k = V, $ = 0; $ < pt; ++$)
|
|
1219
1219
|
if (ot = D[$], ot < k && ++j > u && O("overflow"), ot == k) {
|
|
1220
|
-
for (
|
|
1221
|
-
le =
|
|
1220
|
+
for (Q = j, J = f; nt = J <= X ? h : J >= X + d ? d : J - X, !(Q < nt); J += f)
|
|
1221
|
+
le = Q - nt, Tt = f - nt, dt.push(
|
|
1222
1222
|
I(F(nt + le % Tt, 0))
|
|
1223
|
-
),
|
|
1224
|
-
dt.push(I(F(
|
|
1223
|
+
), Q = A(le / Tt);
|
|
1224
|
+
dt.push(I(F(Q, 0))), X = q(j, bt, G == K), j = 0, ++G;
|
|
1225
1225
|
}
|
|
1226
1226
|
++j, ++k;
|
|
1227
1227
|
}
|
|
@@ -1229,7 +1229,7 @@ lo.exports;
|
|
|
1229
1229
|
}
|
|
1230
1230
|
function rt(D) {
|
|
1231
1231
|
return R(D, function(k) {
|
|
1232
|
-
return b.test(k) ?
|
|
1232
|
+
return b.test(k) ? Z(k.slice(4).toLowerCase()) : k;
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
1235
|
function W(D) {
|
|
@@ -1255,7 +1255,7 @@ lo.exports;
|
|
|
1255
1255
|
decode: C,
|
|
1256
1256
|
encode: P
|
|
1257
1257
|
},
|
|
1258
|
-
decode:
|
|
1258
|
+
decode: Z,
|
|
1259
1259
|
encode: z,
|
|
1260
1260
|
toASCII: W,
|
|
1261
1261
|
toUnicode: rt
|
|
@@ -1637,10 +1637,10 @@ var lf = HS, Ep = lf.custom, Ap = bg(Ep) ? Ep : null, eO = function e(t, r, n, i
|
|
|
1637
1637
|
return "[Circular]";
|
|
1638
1638
|
function c(M, F, q) {
|
|
1639
1639
|
if (F && (i = tO.call(i), i.push(F)), q) {
|
|
1640
|
-
var
|
|
1640
|
+
var Z = {
|
|
1641
1641
|
depth: a.depth
|
|
1642
1642
|
};
|
|
1643
|
-
return gn(a, "quoteStyle") && (
|
|
1643
|
+
return gn(a, "quoteStyle") && (Z.quoteStyle = a.quoteStyle), e(M, Z, n + 1, i);
|
|
1644
1644
|
}
|
|
1645
1645
|
return e(M, a, n + 1, i);
|
|
1646
1646
|
}
|
|
@@ -2148,8 +2148,8 @@ var Vf = jf, ji = jS, bO = eO, xO = Vf("%TypeError%"), La = Vf("%WeakMap%", !0),
|
|
|
2148
2148
|
}
|
|
2149
2149
|
typeof w.get(Eu) > "u" && (T = 0);
|
|
2150
2150
|
}
|
|
2151
|
-
if (typeof f == "function" ? _ = f(r, _) : _ instanceof Date ? _ = p(_) : n === "comma" && en(_) && (_ = Ya.maybeMap(_, function(
|
|
2152
|
-
return
|
|
2151
|
+
if (typeof f == "function" ? _ = f(r, _) : _ instanceof Date ? _ = p(_) : n === "comma" && en(_) && (_ = Ya.maybeMap(_, function(Z) {
|
|
2152
|
+
return Z instanceof Date ? p(Z) : Z;
|
|
2153
2153
|
})), _ === null) {
|
|
2154
2154
|
if (a)
|
|
2155
2155
|
return u && !m ? u(r, ke.encoder, y, "key", c) : r;
|
|
@@ -2492,8 +2492,8 @@ Or.prototype.parse = function(e, t, r) {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
var q = u.indexOf("#");
|
|
2494
2494
|
q !== -1 && (this.hash = u.substr(q), u = u.slice(0, q));
|
|
2495
|
-
var
|
|
2496
|
-
if (
|
|
2495
|
+
var Z = u.indexOf("?");
|
|
2496
|
+
if (Z !== -1 ? (this.search = u.substr(Z), this.query = u.substr(Z + 1), t && (this.query = pf.parse(this.query)), u = u.slice(0, Z)) : t && (this.search = "", this.query = {}), u && (this.pathname = u), Ri[d] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
2497
2497
|
var C = this.pathname || "", z = this.search || "";
|
|
2498
2498
|
this.path = C + z;
|
|
2499
2499
|
}
|
|
@@ -3434,7 +3434,7 @@ const zC = {
|
|
|
3434
3434
|
}
|
|
3435
3435
|
static fromBuffer(e, t, r, n) {
|
|
3436
3436
|
e = e || new Float32Array(t * r * 4);
|
|
3437
|
-
const i = new Yf(e, { width: t, height: r }), a = e instanceof Float32Array ?
|
|
3437
|
+
const i = new Yf(e, { width: t, height: r }), a = e instanceof Float32Array ? Vt.FLOAT : Vt.UNSIGNED_BYTE;
|
|
3438
3438
|
return new wi(i, Object.assign({}, zC, n || { width: t, height: r, type: a }));
|
|
3439
3439
|
}
|
|
3440
3440
|
static addToCache(e, t) {
|
|
@@ -3455,8 +3455,8 @@ const zC = {
|
|
|
3455
3455
|
return null;
|
|
3456
3456
|
}
|
|
3457
3457
|
};
|
|
3458
|
-
let
|
|
3459
|
-
|
|
3458
|
+
let Wt = wi;
|
|
3459
|
+
Wt.defaultOptions = {
|
|
3460
3460
|
mipmap: Xn.POW2,
|
|
3461
3461
|
anisotropicLevel: 0,
|
|
3462
3462
|
scaleMode: Ur.LINEAR,
|
|
@@ -3464,9 +3464,9 @@ Vt.defaultOptions = {
|
|
|
3464
3464
|
alphaMode: xn.UNPACK,
|
|
3465
3465
|
target: Oi.TEXTURE_2D,
|
|
3466
3466
|
format: yt.RGBA,
|
|
3467
|
-
type:
|
|
3467
|
+
type: Vt.UNSIGNED_BYTE
|
|
3468
3468
|
};
|
|
3469
|
-
|
|
3469
|
+
Wt._globalBatch = 0;
|
|
3470
3470
|
class _f {
|
|
3471
3471
|
constructor() {
|
|
3472
3472
|
this.texArray = null, this.blend = 0, this.type = mn.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
|
|
@@ -3496,7 +3496,7 @@ let HC = 0, nr = class kg {
|
|
|
3496
3496
|
}
|
|
3497
3497
|
};
|
|
3498
3498
|
class vo {
|
|
3499
|
-
constructor(t, r = 0, n = !1, i =
|
|
3499
|
+
constructor(t, r = 0, n = !1, i = Vt.FLOAT, a, l, u, f = 1) {
|
|
3500
3500
|
this.buffer = t, this.size = r, this.normalized = n, this.type = i, this.stride = a, this.start = l, this.instance = u, this.divisor = f;
|
|
3501
3501
|
}
|
|
3502
3502
|
destroy() {
|
|
@@ -3643,7 +3643,7 @@ class Li {
|
|
|
3643
3643
|
}
|
|
3644
3644
|
class Lg extends Li {
|
|
3645
3645
|
constructor(t = !1) {
|
|
3646
|
-
super(), this._buffer = new nr(null, t, !1), this._indexBuffer = new nr(null, t, !0), this.addAttribute("aVertexPosition", this._buffer, 2, !1,
|
|
3646
|
+
super(), this._buffer = new nr(null, t, !1), this._indexBuffer = new nr(null, t, !0), this.addAttribute("aVertexPosition", this._buffer, 2, !1, Vt.FLOAT).addAttribute("aTextureCoord", this._buffer, 2, !1, Vt.FLOAT).addAttribute("aColor", this._buffer, 4, !0, Vt.UNSIGNED_BYTE).addAttribute("aTextureId", this._buffer, 1, !0, Vt.FLOAT).addIndex(this._indexBuffer);
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
3649
|
const go = Math.PI * 2, YC = 180 / Math.PI, Ms = Math.PI / 180;
|
|
@@ -4891,7 +4891,7 @@ const br = class extends qg {
|
|
|
4891
4891
|
_bufferedTextures: e,
|
|
4892
4892
|
maxTextures: t
|
|
4893
4893
|
} = this, r = br._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, a = this.renderer.textureGC.count;
|
|
4894
|
-
let l = ++
|
|
4894
|
+
let l = ++Wt._globalBatch, u = 0, f = r[0], h = 0;
|
|
4895
4895
|
n.copyBoundTextures(i, t);
|
|
4896
4896
|
for (let d = 0; d < this._bufferSize; ++d) {
|
|
4897
4897
|
const p = e[d];
|
|
@@ -4900,7 +4900,7 @@ const br = class extends qg {
|
|
|
4900
4900
|
f.count > 0 && (n.boundArray(f, i, l, t), this.buildDrawCalls(f, h, this._bufferSize), ++u, ++l);
|
|
4901
4901
|
for (let d = 0; d < i.length; d++)
|
|
4902
4902
|
i[d] = null;
|
|
4903
|
-
|
|
4903
|
+
Wt._globalBatch = l;
|
|
4904
4904
|
}
|
|
4905
4905
|
buildDrawCalls(e, t, r) {
|
|
4906
4906
|
const {
|
|
@@ -5257,7 +5257,7 @@ class wf {
|
|
|
5257
5257
|
return this.colorTextures[0];
|
|
5258
5258
|
}
|
|
5259
5259
|
addColorTexture(t = 0, r) {
|
|
5260
|
-
return this.colorTextures[t] = r || new
|
|
5260
|
+
return this.colorTextures[t] = r || new Wt(null, {
|
|
5261
5261
|
scaleMode: Ur.NEAREST,
|
|
5262
5262
|
resolution: 1,
|
|
5263
5263
|
mipmap: Xn.OFF,
|
|
@@ -5266,14 +5266,14 @@ class wf {
|
|
|
5266
5266
|
}), this.dirtyId++, this.dirtyFormat++, this;
|
|
5267
5267
|
}
|
|
5268
5268
|
addDepthTexture(t) {
|
|
5269
|
-
return this.depthTexture = t || new
|
|
5269
|
+
return this.depthTexture = t || new Wt(new yR(null, { width: this.width, height: this.height }), {
|
|
5270
5270
|
scaleMode: Ur.NEAREST,
|
|
5271
5271
|
resolution: 1,
|
|
5272
5272
|
width: this.width,
|
|
5273
5273
|
height: this.height,
|
|
5274
5274
|
mipmap: Xn.OFF,
|
|
5275
5275
|
format: yt.DEPTH_COMPONENT,
|
|
5276
|
-
type:
|
|
5276
|
+
type: Vt.UNSIGNED_SHORT
|
|
5277
5277
|
}), this.dirtyId++, this.dirtyFormat++, this;
|
|
5278
5278
|
}
|
|
5279
5279
|
enableDepth() {
|
|
@@ -5302,7 +5302,7 @@ class wf {
|
|
|
5302
5302
|
this.depthTexture && (this.depthTexture.destroy(), this.depthTexture = null, ++this.dirtyId, ++this.dirtyFormat);
|
|
5303
5303
|
}
|
|
5304
5304
|
}
|
|
5305
|
-
class Hg extends
|
|
5305
|
+
class Hg extends Wt {
|
|
5306
5306
|
constructor(t = {}) {
|
|
5307
5307
|
if (typeof t == "number") {
|
|
5308
5308
|
const r = arguments[0], n = arguments[1], i = arguments[2], a = arguments[3];
|
|
@@ -5440,9 +5440,9 @@ function za(e) {
|
|
|
5440
5440
|
}, e.emit = function() {
|
|
5441
5441
|
};
|
|
5442
5442
|
}
|
|
5443
|
-
class
|
|
5443
|
+
class Ht extends So {
|
|
5444
5444
|
constructor(t, r, n, i, a, l, u) {
|
|
5445
|
-
if (super(), this.noFrame = !1, r || (this.noFrame = !0, r = new ne(0, 0, 1, 1)), t instanceof
|
|
5445
|
+
if (super(), this.noFrame = !1, r || (this.noFrame = !0, r = new ne(0, 0, 1, 1)), t instanceof Ht && (t = t.baseTexture), this.baseTexture = t, this._frame = r, this.trim = i, this.valid = !1, this._uvs = Qp, this.uvMatrix = null, this.orig = n || r, this._rotate = Number(a || 0), a === !0)
|
|
5446
5446
|
this._rotate = 2;
|
|
5447
5447
|
else if (this._rotate % 2 !== 0)
|
|
5448
5448
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -5464,15 +5464,15 @@ class zt extends So {
|
|
|
5464
5464
|
if (this.baseTexture) {
|
|
5465
5465
|
if (t) {
|
|
5466
5466
|
const { resource: r } = this.baseTexture;
|
|
5467
|
-
r != null && r.url && Fr[r.url] &&
|
|
5467
|
+
r != null && r.url && Fr[r.url] && Ht.removeFromCache(r.url), this.baseTexture.destroy();
|
|
5468
5468
|
}
|
|
5469
5469
|
this.baseTexture.off("loaded", this.onBaseTextureUpdated, this), this.baseTexture.off("update", this.onBaseTextureUpdated, this), this.baseTexture = null;
|
|
5470
5470
|
}
|
|
5471
|
-
this._frame = null, this._uvs = null, this.trim = null, this.orig = null, this.valid = !1,
|
|
5471
|
+
this._frame = null, this._uvs = null, this.trim = null, this.orig = null, this.valid = !1, Ht.removeFromCache(this), this.textureCacheIds = null;
|
|
5472
5472
|
}
|
|
5473
5473
|
clone() {
|
|
5474
5474
|
var i;
|
|
5475
|
-
const t = this._frame.clone(), r = this._frame === this.orig ? t : this.orig.clone(), n = new
|
|
5475
|
+
const t = this._frame.clone(), r = this._frame === this.orig ? t : this.orig.clone(), n = new Ht(this.baseTexture, !this.noFrame && t, r, (i = this.trim) == null ? void 0 : i.clone(), this.rotate, this.defaultAnchor, this.defaultBorders);
|
|
5476
5476
|
return this.noFrame && (n._frame = t), n;
|
|
5477
5477
|
}
|
|
5478
5478
|
updateUvs() {
|
|
@@ -5483,10 +5483,10 @@ class zt extends So {
|
|
|
5483
5483
|
let a = null;
|
|
5484
5484
|
if (i)
|
|
5485
5485
|
a = t;
|
|
5486
|
-
else if (t instanceof
|
|
5486
|
+
else if (t instanceof Wt) {
|
|
5487
5487
|
if (!t.cacheId) {
|
|
5488
5488
|
const u = (r == null ? void 0 : r.pixiIdPrefix) || "pixiid";
|
|
5489
|
-
t.cacheId = `${u}-${Ps()}`,
|
|
5489
|
+
t.cacheId = `${u}-${Ps()}`, Wt.addToCache(t, t.cacheId);
|
|
5490
5490
|
}
|
|
5491
5491
|
a = t.cacheId;
|
|
5492
5492
|
} else {
|
|
@@ -5499,23 +5499,23 @@ class zt extends So {
|
|
|
5499
5499
|
let l = Fr[a];
|
|
5500
5500
|
if (i && n && !l)
|
|
5501
5501
|
throw new Error(`The cacheId "${a}" does not exist in TextureCache.`);
|
|
5502
|
-
return !l && !(t instanceof
|
|
5502
|
+
return !l && !(t instanceof Wt) ? (r.resolution || (r.resolution = zp(t)), l = new Ht(new Wt(t, r)), l.baseTexture.cacheId = a, Wt.addToCache(l.baseTexture, a), Ht.addToCache(l, a)) : !l && t instanceof Wt && (l = new Ht(t), Ht.addToCache(l, a)), l;
|
|
5503
5503
|
}
|
|
5504
5504
|
static fromURL(t, r) {
|
|
5505
|
-
const n = Object.assign({ autoLoad: !1 }, r == null ? void 0 : r.resourceOptions), i =
|
|
5505
|
+
const n = Object.assign({ autoLoad: !1 }, r == null ? void 0 : r.resourceOptions), i = Ht.from(t, Object.assign({ resourceOptions: n }, r), !1), a = i.baseTexture.resource;
|
|
5506
5506
|
return i.baseTexture.valid ? Promise.resolve(i) : a.load().then(() => Promise.resolve(i));
|
|
5507
5507
|
}
|
|
5508
5508
|
static fromBuffer(t, r, n, i) {
|
|
5509
|
-
return new
|
|
5509
|
+
return new Ht(Wt.fromBuffer(t, r, n, i));
|
|
5510
5510
|
}
|
|
5511
5511
|
static fromLoader(t, r, n, i) {
|
|
5512
|
-
const a = new
|
|
5513
|
-
scaleMode:
|
|
5512
|
+
const a = new Wt(t, Object.assign({
|
|
5513
|
+
scaleMode: Wt.defaultOptions.scaleMode,
|
|
5514
5514
|
resolution: zp(r)
|
|
5515
5515
|
}, i)), { resource: l } = a;
|
|
5516
5516
|
l instanceof Vg && (l.url = r);
|
|
5517
|
-
const u = new
|
|
5518
|
-
return n || (n = r),
|
|
5517
|
+
const u = new Ht(a);
|
|
5518
|
+
return n || (n = r), Wt.addToCache(u.baseTexture, n), Ht.addToCache(u, n), n !== r && (Wt.addToCache(u.baseTexture, r), Ht.addToCache(u, r)), u.baseTexture.valid ? Promise.resolve(u) : new Promise((f) => {
|
|
5519
5519
|
u.baseTexture.once("loaded", () => f(u));
|
|
5520
5520
|
});
|
|
5521
5521
|
}
|
|
@@ -5567,17 +5567,17 @@ class zt extends So {
|
|
|
5567
5567
|
return this.baseTexture;
|
|
5568
5568
|
}
|
|
5569
5569
|
static get EMPTY() {
|
|
5570
|
-
return
|
|
5570
|
+
return Ht._EMPTY || (Ht._EMPTY = new Ht(new Wt()), za(Ht._EMPTY), za(Ht._EMPTY.baseTexture)), Ht._EMPTY;
|
|
5571
5571
|
}
|
|
5572
5572
|
static get WHITE() {
|
|
5573
|
-
if (!
|
|
5573
|
+
if (!Ht._WHITE) {
|
|
5574
5574
|
const t = Dt.ADAPTER.createCanvas(16, 16), r = t.getContext("2d");
|
|
5575
|
-
t.width = 16, t.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16),
|
|
5575
|
+
t.width = 16, t.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16), Ht._WHITE = new Ht(Wt.from(t)), za(Ht._WHITE), za(Ht._WHITE.baseTexture);
|
|
5576
5576
|
}
|
|
5577
|
-
return
|
|
5577
|
+
return Ht._WHITE;
|
|
5578
5578
|
}
|
|
5579
5579
|
}
|
|
5580
|
-
class ko extends
|
|
5580
|
+
class ko extends Ht {
|
|
5581
5581
|
constructor(t, r) {
|
|
5582
5582
|
super(t, r), this.valid = !0, this.filterFrame = null, this.filterPoolKey = null, this.updateUvs();
|
|
5583
5583
|
}
|
|
@@ -7044,13 +7044,13 @@ Er.extension = {
|
|
|
7044
7044
|
te.add(Er);
|
|
7045
7045
|
class Du {
|
|
7046
7046
|
constructor(t) {
|
|
7047
|
-
this.texture = t, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type =
|
|
7047
|
+
this.texture = t, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = Vt.UNSIGNED_BYTE, this.internalFormat = yt.RGBA, this.samplerType = 0;
|
|
7048
7048
|
}
|
|
7049
7049
|
}
|
|
7050
7050
|
function XR(e) {
|
|
7051
7051
|
let t;
|
|
7052
7052
|
return "WebGL2RenderingContext" in globalThis && e instanceof globalThis.WebGL2RenderingContext ? t = {
|
|
7053
|
-
[
|
|
7053
|
+
[Vt.UNSIGNED_BYTE]: {
|
|
7054
7054
|
[yt.RGBA]: e.RGBA8,
|
|
7055
7055
|
[yt.RGB]: e.RGB8,
|
|
7056
7056
|
[yt.RG]: e.RG8,
|
|
@@ -7063,7 +7063,7 @@ function XR(e) {
|
|
|
7063
7063
|
[yt.LUMINANCE]: e.LUMINANCE,
|
|
7064
7064
|
[yt.LUMINANCE_ALPHA]: e.LUMINANCE_ALPHA
|
|
7065
7065
|
},
|
|
7066
|
-
[
|
|
7066
|
+
[Vt.BYTE]: {
|
|
7067
7067
|
[yt.RGBA]: e.RGBA8_SNORM,
|
|
7068
7068
|
[yt.RGB]: e.RGB8_SNORM,
|
|
7069
7069
|
[yt.RG]: e.RG8_SNORM,
|
|
@@ -7073,92 +7073,92 @@ function XR(e) {
|
|
|
7073
7073
|
[yt.RG_INTEGER]: e.RG8I,
|
|
7074
7074
|
[yt.RED_INTEGER]: e.R8I
|
|
7075
7075
|
},
|
|
7076
|
-
[
|
|
7076
|
+
[Vt.UNSIGNED_SHORT]: {
|
|
7077
7077
|
[yt.RGBA_INTEGER]: e.RGBA16UI,
|
|
7078
7078
|
[yt.RGB_INTEGER]: e.RGB16UI,
|
|
7079
7079
|
[yt.RG_INTEGER]: e.RG16UI,
|
|
7080
7080
|
[yt.RED_INTEGER]: e.R16UI,
|
|
7081
7081
|
[yt.DEPTH_COMPONENT]: e.DEPTH_COMPONENT16
|
|
7082
7082
|
},
|
|
7083
|
-
[
|
|
7083
|
+
[Vt.SHORT]: {
|
|
7084
7084
|
[yt.RGBA_INTEGER]: e.RGBA16I,
|
|
7085
7085
|
[yt.RGB_INTEGER]: e.RGB16I,
|
|
7086
7086
|
[yt.RG_INTEGER]: e.RG16I,
|
|
7087
7087
|
[yt.RED_INTEGER]: e.R16I
|
|
7088
7088
|
},
|
|
7089
|
-
[
|
|
7089
|
+
[Vt.UNSIGNED_INT]: {
|
|
7090
7090
|
[yt.RGBA_INTEGER]: e.RGBA32UI,
|
|
7091
7091
|
[yt.RGB_INTEGER]: e.RGB32UI,
|
|
7092
7092
|
[yt.RG_INTEGER]: e.RG32UI,
|
|
7093
7093
|
[yt.RED_INTEGER]: e.R32UI,
|
|
7094
7094
|
[yt.DEPTH_COMPONENT]: e.DEPTH_COMPONENT24
|
|
7095
7095
|
},
|
|
7096
|
-
[
|
|
7096
|
+
[Vt.INT]: {
|
|
7097
7097
|
[yt.RGBA_INTEGER]: e.RGBA32I,
|
|
7098
7098
|
[yt.RGB_INTEGER]: e.RGB32I,
|
|
7099
7099
|
[yt.RG_INTEGER]: e.RG32I,
|
|
7100
7100
|
[yt.RED_INTEGER]: e.R32I
|
|
7101
7101
|
},
|
|
7102
|
-
[
|
|
7102
|
+
[Vt.FLOAT]: {
|
|
7103
7103
|
[yt.RGBA]: e.RGBA32F,
|
|
7104
7104
|
[yt.RGB]: e.RGB32F,
|
|
7105
7105
|
[yt.RG]: e.RG32F,
|
|
7106
7106
|
[yt.RED]: e.R32F,
|
|
7107
7107
|
[yt.DEPTH_COMPONENT]: e.DEPTH_COMPONENT32F
|
|
7108
7108
|
},
|
|
7109
|
-
[
|
|
7109
|
+
[Vt.HALF_FLOAT]: {
|
|
7110
7110
|
[yt.RGBA]: e.RGBA16F,
|
|
7111
7111
|
[yt.RGB]: e.RGB16F,
|
|
7112
7112
|
[yt.RG]: e.RG16F,
|
|
7113
7113
|
[yt.RED]: e.R16F
|
|
7114
7114
|
},
|
|
7115
|
-
[
|
|
7115
|
+
[Vt.UNSIGNED_SHORT_5_6_5]: {
|
|
7116
7116
|
[yt.RGB]: e.RGB565
|
|
7117
7117
|
},
|
|
7118
|
-
[
|
|
7118
|
+
[Vt.UNSIGNED_SHORT_4_4_4_4]: {
|
|
7119
7119
|
[yt.RGBA]: e.RGBA4
|
|
7120
7120
|
},
|
|
7121
|
-
[
|
|
7121
|
+
[Vt.UNSIGNED_SHORT_5_5_5_1]: {
|
|
7122
7122
|
[yt.RGBA]: e.RGB5_A1
|
|
7123
7123
|
},
|
|
7124
|
-
[
|
|
7124
|
+
[Vt.UNSIGNED_INT_2_10_10_10_REV]: {
|
|
7125
7125
|
[yt.RGBA]: e.RGB10_A2,
|
|
7126
7126
|
[yt.RGBA_INTEGER]: e.RGB10_A2UI
|
|
7127
7127
|
},
|
|
7128
|
-
[
|
|
7128
|
+
[Vt.UNSIGNED_INT_10F_11F_11F_REV]: {
|
|
7129
7129
|
[yt.RGB]: e.R11F_G11F_B10F
|
|
7130
7130
|
},
|
|
7131
|
-
[
|
|
7131
|
+
[Vt.UNSIGNED_INT_5_9_9_9_REV]: {
|
|
7132
7132
|
[yt.RGB]: e.RGB9_E5
|
|
7133
7133
|
},
|
|
7134
|
-
[
|
|
7134
|
+
[Vt.UNSIGNED_INT_24_8]: {
|
|
7135
7135
|
[yt.DEPTH_STENCIL]: e.DEPTH24_STENCIL8
|
|
7136
7136
|
},
|
|
7137
|
-
[
|
|
7137
|
+
[Vt.FLOAT_32_UNSIGNED_INT_24_8_REV]: {
|
|
7138
7138
|
[yt.DEPTH_STENCIL]: e.DEPTH32F_STENCIL8
|
|
7139
7139
|
}
|
|
7140
7140
|
} : t = {
|
|
7141
|
-
[
|
|
7141
|
+
[Vt.UNSIGNED_BYTE]: {
|
|
7142
7142
|
[yt.RGBA]: e.RGBA,
|
|
7143
7143
|
[yt.RGB]: e.RGB,
|
|
7144
7144
|
[yt.ALPHA]: e.ALPHA,
|
|
7145
7145
|
[yt.LUMINANCE]: e.LUMINANCE,
|
|
7146
7146
|
[yt.LUMINANCE_ALPHA]: e.LUMINANCE_ALPHA
|
|
7147
7147
|
},
|
|
7148
|
-
[
|
|
7148
|
+
[Vt.UNSIGNED_SHORT_5_6_5]: {
|
|
7149
7149
|
[yt.RGB]: e.RGB
|
|
7150
7150
|
},
|
|
7151
|
-
[
|
|
7151
|
+
[Vt.UNSIGNED_SHORT_4_4_4_4]: {
|
|
7152
7152
|
[yt.RGBA]: e.RGBA
|
|
7153
7153
|
},
|
|
7154
|
-
[
|
|
7154
|
+
[Vt.UNSIGNED_SHORT_5_5_5_1]: {
|
|
7155
7155
|
[yt.RGBA]: e.RGBA
|
|
7156
7156
|
}
|
|
7157
7157
|
}, t;
|
|
7158
7158
|
}
|
|
7159
7159
|
class um {
|
|
7160
7160
|
constructor(t) {
|
|
7161
|
-
this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new
|
|
7161
|
+
this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new Wt(), this.hasIntegerTextures = !1;
|
|
7162
7162
|
}
|
|
7163
7163
|
contextChange() {
|
|
7164
7164
|
const t = this.gl = this.renderer.gl;
|
|
@@ -7214,7 +7214,7 @@ class um {
|
|
|
7214
7214
|
}
|
|
7215
7215
|
initTextureType(t, r) {
|
|
7216
7216
|
var n;
|
|
7217
|
-
r.internalFormat = ((n = this.internalFormats[t.type]) == null ? void 0 : n[t.format]) ?? t.format, this.webGLVersion === 2 && t.type ===
|
|
7217
|
+
r.internalFormat = ((n = this.internalFormats[t.type]) == null ? void 0 : n[t.format]) ?? t.format, this.webGLVersion === 2 && t.type === Vt.HALF_FLOAT ? r.type = this.gl.HALF_FLOAT : r.type = t.type;
|
|
7218
7218
|
}
|
|
7219
7219
|
updateTexture(t) {
|
|
7220
7220
|
var i;
|
|
@@ -7361,34 +7361,34 @@ Dt.RENDER_OPTIONS = {
|
|
|
7361
7361
|
Object.defineProperties(Dt, {
|
|
7362
7362
|
WRAP_MODE: {
|
|
7363
7363
|
get() {
|
|
7364
|
-
return
|
|
7364
|
+
return Wt.defaultOptions.wrapMode;
|
|
7365
7365
|
},
|
|
7366
7366
|
set(e) {
|
|
7367
|
-
qt("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"),
|
|
7367
|
+
qt("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), Wt.defaultOptions.wrapMode = e;
|
|
7368
7368
|
}
|
|
7369
7369
|
},
|
|
7370
7370
|
SCALE_MODE: {
|
|
7371
7371
|
get() {
|
|
7372
|
-
return
|
|
7372
|
+
return Wt.defaultOptions.scaleMode;
|
|
7373
7373
|
},
|
|
7374
7374
|
set(e) {
|
|
7375
|
-
qt("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"),
|
|
7375
|
+
qt("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), Wt.defaultOptions.scaleMode = e;
|
|
7376
7376
|
}
|
|
7377
7377
|
},
|
|
7378
7378
|
MIPMAP_TEXTURES: {
|
|
7379
7379
|
get() {
|
|
7380
|
-
return
|
|
7380
|
+
return Wt.defaultOptions.mipmap;
|
|
7381
7381
|
},
|
|
7382
7382
|
set(e) {
|
|
7383
|
-
qt("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"),
|
|
7383
|
+
qt("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), Wt.defaultOptions.mipmap = e;
|
|
7384
7384
|
}
|
|
7385
7385
|
},
|
|
7386
7386
|
ANISOTROPIC_LEVEL: {
|
|
7387
7387
|
get() {
|
|
7388
|
-
return
|
|
7388
|
+
return Wt.defaultOptions.anisotropicLevel;
|
|
7389
7389
|
},
|
|
7390
7390
|
set(e) {
|
|
7391
|
-
qt("7.1.0", "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"),
|
|
7391
|
+
qt("7.1.0", "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"), Wt.defaultOptions.anisotropicLevel = e;
|
|
7392
7392
|
}
|
|
7393
7393
|
},
|
|
7394
7394
|
FILTER_RESOLUTION: {
|
|
@@ -7915,7 +7915,7 @@ class vm extends Ns {
|
|
|
7915
7915
|
const { width: n, height: i } = r || {};
|
|
7916
7916
|
super(n, i), this.items = [], this.itemDirtyIds = [];
|
|
7917
7917
|
for (let a = 0; a < t; a++) {
|
|
7918
|
-
const l = new
|
|
7918
|
+
const l = new Wt();
|
|
7919
7919
|
this.items.push(l), this.itemDirtyIds.push(-2);
|
|
7920
7920
|
}
|
|
7921
7921
|
this.length = t, this._load = null, this.baseTexture = null;
|
|
@@ -8916,9 +8916,9 @@ Jn.parse = function() {
|
|
|
8916
8916
|
}
|
|
8917
8917
|
function q(z) {
|
|
8918
8918
|
var rt, W;
|
|
8919
|
-
return W = /^[\n\r\t\s]+/.exec(t), W &&
|
|
8919
|
+
return W = /^[\n\r\t\s]+/.exec(t), W && Z(W[0].length), rt = z.exec(t), rt && Z(rt[0].length), rt;
|
|
8920
8920
|
}
|
|
8921
|
-
function
|
|
8921
|
+
function Z(z) {
|
|
8922
8922
|
t = t.substr(z);
|
|
8923
8923
|
}
|
|
8924
8924
|
return function(z) {
|
|
@@ -9586,7 +9586,7 @@ void main(void)
|
|
|
9586
9586
|
`;
|
|
9587
9587
|
const Cf = class extends Qt {
|
|
9588
9588
|
constructor(t) {
|
|
9589
|
-
super(WI, XI), this.offset = 100, this.fillMode = Cf.TRANSPARENT, this.average = !1, this.seed = 0, this.minSize = 8, this.sampleSize = 512, this._slices = 0, this._offsets = new Float32Array(1), this._sizes = new Float32Array(1), this._direction = -1, this.uniforms.dimensions = new Float32Array(2), this._canvas = document.createElement("canvas"), this._canvas.width = 4, this._canvas.height = this.sampleSize, this.texture =
|
|
9589
|
+
super(WI, XI), this.offset = 100, this.fillMode = Cf.TRANSPARENT, this.average = !1, this.seed = 0, this.minSize = 8, this.sampleSize = 512, this._slices = 0, this._offsets = new Float32Array(1), this._sizes = new Float32Array(1), this._direction = -1, this.uniforms.dimensions = new Float32Array(2), this._canvas = document.createElement("canvas"), this._canvas.width = 4, this._canvas.height = this.sampleSize, this.texture = Ht.from(this._canvas, { scaleMode: Ur.NEAREST }), Object.assign(this, Cf.defaults, t);
|
|
9590
9590
|
}
|
|
9591
9591
|
apply(t, r, n, i) {
|
|
9592
9592
|
const { width: a, height: l } = r.filterFrame;
|
|
@@ -11026,7 +11026,7 @@ const js = (e) => {
|
|
|
11026
11026
|
temperatureFilter: v
|
|
11027
11027
|
};
|
|
11028
11028
|
}, CB = At.forwardRef((e, t) => {
|
|
11029
|
-
const r =
|
|
11029
|
+
const r = Xt(null), n = Xt(null), {
|
|
11030
11030
|
src: i,
|
|
11031
11031
|
transformation: { x: a, y: l, width: u, height: f, anchor: h, colorCorrection: d = {} },
|
|
11032
11032
|
pointerdown: p
|
|
@@ -11303,27 +11303,27 @@ function MP(e, t) {
|
|
|
11303
11303
|
d.push(T - S * M, x - O * M, T + S * F, x + O * F), j >= 0 && (a.join === wr.ROUND ? c += kn(T, x, T - S * M, x - O * M, T - L * M, x - R * M, d, !1) + 4 : c += 2, d.push(T - L * F, x - R * F, T + L * M, x + R * M));
|
|
11304
11304
|
continue;
|
|
11305
11305
|
}
|
|
11306
|
-
const X = (-S + _) * (-O + x) - (-S + T) * (-O + w), $ = (-L + A) * (-R + x) - (-L + T) * (-R + I), V = (rt * $ - D * X) / G,
|
|
11306
|
+
const X = (-S + _) * (-O + x) - (-S + T) * (-O + w), $ = (-L + A) * (-R + x) - (-L + T) * (-R + I), V = (rt * $ - D * X) / G, Q = (k * X - W * $) / G, J = (V - T) * (V - T) + (Q - x) * (Q - x), nt = T + (V - T) * M, ot = x + (Q - x) * M, dt = T - (V - T) * F, pt = x - (Q - x) * F, bt = Math.min(rt * rt + W * W, D * D + k * k), Tt = K ? M : F, le = bt + Tt * Tt * y, zt = J <= le;
|
|
11307
11307
|
let st = a.join;
|
|
11308
|
-
if (st === wr.MITER &&
|
|
11308
|
+
if (st === wr.MITER && J / y > b && (st = wr.BEVEL), zt)
|
|
11309
11309
|
switch (st) {
|
|
11310
11310
|
case wr.MITER: {
|
|
11311
|
-
d.push(nt, ot, dt,
|
|
11311
|
+
d.push(nt, ot, dt, pt);
|
|
11312
11312
|
break;
|
|
11313
11313
|
}
|
|
11314
11314
|
case wr.BEVEL: {
|
|
11315
|
-
K ? d.push(nt, ot, T + S * F, x + O * F, nt, ot, T + L * F, x + R * F) : d.push(T - S * M, x - O * M, dt,
|
|
11315
|
+
K ? d.push(nt, ot, T + S * F, x + O * F, nt, ot, T + L * F, x + R * F) : d.push(T - S * M, x - O * M, dt, pt, T - L * M, x - R * M, dt, pt), c += 2;
|
|
11316
11316
|
break;
|
|
11317
11317
|
}
|
|
11318
11318
|
case wr.ROUND: {
|
|
11319
|
-
K ? (d.push(nt, ot, T + S * F, x + O * F), c += kn(T, x, T + S * F, x + O * F, T + L * F, x + R * F, d, !0) + 4, d.push(nt, ot, T + L * F, x + R * F)) : (d.push(T - S * M, x - O * M, dt,
|
|
11319
|
+
K ? (d.push(nt, ot, T + S * F, x + O * F), c += kn(T, x, T + S * F, x + O * F, T + L * F, x + R * F, d, !0) + 4, d.push(nt, ot, T + L * F, x + R * F)) : (d.push(T - S * M, x - O * M, dt, pt), c += kn(T, x, T - S * M, x - O * M, T - L * M, x - R * M, d, !1) + 4, d.push(T - L * M, x - R * M, dt, pt));
|
|
11320
11320
|
break;
|
|
11321
11321
|
}
|
|
11322
11322
|
}
|
|
11323
11323
|
else {
|
|
11324
11324
|
switch (d.push(T - S * M, x - O * M, T + S * F, x + O * F), st) {
|
|
11325
11325
|
case wr.MITER: {
|
|
11326
|
-
K ? d.push(dt,
|
|
11326
|
+
K ? d.push(dt, pt, dt, pt) : d.push(nt, ot, nt, ot), c += 2;
|
|
11327
11327
|
break;
|
|
11328
11328
|
}
|
|
11329
11329
|
case wr.ROUND: {
|
|
@@ -11335,9 +11335,9 @@ function MP(e, t) {
|
|
|
11335
11335
|
}
|
|
11336
11336
|
}
|
|
11337
11337
|
_ = n[(p - 2) * 2], w = n[(p - 2) * 2 + 1], T = n[(p - 1) * 2], x = n[(p - 1) * 2 + 1], S = -(w - x), O = _ - T, C = Math.sqrt(S * S + O * O), S /= C, O /= C, S *= m, O *= m, d.push(T - S * M, x - O * M, T + S * F, x + O * F), f || (a.cap === qn.ROUND ? c += kn(T - S * (M - F) * 0.5, x - O * (M - F) * 0.5, T - S * M, x - O * M, T + S * F, x + O * F, d, !1) + 2 : a.cap === qn.SQUARE && (c += pv(T, x, S, O, M, F, !1, d)));
|
|
11338
|
-
const q = t.indices,
|
|
11338
|
+
const q = t.indices, Z = Fi.epsilon * Fi.epsilon;
|
|
11339
11339
|
for (let z = v; z < c + v - 2; ++z)
|
|
11340
|
-
_ = d[z * 2], w = d[z * 2 + 1], T = d[(z + 1) * 2], x = d[(z + 1) * 2 + 1], A = d[(z + 2) * 2], I = d[(z + 2) * 2 + 1], !(Math.abs(_ * (x - I) + T * (I - w) + A * (w - x)) <
|
|
11340
|
+
_ = d[z * 2], w = d[z * 2 + 1], T = d[(z + 1) * 2], x = d[(z + 1) * 2 + 1], A = d[(z + 2) * 2], I = d[(z + 2) * 2 + 1], !(Math.abs(_ * (x - I) + T * (I - w) + A * (w - x)) < Z) && q.push(z, z + 1, z + 2);
|
|
11341
11341
|
}
|
|
11342
11342
|
function kP(e, t) {
|
|
11343
11343
|
let r = 0;
|
|
@@ -11944,7 +11944,7 @@ const yi = new se(), Mm = class extends Lg {
|
|
|
11944
11944
|
return this.points.length < Mm.BATCHABLE_SIZE * 2;
|
|
11945
11945
|
}
|
|
11946
11946
|
buildDrawCalls() {
|
|
11947
|
-
let e = ++
|
|
11947
|
+
let e = ++Wt._globalBatch;
|
|
11948
11948
|
for (let d = 0; d < this.drawCalls.length; d++)
|
|
11949
11949
|
this.drawCalls[d].texArray.clear(), Xa.push(this.drawCalls[d]);
|
|
11950
11950
|
this.drawCalls.length = 0;
|
|
@@ -11957,7 +11957,7 @@ const yi = new se(), Mm = class extends Lg {
|
|
|
11957
11957
|
const p = this.batches[d], c = 8, v = p.style, m = v.texture.baseTexture;
|
|
11958
11958
|
u !== !!v.native && (u = !!v.native, f = u ? mn.LINES : mn.TRIANGLES, a = null, i = c, e++), a !== m && (a = m, m._batchEnabled !== e && (i === c && (e++, i = 0, n.size > 0 && (n = Xa.pop(), n || (n = new _f(), n.texArray = new xf()), this.drawCalls.push(n)), n.start = h, n.size = 0, n.texArray.count = 0, n.type = f), m.touched = 1, m._batchEnabled = e, m._batchLocation = i, m.wrapMode = Os.REPEAT, n.texArray.elements[n.texArray.count++] = m, i++)), n.size += p.size, h += p.size, l = m._batchLocation, this.addColors(t, v.color, v.alpha, p.attribSize, p.attribStart), this.addTextureIds(r, l, p.attribSize, p.attribStart);
|
|
11959
11959
|
}
|
|
11960
|
-
|
|
11960
|
+
Wt._globalBatch = e, this.packAttributes();
|
|
11961
11961
|
}
|
|
11962
11962
|
packAttributes() {
|
|
11963
11963
|
const e = this.points, t = this.uvs, r = this.colors, n = this.textureIds, i = new ArrayBuffer(e.length * 3 * 4), a = new Float32Array(i), l = new Uint32Array(i);
|
|
@@ -12029,14 +12029,14 @@ let km = Mm;
|
|
|
12029
12029
|
km.BATCHABLE_SIZE = 100;
|
|
12030
12030
|
class Bo {
|
|
12031
12031
|
constructor() {
|
|
12032
|
-
this.color = 16777215, this.alpha = 1, this.texture =
|
|
12032
|
+
this.color = 16777215, this.alpha = 1, this.texture = Ht.WHITE, this.matrix = null, this.visible = !1, this.reset();
|
|
12033
12033
|
}
|
|
12034
12034
|
clone() {
|
|
12035
12035
|
const t = new Bo();
|
|
12036
12036
|
return t.color = this.color, t.alpha = this.alpha, t.texture = this.texture, t.matrix = this.matrix, t.visible = this.visible, t;
|
|
12037
12037
|
}
|
|
12038
12038
|
reset() {
|
|
12039
|
-
this.color = 16777215, this.alpha = 1, this.texture =
|
|
12039
|
+
this.color = 16777215, this.alpha = 1, this.texture = Ht.WHITE, this.matrix = null, this.visible = !1;
|
|
12040
12040
|
}
|
|
12041
12041
|
destroy() {
|
|
12042
12042
|
this.texture = null, this.matrix = null;
|
|
@@ -12088,7 +12088,7 @@ const qu = {}, no = class extends Di {
|
|
|
12088
12088
|
lineTextureStyle(e) {
|
|
12089
12089
|
const t = {
|
|
12090
12090
|
width: 0,
|
|
12091
|
-
texture:
|
|
12091
|
+
texture: Ht.WHITE,
|
|
12092
12092
|
color: e != null && e.texture ? 16777215 : 0,
|
|
12093
12093
|
matrix: null,
|
|
12094
12094
|
alignment: 0.5,
|
|
@@ -12154,7 +12154,7 @@ const qu = {}, no = class extends Di {
|
|
|
12154
12154
|
return dv.arc(u, f, e, t, r, n, i, a, d), this;
|
|
12155
12155
|
}
|
|
12156
12156
|
beginFill(e = 0, t) {
|
|
12157
|
-
return this.beginTextureFill({ texture:
|
|
12157
|
+
return this.beginTextureFill({ texture: Ht.WHITE, color: e, alpha: t });
|
|
12158
12158
|
}
|
|
12159
12159
|
normalizeColor(e) {
|
|
12160
12160
|
const t = Le.shared.setValue(e.color ?? 0);
|
|
@@ -12162,7 +12162,7 @@ const qu = {}, no = class extends Di {
|
|
|
12162
12162
|
}
|
|
12163
12163
|
beginTextureFill(e) {
|
|
12164
12164
|
const t = {
|
|
12165
|
-
texture:
|
|
12165
|
+
texture: Ht.WHITE,
|
|
12166
12166
|
color: 16777215,
|
|
12167
12167
|
matrix: null
|
|
12168
12168
|
};
|
|
@@ -13159,8 +13159,8 @@ var fN = function() {
|
|
|
13159
13159
|
for (var P = 0; P < C; P++)
|
|
13160
13160
|
m.push(cN(O, L)), O += L;
|
|
13161
13161
|
return m.map(function(M) {
|
|
13162
|
-
var F = zu(M[0], l, u, b, y, I, S), q = F.x,
|
|
13163
|
-
return { x1: q, y1:
|
|
13162
|
+
var F = zu(M[0], l, u, b, y, I, S), q = F.x, Z = F.y, z = zu(M[1], l, u, b, y, I, S), rt = z.x, W = z.y, D = zu(M[2], l, u, b, y, I, S), k = D.x, j = D.y;
|
|
13163
|
+
return { x1: q, y1: Z, x2: rt, y2: W, x: k, y: j };
|
|
13164
13164
|
});
|
|
13165
13165
|
};
|
|
13166
13166
|
class dN extends ac {
|
|
@@ -13993,7 +13993,7 @@ ve.prototype.unshort = function() {
|
|
|
13993
13993
|
};
|
|
13994
13994
|
var DN = ve, UN = DN;
|
|
13995
13995
|
const $N = /* @__PURE__ */ Zn(UN), RB = At.forwardRef((e, t) => {
|
|
13996
|
-
const [r, n] = At.useState(null), i =
|
|
13996
|
+
const [r, n] = At.useState(null), i = Xt(null), a = Xt(null), l = Xt(null), {
|
|
13997
13997
|
path: u,
|
|
13998
13998
|
transformation: {
|
|
13999
13999
|
x: f,
|
|
@@ -14140,7 +14140,7 @@ const Iv = /* @__PURE__ */ Zn(pM), IB = (e) => {
|
|
|
14140
14140
|
isDragging: !1
|
|
14141
14141
|
}, [, r] = At.useState(!1);
|
|
14142
14142
|
console.log("allProps", e);
|
|
14143
|
-
const n =
|
|
14143
|
+
const n = Xt(null), i = Xt(t), a = Xt(null), { tl: l, isDragging: u } = wo(Fs), { uniqueId: f, src: h, startAt: d, endAt: p, mute: c, speed: v } = e, m = e.audioStartAt || d, y = e.audioEndAt || p, b = At.useRef(null);
|
|
14144
14144
|
Br(Ge.PAUSE, () => {
|
|
14145
14145
|
var S;
|
|
14146
14146
|
n.current && b.current && ((S = b.current) == null || S.pause(), i.current.isPlaying = !1);
|
|
@@ -15284,7 +15284,7 @@ const j4 = (e) => ({
|
|
|
15284
15284
|
});
|
|
15285
15285
|
}), [r, t]), r.instance);
|
|
15286
15286
|
}, z4 = (e) => {
|
|
15287
|
-
const t =
|
|
15287
|
+
const t = Xt(e);
|
|
15288
15288
|
return Yn(() => {
|
|
15289
15289
|
t.current = e;
|
|
15290
15290
|
}, [e]), t;
|
|
@@ -15347,7 +15347,7 @@ var xo = { exports: {} };
|
|
|
15347
15347
|
xo.exports;
|
|
15348
15348
|
(function(e, t) {
|
|
15349
15349
|
(function() {
|
|
15350
|
-
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", u = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", p = 1, c = 2, v = 4, m = 1, y = 2, b = 1, _ = 2, w = 4, T = 8, x = 16, A = 32, I = 64, S = 128, O = 256, L = 512, R = 30, C = "...", P = 800, M = 16, F = 1, q = 2,
|
|
15350
|
+
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", u = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", p = 1, c = 2, v = 4, m = 1, y = 2, b = 1, _ = 2, w = 4, T = 8, x = 16, A = 32, I = 64, S = 128, O = 256, L = 512, R = 30, C = "...", P = 800, M = 16, F = 1, q = 2, Z = 3, z = 1 / 0, rt = 9007199254740991, W = 17976931348623157e292, D = 0 / 0, k = 4294967295, j = k - 1, G = k >>> 1, K = [
|
|
15351
15351
|
["ary", S],
|
|
15352
15352
|
["bind", b],
|
|
15353
15353
|
["bindKey", _],
|
|
@@ -15357,7 +15357,7 @@ xo.exports;
|
|
|
15357
15357
|
["partial", A],
|
|
15358
15358
|
["partialRight", I],
|
|
15359
15359
|
["rearg", O]
|
|
15360
|
-
], X = "[object Arguments]", $ = "[object Array]", V = "[object AsyncFunction]",
|
|
15360
|
+
], X = "[object Arguments]", $ = "[object Array]", V = "[object AsyncFunction]", Q = "[object Boolean]", J = "[object Date]", nt = "[object DOMException]", ot = "[object Error]", dt = "[object Function]", pt = "[object GeneratorFunction]", bt = "[object Map]", Tt = "[object Number]", le = "[object Null]", zt = "[object Object]", st = "[object Promise]", lt = "[object Proxy]", vt = "[object RegExp]", gt = "[object Set]", ct = "[object String]", It = "[object Symbol]", kt = "[object Undefined]", Pt = "[object WeakMap]", qe = "[object WeakSet]", Be = "[object ArrayBuffer]", Yt = "[object DataView]", Xi = "[object Float32Array]", ue = "[object Float64Array]", sr = "[object Int8Array]", Xo = "[object Int16Array]", Ko = "[object Int32Array]", Yo = "[object Uint8Array]", Zo = "[object Uint8ClampedArray]", Qo = "[object Uint16Array]", Jo = "[object Uint32Array]", ry = /\b__p \+= '';/g, ny = /\b(__p \+=) '' \+/g, iy = /(__e\(.*?\)|\b__t\)) \+\n'';/g, cc = /&(?:amp|lt|gt|quot|#39);/g, hc = /[&<>"']/g, sy = RegExp(cc.source), ay = RegExp(hc.source), oy = /<%-([\s\S]+?)%>/g, ly = /<%([\s\S]+?)%>/g, dc = /<%=([\s\S]+?)%>/g, uy = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, fy = /^\w*$/, cy = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, tl = /[\\^$.*+?()[\]{}|]/g, hy = RegExp(tl.source), el = /^\s+/, dy = /\s/, py = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, vy = /\{\n\/\* \[wrapped with (.+)\] \*/, gy = /,? & /, my = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, yy = /[()=,{}\[\]\/\s]/, _y = /\\(\\)?/g, by = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, pc = /\w*$/, xy = /^[-+]0x[0-9a-f]+$/i, wy = /^0b[01]+$/i, Ty = /^\[object .+?Constructor\]$/, Ey = /^0o[0-7]+$/i, Ay = /^(?:0|[1-9]\d*)$/, Sy = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, qs = /($^)/, Oy = /['\n\r\u2028\u2029\\]/g, zs = "\\ud800-\\udfff", Cy = "\\u0300-\\u036f", Ry = "\\ufe20-\\ufe2f", Iy = "\\u20d0-\\u20ff", vc = Cy + Ry + Iy, gc = "\\u2700-\\u27bf", mc = "a-z\\xdf-\\xf6\\xf8-\\xff", Py = "\\xac\\xb1\\xd7\\xf7", Ny = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", My = "\\u2000-\\u206f", ky = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", yc = "A-Z\\xc0-\\xd6\\xd8-\\xde", _c = "\\ufe0e\\ufe0f", bc = Py + Ny + My + ky, rl = "['’]", Ly = "[" + zs + "]", xc = "[" + bc + "]", Hs = "[" + vc + "]", wc = "\\d+", Fy = "[" + gc + "]", Tc = "[" + mc + "]", Ec = "[^" + zs + bc + wc + gc + mc + yc + "]", nl = "\\ud83c[\\udffb-\\udfff]", By = "(?:" + Hs + "|" + nl + ")", Ac = "[^" + zs + "]", il = "(?:\\ud83c[\\udde6-\\uddff]){2}", sl = "[\\ud800-\\udbff][\\udc00-\\udfff]", ti = "[" + yc + "]", Sc = "\\u200d", Oc = "(?:" + Tc + "|" + Ec + ")", Dy = "(?:" + ti + "|" + Ec + ")", Cc = "(?:" + rl + "(?:d|ll|m|re|s|t|ve))?", Rc = "(?:" + rl + "(?:D|LL|M|RE|S|T|VE))?", Ic = By + "?", Pc = "[" + _c + "]?", Uy = "(?:" + Sc + "(?:" + [Ac, il, sl].join("|") + ")" + Pc + Ic + ")*", $y = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Gy = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Nc = Pc + Ic + Uy, jy = "(?:" + [Fy, il, sl].join("|") + ")" + Nc, qy = "(?:" + [Ac + Hs + "?", Hs, il, sl, Ly].join("|") + ")", zy = RegExp(rl, "g"), Hy = RegExp(Hs, "g"), al = RegExp(nl + "(?=" + nl + ")|" + qy + Nc, "g"), Vy = RegExp([
|
|
15361
15361
|
ti + "?" + Tc + "+" + Cc + "(?=" + [xc, ti, "$"].join("|") + ")",
|
|
15362
15362
|
Dy + "+" + Rc + "(?=" + [xc, ti + Oc, "$"].join("|") + ")",
|
|
15363
15363
|
ti + "?" + Oc + "+" + Cc,
|
|
@@ -15398,9 +15398,9 @@ xo.exports;
|
|
|
15398
15398
|
"parseInt",
|
|
15399
15399
|
"setTimeout"
|
|
15400
15400
|
], Yy = -1, ae = {};
|
|
15401
|
-
ae[Xi] = ae[ue] = ae[sr] = ae[Xo] = ae[Ko] = ae[Yo] = ae[Zo] = ae[Qo] = ae[Jo] = !0, ae[X] = ae[$] = ae[Be] = ae[
|
|
15401
|
+
ae[Xi] = ae[ue] = ae[sr] = ae[Xo] = ae[Ko] = ae[Yo] = ae[Zo] = ae[Qo] = ae[Jo] = !0, ae[X] = ae[$] = ae[Be] = ae[Q] = ae[Yt] = ae[J] = ae[ot] = ae[dt] = ae[bt] = ae[Tt] = ae[zt] = ae[vt] = ae[gt] = ae[ct] = ae[Pt] = !1;
|
|
15402
15402
|
var ie = {};
|
|
15403
|
-
ie[X] = ie[$] = ie[Be] = ie[Yt] = ie[
|
|
15403
|
+
ie[X] = ie[$] = ie[Be] = ie[Yt] = ie[Q] = ie[J] = ie[Xi] = ie[ue] = ie[sr] = ie[Xo] = ie[Ko] = ie[bt] = ie[Tt] = ie[zt] = ie[vt] = ie[gt] = ie[ct] = ie[It] = ie[Yo] = ie[Zo] = ie[Qo] = ie[Jo] = !0, ie[ot] = ie[dt] = ie[Pt] = !1;
|
|
15404
15404
|
var Zy = {
|
|
15405
15405
|
// Latin-1 Supplement block.
|
|
15406
15406
|
À: "A",
|
|
@@ -16213,10 +16213,10 @@ xo.exports;
|
|
|
16213
16213
|
if (H = f_(s), !Y)
|
|
16214
16214
|
return ze(s, H);
|
|
16215
16215
|
} else {
|
|
16216
|
-
var ht = Me(s), mt = ht == dt || ht ==
|
|
16216
|
+
var ht = Me(s), mt = ht == dt || ht == pt;
|
|
16217
16217
|
if (dn(s))
|
|
16218
16218
|
return Ph(s, Y);
|
|
16219
|
-
if (ht ==
|
|
16219
|
+
if (ht == zt || ht == X || mt && !N) {
|
|
16220
16220
|
if (H = et || mt ? {} : Yh(s), !Y)
|
|
16221
16221
|
return et ? J1(s, w1(H, s)) : Q1(s, oh(H, s));
|
|
16222
16222
|
} else {
|
|
@@ -16391,15 +16391,15 @@ xo.exports;
|
|
|
16391
16391
|
return ge(s) && De(s) == Be;
|
|
16392
16392
|
}
|
|
16393
16393
|
function P1(s) {
|
|
16394
|
-
return ge(s) && De(s) ==
|
|
16394
|
+
return ge(s) && De(s) == J;
|
|
16395
16395
|
}
|
|
16396
16396
|
function is(s, o, g, E, N) {
|
|
16397
16397
|
return s === o ? !0 : s == null || o == null || !ge(s) && !ge(o) ? s !== s && o !== o : N1(s, o, g, E, is, N);
|
|
16398
16398
|
}
|
|
16399
16399
|
function N1(s, o, g, E, N, U) {
|
|
16400
16400
|
var H = Nt(s), Y = Nt(o), et = H ? $ : Me(s), ut = Y ? $ : Me(o);
|
|
16401
|
-
et = et == X ?
|
|
16402
|
-
var ft = et ==
|
|
16401
|
+
et = et == X ? zt : et, ut = ut == X ? zt : ut;
|
|
16402
|
+
var ft = et == zt, ht = ut == zt, mt = et == ut;
|
|
16403
16403
|
if (mt && dn(s)) {
|
|
16404
16404
|
if (!dn(o))
|
|
16405
16405
|
return !1;
|
|
@@ -16451,10 +16451,10 @@ xo.exports;
|
|
|
16451
16451
|
return o.test(Pn(s));
|
|
16452
16452
|
}
|
|
16453
16453
|
function k1(s) {
|
|
16454
|
-
return ge(s) && De(s) ==
|
|
16454
|
+
return ge(s) && De(s) == vt;
|
|
16455
16455
|
}
|
|
16456
16456
|
function L1(s) {
|
|
16457
|
-
return ge(s) && Me(s) ==
|
|
16457
|
+
return ge(s) && Me(s) == gt;
|
|
16458
16458
|
}
|
|
16459
16459
|
function F1(s) {
|
|
16460
16460
|
return ge(s) && Ca(s.length) && !!ae[De(s)];
|
|
@@ -17118,7 +17118,7 @@ xo.exports;
|
|
|
17118
17118
|
function zh(s) {
|
|
17119
17119
|
return function(o) {
|
|
17120
17120
|
var g = Me(o);
|
|
17121
|
-
return g == bt ? ml(o) : g ==
|
|
17121
|
+
return g == bt ? ml(o) : g == gt ? b0(o) : h0(o, s(o));
|
|
17122
17122
|
};
|
|
17123
17123
|
}
|
|
17124
17124
|
function Vr(s, o, g, E, N, U, H, Y) {
|
|
@@ -17199,18 +17199,18 @@ xo.exports;
|
|
|
17199
17199
|
s = s.buffer, o = o.buffer;
|
|
17200
17200
|
case Be:
|
|
17201
17201
|
return !(s.byteLength != o.byteLength || !U(new ta(s), new ta(o)));
|
|
17202
|
+
case Q:
|
|
17202
17203
|
case J:
|
|
17203
|
-
case Z:
|
|
17204
17204
|
case Tt:
|
|
17205
17205
|
return yr(+s, +o);
|
|
17206
17206
|
case ot:
|
|
17207
17207
|
return s.name == o.name && s.message == o.message;
|
|
17208
|
-
case
|
|
17208
|
+
case vt:
|
|
17209
17209
|
case ct:
|
|
17210
17210
|
return s == o + "";
|
|
17211
17211
|
case bt:
|
|
17212
17212
|
var Y = ml;
|
|
17213
|
-
case
|
|
17213
|
+
case gt:
|
|
17214
17214
|
var et = E & m;
|
|
17215
17215
|
if (Y || (Y = Xs), s.size != o.size && !et)
|
|
17216
17216
|
return !1;
|
|
@@ -17319,8 +17319,8 @@ xo.exports;
|
|
|
17319
17319
|
an(o, Vl(s)), s = ea(s);
|
|
17320
17320
|
return o;
|
|
17321
17321
|
} : fu, Me = De;
|
|
17322
|
-
(bl && Me(new bl(new ArrayBuffer(1))) != Yt || Zi && Me(new Zi()) != bt || xl && Me(xl.resolve()) != st || ai && Me(new ai()) !=
|
|
17323
|
-
var o = De(s), g = o ==
|
|
17322
|
+
(bl && Me(new bl(new ArrayBuffer(1))) != Yt || Zi && Me(new Zi()) != bt || xl && Me(xl.resolve()) != st || ai && Me(new ai()) != gt || Qi && Me(new Qi()) != Pt) && (Me = function(s) {
|
|
17323
|
+
var o = De(s), g = o == zt ? s.constructor : r, E = g ? Pn(g) : "";
|
|
17324
17324
|
if (E)
|
|
17325
17325
|
switch (E) {
|
|
17326
17326
|
case q0:
|
|
@@ -17330,7 +17330,7 @@ xo.exports;
|
|
|
17330
17330
|
case H0:
|
|
17331
17331
|
return st;
|
|
17332
17332
|
case V0:
|
|
17333
|
-
return
|
|
17333
|
+
return gt;
|
|
17334
17334
|
case W0:
|
|
17335
17335
|
return Pt;
|
|
17336
17336
|
}
|
|
@@ -17382,8 +17382,8 @@ xo.exports;
|
|
|
17382
17382
|
switch (o) {
|
|
17383
17383
|
case Be:
|
|
17384
17384
|
return Ul(s);
|
|
17385
|
+
case Q:
|
|
17385
17386
|
case J:
|
|
17386
|
-
case Z:
|
|
17387
17387
|
return new E(+s);
|
|
17388
17388
|
case Yt:
|
|
17389
17389
|
return X1(s, g);
|
|
@@ -17402,9 +17402,9 @@ xo.exports;
|
|
|
17402
17402
|
case Tt:
|
|
17403
17403
|
case ct:
|
|
17404
17404
|
return new E(s);
|
|
17405
|
-
case pt:
|
|
17406
|
-
return K1(s);
|
|
17407
17405
|
case vt:
|
|
17406
|
+
return K1(s);
|
|
17407
|
+
case gt:
|
|
17408
17408
|
return new E();
|
|
17409
17409
|
case It:
|
|
17410
17410
|
return Y1(s);
|
|
@@ -18001,7 +18001,7 @@ xo.exports;
|
|
|
18001
18001
|
if (He(s))
|
|
18002
18002
|
return Ra(s) ? ni(s) : s.length;
|
|
18003
18003
|
var o = Me(s);
|
|
18004
|
-
return o == bt || o ==
|
|
18004
|
+
return o == bt || o == gt ? s.size : Rl(s).length;
|
|
18005
18005
|
}
|
|
18006
18006
|
function tx(s, o, g) {
|
|
18007
18007
|
var E = Nt(s) ? cl : V1;
|
|
@@ -18232,7 +18232,7 @@ xo.exports;
|
|
|
18232
18232
|
return ge(s) && He(s);
|
|
18233
18233
|
}
|
|
18234
18234
|
function Tx(s) {
|
|
18235
|
-
return s === !0 || s === !1 || ge(s) && De(s) ==
|
|
18235
|
+
return s === !0 || s === !1 || ge(s) && De(s) == Q;
|
|
18236
18236
|
}
|
|
18237
18237
|
var dn = B0 || cu, Ex = Fc ? Ye(Fc) : P1;
|
|
18238
18238
|
function Ax(s) {
|
|
@@ -18244,7 +18244,7 @@ xo.exports;
|
|
|
18244
18244
|
if (He(s) && (Nt(s) || typeof s == "string" || typeof s.splice == "function" || dn(s) || hi(s) || Nn(s)))
|
|
18245
18245
|
return !s.length;
|
|
18246
18246
|
var o = Me(s);
|
|
18247
|
-
if (o == bt || o ==
|
|
18247
|
+
if (o == bt || o == gt)
|
|
18248
18248
|
return !s.size;
|
|
18249
18249
|
if (os(s))
|
|
18250
18250
|
return !Rl(s).length;
|
|
@@ -18274,7 +18274,7 @@ xo.exports;
|
|
|
18274
18274
|
if (!he(s))
|
|
18275
18275
|
return !1;
|
|
18276
18276
|
var o = De(s);
|
|
18277
|
-
return o == dt || o ==
|
|
18277
|
+
return o == dt || o == pt || o == V || o == lt;
|
|
18278
18278
|
}
|
|
18279
18279
|
function wd(s) {
|
|
18280
18280
|
return typeof s == "number" && s == Mt(s);
|
|
@@ -18314,7 +18314,7 @@ xo.exports;
|
|
|
18314
18314
|
return typeof s == "number" || ge(s) && De(s) == Tt;
|
|
18315
18315
|
}
|
|
18316
18316
|
function us(s) {
|
|
18317
|
-
if (!ge(s) || De(s) !=
|
|
18317
|
+
if (!ge(s) || De(s) != zt)
|
|
18318
18318
|
return !1;
|
|
18319
18319
|
var o = ea(s);
|
|
18320
18320
|
if (o === null)
|
|
@@ -18353,7 +18353,7 @@ xo.exports;
|
|
|
18353
18353
|
return Ra(s) ? gr(s) : ze(s);
|
|
18354
18354
|
if (Yi && s[Yi])
|
|
18355
18355
|
return _0(s[Yi]());
|
|
18356
|
-
var o = Me(s), g = o == bt ? ml : o ==
|
|
18356
|
+
var o = Me(s), g = o == bt ? ml : o == gt ? Xs : di;
|
|
18357
18357
|
return g(s);
|
|
18358
18358
|
}
|
|
18359
18359
|
function Yr(s) {
|
|
@@ -18930,7 +18930,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18930
18930
|
return this.reverse()[s](g).reverse();
|
|
18931
18931
|
};
|
|
18932
18932
|
}), or(["filter", "map", "takeWhile"], function(s, o) {
|
|
18933
|
-
var g = o + 1, E = g == F || g ==
|
|
18933
|
+
var g = o + 1, E = g == F || g == Z;
|
|
18934
18934
|
Ut.prototype[s] = function(N) {
|
|
18935
18935
|
var U = this.clone();
|
|
18936
18936
|
return U.__iteratees__.push({
|
|
@@ -19023,7 +19023,7 @@ const Y4 = {
|
|
|
19023
19023
|
totalFrames: 0,
|
|
19024
19024
|
totalDuration: 0
|
|
19025
19025
|
}, PB = At.forwardRef((e, t) => {
|
|
19026
|
-
const [r, n] = At.useState([]), [, i] = At.useState(0), [a, l] = At.useState([]), [, u] = zn(0), [, f] = zn(!1), [h, d] = U4({ autoPlay: !1 }), p =
|
|
19026
|
+
const [r, n] = At.useState([]), [, i] = At.useState(0), [a, l] = At.useState([]), [, u] = zn(0), [, f] = zn(!1), [h, d] = U4({ autoPlay: !1 }), p = Xt(null), c = Xt(null), v = Xt(Y4), m = Xt(), { tl: y, isDragging: b } = wo(Fs), { frames: _, delays: w } = h, {
|
|
19027
19027
|
src: T,
|
|
19028
19028
|
startAt: x,
|
|
19029
19029
|
endAt: A,
|
|
@@ -19037,86 +19037,89 @@ const Y4 = {
|
|
|
19037
19037
|
y: P,
|
|
19038
19038
|
animation: M,
|
|
19039
19039
|
colorCorrection: F = {}
|
|
19040
|
-
}
|
|
19040
|
+
},
|
|
19041
|
+
pointerdown: q
|
|
19041
19042
|
} = e, {
|
|
19042
|
-
temperatureFilter:
|
|
19043
|
-
sharpnessFilter:
|
|
19044
|
-
hueFilter:
|
|
19045
|
-
blurFilter:
|
|
19046
|
-
adjustmentFilter:
|
|
19047
|
-
} = js(F), { blurRadius:
|
|
19048
|
-
W4(T, d), Br(Ge.PAUSE, (
|
|
19049
|
-
console.log("pause event",
|
|
19043
|
+
temperatureFilter: Z,
|
|
19044
|
+
sharpnessFilter: z,
|
|
19045
|
+
hueFilter: rt,
|
|
19046
|
+
blurFilter: W,
|
|
19047
|
+
adjustmentFilter: D
|
|
19048
|
+
} = js(F), { blurRadius: k = 0 } = F, j = 0.1;
|
|
19049
|
+
W4(T, d), Br(Ge.PAUSE, (nt) => {
|
|
19050
|
+
console.log("pause event", nt), p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19050
19051
|
}), At.useEffect(() => {
|
|
19051
19052
|
v.current && p.current && (b ? (p.current.stop(), v.current.isPlaying = !1, v.current.isDragging = !0) : v.current.isDragging = !1);
|
|
19052
19053
|
}, [b]), At.useEffect(() => {
|
|
19053
19054
|
if (!ys(_)) {
|
|
19054
|
-
const
|
|
19055
|
-
const { data:
|
|
19056
|
-
return _n.Texture.fromBuffer(
|
|
19057
|
-
}),
|
|
19058
|
-
(
|
|
19059
|
-
texture:
|
|
19060
|
-
time: w[
|
|
19055
|
+
const nt = v4(_, (pt) => {
|
|
19056
|
+
const { data: bt, width: Tt, height: le } = pt, zt = new Uint8Array(bt);
|
|
19057
|
+
return _n.Texture.fromBuffer(zt, Tt, le);
|
|
19058
|
+
}), ot = nt.map(
|
|
19059
|
+
(pt, bt) => ({
|
|
19060
|
+
texture: pt,
|
|
19061
|
+
time: w[bt]
|
|
19061
19062
|
})
|
|
19062
19063
|
);
|
|
19063
|
-
n(
|
|
19064
|
-
let
|
|
19065
|
-
w.forEach((
|
|
19066
|
-
|
|
19067
|
-
}), i(
|
|
19064
|
+
n(nt), l(ot);
|
|
19065
|
+
let dt = 0;
|
|
19066
|
+
w.forEach((pt) => {
|
|
19067
|
+
dt += pt * 10;
|
|
19068
|
+
}), i(dt), v.current.totalDuration = dt, v.current.totalFrames = _.length;
|
|
19068
19069
|
}
|
|
19069
19070
|
}, [_, w]);
|
|
19070
|
-
const
|
|
19071
|
+
const G = Xv.debounce((nt) => {
|
|
19071
19072
|
if (p.current) {
|
|
19072
|
-
|
|
19073
|
-
|
|
19074
|
-
|
|
19075
|
-
|
|
19076
|
-
|
|
19077
|
-
|
|
19078
|
-
|
|
19073
|
+
console.log("requested to start playing gif");
|
|
19074
|
+
let ot = nt === 0 ? 0 : nt / j;
|
|
19075
|
+
const dt = v.current.totalFrames;
|
|
19076
|
+
ot = ot >= dt ? dt : ot, console.log("requested to start playing gif frameNumber", ot), p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
|
|
19077
|
+
}
|
|
19078
|
+
}, 10), K = Xv.debounce(() => {
|
|
19079
|
+
p.current && (console.log("requested to stop playing gif"), p.current.stop(), v.current.isPlaying = !1);
|
|
19080
|
+
}, 20), X = (nt) => {
|
|
19079
19081
|
if (p.current) {
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
|
|
19082
|
+
console.log("gif startAt", nt);
|
|
19083
|
+
let ot = nt === 0 ? 0 : nt / j;
|
|
19084
|
+
const dt = v.current.totalFrames;
|
|
19085
|
+
ot = ot >= dt ? dt : ot, console.log("gif startAt frameNumber", ot), p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
|
|
19083
19086
|
}
|
|
19084
|
-
}, X = () => {
|
|
19085
|
-
console.log("local gif time complete"), p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19086
19087
|
}, $ = () => {
|
|
19088
|
+
console.log("local gif time complete"), p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19089
|
+
}, V = () => {
|
|
19087
19090
|
p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19088
|
-
},
|
|
19089
|
-
var
|
|
19090
|
-
const
|
|
19091
|
-
p.current && v.current.isDragging ? (
|
|
19091
|
+
}, Q = (nt) => {
|
|
19092
|
+
var dt;
|
|
19093
|
+
const ot = nt + ((dt = m.current) == null ? void 0 : dt.time());
|
|
19094
|
+
p.current && v.current.isDragging ? (console.log("onUpdate to start playing gif"), G(ot), K(), v.current.isPlaying = !1) : p.current && !v.current.isPlaying && (G(ot), v.current.isPlaying = !0);
|
|
19092
19095
|
}, J = () => {
|
|
19093
19096
|
f(!0);
|
|
19094
19097
|
};
|
|
19095
19098
|
return Yn(() => {
|
|
19096
|
-
let
|
|
19099
|
+
let nt = Ee.context(() => {
|
|
19097
19100
|
});
|
|
19098
19101
|
if (c.current && y.current) {
|
|
19099
|
-
const
|
|
19102
|
+
const ot = {
|
|
19100
19103
|
duration: Number(S) - Number(I),
|
|
19101
|
-
onStart:
|
|
19102
|
-
onComplete:
|
|
19104
|
+
onStart: X,
|
|
19105
|
+
onComplete: $,
|
|
19103
19106
|
onStartParams: [I, S],
|
|
19104
19107
|
onCompleteParams: [],
|
|
19105
|
-
onInterrupt:
|
|
19106
|
-
onUpdate:
|
|
19108
|
+
onInterrupt: V,
|
|
19109
|
+
onUpdate: Q,
|
|
19107
19110
|
onUpdateParams: [I, S]
|
|
19108
19111
|
};
|
|
19109
|
-
m.current && m.current.kill(),
|
|
19112
|
+
m.current && m.current.kill(), nt = Ee.context(() => {
|
|
19110
19113
|
m.current = Ee.from(
|
|
19111
19114
|
c.current,
|
|
19112
19115
|
// @ts-ignore
|
|
19113
|
-
|
|
19116
|
+
ot,
|
|
19114
19117
|
I
|
|
19115
19118
|
), y.current.add(m.current, x);
|
|
19116
19119
|
});
|
|
19117
19120
|
}
|
|
19118
19121
|
return () => {
|
|
19119
|
-
m.current && (m.current.kill(), Ee.killTweensOf(m.current)),
|
|
19122
|
+
m.current && (m.current.kill(), Ee.killTweensOf(m.current)), nt.revert();
|
|
19120
19123
|
};
|
|
19121
19124
|
}, [M, x, A, I, S]), /* @__PURE__ */ ee.jsx(
|
|
19122
19125
|
Gi,
|
|
@@ -19136,16 +19139,18 @@ const Y4 = {
|
|
|
19136
19139
|
loop: O,
|
|
19137
19140
|
textures: a,
|
|
19138
19141
|
onComplete: J,
|
|
19139
|
-
onFrameChange: (
|
|
19142
|
+
onFrameChange: (nt) => u(nt),
|
|
19140
19143
|
anchor: 0.5,
|
|
19141
19144
|
forwardRef: p,
|
|
19145
|
+
interactive: !0,
|
|
19146
|
+
pointerdown: q,
|
|
19142
19147
|
filters: [
|
|
19143
|
-
|
|
19144
|
-
Q,
|
|
19148
|
+
Z,
|
|
19145
19149
|
z,
|
|
19146
|
-
|
|
19150
|
+
rt,
|
|
19151
|
+
D,
|
|
19147
19152
|
// conditionally add blur filter
|
|
19148
|
-
...
|
|
19153
|
+
...k > 0 ? [W] : []
|
|
19149
19154
|
]
|
|
19150
19155
|
}
|
|
19151
19156
|
) })
|
|
@@ -19562,8 +19567,8 @@ var ey = { exports: {} };
|
|
|
19562
19567
|
P === null && (P = Function.prototype);
|
|
19563
19568
|
var q = Object.getOwnPropertyDescriptor(P, M);
|
|
19564
19569
|
if (q === void 0) {
|
|
19565
|
-
var
|
|
19566
|
-
return
|
|
19570
|
+
var Z = Object.getPrototypeOf(P);
|
|
19571
|
+
return Z === null ? void 0 : C(Z, M, F);
|
|
19567
19572
|
} else {
|
|
19568
19573
|
if ("value" in q)
|
|
19569
19574
|
return q.value;
|
|
@@ -19606,23 +19611,23 @@ var ey = { exports: {} };
|
|
|
19606
19611
|
}, {
|
|
19607
19612
|
key: "format",
|
|
19608
19613
|
value: function(F, q) {
|
|
19609
|
-
var
|
|
19610
|
-
|
|
19614
|
+
var Z = c.default.query(F, c.default.Scope.BLOCK_ATTRIBUTE);
|
|
19615
|
+
Z != null && this.attributes.attribute(Z, q);
|
|
19611
19616
|
}
|
|
19612
19617
|
}, {
|
|
19613
19618
|
key: "formatAt",
|
|
19614
|
-
value: function(F, q,
|
|
19615
|
-
this.format(
|
|
19619
|
+
value: function(F, q, Z, z) {
|
|
19620
|
+
this.format(Z, z);
|
|
19616
19621
|
}
|
|
19617
19622
|
}, {
|
|
19618
19623
|
key: "insertAt",
|
|
19619
|
-
value: function(F, q,
|
|
19624
|
+
value: function(F, q, Z) {
|
|
19620
19625
|
if (typeof q == "string" && q.endsWith(`
|
|
19621
19626
|
`)) {
|
|
19622
19627
|
var z = c.default.create(L.blotName);
|
|
19623
19628
|
this.parent.insertBefore(z, F === 0 ? this : this.next), z.insertAt(0, q.slice(0, -1));
|
|
19624
19629
|
} else
|
|
19625
|
-
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q,
|
|
19630
|
+
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q, Z);
|
|
19626
19631
|
}
|
|
19627
19632
|
}]), P;
|
|
19628
19633
|
}(c.default.Embed);
|
|
@@ -19649,14 +19654,14 @@ var ey = { exports: {} };
|
|
|
19649
19654
|
}
|
|
19650
19655
|
}, {
|
|
19651
19656
|
key: "formatAt",
|
|
19652
|
-
value: function(F, q,
|
|
19653
|
-
q <= 0 || (c.default.query(
|
|
19657
|
+
value: function(F, q, Z, z) {
|
|
19658
|
+
q <= 0 || (c.default.query(Z, c.default.Scope.BLOCK) ? F + q === this.length() && this.format(Z, z) : l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "formatAt", this).call(this, F, Math.min(q, this.length() - F - 1), Z, z), this.cache = {});
|
|
19654
19659
|
}
|
|
19655
19660
|
}, {
|
|
19656
19661
|
key: "insertAt",
|
|
19657
|
-
value: function(F, q,
|
|
19658
|
-
if (
|
|
19659
|
-
return l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q,
|
|
19662
|
+
value: function(F, q, Z) {
|
|
19663
|
+
if (Z != null)
|
|
19664
|
+
return l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q, Z);
|
|
19660
19665
|
if (q.length !== 0) {
|
|
19661
19666
|
var z = q.split(`
|
|
19662
19667
|
`), rt = z.shift();
|
|
@@ -19670,8 +19675,8 @@ var ey = { exports: {} };
|
|
|
19670
19675
|
}, {
|
|
19671
19676
|
key: "insertBefore",
|
|
19672
19677
|
value: function(F, q) {
|
|
19673
|
-
var
|
|
19674
|
-
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertBefore", this).call(this, F, q),
|
|
19678
|
+
var Z = this.children.head;
|
|
19679
|
+
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertBefore", this).call(this, F, q), Z instanceof m.default && Z.remove(), this.cache = {};
|
|
19675
19680
|
}
|
|
19676
19681
|
}, {
|
|
19677
19682
|
key: "length",
|
|
@@ -19703,8 +19708,8 @@ var ey = { exports: {} };
|
|
|
19703
19708
|
value: function(F) {
|
|
19704
19709
|
var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
19705
19710
|
if (q && (F === 0 || F >= this.length() - S)) {
|
|
19706
|
-
var
|
|
19707
|
-
return F === 0 ? (this.parent.insertBefore(
|
|
19711
|
+
var Z = this.clone();
|
|
19712
|
+
return F === 0 ? (this.parent.insertBefore(Z, this), this) : (this.parent.insertBefore(Z, this.next), Z);
|
|
19708
19713
|
} else {
|
|
19709
19714
|
var z = l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "split", this).call(this, F, q);
|
|
19710
19715
|
return this.cache = {}, z;
|
|
@@ -19735,8 +19740,8 @@ var ey = { exports: {} };
|
|
|
19735
19740
|
try {
|
|
19736
19741
|
for (var $ = D[Symbol.iterator](), V; !(G = (V = $.next()).done) && (j.push(V.value), !(k && j.length === k)); G = !0)
|
|
19737
19742
|
;
|
|
19738
|
-
} catch (
|
|
19739
|
-
K = !0, X =
|
|
19743
|
+
} catch (Q) {
|
|
19744
|
+
K = !0, X = Q;
|
|
19740
19745
|
} finally {
|
|
19741
19746
|
try {
|
|
19742
19747
|
!G && $.return && $.return();
|
|
@@ -19818,9 +19823,9 @@ var ey = { exports: {} };
|
|
|
19818
19823
|
}), this.editor = new p.default(this.scroll), this.selection = new T.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(v.default.events.EDITOR_CHANGE, function(X) {
|
|
19819
19824
|
X === v.default.events.TEXT_CHANGE && k.root.classList.toggle("ql-blank", k.editor.isBlank());
|
|
19820
19825
|
}), this.emitter.on(v.default.events.SCROLL_UPDATE, function(X, $) {
|
|
19821
|
-
var V = k.selection.lastRange,
|
|
19822
|
-
|
|
19823
|
-
return k.editor.update(null, $,
|
|
19826
|
+
var V = k.selection.lastRange, Q = V && V.length === 0 ? V.index : void 0;
|
|
19827
|
+
Z.call(k, function() {
|
|
19828
|
+
return k.editor.update(null, $, Q);
|
|
19824
19829
|
}, X);
|
|
19825
19830
|
});
|
|
19826
19831
|
var K = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + G + "<p><br></p></div>");
|
|
@@ -19845,7 +19850,7 @@ var ey = { exports: {} };
|
|
|
19845
19850
|
key: "deleteText",
|
|
19846
19851
|
value: function(k, j, G) {
|
|
19847
19852
|
var K = this, X = z(k, j, G), $ = l(X, 4);
|
|
19848
|
-
return k = $[0], j = $[1], G = $[3],
|
|
19853
|
+
return k = $[0], j = $[1], G = $[3], Z.call(this, function() {
|
|
19849
19854
|
return K.editor.deleteText(k, j);
|
|
19850
19855
|
}, G, k, -1 * j);
|
|
19851
19856
|
}
|
|
@@ -19870,7 +19875,7 @@ var ey = { exports: {} };
|
|
|
19870
19875
|
key: "format",
|
|
19871
19876
|
value: function(k, j) {
|
|
19872
19877
|
var G = this, K = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v.default.sources.API;
|
|
19873
|
-
return
|
|
19878
|
+
return Z.call(this, function() {
|
|
19874
19879
|
var X = G.getSelection(!0), $ = new h.default();
|
|
19875
19880
|
if (X == null)
|
|
19876
19881
|
return $;
|
|
@@ -19887,16 +19892,16 @@ var ey = { exports: {} };
|
|
|
19887
19892
|
}, {
|
|
19888
19893
|
key: "formatLine",
|
|
19889
19894
|
value: function(k, j, G, K, X) {
|
|
19890
|
-
var $ = this, V = void 0,
|
|
19891
|
-
return k =
|
|
19895
|
+
var $ = this, V = void 0, Q = z(k, j, G, K, X), J = l(Q, 4);
|
|
19896
|
+
return k = J[0], j = J[1], V = J[2], X = J[3], Z.call(this, function() {
|
|
19892
19897
|
return $.editor.formatLine(k, j, V);
|
|
19893
19898
|
}, X, k, 0);
|
|
19894
19899
|
}
|
|
19895
19900
|
}, {
|
|
19896
19901
|
key: "formatText",
|
|
19897
19902
|
value: function(k, j, G, K, X) {
|
|
19898
|
-
var $ = this, V = void 0,
|
|
19899
|
-
return k =
|
|
19903
|
+
var $ = this, V = void 0, Q = z(k, j, G, K, X), J = l(Q, 4);
|
|
19904
|
+
return k = J[0], j = J[1], V = J[2], X = J[3], Z.call(this, function() {
|
|
19900
19905
|
return $.editor.formatText(k, j, V);
|
|
19901
19906
|
}, X, k, 0);
|
|
19902
19907
|
}
|
|
@@ -19979,15 +19984,15 @@ var ey = { exports: {} };
|
|
|
19979
19984
|
key: "insertEmbed",
|
|
19980
19985
|
value: function(k, j, G) {
|
|
19981
19986
|
var K = this, X = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : W.sources.API;
|
|
19982
|
-
return
|
|
19987
|
+
return Z.call(this, function() {
|
|
19983
19988
|
return K.editor.insertEmbed(k, j, G);
|
|
19984
19989
|
}, X, k);
|
|
19985
19990
|
}
|
|
19986
19991
|
}, {
|
|
19987
19992
|
key: "insertText",
|
|
19988
19993
|
value: function(k, j, G, K, X) {
|
|
19989
|
-
var $ = this, V = void 0,
|
|
19990
|
-
return k =
|
|
19994
|
+
var $ = this, V = void 0, Q = z(k, 0, G, K, X), J = l(Q, 4);
|
|
19995
|
+
return k = J[0], V = J[2], X = J[3], Z.call(this, function() {
|
|
19991
19996
|
return $.editor.insertText(k, j, V);
|
|
19992
19997
|
}, X, k, j.length);
|
|
19993
19998
|
}
|
|
@@ -20020,7 +20025,7 @@ var ey = { exports: {} };
|
|
|
20020
20025
|
key: "removeFormat",
|
|
20021
20026
|
value: function(k, j, G) {
|
|
20022
20027
|
var K = this, X = z(k, j, G), $ = l(X, 4);
|
|
20023
|
-
return k = $[0], j = $[1], G = $[3],
|
|
20028
|
+
return k = $[0], j = $[1], G = $[3], Z.call(this, function() {
|
|
20024
20029
|
return K.editor.removeFormat(k, j);
|
|
20025
20030
|
}, G, k);
|
|
20026
20031
|
}
|
|
@@ -20033,13 +20038,13 @@ var ey = { exports: {} };
|
|
|
20033
20038
|
key: "setContents",
|
|
20034
20039
|
value: function(k) {
|
|
20035
20040
|
var j = this, G = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
|
|
20036
|
-
return
|
|
20041
|
+
return Z.call(this, function() {
|
|
20037
20042
|
k = new h.default(k);
|
|
20038
20043
|
var K = j.getLength(), X = j.editor.deleteText(0, K), $ = j.editor.applyDelta(k), V = $.ops[$.ops.length - 1];
|
|
20039
20044
|
V != null && typeof V.insert == "string" && V.insert[V.insert.length - 1] === `
|
|
20040
20045
|
` && (j.editor.deleteText(j.getLength() - 1, 1), $.delete(1));
|
|
20041
|
-
var
|
|
20042
|
-
return
|
|
20046
|
+
var Q = X.compose($);
|
|
20047
|
+
return Q;
|
|
20043
20048
|
}, G);
|
|
20044
20049
|
}
|
|
20045
20050
|
}, {
|
|
@@ -20068,7 +20073,7 @@ var ey = { exports: {} };
|
|
|
20068
20073
|
key: "updateContents",
|
|
20069
20074
|
value: function(k) {
|
|
20070
20075
|
var j = this, G = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
|
|
20071
|
-
return
|
|
20076
|
+
return Z.call(this, function() {
|
|
20072
20077
|
return k = new h.default(k), j.editor.applyDelta(k, G);
|
|
20073
20078
|
}, G, !0);
|
|
20074
20079
|
}
|
|
@@ -20119,15 +20124,15 @@ var ey = { exports: {} };
|
|
|
20119
20124
|
return D.modules[X] && (K[X] = D.modules[X]), K;
|
|
20120
20125
|
}, {}), D;
|
|
20121
20126
|
}
|
|
20122
|
-
function
|
|
20127
|
+
function Z(W, D, k, j) {
|
|
20123
20128
|
if (this.options.strict && !this.isEnabled() && D === v.default.sources.USER)
|
|
20124
20129
|
return new h.default();
|
|
20125
20130
|
var G = k == null ? null : this.getSelection(), K = this.editor.delta, X = W();
|
|
20126
20131
|
if (G != null && (k === !0 && (k = G.index), j == null ? G = rt(G, X, D) : j !== 0 && (G = rt(G, k, j, D)), this.setSelection(G, v.default.sources.SILENT)), X.length() > 0) {
|
|
20127
20132
|
var $, V = [v.default.events.TEXT_CHANGE, X, K, D];
|
|
20128
20133
|
if (($ = this.emitter).emit.apply($, [v.default.events.EDITOR_CHANGE].concat(V)), D !== v.default.sources.SILENT) {
|
|
20129
|
-
var
|
|
20130
|
-
(
|
|
20134
|
+
var Q;
|
|
20135
|
+
(Q = this.emitter).emit.apply(Q, V);
|
|
20131
20136
|
}
|
|
20132
20137
|
}
|
|
20133
20138
|
return X;
|
|
@@ -20141,15 +20146,15 @@ var ey = { exports: {} };
|
|
|
20141
20146
|
return null;
|
|
20142
20147
|
var G = void 0, K = void 0;
|
|
20143
20148
|
if (D instanceof h.default) {
|
|
20144
|
-
var X = [W.index, W.index + W.length].map(function(
|
|
20145
|
-
return D.transformPosition(
|
|
20149
|
+
var X = [W.index, W.index + W.length].map(function(J) {
|
|
20150
|
+
return D.transformPosition(J, j !== v.default.sources.USER);
|
|
20146
20151
|
}), $ = l(X, 2);
|
|
20147
20152
|
G = $[0], K = $[1];
|
|
20148
20153
|
} else {
|
|
20149
|
-
var V = [W.index, W.index + W.length].map(function(
|
|
20150
|
-
return
|
|
20151
|
-
}),
|
|
20152
|
-
G =
|
|
20154
|
+
var V = [W.index, W.index + W.length].map(function(J) {
|
|
20155
|
+
return J < D || J === D && j === v.default.sources.USER ? J : k >= 0 ? J + k : Math.max(D, J + k);
|
|
20156
|
+
}), Q = l(V, 2);
|
|
20157
|
+
G = Q[0], K = Q[1];
|
|
20153
20158
|
}
|
|
20154
20159
|
return new w.Range(G, K - G);
|
|
20155
20160
|
}
|
|
@@ -20501,7 +20506,7 @@ var ey = { exports: {} };
|
|
|
20501
20506
|
function O(L, R) {
|
|
20502
20507
|
var C = [], P = !0, M = !1, F = void 0;
|
|
20503
20508
|
try {
|
|
20504
|
-
for (var q = L[Symbol.iterator](),
|
|
20509
|
+
for (var q = L[Symbol.iterator](), Z; !(P = (Z = q.next()).done) && (C.push(Z.value), !(R && C.length === R)); P = !0)
|
|
20505
20510
|
;
|
|
20506
20511
|
} catch (z) {
|
|
20507
20512
|
M = !0, F = z;
|
|
@@ -20600,8 +20605,8 @@ var ey = { exports: {} };
|
|
|
20600
20605
|
if (P !== 0 && !(p.default.query(M, p.default.Scope.BLOCK) == null || M === this.statics.blotName && F === this.statics.formats(this.domNode))) {
|
|
20601
20606
|
var q = this.newlineIndex(C);
|
|
20602
20607
|
if (!(q < 0 || q >= C + P)) {
|
|
20603
|
-
var
|
|
20604
|
-
rt.format(M, F), W instanceof L && W.formatAt(0, C -
|
|
20608
|
+
var Z = this.newlineIndex(C, !0) + 1, z = q - Z + 1, rt = this.isolate(Z, z), W = rt.next;
|
|
20609
|
+
rt.format(M, F), W instanceof L && W.formatAt(0, C - Z + P - z, M, F);
|
|
20605
20610
|
}
|
|
20606
20611
|
}
|
|
20607
20612
|
}
|
|
@@ -20609,8 +20614,8 @@ var ey = { exports: {} };
|
|
|
20609
20614
|
key: "insertAt",
|
|
20610
20615
|
value: function(C, P, M) {
|
|
20611
20616
|
if (M == null) {
|
|
20612
|
-
var F = this.descendant(_.default, C), q = a(F, 2),
|
|
20613
|
-
|
|
20617
|
+
var F = this.descendant(_.default, C), q = a(F, 2), Z = q[0], z = q[1];
|
|
20618
|
+
Z.insertAt(z, P);
|
|
20614
20619
|
}
|
|
20615
20620
|
}
|
|
20616
20621
|
}, {
|
|
@@ -20679,8 +20684,8 @@ var ey = { exports: {} };
|
|
|
20679
20684
|
try {
|
|
20680
20685
|
for (var $ = D[Symbol.iterator](), V; !(G = (V = $.next()).done) && (j.push(V.value), !(k && j.length === k)); G = !0)
|
|
20681
20686
|
;
|
|
20682
|
-
} catch (
|
|
20683
|
-
K = !0, X =
|
|
20687
|
+
} catch (Q) {
|
|
20688
|
+
K = !0, X = Q;
|
|
20684
20689
|
} finally {
|
|
20685
20690
|
try {
|
|
20686
20691
|
!G && $.return && $.return();
|
|
@@ -20719,7 +20724,7 @@ var ey = { exports: {} };
|
|
|
20719
20724
|
if (!(W instanceof D))
|
|
20720
20725
|
throw new TypeError("Cannot call a class as a function");
|
|
20721
20726
|
}
|
|
20722
|
-
var q = /^[ -~]*$/,
|
|
20727
|
+
var q = /^[ -~]*$/, Z = function() {
|
|
20723
20728
|
function W(D) {
|
|
20724
20729
|
F(this, W), this.scroll = D, this.delta = this.getDelta();
|
|
20725
20730
|
}
|
|
@@ -20730,19 +20735,19 @@ var ey = { exports: {} };
|
|
|
20730
20735
|
this.scroll.update();
|
|
20731
20736
|
var K = this.scroll.length();
|
|
20732
20737
|
return this.scroll.batchStart(), k = rt(k), k.reduce(function(X, $) {
|
|
20733
|
-
var V = $.retain || $.delete || $.insert.length || 1,
|
|
20738
|
+
var V = $.retain || $.delete || $.insert.length || 1, Q = $.attributes || {};
|
|
20734
20739
|
if ($.insert != null) {
|
|
20735
20740
|
if (typeof $.insert == "string") {
|
|
20736
|
-
var
|
|
20737
|
-
|
|
20738
|
-
`) && G && (G = !1,
|
|
20739
|
-
`) && (G = !0), j.scroll.insertAt(X,
|
|
20740
|
-
var nt = j.scroll.line(X), ot = l(nt, 2), dt = ot[0],
|
|
20741
|
+
var J = $.insert;
|
|
20742
|
+
J.endsWith(`
|
|
20743
|
+
`) && G && (G = !1, J = J.slice(0, -1)), X >= K && !J.endsWith(`
|
|
20744
|
+
`) && (G = !0), j.scroll.insertAt(X, J);
|
|
20745
|
+
var nt = j.scroll.line(X), ot = l(nt, 2), dt = ot[0], pt = ot[1], bt = (0, C.default)({}, (0, w.bubbleFormats)(dt));
|
|
20741
20746
|
if (dt instanceof T.default) {
|
|
20742
|
-
var Tt = dt.descendant(v.default.Leaf,
|
|
20743
|
-
bt = (0, C.default)(bt, (0, w.bubbleFormats)(
|
|
20747
|
+
var Tt = dt.descendant(v.default.Leaf, pt), le = l(Tt, 1), zt = le[0];
|
|
20748
|
+
bt = (0, C.default)(bt, (0, w.bubbleFormats)(zt));
|
|
20744
20749
|
}
|
|
20745
|
-
|
|
20750
|
+
Q = p.default.attributes.diff(bt, Q) || {};
|
|
20746
20751
|
} else if (a($.insert) === "object") {
|
|
20747
20752
|
var st = Object.keys($.insert)[0];
|
|
20748
20753
|
if (st == null)
|
|
@@ -20751,8 +20756,8 @@ var ey = { exports: {} };
|
|
|
20751
20756
|
}
|
|
20752
20757
|
K += V;
|
|
20753
20758
|
}
|
|
20754
|
-
return Object.keys(
|
|
20755
|
-
j.scroll.formatAt(X, V, lt,
|
|
20759
|
+
return Object.keys(Q).forEach(function(lt) {
|
|
20760
|
+
j.scroll.formatAt(X, V, lt, Q[lt]);
|
|
20756
20761
|
}), X + V;
|
|
20757
20762
|
}, 0), k.reduce(function(X, $) {
|
|
20758
20763
|
return typeof $.delete == "number" ? (j.scroll.deleteAt(X, $.delete), X) : X + ($.retain || $.insert.length || 1);
|
|
@@ -20770,15 +20775,15 @@ var ey = { exports: {} };
|
|
|
20770
20775
|
return this.scroll.update(), Object.keys(K).forEach(function(X) {
|
|
20771
20776
|
if (!(G.scroll.whitelist != null && !G.scroll.whitelist[X])) {
|
|
20772
20777
|
var $ = G.scroll.lines(k, Math.max(j, 1)), V = j;
|
|
20773
|
-
$.forEach(function(
|
|
20774
|
-
var
|
|
20775
|
-
if (!(
|
|
20776
|
-
|
|
20778
|
+
$.forEach(function(Q) {
|
|
20779
|
+
var J = Q.length();
|
|
20780
|
+
if (!(Q instanceof y.default))
|
|
20781
|
+
Q.format(X, K[X]);
|
|
20777
20782
|
else {
|
|
20778
|
-
var nt = k -
|
|
20779
|
-
|
|
20783
|
+
var nt = k - Q.offset(G.scroll), ot = Q.newlineIndex(nt + V) - nt + 1;
|
|
20784
|
+
Q.formatAt(nt, ot, X, K[X]);
|
|
20780
20785
|
}
|
|
20781
|
-
V -=
|
|
20786
|
+
V -= J;
|
|
20782
20787
|
});
|
|
20783
20788
|
}
|
|
20784
20789
|
}), this.scroll.optimize(), this.update(new h.default().retain(k).retain(j, (0, S.default)(K)));
|
|
@@ -20808,17 +20813,17 @@ var ey = { exports: {} };
|
|
|
20808
20813
|
value: function(k) {
|
|
20809
20814
|
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, G = [], K = [];
|
|
20810
20815
|
j === 0 ? this.scroll.path(k).forEach(function($) {
|
|
20811
|
-
var V = l($, 1),
|
|
20812
|
-
|
|
20816
|
+
var V = l($, 1), Q = V[0];
|
|
20817
|
+
Q instanceof T.default ? G.push(Q) : Q instanceof v.default.Leaf && K.push(Q);
|
|
20813
20818
|
}) : (G = this.scroll.lines(k, j), K = this.scroll.descendants(v.default.Leaf, k, j));
|
|
20814
20819
|
var X = [G, K].map(function($) {
|
|
20815
20820
|
if ($.length === 0)
|
|
20816
20821
|
return {};
|
|
20817
20822
|
for (var V = (0, w.bubbleFormats)($.shift()); Object.keys(V).length > 0; ) {
|
|
20818
|
-
var
|
|
20819
|
-
if (
|
|
20823
|
+
var Q = $.shift();
|
|
20824
|
+
if (Q == null)
|
|
20820
20825
|
return V;
|
|
20821
|
-
V = z((0, w.bubbleFormats)(
|
|
20826
|
+
V = z((0, w.bubbleFormats)(Q), V);
|
|
20822
20827
|
}
|
|
20823
20828
|
return V;
|
|
20824
20829
|
});
|
|
@@ -20861,10 +20866,10 @@ var ey = { exports: {} };
|
|
|
20861
20866
|
}, {
|
|
20862
20867
|
key: "removeFormat",
|
|
20863
20868
|
value: function(k, j) {
|
|
20864
|
-
var G = this.getText(k, j), K = this.scroll.line(k + j), X = l(K, 2), $ = X[0], V = X[1],
|
|
20865
|
-
$ != null && ($ instanceof y.default ?
|
|
20869
|
+
var G = this.getText(k, j), K = this.scroll.line(k + j), X = l(K, 2), $ = X[0], V = X[1], Q = 0, J = new h.default();
|
|
20870
|
+
$ != null && ($ instanceof y.default ? Q = $.newlineIndex(V) - V + 1 : Q = $.length() - V, J = $.delta().slice(V, V + Q - 1).insert(`
|
|
20866
20871
|
`));
|
|
20867
|
-
var nt = this.getContents(k, j +
|
|
20872
|
+
var nt = this.getContents(k, j + Q), ot = nt.diff(new h.default().insert(G).concat(J)), dt = new h.default().retain(k).concat(ot);
|
|
20868
20873
|
return this.applyDelta(dt);
|
|
20869
20874
|
}
|
|
20870
20875
|
}, {
|
|
@@ -20872,9 +20877,9 @@ var ey = { exports: {} };
|
|
|
20872
20877
|
value: function(k) {
|
|
20873
20878
|
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, K = this.delta;
|
|
20874
20879
|
if (j.length === 1 && j[0].type === "characterData" && j[0].target.data.match(q) && v.default.find(j[0].target)) {
|
|
20875
|
-
var X = v.default.find(j[0].target), $ = (0, w.bubbleFormats)(X), V = X.offset(this.scroll),
|
|
20876
|
-
k = ot.reduce(function(dt,
|
|
20877
|
-
return
|
|
20880
|
+
var X = v.default.find(j[0].target), $ = (0, w.bubbleFormats)(X), V = X.offset(this.scroll), Q = j[0].oldValue.replace(_.default.CONTENTS, ""), J = new h.default().insert(Q), nt = new h.default().insert(X.value()), ot = new h.default().retain(V).concat(J.diff(nt, G));
|
|
20881
|
+
k = ot.reduce(function(dt, pt) {
|
|
20882
|
+
return pt.insert ? dt.insert(pt.insert, $) : dt.push(pt);
|
|
20878
20883
|
}, new h.default()), this.delta = K.compose(k);
|
|
20879
20884
|
} else
|
|
20880
20885
|
this.delta = this.getDelta(), (!k || !(0, L.default)(K.compose(k), this.delta)) && (k = K.diff(this.delta, G));
|
|
@@ -20902,7 +20907,7 @@ var ey = { exports: {} };
|
|
|
20902
20907
|
return D.push(k);
|
|
20903
20908
|
}, new h.default());
|
|
20904
20909
|
}
|
|
20905
|
-
n.default =
|
|
20910
|
+
n.default = Z;
|
|
20906
20911
|
},
|
|
20907
20912
|
/* 15 */
|
|
20908
20913
|
/***/
|
|
@@ -20914,7 +20919,7 @@ var ey = { exports: {} };
|
|
|
20914
20919
|
function O(L, R) {
|
|
20915
20920
|
var C = [], P = !0, M = !1, F = void 0;
|
|
20916
20921
|
try {
|
|
20917
|
-
for (var q = L[Symbol.iterator](),
|
|
20922
|
+
for (var q = L[Symbol.iterator](), Z; !(P = (Z = q.next()).done) && (C.push(Z.value), !(R && C.length === R)); P = !0)
|
|
20918
20923
|
;
|
|
20919
20924
|
} catch (z) {
|
|
20920
20925
|
M = !0, F = z;
|
|
@@ -20983,8 +20988,8 @@ var ey = { exports: {} };
|
|
|
20983
20988
|
}
|
|
20984
20989
|
}), this.emitter.on(m.default.events.SCROLL_OPTIMIZE, function(P, M) {
|
|
20985
20990
|
if (M.range) {
|
|
20986
|
-
var F = M.range, q = F.startNode,
|
|
20987
|
-
C.setNativeRange(q,
|
|
20991
|
+
var F = M.range, q = F.startNode, Z = F.startOffset, z = F.endNode, rt = F.endOffset;
|
|
20992
|
+
C.setNativeRange(q, Z, z, rt);
|
|
20988
20993
|
}
|
|
20989
20994
|
}), this.update(m.default.sources.SILENT);
|
|
20990
20995
|
}
|
|
@@ -21047,22 +21052,22 @@ var ey = { exports: {} };
|
|
|
21047
21052
|
value: function(R) {
|
|
21048
21053
|
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, P = this.scroll.length();
|
|
21049
21054
|
R = Math.min(R, P - 1), C = Math.min(R + C, P - 1) - R;
|
|
21050
|
-
var M = void 0, F = this.scroll.leaf(R), q = a(F, 2),
|
|
21051
|
-
if (
|
|
21055
|
+
var M = void 0, F = this.scroll.leaf(R), q = a(F, 2), Z = q[0], z = q[1];
|
|
21056
|
+
if (Z == null)
|
|
21052
21057
|
return null;
|
|
21053
|
-
var rt =
|
|
21058
|
+
var rt = Z.position(z, !0), W = a(rt, 2);
|
|
21054
21059
|
M = W[0], z = W[1];
|
|
21055
21060
|
var D = document.createRange();
|
|
21056
21061
|
if (C > 0) {
|
|
21057
21062
|
D.setStart(M, z);
|
|
21058
21063
|
var k = this.scroll.leaf(R + C), j = a(k, 2);
|
|
21059
|
-
if (
|
|
21064
|
+
if (Z = j[0], z = j[1], Z == null)
|
|
21060
21065
|
return null;
|
|
21061
|
-
var G =
|
|
21066
|
+
var G = Z.position(z, !0), K = a(G, 2);
|
|
21062
21067
|
return M = K[0], z = K[1], D.setEnd(M, z), D.getBoundingClientRect();
|
|
21063
21068
|
} else {
|
|
21064
21069
|
var X = "left", $ = void 0;
|
|
21065
|
-
return M instanceof Text ? (z < M.data.length ? (D.setStart(M, z), D.setEnd(M, z + 1)) : (D.setStart(M, z - 1), D.setEnd(M, z), X = "right"), $ = D.getBoundingClientRect()) : ($ =
|
|
21070
|
+
return M instanceof Text ? (z < M.data.length ? (D.setStart(M, z), D.setEnd(M, z + 1)) : (D.setStart(M, z - 1), D.setEnd(M, z), X = "right"), $ = D.getBoundingClientRect()) : ($ = Z.domNode.getBoundingClientRect(), z > 0 && (X = "right")), {
|
|
21066
21071
|
bottom: $.top + $.height,
|
|
21067
21072
|
height: $.height,
|
|
21068
21073
|
left: $[X],
|
|
@@ -21103,8 +21108,8 @@ var ey = { exports: {} };
|
|
|
21103
21108
|
value: function(R) {
|
|
21104
21109
|
var C = this, P = [[R.start.node, R.start.offset]];
|
|
21105
21110
|
R.native.collapsed || P.push([R.end.node, R.end.offset]);
|
|
21106
|
-
var M = P.map(function(
|
|
21107
|
-
var z = a(
|
|
21111
|
+
var M = P.map(function(Z) {
|
|
21112
|
+
var z = a(Z, 2), rt = z[0], W = z[1], D = f.default.find(rt, !0), k = D.offset(C.scroll);
|
|
21108
21113
|
return W === 0 ? k : D instanceof f.default.Container ? k + D.length() : k + D.index(rt, W);
|
|
21109
21114
|
}), F = Math.min(Math.max.apply(Math, w(M)), this.scroll.length() - 1), q = Math.min.apply(Math, [F].concat(w(M)));
|
|
21110
21115
|
return new A(q, F - q);
|
|
@@ -21134,9 +21139,9 @@ var ey = { exports: {} };
|
|
|
21134
21139
|
key: "rangeToNative",
|
|
21135
21140
|
value: function(R) {
|
|
21136
21141
|
var C = this, P = R.collapsed ? [R.index] : [R.index, R.index + R.length], M = [], F = this.scroll.length();
|
|
21137
|
-
return P.forEach(function(q,
|
|
21142
|
+
return P.forEach(function(q, Z) {
|
|
21138
21143
|
q = Math.min(F - 1, q);
|
|
21139
|
-
var z = void 0, rt = C.scroll.leaf(q), W = a(rt, 2), D = W[0], k = W[1], j = D.position(k,
|
|
21144
|
+
var z = void 0, rt = C.scroll.leaf(q), W = a(rt, 2), D = W[0], k = W[1], j = D.position(k, Z !== 0), G = a(j, 2);
|
|
21140
21145
|
z = G[0], k = G[1], M.push(z, k);
|
|
21141
21146
|
}), M.length < 2 && (M = M.concat(M)), M;
|
|
21142
21147
|
}
|
|
@@ -21147,12 +21152,12 @@ var ey = { exports: {} };
|
|
|
21147
21152
|
if (C != null) {
|
|
21148
21153
|
var P = this.getBounds(C.index, C.length);
|
|
21149
21154
|
if (P != null) {
|
|
21150
|
-
var M = this.scroll.length() - 1, F = this.scroll.line(Math.min(C.index, M)), q = a(F, 1),
|
|
21155
|
+
var M = this.scroll.length() - 1, F = this.scroll.line(Math.min(C.index, M)), q = a(F, 1), Z = q[0], z = Z;
|
|
21151
21156
|
if (C.length > 0) {
|
|
21152
21157
|
var rt = this.scroll.line(Math.min(C.index + C.length, M)), W = a(rt, 1);
|
|
21153
21158
|
z = W[0];
|
|
21154
21159
|
}
|
|
21155
|
-
if (!(
|
|
21160
|
+
if (!(Z == null || z == null)) {
|
|
21156
21161
|
var D = R.getBoundingClientRect();
|
|
21157
21162
|
P.top < D.top ? R.scrollTop -= D.top - P.top : P.bottom > D.bottom && (R.scrollTop += P.bottom - D.bottom);
|
|
21158
21163
|
}
|
|
@@ -21168,8 +21173,8 @@ var ey = { exports: {} };
|
|
|
21168
21173
|
if (q != null)
|
|
21169
21174
|
if (R != null) {
|
|
21170
21175
|
this.hasFocus() || this.root.focus();
|
|
21171
|
-
var
|
|
21172
|
-
if (
|
|
21176
|
+
var Z = (this.getNativeRange() || {}).native;
|
|
21177
|
+
if (Z == null || F || R !== Z.startContainer || C !== Z.startOffset || P !== Z.endContainer || M !== Z.endOffset) {
|
|
21173
21178
|
R.tagName == "BR" && (C = [].indexOf.call(R.parentNode.childNodes, R), R = R.parentNode), P.tagName == "BR" && (M = [].indexOf.call(P.parentNode.childNodes, P), P = P.parentNode);
|
|
21174
21179
|
var z = document.createRange();
|
|
21175
21180
|
z.setStart(R, C), z.setEnd(P, M), q.removeAllRanges(), q.addRange(z);
|
|
@@ -21194,10 +21199,10 @@ var ey = { exports: {} };
|
|
|
21194
21199
|
value: function() {
|
|
21195
21200
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m.default.sources.USER, C = this.lastRange, P = this.getRange(), M = a(P, 2), F = M[0], q = M[1];
|
|
21196
21201
|
if (this.lastRange = F, this.lastRange != null && (this.savedRange = this.lastRange), !(0, c.default)(C, this.lastRange)) {
|
|
21197
|
-
var
|
|
21202
|
+
var Z;
|
|
21198
21203
|
!this.composing && q != null && q.native.collapsed && q.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
21199
21204
|
var z = [m.default.events.SELECTION_CHANGE, (0, d.default)(this.lastRange), (0, d.default)(C), R];
|
|
21200
|
-
if ((
|
|
21205
|
+
if ((Z = this.emitter).emit.apply(Z, [m.default.events.EDITOR_CHANGE].concat(z)), R !== m.default.sources.SILENT) {
|
|
21201
21206
|
var rt;
|
|
21202
21207
|
(rt = this.emitter).emit.apply(rt, z);
|
|
21203
21208
|
}
|
|
@@ -21695,8 +21700,8 @@ var ey = { exports: {} };
|
|
|
21695
21700
|
}
|
|
21696
21701
|
if (Object.getOwnPropertySymbols)
|
|
21697
21702
|
for (var q = Object.getOwnPropertySymbols(O), M = 0; M < q.length; M++) {
|
|
21698
|
-
var
|
|
21699
|
-
z && !z.enumerable && !T || (R[
|
|
21703
|
+
var Z = q[M], z = Object.getOwnPropertyDescriptor(O, Z);
|
|
21704
|
+
z && !z.enumerable && !T || (R[Z] = S(O[Z], L - 1), z.enumerable || Object.defineProperty(R, Z, {
|
|
21700
21705
|
enumerable: !1
|
|
21701
21706
|
}));
|
|
21702
21707
|
}
|
|
@@ -21750,18 +21755,18 @@ var ey = { exports: {} };
|
|
|
21750
21755
|
});
|
|
21751
21756
|
var a = function() {
|
|
21752
21757
|
function R(C, P) {
|
|
21753
|
-
var M = [], F = !0, q = !1,
|
|
21758
|
+
var M = [], F = !0, q = !1, Z = void 0;
|
|
21754
21759
|
try {
|
|
21755
21760
|
for (var z = C[Symbol.iterator](), rt; !(F = (rt = z.next()).done) && (M.push(rt.value), !(P && M.length === P)); F = !0)
|
|
21756
21761
|
;
|
|
21757
21762
|
} catch (W) {
|
|
21758
|
-
q = !0,
|
|
21763
|
+
q = !0, Z = W;
|
|
21759
21764
|
} finally {
|
|
21760
21765
|
try {
|
|
21761
21766
|
!F && z.return && z.return();
|
|
21762
21767
|
} finally {
|
|
21763
21768
|
if (q)
|
|
21764
|
-
throw
|
|
21769
|
+
throw Z;
|
|
21765
21770
|
}
|
|
21766
21771
|
}
|
|
21767
21772
|
return M;
|
|
@@ -21792,8 +21797,8 @@ var ey = { exports: {} };
|
|
|
21792
21797
|
} else {
|
|
21793
21798
|
if ("value" in F)
|
|
21794
21799
|
return F.value;
|
|
21795
|
-
var
|
|
21796
|
-
return
|
|
21800
|
+
var Z = F.get;
|
|
21801
|
+
return Z === void 0 ? void 0 : Z.call(M);
|
|
21797
21802
|
}
|
|
21798
21803
|
}, f = i(0), h = x(f), d = i(8), p = x(d), c = i(4), v = x(c), m = i(16), y = x(m), b = i(13), _ = x(b), w = i(25), T = x(w);
|
|
21799
21804
|
function x(R) {
|
|
@@ -21821,8 +21826,8 @@ var ey = { exports: {} };
|
|
|
21821
21826
|
function C(P, M) {
|
|
21822
21827
|
A(this, C);
|
|
21823
21828
|
var F = I(this, (C.__proto__ || Object.getPrototypeOf(C)).call(this, P));
|
|
21824
|
-
return F.emitter = M.emitter, Array.isArray(M.whitelist) && (F.whitelist = M.whitelist.reduce(function(q,
|
|
21825
|
-
return q[
|
|
21829
|
+
return F.emitter = M.emitter, Array.isArray(M.whitelist) && (F.whitelist = M.whitelist.reduce(function(q, Z) {
|
|
21830
|
+
return q[Z] = !0, q;
|
|
21826
21831
|
}, {})), F.domNode.addEventListener("DOMNodeInserted", function() {
|
|
21827
21832
|
}), F.optimize(), F.enable(), F;
|
|
21828
21833
|
}
|
|
@@ -21839,7 +21844,7 @@ var ey = { exports: {} };
|
|
|
21839
21844
|
}, {
|
|
21840
21845
|
key: "deleteAt",
|
|
21841
21846
|
value: function(M, F) {
|
|
21842
|
-
var q = this.line(M),
|
|
21847
|
+
var q = this.line(M), Z = a(q, 2), z = Z[0], rt = Z[1], W = this.line(M + F), D = a(W, 1), k = D[0];
|
|
21843
21848
|
if (u(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "deleteAt", this).call(this, M, F), k != null && z !== k && rt > 0) {
|
|
21844
21849
|
if (z instanceof c.BlockEmbed || k instanceof c.BlockEmbed) {
|
|
21845
21850
|
this.optimize();
|
|
@@ -21868,8 +21873,8 @@ var ey = { exports: {} };
|
|
|
21868
21873
|
}
|
|
21869
21874
|
}, {
|
|
21870
21875
|
key: "formatAt",
|
|
21871
|
-
value: function(M, F, q,
|
|
21872
|
-
this.whitelist != null && !this.whitelist[q] || (u(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "formatAt", this).call(this, M, F, q,
|
|
21876
|
+
value: function(M, F, q, Z) {
|
|
21877
|
+
this.whitelist != null && !this.whitelist[q] || (u(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "formatAt", this).call(this, M, F, q, Z), this.optimize());
|
|
21873
21878
|
}
|
|
21874
21879
|
}, {
|
|
21875
21880
|
key: "insertAt",
|
|
@@ -21877,9 +21882,9 @@ var ey = { exports: {} };
|
|
|
21877
21882
|
if (!(q != null && this.whitelist != null && !this.whitelist[F])) {
|
|
21878
21883
|
if (M >= this.length())
|
|
21879
21884
|
if (q == null || h.default.query(F, h.default.Scope.BLOCK) == null) {
|
|
21880
|
-
var
|
|
21881
|
-
this.appendChild(
|
|
21882
|
-
`) && (F = F.slice(0, -1)),
|
|
21885
|
+
var Z = h.default.create(this.statics.defaultChild);
|
|
21886
|
+
this.appendChild(Z), q == null && F.endsWith(`
|
|
21887
|
+
`) && (F = F.slice(0, -1)), Z.insertAt(0, F, q);
|
|
21883
21888
|
} else {
|
|
21884
21889
|
var z = h.default.create(F, q);
|
|
21885
21890
|
this.appendChild(z);
|
|
@@ -21911,10 +21916,10 @@ var ey = { exports: {} };
|
|
|
21911
21916
|
}, {
|
|
21912
21917
|
key: "lines",
|
|
21913
21918
|
value: function() {
|
|
21914
|
-
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function
|
|
21919
|
+
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function Z(z, rt, W) {
|
|
21915
21920
|
var D = [], k = W;
|
|
21916
21921
|
return z.children.forEachAt(rt, W, function(j, G, K) {
|
|
21917
|
-
O(j) ? D.push(j) : j instanceof h.default.Container && (D = D.concat(
|
|
21922
|
+
O(j) ? D.push(j) : j instanceof h.default.Container && (D = D.concat(Z(j, G, k))), k -= K;
|
|
21918
21923
|
}), D;
|
|
21919
21924
|
};
|
|
21920
21925
|
return q(this, M, F);
|
|
@@ -21953,46 +21958,46 @@ var ey = { exports: {} };
|
|
|
21953
21958
|
} : function($) {
|
|
21954
21959
|
return $ && typeof Symbol == "function" && $.constructor === Symbol && $ !== Symbol.prototype ? "symbol" : typeof $;
|
|
21955
21960
|
}, l = function() {
|
|
21956
|
-
function $(V,
|
|
21957
|
-
var
|
|
21961
|
+
function $(V, Q) {
|
|
21962
|
+
var J = [], nt = !0, ot = !1, dt = void 0;
|
|
21958
21963
|
try {
|
|
21959
|
-
for (var
|
|
21964
|
+
for (var pt = V[Symbol.iterator](), bt; !(nt = (bt = pt.next()).done) && (J.push(bt.value), !(Q && J.length === Q)); nt = !0)
|
|
21960
21965
|
;
|
|
21961
21966
|
} catch (Tt) {
|
|
21962
21967
|
ot = !0, dt = Tt;
|
|
21963
21968
|
} finally {
|
|
21964
21969
|
try {
|
|
21965
|
-
!nt &&
|
|
21970
|
+
!nt && pt.return && pt.return();
|
|
21966
21971
|
} finally {
|
|
21967
21972
|
if (ot)
|
|
21968
21973
|
throw dt;
|
|
21969
21974
|
}
|
|
21970
21975
|
}
|
|
21971
|
-
return
|
|
21976
|
+
return J;
|
|
21972
21977
|
}
|
|
21973
|
-
return function(V,
|
|
21978
|
+
return function(V, Q) {
|
|
21974
21979
|
if (Array.isArray(V))
|
|
21975
21980
|
return V;
|
|
21976
21981
|
if (Symbol.iterator in Object(V))
|
|
21977
|
-
return $(V,
|
|
21982
|
+
return $(V, Q);
|
|
21978
21983
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
21979
21984
|
};
|
|
21980
21985
|
}(), u = function() {
|
|
21981
|
-
function $(V,
|
|
21982
|
-
for (var
|
|
21983
|
-
var nt = J
|
|
21986
|
+
function $(V, Q) {
|
|
21987
|
+
for (var J = 0; J < Q.length; J++) {
|
|
21988
|
+
var nt = Q[J];
|
|
21984
21989
|
nt.enumerable = nt.enumerable || !1, nt.configurable = !0, "value" in nt && (nt.writable = !0), Object.defineProperty(V, nt.key, nt);
|
|
21985
21990
|
}
|
|
21986
21991
|
}
|
|
21987
|
-
return function(V,
|
|
21988
|
-
return
|
|
21992
|
+
return function(V, Q, J) {
|
|
21993
|
+
return Q && $(V.prototype, Q), J && $(V, J), V;
|
|
21989
21994
|
};
|
|
21990
21995
|
}(), f = i(21), h = R(f), d = i(11), p = R(d), c = i(3), v = R(c), m = i(2), y = R(m), b = i(20), _ = R(b), w = i(0), T = R(w), x = i(5), A = R(x), I = i(10), S = R(I), O = i(9), L = R(O);
|
|
21991
21996
|
function R($) {
|
|
21992
21997
|
return $ && $.__esModule ? $ : { default: $ };
|
|
21993
21998
|
}
|
|
21994
|
-
function C($, V,
|
|
21995
|
-
return V in $ ? Object.defineProperty($, V, { value:
|
|
21999
|
+
function C($, V, Q) {
|
|
22000
|
+
return V in $ ? Object.defineProperty($, V, { value: Q, enumerable: !0, configurable: !0, writable: !0 }) : $[V] = Q, $;
|
|
21996
22001
|
}
|
|
21997
22002
|
function P($, V) {
|
|
21998
22003
|
if (!($ instanceof V))
|
|
@@ -22008,27 +22013,27 @@ var ey = { exports: {} };
|
|
|
22008
22013
|
throw new TypeError("Super expression must either be null or a function, not " + typeof V);
|
|
22009
22014
|
$.prototype = Object.create(V && V.prototype, { constructor: { value: $, enumerable: !1, writable: !0, configurable: !0 } }), V && (Object.setPrototypeOf ? Object.setPrototypeOf($, V) : $.__proto__ = V);
|
|
22010
22015
|
}
|
|
22011
|
-
var q = (0, S.default)("quill:keyboard"),
|
|
22016
|
+
var q = (0, S.default)("quill:keyboard"), Z = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", z = function($) {
|
|
22012
22017
|
F(V, $), u(V, null, [{
|
|
22013
22018
|
key: "match",
|
|
22014
|
-
value: function(
|
|
22019
|
+
value: function(J, nt) {
|
|
22015
22020
|
return nt = X(nt), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(ot) {
|
|
22016
|
-
return !!nt[ot] !==
|
|
22017
|
-
}) ? !1 : nt.key === (
|
|
22021
|
+
return !!nt[ot] !== J[ot] && nt[ot] !== null;
|
|
22022
|
+
}) ? !1 : nt.key === (J.which || J.keyCode);
|
|
22018
22023
|
}
|
|
22019
22024
|
}]);
|
|
22020
|
-
function V(
|
|
22025
|
+
function V(Q, J) {
|
|
22021
22026
|
P(this, V);
|
|
22022
|
-
var nt = M(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this,
|
|
22027
|
+
var nt = M(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this, Q, J));
|
|
22023
22028
|
return nt.bindings = {}, Object.keys(nt.options.bindings).forEach(function(ot) {
|
|
22024
|
-
ot === "list autofill" &&
|
|
22029
|
+
ot === "list autofill" && Q.scroll.whitelist != null && !Q.scroll.whitelist.list || nt.options.bindings[ot] && nt.addBinding(nt.options.bindings[ot]);
|
|
22025
22030
|
}), nt.addBinding({ key: V.keys.ENTER, shiftKey: null }, j), nt.addBinding({ key: V.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
22026
22031
|
}), /Firefox/i.test(navigator.userAgent) ? (nt.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !0 }, W), nt.addBinding({ key: V.keys.DELETE }, { collapsed: !0 }, D)) : (nt.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, W), nt.addBinding({ key: V.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, D)), nt.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !1 }, k), nt.addBinding({ key: V.keys.DELETE }, { collapsed: !1 }, k), nt.addBinding({ key: V.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, W), nt.listen(), nt;
|
|
22027
22032
|
}
|
|
22028
22033
|
return u(V, [{
|
|
22029
22034
|
key: "addBinding",
|
|
22030
|
-
value: function(
|
|
22031
|
-
var nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ot = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, dt = X(
|
|
22035
|
+
value: function(J) {
|
|
22036
|
+
var nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ot = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, dt = X(J);
|
|
22032
22037
|
if (dt == null || dt.key == null)
|
|
22033
22038
|
return q.warn("Attempted to add invalid keyboard binding", dt);
|
|
22034
22039
|
typeof nt == "function" && (nt = { handler: nt }), typeof ot == "function" && (ot = { handler: ot }), dt = (0, v.default)(dt, nt, ot), this.bindings[dt.key] = this.bindings[dt.key] || [], this.bindings[dt.key].push(dt);
|
|
@@ -22036,20 +22041,20 @@ var ey = { exports: {} };
|
|
|
22036
22041
|
}, {
|
|
22037
22042
|
key: "listen",
|
|
22038
22043
|
value: function() {
|
|
22039
|
-
var
|
|
22044
|
+
var J = this;
|
|
22040
22045
|
this.quill.root.addEventListener("keydown", function(nt) {
|
|
22041
22046
|
if (!nt.defaultPrevented) {
|
|
22042
|
-
var ot = nt.which || nt.keyCode, dt = (
|
|
22047
|
+
var ot = nt.which || nt.keyCode, dt = (J.bindings[ot] || []).filter(function(ue) {
|
|
22043
22048
|
return V.match(nt, ue);
|
|
22044
22049
|
});
|
|
22045
22050
|
if (dt.length !== 0) {
|
|
22046
|
-
var
|
|
22047
|
-
if (!(
|
|
22048
|
-
var bt =
|
|
22049
|
-
collapsed:
|
|
22050
|
-
empty:
|
|
22051
|
-
format:
|
|
22052
|
-
offset:
|
|
22051
|
+
var pt = J.quill.getSelection();
|
|
22052
|
+
if (!(pt == null || !J.quill.hasFocus())) {
|
|
22053
|
+
var bt = J.quill.getLine(pt.index), Tt = l(bt, 2), le = Tt[0], zt = Tt[1], st = J.quill.getLeaf(pt.index), lt = l(st, 2), vt = lt[0], gt = lt[1], ct = pt.length === 0 ? [vt, gt] : J.quill.getLeaf(pt.index + pt.length), It = l(ct, 2), kt = It[0], Pt = It[1], qe = vt instanceof T.default.Text ? vt.value().slice(0, gt) : "", Be = kt instanceof T.default.Text ? kt.value().slice(Pt) : "", Yt = {
|
|
22054
|
+
collapsed: pt.length === 0,
|
|
22055
|
+
empty: pt.length === 0 && le.length() <= 1,
|
|
22056
|
+
format: J.quill.getFormat(pt),
|
|
22057
|
+
offset: zt,
|
|
22053
22058
|
prefix: qe,
|
|
22054
22059
|
suffix: Be
|
|
22055
22060
|
}, Xi = dt.some(function(ue) {
|
|
@@ -22064,7 +22069,7 @@ var ey = { exports: {} };
|
|
|
22064
22069
|
return ue.format[sr] === !0 ? Yt.format[sr] != null : ue.format[sr] === !1 ? Yt.format[sr] == null : (0, p.default)(ue.format[sr], Yt.format[sr]);
|
|
22065
22070
|
}))
|
|
22066
22071
|
return !1;
|
|
22067
|
-
return ue.prefix != null && !ue.prefix.test(Yt.prefix) || ue.suffix != null && !ue.suffix.test(Yt.suffix) ? !1 : ue.handler.call(
|
|
22072
|
+
return ue.prefix != null && !ue.prefix.test(Yt.prefix) || ue.suffix != null && !ue.suffix.test(Yt.suffix) ? !1 : ue.handler.call(J, pt, Yt) !== !0;
|
|
22068
22073
|
});
|
|
22069
22074
|
Xi && nt.preventDefault();
|
|
22070
22075
|
}
|
|
@@ -22093,8 +22098,8 @@ var ey = { exports: {} };
|
|
|
22093
22098
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
22094
22099
|
key: z.keys.TAB,
|
|
22095
22100
|
format: ["blockquote", "indent", "list"],
|
|
22096
|
-
handler: function(V,
|
|
22097
|
-
if (
|
|
22101
|
+
handler: function(V, Q) {
|
|
22102
|
+
if (Q.collapsed && Q.offset !== 0)
|
|
22098
22103
|
return !0;
|
|
22099
22104
|
this.quill.format("indent", "+1", A.default.sources.USER);
|
|
22100
22105
|
}
|
|
@@ -22104,8 +22109,8 @@ var ey = { exports: {} };
|
|
|
22104
22109
|
shiftKey: !0,
|
|
22105
22110
|
format: ["blockquote", "indent", "list"],
|
|
22106
22111
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
22107
|
-
handler: function(V,
|
|
22108
|
-
if (
|
|
22112
|
+
handler: function(V, Q) {
|
|
22113
|
+
if (Q.collapsed && Q.offset !== 0)
|
|
22109
22114
|
return !0;
|
|
22110
22115
|
this.quill.format("indent", "-1", A.default.sources.USER);
|
|
22111
22116
|
}
|
|
@@ -22119,8 +22124,8 @@ var ey = { exports: {} };
|
|
|
22119
22124
|
altKey: null,
|
|
22120
22125
|
format: ["indent", "list"],
|
|
22121
22126
|
offset: 0,
|
|
22122
|
-
handler: function(V,
|
|
22123
|
-
|
|
22127
|
+
handler: function(V, Q) {
|
|
22128
|
+
Q.format.indent != null ? this.quill.format("indent", "-1", A.default.sources.USER) : Q.format.list != null && this.quill.format("list", !1, A.default.sources.USER);
|
|
22124
22129
|
}
|
|
22125
22130
|
},
|
|
22126
22131
|
"indent code-block": G(!0),
|
|
@@ -22138,8 +22143,8 @@ var ey = { exports: {} };
|
|
|
22138
22143
|
key: z.keys.TAB,
|
|
22139
22144
|
handler: function(V) {
|
|
22140
22145
|
this.quill.history.cutoff();
|
|
22141
|
-
var
|
|
22142
|
-
this.quill.updateContents(
|
|
22146
|
+
var Q = new y.default().retain(V.index).delete(V.length).insert(" ");
|
|
22147
|
+
this.quill.updateContents(Q, A.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(V.index + 1, A.default.sources.SILENT);
|
|
22143
22148
|
}
|
|
22144
22149
|
},
|
|
22145
22150
|
"list empty enter": {
|
|
@@ -22147,8 +22152,8 @@ var ey = { exports: {} };
|
|
|
22147
22152
|
collapsed: !0,
|
|
22148
22153
|
format: ["list"],
|
|
22149
22154
|
empty: !0,
|
|
22150
|
-
handler: function(V,
|
|
22151
|
-
this.quill.format("list", !1, A.default.sources.USER),
|
|
22155
|
+
handler: function(V, Q) {
|
|
22156
|
+
this.quill.format("list", !1, A.default.sources.USER), Q.format.indent && this.quill.format("indent", !1, A.default.sources.USER);
|
|
22152
22157
|
}
|
|
22153
22158
|
},
|
|
22154
22159
|
"checklist enter": {
|
|
@@ -22156,9 +22161,9 @@ var ey = { exports: {} };
|
|
|
22156
22161
|
collapsed: !0,
|
|
22157
22162
|
format: { list: "checked" },
|
|
22158
22163
|
handler: function(V) {
|
|
22159
|
-
var
|
|
22164
|
+
var Q = this.quill.getLine(V.index), J = l(Q, 2), nt = J[0], ot = J[1], dt = (0, v.default)({}, nt.formats(), { list: "checked" }), pt = new y.default().retain(V.index).insert(`
|
|
22160
22165
|
`, dt).retain(nt.length() - ot - 1).retain(1, { list: "unchecked" });
|
|
22161
|
-
this.quill.updateContents(
|
|
22166
|
+
this.quill.updateContents(pt, A.default.sources.USER), this.quill.setSelection(V.index + 1, A.default.sources.SILENT), this.quill.scrollIntoView();
|
|
22162
22167
|
}
|
|
22163
22168
|
},
|
|
22164
22169
|
"header enter": {
|
|
@@ -22166,10 +22171,10 @@ var ey = { exports: {} };
|
|
|
22166
22171
|
collapsed: !0,
|
|
22167
22172
|
format: ["header"],
|
|
22168
22173
|
suffix: /^$/,
|
|
22169
|
-
handler: function(V,
|
|
22170
|
-
var
|
|
22171
|
-
`,
|
|
22172
|
-
this.quill.updateContents(
|
|
22174
|
+
handler: function(V, Q) {
|
|
22175
|
+
var J = this.quill.getLine(V.index), nt = l(J, 2), ot = nt[0], dt = nt[1], pt = new y.default().retain(V.index).insert(`
|
|
22176
|
+
`, Q.format).retain(ot.length() - dt - 1).retain(1, { header: null });
|
|
22177
|
+
this.quill.updateContents(pt, A.default.sources.USER), this.quill.setSelection(V.index + 1, A.default.sources.SILENT), this.quill.scrollIntoView();
|
|
22173
22178
|
}
|
|
22174
22179
|
},
|
|
22175
22180
|
"list autofill": {
|
|
@@ -22177,12 +22182,12 @@ var ey = { exports: {} };
|
|
|
22177
22182
|
collapsed: !0,
|
|
22178
22183
|
format: { list: !1 },
|
|
22179
22184
|
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
|
|
22180
|
-
handler: function(V,
|
|
22181
|
-
var
|
|
22182
|
-
if (
|
|
22185
|
+
handler: function(V, Q) {
|
|
22186
|
+
var J = Q.prefix.length, nt = this.quill.getLine(V.index), ot = l(nt, 2), dt = ot[0], pt = ot[1];
|
|
22187
|
+
if (pt > J)
|
|
22183
22188
|
return !0;
|
|
22184
22189
|
var bt = void 0;
|
|
22185
|
-
switch (
|
|
22190
|
+
switch (Q.prefix.trim()) {
|
|
22186
22191
|
case "[]":
|
|
22187
22192
|
case "[ ]":
|
|
22188
22193
|
bt = "unchecked";
|
|
@@ -22198,8 +22203,8 @@ var ey = { exports: {} };
|
|
|
22198
22203
|
bt = "ordered";
|
|
22199
22204
|
}
|
|
22200
22205
|
this.quill.insertText(V.index, " ", A.default.sources.USER), this.quill.history.cutoff();
|
|
22201
|
-
var Tt = new y.default().retain(V.index -
|
|
22202
|
-
this.quill.updateContents(Tt, A.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(V.index -
|
|
22206
|
+
var Tt = new y.default().retain(V.index - pt).delete(J + 1).retain(dt.length() - 2 - pt).retain(1, { list: bt });
|
|
22207
|
+
this.quill.updateContents(Tt, A.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(V.index - J, A.default.sources.SILENT);
|
|
22203
22208
|
}
|
|
22204
22209
|
},
|
|
22205
22210
|
"code exit": {
|
|
@@ -22209,7 +22214,7 @@ var ey = { exports: {} };
|
|
|
22209
22214
|
prefix: /\n\n$/,
|
|
22210
22215
|
suffix: /^\s+$/,
|
|
22211
22216
|
handler: function(V) {
|
|
22212
|
-
var
|
|
22217
|
+
var Q = this.quill.getLine(V.index), J = l(Q, 2), nt = J[0], ot = J[1], dt = new y.default().retain(V.index + nt.length() - ot - 2).retain(1, { "code-block": null }).delete(1);
|
|
22213
22218
|
this.quill.updateContents(dt, A.default.sources.USER);
|
|
22214
22219
|
}
|
|
22215
22220
|
},
|
|
@@ -22220,63 +22225,63 @@ var ey = { exports: {} };
|
|
|
22220
22225
|
}
|
|
22221
22226
|
};
|
|
22222
22227
|
function rt($, V) {
|
|
22223
|
-
var
|
|
22224
|
-
return
|
|
22228
|
+
var Q, J = $ === z.keys.LEFT ? "prefix" : "suffix";
|
|
22229
|
+
return Q = {
|
|
22225
22230
|
key: $,
|
|
22226
22231
|
shiftKey: V,
|
|
22227
22232
|
altKey: null
|
|
22228
|
-
}, C(
|
|
22233
|
+
}, C(Q, J, /^$/), C(Q, "handler", function(ot) {
|
|
22229
22234
|
var dt = ot.index;
|
|
22230
22235
|
$ === z.keys.RIGHT && (dt += ot.length + 1);
|
|
22231
|
-
var
|
|
22236
|
+
var pt = this.quill.getLeaf(dt), bt = l(pt, 1), Tt = bt[0];
|
|
22232
22237
|
return Tt instanceof T.default.Embed ? ($ === z.keys.LEFT ? V ? this.quill.setSelection(ot.index - 1, ot.length + 1, A.default.sources.USER) : this.quill.setSelection(ot.index - 1, A.default.sources.USER) : V ? this.quill.setSelection(ot.index, ot.length + 1, A.default.sources.USER) : this.quill.setSelection(ot.index + ot.length + 1, A.default.sources.USER), !1) : !0;
|
|
22233
|
-
}),
|
|
22238
|
+
}), Q;
|
|
22234
22239
|
}
|
|
22235
22240
|
function W($, V) {
|
|
22236
22241
|
if (!($.index === 0 || this.quill.getLength() <= 1)) {
|
|
22237
|
-
var
|
|
22242
|
+
var Q = this.quill.getLine($.index), J = l(Q, 1), nt = J[0], ot = {};
|
|
22238
22243
|
if (V.offset === 0) {
|
|
22239
|
-
var dt = this.quill.getLine($.index - 1),
|
|
22244
|
+
var dt = this.quill.getLine($.index - 1), pt = l(dt, 1), bt = pt[0];
|
|
22240
22245
|
if (bt != null && bt.length() > 1) {
|
|
22241
22246
|
var Tt = nt.formats(), le = this.quill.getFormat($.index - 1, 1);
|
|
22242
22247
|
ot = _.default.attributes.diff(Tt, le) || {};
|
|
22243
22248
|
}
|
|
22244
22249
|
}
|
|
22245
|
-
var
|
|
22246
|
-
this.quill.deleteText($.index -
|
|
22250
|
+
var zt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix) ? 2 : 1;
|
|
22251
|
+
this.quill.deleteText($.index - zt, zt, A.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine($.index - zt, zt, ot, A.default.sources.USER), this.quill.focus();
|
|
22247
22252
|
}
|
|
22248
22253
|
}
|
|
22249
22254
|
function D($, V) {
|
|
22250
|
-
var
|
|
22251
|
-
if (!($.index >= this.quill.getLength() -
|
|
22252
|
-
var
|
|
22253
|
-
if (V.offset >=
|
|
22255
|
+
var Q = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix) ? 2 : 1;
|
|
22256
|
+
if (!($.index >= this.quill.getLength() - Q)) {
|
|
22257
|
+
var J = {}, nt = 0, ot = this.quill.getLine($.index), dt = l(ot, 1), pt = dt[0];
|
|
22258
|
+
if (V.offset >= pt.length() - 1) {
|
|
22254
22259
|
var bt = this.quill.getLine($.index + 1), Tt = l(bt, 1), le = Tt[0];
|
|
22255
22260
|
if (le) {
|
|
22256
|
-
var
|
|
22257
|
-
|
|
22261
|
+
var zt = pt.formats(), st = this.quill.getFormat($.index, 1);
|
|
22262
|
+
J = _.default.attributes.diff(zt, st) || {}, nt = le.length();
|
|
22258
22263
|
}
|
|
22259
22264
|
}
|
|
22260
|
-
this.quill.deleteText($.index,
|
|
22265
|
+
this.quill.deleteText($.index, Q, A.default.sources.USER), Object.keys(J).length > 0 && this.quill.formatLine($.index + nt - 1, Q, J, A.default.sources.USER);
|
|
22261
22266
|
}
|
|
22262
22267
|
}
|
|
22263
22268
|
function k($) {
|
|
22264
|
-
var V = this.quill.getLines($),
|
|
22269
|
+
var V = this.quill.getLines($), Q = {};
|
|
22265
22270
|
if (V.length > 1) {
|
|
22266
|
-
var
|
|
22267
|
-
|
|
22271
|
+
var J = V[0].formats(), nt = V[V.length - 1].formats();
|
|
22272
|
+
Q = _.default.attributes.diff(nt, J) || {};
|
|
22268
22273
|
}
|
|
22269
|
-
this.quill.deleteText($, A.default.sources.USER), Object.keys(
|
|
22274
|
+
this.quill.deleteText($, A.default.sources.USER), Object.keys(Q).length > 0 && this.quill.formatLine($.index, 1, Q, A.default.sources.USER), this.quill.setSelection($.index, A.default.sources.SILENT), this.quill.focus();
|
|
22270
22275
|
}
|
|
22271
22276
|
function j($, V) {
|
|
22272
|
-
var
|
|
22277
|
+
var Q = this;
|
|
22273
22278
|
$.length > 0 && this.quill.scroll.deleteAt($.index, $.length);
|
|
22274
|
-
var
|
|
22279
|
+
var J = Object.keys(V.format).reduce(function(nt, ot) {
|
|
22275
22280
|
return T.default.query(ot, T.default.Scope.BLOCK) && !Array.isArray(V.format[ot]) && (nt[ot] = V.format[ot]), nt;
|
|
22276
22281
|
}, {});
|
|
22277
22282
|
this.quill.insertText($.index, `
|
|
22278
|
-
`,
|
|
22279
|
-
|
|
22283
|
+
`, J, A.default.sources.USER), this.quill.setSelection($.index + 1, A.default.sources.SILENT), this.quill.focus(), Object.keys(V.format).forEach(function(nt) {
|
|
22284
|
+
J[nt] == null && (Array.isArray(V.format[nt]) || nt !== "link" && Q.quill.format(nt, V.format[nt], A.default.sources.USER));
|
|
22280
22285
|
});
|
|
22281
22286
|
}
|
|
22282
22287
|
function G($) {
|
|
@@ -22284,13 +22289,13 @@ var ey = { exports: {} };
|
|
|
22284
22289
|
key: z.keys.TAB,
|
|
22285
22290
|
shiftKey: !$,
|
|
22286
22291
|
format: { "code-block": !0 },
|
|
22287
|
-
handler: function(
|
|
22288
|
-
var
|
|
22292
|
+
handler: function(Q) {
|
|
22293
|
+
var J = T.default.query("code-block"), nt = Q.index, ot = Q.length, dt = this.quill.scroll.descendant(J, nt), pt = l(dt, 2), bt = pt[0], Tt = pt[1];
|
|
22289
22294
|
if (bt != null) {
|
|
22290
|
-
var le = this.quill.getIndex(bt),
|
|
22295
|
+
var le = this.quill.getIndex(bt), zt = bt.newlineIndex(Tt, !0) + 1, st = bt.newlineIndex(le + Tt + ot), lt = bt.domNode.textContent.slice(zt, st).split(`
|
|
22291
22296
|
`);
|
|
22292
|
-
Tt = 0, lt.forEach(function(
|
|
22293
|
-
$ ? (bt.insertAt(
|
|
22297
|
+
Tt = 0, lt.forEach(function(vt, gt) {
|
|
22298
|
+
$ ? (bt.insertAt(zt + Tt, J.TAB), Tt += J.TAB.length, gt === 0 ? nt += J.TAB.length : ot += J.TAB.length) : vt.startsWith(J.TAB) && (bt.deleteAt(zt + Tt, J.TAB.length), Tt -= J.TAB.length, gt === 0 ? nt -= J.TAB.length : ot -= J.TAB.length), Tt += vt.length + 1;
|
|
22294
22299
|
}), this.quill.update(A.default.sources.USER), this.quill.setSelection(nt, ot, A.default.sources.SILENT);
|
|
22295
22300
|
}
|
|
22296
22301
|
}
|
|
@@ -22300,8 +22305,8 @@ var ey = { exports: {} };
|
|
|
22300
22305
|
return {
|
|
22301
22306
|
key: $[0].toUpperCase(),
|
|
22302
22307
|
shortKey: !0,
|
|
22303
|
-
handler: function(
|
|
22304
|
-
this.quill.format($, !
|
|
22308
|
+
handler: function(Q, J) {
|
|
22309
|
+
this.quill.format($, !J.format[$], A.default.sources.USER);
|
|
22305
22310
|
}
|
|
22306
22311
|
};
|
|
22307
22312
|
}
|
|
@@ -22315,9 +22320,9 @@ var ey = { exports: {} };
|
|
|
22315
22320
|
$.key = $.key.toUpperCase().charCodeAt(0);
|
|
22316
22321
|
else
|
|
22317
22322
|
return null;
|
|
22318
|
-
return $.shortKey && ($[
|
|
22323
|
+
return $.shortKey && ($[Z] = $.shortKey, delete $.shortKey), $;
|
|
22319
22324
|
}
|
|
22320
|
-
n.default = z, n.SHORTKEY =
|
|
22325
|
+
n.default = z, n.SHORTKEY = Z;
|
|
22321
22326
|
},
|
|
22322
22327
|
/* 24 */
|
|
22323
22328
|
/***/
|
|
@@ -22811,8 +22816,8 @@ var ey = { exports: {} };
|
|
|
22811
22816
|
value: !0
|
|
22812
22817
|
});
|
|
22813
22818
|
var a = i(0), l = q(a), u = i(5), f = q(u), h = i(4), d = q(h), p = i(16), c = q(p), v = i(25), m = q(v), y = i(24), b = q(y), _ = i(35), w = q(_), T = i(6), x = q(T), A = i(22), I = q(A), S = i(7), O = q(S), L = i(55), R = q(L), C = i(42), P = q(C), M = i(23), F = q(M);
|
|
22814
|
-
function q(
|
|
22815
|
-
return
|
|
22819
|
+
function q(Z) {
|
|
22820
|
+
return Z && Z.__esModule ? Z : { default: Z };
|
|
22816
22821
|
}
|
|
22817
22822
|
f.default.register({
|
|
22818
22823
|
"blots/block": d.default,
|
|
@@ -23524,8 +23529,8 @@ var ey = { exports: {} };
|
|
|
23524
23529
|
} else {
|
|
23525
23530
|
if ("value" in $)
|
|
23526
23531
|
return $.value;
|
|
23527
|
-
var
|
|
23528
|
-
return
|
|
23532
|
+
var Q = $.get;
|
|
23533
|
+
return Q === void 0 ? void 0 : Q.call(X);
|
|
23529
23534
|
}
|
|
23530
23535
|
}, u = i(3), f = L(u), h = i(2), d = L(h), p = i(8), c = L(p), v = i(23), m = L(v), y = i(34), b = L(y), _ = i(59), w = L(_), T = i(60), x = L(T), A = i(28), I = L(A), S = i(61), O = L(S);
|
|
23531
23536
|
function L(j) {
|
|
@@ -23545,15 +23550,15 @@ var ey = { exports: {} };
|
|
|
23545
23550
|
throw new TypeError("Super expression must either be null or a function, not " + typeof G);
|
|
23546
23551
|
j.prototype = Object.create(G && G.prototype, { constructor: { value: j, enumerable: !1, writable: !0, configurable: !0 } }), G && (Object.setPrototypeOf ? Object.setPrototypeOf(j, G) : j.__proto__ = G);
|
|
23547
23552
|
}
|
|
23548
|
-
var M = [!1, "center", "right", "justify"], F = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], q = [!1, "serif", "monospace"],
|
|
23553
|
+
var M = [!1, "center", "right", "justify"], F = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], q = [!1, "serif", "monospace"], Z = ["1", "2", "3", !1], z = ["small", !1, "large", "huge"], rt = function(j) {
|
|
23549
23554
|
P(G, j);
|
|
23550
23555
|
function G(K, X) {
|
|
23551
23556
|
R(this, G);
|
|
23552
|
-
var $ = C(this, (G.__proto__ || Object.getPrototypeOf(G)).call(this, K, X)), V = function J
|
|
23557
|
+
var $ = C(this, (G.__proto__ || Object.getPrototypeOf(G)).call(this, K, X)), V = function Q(J) {
|
|
23553
23558
|
if (!document.body.contains(K.root))
|
|
23554
|
-
return document.body.removeEventListener("click",
|
|
23555
|
-
$.tooltip != null && !$.tooltip.root.contains(
|
|
23556
|
-
nt.container.contains(
|
|
23559
|
+
return document.body.removeEventListener("click", Q);
|
|
23560
|
+
$.tooltip != null && !$.tooltip.root.contains(J.target) && document.activeElement !== $.tooltip.textbox && !$.quill.hasFocus() && $.tooltip.hide(), $.pickers != null && $.pickers.forEach(function(nt) {
|
|
23561
|
+
nt.container.contains(J.target) || nt.close();
|
|
23557
23562
|
});
|
|
23558
23563
|
};
|
|
23559
23564
|
return K.emitter.listenDOM("click", document.body, V), $;
|
|
@@ -23568,16 +23573,16 @@ var ey = { exports: {} };
|
|
|
23568
23573
|
key: "buildButtons",
|
|
23569
23574
|
value: function(X, $) {
|
|
23570
23575
|
X.forEach(function(V) {
|
|
23571
|
-
var
|
|
23572
|
-
|
|
23573
|
-
if (
|
|
23574
|
-
if (
|
|
23575
|
-
V.innerHTML = $[
|
|
23576
|
-
else if (typeof $[
|
|
23577
|
-
V.innerHTML = $[
|
|
23576
|
+
var Q = V.getAttribute("class") || "";
|
|
23577
|
+
Q.split(/\s+/).forEach(function(J) {
|
|
23578
|
+
if (J.startsWith("ql-") && (J = J.slice(3), $[J] != null))
|
|
23579
|
+
if (J === "direction")
|
|
23580
|
+
V.innerHTML = $[J][""] + $[J].rtl;
|
|
23581
|
+
else if (typeof $[J] == "string")
|
|
23582
|
+
V.innerHTML = $[J];
|
|
23578
23583
|
else {
|
|
23579
23584
|
var nt = V.value || "";
|
|
23580
|
-
nt != null && $[
|
|
23585
|
+
nt != null && $[J][nt] && (V.innerHTML = $[J][nt]);
|
|
23581
23586
|
}
|
|
23582
23587
|
});
|
|
23583
23588
|
});
|
|
@@ -23586,21 +23591,21 @@ var ey = { exports: {} };
|
|
|
23586
23591
|
key: "buildPickers",
|
|
23587
23592
|
value: function(X, $) {
|
|
23588
23593
|
var V = this;
|
|
23589
|
-
this.pickers = X.map(function(
|
|
23590
|
-
if (
|
|
23591
|
-
return
|
|
23592
|
-
if (
|
|
23593
|
-
var nt =
|
|
23594
|
-
return
|
|
23594
|
+
this.pickers = X.map(function(J) {
|
|
23595
|
+
if (J.classList.contains("ql-align"))
|
|
23596
|
+
return J.querySelector("option") == null && k(J, M), new x.default(J, $.align);
|
|
23597
|
+
if (J.classList.contains("ql-background") || J.classList.contains("ql-color")) {
|
|
23598
|
+
var nt = J.classList.contains("ql-background") ? "background" : "color";
|
|
23599
|
+
return J.querySelector("option") == null && k(J, F, nt === "background" ? "#ffffff" : "#000000"), new w.default(J, $[nt]);
|
|
23595
23600
|
} else
|
|
23596
|
-
return
|
|
23601
|
+
return J.querySelector("option") == null && (J.classList.contains("ql-font") ? k(J, q) : J.classList.contains("ql-header") ? k(J, Z) : J.classList.contains("ql-size") && k(J, z)), new I.default(J);
|
|
23597
23602
|
});
|
|
23598
|
-
var
|
|
23603
|
+
var Q = function() {
|
|
23599
23604
|
V.pickers.forEach(function(nt) {
|
|
23600
23605
|
nt.update();
|
|
23601
23606
|
});
|
|
23602
23607
|
};
|
|
23603
|
-
this.quill.on(c.default.events.EDITOR_CHANGE,
|
|
23608
|
+
this.quill.on(c.default.events.EDITOR_CHANGE, Q);
|
|
23604
23609
|
}
|
|
23605
23610
|
}]), G;
|
|
23606
23611
|
}(b.default);
|
|
@@ -23679,8 +23684,8 @@ var ey = { exports: {} };
|
|
|
23679
23684
|
break;
|
|
23680
23685
|
var V = this.quill.getSelection(!0);
|
|
23681
23686
|
if (V != null) {
|
|
23682
|
-
var
|
|
23683
|
-
this.quill.insertEmbed(
|
|
23687
|
+
var Q = V.index + V.length;
|
|
23688
|
+
this.quill.insertEmbed(Q, this.root.getAttribute("data-mode"), X, c.default.sources.USER), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(Q + 1, " ", c.default.sources.USER), this.quill.setSelection(Q + 2, c.default.sources.USER);
|
|
23684
23689
|
}
|
|
23685
23690
|
break;
|
|
23686
23691
|
}
|
|
@@ -24127,8 +24132,8 @@ var ey = { exports: {} };
|
|
|
24127
24132
|
return [[i, x], [a, A]];
|
|
24128
24133
|
var R = v(x, A);
|
|
24129
24134
|
if (R) {
|
|
24130
|
-
var C = R[0], P = R[1], M = R[2], F = R[3], q = R[4],
|
|
24131
|
-
return
|
|
24135
|
+
var C = R[0], P = R[1], M = R[2], F = R[3], q = R[4], Z = u(C, M), z = u(P, F);
|
|
24136
|
+
return Z.concat([[l, q]], z);
|
|
24132
24137
|
}
|
|
24133
24138
|
return h(x, A);
|
|
24134
24139
|
}
|
|
@@ -24136,8 +24141,8 @@ var ey = { exports: {} };
|
|
|
24136
24141
|
for (var I = x.length, S = A.length, O = Math.ceil((I + S) / 2), L = O, R = 2 * O, C = new Array(R), P = new Array(R), M = 0; M < R; M++)
|
|
24137
24142
|
C[M] = -1, P[M] = -1;
|
|
24138
24143
|
C[L + 1] = 0, P[L + 1] = 0;
|
|
24139
|
-
for (var F = I - S, q = F % 2 != 0,
|
|
24140
|
-
for (var k = -D +
|
|
24144
|
+
for (var F = I - S, q = F % 2 != 0, Z = 0, z = 0, rt = 0, W = 0, D = 0; D < O; D++) {
|
|
24145
|
+
for (var k = -D + Z; k <= D - z; k += 2) {
|
|
24141
24146
|
var j = L + k, G;
|
|
24142
24147
|
k == -D || k != D && C[j - 1] < C[j + 1] ? G = C[j + 1] : G = C[j - 1] + 1;
|
|
24143
24148
|
for (var K = G - k; G < I && K < S && x.charAt(G) == A.charAt(K); )
|
|
@@ -24145,7 +24150,7 @@ var ey = { exports: {} };
|
|
|
24145
24150
|
if (C[j] = G, G > I)
|
|
24146
24151
|
z += 2;
|
|
24147
24152
|
else if (K > S)
|
|
24148
|
-
|
|
24153
|
+
Z += 2;
|
|
24149
24154
|
else if (q) {
|
|
24150
24155
|
var X = L + F - k;
|
|
24151
24156
|
if (X >= 0 && X < R && P[X] != -1) {
|
|
@@ -24158,11 +24163,11 @@ var ey = { exports: {} };
|
|
|
24158
24163
|
for (var V = -D + rt; V <= D - W; V += 2) {
|
|
24159
24164
|
var X = L + V, $;
|
|
24160
24165
|
V == -D || V != D && P[X - 1] < P[X + 1] ? $ = P[X + 1] : $ = P[X - 1] + 1;
|
|
24161
|
-
for (var
|
|
24162
|
-
$++,
|
|
24166
|
+
for (var Q = $ - V; $ < I && Q < S && x.charAt(I - $ - 1) == A.charAt(S - Q - 1); )
|
|
24167
|
+
$++, Q++;
|
|
24163
24168
|
if (P[X] = $, $ > I)
|
|
24164
24169
|
W += 2;
|
|
24165
|
-
else if (
|
|
24170
|
+
else if (Q > S)
|
|
24166
24171
|
rt += 2;
|
|
24167
24172
|
else if (!q) {
|
|
24168
24173
|
var j = L + F - V;
|
|
@@ -24203,11 +24208,11 @@ var ey = { exports: {} };
|
|
|
24203
24208
|
var V = p(
|
|
24204
24209
|
z.substring(W),
|
|
24205
24210
|
rt.substring(k)
|
|
24206
|
-
),
|
|
24211
|
+
), Q = c(
|
|
24207
24212
|
z.substring(0, W),
|
|
24208
24213
|
rt.substring(0, k)
|
|
24209
24214
|
);
|
|
24210
|
-
j.length <
|
|
24215
|
+
j.length < Q + V && (j = rt.substring(k - Q, k) + rt.substring(k, k + V), G = z.substring(0, W - Q), K = z.substring(W + V), X = rt.substring(0, k - Q), $ = rt.substring(k + V));
|
|
24211
24216
|
}
|
|
24212
24217
|
return j.length * 2 >= z.length ? [
|
|
24213
24218
|
G,
|
|
@@ -24231,8 +24236,8 @@ var ey = { exports: {} };
|
|
|
24231
24236
|
R ? L ? C = L[4].length > R[4].length ? L : R : C = R : C = L;
|
|
24232
24237
|
var P, M, F, q;
|
|
24233
24238
|
x.length > A.length ? (P = C[0], M = C[1], F = C[2], q = C[3]) : (F = C[0], q = C[1], P = C[2], M = C[3]);
|
|
24234
|
-
var
|
|
24235
|
-
return [P, M, F, q,
|
|
24239
|
+
var Z = C[4];
|
|
24240
|
+
return [P, M, F, q, Z];
|
|
24236
24241
|
}
|
|
24237
24242
|
function m(x) {
|
|
24238
24243
|
x.push([l, ""]);
|
|
@@ -24471,10 +24476,10 @@ var ey = { exports: {} };
|
|
|
24471
24476
|
} : function(st) {
|
|
24472
24477
|
return st && typeof Symbol == "function" && st.constructor === Symbol && st !== Symbol.prototype ? "symbol" : typeof st;
|
|
24473
24478
|
}, l = function() {
|
|
24474
|
-
function st(lt,
|
|
24475
|
-
var
|
|
24479
|
+
function st(lt, vt) {
|
|
24480
|
+
var gt = [], ct = !0, It = !1, kt = void 0;
|
|
24476
24481
|
try {
|
|
24477
|
-
for (var Pt = lt[Symbol.iterator](), qe; !(ct = (qe = Pt.next()).done) && (
|
|
24482
|
+
for (var Pt = lt[Symbol.iterator](), qe; !(ct = (qe = Pt.next()).done) && (gt.push(qe.value), !(vt && gt.length === vt)); ct = !0)
|
|
24478
24483
|
;
|
|
24479
24484
|
} catch (Be) {
|
|
24480
24485
|
It = !0, kt = Be;
|
|
@@ -24486,31 +24491,31 @@ var ey = { exports: {} };
|
|
|
24486
24491
|
throw kt;
|
|
24487
24492
|
}
|
|
24488
24493
|
}
|
|
24489
|
-
return
|
|
24494
|
+
return gt;
|
|
24490
24495
|
}
|
|
24491
|
-
return function(lt,
|
|
24496
|
+
return function(lt, vt) {
|
|
24492
24497
|
if (Array.isArray(lt))
|
|
24493
24498
|
return lt;
|
|
24494
24499
|
if (Symbol.iterator in Object(lt))
|
|
24495
|
-
return st(lt,
|
|
24500
|
+
return st(lt, vt);
|
|
24496
24501
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
24497
24502
|
};
|
|
24498
24503
|
}(), u = function() {
|
|
24499
|
-
function st(lt,
|
|
24500
|
-
for (var
|
|
24501
|
-
var ct =
|
|
24504
|
+
function st(lt, vt) {
|
|
24505
|
+
for (var gt = 0; gt < vt.length; gt++) {
|
|
24506
|
+
var ct = vt[gt];
|
|
24502
24507
|
ct.enumerable = ct.enumerable || !1, ct.configurable = !0, "value" in ct && (ct.writable = !0), Object.defineProperty(lt, ct.key, ct);
|
|
24503
24508
|
}
|
|
24504
24509
|
}
|
|
24505
|
-
return function(lt,
|
|
24506
|
-
return
|
|
24510
|
+
return function(lt, vt, gt) {
|
|
24511
|
+
return vt && st(lt.prototype, vt), gt && st(lt, gt), lt;
|
|
24507
24512
|
};
|
|
24508
24513
|
}(), f = i(3), h = P(f), d = i(2), p = P(d), c = i(0), v = P(c), m = i(5), y = P(m), b = i(10), _ = P(b), w = i(9), T = P(w), x = i(36), A = i(37), I = i(13), S = P(I), O = i(26), L = i(38), R = i(39), C = i(40);
|
|
24509
24514
|
function P(st) {
|
|
24510
24515
|
return st && st.__esModule ? st : { default: st };
|
|
24511
24516
|
}
|
|
24512
|
-
function M(st, lt,
|
|
24513
|
-
return lt in st ? Object.defineProperty(st, lt, { value:
|
|
24517
|
+
function M(st, lt, vt) {
|
|
24518
|
+
return lt in st ? Object.defineProperty(st, lt, { value: vt, enumerable: !0, configurable: !0, writable: !0 }) : st[lt] = vt, st;
|
|
24514
24519
|
}
|
|
24515
24520
|
function F(st, lt) {
|
|
24516
24521
|
if (!(st instanceof lt))
|
|
@@ -24521,35 +24526,35 @@ var ey = { exports: {} };
|
|
|
24521
24526
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24522
24527
|
return lt && (typeof lt == "object" || typeof lt == "function") ? lt : st;
|
|
24523
24528
|
}
|
|
24524
|
-
function
|
|
24529
|
+
function Z(st, lt) {
|
|
24525
24530
|
if (typeof lt != "function" && lt !== null)
|
|
24526
24531
|
throw new TypeError("Super expression must either be null or a function, not " + typeof lt);
|
|
24527
24532
|
st.prototype = Object.create(lt && lt.prototype, { constructor: { value: st, enumerable: !1, writable: !0, configurable: !0 } }), lt && (Object.setPrototypeOf ? Object.setPrototypeOf(st, lt) : st.__proto__ = lt);
|
|
24528
24533
|
}
|
|
24529
|
-
var z = (0, _.default)("quill:clipboard"), rt = "__ql-matcher", W = [[Node.TEXT_NODE,
|
|
24534
|
+
var z = (0, _.default)("quill:clipboard"), rt = "__ql-matcher", W = [[Node.TEXT_NODE, zt], [Node.TEXT_NODE, bt], ["br", ot], [Node.ELEMENT_NODE, bt], [Node.ELEMENT_NODE, nt], [Node.ELEMENT_NODE, Tt], [Node.ELEMENT_NODE, J], [Node.ELEMENT_NODE, le], ["li", pt], ["b", Q.bind(Q, "bold")], ["i", Q.bind(Q, "italic")], ["style", dt]], D = [x.AlignAttribute, L.DirectionAttribute].reduce(function(st, lt) {
|
|
24530
24535
|
return st[lt.keyName] = lt, st;
|
|
24531
24536
|
}, {}), k = [x.AlignStyle, A.BackgroundStyle, O.ColorStyle, L.DirectionStyle, R.FontStyle, C.SizeStyle].reduce(function(st, lt) {
|
|
24532
24537
|
return st[lt.keyName] = lt, st;
|
|
24533
24538
|
}, {}), j = function(st) {
|
|
24534
|
-
|
|
24535
|
-
function lt(
|
|
24539
|
+
Z(lt, st);
|
|
24540
|
+
function lt(vt, gt) {
|
|
24536
24541
|
F(this, lt);
|
|
24537
|
-
var ct = q(this, (lt.__proto__ || Object.getPrototypeOf(lt)).call(this,
|
|
24542
|
+
var ct = q(this, (lt.__proto__ || Object.getPrototypeOf(lt)).call(this, vt, gt));
|
|
24538
24543
|
return ct.quill.root.addEventListener("paste", ct.onPaste.bind(ct)), ct.container = ct.quill.addContainer("ql-clipboard"), ct.container.setAttribute("contenteditable", !0), ct.container.setAttribute("tabindex", -1), ct.matchers = [], W.concat(ct.options.matchers).forEach(function(It) {
|
|
24539
24544
|
var kt = l(It, 2), Pt = kt[0], qe = kt[1];
|
|
24540
|
-
!
|
|
24545
|
+
!gt.matchVisual && qe === Tt || ct.addMatcher(Pt, qe);
|
|
24541
24546
|
}), ct;
|
|
24542
24547
|
}
|
|
24543
24548
|
return u(lt, [{
|
|
24544
24549
|
key: "addMatcher",
|
|
24545
|
-
value: function(
|
|
24546
|
-
this.matchers.push([
|
|
24550
|
+
value: function(gt, ct) {
|
|
24551
|
+
this.matchers.push([gt, ct]);
|
|
24547
24552
|
}
|
|
24548
24553
|
}, {
|
|
24549
24554
|
key: "convert",
|
|
24550
|
-
value: function(
|
|
24551
|
-
if (typeof
|
|
24552
|
-
return this.container.innerHTML =
|
|
24555
|
+
value: function(gt) {
|
|
24556
|
+
if (typeof gt == "string")
|
|
24557
|
+
return this.container.innerHTML = gt.replace(/\>\r?\n +\</g, "><"), this.convert();
|
|
24553
24558
|
var ct = this.quill.getFormat(this.quill.selection.savedRange.index);
|
|
24554
24559
|
if (ct[S.default.blotName]) {
|
|
24555
24560
|
var It = this.container.innerText;
|
|
@@ -24561,20 +24566,20 @@ var ey = { exports: {} };
|
|
|
24561
24566
|
}
|
|
24562
24567
|
}, {
|
|
24563
24568
|
key: "dangerouslyPasteHTML",
|
|
24564
|
-
value: function(
|
|
24569
|
+
value: function(gt, ct) {
|
|
24565
24570
|
var It = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y.default.sources.API;
|
|
24566
|
-
if (typeof
|
|
24567
|
-
this.quill.setContents(this.convert(
|
|
24571
|
+
if (typeof gt == "string")
|
|
24572
|
+
this.quill.setContents(this.convert(gt), ct), this.quill.setSelection(0, y.default.sources.SILENT);
|
|
24568
24573
|
else {
|
|
24569
24574
|
var kt = this.convert(ct);
|
|
24570
|
-
this.quill.updateContents(new p.default().retain(
|
|
24575
|
+
this.quill.updateContents(new p.default().retain(gt).concat(kt), It), this.quill.setSelection(gt + kt.length(), y.default.sources.SILENT);
|
|
24571
24576
|
}
|
|
24572
24577
|
}
|
|
24573
24578
|
}, {
|
|
24574
24579
|
key: "onPaste",
|
|
24575
|
-
value: function(
|
|
24580
|
+
value: function(gt) {
|
|
24576
24581
|
var ct = this;
|
|
24577
|
-
if (!(
|
|
24582
|
+
if (!(gt.defaultPrevented || !this.quill.isEnabled())) {
|
|
24578
24583
|
var It = this.quill.getSelection(), kt = new p.default().retain(It.index), Pt = this.quill.scrollingContainer.scrollTop;
|
|
24579
24584
|
this.container.focus(), this.quill.selection.update(y.default.sources.SILENT), setTimeout(function() {
|
|
24580
24585
|
kt = kt.concat(ct.convert()).delete(It.length), ct.quill.updateContents(kt, y.default.sources.USER), ct.quill.setSelection(kt.length() - It.length, y.default.sources.SILENT), ct.quill.scrollingContainer.scrollTop = Pt, ct.quill.focus();
|
|
@@ -24584,7 +24589,7 @@ var ey = { exports: {} };
|
|
|
24584
24589
|
}, {
|
|
24585
24590
|
key: "prepareMatching",
|
|
24586
24591
|
value: function() {
|
|
24587
|
-
var
|
|
24592
|
+
var gt = this, ct = [], It = [];
|
|
24588
24593
|
return this.matchers.forEach(function(kt) {
|
|
24589
24594
|
var Pt = l(kt, 2), qe = Pt[0], Be = Pt[1];
|
|
24590
24595
|
switch (qe) {
|
|
@@ -24595,7 +24600,7 @@ var ey = { exports: {} };
|
|
|
24595
24600
|
ct.push(Be);
|
|
24596
24601
|
break;
|
|
24597
24602
|
default:
|
|
24598
|
-
[].forEach.call(
|
|
24603
|
+
[].forEach.call(gt.container.querySelectorAll(qe), function(Yt) {
|
|
24599
24604
|
Yt[rt] = Yt[rt] || [], Yt[rt].push(Be);
|
|
24600
24605
|
});
|
|
24601
24606
|
break;
|
|
@@ -24608,11 +24613,11 @@ var ey = { exports: {} };
|
|
|
24608
24613
|
matchers: [],
|
|
24609
24614
|
matchVisual: !0
|
|
24610
24615
|
};
|
|
24611
|
-
function G(st, lt,
|
|
24612
|
-
return (typeof lt > "u" ? "undefined" : a(lt)) === "object" ? Object.keys(lt).reduce(function(
|
|
24613
|
-
return G(
|
|
24614
|
-
}, st) : st.reduce(function(
|
|
24615
|
-
return ct.attributes && ct.attributes[lt] ?
|
|
24616
|
+
function G(st, lt, vt) {
|
|
24617
|
+
return (typeof lt > "u" ? "undefined" : a(lt)) === "object" ? Object.keys(lt).reduce(function(gt, ct) {
|
|
24618
|
+
return G(gt, ct, lt[ct]);
|
|
24619
|
+
}, st) : st.reduce(function(gt, ct) {
|
|
24620
|
+
return ct.attributes && ct.attributes[lt] ? gt.push(ct) : gt.insert(ct.insert, (0, h.default)({}, M({}, lt, vt), ct.attributes));
|
|
24616
24621
|
}, new p.default());
|
|
24617
24622
|
}
|
|
24618
24623
|
function K(st) {
|
|
@@ -24622,13 +24627,13 @@ var ey = { exports: {} };
|
|
|
24622
24627
|
return st[lt] || (st[lt] = window.getComputedStyle(st));
|
|
24623
24628
|
}
|
|
24624
24629
|
function X(st, lt) {
|
|
24625
|
-
for (var
|
|
24626
|
-
var ct = st.ops[
|
|
24630
|
+
for (var vt = "", gt = st.ops.length - 1; gt >= 0 && vt.length < lt.length; --gt) {
|
|
24631
|
+
var ct = st.ops[gt];
|
|
24627
24632
|
if (typeof ct.insert != "string")
|
|
24628
24633
|
break;
|
|
24629
|
-
|
|
24634
|
+
vt = ct.insert + vt;
|
|
24630
24635
|
}
|
|
24631
|
-
return
|
|
24636
|
+
return vt.slice(-1 * lt.length) === lt;
|
|
24632
24637
|
}
|
|
24633
24638
|
function $(st) {
|
|
24634
24639
|
if (st.childNodes.length === 0)
|
|
@@ -24636,37 +24641,37 @@ var ey = { exports: {} };
|
|
|
24636
24641
|
var lt = K(st);
|
|
24637
24642
|
return ["block", "list-item"].indexOf(lt.display) > -1;
|
|
24638
24643
|
}
|
|
24639
|
-
function V(st, lt,
|
|
24640
|
-
return st.nodeType === st.TEXT_NODE ?
|
|
24641
|
-
return ct(st,
|
|
24642
|
-
}, new p.default()) : st.nodeType === st.ELEMENT_NODE ? [].reduce.call(st.childNodes || [], function(
|
|
24643
|
-
var It = V(ct, lt,
|
|
24644
|
+
function V(st, lt, vt) {
|
|
24645
|
+
return st.nodeType === st.TEXT_NODE ? vt.reduce(function(gt, ct) {
|
|
24646
|
+
return ct(st, gt);
|
|
24647
|
+
}, new p.default()) : st.nodeType === st.ELEMENT_NODE ? [].reduce.call(st.childNodes || [], function(gt, ct) {
|
|
24648
|
+
var It = V(ct, lt, vt);
|
|
24644
24649
|
return ct.nodeType === st.ELEMENT_NODE && (It = lt.reduce(function(kt, Pt) {
|
|
24645
24650
|
return Pt(ct, kt);
|
|
24646
24651
|
}, It), It = (ct[rt] || []).reduce(function(kt, Pt) {
|
|
24647
24652
|
return Pt(ct, kt);
|
|
24648
|
-
}, It)),
|
|
24653
|
+
}, It)), gt.concat(It);
|
|
24649
24654
|
}, new p.default()) : new p.default();
|
|
24650
24655
|
}
|
|
24651
|
-
function
|
|
24652
|
-
return G(
|
|
24656
|
+
function Q(st, lt, vt) {
|
|
24657
|
+
return G(vt, st, !0);
|
|
24653
24658
|
}
|
|
24654
|
-
function
|
|
24655
|
-
var
|
|
24656
|
-
return
|
|
24659
|
+
function J(st, lt) {
|
|
24660
|
+
var vt = v.default.Attributor.Attribute.keys(st), gt = v.default.Attributor.Class.keys(st), ct = v.default.Attributor.Style.keys(st), It = {};
|
|
24661
|
+
return vt.concat(gt).concat(ct).forEach(function(kt) {
|
|
24657
24662
|
var Pt = v.default.query(kt, v.default.Scope.ATTRIBUTE);
|
|
24658
24663
|
Pt != null && (It[Pt.attrName] = Pt.value(st), It[Pt.attrName]) || (Pt = D[kt], Pt != null && (Pt.attrName === kt || Pt.keyName === kt) && (It[Pt.attrName] = Pt.value(st) || void 0), Pt = k[kt], Pt != null && (Pt.attrName === kt || Pt.keyName === kt) && (Pt = k[kt], It[Pt.attrName] = Pt.value(st) || void 0));
|
|
24659
24664
|
}), Object.keys(It).length > 0 && (lt = G(lt, It)), lt;
|
|
24660
24665
|
}
|
|
24661
24666
|
function nt(st, lt) {
|
|
24662
|
-
var
|
|
24663
|
-
if (
|
|
24667
|
+
var vt = v.default.query(st);
|
|
24668
|
+
if (vt == null)
|
|
24664
24669
|
return lt;
|
|
24665
|
-
if (
|
|
24666
|
-
var
|
|
24667
|
-
ct != null && (vt
|
|
24670
|
+
if (vt.prototype instanceof v.default.Embed) {
|
|
24671
|
+
var gt = {}, ct = vt.value(st);
|
|
24672
|
+
ct != null && (gt[vt.blotName] = ct, lt = new p.default().insert(gt, vt.formats(st)));
|
|
24668
24673
|
} else
|
|
24669
|
-
typeof
|
|
24674
|
+
typeof vt.formats == "function" && (lt = G(lt, vt.blotName, vt.formats(st)));
|
|
24670
24675
|
return lt;
|
|
24671
24676
|
}
|
|
24672
24677
|
function ot(st, lt) {
|
|
@@ -24677,14 +24682,14 @@ var ey = { exports: {} };
|
|
|
24677
24682
|
function dt() {
|
|
24678
24683
|
return new p.default();
|
|
24679
24684
|
}
|
|
24680
|
-
function
|
|
24681
|
-
var
|
|
24682
|
-
if (
|
|
24685
|
+
function pt(st, lt) {
|
|
24686
|
+
var vt = v.default.query(st);
|
|
24687
|
+
if (vt == null || vt.blotName !== "list-item" || !X(lt, `
|
|
24683
24688
|
`))
|
|
24684
24689
|
return lt;
|
|
24685
|
-
for (var
|
|
24686
|
-
(v.default.query(ct) || {}).blotName === "list" && (
|
|
24687
|
-
return
|
|
24690
|
+
for (var gt = -1, ct = st.parentNode; !ct.classList.contains("ql-clipboard"); )
|
|
24691
|
+
(v.default.query(ct) || {}).blotName === "list" && (gt += 1), ct = ct.parentNode;
|
|
24692
|
+
return gt <= 0 ? lt : lt.compose(new p.default().retain(lt.length() - 1).retain(1, { indent: gt }));
|
|
24688
24693
|
}
|
|
24689
24694
|
function bt(st, lt) {
|
|
24690
24695
|
return X(lt, `
|
|
@@ -24695,31 +24700,31 @@ var ey = { exports: {} };
|
|
|
24695
24700
|
if ($(st) && st.nextElementSibling != null && !X(lt, `
|
|
24696
24701
|
|
|
24697
24702
|
`)) {
|
|
24698
|
-
var
|
|
24699
|
-
st.nextElementSibling.offsetTop > st.offsetTop +
|
|
24703
|
+
var vt = st.offsetHeight + parseFloat(K(st).marginTop) + parseFloat(K(st).marginBottom);
|
|
24704
|
+
st.nextElementSibling.offsetTop > st.offsetTop + vt * 1.5 && lt.insert(`
|
|
24700
24705
|
`);
|
|
24701
24706
|
}
|
|
24702
24707
|
return lt;
|
|
24703
24708
|
}
|
|
24704
24709
|
function le(st, lt) {
|
|
24705
|
-
var
|
|
24706
|
-
return
|
|
24710
|
+
var vt = {}, gt = st.style || {};
|
|
24711
|
+
return gt.fontStyle && K(st).fontStyle === "italic" && (vt.italic = !0), gt.fontWeight && (K(st).fontWeight.startsWith("bold") || parseInt(K(st).fontWeight) >= 700) && (vt.bold = !0), Object.keys(vt).length > 0 && (lt = G(lt, vt)), parseFloat(gt.textIndent || 0) > 0 && (lt = new p.default().insert(" ").concat(lt)), lt;
|
|
24707
24712
|
}
|
|
24708
|
-
function
|
|
24709
|
-
var
|
|
24713
|
+
function zt(st, lt) {
|
|
24714
|
+
var vt = st.data;
|
|
24710
24715
|
if (st.parentNode.tagName === "O:P")
|
|
24711
|
-
return lt.insert(
|
|
24712
|
-
if (
|
|
24716
|
+
return lt.insert(vt.trim());
|
|
24717
|
+
if (vt.trim().length === 0 && st.parentNode.classList.contains("ql-clipboard"))
|
|
24713
24718
|
return lt;
|
|
24714
24719
|
if (!K(st.parentNode).whiteSpace.startsWith("pre")) {
|
|
24715
|
-
var
|
|
24720
|
+
var gt = function(It, kt) {
|
|
24716
24721
|
return kt = kt.replace(/[^\u00a0]/g, ""), kt.length < 1 && It ? " " : kt;
|
|
24717
24722
|
};
|
|
24718
|
-
|
|
24723
|
+
vt = vt.replace(/\r\n/g, " ").replace(/\n/g, " "), vt = vt.replace(/\s\s+/g, gt.bind(gt, !0)), (st.previousSibling == null && $(st.parentNode) || st.previousSibling != null && $(st.previousSibling)) && (vt = vt.replace(/^\s+/, gt.bind(gt, !1))), (st.nextSibling == null && $(st.parentNode) || st.nextSibling != null && $(st.nextSibling)) && (vt = vt.replace(/\s+$/, gt.bind(gt, !1)));
|
|
24719
24724
|
}
|
|
24720
|
-
return lt.insert(
|
|
24725
|
+
return lt.insert(vt);
|
|
24721
24726
|
}
|
|
24722
|
-
n.default = j, n.matchAttributor =
|
|
24727
|
+
n.default = j, n.matchAttributor = J, n.matchBlot = nt, n.matchNewline = bt, n.matchSpacing = Tt, n.matchText = zt;
|
|
24723
24728
|
},
|
|
24724
24729
|
/* 56 */
|
|
24725
24730
|
/***/
|
|
@@ -24799,17 +24804,17 @@ var ey = { exports: {} };
|
|
|
24799
24804
|
}), n.addControls = n.default = void 0;
|
|
24800
24805
|
var a = function() {
|
|
24801
24806
|
function C(P, M) {
|
|
24802
|
-
var F = [], q = !0,
|
|
24807
|
+
var F = [], q = !0, Z = !1, z = void 0;
|
|
24803
24808
|
try {
|
|
24804
24809
|
for (var rt = P[Symbol.iterator](), W; !(q = (W = rt.next()).done) && (F.push(W.value), !(M && F.length === M)); q = !0)
|
|
24805
24810
|
;
|
|
24806
24811
|
} catch (D) {
|
|
24807
|
-
|
|
24812
|
+
Z = !0, z = D;
|
|
24808
24813
|
} finally {
|
|
24809
24814
|
try {
|
|
24810
24815
|
!q && rt.return && rt.return();
|
|
24811
24816
|
} finally {
|
|
24812
|
-
if (
|
|
24817
|
+
if (Z)
|
|
24813
24818
|
throw z;
|
|
24814
24819
|
}
|
|
24815
24820
|
}
|
|
@@ -24859,8 +24864,8 @@ var ey = { exports: {} };
|
|
|
24859
24864
|
T(this, P);
|
|
24860
24865
|
var q = x(this, (P.__proto__ || Object.getPrototypeOf(P)).call(this, M, F));
|
|
24861
24866
|
if (Array.isArray(q.options.container)) {
|
|
24862
|
-
var
|
|
24863
|
-
L(
|
|
24867
|
+
var Z = document.createElement("div");
|
|
24868
|
+
L(Z, q.options.container), M.container.parentNode.insertBefore(Z, M.container), q.container = Z;
|
|
24864
24869
|
} else
|
|
24865
24870
|
typeof q.options.container == "string" ? q.container = document.querySelector(q.options.container) : q.container = q.options.container;
|
|
24866
24871
|
if (!(q.container instanceof HTMLElement)) {
|
|
@@ -24886,17 +24891,17 @@ var ey = { exports: {} };
|
|
|
24886
24891
|
}, {
|
|
24887
24892
|
key: "attach",
|
|
24888
24893
|
value: function(F) {
|
|
24889
|
-
var q = this,
|
|
24894
|
+
var q = this, Z = [].find.call(F.classList, function(rt) {
|
|
24890
24895
|
return rt.indexOf("ql-") === 0;
|
|
24891
24896
|
});
|
|
24892
|
-
if (
|
|
24893
|
-
if (
|
|
24894
|
-
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[
|
|
24895
|
-
I.warn("ignoring attaching to disabled format",
|
|
24897
|
+
if (Z) {
|
|
24898
|
+
if (Z = Z.slice(3), F.tagName === "BUTTON" && F.setAttribute("type", "button"), this.handlers[Z] == null) {
|
|
24899
|
+
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[Z] == null) {
|
|
24900
|
+
I.warn("ignoring attaching to disabled format", Z, F);
|
|
24896
24901
|
return;
|
|
24897
24902
|
}
|
|
24898
|
-
if (d.default.query(
|
|
24899
|
-
I.warn("ignoring attaching to nonexistent format",
|
|
24903
|
+
if (d.default.query(Z) == null) {
|
|
24904
|
+
I.warn("ignoring attaching to nonexistent format", Z, F);
|
|
24900
24905
|
return;
|
|
24901
24906
|
}
|
|
24902
24907
|
}
|
|
@@ -24912,24 +24917,24 @@ var ey = { exports: {} };
|
|
|
24912
24917
|
F.classList.contains("ql-active") ? W = !1 : W = F.value || !F.hasAttribute("value"), rt.preventDefault();
|
|
24913
24918
|
q.quill.focus();
|
|
24914
24919
|
var k = q.quill.selection.getRange(), j = a(k, 1), G = j[0];
|
|
24915
|
-
if (q.handlers[
|
|
24916
|
-
q.handlers[
|
|
24917
|
-
else if (d.default.query(
|
|
24918
|
-
if (W = prompt("Enter " +
|
|
24920
|
+
if (q.handlers[Z] != null)
|
|
24921
|
+
q.handlers[Z].call(q, W);
|
|
24922
|
+
else if (d.default.query(Z).prototype instanceof d.default.Embed) {
|
|
24923
|
+
if (W = prompt("Enter " + Z), !W)
|
|
24919
24924
|
return;
|
|
24920
|
-
q.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert(w({},
|
|
24925
|
+
q.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert(w({}, Z, W)), c.default.sources.USER);
|
|
24921
24926
|
} else
|
|
24922
|
-
q.quill.format(
|
|
24927
|
+
q.quill.format(Z, W, c.default.sources.USER);
|
|
24923
24928
|
q.update(G);
|
|
24924
|
-
}), this.controls.push([
|
|
24929
|
+
}), this.controls.push([Z, F]);
|
|
24925
24930
|
}
|
|
24926
24931
|
}
|
|
24927
24932
|
}, {
|
|
24928
24933
|
key: "update",
|
|
24929
24934
|
value: function(F) {
|
|
24930
24935
|
var q = F == null ? {} : this.quill.getFormat(F);
|
|
24931
|
-
this.controls.forEach(function(
|
|
24932
|
-
var z = a(
|
|
24936
|
+
this.controls.forEach(function(Z) {
|
|
24937
|
+
var z = a(Z, 2), rt = z[0], W = z[1];
|
|
24933
24938
|
if (W.tagName === "SELECT") {
|
|
24934
24939
|
var D = void 0;
|
|
24935
24940
|
if (F == null)
|
|
@@ -24964,8 +24969,8 @@ var ey = { exports: {} };
|
|
|
24964
24969
|
if (typeof q == "string")
|
|
24965
24970
|
O(F, q);
|
|
24966
24971
|
else {
|
|
24967
|
-
var
|
|
24968
|
-
Array.isArray(z) ? R(F,
|
|
24972
|
+
var Z = Object.keys(q)[0], z = q[Z];
|
|
24973
|
+
Array.isArray(z) ? R(F, Z, z) : O(F, Z, z);
|
|
24969
24974
|
}
|
|
24970
24975
|
}), C.appendChild(F);
|
|
24971
24976
|
});
|
|
@@ -24973,8 +24978,8 @@ var ey = { exports: {} };
|
|
|
24973
24978
|
function R(C, P, M) {
|
|
24974
24979
|
var F = document.createElement("select");
|
|
24975
24980
|
F.classList.add("ql-" + P), M.forEach(function(q) {
|
|
24976
|
-
var
|
|
24977
|
-
q !== !1 ?
|
|
24981
|
+
var Z = document.createElement("option");
|
|
24982
|
+
q !== !1 ? Z.setAttribute("value", q) : Z.setAttribute("selected", "selected"), F.appendChild(Z);
|
|
24978
24983
|
}), C.appendChild(F);
|
|
24979
24984
|
}
|
|
24980
24985
|
S.DEFAULTS = {
|
|
@@ -24998,8 +25003,8 @@ var ey = { exports: {} };
|
|
|
24998
25003
|
indent: function(P) {
|
|
24999
25004
|
var M = this.quill.getSelection(), F = this.quill.getFormat(M), q = parseInt(F.indent || 0);
|
|
25000
25005
|
if (P === "+1" || P === "-1") {
|
|
25001
|
-
var
|
|
25002
|
-
F.direction === "rtl" && (
|
|
25006
|
+
var Z = P === "+1" ? 1 : -1;
|
|
25007
|
+
F.direction === "rtl" && (Z *= -1), this.quill.format("indent", q + Z, c.default.sources.USER);
|
|
25003
25008
|
}
|
|
25004
25009
|
},
|
|
25005
25010
|
link: function(P) {
|
|
@@ -25215,18 +25220,18 @@ var ey = { exports: {} };
|
|
|
25215
25220
|
});
|
|
25216
25221
|
var a = function() {
|
|
25217
25222
|
function R(C, P) {
|
|
25218
|
-
var M = [], F = !0, q = !1,
|
|
25223
|
+
var M = [], F = !0, q = !1, Z = void 0;
|
|
25219
25224
|
try {
|
|
25220
25225
|
for (var z = C[Symbol.iterator](), rt; !(F = (rt = z.next()).done) && (M.push(rt.value), !(P && M.length === P)); F = !0)
|
|
25221
25226
|
;
|
|
25222
25227
|
} catch (W) {
|
|
25223
|
-
q = !0,
|
|
25228
|
+
q = !0, Z = W;
|
|
25224
25229
|
} finally {
|
|
25225
25230
|
try {
|
|
25226
25231
|
!F && z.return && z.return();
|
|
25227
25232
|
} finally {
|
|
25228
25233
|
if (q)
|
|
25229
|
-
throw
|
|
25234
|
+
throw Z;
|
|
25230
25235
|
}
|
|
25231
25236
|
}
|
|
25232
25237
|
return M;
|
|
@@ -25247,8 +25252,8 @@ var ey = { exports: {} };
|
|
|
25247
25252
|
} else {
|
|
25248
25253
|
if ("value" in F)
|
|
25249
25254
|
return F.value;
|
|
25250
|
-
var
|
|
25251
|
-
return
|
|
25255
|
+
var Z = F.get;
|
|
25256
|
+
return Z === void 0 ? void 0 : Z.call(M);
|
|
25252
25257
|
}
|
|
25253
25258
|
}, u = function() {
|
|
25254
25259
|
function R(C, P) {
|
|
@@ -25333,9 +25338,9 @@ var ey = { exports: {} };
|
|
|
25333
25338
|
M.restoreFocus(), M.quill.formatText(q, "link", !1, p.default.sources.USER), delete M.linkRange;
|
|
25334
25339
|
}
|
|
25335
25340
|
F.preventDefault(), M.hide();
|
|
25336
|
-
}), this.quill.on(p.default.events.SELECTION_CHANGE, function(F, q,
|
|
25341
|
+
}), this.quill.on(p.default.events.SELECTION_CHANGE, function(F, q, Z) {
|
|
25337
25342
|
if (F != null) {
|
|
25338
|
-
if (F.length === 0 &&
|
|
25343
|
+
if (F.length === 0 && Z === p.default.sources.USER) {
|
|
25339
25344
|
var z = M.quill.scroll.descendant(y.default, F.index), rt = a(z, 2), W = rt[0], D = rt[1];
|
|
25340
25345
|
if (W != null) {
|
|
25341
25346
|
M.linkRange = new b.Range(F.index - D, W.length());
|
|
@@ -25364,7 +25369,7 @@ var ey = { exports: {} };
|
|
|
25364
25369
|
Object.defineProperty(n, "__esModule", {
|
|
25365
25370
|
value: !0
|
|
25366
25371
|
});
|
|
25367
|
-
var a = i(29), l = ct(a), u = i(36), f = i(38), h = i(64), d = i(65), p = ct(d), c = i(66), v = ct(c), m = i(67), y = ct(m), b = i(37), _ = i(26), w = i(39), T = i(40), x = i(56), A = ct(x), I = i(68), S = ct(I), O = i(27), L = ct(O), R = i(69), C = ct(R), P = i(70), M = ct(P), F = i(71), q = ct(F),
|
|
25372
|
+
var a = i(29), l = ct(a), u = i(36), f = i(38), h = i(64), d = i(65), p = ct(d), c = i(66), v = ct(c), m = i(67), y = ct(m), b = i(37), _ = i(26), w = i(39), T = i(40), x = i(56), A = ct(x), I = i(68), S = ct(I), O = i(27), L = ct(O), R = i(69), C = ct(R), P = i(70), M = ct(P), F = i(71), q = ct(F), Z = i(72), z = ct(Z), rt = i(73), W = ct(rt), D = i(13), k = ct(D), j = i(74), G = ct(j), K = i(75), X = ct(K), $ = i(57), V = ct($), Q = i(41), J = ct(Q), nt = i(28), ot = ct(nt), dt = i(59), pt = ct(dt), bt = i(60), Tt = ct(bt), le = i(61), zt = ct(le), st = i(108), lt = ct(st), vt = i(62), gt = ct(vt);
|
|
25368
25373
|
function ct(It) {
|
|
25369
25374
|
return It && It.__esModule ? It : { default: It };
|
|
25370
25375
|
}
|
|
@@ -25408,12 +25413,12 @@ var ey = { exports: {} };
|
|
|
25408
25413
|
"modules/syntax": X.default,
|
|
25409
25414
|
"modules/toolbar": V.default,
|
|
25410
25415
|
"themes/bubble": lt.default,
|
|
25411
|
-
"themes/snow":
|
|
25412
|
-
"ui/icons":
|
|
25416
|
+
"themes/snow": gt.default,
|
|
25417
|
+
"ui/icons": J.default,
|
|
25413
25418
|
"ui/picker": ot.default,
|
|
25414
25419
|
"ui/icon-picker": Tt.default,
|
|
25415
|
-
"ui/color-picker":
|
|
25416
|
-
"ui/tooltip":
|
|
25420
|
+
"ui/color-picker": pt.default,
|
|
25421
|
+
"ui/tooltip": zt.default
|
|
25417
25422
|
}, !0), n.default = l.default;
|
|
25418
25423
|
},
|
|
25419
25424
|
/* 64 */
|
|
@@ -26491,11 +26496,11 @@ var ey = { exports: {} };
|
|
|
26491
26496
|
if (P === d.default.events.SELECTION_CHANGE)
|
|
26492
26497
|
if (M != null && M.length > 0 && q === d.default.sources.USER) {
|
|
26493
26498
|
C.show(), C.root.style.left = "0px", C.root.style.width = "", C.root.style.width = C.root.offsetWidth + "px";
|
|
26494
|
-
var
|
|
26495
|
-
if (
|
|
26499
|
+
var Z = C.quill.getLines(M.index, M.length);
|
|
26500
|
+
if (Z.length === 1)
|
|
26496
26501
|
C.position(C.quill.getBounds(M));
|
|
26497
26502
|
else {
|
|
26498
|
-
var z =
|
|
26503
|
+
var z = Z[Z.length - 1], rt = C.quill.getIndex(z), W = Math.min(z.length() - 1, M.index + M.length - rt), D = C.quill.getBounds(new v.Range(rt, W));
|
|
26499
26504
|
C.position(D);
|
|
26500
26505
|
}
|
|
26501
26506
|
} else
|
|
@@ -26549,7 +26554,7 @@ const Q4 = /* @__PURE__ */ Zn(Z4);
|
|
|
26549
26554
|
const NB = At.forwardRef((e, t) => {
|
|
26550
26555
|
const [r, n] = zn(!1);
|
|
26551
26556
|
console.log("allProps", e);
|
|
26552
|
-
const i =
|
|
26557
|
+
const i = Xt(null), a = Xt(null), l = Xt(null), u = Xt(null), f = Xt(16), h = Xt(null), {
|
|
26553
26558
|
uniqueId: d,
|
|
26554
26559
|
text: p,
|
|
26555
26560
|
disabled: c,
|
|
@@ -26579,7 +26584,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26579
26584
|
letterSpacing: F,
|
|
26580
26585
|
colorCorrection: q = {}
|
|
26581
26586
|
} = v, {
|
|
26582
|
-
temperatureFilter:
|
|
26587
|
+
temperatureFilter: Z,
|
|
26583
26588
|
sharpnessFilter: z,
|
|
26584
26589
|
hueFilter: rt,
|
|
26585
26590
|
blurFilter: W,
|
|
@@ -26647,10 +26652,10 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26647
26652
|
};
|
|
26648
26653
|
return At.useEffect(() => {
|
|
26649
26654
|
if (r && l.current) {
|
|
26650
|
-
let
|
|
26651
|
-
if (
|
|
26652
|
-
|
|
26653
|
-
const
|
|
26655
|
+
let Q = document.getElementById("note-editor");
|
|
26656
|
+
if (Q) {
|
|
26657
|
+
Q.style.position = "absolute", Q.style.zIndex = "10", Q.style.left = b + "px", Q.style.top = _ + "px", Q.style.backgroundColor = "var(--chakra-color-darkShark)", Q.style.transform = "scale(1.5)", Q.style.width = "300px", Q.style.height = "100px", Q.style.color = "#fff", Q.style.fontSize = "20px", Q.style.border = "1px solid #CBCEE0";
|
|
26658
|
+
const J = {
|
|
26654
26659
|
// This will overwrite the default binding also named 'tab'
|
|
26655
26660
|
esc: {
|
|
26656
26661
|
key: 27,
|
|
@@ -26670,7 +26675,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26670
26675
|
toolbar: !1,
|
|
26671
26676
|
keyboard: {
|
|
26672
26677
|
bindings: {
|
|
26673
|
-
...
|
|
26678
|
+
...J
|
|
26674
26679
|
}
|
|
26675
26680
|
}
|
|
26676
26681
|
},
|
|
@@ -26682,7 +26687,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26682
26687
|
$(V.root.innerText);
|
|
26683
26688
|
}), V.setText(p), V.focus(), V.off("text-change", () => {
|
|
26684
26689
|
console.log("removed");
|
|
26685
|
-
}), V.hasFocus() || (
|
|
26690
|
+
}), V.hasFocus() || (Q.style.display = "none");
|
|
26686
26691
|
}
|
|
26687
26692
|
}
|
|
26688
26693
|
}, [b, _, r]), /* @__PURE__ */ ee.jsx(Gi, { ...e, ref: t, isText: !0, children: /* @__PURE__ */ ee.jsxs(Xe, { ref: i, children: [
|
|
@@ -26702,7 +26707,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26702
26707
|
},
|
|
26703
26708
|
ref: a,
|
|
26704
26709
|
filters: [
|
|
26705
|
-
|
|
26710
|
+
Z,
|
|
26706
26711
|
z,
|
|
26707
26712
|
rt,
|
|
26708
26713
|
D,
|
|
@@ -26726,7 +26731,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26726
26731
|
const [, r] = At.useState(!1), [, n] = At.useState({
|
|
26727
26732
|
isWaiting: !1,
|
|
26728
26733
|
isStalled: !1
|
|
26729
|
-
}), [i, a] = At.useState(), l =
|
|
26734
|
+
}), [i, a] = At.useState(), l = Xt(null), u = Xt(null), f = Xt(null), h = Xt(J4), d = Xt(), { tl: p, isDragging: c } = wo(Fs), {
|
|
26730
26735
|
uniqueId: v,
|
|
26731
26736
|
mute: m = !1,
|
|
26732
26737
|
src: y,
|
|
@@ -26741,7 +26746,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26741
26746
|
sharpnessFilter: M,
|
|
26742
26747
|
hueFilter: F,
|
|
26743
26748
|
blurFilter: q,
|
|
26744
|
-
adjustmentFilter:
|
|
26749
|
+
adjustmentFilter: Z
|
|
26745
26750
|
} = js(L), z = y || "", rt = At.useMemo(() => {
|
|
26746
26751
|
const G = document.createElement("video");
|
|
26747
26752
|
return G.src = y, G.crossOrigin = "Anonymus", G.autoplay = !1, G.currentTime = w === 0 ? 1e-3 : w, G;
|
|
@@ -26824,9 +26829,9 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26824
26829
|
f.current && f.current.pause(), n({ isWaiting: !0, isStalled: !1 });
|
|
26825
26830
|
}, V = function() {
|
|
26826
26831
|
n({ isWaiting: !1, isStalled: !1 });
|
|
26827
|
-
},
|
|
26832
|
+
}, Q = function() {
|
|
26828
26833
|
n({ isWaiting: !1, isStalled: !0 });
|
|
26829
|
-
},
|
|
26834
|
+
}, J = Math.round((Number(w) + Number.EPSILON) * 100) / 100, nt = Math.round((Number(T) + Number.EPSILON) * 100) / 100, ot = `${z}#t=${J},${nt}`;
|
|
26830
26835
|
return console.log("urlTimestap", ot), _n.Texture.fromLoader(rt, ot, v, {
|
|
26831
26836
|
pixiIdPrefix: v,
|
|
26832
26837
|
resourceOptions: {
|
|
@@ -26835,12 +26840,12 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26835
26840
|
updateFPS: 30
|
|
26836
26841
|
}
|
|
26837
26842
|
}).then((dt) => {
|
|
26838
|
-
dt && (a(dt), f.current = dt.baseTexture.resource.source, f.current.id = v, f.current.addEventListener("loadedmetadata", K), f.current.addEventListener("ended", X), f.current.addEventListener("loadstart", $), f.current.addEventListener("canplaythrough", V), f.current.addEventListener("stalled",
|
|
26843
|
+
dt && (a(dt), f.current = dt.baseTexture.resource.source, f.current.id = v, f.current.addEventListener("loadedmetadata", K), f.current.addEventListener("ended", X), f.current.addEventListener("loadstart", $), f.current.addEventListener("canplaythrough", V), f.current.addEventListener("stalled", Q));
|
|
26839
26844
|
}), () => {
|
|
26840
26845
|
f.current && (f.current.pause(), f.current.removeEventListener("loadedmetadata", K), f.current.removeEventListener("ended", X), f.current.removeEventListener("loadstart", $), f.current.removeEventListener(
|
|
26841
26846
|
"canplaythrough",
|
|
26842
26847
|
V
|
|
26843
|
-
), f.current.removeEventListener("stalled",
|
|
26848
|
+
), f.current.removeEventListener("stalled", Q));
|
|
26844
26849
|
};
|
|
26845
26850
|
}, [z, v, w, T, rt]), /* @__PURE__ */ ee.jsx(Gi, { ...e, ref: t, ignoreTlForVideo: !0, children: /* @__PURE__ */ ee.jsx(Xe, { ref: u, children: i && /* @__PURE__ */ ee.jsx(
|
|
26846
26851
|
Mf,
|
|
@@ -26858,7 +26863,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26858
26863
|
P,
|
|
26859
26864
|
M,
|
|
26860
26865
|
F,
|
|
26861
|
-
|
|
26866
|
+
Z,
|
|
26862
26867
|
// conditionally add blur filter
|
|
26863
26868
|
...C > 0 ? [q] : []
|
|
26864
26869
|
]
|