@netless/appliance-plugin 1.1.43-beta.3 → 1.1.43-beta.4
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/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/{bridge-CjP_hVOP.js → bridge-DhHfew_I.js} +1 -1
- package/dist/{bridge-DDjnM21Q.mjs → bridge-Dl3rKMzK.mjs} +1 -1
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/fullWorker.js +98 -98
- package/dist/{index-CWYxJZvD.mjs → index-ARINqocW.mjs} +1 -1
- package/dist/{index-DvSdT6k5.js → index-Bf_s6RX4.js} +1 -1
- package/dist/{index-9PPheeLn.mjs → index-CF3ZNiWu.mjs} +146 -150
- package/dist/{index-NA6eaAqy.mjs → index-CkNSIdPz.mjs} +1 -1
- package/dist/index-Cn0Ydsok.js +570 -0
- package/dist/{index-DvrjPbBe.mjs → index-Cv_obCsI.mjs} +1 -1
- package/dist/{index-D0sxmVc0.mjs → index-DDpv_UIL.mjs} +1 -1
- package/dist/{index-CnrGW2oH.js → index-DJOYRXS4.js} +1 -1
- package/dist/{index-BJ0z6a4a.mjs → index-DY9Nbn0h.mjs} +188 -192
- package/dist/{index-0kVavCij.js → index-LUEKzk1Z.js} +1 -1
- package/dist/index-s6X9Ju3b.js +570 -0
- package/dist/{index-CfY3_e4d.js → index-sAPxdyvQ.js} +1 -1
- package/dist/subWorker.js +60 -60
- package/package.json +1 -1
- package/dist/index-S6ml0iJb.js +0 -570
- package/dist/index-bu6U96S2.js +0 -570
|
@@ -15,14 +15,14 @@ import le, { useContext as mt, useState as qe, useMemo as je, useEffect as _e, u
|
|
|
15
15
|
import eh, { createPortal as IM } from "react-dom";
|
|
16
16
|
import ts from "react-draggable";
|
|
17
17
|
import { Resizable as CM } from "re-resizable";
|
|
18
|
-
var Pe = /* @__PURE__ */ ((s) => (s.selector = "selector", s.clicker = "clicker", s.laserPointer = "laserPointer", s.pencil = "pencil", s.rectangle = "rectangle", s.ellipse = "ellipse", s.shape = "shape", s.eraser = "eraser", s.pencilEraser = "pencilEraser", s.text = "text", s.straight = "straight", s.arrow = "arrow", s.hand = "hand", s.laserPen = "laserPen", s))(Pe || {}),
|
|
18
|
+
var Pe = /* @__PURE__ */ ((s) => (s.selector = "selector", s.clicker = "clicker", s.laserPointer = "laserPointer", s.pencil = "pencil", s.rectangle = "rectangle", s.ellipse = "ellipse", s.shape = "shape", s.eraser = "eraser", s.pencilEraser = "pencilEraser", s.text = "text", s.straight = "straight", s.arrow = "arrow", s.hand = "hand", s.laserPen = "laserPen", s))(Pe || {}), an = /* @__PURE__ */ ((s) => (s[s.OffscreenTransfer = 1] = "OffscreenTransfer", s[s.ImageBitmap = 2] = "ImageBitmap", s[s.MainThread = 3] = "MainThread", s))(an || {}), th = /* @__PURE__ */ ((s) => (s[s.WebGL = 1] = "WebGL", s))(th || {}), Mm = /* @__PURE__ */ ((s) => (s[s.SingleChannelTexture = 1] = "SingleChannelTexture", s))(Mm || {}), wm = /* @__PURE__ */ ((s) => (s[s.TextureSubImage2D = 1] = "TextureSubImage2D", s))(wm || {}), ec = /* @__PURE__ */ ((s) => (s[s.RefreshTextRender = 1] = "RefreshTextRender", s))(ec || {}), ze = /* @__PURE__ */ ((s) => (s.Normal = "Normal", s.Stroke = "Stroke", s.Dotted = "Dotted", s.LongDotted = "LongDotted", s))(ze || {}), dr = /* @__PURE__ */ ((s) => (s.Triangle = "triangle", s.Rhombus = "rhombus", s.Pentagram = "pentagram", s.SpeechBalloon = "speechBalloon", s.Star = "star", s.Polygon = "polygon", s))(dr || {});
|
|
19
19
|
const vr = {
|
|
20
20
|
star: "star",
|
|
21
21
|
polygon: "polygon",
|
|
22
22
|
speechBalloon: "speechBalloon",
|
|
23
23
|
bitMapEraser: "bitMapEraser"
|
|
24
24
|
};
|
|
25
|
-
var Te = /* @__PURE__ */ ((s) => (s.None = "None", s.ShowFloatBar = "ShowFloatBar", s.ZIndexFloatBar = "ZIndexFloatBar", s.DeleteNode = "DeleteNode", s.CopyNode = "CopyNode", s.ZIndexNode = "ZIndexNode", s.ZIndexBackgroundSVG = "ZIndexBackgroundSVG", s.RotateNode = "RotateNode", s.SetColorNode = "SetColorNode", s.TranslateNode = "TranslateNode", s.ScaleNode = "ScaleNode", s.OriginalEvent = "OriginalEvent", s.CreateScene = "CreateScene", s.ActiveCursor = "ActiveCursor", s.MoveCursor = "MoveCursor", s.CommandEditor = "CommandEditor", s.SetEditorData = "SetEditorData", s.SetFontStyle = "SetFontStyle", s.SetPoint = "SetPoint", s.SetLock = "SetLock", s.SetShapeOpt = "SetShapeOpt", s.CameraChange = "CameraChange", s.ActiveMethod = "ActiveMethod", s.HidFloatBarBtn = "HidFloatBarBtn", s.SelectMethod = "SelectMethod", s))(Te || {}), Ve = /* @__PURE__ */ ((s) => (s.MainEngine = "MainEngine", s.Cursor = "Cursor", s.BindMainView = "BindMainView", s))(Ve || {}), bM = /* @__PURE__ */ ((s) => (s[s.MainView = 0] = "MainView", s[s.Plugin = 1] = "Plugin", s[s.Both = 2] = "Both", s))(bM || {}), da = /* @__PURE__ */ ((s) => (s.longPencil = "longPencil", s.longBitmapEraser = "longBitmapEraser", s))(da || {}), Q = /* @__PURE__ */ ((s) => (s[s.Pencil = 1] = "Pencil", s[s.Eraser = 2] = "Eraser", s[s.PencilEraser = 3] = "PencilEraser", s[s.BitMapEraser = 4] = "BitMapEraser", s[s.Selector = 5] = "Selector", s[s.Clicker = 6] = "Clicker", s[s.Arrow = 7] = "Arrow", s[s.Hand = 8] = "Hand", s[s.LaserPen = 9] = "LaserPen", s[s.Text = 10] = "Text", s[s.Straight = 11] = "Straight", s[s.Rectangle = 12] = "Rectangle", s[s.Ellipse = 13] = "Ellipse", s[s.Star = 14] = "Star", s[s.Triangle = 15] = "Triangle", s[s.Rhombus = 16] = "Rhombus", s[s.Polygon = 17] = "Polygon", s[s.SpeechBalloon = 18] = "SpeechBalloon", s[s.Image = 19] = "Image", s[s.BackgroundSVG = 20] = "BackgroundSVG", s))(Q || {}), xe = /* @__PURE__ */ ((s) => (s[s.Local = 1] = "Local", s[s.Service = 2] = "Service", s[s.Worker = 3] = "Worker", s))(xe || {}), de = /* @__PURE__ */ ((s) => (s[s.Pending = 0] = "Pending", s[s.Start = 1] = "Start", s[s.Doing = 2] = "Doing", s[s.Done = 3] = "Done", s[s.Unwritable = 4] = "Unwritable", s))(de || {}), ce = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Init = 1] = "Init", s[s.UpdateCamera = 2] = "UpdateCamera", s[s.UpdateTools = 3] = "UpdateTools", s[s.CreateWork = 4] = "CreateWork", s[s.DrawWork = 5] = "DrawWork", s[s.FullWork = 6] = "FullWork", s[s.UpdateNode = 7] = "UpdateNode", s[s.RemoveNode = 8] = "RemoveNode", s[s.Clear = 9] = "Clear", s[s.Select = 10] = "Select", s[s.Destroy = 11] = "Destroy", s[s.Snapshot = 12] = "Snapshot", s[s.BoundingBox = 13] = "BoundingBox", s[s.Cursor = 14] = "Cursor", s[s.TextUpdate = 15] = "TextUpdate", s[s.GetTextActive = 16] = "GetTextActive", s[s.TasksQueue = 17] = "TasksQueue", s[s.CursorHover = 18] = "CursorHover", s[s.CursorBlur = 19] = "CursorBlur", s[s.Console = 20] = "Console", s[s.GetImageBitMap = 23] = "GetImageBitMap", s[s.AuthWriter = 24] = "AuthWriter", s[s.AuthReader = 25] = "AuthReader", s[s.AuthClear = 26] = "AuthClear", s[s.AuthPage = 27] = "AuthPage", s[s.GetVNodeInfo = 28] = "GetVNodeInfo", s[s.UpdateDpr = 29] = "UpdateDpr", s[s.SetFontFace = 30] = "SetFontFace", s[s.ReportError = 31] = "ReportError", s[s.ReportLog = 32] = "ReportLog", s[s.BackgroundSVGUpdate = 33] = "BackgroundSVGUpdate", s[s.BackgroundSVGDelete = 34] = "BackgroundSVGDelete", s[s.SelectorTransform = 35] = "SelectorTransform", s[s.CheckFontFace = 36] = "CheckFontFace", s[s.RefreshTextRender = 37] = "RefreshTextRender", s[s.ProbeRenderCapabilities = 38] = "ProbeRenderCapabilities", s[s.ServiceSyncCommit = 39] = "ServiceSyncCommit", s[s.CancelFontFace = 40] = "CancelFontFace", s[s.CancelBitmapEraser = 41] = "CancelBitmapEraser", s))(ce || {}), at = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Bg = 1] = "Bg", s[s.ServiceFloat = 2] = "ServiceFloat", s[s.Float = 3] = "Float", s[s.TopFloat = 4] = "TopFloat", s))(at || {}), fa = /* @__PURE__ */ ((s) => (s[s.Cursor = 1] = "Cursor", s[s.TextCreate = 2] = "TextCreate", s))(fa || {}), di = /* @__PURE__ */ ((s) => (s[s.Top = 1] = "Top", s[s.Bottom = 2] = "Bottom", s))(di || {}), Qe = /* @__PURE__ */ ((s) => (s[s.none = 1] = "none", s[s.all = 2] = "all", s[s.both = 3] = "both", s[s.proportional = 4] = "proportional", s))(Qe || {}), oi = /* @__PURE__ */ ((s) => (s[s.inside = 0] = "inside", s[s.outside = 1] = "outside", s[s.intersect = 2] = "intersect", s))(oi || {}), Pt = /* @__PURE__ */ ((s) => (s.renderPage = "renderPage", s.addPage = "addPage", s.deletePage = "deletePage", s.addElement = "addElement", s.deleteElement = "deleteElement", s.clearPage = "clearPage", s.clearViewScenePath = "clearViewScenePath", s.clearView = "clearView", s.syncUndoStack = "syncUndoStack", s.syncRedoStack = "syncRedoStack", s))(Pt || {}),
|
|
25
|
+
var Te = /* @__PURE__ */ ((s) => (s.None = "None", s.ShowFloatBar = "ShowFloatBar", s.ZIndexFloatBar = "ZIndexFloatBar", s.DeleteNode = "DeleteNode", s.CopyNode = "CopyNode", s.ZIndexNode = "ZIndexNode", s.ZIndexBackgroundSVG = "ZIndexBackgroundSVG", s.RotateNode = "RotateNode", s.SetColorNode = "SetColorNode", s.TranslateNode = "TranslateNode", s.ScaleNode = "ScaleNode", s.OriginalEvent = "OriginalEvent", s.CreateScene = "CreateScene", s.ActiveCursor = "ActiveCursor", s.MoveCursor = "MoveCursor", s.CommandEditor = "CommandEditor", s.SetEditorData = "SetEditorData", s.SetFontStyle = "SetFontStyle", s.SetPoint = "SetPoint", s.SetLock = "SetLock", s.SetShapeOpt = "SetShapeOpt", s.CameraChange = "CameraChange", s.ActiveMethod = "ActiveMethod", s.HidFloatBarBtn = "HidFloatBarBtn", s.SelectMethod = "SelectMethod", s))(Te || {}), Ve = /* @__PURE__ */ ((s) => (s.MainEngine = "MainEngine", s.Cursor = "Cursor", s.BindMainView = "BindMainView", s))(Ve || {}), bM = /* @__PURE__ */ ((s) => (s[s.MainView = 0] = "MainView", s[s.Plugin = 1] = "Plugin", s[s.Both = 2] = "Both", s))(bM || {}), da = /* @__PURE__ */ ((s) => (s.longPencil = "longPencil", s.longBitmapEraser = "longBitmapEraser", s))(da || {}), Q = /* @__PURE__ */ ((s) => (s[s.Pencil = 1] = "Pencil", s[s.Eraser = 2] = "Eraser", s[s.PencilEraser = 3] = "PencilEraser", s[s.BitMapEraser = 4] = "BitMapEraser", s[s.Selector = 5] = "Selector", s[s.Clicker = 6] = "Clicker", s[s.Arrow = 7] = "Arrow", s[s.Hand = 8] = "Hand", s[s.LaserPen = 9] = "LaserPen", s[s.Text = 10] = "Text", s[s.Straight = 11] = "Straight", s[s.Rectangle = 12] = "Rectangle", s[s.Ellipse = 13] = "Ellipse", s[s.Star = 14] = "Star", s[s.Triangle = 15] = "Triangle", s[s.Rhombus = 16] = "Rhombus", s[s.Polygon = 17] = "Polygon", s[s.SpeechBalloon = 18] = "SpeechBalloon", s[s.Image = 19] = "Image", s[s.BackgroundSVG = 20] = "BackgroundSVG", s))(Q || {}), xe = /* @__PURE__ */ ((s) => (s[s.Local = 1] = "Local", s[s.Service = 2] = "Service", s[s.Worker = 3] = "Worker", s))(xe || {}), de = /* @__PURE__ */ ((s) => (s[s.Pending = 0] = "Pending", s[s.Start = 1] = "Start", s[s.Doing = 2] = "Doing", s[s.Done = 3] = "Done", s[s.Unwritable = 4] = "Unwritable", s))(de || {}), ce = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Init = 1] = "Init", s[s.UpdateCamera = 2] = "UpdateCamera", s[s.UpdateTools = 3] = "UpdateTools", s[s.CreateWork = 4] = "CreateWork", s[s.DrawWork = 5] = "DrawWork", s[s.FullWork = 6] = "FullWork", s[s.UpdateNode = 7] = "UpdateNode", s[s.RemoveNode = 8] = "RemoveNode", s[s.Clear = 9] = "Clear", s[s.Select = 10] = "Select", s[s.Destroy = 11] = "Destroy", s[s.Snapshot = 12] = "Snapshot", s[s.BoundingBox = 13] = "BoundingBox", s[s.Cursor = 14] = "Cursor", s[s.TextUpdate = 15] = "TextUpdate", s[s.GetTextActive = 16] = "GetTextActive", s[s.TasksQueue = 17] = "TasksQueue", s[s.CursorHover = 18] = "CursorHover", s[s.CursorBlur = 19] = "CursorBlur", s[s.Console = 20] = "Console", s[s.GetImageBitMap = 23] = "GetImageBitMap", s[s.AuthWriter = 24] = "AuthWriter", s[s.AuthReader = 25] = "AuthReader", s[s.AuthClear = 26] = "AuthClear", s[s.AuthPage = 27] = "AuthPage", s[s.GetVNodeInfo = 28] = "GetVNodeInfo", s[s.UpdateDpr = 29] = "UpdateDpr", s[s.SetFontFace = 30] = "SetFontFace", s[s.ReportError = 31] = "ReportError", s[s.ReportLog = 32] = "ReportLog", s[s.BackgroundSVGUpdate = 33] = "BackgroundSVGUpdate", s[s.BackgroundSVGDelete = 34] = "BackgroundSVGDelete", s[s.SelectorTransform = 35] = "SelectorTransform", s[s.CheckFontFace = 36] = "CheckFontFace", s[s.RefreshTextRender = 37] = "RefreshTextRender", s[s.ProbeRenderCapabilities = 38] = "ProbeRenderCapabilities", s[s.ServiceSyncCommit = 39] = "ServiceSyncCommit", s[s.CancelFontFace = 40] = "CancelFontFace", s[s.CancelBitmapEraser = 41] = "CancelBitmapEraser", s))(ce || {}), at = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Bg = 1] = "Bg", s[s.ServiceFloat = 2] = "ServiceFloat", s[s.Float = 3] = "Float", s[s.TopFloat = 4] = "TopFloat", s))(at || {}), fa = /* @__PURE__ */ ((s) => (s[s.Cursor = 1] = "Cursor", s[s.TextCreate = 2] = "TextCreate", s))(fa || {}), di = /* @__PURE__ */ ((s) => (s[s.Top = 1] = "Top", s[s.Bottom = 2] = "Bottom", s))(di || {}), Qe = /* @__PURE__ */ ((s) => (s[s.none = 1] = "none", s[s.all = 2] = "all", s[s.both = 3] = "both", s[s.proportional = 4] = "proportional", s))(Qe || {}), oi = /* @__PURE__ */ ((s) => (s[s.inside = 0] = "inside", s[s.outside = 1] = "outside", s[s.intersect = 2] = "intersect", s))(oi || {}), Pt = /* @__PURE__ */ ((s) => (s.renderPage = "renderPage", s.addPage = "addPage", s.deletePage = "deletePage", s.addElement = "addElement", s.deleteElement = "deleteElement", s.clearPage = "clearPage", s.clearViewScenePath = "clearViewScenePath", s.clearView = "clearView", s.syncUndoStack = "syncUndoStack", s.syncRedoStack = "syncRedoStack", s))(Pt || {}), jr = /* @__PURE__ */ ((s) => (s.setAuth = "setAuth", s.setShow = "addShow", s.setHide = "setHide", s.setClear = "setClear", s))(jr || {}), ai = /* @__PURE__ */ ((s) => (s.Image = "image", s.Iconify = "iconify", s))(ai || {}), ga = /* @__PURE__ */ ((s) => (s.url = "url", s.markmap = "markmap", s))(ga || {});
|
|
26
26
|
const L1e = "cursorhover", Tm = 20, Ue = "mainView", rh = 500, EM = rh, $d = 500, Hc = 1e3, Ea = /* @__PURE__ */ new WeakMap(), Qc = (s, t) => {
|
|
27
27
|
try {
|
|
28
28
|
s.error(t);
|
|
@@ -635,7 +635,7 @@ function xa(s, t) {
|
|
|
635
635
|
function NM(s) {
|
|
636
636
|
return s[0] * s[3] - s[1] * s[2];
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Vr(s, t, e) {
|
|
639
639
|
var r = t[0], n = t[1], i = t[2], o = t[3], a = t[4], c = t[5], l = e[0], u = e[1], h = e[2], d = e[3], f = e[4], g = e[5];
|
|
640
640
|
return s[0] = r * l + i * u, s[1] = n * l + o * u, s[2] = r * h + i * d, s[3] = n * h + o * d, s[4] = r * f + i * g + a, s[5] = n * f + o * g + c, s;
|
|
641
641
|
}
|
|
@@ -686,7 +686,7 @@ function GM(s, t) {
|
|
|
686
686
|
var e = s[0], r = s[1], n = s[2], i = s[3], o = s[4], a = s[5], c = t[0], l = t[1], u = t[2], h = t[3], d = t[4], f = t[5];
|
|
687
687
|
return Math.abs(e - c) <= Ai * Math.max(1, Math.abs(e), Math.abs(c)) && Math.abs(r - l) <= Ai * Math.max(1, Math.abs(r), Math.abs(l)) && Math.abs(n - u) <= Ai * Math.max(1, Math.abs(n), Math.abs(u)) && Math.abs(i - h) <= Ai * Math.max(1, Math.abs(i), Math.abs(h)) && Math.abs(o - d) <= Ai * Math.max(1, Math.abs(o), Math.abs(d)) && Math.abs(a - f) <= Ai * Math.max(1, Math.abs(a), Math.abs(f));
|
|
688
688
|
}
|
|
689
|
-
var HM =
|
|
689
|
+
var HM = Vr, QM = Cm;
|
|
690
690
|
const bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
691
691
|
__proto__: null,
|
|
692
692
|
add: WM,
|
|
@@ -704,7 +704,7 @@ const bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
704
704
|
identity: DM,
|
|
705
705
|
invert: xa,
|
|
706
706
|
mul: HM,
|
|
707
|
-
multiply:
|
|
707
|
+
multiply: Vr,
|
|
708
708
|
multiplyScalar: VM,
|
|
709
709
|
multiplyScalarAndAdd: $M,
|
|
710
710
|
rotate: Im,
|
|
@@ -1559,8 +1559,8 @@ var Em = { exports: {} };
|
|
|
1559
1559
|
return w[0] = (1 - (Ce + Se)) * Le, w[1] = (ve + Re) * Le, w[2] = (Me - be) * Le, w[3] = 0, w[4] = (ve - Re) * Ne, w[5] = (1 - (ge + Se)) * Ne, w[6] = (Ie + Ae) * Ne, w[7] = 0, w[8] = (Me + be) * Fe, w[9] = (Ie - Ae) * Fe, w[10] = (1 - (ge + Ce)) * Fe, w[11] = 0, w[12] = U[0], w[13] = U[1], w[14] = U[2], w[15] = 1, w;
|
|
1560
1560
|
}
|
|
1561
1561
|
function Y(w, C, U, G, J) {
|
|
1562
|
-
var te = C[0], re = C[1], K = C[2], oe = C[3], ue = te + te, he = re + re, ge = K + K, ve = te * ue, Me = te * he, Ce = te * ge, Ie = re * he, Se = re * ge, Ae = K * ge, be = oe * ue, Re = oe * he, Le = oe * ge, Ne = G[0], Fe = G[1], nt = G[2], ct = J[0], st = J[1], lt = J[2], Xe = (1 - (Ie + Ae)) * Ne, ht = (Me + Le) * Ne, yt = (Ce - Re) * Ne, tt = (Me - Le) * Fe, Zt = (1 - (ve + Ae)) * Fe,
|
|
1563
|
-
return w[0] = Xe, w[1] = ht, w[2] = yt, w[3] = 0, w[4] = tt, w[5] = Zt, w[6] =
|
|
1562
|
+
var te = C[0], re = C[1], K = C[2], oe = C[3], ue = te + te, he = re + re, ge = K + K, ve = te * ue, Me = te * he, Ce = te * ge, Ie = re * he, Se = re * ge, Ae = K * ge, be = oe * ue, Re = oe * he, Le = oe * ge, Ne = G[0], Fe = G[1], nt = G[2], ct = J[0], st = J[1], lt = J[2], Xe = (1 - (Ie + Ae)) * Ne, ht = (Me + Le) * Ne, yt = (Ce - Re) * Ne, tt = (Me - Le) * Fe, Zt = (1 - (ve + Ae)) * Fe, Gr = (Se + be) * Fe, Hr = (Ce + Re) * nt, Ri = (Se - be) * nt, So = (1 - (ve + Ie)) * nt;
|
|
1563
|
+
return w[0] = Xe, w[1] = ht, w[2] = yt, w[3] = 0, w[4] = tt, w[5] = Zt, w[6] = Gr, w[7] = 0, w[8] = Hr, w[9] = Ri, w[10] = So, w[11] = 0, w[12] = U[0] + ct - (Xe * ct + tt * st + Hr * lt), w[13] = U[1] + st - (ht * ct + Zt * st + Ri * lt), w[14] = U[2] + lt - (yt * ct + Gr * st + So * lt), w[15] = 1, w;
|
|
1564
1564
|
}
|
|
1565
1565
|
function H(w, C) {
|
|
1566
1566
|
var U = C[0], G = C[1], J = C[2], te = C[3], re = U + U, K = G + G, oe = J + J, ue = U * re, he = G * re, ge = G * K, ve = J * re, Me = J * K, Ce = J * oe, Ie = te * re, Se = te * K, Ae = te * oe;
|
|
@@ -1614,8 +1614,8 @@ var Em = { exports: {} };
|
|
|
1614
1614
|
return w[0] === C[0] && w[1] === C[1] && w[2] === C[2] && w[3] === C[3] && w[4] === C[4] && w[5] === C[5] && w[6] === C[6] && w[7] === C[7] && w[8] === C[8] && w[9] === C[9] && w[10] === C[10] && w[11] === C[11] && w[12] === C[12] && w[13] === C[13] && w[14] === C[14] && w[15] === C[15];
|
|
1615
1615
|
}
|
|
1616
1616
|
function se(w, C) {
|
|
1617
|
-
var U = w[0], G = w[1], J = w[2], te = w[3], re = w[4], K = w[5], oe = w[6], ue = w[7], he = w[8], ge = w[9], ve = w[10], Me = w[11], Ce = w[12], Ie = w[13], Se = w[14], Ae = w[15], be = C[0], Re = C[1], Le = C[2], Ne = C[3], Fe = C[4], nt = C[5], ct = C[6], st = C[7], lt = C[8], Xe = C[9], ht = C[10], yt = C[11], tt = C[12], Zt = C[13],
|
|
1618
|
-
return Math.abs(U - be) <= i.EPSILON * Math.max(1, Math.abs(U), Math.abs(be)) && Math.abs(G - Re) <= i.EPSILON * Math.max(1, Math.abs(G), Math.abs(Re)) && Math.abs(J - Le) <= i.EPSILON * Math.max(1, Math.abs(J), Math.abs(Le)) && Math.abs(te - Ne) <= i.EPSILON * Math.max(1, Math.abs(te), Math.abs(Ne)) && Math.abs(re - Fe) <= i.EPSILON * Math.max(1, Math.abs(re), Math.abs(Fe)) && Math.abs(K - nt) <= i.EPSILON * Math.max(1, Math.abs(K), Math.abs(nt)) && Math.abs(oe - ct) <= i.EPSILON * Math.max(1, Math.abs(oe), Math.abs(ct)) && Math.abs(ue - st) <= i.EPSILON * Math.max(1, Math.abs(ue), Math.abs(st)) && Math.abs(he - lt) <= i.EPSILON * Math.max(1, Math.abs(he), Math.abs(lt)) && Math.abs(ge - Xe) <= i.EPSILON * Math.max(1, Math.abs(ge), Math.abs(Xe)) && Math.abs(ve - ht) <= i.EPSILON * Math.max(1, Math.abs(ve), Math.abs(ht)) && Math.abs(Me - yt) <= i.EPSILON * Math.max(1, Math.abs(Me), Math.abs(yt)) && Math.abs(Ce - tt) <= i.EPSILON * Math.max(1, Math.abs(Ce), Math.abs(tt)) && Math.abs(Ie - Zt) <= i.EPSILON * Math.max(1, Math.abs(Ie), Math.abs(Zt)) && Math.abs(Se -
|
|
1617
|
+
var U = w[0], G = w[1], J = w[2], te = w[3], re = w[4], K = w[5], oe = w[6], ue = w[7], he = w[8], ge = w[9], ve = w[10], Me = w[11], Ce = w[12], Ie = w[13], Se = w[14], Ae = w[15], be = C[0], Re = C[1], Le = C[2], Ne = C[3], Fe = C[4], nt = C[5], ct = C[6], st = C[7], lt = C[8], Xe = C[9], ht = C[10], yt = C[11], tt = C[12], Zt = C[13], Gr = C[14], Hr = C[15];
|
|
1618
|
+
return Math.abs(U - be) <= i.EPSILON * Math.max(1, Math.abs(U), Math.abs(be)) && Math.abs(G - Re) <= i.EPSILON * Math.max(1, Math.abs(G), Math.abs(Re)) && Math.abs(J - Le) <= i.EPSILON * Math.max(1, Math.abs(J), Math.abs(Le)) && Math.abs(te - Ne) <= i.EPSILON * Math.max(1, Math.abs(te), Math.abs(Ne)) && Math.abs(re - Fe) <= i.EPSILON * Math.max(1, Math.abs(re), Math.abs(Fe)) && Math.abs(K - nt) <= i.EPSILON * Math.max(1, Math.abs(K), Math.abs(nt)) && Math.abs(oe - ct) <= i.EPSILON * Math.max(1, Math.abs(oe), Math.abs(ct)) && Math.abs(ue - st) <= i.EPSILON * Math.max(1, Math.abs(ue), Math.abs(st)) && Math.abs(he - lt) <= i.EPSILON * Math.max(1, Math.abs(he), Math.abs(lt)) && Math.abs(ge - Xe) <= i.EPSILON * Math.max(1, Math.abs(ge), Math.abs(Xe)) && Math.abs(ve - ht) <= i.EPSILON * Math.max(1, Math.abs(ve), Math.abs(ht)) && Math.abs(Me - yt) <= i.EPSILON * Math.max(1, Math.abs(Me), Math.abs(yt)) && Math.abs(Ce - tt) <= i.EPSILON * Math.max(1, Math.abs(Ce), Math.abs(tt)) && Math.abs(Ie - Zt) <= i.EPSILON * Math.max(1, Math.abs(Ie), Math.abs(Zt)) && Math.abs(Se - Gr) <= i.EPSILON * Math.max(1, Math.abs(Se), Math.abs(Gr)) && Math.abs(Ae - Hr) <= i.EPSILON * Math.max(1, Math.abs(Ae), Math.abs(Hr));
|
|
1619
1619
|
}
|
|
1620
1620
|
var Z = T, ee = pe;
|
|
1621
1621
|
},
|
|
@@ -7030,11 +7030,11 @@ void main() {
|
|
|
7030
7030
|
}), Ne = g()(Le, 3), Fe = g()(Ne[0], 2), nt = Fe[0], ct = Fe[1], st = g()(Ne[1], 2), lt = st[0], Xe = st[1], ht = g()(Ne[2], 2), yt = ht[0], tt = ht[1], Zt = Math.sign((K - nt) * (Xe - ct) - (lt - nt) * (oe - ct));
|
|
7031
7031
|
if (Zt === 0 && Ae([K, oe], [nt, ct], [lt, Xe]))
|
|
7032
7032
|
return !0;
|
|
7033
|
-
var
|
|
7034
|
-
if (
|
|
7033
|
+
var Gr = Math.sign((K - lt) * (tt - Xe) - (yt - lt) * (oe - Xe));
|
|
7034
|
+
if (Gr === 0 && Ae([K, oe], [lt, Xe], [yt, tt]))
|
|
7035
7035
|
return !0;
|
|
7036
|
-
var
|
|
7037
|
-
if (
|
|
7036
|
+
var Hr = Math.sign((K - yt) * (ct - tt) - (nt - yt) * (oe - tt));
|
|
7037
|
+
if (Hr === 0 && Ae([K, oe], [yt, tt], [nt, ct]) || Zt === 1 && Gr === 1 && Hr === 1 || Zt === -1 && Gr === -1 && Hr === -1)
|
|
7038
7038
|
return !0;
|
|
7039
7039
|
}
|
|
7040
7040
|
}
|
|
@@ -9091,19 +9091,19 @@ function au(s, t) {
|
|
|
9091
9091
|
return s == null && t == null || s === t;
|
|
9092
9092
|
}
|
|
9093
9093
|
et(Array);
|
|
9094
|
-
const qc = Symbol.for("spritejs_setAttributeDefault"), Zc = Symbol.for("spritejs_declareAlias"), Nt = Symbol.for("spritejs_setAttribute"), Tt = Symbol.for("spritejs_getAttribute"), Gd = Symbol.for("spritejs_attributes"), Hd = Symbol.for("spritejs_changedAttrs"), pa = Symbol("subject"),
|
|
9094
|
+
const qc = Symbol.for("spritejs_setAttributeDefault"), Zc = Symbol.for("spritejs_declareAlias"), Nt = Symbol.for("spritejs_setAttribute"), Tt = Symbol.for("spritejs_getAttribute"), Gd = Symbol.for("spritejs_attributes"), Hd = Symbol.for("spritejs_changedAttrs"), pa = Symbol("subject"), rn = Symbol("attr"), Kc = Symbol("default"), Io = Symbol("alias");
|
|
9095
9095
|
function qM(s, [t, e]) {
|
|
9096
9096
|
let r = ci(1, 0, 0, 1, 0, 0);
|
|
9097
9097
|
return [...s].forEach(([n, i]) => {
|
|
9098
9098
|
if ((t || e) && (r = ou(Array.of(0, 0, 0, 0, 0, 0), r, [t, e])), n === "matrix")
|
|
9099
|
-
r =
|
|
9099
|
+
r = Vr(r, r, i);
|
|
9100
9100
|
else if (n === "offsetTranslate")
|
|
9101
9101
|
r[4] += i[0], r[5] += i[1];
|
|
9102
9102
|
else if (n === "offsetRotate")
|
|
9103
9103
|
r = Im(Array.of(0, 0, 0, 0, 0, 0), r, i);
|
|
9104
9104
|
else if (n === "skew") {
|
|
9105
9105
|
const [o, a] = i;
|
|
9106
|
-
r =
|
|
9106
|
+
r = Vr(r, r, ci(1, Math.tan(a), Math.tan(o), 1, 0, 0));
|
|
9107
9107
|
} else
|
|
9108
9108
|
bm[n](r, r, i);
|
|
9109
9109
|
(t || e) && (r = ou(Array.of(0, 0, 0, 0, 0, 0), r, [-t, -e]));
|
|
@@ -9111,7 +9111,7 @@ function qM(s, [t, e]) {
|
|
|
9111
9111
|
}
|
|
9112
9112
|
const bn = Symbol("transformMatrix"), Fs = Symbol("transforms"), fs = Symbol("changedAttrs"), xm = Symbol("lastChangedAttr"), ma = Symbol("offsetFigure");
|
|
9113
9113
|
function Co(s, t, e) {
|
|
9114
|
-
const r = s[
|
|
9114
|
+
const r = s[rn][t];
|
|
9115
9115
|
if (s[Nt](t, e, !1) || s[xm] !== t) {
|
|
9116
9116
|
const i = s[Fs];
|
|
9117
9117
|
i.has(t) && i.delete(t), e && (t === "rotate" && (e = Math.PI * e / 180), t === "scale" && (e = e.map((o) => Math.abs(o) > 1e-5 ? o : 1 / o > 0 ? 1e-5 : -1e-5)), i.set(t, e)), s[bn] = null, s[pa].onPropertyChange(t, e, r, s);
|
|
@@ -9145,7 +9145,7 @@ let ih = class {
|
|
|
9145
9145
|
return t[Hd];
|
|
9146
9146
|
}
|
|
9147
9147
|
constructor(t) {
|
|
9148
|
-
this[pa] = t, this[
|
|
9148
|
+
this[pa] = t, this[rn] = {}, this[bn] = ci(1, 0, 0, 1, 0, 0), this[Fs] = /* @__PURE__ */ new Map(), this[Kc] = {}, this[Io] = [], Object.defineProperty(t, "transformMatrix", {
|
|
9149
9149
|
get: () => (this[bn] || (this[bn] = qM(this[Fs], this.transformOrigin)), [...this[bn]])
|
|
9150
9150
|
}), this[qc]({
|
|
9151
9151
|
id: "",
|
|
@@ -9178,11 +9178,11 @@ let ih = class {
|
|
|
9178
9178
|
get [Hd]() {
|
|
9179
9179
|
const t = {};
|
|
9180
9180
|
return [...this[fs]].forEach((e) => {
|
|
9181
|
-
t[e] = this[
|
|
9181
|
+
t[e] = this[rn][e];
|
|
9182
9182
|
}), t;
|
|
9183
9183
|
}
|
|
9184
9184
|
get [Gd]() {
|
|
9185
|
-
const t = Object.assign({}, this[
|
|
9185
|
+
const t = Object.assign({}, this[rn]);
|
|
9186
9186
|
for (let e = 0; e < this[Io].length; e++) {
|
|
9187
9187
|
const r = this[Io][e];
|
|
9188
9188
|
t[r] = this[r];
|
|
@@ -9190,17 +9190,17 @@ let ih = class {
|
|
|
9190
9190
|
return t;
|
|
9191
9191
|
}
|
|
9192
9192
|
[qc](t) {
|
|
9193
|
-
Object.assign(this[Kc], t), Object.assign(this[
|
|
9193
|
+
Object.assign(this[Kc], t), Object.assign(this[rn], t);
|
|
9194
9194
|
}
|
|
9195
9195
|
[Zc](...t) {
|
|
9196
9196
|
this[Io].push(...t);
|
|
9197
9197
|
}
|
|
9198
9198
|
[Nt](t, e, r = !0) {
|
|
9199
|
-
const n = this[
|
|
9200
|
-
return e == null && (e = this[Kc][t]), au(n, e) ? !1 : (this[
|
|
9199
|
+
const n = this[rn][t], i = this[pa];
|
|
9200
|
+
return e == null && (e = this[Kc][t]), au(n, e) ? !1 : (this[rn][t] = e, this[fs].has(t) && this[fs].delete(t), this[fs].add(t), this[xm] = t, r && i.onPropertyChange(t, e, n, this), !0);
|
|
9201
9201
|
}
|
|
9202
9202
|
[Tt](t) {
|
|
9203
|
-
return this[
|
|
9203
|
+
return this[rn][t];
|
|
9204
9204
|
}
|
|
9205
9205
|
set id(t) {
|
|
9206
9206
|
this[Nt]("id", t);
|
|
@@ -9252,7 +9252,7 @@ let ih = class {
|
|
|
9252
9252
|
if (Array.isArray(t) && (e = t, t = `matrix(${t.map(Je).join()})`), typeof t == "string") t = t.replace(/\s*,\s*/g, ",");
|
|
9253
9253
|
else if (t != null)
|
|
9254
9254
|
throw new TypeError("Invalid transform value.");
|
|
9255
|
-
const r = this[
|
|
9255
|
+
const r = this[rn].transform;
|
|
9256
9256
|
if (this[Nt]("transform", t, !1)) {
|
|
9257
9257
|
const n = this[Fs];
|
|
9258
9258
|
if (n.has("matrix") && n.delete("matrix"), e)
|
|
@@ -9265,7 +9265,7 @@ let ih = class {
|
|
|
9265
9265
|
const l = i[a].match(/^(matrix|translate|rotate|scale|skew)\(([^()]+)\)/);
|
|
9266
9266
|
if (l) {
|
|
9267
9267
|
let [, u, h] = l;
|
|
9268
|
-
u === "rotate" ? h = Math.PI * parseFloat(h) / 180 : h = h.trim().split(/[\s,]+/).map((d) => Je(d)), u === "matrix" ? o =
|
|
9268
|
+
u === "rotate" ? h = Math.PI * parseFloat(h) / 180 : h = h.trim().split(/[\s,]+/).map((d) => Je(d)), u === "matrix" ? o = Vr(o, o, h) : u === "skew" ? o = Vr(o, o, ci(1, Math.tan(h[1]), Math.tan(h[0]), 1, 0, 0)) : bm[u](o, o, h), n.set("matrix", o);
|
|
9269
9269
|
}
|
|
9270
9270
|
}
|
|
9271
9271
|
} else
|
|
@@ -9395,9 +9395,9 @@ var jt = km.exports, oo = function(s) {
|
|
|
9395
9395
|
return function() {
|
|
9396
9396
|
return s.apply(t, arguments);
|
|
9397
9397
|
};
|
|
9398
|
-
}, Mr = {},
|
|
9398
|
+
}, Mr = {}, $r = function(s) {
|
|
9399
9399
|
return typeof s == "object" ? s !== null : typeof s == "function";
|
|
9400
|
-
}, nw =
|
|
9400
|
+
}, nw = $r, mn = function(s) {
|
|
9401
9401
|
if (!nw(s)) throw TypeError(s + " is not an object!");
|
|
9402
9402
|
return s;
|
|
9403
9403
|
}, mi = function(s) {
|
|
@@ -9410,13 +9410,13 @@ var jt = km.exports, oo = function(s) {
|
|
|
9410
9410
|
return Object.defineProperty({}, "a", { get: function() {
|
|
9411
9411
|
return 7;
|
|
9412
9412
|
} }).a != 7;
|
|
9413
|
-
}), Qd =
|
|
9413
|
+
}), Qd = $r, cu = or.document, iw = Qd(cu) && Qd(cu.createElement), ah = function(s) {
|
|
9414
9414
|
return iw ? cu.createElement(s) : {};
|
|
9415
9415
|
}, Pm = !wr && !mi(function() {
|
|
9416
9416
|
return Object.defineProperty(ah("div"), "a", { get: function() {
|
|
9417
9417
|
return 7;
|
|
9418
9418
|
} }).a != 7;
|
|
9419
|
-
}), bo =
|
|
9419
|
+
}), bo = $r, ch = function(s, t) {
|
|
9420
9420
|
if (!bo(s)) return s;
|
|
9421
9421
|
var e, r;
|
|
9422
9422
|
if (t && typeof (e = s.toString) == "function" && !bo(r = e.call(s)) || typeof (e = s.valueOf) == "function" && !bo(r = e.call(s)) || !t && typeof (e = s.toString) == "function" && !bo(r = e.call(s))) return r;
|
|
@@ -9741,7 +9741,7 @@ var lo = Vm.exports, sS = or, yf = jt, oS = Mr, aS = wr, vf = Jt("species"), Ym
|
|
|
9741
9741
|
return this;
|
|
9742
9742
|
}
|
|
9743
9743
|
});
|
|
9744
|
-
}, Gm = { exports: {} }, fi = nc("meta"), cS =
|
|
9744
|
+
}, Gm = { exports: {} }, fi = nc("meta"), cS = $r, vh = yi, lS = Mr.f, uS = 0, oc = Object.isExtensible || function() {
|
|
9745
9745
|
return !0;
|
|
9746
9746
|
}, hS = !mi(function() {
|
|
9747
9747
|
return oc(Object.preventExtensions({}));
|
|
@@ -9775,7 +9775,7 @@ var lo = Vm.exports, sS = or, yf = jt, oS = Mr, aS = wr, vf = Jt("species"), Ym
|
|
|
9775
9775
|
fastKey: dS,
|
|
9776
9776
|
getWeak: fS,
|
|
9777
9777
|
onFreeze: gS
|
|
9778
|
-
}, wh = Gm.exports, mS =
|
|
9778
|
+
}, wh = Gm.exports, mS = $r, Hm = function(s, t) {
|
|
9779
9779
|
if (!mS(s) || s._t !== t) throw TypeError("Incompatible receiver, " + t + " required!");
|
|
9780
9780
|
return s;
|
|
9781
9781
|
}, yS = Mr.f, vS = fh, MS = mh, wS = Nn, TS = yh, SS = lo, IS = gh, ko = Rm, CS = Ym, Qm = wr, qm = wh.fastKey, ki = Hm, gs = Qm ? "_s" : "size", Po = function(s, t) {
|
|
@@ -9852,7 +9852,7 @@ var lo = Vm.exports, sS = or, yf = jt, oS = Mr, aS = wr, vf = Jt("species"), Ym
|
|
|
9852
9852
|
}
|
|
9853
9853
|
}, ES = so, Zm = Array.isArray || function(t) {
|
|
9854
9854
|
return ES(t) == "Array";
|
|
9855
|
-
}, xS =
|
|
9855
|
+
}, xS = $r, Mf = Zm, RS = Jt("species"), AS = function(s) {
|
|
9856
9856
|
var t;
|
|
9857
9857
|
return Mf(s) && (t = s.constructor, typeof t == "function" && (t === Array || Mf(t.prototype)) && (t = void 0), xS(t) && (t = t[RS], t === null && (t = void 0))), t === void 0 ? Array : t;
|
|
9858
9858
|
}, kS = AS, PS = function(s, t) {
|
|
@@ -9876,7 +9876,7 @@ var lo = Vm.exports, sS = or, yf = jt, oS = Mr, aS = wr, vf = Jt("species"), Ym
|
|
|
9876
9876
|
}
|
|
9877
9877
|
return o ? -1 : n || i ? i : E;
|
|
9878
9878
|
};
|
|
9879
|
-
}, jS = or, Do = ar, FS = wh, US = mi, WS = On, VS = mh, $S = lo, wf = yh, YS =
|
|
9879
|
+
}, jS = or, Do = ar, FS = wh, US = mi, WS = On, VS = mh, $S = lo, wf = yh, YS = $r, GS = co, HS = Mr.f, QS = BS(0), qS = wr, ZS = function(s, t, e, r, n, i) {
|
|
9880
9880
|
var o = jS[s], a = o, c = n ? "set" : "add", l = a && a.prototype, u = {};
|
|
9881
9881
|
return !qS || typeof a != "function" || !(i || l.forEach && !US(function() {
|
|
9882
9882
|
new a().entries().next();
|
|
@@ -10032,7 +10032,7 @@ ey.f = wr ? kf : function(t, e) {
|
|
|
10032
10032
|
}
|
|
10033
10033
|
if (b1(t, e)) return S1(!T1.f.call(t, e), t[e]);
|
|
10034
10034
|
};
|
|
10035
|
-
var uc = or, Ot = yi, ty = wr, Qt = ar, x1 = Dm, R1 = wh.KEY, bh = mi, Eh = uh, xh = co, A1 = nc, uo = Jt, k1 = Sh, P1 = Ih, D1 = p1, L1 = Zm, pu = mn, N1 =
|
|
10035
|
+
var uc = or, Ot = yi, ty = wr, Qt = ar, x1 = Dm, R1 = wh.KEY, bh = mi, Eh = uh, xh = co, A1 = nc, uo = Jt, k1 = Sh, P1 = Ih, D1 = p1, L1 = Zm, pu = mn, N1 = $r, O1 = is, hc = pi, Rh = ch, mu = ao, Qs = fh, ry = Xm, ny = ey, dc = ac, iy = Mr, z1 = ns, sy = ny.f, Xn = iy.f, oy = ry.f, sr = uc.Symbol, Ra = uc.JSON, Lo = Ra && Ra.stringify, Rn = "prototype", ir = uo("_hidden"), Pf = uo("toPrimitive"), B1 = {}.propertyIsEnumerable, ps = Eh("symbol-registry"), gn = Eh("symbols"), ho = Eh("op-symbols"), Rr = Object[Rn], os = typeof sr == "function" && !!dc.f, ml = uc.QObject, yu = !ml || !ml[Rn] || !ml[Rn].findChild, vu = ty && bh(function() {
|
|
10036
10036
|
return Qs(Xn({}, "a", {
|
|
10037
10037
|
get: function() {
|
|
10038
10038
|
return Xn(this, "a", { value: 7 }).a;
|
|
@@ -10172,9 +10172,9 @@ function Mi(s) {
|
|
|
10172
10172
|
var tI = (0, dy.createNowTime)(), rI = {
|
|
10173
10173
|
originTime: 0,
|
|
10174
10174
|
playbackRate: 1
|
|
10175
|
-
},
|
|
10175
|
+
}, Qr = (0, vi.default)("timeMark"), vl = (0, vi.default)("playbackRate"), qr = (0, vi.default)("timers"), nI = (0, vi.default)("originTime"), ms = (0, vi.default)("setTimer"), Zr = (0, vi.default)("parent"), iI = function() {
|
|
10176
10176
|
function s(t, e) {
|
|
10177
|
-
(0, X1.default)(this, s), t instanceof s && (e = t, t = {}), t = (0, Z1.default)({}, rI, t), e && (this[
|
|
10177
|
+
(0, X1.default)(this, s), t instanceof s && (e = t, t = {}), t = (0, Z1.default)({}, rI, t), e && (this[Zr] = e);
|
|
10178
10178
|
var r = t.nowtime || tI;
|
|
10179
10179
|
if (e)
|
|
10180
10180
|
Object.defineProperty(this, "globalTime", {
|
|
@@ -10190,13 +10190,13 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10190
10190
|
}
|
|
10191
10191
|
});
|
|
10192
10192
|
}
|
|
10193
|
-
this[
|
|
10193
|
+
this[Qr] = [{
|
|
10194
10194
|
globalTime: this.globalTime,
|
|
10195
10195
|
localTime: -t.originTime,
|
|
10196
10196
|
entropy: -t.originTime,
|
|
10197
10197
|
playbackRate: t.playbackRate,
|
|
10198
10198
|
globalEntropy: 0
|
|
10199
|
-
}], this[
|
|
10199
|
+
}], this[Zr] && (this[Qr][0].globalEntropy = this[Zr].entropy), this[nI] = t.originTime, this[vl] = t.playbackRate, this[qr] = new Q1.default();
|
|
10200
10200
|
}
|
|
10201
10201
|
return (0, _1.default)(s, [{
|
|
10202
10202
|
key: "markTime",
|
|
@@ -10208,7 +10208,7 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10208
10208
|
playbackRate: c,
|
|
10209
10209
|
globalEntropy: this.globalEntropy
|
|
10210
10210
|
};
|
|
10211
|
-
this[
|
|
10211
|
+
this[Qr].push(l);
|
|
10212
10212
|
}
|
|
10213
10213
|
}, {
|
|
10214
10214
|
key: "fork",
|
|
@@ -10218,19 +10218,19 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10218
10218
|
}, {
|
|
10219
10219
|
key: "seekGlobalTime",
|
|
10220
10220
|
value: function(e) {
|
|
10221
|
-
var r = this.seekTimeMark(e), n = this[
|
|
10221
|
+
var r = this.seekTimeMark(e), n = this[Qr][r], i = n.entropy, o = n.playbackRate, a = n.globalTime;
|
|
10222
10222
|
return a + (e - i) / Math.abs(o);
|
|
10223
10223
|
}
|
|
10224
10224
|
}, {
|
|
10225
10225
|
key: "seekLocalTime",
|
|
10226
10226
|
value: function(e) {
|
|
10227
|
-
var r = this.seekTimeMark(e), n = this[
|
|
10227
|
+
var r = this.seekTimeMark(e), n = this[Qr][r], i = n.localTime, o = n.entropy, a = n.playbackRate;
|
|
10228
10228
|
return a > 0 ? i + (e - o) : i - (e - o);
|
|
10229
10229
|
}
|
|
10230
10230
|
}, {
|
|
10231
10231
|
key: "seekTimeMark",
|
|
10232
10232
|
value: function(e) {
|
|
10233
|
-
var r = this[
|
|
10233
|
+
var r = this[Qr], n = 0, i = r.length - 1;
|
|
10234
10234
|
if (e <= r[n].entropy)
|
|
10235
10235
|
return n;
|
|
10236
10236
|
if (e >= r[i].entropy)
|
|
@@ -10245,7 +10245,7 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10245
10245
|
}, {
|
|
10246
10246
|
key: "updateTimers",
|
|
10247
10247
|
value: function() {
|
|
10248
|
-
var e = this, r = [].concat((0, yl.default)(this[
|
|
10248
|
+
var e = this, r = [].concat((0, yl.default)(this[qr]));
|
|
10249
10249
|
r.forEach(function(n) {
|
|
10250
10250
|
var i = (0, Bf.default)(n, 2), o = i[0], a = i[1];
|
|
10251
10251
|
e[ms](a.handler, a.time, o);
|
|
@@ -10261,8 +10261,8 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10261
10261
|
return t.toString();
|
|
10262
10262
|
}, e;
|
|
10263
10263
|
}(function(t) {
|
|
10264
|
-
var e = this[
|
|
10265
|
-
e && e.timerID != null && (this[
|
|
10264
|
+
var e = this[qr].get(t);
|
|
10265
|
+
e && e.timerID != null && (this[Zr] ? this[Zr].clearTimeout(e.timerID) : clearTimeout(e.timerID)), this[qr].delete(t);
|
|
10266
10266
|
})
|
|
10267
10267
|
}, {
|
|
10268
10268
|
key: "clearInterval",
|
|
@@ -10272,7 +10272,7 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10272
10272
|
}, {
|
|
10273
10273
|
key: "clear",
|
|
10274
10274
|
value: function() {
|
|
10275
|
-
var e = this, r = this[
|
|
10275
|
+
var e = this, r = this[qr];
|
|
10276
10276
|
[].concat((0, yl.default)(r.keys())).forEach(function(n) {
|
|
10277
10277
|
e.clearTimeout(n);
|
|
10278
10278
|
});
|
|
@@ -10301,12 +10301,12 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10301
10301
|
value: function(e, r) {
|
|
10302
10302
|
var n = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : (0, vi.default)("timerID");
|
|
10303
10303
|
r = (0, dy.formatDelay)(r);
|
|
10304
|
-
var o = this[
|
|
10304
|
+
var o = this[qr].get(i), a = void 0, c = null, l = void 0, u = void 0;
|
|
10305
10305
|
o ? (this.clearTimeout(i), r.isEntropy ? a = (r.delay - (this.entropy - o.startEntropy)) / Math.abs(this.playbackRate) : a = (r.delay - (this.currentTime - o.startTime)) / this.playbackRate, l = o.startTime, u = o.startEntropy) : (a = r.delay / (r.isEntropy ? Math.abs(this.playbackRate) : this.playbackRate), l = this.currentTime, u = this.entropy);
|
|
10306
|
-
var h = this[
|
|
10306
|
+
var h = this[Zr], d = h ? h.setTimeout.bind(h) : setTimeout, f = r.heading;
|
|
10307
10307
|
return !h && f === !1 && a < 0 && (a = 1 / 0), (isFinite(a) || h) && (a = Math.ceil(a), d !== setTimeout && (a = { delay: a, heading: f }), c = d(function() {
|
|
10308
|
-
n[
|
|
10309
|
-
}, a)), this[
|
|
10308
|
+
n[qr].delete(i), e();
|
|
10309
|
+
}, a)), this[qr].set(i, {
|
|
10310
10310
|
timerID: c,
|
|
10311
10311
|
handler: e,
|
|
10312
10312
|
time: r,
|
|
@@ -10317,12 +10317,12 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10317
10317
|
}, {
|
|
10318
10318
|
key: "parent",
|
|
10319
10319
|
get: function() {
|
|
10320
|
-
return this[
|
|
10320
|
+
return this[Zr];
|
|
10321
10321
|
}
|
|
10322
10322
|
}, {
|
|
10323
10323
|
key: "lastTimeMark",
|
|
10324
10324
|
get: function() {
|
|
10325
|
-
return this[
|
|
10325
|
+
return this[Qr][this[Qr].length - 1];
|
|
10326
10326
|
}
|
|
10327
10327
|
}, {
|
|
10328
10328
|
key: "currentTime",
|
|
@@ -10331,7 +10331,7 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10331
10331
|
return r + (this.globalTime - n) * this.playbackRate;
|
|
10332
10332
|
},
|
|
10333
10333
|
set: function(e) {
|
|
10334
|
-
var r = this, n = this.currentTime, i = e, o = this[
|
|
10334
|
+
var r = this, n = this.currentTime, i = e, o = this[qr];
|
|
10335
10335
|
this.markTime({ time: e }), [].concat((0, yl.default)(o)).forEach(function(a) {
|
|
10336
10336
|
var c = (0, Bf.default)(a, 2), l = c[0], u = c[1];
|
|
10337
10337
|
if (o.has(l)) {
|
|
@@ -10367,14 +10367,14 @@ var tI = (0, dy.createNowTime)(), rI = {
|
|
|
10367
10367
|
set: function(e) {
|
|
10368
10368
|
if (this.entropy > e) {
|
|
10369
10369
|
var r = this.seekTimeMark(e);
|
|
10370
|
-
this[
|
|
10370
|
+
this[Qr].length = r + 1;
|
|
10371
10371
|
}
|
|
10372
10372
|
this.markTime({ entropy: e }), this.updateTimers();
|
|
10373
10373
|
}
|
|
10374
10374
|
}, {
|
|
10375
10375
|
key: "globalEntropy",
|
|
10376
10376
|
get: function() {
|
|
10377
|
-
return this[
|
|
10377
|
+
return this[Zr] ? this[Zr].entropy : this.globalTime;
|
|
10378
10378
|
}
|
|
10379
10379
|
}, {
|
|
10380
10380
|
key: "playbackRate",
|
|
@@ -10646,14 +10646,14 @@ var wy = function(s) {
|
|
|
10646
10646
|
} catch (t) {
|
|
10647
10647
|
return { e: !0, v: t };
|
|
10648
10648
|
}
|
|
10649
|
-
}, AI = or, Kf = AI.navigator, kI = Kf && Kf.userAgent || "", PI = mn, DI =
|
|
10649
|
+
}, AI = or, Kf = AI.navigator, kI = Kf && Kf.userAgent || "", PI = mn, DI = $r, LI = mc, Ty = function(s, t) {
|
|
10650
10650
|
if (PI(s), DI(t) && t.constructor === s) return t;
|
|
10651
10651
|
var e = LI.f(s), r = e.resolve;
|
|
10652
10652
|
return r(t), e.promise;
|
|
10653
|
-
}, NI = _M, An = or, $i = Nn, OI = ic, pr = ar, zI =
|
|
10653
|
+
}, NI = _M, An = or, $i = Nn, OI = ic, pr = ar, zI = $r, BI = oo, jI = yh, Xf = lo, FI = vy, Sy = My.set, Iy = xI(), Cy = mc, Iu = wy, UI = kI, WI = Ty, zn = "Promise", by = An.TypeError, _i = An.process, Jf = _i && _i.versions, VI = Jf && Jf.v8 || "", Fr = An[zn], qs = OI(_i) == "process", va = function() {
|
|
10654
10654
|
}, zo, Ey, _f, Ph, Zs = Ey = Cy.f, yc = !!function() {
|
|
10655
10655
|
try {
|
|
10656
|
-
var s =
|
|
10656
|
+
var s = Fr.resolve(1), t = (s.constructor = {})[Jt("species")] = function(e) {
|
|
10657
10657
|
e(va, va);
|
|
10658
10658
|
};
|
|
10659
10659
|
return (qs || typeof PromiseRejectionEvent == "function") && s.then(va) instanceof t && VI.indexOf("6.6") !== 0 && UI.indexOf("Chrome/66") === -1;
|
|
@@ -10714,8 +10714,8 @@ var wy = function(s) {
|
|
|
10714
10714
|
}
|
|
10715
10715
|
}
|
|
10716
10716
|
};
|
|
10717
|
-
yc || (
|
|
10718
|
-
jI(this,
|
|
10717
|
+
yc || (Fr = function(t) {
|
|
10718
|
+
jI(this, Fr, zn, "_h"), BI(t), zo.call(this);
|
|
10719
10719
|
try {
|
|
10720
10720
|
t($i(Cu, this, 1), $i(Xi, this, 1));
|
|
10721
10721
|
} catch (e) {
|
|
@@ -10723,10 +10723,10 @@ yc || (Ur = function(t) {
|
|
|
10723
10723
|
}
|
|
10724
10724
|
}, zo = function(t) {
|
|
10725
10725
|
this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1;
|
|
10726
|
-
}, zo.prototype = mh(
|
|
10726
|
+
}, zo.prototype = mh(Fr.prototype, {
|
|
10727
10727
|
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
|
|
10728
10728
|
then: function(t, e) {
|
|
10729
|
-
var r = Zs(FI(this,
|
|
10729
|
+
var r = Zs(FI(this, Fr));
|
|
10730
10730
|
return r.ok = typeof t == "function" ? t : !0, r.fail = typeof e == "function" && e, r.domain = qs ? _i.domain : void 0, this._c.push(r), this._a && this._a.push(r), this._s && Dh(this, !1), r.promise;
|
|
10731
10731
|
},
|
|
10732
10732
|
// 25.4.5.1 Promise.prototype.catch(onRejected)
|
|
@@ -10737,10 +10737,10 @@ yc || (Ur = function(t) {
|
|
|
10737
10737
|
var s = new zo();
|
|
10738
10738
|
this.promise = s, this.resolve = $i(Cu, s, 1), this.reject = $i(Xi, s, 1);
|
|
10739
10739
|
}, Cy.f = Zs = function(s) {
|
|
10740
|
-
return s ===
|
|
10740
|
+
return s === Fr || s === Ph ? new _f(s) : Ey(s);
|
|
10741
10741
|
});
|
|
10742
|
-
pr(pr.G + pr.W + pr.F * !yc, { Promise:
|
|
10743
|
-
co(
|
|
10742
|
+
pr(pr.G + pr.W + pr.F * !yc, { Promise: Fr });
|
|
10743
|
+
co(Fr, zn);
|
|
10744
10744
|
Ym(zn);
|
|
10745
10745
|
Ph = jt[zn];
|
|
10746
10746
|
pr(pr.S + pr.F * !yc, zn, {
|
|
@@ -10753,11 +10753,11 @@ pr(pr.S + pr.F * !yc, zn, {
|
|
|
10753
10753
|
pr(pr.S + pr.F * NI, zn, {
|
|
10754
10754
|
// 25.4.4.6 Promise.resolve(x)
|
|
10755
10755
|
resolve: function(t) {
|
|
10756
|
-
return WI(this === Ph ?
|
|
10756
|
+
return WI(this === Ph ? Fr : this, t);
|
|
10757
10757
|
}
|
|
10758
10758
|
});
|
|
10759
10759
|
pr(pr.S + pr.F * !(yc && Wm()(function(s) {
|
|
10760
|
-
|
|
10760
|
+
Fr.all(s).catch(va);
|
|
10761
10761
|
})), zn, {
|
|
10762
10762
|
// 25.4.4.1 Promise.all(iterable)
|
|
10763
10763
|
all: function(t) {
|
|
@@ -10916,7 +10916,7 @@ var RC = Ry, El = Ti(RC), AC = nC, kC = Ti(AC), PC = Th, ys = Ti(PC), DC = cc, L
|
|
|
10916
10916
|
function Ti(s) {
|
|
10917
10917
|
return s && s.__esModule ? s : { default: s };
|
|
10918
10918
|
}
|
|
10919
|
-
var Gt = (0, yn.default)("timing"),
|
|
10919
|
+
var Gt = (0, yn.default)("timing"), Kr = (0, yn.default)("keyframes"), vs = (0, yn.default)("initState"), Ft = (0, yn.default)("readyDefer"), cr = (0, yn.default)("finishedDefer"), Bo = (0, yn.default)("effects"), jo = (0, yn.default)("activeReadyTimer"), xl = (0, yn.default)("activeFinishTimer"), Xr = (0, yn.default)("removeDefer"), UC = {
|
|
10920
10920
|
delay: 0,
|
|
10921
10921
|
endDelay: 0,
|
|
10922
10922
|
fill: "auto",
|
|
@@ -10932,13 +10932,13 @@ var Gt = (0, yn.default)("timing"), Xr = (0, yn.default)("keyframes"), vs = (0,
|
|
|
10932
10932
|
var i = [t[0], t, e];
|
|
10933
10933
|
t = i[0], e = i[1], r = i[2];
|
|
10934
10934
|
}
|
|
10935
|
-
typeof r == "number" && (r = { duration: r }), this[Gt] = (0, ys.default)({}, UC, r), this[Gt].easing = (0, FC.parseEasing)(this[Gt].easing), this[
|
|
10936
|
-
var o = this[
|
|
10935
|
+
typeof r == "number" && (r = { duration: r }), this[Gt] = (0, ys.default)({}, UC, r), this[Gt].easing = (0, FC.parseEasing)(this[Gt].easing), this[Kr] = (0, vn.calculateFramesOffset)(e);
|
|
10936
|
+
var o = this[Kr][this[Kr].length - 1];
|
|
10937
10937
|
this[vs] = {}, (0, kC.default)(o).forEach(function(a) {
|
|
10938
10938
|
Object.prototype.hasOwnProperty.call(t, a) && a !== "easing" && a !== "offset" && (n[vs][a] = t[a]);
|
|
10939
|
-
}), this[
|
|
10939
|
+
}), this[Kr] = this[Kr].map(function(a) {
|
|
10940
10940
|
return (0, ys.default)({}, n[vs], a);
|
|
10941
|
-
}), this[
|
|
10941
|
+
}), this[Kr][0].offset !== 0 && this[Kr].unshift((0, ys.default)({}, this[vs], { offset: 0 })), o.offset < 1 && this[Kr].push((0, ys.default)({}, o, { offset: 1 })), this[Bo] = {}, this.timeline = null;
|
|
10942
10942
|
}
|
|
10943
10943
|
return (0, OC.default)(s, [{
|
|
10944
10944
|
key: "pause",
|
|
@@ -10960,9 +10960,9 @@ var Gt = (0, yn.default)("timing"), Xr = (0, yn.default)("keyframes"), vs = (0,
|
|
|
10960
10960
|
value: function() {
|
|
10961
10961
|
var e = this, r = this[Gt], n = r.duration, i = r.iterations, o = r.endDelay, a = Math.ceil(n * i + o - this.timeline.currentTime) + 1;
|
|
10962
10962
|
this[cr] && !this[cr].timerID && (this[cr].timerID = this.timeline.setTimeout(function() {
|
|
10963
|
-
e[cr].resolve(), e[
|
|
10963
|
+
e[cr].resolve(), e[Xr](Ft), e[Xr](cr);
|
|
10964
10964
|
}, { delay: a, heading: !1 }), this[cr].reverseTimerID = this.timeline.setTimeout(function() {
|
|
10965
|
-
e[cr].resolve(), e[
|
|
10965
|
+
e[cr].resolve(), e[Xr](Ft), e[Xr](cr), e.timeline = null;
|
|
10966
10966
|
}, { delay: -this[Gt].delay - 1, heading: !1 }));
|
|
10967
10967
|
}
|
|
10968
10968
|
}, {
|
|
@@ -10979,7 +10979,7 @@ var Gt = (0, yn.default)("timing"), Xr = (0, yn.default)("keyframes"), vs = (0,
|
|
|
10979
10979
|
} else this.playState === "paused" && (this.timeline.playbackRate = this.playbackRate, this[jo]());
|
|
10980
10980
|
}
|
|
10981
10981
|
}, {
|
|
10982
|
-
key:
|
|
10982
|
+
key: Xr,
|
|
10983
10983
|
value: function(e) {
|
|
10984
10984
|
var r = this[e], n = this.timeline;
|
|
10985
10985
|
r && n && (n.clearTimeout(r.timerID), r.reverseTimerID && n.clearTimeout(r.reverseTimerID)), delete this[e];
|
|
@@ -10987,12 +10987,12 @@ var Gt = (0, yn.default)("timing"), Xr = (0, yn.default)("keyframes"), vs = (0,
|
|
|
10987
10987
|
}, {
|
|
10988
10988
|
key: "cancel",
|
|
10989
10989
|
value: function() {
|
|
10990
|
-
this[
|
|
10990
|
+
this[Xr](Ft), this[Xr](cr), this.timeline = null;
|
|
10991
10991
|
}
|
|
10992
10992
|
}, {
|
|
10993
10993
|
key: "finish",
|
|
10994
10994
|
value: function() {
|
|
10995
|
-
this.timeline && (this.timeline.currentTime = 1 / 0 / this.playbackRate), this[
|
|
10995
|
+
this.timeline && (this.timeline.currentTime = 1 / 0 / this.playbackRate), this[Xr](Ft), this[Xr](cr);
|
|
10996
10996
|
}
|
|
10997
10997
|
}, {
|
|
10998
10998
|
key: "applyEffects",
|
|
@@ -11048,7 +11048,7 @@ var Gt = (0, yn.default)("timing"), Xr = (0, yn.default)("keyframes"), vs = (0,
|
|
|
11048
11048
|
var e = this.playState, r = this[vs], n = this[Gt].fill;
|
|
11049
11049
|
if (e === "idle")
|
|
11050
11050
|
return r;
|
|
11051
|
-
var i = this.timeline.currentTime, o = this[
|
|
11051
|
+
var i = this.timeline.currentTime, o = this[Kr].slice(0), a = (0, vn.getProgress)(this.timeline, this[Gt], this.progress), c = a.p, l = a.inverted, u = r;
|
|
11052
11052
|
return i < 0 && e === "pending" ? (n === "backwards" || n === "both") && (u = l ? o[o.length - 1] : o[0]) : (e !== "pending" && e !== "finished" || n === "forwards" || n === "both") && (u = (0, vn.getCurrentFrame)(this[Gt], o, this[Bo], c)), u;
|
|
11053
11053
|
}
|
|
11054
11054
|
}, {
|
|
@@ -11612,7 +11612,7 @@ let Mc = (nu = class {
|
|
|
11612
11612
|
const e = this.parent;
|
|
11613
11613
|
if (e) {
|
|
11614
11614
|
const r = e.__cacheRenderMatrix || e.renderMatrix;
|
|
11615
|
-
r && (t =
|
|
11615
|
+
r && (t = Vr(Array.of(0, 0, 0, 0, 0, 0), r, t));
|
|
11616
11616
|
}
|
|
11617
11617
|
return t;
|
|
11618
11618
|
}
|
|
@@ -11878,7 +11878,7 @@ let Mc = (nu = class {
|
|
|
11878
11878
|
if (!n || !i || i[2] <= 0 || i[3] <= 0) return;
|
|
11879
11879
|
const o = xa(Array.of(0, 0, 0, 0, 0, 0), e.owner.renderMatrix);
|
|
11880
11880
|
if (!o) return;
|
|
11881
|
-
const a =
|
|
11881
|
+
const a = Vr(Array.of(0, 0, 0, 0, 0, 0), o, this.renderMatrix);
|
|
11882
11882
|
t.setUniforms({
|
|
11883
11883
|
u_clipSampler: n
|
|
11884
11884
|
});
|
|
@@ -12307,7 +12307,7 @@ function Ly(s, t) {
|
|
|
12307
12307
|
};
|
|
12308
12308
|
}
|
|
12309
12309
|
et(Array);
|
|
12310
|
-
const
|
|
12310
|
+
const Jr = Symbol("mesh");
|
|
12311
12311
|
class go extends Mc {
|
|
12312
12312
|
constructor(t = {}) {
|
|
12313
12313
|
super(t);
|
|
@@ -12360,7 +12360,7 @@ class go extends Mc {
|
|
|
12360
12360
|
if (this.attributes.display === "none") return null;
|
|
12361
12361
|
const t = this.clientBox;
|
|
12362
12362
|
if (t) {
|
|
12363
|
-
let e = this[
|
|
12363
|
+
let e = this[Jr];
|
|
12364
12364
|
if (e)
|
|
12365
12365
|
e.box !== t && (e.contours = t.contours, e.box = t);
|
|
12366
12366
|
else {
|
|
@@ -12382,9 +12382,9 @@ class go extends Mc {
|
|
|
12382
12382
|
lineDashOffset: l
|
|
12383
12383
|
});
|
|
12384
12384
|
}
|
|
12385
|
-
this[
|
|
12385
|
+
this[Jr] = e;
|
|
12386
12386
|
const i = this.attributes.clipPath;
|
|
12387
|
-
i && this[
|
|
12387
|
+
i && this[Jr].setClipPath(i);
|
|
12388
12388
|
}
|
|
12389
12389
|
const r = this.opacity;
|
|
12390
12390
|
return e.getOpacity() !== r && e.setOpacity(r), e.setTransform(...this.renderMatrix), e;
|
|
@@ -12415,7 +12415,7 @@ class go extends Mc {
|
|
|
12415
12415
|
}
|
|
12416
12416
|
getBoundingClientRect() {
|
|
12417
12417
|
let t = this.renderMatrix;
|
|
12418
|
-
this.layer && this.layer.layerTransformInvert && (t =
|
|
12418
|
+
this.layer && this.layer.layerTransformInvert && (t = Vr(Array.of(0, 0, 0, 0, 0, 0), this.layer.transformMatrix, t));
|
|
12419
12419
|
let e = null;
|
|
12420
12420
|
if (this.mesh) {
|
|
12421
12421
|
e = [...this.mesh.boundingBox];
|
|
@@ -12432,16 +12432,16 @@ class go extends Mc {
|
|
|
12432
12432
|
// }
|
|
12433
12433
|
/* override */
|
|
12434
12434
|
onPropertyChange(t, e, r) {
|
|
12435
|
-
if (super.onPropertyChange(t, e, r), (t === "anchorX" || t === "anchorY" || t === "boxSizing" || t === "width" || t === "height" || t === "borderWidth" || t === "paddingLeft" || t === "paddingRight" || t === "paddingTop" || t === "paddingBottom" || /^border(TopLeft|TopRight|BottomRight|BottomLeft)Radius$/.test(t)) && this.updateContours(), this[
|
|
12435
|
+
if (super.onPropertyChange(t, e, r), (t === "anchorX" || t === "anchorY" || t === "boxSizing" || t === "width" || t === "height" || t === "borderWidth" || t === "paddingLeft" || t === "paddingRight" || t === "paddingTop" || t === "paddingBottom" || /^border(TopLeft|TopRight|BottomRight|BottomLeft)Radius$/.test(t)) && this.updateContours(), this[Jr] && t === "clipPath" && this[Jr].setClipPath(e), this[Jr] && t === "bgcolor" && Pa(this[Jr], {
|
|
12436
12436
|
color: e
|
|
12437
|
-
}), this[
|
|
12437
|
+
}), this[Jr] && (t === "borderColor" || t === "borderWidth" || t === "borderDash" || t === "borderDashOffset")) {
|
|
12438
12438
|
const {
|
|
12439
12439
|
borderColor: n,
|
|
12440
12440
|
borderWidth: i,
|
|
12441
12441
|
borderDash: o,
|
|
12442
12442
|
borderDashOffset: a
|
|
12443
12443
|
} = this.attributes;
|
|
12444
|
-
Da(this[
|
|
12444
|
+
Da(this[Jr], {
|
|
12445
12445
|
color: n,
|
|
12446
12446
|
lineWidth: i,
|
|
12447
12447
|
lineDash: i ? o : 0,
|
|
@@ -15317,7 +15317,7 @@ Cc.removeSubsets = function(s) {
|
|
|
15317
15317
|
}
|
|
15318
15318
|
return s;
|
|
15319
15319
|
};
|
|
15320
|
-
var
|
|
15320
|
+
var sn = {
|
|
15321
15321
|
DISCONNECTED: 1,
|
|
15322
15322
|
PRECEDING: 2,
|
|
15323
15323
|
FOLLOWING: 4,
|
|
@@ -15333,7 +15333,7 @@ var on = {
|
|
|
15333
15333
|
r.unshift(n), n = n.parent;
|
|
15334
15334
|
for (l = 0; e[l] === r[l]; )
|
|
15335
15335
|
l++;
|
|
15336
|
-
return l === 0 ?
|
|
15336
|
+
return l === 0 ? sn.DISCONNECTED : (i = e[l - 1], o = i.children, a = e[l], c = r[l], o.indexOf(a) > o.indexOf(c) ? i === t ? sn.FOLLOWING | sn.CONTAINED_BY : sn.FOLLOWING : i === s ? sn.PRECEDING | sn.CONTAINS : sn.PRECEDING);
|
|
15337
15337
|
};
|
|
15338
15338
|
Cc.uniqueSort = function(s) {
|
|
15339
15339
|
var t = s.length, e, r;
|
|
@@ -15341,7 +15341,7 @@ Cc.uniqueSort = function(s) {
|
|
|
15341
15341
|
e = s[t], r = s.indexOf(e), r > -1 && r < t && s.splice(t, 1);
|
|
15342
15342
|
return s.sort(function(n, i) {
|
|
15343
15343
|
var o = pse(n, i);
|
|
15344
|
-
return o &
|
|
15344
|
+
return o & sn.PRECEDING ? -1 : o & sn.FOLLOWING ? 1 : 0;
|
|
15345
15345
|
}), s;
|
|
15346
15346
|
};
|
|
15347
15347
|
(function(s) {
|
|
@@ -16655,7 +16655,7 @@ const voe = {
|
|
|
16655
16655
|
autoRender: !0,
|
|
16656
16656
|
alpha: !0
|
|
16657
16657
|
// for wx-miniprogram
|
|
16658
|
-
}, ws = Symbol("autoRender"), Ts = Symbol("renderer"), xg = Symbol("timeline"), Wt = Symbol("prepareRender"), Nl = Symbol("tickRender"),
|
|
16658
|
+
}, ws = Symbol("autoRender"), Ts = Symbol("renderer"), xg = Symbol("timeline"), Wt = Symbol("prepareRender"), Nl = Symbol("tickRender"), _r = Symbol("pass"), Mn = Symbol("fbo"), $n = Symbol("tickers"), Yn = Symbol("destroyed"), wn = Symbol("layerTransformInvert");
|
|
16659
16659
|
function Moe(s) {
|
|
16660
16660
|
if (!s || !s.options) return null;
|
|
16661
16661
|
let t = "2d";
|
|
@@ -16677,7 +16677,7 @@ let ii = class extends wt {
|
|
|
16677
16677
|
const e = t.canvas, r = Object.assign({}, voe, t);
|
|
16678
16678
|
this[ws] = r.autoRender, delete t.autoRender;
|
|
16679
16679
|
const n = r.Renderer || Mt.Renderer;
|
|
16680
|
-
this[Ts] = new n(e, r), Moe(this[Ts]), this.options = t, this.id = t.id, this[
|
|
16680
|
+
this[Ts] = new n(e, r), Moe(this[Ts]), this.options = t, this.id = t.id, this[_r] = [], this.setResolution(e), this.canvas = e, this[xg] = new ky(), this[Yn] = !1, this.__mouseCapturedTarget = null, this[wn] = null;
|
|
16681
16681
|
}
|
|
16682
16682
|
get autoRender() {
|
|
16683
16683
|
return this[ws];
|
|
@@ -16702,7 +16702,7 @@ let ii = class extends wt {
|
|
|
16702
16702
|
return !!this.options.offscreen || this.canvas._offscreen;
|
|
16703
16703
|
}
|
|
16704
16704
|
get pass() {
|
|
16705
|
-
return this[
|
|
16705
|
+
return this[_r];
|
|
16706
16706
|
}
|
|
16707
16707
|
get prepareRender() {
|
|
16708
16708
|
return this[Wt] ? this[Wt] : Promise.resolve();
|
|
@@ -16770,7 +16770,7 @@ let ii = class extends wt {
|
|
|
16770
16770
|
t = t || o;
|
|
16771
16771
|
}
|
|
16772
16772
|
};
|
|
16773
|
-
this[$n] = [], this.__mouseCapturedTarget = null, e(() => this.cancelPendingRender()), e(() => this.removeAllChildren()), e(() => this.deactivateAnimations()), this[
|
|
16773
|
+
this[$n] = [], this.__mouseCapturedTarget = null, e(() => this.cancelPendingRender()), e(() => this.removeAllChildren()), e(() => this.deactivateAnimations()), this[_r] = [], this[Mn] = null;
|
|
16774
16774
|
const r = this.renderer.glRenderer;
|
|
16775
16775
|
let n = [];
|
|
16776
16776
|
if (r && r.programs && (e(() => {
|
|
@@ -16798,7 +16798,7 @@ let ii = class extends wt {
|
|
|
16798
16798
|
}), c = new Mt.Figure2D();
|
|
16799
16799
|
c.rect(0, 0, i / this.displayRatio, o / this.displayRatio);
|
|
16800
16800
|
const l = new Mt.Mesh2D(c);
|
|
16801
|
-
return l.setUniforms(n), l.setProgram(a), this[
|
|
16801
|
+
return l.setUniforms(n), l.setProgram(a), this[_r].push(l), this.forceUpdate(), l;
|
|
16802
16802
|
}
|
|
16803
16803
|
return null;
|
|
16804
16804
|
}
|
|
@@ -16901,7 +16901,7 @@ let ii = class extends wt {
|
|
|
16901
16901
|
const t = this.renderer, e = t.__globalTransformMatrix || t.globalTransformMatrix;
|
|
16902
16902
|
t.__globalTransformMatrix = e;
|
|
16903
16903
|
const r = ci(1, 0, 0, 1, 0, 0);
|
|
16904
|
-
t.setGlobalTransform(
|
|
16904
|
+
t.setGlobalTransform(...Vr(r, e, this.transformMatrix));
|
|
16905
16905
|
}
|
|
16906
16906
|
}
|
|
16907
16907
|
/* override */
|
|
@@ -16926,15 +16926,15 @@ let ii = class extends wt {
|
|
|
16926
16926
|
} = {}) {
|
|
16927
16927
|
if (!this[Yn])
|
|
16928
16928
|
try {
|
|
16929
|
-
const e = this[
|
|
16929
|
+
const e = this[_r].length ? this.getFBO() : null;
|
|
16930
16930
|
e && this.renderer.glRenderer.bindFBO(e.target), t && this[Ts].clear();
|
|
16931
16931
|
const r = this.draw();
|
|
16932
16932
|
if (r && r.length && (this.renderer.drawMeshes(r), this.canvas.draw && this.canvas.draw()), e) {
|
|
16933
|
-
const n = this.renderer.glRenderer, i = this[
|
|
16933
|
+
const n = this.renderer.glRenderer, i = this[_r].length, {
|
|
16934
16934
|
width: o,
|
|
16935
16935
|
height: a
|
|
16936
16936
|
} = this.getResolution(), c = [0, 0, o / this.displayRatio, a / this.displayRatio];
|
|
16937
|
-
this[
|
|
16937
|
+
this[_r].forEach((l, u) => {
|
|
16938
16938
|
l.blend = !0, l.setTexture(e.target.texture, {
|
|
16939
16939
|
rect: c
|
|
16940
16940
|
}), u === i - 1 ? n.bindFBO(null) : (e.swap(), n.bindFBO(e.target)), this[Ts].clear(), this.renderer.drawMeshes([l]);
|
|
@@ -16956,7 +16956,7 @@ let ii = class extends wt {
|
|
|
16956
16956
|
(c !== t || l !== e) && (super.setResolution({
|
|
16957
16957
|
width: t,
|
|
16958
16958
|
height: e
|
|
16959
|
-
}), this.canvas && (this.canvas.width = t, this.canvas.height = e, r.updateResolution && r.updateResolution()), this.attributes.size = [t, e], this[
|
|
16959
|
+
}), this.canvas && (this.canvas.width = t, this.canvas.height = e, r.updateResolution && r.updateResolution()), this.attributes.size = [t, e], this[_r].length && this[_r].forEach((f) => {
|
|
16960
16960
|
const g = new Mt.Figure2D();
|
|
16961
16961
|
g.rect(0, 0, t / this.displayRatio, e / this.displayRatio), f.contours = g.contours;
|
|
16962
16962
|
}));
|
|
@@ -18031,7 +18031,7 @@ let xc = class extends ih {
|
|
|
18031
18031
|
}
|
|
18032
18032
|
};
|
|
18033
18033
|
et(Array);
|
|
18034
|
-
const
|
|
18034
|
+
const en = Symbol("mesh");
|
|
18035
18035
|
class Xt extends Mc {
|
|
18036
18036
|
constructor(t = {}) {
|
|
18037
18037
|
typeof t == "string" && (t = {
|
|
@@ -18054,7 +18054,7 @@ class Xt extends Mc {
|
|
|
18054
18054
|
if (this.attributes.display === "none") return null;
|
|
18055
18055
|
const t = this.path;
|
|
18056
18056
|
if (t) {
|
|
18057
|
-
let e = this[
|
|
18057
|
+
let e = this[en];
|
|
18058
18058
|
if (e)
|
|
18059
18059
|
e.path !== t && (e.contours = t.contours, e.path = t);
|
|
18060
18060
|
else {
|
|
@@ -18085,9 +18085,9 @@ class Xt extends Mc {
|
|
|
18085
18085
|
roundSegments: g
|
|
18086
18086
|
});
|
|
18087
18087
|
}
|
|
18088
|
-
this[
|
|
18088
|
+
this[en] = e;
|
|
18089
18089
|
const c = this.attributes.clipPath;
|
|
18090
|
-
c && this[
|
|
18090
|
+
c && this[en].setClipPath(c);
|
|
18091
18091
|
}
|
|
18092
18092
|
const r = this.opacity;
|
|
18093
18093
|
return e.getOpacity() !== r && e.setOpacity(r), e.setTransform(...this.renderMatrix), e;
|
|
@@ -18140,17 +18140,17 @@ class Xt extends Mc {
|
|
|
18140
18140
|
}
|
|
18141
18141
|
/* override */
|
|
18142
18142
|
onPropertyChange(t, e, r) {
|
|
18143
|
-
if (super.onPropertyChange(t, e, r), (t === "d" || t === "normalize") && this.updateContours(), this[
|
|
18143
|
+
if (super.onPropertyChange(t, e, r), (t === "d" || t === "normalize") && this.updateContours(), this[en] && (t === "fillColor" || t === "fillRule")) {
|
|
18144
18144
|
const {
|
|
18145
18145
|
fillColor: n,
|
|
18146
18146
|
fillRule: i
|
|
18147
18147
|
} = this.attributes;
|
|
18148
|
-
Pa(this[
|
|
18148
|
+
Pa(this[en], {
|
|
18149
18149
|
color: n,
|
|
18150
18150
|
rule: i
|
|
18151
18151
|
});
|
|
18152
18152
|
}
|
|
18153
|
-
if (this[
|
|
18153
|
+
if (this[en] && (t === "strokeColor" || t === "lineWidth" || t === "lineCap" || t === "lineJoin" || t === "lineDash" || t === "lineDashOffset" || t === "roundSegments")) {
|
|
18154
18154
|
const {
|
|
18155
18155
|
strokeColor: n,
|
|
18156
18156
|
lineWidth: i
|
|
@@ -18164,7 +18164,7 @@ class Xt extends Mc {
|
|
|
18164
18164
|
miterLimit: u,
|
|
18165
18165
|
roundSegments: h
|
|
18166
18166
|
} = this.attributes;
|
|
18167
|
-
Da(this[
|
|
18167
|
+
Da(this[en], {
|
|
18168
18168
|
color: n,
|
|
18169
18169
|
lineCap: o,
|
|
18170
18170
|
lineJoin: a,
|
|
@@ -18176,7 +18176,7 @@ class Xt extends Mc {
|
|
|
18176
18176
|
});
|
|
18177
18177
|
}
|
|
18178
18178
|
}
|
|
18179
|
-
this[
|
|
18179
|
+
this[en] && t === "clipPath" && this[en].setClipPath(e), t === "texture" && Ev(this, e);
|
|
18180
18180
|
}
|
|
18181
18181
|
/* override */
|
|
18182
18182
|
updateContours() {
|
|
@@ -18914,7 +18914,7 @@ var Ci = sae;
|
|
|
18914
18914
|
function oae(s) {
|
|
18915
18915
|
return s != null && typeof s == "object";
|
|
18916
18916
|
}
|
|
18917
|
-
var
|
|
18917
|
+
var Yr = oae, aae = Ci, cae = Yr, lae = "[object Number]";
|
|
18918
18918
|
function uae(s) {
|
|
18919
18919
|
return typeof s == "number" || cae(s) && aae(s) == lae;
|
|
18920
18920
|
}
|
|
@@ -19190,11 +19190,11 @@ function Xle(s, t) {
|
|
|
19190
19190
|
r[e] = t(e);
|
|
19191
19191
|
return r;
|
|
19192
19192
|
}
|
|
19193
|
-
var Jle = Xle, _le = Ci, eue =
|
|
19193
|
+
var Jle = Xle, _le = Ci, eue = Yr, tue = "[object Arguments]";
|
|
19194
19194
|
function rue(s) {
|
|
19195
19195
|
return eue(s) && _le(s) == tue;
|
|
19196
19196
|
}
|
|
19197
|
-
var nue = rue, Wg = nue, iue =
|
|
19197
|
+
var nue = rue, Wg = nue, iue = Yr, Wv = Object.prototype, sue = Wv.hasOwnProperty, oue = Wv.propertyIsEnumerable, aue = Wg(/* @__PURE__ */ function() {
|
|
19198
19198
|
return arguments;
|
|
19199
19199
|
}()) ? Wg : function(s) {
|
|
19200
19200
|
return iue(s) && sue.call(s, "callee") && !oue.call(s, "callee");
|
|
@@ -19217,7 +19217,7 @@ var gue = fue, pue = 9007199254740991;
|
|
|
19217
19217
|
function mue(s) {
|
|
19218
19218
|
return typeof s == "number" && s > -1 && s % 1 == 0 && s <= pue;
|
|
19219
19219
|
}
|
|
19220
|
-
var $v = mue, yue = Ci, vue = $v, Mue =
|
|
19220
|
+
var $v = mue, yue = Ci, vue = $v, Mue = Yr, wue = "[object Arguments]", Tue = "[object Array]", Sue = "[object Boolean]", Iue = "[object Date]", Cue = "[object Error]", bue = "[object Function]", Eue = "[object Map]", xue = "[object Number]", Rue = "[object Object]", Aue = "[object RegExp]", kue = "[object Set]", Pue = "[object String]", Due = "[object WeakMap]", Lue = "[object ArrayBuffer]", Nue = "[object DataView]", Oue = "[object Float32Array]", zue = "[object Float64Array]", Bue = "[object Int8Array]", jue = "[object Int16Array]", Fue = "[object Int32Array]", Uue = "[object Uint8Array]", Wue = "[object Uint8ClampedArray]", Vue = "[object Uint16Array]", $ue = "[object Uint32Array]", gt = {};
|
|
19221
19221
|
gt[Oue] = gt[zue] = gt[Bue] = gt[jue] = gt[Fue] = gt[Uue] = gt[Wue] = gt[Vue] = gt[$ue] = !0;
|
|
19222
19222
|
gt[wue] = gt[Tue] = gt[Lue] = gt[Sue] = gt[Nue] = gt[Iue] = gt[Cue] = gt[bue] = gt[Eue] = gt[xue] = gt[Rue] = gt[Aue] = gt[kue] = gt[Pue] = gt[Due] = !1;
|
|
19223
19223
|
function Yue(s) {
|
|
@@ -19472,11 +19472,11 @@ var Ufe = Ffe, Wfe = Bn, ep = Object.create, Vfe = /* @__PURE__ */ function() {
|
|
|
19472
19472
|
function Qfe(s) {
|
|
19473
19473
|
return typeof s.constructor == "function" && !Hfe(s) ? Yfe(Gfe(s)) : {};
|
|
19474
19474
|
}
|
|
19475
|
-
var qfe = Qfe, Zfe = Oc, Kfe =
|
|
19475
|
+
var qfe = Qfe, Zfe = Oc, Kfe = Yr, Xfe = "[object Map]";
|
|
19476
19476
|
function Jfe(s) {
|
|
19477
19477
|
return Kfe(s) && Zfe(s) == Xfe;
|
|
19478
19478
|
}
|
|
19479
|
-
var _fe = Jfe, ege = _fe, tge = Nc, tp = Xh, rp = tp && tp.isMap, rge = rp ? tge(rp) : ege, nge = rge, ige = Oc, sge =
|
|
19479
|
+
var _fe = Jfe, ege = _fe, tge = Nc, tp = Xh, rp = tp && tp.isMap, rge = rp ? tge(rp) : ege, nge = rge, ige = Oc, sge = Yr, oge = "[object Set]";
|
|
19480
19480
|
function age(s) {
|
|
19481
19481
|
return sge(s) && ige(s) == oge;
|
|
19482
19482
|
}
|
|
@@ -19809,7 +19809,7 @@ const ppe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrA
|
|
|
19809
19809
|
}
|
|
19810
19810
|
],
|
|
19811
19811
|
["clicker", { key: "clicker", standardResolution: vpe }]
|
|
19812
|
-
]),
|
|
19812
|
+
]), nn = {
|
|
19813
19813
|
enable: !0,
|
|
19814
19814
|
expirationTime: 5e3,
|
|
19815
19815
|
moveDelayTime: 40,
|
|
@@ -19826,16 +19826,16 @@ function ad(s) {
|
|
|
19826
19826
|
var e, r, n, i;
|
|
19827
19827
|
const t = { ...s == null ? void 0 : s.appearance };
|
|
19828
19828
|
return delete t[Pe.hand], delete t[Pe.laserPointer], {
|
|
19829
|
-
enable: (s == null ? void 0 : s.enable) ??
|
|
19830
|
-
expirationTime: (s == null ? void 0 : s.expirationTime) ??
|
|
19831
|
-
moveDelayTime: (s == null ? void 0 : s.moveDelayTime) ??
|
|
19832
|
-
preloadTimeout: typeof (s == null ? void 0 : s.preloadTimeout) == "number" && Number.isFinite(s.preloadTimeout) && s.preloadTimeout > 0 ? s.preloadTimeout :
|
|
19829
|
+
enable: (s == null ? void 0 : s.enable) ?? nn.enable,
|
|
19830
|
+
expirationTime: (s == null ? void 0 : s.expirationTime) ?? nn.expirationTime,
|
|
19831
|
+
moveDelayTime: (s == null ? void 0 : s.moveDelayTime) ?? nn.moveDelayTime,
|
|
19832
|
+
preloadTimeout: typeof (s == null ? void 0 : s.preloadTimeout) == "number" && Number.isFinite(s.preloadTimeout) && s.preloadTimeout > 0 ? s.preloadTimeout : nn.preloadTimeout,
|
|
19833
19833
|
appearance: t,
|
|
19834
19834
|
syncedLabel: {
|
|
19835
|
-
enableShowName: ((e = s == null ? void 0 : s.syncedLabel) == null ? void 0 : e.enableShowName) ??
|
|
19836
|
-
placement: ((r = s == null ? void 0 : s.syncedLabel) == null ? void 0 : r.placement) ??
|
|
19837
|
-
gap: ((n = s == null ? void 0 : s.syncedLabel) == null ? void 0 : n.gap) ??
|
|
19838
|
-
maxWidth: ((i = s == null ? void 0 : s.syncedLabel) == null ? void 0 : i.maxWidth) ??
|
|
19835
|
+
enableShowName: ((e = s == null ? void 0 : s.syncedLabel) == null ? void 0 : e.enableShowName) ?? nn.syncedLabel.enableShowName,
|
|
19836
|
+
placement: ((r = s == null ? void 0 : s.syncedLabel) == null ? void 0 : r.placement) ?? nn.syncedLabel.placement,
|
|
19837
|
+
gap: ((n = s == null ? void 0 : s.syncedLabel) == null ? void 0 : n.gap) ?? nn.syncedLabel.gap,
|
|
19838
|
+
maxWidth: ((i = s == null ? void 0 : s.syncedLabel) == null ? void 0 : i.maxWidth) ?? nn.syncedLabel.maxWidth
|
|
19839
19839
|
}
|
|
19840
19840
|
};
|
|
19841
19841
|
}
|
|
@@ -19854,7 +19854,7 @@ const o0 = 500;
|
|
|
19854
19854
|
function zc(s) {
|
|
19855
19855
|
return typeof s != "number" || !Number.isFinite(s) || s <= 0 ? o0 : Math.max(1, Math.floor(s));
|
|
19856
19856
|
}
|
|
19857
|
-
const Bc = "1.1.43-beta.
|
|
19857
|
+
const Bc = "1.1.43-beta.4", Ipe = "@netless/appliance-plugin", Cpe = "c56723423ed81140", ju = 5e3, bpe = 1e4, Epe = 1e4;
|
|
19858
19858
|
if (typeof window < "u") {
|
|
19859
19859
|
let s = window.__netlessUA || "";
|
|
19860
19860
|
s += ` ${Ipe}@${Bc}`, window.__netlessUA = s;
|
|
@@ -19862,11 +19862,7 @@ if (typeof window < "u") {
|
|
|
19862
19862
|
const Ke = {
|
|
19863
19863
|
useWorker: "auto",
|
|
19864
19864
|
useSimple: !0,
|
|
19865
|
-
workerRenderModeBlacklist: {
|
|
19866
|
-
androidWebView: {
|
|
19867
|
-
67: jr.MainThread
|
|
19868
|
-
}
|
|
19869
|
-
},
|
|
19865
|
+
workerRenderModeBlacklist: {},
|
|
19870
19866
|
workerCanvasContextBlacklist: {},
|
|
19871
19867
|
workerMaskTextureFormatBlacklist: {},
|
|
19872
19868
|
workerMaskTextureUploadBlacklist: {},
|
|
@@ -19884,7 +19880,7 @@ const Ke = {
|
|
|
19884
19880
|
batchWindowMs: 4e3
|
|
19885
19881
|
},
|
|
19886
19882
|
cursor: {
|
|
19887
|
-
...
|
|
19883
|
+
...nn
|
|
19888
19884
|
},
|
|
19889
19885
|
bufferSize: {
|
|
19890
19886
|
full: 4e3,
|
|
@@ -20413,7 +20409,7 @@ function $pe(s) {
|
|
|
20413
20409
|
const t = s.replace(/-/g, "+").replace(/_/g, "/").padEnd(Math.ceil(s.length / 4) * 4, "="), e = atob(t);
|
|
20414
20410
|
return Uint8Array.from(e, (r) => r.charCodeAt(0));
|
|
20415
20411
|
}
|
|
20416
|
-
function
|
|
20412
|
+
function Wr(s, t = !0) {
|
|
20417
20413
|
const e = s.length;
|
|
20418
20414
|
if (e < 2)
|
|
20419
20415
|
return "";
|
|
@@ -20819,7 +20815,7 @@ const ft = Object.keys, gp = /* @__PURE__ */ new WeakMap(), tr = class tr {
|
|
|
20819
20815
|
for (const i of e) {
|
|
20820
20816
|
const { thickness: o, op: a } = i;
|
|
20821
20817
|
for (const c of a) {
|
|
20822
|
-
const l = c.map((g, y) => y % 2 ? g - r[1] : g - r[0]), u = this.computEraserPoints(l, o), h =
|
|
20818
|
+
const l = c.map((g, y) => y % 2 ? g - r[1] : g - r[0]), u = this.computEraserPoints(l, o), h = Wr(u, !0), d = {
|
|
20823
20819
|
pos: [0, 0],
|
|
20824
20820
|
d: h,
|
|
20825
20821
|
fillColor: "rgba(0,0,0,1)"
|
|
@@ -20842,7 +20838,7 @@ const ft = Object.keys, gp = /* @__PURE__ */ new WeakMap(), tr = class tr {
|
|
|
20842
20838
|
addEraserFaces(t, e, r, n = !0) {
|
|
20843
20839
|
const i = Wa(e).flatMap(
|
|
20844
20840
|
(a) => a.rings.map(
|
|
20845
|
-
(c) =>
|
|
20841
|
+
(c) => Wr(
|
|
20846
20842
|
c.map(([l, u]) => new ke(l - r[0], u - r[1])),
|
|
20847
20843
|
!0
|
|
20848
20844
|
)
|
|
@@ -21549,7 +21545,7 @@ class p0 extends Ee {
|
|
|
21549
21545
|
const { pos: D, points: z } = n[P], { ps: j, rect: k } = this.computDrawPoints(z);
|
|
21550
21546
|
let A;
|
|
21551
21547
|
const N = z.length === 1;
|
|
21552
|
-
h === ze.Stroke || N ? A =
|
|
21548
|
+
h === ze.Stroke || N ? A = Wr(j, !0) : A = Wr(j, !1);
|
|
21553
21549
|
const W = {
|
|
21554
21550
|
pos: D,
|
|
21555
21551
|
d: A,
|
|
@@ -22102,7 +22098,7 @@ class m0 extends Ee {
|
|
|
22102
22098
|
for (const c of n) {
|
|
22103
22099
|
const l = new Xt(), { pos: u, points: h } = c;
|
|
22104
22100
|
let d;
|
|
22105
|
-
i ? d =
|
|
22101
|
+
i ? d = Wr(h, !0) : d = Wr(h, !1), l.attr({
|
|
22106
22102
|
...r,
|
|
22107
22103
|
pos: u,
|
|
22108
22104
|
d
|
|
@@ -22479,7 +22475,7 @@ function Zme(s, t, e, r, n, i) {
|
|
|
22479
22475
|
}
|
|
22480
22476
|
return d ? (i || (i = new Vl()), Gme(s, t, e, r, n, i)) : !1;
|
|
22481
22477
|
}
|
|
22482
|
-
var Kme = Zme, Xme = Kme, xp =
|
|
22478
|
+
var Kme = Zme, Xme = Kme, xp = Yr;
|
|
22483
22479
|
function v0(s, t, e, r, n) {
|
|
22484
22480
|
return s === t ? !0 : s == null || t == null || !xp(s) && !xp(t) ? s !== s && t !== t : Xme(s, t, e, r, v0, n);
|
|
22485
22481
|
}
|
|
@@ -25102,7 +25098,7 @@ class C0 extends Ee {
|
|
|
25102
25098
|
return r.tagName === "GROUP" && (f = r.children[0]), o && (f.setAttribute("strokeColor", o), d != null && d.strokeColor && (d.strokeColor = o)), a && (a === "transparent" ? f.setAttribute("fillColor", "rgba(0,0,0,0)") : f.setAttribute("fillColor", a), d != null && d.fillColor && (d.fillColor = a)), c === Q.SpeechBalloon && l && (d.placement = l), u && (h != null && h.opt) && ((g = h.opt) != null && g.strokeType) && (h.opt.strokeType = u), h && i.setInfo(r.name, { ...h, opt: d }), Ee.updateNodeOpt(e);
|
|
25103
25099
|
}
|
|
25104
25100
|
}
|
|
25105
|
-
var rye = Ci, nye =
|
|
25101
|
+
var rye = Ci, nye = Yr, iye = "[object Boolean]";
|
|
25106
25102
|
function sye(s) {
|
|
25107
25103
|
return s === !0 || s === !1 || nye(s) && rye(s) == iye;
|
|
25108
25104
|
}
|
|
@@ -25322,7 +25318,7 @@ class b0 extends Ee {
|
|
|
25322
25318
|
...h
|
|
25323
25319
|
];
|
|
25324
25320
|
let f;
|
|
25325
|
-
return r !== ze.Normal ? f =
|
|
25321
|
+
return r !== ze.Normal ? f = Wr(this.tmpPoints, !1) : f = Wr(d, !0), {
|
|
25326
25322
|
d: f,
|
|
25327
25323
|
rect: ut(d),
|
|
25328
25324
|
isDot: !1,
|
|
@@ -25336,7 +25332,7 @@ class b0 extends Ee {
|
|
|
25336
25332
|
8
|
|
25337
25333
|
);
|
|
25338
25334
|
return {
|
|
25339
|
-
d:
|
|
25335
|
+
d: Wr(r, !0),
|
|
25340
25336
|
rect: ut(r),
|
|
25341
25337
|
isDot: !0,
|
|
25342
25338
|
pos: this.tmpPoints[0].XY
|
|
@@ -27130,7 +27126,7 @@ const _a = class _a extends Ee {
|
|
|
27130
27126
|
if (!e.length) return;
|
|
27131
27127
|
const n = this.computEraserPointLines(e).map((c) => {
|
|
27132
27128
|
const l = c.flatMap(([u, h]) => [u, h]);
|
|
27133
|
-
return
|
|
27129
|
+
return Wr(
|
|
27134
27130
|
this.computEraserPoints(l, r),
|
|
27135
27131
|
!0
|
|
27136
27132
|
);
|
|
@@ -29209,7 +29205,7 @@ function R0e(s, t, e) {
|
|
|
29209
29205
|
a != n && (i[n] = E0e(i[n] || o, s[a], t, e));
|
|
29210
29206
|
return $p(x0e(i, 1), t, e);
|
|
29211
29207
|
}
|
|
29212
|
-
var A0e = R0e, k0e = _h, P0e =
|
|
29208
|
+
var A0e = R0e, k0e = _h, P0e = Yr;
|
|
29213
29209
|
function D0e(s) {
|
|
29214
29210
|
return P0e(s) && k0e(s);
|
|
29215
29211
|
}
|
|
@@ -30521,7 +30517,7 @@ function Bi(s, t) {
|
|
|
30521
30517
|
function Ka(s) {
|
|
30522
30518
|
return +s.toFixed(4);
|
|
30523
30519
|
}
|
|
30524
|
-
const
|
|
30520
|
+
const Ur = async (s, t, e = !1) => {
|
|
30525
30521
|
let r, n;
|
|
30526
30522
|
return new Promise(function(i) {
|
|
30527
30523
|
if (e && requestIdleCallback)
|
|
@@ -31099,7 +31095,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31099
31095
|
(P) => this.bumpStorageRevision(y, P)
|
|
31100
31096
|
) : this.bumpStorageRevision(y), this.runSyncService({ isSync: f, viewId: y });
|
|
31101
31097
|
}
|
|
31102
|
-
|
|
31098
|
+
Ur(
|
|
31103
31099
|
() => {
|
|
31104
31100
|
var b, P;
|
|
31105
31101
|
this.canRunSync(y) && ((b = this.control.pluginManager) == null || b.dispatchPluginEvent(
|
|
@@ -31196,7 +31192,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31196
31192
|
E(b.toString());
|
|
31197
31193
|
}
|
|
31198
31194
|
}
|
|
31199
|
-
),
|
|
31195
|
+
), Ur(
|
|
31200
31196
|
() => {
|
|
31201
31197
|
var A, N;
|
|
31202
31198
|
this.canRunSync(y) && ((A = this.control.pluginManager) == null || A.dispatchPluginEvent(
|
|
@@ -31230,7 +31226,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31230
31226
|
"syncStorage",
|
|
31231
31227
|
y,
|
|
31232
31228
|
g
|
|
31233
|
-
), this.control.isUseSimple ||
|
|
31229
|
+
), this.control.isUseSimple || Ur(
|
|
31234
31230
|
() => {
|
|
31235
31231
|
var z;
|
|
31236
31232
|
this.canRunSync(y) && ((z = this.control.miniMapManager) == null || z.updateMiniMapCamera(y));
|
|
@@ -31250,7 +31246,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31250
31246
|
viewId: y,
|
|
31251
31247
|
scenePath: g,
|
|
31252
31248
|
onApplied: () => E(b.toString())
|
|
31253
|
-
}), this.control.isUseSimple ||
|
|
31249
|
+
}), this.control.isUseSimple || Ur(
|
|
31254
31250
|
() => {
|
|
31255
31251
|
var D;
|
|
31256
31252
|
this.canRunSync(y) && ((D = this.control.miniMapManager) == null || D.updateMiniMapCamera(y));
|
|
@@ -31355,7 +31351,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31355
31351
|
this.pendingSyncStorage = void 0, this.syncSerivice({ storage: r });
|
|
31356
31352
|
return;
|
|
31357
31353
|
}
|
|
31358
|
-
this.asyncClockState || (this.asyncClockState = !0,
|
|
31354
|
+
this.asyncClockState || (this.asyncClockState = !0, Ur(
|
|
31359
31355
|
() => {
|
|
31360
31356
|
if (this.asyncClockState = !1, this.destroyed) return;
|
|
31361
31357
|
const r = [...this.pendingSyncViews].filter(
|
|
@@ -31715,7 +31711,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31715
31711
|
const { operation: n, viewId: i, uid: o, renderData: a, isClear: c } = e;
|
|
31716
31712
|
if (i)
|
|
31717
31713
|
switch (n) {
|
|
31718
|
-
case
|
|
31714
|
+
case jr.setAuth: {
|
|
31719
31715
|
if (!a || a.render === void 0 && a.hide === void 0 && a.clear === void 0) {
|
|
31720
31716
|
this.authStorage.renderAuth && this.authStorage.renderAuth[i] && (delete this.authStorage.renderAuth[i], r && ((l = this.plugin) == null || l.updateAttributes(
|
|
31721
31717
|
[this.authSpace, "renderAuth", i],
|
|
@@ -31758,7 +31754,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31758
31754
|
));
|
|
31759
31755
|
return;
|
|
31760
31756
|
}
|
|
31761
|
-
case
|
|
31757
|
+
case jr.setShow: {
|
|
31762
31758
|
if (!o)
|
|
31763
31759
|
return;
|
|
31764
31760
|
const z = [this.authSpace];
|
|
@@ -31776,7 +31772,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31776
31772
|
) : (I = this.plugin) == null || I.updateAttributes(z, !0));
|
|
31777
31773
|
return;
|
|
31778
31774
|
}
|
|
31779
|
-
case
|
|
31775
|
+
case jr.setHide: {
|
|
31780
31776
|
if (!o)
|
|
31781
31777
|
return;
|
|
31782
31778
|
const z = [this.authSpace];
|
|
@@ -31794,7 +31790,7 @@ const iMe = /* @__PURE__ */ new Set([
|
|
|
31794
31790
|
) : (v = this.plugin) == null || v.updateAttributes(z, !0));
|
|
31795
31791
|
return;
|
|
31796
31792
|
}
|
|
31797
|
-
case
|
|
31793
|
+
case jr.setClear: {
|
|
31798
31794
|
if (!o)
|
|
31799
31795
|
return;
|
|
31800
31796
|
const z = [this.authSpace];
|
|
@@ -32344,7 +32340,7 @@ class Tr {
|
|
|
32344
32340
|
(i = this.mainEngine) == null || i.runAnimation();
|
|
32345
32341
|
}
|
|
32346
32342
|
collectForServiceWorker(t) {
|
|
32347
|
-
|
|
32343
|
+
Ur(
|
|
32348
32344
|
() => {
|
|
32349
32345
|
t.forEach((e) => {
|
|
32350
32346
|
var r;
|
|
@@ -34007,7 +34003,7 @@ function Z0(s, t) {
|
|
|
34007
34003
|
if (!Number.isInteger(s)) return !1;
|
|
34008
34004
|
switch (t) {
|
|
34009
34005
|
case "renderMode":
|
|
34010
|
-
return s ===
|
|
34006
|
+
return s === an.OffscreenTransfer || s === an.ImageBitmap || s === an.MainThread;
|
|
34011
34007
|
case "canvasContext":
|
|
34012
34008
|
return s === th.WebGL;
|
|
34013
34009
|
case "maskTextureFormat":
|
|
@@ -34172,13 +34168,13 @@ function OMe(s) {
|
|
|
34172
34168
|
const u = o.level, h = a.level, d = c.level;
|
|
34173
34169
|
xMe(t, r) && (l = Math.max(
|
|
34174
34170
|
l || 0,
|
|
34175
|
-
|
|
34171
|
+
an.OffscreenTransfer
|
|
34176
34172
|
), n.push(
|
|
34177
34173
|
`compatibility-policy:${TMe}:skip-offscreen-transfer`
|
|
34178
34174
|
));
|
|
34179
34175
|
const f = (y, T) => ({
|
|
34180
34176
|
renderMode: y,
|
|
34181
|
-
mainThreadRenderMode: l ===
|
|
34177
|
+
mainThreadRenderMode: l === an.MainThread ? "readback" : "normal",
|
|
34182
34178
|
contextType: NMe(
|
|
34183
34179
|
y,
|
|
34184
34180
|
s.requestedContextType,
|
|
@@ -34198,12 +34194,12 @@ function OMe(s) {
|
|
|
34198
34194
|
return f("main-thread", "use-worker-main-thread");
|
|
34199
34195
|
if (!e.worker || !e.offscreenCanvas || !e.workerUrl)
|
|
34200
34196
|
return f("main-thread", "worker-capability-missing");
|
|
34201
|
-
if (l !== void 0 && l >=
|
|
34197
|
+
if (l !== void 0 && l >= an.ImageBitmap)
|
|
34202
34198
|
return f("main-thread", "render-mode-blacklist");
|
|
34203
|
-
if (!(!s.useSimple || l !== void 0 && l >=
|
|
34199
|
+
if (!(!s.useSimple || l !== void 0 && l >= an.OffscreenTransfer) && e.offscreenTransfer)
|
|
34204
34200
|
return f("worker-offscreen-transfer", "default-offscreen-transfer");
|
|
34205
34201
|
if (e.imageBitmap) {
|
|
34206
|
-
const y = l ===
|
|
34202
|
+
const y = l === an.OffscreenTransfer ? "render-mode-blacklist" : s.useSimple ? "worker-capability-missing" : "use-simple-false";
|
|
34207
34203
|
return f("worker-image-bitmap", y);
|
|
34208
34204
|
}
|
|
34209
34205
|
return f("main-thread", "image-bitmap-unavailable");
|
|
@@ -35658,7 +35654,7 @@ function Owe(s) {
|
|
|
35658
35654
|
), typeof globalThis.requestAnimationFrame == "function" && (n = globalThis.requestAnimationFrame(o));
|
|
35659
35655
|
});
|
|
35660
35656
|
}
|
|
35661
|
-
function
|
|
35657
|
+
function tn(s, t) {
|
|
35662
35658
|
var e, r;
|
|
35663
35659
|
return ((e = s.getRenderContextTypeForView) == null ? void 0 : e.call(s, t)) ?? ((r = s.renderingCompatibilityDecision) == null ? void 0 : r.contextType) ?? "2d";
|
|
35664
35660
|
}
|
|
@@ -36027,7 +36023,7 @@ class jwe extends Bwe {
|
|
|
36027
36023
|
}
|
|
36028
36024
|
ackMainViewInit(e, r, n) {
|
|
36029
36025
|
var d;
|
|
36030
|
-
const i = this.viewGenerationById.get(e), o =
|
|
36026
|
+
const i = this.viewGenerationById.get(e), o = tn(this.control, e), a = er(
|
|
36031
36027
|
this.control.renderMode,
|
|
36032
36028
|
o
|
|
36033
36029
|
);
|
|
@@ -36389,9 +36385,9 @@ class jwe extends Bwe {
|
|
|
36389
36385
|
details: {
|
|
36390
36386
|
renderModel: er(
|
|
36391
36387
|
this.control.renderMode,
|
|
36392
|
-
|
|
36388
|
+
tn(this.control, r.viewId)
|
|
36393
36389
|
),
|
|
36394
|
-
context:
|
|
36390
|
+
context: tn(this.control, r.viewId),
|
|
36395
36391
|
source: this.control.renderingCompatibilityDecision.renderRuntimeSource || "config"
|
|
36396
36392
|
}
|
|
36397
36393
|
});
|
|
@@ -37351,12 +37347,12 @@ class jwe extends Bwe {
|
|
|
37351
37347
|
}
|
|
37352
37348
|
async useBackgroundThread() {
|
|
37353
37349
|
this.Logger.info("[Appliance]: use background thread");
|
|
37354
|
-
const { BackgroundThreadManagerImpl: e } = await import("./index-
|
|
37350
|
+
const { BackgroundThreadManagerImpl: e } = await import("./index-CkNSIdPz.mjs");
|
|
37355
37351
|
this.backgroundThreadManager = new e(this);
|
|
37356
37352
|
}
|
|
37357
37353
|
async useMainThread() {
|
|
37358
37354
|
this.Logger.info("[Appliance]: no OffscreenCanvas");
|
|
37359
|
-
const { MainThreadManagerImpl: e } = await import("./index-
|
|
37355
|
+
const { MainThreadManagerImpl: e } = await import("./index-ARINqocW.mjs");
|
|
37360
37356
|
this.mainThread = new e(this), this.isRenderTransportReady = !0, this.flushPendingTransportInitMessages();
|
|
37361
37357
|
}
|
|
37362
37358
|
getRenderProbeCandidates() {
|
|
@@ -38817,13 +38813,13 @@ class jwe extends Bwe {
|
|
|
38817
38813
|
var O;
|
|
38818
38814
|
return this.isActive && this.initGeneration === Y && ((O = this.viewGenerationById) == null ? void 0 : O.get(b)) === H;
|
|
38819
38815
|
};
|
|
38820
|
-
P &&
|
|
38816
|
+
P && Ur(
|
|
38821
38817
|
() => {
|
|
38822
38818
|
ne() && this.setLockSentEventCursor(!1);
|
|
38823
38819
|
},
|
|
38824
38820
|
this.maxLastSyncTime,
|
|
38825
38821
|
this.control.hasPolyfillMethod("requestIdleCallback")
|
|
38826
|
-
), z && Number(z) &&
|
|
38822
|
+
), z && Number(z) && Ur(
|
|
38827
38823
|
() => {
|
|
38828
38824
|
ne() && this.internalMsgEmitter.emit(
|
|
38829
38825
|
"ackRenderUndoTicker",
|
|
@@ -39821,7 +39817,7 @@ class jwe extends Bwe {
|
|
|
39821
39817
|
}
|
|
39822
39818
|
break;
|
|
39823
39819
|
}
|
|
39824
|
-
this.isLocalWorkActive && this.viewContainerManager.focuedViewId === n && this.publicMsgEmitter.emit("workState", e, n),
|
|
39820
|
+
this.isLocalWorkActive && this.viewContainerManager.focuedViewId === n && this.publicMsgEmitter.emit("workState", e, n), Ur(
|
|
39825
39821
|
() => {
|
|
39826
39822
|
var I, L, S;
|
|
39827
39823
|
!this.isActive || this.initGeneration !== o || (((I = this.localInputEpochByView) == null ? void 0 : I.get(n)) || 0) !== a || ((L = this.viewGenerationById) == null ? void 0 : L.get(n)) !== l || (S = this.control.pluginManager) == null || S.dispatchPluginEvent(
|
|
@@ -39902,9 +39898,9 @@ class jwe extends Bwe {
|
|
|
39902
39898
|
details: {
|
|
39903
39899
|
renderModel: er(
|
|
39904
39900
|
this.control.renderMode,
|
|
39905
|
-
|
|
39901
|
+
tn(this.control, e)
|
|
39906
39902
|
),
|
|
39907
|
-
context:
|
|
39903
|
+
context: tn(this.control, e),
|
|
39908
39904
|
source: this.control.renderingCompatibilityDecision.renderRuntimeSource || "config"
|
|
39909
39905
|
}
|
|
39910
39906
|
}), this.pendingTransportMessages.delete(`destroy:${e}`);
|
|
@@ -39946,9 +39942,9 @@ class jwe extends Bwe {
|
|
|
39946
39942
|
details: {
|
|
39947
39943
|
renderModel: er(
|
|
39948
39944
|
this.control.renderMode,
|
|
39949
|
-
|
|
39945
|
+
tn(this.control, e)
|
|
39950
39946
|
),
|
|
39951
|
-
context:
|
|
39947
|
+
context: tn(this.control, e),
|
|
39952
39948
|
reason: "transport-not-ready"
|
|
39953
39949
|
}
|
|
39954
39950
|
});
|
|
@@ -39962,9 +39958,9 @@ class jwe extends Bwe {
|
|
|
39962
39958
|
details: {
|
|
39963
39959
|
renderModel: er(
|
|
39964
39960
|
this.control.renderMode,
|
|
39965
|
-
|
|
39961
|
+
tn(this.control, e)
|
|
39966
39962
|
),
|
|
39967
|
-
context:
|
|
39963
|
+
context: tn(this.control, e),
|
|
39968
39964
|
source: this.control.renderingCompatibilityDecision.renderRuntimeSource || "config"
|
|
39969
39965
|
}
|
|
39970
39966
|
}), (y = this.cameraUpdateStateByView.get(e)) != null && y.isRecovering || this.cameraUpdateDestroy(e), this.armViewInitAckTimeout(e, i), this.post(/* @__PURE__ */ new Set([h])), this.taskBatchData.size && this.consume();
|
|
@@ -42625,7 +42621,7 @@ class Zwe {
|
|
|
42625
42621
|
this.renderUids.delete(e);
|
|
42626
42622
|
n && ((o = this.control.collector) == null || o.dispatchRenderAuth(
|
|
42627
42623
|
{
|
|
42628
|
-
operation:
|
|
42624
|
+
operation: jr.setAuth,
|
|
42629
42625
|
viewId: e,
|
|
42630
42626
|
renderData: i
|
|
42631
42627
|
},
|
|
@@ -42638,10 +42634,10 @@ class Zwe {
|
|
|
42638
42634
|
let o;
|
|
42639
42635
|
switch (r) {
|
|
42640
42636
|
case "show":
|
|
42641
|
-
i ? (i.render || (i.render = /* @__PURE__ */ new Set()), nr(i.render) && i.render.add(e), nr(i.hide) && i.hide.delete(e)) : this.renderUids.set(t, { render: /* @__PURE__ */ new Set([e]) }), o =
|
|
42637
|
+
i ? (i.render || (i.render = /* @__PURE__ */ new Set()), nr(i.render) && i.render.add(e), nr(i.hide) && i.hide.delete(e)) : this.renderUids.set(t, { render: /* @__PURE__ */ new Set([e]) }), o = jr.setShow;
|
|
42642
42638
|
break;
|
|
42643
42639
|
case "hide":
|
|
42644
|
-
i ? (i.hide || (i.hide = /* @__PURE__ */ new Set()), nr(i.hide) && i.hide.add(e), nr(i.render) && i.render.delete(e)) : this.renderUids.set(t, { hide: /* @__PURE__ */ new Set([e]) }), o =
|
|
42640
|
+
i ? (i.hide || (i.hide = /* @__PURE__ */ new Set()), nr(i.hide) && i.hide.add(e), nr(i.render) && i.render.delete(e)) : this.renderUids.set(t, { hide: /* @__PURE__ */ new Set([e]) }), o = jr.setHide;
|
|
42645
42641
|
break;
|
|
42646
42642
|
}
|
|
42647
42643
|
i ? this.renderUids.set(t, i) : this.renderUids.delete(t), n && o && ((a = this.control.collector) == null || a.dispatchRenderAuth(
|
|
@@ -42658,7 +42654,7 @@ class Zwe {
|
|
|
42658
42654
|
const i = this.renderUids.get(t);
|
|
42659
42655
|
r ? i ? (i.clear || (i.clear = /* @__PURE__ */ new Set()), nr(i.clear) && i.clear.add(e)) : this.renderUids.set(t, { clear: /* @__PURE__ */ new Set([e]) }) : i && nr(i.clear) && i.clear.has(e) && i.clear.delete(e), i ? this.renderUids.set(t, i) : this.renderUids.delete(t), n && ((o = this.control.collector) == null || o.dispatchRenderAuth(
|
|
42660
42656
|
{
|
|
42661
|
-
operation:
|
|
42657
|
+
operation: jr.setClear,
|
|
42662
42658
|
viewId: t,
|
|
42663
42659
|
uid: e,
|
|
42664
42660
|
isClear: r
|
|
@@ -42701,7 +42697,7 @@ class Zwe {
|
|
|
42701
42697
|
destoryByViewId(t, e = !1) {
|
|
42702
42698
|
var r;
|
|
42703
42699
|
this.renderUids.has(t) && (this.renderUids.delete(t), e || (r = this.control.collector) == null || r.dispatchRenderAuth({
|
|
42704
|
-
operation:
|
|
42700
|
+
operation: jr.setAuth,
|
|
42705
42701
|
viewId: t
|
|
42706
42702
|
})), this.pageAuth.has(t) && this.control.renderControl.delViewPage(t, !e);
|
|
42707
42703
|
}
|
|
@@ -43596,7 +43592,7 @@ class tTe {
|
|
|
43596
43592
|
[c],
|
|
43597
43593
|
e
|
|
43598
43594
|
)), await new Promise((P) => {
|
|
43599
|
-
|
|
43595
|
+
Ur(
|
|
43600
43596
|
() => {
|
|
43601
43597
|
var z, j;
|
|
43602
43598
|
if (!this.canAcceptLocalMutation(r)) {
|
|
@@ -46386,7 +46382,7 @@ x(rt, "proxyToRaw", /* @__PURE__ */ new WeakMap()), x(rt, "proxyCallbacks", /* @
|
|
|
46386
46382
|
}
|
|
46387
46383
|
});
|
|
46388
46384
|
let qu = rt;
|
|
46389
|
-
const
|
|
46385
|
+
const on = class on {
|
|
46390
46386
|
constructor(t) {
|
|
46391
46387
|
x(this, "emitter", new su());
|
|
46392
46388
|
x(this, "undoStack");
|
|
@@ -46428,11 +46424,11 @@ const an = class an {
|
|
|
46428
46424
|
).length;
|
|
46429
46425
|
this.emitUndoStepsUpdate(e), this.emitRedoStepsUpdate(r);
|
|
46430
46426
|
}
|
|
46431
|
-
},
|
|
46427
|
+
}, on.waitTime));
|
|
46432
46428
|
const { control: e, internalMsgEmitter: r, viewId: n, enableGlobal: i } = t;
|
|
46433
46429
|
this.control = e, this.emitter = r;
|
|
46434
46430
|
const o = this.control.pluginOptions.extras.undoRedo;
|
|
46435
|
-
|
|
46431
|
+
on.MaxStackLength = o.maxStackLength || Ke.undoRedo.maxStackLength, this.timingFix = o.timingFix ?? Ke.undoRedo.timingFix, this.ackTimeout = o.ackTimeout || Ke.undoRedo.ackTimeout;
|
|
46436
46432
|
const a = new qu(), c = [], l = [];
|
|
46437
46433
|
this.undoStack = a.createProxy(
|
|
46438
46434
|
c,
|
|
@@ -46905,7 +46901,7 @@ const an = class an {
|
|
|
46905
46901
|
id: `${t}-${this.uid}`,
|
|
46906
46902
|
data: Ye(d),
|
|
46907
46903
|
scenePath: r
|
|
46908
|
-
}), this.undoStack.length >
|
|
46904
|
+
}), this.undoStack.length > on.MaxStackLength && this.undoStack.shift(), n && this.emitUndoStepsUpdate(this.undoStack.length), this.redoStack.length && (this.redoStack.length = 0, n && this.emitRedoStepsUpdate(this.redoStack.length))), o && (this.isTicking = !1, this.scenePath = void 0, this.tickStartStorerCache = void 0, this._undoTickerId = void 0, this.excludeIds.clear()), this.clearPendingState(t), this.reportStackLength("undo-ticker-end");
|
|
46909
46905
|
}
|
|
46910
46906
|
}
|
|
46911
46907
|
transformToUndoStackItem(t) {
|
|
@@ -47000,7 +46996,7 @@ const an = class an {
|
|
|
47000
46996
|
id: `${a}-${this.uid}`,
|
|
47001
46997
|
data: Ye(d),
|
|
47002
46998
|
scenePath: c
|
|
47003
|
-
}), this.undoStack.length >
|
|
46999
|
+
}), this.undoStack.length > on.MaxStackLength && this.undoStack.shift()) : d.size && !f.size && (e = {
|
|
47004
47000
|
id: `${a}-${this.uid}`,
|
|
47005
47001
|
data: Ye(d),
|
|
47006
47002
|
scenePath: c
|
|
@@ -47332,8 +47328,8 @@ const an = class an {
|
|
|
47332
47328
|
}
|
|
47333
47329
|
}
|
|
47334
47330
|
};
|
|
47335
|
-
x(
|
|
47336
|
-
let Zu =
|
|
47331
|
+
x(on, "sdkCallBack"), x(on, "MaxStackLength", Ke.undoRedo.maxStackLength), x(on, "waitTime", 100);
|
|
47332
|
+
let Zu = on;
|
|
47337
47333
|
const nTe = (s, t) => ({
|
|
47338
47334
|
...s,
|
|
47339
47335
|
...t
|
|
@@ -54719,7 +54715,7 @@ var WSe = USe, VSe = WSe, $Se = /^\s+/;
|
|
|
54719
54715
|
function YSe(s) {
|
|
54720
54716
|
return s && s.slice(0, VSe(s) + 1).replace($Se, "");
|
|
54721
54717
|
}
|
|
54722
|
-
var GSe = YSe, HSe = Ci, QSe =
|
|
54718
|
+
var GSe = YSe, HSe = Ci, QSe = Yr, qSe = "[object Symbol]";
|
|
54723
54719
|
function ZSe(s) {
|
|
54724
54720
|
return typeof s == "symbol" || QSe(s) && HSe(s) == qSe;
|
|
54725
54721
|
}
|
|
@@ -56043,7 +56039,7 @@ export {
|
|
|
56043
56039
|
EM as a4,
|
|
56044
56040
|
da as a5,
|
|
56045
56041
|
Pt as a6,
|
|
56046
|
-
|
|
56042
|
+
jr as a7,
|
|
56047
56043
|
Qe as a8,
|
|
56048
56044
|
ze as a9,
|
|
56049
56045
|
di as aa,
|
|
@@ -56056,7 +56052,7 @@ export {
|
|
|
56056
56052
|
th as ah,
|
|
56057
56053
|
Mm as ai,
|
|
56058
56054
|
wm as aj,
|
|
56059
|
-
|
|
56055
|
+
an as ak,
|
|
56060
56056
|
xe as b,
|
|
56061
56057
|
Q as c,
|
|
56062
56058
|
ga as d,
|