@netless/appliance-plugin 1.1.5-beta.0 → 1.1.5-beta.1

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.
@@ -1,18 +1,18 @@
1
1
  var Gs = Object.defineProperty;
2
2
  var Zs = (a, o, t) => o in a ? Gs(a, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[o] = t;
3
3
  var g = (a, o, t) => Zs(a, typeof o != "symbol" ? o + "" : o, t);
4
- import { toJS as Lo, autorun as ii, isRoom as ht, isPlayer as Uo, InvisiblePlugin as Xi, RoomPhase as qi } from "white-web-sdk";
4
+ import { toJS as Lo, autorun as ii, isRoom as lt, isPlayer as Uo, InvisiblePlugin as Xi, RoomPhase as qi } from "white-web-sdk";
5
5
  import { Path as le, Group as Yt, Rect as si, Polyline as ce, Ellipse as Js, Sprite as Xs, Label as qs, Scene as Ks } from "spritejs";
6
6
  import { decompress as _s, compress as tn } from "lz-string";
7
7
  import Bo from "lineclip";
8
8
  import Ki from "eventemitter2";
9
- import { cloneDeep as lt, isEqual as pt, isSet as Rt, isNumber as et, isBoolean as Et, debounce as _i, clone as ni, throttle as jt } from "lodash";
9
+ import { cloneDeep as ht, isEqual as pt, isSet as Rt, isNumber as et, isBoolean as Et, debounce as _i, clone as ni, throttle as jt } from "lodash";
10
10
  import S, { useContext as Ct, useState as st, useMemo as X, useEffect as ft, useRef as xe, useCallback as en } from "react";
11
11
  import Vo, { createPortal as on } from "react-dom";
12
12
  import ze from "react-draggable";
13
13
  import { Resizable as sn } from "re-resizable";
14
14
  const Yy = "/fullWorker.js", Wy = "/subWorker.js";
15
- var nt = /* @__PURE__ */ ((a) => (a.selector = "selector", a.clicker = "clicker", a.laserPointer = "laserPointer", a.pencil = "pencil", a.rectangle = "rectangle", a.ellipse = "ellipse", a.shape = "shape", a.eraser = "eraser", a.pencilEraser = "pencilEraser", a.text = "text", a.straight = "straight", a.arrow = "arrow", a.hand = "hand", a.laserPen = "laserPen", a))(nt || {}), _ = /* @__PURE__ */ ((a) => (a.Normal = "Normal", a.Stroke = "Stroke", a.Dotted = "Dotted", a.LongDotted = "LongDotted", a))(_ || {}), Xt = /* @__PURE__ */ ((a) => (a.Triangle = "triangle", a.Rhombus = "rhombus", a.Pentagram = "pentagram", a.SpeechBalloon = "speechBalloon", a.Star = "star", a.Polygon = "polygon", a))(Xt || {}), R = /* @__PURE__ */ ((a) => (a.None = "None", a.ShowFloatBar = "ShowFloatBar", a.ZIndexFloatBar = "ZIndexFloatBar", a.DeleteNode = "DeleteNode", a.CopyNode = "CopyNode", a.ZIndexActive = "ZIndexActive", a.ZIndexNode = "ZIndexNode", a.RotateNode = "RotateNode", a.SetColorNode = "SetColorNode", a.TranslateNode = "TranslateNode", a.ScaleNode = "ScaleNode", a.OriginalEvent = "OriginalEvent", a.CreateScene = "CreateScene", a.ActiveCursor = "ActiveCursor", a.MoveCursor = "MoveCursor", a.CommandEditor = "CommandEditor", a.SetEditorData = "SetEditorData", a.SetFontStyle = "SetFontStyle", a.SetPoint = "SetPoint", a.SetLock = "SetLock", a.SetShapeOpt = "SetShapeOpt", a.CameraChange = "CameraChange", a.ActiveMethod = "ActiveMethod", a))(R || {}), Z = /* @__PURE__ */ ((a) => (a.DisplayState = "DisplayState", a.MainEngine = "MainEngine", a.Cursor = "Cursor", a.BindMainView = "BindMainView", a))(Z || {}), nn = /* @__PURE__ */ ((a) => (a[a.MainView = 0] = "MainView", a[a.Plugin = 1] = "Plugin", a[a.Both = 2] = "Both", a))(nn || {}), C = /* @__PURE__ */ ((a) => (a[a.Pencil = 1] = "Pencil", a[a.Eraser = 2] = "Eraser", a[a.PencilEraser = 3] = "PencilEraser", a[a.BitMapEraser = 4] = "BitMapEraser", a[a.Selector = 5] = "Selector", a[a.Clicker = 6] = "Clicker", a[a.Arrow = 7] = "Arrow", a[a.Hand = 8] = "Hand", a[a.LaserPen = 9] = "LaserPen", a[a.Text = 10] = "Text", a[a.Straight = 11] = "Straight", a[a.Rectangle = 12] = "Rectangle", a[a.Ellipse = 13] = "Ellipse", a[a.Star = 14] = "Star", a[a.Triangle = 15] = "Triangle", a[a.Rhombus = 16] = "Rhombus", a[a.Polygon = 17] = "Polygon", a[a.SpeechBalloon = 18] = "SpeechBalloon", a[a.Image = 19] = "Image", a))(C || {}), V = /* @__PURE__ */ ((a) => (a[a.Local = 1] = "Local", a[a.Service = 2] = "Service", a[a.Worker = 3] = "Worker", a))(V || {}), L = /* @__PURE__ */ ((a) => (a[a.Pending = 0] = "Pending", a[a.Start = 1] = "Start", a[a.Doing = 2] = "Doing", a[a.Done = 3] = "Done", a[a.Unwritable = 4] = "Unwritable", a))(L || {}), z = /* @__PURE__ */ ((a) => (a[a.None = 0] = "None", a[a.Init = 1] = "Init", a[a.UpdateCamera = 2] = "UpdateCamera", a[a.UpdateTools = 3] = "UpdateTools", a[a.CreateWork = 4] = "CreateWork", a[a.DrawWork = 5] = "DrawWork", a[a.FullWork = 6] = "FullWork", a[a.UpdateNode = 7] = "UpdateNode", a[a.RemoveNode = 8] = "RemoveNode", a[a.Clear = 9] = "Clear", a[a.Select = 10] = "Select", a[a.Destroy = 11] = "Destroy", a[a.Snapshot = 12] = "Snapshot", a[a.BoundingBox = 13] = "BoundingBox", a[a.Cursor = 14] = "Cursor", a[a.TextUpdate = 15] = "TextUpdate", a[a.GetTextActive = 16] = "GetTextActive", a[a.TasksQueue = 17] = "TasksQueue", a[a.CursorHover = 18] = "CursorHover", a[a.CursorBlur = 19] = "CursorBlur", a[a.Console = 20] = "Console", a[a.PriorityWorker = 21] = "PriorityWorker", a[a.PriorityMainThreadWorker = 22] = "PriorityMainThreadWorker", a[a.GetImageBitMap = 23] = "GetImageBitMap", a[a.AuthWriter = 24] = "AuthWriter", a[a.AuthReader = 25] = "AuthReader", a[a.AuthClear = 26] = "AuthClear", a[a.AuthPage = 27] = "AuthPage", a))(z || {}), te = /* @__PURE__ */ ((a) => (a[a.None = 0] = "None", a[a.Bg = 1] = "Bg", a[a.ServiceFloat = 2] = "ServiceFloat", a[a.Float = 3] = "Float", a[a.TopFloat = 4] = "TopFloat", a))(te || {}), Xe = /* @__PURE__ */ ((a) => (a[a.Cursor = 1] = "Cursor", a[a.TextCreate = 2] = "TextCreate", a))(Xe || {}), Ne = /* @__PURE__ */ ((a) => (a[a.Top = 1] = "Top", a[a.Bottom = 2] = "Bottom", a))(Ne || {}), ut = /* @__PURE__ */ ((a) => (a[a.none = 1] = "none", a[a.all = 2] = "all", a[a.both = 3] = "both", a[a.proportional = 4] = "proportional", a))(ut || {}), rn = /* @__PURE__ */ ((a) => (a[a.Pending = 0] = "Pending", a[a.Start = 1] = "Start", a[a.Doing = 2] = "Doing", a[a.Done = 3] = "Done", a[a.Unwritable = 4] = "Unwritable", a))(rn || {}), qe = /* @__PURE__ */ ((a) => (a[a.inside = 0] = "inside", a[a.outside = 1] = "outside", a[a.intersect = 2] = "intersect", a))(qe || {}), Dt = /* @__PURE__ */ ((a) => (a.renderPage = "renderPage", a.addPage = "addPage", a.deletePage = "deletePage", a.addElement = "addElement", a.deleteElement = "deleteElement", a.clearPage = "clearPage", a.clearViewScenePath = "clearViewScenePath", a.clearView = "clearView", a))(Dt || {}), qt = /* @__PURE__ */ ((a) => (a.setAuth = "setAuth", a.setShow = "addShow", a.setHide = "setHide", a.setClear = "setClear", a))(qt || {});
15
+ var nt = /* @__PURE__ */ ((a) => (a.selector = "selector", a.clicker = "clicker", a.laserPointer = "laserPointer", a.pencil = "pencil", a.rectangle = "rectangle", a.ellipse = "ellipse", a.shape = "shape", a.eraser = "eraser", a.pencilEraser = "pencilEraser", a.text = "text", a.straight = "straight", a.arrow = "arrow", a.hand = "hand", a.laserPen = "laserPen", a))(nt || {}), _ = /* @__PURE__ */ ((a) => (a.Normal = "Normal", a.Stroke = "Stroke", a.Dotted = "Dotted", a.LongDotted = "LongDotted", a))(_ || {}), Xt = /* @__PURE__ */ ((a) => (a.Triangle = "triangle", a.Rhombus = "rhombus", a.Pentagram = "pentagram", a.SpeechBalloon = "speechBalloon", a.Star = "star", a.Polygon = "polygon", a))(Xt || {}), R = /* @__PURE__ */ ((a) => (a.None = "None", a.ShowFloatBar = "ShowFloatBar", a.ZIndexFloatBar = "ZIndexFloatBar", a.DeleteNode = "DeleteNode", a.CopyNode = "CopyNode", a.ZIndexActive = "ZIndexActive", a.ZIndexNode = "ZIndexNode", a.RotateNode = "RotateNode", a.SetColorNode = "SetColorNode", a.TranslateNode = "TranslateNode", a.ScaleNode = "ScaleNode", a.OriginalEvent = "OriginalEvent", a.CreateScene = "CreateScene", a.ActiveCursor = "ActiveCursor", a.MoveCursor = "MoveCursor", a.CommandEditor = "CommandEditor", a.SetEditorData = "SetEditorData", a.SetFontStyle = "SetFontStyle", a.SetPoint = "SetPoint", a.SetLock = "SetLock", a.SetShapeOpt = "SetShapeOpt", a.CameraChange = "CameraChange", a.ActiveMethod = "ActiveMethod", a))(R || {}), Z = /* @__PURE__ */ ((a) => (a.DisplayState = "DisplayState", a.MainEngine = "MainEngine", a.Cursor = "Cursor", a.BindMainView = "BindMainView", a))(Z || {}), nn = /* @__PURE__ */ ((a) => (a[a.MainView = 0] = "MainView", a[a.Plugin = 1] = "Plugin", a[a.Both = 2] = "Both", a))(nn || {}), C = /* @__PURE__ */ ((a) => (a[a.Pencil = 1] = "Pencil", a[a.Eraser = 2] = "Eraser", a[a.PencilEraser = 3] = "PencilEraser", a[a.BitMapEraser = 4] = "BitMapEraser", a[a.Selector = 5] = "Selector", a[a.Clicker = 6] = "Clicker", a[a.Arrow = 7] = "Arrow", a[a.Hand = 8] = "Hand", a[a.LaserPen = 9] = "LaserPen", a[a.Text = 10] = "Text", a[a.Straight = 11] = "Straight", a[a.Rectangle = 12] = "Rectangle", a[a.Ellipse = 13] = "Ellipse", a[a.Star = 14] = "Star", a[a.Triangle = 15] = "Triangle", a[a.Rhombus = 16] = "Rhombus", a[a.Polygon = 17] = "Polygon", a[a.SpeechBalloon = 18] = "SpeechBalloon", a[a.Image = 19] = "Image", a))(C || {}), F = /* @__PURE__ */ ((a) => (a[a.Local = 1] = "Local", a[a.Service = 2] = "Service", a[a.Worker = 3] = "Worker", a))(F || {}), L = /* @__PURE__ */ ((a) => (a[a.Pending = 0] = "Pending", a[a.Start = 1] = "Start", a[a.Doing = 2] = "Doing", a[a.Done = 3] = "Done", a[a.Unwritable = 4] = "Unwritable", a))(L || {}), z = /* @__PURE__ */ ((a) => (a[a.None = 0] = "None", a[a.Init = 1] = "Init", a[a.UpdateCamera = 2] = "UpdateCamera", a[a.UpdateTools = 3] = "UpdateTools", a[a.CreateWork = 4] = "CreateWork", a[a.DrawWork = 5] = "DrawWork", a[a.FullWork = 6] = "FullWork", a[a.UpdateNode = 7] = "UpdateNode", a[a.RemoveNode = 8] = "RemoveNode", a[a.Clear = 9] = "Clear", a[a.Select = 10] = "Select", a[a.Destroy = 11] = "Destroy", a[a.Snapshot = 12] = "Snapshot", a[a.BoundingBox = 13] = "BoundingBox", a[a.Cursor = 14] = "Cursor", a[a.TextUpdate = 15] = "TextUpdate", a[a.GetTextActive = 16] = "GetTextActive", a[a.TasksQueue = 17] = "TasksQueue", a[a.CursorHover = 18] = "CursorHover", a[a.CursorBlur = 19] = "CursorBlur", a[a.Console = 20] = "Console", a[a.PriorityWorker = 21] = "PriorityWorker", a[a.PriorityMainThreadWorker = 22] = "PriorityMainThreadWorker", a[a.GetImageBitMap = 23] = "GetImageBitMap", a[a.AuthWriter = 24] = "AuthWriter", a[a.AuthReader = 25] = "AuthReader", a[a.AuthClear = 26] = "AuthClear", a[a.AuthPage = 27] = "AuthPage", a))(z || {}), te = /* @__PURE__ */ ((a) => (a[a.None = 0] = "None", a[a.Bg = 1] = "Bg", a[a.ServiceFloat = 2] = "ServiceFloat", a[a.Float = 3] = "Float", a[a.TopFloat = 4] = "TopFloat", a))(te || {}), Xe = /* @__PURE__ */ ((a) => (a[a.Cursor = 1] = "Cursor", a[a.TextCreate = 2] = "TextCreate", a))(Xe || {}), Ne = /* @__PURE__ */ ((a) => (a[a.Top = 1] = "Top", a[a.Bottom = 2] = "Bottom", a))(Ne || {}), ut = /* @__PURE__ */ ((a) => (a[a.none = 1] = "none", a[a.all = 2] = "all", a[a.both = 3] = "both", a[a.proportional = 4] = "proportional", a))(ut || {}), rn = /* @__PURE__ */ ((a) => (a[a.Pending = 0] = "Pending", a[a.Start = 1] = "Start", a[a.Doing = 2] = "Doing", a[a.Done = 3] = "Done", a[a.Unwritable = 4] = "Unwritable", a))(rn || {}), qe = /* @__PURE__ */ ((a) => (a[a.inside = 0] = "inside", a[a.outside = 1] = "outside", a[a.intersect = 2] = "intersect", a))(qe || {}), Dt = /* @__PURE__ */ ((a) => (a.renderPage = "renderPage", a.addPage = "addPage", a.deletePage = "deletePage", a.addElement = "addElement", a.deleteElement = "deleteElement", a.clearPage = "clearPage", a.clearViewScenePath = "clearViewScenePath", a.clearView = "clearView", a))(Dt || {}), qt = /* @__PURE__ */ ((a) => (a.setAuth = "setAuth", a.setShow = "addShow", a.setHide = "setHide", a.setClear = "setClear", a))(qt || {});
16
16
  const an = {
17
17
  linear: (a) => a,
18
18
  easeInQuad: (a) => a * a,
@@ -396,7 +396,7 @@ class k {
396
396
  }
397
397
  }
398
398
  const cn = (a) => a < 0.5 ? 2 * a * a : -1 + (4 - 2 * a) * a;
399
- class B extends k {
399
+ class V extends k {
400
400
  constructor(o = 0, t = 0, e = 0, i = { x: 0, y: 0 }, s = 0, n = 0) {
401
401
  super(o, t, e), this.x = o, this.y = t, this.z = e, this.v = i, this.t = s, this.a = n;
402
402
  }
@@ -426,25 +426,25 @@ class B extends k {
426
426
  }
427
427
  clone() {
428
428
  const { x: o, y: t, z: e, v: i, t: s, a: n } = this, r = { x: i.x, y: i.y };
429
- return new B(o, t, e, r, s, n);
429
+ return new V(o, t, e, r, s, n);
430
430
  }
431
431
  distance(o) {
432
- return B.GetDistance(this, o);
432
+ return V.GetDistance(this, o);
433
433
  }
434
434
  isNear(o, t) {
435
- return B.IsNear(this, o, t);
435
+ return V.IsNear(this, o, t);
436
436
  }
437
437
  getAngleByPoints(o, t) {
438
- return B.GetAngleByPoints(o, this, t);
438
+ return V.GetAngleByPoints(o, this, t);
439
439
  }
440
440
  static Sub(o, t) {
441
- return new B(o.x - t.x, o.y - t.y);
441
+ return new V(o.x - t.x, o.y - t.y);
442
442
  }
443
443
  static Add(o, t) {
444
- return new B(o.x + t.x, o.y + t.y);
444
+ return new V(o.x + t.x, o.y + t.y);
445
445
  }
446
446
  static GetDistance(o, t) {
447
- return B.Len(o.clone().sub(t));
447
+ return V.Len(o.clone().sub(t));
448
448
  }
449
449
  static GetAngleByPoints(o, t, e) {
450
450
  const i = t.x - o.x, s = e.x - t.x, n = t.y - o.y, r = e.y - t.y;
@@ -459,11 +459,11 @@ class B extends k {
459
459
  return c;
460
460
  }
461
461
  static IsNear(o, t, e) {
462
- return B.Len(o.clone().sub(t)) < e;
462
+ return V.Len(o.clone().sub(t)) < e;
463
463
  }
464
464
  static RotWith(o, t, e, i = 2) {
465
465
  const s = o.x - t.x, n = o.y - t.y, r = Math.sin(e), c = Math.cos(e), l = Math.pow(10, i), h = Math.floor((t.x + (s * c - n * r)) * l) / l, u = Math.floor((t.y + (s * r + n * c)) * l) / l;
466
- return new B(h, u);
466
+ return new V(h, u);
467
467
  }
468
468
  /**
469
469
  * 根据圆心和半径,获取圆上的等份点
@@ -473,9 +473,9 @@ class B extends k {
473
473
  * @returns
474
474
  */
475
475
  static GetDotStroke(o, t, e = 16) {
476
- const i = new k(1, 1), s = Math.PI + 1e-3, n = B.Add(o, B.Sub(o, i).uni().per().mul(-t)), r = [];
476
+ const i = new k(1, 1), s = Math.PI + 1e-3, n = V.Add(o, V.Sub(o, i).uni().per().mul(-t)), r = [];
477
477
  for (let c = 1 / e, l = c; l <= 1; l += c)
478
- r.push(B.RotWith(n, o, s * 2 * l));
478
+ r.push(V.RotWith(n, o, s * 2 * l));
479
479
  return r;
480
480
  }
481
481
  /**
@@ -489,7 +489,7 @@ class B extends k {
489
489
  static GetSemicircleStroke(o, t, e = -1, i = 8) {
490
490
  const s = e * (Math.PI + 1e-3), n = [];
491
491
  for (let r = 1 / i, c = r; c <= 1; c += r)
492
- n.push(B.RotWith(t, o, s * c));
492
+ n.push(V.RotWith(t, o, s * c));
493
493
  return n;
494
494
  }
495
495
  }
@@ -1133,7 +1133,7 @@ function Op(a) {
1133
1133
  return Dp(a, Ap | Ep);
1134
1134
  }
1135
1135
  var Rp = Op;
1136
- const ue = /* @__PURE__ */ be(Rp), ks = "1.1.5-beta.0", Yp = "@netless/appliance-plugin", xs = typeof OffscreenCanvas == "function" ? "worker" : "mainThread";
1136
+ const ue = /* @__PURE__ */ be(Rp), ks = "1.1.5-beta.1", Yp = "@netless/appliance-plugin", xs = typeof OffscreenCanvas == "function" ? "worker" : "mainThread";
1137
1137
  if (typeof window < "u") {
1138
1138
  let a = window.__netlessUA || "";
1139
1139
  a += ` ${Yp}@${ks}_${xs}`, window.__netlessUA = a;
@@ -1267,30 +1267,30 @@ const Wt = class Wt {
1267
1267
  return o.length === 2 ? this.computDot(o, e) : this.computLine(o, e);
1268
1268
  }
1269
1269
  computDot(o, t) {
1270
- const e = new B(o[0], o[1]);
1271
- return B.GetDotStroke(e, t, 8);
1270
+ const e = new V(o[0], o[1]);
1271
+ return V.GetDotStroke(e, t, 8);
1272
1272
  }
1273
1273
  computLine(o, t) {
1274
1274
  const e = [], i = [];
1275
1275
  let s, n;
1276
1276
  for (let r = 0; r < o.length; r += 2) {
1277
- const c = new B(o[r], o[r + 1]);
1277
+ const c = new V(o[r], o[r + 1]);
1278
1278
  let l;
1279
1279
  if (r == o.length - 2) {
1280
- const h = new B(o[r - 2], o[r - 1]);
1280
+ const h = new V(o[r - 2], o[r - 1]);
1281
1281
  l = k.Sub(c, h).uni(), s = c;
1282
1282
  } else {
1283
1283
  r === 0 && (n = c);
1284
- const h = new B(o[r + 2], o[r + 3]);
1284
+ const h = new V(o[r + 2], o[r + 3]);
1285
1285
  l = k.Sub(h, c).uni();
1286
1286
  }
1287
1287
  if (l) {
1288
1288
  const h = k.Per(l).mul(t);
1289
- e.push(B.Sub(c, h)), i.push(B.Add(c, h));
1289
+ e.push(V.Sub(c, h)), i.push(V.Add(c, h));
1290
1290
  }
1291
1291
  }
1292
1292
  if (s && n) {
1293
- const r = B.GetSemicircleStroke(s, e[e.length - 1], -1, 8), c = B.GetSemicircleStroke(n, i[0], -1, 8);
1293
+ const r = V.GetSemicircleStroke(s, e[e.length - 1], -1, 8), c = V.GetSemicircleStroke(n, i[0], -1, 8);
1294
1294
  return e.concat(r, i.reverse(), c);
1295
1295
  }
1296
1296
  return [];
@@ -1440,7 +1440,7 @@ class zs extends Y {
1440
1440
  return e.length && (s = this.draw({ attrs: i, tasks: e, replaceId: t, layer: n })), {
1441
1441
  rect: s,
1442
1442
  type: z.DrawWork,
1443
- dataType: V.Local
1443
+ dataType: F.Local
1444
1444
  };
1445
1445
  }
1446
1446
  setWorkOptions(t) {
@@ -1463,7 +1463,7 @@ class zs extends Y {
1463
1463
  return d > 10 && this.tmpPoints.splice(0, d - 10), {
1464
1464
  rect: f,
1465
1465
  type: z.DrawWork,
1466
- dataType: V.Local
1466
+ dataType: F.Local
1467
1467
  };
1468
1468
  const v = [];
1469
1469
  return this.tmpPoints.slice(y).forEach((w) => {
@@ -1471,7 +1471,7 @@ class zs extends Y {
1471
1471
  }), {
1472
1472
  ...this.baseConsumeResult,
1473
1473
  type: z.DrawWork,
1474
- dataType: V.Local,
1474
+ dataType: F.Local,
1475
1475
  rect: f,
1476
1476
  op: M ? v : void 0,
1477
1477
  index: M ? y * 3 : void 0,
@@ -1515,7 +1515,7 @@ class zs extends Y {
1515
1515
  ...this.baseConsumeResult,
1516
1516
  rect: n,
1517
1517
  type: z.FullWork,
1518
- dataType: V.Local,
1518
+ dataType: F.Local,
1519
1519
  ops: l,
1520
1520
  updateNodeOpt: {
1521
1521
  pos: this.centerPos,
@@ -1531,7 +1531,7 @@ class zs extends Y {
1531
1531
  const { op: e, isFullWork: i, replaceId: s } = t;
1532
1532
  this.tmpPoints.length = 0;
1533
1533
  for (let d = 0; d < e.length; d += 3) {
1534
- const p = new B(e[d], e[d + 1], e[d + 2]);
1534
+ const p = new V(e[d], e[d + 1], e[d + 2]);
1535
1535
  if (this.tmpPoints.length > 0) {
1536
1536
  const f = this.tmpPoints[this.tmpPoints.length - 1], M = k.Sub(p, f).uni();
1537
1537
  p.setv(M);
@@ -1643,14 +1643,14 @@ class zs extends Y {
1643
1643
  let d = h.v;
1644
1644
  l === 0 && t.length > 1 && (d = t[l + 1].point.v);
1645
1645
  const p = k.Per(d).mul(u);
1646
- e.push(B.Sub(h, p)), i.push(B.Add(h, p));
1646
+ e.push(V.Sub(h, p)), i.push(V.Add(h, p));
1647
1647
  }
1648
- const s = t[t.length - 1], n = B.GetSemicircleStroke(s.point, e[e.length - 1], -1, 8), r = B.GetSemicircleStroke(t[0].point, i[0], -1, 8), c = e.concat(n, i.reverse(), r);
1648
+ const s = t[t.length - 1], n = V.GetSemicircleStroke(s.point, e[e.length - 1], -1, 8), r = V.GetSemicircleStroke(t[0].point, i[0], -1, 8), c = e.concat(n, i.reverse(), r);
1649
1649
  return { ps: c, rect: Mt(c) };
1650
1650
  }
1651
1651
  computDotStroke(t) {
1652
1652
  const { point: e, radius: i } = t, s = { x: e.x - i, y: e.y - i, w: i * 2, h: i * 2 };
1653
- return { ps: B.GetDotStroke(e, i, 8), rect: s };
1653
+ return { ps: V.GetDotStroke(e, i, 8), rect: s };
1654
1654
  }
1655
1655
  transformData(t, e) {
1656
1656
  const { op: i, workState: s } = t;
@@ -1679,7 +1679,7 @@ class zs extends Y {
1679
1679
  for (; s < t.length; ) {
1680
1680
  const d = t[s], p = d.x - n, f = d.y - r, M = d.z, y = e ? this.computRadius(M, e) : M;
1681
1681
  if (l.push({
1682
- point: new B(p, f, M, t[s].v),
1682
+ point: new V(p, f, M, t[s].v),
1683
1683
  radius: y
1684
1684
  }), s > 0 && s < t.length - 1) {
1685
1685
  const v = t[s].getAngleByPoints(t[s - 1], t[s + 1]);
@@ -1695,7 +1695,7 @@ class zs extends Y {
1695
1695
  }), n = t[s].x, r = t[s].y, c = [n, r];
1696
1696
  const m = d.x - n, T = d.y - r;
1697
1697
  l = [{
1698
- point: new B(m, T, M),
1698
+ point: new V(m, T, M),
1699
1699
  radius: y
1700
1700
  }], h = Date.now();
1701
1701
  }
@@ -1713,7 +1713,7 @@ class zs extends Y {
1713
1713
  let r = n;
1714
1714
  for (let l = 0; l < t.length; l += 2) {
1715
1715
  r = Math.min(r, n);
1716
- const h = this.tmpPoints.length, u = new B(t[l], t[l + 1]);
1716
+ const h = this.tmpPoints.length, u = new V(t[l], t[l + 1]);
1717
1717
  if (h === 0) {
1718
1718
  this.tmpPoints.push(u);
1719
1719
  continue;
@@ -1763,7 +1763,7 @@ class zs extends Y {
1763
1763
  const s = Date.now(), n = this.tmpPoints.length;
1764
1764
  let r = n;
1765
1765
  for (let h = 0; h < t.length; h += 2) {
1766
- const u = this.tmpPoints.length, d = new B(t[h], t[h + 1]);
1766
+ const u = this.tmpPoints.length, d = new V(t[h], t[h + 1]);
1767
1767
  if (u === 0) {
1768
1768
  this.tmpPoints.push(d);
1769
1769
  continue;
@@ -1796,7 +1796,7 @@ class zs extends Y {
1796
1796
  updateTempPointsWithPressureWhenDone(t) {
1797
1797
  const { thickness: e } = this.workOptions, i = t.length, s = this.getMinZ(e);
1798
1798
  for (let n = 0; n < i; n += 2) {
1799
- const r = this.tmpPoints.length, c = new B(t[n], t[n + 1]);
1799
+ const r = this.tmpPoints.length, c = new V(t[n], t[n + 1]);
1800
1800
  if (r === 0) {
1801
1801
  this.tmpPoints.push(c);
1802
1802
  continue;
@@ -1881,7 +1881,7 @@ class bs extends Y {
1881
1881
  h: h.h * this.fullLayer.worldScaling[1]
1882
1882
  },
1883
1883
  type: z.DrawWork,
1884
- dataType: V.Local,
1884
+ dataType: F.Local,
1885
1885
  op: u ? y : void 0,
1886
1886
  index: u ? d * 2 : void 0,
1887
1887
  ...this.baseConsumeResult
@@ -1927,7 +1927,7 @@ class bs extends Y {
1927
1927
  h: e.h * this.fullLayer.worldScaling[1]
1928
1928
  },
1929
1929
  type: z.FullWork,
1930
- dataType: V.Local,
1930
+ dataType: F.Local,
1931
1931
  ops: s,
1932
1932
  index: this.syncIndex * 2,
1933
1933
  ...this.baseConsumeResult
@@ -1983,7 +1983,7 @@ class bs extends Y {
1983
1983
  }
1984
1984
  computDotStroke(t) {
1985
1985
  const { point: e, radius: i } = t, s = { x: e.x - i, y: e.y - i, w: i * 2, h: i * 2 };
1986
- return { ps: B.GetDotStroke(e, i, 8), rect: s };
1986
+ return { ps: V.GetDotStroke(e, i, 8), rect: s };
1987
1987
  }
1988
1988
  updateTempPoints(t) {
1989
1989
  const e = this.tmpPoints.length;
@@ -1992,7 +1992,7 @@ class bs extends Y {
1992
1992
  const s = this.tmpPoints.slice(-1)[0];
1993
1993
  s && s.x === t[i] && s.y === t[i + 1] && this.tmpPoints.pop();
1994
1994
  }
1995
- this.tmpPoints.push(new B(t[i], t[i + 1]));
1995
+ this.tmpPoints.push(new V(t[i], t[i + 1]));
1996
1996
  }
1997
1997
  }
1998
1998
  async draw(t) {
@@ -2029,7 +2029,7 @@ class bs extends Y {
2029
2029
  let i = 0, s = t[0].x, n = t[0].y, r = [s, n], c = [];
2030
2030
  for (; i < t.length; ) {
2031
2031
  const h = t[i], u = h.x - s, d = h.y - n;
2032
- if (c.push(new B(u, d)), i > 0 && i < t.length - 1) {
2032
+ if (c.push(new V(u, d)), i > 0 && i < t.length - 1) {
2033
2033
  const p = t[i].getAngleByPoints(t[i - 1], t[i + 1]);
2034
2034
  if (p < 90 || p > 270) {
2035
2035
  const f = (l = c.pop()) == null ? void 0 : l.clone();
@@ -2038,7 +2038,7 @@ class bs extends Y {
2038
2038
  points: [...c, f]
2039
2039
  }), s = t[i].x, n = t[i].y, r = [s, n];
2040
2040
  const M = h.x - s, y = h.y - n;
2041
- c = [new B(M, y)];
2041
+ c = [new V(M, y)];
2042
2042
  }
2043
2043
  }
2044
2044
  i++;
@@ -2124,7 +2124,7 @@ const Te = class Te extends Y {
2124
2124
  const { op: r } = n, c = [], l = [];
2125
2125
  for (let u = 0; u < r.length; u += 3) {
2126
2126
  const d = new k(r[u] * this.worldScaling[0] + this.worldPosition[0], r[u + 1] * this.worldScaling[1] + this.worldPosition[1], r[u + 2]);
2127
- l.push(d), c.push(new B(d.x, d.y));
2127
+ l.push(d), c.push(new V(d.x, d.y));
2128
2128
  }
2129
2129
  const h = c.length && Mt(c) || n.rect;
2130
2130
  co(h, this.eraserRect) && (l.length > 1 ? Bo.polyline(l.map((d) => d.XY), this.eraserPolyline).length && i.add(n.name) : i.add(n.name), s = gt(s, h));
@@ -2417,7 +2417,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2417
2417
  updateTempPoints(t) {
2418
2418
  const e = this.tmpPoints.length, i = t.length;
2419
2419
  if (i > 1) {
2420
- const s = new B(t[i - 2] * this.fullLayer.worldScaling[0] + this.fullLayer.worldPosition[0], t[i - 1] * this.fullLayer.worldScaling[0] + this.fullLayer.worldPosition[1]);
2420
+ const s = new V(t[i - 2] * this.fullLayer.worldScaling[0] + this.fullLayer.worldPosition[0], t[i - 1] * this.fullLayer.worldScaling[0] + this.fullLayer.worldPosition[1]);
2421
2421
  e === 2 ? this.tmpPoints.splice(1, 1, s) : this.tmpPoints.push(s);
2422
2422
  }
2423
2423
  }
@@ -2507,7 +2507,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2507
2507
  const c = this.getChildrenPoints();
2508
2508
  return {
2509
2509
  type: z.Select,
2510
- dataType: V.Local,
2510
+ dataType: F.Local,
2511
2511
  rect: gt(r, s),
2512
2512
  selectIds: n.selectIds,
2513
2513
  selectRect: r,
@@ -2537,7 +2537,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2537
2537
  const s = this.getChildrenPoints();
2538
2538
  return {
2539
2539
  type: z.Select,
2540
- dataType: V.Local,
2540
+ dataType: F.Local,
2541
2541
  rect: this.oldSelectRect,
2542
2542
  selectIds: this.selectIds,
2543
2543
  selectorColor: this.selectorColor,
@@ -2645,7 +2645,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2645
2645
  if (p === L.Start && i)
2646
2646
  return s.setTargetAssignKeys(i), {
2647
2647
  type: z.Select,
2648
- dataType: V.Local,
2648
+ dataType: F.Local,
2649
2649
  selectRect: this.oldSelectRect,
2650
2650
  rect: this.oldSelectRect
2651
2651
  };
@@ -2745,7 +2745,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2745
2745
  const T = gt(this.oldSelectRect, m);
2746
2746
  return this.oldSelectRect = m, {
2747
2747
  type: z.Select,
2748
- dataType: V.Local,
2748
+ dataType: F.Local,
2749
2749
  selectRect: m,
2750
2750
  renderRect: h,
2751
2751
  rect: gt(T, m),
@@ -2756,7 +2756,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2756
2756
  const t = this.unSelectedAllIds();
2757
2757
  return {
2758
2758
  type: z.Select,
2759
- dataType: V.Local,
2759
+ dataType: F.Local,
2760
2760
  rect: t,
2761
2761
  selectIds: [],
2762
2762
  willSyncService: !0
@@ -2814,7 +2814,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2814
2814
  if (this.selectSingleTool(s, i, !0), this.oldSelectRect && !Re(e, this.oldSelectRect))
2815
2815
  return {
2816
2816
  type: z.CursorHover,
2817
- dataType: V.Local,
2817
+ dataType: F.Local,
2818
2818
  rect: gt(e, this.oldSelectRect),
2819
2819
  selectorColor: this.selectorColor,
2820
2820
  willSyncService: !1
@@ -2822,7 +2822,7 @@ const Re = /* @__PURE__ */ be($f), po = class po extends Y {
2822
2822
  if ((r = this.selectIds) != null && r.length || (this.oldSelectRect = void 0), e && !this.oldSelectRect)
2823
2823
  return this.cursorBlur(), {
2824
2824
  type: z.CursorHover,
2825
- dataType: V.Local,
2825
+ dataType: F.Local,
2826
2826
  rect: e,
2827
2827
  selectorColor: this.selectorColor,
2828
2828
  willSyncService: !1
@@ -2857,7 +2857,7 @@ class js extends Y {
2857
2857
  if (!l || l < 2)
2858
2858
  return { type: z.None };
2859
2859
  let h;
2860
- if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new B(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
2860
+ if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new V(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
2861
2861
  return { type: z.None };
2862
2862
  let u;
2863
2863
  if (s || n) {
@@ -2869,7 +2869,7 @@ class js extends Y {
2869
2869
  return p - this.syncTimestamp > this.syncUnitTime ? (this.syncTimestamp = p, {
2870
2870
  ...this.baseConsumeResult,
2871
2871
  type: z.DrawWork,
2872
- dataType: V.Local,
2872
+ dataType: F.Local,
2873
2873
  op: this.tmpPoints.map((f) => [...f.XY, 0]).flat(1),
2874
2874
  isSync: !0,
2875
2875
  index: 0
@@ -2880,7 +2880,7 @@ class js extends Y {
2880
2880
  rect: d,
2881
2881
  ...this.baseConsumeResult,
2882
2882
  type: z.DrawWork,
2883
- dataType: V.Local
2883
+ dataType: F.Local
2884
2884
  };
2885
2885
  }
2886
2886
  consumeAll() {
@@ -2906,7 +2906,7 @@ class js extends Y {
2906
2906
  rect: i,
2907
2907
  ...this.baseConsumeResult,
2908
2908
  type: z.FullWork,
2909
- dataType: V.Local,
2909
+ dataType: F.Local,
2910
2910
  ops: n,
2911
2911
  isSync: !0
2912
2912
  };
@@ -2970,27 +2970,27 @@ class js extends Y {
2970
2970
  return this.tmpPoints[1].distance(this.tmpPoints[0]) > this.arrowTipWidth ? this.computFullArrowPoints(t) : this.computTrianglePoints();
2971
2971
  }
2972
2972
  computFullArrowPoints(t) {
2973
- const e = k.Sub(this.tmpPoints[1], this.tmpPoints[0]).uni(), i = k.Per(e).mul(t / 2), s = B.Sub(this.tmpPoints[0], i), n = B.Add(this.tmpPoints[0], i), r = k.Mul(e, this.arrowTipWidth), c = k.Sub(this.tmpPoints[1], r), l = B.Sub(c, i), h = B.Add(c, i), u = k.Per(e).mul(t * 1.5), d = B.Sub(c, u), p = B.Add(c, u), f = [this.tmpPoints[0], c], M = [d, this.tmpPoints[1], p], y = [s, n, ...M, l, h];
2973
+ const e = k.Sub(this.tmpPoints[1], this.tmpPoints[0]).uni(), i = k.Per(e).mul(t / 2), s = V.Sub(this.tmpPoints[0], i), n = V.Add(this.tmpPoints[0], i), r = k.Mul(e, this.arrowTipWidth), c = k.Sub(this.tmpPoints[1], r), l = V.Sub(c, i), h = V.Add(c, i), u = k.Per(e).mul(t * 1.5), d = V.Sub(c, u), p = V.Add(c, u), f = [this.tmpPoints[0], c], M = [d, this.tmpPoints[1], p], y = [s, n, ...M, l, h];
2974
2974
  return {
2975
- trianglePoints: M.map((v) => B.Sub(v, this.tmpPoints[1]).XY).flat(1),
2975
+ trianglePoints: M.map((v) => V.Sub(v, this.tmpPoints[1]).XY).flat(1),
2976
2976
  trianglePos: this.tmpPoints[1].XY,
2977
- points: f.map((v) => B.Sub(v, this.tmpPoints[0]).XY).flat(1),
2977
+ points: f.map((v) => V.Sub(v, this.tmpPoints[0]).XY).flat(1),
2978
2978
  rect: Mt(y),
2979
2979
  isTriangle: !1,
2980
2980
  pos: this.tmpPoints[0].XY
2981
2981
  };
2982
2982
  }
2983
2983
  computTrianglePoints() {
2984
- const t = k.Sub(this.tmpPoints[1], this.tmpPoints[0]).uni(), e = this.tmpPoints[1].distance(this.tmpPoints[0]), i = k.Per(t).mul(Math.floor(e * 3 / 8)), s = B.Sub(this.tmpPoints[0], i), n = B.Add(this.tmpPoints[0], i), r = [s, this.tmpPoints[1], n];
2984
+ const t = k.Sub(this.tmpPoints[1], this.tmpPoints[0]).uni(), e = this.tmpPoints[1].distance(this.tmpPoints[0]), i = k.Per(t).mul(Math.floor(e * 3 / 8)), s = V.Sub(this.tmpPoints[0], i), n = V.Add(this.tmpPoints[0], i), r = [s, this.tmpPoints[1], n];
2985
2985
  return {
2986
- trianglePoints: r.map((c) => B.Sub(c, this.tmpPoints[1]).XY).flat(1),
2986
+ trianglePoints: r.map((c) => V.Sub(c, this.tmpPoints[1]).XY).flat(1),
2987
2987
  trianglePos: this.tmpPoints[1].XY,
2988
2988
  rect: Mt(r),
2989
2989
  isTriangle: !0
2990
2990
  };
2991
2991
  }
2992
2992
  updateTempPoints(t) {
2993
- const e = t.slice(-2), i = new B(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
2993
+ const e = t.slice(-2), i = new V(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
2994
2994
  if (s.isNear(i, n))
2995
2995
  return !1;
2996
2996
  if (this.tmpPoints.length === 2) {
@@ -3008,7 +3008,7 @@ class js extends Y {
3008
3008
  return;
3009
3009
  this.tmpPoints.length = 0;
3010
3010
  for (let h = 0; h < e.length; h += 3)
3011
- this.tmpPoints.push(new B(e[h], e[h + 1], e[h + 2]));
3011
+ this.tmpPoints.push(new V(e[h], e[h + 1], e[h + 2]));
3012
3012
  const n = i ? this.fullLayer : this.drawLayer || this.fullLayer, r = this.draw({ workId: s, layer: n });
3013
3013
  return this.oldRect = r, (l = this.vNodes) == null || l.setInfo(s, {
3014
3014
  rect: r,
@@ -3048,7 +3048,7 @@ class Ds extends Y {
3048
3048
  if (!l || l < 2)
3049
3049
  return { type: z.None };
3050
3050
  let h;
3051
- if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new B(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3051
+ if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new V(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3052
3052
  return { type: z.None };
3053
3053
  let u;
3054
3054
  if (s || n) {
@@ -3059,7 +3059,7 @@ class Ds extends Y {
3059
3059
  const p = Date.now();
3060
3060
  return p - this.syncTimestamp > this.syncUnitTime ? (this.syncTimestamp = p, {
3061
3061
  type: z.DrawWork,
3062
- dataType: V.Local,
3062
+ dataType: F.Local,
3063
3063
  ...this.baseConsumeResult,
3064
3064
  op: this.tmpPoints.map((f) => [...f.XY, 0]).flat(1),
3065
3065
  isSync: !0,
@@ -3070,7 +3070,7 @@ class Ds extends Y {
3070
3070
  return this.oldRect = u, {
3071
3071
  rect: d,
3072
3072
  type: z.DrawWork,
3073
- dataType: V.Local,
3073
+ dataType: F.Local,
3074
3074
  ...this.baseConsumeResult
3075
3075
  };
3076
3076
  }
@@ -3096,7 +3096,7 @@ class Ds extends Y {
3096
3096
  }), {
3097
3097
  rect: i,
3098
3098
  type: z.FullWork,
3099
- dataType: V.Local,
3099
+ dataType: F.Local,
3100
3100
  ...this.baseConsumeResult,
3101
3101
  ops: n,
3102
3102
  isSync: !0
@@ -3163,7 +3163,7 @@ class Ds extends Y {
3163
3163
  };
3164
3164
  }
3165
3165
  updateTempPoints(t) {
3166
- const e = t.slice(-2), i = new B(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3166
+ const e = t.slice(-2), i = new V(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3167
3167
  if (s.isNear(i, n))
3168
3168
  return !1;
3169
3169
  if (this.tmpPoints.length === 2) {
@@ -3181,7 +3181,7 @@ class Ds extends Y {
3181
3181
  return;
3182
3182
  this.tmpPoints.length = 0;
3183
3183
  for (let h = 0; h < e.length; h += 3)
3184
- this.tmpPoints.push(new B(e[h], e[h + 1], e[h + 2]));
3184
+ this.tmpPoints.push(new V(e[h], e[h + 1], e[h + 2]));
3185
3185
  const n = i ? this.fullLayer : this.drawLayer || this.fullLayer, r = this.draw({ workId: s, layer: n, isDrawing: !1 });
3186
3186
  return this.oldRect = r, (l = this.vNodes) == null || l.setInfo(s, {
3187
3187
  rect: r,
@@ -3240,7 +3240,7 @@ class As extends Y {
3240
3240
  if (!l || l < 2)
3241
3241
  return { type: z.None };
3242
3242
  let h;
3243
- if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new B(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3243
+ if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new V(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3244
3244
  return { type: z.None };
3245
3245
  const u = this.transformData();
3246
3246
  let d;
@@ -3252,7 +3252,7 @@ class As extends Y {
3252
3252
  const f = Date.now();
3253
3253
  return f - this.syncTimestamp > this.syncUnitTime ? (this.syncTimestamp = f, {
3254
3254
  type: z.DrawWork,
3255
- dataType: V.Local,
3255
+ dataType: F.Local,
3256
3256
  op: u.flat(1),
3257
3257
  isSync: !0,
3258
3258
  index: 0,
@@ -3263,7 +3263,7 @@ class As extends Y {
3263
3263
  return this.oldRect = d, {
3264
3264
  rect: p,
3265
3265
  type: z.DrawWork,
3266
- dataType: V.Local,
3266
+ dataType: F.Local,
3267
3267
  ...this.baseConsumeResult
3268
3268
  };
3269
3269
  }
@@ -3289,7 +3289,7 @@ class As extends Y {
3289
3289
  }), {
3290
3290
  rect: s,
3291
3291
  type: z.FullWork,
3292
- dataType: V.Local,
3292
+ dataType: F.Local,
3293
3293
  ops: r,
3294
3294
  isSync: !0,
3295
3295
  ...this.baseConsumeResult
@@ -3356,7 +3356,7 @@ class As extends Y {
3356
3356
  return x;
3357
3357
  }
3358
3358
  updateTempPoints(t) {
3359
- const e = t.slice(-2), i = new B(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3359
+ const e = t.slice(-2), i = new V(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3360
3360
  if (s.isNear(i, n))
3361
3361
  return !1;
3362
3362
  if (this.tmpPoints.length === 2) {
@@ -3413,7 +3413,7 @@ class Es extends Y {
3413
3413
  if (!l || l < 2)
3414
3414
  return { type: z.None };
3415
3415
  let h;
3416
- if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new B(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3416
+ if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new V(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3417
3417
  return { type: z.None };
3418
3418
  let u;
3419
3419
  if (s || n) {
@@ -3424,7 +3424,7 @@ class Es extends Y {
3424
3424
  const p = Date.now();
3425
3425
  return p - this.syncTimestamp > this.syncUnitTime ? (this.syncTimestamp = p, {
3426
3426
  type: z.DrawWork,
3427
- dataType: V.Local,
3427
+ dataType: F.Local,
3428
3428
  op: this.tmpPoints.map((f) => [...f.XY, 0]).flat(1),
3429
3429
  isSync: !0,
3430
3430
  index: 0,
@@ -3435,7 +3435,7 @@ class Es extends Y {
3435
3435
  return this.oldRect = u, {
3436
3436
  rect: d,
3437
3437
  type: z.DrawWork,
3438
- dataType: V.Local,
3438
+ dataType: F.Local,
3439
3439
  ...this.baseConsumeResult
3440
3440
  };
3441
3441
  }
@@ -3461,7 +3461,7 @@ class Es extends Y {
3461
3461
  }), {
3462
3462
  rect: i,
3463
3463
  type: z.FullWork,
3464
- dataType: V.Local,
3464
+ dataType: F.Local,
3465
3465
  ops: n,
3466
3466
  isSync: !0,
3467
3467
  ...this.baseConsumeResult
@@ -3531,8 +3531,8 @@ class Es extends Y {
3531
3531
  };
3532
3532
  }
3533
3533
  updateTempPoints(t) {
3534
- const e = t.slice(-2), i = new B(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3535
- if (s.isNear(i, n) || B.Sub(s, i).XY.includes(0))
3534
+ const e = t.slice(-2), i = new V(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3535
+ if (s.isNear(i, n) || V.Sub(s, i).XY.includes(0))
3536
3536
  return !1;
3537
3537
  if (this.tmpPoints.length === 2) {
3538
3538
  if (i.isNear(this.tmpPoints[1], 1))
@@ -3549,7 +3549,7 @@ class Es extends Y {
3549
3549
  return;
3550
3550
  this.tmpPoints.length = 0;
3551
3551
  for (let h = 0; h < e.length; h += 3)
3552
- this.tmpPoints.push(new B(e[h], e[h + 1], e[h + 2]));
3552
+ this.tmpPoints.push(new V(e[h], e[h + 1], e[h + 2]));
3553
3553
  const n = i ? this.fullLayer : this.drawLayer || this.fullLayer, r = this.draw({ workId: s, layer: n, isDrawing: !1 });
3554
3554
  return this.oldRect = r, (l = this.vNodes) == null || l.setInfo(s, {
3555
3555
  rect: r,
@@ -3588,7 +3588,7 @@ class Os extends Y {
3588
3588
  if (!l || l < 2)
3589
3589
  return { type: z.None };
3590
3590
  let h;
3591
- if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new B(r[0], r[1])], h = !1) : h = this.updateTempPoints(r), !h)
3591
+ if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new V(r[0], r[1])], h = !1) : h = this.updateTempPoints(r), !h)
3592
3592
  return { type: z.None };
3593
3593
  let u;
3594
3594
  if (s || n) {
@@ -3599,7 +3599,7 @@ class Os extends Y {
3599
3599
  const p = Date.now();
3600
3600
  return p - this.syncTimestamp > this.syncUnitTime ? (this.syncTimestamp = p, {
3601
3601
  type: z.DrawWork,
3602
- dataType: V.Local,
3602
+ dataType: F.Local,
3603
3603
  op: this.tmpPoints.map((f) => [...f.XY, 0]).flat(1),
3604
3604
  isSync: !0,
3605
3605
  index: 0,
@@ -3610,7 +3610,7 @@ class Os extends Y {
3610
3610
  return this.oldRect = u, {
3611
3611
  rect: d,
3612
3612
  type: z.DrawWork,
3613
- dataType: V.Local,
3613
+ dataType: F.Local,
3614
3614
  ...this.baseConsumeResult
3615
3615
  };
3616
3616
  }
@@ -3636,7 +3636,7 @@ class Os extends Y {
3636
3636
  }), {
3637
3637
  rect: i,
3638
3638
  type: z.FullWork,
3639
- dataType: V.Local,
3639
+ dataType: F.Local,
3640
3640
  ops: n,
3641
3641
  isSync: !0,
3642
3642
  ...this.baseConsumeResult
@@ -3705,8 +3705,8 @@ class Os extends Y {
3705
3705
  };
3706
3706
  }
3707
3707
  updateTempPoints(t) {
3708
- const e = t.slice(-2), i = new B(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3709
- if (s.isNear(i, n) || B.Sub(s, i).XY.includes(0))
3708
+ const e = t.slice(-2), i = new V(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
3709
+ if (s.isNear(i, n) || V.Sub(s, i).XY.includes(0))
3710
3710
  return !1;
3711
3711
  if (this.tmpPoints.length === 2) {
3712
3712
  if (i.isNear(this.tmpPoints[1], 1))
@@ -3723,7 +3723,7 @@ class Os extends Y {
3723
3723
  return;
3724
3724
  this.tmpPoints.length = 0;
3725
3725
  for (let h = 0; h < e.length; h += 3)
3726
- this.tmpPoints.push(new B(e[h], e[h + 1], e[h + 2]));
3726
+ this.tmpPoints.push(new V(e[h], e[h + 1], e[h + 2]));
3727
3727
  const n = i ? this.fullLayer : this.drawLayer || this.fullLayer, r = this.draw({ workId: s, layer: n, isDrawing: !1 });
3728
3728
  return this.oldRect = r, (l = this.vNodes) == null || l.setInfo(s, {
3729
3729
  rect: r,
@@ -3829,7 +3829,7 @@ class Rs extends Y {
3829
3829
  if (!l || l < 2)
3830
3830
  return { type: z.None };
3831
3831
  let h;
3832
- if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new B(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3832
+ if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new V(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
3833
3833
  return { type: z.None };
3834
3834
  let u;
3835
3835
  if (s || n) {
@@ -3840,7 +3840,7 @@ class Rs extends Y {
3840
3840
  const f = Date.now();
3841
3841
  return f - this.syncTimestamp > this.syncUnitTime ? (this.syncTimestamp = f, {
3842
3842
  type: z.DrawWork,
3843
- dataType: V.Local,
3843
+ dataType: F.Local,
3844
3844
  op: this.tmpPoints.map((M) => [...M.XY, 0]).flat(1),
3845
3845
  isSync: !0,
3846
3846
  index: 0,
@@ -3851,7 +3851,7 @@ class Rs extends Y {
3851
3851
  return this.oldRect = u, {
3852
3852
  rect: d,
3853
3853
  type: z.DrawWork,
3854
- dataType: V.Local,
3854
+ dataType: F.Local,
3855
3855
  ...this.baseConsumeResult
3856
3856
  };
3857
3857
  }
@@ -3877,7 +3877,7 @@ class Rs extends Y {
3877
3877
  }), {
3878
3878
  rect: i,
3879
3879
  type: z.FullWork,
3880
- dataType: V.Local,
3880
+ dataType: F.Local,
3881
3881
  ops: n,
3882
3882
  isSync: !0,
3883
3883
  ...this.baseConsumeResult
@@ -4043,8 +4043,8 @@ class Rs extends Y {
4043
4043
  };
4044
4044
  }
4045
4045
  updateTempPoints(t) {
4046
- const e = t.slice(-2), i = new B(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
4047
- if (s.isNear(i, n) || B.Sub(s, i).XY.includes(0))
4046
+ const e = t.slice(-2), i = new V(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
4047
+ if (s.isNear(i, n) || V.Sub(s, i).XY.includes(0))
4048
4048
  return !1;
4049
4049
  if (this.tmpPoints.length === 2) {
4050
4050
  if (i.isNear(this.tmpPoints[1], 1))
@@ -4061,7 +4061,7 @@ class Rs extends Y {
4061
4061
  return;
4062
4062
  this.tmpPoints.length = 0;
4063
4063
  for (let h = 0; h < e.length; h += 3)
4064
- this.tmpPoints.push(new B(e[h], e[h + 1], e[h + 2]));
4064
+ this.tmpPoints.push(new V(e[h], e[h + 1], e[h + 2]));
4065
4065
  const n = i ? this.fullLayer : this.drawLayer || this.fullLayer, r = this.draw({ workId: s, layer: n, isDrawing: !1 });
4066
4066
  return this.oldRect = r, (l = this.vNodes) == null || l.setInfo(s, {
4067
4067
  rect: r,
@@ -4232,7 +4232,7 @@ class Ys extends Y {
4232
4232
  if (!l || l < 2)
4233
4233
  return { type: z.None };
4234
4234
  let h;
4235
- if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new B(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
4235
+ if (this.tmpPoints.length === 0 ? (this.tmpPoints = [new V(c[0], c[1])], h = !1) : h = this.updateTempPoints(c), !h)
4236
4236
  return { type: z.None };
4237
4237
  let u;
4238
4238
  if (s || n) {
@@ -4243,7 +4243,7 @@ class Ys extends Y {
4243
4243
  const p = Date.now();
4244
4244
  return p - this.syncTimestamp > this.syncUnitTime ? (this.syncTimestamp = p, {
4245
4245
  type: z.DrawWork,
4246
- dataType: V.Local,
4246
+ dataType: F.Local,
4247
4247
  op: this.tmpPoints.map((f) => [...f.XY, 0]).flat(1),
4248
4248
  isSync: !0,
4249
4249
  index: 0,
@@ -4254,7 +4254,7 @@ class Ys extends Y {
4254
4254
  return this.oldRect = u, {
4255
4255
  rect: d,
4256
4256
  type: z.DrawWork,
4257
- dataType: V.Local,
4257
+ dataType: F.Local,
4258
4258
  ...this.baseConsumeResult
4259
4259
  };
4260
4260
  }
@@ -4280,7 +4280,7 @@ class Ys extends Y {
4280
4280
  }), {
4281
4281
  rect: i,
4282
4282
  type: z.FullWork,
4283
- dataType: V.Local,
4283
+ dataType: F.Local,
4284
4284
  ops: n,
4285
4285
  isSync: !0,
4286
4286
  ...this.baseConsumeResult
@@ -4335,7 +4335,7 @@ class Ys extends Y {
4335
4335
  return this.tmpPoints[1].distance(this.tmpPoints[0]) > this.straightTipWidth ? this.computFullPoints(t, e) : this.computDotPoints(t);
4336
4336
  }
4337
4337
  computFullPoints(t, e) {
4338
- const i = k.Sub(this.tmpPoints[1], this.tmpPoints[0]).uni(), s = k.Per(i).mul(t / 2), n = B.Sub(this.tmpPoints[0], s), r = B.Add(this.tmpPoints[0], s), c = B.Sub(this.tmpPoints[1], s), l = B.Add(this.tmpPoints[1], s), h = B.GetSemicircleStroke(this.tmpPoints[1], c, -1, 8), u = B.GetSemicircleStroke(this.tmpPoints[0], r, -1, 8), d = [n, c, ...h, l, r, ...u];
4338
+ const i = k.Sub(this.tmpPoints[1], this.tmpPoints[0]).uni(), s = k.Per(i).mul(t / 2), n = V.Sub(this.tmpPoints[0], s), r = V.Add(this.tmpPoints[0], s), c = V.Sub(this.tmpPoints[1], s), l = V.Add(this.tmpPoints[1], s), h = V.GetSemicircleStroke(this.tmpPoints[1], c, -1, 8), u = V.GetSemicircleStroke(this.tmpPoints[0], r, -1, 8), d = [n, c, ...h, l, r, ...u];
4339
4339
  let p;
4340
4340
  return e !== _.Normal ? p = re(this.tmpPoints, !1) : p = re(d, !0), {
4341
4341
  d: p,
@@ -4345,7 +4345,7 @@ class Ys extends Y {
4345
4345
  };
4346
4346
  }
4347
4347
  computDotPoints(t) {
4348
- const e = B.GetDotStroke(this.tmpPoints[0], t / 2, 8);
4348
+ const e = V.GetDotStroke(this.tmpPoints[0], t / 2, 8);
4349
4349
  return {
4350
4350
  d: re(e, !0),
4351
4351
  rect: Mt(e),
@@ -4354,7 +4354,7 @@ class Ys extends Y {
4354
4354
  };
4355
4355
  }
4356
4356
  updateTempPoints(t) {
4357
- const e = t.slice(-2), i = new B(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
4357
+ const e = t.slice(-2), i = new V(e[0], e[1]), s = this.tmpPoints[0], { thickness: n } = this.workOptions;
4358
4358
  if (s.isNear(i, n))
4359
4359
  return !1;
4360
4360
  if (this.tmpPoints.length === 2) {
@@ -4372,7 +4372,7 @@ class Ys extends Y {
4372
4372
  return;
4373
4373
  this.tmpPoints.length = 0;
4374
4374
  for (let h = 0; h < e.length; h += 3)
4375
- this.tmpPoints.push(new B(e[h], e[h + 1], e[h + 2]));
4375
+ this.tmpPoints.push(new V(e[h], e[h + 1], e[h + 2]));
4376
4376
  const n = i ? this.fullLayer : this.drawLayer || this.fullLayer, r = this.draw({ workId: s, layer: n });
4377
4377
  return this.oldRect = r, (l = this.vNodes) == null || l.setInfo(s, {
4378
4378
  rect: r,
@@ -4761,7 +4761,7 @@ const Se = class Se extends Y {
4761
4761
  const { op: l, toolsType: h } = c, u = this.isLineEraser(h, !1), d = [], p = [];
4762
4762
  for (let M = 0; M < l.length; M += 3) {
4763
4763
  const y = new k(l[M] * this.worldScaling[0] + this.worldPosition[0], l[M + 1] * this.worldScaling[1] + this.worldPosition[1], l[M + 2]);
4764
- p.push(y), d.push(new B(y.x, y.y));
4764
+ p.push(y), d.push(new V(y.x, y.y));
4765
4765
  }
4766
4766
  const f = d.length && Mt(d) || c.rect;
4767
4767
  if (co(f, this.eraserRect)) {
@@ -4891,7 +4891,7 @@ const Ue = class Ue extends Y {
4891
4891
  const { op: e, isFullWork: i } = t;
4892
4892
  this.tmpPoints.length = 0;
4893
4893
  for (let c = 0; c < e.length; c += 3) {
4894
- const l = new B(e[c], e[c + 1], e[c + 2]);
4894
+ const l = new V(e[c], e[c + 1], e[c + 2]);
4895
4895
  if (this.tmpPoints.length > 0) {
4896
4896
  const h = this.tmpPoints[this.tmpPoints.length - 1], u = k.Sub(l, h).uni();
4897
4897
  l.setv(u);
@@ -4907,7 +4907,7 @@ const Ue = class Ue extends Y {
4907
4907
  let i = this.tmpPoints.length - 1;
4908
4908
  const s = Date.now();
4909
4909
  for (let n = 0; n < t.length; n += 2) {
4910
- const r = this.tmpPoints.length, c = new B(t[n], t[n + 1]);
4910
+ const r = this.tmpPoints.length, c = new V(t[n], t[n + 1]);
4911
4911
  if (r === 0) {
4912
4912
  this.tmpPoints.push(c);
4913
4913
  continue;
@@ -5020,7 +5020,7 @@ const Ue = class Ue extends Y {
5020
5020
  }), {
5021
5021
  ...this.baseConsumeResult,
5022
5022
  type: z.DrawWork,
5023
- dataType: V.Local,
5023
+ dataType: F.Local,
5024
5024
  rect: M,
5025
5025
  op: p ? y : void 0,
5026
5026
  index: p ? d * 3 : void 0,
@@ -5078,7 +5078,7 @@ const Ue = class Ue extends Y {
5078
5078
  return {
5079
5079
  ...this.baseConsumeResult,
5080
5080
  type: z.FullWork,
5081
- dataType: V.Local,
5081
+ dataType: F.Local,
5082
5082
  rect: e,
5083
5083
  ops: h,
5084
5084
  willUpdateNodes: c
@@ -5343,7 +5343,7 @@ const At = class At extends rg {
5343
5343
  g(this, "stateDisposer");
5344
5344
  g(this, "authDisposer");
5345
5345
  g(this, "asyncClockState", !1);
5346
- At.syncInterval = (i || At.syncInterval) * 0.5, this.namespace = At.namespace, this.authSpace = At.authSpace, this.serviceStorage = this.getNamespaceData(), this.storage = lt(this.serviceStorage), this.authStorage = this.getAuthSpaceData();
5346
+ At.syncInterval = (i || At.syncInterval) * 0.5, this.namespace = At.namespace, this.authSpace = At.authSpace, this.serviceStorage = this.getNamespaceData(), this.storage = ht(this.serviceStorage), this.authStorage = this.getAuthSpaceData();
5347
5347
  }
5348
5348
  getViewIdBySecenPath(t) {
5349
5349
  const e = this.getNamespaceData();
@@ -5360,12 +5360,12 @@ const At = class At extends rg {
5360
5360
  if (i) {
5361
5361
  for (const s of Object.keys(i))
5362
5362
  if (s === t)
5363
- return lt(i[s]);
5363
+ return ht(i[s]);
5364
5364
  }
5365
5365
  }
5366
5366
  getStorageData(t, e) {
5367
5367
  const i = this.getNamespaceData();
5368
- return i && i[t] && lt(i[t][e]) || void 0;
5368
+ return i && i[t] && ht(i[t][e]) || void 0;
5369
5369
  }
5370
5370
  hasSelector(t, e) {
5371
5371
  const i = this.storage && this.storage[t] && this.storage[t][e];
@@ -5385,7 +5385,7 @@ const At = class At extends rg {
5385
5385
  continue;
5386
5386
  }
5387
5387
  if (h && h.newValue) {
5388
- this.storage[l] = lt(h.newValue);
5388
+ this.storage[l] = ht(h.newValue);
5389
5389
  continue;
5390
5390
  }
5391
5391
  }
@@ -5401,7 +5401,7 @@ const At = class At extends rg {
5401
5401
  continue;
5402
5402
  }
5403
5403
  if (d && u) {
5404
- p === void 0 && (this.storage[u] = {}, p = this.storage[u]), p[l] = lt(d);
5404
+ p === void 0 && (this.storage[u] = {}, p = this.storage[u]), p[l] = ht(d);
5405
5405
  continue;
5406
5406
  }
5407
5407
  }
@@ -5419,7 +5419,7 @@ const At = class At extends rg {
5419
5419
  continue;
5420
5420
  }
5421
5421
  if (p && u) {
5422
- M[l] = lt(p);
5422
+ M[l] = ht(p);
5423
5423
  continue;
5424
5424
  }
5425
5425
  }
@@ -5709,11 +5709,11 @@ const At = class At extends rg {
5709
5709
  }
5710
5710
  syncUpdataView(t, e, i = !1) {
5711
5711
  var n;
5712
- Object.keys(this.serviceStorage).length ? (i || (e === void 0 ? delete this.serviceStorage[t] : this.serviceStorage[t] = lt(e)), (n = this.plugin) == null || n.updateAttributes([this.namespace, t], e)) : this.syncStorageView(this.storage, i);
5712
+ Object.keys(this.serviceStorage).length ? (i || (e === void 0 ? delete this.serviceStorage[t] : this.serviceStorage[t] = ht(e)), (n = this.plugin) == null || n.updateAttributes([this.namespace, t], e)) : this.syncStorageView(this.storage, i);
5713
5713
  }
5714
5714
  syncStorageView(t, e = !1) {
5715
5715
  var i;
5716
- e || t && (this.serviceStorage = lt(t)), (i = this.plugin) == null || i.updateAttributes([this.namespace], t);
5716
+ e || t && (this.serviceStorage = ht(t)), (i = this.plugin) == null || i.updateAttributes([this.namespace], t);
5717
5717
  }
5718
5718
  syncUpdataScenePath(t, e, i, s = !1) {
5719
5719
  var r;
@@ -5756,7 +5756,7 @@ const At = class At extends rg {
5756
5756
  if (c != null && c.elementIds)
5757
5757
  for (const xt of c.elementIds.keys())
5758
5758
  de[xt] = !0;
5759
- mt[s][n].pages[r] = de, e && (vt.length === 1 ? (l = this.plugin) == null || l.updateAttributes(vt, lt(this.authStorage)) : vt.length === 2 ? (h = this.plugin) == null || h.updateAttributes(vt, lt(mt)) : vt.length === 3 ? (u = this.plugin) == null || u.updateAttributes(vt, lt(mt[s])) : vt.length === 4 ? (d = this.plugin) == null || d.updateAttributes(vt, lt(mt[s][n])) : (p = this.plugin) == null || p.updateAttributes(vt, lt(de)));
5759
+ mt[s][n].pages[r] = de, e && (vt.length === 1 ? (l = this.plugin) == null || l.updateAttributes(vt, ht(this.authStorage)) : vt.length === 2 ? (h = this.plugin) == null || h.updateAttributes(vt, ht(mt)) : vt.length === 3 ? (u = this.plugin) == null || u.updateAttributes(vt, ht(mt[s])) : vt.length === 4 ? (d = this.plugin) == null || d.updateAttributes(vt, ht(mt[s][n])) : (p = this.plugin) == null || p.updateAttributes(vt, ht(de)));
5760
5760
  return;
5761
5761
  }
5762
5762
  case Dt.renderPage: {
@@ -5839,7 +5839,7 @@ const At = class At extends rg {
5839
5839
  for (const J of $.keys())
5840
5840
  O[s].clear[J] = !0;
5841
5841
  }
5842
- e && (P.length === 1 ? (h = this.plugin) == null || h.updateAttributes(P, lt(this.authStorage)) : P.length === 2 ? (u = this.plugin) == null || u.updateAttributes(P, lt(O)) : (d = this.plugin) == null || d.updateAttributes(P, lt(O[s])));
5842
+ e && (P.length === 1 ? (h = this.plugin) == null || h.updateAttributes(P, ht(this.authStorage)) : P.length === 2 ? (u = this.plugin) == null || u.updateAttributes(P, ht(O)) : (d = this.plugin) == null || d.updateAttributes(P, ht(O[s])));
5843
5843
  return;
5844
5844
  }
5845
5845
  case qt.setShow: {
@@ -5848,7 +5848,7 @@ const At = class At extends rg {
5848
5848
  const P = [this.authSpace];
5849
5849
  Object.keys(this.authStorage).length && P.push("renderAuth");
5850
5850
  const O = this.authStorage.renderAuth || {};
5851
- Object.keys(O).length && P.push(s), O[s] = O[s] || {}, this.authStorage.renderAuth = O, Object.keys(O[s]).length && P.push("render"), O[s].render = O[s].render || {}, O[s].render !== !0 && (Object.keys(O[s].render).length && P.push(n), O[s].render[n] = !0), O[s].hide !== !0 && ((p = O[s].hide) != null && p[n]) && (delete O[s].hide[n], e && ((f = this.plugin) == null || f.updateAttributes([this.authSpace, "renderAuth", s, "hide", n], void 0))), e && (P.length === 1 ? (M = this.plugin) == null || M.updateAttributes(P, lt(this.authStorage)) : P.length === 2 ? (y = this.plugin) == null || y.updateAttributes(P, lt(O)) : P.length === 3 ? (v = this.plugin) == null || v.updateAttributes(P, lt(O[s])) : (w = this.plugin) == null || w.updateAttributes(P, !0));
5851
+ Object.keys(O).length && P.push(s), O[s] = O[s] || {}, this.authStorage.renderAuth = O, Object.keys(O[s]).length && P.push("render"), O[s].render = O[s].render || {}, O[s].render !== !0 && (Object.keys(O[s].render).length && P.push(n), O[s].render[n] = !0), O[s].hide !== !0 && ((p = O[s].hide) != null && p[n]) && (delete O[s].hide[n], e && ((f = this.plugin) == null || f.updateAttributes([this.authSpace, "renderAuth", s, "hide", n], void 0))), e && (P.length === 1 ? (M = this.plugin) == null || M.updateAttributes(P, ht(this.authStorage)) : P.length === 2 ? (y = this.plugin) == null || y.updateAttributes(P, ht(O)) : P.length === 3 ? (v = this.plugin) == null || v.updateAttributes(P, ht(O[s])) : (w = this.plugin) == null || w.updateAttributes(P, !0));
5852
5852
  return;
5853
5853
  }
5854
5854
  case qt.setHide: {
@@ -5857,7 +5857,7 @@ const At = class At extends rg {
5857
5857
  const P = [this.authSpace];
5858
5858
  Object.keys(this.authStorage).length && P.push("renderAuth");
5859
5859
  const O = this.authStorage.renderAuth || {};
5860
- Object.keys(O).length && P.push(s), O[s] = O[s] || {}, this.authStorage.renderAuth = O, Object.keys(O[s]).length && P.push("hide"), O[s].hide = O[s].hide || {}, O[s].hide !== !0 && (Object.keys(O[s].hide).length && P.push(n), O[s].hide[n] = !0), O[s].render !== !0 && ((m = O[s].render) != null && m[n]) && (delete O[s].render[n], e && ((T = this.plugin) == null || T.updateAttributes([this.authSpace, "renderAuth", s, "render", n], void 0))), e && (P.length === 1 ? (I = this.plugin) == null || I.updateAttributes(P, lt(this.authStorage)) : P.length === 2 ? (N = this.plugin) == null || N.updateAttributes(P, lt(O)) : P.length === 3 ? (x = this.plugin) == null || x.updateAttributes(P, lt(O[s])) : (b = this.plugin) == null || b.updateAttributes(P, !0));
5860
+ Object.keys(O).length && P.push(s), O[s] = O[s] || {}, this.authStorage.renderAuth = O, Object.keys(O[s]).length && P.push("hide"), O[s].hide = O[s].hide || {}, O[s].hide !== !0 && (Object.keys(O[s].hide).length && P.push(n), O[s].hide[n] = !0), O[s].render !== !0 && ((m = O[s].render) != null && m[n]) && (delete O[s].render[n], e && ((T = this.plugin) == null || T.updateAttributes([this.authSpace, "renderAuth", s, "render", n], void 0))), e && (P.length === 1 ? (I = this.plugin) == null || I.updateAttributes(P, ht(this.authStorage)) : P.length === 2 ? (N = this.plugin) == null || N.updateAttributes(P, ht(O)) : P.length === 3 ? (x = this.plugin) == null || x.updateAttributes(P, ht(O[s])) : (b = this.plugin) == null || b.updateAttributes(P, !0));
5861
5861
  return;
5862
5862
  }
5863
5863
  case qt.setClear: {
@@ -5866,7 +5866,7 @@ const At = class At extends rg {
5866
5866
  const P = [this.authSpace];
5867
5867
  Object.keys(this.authStorage).length && P.push("renderAuth");
5868
5868
  const O = this.authStorage.renderAuth || {};
5869
- Object.keys(O).length && P.push(s), O[s] = O[s] || {}, this.authStorage.renderAuth = O, Object.keys(O[s]).length && P.push("clear"), O[s].clear = O[s].clear || {}, O[s].clear !== !0 && (Object.keys(O[s].clear).length && P.push(n), c ? O[s].clear[n] = !0 : delete O[s].clear[n]), e && (P.length === 1 ? (D = this.plugin) == null || D.updateAttributes(P, lt(this.authStorage)) : P.length === 2 ? (E = this.plugin) == null || E.updateAttributes(P, lt(O)) : P.length === 3 ? (j = this.plugin) == null || j.updateAttributes(P, lt(O[s])) : (A = this.plugin) == null || A.updateAttributes(P, c ? !0 : void 0));
5869
+ Object.keys(O).length && P.push(s), O[s] = O[s] || {}, this.authStorage.renderAuth = O, Object.keys(O[s]).length && P.push("clear"), O[s].clear = O[s].clear || {}, O[s].clear !== !0 && (Object.keys(O[s].clear).length && P.push(n), c ? O[s].clear[n] = !0 : delete O[s].clear[n]), e && (P.length === 1 ? (D = this.plugin) == null || D.updateAttributes(P, ht(this.authStorage)) : P.length === 2 ? (E = this.plugin) == null || E.updateAttributes(P, ht(O)) : P.length === 3 ? (j = this.plugin) == null || j.updateAttributes(P, ht(O[s])) : (A = this.plugin) == null || A.updateAttributes(P, c ? !0 : void 0));
5870
5870
  return;
5871
5871
  }
5872
5872
  }
@@ -6061,7 +6061,7 @@ class cg {
6061
6061
  }), (m = this.control.worker) == null || m.taskBatchData.add({
6062
6062
  workId: o,
6063
6063
  msgType: z.UpdateNode,
6064
- dataType: l || V.Local,
6064
+ dataType: l || F.Local,
6065
6065
  toolsType: C.Text,
6066
6066
  opt: c,
6067
6067
  viewId: e,
@@ -6089,7 +6089,7 @@ class cg {
6089
6089
  })), n && ((v = this.control.worker) == null || v.taskBatchData.add({
6090
6090
  workId: o,
6091
6091
  msgType: c.text && z.FullWork || z.CreateWork,
6092
- dataType: l || V.Local,
6092
+ dataType: l || F.Local,
6093
6093
  toolsType: C.Text,
6094
6094
  opt: c,
6095
6095
  viewId: e,
@@ -6111,7 +6111,7 @@ class cg {
6111
6111
  workId: o,
6112
6112
  toolsType: C.Text,
6113
6113
  msgType: z.RemoveNode,
6114
- dataType: V.Local,
6114
+ dataType: F.Local,
6115
6115
  viewId: e,
6116
6116
  scenePath: i,
6117
6117
  willRefresh: !0
@@ -6136,7 +6136,7 @@ class cg {
6136
6136
  const e = (s = this.control.viewContainerManager) == null ? void 0 : s.transformToScenePoint(o, t), i = (n = this.control.viewContainerManager) == null ? void 0 : n.getCurScenePath(t);
6137
6137
  t && i && ((r = this.control.worker) == null || r.taskBatchData.add({
6138
6138
  msgType: z.GetTextActive,
6139
- dataType: V.Local,
6139
+ dataType: F.Local,
6140
6140
  op: e,
6141
6141
  viewId: t,
6142
6142
  scenePath: i
@@ -6202,7 +6202,7 @@ class cg {
6202
6202
  viewId: s,
6203
6203
  scenePath: n
6204
6204
  };
6205
- this.editors.set(c, p), r === V.Service && e.workState === L.Done && this.activeId === c && (this.activeId = void 0), this.control.viewContainerManager.setActiveTextEditor(s, this.activeId);
6205
+ this.editors.set(c, p), r === F.Service && e.workState === L.Done && this.activeId === c && (this.activeId = void 0), this.control.viewContainerManager.setActiveTextEditor(s, this.activeId);
6206
6206
  }
6207
6207
  updateForViewEdited(o, t) {
6208
6208
  var i;
@@ -6222,21 +6222,21 @@ class cg {
6222
6222
  createTextForMasterController(o, t) {
6223
6223
  var n;
6224
6224
  const { workId: e, isActive: i, ...s } = o;
6225
- t && this.internalMsgEmitter.emit("addUndoTicker", t, s.viewId), s.opt.uid = (n = this.collector) == null ? void 0 : n.uid, i && (this.activeId = e), s.dataType = V.Local, s.canWorker = !0, s.canSync = !0, this.editors.set(e, s), this.control.viewContainerManager.setActiveTextEditor(s.viewId, this.activeId);
6225
+ t && this.internalMsgEmitter.emit("addUndoTicker", t, s.viewId), s.opt.uid = (n = this.collector) == null ? void 0 : n.uid, i && (this.activeId = e), s.dataType = F.Local, s.canWorker = !0, s.canSync = !0, this.editors.set(e, s), this.control.viewContainerManager.setActiveTextEditor(s.viewId, this.activeId);
6226
6226
  }
6227
6227
  updateTextForMasterController(o, t) {
6228
6228
  var n;
6229
6229
  const { workId: e, ...i } = o;
6230
6230
  t && this.internalMsgEmitter.emit("addUndoTicker", t, i.viewId);
6231
6231
  const s = this.editors.get(e) || {};
6232
- i.opt && (i.opt.uid = (n = this.collector) == null ? void 0 : n.uid), i.dataType = V.Local, this.editors.set(e, { ...s, ...i }), this.control.viewContainerManager.setActiveTextEditor(i.viewId, this.activeId);
6232
+ i.opt && (i.opt.uid = (n = this.collector) == null ? void 0 : n.uid), i.dataType = F.Local, this.editors.set(e, { ...s, ...i }), this.control.viewContainerManager.setActiveTextEditor(i.viewId, this.activeId);
6233
6233
  }
6234
6234
  async updateTextControllerWithEffectAsync(o, t) {
6235
6235
  var h;
6236
6236
  const { workId: e, ...i } = o;
6237
6237
  t && this.internalMsgEmitter.emit("addUndoTicker", t, i.viewId);
6238
6238
  const s = this.editors.get(e) || {};
6239
- i.opt && (i.opt.uid = (h = this.collector) == null ? void 0 : h.uid), i.dataType = V.Local;
6239
+ i.opt && (i.opt.uid = (h = this.collector) == null ? void 0 : h.uid), i.dataType = F.Local;
6240
6240
  const n = { ...s, ...i };
6241
6241
  if (this.editors.set(e, n), this.control.viewContainerManager.setActiveTextEditor(i.viewId, this.activeId), this.taskqueue.has(e)) {
6242
6242
  const u = this.taskqueue.get(e);
@@ -6421,7 +6421,7 @@ class lg {
6421
6421
  (this.willConsumeEventWorkers.size || this.cursorInfoMap.size) && this.runAnimation();
6422
6422
  }
6423
6423
  sendEvent(o, t) {
6424
- if (this.displayer && ht(this.displayer)) {
6424
+ if (this.displayer && lt(this.displayer)) {
6425
6425
  const e = et(o[0]) && et(o[1]) && this.control.viewContainerManager.transformToScenePoint(o, t) || [void 0, void 0];
6426
6426
  this.willSendEventWorkers.push({ consumPoint: e, viewId: t }), this.sendEventTimerId || (this.sendEventTimerId = setTimeout(() => {
6427
6427
  this.dispatchMagixEvent();
@@ -6432,7 +6432,7 @@ class lg {
6432
6432
  var o;
6433
6433
  this.displayer.dispatchMagixEvent(this.eventName, {
6434
6434
  type: Xe.Cursor,
6435
- op: lt(this.willSendEventWorkers),
6435
+ op: ht(this.willSendEventWorkers),
6436
6436
  uid: (o = this.control.collector) == null ? void 0 : o.uid
6437
6437
  }), this.willSendEventWorkers.length = 0, this.sendEventTimerId && (clearTimeout(this.sendEventTimerId), this.sendEventTimerId = void 0);
6438
6438
  }
@@ -6465,7 +6465,7 @@ class lg {
6465
6465
  }
6466
6466
  unabled() {
6467
6467
  var o;
6468
- this.displayer && ht(this.displayer) && (this.willSendEventWorkers.length = 0, this.displayer.dispatchMagixEvent(this.eventName, {
6468
+ this.displayer && lt(this.displayer) && (this.willSendEventWorkers.length = 0, this.displayer.dispatchMagixEvent(this.eventName, {
6469
6469
  type: Xe.Cursor,
6470
6470
  op: [{ viewId: this.control.viewContainerManager.focuedViewId, consumPoint: [void 0, void 0] }],
6471
6471
  uid: (o = this.control.collector) == null ? void 0 : o.uid
@@ -6724,7 +6724,7 @@ class hg extends Ht {
6724
6724
  updateNodeOpt: T,
6725
6725
  workId: m,
6726
6726
  msgType: z.FullWork,
6727
- dataType: V.Local,
6727
+ dataType: F.Local,
6728
6728
  emitEventType: R.CopyNode,
6729
6729
  willSyncService: !1,
6730
6730
  willRefresh: !0,
@@ -6822,7 +6822,7 @@ class ug extends Ht {
6822
6822
  const D = {
6823
6823
  workId: N,
6824
6824
  msgType: z.UpdateNode,
6825
- dataType: V.Local,
6825
+ dataType: F.Local,
6826
6826
  updateNodeOpt: b,
6827
6827
  emitEventType: this.emitEventType,
6828
6828
  willRefresh: !0,
@@ -6920,7 +6920,7 @@ class dg extends Ht {
6920
6920
  const I = {
6921
6921
  workId: p,
6922
6922
  msgType: z.UpdateNode,
6923
- dataType: V.Local,
6923
+ dataType: F.Local,
6924
6924
  updateNodeOpt: T,
6925
6925
  emitEventType: this.emitEventType,
6926
6926
  willRefreshSelector: !0,
@@ -6984,7 +6984,7 @@ class pg extends Ht {
6984
6984
  const x = {
6985
6985
  workId: M,
6986
6986
  msgType: z.UpdateNode,
6987
- dataType: V.Local,
6987
+ dataType: F.Local,
6988
6988
  updateNodeOpt: N,
6989
6989
  emitEventType: this.emitEventType,
6990
6990
  willSyncService: !0,
@@ -7035,7 +7035,7 @@ class fg extends Ht {
7035
7035
  msgType: z.RemoveNode,
7036
7036
  emitEventType: R.DeleteNode,
7037
7037
  removeIds: h,
7038
- dataType: V.Local,
7038
+ dataType: F.Local,
7039
7039
  willSyncService: !0,
7040
7040
  willRefresh: !0,
7041
7041
  viewId: i
@@ -7114,7 +7114,7 @@ class gg extends Ht {
7114
7114
  const O = {
7115
7115
  workId: x,
7116
7116
  msgType: z.UpdateNode,
7117
- dataType: V.Local,
7117
+ dataType: F.Local,
7118
7118
  updateNodeOpt: P,
7119
7119
  emitEventType: this.emitEventType,
7120
7120
  willRefreshSelector: !0,
@@ -7291,7 +7291,7 @@ class Mg extends Ht {
7291
7291
  const j = {
7292
7292
  workId: m,
7293
7293
  msgType: z.UpdateNode,
7294
- dataType: V.Local,
7294
+ dataType: F.Local,
7295
7295
  updateNodeOpt: E,
7296
7296
  emitEventType: this.emitEventType,
7297
7297
  willRefreshSelector: !1,
@@ -7367,7 +7367,7 @@ class wg extends Ht {
7367
7367
  if (j) {
7368
7368
  const A = j.updateNodeOpt || {};
7369
7369
  if (i && (A.bold = i, f.bold = i === "bold"), s && (A.italic = s, f.italic = s === "italic"), Et(n) && (A.lineThrough = n, f.lineThrough = n), Et(r) && (A.underline = r, f.underline = r), l && (A.fontSize = l, f.textSize = l), j.toolsType === C.Text && j.opt) {
7370
- const P = this.setTextStyle(E, lt(j), A, c);
7370
+ const P = this.setTextStyle(E, ht(j), A, c);
7371
7371
  y.push(P);
7372
7372
  continue;
7373
7373
  }
@@ -7377,7 +7377,7 @@ class wg extends Ht {
7377
7377
  let ot = O && ((T = this.serviceColloctor) == null ? void 0 : T.transformKey(P)) || P;
7378
7378
  const tt = p[c][u][ot] || void 0;
7379
7379
  if (!O && ((I = this.serviceColloctor) != null && I.isOwn(ot)) && (ot = this.serviceColloctor.getLocalId(ot)), tt && tt.toolsType === C.Text && j.opt) {
7380
- const $ = this.setTextStyle(ot, lt(tt), A, c);
7380
+ const $ = this.setTextStyle(ot, ht(tt), A, c);
7381
7381
  y.push($);
7382
7382
  continue;
7383
7383
  }
@@ -7425,7 +7425,7 @@ class mg extends Ht {
7425
7425
  const T = {
7426
7426
  workId: d,
7427
7427
  msgType: z.UpdateNode,
7428
- dataType: V.Local,
7428
+ dataType: F.Local,
7429
7429
  updateNodeOpt: m,
7430
7430
  emitEventType: this.emitEventType,
7431
7431
  willRefreshSelector: !0,
@@ -7468,7 +7468,7 @@ class Ig extends Ht {
7468
7468
  const m = {
7469
7469
  workId: y,
7470
7470
  msgType: z.UpdateNode,
7471
- dataType: V.Local,
7471
+ dataType: F.Local,
7472
7472
  updateNodeOpt: w,
7473
7473
  emitEventType: this.emitEventType,
7474
7474
  willRefresh: !0,
@@ -7517,7 +7517,7 @@ class vg extends Ht {
7517
7517
  const m = {
7518
7518
  workId: y,
7519
7519
  msgType: z.UpdateNode,
7520
- dataType: V.Local,
7520
+ dataType: F.Local,
7521
7521
  updateNodeOpt: w,
7522
7522
  emitEventType: this.emitEventType,
7523
7523
  willRefresh: !0,
@@ -7615,7 +7615,7 @@ class Ng {
7615
7615
  cameraOpt: i,
7616
7616
  viewId: e.viewId,
7617
7617
  msgType: z.UpdateCamera,
7618
- dataType: V.Local
7618
+ dataType: F.Local
7619
7619
  });
7620
7620
  }
7621
7621
  }
@@ -7747,7 +7747,7 @@ class Tg {
7747
7747
  }), this.subLocalWork.setWorkOptions(c, i));
7748
7748
  break;
7749
7749
  case z.DrawWork:
7750
- e && this.subLocalWork.canUseSubWorkerLayer(e) && (r === L.Done && s === V.Local ? this.subLocalWork.consumeDrawAll(o) : this.subLocalWork.consumeDraw(o));
7750
+ e && this.subLocalWork.canUseSubWorkerLayer(e) && (r === L.Done && s === F.Local ? this.subLocalWork.consumeDrawAll(o) : this.subLocalWork.consumeDraw(o));
7751
7751
  break;
7752
7752
  case z.RemoveNode:
7753
7753
  this.subLocalWork.removeNode(o);
@@ -7987,7 +7987,7 @@ class xg extends kg {
7987
7987
  }
7988
7988
  async useMainThread() {
7989
7989
  console.info("no OffscreenCanvas");
7990
- const { MainThreadManagerImpl: t } = await import("./index-OGShnQTn.mjs");
7990
+ const { MainThreadManagerImpl: t } = await import("./index-C8k3ukRX.mjs");
7991
7991
  this.mainThread = new t(this);
7992
7992
  }
7993
7993
  async on() {
@@ -8176,7 +8176,7 @@ class xg extends kg {
8176
8176
  workId: A,
8177
8177
  isActive: !0,
8178
8178
  viewId: P,
8179
- dataType: V.Local,
8179
+ dataType: F.Local,
8180
8180
  canWorker: !1,
8181
8181
  canSync: !0
8182
8182
  }, Date.now());
@@ -8190,7 +8190,7 @@ class xg extends kg {
8190
8190
  const rt = /* @__PURE__ */ new Set();
8191
8191
  if (rt.add({
8192
8192
  msgType: z.GetImageBitMap,
8193
- dataType: V.Local,
8193
+ dataType: F.Local,
8194
8194
  workId: A,
8195
8195
  viewId: P,
8196
8196
  imageSrc: Tt,
@@ -8455,7 +8455,7 @@ class xg extends kg {
8455
8455
  }
8456
8456
  this.taskBatchData.add({
8457
8457
  msgType: z.UpdateTools,
8458
- dataType: V.Local,
8458
+ dataType: F.Local,
8459
8459
  toolsType: e,
8460
8460
  opt: { ...t.toolsOpt, syncUnitTime: this.maxLastSyncTime },
8461
8461
  isRunSubWork: this.isRunSubWork,
@@ -8467,7 +8467,7 @@ class xg extends kg {
8467
8467
  const { workId: i, toolsOpt: s, viewId: n } = t;
8468
8468
  this.queryTaskBatchData({
8469
8469
  msgType: z.CreateWork,
8470
- dataType: V.Local,
8470
+ dataType: F.Local,
8471
8471
  viewId: n,
8472
8472
  toolsType: e
8473
8473
  }).forEach((r) => {
@@ -8477,7 +8477,7 @@ class xg extends kg {
8477
8477
  workId: i,
8478
8478
  toolsType: e,
8479
8479
  opt: { ...s, syncUnitTime: this.maxLastSyncTime },
8480
- dataType: V.Local,
8480
+ dataType: F.Local,
8481
8481
  isRunSubWork: this.isRunSubWork,
8482
8482
  viewId: n
8483
8483
  }), this.runAnimation();
@@ -8486,7 +8486,7 @@ class xg extends kg {
8486
8486
  const { offscreenCanvasOpt: i, layerOpt: s, dpr: n, cameraOpt: r } = e;
8487
8487
  this.taskBatchData.add({
8488
8488
  msgType: z.Init,
8489
- dataType: V.Local,
8489
+ dataType: F.Local,
8490
8490
  viewId: t,
8491
8491
  offscreenCanvasOpt: i,
8492
8492
  layerOpt: s,
@@ -8500,7 +8500,7 @@ class xg extends kg {
8500
8500
  var i;
8501
8501
  this.getLocalWorkViewId() === t && this.setLocalWorkViewId(void 0), this.zIndexNodeMethod && this.zIndexNodeMethod.clearZIndex(t), this.taskBatchData.add({
8502
8502
  msgType: z.Destroy,
8503
- dataType: V.Local,
8503
+ dataType: F.Local,
8504
8504
  viewId: t,
8505
8505
  isRunSubWork: !0
8506
8506
  }), this.consume(), e || (i = this.collector) == null || i.dispatch({
@@ -8510,7 +8510,7 @@ class xg extends kg {
8510
8510
  }
8511
8511
  onServiceDerive(t, e) {
8512
8512
  var p, f, M, y, v;
8513
- const { newValue: i, oldValue: s, viewId: n, scenePath: r } = e, c = lt(i) || {}, l = t;
8513
+ const { newValue: i, oldValue: s, viewId: n, scenePath: r } = e, c = ht(i) || {}, l = t;
8514
8514
  let h = c.type;
8515
8515
  if (!i && s) {
8516
8516
  if (l && ((p = this.collector) == null ? void 0 : p.getLocalId(l)) === H) {
@@ -8527,7 +8527,7 @@ class xg extends kg {
8527
8527
  if (!this.control.renderControl.isFilterAble({ viewId: n, elementId: t, scenePath: r }, h))
8528
8528
  return;
8529
8529
  const w = c;
8530
- if (w.workId = (M = this.collector) != null && M.isOwn(l) ? (y = this.collector) == null ? void 0 : y.getLocalId(l) : l, w.msgType = h, w.toolsType === C.LaserPen && (w.isRunSubWork = !0), w.dataType = V.Service, w.viewId = n, w.scenePath = r, w.selectIds && (w.selectIds = w.selectIds.map((m) => {
8530
+ if (w.workId = (M = this.collector) != null && M.isOwn(l) ? (y = this.collector) == null ? void 0 : y.getLocalId(l) : l, w.msgType = h, w.toolsType === C.LaserPen && (w.isRunSubWork = !0), w.dataType = F.Service, w.viewId = n, w.scenePath = r, w.selectIds && (w.selectIds = w.selectIds.map((m) => {
8531
8531
  var T, I;
8532
8532
  return (T = this.collector) != null && T.isOwn(m) ? (I = this.collector) == null ? void 0 : I.getLocalId(m) : m;
8533
8533
  })), w && w.toolsType === C.Text || (s == null ? void 0 : s.toolsType) === C.Text) {
@@ -8559,7 +8559,7 @@ class xg extends kg {
8559
8559
  if (!this.control.renderControl.isFilterAble({ viewId: t, elementId: p, scenePath: e }, f))
8560
8560
  continue;
8561
8561
  const M = s[p];
8562
- if (M.workId = (h = this.collector) != null && h.isOwn(p) ? (u = this.collector) == null ? void 0 : u.getLocalId(p) : p, M.msgType = f, M.dataType = V.Service, M.viewId = t, M.scenePath = e, M.useAnimation = !!r, M.selectIds && (M.selectIds = M.selectIds.map((y) => {
8562
+ if (M.workId = (h = this.collector) != null && h.isOwn(p) ? (u = this.collector) == null ? void 0 : u.getLocalId(p) : p, M.msgType = f, M.dataType = F.Service, M.viewId = t, M.scenePath = e, M.useAnimation = !!r, M.selectIds && (M.selectIds = M.selectIds.map((y) => {
8563
8563
  var v, w;
8564
8564
  return (v = this.collector) != null && v.isOwn(y) ? (w = this.collector) == null ? void 0 : w.getLocalId(y) : y;
8565
8565
  })), M.toolsType === C.Text) {
@@ -8584,7 +8584,7 @@ class xg extends kg {
8584
8584
  const i = this.consumeQueue(), s = !!i.size;
8585
8585
  if (this.taskBatchData.size)
8586
8586
  for (const n of this.taskBatchData.values())
8587
- n.dataType === V.Service && (i.add(n), this.taskBatchData.delete(n));
8587
+ n.dataType === F.Service && (i.add(n), this.taskBatchData.delete(n));
8588
8588
  i.size ? (this.post(i), s && this.tasksqueue.clear()) : this.tasksqueue.size && (this.animationId = requestAnimationFrame(this.consume.bind(this)));
8589
8589
  return;
8590
8590
  }
@@ -8597,7 +8597,7 @@ class xg extends kg {
8597
8597
  op: l,
8598
8598
  workState: s,
8599
8599
  workId: i,
8600
- dataType: V.Local,
8600
+ dataType: F.Local,
8601
8601
  msgType: z.DrawWork,
8602
8602
  isRunSubWork: this.isRunSubWork,
8603
8603
  toolsType: (e = this.currentToolsData) == null ? void 0 : e.toolsType,
@@ -8625,7 +8625,7 @@ class xg extends kg {
8625
8625
  if (!this.control.hasOffscreenCanvas()) {
8626
8626
  if (!this.mainThread) {
8627
8627
  let s = [];
8628
- s = lt([...t]), setTimeout(() => {
8628
+ s = ht([...t]), setTimeout(() => {
8629
8629
  for (const n of s)
8630
8630
  this.taskBatchData.add(n);
8631
8631
  }, 0);
@@ -8649,7 +8649,7 @@ class xg extends kg {
8649
8649
  updateNodeOpt: e,
8650
8650
  viewId: i,
8651
8651
  scenePath: s,
8652
- dataType: V.Local
8652
+ dataType: F.Local
8653
8653
  }), this.runAnimation();
8654
8654
  }
8655
8655
  destroyTaskQueue() {
@@ -8659,7 +8659,7 @@ class xg extends kg {
8659
8659
  var i;
8660
8660
  this.useTasksqueue || ((i = this.methodBuilder) == null || i.pause(), this.blurCursor(t), this.checkDrawingWork(t), this.useTasksqueue = !0, this.mainTasksqueueCount = 1, this.workerTasksqueueCount = 1), this.useTasksqueue && (this.tasksqueue.set(t, {
8661
8661
  msgType: z.UpdateCamera,
8662
- dataType: V.Local,
8662
+ dataType: F.Local,
8663
8663
  cameraOpt: {
8664
8664
  ...e,
8665
8665
  width: e.width,
@@ -8682,7 +8682,7 @@ class xg extends kg {
8682
8682
  if (this.isBusy && this.mainTasksqueueCount && this.workerTasksqueueCount && this.mainTasksqueueCount <= this.workerTasksqueueCount && (e = !0), e) {
8683
8683
  this.mainTasksqueueCount && this.workerTasksqueueCount && this.mainTasksqueueCount++, t.add({
8684
8684
  msgType: z.TasksQueue,
8685
- dataType: V.Local,
8685
+ dataType: F.Local,
8686
8686
  isRunSubWork: !0,
8687
8687
  mainTasksqueueCount: this.mainTasksqueueCount,
8688
8688
  tasksqueue: this.tasksqueue,
@@ -8703,12 +8703,12 @@ class xg extends kg {
8703
8703
  }
8704
8704
  this.control.textEditorManager.clear(t, e), this.queryTaskBatchData({
8705
8705
  msgType: z.Clear,
8706
- dataType: V.Local,
8706
+ dataType: F.Local,
8707
8707
  viewId: t
8708
8708
  }).forEach((c) => {
8709
8709
  this.taskBatchData.delete(c);
8710
8710
  }), this.taskBatchData.add({
8711
- dataType: V.Local,
8711
+ dataType: F.Local,
8712
8712
  msgType: z.Clear,
8713
8713
  viewId: t
8714
8714
  }), this.runAnimation(), e || (this.control.renderControl.isUsePageAuth(t) && s ? this.control.renderControl.clearRenderPage(t, s) : (r = this.collector) == null || r.dispatch({
@@ -8746,7 +8746,7 @@ class xg extends kg {
8746
8746
  ]).registerForMainEngine(Z.MainEngine, this.control), this.zIndexNodeMethod = (t = this.methodBuilder) == null ? void 0 : t.getBuilder(R.ZIndexNode);
8747
8747
  }
8748
8748
  setZIndex(t) {
8749
- const e = this.currentToolsData && lt(this.currentToolsData.toolsOpt);
8749
+ const e = this.currentToolsData && ht(this.currentToolsData.toolsOpt);
8750
8750
  return e && this.zIndexNodeMethod && this.isUseZIndex && (this.zIndexNodeMethod.addMaxLayer(t), e.zIndex = this.zIndexNodeMethod.getMaxZIndex(t)), e;
8751
8751
  }
8752
8752
  checkDrawingWork(t) {
@@ -8760,7 +8760,7 @@ class xg extends kg {
8760
8760
  msgType: z.RemoveNode,
8761
8761
  workId: c,
8762
8762
  viewId: h,
8763
- dataType: V.Local,
8763
+ dataType: F.Local,
8764
8764
  isRunSubWork: !0
8765
8765
  }));
8766
8766
  const p = u.map((f) => f);
@@ -8768,7 +8768,7 @@ class xg extends kg {
8768
8768
  op: p,
8769
8769
  workState: L.Done,
8770
8770
  workId: c,
8771
- dataType: V.Local,
8771
+ dataType: F.Local,
8772
8772
  msgType: z.DrawWork,
8773
8773
  isRunSubWork: this.isRunSubWork,
8774
8774
  toolsType: (s = this.currentToolsData) == null ? void 0 : s.toolsType,
@@ -8797,7 +8797,7 @@ class xg extends kg {
8797
8797
  msgType: z.RemoveNode,
8798
8798
  workId: n,
8799
8799
  viewId: c,
8800
- dataType: V.Local,
8800
+ dataType: F.Local,
8801
8801
  isRunSubWork: !0
8802
8802
  })));
8803
8803
  if (e.length) {
@@ -8825,7 +8825,7 @@ class xg extends kg {
8825
8825
  }
8826
8826
  const n = this.viewContainerManager.transformToScenePoint(t, e), r = {
8827
8827
  msgType: z.CursorHover,
8828
- dataType: V.Local,
8828
+ dataType: F.Local,
8829
8829
  point: n,
8830
8830
  toolsType: this.currentToolsData.toolsType,
8831
8831
  opt: this.currentToolsData.toolsOpt,
@@ -8834,7 +8834,7 @@ class xg extends kg {
8834
8834
  };
8835
8835
  this.queryTaskBatchData({
8836
8836
  msgType: z.CursorHover,
8837
- dataType: V.Local,
8837
+ dataType: F.Local,
8838
8838
  toolsType: this.currentToolsData.toolsType,
8839
8839
  viewId: e
8840
8840
  }).forEach((c) => {
@@ -8848,13 +8848,13 @@ class xg extends kg {
8848
8848
  return;
8849
8849
  const e = {
8850
8850
  msgType: z.CursorBlur,
8851
- dataType: V.Local,
8851
+ dataType: F.Local,
8852
8852
  isRunSubWork: !1,
8853
8853
  viewId: t
8854
8854
  };
8855
8855
  this.queryTaskBatchData({
8856
8856
  msgType: z.CursorHover,
8857
- dataType: V.Local,
8857
+ dataType: F.Local,
8858
8858
  viewId: t
8859
8859
  }).forEach((s) => {
8860
8860
  this.taskBatchData.delete(s);
@@ -8893,7 +8893,7 @@ class xg extends kg {
8893
8893
  }), Object.keys(n).length && this.viewContainerManager.mainView && this.viewContainerManager.mainView.cameraOpt) {
8894
8894
  const r = {
8895
8895
  msgType: z.BoundingBox,
8896
- dataType: V.Local,
8896
+ dataType: F.Local,
8897
8897
  scenePath: t,
8898
8898
  scenes: n,
8899
8899
  cameraOpt: { ...this.viewContainerManager.mainView.cameraOpt },
@@ -8924,7 +8924,7 @@ class xg extends kg {
8924
8924
  return;
8925
8925
  const M = e || ((h = f.cameraOpt) == null ? void 0 : h.width), y = i || ((u = f.cameraOpt) == null ? void 0 : u.height), v = {
8926
8926
  msgType: z.Snapshot,
8927
- dataType: V.Local,
8927
+ dataType: F.Local,
8928
8928
  scenePath: t,
8929
8929
  scenes: p,
8930
8930
  w: M,
@@ -8976,7 +8976,7 @@ class xg extends kg {
8976
8976
  const l = { ...e };
8977
8977
  this.zIndexNodeMethod && (this.zIndexNodeMethod.addMaxLayer(t), l.zIndex = this.zIndexNodeMethod.getMaxZIndex(t)), this.taskBatchData.add({
8978
8978
  msgType: z.FullWork,
8979
- dataType: V.Local,
8979
+ dataType: F.Local,
8980
8980
  toolsType: C.Image,
8981
8981
  workId: e.uuid,
8982
8982
  opt: l,
@@ -9003,7 +9003,7 @@ class xg extends kg {
9003
9003
  const p = (r = this.collector) != null && r.isOwn(h) ? (c = this.collector) == null ? void 0 : c.getLocalId(h) : h, f = { ...u.opt, locked: i };
9004
9004
  this.taskBatchData.add({
9005
9005
  msgType: z.FullWork,
9006
- dataType: V.Local,
9006
+ dataType: F.Local,
9007
9007
  toolsType: C.Image,
9008
9008
  workId: p,
9009
9009
  opt: f,
@@ -9054,7 +9054,7 @@ class xg extends kg {
9054
9054
  workId: H,
9055
9055
  selectIds: [t],
9056
9056
  msgType: z.Select,
9057
- dataType: V.Local,
9057
+ dataType: F.Local,
9058
9058
  viewId: e,
9059
9059
  willSyncService: !0
9060
9060
  }), this.runAnimation();
@@ -9064,7 +9064,7 @@ class xg extends kg {
9064
9064
  workId: i || H,
9065
9065
  selectIds: [],
9066
9066
  msgType: z.Select,
9067
- dataType: V.Service,
9067
+ dataType: F.Service,
9068
9068
  viewId: t,
9069
9069
  scenePath: e
9070
9070
  }), this.runAnimation();
@@ -9072,7 +9072,7 @@ class xg extends kg {
9072
9072
  consoleWorkerInfo() {
9073
9073
  this.taskBatchData.add({
9074
9074
  msgType: z.Console,
9075
- dataType: V.Local,
9075
+ dataType: F.Local,
9076
9076
  isRunSubWork: !0,
9077
9077
  viewId: ""
9078
9078
  }), this.consume();
@@ -9083,13 +9083,13 @@ class xg extends kg {
9083
9083
  if (t === "cpu" && ((s = this.subMainThreadWorker) == null || s.destroy(), e.add({
9084
9084
  msgType: z.PriorityWorker,
9085
9085
  viewId: ko,
9086
- dataType: V.Local,
9086
+ dataType: F.Local,
9087
9087
  isRunSubWork: !0
9088
9088
  })), t === "ui") {
9089
9089
  e.add({
9090
9090
  msgType: z.PriorityMainThreadWorker,
9091
9091
  viewId: ko,
9092
- dataType: V.Local,
9092
+ dataType: F.Local,
9093
9093
  isRunSubWork: !0
9094
9094
  });
9095
9095
  const r = this.viewContainerManager.mainView;
@@ -9099,7 +9099,7 @@ class xg extends kg {
9099
9099
  const { offscreenCanvasOpt: h, layerOpt: u, dpr: d, cameraOpt: p } = l;
9100
9100
  i.add({
9101
9101
  msgType: z.Init,
9102
- dataType: V.Local,
9102
+ dataType: F.Local,
9103
9103
  viewId: r.id,
9104
9104
  offscreenCanvasOpt: h,
9105
9105
  layerOpt: u,
@@ -9117,7 +9117,7 @@ class xg extends kg {
9117
9117
  const { offscreenCanvasOpt: u, layerOpt: d, dpr: p, cameraOpt: f } = h;
9118
9118
  i.add({
9119
9119
  msgType: z.Init,
9120
- dataType: V.Local,
9120
+ dataType: F.Local,
9121
9121
  viewId: l,
9122
9122
  offscreenCanvasOpt: u,
9123
9123
  layerOpt: d,
@@ -9136,7 +9136,7 @@ class xg extends kg {
9136
9136
  const i = /* @__PURE__ */ new Set();
9137
9137
  i.add({
9138
9138
  msgType: z.AuthClear,
9139
- dataType: V.Local,
9139
+ dataType: F.Local,
9140
9140
  viewId: t,
9141
9141
  clearUids: e,
9142
9142
  // scenePath: this.viewContainerManager.getCurScenePath(viewId),
@@ -9370,13 +9370,13 @@ class cM {
9370
9370
  var s, n;
9371
9371
  const e = this.control.viewContainerManager.getView(o), i = (n = (s = this.mainEngine) == null ? void 0 : s.methodBuilder) == null ? void 0 : n.getBuilder(R.CopyNode);
9372
9372
  if (!(!e || !this.tmpCopyCoordInfo || !this.tmpCopyStore.size || !this.collector || !i) && e.viewData && this.tmpCopyCoordInfo) {
9373
- const r = lt(this.tmpCopyCoordInfo.offset), c = this.tmpCopyCoordInfo.cameraOpt, l = e.viewData.camera;
9373
+ const r = ht(this.tmpCopyCoordInfo.offset), c = this.tmpCopyCoordInfo.cameraOpt, l = e.viewData.camera;
9374
9374
  r.x = r.x + l.centerX - c.centerX, r.y = r.y + l.centerY - c.centerY;
9375
9375
  const h = Date.now();
9376
9376
  this.control.worker.internalMsgEmitter.emit("addUndoTicker", h, o), i.pasteSelector({
9377
9377
  viewId: o,
9378
9378
  scenePath: t,
9379
- copyStores: lt(this.tmpCopyStore),
9379
+ copyStores: ht(this.tmpCopyStore),
9380
9380
  copyCoordInfo: {
9381
9381
  offset: r,
9382
9382
  cameraOpt: l
@@ -9756,7 +9756,7 @@ class lM {
9756
9756
  if (e.has(l)) {
9757
9757
  const h = `${l}_${i}`;
9758
9758
  if (n.add(h), !Object.keys(s).includes(h)) {
9759
- const u = lt(s[l]);
9759
+ const u = ht(s[l]);
9760
9760
  (c = this.control.collector) == null || c.updateValue(h, {
9761
9761
  type: z.FullWork,
9762
9762
  ...u,
@@ -9933,7 +9933,7 @@ const Be = class Be {
9933
9933
  (e = this.worker) == null || e.updateCamera(o, t), this.miniMapManager.updateViewCamera(o, t);
9934
9934
  });
9935
9935
  const { displayer: t, plugin: e, options: i } = o;
9936
- this.plugin = e, this.room = ht(t) ? t : void 0, this.play = Uo(t) ? t : void 0, this.pluginOptions = i, this.roomMember = new ag();
9936
+ this.plugin = e, this.room = lt(t) ? t : void 0, this.play = Uo(t) ? t : void 0, this.pluginOptions = i, this.roomMember = new ag();
9937
9937
  const s = {
9938
9938
  control: this,
9939
9939
  internalMsgEmitter: Be.InternalMsgEmitter
@@ -10232,7 +10232,7 @@ const ge = class ge {
10232
10232
  const e = this.collector.transformKey(H);
10233
10233
  this.excludeIds.add(e), this.undoTickerId = o, this.scenePath = t;
10234
10234
  const i = this.collector.getStorageData(this.viewId, t) || {};
10235
- this.tickStartStorerCache = new Map(Object.entries(lt(i)));
10235
+ this.tickStartStorerCache = new Map(Object.entries(ht(i)));
10236
10236
  }
10237
10237
  }
10238
10238
  undoTickerEndSync(o, t, e) {
@@ -10245,7 +10245,7 @@ const ge = class ge {
10245
10245
  r.size && (this.undoStack.push({
10246
10246
  id: o,
10247
10247
  type: 2,
10248
- data: lt(r),
10248
+ data: ht(r),
10249
10249
  scenePath: e
10250
10250
  }), this.undoStack.length > ge.MaxStackLength && this.undoStack.shift(), this.emitter.emit("onCanUndoStepsUpdate", this.undoStack.length)), this.redoStack.length && (this.redoStack.length = 0, this.emitter.emit("onCanRedoStepsUpdate", this.redoStack.length)), this.isTicking = !1, this.scenePath = void 0, this.tickStartStorerCache = void 0, this.undoTickerId = void 0, this.excludeIds.clear();
10251
10251
  }
@@ -12869,7 +12869,7 @@ class Qs extends S.Component {
12869
12869
  }
12870
12870
  updateOptInfo(o) {
12871
12871
  var n, r;
12872
- const { activeTextId: t, update: e, syncData: i } = o, s = t && lt(((n = this.props.manager.control.textEditorManager) == null ? void 0 : n.get(t)) || ((r = this.props.editors) == null ? void 0 : r.get(t)));
12872
+ const { activeTextId: t, update: e, syncData: i } = o, s = t && ht(((n = this.props.manager.control.textEditorManager) == null ? void 0 : n.get(t)) || ((r = this.props.editors) == null ? void 0 : r.get(t)));
12873
12873
  s && s.opt && (s.opt = {
12874
12874
  ...s.opt,
12875
12875
  ...e
@@ -13081,7 +13081,7 @@ const sy = () => {
13081
13081
  /* @__PURE__ */ S.createElement("img", { className: "lock", alt: "lock", src: "https://sdk.netless.link/resource/icons/lock.svg" })
13082
13082
  );
13083
13083
  }, cy = (a) => {
13084
- const { className: o } = a, { floatBarData: t, angle: e, setAngle: i, setOperationType: s, mananger: n } = Ct(Nt), [r, c] = st(!1), [l, h] = st(new B()), [u, d] = st(new B()), [p, f] = st(!1);
13084
+ const { className: o } = a, { floatBarData: t, angle: e, setAngle: i, setOperationType: s, mananger: n } = Ct(Nt), [r, c] = st(!1), [l, h] = st(new V()), [u, d] = st(new V()), [p, f] = st(!1);
13085
13085
  ft(() => (K.activeListener(M), () => {
13086
13086
  K.unmountActiveListener(M);
13087
13087
  }), []);
@@ -13096,7 +13096,7 @@ const sy = () => {
13096
13096
  ft(() => {
13097
13097
  if (t) {
13098
13098
  const m = Math.floor(t.w / 2), T = Math.floor(-t.h / 2);
13099
- d(new B(m, T)), h(new B());
13099
+ d(new V(m, T)), h(new V());
13100
13100
  }
13101
13101
  }, [t]);
13102
13102
  const y = (m, T) => {
@@ -13105,7 +13105,7 @@ const sy = () => {
13105
13105
  return;
13106
13106
  }
13107
13107
  c(!0);
13108
- const I = Math.round(B.GetAngleByPoints(l, u, new B(T.x, T.y))) || 0;
13108
+ const I = Math.round(V.GetAngleByPoints(l, u, new V(T.x, T.y))) || 0;
13109
13109
  i(I), s(R.RotateNode), n != null && n.control.room && (n.control.room.disableDeviceInputs = !0), K.emitMethod(
13110
13110
  Z.MainEngine,
13111
13111
  R.RotateNode,
@@ -13117,7 +13117,7 @@ const sy = () => {
13117
13117
  return;
13118
13118
  }
13119
13119
  c(!1);
13120
- const I = Math.round(B.GetAngleByPoints(l, u, new B(T.x, T.y))) || 0;
13120
+ const I = Math.round(V.GetAngleByPoints(l, u, new V(T.x, T.y))) || 0;
13121
13121
  i(I), s(R.None), n != null && n.control.room && (n.control.room.disableDeviceInputs = !1), K.emitMethod(
13122
13122
  Z.MainEngine,
13123
13123
  R.RotateNode,
@@ -13129,7 +13129,7 @@ const sy = () => {
13129
13129
  return;
13130
13130
  }
13131
13131
  c(!0);
13132
- const I = Math.round(B.GetAngleByPoints(l, u, new B(T.x, T.y))) || 0;
13132
+ const I = Math.round(V.GetAngleByPoints(l, u, new V(T.x, T.y))) || 0;
13133
13133
  i(I), s(R.RotateNode), K.emitMethod(
13134
13134
  Z.MainEngine,
13135
13135
  R.RotateNode,
@@ -14372,55 +14372,55 @@ class ve extends zt {
14372
14372
  }), this.viewContainerManager.listenerWindowManager(this.windowManager);
14373
14373
  }
14374
14374
  }
14375
- const F = class F extends Xi {
14375
+ const B = class B extends Xi {
14376
14376
  constructor() {
14377
14377
  super(...arguments);
14378
14378
  g(this, "onPhaseChanged", (t) => {
14379
14379
  var e;
14380
- t === qi.Reconnecting && ((e = F.currentManager) == null || e.setSnapshootData());
14380
+ t === qi.Reconnecting && ((e = B.currentManager) == null || e.setSnapshootData());
14381
14381
  });
14382
14382
  g(this, "updateRoomWritable", () => {
14383
14383
  var t;
14384
- (t = F.currentManager) == null || t.onWritableChange(this.displayer.isWritable);
14384
+ (t = B.currentManager) == null || t.onWritableChange(this.displayer.isWritable);
14385
14385
  });
14386
14386
  g(this, "roomStateChangeListener", async (t) => {
14387
14387
  var e, i;
14388
- t != null && t.roomMembers && ((e = F.currentManager) == null || e.onRoomMembersChange(t.roomMembers)), !(ht(this.displayer) && !this.displayer.isWritable) && t.memberState && ((i = F.currentManager) == null || i.onMemberChange(t.memberState));
14388
+ t != null && t.roomMembers && ((e = B.currentManager) == null || e.onRoomMembersChange(t.roomMembers)), !(lt(this.displayer) && !this.displayer.isWritable) && t.memberState && ((i = B.currentManager) == null || i.onMemberChange(t.memberState));
14389
14389
  });
14390
14390
  }
14391
14391
  static async getInstance(t, e) {
14392
- !e.options.cdn.fullWorkerUrl && !e.options.cdn.subWorkerUrl && F.logger.error("[ApplianceMultiPlugin] you must adaptor options cdn fullWorkerUrl and subWorkerUrl");
14392
+ !e.options.cdn.fullWorkerUrl && !e.options.cdn.subWorkerUrl && B.logger.error("[ApplianceMultiPlugin] you must adaptor options cdn fullWorkerUrl and subWorkerUrl");
14393
14393
  const i = t.displayer, s = i.callbacks.on, n = i.callbacks.off, r = i.callbacks.once, c = t.cleanCurrentScene, l = t.mainView.setMemberState;
14394
- e != null && e.logger && (F.logger = e.logger), e.options && (F.options = { ...Vt, ...e.options });
14395
- let h = i.getInvisiblePlugin(F.kind);
14396
- h || (h = await F.createApplianceMultiPlugin(i, F.kind)), i && h && F.createCurrentManager(t, F.options, h), h && F.currentManager && (F.currentManager.bindPlugin(h), h.init(i));
14394
+ e != null && e.logger && (B.logger = e.logger), e.options && (B.options = { ...Vt, ...e.options });
14395
+ let h = i.getInvisiblePlugin(B.kind);
14396
+ h || (h = await B.createApplianceMultiPlugin(i, B.kind)), i && h && B.createCurrentManager(t, B.options, h), h && B.currentManager && (B.currentManager.bindPlugin(h), h.init(i));
14397
14397
  const u = {
14398
14398
  displayer: i,
14399
14399
  windowManager: t,
14400
- currentManager: F.currentManager,
14400
+ currentManager: B.currentManager,
14401
14401
  maxScreenshotWidth: 10 * 1024,
14402
14402
  maxScreenshotHeight: 10 * 1024,
14403
14403
  getBoundingRectAsync: async function(f) {
14404
14404
  var v;
14405
- F.logger.info("[ApplianceMultiPlugin] getBoundingRectAsync");
14406
- const M = (t.mainView || i).getBoundingRect(f), y = await ((v = F.currentManager) == null ? void 0 : v.getBoundingRect(f));
14405
+ B.logger.info("[ApplianceMultiPlugin] getBoundingRectAsync");
14406
+ const M = (t.mainView || i).getBoundingRect(f), y = await ((v = B.currentManager) == null ? void 0 : v.getBoundingRect(f));
14407
14407
  return !M.width || !M.height ? y : _o(M, y);
14408
14408
  },
14409
14409
  screenshotToCanvasAsync: async function(f, M, y, v, w, m) {
14410
14410
  var D;
14411
- F.logger.info("[ApplianceMultiPlugin] screenshotToCanvasAsync");
14411
+ B.logger.info("[ApplianceMultiPlugin] screenshotToCanvasAsync");
14412
14412
  let T = y, I = v, N = w.scale;
14413
14413
  T > this.maxScreenshotWidth && (N = this.maxScreenshotWidth / T * N, T = this.maxScreenshotWidth), I > this.maxScreenshotHeight && (N = Math.min(this.maxScreenshotHeight / I * N, N), I = this.maxScreenshotHeight), w.scale = N;
14414
14414
  const x = document.createElement("canvas"), b = x.getContext("2d");
14415
- x.width = T * (m || 1), x.height = I * (m || 1), b && ((t.mainView || i).screenshotToCanvas(b, M, T, I, w, m), f.drawImage(x, Math.floor((y - T) / 2), Math.floor((v - I) / 2), T * (m || 1), I * (m || 1), 0, 0, T, I), x.remove()), F.currentManager && await ((D = F.currentManager) == null ? void 0 : D.screenshotToCanvas(f, M, T, I, w, Math.floor((y - T) / 2), Math.floor((v - I) / 2)));
14415
+ x.width = T * (m || 1), x.height = I * (m || 1), b && ((t.mainView || i).screenshotToCanvas(b, M, T, I, w, m), f.drawImage(x, Math.floor((y - T) / 2), Math.floor((v - I) / 2), T * (m || 1), I * (m || 1), 0, 0, T, I), x.remove()), B.currentManager && await ((D = B.currentManager) == null ? void 0 : D.screenshotToCanvas(f, M, T, I, w, Math.floor((y - T) / 2), Math.floor((v - I) / 2)));
14416
14416
  },
14417
14417
  scenePreviewAsync: async function(f, M, y, v, w) {
14418
- F.logger.info("[ApplianceMultiPlugin] scenePreviewAsync"), (t.mainView || i).scenePreview(f, M, y, v, w);
14418
+ B.logger.info("[ApplianceMultiPlugin] scenePreviewAsync"), (t.mainView || i).scenePreview(f, M, y, v, w);
14419
14419
  const m = document.createElement("img");
14420
- m.className = "appliance-plugin-fill-scene-snapshot-img", M.append(m), getComputedStyle(M).position || (M.style.position = "relative"), F.currentManager && await F.currentManager.scenePreview(f, m);
14420
+ m.className = "appliance-plugin-fill-scene-snapshot-img", M.append(m), getComputedStyle(M).position || (M.style.position = "relative"), B.currentManager && await B.currentManager.scenePreview(f, m);
14421
14421
  },
14422
14422
  fillSceneSnapshotAsync: async function(f, M, y, v, w) {
14423
- F.logger.info("[ApplianceMultiPlugin] fillSceneSnapshotAsync"), M.innerHTML = "", (t.mainView || i).fillSceneSnapshot(f, M, y, v, w);
14423
+ B.logger.info("[ApplianceMultiPlugin] fillSceneSnapshotAsync"), M.innerHTML = "", (t.mainView || i).fillSceneSnapshot(f, M, y, v, w);
14424
14424
  const m = y || t.mainView.size.width, T = v || t.mainView.size.height;
14425
14425
  let I = await this.getBoundingRectAsync(f);
14426
14426
  I || (I = {
@@ -14446,81 +14446,90 @@ const F = class F extends Xi {
14446
14446
  }, M.append(O), getComputedStyle(M).position || (M.style.position = "relative");
14447
14447
  },
14448
14448
  _callbacksOn: function(f, M) {
14449
- F.logger.info(`[ApplianceMultiPlugin] callbacks ${f}`), (f === "onCanUndoStepsUpdate" || f === "onCanRedoStepsUpdate") && ht(i) && i.isWritable ? ve.InternalMsgEmitter.on(f, M) : s.call(i.callbacks, f, M);
14449
+ B.logger.info(`[ApplianceMultiPlugin] callbacks ${f}`), (f === "onCanUndoStepsUpdate" || f === "onCanRedoStepsUpdate") && lt(i) && i.isWritable ? ve.InternalMsgEmitter.on(f, M) : s.call(i.callbacks, f, M);
14450
14450
  },
14451
14451
  _callbacksOnce: function(f, M) {
14452
- F.logger.info(`[ApplianceMultiPlugin] callbacks ${f}`), (f === "onCanUndoStepsUpdate" || f === "onCanRedoStepsUpdate") && ht(i) && i.isWritable ? ve.InternalMsgEmitter.on(f, M) : r.call(i.callbacks, f, M);
14452
+ B.logger.info(`[ApplianceMultiPlugin] callbacks ${f}`), (f === "onCanUndoStepsUpdate" || f === "onCanRedoStepsUpdate") && lt(i) && i.isWritable ? ve.InternalMsgEmitter.on(f, M) : r.call(i.callbacks, f, M);
14453
14453
  },
14454
14454
  _callbacksOff: function(f, M) {
14455
- F.logger.info(`[ApplianceMultiPlugin] callbacks ${f}`), (f === "onCanUndoStepsUpdate" || f === "onCanRedoStepsUpdate") && ht(i) && i.isWritable ? ve.InternalMsgEmitter.off(f, M) : n.call(i.callbacks, f, M);
14455
+ B.logger.info(`[ApplianceMultiPlugin] callbacks ${f}`), (f === "onCanUndoStepsUpdate" || f === "onCanRedoStepsUpdate") && lt(i) && i.isWritable ? ve.InternalMsgEmitter.off(f, M) : n.call(i.callbacks, f, M);
14456
14456
  },
14457
14457
  canRedoSteps() {
14458
- if (F.logger.info("[ApplianceMultiPlugin] canRedoSteps"), F.currentManager && ht(i) && !i.disableSerialization) {
14459
- const f = F.currentManager.viewContainerManager.focuedView, M = f == null ? void 0 : f.focusScenePath;
14458
+ if (B.logger.info("[ApplianceMultiPlugin] canRedoSteps"), B.currentManager && lt(i) && !i.disableSerialization) {
14459
+ const f = B.currentManager.viewContainerManager.focuedView, M = f == null ? void 0 : f.focusScenePath;
14460
14460
  if (f && M)
14461
14461
  return f.displayer.commiter.redoStack.filter((y) => y.scenePath === M).length;
14462
14462
  }
14463
14463
  return 0;
14464
14464
  },
14465
14465
  canUndoSteps() {
14466
- if (F.logger.info("[ApplianceMultiPlugin] canUndoSteps"), F.currentManager && ht(i) && !i.disableSerialization) {
14467
- const f = F.currentManager.viewContainerManager.focuedView, M = f == null ? void 0 : f.focusScenePath;
14466
+ if (B.logger.info("[ApplianceMultiPlugin] canUndoSteps"), B.currentManager && lt(i) && !i.disableSerialization) {
14467
+ const f = B.currentManager.viewContainerManager.focuedView, M = f == null ? void 0 : f.focusScenePath;
14468
14468
  if (f && M)
14469
14469
  return f.displayer.commiter.undoStack.filter((y) => y.scenePath === M).length;
14470
14470
  }
14471
14471
  return 0;
14472
14472
  },
14473
14473
  undo: function() {
14474
- return F.logger.info("[ApplianceMultiPlugin] undo"), F.currentManager && ht(i) && !i.disableSerialization ? F.currentManager.viewContainerManager.undo() : 0;
14474
+ return B.logger.info("[ApplianceMultiPlugin] undo"), B.currentManager && lt(i) && !i.disableSerialization ? B.currentManager.viewContainerManager.undo() : 0;
14475
14475
  },
14476
14476
  redo: function() {
14477
- return F.logger.info("[ApplianceMultiPlugin] redo"), F.currentManager && ht(i) && !i.disableSerialization ? F.currentManager.viewContainerManager.redo() : 0;
14477
+ return B.logger.info("[ApplianceMultiPlugin] redo"), B.currentManager && lt(i) && !i.disableSerialization ? B.currentManager.viewContainerManager.redo() : 0;
14478
14478
  },
14479
14479
  cleanCurrentScene: function() {
14480
- F.logger.info("[ApplianceMultiPlugin] cleanCurrentScene"), F.currentManager && ht(i) && i.isWritable && (F.currentManager.cleanCurrentScene(), c.call(t));
14480
+ B.logger.info("[ApplianceMultiPlugin] cleanCurrentScene"), B.currentManager && lt(i) && i.isWritable && (B.currentManager.cleanCurrentScene(), c.call(t));
14481
14481
  },
14482
14482
  insertImage: function(f) {
14483
- F.logger.info("[ApplianceMultiPlugin] insertImage"), F.currentManager && ht(i) && i.isWritable && F.currentManager.worker.insertImage("mainView", f);
14483
+ B.logger.info("[ApplianceMultiPlugin] insertImage"), B.currentManager && lt(i) && i.isWritable && B.currentManager.worker.insertImage("mainView", f);
14484
14484
  },
14485
14485
  lockImage: function(f, M) {
14486
- F.logger.info("[ApplianceMultiPlugin] lockImage"), F.currentManager && ht(i) && i.isWritable && F.currentManager.worker.lockImage("mainView", f, M);
14486
+ B.logger.info("[ApplianceMultiPlugin] lockImage"), B.currentManager && lt(i) && i.isWritable && B.currentManager.worker.lockImage("mainView", f, M);
14487
14487
  },
14488
14488
  completeImageUpload: function(f, M) {
14489
- F.logger.info("[ApplianceMultiPlugin] completeImageUpload"), F.currentManager && ht(i) && i.isWritable && F.currentManager.worker.completeImageUpload("mainView", f, M);
14489
+ B.logger.info("[ApplianceMultiPlugin] completeImageUpload"), B.currentManager && lt(i) && i.isWritable && B.currentManager.worker.completeImageUpload("mainView", f, M);
14490
14490
  },
14491
14491
  getImagesInformation: function(f) {
14492
- return F.logger.info("[ApplianceMultiPlugin] completeImageUpload"), F.currentManager && ht(i) && i.isWritable ? F.currentManager.worker.getImagesInformation(f) : [];
14492
+ return B.logger.info("[ApplianceMultiPlugin] completeImageUpload"), B.currentManager && lt(i) && i.isWritable ? B.currentManager.worker.getImagesInformation(f) : [];
14493
14493
  },
14494
- callbacks: () => (F.logger.info("[ApplianceMultiPlugin] callbacks bind"), {
14494
+ callbacks: () => (B.logger.info("[ApplianceMultiPlugin] callbacks bind"), {
14495
14495
  ...i.callbacks,
14496
14496
  on: u._callbacksOn.bind(u),
14497
14497
  once: u._callbacksOnce.bind(u),
14498
14498
  off: u._callbacksOff.bind(u)
14499
14499
  }),
14500
14500
  destroy() {
14501
- F.currentManager && (F.logger.info("[ApplianceMultiPlugin] destroy"), F.currentManager.destroy(), F.currentManager = void 0);
14501
+ B.currentManager && (B.logger.info("[ApplianceMultiPlugin] destroy"), B.currentManager.destroy(), B.currentManager = void 0);
14502
14502
  },
14503
14503
  setMemberState(f) {
14504
- F.logger.info("[ApplianceMultiPlugin] setMemberState");
14504
+ B.logger.info("[ApplianceMultiPlugin] setMemberState");
14505
14505
  const M = Object.keys(f);
14506
- if (ht(i) && i.isWritable) {
14506
+ if (lt(i) && i.isWritable) {
14507
14507
  M.includes("currentApplianceName") && (f.currentApplianceName && f.currentApplianceName === nt.laserPen ? (f.currentApplianceName = nt.pencil, f.useLaserPen = !0) : f.currentApplianceName && f.currentApplianceName === nt.pencil && (f.useLaserPen = !1)), l.call(t.mainView, f);
14508
14508
  return;
14509
14509
  }
14510
14510
  throw new Error("[ApplianceMultiPlugin] setMemberState must be called in writable room");
14511
14511
  },
14512
14512
  setPerformancePriority(f) {
14513
- F.logger.info("[ApplianceMultiPlugin] setPriority"), F.currentManager && F.currentManager.setPriority(f);
14513
+ B.logger.info("[ApplianceMultiPlugin] setPriority"), B.currentManager && B.currentManager.setPriority(f);
14514
14514
  },
14515
14515
  createMiniMap: async function(f, M) {
14516
- if (F.logger.info("[ApplianceMultiPlugin] createMiniMap"), F.currentManager && ht(i) && i.isWritable)
14517
- return F.currentManager.createMiniMap(f, M);
14516
+ if (B.logger.info("[ApplianceMultiPlugin] createMiniMap"), B.currentManager && lt(i) && i.isWritable)
14517
+ return B.currentManager.createMiniMap(f, M);
14518
14518
  },
14519
14519
  destroyMiniMap: async function(f) {
14520
- return F.logger.info("[ApplianceMultiPlugin] destroyeMiniMap"), F.currentManager && ht(i) && i.isWritable ? F.currentManager.destroyMiniMap(f) : !1;
14520
+ if (B.logger.info("[ApplianceMultiPlugin] destroyeMiniMap"), B.currentManager && lt(i) && i.isWritable)
14521
+ return B.currentManager.destroyMiniMap(f);
14522
+ },
14523
+ filterRenderByUid(f, M, y) {
14524
+ if (B.logger.info("[ApplianceMultiPlugin] filterRenderByUid"), B.currentManager && lt(i) && i.isWritable)
14525
+ return B.currentManager.filterRenderByUid(f, M, y);
14526
+ },
14527
+ cancelFilterRender(f, M) {
14528
+ if (B.logger.info("[ApplianceMultiPlugin] filterRenderByUid"), B.currentManager && lt(i) && i.isWritable)
14529
+ return B.currentManager.cancelFilterRender(f, M);
14521
14530
  }
14522
14531
  }, d = (f, M) => {
14523
- if (F.logger.info(`[ApplianceMultiPlugin] injectMethodToObject ${M}`), typeof f[M] == "function" || typeof f[M] > "u") {
14532
+ if (B.logger.info(`[ApplianceMultiPlugin] injectMethodToObject ${M}`), typeof f[M] == "function" || typeof f[M] > "u") {
14524
14533
  f[M] = u[M];
14525
14534
  return;
14526
14535
  }
@@ -14546,12 +14555,12 @@ const F = class F extends Xi {
14546
14555
  return t._appliancePlugin = p, t._appliancePlugin;
14547
14556
  }
14548
14557
  static onCreate(t) {
14549
- t && F.currentManager && (F.currentManager.bindPlugin(t), t.init(t.displayer));
14558
+ t && B.currentManager && (B.currentManager.bindPlugin(t), t.init(t.displayer));
14550
14559
  }
14551
14560
  static async createApplianceMultiPlugin(t, e) {
14552
14561
  try {
14553
14562
  await t.createInvisiblePlugin(
14554
- F,
14563
+ B,
14555
14564
  {}
14556
14565
  );
14557
14566
  } catch {
@@ -14562,7 +14571,7 @@ const F = class F extends Xi {
14562
14571
  }
14563
14572
  }
14564
14573
  let i = t.getInvisiblePlugin(e);
14565
- return i || (i = await F.createApplianceMultiPlugin(t, e)), i;
14574
+ return i || (i = await B.createApplianceMultiPlugin(t, e)), i;
14566
14575
  }
14567
14576
  // static onDestroy(plugin: ApplianceMultiPlugin) {}
14568
14577
  get isReplay() {
@@ -14574,28 +14583,28 @@ const F = class F extends Xi {
14574
14583
  init(t) {
14575
14584
  var i, s;
14576
14585
  const e = t.state;
14577
- (i = F.currentManager) == null || i.onRoomMembersChange(e.roomMembers), ht(t) && ((s = F.currentManager) == null || s.onMemberChange(e.memberState)), this.displayer.callbacks.on(this.callbackName, this.roomStateChangeListener), this.displayer.callbacks.on("onEnableWriteNowChanged", this.updateRoomWritable), this.displayer.callbacks.on("onPhaseChanged", this.onPhaseChanged);
14586
+ (i = B.currentManager) == null || i.onRoomMembersChange(e.roomMembers), lt(t) && ((s = B.currentManager) == null || s.onMemberChange(e.memberState)), this.displayer.callbacks.on(this.callbackName, this.roomStateChangeListener), this.displayer.callbacks.on("onEnableWriteNowChanged", this.updateRoomWritable), this.displayer.callbacks.on("onPhaseChanged", this.onPhaseChanged);
14578
14587
  }
14579
14588
  destroy() {
14580
14589
  var t;
14581
- F.logger.info("[ApplianceMultiPlugin] passive destroy"), (t = F.currentManager) == null || t.destroy(), F.currentManager = void 0;
14590
+ B.logger.info("[ApplianceMultiPlugin] passive destroy"), (t = B.currentManager) == null || t.destroy(), B.currentManager = void 0;
14582
14591
  }
14583
14592
  };
14584
14593
  // 组件类型,该组件的唯一识别符。应该取一个独特的名字,以和其他组件区分。
14585
- g(F, "kind", "appliance-multi-plugin"), g(F, "currentManager"), g(F, "logger", {
14594
+ g(B, "kind", "appliance-multi-plugin"), g(B, "currentManager"), g(B, "logger", {
14586
14595
  info: console.log,
14587
14596
  warn: console.warn,
14588
14597
  error: console.error
14589
- }), g(F, "options", Vt), g(F, "createCurrentManager", (t, e, i) => {
14590
- F.currentManager && F.currentManager.destroy();
14598
+ }), g(B, "options", Vt), g(B, "createCurrentManager", (t, e, i) => {
14599
+ B.currentManager && B.currentManager.destroy();
14591
14600
  const s = {
14592
14601
  plugin: i,
14593
14602
  displayer: t.displayer,
14594
14603
  options: e
14595
14604
  }, n = new ve(s);
14596
- F.logger.info("[ApplianceMultiPlugin] refresh ApplianceMultiManager object"), n.setWindowManager(t), F.currentManager = n;
14605
+ B.logger.info("[ApplianceMultiPlugin] refresh ApplianceMultiManager object"), n.setWindowManager(t), B.currentManager = n;
14597
14606
  });
14598
- let Gi = F;
14607
+ let Gi = B;
14599
14608
  class ky extends Fs {
14600
14609
  constructor(t, e) {
14601
14610
  super(t, e);
@@ -14844,7 +14853,7 @@ const U = class U extends Xi {
14844
14853
  });
14845
14854
  g(this, "roomStateChangeListener", async (t) => {
14846
14855
  var e, i;
14847
- U.currentManager instanceof oe && (t.cameraState && U.currentManager.onCameraChange(t.cameraState), t.sceneState && U.currentManager.onSceneChange(t.sceneState.scenePath, kt)), t != null && t.roomMembers && ((e = U.currentManager) == null || e.onRoomMembersChange(t.roomMembers)), !(ht(this.displayer) && !this.displayer.isWritable) && t.memberState && ((i = U.currentManager) == null || i.onMemberChange(t.memberState));
14856
+ U.currentManager instanceof oe && (t.cameraState && U.currentManager.onCameraChange(t.cameraState), t.sceneState && U.currentManager.onSceneChange(t.sceneState.scenePath, kt)), t != null && t.roomMembers && ((e = U.currentManager) == null || e.onRoomMembersChange(t.roomMembers)), !(lt(this.displayer) && !this.displayer.isWritable) && t.memberState && ((i = U.currentManager) == null || i.onMemberChange(t.memberState));
14848
14857
  });
14849
14858
  }
14850
14859
  static async getInstance(t, e) {
@@ -14909,16 +14918,16 @@ const U = class U extends Xi {
14909
14918
  }, f.append(P), getComputedStyle(f).position || (f.style.position = "relative");
14910
14919
  },
14911
14920
  _callbacksOn: function(p, f) {
14912
- U.logger.info(`[ApplianceSinglePlugin] callbacks ${p}`), (p === "onCanUndoStepsUpdate" || p === "onCanRedoStepsUpdate") && ht(t) && t.isWritable ? oe.InternalMsgEmitter.on(p, f) : i.call(t.callbacks, p, f);
14921
+ U.logger.info(`[ApplianceSinglePlugin] callbacks ${p}`), (p === "onCanUndoStepsUpdate" || p === "onCanRedoStepsUpdate") && lt(t) && t.isWritable ? oe.InternalMsgEmitter.on(p, f) : i.call(t.callbacks, p, f);
14913
14922
  },
14914
14923
  _callbacksOnce: function(p, f) {
14915
- U.logger.info(`[ApplianceSinglePlugin] callbacks ${p}`), (p === "onCanUndoStepsUpdate" || p === "onCanRedoStepsUpdate") && ht(t) && t.isWritable ? oe.InternalMsgEmitter.on(p, f) : n.call(t.callbacks, p, f);
14924
+ U.logger.info(`[ApplianceSinglePlugin] callbacks ${p}`), (p === "onCanUndoStepsUpdate" || p === "onCanRedoStepsUpdate") && lt(t) && t.isWritable ? oe.InternalMsgEmitter.on(p, f) : n.call(t.callbacks, p, f);
14916
14925
  },
14917
14926
  _callbacksOff: function(p, f) {
14918
- U.logger.info(`[ApplianceSinglePlugin] callbacks ${p}`), (p === "onCanUndoStepsUpdate" || p === "onCanRedoStepsUpdate") && ht(t) && t.isWritable ? oe.InternalMsgEmitter.off(p, f) : s.call(t.callbacks, p, f);
14927
+ U.logger.info(`[ApplianceSinglePlugin] callbacks ${p}`), (p === "onCanUndoStepsUpdate" || p === "onCanRedoStepsUpdate") && lt(t) && t.isWritable ? oe.InternalMsgEmitter.off(p, f) : s.call(t.callbacks, p, f);
14919
14928
  },
14920
14929
  canRedoSteps() {
14921
- if (U.logger.info("[ApplianceSinglePlugin] canRedoSteps"), U.currentManager && ht(t) && !t.disableSerialization) {
14930
+ if (U.logger.info("[ApplianceSinglePlugin] canRedoSteps"), U.currentManager && lt(t) && !t.disableSerialization) {
14922
14931
  const p = U.currentManager.viewContainerManager.focuedView, f = p == null ? void 0 : p.focusScenePath;
14923
14932
  if (p && f)
14924
14933
  return p.displayer.commiter.redoStack.filter((M) => M.scenePath === f).length;
@@ -14926,7 +14935,7 @@ const U = class U extends Xi {
14926
14935
  return 0;
14927
14936
  },
14928
14937
  canUndoSteps() {
14929
- if (U.logger.info("[ApplianceSinglePlugin] canUndoSteps"), U.currentManager && ht(t) && !t.disableSerialization) {
14938
+ if (U.logger.info("[ApplianceSinglePlugin] canUndoSteps"), U.currentManager && lt(t) && !t.disableSerialization) {
14930
14939
  const p = U.currentManager.viewContainerManager.focuedView, f = p == null ? void 0 : p.focusScenePath;
14931
14940
  if (p && f)
14932
14941
  return p.displayer.commiter.undoStack.filter((M) => M.scenePath === f).length;
@@ -14934,25 +14943,25 @@ const U = class U extends Xi {
14934
14943
  return 0;
14935
14944
  },
14936
14945
  undo: function() {
14937
- return U.logger.info("[ApplianceSinglePlugin] undo"), U.currentManager && ht(t) && !t.disableSerialization ? U.currentManager.viewContainerManager.undo() : 0;
14946
+ return U.logger.info("[ApplianceSinglePlugin] undo"), U.currentManager && lt(t) && !t.disableSerialization ? U.currentManager.viewContainerManager.undo() : 0;
14938
14947
  },
14939
14948
  redo: function() {
14940
- return U.logger.info("[ApplianceSinglePlugin] redo"), U.currentManager && ht(t) && !t.disableSerialization ? U.currentManager.viewContainerManager.redo() : 0;
14949
+ return U.logger.info("[ApplianceSinglePlugin] redo"), U.currentManager && lt(t) && !t.disableSerialization ? U.currentManager.viewContainerManager.redo() : 0;
14941
14950
  },
14942
14951
  cleanCurrentScene: function(p) {
14943
- U.logger.info("[ApplianceSinglePlugin] cleanCurrentScene"), U.currentManager && ht(t) && t.isWritable && (U.currentManager.cleanCurrentScene(), r.call(t, p));
14952
+ U.logger.info("[ApplianceSinglePlugin] cleanCurrentScene"), U.currentManager && lt(t) && t.isWritable && (U.currentManager.cleanCurrentScene(), r.call(t, p));
14944
14953
  },
14945
14954
  insertImage: function(p) {
14946
- U.logger.info("[ApplianceSinglePlugin] insertImage"), U.currentManager && ht(t) && t.isWritable && U.currentManager.worker.insertImage("mainView", p);
14955
+ U.logger.info("[ApplianceSinglePlugin] insertImage"), U.currentManager && lt(t) && t.isWritable && U.currentManager.worker.insertImage("mainView", p);
14947
14956
  },
14948
14957
  lockImage: function(p, f) {
14949
- U.logger.info("[ApplianceSinglePlugin] lockImage"), U.currentManager && ht(t) && t.isWritable && U.currentManager.worker.lockImage("mainView", p, f);
14958
+ U.logger.info("[ApplianceSinglePlugin] lockImage"), U.currentManager && lt(t) && t.isWritable && U.currentManager.worker.lockImage("mainView", p, f);
14950
14959
  },
14951
14960
  completeImageUpload: function(p, f) {
14952
- U.logger.info("[ApplianceSinglePlugin] completeImageUpload"), U.currentManager && ht(t) && t.isWritable && U.currentManager.worker.completeImageUpload("mainView", p, f);
14961
+ U.logger.info("[ApplianceSinglePlugin] completeImageUpload"), U.currentManager && lt(t) && t.isWritable && U.currentManager.worker.completeImageUpload("mainView", p, f);
14953
14962
  },
14954
14963
  getImagesInformation: function(p) {
14955
- return U.logger.info("[ApplianceSinglePlugin] completeImageUpload"), U.currentManager && ht(t) && t.isWritable ? U.currentManager.worker.getImagesInformation(p) : [];
14964
+ return U.logger.info("[ApplianceSinglePlugin] completeImageUpload"), U.currentManager && lt(t) && t.isWritable ? U.currentManager.worker.getImagesInformation(p) : [];
14956
14965
  },
14957
14966
  callbacks: () => ({
14958
14967
  ...t.callbacks,
@@ -14966,7 +14975,7 @@ const U = class U extends Xi {
14966
14975
  setMemberState(p) {
14967
14976
  U.logger.info("[ApplianceSinglePlugin] setMemberState");
14968
14977
  const f = Object.keys(p);
14969
- if (ht(t) && t.isWritable) {
14978
+ if (lt(t) && t.isWritable) {
14970
14979
  f.includes("currentApplianceName") && (p.currentApplianceName && p.currentApplianceName === nt.laserPen ? (p.currentApplianceName = nt.pencil, p.useLaserPen = !0) : p.currentApplianceName && p.currentApplianceName === nt.pencil && (p.useLaserPen = !1)), c(p);
14971
14980
  return;
14972
14981
  }
@@ -14976,11 +14985,20 @@ const U = class U extends Xi {
14976
14985
  U.logger.info("[ApplianceSinglePlugin] setPriority"), U.currentManager && U.currentManager.setPriority(p);
14977
14986
  },
14978
14987
  createMiniMap: async function(p, f) {
14979
- if (U.logger.info("[ApplianceSinglePlugin] createMiniMap"), U.currentManager && ht(t) && t.isWritable)
14988
+ if (U.logger.info("[ApplianceSinglePlugin] createMiniMap"), U.currentManager && lt(t) && t.isWritable)
14980
14989
  return U.currentManager.createMiniMap(p, f);
14981
14990
  },
14982
14991
  destroyMiniMap: async function(p) {
14983
- return U.logger.info("[ApplianceMultiPlugin] destroyeMiniMap"), U.currentManager && ht(t) && t.isWritable ? U.currentManager.destroyMiniMap(p) : !1;
14992
+ if (U.logger.info("[ApplianceMultiPlugin] destroyeMiniMap"), U.currentManager && lt(t) && t.isWritable)
14993
+ return U.currentManager.destroyMiniMap(p);
14994
+ },
14995
+ filterRenderByUid(p, f, M) {
14996
+ if (U.logger.info("[ApplianceSinglePlugin] filterRenderByUid"), U.currentManager && lt(t) && t.isWritable)
14997
+ return U.currentManager.filterRenderByUid(p, f, M);
14998
+ },
14999
+ cancelFilterRender(p, f) {
15000
+ if (U.logger.info("[ApplianceSinglePlugin] filterRenderByUid"), U.currentManager && lt(t) && t.isWritable)
15001
+ return U.currentManager.cancelFilterRender(p, f);
14984
15002
  }
14985
15003
  }, u = (p, f) => {
14986
15004
  if (U.logger.info(`[ApplianceSinglePlugin] injectMethodToObject ${f}`), typeof p[f] == "function" || typeof p[f] > "u") {
@@ -15050,7 +15068,7 @@ const U = class U extends Xi {
15050
15068
  init(t) {
15051
15069
  var i, s;
15052
15070
  const e = t.state;
15053
- (i = U.currentManager) == null || i.onRoomMembersChange(e.roomMembers), ht(t) && e != null && e.memberState && ((s = U.currentManager) == null || s.onMemberChange(e.memberState)), this.displayer.callbacks.on(this.callbackName, this.roomStateChangeListener), this.displayer.callbacks.on("onEnableWriteNowChanged", this.updateRoomWritable), this.displayer.callbacks.on("onPhaseChanged", this.onPhaseChanged);
15071
+ (i = U.currentManager) == null || i.onRoomMembersChange(e.roomMembers), lt(t) && e != null && e.memberState && ((s = U.currentManager) == null || s.onMemberChange(e.memberState)), this.displayer.callbacks.on(this.callbackName, this.roomStateChangeListener), this.displayer.callbacks.on("onEnableWriteNowChanged", this.updateRoomWritable), this.displayer.callbacks.on("onPhaseChanged", this.onPhaseChanged);
15054
15072
  }
15055
15073
  destroy() {
15056
15074
  var t;
@@ -15114,7 +15132,7 @@ export {
15114
15132
  gt as e,
15115
15133
  Uy as f,
15116
15134
  qf as g,
15117
- V as h,
15135
+ F as h,
15118
15136
  Ye as i,
15119
15137
  Kf as j,
15120
15138
  z as k,